@baloise/ds-core 17.2.0 → 17.2.1
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.
- package/components/bal-carousel2.js +1 -1
- package/components/bal-close2.js +1 -1
- package/components/bal-date-calendar2.js +1 -1
- package/components/bal-date.js +1 -1
- package/components/bal-input-date2.js +2 -2
- package/components/bal-list-item-accordion-body2.js +3 -3
- package/components/bal-pagination2.js +4 -4
- package/components/bal-segment.js +1 -1
- package/components/bal-stage-image.js +1 -1
- package/components/bal-tabs2.js +12 -14
- package/components/index.js +1 -1
- package/components/mutation.decorator.js +11 -13
- package/components/tokens.esm.js +1 -1
- package/dist/baloise-design-system/baloise-design-system.esm.js +1 -1
- package/dist/baloise-design-system/index.esm.js +1 -1
- package/dist/baloise-design-system/{p-512a273a.js → p-00281d6b.js} +1 -1
- package/dist/baloise-design-system/{p-799a292492.entry.js → p-04979ee232.entry.js} +1 -1
- package/dist/baloise-design-system/{p-cc4dc17721.system.entry.js → p-18fbeec32d.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-ba38ccde00.entry.js → p-19abec97c4.entry.js} +1 -1
- package/dist/baloise-design-system/{p-749fe3de.system.js → p-1c118a88.system.js} +1 -1
- package/dist/baloise-design-system/{p-aebb3198c4.system.entry.js → p-1cb1fb71d4.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-c045d5a57c.system.entry.js → p-20d7a74311.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-c412a7d9f5.system.entry.js → p-25e640839d.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-246e9e2585.system.entry.js → p-27d3f5d35a.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-34b1a9a33b.entry.js → p-296b12e3a9.entry.js} +1 -1
- package/dist/baloise-design-system/{p-13e7a8817c.entry.js → p-2ad664ad93.entry.js} +1 -1
- package/dist/baloise-design-system/{p-56f5e6d1.system.js → p-35120ab6.system.js} +1 -1
- package/dist/baloise-design-system/{p-e3a563de25.system.entry.js → p-374ce10b98.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-9f83acd71d.entry.js → p-39ad885d73.entry.js} +1 -1
- package/dist/baloise-design-system/{p-fb2a9f7542.system.entry.js → p-3a0a84fbcc.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-3d1747bc.system.js +1 -0
- package/dist/baloise-design-system/{p-eee34b1983.entry.js → p-47ae469120.entry.js} +1 -1
- package/dist/baloise-design-system/{p-b5152365.system.js → p-486eb96d.system.js} +1 -1
- package/dist/baloise-design-system/p-51380295.system.js +1 -1
- package/dist/baloise-design-system/{p-8b8019c57c.entry.js → p-58f7826179.entry.js} +1 -1
- package/dist/baloise-design-system/{p-88be14c716.entry.js → p-5bbc6e33c0.entry.js} +1 -1
- package/dist/baloise-design-system/{p-d8fb982e61.system.entry.js → p-61b87619ac.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-01cdb12b31.entry.js → p-63793834ec.entry.js} +1 -1
- package/dist/baloise-design-system/p-65b542bd.system.js +1 -1
- package/dist/baloise-design-system/{p-5361e8255f.system.entry.js → p-682a1550e1.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-38eaad35.js → p-7684efd8.js} +1 -1
- package/dist/baloise-design-system/{p-fd88b00c71.system.entry.js → p-77a1d547e2.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-992c49c23e.system.entry.js → p-7d63b70a40.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-737eb79c75.entry.js → p-7e50273c21.entry.js} +1 -1
- package/dist/baloise-design-system/{p-3c4bbee680.system.entry.js → p-9e2730c56b.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-d1c71ad702.entry.js → p-a33ee4ca30.entry.js} +1 -1
- package/dist/baloise-design-system/{p-4023b8977a.entry.js → p-a5a8da4e09.entry.js} +1 -1
- package/dist/baloise-design-system/{p-b86876e144.entry.js → p-a6556b9bd0.entry.js} +1 -1
- package/dist/baloise-design-system/{p-8e244ba61a.entry.js → p-a76969fe16.entry.js} +1 -1
- package/dist/baloise-design-system/p-aa08fe2376.entry.js +1 -0
- package/dist/baloise-design-system/{p-30679d51bd.system.entry.js → p-ab64213bd1.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-a7cf23072c.entry.js → p-ac2b4a256d.entry.js} +1 -1
- package/dist/baloise-design-system/{p-4c8470249b.system.entry.js → p-b5c538994b.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-be6d3bde8f.entry.js → p-c486a8a8ed.entry.js} +1 -1
- package/dist/baloise-design-system/{p-faaf77375f.system.entry.js → p-c6ee7ff820.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-c72669019f.system.entry.js → p-cd5cbb0462.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-ce674dca.js +1 -0
- package/dist/baloise-design-system/{p-73efab2c3a.system.entry.js → p-d21e99c2da.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-a68d21a21e.system.entry.js → p-d8420ad3d5.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-de13d5c0.system.js → p-dafb9ede.system.js} +1 -1
- package/dist/baloise-design-system/{p-34c50dfa1e.entry.js → p-dc032a0d49.entry.js} +1 -1
- package/dist/baloise-design-system/p-e3167218.js +1 -1
- package/dist/baloise-design-system/{p-ccee08eae1.system.entry.js → p-e5724f1013.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-749056f366.entry.js → p-fc915218bf.entry.js} +1 -1
- package/dist/baloise-design-system/p-fe30593a.js +1 -0
- package/dist/cjs/bal-carousel_2.cjs.entry.js +5 -5
- package/dist/cjs/bal-checkbox_2.cjs.entry.js +1 -1
- package/dist/cjs/bal-close.cjs.entry.js +1 -1
- package/dist/cjs/bal-date-calendar_2.cjs.entry.js +3 -3
- package/dist/cjs/bal-date.cjs.entry.js +1 -1
- package/dist/cjs/bal-field_5.cjs.entry.js +1 -1
- package/dist/cjs/bal-hint_5.cjs.entry.js +3 -3
- package/dist/cjs/bal-list_8.cjs.entry.js +6 -6
- package/dist/cjs/bal-logo.cjs.entry.js +3 -3
- package/dist/cjs/bal-nav_8.cjs.entry.js +4 -4
- package/dist/cjs/bal-navbar_5.cjs.entry.js +3 -3
- package/dist/cjs/bal-pagination.cjs.entry.js +7 -7
- package/dist/cjs/bal-progress-bar.cjs.entry.js +4 -4
- package/dist/cjs/bal-radio_2.cjs.entry.js +1 -1
- package/dist/cjs/bal-segment_2.cjs.entry.js +5 -5
- package/dist/cjs/bal-shape.cjs.entry.js +1 -1
- package/dist/cjs/bal-stage_6.cjs.entry.js +1 -1
- package/dist/cjs/bal-steps.cjs.entry.js +4 -4
- package/dist/cjs/bal-tab-item_2.cjs.entry.js +16 -18
- package/dist/cjs/{breakpoints.decorator-8bde2bcf.js → breakpoints.decorator-2c97bb36.js} +1 -1
- package/dist/cjs/{breakpoints.subject-15687772.js → breakpoints.subject-f3104eb9.js} +1 -1
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/initialize-6421e1c1.js +1 -1
- package/dist/cjs/{mutation.decorator-d2ce6c1a.js → mutation.decorator-5ac1e198.js} +10 -12
- package/dist/cjs/{tokens.esm-bdae5d02.js → tokens.esm-dbef942e.js} +1 -1
- package/dist/cjs/{window-resize.decorator-e1fbbe1f.js → window-resize.decorator-69ff6e4c.js} +1 -1
- package/dist/collection/components/bal-carousel/bal-carousel.js +3 -3
- package/dist/collection/components/bal-close/bal-close.js +4 -4
- package/dist/collection/components/bal-date/bal-date-calendar/bal-date-calendar.js +1 -1
- package/dist/collection/components/bal-date/bal-date.js +3 -3
- package/dist/collection/components/bal-input/bal-input-date/bal-input-date.js +4 -4
- package/dist/collection/components/bal-list/bal-list-item-accordion-body/bal-list-item-accordion-body.js +3 -3
- package/dist/collection/components/bal-pagination/bal-pagination.js +6 -6
- package/dist/collection/components/bal-segment/bal-segment.js +1 -1
- package/dist/collection/components/bal-stage/bal-stage-image/bal-stage-image.js +1 -1
- package/dist/collection/components/bal-tabs/bal-tabs.js +12 -14
- package/dist/collection/utils/constants/version.constant.js +1 -1
- package/dist/collection/utils/mutation/mutation.subject.js +11 -13
- package/dist/esm/bal-carousel_2.entry.js +5 -5
- package/dist/esm/bal-checkbox_2.entry.js +1 -1
- package/dist/esm/bal-close.entry.js +1 -1
- package/dist/esm/bal-date-calendar_2.entry.js +3 -3
- package/dist/esm/bal-date.entry.js +1 -1
- package/dist/esm/bal-field_5.entry.js +1 -1
- package/dist/esm/bal-hint_5.entry.js +3 -3
- package/dist/esm/bal-list_8.entry.js +6 -6
- package/dist/esm/bal-logo.entry.js +3 -3
- package/dist/esm/bal-nav_8.entry.js +4 -4
- package/dist/esm/bal-navbar_5.entry.js +3 -3
- package/dist/esm/bal-pagination.entry.js +7 -7
- package/dist/esm/bal-progress-bar.entry.js +4 -4
- package/dist/esm/bal-radio_2.entry.js +1 -1
- package/dist/esm/bal-segment_2.entry.js +5 -5
- package/dist/esm/bal-shape.entry.js +1 -1
- package/dist/esm/bal-stage_6.entry.js +1 -1
- package/dist/esm/bal-steps.entry.js +4 -4
- package/dist/esm/bal-tab-item_2.entry.js +16 -18
- package/dist/esm/{breakpoints.decorator-7623ded8.js → breakpoints.decorator-a8efc52b.js} +1 -1
- package/dist/esm/{breakpoints.subject-ac2d9287.js → breakpoints.subject-0764e6ff.js} +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/initialize-b9912138.js +1 -1
- package/dist/esm/{mutation.decorator-985cc0a1.js → mutation.decorator-74831883.js} +11 -13
- package/dist/esm/{tokens.esm-44ff650d.js → tokens.esm-69df759d.js} +1 -1
- package/dist/esm/{window-resize.decorator-ab11c379.js → window-resize.decorator-53d6279e.js} +1 -1
- package/dist/esm-es5/bal-carousel_2.entry.js +1 -1
- package/dist/esm-es5/bal-checkbox_2.entry.js +1 -1
- package/dist/esm-es5/bal-close.entry.js +1 -1
- package/dist/esm-es5/bal-date-calendar_2.entry.js +1 -1
- package/dist/esm-es5/bal-date.entry.js +1 -1
- package/dist/esm-es5/bal-field_5.entry.js +1 -1
- package/dist/esm-es5/bal-hint_5.entry.js +1 -1
- package/dist/esm-es5/bal-list_8.entry.js +1 -1
- package/dist/esm-es5/bal-logo.entry.js +1 -1
- package/dist/esm-es5/bal-nav_8.entry.js +1 -1
- package/dist/esm-es5/bal-navbar_5.entry.js +1 -1
- package/dist/esm-es5/bal-pagination.entry.js +1 -1
- package/dist/esm-es5/bal-progress-bar.entry.js +1 -1
- package/dist/esm-es5/bal-radio_2.entry.js +1 -1
- package/dist/esm-es5/bal-segment_2.entry.js +1 -1
- package/dist/esm-es5/bal-shape.entry.js +1 -1
- package/dist/esm-es5/bal-stage_6.entry.js +1 -1
- package/dist/esm-es5/bal-steps.entry.js +1 -1
- package/dist/esm-es5/bal-tab-item_2.entry.js +1 -1
- package/dist/esm-es5/breakpoints.decorator-a8efc52b.js +1 -0
- package/dist/esm-es5/{breakpoints.subject-ac2d9287.js → breakpoints.subject-0764e6ff.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/initialize-b9912138.js +1 -1
- package/dist/esm-es5/mutation.decorator-74831883.js +1 -0
- package/dist/esm-es5/{window-resize.decorator-ab11c379.js → window-resize.decorator-53d6279e.js} +1 -1
- package/dist/types/components/bal-carousel/bal-carousel.d.ts +1 -2
- package/dist/types/components/bal-close/bal-close.d.ts +1 -2
- package/dist/types/components/bal-date/bal-date-calendar/bal-date-calendar.d.ts +1 -1
- package/dist/types/components/bal-date/bal-date.d.ts +1 -2
- package/dist/types/components/bal-input/bal-input-date/bal-input-date.d.ts +1 -1
- package/dist/types/components/bal-list/bal-list-item-accordion-body/bal-list-item-accordion-body.d.ts +1 -1
- package/dist/types/components/bal-pagination/bal-pagination.d.ts +1 -2
- package/dist/types/components/bal-segment/bal-segment.d.ts +1 -1
- package/dist/types/components.d.ts +7 -7
- package/package.json +7 -7
- package/dist/baloise-design-system/p-12a557557c.entry.js +0 -1
- package/dist/baloise-design-system/p-55d6475b.js +0 -1
- package/dist/baloise-design-system/p-738ca720.system.js +0 -1
- package/dist/baloise-design-system/p-950bd476.js +0 -1
- package/dist/esm-es5/breakpoints.decorator-7623ded8.js +0 -1
- package/dist/esm-es5/mutation.decorator-985cc0a1.js +0 -1
- /package/dist/baloise-design-system/{p-18a74018.js → p-0521dc23.js} +0 -0
- /package/dist/baloise-design-system/{p-69313d59.system.js → p-342d34ac.system.js} +0 -0
- /package/dist/esm-es5/{tokens.esm-44ff650d.js → tokens.esm-69df759d.js} +0 -0
package/dist/baloise-design-system/{p-c045d5a57c.system.entry.js → p-20d7a74311.system.entry.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var t=function(e,i){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i))t[i]=e[i]};return t(e,i)};return function(e,i){if(typeof i!=="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");t(e,i);function n(){this.constructor=e}e.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)}}();var __awaiter=this&&this.__awaiter||function(t,e,i,n){function a(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,r){function s(t){try{o(n.next(t))}catch(t){r(t)}}function l(t){try{o(n["throw"](t))}catch(t){r(t)}}function o(t){t.done?i(t.value):a(t.value).then(s,l)}o((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,a,r,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(t){return function(e){return o([t,e])}}function o(l){if(n)throw new TypeError("Generator is already executing.");while(s&&(s=0,l[0]&&(i=0)),i)try{if(n=1,a&&(r=l[0]&2?a["return"]:l[0]?a["throw"]||((r=a["return"])&&r.call(a),0):a.next)&&!(r=r.call(a,l[1])).done)return r;if(a=0,r)l=[l[0]&2,r.value];switch(l[0]){case 0:case 1:r=l;break;case 4:i.label++;return{value:l[1],done:false};case 5:i.label++;a=l[1];l=[0];continue;case 7:l=i.ops.pop();i.trys.pop();continue;default:if(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(l[0]===6||l[0]===2)){i=0;continue}if(l[0]===3&&(!r||l[1]>r[0]&&l[1]<r[3])){i.label=l[1];break}if(l[0]===6&&i.label<r[1]){i.label=r[1];r=l;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(l);break}if(r[2])i.ops.pop();i.trys.pop();continue}l=e.call(t,i)}catch(t){l=[6,t];a=0}finally{n=r=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,e,i){if(i||arguments.length===2)for(var n=0,a=e.length,r;n<a;n++){if(r||!(n in e)){if(!r)r=Array.prototype.slice.call(e,0,n);r[n]=e[n]}}return t.concat(r||Array.prototype.slice.call(e))};System.register(["./p-d67f7321.system.js","./p-6dbef894.system.js","./p-fa6b5cde.system.js","./p-6913b916.system.js","./p-802216cd.system.js","./p-23bdd8dc.system.js","./p-4d807f18.system.js","./p-db0895e2.system.js","./p-bb6304d0.system.js","./p-0177e3a0.system.js","./p-d1ec4d6e.system.js","./p-8949aa8b.system.js","./p-bf139fe5.system.js","./p-6e5745c8.system.js","./p-ee3c7a38.system.js","./p-ba579059.system.js","./p-5f26e92f.system.js","./p-2880433e.system.js","./p-145d5c4e.system.js","./p-a1f6e944.system.js","./p-b3f2c626.system.js","./p-a898208e.system.js","./p-ec9a7cf5.system.js","./p-eecefb0a.system.js"],(function(t){"use strict";var e,i,n,a,r,s,l,o,u,c,d,f,h,b,v,_,m,g,p,y,w,x,j,k,O,C,D;return{setters:[function(t){e=t.h;i=t.r;n=t.c;a=t.H;r=t.g},function(t){s=t._;l=t.a},function(t){o=t.l},function(t){u=t.l},function(t){c=t.B;d=t.i;f=t.d},function(t){h=t.L},function(t){b=t.b;v=t.p},function(t){_=t.B},function(t){m=t.d},function(t){g=t.L},function(t){p=t.L},function(t){y=t.i},function(t){w=t.m;x=t.c;j=t.d},function(t){k=t.d},function(t){O=t.L},function(t){C=t.N},function(t){D=t.I},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){function z(t,e){if(e<1||t<0){return undefined}return new Date(t,e,0).getDate()}function A(t,e,i){return"".concat(i,"-").concat(o("".concat(e),2,"0"),"-").concat(o("".concat(t),2,"0"))}function M(){var t=new Date;return"".concat(t.getFullYear(),"-").concat(o("".concat(t.getMonth()+1),2,"0"),"-").concat(o("".concat(t.getDate()),2,"0"))}function P(t,e,i,n,a){var r=[];var s=z(t,e);var l=L(t,e);if(s!==undefined&&l){var o=M();var d=c.fromISO(i);var f=c.fromISO(n);var h=function(t){if(u(a)){return false}return!a(t)};for(var b=1;b<=s;b++){var v=A(b,e,t);r.push({day:b,month:e,year:t,isoDate:v,fullDate:c.fromISO(v).toFormat(),today:o===v,disabled:d.isAfter(v)||f.isBefore(v)||h(v)})}}return r}function S(t,e){if(e<1||t<0){return 1}var i=new Date(t,e-1,1);var n=i.getDay();return n===0?7:n}function K(t){if(["en","de","fr","it","nl","es","pl","pt","sv","fi"].includes(t)){return t}return"de"}function V(t,e,i){var n=[];var a=new Date;var r=a.getFullYear();for(var s=e;s<=i;s++){n.push({value:s,label:"".concat(s),disabled:false,today:r===s,selected:t===s})}return n}function F(t,e,i,n,a){var r=K(t);var s=c.infoMonths({format:"long",locale:r});var l=c.fromISO(i);var o=new Date;var u=o.getFullYear();var d=o.getMonth()+1;var f=0;if(n&&e!==undefined){var h=c.fromISO(n);if(h.isValid){if(e>h.year){f=0}else{f=h.month||f}}}var b=12;if(a&&e!==undefined){var v=c.fromISO(a);if(v.isValid){if(e<v.year){b=12}else{b=v.month||b}}}return s.map((function(t,i){var n=i+1;return{label:t,value:n,today:n===d&&e===u,selected:n===l.month&&e===l.year,disabled:n<f||n>b}}))}function I(t){var e=K(t);var i=c.infoWeekdays({format:"short",locale:e});var n=c.infoWeekdays({format:"long",locale:e});return i.map((function(t,e){return{ariaLabel:n[e],textContent:t}}))}function L(t,e){if(e<1||e>12||t<0){return undefined}return new Date(t,e-1,1)}var T=function(t){var i=t.name,n=t.isVisible,a=t.girdHeight,r=t.list,s=t.onSelect,l=t.ref;var o=_.block("date-calendar");var u=o.element("body");var c=u.element("list");return e("ul",{class:Object.assign(Object.assign(Object.assign({},c.class()),c.modifier(i).class()),c.modifier("visible").class(n)),"aria-hidden":n?"false":"true",style:{height:"".concat(a-2-8-8,"px")},ref:function(t){return l?l(t):undefined}},r.map((function(t){return e("li",{key:t.value,id:"".concat(i,"-").concat(t.value)},e("button",{class:Object.assign(Object.assign(Object.assign(Object.assign({},c.element("item").class()),c.element("item").modifier("today").class(t.today)),c.element("item").modifier("selected").class(t.selected)),c.element("item").modifier("disabled").class(t.disabled)),disabled:t.disabled,tabIndex:-1,onClick:function(){if(!t.disabled){s(t)}}},t.label))})))};var E=function(t){var i=t.isVisible,n=t.ref,a=t.grid,r=t.weekdays,s=t.selectedDate,l=t.firstDayOfWeek,o=t.onSelectDay;var u=_.block("date-calendar");var c=u.element("body");var d=c.element("grid");return e("div",{role:"grid",class:Object.assign(Object.assign({},d.class()),d.modifier("visible").class(i)),"aria-hidden":i?"false":"true",ref:function(t){return n(t)}},e("div",{role:"row",class:Object.assign({},d.element("head").class())},r.map((function(t){return e("span",{key:t.textContent,role:"columnheader","aria-label":t.ariaLabel,title:t.ariaLabel},t.textContent)}))),e("div",{role:"row",class:Object.assign({},d.element("body").class()),style:{"--bal-date-first-week-day":"".concat(l)}},a.map((function(t){return e("bal-date-calendar-cell",Object.assign({key:t.isoDate},t,{selected:t.isoDate===s,onBalSelectDay:function(t){var e=t.detail;return o(e)}}))}))))};var H=function(t){var i=t.language,n=t.onClickSelectMonthAndYear,a=t.monthFullNames,r=t.month,s=t.year,l=t.isCalendarVisible,o=t.isListVisible,u=t.onClickPreviousMonth,c=t.onClickNextMonth;var f=_.block("date-calendar");var h=f.element("nav");var b=d[i].nextMonth;var v=d[i].previousMonth;var m=d[i].selectMonth;return e("div",{class:Object.assign({},h.class())},e("div",{class:Object.assign({},h.modifier("start").class())},e("button",{title:m,"aria-label":m,tabIndex:-1,"data-test":"change-year-month",onClick:n},e("span",null,a[r-1]," ",s),e("bal-icon",{name:"caret-up",color:"primary",size:"small",turn:l}))),e("div",{class:Object.assign({},h.modifier("end").class()),style:{display:o?"none":"flex"}},e("button",{title:v,"aria-label":v,onClick:u,tabIndex:-1,"data-test":"previous-month"},e("bal-icon",{name:"caret-left",color:"primary",size:"small"})),e("button",{title:b,"aria-label":b,onClick:c,tabIndex:-1,"data-test":"next-month"},e("bal-icon",{name:"caret-right",color:"primary",size:"small"}))))};var N=':host{--bal-date-first-week-day:0;--bal-date-calendar-background:var(--bal-color-red-3)}:host{--bal-date-first-week-day:0;--bal-date-calendar-background:var(--bal-color-red-3)}:host{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-block;background:var(--bal-color-white);border-radius:var(--bal-radius-normal)}.bal-date-calendar__nav{display:-ms-flexbox;display:flex;width:calc(100% - 1rem);-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;padding:.5rem;gap:.5rem}.bal-date-calendar__nav--start>button{display:-ms-flexbox;display:flex;gap:.5rem}.bal-date-calendar__nav--end{display:-ms-flexbox;display:flex;gap:.5rem}.bal-date-calendar__nav button{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;cursor:pointer;border-radius:var(--bal-radius-normal);font-family:var(--bal-font-family-text);font-weight:var(--bal-font-weight-regular);color:var(--bal-color-text-primary);border:none;background:rgba(0,0,0,0);text-align:center;font-size:var(--bal-text-size-normal);line-height:var(--bal-line-height-normal);-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;outline:none;min-height:2rem;min-width:2rem;padding:.25rem;border-radius:var(--bal-button-radius);font-family:var(--bal-font-family-title);font-weight:var(--bal-font-weight-bold)}@media (hover: hover)and (pointer: fine){.bal-date-calendar__nav button:not(.bal-date-calendar__nav button--selected):not(.bal-date-calendar__nav button--disabled):hover{background:var(--bal-color-light-blue-1)}}.bal-date-calendar__nav button:not(.bal-date-calendar__nav button--selected):not(.bal-date-calendar__nav button--disabled):active{background:var(--bal-color-light-blue-2)}.bal-date-calendar__nav button--today:not(.bal-date-calendar__nav button--selected):not(.bal-date-calendar__nav button--disabled){color:var(--bal-color-light-blue-3);font-weight:var(--bal-font-weight-bold)}@media (hover: hover)and (pointer: fine){.bal-date-calendar__nav button--today:not(.bal-date-calendar__nav button--selected):not(.bal-date-calendar__nav button--disabled):hover{color:var(--bal-color-text-primary)}}.bal-date-calendar__nav button--today:not(.bal-date-calendar__nav button--selected):not(.bal-date-calendar__nav button--disabled):active{color:var(--bal-color-text-primary)}.bal-date-calendar__nav button--selected{background:var(--bal-color-primary);color:var(--bal-color-text-white);font-weight:var(--bal-font-weight-bold)}.bal-date-calendar__nav button--disabled{cursor:default;background:rgba(0,0,0,0);color:var(--bal-color-text-grey-light)}.bal-date-calendar__body{display:block}.bal-date-calendar__body__grid{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:.5rem;height:0;padding-top:0;padding-bottom:0;visibility:hidden}.bal-date-calendar__body__grid--visible{height:auto;padding-top:.5rem;padding-bottom:.5rem;visibility:visible}.bal-date-calendar__body__grid__head{position:relative;display:grid;grid-template-columns:repeat(7, 1fr);-webkit-column-gap:.5rem;-moz-column-gap:.5rem;column-gap:.5rem;row-gap:.5rem;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.bal-date-calendar__body__grid__head::after{position:absolute;content:"";height:2px;width:calc(100% + 1rem);bottom:0;left:-0.5rem;right:-0.5rem;background:var(--bal-color-border)}.bal-date-calendar__body__grid__head span{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;height:2rem;width:2rem;font-family:var(--bal-font-family-title);font-weight:var(--bal-font-weight-bold);font-size:var(--bal-text-size-normal);line-height:var(--bal-line-height-normal);-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;text-wrap:nowrap}.bal-date-calendar__body__grid__body{display:grid;grid-template-columns:repeat(7, 1fr);-webkit-column-gap:.5rem;-moz-column-gap:.5rem;column-gap:.5rem;row-gap:.5rem;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding-top:.5rem}.bal-date-calendar__body__grid__body>.bal-date-calendar-cell{width:2rem;height:2rem;text-align:center;font-size:var(--bal-text-size-normal);line-height:var(--bal-line-height-normal);-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto}.bal-date-calendar__body__grid__body>.bal-date-calendar-cell:first-child{grid-column:var(--bal-date-first-week-day)}.bal-date-calendar__body__list{display:none;list-style:none;margin:0;padding:0;-webkit-column-gap:.5rem;-moz-column-gap:.5rem;column-gap:.5rem;row-gap:.5rem;width:calc(100% - 1rem);overflow-y:auto;max-height:18rem;position:relative;padding:.5rem;border-top:2px solid var(--bal-color-border)}.bal-date-calendar__body__list .bal-date-calendar__body__list__item{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;cursor:pointer;border-radius:var(--bal-radius-normal);font-family:var(--bal-font-family-text);font-weight:var(--bal-font-weight-regular);color:var(--bal-color-text-primary);border:none;background:rgba(0,0,0,0);text-align:center;font-size:var(--bal-text-size-normal);line-height:var(--bal-line-height-normal);-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;outline:none;width:100%}@media (hover: hover)and (pointer: fine){.bal-date-calendar__body__list .bal-date-calendar__body__list__item:not(.bal-date-calendar__body__list .bal-date-calendar__body__list__item--selected):not(.bal-date-calendar__body__list .bal-date-calendar__body__list__item--disabled):hover{background:var(--bal-color-light-blue-1)}}.bal-date-calendar__body__list .bal-date-calendar__body__list__item:not(.bal-date-calendar__body__list .bal-date-calendar__body__list__item--selected):not(.bal-date-calendar__body__list .bal-date-calendar__body__list__item--disabled):active{background:var(--bal-color-light-blue-2)}.bal-date-calendar__body__list .bal-date-calendar__body__list__item--today:not(.bal-date-calendar__body__list .bal-date-calendar__body__list__item--selected):not(.bal-date-calendar__body__list .bal-date-calendar__body__list__item--disabled){color:var(--bal-color-light-blue-3);font-weight:var(--bal-font-weight-bold)}@media (hover: hover)and (pointer: fine){.bal-date-calendar__body__list .bal-date-calendar__body__list__item--today:not(.bal-date-calendar__body__list .bal-date-calendar__body__list__item--selected):not(.bal-date-calendar__body__list .bal-date-calendar__body__list__item--disabled):hover{color:var(--bal-color-text-primary)}}.bal-date-calendar__body__list .bal-date-calendar__body__list__item--today:not(.bal-date-calendar__body__list .bal-date-calendar__body__list__item--selected):not(.bal-date-calendar__body__list .bal-date-calendar__body__list__item--disabled):active{color:var(--bal-color-text-primary)}.bal-date-calendar__body__list .bal-date-calendar__body__list__item--selected{background:var(--bal-color-primary);color:var(--bal-color-text-white);font-weight:var(--bal-font-weight-bold)}.bal-date-calendar__body__list .bal-date-calendar__body__list__item--disabled{cursor:default;background:rgba(0,0,0,0);color:var(--bal-color-text-grey-light)}.bal-date-calendar__body__list--visible{display:grid}.bal-date-calendar__body__list--year{grid-template-columns:repeat(4, 1fr)}.bal-date-calendar__body__list--month{grid-template-columns:repeat(2, 1fr)}.bal-date-calendar-cell{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;cursor:pointer;border-radius:var(--bal-radius-normal);font-family:var(--bal-font-family-text);font-weight:var(--bal-font-weight-regular);color:var(--bal-color-text-primary);border:none;background:rgba(0,0,0,0);text-align:center;font-size:var(--bal-text-size-normal);line-height:var(--bal-line-height-normal);-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;outline:none;width:2rem;height:2rem}@media (hover: hover)and (pointer: fine){.bal-date-calendar-cell:not(.bal-date-calendar-cell--selected):not(.bal-date-calendar-cell--disabled):hover{background:var(--bal-color-light-blue-1)}}.bal-date-calendar-cell:not(.bal-date-calendar-cell--selected):not(.bal-date-calendar-cell--disabled):active{background:var(--bal-color-light-blue-2)}.bal-date-calendar-cell--today:not(.bal-date-calendar-cell--selected):not(.bal-date-calendar-cell--disabled){color:var(--bal-color-light-blue-3);font-weight:var(--bal-font-weight-bold)}@media (hover: hover)and (pointer: fine){.bal-date-calendar-cell--today:not(.bal-date-calendar-cell--selected):not(.bal-date-calendar-cell--disabled):hover{color:var(--bal-color-text-primary)}}.bal-date-calendar-cell--today:not(.bal-date-calendar-cell--selected):not(.bal-date-calendar-cell--disabled):active{color:var(--bal-color-text-primary)}.bal-date-calendar-cell--selected{background:var(--bal-color-primary);color:var(--bal-color-text-white);font-weight:var(--bal-font-weight-bold)}.bal-date-calendar-cell--disabled{cursor:default;background:rgba(0,0,0,0);color:var(--bal-color-text-grey-light)}';var R=N;var Y=t("bal_date_calendar",function(){function t(t){var e=this;i(this,t);this.balChange=n(this,"balChange",7);this.oldMin="";this.oldMax="";this.onSelectDay=function(t){e.valueChanged(t,e.selectedDate);e.balChange.emit(e.selectedDate)};this.onClickNextMonth=function(){var t=e.year;var i=e.month+1;if(i>12){i=1;t=t+1}e.generateGridByMonthAndYear(i,t)};this.onClickPreviousMonth=function(){var t=e.year;var i=e.month-1;if(i<1){i=12;t=t-1}e.generateGridByMonthAndYear(i,t)};this.onClickSelectMonthAndYear=function(){return __awaiter(e,void 0,void 0,(function(){var t,e;return __generator(this,(function(i){switch(i.label){case 0:this.updateSelections();if(!(this.isCalendarVisible===true))return[3,2];this.isCalendarVisible=false;this.isYearListVisible=true;this.isMonthListVisible=false;return[4,b()];case 1:i.sent();if(this.yearListEl){t=this.yearListEl.querySelector("#year-".concat(this.year));if(t){e=26+8+4;this.yearListEl.scrollTop=t.offsetTop-e*2}else{this.yearListEl.scrollTop=0}}return[3,3];case 2:this.isCalendarVisible=true;this.isYearListVisible=false;this.isMonthListVisible=false;i.label=3;case 3:return[2]}}))}))};this.onClickYear=function(t){e.isYearListVisible=false;e.isMonthListVisible=true;e.generateGridByMonthAndYear(e.month,t);e.months=F(e.language,t,e.selectedDate,e.min,e.max)};this.onClickMonth=function(t){e.isYearListVisible=false;e.isMonthListVisible=false;e.isCalendarVisible=true;e.generateGridByMonthAndYear(t,e.year)};this.selectedDate="";this.monthFullNames=[];this.weekdays=[];this.months=[];this.years=[];this.calendarGrid=[];this.firstDayOfWeek=0;this.month=0;this.year=0;this.language=m.language;this.isCalendarVisible=true;this.isYearListVisible=false;this.isMonthListVisible=false;this.value=undefined;this.defaultDate=undefined;this.allowedDates=undefined;this.min=undefined;this.max=undefined;this.minYearProp=undefined;this.maxYearProp=undefined}t.prototype.createLogger=function(t){this.log=t};t.prototype.valueChanged=function(t,e){if(t!==e){var i=c.fromISO(t);if(!i.isValid){this.generateGridByDefaultDate();this.selectedDate=""}else{this.generateGridByDate(i);this.selectedDate=i.toISODate()}this.updateSelections()}};t.prototype.rangePropChanged=function(){this.updateSelections();this.generateGrid()};t.prototype.yearRangePropChanged=function(){this.updateSelections()};t.prototype.connectedCallback=function(){this.generateGridByDefaultDate();this.valueChanged(this.value,undefined)};t.prototype.configChanged=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.language=t.language;this.monthFullNames=c.infoMonths({format:"long",locale:this.language});this.weekdays=I(this.language);this.updateSelections();return[2]}))}))};t.prototype.swipeListener=function(t){var e=t.left,i=t.right;if(e){this.onClickNextMonth()}else if(i){this.onClickPreviousMonth()}};Object.defineProperty(t.prototype,"minYear",{get:function(){if(this.minYearProp===undefined){var t=new Date;var e=t.getFullYear();var i=e-100;if(this.min){var n=c.fromISO(this.min);return n.year||i}else{return i}}return this.minYearProp},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"maxYear",{get:function(){if(this.maxYearProp===undefined){var t=new Date;var e=t.getFullYear();var i=e+50;if(this.max){var n=c.fromISO(this.max);return n.year||i}else{return i}}return this.maxYearProp},enumerable:false,configurable:true});t.prototype.updateSelections=function(){this.years=V(this.year,this.minYear,this.maxYear);this.months=F(this.language,this.year,this.selectedDate,this.min,this.max)};t.prototype.generateGrid=function(){var t=c.fromISO(this.value);if(t.isValid){this.generateGridByDate(t)}else{this.generateGridByDefaultDate()}};t.prototype.generateGridByDate=function(t){if(t.year!==undefined&&t.month!==undefined){this.generateGridByMonthAndYear(t.month,t.year)}};t.prototype.generateGridByDefaultDate=function(){var t=c.fromISO(this.defaultDate);if(t.isValid){this.generateGridByDate(t)}else{var e=new Date;this.month=e.getMonth()+1;this.year=e.getFullYear();this.calendarGrid=P(this.year,this.month,this.min,this.max,this.allowedDates);this.firstDayOfWeek=S(this.year,this.month)}};t.prototype.generateGridByMonthAndYear=function(t,e){if(this.month!==t||this.year!==e||this.oldMin!==this.min||this.oldMax!==this.max){this.calendarGrid=P(e,t,this.min,this.max,this.allowedDates);this.firstDayOfWeek=S(e,t)}this.month=t;this.year=e;this.oldMin=this.min;this.oldMax=this.max};t.prototype.render=function(){var t=this;var i;var n=((i=this.gridEl)===null||i===void 0?void 0:i.clientHeight)||0;var r=_.block("date-calendar");var s=r.element("body");var l=r.element("foot");return e(a,{key:"248e291f860cdb55eb13cce3afa9fd453efd9bb1",class:Object.assign({},r.class())},e(H,{key:"b22fb7f5d3459b29b1bc7ad10925f797964a1bf2",language:this.language,monthFullNames:this.monthFullNames,month:this.month,year:this.year,isCalendarVisible:this.isCalendarVisible,isListVisible:this.isMonthListVisible||this.isYearListVisible,onClickSelectMonthAndYear:this.onClickSelectMonthAndYear,onClickPreviousMonth:this.onClickPreviousMonth,onClickNextMonth:this.onClickNextMonth}),e("div",{key:"e7348e9fe457bd309ecf8645ae1af0138d6ea156",class:Object.assign({},s.class())},e(E,{key:"87bab404d1e8777b818c4d4df0d49092b29e96ff",isVisible:this.isCalendarVisible,grid:this.calendarGrid,weekdays:this.weekdays,firstDayOfWeek:this.firstDayOfWeek,selectedDate:this.selectedDate,ref:function(e){return t.gridEl=e},onSelectDay:function(e){return t.onSelectDay(e)}}),e(T,{key:"106142481bd53e6d24e91ef0245fe336704c0578",name:"year",isVisible:this.isYearListVisible,girdHeight:n,list:this.years,ref:function(e){return t.yearListEl=e},onSelect:function(e){return t.onClickYear(e.value)}}),e(T,{key:"9341dbb8c0f7ce5713a9cbdb5e4a22d3db83b43a",name:"month",isVisible:this.isMonthListVisible,girdHeight:n,list:this.months,onSelect:function(e){return t.onClickMonth(e.value)}})),e("div",{key:"5e74571cea6b858964554f3065eb40092535f1dd",class:Object.assign({},l.class())},e("slot",{key:"c3cc4f4f43d40b095ad03fe23a8645282e658765"})))};Object.defineProperty(t.prototype,"el",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{value:["valueChanged"],min:["rangePropChanged"],max:["rangePropChanged"],minYearProp:["yearRangePropChanged"],maxYearProp:["yearRangePropChanged"]}},enumerable:false,configurable:true});return t}());s([h("bal-date-calendar"),l("design:type",Function),l("design:paramtypes",[Function]),l("design:returntype",void 0)],Y.prototype,"createLogger",null);s([g(),l("design:type",Function),l("design:paramtypes",[Object]),l("design:returntype",Promise)],Y.prototype,"configChanged",null);s([p({mobileOnly:true}),l("design:type",Function),l("design:paramtypes",[Object]),l("design:returntype",void 0)],Y.prototype,"swipeListener",null);Y.style=R;var B=function(){function t(t){this._options=t;this._position=0;this._positionEnd=0;this._isRangeSelection=false;if(t.component&&t.component.nativeInput){this._position=t.component.nativeInput.selectionStart||0;this._positionEnd=t.component.nativeInput.selectionEnd||0;this._isRangeSelection=this._position!==this._positionEnd}}Object.defineProperty(t.prototype,"isRangeSelection",{get:function(){return this._isRangeSelection},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"value",{get:function(){if(this._options.isBackspace&&this._position>0){return this._position-1}return this._position},set:function(t){var e=t<0?0:t>this._options.mask.maxLength?this._options.mask.maxLength:t;this._position=e},enumerable:false,configurable:true});t.prototype.toStart=function(){this.value=0};t.prototype.toEnd=function(){var t=this.getTarget();if(t){this.value=t.value.length}};t.prototype.next=function(t){if(t===void 0){t=1}var e=this._position+t;if(e<=this._options.mask.maxLength){this._position=e}return this._position};t.prototype.previous=function(t){if(t===void 0){t=1}var e=this._position-t;if(e>=0){this._position=e}else{this._position=0}return this._position};t.prototype.submit=function(){var t=this.getTarget();if(t&&t.selectionStart!==this._position&&t.selectionEnd!==this._position){t.selectionStart=this._position;t.selectionEnd=this._position}};t.prototype.getTarget=function(){if(this._options.component&&this._options.component.nativeInput){return this._options.component.nativeInput}return undefined};return t}();var J=function(){function t(t){this._options=t;this._value="";if(this._options.component&&this._options.component.nativeInput){this._value=this._options.component.nativeInput.value}this.position=new B(this._options);this.component=this._options.component}Object.defineProperty(t.prototype,"target",{get:function(){if(this._options.component&&this._options.component.nativeInput){return this._options.component.nativeInput}return undefined},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(t){this._value=t},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"focused",{get:function(){return this._options.component.focused},enumerable:false,configurable:true});t.prototype.isValueEmpty=function(){return this.value===""||this.value===undefined||this.value===null};t.prototype.preventDefault=function(){if(this._options.event.preventDefault){this._options.event.preventDefault()}};t.prototype.stopPropagation=function(){this.preventDefault();if(this._options.event.stopPropagation){this._options.event.stopPropagation()}};t.prototype.submit=function(){return __awaiter(this,arguments,void 0,(function(t,e){if(t===void 0){t="input"}return __generator(this,(function(i){if(this.target){this.target.value=this.value;if(t!=="blur"&&t!=="tab"){this.position.submit()}if(this._options.component){if(t==="input"||t==="tab"){this._options.component.balInput.emit(this.value)}if((t==="change"||t==="blur")&&e!==undefined){if(w(this._options.component.value,e)){this._options.component.value=e;this._options.component.balChange.emit(e)}}}}return[2]}))}))};return t}();var G=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(e.prototype,"clipboardData",{get:function(){var t;return(t=this._options.event.clipboardData)===null||t===void 0?void 0:t.getData("text")},enumerable:false,configurable:true});return e}(J);var W=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(J);var q=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(e.prototype,"key",{get:function(){return this._options.event.key},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isCtrlOrCommandKey",{get:function(){return this._options.event.metaKey||this._options.event.ctrlKey},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isBackspaceKey",{get:function(){return this._options.event.key==="Backspace"},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isTabKey",{get:function(){return this._options.event.key==="Tab"},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isWhiteSpaceKey",{get:function(){return this._options.event.key===" "},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isDeleteKey",{get:function(){return this._options.event.key==="Delete"||this._options.event.key==="Del"},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isNumberKey",{get:function(){return e.NUMBER_KEYS.includes(this._options.event.key)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isNavigationKey",{get:function(){return e.NAVIGATION_KEYS.includes(this._options.event.key)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isSelectAllCommand",{get:function(){return(this._options.event.ctrlKey||this._options.event.metaKey)&&this.key==="a"},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isCopyCommand",{get:function(){return(this._options.event.ctrlKey||this._options.event.metaKey)&&this.key==="c"},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isPasteCommand",{get:function(){return(this._options.event.ctrlKey||this._options.event.metaKey)&&this.key==="v"},enumerable:false,configurable:true});e.prototype.getCharAt=function(t){if(t===void 0){t=this.position.value}return this.value.charAt(t)};e.prototype.getCharAtBackspacePosition=function(){return this.getCharAt(this.position.value-1)};e.prototype.setChar=function(t,e){if(t===void 0){t=this._options.event.key}if(e===void 0){e=this.position.value}this.value=this.value.substring(0,e)+t+this.value.substring(e+1)};return e}(J);q.NUMBER_KEYS=["0","1","2","3","4","5","6","7","8","9"];q.NAVIGATION_KEYS=["Home","End","ArrowLeft","Left","ArrowRight","Right","Tab","Enter","Esc","Escape"];var U=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(e.prototype,"locale",{get:function(){return this._options.event.locale},enumerable:false,configurable:true});return e}(J);var Q=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(J);var X=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(e.prototype,"newValue",{get:function(){return this._options.event.newValue},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"oldValue",{get:function(){return this._options.event.oldValue},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"didValueChange",{get:function(){return this.newValue!==this.oldValue},enumerable:false,configurable:true});return e}(J);var Z=function(){function t(t){this._isSeparator=false;this._allowedKeys=[];this._locale="de-CH";this._from=t.from||0;this._to=t.to||0;this._isSeparator=t.isSeparator===undefined?false:t.isSeparator;this._mask=t.mask||"_";this._allowedKeys=t.allowedKeys?t.allowedKeys:this.allowedKeys;this._format=t.format}t.prototype.format=function(t){if(this._format){return this._format(t.replace(this.mask,""),this._locale,this.mask)}return t};Object.defineProperty(t.prototype,"isSeparator",{get:function(){return this._isSeparator},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"to",{get:function(){return this._to},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"from",{get:function(){return this._from},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"mask",{get:function(){if(typeof this._mask==="function"){return this._mask(this._locale)}return this._mask},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"allowedKeys",{get:function(){return this._allowedKeys},enumerable:false,configurable:true});t.prototype.onI18nChange=function(t){this._locale=t};t.prototype.getValueOfTheBlock=function(t){return t.slice(this._from,this._to)};t.prototype.isTouched=function(t){var e=this;var i=this.getValueOfTheBlock(t);return!i.split("").every((function(t){return t===e.mask}))};t.prototype.verifyAllowedKeyHits=function(t){if(this.isSeparator&&t===this.mask){return true}else if(this.allowedKeys.indexOf(t)>=0){return true}else{return false}};return t}();var $=function(){function t(t){if(t===void 0){t=[]}this._list=t}Object.defineProperty(t.prototype,"lastPosition",{get:function(){return this._list[this._list.length-1].to},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"list",{get:function(){return this._list},set:function(t){this._list=t},enumerable:false,configurable:true});t.prototype.clone=function(){return new t(__spreadArray([],this._list,true))};t.prototype.findByIndex=function(t,e){if(e===void 0){e=this.list}return e.find((function(e){return e.from<=t&&t<e.to}))};t.prototype.getPlaceholderMask=function(){var t=[];this.list.forEach((function(e){var i=e.to-e.from;for(var n=0;n<i;n++){t.push(e.mask)}}));return t.join("")};t.prototype.getRawValueWithoutMaskByContext=function(t){return this.getRawValueWithoutMask(t.value)};t.prototype.getRawValueWithoutMask=function(t){if(t){var e=[];var i=t.split("");for(var n=0;n<i.length;n++){var a=i[n];var r=this.findByIndex(n);if(r&&!r.isSeparator){e.push(a.replace(r.mask,""))}else{e.push(a)}}e=e.filter((function(t){return t}));var s=this.list.filter((function(t){return t.isSeparator})).length;if(s===e.length){return""}return e.join("")}return""};t.prototype.formatBlocks=function(t,e){var i="".concat(t);for(var n=0;n<this.list.length;n++){var a=this.list[n];if(e!==n&&!a.isSeparator&&a.isTouched(i)){var r=a.getValueOfTheBlock(i);var s=a.format(r);i=i.substring(0,a.from)+s+i.substring(a.to)}}return i};t.prototype.getBlockIndexFromPosition=function(t){var e=this.list.reduce((function(t,e){return t+e.to-e.from}),0);if(t===e){return this.list.length-1}var i=this.list.findIndex((function(e){return e.from<=t&&t<e.to}));return i<0?undefined:Math.min(e,i)};t.prototype.verifyCallOfNextSeparator=function(t,e){if(this.list.length-1>e){var i=this.list[e+1];if(i.isSeparator&&i.mask===t){return true}}return false};return t}();var tt=function(){function t(t){if(t===void 0){t=[]}this.inputMode="text";this.locale="de-CH";this.blocks=new $(t)}t.prototype.onLocaleChange=function(t,e,i){if(t.target){var n=t.value;var a=n.split("");for(var r=0;r<a.length;r++){var s=a[r];var l=this.blocks.findByIndex(r);var o=i.findByIndex(r);if(l&&o){if(l.isSeparator){a[r]=l.mask}else if(s===o.mask){a[r]=l.mask}}}t.value=a.join("")}};t.prototype.onFocus=function(t){};t.prototype.onBlur=function(t){};t.prototype.onChange=function(t){t.submit("change",this.onParseValue(t.value))};t.prototype.onNavigationDown=function(t,e,i){};t.prototype.onSelectAll=function(t,e,i){};t.prototype.onPaste=function(t,e,i){var n=t.clipboardData||"";t.value=n;t.position.toEnd()};t.prototype.onBlockChange=function(t,e,i){t.setChar();t.position.next();var n=this.blocks.list[i+1];if(t.position.value===e.to&&n&&n.isSeparator){t.position.next()}};t.prototype.onBackspaceDown=function(t,e,i){t.position.previous();if(!e.isSeparator){t.setChar(e.mask);var n=this.blocks.list[i-1];if(t.position.value===e.from&&n&&n.isSeparator){t.position.previous()}}};t.prototype.onDeleteDown=function(t,e,i){t.setChar(e.mask);t.position.next();var n=this.blocks.list[i+1];if(t.position.value===e.to&&n&&n.isSeparator){t.position.next()}};t.prototype.onValueChanged=function(t){var e=this.onFormatValue(t.newValue);var i=t.focused&&e===""?this.blocks.getPlaceholderMask():e;t.value=i;t.position.toEnd()};t.prototype.onParseValue=function(t,e){if(e===void 0){e={allowInvalidValue:false}}if(t){return t.trim()}return t||""};t.prototype.onFormatValue=function(t){if(t){return t.trim()}return t||""};t.prototype.toParsedValue=function(t){return this.onParseValue(t)};t.prototype.toFormattedValue=function(t){return this.onFormatValue(t)};t.prototype.fireI18nChange=function(t){var e=this.blocks.clone();var i="".concat(t.locale);this.locale=t.locale;this.blocks.list.forEach((function(e){return e.onI18nChange(t.locale)}));this.onLocaleChange(t,i,e)};t.prototype.fireValueChanged=function(t){if(t.didValueChange){this.onValueChanged(t)}};t.prototype.firePaste=function(t){var e=this.blocks.getBlockIndexFromPosition(t.position.value);if(e!==undefined){var i=this.blocks.list[e];this.onPaste(t,i,e);this.onChange(t)}};t.prototype.fireClick=function(t){var e=this.blocks.getPlaceholderMask();if(e===t.value){t.position.toStart()}};t.prototype.fireFocus=function(t){if(t.target&&t.isValueEmpty()){this.resetInputValueWithMask(t)}this.onFocus(t)};t.prototype.fireBlur=function(t){if(t.target){if(this.isValueEmptyMask(t)){this.emptyInputValue(t)}else{this.onBlur(t);t.submit("blur",this.onParseValue(t.value,{allowInvalidValue:t.component.allowInvalidValue}))}}};t.prototype.fireKeyDown=function(t){var e=t.isBackspaceKey?Math.max(0,t.position.value-1):t.position.value;var i=this.blocks.getBlockIndexFromPosition(e);if(e>=this.blocks.lastPosition&&!t.isNavigationKey&&!t.isSelectAllCommand){t.preventDefault();t.stopPropagation();return}if(i!==undefined&&!t.position.isRangeSelection){var n=this.blocks.list[i];if(t.isNavigationKey){this.onNavigationDown(t,n,i)}else if(t.isSelectAllCommand){this.onSelectAll(t,n,i)}else if(t.isCopyCommand);else if(t.isPasteCommand);else if(t.isBackspaceKey){t.preventDefault();this.onBackspaceDown(t,n,i)}else if(t.isDeleteKey){t.preventDefault();this.onDeleteDown(t,n,i)}else if(t.isWhiteSpaceKey){t.preventDefault();var a=t.value[t.position.value];if(a==="."){t.stopPropagation();var r=t.value;t.value=r.substring(0,t.position.value)+"_"+r.substring(t.position.value+1)}}else if(n.verifyAllowedKeyHits(t.key)){t.preventDefault();this.onBlockChange(t,n,i)}else if(this.blocks.verifyCallOfNextSeparator(t.key,i)){t.preventDefault();var s=this.blocks.list[i];if(t.position.value>s.from){var l=this.blocks.list[i+1];var r=t.value;var o=n.getValueOfTheBlock(r);var u=n.format(o);t.value=r.substring(0,n.from)+u+r.substring(n.to);t.position.value=l.to}}var c=this.blocks.getBlockIndexFromPosition(t.position.value);if(c&&!t.isBackspaceKey){var d=this.blocks.formatBlocks(t.value,c);var f=t.position.value;t.value=d;t.position.value=f}}else{if(!t.isTabKey){t.preventDefault()}if(t.isBackspaceKey||t.isDeleteKey){this.resetInputValueWithMask(t)}else if(this.blocks.list[0].verifyAllowedKeyHits(t.key)){this.onBlockChange(t,this.blocks.list[0],0)}}};t.prototype.resetInputValueWithMask=function(t){t.value=this.blocks.getPlaceholderMask();t.position.toStart()};t.prototype.isValueEmptyMask=function(t){var e=this.blocks.getPlaceholderMask();return e===t.value};t.prototype.emptyInputValue=function(t){t.value="";t.submit("blur",t.value)};return t}();var et=function(t){__extends(e,t);function e(){var e=t.call(this,[new Z({from:0,to:2,allowedKeys:__spreadArray([],C,true),format:function(t,e,i){if(Number.isNaN(parseInt(t,10))){return"".concat(i).concat(i)}return t.padStart(2,"0")},mask:function(t){return e.dayMask[t.split("-")[0]]||e.dayMask["de"]}}),new Z({from:2,to:3,mask:function(t){return f(t)},isSeparator:true}),new Z({from:3,to:5,allowedKeys:__spreadArray([],C,true),format:function(t,e,i){if(Number.isNaN(parseInt(t,10))){return"".concat(i).concat(i)}return t.padStart(2,"0")},mask:function(t){return e.monthMask[t.split("-")[0]]||e.monthMask["de"]}}),new Z({from:5,to:6,mask:function(t){return f(t)},isSeparator:true}),new Z({from:6,to:10,allowedKeys:__spreadArray([],C,true),mask:function(t){return e.yearMask[t.split("-")[0]]||e.yearMask["de"]}})])||this;e.maxLength=10;e.minLength=10;e.inputMode="decimal";e.dayMask={de:"T",en:"D",fr:"J",it:"G",nl:"D",es:"D",pl:"D",pt:"D",sv:"D",fi:"M"};e.monthMask={de:"M",en:"M",fr:"M",it:"M",nl:"M",es:"M",pl:"M",pt:"M",sv:"M",fi:"K"};e.yearMask={de:"J",en:"Y",fr:"A",it:"A",nl:"J",es:"A",pl:"R",pt:"A",sv:"Å",fi:"V"};return e}e.prototype.onParseValue=function(t,e){if(e===void 0){e={allowInvalidValue:false}}if(t){var i=c.fromAnyFormat(this.blocks.getRawValueWithoutMask(t));if(i.isValid){return i.toISODate()}else if(e&&e.allowInvalidValue){return D}}return""};e.prototype.onFormatValue=function(t){if(t){var e=c.fromISO(t);if(e.isValid){return e.toFormat()}}return""};e.prototype.onPaste=function(t,e,i){var n=t.clipboardData||"";var a=c.fromAnyFormat(n);if(a.isValid){t.value=a.toFormat();t.position.toEnd()}};e.prototype.onBlur=function(t){var e=this.blocks.getRawValueWithoutMaskByContext(t);var i=c.fromAnyFormat(e);if(i.isValid){var n=i.toFormat();if(n!==t.value){t.value=n}}else if(t.component.allowInvalidValue){if(e!==t.value){t.value=e}}};return e}(tt);var it=function(){function t(t){this.mask=t}Object.defineProperty(t.prototype,"attributes",{get:function(){return{inputMode:this.mask.inputMode,maxLength:this.mask.maxLength,minLength:this.mask.minLength,type:"text",autoCapitalize:"off",autoCorrect:"off",spellcheck:false}},enumerable:false,configurable:true});t.prototype.bindComponent=function(t){this.component=t};t.prototype.bindComponentDidLoad=function(){if(this.component&&this.component.nativeInput){this.component.nativeInput.value=this.component.value||""}this.bindValueChanged(this.component.value,undefined)};t.prototype.bindConfigChanged=function(t){var e=this,i=e.component,n=e.mask;var a=new U({component:i,mask:n,event:{locale:"".concat(t.language,"-").concat(t.region)}});this.mask.fireI18nChange(a);a.submit()};t.prototype.bindValueChanged=function(t,e){var i=this,n=i.component,a=i.mask;var r=new X({component:n,mask:a,event:{newValue:t,oldValue:e}});this.mask.fireValueChanged(r);r.submit("blur")};t.prototype.bindKeyDown=function(t){if(this.isComponentAccessible){var e=this,i=e.component,n=e.mask;var a=new q({event:t,component:i,mask:n});this.mask.fireKeyDown(a);var r=t.key==="Tab";a.submit(r?"tab":"input");i.balKeyPress.emit(t)}};t.prototype.bindFocus=function(t){if(this.isComponentAccessible){var e=this,i=e.component,n=e.mask;i.focused=true;var a=new W({event:t,component:i,mask:n});this.mask.fireFocus(a);a.submit();i.balFocus.emit(t)}};t.prototype.bindBlur=function(t){if(this.isComponentAccessible){var e=this,i=e.component,n=e.mask;i.focused=false;var a=new W({event:t,component:i,mask:n});this.mask.fireBlur(a);a.submit("blur");i.balBlur.emit(t)}};t.prototype.bindPaste=function(t){if(this.isComponentAccessible){var e=this,i=e.component,n=e.mask;var a=new G({event:t,component:i,mask:n});this.mask.firePaste(a);a.submit()}};t.prototype.bindFormReset=function(t){var e=this;var i=t.target;if(i&&(i===this.component.el||i.contains(this.component.el))){this.component.value=this.component.initialValue;this.component.inputValue=this.component.initialValue;clearTimeout(this.resetHandlerTimer);this.resetHandlerTimer=setTimeout((function(){if(e.component.nativeInput){e.component.nativeInput.value=e.mask.toFormattedValue(e.component.value||"")}}))}};t.prototype.bindClick=function(t){if(this.isComponentAccessible){var e=this,i=e.component,n=e.mask;var a=new Q({event:t,component:i,mask:n});this.mask.fireClick(a);a.submit()}};t.prototype.bindHostClick=function(t){if(!this.isComponentAccessible){t.preventDefault();t.stopPropagation()}};t.prototype.bindGlobalClick=function(t){if(!this.isComponentAccessible){if(t.target&&t.target===this.component.el){t.preventDefault();t.stopPropagation()}}};Object.defineProperty(t.prototype,"isComponentAccessible",{get:function(){return!this.component.disabled&&!this.component.readonly},enumerable:false,configurable:true});return t}();var nt=".bal-input-date{display:block;width:100%;-ms-flex:1;flex:1}.bal-input-date input:not(:-moz-placeholder-shown){letter-spacing:.4px}.bal-input-date input:not(:-ms-input-placeholder){letter-spacing:.4px}.bal-input-date input:not(:placeholder-shown){letter-spacing:.4px}.bal-input-date__native{position:absolute !important;left:0;top:0;margin:0;padding:0;opacity:0;outline:0;border:none;width:1px;height:1px;clip:rect(1px, 1px, 1px, 1px);overflow:hidden}";var at=nt;var rt=t("bal_input_date",function(){function t(t){i(this,t);this.balKeyPress=n(this,"balKeyPress",7);this.balChange=n(this,"balChange",7);this.balInput=n(this,"balInput",7);this.balBlur=n(this,"balBlur",7);this.balFocus=n(this,"balFocus",7);this.inputId="bal-i-date-".concat(st++);this.inheritedAttributes={};this.maskAdapter=new it(new et);this.inputValue=this.value;this.initialValue=this.value||"";this.focused=false;this.isGrouped=false;this.ariaForm=k;this.name=this.inputId;this.invalid=false;this.required=false;this.disabled=false;this.readonly=false;this.placeholder=undefined;this.clickable=false;this.min=undefined;this.max=undefined;this.autocomplete="off";this.hasIconRight=false;this.value=undefined;this.autoInvalidOff=false;this.allowInvalidValue=false}t.prototype.createLogger=function(t){this.log=t};t.prototype.valueChanged=function(t,e){this.maskAdapter.bindValueChanged(t,e)};t.prototype.connectedCallback=function(){this.maskAdapter.bindComponent(this);this.isGrouped=v("bal-input-group",this.el)};t.prototype.componentDidLoad=function(){this.maskAdapter.bindComponentDidLoad()};t.prototype.componentWillRender=function(){this.inheritedAttributes=y(this.el,["aria-label","tabindex","title"])};t.prototype.configChanged=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.maskAdapter.bindConfigChanged(t);return[2]}))}))};t.prototype.resetHandler=function(t){this.maskAdapter.bindFormReset(t)};t.prototype.listenOnClick=function(t){this.maskAdapter.bindGlobalClick(t)};t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){x(this);return[2]}))}))};t.prototype.setBlur=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){j(this);return[2]}))}))};t.prototype.getInputElement=function(){return Promise.resolve(this.nativeInput)};t.prototype.setAriaForm=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.ariaForm=Object.assign({},t);return[2]}))}))};t.prototype.render=function(){var t=this;var i=_.block("input-date");var n=i.element("native");return e(a,{key:"c19d0b61364480bbcb5067bf0c5d68b83dab6fa7",onClick:function(e){return t.maskAdapter.bindHostClick(e)},class:Object.assign({},i.class())},e("input",Object.assign({key:"e8cbf0a3372a06823953459eeb754f2c22fc0b22",class:{input:true,"is-disabled":this.disabled||this.readonly,"is-danger":this.invalid,"is-clickable":this.clickable&&!(this.disabled||this.readonly),"bal-focusable":!this.disabled,"has-icon-right":this.hasIconRight},"data-testid":"bal-date-input",ref:function(e){return t.nativeInput=e},id:this.ariaForm.controlId||this.inputId,"aria-labelledby":this.ariaForm.labelId,"aria-describedby":this.ariaForm.messageId,"aria-invalid":this.invalid===true?"true":"false","aria-disabled":this.disabled?"true":null,required:this.required,disabled:this.disabled,readonly:this.readonly,autoComplete:this.autocomplete},this.maskAdapter.attributes,this.inheritedAttributes,{placeholder:this.placeholder,value:this.inputValue,onKeyDown:function(e){return t.maskAdapter.bindKeyDown(e)},onClick:function(e){return t.maskAdapter.bindClick(e)},onFocus:function(e){return t.maskAdapter.bindFocus(e)},onBlur:function(e){return t.maskAdapter.bindBlur(e)},onPaste:function(e){return t.maskAdapter.bindPaste(e)}})),e("input",{key:"b6acc3e893caf68b4823addac74e4cea27fdc98b",type:"date",class:Object.assign({},n.class()),name:this.name,min:this.min,max:this.max,value:this.value,tabindex:-1,"aria-hidden":"true"}))};Object.defineProperty(t.prototype,"el",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{value:["valueChanged"]}},enumerable:false,configurable:true});return t}());s([h("bal-input-date"),l("design:type",Function),l("design:paramtypes",[Function]),l("design:returntype",void 0)],rt.prototype,"createLogger",null);s([g(),l("design:type",Function),l("design:paramtypes",[Object]),l("design:returntype",Promise)],rt.prototype,"configChanged",null);s([O("reset",{capture:true,target:"document"}),l("design:type",Function),l("design:paramtypes",[UIEvent]),l("design:returntype",void 0)],rt.prototype,"resetHandler",null);s([O("click",{capture:true,target:"document"}),l("design:type",Function),l("design:paramtypes",[MouseEvent]),l("design:returntype",void 0)],rt.prototype,"listenOnClick",null);var st=0;rt.style=at}}}));
|
|
1
|
+
var __extends=this&&this.__extends||function(){var t=function(e,i){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i))t[i]=e[i]};return t(e,i)};return function(e,i){if(typeof i!=="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");t(e,i);function n(){this.constructor=e}e.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)}}();var __awaiter=this&&this.__awaiter||function(t,e,i,n){function a(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,r){function s(t){try{o(n.next(t))}catch(t){r(t)}}function l(t){try{o(n["throw"](t))}catch(t){r(t)}}function o(t){t.done?i(t.value):a(t.value).then(s,l)}o((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,a,r,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(t){return function(e){return o([t,e])}}function o(l){if(n)throw new TypeError("Generator is already executing.");while(s&&(s=0,l[0]&&(i=0)),i)try{if(n=1,a&&(r=l[0]&2?a["return"]:l[0]?a["throw"]||((r=a["return"])&&r.call(a),0):a.next)&&!(r=r.call(a,l[1])).done)return r;if(a=0,r)l=[l[0]&2,r.value];switch(l[0]){case 0:case 1:r=l;break;case 4:i.label++;return{value:l[1],done:false};case 5:i.label++;a=l[1];l=[0];continue;case 7:l=i.ops.pop();i.trys.pop();continue;default:if(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(l[0]===6||l[0]===2)){i=0;continue}if(l[0]===3&&(!r||l[1]>r[0]&&l[1]<r[3])){i.label=l[1];break}if(l[0]===6&&i.label<r[1]){i.label=r[1];r=l;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(l);break}if(r[2])i.ops.pop();i.trys.pop();continue}l=e.call(t,i)}catch(t){l=[6,t];a=0}finally{n=r=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,e,i){if(i||arguments.length===2)for(var n=0,a=e.length,r;n<a;n++){if(r||!(n in e)){if(!r)r=Array.prototype.slice.call(e,0,n);r[n]=e[n]}}return t.concat(r||Array.prototype.slice.call(e))};System.register(["./p-d67f7321.system.js","./p-6dbef894.system.js","./p-fa6b5cde.system.js","./p-6913b916.system.js","./p-802216cd.system.js","./p-23bdd8dc.system.js","./p-4d807f18.system.js","./p-db0895e2.system.js","./p-bb6304d0.system.js","./p-0177e3a0.system.js","./p-d1ec4d6e.system.js","./p-8949aa8b.system.js","./p-bf139fe5.system.js","./p-6e5745c8.system.js","./p-ee3c7a38.system.js","./p-ba579059.system.js","./p-5f26e92f.system.js","./p-2880433e.system.js","./p-145d5c4e.system.js","./p-a1f6e944.system.js","./p-b3f2c626.system.js","./p-a898208e.system.js","./p-ec9a7cf5.system.js","./p-eecefb0a.system.js"],(function(t){"use strict";var e,i,n,a,r,s,l,o,u,c,d,f,h,b,v,_,m,g,p,y,w,x,j,k,O,C,D;return{setters:[function(t){e=t.h;i=t.r;n=t.c;a=t.H;r=t.g},function(t){s=t._;l=t.a},function(t){o=t.l},function(t){u=t.l},function(t){c=t.B;d=t.i;f=t.d},function(t){h=t.L},function(t){b=t.b;v=t.p},function(t){_=t.B},function(t){m=t.d},function(t){g=t.L},function(t){p=t.L},function(t){y=t.i},function(t){w=t.m;x=t.c;j=t.d},function(t){k=t.d},function(t){O=t.L},function(t){C=t.N},function(t){D=t.I},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){function z(t,e){if(e<1||t<0){return undefined}return new Date(t,e,0).getDate()}function A(t,e,i){return"".concat(i,"-").concat(o("".concat(e),2,"0"),"-").concat(o("".concat(t),2,"0"))}function M(){var t=new Date;return"".concat(t.getFullYear(),"-").concat(o("".concat(t.getMonth()+1),2,"0"),"-").concat(o("".concat(t.getDate()),2,"0"))}function P(t,e,i,n,a){var r=[];var s=z(t,e);var l=L(t,e);if(s!==undefined&&l){var o=M();var d=c.fromISO(i);var f=c.fromISO(n);var h=function(t){if(u(a)){return false}return!a(t)};for(var b=1;b<=s;b++){var v=A(b,e,t);r.push({day:b,month:e,year:t,isoDate:v,fullDate:c.fromISO(v).toFormat(),today:o===v,disabled:d.isAfter(v)||f.isBefore(v)||h(v)})}}return r}function S(t,e){if(e<1||t<0){return 1}var i=new Date(t,e-1,1);var n=i.getDay();return n===0?7:n}function K(t){if(["en","de","fr","it","nl","es","pl","pt","sv","fi"].includes(t)){return t}return"de"}function V(t,e,i){var n=[];var a=new Date;var r=a.getFullYear();for(var s=e;s<=i;s++){n.push({value:s,label:"".concat(s),disabled:false,today:r===s,selected:t===s})}return n}function F(t,e,i,n,a){var r=K(t);var s=c.infoMonths({format:"long",locale:r});var l=c.fromISO(i);var o=new Date;var u=o.getFullYear();var d=o.getMonth()+1;var f=0;if(n&&e!==undefined){var h=c.fromISO(n);if(h.isValid){if(e>h.year){f=0}else{f=h.month||f}}}var b=12;if(a&&e!==undefined){var v=c.fromISO(a);if(v.isValid){if(e<v.year){b=12}else{b=v.month||b}}}return s.map((function(t,i){var n=i+1;return{label:t,value:n,today:n===d&&e===u,selected:n===l.month&&e===l.year,disabled:n<f||n>b}}))}function I(t){var e=K(t);var i=c.infoWeekdays({format:"short",locale:e});var n=c.infoWeekdays({format:"long",locale:e});return i.map((function(t,e){return{ariaLabel:n[e],textContent:t}}))}function L(t,e){if(e<1||e>12||t<0){return undefined}return new Date(t,e-1,1)}var T=function(t){var i=t.name,n=t.isVisible,a=t.girdHeight,r=t.list,s=t.onSelect,l=t.ref;var o=_.block("date-calendar");var u=o.element("body");var c=u.element("list");return e("ul",{class:Object.assign(Object.assign(Object.assign({},c.class()),c.modifier(i).class()),c.modifier("visible").class(n)),"aria-hidden":n?"false":"true",style:{height:"".concat(a-2-8-8,"px")},ref:function(t){return l?l(t):undefined}},r.map((function(t){return e("li",{key:t.value,id:"".concat(i,"-").concat(t.value)},e("button",{class:Object.assign(Object.assign(Object.assign(Object.assign({},c.element("item").class()),c.element("item").modifier("today").class(t.today)),c.element("item").modifier("selected").class(t.selected)),c.element("item").modifier("disabled").class(t.disabled)),disabled:t.disabled,tabIndex:-1,onClick:function(){if(!t.disabled){s(t)}}},t.label))})))};var E=function(t){var i=t.isVisible,n=t.ref,a=t.grid,r=t.weekdays,s=t.selectedDate,l=t.firstDayOfWeek,o=t.onSelectDay;var u=_.block("date-calendar");var c=u.element("body");var d=c.element("grid");return e("div",{role:"grid",class:Object.assign(Object.assign({},d.class()),d.modifier("visible").class(i)),"aria-hidden":i?"false":"true",ref:function(t){return n(t)}},e("div",{role:"row",class:Object.assign({},d.element("head").class())},r.map((function(t){return e("span",{key:t.textContent,role:"columnheader","aria-label":t.ariaLabel,title:t.ariaLabel},t.textContent)}))),e("div",{role:"row",class:Object.assign({},d.element("body").class()),style:{"--bal-date-first-week-day":"".concat(l)}},a.map((function(t){return e("bal-date-calendar-cell",Object.assign({key:t.isoDate},t,{selected:t.isoDate===s,onBalSelectDay:function(t){var e=t.detail;return o(e)}}))}))))};var H=function(t){var i=t.language,n=t.onClickSelectMonthAndYear,a=t.monthFullNames,r=t.month,s=t.year,l=t.isCalendarVisible,o=t.isListVisible,u=t.onClickPreviousMonth,c=t.onClickNextMonth;var f=_.block("date-calendar");var h=f.element("nav");var b=d[i].nextMonth;var v=d[i].previousMonth;var m=d[i].selectMonth;return e("div",{class:Object.assign({},h.class())},e("div",{class:Object.assign({},h.modifier("start").class())},e("button",{title:m,"aria-label":m,tabIndex:-1,"data-test":"change-year-month",onClick:n},e("span",null,a[r-1]," ",s),e("bal-icon",{name:"caret-up",color:"primary",size:"small",turn:l}))),e("div",{class:Object.assign({},h.modifier("end").class()),style:{display:o?"none":"flex"}},e("button",{title:v,"aria-label":v,onClick:u,tabIndex:-1,"data-test":"previous-month"},e("bal-icon",{name:"caret-left",color:"primary",size:"small"})),e("button",{title:b,"aria-label":b,onClick:c,tabIndex:-1,"data-test":"next-month"},e("bal-icon",{name:"caret-right",color:"primary",size:"small"}))))};var N=':host{--bal-date-first-week-day:0;--bal-date-calendar-background:var(--bal-color-red-3)}:host{--bal-date-first-week-day:0;--bal-date-calendar-background:var(--bal-color-red-3)}:host{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-block;background:var(--bal-color-white);border-radius:var(--bal-radius-normal)}.bal-date-calendar__nav{display:-ms-flexbox;display:flex;width:calc(100% - 1rem);-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;padding:.5rem;gap:.5rem}.bal-date-calendar__nav--start>button{display:-ms-flexbox;display:flex;gap:.5rem}.bal-date-calendar__nav--end{display:-ms-flexbox;display:flex;gap:.5rem}.bal-date-calendar__nav button{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;cursor:pointer;border-radius:var(--bal-radius-normal);font-family:var(--bal-font-family-text);font-weight:var(--bal-font-weight-regular);color:var(--bal-color-text-primary);border:none;background:rgba(0,0,0,0);text-align:center;font-size:var(--bal-text-size-normal);line-height:var(--bal-line-height-normal);-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;outline:none;min-height:2rem;min-width:2rem;padding:.25rem;border-radius:var(--bal-button-radius);font-family:var(--bal-font-family-title);font-weight:var(--bal-font-weight-bold)}@media (hover: hover)and (pointer: fine){.bal-date-calendar__nav button:not(.bal-date-calendar__nav button--selected):not(.bal-date-calendar__nav button--disabled):hover{background:var(--bal-color-light-blue-1)}}.bal-date-calendar__nav button:not(.bal-date-calendar__nav button--selected):not(.bal-date-calendar__nav button--disabled):active{background:var(--bal-color-light-blue-2)}.bal-date-calendar__nav button--today:not(.bal-date-calendar__nav button--selected):not(.bal-date-calendar__nav button--disabled){color:var(--bal-color-light-blue-3);font-weight:var(--bal-font-weight-bold)}@media (hover: hover)and (pointer: fine){.bal-date-calendar__nav button--today:not(.bal-date-calendar__nav button--selected):not(.bal-date-calendar__nav button--disabled):hover{color:var(--bal-color-text-primary)}}.bal-date-calendar__nav button--today:not(.bal-date-calendar__nav button--selected):not(.bal-date-calendar__nav button--disabled):active{color:var(--bal-color-text-primary)}.bal-date-calendar__nav button--selected{background:var(--bal-color-primary);color:var(--bal-color-text-white);font-weight:var(--bal-font-weight-bold)}.bal-date-calendar__nav button--disabled{cursor:default;background:rgba(0,0,0,0);color:var(--bal-color-text-grey-light)}.bal-date-calendar__body{display:block}.bal-date-calendar__body__grid{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:.5rem;height:0;padding-top:0;padding-bottom:0;visibility:hidden}.bal-date-calendar__body__grid--visible{height:auto;padding-top:.5rem;padding-bottom:.5rem;visibility:visible}.bal-date-calendar__body__grid__head{position:relative;display:grid;grid-template-columns:repeat(7, 1fr);-webkit-column-gap:.5rem;-moz-column-gap:.5rem;column-gap:.5rem;row-gap:.5rem;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.bal-date-calendar__body__grid__head::after{position:absolute;content:"";height:2px;width:calc(100% + 1rem);bottom:0;left:-0.5rem;right:-0.5rem;background:var(--bal-color-border)}.bal-date-calendar__body__grid__head span{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;height:2rem;width:2rem;font-family:var(--bal-font-family-title);font-weight:var(--bal-font-weight-bold);font-size:var(--bal-text-size-normal);line-height:var(--bal-line-height-normal);-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;text-wrap:nowrap}.bal-date-calendar__body__grid__body{display:grid;grid-template-columns:repeat(7, 1fr);-webkit-column-gap:.5rem;-moz-column-gap:.5rem;column-gap:.5rem;row-gap:.5rem;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding-top:.5rem}.bal-date-calendar__body__grid__body>.bal-date-calendar-cell{width:2rem;height:2rem;text-align:center;font-size:var(--bal-text-size-normal);line-height:var(--bal-line-height-normal);-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto}.bal-date-calendar__body__grid__body>.bal-date-calendar-cell:first-child{grid-column:var(--bal-date-first-week-day)}.bal-date-calendar__body__list{display:none;list-style:none;margin:0;padding:0;-webkit-column-gap:.5rem;-moz-column-gap:.5rem;column-gap:.5rem;row-gap:.5rem;width:calc(100% - 1rem);overflow-y:auto;max-height:18rem;position:relative;padding:.5rem;border-top:2px solid var(--bal-color-border)}.bal-date-calendar__body__list .bal-date-calendar__body__list__item{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;cursor:pointer;border-radius:var(--bal-radius-normal);font-family:var(--bal-font-family-text);font-weight:var(--bal-font-weight-regular);color:var(--bal-color-text-primary);border:none;background:rgba(0,0,0,0);text-align:center;font-size:var(--bal-text-size-normal);line-height:var(--bal-line-height-normal);-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;outline:none;width:100%}@media (hover: hover)and (pointer: fine){.bal-date-calendar__body__list .bal-date-calendar__body__list__item:not(.bal-date-calendar__body__list .bal-date-calendar__body__list__item--selected):not(.bal-date-calendar__body__list .bal-date-calendar__body__list__item--disabled):hover{background:var(--bal-color-light-blue-1)}}.bal-date-calendar__body__list .bal-date-calendar__body__list__item:not(.bal-date-calendar__body__list .bal-date-calendar__body__list__item--selected):not(.bal-date-calendar__body__list .bal-date-calendar__body__list__item--disabled):active{background:var(--bal-color-light-blue-2)}.bal-date-calendar__body__list .bal-date-calendar__body__list__item--today:not(.bal-date-calendar__body__list .bal-date-calendar__body__list__item--selected):not(.bal-date-calendar__body__list .bal-date-calendar__body__list__item--disabled){color:var(--bal-color-light-blue-3);font-weight:var(--bal-font-weight-bold)}@media (hover: hover)and (pointer: fine){.bal-date-calendar__body__list .bal-date-calendar__body__list__item--today:not(.bal-date-calendar__body__list .bal-date-calendar__body__list__item--selected):not(.bal-date-calendar__body__list .bal-date-calendar__body__list__item--disabled):hover{color:var(--bal-color-text-primary)}}.bal-date-calendar__body__list .bal-date-calendar__body__list__item--today:not(.bal-date-calendar__body__list .bal-date-calendar__body__list__item--selected):not(.bal-date-calendar__body__list .bal-date-calendar__body__list__item--disabled):active{color:var(--bal-color-text-primary)}.bal-date-calendar__body__list .bal-date-calendar__body__list__item--selected{background:var(--bal-color-primary);color:var(--bal-color-text-white);font-weight:var(--bal-font-weight-bold)}.bal-date-calendar__body__list .bal-date-calendar__body__list__item--disabled{cursor:default;background:rgba(0,0,0,0);color:var(--bal-color-text-grey-light)}.bal-date-calendar__body__list--visible{display:grid}.bal-date-calendar__body__list--year{grid-template-columns:repeat(4, 1fr)}.bal-date-calendar__body__list--month{grid-template-columns:repeat(2, 1fr)}.bal-date-calendar-cell{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;cursor:pointer;border-radius:var(--bal-radius-normal);font-family:var(--bal-font-family-text);font-weight:var(--bal-font-weight-regular);color:var(--bal-color-text-primary);border:none;background:rgba(0,0,0,0);text-align:center;font-size:var(--bal-text-size-normal);line-height:var(--bal-line-height-normal);-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;outline:none;width:2rem;height:2rem}@media (hover: hover)and (pointer: fine){.bal-date-calendar-cell:not(.bal-date-calendar-cell--selected):not(.bal-date-calendar-cell--disabled):hover{background:var(--bal-color-light-blue-1)}}.bal-date-calendar-cell:not(.bal-date-calendar-cell--selected):not(.bal-date-calendar-cell--disabled):active{background:var(--bal-color-light-blue-2)}.bal-date-calendar-cell--today:not(.bal-date-calendar-cell--selected):not(.bal-date-calendar-cell--disabled){color:var(--bal-color-light-blue-3);font-weight:var(--bal-font-weight-bold)}@media (hover: hover)and (pointer: fine){.bal-date-calendar-cell--today:not(.bal-date-calendar-cell--selected):not(.bal-date-calendar-cell--disabled):hover{color:var(--bal-color-text-primary)}}.bal-date-calendar-cell--today:not(.bal-date-calendar-cell--selected):not(.bal-date-calendar-cell--disabled):active{color:var(--bal-color-text-primary)}.bal-date-calendar-cell--selected{background:var(--bal-color-primary);color:var(--bal-color-text-white);font-weight:var(--bal-font-weight-bold)}.bal-date-calendar-cell--disabled{cursor:default;background:rgba(0,0,0,0);color:var(--bal-color-text-grey-light)}';var R=N;var Y=t("bal_date_calendar",function(){function t(t){var e=this;i(this,t);this.balChange=n(this,"balChange",7);this.oldMin="";this.oldMax="";this.onSelectDay=function(t){e.valueChanged(t,e.selectedDate);e.balChange.emit(e.selectedDate)};this.onClickNextMonth=function(){var t=e.year;var i=e.month+1;if(i>12){i=1;t=t+1}e.generateGridByMonthAndYear(i,t)};this.onClickPreviousMonth=function(){var t=e.year;var i=e.month-1;if(i<1){i=12;t=t-1}e.generateGridByMonthAndYear(i,t)};this.onClickSelectMonthAndYear=function(){return __awaiter(e,void 0,void 0,(function(){var t,e;return __generator(this,(function(i){switch(i.label){case 0:this.updateSelections();if(!(this.isCalendarVisible===true))return[3,2];this.isCalendarVisible=false;this.isYearListVisible=true;this.isMonthListVisible=false;return[4,b()];case 1:i.sent();if(this.yearListEl){t=this.yearListEl.querySelector("#year-".concat(this.year));if(t){e=26+8+4;this.yearListEl.scrollTop=t.offsetTop-e*2}else{this.yearListEl.scrollTop=0}}return[3,3];case 2:this.isCalendarVisible=true;this.isYearListVisible=false;this.isMonthListVisible=false;i.label=3;case 3:return[2]}}))}))};this.onClickYear=function(t){e.isYearListVisible=false;e.isMonthListVisible=true;e.generateGridByMonthAndYear(e.month,t);e.months=F(e.language,t,e.selectedDate,e.min,e.max)};this.onClickMonth=function(t){e.isYearListVisible=false;e.isMonthListVisible=false;e.isCalendarVisible=true;e.generateGridByMonthAndYear(t,e.year)};this.selectedDate="";this.monthFullNames=[];this.weekdays=[];this.months=[];this.years=[];this.calendarGrid=[];this.firstDayOfWeek=0;this.month=0;this.year=0;this.language=m.language;this.isCalendarVisible=true;this.isYearListVisible=false;this.isMonthListVisible=false;this.value=undefined;this.defaultDate=undefined;this.allowedDates=undefined;this.min=undefined;this.max=undefined;this.minYearProp=undefined;this.maxYearProp=undefined}t.prototype.createLogger=function(t){this.log=t};t.prototype.valueChanged=function(t,e){if(t!==e){var i=c.fromISO(t);if(!i.isValid){this.generateGridByDefaultDate();this.selectedDate=""}else{this.generateGridByDate(i);this.selectedDate=i.toISODate()}this.updateSelections()}};t.prototype.rangePropChanged=function(){this.updateSelections();this.generateGrid()};t.prototype.yearRangePropChanged=function(){this.updateSelections()};t.prototype.connectedCallback=function(){this.generateGridByDefaultDate();this.valueChanged(this.value,undefined)};t.prototype.configChanged=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.language=t.language;this.monthFullNames=c.infoMonths({format:"long",locale:this.language});this.weekdays=I(this.language);this.updateSelections();return[2]}))}))};t.prototype.swipeListener=function(t){var e=t.left,i=t.right;if(e){this.onClickNextMonth()}else if(i){this.onClickPreviousMonth()}};Object.defineProperty(t.prototype,"minYear",{get:function(){if(this.minYearProp===undefined){var t=new Date;var e=t.getFullYear();var i=e-100;if(this.min){var n=c.fromISO(this.min);return n.year||i}else{return i}}return this.minYearProp},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"maxYear",{get:function(){if(this.maxYearProp===undefined){var t=new Date;var e=t.getFullYear();var i=e+50;if(this.max){var n=c.fromISO(this.max);return n.year||i}else{return i}}return this.maxYearProp},enumerable:false,configurable:true});t.prototype.updateSelections=function(){this.years=V(this.year,this.minYear,this.maxYear);this.months=F(this.language,this.year,this.selectedDate,this.min,this.max)};t.prototype.generateGrid=function(){var t=c.fromISO(this.value);if(t.isValid){this.generateGridByDate(t)}else{this.generateGridByDefaultDate()}};t.prototype.generateGridByDate=function(t){if(t.year!==undefined&&t.month!==undefined){this.generateGridByMonthAndYear(t.month,t.year)}};t.prototype.generateGridByDefaultDate=function(){var t=c.fromISO(this.defaultDate);if(t.isValid){this.generateGridByDate(t)}else{var e=new Date;this.month=e.getMonth()+1;this.year=e.getFullYear();this.calendarGrid=P(this.year,this.month,this.min,this.max,this.allowedDates);this.firstDayOfWeek=S(this.year,this.month)}};t.prototype.generateGridByMonthAndYear=function(t,e){if(this.month!==t||this.year!==e||this.oldMin!==this.min||this.oldMax!==this.max){this.calendarGrid=P(e,t,this.min,this.max,this.allowedDates);this.firstDayOfWeek=S(e,t)}this.month=t;this.year=e;this.oldMin=this.min;this.oldMax=this.max};t.prototype.render=function(){var t=this;var i;var n=((i=this.gridEl)===null||i===void 0?void 0:i.clientHeight)||0;var r=_.block("date-calendar");var s=r.element("body");var l=r.element("foot");return e(a,{key:"e6348fe5b0ddab2253f7c79cb41a16fd93fe9a63",class:Object.assign({},r.class())},e(H,{key:"fc808b662835df468fe53a659cfdb048a2ce2325",language:this.language,monthFullNames:this.monthFullNames,month:this.month,year:this.year,isCalendarVisible:this.isCalendarVisible,isListVisible:this.isMonthListVisible||this.isYearListVisible,onClickSelectMonthAndYear:this.onClickSelectMonthAndYear,onClickPreviousMonth:this.onClickPreviousMonth,onClickNextMonth:this.onClickNextMonth}),e("div",{key:"14a071d6e691964876d2a832a9d2a7b20e2b5139",class:Object.assign({},s.class())},e(E,{key:"d7d81606a5bcf10637f48ad9d5f095cac4851c60",isVisible:this.isCalendarVisible,grid:this.calendarGrid,weekdays:this.weekdays,firstDayOfWeek:this.firstDayOfWeek,selectedDate:this.selectedDate,ref:function(e){return t.gridEl=e},onSelectDay:function(e){return t.onSelectDay(e)}}),e(T,{key:"3804356a689232d66ecbac4ad02c152a7e11739f",name:"year",isVisible:this.isYearListVisible,girdHeight:n,list:this.years,ref:function(e){return t.yearListEl=e},onSelect:function(e){return t.onClickYear(e.value)}}),e(T,{key:"2721e28b96097dfb3f824c6ef085657c56c89342",name:"month",isVisible:this.isMonthListVisible,girdHeight:n,list:this.months,onSelect:function(e){return t.onClickMonth(e.value)}})),e("div",{key:"da53c2e514df3bf5d4890a16fdc5738e55366f31",class:Object.assign({},l.class())},e("slot",{key:"6b75be6d0ad833854a0eade0d014ee26b05bc868"})))};Object.defineProperty(t.prototype,"el",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{value:["valueChanged"],min:["rangePropChanged"],max:["rangePropChanged"],minYearProp:["yearRangePropChanged"],maxYearProp:["yearRangePropChanged"]}},enumerable:false,configurable:true});return t}());s([h("bal-date-calendar"),l("design:type",Function),l("design:paramtypes",[Function]),l("design:returntype",void 0)],Y.prototype,"createLogger",null);s([g(),l("design:type",Function),l("design:paramtypes",[Object]),l("design:returntype",Promise)],Y.prototype,"configChanged",null);s([p({mobileOnly:true}),l("design:type",Function),l("design:paramtypes",[Object]),l("design:returntype",void 0)],Y.prototype,"swipeListener",null);Y.style=R;var B=function(){function t(t){this._options=t;this._position=0;this._positionEnd=0;this._isRangeSelection=false;if(t.component&&t.component.nativeInput){this._position=t.component.nativeInput.selectionStart||0;this._positionEnd=t.component.nativeInput.selectionEnd||0;this._isRangeSelection=this._position!==this._positionEnd}}Object.defineProperty(t.prototype,"isRangeSelection",{get:function(){return this._isRangeSelection},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"value",{get:function(){if(this._options.isBackspace&&this._position>0){return this._position-1}return this._position},set:function(t){var e=t<0?0:t>this._options.mask.maxLength?this._options.mask.maxLength:t;this._position=e},enumerable:false,configurable:true});t.prototype.toStart=function(){this.value=0};t.prototype.toEnd=function(){var t=this.getTarget();if(t){this.value=t.value.length}};t.prototype.next=function(t){if(t===void 0){t=1}var e=this._position+t;if(e<=this._options.mask.maxLength){this._position=e}return this._position};t.prototype.previous=function(t){if(t===void 0){t=1}var e=this._position-t;if(e>=0){this._position=e}else{this._position=0}return this._position};t.prototype.submit=function(){var t=this.getTarget();if(t&&t.selectionStart!==this._position&&t.selectionEnd!==this._position){t.selectionStart=this._position;t.selectionEnd=this._position}};t.prototype.getTarget=function(){if(this._options.component&&this._options.component.nativeInput){return this._options.component.nativeInput}return undefined};return t}();var J=function(){function t(t){this._options=t;this._value="";if(this._options.component&&this._options.component.nativeInput){this._value=this._options.component.nativeInput.value}this.position=new B(this._options);this.component=this._options.component}Object.defineProperty(t.prototype,"target",{get:function(){if(this._options.component&&this._options.component.nativeInput){return this._options.component.nativeInput}return undefined},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(t){this._value=t},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"focused",{get:function(){return this._options.component.focused},enumerable:false,configurable:true});t.prototype.isValueEmpty=function(){return this.value===""||this.value===undefined||this.value===null};t.prototype.preventDefault=function(){if(this._options.event.preventDefault){this._options.event.preventDefault()}};t.prototype.stopPropagation=function(){this.preventDefault();if(this._options.event.stopPropagation){this._options.event.stopPropagation()}};t.prototype.submit=function(){return __awaiter(this,arguments,void 0,(function(t,e){if(t===void 0){t="input"}return __generator(this,(function(i){if(this.target){this.target.value=this.value;if(t!=="blur"&&t!=="tab"){this.position.submit()}if(this._options.component){if(t==="input"||t==="tab"){this._options.component.balInput.emit(this.value)}if((t==="change"||t==="blur")&&e!==undefined){if(w(this._options.component.value,e)){this._options.component.value=e;this._options.component.balChange.emit(e)}}}}return[2]}))}))};return t}();var G=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(e.prototype,"clipboardData",{get:function(){var t;return(t=this._options.event.clipboardData)===null||t===void 0?void 0:t.getData("text")},enumerable:false,configurable:true});return e}(J);var W=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(J);var q=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(e.prototype,"key",{get:function(){return this._options.event.key},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isCtrlOrCommandKey",{get:function(){return this._options.event.metaKey||this._options.event.ctrlKey},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isBackspaceKey",{get:function(){return this._options.event.key==="Backspace"},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isTabKey",{get:function(){return this._options.event.key==="Tab"},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isWhiteSpaceKey",{get:function(){return this._options.event.key===" "},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isDeleteKey",{get:function(){return this._options.event.key==="Delete"||this._options.event.key==="Del"},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isNumberKey",{get:function(){return e.NUMBER_KEYS.includes(this._options.event.key)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isNavigationKey",{get:function(){return e.NAVIGATION_KEYS.includes(this._options.event.key)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isSelectAllCommand",{get:function(){return(this._options.event.ctrlKey||this._options.event.metaKey)&&this.key==="a"},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isCopyCommand",{get:function(){return(this._options.event.ctrlKey||this._options.event.metaKey)&&this.key==="c"},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isPasteCommand",{get:function(){return(this._options.event.ctrlKey||this._options.event.metaKey)&&this.key==="v"},enumerable:false,configurable:true});e.prototype.getCharAt=function(t){if(t===void 0){t=this.position.value}return this.value.charAt(t)};e.prototype.getCharAtBackspacePosition=function(){return this.getCharAt(this.position.value-1)};e.prototype.setChar=function(t,e){if(t===void 0){t=this._options.event.key}if(e===void 0){e=this.position.value}this.value=this.value.substring(0,e)+t+this.value.substring(e+1)};return e}(J);q.NUMBER_KEYS=["0","1","2","3","4","5","6","7","8","9"];q.NAVIGATION_KEYS=["Home","End","ArrowLeft","Left","ArrowRight","Right","Tab","Enter","Esc","Escape"];var U=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(e.prototype,"locale",{get:function(){return this._options.event.locale},enumerable:false,configurable:true});return e}(J);var Q=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(J);var X=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(e.prototype,"newValue",{get:function(){return this._options.event.newValue},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"oldValue",{get:function(){return this._options.event.oldValue},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"didValueChange",{get:function(){return this.newValue!==this.oldValue},enumerable:false,configurable:true});return e}(J);var Z=function(){function t(t){this._isSeparator=false;this._allowedKeys=[];this._locale="de-CH";this._from=t.from||0;this._to=t.to||0;this._isSeparator=t.isSeparator===undefined?false:t.isSeparator;this._mask=t.mask||"_";this._allowedKeys=t.allowedKeys?t.allowedKeys:this.allowedKeys;this._format=t.format}t.prototype.format=function(t){if(this._format){return this._format(t.replace(this.mask,""),this._locale,this.mask)}return t};Object.defineProperty(t.prototype,"isSeparator",{get:function(){return this._isSeparator},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"to",{get:function(){return this._to},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"from",{get:function(){return this._from},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"mask",{get:function(){if(typeof this._mask==="function"){return this._mask(this._locale)}return this._mask},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"allowedKeys",{get:function(){return this._allowedKeys},enumerable:false,configurable:true});t.prototype.onI18nChange=function(t){this._locale=t};t.prototype.getValueOfTheBlock=function(t){return t.slice(this._from,this._to)};t.prototype.isTouched=function(t){var e=this;var i=this.getValueOfTheBlock(t);return!i.split("").every((function(t){return t===e.mask}))};t.prototype.verifyAllowedKeyHits=function(t){if(this.isSeparator&&t===this.mask){return true}else if(this.allowedKeys.indexOf(t)>=0){return true}else{return false}};return t}();var $=function(){function t(t){if(t===void 0){t=[]}this._list=t}Object.defineProperty(t.prototype,"lastPosition",{get:function(){return this._list[this._list.length-1].to},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"list",{get:function(){return this._list},set:function(t){this._list=t},enumerable:false,configurable:true});t.prototype.clone=function(){return new t(__spreadArray([],this._list,true))};t.prototype.findByIndex=function(t,e){if(e===void 0){e=this.list}return e.find((function(e){return e.from<=t&&t<e.to}))};t.prototype.getPlaceholderMask=function(){var t=[];this.list.forEach((function(e){var i=e.to-e.from;for(var n=0;n<i;n++){t.push(e.mask)}}));return t.join("")};t.prototype.getRawValueWithoutMaskByContext=function(t){return this.getRawValueWithoutMask(t.value)};t.prototype.getRawValueWithoutMask=function(t){if(t){var e=[];var i=t.split("");for(var n=0;n<i.length;n++){var a=i[n];var r=this.findByIndex(n);if(r&&!r.isSeparator){e.push(a.replace(r.mask,""))}else{e.push(a)}}e=e.filter((function(t){return t}));var s=this.list.filter((function(t){return t.isSeparator})).length;if(s===e.length){return""}return e.join("")}return""};t.prototype.formatBlocks=function(t,e){var i="".concat(t);for(var n=0;n<this.list.length;n++){var a=this.list[n];if(e!==n&&!a.isSeparator&&a.isTouched(i)){var r=a.getValueOfTheBlock(i);var s=a.format(r);i=i.substring(0,a.from)+s+i.substring(a.to)}}return i};t.prototype.getBlockIndexFromPosition=function(t){var e=this.list.reduce((function(t,e){return t+e.to-e.from}),0);if(t===e){return this.list.length-1}var i=this.list.findIndex((function(e){return e.from<=t&&t<e.to}));return i<0?undefined:Math.min(e,i)};t.prototype.verifyCallOfNextSeparator=function(t,e){if(this.list.length-1>e){var i=this.list[e+1];if(i.isSeparator&&i.mask===t){return true}}return false};return t}();var tt=function(){function t(t){if(t===void 0){t=[]}this.inputMode="text";this.locale="de-CH";this.blocks=new $(t)}t.prototype.onLocaleChange=function(t,e,i){if(t.target){var n=t.value;var a=n.split("");for(var r=0;r<a.length;r++){var s=a[r];var l=this.blocks.findByIndex(r);var o=i.findByIndex(r);if(l&&o){if(l.isSeparator){a[r]=l.mask}else if(s===o.mask){a[r]=l.mask}}}t.value=a.join("")}};t.prototype.onFocus=function(t){};t.prototype.onBlur=function(t){};t.prototype.onChange=function(t){t.submit("change",this.onParseValue(t.value))};t.prototype.onNavigationDown=function(t,e,i){};t.prototype.onSelectAll=function(t,e,i){};t.prototype.onPaste=function(t,e,i){var n=t.clipboardData||"";t.value=n;t.position.toEnd()};t.prototype.onBlockChange=function(t,e,i){t.setChar();t.position.next();var n=this.blocks.list[i+1];if(t.position.value===e.to&&n&&n.isSeparator){t.position.next()}};t.prototype.onBackspaceDown=function(t,e,i){t.position.previous();if(!e.isSeparator){t.setChar(e.mask);var n=this.blocks.list[i-1];if(t.position.value===e.from&&n&&n.isSeparator){t.position.previous()}}};t.prototype.onDeleteDown=function(t,e,i){t.setChar(e.mask);t.position.next();var n=this.blocks.list[i+1];if(t.position.value===e.to&&n&&n.isSeparator){t.position.next()}};t.prototype.onValueChanged=function(t){var e=this.onFormatValue(t.newValue);var i=t.focused&&e===""?this.blocks.getPlaceholderMask():e;t.value=i;t.position.toEnd()};t.prototype.onParseValue=function(t,e){if(e===void 0){e={allowInvalidValue:false}}if(t){return t.trim()}return t||""};t.prototype.onFormatValue=function(t){if(t){return t.trim()}return t||""};t.prototype.toParsedValue=function(t){return this.onParseValue(t)};t.prototype.toFormattedValue=function(t){return this.onFormatValue(t)};t.prototype.fireI18nChange=function(t){var e=this.blocks.clone();var i="".concat(t.locale);this.locale=t.locale;this.blocks.list.forEach((function(e){return e.onI18nChange(t.locale)}));this.onLocaleChange(t,i,e)};t.prototype.fireValueChanged=function(t){if(t.didValueChange){this.onValueChanged(t)}};t.prototype.firePaste=function(t){var e=this.blocks.getBlockIndexFromPosition(t.position.value);if(e!==undefined){var i=this.blocks.list[e];this.onPaste(t,i,e);this.onChange(t)}};t.prototype.fireClick=function(t){var e=this.blocks.getPlaceholderMask();if(e===t.value){t.position.toStart()}};t.prototype.fireFocus=function(t){if(t.target&&t.isValueEmpty()){this.resetInputValueWithMask(t)}this.onFocus(t)};t.prototype.fireBlur=function(t){if(t.target){if(this.isValueEmptyMask(t)){this.emptyInputValue(t)}else{this.onBlur(t);t.submit("blur",this.onParseValue(t.value,{allowInvalidValue:t.component.allowInvalidValue}))}}};t.prototype.fireKeyDown=function(t){var e=t.isBackspaceKey?Math.max(0,t.position.value-1):t.position.value;var i=this.blocks.getBlockIndexFromPosition(e);if(e>=this.blocks.lastPosition&&!t.isNavigationKey&&!t.isSelectAllCommand){t.preventDefault();t.stopPropagation();return}if(i!==undefined&&!t.position.isRangeSelection){var n=this.blocks.list[i];if(t.isNavigationKey){this.onNavigationDown(t,n,i)}else if(t.isSelectAllCommand){this.onSelectAll(t,n,i)}else if(t.isCopyCommand);else if(t.isPasteCommand);else if(t.isBackspaceKey){t.preventDefault();this.onBackspaceDown(t,n,i)}else if(t.isDeleteKey){t.preventDefault();this.onDeleteDown(t,n,i)}else if(t.isWhiteSpaceKey){t.preventDefault();var a=t.value[t.position.value];if(a==="."){t.stopPropagation();var r=t.value;t.value=r.substring(0,t.position.value)+"_"+r.substring(t.position.value+1)}}else if(n.verifyAllowedKeyHits(t.key)){t.preventDefault();this.onBlockChange(t,n,i)}else if(this.blocks.verifyCallOfNextSeparator(t.key,i)){t.preventDefault();var s=this.blocks.list[i];if(t.position.value>s.from){var l=this.blocks.list[i+1];var r=t.value;var o=n.getValueOfTheBlock(r);var u=n.format(o);t.value=r.substring(0,n.from)+u+r.substring(n.to);t.position.value=l.to}}var c=this.blocks.getBlockIndexFromPosition(t.position.value);if(c&&!t.isBackspaceKey){var d=this.blocks.formatBlocks(t.value,c);var f=t.position.value;t.value=d;t.position.value=f}}else{if(!t.isTabKey){t.preventDefault()}if(t.isBackspaceKey||t.isDeleteKey){this.resetInputValueWithMask(t)}else if(this.blocks.list[0].verifyAllowedKeyHits(t.key)){this.onBlockChange(t,this.blocks.list[0],0)}}};t.prototype.resetInputValueWithMask=function(t){t.value=this.blocks.getPlaceholderMask();t.position.toStart()};t.prototype.isValueEmptyMask=function(t){var e=this.blocks.getPlaceholderMask();return e===t.value};t.prototype.emptyInputValue=function(t){t.value="";t.submit("blur",t.value)};return t}();var et=function(t){__extends(e,t);function e(){var e=t.call(this,[new Z({from:0,to:2,allowedKeys:__spreadArray([],C,true),format:function(t,e,i){if(Number.isNaN(parseInt(t,10))){return"".concat(i).concat(i)}return t.padStart(2,"0")},mask:function(t){return e.dayMask[t.split("-")[0]]||e.dayMask["de"]}}),new Z({from:2,to:3,mask:function(t){return f(t)},isSeparator:true}),new Z({from:3,to:5,allowedKeys:__spreadArray([],C,true),format:function(t,e,i){if(Number.isNaN(parseInt(t,10))){return"".concat(i).concat(i)}return t.padStart(2,"0")},mask:function(t){return e.monthMask[t.split("-")[0]]||e.monthMask["de"]}}),new Z({from:5,to:6,mask:function(t){return f(t)},isSeparator:true}),new Z({from:6,to:10,allowedKeys:__spreadArray([],C,true),mask:function(t){return e.yearMask[t.split("-")[0]]||e.yearMask["de"]}})])||this;e.maxLength=10;e.minLength=10;e.inputMode="decimal";e.dayMask={de:"T",en:"D",fr:"J",it:"G",nl:"D",es:"D",pl:"D",pt:"D",sv:"D",fi:"M"};e.monthMask={de:"M",en:"M",fr:"M",it:"M",nl:"M",es:"M",pl:"M",pt:"M",sv:"M",fi:"K"};e.yearMask={de:"J",en:"Y",fr:"A",it:"A",nl:"J",es:"A",pl:"R",pt:"A",sv:"Å",fi:"V"};return e}e.prototype.onParseValue=function(t,e){if(e===void 0){e={allowInvalidValue:false}}if(t){var i=c.fromAnyFormat(this.blocks.getRawValueWithoutMask(t));if(i.isValid){return i.toISODate()}else if(e&&e.allowInvalidValue){return D}}return""};e.prototype.onFormatValue=function(t){if(t){var e=c.fromISO(t);if(e.isValid){return e.toFormat()}}return""};e.prototype.onPaste=function(t,e,i){var n=t.clipboardData||"";var a=c.fromAnyFormat(n);if(a.isValid){t.value=a.toFormat();t.position.toEnd()}};e.prototype.onBlur=function(t){var e=this.blocks.getRawValueWithoutMaskByContext(t);var i=c.fromAnyFormat(e);if(i.isValid){var n=i.toFormat();if(n!==t.value){t.value=n}}else if(t.component.allowInvalidValue){if(e!==t.value){t.value=e}}};return e}(tt);var it=function(){function t(t){this.mask=t}Object.defineProperty(t.prototype,"attributes",{get:function(){return{inputMode:this.mask.inputMode,maxLength:this.mask.maxLength,minLength:this.mask.minLength,type:"text",autoCapitalize:"off",autoCorrect:"off",spellcheck:false}},enumerable:false,configurable:true});t.prototype.bindComponent=function(t){this.component=t};t.prototype.bindComponentDidLoad=function(){if(this.component&&this.component.nativeInput){this.component.nativeInput.value=this.component.value||""}this.bindValueChanged(this.component.value,undefined)};t.prototype.bindConfigChanged=function(t){var e=this,i=e.component,n=e.mask;var a=new U({component:i,mask:n,event:{locale:"".concat(t.language,"-").concat(t.region)}});this.mask.fireI18nChange(a);a.submit()};t.prototype.bindValueChanged=function(t,e){var i=this,n=i.component,a=i.mask;var r=new X({component:n,mask:a,event:{newValue:t,oldValue:e}});this.mask.fireValueChanged(r);r.submit("blur")};t.prototype.bindKeyDown=function(t){if(this.isComponentAccessible){var e=this,i=e.component,n=e.mask;var a=new q({event:t,component:i,mask:n});this.mask.fireKeyDown(a);var r=t.key==="Tab";a.submit(r?"tab":"input");i.balKeyPress.emit(t)}};t.prototype.bindFocus=function(t){if(this.isComponentAccessible){var e=this,i=e.component,n=e.mask;i.focused=true;var a=new W({event:t,component:i,mask:n});this.mask.fireFocus(a);a.submit();i.balFocus.emit(t)}};t.prototype.bindBlur=function(t){if(this.isComponentAccessible){var e=this,i=e.component,n=e.mask;i.focused=false;var a=new W({event:t,component:i,mask:n});this.mask.fireBlur(a);a.submit("blur");i.balBlur.emit(t)}};t.prototype.bindPaste=function(t){if(this.isComponentAccessible){var e=this,i=e.component,n=e.mask;var a=new G({event:t,component:i,mask:n});this.mask.firePaste(a);a.submit()}};t.prototype.bindFormReset=function(t){var e=this;var i=t.target;if(i&&(i===this.component.el||i.contains(this.component.el))){this.component.value=this.component.initialValue;this.component.inputValue=this.component.initialValue;clearTimeout(this.resetHandlerTimer);this.resetHandlerTimer=setTimeout((function(){if(e.component.nativeInput){e.component.nativeInput.value=e.mask.toFormattedValue(e.component.value||"")}}))}};t.prototype.bindClick=function(t){if(this.isComponentAccessible){var e=this,i=e.component,n=e.mask;var a=new Q({event:t,component:i,mask:n});this.mask.fireClick(a);a.submit()}};t.prototype.bindHostClick=function(t){if(!this.isComponentAccessible){t.preventDefault();t.stopPropagation()}};t.prototype.bindGlobalClick=function(t){if(!this.isComponentAccessible){if(t.target&&t.target===this.component.el){t.preventDefault();t.stopPropagation()}}};Object.defineProperty(t.prototype,"isComponentAccessible",{get:function(){return!this.component.disabled&&!this.component.readonly},enumerable:false,configurable:true});return t}();var nt=".bal-input-date{display:block;width:100%;-ms-flex:1;flex:1}.bal-input-date input:not(:-moz-placeholder-shown){letter-spacing:.4px}.bal-input-date input:not(:-ms-input-placeholder){letter-spacing:.4px}.bal-input-date input:not(:placeholder-shown){letter-spacing:.4px}.bal-input-date__native{position:absolute !important;left:0;top:0;margin:0;padding:0;opacity:0;outline:0;border:none;width:1px;height:1px;clip:rect(1px, 1px, 1px, 1px);overflow:hidden}";var at=nt;var rt=t("bal_input_date",function(){function t(t){i(this,t);this.balKeyPress=n(this,"balKeyPress",7);this.balChange=n(this,"balChange",7);this.balInput=n(this,"balInput",7);this.balBlur=n(this,"balBlur",7);this.balFocus=n(this,"balFocus",7);this.inputId="bal-i-date-".concat(st++);this.inheritedAttributes={};this.maskAdapter=new it(new et);this.inputValue=this.value;this.initialValue=this.value||"";this.focused=false;this.isGrouped=false;this.ariaForm=k;this.name=this.inputId;this.invalid=false;this.required=false;this.disabled=false;this.readonly=false;this.placeholder=undefined;this.clickable=false;this.min=undefined;this.max=undefined;this.autocomplete="off";this.hasIconRight=false;this.value=undefined;this.autoInvalidOff=false;this.allowInvalidValue=false}t.prototype.createLogger=function(t){this.log=t};t.prototype.valueChanged=function(t,e){this.maskAdapter.bindValueChanged(t,e)};t.prototype.connectedCallback=function(){this.maskAdapter.bindComponent(this);this.isGrouped=v("bal-input-group",this.el)};t.prototype.componentDidLoad=function(){this.maskAdapter.bindComponentDidLoad()};t.prototype.componentWillRender=function(){this.inheritedAttributes=y(this.el,["aria-label","tabindex","title"])};t.prototype.configChanged=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.maskAdapter.bindConfigChanged(t);return[2]}))}))};t.prototype.resetHandler=function(t){this.maskAdapter.bindFormReset(t)};t.prototype.listenOnClick=function(t){this.maskAdapter.bindGlobalClick(t)};t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){x(this);return[2]}))}))};t.prototype.setBlur=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){j(this);return[2]}))}))};t.prototype.getInputElement=function(){return Promise.resolve(this.nativeInput)};t.prototype.setAriaForm=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.ariaForm=Object.assign({},t);return[2]}))}))};t.prototype.render=function(){var t=this;var i=_.block("input-date");var n=i.element("native");return e(a,{key:"14148968dbe8593f608bb83cb80431c1af6c10cb",onClick:function(e){return t.maskAdapter.bindHostClick(e)},class:Object.assign({},i.class())},e("input",Object.assign({key:"7a9307a111eb7eaca7d043e6102220f83ed407ef",class:{input:true,"is-disabled":this.disabled||this.readonly,"is-danger":this.invalid,"is-clickable":this.clickable&&!(this.disabled||this.readonly),"bal-focusable":!this.disabled,"has-icon-right":this.hasIconRight},"data-testid":"bal-date-input",ref:function(e){return t.nativeInput=e},id:this.ariaForm.controlId||this.inputId,"aria-labelledby":this.ariaForm.labelId,"aria-describedby":this.ariaForm.messageId,"aria-invalid":this.invalid===true?"true":"false","aria-disabled":this.disabled?"true":null,required:this.required,disabled:this.disabled,readonly:this.readonly,autoComplete:this.autocomplete},this.maskAdapter.attributes,this.inheritedAttributes,{placeholder:this.placeholder,value:this.inputValue,onKeyDown:function(e){return t.maskAdapter.bindKeyDown(e)},onClick:function(e){return t.maskAdapter.bindClick(e)},onFocus:function(e){return t.maskAdapter.bindFocus(e)},onBlur:function(e){return t.maskAdapter.bindBlur(e)},onPaste:function(e){return t.maskAdapter.bindPaste(e)}})),e("input",{key:"23e89b524f1cd68f76461720e386034d1872689a",type:"date",class:Object.assign({},n.class()),name:this.name,min:this.min,max:this.max,value:this.value,tabindex:-1,"aria-hidden":"true"}))};Object.defineProperty(t.prototype,"el",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{value:["valueChanged"]}},enumerable:false,configurable:true});return t}());s([h("bal-input-date"),l("design:type",Function),l("design:paramtypes",[Function]),l("design:returntype",void 0)],rt.prototype,"createLogger",null);s([g(),l("design:type",Function),l("design:paramtypes",[Object]),l("design:returntype",Promise)],rt.prototype,"configChanged",null);s([O("reset",{capture:true,target:"document"}),l("design:type",Function),l("design:paramtypes",[UIEvent]),l("design:returntype",void 0)],rt.prototype,"resetHandler",null);s([O("click",{capture:true,target:"document"}),l("design:type",Function),l("design:paramtypes",[MouseEvent]),l("design:returntype",void 0)],rt.prototype,"listenOnClick",null);var st=0;rt.style=at}}}));
|
package/dist/baloise-design-system/{p-c412a7d9f5.system.entry.js → p-25e640839d.system.entry.js}
RENAMED
|
@@ -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{c(n.next(t))}catch(t){a(t)}}function s(t){try{c(n["throw"](t))}catch(t){a(t)}}function c(t){t.done?r(t.value):i(t.value).then(o,s)}c((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;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return c([t,e])}}function c(s){if(n)throw new TypeError("Generator is already executing.");while(o&&(o=0,s[0]&&(r=0)),r)try{if(n=1,i&&(a=s[0]&2?i["return"]:s[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;if(i=0,a)s=[s[0]&2,a.value];switch(s[0]){case 0:case 1:a=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;i=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(a=r.trys,a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){r.label=s[1];break}if(s[0]===6&&r.label<a[1]){r.label=a[1];a=s;break}if(a&&r.label<a[2]){r.label=a[2];r.ops.push(s);break}if(a[2])r.ops.pop();r.trys.pop();continue}s=e.call(t,r)}catch(t){s=[6,t];i=0}finally{n=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[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-d67f7321.system.js","./p-6dbef894.system.js","./p-db0895e2.system.js","./p-b79d8942.system.js","./p-f19ea306.system.js","./p-b5152365.system.js","./p-de13d5c0.system.js","./p-0177e3a0.system.js","./p-a1f6e944.system.js","./p-23bdd8dc.system.js","./p-ee3c7a38.system.js","./p-6913b916.system.js","./p-4d807f18.system.js","./p-b3f2c626.system.js","./p-145d5c4e.system.js","./p-ec9a7cf5.system.js","./p-eecefb0a.system.js","./p-69313d59.system.js"],(function(t){"use strict";var e,r,n,i,a,o,s,c,u,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._;s=t.a},function(t){c=t.B},function(t){u=t.p},function(t){f=t.B},function(t){l=t.b},function(t){v=t.L},function(t){p=t.L},function(t){d=t.b},function(t){b=t.L},function(t){h=t.L},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var _=":root{--bal-hint-content-background:var(--bal-color-grey-2)}.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}@media (hover: hover)and (pointer: fine){.bal-hint__icon:hover svg,.bal-hint__icon:hover g,.bal-hint__icon:hover path,.bal-hint__icon:hover circle,.bal-hint__icon:focus svg,.bal-hint__icon:focus g,.bal-hint__icon:focus path,.bal-hint__icon:focus circle{fill:var(--bal-color-light-blue-5)}}.bal-hint__content{background:var(--bal-hint-content-background);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__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 m=_;var g=t("bal_hint",function(){function t(t){var r=this;e(this,t);this.bodyScrollHandler=new f;this.onPopoverChange=function(t){r.isActive=t.detail;u(t)};this.isActive=false;this.innerCloseLabel="Close";this.isMobile=l.isMobile;this.closeLabel=undefined;this.small=false}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.popoverElement){this.popoverElement.present()}if(this.isMobile){this.bodyScrollHandler.disable()}this.isActive=true;return[2]}))}))};t.prototype.dismiss=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.popoverElement){this.popoverElement.dismiss()}if(this.isMobile){this.bodyScrollHandler.enable()}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=c.block("hint");var i=e.element("icon");var a=e.element("content");var o=a.element("buttons");var s=this.isMobile?0:8;var u=this.isMobile?0:16;var f=function(){return r("bal-icon",{class:Object.assign({},i.class()),"data-testid":"bal-hint-trigger","bal-popover-trigger":true,"aria-haspopup":"true",role:"button",name:"info-circle",onClick:function(){return t.toggle()}})};var l=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 v=function(){var n=e.element("overlay");return r("div",{class:Object.assign({},n.class())},r(f,null),r("div",{class:Object.assign(Object.assign({},n.element("content").class()),n.element("content").modifier("active").class(t.isActive))},r(l,null)))};var p=function(){return r("div",{class:Object.assign({},e.element("popover").class())},r("bal-popover",{hint:true,position:"right",offsetX:0,offsetY:u,padding:s,ref:function(e){return t.popoverElement=e},onBalChange:t.onPopoverChange},r(f,null),r("bal-popover-content",{color:"grey"},r(l,null))))};var d=this.isMobile?v:p;return r(n,{class:Object.assign({},e.class())},r(d,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([v(),s("design:type",Function),s("design:paramtypes",[Object]),s("design:returntype",void 0)],g.prototype,"breakpointListener",null);o([p(),s("design:type",Function),s("design:paramtypes",[Object]),s("design:returntype",Promise)],g.prototype,"configChanged",null);g.style=m;var y=t("bal_hint_text",function(){function t(t){e(this,t)}t.prototype.render=function(){var t=c.block("hint");var e=t.element("content");var i=e.element("text");var a=i.element("field");return r(n,{key:"10515eb783c2a6feba7f88cc419e7cfa57295231",class:Object.assign({},i.class())},r("p",{key:"5a2c68d72075d729f72527e2bf6a7afcfa18c29e",class:Object.assign({},a.class())},r("slot",{key:"8da0f8ccdb88e88206c2b87ccae42d2636fc5586"})))};return t}());var w=t("bal_hint_title",function(){function t(t){e(this,t)}t.prototype.render=function(){var t=c.block("hint");var e=t.element("content");var i=e.element("title");var a=i.element("heading");return r(n,{key:"8f29a6b15159586bb953a76e446574facc9e258a",class:Object.assign({},i.class())},r("h3",{key:"9edc67f39610f47e3adad25fb931809cef09b908",class:Object.assign({},a.class())},r("span",{key:"30b258cb3ec7ffe8463c7fe5364ab61093611015"},r("slot",{key:"9b8eb3d881e5393c757362c0e66be4debd4031b4"}))))};return t}());var x="top";var j="bottom";var O="right";var k="left";var z="auto";var A=[x,j,O,k];var E="start";var P="end";var M="clippingParents";var S="viewport";var C="popper";var F="reference";var L=A.reduce((function(t,e){return t.concat([e+"-"+E,e+"-"+P])}),[]);var T=[].concat(A,[z]).reduce((function(t,e){return t.concat([e,e+"-"+E,e+"-"+P])}),[]);var B="beforeRead";var q="read";var W="afterRead";var I="beforeMain";var R="main";var H="afterMain";var K="beforeWrite";var U="write";var D="afterWrite";var G=[B,q,W,I,R,H,K,U,D];function N(t){return t?(t.nodeName||"").toLowerCase():null}function V(t){if(t==null){return window}if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e?e.defaultView||window:window}return t}function X(t){var e=V(t).Element;return t instanceof e||t instanceof Element}function Y(t){var e=V(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function J(t){if(typeof ShadowRoot==="undefined"){return false}var e=V(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(!Y(i)||!N(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 Z(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(!Y(n)||!N(n)){return}Object.assign(n.style,o);Object.keys(i).forEach((function(t){n.removeAttribute(t)}))}))}}var $={name:"applyStyles",enabled:true,phase:"write",fn:Q,effect:Z,requires:["computeStyles"]};function tt(t){return t.split("-")[0]}var et=Math.max;var rt=Math.min;var nt=Math.round;function it(){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 at(){return!/^((?!chrome|android).)*safari/i.test(it())}function ot(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&&Y(t)){i=t.offsetWidth>0?nt(n.width)/t.offsetWidth||1:1;a=t.offsetHeight>0?nt(n.height)/t.offsetHeight||1:1}var o=X(t)?V(t):window,s=o.visualViewport;var c=!at()&&r;var u=(n.left+(c&&s?s.offsetLeft:0))/i;var f=(n.top+(c&&s?s.offsetTop:0))/a;var l=n.width/i;var v=n.height/a;return{width:l,height:v,top:f,right:u+l,bottom:f+v,left:u,x:u,y:f}}function st(t){var e=ot(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 ut(t){return V(t).getComputedStyle(t)}function ft(t){return["table","td","th"].indexOf(N(t))>=0}function lt(t){return((X(t)?t.ownerDocument:t.document)||window.document).documentElement}function vt(t){if(N(t)==="html"){return t}return t.assignedSlot||t.parentNode||(J(t)?t.host:null)||lt(t)}function pt(t){if(!Y(t)||ut(t).position==="fixed"){return null}return t.offsetParent}function dt(t){var e=/firefox/i.test(it());var r=/Trident/i.test(it());if(r&&Y(t)){var n=ut(t);if(n.position==="fixed"){return null}}var i=vt(t);if(J(i)){i=i.host}while(Y(i)&&["html","body"].indexOf(N(i))<0){var a=ut(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 bt(t){var e=V(t);var r=pt(t);while(r&&ft(r)&&ut(r).position==="static"){r=pt(r)}if(r&&(N(r)==="html"||N(r)==="body"&&ut(r).position==="static")){return e}return r||dt(t)||e}function ht(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function _t(t,e,r){return et(t,rt(e,r))}function mt(t,e,r){var n=_t(t,e,r);return n>r?r:n}function gt(){return{top:0,right:0,bottom:0,left:0}}function yt(t){return Object.assign({},gt(),t)}function wt(t,e){return e.reduce((function(e,r){e[r]=t;return e}),{})}var xt=function t(e,r){e=typeof e==="function"?e(Object.assign({},r.rects,{placement:r.placement})):e;return yt(typeof e!=="number"?e:wt(e,A))};function jt(t){var e;var r=t.state,n=t.name,i=t.options;var a=r.elements.arrow;var o=r.modifiersData.popperOffsets;var s=tt(r.placement);var c=ht(s);var u=[k,O].indexOf(s)>=0;var f=u?"height":"width";if(!a||!o){return}var l=xt(i.padding,r);var v=st(a);var p=c==="y"?x:k;var d=c==="y"?j:O;var b=r.rects.reference[f]+r.rects.reference[c]-o[c]-r.rects.popper[f];var h=o[c]-r.rects.reference[c];var _=bt(a);var m=_?c==="y"?_.clientHeight||0:_.clientWidth||0:0;var g=b/2-h/2;var y=l[p];var w=m-v[f]-l[d];var z=m/2-v[f]/2+g;var A=_t(y,z,w);var E=c;r.modifiersData[n]=(e={},e[E]=A,e.centerOffset=A-z,e)}function Ot(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 kt={name:"arrow",enabled:true,phase:"main",fn:jt,effect:Ot,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function zt(t){return t.split("-")[1]}var At={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:nt(r*i)/i||0,y:nt(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,s=t.position,c=t.gpuAcceleration,u=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=k;var y=x;var w=window;if(u){var z=bt(r);var A="clientHeight";var E="clientWidth";if(z===V(r)){z=lt(r);if(ut(z).position!=="static"&&s==="absolute"){A="scrollHeight";E="scrollWidth"}}z=z;if(i===x||(i===k||i===O)&&a===P){y=j;var M=l&&z===w&&w.visualViewport?w.visualViewport.height:z[A];b-=M-n.height;b*=c?1:-1}if(i===k||(i===x||i===j)&&a===P){g=O;var S=l&&z===w&&w.visualViewport?w.visualViewport.width:z[E];p-=S-n.width;p*=c?1:-1}}var C=Object.assign({position:s},u&&At);var F=f===true?Et({x:p,y:b},V(r)):{x:p,y:b};p=F.x;b=F.y;if(c){var L;return Object.assign({},C,(L={},L[y]=m?"0":"",L[g]=_?"0":"",L.transform=(w.devicePixelRatio||1)<=1?"translate("+p+"px, "+b+"px)":"translate3d("+p+"px, "+b+"px, 0)",L))}return Object.assign({},C,(e={},e[y]=m?b+"px":"",e[g]=_?p+"px":"",e.transform="",e))}function Mt(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,s=r.roundOffsets,c=s===void 0?true:s;var u={placement:tt(e.placement),variation:zt(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({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:c})))}if(e.modifiersData.arrow!=null){e.styles.arrow=Object.assign({},e.styles.arrow,Pt(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:false,roundOffsets:c})))}e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var St={name:"computeStyles",enabled:true,phase:"beforeWrite",fn:Mt,data:{}};var Ct={passive:true};function Ft(t){var e=t.state,r=t.instance,n=t.options;var i=n.scroll,a=i===void 0?true:i,o=n.resize,s=o===void 0?true:o;var c=V(e.elements.popper);var u=[].concat(e.scrollParents.reference,e.scrollParents.popper);if(a){u.forEach((function(t){t.addEventListener("scroll",r.update,Ct)}))}if(s){c.addEventListener("resize",r.update,Ct)}return function(){if(a){u.forEach((function(t){t.removeEventListener("scroll",r.update,Ct)}))}if(s){c.removeEventListener("resize",r.update,Ct)}}}var Lt={name:"eventListeners",enabled:true,phase:"write",fn:function t(){},effect:Ft,data:{}};var Tt={left:"right",right:"left",bottom:"top",top:"bottom"};function Bt(t){return t.replace(/left|right|bottom|top/g,(function(t){return Tt[t]}))}var qt={start:"end",end:"start"};function Wt(t){return t.replace(/start|end/g,(function(t){return qt[t]}))}function It(t){var e=V(t);var r=e.pageXOffset;var n=e.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Rt(t){return ot(lt(t)).left+It(t).scrollLeft}function Ht(t,e){var r=V(t);var n=lt(t);var i=r.visualViewport;var a=n.clientWidth;var o=n.clientHeight;var s=0;var c=0;if(i){a=i.width;o=i.height;var u=at();if(u||!u&&e==="fixed"){s=i.offsetLeft;c=i.offsetTop}}return{width:a,height:o,x:s+Rt(t),y:c}}function Kt(t){var e;var r=lt(t);var n=It(t);var i=(e=t.ownerDocument)==null?void 0:e.body;var a=et(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0);var o=et(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0);var s=-n.scrollLeft+Rt(t);var c=-n.scrollTop;if(ut(i||r).direction==="rtl"){s+=et(r.clientWidth,i?i.clientWidth:0)-a}return{width:a,height:o,x:s,y:c}}function Ut(t){var e=ut(t),r=e.overflow,n=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function Dt(t){if(["html","body","#document"].indexOf(N(t))>=0){return t.ownerDocument.body}if(Y(t)&&Ut(t)){return t}return Dt(vt(t))}function Gt(t,e){var r;if(e===void 0){e=[]}var n=Dt(t);var i=n===((r=t.ownerDocument)==null?void 0:r.body);var a=V(n);var o=i?[a].concat(a.visualViewport||[],Ut(n)?n:[]):n;var s=e.concat(o);return i?s:s.concat(Gt(vt(o)))}function Nt(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Vt(t,e){var r=ot(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 Xt(t,e,r){return e===S?Nt(Ht(t,r)):X(e)?Vt(e,r):Nt(Kt(lt(t)))}function Yt(t){var e=Gt(vt(t));var r=["absolute","fixed"].indexOf(ut(t).position)>=0;var n=r&&Y(t)?bt(t):t;if(!X(n)){return[]}return e.filter((function(t){return X(t)&&ct(t,n)&&N(t)!=="body"}))}function Jt(t,e,r,n){var i=e==="clippingParents"?Yt(t):[].concat(e);var a=[].concat(i,[r]);var o=a[0];var s=a.reduce((function(e,r){var i=Xt(t,r,n);e.top=et(i.top,e.top);e.right=rt(i.right,e.right);e.bottom=rt(i.bottom,e.bottom);e.left=et(i.left,e.left);return e}),Xt(t,o,n));s.width=s.right-s.left;s.height=s.bottom-s.top;s.x=s.left;s.y=s.top;return s}function Qt(t){var e=t.reference,r=t.element,n=t.placement;var i=n?tt(n):null;var a=n?zt(n):null;var o=e.x+e.width/2-r.width/2;var s=e.y+e.height/2-r.height/2;var c;switch(i){case x:c={x:o,y:e.y-r.height};break;case j:c={x:o,y:e.y+e.height};break;case O:c={x:e.x+e.width,y:s};break;case k:c={x:e.x-r.width,y:s};break;default:c={x:e.x,y:e.y}}var u=i?ht(i):null;if(u!=null){var f=u==="y"?"height":"width";switch(a){case E:c[u]=c[u]-(e[f]/2-r[f]/2);break;case P:c[u]=c[u]+(e[f]/2-r[f]/2);break}}return c}function Zt(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,s=r.boundary,c=s===void 0?M:s,u=r.rootBoundary,f=u===void 0?S:u,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 _=yt(typeof h!=="number"?h:wt(h,A));var m=v===C?F:C;var g=t.rects.popper;var y=t.elements[d?m:v];var w=Jt(X(y)?y:y.contextElement||lt(t.elements.popper),c,f,o);var k=ot(t.elements.reference);var z=Qt({reference:k,element:g,strategy:"absolute",placement:i});var E=Nt(Object.assign({},g,z));var P=v===C?E:k;var L={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 T=t.modifiersData.offset;if(v===C&&T){var B=T[i];Object.keys(L).forEach((function(t){var e=[O,j].indexOf(t)>=0?1:-1;var r=[x,j].indexOf(t)>=0?"y":"x";L[t]+=B[r]*e}))}return L}function $t(t,e){if(e===void 0){e={}}var r=e,n=r.placement,i=r.boundary,a=r.rootBoundary,o=r.padding,s=r.flipVariations,c=r.allowedAutoPlacements,u=c===void 0?T:c;var f=zt(n);var l=f?s?L:L.filter((function(t){return zt(t)===f})):A;var v=l.filter((function(t){return u.indexOf(t)>=0}));if(v.length===0){v=l}var p=v.reduce((function(e,r){e[r]=Zt(t,{placement:r,boundary:i,rootBoundary:a,padding:o})[tt(r)];return e}),{});return Object.keys(p).sort((function(t,e){return p[t]-p[e]}))}function te(t){if(tt(t)===z){return[]}var e=Bt(t);return[Wt(t),e,Wt(e)]}function ee(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,s=o===void 0?true:o,c=r.fallbackPlacements,u=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 _=tt(h);var m=_===h;var g=c||(m||!d?[Bt(h)]:te(h));var y=[h].concat(g).reduce((function(t,r){return t.concat(tt(r)===z?$t(e,{placement:r,boundary:f,rootBoundary:l,padding:u,flipVariations:d,allowedAutoPlacements:b}):r)}),[]);var w=e.rects.reference;var A=e.rects.popper;var P=new Map;var M=true;var S=y[0];for(var C=0;C<y.length;C++){var F=y[C];var L=tt(F);var T=zt(F)===E;var B=[x,j].indexOf(L)>=0;var q=B?"width":"height";var W=Zt(e,{placement:F,boundary:f,rootBoundary:l,altBoundary:v,padding:u});var I=B?T?O:k:T?j:x;if(w[q]>A[q]){I=Bt(I)}var R=Bt(I);var H=[];if(a){H.push(W[L]<=0)}if(s){H.push(W[I]<=0,W[R]<=0)}if(H.every((function(t){return t}))){S=F;M=false;break}P.set(F,H)}if(M){var K=d?3:1;var U=function t(e){var r=y.find((function(t){var r=P.get(t);if(r){return r.slice(0,e).every((function(t){return t}))}}));if(r){S=r;return"break"}};for(var D=K;D>0;D--){var G=U(D);if(G==="break")break}}if(e.placement!==S){e.modifiersData[n]._skip=true;e.placement=S;e.reset=true}}var re={name:"flip",enabled:true,phase:"main",fn:ee,requiresIfExists:["offset"],data:{_skip:false}};function ne(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 ie(t){return[x,O,j,k].some((function(e){return t[e]>=0}))}function ae(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=Zt(e,{elementContext:"reference"});var s=Zt(e,{altBoundary:true});var c=ne(o,n);var u=ne(s,i,a);var f=ie(c);var l=ie(u);e.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:f,hasPopperEscaped:l};e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":l})}var oe={name:"hide",enabled:true,phase:"main",requiresIfExists:["preventOverflow"],fn:ae};function se(t,e,r){var n=tt(t);var i=[k,x].indexOf(n)>=0?-1:1;var a=typeof r==="function"?r(Object.assign({},e,{placement:t})):r,o=a[0],s=a[1];o=o||0;s=(s||0)*i;return[k,O].indexOf(n)>=0?{x:s,y:o}:{x:o,y:s}}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=T.reduce((function(t,r){t[r]=se(r,e.rects,a);return t}),{});var s=o[e.placement],c=s.x,u=s.y;if(e.modifiersData.popperOffsets!=null){e.modifiersData.popperOffsets.x+=c;e.modifiersData.popperOffsets.y+=u}e.modifiersData[n]=o}var ue={name:"offset",enabled:true,phase:"main",requires:["popperOffsets"],fn:ce};function fe(t){var e=t.state,r=t.name;e.modifiersData[r]=Qt({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var le={name:"popperOffsets",enabled:true,phase:"read",fn:fe,data:{}};function ve(t){return t==="x"?"y":"x"}function pe(t){var e=t.state,r=t.options,n=t.name;var i=r.mainAxis,a=i===void 0?true:i,o=r.altAxis,s=o===void 0?false:o,c=r.boundary,u=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=Zt(e,{boundary:c,rootBoundary:u,padding:l,altBoundary:f});var _=tt(e.placement);var m=zt(e.placement);var g=!m;var y=ht(_);var w=ve(y);var z=e.modifiersData.popperOffsets;var A=e.rects.reference;var P=e.rects.popper;var M=typeof b==="function"?b(Object.assign({},e.rects,{placement:e.placement})):b;var S=typeof M==="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M);var C=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null;var F={x:0,y:0};if(!z){return}if(a){var L;var T=y==="y"?x:k;var B=y==="y"?j:O;var q=y==="y"?"height":"width";var W=z[y];var I=W+h[T];var R=W-h[B];var H=p?-P[q]/2:0;var K=m===E?A[q]:P[q];var U=m===E?-P[q]:-A[q];var D=e.elements.arrow;var G=p&&D?st(D):{width:0,height:0};var N=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:gt();var V=N[T];var X=N[B];var Y=_t(0,A[q],G[q]);var J=g?A[q]/2-H-Y-V-S.mainAxis:K-Y-V-S.mainAxis;var Q=g?-A[q]/2+H+Y+X+S.mainAxis:U+Y+X+S.mainAxis;var Z=e.elements.arrow&&bt(e.elements.arrow);var $=Z?y==="y"?Z.clientTop||0:Z.clientLeft||0:0;var nt=(L=C==null?void 0:C[y])!=null?L:0;var it=W+J-nt-$;var at=W+Q-nt;var ot=_t(p?rt(I,it):I,W,p?et(R,at):R);z[y]=ot;F[y]=ot-W}if(s){var ct;var ut=y==="x"?x:k;var ft=y==="x"?j:O;var lt=z[w];var vt=w==="y"?"height":"width";var pt=lt+h[ut];var dt=lt-h[ft];var yt=[x,k].indexOf(_)!==-1;var wt=(ct=C==null?void 0:C[w])!=null?ct:0;var xt=yt?pt:lt-A[vt]-P[vt]-wt+S.altAxis;var jt=yt?lt+A[vt]+P[vt]-wt-S.altAxis:dt;var Ot=p&&yt?mt(xt,lt,jt):_t(p?xt:pt,lt,p?jt:dt);z[w]=Ot;F[w]=Ot-lt}e.modifiersData[n]=F}var de={name:"preventOverflow",enabled:true,phase:"main",fn:pe,requiresIfExists:["offset"]};function be(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function he(t){if(t===V(t)||!Y(t)){return It(t)}else{return be(t)}}function _e(t){var e=t.getBoundingClientRect();var r=nt(e.width)/t.offsetWidth||1;var n=nt(e.height)/t.offsetHeight||1;return r!==1||n!==1}function me(t,e,r){if(r===void 0){r=false}var n=Y(e);var i=Y(e)&&_e(e);var a=lt(e);var o=ot(t,i,r);var s={scrollLeft:0,scrollTop:0};var c={x:0,y:0};if(n||!n&&!r){if(N(e)!=="body"||Ut(a)){s=he(e)}if(Y(e)){c=ot(e,true);c.x+=e.clientLeft;c.y+=e.clientTop}else if(a){c.x=Rt(a)}}return{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function ge(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 ye(t){var e=ge(t);return G.reduce((function(t,r){return t.concat(e.filter((function(t){return t.phase===r})))}),[])}function we(t){var e;return function(){if(!e){e=new Promise((function(r){Promise.resolve().then((function(){e=undefined;r(t())}))}))}return e}}function xe(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 je={placement:"bottom",modifiers:[],strategy:"absolute"};function Oe(){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 ke(t){if(t===void 0){t={}}var e=t,r=e.defaultModifiers,n=r===void 0?[]:r,i=e.defaultOptions,a=i===void 0?je:i;return function t(e,r,i){if(i===void 0){i=a}var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},je,a),modifiersData:{},elements:{reference:e,popper:r},attributes:{},styles:{}};var s=[];var c=false;var u={state:o,setOptions:function t(i){var s=typeof i==="function"?i(o.options):i;l();o.options=Object.assign({},a,o.options,s);o.scrollParents={reference:X(e)?Gt(e):e.contextElement?Gt(e.contextElement):[],popper:Gt(r)};var c=ye(xe([].concat(n,o.options.modifiers)));o.orderedModifiers=c.filter((function(t){return t.enabled}));f();return u.update()},forceUpdate:function t(){if(c){return}var e=o.elements,r=e.reference,n=e.popper;if(!Oe(r,n)){return}o.rects={reference:me(r,bt(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],s=a.fn,f=a.options,l=f===void 0?{}:f,v=a.name;if(typeof s==="function"){o=s({state:o,options:l,name:v,instance:u})||o}}},update:we((function(){return new Promise((function(t){u.forceUpdate();t(o)}))})),destroy:function t(){l();c=true}};if(!Oe(e,r)){return u}u.setOptions(i).then((function(t){if(!c&&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:u,options:n});var c=function t(){};s.push(a||c)}}))}function l(){s.forEach((function(t){return t()}));s=[]}return u}}var ze=[Lt,le,St,$,ue,re,de,kt,oe];var Ae=ke({defaultModifiers:ze});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=Ee;var Me=t("bal_popover",function(){function t(t){e(this,t);this.balChange=a(this,"balChange",7);this.balWillAnimate=a(this,"balWillAnimate",7);this.balDidAnimate=a(this,"balDidAnimate",7);this.balPopoverPrepare=a(this,"balPopoverPrepare",7);this.popoverId="bal-po-".concat(Se++);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()};t.prototype.componentDidLoad=function(){var t=this;this.isInMainNav=this.footMobileNav!==null;if(this.triggerElement&&this.menuElement){this.popperInstance=Ae(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(d.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(d.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=c.block("popover");return r(n,{key:"997e5fefb0e6fe103b1732f084f8a7963eb319e5","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:"d5cb75c1951b9fe7cfd22ef86ee677461eecf5fc",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:"41482b0196b230235349f86cfb413cc8b35a8dad"}))};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([b("bal-popover"),s("design:type",Function),s("design:paramtypes",[Function]),s("design:returntype",void 0)],Me.prototype,"createLogger",null);o([h("balPopoverPrepare",{target:"document"}),s("design:type",Function),s("design:paramtypes",[CustomEvent]),s("design:returntype",void 0)],Me.prototype,"handlePopoverPrepare",null);o([h("click",{target:"document"}),s("design:type",Function),s("design:paramtypes",[UIEvent]),s("design:returntype",Promise)],Me.prototype,"clickOnOutside",null);o([h("keydown",{target:"window"}),s("design:type",Function),s("design:paramtypes",[KeyboardEvent]),s("design:returntype",void 0)],Me.prototype,"handleKeyUp",null);o([h("keyup",{target:"document"}),s("design:type",Function),s("design:paramtypes",[KeyboardEvent]),s("design:returntype",Promise)],Me.prototype,"tabOutside",null);o([v(),s("design:type",Function),s("design:paramtypes",[Object]),s("design:returntype",void 0)],Me.prototype,"breakpointListener",null);var Se=0;Me.style=Pe;var Ce=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(d.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(d.hasWindow){this.contentHeightOnTop=window.innerHeight-64}};t.prototype.render=function(){var t=c.block("popover").element("content");return r(n,{key:"c47c5a6aa96c52a4460894ab274a167be0927d35",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:"dec823beec17dfe48195c3e794dbcfe4725f83d4",class:Object.assign({},t.element("inner").class()),style:this.innerStyle},r("slot",{key:"d8200f831b8569736e27486fd5e975a0f21b76e2"})),r("div",{key:"5cd3727753fa2cf5a841c11b8d48aa7eee31cf2d",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([v(),s("design:type",Function),s("design:paramtypes",[Object]),s("design:returntype",void 0)],Ce.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{c(n.next(t))}catch(t){a(t)}}function s(t){try{c(n["throw"](t))}catch(t){a(t)}}function c(t){t.done?r(t.value):i(t.value).then(o,s)}c((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;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return c([t,e])}}function c(s){if(n)throw new TypeError("Generator is already executing.");while(o&&(o=0,s[0]&&(r=0)),r)try{if(n=1,i&&(a=s[0]&2?i["return"]:s[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;if(i=0,a)s=[s[0]&2,a.value];switch(s[0]){case 0:case 1:a=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;i=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(a=r.trys,a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){r.label=s[1];break}if(s[0]===6&&r.label<a[1]){r.label=a[1];a=s;break}if(a&&r.label<a[2]){r.label=a[2];r.ops.push(s);break}if(a[2])r.ops.pop();r.trys.pop();continue}s=e.call(t,r)}catch(t){s=[6,t];i=0}finally{n=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[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-d67f7321.system.js","./p-6dbef894.system.js","./p-db0895e2.system.js","./p-b79d8942.system.js","./p-f19ea306.system.js","./p-486eb96d.system.js","./p-dafb9ede.system.js","./p-0177e3a0.system.js","./p-a1f6e944.system.js","./p-23bdd8dc.system.js","./p-ee3c7a38.system.js","./p-6913b916.system.js","./p-4d807f18.system.js","./p-b3f2c626.system.js","./p-145d5c4e.system.js","./p-ec9a7cf5.system.js","./p-eecefb0a.system.js","./p-342d34ac.system.js"],(function(t){"use strict";var e,r,n,i,a,o,s,c,u,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._;s=t.a},function(t){c=t.B},function(t){u=t.p},function(t){f=t.B},function(t){l=t.b},function(t){v=t.L},function(t){p=t.L},function(t){d=t.b},function(t){b=t.L},function(t){h=t.L},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var _=":root{--bal-hint-content-background:var(--bal-color-grey-2)}.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}@media (hover: hover)and (pointer: fine){.bal-hint__icon:hover svg,.bal-hint__icon:hover g,.bal-hint__icon:hover path,.bal-hint__icon:hover circle,.bal-hint__icon:focus svg,.bal-hint__icon:focus g,.bal-hint__icon:focus path,.bal-hint__icon:focus circle{fill:var(--bal-color-light-blue-5)}}.bal-hint__content{background:var(--bal-hint-content-background);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__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 m=_;var g=t("bal_hint",function(){function t(t){var r=this;e(this,t);this.bodyScrollHandler=new f;this.onPopoverChange=function(t){r.isActive=t.detail;u(t)};this.isActive=false;this.innerCloseLabel="Close";this.isMobile=l.isMobile;this.closeLabel=undefined;this.small=false}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.popoverElement){this.popoverElement.present()}if(this.isMobile){this.bodyScrollHandler.disable()}this.isActive=true;return[2]}))}))};t.prototype.dismiss=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.popoverElement){this.popoverElement.dismiss()}if(this.isMobile){this.bodyScrollHandler.enable()}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=c.block("hint");var i=e.element("icon");var a=e.element("content");var o=a.element("buttons");var s=this.isMobile?0:8;var u=this.isMobile?0:16;var f=function(){return r("bal-icon",{class:Object.assign({},i.class()),"data-testid":"bal-hint-trigger","bal-popover-trigger":true,"aria-haspopup":"true",role:"button",name:"info-circle",onClick:function(){return t.toggle()}})};var l=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 v=function(){var n=e.element("overlay");return r("div",{class:Object.assign({},n.class())},r(f,null),r("div",{class:Object.assign(Object.assign({},n.element("content").class()),n.element("content").modifier("active").class(t.isActive))},r(l,null)))};var p=function(){return r("div",{class:Object.assign({},e.element("popover").class())},r("bal-popover",{hint:true,position:"right",offsetX:0,offsetY:u,padding:s,ref:function(e){return t.popoverElement=e},onBalChange:t.onPopoverChange},r(f,null),r("bal-popover-content",{color:"grey"},r(l,null))))};var d=this.isMobile?v:p;return r(n,{class:Object.assign({},e.class())},r(d,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([v(),s("design:type",Function),s("design:paramtypes",[Object]),s("design:returntype",void 0)],g.prototype,"breakpointListener",null);o([p(),s("design:type",Function),s("design:paramtypes",[Object]),s("design:returntype",Promise)],g.prototype,"configChanged",null);g.style=m;var y=t("bal_hint_text",function(){function t(t){e(this,t)}t.prototype.render=function(){var t=c.block("hint");var e=t.element("content");var i=e.element("text");var a=i.element("field");return r(n,{key:"10515eb783c2a6feba7f88cc419e7cfa57295231",class:Object.assign({},i.class())},r("p",{key:"5a2c68d72075d729f72527e2bf6a7afcfa18c29e",class:Object.assign({},a.class())},r("slot",{key:"8da0f8ccdb88e88206c2b87ccae42d2636fc5586"})))};return t}());var w=t("bal_hint_title",function(){function t(t){e(this,t)}t.prototype.render=function(){var t=c.block("hint");var e=t.element("content");var i=e.element("title");var a=i.element("heading");return r(n,{key:"8f29a6b15159586bb953a76e446574facc9e258a",class:Object.assign({},i.class())},r("h3",{key:"9edc67f39610f47e3adad25fb931809cef09b908",class:Object.assign({},a.class())},r("span",{key:"30b258cb3ec7ffe8463c7fe5364ab61093611015"},r("slot",{key:"9b8eb3d881e5393c757362c0e66be4debd4031b4"}))))};return t}());var x="top";var j="bottom";var O="right";var k="left";var z="auto";var A=[x,j,O,k];var E="start";var P="end";var M="clippingParents";var S="viewport";var C="popper";var F="reference";var L=A.reduce((function(t,e){return t.concat([e+"-"+E,e+"-"+P])}),[]);var T=[].concat(A,[z]).reduce((function(t,e){return t.concat([e,e+"-"+E,e+"-"+P])}),[]);var B="beforeRead";var q="read";var W="afterRead";var I="beforeMain";var R="main";var H="afterMain";var K="beforeWrite";var U="write";var D="afterWrite";var G=[B,q,W,I,R,H,K,U,D];function N(t){return t?(t.nodeName||"").toLowerCase():null}function V(t){if(t==null){return window}if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e?e.defaultView||window:window}return t}function X(t){var e=V(t).Element;return t instanceof e||t instanceof Element}function Y(t){var e=V(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function J(t){if(typeof ShadowRoot==="undefined"){return false}var e=V(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(!Y(i)||!N(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 Z(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(!Y(n)||!N(n)){return}Object.assign(n.style,o);Object.keys(i).forEach((function(t){n.removeAttribute(t)}))}))}}var $={name:"applyStyles",enabled:true,phase:"write",fn:Q,effect:Z,requires:["computeStyles"]};function tt(t){return t.split("-")[0]}var et=Math.max;var rt=Math.min;var nt=Math.round;function it(){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 at(){return!/^((?!chrome|android).)*safari/i.test(it())}function ot(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&&Y(t)){i=t.offsetWidth>0?nt(n.width)/t.offsetWidth||1:1;a=t.offsetHeight>0?nt(n.height)/t.offsetHeight||1:1}var o=X(t)?V(t):window,s=o.visualViewport;var c=!at()&&r;var u=(n.left+(c&&s?s.offsetLeft:0))/i;var f=(n.top+(c&&s?s.offsetTop:0))/a;var l=n.width/i;var v=n.height/a;return{width:l,height:v,top:f,right:u+l,bottom:f+v,left:u,x:u,y:f}}function st(t){var e=ot(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 ut(t){return V(t).getComputedStyle(t)}function ft(t){return["table","td","th"].indexOf(N(t))>=0}function lt(t){return((X(t)?t.ownerDocument:t.document)||window.document).documentElement}function vt(t){if(N(t)==="html"){return t}return t.assignedSlot||t.parentNode||(J(t)?t.host:null)||lt(t)}function pt(t){if(!Y(t)||ut(t).position==="fixed"){return null}return t.offsetParent}function dt(t){var e=/firefox/i.test(it());var r=/Trident/i.test(it());if(r&&Y(t)){var n=ut(t);if(n.position==="fixed"){return null}}var i=vt(t);if(J(i)){i=i.host}while(Y(i)&&["html","body"].indexOf(N(i))<0){var a=ut(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 bt(t){var e=V(t);var r=pt(t);while(r&&ft(r)&&ut(r).position==="static"){r=pt(r)}if(r&&(N(r)==="html"||N(r)==="body"&&ut(r).position==="static")){return e}return r||dt(t)||e}function ht(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function _t(t,e,r){return et(t,rt(e,r))}function mt(t,e,r){var n=_t(t,e,r);return n>r?r:n}function gt(){return{top:0,right:0,bottom:0,left:0}}function yt(t){return Object.assign({},gt(),t)}function wt(t,e){return e.reduce((function(e,r){e[r]=t;return e}),{})}var xt=function t(e,r){e=typeof e==="function"?e(Object.assign({},r.rects,{placement:r.placement})):e;return yt(typeof e!=="number"?e:wt(e,A))};function jt(t){var e;var r=t.state,n=t.name,i=t.options;var a=r.elements.arrow;var o=r.modifiersData.popperOffsets;var s=tt(r.placement);var c=ht(s);var u=[k,O].indexOf(s)>=0;var f=u?"height":"width";if(!a||!o){return}var l=xt(i.padding,r);var v=st(a);var p=c==="y"?x:k;var d=c==="y"?j:O;var b=r.rects.reference[f]+r.rects.reference[c]-o[c]-r.rects.popper[f];var h=o[c]-r.rects.reference[c];var _=bt(a);var m=_?c==="y"?_.clientHeight||0:_.clientWidth||0:0;var g=b/2-h/2;var y=l[p];var w=m-v[f]-l[d];var z=m/2-v[f]/2+g;var A=_t(y,z,w);var E=c;r.modifiersData[n]=(e={},e[E]=A,e.centerOffset=A-z,e)}function Ot(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 kt={name:"arrow",enabled:true,phase:"main",fn:jt,effect:Ot,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function zt(t){return t.split("-")[1]}var At={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:nt(r*i)/i||0,y:nt(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,s=t.position,c=t.gpuAcceleration,u=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=k;var y=x;var w=window;if(u){var z=bt(r);var A="clientHeight";var E="clientWidth";if(z===V(r)){z=lt(r);if(ut(z).position!=="static"&&s==="absolute"){A="scrollHeight";E="scrollWidth"}}z=z;if(i===x||(i===k||i===O)&&a===P){y=j;var M=l&&z===w&&w.visualViewport?w.visualViewport.height:z[A];b-=M-n.height;b*=c?1:-1}if(i===k||(i===x||i===j)&&a===P){g=O;var S=l&&z===w&&w.visualViewport?w.visualViewport.width:z[E];p-=S-n.width;p*=c?1:-1}}var C=Object.assign({position:s},u&&At);var F=f===true?Et({x:p,y:b},V(r)):{x:p,y:b};p=F.x;b=F.y;if(c){var L;return Object.assign({},C,(L={},L[y]=m?"0":"",L[g]=_?"0":"",L.transform=(w.devicePixelRatio||1)<=1?"translate("+p+"px, "+b+"px)":"translate3d("+p+"px, "+b+"px, 0)",L))}return Object.assign({},C,(e={},e[y]=m?b+"px":"",e[g]=_?p+"px":"",e.transform="",e))}function Mt(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,s=r.roundOffsets,c=s===void 0?true:s;var u={placement:tt(e.placement),variation:zt(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({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:c})))}if(e.modifiersData.arrow!=null){e.styles.arrow=Object.assign({},e.styles.arrow,Pt(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:false,roundOffsets:c})))}e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var St={name:"computeStyles",enabled:true,phase:"beforeWrite",fn:Mt,data:{}};var Ct={passive:true};function Ft(t){var e=t.state,r=t.instance,n=t.options;var i=n.scroll,a=i===void 0?true:i,o=n.resize,s=o===void 0?true:o;var c=V(e.elements.popper);var u=[].concat(e.scrollParents.reference,e.scrollParents.popper);if(a){u.forEach((function(t){t.addEventListener("scroll",r.update,Ct)}))}if(s){c.addEventListener("resize",r.update,Ct)}return function(){if(a){u.forEach((function(t){t.removeEventListener("scroll",r.update,Ct)}))}if(s){c.removeEventListener("resize",r.update,Ct)}}}var Lt={name:"eventListeners",enabled:true,phase:"write",fn:function t(){},effect:Ft,data:{}};var Tt={left:"right",right:"left",bottom:"top",top:"bottom"};function Bt(t){return t.replace(/left|right|bottom|top/g,(function(t){return Tt[t]}))}var qt={start:"end",end:"start"};function Wt(t){return t.replace(/start|end/g,(function(t){return qt[t]}))}function It(t){var e=V(t);var r=e.pageXOffset;var n=e.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Rt(t){return ot(lt(t)).left+It(t).scrollLeft}function Ht(t,e){var r=V(t);var n=lt(t);var i=r.visualViewport;var a=n.clientWidth;var o=n.clientHeight;var s=0;var c=0;if(i){a=i.width;o=i.height;var u=at();if(u||!u&&e==="fixed"){s=i.offsetLeft;c=i.offsetTop}}return{width:a,height:o,x:s+Rt(t),y:c}}function Kt(t){var e;var r=lt(t);var n=It(t);var i=(e=t.ownerDocument)==null?void 0:e.body;var a=et(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0);var o=et(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0);var s=-n.scrollLeft+Rt(t);var c=-n.scrollTop;if(ut(i||r).direction==="rtl"){s+=et(r.clientWidth,i?i.clientWidth:0)-a}return{width:a,height:o,x:s,y:c}}function Ut(t){var e=ut(t),r=e.overflow,n=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function Dt(t){if(["html","body","#document"].indexOf(N(t))>=0){return t.ownerDocument.body}if(Y(t)&&Ut(t)){return t}return Dt(vt(t))}function Gt(t,e){var r;if(e===void 0){e=[]}var n=Dt(t);var i=n===((r=t.ownerDocument)==null?void 0:r.body);var a=V(n);var o=i?[a].concat(a.visualViewport||[],Ut(n)?n:[]):n;var s=e.concat(o);return i?s:s.concat(Gt(vt(o)))}function Nt(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Vt(t,e){var r=ot(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 Xt(t,e,r){return e===S?Nt(Ht(t,r)):X(e)?Vt(e,r):Nt(Kt(lt(t)))}function Yt(t){var e=Gt(vt(t));var r=["absolute","fixed"].indexOf(ut(t).position)>=0;var n=r&&Y(t)?bt(t):t;if(!X(n)){return[]}return e.filter((function(t){return X(t)&&ct(t,n)&&N(t)!=="body"}))}function Jt(t,e,r,n){var i=e==="clippingParents"?Yt(t):[].concat(e);var a=[].concat(i,[r]);var o=a[0];var s=a.reduce((function(e,r){var i=Xt(t,r,n);e.top=et(i.top,e.top);e.right=rt(i.right,e.right);e.bottom=rt(i.bottom,e.bottom);e.left=et(i.left,e.left);return e}),Xt(t,o,n));s.width=s.right-s.left;s.height=s.bottom-s.top;s.x=s.left;s.y=s.top;return s}function Qt(t){var e=t.reference,r=t.element,n=t.placement;var i=n?tt(n):null;var a=n?zt(n):null;var o=e.x+e.width/2-r.width/2;var s=e.y+e.height/2-r.height/2;var c;switch(i){case x:c={x:o,y:e.y-r.height};break;case j:c={x:o,y:e.y+e.height};break;case O:c={x:e.x+e.width,y:s};break;case k:c={x:e.x-r.width,y:s};break;default:c={x:e.x,y:e.y}}var u=i?ht(i):null;if(u!=null){var f=u==="y"?"height":"width";switch(a){case E:c[u]=c[u]-(e[f]/2-r[f]/2);break;case P:c[u]=c[u]+(e[f]/2-r[f]/2);break}}return c}function Zt(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,s=r.boundary,c=s===void 0?M:s,u=r.rootBoundary,f=u===void 0?S:u,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 _=yt(typeof h!=="number"?h:wt(h,A));var m=v===C?F:C;var g=t.rects.popper;var y=t.elements[d?m:v];var w=Jt(X(y)?y:y.contextElement||lt(t.elements.popper),c,f,o);var k=ot(t.elements.reference);var z=Qt({reference:k,element:g,strategy:"absolute",placement:i});var E=Nt(Object.assign({},g,z));var P=v===C?E:k;var L={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 T=t.modifiersData.offset;if(v===C&&T){var B=T[i];Object.keys(L).forEach((function(t){var e=[O,j].indexOf(t)>=0?1:-1;var r=[x,j].indexOf(t)>=0?"y":"x";L[t]+=B[r]*e}))}return L}function $t(t,e){if(e===void 0){e={}}var r=e,n=r.placement,i=r.boundary,a=r.rootBoundary,o=r.padding,s=r.flipVariations,c=r.allowedAutoPlacements,u=c===void 0?T:c;var f=zt(n);var l=f?s?L:L.filter((function(t){return zt(t)===f})):A;var v=l.filter((function(t){return u.indexOf(t)>=0}));if(v.length===0){v=l}var p=v.reduce((function(e,r){e[r]=Zt(t,{placement:r,boundary:i,rootBoundary:a,padding:o})[tt(r)];return e}),{});return Object.keys(p).sort((function(t,e){return p[t]-p[e]}))}function te(t){if(tt(t)===z){return[]}var e=Bt(t);return[Wt(t),e,Wt(e)]}function ee(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,s=o===void 0?true:o,c=r.fallbackPlacements,u=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 _=tt(h);var m=_===h;var g=c||(m||!d?[Bt(h)]:te(h));var y=[h].concat(g).reduce((function(t,r){return t.concat(tt(r)===z?$t(e,{placement:r,boundary:f,rootBoundary:l,padding:u,flipVariations:d,allowedAutoPlacements:b}):r)}),[]);var w=e.rects.reference;var A=e.rects.popper;var P=new Map;var M=true;var S=y[0];for(var C=0;C<y.length;C++){var F=y[C];var L=tt(F);var T=zt(F)===E;var B=[x,j].indexOf(L)>=0;var q=B?"width":"height";var W=Zt(e,{placement:F,boundary:f,rootBoundary:l,altBoundary:v,padding:u});var I=B?T?O:k:T?j:x;if(w[q]>A[q]){I=Bt(I)}var R=Bt(I);var H=[];if(a){H.push(W[L]<=0)}if(s){H.push(W[I]<=0,W[R]<=0)}if(H.every((function(t){return t}))){S=F;M=false;break}P.set(F,H)}if(M){var K=d?3:1;var U=function t(e){var r=y.find((function(t){var r=P.get(t);if(r){return r.slice(0,e).every((function(t){return t}))}}));if(r){S=r;return"break"}};for(var D=K;D>0;D--){var G=U(D);if(G==="break")break}}if(e.placement!==S){e.modifiersData[n]._skip=true;e.placement=S;e.reset=true}}var re={name:"flip",enabled:true,phase:"main",fn:ee,requiresIfExists:["offset"],data:{_skip:false}};function ne(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 ie(t){return[x,O,j,k].some((function(e){return t[e]>=0}))}function ae(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=Zt(e,{elementContext:"reference"});var s=Zt(e,{altBoundary:true});var c=ne(o,n);var u=ne(s,i,a);var f=ie(c);var l=ie(u);e.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:f,hasPopperEscaped:l};e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":l})}var oe={name:"hide",enabled:true,phase:"main",requiresIfExists:["preventOverflow"],fn:ae};function se(t,e,r){var n=tt(t);var i=[k,x].indexOf(n)>=0?-1:1;var a=typeof r==="function"?r(Object.assign({},e,{placement:t})):r,o=a[0],s=a[1];o=o||0;s=(s||0)*i;return[k,O].indexOf(n)>=0?{x:s,y:o}:{x:o,y:s}}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=T.reduce((function(t,r){t[r]=se(r,e.rects,a);return t}),{});var s=o[e.placement],c=s.x,u=s.y;if(e.modifiersData.popperOffsets!=null){e.modifiersData.popperOffsets.x+=c;e.modifiersData.popperOffsets.y+=u}e.modifiersData[n]=o}var ue={name:"offset",enabled:true,phase:"main",requires:["popperOffsets"],fn:ce};function fe(t){var e=t.state,r=t.name;e.modifiersData[r]=Qt({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var le={name:"popperOffsets",enabled:true,phase:"read",fn:fe,data:{}};function ve(t){return t==="x"?"y":"x"}function pe(t){var e=t.state,r=t.options,n=t.name;var i=r.mainAxis,a=i===void 0?true:i,o=r.altAxis,s=o===void 0?false:o,c=r.boundary,u=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=Zt(e,{boundary:c,rootBoundary:u,padding:l,altBoundary:f});var _=tt(e.placement);var m=zt(e.placement);var g=!m;var y=ht(_);var w=ve(y);var z=e.modifiersData.popperOffsets;var A=e.rects.reference;var P=e.rects.popper;var M=typeof b==="function"?b(Object.assign({},e.rects,{placement:e.placement})):b;var S=typeof M==="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M);var C=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null;var F={x:0,y:0};if(!z){return}if(a){var L;var T=y==="y"?x:k;var B=y==="y"?j:O;var q=y==="y"?"height":"width";var W=z[y];var I=W+h[T];var R=W-h[B];var H=p?-P[q]/2:0;var K=m===E?A[q]:P[q];var U=m===E?-P[q]:-A[q];var D=e.elements.arrow;var G=p&&D?st(D):{width:0,height:0};var N=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:gt();var V=N[T];var X=N[B];var Y=_t(0,A[q],G[q]);var J=g?A[q]/2-H-Y-V-S.mainAxis:K-Y-V-S.mainAxis;var Q=g?-A[q]/2+H+Y+X+S.mainAxis:U+Y+X+S.mainAxis;var Z=e.elements.arrow&&bt(e.elements.arrow);var $=Z?y==="y"?Z.clientTop||0:Z.clientLeft||0:0;var nt=(L=C==null?void 0:C[y])!=null?L:0;var it=W+J-nt-$;var at=W+Q-nt;var ot=_t(p?rt(I,it):I,W,p?et(R,at):R);z[y]=ot;F[y]=ot-W}if(s){var ct;var ut=y==="x"?x:k;var ft=y==="x"?j:O;var lt=z[w];var vt=w==="y"?"height":"width";var pt=lt+h[ut];var dt=lt-h[ft];var yt=[x,k].indexOf(_)!==-1;var wt=(ct=C==null?void 0:C[w])!=null?ct:0;var xt=yt?pt:lt-A[vt]-P[vt]-wt+S.altAxis;var jt=yt?lt+A[vt]+P[vt]-wt-S.altAxis:dt;var Ot=p&&yt?mt(xt,lt,jt):_t(p?xt:pt,lt,p?jt:dt);z[w]=Ot;F[w]=Ot-lt}e.modifiersData[n]=F}var de={name:"preventOverflow",enabled:true,phase:"main",fn:pe,requiresIfExists:["offset"]};function be(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function he(t){if(t===V(t)||!Y(t)){return It(t)}else{return be(t)}}function _e(t){var e=t.getBoundingClientRect();var r=nt(e.width)/t.offsetWidth||1;var n=nt(e.height)/t.offsetHeight||1;return r!==1||n!==1}function me(t,e,r){if(r===void 0){r=false}var n=Y(e);var i=Y(e)&&_e(e);var a=lt(e);var o=ot(t,i,r);var s={scrollLeft:0,scrollTop:0};var c={x:0,y:0};if(n||!n&&!r){if(N(e)!=="body"||Ut(a)){s=he(e)}if(Y(e)){c=ot(e,true);c.x+=e.clientLeft;c.y+=e.clientTop}else if(a){c.x=Rt(a)}}return{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function ge(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 ye(t){var e=ge(t);return G.reduce((function(t,r){return t.concat(e.filter((function(t){return t.phase===r})))}),[])}function we(t){var e;return function(){if(!e){e=new Promise((function(r){Promise.resolve().then((function(){e=undefined;r(t())}))}))}return e}}function xe(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 je={placement:"bottom",modifiers:[],strategy:"absolute"};function Oe(){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 ke(t){if(t===void 0){t={}}var e=t,r=e.defaultModifiers,n=r===void 0?[]:r,i=e.defaultOptions,a=i===void 0?je:i;return function t(e,r,i){if(i===void 0){i=a}var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},je,a),modifiersData:{},elements:{reference:e,popper:r},attributes:{},styles:{}};var s=[];var c=false;var u={state:o,setOptions:function t(i){var s=typeof i==="function"?i(o.options):i;l();o.options=Object.assign({},a,o.options,s);o.scrollParents={reference:X(e)?Gt(e):e.contextElement?Gt(e.contextElement):[],popper:Gt(r)};var c=ye(xe([].concat(n,o.options.modifiers)));o.orderedModifiers=c.filter((function(t){return t.enabled}));f();return u.update()},forceUpdate:function t(){if(c){return}var e=o.elements,r=e.reference,n=e.popper;if(!Oe(r,n)){return}o.rects={reference:me(r,bt(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],s=a.fn,f=a.options,l=f===void 0?{}:f,v=a.name;if(typeof s==="function"){o=s({state:o,options:l,name:v,instance:u})||o}}},update:we((function(){return new Promise((function(t){u.forceUpdate();t(o)}))})),destroy:function t(){l();c=true}};if(!Oe(e,r)){return u}u.setOptions(i).then((function(t){if(!c&&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:u,options:n});var c=function t(){};s.push(a||c)}}))}function l(){s.forEach((function(t){return t()}));s=[]}return u}}var ze=[Lt,le,St,$,ue,re,de,kt,oe];var Ae=ke({defaultModifiers:ze});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=Ee;var Me=t("bal_popover",function(){function t(t){e(this,t);this.balChange=a(this,"balChange",7);this.balWillAnimate=a(this,"balWillAnimate",7);this.balDidAnimate=a(this,"balDidAnimate",7);this.balPopoverPrepare=a(this,"balPopoverPrepare",7);this.popoverId="bal-po-".concat(Se++);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()};t.prototype.componentDidLoad=function(){var t=this;this.isInMainNav=this.footMobileNav!==null;if(this.triggerElement&&this.menuElement){this.popperInstance=Ae(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(d.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(d.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=c.block("popover");return r(n,{key:"997e5fefb0e6fe103b1732f084f8a7963eb319e5","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:"d5cb75c1951b9fe7cfd22ef86ee677461eecf5fc",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:"41482b0196b230235349f86cfb413cc8b35a8dad"}))};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([b("bal-popover"),s("design:type",Function),s("design:paramtypes",[Function]),s("design:returntype",void 0)],Me.prototype,"createLogger",null);o([h("balPopoverPrepare",{target:"document"}),s("design:type",Function),s("design:paramtypes",[CustomEvent]),s("design:returntype",void 0)],Me.prototype,"handlePopoverPrepare",null);o([h("click",{target:"document"}),s("design:type",Function),s("design:paramtypes",[UIEvent]),s("design:returntype",Promise)],Me.prototype,"clickOnOutside",null);o([h("keydown",{target:"window"}),s("design:type",Function),s("design:paramtypes",[KeyboardEvent]),s("design:returntype",void 0)],Me.prototype,"handleKeyUp",null);o([h("keyup",{target:"document"}),s("design:type",Function),s("design:paramtypes",[KeyboardEvent]),s("design:returntype",Promise)],Me.prototype,"tabOutside",null);o([v(),s("design:type",Function),s("design:paramtypes",[Object]),s("design:returntype",void 0)],Me.prototype,"breakpointListener",null);var Se=0;Me.style=Pe;var Ce=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(d.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(d.hasWindow){this.contentHeightOnTop=window.innerHeight-64}};t.prototype.render=function(){var t=c.block("popover").element("content");return r(n,{key:"c47c5a6aa96c52a4460894ab274a167be0927d35",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:"dec823beec17dfe48195c3e794dbcfe4725f83d4",class:Object.assign({},t.element("inner").class()),style:this.innerStyle},r("slot",{key:"d8200f831b8569736e27486fd5e975a0f21b76e2"})),r("div",{key:"5cd3727753fa2cf5a841c11b8d48aa7eee31cf2d",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([v(),s("design:type",Function),s("design:paramtypes",[Object]),s("design:returntype",void 0)],Ce.prototype,"breakpointListener",null)}}}));
|