@baloise/ds-core 19.9.3 → 19.9.4
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-accordion.js +0 -1
- package/components/bal-file-upload.js +5 -5
- package/components/index.js +1 -1
- package/components/swipe.subject.js +18 -0
- 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-ea9aa92049.entry.js → p-041bf35913.entry.js} +1 -1
- package/dist/baloise-design-system/{p-c47294e251.system.entry.js → p-1d8afd6f97.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-41a0556d46.entry.js → p-29d68d2132.entry.js} +1 -1
- package/dist/baloise-design-system/{p-ea38ac08ce.system.entry.js → p-353111ebe0.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-f647a73892.system.entry.js → p-36934c6f59.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-b585853436.system.entry.js → p-372ba2be28.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-818b880ec5.entry.js → p-3bb89f6a82.entry.js} +1 -1
- package/dist/baloise-design-system/{p-14475f12e8.entry.js → p-3c2762a456.entry.js} +1 -1
- package/dist/baloise-design-system/{p-3d9555be79.system.entry.js → p-47a709940f.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-370f98a376.entry.js → p-484747871b.entry.js} +1 -1
- package/dist/baloise-design-system/{p-239938cbc2.entry.js → p-495621ad03.entry.js} +1 -1
- package/dist/baloise-design-system/{p-BCtb7Ny9.system.js → p-4RgSLeC0.system.js} +1 -1
- package/dist/baloise-design-system/{p-14219e3845.entry.js → p-4f036f58ab.entry.js} +1 -1
- package/dist/baloise-design-system/{p-1e26da72e8.entry.js → p-50a9cbd963.entry.js} +1 -1
- package/dist/baloise-design-system/{p-8ea84ad7c7.entry.js → p-52c76f1bdd.entry.js} +1 -1
- package/dist/baloise-design-system/{p-83c6c17ed8.system.entry.js → p-608249b400.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-05221bf226.system.entry.js → p-6d9619c9d0.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-dd48a60d74.entry.js → p-72b37feadf.entry.js} +1 -1
- package/dist/baloise-design-system/{p-8bdcf69b1f.system.entry.js → p-813c277b9f.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-8346d5f6ae.entry.js +1 -0
- package/dist/baloise-design-system/{p-a5f3b37e21.system.entry.js → p-8f06689f6a.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-03852c362f.entry.js → p-9871800426.entry.js} +1 -1
- package/dist/baloise-design-system/{p-7eec8c7a78.system.entry.js → p-9bf6adbd21.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-B6GTvSSK.js +1 -0
- package/dist/baloise-design-system/p-BFRjY4w3.js +1 -1
- package/dist/baloise-design-system/p-BRAmUyPx.system.js +1 -1
- package/dist/baloise-design-system/{p-COFcDrAS.system.js → p-BhPUGxAx.system.js} +1 -1
- package/dist/baloise-design-system/p-Bk7UdnZ5.system.js +1 -1
- package/dist/baloise-design-system/{p-DUpGQx_U.system.js → p-CM1lc2ni.system.js} +1 -1
- package/dist/baloise-design-system/p-C_FHgwWW.js +1 -0
- package/dist/baloise-design-system/p-CviYHi5s.system.js +1 -0
- package/dist/baloise-design-system/{p-DlPc3plk.js → p-CwRoS0HB.js} +1 -1
- package/dist/baloise-design-system/{p-xlS5vO33.system.js → p-D5aEF_JU.system.js} +1 -1
- package/dist/baloise-design-system/{p-ZalPEZLa.js → p-DRqAN-8G.js} +1 -1
- package/dist/baloise-design-system/p-DwxDqMbM.system.js +1 -0
- package/dist/baloise-design-system/{p-ed56778833.system.entry.js → p-a0020dcf30.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-cef33e1117.entry.js → p-af292102b8.entry.js} +1 -1
- package/dist/baloise-design-system/{p-ee61799a11.system.entry.js → p-c900ad58d0.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-890c3ea355.system.entry.js → p-ccdbef8f33.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-01fdb2af3e.entry.js → p-d5de84380b.entry.js} +1 -1
- package/dist/baloise-design-system/{p-3bc249e38e.entry.js → p-e7a78b097d.entry.js} +1 -1
- package/dist/baloise-design-system/{p-9191e04f14.system.entry.js → p-f393662ba3.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-dd5caee1bb.system.entry.js → p-ff649f9b8a.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-CFZjZt-s.js → p-j8ENYrr7.js} +1 -1
- package/dist/cjs/bal-accordion_4.cjs.entry.js +0 -1
- package/dist/cjs/bal-carousel_2.cjs.entry.js +5 -5
- package/dist/cjs/bal-date-calendar_2.cjs.entry.js +2 -2
- package/dist/cjs/bal-field_5.cjs.entry.js +3 -3
- package/dist/cjs/bal-file-upload.cjs.entry.js +5 -5
- package/dist/cjs/bal-hint_5.cjs.entry.js +3 -3
- package/dist/cjs/bal-list_8.cjs.entry.js +3 -3
- package/dist/cjs/bal-logo.cjs.entry.js +3 -3
- package/dist/cjs/bal-nav_8.cjs.entry.js +3 -3
- package/dist/cjs/bal-navbar_5.cjs.entry.js +3 -3
- package/dist/cjs/bal-pagination.cjs.entry.js +3 -3
- package/dist/cjs/bal-progress-bar.cjs.entry.js +4 -4
- package/dist/cjs/bal-segment_2.cjs.entry.js +4 -4
- package/dist/cjs/bal-shape.cjs.entry.js +1 -1
- package/dist/cjs/bal-steps.cjs.entry.js +3 -3
- package/dist/cjs/bal-tab-item_2.cjs.entry.js +5 -5
- package/dist/cjs/{breakpoints.decorator-DVSgAJPa.js → breakpoints.decorator-DIeNdkiK.js} +1 -1
- package/dist/cjs/{breakpoints.subject-PPg53GM5.js → breakpoints.subject-YppJaklV.js} +1 -1
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/initialize-BzrcZo6Y.js +1 -1
- package/dist/cjs/{swipe.decorator-BZYUlkYt.js → swipe.decorator-C_jX7Il5.js} +1 -1
- package/dist/cjs/{swipe.subject-BaKNugDQ.js → swipe.subject-iyL-XVHG.js} +18 -0
- package/dist/cjs/{tokens.esm-B1kdQjzR.js → tokens.esm-CGjXTIYw.js} +1 -1
- package/dist/cjs/{window-resize.decorator-DHvgxiqB.js → window-resize.decorator-CnkxxD9I.js} +1 -1
- package/dist/collection/components/bal-accordion/bal-accordion.js +2 -6
- package/dist/collection/components/bal-file-upload/bal-file-upload.js +5 -5
- package/dist/collection/utils/constants/version.constant.js +1 -1
- package/dist/collection/utils/swipe/swipe.listener.js +19 -0
- package/dist/esm/bal-accordion_4.entry.js +0 -1
- package/dist/esm/bal-carousel_2.entry.js +5 -5
- package/dist/esm/bal-date-calendar_2.entry.js +2 -2
- package/dist/esm/bal-field_5.entry.js +3 -3
- package/dist/esm/bal-file-upload.entry.js +5 -5
- package/dist/esm/bal-hint_5.entry.js +3 -3
- package/dist/esm/bal-list_8.entry.js +3 -3
- package/dist/esm/bal-logo.entry.js +3 -3
- package/dist/esm/bal-nav_8.entry.js +3 -3
- package/dist/esm/bal-navbar_5.entry.js +3 -3
- package/dist/esm/bal-pagination.entry.js +3 -3
- package/dist/esm/bal-progress-bar.entry.js +4 -4
- package/dist/esm/bal-segment_2.entry.js +4 -4
- package/dist/esm/bal-shape.entry.js +1 -1
- package/dist/esm/bal-steps.entry.js +3 -3
- package/dist/esm/bal-tab-item_2.entry.js +5 -5
- package/dist/esm/{breakpoints.decorator-CJwbnRPE.js → breakpoints.decorator-CLJL1mrw.js} +1 -1
- package/dist/esm/{breakpoints.subject-CKmK7JA0.js → breakpoints.subject-CaVH5CdH.js} +1 -1
- package/dist/esm/index.js +4 -4
- package/dist/esm/initialize-W3od-FM9.js +1 -1
- package/dist/esm/{swipe.decorator-B_Ghrp1o.js → swipe.decorator-B-pmjyNr.js} +1 -1
- package/dist/esm/{swipe.subject-T0VStuOK.js → swipe.subject-BXuaiulg.js} +18 -0
- package/dist/esm/{tokens.esm-DTyLTqMF.js → tokens.esm-PSBwy3yf.js} +1 -1
- package/dist/esm/{window-resize.decorator-xoiS5CvH.js → window-resize.decorator-B6C5v87J.js} +1 -1
- package/dist/esm-es5/bal-carousel_2.entry.js +1 -1
- package/dist/esm-es5/bal-date-calendar_2.entry.js +1 -1
- package/dist/esm-es5/bal-field_5.entry.js +1 -1
- package/dist/esm-es5/bal-file-upload.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-segment_2.entry.js +1 -1
- package/dist/esm-es5/bal-shape.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-CJwbnRPE.js → breakpoints.decorator-CLJL1mrw.js} +1 -1
- package/dist/esm-es5/{breakpoints.subject-CKmK7JA0.js → breakpoints.subject-CaVH5CdH.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/initialize-W3od-FM9.js +1 -1
- package/dist/esm-es5/{swipe.decorator-B_Ghrp1o.js → swipe.decorator-B-pmjyNr.js} +1 -1
- package/dist/esm-es5/swipe.subject-BXuaiulg.js +1 -0
- package/dist/esm-es5/{window-resize.decorator-xoiS5CvH.js → window-resize.decorator-B6C5v87J.js} +1 -1
- package/dist/html.html-data.json +4 -0
- package/dist/types/components/bal-accordion/bal-accordion.d.ts +0 -1
- package/dist/types/components.d.ts +6 -0
- package/dist/types/utils/swipe/swipe.listener.d.ts +1 -0
- package/package.json +6 -6
- package/dist/baloise-design-system/p-0g14KuPx.system.js +0 -1
- package/dist/baloise-design-system/p-CHTPLy3W.system.js +0 -1
- package/dist/baloise-design-system/p-CeIZ5hSt.js +0 -1
- package/dist/baloise-design-system/p-TGlXe_VY.js +0 -1
- package/dist/baloise-design-system/p-fb2960c1b6.entry.js +0 -1
- package/dist/esm-es5/swipe.subject-T0VStuOK.js +0 -1
- /package/dist/baloise-design-system/{p-68c75901a4.system.entry.js → p-67f2a7fbef.system.entry.js} +0 -0
- /package/dist/baloise-design-system/{p-7563a0a66d.entry.js → p-692f76ee0c.entry.js} +0 -0
- /package/dist/baloise-design-system/{p-1D6CbirM.system.js → p-BJHY1rVR.system.js} +0 -0
- /package/dist/baloise-design-system/{p-DTyLTqMF.js → p-PSBwy3yf.js} +0 -0
- /package/dist/esm-es5/{tokens.esm-DTyLTqMF.js → tokens.esm-PSBwy3yf.js} +0 -0
|
@@ -240,7 +240,7 @@ const FileUpload = /*@__PURE__*/ proxyCustomElement(class FileUpload extends HTM
|
|
|
240
240
|
maxFiles: this.maxFiles,
|
|
241
241
|
});
|
|
242
242
|
if (validatedFiles.invalidFiles.length > 0) {
|
|
243
|
-
this.balRejectedFile.emit(
|
|
243
|
+
validatedFiles.invalidFiles.forEach(file => this.balRejectedFile.emit(file));
|
|
244
244
|
}
|
|
245
245
|
if (validatedFiles.validFiles.length > 0) {
|
|
246
246
|
this.files = [...this.files, ...validatedFiles.validFiles];
|
|
@@ -384,16 +384,16 @@ const FileUpload = /*@__PURE__*/ proxyCustomElement(class FileUpload extends HTM
|
|
|
384
384
|
*/
|
|
385
385
|
render() {
|
|
386
386
|
const id = this.ariaForm.controlId || this.fileUploadId;
|
|
387
|
-
return (h(Host, { key: '
|
|
387
|
+
return (h(Host, { key: '777b6af9407be7027865f204a05be3b51977a8a7', onClick: this.onHostClick, "aria-disabled": ariaBooleanToString(this.disabled), class: {
|
|
388
388
|
'bal-file-upload': true,
|
|
389
|
-
} }, h("div", { key: '
|
|
389
|
+
} }, h("div", { key: 'a5a40cd9aa548183c4f0feaab16a30ac504da6c7', class: {
|
|
390
390
|
'file': true,
|
|
391
391
|
'is-disabled': this.disabled || this.readonly || this.loading,
|
|
392
392
|
'is-danger': this.invalid,
|
|
393
|
-
} }, h("label", { key: '
|
|
393
|
+
} }, h("label", { key: 'ed88786390952890387e357fd8d7f8e6a356fb02', htmlFor: id, ref: el => (this.labelEl = el), class: {
|
|
394
394
|
'file-label': true,
|
|
395
395
|
'is-disabled': this.disabled || this.loading || this.readonly,
|
|
396
|
-
} }, h("input", { key: '
|
|
396
|
+
} }, h("input", { key: '79bcf9f330b894a80dbe44b30b99bb631aad9f6f', class: "file-input", type: "file", id: id, "aria-labelledby": this.ariaForm.labelId, "aria-describedby": this.ariaForm.messageId, "aria-invalid": this.invalid === true ? 'true' : 'false', "aria-disabled": ariaBooleanToString(this.disabled), name: this.name, multiple: this.multiple, disabled: this.disabled || this.loading || this.readonly, readonly: this.readonly, required: this.required, accept: this.accept, onClick: this.onInputClick, onChange: this.onInputChange, onFocus: this.onInputFocus, onBlur: this.onInputBlur, ref: el => (this.nativeInput = el), "data-testid": "bal-file-upload-input" }), this.loading ? (h("span", { class: "file-cta" }, h("bal-spinner", null))) : (h("span", { class: "file-cta" }, h("span", { class: "file-icon" }, h("bal-icon", { name: "upload", size: "medium", color: this.disabled || this.loading || this.readonly ? 'grey-light' : this.invalid ? 'danger' : 'blue' })), h("span", { class: "file-label", "data-testid": "bal-file-upload-label" }, this.label))))), this.hasFileList && this.files.length > 0 ? (h(FileListComponent, { files: this.files, disabled: this.disabled || this.readonly || this.loading, subTitle: this.subTitle, onRemoveFile: this.onRemoveFile })) : ('')));
|
|
397
397
|
}
|
|
398
398
|
get el() { return this; }
|
|
399
399
|
static get watchers() { return {
|
package/components/index.js
CHANGED
|
@@ -476,7 +476,7 @@ const tags = [
|
|
|
476
476
|
];
|
|
477
477
|
|
|
478
478
|
// generated by .build/version.js
|
|
479
|
-
const VERSION = '19.9.
|
|
479
|
+
const VERSION = '19.9.4';
|
|
480
480
|
|
|
481
481
|
const initializeBaloiseDesignSystem = (userConfig = {}, platformConfig = undefined, win = {}) => {
|
|
482
482
|
if (Object.keys(win).length === 0 && balBrowser.hasWindow) {
|
|
@@ -8,12 +8,30 @@ class BalSwipeListener extends ListenerAbstract {
|
|
|
8
8
|
await this.loadLib();
|
|
9
9
|
if (this.PointerListenerLib) {
|
|
10
10
|
this.pointerListener = new this.PointerListenerLib(el, { handleTouchEvents: false });
|
|
11
|
+
// contactjs calls setPointerCapture on the event target in its onPointerDown handler.
|
|
12
|
+
// When a pointerdown originates inside a shadow DOM component, the browser retargets
|
|
13
|
+
// the event so the target appears as the shadow host element (e.g. bal-date-calendar).
|
|
14
|
+
// This causes pointer capture to be set on the shadow host, which redirects pointerup
|
|
15
|
+
// away from the actual element inside the shadow DOM, preventing the click event from
|
|
16
|
+
// being dispatched on the intended target (e.g. bal-date-calendar-cell).
|
|
17
|
+
// Fix: release pointer capture from shadow host elements immediately after contactjs sets it.
|
|
18
|
+
this.shadowFixPointerDownListener = (ev) => {
|
|
19
|
+
const target = ev.target;
|
|
20
|
+
if (target && target !== el && target.shadowRoot) {
|
|
21
|
+
target.releasePointerCapture(ev.pointerId);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
el.addEventListener('pointerdown', this.shadowFixPointerDownListener);
|
|
11
25
|
this.pointerListener.on('swipeleft', () => this.notify({ left: true, right: false }));
|
|
12
26
|
this.pointerListener.on('swiperight', () => this.notify({ left: false, right: true }));
|
|
13
27
|
}
|
|
14
28
|
}
|
|
15
29
|
disconnect() {
|
|
16
30
|
var _a;
|
|
31
|
+
if (this.shadowFixPointerDownListener && this.el) {
|
|
32
|
+
this.el.removeEventListener('pointerdown', this.shadowFixPointerDownListener);
|
|
33
|
+
this.shadowFixPointerDownListener = undefined;
|
|
34
|
+
}
|
|
17
35
|
super.disconnect();
|
|
18
36
|
(_a = this.pointerListener) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
19
37
|
}
|
package/components/tokens.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as a}from"./p-BdVwMG9u.js";export{s as setNonce}from"./p-BdVwMG9u.js";import{g as l}from"./p-CKN3W8qn.js";import"./p-BFRjY4w3.js";import"./p-B1u-Mq75.js";import"./p-Ba5qjFjW.js";import"./p-D7M-7v58.js";import"./p-CBkFUwrD.js";import"./p-D7ovid3w.js";(()=>{const a=import.meta.url,l={};return""!==a&&(l.resourcesUrl=new URL(".",a).href),e(l)})().then((async e=>(await l(),a(JSON.parse('[["p-8ea84ad7c7",[[262,"bal-field-hint",{"hideTitleOnDesktop":[4,"hide-title-on-desktop"],"subject":[1],"closeLabel":[1,"close-label"],"small":[4],"isDesktop":[32]}],[262,"bal-field-control",{"iconRight":[1,"icon-right"],"iconLeft":[1,"icon-left"],"expandedOnMobile":[4,"expanded-on-mobile"],"loading":[4]}],[262,"bal-field-label",{"htmlFor":[1,"html-for"],"required":[4],"valid":[4],"invalid":[4],"disabled":[4],"readonly":[4],"size":[1],"weight":[1]}],[260,"bal-field",{"required":[4],"horizontal":[4],"invalid":[4],"valid":[4],"disabled":[4],"readonly":[4],"loading":[4]},null,{"required":["requiredHandler"],"invalid":["invalidHandler"],"valid":["validHandler"],"disabled":["disabledHandler"],"readonly":["readonlyHandler"],"loading":["loadingHandler"]}],[260,"bal-field-message",{"color":[1],"invalid":[4],"valid":[4],"disabled":[4],"readonly":[4],"noReservedSpace":[4,"no-reserved-space"],"ariaForm":[32],"setAriaForm":[64]}]]],["p-7563a0a66d",[[260,"bal-accordion",{"active":[1540],"debounce":[2],"openLabel":[1,"open-label"],"openIcon":[1,"open-icon"],"closeLabel":[1,"close-label"],"closeIcon":[1,"close-icon"],"card":[4],"version":[2],"state":[32],"animated":[32],"configChanged":[64],"present":[64],"dismiss":[64],"toggle":[64],"humanToggle":[64]},null,{"active":["activeChanged"],"debounce":["debounceChanged"]}],[256,"bal-accordion-trigger",{"button":[4],"variant":[1],"expanded":[4],"openLabel":[1,"open-label"],"openIcon":[1,"open-icon"],"closeLabel":[1,"close-label"],"closeIcon":[1,"close-icon"],"color":[1],"size":[1],"active":[1540],"state":[2],"parentAccordionId":[32],"language":[32],"configChanged":[64]}],[260,"bal-accordion-details",{"state":[2],"active":[4],"animated":[4],"parentAccordionId":[32]}],[256,"bal-accordion-summary",{"trigger":[4],"active":[1540],"state":[2],"parentAccordionId":[32]}]]],["p-eeff81381f",[[260,"bal-snackbar",{"color":[1],"duration":[2],"subject":[1],"message":[1],"icon":[1],"action":[1],"closeHandler":[16],"actionHandler":[16],"href":[1],"target":[1],"closeIn":[64],"close":[64]}],[260,"bal-toast",{"color":[1],"duration":[2],"closable":[4],"message":[1],"closeHandler":[16],"closeIn":[64],"close":[64]}],[260,"bal-notices",{"animated":[4],"interface":[1],"container":[1]}]]],["p-0974dcb139",[[256,"bal-date",{"name":[1],"invalid":[4],"required":[4],"disabled":[4],"readonly":[4],"freeSolo":[4,"free-solo"],"placeholder":[1],"triggerIcon":[4,"trigger-icon"],"closeOnSelect":[4,"close-on-select"],"autocomplete":[1],"value":[1025],"min":[1025],"max":[1025],"minYearProp":[2,"min-year"],"maxYearProp":[2,"max-year"],"defaultDate":[1,"default-date"],"allowedDates":[16],"allowInvalidValue":[4,"allow-invalid-value"],"debounce":[2],"autoInvalidOff":[516,"auto-invalid-off"],"isKeyboardMode":[32],"hasFocus":[32],"isExpanded":[32],"language":[32],"calendarValue":[32],"ariaForm":[32],"configChanged":[64],"open":[64],"close":[64],"toggle":[64],"select":[64],"setFocus":[64],"setBlur":[64],"getInputElement":[64],"setAriaForm":[64]},null,{"value":["valueChanged"],"debounce":["debounceChanged"]}]]],["p-370f98a376",[[260,"bal-navbar-brand",{"href":[1],"rel":[1],"logoClickable":[4,"logo-clickable"],"logoLabel":[1,"logo-label"],"target":[1],"simple":[4],"logo":[1],"logoSize":[1,"logo-size"],"animated":[4],"interface":[1],"language":[32],"isMenuActive":[32],"configChanged":[64],"toggle":[64]}],[260,"bal-navbar",{"light":[4],"interface":[1],"container":[1],"toggleMenu":[64]},null,{"interface":["interfaceHandler"]}],[260,"bal-navbar-menu",{"interface":[1],"isMenuActive":[32],"isTouch":[32],"toggle":[64]}],[260,"bal-navbar-menu-end",{"interface":[1]}],[260,"bal-navbar-menu-start",{"interface":[1]}]]],["p-dd48a60d74",[[260,"bal-segment-item",{"disabled":[1028],"invalid":[1028],"focused":[1028],"checked":[1028],"label":[1],"value":[1032],"hasSlotContent":[32],"isFocusable":[32],"isVertical":[32],"isLast":[32],"isFirst":[32],"hasEmptyValue":[32],"ariaForm":[32],"setFocus":[64],"setAriaForm":[64]},null,{"value":["valueChanged"]}],[260,"bal-segment",{"invalid":[4],"autoInvalidOff":[516,"auto-invalid-off"],"disabled":[4],"vertical":[4],"scrollable":[4],"expanded":[4],"value":[1032],"focusedValue":[32],"keyboardMode":[32],"isVertical":[32],"isMobile":[32],"maxWidth":[32],"ariaForm":[32],"setAriaForm":[64]},[[4,"keydown","listenOnKeyDownOutside"],[0,"keydown","listenOnKeyDown"]],{"invalid":["invalidChanged"],"disabled":["disabledChanged"],"value":["valueChanged"]}]]],["p-ea29fa4382",[[260,"bal-data-value",{"editable":[4],"disabled":[4],"multiline":[4]}],[260,"bal-data",{"border":[4],"horizontal":[4]},null,{"border":["borderHandler"]}],[260,"bal-data-item",{"disabled":[4],"border":[4]}],[260,"bal-data-label",{"required":[4]}]]],["p-ce3e34fa95",[[260,"bal-modal-header"],[260,"bal-modal",{"overlayIndex":[1026,"overlay-index"],"delegate":[16],"dataTestId":[1,"data-test-id"],"modalWidth":[2,"modal-width"],"space":[1],"hasBackdrop":[4,"has-backdrop"],"isClosable":[4,"is-closable"],"component":[1],"componentProps":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"focusTrap":[4,"focus-trap"],"demo":[4],"presented":[32],"open":[64],"close":[64],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},[[0,"click","onClickCloseButton"],[1,"mousedown","onMouseDown"],[1,"mouseup","onMouseUp"],[4,"keyup","handleKeyUp"]]],[260,"bal-modal-body"]]],["p-b13d48cf28",[[256,"bal-input-stepper",{"name":[1],"min":[2],"max":[2],"steps":[2],"disabled":[4],"readonly":[4],"invalid":[4],"debounce":[2],"value":[1026],"autoInvalidOff":[516,"auto-invalid-off"],"focused":[32],"language":[32],"region":[32],"ariaForm":[32],"configChanged":[64],"getInputElement":[64],"setAriaForm":[64]},[[6,"click","listenOnClick"],[6,"reset","resetHandler"]],{"debounce":["debounceChanged"]}]]],["p-49c12d2474",[[260,"bal-stage",{"containerSize":[1,"container-size"],"size":[1],"color":[1],"shape":[4],"shapeVariation":[1,"shape-variation"],"shapeRotation":[1,"shape-rotation"]}],[260,"bal-stage-back-link",{"href":[1],"rel":[1],"shadow":[4],"inverted":[4]}],[260,"bal-stage-body"],[260,"bal-stage-foot"],[260,"bal-stage-head"],[256,"bal-stage-image",{"srcSet":[1,"src-set"],"fallback":[1],"isOnLoadEventDone":[32]}]]],["p-03852c362f",[[260,"bal-carousel",{"value":[1026],"steps":[2],"itemsPerView":[8,"items-per-view"],"controls":[1],"space":[1],"htmlRole":[1,"html-role"],"controlsOverflow":[4,"controls-overflow"],"inverted":[4],"fullHeight":[4,"full-height"],"aspectRatio":[1,"aspect-ratio"],"interface":[1],"controlsSticky":[4,"controls-sticky"],"scrollY":[4,"scroll-y"],"border":[4],"hasAnimated":[32],"isMobile":[32],"language":[32],"configChanged":[64],"previous":[64],"next":[64],"getContainerId":[64]},[[8,"touchmove","blockVerticalScrolling"]],{"value":["onValueChange"],"steps":["onStepsChange"],"itemsPerView":["onItemsPerViewChange"],"controls":["onControlsChange"],"space":["onSpaceChange"],"interface":["onInterFaceChange"]}],[260,"bal-carousel-item",{"src":[513],"label":[513],"svg":[1],"htmlRole":[1,"html-role"],"elementType":[1,"element-type"],"name":[513],"value":[520],"href":[1],"target":[1],"rel":[1],"download":[1],"color":[1],"isOnLoadEventDone":[32],"containerId":[32],"svgContent":[32],"setFocus":[64]},null,{"svg":["svgChanged"]}]]],["p-02323ca1fe",[[260,"bal-footer",{"logoHref":[1,"logo-href"],"logoSvg":[1,"logo-svg"],"hideLinks":[4,"hide-links"],"overrideLinks":[16],"showSocialMedia":[4,"show-social-media"],"hideLanguageSelection":[4,"hide-language-selection"],"logoSvgContent":[32],"links":[32],"socialMediaLinks":[32],"language":[32],"region":[32],"allowedLanguages":[32],"configChanged":[64]},null,{"logoSvg":["logoSvgChanged"]}]]],["p-4be902176f",[[256,"bal-time-input",{"name":[1],"invalid":[4],"required":[4],"disabled":[4],"readonly":[4],"debounce":[2],"value":[1025],"autoInvalidOff":[516,"auto-invalid-off"],"focused":[32],"language":[32],"region":[32],"ariaForm":[32],"configChanged":[64],"setFocus":[64],"setBlur":[64],"getInputElement":[64],"setAriaForm":[64]},[[6,"click","listenOnClick"],[6,"reset","resetHandler"]],{"debounce":["debounceChanged"]}]]],["p-41a0556d46",[[260,"bal-steps",{"options":[16],"clickable":[4],"color":[1],"debounce":[2],"value":[1025],"store":[32],"isMobile":[32],"select":[64],"getOptionByValue":[64]},null,{"options":["optionChanged"],"debounce":["debounceChanged"],"value":["valueChanged"]}]]],["p-5965694a0f",[[256,"bal-switch",{"checked":[1028],"invalid":[4],"disabled":[4],"hovered":[4],"pressed":[4]}]]],["p-340cd7b9e8",[[257,"bal-tooltip",{"reference":[1],"placement":[1],"offset":[2],"demo":[4],"contentWidth":[2,"content-width"],"presented":[32],"present":[64],"dismiss":[64],"update":[64]},null,{"contentWidth":["contentWidthChanged"]}]]],["p-ddd75e43d6",[[260,"bal-form-col",{"size":[1]}],[260,"bal-form-grid"]]],["p-1b1fdadab3",[[260,"bal-app",{"animated":[516],"ready":[1540],"setFocus":[64]}]]],["p-08644e325b",[[260,"bal-divider",{"layout":[1],"space":[1],"color":[1],"borderStyle":[1,"border-style"]}]]],["p-ed1aad24be",[[260,"bal-form",{"native":[4],"novalidate":[4],"formClass":[1,"form-class"],"scrollToFirstInvalidField":[64]}]]],["p-b4fa55782e",[[256,"bal-input",{"name":[1],"invalid":[4],"textAlign":[1,"text-align"],"type":[1],"accept":[1],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"autofocus":[4],"debounce":[2],"placeholder":[1],"max":[1],"maxLength":[2,"max-length"],"min":[1],"minLength":[2,"min-length"],"multiple":[4],"pattern":[1],"allowedKeyPress":[1,"allowed-key-press"],"required":[4],"spellcheck":[4],"disabled":[4],"readonly":[4],"clickable":[4],"suffix":[1],"hasIconRight":[4,"has-icon-right"],"inputmode":[1],"value":[1537],"mask":[1],"autoInvalidOff":[516,"auto-invalid-off"],"focused":[32],"ariaForm":[32],"setFocus":[64],"setBlur":[64],"getInputElement":[64],"setAriaForm":[64]},[[6,"click","listenOnClick"],[6,"reset","resetHandler"]],{"debounce":["debounceChanged"]}]]],["p-ee070d06bc",[[256,"bal-input-slider",{"name":[1],"step":[2],"min":[2],"max":[2],"invalid":[4],"balTabindex":[2,"bal-tabindex"],"disabled":[4],"readonly":[4],"required":[4],"hasTicks":[4,"has-ticks"],"debounce":[2],"value":[1032],"autoInvalidOff":[516,"auto-invalid-off"],"ariaForm":[32],"setFocus":[64],"getInputElement":[64],"setAriaForm":[64]},[[6,"click","listenOnClick"],[6,"reset","resetHandler"]],{"debounce":["debounceChanged"],"value":["valueChanged"]}]]],["p-3678c7a958",[[260,"bal-notification",{"color":[1],"light":[4],"noIcon":[4,"no-icon"]}]]],["p-54f5a92feb",[[256,"bal-number-input",{"name":[1],"invalid":[4],"decimal":[2],"onlyPositive":[4,"only-positive"],"suffix":[1],"pattern":[1],"placeholder":[1],"required":[4],"disabled":[4],"readonly":[4],"exactNumber":[4,"exact-number"],"max":[1],"min":[1],"debounce":[2],"value":[1032],"autoInvalidOff":[516,"auto-invalid-off"],"focused":[32],"language":[32],"region":[32],"ariaForm":[32],"nativeInputValue":[32],"inputPattern":[32],"configChanged":[64],"setFocus":[64],"setBlur":[64],"getInputElement":[64],"setAriaForm":[64]},[[6,"click","listenOnClick"],[6,"reset","resetHandler"]],{"debounce":["debounceChanged"],"value":["valueChanged"]}]]],["p-1e26da72e8",[[256,"bal-progress-bar",{"value":[2],"background":[1],"color":[1],"configChanged":[64]}]]],["p-a584c6763e",[[260,"bal-sheet",{"containerSize":[1,"container-size"]}]]],["p-def5a43710",[[260,"bal-step-item",{"active":[516],"value":[513],"label":[513],"href":[513],"rel":[1],"target":[1],"disabled":[516],"done":[516],"invisible":[516],"failed":[516],"prevent":[4],"isActive":[32],"getOptions":[64],"setActive":[64]}]]],["p-34d75cbfe8",[[260,"bal-table",{"expanded":[4]}]]],["p-07b3561d34",[[260,"bal-textarea",{"name":[1],"invalid":[4],"autocapitalize":[1],"autocomplete":[1],"autofocus":[4],"debounce":[2],"placeholder":[1],"maxLength":[2,"max-length"],"minLength":[2,"min-length"],"disabled":[4],"readonly":[4],"cols":[2],"rows":[2],"wrap":[1],"required":[4],"clickable":[4],"inputmode":[1],"value":[1025],"autoInvalidOff":[516,"auto-invalid-off"],"focused":[32],"ariaForm":[32],"setFocus":[64],"setBlur":[64],"getInputElement":[64],"setAriaForm":[64]},[[6,"click","listenOnClick"],[6,"reset","resetHandler"]],{"debounce":["debounceChanged"]}]]],["p-2264ba1f28",[[260,"bal-content",{"layout":[1],"align":[1],"space":[1],"direction":[1],"alignment":[1]}]]],["p-3bc249e38e",[[256,"bal-shape",{"variation":[1],"color":[1],"rotation":[1]}]]],["p-a1482cbe4a",[[260,"bal-popup",{"label":[1],"reference":[1],"variant":[1],"placement":[1],"arrow":[4],"backdrop":[4],"offset":[2],"closable":[4],"backdropDismiss":[4,"backdrop-dismiss"],"active":[4],"contentWidth":[2,"content-width"],"demo":[4],"activeClosable":[32],"activeBackdropDismiss":[32],"activeVariant":[32],"trigger":[32],"lastTrigger":[32],"minContainerWidth":[32],"presented":[32],"present":[64],"dismiss":[64],"toggle":[64],"setMinWidth":[64],"_emitChange":[64],"_present":[64],"_dismiss":[64]},[[8,"click","listenOnGlobalClick"],[4,"keydown","listenOnKeyDown"],[1,"mousedown","listenOnMouseDown"],[1,"mouseup","listenOnMouseUp"],[0,"click","listenOnComponentClick"]],{"variant":["variantChanged"],"active":["activeChanged"],"contentWidth":["contentWidthChanged"]}]]],["p-a576422cb2",[[260,"bal-input-group",{"invalid":[4],"disabled":[4],"readonly":[4]}]]],["p-cef33e1117",[[256,"bal-logo",{"color":[1],"size":[1],"brand":[1],"animated":[4],"isTouch":[32],"doesConfigAllowAnimation":[32],"configBrand":[32]},null,{"animated":["animatedWatcher"]}]]],["p-d5365ffe38",[[260,"bal-text",{"size":[1],"heading":[4],"noWrap":[4,"no-wrap"],"bold":[4],"inline":[4],"color":[1],"space":[1],"inverted":[4],"shadow":[4],"disabled":[4],"invalid":[4],"hovered":[4],"pressed":[4]}],[260,"bal-heading",{"level":[1],"visualLevel":[1,"visual-level"],"autoLevel":[1,"auto-level"],"noWrap":[4,"no-wrap"],"subtitle":[4],"space":[1],"color":[1],"inverted":[4],"shadow":[4],"autoFontSize":[32]},null,{"level":["levelWatcher"],"visualLevel":["visualLevelWatcher"],"autoLevel":["autoLevelWatcher"]}]]],["p-a3c4c9d422",[[256,"bal-spinner",{"inverted":[4],"deactivated":[4],"color":[1],"small":[4],"variation":[1],"animated":[32]},null,{"deactivated":["deactivatedWatcher"],"variation":["variationWatcher"]}]]],["p-79d0e94ea1",[[256,"bal-icon",{"name":[1537],"svg":[1],"size":[1],"color":[1],"colorHovered":[1,"color-hovered"],"colorPressed":[1,"color-pressed"],"tile":[4],"tileColor":[1,"tile-color"],"inline":[4],"inverted":[4],"turn":[4],"shadow":[4],"disabled":[4],"invalid":[4],"hovered":[4],"pressed":[4],"icons":[32],"svgContent":[32],"innerColor":[32],"innerSize":[32],"configChanged":[64]}]]],["p-fb2960c1b6",[[256,"bal-file-upload",{"name":[1],"value":[16],"label":[1],"multiple":[4],"disabled":[4],"readonly":[4],"loading":[4],"required":[4],"accept":[1],"maxFiles":[2,"max-files"],"maxFileSize":[2,"max-file-size"],"maxBundleSize":[2,"max-bundle-size"],"hasFileList":[4,"has-file-list"],"invalid":[4],"subTitle":[16],"autoInvalidOff":[516,"auto-invalid-off"],"files":[32],"focused":[32],"ariaForm":[32],"clear":[64],"setFocus":[64],"setBlur":[64],"getInputElement":[64],"setAriaForm":[64]},[[6,"reset","resetHandler"]],{"value":["onValueChange"]}]]],["p-239938cbc2",[[256,"bal-pagination",{"align":[1],"size":[1],"interface":[1],"disabled":[4],"value":[2],"totalPages":[2,"total-pages"],"pageRange":[2,"page-range"],"sticky":[4],"top":[2],"_value":[32],"isMobile":[32],"language":[32],"next":[64],"previous":[64],"configChanged":[64]},null,{"value":["valueChanged"],"top":["topValueChanged"]}]]],["p-627def5e99",[[260,"bal-radio-group",{"options":[16],"interface":[1],"allowEmptySelection":[4,"allow-empty-selection"],"name":[1],"vertical":[4],"verticalOnMobile":[4,"vertical-on-mobile"],"expanded":[4],"invalid":[4],"disabled":[4],"readonly":[4],"value":[1032],"columns":[2],"columnsTablet":[2,"columns-tablet"],"columnsMobile":[2,"columns-mobile"],"autoInvalidOff":[516,"auto-invalid-off"],"ariaForm":[32],"setValue":[64],"getOptionByValue":[64],"setAriaForm":[64]},[[6,"balChange","listenOnClick"],[6,"balFocus","radioFocusListener"],[6,"balBlur","radioBlurListener"],[6,"reset","resetListener"],[4,"keydown","onKeydown"]],{"options":["optionChanged"],"invalid":["invalidChanged"],"disabled":["disabledChanged"],"readonly":["readonlyChanged"],"value":["valueChanged"],"columns":["columnsChanged"],"columnsTablet":["columnsTabletChanged"],"columnsMobile":["columnsMobileChanged"]}],[260,"bal-radio",{"name":[1],"value":[8],"label":[1],"labelHidden":[4,"label-hidden"],"flat":[4],"interface":[1],"disabled":[4],"readonly":[4],"required":[4],"nonSubmit":[4,"non-submit"],"invalid":[4],"hovered":[4],"pressed":[4],"color":[1],"colSize":[2,"col-size"],"colSizeTablet":[2,"col-size-tablet"],"colSizeMobile":[2,"col-size-mobile"],"wasFocused":[32],"checked":[32],"focused":[32],"buttonTabindex":[32],"ariaForm":[32],"mergedElementState":[32],"setFocus":[64],"setBlur":[64],"setButtonTabindex":[64],"getInputElement":[64],"getOption":[64],"updateState":[64],"setAriaForm":[64]},[[6,"click","listenOnClick"]],{"hovered":["hoveredChanged"],"pressed":["pressedChanged"]}]]],["p-ea9aa92049",[[257,"bal-date-calendar",{"value":[1],"defaultDate":[1,"default-date"],"allowedDates":[16],"min":[1025],"max":[1025],"minYearProp":[2,"min-year"],"maxYearProp":[2,"max-year"],"selectedDate":[32],"monthFullNames":[32],"weekdays":[32],"months":[32],"years":[32],"calendarGrid":[32],"firstDayOfWeek":[32],"month":[32],"year":[32],"language":[32],"isCalendarVisible":[32],"isYearListVisible":[32],"isMonthListVisible":[32],"configChanged":[64]},null,{"value":["valueChanged"],"min":["rangePropChanged"],"max":["rangePropChanged"],"minYearProp":["yearRangePropChanged"],"maxYearProp":["yearRangePropChanged"]}],[256,"bal-input-date",{"name":[1],"invalid":[4],"required":[4],"disabled":[4],"readonly":[4],"placeholder":[1],"clickable":[4],"min":[1025],"max":[1025],"autocomplete":[1],"hasIconRight":[4,"has-icon-right"],"value":[1025],"autoInvalidOff":[516,"auto-invalid-off"],"allowInvalidValue":[4,"allow-invalid-value"],"focused":[32],"isGrouped":[32],"ariaForm":[32],"configChanged":[64],"setFocus":[64],"setBlur":[64],"getInputElement":[64],"setAriaForm":[64]},[[6,"reset","resetHandler"],[6,"click","listenOnClick"]],{"value":["valueChanged"]}]]],["p-23537928fa",[[260,"bal-badge",{"icon":[1],"size":[1],"color":[1],"position":[1]}]]],["p-f7b16f08ab",[[256,"bal-check",{"checked":[1028],"invalid":[4],"disabled":[4],"inverted":[4],"hovered":[4],"pressed":[4]}]]],["p-85428cc869",[[256,"bal-date-calendar-cell",{"day":[2],"month":[2],"year":[2],"isoDate":[1,"iso-date"],"fullDate":[1,"full-date"],"selected":[4],"today":[4],"disabled":[4]}]]],["p-4b2eeb8c37",[[260,"bal-label",{"htmlFor":[1,"html-for"],"htmlId":[1,"html-id"],"required":[4],"noWrap":[4,"no-wrap"],"multiline":[4],"valid":[4],"invalid":[4],"disabled":[4],"readonly":[4],"size":[1],"weight":[1],"hovered":[4],"pressed":[4],"language":[32],"region":[32],"ariaForm":[32],"configChanged":[64],"setAriaForm":[64]}]]],["p-f217ad88a9",[[256,"bal-radio-icon",{"checked":[1028],"invalid":[4],"disabled":[4],"inverted":[4],"hovered":[4],"pressed":[4]}]]],["p-b66021b38c",[[260,"bal-card-button",{"icon":[1],"elementType":[1,"element-type"],"disabled":[516],"href":[1],"target":[1],"rel":[1],"iconRight":[1,"icon-right"],"loading":[4]}],[260,"bal-card-actions",{"position":[1]}],[260,"bal-card-title",{"inverted":[4]}],[260,"bal-card-subtitle",{"inverted":[4],"bold":[4],"color":[1]}],[260,"bal-card-content"],[260,"bal-card",{"border":[4],"flat":[4],"square":[4],"inverted":[4],"clickable":[4],"selected":[4],"fullheight":[4],"space":[1],"color":[1]}]]],["p-7b52e9987d",[[256,"bal-close",{"size":[1],"inverted":[4],"language":[32],"region":[32],"configChanged":[64]}]]],["p-f2222919fc",[[260,"bal-tag-group"],[260,"bal-tag",{"color":[1],"size":[1],"closable":[4],"invalid":[4],"disabled":[4],"position":[1],"light":[4],"transparent":[4]}]]],["p-fc9a46b295",[[260,"bal-dropdown",{"autocomplete":[1],"name":[1],"placeholder":[1],"inlineLabel":[1,"inline-label"],"icon":[1],"size":[1],"theme":[1],"disabled":[4],"readonly":[4],"multiple":[4],"chips":[4],"clearable":[4],"invalid":[4],"required":[4],"loading":[4],"filter":[1],"contentHeight":[2,"content-height"],"inverted":[4],"options":[16],"value":[1],"rawOptions":[32],"choices":[32],"rawValue":[32],"hasFocus":[32],"isExpanded":[32],"isAutoFilled":[32],"isKeyboardMode":[32],"inputLabel":[32],"ariaForm":[32],"language":[32],"region":[32],"httpFormSubmit":[32],"labelToFocus":[32],"configChanged":[64],"setFocus":[64],"getValue":[64],"clear":[64],"open":[64],"close":[64],"select":[64],"setAriaForm":[64]},null,{"options":["optionChanged"],"value":["valueChanged"]}],[260,"bal-option",{"label":[513],"value":[513],"disabled":[4],"multiline":[4],"invalid":[4],"selected":[1028],"focused":[1028],"hidden":[4],"checkbox":[32],"interactionState":[32],"select":[64]},[[1,"mouseenter","listenToMouseEnter"]]],[260,"bal-option-list",{"multiple":[4],"disabled":[4],"required":[4],"focusIndex":[1026,"focus-index"],"labelledby":[1],"filter":[1],"contentHeight":[2,"content-height"],"ariaForm":[32],"focusSelected":[64],"focusFirst":[64],"focusLast":[64],"focusNext":[64],"focusPrevious":[64],"focusByLabel":[64],"filterByContent":[64],"resetHidden":[64],"resetSelected":[64],"updateSelected":[64],"resetFocus":[64],"getSelectedValues":[64],"getSelectedOptions":[64],"getValues":[64],"getLabels":[64],"getOptions":[64],"selectByFocus":[64],"setAriaForm":[64]},[[1,"balOptionFocus","listenToMouseEnter"],[0,"balOptionChange","listenToOptionChange"]],{"contentHeight":["contentHeightChanged"]}]]],["p-a97c5309f7",[[260,"bal-checkbox-group",{"options":[16],"interface":[1],"control":[4],"name":[1],"vertical":[4],"verticalOnMobile":[4,"vertical-on-mobile"],"expanded":[4],"invalid":[4],"disabled":[4],"readonly":[4],"value":[1040],"columns":[2],"columnsTablet":[2,"columns-tablet"],"columnsMobile":[2,"columns-mobile"],"autoInvalidOff":[516,"auto-invalid-off"],"ariaForm":[32],"setValue":[64],"getOptionByValue":[64],"setAriaForm":[64]},[[6,"balChange","listenOnCheckboxChange"],[6,"reset","resetHandler"],[6,"balFocus","checkboxFocusListener"],[6,"balBlur","checkboxBlurListener"]],{"options":["optionChanged"],"invalid":["invalidChanged"],"disabled":["disabledChanged"],"readonly":["readonlyChanged"],"value":["valueChanged"],"columns":["columnsChanged"],"columnsTablet":["columnsTabletChanged"],"columnsMobile":["columnsMobileChanged"]}],[260,"bal-checkbox",{"name":[1],"label":[1],"labelHidden":[4,"label-hidden"],"flat":[4],"interface":[1],"value":[8],"checked":[1028],"disabled":[4],"readonly":[4],"required":[4],"autoInvalidOff":[516,"auto-invalid-off"],"nonSubmit":[4,"non-submit"],"invalid":[4],"hovered":[4],"pressed":[4],"color":[1],"colSize":[2,"col-size"],"colSizeTablet":[2,"col-size-tablet"],"colSizeMobile":[2,"col-size-mobile"],"hasLabel":[32],"focused":[32],"buttonTabindex":[32],"ariaForm":[32],"wasFocused":[32],"mergedElementState":[32],"setFocus":[64],"setBlur":[64],"getInputElement":[64],"getOption":[64],"updateState":[64],"setAriaForm":[64]},[[6,"click","listenOnClick"],[6,"reset","resetHandler"]],{"hovered":["hoveredChanged"],"pressed":["pressedChanged"]}]]],["p-01fdb2af3e",[[260,"bal-hint",{"closeLabel":[1,"close-label"],"small":[4],"isActive":[32],"innerCloseLabel":[32],"isMobile":[32],"configChanged":[64],"toggle":[64],"present":[64],"dismiss":[64]}],[260,"bal-hint-text"],[260,"bal-hint-title"],[260,"bal-popover",{"autoTrigger":[4,"auto-trigger"],"hint":[4],"hover":[4],"arrow":[4],"backdrop":[4],"tooltip":[4],"offsetX":[2,"offset-x"],"offsetY":[2,"offset-y"],"padding":[2],"position":[1],"active":[1540],"mobileTop":[4,"mobile-top"],"isTouch":[32],"isInMainNav":[32],"backdropHeight":[32],"present":[64],"dismiss":[64],"toggle":[64]},[[4,"balPopoverPrepare","handlePopoverPrepare"],[4,"click","clickOnOutside"],[8,"keydown","handleKeyUp"],[4,"keyup","tabOutside"]],{"active":["activeChanged"]}],[260,"bal-popover-content",{"spaceless":[4],"scrollable":[2],"contentWidth":[2,"content-width"],"contentMinWidth":[2,"content-min-width"],"color":[1],"expanded":[4],"radius":[1],"noShadow":[4,"no-shadow"],"mobileTop":[4,"mobile-top"],"contentHeightOnTop":[32]}]]],["p-345901e33b",[[256,"bal-select",{"name":[1],"invalid":[4],"filter":[1],"balTabindex":[2,"bal-tabindex"],"freeSolo":[4,"free-solo"],"multiple":[4],"maxLength":[2,"max-length"],"noDataLabel":[1,"no-data-label"],"autocomplete":[1],"typeahead":[4],"selectionOptional":[4,"selection-optional"],"disabled":[4],"readonly":[4],"required":[4],"inverted":[4],"placeholder":[1],"scrollable":[2],"loading":[4],"remote":[4],"autoInvalidOff":[516,"auto-invalid-off"],"value":[1025],"hasFocus":[32],"inputValue":[32],"focusIndex":[32],"isPopoverOpen":[32],"options":[32],"labelToScrollTo":[32],"labelToSelectTo":[32],"ariaForm":[32],"rawValue":[32],"setFocus":[64],"getValue":[64],"clear":[64],"open":[64],"close":[64],"cancel":[64],"select":[64],"setAriaForm":[64]},[[6,"click","listenOnClick"],[6,"reset","resetHandler"],[8,"keydown","handleKeyDown"]],{"value":["valueWatcher"]}],[260,"bal-select-option",{"label":[513],"disabled":[4],"value":[513],"for":[513]}]]],["p-14219e3845",[[260,"bal-tab-item",{"active":[516],"value":[513],"label":[513],"rel":[513],"href":[513],"target":[1],"bubble":[520],"disabled":[516],"invisible":[516],"prevent":[4],"icon":[513],"noPanel":[4,"no-panel"],"a11yControls":[1,"a-1-1y-controls"],"subLabel":[513,"sub-label"],"svg":[1],"isActive":[32],"tabsId":[32],"setTabId":[64],"getOptions":[64],"setActive":[64]}],[260,"bal-tabs",{"float":[1],"fullwidth":[4],"accordion":[4],"overflow":[4],"options":[16],"context":[1],"iconPosition":[1,"icon-position"],"expanded":[4],"spaceless":[4],"clickable":[4],"border":[4],"inverted":[4],"optionalTabSelection":[4,"optional-tab-selection"],"debounce":[2],"vertical":[8],"verticalColSize":[1,"vertical-col-size"],"selectOnMobile":[4,"select-on-mobile"],"value":[1025],"dimInactiveElements":[4,"dim-inactive-elements"],"handleAsTabList":[4,"handle-as-tab-list"],"isAccordionOpen":[32],"accordionState":[32],"isNavbarOpen":[32],"inNavbar":[32],"inNavbarLight":[32],"enableLineRender":[32],"hasAnimated":[32],"index":[32],"isMobile":[32],"isTablet":[32],"language":[32],"store":[32],"animated":[32],"configChanged":[64],"select":[64],"getOptionByValue":[64],"renderLine":[64],"closeAccordion":[64]},[[0,"keydown","listenToKeyDown"]],{"options":["optionChanged"],"expanded":["expandedChanged"],"debounce":["debounceChanged"],"vertical":["verticalChanged"],"value":["valueChanged"]}]]],["p-427fe8eede",[[260,"bal-stack",{"layout":[1],"align":[1],"space":[1],"spaceRow":[1,"space-row"],"spaceColumn":[1,"space-column"],"px":[1],"py":[1],"useWrap":[4,"use-wrap"],"fitContent":[4,"fit-content"],"direction":[1],"alignment":[1]}]]],["p-c78c0dd43a",[[260,"bal-button-group",{"position":[1],"direction":[1],"reverse":[4]}],[260,"bal-button",{"color":[1],"elementType":[1,"element-type"],"disabled":[516],"size":[513],"href":[1],"target":[1],"rel":[1],"download":[1],"shadow":[4],"square":[4],"isActive":[4,"is-active"],"expanded":[4],"flat":[4],"outlined":[4],"inverted":[4],"loading":[4],"rounded":[4],"balPopup":[8,"bal-popup"],"icon":[1],"iconTurn":[4,"icon-turn"],"iconRight":[1,"icon-right"],"noWrap":[4,"no-wrap"],"name":[1],"value":[8],"a11yControls":[1,"a-1-1y-controls"],"a11yTitle":[1,"a-1-1y-title"],"a11yLabel":[1,"a-1-1y-label"],"a11yHaspopup":[1,"a-1-1y-haspopup"],"isLargestContentPaintDone":[32]},[[6,"click","listenOnClick"]]]]],["p-14475f12e8",[[260,"bal-list-item-accordion-head",{"accordionOpen":[1028,"accordion-open"],"icon":[1],"ariaState":[32],"language":[32],"configChanged":[64],"setAria":[64]},null,{"accordionOpen":["accordionOpenHandler"]}],[260,"bal-list-item-accordion-body",{"accordionGroup":[1,"accordion-group"],"contentSpace":[1,"content-space"],"contentAlignment":[1,"content-alignment"],"ariaState":[32],"setAria":[64]}],[260,"bal-list-item-subtitle"],[260,"bal-list-item-title",{"level":[1],"visualLevel":[1,"visual-level"]}],[260,"bal-list",{"disabled":[4],"background":[1],"border":[4],"accordionOneLevel":[4,"accordion-one-level"],"size":[1]},null,{"accordionOneLevel":["accordionOneLevelHandler"]}],[260,"bal-list-item",{"disabled":[4],"clickable":[4],"selected":[4],"accordion":[4],"subAccordionItem":[4,"sub-accordion-item"],"href":[1],"rel":[1],"target":[1],"download":[1],"state":[32],"configChanged":[64],"present":[64],"dismiss":[64],"toggle":[64]}],[260,"bal-list-item-content",{"contentAlignment":[1,"content-alignment"]}],[260,"bal-list-item-icon",{"right":[4]}]]],["p-818b880ec5",[[260,"bal-nav",{"logo":[16],"options":[16],"buttons":[16],"isTouch":[32],"isDesktop":[32],"language":[32],"region":[32],"isFlyoutActive":[32],"activeMetaLinkValue":[32],"activeMenuLinkValue":[32],"linkItems":[32],"metaButtons":[32],"configChanged":[64]},[[0,"balChange","listenToPopupChanges"],[5,"click","clickOnOutside"]],{"options":["optionChanged"],"buttons":["buttonChanged"]}],[260,"bal-nav-link-group",{"color":[1]}],[260,"bal-nav-link",{"variant":[1],"selected":[4],"clickable":[4],"rel":[1],"href":[1],"target":[1]}],[260,"bal-nav-link-grid"],[260,"bal-nav-link-grid-col",{"staticCol":[4,"static-col"]}],[260,"bal-nav-menu-bar",{"invisible":[1],"position":[1],"isHidden":[32]}],[260,"bal-nav-menu-flyout",{"navId":[1,"nav-id"],"isHidden":[32]},[[0,"focusout","onFocusLeave"]]],[260,"bal-nav-meta-bar",{"stayOnTopOfBackdrop":[4,"stay-on-top-of-backdrop"],"variant":[1],"size":[1],"invisible":[1],"position":[1],"isHidden":[32]},[[9,"scroll","handleScroll"]]]]]]'),e))));
|
|
1
|
+
import{p as e,b as a}from"./p-BdVwMG9u.js";export{s as setNonce}from"./p-BdVwMG9u.js";import{g as l}from"./p-CKN3W8qn.js";import"./p-BFRjY4w3.js";import"./p-B1u-Mq75.js";import"./p-Ba5qjFjW.js";import"./p-D7M-7v58.js";import"./p-CBkFUwrD.js";import"./p-D7ovid3w.js";(()=>{const a=import.meta.url,l={};return""!==a&&(l.resourcesUrl=new URL(".",a).href),e(l)})().then((async e=>(await l(),a(JSON.parse('[["p-52c76f1bdd",[[262,"bal-field-hint",{"hideTitleOnDesktop":[4,"hide-title-on-desktop"],"subject":[1],"closeLabel":[1,"close-label"],"small":[4],"isDesktop":[32]}],[262,"bal-field-control",{"iconRight":[1,"icon-right"],"iconLeft":[1,"icon-left"],"expandedOnMobile":[4,"expanded-on-mobile"],"loading":[4]}],[262,"bal-field-label",{"htmlFor":[1,"html-for"],"required":[4],"valid":[4],"invalid":[4],"disabled":[4],"readonly":[4],"size":[1],"weight":[1]}],[260,"bal-field",{"required":[4],"horizontal":[4],"invalid":[4],"valid":[4],"disabled":[4],"readonly":[4],"loading":[4]},null,{"required":["requiredHandler"],"invalid":["invalidHandler"],"valid":["validHandler"],"disabled":["disabledHandler"],"readonly":["readonlyHandler"],"loading":["loadingHandler"]}],[260,"bal-field-message",{"color":[1],"invalid":[4],"valid":[4],"disabled":[4],"readonly":[4],"noReservedSpace":[4,"no-reserved-space"],"ariaForm":[32],"setAriaForm":[64]}]]],["p-692f76ee0c",[[260,"bal-accordion",{"active":[1540],"debounce":[2],"openLabel":[1,"open-label"],"openIcon":[1,"open-icon"],"closeLabel":[1,"close-label"],"closeIcon":[1,"close-icon"],"card":[4],"version":[2],"state":[32],"animated":[32],"configChanged":[64],"present":[64],"dismiss":[64],"toggle":[64],"humanToggle":[64]},null,{"active":["activeChanged"],"debounce":["debounceChanged"]}],[256,"bal-accordion-trigger",{"button":[4],"variant":[1],"expanded":[4],"openLabel":[1,"open-label"],"openIcon":[1,"open-icon"],"closeLabel":[1,"close-label"],"closeIcon":[1,"close-icon"],"color":[1],"size":[1],"active":[1540],"state":[2],"parentAccordionId":[32],"language":[32],"configChanged":[64]}],[260,"bal-accordion-details",{"state":[2],"active":[4],"animated":[4],"parentAccordionId":[32]}],[256,"bal-accordion-summary",{"trigger":[4],"active":[1540],"state":[2],"parentAccordionId":[32]}]]],["p-eeff81381f",[[260,"bal-snackbar",{"color":[1],"duration":[2],"subject":[1],"message":[1],"icon":[1],"action":[1],"closeHandler":[16],"actionHandler":[16],"href":[1],"target":[1],"closeIn":[64],"close":[64]}],[260,"bal-toast",{"color":[1],"duration":[2],"closable":[4],"message":[1],"closeHandler":[16],"closeIn":[64],"close":[64]}],[260,"bal-notices",{"animated":[4],"interface":[1],"container":[1]}]]],["p-0974dcb139",[[256,"bal-date",{"name":[1],"invalid":[4],"required":[4],"disabled":[4],"readonly":[4],"freeSolo":[4,"free-solo"],"placeholder":[1],"triggerIcon":[4,"trigger-icon"],"closeOnSelect":[4,"close-on-select"],"autocomplete":[1],"value":[1025],"min":[1025],"max":[1025],"minYearProp":[2,"min-year"],"maxYearProp":[2,"max-year"],"defaultDate":[1,"default-date"],"allowedDates":[16],"allowInvalidValue":[4,"allow-invalid-value"],"debounce":[2],"autoInvalidOff":[516,"auto-invalid-off"],"isKeyboardMode":[32],"hasFocus":[32],"isExpanded":[32],"language":[32],"calendarValue":[32],"ariaForm":[32],"configChanged":[64],"open":[64],"close":[64],"toggle":[64],"select":[64],"setFocus":[64],"setBlur":[64],"getInputElement":[64],"setAriaForm":[64]},null,{"value":["valueChanged"],"debounce":["debounceChanged"]}]]],["p-484747871b",[[260,"bal-navbar-brand",{"href":[1],"rel":[1],"logoClickable":[4,"logo-clickable"],"logoLabel":[1,"logo-label"],"target":[1],"simple":[4],"logo":[1],"logoSize":[1,"logo-size"],"animated":[4],"interface":[1],"language":[32],"isMenuActive":[32],"configChanged":[64],"toggle":[64]}],[260,"bal-navbar",{"light":[4],"interface":[1],"container":[1],"toggleMenu":[64]},null,{"interface":["interfaceHandler"]}],[260,"bal-navbar-menu",{"interface":[1],"isMenuActive":[32],"isTouch":[32],"toggle":[64]}],[260,"bal-navbar-menu-end",{"interface":[1]}],[260,"bal-navbar-menu-start",{"interface":[1]}]]],["p-72b37feadf",[[260,"bal-segment-item",{"disabled":[1028],"invalid":[1028],"focused":[1028],"checked":[1028],"label":[1],"value":[1032],"hasSlotContent":[32],"isFocusable":[32],"isVertical":[32],"isLast":[32],"isFirst":[32],"hasEmptyValue":[32],"ariaForm":[32],"setFocus":[64],"setAriaForm":[64]},null,{"value":["valueChanged"]}],[260,"bal-segment",{"invalid":[4],"autoInvalidOff":[516,"auto-invalid-off"],"disabled":[4],"vertical":[4],"scrollable":[4],"expanded":[4],"value":[1032],"focusedValue":[32],"keyboardMode":[32],"isVertical":[32],"isMobile":[32],"maxWidth":[32],"ariaForm":[32],"setAriaForm":[64]},[[4,"keydown","listenOnKeyDownOutside"],[0,"keydown","listenOnKeyDown"]],{"invalid":["invalidChanged"],"disabled":["disabledChanged"],"value":["valueChanged"]}]]],["p-ea29fa4382",[[260,"bal-data-value",{"editable":[4],"disabled":[4],"multiline":[4]}],[260,"bal-data",{"border":[4],"horizontal":[4]},null,{"border":["borderHandler"]}],[260,"bal-data-item",{"disabled":[4],"border":[4]}],[260,"bal-data-label",{"required":[4]}]]],["p-ce3e34fa95",[[260,"bal-modal-header"],[260,"bal-modal",{"overlayIndex":[1026,"overlay-index"],"delegate":[16],"dataTestId":[1,"data-test-id"],"modalWidth":[2,"modal-width"],"space":[1],"hasBackdrop":[4,"has-backdrop"],"isClosable":[4,"is-closable"],"component":[1],"componentProps":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"focusTrap":[4,"focus-trap"],"demo":[4],"presented":[32],"open":[64],"close":[64],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},[[0,"click","onClickCloseButton"],[1,"mousedown","onMouseDown"],[1,"mouseup","onMouseUp"],[4,"keyup","handleKeyUp"]]],[260,"bal-modal-body"]]],["p-b13d48cf28",[[256,"bal-input-stepper",{"name":[1],"min":[2],"max":[2],"steps":[2],"disabled":[4],"readonly":[4],"invalid":[4],"debounce":[2],"value":[1026],"autoInvalidOff":[516,"auto-invalid-off"],"focused":[32],"language":[32],"region":[32],"ariaForm":[32],"configChanged":[64],"getInputElement":[64],"setAriaForm":[64]},[[6,"click","listenOnClick"],[6,"reset","resetHandler"]],{"debounce":["debounceChanged"]}]]],["p-49c12d2474",[[260,"bal-stage",{"containerSize":[1,"container-size"],"size":[1],"color":[1],"shape":[4],"shapeVariation":[1,"shape-variation"],"shapeRotation":[1,"shape-rotation"]}],[260,"bal-stage-back-link",{"href":[1],"rel":[1],"shadow":[4],"inverted":[4]}],[260,"bal-stage-body"],[260,"bal-stage-foot"],[260,"bal-stage-head"],[256,"bal-stage-image",{"srcSet":[1,"src-set"],"fallback":[1],"isOnLoadEventDone":[32]}]]],["p-9871800426",[[260,"bal-carousel",{"value":[1026],"steps":[2],"itemsPerView":[8,"items-per-view"],"controls":[1],"space":[1],"htmlRole":[1,"html-role"],"controlsOverflow":[4,"controls-overflow"],"inverted":[4],"fullHeight":[4,"full-height"],"aspectRatio":[1,"aspect-ratio"],"interface":[1],"controlsSticky":[4,"controls-sticky"],"scrollY":[4,"scroll-y"],"border":[4],"hasAnimated":[32],"isMobile":[32],"language":[32],"configChanged":[64],"previous":[64],"next":[64],"getContainerId":[64]},[[8,"touchmove","blockVerticalScrolling"]],{"value":["onValueChange"],"steps":["onStepsChange"],"itemsPerView":["onItemsPerViewChange"],"controls":["onControlsChange"],"space":["onSpaceChange"],"interface":["onInterFaceChange"]}],[260,"bal-carousel-item",{"src":[513],"label":[513],"svg":[1],"htmlRole":[1,"html-role"],"elementType":[1,"element-type"],"name":[513],"value":[520],"href":[1],"target":[1],"rel":[1],"download":[1],"color":[1],"isOnLoadEventDone":[32],"containerId":[32],"svgContent":[32],"setFocus":[64]},null,{"svg":["svgChanged"]}]]],["p-02323ca1fe",[[260,"bal-footer",{"logoHref":[1,"logo-href"],"logoSvg":[1,"logo-svg"],"hideLinks":[4,"hide-links"],"overrideLinks":[16],"showSocialMedia":[4,"show-social-media"],"hideLanguageSelection":[4,"hide-language-selection"],"logoSvgContent":[32],"links":[32],"socialMediaLinks":[32],"language":[32],"region":[32],"allowedLanguages":[32],"configChanged":[64]},null,{"logoSvg":["logoSvgChanged"]}]]],["p-4be902176f",[[256,"bal-time-input",{"name":[1],"invalid":[4],"required":[4],"disabled":[4],"readonly":[4],"debounce":[2],"value":[1025],"autoInvalidOff":[516,"auto-invalid-off"],"focused":[32],"language":[32],"region":[32],"ariaForm":[32],"configChanged":[64],"setFocus":[64],"setBlur":[64],"getInputElement":[64],"setAriaForm":[64]},[[6,"click","listenOnClick"],[6,"reset","resetHandler"]],{"debounce":["debounceChanged"]}]]],["p-29d68d2132",[[260,"bal-steps",{"options":[16],"clickable":[4],"color":[1],"debounce":[2],"value":[1025],"store":[32],"isMobile":[32],"select":[64],"getOptionByValue":[64]},null,{"options":["optionChanged"],"debounce":["debounceChanged"],"value":["valueChanged"]}]]],["p-5965694a0f",[[256,"bal-switch",{"checked":[1028],"invalid":[4],"disabled":[4],"hovered":[4],"pressed":[4]}]]],["p-340cd7b9e8",[[257,"bal-tooltip",{"reference":[1],"placement":[1],"offset":[2],"demo":[4],"contentWidth":[2,"content-width"],"presented":[32],"present":[64],"dismiss":[64],"update":[64]},null,{"contentWidth":["contentWidthChanged"]}]]],["p-ddd75e43d6",[[260,"bal-form-col",{"size":[1]}],[260,"bal-form-grid"]]],["p-1b1fdadab3",[[260,"bal-app",{"animated":[516],"ready":[1540],"setFocus":[64]}]]],["p-08644e325b",[[260,"bal-divider",{"layout":[1],"space":[1],"color":[1],"borderStyle":[1,"border-style"]}]]],["p-ed1aad24be",[[260,"bal-form",{"native":[4],"novalidate":[4],"formClass":[1,"form-class"],"scrollToFirstInvalidField":[64]}]]],["p-b4fa55782e",[[256,"bal-input",{"name":[1],"invalid":[4],"textAlign":[1,"text-align"],"type":[1],"accept":[1],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"autofocus":[4],"debounce":[2],"placeholder":[1],"max":[1],"maxLength":[2,"max-length"],"min":[1],"minLength":[2,"min-length"],"multiple":[4],"pattern":[1],"allowedKeyPress":[1,"allowed-key-press"],"required":[4],"spellcheck":[4],"disabled":[4],"readonly":[4],"clickable":[4],"suffix":[1],"hasIconRight":[4,"has-icon-right"],"inputmode":[1],"value":[1537],"mask":[1],"autoInvalidOff":[516,"auto-invalid-off"],"focused":[32],"ariaForm":[32],"setFocus":[64],"setBlur":[64],"getInputElement":[64],"setAriaForm":[64]},[[6,"click","listenOnClick"],[6,"reset","resetHandler"]],{"debounce":["debounceChanged"]}]]],["p-ee070d06bc",[[256,"bal-input-slider",{"name":[1],"step":[2],"min":[2],"max":[2],"invalid":[4],"balTabindex":[2,"bal-tabindex"],"disabled":[4],"readonly":[4],"required":[4],"hasTicks":[4,"has-ticks"],"debounce":[2],"value":[1032],"autoInvalidOff":[516,"auto-invalid-off"],"ariaForm":[32],"setFocus":[64],"getInputElement":[64],"setAriaForm":[64]},[[6,"click","listenOnClick"],[6,"reset","resetHandler"]],{"debounce":["debounceChanged"],"value":["valueChanged"]}]]],["p-3678c7a958",[[260,"bal-notification",{"color":[1],"light":[4],"noIcon":[4,"no-icon"]}]]],["p-54f5a92feb",[[256,"bal-number-input",{"name":[1],"invalid":[4],"decimal":[2],"onlyPositive":[4,"only-positive"],"suffix":[1],"pattern":[1],"placeholder":[1],"required":[4],"disabled":[4],"readonly":[4],"exactNumber":[4,"exact-number"],"max":[1],"min":[1],"debounce":[2],"value":[1032],"autoInvalidOff":[516,"auto-invalid-off"],"focused":[32],"language":[32],"region":[32],"ariaForm":[32],"nativeInputValue":[32],"inputPattern":[32],"configChanged":[64],"setFocus":[64],"setBlur":[64],"getInputElement":[64],"setAriaForm":[64]},[[6,"click","listenOnClick"],[6,"reset","resetHandler"]],{"debounce":["debounceChanged"],"value":["valueChanged"]}]]],["p-50a9cbd963",[[256,"bal-progress-bar",{"value":[2],"background":[1],"color":[1],"configChanged":[64]}]]],["p-a584c6763e",[[260,"bal-sheet",{"containerSize":[1,"container-size"]}]]],["p-def5a43710",[[260,"bal-step-item",{"active":[516],"value":[513],"label":[513],"href":[513],"rel":[1],"target":[1],"disabled":[516],"done":[516],"invisible":[516],"failed":[516],"prevent":[4],"isActive":[32],"getOptions":[64],"setActive":[64]}]]],["p-34d75cbfe8",[[260,"bal-table",{"expanded":[4]}]]],["p-07b3561d34",[[260,"bal-textarea",{"name":[1],"invalid":[4],"autocapitalize":[1],"autocomplete":[1],"autofocus":[4],"debounce":[2],"placeholder":[1],"maxLength":[2,"max-length"],"minLength":[2,"min-length"],"disabled":[4],"readonly":[4],"cols":[2],"rows":[2],"wrap":[1],"required":[4],"clickable":[4],"inputmode":[1],"value":[1025],"autoInvalidOff":[516,"auto-invalid-off"],"focused":[32],"ariaForm":[32],"setFocus":[64],"setBlur":[64],"getInputElement":[64],"setAriaForm":[64]},[[6,"click","listenOnClick"],[6,"reset","resetHandler"]],{"debounce":["debounceChanged"]}]]],["p-2264ba1f28",[[260,"bal-content",{"layout":[1],"align":[1],"space":[1],"direction":[1],"alignment":[1]}]]],["p-e7a78b097d",[[256,"bal-shape",{"variation":[1],"color":[1],"rotation":[1]}]]],["p-a1482cbe4a",[[260,"bal-popup",{"label":[1],"reference":[1],"variant":[1],"placement":[1],"arrow":[4],"backdrop":[4],"offset":[2],"closable":[4],"backdropDismiss":[4,"backdrop-dismiss"],"active":[4],"contentWidth":[2,"content-width"],"demo":[4],"activeClosable":[32],"activeBackdropDismiss":[32],"activeVariant":[32],"trigger":[32],"lastTrigger":[32],"minContainerWidth":[32],"presented":[32],"present":[64],"dismiss":[64],"toggle":[64],"setMinWidth":[64],"_emitChange":[64],"_present":[64],"_dismiss":[64]},[[8,"click","listenOnGlobalClick"],[4,"keydown","listenOnKeyDown"],[1,"mousedown","listenOnMouseDown"],[1,"mouseup","listenOnMouseUp"],[0,"click","listenOnComponentClick"]],{"variant":["variantChanged"],"active":["activeChanged"],"contentWidth":["contentWidthChanged"]}]]],["p-a576422cb2",[[260,"bal-input-group",{"invalid":[4],"disabled":[4],"readonly":[4]}]]],["p-af292102b8",[[256,"bal-logo",{"color":[1],"size":[1],"brand":[1],"animated":[4],"isTouch":[32],"doesConfigAllowAnimation":[32],"configBrand":[32]},null,{"animated":["animatedWatcher"]}]]],["p-d5365ffe38",[[260,"bal-text",{"size":[1],"heading":[4],"noWrap":[4,"no-wrap"],"bold":[4],"inline":[4],"color":[1],"space":[1],"inverted":[4],"shadow":[4],"disabled":[4],"invalid":[4],"hovered":[4],"pressed":[4]}],[260,"bal-heading",{"level":[1],"visualLevel":[1,"visual-level"],"autoLevel":[1,"auto-level"],"noWrap":[4,"no-wrap"],"subtitle":[4],"space":[1],"color":[1],"inverted":[4],"shadow":[4],"autoFontSize":[32]},null,{"level":["levelWatcher"],"visualLevel":["visualLevelWatcher"],"autoLevel":["autoLevelWatcher"]}]]],["p-a3c4c9d422",[[256,"bal-spinner",{"inverted":[4],"deactivated":[4],"color":[1],"small":[4],"variation":[1],"animated":[32]},null,{"deactivated":["deactivatedWatcher"],"variation":["variationWatcher"]}]]],["p-79d0e94ea1",[[256,"bal-icon",{"name":[1537],"svg":[1],"size":[1],"color":[1],"colorHovered":[1,"color-hovered"],"colorPressed":[1,"color-pressed"],"tile":[4],"tileColor":[1,"tile-color"],"inline":[4],"inverted":[4],"turn":[4],"shadow":[4],"disabled":[4],"invalid":[4],"hovered":[4],"pressed":[4],"icons":[32],"svgContent":[32],"innerColor":[32],"innerSize":[32],"configChanged":[64]}]]],["p-8346d5f6ae",[[256,"bal-file-upload",{"name":[1],"value":[16],"label":[1],"multiple":[4],"disabled":[4],"readonly":[4],"loading":[4],"required":[4],"accept":[1],"maxFiles":[2,"max-files"],"maxFileSize":[2,"max-file-size"],"maxBundleSize":[2,"max-bundle-size"],"hasFileList":[4,"has-file-list"],"invalid":[4],"subTitle":[16],"autoInvalidOff":[516,"auto-invalid-off"],"files":[32],"focused":[32],"ariaForm":[32],"clear":[64],"setFocus":[64],"setBlur":[64],"getInputElement":[64],"setAriaForm":[64]},[[6,"reset","resetHandler"]],{"value":["onValueChange"]}]]],["p-495621ad03",[[256,"bal-pagination",{"align":[1],"size":[1],"interface":[1],"disabled":[4],"value":[2],"totalPages":[2,"total-pages"],"pageRange":[2,"page-range"],"sticky":[4],"top":[2],"_value":[32],"isMobile":[32],"language":[32],"next":[64],"previous":[64],"configChanged":[64]},null,{"value":["valueChanged"],"top":["topValueChanged"]}]]],["p-627def5e99",[[260,"bal-radio-group",{"options":[16],"interface":[1],"allowEmptySelection":[4,"allow-empty-selection"],"name":[1],"vertical":[4],"verticalOnMobile":[4,"vertical-on-mobile"],"expanded":[4],"invalid":[4],"disabled":[4],"readonly":[4],"value":[1032],"columns":[2],"columnsTablet":[2,"columns-tablet"],"columnsMobile":[2,"columns-mobile"],"autoInvalidOff":[516,"auto-invalid-off"],"ariaForm":[32],"setValue":[64],"getOptionByValue":[64],"setAriaForm":[64]},[[6,"balChange","listenOnClick"],[6,"balFocus","radioFocusListener"],[6,"balBlur","radioBlurListener"],[6,"reset","resetListener"],[4,"keydown","onKeydown"]],{"options":["optionChanged"],"invalid":["invalidChanged"],"disabled":["disabledChanged"],"readonly":["readonlyChanged"],"value":["valueChanged"],"columns":["columnsChanged"],"columnsTablet":["columnsTabletChanged"],"columnsMobile":["columnsMobileChanged"]}],[260,"bal-radio",{"name":[1],"value":[8],"label":[1],"labelHidden":[4,"label-hidden"],"flat":[4],"interface":[1],"disabled":[4],"readonly":[4],"required":[4],"nonSubmit":[4,"non-submit"],"invalid":[4],"hovered":[4],"pressed":[4],"color":[1],"colSize":[2,"col-size"],"colSizeTablet":[2,"col-size-tablet"],"colSizeMobile":[2,"col-size-mobile"],"wasFocused":[32],"checked":[32],"focused":[32],"buttonTabindex":[32],"ariaForm":[32],"mergedElementState":[32],"setFocus":[64],"setBlur":[64],"setButtonTabindex":[64],"getInputElement":[64],"getOption":[64],"updateState":[64],"setAriaForm":[64]},[[6,"click","listenOnClick"]],{"hovered":["hoveredChanged"],"pressed":["pressedChanged"]}]]],["p-041bf35913",[[257,"bal-date-calendar",{"value":[1],"defaultDate":[1,"default-date"],"allowedDates":[16],"min":[1025],"max":[1025],"minYearProp":[2,"min-year"],"maxYearProp":[2,"max-year"],"selectedDate":[32],"monthFullNames":[32],"weekdays":[32],"months":[32],"years":[32],"calendarGrid":[32],"firstDayOfWeek":[32],"month":[32],"year":[32],"language":[32],"isCalendarVisible":[32],"isYearListVisible":[32],"isMonthListVisible":[32],"configChanged":[64]},null,{"value":["valueChanged"],"min":["rangePropChanged"],"max":["rangePropChanged"],"minYearProp":["yearRangePropChanged"],"maxYearProp":["yearRangePropChanged"]}],[256,"bal-input-date",{"name":[1],"invalid":[4],"required":[4],"disabled":[4],"readonly":[4],"placeholder":[1],"clickable":[4],"min":[1025],"max":[1025],"autocomplete":[1],"hasIconRight":[4,"has-icon-right"],"value":[1025],"autoInvalidOff":[516,"auto-invalid-off"],"allowInvalidValue":[4,"allow-invalid-value"],"focused":[32],"isGrouped":[32],"ariaForm":[32],"configChanged":[64],"setFocus":[64],"setBlur":[64],"getInputElement":[64],"setAriaForm":[64]},[[6,"reset","resetHandler"],[6,"click","listenOnClick"]],{"value":["valueChanged"]}]]],["p-23537928fa",[[260,"bal-badge",{"icon":[1],"size":[1],"color":[1],"position":[1]}]]],["p-f7b16f08ab",[[256,"bal-check",{"checked":[1028],"invalid":[4],"disabled":[4],"inverted":[4],"hovered":[4],"pressed":[4]}]]],["p-85428cc869",[[256,"bal-date-calendar-cell",{"day":[2],"month":[2],"year":[2],"isoDate":[1,"iso-date"],"fullDate":[1,"full-date"],"selected":[4],"today":[4],"disabled":[4]}]]],["p-4b2eeb8c37",[[260,"bal-label",{"htmlFor":[1,"html-for"],"htmlId":[1,"html-id"],"required":[4],"noWrap":[4,"no-wrap"],"multiline":[4],"valid":[4],"invalid":[4],"disabled":[4],"readonly":[4],"size":[1],"weight":[1],"hovered":[4],"pressed":[4],"language":[32],"region":[32],"ariaForm":[32],"configChanged":[64],"setAriaForm":[64]}]]],["p-f217ad88a9",[[256,"bal-radio-icon",{"checked":[1028],"invalid":[4],"disabled":[4],"inverted":[4],"hovered":[4],"pressed":[4]}]]],["p-b66021b38c",[[260,"bal-card-button",{"icon":[1],"elementType":[1,"element-type"],"disabled":[516],"href":[1],"target":[1],"rel":[1],"iconRight":[1,"icon-right"],"loading":[4]}],[260,"bal-card-actions",{"position":[1]}],[260,"bal-card-title",{"inverted":[4]}],[260,"bal-card-subtitle",{"inverted":[4],"bold":[4],"color":[1]}],[260,"bal-card-content"],[260,"bal-card",{"border":[4],"flat":[4],"square":[4],"inverted":[4],"clickable":[4],"selected":[4],"fullheight":[4],"space":[1],"color":[1]}]]],["p-7b52e9987d",[[256,"bal-close",{"size":[1],"inverted":[4],"language":[32],"region":[32],"configChanged":[64]}]]],["p-f2222919fc",[[260,"bal-tag-group"],[260,"bal-tag",{"color":[1],"size":[1],"closable":[4],"invalid":[4],"disabled":[4],"position":[1],"light":[4],"transparent":[4]}]]],["p-fc9a46b295",[[260,"bal-dropdown",{"autocomplete":[1],"name":[1],"placeholder":[1],"inlineLabel":[1,"inline-label"],"icon":[1],"size":[1],"theme":[1],"disabled":[4],"readonly":[4],"multiple":[4],"chips":[4],"clearable":[4],"invalid":[4],"required":[4],"loading":[4],"filter":[1],"contentHeight":[2,"content-height"],"inverted":[4],"options":[16],"value":[1],"rawOptions":[32],"choices":[32],"rawValue":[32],"hasFocus":[32],"isExpanded":[32],"isAutoFilled":[32],"isKeyboardMode":[32],"inputLabel":[32],"ariaForm":[32],"language":[32],"region":[32],"httpFormSubmit":[32],"labelToFocus":[32],"configChanged":[64],"setFocus":[64],"getValue":[64],"clear":[64],"open":[64],"close":[64],"select":[64],"setAriaForm":[64]},null,{"options":["optionChanged"],"value":["valueChanged"]}],[260,"bal-option",{"label":[513],"value":[513],"disabled":[4],"multiline":[4],"invalid":[4],"selected":[1028],"focused":[1028],"hidden":[4],"checkbox":[32],"interactionState":[32],"select":[64]},[[1,"mouseenter","listenToMouseEnter"]]],[260,"bal-option-list",{"multiple":[4],"disabled":[4],"required":[4],"focusIndex":[1026,"focus-index"],"labelledby":[1],"filter":[1],"contentHeight":[2,"content-height"],"ariaForm":[32],"focusSelected":[64],"focusFirst":[64],"focusLast":[64],"focusNext":[64],"focusPrevious":[64],"focusByLabel":[64],"filterByContent":[64],"resetHidden":[64],"resetSelected":[64],"updateSelected":[64],"resetFocus":[64],"getSelectedValues":[64],"getSelectedOptions":[64],"getValues":[64],"getLabels":[64],"getOptions":[64],"selectByFocus":[64],"setAriaForm":[64]},[[1,"balOptionFocus","listenToMouseEnter"],[0,"balOptionChange","listenToOptionChange"]],{"contentHeight":["contentHeightChanged"]}]]],["p-a97c5309f7",[[260,"bal-checkbox-group",{"options":[16],"interface":[1],"control":[4],"name":[1],"vertical":[4],"verticalOnMobile":[4,"vertical-on-mobile"],"expanded":[4],"invalid":[4],"disabled":[4],"readonly":[4],"value":[1040],"columns":[2],"columnsTablet":[2,"columns-tablet"],"columnsMobile":[2,"columns-mobile"],"autoInvalidOff":[516,"auto-invalid-off"],"ariaForm":[32],"setValue":[64],"getOptionByValue":[64],"setAriaForm":[64]},[[6,"balChange","listenOnCheckboxChange"],[6,"reset","resetHandler"],[6,"balFocus","checkboxFocusListener"],[6,"balBlur","checkboxBlurListener"]],{"options":["optionChanged"],"invalid":["invalidChanged"],"disabled":["disabledChanged"],"readonly":["readonlyChanged"],"value":["valueChanged"],"columns":["columnsChanged"],"columnsTablet":["columnsTabletChanged"],"columnsMobile":["columnsMobileChanged"]}],[260,"bal-checkbox",{"name":[1],"label":[1],"labelHidden":[4,"label-hidden"],"flat":[4],"interface":[1],"value":[8],"checked":[1028],"disabled":[4],"readonly":[4],"required":[4],"autoInvalidOff":[516,"auto-invalid-off"],"nonSubmit":[4,"non-submit"],"invalid":[4],"hovered":[4],"pressed":[4],"color":[1],"colSize":[2,"col-size"],"colSizeTablet":[2,"col-size-tablet"],"colSizeMobile":[2,"col-size-mobile"],"hasLabel":[32],"focused":[32],"buttonTabindex":[32],"ariaForm":[32],"wasFocused":[32],"mergedElementState":[32],"setFocus":[64],"setBlur":[64],"getInputElement":[64],"getOption":[64],"updateState":[64],"setAriaForm":[64]},[[6,"click","listenOnClick"],[6,"reset","resetHandler"]],{"hovered":["hoveredChanged"],"pressed":["pressedChanged"]}]]],["p-d5de84380b",[[260,"bal-hint",{"closeLabel":[1,"close-label"],"small":[4],"isActive":[32],"innerCloseLabel":[32],"isMobile":[32],"configChanged":[64],"toggle":[64],"present":[64],"dismiss":[64]}],[260,"bal-hint-text"],[260,"bal-hint-title"],[260,"bal-popover",{"autoTrigger":[4,"auto-trigger"],"hint":[4],"hover":[4],"arrow":[4],"backdrop":[4],"tooltip":[4],"offsetX":[2,"offset-x"],"offsetY":[2,"offset-y"],"padding":[2],"position":[1],"active":[1540],"mobileTop":[4,"mobile-top"],"isTouch":[32],"isInMainNav":[32],"backdropHeight":[32],"present":[64],"dismiss":[64],"toggle":[64]},[[4,"balPopoverPrepare","handlePopoverPrepare"],[4,"click","clickOnOutside"],[8,"keydown","handleKeyUp"],[4,"keyup","tabOutside"]],{"active":["activeChanged"]}],[260,"bal-popover-content",{"spaceless":[4],"scrollable":[2],"contentWidth":[2,"content-width"],"contentMinWidth":[2,"content-min-width"],"color":[1],"expanded":[4],"radius":[1],"noShadow":[4,"no-shadow"],"mobileTop":[4,"mobile-top"],"contentHeightOnTop":[32]}]]],["p-345901e33b",[[256,"bal-select",{"name":[1],"invalid":[4],"filter":[1],"balTabindex":[2,"bal-tabindex"],"freeSolo":[4,"free-solo"],"multiple":[4],"maxLength":[2,"max-length"],"noDataLabel":[1,"no-data-label"],"autocomplete":[1],"typeahead":[4],"selectionOptional":[4,"selection-optional"],"disabled":[4],"readonly":[4],"required":[4],"inverted":[4],"placeholder":[1],"scrollable":[2],"loading":[4],"remote":[4],"autoInvalidOff":[516,"auto-invalid-off"],"value":[1025],"hasFocus":[32],"inputValue":[32],"focusIndex":[32],"isPopoverOpen":[32],"options":[32],"labelToScrollTo":[32],"labelToSelectTo":[32],"ariaForm":[32],"rawValue":[32],"setFocus":[64],"getValue":[64],"clear":[64],"open":[64],"close":[64],"cancel":[64],"select":[64],"setAriaForm":[64]},[[6,"click","listenOnClick"],[6,"reset","resetHandler"],[8,"keydown","handleKeyDown"]],{"value":["valueWatcher"]}],[260,"bal-select-option",{"label":[513],"disabled":[4],"value":[513],"for":[513]}]]],["p-4f036f58ab",[[260,"bal-tab-item",{"active":[516],"value":[513],"label":[513],"rel":[513],"href":[513],"target":[1],"bubble":[520],"disabled":[516],"invisible":[516],"prevent":[4],"icon":[513],"noPanel":[4,"no-panel"],"a11yControls":[1,"a-1-1y-controls"],"subLabel":[513,"sub-label"],"svg":[1],"isActive":[32],"tabsId":[32],"setTabId":[64],"getOptions":[64],"setActive":[64]}],[260,"bal-tabs",{"float":[1],"fullwidth":[4],"accordion":[4],"overflow":[4],"options":[16],"context":[1],"iconPosition":[1,"icon-position"],"expanded":[4],"spaceless":[4],"clickable":[4],"border":[4],"inverted":[4],"optionalTabSelection":[4,"optional-tab-selection"],"debounce":[2],"vertical":[8],"verticalColSize":[1,"vertical-col-size"],"selectOnMobile":[4,"select-on-mobile"],"value":[1025],"dimInactiveElements":[4,"dim-inactive-elements"],"handleAsTabList":[4,"handle-as-tab-list"],"isAccordionOpen":[32],"accordionState":[32],"isNavbarOpen":[32],"inNavbar":[32],"inNavbarLight":[32],"enableLineRender":[32],"hasAnimated":[32],"index":[32],"isMobile":[32],"isTablet":[32],"language":[32],"store":[32],"animated":[32],"configChanged":[64],"select":[64],"getOptionByValue":[64],"renderLine":[64],"closeAccordion":[64]},[[0,"keydown","listenToKeyDown"]],{"options":["optionChanged"],"expanded":["expandedChanged"],"debounce":["debounceChanged"],"vertical":["verticalChanged"],"value":["valueChanged"]}]]],["p-427fe8eede",[[260,"bal-stack",{"layout":[1],"align":[1],"space":[1],"spaceRow":[1,"space-row"],"spaceColumn":[1,"space-column"],"px":[1],"py":[1],"useWrap":[4,"use-wrap"],"fitContent":[4,"fit-content"],"direction":[1],"alignment":[1]}]]],["p-c78c0dd43a",[[260,"bal-button-group",{"position":[1],"direction":[1],"reverse":[4]}],[260,"bal-button",{"color":[1],"elementType":[1,"element-type"],"disabled":[516],"size":[513],"href":[1],"target":[1],"rel":[1],"download":[1],"shadow":[4],"square":[4],"isActive":[4,"is-active"],"expanded":[4],"flat":[4],"outlined":[4],"inverted":[4],"loading":[4],"rounded":[4],"balPopup":[8,"bal-popup"],"icon":[1],"iconTurn":[4,"icon-turn"],"iconRight":[1,"icon-right"],"noWrap":[4,"no-wrap"],"name":[1],"value":[8],"a11yControls":[1,"a-1-1y-controls"],"a11yTitle":[1,"a-1-1y-title"],"a11yLabel":[1,"a-1-1y-label"],"a11yHaspopup":[1,"a-1-1y-haspopup"],"isLargestContentPaintDone":[32]},[[6,"click","listenOnClick"]]]]],["p-3c2762a456",[[260,"bal-list-item-accordion-head",{"accordionOpen":[1028,"accordion-open"],"icon":[1],"ariaState":[32],"language":[32],"configChanged":[64],"setAria":[64]},null,{"accordionOpen":["accordionOpenHandler"]}],[260,"bal-list-item-accordion-body",{"accordionGroup":[1,"accordion-group"],"contentSpace":[1,"content-space"],"contentAlignment":[1,"content-alignment"],"ariaState":[32],"setAria":[64]}],[260,"bal-list-item-subtitle"],[260,"bal-list-item-title",{"level":[1],"visualLevel":[1,"visual-level"]}],[260,"bal-list",{"disabled":[4],"background":[1],"border":[4],"accordionOneLevel":[4,"accordion-one-level"],"size":[1]},null,{"accordionOneLevel":["accordionOneLevelHandler"]}],[260,"bal-list-item",{"disabled":[4],"clickable":[4],"selected":[4],"accordion":[4],"subAccordionItem":[4,"sub-accordion-item"],"href":[1],"rel":[1],"target":[1],"download":[1],"state":[32],"configChanged":[64],"present":[64],"dismiss":[64],"toggle":[64]}],[260,"bal-list-item-content",{"contentAlignment":[1,"content-alignment"]}],[260,"bal-list-item-icon",{"right":[4]}]]],["p-3bb89f6a82",[[260,"bal-nav",{"logo":[16],"options":[16],"buttons":[16],"isTouch":[32],"isDesktop":[32],"language":[32],"region":[32],"isFlyoutActive":[32],"activeMetaLinkValue":[32],"activeMenuLinkValue":[32],"linkItems":[32],"metaButtons":[32],"configChanged":[64]},[[0,"balChange","listenToPopupChanges"],[5,"click","clickOnOutside"]],{"options":["optionChanged"],"buttons":["buttonChanged"]}],[260,"bal-nav-link-group",{"color":[1]}],[260,"bal-nav-link",{"variant":[1],"selected":[4],"clickable":[4],"rel":[1],"href":[1],"target":[1]}],[260,"bal-nav-link-grid"],[260,"bal-nav-link-grid-col",{"staticCol":[4,"static-col"]}],[260,"bal-nav-menu-bar",{"invisible":[1],"position":[1],"isHidden":[32]}],[260,"bal-nav-menu-flyout",{"navId":[1,"nav-id"],"isHidden":[32]},[[0,"focusout","onFocusLeave"]]],[260,"bal-nav-meta-bar",{"stayOnTopOfBackdrop":[4,"stay-on-top-of-backdrop"],"variant":[1],"size":[1],"invisible":[1],"position":[1],"isHidden":[32]},[[9,"scroll","handleScroll"]]]]]]'),e))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{F as FileUploadRejectionReason}from"./p-rBUN7c88.js";export{i as i18nBalClose}from"./p-Ct27z6g9.js";export{B as BalDate,i as i18nBalDate}from"./p-hcWLO6Gg.js";export{i as i18nBalInputStepper}from"./p-DEb5iNGc.js";export{i as i18nBalLabel}from"./p-JHAE10yr.js";export{i as i18nBalTimeInput}from"./p-B4aDEwd8.js";export{n as newBalStepOption}from"./p-DIC_sxLd.js";export{n as newBalTabOption}from"./p-BmVI6cLw.js";export{B as BalSnackbarController,a as BalToastController,b as balSnackbarController,c as balToastController,i as initialize,i as initializeBaloiseDesignSystem,s as setupConfig}from"./p-BFRjY4w3.js";import{b as t}from"./p-B1u-Mq75.js";import{b as
|
|
1
|
+
export{F as FileUploadRejectionReason}from"./p-rBUN7c88.js";export{i as i18nBalClose}from"./p-Ct27z6g9.js";export{B as BalDate,i as i18nBalDate}from"./p-hcWLO6Gg.js";export{i as i18nBalInputStepper}from"./p-DEb5iNGc.js";export{i as i18nBalLabel}from"./p-JHAE10yr.js";export{i as i18nBalTimeInput}from"./p-B4aDEwd8.js";export{n as newBalStepOption}from"./p-DIC_sxLd.js";export{n as newBalTabOption}from"./p-BmVI6cLw.js";export{B as BalSnackbarController,a as BalToastController,b as balSnackbarController,c as balToastController,i as initialize,i as initializeBaloiseDesignSystem,s as setupConfig}from"./p-BFRjY4w3.js";import{b as t}from"./p-B1u-Mq75.js";import{b as r}from"./p-MBsgW7uz.js";export{B as BalDevice}from"./p-MBsgW7uz.js";export{n as newBalOption}from"./p-BLp4ll3i.js";export{s as scrollToFirstInvalidField}from"./p-FCLKfv6B.js";import{g as l,c as p}from"./p-Ba5qjFjW.js";export{d as deepReady,i as isDescendant,s as shallowReady,w as wait,a as waitAfterFramePaint,b as waitAfterIdleCallback,e as waitAfterLargestContentfulPaintCallback,f as waitForComponent,h as waitForDesignSystem,j as waitOnLoadEventCallback}from"./p-Ba5qjFjW.js";export{I as INVALID_VALUE}from"./p-DuObDTix.js";export{B as BalScrollHandler}from"./p-DOUIg6bI.js";import{g as m,a as x}from"./p-BwTzTXZG.js";import{B as C,b as S}from"./p-CwRoS0HB.js";export{c as BalBreakpointSubject,d as BalBreakpointsUtil,a as balBreakpointSubject}from"./p-CwRoS0HB.js";export{a as attachToConfig,d as detachFromConfig,o as onBalConfigChange,u as updateBalAllowedLanguages,b as updateBalAnimated,c as updateBalIcons,e as updateBalLanguage,f as updateBalRegion,g as useBalConfig}from"./p-D7M-7v58.js";export{d as defaultConfig}from"./p-CBkFUwrD.js";import{S as D}from"./p-C20cwFWy.js";export{B as BalSwipeSubject}from"./p-C_FHgwWW.js";import"./p-BdVwMG9u.js";import"./p-PSBwy3yf.js";import"./p-D7ovid3w.js";const y={de:{optional:" (optional)"},en:{optional:" (optional)"},fr:{optional:" (optionnel)"},it:{optional:" (opzionale)"},nl:{optional:" (optioneel)"},es:{optional:" (opcional)"},pl:{optional:" (opcjonalnie)"},pt:{optional:" (opcional)"},sv:{optional:" (frivillig)"},fi:{optional:" (valinnainen)"}},v=a=>Object.assign(Object.assign({interface:"checkbox",labelHidden:!1,flat:!1,disabled:!1,readonly:!1,required:!1,nonSubmit:!1,invalid:!1,checked:!1},a),{label:"",html:a.label}),L=a=>Object.assign(Object.assign({interface:"radio",labelHidden:!1,flat:!1,disabled:!1,readonly:!1,required:!1,nonSubmit:!1,invalid:!1},a),{label:"",html:a.label}),O=(a,o,t=!1,s)=>({value:a,label:o,disabled:t,data:s}),k=(a,o=!1,t)=>O(a,a,o,t);class T extends D{constructor(){super((a=>a.orientationListener(this.state))),this.listener=new C,this.state=r.orientation.toObject(),this.listener.connect(),this.listener.add((()=>{const a=r.orientation.toObject();this.isEqual(a)||(this.state=a,this.notify(void 0))}))}attach(a){super.attach(a),a.orientationListener(this.state)}isEqual(a){return a.landscape===this.state.landscape&&a.portrait===this.state.portrait}}const A=new T;class E{constructor(){this.tag="bal-modal"}create(a){return"undefined"!=typeof customElements&&t.hasDocument?customElements.whenDefined(this.tag).then((()=>{const o=document.createElement(this.tag);return Object.assign(o,a),l(document).appendChild(o),new Promise((a=>p(o,a)))})):Promise.resolve()}async dismissAll(a,o){if(t.hasDocument){const t=m(document,this.tag);await Promise.all(t.map((t=>t.dismiss(a,o))))}}dismiss(a,o,s){if(t.hasDocument){const t=x(document,this.tag,s);return t?t.dismiss(a,o):Promise.reject("overlay does not exist")}return Promise.resolve(!1)}async getTop(){if(t.hasDocument)return x(document,this.tag)}}const P=new E,R=()=>r.hasTouchScreen,W=a=>"Safari"===a&&t.isSafari,z=()=>S.detect(),H=(a,o)=>("string"==typeof a&&(o=a),!!o&&S.detect().includes(o)),q=O,U=k;export{E as BalModalController,T as BalOrientationSubject,q as NewBalOptionValue,U as NewBalSingleOptionValue,S as balBreakpoints,t as balBrowser,r as balDevice,P as balModalController,A as balOrientationSubject,p as componentOnReady,l as getAppRoot,z as getPlatforms,R as hasTouchSupport,y as i18nBalFieldLabel,W as isBrowser,H as isPlatform,v as newBalCheckboxOption,O as newBalOptionValue,L as newBalRadioOption,k as newBalSingleOptionValue}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as t,r as e,c as a,H as i,g as s}from"./p-BdVwMG9u.js";import{_ as n,a as l}from"./p-dfXERft2.js";import{B as r}from"./p-ByiN-QjD.js";import{a as o,q as d}from"./p-Ba5qjFjW.js";import{L as h}from"./p-D7ovid3w.js";import{p as c}from"./p-Cj6DXhmQ.js";import{i as b}from"./p-xbSOW78W.js";import{B as u,i as m,d as g}from"./p-hcWLO6Gg.js";import{d as f}from"./p-CBkFUwrD.js";import{L as p}from"./p-B-L34nz8.js";import{L as _}from"./p-ZalPEZLa.js";import{a as y}from"./p-DBsOHTWj.js";import{i as v}from"./p-C4sZQbkT.js";import{d as k}from"./p-FCLKfv6B.js";import{l as w,c as x,d as C}from"./p-CpDHeXfo.js";import{N as j}from"./p-xVPGsAdF.js";import{I as D}from"./p-DuObDTix.js";import"./p-B1u-Mq75.js";import"./p-D7M-7v58.js";import"./p-BFTU3MAI.js";import"./p-CeIZ5hSt.js";import"./p-MBsgW7uz.js";import"./p-C20cwFWy.js";function O(t,e,a){return`${a}-${c(`${e}`,2,"0")}-${c(`${t}`,2,"0")}`}function V(t,e,a,i,s){const n=[],l=function(t,e){if(!(e<1||t<0))return new Date(t,e,0).getDate()}(t,e),r=function(t,e){if(!(e<1||e>12||t<0))return new Date(t,e-1,1)}(t,e);if(void 0!==l&&r){const r=function(){const t=new Date;return`${t.getFullYear()}-${c(`${t.getMonth()+1}`,2,"0")}-${c(`${t.getDate()}`,2,"0")}`}(),o=u.fromISO(a),d=u.fromISO(i),h=t=>!b(s)&&!s(t);for(let a=1;a<=l;a++){const i=O(a,e,t);n.push({day:a,month:e,year:t,isoDate:i,fullDate:u.fromISO(i).toFormat(),today:r===i,disabled:o.isAfter(i)||d.isBefore(i)||h(i)})}}return n}function B(t,e){if(e<1||t<0)return 1;const a=new Date(t,e-1,1).getDay();return 0===a?7:a}function M(t){return["en","de","fr","it","nl","es","pl","pt","sv","fi"].includes(t)?t:"de"}function P(t,e,a,i,s){const n=M(t),l=u.infoMonths({format:"long",locale:n}),r=u.fromISO(a),o=new Date,d=o.getFullYear(),h=o.getMonth()+1;let c=0;if(i&&void 0!==e){const t=u.fromISO(i);t.isValid&&(c=e>t.year?0:t.month||c)}let b=12;if(s&&void 0!==e){const t=u.fromISO(s);t.isValid&&(b=e<t.year?12:t.month||b)}return l.map(((t,a)=>{const i=a+1;return{label:t,value:i,today:i===h&&e===d,selected:i===r.month&&e===r.year,disabled:i<c||i>b}}))}const F=({isVisible:e,ref:a,grid:i,weekdays:s,selectedDate:n,firstDayOfWeek:l,onSelectDay:o})=>{const d=r.block("date-calendar").element("body").element("grid");return t("div",{role:"grid",class:Object.assign(Object.assign({},d.class()),d.modifier("visible").class(e)),"aria-hidden":e?"false":"true",ref:t=>a(t)},t("div",{role:"row",class:Object.assign({},d.element("head").class())},s.map((e=>t("span",{key:e.textContent,role:"columnheader","aria-label":e.ariaLabel,title:e.ariaLabel},e.textContent)))),t("div",{role:"row",class:Object.assign({},d.element("body").class()),style:{"--bal-date-first-week-day":`${l}`}},i.map((e=>t("bal-date-calendar-cell",Object.assign({key:e.isoDate},e,{selected:e.isoDate===n,onBalSelectDay:({detail:t})=>o(t)}))))))},z=({name:e,isVisible:a,girdHeight:i,list:s,onSelect:n,ref:l})=>{const o=r.block("date-calendar").element("body").element("list");return t("ul",{class:Object.assign(Object.assign(Object.assign({},o.class()),o.modifier(e).class()),o.modifier("visible").class(a)),"aria-hidden":a?"false":"true",style:{height:i-2-8-8+"px"},ref:t=>l?l(t):void 0},s.map((a=>t("li",{key:a.value,id:`${e}-${a.value}`},t("button",{class:Object.assign(Object.assign(Object.assign(Object.assign({},o.element("item").class()),o.element("item").modifier("today").class(a.today)),o.element("item").modifier("selected").class(a.selected)),o.element("item").modifier("disabled").class(a.disabled)),disabled:a.disabled,tabIndex:-1,onClick:()=>{a.disabled||n(a)}},a.label)))))},L=({language:e,onClickSelectMonthAndYear:a,monthFullNames:i,month:s,year:n,isCalendarVisible:l,isListVisible:o,onClickPreviousMonth:d,onClickNextMonth:h})=>{const c=r.block("date-calendar").element("nav"),b=m[e].nextMonth,u=m[e].previousMonth,g=m[e].selectMonth;return t("div",{class:Object.assign({},c.class())},t("div",{class:Object.assign({},c.modifier("start").class())},t("button",{title:g,"aria-label":g,tabIndex:-1,"data-testid":"change-year-month",onClick:a},t("span",null,i[s-1]," ",n),t("bal-icon",{name:"caret-up",color:"primary",size:"small",turn:l}))),t("div",{class:Object.assign({},c.modifier("end").class()),style:{display:o?"none":"flex"}},t("button",{title:u,"aria-label":u,onClick:d,tabIndex:-1,"data-testid":"previous-month"},t("bal-icon",{name:"caret-left",color:"primary",size:"small"})),t("button",{title:b,"aria-label":b,onClick:h,tabIndex:-1,"data-testid":"next-month"},t("bal-icon",{name:"caret-right",color:"primary",size:"small"}))))},$=class{constructor(t){e(this,t),this.balChange=a(this,"balChange"),this.oldMin="",this.oldMax="",this.selectedDate="",this.monthFullNames=[],this.weekdays=[],this.months=[],this.years=[],this.calendarGrid=[],this.firstDayOfWeek=0,this.month=0,this.year=0,this.language=f.language,this.isCalendarVisible=!0,this.isYearListVisible=!1,this.isMonthListVisible=!1,this.allowedDates=void 0,this.onSelectDay=t=>{this.valueChanged(t,this.selectedDate),this.balChange.emit(this.selectedDate)},this.onClickNextMonth=()=>{let t=this.year,e=this.month+1;e>12&&(e=1,t+=1),this.generateGridByMonthAndYear(e,t)},this.onClickPreviousMonth=()=>{let t=this.year,e=this.month-1;e<1&&(e=12,t-=1),this.generateGridByMonthAndYear(e,t)},this.onClickSelectMonthAndYear=async()=>{if(this.updateSelections(),!0===this.isCalendarVisible){if(this.isCalendarVisible=!1,this.isYearListVisible=!0,this.isMonthListVisible=!1,await o(),this.yearListEl){const t=this.yearListEl.querySelector(`#year-${this.year}`);this.yearListEl.scrollTop=t?t.offsetTop-76:0}}else this.isCalendarVisible=!0,this.isYearListVisible=!1,this.isMonthListVisible=!1},this.onClickYear=t=>{this.isYearListVisible=!1,this.isMonthListVisible=!0,this.generateGridByMonthAndYear(this.month,t),this.months=P(this.language,t,this.selectedDate,this.min,this.max)},this.onClickMonth=t=>{this.isYearListVisible=!1,this.isMonthListVisible=!1,this.isCalendarVisible=!0,this.generateGridByMonthAndYear(t,this.year)}}createLogger(t){this.log=t}valueChanged(t,e){if(t!==e){const e=u.fromISO(t);e.isValid?(this.generateGridByDate(e),this.selectedDate=e.toISODate()):(this.generateGridByDefaultDate(),this.selectedDate=""),this.updateSelections()}}rangePropChanged(){this.updateSelections(),this.generateGrid()}yearRangePropChanged(){this.updateSelections()}connectedCallback(){this.generateGridByDefaultDate(),this.valueChanged(this.value,void 0)}async configChanged(t){this.language=t.language,this.monthFullNames=u.infoMonths({format:"long",locale:this.language}),this.weekdays=function(t){const e=M(t),a=u.infoWeekdays({format:"short",locale:e}),i=u.infoWeekdays({format:"long",locale:e});return a.map(((t,e)=>({ariaLabel:i[e],textContent:t})))}(this.language),this.updateSelections()}swipeListener({left:t,right:e}){t?this.onClickNextMonth():e&&this.onClickPreviousMonth()}get minYear(){if(void 0===this.minYearProp){const t=(new Date).getFullYear()-100;return this.min&&u.fromISO(this.min).year||t}return this.minYearProp}get maxYear(){if(void 0===this.maxYearProp){const t=(new Date).getFullYear()+50;return this.max&&u.fromISO(this.max).year||t}return this.maxYearProp}updateSelections(){this.years=function(t,e,a){const i=[],s=(new Date).getFullYear();for(let n=e;n<=a;n++)i.push({value:n,label:`${n}`,disabled:!1,today:s===n,selected:t===n});return i}(this.year,this.minYear,this.maxYear),this.months=P(this.language,this.year,this.selectedDate,this.min,this.max)}generateGrid(){const t=u.fromISO(this.value);t.isValid?this.generateGridByDate(t):this.generateGridByDefaultDate()}generateGridByDate(t){void 0!==t.year&&void 0!==t.month&&this.generateGridByMonthAndYear(t.month,t.year)}generateGridByDefaultDate(){const t=u.fromISO(this.defaultDate);if(t.isValid)this.generateGridByDate(t);else{const t=new Date;this.month=t.getMonth()+1,this.year=t.getFullYear(),this.calendarGrid=V(this.year,this.month,this.min,this.max,this.allowedDates),this.firstDayOfWeek=B(this.year,this.month)}}generateGridByMonthAndYear(t,e){this.month===t&&this.year===e&&this.oldMin===this.min&&this.oldMax===this.max||(this.calendarGrid=V(e,t,this.min,this.max,this.allowedDates),this.firstDayOfWeek=B(e,t)),this.month=t,this.year=e,this.oldMin=this.min,this.oldMax=this.max}render(){var e;const a=(null===(e=this.gridEl)||void 0===e?void 0:e.clientHeight)||0,s=r.block("date-calendar"),n=s.element("body"),l=s.element("foot");return t(i,{key:"34efddf3c88e5470dcefd22c5cab262873d07de8",class:Object.assign({},s.class())},t(L,{key:"9c8942a95ff9f1c8fdc8b1e153a29632145d1c2b",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}),t("div",{key:"6a2cb7bba9c0568c1dc31d8b1c811b90c5845dce",class:Object.assign({},n.class())},t(F,{key:"a687e1e1f80bc8ea21bdc7ad4709537829005843",isVisible:this.isCalendarVisible,grid:this.calendarGrid,weekdays:this.weekdays,firstDayOfWeek:this.firstDayOfWeek,selectedDate:this.selectedDate,ref:t=>this.gridEl=t,onSelectDay:t=>this.onSelectDay(t)}),t(z,{key:"cba1e282fb92f5edfa04e97eefcf9b38b57b8428",name:"year",isVisible:this.isYearListVisible,girdHeight:a,list:this.years,ref:t=>this.yearListEl=t,onSelect:t=>this.onClickYear(t.value)}),t(z,{key:"ae7cb47aaffec3d3a91d1aab96f1fbdde34b7e6f",name:"month",isVisible:this.isMonthListVisible,girdHeight:a,list:this.months,onSelect:t=>this.onClickMonth(t.value)})),t("div",{key:"6e455964845a4e57abc793cb78916ed51fa0bdb3",class:Object.assign({},l.class())},t("slot",{key:"277a09ef4cb10f6f051c84b1ba9f9ae79f0d3479"})))}get el(){return s(this)}static get watchers(){return{value:["valueChanged"],min:["rangePropChanged"],max:["rangePropChanged"],minYearProp:["yearRangePropChanged"],maxYearProp:["yearRangePropChanged"]}}};n([h("bal-date-calendar"),l("design:type",Function),l("design:paramtypes",[Function]),l("design:returntype",void 0)],$.prototype,"createLogger",null),n([p(),l("design:type",Function),l("design:paramtypes",[Object]),l("design:returntype",Promise)],$.prototype,"configChanged",null),n([_({mobileOnly:!0}),l("design:type",Function),l("design:paramtypes",[Object]),l("design:returntype",void 0)],$.prototype,"swipeListener",null),$.style=':host{--bal-date-first-week-day:0;--bal-date-calendar-button-background:transparent;--bal-date-calendar-button-background-hover:var(--bal-color-light-blue-1);--bal-date-calendar-button-background-active:var(--bal-color-light-blue-2);--bal-date-calendar-button-color:var(--bal-color-text-primary);--bal-date-calendar-button-today-color:var(--bal-color-light-blue-3);--bal-date-calendar-button-today-color-hover:var(--bal-color-text-primary);--bal-date-calendar-button-today-color-active:var(--bal-color-text-primary);--bal-date-calendar-button-selected-background:var(--bal-color-primary);--bal-date-calendar-button-selected-color:var(--bal-color-text-white)}: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-date-calendar-button-color);border:none;background:var(--bal-date-calendar-button-background);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-date-calendar-button-background-hover)}}.bal-date-calendar__nav button:not(.bal-date-calendar__nav button--selected):not(.bal-date-calendar__nav button--disabled):active{background:var(--bal-date-calendar-button-background-active)}.bal-date-calendar__nav button--today:not(.bal-date-calendar__nav button--selected):not(.bal-date-calendar__nav button--disabled){color:var(--bal-date-calendar-button-today-color);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-date-calendar-button-today-color-hover)}}.bal-date-calendar__nav button--today:not(.bal-date-calendar__nav button--selected):not(.bal-date-calendar__nav button--disabled):active{color:var(--bal-date-calendar-button-today-color-active)}.bal-date-calendar__nav button--selected{background:var(--bal-date-calendar-button-selected-background);color:var(--bal-date-calendar-button-selected-color);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-date-calendar-button-color);border:none;background:var(--bal-date-calendar-button-background);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-date-calendar-button-background-hover)}}.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-date-calendar-button-background-active)}.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-date-calendar-button-today-color);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-date-calendar-button-today-color-hover)}}.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-date-calendar-button-today-color-active)}.bal-date-calendar__body__list .bal-date-calendar__body__list__item--selected{background:var(--bal-date-calendar-button-selected-background);color:var(--bal-date-calendar-button-selected-color);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-date-calendar-button-color);border:none;background:var(--bal-date-calendar-button-background);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-date-calendar-button-background-hover)}}.bal-date-calendar-cell:not(.bal-date-calendar-cell--selected):not(.bal-date-calendar-cell--disabled):active{background:var(--bal-date-calendar-button-background-active)}.bal-date-calendar-cell--today:not(.bal-date-calendar-cell--selected):not(.bal-date-calendar-cell--disabled){color:var(--bal-date-calendar-button-today-color);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-date-calendar-button-today-color-hover)}}.bal-date-calendar-cell--today:not(.bal-date-calendar-cell--selected):not(.bal-date-calendar-cell--disabled):active{color:var(--bal-date-calendar-button-today-color-active)}.bal-date-calendar-cell--selected{background:var(--bal-date-calendar-button-selected-background);color:var(--bal-date-calendar-button-selected-color);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)}';class I{constructor(t){this._options=t,this._position=0,this._positionEnd=0,this._isRangeSelection=!1,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)}get isRangeSelection(){return this._isRangeSelection}get value(){return this._options.isBackspace&&this._position>0?this._position-1:this._position}set value(t){this._position=t<0?0:t>this._options.mask.maxLength?this._options.mask.maxLength:t}toStart(){this.value=0}toEnd(){const t=this.getTarget();t&&(this.value=t.value.length)}next(t=1){const e=this._position+t;return e<=this._options.mask.maxLength&&(this._position=e),this._position}previous(t=1){const e=this._position-t;return this._position=e>=0?e:0,this._position}submit(){const t=this.getTarget();t&&t.selectionStart!==this._position&&t.selectionEnd!==this._position&&(t.selectionStart=this._position,t.selectionEnd=this._position)}getTarget(){if(this._options.component&&this._options.component.nativeInput)return this._options.component.nativeInput}}class S{constructor(t){this._options=t,this._value="",this._options.component&&this._options.component.nativeInput&&(this._value=this._options.component.nativeInput.value),this.position=new I(this._options),this.component=this._options.component}get target(){if(this._options.component&&this._options.component.nativeInput)return this._options.component.nativeInput}get value(){return this._value}set value(t){this._value=t}get focused(){return this._options.component.focused}isValueEmpty(){return""===this.value||null==this.value}preventDefault(){this._options.event.preventDefault&&this._options.event.preventDefault()}stopPropagation(){this.preventDefault(),this._options.event.stopPropagation&&this._options.event.stopPropagation()}async submit(t="input",e){this.target&&(this.target.value=this.value,"blur"!==t&&"tab"!==t&&this.position.submit(),this._options.component&&("input"!==t&&"tab"!==t||this._options.component.balInput.emit(this.value),"change"!==t&&"blur"!==t||void 0===e||w(this._options.component.value,e)&&(this._options.component.value=e,this._options.component.balChange.emit(e))))}}class A extends S{get clipboardData(){var t;return null===(t=this._options.event.clipboardData)||void 0===t?void 0:t.getData("text")}}class K extends S{}class T extends S{get key(){return this._options.event.key}get isCtrlOrCommandKey(){return this._options.event.metaKey||this._options.event.ctrlKey}get isBackspaceKey(){return"Backspace"===this._options.event.key}get isTabKey(){return"Tab"===this._options.event.key}get isWhiteSpaceKey(){return" "===this._options.event.key}get isDeleteKey(){return"Delete"===this._options.event.key||"Del"===this._options.event.key}get isNumberKey(){return T.NUMBER_KEYS.includes(this._options.event.key)}get isNavigationKey(){return T.NAVIGATION_KEYS.includes(this._options.event.key)}get isSelectAllCommand(){return(this._options.event.ctrlKey||this._options.event.metaKey)&&"a"===this.key}get isCopyCommand(){return(this._options.event.ctrlKey||this._options.event.metaKey)&&"c"===this.key}get isPasteCommand(){return(this._options.event.ctrlKey||this._options.event.metaKey)&&"v"===this.key}getCharAt(t=this.position.value){return this.value.charAt(t)}getCharAtBackspacePosition(){return this.getCharAt(this.position.value-1)}setChar(t=this._options.event.key,e=this.position.value){this.value=this.value.substring(0,e)+t+this.value.substring(e+1)}}T.NUMBER_KEYS=["0","1","2","3","4","5","6","7","8","9"],T.NAVIGATION_KEYS=["Home","End","ArrowLeft","Left","ArrowRight","Right","Tab","Enter","Esc","Escape"];class W extends S{get locale(){return this._options.event.locale}}class H extends S{}class N extends S{get newValue(){return this._options.event.newValue}get oldValue(){return this._options.event.oldValue}get didValueChange(){return this.newValue!==this.oldValue}}class R{constructor(t){this._isSeparator=!1,this._allowedKeys=[],this._locale="de-CH",this._from=t.from||0,this._to=t.to||0,this._isSeparator=void 0!==t.isSeparator&&t.isSeparator,this._mask=t.mask||"_",this._allowedKeys=t.allowedKeys?t.allowedKeys:this.allowedKeys,this._format=t.format}format(t){return this._format?this._format(t.replace(this.mask,""),this._locale,this.mask):t}get isSeparator(){return this._isSeparator}get to(){return this._to}get from(){return this._from}get mask(){return"function"==typeof this._mask?this._mask(this._locale):this._mask}get allowedKeys(){return this._allowedKeys}onI18nChange(t){this._locale=t}getValueOfTheBlock(t){return t.slice(this._from,this._to)}isTouched(t){return!this.getValueOfTheBlock(t).split("").every((t=>t===this.mask))}verifyAllowedKeyHits(t){return!(!this.isSeparator||t!==this.mask)||this.allowedKeys.indexOf(t)>=0}}class E{constructor(t=[]){this._list=t}get lastPosition(){return this._list[this._list.length-1].to}get list(){return this._list}set list(t){this._list=t}clone(){return new E([...this._list])}findByIndex(t,e=this.list){return e.find((e=>e.from<=t&&t<e.to))}getPlaceholderMask(){const t=[];return this.list.forEach((e=>{const a=e.to-e.from;for(let i=0;i<a;i++)t.push(e.mask)})),t.join("")}getRawValueWithoutMaskByContext(t){return this.getRawValueWithoutMask(t.value)}getRawValueWithoutMask(t){if(t){let e=[];const a=t.split("");for(let t=0;t<a.length;t++){const i=a[t],s=this.findByIndex(t);e.push(s&&!s.isSeparator?i.replace(s.mask,""):i)}return e=e.filter((t=>t)),this.list.filter((t=>t.isSeparator)).length===e.length?"":e.join("")}return""}formatBlocks(t,e){let a=`${t}`;for(let t=0;t<this.list.length;t++){const i=this.list[t];if(e!==t&&!i.isSeparator&&i.isTouched(a)){const t=i.getValueOfTheBlock(a),e=i.format(t);a=a.substring(0,i.from)+e+a.substring(i.to)}}return a}getBlockIndexFromPosition(t){const e=this.list.reduce(((t,e)=>t+e.to-e.from),0);if(t===e)return this.list.length-1;const a=this.list.findIndex((e=>e.from<=t&&t<e.to));return a<0?void 0:Math.min(e,a)}verifyCallOfNextSeparator(t,e){if(this.list.length-1>e){const a=this.list[e+1];if(a.isSeparator&&a.mask===t)return!0}return!1}}class G{constructor(t=[]){this.inputMode="text",this.locale="de-CH",this.blocks=new E(t)}onLocaleChange(t,e,a){if(t.target){const e=t.value.split("");for(let t=0;t<e.length;t++){const i=e[t],s=this.blocks.findByIndex(t),n=a.findByIndex(t);s&&n&&(s.isSeparator||i===n.mask)&&(e[t]=s.mask)}t.value=e.join("")}}onFocus(t){}onBlur(t){}onChange(t){t.submit("change",this.onParseValue(t.value))}onNavigationDown(t,e,a){}onSelectAll(t,e,a){}onPaste(t,e,a){t.value=t.clipboardData||"",t.position.toEnd()}onBlockChange(t,e,a){t.setChar(),t.position.next();const i=this.blocks.list[a+1];t.position.value===e.to&&i&&i.isSeparator&&t.position.next()}onBackspaceDown(t,e,a){if(t.position.previous(),!e.isSeparator){t.setChar(e.mask);const i=this.blocks.list[a-1];t.position.value===e.from&&i&&i.isSeparator&&t.position.previous()}}onDeleteDown(t,e,a){t.setChar(e.mask),t.position.next();const i=this.blocks.list[a+1];t.position.value===e.to&&i&&i.isSeparator&&t.position.next()}onValueChanged(t){const e=this.onFormatValue(t.newValue),a=t.focused&&""===e?this.blocks.getPlaceholderMask():e;t.value=a,t.position.toEnd()}onParseValue(t,e={allowInvalidValue:!1}){return t?t.trim():t||""}onFormatValue(t){return t?t.trim():t||""}toParsedValue(t){return this.onParseValue(t)}toFormattedValue(t){return this.onFormatValue(t)}fireI18nChange(t){const e=this.blocks.clone(),a=`${t.locale}`;this.locale=t.locale,this.blocks.list.forEach((e=>e.onI18nChange(t.locale))),this.onLocaleChange(t,a,e)}fireValueChanged(t){t.didValueChange&&this.onValueChanged(t)}firePaste(t){const e=this.blocks.getBlockIndexFromPosition(t.position.value);void 0!==e&&(this.onPaste(t,this.blocks.list[e],e),this.onChange(t))}fireClick(t){this.blocks.getPlaceholderMask()===t.value&&t.position.toStart()}fireFocus(t){t.target&&t.isValueEmpty()&&this.resetInputValueWithMask(t),this.onFocus(t)}fireBlur(t){t.target&&(this.isValueEmptyMask(t)?this.emptyInputValue(t):(this.onBlur(t),t.submit("blur",this.onParseValue(t.value,{allowInvalidValue:t.component.allowInvalidValue}))))}fireKeyDown(t){const e=t.isBackspaceKey?Math.max(0,t.position.value-1):t.position.value,a=this.blocks.getBlockIndexFromPosition(e);if(e>=this.blocks.lastPosition&&!t.isNavigationKey&&!t.isSelectAllCommand)return t.preventDefault(),void t.stopPropagation();if(void 0===a||t.position.isRangeSelection)t.isTabKey||t.preventDefault(),t.isBackspaceKey||t.isDeleteKey?this.resetInputValueWithMask(t):this.blocks.list[0].verifyAllowedKeyHits(t.key)&&this.onBlockChange(t,this.blocks.list[0],0);else{const e=this.blocks.list[a];if(t.isNavigationKey)this.onNavigationDown(t,e,a);else if(t.isSelectAllCommand)this.onSelectAll(t,e,a);else if(t.isCopyCommand);else if(t.isPasteCommand);else if(t.isBackspaceKey)t.preventDefault(),this.onBackspaceDown(t,e,a);else if(t.isDeleteKey)t.preventDefault(),this.onDeleteDown(t,e,a);else if(t.isWhiteSpaceKey){if(t.preventDefault(),"."===t.value[t.position.value]){t.stopPropagation();const e=t.value;t.value=e.substring(0,t.position.value)+"_"+e.substring(t.position.value+1)}}else if(e.verifyAllowedKeyHits(t.key))t.preventDefault(),this.onBlockChange(t,e,a);else if(this.blocks.verifyCallOfNextSeparator(t.key,a)&&(t.preventDefault(),t.position.value>this.blocks.list[a].from)){const i=this.blocks.list[a+1],s=t.value,n=e.getValueOfTheBlock(s),l=e.format(n);t.value=s.substring(0,e.from)+l+s.substring(e.to),t.position.value=i.to}const i=this.blocks.getBlockIndexFromPosition(t.position.value);if(i&&!t.isBackspaceKey){const e=this.blocks.formatBlocks(t.value,i),a=t.position.value;t.value=e,t.position.value=a}}}resetInputValueWithMask(t){t.value=this.blocks.getPlaceholderMask(),t.position.toStart()}isValueEmptyMask(t){return this.blocks.getPlaceholderMask()===t.value}emptyInputValue(t){t.value="",t.submit("blur",t.value)}}class Y extends G{constructor(){super([new R({from:0,to:2,allowedKeys:[...j],format:(t,e,a)=>Number.isNaN(parseInt(t,10))?`${a}${a}`:t.padStart(2,"0"),mask:t=>this.dayMask[t.split("-")[0]]||this.dayMask.de}),new R({from:2,to:3,mask:t=>g(t),isSeparator:!0}),new R({from:3,to:5,allowedKeys:[...j],format:(t,e,a)=>Number.isNaN(parseInt(t,10))?`${a}${a}`:t.padStart(2,"0"),mask:t=>this.monthMask[t.split("-")[0]]||this.monthMask.de}),new R({from:5,to:6,mask:t=>g(t),isSeparator:!0}),new R({from:6,to:10,allowedKeys:[...j],mask:t=>this.yearMask[t.split("-")[0]]||this.yearMask.de})]),this.maxLength=10,this.minLength=10,this.inputMode="decimal",this.dayMask={de:"T",en:"D",fr:"J",it:"G",nl:"D",es:"D",pl:"D",pt:"D",sv:"D",fi:"M"},this.monthMask={de:"M",en:"M",fr:"M",it:"M",nl:"M",es:"M",pl:"M",pt:"M",sv:"M",fi:"K"},this.yearMask={de:"J",en:"Y",fr:"A",it:"A",nl:"J",es:"A",pl:"R",pt:"A",sv:"Å",fi:"V"}}onParseValue(t,e={allowInvalidValue:!1}){if(t){const a=u.fromAnyFormat(this.blocks.getRawValueWithoutMask(t));if(a.isValid)return a.toISODate();if(e&&e.allowInvalidValue)return D}return""}onFormatValue(t){if(t){const e=u.fromISO(t);if(e.isValid)return e.toFormat()}return""}onPaste(t,e,a){const i=u.fromAnyFormat(t.clipboardData||"");i.isValid&&(t.value=i.toFormat(),t.position.toEnd())}onBlur(t){const e=this.blocks.getRawValueWithoutMaskByContext(t),a=u.fromAnyFormat(e);if(a.isValid){const e=a.toFormat();e!==t.value&&(t.value=e)}else t.component.allowInvalidValue&&e!==t.value&&(t.value=e)}}class q{constructor(t){this.mask=t}get attributes(){return{inputMode:this.mask.inputMode,maxLength:this.mask.maxLength,minLength:this.mask.minLength,type:"text",autoCapitalize:"off",autoCorrect:"off",spellcheck:!1}}bindComponent(t){this.component=t}bindComponentDidLoad(){this.component&&this.component.nativeInput&&(this.component.nativeInput.value=this.component.value||""),this.bindValueChanged(this.component.value,void 0)}bindConfigChanged(t){const{component:e,mask:a}=this,i=new W({component:e,mask:a,event:{locale:`${t.language}-${t.region}`}});this.mask.fireI18nChange(i),i.submit()}bindValueChanged(t,e){const{component:a,mask:i}=this,s=new N({component:a,mask:i,event:{newValue:t,oldValue:e}});this.mask.fireValueChanged(s),s.submit("blur")}bindKeyDown(t){if(this.isComponentAccessible){const{component:e,mask:a}=this,i=new T({event:t,component:e,mask:a});this.mask.fireKeyDown(i),i.submit("Tab"===t.key?"tab":"input"),e.balKeyPress.emit(t)}}bindFocus(t){if(this.isComponentAccessible){const{component:e,mask:a}=this;e.focused=!0;const i=new K({event:t,component:e,mask:a});this.mask.fireFocus(i),i.submit(),e.balFocus.emit(t)}}bindBlur(t){if(this.isComponentAccessible){const{component:e,mask:a}=this;e.focused=!1;const i=new K({event:t,component:e,mask:a});this.mask.fireBlur(i),i.submit("blur"),e.balBlur.emit(t)}}bindPaste(t){if(this.isComponentAccessible){const{component:e,mask:a}=this,i=new A({event:t,component:e,mask:a});this.mask.firePaste(i),i.submit()}}bindFormReset(t){const e=t.target;e&&(e===this.component.el||e.contains(this.component.el))&&(this.component.value=this.component.initialValue,this.component.inputValue=this.component.initialValue,clearTimeout(this.resetHandlerTimer),this.resetHandlerTimer=setTimeout((()=>{this.component.nativeInput&&(this.component.nativeInput.value=this.mask.toFormattedValue(this.component.value||""))})))}bindClick(t){if(this.isComponentAccessible){const{component:e,mask:a}=this,i=new H({event:t,component:e,mask:a});this.mask.fireClick(i),i.submit()}}bindHostClick(t){this.isComponentAccessible||(t.preventDefault(),t.stopPropagation())}bindGlobalClick(t){this.isComponentAccessible||t.target&&t.target===this.component.el&&(t.preventDefault(),t.stopPropagation())}get isComponentAccessible(){return!this.component.disabled&&!this.component.readonly}}const Z=class{constructor(t){e(this,t),this.balKeyPress=a(this,"balKeyPress"),this.balChange=a(this,"balChange"),this.balInput=a(this,"balInput"),this.balBlur=a(this,"balBlur"),this.balFocus=a(this,"balFocus"),this.inputId="bal-i-date-"+J++,this.inheritedAttributes={},this.maskAdapter=new q(new Y),this.focused=!1,this.isGrouped=!1,this.ariaForm=k,this.name=this.inputId,this.invalid=!1,this.required=!1,this.disabled=!1,this.readonly=!1,this.clickable=!1,this.autocomplete="off",this.hasIconRight=!1,this.value=void 0,this.inputValue=this.value,this.initialValue=this.value||"",this.autoInvalidOff=!1,this.allowInvalidValue=!1}createLogger(t){this.log=t}valueChanged(t,e){this.maskAdapter.bindValueChanged(t,e)}connectedCallback(){this.maskAdapter.bindComponent(this),this.isGrouped=d("bal-input-group",this.el)}componentDidLoad(){this.maskAdapter.bindComponentDidLoad()}componentWillRender(){this.inheritedAttributes=v(this.el,["aria-label","tabindex","title","data-hj-allow"])}async configChanged(t){this.maskAdapter.bindConfigChanged(t)}resetHandler(t){this.maskAdapter.bindFormReset(t)}listenOnClick(t){this.maskAdapter.bindGlobalClick(t)}async setFocus(){x(this)}async setBlur(){C(this)}getInputElement(){return Promise.resolve(this.nativeInput)}async setAriaForm(t){this.ariaForm=Object.assign({},t)}render(){const e=r.block("input-date"),a=e.element("native");return t(i,{key:"3c71adc69c5270029c588885037338aee6dfc85f",onClick:t=>this.maskAdapter.bindHostClick(t),class:Object.assign({},e.class())},t("input",Object.assign({key:"56c3f39f98b9dadb6b18f8bfea4c172e7bc0e607",class:{input:!0,"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:t=>this.nativeInput=t,id:this.ariaForm.controlId||this.inputId,"aria-labelledby":this.ariaForm.labelId,"aria-describedby":this.ariaForm.messageId,"aria-invalid":!0===this.invalid?"true":"false","aria-disabled":y(this.disabled),required:this.required,disabled:this.disabled,readonly:this.readonly,autoComplete:this.autocomplete},this.maskAdapter.attributes,this.inheritedAttributes,{placeholder:this.placeholder,value:this.inputValue,onKeyDown:t=>this.maskAdapter.bindKeyDown(t),onClick:t=>this.maskAdapter.bindClick(t),onFocus:t=>this.maskAdapter.bindFocus(t),onBlur:t=>this.maskAdapter.bindBlur(t),onPaste:t=>this.maskAdapter.bindPaste(t)})),t("input",{key:"dae67450389be6169c8257a0b1eaf877fb81e66b",type:"date",class:Object.assign({},a.class()),name:this.name,min:this.min,max:this.max,value:this.value,tabindex:-1,"aria-hidden":"true"}))}get el(){return s(this)}static get watchers(){return{value:["valueChanged"]}}};n([h("bal-input-date"),l("design:type",Function),l("design:paramtypes",[Function]),l("design:returntype",void 0)],Z.prototype,"createLogger",null),n([p(),l("design:type",Function),l("design:paramtypes",[Object]),l("design:returntype",Promise)],Z.prototype,"configChanged",null);let J=0;Z.style=".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}";export{$ as bal_date_calendar,Z as bal_input_date}
|
|
1
|
+
import{h as t,r as e,c as a,H as i,g as s}from"./p-BdVwMG9u.js";import{_ as n,a as l}from"./p-dfXERft2.js";import{B as r}from"./p-ByiN-QjD.js";import{a as o,q as d}from"./p-Ba5qjFjW.js";import{L as h}from"./p-D7ovid3w.js";import{p as c}from"./p-Cj6DXhmQ.js";import{i as b}from"./p-xbSOW78W.js";import{B as u,i as m,d as g}from"./p-hcWLO6Gg.js";import{d as f}from"./p-CBkFUwrD.js";import{L as _}from"./p-B-L34nz8.js";import{L as p}from"./p-DRqAN-8G.js";import{a as y}from"./p-DBsOHTWj.js";import{i as v}from"./p-C4sZQbkT.js";import{d as k}from"./p-FCLKfv6B.js";import{l as w,c as x,d as C}from"./p-CpDHeXfo.js";import{N as j}from"./p-xVPGsAdF.js";import{I as D}from"./p-DuObDTix.js";import"./p-B1u-Mq75.js";import"./p-D7M-7v58.js";import"./p-BFTU3MAI.js";import"./p-C_FHgwWW.js";import"./p-MBsgW7uz.js";import"./p-C20cwFWy.js";function O(t,e,a){return`${a}-${c(`${e}`,2,"0")}-${c(`${t}`,2,"0")}`}function V(t,e,a,i,s){const n=[],l=function(t,e){if(!(e<1||t<0))return new Date(t,e,0).getDate()}(t,e),r=function(t,e){if(!(e<1||e>12||t<0))return new Date(t,e-1,1)}(t,e);if(void 0!==l&&r){const r=function(){const t=new Date;return`${t.getFullYear()}-${c(`${t.getMonth()+1}`,2,"0")}-${c(`${t.getDate()}`,2,"0")}`}(),o=u.fromISO(a),d=u.fromISO(i),h=t=>!b(s)&&!s(t);for(let a=1;a<=l;a++){const i=O(a,e,t);n.push({day:a,month:e,year:t,isoDate:i,fullDate:u.fromISO(i).toFormat(),today:r===i,disabled:o.isAfter(i)||d.isBefore(i)||h(i)})}}return n}function B(t,e){if(e<1||t<0)return 1;const a=new Date(t,e-1,1).getDay();return 0===a?7:a}function M(t){return["en","de","fr","it","nl","es","pl","pt","sv","fi"].includes(t)?t:"de"}function P(t,e,a,i,s){const n=M(t),l=u.infoMonths({format:"long",locale:n}),r=u.fromISO(a),o=new Date,d=o.getFullYear(),h=o.getMonth()+1;let c=0;if(i&&void 0!==e){const t=u.fromISO(i);t.isValid&&(c=e>t.year?0:t.month||c)}let b=12;if(s&&void 0!==e){const t=u.fromISO(s);t.isValid&&(b=e<t.year?12:t.month||b)}return l.map(((t,a)=>{const i=a+1;return{label:t,value:i,today:i===h&&e===d,selected:i===r.month&&e===r.year,disabled:i<c||i>b}}))}const F=({isVisible:e,ref:a,grid:i,weekdays:s,selectedDate:n,firstDayOfWeek:l,onSelectDay:o})=>{const d=r.block("date-calendar").element("body").element("grid");return t("div",{role:"grid",class:Object.assign(Object.assign({},d.class()),d.modifier("visible").class(e)),"aria-hidden":e?"false":"true",ref:t=>a(t)},t("div",{role:"row",class:Object.assign({},d.element("head").class())},s.map((e=>t("span",{key:e.textContent,role:"columnheader","aria-label":e.ariaLabel,title:e.ariaLabel},e.textContent)))),t("div",{role:"row",class:Object.assign({},d.element("body").class()),style:{"--bal-date-first-week-day":`${l}`}},i.map((e=>t("bal-date-calendar-cell",Object.assign({key:e.isoDate},e,{selected:e.isoDate===n,onBalSelectDay:({detail:t})=>o(t)}))))))},z=({name:e,isVisible:a,girdHeight:i,list:s,onSelect:n,ref:l})=>{const o=r.block("date-calendar").element("body").element("list");return t("ul",{class:Object.assign(Object.assign(Object.assign({},o.class()),o.modifier(e).class()),o.modifier("visible").class(a)),"aria-hidden":a?"false":"true",style:{height:i-2-8-8+"px"},ref:t=>l?l(t):void 0},s.map((a=>t("li",{key:a.value,id:`${e}-${a.value}`},t("button",{class:Object.assign(Object.assign(Object.assign(Object.assign({},o.element("item").class()),o.element("item").modifier("today").class(a.today)),o.element("item").modifier("selected").class(a.selected)),o.element("item").modifier("disabled").class(a.disabled)),disabled:a.disabled,tabIndex:-1,onClick:()=>{a.disabled||n(a)}},a.label)))))},$=({language:e,onClickSelectMonthAndYear:a,monthFullNames:i,month:s,year:n,isCalendarVisible:l,isListVisible:o,onClickPreviousMonth:d,onClickNextMonth:h})=>{const c=r.block("date-calendar").element("nav"),b=m[e].nextMonth,u=m[e].previousMonth,g=m[e].selectMonth;return t("div",{class:Object.assign({},c.class())},t("div",{class:Object.assign({},c.modifier("start").class())},t("button",{title:g,"aria-label":g,tabIndex:-1,"data-testid":"change-year-month",onClick:a},t("span",null,i[s-1]," ",n),t("bal-icon",{name:"caret-up",color:"primary",size:"small",turn:l}))),t("div",{class:Object.assign({},c.modifier("end").class()),style:{display:o?"none":"flex"}},t("button",{title:u,"aria-label":u,onClick:d,tabIndex:-1,"data-testid":"previous-month"},t("bal-icon",{name:"caret-left",color:"primary",size:"small"})),t("button",{title:b,"aria-label":b,onClick:h,tabIndex:-1,"data-testid":"next-month"},t("bal-icon",{name:"caret-right",color:"primary",size:"small"}))))},L=class{constructor(t){e(this,t),this.balChange=a(this,"balChange"),this.oldMin="",this.oldMax="",this.selectedDate="",this.monthFullNames=[],this.weekdays=[],this.months=[],this.years=[],this.calendarGrid=[],this.firstDayOfWeek=0,this.month=0,this.year=0,this.language=f.language,this.isCalendarVisible=!0,this.isYearListVisible=!1,this.isMonthListVisible=!1,this.allowedDates=void 0,this.onSelectDay=t=>{this.valueChanged(t,this.selectedDate),this.balChange.emit(this.selectedDate)},this.onClickNextMonth=()=>{let t=this.year,e=this.month+1;e>12&&(e=1,t+=1),this.generateGridByMonthAndYear(e,t)},this.onClickPreviousMonth=()=>{let t=this.year,e=this.month-1;e<1&&(e=12,t-=1),this.generateGridByMonthAndYear(e,t)},this.onClickSelectMonthAndYear=async()=>{if(this.updateSelections(),!0===this.isCalendarVisible){if(this.isCalendarVisible=!1,this.isYearListVisible=!0,this.isMonthListVisible=!1,await o(),this.yearListEl){const t=this.yearListEl.querySelector(`#year-${this.year}`);this.yearListEl.scrollTop=t?t.offsetTop-76:0}}else this.isCalendarVisible=!0,this.isYearListVisible=!1,this.isMonthListVisible=!1},this.onClickYear=t=>{this.isYearListVisible=!1,this.isMonthListVisible=!0,this.generateGridByMonthAndYear(this.month,t),this.months=P(this.language,t,this.selectedDate,this.min,this.max)},this.onClickMonth=t=>{this.isYearListVisible=!1,this.isMonthListVisible=!1,this.isCalendarVisible=!0,this.generateGridByMonthAndYear(t,this.year)}}createLogger(t){this.log=t}valueChanged(t,e){if(t!==e){const e=u.fromISO(t);e.isValid?(this.generateGridByDate(e),this.selectedDate=e.toISODate()):(this.generateGridByDefaultDate(),this.selectedDate=""),this.updateSelections()}}rangePropChanged(){this.updateSelections(),this.generateGrid()}yearRangePropChanged(){this.updateSelections()}connectedCallback(){this.generateGridByDefaultDate(),this.valueChanged(this.value,void 0)}async configChanged(t){this.language=t.language,this.monthFullNames=u.infoMonths({format:"long",locale:this.language}),this.weekdays=function(t){const e=M(t),a=u.infoWeekdays({format:"short",locale:e}),i=u.infoWeekdays({format:"long",locale:e});return a.map(((t,e)=>({ariaLabel:i[e],textContent:t})))}(this.language),this.updateSelections()}swipeListener({left:t,right:e}){t?this.onClickNextMonth():e&&this.onClickPreviousMonth()}get minYear(){if(void 0===this.minYearProp){const t=(new Date).getFullYear()-100;return this.min&&u.fromISO(this.min).year||t}return this.minYearProp}get maxYear(){if(void 0===this.maxYearProp){const t=(new Date).getFullYear()+50;return this.max&&u.fromISO(this.max).year||t}return this.maxYearProp}updateSelections(){this.years=function(t,e,a){const i=[],s=(new Date).getFullYear();for(let n=e;n<=a;n++)i.push({value:n,label:`${n}`,disabled:!1,today:s===n,selected:t===n});return i}(this.year,this.minYear,this.maxYear),this.months=P(this.language,this.year,this.selectedDate,this.min,this.max)}generateGrid(){const t=u.fromISO(this.value);t.isValid?this.generateGridByDate(t):this.generateGridByDefaultDate()}generateGridByDate(t){void 0!==t.year&&void 0!==t.month&&this.generateGridByMonthAndYear(t.month,t.year)}generateGridByDefaultDate(){const t=u.fromISO(this.defaultDate);if(t.isValid)this.generateGridByDate(t);else{const t=new Date;this.month=t.getMonth()+1,this.year=t.getFullYear(),this.calendarGrid=V(this.year,this.month,this.min,this.max,this.allowedDates),this.firstDayOfWeek=B(this.year,this.month)}}generateGridByMonthAndYear(t,e){this.month===t&&this.year===e&&this.oldMin===this.min&&this.oldMax===this.max||(this.calendarGrid=V(e,t,this.min,this.max,this.allowedDates),this.firstDayOfWeek=B(e,t)),this.month=t,this.year=e,this.oldMin=this.min,this.oldMax=this.max}render(){var e;const a=(null===(e=this.gridEl)||void 0===e?void 0:e.clientHeight)||0,s=r.block("date-calendar"),n=s.element("body"),l=s.element("foot");return t(i,{key:"34efddf3c88e5470dcefd22c5cab262873d07de8",class:Object.assign({},s.class())},t($,{key:"9c8942a95ff9f1c8fdc8b1e153a29632145d1c2b",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}),t("div",{key:"6a2cb7bba9c0568c1dc31d8b1c811b90c5845dce",class:Object.assign({},n.class())},t(F,{key:"a687e1e1f80bc8ea21bdc7ad4709537829005843",isVisible:this.isCalendarVisible,grid:this.calendarGrid,weekdays:this.weekdays,firstDayOfWeek:this.firstDayOfWeek,selectedDate:this.selectedDate,ref:t=>this.gridEl=t,onSelectDay:t=>this.onSelectDay(t)}),t(z,{key:"cba1e282fb92f5edfa04e97eefcf9b38b57b8428",name:"year",isVisible:this.isYearListVisible,girdHeight:a,list:this.years,ref:t=>this.yearListEl=t,onSelect:t=>this.onClickYear(t.value)}),t(z,{key:"ae7cb47aaffec3d3a91d1aab96f1fbdde34b7e6f",name:"month",isVisible:this.isMonthListVisible,girdHeight:a,list:this.months,onSelect:t=>this.onClickMonth(t.value)})),t("div",{key:"6e455964845a4e57abc793cb78916ed51fa0bdb3",class:Object.assign({},l.class())},t("slot",{key:"277a09ef4cb10f6f051c84b1ba9f9ae79f0d3479"})))}get el(){return s(this)}static get watchers(){return{value:["valueChanged"],min:["rangePropChanged"],max:["rangePropChanged"],minYearProp:["yearRangePropChanged"],maxYearProp:["yearRangePropChanged"]}}};n([h("bal-date-calendar"),l("design:type",Function),l("design:paramtypes",[Function]),l("design:returntype",void 0)],L.prototype,"createLogger",null),n([_(),l("design:type",Function),l("design:paramtypes",[Object]),l("design:returntype",Promise)],L.prototype,"configChanged",null),n([p({mobileOnly:!0}),l("design:type",Function),l("design:paramtypes",[Object]),l("design:returntype",void 0)],L.prototype,"swipeListener",null),L.style=':host{--bal-date-first-week-day:0;--bal-date-calendar-button-background:transparent;--bal-date-calendar-button-background-hover:var(--bal-color-light-blue-1);--bal-date-calendar-button-background-active:var(--bal-color-light-blue-2);--bal-date-calendar-button-color:var(--bal-color-text-primary);--bal-date-calendar-button-today-color:var(--bal-color-light-blue-3);--bal-date-calendar-button-today-color-hover:var(--bal-color-text-primary);--bal-date-calendar-button-today-color-active:var(--bal-color-text-primary);--bal-date-calendar-button-selected-background:var(--bal-color-primary);--bal-date-calendar-button-selected-color:var(--bal-color-text-white)}: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-date-calendar-button-color);border:none;background:var(--bal-date-calendar-button-background);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-date-calendar-button-background-hover)}}.bal-date-calendar__nav button:not(.bal-date-calendar__nav button--selected):not(.bal-date-calendar__nav button--disabled):active{background:var(--bal-date-calendar-button-background-active)}.bal-date-calendar__nav button--today:not(.bal-date-calendar__nav button--selected):not(.bal-date-calendar__nav button--disabled){color:var(--bal-date-calendar-button-today-color);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-date-calendar-button-today-color-hover)}}.bal-date-calendar__nav button--today:not(.bal-date-calendar__nav button--selected):not(.bal-date-calendar__nav button--disabled):active{color:var(--bal-date-calendar-button-today-color-active)}.bal-date-calendar__nav button--selected{background:var(--bal-date-calendar-button-selected-background);color:var(--bal-date-calendar-button-selected-color);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-date-calendar-button-color);border:none;background:var(--bal-date-calendar-button-background);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-date-calendar-button-background-hover)}}.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-date-calendar-button-background-active)}.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-date-calendar-button-today-color);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-date-calendar-button-today-color-hover)}}.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-date-calendar-button-today-color-active)}.bal-date-calendar__body__list .bal-date-calendar__body__list__item--selected{background:var(--bal-date-calendar-button-selected-background);color:var(--bal-date-calendar-button-selected-color);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-date-calendar-button-color);border:none;background:var(--bal-date-calendar-button-background);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-date-calendar-button-background-hover)}}.bal-date-calendar-cell:not(.bal-date-calendar-cell--selected):not(.bal-date-calendar-cell--disabled):active{background:var(--bal-date-calendar-button-background-active)}.bal-date-calendar-cell--today:not(.bal-date-calendar-cell--selected):not(.bal-date-calendar-cell--disabled){color:var(--bal-date-calendar-button-today-color);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-date-calendar-button-today-color-hover)}}.bal-date-calendar-cell--today:not(.bal-date-calendar-cell--selected):not(.bal-date-calendar-cell--disabled):active{color:var(--bal-date-calendar-button-today-color-active)}.bal-date-calendar-cell--selected{background:var(--bal-date-calendar-button-selected-background);color:var(--bal-date-calendar-button-selected-color);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)}';class A{constructor(t){this._options=t,this._position=0,this._positionEnd=0,this._isRangeSelection=!1,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)}get isRangeSelection(){return this._isRangeSelection}get value(){return this._options.isBackspace&&this._position>0?this._position-1:this._position}set value(t){this._position=t<0?0:t>this._options.mask.maxLength?this._options.mask.maxLength:t}toStart(){this.value=0}toEnd(){const t=this.getTarget();t&&(this.value=t.value.length)}next(t=1){const e=this._position+t;return e<=this._options.mask.maxLength&&(this._position=e),this._position}previous(t=1){const e=this._position-t;return this._position=e>=0?e:0,this._position}submit(){const t=this.getTarget();t&&t.selectionStart!==this._position&&t.selectionEnd!==this._position&&(t.selectionStart=this._position,t.selectionEnd=this._position)}getTarget(){if(this._options.component&&this._options.component.nativeInput)return this._options.component.nativeInput}}class I{constructor(t){this._options=t,this._value="",this._options.component&&this._options.component.nativeInput&&(this._value=this._options.component.nativeInput.value),this.position=new A(this._options),this.component=this._options.component}get target(){if(this._options.component&&this._options.component.nativeInput)return this._options.component.nativeInput}get value(){return this._value}set value(t){this._value=t}get focused(){return this._options.component.focused}isValueEmpty(){return""===this.value||null==this.value}preventDefault(){this._options.event.preventDefault&&this._options.event.preventDefault()}stopPropagation(){this.preventDefault(),this._options.event.stopPropagation&&this._options.event.stopPropagation()}async submit(t="input",e){this.target&&(this.target.value=this.value,"blur"!==t&&"tab"!==t&&this.position.submit(),this._options.component&&("input"!==t&&"tab"!==t||this._options.component.balInput.emit(this.value),"change"!==t&&"blur"!==t||void 0===e||w(this._options.component.value,e)&&(this._options.component.value=e,this._options.component.balChange.emit(e))))}}class S extends I{get clipboardData(){var t;return null===(t=this._options.event.clipboardData)||void 0===t?void 0:t.getData("text")}}class K extends I{}class W extends I{get key(){return this._options.event.key}get isCtrlOrCommandKey(){return this._options.event.metaKey||this._options.event.ctrlKey}get isBackspaceKey(){return"Backspace"===this._options.event.key}get isTabKey(){return"Tab"===this._options.event.key}get isWhiteSpaceKey(){return" "===this._options.event.key}get isDeleteKey(){return"Delete"===this._options.event.key||"Del"===this._options.event.key}get isNumberKey(){return W.NUMBER_KEYS.includes(this._options.event.key)}get isNavigationKey(){return W.NAVIGATION_KEYS.includes(this._options.event.key)}get isSelectAllCommand(){return(this._options.event.ctrlKey||this._options.event.metaKey)&&"a"===this.key}get isCopyCommand(){return(this._options.event.ctrlKey||this._options.event.metaKey)&&"c"===this.key}get isPasteCommand(){return(this._options.event.ctrlKey||this._options.event.metaKey)&&"v"===this.key}getCharAt(t=this.position.value){return this.value.charAt(t)}getCharAtBackspacePosition(){return this.getCharAt(this.position.value-1)}setChar(t=this._options.event.key,e=this.position.value){this.value=this.value.substring(0,e)+t+this.value.substring(e+1)}}W.NUMBER_KEYS=["0","1","2","3","4","5","6","7","8","9"],W.NAVIGATION_KEYS=["Home","End","ArrowLeft","Left","ArrowRight","Right","Tab","Enter","Esc","Escape"];class T extends I{get locale(){return this._options.event.locale}}class H extends I{}class N extends I{get newValue(){return this._options.event.newValue}get oldValue(){return this._options.event.oldValue}get didValueChange(){return this.newValue!==this.oldValue}}class R{constructor(t){this._isSeparator=!1,this._allowedKeys=[],this._locale="de-CH",this._from=t.from||0,this._to=t.to||0,this._isSeparator=void 0!==t.isSeparator&&t.isSeparator,this._mask=t.mask||"_",this._allowedKeys=t.allowedKeys?t.allowedKeys:this.allowedKeys,this._format=t.format}format(t){return this._format?this._format(t.replace(this.mask,""),this._locale,this.mask):t}get isSeparator(){return this._isSeparator}get to(){return this._to}get from(){return this._from}get mask(){return"function"==typeof this._mask?this._mask(this._locale):this._mask}get allowedKeys(){return this._allowedKeys}onI18nChange(t){this._locale=t}getValueOfTheBlock(t){return t.slice(this._from,this._to)}isTouched(t){return!this.getValueOfTheBlock(t).split("").every((t=>t===this.mask))}verifyAllowedKeyHits(t){return!(!this.isSeparator||t!==this.mask)||this.allowedKeys.indexOf(t)>=0}}class G{constructor(t=[]){this._list=t}get lastPosition(){return this._list[this._list.length-1].to}get list(){return this._list}set list(t){this._list=t}clone(){return new G([...this._list])}findByIndex(t,e=this.list){return e.find((e=>e.from<=t&&t<e.to))}getPlaceholderMask(){const t=[];return this.list.forEach((e=>{const a=e.to-e.from;for(let i=0;i<a;i++)t.push(e.mask)})),t.join("")}getRawValueWithoutMaskByContext(t){return this.getRawValueWithoutMask(t.value)}getRawValueWithoutMask(t){if(t){let e=[];const a=t.split("");for(let t=0;t<a.length;t++){const i=a[t],s=this.findByIndex(t);e.push(s&&!s.isSeparator?i.replace(s.mask,""):i)}return e=e.filter((t=>t)),this.list.filter((t=>t.isSeparator)).length===e.length?"":e.join("")}return""}formatBlocks(t,e){let a=`${t}`;for(let t=0;t<this.list.length;t++){const i=this.list[t];if(e!==t&&!i.isSeparator&&i.isTouched(a)){const t=i.getValueOfTheBlock(a),e=i.format(t);a=a.substring(0,i.from)+e+a.substring(i.to)}}return a}getBlockIndexFromPosition(t){const e=this.list.reduce(((t,e)=>t+e.to-e.from),0);if(t===e)return this.list.length-1;const a=this.list.findIndex((e=>e.from<=t&&t<e.to));return a<0?void 0:Math.min(e,a)}verifyCallOfNextSeparator(t,e){if(this.list.length-1>e){const a=this.list[e+1];if(a.isSeparator&&a.mask===t)return!0}return!1}}class E{constructor(t=[]){this.inputMode="text",this.locale="de-CH",this.blocks=new G(t)}onLocaleChange(t,e,a){if(t.target){const e=t.value.split("");for(let t=0;t<e.length;t++){const i=e[t],s=this.blocks.findByIndex(t),n=a.findByIndex(t);s&&n&&(s.isSeparator||i===n.mask)&&(e[t]=s.mask)}t.value=e.join("")}}onFocus(t){}onBlur(t){}onChange(t){t.submit("change",this.onParseValue(t.value))}onNavigationDown(t,e,a){}onSelectAll(t,e,a){}onPaste(t,e,a){t.value=t.clipboardData||"",t.position.toEnd()}onBlockChange(t,e,a){t.setChar(),t.position.next();const i=this.blocks.list[a+1];t.position.value===e.to&&i&&i.isSeparator&&t.position.next()}onBackspaceDown(t,e,a){if(t.position.previous(),!e.isSeparator){t.setChar(e.mask);const i=this.blocks.list[a-1];t.position.value===e.from&&i&&i.isSeparator&&t.position.previous()}}onDeleteDown(t,e,a){t.setChar(e.mask),t.position.next();const i=this.blocks.list[a+1];t.position.value===e.to&&i&&i.isSeparator&&t.position.next()}onValueChanged(t){const e=this.onFormatValue(t.newValue),a=t.focused&&""===e?this.blocks.getPlaceholderMask():e;t.value=a,t.position.toEnd()}onParseValue(t,e={allowInvalidValue:!1}){return t?t.trim():t||""}onFormatValue(t){return t?t.trim():t||""}toParsedValue(t){return this.onParseValue(t)}toFormattedValue(t){return this.onFormatValue(t)}fireI18nChange(t){const e=this.blocks.clone(),a=`${t.locale}`;this.locale=t.locale,this.blocks.list.forEach((e=>e.onI18nChange(t.locale))),this.onLocaleChange(t,a,e)}fireValueChanged(t){t.didValueChange&&this.onValueChanged(t)}firePaste(t){const e=this.blocks.getBlockIndexFromPosition(t.position.value);void 0!==e&&(this.onPaste(t,this.blocks.list[e],e),this.onChange(t))}fireClick(t){this.blocks.getPlaceholderMask()===t.value&&t.position.toStart()}fireFocus(t){t.target&&t.isValueEmpty()&&this.resetInputValueWithMask(t),this.onFocus(t)}fireBlur(t){t.target&&(this.isValueEmptyMask(t)?this.emptyInputValue(t):(this.onBlur(t),t.submit("blur",this.onParseValue(t.value,{allowInvalidValue:t.component.allowInvalidValue}))))}fireKeyDown(t){const e=t.isBackspaceKey?Math.max(0,t.position.value-1):t.position.value,a=this.blocks.getBlockIndexFromPosition(e);if(e>=this.blocks.lastPosition&&!t.isNavigationKey&&!t.isSelectAllCommand)return t.preventDefault(),void t.stopPropagation();if(void 0===a||t.position.isRangeSelection)t.isTabKey||t.preventDefault(),t.isBackspaceKey||t.isDeleteKey?this.resetInputValueWithMask(t):this.blocks.list[0].verifyAllowedKeyHits(t.key)&&this.onBlockChange(t,this.blocks.list[0],0);else{const e=this.blocks.list[a];if(t.isNavigationKey)this.onNavigationDown(t,e,a);else if(t.isSelectAllCommand)this.onSelectAll(t,e,a);else if(t.isCopyCommand);else if(t.isPasteCommand);else if(t.isBackspaceKey)t.preventDefault(),this.onBackspaceDown(t,e,a);else if(t.isDeleteKey)t.preventDefault(),this.onDeleteDown(t,e,a);else if(t.isWhiteSpaceKey){if(t.preventDefault(),"."===t.value[t.position.value]){t.stopPropagation();const e=t.value;t.value=e.substring(0,t.position.value)+"_"+e.substring(t.position.value+1)}}else if(e.verifyAllowedKeyHits(t.key))t.preventDefault(),this.onBlockChange(t,e,a);else if(this.blocks.verifyCallOfNextSeparator(t.key,a)&&(t.preventDefault(),t.position.value>this.blocks.list[a].from)){const i=this.blocks.list[a+1],s=t.value,n=e.getValueOfTheBlock(s),l=e.format(n);t.value=s.substring(0,e.from)+l+s.substring(e.to),t.position.value=i.to}const i=this.blocks.getBlockIndexFromPosition(t.position.value);if(i&&!t.isBackspaceKey){const e=this.blocks.formatBlocks(t.value,i),a=t.position.value;t.value=e,t.position.value=a}}}resetInputValueWithMask(t){t.value=this.blocks.getPlaceholderMask(),t.position.toStart()}isValueEmptyMask(t){return this.blocks.getPlaceholderMask()===t.value}emptyInputValue(t){t.value="",t.submit("blur",t.value)}}class Y extends E{constructor(){super([new R({from:0,to:2,allowedKeys:[...j],format:(t,e,a)=>Number.isNaN(parseInt(t,10))?`${a}${a}`:t.padStart(2,"0"),mask:t=>this.dayMask[t.split("-")[0]]||this.dayMask.de}),new R({from:2,to:3,mask:t=>g(t),isSeparator:!0}),new R({from:3,to:5,allowedKeys:[...j],format:(t,e,a)=>Number.isNaN(parseInt(t,10))?`${a}${a}`:t.padStart(2,"0"),mask:t=>this.monthMask[t.split("-")[0]]||this.monthMask.de}),new R({from:5,to:6,mask:t=>g(t),isSeparator:!0}),new R({from:6,to:10,allowedKeys:[...j],mask:t=>this.yearMask[t.split("-")[0]]||this.yearMask.de})]),this.maxLength=10,this.minLength=10,this.inputMode="decimal",this.dayMask={de:"T",en:"D",fr:"J",it:"G",nl:"D",es:"D",pl:"D",pt:"D",sv:"D",fi:"M"},this.monthMask={de:"M",en:"M",fr:"M",it:"M",nl:"M",es:"M",pl:"M",pt:"M",sv:"M",fi:"K"},this.yearMask={de:"J",en:"Y",fr:"A",it:"A",nl:"J",es:"A",pl:"R",pt:"A",sv:"Å",fi:"V"}}onParseValue(t,e={allowInvalidValue:!1}){if(t){const a=u.fromAnyFormat(this.blocks.getRawValueWithoutMask(t));if(a.isValid)return a.toISODate();if(e&&e.allowInvalidValue)return D}return""}onFormatValue(t){if(t){const e=u.fromISO(t);if(e.isValid)return e.toFormat()}return""}onPaste(t,e,a){const i=u.fromAnyFormat(t.clipboardData||"");i.isValid&&(t.value=i.toFormat(),t.position.toEnd())}onBlur(t){const e=this.blocks.getRawValueWithoutMaskByContext(t),a=u.fromAnyFormat(e);if(a.isValid){const e=a.toFormat();e!==t.value&&(t.value=e)}else t.component.allowInvalidValue&&e!==t.value&&(t.value=e)}}class q{constructor(t){this.mask=t}get attributes(){return{inputMode:this.mask.inputMode,maxLength:this.mask.maxLength,minLength:this.mask.minLength,type:"text",autoCapitalize:"off",autoCorrect:"off",spellcheck:!1}}bindComponent(t){this.component=t}bindComponentDidLoad(){this.component&&this.component.nativeInput&&(this.component.nativeInput.value=this.component.value||""),this.bindValueChanged(this.component.value,void 0)}bindConfigChanged(t){const{component:e,mask:a}=this,i=new T({component:e,mask:a,event:{locale:`${t.language}-${t.region}`}});this.mask.fireI18nChange(i),i.submit()}bindValueChanged(t,e){const{component:a,mask:i}=this,s=new N({component:a,mask:i,event:{newValue:t,oldValue:e}});this.mask.fireValueChanged(s),s.submit("blur")}bindKeyDown(t){if(this.isComponentAccessible){const{component:e,mask:a}=this,i=new W({event:t,component:e,mask:a});this.mask.fireKeyDown(i),i.submit("Tab"===t.key?"tab":"input"),e.balKeyPress.emit(t)}}bindFocus(t){if(this.isComponentAccessible){const{component:e,mask:a}=this;e.focused=!0;const i=new K({event:t,component:e,mask:a});this.mask.fireFocus(i),i.submit(),e.balFocus.emit(t)}}bindBlur(t){if(this.isComponentAccessible){const{component:e,mask:a}=this;e.focused=!1;const i=new K({event:t,component:e,mask:a});this.mask.fireBlur(i),i.submit("blur"),e.balBlur.emit(t)}}bindPaste(t){if(this.isComponentAccessible){const{component:e,mask:a}=this,i=new S({event:t,component:e,mask:a});this.mask.firePaste(i),i.submit()}}bindFormReset(t){const e=t.target;e&&(e===this.component.el||e.contains(this.component.el))&&(this.component.value=this.component.initialValue,this.component.inputValue=this.component.initialValue,clearTimeout(this.resetHandlerTimer),this.resetHandlerTimer=setTimeout((()=>{this.component.nativeInput&&(this.component.nativeInput.value=this.mask.toFormattedValue(this.component.value||""))})))}bindClick(t){if(this.isComponentAccessible){const{component:e,mask:a}=this,i=new H({event:t,component:e,mask:a});this.mask.fireClick(i),i.submit()}}bindHostClick(t){this.isComponentAccessible||(t.preventDefault(),t.stopPropagation())}bindGlobalClick(t){this.isComponentAccessible||t.target&&t.target===this.component.el&&(t.preventDefault(),t.stopPropagation())}get isComponentAccessible(){return!this.component.disabled&&!this.component.readonly}}const J=class{constructor(t){e(this,t),this.balKeyPress=a(this,"balKeyPress"),this.balChange=a(this,"balChange"),this.balInput=a(this,"balInput"),this.balBlur=a(this,"balBlur"),this.balFocus=a(this,"balFocus"),this.inputId="bal-i-date-"+Q++,this.inheritedAttributes={},this.maskAdapter=new q(new Y),this.focused=!1,this.isGrouped=!1,this.ariaForm=k,this.name=this.inputId,this.invalid=!1,this.required=!1,this.disabled=!1,this.readonly=!1,this.clickable=!1,this.autocomplete="off",this.hasIconRight=!1,this.value=void 0,this.inputValue=this.value,this.initialValue=this.value||"",this.autoInvalidOff=!1,this.allowInvalidValue=!1}createLogger(t){this.log=t}valueChanged(t,e){this.maskAdapter.bindValueChanged(t,e)}connectedCallback(){this.maskAdapter.bindComponent(this),this.isGrouped=d("bal-input-group",this.el)}componentDidLoad(){this.maskAdapter.bindComponentDidLoad()}componentWillRender(){this.inheritedAttributes=v(this.el,["aria-label","tabindex","title","data-hj-allow"])}async configChanged(t){this.maskAdapter.bindConfigChanged(t)}resetHandler(t){this.maskAdapter.bindFormReset(t)}listenOnClick(t){this.maskAdapter.bindGlobalClick(t)}async setFocus(){x(this)}async setBlur(){C(this)}getInputElement(){return Promise.resolve(this.nativeInput)}async setAriaForm(t){this.ariaForm=Object.assign({},t)}render(){const e=r.block("input-date"),a=e.element("native");return t(i,{key:"3c71adc69c5270029c588885037338aee6dfc85f",onClick:t=>this.maskAdapter.bindHostClick(t),class:Object.assign({},e.class())},t("input",Object.assign({key:"56c3f39f98b9dadb6b18f8bfea4c172e7bc0e607",class:{input:!0,"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:t=>this.nativeInput=t,id:this.ariaForm.controlId||this.inputId,"aria-labelledby":this.ariaForm.labelId,"aria-describedby":this.ariaForm.messageId,"aria-invalid":!0===this.invalid?"true":"false","aria-disabled":y(this.disabled),required:this.required,disabled:this.disabled,readonly:this.readonly,autoComplete:this.autocomplete},this.maskAdapter.attributes,this.inheritedAttributes,{placeholder:this.placeholder,value:this.inputValue,onKeyDown:t=>this.maskAdapter.bindKeyDown(t),onClick:t=>this.maskAdapter.bindClick(t),onFocus:t=>this.maskAdapter.bindFocus(t),onBlur:t=>this.maskAdapter.bindBlur(t),onPaste:t=>this.maskAdapter.bindPaste(t)})),t("input",{key:"dae67450389be6169c8257a0b1eaf877fb81e66b",type:"date",class:Object.assign({},a.class()),name:this.name,min:this.min,max:this.max,value:this.value,tabindex:-1,"aria-hidden":"true"}))}get el(){return s(this)}static get watchers(){return{value:["valueChanged"]}}};n([h("bal-input-date"),l("design:type",Function),l("design:paramtypes",[Function]),l("design:returntype",void 0)],J.prototype,"createLogger",null),n([_(),l("design:type",Function),l("design:paramtypes",[Object]),l("design:returntype",Promise)],J.prototype,"configChanged",null);let Q=0;J.style=".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}";export{L as bal_date_calendar,J as bal_input_date}
|