@baloise/ds-core 19.9.3 → 19.9.4-nightly.20260428

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (211) hide show
  1. package/components/all.d.ts +2 -0
  2. package/components/all.js +3 -0
  3. package/components/animation.decorator.js +1 -1
  4. package/components/bal-accordion.js +1 -2
  5. package/components/bal-app.js +1 -102
  6. package/components/bal-app2.js +104 -0
  7. package/components/bal-button2.js +1 -1
  8. package/components/bal-carousel-item.js +1 -1
  9. package/components/bal-checkbox-group.js +1 -1
  10. package/components/bal-date-calendar2.js +1 -1
  11. package/components/bal-date.js +1 -1
  12. package/components/bal-doc-app.d.ts +11 -0
  13. package/components/bal-doc-app.js +264 -0
  14. package/components/bal-dropdown.js +1 -1
  15. package/components/bal-field.js +1 -1
  16. package/components/bal-file-upload.js +5 -5
  17. package/components/bal-footer.js +1 -1
  18. package/components/bal-form.js +1 -1
  19. package/components/bal-input-stepper.js +1 -1
  20. package/components/bal-list-item-accordion-body2.js +1 -1
  21. package/components/bal-list-item2.js +1 -1
  22. package/components/bal-logo2.js +1 -1
  23. package/components/bal-modal.js +1 -1
  24. package/components/bal-nav.js +1 -1
  25. package/components/bal-navbar-brand.js +1 -1
  26. package/components/bal-option-list2.js +1 -1
  27. package/components/bal-popup2.js +1 -1
  28. package/components/bal-radio-group.js +1 -1
  29. package/components/bal-segment-item.js +1 -1
  30. package/components/bal-select2.js +1 -1
  31. package/components/bal-spinner2.js +1 -1
  32. package/components/bal-stage-image.js +1 -1
  33. package/components/bal-tabs2.js +1 -1
  34. package/components/breakpoints.subject.js +1 -1
  35. package/components/element-states.decorator.js +1 -1
  36. package/components/floating-ui.js +1 -1
  37. package/components/focus.decorator.js +1 -1
  38. package/components/form-input.js +1 -1
  39. package/components/helpers.js +1 -1
  40. package/components/index.js +5 -449
  41. package/components/initialize.js +450 -0
  42. package/components/mutation.decorator.js +1 -1
  43. package/components/overlays.js +1 -1
  44. package/components/resize.decorator.js +1 -1
  45. package/components/swipe.subject.js +19 -1
  46. package/components/swiper.util.js +1 -1
  47. package/components/tokens.esm.js +1 -1
  48. package/components/visibility.decorator.js +1 -1
  49. package/dist/baloise-design-system/baloise-design-system.esm.js +1 -1
  50. package/dist/baloise-design-system/baloise-design-system.js +1 -1
  51. package/dist/baloise-design-system/index.esm.js +1 -1
  52. package/dist/baloise-design-system/{p-05221bf226.system.entry.js → p-02c59dc2d9.system.entry.js} +1 -1
  53. package/dist/baloise-design-system/{p-ea9aa92049.entry.js → p-041bf35913.entry.js} +1 -1
  54. package/dist/baloise-design-system/{p-818b880ec5.entry.js → p-181a2e34ab.entry.js} +1 -1
  55. package/dist/baloise-design-system/p-21ea7b32f1.system.entry.js +1 -0
  56. package/dist/baloise-design-system/{p-14475f12e8.entry.js → p-26c68ea1c0.entry.js} +1 -1
  57. package/dist/baloise-design-system/{p-1e26da72e8.entry.js → p-2fdfa1a7c1.entry.js} +1 -1
  58. package/dist/baloise-design-system/{p-f647a73892.system.entry.js → p-36934c6f59.system.entry.js} +1 -1
  59. package/dist/baloise-design-system/{p-CsPrCX4f.system.js → p-3VlTyI5Z.system.js} +1 -1
  60. package/dist/baloise-design-system/{p-a5f3b37e21.system.entry.js → p-3ceaab4151.system.entry.js} +1 -1
  61. package/dist/baloise-design-system/{p-dd5caee1bb.system.entry.js → p-4299a0583b.system.entry.js} +1 -1
  62. package/dist/baloise-design-system/{p-ea38ac08ce.system.entry.js → p-4903ce4c21.system.entry.js} +1 -1
  63. package/dist/baloise-design-system/{p-BCtb7Ny9.system.js → p-4RgSLeC0.system.js} +1 -1
  64. package/dist/baloise-design-system/{p-370f98a376.entry.js → p-539758ad59.entry.js} +1 -1
  65. package/dist/baloise-design-system/{p-41a0556d46.entry.js → p-571ede77b5.entry.js} +1 -1
  66. package/dist/baloise-design-system/{p-c47294e251.system.entry.js → p-79470cd0fa.system.entry.js} +1 -1
  67. package/dist/baloise-design-system/{p-b585853436.system.entry.js → p-7bd155ebe9.system.entry.js} +1 -1
  68. package/dist/baloise-design-system/p-8346d5f6ae.entry.js +1 -0
  69. package/dist/baloise-design-system/{p-3bc249e38e.entry.js → p-87af9652ac.entry.js} +1 -1
  70. package/dist/baloise-design-system/{p-01fdb2af3e.entry.js → p-8b4a7c687b.entry.js} +1 -1
  71. package/dist/baloise-design-system/{p-03852c362f.entry.js → p-97fe041040.entry.js} +1 -1
  72. package/dist/baloise-design-system/{p-890c3ea355.system.entry.js → p-983bc6f141.system.entry.js} +1 -1
  73. package/dist/baloise-design-system/p-9ca0a9bf5c.entry.js +1 -0
  74. package/dist/baloise-design-system/{p-3d9555be79.system.entry.js → p-9e456616bb.system.entry.js} +1 -1
  75. package/dist/baloise-design-system/{p-CFZjZt-s.js → p-B1dBHBym.js} +1 -1
  76. package/dist/baloise-design-system/p-BFRjY4w3.js +1 -1
  77. package/dist/baloise-design-system/p-BRAmUyPx.system.js +1 -1
  78. package/dist/baloise-design-system/p-BvSkuJ_n.js +1 -0
  79. package/dist/baloise-design-system/p-BzIZLOtt.system.js +1 -0
  80. package/dist/baloise-design-system/{p-0g14KuPx.system.js → p-CCSGwQSe.system.js} +1 -1
  81. package/dist/baloise-design-system/{p-CHTPLy3W.system.js → p-CW7ESVrE.system.js} +1 -1
  82. package/dist/baloise-design-system/p-C_FHgwWW.js +1 -0
  83. package/dist/baloise-design-system/p-C_qvcMEM.system.js +1 -0
  84. package/dist/baloise-design-system/{p-xlS5vO33.system.js → p-D5aEF_JU.system.js} +1 -1
  85. package/dist/baloise-design-system/{p-ZalPEZLa.js → p-DRqAN-8G.js} +1 -1
  86. package/dist/baloise-design-system/{p-DUpGQx_U.system.js → p-DXgjqG3B.system.js} +1 -1
  87. package/dist/baloise-design-system/{p-TGlXe_VY.js → p-Dk_Xk-cK.js} +1 -1
  88. package/dist/baloise-design-system/p-Ectc3YAG.js +1 -0
  89. package/dist/baloise-design-system/{p-ee61799a11.system.entry.js → p-a83ab6a6be.system.entry.js} +1 -1
  90. package/dist/baloise-design-system/{p-8ea84ad7c7.entry.js → p-aa6add79d8.entry.js} +1 -1
  91. package/dist/baloise-design-system/{p-7eec8c7a78.system.entry.js → p-b15364d979.system.entry.js} +1 -1
  92. package/dist/baloise-design-system/{p-ed56778833.system.entry.js → p-b6e463830c.system.entry.js} +1 -1
  93. package/dist/baloise-design-system/{p-83c6c17ed8.system.entry.js → p-c0edc44cfb.system.entry.js} +1 -1
  94. package/dist/baloise-design-system/{p-cef33e1117.entry.js → p-e81beb411d.entry.js} +1 -1
  95. package/dist/baloise-design-system/{p-239938cbc2.entry.js → p-e9f45d5fe9.entry.js} +1 -1
  96. package/dist/baloise-design-system/{p-14219e3845.entry.js → p-f29efb5685.entry.js} +1 -1
  97. package/dist/baloise-design-system/{p-9191e04f14.system.entry.js → p-f393662ba3.system.entry.js} +1 -1
  98. package/dist/baloise-design-system/{p-8bdcf69b1f.system.entry.js → p-f52b561731.system.entry.js} +1 -1
  99. package/dist/baloise-design-system/{p-dd48a60d74.entry.js → p-ff7d836983.entry.js} +1 -1
  100. package/dist/baloise-design-system/{p-DlPc3plk.js → p-joF8ji8m.js} +1 -1
  101. package/dist/baloise-design-system/{p-COFcDrAS.system.js → p-qajG7p9r.system.js} +1 -1
  102. package/dist/cjs/app-globals-DcKvQZAC.js +7 -0
  103. package/dist/cjs/bal-accordion_4.cjs.entry.js +0 -1
  104. package/dist/cjs/bal-carousel_2.cjs.entry.js +5 -5
  105. package/dist/cjs/bal-date-calendar_2.cjs.entry.js +2 -2
  106. package/dist/cjs/bal-doc-app.cjs.entry.js +231 -0
  107. package/dist/cjs/bal-field_5.cjs.entry.js +3 -3
  108. package/dist/cjs/bal-file-upload.cjs.entry.js +5 -5
  109. package/dist/cjs/bal-hint_5.cjs.entry.js +3 -3
  110. package/dist/cjs/bal-list_8.cjs.entry.js +3 -3
  111. package/dist/cjs/bal-logo.cjs.entry.js +3 -3
  112. package/dist/cjs/bal-nav_8.cjs.entry.js +3 -3
  113. package/dist/cjs/bal-navbar_5.cjs.entry.js +3 -3
  114. package/dist/cjs/bal-pagination.cjs.entry.js +3 -3
  115. package/dist/cjs/bal-progress-bar.cjs.entry.js +4 -4
  116. package/dist/cjs/bal-segment_2.cjs.entry.js +4 -4
  117. package/dist/cjs/bal-shape.cjs.entry.js +1 -1
  118. package/dist/cjs/bal-steps.cjs.entry.js +3 -3
  119. package/dist/cjs/bal-tab-item_2.cjs.entry.js +5 -5
  120. package/dist/cjs/baloise-design-system.cjs.js +3 -2
  121. package/dist/cjs/{breakpoints.decorator-DVSgAJPa.js → breakpoints.decorator-Cugb3ou_.js} +1 -1
  122. package/dist/cjs/{breakpoints.subject-PPg53GM5.js → breakpoints.subject-B0NyYJib.js} +1 -1
  123. package/dist/cjs/{app-globals-D4xKyILL.js → global-BOGOCc0T.js} +2 -4
  124. package/dist/cjs/index.cjs.js +3 -3
  125. package/dist/cjs/initialize-BzrcZo6Y.js +1 -1
  126. package/dist/cjs/loader.cjs.js +3 -2
  127. package/dist/cjs/{swipe.decorator-BZYUlkYt.js → swipe.decorator-C_jX7Il5.js} +1 -1
  128. package/dist/cjs/{swipe.subject-BaKNugDQ.js → swipe.subject-iyL-XVHG.js} +18 -0
  129. package/dist/cjs/{tokens.esm-B1kdQjzR.js → tokens.esm-B1UoVxjb.js} +1 -1
  130. package/dist/cjs/{window-resize.decorator-DHvgxiqB.js → window-resize.decorator-DY11q_pZ.js} +1 -1
  131. package/dist/collection/collection-manifest.json +2 -1
  132. package/dist/collection/components/bal-accordion/bal-accordion.js +2 -6
  133. package/dist/collection/components/bal-file-upload/bal-file-upload.js +5 -5
  134. package/dist/collection/components/docs/bal-doc-app/bal-doc-app.css +1 -0
  135. package/dist/collection/components/docs/bal-doc-app/bal-doc-app.js +248 -0
  136. package/dist/collection/utils/constants/version.constant.js +1 -1
  137. package/dist/collection/utils/swipe/swipe.listener.js +19 -0
  138. package/dist/esm/app-globals-CIj5uAPM.js +5 -0
  139. package/dist/esm/bal-accordion_4.entry.js +0 -1
  140. package/dist/esm/bal-carousel_2.entry.js +5 -5
  141. package/dist/esm/bal-date-calendar_2.entry.js +2 -2
  142. package/dist/esm/bal-doc-app.entry.js +229 -0
  143. package/dist/esm/bal-field_5.entry.js +3 -3
  144. package/dist/esm/bal-file-upload.entry.js +5 -5
  145. package/dist/esm/bal-hint_5.entry.js +3 -3
  146. package/dist/esm/bal-list_8.entry.js +3 -3
  147. package/dist/esm/bal-logo.entry.js +3 -3
  148. package/dist/esm/bal-nav_8.entry.js +3 -3
  149. package/dist/esm/bal-navbar_5.entry.js +3 -3
  150. package/dist/esm/bal-pagination.entry.js +3 -3
  151. package/dist/esm/bal-progress-bar.entry.js +4 -4
  152. package/dist/esm/bal-segment_2.entry.js +4 -4
  153. package/dist/esm/bal-shape.entry.js +1 -1
  154. package/dist/esm/bal-steps.entry.js +3 -3
  155. package/dist/esm/bal-tab-item_2.entry.js +5 -5
  156. package/dist/esm/baloise-design-system.js +3 -2
  157. package/dist/esm/{breakpoints.decorator-CJwbnRPE.js → breakpoints.decorator-Bzd5Zg0a.js} +1 -1
  158. package/dist/esm/{breakpoints.subject-CKmK7JA0.js → breakpoints.subject-CAsMPZu6.js} +1 -1
  159. package/dist/esm/{app-globals-Blx--ecs.js → global-Llrc69_N.js} +2 -4
  160. package/dist/esm/index.js +4 -4
  161. package/dist/esm/initialize-W3od-FM9.js +1 -1
  162. package/dist/esm/loader.js +3 -2
  163. package/dist/esm/{swipe.decorator-B_Ghrp1o.js → swipe.decorator-B-pmjyNr.js} +1 -1
  164. package/dist/esm/{swipe.subject-T0VStuOK.js → swipe.subject-BXuaiulg.js} +18 -0
  165. package/dist/esm/{tokens.esm-DTyLTqMF.js → tokens.esm-CbrAtHkp.js} +1 -1
  166. package/dist/esm/{window-resize.decorator-xoiS5CvH.js → window-resize.decorator-Cn0-tXOU.js} +1 -1
  167. package/dist/esm-es5/app-globals-CIj5uAPM.js +1 -0
  168. package/dist/esm-es5/bal-carousel_2.entry.js +1 -1
  169. package/dist/esm-es5/bal-date-calendar_2.entry.js +1 -1
  170. package/dist/esm-es5/bal-doc-app.entry.js +1 -0
  171. package/dist/esm-es5/bal-field_5.entry.js +1 -1
  172. package/dist/esm-es5/bal-file-upload.entry.js +1 -1
  173. package/dist/esm-es5/bal-hint_5.entry.js +1 -1
  174. package/dist/esm-es5/bal-list_8.entry.js +1 -1
  175. package/dist/esm-es5/bal-logo.entry.js +1 -1
  176. package/dist/esm-es5/bal-nav_8.entry.js +1 -1
  177. package/dist/esm-es5/bal-navbar_5.entry.js +1 -1
  178. package/dist/esm-es5/bal-pagination.entry.js +1 -1
  179. package/dist/esm-es5/bal-progress-bar.entry.js +1 -1
  180. package/dist/esm-es5/bal-segment_2.entry.js +1 -1
  181. package/dist/esm-es5/bal-shape.entry.js +1 -1
  182. package/dist/esm-es5/bal-steps.entry.js +1 -1
  183. package/dist/esm-es5/bal-tab-item_2.entry.js +1 -1
  184. package/dist/esm-es5/baloise-design-system.js +1 -1
  185. package/dist/esm-es5/{breakpoints.decorator-CJwbnRPE.js → breakpoints.decorator-Bzd5Zg0a.js} +1 -1
  186. package/dist/esm-es5/{breakpoints.subject-CKmK7JA0.js → breakpoints.subject-CAsMPZu6.js} +1 -1
  187. package/dist/esm-es5/global-Llrc69_N.js +1 -0
  188. package/dist/esm-es5/index.js +1 -1
  189. package/dist/esm-es5/initialize-W3od-FM9.js +1 -1
  190. package/dist/esm-es5/loader.js +1 -1
  191. package/dist/esm-es5/{swipe.decorator-B_Ghrp1o.js → swipe.decorator-B-pmjyNr.js} +1 -1
  192. package/dist/esm-es5/swipe.subject-BXuaiulg.js +1 -0
  193. package/dist/esm-es5/{window-resize.decorator-xoiS5CvH.js → window-resize.decorator-Cn0-tXOU.js} +1 -1
  194. package/dist/html.html-data.json +4 -0
  195. package/dist/types/components/bal-accordion/bal-accordion.d.ts +0 -1
  196. package/dist/types/components/docs/bal-doc-app/bal-doc-app.d.ts +21 -0
  197. package/dist/types/components.d.ts +81 -0
  198. package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/icons/src/index.d.ts +82 -0
  199. package/dist/types/utils/swipe/swipe.listener.d.ts +1 -0
  200. package/package.json +6 -6
  201. package/dist/baloise-design-system/p-Bk7UdnZ5.system.js +0 -1
  202. package/dist/baloise-design-system/p-CKN3W8qn.js +0 -1
  203. package/dist/baloise-design-system/p-CeIZ5hSt.js +0 -1
  204. package/dist/baloise-design-system/p-fb2960c1b6.entry.js +0 -1
  205. package/dist/esm-es5/app-globals-Blx--ecs.js +0 -1
  206. package/dist/esm-es5/swipe.subject-T0VStuOK.js +0 -1
  207. /package/dist/baloise-design-system/{p-68c75901a4.system.entry.js → p-67f2a7fbef.system.entry.js} +0 -0
  208. /package/dist/baloise-design-system/{p-7563a0a66d.entry.js → p-692f76ee0c.entry.js} +0 -0
  209. /package/dist/baloise-design-system/{p-DTyLTqMF.js → p-CbrAtHkp.js} +0 -0
  210. /package/dist/baloise-design-system/{p-1D6CbirM.system.js → p-CpAfK31a.system.js} +0 -0
  211. /package/dist/esm-es5/{tokens.esm-DTyLTqMF.js → tokens.esm-CbrAtHkp.js} +0 -0
@@ -1 +1 @@
1
- import{r as e,c as t,w as i,h as a,H as s,g as n}from"./p-BdVwMG9u.js";import{_ as r,a as o}from"./p-dfXERft2.js";import{B as l}from"./p-ByiN-QjD.js";import{F as b}from"./p-DqCbGYzv.js";import{d as c}from"./p-FCLKfv6B.js";import{s as m}from"./p-CpDHeXfo.js";import{m as d,o as h,p as g}from"./p-Ba5qjFjW.js";import{L as p}from"./p-D7ovid3w.js";import{i as u,a as v,b as f,c as k,d as x,e as _,f as y,g as w}from"./p-BERg8BNc.js";import{L as j}from"./p-B9BMZmYk.js";import{L as O}from"./p-j851_ZaC.js";import{L as z}from"./p-Dp4edqFK.js";import{L as C}from"./p-CFZjZt-s.js";import{L}from"./p-TGlXe_VY.js";import{i as F}from"./p-C4sZQbkT.js";import"./p-B1u-Mq75.js";import"./p-D7M-7v58.js";import"./p-C20cwFWy.js";import"./p-DlPc3plk.js";import"./p-MBsgW7uz.js";import"./p-DTyLTqMF.js";const B=class{constructor(i){e(this,i),this.balFocus=t(this,"balFocus"),this.balBlur=t(this,"balBlur"),this.balChange=t(this,"balChange"),this.balSelect=t(this,"balSelect"),this.balVertical=t(this,"balVertical"),this.keyboardMode=!0,this.isVertical=!1,this.isMobile=!1,this.maxWidth=0,this.ariaForm=c,this.invalid=!1,this.autoInvalidOff=!1,this.disabled=!1,this.vertical=!1,this.scrollable=!1,this.expanded=!1,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())}}createLogger(e){this.log=e}invalidChanged(){this.allItems.map((e=>e.invalid=this.invalid))}disabledChanged(){this.allItems.map((e=>e.disabled=this.disabled))}valueChanged(e){this.balSelect.emit(e),this.setCheckedClasses()}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)}animationListener(){const e=this.el.getBoundingClientRect();this.maxWidth=e.width,this.windowResizeListener()}visibilityListener(){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=b.includes(e.key);let t,i=!1;if(u(e)||v(e)?(m(e),t=this.getSegmentItem("current"),i=this.value!==t.value,this.value=t.value):f(e)||k(e)?(m(e),t=this.getSegmentItem("previous")):x(e)||_(e)?(m(e),t=this.getSegmentItem("next")):y(e)?(m(e),t=this.getSegmentItem("first")):w(e)&&(m(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(){d((()=>{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:b}=this,c=l.block("segment");return a(s,{key:"08fb99b658d704d85ab181d55d7bdbce7ee40fd8",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({},c.class()),c.modifier("invalid").class(e)),c.modifier("vertical").class(t)),c.modifier("scrollable").class(i)),c.modifier("keyboard").class(n)),c.modifier("disabled").class(b)),c.modifier("expanded").class((r||o)&&!t)),onClick:this.onClick},a("slot",{key:"432741fe51dc5c83ea241506687de13469afc149",onSlotchange:this.onSlottedItemsChange}))}get el(){return n(this)}static get watchers(){return{invalid:["invalidChanged"],disabled:["disabledChanged"],value:["valueChanged"]}}};r([p("bal-segment"),o("design:type",Function),o("design:paramtypes",[Function]),o("design:returntype",void 0)],B.prototype,"createLogger",null),r([j(),o("design:type",Function),o("design:paramtypes",[Object]),o("design:returntype",void 0)],B.prototype,"focusInListener",null),r([j(),o("design:type",Function),o("design:paramtypes",[Object]),o("design:returntype",void 0)],B.prototype,"focusOutListener",null),r([O(),o("design:type",Function),o("design:paramtypes",[]),o("design:returntype",void 0)],B.prototype,"animationListener",null),r([z(),o("design:type",Function),o("design:paramtypes",[]),o("design:returntype",void 0)],B.prototype,"visibilityListener",null),r([L(),o("design:type",Function),o("design:paramtypes",[Object]),o("design:returntype",void 0)],B.prototype,"breakpointListener",null),r([C(),o("design:type",Function),o("design:paramtypes",[]),o("design:returntype",void 0)],B.prototype,"windowResizeListener",null),B.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-body-color);--bal-segment-item-text-color-checked:var(--bal-body-color);--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 D=0;const E=class{constructor(t){e(this,t),this.segmentEl=null,this.inheritedAttributes={},this.internalId=D++,this.inputId=`bal-si-${this.internalId}`,this.hasSlotContent=!1,this.isFocusable=!1,this.isVertical=!1,this.isLast=!1,this.isFirst=!1,this.hasEmptyValue=!0,this.ariaForm=c,this.disabled=!1,this.invalid=!1,this.focused=!1,this.checked=!1,this.label="",this.value="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;if(e.length>0){const t=e[0];this.checked=!1,this.isFocusable=t===this.el}}else this.checked=e.value===this.value,this.isFocusable=e.value===this.value;e.disabled&&(this.disabled=!0),e.invalid&&(this.invalid=!0),this.isLast=e.lastElementChild===this.el,this.isFirst=e.firstElementChild===this.el,this.calculateEmptyValue()}},this.onSlottedItemsChange=()=>{this.checkSlotContent()}}valueChanged(e,t){e!==t&&this.updateState()}componentWillLoad(){this.inheritedAttributes=Object.assign({},F(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&&(h(e,"balSelect",this.updateState),h(e,"balVertical",this.updateVertical)),d((()=>{this.checkSlotContent(),this.updateState()}))}disconnectedCallback(){const e=this.segmentEl;e&&(g(e,"balSelect",this.updateState),g(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:b}=this,c=l.block("segment-item"),m=c.element("button"),d=c.element("indicator"),h=this.invalid||i&&i.invalid,g=this.disabled||i&&i.disabled,p=this.isVertical,u=b&&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:"54ab8ce0ab290fcbc238087789ce0bca3caedddc",class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},c.class()),c.modifier("vertical").class(p)),c.modifier("disabled").class(g)),c.modifier("checked").class(e)),c.modifier("invalid").class(h)),c.modifier("last").class(this.isLast&&!e))},a("button",Object.assign({key:"be4e31f8a5b0da8cc9f70a867e546920127ba4b2",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:"f6d56f256041be2a97822dcc424d887844bacc0e",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:"15df166b0d0d2b6a6b9447506755b9de3581c77d",space:"x-small",layout:"horizontal"},a("bal-content",{key:"056ba7bfb5d4f456f03f70e9f86e0269bd44a78b",space:"none"},a("bal-label",{key:"055ca1dd2f698e5b3758fbc5535a221801d90642",htmlId:`bal-si-${this.internalId}-label`},n),a("span",{key:"5a4ea620046a856959a811110f9c8ec5dfefa156",part:"slot",class:Object.assign({},m.element("slot").modifier("hidden").class(!this.hasSlotContent))}," ",a("slot",{key:"ceeb6506e86bde765a45497987759479b450c16f",onSlotchange:this.onSlottedItemsChange}))))),a("div",{key:"7384e9bec0b8c8337191b79a54a18cf5cc89a55b",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"]}}};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-body-color);--bal-segment-item-text-color-checked:var(--bal-body-color);--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-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-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{B as bal_segment,E as bal_segment_item}
1
+ import{r as e,c as t,w as i,h as a,H as s,g as n}from"./p-BdVwMG9u.js";import{_ as r,a as o}from"./p-dfXERft2.js";import{B as l}from"./p-ByiN-QjD.js";import{F as b}from"./p-DqCbGYzv.js";import{d as c}from"./p-FCLKfv6B.js";import{s as m}from"./p-CpDHeXfo.js";import{m as d,o as h,p as g}from"./p-Ba5qjFjW.js";import{L as p}from"./p-D7ovid3w.js";import{i as u,a as v,b as f,c as k,d as x,e as _,f as y,g as w}from"./p-BERg8BNc.js";import{L as j}from"./p-B9BMZmYk.js";import{L as O}from"./p-j851_ZaC.js";import{L as z}from"./p-Dp4edqFK.js";import{L as C}from"./p-B1dBHBym.js";import{L}from"./p-Dk_Xk-cK.js";import{i as F}from"./p-C4sZQbkT.js";import"./p-B1u-Mq75.js";import"./p-D7M-7v58.js";import"./p-C20cwFWy.js";import"./p-joF8ji8m.js";import"./p-MBsgW7uz.js";import"./p-CbrAtHkp.js";const B=class{constructor(i){e(this,i),this.balFocus=t(this,"balFocus"),this.balBlur=t(this,"balBlur"),this.balChange=t(this,"balChange"),this.balSelect=t(this,"balSelect"),this.balVertical=t(this,"balVertical"),this.keyboardMode=!0,this.isVertical=!1,this.isMobile=!1,this.maxWidth=0,this.ariaForm=c,this.invalid=!1,this.autoInvalidOff=!1,this.disabled=!1,this.vertical=!1,this.scrollable=!1,this.expanded=!1,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())}}createLogger(e){this.log=e}invalidChanged(){this.allItems.map((e=>e.invalid=this.invalid))}disabledChanged(){this.allItems.map((e=>e.disabled=this.disabled))}valueChanged(e){this.balSelect.emit(e),this.setCheckedClasses()}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)}animationListener(){const e=this.el.getBoundingClientRect();this.maxWidth=e.width,this.windowResizeListener()}visibilityListener(){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=b.includes(e.key);let t,i=!1;if(u(e)||v(e)?(m(e),t=this.getSegmentItem("current"),i=this.value!==t.value,this.value=t.value):f(e)||k(e)?(m(e),t=this.getSegmentItem("previous")):x(e)||_(e)?(m(e),t=this.getSegmentItem("next")):y(e)?(m(e),t=this.getSegmentItem("first")):w(e)&&(m(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(){d((()=>{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:b}=this,c=l.block("segment");return a(s,{key:"08fb99b658d704d85ab181d55d7bdbce7ee40fd8",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({},c.class()),c.modifier("invalid").class(e)),c.modifier("vertical").class(t)),c.modifier("scrollable").class(i)),c.modifier("keyboard").class(n)),c.modifier("disabled").class(b)),c.modifier("expanded").class((r||o)&&!t)),onClick:this.onClick},a("slot",{key:"432741fe51dc5c83ea241506687de13469afc149",onSlotchange:this.onSlottedItemsChange}))}get el(){return n(this)}static get watchers(){return{invalid:["invalidChanged"],disabled:["disabledChanged"],value:["valueChanged"]}}};r([p("bal-segment"),o("design:type",Function),o("design:paramtypes",[Function]),o("design:returntype",void 0)],B.prototype,"createLogger",null),r([j(),o("design:type",Function),o("design:paramtypes",[Object]),o("design:returntype",void 0)],B.prototype,"focusInListener",null),r([j(),o("design:type",Function),o("design:paramtypes",[Object]),o("design:returntype",void 0)],B.prototype,"focusOutListener",null),r([O(),o("design:type",Function),o("design:paramtypes",[]),o("design:returntype",void 0)],B.prototype,"animationListener",null),r([z(),o("design:type",Function),o("design:paramtypes",[]),o("design:returntype",void 0)],B.prototype,"visibilityListener",null),r([L(),o("design:type",Function),o("design:paramtypes",[Object]),o("design:returntype",void 0)],B.prototype,"breakpointListener",null),r([C(),o("design:type",Function),o("design:paramtypes",[]),o("design:returntype",void 0)],B.prototype,"windowResizeListener",null),B.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-body-color);--bal-segment-item-text-color-checked:var(--bal-body-color);--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 D=0;const E=class{constructor(t){e(this,t),this.segmentEl=null,this.inheritedAttributes={},this.internalId=D++,this.inputId=`bal-si-${this.internalId}`,this.hasSlotContent=!1,this.isFocusable=!1,this.isVertical=!1,this.isLast=!1,this.isFirst=!1,this.hasEmptyValue=!0,this.ariaForm=c,this.disabled=!1,this.invalid=!1,this.focused=!1,this.checked=!1,this.label="",this.value="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;if(e.length>0){const t=e[0];this.checked=!1,this.isFocusable=t===this.el}}else this.checked=e.value===this.value,this.isFocusable=e.value===this.value;e.disabled&&(this.disabled=!0),e.invalid&&(this.invalid=!0),this.isLast=e.lastElementChild===this.el,this.isFirst=e.firstElementChild===this.el,this.calculateEmptyValue()}},this.onSlottedItemsChange=()=>{this.checkSlotContent()}}valueChanged(e,t){e!==t&&this.updateState()}componentWillLoad(){this.inheritedAttributes=Object.assign({},F(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&&(h(e,"balSelect",this.updateState),h(e,"balVertical",this.updateVertical)),d((()=>{this.checkSlotContent(),this.updateState()}))}disconnectedCallback(){const e=this.segmentEl;e&&(g(e,"balSelect",this.updateState),g(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:b}=this,c=l.block("segment-item"),m=c.element("button"),d=c.element("indicator"),h=this.invalid||i&&i.invalid,g=this.disabled||i&&i.disabled,p=this.isVertical,u=b&&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:"54ab8ce0ab290fcbc238087789ce0bca3caedddc",class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},c.class()),c.modifier("vertical").class(p)),c.modifier("disabled").class(g)),c.modifier("checked").class(e)),c.modifier("invalid").class(h)),c.modifier("last").class(this.isLast&&!e))},a("button",Object.assign({key:"be4e31f8a5b0da8cc9f70a867e546920127ba4b2",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:"f6d56f256041be2a97822dcc424d887844bacc0e",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:"15df166b0d0d2b6a6b9447506755b9de3581c77d",space:"x-small",layout:"horizontal"},a("bal-content",{key:"056ba7bfb5d4f456f03f70e9f86e0269bd44a78b",space:"none"},a("bal-label",{key:"055ca1dd2f698e5b3758fbc5535a221801d90642",htmlId:`bal-si-${this.internalId}-label`},n),a("span",{key:"5a4ea620046a856959a811110f9c8ec5dfefa156",part:"slot",class:Object.assign({},m.element("slot").modifier("hidden").class(!this.hasSlotContent))}," ",a("slot",{key:"ceeb6506e86bde765a45497987759479b450c16f",onSlotchange:this.onSlottedItemsChange}))))),a("div",{key:"7384e9bec0b8c8337191b79a54a18cf5cc89a55b",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"]}}};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-body-color);--bal-segment-item-text-color-checked:var(--bal-body-color);--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-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-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{B as bal_segment,E as bal_segment_item}
@@ -1 +1 @@
1
- import{k as t,o as s,p as i}from"./p-Ba5qjFjW.js";import{b as e}from"./p-B1u-Mq75.js";import{b as h}from"./p-MBsgW7uz.js";import{L as r,S as n}from"./p-C20cwFWy.js";import{j as o,k as u,l as c,m as a,n as l}from"./p-DTyLTqMF.js";class d{constructor(t={}){this.previousWidth=e.window.width,this.previousHeight=e.window.height,this.previousIsLandscape=this.isLandscape,this.options={onlyListenToWidthChanges:!1},this.options=Object.assign(Object.assign({},this.options),t)}async hasResized(){if(h.hasTouchScreen){if(!this.sameWidth||this.previousIsLandscape!==this.isLandscape)return this.resetPreviousValues(),!0}else if(this.options.onlyListenToWidthChanges){if(!this.sameWidth)return this.resetPreviousValues(),!0}else if(!this.sameWidth||!this.sameHeight)return this.resetPreviousValues(),!0;return!1}get isLandscape(){return e.window.width>e.window.height}get sameWidth(){return this.previousWidth===e.window.width}get sameHeight(){return this.previousHeight===e.window.height}resetPreviousValues(){this.previousWidth=e.window.width,this.previousHeight=e.window.height,this.previousIsLandscape=this.isLandscape}}class p extends r{constructor(){super(...arguments),this.resizeHandler=new d({onlyListenToWidthChanges:!0}),this.debouncedNotify=t((()=>this.notify()),100),this.notify=async()=>{await this.resizeHandler.hasResized()&&super.notify(void 0)}}connect(t){super.connect(t),this.el&&s(this.el,"resize",this.debouncedNotify,{passive:!0})}disconnect(){super.disconnect(),this.el&&i(this.el,"resize",this.debouncedNotify)}}const f=t=>parseInt(t.slice(0,-2),10),g=f(o),b=f(u),m=f(c),w=f(a),j=f(l),D=t=>t.innerWidth<g,k=t=>{const s=t.innerWidth;return s>=g&&s<b},W=t=>D(t)||k(t),v={mobile:D,tablet:k,touch:W,desktop:t=>!W(t),highDefinition:t=>{const s=t.innerWidth;return s>=m&&s<w},widescreen:t=>{const s=t.innerWidth;return s>=w&&s<j},fullhd:t=>t.innerWidth>=j};class y{constructor(){this.breakpoints=[],e.hasWindow&&(this.win=window,this.win.BaloiseDesignSystem=this.win.BaloiseDesignSystem||{},this.detect())}get isMobile(){return this.includes("mobile")}get isTablet(){return this.includes("tablet")}get isTouch(){return this.includes("touch")}get isDesktop(){return this.includes("desktop")}get isHighDefinition(){return this.includes("highDefinition")}get isWidescreen(){return this.includes("widescreen")}get isFullHD(){return this.includes("fullhd")}includes(t){var s;return this.detect(),!!(null===(s=this.breakpoints)||void 0===s?void 0:s.includes(t))}detect(){return this.win&&(this.breakpoints=Object.keys(v).filter((t=>v[t](this.win))),this.win.BaloiseDesignSystem.breakpoints=this.breakpoints,this.win.BaloiseDesignSystem.platforms=this.breakpoints),this.breakpoints}toObject(){return{mobile:this.breakpoints.includes("mobile"),tablet:this.breakpoints.includes("tablet"),touch:this.breakpoints.includes("touch"),desktop:this.breakpoints.includes("desktop"),highDefinition:this.breakpoints.includes("highDefinition"),widescreen:this.breakpoints.includes("widescreen"),fullhd:this.breakpoints.includes("fullhd")}}}const O=new y,T={mobile:!1,tablet:!1,touch:!1,desktop:!1,highDefinition:!1,widescreen:!1,fullhd:!1};class L extends n{constructor(){super((t=>t.breakpointListener(this.state))),this.state=T,this.listener=new p,this.debouncedNotify=t((()=>this.notify()),50),this.listener.connect(),this.listener.add((()=>{O.detect();const t=O.toObject();this.isEqual(t)||(this.state=t,this.debouncedNotify())}))}attach(t){super.attach(t),O.detect();const s=O.toObject();this.isEqual(s)||(this.state=s,this.debouncedNotify())}isEqual(t){return JSON.stringify(this.state)===JSON.stringify(t)}}const q=new L;export{p as B,q as a,O as b,L as c,y as d}
1
+ import{k as t,o as s,p as i}from"./p-Ba5qjFjW.js";import{b as e}from"./p-B1u-Mq75.js";import{b as h}from"./p-MBsgW7uz.js";import{L as r,S as n}from"./p-C20cwFWy.js";import{j as o,k as u,l as c,m as a,n as l}from"./p-CbrAtHkp.js";class d{constructor(t={}){this.previousWidth=e.window.width,this.previousHeight=e.window.height,this.previousIsLandscape=this.isLandscape,this.options={onlyListenToWidthChanges:!1},this.options=Object.assign(Object.assign({},this.options),t)}async hasResized(){if(h.hasTouchScreen){if(!this.sameWidth||this.previousIsLandscape!==this.isLandscape)return this.resetPreviousValues(),!0}else if(this.options.onlyListenToWidthChanges){if(!this.sameWidth)return this.resetPreviousValues(),!0}else if(!this.sameWidth||!this.sameHeight)return this.resetPreviousValues(),!0;return!1}get isLandscape(){return e.window.width>e.window.height}get sameWidth(){return this.previousWidth===e.window.width}get sameHeight(){return this.previousHeight===e.window.height}resetPreviousValues(){this.previousWidth=e.window.width,this.previousHeight=e.window.height,this.previousIsLandscape=this.isLandscape}}class p extends r{constructor(){super(...arguments),this.resizeHandler=new d({onlyListenToWidthChanges:!0}),this.debouncedNotify=t((()=>this.notify()),100),this.notify=async()=>{await this.resizeHandler.hasResized()&&super.notify(void 0)}}connect(t){super.connect(t),this.el&&s(this.el,"resize",this.debouncedNotify,{passive:!0})}disconnect(){super.disconnect(),this.el&&i(this.el,"resize",this.debouncedNotify)}}const f=t=>parseInt(t.slice(0,-2),10),b=f(o),g=f(u),m=f(c),w=f(a),j=f(l),k=t=>t.innerWidth<b,D=t=>{const s=t.innerWidth;return s>=b&&s<g},W=t=>k(t)||D(t),v={mobile:k,tablet:D,touch:W,desktop:t=>!W(t),highDefinition:t=>{const s=t.innerWidth;return s>=m&&s<w},widescreen:t=>{const s=t.innerWidth;return s>=w&&s<j},fullhd:t=>t.innerWidth>=j};class O{constructor(){this.breakpoints=[],e.hasWindow&&(this.win=window,this.win.BaloiseDesignSystem=this.win.BaloiseDesignSystem||{},this.detect())}get isMobile(){return this.includes("mobile")}get isTablet(){return this.includes("tablet")}get isTouch(){return this.includes("touch")}get isDesktop(){return this.includes("desktop")}get isHighDefinition(){return this.includes("highDefinition")}get isWidescreen(){return this.includes("widescreen")}get isFullHD(){return this.includes("fullhd")}includes(t){var s;return this.detect(),!!(null===(s=this.breakpoints)||void 0===s?void 0:s.includes(t))}detect(){return this.win&&(this.breakpoints=Object.keys(v).filter((t=>v[t](this.win))),this.win.BaloiseDesignSystem.breakpoints=this.breakpoints,this.win.BaloiseDesignSystem.platforms=this.breakpoints),this.breakpoints}toObject(){return{mobile:this.breakpoints.includes("mobile"),tablet:this.breakpoints.includes("tablet"),touch:this.breakpoints.includes("touch"),desktop:this.breakpoints.includes("desktop"),highDefinition:this.breakpoints.includes("highDefinition"),widescreen:this.breakpoints.includes("widescreen"),fullhd:this.breakpoints.includes("fullhd")}}}const y=new O,z={mobile:!1,tablet:!1,touch:!1,desktop:!1,highDefinition:!1,widescreen:!1,fullhd:!1};class B extends n{constructor(){super((t=>t.breakpointListener(this.state))),this.state=z,this.listener=new p,this.debouncedNotify=t((()=>this.notify()),50),this.listener.connect(),this.listener.add((()=>{y.detect();const t=y.toObject();this.isEqual(t)||(this.state=t,this.debouncedNotify())}))}attach(t){super.attach(t),y.detect();const s=y.toObject();this.isEqual(s)||(this.state=s,this.debouncedNotify())}isEqual(t){return JSON.stringify(this.state)===JSON.stringify(t)}}const C=new B;export{p as B,C as a,y as b,B as c,O as d}
@@ -1 +1 @@
1
- var __extends=this&&this.__extends||function(){var n=function(t,e){n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))n[e]=t[e]};return n(t,e)};return function(t,e){if(typeof e!=="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}();var __awaiter=this&&this.__awaiter||function(n,t,e,i){function o(n){return n instanceof e?n:new e((function(t){t(n)}))}return new(e||(e=Promise))((function(e,a){function r(n){try{l(i.next(n))}catch(n){a(n)}}function s(n){try{l(i["throw"](n))}catch(n){a(n)}}function l(n){n.done?e(n.value):o(n.value).then(r,s)}l((i=i.apply(n,t||[])).next())}))};var __generator=this&&this.__generator||function(n,t){var e={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,o,a,r=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return r.next=s(0),r["throw"]=s(1),r["return"]=s(2),typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function s(n){return function(t){return l([n,t])}}function l(s){if(i)throw new TypeError("Generator is already executing.");while(r&&(r=0,s[0]&&(e=0)),e)try{if(i=1,o&&(a=s[0]&2?o["return"]:s[0]?o["throw"]||((a=o["return"])&&a.call(o),0):o.next)&&!(a=a.call(o,s[1])).done)return a;if(o=0,a)s=[s[0]&2,a.value];switch(s[0]){case 0:case 1:a=s;break;case 4:e.label++;return{value:s[1],done:false};case 5:e.label++;o=s[1];s=[0];continue;case 7:s=e.ops.pop();e.trys.pop();continue;default:if(!(a=e.trys,a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){e.label=s[1];break}if(s[0]===6&&e.label<a[1]){e.label=a[1];a=s;break}if(a&&e.label<a[2]){e.label=a[2];e.ops.push(s);break}if(a[2])e.ops.pop();e.trys.pop();continue}s=t.call(n,e)}catch(n){s=[6,n];o=0}finally{i=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-wTePExHL.system.js","./p-DAOAbG5Y.system.js","./p-CDeyBUqm.system.js","./p-BktTDSq4.system.js","./p-DkfWaTsH.system.js","./p-DPYRyPTD.system.js","./p-CTl0uAFp.system.js","./p-CDt5sRVY.system.js","./p-BRAmUyPx.system.js","./p-D7_eHNTI.system.js","./p-DdX8FaaK.system.js","./p-DWgCJRpS.system.js","./p-CLfE_o7e.system.js","./p-D1opIX9W.system.js","./p-CGJ8YYiA.system.js","./p-CvHtWfhm.system.js","./p-jQQqRgMt.system.js","./p-DUpGQx_U.system.js","./p-BM_oHMik.system.js","./p-ncoiCFQ1.system.js","./p-DDPYMMGG.system.js","./p-BCtb7Ny9.system.js","./p-PNu_g_s6.system.js","./p-1D6CbirM.system.js","./p-4Y53iwfN.system.js"],(function(n){"use strict";var t,e,i,o,a,r,s,l,u;return{setters:[function(t){n("FileUploadRejectionReason",t.F)},function(t){n("i18nBalClose",t.i)},function(t){n({BalDate:t.B,i18nBalDate:t.i})},function(t){n("i18nBalInputStepper",t.i)},function(t){n("i18nBalLabel",t.i)},function(t){n("i18nBalTimeInput",t.i)},function(t){n("newBalStepOption",t.n)},function(t){n("newBalTabOption",t.n)},function(t){n({BalSnackbarController:t.B,BalToastController:t.a,balSnackbarController:t.b,balToastController:t.c,initialize:t.i,initializeBaloiseDesignSystem:t.i,setupConfig:t.s})},function(e){t=e.b;n("balBrowser",e.b)},function(t){e=t.b;n({BalDevice:t.B,balDevice:t.b})},function(t){n("newBalOption",t.n)},function(t){n("scrollToFirstInvalidField",t.s)},function(t){i=t.g;o=t.c;n({componentOnReady:t.c,deepReady:t.d,getAppRoot:t.g,isDescendant:t.i,shallowReady:t.s,wait:t.w,waitAfterFramePaint:t.a,waitAfterIdleCallback:t.b,waitAfterLargestContentfulPaintCallback:t.e,waitForComponent:t.f,waitForDesignSystem:t.h,waitOnLoadEventCallback:t.j})},function(t){n("INVALID_VALUE",t.I)},function(t){n("BalScrollHandler",t.B)},function(n){a=n.g;r=n.a},function(t){s=t.B;l=t.b;n({BalBreakpointSubject:t.c,BalBreakpointsUtil:t.d,balBreakpointSubject:t.a,balBreakpoints:t.b})},function(t){n({attachToConfig:t.a,detachFromConfig:t.d,onBalConfigChange:t.o,updateBalAllowedLanguages:t.u,updateBalAnimated:t.b,updateBalIcons:t.c,updateBalLanguage:t.e,updateBalRegion:t.f,useBalConfig:t.g})},function(t){n("defaultConfig",t.d)},function(n){u=n.S},function(t){n("BalSwipeSubject",t.B)},null,null,null],execute:function(){var f=n("i18nBalFieldLabel",{de:{optional:" (optional)"},en:{optional:" (optional)"},fr:{optional:" (optionnel)"},it:{optional:" (opzionale)"},nl:{optional:" (optioneel)"},es:{optional:" (opcional)"},pl:{optional:" (opcjonalnie)"},pt:{optional:" (opcional)"},sv:{optional:" (frivillig)"},fi:{optional:" (valinnainen)"}});var c=n("newBalCheckboxOption",(function(n){return Object.assign(Object.assign({interface:"checkbox",labelHidden:false,flat:false,disabled:false,readonly:false,required:false,nonSubmit:false,invalid:false,checked:false},n),{label:"",html:n.label})}));var p=n("newBalRadioOption",(function(n){return Object.assign(Object.assign({interface:"radio",labelHidden:false,flat:false,disabled:false,readonly:false,required:false,nonSubmit:false,invalid:false},n),{label:"",html:n.label})}));var d=n("newBalOptionValue",(function(n,t,e,i){if(e===void 0){e=false}return{value:n,label:t,disabled:e,data:i}}));var m=n("newBalSingleOptionValue",(function(n,t,e){if(t===void 0){t=false}return d(n,n,t,e)}));var b=function(n){__extends(t,n);function t(){var t=n.call(this,(function(n){return n.orientationListener(t.state)}))||this;t.listener=new s;t.state=e.orientation.toObject();t.listener.connect();t.listener.add((function(){var n=e.orientation.toObject();if(!t.isEqual(n)){t.state=n;t.notify(undefined)}}));return t}t.prototype.attach=function(t){n.prototype.attach.call(this,t);t.orientationListener(this.state)};t.prototype.isEqual=function(n){return n.landscape===this.state.landscape&&n.portrait===this.state.portrait};return t}(u);n("BalOrientationSubject",b);var y=n("balOrientationSubject",new b);var v=function(){function n(){this.tag="bal-modal"}n.prototype.create=function(n){var e=this;if(typeof customElements!=="undefined"&&t.hasDocument){return customElements.whenDefined(this.tag).then((function(){var t=document.createElement(e.tag);Object.assign(t,n);i(document).appendChild(t);return new Promise((function(n){return o(t,n)}))}))}return Promise.resolve()};n.prototype.dismissAll=function(n,e){return __awaiter(this,void 0,void 0,(function(){var i;return __generator(this,(function(o){switch(o.label){case 0:if(!t.hasDocument)return[3,2];i=a(document,this.tag);return[4,Promise.all(i.map((function(t){return t.dismiss(n,e)})))];case 1:o.sent();o.label=2;case 2:return[2]}}))}))};n.prototype.dismiss=function(n,e,i){if(t.hasDocument){var o=r(document,this.tag,i);if(!o){return Promise.reject("overlay does not exist")}return o.dismiss(n,e)}return Promise.resolve(false)};n.prototype.getTop=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){if(t.hasDocument){return[2,r(document,this.tag)]}return[2]}))}))};return n}();n("BalModalController",v);var h=n("balModalController",new v);var B=n("hasTouchSupport",(function(){return e.hasTouchScreen}));var j=n("isBrowser",(function(n){if(n==="Safari"){return t.isSafari}return false}));var w=n("getPlatforms",(function(n){return l.detect()}));var C=n("isPlatform",(function(n,t){if(typeof n==="string"){t=n}if(t){return l.detect().includes(t)}return false}));var g=n("NewBalOptionValue",d);var _=n("NewBalSingleOptionValue",m)}}}));
1
+ var __extends=this&&this.__extends||function(){var n=function(t,e){n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))n[e]=t[e]};return n(t,e)};return function(t,e){if(typeof e!=="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}();var __awaiter=this&&this.__awaiter||function(n,t,e,i){function a(n){return n instanceof e?n:new e((function(t){t(n)}))}return new(e||(e=Promise))((function(e,o){function r(n){try{l(i.next(n))}catch(n){o(n)}}function s(n){try{l(i["throw"](n))}catch(n){o(n)}}function l(n){n.done?e(n.value):a(n.value).then(r,s)}l((i=i.apply(n,t||[])).next())}))};var __generator=this&&this.__generator||function(n,t){var e={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,a,o,r=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return r.next=s(0),r["throw"]=s(1),r["return"]=s(2),typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function s(n){return function(t){return l([n,t])}}function l(s){if(i)throw new TypeError("Generator is already executing.");while(r&&(r=0,s[0]&&(e=0)),e)try{if(i=1,a&&(o=s[0]&2?a["return"]:s[0]?a["throw"]||((o=a["return"])&&o.call(a),0):a.next)&&!(o=o.call(a,s[1])).done)return o;if(a=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:e.label++;return{value:s[1],done:false};case 5:e.label++;a=s[1];s=[0];continue;case 7:s=e.ops.pop();e.trys.pop();continue;default:if(!(o=e.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){e.label=s[1];break}if(s[0]===6&&e.label<o[1]){e.label=o[1];o=s;break}if(o&&e.label<o[2]){e.label=o[2];e.ops.push(s);break}if(o[2])e.ops.pop();e.trys.pop();continue}s=t.call(n,e)}catch(n){s=[6,n];a=0}finally{i=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-wTePExHL.system.js","./p-DAOAbG5Y.system.js","./p-CDeyBUqm.system.js","./p-BktTDSq4.system.js","./p-DkfWaTsH.system.js","./p-DPYRyPTD.system.js","./p-CTl0uAFp.system.js","./p-CDt5sRVY.system.js","./p-BRAmUyPx.system.js","./p-D7_eHNTI.system.js","./p-DdX8FaaK.system.js","./p-DWgCJRpS.system.js","./p-CLfE_o7e.system.js","./p-D1opIX9W.system.js","./p-CGJ8YYiA.system.js","./p-CvHtWfhm.system.js","./p-jQQqRgMt.system.js","./p-DXgjqG3B.system.js","./p-BM_oHMik.system.js","./p-ncoiCFQ1.system.js","./p-DDPYMMGG.system.js","./p-4RgSLeC0.system.js","./p-PNu_g_s6.system.js","./p-CpAfK31a.system.js","./p-4Y53iwfN.system.js"],(function(n){"use strict";var t,e,i,a,o,r,s,l,u;return{setters:[function(t){n("FileUploadRejectionReason",t.F)},function(t){n("i18nBalClose",t.i)},function(t){n({BalDate:t.B,i18nBalDate:t.i})},function(t){n("i18nBalInputStepper",t.i)},function(t){n("i18nBalLabel",t.i)},function(t){n("i18nBalTimeInput",t.i)},function(t){n("newBalStepOption",t.n)},function(t){n("newBalTabOption",t.n)},function(t){n({BalSnackbarController:t.B,BalToastController:t.a,balSnackbarController:t.b,balToastController:t.c,initialize:t.i,initializeBaloiseDesignSystem:t.i,setupConfig:t.s})},function(e){t=e.b;n("balBrowser",e.b)},function(t){e=t.b;n({BalDevice:t.B,balDevice:t.b})},function(t){n("newBalOption",t.n)},function(t){n("scrollToFirstInvalidField",t.s)},function(t){i=t.g;a=t.c;n({componentOnReady:t.c,deepReady:t.d,getAppRoot:t.g,isDescendant:t.i,shallowReady:t.s,wait:t.w,waitAfterFramePaint:t.a,waitAfterIdleCallback:t.b,waitAfterLargestContentfulPaintCallback:t.e,waitForComponent:t.f,waitForDesignSystem:t.h,waitOnLoadEventCallback:t.j})},function(t){n("INVALID_VALUE",t.I)},function(t){n("BalScrollHandler",t.B)},function(n){o=n.g;r=n.a},function(t){s=t.B;l=t.b;n({BalBreakpointSubject:t.c,BalBreakpointsUtil:t.d,balBreakpointSubject:t.a,balBreakpoints:t.b})},function(t){n({attachToConfig:t.a,detachFromConfig:t.d,onBalConfigChange:t.o,updateBalAllowedLanguages:t.u,updateBalAnimated:t.b,updateBalIcons:t.c,updateBalLanguage:t.e,updateBalRegion:t.f,useBalConfig:t.g})},function(t){n("defaultConfig",t.d)},function(n){u=n.S},function(t){n("BalSwipeSubject",t.B)},null,null,null],execute:function(){var f=n("i18nBalFieldLabel",{de:{optional:" (optional)"},en:{optional:" (optional)"},fr:{optional:" (optionnel)"},it:{optional:" (opzionale)"},nl:{optional:" (optioneel)"},es:{optional:" (opcional)"},pl:{optional:" (opcjonalnie)"},pt:{optional:" (opcional)"},sv:{optional:" (frivillig)"},fi:{optional:" (valinnainen)"}});var c=n("newBalCheckboxOption",(function(n){return Object.assign(Object.assign({interface:"checkbox",labelHidden:false,flat:false,disabled:false,readonly:false,required:false,nonSubmit:false,invalid:false,checked:false},n),{label:"",html:n.label})}));var p=n("newBalRadioOption",(function(n){return Object.assign(Object.assign({interface:"radio",labelHidden:false,flat:false,disabled:false,readonly:false,required:false,nonSubmit:false,invalid:false},n),{label:"",html:n.label})}));var d=n("newBalOptionValue",(function(n,t,e,i){if(e===void 0){e=false}return{value:n,label:t,disabled:e,data:i}}));var m=n("newBalSingleOptionValue",(function(n,t,e){if(t===void 0){t=false}return d(n,n,t,e)}));var y=function(n){__extends(t,n);function t(){var t=n.call(this,(function(n){return n.orientationListener(t.state)}))||this;t.listener=new s;t.state=e.orientation.toObject();t.listener.connect();t.listener.add((function(){var n=e.orientation.toObject();if(!t.isEqual(n)){t.state=n;t.notify(undefined)}}));return t}t.prototype.attach=function(t){n.prototype.attach.call(this,t);t.orientationListener(this.state)};t.prototype.isEqual=function(n){return n.landscape===this.state.landscape&&n.portrait===this.state.portrait};return t}(u);n("BalOrientationSubject",y);var b=n("balOrientationSubject",new y);var v=function(){function n(){this.tag="bal-modal"}n.prototype.create=function(n){var e=this;if(typeof customElements!=="undefined"&&t.hasDocument){return customElements.whenDefined(this.tag).then((function(){var t=document.createElement(e.tag);Object.assign(t,n);i(document).appendChild(t);return new Promise((function(n){return a(t,n)}))}))}return Promise.resolve()};n.prototype.dismissAll=function(n,e){return __awaiter(this,void 0,void 0,(function(){var i;return __generator(this,(function(a){switch(a.label){case 0:if(!t.hasDocument)return[3,2];i=o(document,this.tag);return[4,Promise.all(i.map((function(t){return t.dismiss(n,e)})))];case 1:a.sent();a.label=2;case 2:return[2]}}))}))};n.prototype.dismiss=function(n,e,i){if(t.hasDocument){var a=r(document,this.tag,i);if(!a){return Promise.reject("overlay does not exist")}return a.dismiss(n,e)}return Promise.resolve(false)};n.prototype.getTop=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){if(t.hasDocument){return[2,r(document,this.tag)]}return[2]}))}))};return n}();n("BalModalController",v);var h=n("balModalController",new v);var j=n("hasTouchSupport",(function(){return e.hasTouchScreen}));var B=n("isBrowser",(function(n){if(n==="Safari"){return t.isSafari}return false}));var w=n("getPlatforms",(function(n){return l.detect()}));var g=n("isPlatform",(function(n,t){if(typeof n==="string"){t=n}if(t){return l.detect().includes(t)}return false}));var C=n("NewBalOptionValue",d);var S=n("NewBalSingleOptionValue",m)}}}));
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ var global = require('./global-BOGOCc0T.js');
4
+
5
+ const globalScripts = global.globalScript;
6
+
7
+ exports.globalScripts = globalScripts;
@@ -58,7 +58,6 @@ const Accordion = class {
58
58
  */
59
59
  this.card = false;
60
60
  /**
61
- * @internal
62
61
  * defines the version of the component
63
62
  */
64
63
  this.version = 2;
@@ -3,14 +3,14 @@
3
3
  var index = require('./index-feA4skrY.js');
4
4
  var tslib_es6 = require('./tslib.es6-DrfCPgT9.js');
5
5
  var bem = require('./bem-p0PWVN8n.js');
6
- var breakpoints_decorator = require('./breakpoints.decorator-DVSgAJPa.js');
6
+ var breakpoints_decorator = require('./breakpoints.decorator-Cugb3ou_.js');
7
7
  var formInput = require('./form-input-BwFB4Rej.js');
8
8
  var aria = require('./aria-BzkqcV7W.js');
9
9
  var string = require('./string-CKS6CsMi.js');
10
10
  var mutation_decorator = require('./mutation.decorator-BolUYaKD.js');
11
- var swipe_decorator = require('./swipe.decorator-BZYUlkYt.js');
11
+ var swipe_decorator = require('./swipe.decorator-C_jX7Il5.js');
12
12
  var resize_decorator = require('./resize.decorator-ChuFQ8x3.js');
13
- var breakpoints_subject = require('./breakpoints.subject-PPg53GM5.js');
13
+ var breakpoints_subject = require('./breakpoints.subject-B0NyYJib.js');
14
14
  var config_default = require('./config.default-Cko-wpRU.js');
15
15
  var visibility_decorator = require('./visibility.decorator-DTARY-5M.js');
16
16
  var config_decorator = require('./config.decorator-CUe4yCTd.js');
@@ -20,9 +20,9 @@ var helpers = require('./helpers-HuaiWXrB.js');
20
20
  require('./keyboard.helpers-BkZpVT-9.js');
21
21
  require('./listener-DspXpqzY.js');
22
22
  require('./browser-BwmkTmm8.js');
23
- require('./swipe.subject-BaKNugDQ.js');
23
+ require('./swipe.subject-iyL-XVHG.js');
24
24
  require('./device-CoogBamh.js');
25
- require('./tokens.esm-B1kdQjzR.js');
25
+ require('./tokens.esm-B1UoVxjb.js');
26
26
  require('./config.utils-Civnz2jT.js');
27
27
  require('./log-CXDMiw7o.js');
28
28
  require('./_commonjsHelpers-BJu3ubxk.js');
@@ -10,7 +10,7 @@ var index$1 = require('./index-BZ67Dcnb.js');
10
10
  var date = require('./date-BPyuc34s.js');
11
11
  var config_default = require('./config.default-Cko-wpRU.js');
12
12
  var config_decorator = require('./config.decorator-CUe4yCTd.js');
13
- var swipe_decorator = require('./swipe.decorator-BZYUlkYt.js');
13
+ var swipe_decorator = require('./swipe.decorator-C_jX7Il5.js');
14
14
  var aria = require('./aria-BzkqcV7W.js');
15
15
  var attributes = require('./attributes-Cp0kpySW.js');
16
16
  var form = require('./form-BSlIiqcR.js');
@@ -20,7 +20,7 @@ var maskUtil = require('./mask-util-B8hrxmqO.js');
20
20
  require('./browser-BwmkTmm8.js');
21
21
  require('./config.utils-Civnz2jT.js');
22
22
  require('./_commonjsHelpers-BJu3ubxk.js');
23
- require('./swipe.subject-BaKNugDQ.js');
23
+ require('./swipe.subject-iyL-XVHG.js');
24
24
  require('./device-CoogBamh.js');
25
25
  require('./listener-DspXpqzY.js');
26
26