@baloise/ds-core 19.9.1 → 19.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/components/bal-logo2.js +1 -1
  2. package/components/index.js +1 -1
  3. package/components/tokens.esm.js +1 -1
  4. package/dist/baloise-design-system/baloise-design-system.esm.js +1 -1
  5. package/dist/baloise-design-system/index.esm.js +1 -1
  6. package/dist/baloise-design-system/{p-a9d42c63a1.system.entry.js → p-0858ef65f2.system.entry.js} +1 -1
  7. package/dist/baloise-design-system/{p-f481d72c52.system.entry.js → p-1d1f8316d7.system.entry.js} +1 -1
  8. package/dist/baloise-design-system/{p-01b27feafd.entry.js → p-1f5ead4b22.entry.js} +1 -1
  9. package/dist/baloise-design-system/{p-3d9d33c487.entry.js → p-3111be34fe.entry.js} +1 -1
  10. package/dist/baloise-design-system/{p-78eb8b6cd9.system.entry.js → p-33a49c1b2b.system.entry.js} +1 -1
  11. package/dist/baloise-design-system/{p-d5de2680ad.system.entry.js → p-35a5ef54a0.system.entry.js} +1 -1
  12. package/dist/baloise-design-system/{p-5ed691fea4.system.entry.js → p-396bf929bc.system.entry.js} +1 -1
  13. package/dist/baloise-design-system/{p-198c6e75ad.entry.js → p-3f3fd4d0fb.entry.js} +1 -1
  14. package/dist/baloise-design-system/{p-f22c5ab5ed.system.entry.js → p-402da722fc.system.entry.js} +1 -1
  15. package/dist/baloise-design-system/{p-b1877d6778.system.entry.js → p-414a850825.system.entry.js} +1 -1
  16. package/dist/baloise-design-system/{p-3ec4feac2e.entry.js → p-4d7d8d1fd3.entry.js} +1 -1
  17. package/dist/baloise-design-system/{p-1f0f2e599d.entry.js → p-4fd089ea55.entry.js} +1 -1
  18. package/dist/baloise-design-system/{p-777471c320.entry.js → p-550f1b809a.entry.js} +1 -1
  19. package/dist/baloise-design-system/{p-12d43e06d9.entry.js → p-591debd7c3.entry.js} +1 -1
  20. package/dist/baloise-design-system/p-5e3d004ff0.entry.js +1 -0
  21. package/dist/baloise-design-system/{p-38d8f6459e.system.entry.js → p-62d22238a8.system.entry.js} +1 -1
  22. package/dist/baloise-design-system/{p-f4c4d03e6e.entry.js → p-778faed2c9.entry.js} +1 -1
  23. package/dist/baloise-design-system/{p-bc641f2029.system.entry.js → p-874298b6f3.system.entry.js} +1 -1
  24. package/dist/baloise-design-system/{p-25dce380f8.system.entry.js → p-8f0624929d.system.entry.js} +1 -1
  25. package/dist/baloise-design-system/{p-dafa925d2c.entry.js → p-98b209c6fb.entry.js} +1 -1
  26. package/dist/baloise-design-system/{p-0c0190dc67.system.entry.js → p-9e1dd8fae9.system.entry.js} +1 -1
  27. package/dist/baloise-design-system/p-BFRjY4w3.js +1 -1
  28. package/dist/baloise-design-system/{p-4MIQMEtx.js → p-BLNTV2y9.js} +1 -1
  29. package/dist/baloise-design-system/p-BRAmUyPx.system.js +1 -1
  30. package/dist/baloise-design-system/{p-DvahsaGu.system.js → p-BT9kotrD.system.js} +1 -1
  31. package/dist/baloise-design-system/p-Bk7UdnZ5.system.js +1 -1
  32. package/dist/baloise-design-system/{p-G8UK5F7H.system.js → p-D4HExdbi.system.js} +1 -1
  33. package/dist/baloise-design-system/{p-P4eJh_wN.js → p-OSNEECer.js} +1 -1
  34. package/dist/baloise-design-system/{p-992840a30d.entry.js → p-a19115481e.entry.js} +1 -1
  35. package/dist/baloise-design-system/{p-C8LDaK6Z.system.js → p-aqkRpbjU.system.js} +1 -1
  36. package/dist/baloise-design-system/{p-213c4d93f4.system.entry.js → p-c638ff8e96.system.entry.js} +1 -1
  37. package/dist/baloise-design-system/{p-1c913d4359.entry.js → p-ca021528cf.entry.js} +1 -1
  38. package/dist/baloise-design-system/{p-239ed27774.entry.js → p-ce1ac691fc.entry.js} +1 -1
  39. package/dist/baloise-design-system/{p-BzAHSyRi.js → p-cnNPy_UF.js} +1 -1
  40. package/dist/baloise-design-system/p-d8f0f0e341.system.entry.js +1 -0
  41. package/dist/baloise-design-system/{p-CkIgsCwS.system.js → p-lqmCqCXD.system.js} +1 -1
  42. package/dist/cjs/bal-carousel_2.cjs.entry.js +3 -3
  43. package/dist/cjs/bal-field_5.cjs.entry.js +3 -3
  44. package/dist/cjs/bal-hint_5.cjs.entry.js +3 -3
  45. package/dist/cjs/bal-list_8.cjs.entry.js +3 -3
  46. package/dist/cjs/bal-logo.cjs.entry.js +4 -4
  47. package/dist/cjs/bal-nav_8.cjs.entry.js +3 -3
  48. package/dist/cjs/bal-navbar_5.cjs.entry.js +3 -3
  49. package/dist/cjs/bal-pagination.cjs.entry.js +3 -3
  50. package/dist/cjs/bal-progress-bar.cjs.entry.js +4 -4
  51. package/dist/cjs/bal-segment_2.cjs.entry.js +4 -4
  52. package/dist/cjs/bal-shape.cjs.entry.js +1 -1
  53. package/dist/cjs/bal-steps.cjs.entry.js +3 -3
  54. package/dist/cjs/bal-tab-item_2.cjs.entry.js +3 -3
  55. package/dist/cjs/{breakpoints.decorator-Cc1aDi12.js → breakpoints.decorator-BLbtZQPE.js} +1 -1
  56. package/dist/cjs/{breakpoints.subject-CEyIkleD.js → breakpoints.subject-Dm5PhV8R.js} +1 -1
  57. package/dist/cjs/index.cjs.js +2 -2
  58. package/dist/cjs/initialize-BzrcZo6Y.js +1 -1
  59. package/dist/cjs/{tokens.esm-CO4NpDkI.js → tokens.esm-DizoRyJW.js} +1 -1
  60. package/dist/cjs/{window-resize.decorator-DiYHzl6q.js → window-resize.decorator-0M6RxXln.js} +1 -1
  61. package/dist/collection/components/bal-logo/bal-logo.js +0 -1
  62. package/dist/collection/utils/constants/version.constant.js +1 -1
  63. package/dist/esm/bal-carousel_2.entry.js +3 -3
  64. package/dist/esm/bal-field_5.entry.js +3 -3
  65. package/dist/esm/bal-hint_5.entry.js +3 -3
  66. package/dist/esm/bal-list_8.entry.js +3 -3
  67. package/dist/esm/bal-logo.entry.js +4 -4
  68. package/dist/esm/bal-nav_8.entry.js +3 -3
  69. package/dist/esm/bal-navbar_5.entry.js +3 -3
  70. package/dist/esm/bal-pagination.entry.js +3 -3
  71. package/dist/esm/bal-progress-bar.entry.js +4 -4
  72. package/dist/esm/bal-segment_2.entry.js +4 -4
  73. package/dist/esm/bal-shape.entry.js +1 -1
  74. package/dist/esm/bal-steps.entry.js +3 -3
  75. package/dist/esm/bal-tab-item_2.entry.js +3 -3
  76. package/dist/esm/{breakpoints.decorator-CFE2cXqN.js → breakpoints.decorator-D8tyvKfl.js} +1 -1
  77. package/dist/esm/{breakpoints.subject-BtghxYYt.js → breakpoints.subject-C7sMRxmL.js} +1 -1
  78. package/dist/esm/index.js +3 -3
  79. package/dist/esm/initialize-W3od-FM9.js +1 -1
  80. package/dist/esm/{tokens.esm-DcKTia-G.js → tokens.esm-CggbMUrI.js} +1 -1
  81. package/dist/esm/{window-resize.decorator-DJtj2dCF.js → window-resize.decorator-CzU20wtn.js} +1 -1
  82. package/dist/esm-es5/bal-carousel_2.entry.js +1 -1
  83. package/dist/esm-es5/bal-field_5.entry.js +1 -1
  84. package/dist/esm-es5/bal-hint_5.entry.js +1 -1
  85. package/dist/esm-es5/bal-list_8.entry.js +1 -1
  86. package/dist/esm-es5/bal-logo.entry.js +1 -1
  87. package/dist/esm-es5/bal-nav_8.entry.js +1 -1
  88. package/dist/esm-es5/bal-navbar_5.entry.js +1 -1
  89. package/dist/esm-es5/bal-pagination.entry.js +1 -1
  90. package/dist/esm-es5/bal-progress-bar.entry.js +1 -1
  91. package/dist/esm-es5/bal-segment_2.entry.js +1 -1
  92. package/dist/esm-es5/bal-shape.entry.js +1 -1
  93. package/dist/esm-es5/bal-steps.entry.js +1 -1
  94. package/dist/esm-es5/bal-tab-item_2.entry.js +1 -1
  95. package/dist/esm-es5/{breakpoints.decorator-CFE2cXqN.js → breakpoints.decorator-D8tyvKfl.js} +1 -1
  96. package/dist/esm-es5/{breakpoints.subject-BtghxYYt.js → breakpoints.subject-C7sMRxmL.js} +1 -1
  97. package/dist/esm-es5/index.js +1 -1
  98. package/dist/esm-es5/initialize-W3od-FM9.js +1 -1
  99. package/dist/esm-es5/{window-resize.decorator-DJtj2dCF.js → window-resize.decorator-CzU20wtn.js} +1 -1
  100. package/package.json +6 -6
  101. package/dist/baloise-design-system/p-0732a81f81.entry.js +0 -1
  102. package/dist/baloise-design-system/p-6620c99966.system.entry.js +0 -1
  103. /package/dist/baloise-design-system/{p-DcKTia-G.js → p-CggbMUrI.js} +0 -0
  104. /package/dist/baloise-design-system/{p-q1IO5uRR.system.js → p-DYEfn6Be.system.js} +0 -0
  105. /package/dist/esm-es5/{tokens.esm-DcKTia-G.js → tokens.esm-CggbMUrI.js} +0 -0
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,r,n){function i(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,a){function o(t){try{s(n.next(t))}catch(t){a(t)}}function u(t){try{s(n["throw"](t))}catch(t){a(t)}}function s(t){t.done?r(t.value):i(t.value).then(o,u)}s((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,o=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return o.next=u(0),o["throw"]=u(1),o["return"]=u(2),typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(t){return function(e){return s([t,e])}}function s(u){if(n)throw new TypeError("Generator is already executing.");while(o&&(o=0,u[0]&&(r=0)),r)try{if(n=1,i&&(a=u[0]&2?i["return"]:u[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;if(i=0,a)u=[u[0]&2,a.value];switch(u[0]){case 0:case 1:a=u;break;case 4:r.label++;return{value:u[1],done:false};case 5:r.label++;i=u[1];u=[0];continue;case 7:u=r.ops.pop();r.trys.pop();continue;default:if(!(a=r.trys,a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){r.label=u[1];break}if(u[0]===6&&r.label<a[1]){r.label=a[1];a=u;break}if(a&&r.label<a[2]){r.label=a[2];r.ops.push(u);break}if(a[2])r.ops.pop();r.trys.pop();continue}u=e.call(t,r)}catch(t){u=[6,t];i=0}finally{n=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,a;n<i;n++){if(a||!(n in e)){if(!a)a=Array.prototype.slice.call(e,0,n);a[n]=e[n]}}return t.concat(a||Array.prototype.slice.call(e))};System.register(["./p-PNu_g_s6.system.js","./p-Cjiw70Dk.system.js","./p-BbAtjg9Y.system.js","./p-CvHtWfhm.system.js","./p-Dou6adza.system.js","./p-DvahsaGu.system.js","./p-DtlqgdI2.system.js","./p-C8LDaK6Z.system.js","./p-BpMXwP_q.system.js","./p-D7_eHNTI.system.js","./p-4Y53iwfN.system.js","./p-CpWDVANq.system.js","./p-Bzy18UgU.system.js","./p-D1opIX9W.system.js","./p-BM_oHMik.system.js","./p-DdX8FaaK.system.js","./p-DDPYMMGG.system.js","./p-q1IO5uRR.system.js"],(function(t){"use strict";var e,r,n,i,a,o,u,s,c,f,l,v,p,d,b,h,_;return{setters:[function(t){e=t.r;r=t.h;n=t.H;i=t.g;a=t.c},function(t){o=t._;u=t.a},function(t){s=t.B},function(t){c=t.B},function(t){f=t.p},function(t){l=t.b},function(t){v=t.a;p=t.i},function(t){d=t.L},function(t){b=t.L},function(t){h=t.b},function(t){_=t.L},null,null,null,null,null,null,null],execute:function(){var m="@media (hover: hover)and (pointer: fine){.bal-hint__icon:focus-visible:not(:active){-webkit-box-shadow:var(--bal-focus-shadow) !important;box-shadow:var(--bal-focus-shadow) !important}}:root{--bal-hint-content-background:var(--bal-color-grey-2);--bal-hint-content-border-color:var(--bal-color-grey-2);--bal-hint-icon-color-hover:var(--bal-color-light-blue-5)}.bal-hint{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-block}.bal-hint__icon{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;z-index:var(--bal-z-index-popup) !important}.bal-hint__icon:hover svg,.bal-hint__icon:hover g,.bal-hint__icon:hover path,.bal-hint__icon:hover circle{fill:var(--bal-hint-icon-color-hover)}.bal-hint .bal-popup__container{z-index:var(--bal-z-index-popup);background:var(--bal-hint-content-background);border:8px solid var(--bal-hint-content-border-color)}.bal-hint__content{width:auto;max-width:30rem;min-width:16.25rem;display:-ms-flexbox;display:flex;gap:1.5rem;-ms-flex-direction:column;flex-direction:column}@media screen and (max-width: 768px){.bal-hint__content{padding:1.25rem;min-height:100%}.bal-hint__content>div{-ms-flex:1;flex:1}}.bal-hint__content__title{display:block;margin-bottom:1rem}.bal-hint__content__title__heading{font-family:var(--bal-title-font-family);font-weight:var(--bal-title-font-weight);font-size:var(--bal-text-size-x-large);line-height:var(--bal-line-height-x-large)}@media screen and (min-width: 769px),print{.bal-hint__content__title__heading{font-size:var(--bal-text-size-x-large-tablet);line-height:var(--bal-line-height-tablet-x-large)}}@media screen and (min-width: 1024px){.bal-hint__content__title__heading{font-size:var(--bal-text-size-x-large-desktop);line-height:var(--bal-line-height-desktop-x-large)}}@media screen and (min-width: 769px),print{.bal-hint__content__buttons--is-hidden-desktop{display:none !important}}.bal-hint__content__text__field{font-family:var(--bal-font-family-text);font-weight:var(--bal-font-weight-regular);line-height:var(--bal-text-line-height-text);font-size:var(--bal-text-size-normal)}.bal-hint__overlay__content{position:fixed;display:none;overflow:auto;top:0;left:0;right:0;bottom:0;z-index:var(--bal-z-index-popup)}.bal-hint__overlay__content--active{display:block}";var g=t("bal_hint",function(){function t(t){var r=this;e(this,t);this.bodyScrollHandler=new c;this.componentId="bal-hint-".concat(y++);this.isActive=false;this.innerCloseLabel="Close";this.isMobile=l.isMobile;this.small=false;this.onPopupChange=function(t){r.isActive=t.detail;if(r.isMobile){if(r.isActive){r.bodyScrollHandler.disable()}else{r.bodyScrollHandler.enable()}}f(t)}}t.prototype.connectedCallback=function(){this.bodyScrollHandler.connect()};t.prototype.componentDidRender=function(){this.updateContent()};t.prototype.disconnectedCallback=function(){this.bodyScrollHandler.disconnect()};t.prototype.breakpointListener=function(t){var e=t.mobile;if(e!==this.isMobile){this.isActive=false}this.isMobile=e};t.prototype.configChanged=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(!this.closeLabel){switch(t.language){case"de":this.innerCloseLabel="Schliessen";break;case"fr":this.innerCloseLabel="Fermer";break;case"it":this.innerCloseLabel="Chiudere";break;case"nl":this.innerCloseLabel="Sluiten";break;default:this.innerCloseLabel="Close";break}}return[2]}))}))};t.prototype.toggle=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.isActive){this.dismiss()}else{this.present()}return[2]}))}))};t.prototype.present=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.popupElement){this.popupElement.present()}this.isActive=true;return[2]}))}))};t.prototype.dismiss=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.popupElement){this.popupElement.dismiss()}this.isActive=false;return[2]}))}))};t.prototype.updateContent=function(){if(this.hintContentEl&&this.slotWrapperEl){this.hintContentEl.innerHTML=this.slotWrapperEl.innerHTML}};t.prototype.render=function(){var t=this;var e=s.block("hint");var i=e.element("icon");var a=e.element("content");var o=a.element("buttons");var u=function(){return r("bal-icon",{class:Object.assign({},i.class()),"bal-popup":t.componentId,"data-testid":"bal-hint-trigger","aria-haspopup":"true",role:"button",name:"info-circle",tabindex:0,onKeyDown:function(e){if(v(e)||p(e)){e.preventDefault();t.toggle()}}})};var c=function(){return r("div",{class:Object.assign({},a.class()),"data-testid":"bal-hint-content"},r("div",{ref:function(e){return t.hintContentEl=e}}),r("bal-button-group",{class:Object.assign(Object.assign({},o.class()),o.modifier("is-hidden-desktop").class(t.small))},r("bal-button",{"data-testid":"bal-hint-close",color:"info",onClick:function(){return t.dismiss()}},t.closeLabel?t.closeLabel:t.innerCloseLabel)))};var f=function(){return r("div",{class:Object.assign({},e.element("popup").class())},r(u,null),r("bal-popup",{id:t.componentId,placement:"right",closable:true,ref:function(e){return t.popupElement=e},onBalChange:t.onPopupChange,variant:t.isMobile?"fullscreen":"popover",offset:t.isMobile?0:16},r("bal-popup-content",null,r(c,null))))};return r(n,{class:Object.assign({},e.class())},r(f,null),r("div",{ref:function(e){return t.slotWrapperEl=e},style:{display:"none"}},r("slot",null)))};Object.defineProperty(t.prototype,"element",{get:function(){return i(this)},enumerable:false,configurable:true});return t}());o([d(),u("design:type",Function),u("design:paramtypes",[Object]),u("design:returntype",void 0)],g.prototype,"breakpointListener",null);o([b(),u("design:type",Function),u("design:paramtypes",[Object]),u("design:returntype",Promise)],g.prototype,"configChanged",null);var y=0;g.style=m;var w=t("bal_hint_text",function(){function t(t){e(this,t)}t.prototype.render=function(){var t=s.block("hint");var e=t.element("content");var i=e.element("text");var a=i.element("field");return r(n,{key:"24898db6c3c51d19a7df6552a2e0f370c8812f95",class:Object.assign({},i.class())},r("p",{key:"2ff7501b81213d1a553f2a9a9c98df6d9577e5e8",class:Object.assign({},a.class())},r("slot",{key:"e2f5ecd78ad99fc53713576807011f39884ad7fb"})))};return t}());var x=t("bal_hint_title",function(){function t(t){e(this,t)}t.prototype.render=function(){var t=s.block("hint");var e=t.element("content");var i=e.element("title");var a=i.element("heading");return r(n,{key:"6304fd03629ecdbaeff48777da6e9950a02e02bf",class:Object.assign({},i.class())},r("h3",{key:"5cdfc4c2319f7b8b17f23d02aeae7cbc534134af",class:Object.assign({},a.class())},r("span",{key:"6e5ce498f0574fe356778d87fb98f59b446bd8e3"},r("slot",{key:"9604fad3ee38908e2a51ab295e7d17dad7b3d7fc"}))))};return t}());var j="top";var O="bottom";var k="right";var z="left";var A="auto";var M=[j,O,k,z];var P="start";var C="end";var D="clippingParents";var E="viewport";var S="popper";var B="reference";var L=M.reduce((function(t,e){return t.concat([e+"-"+P,e+"-"+C])}),[]);var q=[].concat(M,[A]).reduce((function(t,e){return t.concat([e,e+"-"+P,e+"-"+C])}),[]);var I="beforeRead";var T="read";var W="afterRead";var F="beforeMain";var R="main";var H="afterMain";var N="beforeWrite";var G="write";var K="afterWrite";var U=[I,T,W,F,R,H,N,G,K];function X(t){return t?(t.nodeName||"").toLowerCase():null}function Y(t){if(t==null){return window}if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e?e.defaultView||window:window}return t}function V(t){var e=Y(t).Element;return t instanceof e||t instanceof Element}function Z(t){var e=Y(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function J(t){if(typeof ShadowRoot==="undefined"){return false}var e=Y(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function Q(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var r=e.styles[t]||{};var n=e.attributes[t]||{};var i=e.elements[t];if(!Z(i)||!X(i)){return}Object.assign(i.style,r);Object.keys(n).forEach((function(t){var e=n[t];if(e===false){i.removeAttribute(t)}else{i.setAttribute(t,e===true?"":e)}}))}))}function $(t){var e=t.state;var r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(e.elements.popper.style,r.popper);e.styles=r;if(e.elements.arrow){Object.assign(e.elements.arrow.style,r.arrow)}return function(){Object.keys(e.elements).forEach((function(t){var n=e.elements[t];var i=e.attributes[t]||{};var a=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:r[t]);var o=a.reduce((function(t,e){t[e]="";return t}),{});if(!Z(n)||!X(n)){return}Object.assign(n.style,o);Object.keys(i).forEach((function(t){n.removeAttribute(t)}))}))}}var tt={name:"applyStyles",enabled:true,phase:"write",fn:Q,effect:$,requires:["computeStyles"]};function et(t){return t.split("-")[0]}var rt=Math.max;var nt=Math.min;var it=Math.round;function at(){var t=navigator.userAgentData;if(t!=null&&t.brands&&Array.isArray(t.brands)){return t.brands.map((function(t){return t.brand+"/"+t.version})).join(" ")}return navigator.userAgent}function ot(){return!/^((?!chrome|android).)*safari/i.test(at())}function ut(t,e,r){if(e===void 0){e=false}if(r===void 0){r=false}var n=t.getBoundingClientRect();var i=1;var a=1;if(e&&Z(t)){i=t.offsetWidth>0?it(n.width)/t.offsetWidth||1:1;a=t.offsetHeight>0?it(n.height)/t.offsetHeight||1:1}var o=V(t)?Y(t):window,u=o.visualViewport;var s=!ot()&&r;var c=(n.left+(s&&u?u.offsetLeft:0))/i;var f=(n.top+(s&&u?u.offsetTop:0))/a;var l=n.width/i;var v=n.height/a;return{width:l,height:v,top:f,right:c+l,bottom:f+v,left:c,x:c,y:f}}function st(t){var e=ut(t);var r=t.offsetWidth;var n=t.offsetHeight;if(Math.abs(e.width-r)<=1){r=e.width}if(Math.abs(e.height-n)<=1){n=e.height}return{x:t.offsetLeft,y:t.offsetTop,width:r,height:n}}function ct(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e)){return true}else if(r&&J(r)){var n=e;do{if(n&&t.isSameNode(n)){return true}n=n.parentNode||n.host}while(n)}return false}function ft(t){return Y(t).getComputedStyle(t)}function lt(t){return["table","td","th"].indexOf(X(t))>=0}function vt(t){return((V(t)?t.ownerDocument:t.document)||window.document).documentElement}function pt(t){if(X(t)==="html"){return t}return t.assignedSlot||t.parentNode||(J(t)?t.host:null)||vt(t)}function dt(t){if(!Z(t)||ft(t).position==="fixed"){return null}return t.offsetParent}function bt(t){var e=/firefox/i.test(at());var r=/Trident/i.test(at());if(r&&Z(t)){var n=ft(t);if(n.position==="fixed"){return null}}var i=pt(t);if(J(i)){i=i.host}while(Z(i)&&["html","body"].indexOf(X(i))<0){var a=ft(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||e&&a.willChange==="filter"||e&&a.filter&&a.filter!=="none"){return i}else{i=i.parentNode}}return null}function ht(t){var e=Y(t);var r=dt(t);while(r&&lt(r)&&ft(r).position==="static"){r=dt(r)}if(r&&(X(r)==="html"||X(r)==="body"&&ft(r).position==="static")){return e}return r||bt(t)||e}function _t(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function mt(t,e,r){return rt(t,nt(e,r))}function gt(t,e,r){var n=mt(t,e,r);return n>r?r:n}function yt(){return{top:0,right:0,bottom:0,left:0}}function wt(t){return Object.assign({},yt(),t)}function xt(t,e){return e.reduce((function(e,r){e[r]=t;return e}),{})}var jt=function t(e,r){e=typeof e==="function"?e(Object.assign({},r.rects,{placement:r.placement})):e;return wt(typeof e!=="number"?e:xt(e,M))};function Ot(t){var e;var r=t.state,n=t.name,i=t.options;var a=r.elements.arrow;var o=r.modifiersData.popperOffsets;var u=et(r.placement);var s=_t(u);var c=[z,k].indexOf(u)>=0;var f=c?"height":"width";if(!a||!o){return}var l=jt(i.padding,r);var v=st(a);var p=s==="y"?j:z;var d=s==="y"?O:k;var b=r.rects.reference[f]+r.rects.reference[s]-o[s]-r.rects.popper[f];var h=o[s]-r.rects.reference[s];var _=ht(a);var m=_?s==="y"?_.clientHeight||0:_.clientWidth||0:0;var g=b/2-h/2;var y=l[p];var w=m-v[f]-l[d];var x=m/2-v[f]/2+g;var A=mt(y,x,w);var M=s;r.modifiersData[n]=(e={},e[M]=A,e.centerOffset=A-x,e)}function kt(t){var e=t.state,r=t.options;var n=r.element,i=n===void 0?"[data-popper-arrow]":n;if(i==null){return}if(typeof i==="string"){i=e.elements.popper.querySelector(i);if(!i){return}}if(!ct(e.elements.popper,i)){return}e.elements.arrow=i}var zt={name:"arrow",enabled:true,phase:"main",fn:Ot,effect:kt,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function At(t){return t.split("-")[1]}var Mt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Pt(t,e){var r=t.x,n=t.y;var i=e.devicePixelRatio||1;return{x:it(r*i)/i||0,y:it(n*i)/i||0}}function Ct(t){var e;var r=t.popper,n=t.popperRect,i=t.placement,a=t.variation,o=t.offsets,u=t.position,s=t.gpuAcceleration,c=t.adaptive,f=t.roundOffsets,l=t.isFixed;var v=o.x,p=v===void 0?0:v,d=o.y,b=d===void 0?0:d;var h=typeof f==="function"?f({x:p,y:b}):{x:p,y:b};p=h.x;b=h.y;var _=o.hasOwnProperty("x");var m=o.hasOwnProperty("y");var g=z;var y=j;var w=window;if(c){var x=ht(r);var A="clientHeight";var M="clientWidth";if(x===Y(r)){x=vt(r);if(ft(x).position!=="static"&&u==="absolute"){A="scrollHeight";M="scrollWidth"}}x=x;if(i===j||(i===z||i===k)&&a===C){y=O;var P=l&&x===w&&w.visualViewport?w.visualViewport.height:x[A];b-=P-n.height;b*=s?1:-1}if(i===z||(i===j||i===O)&&a===C){g=k;var D=l&&x===w&&w.visualViewport?w.visualViewport.width:x[M];p-=D-n.width;p*=s?1:-1}}var E=Object.assign({position:u},c&&Mt);var S=f===true?Pt({x:p,y:b},Y(r)):{x:p,y:b};p=S.x;b=S.y;if(s){var B;return Object.assign({},E,(B={},B[y]=m?"0":"",B[g]=_?"0":"",B.transform=(w.devicePixelRatio||1)<=1?"translate("+p+"px, "+b+"px)":"translate3d("+p+"px, "+b+"px, 0)",B))}return Object.assign({},E,(e={},e[y]=m?b+"px":"",e[g]=_?p+"px":"",e.transform="",e))}function Dt(t){var e=t.state,r=t.options;var n=r.gpuAcceleration,i=n===void 0?true:n,a=r.adaptive,o=a===void 0?true:a,u=r.roundOffsets,s=u===void 0?true:u;var c={placement:et(e.placement),variation:At(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};if(e.modifiersData.popperOffsets!=null){e.styles.popper=Object.assign({},e.styles.popper,Ct(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:s})))}if(e.modifiersData.arrow!=null){e.styles.arrow=Object.assign({},e.styles.arrow,Ct(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:false,roundOffsets:s})))}e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var Et={name:"computeStyles",enabled:true,phase:"beforeWrite",fn:Dt,data:{}};var St={passive:true};function Bt(t){var e=t.state,r=t.instance,n=t.options;var i=n.scroll,a=i===void 0?true:i,o=n.resize,u=o===void 0?true:o;var s=Y(e.elements.popper);var c=[].concat(e.scrollParents.reference,e.scrollParents.popper);if(a){c.forEach((function(t){t.addEventListener("scroll",r.update,St)}))}if(u){s.addEventListener("resize",r.update,St)}return function(){if(a){c.forEach((function(t){t.removeEventListener("scroll",r.update,St)}))}if(u){s.removeEventListener("resize",r.update,St)}}}var Lt={name:"eventListeners",enabled:true,phase:"write",fn:function t(){},effect:Bt,data:{}};var qt={left:"right",right:"left",bottom:"top",top:"bottom"};function It(t){return t.replace(/left|right|bottom|top/g,(function(t){return qt[t]}))}var Tt={start:"end",end:"start"};function Wt(t){return t.replace(/start|end/g,(function(t){return Tt[t]}))}function Ft(t){var e=Y(t);var r=e.pageXOffset;var n=e.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Rt(t){return ut(vt(t)).left+Ft(t).scrollLeft}function Ht(t,e){var r=Y(t);var n=vt(t);var i=r.visualViewport;var a=n.clientWidth;var o=n.clientHeight;var u=0;var s=0;if(i){a=i.width;o=i.height;var c=ot();if(c||!c&&e==="fixed"){u=i.offsetLeft;s=i.offsetTop}}return{width:a,height:o,x:u+Rt(t),y:s}}function Nt(t){var e;var r=vt(t);var n=Ft(t);var i=(e=t.ownerDocument)==null?void 0:e.body;var a=rt(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0);var o=rt(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0);var u=-n.scrollLeft+Rt(t);var s=-n.scrollTop;if(ft(i||r).direction==="rtl"){u+=rt(r.clientWidth,i?i.clientWidth:0)-a}return{width:a,height:o,x:u,y:s}}function Gt(t){var e=ft(t),r=e.overflow,n=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function Kt(t){if(["html","body","#document"].indexOf(X(t))>=0){return t.ownerDocument.body}if(Z(t)&&Gt(t)){return t}return Kt(pt(t))}function Ut(t,e){var r;if(e===void 0){e=[]}var n=Kt(t);var i=n===((r=t.ownerDocument)==null?void 0:r.body);var a=Y(n);var o=i?[a].concat(a.visualViewport||[],Gt(n)?n:[]):n;var u=e.concat(o);return i?u:u.concat(Ut(pt(o)))}function Xt(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Yt(t,e){var r=ut(t,false,e==="fixed");r.top=r.top+t.clientTop;r.left=r.left+t.clientLeft;r.bottom=r.top+t.clientHeight;r.right=r.left+t.clientWidth;r.width=t.clientWidth;r.height=t.clientHeight;r.x=r.left;r.y=r.top;return r}function Vt(t,e,r){return e===E?Xt(Ht(t,r)):V(e)?Yt(e,r):Xt(Nt(vt(t)))}function Zt(t){var e=Ut(pt(t));var r=["absolute","fixed"].indexOf(ft(t).position)>=0;var n=r&&Z(t)?ht(t):t;if(!V(n)){return[]}return e.filter((function(t){return V(t)&&ct(t,n)&&X(t)!=="body"}))}function Jt(t,e,r,n){var i=e==="clippingParents"?Zt(t):[].concat(e);var a=[].concat(i,[r]);var o=a[0];var u=a.reduce((function(e,r){var i=Vt(t,r,n);e.top=rt(i.top,e.top);e.right=nt(i.right,e.right);e.bottom=nt(i.bottom,e.bottom);e.left=rt(i.left,e.left);return e}),Vt(t,o,n));u.width=u.right-u.left;u.height=u.bottom-u.top;u.x=u.left;u.y=u.top;return u}function Qt(t){var e=t.reference,r=t.element,n=t.placement;var i=n?et(n):null;var a=n?At(n):null;var o=e.x+e.width/2-r.width/2;var u=e.y+e.height/2-r.height/2;var s;switch(i){case j:s={x:o,y:e.y-r.height};break;case O:s={x:o,y:e.y+e.height};break;case k:s={x:e.x+e.width,y:u};break;case z:s={x:e.x-r.width,y:u};break;default:s={x:e.x,y:e.y}}var c=i?_t(i):null;if(c!=null){var f=c==="y"?"height":"width";switch(a){case P:s[c]=s[c]-(e[f]/2-r[f]/2);break;case C:s[c]=s[c]+(e[f]/2-r[f]/2);break}}return s}function $t(t,e){if(e===void 0){e={}}var r=e,n=r.placement,i=n===void 0?t.placement:n,a=r.strategy,o=a===void 0?t.strategy:a,u=r.boundary,s=u===void 0?D:u,c=r.rootBoundary,f=c===void 0?E:c,l=r.elementContext,v=l===void 0?S:l,p=r.altBoundary,d=p===void 0?false:p,b=r.padding,h=b===void 0?0:b;var _=wt(typeof h!=="number"?h:xt(h,M));var m=v===S?B:S;var g=t.rects.popper;var y=t.elements[d?m:v];var w=Jt(V(y)?y:y.contextElement||vt(t.elements.popper),s,f,o);var x=ut(t.elements.reference);var z=Qt({reference:x,element:g,placement:i});var A=Xt(Object.assign({},g,z));var P=v===S?A:x;var C={top:w.top-P.top+_.top,bottom:P.bottom-w.bottom+_.bottom,left:w.left-P.left+_.left,right:P.right-w.right+_.right};var L=t.modifiersData.offset;if(v===S&&L){var q=L[i];Object.keys(C).forEach((function(t){var e=[k,O].indexOf(t)>=0?1:-1;var r=[j,O].indexOf(t)>=0?"y":"x";C[t]+=q[r]*e}))}return C}function te(t,e){if(e===void 0){e={}}var r=e,n=r.placement,i=r.boundary,a=r.rootBoundary,o=r.padding,u=r.flipVariations,s=r.allowedAutoPlacements,c=s===void 0?q:s;var f=At(n);var l=f?u?L:L.filter((function(t){return At(t)===f})):M;var v=l.filter((function(t){return c.indexOf(t)>=0}));if(v.length===0){v=l}var p=v.reduce((function(e,r){e[r]=$t(t,{placement:r,boundary:i,rootBoundary:a,padding:o})[et(r)];return e}),{});return Object.keys(p).sort((function(t,e){return p[t]-p[e]}))}function ee(t){if(et(t)===A){return[]}var e=It(t);return[Wt(t),e,Wt(e)]}function re(t){var e=t.state,r=t.options,n=t.name;if(e.modifiersData[n]._skip){return}var i=r.mainAxis,a=i===void 0?true:i,o=r.altAxis,u=o===void 0?true:o,s=r.fallbackPlacements,c=r.padding,f=r.boundary,l=r.rootBoundary,v=r.altBoundary,p=r.flipVariations,d=p===void 0?true:p,b=r.allowedAutoPlacements;var h=e.options.placement;var _=et(h);var m=_===h;var g=s||(m||!d?[It(h)]:ee(h));var y=[h].concat(g).reduce((function(t,r){return t.concat(et(r)===A?te(e,{placement:r,boundary:f,rootBoundary:l,padding:c,flipVariations:d,allowedAutoPlacements:b}):r)}),[]);var w=e.rects.reference;var x=e.rects.popper;var M=new Map;var C=true;var D=y[0];for(var E=0;E<y.length;E++){var S=y[E];var B=et(S);var L=At(S)===P;var q=[j,O].indexOf(B)>=0;var I=q?"width":"height";var T=$t(e,{placement:S,boundary:f,rootBoundary:l,altBoundary:v,padding:c});var W=q?L?k:z:L?O:j;if(w[I]>x[I]){W=It(W)}var F=It(W);var R=[];if(a){R.push(T[B]<=0)}if(u){R.push(T[W]<=0,T[F]<=0)}if(R.every((function(t){return t}))){D=S;C=false;break}M.set(S,R)}if(C){var H=d?3:1;var N=function t(e){var r=y.find((function(t){var r=M.get(t);if(r){return r.slice(0,e).every((function(t){return t}))}}));if(r){D=r;return"break"}};for(var G=H;G>0;G--){var K=N(G);if(K==="break")break}}if(e.placement!==D){e.modifiersData[n]._skip=true;e.placement=D;e.reset=true}}var ne={name:"flip",enabled:true,phase:"main",fn:re,requiresIfExists:["offset"],data:{_skip:false}};function ie(t,e,r){if(r===void 0){r={x:0,y:0}}return{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function ae(t){return[j,k,O,z].some((function(e){return t[e]>=0}))}function oe(t){var e=t.state,r=t.name;var n=e.rects.reference;var i=e.rects.popper;var a=e.modifiersData.preventOverflow;var o=$t(e,{elementContext:"reference"});var u=$t(e,{altBoundary:true});var s=ie(o,n);var c=ie(u,i,a);var f=ae(s);var l=ae(c);e.modifiersData[r]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:l};e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":l})}var ue={name:"hide",enabled:true,phase:"main",requiresIfExists:["preventOverflow"],fn:oe};function se(t,e,r){var n=et(t);var i=[z,j].indexOf(n)>=0?-1:1;var a=typeof r==="function"?r(Object.assign({},e,{placement:t})):r,o=a[0],u=a[1];o=o||0;u=(u||0)*i;return[z,k].indexOf(n)>=0?{x:u,y:o}:{x:o,y:u}}function ce(t){var e=t.state,r=t.options,n=t.name;var i=r.offset,a=i===void 0?[0,0]:i;var o=q.reduce((function(t,r){t[r]=se(r,e.rects,a);return t}),{});var u=o[e.placement],s=u.x,c=u.y;if(e.modifiersData.popperOffsets!=null){e.modifiersData.popperOffsets.x+=s;e.modifiersData.popperOffsets.y+=c}e.modifiersData[n]=o}var fe={name:"offset",enabled:true,phase:"main",requires:["popperOffsets"],fn:ce};function le(t){var e=t.state,r=t.name;e.modifiersData[r]=Qt({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}var ve={name:"popperOffsets",enabled:true,phase:"read",fn:le,data:{}};function pe(t){return t==="x"?"y":"x"}function de(t){var e=t.state,r=t.options,n=t.name;var i=r.mainAxis,a=i===void 0?true:i,o=r.altAxis,u=o===void 0?false:o,s=r.boundary,c=r.rootBoundary,f=r.altBoundary,l=r.padding,v=r.tether,p=v===void 0?true:v,d=r.tetherOffset,b=d===void 0?0:d;var h=$t(e,{boundary:s,rootBoundary:c,padding:l,altBoundary:f});var _=et(e.placement);var m=At(e.placement);var g=!m;var y=_t(_);var w=pe(y);var x=e.modifiersData.popperOffsets;var A=e.rects.reference;var M=e.rects.popper;var C=typeof b==="function"?b(Object.assign({},e.rects,{placement:e.placement})):b;var D=typeof C==="number"?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C);var E=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null;var S={x:0,y:0};if(!x){return}if(a){var B;var L=y==="y"?j:z;var q=y==="y"?O:k;var I=y==="y"?"height":"width";var T=x[y];var W=T+h[L];var F=T-h[q];var R=p?-M[I]/2:0;var H=m===P?A[I]:M[I];var N=m===P?-M[I]:-A[I];var G=e.elements.arrow;var K=p&&G?st(G):{width:0,height:0};var U=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:yt();var X=U[L];var Y=U[q];var V=mt(0,A[I],K[I]);var Z=g?A[I]/2-R-V-X-D.mainAxis:H-V-X-D.mainAxis;var J=g?-A[I]/2+R+V+Y+D.mainAxis:N+V+Y+D.mainAxis;var Q=e.elements.arrow&&ht(e.elements.arrow);var $=Q?y==="y"?Q.clientTop||0:Q.clientLeft||0:0;var tt=(B=E==null?void 0:E[y])!=null?B:0;var it=T+Z-tt-$;var at=T+J-tt;var ot=mt(p?nt(W,it):W,T,p?rt(F,at):F);x[y]=ot;S[y]=ot-T}if(u){var ut;var ct=y==="x"?j:z;var ft=y==="x"?O:k;var lt=x[w];var vt=w==="y"?"height":"width";var pt=lt+h[ct];var dt=lt-h[ft];var bt=[j,z].indexOf(_)!==-1;var wt=(ut=E==null?void 0:E[w])!=null?ut:0;var xt=bt?pt:lt-A[vt]-M[vt]-wt+D.altAxis;var jt=bt?lt+A[vt]+M[vt]-wt-D.altAxis:dt;var Ot=p&&bt?gt(xt,lt,jt):mt(p?xt:pt,lt,p?jt:dt);x[w]=Ot;S[w]=Ot-lt}e.modifiersData[n]=S}var be={name:"preventOverflow",enabled:true,phase:"main",fn:de,requiresIfExists:["offset"]};function he(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function _e(t){if(t===Y(t)||!Z(t)){return Ft(t)}else{return he(t)}}function me(t){var e=t.getBoundingClientRect();var r=it(e.width)/t.offsetWidth||1;var n=it(e.height)/t.offsetHeight||1;return r!==1||n!==1}function ge(t,e,r){if(r===void 0){r=false}var n=Z(e);var i=Z(e)&&me(e);var a=vt(e);var o=ut(t,i,r);var u={scrollLeft:0,scrollTop:0};var s={x:0,y:0};if(n||!n&&!r){if(X(e)!=="body"||Gt(a)){u=_e(e)}if(Z(e)){s=ut(e,true);s.x+=e.clientLeft;s.y+=e.clientTop}else if(a){s.x=Rt(a)}}return{x:o.left+u.scrollLeft-s.x,y:o.top+u.scrollTop-s.y,width:o.width,height:o.height}}function ye(t){var e=new Map;var r=new Set;var n=[];t.forEach((function(t){e.set(t.name,t)}));function i(t){r.add(t.name);var a=[].concat(t.requires||[],t.requiresIfExists||[]);a.forEach((function(t){if(!r.has(t)){var n=e.get(t);if(n){i(n)}}}));n.push(t)}t.forEach((function(t){if(!r.has(t.name)){i(t)}}));return n}function we(t){var e=ye(t);return U.reduce((function(t,r){return t.concat(e.filter((function(t){return t.phase===r})))}),[])}function xe(t){var e;return function(){if(!e){e=new Promise((function(r){Promise.resolve().then((function(){e=undefined;r(t())}))}))}return e}}function je(t){var e=t.reduce((function(t,e){var r=t[e.name];t[e.name]=r?Object.assign({},r,e,{options:Object.assign({},r.options,e.options),data:Object.assign({},r.data,e.data)}):e;return t}),{});return Object.keys(e).map((function(t){return e[t]}))}var Oe={placement:"bottom",modifiers:[],strategy:"absolute"};function ke(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++){e[r]=arguments[r]}return!e.some((function(t){return!(t&&typeof t.getBoundingClientRect==="function")}))}function ze(t){if(t===void 0){t={}}var e=t,r=e.defaultModifiers,n=r===void 0?[]:r,i=e.defaultOptions,a=i===void 0?Oe:i;return function t(e,r,i){if(i===void 0){i=a}var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},Oe,a),modifiersData:{},elements:{reference:e,popper:r},attributes:{},styles:{}};var u=[];var s=false;var c={state:o,setOptions:function t(i){var u=typeof i==="function"?i(o.options):i;l();o.options=Object.assign({},a,o.options,u);o.scrollParents={reference:V(e)?Ut(e):e.contextElement?Ut(e.contextElement):[],popper:Ut(r)};var s=we(je([].concat(n,o.options.modifiers)));o.orderedModifiers=s.filter((function(t){return t.enabled}));f();return c.update()},forceUpdate:function t(){if(s){return}var e=o.elements,r=e.reference,n=e.popper;if(!ke(r,n)){return}o.rects={reference:ge(r,ht(n),o.options.strategy==="fixed"),popper:st(n)};o.reset=false;o.placement=o.options.placement;o.orderedModifiers.forEach((function(t){return o.modifiersData[t.name]=Object.assign({},t.data)}));for(var i=0;i<o.orderedModifiers.length;i++){if(o.reset===true){o.reset=false;i=-1;continue}var a=o.orderedModifiers[i],u=a.fn,f=a.options,l=f===void 0?{}:f,v=a.name;if(typeof u==="function"){o=u({state:o,options:l,name:v,instance:c})||o}}},update:xe((function(){return new Promise((function(t){c.forceUpdate();t(o)}))})),destroy:function t(){l();s=true}};if(!ke(e,r)){return c}c.setOptions(i).then((function(t){if(!s&&i.onFirstUpdate){i.onFirstUpdate(t)}}));function f(){o.orderedModifiers.forEach((function(t){var e=t.name,r=t.options,n=r===void 0?{}:r,i=t.effect;if(typeof i==="function"){var a=i({state:o,name:e,instance:c,options:n});var s=function t(){};u.push(a||s)}}))}function l(){u.forEach((function(t){return t()}));u=[]}return c}}var Ae=[Lt,ve,Et,tt,fe,ne,be,zt,ue];var Me=ze({defaultModifiers:Ae});var Pe='.bal-popover__backdrop{bottom:0;left:0;position:absolute;right:0;top:0}:root{--bal-popover-backdrop-height:100vh;--bal-popover-content-height-top-nav:100vh;--bal-popover-backdrop-background:var(--bal-color-primary-6);--bal-popover-backdrop-opacity:.8;--bal-popover-content-shadow:var(--bal-shadow-normal);--bal-popover-content-background:var(--bal-color-white);--bal-popover-content-background-grey:var(--bal-color-grey-2);--bal-popover-tooltip-background:var(--bal-color-primary-6);--bal-popover-tooltip-color:var(--bal-color-white);--bal-popover-tooltip-font-family:var(--bal-font-family-text);--bal-popover-tooltip-font-size:var(--bal-text-size-small)}.bal-popover{display:block}@media screen and (max-width: 768px){.bal-popover .bal-popover__content{min-width:100vw !important}.bal-popover .bal-select__popover{min-width:100% !important}}.bal-popover--active .bal-popover__content{display:block}.bal-popover--backdrop [bal-popover-trigger]{z-index:calc(var(--bal-z-index-popup) - 1);position:relative}@media screen and (max-width: 768px){.bal-popover--hint .bal-popover__content{min-height:100vh}.bal-popover--hint .bal-popover__content .bal-popover__content__inner{min-height:100vh}}@media screen and (min-width: 769px),print{.bal-popover--hint .bal-popover__content{max-width:20rem}}@media screen and (min-width: 1024px){.bal-popover--hint .bal-popover__content{max-width:30rem}}.bal-popover__backdrop{z-index:calc(var(--bal-z-index-popup) - 2);position:fixed;background:var(--bal-popover-backdrop-background);opacity:var(--bal-popover-backdrop-opacity);height:var(--bal-popover-backdrop-height);width:100vw}.bal-popover__content{display:none;z-index:var(--bal-z-index-popup);-webkit-box-shadow:var(--bal-popover-content-shadow);box-shadow:var(--bal-popover-content-shadow);background:var(--bal-popover-content-background);min-width:16.25rem}.bal-popover__content[data-show]{display:block}.bal-popover__content--expanded{min-width:100%}.bal-popover__content--no-shadow{-webkit-box-shadow:none;box-shadow:none}.bal-popover__content--radius-normal{border-radius:var(--bal-radius-normal)}.bal-popover__content--radius-large{border-radius:var(--bal-radius-large)}.bal-popover__content--radius-none{border-radius:0}.bal-popover__content--radius-normal-bottom-none{border-radius:var(--bal-radius-normal);border-bottom-right-radius:0;border-bottom-left-radius:0}.bal-popover__content--radius-normal-top-none{border-radius:var(--bal-radius-normal);border-top-left-radius:0;border-top-right-radius:0}.bal-popover__content--radius-large-bottom-none{border-radius:var(--bal-radius-large);border-bottom-right-radius:0;border-bottom-left-radius:0}.bal-popover__content--radius-large-top-none{border-radius:var(--bal-radius-large);border-top-left-radius:0;border-top-right-radius:0}.bal-popover__content--on-top{border-top:1px solid var(--bal-color-grey-2);height:var(--bal-popover-content-height-top-nav);overflow-y:auto}.bal-popover__content--color-grey{background:var(--bal-popover-content-background-grey)}.bal-popover__content__inner{max-height:calc(100vh - 4.5rem);overflow:auto;padding:1rem}@media screen and (min-width: 769px),print{.bal-popover__content__inner{padding:1.5rem}}@media screen and (min-width: 1024px){.bal-popover__content__inner{max-height:calc(100vh - 8rem)}}.bal-popover__content--spaceless .bal-popover__content__inner{padding:0}.bal-popover__content [data-popper-arrow]{display:none}.bal-popover__content__arrow{visibility:hidden}.bal-popover__content__arrow [data-popper-arrow]{display:block}.bal-popover__content__arrow,.bal-popover__content__arrow:before{position:absolute;width:.5rem;height:.5rem;background:inherit}.bal-popover__content__arrow:before{visibility:visible;content:"";-webkit-transform:rotate(45deg);transform:rotate(45deg)}.bal-popover__content[data-popper-placement^=top]>.bal-popover__content__arrow{bottom:-0.25rem}.bal-popover__content[data-popper-placement^=bottom]>.bal-popover__content__arrow{top:-0.25rem}.bal-popover__content[data-popper-placement^=left]>.bal-popover__content__arrow{right:-0.25rem}.bal-popover__content[data-popper-placement^=right]>.bal-popover__content__arrow{left:-0.25rem}.bal-popover--arrow .bal-popover__content__arrow{display:block}.bal-popover--tooltip .bal-popover__content{min-width:unset;background:var(--bal-popover-tooltip-background)}.bal-popover--tooltip .bal-popover__content .bal-popover__content__inner{padding:var(--bal-space-x-small)}.bal-popover--tooltip .bal-popover__content .bal-popover__content__inner,.bal-popover--tooltip .bal-popover__content .bal-popover__content__inner p{color:var(--bal-popover-tooltip-color);font-family:var(--bal-popover-tooltip-font-family);font-size:var(--bal-popover-tooltip-font-size)}';var Ce=t("bal_popover",function(){function t(t){e(this,t);this.balChange=a(this,"balChange");this.balWillAnimate=a(this,"balWillAnimate");this.balDidAnimate=a(this,"balDidAnimate");this.balPopoverPrepare=a(this,"balPopoverPrepare");this.popoverId="bal-po-".concat(De++);this.isTouch=l.isTouch;this.isInMainNav=false;this.backdropHeight=0;this.autoTrigger=false;this.hint=false;this.hover=false;this.arrow=false;this.backdrop=false;this.tooltip=false;this.offsetX=0;this.offsetY=0;this.padding=0;this.position="bottom-start";this.active=false;this.mobileTop=false}t.prototype.createLogger=function(t){this.log=t};t.prototype.activeChanged=function(t,e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){if(t===true&&t!==e){this.present({force:true})}else{this.dismiss({force:true})}return[2]}))}))};t.prototype.componentWillLoad=function(){this.backdropHeight=this.getBackdropHeight();this.triggerElement.setAttribute("aria-haspopup","true")};t.prototype.componentDidLoad=function(){var t=this;this.isInMainNav=this.footMobileNav!==null;if(this.triggerElement&&this.menuElement){this.popperInstance=Me(this.triggerElement,this.menuElement,{placement:this.tooltip?"bottom":this.position,modifiers:[this.modifierOffset,this.modifierPreventOverflow]});var e=[];var r=[];if(this.autoTrigger){e=["click"]}if(this.tooltip){e=["mouseenter","focus"];r=["mouseleave","blur"]}e.forEach((function(e){if(t.triggerElement){if(e==="click"){t.triggerElement.addEventListener(e,(function(){return t.toggle()}))}else{t.triggerElement.addEventListener(e,(function(){return t.present()}))}}}));r.forEach((function(e){if(t.triggerElement){t.triggerElement.addEventListener(e,(function(){return t.dismiss()}))}}))}};t.prototype.componentDidRender=function(){var t=this;if(this.popperInstance){this.popperInstance.setOptions((function(e){return Object.assign(Object.assign({},e),{placement:t.tooltip?"bottom":t.position,modifiers:__spreadArray(__spreadArray([],e.modifiers.filter((function(t){return t.name!=="offset"&&t.name!=="preventOverflow"})),true),[t.modifierOffset,t.modifierPreventOverflow],false)})}));this.updatePopper()}if(h.isSafari&&!this.isTouch){clearTimeout(this.componentDidRenderTimer);this.componentDidRenderTimer=setTimeout((function(){var e;var r=(e=t.el)===null||e===void 0?void 0:e.clientWidth;if(r){t.el.style.maxWidth="".concat(r,"px")}else{t.el.style.maxWidth="initial"}}))}};t.prototype.handlePopoverPrepare=function(t){var e=t.detail;if(this.popoverId!==e){this.dismiss()}};t.prototype.clickOnOutside=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(r){if(this.active){if(!this.el.contains(t.target)){this.active=false}if((e=this.backdropElement)===null||e===void 0?void 0:e.isEqualNode(t.target)){this.active=false}}return[2]}))}))};t.prototype.handleKeyUp=function(t){if(this.active&&(t.key==="Escape"||t.key==="Esc")){t.preventDefault();this.dismiss()}};t.prototype.tabOutside=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:if(!(t.key==="Tab"&&!this.el.contains(document.activeElement)&&this.active))return[3,2];return[4,this.toggle()];case 1:e.sent();e.label=2;case 2:return[2]}}))}))};t.prototype.breakpointListener=function(t){this.isTouch=t.touch;this.isInMainNav=this.footMobileNav!==null;this.backdropHeight=this.getBackdropHeight()};t.prototype.present=function(){return __awaiter(this,arguments,void 0,(function(t){var e,r;if(t===void 0){t={force:false}}return __generator(this,(function(n){if(!this.active||t.force){(e=this.menuElement)===null||e===void 0?void 0:e.setAttribute("data-show","");(r=this.menuElement)===null||r===void 0?void 0:r.setAttribute("aria-hidden","false");if(this.menuInnerElement){this.menuInnerElement.scrollTo(0,0)}this.balPopoverPrepare.emit(this.popoverId);this.balWillAnimate.emit(this.active);this.active=true;this.popperInstance.setOptions((function(t){return Object.assign(Object.assign({},t),{modifiers:__spreadArray(__spreadArray([],t.modifiers,true),[{name:"eventListeners",enabled:true}],false)})}));this.updatePopper();this.balChange.emit(this.active);this.balDidAnimate.emit(this.active)}return[2]}))}))};t.prototype.dismiss=function(){return __awaiter(this,arguments,void 0,(function(t){var e,r;if(t===void 0){t={force:false}}return __generator(this,(function(n){if(this.active||t.force){(e=this.menuElement)===null||e===void 0?void 0:e.removeAttribute("data-show");(r=this.menuElement)===null||r===void 0?void 0:r.setAttribute("aria-hidden","true");this.balWillAnimate.emit(this.active);this.active=false;this.popperInstance.setOptions((function(t){return Object.assign(Object.assign({},t),{modifiers:__spreadArray(__spreadArray([],t.modifiers,true),[{name:"eventListeners",enabled:false}],false)})}));this.updatePopper();this.balChange.emit(this.active);this.balDidAnimate.emit(this.active)}return[2]}))}))};t.prototype.toggle=function(){return __awaiter(this,arguments,void 0,(function(t){if(t===void 0){t={force:false}}return __generator(this,(function(e){switch(e.label){case 0:if(!this.active)return[3,2];return[4,this.dismiss(t)];case 1:e.sent();return[3,4];case 2:return[4,this.present(t)];case 3:e.sent();e.label=4;case 4:return[2]}}))}))};Object.defineProperty(t.prototype,"footMobileNav",{get:function(){return this.el.closest('[slot="meta-mobile-foot"]')},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"modifierOffset",{get:function(){return{name:"offset",options:{offset:[this.offsetX,this.offsetY+(this.tooltip||this.arrow?8:0)]}}},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"modifierPreventOverflow",{get:function(){return{name:"preventOverflow",options:{padding:this.arrow||this.tooltip?8:this.padding,altAxis:true}}},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"triggerElement",{get:function(){return this.el.querySelector("[bal-popover-trigger]")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"menuElement",{get:function(){return this.el.querySelector("bal-popover-content")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"menuInnerElement",{get:function(){return this.el.querySelector(".bal-popover__content__inner")},enumerable:false,configurable:true});t.prototype.getBackdropHeight=function(){if(h.hasWindow){return this.isInMainNav?(window.innerHeight-(this.isTouch?64:48))/16:window.innerHeight/16}return 0};t.prototype.updatePopper=function(){this.popperInstance.update()};t.prototype.render=function(){var t=this;var e=s.block("popover");return r(n,{key:"f4b281b4ca30365ec4b279c3e219a0109edc173d","aria-presented":this.active?"true":null,"data-id":this.popoverId,class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e.class()),e.modifier("active").class(this.active)),e.modifier("tooltip").class(this.tooltip)),e.modifier("arrow").class(this.arrow)),e.modifier("hint").class(this.hint)),e.modifier("backdrop").class(this.backdrop))},!this.mobileTop&&r("div",{key:"d40df31685649965a301ada5e1c7e7f2a629596c",ref:function(e){t.backdropElement=e},class:Object.assign({},e.element("backdrop").class(this.backdrop&&this.active)),style:{"--bal-popover-backdrop-height":"".concat(this.backdropHeight,"rem")}}),r("slot",{key:"04ec4d9a6c214d1c14a436906e80dc721349ab78"}))};Object.defineProperty(t.prototype,"el",{get:function(){return i(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{active:["activeChanged"]}},enumerable:false,configurable:true});return t}());o([_("bal-popover"),u("design:type",Function),u("design:paramtypes",[Function]),u("design:returntype",void 0)],Ce.prototype,"createLogger",null);o([d(),u("design:type",Function),u("design:paramtypes",[Object]),u("design:returntype",void 0)],Ce.prototype,"breakpointListener",null);var De=0;Ce.style=Pe;var Ee=t("bal_popover_content",function(){function t(t){e(this,t);this.isTouch=l.isTouch;this.spaceless=false;this.scrollable=0;this.contentWidth=0;this.contentMinWidth=0;this.color="white";this.expanded=false;this.radius="normal";this.noShadow=false;this.mobileTop=false;this.contentHeightOnTop=0}t.prototype.breakpointListener=function(t){if(h.hasWindow){this.contentHeightOnTop=window.innerHeight-64}};Object.defineProperty(t.prototype,"innerStyle",{get:function(){var t={};if(this.scrollable>0){t={"max-height":"".concat(this.scrollable,"px"),overflow:"auto"}}return Object.assign({},t)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"contentStyle",{get:function(){var t={};var e={};var r={"--bal-popover-content-height-top-nav":"".concat(this.contentHeightOnTop/16,"rem")};if(this.contentWidth>0){t={"max-width":"".concat(this.contentWidth,"px")}}if(this.contentMinWidth>0){e={"min-width":"".concat(this.contentMinWidth,"px")}}return Object.assign(Object.assign(Object.assign({},t),e),r)},enumerable:false,configurable:true});t.prototype.componentWillLoad=function(){if(h.hasWindow){this.contentHeightOnTop=window.innerHeight-64}};t.prototype.render=function(){var t=s.block("popover").element("content");return r(n,{key:"bc08fb0e5736f9393c5396af4a84f1127b6e4c4e",class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t.class()),t.modifier("expanded").class(this.expanded)),t.modifier("spaceless").class(this.spaceless)),t.modifier("no-shadow").class(this.noShadow)),t.modifier("radius-".concat(this.radius)).class()),t.modifier("color-".concat(this.color)).class()),t.modifier("on-top").class(this.mobileTop)),"data-testid":"bal-popover-content",role:"tooltip",style:this.contentStyle},r("div",{key:"f49ffa520c2e1cc95942973939eeff059900a9bc",class:Object.assign({},t.element("inner").class()),style:this.innerStyle},r("slot",{key:"3394b3dd89ce64a0d379e66b1ffb169e9f0401c4"})),r("div",{key:"5f75d67a77ae49667c3863b738bdc03d1dcb8121",class:Object.assign({},t.element("arrow").class()),"data-popper-arrow":true}))};Object.defineProperty(t.prototype,"el",{get:function(){return i(this)},enumerable:false,configurable:true});return t}());o([d(),u("design:type",Function),u("design:paramtypes",[Object]),u("design:returntype",void 0)],Ee.prototype,"breakpointListener",null)}}}));
1
+ var __awaiter=this&&this.__awaiter||function(t,e,r,n){function i(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,a){function o(t){try{s(n.next(t))}catch(t){a(t)}}function u(t){try{s(n["throw"](t))}catch(t){a(t)}}function s(t){t.done?r(t.value):i(t.value).then(o,u)}s((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,o=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return o.next=u(0),o["throw"]=u(1),o["return"]=u(2),typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(t){return function(e){return s([t,e])}}function s(u){if(n)throw new TypeError("Generator is already executing.");while(o&&(o=0,u[0]&&(r=0)),r)try{if(n=1,i&&(a=u[0]&2?i["return"]:u[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;if(i=0,a)u=[u[0]&2,a.value];switch(u[0]){case 0:case 1:a=u;break;case 4:r.label++;return{value:u[1],done:false};case 5:r.label++;i=u[1];u=[0];continue;case 7:u=r.ops.pop();r.trys.pop();continue;default:if(!(a=r.trys,a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){r.label=u[1];break}if(u[0]===6&&r.label<a[1]){r.label=a[1];a=u;break}if(a&&r.label<a[2]){r.label=a[2];r.ops.push(u);break}if(a[2])r.ops.pop();r.trys.pop();continue}u=e.call(t,r)}catch(t){u=[6,t];i=0}finally{n=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,a;n<i;n++){if(a||!(n in e)){if(!a)a=Array.prototype.slice.call(e,0,n);a[n]=e[n]}}return t.concat(a||Array.prototype.slice.call(e))};System.register(["./p-PNu_g_s6.system.js","./p-Cjiw70Dk.system.js","./p-BbAtjg9Y.system.js","./p-CvHtWfhm.system.js","./p-Dou6adza.system.js","./p-BT9kotrD.system.js","./p-DtlqgdI2.system.js","./p-aqkRpbjU.system.js","./p-BpMXwP_q.system.js","./p-D7_eHNTI.system.js","./p-4Y53iwfN.system.js","./p-CpWDVANq.system.js","./p-Bzy18UgU.system.js","./p-D1opIX9W.system.js","./p-BM_oHMik.system.js","./p-DdX8FaaK.system.js","./p-DDPYMMGG.system.js","./p-DYEfn6Be.system.js"],(function(t){"use strict";var e,r,n,i,a,o,u,s,c,f,l,v,p,d,b,h,_;return{setters:[function(t){e=t.r;r=t.h;n=t.H;i=t.g;a=t.c},function(t){o=t._;u=t.a},function(t){s=t.B},function(t){c=t.B},function(t){f=t.p},function(t){l=t.b},function(t){v=t.a;p=t.i},function(t){d=t.L},function(t){b=t.L},function(t){h=t.b},function(t){_=t.L},null,null,null,null,null,null,null],execute:function(){var m="@media (hover: hover)and (pointer: fine){.bal-hint__icon:focus-visible:not(:active){-webkit-box-shadow:var(--bal-focus-shadow) !important;box-shadow:var(--bal-focus-shadow) !important}}:root{--bal-hint-content-background:var(--bal-color-grey-2);--bal-hint-content-border-color:var(--bal-color-grey-2);--bal-hint-icon-color-hover:var(--bal-color-light-blue-5)}.bal-hint{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-block}.bal-hint__icon{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;z-index:var(--bal-z-index-popup) !important}.bal-hint__icon:hover svg,.bal-hint__icon:hover g,.bal-hint__icon:hover path,.bal-hint__icon:hover circle{fill:var(--bal-hint-icon-color-hover)}.bal-hint .bal-popup__container{z-index:var(--bal-z-index-popup);background:var(--bal-hint-content-background);border:8px solid var(--bal-hint-content-border-color)}.bal-hint__content{width:auto;max-width:30rem;min-width:16.25rem;display:-ms-flexbox;display:flex;gap:1.5rem;-ms-flex-direction:column;flex-direction:column}@media screen and (max-width: 768px){.bal-hint__content{padding:1.25rem;min-height:100%}.bal-hint__content>div{-ms-flex:1;flex:1}}.bal-hint__content__title{display:block;margin-bottom:1rem}.bal-hint__content__title__heading{font-family:var(--bal-title-font-family);font-weight:var(--bal-title-font-weight);font-size:var(--bal-text-size-x-large);line-height:var(--bal-line-height-x-large)}@media screen and (min-width: 769px),print{.bal-hint__content__title__heading{font-size:var(--bal-text-size-x-large-tablet);line-height:var(--bal-line-height-tablet-x-large)}}@media screen and (min-width: 1024px){.bal-hint__content__title__heading{font-size:var(--bal-text-size-x-large-desktop);line-height:var(--bal-line-height-desktop-x-large)}}@media screen and (min-width: 769px),print{.bal-hint__content__buttons--is-hidden-desktop{display:none !important}}.bal-hint__content__text__field{font-family:var(--bal-font-family-text);font-weight:var(--bal-font-weight-regular);line-height:var(--bal-text-line-height-text);font-size:var(--bal-text-size-normal)}.bal-hint__overlay__content{position:fixed;display:none;overflow:auto;top:0;left:0;right:0;bottom:0;z-index:var(--bal-z-index-popup)}.bal-hint__overlay__content--active{display:block}";var g=t("bal_hint",function(){function t(t){var r=this;e(this,t);this.bodyScrollHandler=new c;this.componentId="bal-hint-".concat(y++);this.isActive=false;this.innerCloseLabel="Close";this.isMobile=l.isMobile;this.small=false;this.onPopupChange=function(t){r.isActive=t.detail;if(r.isMobile){if(r.isActive){r.bodyScrollHandler.disable()}else{r.bodyScrollHandler.enable()}}f(t)}}t.prototype.connectedCallback=function(){this.bodyScrollHandler.connect()};t.prototype.componentDidRender=function(){this.updateContent()};t.prototype.disconnectedCallback=function(){this.bodyScrollHandler.disconnect()};t.prototype.breakpointListener=function(t){var e=t.mobile;if(e!==this.isMobile){this.isActive=false}this.isMobile=e};t.prototype.configChanged=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(!this.closeLabel){switch(t.language){case"de":this.innerCloseLabel="Schliessen";break;case"fr":this.innerCloseLabel="Fermer";break;case"it":this.innerCloseLabel="Chiudere";break;case"nl":this.innerCloseLabel="Sluiten";break;default:this.innerCloseLabel="Close";break}}return[2]}))}))};t.prototype.toggle=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.isActive){this.dismiss()}else{this.present()}return[2]}))}))};t.prototype.present=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.popupElement){this.popupElement.present()}this.isActive=true;return[2]}))}))};t.prototype.dismiss=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.popupElement){this.popupElement.dismiss()}this.isActive=false;return[2]}))}))};t.prototype.updateContent=function(){if(this.hintContentEl&&this.slotWrapperEl){this.hintContentEl.innerHTML=this.slotWrapperEl.innerHTML}};t.prototype.render=function(){var t=this;var e=s.block("hint");var i=e.element("icon");var a=e.element("content");var o=a.element("buttons");var u=function(){return r("bal-icon",{class:Object.assign({},i.class()),"bal-popup":t.componentId,"data-testid":"bal-hint-trigger","aria-haspopup":"true",role:"button",name:"info-circle",tabindex:0,onKeyDown:function(e){if(v(e)||p(e)){e.preventDefault();t.toggle()}}})};var c=function(){return r("div",{class:Object.assign({},a.class()),"data-testid":"bal-hint-content"},r("div",{ref:function(e){return t.hintContentEl=e}}),r("bal-button-group",{class:Object.assign(Object.assign({},o.class()),o.modifier("is-hidden-desktop").class(t.small))},r("bal-button",{"data-testid":"bal-hint-close",color:"info",onClick:function(){return t.dismiss()}},t.closeLabel?t.closeLabel:t.innerCloseLabel)))};var f=function(){return r("div",{class:Object.assign({},e.element("popup").class())},r(u,null),r("bal-popup",{id:t.componentId,placement:"right",closable:true,ref:function(e){return t.popupElement=e},onBalChange:t.onPopupChange,variant:t.isMobile?"fullscreen":"popover",offset:t.isMobile?0:16},r("bal-popup-content",null,r(c,null))))};return r(n,{class:Object.assign({},e.class())},r(f,null),r("div",{ref:function(e){return t.slotWrapperEl=e},style:{display:"none"}},r("slot",null)))};Object.defineProperty(t.prototype,"element",{get:function(){return i(this)},enumerable:false,configurable:true});return t}());o([d(),u("design:type",Function),u("design:paramtypes",[Object]),u("design:returntype",void 0)],g.prototype,"breakpointListener",null);o([b(),u("design:type",Function),u("design:paramtypes",[Object]),u("design:returntype",Promise)],g.prototype,"configChanged",null);var y=0;g.style=m;var w=t("bal_hint_text",function(){function t(t){e(this,t)}t.prototype.render=function(){var t=s.block("hint");var e=t.element("content");var i=e.element("text");var a=i.element("field");return r(n,{key:"24898db6c3c51d19a7df6552a2e0f370c8812f95",class:Object.assign({},i.class())},r("p",{key:"2ff7501b81213d1a553f2a9a9c98df6d9577e5e8",class:Object.assign({},a.class())},r("slot",{key:"e2f5ecd78ad99fc53713576807011f39884ad7fb"})))};return t}());var x=t("bal_hint_title",function(){function t(t){e(this,t)}t.prototype.render=function(){var t=s.block("hint");var e=t.element("content");var i=e.element("title");var a=i.element("heading");return r(n,{key:"6304fd03629ecdbaeff48777da6e9950a02e02bf",class:Object.assign({},i.class())},r("h3",{key:"5cdfc4c2319f7b8b17f23d02aeae7cbc534134af",class:Object.assign({},a.class())},r("span",{key:"6e5ce498f0574fe356778d87fb98f59b446bd8e3"},r("slot",{key:"9604fad3ee38908e2a51ab295e7d17dad7b3d7fc"}))))};return t}());var j="top";var O="bottom";var k="right";var z="left";var A="auto";var M=[j,O,k,z];var E="start";var P="end";var B="clippingParents";var D="viewport";var C="popper";var S="reference";var q=M.reduce((function(t,e){return t.concat([e+"-"+E,e+"-"+P])}),[]);var L=[].concat(M,[A]).reduce((function(t,e){return t.concat([e,e+"-"+E,e+"-"+P])}),[]);var T="beforeRead";var I="read";var W="afterRead";var F="beforeMain";var H="main";var R="afterMain";var N="beforeWrite";var U="write";var Y="afterWrite";var G=[T,I,W,F,H,R,N,U,Y];function X(t){return t?(t.nodeName||"").toLowerCase():null}function K(t){if(t==null){return window}if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e?e.defaultView||window:window}return t}function V(t){var e=K(t).Element;return t instanceof e||t instanceof Element}function J(t){var e=K(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Q(t){if(typeof ShadowRoot==="undefined"){return false}var e=K(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function Z(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var r=e.styles[t]||{};var n=e.attributes[t]||{};var i=e.elements[t];if(!J(i)||!X(i)){return}Object.assign(i.style,r);Object.keys(n).forEach((function(t){var e=n[t];if(e===false){i.removeAttribute(t)}else{i.setAttribute(t,e===true?"":e)}}))}))}function $(t){var e=t.state;var r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(e.elements.popper.style,r.popper);e.styles=r;if(e.elements.arrow){Object.assign(e.elements.arrow.style,r.arrow)}return function(){Object.keys(e.elements).forEach((function(t){var n=e.elements[t];var i=e.attributes[t]||{};var a=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:r[t]);var o=a.reduce((function(t,e){t[e]="";return t}),{});if(!J(n)||!X(n)){return}Object.assign(n.style,o);Object.keys(i).forEach((function(t){n.removeAttribute(t)}))}))}}var tt={name:"applyStyles",enabled:true,phase:"write",fn:Z,effect:$,requires:["computeStyles"]};function et(t){return t.split("-")[0]}var rt=Math.max;var nt=Math.min;var it=Math.round;function at(){var t=navigator.userAgentData;if(t!=null&&t.brands&&Array.isArray(t.brands)){return t.brands.map((function(t){return t.brand+"/"+t.version})).join(" ")}return navigator.userAgent}function ot(){return!/^((?!chrome|android).)*safari/i.test(at())}function ut(t,e,r){if(e===void 0){e=false}if(r===void 0){r=false}var n=t.getBoundingClientRect();var i=1;var a=1;if(e&&J(t)){i=t.offsetWidth>0?it(n.width)/t.offsetWidth||1:1;a=t.offsetHeight>0?it(n.height)/t.offsetHeight||1:1}var o=V(t)?K(t):window,u=o.visualViewport;var s=!ot()&&r;var c=(n.left+(s&&u?u.offsetLeft:0))/i;var f=(n.top+(s&&u?u.offsetTop:0))/a;var l=n.width/i;var v=n.height/a;return{width:l,height:v,top:f,right:c+l,bottom:f+v,left:c,x:c,y:f}}function st(t){var e=ut(t);var r=t.offsetWidth;var n=t.offsetHeight;if(Math.abs(e.width-r)<=1){r=e.width}if(Math.abs(e.height-n)<=1){n=e.height}return{x:t.offsetLeft,y:t.offsetTop,width:r,height:n}}function ct(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e)){return true}else if(r&&Q(r)){var n=e;do{if(n&&t.isSameNode(n)){return true}n=n.parentNode||n.host}while(n)}return false}function ft(t){return K(t).getComputedStyle(t)}function lt(t){return["table","td","th"].indexOf(X(t))>=0}function vt(t){return((V(t)?t.ownerDocument:t.document)||window.document).documentElement}function pt(t){if(X(t)==="html"){return t}return t.assignedSlot||t.parentNode||(Q(t)?t.host:null)||vt(t)}function dt(t){if(!J(t)||ft(t).position==="fixed"){return null}return t.offsetParent}function bt(t){var e=/firefox/i.test(at());var r=/Trident/i.test(at());if(r&&J(t)){var n=ft(t);if(n.position==="fixed"){return null}}var i=pt(t);if(Q(i)){i=i.host}while(J(i)&&["html","body"].indexOf(X(i))<0){var a=ft(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||e&&a.willChange==="filter"||e&&a.filter&&a.filter!=="none"){return i}else{i=i.parentNode}}return null}function ht(t){var e=K(t);var r=dt(t);while(r&&lt(r)&&ft(r).position==="static"){r=dt(r)}if(r&&(X(r)==="html"||X(r)==="body"&&ft(r).position==="static")){return e}return r||bt(t)||e}function _t(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function mt(t,e,r){return rt(t,nt(e,r))}function gt(t,e,r){var n=mt(t,e,r);return n>r?r:n}function yt(){return{top:0,right:0,bottom:0,left:0}}function wt(t){return Object.assign({},yt(),t)}function xt(t,e){return e.reduce((function(e,r){e[r]=t;return e}),{})}var jt=function t(e,r){e=typeof e==="function"?e(Object.assign({},r.rects,{placement:r.placement})):e;return wt(typeof e!=="number"?e:xt(e,M))};function Ot(t){var e;var r=t.state,n=t.name,i=t.options;var a=r.elements.arrow;var o=r.modifiersData.popperOffsets;var u=et(r.placement);var s=_t(u);var c=[z,k].indexOf(u)>=0;var f=c?"height":"width";if(!a||!o){return}var l=jt(i.padding,r);var v=st(a);var p=s==="y"?j:z;var d=s==="y"?O:k;var b=r.rects.reference[f]+r.rects.reference[s]-o[s]-r.rects.popper[f];var h=o[s]-r.rects.reference[s];var _=ht(a);var m=_?s==="y"?_.clientHeight||0:_.clientWidth||0:0;var g=b/2-h/2;var y=l[p];var w=m-v[f]-l[d];var x=m/2-v[f]/2+g;var A=mt(y,x,w);var M=s;r.modifiersData[n]=(e={},e[M]=A,e.centerOffset=A-x,e)}function kt(t){var e=t.state,r=t.options;var n=r.element,i=n===void 0?"[data-popper-arrow]":n;if(i==null){return}if(typeof i==="string"){i=e.elements.popper.querySelector(i);if(!i){return}}if(!ct(e.elements.popper,i)){return}e.elements.arrow=i}var zt={name:"arrow",enabled:true,phase:"main",fn:Ot,effect:kt,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function At(t){return t.split("-")[1]}var Mt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Et(t,e){var r=t.x,n=t.y;var i=e.devicePixelRatio||1;return{x:it(r*i)/i||0,y:it(n*i)/i||0}}function Pt(t){var e;var r=t.popper,n=t.popperRect,i=t.placement,a=t.variation,o=t.offsets,u=t.position,s=t.gpuAcceleration,c=t.adaptive,f=t.roundOffsets,l=t.isFixed;var v=o.x,p=v===void 0?0:v,d=o.y,b=d===void 0?0:d;var h=typeof f==="function"?f({x:p,y:b}):{x:p,y:b};p=h.x;b=h.y;var _=o.hasOwnProperty("x");var m=o.hasOwnProperty("y");var g=z;var y=j;var w=window;if(c){var x=ht(r);var A="clientHeight";var M="clientWidth";if(x===K(r)){x=vt(r);if(ft(x).position!=="static"&&u==="absolute"){A="scrollHeight";M="scrollWidth"}}x=x;if(i===j||(i===z||i===k)&&a===P){y=O;var E=l&&x===w&&w.visualViewport?w.visualViewport.height:x[A];b-=E-n.height;b*=s?1:-1}if(i===z||(i===j||i===O)&&a===P){g=k;var B=l&&x===w&&w.visualViewport?w.visualViewport.width:x[M];p-=B-n.width;p*=s?1:-1}}var D=Object.assign({position:u},c&&Mt);var C=f===true?Et({x:p,y:b},K(r)):{x:p,y:b};p=C.x;b=C.y;if(s){var S;return Object.assign({},D,(S={},S[y]=m?"0":"",S[g]=_?"0":"",S.transform=(w.devicePixelRatio||1)<=1?"translate("+p+"px, "+b+"px)":"translate3d("+p+"px, "+b+"px, 0)",S))}return Object.assign({},D,(e={},e[y]=m?b+"px":"",e[g]=_?p+"px":"",e.transform="",e))}function Bt(t){var e=t.state,r=t.options;var n=r.gpuAcceleration,i=n===void 0?true:n,a=r.adaptive,o=a===void 0?true:a,u=r.roundOffsets,s=u===void 0?true:u;var c={placement:et(e.placement),variation:At(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};if(e.modifiersData.popperOffsets!=null){e.styles.popper=Object.assign({},e.styles.popper,Pt(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:s})))}if(e.modifiersData.arrow!=null){e.styles.arrow=Object.assign({},e.styles.arrow,Pt(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:false,roundOffsets:s})))}e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var Dt={name:"computeStyles",enabled:true,phase:"beforeWrite",fn:Bt,data:{}};var Ct={passive:true};function St(t){var e=t.state,r=t.instance,n=t.options;var i=n.scroll,a=i===void 0?true:i,o=n.resize,u=o===void 0?true:o;var s=K(e.elements.popper);var c=[].concat(e.scrollParents.reference,e.scrollParents.popper);if(a){c.forEach((function(t){t.addEventListener("scroll",r.update,Ct)}))}if(u){s.addEventListener("resize",r.update,Ct)}return function(){if(a){c.forEach((function(t){t.removeEventListener("scroll",r.update,Ct)}))}if(u){s.removeEventListener("resize",r.update,Ct)}}}var qt={name:"eventListeners",enabled:true,phase:"write",fn:function t(){},effect:St,data:{}};var Lt={left:"right",right:"left",bottom:"top",top:"bottom"};function Tt(t){return t.replace(/left|right|bottom|top/g,(function(t){return Lt[t]}))}var It={start:"end",end:"start"};function Wt(t){return t.replace(/start|end/g,(function(t){return It[t]}))}function Ft(t){var e=K(t);var r=e.pageXOffset;var n=e.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Ht(t){return ut(vt(t)).left+Ft(t).scrollLeft}function Rt(t,e){var r=K(t);var n=vt(t);var i=r.visualViewport;var a=n.clientWidth;var o=n.clientHeight;var u=0;var s=0;if(i){a=i.width;o=i.height;var c=ot();if(c||!c&&e==="fixed"){u=i.offsetLeft;s=i.offsetTop}}return{width:a,height:o,x:u+Ht(t),y:s}}function Nt(t){var e;var r=vt(t);var n=Ft(t);var i=(e=t.ownerDocument)==null?void 0:e.body;var a=rt(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0);var o=rt(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0);var u=-n.scrollLeft+Ht(t);var s=-n.scrollTop;if(ft(i||r).direction==="rtl"){u+=rt(r.clientWidth,i?i.clientWidth:0)-a}return{width:a,height:o,x:u,y:s}}function Ut(t){var e=ft(t),r=e.overflow,n=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function Yt(t){if(["html","body","#document"].indexOf(X(t))>=0){return t.ownerDocument.body}if(J(t)&&Ut(t)){return t}return Yt(pt(t))}function Gt(t,e){var r;if(e===void 0){e=[]}var n=Yt(t);var i=n===((r=t.ownerDocument)==null?void 0:r.body);var a=K(n);var o=i?[a].concat(a.visualViewport||[],Ut(n)?n:[]):n;var u=e.concat(o);return i?u:u.concat(Gt(pt(o)))}function Xt(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Kt(t,e){var r=ut(t,false,e==="fixed");r.top=r.top+t.clientTop;r.left=r.left+t.clientLeft;r.bottom=r.top+t.clientHeight;r.right=r.left+t.clientWidth;r.width=t.clientWidth;r.height=t.clientHeight;r.x=r.left;r.y=r.top;return r}function Vt(t,e,r){return e===D?Xt(Rt(t,r)):V(e)?Kt(e,r):Xt(Nt(vt(t)))}function Jt(t){var e=Gt(pt(t));var r=["absolute","fixed"].indexOf(ft(t).position)>=0;var n=r&&J(t)?ht(t):t;if(!V(n)){return[]}return e.filter((function(t){return V(t)&&ct(t,n)&&X(t)!=="body"}))}function Qt(t,e,r,n){var i=e==="clippingParents"?Jt(t):[].concat(e);var a=[].concat(i,[r]);var o=a[0];var u=a.reduce((function(e,r){var i=Vt(t,r,n);e.top=rt(i.top,e.top);e.right=nt(i.right,e.right);e.bottom=nt(i.bottom,e.bottom);e.left=rt(i.left,e.left);return e}),Vt(t,o,n));u.width=u.right-u.left;u.height=u.bottom-u.top;u.x=u.left;u.y=u.top;return u}function Zt(t){var e=t.reference,r=t.element,n=t.placement;var i=n?et(n):null;var a=n?At(n):null;var o=e.x+e.width/2-r.width/2;var u=e.y+e.height/2-r.height/2;var s;switch(i){case j:s={x:o,y:e.y-r.height};break;case O:s={x:o,y:e.y+e.height};break;case k:s={x:e.x+e.width,y:u};break;case z:s={x:e.x-r.width,y:u};break;default:s={x:e.x,y:e.y}}var c=i?_t(i):null;if(c!=null){var f=c==="y"?"height":"width";switch(a){case E:s[c]=s[c]-(e[f]/2-r[f]/2);break;case P:s[c]=s[c]+(e[f]/2-r[f]/2);break}}return s}function $t(t,e){if(e===void 0){e={}}var r=e,n=r.placement,i=n===void 0?t.placement:n,a=r.strategy,o=a===void 0?t.strategy:a,u=r.boundary,s=u===void 0?B:u,c=r.rootBoundary,f=c===void 0?D:c,l=r.elementContext,v=l===void 0?C:l,p=r.altBoundary,d=p===void 0?false:p,b=r.padding,h=b===void 0?0:b;var _=wt(typeof h!=="number"?h:xt(h,M));var m=v===C?S:C;var g=t.rects.popper;var y=t.elements[d?m:v];var w=Qt(V(y)?y:y.contextElement||vt(t.elements.popper),s,f,o);var x=ut(t.elements.reference);var z=Zt({reference:x,element:g,placement:i});var A=Xt(Object.assign({},g,z));var E=v===C?A:x;var P={top:w.top-E.top+_.top,bottom:E.bottom-w.bottom+_.bottom,left:w.left-E.left+_.left,right:E.right-w.right+_.right};var q=t.modifiersData.offset;if(v===C&&q){var L=q[i];Object.keys(P).forEach((function(t){var e=[k,O].indexOf(t)>=0?1:-1;var r=[j,O].indexOf(t)>=0?"y":"x";P[t]+=L[r]*e}))}return P}function te(t,e){if(e===void 0){e={}}var r=e,n=r.placement,i=r.boundary,a=r.rootBoundary,o=r.padding,u=r.flipVariations,s=r.allowedAutoPlacements,c=s===void 0?L:s;var f=At(n);var l=f?u?q:q.filter((function(t){return At(t)===f})):M;var v=l.filter((function(t){return c.indexOf(t)>=0}));if(v.length===0){v=l}var p=v.reduce((function(e,r){e[r]=$t(t,{placement:r,boundary:i,rootBoundary:a,padding:o})[et(r)];return e}),{});return Object.keys(p).sort((function(t,e){return p[t]-p[e]}))}function ee(t){if(et(t)===A){return[]}var e=Tt(t);return[Wt(t),e,Wt(e)]}function re(t){var e=t.state,r=t.options,n=t.name;if(e.modifiersData[n]._skip){return}var i=r.mainAxis,a=i===void 0?true:i,o=r.altAxis,u=o===void 0?true:o,s=r.fallbackPlacements,c=r.padding,f=r.boundary,l=r.rootBoundary,v=r.altBoundary,p=r.flipVariations,d=p===void 0?true:p,b=r.allowedAutoPlacements;var h=e.options.placement;var _=et(h);var m=_===h;var g=s||(m||!d?[Tt(h)]:ee(h));var y=[h].concat(g).reduce((function(t,r){return t.concat(et(r)===A?te(e,{placement:r,boundary:f,rootBoundary:l,padding:c,flipVariations:d,allowedAutoPlacements:b}):r)}),[]);var w=e.rects.reference;var x=e.rects.popper;var M=new Map;var P=true;var B=y[0];for(var D=0;D<y.length;D++){var C=y[D];var S=et(C);var q=At(C)===E;var L=[j,O].indexOf(S)>=0;var T=L?"width":"height";var I=$t(e,{placement:C,boundary:f,rootBoundary:l,altBoundary:v,padding:c});var W=L?q?k:z:q?O:j;if(w[T]>x[T]){W=Tt(W)}var F=Tt(W);var H=[];if(a){H.push(I[S]<=0)}if(u){H.push(I[W]<=0,I[F]<=0)}if(H.every((function(t){return t}))){B=C;P=false;break}M.set(C,H)}if(P){var R=d?3:1;var N=function t(e){var r=y.find((function(t){var r=M.get(t);if(r){return r.slice(0,e).every((function(t){return t}))}}));if(r){B=r;return"break"}};for(var U=R;U>0;U--){var Y=N(U);if(Y==="break")break}}if(e.placement!==B){e.modifiersData[n]._skip=true;e.placement=B;e.reset=true}}var ne={name:"flip",enabled:true,phase:"main",fn:re,requiresIfExists:["offset"],data:{_skip:false}};function ie(t,e,r){if(r===void 0){r={x:0,y:0}}return{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function ae(t){return[j,k,O,z].some((function(e){return t[e]>=0}))}function oe(t){var e=t.state,r=t.name;var n=e.rects.reference;var i=e.rects.popper;var a=e.modifiersData.preventOverflow;var o=$t(e,{elementContext:"reference"});var u=$t(e,{altBoundary:true});var s=ie(o,n);var c=ie(u,i,a);var f=ae(s);var l=ae(c);e.modifiersData[r]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:l};e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":l})}var ue={name:"hide",enabled:true,phase:"main",requiresIfExists:["preventOverflow"],fn:oe};function se(t,e,r){var n=et(t);var i=[z,j].indexOf(n)>=0?-1:1;var a=typeof r==="function"?r(Object.assign({},e,{placement:t})):r,o=a[0],u=a[1];o=o||0;u=(u||0)*i;return[z,k].indexOf(n)>=0?{x:u,y:o}:{x:o,y:u}}function ce(t){var e=t.state,r=t.options,n=t.name;var i=r.offset,a=i===void 0?[0,0]:i;var o=L.reduce((function(t,r){t[r]=se(r,e.rects,a);return t}),{});var u=o[e.placement],s=u.x,c=u.y;if(e.modifiersData.popperOffsets!=null){e.modifiersData.popperOffsets.x+=s;e.modifiersData.popperOffsets.y+=c}e.modifiersData[n]=o}var fe={name:"offset",enabled:true,phase:"main",requires:["popperOffsets"],fn:ce};function le(t){var e=t.state,r=t.name;e.modifiersData[r]=Zt({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}var ve={name:"popperOffsets",enabled:true,phase:"read",fn:le,data:{}};function pe(t){return t==="x"?"y":"x"}function de(t){var e=t.state,r=t.options,n=t.name;var i=r.mainAxis,a=i===void 0?true:i,o=r.altAxis,u=o===void 0?false:o,s=r.boundary,c=r.rootBoundary,f=r.altBoundary,l=r.padding,v=r.tether,p=v===void 0?true:v,d=r.tetherOffset,b=d===void 0?0:d;var h=$t(e,{boundary:s,rootBoundary:c,padding:l,altBoundary:f});var _=et(e.placement);var m=At(e.placement);var g=!m;var y=_t(_);var w=pe(y);var x=e.modifiersData.popperOffsets;var A=e.rects.reference;var M=e.rects.popper;var P=typeof b==="function"?b(Object.assign({},e.rects,{placement:e.placement})):b;var B=typeof P==="number"?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P);var D=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null;var C={x:0,y:0};if(!x){return}if(a){var S;var q=y==="y"?j:z;var L=y==="y"?O:k;var T=y==="y"?"height":"width";var I=x[y];var W=I+h[q];var F=I-h[L];var H=p?-M[T]/2:0;var R=m===E?A[T]:M[T];var N=m===E?-M[T]:-A[T];var U=e.elements.arrow;var Y=p&&U?st(U):{width:0,height:0};var G=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:yt();var X=G[q];var K=G[L];var V=mt(0,A[T],Y[T]);var J=g?A[T]/2-H-V-X-B.mainAxis:R-V-X-B.mainAxis;var Q=g?-A[T]/2+H+V+K+B.mainAxis:N+V+K+B.mainAxis;var Z=e.elements.arrow&&ht(e.elements.arrow);var $=Z?y==="y"?Z.clientTop||0:Z.clientLeft||0:0;var tt=(S=D==null?void 0:D[y])!=null?S:0;var it=I+J-tt-$;var at=I+Q-tt;var ot=mt(p?nt(W,it):W,I,p?rt(F,at):F);x[y]=ot;C[y]=ot-I}if(u){var ut;var ct=y==="x"?j:z;var ft=y==="x"?O:k;var lt=x[w];var vt=w==="y"?"height":"width";var pt=lt+h[ct];var dt=lt-h[ft];var bt=[j,z].indexOf(_)!==-1;var wt=(ut=D==null?void 0:D[w])!=null?ut:0;var xt=bt?pt:lt-A[vt]-M[vt]-wt+B.altAxis;var jt=bt?lt+A[vt]+M[vt]-wt-B.altAxis:dt;var Ot=p&&bt?gt(xt,lt,jt):mt(p?xt:pt,lt,p?jt:dt);x[w]=Ot;C[w]=Ot-lt}e.modifiersData[n]=C}var be={name:"preventOverflow",enabled:true,phase:"main",fn:de,requiresIfExists:["offset"]};function he(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function _e(t){if(t===K(t)||!J(t)){return Ft(t)}else{return he(t)}}function me(t){var e=t.getBoundingClientRect();var r=it(e.width)/t.offsetWidth||1;var n=it(e.height)/t.offsetHeight||1;return r!==1||n!==1}function ge(t,e,r){if(r===void 0){r=false}var n=J(e);var i=J(e)&&me(e);var a=vt(e);var o=ut(t,i,r);var u={scrollLeft:0,scrollTop:0};var s={x:0,y:0};if(n||!n&&!r){if(X(e)!=="body"||Ut(a)){u=_e(e)}if(J(e)){s=ut(e,true);s.x+=e.clientLeft;s.y+=e.clientTop}else if(a){s.x=Ht(a)}}return{x:o.left+u.scrollLeft-s.x,y:o.top+u.scrollTop-s.y,width:o.width,height:o.height}}function ye(t){var e=new Map;var r=new Set;var n=[];t.forEach((function(t){e.set(t.name,t)}));function i(t){r.add(t.name);var a=[].concat(t.requires||[],t.requiresIfExists||[]);a.forEach((function(t){if(!r.has(t)){var n=e.get(t);if(n){i(n)}}}));n.push(t)}t.forEach((function(t){if(!r.has(t.name)){i(t)}}));return n}function we(t){var e=ye(t);return G.reduce((function(t,r){return t.concat(e.filter((function(t){return t.phase===r})))}),[])}function xe(t){var e;return function(){if(!e){e=new Promise((function(r){Promise.resolve().then((function(){e=undefined;r(t())}))}))}return e}}function je(t){var e=t.reduce((function(t,e){var r=t[e.name];t[e.name]=r?Object.assign({},r,e,{options:Object.assign({},r.options,e.options),data:Object.assign({},r.data,e.data)}):e;return t}),{});return Object.keys(e).map((function(t){return e[t]}))}var Oe={placement:"bottom",modifiers:[],strategy:"absolute"};function ke(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++){e[r]=arguments[r]}return!e.some((function(t){return!(t&&typeof t.getBoundingClientRect==="function")}))}function ze(t){if(t===void 0){t={}}var e=t,r=e.defaultModifiers,n=r===void 0?[]:r,i=e.defaultOptions,a=i===void 0?Oe:i;return function t(e,r,i){if(i===void 0){i=a}var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},Oe,a),modifiersData:{},elements:{reference:e,popper:r},attributes:{},styles:{}};var u=[];var s=false;var c={state:o,setOptions:function t(i){var u=typeof i==="function"?i(o.options):i;l();o.options=Object.assign({},a,o.options,u);o.scrollParents={reference:V(e)?Gt(e):e.contextElement?Gt(e.contextElement):[],popper:Gt(r)};var s=we(je([].concat(n,o.options.modifiers)));o.orderedModifiers=s.filter((function(t){return t.enabled}));f();return c.update()},forceUpdate:function t(){if(s){return}var e=o.elements,r=e.reference,n=e.popper;if(!ke(r,n)){return}o.rects={reference:ge(r,ht(n),o.options.strategy==="fixed"),popper:st(n)};o.reset=false;o.placement=o.options.placement;o.orderedModifiers.forEach((function(t){return o.modifiersData[t.name]=Object.assign({},t.data)}));for(var i=0;i<o.orderedModifiers.length;i++){if(o.reset===true){o.reset=false;i=-1;continue}var a=o.orderedModifiers[i],u=a.fn,f=a.options,l=f===void 0?{}:f,v=a.name;if(typeof u==="function"){o=u({state:o,options:l,name:v,instance:c})||o}}},update:xe((function(){return new Promise((function(t){c.forceUpdate();t(o)}))})),destroy:function t(){l();s=true}};if(!ke(e,r)){return c}c.setOptions(i).then((function(t){if(!s&&i.onFirstUpdate){i.onFirstUpdate(t)}}));function f(){o.orderedModifiers.forEach((function(t){var e=t.name,r=t.options,n=r===void 0?{}:r,i=t.effect;if(typeof i==="function"){var a=i({state:o,name:e,instance:c,options:n});var s=function t(){};u.push(a||s)}}))}function l(){u.forEach((function(t){return t()}));u=[]}return c}}var Ae=[qt,ve,Dt,tt,fe,ne,be,zt,ue];var Me=ze({defaultModifiers:Ae});var Ee='.bal-popover__backdrop{bottom:0;left:0;position:absolute;right:0;top:0}:root{--bal-popover-backdrop-height:100vh;--bal-popover-content-height-top-nav:100vh;--bal-popover-backdrop-background:var(--bal-color-primary-6);--bal-popover-backdrop-opacity:.8;--bal-popover-content-shadow:var(--bal-shadow-normal);--bal-popover-content-background:var(--bal-color-white);--bal-popover-content-background-grey:var(--bal-color-grey-2);--bal-popover-tooltip-background:var(--bal-color-primary-6);--bal-popover-tooltip-color:var(--bal-color-white);--bal-popover-tooltip-font-family:var(--bal-font-family-text);--bal-popover-tooltip-font-size:var(--bal-text-size-small)}.bal-popover{display:block}@media screen and (max-width: 768px){.bal-popover .bal-popover__content{min-width:100vw !important}.bal-popover .bal-select__popover{min-width:100% !important}}.bal-popover--active .bal-popover__content{display:block}.bal-popover--backdrop [bal-popover-trigger]{z-index:calc(var(--bal-z-index-popup) - 1);position:relative}@media screen and (max-width: 768px){.bal-popover--hint .bal-popover__content{min-height:100vh}.bal-popover--hint .bal-popover__content .bal-popover__content__inner{min-height:100vh}}@media screen and (min-width: 769px),print{.bal-popover--hint .bal-popover__content{max-width:20rem}}@media screen and (min-width: 1024px){.bal-popover--hint .bal-popover__content{max-width:30rem}}.bal-popover__backdrop{z-index:calc(var(--bal-z-index-popup) - 2);position:fixed;background:var(--bal-popover-backdrop-background);opacity:var(--bal-popover-backdrop-opacity);height:var(--bal-popover-backdrop-height);width:100vw}.bal-popover__content{display:none;z-index:var(--bal-z-index-popup);-webkit-box-shadow:var(--bal-popover-content-shadow);box-shadow:var(--bal-popover-content-shadow);background:var(--bal-popover-content-background);min-width:16.25rem}.bal-popover__content[data-show]{display:block}.bal-popover__content--expanded{min-width:100%}.bal-popover__content--no-shadow{-webkit-box-shadow:none;box-shadow:none}.bal-popover__content--radius-normal{border-radius:var(--bal-radius-normal)}.bal-popover__content--radius-large{border-radius:var(--bal-radius-large)}.bal-popover__content--radius-none{border-radius:0}.bal-popover__content--radius-normal-bottom-none{border-radius:var(--bal-radius-normal);border-bottom-right-radius:0;border-bottom-left-radius:0}.bal-popover__content--radius-normal-top-none{border-radius:var(--bal-radius-normal);border-top-left-radius:0;border-top-right-radius:0}.bal-popover__content--radius-large-bottom-none{border-radius:var(--bal-radius-large);border-bottom-right-radius:0;border-bottom-left-radius:0}.bal-popover__content--radius-large-top-none{border-radius:var(--bal-radius-large);border-top-left-radius:0;border-top-right-radius:0}.bal-popover__content--on-top{border-top:1px solid var(--bal-color-grey-2);height:var(--bal-popover-content-height-top-nav);overflow-y:auto}.bal-popover__content--color-grey{background:var(--bal-popover-content-background-grey)}.bal-popover__content__inner{max-height:calc(100vh - 4.5rem);overflow:auto;padding:1rem}@media screen and (min-width: 769px),print{.bal-popover__content__inner{padding:1.5rem}}@media screen and (min-width: 1024px){.bal-popover__content__inner{max-height:calc(100vh - 8rem)}}.bal-popover__content--spaceless .bal-popover__content__inner{padding:0}.bal-popover__content [data-popper-arrow]{display:none}.bal-popover__content__arrow{visibility:hidden}.bal-popover__content__arrow [data-popper-arrow]{display:block}.bal-popover__content__arrow,.bal-popover__content__arrow:before{position:absolute;width:.5rem;height:.5rem;background:inherit}.bal-popover__content__arrow:before{visibility:visible;content:"";-webkit-transform:rotate(45deg);transform:rotate(45deg)}.bal-popover__content[data-popper-placement^=top]>.bal-popover__content__arrow{bottom:-0.25rem}.bal-popover__content[data-popper-placement^=bottom]>.bal-popover__content__arrow{top:-0.25rem}.bal-popover__content[data-popper-placement^=left]>.bal-popover__content__arrow{right:-0.25rem}.bal-popover__content[data-popper-placement^=right]>.bal-popover__content__arrow{left:-0.25rem}.bal-popover--arrow .bal-popover__content__arrow{display:block}.bal-popover--tooltip .bal-popover__content{min-width:unset;background:var(--bal-popover-tooltip-background)}.bal-popover--tooltip .bal-popover__content .bal-popover__content__inner{padding:var(--bal-space-x-small)}.bal-popover--tooltip .bal-popover__content .bal-popover__content__inner,.bal-popover--tooltip .bal-popover__content .bal-popover__content__inner p{color:var(--bal-popover-tooltip-color);font-family:var(--bal-popover-tooltip-font-family);font-size:var(--bal-popover-tooltip-font-size)}';var Pe=t("bal_popover",function(){function t(t){e(this,t);this.balChange=a(this,"balChange");this.balWillAnimate=a(this,"balWillAnimate");this.balDidAnimate=a(this,"balDidAnimate");this.balPopoverPrepare=a(this,"balPopoverPrepare");this.popoverId="bal-po-".concat(Be++);this.isTouch=l.isTouch;this.isInMainNav=false;this.backdropHeight=0;this.autoTrigger=false;this.hint=false;this.hover=false;this.arrow=false;this.backdrop=false;this.tooltip=false;this.offsetX=0;this.offsetY=0;this.padding=0;this.position="bottom-start";this.active=false;this.mobileTop=false}t.prototype.createLogger=function(t){this.log=t};t.prototype.activeChanged=function(t,e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){if(t===true&&t!==e){this.present({force:true})}else{this.dismiss({force:true})}return[2]}))}))};t.prototype.componentWillLoad=function(){this.backdropHeight=this.getBackdropHeight();this.triggerElement.setAttribute("aria-haspopup","true")};t.prototype.componentDidLoad=function(){var t=this;this.isInMainNav=this.footMobileNav!==null;if(this.triggerElement&&this.menuElement){this.popperInstance=Me(this.triggerElement,this.menuElement,{placement:this.tooltip?"bottom":this.position,modifiers:[this.modifierOffset,this.modifierPreventOverflow]});var e=[];var r=[];if(this.autoTrigger){e=["click"]}if(this.tooltip){e=["mouseenter","focus"];r=["mouseleave","blur"]}e.forEach((function(e){if(t.triggerElement){if(e==="click"){t.triggerElement.addEventListener(e,(function(){return t.toggle()}))}else{t.triggerElement.addEventListener(e,(function(){return t.present()}))}}}));r.forEach((function(e){if(t.triggerElement){t.triggerElement.addEventListener(e,(function(){return t.dismiss()}))}}))}};t.prototype.componentDidRender=function(){var t=this;if(this.popperInstance){this.popperInstance.setOptions((function(e){return Object.assign(Object.assign({},e),{placement:t.tooltip?"bottom":t.position,modifiers:__spreadArray(__spreadArray([],e.modifiers.filter((function(t){return t.name!=="offset"&&t.name!=="preventOverflow"})),true),[t.modifierOffset,t.modifierPreventOverflow],false)})}));this.updatePopper()}if(h.isSafari&&!this.isTouch){clearTimeout(this.componentDidRenderTimer);this.componentDidRenderTimer=setTimeout((function(){var e;var r=(e=t.el)===null||e===void 0?void 0:e.clientWidth;if(r){t.el.style.maxWidth="".concat(r,"px")}else{t.el.style.maxWidth="initial"}}))}};t.prototype.handlePopoverPrepare=function(t){var e=t.detail;if(this.popoverId!==e){this.dismiss()}};t.prototype.clickOnOutside=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(r){if(this.active){if(!this.el.contains(t.target)){this.active=false}if((e=this.backdropElement)===null||e===void 0?void 0:e.isEqualNode(t.target)){this.active=false}}return[2]}))}))};t.prototype.handleKeyUp=function(t){if(this.active&&(t.key==="Escape"||t.key==="Esc")){t.preventDefault();this.dismiss()}};t.prototype.tabOutside=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:if(!(t.key==="Tab"&&!this.el.contains(document.activeElement)&&this.active))return[3,2];return[4,this.toggle()];case 1:e.sent();e.label=2;case 2:return[2]}}))}))};t.prototype.breakpointListener=function(t){this.isTouch=t.touch;this.isInMainNav=this.footMobileNav!==null;this.backdropHeight=this.getBackdropHeight()};t.prototype.present=function(){return __awaiter(this,arguments,void 0,(function(t){var e,r;if(t===void 0){t={force:false}}return __generator(this,(function(n){if(!this.active||t.force){(e=this.menuElement)===null||e===void 0?void 0:e.setAttribute("data-show","");(r=this.menuElement)===null||r===void 0?void 0:r.setAttribute("aria-hidden","false");if(this.menuInnerElement){this.menuInnerElement.scrollTo(0,0)}this.balPopoverPrepare.emit(this.popoverId);this.balWillAnimate.emit(this.active);this.active=true;this.popperInstance.setOptions((function(t){return Object.assign(Object.assign({},t),{modifiers:__spreadArray(__spreadArray([],t.modifiers,true),[{name:"eventListeners",enabled:true}],false)})}));this.updatePopper();this.balChange.emit(this.active);this.balDidAnimate.emit(this.active)}return[2]}))}))};t.prototype.dismiss=function(){return __awaiter(this,arguments,void 0,(function(t){var e,r;if(t===void 0){t={force:false}}return __generator(this,(function(n){if(this.active||t.force){(e=this.menuElement)===null||e===void 0?void 0:e.removeAttribute("data-show");(r=this.menuElement)===null||r===void 0?void 0:r.setAttribute("aria-hidden","true");this.balWillAnimate.emit(this.active);this.active=false;this.popperInstance.setOptions((function(t){return Object.assign(Object.assign({},t),{modifiers:__spreadArray(__spreadArray([],t.modifiers,true),[{name:"eventListeners",enabled:false}],false)})}));this.updatePopper();this.balChange.emit(this.active);this.balDidAnimate.emit(this.active)}return[2]}))}))};t.prototype.toggle=function(){return __awaiter(this,arguments,void 0,(function(t){if(t===void 0){t={force:false}}return __generator(this,(function(e){switch(e.label){case 0:if(!this.active)return[3,2];return[4,this.dismiss(t)];case 1:e.sent();return[3,4];case 2:return[4,this.present(t)];case 3:e.sent();e.label=4;case 4:return[2]}}))}))};Object.defineProperty(t.prototype,"footMobileNav",{get:function(){return this.el.closest('[slot="meta-mobile-foot"]')},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"modifierOffset",{get:function(){return{name:"offset",options:{offset:[this.offsetX,this.offsetY+(this.tooltip||this.arrow?8:0)]}}},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"modifierPreventOverflow",{get:function(){return{name:"preventOverflow",options:{padding:this.arrow||this.tooltip?8:this.padding,altAxis:true}}},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"triggerElement",{get:function(){return this.el.querySelector("[bal-popover-trigger]")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"menuElement",{get:function(){return this.el.querySelector("bal-popover-content")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"menuInnerElement",{get:function(){return this.el.querySelector(".bal-popover__content__inner")},enumerable:false,configurable:true});t.prototype.getBackdropHeight=function(){if(h.hasWindow){return this.isInMainNav?(window.innerHeight-(this.isTouch?64:48))/16:window.innerHeight/16}return 0};t.prototype.updatePopper=function(){this.popperInstance.update()};t.prototype.render=function(){var t=this;var e=s.block("popover");return r(n,{key:"f4b281b4ca30365ec4b279c3e219a0109edc173d","aria-presented":this.active?"true":null,"data-id":this.popoverId,class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e.class()),e.modifier("active").class(this.active)),e.modifier("tooltip").class(this.tooltip)),e.modifier("arrow").class(this.arrow)),e.modifier("hint").class(this.hint)),e.modifier("backdrop").class(this.backdrop))},!this.mobileTop&&r("div",{key:"d40df31685649965a301ada5e1c7e7f2a629596c",ref:function(e){t.backdropElement=e},class:Object.assign({},e.element("backdrop").class(this.backdrop&&this.active)),style:{"--bal-popover-backdrop-height":"".concat(this.backdropHeight,"rem")}}),r("slot",{key:"04ec4d9a6c214d1c14a436906e80dc721349ab78"}))};Object.defineProperty(t.prototype,"el",{get:function(){return i(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{active:["activeChanged"]}},enumerable:false,configurable:true});return t}());o([_("bal-popover"),u("design:type",Function),u("design:paramtypes",[Function]),u("design:returntype",void 0)],Pe.prototype,"createLogger",null);o([d(),u("design:type",Function),u("design:paramtypes",[Object]),u("design:returntype",void 0)],Pe.prototype,"breakpointListener",null);var Be=0;Pe.style=Ee;var De=t("bal_popover_content",function(){function t(t){e(this,t);this.isTouch=l.isTouch;this.spaceless=false;this.scrollable=0;this.contentWidth=0;this.contentMinWidth=0;this.color="white";this.expanded=false;this.radius="normal";this.noShadow=false;this.mobileTop=false;this.contentHeightOnTop=0}t.prototype.breakpointListener=function(t){if(h.hasWindow){this.contentHeightOnTop=window.innerHeight-64}};Object.defineProperty(t.prototype,"innerStyle",{get:function(){var t={};if(this.scrollable>0){t={"max-height":"".concat(this.scrollable,"px"),overflow:"auto"}}return Object.assign({},t)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"contentStyle",{get:function(){var t={};var e={};var r={"--bal-popover-content-height-top-nav":"".concat(this.contentHeightOnTop/16,"rem")};if(this.contentWidth>0){t={"max-width":"".concat(this.contentWidth,"px")}}if(this.contentMinWidth>0){e={"min-width":"".concat(this.contentMinWidth,"px")}}return Object.assign(Object.assign(Object.assign({},t),e),r)},enumerable:false,configurable:true});t.prototype.componentWillLoad=function(){if(h.hasWindow){this.contentHeightOnTop=window.innerHeight-64}};t.prototype.render=function(){var t=s.block("popover").element("content");return r(n,{key:"bc08fb0e5736f9393c5396af4a84f1127b6e4c4e",class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t.class()),t.modifier("expanded").class(this.expanded)),t.modifier("spaceless").class(this.spaceless)),t.modifier("no-shadow").class(this.noShadow)),t.modifier("radius-".concat(this.radius)).class()),t.modifier("color-".concat(this.color)).class()),t.modifier("on-top").class(this.mobileTop)),"data-testid":"bal-popover-content",role:"tooltip",style:this.contentStyle},r("div",{key:"f49ffa520c2e1cc95942973939eeff059900a9bc",class:Object.assign({},t.element("inner").class()),style:this.innerStyle},r("slot",{key:"3394b3dd89ce64a0d379e66b1ffb169e9f0401c4"})),r("div",{key:"5f75d67a77ae49667c3863b738bdc03d1dcb8121",class:Object.assign({},t.element("arrow").class()),"data-popper-arrow":true}))};Object.defineProperty(t.prototype,"el",{get:function(){return i(this)},enumerable:false,configurable:true});return t}());o([d(),u("design:type",Function),u("design:paramtypes",[Object]),u("design:returntype",void 0)],De.prototype,"breakpointListener",null)}}}));
@@ -1 +1 @@
1
- import{a as t}from"./p-BdVwMG9u.js";import{b as a}from"./p-B1u-Mq75.js";import{f as e}from"./p-Ba5qjFjW.js";import{d as i}from"./p-CBkFUwrD.js";class s{constructor(){this._componentObservers=[],this._observers=[],this._config=i}get locale(){return`${this._config.language}-${this._config.region}`}get region(){return this._config.region}set region(t){t!==this._config.region&&(this._config.region=t,this._notify())}get language(){return this._config.language}get brand(){return this._config.brand}set brand(t){t!==this._config.brand&&(this._config.brand=t,this._notify())}set language(t){t!==this._config.language&&(this._config.language=this._config.allowedLanguages.includes(t)?t:this._config.fallbackLanguage,this._notify())}get allowedLanguages(){return this._config.allowedLanguages}set allowedLanguages(t){t!==this._config.allowedLanguages&&(this._config.allowedLanguages=t,this._notify())}get icons(){return this._config.icons}set icons(t){this._config.icons=Object.assign(Object.assign({},this._config.icons),t),this._notify()}get logger(){return this._config.logger}set logger(t){this._config.logger=Object.assign({},t),this._notify()}get animated(){return this._config.animated}set animated(t){this._config.animated=t,this._notify()}get httpFormSubmit(){return this._config.httpFormSubmit}set httpFormSubmit(t){this._config.httpFormSubmit=t,this._notify()}attach(t){if(this._observers.includes(t))return console.log("Subject: Observer has been attached already.");this._observers.push(t),t.configChanged(this._config)}detach(t){const a=this._observers.indexOf(t);if(-1===a)return console.log("Subject: Nonexistent observer.");this._observers.splice(a,1)}attachComponent(t){if(this._componentObservers.includes(t))return console.log("Subject: Observer has been attached already.");this._componentObservers.push(t),t.configChanged(this._config)}detachComponent(t){const a=this._componentObservers.indexOf(t);if(-1===a)return console.log("Subject: Nonexistent observer.");this._componentObservers.splice(a,1)}toString(){return JSON.stringify(this._config)}reset(t){this._config=Object.assign(Object.assign(Object.assign({},this._config),t),{icons:Object.assign(Object.assign({},this._config.icons),t.icons)}),this._notify(!1)}_notify(t=!0){for(const t of this._componentObservers)t.configChanged(this._config);if(t)for(const t of this._observers)t.configChanged(this._config)}}const l=new s,n=(t={},e={})=>{0===Object.keys(e).length&&a.hasWindow&&(e=window),e.BaloiseDesignSystem=e.BaloiseDesignSystem||{},l.reset(Object.assign(Object.assign(Object.assign({},(t=>{try{const a=JSON.parse(t.localStorage.getItem("baloise-animated"));return null!==a?{animated:a}:{}}catch(t){return{}}})(e)),t),{icons:Object.assign({},t.icons)})),e.BaloiseDesignSystem.config=l};class o{constructor(t){this.options=t,this.container=null,this.queue=[],this.preQueue=[],this.queueLimit=5}create(t){if(a.hasDocument){this.setupContainer(t);const a=this.findClone(t);if(void 0===a){const a=document.createElement(this.options.tag);return Object.assign(a,t),a.addEventListener("balClose",(t=>{this.removeFromQueue(t.detail)})),this.preQueue.push(a),this.updateQueue(),a}return a}}setQueue(t){this.queueLimit=t}async dismissAll(){var t;const a=null===(t=this.container)||void 0===t?void 0:t.querySelectorAll(this.options.tag);if(a){const t=[];for(let e=0;e<a.length;e++){const i=a[e];i.close&&t.push(i.close())}await Promise.all(t)}}async clearAll(){return console.warn("[DEPRECATED] - use dismissAll() instead"),this.dismissAll()}findClone(t){for(let a=0;a<this.queue.length;a++){const e=this.queue[a];if(e.message===t.message&&e.color===t.color)return e}}setupContainer(t){if(a.hasDocument){const a=`${this.options.tag}-container`;if(this.container=document.getElementById(a),this.container)return;this.container||(this.container=document.createElement("bal-notices"),this.container.setAttribute("interface",this.options.tag.replace("bal-","")),this.container.setAttribute("animated",t.animated?"true":"false"),void 0!==t.container&&this.container.setAttribute("container",!0===t.container?"":t.container),this.container.id=a),document.body.appendChild(this.container)}}async updateQueue(){var t;if(this.queue.length<this.queueLimit){const t=this.preQueue.shift();if(t&&this.container){await e(this.container);const a=this.container.querySelector(".bal-notices__inner");a&&(this.queue.push(t),a.insertAdjacentElement("beforeend",t))}}0===this.queue.length&&(null===(t=this.container)||void 0===t||t.remove())}removeFromQueue(t){this.queue=this.queue.filter((a=>a.id!==t)),setTimeout((()=>this.updateQueue()),0)}}class b extends o{constructor(){super({tag:"bal-snackbar"})}create(t){return super.create(t)}}const r=new b;class c extends o{constructor(){super({tag:"bal-toast"})}create(t){return super.create(t)}}const h=new c,d=["bal-accordion","bal-accordion-details","bal-accordion-summary","bal-accordion-trigger","bal-app","bal-badge","bal-button","bal-button-group","bal-card","bal-card-actions","bal-card-button","bal-card-content","bal-card-subtitle","bal-card-title","bal-carousel","bal-carousel-item","bal-check","bal-checkbox","bal-checkbox-group","bal-close","bal-content","bal-data","bal-data-item","bal-data-label","bal-data-value","bal-date","bal-date-calendar","bal-date-calendar-cell","bal-divider","bal-dropdown","bal-field","bal-field-control","bal-field-hint","bal-field-label","bal-field-message","bal-file-upload","bal-footer","bal-form","bal-form-col","bal-form-grid","bal-heading","bal-hint","bal-hint-text","bal-hint-title","bal-icon","bal-input","bal-input-date","bal-input-group","bal-input-slider","bal-input-stepper","bal-label","bal-list","bal-list-item","bal-list-item-accordion-body","bal-list-item-accordion-head","bal-list-item-content","bal-list-item-icon","bal-list-item-subtitle","bal-list-item-title","bal-logo","bal-modal","bal-modal-body","bal-modal-header","bal-nav","bal-nav-link","bal-nav-link-grid","bal-nav-link-grid-col","bal-nav-link-group","bal-nav-menu-bar","bal-nav-menu-flyout","bal-nav-meta-bar","bal-navbar","bal-navbar-brand","bal-navbar-menu","bal-navbar-menu-end","bal-navbar-menu-start","bal-notices","bal-notification","bal-number-input","bal-option","bal-option-list","bal-pagination","bal-popover","bal-popover-content","bal-popup","bal-progress-bar","bal-radio","bal-radio-group","bal-radio-icon","bal-segment","bal-segment-item","bal-select","bal-select-option","bal-shape","bal-sheet","bal-snackbar","bal-spinner","bal-stack","bal-stage","bal-stage-back-link","bal-stage-body","bal-stage-foot","bal-stage-head","bal-stage-image","bal-step-item","bal-steps","bal-switch","bal-tab-item","bal-table","bal-tabs","bal-tag","bal-tag-group","bal-text","bal-textarea","bal-time-input","bal-toast","bal-tooltip"],u=(e={},i,s={})=>{0===Object.keys(s).length&&a.hasWindow&&(s=window),s.BaloiseDesignSystem=s.BaloiseDesignSystem||{},i&&t(i),n(Object.assign(Object.assign({},e),i),s),s.BaloiseDesignSystem.toastController=h,s.BaloiseDesignSystem.snackbarController=r,s.BaloiseDesignSystem.initialize=()=>n(s.BaloiseDesignSystem.config,s),s.BaloiseDesignSystem.version="19.9.1",e._generateHydrateForCustomElementsOutput&&m(d)},m=(t=[])=>{const a="undefined"!=typeof window?window:{};if(!a.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const e=a.document.head,i=e.querySelector("meta[charset]"),s=a.document.createElement("style");t.length>0&&(s.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}",s.textContent+=t.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",s.innerHTML.length&&(s.setAttribute("data-styles",""),e.insertBefore(s,i?i.nextSibling:e.firstChild)))};export{b as B,c as a,r as b,h as c,u as i,n as s}
1
+ import{a as t}from"./p-BdVwMG9u.js";import{b as a}from"./p-B1u-Mq75.js";import{f as e}from"./p-Ba5qjFjW.js";import{d as i}from"./p-CBkFUwrD.js";class s{constructor(){this._componentObservers=[],this._observers=[],this._config=i}get locale(){return`${this._config.language}-${this._config.region}`}get region(){return this._config.region}set region(t){t!==this._config.region&&(this._config.region=t,this._notify())}get language(){return this._config.language}get brand(){return this._config.brand}set brand(t){t!==this._config.brand&&(this._config.brand=t,this._notify())}set language(t){t!==this._config.language&&(this._config.language=this._config.allowedLanguages.includes(t)?t:this._config.fallbackLanguage,this._notify())}get allowedLanguages(){return this._config.allowedLanguages}set allowedLanguages(t){t!==this._config.allowedLanguages&&(this._config.allowedLanguages=t,this._notify())}get icons(){return this._config.icons}set icons(t){this._config.icons=Object.assign(Object.assign({},this._config.icons),t),this._notify()}get logger(){return this._config.logger}set logger(t){this._config.logger=Object.assign({},t),this._notify()}get animated(){return this._config.animated}set animated(t){this._config.animated=t,this._notify()}get httpFormSubmit(){return this._config.httpFormSubmit}set httpFormSubmit(t){this._config.httpFormSubmit=t,this._notify()}attach(t){if(this._observers.includes(t))return console.log("Subject: Observer has been attached already.");this._observers.push(t),t.configChanged(this._config)}detach(t){const a=this._observers.indexOf(t);if(-1===a)return console.log("Subject: Nonexistent observer.");this._observers.splice(a,1)}attachComponent(t){if(this._componentObservers.includes(t))return console.log("Subject: Observer has been attached already.");this._componentObservers.push(t),t.configChanged(this._config)}detachComponent(t){const a=this._componentObservers.indexOf(t);if(-1===a)return console.log("Subject: Nonexistent observer.");this._componentObservers.splice(a,1)}toString(){return JSON.stringify(this._config)}reset(t){this._config=Object.assign(Object.assign(Object.assign({},this._config),t),{icons:Object.assign(Object.assign({},this._config.icons),t.icons)}),this._notify(!1)}_notify(t=!0){for(const t of this._componentObservers)t.configChanged(this._config);if(t)for(const t of this._observers)t.configChanged(this._config)}}const l=new s,n=(t={},e={})=>{0===Object.keys(e).length&&a.hasWindow&&(e=window),e.BaloiseDesignSystem=e.BaloiseDesignSystem||{},l.reset(Object.assign(Object.assign(Object.assign({},(t=>{try{const a=JSON.parse(t.localStorage.getItem("baloise-animated"));return null!==a?{animated:a}:{}}catch(t){return{}}})(e)),t),{icons:Object.assign({},t.icons)})),e.BaloiseDesignSystem.config=l};class o{constructor(t){this.options=t,this.container=null,this.queue=[],this.preQueue=[],this.queueLimit=5}create(t){if(a.hasDocument){this.setupContainer(t);const a=this.findClone(t);if(void 0===a){const a=document.createElement(this.options.tag);return Object.assign(a,t),a.addEventListener("balClose",(t=>{this.removeFromQueue(t.detail)})),this.preQueue.push(a),this.updateQueue(),a}return a}}setQueue(t){this.queueLimit=t}async dismissAll(){var t;const a=null===(t=this.container)||void 0===t?void 0:t.querySelectorAll(this.options.tag);if(a){const t=[];for(let e=0;e<a.length;e++){const i=a[e];i.close&&t.push(i.close())}await Promise.all(t)}}async clearAll(){return console.warn("[DEPRECATED] - use dismissAll() instead"),this.dismissAll()}findClone(t){for(let a=0;a<this.queue.length;a++){const e=this.queue[a];if(e.message===t.message&&e.color===t.color)return e}}setupContainer(t){if(a.hasDocument){const a=`${this.options.tag}-container`;if(this.container=document.getElementById(a),this.container)return;this.container||(this.container=document.createElement("bal-notices"),this.container.setAttribute("interface",this.options.tag.replace("bal-","")),this.container.setAttribute("animated",t.animated?"true":"false"),void 0!==t.container&&this.container.setAttribute("container",!0===t.container?"":t.container),this.container.id=a),document.body.appendChild(this.container)}}async updateQueue(){var t;if(this.queue.length<this.queueLimit){const t=this.preQueue.shift();if(t&&this.container){await e(this.container);const a=this.container.querySelector(".bal-notices__inner");a&&(this.queue.push(t),a.insertAdjacentElement("beforeend",t))}}0===this.queue.length&&(null===(t=this.container)||void 0===t||t.remove())}removeFromQueue(t){this.queue=this.queue.filter((a=>a.id!==t)),setTimeout((()=>this.updateQueue()),0)}}class b extends o{constructor(){super({tag:"bal-snackbar"})}create(t){return super.create(t)}}const r=new b;class c extends o{constructor(){super({tag:"bal-toast"})}create(t){return super.create(t)}}const h=new c,d=["bal-accordion","bal-accordion-details","bal-accordion-summary","bal-accordion-trigger","bal-app","bal-badge","bal-button","bal-button-group","bal-card","bal-card-actions","bal-card-button","bal-card-content","bal-card-subtitle","bal-card-title","bal-carousel","bal-carousel-item","bal-check","bal-checkbox","bal-checkbox-group","bal-close","bal-content","bal-data","bal-data-item","bal-data-label","bal-data-value","bal-date","bal-date-calendar","bal-date-calendar-cell","bal-divider","bal-dropdown","bal-field","bal-field-control","bal-field-hint","bal-field-label","bal-field-message","bal-file-upload","bal-footer","bal-form","bal-form-col","bal-form-grid","bal-heading","bal-hint","bal-hint-text","bal-hint-title","bal-icon","bal-input","bal-input-date","bal-input-group","bal-input-slider","bal-input-stepper","bal-label","bal-list","bal-list-item","bal-list-item-accordion-body","bal-list-item-accordion-head","bal-list-item-content","bal-list-item-icon","bal-list-item-subtitle","bal-list-item-title","bal-logo","bal-modal","bal-modal-body","bal-modal-header","bal-nav","bal-nav-link","bal-nav-link-grid","bal-nav-link-grid-col","bal-nav-link-group","bal-nav-menu-bar","bal-nav-menu-flyout","bal-nav-meta-bar","bal-navbar","bal-navbar-brand","bal-navbar-menu","bal-navbar-menu-end","bal-navbar-menu-start","bal-notices","bal-notification","bal-number-input","bal-option","bal-option-list","bal-pagination","bal-popover","bal-popover-content","bal-popup","bal-progress-bar","bal-radio","bal-radio-group","bal-radio-icon","bal-segment","bal-segment-item","bal-select","bal-select-option","bal-shape","bal-sheet","bal-snackbar","bal-spinner","bal-stack","bal-stage","bal-stage-back-link","bal-stage-body","bal-stage-foot","bal-stage-head","bal-stage-image","bal-step-item","bal-steps","bal-switch","bal-tab-item","bal-table","bal-tabs","bal-tag","bal-tag-group","bal-text","bal-textarea","bal-time-input","bal-toast","bal-tooltip"],u=(e={},i,s={})=>{0===Object.keys(s).length&&a.hasWindow&&(s=window),s.BaloiseDesignSystem=s.BaloiseDesignSystem||{},i&&t(i),n(Object.assign(Object.assign({},e),i),s),s.BaloiseDesignSystem.toastController=h,s.BaloiseDesignSystem.snackbarController=r,s.BaloiseDesignSystem.initialize=()=>n(s.BaloiseDesignSystem.config,s),s.BaloiseDesignSystem.version="19.9.2",e._generateHydrateForCustomElementsOutput&&m(d)},m=(t=[])=>{const a="undefined"!=typeof window?window:{};if(!a.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const e=a.document.head,i=e.querySelector("meta[charset]"),s=a.document.createElement("style");t.length>0&&(s.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}",s.textContent+=t.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",s.innerHTML.length&&(s.setAttribute("data-styles",""),e.insertBefore(s,i?i.nextSibling:e.firstChild)))};export{b as B,c as a,r as b,h as c,u as i,n as s}
@@ -1 +1 @@
1
- import{B as t}from"./p-BzAHSyRi.js";import{a as s}from"./p-C20cwFWy.js";import{b as i}from"./p-B1u-Mq75.js";class n extends s{constructor(){super((t=>{t.windowResizeListener()})),this.listener=new t}attach(t){super.attach(t),i.hasWindow&&(this.listener.connect(window),this.listener.add((()=>super.notify())))}detach(){super.detach(),this.listener.disconnect()}}function r(){return function(t){const{connectedCallback:s,disconnectedCallback:i}=t;t.connectedCallback=function(){return this._balWindowResizeSubject||(this._balWindowResizeSubject=new n,this._balWindowResizeSubject.attach(this)),s&&s.call(this)},t.disconnectedCallback=function(){return this._balWindowResizeSubject&&(this._balWindowResizeSubject.detach(),this._balWindowResizeSubject=void 0),i&&i.call(this)}}}new n;export{r as L}
1
+ import{B as t}from"./p-cnNPy_UF.js";import{a as s}from"./p-C20cwFWy.js";import{b as i}from"./p-B1u-Mq75.js";class n extends s{constructor(){super((t=>{t.windowResizeListener()})),this.listener=new t}attach(t){super.attach(t),i.hasWindow&&(this.listener.connect(window),this.listener.add((()=>super.notify())))}detach(){super.detach(),this.listener.disconnect()}}function r(){return function(t){const{connectedCallback:s,disconnectedCallback:i}=t;t.connectedCallback=function(){return this._balWindowResizeSubject||(this._balWindowResizeSubject=new n,this._balWindowResizeSubject.attach(this)),s&&s.call(this)},t.disconnectedCallback=function(){return this._balWindowResizeSubject&&(this._balWindowResizeSubject.detach(),this._balWindowResizeSubject=void 0),i&&i.call(this)}}}new n;export{r as L}
@@ -1 +1 @@
1
- var __extends=this&&this.__extends||function(){var t=function(e,n){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))t[n]=e[n]};return t(e,n)};return function(e,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();var __awaiter=this&&this.__awaiter||function(t,e,n,i){function a(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,r){function o(t){try{l(i.next(t))}catch(t){r(t)}}function s(t){try{l(i["throw"](t))}catch(t){r(t)}}function l(t){t.done?n(t.value):a(t.value).then(o,s)}l((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},i,a,r,o=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return o.next=s(0),o["throw"]=s(1),o["return"]=s(2),typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return l([t,e])}}function l(s){if(i)throw new TypeError("Generator is already executing.");while(o&&(o=0,s[0]&&(n=0)),n)try{if(i=1,a&&(r=s[0]&2?a["return"]:s[0]?a["throw"]||((r=a["return"])&&r.call(a),0):a.next)&&!(r=r.call(a,s[1])).done)return r;if(a=0,r)s=[s[0]&2,r.value];switch(s[0]){case 0:case 1:r=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;a=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]<r[3])){n.label=s[1];break}if(s[0]===6&&n.label<r[1]){n.label=r[1];r=s;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(s);break}if(r[2])n.ops.pop();n.trys.pop();continue}s=e.call(t,n)}catch(t){s=[6,t];a=0}finally{i=r=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-PNu_g_s6.system.js","./p-D7_eHNTI.system.js","./p-D1opIX9W.system.js","./p-ncoiCFQ1.system.js"],(function(t){"use strict";var e,n,i,a;return{setters:[function(t){e=t.a},function(t){n=t.b},function(t){i=t.f},function(t){a=t.d}],execute:function(){var r="baloise-animated";var o=function(){function t(){this._componentObservers=[];this._observers=[];this._config=a}Object.defineProperty(t.prototype,"locale",{get:function(){return"".concat(this._config.language,"-").concat(this._config.region)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"region",{get:function(){return this._config.region},set:function(t){if(t!==this._config.region){this._config.region=t;this._notify()}},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"language",{get:function(){return this._config.language},set:function(t){if(t!==this._config.language){if(this._config.allowedLanguages.includes(t)){this._config.language=t}else{this._config.language=this._config.fallbackLanguage}this._notify()}},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"brand",{get:function(){return this._config.brand},set:function(t){if(t!==this._config.brand){this._config.brand=t;this._notify()}},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"allowedLanguages",{get:function(){return this._config.allowedLanguages},set:function(t){if(t!==this._config.allowedLanguages){this._config.allowedLanguages=t;this._notify()}},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"icons",{get:function(){return this._config.icons},set:function(t){this._config.icons=Object.assign(Object.assign({},this._config.icons),t);this._notify()},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"logger",{get:function(){return this._config.logger},set:function(t){this._config.logger=Object.assign({},t);this._notify()},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"animated",{get:function(){return this._config.animated},set:function(t){this._config.animated=t;this._notify()},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"httpFormSubmit",{get:function(){return this._config.httpFormSubmit},set:function(t){this._config.httpFormSubmit=t;this._notify()},enumerable:false,configurable:true});t.prototype.attach=function(t){var e=this._observers.includes(t);if(e){return console.log("Subject: Observer has been attached already.")}this._observers.push(t);t.configChanged(this._config)};t.prototype.detach=function(t){var e=this._observers.indexOf(t);if(e===-1){return console.log("Subject: Nonexistent observer.")}this._observers.splice(e,1)};t.prototype.attachComponent=function(t){var e=this._componentObservers.includes(t);if(e){return console.log("Subject: Observer has been attached already.")}this._componentObservers.push(t);t.configChanged(this._config)};t.prototype.detachComponent=function(t){var e=this._componentObservers.indexOf(t);if(e===-1){return console.log("Subject: Nonexistent observer.")}this._componentObservers.splice(e,1)};t.prototype.toString=function(){return JSON.stringify(this._config)};t.prototype.reset=function(t){this._config=Object.assign(Object.assign(Object.assign({},this._config),t),{icons:Object.assign(Object.assign({},this._config.icons),t.icons)});this._notify(false)};t.prototype._notify=function(t){if(t===void 0){t=true}for(var e=0,n=this._componentObservers;e<n.length;e++){var i=n[e];i.configChanged(this._config)}if(t){for(var a=0,r=this._observers;a<r.length;a++){var i=r[a];i.configChanged(this._config)}}};return t}();var s=new o;var l=function(t){try{var e=JSON.parse(t.localStorage.getItem(r));if(e!==null){return{animated:e}}return{}}catch(t){return{}}};var u=t("s",(function(t,e){if(t===void 0){t={}}if(e===void 0){e={}}if(Object.keys(e).length===0&&n.hasWindow){e=window}e.BaloiseDesignSystem=e.BaloiseDesignSystem||{};s.reset(Object.assign(Object.assign(Object.assign({},l(e)),t),{icons:Object.assign({},t.icons)}));e.BaloiseDesignSystem.config=s}));var c=function(){function t(t){this.options=t;this.container=null;this.queue=[];this.preQueue=[];this.queueLimit=5}t.prototype.create=function(t){var e=this;if(n.hasDocument){this.setupContainer(t);var i=this.findClone(t);if(i===undefined){var a=document.createElement(this.options.tag);Object.assign(a,t);a.addEventListener("balClose",(function(t){e.removeFromQueue(t.detail)}));this.preQueue.push(a);this.updateQueue();return a}return i}};t.prototype.setQueue=function(t){this.queueLimit=t};t.prototype.dismissAll=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,n,i,a;return __generator(this,(function(r){switch(r.label){case 0:e=(t=this.container)===null||t===void 0?void 0:t.querySelectorAll(this.options.tag);if(!e)return[3,2];n=[];for(i=0;i<e.length;i++){a=e[i];if(a.close){n.push(a.close())}}return[4,Promise.all(n)];case 1:r.sent();r.label=2;case 2:return[2]}}))}))};t.prototype.clearAll=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){console.warn("[DEPRECATED] - use dismissAll() instead");return[2,this.dismissAll()]}))}))};t.prototype.findClone=function(t){for(var e=0;e<this.queue.length;e++){var n=this.queue[e];if(n.message===t.message&&n.color===t.color){return n}}return undefined};t.prototype.setupContainer=function(t){if(n.hasDocument){var e="".concat(this.options.tag,"-container");this.container=document.getElementById(e);if(this.container)return;if(!this.container){this.container=document.createElement("bal-notices");this.container.setAttribute("interface",this.options.tag.replace("bal-",""));this.container.setAttribute("animated",t.animated?"true":"false");if(t.container!==undefined){this.container.setAttribute("container",t.container===true?"":t.container)}this.container.id=e}document.body.appendChild(this.container)}};t.prototype.updateQueue=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,n;return __generator(this,(function(a){switch(a.label){case 0:if(!(this.queue.length<this.queueLimit))return[3,2];e=this.preQueue.shift();if(!(e&&this.container))return[3,2];return[4,i(this.container)];case 1:a.sent();n=this.container.querySelector(".bal-notices__inner");if(n){this.queue.push(e);n.insertAdjacentElement("beforeend",e)}a.label=2;case 2:if(this.queue.length===0){(t=this.container)===null||t===void 0?void 0:t.remove()}return[2]}}))}))};t.prototype.removeFromQueue=function(t){var e=this;this.queue=this.queue.filter((function(e){return e.id!==t}));setTimeout((function(){return e.updateQueue()}),0)};return t}();var b=function(t){__extends(e,t);function e(){return t.call(this,{tag:"bal-snackbar"})||this}e.prototype.create=function(e){return t.prototype.create.call(this,e)};return e}(c);t("B",b);var f=t("b",new b);var h=function(t){__extends(e,t);function e(){return t.call(this,{tag:"bal-toast"})||this}e.prototype.create=function(e){return t.prototype.create.call(this,e)};return e}(c);t("a",h);var d=t("c",new h);var v=["bal-accordion","bal-accordion-details","bal-accordion-summary","bal-accordion-trigger","bal-app","bal-badge","bal-button","bal-button-group","bal-card","bal-card-actions","bal-card-button","bal-card-content","bal-card-subtitle","bal-card-title","bal-carousel","bal-carousel-item","bal-check","bal-checkbox","bal-checkbox-group","bal-close","bal-content","bal-data","bal-data-item","bal-data-label","bal-data-value","bal-date","bal-date-calendar","bal-date-calendar-cell","bal-divider","bal-dropdown","bal-field","bal-field-control","bal-field-hint","bal-field-label","bal-field-message","bal-file-upload","bal-footer","bal-form","bal-form-col","bal-form-grid","bal-heading","bal-hint","bal-hint-text","bal-hint-title","bal-icon","bal-input","bal-input-date","bal-input-group","bal-input-slider","bal-input-stepper","bal-label","bal-list","bal-list-item","bal-list-item-accordion-body","bal-list-item-accordion-head","bal-list-item-content","bal-list-item-icon","bal-list-item-subtitle","bal-list-item-title","bal-logo","bal-modal","bal-modal-body","bal-modal-header","bal-nav","bal-nav-link","bal-nav-link-grid","bal-nav-link-grid-col","bal-nav-link-group","bal-nav-menu-bar","bal-nav-menu-flyout","bal-nav-meta-bar","bal-navbar","bal-navbar-brand","bal-navbar-menu","bal-navbar-menu-end","bal-navbar-menu-start","bal-notices","bal-notification","bal-number-input","bal-option","bal-option-list","bal-pagination","bal-popover","bal-popover-content","bal-popup","bal-progress-bar","bal-radio","bal-radio-group","bal-radio-icon","bal-segment","bal-segment-item","bal-select","bal-select-option","bal-shape","bal-sheet","bal-snackbar","bal-spinner","bal-stack","bal-stage","bal-stage-back-link","bal-stage-body","bal-stage-foot","bal-stage-head","bal-stage-image","bal-step-item","bal-steps","bal-switch","bal-tab-item","bal-table","bal-tabs","bal-tag","bal-tag-group","bal-text","bal-textarea","bal-time-input","bal-toast","bal-tooltip"];var m="19.9.1";var g=t("i",(function(t,i,a){if(t===void 0){t={}}if(i===void 0){i=undefined}if(a===void 0){a={}}if(Object.keys(a).length===0&&n.hasWindow){a=window}a.BaloiseDesignSystem=a.BaloiseDesignSystem||{};if(i){e(i)}u(Object.assign(Object.assign({},t),i),a);a.BaloiseDesignSystem.toastController=d;a.BaloiseDesignSystem.snackbarController=f;a.BaloiseDesignSystem.initialize=function(){return u(a.BaloiseDesignSystem.config,a)};a.BaloiseDesignSystem.version=m;if(t._generateHydrateForCustomElementsOutput){p(v)}}));var p=function(t){if(t===void 0){t=[]}var e="slot-fb{display:contents}slot-fb[hidden]{display:none}";var n="{visibility:hidden}.hydrated{visibility:inherit}";var i=typeof window!=="undefined"?window:{};if(!i.document){console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");return}var a=i.document.head;var r=a.querySelector("meta[charset]");var o=i.document.createElement("style");if(t.length>0){o.textContent+=e;o.textContent+=t.sort()+n;if(o.innerHTML.length){o.setAttribute("data-styles","");a.insertBefore(o,r?r.nextSibling:a.firstChild)}}}}}}));
1
+ var __extends=this&&this.__extends||function(){var t=function(e,n){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))t[n]=e[n]};return t(e,n)};return function(e,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();var __awaiter=this&&this.__awaiter||function(t,e,n,i){function a(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,r){function o(t){try{l(i.next(t))}catch(t){r(t)}}function s(t){try{l(i["throw"](t))}catch(t){r(t)}}function l(t){t.done?n(t.value):a(t.value).then(o,s)}l((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},i,a,r,o=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return o.next=s(0),o["throw"]=s(1),o["return"]=s(2),typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return l([t,e])}}function l(s){if(i)throw new TypeError("Generator is already executing.");while(o&&(o=0,s[0]&&(n=0)),n)try{if(i=1,a&&(r=s[0]&2?a["return"]:s[0]?a["throw"]||((r=a["return"])&&r.call(a),0):a.next)&&!(r=r.call(a,s[1])).done)return r;if(a=0,r)s=[s[0]&2,r.value];switch(s[0]){case 0:case 1:r=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;a=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]<r[3])){n.label=s[1];break}if(s[0]===6&&n.label<r[1]){n.label=r[1];r=s;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(s);break}if(r[2])n.ops.pop();n.trys.pop();continue}s=e.call(t,n)}catch(t){s=[6,t];a=0}finally{i=r=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-PNu_g_s6.system.js","./p-D7_eHNTI.system.js","./p-D1opIX9W.system.js","./p-ncoiCFQ1.system.js"],(function(t){"use strict";var e,n,i,a;return{setters:[function(t){e=t.a},function(t){n=t.b},function(t){i=t.f},function(t){a=t.d}],execute:function(){var r="baloise-animated";var o=function(){function t(){this._componentObservers=[];this._observers=[];this._config=a}Object.defineProperty(t.prototype,"locale",{get:function(){return"".concat(this._config.language,"-").concat(this._config.region)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"region",{get:function(){return this._config.region},set:function(t){if(t!==this._config.region){this._config.region=t;this._notify()}},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"language",{get:function(){return this._config.language},set:function(t){if(t!==this._config.language){if(this._config.allowedLanguages.includes(t)){this._config.language=t}else{this._config.language=this._config.fallbackLanguage}this._notify()}},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"brand",{get:function(){return this._config.brand},set:function(t){if(t!==this._config.brand){this._config.brand=t;this._notify()}},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"allowedLanguages",{get:function(){return this._config.allowedLanguages},set:function(t){if(t!==this._config.allowedLanguages){this._config.allowedLanguages=t;this._notify()}},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"icons",{get:function(){return this._config.icons},set:function(t){this._config.icons=Object.assign(Object.assign({},this._config.icons),t);this._notify()},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"logger",{get:function(){return this._config.logger},set:function(t){this._config.logger=Object.assign({},t);this._notify()},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"animated",{get:function(){return this._config.animated},set:function(t){this._config.animated=t;this._notify()},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"httpFormSubmit",{get:function(){return this._config.httpFormSubmit},set:function(t){this._config.httpFormSubmit=t;this._notify()},enumerable:false,configurable:true});t.prototype.attach=function(t){var e=this._observers.includes(t);if(e){return console.log("Subject: Observer has been attached already.")}this._observers.push(t);t.configChanged(this._config)};t.prototype.detach=function(t){var e=this._observers.indexOf(t);if(e===-1){return console.log("Subject: Nonexistent observer.")}this._observers.splice(e,1)};t.prototype.attachComponent=function(t){var e=this._componentObservers.includes(t);if(e){return console.log("Subject: Observer has been attached already.")}this._componentObservers.push(t);t.configChanged(this._config)};t.prototype.detachComponent=function(t){var e=this._componentObservers.indexOf(t);if(e===-1){return console.log("Subject: Nonexistent observer.")}this._componentObservers.splice(e,1)};t.prototype.toString=function(){return JSON.stringify(this._config)};t.prototype.reset=function(t){this._config=Object.assign(Object.assign(Object.assign({},this._config),t),{icons:Object.assign(Object.assign({},this._config.icons),t.icons)});this._notify(false)};t.prototype._notify=function(t){if(t===void 0){t=true}for(var e=0,n=this._componentObservers;e<n.length;e++){var i=n[e];i.configChanged(this._config)}if(t){for(var a=0,r=this._observers;a<r.length;a++){var i=r[a];i.configChanged(this._config)}}};return t}();var s=new o;var l=function(t){try{var e=JSON.parse(t.localStorage.getItem(r));if(e!==null){return{animated:e}}return{}}catch(t){return{}}};var u=t("s",(function(t,e){if(t===void 0){t={}}if(e===void 0){e={}}if(Object.keys(e).length===0&&n.hasWindow){e=window}e.BaloiseDesignSystem=e.BaloiseDesignSystem||{};s.reset(Object.assign(Object.assign(Object.assign({},l(e)),t),{icons:Object.assign({},t.icons)}));e.BaloiseDesignSystem.config=s}));var c=function(){function t(t){this.options=t;this.container=null;this.queue=[];this.preQueue=[];this.queueLimit=5}t.prototype.create=function(t){var e=this;if(n.hasDocument){this.setupContainer(t);var i=this.findClone(t);if(i===undefined){var a=document.createElement(this.options.tag);Object.assign(a,t);a.addEventListener("balClose",(function(t){e.removeFromQueue(t.detail)}));this.preQueue.push(a);this.updateQueue();return a}return i}};t.prototype.setQueue=function(t){this.queueLimit=t};t.prototype.dismissAll=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,n,i,a;return __generator(this,(function(r){switch(r.label){case 0:e=(t=this.container)===null||t===void 0?void 0:t.querySelectorAll(this.options.tag);if(!e)return[3,2];n=[];for(i=0;i<e.length;i++){a=e[i];if(a.close){n.push(a.close())}}return[4,Promise.all(n)];case 1:r.sent();r.label=2;case 2:return[2]}}))}))};t.prototype.clearAll=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){console.warn("[DEPRECATED] - use dismissAll() instead");return[2,this.dismissAll()]}))}))};t.prototype.findClone=function(t){for(var e=0;e<this.queue.length;e++){var n=this.queue[e];if(n.message===t.message&&n.color===t.color){return n}}return undefined};t.prototype.setupContainer=function(t){if(n.hasDocument){var e="".concat(this.options.tag,"-container");this.container=document.getElementById(e);if(this.container)return;if(!this.container){this.container=document.createElement("bal-notices");this.container.setAttribute("interface",this.options.tag.replace("bal-",""));this.container.setAttribute("animated",t.animated?"true":"false");if(t.container!==undefined){this.container.setAttribute("container",t.container===true?"":t.container)}this.container.id=e}document.body.appendChild(this.container)}};t.prototype.updateQueue=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,n;return __generator(this,(function(a){switch(a.label){case 0:if(!(this.queue.length<this.queueLimit))return[3,2];e=this.preQueue.shift();if(!(e&&this.container))return[3,2];return[4,i(this.container)];case 1:a.sent();n=this.container.querySelector(".bal-notices__inner");if(n){this.queue.push(e);n.insertAdjacentElement("beforeend",e)}a.label=2;case 2:if(this.queue.length===0){(t=this.container)===null||t===void 0?void 0:t.remove()}return[2]}}))}))};t.prototype.removeFromQueue=function(t){var e=this;this.queue=this.queue.filter((function(e){return e.id!==t}));setTimeout((function(){return e.updateQueue()}),0)};return t}();var b=function(t){__extends(e,t);function e(){return t.call(this,{tag:"bal-snackbar"})||this}e.prototype.create=function(e){return t.prototype.create.call(this,e)};return e}(c);t("B",b);var f=t("b",new b);var h=function(t){__extends(e,t);function e(){return t.call(this,{tag:"bal-toast"})||this}e.prototype.create=function(e){return t.prototype.create.call(this,e)};return e}(c);t("a",h);var d=t("c",new h);var v=["bal-accordion","bal-accordion-details","bal-accordion-summary","bal-accordion-trigger","bal-app","bal-badge","bal-button","bal-button-group","bal-card","bal-card-actions","bal-card-button","bal-card-content","bal-card-subtitle","bal-card-title","bal-carousel","bal-carousel-item","bal-check","bal-checkbox","bal-checkbox-group","bal-close","bal-content","bal-data","bal-data-item","bal-data-label","bal-data-value","bal-date","bal-date-calendar","bal-date-calendar-cell","bal-divider","bal-dropdown","bal-field","bal-field-control","bal-field-hint","bal-field-label","bal-field-message","bal-file-upload","bal-footer","bal-form","bal-form-col","bal-form-grid","bal-heading","bal-hint","bal-hint-text","bal-hint-title","bal-icon","bal-input","bal-input-date","bal-input-group","bal-input-slider","bal-input-stepper","bal-label","bal-list","bal-list-item","bal-list-item-accordion-body","bal-list-item-accordion-head","bal-list-item-content","bal-list-item-icon","bal-list-item-subtitle","bal-list-item-title","bal-logo","bal-modal","bal-modal-body","bal-modal-header","bal-nav","bal-nav-link","bal-nav-link-grid","bal-nav-link-grid-col","bal-nav-link-group","bal-nav-menu-bar","bal-nav-menu-flyout","bal-nav-meta-bar","bal-navbar","bal-navbar-brand","bal-navbar-menu","bal-navbar-menu-end","bal-navbar-menu-start","bal-notices","bal-notification","bal-number-input","bal-option","bal-option-list","bal-pagination","bal-popover","bal-popover-content","bal-popup","bal-progress-bar","bal-radio","bal-radio-group","bal-radio-icon","bal-segment","bal-segment-item","bal-select","bal-select-option","bal-shape","bal-sheet","bal-snackbar","bal-spinner","bal-stack","bal-stage","bal-stage-back-link","bal-stage-body","bal-stage-foot","bal-stage-head","bal-stage-image","bal-step-item","bal-steps","bal-switch","bal-tab-item","bal-table","bal-tabs","bal-tag","bal-tag-group","bal-text","bal-textarea","bal-time-input","bal-toast","bal-tooltip"];var m="19.9.2";var g=t("i",(function(t,i,a){if(t===void 0){t={}}if(i===void 0){i=undefined}if(a===void 0){a={}}if(Object.keys(a).length===0&&n.hasWindow){a=window}a.BaloiseDesignSystem=a.BaloiseDesignSystem||{};if(i){e(i)}u(Object.assign(Object.assign({},t),i),a);a.BaloiseDesignSystem.toastController=d;a.BaloiseDesignSystem.snackbarController=f;a.BaloiseDesignSystem.initialize=function(){return u(a.BaloiseDesignSystem.config,a)};a.BaloiseDesignSystem.version=m;if(t._generateHydrateForCustomElementsOutput){p(v)}}));var p=function(t){if(t===void 0){t=[]}var e="slot-fb{display:contents}slot-fb[hidden]{display:none}";var n="{visibility:hidden}.hydrated{visibility:inherit}";var i=typeof window!=="undefined"?window:{};if(!i.document){console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");return}var a=i.document.head;var r=a.querySelector("meta[charset]");var o=i.document.createElement("style");if(t.length>0){o.textContent+=e;o.textContent+=t.sort()+n;if(o.innerHTML.length){o.setAttribute("data-styles","");a.insertBefore(o,r?r.nextSibling:a.firstChild)}}}}}}));
@@ -1 +1 @@
1
- var __extends=this&&this.__extends||function(){var t=function(e,n){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))t[n]=e[n]};return t(e,n)};return function(e,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();var __awaiter=this&&this.__awaiter||function(t,e,n,i){function r(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,u){function s(t){try{f(i.next(t))}catch(t){u(t)}}function o(t){try{f(i["throw"](t))}catch(t){u(t)}}function f(t){t.done?n(t.value):r(t.value).then(s,o)}f((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},i,r,u,s=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return s.next=o(0),s["throw"]=o(1),s["return"]=o(2),typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(t){return function(e){return f([t,e])}}function f(o){if(i)throw new TypeError("Generator is already executing.");while(s&&(s=0,o[0]&&(n=0)),n)try{if(i=1,r&&(u=o[0]&2?r["return"]:o[0]?r["throw"]||((u=r["return"])&&u.call(r),0):r.next)&&!(u=u.call(r,o[1])).done)return u;if(r=0,u)o=[o[0]&2,u.value];switch(o[0]){case 0:case 1:u=o;break;case 4:n.label++;return{value:o[1],done:false};case 5:n.label++;r=o[1];o=[0];continue;case 7:o=n.ops.pop();n.trys.pop();continue;default:if(!(u=n.trys,u=u.length>0&&u[u.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!u||o[1]>u[0]&&o[1]<u[3])){n.label=o[1];break}if(o[0]===6&&n.label<u[1]){n.label=u[1];u=o;break}if(u&&n.label<u[2]){n.label=u[2];n.ops.push(o);break}if(u[2])n.ops.pop();n.trys.pop();continue}o=e.call(t,n)}catch(t){o=[6,t];r=0}finally{i=u=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-D1opIX9W.system.js","./p-D7_eHNTI.system.js","./p-DdX8FaaK.system.js","./p-DDPYMMGG.system.js","./p-q1IO5uRR.system.js"],(function(t){"use strict";var e,n,i,r,u,s,o,f,c,a,h,l;return{setters:[function(t){e=t.k;n=t.o;i=t.p},function(t){r=t.b},function(t){u=t.b},function(t){s=t.L;o=t.S},function(t){f=t.j;c=t.k;a=t.l;h=t.m;l=t.n}],execute:function(){var b=function(){function t(t){if(t===void 0){t={}}this.previousWidth=r.window.width;this.previousHeight=r.window.height;this.previousIsLandscape=this.isLandscape;this.options={onlyListenToWidthChanges:false};this.options=Object.assign(Object.assign({},this.options),t)}t.prototype.hasResized=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(u.hasTouchScreen){if(!this.sameWidth||this.previousIsLandscape!==this.isLandscape){this.resetPreviousValues();return[2,true]}}else{if(this.options.onlyListenToWidthChanges){if(!this.sameWidth){this.resetPreviousValues();return[2,true]}}else{if(!this.sameWidth||!this.sameHeight){this.resetPreviousValues();return[2,true]}}}return[2,false]}))}))};Object.defineProperty(t.prototype,"isLandscape",{get:function(){return r.window.width>r.window.height},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"sameWidth",{get:function(){return this.previousWidth===r.window.width},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"sameHeight",{get:function(){return this.previousHeight===r.window.height},enumerable:false,configurable:true});t.prototype.resetPreviousValues=function(){this.previousWidth=r.window.width;this.previousHeight=r.window.height;this.previousIsLandscape=this.isLandscape};return t}();var v=function(t){__extends(r,t);function r(){var n=t.apply(this,arguments)||this;n.resizeHandler=new b({onlyListenToWidthChanges:true});n.debouncedNotify=e((function(){return n.notify()}),100);n.notify=function(){return __awaiter(n,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.resizeHandler.hasResized()];case 1:if(e.sent()){t.prototype.notify.call(this,undefined)}return[2]}}))}))};return n}r.prototype.connect=function(e){t.prototype.connect.call(this,e);if(this.el){n(this.el,"resize",this.debouncedNotify,{passive:true})}};r.prototype.disconnect=function(){t.prototype.disconnect.call(this);if(this.el){i(this.el,"resize",this.debouncedNotify)}};return r}(s);t("B",v);var d=function(t){return parseInt(t.slice(0,-2),10)};var g=d(f);var m=d(c);var w=d(a);var j=d(h);var _=d(l);var p=function(t){var e=t.innerWidth;return e<g};var y=function(t){var e=t.innerWidth;return e>=g&&e<m};var O=function(t){return p(t)||y(t)};var D=function(t){return!O(t)};var k=function(t){var e=t.innerWidth;return e>=w&&e<j};var T=function(t){var e=t.innerWidth;return e>=j&&e<_};var x=function(t){var e=t.innerWidth;return e>=_};var I={mobile:p,tablet:y,touch:O,desktop:D,highDefinition:k,widescreen:T,fullhd:x};var S=function(){function t(){this.breakpoints=[];if(r.hasWindow){this.win=window;this.win.BaloiseDesignSystem=this.win.BaloiseDesignSystem||{};this.detect()}}Object.defineProperty(t.prototype,"isMobile",{get:function(){return this.includes("mobile")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isTablet",{get:function(){return this.includes("tablet")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isTouch",{get:function(){return this.includes("touch")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isDesktop",{get:function(){return this.includes("desktop")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isHighDefinition",{get:function(){return this.includes("highDefinition")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isWidescreen",{get:function(){return this.includes("widescreen")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isFullHD",{get:function(){return this.includes("fullhd")},enumerable:false,configurable:true});t.prototype.includes=function(t){var e;this.detect();return!!((e=this.breakpoints)===null||e===void 0?void 0:e.includes(t))};t.prototype.detect=function(){var t=this;if(this.win){this.breakpoints=Object.keys(I).filter((function(e){return I[e](t.win)}));this.win.BaloiseDesignSystem.breakpoints=this.breakpoints;this.win.BaloiseDesignSystem.platforms=this.breakpoints}return this.breakpoints};t.prototype.toObject=function(){return{mobile:this.breakpoints.includes("mobile"),tablet:this.breakpoints.includes("tablet"),touch:this.breakpoints.includes("touch"),desktop:this.breakpoints.includes("desktop"),highDefinition:this.breakpoints.includes("highDefinition"),widescreen:this.breakpoints.includes("widescreen"),fullhd:this.breakpoints.includes("fullhd")}};return t}();t("d",S);var W=t("b",new S);var H={mobile:false,tablet:false,touch:false,desktop:false,highDefinition:false,widescreen:false,fullhd:false};var C=function(t){__extends(n,t);function n(){var n=t.call(this,(function(t){return t.breakpointListener(n.state)}))||this;n.state=H;n.listener=new v;n.debouncedNotify=e((function(){return n.notify()}),50);n.listener.connect();n.listener.add((function(){W.detect();var t=W.toObject();if(!n.isEqual(t)){n.state=t;n.debouncedNotify()}}));return n}n.prototype.attach=function(e){t.prototype.attach.call(this,e);W.detect();var n=W.toObject();if(!this.isEqual(n)){this.state=n;this.debouncedNotify()}};n.prototype.isEqual=function(t){return JSON.stringify(this.state)===JSON.stringify(t)};return n}(o);t("c",C);var G=t("a",new C)}}}));
1
+ var __extends=this&&this.__extends||function(){var t=function(e,n){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))t[n]=e[n]};return t(e,n)};return function(e,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();var __awaiter=this&&this.__awaiter||function(t,e,n,i){function r(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,u){function s(t){try{f(i.next(t))}catch(t){u(t)}}function o(t){try{f(i["throw"](t))}catch(t){u(t)}}function f(t){t.done?n(t.value):r(t.value).then(s,o)}f((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},i,r,u,s=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return s.next=o(0),s["throw"]=o(1),s["return"]=o(2),typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(t){return function(e){return f([t,e])}}function f(o){if(i)throw new TypeError("Generator is already executing.");while(s&&(s=0,o[0]&&(n=0)),n)try{if(i=1,r&&(u=o[0]&2?r["return"]:o[0]?r["throw"]||((u=r["return"])&&u.call(r),0):r.next)&&!(u=u.call(r,o[1])).done)return u;if(r=0,u)o=[o[0]&2,u.value];switch(o[0]){case 0:case 1:u=o;break;case 4:n.label++;return{value:o[1],done:false};case 5:n.label++;r=o[1];o=[0];continue;case 7:o=n.ops.pop();n.trys.pop();continue;default:if(!(u=n.trys,u=u.length>0&&u[u.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!u||o[1]>u[0]&&o[1]<u[3])){n.label=o[1];break}if(o[0]===6&&n.label<u[1]){n.label=u[1];u=o;break}if(u&&n.label<u[2]){n.label=u[2];n.ops.push(o);break}if(u[2])n.ops.pop();n.trys.pop();continue}o=e.call(t,n)}catch(t){o=[6,t];r=0}finally{i=u=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-D1opIX9W.system.js","./p-D7_eHNTI.system.js","./p-DdX8FaaK.system.js","./p-DDPYMMGG.system.js","./p-DYEfn6Be.system.js"],(function(t){"use strict";var e,n,i,r,u,s,o,f,c,a,h,l;return{setters:[function(t){e=t.k;n=t.o;i=t.p},function(t){r=t.b},function(t){u=t.b},function(t){s=t.L;o=t.S},function(t){f=t.j;c=t.k;a=t.l;h=t.m;l=t.n}],execute:function(){var b=function(){function t(t){if(t===void 0){t={}}this.previousWidth=r.window.width;this.previousHeight=r.window.height;this.previousIsLandscape=this.isLandscape;this.options={onlyListenToWidthChanges:false};this.options=Object.assign(Object.assign({},this.options),t)}t.prototype.hasResized=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(u.hasTouchScreen){if(!this.sameWidth||this.previousIsLandscape!==this.isLandscape){this.resetPreviousValues();return[2,true]}}else{if(this.options.onlyListenToWidthChanges){if(!this.sameWidth){this.resetPreviousValues();return[2,true]}}else{if(!this.sameWidth||!this.sameHeight){this.resetPreviousValues();return[2,true]}}}return[2,false]}))}))};Object.defineProperty(t.prototype,"isLandscape",{get:function(){return r.window.width>r.window.height},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"sameWidth",{get:function(){return this.previousWidth===r.window.width},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"sameHeight",{get:function(){return this.previousHeight===r.window.height},enumerable:false,configurable:true});t.prototype.resetPreviousValues=function(){this.previousWidth=r.window.width;this.previousHeight=r.window.height;this.previousIsLandscape=this.isLandscape};return t}();var v=function(t){__extends(r,t);function r(){var n=t.apply(this,arguments)||this;n.resizeHandler=new b({onlyListenToWidthChanges:true});n.debouncedNotify=e((function(){return n.notify()}),100);n.notify=function(){return __awaiter(n,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.resizeHandler.hasResized()];case 1:if(e.sent()){t.prototype.notify.call(this,undefined)}return[2]}}))}))};return n}r.prototype.connect=function(e){t.prototype.connect.call(this,e);if(this.el){n(this.el,"resize",this.debouncedNotify,{passive:true})}};r.prototype.disconnect=function(){t.prototype.disconnect.call(this);if(this.el){i(this.el,"resize",this.debouncedNotify)}};return r}(s);t("B",v);var d=function(t){return parseInt(t.slice(0,-2),10)};var g=d(f);var m=d(c);var w=d(a);var j=d(h);var _=d(l);var p=function(t){var e=t.innerWidth;return e<g};var y=function(t){var e=t.innerWidth;return e>=g&&e<m};var O=function(t){return p(t)||y(t)};var D=function(t){return!O(t)};var k=function(t){var e=t.innerWidth;return e>=w&&e<j};var T=function(t){var e=t.innerWidth;return e>=j&&e<_};var x=function(t){var e=t.innerWidth;return e>=_};var S={mobile:p,tablet:y,touch:O,desktop:D,highDefinition:k,widescreen:T,fullhd:x};var I=function(){function t(){this.breakpoints=[];if(r.hasWindow){this.win=window;this.win.BaloiseDesignSystem=this.win.BaloiseDesignSystem||{};this.detect()}}Object.defineProperty(t.prototype,"isMobile",{get:function(){return this.includes("mobile")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isTablet",{get:function(){return this.includes("tablet")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isTouch",{get:function(){return this.includes("touch")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isDesktop",{get:function(){return this.includes("desktop")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isHighDefinition",{get:function(){return this.includes("highDefinition")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isWidescreen",{get:function(){return this.includes("widescreen")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isFullHD",{get:function(){return this.includes("fullhd")},enumerable:false,configurable:true});t.prototype.includes=function(t){var e;this.detect();return!!((e=this.breakpoints)===null||e===void 0?void 0:e.includes(t))};t.prototype.detect=function(){var t=this;if(this.win){this.breakpoints=Object.keys(S).filter((function(e){return S[e](t.win)}));this.win.BaloiseDesignSystem.breakpoints=this.breakpoints;this.win.BaloiseDesignSystem.platforms=this.breakpoints}return this.breakpoints};t.prototype.toObject=function(){return{mobile:this.breakpoints.includes("mobile"),tablet:this.breakpoints.includes("tablet"),touch:this.breakpoints.includes("touch"),desktop:this.breakpoints.includes("desktop"),highDefinition:this.breakpoints.includes("highDefinition"),widescreen:this.breakpoints.includes("widescreen"),fullhd:this.breakpoints.includes("fullhd")}};return t}();t("d",I);var W=t("b",new I);var H={mobile:false,tablet:false,touch:false,desktop:false,highDefinition:false,widescreen:false,fullhd:false};var C=function(t){__extends(n,t);function n(){var n=t.call(this,(function(t){return t.breakpointListener(n.state)}))||this;n.state=H;n.listener=new v;n.debouncedNotify=e((function(){return n.notify()}),50);n.listener.connect();n.listener.add((function(){W.detect();var t=W.toObject();if(!n.isEqual(t)){n.state=t;n.debouncedNotify()}}));return n}n.prototype.attach=function(e){t.prototype.attach.call(this,e);W.detect();var n=W.toObject();if(!this.isEqual(n)){this.state=n;this.debouncedNotify()}};n.prototype.isEqual=function(t){return JSON.stringify(this.state)===JSON.stringify(t)};return n}(o);t("c",C);var E=t("a",new C)}}}));