/*!
* Copyright (c) 2015-2018, NVIDIA CORPORATION. All rights reserved.
*
* NVIDIA CORPORATION and its licensors retain all intellectual property
* and proprietary rights in and to this software, related documentation
* and any modifications thereto. Any use, reproduction, disclosure or
* distribution of this software and related documentation without an express
* license agreement from NVIDIA CORPORATION is strictly prohibited.
*/
webpackJsonp([4], [function(e, t, n) {
"use strict";
n(323);
var r = n(185);
n(322), n(278), n(338), r.ngMainModule.run(["appService", function(e) {
e.main()
}])
}, , , , , , , , function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
}), t.ngUserProfileModule = void 0;
var r = n(1),
o = n(53),
i = (n(4), angular.module("main.userProfile", [r.ngMainCommonModule.name, o.ngRewardsModule.name, "main.share.common", "ngResource", "ui.router", "pascalprecht.translate", "ngSanitize", "ngEventAggregator", "nvCroppieModule", "main.preferences"]));
i.constant("SWEEPSTAKE_EVENTS", {
TOKENS_ENTERED_CHANGED: "TOKENS_ENTERED_CHANGED"
}), i.constant("SWEEPSTAKE_DIALOG_STATES", {
GIVEAWAY_DETAILS: "GIVEAWAY_DETAILS",
OFFICIAL_RULES: "OFFICIAL_RULES",
INFO_NOT_AVAILABLE: "INFO_NOT_AVAILABLE",
EDIT_STAKES: "EDIT_STAKES",
REVIEW_STAKES: "REVIEW_STAKES",
OVERLAY_LOADING: "OVERLAY_LOADING",
OVERLAY_SUCCESS: "OVERLAY_SUCCESS",
OVERLAY_ERROR: "OVERLAY_ERROR"
}).constant("ANALYTICS_STATE", {
ANALYTICS_PROGRESS: 0,
ANALYTICS_SUCCESS: 1,
ANALYTICS_EMPTY_STATE: 2,
ANALYTICS_ERROR_STATE: 3
}).constant("PROFILE_EVENTS", {
BADGES_UPDATED: "main.profile.badgesUpdated",
MISSIONS_REFRESHED: "main.profile.missions.refreshed",
ACTIVITY_LOG_REFRESHED: "main.profile.activity.log.refreshed",
CURRENT_GIVEAWAY_REFRESHED: "main.profile.current.giveaway.refreshed",
XP_LEVEL_REFRESHED: "main.profile.xp.level.refreshed",
ALL_USER_ACHIEVEMENTS_REFRESHED: "main.profile.achievements.refreshed",
GIVEAWAY_ENTRY_DETAILS_REFRESHED: "main.profile.giveaway.entry.details.refreshed"
}).constant("IMAGE_UPDATE_STATE", {
NOT_CHNAGED: "profile.image.not.changed",
AVATAR_UPDATE_STARTED: "profile.avatar.update.started",
AVATAR_UPDATE_SUCCESSFULL: "profile.avatar.update.successfull",
AVATAR_UPDATE_FAILED: "profile.avatar.update.failed",
AVATAR_UPDATE_STALE: "profile.avatar.stale",
COVER_UPDATE_STARTED: "profile.cover.update.started",
COVER_UPDATE_SUCCESSFULL: "profile.cover.update.successfull",
COVER_UPDATE_FAILED: "profile.cover.update.failed",
COVER_UPDATE_STALE: "profile.cover.stale"
}).constant("MISSION_TYPE", {
FEATURED_MISSION: "FEATURED_MISSION",
REGULAR_MISSION: "REGULAR_MISSION",
TOKEN_MISSION: "TOKEN_MISSION"
}).constant("MISSION_CONSTANTS", {
TRUE: 1,
FALSE: 0
}).constant("LEVELS", {
SILVER: 1,
GOLD: 2,
TITANIUM: 3,
MAX_LEVEL: 3
}), t.ngUserProfileModule = i
}, , , , , , , , , function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
}), t.nvOverlay = void 0;
var r = n(1),
o = r.ngMainCommonModule.directive("nvOverlay", [function() {
function e(e, t) {
function n() {
t.empty(), t.remove(), t = null
}
if (e.nvPosition) {
var r = {},
o = e.nvPosition.split(" ");
angular.forEach(o, function(e) {
switch (e) {
case "bottom":
r.top = "auto", r.bottom = 0;
break;
case "right":
r.left = "auto"
}
}), t.css(r)
}
e.$on("$destroy", n), t.on("$destroy", function() {
e.$destroy()
})
}
return {
restrict: "E",
transclude: !0,
scope: {
nvPosition: "@"
},
template: "
{{editProfileCover.errorMsg}}