Viewing File: /usr/local/cpanel/whostmgr/docroot/templates/cpanel_customization/index.cmb.min.js

define("app/constants",["cjt/util/locale"],(function(e){"use strict";var t="#08193E";return{EMBEDDED_SVG:"data:image/svg+xml;base64,",EMBEDDED_ICO:"data:image/x-icon;base64,",DATA_URL_PREFIX_REGEX:/^data:[^,]*,/,DEFAULT_PRIMARY_DARK:t,DEFAULT_PRIMARY_LIGHT:"#ffffff",DEFAULT_COLORS:{primary:t},MAX_FILE_SIZE:1e5,GENERAL_TABS_INFO:{logos:e.maketext("Logos"),colors:e.maketext("Colors"),favicon:e.maketext("Favicon"),links:e.maketext("Links"),"public-contact":e.maketext("Public Contact")},JUPITER_TAB_ORDER:["logos","colors","favicon","links","public-contact"],JUPITER_TAB_INDEX:{logos:3,colors:4,favicon:5,links:6,"public-contact":10},DEFAULT_THEME:"jupiter",DEFAULT_ROUTE:"logos"}})),define("app/services/savedService",["angular"],(function(e,t,o){"use strict";e.module("customize.services.savedService",[]).factory("savedService",[function(){var t={},o={dirty:!1};return{registerTabs:function(i){i.forEach((function(i){t[i]=e.copy(o)}))},needToSave:function(e){return e?!!t[e]&&t[e].dirty:Object.keys(t).some((function(e){return!!t[e]&&t[e].dirty}))},update:function(e,o){t[e]&&(t[e].dirty=o)}}}])})),define("app/services/beforeUnloadService",["angular"],(function(e){"use strict";e.module("customize.services.beforeUnloadService",[]).factory("beforeUnload",["$rootScope","$window",function(e,t){return e.doBeforeUnload=function(t){var o={};return e.$broadcast("onBeforeUnload",o).defaultPrevented?(t.preventDefault(),t.returnValue=o.prompt||"",o.prompt):(delete t.returnValue,!1)},e.doUnload=function(){e.$broadcast("onUnload")},t.addEventListener("beforeunload",e.doBeforeUnload),t.addEventListener("onunload",e.doUnload),{}}]).run(["beforeUnload",function(e){}])})),define("app/directives/fileReader",["angular","cjt/util/locale","app/constants"],(function(e,t,o){"use strict";e.module("customize.directives.fileReader",[]).directive("fileReader",["$q",function(i){return{restrict:"A",require:["?ngModel"],priority:20,link:function(r,n,a,s){var c=s[0];c&&"INPUT"===n[0].tagName&&a.type&&"file"===a.type&&(c.$render=function(){},r._getFiles=function(e){return e.files},r._getMaxSize=function(){return o.MAX_FILE_SIZE},r._mergeToModel=function(t,o,i){var r=e.copy(t.$modelValue);return r.filename=o.name,r.size=o.size,r.type=o.type,r.data=i,delete r.error,delete r.errorKey,r},r._setModelError=function(e,t,o){e.error=t,e.errorKey=o},r._toBase64=function(e){var o,n=i.defer(),a=r._getMaxSize();if(e.size>a)return o=r._mergeToModel(c,e,""),r._setModelError(o,t.maketext("The file is larger than the maximum of [numf,_1] kilobytes.",a),"maxsize"),n.resolve(o),n.promise;var s=new FileReader;s.addEventListener("loadend",(function(t){r.$apply((function(){o=r._mergeToModel(c,e,t.target.result),n.resolve(o)}))})),s.addEventListener("error",(function(i){r.$apply((function(){o=r._mergeToModel(c,e,""),r._setModelError(o,i&&i.target?i.target.error:t.maketext("An unknown error occurred while reading the file contents."),"readFailed"),n.resolve(o)}))}));try{s.readAsDataURL(e)}catch(i){o=r._mergeToModel(c,e,""),r._setModelError(o,i||t.maketext("An unknown error occurred while reading the file contents."),"readFailed"),n.resolve(o)}return n.promise},n.bind("change",(function(e){r.$apply((function(){var t=e.target,o=r._getFiles(t);if(o&&o.length){var i=o[0];i&&0!==i.size&&r._toBase64(i).then((function(e){c.$setViewValue(e)}))}}))})))}}}])})),define("app/directives/fileType",["angular"],(function(e){"use strict";e.module("customize.directives.fileType",[]).directive("fileType",[function(){return{restrict:"A",require:"ngModel",link:function(e,t,o,i){t.bind("change",(function(){var t=this.files[0];t&&!function(e,t){return t.some((function(t){return e.type===t}))}(t,e.$eval(o.fileType))?i.$setValidity("filetype",!1):i.$setValidity("filetype",!0)}))}}}])})),define("app/directives/triggerFor",["angular"],(function(e){"use strict";e.module("customize.directives.triggerFor",[]).directive("triggerFor",[function(){return{restrict:"A",link:function(e,t,o){t.bind("click",(function(){document.querySelector("#"+o.triggerFor).click()}))}}}])})),define("app/directives/fileUpload",["angular","cjt/util/locale","cjt/core","uiBootstrap","app/directives/fileReader","app/directives/fileType","app/directives/triggerFor"],(function(e,t,o){"use strict";e.module("customize.directives.fileUpload",["customize.directives.fileReader","customize.directives.fileType","customize.directives.triggerFor","ui.bootstrap"]).directive("cpFileUpload",["$uibModal",function(i){var r="directives/fileUpload.phtml",n="templates/cpanel_customization/"+r;return{replace:!0,require:["^form","ngModel"],restrict:"E",scope:{id:"@id",title:"@title",browseButtonLabel:"@browseButtonLabel",deleteButtonTitle:"@deleteButtonTitle",confirmDeleteMessage:"@confirmDeleteMessage",previewTitle:"@previewTitle",help:"@help",fileTypeError:"@fileTypeError",fileEmptyError:"@fileEmptyError",fileMaxSizeError:"@fileMaxSizeError",model:"=ngModel",types:"=mimeTypes",previewBgColor:"=previewBgColor",onDelete:"&onDelete",onChange:"&onChange",onReset:"&onReset",inputClasses:"@inputClass",previewClasses:"@previewClass"},templateUrl:o.config.debug?o.buildFullPath(n):r,link:function(r,n,a,s){r.LOCALE=t;var c=s[0],l=s[1];function u(t){var o=e.copy(t);return o.data="",o.filename="",o.size=0,o.type="",delete o.error,delete o.errorType,o}r.inputClasses||(r.inputClasses="col-xs-12 col-sm-8 col-md-8 col-lg-6"),r.previewClasses||(r.previewClasses="col-xs-12 col-sm-4 col-md-4 col-lg-4"),r.field=function(e){return"file_upload_"+e},r.isPristine=function(e){var t=r.field(e),o=c[t];return!o||o.$pristine},r.isInvalid=function(e){var t=r.field(e),o=c[t];return!o||o.$invalid},r.errors=function(e,t){var o=r.field(e),i=c[o];if(i)return i.$error[t]},r.setPristine=function(e){var t=r.field(e),o=c[t];o&&o.$setPristine()},r.delete=function(e){r.deleteLoading=!0;var t=r.onDelete(e);t&&t.then?t.then((function(){r.deleteLoading=!1,r.model=u(l.$modelValue),r.setPristine(r.id+"_file")})):(r.deleteLoading=!1,r.model=u(l.$modelValue),r.setPristine(r.id+"_file"))},r.confirmDelete=function(n){if(n.saved){var a="directives/fileConfirmUploadDelete.phtml",s="templates/cpanel_customization/"+a;i.open({templateUrl:o.config.debug?o.buildFullPath(s):a,size:"sm",controller:["$scope","$uibModalInstance",function(e,o){e.message=r.confirmDeleteMessage,e.LOCALE=t,e.close=function(e){o.close(e)}}]}).result.then((function(e){e&&r.delete(n)}))}else{r.model=u(r.model);var l=r.field(r.id+"_file");e.element("#"+l).val(null),c[l].$setValidity("fileSize",!0),c[l].$setValidity("fileMaxSize",!0),c[l].$setValidity("filetype",!0),c[l].$setPristine(),r.onReset(r.model)}},r.change=function(){r.onChange(r.model)}}}}])})),define("app/services/customizeService",["angular","cjt/util/locale","cjt/io/api","cjt/io/whm-v1-request","app/constants","cjt/io/whm-v1","cjt/services/APICatcher"],(function(e,t,o,i,r){"use strict";e.module("customize.services.customizeService",["cjt2.services.apicatcher","cjt2.services.api"]).factory("customizeService",["APICatcher","$q",function(o,n){return{update:function(a,s){if(e.isUndefined(a))return n.reject(t.maketext("The customization parameter is missing or not an object."));var c=(new i.Class).initialize("","update_customizations",{application:"cpanel",theme:s||r.DEFAULT_THEME,data:JSON.stringify(a)});return o.promise(c)},delete:function(e,t){var n=(new i.Class).initialize("","delete_customizations",{application:"cpanel",theme:t||r.DEFAULT_THEME,path:e});return o.promise(n)},getThemeTabList:function(e){return e.order.map((t=>({key:t,name:r.GENERAL_TABS_INFO[t],index:e.index[t]})))}}}])})),define("app/views/jupiter/logoController",["lodash","angular","cjt/util/locale","app/constants","cjt/directives/autoFocus","cjt/decorators/growlDecorator","app/directives/fileUpload","app/services/customizeService","app/services/savedService"],(function(e,t,o,i){"use strict";return t.module("customize.views.logoController",["customize.services.customizeService","customize.directives.fileUpload","customize.services.savedService"]).controller("logoController",["$scope","customizeService","savedService","growl","growlMessages","PAGE",function(e,t,r,n,a,s){e.saving=!1;var c=s.data.jupiter.brand.logo.forLightBackground,l=s.data.jupiter.brand.logo.forDarkBackground,u=s.data.jupiter.brand.logo.description;e.model={forLightBackground:{data:c?i.EMBEDDED_SVG+c:"",filename:c?"logo-light.svg":"",saved:!!c,name:"forLightBackground"},forDarkBackground:{data:l?i.EMBEDDED_SVG+l:"",filename:l?"logo-dark.svg":"",saved:!!l,name:"forDarkBackground"},description:u||""},e.MAX_FILE_SIZE=i.MAX_FILE_SIZE,e.LOCALE=o,e.$watch("model.forLightBackground",(function(){r.update("logos",e.customization.$dirty)}),!0),e.$watch("model.forDarkBackground",(function(){r.update("logos",e.customization.$dirty)}),!0),e.$watch("model.description",(function(){r.update("logos",e.customization.$dirty)}),!1),e.backgroundColors={primaryDark:s.data.jupiter.brand.colors.primary||i.DEFAULT_PRIMARY_DARK,primaryLight:i.DEFAULT_PRIMARY_LIGHT},e.save=function(c){if(a.destroyAllMessages(),c.$valid)if(e.saving)n.warning(o.maketext("The system is busy. Try again once the current operation is complete."));else{e.saving=!0;var l=e.model.forDarkBackground.data;l&&(l=l.replace(i.DATA_URL_PREFIX_REGEX,""));var u=e.model.forLightBackground.data;u&&(u=u.replace(i.DATA_URL_PREFIX_REGEX,"")),t.update({brand:{logo:{forLightBackground:u,forDarkBackground:l,description:e.model.description}}}).then((function(t){l&&(e.model.forDarkBackground.filename="logo-dark.svg",e.model.forDarkBackground.saved=!0,s.data.jupiter.brand.logo.forDarkBackground=l),u&&(e.model.forLightBackground.filename="logo-light.svg",e.model.forLightBackground.saved=!0,s.data.jupiter.brand.logo.forLightBackground=u),s.data.jupiter.brand.logo.description=e.model.description,c.$setPristine(),r.update("logos",!1),n.success(o.maketext("The system successfully updated the logos."))})).catch((function(e){n.error(o.maketext("The system failed to update your logos."))})).finally((function(){e.saving=!1}))}else n.error(o.maketext("The current customization is invalid."))};e.reset=function(e,t){switch(a.destroyAllMessages(),t){case"forDarkBackground":e.file_upload_logo_dark_file.$setPristine();break;case"forLightBackground":e.file_upload_logo_light_file.$setPristine()}!function(e){var t=!0;["file_upload_logo_dark_file","file_upload_logo_light_file","icon_description"].forEach((function(o){e[o].$dirty&&(t=!1)})),t&&e.$setPristine()}(e),r.update("logos",e.$dirty)},e.delete=function(i,c){if(a.destroyAllMessages(),!e.saving)return e.saving=!0,t.delete("brand.logo."+c).then((function(t){switch(e.model[c].saved=!1,e.model[c].data="",e.model[c].filename="",s.data.jupiter.brand.logo[c]="",c){case"forDarkBackground":i.file_upload_logo_dark_file.$setPristine();break;case"forLightBackground":i.file_upload_logo_light_file.$setPristine()}r.update("logos",i.$dirty),n.success(o.maketext("The system successfully removed the logo."))})).catch((function(e){n.error(o.maketext("The system failed to remove the logo."))})).finally((function(){e.saving=!1}));n.warning(o.maketext("The system is busy. Try again once the current operation is complete."))}}])})),define("app/views/jupiter/faviconController",["lodash","angular","cjt/util/locale","app/constants","cjt/decorators/growlDecorator","app/directives/fileUpload","app/services/customizeService","app/services/savedService"],(function(e,t,o,i){"use strict";return t.module("customize.views.faviconController",["customize.directives.fileUpload","customize.services.customizeService","customize.services.savedService","customize.directives.fileUpload"]).controller("faviconController",["$scope","customizeService","savedService","growl","growlMessages","PAGE",function(e,t,r,n,a,s){e.saving=!1,e.MAX_FILE_SIZE=i.MAX_FILE_SIZE,e.LOCALE=o;var c=s.data.jupiter.brand.favicon;e.model={favicon:{data:c?i.EMBEDDED_ICO+c:"",filename:c?"favicon.ico":"",saved:!!c}},e.$watch("model.favicon",(function(){r.update("favicon",e.customization.$dirty)}),!0),e.save=function(c){if(a.destroyAllMessages(),c.$valid){if(!e.saving){e.saving=!0;var l=e.model.favicon.data.replace(i.DATA_URL_PREFIX_REGEX,"");return t.update({brand:{favicon:l}}).then((function(t){e.model.favicon.filename="favicon.ico",e.model.favicon.saved=!0,s.data.jupiter.brand.favicon=l,c.$setPristine(),r.update("favicon",!1),n.success(o.maketext("The system successfully updated the favicon."))})).catch((function(e){n.error(o.maketext("The system failed to update the favicon."))})).finally((function(){e.saving=!1}))}n.warning(o.maketext("The system is busy. Try again once the current operation is complete."))}else n.error(o.maketext("The current customization is invalid."))},e.reset=function(e){a.destroyAllMessages(),e.file_upload_favicon_file.$setPristine(),r.update("favicons",!1)},e.delete=function(i){if(a.destroyAllMessages(),!e.saving)return e.saving=!0,t.delete("brand.favicon").then((function(t){e.model.favicon.saved=!1,e.model.favicon.data="",e.model.favicon.filename="",s.data.jupiter.brand.favicon="",i.$setPristine(),r.update("favicon",!1),n.success(o.maketext("The system successfully removed the custom favicon and restored the default [asis,cPanel] favicon."))})).catch((function(e){n.error(o.maketext("The system failed to remove the custom favicon."))})).finally((function(){e.saving=!1}));n.warning(o.maketext("The system is busy. Try again once the current operation is complete."))}}])})),define("app/views/jupiter/linksController",["lodash","angular","cjt/util/locale","cjt/directives/autoFocus","cjt/decorators/growlDecorator","app/services/customizeService","app/services/savedService"],(function(e,t,o){"use strict";return t.module("customize.views.linksController",["customize.services.customizeService","customize.services.savedService"]).controller("linksController",["$scope","customizeService","savedService","growl","growlMessages","PAGE",function(e,i,r,n,a,s){e.saving=!1,e.urlRegex=/^(https?):\/\/(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\\d:]+])(?::\\d+)?(?:\/[^?#]*)?(?:\\?[^#]*)?(?:#.*)?$/i,e.model={help:s.data.jupiter.help?t.copy(s.data.jupiter.help):{url:""},documentation:s.data.jupiter.documentation?t.copy(s.data.jupiter.documentation):{url:""}},e.initialHelpLink=e.model.help.url,e.initialDocumentationLink=e.model.documentation.url,e.$watchGroup(["model.help.url","model.documentation.url"],(function(t){var o=t[0]!==e.initialHelpLink,i=t[1]!==e.initialDocumentationLink;o||i?r.update("links",e.customization.$dirty):(a.destroyAllMessages(),r.update("links",!1),e.customization.$setPristine())}),!1),e.save=function(t){a.destroyAllMessages(),t.$valid?e.saving?n.warning(o.maketext("The system is busy. Try again once the current operation is complete.")):(e.saving=!0,i.update({documentation:{url:e.model.documentation.url},help:{url:e.model.help.url}}).then((function(i){s.data.jupiter.documentation.url=e.model.documentation.url,s.data.jupiter.help.url=e.model.help.url,t.$setPristine(),r.update("links",!1),n.success(o.maketext("The system successfully updated your links."))})).catch((function(e){n.error(o.maketext("The system failed to update your links."))})).finally((function(){e.saving=!1}))):n.error(o.maketext("The current customization is invalid."))}}])})),require.config({paths:{"jquery-minicolors":"../../../libraries/jquery-minicolors/2.1.7/jquery.minicolors","angular-minicolors":"../../../libraries/angular-minicolors/0.0.11/angular-minicolors"},shims:{"jquery-minicolors":{depends:["jquery"]},"angular-minicolors":{depends:["jquery-minicolors"]}}}),define("app/views/jupiter/colorsController",["lodash","angular","jquery","app/constants","cjt/util/locale","cjt/decorators/growlDecorator","angular-minicolors"],(function(e,t,o,i,r){"use strict";var n=t.module("customize.views.colorsController",["customize.services.customizeService","minicolors"]);return n.config(["minicolorsProvider",function(e){t.extend(e.defaults,{control:"wheel",position:"bottom left",letterCase:"uppercase",theme:"bootstrap"})}]),n.controller("colorsController",["$scope","customizeService","growl","growlMessages","savedService","PAGE",function(e,o,n,a,s,c){function l(e,t){var o=Object.assign({},e);Object.keys(e).forEach((function(e){""!==o[e]&&void 0!==o[e]&&null!==o[e]||delete o[e]}));var i=Object.assign({},t);return Object.assign(i,o)}e.saving=!1,e.restoring=!1,e.hexColorRegex="^#[0-9A-Fa-f]{6}",e.model={colors:{},defaults:t.copy(i.DEFAULT_COLORS)},e.$watch("model.colors",(function(){s.update("colors",e.customization.$dirty)}),!0),e.model.colors=l(c.data.jupiter.brand.colors,i.DEFAULT_COLORS),e.save=function(i){if(i.$valid)if(a.destroyAllMessages(),e.saving||e.restoring)n.warning(r.maketext("The system is busy. Try again once the current operation is complete."));else{e.saving=!0;var l={brand:{colors:e.model.colors}};o.update(l).then((function(o){c.data.jupiter.brand.colors=t.copy(e.model.colors),s.update("colors",!1),i.$setPristine(),n.success(r.maketext("The system successfully updated the brand colors."))})).catch((function(e){n.error(r.maketext("The system failed to update the brand colors."))})).finally((function(){e.saving=!1}))}else n.error(r.maketext("The current customization is invalid."))},e.reset=function(u){if(a.destroyAllMessages(),!e.saving&&!e.restoring)return e.restoring=!0,o.delete("brand.colors").then((function(o){e.model.colors=l({},i.DEFAULT_COLORS),c.data.jupiter.brand.colors=t.copy(e.model.colors),s.update("links",!1),u.$setPristine(),n.success(r.maketext("The system successfully restored the brand colors to the default."))})).catch((function(e){n.error(r.maketext("The system failed to restore the brand colors to the default."))})).finally((function(){e.restoring=!1}));n.warning(r.maketext("The system is busy. Try again once the current operation is complete."))}}])})),define("app/services/contactService",["angular","cjt/io/api","cjt/io/whm-v1-request","cjt/io/whm-v1","cjt/services/APICatcher"],(function(e,t,o){"use strict";e.module("customize.services.contactService",["cjt2.services.apicatcher","cjt2.services.api"]).factory("contactService",["APICatcher",function(e){return{setPublicContact:function(t){var i=(new o.Class).initialize("","set_public_contact",t);return e.promise(i)}}}])})),function(){"use strict";define("app/views/publicContactController",["lodash","angular","cjt/util/locale","uiBootstrap","app/services/contactService","cjt/decorators/growlAPIReporter","app/services/savedService"],(function(e,t,o){var i=t.module("customize.views.publicContactController",["customize.services.contactService","customize.services.savedService"]);i.value("PAGE",PAGE);var r=PAGE.data,n=t.copy(r.public_contact);return i.controller("publicContactController",["$scope","contactService","savedService","growl","growlMessages",function(e,i,a,s,c){t.extend(e,{has_root:!!r.has_root,pcdata:t.copy(n),doSubmit:function(e){var r=this;return c.destroyAllMessages(),i.setPublicContact(this.pcdata).then((function(){t.extend(n,r.pcdata),e.$setPristine(),a.update("public-contact",!1),s.success(o.maketext("The public can now view the information that you provided in this form."))}))},resetForm:function(e){c.destroyAllMessages(),t.extend(this.pcdata,n),e.$setPristine()}}),e.$watchGroup(["pcdata.name","pcdata.url"],(function(){e.public_contact_form&&a.update("public-contact",e.public_contact_form.$dirty)}),!0)}])}))}(),function(){"use strict";define("app/index",["lodash","angular","cjt/core","cjt/util/locale","app/constants","cjt/modules","uiBootstrap","cjt/directives/callout","app/services/savedService","app/services/beforeUnloadService","app/views/jupiter/logoController","app/views/jupiter/faviconController","app/views/jupiter/linksController","app/views/jupiter/colorsController","app/views/publicContactController"],(function(e,t,o,i,r){return function(){return t.module("App",["cjt2.config.whm.configProvider","ngRoute","ui.bootstrap","angular-growl","cjt2.whm","customize.services.savedService","customize.services.beforeUnloadService","customize.views.logoController","customize.views.faviconController","customize.views.linksController","customize.views.colorsController","customize.views.publicContactController"]),require(["cjt/bootstrap","uiBootstrap","app/views/jupiter/logoController","app/views/jupiter/faviconController","app/views/jupiter/linksController","app/views/jupiter/colorsController","app/views/publicContactController","app/services/contactService","app/services/customizeService"],(function(e){var n=t.module("App");n.value("PAGE",PAGE),n.value("firstLoad",{branding:!0}),n.controller("BaseController",["$rootScope","$scope","$route","$location","growl","growlMessages","$timeout","savedService","customizeService",function(e,o,n,a,s,c,l,u,d){function p(e){var t=e.attr("data-tab-name");if(t)return t;var o=e.parent();return o?p(o):void 0}function f(){return o.byTheme[o.selectedTheme]}function v(){var e=f();o.selectedThemeTabList=d.getThemeTabList(e);var t=e.lastTab||e.order[0];l((function(){o.goTo(t)}))}r.DEFAULT_THEME=PAGE.data.default_theme,o.loading=!1,o.selectedThemeTabList=[],u.registerTabs(r.JUPITER_TAB_ORDER),e.$on("$routeChangeStart",(function(){u.needToSave()&&(o.reportNotSaved(),event.preventDefault()),o.loading=!0})),e.$on("$routeChangeSuccess",(function(){o.loading=!1})),e.$on("$routeChangeError",(function(){o.loading=!1})),e.$on("onBeforeUnload",(function(e,t){if(u.needToSave())return t.prompt=i.maketext("The current tab has unsaved changes. You should save the changes before you navigate to another tab."),void e.preventDefault();delete e.returnValue})),o.selectTab=function(e){var t=f();t.lastTab=e;var i=t.index[e];o.activeTab=i},o.goTo=function(e){f().lastTab=e,o.selectTab(e),a.path(e),o.selectTab(e),o.currentTabName=e},o.reportNotSaved=function(){c.destroyAllMessages(),s.error(i.maketext("The current tab has unsaved changes. You should save the changes before you navigate to another tab."))},o.preventDeselect=function(e){if(e&&e.target){var i=p(t.element(e.target));u.needToSave(o.currentTabName)&&(i!==o.currentTabName&&o.reportNotSaved(),e.preventDefault())}},o.byTheme={jupiter:{order:r.JUPITER_TAB_ORDER,index:r.JUPITER_TAB_INDEX,lastTab:""}},o.selectedTheme=r.DEFAULT_THEME,o.onThemeSelect=function(){v()},o.isTheme=function(e){return o.selectedTheme===e},o.isActive=function(e){return o.activeTab===e},o.getActiveTab=function(){return o.activeTab},o.currentTabName="",v()}]),n.config(["$routeProvider",function(e){e.when("/logos",{controller:"logoController",templateUrl:o.buildFullPath("cpanel_customization/views/jupiter/logo.ptt")}),e.when("/colors",{controller:"colorsController",templateUrl:o.buildFullPath("cpanel_customization/views/jupiter/colors.ptt")}),e.when("/links",{controller:"linksController",templateUrl:o.buildFullPath("cpanel_customization/views/jupiter/links.ptt")}),e.when("/favicon",{controller:"faviconController",templateUrl:o.buildFullPath("cpanel_customization/views/jupiter/favicon.ptt")}),e.when("/public-contact",{controller:"publicContactController",templateUrl:o.buildFullPath("cpanel_customization/views/publicContact.ptt")}),e.otherwise({redirectTo:"/"+r.DEFAULT_ROUTE})}]),e()}))}}))}();
Back to Directory File Manager