@baloise/ds-core 19.4.0 → 19.5.0-nightly.20250819
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/all.d.ts +2 -0
- package/components/all.js +3 -0
- package/components/animation.decorator.js +1 -1
- package/components/bal-accordion.js +1 -1
- package/components/bal-app.js +1 -98
- package/components/bal-app2.js +100 -0
- package/components/bal-button2.js +1 -1
- package/components/bal-carousel-item.js +3 -3
- package/components/bal-checkbox-group.js +1 -1
- package/components/bal-date-calendar2.js +1 -1
- package/components/bal-date.js +1 -1
- package/components/bal-doc-app.d.ts +11 -0
- package/components/bal-doc-app.js +262 -0
- package/components/bal-dropdown.js +1 -1
- package/components/bal-field.js +1 -1
- package/components/bal-footer.js +1 -1
- package/components/bal-form.js +1 -1
- package/components/bal-hint2.js +11 -9
- package/components/bal-icon2.js +6 -3
- package/components/bal-input-stepper.js +1 -1
- package/components/bal-input.js +4 -1
- package/components/bal-list-item-accordion-body2.js +1 -1
- package/components/bal-list-item2.js +1 -1
- package/components/bal-logo2.js +1 -1
- package/components/bal-modal.js +1 -1
- package/components/bal-nav.js +16 -6
- package/components/bal-navbar-brand.js +1 -1
- package/components/bal-option-list.js +1 -1
- package/components/bal-pagination.js +19 -24
- package/components/bal-popover-content2.js +1 -1
- package/components/bal-popup2.js +3 -3
- package/components/bal-progress-bar.js +1 -1
- package/components/bal-radio-group.js +1 -1
- package/components/bal-radio-icon2.js +1 -1
- package/components/bal-radio2.js +2 -2
- package/components/bal-segment-item.js +2 -2
- package/components/bal-segment.js +1 -1
- package/components/bal-select-option2.js +1 -1
- package/components/bal-select2.js +1 -1
- package/components/bal-shape2.js +4 -4
- package/components/bal-sheet.js +1 -1
- package/components/bal-snackbar.js +1 -1
- package/components/bal-spinner2.js +2 -2
- package/components/bal-stack2.js +1 -1
- package/components/bal-stage-back-link.js +2 -2
- package/components/bal-stage-body.js +1 -1
- package/components/bal-stage-foot.js +1 -1
- package/components/bal-stage-head.js +1 -1
- package/components/bal-stage-image.js +2 -2
- package/components/bal-stage.js +1 -1
- package/components/bal-step-item.js +2 -2
- package/components/bal-tab-item.js +2 -2
- package/components/bal-table.js +1 -1
- package/components/bal-tabs2.js +3 -3
- package/components/bal-tag-group.js +1 -1
- package/components/bal-tag2.js +1 -1
- package/components/bal-text.js +2 -2
- package/components/bal-textarea.js +1 -1
- package/components/bal-time-input.js +1 -1
- package/components/bal-toast.js +1 -1
- package/components/bal-tooltip.js +1 -1
- package/components/breakpoints.subject.js +1 -1
- package/components/element-states.decorator.js +1 -1
- package/components/floating-ui.js +1 -1
- package/components/focus.decorator.js +1 -1
- package/components/form-input.js +1 -1
- package/components/helpers.js +1 -1
- package/components/index.js +6 -462
- package/components/initialize.js +441 -0
- package/components/mutation.decorator.js +1 -1
- package/components/overlays.js +1 -1
- package/components/resize.decorator.js +1 -1
- package/{dist/cjs/purify.es-CJTp6uKN.js → components/svg.js} +8 -3
- package/components/swipe.subject.js +1 -1
- package/components/swiper.util.js +1 -1
- package/components/tokens.esm.js +1 -1
- package/components/visibility.decorator.js +1 -1
- package/components/window-resize.listener.js +1 -1
- package/dist/baloise-design-system/baloise-design-system.esm.js +1 -1
- package/dist/baloise-design-system/baloise-design-system.js +1 -1
- package/dist/baloise-design-system/index.esm.js +1 -1
- package/dist/baloise-design-system/p-00c7ac0c09.entry.js +1 -0
- package/dist/baloise-design-system/{p-9417181fc3.entry.js → p-0222ba5422.entry.js} +1 -1
- package/dist/baloise-design-system/p-024bcb5566.entry.js +1 -0
- package/dist/baloise-design-system/{p-e016efc91a.entry.js → p-0256824571.entry.js} +1 -1
- package/dist/baloise-design-system/{p-1a101b475e.system.entry.js → p-083fe4e357.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-b0d0cb1167.system.entry.js → p-0a3bd4b7ac.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-b0d2fd44ef.system.entry.js → p-0ad0e580a5.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-5ea15c8fda.entry.js → p-0d273759f2.entry.js} +1 -1
- package/dist/baloise-design-system/{p-7cb21d670b.system.entry.js → p-0d75b2911a.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-0ecde13d8d.entry.js +1 -0
- package/dist/baloise-design-system/{p-c2a5d480b6.entry.js → p-152ccc2389.entry.js} +1 -1
- package/dist/baloise-design-system/{p-5391a66037.entry.js → p-1af0af18cb.entry.js} +1 -1
- package/dist/baloise-design-system/{p-eb68793baa.system.entry.js → p-21827077bb.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-f0957640f5.entry.js → p-21e244ad48.entry.js} +1 -1
- package/dist/baloise-design-system/{p-571b32fead.system.entry.js → p-24230c7d6d.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-46092a4585.entry.js → p-25715efc4f.entry.js} +1 -1
- package/dist/baloise-design-system/{p-469d7c593e.system.entry.js → p-26ff58eaac.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-9f221cd147.system.entry.js → p-2851fc3442.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-8c5aac149f.entry.js → p-2a6c955b31.entry.js} +1 -1
- package/dist/baloise-design-system/{p-a5802e97d8.system.entry.js → p-2f753db81d.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-dbcb876d25.entry.js → p-3241fff0a3.entry.js} +1 -1
- package/dist/baloise-design-system/{p-29cae69b8c.entry.js → p-360373e489.entry.js} +1 -1
- package/dist/baloise-design-system/{p-5ea5a9b3fa.entry.js → p-3a2109ec0a.entry.js} +1 -1
- package/dist/baloise-design-system/{p-aac9ec6687.system.entry.js → p-3b093bc859.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-ab6db026de.entry.js → p-3c4a334013.entry.js} +1 -1
- package/dist/baloise-design-system/{p-ee604e4bcc.system.entry.js → p-3c517f7540.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-c4239a6ebb.entry.js → p-3d2c5a87b1.entry.js} +1 -1
- package/dist/baloise-design-system/{p-653f4e4238.entry.js → p-3f4317ce6d.entry.js} +1 -1
- package/dist/baloise-design-system/{p-7b1dff4795.entry.js → p-3f5c881f89.entry.js} +1 -1
- package/dist/baloise-design-system/{p-1c13d69ca1.system.entry.js → p-3f67b4e6f8.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-6eeb094b9d.system.entry.js → p-3fa2adfda8.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-1f7d71e0f6.system.entry.js → p-4004d79255.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-52fa3d7015.system.entry.js → p-40d98b4bca.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-fa3aa15442.entry.js → p-40f4b8e212.entry.js} +1 -1
- package/dist/baloise-design-system/{p-be07e385c5.entry.js → p-42115ed080.entry.js} +1 -1
- package/dist/baloise-design-system/p-4253b34130.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-6d716224a8.entry.js → p-42d4052453.entry.js} +1 -1
- package/dist/baloise-design-system/{p-a34dc82fd9.system.entry.js → p-437b036d1c.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-017e7f7adf.entry.js → p-43f13a7986.entry.js} +1 -1
- package/dist/baloise-design-system/{p-605048a7e8.system.entry.js → p-44a30beeef.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-7e5c62d014.entry.js → p-4779777f54.entry.js} +1 -1
- package/dist/baloise-design-system/{p-e92ad3fae1.system.entry.js → p-48739bb30b.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-61d215dcc5.entry.js → p-49253bd2b1.entry.js} +1 -1
- package/dist/baloise-design-system/{p-Bp0dpjer.js → p-4BaUANyL.js} +1 -1
- package/dist/baloise-design-system/p-4aa520cd29.entry.js +1 -0
- package/dist/baloise-design-system/p-4e5a5339cc.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-84f3cdac9b.entry.js → p-4eba6fd114.entry.js} +1 -1
- package/dist/baloise-design-system/p-4ef60dc731.entry.js +1 -0
- package/dist/baloise-design-system/p-5061cae073.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-6f40242a5d.entry.js → p-525ff46f7f.entry.js} +1 -1
- package/dist/baloise-design-system/{p-558adf45a6.system.entry.js → p-5bba51bd38.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-6542d12863.entry.js → p-5c47ba754f.entry.js} +1 -1
- package/dist/baloise-design-system/{p-925b31dca9.entry.js → p-6176eb218c.entry.js} +1 -1
- package/dist/baloise-design-system/{p-4360835610.entry.js → p-6318bac3dd.entry.js} +1 -1
- package/dist/baloise-design-system/{p-bf46f70999.entry.js → p-64b856c8cf.entry.js} +1 -1
- package/dist/baloise-design-system/{p-3b5c4a42c4.system.entry.js → p-65f99f8edb.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-aa9f1d22cd.system.entry.js → p-6952c1ea1b.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-d575fb9113.system.entry.js → p-69fbe987c3.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-c92ac7c2e0.system.entry.js → p-6a59799426.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-6d5bbdc67a.entry.js → p-6b363f2ead.entry.js} +1 -1
- package/dist/baloise-design-system/p-6b8a1acb9d.entry.js +1 -0
- package/dist/baloise-design-system/{p-ee43ce93b7.system.entry.js → p-6d68095928.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-fd73720dcb.entry.js → p-7117eb5f30.entry.js} +1 -1
- package/dist/baloise-design-system/p-72b7e64b98.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-166fa22c35.entry.js → p-75079fc8ce.entry.js} +1 -1
- package/dist/baloise-design-system/{p-6d511d8e8e.system.entry.js → p-752867ca22.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-5bc0576341.entry.js → p-79b6fc0fb0.entry.js} +1 -1
- package/dist/baloise-design-system/{p-2384eefce1.entry.js → p-7bb87b95fe.entry.js} +1 -1
- package/dist/baloise-design-system/{p-9276e4e5ca.system.entry.js → p-7c2c7f13f2.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-417b6e0a0b.system.entry.js → p-7d9ba703cc.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-e57bc8a630.system.entry.js → p-80408d8f6e.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-d4c44cc24e.entry.js → p-8249b94d33.entry.js} +1 -1
- package/dist/baloise-design-system/{p-e15a90b22c.system.entry.js → p-84f8b1fb09.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-619670d086.system.entry.js → p-863ddca191.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-7778560b6f.entry.js → p-87085d692a.entry.js} +1 -1
- package/dist/baloise-design-system/{p-247b0b800a.system.entry.js → p-88c3de5532.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-22026f3f57.system.entry.js → p-89a89b44d2.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-d78505b4e8.entry.js → p-8bb80f6d7f.entry.js} +1 -1
- package/dist/baloise-design-system/{p-0da4fe3026.entry.js → p-90ef751c58.entry.js} +1 -1
- package/dist/baloise-design-system/p-96e1038a74.entry.js +1 -0
- package/dist/baloise-design-system/p-97de8db9b7.entry.js +1 -0
- package/dist/baloise-design-system/{p-4856c78a64.entry.js → p-98c44cc60b.entry.js} +1 -1
- package/dist/baloise-design-system/{p-d5b648b0fc.system.entry.js → p-9b9cf005a2.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-680fe70c1a.entry.js → p-9fbff1f523.entry.js} +1 -1
- package/dist/baloise-design-system/{p-2f62e8007d.entry.js → p-9fd2aad326.entry.js} +1 -1
- package/dist/baloise-design-system/{p-2690f97b41.system.entry.js → p-9ffbaf82e2.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-DV-El3D9.js → p-B2aiNZlz.js} +1 -1
- package/dist/baloise-design-system/{p-Cwb5cm_s.js → p-B3WswEUb.js} +1 -1
- package/dist/baloise-design-system/p-B7IF8OK5.js +1 -0
- package/dist/baloise-design-system/p-BFk1rRl8.system.js +1 -0
- package/dist/baloise-design-system/{p-DPBQ5EN8.system.js → p-BMWt-Upf.system.js} +1 -1
- package/dist/baloise-design-system/p-BOXHdtO7.system.js +1 -0
- package/dist/baloise-design-system/{p-CwvovJM0.system.js → p-BS3tl84b.system.js} +1 -1
- package/dist/baloise-design-system/p-BWKryhei.js +1 -0
- package/dist/baloise-design-system/p-BdI7HPx0.system.js +1 -0
- package/dist/baloise-design-system/{p-CoTulE_f.js → p-Bs209HuP.js} +1 -1
- package/dist/baloise-design-system/{p-C2YKdNW7.system.js → p-BsyhaiFT.system.js} +1 -1
- package/dist/baloise-design-system/p-Btdiqd5K.js +2 -0
- package/dist/baloise-design-system/{p-DY72UdN1.system.js → p-Bvh0SVeg.system.js} +1 -1
- package/dist/baloise-design-system/{p-BANVEd3P.js → p-BxBQQTRw.js} +1 -1
- package/dist/baloise-design-system/{p-Ck3aT69N.js → p-C1CLUihP.js} +1 -1
- package/dist/baloise-design-system/{p-DhSS4q-R.system.js → p-CFTq_NEW.system.js} +1 -1
- package/dist/baloise-design-system/{p-B1TzZiNl.js → p-CL-ZUEN0.js} +1 -1
- package/dist/baloise-design-system/p-CUzS4D-E.system.js +2 -0
- package/dist/baloise-design-system/{p-DTDY1hlV.js → p-C_Vplsfl.js} +1 -1
- package/dist/baloise-design-system/{p-DfEhX0m_.system.js → p-CbwahN12.system.js} +1 -1
- package/dist/baloise-design-system/{p-BQvgbY93.system.js → p-CikVveBY.system.js} +1 -1
- package/dist/baloise-design-system/{p-WkcLp-K_.system.js → p-CrvrDFJ2.system.js} +1 -1
- package/dist/baloise-design-system/{p-BHYxMhaq.js → p-Ctcs3QMJ.js} +1 -1
- package/dist/baloise-design-system/{p-B23n0-TV.js → p-D-o0_O-M.js} +1 -1
- package/dist/baloise-design-system/{p-Bnn4iNSc.system.js → p-D2akt_K7.system.js} +1 -1
- package/dist/baloise-design-system/{p-C4hsvc4v.system.js → p-DLQUdT1W.system.js} +1 -1
- package/dist/baloise-design-system/{p-Cm94K4OH.system.js → p-DN9YBr8j.system.js} +1 -1
- package/dist/baloise-design-system/p-DQxELMF_.system.js +1 -0
- package/dist/baloise-design-system/{p-gnUWqxps.js → p-DTO43kOu.js} +1 -1
- package/dist/baloise-design-system/p-DUNB4kTY.js +2 -0
- package/dist/baloise-design-system/{p-BLUHPuPg.js → p-DWy39WDI.js} +1 -1
- package/dist/baloise-design-system/p-DZu6pcng.js +1 -0
- package/dist/baloise-design-system/{p-D0Jo39A5.system.js → p-De53s1OS.system.js} +1 -1
- package/dist/baloise-design-system/{p-DndeZqk_.system.js → p-Dh9ae0ui.system.js} +1 -1
- package/dist/baloise-design-system/{p-Clmofeob.js → p-DjgsK0mL.js} +1 -1
- package/dist/baloise-design-system/{p-ft8ZtF1G.system.js → p-DnvQeTJ-.system.js} +1 -1
- package/dist/baloise-design-system/{p-CKLuFkEh.js → p-DpksqhZN.js} +1 -1
- package/dist/baloise-design-system/{p-BsGkq7do.js → p-K-5m-8bx.js} +1 -1
- package/dist/baloise-design-system/p-KQFPXzKK.system.js +1 -0
- package/dist/baloise-design-system/{p-cfEgJ3Y7.system.js → p-PY423-eu.system.js} +1 -1
- package/dist/baloise-design-system/{p-drmuT566.system.js → p-XFbKxieD.system.js} +1 -1
- package/dist/baloise-design-system/{p-adcdd7eb63.entry.js → p-a18348d084.entry.js} +1 -1
- package/dist/baloise-design-system/{p-5792932f82.system.entry.js → p-a92de83d71.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-56951b4bb7.system.entry.js → p-acf37e093b.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-1ecb79b6b5.system.entry.js → p-ae19c83684.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-B7wsjSwt.system.js → p-aqJO97M6.system.js} +1 -1
- package/dist/baloise-design-system/{p-3125929936.entry.js → p-b06b7b032a.entry.js} +1 -1
- package/dist/baloise-design-system/{p-6efb9d0430.system.entry.js → p-b0fc8d2e47.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-8f8bef4656.system.entry.js → p-b39457d8ec.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-b65e85202e.system.entry.js +1 -0
- package/dist/baloise-design-system/p-bb5215f295.entry.js +1 -0
- package/dist/baloise-design-system/p-c02c90f438.entry.js +1 -0
- package/dist/baloise-design-system/{p-19eda34a35.system.entry.js → p-c0d915b652.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-040a6174c7.system.entry.js → p-c1615be346.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-7e88d10258.system.entry.js → p-c24d34a3cf.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-dc3a6cd2e6.system.entry.js → p-c75a2e36cf.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-e0c4414dd8.system.entry.js → p-c8cd652aad.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-605b22e87a.system.entry.js → p-ce03095f3c.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-DJopuiVl.system.js → p-csILiRTH.system.js} +1 -1
- package/dist/baloise-design-system/{p-1112428fc6.entry.js → p-d00ecafeaa.entry.js} +1 -1
- package/dist/baloise-design-system/{p-0b9e84e4dd.system.entry.js → p-d0e3ec7f9f.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-503b4ce7d0.entry.js → p-d3d6f7de93.entry.js} +1 -1
- package/dist/baloise-design-system/{p-426a8d1128.entry.js → p-d460d30d01.entry.js} +1 -1
- package/dist/baloise-design-system/{p-4b3fd230c6.system.entry.js → p-d71d8a4c69.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-6e463dc74b.system.entry.js → p-da4e70e07e.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-c819c5feef.system.entry.js → p-e162cbacbf.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-05e8130a9a.system.entry.js → p-e2f1e63d17.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-96fbe5e737.entry.js → p-e45f9cb020.entry.js} +1 -1
- package/dist/baloise-design-system/p-e52afb4e66.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-b050e8a82d.entry.js → p-e56390e7d8.entry.js} +1 -1
- package/dist/baloise-design-system/{p-909bc3558a.system.entry.js → p-e5e1d8a681.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-0f679514b0.entry.js → p-e6660278cc.entry.js} +1 -1
- package/dist/baloise-design-system/{p-448a8ba385.entry.js → p-f1df6ed63f.entry.js} +1 -1
- package/dist/baloise-design-system/{p-99d1051abd.system.entry.js → p-f3dd6d6900.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-152e669d59.system.entry.js → p-f527ca244e.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-b5712e673a.entry.js → p-fbe577e837.entry.js} +1 -1
- package/dist/baloise-design-system/{p-B71F7E77.js → p-fc6qPEIA.js} +1 -1
- package/dist/baloise-design-system/{p-c6a6f41844.entry.js → p-fe8b88ca64.entry.js} +1 -1
- package/dist/baloise-design-system/{p-08bc0ab24d.system.entry.js → p-ff0de24115.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-B4Kne3kP.system.js → p-h9B38Vh4.system.js} +1 -1
- package/dist/baloise-design-system/p-jKk811CD.js +1 -0
- package/dist/baloise-design-system/{p-XiJ1YYc9.js → p-jX5I_cAG.js} +1 -1
- package/dist/baloise-design-system/{p-BJQK_KjT.js → p-yYpgl50A.js} +1 -1
- package/dist/baloise-design-system/{p-DMUz15_s.system.js → p-zYGi2MKO.system.js} +1 -1
- package/dist/cjs/{animation.decorator-BeUy1FNI.js → animation.decorator-HFgxrCCh.js} +2 -2
- package/dist/cjs/bal-accordion_4.cjs.entry.js +3 -3
- package/dist/cjs/bal-app.cjs.entry.js +2 -2
- package/dist/cjs/bal-badge.cjs.entry.js +1 -1
- package/dist/cjs/bal-button_2.cjs.entry.js +1 -1
- package/dist/cjs/bal-card_6.cjs.entry.js +1 -1
- package/dist/cjs/bal-carousel_2.cjs.entry.js +17 -17
- package/dist/cjs/bal-check.cjs.entry.js +1 -1
- package/dist/cjs/bal-checkbox_2.cjs.entry.js +6 -6
- package/dist/cjs/bal-close.cjs.entry.js +2 -2
- package/dist/cjs/bal-content.cjs.entry.js +1 -1
- package/dist/cjs/bal-data_4.cjs.entry.js +1 -1
- package/dist/cjs/bal-date-calendar-cell.cjs.entry.js +2 -2
- package/dist/cjs/bal-date-calendar_2.cjs.entry.js +8 -8
- package/dist/cjs/bal-date.cjs.entry.js +5 -5
- package/dist/cjs/bal-divider.cjs.entry.js +1 -1
- package/dist/cjs/bal-doc-app.cjs.entry.js +224 -0
- package/dist/cjs/bal-dropdown.cjs.entry.js +4 -4
- package/dist/cjs/bal-field_5.cjs.entry.js +3 -3
- package/dist/cjs/bal-file-upload.cjs.entry.js +2 -2
- package/dist/cjs/bal-footer.cjs.entry.js +2 -2
- package/dist/cjs/bal-form-col_2.cjs.entry.js +1 -1
- package/dist/cjs/bal-form.cjs.entry.js +1 -1
- package/dist/cjs/bal-heading_2.cjs.entry.js +3 -3
- package/dist/cjs/bal-hint_5.cjs.entry.js +18 -16
- package/dist/cjs/bal-icon.cjs.entry.js +8 -5
- package/dist/cjs/bal-input-group.cjs.entry.js +1 -1
- package/dist/cjs/bal-input-slider.cjs.entry.js +2 -2
- package/dist/cjs/bal-input-stepper.cjs.entry.js +4 -4
- package/dist/cjs/bal-input.cjs.entry.js +6 -3
- package/dist/cjs/bal-label.cjs.entry.js +2 -2
- package/dist/cjs/bal-list_8.cjs.entry.js +10 -10
- package/dist/cjs/bal-logo.cjs.entry.js +7 -7
- package/dist/cjs/bal-modal_3.cjs.entry.js +3 -3
- package/dist/cjs/bal-nav_8.cjs.entry.js +27 -17
- package/dist/cjs/bal-navbar_5.cjs.entry.js +8 -8
- package/dist/cjs/bal-notices_3.cjs.entry.js +3 -3
- package/dist/cjs/bal-notification.cjs.entry.js +1 -1
- package/dist/cjs/bal-number-input.cjs.entry.js +4 -4
- package/dist/cjs/bal-option_2.cjs.entry.js +4 -4
- package/dist/cjs/bal-pagination.cjs.entry.js +24 -17
- package/dist/cjs/bal-popup.cjs.entry.js +5 -5
- package/dist/cjs/bal-progress-bar.cjs.entry.js +9 -9
- package/dist/cjs/bal-radio-icon.cjs.entry.js +2 -2
- package/dist/cjs/bal-radio_2.cjs.entry.js +8 -8
- package/dist/cjs/bal-segment_2.cjs.entry.js +14 -14
- package/dist/cjs/bal-select_2.cjs.entry.js +3 -3
- package/dist/cjs/bal-shape.cjs.entry.js +6 -6
- package/dist/cjs/bal-sheet.cjs.entry.js +2 -2
- package/dist/cjs/bal-spinner.cjs.entry.js +3 -3
- package/dist/cjs/bal-stack.cjs.entry.js +2 -2
- package/dist/cjs/bal-stage_6.cjs.entry.js +8 -8
- package/dist/cjs/bal-step-item.cjs.entry.js +3 -3
- package/dist/cjs/bal-steps.cjs.entry.js +8 -8
- package/dist/cjs/bal-switch.cjs.entry.js +1 -1
- package/dist/cjs/bal-tab-item_2.cjs.entry.js +20 -20
- package/dist/cjs/bal-table.cjs.entry.js +2 -2
- package/dist/cjs/bal-tag_2.cjs.entry.js +3 -3
- package/dist/cjs/bal-textarea.cjs.entry.js +3 -3
- package/dist/cjs/bal-time-input.cjs.entry.js +4 -4
- package/dist/cjs/bal-tooltip.cjs.entry.js +4 -4
- package/dist/cjs/baloise-design-system.cjs.js +2 -2
- package/dist/cjs/{breakpoints.decorator-DLXGwQpP.js → breakpoints.decorator-DHxTtyRI.js} +1 -1
- package/dist/cjs/{breakpoints.subject-CidQD5zH.js → breakpoints.subject-ez04KZo7.js} +4 -4
- package/dist/cjs/{config.decorator-CDkNZ1Fo.js → config.decorator-DXNDP7MY.js} +1 -1
- package/dist/cjs/{date-C9_0qSTi.js → date-B6jOntpB.js} +1 -1
- package/dist/cjs/{device-CoI0V6AY.js → device-CB_IzhFQ.js} +1 -1
- package/dist/cjs/{element-states.decorator-DGQNhvD6.js → element-states.decorator-gsoW-NjY.js} +2 -2
- package/dist/cjs/{floating-ui-BEMfzblh.js → floating-ui-CVK_LGUY.js} +1 -1
- package/dist/cjs/{focus.decorator-DFy3pFaT.js → focus.decorator-CvMEa3Zr.js} +2 -2
- package/dist/cjs/{form-input-BUGd2Bkz.js → form-input-Cl5ibDQu.js} +1 -1
- package/dist/cjs/{index-COfbtsc7.js → index-CUrN4zEK.js} +5 -25
- package/dist/cjs/index.cjs.js +10 -10
- package/dist/cjs/{listener-t3ifJtK5.js → listener-3M4dddMj.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{mutation.decorator-DyFafPfX.js → mutation.decorator-DNlVKeTA.js} +2 -2
- package/dist/cjs/{number-CYeUjdPM.js → number-Dq9LBEHA.js} +1 -1
- package/dist/cjs/{overlays-CZHV6VH9.js → overlays-BgHJrPhC.js} +1 -1
- package/dist/cjs/{resize.decorator-B_NiBCMZ.js → resize.decorator-E-sSou3X.js} +2 -2
- package/dist/cjs/{scroll-DY4kxt0j.js → scroll-C1zy5s5O.js} +1 -1
- package/dist/{esm/purify.es-B3Q-Lii3.js → cjs/svg-Bw61tXih.js} +10 -1
- package/dist/cjs/{swipe.decorator-CNDcaR9i.js → swipe.decorator-9SuGUyz7.js} +1 -1
- package/dist/cjs/{swipe.subject-DtAxEK8t.js → swipe.subject-B3_yAJ3k.js} +3 -3
- package/dist/cjs/{swiper.util-nyFqwHcs.js → swiper.util-C3nPW6Se.js} +2 -2
- package/dist/cjs/{tokens.esm-DU04pfsc.js → tokens.esm-CxxzrKHq.js} +1 -1
- package/dist/cjs/{visibility.decorator-C7uDX3Z3.js → visibility.decorator-DzouYF-6.js} +2 -2
- package/dist/cjs/{window-resize.decorator-4PWq713L.js → window-resize.decorator-Z7aKZwUJ.js} +1 -1
- package/dist/cjs/{window-resize.subject-GSXXkOcC.js → window-resize.subject-NFU68MUG.js} +3 -3
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/bal-carousel/bal-carousel-item/bal-carousel-item.js +2 -2
- package/dist/collection/components/bal-hint/bal-hint.js +13 -11
- package/dist/collection/components/bal-icon/bal-icon.js +6 -3
- package/dist/collection/components/bal-input/bal-input.js +4 -1
- package/dist/collection/components/bal-nav/bal-nav.js +15 -5
- package/dist/collection/components/bal-pagination/bal-pagination.css +1 -1
- package/dist/collection/components/bal-pagination/bal-pagination.js +16 -9
- package/dist/collection/components/bal-popover/bal-popover-content/bal-popover-content.js +1 -1
- package/dist/collection/components/bal-popup/bal-popup.css +1 -1
- package/dist/collection/components/bal-popup/bal-popup.js +1 -1
- package/dist/collection/components/bal-progress-bar/bal-progress-bar.js +1 -1
- package/dist/collection/components/bal-radio/bal-radio-icon/bal-radio-icon.js +1 -1
- package/dist/collection/components/bal-radio/bal-radio.js +2 -2
- package/dist/collection/components/bal-segment/bal-segment-item/bal-segment-item.js +1 -1
- package/dist/collection/components/bal-segment/bal-segment.js +1 -1
- package/dist/collection/components/bal-select/bal-select-option/bal-select-option.js +1 -1
- package/dist/collection/components/bal-shape/bal-shape.js +4 -4
- package/dist/collection/components/bal-sheet/bal-sheet.js +1 -1
- package/dist/collection/components/bal-snackbar/bal-snackbar.js +1 -1
- package/dist/collection/components/bal-spinner/bal-spinner.js +1 -1
- package/dist/collection/components/bal-stack/bal-stack.js +1 -1
- package/dist/collection/components/bal-stage/bal-stage-back-link/bal-stage-back-link.js +2 -2
- package/dist/collection/components/bal-stage/bal-stage-body/bal-stage-body.js +1 -1
- package/dist/collection/components/bal-stage/bal-stage-foot/bal-stage-foot.js +1 -1
- package/dist/collection/components/bal-stage/bal-stage-head/bal-stage-head.js +1 -1
- package/dist/collection/components/bal-stage/bal-stage-image/bal-stage-image.js +1 -1
- package/dist/collection/components/bal-stage/bal-stage.js +1 -1
- package/dist/collection/components/bal-steps/bal-step-item/bal-step-item.js +2 -2
- package/dist/collection/components/bal-table/bal-table.js +1 -1
- package/dist/collection/components/bal-tabs/bal-tab-item/bal-tab-item.js +2 -2
- package/dist/collection/components/bal-tabs/bal-tabs.js +2 -2
- package/dist/collection/components/bal-tag/bal-tag-group/bal-tag-group.js +1 -1
- package/dist/collection/components/bal-tag/bal-tag.js +1 -1
- package/dist/collection/components/bal-text/bal-text.js +2 -2
- package/dist/collection/components/bal-textarea/bal-textarea.js +1 -1
- package/dist/collection/components/bal-time-input/bal-time-input.js +1 -1
- package/dist/collection/components/bal-toast/bal-toast.js +1 -1
- package/dist/collection/components/bal-tooltip/bal-tooltip.js +1 -1
- package/dist/collection/components/docs/bal-doc-app/bal-doc-app.css +1 -0
- package/dist/collection/components/docs/bal-doc-app/bal-doc-app.js +248 -0
- package/dist/collection/utils/config/config.const.js +0 -1
- package/dist/collection/utils/config/config.js +1 -22
- package/dist/collection/utils/config/initialize.js +2 -2
- package/dist/collection/utils/constants/version.constant.js +1 -1
- package/dist/collection/utils/svg.js +7 -0
- package/dist/esm/{animation.decorator-DtxbEYY8.js → animation.decorator-DWZDMeHk.js} +2 -2
- package/dist/esm/bal-accordion_4.entry.js +3 -3
- package/dist/esm/bal-app.entry.js +2 -2
- package/dist/esm/bal-badge.entry.js +1 -1
- package/dist/esm/bal-button_2.entry.js +1 -1
- package/dist/esm/bal-card_6.entry.js +1 -1
- package/dist/esm/bal-carousel_2.entry.js +17 -17
- package/dist/esm/bal-check.entry.js +1 -1
- package/dist/esm/bal-checkbox_2.entry.js +6 -6
- package/dist/esm/bal-close.entry.js +2 -2
- package/dist/esm/bal-content.entry.js +1 -1
- package/dist/esm/bal-data_4.entry.js +1 -1
- package/dist/esm/bal-date-calendar-cell.entry.js +2 -2
- package/dist/esm/bal-date-calendar_2.entry.js +8 -8
- package/dist/esm/bal-date.entry.js +5 -5
- package/dist/esm/bal-divider.entry.js +1 -1
- package/dist/esm/bal-doc-app.entry.js +222 -0
- package/dist/esm/bal-dropdown.entry.js +4 -4
- package/dist/esm/bal-field_5.entry.js +3 -3
- package/dist/esm/bal-file-upload.entry.js +2 -2
- package/dist/esm/bal-footer.entry.js +2 -2
- package/dist/esm/bal-form-col_2.entry.js +1 -1
- package/dist/esm/bal-form.entry.js +1 -1
- package/dist/esm/bal-heading_2.entry.js +3 -3
- package/dist/esm/bal-hint_5.entry.js +18 -16
- package/dist/esm/bal-icon.entry.js +8 -5
- package/dist/esm/bal-input-group.entry.js +1 -1
- package/dist/esm/bal-input-slider.entry.js +2 -2
- package/dist/esm/bal-input-stepper.entry.js +4 -4
- package/dist/esm/bal-input.entry.js +6 -3
- package/dist/esm/bal-label.entry.js +2 -2
- package/dist/esm/bal-list_8.entry.js +10 -10
- package/dist/esm/bal-logo.entry.js +7 -7
- package/dist/esm/bal-modal_3.entry.js +3 -3
- package/dist/esm/bal-nav_8.entry.js +27 -17
- package/dist/esm/bal-navbar_5.entry.js +8 -8
- package/dist/esm/bal-notices_3.entry.js +3 -3
- package/dist/esm/bal-notification.entry.js +1 -1
- package/dist/esm/bal-number-input.entry.js +4 -4
- package/dist/esm/bal-option_2.entry.js +4 -4
- package/dist/esm/bal-pagination.entry.js +24 -17
- package/dist/esm/bal-popup.entry.js +5 -5
- package/dist/esm/bal-progress-bar.entry.js +9 -9
- package/dist/esm/bal-radio-icon.entry.js +2 -2
- package/dist/esm/bal-radio_2.entry.js +8 -8
- package/dist/esm/bal-segment_2.entry.js +14 -14
- package/dist/esm/bal-select_2.entry.js +3 -3
- package/dist/esm/bal-shape.entry.js +6 -6
- package/dist/esm/bal-sheet.entry.js +2 -2
- package/dist/esm/bal-spinner.entry.js +3 -3
- package/dist/esm/bal-stack.entry.js +2 -2
- package/dist/esm/bal-stage_6.entry.js +8 -8
- package/dist/esm/bal-step-item.entry.js +3 -3
- package/dist/esm/bal-steps.entry.js +8 -8
- package/dist/esm/bal-switch.entry.js +1 -1
- package/dist/esm/bal-tab-item_2.entry.js +20 -20
- package/dist/esm/bal-table.entry.js +2 -2
- package/dist/esm/bal-tag_2.entry.js +3 -3
- package/dist/esm/bal-textarea.entry.js +3 -3
- package/dist/esm/bal-time-input.entry.js +4 -4
- package/dist/esm/bal-tooltip.entry.js +4 -4
- package/dist/esm/baloise-design-system.js +3 -3
- package/dist/esm/{breakpoints.decorator-SHkWCW_Y.js → breakpoints.decorator-DXVnXpsP.js} +1 -1
- package/dist/esm/{breakpoints.subject-C7fjILif.js → breakpoints.subject-C_z3PD1L.js} +4 -4
- package/dist/esm/{config.decorator-T4wBa62Z.js → config.decorator-Bb0H_cFf.js} +1 -1
- package/dist/esm/{date-B9gcRx4E.js → date-CSgXxrCL.js} +1 -1
- package/dist/esm/{device-ClkcmLoi.js → device-C8QTKcCb.js} +1 -1
- package/dist/esm/{element-states.decorator-DH5waKVu.js → element-states.decorator-DlbMEYwH.js} +2 -2
- package/dist/esm/{floating-ui-CTp1F0dK.js → floating-ui-DXLYZUW_.js} +1 -1
- package/dist/esm/{focus.decorator-DQpbKYaT.js → focus.decorator-DJvn8oM4.js} +2 -2
- package/dist/esm/{form-input-CGW38ndP.js → form-input-BrNtLtd3.js} +1 -1
- package/dist/esm/{index-pkPHUz5e.js → index-Btdiqd5K.js} +5 -26
- package/dist/esm/index.js +13 -13
- package/dist/esm/{listener-tzACU3qe.js → listener-DvNO7R93.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{mutation.decorator-x6OeVGO1.js → mutation.decorator-CZedrFGC.js} +2 -2
- package/dist/esm/{number-DZNVPmrJ.js → number-DMuD7HPz.js} +1 -1
- package/dist/esm/{overlays-HStjSmzT.js → overlays-Dz7ipvtb.js} +1 -1
- package/dist/esm/{resize.decorator-D8jUH-n3.js → resize.decorator-qU51gl_T.js} +2 -2
- package/dist/esm/{scroll-CGUsHi6i.js → scroll-Ba7YUwvz.js} +1 -1
- package/{components/purify.es.js → dist/esm/svg-DUNB4kTY.js} +8 -1
- package/dist/esm/{swipe.decorator-CLIW6A6V.js → swipe.decorator-DvFljs7N.js} +1 -1
- package/dist/esm/{swipe.subject-CgHMG_X7.js → swipe.subject-Noqy4TH1.js} +3 -3
- package/dist/esm/{swiper.util-lTWgy2NS.js → swiper.util-sHIw7UsO.js} +2 -2
- package/dist/esm/{tokens.esm-BvmIi0Pf.js → tokens.esm-Cz60RsQc.js} +1 -1
- package/dist/esm/{visibility.decorator-DOE3Mnqt.js → visibility.decorator-DBDPGnQQ.js} +2 -2
- package/dist/esm/{window-resize.decorator-C4aZFmLU.js → window-resize.decorator-FrC4QXgf.js} +1 -1
- package/dist/esm/{window-resize.subject-DTS_9rk_.js → window-resize.subject-CxUk6KXC.js} +3 -3
- package/dist/esm-es5/{animation.decorator-DtxbEYY8.js → animation.decorator-DWZDMeHk.js} +1 -1
- package/dist/esm-es5/bal-accordion_4.entry.js +1 -1
- package/dist/esm-es5/bal-app.entry.js +1 -1
- package/dist/esm-es5/bal-badge.entry.js +1 -1
- package/dist/esm-es5/bal-button_2.entry.js +1 -1
- package/dist/esm-es5/bal-card_6.entry.js +1 -1
- package/dist/esm-es5/bal-carousel_2.entry.js +1 -1
- package/dist/esm-es5/bal-check.entry.js +1 -1
- package/dist/esm-es5/bal-checkbox_2.entry.js +1 -1
- package/dist/esm-es5/bal-close.entry.js +1 -1
- package/dist/esm-es5/bal-content.entry.js +1 -1
- package/dist/esm-es5/bal-data_4.entry.js +1 -1
- package/dist/esm-es5/bal-date-calendar-cell.entry.js +1 -1
- package/dist/esm-es5/bal-date-calendar_2.entry.js +1 -1
- package/dist/esm-es5/bal-date.entry.js +1 -1
- package/dist/esm-es5/bal-divider.entry.js +1 -1
- package/dist/esm-es5/bal-doc-app.entry.js +1 -0
- package/dist/esm-es5/bal-dropdown.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-footer.entry.js +1 -1
- package/dist/esm-es5/bal-form-col_2.entry.js +1 -1
- package/dist/esm-es5/bal-form.entry.js +1 -1
- package/dist/esm-es5/bal-heading_2.entry.js +1 -1
- package/dist/esm-es5/bal-hint_5.entry.js +1 -1
- package/dist/esm-es5/bal-icon.entry.js +1 -1
- package/dist/esm-es5/bal-input-group.entry.js +1 -1
- package/dist/esm-es5/bal-input-slider.entry.js +1 -1
- package/dist/esm-es5/bal-input-stepper.entry.js +1 -1
- package/dist/esm-es5/bal-input.entry.js +1 -1
- package/dist/esm-es5/bal-label.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-modal_3.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-notices_3.entry.js +1 -1
- package/dist/esm-es5/bal-notification.entry.js +1 -1
- package/dist/esm-es5/bal-number-input.entry.js +1 -1
- package/dist/esm-es5/bal-option_2.entry.js +1 -1
- package/dist/esm-es5/bal-pagination.entry.js +1 -1
- package/dist/esm-es5/bal-popup.entry.js +1 -1
- package/dist/esm-es5/bal-progress-bar.entry.js +1 -1
- package/dist/esm-es5/bal-radio-icon.entry.js +1 -1
- package/dist/esm-es5/bal-radio_2.entry.js +1 -1
- package/dist/esm-es5/bal-segment_2.entry.js +1 -1
- package/dist/esm-es5/bal-select_2.entry.js +1 -1
- package/dist/esm-es5/bal-shape.entry.js +1 -1
- package/dist/esm-es5/bal-sheet.entry.js +1 -1
- package/dist/esm-es5/bal-spinner.entry.js +1 -1
- package/dist/esm-es5/bal-stack.entry.js +1 -1
- package/dist/esm-es5/bal-stage_6.entry.js +1 -1
- package/dist/esm-es5/bal-step-item.entry.js +1 -1
- package/dist/esm-es5/bal-steps.entry.js +1 -1
- package/dist/esm-es5/bal-switch.entry.js +1 -1
- package/dist/esm-es5/bal-tab-item_2.entry.js +1 -1
- package/dist/esm-es5/bal-table.entry.js +1 -1
- package/dist/esm-es5/bal-tag_2.entry.js +1 -1
- package/dist/esm-es5/bal-textarea.entry.js +1 -1
- package/dist/esm-es5/bal-time-input.entry.js +1 -1
- package/dist/esm-es5/bal-tooltip.entry.js +1 -1
- package/dist/esm-es5/baloise-design-system.js +1 -1
- package/dist/esm-es5/{breakpoints.decorator-SHkWCW_Y.js → breakpoints.decorator-DXVnXpsP.js} +1 -1
- package/dist/esm-es5/{breakpoints.subject-C7fjILif.js → breakpoints.subject-C_z3PD1L.js} +1 -1
- package/dist/esm-es5/{config.decorator-T4wBa62Z.js → config.decorator-Bb0H_cFf.js} +1 -1
- package/dist/esm-es5/{date-B9gcRx4E.js → date-CSgXxrCL.js} +1 -1
- package/dist/esm-es5/{device-ClkcmLoi.js → device-C8QTKcCb.js} +1 -1
- package/dist/esm-es5/{element-states.decorator-DH5waKVu.js → element-states.decorator-DlbMEYwH.js} +1 -1
- package/dist/esm-es5/floating-ui-DXLYZUW_.js +1 -0
- package/dist/esm-es5/{focus.decorator-DQpbKYaT.js → focus.decorator-DJvn8oM4.js} +1 -1
- package/dist/esm-es5/{form-input-CGW38ndP.js → form-input-BrNtLtd3.js} +1 -1
- package/dist/esm-es5/index-Btdiqd5K.js +2 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{listener-tzACU3qe.js → listener-DvNO7R93.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mutation.decorator-CZedrFGC.js +1 -0
- package/dist/esm-es5/{number-DZNVPmrJ.js → number-DMuD7HPz.js} +1 -1
- package/dist/esm-es5/{overlays-HStjSmzT.js → overlays-Dz7ipvtb.js} +1 -1
- package/dist/esm-es5/resize.decorator-qU51gl_T.js +1 -0
- package/dist/esm-es5/{scroll-CGUsHi6i.js → scroll-Ba7YUwvz.js} +1 -1
- package/dist/esm-es5/{purify.es-B3Q-Lii3.js → svg-DUNB4kTY.js} +1 -1
- package/dist/esm-es5/{swipe.decorator-CLIW6A6V.js → swipe.decorator-DvFljs7N.js} +1 -1
- package/dist/esm-es5/swipe.subject-Noqy4TH1.js +1 -0
- package/dist/esm-es5/{swiper.util-lTWgy2NS.js → swiper.util-sHIw7UsO.js} +1 -1
- package/dist/esm-es5/{visibility.decorator-DOE3Mnqt.js → visibility.decorator-DBDPGnQQ.js} +1 -1
- package/dist/esm-es5/{window-resize.decorator-C4aZFmLU.js → window-resize.decorator-FrC4QXgf.js} +1 -1
- package/dist/esm-es5/window-resize.subject-CxUk6KXC.js +1 -0
- package/dist/types/components/bal-hint/bal-hint.d.ts +1 -1
- package/dist/types/components/bal-nav/bal-nav.interfaces.d.ts +2 -0
- package/dist/types/components/docs/bal-doc-app/bal-doc-app.d.ts +21 -0
- package/dist/types/components.d.ts +75 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/icons/src/index.d.ts +82 -0
- package/dist/types/utils/config/config.const.d.ts +0 -1
- package/dist/types/utils/config/config.d.ts +0 -2
- package/dist/types/utils/svg.d.ts +1 -0
- package/package.json +6 -6
- package/dist/baloise-design-system/p-1799d59644.entry.js +0 -1
- package/dist/baloise-design-system/p-5aa8ca5691.entry.js +0 -1
- package/dist/baloise-design-system/p-5da1420f1a.system.entry.js +0 -1
- package/dist/baloise-design-system/p-68162ab75a.entry.js +0 -1
- package/dist/baloise-design-system/p-74dd1a8023.entry.js +0 -1
- package/dist/baloise-design-system/p-750daedf10.system.entry.js +0 -1
- package/dist/baloise-design-system/p-833e1e02aa.entry.js +0 -1
- package/dist/baloise-design-system/p-83a6310bc0.entry.js +0 -1
- package/dist/baloise-design-system/p-9bed353090.system.entry.js +0 -1
- package/dist/baloise-design-system/p-B3Q-Lii3.js +0 -2
- package/dist/baloise-design-system/p-BzYBOtnf.js +0 -1
- package/dist/baloise-design-system/p-C8S5XlJl.js +0 -1
- package/dist/baloise-design-system/p-Ch5Ar_Aw.system.js +0 -1
- package/dist/baloise-design-system/p-CiWErrXI.system.js +0 -1
- package/dist/baloise-design-system/p-CyfydXgM.system.js +0 -1
- package/dist/baloise-design-system/p-DA4RmE59.system.js +0 -1
- package/dist/baloise-design-system/p-DWQYzEm7.system.js +0 -1
- package/dist/baloise-design-system/p-Do4k83YR.js +0 -1
- package/dist/baloise-design-system/p-MVgFPFA5.js +0 -1
- package/dist/baloise-design-system/p-WmWy2rJ-.system.js +0 -2
- package/dist/baloise-design-system/p-a913a946ea.entry.js +0 -1
- package/dist/baloise-design-system/p-cca697bd26.system.entry.js +0 -1
- package/dist/baloise-design-system/p-d7a09b758f.entry.js +0 -1
- package/dist/baloise-design-system/p-dd5aae489e.entry.js +0 -1
- package/dist/baloise-design-system/p-ee5156fb85.system.entry.js +0 -1
- package/dist/baloise-design-system/p-pkPHUz5e.js +0 -2
- package/dist/esm-es5/floating-ui-CTp1F0dK.js +0 -1
- package/dist/esm-es5/index-pkPHUz5e.js +0 -2
- package/dist/esm-es5/mutation.decorator-x6OeVGO1.js +0 -1
- package/dist/esm-es5/resize.decorator-D8jUH-n3.js +0 -1
- package/dist/esm-es5/swipe.subject-CgHMG_X7.js +0 -1
- package/dist/esm-es5/window-resize.subject-DTS_9rk_.js +0 -1
- /package/dist/baloise-design-system/{p-BvmIi0Pf.js → p-Cz60RsQc.js} +0 -0
- /package/dist/baloise-design-system/{p-CFSqydrN.system.js → p-DwgUYw84.system.js} +0 -0
- /package/dist/esm-es5/{tokens.esm-BvmIi0Pf.js → tokens.esm-Cz60RsQc.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{L as t,H as e,P as i,J as o,I as s,y as l,r as a,t as r,M as n,N as c,O as h}from"./p-pkPHUz5e.js";import{_ as b,a as d}from"./p-dfXERft2.js";import{i as p}from"./p-xbSOW78W.js";import{a as u}from"./p-DBsOHTWj.js";import{a as m}from"./p-BAaDJIzy.js";import{B as f}from"./p-ByiN-QjD.js";import{d as v}from"./p-FCLKfv6B.js";import{s as g}from"./p-C8S5XlJl.js";import{d as _,i as y,a as k,b as x,c as w,k as O}from"./p-D1VPLQ5z.js";import{r as j,p as C,l as T,g as L,i as B,s as z,a as F,f as A,b as I,v as M}from"./p-BG4j3FEv.js";import"./p-BFTU3MAI.js";import"./p-BnVL_HEz.js";const P=!0,D=!1,V=class{constructor(t){e(this,t),this.balChange=i(this,"balChange"),this.balInputClick=i(this,"balInputClick"),this.balInput=i(this,"balInput"),this.balBlur=i(this,"balBlur"),this.balFocus=i(this,"balFocus"),this.balCancel=i(this,"balCancel"),this.balKeyPress=i(this,"balKeyPress"),this.didInit=!1,this.inputId="bal-select-"+E++,this.initialValue=[],this.hasFocus=!1,this.inputValue="",this.focusIndex=-1,this.isPopoverOpen=!1,this.options=new Map,this.labelToScrollTo="",this.labelToSelectTo="",this.ariaForm=v,this.name=this.inputId,this.invalid=!1,this.filter="includes",this.balTabindex=0,this.freeSolo=!1,this.multiple=!1,this.autocomplete="off",this.typeahead=!1,this.selectionOptional=!1,this.disabled=!1,this.readonly=!1,this.required=!1,this.inverted=!1,this.scrollable=250,this.loading=!1,this.remote=!1,this.autoInvalidOff=!1,this.value=[],this.rawValue=[],this.removeValue=t=>{this.disabled||(this.updateRawValue(j(this.rawValue,t),P),this.multiple&&this.typeahead&&this.setFocus(),this.fireBlur())},this.fireBlur=(t=new CustomEvent("blur"))=>{this.isPopoverOpen||this.hasFocus||o((()=>this.balBlur.emit(t)))},this.handleClick=t=>{(this.disabled||this.readonly)&&C(t)},this.handlePopoverChange=t=>{t.stopPropagation(),this.isPopoverOpen!==t.detail&&(this.isPopoverOpen=t.detail,this.isPopoverOpen?this.updateFocus():(this.focusIndex=0,this.multiple&&this.typeahead&&this.updateInputValue(""),this.fireBlur(t)))},this.handleInputBlur=t=>{C(t);const e=t.relatedTarget;(null===e||e&&e.nodeName&&("BAL-MODAL"===e.nodeName||"INPUT"===e.nodeName||"BUTTON"===e.nodeName))&&this.validateAfterBlur(P),this.hasFocus=!1,this.fireBlur(t)},this.handleInputFocus=t=>{this.balFocus.emit(t),this.hasFocus=!0},this.handleInputClick=async(t,e=!1)=>{var i,o,s,l;g(t),this.isChipClicked(t)||(this.disabled||this.readonly?C(t):(this.focusIndex=0,this.balInputClick.emit(t),this.typeahead?this.isPopoverOpen&&e?await(null===(i=this.popoverElement)||void 0===i?void 0:i.dismiss()):await(null===(o=this.popoverElement)||void 0===o?void 0:o.present()):this.isPopoverOpen?await(null===(s=this.popoverElement)||void 0===s?void 0:s.dismiss()):await(null===(l=this.popoverElement)||void 0===l?void 0:l.present())))},this.handleKeyPress=async t=>{!this.isPopoverOpen&&_(t)&&(C(t),await this.open()),this.balKeyPress.emit(t)},this.handleInputChange=t=>{this.disabled||this.readonly||(this.inputValue=t.target.value)},this.handleInput=async t=>{this.disabled||this.readonly||(this.inputValue=t.target.value,this.isPopoverOpen||this.popoverElement.present(),this.focusIndex=0,this.updateFocus(),C(t),this.balInput.emit(this.inputValue))},this.handleOptionMouseEnter=t=>{this.focusIndex=t}}createLogger(t){this.log=t}valueWatcher(){this.syncRawValue(!1)}updateRawValue(t,e=!0){m(t,this.rawValue||[])||(this.rawValue=[...t],this.syncNativeInput(e),this.didInit&&!0===e&&(this.multiple?p(this.rawValue)?this.emitChangeEvent([]):this.emitChangeEvent([...this.rawValue]):p(this.rawValue)||0===T(this.rawValue)?this.emitChangeEvent(void 0):this.emitChangeEvent(this.rawValue[0])))}emitChangeEvent(t){this.balChange.emit(t)}connectedCallback(){const t=s((()=>this.updateOptions()),0);this.initialValue=this.value,t(),this.mutationO=(e=>{if("undefined"==typeof MutationObserver)return;const i=new MutationObserver((e=>{(e=e.filter((t=>t.target.nodeName==="bal-select-option".toUpperCase()||t.target.nodeName==="bal-select".toUpperCase()))).length>0&&t()}));return i.observe(e,{childList:!0,subtree:!0,attributes:!0,characterData:!0}),i})(this.el)}componentWillLoad(){if(this.waitForOptionsAndThenUpdateRawValues(),this.isInsideOfFooter(),!p(this.rawValue)&&this.options.size>0&&1===T(this.rawValue)){const t=this.options.get(this.rawValue[0]);p(t)||(this.inputValue=t.label)}}componentDidLoad(){this.syncRawValue(!1),this.multiple||(this.inputElement.value=this.inputValue),this.didInit=!0}disconnectedCallback(){this.mutationO&&(this.mutationO.disconnect(),this.mutationO=void 0)}listenOnClick(t){this.disabled&&t.target&&t.target===this.el&&C(t)}resetHandler(t){const e=t.target;(null==e?void 0:e.contains(this.el))&&(this.resetHandlerTimer&&clearTimeout(this.resetHandlerTimer),this.resetHandlerTimer=setTimeout((()=>{this.value=this.initialValue,this.syncRawValue(!1),this.syncNativeInput(),this.nativeSelectEl&&Array.from(this.nativeSelectEl.options).forEach((t=>t.selected=!0))}),0))}async handleKeyDown(t){if(this.isPopoverOpen){if((y(t)||k(t))&&(C(t),this.navigateWithArrowKey(t),this.updateFocus()),x(t)&&(C(t),this.selectedFocusedOption()),w(t)&&this.cancel(),O(t)&&this.typeahead&&this.multiple&&""===this.inputElement.value&&T(this.rawValue)>0){const t=L(this.rawValue);this.removeValue(t[T(this.rawValue)-1])}this.typeahead||1!==t.key.length||this.focusOptionByLabel(t.key),_(t)&&!this.typeahead&&C(t)}else this.hasFocus&&((y(t)||k(t))&&(C(t),await this.open()),this.typeahead||1!==t.key.length||this.selectOptionByLabel(t.key))}async setFocus(){this.inputElement&&!this.disabled&&(await l(),this.inputElement.focus())}async getValue(){return this.rawValue}async clear(){this.focusIndex=0,this.inputElement&&(this.updateInputValue(""),this.updateRawValue([],P),this.value=this.multiple?[]:"")}async open(){this.disabled||this.readonly||p(this.popoverElement)||await this.popoverElement.present()}async close(){this.disabled||this.readonly||p(this.popoverElement)||this.blurSelect()}async cancel(){this.labelToScrollTo="",this.close(),this.scrollTo(0),this.balCancel.emit()}async select(t){const e=this.options.get(t);p(e)||this.optionSelected(e)}async setAriaForm(t){this.ariaForm=Object.assign({},t)}async waitForOptionsAndThenUpdateRawValues(){clearTimeout(this.waitForOptionsAndThenUpdateRawValuesTimer),await a(this.el),this.options.size>0?this.syncRawValue(D):this.waitForOptionsAndThenUpdateRawValuesTimer=setTimeout((()=>this.waitForOptionsAndThenUpdateRawValues()),10)}async updateOptions(){const t=this.getChildOpts(),e=new Map;for(let i=0;i<t.length;i++){const o=t[i];e.set(o.value,{value:o.value,label:o.label,disabled:o.disabled,id:o.for,textContent:o.textContent,innerHTML:o.innerHTML})}if(!this.selectionOptional&&Array.isArray(this.rawValue))for(let t=0;t<this.rawValue.length;t++){const i=this.rawValue[t];if(!e.has(i)){const t=j(this.rawValue,i);this.updateRawValue(t,D)}}this.options=new Map(e),this.typeahead||await this.syncNativeInput(),this.didInit&&!this.remote&&this.validateAfterBlur()}get optionArray(){const t=Array.from(this.options,(([t,e])=>e));return!this.typeahead||this.remote?t:t.filter((t=>"includes"===this.filter?B(t.textContent,this.inputValue):z(t.textContent,this.inputValue)))}hasOptions(){return this.optionArray.length>0}get inputPlaceholder(){return this.multiple?T(this.rawValue)<1?this.placeholder:void 0:!p(this.rawValue)&&T(this.rawValue)>0?void 0:this.placeholder}getChildOpts(){return Array.from(this.el.querySelectorAll("bal-select-option"))}getPopoverContent(){return this.popoverElement.querySelector(".bal-popover__content__inner")}updateFocus(){this.focusIndex<0&&(this.focusIndex=0);const t=this.optionArray;if(t.length>0){t.length<=this.focusIndex&&(this.focusIndex=t.length-1);const e=t[this.focusIndex];if(e&&e.id){const t=this.el.querySelector(`button#${e.id}`);t&&(clearTimeout(this.updateFocusTimer),this.updateFocusTimer=setTimeout((()=>{this.scrollToFocusedOption(t)}),0))}}else this.focusIndex=0}scrollToFocusedOption(t){if(t&&this.popoverElement){const e=this.getPopoverContent();if(e){const i=t.offsetTop;i<e.scrollTop&&(e.scrollTop=i),t.offsetTop+t.clientHeight>e.scrollTop+e.clientHeight&&(e.scrollTop=e.scrollTop+t.clientHeight)}}}scrollTo(t){const e=this.getPopoverContent();e&&(e.scrollTop=t)}selectedFocusedOption(){const t=this.optionArray;if(t.length>this.focusIndex){const e=t[this.focusIndex];e&&this.optionSelected(e)}}navigateWithArrowKey(t){y(t)?this.focusIndex=this.focusIndex+1:k(t)&&(this.focusIndex=this.focusIndex-1)}focusOptionByLabel(t){this.labelToScrollTo=this.labelToScrollTo+t,clearTimeout(this.clearScrollToValue),this.clearScrollToValue=setTimeout((()=>{this.scrollToLabel(this.labelToScrollTo)}),600)}selectOptionByLabel(t){this.labelToSelectTo=this.labelToSelectTo+t,clearTimeout(this.clearSelectValue),this.clearSelectValue=setTimeout((()=>{this.selectLabel(this.labelToSelectTo),this.labelToSelectTo=""}),600)}async selectLabel(t){if(" "!==t){const e=this.optionArray.find((e=>z(e.label||"",t)));if(!p(e)&&e.id){const t=this.el.querySelector(`button#${e.id}`);if(!p(t)){const t=this.optionArray.indexOf(e);this.focusIndex=t,this.select(e.value)}}this.labelToScrollTo=""}}async scrollToLabel(t){if(" "!==t){const e=this.optionArray.find((e=>z(e.label||"",t)));if(!p(e)&&e.id){const t=this.el.querySelector(`button#${e.id}`);if(!p(t)){const i=this.optionArray.indexOf(e);this.focusIndex=i,this.scrollTo(t.offsetTop)}}this.labelToScrollTo=""}}syncRawValue(t=!0){let e=[];p(this.value)||""===this.value||(e=Array.isArray(this.value)?[...this.value.filter((t=>!p(t)))]:this.value.split("").includes(",")?[...this.value.split(",").filter((t=>t)).map((t=>t.trim()))]:[this.value]),this.updateRawValue(e,t)}blurSelect(){this.popoverElement.dismiss()}optionSelected(t){const e=L(this.rawValue).some((e=>e===t.value));this.updateValue(t.value,!e),this.multiple?this.typeahead&&this.setFocus():this.blurSelect()}updateValue(t,e=!0){this.multiple?this.updateRawValue(e?F(this.rawValue,t,this.multiple):j(this.rawValue,t),P):(this.updateRawValue(F(this.rawValue,t,this.multiple),P),this.rawValue&&this.rawValue.length>0&&this.updateInputValue(A(this.options,this.rawValue[0])))}validateAfterBlur(t=!1){let e=this.rawValue;if(this.didInit&&!this.multiple){if(this.typeahead&&(this.selectionOptional||this.remote)){const t=I(this.options,this.inputElement.value);e=t?[t.value]:[this.inputElement.value]}else e=M(this.rawValue,this.options,this.inputElement.value);this.updateRawValue(e,t)}}syncNativeInput(t=!0){if(!this.multiple&&T(this.rawValue)>0){const t=L(this.rawValue);let e=A(this.options,t[0]);return!this.multiple&&this.typeahead&&this.selectionOptional&&""===e&&(e=t.join(", ")),this.updateInputValue(e)}return t||0!==T(this.rawValue)?Promise.resolve():this.updateInputValue("")}updateInputValue(t){return new Promise((e=>{this.updateInputValueTimer&&clearTimeout(this.updateInputValueTimer),this.updateInputValueTimer=setTimeout((()=>{p(this.inputElement)||(this.inputElement.value=t,this.inputValue=t,e())}),0)}))}isChipClicked(t){let e=!1;if(this.multiple){const i=this.selectionEl.querySelectorAll("bal-tag"),o=t.target;i.forEach((t=>{const i=r(t,o)||t===o;i&&(e=i)}))}return e}isInsideOfFooter(){this.inverted=null!==this.el.closest("bal-footer")}render(){var t;const e=t=>n("bal-tag",{key:"69e00b5d661f1917fb6cbcf8919a8ce9670a25dd",size:"",closable:!this.disabled,disabled:this.disabled,invalid:this.invalid,tabindex:-1,onBalCloseClick:()=>this.removeValue(t.value),"data-testid":"bal-select-chip"},A(this.options,t.value)||t.value),i=L(this.rawValue),o=f.block("select"),s=o.element("native"),l=o.element("control"),a=l.element("icon"),r=l.element("selections"),h=l.element("input"),b=o.element("popover"),d=b.element("empty"),p=o.element("option"),m=p.element("content"),v=m.element("checkbox"),g=m.element("label");return n(c,{key:"3d670b9aa3467ee96c65e2b1a98beda836cac095",role:"listbox",onClick:this.handleClick,"aria-disabled":u(this.disabled),"data-value":null===(t=this.rawValue)||void 0===t?void 0:t.map((t=>A(this.options,t))).join(","),class:Object.assign(Object.assign(Object.assign(Object.assign({},o.class()),o.modifier("disabled").class(this.disabled||this.readonly)),o.modifier("inverted").class(this.inverted)),o.modifier("inverted-footer").class(this.inverted))},n("select",{key:"1d438d1034af395d0f99bed2443bb66de288bb0a",class:Object.assign({},s.class()),name:this.name,multiple:this.multiple,required:this.required,tabindex:-1,ref:t=>this.nativeSelectEl=t},i.map((t=>n("option",{key:t,value:t,selected:!0},t)))),n("bal-popover",{key:"8dc177324409d7bfdd75e3f375acd00c41ac11e8",onBalChange:this.handlePopoverChange,ref:t=>this.popoverElement=t},n("div",{key:"eaa30ce518119e5ced60fc093e887167c4e83c69","bal-popover-trigger":!0,class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},l.class()),l.modifier("invalid").class(this.invalid)),l.modifier("disabled").class(this.disabled||this.readonly)),l.modifier("focused").class(this.isPopoverOpen)),l.modifier("inverted-footer").class(this.inverted))},n("div",{key:"4c6b0c807a1c25712d128216909e137af0d3cbf8",class:Object.assign(Object.assign({},r.class()),r.modifier("clickable").class(!this.isPopoverOpen&&!this.disabled&&!this.readonly)),onClick:this.handleInputClick,ref:t=>this.selectionEl=t},i.filter((()=>this.multiple)).map((t=>n(e,{value:t}))),n("input",{key:"1d7fb70f81b7c0ae5fad2f77089ba2a8b04da050",type:"text",class:Object.assign(Object.assign({},h.class()),{input:!0,"is-inverted":this.inverted,"is-danger":this.invalid,"is-disabled":this.disabled||this.readonly,"is-clickable":!this.isPopoverOpen&&!this.disabled&&!this.readonly,"data-test-select-input":!0}),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":u(this.disabled),"data-testid":"bal-select-input",autocomplete:this.autocomplete,"aria-autocomplete":"off"===this.autocomplete?"none":null,placeholder:this.inputPlaceholder,readonly:!this.typeahead||this.disabled||this.readonly,contentEditable:this.typeahead,disabled:this.disabled,maxLength:this.maxLength,tabindex:this.balTabindex,onInput:this.handleInput,onClick:this.handleInputClick,onChange:this.handleInputChange,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,onKeyPress:this.handleKeyPress,ref:t=>this.inputElement=t})),this.freeSolo||this.loading?"":n("bal-icon",{class:Object.assign(Object.assign(Object.assign({},a.class()),a.modifier("loading").class(this.loading)),a.modifier("clickable").class(!this.disabled&&!this.readonly)),name:this.inverted?"caret-up":"caret-down",color:this.disabled||this.readonly?"grey-light":this.inverted?"white":this.invalid?"danger":"primary",turn:this.isPopoverOpen,onClick:t=>this.handleInputClick(t,!0),size:this.inverted?"x-small":""})),n("bal-popover-content",{key:"756cb6d1ff62300a2b7b7d6c1250195da8fa3849",class:Object.assign({},b.class()),scrollable:this.scrollable,spaceless:!0,expanded:!0},this.optionArray.map(((t,e)=>n("button",{key:t.value,type:"button",role:"option",id:t.id,"data-value":t.value,"data-label":t.label,class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},p.class()),p.modifier("selected").class(i.includes(t.value)&&!(this.typeahead&&!this.multiple))),p.modifier("focused").class(this.focusIndex===e)),p.modifier("checkbox").class(this.multiple)),p.modifier("disabled").class(!0===t.disabled)),"data-testid":"bal-select-option",disabled:t.disabled,tabIndex:-1,onMouseEnter:()=>this.handleOptionMouseEnter(e),onClick:()=>this.optionSelected(t)},n("div",{class:Object.assign({},m.class())},n("span",{class:Object.assign({},v.class()),style:{display:this.multiple?"flex":"none"}},n("bal-checkbox",{checked:i.includes(t.value),tabindex:-1,nonSubmit:!0,flat:!0,onBalChange:C})),n("span",{class:Object.assign({},g.class()),innerHTML:t.innerHTML}))))),n("div",{key:"7f49f62da3e7a1edd769f41e43fddda83a50f52b",class:Object.assign(Object.assign({},d.class()),d.modifier("hidden").class(void 0===this.noDataLabel||this.hasOptions()||!this.typeahead||this.selectionOptional))},this.noDataLabel))))}get el(){return h(this)}static get watchers(){return{value:["valueWatcher"]}}};b([t("bal-select"),d("design:type",Function),d("design:paramtypes",[Function]),d("design:returntype",void 0)],V.prototype,"createLogger",null);let E=0;V.style=":root{--bal-select-control-background:var(--bal-color-white);--bal-select-control-background-hover:var(--bal-form-field-control-background-hover);--bal-select-control-background-invalid:var(--bal-form-field-control-danger-background);--bal-select-control-background-disabled:var(--bal-form-field-control-disabled-background);--bal-select-control-input-background:var(--bal-color-grey-1);--bal-select-control-native-input-background:transparent;--bal-select-control-native-input-background-hover:transparent;--bal-select-control-input-inverted-footer-background:transparent;--bal-select-control-input-inverted-footer-background-hover:transparent;--bal-select-control-input-multiple-background:transparent;--bal-select-control-input-multiple-background-read-only-selection:transparent;--bal-select-control-input-option-background:transparent;--bal-select-control-input-option-background-selected:var(--bal-color-primary-1);--bal-select-control-input-option-background-focused:var(--bal-color-grey-3);--bal-select-control-input-option-background-hover:var(--bal-color-grey-3);--bal-select-control-border-radius:var(--bal-form-field-control-radius);--bal-select-popover-border-color:var(--bal-color-grey-2);--bal-select-control-border-color:var(--bal-form-field-control-border-color);--bal-select-control-border-color-focused:var(--bal-color-primary);--bal-select-control-border-color-hover:var(--bal-form-field-control-border-color-hover);--bal-select-control-border-color-invalid:var(--bal-form-field-control-danger-border-color);--bal-select-control-border-color-disabled:var(--bal-form-field-control-disabled-border-color);--bal-select-control-border-color-focus-within:var(--bal-color-primary);--bal-select-option-border-top-color:var(--bal-color-grey-2);--bal-select-popover-empty-text-color:var(--bal-form-field-control-color);--bal-select-control-text-color:var(--bal-form-field-control-color);--bal-select-control-text-color-focused:var(--bal-color-primary);--bal-select-input-text-color-disabled:var(--bal-form-field-label-disabled-color);--bal-select-control-inverted-footer-native-input-text-color:var(--bal-color-text-white);--bal-select-option-content-label-text-color:var(--bal-form-field-control-color)}bal-select-option{display:none !important}.bal-select{display:block;position:relative;width:100%;-ms-flex:1;flex:1;font-family:var(--bal-font-family-text)}.bal-select__popover{border:.125rem solid var(--bal-select-popover-border-color)}.bal-select__popover__empty{padding:.5rem 1rem;font-family:var(--bal-font-family-text);color:var(--bal-select-popover-empty-text-color)}.bal-select__popover__empty--hidden{display:none}.bal-select__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}.bal-select__control{display:-ms-flexbox;display:flex;border-width:.125rem;border-style:solid;border-color:var(--bal-select-control-border-color);border-radius:var(--bal-select-control-border-radius);background:var(--bal-select-control-background);font-size:var(--bal-font-weight-regular);font-family:var(--bal-font-family-text);color:var(--bal-select-control-text-color);outline:none;-webkit-box-shadow:none;box-shadow:none;padding-right:1rem;min-height:3rem}.bal-select__control--focused{border-color:var(--bal-select-control-border-color-focused)}.bal-select__control:not(.bal-select__control--disabled):not(.bal-select__control--invalid):not(.bal-select__control--inverted-footer):hover{border-color:var(--bal-select-control-border-color-hover);background-color:var(--bal-select-control-background-hover)}.bal-select__control:not(.bal-select__control--disabled):not(.bal-select__control--invalid):not(.bal-select__control--inverted-footer):hover .bal-select__control__input{background-color:var(--bal-select-control-input-background)}.bal-select__control--invalid:not(.bal-select__control--disabled){border-color:var(--bal-select-control-border-color-invalid) !important;background:var(--bal-select-control-background-invalid) !important}.bal-select__control:focus-within{border-color:var(--bal-select-control-border-color-focus-within) !important}.bal-select__control--disabled{background-color:var(--bal-select-control-background-disabled) !important;border-color:var(--bal-select-control-border-color-disabled) !important}.bal-select__control--disabled,.bal-select__control--disabled input{cursor:default !important;-webkit-user-select:none !important;-moz-user-select:none !important;-ms-user-select:none !important;user-select:none !important;pointer-events:none !important;color:var(--bal-select-input-text-color-disabled)}.bal-select__control--inverted-footer{border:none;background-color:var(--bal-select-control-input-inverted-footer-background) !important;padding-right:0}.bal-select__control--inverted-footer:hover{background-color:var(--bal-select-control-input-inverted-footer-background-hover) !important}.bal-select__control--inverted-footer .input{color:var(--bal-select-control-inverted-footer-native-input-text-color);background-color:var(--bal-select-control-native-input-background) !important}.bal-select__control--inverted-footer .input:hover{background-color:var(--bal-select-control-native-input-background-hover) !important}.bal-select__control__icon{min-height:100% !important;max-height:100% !important}.bal-select__control__icon--loading{display:none}.bal-select__control__icon--clickable{cursor:pointer}.bal-select__control__selections{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex:1 1;flex:1 1;-ms-flex-wrap:wrap;flex-wrap:wrap;line-height:1.125rem;max-width:100%;min-width:0;gap:0;padding-left:.375rem}.bal-select__control__selections .bal-tag{margin-left:.25rem;margin-top:.375rem;margin-bottom:.375rem}.bal-select__control__selections .bal-tag+.input{padding-left:.625rem}.bal-select__control__input{border:none !important;outline:none !important;outline-width:0 !important;height:2.75rem !important;-webkit-box-shadow:none !important;box-shadow:none !important;background:var(--bal-select-control-input-multiple-background);-ms-flex:1;flex:1;min-height:2.75rem !important;padding-left:.25rem !important;padding-right:.625rem !important;text-overflow:ellipsis}.bal-select__control__input:-moz-read-only{-moz-user-select:none !important;user-select:none !important;-webkit-tap-highlight-color:rgba(0,0,0,0)}.bal-select__control__input:read-only{-webkit-user-select:none !important;-moz-user-select:none !important;-ms-user-select:none !important;user-select:none !important;-webkit-tap-highlight-color:rgba(0,0,0,0)}.bal-select__control__input:read-only::-moz-selection{background:var(--bal-select-control-input-multiple-background-read-only-selection)}.bal-select__control__input:-moz-read-only::selection{background:var(--bal-select-control-input-multiple-background-read-only-selection)}.bal-select__control__input:read-only::selection{background:var(--bal-select-control-input-multiple-background-read-only-selection)}.bal-select__control__input:-moz-read-only::-moz-selection{background:var(--bal-select-control-input-multiple-background-read-only-selection)}.bal-select__control__input:read-only::-moz-selection{background:var(--bal-select-control-input-multiple-background-read-only-selection)}.bal-select__option{visibility:visible;font-family:var(--bal-font-family-text);background:var(--bal-select-control-input-option-background);border:none;cursor:pointer;outline:none;min-height:3rem;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0;margin:0;border-top:.125rem solid var(--bal-select-option-border-top-color);text-align:inherit;white-space:nowrap;width:100%}.bal-select__option:first-child{border-top:none}.bal-select__option::-moz-focus-inner{border:none}.bal-select__option--selected{background:var(--bal-select-control-input-option-background-selected)}.bal-select__option--selected .bal-select__option__content__label{font-weight:var(--bal-font-weight-bold)}.bal-select__option--focused{background:var(--bal-select-control-input-option-background-focused)}.bal-select__option:hover{background:var(--bal-select-control-input-option-background-hover)}.bal-select__option__content{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-align:center;align-items:center;min-height:3rem;padding:.75rem 1rem;gap:.75rem}.bal-select__option__content__checkbox{margin:0;padding:0}.bal-select__option__content__label{margin:0;padding:0;font-family:var(--bal-font-family-text);font-weight:var(--bal-font-weight-regular);color:var(--bal-select-option-content-label-text-color);line-height:1.125rem;word-break:break-word;white-space:normal;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto}";const H=class{constructor(t){e(this,t),this.disabled=!1,this.for="bal-selopt-"+W++}createLogger(t){this.log=t}render(){return n(c,{key:"42c10fcd28b41d1158304ee9a7936c2fa0c52d85",style:{display:"none"}},n("slot",{key:"da6a2841c0dd48aa662bf38926151669a4525048"}))}};b([t("bal-select-option"),d("design:type",Function),d("design:paramtypes",[Function]),d("design:returntype",void 0)],H.prototype,"createLogger",null);let W=0;export{V as bal_select,H as bal_select_option}
|
|
1
|
+
import{L as t,H as e,P as i,J as o,I as s,y as l,r as a,t as r,M as n,N as c,O as h}from"./p-Btdiqd5K.js";import{_ as b,a as d}from"./p-dfXERft2.js";import{i as p}from"./p-xbSOW78W.js";import{a as u}from"./p-DBsOHTWj.js";import{a as m}from"./p-BAaDJIzy.js";import{B as f}from"./p-ByiN-QjD.js";import{d as v}from"./p-FCLKfv6B.js";import{s as g}from"./p-jKk811CD.js";import{d as _,i as y,a as k,b as x,c as w,k as O}from"./p-D1VPLQ5z.js";import{r as j,p as C,l as T,g as L,i as B,s as z,a as F,f as A,b as I,v as M}from"./p-BG4j3FEv.js";import"./p-BFTU3MAI.js";import"./p-BnVL_HEz.js";const D=!0,P=!1,V=class{constructor(t){e(this,t),this.balChange=i(this,"balChange"),this.balInputClick=i(this,"balInputClick"),this.balInput=i(this,"balInput"),this.balBlur=i(this,"balBlur"),this.balFocus=i(this,"balFocus"),this.balCancel=i(this,"balCancel"),this.balKeyPress=i(this,"balKeyPress"),this.didInit=!1,this.inputId="bal-select-"+E++,this.initialValue=[],this.hasFocus=!1,this.inputValue="",this.focusIndex=-1,this.isPopoverOpen=!1,this.options=new Map,this.labelToScrollTo="",this.labelToSelectTo="",this.ariaForm=v,this.name=this.inputId,this.invalid=!1,this.filter="includes",this.balTabindex=0,this.freeSolo=!1,this.multiple=!1,this.autocomplete="off",this.typeahead=!1,this.selectionOptional=!1,this.disabled=!1,this.readonly=!1,this.required=!1,this.inverted=!1,this.scrollable=250,this.loading=!1,this.remote=!1,this.autoInvalidOff=!1,this.value=[],this.rawValue=[],this.removeValue=t=>{this.disabled||(this.updateRawValue(j(this.rawValue,t),D),this.multiple&&this.typeahead&&this.setFocus(),this.fireBlur())},this.fireBlur=(t=new CustomEvent("blur"))=>{this.isPopoverOpen||this.hasFocus||o((()=>this.balBlur.emit(t)))},this.handleClick=t=>{(this.disabled||this.readonly)&&C(t)},this.handlePopoverChange=t=>{t.stopPropagation(),this.isPopoverOpen!==t.detail&&(this.isPopoverOpen=t.detail,this.isPopoverOpen?this.updateFocus():(this.focusIndex=0,this.multiple&&this.typeahead&&this.updateInputValue(""),this.fireBlur(t)))},this.handleInputBlur=t=>{C(t);const e=t.relatedTarget;(null===e||e&&e.nodeName&&("BAL-MODAL"===e.nodeName||"INPUT"===e.nodeName||"BUTTON"===e.nodeName))&&this.validateAfterBlur(D),this.hasFocus=!1,this.fireBlur(t)},this.handleInputFocus=t=>{this.balFocus.emit(t),this.hasFocus=!0},this.handleInputClick=async(t,e=!1)=>{var i,o,s,l;g(t),this.isChipClicked(t)||(this.disabled||this.readonly?C(t):(this.focusIndex=0,this.balInputClick.emit(t),this.typeahead?this.isPopoverOpen&&e?await(null===(i=this.popoverElement)||void 0===i?void 0:i.dismiss()):await(null===(o=this.popoverElement)||void 0===o?void 0:o.present()):this.isPopoverOpen?await(null===(s=this.popoverElement)||void 0===s?void 0:s.dismiss()):await(null===(l=this.popoverElement)||void 0===l?void 0:l.present())))},this.handleKeyPress=async t=>{!this.isPopoverOpen&&_(t)&&(C(t),await this.open()),this.balKeyPress.emit(t)},this.handleInputChange=t=>{this.disabled||this.readonly||(this.inputValue=t.target.value)},this.handleInput=async t=>{this.disabled||this.readonly||(this.inputValue=t.target.value,this.isPopoverOpen||this.popoverElement.present(),this.focusIndex=0,this.updateFocus(),C(t),this.balInput.emit(this.inputValue))},this.handleOptionMouseEnter=t=>{this.focusIndex=t}}createLogger(t){this.log=t}valueWatcher(){this.syncRawValue(!1)}updateRawValue(t,e=!0){m(t,this.rawValue||[])||(this.rawValue=[...t],this.syncNativeInput(e),this.didInit&&!0===e&&(this.multiple?p(this.rawValue)?this.emitChangeEvent([]):this.emitChangeEvent([...this.rawValue]):p(this.rawValue)||0===T(this.rawValue)?this.emitChangeEvent(void 0):this.emitChangeEvent(this.rawValue[0])))}emitChangeEvent(t){this.balChange.emit(t)}connectedCallback(){const t=s((()=>this.updateOptions()),0);this.initialValue=this.value,t(),this.mutationO=(e=>{if("undefined"==typeof MutationObserver)return;const i=new MutationObserver((e=>{(e=e.filter((t=>t.target.nodeName==="bal-select-option".toUpperCase()||t.target.nodeName==="bal-select".toUpperCase()))).length>0&&t()}));return i.observe(e,{childList:!0,subtree:!0,attributes:!0,characterData:!0}),i})(this.el)}componentWillLoad(){if(this.waitForOptionsAndThenUpdateRawValues(),this.isInsideOfFooter(),!p(this.rawValue)&&this.options.size>0&&1===T(this.rawValue)){const t=this.options.get(this.rawValue[0]);p(t)||(this.inputValue=t.label)}}componentDidLoad(){this.syncRawValue(!1),this.multiple||(this.inputElement.value=this.inputValue),this.didInit=!0}disconnectedCallback(){this.mutationO&&(this.mutationO.disconnect(),this.mutationO=void 0)}listenOnClick(t){this.disabled&&t.target&&t.target===this.el&&C(t)}resetHandler(t){const e=t.target;(null==e?void 0:e.contains(this.el))&&(this.resetHandlerTimer&&clearTimeout(this.resetHandlerTimer),this.resetHandlerTimer=setTimeout((()=>{this.value=this.initialValue,this.syncRawValue(!1),this.syncNativeInput(),this.nativeSelectEl&&Array.from(this.nativeSelectEl.options).forEach((t=>t.selected=!0))}),0))}async handleKeyDown(t){if(this.isPopoverOpen){if((y(t)||k(t))&&(C(t),this.navigateWithArrowKey(t),this.updateFocus()),x(t)&&(C(t),this.selectedFocusedOption()),w(t)&&this.cancel(),O(t)&&this.typeahead&&this.multiple&&""===this.inputElement.value&&T(this.rawValue)>0){const t=L(this.rawValue);this.removeValue(t[T(this.rawValue)-1])}this.typeahead||1!==t.key.length||this.focusOptionByLabel(t.key),_(t)&&!this.typeahead&&C(t)}else this.hasFocus&&((y(t)||k(t))&&(C(t),await this.open()),this.typeahead||1!==t.key.length||this.selectOptionByLabel(t.key))}async setFocus(){this.inputElement&&!this.disabled&&(await l(),this.inputElement.focus())}async getValue(){return this.rawValue}async clear(){this.focusIndex=0,this.inputElement&&(this.updateInputValue(""),this.updateRawValue([],D),this.value=this.multiple?[]:"")}async open(){this.disabled||this.readonly||p(this.popoverElement)||await this.popoverElement.present()}async close(){this.disabled||this.readonly||p(this.popoverElement)||this.blurSelect()}async cancel(){this.labelToScrollTo="",this.close(),this.scrollTo(0),this.balCancel.emit()}async select(t){const e=this.options.get(t);p(e)||this.optionSelected(e)}async setAriaForm(t){this.ariaForm=Object.assign({},t)}async waitForOptionsAndThenUpdateRawValues(){clearTimeout(this.waitForOptionsAndThenUpdateRawValuesTimer),await a(this.el),this.options.size>0?this.syncRawValue(P):this.waitForOptionsAndThenUpdateRawValuesTimer=setTimeout((()=>this.waitForOptionsAndThenUpdateRawValues()),10)}async updateOptions(){const t=this.getChildOpts(),e=new Map;for(let i=0;i<t.length;i++){const o=t[i];e.set(o.value,{value:o.value,label:o.label,disabled:o.disabled,id:o.for,textContent:o.textContent,innerHTML:o.innerHTML})}if(!this.selectionOptional&&Array.isArray(this.rawValue))for(let t=0;t<this.rawValue.length;t++){const i=this.rawValue[t];if(!e.has(i)){const t=j(this.rawValue,i);this.updateRawValue(t,P)}}this.options=new Map(e),this.typeahead||await this.syncNativeInput(),this.didInit&&!this.remote&&this.validateAfterBlur()}get optionArray(){const t=Array.from(this.options,(([t,e])=>e));return!this.typeahead||this.remote?t:t.filter((t=>"includes"===this.filter?B(t.textContent,this.inputValue):z(t.textContent,this.inputValue)))}hasOptions(){return this.optionArray.length>0}get inputPlaceholder(){return this.multiple?T(this.rawValue)<1?this.placeholder:void 0:!p(this.rawValue)&&T(this.rawValue)>0?void 0:this.placeholder}getChildOpts(){return Array.from(this.el.querySelectorAll("bal-select-option"))}getPopoverContent(){return this.popoverElement.querySelector(".bal-popover__content__inner")}updateFocus(){this.focusIndex<0&&(this.focusIndex=0);const t=this.optionArray;if(t.length>0){t.length<=this.focusIndex&&(this.focusIndex=t.length-1);const e=t[this.focusIndex];if(e&&e.id){const t=this.el.querySelector(`button#${e.id}`);t&&(clearTimeout(this.updateFocusTimer),this.updateFocusTimer=setTimeout((()=>{this.scrollToFocusedOption(t)}),0))}}else this.focusIndex=0}scrollToFocusedOption(t){if(t&&this.popoverElement){const e=this.getPopoverContent();if(e){const i=t.offsetTop;i<e.scrollTop&&(e.scrollTop=i),t.offsetTop+t.clientHeight>e.scrollTop+e.clientHeight&&(e.scrollTop=e.scrollTop+t.clientHeight)}}}scrollTo(t){const e=this.getPopoverContent();e&&(e.scrollTop=t)}selectedFocusedOption(){const t=this.optionArray;if(t.length>this.focusIndex){const e=t[this.focusIndex];e&&this.optionSelected(e)}}navigateWithArrowKey(t){y(t)?this.focusIndex=this.focusIndex+1:k(t)&&(this.focusIndex=this.focusIndex-1)}focusOptionByLabel(t){this.labelToScrollTo=this.labelToScrollTo+t,clearTimeout(this.clearScrollToValue),this.clearScrollToValue=setTimeout((()=>{this.scrollToLabel(this.labelToScrollTo)}),600)}selectOptionByLabel(t){this.labelToSelectTo=this.labelToSelectTo+t,clearTimeout(this.clearSelectValue),this.clearSelectValue=setTimeout((()=>{this.selectLabel(this.labelToSelectTo),this.labelToSelectTo=""}),600)}async selectLabel(t){if(" "!==t){const e=this.optionArray.find((e=>z(e.label||"",t)));if(!p(e)&&e.id){const t=this.el.querySelector(`button#${e.id}`);if(!p(t)){const t=this.optionArray.indexOf(e);this.focusIndex=t,this.select(e.value)}}this.labelToScrollTo=""}}async scrollToLabel(t){if(" "!==t){const e=this.optionArray.find((e=>z(e.label||"",t)));if(!p(e)&&e.id){const t=this.el.querySelector(`button#${e.id}`);if(!p(t)){const i=this.optionArray.indexOf(e);this.focusIndex=i,this.scrollTo(t.offsetTop)}}this.labelToScrollTo=""}}syncRawValue(t=!0){let e=[];p(this.value)||""===this.value||(e=Array.isArray(this.value)?[...this.value.filter((t=>!p(t)))]:this.value.split("").includes(",")?[...this.value.split(",").filter((t=>t)).map((t=>t.trim()))]:[this.value]),this.updateRawValue(e,t)}blurSelect(){this.popoverElement.dismiss()}optionSelected(t){const e=L(this.rawValue).some((e=>e===t.value));this.updateValue(t.value,!e),this.multiple?this.typeahead&&this.setFocus():this.blurSelect()}updateValue(t,e=!0){this.multiple?this.updateRawValue(e?F(this.rawValue,t,this.multiple):j(this.rawValue,t),D):(this.updateRawValue(F(this.rawValue,t,this.multiple),D),this.rawValue&&this.rawValue.length>0&&this.updateInputValue(A(this.options,this.rawValue[0])))}validateAfterBlur(t=!1){let e=this.rawValue;if(this.didInit&&!this.multiple){if(this.typeahead&&(this.selectionOptional||this.remote)){const t=I(this.options,this.inputElement.value);e=t?[t.value]:[this.inputElement.value]}else e=M(this.rawValue,this.options,this.inputElement.value);this.updateRawValue(e,t)}}syncNativeInput(t=!0){if(!this.multiple&&T(this.rawValue)>0){const t=L(this.rawValue);let e=A(this.options,t[0]);return!this.multiple&&this.typeahead&&this.selectionOptional&&""===e&&(e=t.join(", ")),this.updateInputValue(e)}return t||0!==T(this.rawValue)?Promise.resolve():this.updateInputValue("")}updateInputValue(t){return new Promise((e=>{this.updateInputValueTimer&&clearTimeout(this.updateInputValueTimer),this.updateInputValueTimer=setTimeout((()=>{p(this.inputElement)||(this.inputElement.value=t,this.inputValue=t,e())}),0)}))}isChipClicked(t){let e=!1;if(this.multiple){const i=this.selectionEl.querySelectorAll("bal-tag"),o=t.target;i.forEach((t=>{const i=r(t,o)||t===o;i&&(e=i)}))}return e}isInsideOfFooter(){this.inverted=null!==this.el.closest("bal-footer")}render(){var t;const e=t=>n("bal-tag",{key:"69e00b5d661f1917fb6cbcf8919a8ce9670a25dd",size:"",closable:!this.disabled,disabled:this.disabled,invalid:this.invalid,tabindex:-1,onBalCloseClick:()=>this.removeValue(t.value),"data-testid":"bal-select-chip"},A(this.options,t.value)||t.value),i=L(this.rawValue),o=f.block("select"),s=o.element("native"),l=o.element("control"),a=l.element("icon"),r=l.element("selections"),h=l.element("input"),b=o.element("popover"),d=b.element("empty"),p=o.element("option"),m=p.element("content"),v=m.element("checkbox"),g=m.element("label");return n(c,{key:"3d670b9aa3467ee96c65e2b1a98beda836cac095",role:"listbox",onClick:this.handleClick,"aria-disabled":u(this.disabled),"data-value":null===(t=this.rawValue)||void 0===t?void 0:t.map((t=>A(this.options,t))).join(","),class:Object.assign(Object.assign(Object.assign(Object.assign({},o.class()),o.modifier("disabled").class(this.disabled||this.readonly)),o.modifier("inverted").class(this.inverted)),o.modifier("inverted-footer").class(this.inverted))},n("select",{key:"1d438d1034af395d0f99bed2443bb66de288bb0a",class:Object.assign({},s.class()),name:this.name,multiple:this.multiple,required:this.required,tabindex:-1,ref:t=>this.nativeSelectEl=t},i.map((t=>n("option",{key:t,value:t,selected:!0},t)))),n("bal-popover",{key:"8dc177324409d7bfdd75e3f375acd00c41ac11e8",onBalChange:this.handlePopoverChange,ref:t=>this.popoverElement=t},n("div",{key:"eaa30ce518119e5ced60fc093e887167c4e83c69","bal-popover-trigger":!0,class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},l.class()),l.modifier("invalid").class(this.invalid)),l.modifier("disabled").class(this.disabled||this.readonly)),l.modifier("focused").class(this.isPopoverOpen)),l.modifier("inverted-footer").class(this.inverted))},n("div",{key:"4c6b0c807a1c25712d128216909e137af0d3cbf8",class:Object.assign(Object.assign({},r.class()),r.modifier("clickable").class(!this.isPopoverOpen&&!this.disabled&&!this.readonly)),onClick:this.handleInputClick,ref:t=>this.selectionEl=t},i.filter((()=>this.multiple)).map((t=>n(e,{value:t}))),n("input",{key:"1d7fb70f81b7c0ae5fad2f77089ba2a8b04da050",type:"text",class:Object.assign(Object.assign({},h.class()),{input:!0,"is-inverted":this.inverted,"is-danger":this.invalid,"is-disabled":this.disabled||this.readonly,"is-clickable":!this.isPopoverOpen&&!this.disabled&&!this.readonly,"data-test-select-input":!0}),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":u(this.disabled),"data-testid":"bal-select-input",autocomplete:this.autocomplete,"aria-autocomplete":"off"===this.autocomplete?"none":null,placeholder:this.inputPlaceholder,readonly:!this.typeahead||this.disabled||this.readonly,contentEditable:this.typeahead,disabled:this.disabled,maxLength:this.maxLength,tabindex:this.balTabindex,onInput:this.handleInput,onClick:this.handleInputClick,onChange:this.handleInputChange,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,onKeyPress:this.handleKeyPress,ref:t=>this.inputElement=t})),this.freeSolo||this.loading?"":n("bal-icon",{class:Object.assign(Object.assign(Object.assign({},a.class()),a.modifier("loading").class(this.loading)),a.modifier("clickable").class(!this.disabled&&!this.readonly)),name:this.inverted?"caret-up":"caret-down",color:this.disabled||this.readonly?"grey-light":this.inverted?"white":this.invalid?"danger":"primary",turn:this.isPopoverOpen,onClick:t=>this.handleInputClick(t,!0),size:this.inverted?"x-small":""})),n("bal-popover-content",{key:"756cb6d1ff62300a2b7b7d6c1250195da8fa3849",class:Object.assign({},b.class()),scrollable:this.scrollable,spaceless:!0,expanded:!0},this.optionArray.map(((t,e)=>n("button",{key:t.value,type:"button",role:"option",id:t.id,"data-value":t.value,"data-label":t.label,class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},p.class()),p.modifier("selected").class(i.includes(t.value)&&!(this.typeahead&&!this.multiple))),p.modifier("focused").class(this.focusIndex===e)),p.modifier("checkbox").class(this.multiple)),p.modifier("disabled").class(!0===t.disabled)),"data-testid":"bal-select-option",disabled:t.disabled,tabIndex:-1,onMouseEnter:()=>this.handleOptionMouseEnter(e),onClick:()=>this.optionSelected(t)},n("div",{class:Object.assign({},m.class())},n("span",{class:Object.assign({},v.class()),style:{display:this.multiple?"flex":"none"}},n("bal-checkbox",{checked:i.includes(t.value),tabindex:-1,nonSubmit:!0,flat:!0,onBalChange:C})),n("span",{class:Object.assign({},g.class()),innerHTML:t.innerHTML}))))),n("div",{key:"7f49f62da3e7a1edd769f41e43fddda83a50f52b",class:Object.assign(Object.assign({},d.class()),d.modifier("hidden").class(void 0===this.noDataLabel||this.hasOptions()||!this.typeahead||this.selectionOptional))},this.noDataLabel))))}get el(){return h(this)}static get watchers(){return{value:["valueWatcher"]}}};b([t("bal-select"),d("design:type",Function),d("design:paramtypes",[Function]),d("design:returntype",void 0)],V.prototype,"createLogger",null);let E=0;V.style=":root{--bal-select-control-background:var(--bal-color-white);--bal-select-control-background-hover:var(--bal-form-field-control-background-hover);--bal-select-control-background-invalid:var(--bal-form-field-control-danger-background);--bal-select-control-background-disabled:var(--bal-form-field-control-disabled-background);--bal-select-control-input-background:var(--bal-color-grey-1);--bal-select-control-native-input-background:transparent;--bal-select-control-native-input-background-hover:transparent;--bal-select-control-input-inverted-footer-background:transparent;--bal-select-control-input-inverted-footer-background-hover:transparent;--bal-select-control-input-multiple-background:transparent;--bal-select-control-input-multiple-background-read-only-selection:transparent;--bal-select-control-input-option-background:transparent;--bal-select-control-input-option-background-selected:var(--bal-color-primary-1);--bal-select-control-input-option-background-focused:var(--bal-color-grey-3);--bal-select-control-input-option-background-hover:var(--bal-color-grey-3);--bal-select-control-border-radius:var(--bal-form-field-control-radius);--bal-select-popover-border-color:var(--bal-color-grey-2);--bal-select-control-border-color:var(--bal-form-field-control-border-color);--bal-select-control-border-color-focused:var(--bal-color-primary);--bal-select-control-border-color-hover:var(--bal-form-field-control-border-color-hover);--bal-select-control-border-color-invalid:var(--bal-form-field-control-danger-border-color);--bal-select-control-border-color-disabled:var(--bal-form-field-control-disabled-border-color);--bal-select-control-border-color-focus-within:var(--bal-color-primary);--bal-select-option-border-top-color:var(--bal-color-grey-2);--bal-select-popover-empty-text-color:var(--bal-form-field-control-color);--bal-select-control-text-color:var(--bal-form-field-control-color);--bal-select-control-text-color-focused:var(--bal-color-primary);--bal-select-input-text-color-disabled:var(--bal-form-field-label-disabled-color);--bal-select-control-inverted-footer-native-input-text-color:var(--bal-color-text-white);--bal-select-option-content-label-text-color:var(--bal-form-field-control-color)}bal-select-option{display:none !important}.bal-select{display:block;position:relative;width:100%;-ms-flex:1;flex:1;font-family:var(--bal-font-family-text)}.bal-select__popover{border:.125rem solid var(--bal-select-popover-border-color)}.bal-select__popover__empty{padding:.5rem 1rem;font-family:var(--bal-font-family-text);color:var(--bal-select-popover-empty-text-color)}.bal-select__popover__empty--hidden{display:none}.bal-select__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}.bal-select__control{display:-ms-flexbox;display:flex;border-width:.125rem;border-style:solid;border-color:var(--bal-select-control-border-color);border-radius:var(--bal-select-control-border-radius);background:var(--bal-select-control-background);font-size:var(--bal-font-weight-regular);font-family:var(--bal-font-family-text);color:var(--bal-select-control-text-color);outline:none;-webkit-box-shadow:none;box-shadow:none;padding-right:1rem;min-height:3rem}.bal-select__control--focused{border-color:var(--bal-select-control-border-color-focused)}.bal-select__control:not(.bal-select__control--disabled):not(.bal-select__control--invalid):not(.bal-select__control--inverted-footer):hover{border-color:var(--bal-select-control-border-color-hover);background-color:var(--bal-select-control-background-hover)}.bal-select__control:not(.bal-select__control--disabled):not(.bal-select__control--invalid):not(.bal-select__control--inverted-footer):hover .bal-select__control__input{background-color:var(--bal-select-control-input-background)}.bal-select__control--invalid:not(.bal-select__control--disabled){border-color:var(--bal-select-control-border-color-invalid) !important;background:var(--bal-select-control-background-invalid) !important}.bal-select__control:focus-within{border-color:var(--bal-select-control-border-color-focus-within) !important}.bal-select__control--disabled{background-color:var(--bal-select-control-background-disabled) !important;border-color:var(--bal-select-control-border-color-disabled) !important}.bal-select__control--disabled,.bal-select__control--disabled input{cursor:default !important;-webkit-user-select:none !important;-moz-user-select:none !important;-ms-user-select:none !important;user-select:none !important;pointer-events:none !important;color:var(--bal-select-input-text-color-disabled)}.bal-select__control--inverted-footer{border:none;background-color:var(--bal-select-control-input-inverted-footer-background) !important;padding-right:0}.bal-select__control--inverted-footer:hover{background-color:var(--bal-select-control-input-inverted-footer-background-hover) !important}.bal-select__control--inverted-footer .input{color:var(--bal-select-control-inverted-footer-native-input-text-color);background-color:var(--bal-select-control-native-input-background) !important}.bal-select__control--inverted-footer .input:hover{background-color:var(--bal-select-control-native-input-background-hover) !important}.bal-select__control__icon{min-height:100% !important;max-height:100% !important}.bal-select__control__icon--loading{display:none}.bal-select__control__icon--clickable{cursor:pointer}.bal-select__control__selections{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex:1 1;flex:1 1;-ms-flex-wrap:wrap;flex-wrap:wrap;line-height:1.125rem;max-width:100%;min-width:0;gap:0;padding-left:.375rem}.bal-select__control__selections .bal-tag{margin-left:.25rem;margin-top:.375rem;margin-bottom:.375rem}.bal-select__control__selections .bal-tag+.input{padding-left:.625rem}.bal-select__control__input{border:none !important;outline:none !important;outline-width:0 !important;height:2.75rem !important;-webkit-box-shadow:none !important;box-shadow:none !important;background:var(--bal-select-control-input-multiple-background);-ms-flex:1;flex:1;min-height:2.75rem !important;padding-left:.25rem !important;padding-right:.625rem !important;text-overflow:ellipsis}.bal-select__control__input:-moz-read-only{-moz-user-select:none !important;user-select:none !important;-webkit-tap-highlight-color:rgba(0,0,0,0)}.bal-select__control__input:read-only{-webkit-user-select:none !important;-moz-user-select:none !important;-ms-user-select:none !important;user-select:none !important;-webkit-tap-highlight-color:rgba(0,0,0,0)}.bal-select__control__input:read-only::-moz-selection{background:var(--bal-select-control-input-multiple-background-read-only-selection)}.bal-select__control__input:-moz-read-only::selection{background:var(--bal-select-control-input-multiple-background-read-only-selection)}.bal-select__control__input:read-only::selection{background:var(--bal-select-control-input-multiple-background-read-only-selection)}.bal-select__control__input:-moz-read-only::-moz-selection{background:var(--bal-select-control-input-multiple-background-read-only-selection)}.bal-select__control__input:read-only::-moz-selection{background:var(--bal-select-control-input-multiple-background-read-only-selection)}.bal-select__option{visibility:visible;font-family:var(--bal-font-family-text);background:var(--bal-select-control-input-option-background);border:none;cursor:pointer;outline:none;min-height:3rem;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0;margin:0;border-top:.125rem solid var(--bal-select-option-border-top-color);text-align:inherit;white-space:nowrap;width:100%}.bal-select__option:first-child{border-top:none}.bal-select__option::-moz-focus-inner{border:none}.bal-select__option--selected{background:var(--bal-select-control-input-option-background-selected)}.bal-select__option--selected .bal-select__option__content__label{font-weight:var(--bal-font-weight-bold)}.bal-select__option--focused{background:var(--bal-select-control-input-option-background-focused)}.bal-select__option:hover{background:var(--bal-select-control-input-option-background-hover)}.bal-select__option__content{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-align:center;align-items:center;min-height:3rem;padding:.75rem 1rem;gap:.75rem}.bal-select__option__content__checkbox{margin:0;padding:0}.bal-select__option__content__label{margin:0;padding:0;font-family:var(--bal-font-family-text);font-weight:var(--bal-font-weight-regular);color:var(--bal-select-option-content-label-text-color);line-height:1.125rem;word-break:break-word;white-space:normal;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto}";const K=class{constructor(t){e(this,t),this.disabled=!1,this.for="bal-selopt-"+W++}createLogger(t){this.log=t}render(){return n(c,{key:"c479330ac26bcb19ddd41e7a99e635bf3ffc6170",style:{display:"none"}},n("slot",{key:"009baaefc29d307403edb10160c694dcc8495164"}))}};b([t("bal-select-option"),d("design:type",Function),d("design:paramtypes",[Function]),d("design:returntype",void 0)],K.prototype,"createLogger",null);let W=0;export{V as bal_select,K as bal_select_option}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{H as e,a as t,M as a,N as l,O as i}from"./p-pkPHUz5e.js";import{B as r}from"./p-ByiN-QjD.js";const x={display:"h1","display-2":"h1",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",span:"span",p:"p","xxxxx-large":"h1","xxxx-large":"h1","xxx-large":"h1","xx-large":"h1","x-large":"h2",large:"h3",medium:"h4",normal:"h5"},o=["xxxxx-large","xxxx-large","xxx-large","xx-large","x-large","large","medium","normal"],n={display:"xxxxx-large","display-2":"xxxx-large",h1:"xxx-large",h2:"xx-large",h3:"x-large",h4:"large",h5:"normal",p:"normal",span:"normal","xxxxx-large":"xxxxx-large","xxxx-large":"xxxx-large","xxx-large":"xxx-large","xx-large":"xx-large","x-large":"x-large",large:"large",medium:"medium",normal:"normal"},h={primary:"primary",info:"primary",blue:"primary",success:"success",warning:"warning",danger:"danger",white:"white"},s=class{constructor(t){e(this,t),this.level="h1",this.noWrap=!1,this.subtitle=!1,this.color="",this.inverted=!1,this.shadow=!1}levelWatcher(){this.updateAutoFontSize()}visualLevelWatcher(){this.updateAutoFontSize()}autoLevelWatcher(){this.updateAutoFontSize()}connectedCallback(){this.updateAutoFontSize()}componentDidRender(){if(this.autoLevel&&this.autoFontSize&&this.rows>1&&n[this.autoLevel]!==this.autoFontSize){const e=o.indexOf(this.autoFontSize)+1;this.autoFontSize=o[e]}}updateAutoFontSize(){this.autoFontSize=this.fontSize}get rows(){if(this.headingEl&&t.hasWindow){const e=window.getComputedStyle(this.headingEl),t=parseInt(e.lineHeight.slice(0,-2),10);return this.headingEl.offsetHeight/t}return 1}get fontColor(){return this.inverted?"white":h[this.color]}get fontSize(){return n[this.visualLevel?this.visualLevel:this.level]}get tag(){return x[this.level]}render(){const e=r.block("heading"),t=e.element("text"),i=this.tag,x=this.fontColor;return a(l,{key:"0a723b1f41cbd6af93aecd84ce5ee39ef6c29d24",class:Object.assign(Object.assign(Object.assign({},e.class()),e.modifier(`space-${this.space}`).class(void 0!==this.space)),e.modifier(`level-${this.level}`).class())},a(i,{key:"16e782645408fb537c1f466ee547301f61b71b24",class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t.class()),t.modifier("no-wrap").class(this.noWrap)),t.modifier("subtitle").class(this.subtitle)),t.modifier("shadow").class(this.shadow)),t.modifier(`color-${x}`).class()),t.modifier(`size-${this.autoFontSize}`).class()),ref:e=>this.headingEl=e,"data-testid":"bal-heading"},a("slot",{key:"c9a7f343eada2e03fe4b58f70ffb9856842b1137"})))}get el(){return i(this)}static get watchers(){return{level:["levelWatcher"],visualLevel:["visualLevelWatcher"],autoLevel:["autoLevelWatcher"]}}};s.style=":root{--bal-heading-color-white:var(--bal-color-text-white);--bal-heading-color-success:var(--bal-color-text-success);--bal-heading-color-warning:var(--bal-color-text-warning);--bal-heading-color-danger:var(--bal-color-text-danger)}.bal-heading{display:block;position:static;margin:0}.bal-heading:not(:last-child){margin-bottom:var(--bal-space-x-small)}.bal-heading.bal-heading--level-display:not(:last-child){margin-bottom:var(--bal-space-normal)}.bal-heading--space-all,.bal-heading--space-top{margin-top:var(--bal-space-x-small)}.bal-heading--space-all,.bal-heading--space-bottom{margin-bottom:var(--bal-space-x-small)}.bal-heading--level-display.bal-heading--space-all,.bal-heading--level-display.bal-heading--space-top{margin-top:var(--bal-space-normal)}.bal-heading--level-display.bal-heading--space-all,.bal-heading--level-display.bal-heading--space-bottom{margin-bottom:var(--bal-space-normal)}.bal-heading--space-top,.bal-heading--space-top:not(:last-child){margin-bottom:0}.bal-heading--space-none,.bal-heading--space-none:not(:last-child){margin:0}.bal-heading__text{margin:0 !important;padding:0;font-weight:var(--bal-font-weight-bold);font-family:var(--bal-font-family-title)}.bal-heading__text--no-wrap{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.bal-heading__text--subtitle{font-weight:var(--bal-font-weight-light)}.bal-heading__text--shadow{text-shadow:var(--bal-text-shadow-normal)}.bal-heading__text--color-white{color:var(--bal-heading-color-white)}.bal-heading__text--color-success{color:var(--bal-heading-color-success)}.bal-heading__text--color-warning{color:var(--bal-heading-color-warning)}.bal-heading__text--color-danger{color:var(--bal-heading-color-danger)}.bal-heading__text--size-normal{font-size:var(--bal-text-size-normal);line-height:var(--bal-line-height-normal)}@media screen and (min-width: 769px),print{.bal-heading__text--size-normal{font-size:var(--bal-text-size-normal-tablet);line-height:var(--bal-line-height-tablet-normal)}}@media screen and (min-width: 1024px){.bal-heading__text--size-normal{font-size:var(--bal-text-size-normal-desktop);line-height:var(--bal-line-height-desktop-normal)}}.bal-heading__text--size-medium{font-size:var(--bal-text-size-medium);line-height:var(--bal-line-height-medium)}@media screen and (min-width: 769px),print{.bal-heading__text--size-medium{font-size:var(--bal-text-size-medium-tablet);line-height:var(--bal-line-height-tablet-medium)}}@media screen and (min-width: 1024px){.bal-heading__text--size-medium{font-size:var(--bal-text-size-medium-desktop);line-height:var(--bal-line-height-desktop-medium)}}.bal-heading__text--size-large{font-size:var(--bal-text-size-large);line-height:var(--bal-line-height-large)}@media screen and (min-width: 769px),print{.bal-heading__text--size-large{font-size:var(--bal-text-size-large-tablet);line-height:var(--bal-line-height-tablet-large)}}@media screen and (min-width: 1024px){.bal-heading__text--size-large{font-size:var(--bal-text-size-large-desktop);line-height:var(--bal-line-height-desktop-large)}}.bal-heading__text--size-x-large{font-size:var(--bal-text-size-x-large);line-height:var(--bal-line-height-x-large)}@media screen and (min-width: 769px),print{.bal-heading__text--size-x-large{font-size:var(--bal-text-size-x-large-tablet);line-height:var(--bal-line-height-tablet-x-large)}}@media screen and (min-width: 1024px){.bal-heading__text--size-x-large{font-size:var(--bal-text-size-x-large-desktop);line-height:var(--bal-line-height-desktop-x-large)}}.bal-heading__text--size-xx-large{font-size:var(--bal-text-size-xx-large);line-height:var(--bal-line-height-xx-large)}@media screen and (min-width: 769px),print{.bal-heading__text--size-xx-large{font-size:var(--bal-text-size-xx-large-tablet);line-height:var(--bal-line-height-tablet-xx-large)}}@media screen and (min-width: 1024px){.bal-heading__text--size-xx-large{font-size:var(--bal-text-size-xx-large-desktop);line-height:var(--bal-line-height-desktop-xx-large)}}.bal-heading__text--size-xxx-large{font-size:var(--bal-text-size-xxx-large);line-height:var(--bal-line-height-xxx-large)}@media screen and (min-width: 769px),print{.bal-heading__text--size-xxx-large{font-size:var(--bal-text-size-xxx-large-tablet);line-height:var(--bal-line-height-tablet-xxx-large)}}@media screen and (min-width: 1024px){.bal-heading__text--size-xxx-large{font-size:var(--bal-text-size-xxx-large-desktop);line-height:var(--bal-line-height-desktop-xxx-large)}}.bal-heading__text--size-xxxx-large{font-size:var(--bal-text-size-xxxx-large);line-height:var(--bal-line-height-xxxx-large)}@media screen and (min-width: 769px),print{.bal-heading__text--size-xxxx-large{font-size:var(--bal-text-size-xxxx-large-tablet);line-height:var(--bal-line-height-tablet-xxxx-large)}}@media screen and (min-width: 1024px){.bal-heading__text--size-xxxx-large{font-size:var(--bal-text-size-xxxx-large-desktop);line-height:var(--bal-line-height-desktop-xxxx-large)}}.bal-heading__text--size-xxxxx-large{font-size:var(--bal-text-size-xxxxx-large);line-height:var(--bal-line-height-xxxxx-large)}@media screen and (min-width: 769px),print{.bal-heading__text--size-xxxxx-large{font-size:var(--bal-text-size-xxxxx-large-tablet);line-height:var(--bal-line-height-tablet-xxxxx-large)}}@media screen and (min-width: 1024px){.bal-heading__text--size-xxxxx-large{font-size:var(--bal-text-size-xxxxx-large-desktop);line-height:var(--bal-line-height-desktop-xxxxx-large)}}";const b=class{constructor(t){e(this,t),this.size="",this.heading=!1,this.noWrap=!1,this.bold=!1,this.inline=!1,this.color="",this.space="",this.inverted=!1,this.shadow=!1,this.disabled=void 0,this.invalid=void 0,this.hovered=!1,this.pressed=!1}parseColor(){return this.disabled?"grey":this.invalid?this.pressed?"danger-darker":this.hovered?"danger-dark":"danger":this.pressed?"primary-dark":this.hovered?"light-blue":this.inverted?"white":"info"===this.color?"primary":this.color}render(){const e=this.inline?"span":"p",t=this.parseColor(),i=r.block("text");return a(l,{key:"49275becd21961382642b6545611f8b7763d3010",class:Object.assign(Object.assign(Object.assign({},i.class()),i.modifier(`space-${this.space}`).class(""!==this.space)),i.modifier("inline").class(this.inline))},a(e,{key:"554500f4a7fdb830534fad06788e1d54375fb076",class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},i.element("text").class()),i.element("text").modifier(`color-${t}`).class(!!t)),i.element("text").modifier("bold").class(this.bold)),i.element("text").modifier("heading").class(this.heading)),i.element("text").modifier("shadow").class(this.shadow)),i.element("text").modifier("no-wrap").class(this.noWrap)),i.element("text").modifier(`size-${this.size}`).class(""!==this.size)),"data-testid":"bal-text"},a("slot",{key:"e508267e4a92701542dba64ecb4f9b488c4cd07a"})))}};b.style=":root{--bal-text-color-light-blue:var(--bal-color-text-light-blue);--bal-text-color-blue-dark:var(--bal-color-text-primary-dark);--bal-text-color-blue-light:var(--bal-color-text-hovered);--bal-text-color-primary-light:var(--bal-color-text-primary-light);--bal-text-color-primary-dark:var(--bal-color-text-primary-dark);--bal-text-color-white:var(--bal-color-text-white);--bal-text-color-black:var(--bal-color-text-black);--bal-text-color-grey:var(--bal-color-text-grey);--bal-text-color-primary:var(--bal-color-text-primary);--bal-text-color-blue:var(--bal-color-text-primary);--bal-text-color-info:var(--bal-color-text-info);--bal-text-color-success:var(--bal-color-text-success);--bal-text-color-warning:var(--bal-color-text-warning);--bal-text-color-danger:var(--bal-color-text-danger);--bal-text-color-danger-dark:var(--bal-color-text-danger-dark);--bal-text-color-danger-darker:var(--bal-color-text-danger-darker)}.bal-text{display:block;-webkit-box-sizing:content-box;box-sizing:content-box;position:static;word-break:break-word;margin:0 0 var(--bal-space-normal) 0}.bal-text--inline{display:inline;margin:0}.bal-text--space-all{margin-top:var(--bal-space-normal);margin-bottom:var(--bal-space-normal)}.bal-text--space-top{margin-top:var(--bal-space-normal);margin-bottom:0}.bal-text--space-bottom{margin-top:0;margin-bottom:var(--bal-space-normal)}.bal-text--space-none{margin:0}.bal-text__text{padding:0;margin:0}.bal-text__text--no-wrap{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.bal-text__text--bold{font-weight:var(--bal-font-weight-bold)}.bal-text__text--shadow{text-shadow:var(--bal-text-shadow-normal)}.bal-text__text--heading{font-family:var(--bal-font-family-title)}.bal-text__text--size-small{font-size:var(--bal-text-size-small);line-height:var(--bal-line-height-small)}@media screen and (min-width: 769px),print{.bal-text__text--size-small{font-size:var(--bal-text-size-small-tablet);line-height:var(--bal-line-height-tablet-small)}}@media screen and (min-width: 1024px){.bal-text__text--size-small{font-size:var(--bal-text-size-small-desktop);line-height:var(--bal-line-height-desktop-small)}}.bal-text__text--size-block{font-size:var(--bal-text-size-medium);line-height:var(--bal-line-height-medium)}@media screen and (min-width: 769px),print{.bal-text__text--size-block{font-size:var(--bal-text-size-medium-tablet);line-height:var(--bal-line-height-tablet-medium)}}@media screen and (min-width: 1024px){.bal-text__text--size-block{font-size:var(--bal-text-size-medium-desktop);line-height:var(--bal-line-height-desktop-medium)}}.bal-text__text--size-lead{font-size:var(--bal-text-size-large);line-height:var(--bal-line-height-large)}@media screen and (min-width: 769px),print{.bal-text__text--size-lead{font-size:var(--bal-text-size-large-tablet);line-height:var(--bal-line-height-tablet-large)}}@media screen and (min-width: 1024px){.bal-text__text--size-lead{font-size:var(--bal-text-size-large-desktop);line-height:var(--bal-line-height-desktop-large)}}.bal-text__text--color-light-blue{color:var(--bal-text-color-light-blue)}.bal-text__text--color-blue-dark{color:var(--bal-text-color-primary-dark)}.bal-text__text--color-blue-light{color:var(--bal-text-color-blue-light)}.bal-text__text--color-primary-light{color:var(--bal-text-color-primary-light)}.bal-text__text--color-primary-dark{color:var(--bal-text-color-primary-dark)}.bal-text__text--color-white{color:var(--bal-text-color-white)}.bal-text__text--color-black{color:var(--bal-text-color-black)}.bal-text__text--color-grey{color:var(--bal-text-color-grey)}.bal-text__text--color-primary{color:var(--bal-text-color-primary)}.bal-text__text--color-blue{color:var(--bal-text-color-primary)}.bal-text__text--color-info{color:var(--bal-text-color-info)}.bal-text__text--color-success{color:var(--bal-text-color-success)}.bal-text__text--color-warning{color:var(--bal-text-color-warning)}.bal-text__text--color-danger{color:var(--bal-text-color-danger)}.bal-text__text--color-danger-dark{color:var(--bal-text-color-danger-dark)}.bal-text__text--color-danger-darker{color:var(--bal-text-color-danger-darker)}";export{s as bal_heading,b as bal_text}
|
|
1
|
+
import{H as e,a as t,M as a,N as l,O as i}from"./p-Btdiqd5K.js";import{B as r}from"./p-ByiN-QjD.js";const x={display:"h1","display-2":"h1",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",span:"span",p:"p","xxxxx-large":"h1","xxxx-large":"h1","xxx-large":"h1","xx-large":"h1","x-large":"h2",large:"h3",medium:"h4",normal:"h5"},o=["xxxxx-large","xxxx-large","xxx-large","xx-large","x-large","large","medium","normal"],n={display:"xxxxx-large","display-2":"xxxx-large",h1:"xxx-large",h2:"xx-large",h3:"x-large",h4:"large",h5:"normal",p:"normal",span:"normal","xxxxx-large":"xxxxx-large","xxxx-large":"xxxx-large","xxx-large":"xxx-large","xx-large":"xx-large","x-large":"x-large",large:"large",medium:"medium",normal:"normal"},h={primary:"primary",info:"primary",blue:"primary",success:"success",warning:"warning",danger:"danger",white:"white"},s=class{constructor(t){e(this,t),this.level="h1",this.noWrap=!1,this.subtitle=!1,this.color="",this.inverted=!1,this.shadow=!1}levelWatcher(){this.updateAutoFontSize()}visualLevelWatcher(){this.updateAutoFontSize()}autoLevelWatcher(){this.updateAutoFontSize()}connectedCallback(){this.updateAutoFontSize()}componentDidRender(){if(this.autoLevel&&this.autoFontSize&&this.rows>1&&n[this.autoLevel]!==this.autoFontSize){const e=o.indexOf(this.autoFontSize)+1;this.autoFontSize=o[e]}}updateAutoFontSize(){this.autoFontSize=this.fontSize}get rows(){if(this.headingEl&&t.hasWindow){const e=window.getComputedStyle(this.headingEl),t=parseInt(e.lineHeight.slice(0,-2),10);return this.headingEl.offsetHeight/t}return 1}get fontColor(){return this.inverted?"white":h[this.color]}get fontSize(){return n[this.visualLevel?this.visualLevel:this.level]}get tag(){return x[this.level]}render(){const e=r.block("heading"),t=e.element("text"),i=this.tag,x=this.fontColor;return a(l,{key:"0a723b1f41cbd6af93aecd84ce5ee39ef6c29d24",class:Object.assign(Object.assign(Object.assign({},e.class()),e.modifier(`space-${this.space}`).class(void 0!==this.space)),e.modifier(`level-${this.level}`).class())},a(i,{key:"16e782645408fb537c1f466ee547301f61b71b24",class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t.class()),t.modifier("no-wrap").class(this.noWrap)),t.modifier("subtitle").class(this.subtitle)),t.modifier("shadow").class(this.shadow)),t.modifier(`color-${x}`).class()),t.modifier(`size-${this.autoFontSize}`).class()),ref:e=>this.headingEl=e,"data-testid":"bal-heading"},a("slot",{key:"c9a7f343eada2e03fe4b58f70ffb9856842b1137"})))}get el(){return i(this)}static get watchers(){return{level:["levelWatcher"],visualLevel:["visualLevelWatcher"],autoLevel:["autoLevelWatcher"]}}};s.style=":root{--bal-heading-color-white:var(--bal-color-text-white);--bal-heading-color-success:var(--bal-color-text-success);--bal-heading-color-warning:var(--bal-color-text-warning);--bal-heading-color-danger:var(--bal-color-text-danger)}.bal-heading{display:block;position:static;margin:0}.bal-heading:not(:last-child){margin-bottom:var(--bal-space-x-small)}.bal-heading.bal-heading--level-display:not(:last-child){margin-bottom:var(--bal-space-normal)}.bal-heading--space-all,.bal-heading--space-top{margin-top:var(--bal-space-x-small)}.bal-heading--space-all,.bal-heading--space-bottom{margin-bottom:var(--bal-space-x-small)}.bal-heading--level-display.bal-heading--space-all,.bal-heading--level-display.bal-heading--space-top{margin-top:var(--bal-space-normal)}.bal-heading--level-display.bal-heading--space-all,.bal-heading--level-display.bal-heading--space-bottom{margin-bottom:var(--bal-space-normal)}.bal-heading--space-top,.bal-heading--space-top:not(:last-child){margin-bottom:0}.bal-heading--space-none,.bal-heading--space-none:not(:last-child){margin:0}.bal-heading__text{margin:0 !important;padding:0;font-weight:var(--bal-font-weight-bold);font-family:var(--bal-font-family-title)}.bal-heading__text--no-wrap{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.bal-heading__text--subtitle{font-weight:var(--bal-font-weight-light)}.bal-heading__text--shadow{text-shadow:var(--bal-text-shadow-normal)}.bal-heading__text--color-white{color:var(--bal-heading-color-white)}.bal-heading__text--color-success{color:var(--bal-heading-color-success)}.bal-heading__text--color-warning{color:var(--bal-heading-color-warning)}.bal-heading__text--color-danger{color:var(--bal-heading-color-danger)}.bal-heading__text--size-normal{font-size:var(--bal-text-size-normal);line-height:var(--bal-line-height-normal)}@media screen and (min-width: 769px),print{.bal-heading__text--size-normal{font-size:var(--bal-text-size-normal-tablet);line-height:var(--bal-line-height-tablet-normal)}}@media screen and (min-width: 1024px){.bal-heading__text--size-normal{font-size:var(--bal-text-size-normal-desktop);line-height:var(--bal-line-height-desktop-normal)}}.bal-heading__text--size-medium{font-size:var(--bal-text-size-medium);line-height:var(--bal-line-height-medium)}@media screen and (min-width: 769px),print{.bal-heading__text--size-medium{font-size:var(--bal-text-size-medium-tablet);line-height:var(--bal-line-height-tablet-medium)}}@media screen and (min-width: 1024px){.bal-heading__text--size-medium{font-size:var(--bal-text-size-medium-desktop);line-height:var(--bal-line-height-desktop-medium)}}.bal-heading__text--size-large{font-size:var(--bal-text-size-large);line-height:var(--bal-line-height-large)}@media screen and (min-width: 769px),print{.bal-heading__text--size-large{font-size:var(--bal-text-size-large-tablet);line-height:var(--bal-line-height-tablet-large)}}@media screen and (min-width: 1024px){.bal-heading__text--size-large{font-size:var(--bal-text-size-large-desktop);line-height:var(--bal-line-height-desktop-large)}}.bal-heading__text--size-x-large{font-size:var(--bal-text-size-x-large);line-height:var(--bal-line-height-x-large)}@media screen and (min-width: 769px),print{.bal-heading__text--size-x-large{font-size:var(--bal-text-size-x-large-tablet);line-height:var(--bal-line-height-tablet-x-large)}}@media screen and (min-width: 1024px){.bal-heading__text--size-x-large{font-size:var(--bal-text-size-x-large-desktop);line-height:var(--bal-line-height-desktop-x-large)}}.bal-heading__text--size-xx-large{font-size:var(--bal-text-size-xx-large);line-height:var(--bal-line-height-xx-large)}@media screen and (min-width: 769px),print{.bal-heading__text--size-xx-large{font-size:var(--bal-text-size-xx-large-tablet);line-height:var(--bal-line-height-tablet-xx-large)}}@media screen and (min-width: 1024px){.bal-heading__text--size-xx-large{font-size:var(--bal-text-size-xx-large-desktop);line-height:var(--bal-line-height-desktop-xx-large)}}.bal-heading__text--size-xxx-large{font-size:var(--bal-text-size-xxx-large);line-height:var(--bal-line-height-xxx-large)}@media screen and (min-width: 769px),print{.bal-heading__text--size-xxx-large{font-size:var(--bal-text-size-xxx-large-tablet);line-height:var(--bal-line-height-tablet-xxx-large)}}@media screen and (min-width: 1024px){.bal-heading__text--size-xxx-large{font-size:var(--bal-text-size-xxx-large-desktop);line-height:var(--bal-line-height-desktop-xxx-large)}}.bal-heading__text--size-xxxx-large{font-size:var(--bal-text-size-xxxx-large);line-height:var(--bal-line-height-xxxx-large)}@media screen and (min-width: 769px),print{.bal-heading__text--size-xxxx-large{font-size:var(--bal-text-size-xxxx-large-tablet);line-height:var(--bal-line-height-tablet-xxxx-large)}}@media screen and (min-width: 1024px){.bal-heading__text--size-xxxx-large{font-size:var(--bal-text-size-xxxx-large-desktop);line-height:var(--bal-line-height-desktop-xxxx-large)}}.bal-heading__text--size-xxxxx-large{font-size:var(--bal-text-size-xxxxx-large);line-height:var(--bal-line-height-xxxxx-large)}@media screen and (min-width: 769px),print{.bal-heading__text--size-xxxxx-large{font-size:var(--bal-text-size-xxxxx-large-tablet);line-height:var(--bal-line-height-tablet-xxxxx-large)}}@media screen and (min-width: 1024px){.bal-heading__text--size-xxxxx-large{font-size:var(--bal-text-size-xxxxx-large-desktop);line-height:var(--bal-line-height-desktop-xxxxx-large)}}";const b=class{constructor(t){e(this,t),this.size="",this.heading=!1,this.noWrap=!1,this.bold=!1,this.inline=!1,this.color="",this.space="",this.inverted=!1,this.shadow=!1,this.disabled=void 0,this.invalid=void 0,this.hovered=!1,this.pressed=!1}parseColor(){return this.disabled?"grey":this.invalid?this.pressed?"danger-darker":this.hovered?"danger-dark":"danger":this.pressed?"primary-dark":this.hovered?"light-blue":this.inverted?"white":"info"===this.color?"primary":this.color}render(){const e=this.inline?"span":"p",t=this.parseColor(),i=r.block("text");return a(l,{key:"8aceb26482ae28d7004f4bb81bdbad288dbbea71",class:Object.assign(Object.assign(Object.assign({},i.class()),i.modifier(`space-${this.space}`).class(""!==this.space)),i.modifier("inline").class(this.inline))},a(e,{key:"efbe450accfb6df4813866cf7f64649c08ad2f07",class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},i.element("text").class()),i.element("text").modifier(`color-${t}`).class(!!t)),i.element("text").modifier("bold").class(this.bold)),i.element("text").modifier("heading").class(this.heading)),i.element("text").modifier("shadow").class(this.shadow)),i.element("text").modifier("no-wrap").class(this.noWrap)),i.element("text").modifier(`size-${this.size}`).class(""!==this.size)),"data-testid":"bal-text"},a("slot",{key:"33ad603fa81fe33512f02b5ed716bd4ec8e675cd"})))}};b.style=":root{--bal-text-color-light-blue:var(--bal-color-text-light-blue);--bal-text-color-blue-dark:var(--bal-color-text-primary-dark);--bal-text-color-blue-light:var(--bal-color-text-hovered);--bal-text-color-primary-light:var(--bal-color-text-primary-light);--bal-text-color-primary-dark:var(--bal-color-text-primary-dark);--bal-text-color-white:var(--bal-color-text-white);--bal-text-color-black:var(--bal-color-text-black);--bal-text-color-grey:var(--bal-color-text-grey);--bal-text-color-primary:var(--bal-color-text-primary);--bal-text-color-blue:var(--bal-color-text-primary);--bal-text-color-info:var(--bal-color-text-info);--bal-text-color-success:var(--bal-color-text-success);--bal-text-color-warning:var(--bal-color-text-warning);--bal-text-color-danger:var(--bal-color-text-danger);--bal-text-color-danger-dark:var(--bal-color-text-danger-dark);--bal-text-color-danger-darker:var(--bal-color-text-danger-darker)}.bal-text{display:block;-webkit-box-sizing:content-box;box-sizing:content-box;position:static;word-break:break-word;margin:0 0 var(--bal-space-normal) 0}.bal-text--inline{display:inline;margin:0}.bal-text--space-all{margin-top:var(--bal-space-normal);margin-bottom:var(--bal-space-normal)}.bal-text--space-top{margin-top:var(--bal-space-normal);margin-bottom:0}.bal-text--space-bottom{margin-top:0;margin-bottom:var(--bal-space-normal)}.bal-text--space-none{margin:0}.bal-text__text{padding:0;margin:0}.bal-text__text--no-wrap{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.bal-text__text--bold{font-weight:var(--bal-font-weight-bold)}.bal-text__text--shadow{text-shadow:var(--bal-text-shadow-normal)}.bal-text__text--heading{font-family:var(--bal-font-family-title)}.bal-text__text--size-small{font-size:var(--bal-text-size-small);line-height:var(--bal-line-height-small)}@media screen and (min-width: 769px),print{.bal-text__text--size-small{font-size:var(--bal-text-size-small-tablet);line-height:var(--bal-line-height-tablet-small)}}@media screen and (min-width: 1024px){.bal-text__text--size-small{font-size:var(--bal-text-size-small-desktop);line-height:var(--bal-line-height-desktop-small)}}.bal-text__text--size-block{font-size:var(--bal-text-size-medium);line-height:var(--bal-line-height-medium)}@media screen and (min-width: 769px),print{.bal-text__text--size-block{font-size:var(--bal-text-size-medium-tablet);line-height:var(--bal-line-height-tablet-medium)}}@media screen and (min-width: 1024px){.bal-text__text--size-block{font-size:var(--bal-text-size-medium-desktop);line-height:var(--bal-line-height-desktop-medium)}}.bal-text__text--size-lead{font-size:var(--bal-text-size-large);line-height:var(--bal-line-height-large)}@media screen and (min-width: 769px),print{.bal-text__text--size-lead{font-size:var(--bal-text-size-large-tablet);line-height:var(--bal-line-height-tablet-large)}}@media screen and (min-width: 1024px){.bal-text__text--size-lead{font-size:var(--bal-text-size-large-desktop);line-height:var(--bal-line-height-desktop-large)}}.bal-text__text--color-light-blue{color:var(--bal-text-color-light-blue)}.bal-text__text--color-blue-dark{color:var(--bal-text-color-primary-dark)}.bal-text__text--color-blue-light{color:var(--bal-text-color-blue-light)}.bal-text__text--color-primary-light{color:var(--bal-text-color-primary-light)}.bal-text__text--color-primary-dark{color:var(--bal-text-color-primary-dark)}.bal-text__text--color-white{color:var(--bal-text-color-white)}.bal-text__text--color-black{color:var(--bal-text-color-black)}.bal-text__text--color-grey{color:var(--bal-text-color-grey)}.bal-text__text--color-primary{color:var(--bal-text-color-primary)}.bal-text__text--color-blue{color:var(--bal-text-color-primary)}.bal-text__text--color-info{color:var(--bal-text-color-info)}.bal-text__text--color-success{color:var(--bal-text-color-success)}.bal-text__text--color-warning{color:var(--bal-text-color-warning)}.bal-text__text--color-danger{color:var(--bal-text-color-danger)}.bal-text__text--color-danger-dark{color:var(--bal-text-color-danger-dark)}.bal-text__text--color-danger-darker{color:var(--bal-text-color-danger-darker)}";export{s as bal_heading,b as bal_text}
|
package/dist/baloise-design-system/{p-2690f97b41.system.entry.js → p-9ffbaf82e2.system.entry.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,i,n,e){function r(t){return t instanceof n?t:new n((function(i){i(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{u(e.next(t))}catch(t){o(t)}}function s(t){try{u(e["throw"](t))}catch(t){o(t)}}function u(t){t.done?n(t.value):r(t.value).then(a,s)}u((e=e.apply(t,i||[])).next())}))};var __generator=this&&this.__generator||function(t,i){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},e,r,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(i){return u([t,i])}}function u(s){if(e)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(n=0)),n)try{if(e=1,r&&(o=s[0]&2?r["return"]:s[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;if(r=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;r=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1];o=s;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(s);break}if(o[2])n.ops.pop();n.trys.pop();continue}s=i.call(t,n)}catch(t){s=[6,t];r=0}finally{e=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-WmWy2rJ-.system.js","./p-Cjiw70Dk.system.js","./p-DKjTFqnu.system.js","./p-BbAtjg9Y.system.js","./p-DY72UdN1.system.js","./p-DhSS4q-R.system.js","./p-CpWDVANq.system.js","./p-m5GX4h3i.system.js","./p-Dou6adza.system.js","./p-CLfE_o7e.system.js","./p-drmuT566.system.js","./p-Bzy18UgU.system.js"],(function(t){"use strict";var i,n,e,r,o,a,s,u,c,l,h,f,d,b,v,p,g,_,m,w;return{setters:[function(t){i=t.L;n=t.H;e=t.P;r=t.M;o=t.N;a=t.O;s=t.x;u=t.Q},function(t){c=t._;l=t.a},function(t){h=t.a},function(t){f=t.B},function(t){d=t.L;b=t.B},function(t){v=t.s},function(t){p=t.i},function(t){g=t.i},function(t){_=t.i;m=t.s},function(t){w=t.d},null,null],execute:function(){var y=":root{--bal-option-padding-x:var(--bal-space-small);--bal-option-min-height:1.5rem;--bal-option-background:var(--bal-color-white);--bal-option-background-hovered:var(--bal-color-grey-3);--bal-option-background-selected:var(--bal-color-primary-1);--bal-option-background-selected-hovered:#dddfeb;--bal-option-background-invalid:var(--bal-color-danger-1);--bal-option-background-invalid-hovered:#fbe0de;--bal-option-border-width:var(--bal-border-width-normal);--bal-option-border-color:var(--bal-color-grey-2);--bal-option-font-family:var(--bal-font-family-text);--bal-option-font-weight:var(--bal-font-weight-regular);--bal-option-line-height:1.125rem;--bal-option-text-hovered:var(--bal-color-text-primary-hovered);--bal-option-text-pressed:var(--bal-color-text-primary-pressed);--bal-option-text-disabled:var(--bal-color-text-grey-light)}.bal-option{font-size:16px;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:block;list-style:none;cursor:pointer;border-bottom-width:var(--bal-option-border-width);border-bottom-color:var(--bal-option-border-color);border-bottom-style:solid;background:var(--bal-option-background);padding-left:var(--bal-option-padding-x);padding-right:var(--bal-option-padding-x);min-height:var(--bal-option-min-height)}.bal-option>bal-stack{min-height:var(--bal-option-min-height)}.bal-option:last-child{border-bottom:none}.bal-option::-moz-focus-inner{border:none}.bal-option--hidden{display:none;visibility:hidden}.bal-option__inner{font-family:var(--bal-option-font-family);font-weight:var(--bal-option-font-weight);line-height:var(--bal-option-line-height);word-break:break-word;white-space:normal;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-ms-flex:1;flex:1}.bal-option__inner--multiline{white-space:normal}.bal-option--focused{background:var(--bal-option-background-hovered)}@media (hover: hover)and (pointer: fine){.bal-option:hover{background:var(--bal-option-background-hovered);color:var(--bal-option-text-hovered)}}.bal-option:active{background:var(--bal-option-background-hovered);color:var(--bal-option-text-pressed)}.bal-option--selected{background:var(--bal-option-background-selected)}@media (hover: hover)and (pointer: fine){.bal-option--selected:hover{background:var(--bal-option-background-selected-hovered)}}.bal-option--selected:active{background:var(--bal-option-background-selected-hovered)}.bal-option--selected .bal-option__inner{font-weight:var(--bal-font-weight-bold)}.bal-option--selected.bal-option--focused{background:var(--bal-option-background-selected-hovered)}.bal-option--selected.bal-option--focused .bal-option__inner{font-weight:var(--bal-font-weight-bold)}.bal-option--invalid{background:var(--bal-option-background-invalid)}@media (hover: hover)and (pointer: fine){.bal-option--invalid:hover{background:var(--bal-option-background-invalid-hovered)}}.bal-option--invalid:active{background:var(--bal-option-background-invalid-hovered)}.bal-option--invalid.bal-option--focused{background:var(--bal-option-background-invalid-hovered)}.bal-option--invalid .bal-option__inner{color:var(--bal-color-text-danger-hovered)}@media (hover: hover)and (pointer: fine){.bal-option--invalid:hover .bal-option__inner{color:var(--bal-color-text-danger-hovered)}}.bal-option--invalid:active .bal-option__inner{color:var(--bal-color-text-danger-pressed)}.bal-option--disabled,.bal-option--disabled.bal-option--focused{background:var(--bal-option-background) !important;color:var(--bal-option-text-disabled) !important;cursor:default !important}.bal-option--disabled:hover,.bal-option--disabled.bal-option--focused:hover{background:var(--bal-option-background) !important}.bal-option{--bal-check-size:1.25rem}";var k=t("bal_option",function(){function t(t){var i=this;n(this,t);this.balOptionChange=e(this,"balOptionChange");this.balOptionFocus=e(this,"balOptionFocus");this.inputId="bal-option-".concat(j++);this.checkbox=false;this.interactionState=b.DefaultState;this.label="";this.value="";this.disabled=false;this.multiline=false;this.invalid=false;this.selected=false;this.focused=false;this.hidden=false;this.onClick=function(t){var n=i.el.closest("bal-option-list");if(i.disabled||n&&n.disabled){v(t)}else{if(n&&n.required&&!n.multiple){if(!i.selected){i.select(true)}}else{i.select(!i.selected)}}}}t.prototype.createLogger=function(t){this.log=t};t.prototype.componentWillRender=function(){if(this.el){var t=this.el.closest("bal-option-list");if(t){this.checkbox=!!t.multiple}}};t.prototype.listenToMouseEnter=function(){var t=this,i=t.label,n=t.value,e=t.selected,r=t.disabled,o=t.hidden;if(!o&&!r){this.balOptionFocus.emit({label:i,value:n,selected:e})}};t.prototype.elementStateListener=function(t){this.interactionChildElements.forEach((function(i){i.hovered=t.hovered;i.pressed=t.pressed}))};t.prototype.select=function(){return __awaiter(this,arguments,void 0,(function(t){var i,n,e;if(t===void 0){t=true}return __generator(this,(function(r){this.selected=t;i=this,n=i.label,e=i.value;this.balOptionChange.emit({label:n,value:e,selected:t});return[2]}))}))};Object.defineProperty(t.prototype,"interactionChildElements",{get:function(){return Array.from(this.el.querySelectorAll("bal-check"))},enumerable:false,configurable:true});t.prototype.render=function(){var t=f.block("option");return r(o,{key:"a9b567396356b31dc5dacf1115b538eb6f0229e9",class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t.class()),t.modifier("checkbox").class(this.checkbox)),t.modifier("focused").class(this.focused)),t.modifier("invalid").class(this.invalid)),t.modifier("selected").class(this.selected)),t.modifier("disabled").class(this.disabled)),t.modifier("hidden").class(this.hidden)),role:"option",id:this.inputId,"data-value":this.value,"data-label":this.label,"aria-label":this.label,"aria-hidden":h(this.hidden),"aria-selected":h(this.selected),"aria-checked":h(this.selected),"aria-disabled":h(this.disabled),"aria-invalid":h(this.invalid),tabIndex:-1,onClick:this.onClick},r("bal-stack",{key:"bc7b02be2431b89e05a16df87b2ef5e7e828577a",py:"small",space:"x-small"},this.checkbox?r("bal-check",{checked:this.selected,disabled:this.disabled,invalid:this.invalid,hovered:this.interactionState.hovered,pressed:this.interactionState.pressed,tabindex:-1}):"",r("div",{key:"dd0f4a8143bcff57bcfd578073fc5c13fc947b64",class:Object.assign(Object.assign({},t.element("inner").class()),t.element("inner").modifier("multiline").class(this.multiline))},r("slot",{key:"49d60c90205cc0181cfc61eac50e2de14bc1dc80"})),this.selected&&!this.checkbox?r("bal-icon",{name:"check",size:"small",color:this.disabled?"grey":this.invalid?"danger":"primary"}):""))};Object.defineProperty(t.prototype,"el",{get:function(){return a(this)},enumerable:false,configurable:true});return t}());c([i("bal-option"),l("design:type",Function),l("design:paramtypes",[Function]),l("design:returntype",void 0)],k.prototype,"createLogger",null);c([d(),l("design:type",Function),l("design:paramtypes",[Object]),l("design:returntype",void 0)],k.prototype,"elementStateListener",null);var j=0;k.style=y;var x=".bal-option-list{display:block;position:relative;width:100%;list-style:none;margin:0;outline:0;max-height:var(--bal-option-list-max-height);border-radius:var(--bal-radius-normal);overflow:hidden auto}";var O=t("bal_option_list",function(){function t(t){n(this,t);this.inputId="bal-option-list-".concat(F++);this.inheritAttributes={};this.ariaForm=w;this.multiple=false;this.disabled=false;this.required=false;this.focusIndex=-1;this.filter="includes";this.contentHeight=262}t.prototype.createLogger=function(t){this.log=t};t.prototype.contentHeightChanged=function(t){if(t===undefined){this.el.style.removeProperty("--bal-option-list-max-height")}else{this.el.style.setProperty("--bal-option-list-max-height","".concat(t,"px"))}};t.prototype.componentDidLoad=function(){this.contentHeightChanged(this.contentHeight)};t.prototype.componentWillRender=function(){this.inheritAttributes=g(this.el,["aria-multiselectable","aria-labelledby"])};t.prototype.listenToMouseEnter=function(t){var i=this.options;var n=this.getOptionIndex(i,t.detail.value);if(n!==undefined){this.updateFocus(i,n)}};t.prototype.listenToOptionChange=function(t){var i=t.detail;if(!this.multiple){this.options.filter((function(t){return t.value!==i.value})).forEach((function(t){return t.selected=false}))}};t.prototype.focusSelected=function(){return __awaiter(this,void 0,void 0,(function(){var t,i;return __generator(this,(function(n){switch(n.label){case 0:t=this.options;i=this.getSelectedOptionIndex(t);if(!(i>0))return[3,2];this.updateFocus(t,i);return[4,s()];case 1:n.sent();return[2,i];case 2:return[4,this.focusFirst()];case 3:return[2,n.sent()]}}))}))};t.prototype.focusFirst=function(){return __awaiter(this,void 0,void 0,(function(){var t,i,n;return __generator(this,(function(e){switch(e.label){case 0:t=this.options;i=this.getFirstOptionIndex(t);this.updateFocus(t,i);n=t[i];this.updateScrollTopPosition(n);return[4,s()];case 1:e.sent();return[2,i]}}))}))};t.prototype.focusLast=function(){return __awaiter(this,void 0,void 0,(function(){var t,i,n;return __generator(this,(function(e){switch(e.label){case 0:t=this.options;i=this.getLastOptionIndex(t);this.updateFocus(t,i);n=t[i];this.updateScrollBottomPosition(n);return[4,s()];case 1:e.sent();return[2,i]}}))}))};t.prototype.focusNext=function(){return __awaiter(this,void 0,void 0,(function(){var t,i,n;return __generator(this,(function(e){switch(e.label){case 0:t=this.options;i=this.getNextOptionIndex(t);this.updateFocus(t,i);n=t[i];this.updateScrollBottomPosition(n);return[4,s()];case 1:e.sent();return[2,i]}}))}))};t.prototype.focusPrevious=function(){return __awaiter(this,void 0,void 0,(function(){var t,i,n;return __generator(this,(function(e){switch(e.label){case 0:t=this.options;i=this.getPreviousOptionIndex(t);this.updateFocus(t,i);n=t[i];this.updateScrollTopPosition(n);return[4,s()];case 1:e.sent();return[2,i]}}))}))};t.prototype.focusByLabel=function(t,i){return __awaiter(this,void 0,void 0,(function(){var n,e,r;return __generator(this,(function(o){switch(o.label){case 0:n=this.options;e=this.getOptionIndexByLabel(n,t);this.updateFocus(n,e);r=n[e];this.updateScrollTopPosition(r);return[4,s()];case 1:o.sent();if(!i.select)return[3,3];return[4,r.select()];case 2:o.sent();o.label=3;case 3:return[2,e]}}))}))};t.prototype.filterByContent=function(t){return __awaiter(this,void 0,void 0,(function(){var i;return __generator(this,(function(n){switch(n.label){case 0:i=this.allOptions;this.filterOptions(i,t);return[4,s()];case 1:n.sent();return[2,this.focusFirst()]}}))}))};t.prototype.resetHidden=function(){return __awaiter(this,arguments,void 0,(function(t){if(t===void 0){t=false}return __generator(this,(function(i){switch(i.label){case 0:this.options.forEach((function(i){return i.hidden=t}));return[4,s()];case 1:i.sent();this.resetFocus();return[2]}}))}))};t.prototype.resetSelected=function(){return __awaiter(this,arguments,void 0,(function(t){if(t===void 0){t=false}return __generator(this,(function(i){switch(i.label){case 0:this.options.forEach((function(i){return i.selected=t}));return[4,s()];case 1:i.sent();return[2]}}))}))};t.prototype.updateSelected=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){switch(i.label){case 0:this.options.forEach((function(i){return i.selected=t.includes(i.value)}));return[4,s()];case 1:i.sent();return[2]}}))}))};t.prototype.resetFocus=function(){return __awaiter(this,void 0,void 0,(function(){var t,i;return __generator(this,(function(n){switch(n.label){case 0:t=this.options;i=-1;this.updateFocus(t,i);this.scrollTo(0);return[4,s()];case 1:n.sent();return[2,i]}}))}))};t.prototype.getSelectedValues=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(i){t=this.options;return[2,t.filter((function(t){return t.selected})).map((function(t){return t.value}))]}))}))};t.prototype.getSelectedOptions=function(t){return __awaiter(this,void 0,void 0,(function(){var i;return __generator(this,(function(n){i=this.options;if(t&&t.length>0){return[2,i.filter((function(i){return t.includes(i.value)})).map((function(t){return t}))]}return[2,i.filter((function(t){return t.selected})).map((function(t){return t}))]}))}))};t.prototype.getValues=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.options.map((function(t){return t.value}))]}))}))};t.prototype.getLabels=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.options.map((function(t){return t.label}))]}))}))};t.prototype.getOptions=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.options.filter((function(t){return!t.disabled||!t.hidden}))]}))}))};t.prototype.selectByFocus=function(){return __awaiter(this,void 0,void 0,(function(){var t,i;return __generator(this,(function(n){t=this.options;i=t[this.focusIndex];if(i){if(this.multiple){i.select(!i.selected)}else{i.select(true)}}return[2]}))}))};t.prototype.setAriaForm=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){this.ariaForm=Object.assign({},t);return[2]}))}))};Object.defineProperty(t.prototype,"options",{get:function(){return Array.from(this.el.querySelectorAll("bal-option")).filter((function(t){return!t.hidden}))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"allOptions",{get:function(){return Array.from(this.el.querySelectorAll("bal-option"))},enumerable:false,configurable:true});t.prototype.filterOptions=function(t,i){var n=[];var e=this.filter==="includes"?_:m;for(var r=0;r<t.length;r++){var o=t[r];var a=o.textContent||"";if(e(a,i)){n.push(o);o.hidden=false}else{o.hidden=true}}return n};t.prototype.isOptionVisible=function(t){var i=this.el.clientHeight;var n=this.el.scrollTop;var e=n+i;var r=n<=t.offsetTop&&t.offsetTop+t.clientHeight<=e;return r};t.prototype.updateScrollTopPosition=function(t){if(t){var i=this.isOptionVisible(t);if(!i){this.scrollTo(this.getScrollTopForTopPosition(t))}}};t.prototype.updateScrollBottomPosition=function(t){if(t){var i=this.isOptionVisible(t);if(!i){this.scrollTo(this.getScrollTopForBottomPosition(t))}}};t.prototype.getScrollTopForTopPosition=function(t){var i=t.offsetTop;var n=i;if(n<0){return 0}return n};t.prototype.getScrollTopForBottomPosition=function(t){var i=this.el.clientHeight;var n=t.offsetTop+t.clientHeight;var e=n-i;if(e<0){return 0}return e};t.prototype.scrollTo=function(t){return __awaiter(this,void 0,void 0,(function(){var i=this;return __generator(this,(function(n){if(t!==undefined&&t!==null){if(this.focusRaf!==undefined){cancelAnimationFrame(this.focusRaf)}this.focusRaf=u((function(){return __awaiter(i,void 0,void 0,(function(){return __generator(this,(function(i){this.el.scrollTop=t;return[2]}))}))}))}return[2]}))}))};t.prototype.updateFocus=function(t,i){this.focusIndex=i;for(var n=0;n<t.length;n++){var e=t[n];e.focused=n===i}};t.prototype.getOptionIndex=function(t,i){for(var n=0;n<t.length;n++){var e=t[n];if(e.value===i){return n}}return undefined};t.prototype.getSelectedOptionIndex=function(t){for(var i=0;i<t.length;i++){var n=t[i];if(n.selected&&!n.hidden){return i}}return this.focusIndex};t.prototype.getFirstOptionIndex=function(t){for(var i=0;i<t.length;i++){var n=t[i];if(!n.disabled&&!n.hidden){return i}}return this.focusIndex};t.prototype.getNextOptionIndex=function(t,i){if(i===void 0){i=this.focusIndex}if(i<0){return this.getFirstOptionIndex(t)}var n=this.getLength(t);var e=i;if(i<n){e=i+1;if(t[e].disabled){return this.getNextOptionIndex(t,e)}}return e};t.prototype.getPreviousOptionIndex=function(t,i){if(i===void 0){i=this.focusIndex}var n=this.getFirstOptionIndex(t);if(i<=n){return n}var e=i;e=i-1;if(t[e].disabled){return this.getPreviousOptionIndex(t,e)}return e};t.prototype.getLastOptionIndex=function(t){for(var i=t.length-1;i>=0;i--){var n=t[i];if(!n.disabled){return i}}return this.focusIndex};t.prototype.getOptionIndexByLabel=function(t,i){if(i===undefined||i===""){return this.focusIndex}var n=t.find((function(t){return m(t.label||"",i)}));if(!p(n)&&n.id){return t.indexOf(n)}return this.focusIndex};t.prototype.getLength=function(t){var i=t.map((function(t,i){return t.disabled?0:i}));var n=Math.max.apply(Math,i);return n};t.prototype.render=function(){var t=f.block("option-list");var i=this.labelledby||this.ariaForm.labelId;return r(o,{key:"934c509e0703b3d7435028ad7bff05290d6a855b",class:Object.assign({},t.class()),id:this.inputId},r("div",Object.assign({key:"4d6b39d94ea7f7abacd128ca65e0f9f985ae3165",role:"listbox","aria-labelledby":i,"aria-disabled":h(this.disabled),class:Object.assign({},t.element("container").class())},this.inheritAttributes),r("slot",{key:"0ad6401208e35316c7eb892d0b8ffba1476a8611"})))};Object.defineProperty(t.prototype,"el",{get:function(){return a(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{contentHeight:["contentHeightChanged"]}},enumerable:false,configurable:true});return t}());c([i("bal-option-list"),l("design:type",Function),l("design:paramtypes",[Function]),l("design:returntype",void 0)],O.prototype,"createLogger",null);var F=0;O.style=x}}}));
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,i,n,e){function r(t){return t instanceof n?t:new n((function(i){i(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{u(e.next(t))}catch(t){o(t)}}function s(t){try{u(e["throw"](t))}catch(t){o(t)}}function u(t){t.done?n(t.value):r(t.value).then(a,s)}u((e=e.apply(t,i||[])).next())}))};var __generator=this&&this.__generator||function(t,i){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},e,r,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(i){return u([t,i])}}function u(s){if(e)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(n=0)),n)try{if(e=1,r&&(o=s[0]&2?r["return"]:s[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;if(r=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;r=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1];o=s;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(s);break}if(o[2])n.ops.pop();n.trys.pop();continue}s=i.call(t,n)}catch(t){s=[6,t];r=0}finally{e=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-CUzS4D-E.system.js","./p-Cjiw70Dk.system.js","./p-DKjTFqnu.system.js","./p-BbAtjg9Y.system.js","./p-Bvh0SVeg.system.js","./p-CFTq_NEW.system.js","./p-CpWDVANq.system.js","./p-m5GX4h3i.system.js","./p-Dou6adza.system.js","./p-CLfE_o7e.system.js","./p-XFbKxieD.system.js","./p-Bzy18UgU.system.js"],(function(t){"use strict";var i,n,e,r,o,a,s,u,c,l,h,f,d,b,v,p,g,_,m,w;return{setters:[function(t){i=t.L;n=t.H;e=t.P;r=t.M;o=t.N;a=t.O;s=t.x;u=t.Q},function(t){c=t._;l=t.a},function(t){h=t.a},function(t){f=t.B},function(t){d=t.L;b=t.B},function(t){v=t.s},function(t){p=t.i},function(t){g=t.i},function(t){_=t.i;m=t.s},function(t){w=t.d},null,null],execute:function(){var y=":root{--bal-option-padding-x:var(--bal-space-small);--bal-option-min-height:1.5rem;--bal-option-background:var(--bal-color-white);--bal-option-background-hovered:var(--bal-color-grey-3);--bal-option-background-selected:var(--bal-color-primary-1);--bal-option-background-selected-hovered:#dddfeb;--bal-option-background-invalid:var(--bal-color-danger-1);--bal-option-background-invalid-hovered:#fbe0de;--bal-option-border-width:var(--bal-border-width-normal);--bal-option-border-color:var(--bal-color-grey-2);--bal-option-font-family:var(--bal-font-family-text);--bal-option-font-weight:var(--bal-font-weight-regular);--bal-option-line-height:1.125rem;--bal-option-text-hovered:var(--bal-color-text-primary-hovered);--bal-option-text-pressed:var(--bal-color-text-primary-pressed);--bal-option-text-disabled:var(--bal-color-text-grey-light)}.bal-option{font-size:16px;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:block;list-style:none;cursor:pointer;border-bottom-width:var(--bal-option-border-width);border-bottom-color:var(--bal-option-border-color);border-bottom-style:solid;background:var(--bal-option-background);padding-left:var(--bal-option-padding-x);padding-right:var(--bal-option-padding-x);min-height:var(--bal-option-min-height)}.bal-option>bal-stack{min-height:var(--bal-option-min-height)}.bal-option:last-child{border-bottom:none}.bal-option::-moz-focus-inner{border:none}.bal-option--hidden{display:none;visibility:hidden}.bal-option__inner{font-family:var(--bal-option-font-family);font-weight:var(--bal-option-font-weight);line-height:var(--bal-option-line-height);word-break:break-word;white-space:normal;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-ms-flex:1;flex:1}.bal-option__inner--multiline{white-space:normal}.bal-option--focused{background:var(--bal-option-background-hovered)}@media (hover: hover)and (pointer: fine){.bal-option:hover{background:var(--bal-option-background-hovered);color:var(--bal-option-text-hovered)}}.bal-option:active{background:var(--bal-option-background-hovered);color:var(--bal-option-text-pressed)}.bal-option--selected{background:var(--bal-option-background-selected)}@media (hover: hover)and (pointer: fine){.bal-option--selected:hover{background:var(--bal-option-background-selected-hovered)}}.bal-option--selected:active{background:var(--bal-option-background-selected-hovered)}.bal-option--selected .bal-option__inner{font-weight:var(--bal-font-weight-bold)}.bal-option--selected.bal-option--focused{background:var(--bal-option-background-selected-hovered)}.bal-option--selected.bal-option--focused .bal-option__inner{font-weight:var(--bal-font-weight-bold)}.bal-option--invalid{background:var(--bal-option-background-invalid)}@media (hover: hover)and (pointer: fine){.bal-option--invalid:hover{background:var(--bal-option-background-invalid-hovered)}}.bal-option--invalid:active{background:var(--bal-option-background-invalid-hovered)}.bal-option--invalid.bal-option--focused{background:var(--bal-option-background-invalid-hovered)}.bal-option--invalid .bal-option__inner{color:var(--bal-color-text-danger-hovered)}@media (hover: hover)and (pointer: fine){.bal-option--invalid:hover .bal-option__inner{color:var(--bal-color-text-danger-hovered)}}.bal-option--invalid:active .bal-option__inner{color:var(--bal-color-text-danger-pressed)}.bal-option--disabled,.bal-option--disabled.bal-option--focused{background:var(--bal-option-background) !important;color:var(--bal-option-text-disabled) !important;cursor:default !important}.bal-option--disabled:hover,.bal-option--disabled.bal-option--focused:hover{background:var(--bal-option-background) !important}.bal-option{--bal-check-size:1.25rem}";var k=t("bal_option",function(){function t(t){var i=this;n(this,t);this.balOptionChange=e(this,"balOptionChange");this.balOptionFocus=e(this,"balOptionFocus");this.inputId="bal-option-".concat(j++);this.checkbox=false;this.interactionState=b.DefaultState;this.label="";this.value="";this.disabled=false;this.multiline=false;this.invalid=false;this.selected=false;this.focused=false;this.hidden=false;this.onClick=function(t){var n=i.el.closest("bal-option-list");if(i.disabled||n&&n.disabled){v(t)}else{if(n&&n.required&&!n.multiple){if(!i.selected){i.select(true)}}else{i.select(!i.selected)}}}}t.prototype.createLogger=function(t){this.log=t};t.prototype.componentWillRender=function(){if(this.el){var t=this.el.closest("bal-option-list");if(t){this.checkbox=!!t.multiple}}};t.prototype.listenToMouseEnter=function(){var t=this,i=t.label,n=t.value,e=t.selected,r=t.disabled,o=t.hidden;if(!o&&!r){this.balOptionFocus.emit({label:i,value:n,selected:e})}};t.prototype.elementStateListener=function(t){this.interactionChildElements.forEach((function(i){i.hovered=t.hovered;i.pressed=t.pressed}))};t.prototype.select=function(){return __awaiter(this,arguments,void 0,(function(t){var i,n,e;if(t===void 0){t=true}return __generator(this,(function(r){this.selected=t;i=this,n=i.label,e=i.value;this.balOptionChange.emit({label:n,value:e,selected:t});return[2]}))}))};Object.defineProperty(t.prototype,"interactionChildElements",{get:function(){return Array.from(this.el.querySelectorAll("bal-check"))},enumerable:false,configurable:true});t.prototype.render=function(){var t=f.block("option");return r(o,{key:"a9b567396356b31dc5dacf1115b538eb6f0229e9",class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t.class()),t.modifier("checkbox").class(this.checkbox)),t.modifier("focused").class(this.focused)),t.modifier("invalid").class(this.invalid)),t.modifier("selected").class(this.selected)),t.modifier("disabled").class(this.disabled)),t.modifier("hidden").class(this.hidden)),role:"option",id:this.inputId,"data-value":this.value,"data-label":this.label,"aria-label":this.label,"aria-hidden":h(this.hidden),"aria-selected":h(this.selected),"aria-checked":h(this.selected),"aria-disabled":h(this.disabled),"aria-invalid":h(this.invalid),tabIndex:-1,onClick:this.onClick},r("bal-stack",{key:"bc7b02be2431b89e05a16df87b2ef5e7e828577a",py:"small",space:"x-small"},this.checkbox?r("bal-check",{checked:this.selected,disabled:this.disabled,invalid:this.invalid,hovered:this.interactionState.hovered,pressed:this.interactionState.pressed,tabindex:-1}):"",r("div",{key:"dd0f4a8143bcff57bcfd578073fc5c13fc947b64",class:Object.assign(Object.assign({},t.element("inner").class()),t.element("inner").modifier("multiline").class(this.multiline))},r("slot",{key:"49d60c90205cc0181cfc61eac50e2de14bc1dc80"})),this.selected&&!this.checkbox?r("bal-icon",{name:"check",size:"small",color:this.disabled?"grey":this.invalid?"danger":"primary"}):""))};Object.defineProperty(t.prototype,"el",{get:function(){return a(this)},enumerable:false,configurable:true});return t}());c([i("bal-option"),l("design:type",Function),l("design:paramtypes",[Function]),l("design:returntype",void 0)],k.prototype,"createLogger",null);c([d(),l("design:type",Function),l("design:paramtypes",[Object]),l("design:returntype",void 0)],k.prototype,"elementStateListener",null);var j=0;k.style=y;var x=".bal-option-list{display:block;position:relative;width:100%;list-style:none;margin:0;outline:0;max-height:var(--bal-option-list-max-height);border-radius:var(--bal-radius-normal);overflow:hidden auto}";var O=t("bal_option_list",function(){function t(t){n(this,t);this.inputId="bal-option-list-".concat(F++);this.inheritAttributes={};this.ariaForm=w;this.multiple=false;this.disabled=false;this.required=false;this.focusIndex=-1;this.filter="includes";this.contentHeight=262}t.prototype.createLogger=function(t){this.log=t};t.prototype.contentHeightChanged=function(t){if(t===undefined){this.el.style.removeProperty("--bal-option-list-max-height")}else{this.el.style.setProperty("--bal-option-list-max-height","".concat(t,"px"))}};t.prototype.componentDidLoad=function(){this.contentHeightChanged(this.contentHeight)};t.prototype.componentWillRender=function(){this.inheritAttributes=g(this.el,["aria-multiselectable","aria-labelledby"])};t.prototype.listenToMouseEnter=function(t){var i=this.options;var n=this.getOptionIndex(i,t.detail.value);if(n!==undefined){this.updateFocus(i,n)}};t.prototype.listenToOptionChange=function(t){var i=t.detail;if(!this.multiple){this.options.filter((function(t){return t.value!==i.value})).forEach((function(t){return t.selected=false}))}};t.prototype.focusSelected=function(){return __awaiter(this,void 0,void 0,(function(){var t,i;return __generator(this,(function(n){switch(n.label){case 0:t=this.options;i=this.getSelectedOptionIndex(t);if(!(i>0))return[3,2];this.updateFocus(t,i);return[4,s()];case 1:n.sent();return[2,i];case 2:return[4,this.focusFirst()];case 3:return[2,n.sent()]}}))}))};t.prototype.focusFirst=function(){return __awaiter(this,void 0,void 0,(function(){var t,i,n;return __generator(this,(function(e){switch(e.label){case 0:t=this.options;i=this.getFirstOptionIndex(t);this.updateFocus(t,i);n=t[i];this.updateScrollTopPosition(n);return[4,s()];case 1:e.sent();return[2,i]}}))}))};t.prototype.focusLast=function(){return __awaiter(this,void 0,void 0,(function(){var t,i,n;return __generator(this,(function(e){switch(e.label){case 0:t=this.options;i=this.getLastOptionIndex(t);this.updateFocus(t,i);n=t[i];this.updateScrollBottomPosition(n);return[4,s()];case 1:e.sent();return[2,i]}}))}))};t.prototype.focusNext=function(){return __awaiter(this,void 0,void 0,(function(){var t,i,n;return __generator(this,(function(e){switch(e.label){case 0:t=this.options;i=this.getNextOptionIndex(t);this.updateFocus(t,i);n=t[i];this.updateScrollBottomPosition(n);return[4,s()];case 1:e.sent();return[2,i]}}))}))};t.prototype.focusPrevious=function(){return __awaiter(this,void 0,void 0,(function(){var t,i,n;return __generator(this,(function(e){switch(e.label){case 0:t=this.options;i=this.getPreviousOptionIndex(t);this.updateFocus(t,i);n=t[i];this.updateScrollTopPosition(n);return[4,s()];case 1:e.sent();return[2,i]}}))}))};t.prototype.focusByLabel=function(t,i){return __awaiter(this,void 0,void 0,(function(){var n,e,r;return __generator(this,(function(o){switch(o.label){case 0:n=this.options;e=this.getOptionIndexByLabel(n,t);this.updateFocus(n,e);r=n[e];this.updateScrollTopPosition(r);return[4,s()];case 1:o.sent();if(!i.select)return[3,3];return[4,r.select()];case 2:o.sent();o.label=3;case 3:return[2,e]}}))}))};t.prototype.filterByContent=function(t){return __awaiter(this,void 0,void 0,(function(){var i;return __generator(this,(function(n){switch(n.label){case 0:i=this.allOptions;this.filterOptions(i,t);return[4,s()];case 1:n.sent();return[2,this.focusFirst()]}}))}))};t.prototype.resetHidden=function(){return __awaiter(this,arguments,void 0,(function(t){if(t===void 0){t=false}return __generator(this,(function(i){switch(i.label){case 0:this.options.forEach((function(i){return i.hidden=t}));return[4,s()];case 1:i.sent();this.resetFocus();return[2]}}))}))};t.prototype.resetSelected=function(){return __awaiter(this,arguments,void 0,(function(t){if(t===void 0){t=false}return __generator(this,(function(i){switch(i.label){case 0:this.options.forEach((function(i){return i.selected=t}));return[4,s()];case 1:i.sent();return[2]}}))}))};t.prototype.updateSelected=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){switch(i.label){case 0:this.options.forEach((function(i){return i.selected=t.includes(i.value)}));return[4,s()];case 1:i.sent();return[2]}}))}))};t.prototype.resetFocus=function(){return __awaiter(this,void 0,void 0,(function(){var t,i;return __generator(this,(function(n){switch(n.label){case 0:t=this.options;i=-1;this.updateFocus(t,i);this.scrollTo(0);return[4,s()];case 1:n.sent();return[2,i]}}))}))};t.prototype.getSelectedValues=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(i){t=this.options;return[2,t.filter((function(t){return t.selected})).map((function(t){return t.value}))]}))}))};t.prototype.getSelectedOptions=function(t){return __awaiter(this,void 0,void 0,(function(){var i;return __generator(this,(function(n){i=this.options;if(t&&t.length>0){return[2,i.filter((function(i){return t.includes(i.value)})).map((function(t){return t}))]}return[2,i.filter((function(t){return t.selected})).map((function(t){return t}))]}))}))};t.prototype.getValues=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.options.map((function(t){return t.value}))]}))}))};t.prototype.getLabels=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.options.map((function(t){return t.label}))]}))}))};t.prototype.getOptions=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.options.filter((function(t){return!t.disabled||!t.hidden}))]}))}))};t.prototype.selectByFocus=function(){return __awaiter(this,void 0,void 0,(function(){var t,i;return __generator(this,(function(n){t=this.options;i=t[this.focusIndex];if(i){if(this.multiple){i.select(!i.selected)}else{i.select(true)}}return[2]}))}))};t.prototype.setAriaForm=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){this.ariaForm=Object.assign({},t);return[2]}))}))};Object.defineProperty(t.prototype,"options",{get:function(){return Array.from(this.el.querySelectorAll("bal-option")).filter((function(t){return!t.hidden}))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"allOptions",{get:function(){return Array.from(this.el.querySelectorAll("bal-option"))},enumerable:false,configurable:true});t.prototype.filterOptions=function(t,i){var n=[];var e=this.filter==="includes"?_:m;for(var r=0;r<t.length;r++){var o=t[r];var a=o.textContent||"";if(e(a,i)){n.push(o);o.hidden=false}else{o.hidden=true}}return n};t.prototype.isOptionVisible=function(t){var i=this.el.clientHeight;var n=this.el.scrollTop;var e=n+i;var r=n<=t.offsetTop&&t.offsetTop+t.clientHeight<=e;return r};t.prototype.updateScrollTopPosition=function(t){if(t){var i=this.isOptionVisible(t);if(!i){this.scrollTo(this.getScrollTopForTopPosition(t))}}};t.prototype.updateScrollBottomPosition=function(t){if(t){var i=this.isOptionVisible(t);if(!i){this.scrollTo(this.getScrollTopForBottomPosition(t))}}};t.prototype.getScrollTopForTopPosition=function(t){var i=t.offsetTop;var n=i;if(n<0){return 0}return n};t.prototype.getScrollTopForBottomPosition=function(t){var i=this.el.clientHeight;var n=t.offsetTop+t.clientHeight;var e=n-i;if(e<0){return 0}return e};t.prototype.scrollTo=function(t){return __awaiter(this,void 0,void 0,(function(){var i=this;return __generator(this,(function(n){if(t!==undefined&&t!==null){if(this.focusRaf!==undefined){cancelAnimationFrame(this.focusRaf)}this.focusRaf=u((function(){return __awaiter(i,void 0,void 0,(function(){return __generator(this,(function(i){this.el.scrollTop=t;return[2]}))}))}))}return[2]}))}))};t.prototype.updateFocus=function(t,i){this.focusIndex=i;for(var n=0;n<t.length;n++){var e=t[n];e.focused=n===i}};t.prototype.getOptionIndex=function(t,i){for(var n=0;n<t.length;n++){var e=t[n];if(e.value===i){return n}}return undefined};t.prototype.getSelectedOptionIndex=function(t){for(var i=0;i<t.length;i++){var n=t[i];if(n.selected&&!n.hidden){return i}}return this.focusIndex};t.prototype.getFirstOptionIndex=function(t){for(var i=0;i<t.length;i++){var n=t[i];if(!n.disabled&&!n.hidden){return i}}return this.focusIndex};t.prototype.getNextOptionIndex=function(t,i){if(i===void 0){i=this.focusIndex}if(i<0){return this.getFirstOptionIndex(t)}var n=this.getLength(t);var e=i;if(i<n){e=i+1;if(t[e].disabled){return this.getNextOptionIndex(t,e)}}return e};t.prototype.getPreviousOptionIndex=function(t,i){if(i===void 0){i=this.focusIndex}var n=this.getFirstOptionIndex(t);if(i<=n){return n}var e=i;e=i-1;if(t[e].disabled){return this.getPreviousOptionIndex(t,e)}return e};t.prototype.getLastOptionIndex=function(t){for(var i=t.length-1;i>=0;i--){var n=t[i];if(!n.disabled){return i}}return this.focusIndex};t.prototype.getOptionIndexByLabel=function(t,i){if(i===undefined||i===""){return this.focusIndex}var n=t.find((function(t){return m(t.label||"",i)}));if(!p(n)&&n.id){return t.indexOf(n)}return this.focusIndex};t.prototype.getLength=function(t){var i=t.map((function(t,i){return t.disabled?0:i}));var n=Math.max.apply(Math,i);return n};t.prototype.render=function(){var t=f.block("option-list");var i=this.labelledby||this.ariaForm.labelId;return r(o,{key:"934c509e0703b3d7435028ad7bff05290d6a855b",class:Object.assign({},t.class()),id:this.inputId},r("div",Object.assign({key:"4d6b39d94ea7f7abacd128ca65e0f9f985ae3165",role:"listbox","aria-labelledby":i,"aria-disabled":h(this.disabled),class:Object.assign({},t.element("container").class())},this.inheritAttributes),r("slot",{key:"0ad6401208e35316c7eb892d0b8ffba1476a8611"})))};Object.defineProperty(t.prototype,"el",{get:function(){return a(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{contentHeight:["contentHeightChanged"]}},enumerable:false,configurable:true});return t}());c([i("bal-option-list"),l("design:type",Function),l("design:paramtypes",[Function]),l("design:returntype",void 0)],O.prototype,"createLogger",null);var F=0;O.style=x}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{M as t,t as i,I as s,R as e,S as n,Q as h}from"./p-pkPHUz5e.js";import{B as r}from"./p-ByiN-QjD.js";import{s as o}from"./p-C8S5XlJl.js";import{j as a}from"./p-D1VPLQ5z.js";const l=t=>"string"==typeof t?t.replace(/([a-z])([0-9])/g,"$1-$2").replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase():"",c=t=>parseInt(t.slice(0,-2),10),d=(t,i=16)=>{if("undefined"==typeof window||void 0===t)return{top:i,right:i,bottom:i,left:i};const s=window.getComputedStyle(t);return{top:c(s.getPropertyValue("padding-top")),right:c(s.getPropertyValue("padding-right")),bottom:c(s.getPropertyValue("padding-bottom")),left:c(s.getPropertyValue("padding-left"))}},u=t=>{if("undefined"==typeof window)return t.clientWidth;const i=window.getComputedStyle(t),s=i.getPropertyValue("box-sizing"),e=c(i.getPropertyValue("width"));if("border-box"===s)return e;const n=c(i.getPropertyValue("padding-right"));return c(i.getPropertyValue("padding-left"))+e+n},b=t=>{const i=Array.from(t.children);let s=0;for(const t of i)s=Math.max(s,t.offsetLeft+t.offsetWidth);return s},f=({value:i,items:s,containerId:e,onControlChange:n})=>{const h=r.block("swiper").element("controls");return t("div",{class:Object.assign(Object.assign({},h.class()),h.modifier("dots").class())},t("bal-pagination",{"aria-controls":e,interface:"small",value:i+1,totalPages:s.length,onBalChange:t=>{let i=t.detail-1;i<0&&(i=0),i>=s.length&&(i=s.length-1),n(s[i])}}))},g=({isFirst:i,isLast:s,inverted:e,areControlsHidden:n,onNextClick:h,onPreviousClick:o,containerId:a,leftControlTitle:l,rightControlTitle:c})=>{const d=r.block("swiper").element("controls"),u=d.element("button");return t("div",{"data-mutation":"false",class:Object.assign(Object.assign({},d.class()),d.modifier("large").class())},t("bal-button",{class:Object.assign(Object.assign(Object.assign({},u.class()),u.modifier("left").class()),u.modifier("hidden").class(i&&n)),"aria-controls":a,square:!0,icon:"nav-go-left",rounded:!0,inverted:e,onClick:()=>o(),tabindex:-1,disabled:i,"aria-hidden":i&&n?"true":null,"data-testid":"bal-carousel-control-left",title:l}),t("bal-button",{class:Object.assign(Object.assign(Object.assign({},u.class()),u.modifier("right").class()),u.modifier("hidden").class(s&&n)),"aria-controls":a,square:!0,icon:"nav-go-right",rounded:!0,inverted:e,onClick:()=>h(),tabindex:-1,disabled:s,"aria-hidden":s&&n?"true":null,"data-testid":"bal-carousel-control-right",title:c}))},w=({isFirst:i,isLast:s,inverted:e,leftControlTitle:n,rightControlTitle:h,containerId:o,onNextClick:a,onPreviousClick:l})=>{const c=r.block("swiper").element("controls"),d=c.element("button");return t("div",{class:Object.assign(Object.assign({},c.class()),c.modifier("small").class())},t("bal-button",{class:Object.assign(Object.assign(Object.assign({},d.class()),d.modifier("left").class()),d.modifier("hidden").class(i)),"aria-controls":o,square:!0,size:"small",icon:"nav-go-left",rounded:!0,inverted:e,onClick:()=>l(),disabled:i,tabindex:"-1","data-testid":"bal-carousel-control-left",title:n}),t("bal-button",{class:Object.assign(Object.assign(Object.assign({},d.class()),d.modifier("right").class()),d.modifier("hidden").class(s)),"aria-controls":o,square:!0,size:"small",icon:"nav-go-right",rounded:!0,inverted:e,onClick:()=>a(),disabled:s,tabindex:"-1","data-testid":"bal-carousel-control-right",title:h}))},p={de:{left:"vorherige",right:"nächste"},en:{left:"previous",right:"next"},fr:{left:"précédent",right:"suivant"},it:{left:"precedente",right:"successivo"},nl:{left:"vorige",right:"volgende"},es:{left:"anterior",right:"siguiente"},pl:{left:"poprzedni",right:"następny"},pt:{left:"anterior",right:"próximo"},sv:{left:"föregående",right:"nästa"},fi:{left:"edellinen",right:"seuraava"}};class v{constructor(){this.previousTransformValue=0,this.active=!0,this.id="bal-swiper-"+m++,this.containerId=`${this.id}-container`,this.index=0,this.steps=1,this.noNeedForControls=!0,this.isLastSlideVisible=!1,this.itemsPerView=1,this.controls="none",this.gapSpace="none",this.keyboardMode=!1,this.shiftMode=!1,this.isInsideContainer=!1,this.focusByKey=!1,this.pointerDown=()=>{this.keyboardMode=!1,this.shiftMode=!1,this.focusByKey=!1,this.isInsideContainer=!1},this.listenToKeyDown=t=>{this.keyboardMode=a(t),this.shiftMode=t.shiftKey,this.focusByKey=!1,this.isInsideContainer=i(this.containerEl,t.target),this.active&&"dots"!==this.controls&&"tabs"!==this.controls&&this.isInsideContainer&&this.keyboardMode&&(this.shiftMode&&this.index>0?(this.focusByKey=!0,this.focusPreviousItem(t)):!this.shiftMode&&this.index<this.lastIndex()&&(this.focusByKey=!0,this.focusNextItem(t)))},this.updateFocus=()=>{this.active&&"dots"!==this.controls&&"tabs"!==this.controls&&this.focusByKey&&!this.isInsideContainer&&this.focusItem(this.shiftMode?this.lastIndex():0)},this.cssBlock=r.block("swiper"),this.cssSwiper=()=>Object.assign({},this.cssBlock.class(this.active)),this.cssInnerSwiper=()=>Object.assign(Object.assign(Object.assign(Object.assign({},this.cssBlock.element("inner").class(this.active)),this.cssBlock.element("inner").modifier(`items-per-view-${this.itemsPerView}`).class(this.active)),this.cssBlock.element("inner").modifier("shadow-left").class(this.hasShadowLeft())),this.cssBlock.element("inner").modifier("shadow-right").class(this.hasShadowRight())),this.cssSwiperContainer=()=>Object.assign(Object.assign({},this.cssBlock.element("container").class(this.active)),this.cssBlock.element("container").modifier(`gap-${this.gapSpace}`).class(this.active)),this.notifyChange=s((()=>this.notifyChangeInternal()),100),this.onControlChange=t=>{t!==this.index&&(t>this.index?this.next(t-this.index):this.previous(this.index-t))},this.onPreviousButtonClick=()=>this.previous(),this.onNextButtonClick=()=>this.next()}connectedCallback(t){this.component=t,e(window,"keydown",this.listenToKeyDown),e(this.component.el,"focusin",this.updateFocus),e(window,"touchstart",this.pointerDown),e(window,"mousedown",this.pointerDown)}disconnectedCallback(){n(window,"keydown",this.listenToKeyDown),n(this.component.el,"focusin",this.updateFocus),n(window,"touchstart",this.pointerDown),n(window,"mousedown",this.pointerDown)}isActive(){return this.active}async activate(){this.active=!0}async disable(){this.active=!1}async focusItem(t){const i=await this.goTo(t);i&&i.el&&await this.setFocusToEl(i.el)}async focusNextItem(t){const i=await this.next(1);i&&i.el&&(o(t),await this.setFocusToEl(i.el))}async focusPreviousItem(t){const i=await this.previous(1);i&&i.el&&(o(t),await this.setFocusToEl(i.el))}async setFocusToEl(t){t.setFocus&&await t.setFocus()}isFirst(){return 0===this.index}hasShadowLeft(){return this.hasShadow()&&0!==this.index&&this.active}hasShadowRight(){return this.hasShadow()&&!this.isLastSlideVisible&&this.active}isLast(){return this.isLastSlideVisible}async previous(t=this.steps){let i=this.index-t;return i<0&&(i=0),this.goTo(i)}async next(t=this.steps){const i=this.component.swiperGetAllChildrenElements().length;let s=this.index+t;return s>=i&&(s=i-1),this.goTo(s)}async updateIndex(t=this.index){this.index!==t&&(this.goTo(t),this.index=t,this.component.swiperOnChange(this.index))}async goTo(t=this.index){if(this.active){const i=await this.buildSlide(t);return i&&(await this.animate(i.transformActive,!0)||this.index!==t)&&(this.index=t,this.component.swiperOnChange(this.index)),i}}renderControls(){if(!this.active||this.noNeedForControls||!this.component.hasAnimated)return"";const i=p[this.component.language].left,s=p[this.component.language].right;switch(this.controls){case"small":return t(w,{isFirst:this.isFirst(),isLast:this.isLast(),inverted:this.component.inverted,leftControlTitle:i,rightControlTitle:s,containerId:this.containerId,onNextClick:()=>this.onNextButtonClick(),onPreviousClick:()=>this.onPreviousButtonClick()});case"large":return t(g,{isFirst:this.isFirst(),isLast:this.isLast(),inverted:this.component.inverted,areControlsHidden:!this.component.isMobile,leftControlTitle:i,rightControlTitle:s,containerId:this.containerId,onNextClick:()=>this.onNextButtonClick(),onPreviousClick:()=>this.onPreviousButtonClick()});case"dots":return t(f,{value:this.index,items:this.getAllControlItems(),containerId:this.containerId,onControlChange:t=>this.onControlChange(t.value)});default:return""}}getAllControlItems(){return this.component.swiperGetAllChildrenElements().map(((t,i)=>({value:i,label:t.label})))}lastIndex(){return this.component.swiperGetAllChildrenElements().length-1}hasShadow(){return!this.component.inverted&&("auto"===this.itemsPerView||this.itemsPerView>1)}async notifyChangeInternal(){const t=await this.buildSlide(this.index);t&&this.animate(t.transformActive,!1)}async buildSlide(t){const i=this.component.swiperGetAllChildrenElements(),s=void 0===t?this.lastIndex():t;if(i.length>s&&s>=0){const t={none:0,normal:16,medium:24}[this.gapSpace],e=i.filter(((t,i)=>i<s+1)).reduce(((i,s)=>i+u(s)+t),0),n=i.filter(((t,i)=>i<s)).reduce(((i,s)=>i+u(s)+t),0);return{el:i[s],transformNext:e,transformActive:n,isFirst:0===s,isLast:s===this.lastIndex(),total:this.lastIndex()+1,index:s}}}async animate(t=0,i=!0){return new Promise((s=>{void 0!==this.currentRaf&&cancelAnimationFrame(this.currentRaf),this.currentRaf=h((async()=>{if(this.containerEl&&this.innerEl){const e=await this.buildSlide();if(e){const n=e.transformNext||0,h=this.innerEl.clientWidth||0;if(0===n||0===h)return s(!1);let r=n-h;3===this.itemsPerView&&(r=n-h-1);const o=r<=t,a=0===t||r<=2;a&&(this.index=0);const l="small"===this.controls,c="large"===this.controls;this.noNeedForControls=n<=h;let d=this.noNeedForControls?0:o?r:t;a||this.noNeedForControls||!(l||c&&!this.component.isMobile)||(d-=o?0:c?56:48),this.containerEl.style.transitionDuration=i?"0.6s":"0",this.containerEl.style.transform=`translate3d(-${d}px, 0px, 0px)`;const u=d!==this.previousTransformValue;return this.previousTransformValue=d,this.isLastSlideVisible=o,this.borderEl&&(this.borderEl.style.transitionDuration=i?"0.6s":"0",this.borderEl.style.transform=`translate3d(${d}px, 0px, 0px)`),this.component.hasAnimated=!0,s(!!u)}}}))}))}}let m=0;export{v as S,b as a,d as g,l as t}
|
|
1
|
+
import{M as t,t as i,I as s,R as e,S as n,Q as h}from"./p-Btdiqd5K.js";import{B as r}from"./p-ByiN-QjD.js";import{s as o}from"./p-jKk811CD.js";import{j as a}from"./p-D1VPLQ5z.js";const l=t=>"string"==typeof t?t.replace(/([a-z])([0-9])/g,"$1-$2").replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase():"",c=t=>parseInt(t.slice(0,-2),10),d=(t,i=16)=>{if("undefined"==typeof window||void 0===t)return{top:i,right:i,bottom:i,left:i};const s=window.getComputedStyle(t);return{top:c(s.getPropertyValue("padding-top")),right:c(s.getPropertyValue("padding-right")),bottom:c(s.getPropertyValue("padding-bottom")),left:c(s.getPropertyValue("padding-left"))}},u=t=>{if("undefined"==typeof window)return t.clientWidth;const i=window.getComputedStyle(t),s=i.getPropertyValue("box-sizing"),e=c(i.getPropertyValue("width"));if("border-box"===s)return e;const n=c(i.getPropertyValue("padding-right"));return c(i.getPropertyValue("padding-left"))+e+n},b=t=>{const i=Array.from(t.children);let s=0;for(const t of i)s=Math.max(s,t.offsetLeft+t.offsetWidth);return s},f=({value:i,items:s,containerId:e,onControlChange:n})=>{const h=r.block("swiper").element("controls");return t("div",{class:Object.assign(Object.assign({},h.class()),h.modifier("dots").class())},t("bal-pagination",{"aria-controls":e,interface:"small",value:i+1,totalPages:s.length,onBalChange:t=>{let i=t.detail-1;i<0&&(i=0),i>=s.length&&(i=s.length-1),n(s[i])}}))},g=({isFirst:i,isLast:s,inverted:e,areControlsHidden:n,onNextClick:h,onPreviousClick:o,containerId:a,leftControlTitle:l,rightControlTitle:c})=>{const d=r.block("swiper").element("controls"),u=d.element("button");return t("div",{"data-mutation":"false",class:Object.assign(Object.assign({},d.class()),d.modifier("large").class())},t("bal-button",{class:Object.assign(Object.assign(Object.assign({},u.class()),u.modifier("left").class()),u.modifier("hidden").class(i&&n)),"aria-controls":a,square:!0,icon:"nav-go-left",rounded:!0,inverted:e,onClick:()=>o(),tabindex:-1,disabled:i,"aria-hidden":i&&n?"true":null,"data-testid":"bal-carousel-control-left",title:l}),t("bal-button",{class:Object.assign(Object.assign(Object.assign({},u.class()),u.modifier("right").class()),u.modifier("hidden").class(s&&n)),"aria-controls":a,square:!0,icon:"nav-go-right",rounded:!0,inverted:e,onClick:()=>h(),tabindex:-1,disabled:s,"aria-hidden":s&&n?"true":null,"data-testid":"bal-carousel-control-right",title:c}))},w=({isFirst:i,isLast:s,inverted:e,leftControlTitle:n,rightControlTitle:h,containerId:o,onNextClick:a,onPreviousClick:l})=>{const c=r.block("swiper").element("controls"),d=c.element("button");return t("div",{class:Object.assign(Object.assign({},c.class()),c.modifier("small").class())},t("bal-button",{class:Object.assign(Object.assign(Object.assign({},d.class()),d.modifier("left").class()),d.modifier("hidden").class(i)),"aria-controls":o,square:!0,size:"small",icon:"nav-go-left",rounded:!0,inverted:e,onClick:()=>l(),disabled:i,tabindex:"-1","data-testid":"bal-carousel-control-left",title:n}),t("bal-button",{class:Object.assign(Object.assign(Object.assign({},d.class()),d.modifier("right").class()),d.modifier("hidden").class(s)),"aria-controls":o,square:!0,size:"small",icon:"nav-go-right",rounded:!0,inverted:e,onClick:()=>a(),disabled:s,tabindex:"-1","data-testid":"bal-carousel-control-right",title:h}))},p={de:{left:"vorherige",right:"nächste"},en:{left:"previous",right:"next"},fr:{left:"précédent",right:"suivant"},it:{left:"precedente",right:"successivo"},nl:{left:"vorige",right:"volgende"},es:{left:"anterior",right:"siguiente"},pl:{left:"poprzedni",right:"następny"},pt:{left:"anterior",right:"próximo"},sv:{left:"föregående",right:"nästa"},fi:{left:"edellinen",right:"seuraava"}};class v{constructor(){this.previousTransformValue=0,this.active=!0,this.id="bal-swiper-"+m++,this.containerId=`${this.id}-container`,this.index=0,this.steps=1,this.noNeedForControls=!0,this.isLastSlideVisible=!1,this.itemsPerView=1,this.controls="none",this.gapSpace="none",this.keyboardMode=!1,this.shiftMode=!1,this.isInsideContainer=!1,this.focusByKey=!1,this.pointerDown=()=>{this.keyboardMode=!1,this.shiftMode=!1,this.focusByKey=!1,this.isInsideContainer=!1},this.listenToKeyDown=t=>{this.keyboardMode=a(t),this.shiftMode=t.shiftKey,this.focusByKey=!1,this.isInsideContainer=i(this.containerEl,t.target),this.active&&"dots"!==this.controls&&"tabs"!==this.controls&&this.isInsideContainer&&this.keyboardMode&&(this.shiftMode&&this.index>0?(this.focusByKey=!0,this.focusPreviousItem(t)):!this.shiftMode&&this.index<this.lastIndex()&&(this.focusByKey=!0,this.focusNextItem(t)))},this.updateFocus=()=>{this.active&&"dots"!==this.controls&&"tabs"!==this.controls&&this.focusByKey&&!this.isInsideContainer&&this.focusItem(this.shiftMode?this.lastIndex():0)},this.cssBlock=r.block("swiper"),this.cssSwiper=()=>Object.assign({},this.cssBlock.class(this.active)),this.cssInnerSwiper=()=>Object.assign(Object.assign(Object.assign(Object.assign({},this.cssBlock.element("inner").class(this.active)),this.cssBlock.element("inner").modifier(`items-per-view-${this.itemsPerView}`).class(this.active)),this.cssBlock.element("inner").modifier("shadow-left").class(this.hasShadowLeft())),this.cssBlock.element("inner").modifier("shadow-right").class(this.hasShadowRight())),this.cssSwiperContainer=()=>Object.assign(Object.assign({},this.cssBlock.element("container").class(this.active)),this.cssBlock.element("container").modifier(`gap-${this.gapSpace}`).class(this.active)),this.notifyChange=s((()=>this.notifyChangeInternal()),100),this.onControlChange=t=>{t!==this.index&&(t>this.index?this.next(t-this.index):this.previous(this.index-t))},this.onPreviousButtonClick=()=>this.previous(),this.onNextButtonClick=()=>this.next()}connectedCallback(t){this.component=t,e(window,"keydown",this.listenToKeyDown),e(this.component.el,"focusin",this.updateFocus),e(window,"touchstart",this.pointerDown),e(window,"mousedown",this.pointerDown)}disconnectedCallback(){n(window,"keydown",this.listenToKeyDown),n(this.component.el,"focusin",this.updateFocus),n(window,"touchstart",this.pointerDown),n(window,"mousedown",this.pointerDown)}isActive(){return this.active}async activate(){this.active=!0}async disable(){this.active=!1}async focusItem(t){const i=await this.goTo(t);i&&i.el&&await this.setFocusToEl(i.el)}async focusNextItem(t){const i=await this.next(1);i&&i.el&&(o(t),await this.setFocusToEl(i.el))}async focusPreviousItem(t){const i=await this.previous(1);i&&i.el&&(o(t),await this.setFocusToEl(i.el))}async setFocusToEl(t){t.setFocus&&await t.setFocus()}isFirst(){return 0===this.index}hasShadowLeft(){return this.hasShadow()&&0!==this.index&&this.active}hasShadowRight(){return this.hasShadow()&&!this.isLastSlideVisible&&this.active}isLast(){return this.isLastSlideVisible}async previous(t=this.steps){let i=this.index-t;return i<0&&(i=0),this.goTo(i)}async next(t=this.steps){const i=this.component.swiperGetAllChildrenElements().length;let s=this.index+t;return s>=i&&(s=i-1),this.goTo(s)}async updateIndex(t=this.index){this.index!==t&&(this.goTo(t),this.index=t,this.component.swiperOnChange(this.index))}async goTo(t=this.index){if(this.active){const i=await this.buildSlide(t);return i&&(await this.animate(i.transformActive,!0)||this.index!==t)&&(this.index=t,this.component.swiperOnChange(this.index)),i}}renderControls(){if(!this.active||this.noNeedForControls||!this.component.hasAnimated)return"";const i=p[this.component.language].left,s=p[this.component.language].right;switch(this.controls){case"small":return t(w,{isFirst:this.isFirst(),isLast:this.isLast(),inverted:this.component.inverted,leftControlTitle:i,rightControlTitle:s,containerId:this.containerId,onNextClick:()=>this.onNextButtonClick(),onPreviousClick:()=>this.onPreviousButtonClick()});case"large":return t(g,{isFirst:this.isFirst(),isLast:this.isLast(),inverted:this.component.inverted,areControlsHidden:!this.component.isMobile,leftControlTitle:i,rightControlTitle:s,containerId:this.containerId,onNextClick:()=>this.onNextButtonClick(),onPreviousClick:()=>this.onPreviousButtonClick()});case"dots":return t(f,{value:this.index,items:this.getAllControlItems(),containerId:this.containerId,onControlChange:t=>this.onControlChange(t.value)});default:return""}}getAllControlItems(){return this.component.swiperGetAllChildrenElements().map(((t,i)=>({value:i,label:t.label})))}lastIndex(){return this.component.swiperGetAllChildrenElements().length-1}hasShadow(){return!this.component.inverted&&("auto"===this.itemsPerView||this.itemsPerView>1)}async notifyChangeInternal(){const t=await this.buildSlide(this.index);t&&this.animate(t.transformActive,!1)}async buildSlide(t){const i=this.component.swiperGetAllChildrenElements(),s=void 0===t?this.lastIndex():t;if(i.length>s&&s>=0){const t={none:0,normal:16,medium:24}[this.gapSpace],e=i.filter(((t,i)=>i<s+1)).reduce(((i,s)=>i+u(s)+t),0),n=i.filter(((t,i)=>i<s)).reduce(((i,s)=>i+u(s)+t),0);return{el:i[s],transformNext:e,transformActive:n,isFirst:0===s,isLast:s===this.lastIndex(),total:this.lastIndex()+1,index:s}}}async animate(t=0,i=!0){return new Promise((s=>{void 0!==this.currentRaf&&cancelAnimationFrame(this.currentRaf),this.currentRaf=h((async()=>{if(this.containerEl&&this.innerEl){const e=await this.buildSlide();if(e){const n=e.transformNext||0,h=this.innerEl.clientWidth||0;if(0===n||0===h)return s(!1);let r=n-h;3===this.itemsPerView&&(r=n-h-1);const o=r<=t,a=0===t||r<=2;a&&(this.index=0);const l="small"===this.controls,c="large"===this.controls;this.noNeedForControls=n<=h;let d=this.noNeedForControls?0:o?r:t;a||this.noNeedForControls||!(l||c&&!this.component.isMobile)||(d-=o?0:c?56:48),this.containerEl.style.transitionDuration=i?"0.6s":"0",this.containerEl.style.transform=`translate3d(-${d}px, 0px, 0px)`;const u=d!==this.previousTransformValue;return this.previousTransformValue=d,this.isLastSlideVisible=o,this.borderEl&&(this.borderEl.style.transitionDuration=i?"0.6s":"0",this.borderEl.style.transform=`translate3d(${d}px, 0px, 0px)`),this.component.hasAnimated=!0,s(!!u)}}}))}))}}let m=0;export{v as S,b as a,d as g,l as t}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as t}from"./p-
|
|
1
|
+
import{a as t}from"./p-Btdiqd5K.js";class o{constructor(){this.x=void 0,this.y=void 0,this.disabled=!1}static disableSmoothScrolling(){this.setScrollBehavior("auto")}static enableSmoothScrolling(){this.setScrollBehavior("smooth")}static setScrollBehavior(o){var i;if(t.hasDocument){const t=document;document.body.style.scrollBehavior=o;const s=null===(i=t.firstChild)||void 0===i?void 0:i.nextSibling;"smooth"===getComputedStyle(s).scrollBehavior&&(s.style.scrollBehavior=o)}}connect(o){o?this.target=o:t.hasDocument&&(this.target=document),onscroll=null,onkeydown=null}disconnect(){this.disabled&&this.enable(),this.target=void 0,onscroll=null,onkeydown=null}isDisabled(){return this.disabled}enable(){this.target&&t.hasWindow&&t.hasDocument&&(document.documentElement.style.overflow="",document.body.classList.remove("noscroll"),document.body.style.position="",document.body.style.top="",document.body.style.width="",void 0!==this.x&&void 0!==this.y&&(window.scrollTo(this.x,this.y),this.x=void 0,this.y=void 0),this.disabled=!1)}disable(){!this.disabled&&this.target&&t.hasWindow&&t.hasDocument&&(this.x=window.pageXOffset||document.documentElement.scrollLeft,this.y=window.pageYOffset||document.documentElement.scrollTop,document.documentElement.style.overflow="hidden",document.body.classList.add("noscroll"),document.body.style.position="fixed",document.body.style.top=`-${this.y}px`,document.body.style.width="100%",this.disabled=!0)}}export{o as B}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as t,$ as n}from"./p-Btdiqd5K.js";function c(){return function(c){const{connectedCallback:i,disconnectedCallback:o}=c;c.connectedCallback=function(){return t(this),i&&i.call(this)},c.disconnectedCallback=function(){return n(this),o&&o.call(this)}}}export{c as L}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./p-BsyhaiFT.system.js"],(function(t){"use strict";var i;return{setters:[function(t){i=t.B}],execute:function(){t("L",n);function n(){return function(t,n,s){var e=t.connectedCallback,u=t.disconnectedCallback;t.connectedCallback=function(){if(!this._balWindowResizeSubject){this._balWindowResizeSubject=new i;this._balWindowResizeSubject.attach(this)}return e&&e.call(this)};t.disconnectedCallback=function(){if(this._balWindowResizeSubject){this._balWindowResizeSubject.detach();this._balWindowResizeSubject=undefined}return u&&u.call(this)}}}}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var n=function(t,e){n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))n[e]=t[e]};return n(t,e)};return function(t,e){if(typeof e!=="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}();var __awaiter=this&&this.__awaiter||function(n,t,e,i){function a(n){return n instanceof e?n:new e((function(t){t(n)}))}return new(e||(e=Promise))((function(e,o){function r(n){try{s(i.next(n))}catch(n){o(n)}}function l(n){try{s(i["throw"](n))}catch(n){o(n)}}function s(n){n.done?e(n.value):a(n.value).then(r,l)}s((i=i.apply(n,t||[])).next())}))};var __generator=this&&this.__generator||function(n,t){var e={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,a,o,r;return r={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function l(n){return function(t){return s([n,t])}}function s(l){if(i)throw new TypeError("Generator is already executing.");while(r&&(r=0,l[0]&&(e=0)),e)try{if(i=1,a&&(o=l[0]&2?a["return"]:l[0]?a["throw"]||((o=a["return"])&&o.call(a),0):a.next)&&!(o=o.call(a,l[1])).done)return o;if(a=0,o)l=[l[0]&2,o.value];switch(l[0]){case 0:case 1:o=l;break;case 4:e.label++;return{value:l[1],done:false};case 5:e.label++;a=l[1];l=[0];continue;case 7:l=e.ops.pop();e.trys.pop();continue;default:if(!(o=e.trys,o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){e=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){e.label=l[1];break}if(l[0]===6&&e.label<o[1]){e.label=o[1];o=l;break}if(o&&e.label<o[2]){e.label=o[2];e.ops.push(l);break}if(o[2])e.ops.pop();e.trys.pop();continue}l=t.call(n,e)}catch(n){l=[6,n];a=0}finally{i=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};System.register(["./p-
|
|
1
|
+
var __extends=this&&this.__extends||function(){var n=function(t,e){n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))n[e]=t[e]};return n(t,e)};return function(t,e){if(typeof e!=="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}();var __awaiter=this&&this.__awaiter||function(n,t,e,i){function a(n){return n instanceof e?n:new e((function(t){t(n)}))}return new(e||(e=Promise))((function(e,o){function r(n){try{s(i.next(n))}catch(n){o(n)}}function l(n){try{s(i["throw"](n))}catch(n){o(n)}}function s(n){n.done?e(n.value):a(n.value).then(r,l)}s((i=i.apply(n,t||[])).next())}))};var __generator=this&&this.__generator||function(n,t){var e={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,a,o,r;return r={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function l(n){return function(t){return s([n,t])}}function s(l){if(i)throw new TypeError("Generator is already executing.");while(r&&(r=0,l[0]&&(e=0)),e)try{if(i=1,a&&(o=l[0]&2?a["return"]:l[0]?a["throw"]||((o=a["return"])&&o.call(a),0):a.next)&&!(o=o.call(a,l[1])).done)return o;if(a=0,o)l=[l[0]&2,o.value];switch(l[0]){case 0:case 1:o=l;break;case 4:e.label++;return{value:l[1],done:false};case 5:e.label++;a=l[1];l=[0];continue;case 7:l=e.ops.pop();e.trys.pop();continue;default:if(!(o=e.trys,o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){e=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){e.label=l[1];break}if(l[0]===6&&e.label<o[1]){e.label=o[1];o=l;break}if(o&&e.label<o[2]){e.label=o[2];e.ops.push(l);break}if(o[2])e.ops.pop();e.trys.pop();continue}l=t.call(n,e)}catch(n){l=[6,n];a=0}finally{i=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};System.register(["./p-CUzS4D-E.system.js","./p-wTePExHL.system.js","./p-DAOAbG5Y.system.js","./p-zYGi2MKO.system.js","./p-BktTDSq4.system.js","./p-DkfWaTsH.system.js","./p-DPYRyPTD.system.js","./p-CTl0uAFp.system.js","./p-CDt5sRVY.system.js","./p-CrvrDFJ2.system.js","./p-CikVveBY.system.js","./p-DWgCJRpS.system.js","./p-CLfE_o7e.system.js","./p-CGJ8YYiA.system.js","./p-BsyhaiFT.system.js","./p-XFbKxieD.system.js","./p-Dh9ae0ui.system.js","./p-DLQUdT1W.system.js","./p-aqJO97M6.system.js","./p-DwgUYw84.system.js"],(function(n){"use strict";var t,e,i,a,o,r,l,s,u;return{setters:[function(a){t=a.a;e=a.c;i=a.d;n({BalSnackbarController:a.D,BalToastController:a.F,attachToConfig:a.e,balBrowser:a.a,balSnackbarController:a.E,balToastController:a.G,componentOnReady:a.d,deepReady:a.r,defaultConfig:a.f,detachFromConfig:a.h,getAppRoot:a.c,initialize:a.q,initializeBaloiseDesignSystem:a.q,isDescendant:a.t,onBalConfigChange:a.o,setupConfig:a.i,shallowReady:a.v,updateBalAllowedLanguages:a.u,updateBalAnimated:a.j,updateBalIcons:a.k,updateBalLanguage:a.l,updateBalRegion:a.m,useBalConfig:a.n,wait:a.w,waitAfterFramePaint:a.x,waitAfterIdleCallback:a.y,waitAfterLargestContentfulPaintCallback:a.z,waitForComponent:a.A,waitForDesignSystem:a.B,waitOnLoadEventCallback:a.C})},function(t){n("FileUploadRejectionReason",t.F)},function(t){n("i18nBalClose",t.i)},function(t){n({BalDate:t.B,i18nBalDate:t.i})},function(t){n("i18nBalInputStepper",t.i)},function(t){n("i18nBalLabel",t.i)},function(t){n("i18nBalTimeInput",t.i)},function(t){n("newBalStepOption",t.n)},function(t){n("newBalTabOption",t.n)},function(t){a=t.B;o=t.b;n({BalBreakpointSubject:t.c,BalBreakpointsUtil:t.d,balBreakpointSubject:t.a,balBreakpoints:t.b})},function(t){r=t.b;n({BalDevice:t.B,balDevice:t.b})},function(t){n("newBalOption",t.n)},function(t){n("scrollToFirstInvalidField",t.s)},function(t){n("INVALID_VALUE",t.I)},null,function(n){l=n.S},function(t){n("BalScrollHandler",t.B)},function(t){n("BalSwipeSubject",t.B)},function(n){s=n.g;u=n.a},null],execute:function(){var f=n("i18nBalFieldLabel",{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)"}});var c=n("newBalCheckboxOption",(function(n){return Object.assign(Object.assign({interface:"checkbox",labelHidden:false,flat:false,disabled:false,readonly:false,required:false,nonSubmit:false,invalid:false,checked:false},n),{label:"",html:n.label})}));var p=n("newBalRadioOption",(function(n){return Object.assign(Object.assign({interface:"radio",labelHidden:false,flat:false,disabled:false,readonly:false,required:false,nonSubmit:false,invalid:false},n),{label:"",html:n.label})}));var d=n("newBalOptionValue",(function(n,t,e,i){if(e===void 0){e=false}return{value:n,label:t,disabled:e,data:i}}));var m=n("newBalSingleOptionValue",(function(n,t,e){if(t===void 0){t=false}return d(n,n,t,e)}));var b=function(n){__extends(t,n);function t(){var t=n.call(this,(function(n){return n.orientationListener(t.state)}))||this;t.listener=new a;t.state=r.orientation.toObject();t.listener.connect();t.listener.add((function(){var n=r.orientation.toObject();if(!t.isEqual(n)){t.state=n;t.notify(undefined)}}));return t}t.prototype.attach=function(t){n.prototype.attach.call(this,t);t.orientationListener(this.state)};t.prototype.isEqual=function(n){return n.landscape===this.state.landscape&&n.portrait===this.state.portrait};return t}(l);n("BalOrientationSubject",b);var v=n("balOrientationSubject",new b);var h=function(){function n(){this.tag="bal-modal"}n.prototype.create=function(n){var a=this;if(typeof customElements!=="undefined"&&t.hasDocument){return customElements.whenDefined(this.tag).then((function(){var t=document.createElement(a.tag);Object.assign(t,n);e(document).appendChild(t);return new Promise((function(n){return i(t,n)}))}))}return Promise.resolve()};n.prototype.dismissAll=function(n,e){return __awaiter(this,void 0,void 0,(function(){var i;return __generator(this,(function(a){switch(a.label){case 0:if(!t.hasDocument)return[3,2];i=s(document,this.tag);return[4,Promise.all(i.map((function(t){return t.dismiss(n,e)})))];case 1:a.sent();a.label=2;case 2:return[2]}}))}))};n.prototype.dismiss=function(n,e,i){if(t.hasDocument){var a=u(document,this.tag,i);if(!a){return Promise.reject("overlay does not exist")}return a.dismiss(n,e)}return Promise.resolve(false)};n.prototype.getTop=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){if(t.hasDocument){return[2,u(document,this.tag)]}return[2]}))}))};return n}();n("BalModalController",h);var y=n("balModalController",new h);var w=n("hasTouchSupport",(function(){return r.hasTouchScreen}));var B=n("isBrowser",(function(n){if(n==="Safari"){return t.isSafari}return false}));var j=n("getPlatforms",(function(n){return o.detect()}));var C=n("isPlatform",(function(n,t){if(typeof n==="string"){t=n}if(t){return o.detect().includes(t)}return false}));var g=n("NewBalOptionValue",d);var S=n("NewBalSingleOptionValue",m)}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __extends=this&&this.__extends||function(){var n=function(t,i){n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))n[i]=t[i]};return n(t,i)};return function(t,i){if(typeof i!=="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);function e(){this.constructor=t}t.prototype=i===null?Object.create(i):(e.prototype=i.prototype,new e)}}();var __awaiter=this&&this.__awaiter||function(n,t,i,e){function r(n){return n instanceof i?n:new i((function(t){t(n)}))}return new(i||(i=Promise))((function(i,u){function o(n){try{c(e.next(n))}catch(n){u(n)}}function s(n){try{c(e["throw"](n))}catch(n){u(n)}}function c(n){n.done?i(n.value):r(n.value).then(o,s)}c((e=e.apply(n,t||[])).next())}))};var __generator=this&&this.__generator||function(n,t){var i={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},e,r,u,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(n){return function(t){return c([n,t])}}function c(s){if(e)throw new TypeError("Generator is already executing.");while(o&&(o=0,s[0]&&(i=0)),i)try{if(e=1,r&&(u=s[0]&2?r["return"]:s[0]?r["throw"]||((u=r["return"])&&u.call(r),0):r.next)&&!(u=u.call(r,s[1])).done)return u;if(r=0,u)s=[s[0]&2,u.value];switch(s[0]){case 0:case 1:u=s;break;case 4:i.label++;return{value:s[1],done:false};case 5:i.label++;r=s[1];s=[0];continue;case 7:s=i.ops.pop();i.trys.pop();continue;default:if(!(u=i.trys,u=u.length>0&&u[u.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!u||s[1]>u[0]&&s[1]<u[3])){i.label=s[1];break}if(s[0]===6&&i.label<u[1]){i.label=u[1];u=s;break}if(u&&i.label<u[2]){i.label=u[2];i.ops.push(s);break}if(u[2])i.ops.pop();i.trys.pop();continue}s=t.call(n,i)}catch(n){s=[6,n];r=0}finally{e=u=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-CUzS4D-E.system.js","./p-XFbKxieD.system.js"],(function(n){"use strict";var t,i,e,r,u;return{setters:[function(n){t=n.r;i=n.x;e=n.I},function(n){r=n.L;u=n.a}],execute:function(){n("L",c);var o=function(n){__extends(e,n);function e(){var t=n.apply(this,arguments)||this;t.waitAfterFramePrint=false;t.intersectionObserver=undefined;t.intersectionCallback=function(n){var i=n.some((function(n){return n.isIntersecting}));if(i){t.notify()}};return t}e.prototype.connect=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){switch(r.label){case 0:n.prototype.connect.call(this,e);if(typeof IntersectionObserver==="undefined"){return[2]}if(!this.waitAfterFramePrint)return[3,3];return[4,t(e)];case 1:r.sent();return[4,i()];case 2:r.sent();r.label=3;case 3:this.destroyMutationObserver();this.intersectionObserver=new IntersectionObserver(this.intersectionCallback,{root:null,threshold:.5});this.intersectionObserver.observe(e);return[2]}}))}))};e.prototype.disconnect=function(){n.prototype.disconnect.call(this);this.destroyMutationObserver()};e.prototype.destroyMutationObserver=function(){if(this.intersectionObserver!==undefined){this.intersectionObserver.disconnect();this.intersectionObserver=undefined}};return e}(r);var s=function(n){__extends(t,n);function t(){var t=n.call(this,(function(n){n.visibilityListener()}))||this;t.debouncedNotify=e((function(){return t.notify()}),50);t.listener=new o;return t}t.prototype.attach=function(t){var i=this;var e,r;n.prototype.attach.call(this,t);(e=this.listener)===null||e===void 0?void 0:e.connect(t.el);(r=this.listener)===null||r===void 0?void 0:r.add((function(){return i.debouncedNotify()}))};t.prototype.detach=function(){var t;n.prototype.detach.call(this);(t=this.listener)===null||t===void 0?void 0:t.disconnect()};return t}(u);function c(){return function(n,t,i){var e=n.connectedCallback,r=n.componentDidLoad,u=n.disconnectedCallback;n.connectedCallback=function(){if(!this._balVisibilitySubject){this._balVisibilitySubject=new s}return e&&e.call(this)};n.componentDidLoad=function(){this._balVisibilitySubject.attach(this);return r&&r.call(this)};n.disconnectedCallback=function(){if(this._balVisibilitySubject){this._balVisibilitySubject.detach();this._balVisibilitySubject=undefined}return u&&u.call(this)}}}}}}));
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
var __spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var a=0,n=t.length,i;a<n;a++){if(i||!(a in t)){if(!i)i=Array.prototype.slice.call(t,0,a);i[a]=t[a]}}return e.concat(i||Array.prototype.slice.call(t))};System.register([],(function(e){"use strict";return{execute:function(){
|
|
2
2
|
/*! @license DOMPurify 3.2.4 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.4/LICENSE */
|
|
3
|
-
var t=Object.entries,r=Object.setPrototypeOf,a=Object.isFrozen,n=Object.getPrototypeOf,i=Object.getOwnPropertyDescriptor;var o=Object.freeze,l=Object.seal,f=Object.create;var s=typeof Reflect!=="undefined"&&Reflect,u=s.apply,c=s.construct;if(!o){o=function e(t){return t}}if(!l){l=function e(t){return t}}if(!u){u=function e(t,r,a){return t.apply(r,a)}}if(!c){c=function e(t,r){return new(t.bind.apply(t,__spreadArray([void 0],r,false)))}}var p=S(Array.prototype.forEach);var m=S(Array.prototype.lastIndexOf);var d=S(Array.prototype.pop);var v=S(Array.prototype.push);var h=S(Array.prototype.splice);var g=S(String.prototype.toLowerCase);var y=S(String.prototype.toString);var b=S(String.prototype.match);var w=S(String.prototype.replace);var x=S(String.prototype.indexOf);var _=S(String.prototype.trim);var A=S(Object.prototype.hasOwnProperty);var k=S(RegExp.prototype.test);var T=E(TypeError);function S(e){return function(t){for(var r=arguments.length,a=new Array(r>1?r-1:0),n=1;n<r;n++){a[n-1]=arguments[n]}return u(e,t,a)}}function E(e){return function(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++){r[a]=arguments[a]}return c(e,r)}}function R(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:g;if(r){r(e,null)}var i=t.length;while(i--){var o=t[i];if(typeof o==="string"){var l=n(o);if(l!==o){if(!a(t)){t[i]=l}o=l}}e[o]=true}return e}function O(e){for(var t=0;t<e.length;t++){var r=A(e,t);if(!r){e[t]=null}}return e}function z(e){var r=f(null);for(var a=0,n=t(e);a<n.length;a++){var i=n[a],o=i[0],l=i[1];var s=A(e,o);if(s){if(Array.isArray(l)){r[o]=O(l)}else if(l&&typeof l==="object"&&l.constructor===Object){r[o]=z(l)}else{r[o]=l}}}return r}function L(e,t){while(e!==null){var r=i(e,t);if(r){if(r.get){return S(r.get)}if(typeof r.value==="function"){return S(r.value)}}e=n(e)}function a(){return null}return a}var D=o(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]);var j=o(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]);var M=o(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]);var F=o(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]);var I=o(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]);var C=o(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]);var N=o(["#text"]);var P=o(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]);var B=o(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]);var U=o(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]);var W=o(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]);var q=l(/\{\{[\w\W]*|[\w\W]*\}\}/gm);var Y=l(/<%[\w\W]*|[\w\W]*%>/gm);var H=l(/\$\{[\w\W]*/gm);var $=l(/^data-[\-\w.\u00B7-\uFFFF]+$/);var G=l(/^aria-[\-\w]+$/);var X=l(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i);var K=l(/^(?:\w+script|data):/i);var V=l(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g);var J=l(/^html$/i);var Q=l(/^[a-z][.\w]*(-[.\w]+)+$/i);var Z=Object.freeze({__proto__:null,ARIA_ATTR:G,ATTR_WHITESPACE:V,CUSTOM_ELEMENT:Q,DATA_ATTR:$,DOCTYPE_NAME:J,ERB_EXPR:Y,IS_ALLOWED_URI:X,IS_SCRIPT_OR_DATA:K,MUSTACHE_EXPR:q,TMPLIT_EXPR:H});var ee={element:1,text:3,progressingInstruction:7,comment:8,document:9};var te=function e(){return typeof window==="undefined"?null:window};var re=function e(t,r){if(typeof t!=="object"||typeof t.createPolicy!=="function"){return null}var a=null;var n="data-tt-policy-suffix";if(r&&r.hasAttribute(n)){a=r.getAttribute(n)}var i="dompurify"+(a?"#"+a:"");try{return t.createPolicy(i,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){console.warn("TrustedTypes policy "+i+" could not be created.");return null}};var ae=function e(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function ne(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:te();var r=function(e){return ne(e)};r.version="3.2.4";r.removed=[];if(!e||!e.document||e.document.nodeType!==ee.document||!e.Element){r.isSupported=false;return r}var a=e.document;var n=a;var i=n.currentScript;var l=e.DocumentFragment,s=e.HTMLTemplateElement,u=e.Node,c=e.Element,S=e.NodeFilter,E=e.NamedNodeMap,O=E===void 0?e.NamedNodeMap||e.MozNamedAttrMap:E,q=e.HTMLFormElement,Y=e.DOMParser,H=e.trustedTypes;var $=c.prototype;var G=L($,"cloneNode");var K=L($,"remove");var V=L($,"nextSibling");var Q=L($,"childNodes");var ie=L($,"parentNode");if(typeof s==="function"){var oe=a.createElement("template");if(oe.content&&oe.content.ownerDocument){a=oe.content.ownerDocument}}var le;var fe="";var se=a.implementation,ue=a.createNodeIterator,ce=a.createDocumentFragment,pe=a.getElementsByTagName;var me=n.importNode;var de=ae();r.isSupported=typeof t==="function"&&typeof ie==="function"&&se&&se.createHTMLDocument!==undefined;var ve=Z.MUSTACHE_EXPR,he=Z.ERB_EXPR,ge=Z.TMPLIT_EXPR,ye=Z.DATA_ATTR,be=Z.ARIA_ATTR,we=Z.IS_SCRIPT_OR_DATA,xe=Z.ATTR_WHITESPACE,_e=Z.CUSTOM_ELEMENT;var Ae=Z.IS_ALLOWED_URI;var ke=null;var Te=R({},__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([],D,true),j,true),M,true),I,true),N,true));var Se=null;var Ee=R({},__spreadArray(__spreadArray(__spreadArray(__spreadArray([],P,true),B,true),U,true),W,true));var Re=Object.seal(f(null,{tagNameCheck:{writable:true,configurable:false,enumerable:true,value:null},attributeNameCheck:{writable:true,configurable:false,enumerable:true,value:null},allowCustomizedBuiltInElements:{writable:true,configurable:false,enumerable:true,value:false}}));var Oe=null;var ze=null;var Le=true;var De=true;var je=false;var Me=true;var Fe=false;var Ie=true;var Ce=false;var Ne=false;var Pe=false;var Be=false;var Ue=false;var We=false;var qe=true;var Ye=false;var He="user-content-";var $e=true;var Ge=false;var Xe={};var Ke=null;var Ve=R({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);var Je=null;var Qe=R({},["audio","video","img","source","image","track"]);var Ze=null;var et=R({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]);var tt="http://www.w3.org/1998/Math/MathML";var rt="http://www.w3.org/2000/svg";var at="http://www.w3.org/1999/xhtml";var nt=at;var it=false;var ot=null;var lt=R({},[tt,rt,at],y);var ft=R({},["mi","mo","mn","ms","mtext"]);var st=R({},["annotation-xml"]);var ut=R({},["title","style","font","a","script"]);var ct=null;var pt=["application/xhtml+xml","text/html"];var mt="text/html";var dt=null;var vt=null;var ht=a.createElement("form");var gt=function e(t){return t instanceof RegExp||t instanceof Function};var yt=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};if(vt&&vt===t){return}if(!t||typeof t!=="object"){t={}}t=z(t);ct=pt.indexOf(t.PARSER_MEDIA_TYPE)===-1?mt:t.PARSER_MEDIA_TYPE;dt=ct==="application/xhtml+xml"?y:g;ke=A(t,"ALLOWED_TAGS")?R({},t.ALLOWED_TAGS,dt):Te;Se=A(t,"ALLOWED_ATTR")?R({},t.ALLOWED_ATTR,dt):Ee;ot=A(t,"ALLOWED_NAMESPACES")?R({},t.ALLOWED_NAMESPACES,y):lt;Ze=A(t,"ADD_URI_SAFE_ATTR")?R(z(et),t.ADD_URI_SAFE_ATTR,dt):et;Je=A(t,"ADD_DATA_URI_TAGS")?R(z(Qe),t.ADD_DATA_URI_TAGS,dt):Qe;Ke=A(t,"FORBID_CONTENTS")?R({},t.FORBID_CONTENTS,dt):Ve;Oe=A(t,"FORBID_TAGS")?R({},t.FORBID_TAGS,dt):{};ze=A(t,"FORBID_ATTR")?R({},t.FORBID_ATTR,dt):{};Xe=A(t,"USE_PROFILES")?t.USE_PROFILES:false;Le=t.ALLOW_ARIA_ATTR!==false;De=t.ALLOW_DATA_ATTR!==false;je=t.ALLOW_UNKNOWN_PROTOCOLS||false;Me=t.ALLOW_SELF_CLOSE_IN_ATTR!==false;Fe=t.SAFE_FOR_TEMPLATES||false;Ie=t.SAFE_FOR_XML!==false;Ce=t.WHOLE_DOCUMENT||false;Be=t.RETURN_DOM||false;Ue=t.RETURN_DOM_FRAGMENT||false;We=t.RETURN_TRUSTED_TYPE||false;Pe=t.FORCE_BODY||false;qe=t.SANITIZE_DOM!==false;Ye=t.SANITIZE_NAMED_PROPS||false;$e=t.KEEP_CONTENT!==false;Ge=t.IN_PLACE||false;Ae=t.ALLOWED_URI_REGEXP||X;nt=t.NAMESPACE||at;ft=t.MATHML_TEXT_INTEGRATION_POINTS||ft;st=t.HTML_INTEGRATION_POINTS||st;Re=t.CUSTOM_ELEMENT_HANDLING||{};if(t.CUSTOM_ELEMENT_HANDLING&>(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)){Re.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck}if(t.CUSTOM_ELEMENT_HANDLING&>(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)){Re.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck}if(t.CUSTOM_ELEMENT_HANDLING&&typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements==="boolean"){Re.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements}if(Fe){De=false}if(Ue){Be=true}if(Xe){ke=R({},N);Se=[];if(Xe.html===true){R(ke,D);R(Se,P)}if(Xe.svg===true){R(ke,j);R(Se,B);R(Se,W)}if(Xe.svgFilters===true){R(ke,M);R(Se,B);R(Se,W)}if(Xe.mathMl===true){R(ke,I);R(Se,U);R(Se,W)}}if(t.ADD_TAGS){if(ke===Te){ke=z(ke)}R(ke,t.ADD_TAGS,dt)}if(t.ADD_ATTR){if(Se===Ee){Se=z(Se)}R(Se,t.ADD_ATTR,dt)}if(t.ADD_URI_SAFE_ATTR){R(Ze,t.ADD_URI_SAFE_ATTR,dt)}if(t.FORBID_CONTENTS){if(Ke===Ve){Ke=z(Ke)}R(Ke,t.FORBID_CONTENTS,dt)}if($e){ke["#text"]=true}if(Ce){R(ke,["html","head","body"])}if(ke.table){R(ke,["tbody"]);delete Oe.tbody}if(t.TRUSTED_TYPES_POLICY){if(typeof t.TRUSTED_TYPES_POLICY.createHTML!=="function"){throw T('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.')}if(typeof t.TRUSTED_TYPES_POLICY.createScriptURL!=="function"){throw T('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.')}le=t.TRUSTED_TYPES_POLICY;fe=le.createHTML("")}else{if(le===undefined){le=re(H,i)}if(le!==null&&typeof fe==="string"){fe=le.createHTML("")}}if(o){o(t)}vt=t};var bt=R({},__spreadArray(__spreadArray(__spreadArray([],j,true),M,true),F,true));var wt=R({},__spreadArray(__spreadArray([],I,true),C,true));var xt=function e(t){var r=ie(t);if(!r||!r.tagName){r={namespaceURI:nt,tagName:"template"}}var a=g(t.tagName);var n=g(r.tagName);if(!ot[t.namespaceURI]){return false}if(t.namespaceURI===rt){if(r.namespaceURI===at){return a==="svg"}if(r.namespaceURI===tt){return a==="svg"&&(n==="annotation-xml"||ft[n])}return Boolean(bt[a])}if(t.namespaceURI===tt){if(r.namespaceURI===at){return a==="math"}if(r.namespaceURI===rt){return a==="math"&&st[n]}return Boolean(wt[a])}if(t.namespaceURI===at){if(r.namespaceURI===rt&&!st[n]){return false}if(r.namespaceURI===tt&&!ft[n]){return false}return!wt[a]&&(ut[a]||!bt[a])}if(ct==="application/xhtml+xml"&&ot[t.namespaceURI]){return true}return false};var _t=function e(t){v(r.removed,{element:t});try{ie(t).removeChild(t)}catch(e){K(t)}};var At=function e(t,a){try{v(r.removed,{attribute:a.getAttributeNode(t),from:a})}catch(e){v(r.removed,{attribute:null,from:a})}a.removeAttribute(t);if(t==="is"){if(Be||Ue){try{_t(a)}catch(e){}}else{try{a.setAttribute(t,"")}catch(e){}}}};var kt=function e(t){var r=null;var n=null;if(Pe){t="<remove></remove>"+t}else{var i=b(t,/^[\r\n\t ]+/);n=i&&i[0]}if(ct==="application/xhtml+xml"&&nt===at){t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>"}var o=le?le.createHTML(t):t;if(nt===at){try{r=(new Y).parseFromString(o,ct)}catch(e){}}if(!r||!r.documentElement){r=se.createDocument(nt,"template",null);try{r.documentElement.innerHTML=it?fe:o}catch(e){}}var l=r.body||r.documentElement;if(t&&n){l.insertBefore(a.createTextNode(n),l.childNodes[0]||null)}if(nt===at){return pe.call(r,Ce?"html":"body")[0]}return Ce?r.documentElement:l};var Tt=function e(t){return ue.call(t.ownerDocument||t,t,S.SHOW_ELEMENT|S.SHOW_COMMENT|S.SHOW_TEXT|S.SHOW_PROCESSING_INSTRUCTION|S.SHOW_CDATA_SECTION,null)};var St=function e(t){return t instanceof q&&(typeof t.nodeName!=="string"||typeof t.textContent!=="string"||typeof t.removeChild!=="function"||!(t.attributes instanceof O)||typeof t.removeAttribute!=="function"||typeof t.setAttribute!=="function"||typeof t.namespaceURI!=="string"||typeof t.insertBefore!=="function"||typeof t.hasChildNodes!=="function")};var Et=function e(t){return typeof u==="function"&&t instanceof u};function Rt(e,t,a){p(e,(function(e){e.call(r,t,a,vt)}))}var Ot=function e(t){var a=null;Rt(de.beforeSanitizeElements,t,null);if(St(t)){_t(t);return true}var n=dt(t.nodeName);Rt(de.uponSanitizeElement,t,{tagName:n,allowedTags:ke});if(t.hasChildNodes()&&!Et(t.firstElementChild)&&k(/<[/\w]/g,t.innerHTML)&&k(/<[/\w]/g,t.textContent)){_t(t);return true}if(t.nodeType===ee.progressingInstruction){_t(t);return true}if(Ie&&t.nodeType===ee.comment&&k(/<[/\w]/g,t.data)){_t(t);return true}if(!ke[n]||Oe[n]){if(!Oe[n]&&Lt(n)){if(Re.tagNameCheck instanceof RegExp&&k(Re.tagNameCheck,n)){return false}if(Re.tagNameCheck instanceof Function&&Re.tagNameCheck(n)){return false}}if($e&&!Ke[n]){var i=ie(t)||t.parentNode;var o=Q(t)||t.childNodes;if(o&&i){var l=o.length;for(var f=l-1;f>=0;--f){var s=G(o[f],true);s.__removalCount=(t.__removalCount||0)+1;i.insertBefore(s,V(t))}}}_t(t);return true}if(t instanceof c&&!xt(t)){_t(t);return true}if((n==="noscript"||n==="noembed"||n==="noframes")&&k(/<\/no(script|embed|frames)/i,t.innerHTML)){_t(t);return true}if(Fe&&t.nodeType===ee.text){a=t.textContent;p([ve,he,ge],(function(e){a=w(a,e," ")}));if(t.textContent!==a){v(r.removed,{element:t.cloneNode()});t.textContent=a}}Rt(de.afterSanitizeElements,t,null);return false};var zt=function e(t,r,n){if(qe&&(r==="id"||r==="name")&&(n in a||n in ht)){return false}if(De&&!ze[r]&&k(ye,r));else if(Le&&k(be,r));else if(!Se[r]||ze[r]){if(Lt(t)&&(Re.tagNameCheck instanceof RegExp&&k(Re.tagNameCheck,t)||Re.tagNameCheck instanceof Function&&Re.tagNameCheck(t))&&(Re.attributeNameCheck instanceof RegExp&&k(Re.attributeNameCheck,r)||Re.attributeNameCheck instanceof Function&&Re.attributeNameCheck(r))||r==="is"&&Re.allowCustomizedBuiltInElements&&(Re.tagNameCheck instanceof RegExp&&k(Re.tagNameCheck,n)||Re.tagNameCheck instanceof Function&&Re.tagNameCheck(n)));else{return false}}else if(Ze[r]);else if(k(Ae,w(n,xe,"")));else if((r==="src"||r==="xlink:href"||r==="href")&&t!=="script"&&x(n,"data:")===0&&Je[t]);else if(je&&!k(we,w(n,xe,"")));else if(n){return false}else;return true};var Lt=function e(t){return t!=="annotation-xml"&&b(t,_e)};var Dt=function e(t){Rt(de.beforeSanitizeAttributes,t,null);var a=t.attributes;if(!a||St(t)){return}var n={attrName:"",attrValue:"",keepAttr:true,allowedAttributes:Se,forceKeepAttr:undefined};var i=a.length;var o=function(){var e=a[i];var o=e.name,l=e.namespaceURI,f=e.value;var s=dt(o);var u=o==="value"?f:_(f);n.attrName=s;n.attrValue=u;n.keepAttr=true;n.forceKeepAttr=undefined;Rt(de.uponSanitizeAttribute,t,n);u=n.attrValue;if(Ye&&(s==="id"||s==="name")){At(o,t);u=He+u}if(Ie&&k(/((--!?|])>)|<\/(style|title)/i,u)){At(o,t);return"continue"}if(n.forceKeepAttr){return"continue"}At(o,t);if(!n.keepAttr){return"continue"}if(!Me&&k(/\/>/i,u)){At(o,t);return"continue"}if(Fe){p([ve,he,ge],(function(e){u=w(u,e," ")}))}var c=dt(t.nodeName);if(!zt(c,s,u)){return"continue"}if(le&&typeof H==="object"&&typeof H.getAttributeType==="function"){if(l);else{switch(H.getAttributeType(c,s)){case"TrustedHTML":{u=le.createHTML(u);break}case"TrustedScriptURL":{u=le.createScriptURL(u);break}}}}try{if(l){t.setAttributeNS(l,o,u)}else{t.setAttribute(o,u)}if(St(t)){_t(t)}else{d(r.removed)}}catch(e){}};while(i--){o()}Rt(de.afterSanitizeAttributes,t,null)};var jt=function e(t){var r=null;var a=Tt(t);Rt(de.beforeSanitizeShadowDOM,t,null);while(r=a.nextNode()){Rt(de.uponSanitizeShadowNode,r,null);Ot(r);Dt(r);if(r.content instanceof l){e(r.content)}}Rt(de.afterSanitizeShadowDOM,t,null)};r.sanitize=function(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var a=null;var i=null;var o=null;var f=null;it=!e;if(it){e="\x3c!--\x3e"}if(typeof e!=="string"&&!Et(e)){if(typeof e.toString==="function"){e=e.toString();if(typeof e!=="string"){throw T("dirty is not a string, aborting")}}else{throw T("toString is not a function")}}if(!r.isSupported){return e}if(!Ne){yt(t)}r.removed=[];if(typeof e==="string"){Ge=false}if(Ge){if(e.nodeName){var s=dt(e.nodeName);if(!ke[s]||Oe[s]){throw T("root node is forbidden and cannot be sanitized in-place")}}}else if(e instanceof u){a=kt("\x3c!----\x3e");i=a.ownerDocument.importNode(e,true);if(i.nodeType===ee.element&&i.nodeName==="BODY"){a=i}else if(i.nodeName==="HTML"){a=i}else{a.appendChild(i)}}else{if(!Be&&!Fe&&!Ce&&e.indexOf("<")===-1){return le&&We?le.createHTML(e):e}a=kt(e);if(!a){return Be?null:We?fe:""}}if(a&&Pe){_t(a.firstChild)}var c=Tt(Ge?e:a);while(o=c.nextNode()){Ot(o);Dt(o);if(o.content instanceof l){jt(o.content)}}if(Ge){return e}if(Be){if(Ue){f=ce.call(a.ownerDocument);while(a.firstChild){f.appendChild(a.firstChild)}}else{f=a}if(Se.shadowroot||Se.shadowrootmode){f=me.call(n,f,true)}return f}var m=Ce?a.outerHTML:a.innerHTML;if(Ce&&ke["!doctype"]&&a.ownerDocument&&a.ownerDocument.doctype&&a.ownerDocument.doctype.name&&k(J,a.ownerDocument.doctype.name)){m="<!DOCTYPE "+a.ownerDocument.doctype.name+">\n"+m}if(Fe){p([ve,he,ge],(function(e){m=w(m,e," ")}))}return le&&We?le.createHTML(m):m};r.setConfig=function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};yt(e);Ne=true};r.clearConfig=function(){vt=null;Ne=false};r.isValidAttribute=function(e,t,r){if(!vt){yt({})}var a=dt(e);var n=dt(t);return zt(a,n,r)};r.addHook=function(e,t){if(typeof t!=="function"){return}v(de[e],t)};r.removeHook=function(e,t){if(t!==undefined){var r=m(de[e],t);return r===-1?undefined:h(de[e],r,1)[0]}return d(de[e])};r.removeHooks=function(e){de[e]=[]};r.removeAllHooks=function(){de=ae()};return r}var ie=e("p",ne())}}}));
|
|
3
|
+
var t=Object.entries,r=Object.setPrototypeOf,a=Object.isFrozen,n=Object.getPrototypeOf,i=Object.getOwnPropertyDescriptor;var o=Object.freeze,l=Object.seal,f=Object.create;var u=typeof Reflect!=="undefined"&&Reflect,s=u.apply,c=u.construct;if(!o){o=function e(t){return t}}if(!l){l=function e(t){return t}}if(!s){s=function e(t,r,a){return t.apply(r,a)}}if(!c){c=function e(t,r){return new(t.bind.apply(t,__spreadArray([void 0],r,false)))}}var p=S(Array.prototype.forEach);var m=S(Array.prototype.lastIndexOf);var d=S(Array.prototype.pop);var v=S(Array.prototype.push);var h=S(Array.prototype.splice);var g=S(String.prototype.toLowerCase);var y=S(String.prototype.toString);var b=S(String.prototype.match);var w=S(String.prototype.replace);var x=S(String.prototype.indexOf);var _=S(String.prototype.trim);var A=S(Object.prototype.hasOwnProperty);var k=S(RegExp.prototype.test);var T=E(TypeError);function S(e){return function(t){for(var r=arguments.length,a=new Array(r>1?r-1:0),n=1;n<r;n++){a[n-1]=arguments[n]}return s(e,t,a)}}function E(e){return function(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++){r[a]=arguments[a]}return c(e,r)}}function R(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:g;if(r){r(e,null)}var i=t.length;while(i--){var o=t[i];if(typeof o==="string"){var l=n(o);if(l!==o){if(!a(t)){t[i]=l}o=l}}e[o]=true}return e}function O(e){for(var t=0;t<e.length;t++){var r=A(e,t);if(!r){e[t]=null}}return e}function z(e){var r=f(null);for(var a=0,n=t(e);a<n.length;a++){var i=n[a],o=i[0],l=i[1];var u=A(e,o);if(u){if(Array.isArray(l)){r[o]=O(l)}else if(l&&typeof l==="object"&&l.constructor===Object){r[o]=z(l)}else{r[o]=l}}}return r}function L(e,t){while(e!==null){var r=i(e,t);if(r){if(r.get){return S(r.get)}if(typeof r.value==="function"){return S(r.value)}}e=n(e)}function a(){return null}return a}var D=o(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]);var F=o(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]);var j=o(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]);var I=o(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]);var M=o(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]);var C=o(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]);var P=o(["#text"]);var N=o(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]);var B=o(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]);var U=o(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]);var W=o(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]);var q=l(/\{\{[\w\W]*|[\w\W]*\}\}/gm);var Y=l(/<%[\w\W]*|[\w\W]*%>/gm);var H=l(/\$\{[\w\W]*/gm);var $=l(/^data-[\-\w.\u00B7-\uFFFF]+$/);var G=l(/^aria-[\-\w]+$/);var X=l(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i);var K=l(/^(?:\w+script|data):/i);var V=l(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g);var J=l(/^html$/i);var Q=l(/^[a-z][.\w]*(-[.\w]+)+$/i);var Z=Object.freeze({__proto__:null,ARIA_ATTR:G,ATTR_WHITESPACE:V,CUSTOM_ELEMENT:Q,DATA_ATTR:$,DOCTYPE_NAME:J,ERB_EXPR:Y,IS_ALLOWED_URI:X,IS_SCRIPT_OR_DATA:K,MUSTACHE_EXPR:q,TMPLIT_EXPR:H});var ee={element:1,text:3,progressingInstruction:7,comment:8,document:9};var te=function e(){return typeof window==="undefined"?null:window};var re=function e(t,r){if(typeof t!=="object"||typeof t.createPolicy!=="function"){return null}var a=null;var n="data-tt-policy-suffix";if(r&&r.hasAttribute(n)){a=r.getAttribute(n)}var i="dompurify"+(a?"#"+a:"");try{return t.createPolicy(i,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){console.warn("TrustedTypes policy "+i+" could not be created.");return null}};var ae=function e(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function ne(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:te();var r=function(e){return ne(e)};r.version="3.2.4";r.removed=[];if(!e||!e.document||e.document.nodeType!==ee.document||!e.Element){r.isSupported=false;return r}var a=e.document;var n=a;var i=n.currentScript;var l=e.DocumentFragment,u=e.HTMLTemplateElement,s=e.Node,c=e.Element,S=e.NodeFilter,E=e.NamedNodeMap,O=E===void 0?e.NamedNodeMap||e.MozNamedAttrMap:E,q=e.HTMLFormElement,Y=e.DOMParser,H=e.trustedTypes;var $=c.prototype;var G=L($,"cloneNode");var K=L($,"remove");var V=L($,"nextSibling");var Q=L($,"childNodes");var ie=L($,"parentNode");if(typeof u==="function"){var oe=a.createElement("template");if(oe.content&&oe.content.ownerDocument){a=oe.content.ownerDocument}}var le;var fe="";var ue=a.implementation,se=a.createNodeIterator,ce=a.createDocumentFragment,pe=a.getElementsByTagName;var me=n.importNode;var de=ae();r.isSupported=typeof t==="function"&&typeof ie==="function"&&ue&&ue.createHTMLDocument!==undefined;var ve=Z.MUSTACHE_EXPR,he=Z.ERB_EXPR,ge=Z.TMPLIT_EXPR,ye=Z.DATA_ATTR,be=Z.ARIA_ATTR,we=Z.IS_SCRIPT_OR_DATA,xe=Z.ATTR_WHITESPACE,_e=Z.CUSTOM_ELEMENT;var Ae=Z.IS_ALLOWED_URI;var ke=null;var Te=R({},__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([],D,true),F,true),j,true),M,true),P,true));var Se=null;var Ee=R({},__spreadArray(__spreadArray(__spreadArray(__spreadArray([],N,true),B,true),U,true),W,true));var Re=Object.seal(f(null,{tagNameCheck:{writable:true,configurable:false,enumerable:true,value:null},attributeNameCheck:{writable:true,configurable:false,enumerable:true,value:null},allowCustomizedBuiltInElements:{writable:true,configurable:false,enumerable:true,value:false}}));var Oe=null;var ze=null;var Le=true;var De=true;var Fe=false;var je=true;var Ie=false;var Me=true;var Ce=false;var Pe=false;var Ne=false;var Be=false;var Ue=false;var We=false;var qe=true;var Ye=false;var He="user-content-";var $e=true;var Ge=false;var Xe={};var Ke=null;var Ve=R({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);var Je=null;var Qe=R({},["audio","video","img","source","image","track"]);var Ze=null;var et=R({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]);var tt="http://www.w3.org/1998/Math/MathML";var rt="http://www.w3.org/2000/svg";var at="http://www.w3.org/1999/xhtml";var nt=at;var it=false;var ot=null;var lt=R({},[tt,rt,at],y);var ft=R({},["mi","mo","mn","ms","mtext"]);var ut=R({},["annotation-xml"]);var st=R({},["title","style","font","a","script"]);var ct=null;var pt=["application/xhtml+xml","text/html"];var mt="text/html";var dt=null;var vt=null;var ht=a.createElement("form");var gt=function e(t){return t instanceof RegExp||t instanceof Function};var yt=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};if(vt&&vt===t){return}if(!t||typeof t!=="object"){t={}}t=z(t);ct=pt.indexOf(t.PARSER_MEDIA_TYPE)===-1?mt:t.PARSER_MEDIA_TYPE;dt=ct==="application/xhtml+xml"?y:g;ke=A(t,"ALLOWED_TAGS")?R({},t.ALLOWED_TAGS,dt):Te;Se=A(t,"ALLOWED_ATTR")?R({},t.ALLOWED_ATTR,dt):Ee;ot=A(t,"ALLOWED_NAMESPACES")?R({},t.ALLOWED_NAMESPACES,y):lt;Ze=A(t,"ADD_URI_SAFE_ATTR")?R(z(et),t.ADD_URI_SAFE_ATTR,dt):et;Je=A(t,"ADD_DATA_URI_TAGS")?R(z(Qe),t.ADD_DATA_URI_TAGS,dt):Qe;Ke=A(t,"FORBID_CONTENTS")?R({},t.FORBID_CONTENTS,dt):Ve;Oe=A(t,"FORBID_TAGS")?R({},t.FORBID_TAGS,dt):{};ze=A(t,"FORBID_ATTR")?R({},t.FORBID_ATTR,dt):{};Xe=A(t,"USE_PROFILES")?t.USE_PROFILES:false;Le=t.ALLOW_ARIA_ATTR!==false;De=t.ALLOW_DATA_ATTR!==false;Fe=t.ALLOW_UNKNOWN_PROTOCOLS||false;je=t.ALLOW_SELF_CLOSE_IN_ATTR!==false;Ie=t.SAFE_FOR_TEMPLATES||false;Me=t.SAFE_FOR_XML!==false;Ce=t.WHOLE_DOCUMENT||false;Be=t.RETURN_DOM||false;Ue=t.RETURN_DOM_FRAGMENT||false;We=t.RETURN_TRUSTED_TYPE||false;Ne=t.FORCE_BODY||false;qe=t.SANITIZE_DOM!==false;Ye=t.SANITIZE_NAMED_PROPS||false;$e=t.KEEP_CONTENT!==false;Ge=t.IN_PLACE||false;Ae=t.ALLOWED_URI_REGEXP||X;nt=t.NAMESPACE||at;ft=t.MATHML_TEXT_INTEGRATION_POINTS||ft;ut=t.HTML_INTEGRATION_POINTS||ut;Re=t.CUSTOM_ELEMENT_HANDLING||{};if(t.CUSTOM_ELEMENT_HANDLING&>(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)){Re.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck}if(t.CUSTOM_ELEMENT_HANDLING&>(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)){Re.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck}if(t.CUSTOM_ELEMENT_HANDLING&&typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements==="boolean"){Re.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements}if(Ie){De=false}if(Ue){Be=true}if(Xe){ke=R({},P);Se=[];if(Xe.html===true){R(ke,D);R(Se,N)}if(Xe.svg===true){R(ke,F);R(Se,B);R(Se,W)}if(Xe.svgFilters===true){R(ke,j);R(Se,B);R(Se,W)}if(Xe.mathMl===true){R(ke,M);R(Se,U);R(Se,W)}}if(t.ADD_TAGS){if(ke===Te){ke=z(ke)}R(ke,t.ADD_TAGS,dt)}if(t.ADD_ATTR){if(Se===Ee){Se=z(Se)}R(Se,t.ADD_ATTR,dt)}if(t.ADD_URI_SAFE_ATTR){R(Ze,t.ADD_URI_SAFE_ATTR,dt)}if(t.FORBID_CONTENTS){if(Ke===Ve){Ke=z(Ke)}R(Ke,t.FORBID_CONTENTS,dt)}if($e){ke["#text"]=true}if(Ce){R(ke,["html","head","body"])}if(ke.table){R(ke,["tbody"]);delete Oe.tbody}if(t.TRUSTED_TYPES_POLICY){if(typeof t.TRUSTED_TYPES_POLICY.createHTML!=="function"){throw T('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.')}if(typeof t.TRUSTED_TYPES_POLICY.createScriptURL!=="function"){throw T('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.')}le=t.TRUSTED_TYPES_POLICY;fe=le.createHTML("")}else{if(le===undefined){le=re(H,i)}if(le!==null&&typeof fe==="string"){fe=le.createHTML("")}}if(o){o(t)}vt=t};var bt=R({},__spreadArray(__spreadArray(__spreadArray([],F,true),j,true),I,true));var wt=R({},__spreadArray(__spreadArray([],M,true),C,true));var xt=function e(t){var r=ie(t);if(!r||!r.tagName){r={namespaceURI:nt,tagName:"template"}}var a=g(t.tagName);var n=g(r.tagName);if(!ot[t.namespaceURI]){return false}if(t.namespaceURI===rt){if(r.namespaceURI===at){return a==="svg"}if(r.namespaceURI===tt){return a==="svg"&&(n==="annotation-xml"||ft[n])}return Boolean(bt[a])}if(t.namespaceURI===tt){if(r.namespaceURI===at){return a==="math"}if(r.namespaceURI===rt){return a==="math"&&ut[n]}return Boolean(wt[a])}if(t.namespaceURI===at){if(r.namespaceURI===rt&&!ut[n]){return false}if(r.namespaceURI===tt&&!ft[n]){return false}return!wt[a]&&(st[a]||!bt[a])}if(ct==="application/xhtml+xml"&&ot[t.namespaceURI]){return true}return false};var _t=function e(t){v(r.removed,{element:t});try{ie(t).removeChild(t)}catch(e){K(t)}};var At=function e(t,a){try{v(r.removed,{attribute:a.getAttributeNode(t),from:a})}catch(e){v(r.removed,{attribute:null,from:a})}a.removeAttribute(t);if(t==="is"){if(Be||Ue){try{_t(a)}catch(e){}}else{try{a.setAttribute(t,"")}catch(e){}}}};var kt=function e(t){var r=null;var n=null;if(Ne){t="<remove></remove>"+t}else{var i=b(t,/^[\r\n\t ]+/);n=i&&i[0]}if(ct==="application/xhtml+xml"&&nt===at){t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>"}var o=le?le.createHTML(t):t;if(nt===at){try{r=(new Y).parseFromString(o,ct)}catch(e){}}if(!r||!r.documentElement){r=ue.createDocument(nt,"template",null);try{r.documentElement.innerHTML=it?fe:o}catch(e){}}var l=r.body||r.documentElement;if(t&&n){l.insertBefore(a.createTextNode(n),l.childNodes[0]||null)}if(nt===at){return pe.call(r,Ce?"html":"body")[0]}return Ce?r.documentElement:l};var Tt=function e(t){return se.call(t.ownerDocument||t,t,S.SHOW_ELEMENT|S.SHOW_COMMENT|S.SHOW_TEXT|S.SHOW_PROCESSING_INSTRUCTION|S.SHOW_CDATA_SECTION,null)};var St=function e(t){return t instanceof q&&(typeof t.nodeName!=="string"||typeof t.textContent!=="string"||typeof t.removeChild!=="function"||!(t.attributes instanceof O)||typeof t.removeAttribute!=="function"||typeof t.setAttribute!=="function"||typeof t.namespaceURI!=="string"||typeof t.insertBefore!=="function"||typeof t.hasChildNodes!=="function")};var Et=function e(t){return typeof s==="function"&&t instanceof s};function Rt(e,t,a){p(e,(function(e){e.call(r,t,a,vt)}))}var Ot=function e(t){var a=null;Rt(de.beforeSanitizeElements,t,null);if(St(t)){_t(t);return true}var n=dt(t.nodeName);Rt(de.uponSanitizeElement,t,{tagName:n,allowedTags:ke});if(t.hasChildNodes()&&!Et(t.firstElementChild)&&k(/<[/\w]/g,t.innerHTML)&&k(/<[/\w]/g,t.textContent)){_t(t);return true}if(t.nodeType===ee.progressingInstruction){_t(t);return true}if(Me&&t.nodeType===ee.comment&&k(/<[/\w]/g,t.data)){_t(t);return true}if(!ke[n]||Oe[n]){if(!Oe[n]&&Lt(n)){if(Re.tagNameCheck instanceof RegExp&&k(Re.tagNameCheck,n)){return false}if(Re.tagNameCheck instanceof Function&&Re.tagNameCheck(n)){return false}}if($e&&!Ke[n]){var i=ie(t)||t.parentNode;var o=Q(t)||t.childNodes;if(o&&i){var l=o.length;for(var f=l-1;f>=0;--f){var u=G(o[f],true);u.__removalCount=(t.__removalCount||0)+1;i.insertBefore(u,V(t))}}}_t(t);return true}if(t instanceof c&&!xt(t)){_t(t);return true}if((n==="noscript"||n==="noembed"||n==="noframes")&&k(/<\/no(script|embed|frames)/i,t.innerHTML)){_t(t);return true}if(Ie&&t.nodeType===ee.text){a=t.textContent;p([ve,he,ge],(function(e){a=w(a,e," ")}));if(t.textContent!==a){v(r.removed,{element:t.cloneNode()});t.textContent=a}}Rt(de.afterSanitizeElements,t,null);return false};var zt=function e(t,r,n){if(qe&&(r==="id"||r==="name")&&(n in a||n in ht)){return false}if(De&&!ze[r]&&k(ye,r));else if(Le&&k(be,r));else if(!Se[r]||ze[r]){if(Lt(t)&&(Re.tagNameCheck instanceof RegExp&&k(Re.tagNameCheck,t)||Re.tagNameCheck instanceof Function&&Re.tagNameCheck(t))&&(Re.attributeNameCheck instanceof RegExp&&k(Re.attributeNameCheck,r)||Re.attributeNameCheck instanceof Function&&Re.attributeNameCheck(r))||r==="is"&&Re.allowCustomizedBuiltInElements&&(Re.tagNameCheck instanceof RegExp&&k(Re.tagNameCheck,n)||Re.tagNameCheck instanceof Function&&Re.tagNameCheck(n)));else{return false}}else if(Ze[r]);else if(k(Ae,w(n,xe,"")));else if((r==="src"||r==="xlink:href"||r==="href")&&t!=="script"&&x(n,"data:")===0&&Je[t]);else if(Fe&&!k(we,w(n,xe,"")));else if(n){return false}else;return true};var Lt=function e(t){return t!=="annotation-xml"&&b(t,_e)};var Dt=function e(t){Rt(de.beforeSanitizeAttributes,t,null);var a=t.attributes;if(!a||St(t)){return}var n={attrName:"",attrValue:"",keepAttr:true,allowedAttributes:Se,forceKeepAttr:undefined};var i=a.length;var o=function(){var e=a[i];var o=e.name,l=e.namespaceURI,f=e.value;var u=dt(o);var s=o==="value"?f:_(f);n.attrName=u;n.attrValue=s;n.keepAttr=true;n.forceKeepAttr=undefined;Rt(de.uponSanitizeAttribute,t,n);s=n.attrValue;if(Ye&&(u==="id"||u==="name")){At(o,t);s=He+s}if(Me&&k(/((--!?|])>)|<\/(style|title)/i,s)){At(o,t);return"continue"}if(n.forceKeepAttr){return"continue"}At(o,t);if(!n.keepAttr){return"continue"}if(!je&&k(/\/>/i,s)){At(o,t);return"continue"}if(Ie){p([ve,he,ge],(function(e){s=w(s,e," ")}))}var c=dt(t.nodeName);if(!zt(c,u,s)){return"continue"}if(le&&typeof H==="object"&&typeof H.getAttributeType==="function"){if(l);else{switch(H.getAttributeType(c,u)){case"TrustedHTML":{s=le.createHTML(s);break}case"TrustedScriptURL":{s=le.createScriptURL(s);break}}}}try{if(l){t.setAttributeNS(l,o,s)}else{t.setAttribute(o,s)}if(St(t)){_t(t)}else{d(r.removed)}}catch(e){}};while(i--){o()}Rt(de.afterSanitizeAttributes,t,null)};var Ft=function e(t){var r=null;var a=Tt(t);Rt(de.beforeSanitizeShadowDOM,t,null);while(r=a.nextNode()){Rt(de.uponSanitizeShadowNode,r,null);Ot(r);Dt(r);if(r.content instanceof l){e(r.content)}}Rt(de.afterSanitizeShadowDOM,t,null)};r.sanitize=function(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var a=null;var i=null;var o=null;var f=null;it=!e;if(it){e="\x3c!--\x3e"}if(typeof e!=="string"&&!Et(e)){if(typeof e.toString==="function"){e=e.toString();if(typeof e!=="string"){throw T("dirty is not a string, aborting")}}else{throw T("toString is not a function")}}if(!r.isSupported){return e}if(!Pe){yt(t)}r.removed=[];if(typeof e==="string"){Ge=false}if(Ge){if(e.nodeName){var u=dt(e.nodeName);if(!ke[u]||Oe[u]){throw T("root node is forbidden and cannot be sanitized in-place")}}}else if(e instanceof s){a=kt("\x3c!----\x3e");i=a.ownerDocument.importNode(e,true);if(i.nodeType===ee.element&&i.nodeName==="BODY"){a=i}else if(i.nodeName==="HTML"){a=i}else{a.appendChild(i)}}else{if(!Be&&!Ie&&!Ce&&e.indexOf("<")===-1){return le&&We?le.createHTML(e):e}a=kt(e);if(!a){return Be?null:We?fe:""}}if(a&&Ne){_t(a.firstChild)}var c=Tt(Ge?e:a);while(o=c.nextNode()){Ot(o);Dt(o);if(o.content instanceof l){Ft(o.content)}}if(Ge){return e}if(Be){if(Ue){f=ce.call(a.ownerDocument);while(a.firstChild){f.appendChild(a.firstChild)}}else{f=a}if(Se.shadowroot||Se.shadowrootmode){f=me.call(n,f,true)}return f}var m=Ce?a.outerHTML:a.innerHTML;if(Ce&&ke["!doctype"]&&a.ownerDocument&&a.ownerDocument.doctype&&a.ownerDocument.doctype.name&&k(J,a.ownerDocument.doctype.name)){m="<!DOCTYPE "+a.ownerDocument.doctype.name+">\n"+m}if(Ie){p([ve,he,ge],(function(e){m=w(m,e," ")}))}return le&&We?le.createHTML(m):m};r.setConfig=function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};yt(e);Pe=true};r.clearConfig=function(){vt=null;Pe=false};r.isValidAttribute=function(e,t,r){if(!vt){yt({})}var a=dt(e);var n=dt(t);return zt(a,n,r)};r.addHook=function(e,t){if(typeof t!=="function"){return}v(de[e],t)};r.removeHook=function(e,t){if(t!==undefined){var r=m(de[e],t);return r===-1?undefined:h(de[e],r,1)[0]}return d(de[e])};r.removeHooks=function(e){de[e]=[]};r.removeAllHooks=function(){de=ae()};return r}var ie=ne();var oe=e("s",(function(e){return ie.sanitize(e,{USE_PROFILES:{svg:true},FORBID_ATTR:["height","width"]})}))}}}));
|