@baloise/ds-core 17.2.1 → 17.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/bal-accordion.js +1 -1
- package/components/bal-app.js +4 -4
- package/components/bal-button2.js +3 -11
- package/components/bal-carousel-item.js +117 -1
- package/components/bal-carousel.js +261 -1
- package/components/bal-checkbox-button.js +1 -1
- package/components/bal-checkbox-group.js +2 -27
- package/components/bal-checkbox2.js +3 -16
- package/components/bal-date.js +3 -28
- package/components/bal-dropdown2.js +2 -2
- package/components/bal-field.js +1 -1
- package/components/bal-file-upload.js +5 -12
- package/components/bal-footer.js +1 -1
- package/components/bal-icon2.js +1 -13
- package/components/bal-input-date2.js +4 -17
- package/components/bal-input-group2.js +1 -1
- package/components/bal-input-slider.js +5 -19
- package/components/bal-input-stepper.js +5 -18
- package/components/bal-input.js +3 -16
- package/components/bal-label2.js +1 -1
- package/components/bal-list-item-accordion-body2.js +4 -4
- package/components/bal-list-item-accordion-head2.js +2 -2
- package/components/bal-list-item-content2.js +2 -2
- package/components/bal-list-item-icon2.js +2 -2
- package/components/bal-list-item-subtitle2.js +1 -1
- package/components/bal-list-item-title2.js +1 -1
- package/components/bal-list-item2.js +1 -1
- package/components/bal-list2.js +1 -1
- package/components/bal-logo2.js +2 -2
- package/components/bal-modal-body.js +1 -1
- package/components/bal-modal-header.js +1 -1
- package/components/bal-modal.js +7 -33
- package/components/bal-nav-link-grid-col2.js +1 -1
- package/components/bal-nav-link-grid2.js +1 -1
- package/components/bal-nav-link-group.js +1 -1
- package/components/bal-nav-link2.js +2 -2
- package/components/bal-nav-menu-bar2.js +1 -1
- package/components/bal-nav-menu-flyout2.js +1 -1
- package/components/bal-nav-meta-bar2.js +2 -9
- package/components/bal-nav.js +52 -125
- package/components/bal-navbar-brand.js +5 -1
- package/components/bal-navbar-menu-end.js +1 -1
- package/components/bal-navbar-menu-start.js +1 -1
- package/components/bal-navbar-menu.js +2 -2
- package/components/bal-navbar.js +1 -1
- package/components/bal-notices.js +2 -2
- package/components/bal-notification.js +1 -1
- package/components/bal-number-input.js +3 -16
- package/components/bal-option-list.js +3 -16
- package/components/bal-option2.js +2 -9
- package/components/bal-pagination.js +311 -1
- package/components/bal-popover-content2.js +1 -1
- package/components/bal-popover2.js +4 -29
- package/components/bal-popup.js +4 -35
- package/components/bal-progress-bar.js +2 -2
- package/components/bal-radio-button.js +2 -2
- package/components/bal-radio-group.js +2 -33
- package/components/bal-radio2.js +3 -10
- package/components/bal-segment-item.js +2 -2
- package/components/bal-segment.js +4 -23
- package/components/bal-select-option.js +45 -1
- package/components/bal-select.js +847 -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 +3 -3
- 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 +3 -3
- package/components/bal-stage.js +1 -1
- package/components/bal-step-item.js +2 -2
- package/components/bal-steps.js +12 -56
- package/components/bal-tab-item.js +2 -2
- package/components/bal-table.js +1 -1
- package/components/bal-tabs2.js +179 -230
- package/components/bal-tag-group.js +1 -1
- package/components/bal-tag2.js +1 -1
- package/components/bal-text2.js +2 -2
- package/components/bal-textarea.js +3 -17
- package/components/bal-time-input.js +3 -16
- 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 +2 -2
- package/components/focus.decorator.js +1 -1
- package/components/helpers.js +33 -3
- package/components/index.js +2 -2
- package/components/keyboard.helpers.js +7 -1
- package/components/mutation.decorator.js +17 -14
- package/components/overlays.js +1 -1
- package/components/resize.decorator.js +21 -5
- package/components/string.js +12 -0
- package/components/swipe.subject.js +2 -2
- package/components/swiper.util.js +434 -0
- package/components/tokens.esm.js +1 -1
- package/dist/baloise-design-system/baloise-design-system.esm.js +1 -1
- package/dist/baloise-design-system/baloise-design-system.js +1 -1
- package/dist/baloise-design-system/index.esm.js +1 -1
- package/dist/baloise-design-system/{p-d8420ad3d5.system.entry.js → p-04ecae6997.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-af747e55e6.entry.js → p-05986dc964.entry.js} +1 -1
- package/dist/baloise-design-system/p-08b52f4a0b.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-9d3f19c6af.system.entry.js → p-0933f23da2.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-1cb1fb71d4.system.entry.js → p-0a22b25b5b.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-65b542bd.system.js → p-0e323fe0.system.js} +1 -1
- package/dist/baloise-design-system/p-1050501432.entry.js +1 -0
- package/dist/baloise-design-system/p-10ebc871f4.system.entry.js +1 -0
- package/dist/baloise-design-system/p-12ff7815.js +1 -0
- package/dist/baloise-design-system/p-1334e37be0.system.entry.js +1 -0
- package/dist/baloise-design-system/p-16baa62182.system.entry.js +1 -0
- package/dist/baloise-design-system/p-18267b1371.system.entry.js +1 -0
- package/dist/baloise-design-system/p-19162db1a6.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-1e344a8c28.system.entry.js → p-1ae4dca673.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-1b281c808f.entry.js +1 -0
- package/dist/baloise-design-system/{p-17c73b8f48.system.entry.js → p-1e726ce985.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-e2ba4d18bc.system.entry.js → p-1f762ec5aa.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-21f87590.js +1 -0
- package/dist/baloise-design-system/p-24e594cd49.entry.js +1 -0
- package/dist/baloise-design-system/{p-00281d6b.js → p-251565c4.js} +1 -1
- package/dist/baloise-design-system/p-26ee09df4f.entry.js +1 -0
- package/dist/baloise-design-system/p-27a8f7d1e4.system.entry.js +1 -0
- package/dist/baloise-design-system/p-296c7825b7.entry.js +1 -0
- package/dist/baloise-design-system/p-29b008f003.entry.js +1 -0
- package/dist/baloise-design-system/p-2a8e0e7149.entry.js +1 -0
- package/dist/baloise-design-system/p-2ccbe55a.js +2 -0
- package/dist/baloise-design-system/{p-dfcca29bc9.system.entry.js → p-2d4ebe6538.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-54c8a63b7c.system.entry.js → p-2db0f14a2d.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-a898208e.system.js → p-2e830170.system.js} +1 -1
- package/dist/baloise-design-system/p-2ee0b73b2a.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-b136739bec.entry.js → p-2f23758d56.entry.js} +1 -1
- package/dist/baloise-design-system/{p-353ce7cb84.system.entry.js → p-31b6055d92.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-345ec2f4.system.js +1 -0
- package/dist/baloise-design-system/p-35115c32f2.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-802c6111.js → p-3541dd16.js} +1 -1
- package/dist/baloise-design-system/p-356f75fd58.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-296b12e3a9.entry.js → p-379b877373.entry.js} +1 -1
- package/dist/baloise-design-system/{p-35120ab6.system.js → p-3921f381.system.js} +1 -1
- package/dist/baloise-design-system/{p-c486a8a8ed.entry.js → p-3928dcab54.entry.js} +1 -1
- package/dist/baloise-design-system/p-39d3eeef8e.entry.js +1 -0
- package/dist/baloise-design-system/{p-7d63b70a40.system.entry.js → p-3a93f5710e.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-3ab7fdddee.entry.js +1 -0
- package/dist/baloise-design-system/{p-1c09c9b0.js → p-3df52a1f.js} +1 -1
- package/dist/baloise-design-system/p-42f532a0a8.entry.js +1 -0
- package/dist/baloise-design-system/p-455872a1.system.js +1 -0
- package/dist/baloise-design-system/{p-9e2730c56b.system.entry.js → p-48bb3dae67.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-4b6481e692.entry.js → p-4a746f645b.entry.js} +1 -1
- package/dist/baloise-design-system/{p-bf139fe5.system.js → p-4a80e2c1.system.js} +1 -1
- package/dist/baloise-design-system/{p-39ad885d73.entry.js → p-4ba2983131.entry.js} +1 -1
- package/dist/baloise-design-system/p-4d67c12e48.system.entry.js +1 -0
- package/dist/baloise-design-system/p-4e642b63.system.js +1 -0
- package/dist/baloise-design-system/{p-dafb9ede.system.js → p-5071d817.system.js} +1 -1
- package/dist/baloise-design-system/p-524edfe610.system.entry.js +1 -0
- package/dist/baloise-design-system/p-52cad6cf9f.entry.js +1 -0
- package/dist/baloise-design-system/{p-7eaff7954d.entry.js → p-54b7eb9ee0.entry.js} +1 -1
- package/dist/baloise-design-system/p-54d9711a77.system.entry.js +1 -0
- package/dist/baloise-design-system/p-552a2c2dbe.entry.js +1 -0
- package/dist/baloise-design-system/{p-d1ec4d6e.system.js → p-56cf1ab1.system.js} +1 -1
- package/dist/baloise-design-system/{p-8096d040b2.system.entry.js → p-56d4310416.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-589e41e466.entry.js +1 -0
- package/dist/baloise-design-system/p-58a0e8df48.entry.js +1 -0
- package/dist/baloise-design-system/{p-30f41bab1a.system.entry.js → p-5b6ee3b824.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-374ce10b98.system.entry.js → p-5b85dec39b.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-c589d05bc6.system.entry.js → p-5d0768fd46.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-9e103abfe5.entry.js → p-60f5e5faa6.entry.js} +1 -1
- package/dist/baloise-design-system/p-66d49670b0.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-6fb26bd060.system.entry.js → p-66f6b46fd4.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-67d61a81.js +1 -0
- package/dist/baloise-design-system/p-68e05bd5.js +1 -0
- package/dist/baloise-design-system/{p-63793834ec.entry.js → p-6933b37a08.entry.js} +1 -1
- package/dist/baloise-design-system/p-699a918f.js +1 -0
- package/dist/baloise-design-system/{p-06d357bd.js → p-6b79e568.js} +1 -1
- package/dist/baloise-design-system/{p-85b6c500d8.entry.js → p-6c85b9106b.entry.js} +1 -1
- package/dist/baloise-design-system/p-6cdd068206.system.entry.js +1 -0
- package/dist/baloise-design-system/p-70f7b546.system.js +1 -0
- package/dist/baloise-design-system/{p-f8d828383b.system.entry.js → p-713640e3ac.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-71a30669ba.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-063f4fc96f.system.entry.js → p-72312d33a3.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-7256aa5d97.entry.js +1 -0
- package/dist/baloise-design-system/p-761cb0e801.system.entry.js +1 -0
- package/dist/baloise-design-system/p-770f4365f6.system.entry.js +1 -0
- package/dist/baloise-design-system/p-7961e095.system.js +2 -0
- package/dist/baloise-design-system/{p-b8658ffb85.system.entry.js → p-79f753d617.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-7d1e18d645.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-63b52c0f.js → p-81894fe8.js} +1 -1
- package/dist/baloise-design-system/p-81a3bee001.entry.js +1 -0
- package/dist/baloise-design-system/p-8227e41299.entry.js +1 -0
- package/dist/baloise-design-system/p-8360204072.entry.js +1 -0
- package/dist/baloise-design-system/{p-61b87619ac.system.entry.js → p-83ccf6e2e2.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-8b8d19171d.entry.js → p-86244838e4.entry.js} +1 -1
- package/dist/baloise-design-system/{p-3508444fc8.entry.js → p-878cb7914d.entry.js} +1 -1
- package/dist/baloise-design-system/p-8805022d10.entry.js +1 -0
- package/dist/baloise-design-system/{p-6c3a60ddf6.entry.js → p-8f1c2e77b6.entry.js} +1 -1
- package/dist/baloise-design-system/{p-b0fd473a.system.js → p-8f217b03.system.js} +1 -1
- package/dist/baloise-design-system/p-90a51218.js +1 -0
- package/dist/baloise-design-system/{p-8ac5772a60.system.entry.js → p-90a9f56d71.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-29273a2be9.entry.js → p-92e27ad87b.entry.js} +1 -1
- package/dist/baloise-design-system/p-932a19ea57.entry.js +1 -0
- package/dist/baloise-design-system/{p-c72bd76c.system.js → p-936070bf.system.js} +1 -1
- package/dist/baloise-design-system/{p-16ff8c81bf.entry.js → p-95bf3ca0ae.entry.js} +1 -1
- package/dist/baloise-design-system/p-9618956a56.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-c472c7cf16.system.entry.js → p-97cd0b900d.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-97f3a682.system.js +1 -0
- package/dist/baloise-design-system/p-99a5ad67c2.entry.js +1 -0
- package/dist/baloise-design-system/p-9bba4874f6.entry.js +1 -0
- package/dist/baloise-design-system/{p-51fa7a76.js → p-9db35d91.js} +1 -1
- package/dist/baloise-design-system/p-a2090a9d.system.js +1 -0
- package/dist/baloise-design-system/{p-6d27c4949f.system.entry.js → p-a33f51bca5.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-a5ea24121d.entry.js +1 -0
- package/dist/baloise-design-system/{p-98267a7765.entry.js → p-a679bf1c24.entry.js} +1 -1
- package/dist/baloise-design-system/{p-9b8ca7ead8.entry.js → p-a71cc6d652.entry.js} +1 -1
- package/dist/baloise-design-system/{p-5b78557886.entry.js → p-a7bbafcf3c.entry.js} +1 -1
- package/dist/baloise-design-system/{p-98a58cff41.system.entry.js → p-aa101747b4.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-486eb96d.system.js → p-aa26b71b.system.js} +1 -1
- package/dist/baloise-design-system/{p-678ebde2de.entry.js → p-aeca345ebb.entry.js} +1 -1
- package/dist/baloise-design-system/p-b0cdf73dcc.system.entry.js +1 -0
- package/dist/baloise-design-system/p-b1d0256f19.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-c2157cabd4.entry.js → p-b2198343bf.entry.js} +1 -1
- package/dist/baloise-design-system/p-b77d63ca25.entry.js +1 -0
- package/dist/baloise-design-system/{p-a4b4b9c642.system.entry.js → p-b7f9f79521.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-579855c6.system.js → p-b96fd49d.system.js} +1 -1
- package/dist/baloise-design-system/p-bb0a588d09.system.entry.js +1 -0
- package/dist/baloise-design-system/p-bb7183cd00.entry.js +1 -0
- package/dist/baloise-design-system/{p-682a1550e1.system.entry.js → p-bcf4265372.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-bfde7642ba.entry.js +1 -0
- package/dist/baloise-design-system/p-c1fcce934b.entry.js +1 -0
- package/dist/baloise-design-system/p-c353a1861c.system.entry.js +1 -0
- package/dist/baloise-design-system/p-c642582c09.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-7607c59d.js → p-cad154ad.js} +1 -1
- package/dist/baloise-design-system/p-ccd2ef1106.entry.js +1 -0
- package/dist/baloise-design-system/p-cd9be615a4.entry.js +1 -0
- package/dist/baloise-design-system/{p-7684efd8.js → p-d12639bf.js} +1 -1
- package/dist/baloise-design-system/p-d42f0351.system.js +1 -0
- package/dist/baloise-design-system/{p-e0e123ffec.system.entry.js → p-d56a7e63df.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-70ff6660e5.system.entry.js → p-d67d2979ad.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-dc98854c.js +1 -0
- package/dist/baloise-design-system/p-e0377a6d84.entry.js +1 -0
- package/dist/baloise-design-system/{p-2af8b73858.entry.js → p-e099fd9574.entry.js} +1 -1
- package/dist/baloise-design-system/{p-c7e93ad3c1.entry.js → p-e21ccd9856.entry.js} +1 -1
- package/dist/baloise-design-system/{p-cd5cbb0462.system.entry.js → p-e393d63f5a.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-e430294632.entry.js +1 -0
- package/dist/baloise-design-system/{p-4e75ee3c87.system.entry.js → p-e4c30a31a7.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-e3167218.js → p-e53217f8.js} +1 -1
- package/dist/baloise-design-system/{p-f1c41da029.entry.js → p-e8382bd4a9.entry.js} +1 -1
- package/dist/baloise-design-system/{p-af3fb420b3.system.entry.js → p-ea27183b2a.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-533956b7.system.js → p-ed32b0b9.system.js} +1 -1
- package/dist/baloise-design-system/p-f2c398a3.system.js +1 -0
- package/dist/baloise-design-system/{p-4d84f90534.entry.js → p-f39958528f.entry.js} +1 -1
- package/dist/baloise-design-system/p-fabb559661.entry.js +1 -0
- package/dist/baloise-design-system/p-fbb3f0576d.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-c416afcd52.entry.js → p-fd357a0c70.entry.js} +1 -1
- package/dist/baloise-design-system/{p-ac2b4a256d.entry.js → p-fea450f617.entry.js} +1 -1
- package/dist/baloise-design-system/p-ff46a92a47.system.entry.js +1 -0
- package/dist/baloise-design-system/p-ff7903eb.js +1 -0
- package/dist/cjs/{app-globals-661b320a.js → app-globals-a3f2765f.js} +1 -1
- package/dist/cjs/bal-accordion_4.cjs.entry.js +4 -4
- package/dist/cjs/bal-app.cjs.entry.js +5 -5
- package/dist/cjs/bal-badge.cjs.entry.js +1 -1
- package/dist/cjs/bal-button_2.cjs.entry.js +3 -11
- package/dist/cjs/bal-card_6.cjs.entry.js +1 -1
- package/dist/cjs/bal-carousel_2.cjs.entry.js +88 -307
- package/dist/cjs/bal-checkbox-button.cjs.entry.js +4 -4
- package/dist/cjs/bal-checkbox_2.cjs.entry.js +7 -44
- package/dist/cjs/bal-close.cjs.entry.js +1 -1
- 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 +3 -3
- package/dist/cjs/bal-date-calendar_2.cjs.entry.js +7 -20
- package/dist/cjs/bal-date.cjs.entry.js +6 -31
- package/dist/cjs/bal-divider.cjs.entry.js +1 -1
- package/dist/cjs/bal-dropdown.cjs.entry.js +5 -5
- package/dist/cjs/bal-field_5.cjs.entry.js +3 -3
- package/dist/cjs/bal-file-upload.cjs.entry.js +7 -14
- package/dist/cjs/bal-footer.cjs.entry.js +3 -3
- package/dist/cjs/bal-form-col_2.cjs.entry.js +1 -1
- package/dist/cjs/bal-form.cjs.entry.js +2 -2
- package/dist/cjs/bal-heading_2.cjs.entry.js +3 -3
- package/dist/cjs/bal-hint_5.cjs.entry.js +8 -33
- package/dist/cjs/bal-icon.cjs.entry.js +3 -14
- package/dist/cjs/bal-input-group.cjs.entry.js +2 -2
- package/dist/cjs/bal-input-slider.cjs.entry.js +6 -20
- package/dist/cjs/bal-input-stepper.cjs.entry.js +6 -19
- package/dist/cjs/bal-input.cjs.entry.js +4 -17
- package/dist/cjs/bal-label.cjs.entry.js +2 -2
- package/dist/cjs/bal-list_8.cjs.entry.js +19 -19
- package/dist/cjs/bal-logo.cjs.entry.js +6 -6
- package/dist/cjs/bal-modal_3.cjs.entry.js +10 -36
- package/dist/cjs/bal-nav_8.cjs.entry.js +18 -37
- package/dist/cjs/bal-navbar_5.cjs.entry.js +13 -10
- package/dist/cjs/bal-notices_3.cjs.entry.js +5 -5
- package/dist/cjs/bal-notification.cjs.entry.js +2 -2
- package/dist/cjs/bal-number-input.cjs.entry.js +4 -17
- package/dist/cjs/bal-option_2.cjs.entry.js +6 -25
- package/dist/cjs/bal-pagination.cjs.entry.js +9 -9
- package/dist/cjs/bal-popup.cjs.entry.js +6 -37
- package/dist/cjs/bal-progress-bar.cjs.entry.js +7 -7
- package/dist/cjs/bal-radio-button.cjs.entry.js +5 -5
- package/dist/cjs/bal-radio_2.cjs.entry.js +7 -44
- package/dist/cjs/bal-segment_2.cjs.entry.js +11 -30
- package/dist/cjs/bal-select_2.cjs.entry.js +10 -29
- 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 +4 -4
- package/dist/cjs/bal-stack.cjs.entry.js +2 -2
- package/dist/cjs/bal-stage_6.cjs.entry.js +10 -10
- package/dist/cjs/bal-step-item.cjs.entry.js +3 -3
- package/dist/cjs/bal-steps.cjs.entry.js +15 -11
- package/dist/cjs/bal-tab-item_2.cjs.entry.js +172 -162
- 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 +4 -18
- package/dist/cjs/bal-time-input.cjs.entry.js +4 -17
- package/dist/cjs/bal-tooltip.cjs.entry.js +4 -4
- package/dist/cjs/baloise-design-system.cjs.js +5 -5
- package/dist/cjs/{breakpoints.decorator-2c97bb36.js → breakpoints.decorator-fb08c6d2.js} +1 -1
- package/dist/cjs/{breakpoints.subject-f3104eb9.js → breakpoints.subject-0db232c6.js} +2 -2
- package/dist/cjs/{element-states.decorator-5aa9bf46.js → element-states.decorator-e2bc15ed.js} +1 -1
- package/dist/cjs/{floating-ui-9f03e1cf.js → floating-ui-24577c09.js} +2 -2
- package/dist/cjs/{focus.decorator-ec3a858c.js → focus.decorator-b93456af.js} +1 -1
- package/dist/cjs/{form-input-35653e8f.js → form-input-e4fdf58e.js} +1 -1
- package/dist/cjs/{helpers-393c2183.js → helpers-94660ab2.js} +34 -3
- package/dist/cjs/{index-96c178a6.js → index-84f42282.js} +284 -163
- package/dist/cjs/index.cjs.js +8 -7
- package/dist/cjs/{initialize-6421e1c1.js → initialize-367b85e5.js} +2 -2
- package/dist/cjs/{keyboard.helpers-3c105b0c.js → keyboard.helpers-2093e793.js} +7 -0
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{mutation.decorator-5ac1e198.js → mutation.decorator-a000b7ef.js} +17 -14
- package/dist/cjs/{overlays-e6d14274.js → overlays-4c465543.js} +1 -1
- package/dist/cjs/{resize.decorator-981b6817.js → resize.decorator-62d31afa.js} +21 -5
- package/dist/cjs/{swipe.decorator-391a0941.js → swipe.decorator-447ae00e.js} +1 -1
- package/dist/cjs/{swipe.subject-48bf62a1.js → swipe.subject-6deb82da.js} +2 -2
- package/dist/cjs/swiper.util-2c1a9dd3.js +450 -0
- package/dist/cjs/{tokens.esm-dbef942e.js → tokens.esm-5afdc559.js} +1 -1
- package/dist/cjs/{window-resize.decorator-69ff6e4c.js → window-resize.decorator-46199538.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/bal-accordion/bal-accordion-details/bal-accordion-details.js +6 -0
- package/dist/collection/components/bal-accordion/bal-accordion-summary/bal-accordion-summary.js +6 -0
- package/dist/collection/components/bal-accordion/bal-accordion-trigger/bal-accordion-trigger.js +20 -0
- package/dist/collection/components/bal-accordion/bal-accordion.js +16 -0
- package/dist/collection/components/bal-app/bal-app.js +8 -4
- package/dist/collection/components/bal-badge/bal-badge.js +8 -0
- package/dist/collection/components/bal-button/bal-button-group/bal-button-group.js +6 -0
- package/dist/collection/components/bal-button/bal-button.js +60 -11
- package/dist/collection/components/bal-card/bal-card-actions/bal-card-actions.js +2 -0
- package/dist/collection/components/bal-card/bal-card-button/bal-card-button.js +14 -0
- package/dist/collection/components/bal-card/bal-card-subtitle/bal-card-subtitle.js +6 -0
- package/dist/collection/components/bal-card/bal-card-title/bal-card-title.js +2 -0
- package/dist/collection/components/bal-card/bal-card.js +18 -0
- package/dist/collection/components/bal-carousel/bal-carousel-item/bal-carousel-item.js +47 -39
- package/dist/collection/components/bal-carousel/bal-carousel.css +1 -1
- package/dist/collection/components/bal-carousel/bal-carousel.js +132 -228
- package/dist/collection/components/bal-carousel/controls/tab-control.js +8 -1
- package/dist/collection/components/bal-checkbox/bal-checkbox-button/bal-checkbox-button.js +14 -0
- package/dist/collection/components/bal-checkbox/bal-checkbox-group/bal-checkbox-group.js +58 -26
- package/dist/collection/components/bal-checkbox/bal-checkbox.js +50 -14
- package/dist/collection/components/bal-close/bal-close.js +4 -0
- package/dist/collection/components/bal-content/bal-content.js +10 -0
- package/dist/collection/components/bal-data/bal-data-item/bal-data-item.js +4 -0
- package/dist/collection/components/bal-data/bal-data-label/bal-data-label.js +2 -0
- package/dist/collection/components/bal-data/bal-data-value/bal-data-value.js +6 -0
- package/dist/collection/components/bal-data/bal-data.js +4 -0
- package/dist/collection/components/bal-date/bal-date-calendar/bal-date-calendar.js +14 -0
- package/dist/collection/components/bal-date/bal-date-calendar-cell/bal-date-calendar-cell.js +16 -0
- package/dist/collection/components/bal-date/bal-date.js +68 -26
- package/dist/collection/components/bal-divider/bal-divider.js +8 -0
- package/dist/collection/components/bal-dropdown/bal-dropdown.js +40 -0
- package/dist/collection/components/bal-field/bal-field-control/bal-field-control.js +8 -0
- package/dist/collection/components/bal-field/bal-field-hint/bal-field-hint.js +6 -0
- package/dist/collection/components/bal-field/bal-field-label/bal-field-label.js +16 -0
- package/dist/collection/components/bal-field/bal-field-message/bal-field-message.js +10 -0
- package/dist/collection/components/bal-field/bal-field.js +14 -0
- package/dist/collection/components/bal-file-upload/bal-file-upload.js +46 -12
- package/dist/collection/components/bal-footer/bal-footer.js +8 -0
- package/dist/collection/components/bal-form/bal-form.js +6 -0
- package/dist/collection/components/bal-form-grid/bal-form-col/bal-form-col.js +2 -0
- package/dist/collection/components/bal-heading/bal-heading.js +18 -0
- package/dist/collection/components/bal-hint/bal-hint.js +4 -0
- package/dist/collection/components/bal-icon/bal-icon.js +26 -14
- package/dist/collection/components/bal-input/bal-input-date/bal-input-date.js +45 -15
- package/dist/collection/components/bal-input/bal-input.js +74 -14
- package/dist/collection/components/bal-input-group/bal-input-group.js +7 -1
- package/dist/collection/components/bal-input-slider/bal-input-slider.js +44 -17
- package/dist/collection/components/bal-input-stepper/bal-input-stepper.js +38 -16
- package/dist/collection/components/bal-label/bal-label.js +27 -1
- package/dist/collection/components/bal-list/bal-list-item/bal-list-item.js +16 -0
- package/dist/collection/components/bal-list/bal-list-item-accordion-body/bal-list-item-accordion-body.js +9 -3
- package/dist/collection/components/bal-list/bal-list-item-accordion-head/bal-list-item-accordion-head.js +6 -2
- package/dist/collection/components/bal-list/bal-list-item-content/bal-list-item-content.js +4 -2
- package/dist/collection/components/bal-list/bal-list-item-icon/bal-list-item-icon.js +4 -2
- package/dist/collection/components/bal-list/bal-list-item-subtitle/bal-list-item-subtitle.js +1 -1
- package/dist/collection/components/bal-list/bal-list-item-title/bal-list-item-title.js +5 -1
- package/dist/collection/components/bal-list/bal-list.js +11 -1
- package/dist/collection/components/bal-logo/bal-logo.js +8 -2
- package/dist/collection/components/bal-modal/bal-modal-body/bal-modal-body.js +1 -1
- package/dist/collection/components/bal-modal/bal-modal-header/bal-modal-header.js +1 -1
- package/dist/collection/components/bal-modal/bal-modal.js +58 -33
- package/dist/collection/components/bal-nav/bal-nav-link/bal-nav-link.js +12 -2
- package/dist/collection/components/bal-nav/bal-nav-link-grid/bal-nav-link-grid.js +1 -1
- package/dist/collection/components/bal-nav/bal-nav-link-grid-col/bal-nav-link-grid-col.js +3 -1
- package/dist/collection/components/bal-nav/bal-nav-link-group/bal-nav-link-group.js +3 -1
- package/dist/collection/components/bal-nav/bal-nav-menu-bar/bal-nav-menu-bar.js +5 -1
- package/dist/collection/components/bal-nav/bal-nav-menu-flyout/bal-nav-menu-flyout.js +3 -1
- package/dist/collection/components/bal-nav/bal-nav-meta-bar/bal-nav-meta-bar.js +18 -8
- package/dist/collection/components/bal-nav/bal-nav.css +1 -1
- package/dist/collection/components/bal-nav/bal-nav.js +24 -16
- package/dist/collection/components/bal-navbar/bal-navbar-brand/bal-navbar-brand.js +19 -1
- package/dist/collection/components/bal-navbar/bal-navbar-menu/bal-navbar-menu.js +3 -1
- package/dist/collection/components/bal-navbar/bal-navbar-menu-end/bal-navbar-menu-end.js +3 -1
- package/dist/collection/components/bal-navbar/bal-navbar-menu-start/bal-navbar-menu-start.js +3 -1
- package/dist/collection/components/bal-navbar/bal-navbar.js +7 -1
- package/dist/collection/components/bal-notices/bal-notices.js +4 -2
- package/dist/collection/components/bal-notification/bal-notification.js +3 -1
- package/dist/collection/components/bal-number-input/bal-number-input.js +46 -14
- package/dist/collection/components/bal-option/bal-option.js +26 -8
- package/dist/collection/components/bal-option-list/bal-option-list.js +30 -14
- package/dist/collection/components/bal-pagination/bal-pagination.js +22 -4
- package/dist/collection/components/bal-popover/bal-popover-content/bal-popover-content.js +19 -1
- package/dist/collection/components/bal-popover/bal-popover.js +53 -27
- package/dist/collection/components/bal-popup/bal-popup.js +58 -32
- package/dist/collection/components/bal-progress-bar/bal-progress-bar.js +7 -1
- package/dist/collection/components/bal-radio/bal-radio-button/bal-radio-button.js +15 -1
- package/dist/collection/components/bal-radio/bal-radio-group/bal-radio-group.js +64 -32
- package/dist/collection/components/bal-radio/bal-radio.js +38 -8
- package/dist/collection/components/bal-segment/bal-segment-item/bal-segment-item.js +13 -1
- package/dist/collection/components/bal-segment/bal-segment.js +34 -20
- package/dist/collection/components/bal-select/bal-select-option/bal-select-option.js +9 -1
- package/dist/collection/components/bal-select/bal-select.js +68 -24
- package/dist/collection/components/bal-shape/bal-shape.js +10 -4
- package/dist/collection/components/bal-sheet/bal-sheet.js +3 -1
- package/dist/collection/components/bal-snackbar/bal-snackbar.js +21 -1
- package/dist/collection/components/bal-spinner/bal-spinner.js +13 -3
- package/dist/collection/components/bal-stack/bal-stack.js +23 -1
- package/dist/collection/components/bal-stage/bal-stage-back-link/bal-stage-back-link.js +8 -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 +7 -3
- package/dist/collection/components/bal-stage/bal-stage.js +13 -1
- package/dist/collection/components/bal-steps/bal-step-item/bal-step-item.js +22 -2
- package/dist/collection/components/bal-steps/bal-steps.css +1 -1
- package/dist/collection/components/bal-steps/bal-steps.js +19 -5
- package/dist/collection/components/bal-table/bal-table.js +3 -1
- package/dist/collection/components/bal-tabs/bal-tab-item/bal-tab-item.js +30 -2
- package/dist/collection/components/bal-tabs/bal-tabs.css +1 -1
- package/dist/collection/components/bal-tabs/bal-tabs.js +206 -125
- package/dist/collection/components/bal-tabs/components/tab-button.js +2 -2
- package/dist/collection/components/bal-tabs/components/tab-label.js +2 -2
- package/dist/collection/components/bal-tabs/components/tab-nav.js +7 -4
- package/dist/collection/components/bal-tabs/components/tab-select.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 +17 -1
- package/dist/collection/components/bal-text/bal-text.js +28 -2
- package/dist/collection/components/bal-textarea/bal-textarea.js +54 -15
- package/dist/collection/components/bal-time-input/bal-time-input.js +32 -14
- package/dist/collection/components/bal-toast/bal-toast.js +9 -1
- package/dist/collection/components/bal-tooltip/bal-tooltip.js +11 -1
- package/dist/collection/index.js +1 -1
- package/dist/collection/utils/constants/version.constant.js +1 -1
- package/dist/collection/utils/floating-ui.js +2 -2
- package/dist/collection/utils/helpers.js +32 -2
- package/dist/collection/utils/keyboard/keyboard.helpers.js +6 -0
- package/dist/collection/utils/mutation/mutation.listener.js +16 -13
- package/dist/collection/utils/resize/resize.listener.js +19 -3
- package/dist/collection/utils/resize/resize.subject.js +2 -2
- package/dist/collection/utils/style.js +16 -3
- package/dist/collection/utils/swipe/swipe.listener.js +2 -2
- package/dist/collection/{components/bal-carousel → utils/swiper}/controls/dot-control.js +1 -1
- package/dist/collection/utils/swiper/controls/index.js +3 -0
- package/dist/collection/{components/bal-carousel → utils/swiper}/controls/large-control.js +2 -2
- package/dist/collection/{components/bal-carousel → utils/swiper}/controls/small-control.js +2 -2
- package/dist/collection/utils/swiper/index.js +1 -0
- package/dist/collection/{components/bal-carousel/bal-carousel.i18n.js → utils/swiper/swiper.i18n.js} +1 -1
- package/dist/collection/utils/swiper/swiper.util.js +322 -0
- package/dist/esm/{app-globals-665b5c71.js → app-globals-92fef8fd.js} +1 -1
- package/dist/esm/bal-accordion_4.entry.js +4 -4
- package/dist/esm/bal-app.entry.js +5 -5
- package/dist/esm/bal-badge.entry.js +1 -1
- package/dist/esm/bal-button_2.entry.js +3 -11
- package/dist/esm/bal-card_6.entry.js +1 -1
- package/dist/esm/bal-carousel_2.entry.js +88 -307
- package/dist/esm/bal-checkbox-button.entry.js +4 -4
- package/dist/esm/bal-checkbox_2.entry.js +7 -44
- package/dist/esm/bal-close.entry.js +1 -1
- 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 +3 -3
- package/dist/esm/bal-date-calendar_2.entry.js +7 -20
- package/dist/esm/bal-date.entry.js +6 -31
- package/dist/esm/bal-divider.entry.js +1 -1
- package/dist/esm/bal-dropdown.entry.js +5 -5
- package/dist/esm/bal-field_5.entry.js +3 -3
- package/dist/esm/bal-file-upload.entry.js +7 -14
- package/dist/esm/bal-footer.entry.js +3 -3
- package/dist/esm/bal-form-col_2.entry.js +1 -1
- package/dist/esm/bal-form.entry.js +2 -2
- package/dist/esm/bal-heading_2.entry.js +3 -3
- package/dist/esm/bal-hint_5.entry.js +8 -33
- package/dist/esm/bal-icon.entry.js +3 -14
- package/dist/esm/bal-input-group.entry.js +2 -2
- package/dist/esm/bal-input-slider.entry.js +6 -20
- package/dist/esm/bal-input-stepper.entry.js +6 -19
- package/dist/esm/bal-input.entry.js +4 -17
- package/dist/esm/bal-label.entry.js +2 -2
- package/dist/esm/bal-list_8.entry.js +19 -19
- package/dist/esm/bal-logo.entry.js +6 -6
- package/dist/esm/bal-modal_3.entry.js +10 -36
- package/dist/esm/bal-nav_8.entry.js +18 -37
- package/dist/esm/bal-navbar_5.entry.js +13 -10
- package/dist/esm/bal-notices_3.entry.js +5 -5
- package/dist/esm/bal-notification.entry.js +2 -2
- package/dist/esm/bal-number-input.entry.js +4 -17
- package/dist/esm/bal-option_2.entry.js +6 -25
- package/dist/esm/bal-pagination.entry.js +9 -9
- package/dist/esm/bal-popup.entry.js +6 -37
- package/dist/esm/bal-progress-bar.entry.js +7 -7
- package/dist/esm/bal-radio-button.entry.js +5 -5
- package/dist/esm/bal-radio_2.entry.js +7 -44
- package/dist/esm/bal-segment_2.entry.js +11 -30
- package/dist/esm/bal-select_2.entry.js +10 -29
- 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 +4 -4
- package/dist/esm/bal-stack.entry.js +2 -2
- package/dist/esm/bal-stage_6.entry.js +10 -10
- package/dist/esm/bal-step-item.entry.js +3 -3
- package/dist/esm/bal-steps.entry.js +15 -11
- package/dist/esm/bal-tab-item_2.entry.js +170 -160
- 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 +4 -18
- package/dist/esm/bal-time-input.entry.js +4 -17
- package/dist/esm/bal-tooltip.entry.js +4 -4
- package/dist/esm/baloise-design-system.js +6 -6
- package/dist/esm/{breakpoints.decorator-a8efc52b.js → breakpoints.decorator-ba81f8bc.js} +1 -1
- package/dist/esm/{breakpoints.subject-0764e6ff.js → breakpoints.subject-fe3d9635.js} +2 -2
- package/dist/esm/{element-states.decorator-0f2107d8.js → element-states.decorator-4cf6af31.js} +1 -1
- package/dist/esm/{floating-ui-82413f23.js → floating-ui-922202fe.js} +2 -2
- package/dist/esm/{focus.decorator-dc333802.js → focus.decorator-c2c05d01.js} +1 -1
- package/dist/esm/{form-input-264ad739.js → form-input-1f3d8337.js} +1 -1
- package/dist/esm/{helpers-72ae7307.js → helpers-32d9e1cc.js} +33 -3
- package/dist/esm/{index-5b1faf93.js → index-8d2a7ce7.js} +284 -163
- package/dist/esm/index.js +9 -9
- package/dist/esm/{initialize-b9912138.js → initialize-22c1bebc.js} +2 -2
- package/dist/esm/{keyboard.helpers-b2dd6393.js → keyboard.helpers-159e517d.js} +7 -1
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{mutation.decorator-74831883.js → mutation.decorator-0c202bed.js} +17 -14
- package/dist/esm/{overlays-73dcc4a8.js → overlays-fa0ccf81.js} +1 -1
- package/dist/esm/{resize.decorator-f2d8461d.js → resize.decorator-bd416c47.js} +21 -5
- package/dist/esm/{swipe.decorator-56b6d574.js → swipe.decorator-20f4a0cb.js} +1 -1
- package/dist/esm/{swipe.subject-683f7c7b.js → swipe.subject-e3db5994.js} +2 -2
- package/dist/esm/swiper.util-3e090584.js +445 -0
- package/dist/esm/{tokens.esm-69df759d.js → tokens.esm-7af7e766.js} +1 -1
- package/dist/esm/{window-resize.decorator-53d6279e.js → window-resize.decorator-e4edf10d.js} +1 -1
- package/dist/esm-es5/app-globals-92fef8fd.js +1 -0
- 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-checkbox-button.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-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-button.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-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-a8efc52b.js → breakpoints.decorator-ba81f8bc.js} +1 -1
- package/dist/esm-es5/{breakpoints.subject-0764e6ff.js → breakpoints.subject-fe3d9635.js} +1 -1
- package/dist/esm-es5/{element-states.decorator-0f2107d8.js → element-states.decorator-4cf6af31.js} +1 -1
- package/dist/esm-es5/floating-ui-922202fe.js +1 -0
- package/dist/esm-es5/{focus.decorator-dc333802.js → focus.decorator-c2c05d01.js} +1 -1
- package/dist/esm-es5/{form-input-264ad739.js → form-input-1f3d8337.js} +1 -1
- package/dist/esm-es5/helpers-32d9e1cc.js +1 -0
- package/dist/esm-es5/index-8d2a7ce7.js +2 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{initialize-b9912138.js → initialize-22c1bebc.js} +1 -1
- package/dist/esm-es5/keyboard.helpers-159e517d.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mutation.decorator-0c202bed.js +1 -0
- package/dist/esm-es5/{overlays-73dcc4a8.js → overlays-fa0ccf81.js} +1 -1
- package/dist/esm-es5/resize.decorator-bd416c47.js +1 -0
- package/dist/esm-es5/{swipe.decorator-56b6d574.js → swipe.decorator-20f4a0cb.js} +1 -1
- package/dist/esm-es5/swipe.subject-e3db5994.js +1 -0
- package/dist/esm-es5/swiper.util-3e090584.js +1 -0
- package/dist/esm-es5/{window-resize.decorator-53d6279e.js → window-resize.decorator-e4edf10d.js} +1 -1
- package/dist/html.html-data.json +2 -2
- package/dist/types/components/bal-carousel/bal-carousel-item/bal-carousel-item.d.ts +3 -2
- package/dist/types/components/bal-carousel/bal-carousel.d.ts +20 -33
- package/dist/types/components/bal-icon/bal-icon.d.ts +0 -6
- package/dist/types/components/bal-steps/bal-steps.d.ts +2 -1
- package/dist/types/components/bal-tabs/bal-tabs.d.ts +30 -13
- package/dist/types/components/bal-tabs/components/tab-button.d.ts +1 -1
- package/dist/types/components/bal-tabs/components/tab-label.d.ts +1 -0
- package/dist/types/components/bal-tabs/components/tab-nav.d.ts +4 -1
- package/dist/types/components.d.ts +7 -9
- package/dist/types/index.d.ts +1 -1
- package/dist/types/utils/helpers.d.ts +2 -0
- package/dist/types/utils/keyboard/keyboard.helpers.d.ts +4 -0
- package/dist/types/utils/resize/resize.interfaces.d.ts +4 -1
- package/dist/types/utils/resize/resize.listener.d.ts +2 -0
- package/dist/types/utils/style.d.ts +1 -0
- package/dist/types/utils/swiper/controls/index.d.ts +3 -0
- package/dist/types/utils/swiper/index.d.ts +2 -0
- package/dist/types/utils/swiper/swiper.i18n.d.ts +7 -0
- package/dist/types/utils/swiper/swiper.type.d.ts +31 -0
- package/dist/types/utils/swiper/swiper.util.d.ts +92 -0
- package/package.json +8 -8
- package/components/bal-carousel-item2.js +0 -115
- package/components/bal-carousel2.js +0 -530
- package/components/bal-pagination2.js +0 -313
- package/components/bal-select-option2.js +0 -47
- package/components/bal-select2.js +0 -868
- package/components/listen.js +0 -58
- package/dist/baloise-design-system/p-04979ee232.entry.js +0 -1
- package/dist/baloise-design-system/p-075bcd8c56.system.entry.js +0 -1
- package/dist/baloise-design-system/p-0935940ea0.system.entry.js +0 -1
- package/dist/baloise-design-system/p-0aa1d6a4.system.js +0 -1
- package/dist/baloise-design-system/p-0c51c999.js +0 -1
- package/dist/baloise-design-system/p-0e361394.js +0 -1
- package/dist/baloise-design-system/p-0fd1b4ed34.entry.js +0 -1
- package/dist/baloise-design-system/p-116b65a6.system.js +0 -1
- package/dist/baloise-design-system/p-12701030b2.system.entry.js +0 -1
- package/dist/baloise-design-system/p-1400a7e9cc.entry.js +0 -1
- package/dist/baloise-design-system/p-18fbeec32d.system.entry.js +0 -1
- package/dist/baloise-design-system/p-19abec97c4.entry.js +0 -1
- package/dist/baloise-design-system/p-1c118a88.system.js +0 -1
- package/dist/baloise-design-system/p-20d7a74311.system.entry.js +0 -1
- package/dist/baloise-design-system/p-218f416b89.entry.js +0 -1
- package/dist/baloise-design-system/p-2539ba43.js +0 -2
- package/dist/baloise-design-system/p-25e640839d.system.entry.js +0 -1
- package/dist/baloise-design-system/p-2767b62167.system.entry.js +0 -1
- package/dist/baloise-design-system/p-27d3f5d35a.system.entry.js +0 -1
- package/dist/baloise-design-system/p-2ad664ad93.entry.js +0 -1
- package/dist/baloise-design-system/p-33101c54.js +0 -1
- package/dist/baloise-design-system/p-3814316946.entry.js +0 -1
- package/dist/baloise-design-system/p-3a0a84fbcc.system.entry.js +0 -1
- package/dist/baloise-design-system/p-3d1747bc.system.js +0 -1
- package/dist/baloise-design-system/p-47ae469120.entry.js +0 -1
- package/dist/baloise-design-system/p-4d807f18.system.js +0 -1
- package/dist/baloise-design-system/p-50927d70.js +0 -1
- package/dist/baloise-design-system/p-51380295.system.js +0 -1
- package/dist/baloise-design-system/p-53b859d3c4.entry.js +0 -1
- package/dist/baloise-design-system/p-562c360455.entry.js +0 -1
- package/dist/baloise-design-system/p-58f7826179.entry.js +0 -1
- package/dist/baloise-design-system/p-5bbc6e33c0.entry.js +0 -1
- package/dist/baloise-design-system/p-62936f4a8b.entry.js +0 -1
- package/dist/baloise-design-system/p-68392bc0e8.system.entry.js +0 -1
- package/dist/baloise-design-system/p-6d6a2f64f2.entry.js +0 -1
- package/dist/baloise-design-system/p-6e79b03ef3.entry.js +0 -1
- package/dist/baloise-design-system/p-77a1d547e2.system.entry.js +0 -1
- package/dist/baloise-design-system/p-7a883fd6ed.system.entry.js +0 -1
- package/dist/baloise-design-system/p-7e50273c21.entry.js +0 -1
- package/dist/baloise-design-system/p-85d9ea863b.system.entry.js +0 -1
- package/dist/baloise-design-system/p-8669493951.system.entry.js +0 -1
- package/dist/baloise-design-system/p-8a1bb350f1.system.entry.js +0 -1
- package/dist/baloise-design-system/p-9311066eb2.system.entry.js +0 -1
- package/dist/baloise-design-system/p-95a4f1be.js +0 -1
- package/dist/baloise-design-system/p-9d29364f13.entry.js +0 -1
- package/dist/baloise-design-system/p-9d3f7645.system.js +0 -1
- package/dist/baloise-design-system/p-9eb4e04e90.system.entry.js +0 -1
- package/dist/baloise-design-system/p-9f54cfc70b.entry.js +0 -1
- package/dist/baloise-design-system/p-a33ee4ca30.entry.js +0 -1
- package/dist/baloise-design-system/p-a5a8da4e09.entry.js +0 -1
- package/dist/baloise-design-system/p-a6556b9bd0.entry.js +0 -1
- package/dist/baloise-design-system/p-a76969fe16.entry.js +0 -1
- package/dist/baloise-design-system/p-aa08fe2376.entry.js +0 -1
- package/dist/baloise-design-system/p-ab64213bd1.system.entry.js +0 -1
- package/dist/baloise-design-system/p-ad58876e8c.entry.js +0 -1
- package/dist/baloise-design-system/p-ae2292f251.system.entry.js +0 -1
- package/dist/baloise-design-system/p-af4c6af2.js +0 -1
- package/dist/baloise-design-system/p-b0120babb2.entry.js +0 -1
- package/dist/baloise-design-system/p-b5c538994b.system.entry.js +0 -1
- package/dist/baloise-design-system/p-ba9c735428.entry.js +0 -1
- package/dist/baloise-design-system/p-be61baa681.entry.js +0 -1
- package/dist/baloise-design-system/p-c6ee7ff820.system.entry.js +0 -1
- package/dist/baloise-design-system/p-c9dce0f3ea.system.entry.js +0 -1
- package/dist/baloise-design-system/p-ca0e100fe8.entry.js +0 -1
- package/dist/baloise-design-system/p-ce3173af38.system.entry.js +0 -1
- package/dist/baloise-design-system/p-ce674dca.js +0 -1
- package/dist/baloise-design-system/p-d21e99c2da.system.entry.js +0 -1
- package/dist/baloise-design-system/p-d532d41212.system.entry.js +0 -1
- package/dist/baloise-design-system/p-d67f7321.system.js +0 -2
- package/dist/baloise-design-system/p-d88acac29e.system.entry.js +0 -1
- package/dist/baloise-design-system/p-d97dc6a8.system.js +0 -1
- package/dist/baloise-design-system/p-dc032a0d49.entry.js +0 -1
- package/dist/baloise-design-system/p-e563e447.js +0 -1
- package/dist/baloise-design-system/p-e5724f1013.system.entry.js +0 -1
- package/dist/baloise-design-system/p-ec4cf5cec6.entry.js +0 -1
- package/dist/baloise-design-system/p-edbd880ce1.entry.js +0 -1
- package/dist/baloise-design-system/p-ee3c7a38.system.js +0 -1
- package/dist/baloise-design-system/p-fc915218bf.entry.js +0 -1
- package/dist/baloise-design-system/p-fe30593a.js +0 -1
- package/dist/cjs/listen-b42a4134.js +0 -60
- package/dist/cjs/style-799e9253.js +0 -27
- package/dist/collection/utils/listen.js +0 -55
- package/dist/esm/listen-d1712e70.js +0 -58
- package/dist/esm/style-ca1bd202.js +0 -24
- package/dist/esm-es5/app-globals-665b5c71.js +0 -1
- package/dist/esm-es5/floating-ui-82413f23.js +0 -1
- package/dist/esm-es5/helpers-72ae7307.js +0 -1
- package/dist/esm-es5/index-5b1faf93.js +0 -2
- package/dist/esm-es5/keyboard.helpers-b2dd6393.js +0 -1
- package/dist/esm-es5/listen-d1712e70.js +0 -1
- package/dist/esm-es5/mutation.decorator-74831883.js +0 -1
- package/dist/esm-es5/resize.decorator-f2d8461d.js +0 -1
- package/dist/esm-es5/style-ca1bd202.js +0 -1
- package/dist/esm-es5/swipe.subject-683f7c7b.js +0 -1
- package/dist/types/components/bal-carousel/bal-carousel.i18n.d.ts +0 -7
- package/dist/types/components/bal-carousel/bal-carousel.type.d.ts +0 -18
- package/dist/types/utils/listen.d.ts +0 -12
- /package/dist/baloise-design-system/{p-342d34ac.system.js → p-376e5378.system.js} +0 -0
- /package/dist/baloise-design-system/{p-0521dc23.js → p-c69b8ae2.js} +0 -0
- /package/dist/collection/{components/bal-carousel/bal-carousel.type.js → utils/swiper/swiper.type.js} +0 -0
- /package/dist/esm-es5/{tokens.esm-69df759d.js → tokens.esm-7af7e766.js} +0 -0
- /package/dist/types/{components/bal-carousel → utils/swiper}/controls/dot-control.d.ts +0 -0
- /package/dist/types/{components/bal-carousel → utils/swiper}/controls/large-control.d.ts +0 -0
- /package/dist/types/{components/bal-carousel → utils/swiper}/controls/small-control.d.ts +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,c){function s(t){try{a(r.next(t))}catch(t){c(t)}}function f(t){try{a(r["throw"](t))}catch(t){c(t)}}function a(t){t.done?n(t.value):i(t.value).then(s,f)}a((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},r,i,c,s;return s={next:f(0),throw:f(1),return:f(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function f(t){return function(e){return a([t,e])}}function a(f){if(r)throw new TypeError("Generator is already executing.");while(s&&(s=0,f[0]&&(n=0)),n)try{if(r=1,i&&(c=f[0]&2?i["return"]:f[0]?i["throw"]||((c=i["return"])&&c.call(i),0):i.next)&&!(c=c.call(i,f[1])).done)return c;if(i=0,c)f=[f[0]&2,c.value];switch(f[0]){case 0:case 1:c=f;break;case 4:n.label++;return{value:f[1],done:false};case 5:n.label++;i=f[1];f=[0];continue;case 7:f=n.ops.pop();n.trys.pop();continue;default:if(!(c=n.trys,c=c.length>0&&c[c.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!c||f[1]>c[0]&&f[1]<c[3])){n.label=f[1];break}if(f[0]===6&&n.label<c[1]){n.label=c[1];c=f;break}if(c&&n.label<c[2]){n.label=c[2];n.ops.push(f);break}if(c[2])n.ops.pop();n.trys.pop();continue}f=e.call(t,n)}catch(t){f=[6,t];i=0}finally{r=c=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:true}}};System.register(["./p-d67f7321.system.js","./p-6e5745c8.system.js","./p-4d807f18.system.js","./p-a1f6e944.system.js","./p-b3f2c626.system.js","./p-145d5c4e.system.js"],(function(t){"use strict";var e,n,r,i,c,s,f;return{setters:[function(t){e=t.r;n=t.h;r=t.H;i=t.g},function(t){c=t.s},function(t){s=t.d;f=t.b},function(){},function(){},function(){}],execute:function(){var a=".bal-form{display:block;position:static}";var u=a;var o=t("bal_form",function(){function t(t){e(this,t);this.native=false;this.novalidate=false;this.formClass=""}t.prototype.scrollToFirstInvalidField=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,s()];case 1:t.sent();return[4,f()];case 2:t.sent();c({formEl:this.el});return[2]}}))}))};t.prototype.render=function(){var t=this.native?"form":"div";var e={};if(this.native){e={novalidate:this.novalidate}}return n(r,{key:"6e18df8ae00274664abd91bce9318de7c9fbd1e3"},n(t,Object.assign({key:"48bee97b1a0e11629d70a562ff7020cb753a258a"},e,{class:this.formClass}),n("slot",{key:"8dae2c5837fead69d624ae443934bb7fa6f7dfe8"})))};Object.defineProperty(t.prototype,"el",{get:function(){return i(this)},enumerable:false,configurable:true});return t}());o.style=u}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,e,n,i){function r(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,s){function u(t){try{c(i.next(t))}catch(t){s(t)}}function a(t){try{c(i["throw"](t))}catch(t){s(t)}}function c(t){t.done?n(t.value):r(t.value).then(u,a)}c((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,r,s,u;return u={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function a(t){return function(e){return c([t,e])}}function c(a){if(i)throw new TypeError("Generator is already executing.");while(u&&(u=0,a[0]&&(n=0)),n)try{if(i=1,r&&(s=a[0]&2?r["return"]:a[0]?r["throw"]||((s=r["return"])&&s.call(r),0):r.next)&&!(s=s.call(r,a[1])).done)return s;if(r=0,s)a=[a[0]&2,s.value];switch(a[0]){case 0:case 1:s=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;r=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(s=n.trys,s=s.length>0&&s[s.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!s||a[1]>s[0]&&a[1]<s[3])){n.label=a[1];break}if(a[0]===6&&n.label<s[1]){n.label=s[1];s=a;break}if(s&&n.label<s[2]){n.label=s[2];n.ops.push(a);break}if(s[2])n.ops.pop();n.trys.pop();continue}a=e.call(t,n)}catch(t){a=[6,t];r=0}finally{i=s=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,e,n){if(n||arguments.length===2)for(var i=0,r=e.length,s;i<r;i++){if(s||!(i in e)){if(!s)s=Array.prototype.slice.call(e,0,i);s[i]=e[i]}}return t.concat(s||Array.prototype.slice.call(e))};System.register(["./p-d67f7321.system.js","./p-6dbef894.system.js","./p-4d807f18.system.js","./p-8949aa8b.system.js","./p-bf139fe5.system.js","./p-6913b916.system.js","./p-ba579059.system.js","./p-db0895e2.system.js","./p-23bdd8dc.system.js","./p-6e5745c8.system.js","./p-ee3c7a38.system.js","./p-a1f6e944.system.js","./p-b3f2c626.system.js","./p-145d5c4e.system.js"],(function(t){"use strict";var e,n,i,r,s,u,a,c,f,o,h,d,l,b,v,p,m,y,g,w,k,_,j,x,D,E,A,B;return{setters:[function(t){e=t.r;n=t.c;i=t.h;r=t.H;s=t.g},function(t){u=t._;a=t.a},function(t){c=t.o},function(t){f=t.i},function(t){o=t.g;h=t.a;d=t.b;l=t.e;b=t.s;v=t.f;p=t.i;m=t.h;y=t.j;g=t.c;w=t.d},function(t){k=t.l},function(t){_=t.i;j=t.A;x=t.N},function(t){D=t.B},function(t){E=t.L},function(t){A=t.d},function(t){B=t.L},function(){},function(){},function(){}],execute:function(){function C(t){if(!t){return""}var e="".concat(t).trim().toUpperCase();var n=[e.substring(0,2),e.substring(2,8),e.substring(8,10),e.substring(10,11)].filter((function(t){return t.length>0}));switch(n.length){case 1:return"".concat(t);case 2:return"".concat(n[0],"/").concat(n[1]);case 3:return"".concat(n[0],"/").concat(n[1],"/").concat(n[2]);default:return"".concat(n[0],"/").concat(n[1],"/").concat(n[2],".").concat(n[3])}}function F(t){if(!t){return""}var e="".concat(t).trim();var n=[e.substring(0,9),e.substring(9,10)].filter((function(t){return t.length>0}));e=O(n[0]);return n[1]?"".concat(e,"-").concat(n[1]):e}function O(t){if(!t){return""}var e="".concat(t).trim();var n=[e.substring(0,2),e.substring(2,3),e.substring(3,6),e.substring(6,9)].filter((function(t){return t.length>0}));switch(n.length){case 1:return"".concat(e);case 2:return"".concat(n[0],"/").concat(n[1]);case 3:return"".concat(n[0],"/").concat(n[1],".").concat(n[2]);default:return"".concat(n[0],"/").concat(n[1],".").concat(n[2],".").concat(n[3])}}function I(t){if(!t){return""}var e="".concat(t).trim();var n=[e.substring(0,4),e.substring(4,7),e.substring(7,10)].filter((function(t){return t.length>0}));switch(n.length){case 1:return"".concat(e);case 2:return"".concat(n[0],".").concat(n[1]);default:return"".concat(n[0],".").concat(n[1],".").concat(n[2])}}function P(t){if(!t){return""}var e="".concat(t).trim();var n=[e.substring(0,2),e.substring(2,6),e.substring(6,10),e.substring(10,14)].filter((function(t){return t.length>0}));switch(n.length){case 1:return"BE".concat(e);case 2:return"BE".concat(n[0]," ").concat(n[1]);case 3:return"BE".concat(n[0]," ").concat(n[1]," ").concat(n[2]);default:return"BE".concat(n[0]," ").concat(n[1]," ").concat(n[2]," ").concat(n[3])}}var K=10;var L=9;var S=11;var z=10;var R=14;var U=".bal-input{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:block;position:relative;width:100%;-ms-flex:1;flex:1;font-family:var(--bal-font-family-text);padding:0}";var X=U;var $=t("bal_input",function(){function t(t){var i=this;e(this,t);this.balInput=n(this,"balInput",7);this.balBlur=n(this,"balBlur",7);this.balKeyPress=n(this,"balKeyPress",7);this.balFocus=n(this,"balFocus",7);this.balChange=n(this,"balChange",7);this.inputId="bal-input-".concat(q++);this.inheritedAttributes={};this.inputValue=this.value;this.initialValue=this.value||"";this.getInputValue=function(){var t;var e=i.nativeInput;var n="";if(e){if(i.allowedKeyPress&&e&&!i.mask){var r=new RegExp("^"+i.allowedKeyPress+"$");var s=e.value.split("").filter((function(t){return r.test(t)})).join("");e.value=s;return s}if(e.value){if(i.mask){switch(i.mask){case"contract-number":{n=e.value.replace(/\D/g,"");if(n.length>K){n=n.substring(0,K)}return n}case"offer-number":{n=e.value.replace(/\D/g,"");if(n.length>L){n=n.substring(0,L)}return n}case"claim-number":{n=e.value.replace(/[^\dXx]/g,"");var u=[n.substring(0,S-1),n.substring(S-1,S),n.substring(S)].filter((function(t){return t.length>0}));switch(u.length){case 1:n="".concat(u[0].replace(/\D/g,""));break;case 2:n="".concat(u[0].replace(/\D/g,"")).concat(u[1]);break;default:n="".concat(u[0].replace(/\D/g,"")).concat(u[1]).concat((t=u[2])===null||t===void 0?void 0:t.replace(/\D/g,""))}if(n.length>S){n=n.substring(0,S)}return n}case"be-enterprise-number":{n=e.value.replace(/\D/g,"");if(n.length>z){n=n.substring(0,z)}return n}case"be-iban":{n=e.value.replace(/\D/g,"");if(n.length>R){n=n.substring(0,R)}return n}default:return e.value}}}else{i.inputValue=e.value}}return""};this.onInput=function(t){var e,n;var r=o(t);var s=(e=t.target)===null||e===void 0?void 0:e.selectionStart;var u=(n=t.target)===null||n===void 0?void 0:n.selectionEnd;i.inputValue=i.getInputValue();if(r){if(r.value){switch(i.mask){case"contract-number":{r.value=F(i.inputValue);if(s<i.inputValue.length){r.setSelectionRange(s,u)}break}case"offer-number":{r.value=O(i.inputValue);if(s<i.inputValue.length){r.setSelectionRange(s,u)}break}case"claim-number":{r.value=C(i.inputValue);if(s<i.inputValue.length){r.setSelectionRange(s,u)}break}case"be-enterprise-number":{r.value=I(i.inputValue);if(s<i.inputValue.length){r.setSelectionRange(s,u)}break}case"be-iban":{r.value=P(i.inputValue);if(s<i.inputValue.length){r.setSelectionRange(s,u)}break}default:i.inputValue=r.value}}else{i.inputValue=r.value}}i.balInput.emit(i.inputValue)};this.onFocus=function(t){return h(i,t)};this.onBlur=function(t){d(i,t);var e=t.target;if(e){if(i.mask===undefined){e.value=i.getFormattedValue()}l(i)}};this.onKeydown=function(t){if(i.mask!==undefined&&!k(t)&&!_(t)){var e=0;if(i.inputValue){e=i.inputValue.length}if(!(i.getMaskAllowedKeys().includes(t.key)||i.mask==="claim-number"&&(t.key==="X"||t.key==="x")&&e>=S-1)){return b(t)}}if(i.allowedKeyPress&&!i.mask&&!k(t)&&!_(t)){var n=new RegExp("^"+i.allowedKeyPress+"$");if(!n.test(t.key)&&!__spreadArray([],j,true).includes(t.key)){return b(t)}}};this.onClick=function(t){return v(i,t)};this.handleClick=function(t){return p(i,t)};this.focused=false;this.ariaForm=A;this.name=this.inputId;this.invalid=false;this.textAlign="left";this.type="text";this.accept=undefined;this.autocapitalize="off";this.autocomplete="off";this.autocorrect="off";this.autofocus=false;this.debounce=0;this.placeholder=undefined;this.max=undefined;this.maxLength=undefined;this.min=undefined;this.minLength=undefined;this.multiple=undefined;this.pattern=undefined;this.allowedKeyPress=undefined;this.required=false;this.spellcheck=false;this.disabled=false;this.readonly=false;this.clickable=false;this.suffix=undefined;this.hasIconRight=false;this.inputmode=undefined;this.value=undefined;this.mask=undefined;this.autoInvalidOff=false}t.prototype.createLogger=function(t){this.log=t};t.prototype.debounceChanged=function(){this.balChange=c(this.balChange,this.debounce)};t.prototype.listenOnClick=function(t){m(this,t)};t.prototype.resetHandler=function(t){var e=t.target;if(e===null||e===void 0?void 0:e.contains(this.el)){y(this,this.initialValue,this.resetHandlerTimer)}};t.prototype.connectedCallback=function(){this.debounceChanged();this.initialValue=this.value||""};t.prototype.componentWillLoad=function(){this.inheritedAttributes=f(this.el,["aria-label","tabindex","title"])};t.prototype.componentDidLoad=function(){this.inputValue=this.value};t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){g(this);return[2]}))}))};t.prototype.setBlur=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){w(this);return[2]}))}))};t.prototype.getInputElement=function(){return Promise.resolve(this.nativeInput)};t.prototype.setAriaForm=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.ariaForm=Object.assign({},t);return[2]}))}))};t.prototype.getRawValue=function(){var t=(this.value||"").toString();return t};t.prototype.getFormattedValue=function(){var t=this.getRawValue();var e=this.suffix!==undefined&&t!==undefined&&t!==""?" "+this.suffix:"";return"".concat(t).concat(e)};t.prototype.getMaskAllowedKeys=function(){return __spreadArray(__spreadArray([],x,true),j,true)};t.prototype.render=function(){var t=this;var e=this.focused?this.getRawValue():this.getFormattedValue();if(this.mask!==undefined){switch(this.mask){case"contract-number":e=F(e);break;case"claim-number":e=C(e);break;case"offer-number":e=O(e);break;case"be-enterprise-number":e=I(e);break;case"be-iban":e=P(e);break}}var n={};if(this.pattern){n={pattern:this.pattern}}var s=D.block("input");var u=this.ariaForm.controlId||this.inputId;return i(r,{key:"06b94d64ecb7003f68c3402a530476419acb6298",onClick:this.handleClick,"aria-disabled":this.disabled?"true":null,class:Object.assign({},s.class())},i("input",Object.assign({key:"ae1f579c3c8bded3c7b9c9a7eeea0e3989f17bb5",class:{input:true,"is-disabled":this.disabled||this.readonly,"is-danger":this.invalid,"is-clickable":this.clickable,"bal-focusable":!this.disabled,"has-icon-right":this.hasIconRight,"has-text-centered":this.textAlign==="center","has-text-right":this.textAlign==="right"},"data-testid":"bal-input",ref:function(e){return t.nativeInput=e},id:u,"aria-labelledby":this.ariaForm.labelId,"aria-describedby":this.ariaForm.messageId,"aria-invalid":this.invalid===true?"true":"false","aria-disabled":this.disabled?"true":null,disabled:this.disabled,accept:this.accept,inputMode:this.inputmode,autoCapitalize:this.autocapitalize,autocomplete:this.autocomplete,autocorrect:this.autocorrect,autofocus:this.autofocus,min:this.min,max:this.max,minLength:this.minLength,maxLength:this.maxLength,multiple:this.multiple,name:this.name,placeholder:this.placeholder||"",readonly:this.readonly,required:this.required,spellcheck:this.spellcheck,type:this.type,value:e,onFocus:this.onFocus,onInput:function(e){return t.onInput(e)},onKeyDown:function(e){return t.onKeydown(e)},onBlur:this.onBlur,onClick:this.onClick,onKeyPress:function(e){return t.balKeyPress.emit(e)}},n,this.inheritedAttributes)))};Object.defineProperty(t.prototype,"el",{get:function(){return s(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{debounce:["debounceChanged"]}},enumerable:false,configurable:true});return t}());u([E("bal-input"),a("design:type",Function),a("design:paramtypes",[Function]),a("design:returntype",void 0)],$.prototype,"createLogger",null);u([B("click",{capture:true,target:"document"}),a("design:type",Function),a("design:paramtypes",[UIEvent]),a("design:returntype",void 0)],$.prototype,"listenOnClick",null);u([B("reset",{capture:true,target:"document"}),a("design:type",Function),a("design:paramtypes",[UIEvent]),a("design:returntype",void 0)],$.prototype,"resetHandler",null);var q=0;$.style=X}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,n,e,i){function r(t){return t instanceof e?t:new e((function(n){n(t)}))}return new(e||(e=Promise))((function(e,s){function u(t){try{f(i.next(t))}catch(t){s(t)}}function a(t){try{f(i["throw"](t))}catch(t){s(t)}}function f(t){t.done?e(t.value):r(t.value).then(u,a)}f((i=i.apply(t,n||[])).next())}))};var __generator=this&&this.__generator||function(t,n){var e={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,r,s,u;return u={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function a(t){return function(n){return f([t,n])}}function f(a){if(i)throw new TypeError("Generator is already executing.");while(u&&(u=0,a[0]&&(e=0)),e)try{if(i=1,r&&(s=a[0]&2?r["return"]:a[0]?r["throw"]||((s=r["return"])&&s.call(r),0):r.next)&&!(s=s.call(r,a[1])).done)return s;if(r=0,s)a=[a[0]&2,s.value];switch(a[0]){case 0:case 1:s=a;break;case 4:e.label++;return{value:a[1],done:false};case 5:e.label++;r=a[1];a=[0];continue;case 7:a=e.ops.pop();e.trys.pop();continue;default:if(!(s=e.trys,s=s.length>0&&s[s.length-1])&&(a[0]===6||a[0]===2)){e=0;continue}if(a[0]===3&&(!s||a[1]>s[0]&&a[1]<s[3])){e.label=a[1];break}if(a[0]===6&&e.label<s[1]){e.label=s[1];s=a;break}if(s&&e.label<s[2]){e.label=s[2];e.ops.push(a);break}if(s[2])e.ops.pop();e.trys.pop();continue}a=n.call(t,e)}catch(t){a=[6,t];r=0}finally{i=s=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,n,e){if(e||arguments.length===2)for(var i=0,r=n.length,s;i<r;i++){if(s||!(i in n)){if(!s)s=Array.prototype.slice.call(n,0,i);s[i]=n[i]}}return t.concat(s||Array.prototype.slice.call(n))};System.register(["./p-d67f7321.system.js","./p-6dbef894.system.js","./p-bf139fe5.system.js","./p-4d807f18.system.js","./p-8949aa8b.system.js","./p-72ffb739.system.js","./p-db0895e2.system.js","./p-6e5745c8.system.js","./p-23bdd8dc.system.js","./p-6913b916.system.js","./p-ba579059.system.js","./p-056b22a7.system.js","./p-ee3c7a38.system.js","./p-bb6304d0.system.js","./p-0177e3a0.system.js","./p-a1f6e944.system.js","./p-b3f2c626.system.js","./p-145d5c4e.system.js","./p-2880433e.system.js"],(function(t){"use strict";var n,e,i,r,s,u,a,f,o,c,h,l,d,b,p,v,y,m,g,_,j,w,k,F,x,O,A,C,I,K,P,E,S,T,V;return{setters:[function(t){n=t.r;e=t.c;i=t.h;r=t.H;s=t.g},function(t){u=t._;a=t.a},function(t){f=t.f;o=t.i;c=t.a;h=t.b;l=t.e;d=t.k;b=t.l;p=t.s;v=t.h;y=t.j;m=t.c;g=t.d},function(t){_=t.o},function(t){j=t.i},function(t){w=t.g;k=t.a;F=t.b;x=t.f},function(t){O=t.B},function(t){A=t.d},function(t){C=t.L},function(t){I=t.l},function(t){K=t.N;P=t.A},function(t){E=t.i},function(t){S=t.L},function(t){T=t.d},function(t){V=t.L},function(){},function(){},function(){},function(){}],execute:function(){var B="[object Number]";var G=Object.prototype;var U=G.toString;function q(t){return!!t&&typeof t=="object"}function z(t){return D(t)&&t!=+t}function D(t){return typeof t=="number"||q(t)&&U.call(t)==B}var H=z;function L(t){return typeof t==="string"&&F()!=="."}function N(t){var n=parseFloat(t);return typeof n==="number"&&!H(n)}function J(t){return!N(t)&&t!==""&&t!==w()&&t!==k()}function M(t,n){if(n===void 0){n=0}var e=t;if(e===""||e===undefined||e===null||H(e)||e===w()||e===k()||!N(e)){return undefined}if(L(e)){e=e.split(F()).join("").split("`").join("").split("'").join("")}return n===0?parseInt(e,10):parseFloat(e)}function Q(t,n){if(n===void 0){n=0}var e=t;if(I(e)){return""}if(L(e)){e=e.split(F()).join("").split("`").join("").split("'").join("")}if(e.charAt(0)===k()){e="0".concat(e)}var i=n===0?parseInt(e,10):parseFloat(e.replace(k(),"."));return H(i)?"":i.toFixed(n)}function R(t){return t.replace(".",k())}function W(t,n,e){if(n===void 0){n=0}if(e===void 0){e=""}if(I(t)){return""}if(t.charAt(0)===k()){t="0".concat(t)}var i=n===0?parseInt(t,10):parseFloat(t);var r=e!==""?" ".concat(e.trim()):"";return H(i)?"":x(i,n)+r}var X=function(t){return(t.split(k())||[]).length-1||0};function Y(t){var n=t.key,e=t.ctrlKey,i=t.metaKey,r=t.selectionStart,s=t.selectionEnd,u=t.newValue,a=t.decimal;if(["a","c","v"].includes(n)&&(e||i)){return true}if(n===w()&&r&&r>0&&s&&s>0){return false}if(n===k()){if(a===0){return false}else if(X(u)>1){return false}}if(!__spreadArray(__spreadArray(__spreadArray([],K,true),P,true),[k(),w()],false).includes(n)){return false}if(a!==0&&u.includes(k())&&__spreadArray([],K,true).includes(n)){var f=u.split(k());var o=f[f.length-1];if(o.length>a){return false}}return true}var Z=".bal-number-input{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:block;position:relative;-ms-flex:1;flex:1;-ms-flex-align:center;align-items:center;width:100%;padding:0;font-family:var(--bal-font-family-text)}";var $=Z;var tt=t("bal_number_input",function(){function t(t){var i=this;n(this,t);this.balInput=e(this,"balInput",7);this.balChange=e(this,"balChange",7);this.balBlur=e(this,"balBlur",7);this.balFocus=e(this,"balFocus",7);this.balKeyPress=e(this,"balKeyPress",7);this.inputId="bal-number-input-".concat(nt++);this.inheritedAttributes={};this.lastValue="";this.inputValue=this.value;this.initialValue=undefined;this.onClick=function(t){return f(i,t)};this.handleClick=function(t){return o(i,t)};this.onInput=function(t){var n;if(i.nativeInput){if(J(i.nativeInput.value)){i.nativeInputValue=i.lastValue||"";return}}i.lastValue=((n=i.nativeInput)===null||n===void 0?void 0:n.value)||"";i.balInput.emit(M(i.lastValue,i.decimal))};this.onFocus=function(t){c(i,t);if(i.nativeInput){i.nativeInputValue=R(i.lastValue||"");clearTimeout(i.selectTimeout);i.selectTimeout=setTimeout((function(){return i.nativeInput.select()}))}};this.onBlur=function(t){h(i,t);if(i.nativeInput){i.lastValue=Q(i.lastValueGetter,i.decimal);i.nativeInputValue=W(i.lastValueGetter,i.decimal,i.suffix);i.nativeInput.value=i.nativeInputValue}i.inputValue=M(i.lastValueGetter,i.decimal);l(i)};this.onKeydown=function(t){var n=d(i);var e=b(i,t);var r=t===null||t===void 0?void 0:t.target;if(r&&!Y({key:t.key,ctrlKey:t.ctrlKey,metaKey:t.metaKey,decimal:i.decimal,newValue:e,oldValue:n,selectionStart:r.selectionStart,selectionEnd:r.selectionEnd})){return p(t)}};this.focused=false;this.language=T.language;this.region=T.region;this.ariaForm=A;this.nativeInputValue="";this.inputPattern=this.createPattern();this.name=this.inputId;this.invalid=false;this.decimal=0;this.suffix=undefined;this.pattern=undefined;this.placeholder=undefined;this.required=false;this.disabled=false;this.readonly=false;this.exactNumber=false;this.max=undefined;this.min=undefined;this.debounce=0;this.value=undefined;this.autoInvalidOff=false}t.prototype.createLogger=function(t){this.log=t};t.prototype.debounceChanged=function(){this.balChange=_(this.balChange,this.debounce)};t.prototype.valueChanged=function(t,n){if(t!==n){var e=t===""||I(t)||H(t);var i=this.exactNumber?"0":"";var r=e?i:t.toString();this.inputValue=M(Q(r,this.decimal),this.decimal);this.lastValue=Q(r,this.decimal);if(this.focused){this.nativeInputValue=R(this.lastValue)}else{this.nativeInputValue=W(this.lastValue,this.decimal,this.suffix)}}};t.prototype.connectedCallback=function(){this.debounceChanged();this.initialValue=this.value||0;if(this.value!==undefined){this.valueChanged(this.value,undefined)}};t.prototype.componentDidLoad=function(){this.inputValue=this.value};t.prototype.componentWillLoad=function(){this.inheritedAttributes=j(this.el,["aria-label","tabindex","title"])};t.prototype.listenOnClick=function(t){v(this,t)};t.prototype.resetHandler=function(t){var n=t.target;if(n===null||n===void 0?void 0:n.contains(this.el)){y(this,this.initialValue,this.resetHandlerTimer)}};t.prototype.configChanged=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){this.language=t.language;this.region=t.region;this.inputPattern=this.createPattern();if(this.nativeInput){if(this.focused){this.nativeInputValue=R(this.lastValue)}else{this.nativeInputValue=W(this.lastValue,this.decimal,this.suffix)}}return[2]}))}))};t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){m(this);return[2]}))}))};t.prototype.setBlur=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){g(this);return[2]}))}))};t.prototype.getInputElement=function(){return Promise.resolve(this.nativeInput)};t.prototype.setAriaForm=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){this.ariaForm=Object.assign({},t);return[2]}))}))};t.prototype.createPattern=function(){if(this.pattern){return this.pattern}var t=this.suffix||"";if(t!==""){t=" ".concat(t)}var n=F();var e=k();if(e===","){e="\\,"}return"-?\\d{1,3}(?:".concat(n,"\\d{3})*(?:\\").concat(e,"\\d{1,2})?(?:").concat(t,")?")};Object.defineProperty(t.prototype,"lastValueGetter",{get:function(){if(this.exactNumber&&(I(this.lastValue)||E(this.lastValue))){return"0"}return this.lastValue},enumerable:false,configurable:true});t.prototype.render=function(){var t=this;var n=O.block("number-input");return i(r,{key:"25a122a19c18a933d55991cb22b29f6e2a96eb02",onClick:this.handleClick,"aria-disabled":this.disabled?"true":null,class:Object.assign({},n.class())},i("input",Object.assign({key:"d9ef6e1d970f4ada012b65d2518fd793b44024c3",class:{input:true,"is-disabled":this.disabled||this.readonly,"is-danger":this.invalid},"data-testid":"bal-number-input",ref:function(n){return t.nativeInput=n},id:this.ariaForm.controlId||this.inputId,"aria-labelledby":this.ariaForm.labelId,"aria-describedby":this.ariaForm.messageId,"aria-invalid":this.invalid===true?"true":"false","aria-disabled":this.disabled?"true":null,name:this.name,disabled:this.disabled,placeholder:this.placeholder||"",readonly:this.readonly,required:this.required,pattern:this.inputPattern,min:this.min,max:this.max,value:this.nativeInputValue,onInput:function(n){return t.onInput(n)},onFocus:function(n){return t.onFocus(n)},onBlur:function(n){return t.onBlur(n)},onClick:this.onClick,onKeyDown:function(n){return t.onKeydown(n)},onKeyPress:function(n){return t.balKeyPress.emit(n)}},this.inheritedAttributes)))};Object.defineProperty(t.prototype,"el",{get:function(){return s(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{debounce:["debounceChanged"],value:["valueChanged"]}},enumerable:false,configurable:true});return t}());u([C("bal-number-input"),a("design:type",Function),a("design:paramtypes",[Function]),a("design:returntype",void 0)],tt.prototype,"createLogger",null);u([S("click",{capture:true,target:"document"}),a("design:type",Function),a("design:paramtypes",[UIEvent]),a("design:returntype",void 0)],tt.prototype,"listenOnClick",null);u([S("reset",{capture:true,target:"document"}),a("design:type",Function),a("design:paramtypes",[UIEvent]),a("design:returntype",void 0)],tt.prototype,"resetHandler",null);u([V(),a("design:type",Function),a("design:paramtypes",[Object]),a("design:returntype",Promise)],tt.prototype,"configChanged",null);var nt=0;tt.style=$}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var t=function(i,n){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)if(Object.prototype.hasOwnProperty.call(i,n))t[n]=i[n]};return t(i,n)};return function(i,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(i,n);function e(){this.constructor=i}i.prototype=n===null?Object.create(n):(e.prototype=n.prototype,new e)}}();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,a){function s(t){try{u(e.next(t))}catch(t){a(t)}}function o(t){try{u(e["throw"](t))}catch(t){a(t)}}function u(t){t.done?n(t.value):r(t.value).then(s,o)}u((e=e.apply(t,i||[])).next())}))};var __generator=this&&this.__generator||function(t,i){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},e,r,a,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(t){return function(i){return u([t,i])}}function u(o){if(e)throw new TypeError("Generator is already executing.");while(s&&(s=0,o[0]&&(n=0)),n)try{if(e=1,r&&(a=o[0]&2?r["return"]:o[0]?r["throw"]||((a=r["return"])&&a.call(r),0):r.next)&&!(a=a.call(r,o[1])).done)return a;if(r=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:n.label++;return{value:o[1],done:false};case 5:n.label++;r=o[1];o=[0];continue;case 7:o=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){n.label=o[1];break}if(o[0]===6&&n.label<a[1]){n.label=a[1];a=o;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(o);break}if(a[2])n.ops.pop();n.trys.pop();continue}o=i.call(t,n)}catch(t){o=[6,t];r=0}finally{e=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-d67f7321.system.js","./p-6dbef894.system.js","./p-db0895e2.system.js","./p-a1f6e944.system.js","./p-bf139fe5.system.js","./p-4d807f18.system.js","./p-23bdd8dc.system.js","./p-b52ad8d5.system.js","./p-ee3c7a38.system.js","./p-579855c6.system.js","./p-d97dc6a8.system.js","./p-b3f2c626.system.js","./p-145d5c4e.system.js"],(function(t){"use strict";var i,n,e,r,a,s,o,u,c,h,p,f,d,l,v,b;return{setters:[function(t){i=t.r;n=t.c;e=t.h;r=t.H;a=t.g},function(t){s=t._;o=t.a},function(t){u=t.B},function(t){c=t.b},function(t){h=t.s},function(t){p=t.j},function(t){f=t.L},function(t){d=t.f},function(t){l=t.L},function(t){v=t.b},function(t){b=t.c},function(){},function(){}],execute:function(){var _=function(){function t(){}t.prototype.showContainerElement=function(t){if(t.containerEl){this.showElement(t.containerEl)}};t.prototype.hideContainerElement=function(t){if(t.containerEl){this.hideElement(t.containerEl)}};t.prototype.showArrowElement=function(t,i){if(i===void 0){i=t.arrow}if(i&&t.arrowEl){this.showElement(t.arrowEl)}};t.prototype.hideArrowElement=function(t){if(t.arrowEl){Object.assign(t.arrowEl.style,{left:"",top:"",display:"none",visibility:"hidden"})}};t.prototype.showBackdropElement=function(t,i){if(i===void 0){i=t.backdrop}if(i&&t.backdropEl){this.showElement(t.backdropEl)}};t.prototype.hideBackdropElement=function(t){if(t.backdropEl){this.hideElement(t.backdropEl)}};t.prototype.showElement=function(t){if(t){t.style.setProperty("display","block");t.style.setProperty("visibility","visible")}};t.prototype.hideElement=function(t){if(t){t.style.removeProperty("display");t.style.removeProperty("visibility")}};return t}();var w=function(t){__extends(i,t);function i(){var i=t.apply(this,arguments)||this;i.backdrop=false;i.offset=0;return i}i.prototype.present=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){if(t.containerEl&&t.trigger&&t.backdropEl){this.backdrop=t.getBooleanValue(t.trigger,"bal-popup-backdrop",t.backdrop);this.offset=t.getValue(t.trigger,"bal-popup-offset",t.offset);t.containerEl.style.setProperty("inset","auto 0px 0px 0px");t.containerEl.style.setProperty("bottom","".concat(this.offset,"px"));t.backdropEl.style.setProperty("bottom","".concat(this.offset,"px"));this.showBackdropElement(t,this.backdrop);this.showContainerElement(t);return[2,true]}return[2,false]}))}))};i.prototype.update=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,false]}))}))};i.prototype.dismiss=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){if(t.containerEl&&t.backdropEl){t.balWillAnimate.emit();this.hideBackdropElement(t);this.hideContainerElement(t);t.containerEl.style.removeProperty("inset");t.containerEl.style.removeProperty("bottom");t.backdropEl.style.removeProperty("bottom");return[2,true]}return[2,false]}))}))};return i}(_);var g=function(t){__extends(i,t);function i(){var i=t.apply(this,arguments)||this;i.offset=0;return i}i.prototype.present=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){if(t.containerEl&&t.trigger){this.offset=t.getValue(t.trigger,"bal-popup-offset",t.offset);t.containerEl.style.setProperty("inset","".concat(this.offset,"px auto auto 0px"));if(this.offset>0){t.containerEl.style.setProperty("box-shadow","inset var(--bal-nav-meta-bar-variant-white-shadow)")}this.showBackdropElement(t);this.showContainerElement(t);this.hideArrowElement(t);return[2,true]}return[2,false]}))}))};i.prototype.update=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,false]}))}))};i.prototype.dismiss=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){if(t.containerEl){this.hideBackdropElement(t);this.hideContainerElement(t);this.hideArrowElement(t);t.containerEl.style.removeProperty("box-shadow");t.containerEl.style.removeProperty("inset");return[2,true]}return[2,false]}))}))};return i}(_);var m=function(t){__extends(i,t);function i(){var i=t.apply(this,arguments)||this;i.placement="bottom";i.offset=0;i.arrow=false;i.backdrop=false;i.reference=undefined;i.triggerEl=null;return i}i.prototype.present=function(t){return __awaiter(this,void 0,void 0,(function(){var i,n,e,r;var a=this;return __generator(this,(function(s){switch(s.label){case 0:return[4,v.load()];case 1:i=s.sent();if(!t.trigger&&c.hasDocument){n=Array.from(document.querySelectorAll('[bal-popup="'.concat(t.el.id,'"]')))[0];t.trigger=n}if(t.trigger&&t.containerEl&&t.arrowEl){this.placement=t.getValue(t.trigger,"bal-popup-placement",t.placement);this.arrow=t.getBooleanValue(t.trigger,"bal-popup-arrow",t.arrow);this.backdrop=t.getBooleanValue(t.trigger,"bal-popup-backdrop",t.backdrop);this.reference=t.getValue(t.trigger,"bal-popup-reference",t.reference);this.offset=t.getNumberValue(t.trigger,"bal-popup-offset",t.offset);this.triggerEl=t.trigger;if(this.reference&&c.hasDocument){e=document.getElementById(this.reference);this.triggerEl=e?e:t.trigger}if(this.triggerEl){this.showContainerElement(t);this.showBackdropElement(t,this.backdrop);this.showArrowElement(t,this.arrow);this.triggerEl.classList.add("bal-popup-variant-popover-trigger");r=this.placement==="bottom-end"&&this.triggerEl!==t.trigger;if(r){t.setMinWidth(this.triggerEl.clientWidth)}this.cleanup=i.autoUpdate(this.triggerEl,t.containerEl,(function(){a.update(t)}),{ancestorScroll:true,ancestorResize:true,elementResize:false,layoutShift:true,animationFrame:true});return[2,true]}}return[2,false]}}))}))};i.prototype.update=function(t){return __awaiter(this,void 0,void 0,(function(){var i,n,e,r,a,s,o;return __generator(this,(function(u){switch(u.label){case 0:if(!(this.triggerEl&&t.trigger&&t.containerEl&&t.arrowEl))return[3,2];return[4,v.load()];case 1:e=u.sent();r=this.placement==="bottom-end"&&this.triggerEl!==t.trigger;a=(i=this.triggerEl)===null||i===void 0?void 0:i.getBoundingClientRect();s=(n=t.trigger)===null||n===void 0?void 0:n.getBoundingClientRect();o=false;if(c.hasWindow){o=!!window.frameElement}e.computePosition(this.triggerEl,t.containerEl,{placement:this.placement,middleware:[o?undefined:e.shift(),e.flip(),e.offset(this.arrow?16:this.offset),e.arrow({element:t.arrowEl,padding:4})]}).then((function(i){var n,e;var o=i.x,u=i.y,c=i.middlewareData,h=i.placement;if(t.containerEl){Object.assign(t.containerEl.style,{left:"".concat(o,"px"),top:"".concat(u,"px")});var p=h.split("-")[0];var f={top:"bottom",right:"left",bottom:"top",left:"right"}[p];if(c.arrow&&t.arrowEl){var d=c.arrow;if(r){var l=a.right-s.right-4;Object.assign(t.arrowEl.style,(n={right:"".concat(l+s.width/2,"px"),left:"",top:u!=null&&d.y!=null?"".concat(d.y,"px"):"",bottom:""},n[f]="".concat(-4,"px"),n))}else{Object.assign(t.arrowEl.style,(e={left:o!=null&&d.x!=null?"".concat(d.x,"px"):"",top:u!=null&&d.y!=null?"".concat(d.y,"px"):"",right:"",bottom:""},e[f]="".concat(-4,"px"),e))}}}}));return[2,true];case 2:return[2,false]}}))}))};i.prototype.dismiss=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){if(t.containerEl&&t.arrowEl&&this.triggerEl){if(this.cleanup){this.cleanup()}this.triggerEl.classList.remove("bal-popup-variant-popover-trigger");this.hideBackdropElement(t);this.hideContainerElement(t);this.hideArrowElement(t);return[2,true]}return[2,false]}))}))};return i}(_);var y=function(){function t(t){this.renderer=t}t.prototype.present=function(t){return __awaiter(this,void 0,void 0,(function(){var i;return __generator(this,(function(n){switch(n.label){case 0:t.balWillAnimate.emit();return[4,this.renderer.present(t)];case 1:i=n.sent();if(i){t.presented=true;t.balDidAnimate.emit()}return[2,i]}}))}))};t.prototype.update=function(t){return __awaiter(this,void 0,void 0,(function(){var i;return __generator(this,(function(n){switch(n.label){case 0:t.balWillAnimate.emit();return[4,this.renderer.update(t)];case 1:i=n.sent();if(i){t.balDidAnimate.emit()}return[2,i]}}))}))};t.prototype.dismiss=function(t){return __awaiter(this,void 0,void 0,(function(){var i;return __generator(this,(function(n){switch(n.label){case 0:t.balWillAnimate.emit();return[4,this.renderer.dismiss(t)];case 1:i=n.sent();if(i){t.presented=false;t.balDidAnimate.emit()}return[2,i]}}))}))};return t}();var x=":root{--bal-popup-backdrop-background:rgba(0,7,57,.8);--bal-popup-container-padding-top:0;--bal-popup-container-padding-bottom:0;--bal-popup-container-background:var(--bal-color-white);--bal-popup-variant-popover-max-width:auto;--bal-popup-variant-popover-radius:var(--bal-radius-large);--bal-popup-variant-popover-shadow:var(--bal-shadow-normal);--bal-popup-variant-drawer-radius:var(--bal-radius-large);--bal-popup-arrow-background:var(--bal-color-white)}.bal-popup{position:static;display:inline;z-index:var(--bal-z-index-popup)}.bal-popup__container{background:var(--bal-popup-container-background);display:none;visibility:hidden;padding-top:var(--bal-popup-container-padding-top);padding-bottom:var(--bal-popup-container-padding-bottom);-ms-flex-positive:1;flex-grow:1;margin:0 auto;position:relative;width:auto}.bal-popup__container--variant-popover{border-radius:var(--bal-popup-variant-popover-radius);-webkit-box-shadow:var(--bal-popup-variant-popover-shadow);box-shadow:var(--bal-popup-variant-popover-shadow);width:var(--bal-popup-variant-popover-max-width);position:absolute;top:0;left:0}.bal-popup__container--variant-fullscreen{position:fixed;margin:0;width:100%;min-width:100%;max-width:100% !important;min-height:var(--bal-app-height, 100%)}.bal-popup__container--variant-fullscreen .bal-popup__inner{padding-left:var(--bal-container-space);padding-right:var(--bal-container-space)}.bal-popup__container--variant-drawer{position:fixed;border-top-left-radius:var(--bal-popup-variant-drawer-radius);border-top-right-radius:var(--bal-popup-variant-drawer-radius);padding-left:var(--bal-container-space);padding-right:var(--bal-container-space);width:100%}.bal-popup__inner{overflow-y:auto;max-height:calc(var(--bal-app-height, 100%) - 4rem)}.bal-popup__inner__head{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bal-popup__inner__content{width:100%}.bal-popup__arrow{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:absolute;width:8px;height:8px;background:var(--bal-popup-arrow-background);-webkit-transform:rotate(45deg);transform:rotate(45deg);display:none;visibility:hidden}.bal-popup__backdrop{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:fixed;bottom:0;left:0;right:0;top:0;background-color:var(--bal-popup-backdrop-background);width:100vw;display:none;visibility:hidden}.bal-popup-variant-popover-trigger,.bal-popup-permanent-trigger{z-index:calc(var(--bal-z-index-popup) + 1) !important;position:relative !important}";var k=x;var j=t("bal_popup",function(){function t(t){var e=this;i(this,t);this.balChange=n(this,"balChange",7);this.balWillAnimate=n(this,"balWillAnimate",7);this.balDidAnimate=n(this,"balDidAnimate",7);this.popupId="bal-pu-".concat(O++);this.isClickedOutsideOnMouseDown=false;this.isClickedOutsideOnMouseUp=false;this.popoverVariantRenderer=new y(new m);this.fullscreenVariantRenderer=new y(new g);this.drawerVariantRenderer=new y(new w);this.lastVariant="popover";this.initialActive=this.active;this.debouncedGlobalClick=p((function(t){return e.notifyGlobalClick(t)}),10);this.onBackdropClick=function(t){if(e.activeBackdropDismiss&&e.presented&&t&&t.target){var i=t.target;return i.classList.contains("bal-popup__backdrop")}return false};this.onCloseClick=function(){if(e.activeClosable){e.dismiss()}};this.activeClosable=false;this.activeBackdropDismiss=false;this.activeVariant="popover";this.trigger=undefined;this.lastTrigger=undefined;this.minContainerWidth=0;this.label="";this.reference=undefined;this.variant="popover";this.placement="bottom";this.arrow=false;this.backdrop=false;this.offset=0;this.closable=false;this.backdropDismiss=false;this.active=false;this.presented=false;this.contentWidth=undefined;this.demo=false}t.prototype.createLogger=function(t){this.log=t};t.prototype.variantChanged=function(t,i){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){switch(n.label){case 0:if(!(t!==i))return[3,5];return[4,this.getVariantRenderer(i).dismiss(this)];case 1:n.sent();if(!(this.activeVariant!==t))return[3,3];this.lastVariant=this.activeVariant;this.activeVariant=t;return[4,this.getVariantRenderer(this.lastVariant).dismiss(this)];case 2:n.sent();n.label=3;case 3:if(!this.presented)return[3,5];return[4,this.getVariantRenderer(t).present(this)];case 4:n.sent();n.label=5;case 5:return[2]}}))}))};t.prototype.activeChanged=function(t,i){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){if(t!==i&&t!==this.presented){if(t){this.present()}else{this.dismiss()}}return[2]}))}))};t.prototype.contentWidthChanged=function(t,i){if(t!==i){if(t===undefined){this.el.style.removeProperty("--bal-popup-variant-popover-max-width")}else{this.el.style.setProperty("--bal-popup-variant-popover-max-width","".concat(this.contentWidth,"px"))}}};t.prototype.componentDidLoad=function(){this.contentWidthChanged(this.contentWidth,0);if(this.initialActive===true&&this.presented!==true){this.present()}if(this.demo){this.present()}};t.prototype.listenOnGlobalClick=function(t){return __awaiter(this,void 0,void 0,(function(){var i,n,e,r;return __generator(this,(function(a){n=t.target;e=n.closest("[bal-popup]");if(e&&c.hasWindow){r=((i=e.attributes.getNamedItem("bal-popup"))===null||i===void 0?void 0:i.nodeValue)||"";if(this.el.id===r){this.debouncedGlobalClick(e)}}return[2]}))}))};t.prototype.listenOnKeyDown=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){if(this.activeClosable&&this.presented&&b(t)){h(t);this.dismiss()}return[2]}))}))};t.prototype.listenOnMouseDown=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){this.isClickedOutsideOnMouseDown=this.onBackdropClick(t);return[2]}))}))};t.prototype.listenOnMouseUp=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){this.isClickedOutsideOnMouseUp=this.onBackdropClick(t);return[2]}))}))};t.prototype.listenOnComponentClick=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(!(this.presented&&this.activeBackdropDismiss&&this.isClickedOutsideOnMouseUp&&this.isClickedOutsideOnMouseDown))return[3,2];return[4,this.dismiss()];case 1:t.sent();t.label=2;case 2:return[2]}}))}))};t.prototype.present=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,this.resetAllVariants()];case 1:t.sent();return[4,this._present()];case 2:if(t.sent()){this.lastTrigger=this.trigger;this.balChange.emit(this.presented)}return[2]}}))}))};t.prototype.dismiss=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,this.resetAllVariants()];case 1:t.sent();return[4,this._dismiss()];case 2:if(t.sent()){this.lastTrigger=this.trigger;this.balChange.emit(this.presented)}return[2]}}))}))};t.prototype.toggle=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.presented){return[2,this.dismiss()]}else{return[2,this.present()]}return[2]}))}))};t.prototype.setMinWidth=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){if(this.containerEl){this.containerEl.style.minWidth="".concat(t,"px");this.minContainerWidth=t}return[2]}))}))};t.prototype._emitChange=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.balChange.emit(this.presented);return[2]}))}))};t.prototype._present=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(i){switch(i.label){case 0:if(c.hasDocument){this.lastFocus=document.activeElement||undefined}if(!this.lastVariantRenderer)return[3,2];return[4,this.lastVariantRenderer.dismiss(this)];case 1:i.sent();this.presented=true;i.label=2;case 2:this.lastVariantRenderer=this.getVariantRenderer();return[4,this.lastVariantRenderer.present(this)];case 3:t=i.sent();this.focusFirstDescendant();return[2,t]}}))}))};t.prototype._dismiss=function(){return __awaiter(this,void 0,void 0,(function(){var t,i;return __generator(this,(function(n){switch(n.label){case 0:return[4,this.getVariantRenderer().dismiss(this)];case 1:i=n.sent();this.lastVariantRenderer=undefined;if(this.lastFocus&&this.lastFocus.focus){(t=this.lastFocus)===null||t===void 0?void 0:t.focus()}return[2,i]}}))}))};t.prototype.getVariantRenderer=function(t){if(t===void 0){t=this.activeVariant}switch(t){case"fullscreen":return this.fullscreenVariantRenderer;case"drawer":return this.drawerVariantRenderer;default:return this.popoverVariantRenderer}};t.prototype.getValue=function(t,i,n){var e=t.attributes.getNamedItem(i);return e?e.value:n};t.prototype.getNumberValue=function(t,i,n){var e=t.attributes.getNamedItem(i);if(e){return parseInt(e.value,10)||n}return n};t.prototype.getBooleanValue=function(t,i,n){var e=t.attributes.getNamedItem(i);if(e){var r=e.value===""||e.value==="true"?true:false;return e?r:n}return n};t.prototype.notifyGlobalClick=function(t){this.trigger=t;this.lastTrigger=this.lastTrigger===undefined?this.trigger:this.lastTrigger;this.activeVariant=this.getValue(t,"bal-popup-variant",this.variant);this.activeClosable=this.getBooleanValue(t,"bal-popup-closable",this.closable);this.activeBackdropDismiss=this.getBooleanValue(t,"bal-popup-backdrop-dismiss",this.backdropDismiss);if(this.presented&&this.lastTrigger!==this.trigger){this._present();this.lastTrigger=this.trigger}else{this.toggle()}};t.prototype.resetAllVariants=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(i){switch(i.label){case 0:return[4,this.dismissAllOtherPopups()];case 1:i.sent();if(!(this.lastVariant!==this.activeVariant))return[3,3];t=this.getVariantRenderer(this.lastVariant);return[4,t.dismiss(this)];case 2:i.sent();i.label=3;case 3:this.lastVariant=this.activeVariant;return[2]}}))}))};t.prototype.dismissAllOtherPopups=function(){return __awaiter(this,void 0,void 0,(function(){var t,i,n;var e=this;return __generator(this,(function(r){switch(r.label){case 0:if(!c.hasDocument)return[3,5];t=Array.from(document.getElementsByTagName("bal-popup")).filter((function(t){return t.id!==e.el.id&&t.ariaHidden!=="true"}));i=0;r.label=1;case 1:if(!(i<t.length))return[3,5];n=t[i];return[4,n._dismiss()];case 2:r.sent();return[4,n._emitChange()];case 3:r.sent();r.label=4;case 4:i++;return[3,1];case 5:return[2]}}))}))};t.prototype.focusFirstDescendant=function(){var t=this.el;var i=t.querySelector(d);if(i){i.focus()}else{t.focus()}};t.prototype.render=function(){var t=this;var i=u.block("popup");var n=i.element("container");var a=i.element("arrow");var s=i.element("backdrop");var o=i.element("inner");var c=o.element("head");var h=o.element("content");return e(r,{key:"bf7416d06bf9b78fb1f45474dbadbdaef3716fa9",class:Object.assign({},i.class()),role:"dialog","aria-hidden":"".concat(this.presented!==true),"aria-modal":"".concat(this.presented===true),"aria-presented":"".concat(this.presented===true),"aria-labelledby":"".concat(this.popupId,"-heading")},e("div",{key:"907ceff3eeb00380ba075a1c942c9593fa66d828",class:Object.assign({},s.class()),ref:function(i){return t.backdropEl=i}}),e("div",{key:"a07c2e70f1964142896ab0e2dddda63212d6e7a6",class:Object.assign(Object.assign({},n.class()),n.modifier("variant-".concat(this.activeVariant)).class()),ref:function(i){return t.containerEl=i},style:{minWidth:"".concat(this.minContainerWidth,"px")}},e("div",{key:"09fbe89593e72dfa5eda05ce017dbfdaa368ab6c",class:Object.assign({},a.class()),ref:function(i){return t.arrowEl=i}}),e("bal-stack",{key:"486d20a16eef12b6398235a15d6771924d9909b2",layout:"vertical",px:this.activeVariant==="popover"?"medium":"none",py:"medium",class:Object.assign({},o.class())},this.label?e("bal-stack",{space:"auto",class:Object.assign({},c.class())},e("bal-heading",{"data-test":"bal-popup-label",level:"span","visual-level":"large",id:"".concat(this.popupId,"-heading")},this.label),this.activeClosable?e("bal-close",{"data-test":"bal-popup-close",tabindex:-1,onClick:function(){return t.onCloseClick()}}):""):"",e("div",{key:"d7210ff5af9647dbe4d176e00c7af06943bdd51a",class:Object.assign({},h.class()),ref:function(i){return t.contentEl=i},"data-test":"bal-popup-content"},e("slot",{key:"974459f017b51844019872313636f7055357f2e1"})))))};Object.defineProperty(t.prototype,"el",{get:function(){return a(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{variant:["variantChanged"],active:["activeChanged"],contentWidth:["contentWidthChanged"]}},enumerable:false,configurable:true});return t}());s([f("bal-popup"),o("design:type",Function),o("design:paramtypes",[Function]),o("design:returntype",void 0)],j.prototype,"createLogger",null);s([l("click",{target:"window"}),o("design:type",Function),o("design:paramtypes",[MouseEvent]),o("design:returntype",Promise)],j.prototype,"listenOnGlobalClick",null);s([l("keydown",{target:"document"}),o("design:type",Function),o("design:paramtypes",[KeyboardEvent]),o("design:returntype",Promise)],j.prototype,"listenOnKeyDown",null);s([l("mousedown"),o("design:type",Function),o("design:paramtypes",[MouseEvent]),o("design:returntype",Promise)],j.prototype,"listenOnMouseDown",null);s([l("mouseup"),o("design:type",Function),o("design:paramtypes",[MouseEvent]),o("design:returntype",Promise)],j.prototype,"listenOnMouseUp",null);s([l("click"),o("design:type",Function),o("design:paramtypes",[]),o("design:returntype",Promise)],j.prototype,"listenOnComponentClick",null);var O=0;j.style=k}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{L as s,a as t}from"./p-acf222fd.js";import{b as i}from"./p-a65354df.js";import{j as e}from"./p-33101c54.js";class n extends s{constructor(){super(...arguments),this.debouncedNotify=e((()=>this.notify()),10)}connect(s){var t;super.connect(s),"undefined"!=typeof ResizeObserver&&(void 0!==this.resizeObserver&&(null===(t=this.resizeObserver)||void 0===t||t.disconnect(),this.resizeObserver=void 0),this.resizeObserver=new ResizeObserver((s=>{i.hasWindow&&window.requestAnimationFrame((()=>{Array.isArray(s)&&s.length&&this.debouncedNotify()}))})),this.resizeObserver.observe(s))}disconnect(){var s;super.disconnect(),null===(s=this.resizeObserver)||void 0===s||s.disconnect(),this.resizeObserver=void 0}}class r extends t{constructor(){super((s=>{s.resizeListener({})})),this.listener=new n}attach(s){super.attach(s),this.listener.connect(s.el),this.listener.add((s=>super.notify(s)))}detach(){super.detach(),this.listener.disconnect()}}function o(){return function(s){const{connectedCallback:t,disconnectedCallback:i}=s;s.connectedCallback=function(){return this._balResizeSubject||(this._balResizeSubject=new r,this._balResizeSubject.attach(this)),t&&t.call(this)},s.disconnectedCallback=function(){return this._balResizeSubject&&(this._balResizeSubject.detach(),this._balResizeSubject=void 0),i&&i.call(this)}}}export{o as L}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as i,h as e,H as r,g as s}from"./p-2539ba43.js";import{_ as n,a as o}from"./p-43c9f5e9.js";import{c as a}from"./p-4573c419.js";import{f as h}from"./p-4dad7840.js";import{m as f,o as u}from"./p-33101c54.js";import{i as c}from"./p-dd5e13d1.js";import{s as l,h as p}from"./p-63b52c0f.js";import{B as d}from"./p-ae86d0a0.js";import{d as b}from"./p-f385e205.js";import{i as m}from"./p-ad81b8ea.js";import{L as w}from"./p-b77e3348.js";import{L as g}from"./p-af4c6af2.js";import{d as v}from"./p-a19d1e1d.js";import{L as y}from"./p-69e7c8d6.js";import"./p-aafb6696.js";import"./p-a65354df.js";import"./p-2229e98e.js";var j,k={exports:{}};j=k,function(t){var i,e=1e6,r="[big.js] ",s=r+"Invalid ",n=s+"decimal places",o=s+"rounding mode",a=r+"Division by zero",h={},f=void 0,u=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function c(t,i,e,r){var s=t.c;if(e===f&&(e=t.constructor.RM),0!==e&&1!==e&&2!==e&&3!==e)throw Error(o);if(i<1)r=3===e&&(r||!!s[0])||0===i&&(1===e&&s[0]>=5||2===e&&(s[0]>5||5===s[0]&&(r||s[1]!==f))),s.length=1,r?(t.e=t.e-i+1,s[0]=1):s[0]=t.e=0;else if(i<s.length){if(r=1===e&&s[i]>=5||2===e&&(s[i]>5||5===s[i]&&(r||s[i+1]!==f||1&s[i-1]))||3===e&&(r||!!s[0]),s.length=i,r)for(;++s[--i]>9;)if(s[i]=0,0===i){++t.e,s.unshift(1);break}for(i=s.length;!s[--i];)s.pop()}return t}function l(t,i,e){var r=t.e,s=t.c.join(""),n=s.length;if(i)s=s.charAt(0)+(n>1?"."+s.slice(1):"")+(r<0?"e":"e+")+r;else if(r<0){for(;++r;)s="0"+s;s="0."+s}else if(r>0)if(++r>n)for(r-=n;r--;)s+="0";else r<n&&(s=s.slice(0,r)+"."+s.slice(r));else n>1&&(s=s.charAt(0)+"."+s.slice(1));return t.s<0&&e?"-"+s:s}h.abs=function(){var t=new this.constructor(this);return t.s=1,t},h.cmp=function(t){var i,e=this,r=e.c,s=(t=new e.constructor(t)).c,n=e.s,o=t.s,a=e.e,h=t.e;if(!r[0]||!s[0])return r[0]?n:s[0]?-o:0;if(n!=o)return n;if(i=n<0,a!=h)return a>h^i?1:-1;for(o=(a=r.length)<(h=s.length)?a:h,n=-1;++n<o;)if(r[n]!=s[n])return r[n]>s[n]^i?1:-1;return a==h?0:a>h^i?1:-1},h.div=function(t){var i=this,r=i.constructor,s=i.c,o=(t=new r(t)).c,h=i.s==t.s?1:-1,u=r.DP;if(u!==~~u||u<0||u>e)throw Error(n);if(!o[0])throw Error(a);if(!s[0])return t.s=h,t.c=[t.e=0],t;var l,p,d,b,m,w=o.slice(),g=l=o.length,v=s.length,y=s.slice(0,l),j=y.length,k=t,E=k.c=[],x=0,_=u+(k.e=i.e-t.e)+1;for(k.s=h,h=_<0?0:_,w.unshift(0);j++<l;)y.push(0);do{for(d=0;d<10;d++){if(l!=(j=y.length))b=l>j?1:-1;else for(m=-1,b=0;++m<l;)if(o[m]!=y[m]){b=o[m]>y[m]?1:-1;break}if(!(b<0))break;for(p=j==l?o:w;j;){if(y[--j]<p[j]){for(m=j;m&&!y[--m];)y[m]=9;--y[m],y[j]+=10}y[j]-=p[j]}for(;!y[0];)y.shift()}E[x++]=b?d:++d,y[0]&&b?y[j]=s[g]||0:y=[s[g]]}while((g++<v||y[0]!==f)&&h--);return E[0]||1==x||(E.shift(),k.e--,_--),x>_&&c(k,_,r.RM,y[0]!==f),k},h.eq=function(t){return 0===this.cmp(t)},h.gt=function(t){return this.cmp(t)>0},h.gte=function(t){return this.cmp(t)>-1},h.lt=function(t){return this.cmp(t)<0},h.lte=function(t){return this.cmp(t)<1},h.minus=h.sub=function(t){var i,e,r,s,n=this,o=n.constructor,a=n.s,h=(t=new o(t)).s;if(a!=h)return t.s=-h,n.plus(t);var f=n.c.slice(),u=n.e,c=t.c,l=t.e;if(!f[0]||!c[0])return c[0]?t.s=-h:f[0]?t=new o(n):t.s=1,t;if(a=u-l){for((s=a<0)?(a=-a,r=f):(l=u,r=c),r.reverse(),h=a;h--;)r.push(0);r.reverse()}else for(e=((s=f.length<c.length)?f:c).length,a=h=0;h<e;h++)if(f[h]!=c[h]){s=f[h]<c[h];break}if(s&&(r=f,f=c,c=r,t.s=-t.s),(h=(e=c.length)-(i=f.length))>0)for(;h--;)f[i++]=0;for(h=i;e>a;){if(f[--e]<c[e]){for(i=e;i&&!f[--i];)f[i]=9;--f[i],f[e]+=10}f[e]-=c[e]}for(;0===f[--h];)f.pop();for(;0===f[0];)f.shift(),--l;return f[0]||(t.s=1,f=[l=0]),t.c=f,t.e=l,t},h.mod=function(t){var i,e=this,r=e.constructor,s=e.s,n=(t=new r(t)).s;if(!t.c[0])throw Error(a);return e.s=t.s=1,i=1==t.cmp(e),e.s=s,t.s=n,i?new r(e):(s=r.DP,n=r.RM,r.DP=r.RM=0,e=e.div(t),r.DP=s,r.RM=n,this.minus(e.times(t)))},h.neg=function(){var t=new this.constructor(this);return t.s=-t.s,t},h.plus=h.add=function(t){var i,e,r,s=this,n=s.constructor;if(t=new n(t),s.s!=t.s)return t.s=-t.s,s.minus(t);var o=s.e,a=s.c,h=t.e,f=t.c;if(!a[0]||!f[0])return f[0]||(a[0]?t=new n(s):t.s=s.s),t;if(a=a.slice(),i=o-h){for(i>0?(h=o,r=f):(i=-i,r=a),r.reverse();i--;)r.push(0);r.reverse()}for(a.length-f.length<0&&(r=f,f=a,a=r),i=f.length,e=0;i;a[i]%=10)e=(a[--i]=a[i]+f[i]+e)/10|0;for(e&&(a.unshift(e),++h),i=a.length;0===a[--i];)a.pop();return t.c=a,t.e=h,t},h.pow=function(t){var i=this,e=new i.constructor("1"),r=e,n=t<0;if(t!==~~t||t<-1e6||t>1e6)throw Error(s+"exponent");for(n&&(t=-t);1&t&&(r=r.times(i)),t>>=1;)i=i.times(i);return n?e.div(r):r},h.prec=function(t,i){if(t!==~~t||t<1||t>e)throw Error(s+"precision");return c(new this.constructor(this),t,i)},h.round=function(t,i){if(t===f)t=0;else if(t!==~~t||t<-e||t>e)throw Error(n);return c(new this.constructor(this),t+this.e+1,i)},h.sqrt=function(){var t,i,e,s=this,n=s.constructor,o=s.s,a=s.e,h=new n("0.5");if(!s.c[0])return new n(s);if(o<0)throw Error(r+"No square root");0===(o=Math.sqrt(s+""))||o===1/0?((i=s.c.join("")).length+a&1||(i+="0"),a=((a+1)/2|0)-(a<0||1&a),t=new n(((o=Math.sqrt(i))==1/0?"5e":(o=o.toExponential()).slice(0,o.indexOf("e")+1))+a)):t=new n(o+""),a=t.e+(n.DP+=4);do{t=h.times((e=t).plus(s.div(e)))}while(e.c.slice(0,a).join("")!==t.c.slice(0,a).join(""));return c(t,(n.DP-=4)+t.e+1,n.RM)},h.times=h.mul=function(t){var i,e=this,r=e.c,s=(t=new(0,e.constructor)(t)).c,n=r.length,o=s.length,a=e.e,h=t.e;if(t.s=e.s==t.s?1:-1,!r[0]||!s[0])return t.c=[t.e=0],t;for(t.e=a+h,n<o&&(i=r,r=s,s=i,h=n,n=o,o=h),i=new Array(h=n+o);h--;)i[h]=0;for(a=o;a--;){for(o=0,h=n+a;h>a;)o=i[h]+s[a]*r[h-a-1]+o,i[h--]=o%10,o=o/10|0;i[h]=o}for(o?++t.e:i.shift(),a=i.length;!i[--a];)i.pop();return t.c=i,t},h.toExponential=function(t,i){var r=this,s=r.c[0];if(t!==f){if(t!==~~t||t<0||t>e)throw Error(n);for(r=c(new r.constructor(r),++t,i);r.c.length<t;)r.c.push(0)}return l(r,!0,!!s)},h.toFixed=function(t,i){var r=this,s=r.c[0];if(t!==f){if(t!==~~t||t<0||t>e)throw Error(n);for(t=t+(r=c(new r.constructor(r),t+r.e+1,i)).e+1;r.c.length<t;)r.c.push(0)}return l(r,!1,!!s)},h.toJSON=h.toString=function(){var t=this,i=t.constructor;return l(t,t.e<=i.NE||t.e>=i.PE,!!t.c[0])},h.toNumber=function(){var t=Number(l(this,!0,!0));if(!0===this.constructor.strict&&!this.eq(t.toString()))throw Error(r+"Imprecise conversion");return t},h.toPrecision=function(t,i){var r=this,n=r.constructor,o=r.c[0];if(t!==f){if(t!==~~t||t<1||t>e)throw Error(s+"precision");for(r=c(new n(r),t,i);r.c.length<t;)r.c.push(0)}return l(r,t<=r.e||r.e<=n.NE||r.e>=n.PE,!!o)},h.valueOf=function(){var t=this,i=t.constructor;if(!0===i.strict)throw Error(r+"valueOf disallowed");return l(t,t.e<=i.NE||t.e>=i.PE,!0)},(i=function t(){function i(e){var r=this;if(!(r instanceof i))return e===f?t():new i(e);if(e instanceof i)r.s=e.s,r.e=e.e,r.c=e.c.slice();else{if("string"!=typeof e){if(!0===i.strict&&"bigint"!=typeof e)throw TypeError(s+"value");e=0===e&&1/e<0?"-0":String(e)}!function(t,i){var e,r,n;if(!u.test(i))throw Error(s+"number");for(t.s="-"==i.charAt(0)?(i=i.slice(1),-1):1,(e=i.indexOf("."))>-1&&(i=i.replace(".","")),(r=i.search(/e/i))>0?(e<0&&(e=r),e+=+i.slice(r+1),i=i.substring(0,r)):e<0&&(e=i.length),n=i.length,r=0;r<n&&"0"==i.charAt(r);)++r;if(r==n)t.c=[t.e=0];else{for(;n>0&&"0"==i.charAt(--n););for(t.e=e-r-1,t.c=[],e=0;r<=n;)t.c[e++]=+i.charAt(r++)}}(r,e)}r.constructor=i}return i.prototype=h,i.DP=20,i.RM=1,i.NE=-7,i.PE=21,i.strict=!1,i.roundDown=0,i.roundHalfUp=1,i.roundHalfEven=2,i.roundUp=3,i}()).default=i.Big=i,j.exports?j.exports=i:t.Big=i}(a);const E=k.exports,x=class{constructor(e){t(this,e),this.balChange=i(this,"balChange",7),this.balInput=i(this,"balInput",7),this.balIncrease=i(this,"balIncrease",7),this.balDecrease=i(this,"balDecrease",7),this.balFocus=i(this,"balFocus",7),this.balBlur=i(this,"balBlur",7),this.inputId="bal-input-stepper-"+_++,this.inheritedAttributes={},this.decreaseHasFocus=!1,this.increaseHasFocus=!1,this.initialValue=0,this.onFocusDecrease=t=>{this.decreaseHasFocus=!0,this.onFocus(t)},this.onFocusIncrease=t=>{this.increaseHasFocus=!0,this.onFocus(t)},this.onFocus=t=>{l(t),this.balFocus.emit(t.detail)},this.onBlurDecrease=t=>{l(t),this.decreaseHasFocus=!1,f((()=>this.onBlur(t.detail)))},this.onBlurIncrease=t=>{l(t),this.increaseHasFocus=!1,f((()=>this.onBlur(t.detail)))},this.onBlur=t=>{this.decreaseHasFocus||this.increaseHasFocus||this.balBlur.emit(t)},this.focused=!1,this.language=v.language,this.region=v.region,this.ariaForm=b,this.name=this.inputId,this.min=0,this.max=10,this.steps=1,this.disabled=!1,this.readonly=!1,this.invalid=!1,this.debounce=0,this.value=0,this.autoInvalidOff=!1}createLogger(t){this.log=t}debounceChanged(){this.balChange=u(this.balChange,this.debounce)}listenOnClick(t){p(this,t)}resetHandler(t){const i=t.target;(null==i?void 0:i.contains(this.el))&&(this.value=this.initialValue)}connectedCallback(){this.debounceChanged(),this.initialValue=this.value}componentWillLoad(){this.inheritedAttributes=c(this.el,["aria-label","tabindex","title"])}async configChanged(t){this.language=t.language,this.region=t.region}getInputElement(){return Promise.resolve(this.nativeInput)}async setAriaForm(t){this.ariaForm=Object.assign({},t)}increase(){if(!this.disabled&&!this.readonly){const t=new E(this.value).plus(this.steps).toNumber();t<=this.max&&(this.value=t,this.balInput.emit(t),this.balChange.emit(t),this.balIncrease.emit(t))}}decrease(){if(!this.disabled&&!this.readonly){const t=new E(this.value).minus(this.steps).toNumber();t>=this.min&&(this.value=t,this.balInput.emit(t),this.balChange.emit(t),this.balDecrease.emit(t))}}render(){const t=d.block("input-stepper"),i=t.element("input"),s=t.element("inner"),n=s.element("text"),o=m[this.language].increase,a=m[this.language].decrease;return e(r,{key:"3c4501c097383b348798014ca2c6ebee2517d49a","aria-disabled":this.disabled?"true":null,"aria-focused":this.focused?"true":null,class:Object.assign({},t.class())},e("div",{key:"b241b171bc4e1c0b9c7e4d287f00892f4cfe6435",class:Object.assign({},s.class())},e("bal-button",{key:"214a9e4c9659e2a44c015ad532bcb56fe498f229",aria:{title:a,label:a,controls:this.ariaForm.controlId||this.inputId},size:"small",square:!0,"data-testid":"bal-input-stepper-decrease",outlined:!this.invalid,icon:"minus",color:this.invalid?"danger":"info",disabled:this.disabled||this.readonly||this.value<=this.min,onClick:()=>this.decrease(),onBalFocus:t=>this.onFocusDecrease(t),onBalBlur:t=>this.onBlurDecrease(t)}),e("bal-text",{key:"ac23ae81d6bc44eb628e7767ea7014a3f96a1919",space:"none",color:this.disabled||this.readonly?"grey":this.invalid?"danger":"",bold:!0,class:Object.assign({},n.class()),"data-testid":"bal-input-stepper-text"},h(this.value)),e("bal-button",{key:"6a2a9a3899a073564b1d09f0565967e75802a942",aria:{title:o,label:o,controls:this.ariaForm.controlId||this.inputId},size:"small","data-testid":"bal-input-stepper-increase",square:!0,outlined:!this.invalid,icon:"plus",color:this.invalid?"danger":"info",disabled:this.disabled||this.readonly||this.value>=this.max,onClick:()=>this.increase(),onBalFocus:t=>this.onFocusIncrease(t),onBalBlur:t=>this.onBlurIncrease(t)})),e("input",Object.assign({key:"3e788f6e10b325e0e60871c9920a513074b51dc3",class:Object.assign({},i.class()),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":this.disabled?"true":null,"data-testid":"bal-input-stepper",type:"text",value:this.value,name:this.name,tabindex:"-1",ref:t=>this.nativeInput=t,readonly:this.readonly,disabled:this.disabled},this.inheritedAttributes)))}get el(){return s(this)}static get watchers(){return{debounce:["debounceChanged"]}}};n([w("bal-input-stepper"),o("design:type",Function),o("design:paramtypes",[Function]),o("design:returntype",void 0)],x.prototype,"createLogger",null),n([g("click",{capture:!0,target:"document"}),o("design:type",Function),o("design:paramtypes",[UIEvent]),o("design:returntype",void 0)],x.prototype,"listenOnClick",null),n([g("reset",{capture:!0,target:"document"}),o("design:type",Function),o("design:paramtypes",[UIEvent]),o("design:returntype",void 0)],x.prototype,"resetHandler",null),n([y(),o("design:type",Function),o("design:paramtypes",[Object]),o("design:returntype",Promise)],x.prototype,"configChanged",null);let _=0;x.style=".bal-input-stepper{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:static;display:inline-block}.bal-input-stepper__inner{display:-ms-flexbox;display:flex;gap:.25rem;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.bal-input-stepper__inner__text{min-width:3rem;text-align:center}.bal-input-stepper__input{position:absolute;width:0;height:0;left:0;top:0;margin:0;padding:0;opacity:0;outline:0}";export{x as bal_input_stepper}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./p-65b542bd.system.js"],(function(t){"use strict";var e;return{setters:[function(t){e=t.i}],execute:function(){function n(){e()}var s=t("g",n)}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,n,i,e){function r(t){return t instanceof i?t:new i((function(n){n(t)}))}return new(i||(i=Promise))((function(i,o){function s(t){try{c(e.next(t))}catch(t){o(t)}}function u(t){try{c(e["throw"](t))}catch(t){o(t)}}function c(t){t.done?i(t.value):r(t.value).then(s,u)}c((e=e.apply(t,n||[])).next())}))};var __generator=this&&this.__generator||function(t,n){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},e,r,o,s;return s={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function u(t){return function(n){return c([t,n])}}function c(u){if(e)throw new TypeError("Generator is already executing.");while(s&&(s=0,u[0]&&(i=0)),i)try{if(e=1,r&&(o=u[0]&2?r["return"]:u[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;if(r=0,o)u=[u[0]&2,o.value];switch(u[0]){case 0:case 1:o=u;break;case 4:i.label++;return{value:u[1],done:false};case 5:i.label++;r=u[1];u=[0];continue;case 7:u=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){i=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(u[0]===6&&i.label<o[1]){i.label=o[1];o=u;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(u);break}if(o[2])i.ops.pop();i.trys.pop();continue}u=n.call(t,i)}catch(t){u=[6,t];r=0}finally{e=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};System.register(["./p-d67f7321.system.js","./p-6dbef894.system.js","./p-a1f6e944.system.js","./p-ec9a7cf5.system.js","./p-4d807f18.system.js","./p-23bdd8dc.system.js","./p-b52ad8d5.system.js","./p-145d5c4e.system.js","./p-b3f2c626.system.js"],(function(t){"use strict";var n,i,e,r,o,s,u,c,a,f,p,h,d,l;return{setters:[function(t){n=t.r;i=t.h;e=t.H;r=t.g},function(t){o=t._;s=t.a},function(t){u=t.b},function(t){c=t.b},function(t){a=t.j;f=t.m;p=t.l},function(t){h=t.L},function(t){d=t.s},function(t){l=t.b},function(){}],execute:function(){var y=":root{--bal-app-height:100%}.bal-app{position:relative;display:block}.lcp-wait{opacity:0;visibility:hidden;display:none}.lcp-ready .lcp-wait{opacity:inherit;visibility:inherit;display:inherit}";var b=y;var v=t("bal_app",function(){function t(t){var i=this;n(this,t);this.debouncedNotify=a((function(){return i.notifyResize()}),100);this.notifyResize=function(){return __awaiter(i,void 0,void 0,(function(){var t;return __generator(this,(function(n){if(u.hasDocument&&u.hasWindow){t=document.documentElement;t.style.setProperty("--bal-app-height","".concat(window.innerHeight,"px"))}return[2]}))}))};this.animated=true;this.ready=false}t.prototype.createLogger=function(t){this.log=t};t.prototype.connectedCallback=function(){if(this.animated===false){l(this.animated)}if(u.hasWindow){window.addEventListener("resize",this.debouncedNotify);this.debouncedNotify()}};t.prototype.componentDidLoad=function(){var t=this;f((function(){t.ready=true;d()}));p((function(){if(u.hasDocument&&u.hasWindow){var t=document.documentElement;t.classList.add("lcp-ready")}}))};t.prototype.disconnectedCallback=function(){if(u.hasWindow){window.removeEventListener("resize",this.debouncedNotify)}};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){if(this.focusVisible){this.focusVisible.setFocus(t)}return[2]}))}))};t.prototype.render=function(){return i(e,{key:"8e124474f0e95f8fdcd4546d7998556764d81d71",class:{"bal-app":true,"bal-app--safari":u.isSafari,"bal-app--touch":c.hasTouchScreen}},i("slot",{key:"e4a8974a3f55ec71c4ff7c46f2a9728d7efd4408"}))};Object.defineProperty(t.prototype,"el",{get:function(){return r(this)},enumerable:false,configurable:true});return t}());o([h("bal-app"),s("design:type",Function),s("design:paramtypes",[Function]),s("design:returntype",void 0)],v.prototype,"createLogger",null);v.style=b}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as a,h as e,H as t,g as l}from"./p-2539ba43.js";import{B as s}from"./p-ae86d0a0.js";const b=class{constructor(e){a(this,e),this.expanded=!1}render(){const a=s.block("table"),l=this.expanded;return e(t,{key:"1059612d6670d6a8c333a6903dfa1ffff7150964",class:Object.assign(Object.assign(Object.assign({},a.class()),{"ag-theme-alpine":!0}),a.modifier("is-fullwidth").class(l))},e("slot",{key:"22d1e47908682547a1d22d17348bfb66dfd81e7a"}))}get el(){return l(this)}};b.style=".bal-table{display:block;position:static}.bal-table--is-fullwidth{display:-ms-flexbox;display:flex;width:100%}bal-checkbox .bal-radio-checkbox__label::before{top:0}bal-checkbox .bal-radio-checkbox__label::after{margin-top:0px}";export{b as bal_table}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,c as t,w as i,h as a,H as s,g as n}from"./p-2539ba43.js";import{_ as r,a as o}from"./p-43c9f5e9.js";import{B as l}from"./p-ae86d0a0.js";import{L as c}from"./p-b77e3348.js";import{s as b}from"./p-63b52c0f.js";import{F as m}from"./p-ca119357.js";import{i as d,n as h,k as g,r as p}from"./p-33101c54.js";import{d as u}from"./p-f385e205.js";import{L as v}from"./p-af4c6af2.js";import{d as f,b as k,a as x,e as y,i as _,f as w,g as j,h as O}from"./p-50927d70.js";import{L as z}from"./p-1c09c9b0.js";import{L}from"./p-7684efd8.js";import{L as F}from"./p-00281d6b.js";import{i as C}from"./p-dd5e13d1.js";import"./p-a65354df.js";import"./p-2229e98e.js";import"./p-aafb6696.js";import"./p-acf222fd.js";import"./p-fe30593a.js";import"./p-96216bd1.js";import"./p-0521dc23.js";const E=class{constructor(i){e(this,i),this.balFocus=t(this,"balFocus",7),this.balBlur=t(this,"balBlur",7),this.balChange=t(this,"balChange",7),this.balSelect=t(this,"balSelect",7),this.balVertical=t(this,"balVertical",7),this.hasFocus=!1,this.getSegmentItem=e=>{var t,i;const a=this.allItems.filter((e=>!e.disabled)),s=a.findIndex((e=>e===document.activeElement.closest("bal-segment-item")));switch(e){case"current":return a[s];case"first":return a[0];case"last":return a[a.length-1];case"next":return null!==(t=a[s+1])&&void 0!==t?t:a[0];case"previous":return null!==(i=a[s-1])&&void 0!==i?i:a[a.length-1];default:return null}},this.onPointerDown=()=>{this.keyboardMode=!1},this.onSlottedItemsChange=()=>{this.valueChanged(this.value),this.defineWidth()},this.onClick=e=>{if(this.disabled)return;const t=e.target,i=this.checked;"BAL-SEGMENT"!==t.tagName&&(t&&t.setFocus&&t.setFocus(),i?this.checkButton(i,t):(this.setCheckedClasses(),this.checkButton(t,t)),t!==i&&this.emitValueChange())},this.focusedValue=void 0,this.keyboardMode=!0,this.isVertical=!1,this.isMobile=!1,this.maxWidth=0,this.ariaForm=u,this.invalid=!1,this.disabled=!1,this.vertical=!1,this.scrollable=!1,this.expanded=!1,this.value=void 0}createLogger(e){this.log=e}disabledChanged(){this.allItems.map((e=>e.disabled=this.disabled))}valueChanged(e){this.balSelect.emit(e)}connectedCallback(){this.el.addEventListener("touchstart",this.onPointerDown),this.el.addEventListener("mousedown",this.onPointerDown),this.disabledChanged(),this.isVertical=this.vertical}disconnectedCallback(){this.el.removeEventListener("touchstart",this.onPointerDown),this.el.removeEventListener("mousedown",this.onPointerDown)}async componentDidLoad(){this.setCheckedClasses(),this.defineWidth()}focusInListener(e){this.balFocus.emit(e)}focusOutListener(e){this.balBlur.emit(e)}listenToDidAnimate(e){if(e&&e.target&&d(e.target,this.el)){const e=this.el.getBoundingClientRect();this.maxWidth=e.width,this.windowResizeListener()}}breakpointListener(e){this.isMobile=e.mobile}windowResizeListener(){if(!1===this.vertical&&this.maxWidth>0){const e=this.el.parentElement.getBoundingClientRect();this.emitVerticalChange(e.width<this.maxWidth)}else this.emitVerticalChange(!0)}listenOnKeyDownOutside(){this.keyboardMode=!0}listenOnKeyDown(e){this.keyboardMode=m.includes(e.key);let t,i=!1;if(f(e)||k(e)?(b(e),t=this.getSegmentItem("current"),i=this.value!==t.value,this.value=t.value):x(e)||y(e)?(b(e),t=this.getSegmentItem("previous")):_(e)||w(e)?(b(e),t=this.getSegmentItem("next")):j(e)?(b(e),t=this.getSegmentItem("first")):O(e)&&(b(e),t=this.getSegmentItem("last")),!t)return;const a=this.checked;(t!==a||i)&&(this.checkButton(a,t),this.emitValueChange()),t&&t.setFocus()}async setAriaForm(e){this.ariaForm=Object.assign({},e)}get allItems(){return Array.from(this.el.querySelectorAll("bal-segment-item"))}get checked(){return this.allItems.find((e=>e.value===this.value))}emitValueChange(){this.balChange.emit(this.value)}emitVerticalChange(e){this.isVertical!==e&&(this.isVertical=e,this.balVertical.emit(this.isVertical))}defineWidth(){h((()=>{if(!1===this.isVertical){const e=this.el.getBoundingClientRect();this.maxWidth=e.width}this.windowResizeListener()}))}getIndicator(e){return e?(e.shadowRoot||e).querySelector(".bal-segment-item__indicator"):null}checkButton(e,t){const a=this.getIndicator(e),s=this.getIndicator(t);if(null===a||null===s)return;const n=a.getBoundingClientRect(),r=s.getBoundingClientRect();let o=`translate3d(${n.left-r.left}px, 0, 0) scaleX(${n.width/r.width})`;this.isVertical&&(o=`translate3d(0, ${n.top-r.top}px, 0) scaleY(${n.height/r.height})`),i((()=>{s.classList.remove("bal-segment-item__indicator--animated"),s.style.setProperty("transform",o),s.getBoundingClientRect(),s.classList.add("bal-segment-item__indicator--animated"),s.style.setProperty("transform","")})),this.value=t.value,this.setCheckedClasses()}setCheckedClasses(){const e=this.allItems,t=e.findIndex((e=>e.value===this.value)),i=t+1,a=t-1;for(const t of e)t.classList.remove("bal-segment-item--after-checked"),t.classList.remove("bal-segment-item--before-checked");i<e.length&&e[i].classList.add("bal-segment-item--after-checked"),a<e.length&&a>=0&&e[a].classList.add("bal-segment-item--before-checked")}render(){const{invalid:e,isVertical:t,scrollable:i,keyboardMode:n,expanded:r,isMobile:o,disabled:c}=this,b=l.block("segment");return a(s,{key:"eadae45bddff8b5367b8db4e38c2eb467097ffb3",role:"radiogroup",id:this.ariaForm.controlId,"aria-labelledby":this.ariaForm.labelId,"aria-describedby":this.ariaForm.messageId,class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},b.class()),b.modifier("invalid").class(e)),b.modifier("vertical").class(t)),b.modifier("scrollable").class(i)),b.modifier("keyboard").class(n)),b.modifier("disabled").class(c)),b.modifier("expanded").class((r||o)&&!t)),onClick:this.onClick},a("slot",{key:"b82c45b87b6cbd116d3b176fbd93661944740823",onSlotchange:this.onSlottedItemsChange}))}get el(){return n(this)}static get watchers(){return{disabled:["disabledChanged"],value:["valueChanged"]}}};r([c("bal-segment"),o("design:type",Function),o("design:paramtypes",[Function]),o("design:returntype",void 0)],E.prototype,"createLogger",null),r([z(),o("design:type",Function),o("design:paramtypes",[FocusEvent]),o("design:returntype",void 0)],E.prototype,"focusInListener",null),r([z(),o("design:type",Function),o("design:paramtypes",[FocusEvent]),o("design:returntype",void 0)],E.prototype,"focusOutListener",null),r([v("balWillAnimate",{target:"window"}),o("design:type",Function),o("design:paramtypes",[UIEvent]),o("design:returntype",void 0)],E.prototype,"listenToDidAnimate",null),r([F(),o("design:type",Function),o("design:paramtypes",[Object]),o("design:returntype",void 0)],E.prototype,"breakpointListener",null),r([L(),o("design:type",Function),o("design:paramtypes",[]),o("design:returntype",void 0)],E.prototype,"windowResizeListener",null),r([v("keydown",{target:"document"}),o("design:type",Function),o("design:paramtypes",[]),o("design:returntype",void 0)],E.prototype,"listenOnKeyDownOutside",null),r([v("keydown"),o("design:type",Function),o("design:paramtypes",[KeyboardEvent]),o("design:returntype",void 0)],E.prototype,"listenOnKeyDown",null),E.style=":root{--bal-segment-background:var(--bal-color-grey-2);--bal-segment-background-invalid:var(--bal-color-danger-1);--bal-segment-item-focus-border:var(--bal-color-border-primary);--bal-segment-item-text-color:var(--bal-color-text-primary);--bal-segment-item-text-color-checked:var(--bal-color-text-primary);--bal-segment-item-text-color-checked-hovered:var(--bal-color-text-primary-hovered);--bal-segment-item-text-color-checked-pressed:var(--bal-color-text-primary-pressed);--bal-segment-item-text-color-invalid:var(--bal-color-text-danger);--bal-segment-item-text-color-invalid-hovered:var(--bal-color-text-danger-hovered);--bal-segment-item-text-color-invalid-pressed:var(--bal-color-text-danger-pressed);--bal-segment-item-text-color-disabled:var(--bal-color-text-grey);--bal-segment-item-text-color-disabled-checked:var(--bal-color-text-grey-dark);--bal-segment-item-divider-background:var(--bal-color-grey);--bal-segment-item-divider-background-invalid:var(--bal-color-danger-2);--bal-segment-item-indicator-background:var(--bal-color-purple-2);--bal-segment-item-indicator-background-invalid:var(--bal-color-danger-4);--bal-segment-item-indicator-background-disabled:var(--bal-color-grey-3)}.bal-segment{display:-ms-flexbox;display:flex;background:var(--bal-segment-background);border-radius:var(--bal-radius-normal);gap:.125rem;gap:.125rem;padding:.25rem;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.bal-segment--invalid{background:var(--bal-segment-background-invalid)}.bal-segment--vertical{-ms-flex-direction:column;flex-direction:column;width:100%}.bal-segment--vertical .bal-segment-item__button{width:100%;-ms-flex:1;flex:1}.bal-segment--vertical.bal-segment--scrollable{overflow:auto;max-height:240px}.bal-segment--expanded{width:100%;min-width:100%;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center}.bal-segment--expanded .bal-segment-item,.bal-segment--expanded .bal-segment-item>button{-ms-flex:1;flex:1;width:100%}.bal-segment--expanded .bal-segment-item .bal-content,.bal-segment--expanded .bal-segment-item>button .bal-content{-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}";let A=0;const D=class{constructor(t){e(this,t),this.segmentEl=null,this.inheritedAttributes={},this.internalId=A++,this.inputId=`bal-si-${this.internalId}`,this.updateVertical=e=>{this.isVertical=e.detail},this.updateState=()=>{const{segmentEl:e}=this;if(e){if(""===e.value||null==e.value){const e=this.allAvailableOptions;e.length>0&&(this.isFocusable=e[0]===this.el)}else this.checked=e.value===this.value,this.isFocusable=e.value===this.value;e.disabled&&(this.disabled=!0),this.isLast=e.lastElementChild===this.el,this.isFirst=e.firstElementChild===this.el,this.calculateEmptyValue()}},this.onSlottedItemsChange=()=>{this.checkSlotContent()},this.hasSlotContent=!1,this.isFocusable=!1,this.isVertical=!1,this.isLast=!1,this.isFirst=!1,this.hasEmptyValue=!0,this.ariaForm=u,this.disabled=!1,this.invalid=!1,this.focused=!1,this.checked=!1,this.label="",this.value="bal-si-"+this.internalId}valueChanged(e,t){e!==t&&this.updateState()}componentWillLoad(){this.inheritedAttributes=Object.assign({},C(this.el,["aria-label"]))}connectedCallback(){const e=this.segmentEl=this.el.closest("bal-segment");e&&e.vertical&&(this.isVertical=e.vertical)}componentDidLoad(){const e=this.segmentEl=this.el.closest("bal-segment");e&&(g(e,"balSelect",this.updateState),g(e,"balVertical",this.updateVertical)),h((()=>{this.checkSlotContent(),this.updateState()}))}disconnectedCallback(){const e=this.segmentEl;e&&(p(e,"balSelect",this.updateState),p(e,"balVertical",this.updateVertical),this.segmentEl=null)}calculateEmptyValue(){if(this.segmentEl){const e=Array.from(this.segmentEl.querySelectorAll("bal-segment-item"));this.hasEmptyValue=!e.some((e=>e.value===this.segmentEl.value))}else this.hasEmptyValue=!1}async setFocus(){const{nativeEl:e}=this;void 0!==e&&e.focus()}async setAriaForm(e){this.ariaForm=Object.assign({},e)}get allAvailableOptions(){return this.allOptions.filter((e=>!e.disabled))}get allOptions(){const{segmentEl:e}=this;return e?Array.from(e.querySelectorAll("bal-segment-item")):[]}checkSlotContent(){const e=this.el.querySelector('[part="slot"]'),t=e?e.innerHTML.trim():"";this.hasSlotContent=t.length>0}render(){const{checked:e,focused:t,segmentEl:i,label:n,isFocusable:r,isFirst:o,hasEmptyValue:c}=this,b=l.block("segment-item"),m=b.element("button"),d=b.element("indicator"),h=this.invalid||i&&i.invalid,g=this.disabled||i&&i.disabled,p=this.isVertical,u=c&&o||r&&!g,v=u&&this.ariaForm.controlId||this.inputId;let f={};return u&&(f={"aria-labelledby":this.ariaForm.labelId,"aria-describedby":this.ariaForm.messageId}),a(s,{key:"6da240d029f07e7760a962e388998c9c94390d4a",class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},b.class()),b.modifier("vertical").class(p)),b.modifier("disabled").class(g)),b.modifier("checked").class(e)),b.modifier("invalid").class(h)),b.modifier("last").class(this.isLast&&!e))},a("button",Object.assign({key:"b388ce322243a5f47831d0ef1a65b332c191045b",id:v,role:"radio","aria-checked":e?"true":"false"},f,{class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},m.class()),m.modifier("checked").class(e)),m.modifier("invalid").class(h)),m.modifier("disabled").class(g)),m.modifier("focused").class(t)),m.modifier("vertical").class(p)),type:"button",tabIndex:u?0:-1,part:"native",disabled:g,ref:e=>this.nativeEl=e},this.inheritedAttributes),a("bal-icon",{key:"d5ba38e05534eb5ea281cc81a4ad5686b1a4f69b",name:"check",size:"small",class:Object.assign(Object.assign(Object.assign({},m.element("icon").class()),m.element("icon").modifier("animated").class(e)),m.element("icon").modifier("vertical").class(p)),color:g?"grey-dark":h?"white":"primary"}),a("bal-stack",{key:"4a23ae6b4562a685f77f800ff6aca3e5c5e8226e",space:"x-small",layout:"horizontal"},a("bal-content",{key:"a2fb5cf35391ca37fe328534a29cad6e41a7f8fb",space:"none"},a("bal-label",{key:"b3f633a9fe0ea22a71c05982af9dabc366c72495",htmlId:`bal-si-${this.internalId}-label`},n),a("span",{key:"badf00b587d14525f4cea6ceda85c7f67b1b216e",part:"slot",class:Object.assign({},m.element("slot").modifier("hidden").class(!this.hasSlotContent))}," ",a("slot",{key:"375942fc35e764ef3d91d62a03d08c16165c595b",onSlotchange:this.onSlottedItemsChange}))))),a("div",{key:"b3a0cf381958ad671555306484ca791e93cfe21e",class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},d.class()),d.modifier("animated").class()),d.modifier("background").class()),d.modifier("disabled").class(g)),d.modifier("invalid").class(h)),d.modifier("checked").class(e)),d.modifier("vertical").class(p))}))}get el(){return n(this)}static get watchers(){return{value:["valueChanged"]}}};D.style=':root{--bal-segment-background:var(--bal-color-grey-2);--bal-segment-background-invalid:var(--bal-color-danger-1);--bal-segment-item-focus-border:var(--bal-color-border-primary);--bal-segment-item-text-color:var(--bal-color-text-primary);--bal-segment-item-text-color-checked:var(--bal-color-text-primary);--bal-segment-item-text-color-checked-hovered:var(--bal-color-text-primary-hovered);--bal-segment-item-text-color-checked-pressed:var(--bal-color-text-primary-pressed);--bal-segment-item-text-color-invalid:var(--bal-color-text-danger);--bal-segment-item-text-color-invalid-hovered:var(--bal-color-text-danger-hovered);--bal-segment-item-text-color-invalid-pressed:var(--bal-color-text-danger-pressed);--bal-segment-item-text-color-disabled:var(--bal-color-text-grey);--bal-segment-item-text-color-disabled-checked:var(--bal-color-text-grey-dark);--bal-segment-item-divider-background:var(--bal-color-grey);--bal-segment-item-divider-background-invalid:var(--bal-color-danger-2);--bal-segment-item-indicator-background:var(--bal-color-purple-2);--bal-segment-item-indicator-background-invalid:var(--bal-color-danger-4);--bal-segment-item-indicator-background-disabled:var(--bal-color-grey-3)}.bal-segment-item{display:block;position:relative;height:auto;text-decoration:none;text-overflow:ellipsis;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;grid-row:1;-webkit-font-kerning:none;font-kerning:none}.bal-segment-item--disabled{cursor:default !important;pointer-events:none !important}.bal-segment-item__button{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;min-height:2.5rem;min-width:3rem;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:1;flex-grow:1;padding-top:.375rem;padding-bottom:.375rem;padding-left:20px;padding-right:20px;outline:none;border-color:rgba(0,0,0,0);border-width:var(--bal-border-width-normal);border-style:solid;border-radius:var(--bal-radius-normal);background:rgba(0,0,0,0);font-size:var(--bal-text-size-normal);font-weight:var(--bal-font-weight-bold);color:var(--bal-segment-item-text-color);overflow:hidden;position:relative;contain:content;pointer-events:none;cursor:pointer;z-index:2}.bal-segment-item__button--vertical{padding-left:.75rem;padding-right:.75rem}.bal-segment-item__button span{font-size:var(--bal-text-size-small);font-weight:var(--bal-font-weight-regular)}.bal-segment-item__button{will-change:color,padding;-webkit-transition:color 160ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 160ms cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition:padding 160ms cubic-bezier(0.4, 0, 0.2, 1);transition:padding 160ms cubic-bezier(0.4, 0, 0.2, 1)}.bal-segment-item:not(.bal-segment-item--checked):not(.bal-segment-item--last):not(.bal-segment-item--before-checked)::after{content:"";position:absolute;background:var(--bal-segment-item-divider-background);border-radius:var(--bal-radius-normal)}.bal-segment-item:not(.bal-segment-item--vertical):not(.bal-segment-item--checked):not(.bal-segment-item--last):not(.bal-segment-item--before-checked)::after{top:2px;bottom:2px;right:-1px;width:2px}.bal-segment-item.bal-segment-item--vertical:not(.bal-segment-item--checked):not(.bal-segment-item--last):not(.bal-segment-item--before-checked)::after{left:2px;right:2px;bottom:-1px;height:2px}.bal-segment-item--invalid:not(.bal-segment-item--checked):not(.bal-segment-item--last):not(.bal-segment-item--before-checked)::after{background:var(--bal-segment-item-divider-background-invalid)}.bal-segment-item__indicator{-webkit-transform-origin:left;transform-origin:left;position:absolute;opacity:0;-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none;border-radius:var(--bal-radius-normal);background:var(--bal-segment-item-indicator-background);top:0;left:0}.bal-segment-item__indicator--vertical{-webkit-transform-origin:top;transform-origin:top}.bal-segment-item__indicator--invalid{background:var(--bal-segment-item-indicator-background-invalid)}.bal-segment-item__indicator--background{min-width:100%;min-height:100%;-webkit-transform:none;transform:none;pointer-events:none}.bal-segment-item__indicator--animated{will-change:transform,opacity,top,bottom,left,right,min-width,min-heigth;-webkit-transition:min-width 100ms ease,min-height 100ms ease,top 100ms ease,left 100ms ease,bottom 100ms ease,right 100ms ease,-webkit-transform 260ms cubic-bezier(0.4, 0, 0.2, 1);transition:min-width 100ms ease,min-height 100ms ease,top 100ms ease,left 100ms ease,bottom 100ms ease,right 100ms ease,-webkit-transform 260ms cubic-bezier(0.4, 0, 0.2, 1);transition:transform 260ms cubic-bezier(0.4, 0, 0.2, 1),min-width 100ms ease,min-height 100ms ease,top 100ms ease,left 100ms ease,bottom 100ms ease,right 100ms ease;transition:transform 260ms cubic-bezier(0.4, 0, 0.2, 1),min-width 100ms ease,min-height 100ms ease,top 100ms ease,left 100ms ease,bottom 100ms ease,right 100ms ease,-webkit-transform 260ms cubic-bezier(0.4, 0, 0.2, 1)}.bal-segment-item__indicator--checked{opacity:1}.bal-segment-item:active .bal-segment-item__indicator{min-width:calc(100% - 4px);min-height:calc(100% - 4px);top:2px !important;bottom:2px !important;left:2px !important;right:2px !important}.bal-segment-item__button__icon{position:absolute !important;opacity:0;width:0 !important;-webkit-transform:translateX(0.1rem);transform:translateX(0.1rem);pointer-events:none !important;cursor:inherit;will-change:transform,opacity}.bal-segment-item__button__icon:not(.bal-segment-item__button__icon--vertical){left:10px}.bal-segment-item__button__icon--vertical{right:10px}.bal-segment-item__button__icon--animated{opacity:1;width:.875rem !important;-webkit-transform:translateX(-4px);transform:translateX(-4px);-webkit-transition:opacity 260ms cubic-bezier(0.4, 0, 0.2, 1),-webkit-transform 260ms cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 260ms cubic-bezier(0.4, 0, 0.2, 1),-webkit-transform 260ms cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 260ms cubic-bezier(0.4, 0, 0.2, 1),transform 260ms cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 260ms cubic-bezier(0.4, 0, 0.2, 1),transform 260ms cubic-bezier(0.4, 0, 0.2, 1),-webkit-transform 260ms cubic-bezier(0.4, 0, 0.2, 1)}.bal-segment-item__button--checked{color:var(--bal-segment-item-text-color-checked);padding-right:40px}.bal-segment-item__button--checked:not(.bal-segment-item__button--vertical){padding-left:26px;padding-right:12px}@media (hover: hover)and (pointer: fine){.bal-segment-item:not(.bal-segment-item--disabled):hover .bal-segment-item__button:not(.bal-segment-item__button--checked){color:var(--bal-segment-item-text-color-checked-hovered)}}.bal-segment-item:not(.bal-segment-item--disabled):active .bal-segment-item__button:not(.bal-segment-item__button--checked){color:var(--bal-segment-item-text-color-checked-pressed)}.bal-segment--keyboard .bal-segment-item__button:not(.bal-segment-item__button--disabled):focus-visible,.bal-segment--keyboard .bal-segment-item__button--focused:not(.bal-segment-item__button--disabled){border-color:var(--bal-segment-item-focus-border);border-width:var(--bal-border-width-normal);border-style:solid;-webkit-transition:border 300ms ease-in-out;transition:border 300ms ease-in-out}.bal-segment-item.bal-segment-item--invalid:not(.bal-segment-item--disabled) .bal-segment-item__button:not(.bal-segment-item__button--checked){color:var(--bal-segment-item-text-color-invalid)}@media (hover: hover)and (pointer: fine){.bal-segment-item.bal-segment-item--invalid:not(.bal-segment-item--disabled):hover .bal-segment-item__button:not(.bal-segment-item__button--checked){color:var(--bal-segment-item-text-color-invalid-hovered)}}.bal-segment-item.bal-segment-item--invalid:not(.bal-segment-item--disabled):active .bal-segment-item__button:not(.bal-segment-item__button--checked){color:var(--bal-segment-item-text-color-invalid-pressed)}.bal-segment-item__button--invalid.bal-segment-item__button--checked{color:var(--bal-color-text-white)}.bal-segment-item__button--disabled{background:rgba(0,0,0,0);color:var(--bal-segment-item-text-color-disabled)}.bal-segment-item__button--disabled.bal-segment-item__button--checked{background:var(--bal-segment-item-indicator-background-disabled);color:var(--bal-segment-item-text-color-disabled-checked)}.bal-segment-item__button__slot--hidden{display:none !important}';export{E as bal_segment,D as bal_segment_item}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as e,r as t,c as a,H as s,g as o}from"./p-2539ba43.js";import{_ as r,a as l}from"./p-43c9f5e9.js";import{o as i}from"./p-33101c54.js";import{B as b}from"./p-ae86d0a0.js";import{L as n}from"./p-b77e3348.js";import{a as p}from"./p-00b37ea2.js";import{s as c}from"./p-63b52c0f.js";import{n as _}from"./p-06ecf846.js";import{b as d}from"./p-fe30593a.js";import{L as v}from"./p-ce674dca.js";import{L as m}from"./p-00281d6b.js";import"./p-a65354df.js";import"./p-2229e98e.js";import"./p-aafb6696.js";import"./p-9a3d9e17.js";import"./p-166d571e.js";import"./p-4573c419.js";import"./p-96216bd1.js";import"./p-acf222fd.js";import"./p-0521dc23.js";const u=({item:t,isMobile:a})=>{const s=b.block("steps").element("nav").element("item").element("icon");return e("span",{class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},s.class()),s.modifier("done").class(t.done)),s.modifier("active").class(t.active)),s.modifier("failed").class(t.failed)),s.modifier("disabled").class(t.disabled))},e("bal-icon",{style:{display:t.done?"block":"none"},size:a?"small":"",color:t.disabled?"grey":"white",name:"check"}),e("span",{style:{display:t.done?"none":"block"}},t.failed?"!":(t.index||0)+1))},g=({item:t})=>{const a=b.block("steps").element("nav").element("item").element("label");return e("span",{class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},a.class()),a.modifier("done").class(t.done)),a.modifier("active").class(t.active)),a.modifier("failed").class(t.failed)),a.modifier("disabled").class(t.disabled)),"data-testid":"bal-steps-option-label"},t.label)},h=({item:t,color:a,isMobile:s,clickable:o,onSelectTab:r})=>{const l=b.block("steps").element("nav").element("item");if(!t.invisible)return e("a",{role:"tab",class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},l.class()),l.modifier(`color-${a}`).class()),l.modifier("done").class(t.done)),l.modifier("active").class(t.active)),l.modifier("failed").class(t.failed)),l.modifier("disabled").class(t.disabled)),l.modifier("clickable").class(o)),l.modifier("passed").class(t.passed)),{"bal-focusable":!t.disabled&&!t.invisible}),"data-label":t.label,"data-value":t.value,"data-index":t.index,"data-testid":"bal-steps-option","aria-disabled":`${t.disabled}`,href:""===t.href?"javascript:;":t.href,target:t.target,onClick:e=>r(e,t)},e(u,{item:t,isMobile:s}),e(g,{item:t}))},f=class{constructor(e){t(this,e),this.balChange=a(this,"balChange",7),this.stepsId="bal-steps-"+k++,this.mutationObserverActive=!0,this.getStepOptions=()=>this.options.length>0?[...this.options.map(_)]:Promise.all(this.items.map((e=>e.getOptions()))),this.updateStore=e=>{p(this.store,e)||(this.store=e)},this.setActiveItem=()=>{const e=this.store.filter((e=>e.active));e.length>0?this.value=e[0].value:void 0===this.value&&this.store.length>0&&(this.value=this.store[0].value)},this.setActiveContent=()=>{0===this.options.length&&this.items.forEach((e=>e.setActive(this.isActive(e))))},this.onOptionChange=async()=>{try{const e=await this.getStepOptions();this.updateStore(e),this.setActiveItem(),this.setActiveContent()}catch(e){console.warn("[WARN] - Could not read tab options")}},this.onSelectTab=async(e,t)=>{(t.prevent||t.disabled||!this.clickable)&&c(e),t.disabled||(t.navigate&&t.navigate.emit(e),this.clickable&&t.value!==this.value&&(this.balChange.emit(t.value),await this.select(t)))},this.isMobile=d.isMobile,this.store=[],this.options=[],this.clickable=!0,this.color="primary",this.debounce=0,this.value=void 0}createLogger(e){this.log=e}async optionChanged(){this.onOptionChange(),this.mutationObserverActive=void 0===this.options||this.options.length<1}debounceChanged(){this.balChange=i(this.balChange,this.debounce)}async valueChanged(e,t){e!==t&&this.onOptionChange()}connectedCallback(){this.debounceChanged(),this.mutationObserverActive=void 0===this.options||this.options.length<1}componentDidLoad(){this.onOptionChange()}mutationListener(){this.onOptionChange()}breakpointListener(e){this.isMobile=e.mobile}async select(e){this.value=e.value}async getOptionByValue(e){return this.store.find((t=>t.value===e))}get items(){return Array.from(this.el.querySelectorAll(`#${this.stepsId} > bal-step-item`))}isActive(e){return e.value===this.value}render(){const t=b.block("steps"),a=t.element("nav");let o=!0,r=-1;const l=this.store.map((e=>Object.assign(Object.assign({},e),{active:e.value===this.value}))).map((e=>(e.active&&(o=!1),e.invisible||(r+=1),Object.assign(Object.assign({},e),{passed:o,index:r}))));return e(s,{class:Object.assign({},t.class()),"data-value":this.store.filter((e=>this.isActive(e))).map((e=>e.value)).join(","),"data-label":this.store.filter((e=>this.isActive(e))).map((e=>e.label)).join(",")},e("nav",{class:Object.assign({},a.class()),role:"tablist","aria-live":"polite"},e("bal-carousel",{class:Object.assign({},a.element("carousel").class()),htmlRole:"",onBalChange:c,controls:"small","items-per-view":"auto",steps:3},l.filter((e=>!e.invisible)).map((t=>e("bal-carousel-item",{key:t.value,htmlRole:"",class:Object.assign(Object.assign(Object.assign({},a.element("carousel").element("item").class()),a.element("carousel").element("item").modifier(`color-${this.color}`).class()),a.element("carousel").element("item").modifier("passed").class(t.passed))},e(h,{item:t,color:this.color,isMobile:this.isMobile,clickable:this.clickable&&!t.disabled,onSelectTab:this.onSelectTab})))))),e("div",{id:this.stepsId,class:Object.assign({},t.element("steps__content").class())},e("slot",null)))}get el(){return o(this)}static get watchers(){return{options:["optionChanged"],debounce:["debounceChanged"],value:["valueChanged"]}}};r([n("bal-steps"),l("design:type",Function),l("design:paramtypes",[Function]),l("design:returntype",void 0)],f.prototype,"createLogger",null),r([v({tags:["bal-steps","bal-step-item"]}),l("design:type",Function),l("design:paramtypes",[]),l("design:returntype",void 0)],f.prototype,"mutationListener",null),r([m(),l("design:type",Function),l("design:paramtypes",[Object]),l("design:returntype",void 0)],f.prototype,"breakpointListener",null);let k=0;f.style='@media (hover: hover)and (pointer: fine){.bal-steps__nav__item.bal-focused .bal-steps__nav__item__icon{-webkit-box-shadow:var(--bal-focus-shadow) !important;box-shadow:var(--bal-focus-shadow) !important}}@media (hover: hover)and (pointer: fine){.bal-steps__nav__item.bal-focused.bal-steps__nav__item--inverted .bal-steps__nav__item__icon{-webkit-box-shadow:var(--bal-focus-shadow-inverted) !important;box-shadow:var(--bal-focus-shadow-inverted) !important}}@media (hover: hover)and (pointer: fine){.bal-steps__nav__item.bal-focused .bal-steps__nav__item__icon{-webkit-box-shadow:var(--bal-focus-shadow) !important;box-shadow:var(--bal-focus-shadow) !important}}@media (hover: hover)and (pointer: fine){.bal-steps__nav__item.bal-focused.bal-steps__nav__item--inverted .bal-steps__nav__item__icon{-webkit-box-shadow:var(--bal-focus-shadow-inverted) !important;box-shadow:var(--bal-focus-shadow-inverted) !important}}:root{--bal-steps-step-icon-background:var(--bal-color-white);--bal-steps-step-icon-background-active:var(--bal-color-primary);--bal-steps-step-icon-background-disabled:var(--bal-color-grey-2);--bal-steps-step-icon-background-done:var(--bal-color-primary);--bal-steps-step-icon-background-failed:var(--bal-color-danger);--bal-steps-step-button-progress-line-background:var(--bal-form-field-control-border-color);--bal-steps-step-button-passed-background:var(--bal-form-field-control-border-color-active);--bal-steps-step-button-carousel-item-background-after:var(--bal-form-field-control-border-color);--bal-steps-step-button-carousel-item-passed-background-after:var(--bal-form-field-control-border-color-active);--bal-steps-step-button-progress-line-background-light-blue:var(--bal-color-primary-2);--bal-steps-step-button-passed-background-light-blue:var(--bal-color-primary);--bal-steps-step-button-progress-line-background-purple:var(--bal-color-purple-2);--bal-steps-step-button-passed-background-purple:var(--bal-color-primary);--bal-steps-step-button-progress-line-background-green:var(--bal-color-green-2);--bal-steps-step-button-passed-background-green:var(--bal-color-primary);--bal-steps-step-button-progress-line-background-red:var(--bal-color-red-2);--bal-steps-step-button-passed-background-red:var(--bal-color-primary);--bal-steps-step-button-progress-line-background-yellow:var(--bal-color-yellow-2);--bal-steps-step-button-passed-background-yellow:var(--bal-color-primary);--bal-steps-step-border-width:var(--bal-form-field-control-border-width);--bal-steps-step-border-style:var(--bal-form-field-control-border-style);--bal-steps-step-border-color:var(--bal-form-field-control-border-color);--bal-steps-step-border-color-active:var(--bal-form-field-control-border-color-active);--bal-steps-step-border-color-disabled:var(--bal-form-field-control-disabled-background);--bal-steps-step-border-color-done:var(--bal-form-field-control-border-color-active);--bal-steps-step-border-color-failed:var(--bal-color-danger);--bal-steps-step-icon-radius:var(--bal-radius-rounded);--bal-steps-step-button-progress-line-radius:var(--bal-radius-rounded);--bal-steps-step-button-carousel-item-radius:var(--bal-radius-rounded);--bal-steps-step-label-text-color:var(--bal-color-text-primary-light);--bal-steps-step-label-text-color-done:var(--bal-color-text-primary);--bal-steps-step-label-text-color-active:var(--bal-color-text-primary);--bal-steps-step-label-text-color-failed:var(--bal-color-text-danger);--bal-steps-step-label-text-color-disabled:var(--bal-color-text-grey);--bal-steps-step-icon-text-color:var(--bal-color-text-primary);--bal-steps-step-icon-text-color-active:var(--bal-color-text-white);--bal-steps-step-icon-text-color-disabled:var(--bal-color-text-grey);--bal-steps-step-icon-text-color-done:var(--bal-color-text-white);--bal-steps-step-icon-text-color-failed:var(--bal-color-text-white)}.bal-steps__nav__item{display:-ms-flexbox;display:flex;-webkit-box-sizing:border-box;box-sizing:border-box;gap:.5rem;-ms-flex-direction:column;flex-direction:column;-ms-flex-preferred-size:1rem;flex-basis:1rem;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1;text-decoration:none;cursor:default;position:relative;min-width:3rem;padding-top:6px}.bal-steps__nav__item--hidden{display:none !important;visibility:hidden !important}.bal-steps__nav__item--clickable{cursor:pointer;pointer-events:all}.bal-steps__nav__item:not(:last-child)::after{content:" ";display:block;position:absolute;height:var(--bal-border-width-normal);left:50%;right:-50%;top:50%;background-color:var(--bal-steps-step-button-progress-line-background);border-radius:var(--bal-steps-step-button-progress-line-radius);margin-top:3px;margin-left:calc(1.5rem - var(--bal-border-width-normal));margin-right:1.25rem}@media screen and (min-width: 769px),print{.bal-steps__nav__item:not(:last-child)::after{top:1rem;margin-top:6px;margin-left:calc(1.5rem - var(--bal-border-width-normal));margin-right:1.5rem}}.bal-steps__nav__item--passed:not(:last-child)::after{background-color:var(--bal-steps-step-button-passed-background)}.bal-steps__nav__carousel__item{-ms-flex:1;flex:1;min-width:3rem}.bal-steps__nav__carousel__item:not(:last-child)::after{content:" ";display:block;position:absolute;height:var(--bal-border-width-normal);left:50%;right:-50%;top:50%;background-color:var(--bal-steps-step-button-carousel-item-background-after);border-radius:var(--bal-steps-step-button-carousel-item-radius);margin-top:3px;margin-left:1.25rem;margin-right:1.25rem}@media screen and (min-width: 769px),print{.bal-steps__nav__carousel__item:not(:last-child)::after{top:1rem;margin-top:6px;margin-left:1.5rem;margin-right:1.5rem}}.bal-steps__nav__carousel__item--passed:not(:last-child)::after{background-color:var(--bal-steps-step-button-carousel-item-passed-background-after)}.bal-steps__nav__carousel__item:not(:last-child).bal-steps__nav__carousel__item--color-light-blue::after{background-color:var(--bal-steps-step-button-progress-line-background-light-blue)}.bal-steps__nav__carousel__item:not(:last-child).bal-steps__nav__carousel__item--color-purple::after{background-color:var(--bal-steps-step-button-progress-line-background-purple)}.bal-steps__nav__carousel__item:not(:last-child).bal-steps__nav__carousel__item--color-red::after{background-color:var(--bal-steps-step-button-progress-line-background-red)}.bal-steps__nav__carousel__item:not(:last-child).bal-steps__nav__carousel__item--color-yellow::after{background-color:var(--bal-steps-step-button-progress-line-background-yellow)}.bal-steps__nav__carousel__item:not(:last-child).bal-steps__nav__carousel__item--color-green::after{background-color:var(--bal-steps-step-button-progress-line-background-green)}.bal-steps__nav__carousel__item--passed:not(:last-child).bal-steps__nav__carousel__item--color-light-blue::after{background-color:var(--bal-steps-step-button-passed-background-light-blue)}.bal-steps__nav__carousel__item--passed:not(:last-child).bal-steps__nav__carousel__item--color-purple::after{background-color:var(--bal-steps-step-button-passed-background-purple)}.bal-steps__nav__carousel__item--passed:not(:last-child).bal-steps__nav__carousel__item--color-red::after{background-color:var(--bal-steps-step-button-passed-background-red)}.bal-steps__nav__carousel__item--passed:not(:last-child).bal-steps__nav__carousel__item--color-yellow::after{background-color:var(--bal-steps-step-button-passed-background-yellow)}.bal-steps__nav__carousel__item--passed:not(:last-child).bal-steps__nav__carousel__item--color-green::after{background-color:var(--bal-steps-step-button-passed-background-green)}.bal-steps__nav__item--color-light-blue:not(.bal-steps__nav__item--active,.bal-steps__nav__item--done,.bal-steps__nav__item--failed,.bal-steps__nav__item--disabled) .bal-steps__nav__item__icon{border-color:var(--bal-steps-step-button-progress-line-background-light-blue)}.bal-steps__nav__item--color-light-blue.bal-steps__nav__item--disabled .bal-steps__nav__item__icon{opacity:.6;background:var(--bal-steps-step-button-progress-line-background-light-blue);border-color:var(--bal-steps-step-button-progress-line-background-light-blue);color:var(--bal-color-primary-4)}.bal-steps__nav__item--color-light-blue.bal-steps__nav__item--disabled .bal-steps__nav__item__label{opacity:.6}.bal-steps__nav__item--color-purple:not(.bal-steps__nav__item--active,.bal-steps__nav__item--done,.bal-steps__nav__item--failed,.bal-steps__nav__item--disabled) .bal-steps__nav__item__icon{border-color:var(--bal-steps-step-button-progress-line-background-purple)}.bal-steps__nav__item--color-purple.bal-steps__nav__item--disabled .bal-steps__nav__item__icon{opacity:.6;background:var(--bal-steps-step-button-progress-line-background-purple);border-color:var(--bal-steps-step-button-progress-line-background-purple)}.bal-steps__nav__item--color-purple.bal-steps__nav__item--disabled .bal-steps__nav__item__label{opacity:.6}.bal-steps__nav__item--color-green:not(.bal-steps__nav__item--active,.bal-steps__nav__item--done,.bal-steps__nav__item--failed,.bal-steps__nav__item--disabled) .bal-steps__nav__item__icon{border-color:var(--bal-steps-step-button-progress-line-background-green)}.bal-steps__nav__item--color-green.bal-steps__nav__item--disabled .bal-steps__nav__item__icon{opacity:.6;background:var(--bal-steps-step-button-progress-line-background-green);border-color:var(--bal-steps-step-button-progress-line-background-green)}.bal-steps__nav__item--color-green.bal-steps__nav__item--disabled .bal-steps__nav__item__label{opacity:.6}.bal-steps__nav__item--color-yellow:not(.bal-steps__nav__item--active,.bal-steps__nav__item--done,.bal-steps__nav__item--failed,.bal-steps__nav__item--disabled) .bal-steps__nav__item__icon{border-color:var(--bal-steps-step-button-progress-line-background-yellow)}.bal-steps__nav__item--color-yellow.bal-steps__nav__item--disabled .bal-steps__nav__item__icon{opacity:.6;background:var(--bal-steps-step-button-progress-line-background-yellow);border-color:var(--bal-steps-step-button-progress-line-background-yellow)}.bal-steps__nav__item--color-yellow.bal-steps__nav__item--disabled .bal-steps__nav__item__label{opacity:.6}.bal-steps__nav__item--color-red:not(.bal-steps__nav__item--active,.bal-steps__nav__item--done,.bal-steps__nav__item--failed,.bal-steps__nav__item--disabled) .bal-steps__nav__item__icon{border-color:var(--bal-steps-step-button-progress-line-background-red)}.bal-steps__nav__item--color-red.bal-steps__nav__item--disabled .bal-steps__nav__item__icon{opacity:.6;background:var(--bal-steps-step-button-progress-line-background-red);border-color:var(--bal-steps-step-button-progress-line-background-red)}.bal-steps__nav__item--color-red.bal-steps__nav__item--disabled .bal-steps__nav__item__label{opacity:.6}@media (hover: hover)and (pointer: fine){.bal-steps__nav__item.bal-focused .bal-steps__nav__item__icon{-webkit-box-shadow:var(--bal-focus-shadow) !important;box-shadow:var(--bal-focus-shadow) !important}}@media (hover: hover)and (pointer: fine){.bal-steps__nav__item.bal-focused.bal-steps__nav__item--inverted .bal-steps__nav__item__icon{-webkit-box-shadow:var(--bal-focus-shadow-inverted) !important;box-shadow:var(--bal-focus-shadow-inverted) !important}}:root{--bal-steps-step-icon-background:var(--bal-color-white);--bal-steps-step-icon-background-active:var(--bal-color-primary);--bal-steps-step-icon-background-disabled:var(--bal-color-grey-2);--bal-steps-step-icon-background-done:var(--bal-color-primary);--bal-steps-step-icon-background-failed:var(--bal-color-danger);--bal-steps-step-button-progress-line-background:var(--bal-form-field-control-border-color);--bal-steps-step-button-passed-background:var(--bal-form-field-control-border-color-active);--bal-steps-step-button-carousel-item-background-after:var(--bal-form-field-control-border-color);--bal-steps-step-button-carousel-item-passed-background-after:var(--bal-form-field-control-border-color-active);--bal-steps-step-button-progress-line-background-light-blue:var(--bal-color-primary-2);--bal-steps-step-button-passed-background-light-blue:var(--bal-color-primary);--bal-steps-step-button-progress-line-background-purple:var(--bal-color-purple-2);--bal-steps-step-button-passed-background-purple:var(--bal-color-primary);--bal-steps-step-button-progress-line-background-green:var(--bal-color-green-2);--bal-steps-step-button-passed-background-green:var(--bal-color-primary);--bal-steps-step-button-progress-line-background-red:var(--bal-color-red-2);--bal-steps-step-button-passed-background-red:var(--bal-color-primary);--bal-steps-step-button-progress-line-background-yellow:var(--bal-color-yellow-2);--bal-steps-step-button-passed-background-yellow:var(--bal-color-primary);--bal-steps-step-border-width:var(--bal-form-field-control-border-width);--bal-steps-step-border-style:var(--bal-form-field-control-border-style);--bal-steps-step-border-color:var(--bal-form-field-control-border-color);--bal-steps-step-border-color-active:var(--bal-form-field-control-border-color-active);--bal-steps-step-border-color-disabled:var(--bal-form-field-control-disabled-background);--bal-steps-step-border-color-done:var(--bal-form-field-control-border-color-active);--bal-steps-step-border-color-failed:var(--bal-color-danger);--bal-steps-step-icon-radius:var(--bal-radius-rounded);--bal-steps-step-button-progress-line-radius:var(--bal-radius-rounded);--bal-steps-step-button-carousel-item-radius:var(--bal-radius-rounded);--bal-steps-step-label-text-color:var(--bal-color-text-primary-light);--bal-steps-step-label-text-color-done:var(--bal-color-text-primary);--bal-steps-step-label-text-color-active:var(--bal-color-text-primary);--bal-steps-step-label-text-color-failed:var(--bal-color-text-danger);--bal-steps-step-label-text-color-disabled:var(--bal-color-text-grey);--bal-steps-step-icon-text-color:var(--bal-color-text-primary);--bal-steps-step-icon-text-color-active:var(--bal-color-text-white);--bal-steps-step-icon-text-color-disabled:var(--bal-color-text-grey);--bal-steps-step-icon-text-color-done:var(--bal-color-text-white);--bal-steps-step-icon-text-color-failed:var(--bal-color-text-white)}.bal-steps__nav__item__icon{position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;overflow:hidden;font-weight:var(--bal-font-weight-bold);border-radius:var(--bal-steps-step-icon-radius);font-size:var(--bal-text-size-small);height:1.5rem;width:1.5rem;left:calc(50% - .75rem);border:var(--bal-steps-step-border-width) var(--bal-steps-step-border-style) var(--bal-steps-step-border-color);background:var(--bal-steps-step-icon-background);color:var(--bal-steps-step-icon-text-color)}@media screen and (min-width: 769px),print{.bal-steps__nav__item__icon{height:2rem;width:2rem;left:calc(50% - 1rem);font-size:var(--bal-text-size-normal)}}.bal-steps__nav__item__icon--active{border-color:var(--bal-steps-step-border-color-active);background:var(--bal-steps-step-icon-background-active);color:var(--bal-steps-step-icon-text-color-active)}.bal-steps__nav__item__icon--done{border-color:var(--bal-steps-step-border-color-done);background:var(--bal-steps-step-icon-background-done);color:var(--bal-steps-step-icon-text-color-done)}.bal-steps__nav__item__icon--failed{border-color:var(--bal-steps-step-border-color-failed);background:var(--bal-steps-step-icon-background-failed);color:var(--bal-steps-step-icon-text-color-failed);font-size:var(--bal-text-size-normal)}@media screen and (min-width: 769px),print{.bal-steps__nav__item__icon--failed{font-size:var(--bal-text-size-large-tablet)}}@media screen and (min-width: 1024px){.bal-steps__nav__item__icon--failed{font-size:var(--bal-text-size-large-desktop)}}.bal-steps__nav__item__icon--disabled{border-color:var(--bal-steps-step-border-color-disabled);background:var(--bal-steps-step-icon-background-disabled);color:var(--bal-steps-step-icon-text-color-disabled);opacity:.6}@media (hover: hover)and (pointer: fine){.bal-steps__nav__item.bal-focused .bal-steps__nav__item__icon{-webkit-box-shadow:var(--bal-focus-shadow) !important;box-shadow:var(--bal-focus-shadow) !important}}@media (hover: hover)and (pointer: fine){.bal-steps__nav__item.bal-focused.bal-steps__nav__item--inverted .bal-steps__nav__item__icon{-webkit-box-shadow:var(--bal-focus-shadow-inverted) !important;box-shadow:var(--bal-focus-shadow-inverted) !important}}.bal-steps__nav__item__label{display:none}@media screen and (min-width: 769px),print{.bal-steps__nav__item__label{display:block;font-family:var(--bal-font-family-title);font-weight:var(--bal-font-weight-bold);font-size:var(--bal-text-size-normal);text-align:center;width:100%;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:var(--bal-steps-step-label-text-color)}.bal-steps__nav__item__label--done{color:var(--bal-steps-step-label-text-color-done)}.bal-steps__nav__item__label--active{color:var(--bal-steps-step-label-text-color-active)}.bal-steps__nav__item__label--failed{color:var(--bal-steps-step-label-text-color-failed)}.bal-steps__nav__item__label--disabled{color:var(--bal-steps-step-label-text-color-disabled);opacity:.6}}.bal-steps{display:block;position:static}.bal-steps__nav{-webkit-overflow-scrolling:touch;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bal-step-item{width:100%;display:none}.bal-step-item--active{display:block}';export{f as bal_steps}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as a,c as e,h as o,H as c,g as b}from"./p-2539ba43.js";import{_ as l,a as r}from"./p-43c9f5e9.js";import{s as i,c as d,d as t}from"./p-63b52c0f.js";import{i as h,u as k}from"./p-33101c54.js";import{i as s}from"./p-dd5e13d1.js";import{B as x}from"./p-ae86d0a0.js";import{L as n}from"./p-b77e3348.js";import{F as _}from"./p-ca119357.js";import{d as v}from"./p-f385e205.js";import{a as u}from"./p-d9b38501.js";import{L as g}from"./p-af4c6af2.js";import{d as f}from"./p-50927d70.js";import{a as p}from"./p-00b37ea2.js";import{L as w}from"./p-1c09c9b0.js";import{L as m}from"./p-ce674dca.js";import"./p-a65354df.js";import"./p-2229e98e.js";import"./p-aafb6696.js";import"./p-9a3d9e17.js";import"./p-166d571e.js";import"./p-4573c419.js";import"./p-acf222fd.js";const y=class{constructor(o){a(this,o),this.balFocus=e(this,"balFocus",7),this.balBlur=e(this,"balBlur",7),this.balChange=e(this,"balChange",7),this.inputId="bal-cb-"+j++,this.inheritedAttributes={},this.keyboardMode=!0,this.initialValue=!1,this.onKeypress=a=>{if(f(a)){const e=a.target;if(e.href)return;"INPUT"!==e.nodeName||this.disabled||this.readonly?i(a):(this.toggleChecked(),a.preventDefault())}},this.onClick=a=>{var e;const o=a.target;o.href||(this.wasFocused&&(this.focused=!0),"INPUT"===o.nodeName||this.disabled||this.readonly?i(a):(this.toggleChecked(),null===(e=this.nativeInput)||void 0===e||e.focus(),a.preventDefault()))},this.onFocus=a=>{if(this.disabled||this.readonly)return this.focused=!1,i(a);this.balFocus.emit(a),this.keyboardMode&&(this.focused=!0,this.wasFocused=!0)},this.onBlur=a=>{if(this.disabled||this.readonly)return i(a);this.balBlur.emit(a),this.focused=!1},this.onPointerDown=()=>this.keyboardMode=!1,this.onKeydown=a=>{f(a)||(this.wasFocused=!1),this.keyboardMode=_.includes(a.key)},this.hasLabel=!0,this.focused=!1,this.buttonTabindex=void 0,this.ariaForm=v,this.wasFocused=!1,this.name=this.inputId,this.label="",this.invisible=!1,this.labelHidden=!1,this.flat=!1,this.inline=!1,this.interface="checkbox",this.value="on",this.checked=!1,this.disabled=!1,this.readonly=!1,this.required=!1,this.autoInvalidOff=!1,this.nonSubmit=!1,this.invalid=!1,this.hovered=!1,this.pressed=!1}createLogger(a){this.log=a}connectedCallback(){const a=this.group;(this.checkboxButton||a)&&this.updateState(),a&&a.addEventListener("balChange",(()=>this.updateState())),this.initialValue=this.checked,this.el.addEventListener("keydown",this.onKeydown),this.el.addEventListener("touchstart",this.onPointerDown),this.el.addEventListener("mousedown",this.onPointerDown)}componentWillLoad(){this.inheritedAttributes=s(this.el,["aria-label","tabindex","title"])}disconnectedCallback(){this.group&&this.group.removeEventListener("balChange",(()=>this.updateState())),this.el.removeEventListener("keydown",this.onKeydown),this.el.removeEventListener("touchstart",this.onPointerDown),this.el.removeEventListener("mousedown",this.onPointerDown)}listenOnClick(a){(this.disabled||this.readonly)&&a.target&&(a.target===this.el||h(this.el,a.target))&&i(a)}resetHandler(a){const e=a.target;(null==e?void 0:e.contains(this.el))&&(this.checked=this.initialValue)}async setFocus(){d(this)}async setBlur(){t(this)}getInputElement(){return Promise.resolve(this.nativeInput)}async getOption(){return this.option}async setButtonTabindex(a){this.buttonTabindex=this.checkboxButton?-1:a}async updateState(){if(this.group&&this.group.control&&Array.isArray(this.group.value)){const a=this.group.value.includes(this.value);a!==this.checked&&(this.checked=a)}this.checkboxButton&&(this.buttonTabindex=-1,this.checkboxButton.setChecked&&this.checkboxButton.setChecked(this.checked))}async setAriaForm(a){this.ariaForm=Object.assign({},a)}get option(){return{name:this.name,value:this.value,checked:this.checked,label:this.label,labelHidden:this.labelHidden,flat:this.flat,interface:this.interface,disabled:this.disabled,readonly:this.readonly,required:this.required,nonSubmit:this.nonSubmit,invisible:this.invisible,invalid:this.invalid}}get group(){return this.el.closest("bal-checkbox-group")}get checkboxButton(){return this.el.closest("bal-checkbox-button")}toggleChecked(){this.checked=!this.checked,this.balChange.emit(this.checked)}render(){const a=x.block("radio-checkbox"),e=a.element("input"),b=a.element("label"),l=a.element("icon"),r=b.element("text"),i=this.focused&&-1!==this.buttonTabindex,d=this.inheritedAttributes;void 0!==this.buttonTabindex&&(d.tabIndex=this.buttonTabindex);const t=this.ariaForm.controlId||this.inputId;let h=this.ariaForm.labelId||null;const k=this.labelHidden?"span":"label",s={};return this.labelHidden||(h=`${h||""} ${t}-lbl`.trim(),s.id=`${t}-lbl`,s.htmlFor=t),o(c,{key:"ecce7f9cb60f37a738f18f72a2735c853ae02985","aria-checked":`${this.checked}`,"aria-disabled":u(this.disabled),"aria-hidden":u(this.disabled||this.nonSubmit),"aria-focused":i?"true":null,class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"bal-focused":i},a.class()),a.modifier("checkbox").class()),a.modifier("select-button").class("select-button"===this.interface)),a.modifier("switch").class("switch"===this.interface)),a.modifier("focused").class(this.focused)),a.modifier("invalid").class(this.invalid)),a.modifier("checked").class(this.checked)),a.modifier("invisible").class(this.invisible)),a.modifier("flat").class(this.flat)),a.modifier("disabled").class(this.disabled||this.readonly)),a.modifier("hovered").class(this.hovered)),a.modifier("pressed").class(this.pressed)),a.modifier("inline").class(this.inline)),onKeypress:this.onKeypress,onClick:this.onClick},o("input",Object.assign({key:"7a7fe32e829fb5fb68de8a2bb7705db0465792ae",class:Object.assign(Object.assign({},e.class()),e.modifier("select-button").class("select-button"===this.interface)),"data-testid":"bal-checkbox-input",type:"checkbox",id:t,"aria-labelledby":h,"aria-describedby":this.ariaForm.messageId,"aria-invalid":!0===this.invalid?"true":"false","aria-disabled":u(this.disabled),"aria-checked":`${this.checked}`,"aria-hidden":u(this.nonSubmit),name:this.name,value:this.value,checked:this.checked,disabled:this.disabled||this.nonSubmit,readonly:this.readonly,required:this.required,onFocus:this.onFocus,onBlur:this.onBlur,ref:a=>this.nativeInput=a},d)),this.invisible?"":o(k,Object.assign({class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},b.class()),b.modifier("checkbox").class()),b.modifier("checked").class(this.checked)),b.modifier("hidden").class(this.labelHidden)),b.modifier("flat").class(this.flat)),b.modifier("switch").class("switch"===this.interface))},s,{"data-testid":"bal-checkbox-label"}),"switch"===this.interface?o("bal-icon",{class:Object.assign({},l.class()),name:"check",color:"white",size:"x-small","aria-hidden":"true"}):"",o("span",{class:Object.assign(Object.assign(Object.assign({},r.class()),r.modifier("hidden").class(this.labelHidden)),r.modifier("flat").class(this.flat)),"data-testid":"bal-checkbox-text"},this.label,o("slot",null))))}get el(){return b(this)}};l([n("bal-checkbox"),r("design:type",Function),r("design:paramtypes",[Function]),r("design:returntype",void 0)],y.prototype,"createLogger",null),l([g("click",{capture:!0,target:"document"}),r("design:type",Function),r("design:paramtypes",[UIEvent]),r("design:returntype",void 0)],y.prototype,"listenOnClick",null),l([g("reset",{capture:!0,target:"document"}),r("design:type",Function),r("design:paramtypes",[UIEvent]),r("design:returntype",void 0)],y.prototype,"resetHandler",null);let j=0;y.style='@media (hover: hover)and (pointer: fine){.bal-radio-checkbox.bal-focused .bal-radio-checkbox__input:not(.bal-radio-checkbox__input--select-button)+.bal-radio-checkbox__label::before,.bal-radio-checkbox.bal-focused.bal-radio-checkbox--select-button{-webkit-box-shadow:var(--bal-focus-shadow) !important;box-shadow:var(--bal-focus-shadow) !important}}:root{--bal-radio-checkbox-symbol-size:1.5rem;--bal-radio-checkbox-symbol-width:calc(0.5rem - 1px);--bal-radio-checkbox-symbol-height:calc(0.875rem - 1px);--bal-radio-checkbox-symbol-left:calc(0.5rem + 1px);--bal-radio-checkbox-symbol-margin-top:0.25rem;--bal-radio-checkbox-label-min-height:1.5rem;--bal-radio-checkbox-select-button-background-hover:var(--bal-color-grey-2);--bal-radio-checkbox-select-button-background-active:var(--bal-color-grey-2);--bal-radio-checkbox-select-button-background-checked:var(--bal-color-primary);--bal-radio-checkbox-select-button-background-checked-hover:var(--bal-color-light-blue-5);--bal-radio-checkbox-select-button-background-checked-active:var(--bal-color-primary-6);--bal-radio-checkbox-select-button-background-invalid:var(--bal-color-danger-1);--bal-radio-checkbox-select-button-background-invalid-hover:var(--bal-color-danger-1);--bal-radio-checkbox-select-button-background-invalid-active:var(--bal-color-danger-1);--bal-radio-checkbox-select-button-background-invalid-checked:var(--bal-color-border-danger);--bal-radio-checkbox-select-button-background-invalid-checked-hover:var(--bal-color-danger-5);--bal-radio-checkbox-select-button-background-invalid-checked-active:var(--bal-color-danger-6);--bal-radio-checkbox-select-button-background-disabled-hover-active:var(--bal-color-grey-2);--bal-radio-checkbox-select-button-background-disabled-checked-hover-active:var(--bal-color-border-grey-dark);--bal-radio-checkbox-switch-label-background-before:var(--bal-color-primary-1);--bal-radio-checkbox-switch-label-background-after:var(--bal-color-primary);--bal-radio-checkbox-switch-label-background-hover-after:var(--bal-color-light-blue-5);--bal-radio-checkbox-switch-label-background-active-after:var(--bal-color-primary-6);--bal-radio-checkbox-switch-label-background-checked-before:var(--bal-color-success-4);--bal-radio-checkbox-switch-label-background-checked-after:var(--bal-color-white);--bal-radio-checkbox-switch-label-background-checked-hover-before:var(--bal-color-success-5);--bal-radio-checkbox-switch-label-background-checked-active-before:var(--bal-color-success-6);--bal-radio-checkbox-switch-label-background-invalid-before:var(--bal-color-danger-1);--bal-radio-checkbox-switch-label-background-invalid-after:var(--bal-color-border-danger);--bal-radio-checkbox-switch-label-background-invalid-hover-after:var(--bal-color-danger-6);--bal-radio-checkbox-switch-label-background-invalid-active-after:var(--bal-color-border-danger);--bal-radio-checkbox-switch-label-background-invalid-checked-before:var(--bal-color-danger-4);--bal-radio-checkbox-switch-label-background-invalid-checked-after:var(--bal-color-white);--bal-radio-checkbox-switch-label-background-invalid-checked-hover-before:var(--bal-color-danger-5);--bal-radio-checkbox-switch-label-background-invalid-checked-active-before:var(--bal-color-danger-6);--bal-radio-checkbox-switch-label-background-disabled-hover-active-before:var(--bal-color-grey-3);--bal-radio-checkbox-switch-label-background-disabled-hover-active-after:var(--bal-color-border-grey-dark);--bal-radio-checkbox-switch-label-background-disabled-checked-hover-active-before:var(--bal-color-border-grey-dark);--bal-radio-checkbox-switch-label-background-disabled-checked-hover-active-after:var(--bal-color-white);--bal-radio-checkbox-button-background:transparent;--bal-radio-checkbox-button-background-checked-green:var(--bal-color-green-1);--bal-radio-checkbox-button-background-checked-purple:var(--bal-color-purple-1);--bal-radio-checkbox-button-background-checked-red:var(--bal-color-red-1);--bal-radio-checkbox-button-background-checked-yellow:var(--bal-color-yellow-1);--bal-radio-checkbox-button-background-disabled:var(--bal-color-grey-1);--bal-radio-checkbox-button-background-hover:var(--bal-color-grey-1);--bal-radio-checkbox-select-button-border-color:var(--bal-color-primary);--bal-radio-checkbox-select-button-border-color-hover:var(--bal-color-light-blue-5);--bal-radio-checkbox-select-button-border-color-active:var(--bal-color-primary-6);--bal-radio-checkbox-select-button-border-color-invalid:var(--bal-color-border-danger);--bal-radio-checkbox-select-button-border-color-invalid-hover:var(--bal-color-danger-5);--bal-radio-checkbox-select-button-border-color-invalid-active:var(--bal-color-danger-6);--bal-radio-checkbox-select-button-border-color-invalid-checked:var(--bal-color-border-danger);--bal-radio-checkbox-select-button-border-color-invalid-checked-hover:var(--bal-color-danger-5);--bal-radio-checkbox-select-button-border-color-invalid-checked-active:var(--bal-color-danger-6);--bal-radio-checkbox-select-button-border-color-disabled-hover-active:var(--bal-color-border-grey-dark);--bal-radio-checkbox-select-button-border-color-disabled-checked-hover-active:var(--bal-color-border-grey-dark);--bal-radio-checkbox-button-border-color-hover:var(--bal-color-border-primary-hovered);--bal-radio-checkbox-button-border-color-active:var(--bal-color-border-primary-pressed);--bal-radio-checkbox-button-border-color-invalid-hover:var(--bal-color-border-danger-hovered);--bal-radio-checkbox-button-border-color-invalid-active:var(--bal-color-border-danger-pressed);--bal-radio-checkbox-button-border-color:var(--bal-color-border);--bal-radio-checkbox-button-border-color-checked:var(--bal-color-border-primary);--bal-radio-checkbox-button-border-color-disabled:var(--bal-color-border-grey-dark);--bal-radio-checkbox-button-border-color-invalid:var(--bal-color-border-danger)}bal-radio .bal-radio-checkbox__label::before,bal-radio .bal-radio-checkbox__label::after{margin-top:0px !important}.bal-radio-checkbox-group{display:inline-block;position:relative;width:100%}.bal-radio-checkbox-group__inner{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:stretch;align-items:stretch;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:var(--bal-space-normal)}.bal-radio-checkbox-group__inner--select-button{-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex:1;flex:1;gap:var(--bal-space-x-small)}@media screen and (min-width: 769px),print{.bal-radio-checkbox-group__inner--select-button{-ms-flex-direction:row;flex-direction:row}}.bal-radio-checkbox-group__inner--expanded{-ms-flex-align:stretch;align-items:stretch}.bal-radio-checkbox-group__inner--expanded .bal-radio-checkbox{-ms-flex:1;flex:1}@media screen and (max-width: 768px){.bal-radio-checkbox-group__inner--expanded .bal-radio-checkbox{width:100%}}.bal-radio-checkbox-group__inner--select-button.bal-radio-checkbox-group__inner--vertical{gap:var(--bal-space-x-small)}.bal-radio-checkbox-group__inner--vertical{-ms-flex-direction:column;flex-direction:column;border-radius:var(--bal-radius-normal);gap:0}@media screen and (min-width: 769px),print{.bal-radio-checkbox-group__inner--vertical{-ms-flex-align:start;align-items:flex-start}}@media screen and (max-width: 768px){.bal-radio-checkbox-group__inner--vertical-mobile{-ms-flex-direction:column;flex-direction:column;border-radius:var(--bal-radius-normal);gap:0}}.bal-radio-checkbox{position:relative;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;outline:none;min-width:1.5rem;min-height:3rem}.bal-radio-checkbox--flat:not(.bal-radio-checkbox--select-button){min-height:1.5rem}.bal-radio-checkbox__input{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-radio-checkbox--invisible{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-radio-checkbox:not(.bal-radio-checkbox--disabled),.bal-radio-checkbox:not(.bal-radio-checkbox--disabled) input,.bal-radio-checkbox:not(.bal-radio-checkbox--disabled) input+label,.bal-radio-checkbox:not(.bal-radio-checkbox--disabled) input+label>span{cursor:pointer}.bal-radio-checkbox__label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin:0;line-height:1.5rem;contain:layout style;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;text-align:left;min-height:var(--bal-radio-checkbox-label-min-height);font-family:var(--bal-font-family-text)}.bal-radio-checkbox__label__text{padding-left:2rem;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;padding-top:.25rem;padding-bottom:.25rem}.bal-radio-checkbox__label__text--hidden{padding-left:0;display:none}.bal-radio-checkbox__label__text--flat{padding-top:0;padding-bottom:0}.bal-radio-checkbox__label--flat:not(.bal-radio-checkbox--select-button)::before,.bal-radio-checkbox__label--flat:not(.bal-radio-checkbox--select-button)::after{top:0px !important}.bal-radio-checkbox__label--hidden::before,.bal-radio-checkbox__label--hidden::after{top:0px !important}.bal-radio-checkbox__label::before,.bal-radio-checkbox__label::after{display:inline-block;position:absolute;left:0;top:.25rem;height:var(--bal-radio-checkbox-symbol-size);width:var(--bal-radio-checkbox-symbol-size);background-color:rgba(0,0,0,0);background-position:center;background-repeat:no-repeat;background-size:var(--bal-radio-checkbox-symbol-size) var(--bal-radio-checkbox-symbol-size)}.bal-radio-checkbox__label::before{content:"";border-style:var(--bal-form-field-control-border-style);border-width:2px}.bal-radio-checkbox__label::after{content:none}.bal-radio-checkbox__label--checked::after{content:""}.bal-radio-checkbox__label--radio::before,.bal-radio-checkbox__label--radio::after{border-radius:50%}.bal-radio-checkbox__label--radio::after{left:0;-webkit-transform:scale(0.25);transform:scale(0.25)}.bal-radio-checkbox__label--checkbox::before{border-radius:var(--bal-form-field-control-radius)}.bal-radio-checkbox__label--checkbox::after{border-top:0;border-right-style:var(--bal-form-field-control-border-style);border-right-width:2px;border-bottom-style:var(--bal-form-field-control-border-style);border-bottom-width:2px;border-left:0;border-radius:1px;width:var(--bal-radio-checkbox-symbol-width);height:var(--bal-radio-checkbox-symbol-height);left:var(--bal-radio-checkbox-symbol-left);margin-top:var(--bal-radio-checkbox-symbol-margin-top);-webkit-transform:rotate(45deg);transform:rotate(45deg)}.bal-radio-checkbox .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch)::before{border-color:var(--bal-color-primary);background:var(--bal-color-transparent)}.bal-radio-checkbox .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::after{background:var(--bal-color-white)}.bal-radio-checkbox .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::before{background:var(--bal-color-primary)}.bal-radio-checkbox .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox::after{border-right-color:var(--bal-color-white);border-bottom-color:var(--bal-color-white)}.bal-radio-checkbox .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox.bal-radio-checkbox__label--checked::before{background:var(--bal-color-primary)}.bal-radio-checkbox:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch)::before,.bal-radio-checkbox--hovered .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch)::before{border-color:var(--bal-color-light-blue-5);background:var(--bal-color-grey-2)}.bal-radio-checkbox:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::after,.bal-radio-checkbox--hovered .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::after{background:var(--bal-color-white)}.bal-radio-checkbox:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::before,.bal-radio-checkbox--hovered .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::before{background:var(--bal-color-light-blue-5)}.bal-radio-checkbox:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox::after,.bal-radio-checkbox--hovered .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox::after{border-right-color:var(--bal-color-white);border-bottom-color:var(--bal-color-white)}.bal-radio-checkbox:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox.bal-radio-checkbox__label--checked::before,.bal-radio-checkbox--hovered .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox.bal-radio-checkbox__label--checked::before{background:var(--bal-color-light-blue-5)}.bal-radio-checkbox:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch)::before,.bal-radio-checkbox--pressed .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch)::before{border-color:var(--bal-color-blue-6);background:var(--bal-color-grey-2)}.bal-radio-checkbox:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::after,.bal-radio-checkbox--pressed .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::after{background:var(--bal-color-white)}.bal-radio-checkbox:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::before,.bal-radio-checkbox--pressed .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::before{background:var(--bal-color-blue-6)}.bal-radio-checkbox:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox::after,.bal-radio-checkbox--pressed .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox::after{border-right-color:var(--bal-color-white);border-bottom-color:var(--bal-color-white)}.bal-radio-checkbox:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox.bal-radio-checkbox__label--checked::before,.bal-radio-checkbox--pressed .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox.bal-radio-checkbox__label--checked::before{background:var(--bal-color-blue-6)}.bal-radio-checkbox--invalid .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch)::before{border-color:var(--bal-color-border-danger);background:var(--bal-color-danger-1)}.bal-radio-checkbox--invalid .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::after{background:var(--bal-color-white)}.bal-radio-checkbox--invalid .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::before{background:var(--bal-color-border-danger)}.bal-radio-checkbox--invalid .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox::after{border-right-color:var(--bal-color-white);border-bottom-color:var(--bal-color-white)}.bal-radio-checkbox--invalid .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox.bal-radio-checkbox__label--checked::before{background:var(--bal-color-border-danger)}.bal-radio-checkbox--invalid:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch)::before,.bal-radio-checkbox--invalid.bal-radio-checkbox--hovered .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch)::before{border-color:var(--bal-color-danger-5);background:var(--bal-color-danger-1)}.bal-radio-checkbox--invalid:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::after,.bal-radio-checkbox--invalid.bal-radio-checkbox--hovered .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::after{background:var(--bal-color-white)}.bal-radio-checkbox--invalid:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::before,.bal-radio-checkbox--invalid.bal-radio-checkbox--hovered .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::before{background:var(--bal-color-danger-5)}.bal-radio-checkbox--invalid:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox::after,.bal-radio-checkbox--invalid.bal-radio-checkbox--hovered .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox::after{border-right-color:var(--bal-color-white);border-bottom-color:var(--bal-color-white)}.bal-radio-checkbox--invalid:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox.bal-radio-checkbox__label--checked::before,.bal-radio-checkbox--invalid.bal-radio-checkbox--hovered .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox.bal-radio-checkbox__label--checked::before{background:var(--bal-color-danger-5)}.bal-radio-checkbox--invalid:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch)::before,.bal-radio-checkbox--invalid.bal-radio-checkbox--pressed .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch)::before{border-color:var(--bal-color-danger-6);background:var(--bal-color-danger-1)}.bal-radio-checkbox--invalid:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::after,.bal-radio-checkbox--invalid.bal-radio-checkbox--pressed .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::after{background:var(--bal-color-white)}.bal-radio-checkbox--invalid:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::before,.bal-radio-checkbox--invalid.bal-radio-checkbox--pressed .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::before{background:var(--bal-color-danger-6)}.bal-radio-checkbox--invalid:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox::after,.bal-radio-checkbox--invalid.bal-radio-checkbox--pressed .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox::after{border-right-color:var(--bal-color-white);border-bottom-color:var(--bal-color-white)}.bal-radio-checkbox--invalid:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox.bal-radio-checkbox__label--checked::before,.bal-radio-checkbox--invalid.bal-radio-checkbox--pressed .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox.bal-radio-checkbox__label--checked::before{background:var(--bal-color-danger-6)}.bal-radio-checkbox--disabled .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch)::before,.bal-radio-checkbox--disabled:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch)::before,.bal-radio-checkbox--disabled:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch)::before{border-color:var(--bal-color-border-grey-dark);background:var(--bal-color-grey-2)}.bal-radio-checkbox--disabled .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::after,.bal-radio-checkbox--disabled:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::after,.bal-radio-checkbox--disabled:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::after{background:var(--bal-color-white)}.bal-radio-checkbox--disabled .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::before,.bal-radio-checkbox--disabled:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::before,.bal-radio-checkbox--disabled:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::before{background:var(--bal-color-border-grey-dark)}.bal-radio-checkbox--disabled .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox::after,.bal-radio-checkbox--disabled:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox::after,.bal-radio-checkbox--disabled:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox::after{border-right-color:var(--bal-color-white);border-bottom-color:var(--bal-color-white)}.bal-radio-checkbox--disabled .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox.bal-radio-checkbox__label--checked::before,.bal-radio-checkbox--disabled:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox.bal-radio-checkbox__label--checked::before,.bal-radio-checkbox--disabled:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox.bal-radio-checkbox__label--checked::before{background:var(--bal-color-border-grey-dark)}.bal-radio-checkbox .bal-radio-checkbox__label .bal-radio-checkbox__label__text{color:var(--bal-color-primary)}.bal-radio-checkbox:hover .bal-radio-checkbox__label .bal-radio-checkbox__label__text,.bal-radio-checkbox--hovered .bal-radio-checkbox__label .bal-radio-checkbox__label__text{color:var(--bal-color-light-blue-5)}.bal-radio-checkbox:active .bal-radio-checkbox__label .bal-radio-checkbox__label__text,.bal-radio-checkbox--pressed .bal-radio-checkbox__label .bal-radio-checkbox__label__text{color:var(--bal-color-blue-6)}.bal-radio-checkbox--invalid .bal-radio-checkbox__label .bal-radio-checkbox__label__text{color:var(--bal-color-border-danger)}.bal-radio-checkbox--invalid:hover .bal-radio-checkbox__label .bal-radio-checkbox__label__text,.bal-radio-checkbox--invalid.bal-radio-checkbox--hovered .bal-radio-checkbox__label .bal-radio-checkbox__label__text{color:var(--bal-color-danger-5)}.bal-radio-checkbox--invalid:active .bal-radio-checkbox__label .bal-radio-checkbox__label__text,.bal-radio-checkbox--invalid.bal-radio-checkbox--pressed .bal-radio-checkbox__label .bal-radio-checkbox__label__text{color:var(--bal-color-danger-6)}.bal-radio-checkbox--disabled .bal-radio-checkbox__label .bal-radio-checkbox__label__text,.bal-radio-checkbox--disabled:hover .bal-radio-checkbox__label .bal-radio-checkbox__label__text,.bal-radio-checkbox--disabled:active .bal-radio-checkbox__label .bal-radio-checkbox__label__text,.bal-radio-checkbox--disabled.bal-radio-checkbox--hovered .bal-radio-checkbox__label .bal-radio-checkbox__label__text,.bal-radio-checkbox--disabled.bal-radio-checkbox--pressed .bal-radio-checkbox__label .bal-radio-checkbox__label__text{color:var(--bal-color-text-grey)}.bal-radio-checkbox--inline{display:inline}.bal-radio-checkbox--select-button{padding-left:.75rem;padding-right:.75rem;min-width:3rem;border-width:2px;border-style:var(--bal-form-field-control-border-style);border-radius:var(--bal-form-field-control-radius);border-color:var(--bal-radio-checkbox-select-button-border-color)}.bal-radio-checkbox--select-button:hover{border-color:var(--bal-radio-checkbox-select-button-border-color-hover);background:var(--bal-radio-checkbox-select-button-background-hover)}.bal-radio-checkbox--select-button:active{border-color:var(--bal-radio-checkbox-select-button-border-color-active);background:var(--bal-radio-checkbox-select-button-background-active)}.bal-radio-checkbox--select-button label::before{top:unset}.bal-radio-checkbox--select-button label::after{top:unset;margin-top:-3px}.bal-radio-checkbox--select-button .bal-radio-checkbox__label--flat::before{top:unset !important}.bal-radio-checkbox--select-button .bal-radio-checkbox__label--flat::after{margin-top:-3px;top:unset !important}.bal-radio-checkbox--select-button .bal-radio-checkbox__label--flat .bal-radio-checkbox__label__text--flat{padding-top:.25rem;padding-bottom:.25rem}.bal-radio-checkbox--select-button.bal-radio-checkbox--checked{background:var(--bal-radio-checkbox-select-button-background-checked)}.bal-radio-checkbox--select-button.bal-radio-checkbox--checked .bal-radio-checkbox__label .bal-radio-checkbox__label__text .is-link{color:var(--bal-radio-checkbox-select-button-link-text-color-checked)}.bal-radio-checkbox--select-button.bal-radio-checkbox--checked:hover{background:var(--bal-radio-checkbox-select-button-background-checked-hover)}.bal-radio-checkbox--select-button.bal-radio-checkbox--checked:active{background:var(--bal-radio-checkbox-select-button-background-checked-active)}.bal-radio-checkbox--select-button.bal-radio-checkbox--checked .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch)::before{border-color:var(--bal-color-white);background:var(--bal-color-transparent)}.bal-radio-checkbox--select-button.bal-radio-checkbox--checked .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::after{background:var(--bal-color-white)}.bal-radio-checkbox--select-button.bal-radio-checkbox--checked .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::before{background:var(--bal-color-primary)}.bal-radio-checkbox--select-button.bal-radio-checkbox--checked .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox::after{border-right-color:var(--bal-color-white);border-bottom-color:var(--bal-color-white)}.bal-radio-checkbox--select-button.bal-radio-checkbox--checked .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox.bal-radio-checkbox__label--checked::before{background:var(--bal-color-primary)}.bal-radio-checkbox--select-button.bal-radio-checkbox--checked .bal-radio-checkbox__label .bal-radio-checkbox__label__text{color:var(--bal-color-white)}.bal-radio-checkbox--select-button.bal-radio-checkbox--checked:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch)::before{border-color:var(--bal-color-white);background:var(--bal-color-transparent)}.bal-radio-checkbox--select-button.bal-radio-checkbox--checked:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::after{background:var(--bal-color-white)}.bal-radio-checkbox--select-button.bal-radio-checkbox--checked:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::before{background:var(--bal-color-light-blue-5)}.bal-radio-checkbox--select-button.bal-radio-checkbox--checked:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox::after{border-right-color:var(--bal-color-white);border-bottom-color:var(--bal-color-white)}.bal-radio-checkbox--select-button.bal-radio-checkbox--checked:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox.bal-radio-checkbox__label--checked::before{background:var(--bal-color-light-blue-5)}.bal-radio-checkbox--select-button.bal-radio-checkbox--checked:hover .bal-radio-checkbox__label .bal-radio-checkbox__label__text{color:var(--bal-color-white)}.bal-radio-checkbox--select-button.bal-radio-checkbox--checked:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch)::before{border-color:var(--bal-color-white);background:var(--bal-color-transparent)}.bal-radio-checkbox--select-button.bal-radio-checkbox--checked:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::after{background:var(--bal-color-white)}.bal-radio-checkbox--select-button.bal-radio-checkbox--checked:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::before{background:var(--bal-color-blue-6)}.bal-radio-checkbox--select-button.bal-radio-checkbox--checked:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox::after{border-right-color:var(--bal-color-white);border-bottom-color:var(--bal-color-white)}.bal-radio-checkbox--select-button.bal-radio-checkbox--checked:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox.bal-radio-checkbox__label--checked::before{background:var(--bal-color-blue-6)}.bal-radio-checkbox--select-button.bal-radio-checkbox--checked:active .bal-radio-checkbox__label .bal-radio-checkbox__label__text{color:var(--bal-color-white)}.bal-radio-checkbox--select-button.bal-radio-checkbox--invalid{border-color:var(--bal-radio-checkbox-select-button-border-color-invalid);background:var(--bal-radio-checkbox-select-button-background-invalid)}.bal-radio-checkbox--select-button.bal-radio-checkbox--invalid .bal-radio-checkbox__label .bal-radio-checkbox__label__text .is-link{color:var(--bal-form-field-label-danger-color)}.bal-radio-checkbox--select-button.bal-radio-checkbox--invalid:hover{border-color:var(--bal-radio-checkbox-select-button-border-color-invalid-hover);background:var(--bal-radio-checkbox-select-button-background-invalid-hover)}.bal-radio-checkbox--select-button.bal-radio-checkbox--invalid:active{border-color:var(--bal-radio-checkbox-select-button-border-color-invalid-active);background:var(--bal-radio-checkbox-select-button-background-invalid-active)}.bal-radio-checkbox--select-button.bal-radio-checkbox--invalid.bal-radio-checkbox--checked{border-color:var(--bal-radio-checkbox-select-button-border-color-invalid-checked);background:var(--bal-radio-checkbox-select-button-background-invalid-checked)}.bal-radio-checkbox--select-button.bal-radio-checkbox--invalid.bal-radio-checkbox--checked:hover{border-color:var(--bal-radio-checkbox-select-button-border-color-invalid-checked-hover);background:var(--bal-radio-checkbox-select-button-background-invalid-checked-hover)}.bal-radio-checkbox--select-button.bal-radio-checkbox--invalid.bal-radio-checkbox--checked:active{border-color:var(--bal-radio-checkbox-select-button-border-color-invalid-checked-active);background:var(--bal-radio-checkbox-select-button-background-invalid-checked-active)}.bal-radio-checkbox--select-button.bal-radio-checkbox--invalid.bal-radio-checkbox--checked .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch)::before{border-color:var(--bal-color-white);background:var(--bal-color-transparent)}.bal-radio-checkbox--select-button.bal-radio-checkbox--invalid.bal-radio-checkbox--checked .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::after{background:var(--bal-color-white)}.bal-radio-checkbox--select-button.bal-radio-checkbox--invalid.bal-radio-checkbox--checked .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::before{background:var(--bal-color-border-danger)}.bal-radio-checkbox--select-button.bal-radio-checkbox--invalid.bal-radio-checkbox--checked .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox::after{border-right-color:var(--bal-color-white);border-bottom-color:var(--bal-color-white)}.bal-radio-checkbox--select-button.bal-radio-checkbox--invalid.bal-radio-checkbox--checked .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox.bal-radio-checkbox__label--checked::before{background:var(--bal-color-border-danger)}.bal-radio-checkbox--select-button.bal-radio-checkbox--invalid.bal-radio-checkbox--checked:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch)::before{border-color:var(--bal-color-white);background:var(--bal-color-transparent)}.bal-radio-checkbox--select-button.bal-radio-checkbox--invalid.bal-radio-checkbox--checked:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::after{background:var(--bal-color-white)}.bal-radio-checkbox--select-button.bal-radio-checkbox--invalid.bal-radio-checkbox--checked:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::before{background:var(--bal-color-danger-5)}.bal-radio-checkbox--select-button.bal-radio-checkbox--invalid.bal-radio-checkbox--checked:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox::after{border-right-color:var(--bal-color-white);border-bottom-color:var(--bal-color-white)}.bal-radio-checkbox--select-button.bal-radio-checkbox--invalid.bal-radio-checkbox--checked:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox.bal-radio-checkbox__label--checked::before{background:var(--bal-color-danger-5)}.bal-radio-checkbox--select-button.bal-radio-checkbox--invalid.bal-radio-checkbox--checked:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch)::before{border-color:var(--bal-color-white);background:var(--bal-color-transparent)}.bal-radio-checkbox--select-button.bal-radio-checkbox--invalid.bal-radio-checkbox--checked:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::after{background:var(--bal-color-white)}.bal-radio-checkbox--select-button.bal-radio-checkbox--invalid.bal-radio-checkbox--checked:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::before{background:var(--bal-color-danger-6)}.bal-radio-checkbox--select-button.bal-radio-checkbox--invalid.bal-radio-checkbox--checked:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox::after{border-right-color:var(--bal-color-white);border-bottom-color:var(--bal-color-white)}.bal-radio-checkbox--select-button.bal-radio-checkbox--invalid.bal-radio-checkbox--checked:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox.bal-radio-checkbox__label--checked::before{background:var(--bal-color-danger-6)}.bal-radio-checkbox--select-button.bal-radio-checkbox--disabled,.bal-radio-checkbox--select-button.bal-radio-checkbox--disabled:hover,.bal-radio-checkbox--select-button.bal-radio-checkbox--disabled:active{border-color:var(--bal-radio-checkbox-select-button-border-color-disabled-hover-active);background:var(--bal-radio-checkbox-select-button-background-disabled-hover-active)}.bal-radio-checkbox--select-button.bal-radio-checkbox--disabled .bal-radio-checkbox__label .bal-radio-checkbox__label__text .is-link,.bal-radio-checkbox--select-button.bal-radio-checkbox--disabled:hover .bal-radio-checkbox__label .bal-radio-checkbox__label__text .is-link,.bal-radio-checkbox--select-button.bal-radio-checkbox--disabled:active .bal-radio-checkbox__label .bal-radio-checkbox__label__text .is-link{color:var(--bal-form-field-label-disabled-color)}.bal-radio-checkbox--select-button.bal-radio-checkbox--disabled.bal-radio-checkbox--checked,.bal-radio-checkbox--select-button.bal-radio-checkbox--disabled.bal-radio-checkbox--checked:hover,.bal-radio-checkbox--select-button.bal-radio-checkbox--disabled.bal-radio-checkbox--checked:active{border-color:var(--bal-radio-checkbox-select-button-border-color-disabled-checked-hover-active);background:var(--bal-radio-checkbox-select-button-background-disabled-checked-hover-active)}.bal-radio-checkbox--select-button.bal-radio-checkbox--disabled.bal-radio-checkbox--checked .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch)::before,.bal-radio-checkbox--select-button.bal-radio-checkbox--disabled.bal-radio-checkbox--checked:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch)::before,.bal-radio-checkbox--select-button.bal-radio-checkbox--disabled.bal-radio-checkbox--checked:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch)::before{border-color:var(--bal-color-white);background:var(--bal-color-transparent)}.bal-radio-checkbox--select-button.bal-radio-checkbox--disabled.bal-radio-checkbox--checked .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::after,.bal-radio-checkbox--select-button.bal-radio-checkbox--disabled.bal-radio-checkbox--checked:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::after,.bal-radio-checkbox--select-button.bal-radio-checkbox--disabled.bal-radio-checkbox--checked:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::after{background:var(--bal-color-white)}.bal-radio-checkbox--select-button.bal-radio-checkbox--disabled.bal-radio-checkbox--checked .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::before,.bal-radio-checkbox--select-button.bal-radio-checkbox--disabled.bal-radio-checkbox--checked:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::before,.bal-radio-checkbox--select-button.bal-radio-checkbox--disabled.bal-radio-checkbox--checked:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::before{background:var(--bal-color-border-grey-dark)}.bal-radio-checkbox--select-button.bal-radio-checkbox--disabled.bal-radio-checkbox--checked .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox::after,.bal-radio-checkbox--select-button.bal-radio-checkbox--disabled.bal-radio-checkbox--checked:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox::after,.bal-radio-checkbox--select-button.bal-radio-checkbox--disabled.bal-radio-checkbox--checked:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox::after{border-right-color:var(--bal-color-white);border-bottom-color:var(--bal-color-white)}.bal-radio-checkbox--select-button.bal-radio-checkbox--disabled.bal-radio-checkbox--checked .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox.bal-radio-checkbox__label--checked::before,.bal-radio-checkbox--select-button.bal-radio-checkbox--disabled.bal-radio-checkbox--checked:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox.bal-radio-checkbox__label--checked::before,.bal-radio-checkbox--select-button.bal-radio-checkbox--disabled.bal-radio-checkbox--checked:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox.bal-radio-checkbox__label--checked::before{background:var(--bal-color-border-grey-dark)}.bal-radio-checkbox--switch{min-width:2.5rem}.bal-radio-checkbox--switch .bal-radio-checkbox__label{padding-left:1rem}.bal-radio-checkbox--switch .bal-radio-checkbox__label::before{border-radius:1.5rem;position:absolute;display:block;top:0;left:0;width:2.5rem;height:1.5rem;border:1.6px solid rgba(0,0,0,0);content:"";-webkit-transition:left .25s ease-out,background .25s ease-out;transition:left .25s ease-out,background .25s ease-out;margin-top:.25rem}.bal-radio-checkbox--switch .bal-radio-checkbox__label::after{border:none;margin:0;border-radius:50%;display:block;position:absolute;top:.25rem !important;left:.25rem;width:1rem;height:1rem;z-index:2;margin-top:.25rem;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);-webkit-transition:left .25s ease-out,background .25s ease-out;transition:left .25s ease-out,background .25s ease-out;content:""}.bal-radio-checkbox--switch .bal-radio-checkbox__label::before{background:var(--bal-radio-checkbox-switch-label-background-before)}.bal-radio-checkbox--switch .bal-radio-checkbox__label::after{background:var(--bal-radio-checkbox-switch-label-background-after)}.bal-radio-checkbox--switch:hover .bal-radio-checkbox__label::after{background:var(--bal-radio-checkbox-switch-label-background-hover-after)}.bal-radio-checkbox--switch:active .bal-radio-checkbox__label::after{background:var(--bal-radio-checkbox-switch-label-background-active-after)}.bal-radio-checkbox--switch.bal-radio-checkbox--flat .bal-radio-checkbox__label::before,.bal-radio-checkbox--switch.bal-radio-checkbox--flat .bal-radio-checkbox__label::after{margin-top:0}.bal-radio-checkbox--switch.bal-radio-checkbox--checked .bal-radio-checkbox__label::before{background:var(--bal-radio-checkbox-switch-label-background-checked-before)}.bal-radio-checkbox--switch.bal-radio-checkbox--checked .bal-radio-checkbox__label::after{left:1.25rem;background:var(--bal-radio-checkbox-switch-label-background-checked-after)}.bal-radio-checkbox--switch.bal-radio-checkbox--checked:hover .bal-radio-checkbox__label::before{background:var(--bal-radio-checkbox-switch-label-background-checked-hover-before)}.bal-radio-checkbox--switch.bal-radio-checkbox--checked:active .bal-radio-checkbox__label::before{background:var(--bal-radio-checkbox-switch-label-background-checked-active-before)}.bal-radio-checkbox--switch.bal-radio-checkbox--invalid .bal-radio-checkbox__label::before{background:var(--bal-radio-checkbox-switch-label-background-invalid-before)}.bal-radio-checkbox--switch.bal-radio-checkbox--invalid .bal-radio-checkbox__label::after{background:var(--bal-radio-checkbox-switch-label-background-invalid-after)}.bal-radio-checkbox--switch.bal-radio-checkbox--invalid:hover .bal-radio-checkbox__label::after{background:var(--bal-radio-checkbox-switch-label-background-invalid-hover-after)}.bal-radio-checkbox--switch.bal-radio-checkbox--invalid:active .bal-radio-checkbox__label::after{background:var(--bal-radio-checkbox-switch-label-background-invalid-active-after)}.bal-radio-checkbox--switch.bal-radio-checkbox--invalid.bal-radio-checkbox--checked .bal-radio-checkbox__label::before{background:var(--bal-radio-checkbox-switch-label-background-invalid-checked-before)}.bal-radio-checkbox--switch.bal-radio-checkbox--invalid.bal-radio-checkbox--checked .bal-radio-checkbox__label::after{background:var(--bal-radio-checkbox-switch-label-background-invalid-checked-after)}.bal-radio-checkbox--switch.bal-radio-checkbox--invalid.bal-radio-checkbox--checked:hover .bal-radio-checkbox__label::before{background:var(--bal-radio-checkbox-switch-label-background-invalid-checked-hover-before)}.bal-radio-checkbox--switch.bal-radio-checkbox--invalid.bal-radio-checkbox--checked:active .bal-radio-checkbox__label::before{background:var(--bal-radio-checkbox-switch-label-background-invalid-checked-active-before)}.bal-radio-checkbox--switch.bal-radio-checkbox--disabled .bal-radio-checkbox__label::before,.bal-radio-checkbox--switch.bal-radio-checkbox--disabled:hover .bal-radio-checkbox__label::before,.bal-radio-checkbox--switch.bal-radio-checkbox--disabled:active .bal-radio-checkbox__label::before{background:var(--bal-radio-checkbox-switch-label-background-disabled-hover-active-before)}.bal-radio-checkbox--switch.bal-radio-checkbox--disabled .bal-radio-checkbox__label::after,.bal-radio-checkbox--switch.bal-radio-checkbox--disabled:hover .bal-radio-checkbox__label::after,.bal-radio-checkbox--switch.bal-radio-checkbox--disabled:active .bal-radio-checkbox__label::after{background:var(--bal-radio-checkbox-switch-label-background-disabled-hover-active-after)}.bal-radio-checkbox--switch.bal-radio-checkbox--disabled.bal-radio-checkbox--checked .bal-radio-checkbox__label::before,.bal-radio-checkbox--switch.bal-radio-checkbox--disabled.bal-radio-checkbox--checked:hover .bal-radio-checkbox__label::before,.bal-radio-checkbox--switch.bal-radio-checkbox--disabled.bal-radio-checkbox--checked:active .bal-radio-checkbox__label::before{background:var(--bal-radio-checkbox-switch-label-background-disabled-checked-hover-active-before)}.bal-radio-checkbox--switch.bal-radio-checkbox--disabled.bal-radio-checkbox--checked .bal-radio-checkbox__label::after,.bal-radio-checkbox--switch.bal-radio-checkbox--disabled.bal-radio-checkbox--checked:hover .bal-radio-checkbox__label::after,.bal-radio-checkbox--switch.bal-radio-checkbox--disabled.bal-radio-checkbox--checked:active .bal-radio-checkbox__label::after{background:var(--bal-radio-checkbox-switch-label-background-disabled-checked-hover-active-after)}.bal-radio-checkbox__icon{position:absolute !important;left:5.5px;z-index:1}.bal-radio-checkbox__icon--hidden{display:none !important}';const O=class{constructor(o){a(this,o),this.balChange=e(this,"balChange",7),this.balFocus=e(this,"balFocus",7),this.balBlur=e(this,"balBlur",7),this.inputId="bal-cg-"+C++,this.inheritedAttributes={},this.hasFocus=!1,this.mutationObserverActive=!0,this.onClick=a=>{if(!this.control)return;if(a.target.href)return;a.preventDefault();const e=a.target&&a.target.closest("bal-checkbox");if(e&&(e.disabled||e.readonly))return a.stopPropagation();const o=[];this.getCheckboxes().forEach((a=>{a.checked&&o.push(a.value)})),p(this.value,o)||(this.value=[...o],this.balChange.emit(this.value))},this.onOptionChange=async()=>{this.sync()},this.ariaForm=v,this.options=void 0,this.interface=void 0,this.control=!1,this.name=this.inputId,this.vertical=!1,this.verticalOnMobile=!1,this.expanded=!1,this.invalid=void 0,this.disabled=void 0,this.readonly=void 0,this.value=[],this.columns=1,this.columnsTablet=1,this.columnsMobile=1,this.autoInvalidOff=!1}createLogger(a){this.log=a}async optionChanged(){this.control&&(this.onOptionChange(),this.mutationObserverActive=void 0===this.options)}invalidChanged(a){this.control&&void 0!==a&&(this.getCheckboxes().forEach((e=>{e.invalid=a})),this.getCheckboxButtons().forEach((e=>{e.invalid=a})))}disabledChanged(a){this.control&&void 0!==a&&(this.getCheckboxes().forEach((e=>{e.disabled=a})),this.getCheckboxButtons().forEach((e=>{e.disabled=a})))}readonlyChanged(a){this.control&&void 0!==a&&(this.getCheckboxes().forEach((e=>{e.readonly=a})),this.getCheckboxButtons().forEach((e=>{e.readonly=a})))}valueChanged(a,e){this.control&&p(this.value,e)||this.onOptionChange()}columnsChanged(a){this.getCheckboxButtons().forEach((e=>e.colSize=a))}columnsTabletChanged(a){this.getCheckboxButtons().forEach((e=>e.colSizeTablet=a))}columnsMobileChanged(a){this.getCheckboxButtons().forEach((e=>e.colSizeMobile=a))}connectedCallback(){this.control&&(this.mutationObserverActive=void 0===this.options)}componentWillLoad(){this.control&&(this.inheritedAttributes=s(this.el,["aria-label","tabindex","title"]),this.disabledChanged(this.disabled),this.readonlyChanged(this.readonly)),this.columnsChanged(this.columns),this.columnsTabletChanged(this.columnsTablet),this.columnsMobileChanged(this.columnsMobile),this.onOptionChange()}focusInListener(a){this.balFocus.emit(a)}focusOutListener(a){this.balBlur.emit(a)}mutationListener(){this.control&&(this.disabledChanged(this.disabled),this.readonlyChanged(this.readonly)),this.columnsChanged(this.columns),this.columnsTabletChanged(this.columnsTablet),this.columnsMobileChanged(this.columnsMobile),this.onOptionChange()}listenOnClick(a){this.control&&h(this.el,a.target)&&i(a)}resetHandler(a){const e=a.target;(null==e?void 0:e.contains(this.el))&&(this.control&&(this.value=[]),this.onOptionChange())}checkboxFocusListener(a){const{target:e}=a;e&&h(this.el,e)&&k(e,"bal-checkbox")&&i(a)}checkboxBlurListener(a){const{target:e}=a;e&&h(this.el,e)&&k(e,"bal-checkbox")&&i(a)}async setValue(a){this.control&&(this.value=a)}async getOptionByValue(a){const e=this.options;if(e)return e.find((e=>e.value===a))}async setAriaForm(a){this.ariaForm=Object.assign({},a)}sync(){if(this.control){const a=a=>{for(let e=0;e<this.value.length;e++){const o=this.value[e];if(void 0!==o&&o.toString()===a.value.toString())return!0}return!1};this.getCheckboxes().forEach((e=>{e.checked=a(e)}))}this.getCheckboxes().forEach((a=>{this.interface&&(a.interface=this.interface)}))}getCheckboxes(){return Array.from(this.el.querySelectorAll("bal-checkbox"))}getCheckboxButtons(){return Array.from(this.el.querySelectorAll("bal-checkbox-button"))}render(){const a=x.block("radio-checkbox-group"),e=a.element("inner"),b=(this.options||[]).map((a=>"function"==typeof a.html?Object.assign(Object.assign({},a),{html:a.html()}):a));return o(c,Object.assign({class:Object.assign({},a.class()),role:"group","aria-disabled":this.disabled?"true":null,"aria-labelledby":this.ariaForm.labelId,"aria-describedby":this.ariaForm.messageId,onClick:this.onClick},this.inheritedAttributes),o("div",{class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e.class()),e.modifier("vertical-mobile").class(this.verticalOnMobile)),e.modifier("vertical").class(this.vertical)),e.modifier("expanded").class(this.expanded)),e.modifier("select-button").class("select-button"===this.interface))},o("slot",null),b.map((a=>o("bal-checkbox",{key:a.value,name:a.name,value:a.value,labelHidden:a.labelHidden,flat:a.flat,interface:a.interface,disabled:a.disabled,readonly:a.readonly,required:a.required,nonSubmit:!!a.nonSubmit,invalid:a.invalid,innerHTML:a.html})))))}get el(){return b(this)}static get watchers(){return{options:["optionChanged"],invalid:["invalidChanged"],disabled:["disabledChanged"],readonly:["readonlyChanged"],value:["valueChanged"],columns:["columnsChanged"],columnsTablet:["columnsTabletChanged"],columnsMobile:["columnsMobileChanged"]}}};l([n("bal-checkbox-group"),r("design:type",Function),r("design:paramtypes",[Function]),r("design:returntype",void 0)],O.prototype,"createLogger",null),l([w(),r("design:type",Function),r("design:paramtypes",[FocusEvent]),r("design:returntype",void 0)],O.prototype,"focusInListener",null),l([w(),r("design:type",Function),r("design:paramtypes",[FocusEvent]),r("design:returntype",void 0)],O.prototype,"focusOutListener",null),l([m({tags:["bal-checkbox-group","bal-checkbox"],attributes:!1,characterData:!1}),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],O.prototype,"mutationListener",null),l([g("balChange",{capture:!0,target:"document"}),r("design:type",Function),r("design:paramtypes",[UIEvent]),r("design:returntype",void 0)],O.prototype,"listenOnClick",null),l([g("reset",{capture:!0,target:"document"}),r("design:type",Function),r("design:paramtypes",[UIEvent]),r("design:returntype",void 0)],O.prototype,"resetHandler",null),l([g("balFocus",{capture:!0,target:"document"}),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype",void 0)],O.prototype,"checkboxFocusListener",null),l([g("balBlur",{capture:!0,target:"document"}),r("design:type",Function),r("design:paramtypes",[CustomEvent]),r("design:returntype",void 0)],O.prototype,"checkboxBlurListener",null);let C=0;export{y as bal_checkbox,O as bal_checkbox_group}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as a,H as c,g as t}from"./p-2539ba43.js";import{B as s}from"./p-ae86d0a0.js";import{f as d,g as r,h as b,i,j as f,k as o,l as h,m as n,n as l}from"./p-0521dc23.js";const p=class{constructor(a){e(this,a),this.getHex=()=>{let e;switch(this.color){case"green":e=l;break;case"green-light":e=n;break;case"red":e=h;break;case"red-light":e=o;break;case"purple":e=f;break;case"purple-light":e=i;break;case"yellow":e=b;break;case"yellow-light":e=r;break;default:e=d}return e},this.variation="1",this.color="green",this.rotation="0"}render(){const e=s.block("shape"),t=[a("g",{key:"d5eb6f2e514c14102db76e006ac910e10a292a2e",id:"e8353d3b-35a2-4e20-9245-0eceed641ae5"},a("g",{key:"97523387b4f6285ce5703706cfbdf91758fc2235",id:"af87362a-72b2-42cf-8efe-c9917dc1f7f6"},a("path",{key:"1801ccf2b5a9198f83860a4d5eba5b2a20b75751",class:"st0",d:"M132,66v66H66V66H132z M132,0v66H66V0H132z M66,0v66H0V6.4C0,4.2,0,3,0.4,2.2c0.4-0.7,1-1.4,1.7-1.7\n C3,0,4.2,0,6.4,0H66z M191.6,0c2.2,0,3.4,0,4.2,0.4c0.7,0.4,1.4,1,1.7,1.7c0.4,0.9,0.4,2,0.4,4.2V66h-66V0H191.6z M0,125.6V66h66\n v66H6.4H0 M198,132v59.6c0,2.2,0,3.4-0.4,4.2c-0.4,0.7-1,1.4-1.7,1.7c-0.9,0.4-2,0.4-4.2,0.4H132v-66H198z"}))),a("g",{key:"b3b9f265a395632430bead0a05cd93e69007c001",id:"b949d602-8478-437e-a171-ad3f26649cb4"},a("g",{key:"7fc20715e27f56ecf346cdf9b2cb2fbca51643f3",id:"ae3574e0-2065-4681-8937-4318b8656147"},a("path",{key:"982cdba6eae902df4fdbc4799c28f8d8ca670429",class:"b9f37b2d-094d-4f18-b17c-7c5acf36f9a6",d:"M132,66v66H66V66ZM191.6,0c2.24,0,3.36,0,4.22.44a4,4,0,0,1,1.74,1.74c.44.86.44,2,.44,4.22V66H132V0ZM66,0V66H0V6.4C0,4.16,0,3,.44,2.18A4,4,0,0,1,2.18.44C3,0,4.16,0,6.4,0Zm0,132v66H6.4c-2.24,0-3.36,0-4.22-.44a4,4,0,0,1-1.74-1.74C0,195,0,193.84,0,191.6V132Zm66,0v66H66V132Zm66,0v59.6c0,2.24,0,3.36-.44,4.22a4,4,0,0,1-1.74,1.74c-.86.44-2,.44-4.22.44H132V132Zm0-66v66H132V66Z"}))),a("g",{key:"386c20e69b6d4bb30c6f7b071059c765d337bbcf",id:"e827a936-cbcd-43b3-971a-aa8f8714fdff"},a("g",{key:"04334c11d48ec0fa51dea5df6b6b42ce8aefcdde",id:"e540dca8-23ca-45dc-b462-df9071c1317d"},a("path",{key:"99db2d7bafde38e77b92919ed447bb3eeb93d938",class:"st0",d:"M132,66v66H66V66H132z M132,0v66H66V0H132z M66,0v66H0V6.4C0,4.2,0,3,0.4,2.2c0.4-0.7,1-1.4,1.7-1.7\n C3,0,4.2,0,6.4,0H66z M66,132v66H6.4c-2.2,0-3.4,0-4.2-0.4c-0.7-0.4-1.4-1-1.7-1.7C0,195,0,193.8,0,191.6V132H66z M132,132v66H66\n v-66H132z M198,132v59.6c0,2.2,0,3.4-0.4,4.2c-0.4,0.7-1,1.4-1.7,1.7c-0.9,0.4-2,0.4-4.2,0.4H132v-66H198z M198,66v66h-66V66"})))];return a(c,{key:"93f3b67cfef8a01eac7ccd0334a4315ee0c67b25",class:Object.assign(Object.assign({},e.class()),e.modifier(`is-rotation-${this.rotation}`).class())},a("svg",{key:"b90bc3346d6000d65aeeb8a7749d8d777886e9cf",version:"1.1",x:"0px",y:"0px",viewBox:"0 0 198 198",focusable:"false","aria-hidden":"true",fill:this.getHex()},t[parseInt(this.variation)-1]))}get el(){return t(this)}};p.style=".bal-shape{display:block;overflow:hidden;border-radius:var(--bal-radius-normal);width:66px;height:66px}@media screen and (min-width: 769px),print{.bal-shape{width:120px;height:120px}}@media screen and (min-width: 1024px){.bal-shape{width:198px;height:198px;border-radius:unset}}.bal-shape--is-rotation-0{-webkit-transform:rotate(0deg);transform:rotate(0deg)}.bal-shape--is-rotation-90{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.bal-shape--is-rotation-180{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.bal-shape--is-rotation-270{-webkit-transform:rotate(270deg);transform:rotate(270deg)}";export{p as bal_shape}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as a,h as e,H as i,g as s}from"./p-2539ba43.js";import{a as n}from"./p-dd5e13d1.js";import{_ as b,a as o}from"./p-43c9f5e9.js";import{a as l}from"./p-00b37ea2.js";import{n as r,f as _,t as d,j as h,o as c,p as v,l as m,q as p,i as u,b as f}from"./p-33101c54.js";import{B as g}from"./p-ae86d0a0.js";import{L as x}from"./p-b77e3348.js";import{n as w}from"./p-f3f5ce4f.js";import{s as y}from"./p-63b52c0f.js";import{b as j}from"./p-a65354df.js";import{a as O}from"./p-0e361394.js";import{L as k}from"./p-af4c6af2.js";import{b as L}from"./p-fe30593a.js";import{L as $}from"./p-ce674dca.js";import{L as A}from"./p-00281d6b.js";import{L as z}from"./p-95a4f1be.js";import{L as T}from"./p-69e7c8d6.js";import"./p-9a3d9e17.js";import"./p-166d571e.js";import"./p-4573c419.js";import"./p-2229e98e.js";import"./p-aafb6696.js";import"./p-96216bd1.js";import"./p-acf222fd.js";import"./p-0521dc23.js";const C=class{constructor(e){t(this,e),this.balNavigate=a(this,"balNavigate",7),this.inheritAttributes={},this.tabPanelID="bal-tab-panel-id-"+E++,this.isActive=!1,this.active=!1,this.value="",this.label="",this.href="",this.target="_self",this.bubble=!1,this.disabled=!1,this.invisible=!1,this.prevent=!1,this.icon=void 0,this.noPanel=!1,this.aria=void 0,this.subLabel="",this.svg=""}componentWillLoad(){this.inheritAttributes=n(this.el)}async getOptions(){return this.options}async setActive(t){this.isActive=t}get options(){return{tabPanelID:this.tabPanelID,value:this.value,icon:this.icon,label:this.label,href:this.href,target:this.target,active:this.active,disabled:this.disabled,invisible:this.invisible,bubble:this.bubble,passed:!1,prevent:this.prevent,navigate:this.balNavigate,trackingData:this.inheritAttributes,noPanel:this.noPanel,aria:this.aria,subLabel:this.subLabel,svg:this.svg}}render(){const t=!this.noPanel,a=!this.isActive||this.noPanel;return e(i,{key:"73cd7faf737780486e58b71b4c51508e0311e277",id:this.tabPanelID,class:{"bal-tab-item":!0,"bal-tab-item--active":this.isActive},role:t?"tabpanel":void 0,"aria-label":t?this.label:void 0,"aria-hidden":a?"true":"false",tabindex:a?"-1":void 0,hidden:!!a||void 0},e("slot",{key:"d533d087306ee17ba5b78c9b756db6cf923ef1a5"}))}get el(){return s(this)}};let E=0;const F=({items:t,value:a,onSelectTab:i})=>{const s=g.block("tabs").element("select");return e("bal-select",{class:Object.assign({},s.class()),value:a,onBalChange:a=>(a=>{const e=t.filter((t=>t.value===a.detail));if(e.length>0){const t=e[0];""!==t.href&&void 0!==t.href&&j.hasWindow&&window.open(t.href,t.target),i(a,t)}})(a)},t.filter((t=>!t.disabled&&!t.invisible)).map((t=>e("bal-select-option",{key:t.value,label:t.label,value:t.value},t.label))))},I=({item:t,inverted:a,accordion:i,isAccordionOpen:s,isMobile:n,hasBubble:b})=>{const o=g.block("tabs").element("nav").element("item").element("icon");let l=t.disabled?"grey":"primary";return a&&(l=t.disabled?"primary-light":"white"),e("span",{class:Object.assign(Object.assign(Object.assign(Object.assign({},o.class()),o.modifier("active").class(t.active)),o.modifier("disabled").class(t.disabled)),o.modifier("display-svg").class(void 0!==t.svg))},e("bal-icon",t.svg?{svg:t.svg,size:"large",color:"auto"}:{size:n||i?"small":"",name:i?"nav-go-down":t.icon,color:l,turn:i&&!0===s&&t.active}),b?e("bal-badge",{class:Object.assign({},o.element("bubble").class()),size:"small"},t.bubble):"")},S=({item:t,inverted:a,hasBubble:i,isVertical:s,context:n})=>{const b=g.block("tabs").element("nav").element("item").element("label");return e("span",{class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},b.class()),b.modifier("inverted").class(a)),b.modifier("active").class(t.active)),b.modifier("disabled").class(t.disabled)),b.modifier("vertical").class(s)),b.modifier(`context-${n}`).class(void 0!==n)),b.modifier("with-svg").class(t.svg&&t.svg.length>0)),"data-testid":"bal-tabs-item-label"},t.label,t.subLabel&&e("span",{class:b.element("sub-label").class()},t.subLabel),i?e("bal-badge",{class:Object.assign({},b.element("bubble").class()),size:"small"},t.bubble):"")},B=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():"",D=({item:t,tabsId:a,isFirst:i,isLast:s,isMobile:n,isVertical:b,accordion:o,isAccordionOpen:l,isLinkList:r,inverted:_,expanded:d,spaceless:h,clickable:c,iconPosition:v,context:m,onSelectTab:p,hasSubLabelInGroup:u,dimInactiveElements:f})=>{var x;const w=g.block("tabs").element("nav").element("item");if(t.invisible)return;const y=!1!==t.bubble,j=void 0!==t.icon,O=j&&y&&"horizontal"!==v&&!o||n&&j&&y&&!b&&!o,k=o&&y||o&&n&&j&&y&&!b,L=!j&&y&&!o||y&&!n&&"horizontal"===v&&!o||y&&b&&!o,$=void 0===t.href||""===t.href,A=$?"button":"a",z=$?{type:"button",role:"tab","aria-controls":(null===(x=t.aria)||void 0===x?void 0:x.controls)||t.tabPanelID||void 0,"aria-expanded":t.active?"true":"false","aria-disabled":`${t.disabled}`,"aria-label":t.label}:{href:t.href,target:t.target};return r||(z.tabindex=t.active?"0":"-1"),e(A,Object.assign({id:`${a}-button-${B(t.value)}`,class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},w.class()),w.modifier("active").class(t.active)),w.modifier("disabled").class(t.disabled)),w.modifier("clickable").class(c)),w.modifier("accordion").class(o)),w.modifier("inverted").class(_)),w.modifier("expanded").class(d)),w.modifier("spaceless").class(h)),w.modifier("first").class(i)),w.modifier("last").class(s)),w.modifier("passed").class(t.passed)),w.modifier("vertical").class(b)),w.modifier(`context-${m}`).class(void 0!==m)),w.modifier(`icon-position-${v}`).class("horizontal"!==v)),w.modifier("display-svg").class(t.svg&&t.svg.length>0)),w.modifier("group-has-sub-label").class(u)),w.modifier("dim-inactive-elements").class(f)),{"bal-focusable":!t.disabled&&!t.invisible}),draggable:!1,"data-tabs":a,"data-label":t.label,"data-value":t.value,"data-index":t.index,"data-testid":"bal-tabs-item","aria-selected":$?t.active?"true":"false":void 0},z,{onClick:a=>p(a,t)}),t.icon||t.svg?e(I,{accordion:!1,item:t,isMobile:n,hasBubble:O,inverted:_}):"",e(S,{item:t,isMobile:n,isVertical:b,hasBubble:L,inverted:_,context:m}),o&&!t.href?e(I,{accordion:o,isAccordionOpen:l,item:t,isMobile:n,hasBubble:k,inverted:_}):"")},P=({items:t,tabsId:a,hasCarousel:i,isVertical:s,inNavbar:n,isMobile:b,isTouch:o,lineActive:l,isLinkList:r,border:_,accordion:d,isAccordionOpen:h,inverted:c,clickable:v,animated:m,spaceless:p,expanded:u,verticalColSize:f,iconPosition:x,context:w,onSelectTab:j,dimInactiveElements:O})=>{const k=g.block("tabs").element("nav"),L=t.filter((t=>!t.invisible)),$=n&&!o,A=t.some((t=>t.subLabel&&t.subLabel.length>0)),z=({item:t,index:i})=>e(D,{item:t,isLinkList:r,tabsId:a,isFirst:0===i,isLast:i===L.length-1,isMobile:b,isVertical:s,iconPosition:x,spaceless:p,inverted:c,accordion:d,isAccordionOpen:h,context:w,expanded:u,clickable:v&&!t.disabled,onSelectTab:j,hasSubLabelInGroup:A,dimInactiveElements:O});return e("div",{id:`${a}-nav`,class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},k.class()),k.modifier("full-height").class($)),k.modifier("border").class(_)),k.modifier("animated").class(m)),k.modifier("vertical").class(s)),k.modifier("expanded").class(u&&!s)),k.modifier(`vertical-col-${f}`).class(s))},i?e("bal-carousel",{id:`${a}-carousel`,class:Object.assign({},k.element("carousel").class()),htmlRole:"tablist",fullHeight:$,border:_,inverted:c,controls:"small","items-per-view":"auto",steps:3,onBalChange:y},L.map(((t,a)=>e("bal-carousel-item",{htmlRole:"",class:Object.assign(Object.assign({},k.element("carousel").element("item").class()),k.element("carousel").element("item").modifier("expanded").class(u))},e(z,{item:t,index:a})))),e("div",{id:`${a}-line`,class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},k.element("line").class()),k.element("line").modifier("active").class(l)),k.element("line").modifier("inverted").class(c)),k.element("line").modifier("animated").class(m)),k.element("line").modifier("vertical").class(s))})):L.map(((t,a)=>e(z,{item:t,index:a}))),i?"":e("div",{id:`${a}-border`,class:Object.assign(Object.assign(Object.assign({},k.element("border").class()),k.element("border").modifier("inverted").class(c)),k.element("border").modifier("vertical").class(s))}),i?"":e("div",{id:`${a}-line`,class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},k.element("line").class()),k.element("line").modifier("active").class(l)),k.element("line").modifier("inverted").class(c)),k.element("line").modifier("animated").class(m)),k.element("line").modifier("vertical").class(s))}))},V=class{constructor(e){t(this,e),this.balChange=a(this,"balChange",7),this.balWillAnimate=a(this,"balWillAnimate",7),this.balDidAnimate=a(this,"balDidAnimate",7),this.tabsId="bal-tabs-"+M++,this.mutationObserverActive=!0,this.getOptions=()=>this.options.length>0?[...this.options.map(w)]:Promise.all(this.items.map((t=>t.getOptions()))),this.updateStore=t=>{l(this.store,t)?!this.optionalTabSelection&&!this.accordion&&void 0===this.value&&this.store.length>0&&(this.value=this.store[0].value):this.store=t},this.setActiveItem=()=>{const t=this.store.filter((t=>t.active));t.length>0&&(this.value=t[0].value)},this.setActiveContent=()=>{0===this.options.length&&this.items.forEach((t=>t.setActive(this.isTabActive(t))))},this.getLineSize=(t,a)=>{if(t){if(this.isVertical())return t.clientHeight;{const e=t.clientWidth;return this.expanded?e:e-(a.left+a.right)}}return 0},this.getOffset=(t,a)=>{if(this.isVertical()){if(t.offsetTop)return t.offsetTop}else{if(t.offsetLeft)return this.expanded?t.offsetLeft:t.offsetLeft+a.left;const e=t.closest("bal-carousel-item");if(e)return this.expanded?e.offsetLeft:e.offsetLeft+a.left}return 0},this.animateLine=async()=>{this.shouldAnimate()&&(void 0!==this.currentRaf&&cancelAnimationFrame(this.currentRaf),r((async()=>{await _(this.el,!0),this.currentRaf=r((async()=>{const t=this.getTargetElement(this.value);if(!t)return;if("_blank"===t.getAttribute("target"))return;const a=O(t),e=this.getLineSize(t,a),i=this.getOffset(t,a),s=this.getLineElement();if(s){const t=this.isVertical();this.balWillAnimate.emit(this.value);const a=d(s,300);if(t)s.style.setProperty("transform",`translateY(${i}px)`),s.style.setProperty("min-height",`${e}px`),s.style.setProperty("height",`${e}px`),s.style.removeProperty("min-width"),s.style.removeProperty("width");else{s.style.setProperty("transform",`translateX(${i}px)`),s.style.setProperty("min-width",`${e}px`),s.style.setProperty("width",`${e}px`),s.style.removeProperty("min-height"),s.style.removeProperty("height");const t=this.getBorderElement(),n=this.getCarouselElement();t&&n&&t.style.setProperty("width",`${n.clientWidth}px`),await a,this.balDidAnimate.emit(this.value)}}}))})))},this.toggleAccordionState=(t=!1)=>{this.accordion&&(this.isAccordionOpen?this.collapseAccordion(t):this.expandAccordion(t))},this.expandAccordion=(t=!1)=>{this.isAccordionOpen=!0;const{contentEl:a,contentElWrapper:e}=this;t||void 0===a||void 0===e?this.accordionState=4:4!==this.accordionState&&(void 0!==this.currentRaf&&cancelAnimationFrame(this.currentRaf),this.shouldAnimate()?r((()=>{this.accordionState=8,this.currentRaf=r((async()=>{const t=e.offsetHeight,i=d(a,300);a.style.setProperty("max-height",`${t}px`),this.balWillAnimate.emit(this.value),await i,this.accordionState=4,a.style.removeProperty("max-height"),this.balDidAnimate.emit(this.value)}))})):(this.accordionState=4,this.balWillAnimate.emit(this.value),this.balDidAnimate.emit(this.value)))},this.collapseAccordion=(t=!1)=>{this.isAccordionOpen=!1;const{contentEl:a}=this;t||void 0===a?this.accordionState=1:1!==this.accordionState&&(void 0!==this.currentRaf&&cancelAnimationFrame(this.currentRaf),this.shouldAnimate()?this.currentRaf=r((async()=>{a.style.setProperty("max-height",`${a.offsetHeight}px`),r((async()=>{const t=d(a,300);this.accordionState=2,this.balWillAnimate.emit(this.value),await t,this.accordionState=1,a.style.removeProperty("max-height"),this.balDidAnimate.emit(this.value)}))})):(this.accordionState=1,this.balWillAnimate.emit(this.value),this.balDidAnimate.emit(this.value)))},this.shouldAnimate=()=>"undefined"!=typeof window&&this.animated,this.onOptionChange=h((()=>this.onOptionChangeInternal()),100),this.onOptionChangeInternal=async()=>{try{const t=await this.getOptions();this.updateStore(t),this.setActiveItem(),this.setActiveContent(),this.animateLine()}catch(t){console.warn("[WARN] - Could not read tab options")}},this.onSelectTab=async(t,a)=>{(a.prevent||a.disabled||!this.clickable)&&y(t),!a.disabled&&this.clickable&&(this.accordion&&(a.value===this.value?this.toggleAccordionState():this.expandAccordion()),a.navigate&&a.navigate.emit(t),a.value!==this.value&&(this.balChange.emit(a.value),await this.select(a),await this.focus(a)))},this.isAccordionOpen=!1,this.accordionState=1,this.isNavbarOpen=!1,this.inNavbar=!1,this.inNavbarLight=!1,this.isLargestContentfulPaintDone=!1,this.isMobile=L.isMobile,this.isTablet=L.isTablet,this.store=[],this.animated=!0,this.float="left",this.fullwidth=!1,this.accordion=!1,this.overflow=!0,this.options=[],this.context=void 0,this.iconPosition="horizontal",this.expanded=!1,this.spaceless=!1,this.clickable=!0,this.border=!1,this.inverted=!1,this.optionalTabSelection=!1,this.debounce=0,this.vertical=!1,this.verticalColSize="one-third",this.selectOnMobile=!1,this.value=void 0,this.dimInactiveElements=!1}createLogger(t){this.log=t}async optionChanged(){this.onOptionChange(),this.mutationObserverActive=void 0===this.options}debounceChanged(){this.balChange=c(this.balChange,this.debounce)}async valueChanged(t,a){t!==a&&this.onOptionChange()}connectedCallback(){if(this.inNavbar=v("bal-navbar",this.el),this.inNavbar){const t=this.el.closest("bal-navbar");t&&(this.inNavbarLight=t.light)}this.debounceChanged(),this.mutationObserverActive=void 0===this.options||this.options.length<1,this.accordion&&(v("bal-nav-menu-bar",this.el)?this.isAccordionOpen=!1:void 0!==this.value&&this.value.length>0?this.expandAccordion(!0):this.collapseAccordion(!0))}componentDidLoad(){this.onOptionChange(),m((()=>{this.isLargestContentfulPaintDone=!0}))}mutationListener(){this.onOptionChange()}breakpointListener(t){this.isMobile=t.mobile,this.isTablet=t.tablet,this.animateLine()}resizeListener(){this.animateLine()}listenToWillAnimate(t){p(t,this.el,(()=>this.animateLine()))}listenToDidAnimate(t){p(t,this.el,(()=>this.animateLine())),this.isUsedInNavbar(t)}listenToKeyDown(t){this.isTabList&&(!1!==this.vertical?"ArrowDown"===t.code?this.tabListSelectNext(t):"ArrowUp"===t.code&&this.tabListSelectPrevious(t):"ArrowRight"===t.code?this.tabListSelectNext(t):"ArrowLeft"===t.code&&this.tabListSelectPrevious(t))}isUsedInNavbar(t){const a=t.target.closest("bal-navbar"),e=t.target;a&&u(a,this.el)&&(this.isNavbarOpen=e)}async configChanged(t){this.animated=t.animated}async select(t){this.value=t.value}async getOptionByValue(t){return this.store.find((a=>a.value===t))}async renderLine(){this.animateLine()}async closeAccordion(){this.isAccordionOpen&&this.collapseAccordion()}get isTabList(){return 0===this.store.filter((t=>!!t.href)).length}get items(){return Array.from(this.el.querySelectorAll(`#${this.tabsId} > bal-tab-item`))}isTabActive(t){return t.value===this.value}isTabVisible(t){return!t.hidden}parseVertical(){return"true"===this.vertical||""===this.vertical||"false"!==this.vertical&&void 0!==this.vertical&&("mobile"===this.vertical?this.isMobile:"tablet"===this.vertical?this.isTablet||this.isMobile:this.vertical)}isVertical(){return this.parseVertical()||(this.isMobile||this.isTablet)&&this.inNavbar}getTargetElement(t){return Array.from(this.el.querySelectorAll(`[data-tabs="${this.tabsId}"]`)).filter((a=>a.getAttribute("data-value")==t))[0]}getLineElement(){return this.el.querySelector(`#${this.tabsId}-line`)}getBorderElement(){return this.el.querySelector(`#${this.tabsId}-border`)}getCarouselElement(){return this.el.querySelector(`#${this.tabsId}-carousel`)}findNextTab(t=!1){const a=this.store.findIndex((t=>this.isTabActive(t)));let e=this.store.map(((t,a)=>({index:a,visible:!t.hidden&&!t.disabled})));t&&(e=e.reverse());const i=e.filter((t=>t.visible)).map((t=>t.index)),s=t?(t,e)=>t<a||e>=t?t:e:(t,e)=>t>a||e<=t?t:e,n=i.reduce(((t,a)=>s(t,a)),a);return this.store[n]}findPreviousTab(){return this.findNextTab(!0)}tabListSelectNext(t){const a=this.findNextTab();a&&this.onSelectTab(t,a)}tabListSelectPrevious(t){const a=this.findPreviousTab();a&&this.onSelectTab(t,a)}async focus(t){if(await f(),null!==this.el.querySelector("button.bal-focused")){const a=this.el.querySelector(`#${this.tabsId}-button-${B(t.value)}`);a&&a.focus({preventScroll:!0})}}render(){const t=g.block("tabs"),a=this.isMobile,s=a||this.isTablet,n=this.inNavbar&&!s&&!this.inNavbarLight||!this.inNavbar&&this.inverted,b=this.isVertical(),o=this.isLargestContentfulPaintDone&&!b&&this.overflow&&!this.expanded,l=this.isLargestContentfulPaintDone&&a&&this.selectOnMobile,r=this.store.map((t=>Object.assign(Object.assign({},t),{active:t.value===this.value}))),_=4===this.accordionState||8===this.accordionState?"content expanded":"content",d=void 0!==this.value&&!!this.store.find((t=>t.value===this.value)),h=!this.isTabList;return e(i,{key:"dfe8fd6f11b4d884bf8e7605653b637526412382",class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t.class()),t.modifier("navbar").class(this.inNavbar)),t.modifier("vertical").class(b)),t.modifier("fullwidth").class(this.expanded||this.fullwidth)),t.modifier("accordion").class(this.accordion)),t.modifier("animated").class(this.animated)),t.modifier("expanding").class(8===this.accordionState)),t.modifier("expanded").class(4===this.accordionState)),t.modifier("collapsing").class(2===this.accordionState)),t.modifier("collapsed").class(1===this.accordionState)),"data-value":this.store.filter((t=>this.isTabActive(t))).map((t=>t.value)).join(","),"data-label":this.store.filter((t=>this.isTabActive(t))).map((t=>t.label)).join(",")},l?e(F,{value:this.value,items:r,onSelectTab:this.onSelectTab}):e(P,{items:r,isLinkList:h,tabsId:this.tabsId,clickable:this.clickable,accordion:this.accordion,isAccordionOpen:this.isAccordionOpen,lineActive:d,inverted:n,animated:this.animated,context:this.context,border:this.border,spaceless:this.spaceless,expanded:this.expanded,isMobile:a,isTouch:s,isVertical:b,inNavbar:this.inNavbar,hasCarousel:o,iconPosition:this.iconPosition,verticalColSize:this.verticalColSize,onSelectTab:this.onSelectTab,dimInactiveElements:this.dimInactiveElements}),e("div",{key:"0aac73b494d835402ac6654a6a281593917c355a",part:_,ref:t=>this.contentEl=t,class:Object.assign({},t.element("tabs").element("content").class())},e("div",{key:"77c68b5ce4d763f99bacff6e8395f9cd4c03e430",id:this.tabsId,class:Object.assign({},t.element("tabs").element("content").element("wrapper").class()),ref:t=>this.contentElWrapper=t},e("slot",{key:"822c8efa61f9e44fc42e6f8ba31b5286967d7181"}))))}get el(){return s(this)}static get watchers(){return{options:["optionChanged"],debounce:["debounceChanged"],value:["valueChanged"]}}};b([x("bal-tabs"),o("design:type",Function),o("design:paramtypes",[Function]),o("design:returntype",void 0)],V.prototype,"createLogger",null),b([$({tags:["bal-tabs","bal-tab-item"]}),o("design:type",Function),o("design:paramtypes",[]),o("design:returntype",void 0)],V.prototype,"mutationListener",null),b([A(),o("design:type",Function),o("design:paramtypes",[Object]),o("design:returntype",void 0)],V.prototype,"breakpointListener",null),b([z(),o("design:type",Function),o("design:paramtypes",[]),o("design:returntype",void 0)],V.prototype,"resizeListener",null),b([k("balWillAnimate",{target:"window"}),o("design:type",Function),o("design:paramtypes",[UIEvent]),o("design:returntype",void 0)],V.prototype,"listenToWillAnimate",null),b([k("balDidAnimate",{target:"window"}),o("design:type",Function),o("design:paramtypes",[UIEvent]),o("design:returntype",void 0)],V.prototype,"listenToDidAnimate",null),b([k("keydown"),o("design:type",Function),o("design:paramtypes",[KeyboardEvent]),o("design:returntype",void 0)],V.prototype,"listenToKeyDown",null),b([T(),o("design:type",Function),o("design:paramtypes",[Object]),o("design:returntype",Promise)],V.prototype,"configChanged",null);let M=0;V.style="@media (hover: hover)and (pointer: fine){.bal-tabs__nav__item.bal-focused{-webkit-box-shadow:var(--bal-focus-shadow-inset) !important;box-shadow:var(--bal-focus-shadow-inset) !important}}@media (hover: hover)and (pointer: fine){.bal-tabs__nav__item.bal-focused.bal-tabs__nav__item--inverted{-webkit-box-shadow:var(--bal-focus-shadow-inverted-inset) !important;box-shadow:var(--bal-focus-shadow-inverted-inset) !important}}@media (hover: hover)and (pointer: fine){.bal-tabs__nav__item.bal-focused{-webkit-box-shadow:var(--bal-focus-shadow-inset) !important;box-shadow:var(--bal-focus-shadow-inset) !important}}@media (hover: hover)and (pointer: fine){.bal-tabs__nav__item.bal-focused.bal-tabs__nav__item--inverted{-webkit-box-shadow:var(--bal-focus-shadow-inverted-inset) !important;box-shadow:var(--bal-focus-shadow-inverted-inset) !important}}.bal-tabs__nav{display:block;position:relative;-webkit-overflow-scrolling:touch;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}@media screen and (min-width: 769px),print{.bal-tabs__nav--vertical-col-one-quarter{-ms-flex:none;flex:none;width:25%}.bal-tabs__nav--vertical-col-one-third{-ms-flex:none;flex:none;width:33.3333%}.bal-tabs__nav--vertical-col-half{-ms-flex:none;flex:none;width:33.3333%}.bal-tabs__nav--vertical-col-two-thirds{-ms-flex:none;flex:none;width:66.6666%}.bal-tabs__nav--vertical-col-three-quarters{-ms-flex:none;flex:none;width:75%}.bal-tabs__nav--vertical-col-full{-ms-flex:none;flex:none;width:100%}}.bal-tabs__nav--vertical{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}.bal-tabs__nav--full-height{height:100%}.bal-tabs__nav--expanded{display:-ms-flexbox;display:flex}.bal-tabs__nav__carousel__item--expanded{-ms-flex:1;flex:1;width:5rem;min-width:5rem}.bal-tabs__nav__border{position:absolute;background:var(--bal-tabs-tab-nav-border-background);border-radius:var(--bal-tabs-tab-nav-border-radius);height:var(--bal-border-width-normal);left:1px;right:1px;bottom:0}.bal-tabs__nav__border--vertical{width:var(--bal-border-width-normal);height:100%;top:0;right:auto}.bal-tabs__nav__border--inverted{background:var(--bal-tabs-tab-nav-border-background-inverted)}.bal-tabs__nav__line{position:absolute;background:var(--bal-tabs-tab-nav-line-background);border-radius:var(--bal-tabs-tab-nav-line-radius);left:1px;z-index:1}.bal-tabs__nav__line:not(.bal-tabs__nav__line--vertical){bottom:0;min-width:5rem}.bal-tabs__nav__line--vertical{top:0;min-height:2.5rem}.bal-tabs__nav__line:not(.bal-tabs__nav__line--vertical).bal-tabs__nav__line--active{height:var(--bal-border-width-normal)}.bal-tabs__nav__line--vertical.bal-tabs__nav__line--active{width:var(--bal-border-width-normal)}.bal-tabs__nav__line--animated{will-change:min-width,width,min-height,height,transform;-webkit-transition:all var(--bal-animation-transition-duration) var(--bal-animation-transition-easing);transition:all var(--bal-animation-transition-duration) var(--bal-animation-transition-easing)}.bal-tabs__nav__line--inverted{background:var(--bal-tabs-tab-nav-line-background-inverted)}@media (hover: hover)and (pointer: fine){.bal-tabs__nav__item.bal-focused{-webkit-box-shadow:var(--bal-focus-shadow-inset) !important;box-shadow:var(--bal-focus-shadow-inset) !important}}@media (hover: hover)and (pointer: fine){.bal-tabs__nav__item.bal-focused.bal-tabs__nav__item--inverted{-webkit-box-shadow:var(--bal-focus-shadow-inverted-inset) !important;box-shadow:var(--bal-focus-shadow-inverted-inset) !important}}.bal-tabs__nav__item{display:-ms-flexbox;display:flex;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column;-ms-flex-preferred-size:1rem;flex-basis:1rem;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;text-decoration:none;cursor:default;gap:.5rem;padding:.25rem .75rem;border-radius:var(--bal-tabs-tab-button-radius);min-width:3rem;min-height:3rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none;background-color:rgba(0,0,0,0);border:unset}@media screen and (min-width: 769px),print{.bal-tabs__nav__item{-ms-flex-direction:row;flex-direction:row;min-height:3.5rem}}@media screen and (max-width: 768px){.bal-tabs__nav__item--group-has-sub-label{height:5rem}}.bal-tabs__nav__item--dim-inactive-elements:not(.bal-tabs__nav__item--active){opacity:.6}.bal-tabs__nav__item--display-svg{-ms-flex-direction:row;flex-direction:row}@media screen and (max-width: 768px){.bal-tabs__nav__item--display-svg:not(.bal-tabs__nav__item--display-svg.bal-tabs__nav__item--active){-ms-flex:0 0 auto;flex:0 0 auto;min-width:3rem;width:6rem;padding:.25rem}}.bal-tabs__nav__item--accordion{-ms-flex-direction:row;flex-direction:row}.bal-tabs__nav__item--hidden{display:none !important;visibility:hidden !important}.bal-tabs__nav__item--expanded{-ms-flex:1;flex:1;width:5rem;min-width:5rem}.bal-tabs__nav__item--icon-position-vertical{-ms-flex-direction:column;flex-direction:column}.bal-tabs__nav__item--clickable{cursor:pointer;pointer-events:all}@media (hover: hover)and (pointer: fine){.bal-tabs__nav__item:not(.bal-tabs__nav__item--disabled):hover .bal-tabs__nav__item__label{color:var(--bal-tabs-tab-button-label-text-color-hover)}.bal-tabs__nav__item__icon:not(.bal-tabs__nav__item:not(.bal-tabs__nav__item--disabled):hover-display-svg) svg,.bal-tabs__nav__item__icon:not(.bal-tabs__nav__item:not(.bal-tabs__nav__item--disabled):hover-display-svg) g,.bal-tabs__nav__item__icon:not(.bal-tabs__nav__item:not(.bal-tabs__nav__item--disabled):hover-display-svg) path,.bal-tabs__nav__item__icon:not(.bal-tabs__nav__item:not(.bal-tabs__nav__item--disabled):hover-display-svg) circle{fill:var(--bal-tabs-tab-button-icon-text-color-hover)}}.bal-tabs__nav__item:not(.bal-tabs__nav__item--disabled):active .bal-tabs__nav__item__label{color:var(--bal-tabs-tab-button-label-text-color-active)}.bal-tabs__nav__item__icon:not(.bal-tabs__nav__item:not(.bal-tabs__nav__item--disabled):active-display-svg) svg,.bal-tabs__nav__item__icon:not(.bal-tabs__nav__item:not(.bal-tabs__nav__item--disabled):active-display-svg) g,.bal-tabs__nav__item__icon:not(.bal-tabs__nav__item:not(.bal-tabs__nav__item--disabled):active-display-svg) path,.bal-tabs__nav__item__icon:not(.bal-tabs__nav__item:not(.bal-tabs__nav__item--disabled):active-display-svg) circle{fill:var(--bal-tabs-tab-button-icon-text-color-active)}@media (hover: hover)and (pointer: fine){.bal-tabs__nav__item:not(.bal-tabs__nav__item--disabled).bal-tabs__nav__item--inverted:hover .bal-tabs__nav__item__label{color:var(--bal-tabs-tab-button-label-text-color-inverted-hover)}.bal-tabs__nav__item__icon:not(.bal-tabs__nav__item:not(.bal-tabs__nav__item--disabled).bal-tabs__nav__item--inverted:hover-display-svg) svg,.bal-tabs__nav__item__icon:not(.bal-tabs__nav__item:not(.bal-tabs__nav__item--disabled).bal-tabs__nav__item--inverted:hover-display-svg) g,.bal-tabs__nav__item__icon:not(.bal-tabs__nav__item:not(.bal-tabs__nav__item--disabled).bal-tabs__nav__item--inverted:hover-display-svg) path,.bal-tabs__nav__item__icon:not(.bal-tabs__nav__item:not(.bal-tabs__nav__item--disabled).bal-tabs__nav__item--inverted:hover-display-svg) circle{fill:var(--bal-tabs-tab-button-icon-text-color-inverted-hover)}}.bal-tabs__nav__item:not(.bal-tabs__nav__item--disabled).bal-tabs__nav__item--inverted:active .bal-tabs__nav__item__label{color:var(--bal-tabs-tab-button-label-text-color-inverted-active)}.bal-tabs__nav__item__icon:not(.bal-tabs__nav__item:not(.bal-tabs__nav__item--disabled).bal-tabs__nav__item--inverted:active-display-svg) svg,.bal-tabs__nav__item__icon:not(.bal-tabs__nav__item:not(.bal-tabs__nav__item--disabled).bal-tabs__nav__item--inverted:active-display-svg) g,.bal-tabs__nav__item__icon:not(.bal-tabs__nav__item:not(.bal-tabs__nav__item--disabled).bal-tabs__nav__item--inverted:active-display-svg) path,.bal-tabs__nav__item__icon:not(.bal-tabs__nav__item:not(.bal-tabs__nav__item--disabled).bal-tabs__nav__item--inverted:active-display-svg) circle{fill:var(--bal-tabs-tab-button-icon-text-color-inverted-active)}.bal-tabs__nav__item--vertical{-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start;min-height:2.5rem;padding:.5rem 1rem}.bal-tabs__nav__item--spaceless.bal-tabs__nav__item--first{padding-left:0}.bal-tabs__nav__item--spaceless.bal-tabs__nav__item--last{padding-right:0}.bal-tabs__nav__item--context-meta{min-height:3rem;height:3rem}.bal-tabs__nav__item--context-navigation{min-height:3rem;height:3rem}@media screen and (min-width: 1024px){.bal-tabs__nav__item--context-navigation{min-height:4rem;height:4rem}}@media screen and (min-width: 1280px){.bal-tabs__nav__item--context-navigation{min-height:4rem;height:4rem}}@media screen and (min-width: 1440px){.bal-tabs__nav__item--context-navigation{min-height:5rem;height:5rem}}@media (hover: hover)and (pointer: fine){.bal-tabs__nav__item.bal-focused{-webkit-box-shadow:var(--bal-focus-shadow-inset) !important;box-shadow:var(--bal-focus-shadow-inset) !important}}@media (hover: hover)and (pointer: fine){.bal-tabs__nav__item.bal-focused.bal-tabs__nav__item--inverted{-webkit-box-shadow:var(--bal-focus-shadow-inverted-inset) !important;box-shadow:var(--bal-focus-shadow-inverted-inset) !important}}.bal-tabs__nav__item__icon{position:relative}.bal-tabs__nav__item__icon__bubble{position:absolute;right:-0.75rem;top:-0.25rem}@media screen and (min-width: 769px),print{.bal-tabs__nav__item__icon__bubble{right:-0.625rem;top:-0.25rem}}@media (hover: hover)and (pointer: fine){.bal-tabs__nav__item.bal-focused{-webkit-box-shadow:var(--bal-focus-shadow-inset) !important;box-shadow:var(--bal-focus-shadow-inset) !important}}@media (hover: hover)and (pointer: fine){.bal-tabs__nav__item.bal-focused.bal-tabs__nav__item--inverted{-webkit-box-shadow:var(--bal-focus-shadow-inverted-inset) !important;box-shadow:var(--bal-focus-shadow-inverted-inset) !important}}.bal-tabs__nav__item__label{display:block;position:relative;font-family:var(--bal-font-family-title);font-weight:var(--bal-font-weight-bold);font-size:var(--bal-text-size-normal);line-height:var(--bal-body-line-height);text-align:center;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:var(--bal-tabs-tab-label-text-color)}.bal-tabs__nav__item__label--with-svg{text-align:left;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}@media screen and (max-width: 768px){.bal-tabs__nav__item__label--with-svg:not(.bal-tabs__nav__item__label--active){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;white-space:nowrap;border:0}}.bal-tabs__nav__item__label--disabled{color:var(--bal-tabs-tab-label-text-color-disabled)}.bal-tabs__nav__item__label--inverted{font-family:var(--bal-font-family-text);color:var(--bal-tabs-tab-label-text-color-inverted)}.bal-tabs__nav__item__label--inverted.bal-tabs__nav__item__label--disabled{color:var(--bal-tabs-tab-label-text-color-inverted-disabled)}.bal-tabs__nav__item__label--inverted{font-weight:var(--bal-font-weight-regular);letter-spacing:.1085px}.bal-tabs__nav__item__label--inverted.bal-tabs__nav__item__label--active{font-weight:var(--bal-font-weight-bold);letter-spacing:0}.bal-tabs__nav__item__label__bubble{position:absolute;right:-0.5rem;top:-0.5rem}.bal-tabs__nav__item__label--vertical{text-align:left;width:auto;white-space:normal}.bal-tabs__nav__item__label--context-meta{font-size:var(--bal-text-size-small)}@media (hover: hover)and (pointer: fine){.bal-tabs__nav__item.bal-focused{-webkit-box-shadow:var(--bal-focus-shadow-inset) !important;box-shadow:var(--bal-focus-shadow-inset) !important}}@media (hover: hover)and (pointer: fine){.bal-tabs__nav__item.bal-focused.bal-tabs__nav__item--inverted{-webkit-box-shadow:var(--bal-focus-shadow-inverted-inset) !important;box-shadow:var(--bal-focus-shadow-inverted-inset) !important}}:root{--bal-tabs-tab-nav-border-background:var(--bal-color-border);--bal-tabs-tab-nav-border-background-inverted:var(--bal-color-border-inverted);--bal-tabs-tab-nav-line-background:var(--bal-color-border-primary);--bal-tabs-tab-nav-line-background-inverted:var(--bal-color-border-inverted);--bal-tabs-tab-button-radius:var(--bal-radius-normal);--bal-tabs-tab-nav-border-radius:var(--bal-radius-rounded);--bal-tabs-tab-nav-line-radius:var(--bal-radius-rounded);--bal-tabs-tab-button-label-text-color-hover:var(--bal-color-light-blue-5);--bal-tabs-tab-button-icon-text-color-hover:var(--bal-color-light-blue-5);--bal-tabs-tab-button-label-text-color-active:var(--bal-color-primary-6);--bal-tabs-tab-button-icon-text-color-active:var(--bal-color-primary-6);--bal-tabs-tab-button-label-text-color-inverted-hover:var(--bal-color-light-blue-2);--bal-tabs-tab-button-icon-text-color-inverted-hover:var(--bal-color-light-blue-2);--bal-tabs-tab-button-label-text-color-inverted-active:var(--bal-color-text-info);--bal-tabs-tab-button-icon-text-color-inverted-active:var(--bal-color-text-info);--bal-tabs-tab-label-text-color:var(--bal-color-text-primary);--bal-tabs-tab-label-text-color-disabled:var(--bal-color-text-grey);--bal-tabs-tab-label-text-color-inverted:var(--bal-color-text-white);--bal-tabs-tab-label-text-color-inverted-disabled:var(--bal-color-text-primary-light)}.bal-tabs{display:block;min-width:0}.bal-tabs--fullwidth{width:100%}.bal-tabs--vertical{display:block}@media screen and (min-width: 769px),print{.bal-tabs--vertical{display:-ms-flexbox;display:flex}}@media screen and (min-width: 769px),print{.bal-tabs--navbar{height:100%}}.bal-tab-item{width:100%;display:none}.bal-tab-item--active{display:block}.bal-tabs__tabs__content{width:100%}.bal-tabs--animated{-webkit-transition:all var(--bal-animation-transition-duration) var(--bal-animation-transition-easing);transition:all var(--bal-animation-transition-duration) var(--bal-animation-transition-easing)}.bal-tabs--animated .bal-tabs__tabs__content{-webkit-transition:max-height var(--bal-animation-transition-duration) var(--bal-animation-transition-easing);transition:max-height var(--bal-animation-transition-duration) var(--bal-animation-transition-easing)}.bal-tabs--accordion .bal-tabs__tabs__content{overflow:hidden;will-change:max-height}.bal-tabs--accordion.bal-tabs--collapsing .bal-tabs__tabs__content{max-height:0 !important}.bal-tabs--accordion.bal-tabs--collapsed .bal-tabs__tabs__content{display:none}.bal-tabs--accordion.bal-tabs--expanding .bal-tabs__tabs__content{max-height:0}@media (prefers-reduced-motion: reduce){.bal-tabs--accordion .bal-tabs,.bal-tabs--accordion .bal-tabs__tabs__content{-webkit-transition:none !important;transition:none !important}}";export{C as bal_tab_item,V as bal_tabs}
|