System.register(["./p-6722281a.system.js","./p-f337d917.system.js","./p-019c8a9e.system.js"],(function(e){"use strict";var t,n,a,o,i,c,r,s,l,u,b,f,h,I,g,v,j,d,O,m,w,C,N,L,p,y,D,G;return{setters:[function(e){t=e.b},function(e){n=e.d},function(e){a=e.b;o=e.a;i=e.c;c=e.d;r=e.e;s=e.f;l=e.g;u=e.h;b=e.i;f=e.j;h=e.k;I=e.l;g=e.m;v=e.n;j=e.o;d=e.p;O=e.q;m=e.r;w=e.s;C=e.t;N=e.u;L=e.v;p=e.w;y=e.x;D=e.y;G=e.z}],execute:function(){var S="baloise-persist-config";var k=function(){function e(){this._componentObservers=[];this._observers=[];this._config={region:"CH",language:"de",allowedLanguages:["de","fr","it","en"],icons:{balIconClose:a,balIconInfoCircle:o,balIconPlus:i,balIconMinus:c,balIconEdit:r,balIconTrash:s,balIconNavGoLeft:l,balIconNavGoRight:u,balIconNavGoDown:b,balIconNavGoUp:f,balIconCaretLeft:h,balIconCaretDown:I,balIconCheck:g,balIconDate:v,balIconDocument:j,balIconUpload:d,balIconMenuBars:O},fallbackLanguage:"de",logger:n,animated:true}}Object.defineProperty(e.prototype,"locale",{get:function(){return"".concat(this._config.language,"-").concat(this._config.region)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"region",{get:function(){return this._config.region},set:function(e){if(e!==this._config.region){this._config.region=e;this._notify()}},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"language",{get:function(){return this._config.language},set:function(e){if(e!==this._config.language){if(this._config.allowedLanguages.includes(e)){this._config.language=e}else{this._config.language=this._config.fallbackLanguage}this._notify()}},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"allowedLanguages",{get:function(){return this._config.allowedLanguages},set:function(e){if(e!==this._config.allowedLanguages){this._config.allowedLanguages=e;this._notify()}},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"icons",{get:function(){return this._config.icons},set:function(e){this._config.icons=Object.assign(Object.assign({},this._config.icons),e);this._notify()},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"logger",{get:function(){return this._config.logger},set:function(e){this._config.logger=Object.assign({},e);this._notify()},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"animated",{get:function(){return this._config.animated},set:function(e){this._config.animated=e;this._notify()},enumerable:false,configurable:true});e.prototype.attach=function(e){var t=this._observers.includes(e);if(t){return console.log("Subject: Observer has been attached already.")}this._observers.push(e);e.configChanged(this._config)};e.prototype.detach=function(e){var t=this._observers.indexOf(e);if(t===-1){return console.log("Subject: Nonexistent observer.")}this._observers.splice(t,1)};e.prototype.attachComponent=function(e){var t=this._componentObservers.includes(e);if(t){return console.log("Subject: Observer has been attached already.")}this._componentObservers.push(e);e.configChanged(this._config)};e.prototype.detachComponent=function(e){var t=this._componentObservers.indexOf(e);if(t===-1){return console.log("Subject: Nonexistent observer.")}this._componentObservers.splice(t,1)};e.prototype.toString=function(){return JSON.stringify(this._config)};e.prototype.reset=function(e){this._config=Object.assign(Object.assign(Object.assign({},this._config),e),{icons:Object.assign(Object.assign({},this._config.icons),e.icons)});this._notify(false)};e.prototype._notify=function(e){if(e===void 0){e=true}for(var n=0,a=this._componentObservers;n<a.length;n++){var o=a[n];o.configChanged(this._config)}if(e){for(var i=0,c=this._observers;i<c.length;i++){var o=c[i];o.configChanged(this._config)}}if(t.hasWindow){x(window,this._config)}};return e}();var U=new k;var M=function(e){try{var t=e.sessionStorage.getItem(S);return t!==null?JSON.parse(t):{}}catch(e){return{}}};var x=function(e,t){try{e.sessionStorage.setItem(S,JSON.stringify(t))}catch(e){return}};var J=e("d",{region:"CH",language:"de",allowedLanguages:["de","fr","it","en"],icons:{balIconClose:a,balIconInfoCircle:o,balIconPlus:i,balIconMinus:c,balIconEdit:r,balIconTrash:s,balIconNavGoLeft:l,balIconNavGoRight:u,balIconNavGoDown:b,balIconNavGoUp:f,balIconCaretLeft:h,balIconCaretDown:I,balIconCheck:g,balIconDate:v,balIconDocument:j,balIconUpload:d,balIconMenuBars:O,balIconFacebook:m,balIconInstagram:w,balIconLinkedin:C,balIconTwitter:N,balIconX:L,balIconXing:p,balIconYoutube:y,balIconWeb:D,balIconCaretUp:G},fallbackLanguage:"de",logger:n,animated:true});var T=e("a","".concat(J.language,"-").concat(J.region));var B=e("i",(function(e,n){if(e===void 0){e={}}if(n===void 0){n={}}if(!t.hasWindow){return}n=window;n.BaloiseDesignSystem=n.BaloiseDesignSystem||{};U.reset(Object.assign(Object.assign(Object.assign(Object.assign({},J),M(n)),e),{icons:Object.assign(Object.assign(Object.assign({},J.icons),M(n).icons),e.icons)}));n.BaloiseDesignSystem.config=U}))}}}));