angular.module("app").service("environment",["core",function(n){if(window.dropperEnvironment)return window.dropperEnvironment;var e={setLanguage:function(n){e.language=$.extend(!0,{},n)},getLanguages:function(){return n.languages},getActiveLang:function(){return e.language},getDefaultLang:function(){return e.languageDefault},init:function(n){if(n.languages instanceof Array&&n.languages.length>0){for(var a in n.languages)if("Y"==n.languages[a].cShopStandard){e.language=$.extend(!0,{},n.languages[a]),e.languageDefault=$.extend(!0,{},n.languages[a]);break}e.language||(e.language=$.extend(!0,{},n.languages[0])),e.languageDefault||(e.languageDefault=$.extend(!0,{},n.languages[0]))}}};return n.fn.onReload(e.init),e.init(n),window.dropperEnvironment=e,window.dropperEnvironment}]);