@solid-design-system/components 7.0.0 → 7.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (644) hide show
  1. package/cdn/chunks/{chunk.KSZUHYF7.js → chunk.2C3UQTSS.js} +1 -1
  2. package/cdn/chunks/{chunk.O7SKSXCU.js → chunk.2O3FM7UB.js} +1 -1
  3. package/cdn/chunks/{chunk.MU62OKKN.js → chunk.35XPUMS2.js} +1 -1
  4. package/cdn/chunks/{chunk.GMK4GUJU.js → chunk.3IZUMERL.js} +1 -1
  5. package/cdn/chunks/{chunk.O2KXD6V3.js → chunk.3RIAU3TH.js} +1 -1
  6. package/cdn/chunks/{chunk.MGUGARHV.js → chunk.4GA43M6X.js} +1 -1
  7. package/cdn/chunks/{chunk.3ZO6YY7I.js → chunk.4QTJXGRR.js} +1 -1
  8. package/cdn/chunks/{chunk.2ITHO4DN.js → chunk.5SQTIWWY.js} +1 -1
  9. package/cdn/chunks/{chunk.I6YCX5RP.js → chunk.ADVB3FPU.js} +1 -1
  10. package/cdn/chunks/{chunk.Z6PXRBBW.js → chunk.AJGTKHU5.js} +1 -1
  11. package/cdn/chunks/{chunk.GIARN4UP.js → chunk.C37LGAL3.js} +1 -1
  12. package/cdn/chunks/{chunk.FFI6YSXU.js → chunk.CGMKBGJU.js} +1 -1
  13. package/cdn/chunks/{chunk.AZUI44B5.js → chunk.CQNFI34K.js} +1 -1
  14. package/cdn/chunks/{chunk.ZNLOJFYY.js → chunk.DCAJAXUP.js} +1 -1
  15. package/cdn/chunks/{chunk.NWNTRKHL.js → chunk.DS2MKMMN.js} +1 -1
  16. package/cdn/chunks/{chunk.6O5DTJMU.js → chunk.GA3PWYR4.js} +1 -1
  17. package/cdn/chunks/{chunk.7RGHHNKJ.js → chunk.HNBY226D.js} +1 -1
  18. package/cdn/chunks/chunk.HWX5X5EX.js +2 -0
  19. package/cdn/chunks/{chunk.Q64TZBRZ.js → chunk.HY624TPC.js} +1 -1
  20. package/cdn/chunks/{chunk.GG7UP3MH.js → chunk.I7OVY27Y.js} +1 -1
  21. package/cdn/chunks/{chunk.2LXNC6H3.js → chunk.IFLRUJCI.js} +1 -1
  22. package/cdn/chunks/{chunk.OL5UARRQ.js → chunk.IQBZ7GRB.js} +1 -1
  23. package/cdn/chunks/chunk.J45556RK.js +26 -0
  24. package/cdn/chunks/{chunk.AI7EFEUE.js → chunk.JMX6KLDZ.js} +1 -1
  25. package/cdn/chunks/{chunk.F4VKYXZU.js → chunk.KE2YEQDL.js} +1 -1
  26. package/cdn/chunks/{chunk.3W72NBFO.js → chunk.MYPRMCUO.js} +1 -1
  27. package/cdn/chunks/{chunk.MDIQLQU6.js → chunk.N4L76IWF.js} +1 -1
  28. package/cdn/chunks/{chunk.3AGXZWRW.js → chunk.NGU7NO3O.js} +1 -1
  29. package/cdn/chunks/{chunk.2AR7OD3J.js → chunk.NJKSWXOS.js} +1 -1
  30. package/cdn/chunks/{chunk.YOEY6E2E.js → chunk.NOP4DTP2.js} +1 -1
  31. package/cdn/chunks/{chunk.ZDXDR6L6.js → chunk.OOIX4OAP.js} +1 -1
  32. package/cdn/chunks/{chunk.3ESWKAZS.js → chunk.P7GMFHO5.js} +1 -1
  33. package/cdn/chunks/{chunk.WZLYCJJA.js → chunk.PCXVXYU2.js} +1 -1
  34. package/cdn/chunks/{chunk.FAGCRWAX.js → chunk.PFPUD5HR.js} +1 -1
  35. package/cdn/chunks/{chunk.B4R4H2RH.js → chunk.PKCNX4R2.js} +1 -1
  36. package/cdn/chunks/{chunk.QFWT54X4.js → chunk.PQW77KHE.js} +1 -1
  37. package/cdn/chunks/{chunk.REMEEDIQ.js → chunk.PURR56D5.js} +1 -1
  38. package/cdn/chunks/{chunk.VWI56VMW.js → chunk.Q3DFVGEW.js} +1 -1
  39. package/cdn/chunks/{chunk.T35R3Z5M.js → chunk.Q63S2Z2M.js} +1 -1
  40. package/cdn/chunks/{chunk.RWLAIGRI.js → chunk.QK3WCIP5.js} +1 -1
  41. package/cdn/chunks/{chunk.QDREJDJ2.js → chunk.RHC6WZ6V.js} +1 -1
  42. package/cdn/chunks/{chunk.GH4YN7AR.js → chunk.RRJCCIDH.js} +1 -1
  43. package/cdn/chunks/{chunk.LQ2TVIG5.js → chunk.SPL6VR5S.js} +1 -1
  44. package/cdn/chunks/{chunk.GUY5KRI5.js → chunk.SSE7T5OF.js} +1 -1
  45. package/cdn/chunks/{chunk.VWYQ4GYH.js → chunk.SZNU4NHI.js} +1 -1
  46. package/cdn/chunks/{chunk.MADHUCSI.js → chunk.T7I5MFNS.js} +1 -1
  47. package/cdn/chunks/{chunk.UTB3OKJT.js → chunk.TIMZJKMF.js} +1 -1
  48. package/cdn/chunks/{chunk.ADMPVU62.js → chunk.TX5WPWH2.js} +1 -1
  49. package/cdn/chunks/{chunk.GA5I2MP7.js → chunk.UI3ZVKSU.js} +1 -1
  50. package/cdn/chunks/{chunk.5KXVHZV5.js → chunk.V6IM4GAA.js} +1 -1
  51. package/cdn/chunks/{chunk.RLALDY5L.js → chunk.VPBXFCBA.js} +1 -1
  52. package/cdn/chunks/{chunk.AOGCHS73.js → chunk.VSX5LY2D.js} +1 -1
  53. package/cdn/chunks/{chunk.F5IUPQVT.js → chunk.WL6NNNG5.js} +1 -1
  54. package/cdn/chunks/{chunk.CPQBVK5K.js → chunk.WQZWYMH3.js} +1 -1
  55. package/cdn/chunks/{chunk.I7JUSAUC.js → chunk.WUXX2P2S.js} +1 -1
  56. package/cdn/chunks/{chunk.ZHVSNIJ2.js → chunk.XGVG7F7T.js} +1 -1
  57. package/cdn/chunks/{chunk.RFPANR7F.js → chunk.XHYIXZF4.js} +1 -1
  58. package/cdn/chunks/{chunk.PN4FJAN5.js → chunk.XZ5JTM6K.js} +1 -1
  59. package/cdn/chunks/{chunk.A2EU2YJG.js → chunk.Y4ZS3BWH.js} +1 -1
  60. package/cdn/chunks/{chunk.B3PR5MVH.js → chunk.YUDSN6HJ.js} +1 -1
  61. package/cdn/chunks/{chunk.GBGRCCRP.js → chunk.Z2M7BQV5.js} +1 -1
  62. package/cdn/components/accordion/accordion.js +1 -1
  63. package/cdn/components/accordion-group/accordion-group.js +1 -1
  64. package/cdn/components/animation/animation.js +1 -1
  65. package/cdn/components/audio/audio.js +1 -1
  66. package/cdn/components/badge/badge.js +1 -1
  67. package/cdn/components/brandshape/brandshape.js +1 -1
  68. package/cdn/components/breadcrumb/breadcrumb.js +1 -1
  69. package/cdn/components/breadcrumb-item/breadcrumb-item.js +1 -1
  70. package/cdn/components/button/button.js +1 -1
  71. package/cdn/components/button-group/button-group.js +1 -1
  72. package/cdn/components/carousel/carousel.js +1 -1
  73. package/cdn/components/carousel-item/carousel-item.js +1 -1
  74. package/cdn/components/checkbox/checkbox.js +1 -1
  75. package/cdn/components/checkbox-group/checkbox-group.js +1 -1
  76. package/cdn/components/combobox/combobox.js +1 -1
  77. package/cdn/components/datepicker/datepicker.d.ts +1 -0
  78. package/cdn/components/datepicker/datepicker.js +1 -1
  79. package/cdn/components/dialog/dialog.js +1 -1
  80. package/cdn/components/divider/divider.js +1 -1
  81. package/cdn/components/drawer/drawer.js +1 -1
  82. package/cdn/components/dropdown/dropdown.js +1 -1
  83. package/cdn/components/expandable/expandable.js +1 -1
  84. package/cdn/components/file-selector/file-selector.js +1 -1
  85. package/cdn/components/flipcard/flipcard.js +1 -1
  86. package/cdn/components/header/header.js +1 -1
  87. package/cdn/components/icon/icon.js +1 -1
  88. package/cdn/components/include/include.js +1 -1
  89. package/cdn/components/input/input.js +1 -1
  90. package/cdn/components/link/link.js +1 -1
  91. package/cdn/components/loader/loader.js +1 -1
  92. package/cdn/components/map-marker/map-marker.js +1 -1
  93. package/cdn/components/menu/menu.js +1 -1
  94. package/cdn/components/menu-item/menu-item.js +1 -1
  95. package/cdn/components/navigation-item/navigation-item.js +1 -1
  96. package/cdn/components/notification/notification.js +1 -1
  97. package/cdn/components/optgroup/optgroup.js +1 -1
  98. package/cdn/components/option/option.js +1 -1
  99. package/cdn/components/popup/popup.js +1 -1
  100. package/cdn/components/progress-bar/progress-bar.js +1 -1
  101. package/cdn/components/quickfact/quickfact.js +1 -1
  102. package/cdn/components/radio/radio.js +1 -1
  103. package/cdn/components/radio-button/radio-button.js +1 -1
  104. package/cdn/components/radio-group/radio-group.js +1 -1
  105. package/cdn/components/range/range.js +1 -1
  106. package/cdn/components/range-tick/range-tick.js +1 -1
  107. package/cdn/components/scrollable/scrollable.js +1 -1
  108. package/cdn/components/select/select.js +1 -1
  109. package/cdn/components/skeleton/skeleton.js +1 -1
  110. package/cdn/components/step/step.js +1 -1
  111. package/cdn/components/step-group/step-group.js +1 -1
  112. package/cdn/components/switch/switch.js +1 -1
  113. package/cdn/components/tab/tab.js +1 -1
  114. package/cdn/components/tab-group/tab-group.js +1 -1
  115. package/cdn/components/tab-panel/tab-panel.js +1 -1
  116. package/cdn/components/tag/tag.js +1 -1
  117. package/cdn/components/teaser/teaser.js +1 -1
  118. package/cdn/components/teaser-media/teaser-media.js +1 -1
  119. package/cdn/components/textarea/textarea.js +1 -1
  120. package/cdn/components/theme-listener/theme-listener.js +1 -1
  121. package/cdn/components/tooltip/tooltip.js +1 -1
  122. package/cdn/components/video/video.js +1 -1
  123. package/cdn/custom-elements.json +461 -461
  124. package/cdn/solid-components.bundle.js +78 -78
  125. package/cdn/solid-components.iife.js +76 -76
  126. package/cdn/solid-components.js +1 -1
  127. package/cdn/utilities/autocomplete-config.js +1 -1
  128. package/cdn/vscode.html-custom-data.json +52 -52
  129. package/cdn/web-types.json +109 -109
  130. package/cdn-versioned/chunks/{chunk.KSZUHYF7.js → chunk.2C3UQTSS.js} +2 -2
  131. package/cdn-versioned/chunks/{chunk.O7SKSXCU.js → chunk.2O3FM7UB.js} +2 -2
  132. package/cdn-versioned/chunks/{chunk.MU62OKKN.js → chunk.35XPUMS2.js} +2 -2
  133. package/cdn-versioned/chunks/{chunk.GMK4GUJU.js → chunk.3IZUMERL.js} +2 -2
  134. package/cdn-versioned/chunks/{chunk.O2KXD6V3.js → chunk.3RIAU3TH.js} +3 -3
  135. package/cdn-versioned/chunks/{chunk.MGUGARHV.js → chunk.4GA43M6X.js} +2 -2
  136. package/cdn-versioned/chunks/{chunk.3ZO6YY7I.js → chunk.4QTJXGRR.js} +2 -2
  137. package/cdn-versioned/chunks/{chunk.2ITHO4DN.js → chunk.5SQTIWWY.js} +2 -2
  138. package/cdn-versioned/chunks/{chunk.I6YCX5RP.js → chunk.ADVB3FPU.js} +2 -2
  139. package/cdn-versioned/chunks/{chunk.Z6PXRBBW.js → chunk.AJGTKHU5.js} +2 -2
  140. package/cdn-versioned/chunks/{chunk.GIARN4UP.js → chunk.C37LGAL3.js} +2 -2
  141. package/cdn-versioned/chunks/{chunk.FFI6YSXU.js → chunk.CGMKBGJU.js} +2 -2
  142. package/cdn-versioned/chunks/{chunk.AZUI44B5.js → chunk.CQNFI34K.js} +2 -2
  143. package/cdn-versioned/chunks/{chunk.ZNLOJFYY.js → chunk.DCAJAXUP.js} +2 -2
  144. package/cdn-versioned/chunks/{chunk.NWNTRKHL.js → chunk.DS2MKMMN.js} +3 -3
  145. package/cdn-versioned/chunks/chunk.DSKB3SEU.js +1 -1
  146. package/cdn-versioned/chunks/{chunk.6O5DTJMU.js → chunk.GA3PWYR4.js} +2 -2
  147. package/cdn-versioned/chunks/{chunk.7RGHHNKJ.js → chunk.HNBY226D.js} +2 -2
  148. package/cdn-versioned/chunks/chunk.HWX5X5EX.js +2 -0
  149. package/cdn-versioned/chunks/{chunk.Q64TZBRZ.js → chunk.HY624TPC.js} +2 -2
  150. package/cdn-versioned/chunks/{chunk.GG7UP3MH.js → chunk.I7OVY27Y.js} +10 -10
  151. package/cdn-versioned/chunks/{chunk.2LXNC6H3.js → chunk.IFLRUJCI.js} +2 -2
  152. package/cdn-versioned/chunks/{chunk.OL5UARRQ.js → chunk.IQBZ7GRB.js} +2 -2
  153. package/cdn-versioned/chunks/chunk.J45556RK.js +26 -0
  154. package/cdn-versioned/chunks/{chunk.AI7EFEUE.js → chunk.JMX6KLDZ.js} +2 -2
  155. package/cdn-versioned/chunks/{chunk.F4VKYXZU.js → chunk.KE2YEQDL.js} +2 -2
  156. package/cdn-versioned/chunks/chunk.LZRL7OLU.js +1 -1
  157. package/cdn-versioned/chunks/chunk.MR54F6CV.js +2 -2
  158. package/cdn-versioned/chunks/{chunk.3W72NBFO.js → chunk.MYPRMCUO.js} +2 -2
  159. package/cdn-versioned/chunks/{chunk.MDIQLQU6.js → chunk.N4L76IWF.js} +2 -2
  160. package/cdn-versioned/chunks/{chunk.3AGXZWRW.js → chunk.NGU7NO3O.js} +5 -5
  161. package/cdn-versioned/chunks/{chunk.2AR7OD3J.js → chunk.NJKSWXOS.js} +2 -2
  162. package/cdn-versioned/chunks/{chunk.YOEY6E2E.js → chunk.NOP4DTP2.js} +2 -2
  163. package/cdn-versioned/chunks/{chunk.ZDXDR6L6.js → chunk.OOIX4OAP.js} +2 -2
  164. package/cdn-versioned/chunks/{chunk.3ESWKAZS.js → chunk.P7GMFHO5.js} +2 -2
  165. package/cdn-versioned/chunks/{chunk.WZLYCJJA.js → chunk.PCXVXYU2.js} +2 -2
  166. package/cdn-versioned/chunks/{chunk.FAGCRWAX.js → chunk.PFPUD5HR.js} +2 -2
  167. package/cdn-versioned/chunks/{chunk.B4R4H2RH.js → chunk.PKCNX4R2.js} +2 -2
  168. package/cdn-versioned/chunks/{chunk.QFWT54X4.js → chunk.PQW77KHE.js} +2 -2
  169. package/cdn-versioned/chunks/{chunk.REMEEDIQ.js → chunk.PURR56D5.js} +2 -2
  170. package/cdn-versioned/chunks/{chunk.VWI56VMW.js → chunk.Q3DFVGEW.js} +5 -5
  171. package/cdn-versioned/chunks/{chunk.T35R3Z5M.js → chunk.Q63S2Z2M.js} +2 -2
  172. package/cdn-versioned/chunks/{chunk.RWLAIGRI.js → chunk.QK3WCIP5.js} +2 -2
  173. package/cdn-versioned/chunks/{chunk.QDREJDJ2.js → chunk.RHC6WZ6V.js} +2 -2
  174. package/cdn-versioned/chunks/{chunk.GH4YN7AR.js → chunk.RRJCCIDH.js} +2 -2
  175. package/cdn-versioned/chunks/{chunk.LQ2TVIG5.js → chunk.SPL6VR5S.js} +2 -2
  176. package/cdn-versioned/chunks/{chunk.GUY5KRI5.js → chunk.SSE7T5OF.js} +2 -2
  177. package/cdn-versioned/chunks/{chunk.VWYQ4GYH.js → chunk.SZNU4NHI.js} +2 -2
  178. package/cdn-versioned/chunks/{chunk.MADHUCSI.js → chunk.T7I5MFNS.js} +3 -3
  179. package/cdn-versioned/chunks/{chunk.UTB3OKJT.js → chunk.TIMZJKMF.js} +2 -2
  180. package/cdn-versioned/chunks/{chunk.ADMPVU62.js → chunk.TX5WPWH2.js} +2 -2
  181. package/cdn-versioned/chunks/{chunk.GA5I2MP7.js → chunk.UI3ZVKSU.js} +2 -2
  182. package/cdn-versioned/chunks/{chunk.5KXVHZV5.js → chunk.V6IM4GAA.js} +2 -2
  183. package/cdn-versioned/chunks/{chunk.RLALDY5L.js → chunk.VPBXFCBA.js} +2 -2
  184. package/cdn-versioned/chunks/{chunk.AOGCHS73.js → chunk.VSX5LY2D.js} +2 -2
  185. package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
  186. package/cdn-versioned/chunks/{chunk.F5IUPQVT.js → chunk.WL6NNNG5.js} +2 -2
  187. package/cdn-versioned/chunks/{chunk.CPQBVK5K.js → chunk.WQZWYMH3.js} +2 -2
  188. package/cdn-versioned/chunks/{chunk.I7JUSAUC.js → chunk.WUXX2P2S.js} +2 -2
  189. package/cdn-versioned/chunks/{chunk.ZHVSNIJ2.js → chunk.XGVG7F7T.js} +2 -2
  190. package/cdn-versioned/chunks/{chunk.RFPANR7F.js → chunk.XHYIXZF4.js} +2 -2
  191. package/cdn-versioned/chunks/{chunk.PN4FJAN5.js → chunk.XZ5JTM6K.js} +2 -2
  192. package/cdn-versioned/chunks/{chunk.A2EU2YJG.js → chunk.Y4ZS3BWH.js} +2 -2
  193. package/cdn-versioned/chunks/{chunk.B3PR5MVH.js → chunk.YUDSN6HJ.js} +3 -3
  194. package/cdn-versioned/chunks/{chunk.GBGRCCRP.js → chunk.Z2M7BQV5.js} +2 -2
  195. package/cdn-versioned/components/accordion/accordion.d.ts +1 -1
  196. package/cdn-versioned/components/accordion/accordion.js +1 -1
  197. package/cdn-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  198. package/cdn-versioned/components/accordion-group/accordion-group.js +1 -1
  199. package/cdn-versioned/components/animation/animation.d.ts +1 -1
  200. package/cdn-versioned/components/animation/animation.js +1 -1
  201. package/cdn-versioned/components/audio/audio.d.ts +1 -1
  202. package/cdn-versioned/components/audio/audio.js +1 -1
  203. package/cdn-versioned/components/badge/badge.d.ts +1 -1
  204. package/cdn-versioned/components/badge/badge.js +1 -1
  205. package/cdn-versioned/components/brandshape/brandshape.d.ts +1 -1
  206. package/cdn-versioned/components/brandshape/brandshape.js +1 -1
  207. package/cdn-versioned/components/breadcrumb/breadcrumb.d.ts +1 -1
  208. package/cdn-versioned/components/breadcrumb/breadcrumb.js +1 -1
  209. package/cdn-versioned/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
  210. package/cdn-versioned/components/breadcrumb-item/breadcrumb-item.js +1 -1
  211. package/cdn-versioned/components/button/button.d.ts +1 -1
  212. package/cdn-versioned/components/button/button.js +1 -1
  213. package/cdn-versioned/components/button-group/button-group.d.ts +1 -1
  214. package/cdn-versioned/components/button-group/button-group.js +1 -1
  215. package/cdn-versioned/components/carousel/carousel.d.ts +1 -1
  216. package/cdn-versioned/components/carousel/carousel.js +1 -1
  217. package/cdn-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  218. package/cdn-versioned/components/carousel-item/carousel-item.js +1 -1
  219. package/cdn-versioned/components/checkbox/checkbox.d.ts +1 -1
  220. package/cdn-versioned/components/checkbox/checkbox.js +1 -1
  221. package/cdn-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
  222. package/cdn-versioned/components/checkbox-group/checkbox-group.js +1 -1
  223. package/cdn-versioned/components/combobox/combobox.d.ts +1 -1
  224. package/cdn-versioned/components/combobox/combobox.js +1 -1
  225. package/cdn-versioned/components/datepicker/datepicker.d.ts +2 -1
  226. package/cdn-versioned/components/datepicker/datepicker.js +1 -1
  227. package/cdn-versioned/components/dialog/dialog.d.ts +1 -1
  228. package/cdn-versioned/components/dialog/dialog.js +1 -1
  229. package/cdn-versioned/components/divider/divider.d.ts +1 -1
  230. package/cdn-versioned/components/divider/divider.js +1 -1
  231. package/cdn-versioned/components/drawer/drawer.d.ts +1 -1
  232. package/cdn-versioned/components/drawer/drawer.js +1 -1
  233. package/cdn-versioned/components/dropdown/dropdown.d.ts +1 -1
  234. package/cdn-versioned/components/dropdown/dropdown.js +1 -1
  235. package/cdn-versioned/components/expandable/expandable.d.ts +1 -1
  236. package/cdn-versioned/components/expandable/expandable.js +1 -1
  237. package/cdn-versioned/components/file-selector/file-selector.d.ts +1 -1
  238. package/cdn-versioned/components/file-selector/file-selector.js +1 -1
  239. package/cdn-versioned/components/flipcard/flipcard.d.ts +1 -1
  240. package/cdn-versioned/components/flipcard/flipcard.js +1 -1
  241. package/cdn-versioned/components/header/header.d.ts +1 -1
  242. package/cdn-versioned/components/header/header.js +1 -1
  243. package/cdn-versioned/components/icon/icon.d.ts +1 -1
  244. package/cdn-versioned/components/icon/icon.js +1 -1
  245. package/cdn-versioned/components/include/include.d.ts +1 -1
  246. package/cdn-versioned/components/include/include.js +1 -1
  247. package/cdn-versioned/components/input/input.d.ts +1 -1
  248. package/cdn-versioned/components/input/input.js +1 -1
  249. package/cdn-versioned/components/link/link.d.ts +1 -1
  250. package/cdn-versioned/components/link/link.js +1 -1
  251. package/cdn-versioned/components/loader/loader.d.ts +1 -1
  252. package/cdn-versioned/components/loader/loader.js +1 -1
  253. package/cdn-versioned/components/map-marker/map-marker.d.ts +1 -1
  254. package/cdn-versioned/components/map-marker/map-marker.js +1 -1
  255. package/cdn-versioned/components/menu/menu.d.ts +1 -1
  256. package/cdn-versioned/components/menu/menu.js +1 -1
  257. package/cdn-versioned/components/menu-item/menu-item.d.ts +1 -1
  258. package/cdn-versioned/components/menu-item/menu-item.js +1 -1
  259. package/cdn-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  260. package/cdn-versioned/components/navigation-item/navigation-item.js +1 -1
  261. package/cdn-versioned/components/notification/notification.d.ts +1 -1
  262. package/cdn-versioned/components/notification/notification.js +1 -1
  263. package/cdn-versioned/components/optgroup/optgroup.d.ts +1 -1
  264. package/cdn-versioned/components/optgroup/optgroup.js +1 -1
  265. package/cdn-versioned/components/option/option.d.ts +1 -1
  266. package/cdn-versioned/components/option/option.js +1 -1
  267. package/cdn-versioned/components/popup/popup.d.ts +1 -1
  268. package/cdn-versioned/components/popup/popup.js +1 -1
  269. package/cdn-versioned/components/progress-bar/progress-bar.d.ts +1 -1
  270. package/cdn-versioned/components/progress-bar/progress-bar.js +1 -1
  271. package/cdn-versioned/components/quickfact/quickfact.d.ts +1 -1
  272. package/cdn-versioned/components/quickfact/quickfact.js +1 -1
  273. package/cdn-versioned/components/radio/radio.d.ts +1 -1
  274. package/cdn-versioned/components/radio/radio.js +1 -1
  275. package/cdn-versioned/components/radio-button/radio-button.d.ts +1 -1
  276. package/cdn-versioned/components/radio-button/radio-button.js +1 -1
  277. package/cdn-versioned/components/radio-group/radio-group.d.ts +1 -1
  278. package/cdn-versioned/components/radio-group/radio-group.js +1 -1
  279. package/cdn-versioned/components/range/range.d.ts +1 -1
  280. package/cdn-versioned/components/range/range.js +1 -1
  281. package/cdn-versioned/components/range-tick/range-tick.d.ts +1 -1
  282. package/cdn-versioned/components/range-tick/range-tick.js +1 -1
  283. package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
  284. package/cdn-versioned/components/scrollable/scrollable.js +1 -1
  285. package/cdn-versioned/components/select/select.d.ts +1 -1
  286. package/cdn-versioned/components/select/select.js +1 -1
  287. package/cdn-versioned/components/skeleton/skeleton.d.ts +1 -1
  288. package/cdn-versioned/components/skeleton/skeleton.js +1 -1
  289. package/cdn-versioned/components/step/step.d.ts +1 -1
  290. package/cdn-versioned/components/step/step.js +1 -1
  291. package/cdn-versioned/components/step-group/step-group.d.ts +1 -1
  292. package/cdn-versioned/components/step-group/step-group.js +1 -1
  293. package/cdn-versioned/components/switch/switch.d.ts +1 -1
  294. package/cdn-versioned/components/switch/switch.js +1 -1
  295. package/cdn-versioned/components/tab/tab.d.ts +1 -1
  296. package/cdn-versioned/components/tab/tab.js +1 -1
  297. package/cdn-versioned/components/tab-group/tab-group.d.ts +1 -1
  298. package/cdn-versioned/components/tab-group/tab-group.js +1 -1
  299. package/cdn-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  300. package/cdn-versioned/components/tab-panel/tab-panel.js +1 -1
  301. package/cdn-versioned/components/tag/tag.d.ts +1 -1
  302. package/cdn-versioned/components/tag/tag.js +1 -1
  303. package/cdn-versioned/components/teaser/teaser.js +1 -1
  304. package/cdn-versioned/components/teaser-media/teaser-media.js +1 -1
  305. package/cdn-versioned/components/textarea/textarea.d.ts +1 -1
  306. package/cdn-versioned/components/textarea/textarea.js +1 -1
  307. package/cdn-versioned/components/theme-listener/theme-listener.d.ts +1 -1
  308. package/cdn-versioned/components/theme-listener/theme-listener.js +1 -1
  309. package/cdn-versioned/components/tooltip/tooltip.d.ts +1 -1
  310. package/cdn-versioned/components/tooltip/tooltip.js +1 -1
  311. package/cdn-versioned/components/video/video.d.ts +1 -1
  312. package/cdn-versioned/components/video/video.js +1 -1
  313. package/cdn-versioned/custom-elements.json +721 -721
  314. package/cdn-versioned/internal/form.js +2 -2
  315. package/cdn-versioned/solid-components.bundle.js +87 -87
  316. package/cdn-versioned/solid-components.css +3 -3
  317. package/cdn-versioned/solid-components.iife.js +86 -86
  318. package/cdn-versioned/solid-components.js +1 -1
  319. package/cdn-versioned/utilities/autocomplete-config.js +1 -1
  320. package/cdn-versioned/vscode.html-custom-data.json +166 -166
  321. package/cdn-versioned/web-types.json +280 -280
  322. package/dist/chunks/{chunk.IJ7UIFUE.js → chunk.2EXNVXP2.js} +1 -1
  323. package/dist/chunks/{chunk.6VFD5NZR.js → chunk.2M6Y3YHU.js} +1 -1
  324. package/dist/chunks/{chunk.4PVMCUXL.js → chunk.2NXJZVSN.js} +1 -1
  325. package/dist/chunks/{chunk.SHN2I24K.js → chunk.2OT7JZJP.js} +1 -1
  326. package/dist/chunks/{chunk.3X6YKZV2.js → chunk.2Y2MTVGF.js} +1 -1
  327. package/dist/chunks/{chunk.TAXXEJSP.js → chunk.3PHACHZ2.js} +1 -1
  328. package/dist/chunks/{chunk.YLTS3DRQ.js → chunk.42XKKRQ2.js} +1 -1
  329. package/dist/chunks/{chunk.5M5REO5V.js → chunk.4FXMBMSY.js} +1 -1
  330. package/dist/chunks/{chunk.X43JSG7P.js → chunk.4JC6XNQW.js} +1 -1
  331. package/dist/chunks/{chunk.TDFNLRUN.js → chunk.5JPFIM5W.js} +1 -1
  332. package/dist/chunks/{chunk.N7R2AS4G.js → chunk.5TU4CAN7.js} +1 -1
  333. package/dist/chunks/{chunk.4Q7OBQ4W.js → chunk.65FELEDA.js} +1 -1
  334. package/dist/chunks/{chunk.7C3QYV5V.js → chunk.67LY7Y75.js} +1 -1
  335. package/dist/chunks/{chunk.53ALFWOE.js → chunk.6F52A4JB.js} +1 -1
  336. package/dist/chunks/{chunk.DXBLDNFC.js → chunk.72LCNWVE.js} +1 -1
  337. package/dist/chunks/{chunk.GWALMBNP.js → chunk.7DQB3MN6.js} +1 -1
  338. package/dist/chunks/{chunk.X76XYLWV.js → chunk.7EXDALNL.js} +1 -1
  339. package/dist/chunks/{chunk.DNE5ASH4.js → chunk.AHIYNPL4.js} +1 -1
  340. package/dist/chunks/{chunk.WJDMGITX.js → chunk.ALJ34SPY.js} +1 -1
  341. package/dist/chunks/{chunk.EVCPPJPM.js → chunk.B5BWUIZC.js} +1 -1
  342. package/dist/chunks/{chunk.QN22ZMGT.js → chunk.BW5BXFWA.js} +1 -1
  343. package/dist/chunks/chunk.C3L34J75.js +93 -0
  344. package/dist/chunks/{chunk.Z46FZJNF.js → chunk.C4HDZU75.js} +1 -1
  345. package/dist/chunks/{chunk.L4XU56GO.js → chunk.CB7PF3MZ.js} +1 -1
  346. package/dist/chunks/{chunk.VAEJX7NE.js → chunk.CXFXIMXV.js} +1 -1
  347. package/dist/chunks/{chunk.IBO3DT5Q.js → chunk.DF2LZ65H.js} +1 -1
  348. package/dist/chunks/{chunk.AOCDBQ25.js → chunk.DGLSKBZE.js} +2 -2
  349. package/dist/chunks/{chunk.O3M4QLOJ.js → chunk.DZED227Y.js} +1 -1
  350. package/dist/chunks/{chunk.D5AXUWNZ.js → chunk.EQIZ7J5Z.js} +1 -1
  351. package/dist/chunks/{chunk.DZ4M5DL7.js → chunk.ES5DW7MC.js} +1 -1
  352. package/dist/chunks/{chunk.N2GBPM7O.js → chunk.HCADZIES.js} +1 -1
  353. package/dist/chunks/{chunk.FX6SKOH4.js → chunk.HFRDUE6W.js} +1 -1
  354. package/dist/chunks/{chunk.PZ6BUUCP.js → chunk.I3DVEGNB.js} +1 -1
  355. package/dist/chunks/{chunk.HM34VU45.js → chunk.I46TZJHO.js} +2 -2
  356. package/dist/chunks/{chunk.BNZVXMHF.js → chunk.JKJXDDJU.js} +1 -1
  357. package/dist/chunks/{chunk.4HAEWSYV.js → chunk.JPGYEMXS.js} +1 -1
  358. package/dist/chunks/{chunk.OO2LH4SE.js → chunk.JXDY64LH.js} +1 -1
  359. package/dist/chunks/{chunk.AQILCWGG.js → chunk.KSU44YSO.js} +1 -1
  360. package/dist/chunks/{chunk.WW2GYTA2.js → chunk.KXUT6UJL.js} +1 -1
  361. package/dist/chunks/{chunk.KRKT2A2K.js → chunk.LCQBGEHF.js} +72 -22
  362. package/dist/chunks/{chunk.N7K5KXEP.js → chunk.MPHRXV2B.js} +1 -1
  363. package/dist/chunks/{chunk.G2QMQ3TC.js → chunk.N5RQE7OC.js} +1 -1
  364. package/dist/chunks/{chunk.4XVYXK3Y.js → chunk.PAXRRXRW.js} +1 -1
  365. package/dist/chunks/{chunk.JQ3EFQAS.js → chunk.PGECK7YI.js} +1 -1
  366. package/dist/chunks/{chunk.ZSRPJGFN.js → chunk.QGCJ4WUV.js} +1 -1
  367. package/dist/chunks/{chunk.V52RU2QQ.js → chunk.QIYLIH7P.js} +1 -1
  368. package/dist/chunks/{chunk.Z6VBJGLD.js → chunk.QNHUD2SQ.js} +1 -1
  369. package/dist/chunks/{chunk.XFFYITQX.js → chunk.S2ZVBJYN.js} +1 -1
  370. package/dist/chunks/{chunk.QPJTXP3H.js → chunk.SEWHXNAY.js} +1 -1
  371. package/dist/chunks/{chunk.7XGGN33M.js → chunk.SG7H3CVK.js} +2 -2
  372. package/dist/chunks/{chunk.WCQW4CQT.js → chunk.SMRP2JEM.js} +1 -1
  373. package/dist/chunks/{chunk.UP7LZTGK.js → chunk.TFAIMBF7.js} +1 -1
  374. package/dist/chunks/{chunk.3J7VZBTS.js → chunk.TLAI6IVF.js} +1 -1
  375. package/dist/chunks/{chunk.JPKYXMRK.js → chunk.UORTR6WB.js} +1 -1
  376. package/dist/chunks/{chunk.QAKJW5ON.js → chunk.VX7JXCCH.js} +1 -1
  377. package/dist/chunks/{chunk.AEUPKYPF.js → chunk.XAU2YS2A.js} +1 -1
  378. package/dist/chunks/{chunk.YUF5NVHJ.js → chunk.XQMBT64Z.js} +1 -1
  379. package/dist/chunks/{chunk.PPCXX2VU.js → chunk.YJ46MX3X.js} +1 -1
  380. package/dist/chunks/{chunk.BEIIUIHO.js → chunk.YRKHHYV5.js} +1 -1
  381. package/dist/chunks/{chunk.WEFWQVW5.js → chunk.ZLPWCNY6.js} +1 -1
  382. package/dist/chunks/{chunk.WR3OMWJ5.js → chunk.ZQ6CXL6H.js} +1 -1
  383. package/dist/components/accordion/accordion.js +3 -3
  384. package/dist/components/accordion-group/accordion-group.js +4 -4
  385. package/dist/components/animation/animation.js +2 -2
  386. package/dist/components/audio/audio.js +7 -7
  387. package/dist/components/badge/badge.js +2 -2
  388. package/dist/components/brandshape/brandshape.js +2 -2
  389. package/dist/components/breadcrumb/breadcrumb.js +5 -5
  390. package/dist/components/breadcrumb-item/breadcrumb-item.js +3 -3
  391. package/dist/components/button/button.js +4 -4
  392. package/dist/components/button-group/button-group.js +2 -2
  393. package/dist/components/carousel/carousel.js +4 -4
  394. package/dist/components/carousel-item/carousel-item.js +2 -2
  395. package/dist/components/checkbox/checkbox.js +3 -3
  396. package/dist/components/checkbox-group/checkbox-group.js +3 -3
  397. package/dist/components/combobox/combobox.js +5 -5
  398. package/dist/components/datepicker/datepicker.d.ts +1 -0
  399. package/dist/components/datepicker/datepicker.js +5 -5
  400. package/dist/components/dialog/dialog.js +6 -6
  401. package/dist/components/divider/divider.js +2 -2
  402. package/dist/components/drawer/drawer.js +6 -6
  403. package/dist/components/dropdown/dropdown.js +3 -3
  404. package/dist/components/expandable/expandable.js +3 -3
  405. package/dist/components/file-selector/file-selector.js +6 -6
  406. package/dist/components/flipcard/flipcard.js +6 -6
  407. package/dist/components/header/header.js +2 -2
  408. package/dist/components/icon/icon.js +2 -2
  409. package/dist/components/include/include.js +2 -2
  410. package/dist/components/input/input.js +3 -3
  411. package/dist/components/link/link.js +2 -2
  412. package/dist/components/loader/loader.js +2 -2
  413. package/dist/components/map-marker/map-marker.js +2 -2
  414. package/dist/components/menu/menu.js +2 -2
  415. package/dist/components/menu-item/menu-item.js +2 -2
  416. package/dist/components/navigation-item/navigation-item.js +4 -4
  417. package/dist/components/notification/notification.js +6 -6
  418. package/dist/components/optgroup/optgroup.js +3 -3
  419. package/dist/components/option/option.js +3 -3
  420. package/dist/components/popup/popup.js +2 -2
  421. package/dist/components/progress-bar/progress-bar.js +2 -2
  422. package/dist/components/quickfact/quickfact.js +4 -4
  423. package/dist/components/radio/radio.js +2 -2
  424. package/dist/components/radio-button/radio-button.js +2 -2
  425. package/dist/components/radio-group/radio-group.js +4 -4
  426. package/dist/components/range/range.js +5 -5
  427. package/dist/components/range-tick/range-tick.js +2 -2
  428. package/dist/components/scrollable/scrollable.js +3 -3
  429. package/dist/components/select/select.js +5 -5
  430. package/dist/components/skeleton/skeleton.js +2 -2
  431. package/dist/components/step/step.js +3 -3
  432. package/dist/components/step-group/step-group.js +2 -2
  433. package/dist/components/switch/switch.js +2 -2
  434. package/dist/components/tab/tab.js +2 -2
  435. package/dist/components/tab-group/tab-group.js +3 -3
  436. package/dist/components/tab-panel/tab-panel.js +2 -2
  437. package/dist/components/tag/tag.js +3 -3
  438. package/dist/components/teaser/teaser.js +2 -2
  439. package/dist/components/teaser-media/teaser-media.js +2 -2
  440. package/dist/components/textarea/textarea.js +3 -3
  441. package/dist/components/theme-listener/theme-listener.js +2 -2
  442. package/dist/components/tooltip/tooltip.js +4 -4
  443. package/dist/components/video/video.js +3 -3
  444. package/dist/custom-elements.json +1 -1
  445. package/dist/solid-components.js +61 -61
  446. package/dist/utilities/autocomplete-config.js +2 -2
  447. package/dist/web-types.json +1 -1
  448. package/dist-versioned/chunks/{chunk.IJ7UIFUE.js → chunk.2EXNVXP2.js} +3 -3
  449. package/dist-versioned/chunks/{chunk.6VFD5NZR.js → chunk.2M6Y3YHU.js} +5 -5
  450. package/dist-versioned/chunks/{chunk.4PVMCUXL.js → chunk.2NXJZVSN.js} +12 -12
  451. package/dist-versioned/chunks/{chunk.SHN2I24K.js → chunk.2OT7JZJP.js} +11 -11
  452. package/dist-versioned/chunks/{chunk.3X6YKZV2.js → chunk.2Y2MTVGF.js} +4 -4
  453. package/dist-versioned/chunks/{chunk.TAXXEJSP.js → chunk.3PHACHZ2.js} +8 -8
  454. package/dist-versioned/chunks/{chunk.YLTS3DRQ.js → chunk.42XKKRQ2.js} +7 -7
  455. package/dist-versioned/chunks/{chunk.5M5REO5V.js → chunk.4FXMBMSY.js} +4 -4
  456. package/dist-versioned/chunks/{chunk.X43JSG7P.js → chunk.4JC6XNQW.js} +5 -5
  457. package/dist-versioned/chunks/chunk.4VWOZ477.js +4 -4
  458. package/dist-versioned/chunks/{chunk.TDFNLRUN.js → chunk.5JPFIM5W.js} +4 -4
  459. package/dist-versioned/chunks/{chunk.N7R2AS4G.js → chunk.5TU4CAN7.js} +7 -7
  460. package/dist-versioned/chunks/{chunk.4Q7OBQ4W.js → chunk.65FELEDA.js} +4 -4
  461. package/dist-versioned/chunks/{chunk.7C3QYV5V.js → chunk.67LY7Y75.js} +5 -5
  462. package/dist-versioned/chunks/{chunk.53ALFWOE.js → chunk.6F52A4JB.js} +4 -4
  463. package/dist-versioned/chunks/{chunk.DXBLDNFC.js → chunk.72LCNWVE.js} +4 -4
  464. package/dist-versioned/chunks/{chunk.GWALMBNP.js → chunk.7DQB3MN6.js} +8 -8
  465. package/dist-versioned/chunks/{chunk.X76XYLWV.js → chunk.7EXDALNL.js} +6 -6
  466. package/dist-versioned/chunks/{chunk.DNE5ASH4.js → chunk.AHIYNPL4.js} +2 -2
  467. package/dist-versioned/chunks/{chunk.WJDMGITX.js → chunk.ALJ34SPY.js} +5 -5
  468. package/dist-versioned/chunks/{chunk.EVCPPJPM.js → chunk.B5BWUIZC.js} +3 -3
  469. package/dist-versioned/chunks/{chunk.QN22ZMGT.js → chunk.BW5BXFWA.js} +6 -6
  470. package/dist-versioned/chunks/chunk.C3L34J75.js +93 -0
  471. package/dist-versioned/chunks/chunk.C3WIBDGG.js +2 -2
  472. package/dist-versioned/chunks/{chunk.Z46FZJNF.js → chunk.C4HDZU75.js} +3 -3
  473. package/dist-versioned/chunks/{chunk.L4XU56GO.js → chunk.CB7PF3MZ.js} +7 -7
  474. package/dist-versioned/chunks/{chunk.VAEJX7NE.js → chunk.CXFXIMXV.js} +14 -14
  475. package/dist-versioned/chunks/{chunk.IBO3DT5Q.js → chunk.DF2LZ65H.js} +3 -3
  476. package/dist-versioned/chunks/{chunk.AOCDBQ25.js → chunk.DGLSKBZE.js} +5 -5
  477. package/dist-versioned/chunks/{chunk.O3M4QLOJ.js → chunk.DZED227Y.js} +2 -2
  478. package/dist-versioned/chunks/{chunk.D5AXUWNZ.js → chunk.EQIZ7J5Z.js} +26 -26
  479. package/dist-versioned/chunks/{chunk.DZ4M5DL7.js → chunk.ES5DW7MC.js} +3 -3
  480. package/dist-versioned/chunks/{chunk.N2GBPM7O.js → chunk.HCADZIES.js} +24 -24
  481. package/dist-versioned/chunks/{chunk.FX6SKOH4.js → chunk.HFRDUE6W.js} +12 -12
  482. package/dist-versioned/chunks/{chunk.PZ6BUUCP.js → chunk.I3DVEGNB.js} +12 -12
  483. package/dist-versioned/chunks/{chunk.HM34VU45.js → chunk.I46TZJHO.js} +12 -12
  484. package/dist-versioned/chunks/{chunk.BNZVXMHF.js → chunk.JKJXDDJU.js} +4 -4
  485. package/dist-versioned/chunks/{chunk.4HAEWSYV.js → chunk.JPGYEMXS.js} +3 -3
  486. package/dist-versioned/chunks/{chunk.OO2LH4SE.js → chunk.JXDY64LH.js} +11 -11
  487. package/dist-versioned/chunks/chunk.KEJFWGZI.js +4 -4
  488. package/dist-versioned/chunks/{chunk.AQILCWGG.js → chunk.KSU44YSO.js} +8 -8
  489. package/dist-versioned/chunks/{chunk.WW2GYTA2.js → chunk.KXUT6UJL.js} +3 -3
  490. package/dist-versioned/chunks/{chunk.KRKT2A2K.js → chunk.LCQBGEHF.js} +77 -27
  491. package/dist-versioned/chunks/{chunk.N7K5KXEP.js → chunk.MPHRXV2B.js} +2 -2
  492. package/dist-versioned/chunks/{chunk.G2QMQ3TC.js → chunk.N5RQE7OC.js} +2 -2
  493. package/dist-versioned/chunks/{chunk.4XVYXK3Y.js → chunk.PAXRRXRW.js} +5 -5
  494. package/dist-versioned/chunks/{chunk.JQ3EFQAS.js → chunk.PGECK7YI.js} +2 -2
  495. package/dist-versioned/chunks/{chunk.ZSRPJGFN.js → chunk.QGCJ4WUV.js} +6 -6
  496. package/dist-versioned/chunks/{chunk.V52RU2QQ.js → chunk.QIYLIH7P.js} +6 -6
  497. package/dist-versioned/chunks/{chunk.Z6VBJGLD.js → chunk.QNHUD2SQ.js} +43 -43
  498. package/dist-versioned/chunks/{chunk.XFFYITQX.js → chunk.S2ZVBJYN.js} +6 -6
  499. package/dist-versioned/chunks/{chunk.QPJTXP3H.js → chunk.SEWHXNAY.js} +6 -6
  500. package/dist-versioned/chunks/{chunk.7XGGN33M.js → chunk.SG7H3CVK.js} +14 -14
  501. package/dist-versioned/chunks/{chunk.WCQW4CQT.js → chunk.SMRP2JEM.js} +2 -2
  502. package/dist-versioned/chunks/{chunk.UP7LZTGK.js → chunk.TFAIMBF7.js} +12 -12
  503. package/dist-versioned/chunks/{chunk.3J7VZBTS.js → chunk.TLAI6IVF.js} +3 -3
  504. package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
  505. package/dist-versioned/chunks/{chunk.JPKYXMRK.js → chunk.UORTR6WB.js} +6 -6
  506. package/dist-versioned/chunks/{chunk.QAKJW5ON.js → chunk.VX7JXCCH.js} +3 -3
  507. package/dist-versioned/chunks/{chunk.AEUPKYPF.js → chunk.XAU2YS2A.js} +6 -6
  508. package/dist-versioned/chunks/{chunk.YUF5NVHJ.js → chunk.XQMBT64Z.js} +9 -9
  509. package/dist-versioned/chunks/{chunk.PPCXX2VU.js → chunk.YJ46MX3X.js} +7 -7
  510. package/dist-versioned/chunks/{chunk.BEIIUIHO.js → chunk.YRKHHYV5.js} +3 -3
  511. package/dist-versioned/chunks/{chunk.WEFWQVW5.js → chunk.ZLPWCNY6.js} +15 -15
  512. package/dist-versioned/chunks/{chunk.WR3OMWJ5.js → chunk.ZQ6CXL6H.js} +6 -6
  513. package/dist-versioned/components/accordion/accordion.d.ts +1 -1
  514. package/dist-versioned/components/accordion/accordion.js +3 -3
  515. package/dist-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  516. package/dist-versioned/components/accordion-group/accordion-group.js +4 -4
  517. package/dist-versioned/components/animation/animation.d.ts +1 -1
  518. package/dist-versioned/components/animation/animation.js +2 -2
  519. package/dist-versioned/components/audio/audio.d.ts +1 -1
  520. package/dist-versioned/components/audio/audio.js +7 -7
  521. package/dist-versioned/components/badge/badge.d.ts +1 -1
  522. package/dist-versioned/components/badge/badge.js +2 -2
  523. package/dist-versioned/components/brandshape/brandshape.d.ts +1 -1
  524. package/dist-versioned/components/brandshape/brandshape.js +2 -2
  525. package/dist-versioned/components/breadcrumb/breadcrumb.d.ts +1 -1
  526. package/dist-versioned/components/breadcrumb/breadcrumb.js +5 -5
  527. package/dist-versioned/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
  528. package/dist-versioned/components/breadcrumb-item/breadcrumb-item.js +3 -3
  529. package/dist-versioned/components/button/button.d.ts +1 -1
  530. package/dist-versioned/components/button/button.js +4 -4
  531. package/dist-versioned/components/button-group/button-group.d.ts +1 -1
  532. package/dist-versioned/components/button-group/button-group.js +2 -2
  533. package/dist-versioned/components/carousel/carousel.d.ts +1 -1
  534. package/dist-versioned/components/carousel/carousel.js +4 -4
  535. package/dist-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  536. package/dist-versioned/components/carousel-item/carousel-item.js +2 -2
  537. package/dist-versioned/components/checkbox/checkbox.d.ts +1 -1
  538. package/dist-versioned/components/checkbox/checkbox.js +3 -3
  539. package/dist-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
  540. package/dist-versioned/components/checkbox-group/checkbox-group.js +3 -3
  541. package/dist-versioned/components/combobox/combobox.d.ts +1 -1
  542. package/dist-versioned/components/combobox/combobox.js +5 -5
  543. package/dist-versioned/components/datepicker/datepicker.d.ts +2 -1
  544. package/dist-versioned/components/datepicker/datepicker.js +5 -5
  545. package/dist-versioned/components/dialog/dialog.d.ts +1 -1
  546. package/dist-versioned/components/dialog/dialog.js +6 -6
  547. package/dist-versioned/components/divider/divider.d.ts +1 -1
  548. package/dist-versioned/components/divider/divider.js +2 -2
  549. package/dist-versioned/components/drawer/drawer.d.ts +1 -1
  550. package/dist-versioned/components/drawer/drawer.js +6 -6
  551. package/dist-versioned/components/dropdown/dropdown.d.ts +1 -1
  552. package/dist-versioned/components/dropdown/dropdown.js +3 -3
  553. package/dist-versioned/components/expandable/expandable.d.ts +1 -1
  554. package/dist-versioned/components/expandable/expandable.js +3 -3
  555. package/dist-versioned/components/file-selector/file-selector.d.ts +1 -1
  556. package/dist-versioned/components/file-selector/file-selector.js +6 -6
  557. package/dist-versioned/components/flipcard/flipcard.d.ts +1 -1
  558. package/dist-versioned/components/flipcard/flipcard.js +6 -6
  559. package/dist-versioned/components/header/header.d.ts +1 -1
  560. package/dist-versioned/components/header/header.js +2 -2
  561. package/dist-versioned/components/icon/icon.d.ts +1 -1
  562. package/dist-versioned/components/icon/icon.js +2 -2
  563. package/dist-versioned/components/include/include.d.ts +1 -1
  564. package/dist-versioned/components/include/include.js +2 -2
  565. package/dist-versioned/components/input/input.d.ts +1 -1
  566. package/dist-versioned/components/input/input.js +3 -3
  567. package/dist-versioned/components/link/link.d.ts +1 -1
  568. package/dist-versioned/components/link/link.js +2 -2
  569. package/dist-versioned/components/loader/loader.d.ts +1 -1
  570. package/dist-versioned/components/loader/loader.js +2 -2
  571. package/dist-versioned/components/map-marker/map-marker.d.ts +1 -1
  572. package/dist-versioned/components/map-marker/map-marker.js +2 -2
  573. package/dist-versioned/components/menu/menu.d.ts +1 -1
  574. package/dist-versioned/components/menu/menu.js +2 -2
  575. package/dist-versioned/components/menu-item/menu-item.d.ts +1 -1
  576. package/dist-versioned/components/menu-item/menu-item.js +2 -2
  577. package/dist-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  578. package/dist-versioned/components/navigation-item/navigation-item.js +4 -4
  579. package/dist-versioned/components/notification/notification.d.ts +1 -1
  580. package/dist-versioned/components/notification/notification.js +6 -6
  581. package/dist-versioned/components/optgroup/optgroup.d.ts +1 -1
  582. package/dist-versioned/components/optgroup/optgroup.js +3 -3
  583. package/dist-versioned/components/option/option.d.ts +1 -1
  584. package/dist-versioned/components/option/option.js +3 -3
  585. package/dist-versioned/components/popup/popup.d.ts +1 -1
  586. package/dist-versioned/components/popup/popup.js +2 -2
  587. package/dist-versioned/components/progress-bar/progress-bar.d.ts +1 -1
  588. package/dist-versioned/components/progress-bar/progress-bar.js +2 -2
  589. package/dist-versioned/components/quickfact/quickfact.d.ts +1 -1
  590. package/dist-versioned/components/quickfact/quickfact.js +4 -4
  591. package/dist-versioned/components/radio/radio.d.ts +1 -1
  592. package/dist-versioned/components/radio/radio.js +2 -2
  593. package/dist-versioned/components/radio-button/radio-button.d.ts +1 -1
  594. package/dist-versioned/components/radio-button/radio-button.js +2 -2
  595. package/dist-versioned/components/radio-group/radio-group.d.ts +1 -1
  596. package/dist-versioned/components/radio-group/radio-group.js +4 -4
  597. package/dist-versioned/components/range/range.d.ts +1 -1
  598. package/dist-versioned/components/range/range.js +5 -5
  599. package/dist-versioned/components/range-tick/range-tick.d.ts +1 -1
  600. package/dist-versioned/components/range-tick/range-tick.js +2 -2
  601. package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
  602. package/dist-versioned/components/scrollable/scrollable.js +3 -3
  603. package/dist-versioned/components/select/select.d.ts +1 -1
  604. package/dist-versioned/components/select/select.js +5 -5
  605. package/dist-versioned/components/skeleton/skeleton.d.ts +1 -1
  606. package/dist-versioned/components/skeleton/skeleton.js +2 -2
  607. package/dist-versioned/components/step/step.d.ts +1 -1
  608. package/dist-versioned/components/step/step.js +3 -3
  609. package/dist-versioned/components/step-group/step-group.d.ts +1 -1
  610. package/dist-versioned/components/step-group/step-group.js +2 -2
  611. package/dist-versioned/components/switch/switch.d.ts +1 -1
  612. package/dist-versioned/components/switch/switch.js +2 -2
  613. package/dist-versioned/components/tab/tab.d.ts +1 -1
  614. package/dist-versioned/components/tab/tab.js +2 -2
  615. package/dist-versioned/components/tab-group/tab-group.d.ts +1 -1
  616. package/dist-versioned/components/tab-group/tab-group.js +3 -3
  617. package/dist-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  618. package/dist-versioned/components/tab-panel/tab-panel.js +2 -2
  619. package/dist-versioned/components/tag/tag.d.ts +1 -1
  620. package/dist-versioned/components/tag/tag.js +3 -3
  621. package/dist-versioned/components/teaser/teaser.js +2 -2
  622. package/dist-versioned/components/teaser-media/teaser-media.js +2 -2
  623. package/dist-versioned/components/textarea/textarea.d.ts +1 -1
  624. package/dist-versioned/components/textarea/textarea.js +3 -3
  625. package/dist-versioned/components/theme-listener/theme-listener.d.ts +1 -1
  626. package/dist-versioned/components/theme-listener/theme-listener.js +2 -2
  627. package/dist-versioned/components/tooltip/tooltip.d.ts +1 -1
  628. package/dist-versioned/components/tooltip/tooltip.js +4 -4
  629. package/dist-versioned/components/video/video.d.ts +1 -1
  630. package/dist-versioned/components/video/video.js +3 -3
  631. package/dist-versioned/custom-elements.json +721 -721
  632. package/dist-versioned/internal/form.js +2 -2
  633. package/dist-versioned/solid-components.css +3 -3
  634. package/dist-versioned/solid-components.js +61 -61
  635. package/dist-versioned/utilities/autocomplete-config.js +2 -2
  636. package/dist-versioned/vscode.html-custom-data.json +166 -166
  637. package/dist-versioned/web-types.json +280 -280
  638. package/package.json +2 -2
  639. package/cdn/chunks/chunk.H3V3YZCR.js +0 -2
  640. package/cdn/chunks/chunk.Z44RDBCE.js +0 -26
  641. package/cdn-versioned/chunks/chunk.H3V3YZCR.js +0 -2
  642. package/cdn-versioned/chunks/chunk.Z44RDBCE.js +0 -26
  643. package/dist/chunks/chunk.PVSLBUSF.js +0 -93
  644. package/dist-versioned/chunks/chunk.PVSLBUSF.js +0 -93
@@ -1,12 +1,12 @@
1
- import{a as R}from"./chunk.ERP45OHF.js";import{a as B}from"./chunk.X2GM34WQ.js";import{a as D,d as K,e as U,f as $}from"./chunk.W7A3TU2Z.js";import{a as H}from"./chunk.OKNJ5BPS.js";import{b as A}from"./chunk.LZRL7OLU.js";import{a as P}from"./chunk.LHSR56PH.js";import{a as _}from"./chunk.CGQ2BPPZ.js";import{a as T,c as k}from"./chunk.B2NUKX6G.js";import{a as w}from"./chunk.KLRPP4NQ.js";import{a as I}from"./chunk.W5O4FM6B.js";import{a as M}from"./chunk.MEDJPDBB.js";import{a as d}from"./chunk.4ZZFYCXX.js";import{a as f}from"./chunk.NYKJXI3Q.js";import{a as F,b as r,c as u,d as m,h as E}from"./chunk.Z44RDBCE.js";import{b as V,e as p}from"./chunk.OBAEIKIV.js";import{b as S,e as C}from"./chunk.W4QBFD6E.js";import{e as l}from"./chunk.6EV4YU6C.js";var s=class extends E{constructor(){super(...arguments);this.formControlController=new A(this,{assumeInteractionOn:["sd-blur","sd-input"]});this.hasSlotController=new _(this,"help-text","label");this.localize=new M(this);this.hasFocus=!1;this.displayInputValue="";this.selectedTextLabel="";this.selectedOptions=[];this.filteredOptions=[];this.allOptions=[];this.showValidStyle=!1;this.showInvalidStyle=!1;this.deletedTagLabel="";this.name="";this.value="";this.defaultValue="";this.size="lg";this.placeholder="";this.maxOptionsTagLabel="";this.disabled=!1;this.visuallyDisabled=!1;this.clearable=!1;this.open=!1;this.hoist=!1;this.label="";this.placement="bottom";this.helpText="";this.form="";this.required=!1;this.floatingLabel=!1;this.type="text";this.currentPlacement=this.placement;this.getOption=B;this.multiple=!1;this.useTags=!0;this.maxOptionsVisible=3;this.styleOnValid=!1;this.filter=(t,e)=>{let i=$(t.value),a=$(t.getTextLabel()),o=$(e);return i.includes(o)||a.includes(o)};this.getTag=t=>p`<sd-7-0-0-tag class="min-w-0 max-w-full" ?disabled="${this.disabled}" part="tag" exportparts="
1
+ import{a as R}from"./chunk.ERP45OHF.js";import{a as B}from"./chunk.X2GM34WQ.js";import{a as D,d as K,e as U,f as $}from"./chunk.W7A3TU2Z.js";import{a as H}from"./chunk.OKNJ5BPS.js";import{b as A}from"./chunk.LZRL7OLU.js";import{a as P}from"./chunk.LHSR56PH.js";import{a as _}from"./chunk.CGQ2BPPZ.js";import{a as T,c as k}from"./chunk.B2NUKX6G.js";import{a as w}from"./chunk.KLRPP4NQ.js";import{a as I}from"./chunk.W5O4FM6B.js";import{a as M}from"./chunk.MEDJPDBB.js";import{a as d}from"./chunk.4ZZFYCXX.js";import{a as f}from"./chunk.NYKJXI3Q.js";import{a as F,b as r,c as u,d as m,h as E}from"./chunk.J45556RK.js";import{b as V,e as p}from"./chunk.OBAEIKIV.js";import{b as S,e as C}from"./chunk.W4QBFD6E.js";import{e as l}from"./chunk.6EV4YU6C.js";var s=class extends E{constructor(){super(...arguments);this.formControlController=new A(this,{assumeInteractionOn:["sd-blur","sd-input"]});this.hasSlotController=new _(this,"help-text","label");this.localize=new M(this);this.hasFocus=!1;this.displayInputValue="";this.selectedTextLabel="";this.selectedOptions=[];this.filteredOptions=[];this.allOptions=[];this.showValidStyle=!1;this.showInvalidStyle=!1;this.deletedTagLabel="";this.name="";this.value="";this.defaultValue="";this.size="lg";this.placeholder="";this.maxOptionsTagLabel="";this.disabled=!1;this.visuallyDisabled=!1;this.clearable=!1;this.open=!1;this.hoist=!1;this.label="";this.placement="bottom";this.helpText="";this.form="";this.required=!1;this.floatingLabel=!1;this.type="text";this.currentPlacement=this.placement;this.getOption=B;this.multiple=!1;this.useTags=!0;this.maxOptionsVisible=3;this.styleOnValid=!1;this.filter=(t,e)=>{let i=$(t.value),a=$(t.getTextLabel()),o=$(e);return i.includes(o)||a.includes(o)};this.getTag=t=>p`<sd-7-0-1-tag class="min-w-0 max-w-full" ?disabled="${this.disabled}" part="tag" exportparts="
2
2
  base:tag__base,
3
3
  content:tag__content,
4
4
  removable-indicator:tag__removable-indicator,
5
- " size="${this.size==="sm"?"sm":"lg"}" removable @keydown="${e=>this.handleTagKeyDown(e,t)}" @sd-remove="${e=>this.handleTagRemove(e,t)}">${t.getTextLabel()}</sd-7-0-0-tag>`;this.handleDocumentFocusIn=t=>{let e=t.composedPath();this&&!e.includes(this)&&this.hide()};this.handleDocumentKeyDown=t=>{let i=t.composedPath().some(n=>n instanceof HTMLButtonElement&&n.classList.contains("combobox-button"));if(this.visuallyDisabled){t.preventDefault(),t.stopPropagation();return}if(!(i||t.target.closest(".combobox__clear")!==null)){if(t.key==="Escape"&&(this.open?(t.preventDefault(),t.stopPropagation(),this.hide(),this.displayInput.focus({preventScroll:!0})):this.displayInputValue=""),t.key==="Backspace"&&this.multiple&&this.displayInput.value===""){this.handleTagRemove(new CustomEvent("sd-remove"),this.selectedOptions[this.selectedOptions.length-1]),this.updateComplete.then(()=>this.displayInput.focus({preventScroll:!0}));return}if(!this.multiple&&(t.key==="Backspace"||t.key==="Delete")){this.clearCombobox();return}if(t.key==="Enter"){let n=this.getCurrentOption(),g=t.metaKey||t.ctrlKey||t.shiftKey||t.altKey;if(!this.open&&!g){setTimeout(()=>{t.defaultPrevented||this.formControlController.submit()});return}if(!this.open||n!=null&&n.disabled)return;if(n&&!n.disabled){let c=this.value;this.multiple?(this.toggleOptionSelection(n),this.lastOption=n,this.setOrderedSelectedOptions(n),this.updateComplete.then(()=>{this.selectionChanged()})):(this.setOrderedSelectedOptions(n),this.setSelectedOptions(n)),this.updateComplete.then(()=>{this.displayInput.focus({preventScroll:!0}),this.value!==c&&(this.emit("sd-input"),this.emit("sd-change"))})}this.displayInput.focus({preventScroll:!0}),this.multiple||(this.hide(),this.displayInput.focus({preventScroll:!0}));return}["ArrowUp","ArrowDown"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.open||this.show(),this.selectNextOption(t.key==="ArrowDown")),["Home","End"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),t.key==="Home"?this.displayInput.setSelectionRange(0,0):t.key==="End"&&this.displayInput.setSelectionRange(this.displayInput.value.length,this.displayInput.value.length))}};this.handleDocumentMouseDown=t=>{let e=t.composedPath();this&&!e.includes(this)&&this.hide()}}connectedCallback(){super.connectedCallback(),this.open=!1}firstUpdated(){if(!this.multiple){let t=this.findOptionByValue(this.getSlottedOptions(),this.value);this.selectedTextLabel=(t==null?void 0:t.getTextLabel())||""}this.formControlController.updateValidity()}get validity(){return this.valueInput.validity}get validationMessage(){return this.valueInput.validationMessage}get options(){let t=e=>{let i=this.displayInput.value,a=this.getOption(e,i);return e.tabIndex=0,p`${typeof a=="string"?I(a):a}`};return this.filteredOptions.map(e=>e.tagName.toLowerCase()==="sd-7-0-0-optgroup"?(Array.from(e.children).forEach(i=>{i.tagName.toLowerCase()==="sd-7-0-0-option"&&t(i)}),e):t(e))}get tags(){return this.selectedOptions.length<=this.maxOptionsVisible?this.selectedOptions.map((t,e)=>{if(e<this.maxOptionsVisible||this.maxOptionsVisible<=0){let i=this.getTag(t,e);return p`<div @sd-remove="${a=>this.handleTagRemove(a,t)}">${typeof i=="string"?I(i):i}</div>`}return[p``]}):[p`<sd-7-0-0-tag class="min-w-0 max-w-full" ?disabled="${this.disabled}" part="tag" exportparts="
5
+ " size="${this.size==="sm"?"sm":"lg"}" removable @keydown="${e=>this.handleTagKeyDown(e,t)}" @sd-remove="${e=>this.handleTagRemove(e,t)}">${t.getTextLabel()}</sd-7-0-1-tag>`;this.handleDocumentFocusIn=t=>{let e=t.composedPath();this&&!e.includes(this)&&this.hide()};this.handleDocumentKeyDown=t=>{let i=t.composedPath().some(n=>n instanceof HTMLButtonElement&&n.classList.contains("combobox-button"));if(this.visuallyDisabled){t.preventDefault(),t.stopPropagation();return}if(!(i||t.target.closest(".combobox__clear")!==null)){if(t.key==="Escape"&&(this.open?(t.preventDefault(),t.stopPropagation(),this.hide(),this.displayInput.focus({preventScroll:!0})):this.displayInputValue=""),t.key==="Backspace"&&this.multiple&&this.displayInput.value===""){this.handleTagRemove(new CustomEvent("sd-remove"),this.selectedOptions[this.selectedOptions.length-1]),this.updateComplete.then(()=>this.displayInput.focus({preventScroll:!0}));return}if(!this.multiple&&(t.key==="Backspace"||t.key==="Delete")){this.clearCombobox();return}if(t.key==="Enter"){let n=this.getCurrentOption(),g=t.metaKey||t.ctrlKey||t.shiftKey||t.altKey;if(!this.open&&!g){setTimeout(()=>{t.defaultPrevented||this.formControlController.submit()});return}if(!this.open||n!=null&&n.disabled)return;if(n&&!n.disabled){let c=this.value;this.multiple?(this.toggleOptionSelection(n),this.lastOption=n,this.setOrderedSelectedOptions(n),this.updateComplete.then(()=>{this.selectionChanged()})):(this.setOrderedSelectedOptions(n),this.setSelectedOptions(n)),this.updateComplete.then(()=>{this.displayInput.focus({preventScroll:!0}),this.value!==c&&(this.emit("sd-input"),this.emit("sd-change"))})}this.displayInput.focus({preventScroll:!0}),this.multiple||(this.hide(),this.displayInput.focus({preventScroll:!0}));return}["ArrowUp","ArrowDown"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.open||this.show(),this.selectNextOption(t.key==="ArrowDown")),["Home","End"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),t.key==="Home"?this.displayInput.setSelectionRange(0,0):t.key==="End"&&this.displayInput.setSelectionRange(this.displayInput.value.length,this.displayInput.value.length))}};this.handleDocumentMouseDown=t=>{let e=t.composedPath();this&&!e.includes(this)&&this.hide()}}connectedCallback(){super.connectedCallback(),this.open=!1}firstUpdated(){if(!this.multiple){let t=this.findOptionByValue(this.getSlottedOptions(),this.value);this.selectedTextLabel=(t==null?void 0:t.getTextLabel())||""}this.formControlController.updateValidity()}get validity(){return this.valueInput.validity}get validationMessage(){return this.valueInput.validationMessage}get options(){let t=e=>{let i=this.displayInput.value,a=this.getOption(e,i);return e.tabIndex=0,p`${typeof a=="string"?I(a):a}`};return this.filteredOptions.map(e=>e.tagName.toLowerCase()==="sd-7-0-1-optgroup"?(Array.from(e.children).forEach(i=>{i.tagName.toLowerCase()==="sd-7-0-1-option"&&t(i)}),e):t(e))}get tags(){return this.selectedOptions.length<=this.maxOptionsVisible?this.selectedOptions.map((t,e)=>{if(e<this.maxOptionsVisible||this.maxOptionsVisible<=0){let i=this.getTag(t,e);return p`<div @sd-remove="${a=>this.handleTagRemove(a,t)}">${typeof i=="string"?I(i):i}</div>`}return[p``]}):[p`<sd-7-0-1-tag class="min-w-0 max-w-full" ?disabled="${this.disabled}" part="tag" exportparts="
6
6
  base:tag__base,
7
7
  content:tag__content,
8
8
  removable-indicator:tag__removable-indicator,
9
- " size="${this.size==="sm"?"sm":"lg"}" removable @keydown="${t=>this.handleTagMaxOptionsKeyDown(t)}" @sd-remove="${t=>this.handleTagRemove(t)}">${this.selectedOptions.length} ${this.localize.term("tagsSelected")}</sd-7-0-0-tag>`]}addOpenListeners(){document.addEventListener("focusin",this.handleDocumentFocusIn),document.addEventListener("mousedown",this.handleDocumentMouseDown),this.getRootNode()!==document&&this.getRootNode().addEventListener("focusin",this.handleDocumentFocusIn)}removeOpenListeners(){document.removeEventListener("focusin",this.handleDocumentFocusIn),document.removeEventListener("mousedown",this.handleDocumentMouseDown),this.getRootNode()!==document&&this.getRootNode().removeEventListener("focusin",this.handleDocumentFocusIn)}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleTagKeyDown(t,e){(t.key==="Backspace"||t.key==="Enter"||t.key===" ")&&this.multiple&&(t.preventDefault(),t.stopPropagation(),this.handleTagRemove(new CustomEvent("sd-remove"),e),this.updateComplete.then(()=>this.displayInput.focus({preventScroll:!0})))}handleTagMaxOptionsKeyDown(t){(t.key==="Backspace"||t.key==="Enter"||t.key===" ")&&this.multiple&&(t.preventDefault(),t.stopPropagation(),this.handleTagRemove(new CustomEvent("sd-remove"),this.selectedOptions[this.selectedOptions.length-1]),this.updateComplete.then(()=>this.displayInput.focus({preventScroll:!0})))}handleLabelClick(){this.visuallyDisabled||this.displayInput.focus()}handleTagRemove(t,e){t.stopPropagation(),e||this.clearCombobox(),e&&!this.disabled&&(this.toggleOptionSelection(e,!1),this.setOrderedSelectedOptions(e),this.deletedTagLabel="",this.deletedTagLabel=this.localize.term("removed",e.textContent),this.updateComplete.then(()=>{this.selectionChanged(),this.emit("sd-input"),this.emit("sd-change")}))}handleComboboxMouseDown(t){if(this.visuallyDisabled){t.preventDefault(),t.stopPropagation();return}let i=t.composedPath().some(o=>o instanceof HTMLSlotElement&&o.name==="removable-indicator");if(this.disabled||i)return;(this.open?this.hide():this.show()).then(()=>{setTimeout(()=>this.displayInput.focus({preventScroll:!0}))})}async handleComboboxKeyDown(t){var e;if(t.key==="Tab"){if(this.displayInputValue="",this.displayInput.value="",this.open&&((e=this.shadowRoot)==null?void 0:e.activeElement)===this.displayInput){t.preventDefault(),this.open=!1,await this.updateComplete,this.displayInput.focus();return}return}this.handleDocumentKeyDown(t)}handleClearClick(t){t.stopPropagation(),this.clearCombobox()}handleSearchClick(t){t.stopPropagation(),!(this.disabled||this.visuallyDisabled)&&this.emit("sd-search")}handleNoResultsClick(t){t.preventDefault(),this.hide()}clearCombobox(){this.value!==""&&(this.value="",this.displayInputValue="",this.selectedTextLabel="",this.lastOption=void 0,this.selectedOptions=[],this.getSlottedOptions().forEach(t=>{t.selected=!1}),this.displayInput.focus({preventScroll:!0}),this.updateComplete.then(()=>{this.emit("sd-clear"),this.emit("sd-input"),this.emit("sd-change")}))}preventLoosingFocus(t){t.stopPropagation(),t.preventDefault()}handleOptionClick(t){let i=t.target.closest("sd-7-0-0-option"),a=this.value;i&&!i.disabled&&(this.multiple?(this.toggleOptionSelection(i),this.lastOption=i,this.setOrderedSelectedOptions(i),this.updateComplete.then(()=>{this.selectionChanged()})):(this.setOrderedSelectedOptions(i),this.setSelectedOptions(i)),this.updateComplete.then(()=>{this.displayInput.focus({preventScroll:!0}),this.value!==a&&(this.emit("sd-input"),this.emit("sd-change"))}),this.multiple||(this.hide(),this.displayInput.focus({preventScroll:!0})))}selectNextOption(t){let e=this.getAllFilteredOptions();if(e.length===0)return;let i=this.getCurrentOption(),a=e.indexOf(i),o=Math.max(0,a);if(t){let n=a+1;o=n>e.length-1?0:n}else{let n=a-1;o=n<0?e.length-1:n}this.setCurrentOption(e[o],new KeyboardEvent("keydown")),H(this.getCurrentOption(),this.listbox,"vertical","auto")}getAllFilteredOptions(){return[...this.filteredWrapper.querySelectorAll("sd-7-0-0-option")]}getCurrentOption(){return this.getAllFilteredOptions().find(t=>t.current)}setCurrentOption(t,e){let i=this.getAllFilteredOptions();this.displayInput.removeAttribute("aria-activedescendant"),i.forEach(a=>{a.current=!1,a.setAttribute("aria-selected","false"),a.isKeyboardFocus=!1}),t&&(t.current=!0,t.setAttribute("aria-selected","true"),this.displayInput.setAttribute("aria-activedescendant",t.id)),t&&(e==null?void 0:e.type)==="keydown"&&(t.isKeyboardFocus=!0)}toggleOptionSelection(t,e){let a=this.getSlottedOptions().find(o=>o.value&&t.value?o.value===t.value:o.getTextLabel()===t.getTextLabel());a&&(a.selected=e!=null?e:!a.selected)}findOptionByValue(t,e){if(e)return Array.isArray(e)?t.find(i=>e.includes(i.value)):t.find(i=>i.value===e)}selectedOptionsAndValueSynced(){var t;return!this.value&&this.selectedOptions.length===0?!0:Array.isArray(this.value)?this.value.length===this.selectedOptions.length:this.value===((t=this.selectedOptions[0])==null?void 0:t.value)}isOptionSelected(t){return t.value?this.value.includes(t.value):this.value.includes(t.getTextLabel())}syncSelectedOptionsAndValue(){return this.selectedOptionsAndValueSynced()?void 0:(this.getSlottedOptions().forEach(e=>{e.selected=!1}),this.selectedOptions=this.getSlottedOptions().filter(e=>this.isOptionSelected(e)),this.selectedOptions.forEach(e=>{e&&(e.selected=!0)}),Promise.resolve())}compareOptions(t,e){return t.value&&e.value?t.value===e.value:t.getTextLabel()===e.getTextLabel()}setSelectedOptions(t){this.getSlottedOptions().forEach(i=>{i.selected=this.compareOptions(i,t)}),this.selectionChanged()}setOrderedSelectedOptions(t){let e=this.getSlottedOptions().find(i=>this.compareOptions(i,t));this.multiple?this.selectedOptions.length>0&&e&&this.selectedOptions.find(i=>this.compareOptions(i,e))?this.selectedOptions=this.selectedOptions.filter(i=>!this.compareOptions(i,e)):this.selectedOptions=[...this.selectedOptions,e]:this.selectedOptions=[e]}selectionChanged(){var e,i,a;let t=this.selectedOptions.some(o=>o?this.isOptionSelected(o):!1);this.multiple?(!t&&this.selectedOptions.length>0?this.value=[...this.value,...this.selectedOptions.map(o=>o.value||o.getTextLabel())]:this.value=this.selectedOptions.map(o=>(o==null?void 0:o.value)||(o==null?void 0:o.getTextLabel())||""),this.displayInputValue=""):(this.value=((e=this.selectedOptions[0])==null?void 0:e.value)||((i=this.selectedOptions[0])==null?void 0:i.getTextLabel())||"",this.selectedTextLabel=((a=this.selectedOptions[0])==null?void 0:a.getTextLabel())||"",this.displayInputValue=""),this.updateComplete.then(()=>{this.formControlController.updateValidity()})}createComboboxOptionsFromQuery(t){let e=[];this.filteredOptions=this.getSlottedOptions().filter(i=>this.filter(i,t)||t==="").map(i=>{var O,v,x;let a=i.cloneNode(!0);if(a.current=a.value===((O=this.lastOption)==null?void 0:O.value),a.selected=i.selected,a.checkbox=i.checkbox,a.size=i.size,!(((v=i.parentElement)==null?void 0:v.tagName.toLowerCase())==="sd-7-0-0-optgroup"))return a;let n=i.parentElement,g=(x=n.querySelector('[slot="label"]'))==null?void 0:x.cloneNode(!0),c=e.find(b=>b.id===n.id);if(c){c==null||c.appendChild(a),g&&(c==null||c.appendChild(g));return}let h=n.cloneNode();return h.appendChild(a),g&&h.appendChild(g),e.push(h),h}).filter(Boolean)}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}handleCurrentPlacement(t){let e=t.detail;e&&(this.currentPlacement=e)}handleFilterChange(){this.createComboboxOptionsFromQuery(this.displayInputValue)}handleUseTagsChange(){let t=this.getAllFilteredOptions();customElements.get("sd-7-0-0-option")&&t.forEach(e=>{e.checkbox=this.multiple})}applySizeToOptions(){this.getSlottedOptions().forEach(t=>{t.size=this.size})}handleDisabledChange(){this.formControlController.setValidity(this.disabled),(this.disabled||this.visuallyDisabled)&&(this.open=!1,this.handleOpenChange())}handleValueChange(){this.syncSelectedOptionsAndValue(),this.multiple?this.createComboboxOptionsFromQuery(this.displayInput.value):this.createComboboxOptionsFromQuery("")}handleDisplayInputValueChange(){this.createComboboxOptionsFromQuery(this.displayInputValue)}async handleOpenChange(){if(this.open&&(!this.disabled||!this.visuallyDisabled)){this.emit("sd-show"),this.addOpenListeners(),await C(this),this.listbox.hidden=!1,this.popup.active=!0;let{keyframes:i,options:a}=k(this,"combobox.show",{dir:this.localize.dir()});await S(this.popup.popup,i,a),this.emit("sd-after-show"),this.filteredOptions.length===0&&this.emit("sd-error");return}this.setCurrentOption(null),this.displayInput.removeAttribute("aria-activedescendant"),this.emit("sd-hide"),this.removeOpenListeners(),await C(this);let{keyframes:t,options:e}=k(this,"combobox.hide",{dir:this.localize.dir()});await S(this.popup.popup,t,e),this.listbox.hidden=!0,this.popup.active=!1,this.emit("sd-after-hide")}handleSizeChange(){this.size=this.floatingLabel&&this.size==="sm"?"md":this.size}async show(){if(this.open||this.disabled||this.visuallyDisabled){this.open=!1;return}return this.open=!0,Promise.race([w(this,"sd-after-show"),w(this,"sd-error")])}async hide(){if(!this.open||this.disabled){this.open=!1;return}return this.displayInputValue="",this.open=!1,w(this,"sd-after-hide")}checkValidity(){return this.valueInput.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.valueInput.reportValidity()}setCustomValidity(t){this.valueInput.setCustomValidity(t),this.formControlController.updateValidity()}focus(t){this.displayInput.focus(t)}blur(){this.displayInput.blur()}async handleInput(){let t=this.displayInput.value;this.displayInputValue=t,await this.updateComplete,this.open=this.filteredWrapper.children.length>0,this.formControlController.updateValidity(),this.emit("sd-input")}handleChange(){(!this.selectedOptions||!this.multiple)&&(this.selectedTextLabel=this.displayInput.value,this.updateComplete.then(()=>{this.formControlController.updateValidity()}),this.emit("sd-change"))}getSlottedOptions(){return K(D(this.defaultSlot)).flat()}getSlottedOptGroups(){return U(D(this.defaultSlot))}async handleDefaultSlotChange(){if(!customElements.get("sd-7-0-0-option")){customElements.whenDefined("sd-7-0-0-option").then(()=>this.handleDefaultSlotChange());return}let t=this.getSlottedOptions(),e=this.getSlottedOptGroups();this.applySizeToOptions();let i=this.findOptionByValue(t,this.value);this.selectedTextLabel=(i==null?void 0:i.getTextLabel())||"",t.forEach((a,o)=>{this.multiple&&(a.checkbox=!0),a.id=a.id||`sd-7-0-0-combobox-option-${o}`}),e.forEach((a,o)=>{a.id=a.id||`sd-7-0-0-combobox-optgroup-${o}`}),await this.syncSelectedOptionsAndValue(),this.multiple?this.createComboboxOptionsFromQuery(this.displayInputValue):this.createComboboxOptionsFromQuery("")}render(){let t={left:this.hasSlotController.test("left"),right:this.hasSlotController.test("right")},e=this.hasSlotController.test("label"),i=this.hasSlotController.test("help-text"),a=this.label?!0:!!e,o=this.helpText?!0:!!i,n=this.clearable&&!this.disabled&&!this.visuallyDisabled,g=t.left,c=this.value!==null&&String(this.value).length>0,h=this.floatingLabel&&a&&(this.hasFocus||c),O=this.disabled?"disabled":this.visuallyDisabled&&!this.hasFocus?"visuallyDisabled":this.hasFocus&&this.showInvalidStyle?"activeInvalid":this.hasFocus&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus||this.open?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",v=this.disabled||this.visuallyDisabled?"cursor-not-allowed":"cursor-pointer",x=this.disabled||this.visuallyDisabled?"text-neutral-500":"form-control-color-icon-fill",b={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],z={sm:"mr-1",md:"mr-2",lg:"mr-2"}[this.size],y={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size],N=this.size==="lg"?this.floatingLabel?"py-3":"py-2":this.floatingLabel?h?"py-2":"py-3":"py-1",q={sm:"left-[36px]",md:"left-[44px]",lg:"left-12"}[this.size];return p`<div part="form-control" class="${d("relative text-left",v,this.size==="sm"?"text-sm":"text-base",this.open&&"z-50")}">${a&&!this.floatingLabel?p`<div class="flex items-center gap-1 mb-2"><label id="label" part="form-control-label" class="${d(a&&"inline-block",a&&(this.visuallyDisabled||this.disabled)?"text-neutral-500":"form-control-color-text")}" aria-hidden="${a?"false":"true"}" @click="${this.handleLabelClick}"><slot name="label">${this.label}</slot></label></div>`:null} <span aria-live="polite" class="sr-only">${this.deletedTagLabel}</span><div part="form-control-input" class="relative w-full bg-white text-black">${a&&this.floatingLabel?p`<label id="label" part="form-control-floating-label" class="${d("absolute left-4 z-20 pointer-events-none transition-all duration-200",g?q:"left-4",h?this.size==="lg"?"top-2 text-xs":"top-1 text-xs":"top-1/2 -translate-y-1/2 form-control-color-text",h&&"mt-1")}" for="input"><span class="${d("leading-none",(this.visuallyDisabled||this.disabled)&&"text-neutral-500",h&&!this.visuallyDisabled&&!this.disabled&&"form-control--filled__floating-label-color-text")}">${this.label}</span></label>`:null}<div part="border" class="${d("absolute top-0 w-full h-full pointer-events-none border form-control-border-radius z-10 transition-[border] duration-medium ease-in-out",{disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",readonly:"form-control-color-border",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"form-control-color-border"}[O],this.open&&(this.currentPlacement==="bottom"?"rounded-bl-none rounded-br-none":"rounded-tl-none rounded-tr-none"))}"></div><sd-7-0-0-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${d("inline-flex relative w-full",this.currentPlacement==="bottom"?"origin-top":"origin-bottom")}" placement="${this.placement}" strategy="${this.hoist?"fixed":"absolute"}" flip shift sync="width" auto-size="vertical" auto-size-padding="10" exportparts="
9
+ " size="${this.size==="sm"?"sm":"lg"}" removable @keydown="${t=>this.handleTagMaxOptionsKeyDown(t)}" @sd-remove="${t=>this.handleTagRemove(t)}">${this.selectedOptions.length} ${this.localize.term("tagsSelected")}</sd-7-0-1-tag>`]}addOpenListeners(){document.addEventListener("focusin",this.handleDocumentFocusIn),document.addEventListener("mousedown",this.handleDocumentMouseDown),this.getRootNode()!==document&&this.getRootNode().addEventListener("focusin",this.handleDocumentFocusIn)}removeOpenListeners(){document.removeEventListener("focusin",this.handleDocumentFocusIn),document.removeEventListener("mousedown",this.handleDocumentMouseDown),this.getRootNode()!==document&&this.getRootNode().removeEventListener("focusin",this.handleDocumentFocusIn)}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleTagKeyDown(t,e){(t.key==="Backspace"||t.key==="Enter"||t.key===" ")&&this.multiple&&(t.preventDefault(),t.stopPropagation(),this.handleTagRemove(new CustomEvent("sd-remove"),e),this.updateComplete.then(()=>this.displayInput.focus({preventScroll:!0})))}handleTagMaxOptionsKeyDown(t){(t.key==="Backspace"||t.key==="Enter"||t.key===" ")&&this.multiple&&(t.preventDefault(),t.stopPropagation(),this.handleTagRemove(new CustomEvent("sd-remove"),this.selectedOptions[this.selectedOptions.length-1]),this.updateComplete.then(()=>this.displayInput.focus({preventScroll:!0})))}handleLabelClick(){this.visuallyDisabled||this.displayInput.focus()}handleTagRemove(t,e){t.stopPropagation(),e||this.clearCombobox(),e&&!this.disabled&&(this.toggleOptionSelection(e,!1),this.setOrderedSelectedOptions(e),this.deletedTagLabel="",this.deletedTagLabel=this.localize.term("removed",e.textContent),this.updateComplete.then(()=>{this.selectionChanged(),this.emit("sd-input"),this.emit("sd-change")}))}handleComboboxMouseDown(t){if(this.visuallyDisabled){t.preventDefault(),t.stopPropagation();return}let i=t.composedPath().some(o=>o instanceof HTMLSlotElement&&o.name==="removable-indicator");if(this.disabled||i)return;(this.open?this.hide():this.show()).then(()=>{setTimeout(()=>this.displayInput.focus({preventScroll:!0}))})}async handleComboboxKeyDown(t){var e;if(t.key==="Tab"){if(this.displayInputValue="",this.displayInput.value="",this.open&&((e=this.shadowRoot)==null?void 0:e.activeElement)===this.displayInput){t.preventDefault(),this.open=!1,await this.updateComplete,this.displayInput.focus();return}return}this.handleDocumentKeyDown(t)}handleClearClick(t){t.stopPropagation(),this.clearCombobox()}handleSearchClick(t){t.stopPropagation(),!(this.disabled||this.visuallyDisabled)&&this.emit("sd-search")}handleNoResultsClick(t){t.preventDefault(),this.hide()}clearCombobox(){this.value!==""&&(this.value="",this.displayInputValue="",this.selectedTextLabel="",this.lastOption=void 0,this.selectedOptions=[],this.getSlottedOptions().forEach(t=>{t.selected=!1}),this.displayInput.focus({preventScroll:!0}),this.updateComplete.then(()=>{this.emit("sd-clear"),this.emit("sd-input"),this.emit("sd-change")}))}preventLoosingFocus(t){t.stopPropagation(),t.preventDefault()}handleOptionClick(t){let i=t.target.closest("sd-7-0-1-option"),a=this.value;i&&!i.disabled&&(this.multiple?(this.toggleOptionSelection(i),this.lastOption=i,this.setOrderedSelectedOptions(i),this.updateComplete.then(()=>{this.selectionChanged()})):(this.setOrderedSelectedOptions(i),this.setSelectedOptions(i)),this.updateComplete.then(()=>{this.displayInput.focus({preventScroll:!0}),this.value!==a&&(this.emit("sd-input"),this.emit("sd-change"))}),this.multiple||(this.hide(),this.displayInput.focus({preventScroll:!0})))}selectNextOption(t){let e=this.getAllFilteredOptions();if(e.length===0)return;let i=this.getCurrentOption(),a=e.indexOf(i),o=Math.max(0,a);if(t){let n=a+1;o=n>e.length-1?0:n}else{let n=a-1;o=n<0?e.length-1:n}this.setCurrentOption(e[o],new KeyboardEvent("keydown")),H(this.getCurrentOption(),this.listbox,"vertical","auto")}getAllFilteredOptions(){return[...this.filteredWrapper.querySelectorAll("sd-7-0-1-option")]}getCurrentOption(){return this.getAllFilteredOptions().find(t=>t.current)}setCurrentOption(t,e){let i=this.getAllFilteredOptions();this.displayInput.removeAttribute("aria-activedescendant"),i.forEach(a=>{a.current=!1,a.setAttribute("aria-selected","false"),a.isKeyboardFocus=!1}),t&&(t.current=!0,t.setAttribute("aria-selected","true"),this.displayInput.setAttribute("aria-activedescendant",t.id)),t&&(e==null?void 0:e.type)==="keydown"&&(t.isKeyboardFocus=!0)}toggleOptionSelection(t,e){let a=this.getSlottedOptions().find(o=>o.value&&t.value?o.value===t.value:o.getTextLabel()===t.getTextLabel());a&&(a.selected=e!=null?e:!a.selected)}findOptionByValue(t,e){if(e)return Array.isArray(e)?t.find(i=>e.includes(i.value)):t.find(i=>i.value===e)}selectedOptionsAndValueSynced(){var t;return!this.value&&this.selectedOptions.length===0?!0:Array.isArray(this.value)?this.value.length===this.selectedOptions.length:this.value===((t=this.selectedOptions[0])==null?void 0:t.value)}isOptionSelected(t){return t.value?this.value.includes(t.value):this.value.includes(t.getTextLabel())}syncSelectedOptionsAndValue(){return this.selectedOptionsAndValueSynced()?void 0:(this.getSlottedOptions().forEach(e=>{e.selected=!1}),this.selectedOptions=this.getSlottedOptions().filter(e=>this.isOptionSelected(e)),this.selectedOptions.forEach(e=>{e&&(e.selected=!0)}),Promise.resolve())}compareOptions(t,e){return t.value&&e.value?t.value===e.value:t.getTextLabel()===e.getTextLabel()}setSelectedOptions(t){this.getSlottedOptions().forEach(i=>{i.selected=this.compareOptions(i,t)}),this.selectionChanged()}setOrderedSelectedOptions(t){let e=this.getSlottedOptions().find(i=>this.compareOptions(i,t));this.multiple?this.selectedOptions.length>0&&e&&this.selectedOptions.find(i=>this.compareOptions(i,e))?this.selectedOptions=this.selectedOptions.filter(i=>!this.compareOptions(i,e)):this.selectedOptions=[...this.selectedOptions,e]:this.selectedOptions=[e]}selectionChanged(){var e,i,a;let t=this.selectedOptions.some(o=>o?this.isOptionSelected(o):!1);this.multiple?(!t&&this.selectedOptions.length>0?this.value=[...this.value,...this.selectedOptions.map(o=>o.value||o.getTextLabel())]:this.value=this.selectedOptions.map(o=>(o==null?void 0:o.value)||(o==null?void 0:o.getTextLabel())||""),this.displayInputValue=""):(this.value=((e=this.selectedOptions[0])==null?void 0:e.value)||((i=this.selectedOptions[0])==null?void 0:i.getTextLabel())||"",this.selectedTextLabel=((a=this.selectedOptions[0])==null?void 0:a.getTextLabel())||"",this.displayInputValue=""),this.updateComplete.then(()=>{this.formControlController.updateValidity()})}createComboboxOptionsFromQuery(t){let e=[];this.filteredOptions=this.getSlottedOptions().filter(i=>this.filter(i,t)||t==="").map(i=>{var O,v,x;let a=i.cloneNode(!0);if(a.current=a.value===((O=this.lastOption)==null?void 0:O.value),a.selected=i.selected,a.checkbox=i.checkbox,a.size=i.size,!(((v=i.parentElement)==null?void 0:v.tagName.toLowerCase())==="sd-7-0-1-optgroup"))return a;let n=i.parentElement,g=(x=n.querySelector('[slot="label"]'))==null?void 0:x.cloneNode(!0),c=e.find(b=>b.id===n.id);if(c){c==null||c.appendChild(a),g&&(c==null||c.appendChild(g));return}let h=n.cloneNode();return h.appendChild(a),g&&h.appendChild(g),e.push(h),h}).filter(Boolean)}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}handleCurrentPlacement(t){let e=t.detail;e&&(this.currentPlacement=e)}handleFilterChange(){this.createComboboxOptionsFromQuery(this.displayInputValue)}handleUseTagsChange(){let t=this.getAllFilteredOptions();customElements.get("sd-7-0-1-option")&&t.forEach(e=>{e.checkbox=this.multiple})}applySizeToOptions(){this.getSlottedOptions().forEach(t=>{t.size=this.size})}handleDisabledChange(){this.formControlController.setValidity(this.disabled),(this.disabled||this.visuallyDisabled)&&(this.open=!1,this.handleOpenChange())}handleValueChange(){this.syncSelectedOptionsAndValue(),this.multiple?this.createComboboxOptionsFromQuery(this.displayInput.value):this.createComboboxOptionsFromQuery("")}handleDisplayInputValueChange(){this.createComboboxOptionsFromQuery(this.displayInputValue)}async handleOpenChange(){if(this.open&&(!this.disabled||!this.visuallyDisabled)){this.emit("sd-show"),this.addOpenListeners(),await C(this),this.listbox.hidden=!1,this.popup.active=!0;let{keyframes:i,options:a}=k(this,"combobox.show",{dir:this.localize.dir()});await S(this.popup.popup,i,a),this.emit("sd-after-show"),this.filteredOptions.length===0&&this.emit("sd-error");return}this.setCurrentOption(null),this.displayInput.removeAttribute("aria-activedescendant"),this.emit("sd-hide"),this.removeOpenListeners(),await C(this);let{keyframes:t,options:e}=k(this,"combobox.hide",{dir:this.localize.dir()});await S(this.popup.popup,t,e),this.listbox.hidden=!0,this.popup.active=!1,this.emit("sd-after-hide")}handleSizeChange(){this.size=this.floatingLabel&&this.size==="sm"?"md":this.size}async show(){if(this.open||this.disabled||this.visuallyDisabled){this.open=!1;return}return this.open=!0,Promise.race([w(this,"sd-after-show"),w(this,"sd-error")])}async hide(){if(!this.open||this.disabled){this.open=!1;return}return this.displayInputValue="",this.open=!1,w(this,"sd-after-hide")}checkValidity(){return this.valueInput.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.valueInput.reportValidity()}setCustomValidity(t){this.valueInput.setCustomValidity(t),this.formControlController.updateValidity()}focus(t){this.displayInput.focus(t)}blur(){this.displayInput.blur()}async handleInput(){let t=this.displayInput.value;this.displayInputValue=t,await this.updateComplete,this.open=this.filteredWrapper.children.length>0,this.formControlController.updateValidity(),this.emit("sd-input")}handleChange(){(!this.selectedOptions||!this.multiple)&&(this.selectedTextLabel=this.displayInput.value,this.updateComplete.then(()=>{this.formControlController.updateValidity()}),this.emit("sd-change"))}getSlottedOptions(){return K(D(this.defaultSlot)).flat()}getSlottedOptGroups(){return U(D(this.defaultSlot))}async handleDefaultSlotChange(){if(!customElements.get("sd-7-0-1-option")){customElements.whenDefined("sd-7-0-1-option").then(()=>this.handleDefaultSlotChange());return}let t=this.getSlottedOptions(),e=this.getSlottedOptGroups();this.applySizeToOptions();let i=this.findOptionByValue(t,this.value);this.selectedTextLabel=(i==null?void 0:i.getTextLabel())||"",t.forEach((a,o)=>{this.multiple&&(a.checkbox=!0),a.id=a.id||`sd-7-0-1-combobox-option-${o}`}),e.forEach((a,o)=>{a.id=a.id||`sd-7-0-1-combobox-optgroup-${o}`}),await this.syncSelectedOptionsAndValue(),this.multiple?this.createComboboxOptionsFromQuery(this.displayInputValue):this.createComboboxOptionsFromQuery("")}render(){let t={left:this.hasSlotController.test("left"),right:this.hasSlotController.test("right")},e=this.hasSlotController.test("label"),i=this.hasSlotController.test("help-text"),a=this.label?!0:!!e,o=this.helpText?!0:!!i,n=this.clearable&&!this.disabled&&!this.visuallyDisabled,g=t.left,c=this.value!==null&&String(this.value).length>0,h=this.floatingLabel&&a&&(this.hasFocus||c),O=this.disabled?"disabled":this.visuallyDisabled&&!this.hasFocus?"visuallyDisabled":this.hasFocus&&this.showInvalidStyle?"activeInvalid":this.hasFocus&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus||this.open?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",v=this.disabled||this.visuallyDisabled?"cursor-not-allowed":"cursor-pointer",x=this.disabled||this.visuallyDisabled?"text-neutral-500":"form-control-color-icon-fill",b={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],z={sm:"mr-1",md:"mr-2",lg:"mr-2"}[this.size],y={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size],N=this.size==="lg"?this.floatingLabel?"py-3":"py-2":this.floatingLabel?h?"py-2":"py-3":"py-1",q={sm:"left-[36px]",md:"left-[44px]",lg:"left-12"}[this.size];return p`<div part="form-control" class="${d("relative text-left",v,this.size==="sm"?"text-sm":"text-base",this.open&&"z-50")}">${a&&!this.floatingLabel?p`<div class="flex items-center gap-1 mb-2"><label id="label" part="form-control-label" class="${d(a&&"inline-block",a&&(this.visuallyDisabled||this.disabled)?"text-neutral-500":"form-control-color-text")}" aria-hidden="${a?"false":"true"}" @click="${this.handleLabelClick}"><slot name="label">${this.label}</slot></label></div>`:null} <span aria-live="polite" class="sr-only">${this.deletedTagLabel}</span><div part="form-control-input" class="relative w-full bg-white text-black">${a&&this.floatingLabel?p`<label id="label" part="form-control-floating-label" class="${d("absolute left-4 z-20 pointer-events-none transition-all duration-200",g?q:"left-4",h?this.size==="lg"?"top-2 text-xs":"top-1 text-xs":"top-1/2 -translate-y-1/2 form-control-color-text",h&&"mt-1")}" for="input"><span class="${d("leading-none",(this.visuallyDisabled||this.disabled)&&"text-neutral-500",h&&!this.visuallyDisabled&&!this.disabled&&"form-control--filled__floating-label-color-text")}">${this.label}</span></label>`:null}<div part="border" class="${d("absolute top-0 w-full h-full pointer-events-none border form-control-border-radius z-10 transition-[border] duration-medium ease-in-out",{disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",readonly:"form-control-color-border",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"form-control-color-border"}[O],this.open&&(this.currentPlacement==="bottom"?"rounded-bl-none rounded-br-none":"rounded-tl-none rounded-tr-none"))}"></div><sd-7-0-1-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${d("inline-flex relative w-full",this.currentPlacement==="bottom"?"origin-top":"origin-bottom")}" placement="${this.placement}" strategy="${this.hoist?"fixed":"absolute"}" flip shift sync="width" auto-size="vertical" auto-size-padding="10" exportparts="
10
10
  popup:popup__content,
11
- "><div part="combobox" class="${d("relative w-full px-4 flex flex-row items-center form-control-border-radius transition-colors hover:duration-fast ease-in-out",this.visuallyDisabled||this.disabled?"hover:bg-transparent":"hover:[@media(hover:hover)]:form-control--hover-color-background",this.open&&"shadow transition-shadow duration-medium ease-in-out",["invalid","activeInvalid"].includes(O)&&"form-control--invalid-color-background",{sm:"py-1 min-h-[32px]",md:"py-1 min-h-[40px]",lg:"py-2 min-h-[48px]"}[this.size],N)}" slot="anchor" @keydown="${this.handleComboboxKeyDown}" @mousedown="${this.handleComboboxMouseDown}">${t.left?p`<slot part="left" name="left" class="${d("inline-flex",z,x,y)}"></slot>`:""}<div class="${d("flex flex-wrap items-center gap-1 w-full min-w-0 relative",this.floatingLabel&&h&&"mt-4",this.floatingLabel&&!h&&this.size==="lg"&&"mt-2")}">${this.multiple&&this.useTags&&this.tags&&this.tags.length>0?p`<div part="tags" class="${d("flex flex-wrap items-center gap-1 min-w-0",z)}">${this.tags}</div>`:null} <input id="display-input" name="${this.name}" form="${this.form}" part="display-input" class="${d("appearance-none outline-none bg-transparent flex-auto min-w-0",v,this.selectedTextLabel&&!this.multiple?"placeholder:text-black":"placeholder:text-neutral-700",this.size==="sm"?h?"h-4":"h-6":h?"h-6":"h-8")}" type="text" placeholder="${!this.floatingLabel||h?this.selectedTextLabel&&!this.multiple?this.selectedTextLabel:this.placeholder||this.localize.term("comboboxDefaultPlaceholder"):""}" .disabled="${this.disabled}" .value="${this.displayInputValue}" autocomplete="off" spellcheck="false" autocapitalize="off" aria-controls="listbox" aria-expanded="${this.open}" aria-haspopup="listbox" aria-labelledby="label" aria-disabled="${this.disabled||this.visuallyDisabled}" aria-describedby="help-text invalid-message" aria-invalid="${this.showInvalidStyle}" role="combobox" tabindex="0" @focus="${this.handleFocus}" @blur="${this.handleBlur}" aria-autocomplete="list" aria-owns="listbox" @input="${this.handleInput}" @change="${this.handleChange}"></div><div aria-live="polite" id="control-value" class="absolute top-0 left-0 opacity-0 -z-10">${this.selectedOptions.map(L=>L==null?void 0:L.getTextLabel()).join(", ")}</div><input class="${d("value-input absolute top-0 left-0 w-full h-full opacity-0 -z-10",v)}" type="text" ?disabled="${this.disabled}" ?required="${this.required}" .value="${Array.isArray(this.value)?this.value.join(", "):this.value}" tabindex="-1" aria-controls="control-value" aria-hidden="true" @focus="${()=>this.focus()}" @invalid="${this.handleInvalid}"> ${n?p`<button part="clear-button" class="${d("flex justify-center",b,this.value.length>0?"visible":"invisible")}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.preventLoosingFocus}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-7-0-0-icon class="${d("text-neutral-700",y)}" name="close-circle" library="_internal"></sd-7-0-0-icon></slot></button>`:""} ${this.showInvalidStyle?p`<sd-7-0-0-icon part="invalid-icon" class="${d(b,y,"text-error")}" library="_internal" name="risk"></sd-7-0-0-icon>`:""} ${this.styleOnValid&&this.showValidStyle?p`<sd-7-0-0-icon part="valid-icon" class="${d("flex-shrink-0 text-success",b,y)}" library="_internal" name="confirm-circle"></sd-7-0-0-icon>`:""}<slot name="right" part="right" class="${d("inline-flex ml-2 leading-[0]",this.disabled||this.visuallyDisabled?"text-neutral-500":"form-control-color-icon-fill",y)}">${this.type!=="search"?p`<sd-7-0-0-icon class="${d("transition-transform duration-medium ease-in-out",this.open?"rotate-180":"rotate-0")}" name="chevron-bottom" part="chevron" library="_internal" color="currentColor" label="${this.localize.term("open")}"></sd-7-0-0-icon>`:""}</slot>${this.type==="search"?p`<button class="${d("flex items-center",b)}" type="button" @mousedown="${this.preventLoosingFocus}" @click="${this.handleSearchClick}"><sd-7-0-0-icon class="${d(x,y)}" library="_internal" name="magnifying-glass" label="${this.localize.term("search")}"></sd-7-0-0-icon></button>`:p`<button class="combobox-button absolute top-2" tabindex="-1" aria-hidden="true" @keydown="${this.handleComboboxMouseDown}" type="button"><span class="sr-only">${this.localize.term("open")}</span></button>`}</div><div id="listbox" role="${P(this.multiple?void 0:"listbox")}" aria-expanded="${this.open}" aria-multiselectable="${this.multiple}" aria-labelledby="label" part="listbox" class="${d("bg-white px-2 py-3 relative border-primary overflow-y-auto",this.open&&"shadow-listbox transition-shadow duration-medium ease-in-out",this.currentPlacement==="bottom"?"border-r-2 border-b-2 border-l-2 form-control__listbox-border-bottom-right-radius form-control__listbox-border-bottom-left-radius":"border-r-2 border-t-2 border-l-2 form-control__listbox-border-top-right-radius form-control__listbox-border-top-left-radius")}" tabindex="-1" @mousedown="${this.preventLoosingFocus}" @mouseup="${this.handleOptionClick}"><div part="filtered-listbox">${this.filteredOptions.length===0?p`<span id="noResults" class="px-4 flex items-center w-full transition-all text-left text-base relative text-black py-3" aria-hidden="true" @click="${this.handleNoResultsClick}">${this.localize.term("noResults")}</span>`:this.options}</div><slot id="defaultOptionsSlot" class="hidden" @slotchange="${this.handleDefaultSlotChange}"></slot></div></sd-7-0-0-popup></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${d("text-sm mt-1",o?"block":"hidden",this.visuallyDisabled||this.disabled?"text-neutral-500":"text-neutral-700")}" aria-hidden="${!o}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage(this.size)}`}};s.styles=[...E.styles,V`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
12
- :host{position:relative;display:block;width:100%}:host([required]) #label::after{content:' *'}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{color:rgba(var(--sd-color-text-neutral-500,174 174 174))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{color:rgba(var(--sd-color-text-neutral-500,174 174 174))}:host([visually-disabled]) input{caret-color:transparent}:host([size=sm]) .combobox-button{right:var(--sd-spacing-4,1rem);height:var(--sd-spacing-4,1rem);width:var(--sd-spacing-4,1rem)}:host([size=md]) .combobox-button{right:.85rem;height:var(--sd-spacing-6,1.5rem);width:var(--sd-spacing-6,1.5rem)}:host([size=lg]) .combobox-button{right:var(--sd-spacing-3,.75rem);height:var(--sd-spacing-8,2rem);width:var(--sd-spacing-8,2rem)}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-7-0-0-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}sd-7-0-0-tag::part(base){border-radius:var(--sd-radius,.25rem);border-width:var(--sd-combobox__tag-border-width,.0625rem);padding-inline:var(--sd-spacing-1,.25rem)}sd-7-0-0-tag::part(content){display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:var(--tag-max-width,15ch)}sd-7-0-0-tag[size=lg]::part(base){padding-inline:var(--sd-spacing-2,.5rem)}sd-7-0-0-tag[disabled=false]::part(base):hover{background-color:rgba(var(--sd-color-background-primary-100,236 240 249))}[part=filtered-listbox] sd-7-0-0-optgroup:first-of-type{--display-divider:none}mark{background-color:transparent;--tw-font-weight:var(--sd-font-weight-bold, 600);font-weight:var(--sd-font-weight-bold,600);color:inherit}:host([type=search]) sd-7-0-0-icon[name=magnifying-glass],[part=chevron]{color:rgba(var(--sd-form-control-color-icon-fill))}:host([disabled])::part(chevron),:host([type=search][disabled]) sd-7-0-0-icon[name=magnifying-glass],:host([type=search][visually-disabled]) sd-7-0-0-icon[name=magnifying-glass],:host([visually-disabled])::part(chevron){color:rgba(var(--sd-color-icon-fill-neutral-500,--sd-color-neutral-500))}@property --tw-font-weight{syntax:"*";inherits:false}`],l([m("sd-7-0-0-popup")],s.prototype,"popup",2),l([m('[part="combobox"]')],s.prototype,"combobox",2),l([m('[part="display-input"]')],s.prototype,"displayInput",2),l([m(".value-input")],s.prototype,"valueInput",2),l([m('[part="listbox"]')],s.prototype,"listbox",2),l([m('[part="tags"]')],s.prototype,"tagWrapper",2),l([m('[part="filtered-listbox"]')],s.prototype,"filteredWrapper",2),l([m("slot:not([name])")],s.prototype,"defaultSlot",2),l([m("#invalid-message")],s.prototype,"invalidMessage",2),l([u()],s.prototype,"hasFocus",2),l([u()],s.prototype,"displayInputValue",2),l([u()],s.prototype,"selectedTextLabel",2),l([u()],s.prototype,"selectedOptions",2),l([u()],s.prototype,"filteredOptions",2),l([u()],s.prototype,"allOptions",2),l([u()],s.prototype,"lastOption",2),l([u()],s.prototype,"showValidStyle",2),l([u()],s.prototype,"showInvalidStyle",2),l([u()],s.prototype,"deletedTagLabel",2),l([r({reflect:!0})],s.prototype,"name",2),l([r({converter:{fromAttribute:t=>t.split(" "),toAttribute:t=>t.join(" ")}})],s.prototype,"value",2),l([R()],s.prototype,"defaultValue",2),l([r({type:String,reflect:!0})],s.prototype,"size",2),l([r({type:String,reflect:!0})],s.prototype,"placeholder",2),l([r({type:String,attribute:"max-options-tag-label",reflect:!0})],s.prototype,"maxOptionsTagLabel",2),l([r({type:Boolean,reflect:!0})],s.prototype,"disabled",2),l([r({type:Boolean,reflect:!0,attribute:"visually-disabled"})],s.prototype,"visuallyDisabled",2),l([r({type:Boolean,reflect:!0})],s.prototype,"clearable",2),l([r({type:Boolean,reflect:!0})],s.prototype,"open",2),l([r({type:Boolean,reflect:!0})],s.prototype,"hoist",2),l([r({type:String,reflect:!0})],s.prototype,"label",2),l([r({type:String,reflect:!0})],s.prototype,"placement",2),l([r({type:String,attribute:"help-text",reflect:!0})],s.prototype,"helpText",2),l([r({type:String,reflect:!0})],s.prototype,"form",2),l([r({type:Boolean,reflect:!0})],s.prototype,"required",2),l([r({attribute:"floating-label",type:Boolean,reflect:!0})],s.prototype,"floatingLabel",2),l([r({type:String,reflect:!0})],s.prototype,"type",2),l([u()],s.prototype,"currentPlacement",2),l([r()],s.prototype,"getOption",2),l([r({type:Boolean,reflect:!0})],s.prototype,"multiple",2),l([r({type:Boolean,reflect:!0})],s.prototype,"useTags",2),l([r({type:Number,reflect:!0,attribute:"max-options-visible"})],s.prototype,"maxOptionsVisible",2),l([r({type:Boolean,reflect:!0,attribute:"style-on-valid"})],s.prototype,"styleOnValid",2),l([r()],s.prototype,"filter",2),l([r()],s.prototype,"getTag",2),l([f("filter",{waitUntilFirstUpdate:!0})],s.prototype,"handleFilterChange",1),l([f("useTags",{waitUntilFirstUpdate:!0})],s.prototype,"handleUseTagsChange",1),l([f("size",{waitUntilFirstUpdate:!0})],s.prototype,"applySizeToOptions",1),l([f(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],s.prototype,"handleDisabledChange",1),l([f("value",{waitUntilFirstUpdate:!0})],s.prototype,"handleValueChange",1),l([f("displayInputValue",{waitUntilFirstUpdate:!0})],s.prototype,"handleDisplayInputValueChange",1),l([f("open",{waitUntilFirstUpdate:!0})],s.prototype,"handleOpenChange",1),l([f(["size","floatingLabel"])],s.prototype,"handleSizeChange",1),s=l([F("sd-7-0-0-combobox")],s);T("combobox.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});T("combobox.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});export{s as a};
11
+ "><div part="combobox" class="${d("relative w-full px-4 flex flex-row items-center form-control-border-radius transition-colors hover:duration-fast ease-in-out",this.visuallyDisabled||this.disabled?"hover:bg-transparent":"hover:[@media(hover:hover)]:form-control--hover-color-background",this.open&&"shadow transition-shadow duration-medium ease-in-out",["invalid","activeInvalid"].includes(O)&&"form-control--invalid-color-background",{sm:"py-1 min-h-[32px]",md:"py-1 min-h-[40px]",lg:"py-2 min-h-[48px]"}[this.size],N)}" slot="anchor" @keydown="${this.handleComboboxKeyDown}" @mousedown="${this.handleComboboxMouseDown}">${t.left?p`<slot part="left" name="left" class="${d("inline-flex",z,x,y)}"></slot>`:""}<div class="${d("flex flex-wrap items-center gap-1 w-full min-w-0 relative",this.floatingLabel&&h&&"mt-4",this.floatingLabel&&!h&&this.size==="lg"&&"mt-2")}">${this.multiple&&this.useTags&&this.tags&&this.tags.length>0?p`<div part="tags" class="${d("flex flex-wrap items-center gap-1 min-w-0",z)}">${this.tags}</div>`:null} <input id="display-input" name="${this.name}" form="${this.form}" part="display-input" class="${d("appearance-none outline-none bg-transparent flex-auto min-w-0",v,this.selectedTextLabel&&!this.multiple?"placeholder:text-black":"placeholder:text-neutral-700",this.size==="sm"?h?"h-4":"h-6":h?"h-6":"h-8")}" type="text" placeholder="${!this.floatingLabel||h?this.selectedTextLabel&&!this.multiple?this.selectedTextLabel:this.placeholder||this.localize.term("comboboxDefaultPlaceholder"):""}" .disabled="${this.disabled}" .value="${this.displayInputValue}" autocomplete="off" spellcheck="false" autocapitalize="off" aria-controls="listbox" aria-expanded="${this.open}" aria-haspopup="listbox" aria-labelledby="label" aria-disabled="${this.disabled||this.visuallyDisabled}" aria-describedby="help-text invalid-message" aria-invalid="${this.showInvalidStyle}" role="combobox" tabindex="0" @focus="${this.handleFocus}" @blur="${this.handleBlur}" aria-autocomplete="list" aria-owns="listbox" @input="${this.handleInput}" @change="${this.handleChange}"></div><div aria-live="polite" id="control-value" class="absolute top-0 left-0 opacity-0 -z-10">${this.selectedOptions.map(L=>L==null?void 0:L.getTextLabel()).join(", ")}</div><input class="${d("value-input absolute top-0 left-0 w-full h-full opacity-0 -z-10",v)}" type="text" ?disabled="${this.disabled}" ?required="${this.required}" .value="${Array.isArray(this.value)?this.value.join(", "):this.value}" tabindex="-1" aria-controls="control-value" aria-hidden="true" @focus="${()=>this.focus()}" @invalid="${this.handleInvalid}"> ${n?p`<button part="clear-button" class="${d("flex justify-center",b,this.value.length>0?"visible":"invisible")}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.preventLoosingFocus}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-7-0-1-icon class="${d("text-neutral-700",y)}" name="close-circle" library="_internal"></sd-7-0-1-icon></slot></button>`:""} ${this.showInvalidStyle?p`<sd-7-0-1-icon part="invalid-icon" class="${d(b,y,"text-error")}" library="_internal" name="risk"></sd-7-0-1-icon>`:""} ${this.styleOnValid&&this.showValidStyle?p`<sd-7-0-1-icon part="valid-icon" class="${d("flex-shrink-0 text-success",b,y)}" library="_internal" name="confirm-circle"></sd-7-0-1-icon>`:""}<slot name="right" part="right" class="${d("inline-flex ml-2 leading-[0]",this.disabled||this.visuallyDisabled?"text-neutral-500":"form-control-color-icon-fill",y)}">${this.type!=="search"?p`<sd-7-0-1-icon class="${d("transition-transform duration-medium ease-in-out",this.open?"rotate-180":"rotate-0")}" name="chevron-bottom" part="chevron" library="_internal" color="currentColor" label="${this.localize.term("open")}"></sd-7-0-1-icon>`:""}</slot>${this.type==="search"?p`<button class="${d("flex items-center",b)}" type="button" @mousedown="${this.preventLoosingFocus}" @click="${this.handleSearchClick}"><sd-7-0-1-icon class="${d(x,y)}" library="_internal" name="magnifying-glass" label="${this.localize.term("search")}"></sd-7-0-1-icon></button>`:p`<button class="combobox-button absolute top-2" tabindex="-1" aria-hidden="true" @keydown="${this.handleComboboxMouseDown}" type="button"><span class="sr-only">${this.localize.term("open")}</span></button>`}</div><div id="listbox" role="${P(this.multiple?void 0:"listbox")}" aria-expanded="${this.open}" aria-multiselectable="${this.multiple}" aria-labelledby="label" part="listbox" class="${d("bg-white px-2 py-3 relative border-primary overflow-y-auto",this.open&&"shadow-listbox transition-shadow duration-medium ease-in-out",this.currentPlacement==="bottom"?"border-r-2 border-b-2 border-l-2 form-control__listbox-border-bottom-right-radius form-control__listbox-border-bottom-left-radius":"border-r-2 border-t-2 border-l-2 form-control__listbox-border-top-right-radius form-control__listbox-border-top-left-radius")}" tabindex="-1" @mousedown="${this.preventLoosingFocus}" @mouseup="${this.handleOptionClick}"><div part="filtered-listbox">${this.filteredOptions.length===0?p`<span id="noResults" class="px-4 flex items-center w-full transition-all text-left text-base relative text-black py-3" aria-hidden="true" @click="${this.handleNoResultsClick}">${this.localize.term("noResults")}</span>`:this.options}</div><slot id="defaultOptionsSlot" class="hidden" @slotchange="${this.handleDefaultSlotChange}"></slot></div></sd-7-0-1-popup></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${d("text-sm mt-1",o?"block":"hidden",this.visuallyDisabled||this.disabled?"text-neutral-500":"text-neutral-700")}" aria-hidden="${!o}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage(this.size)}`}};s.styles=[...E.styles,V`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
12
+ :host{position:relative;display:block;width:100%}:host([required]) #label::after{content:' *'}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{color:rgba(var(--sd-color-text-neutral-500,174 174 174))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{color:rgba(var(--sd-color-text-neutral-500,174 174 174))}:host([visually-disabled]) input{caret-color:transparent}:host([size=sm]) .combobox-button{right:var(--sd-spacing-4,1rem);height:var(--sd-spacing-4,1rem);width:var(--sd-spacing-4,1rem)}:host([size=md]) .combobox-button{right:.85rem;height:var(--sd-spacing-6,1.5rem);width:var(--sd-spacing-6,1.5rem)}:host([size=lg]) .combobox-button{right:var(--sd-spacing-3,.75rem);height:var(--sd-spacing-8,2rem);width:var(--sd-spacing-8,2rem)}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-7-0-1-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}sd-7-0-1-tag::part(base){border-radius:var(--sd-radius,.25rem);border-width:var(--sd-combobox__tag-border-width,.0625rem);padding-inline:var(--sd-spacing-1,.25rem)}sd-7-0-1-tag::part(content){display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:var(--tag-max-width,15ch)}sd-7-0-1-tag[size=lg]::part(base){padding-inline:var(--sd-spacing-2,.5rem)}sd-7-0-1-tag[disabled=false]::part(base):hover{background-color:rgba(var(--sd-color-background-primary-100,236 240 249))}[part=filtered-listbox] sd-7-0-1-optgroup:first-of-type{--display-divider:none}mark{background-color:transparent;--tw-font-weight:var(--sd-font-weight-bold, 600);font-weight:var(--sd-font-weight-bold,600);color:inherit}:host([type=search]) sd-7-0-1-icon[name=magnifying-glass],[part=chevron]{color:rgba(var(--sd-form-control-color-icon-fill))}:host([disabled])::part(chevron),:host([type=search][disabled]) sd-7-0-1-icon[name=magnifying-glass],:host([type=search][visually-disabled]) sd-7-0-1-icon[name=magnifying-glass],:host([visually-disabled])::part(chevron){color:rgba(var(--sd-color-icon-fill-neutral-500,--sd-color-neutral-500))}@property --tw-font-weight{syntax:"*";inherits:false}`],l([m("sd-7-0-1-popup")],s.prototype,"popup",2),l([m('[part="combobox"]')],s.prototype,"combobox",2),l([m('[part="display-input"]')],s.prototype,"displayInput",2),l([m(".value-input")],s.prototype,"valueInput",2),l([m('[part="listbox"]')],s.prototype,"listbox",2),l([m('[part="tags"]')],s.prototype,"tagWrapper",2),l([m('[part="filtered-listbox"]')],s.prototype,"filteredWrapper",2),l([m("slot:not([name])")],s.prototype,"defaultSlot",2),l([m("#invalid-message")],s.prototype,"invalidMessage",2),l([u()],s.prototype,"hasFocus",2),l([u()],s.prototype,"displayInputValue",2),l([u()],s.prototype,"selectedTextLabel",2),l([u()],s.prototype,"selectedOptions",2),l([u()],s.prototype,"filteredOptions",2),l([u()],s.prototype,"allOptions",2),l([u()],s.prototype,"lastOption",2),l([u()],s.prototype,"showValidStyle",2),l([u()],s.prototype,"showInvalidStyle",2),l([u()],s.prototype,"deletedTagLabel",2),l([r({reflect:!0})],s.prototype,"name",2),l([r({converter:{fromAttribute:t=>t.split(" "),toAttribute:t=>t.join(" ")}})],s.prototype,"value",2),l([R()],s.prototype,"defaultValue",2),l([r({type:String,reflect:!0})],s.prototype,"size",2),l([r({type:String,reflect:!0})],s.prototype,"placeholder",2),l([r({type:String,attribute:"max-options-tag-label",reflect:!0})],s.prototype,"maxOptionsTagLabel",2),l([r({type:Boolean,reflect:!0})],s.prototype,"disabled",2),l([r({type:Boolean,reflect:!0,attribute:"visually-disabled"})],s.prototype,"visuallyDisabled",2),l([r({type:Boolean,reflect:!0})],s.prototype,"clearable",2),l([r({type:Boolean,reflect:!0})],s.prototype,"open",2),l([r({type:Boolean,reflect:!0})],s.prototype,"hoist",2),l([r({type:String,reflect:!0})],s.prototype,"label",2),l([r({type:String,reflect:!0})],s.prototype,"placement",2),l([r({type:String,attribute:"help-text",reflect:!0})],s.prototype,"helpText",2),l([r({type:String,reflect:!0})],s.prototype,"form",2),l([r({type:Boolean,reflect:!0})],s.prototype,"required",2),l([r({attribute:"floating-label",type:Boolean,reflect:!0})],s.prototype,"floatingLabel",2),l([r({type:String,reflect:!0})],s.prototype,"type",2),l([u()],s.prototype,"currentPlacement",2),l([r()],s.prototype,"getOption",2),l([r({type:Boolean,reflect:!0})],s.prototype,"multiple",2),l([r({type:Boolean,reflect:!0})],s.prototype,"useTags",2),l([r({type:Number,reflect:!0,attribute:"max-options-visible"})],s.prototype,"maxOptionsVisible",2),l([r({type:Boolean,reflect:!0,attribute:"style-on-valid"})],s.prototype,"styleOnValid",2),l([r()],s.prototype,"filter",2),l([r()],s.prototype,"getTag",2),l([f("filter",{waitUntilFirstUpdate:!0})],s.prototype,"handleFilterChange",1),l([f("useTags",{waitUntilFirstUpdate:!0})],s.prototype,"handleUseTagsChange",1),l([f("size",{waitUntilFirstUpdate:!0})],s.prototype,"applySizeToOptions",1),l([f(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],s.prototype,"handleDisabledChange",1),l([f("value",{waitUntilFirstUpdate:!0})],s.prototype,"handleValueChange",1),l([f("displayInputValue",{waitUntilFirstUpdate:!0})],s.prototype,"handleDisplayInputValueChange",1),l([f("open",{waitUntilFirstUpdate:!0})],s.prototype,"handleOpenChange",1),l([f(["size","floatingLabel"])],s.prototype,"handleSizeChange",1),s=l([F("sd-7-0-1-combobox")],s);T("combobox.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});T("combobox.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});export{s as a};
@@ -1,2 +1,2 @@
1
- import{a as b}from"./chunk.DSKB3SEU.js";import{a as h,b as u}from"./chunk.CGQ2BPPZ.js";import{a as l}from"./chunk.4ZZFYCXX.js";import{a}from"./chunk.NYKJXI3Q.js";import{a as d,b as i,d as r,h as n}from"./chunk.Z44RDBCE.js";import{b as c,e as o}from"./chunk.OBAEIKIV.js";import{e as t}from"./chunk.6EV4YU6C.js";var e=class extends n{constructor(){super(...arguments);this.type="normal";this.checked=!1;this.disabled=!1;this.value="";this.chevron=!1;this.hasSlotController=new h(this,"submenu");this.submenuController=new b(this,this.hasSlotController);this.handleHostClick=s=>{this.disabled&&(s.preventDefault(),s.stopImmediatePropagation())};this.handleMouseOver=s=>{this.focus(),s.stopPropagation()}}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleHostClick),this.addEventListener("mouseover",this.handleMouseOver)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleHostClick),this.removeEventListener("mouseover",this.handleMouseOver)}handleDefaultSlotChange(){let s=this.getTextLabel();if(typeof this.cachedTextLabel=="undefined"){this.cachedTextLabel=s;return}s!==this.cachedTextLabel&&(this.cachedTextLabel=s,this.emit("slotchange",{bubbles:!0,composed:!1,cancelable:!1}))}handleCheckedChange(){if(this.checked&&this.type!=="checkbox"){this.checked=!1,console.error('The checked attribute can only be used on menu items with type="checkbox"',this);return}this.type==="checkbox"?this.setAttribute("aria-checked",this.checked?"true":"false"):this.removeAttribute("aria-checked")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false"),this.setAttribute("tabindex",this.disabled?"-1":"0")}handleTypeChange(){this.type==="checkbox"?(this.setAttribute("role","menuitemcheckbox"),this.setAttribute("aria-checked",this.checked?"true":"false")):(this.setAttribute("role","menuitem"),this.removeAttribute("aria-checked"))}getTextLabel(){return u(this.defaultSlot)}isSubmenu(){return this.hasSlotController.test("submenu")}render(){let s=this.submenuController.isExpanded(),p={label:this.hasSlotController.test("[default]"),iconIndent:this.hasSlotController.test("icon-indent")};return o`<div id="anchor" part="base" class="${l("relative flex items-stretch whitespace-nowrap py-3 px-4 no-wrap !navigable-border-radius",this.disabled?"outline-none cursor-not-allowed sd-7-0-0-menu-item--disabled-color-text hover:bg-transparent":"cursor-pointer sd-7-0-0-menu-item-color-text hover:bg-neutral-200",this.isSubmenu()&&s&&"submenu-expanded")}" .disabled="${this.disabled}" ?aria-haspopup="${this.isSubmenu()}" ?aria-expanded="${!!s}">${this.type==="checkbox"?o`<span part="checked-icon" class="${l("flex items-center justify-center grow-0 shrink-0 basis-auto",this.checked?"visible":"invisible")}"><sd-7-0-0-icon name="status-check" library="sd-status-assets" aria-hidden="true"></sd-7-0-0-icon></span>`:""} ${p.iconIndent?o`<slot name="icon-indent" part="icon-indent" class="flex items-center grow-0 shrink-0 basis-auto mr-2"></slot>`:""}<slot part="label" class="inline-flex grow shrink basis-auto text-ellipsis overflow-hidden" @slotchange="${this.handleDefaultSlotChange}"></slot>${this.chevron||this.isSubmenu()?o`<span part="submenu-icon" class="flex items-center justify-center grow-0 shrink-0 basis-auto ml-3"><sd-7-0-0-icon name="chevron-right" library="_internal" aria-hidden="true" class="h-6 w-6"></sd-7-0-0-icon></span>`:""} ${this.submenuController.renderSubmenu()}</div>`}};e.styles=[...n.styles,c`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
2
- :host{--submenu-offset:-6px;display:block}:host(:focus-visible){--tw-outline-style:none;outline-style:none}::slotted(sd-7-0-0-icon){height:var(--sd-spacing-6,1.5rem);width:var(--sd-spacing-6,1.5rem)}[part=checked-icon]{margin-right:var(--sd-spacing-3,.75rem)}.submenu-expanded::after{position:fixed;top:0;right:0;bottom:0;left:0;z-index:calc(var(z-dropdown) - 1);--tw-content:'';content:var(--tw-content);clip-path:polygon(var(--safe-triangle-cursor-x,0) var(--safe-triangle-cursor-y,0),var(--safe-triangle-submenu-start-x,0) var(--safe-triangle-submenu-start-y,0),var(--safe-triangle-submenu-end-x,0) var(--safe-triangle-submenu-end-y,0))}:host(:hover:not([aria-disabled=true],:focus-visible)) [part=base]{background-color:rgba(var(--sd-color-background-neutral-200,233 233 233));--tw-outline-style:none;outline-style:none}:host(:focus-visible:not([aria-disabled=true])) [part=base]{outline-style:solid;outline-offset:2px;outline-width:2px;outline-color:var(--outline-color-primary);outline-offset:-2px}:host(.menu-item-focus) [part=base]{outline-style:solid;outline-offset:2px;outline-width:2px;outline-color:var(--outline-color-primary);outline-offset:-2px}:host(:hover) [part=base]{--tw-outline-style:none;outline-style:none}:host [part=checked-icon],:host [part=icon-indent],:host [part=submenu-icon]{color:rgba(var(--sd-menu-item-color-icon-fill))}:host([aria-disabled=true]) [part=icon-indent]{color:rgba(var(--sd-menu-item--disabled-color-icon-fill))}sd-7-0-0-popup::part(popup){z-index:var(--sd-z-index-dropdown,900);background-color:rgba(var(--sd-color-background-white,255 255 255));margin-left:var(--submenu-offset)}::slotted(sd-7-0-0-menu){max-width:var(--auto-size-available-width)!important;max-height:var(--auto-size-available-height)!important}.sd-7-0-0-menu-item-color-text{color:rgba(var(--sd-menu-item-color-text))}.sd-7-0-0-menu-item--disabled-color-text{color:rgba(var(--sd-menu-item--disabled-color-text))}@property --tw-content{syntax:"*";inherits:false;initial-value:""}`],t([r("slot:not([name])")],e.prototype,"defaultSlot",2),t([r('part="base"')],e.prototype,"menuItem",2),t([i()],e.prototype,"type",2),t([i({type:Boolean,reflect:!0})],e.prototype,"checked",2),t([i({type:Boolean,reflect:!0})],e.prototype,"disabled",2),t([i()],e.prototype,"value",2),t([i({type:Boolean,reflect:!0})],e.prototype,"chevron",2),t([a("checked")],e.prototype,"handleCheckedChange",1),t([a("disabled")],e.prototype,"handleDisabledChange",1),t([a("type")],e.prototype,"handleTypeChange",1),e=t([d("sd-7-0-0-menu-item")],e);export{e as a};
1
+ import{a as b}from"./chunk.DSKB3SEU.js";import{a as h,b as u}from"./chunk.CGQ2BPPZ.js";import{a as l}from"./chunk.4ZZFYCXX.js";import{a}from"./chunk.NYKJXI3Q.js";import{a as d,b as i,d as r,h as n}from"./chunk.J45556RK.js";import{b as c,e as o}from"./chunk.OBAEIKIV.js";import{e as t}from"./chunk.6EV4YU6C.js";var e=class extends n{constructor(){super(...arguments);this.type="normal";this.checked=!1;this.disabled=!1;this.value="";this.chevron=!1;this.hasSlotController=new h(this,"submenu");this.submenuController=new b(this,this.hasSlotController);this.handleHostClick=s=>{this.disabled&&(s.preventDefault(),s.stopImmediatePropagation())};this.handleMouseOver=s=>{this.focus(),s.stopPropagation()}}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleHostClick),this.addEventListener("mouseover",this.handleMouseOver)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleHostClick),this.removeEventListener("mouseover",this.handleMouseOver)}handleDefaultSlotChange(){let s=this.getTextLabel();if(typeof this.cachedTextLabel=="undefined"){this.cachedTextLabel=s;return}s!==this.cachedTextLabel&&(this.cachedTextLabel=s,this.emit("slotchange",{bubbles:!0,composed:!1,cancelable:!1}))}handleCheckedChange(){if(this.checked&&this.type!=="checkbox"){this.checked=!1,console.error('The checked attribute can only be used on menu items with type="checkbox"',this);return}this.type==="checkbox"?this.setAttribute("aria-checked",this.checked?"true":"false"):this.removeAttribute("aria-checked")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false"),this.setAttribute("tabindex",this.disabled?"-1":"0")}handleTypeChange(){this.type==="checkbox"?(this.setAttribute("role","menuitemcheckbox"),this.setAttribute("aria-checked",this.checked?"true":"false")):(this.setAttribute("role","menuitem"),this.removeAttribute("aria-checked"))}getTextLabel(){return u(this.defaultSlot)}isSubmenu(){return this.hasSlotController.test("submenu")}render(){let s=this.submenuController.isExpanded(),p={label:this.hasSlotController.test("[default]"),iconIndent:this.hasSlotController.test("icon-indent")};return o`<div id="anchor" part="base" class="${l("relative flex items-stretch whitespace-nowrap py-3 px-4 no-wrap !navigable-border-radius",this.disabled?"outline-none cursor-not-allowed sd-7-0-1-menu-item--disabled-color-text hover:bg-transparent":"cursor-pointer sd-7-0-1-menu-item-color-text hover:bg-neutral-200",this.isSubmenu()&&s&&"submenu-expanded")}" .disabled="${this.disabled}" ?aria-haspopup="${this.isSubmenu()}" ?aria-expanded="${!!s}">${this.type==="checkbox"?o`<span part="checked-icon" class="${l("flex items-center justify-center grow-0 shrink-0 basis-auto",this.checked?"visible":"invisible")}"><sd-7-0-1-icon name="status-check" library="sd-status-assets" aria-hidden="true"></sd-7-0-1-icon></span>`:""} ${p.iconIndent?o`<slot name="icon-indent" part="icon-indent" class="flex items-center grow-0 shrink-0 basis-auto mr-2"></slot>`:""}<slot part="label" class="inline-flex grow shrink basis-auto text-ellipsis overflow-hidden" @slotchange="${this.handleDefaultSlotChange}"></slot>${this.chevron||this.isSubmenu()?o`<span part="submenu-icon" class="flex items-center justify-center grow-0 shrink-0 basis-auto ml-3"><sd-7-0-1-icon name="chevron-right" library="_internal" aria-hidden="true" class="h-6 w-6"></sd-7-0-1-icon></span>`:""} ${this.submenuController.renderSubmenu()}</div>`}};e.styles=[...n.styles,c`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
2
+ :host{--submenu-offset:-6px;display:block}:host(:focus-visible){--tw-outline-style:none;outline-style:none}::slotted(sd-7-0-1-icon){height:var(--sd-spacing-6,1.5rem);width:var(--sd-spacing-6,1.5rem)}[part=checked-icon]{margin-right:var(--sd-spacing-3,.75rem)}.submenu-expanded::after{position:fixed;top:0;right:0;bottom:0;left:0;z-index:calc(var(z-dropdown) - 1);--tw-content:'';content:var(--tw-content);clip-path:polygon(var(--safe-triangle-cursor-x,0) var(--safe-triangle-cursor-y,0),var(--safe-triangle-submenu-start-x,0) var(--safe-triangle-submenu-start-y,0),var(--safe-triangle-submenu-end-x,0) var(--safe-triangle-submenu-end-y,0))}:host(:hover:not([aria-disabled=true],:focus-visible)) [part=base]{background-color:rgba(var(--sd-color-background-neutral-200,233 233 233));--tw-outline-style:none;outline-style:none}:host(:focus-visible:not([aria-disabled=true])) [part=base]{outline-style:solid;outline-offset:2px;outline-width:2px;outline-color:var(--outline-color-primary);outline-offset:-2px}:host(.menu-item-focus) [part=base]{outline-style:solid;outline-offset:2px;outline-width:2px;outline-color:var(--outline-color-primary);outline-offset:-2px}:host(:hover) [part=base]{--tw-outline-style:none;outline-style:none}:host [part=checked-icon],:host [part=icon-indent],:host [part=submenu-icon]{color:rgba(var(--sd-menu-item-color-icon-fill))}:host([aria-disabled=true]) [part=icon-indent]{color:rgba(var(--sd-menu-item--disabled-color-icon-fill))}sd-7-0-1-popup::part(popup){z-index:var(--sd-z-index-dropdown,900);background-color:rgba(var(--sd-color-background-white,255 255 255));margin-left:var(--submenu-offset)}::slotted(sd-7-0-1-menu){max-width:var(--auto-size-available-width)!important;max-height:var(--auto-size-available-height)!important}.sd-7-0-1-menu-item-color-text{color:rgba(var(--sd-menu-item-color-text))}.sd-7-0-1-menu-item--disabled-color-text{color:rgba(var(--sd-menu-item--disabled-color-text))}@property --tw-content{syntax:"*";inherits:false;initial-value:""}`],t([r("slot:not([name])")],e.prototype,"defaultSlot",2),t([r('part="base"')],e.prototype,"menuItem",2),t([i()],e.prototype,"type",2),t([i({type:Boolean,reflect:!0})],e.prototype,"checked",2),t([i({type:Boolean,reflect:!0})],e.prototype,"disabled",2),t([i()],e.prototype,"value",2),t([i({type:Boolean,reflect:!0})],e.prototype,"chevron",2),t([a("checked")],e.prototype,"handleCheckedChange",1),t([a("disabled")],e.prototype,"handleDisabledChange",1),t([a("type")],e.prototype,"handleTypeChange",1),e=t([d("sd-7-0-1-menu-item")],e);export{e as a};
@@ -1,2 +1,2 @@
1
- import{a as p,b,c as _}from"./chunk.IVHEBGOY.js";import{a as A}from"./chunk.ERP45OHF.js";import{b as D}from"./chunk.LZRL7OLU.js";import{a as d}from"./chunk.LHSR56PH.js";import{a as M}from"./chunk.CGQ2BPPZ.js";import{a as w}from"./chunk.MEDJPDBB.js";import{a as c}from"./chunk.4ZZFYCXX.js";import{a as C,b as h,d as f,e as I,h as T}from"./chunk.Z44RDBCE.js";import{b as E,e as v}from"./chunk.OBAEIKIV.js";import{e as o}from"./chunk.6EV4YU6C.js";var l=class extends T{constructor(){super();this.formControlController=new D(this);this.hasSlotController=new M(this,"label","help-text");this.localize=new w(this);this.name="";this.label="";this.helpText="";this.min=0;this.max=100;this.step=1;this.disabled=!1;this.visuallyDisabled=!1;this.noTrackBar=!1;this.tooltip="on-interaction";this.defaultValue="";this._value=[0];this._rangeValues=new Map;this._lastChangeValue=[];this._hasFocus=!1;this._dragStyleElement=null;this._preventSelectStart=t=>t.preventDefault();this.tooltipFormatter=this.localize.number.bind(this.localize)}set value(t){this._value=t?t.split(" ").map(Number).sort(p):[]}get value(){return this._value.slice().sort(p).join(" ")}set valueAsArray(t){let e=this._value;this._value=Array.isArray(t)?t.slice().sort(p):t||[],b(e,this._value)&&this.requestUpdate("value",e.join(" "))}get valueAsArray(){return[...this._value].sort(p)}get rtl(){return this.localize.dir()==="rtl"}disconnectedCallback(){super.disconnectedCallback(),this._restoreTextSelection()}firstUpdated(){this.formControlController.updateValidity(),this._lastChangeValue=Array.from(this._value),this.thumbs.forEach(async t=>{var i,a;let e=t.parentElement;await e.updateComplete,(a=(i=e.shadowRoot)==null?void 0:i.querySelector("sd-7-0-0-popup"))==null||a.setAttribute("distance","14")})}willUpdate(t){super.willUpdate(t),this.min>this.max&&([this.min,this.max]=[this.max,this.min]),this.step>this.max-this.min&&(this.step=this.max-this.min),this.step<=0&&(this.step=1);let e=this._value.map(i=>{if(i<=this.min)return this.min;if(i>=this.max)return this.max;let a=this.min+this.step*Math.round((i-this.min)/this.step);return a>this.max?this.max:a});b(this._value,e)&&(this._value=e)}updated(t){super.updated(t);for(let e of this.thumbs){let i=+e.dataset.rangeId;this._rangeValues.has(i)&&(this.moveThumb(e,this._rangeValues.get(i)),this.tooltip==="always-visible"&&(e.parentElement.closeTrigger="manual",e.parentElement.show()))}this.updateActiveTrack()}focus(t){let e=this.thumbs.item(0);e?e.focus(t):super.focus(t)}get validity(){return this.input.validity}checkValidity(){var t;return(t=this.input)==null?void 0:t.checkValidity()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}updateTooltip(t){let e=+t.dataset.rangeId;if(!this._rangeValues.has(e))return;let i=this._rangeValues.get(e),a=t.parentElement;a.content=this.tooltipFormatter(i)}updateActiveTrack(){let{activeTrack:t}=this;if(!t)return;if(this.min===this.max){t.style.insetInlineStart="0%",t.style.insetInlineEnd="0%";return}if(this._value.length===1){let s=getComputedStyle(this).getPropertyValue("--track-active-offset")||"0%",n=100*(this._value[0]-this.min)/(this.max-this.min);t.style.insetInlineStart=`min(${s}, ${n}%)`,t.style.insetInlineEnd=`min(calc(100% - ${s}), calc(100% - ${n}%))`;return}let e=this._value.slice().sort(p),i=100*(e[0]-this.min)/(this.max-this.min),a=100*(e[e.length-1]-this.min)/(this.max-this.min);t.style.insetInlineStart=`${i}%`,t.style.insetInlineEnd=`calc(100% - ${a}%)`}moveThumb(t,e){t.setAttribute("aria-valuenow",e.toString()),t.setAttribute("aria-valuetext",this.tooltipFormatter(e));let i=(e-this.min)/(this.max-this.min);t.style.insetInlineStart=`calc(${100*i}% - 8px)`,this.updateTooltip(t)}movementBoundariesForThumb(t,e){let i=this.valueAsArray,s=Array.from(this.thumbs).indexOf(t),n=i[s-1]||this.min,r=i[s+1]||this.max,u=e<n||e>r;return{finalValue:Math.max(n,Math.min(r,e)),isRestricted:u,nextValue:r,prevValue:n}}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}onClickTrack(t,e=!0){if(this.disabled||this.visuallyDisabled)return;let{clientX:i}=t,a=Array.from(this.thumbs),s=_(this.inputWrapper,i),n=this.step/(this.max-this.min),r=this.min+this.step*Math.round(s/n),u=a.reduce((g,x)=>{let k=this._rangeValues.get(+x.dataset.rangeId),L=this._rangeValues.get(+g.dataset.rangeId),V=Math.abs(k-r),$=Math.abs(L-r);return V===$?k<r?x:g:V<$?x:g}),m=+u.dataset.rangeId;if(!m)return;this._rangeValues.set(m,r),this.moveThumb(u,r);let y=this._value;this._value=Array.from(this._rangeValues.values()),this.updateActiveTrack(),b(y,this._value)&&(this._lastChangeValue=Array.from(this._value),this.emit("sd-input"),this.emit("sd-change"));let F=new PointerEvent("pointerdown",t);e&&u.dispatchEvent(F)&&this.updateTooltip(u)}onClickTrackItem(t){this.onClickTrack(t,!1)}_preventTextSelection(){if(!this._dragStyleElement){let t=document.createElement("style");t.setAttribute("data-sd-7-0-0-range-drag",""),t.textContent="*, *::before, *::after { user-select: none !important; -webkit-user-select: none !important; }",document.head.appendChild(t),this._dragStyleElement=t}document.addEventListener("selectstart",this._preventSelectStart)}_restoreTextSelection(){this._dragStyleElement&&(this._dragStyleElement.remove(),this._dragStyleElement=null),document.removeEventListener("selectstart",this._preventSelectStart)}async onClickThumb(t){if(this.disabled||this.visuallyDisabled)return;let e=t.target;if(this.updateTooltip(e),e.dataset.pointerId)try{e.releasePointerCapture(+e.dataset.pointerId)}catch(i){}e.dataset.pointerId=t.pointerId.toString(),e.setPointerCapture(t.pointerId),this._preventTextSelection(),e.classList.add("grabbed"),this.tooltip==="on-interaction"&&await e.parentElement.show()}onDragThumb(t){if(this.disabled||this.visuallyDisabled)return;let e=t.target,i=+e.dataset.rangeId;if(!this._rangeValues.has(i)||(e.dataset.pointerId?+e.dataset.pointerId:null)!==t.pointerId)return;let s=_(this.inputWrapper,t.clientX),n=this.step/(this.max-this.min),r=this.min+this.step*Math.round(s/n);if(this.emit("sd-move",{cancelable:!0,detail:{element:e,value:r}}).defaultPrevented)return;let m=this.movementBoundariesForThumb(e,r);m.isRestricted?(r=m.finalValue,e.style.zIndex=(3+this.thumbs.length).toFixed(0)):e.style.zIndex="3",this._rangeValues.set(i,r),this.moveThumb(e,r);let y=this._value;this._value=Array.from(this._rangeValues.values()),this.updateActiveTrack(),b(y,this._value)&&this.emit("sd-input")}async onReleaseThumb(t){let e=t.target;!e.dataset.pointerId||t.pointerId!==+e.dataset.pointerId||(e.classList.remove("grabbed"),e.releasePointerCapture(t.pointerId),this._restoreTextSelection(),delete e.dataset.pointerId,b(this._lastChangeValue,this._value)&&(this._lastChangeValue=Array.from(this._value),this.emit("sd-change")),this.tooltip==="on-interaction"&&await e.parentElement.hide())}onKeyPress(t){let e=t.target,i=+e.dataset.rangeId,a=this._rangeValues.get(i);if(a===void 0)return;let s=a;switch(t.key){case"ArrowUp":case"Up":s=Math.min(a+this.step,this.max);break;case"ArrowDown":case"Down":s=Math.max(a-this.step,this.min);break;case"ArrowLeft":case"Left":s=this.rtl?Math.min(a+this.step,this.max):Math.max(a-this.step,this.min);break;case"ArrowRight":case"Right":s=this.rtl?Math.max(a-this.step,this.min):Math.min(a+this.step,this.max);break;case"PageUp":s=Math.min(a+(this.max-this.min)/5,this.max);break;case"PageDown":s=Math.max(a-(this.max-this.min)/5,this.min);break;case"Home":s=this.min;break;case"End":s=this.max;break;default:return}if(s!==a){if(this.emit("sd-move",{cancelable:!0,detail:{element:e,value:s}}).defaultPrevented)return;let r=this.movementBoundariesForThumb(e,s);r.isRestricted&&(s=r.finalValue),this.moveThumb(e,s),this._rangeValues.set(i,s),this._value=Array.from(this._rangeValues.values()),this.updateActiveTrack(),this.updateTooltip(e),this._lastChangeValue=Array.from(this._value),this.emit("sd-input"),this.emit("sd-change")}t.preventDefault()}onBlur(t){var e;t.relatedTarget&&((e=this.shadowRoot)!=null&&e.contains(t.relatedTarget))||(this.emit("sd-blur"),this._hasFocus=!1)}onFocusThumb(t){var i;if(this.disabled||this.visuallyDisabled)return;this._hasFocus||(this._hasFocus=!0,this.emit("sd-focus"));let e=t.target;(i=e==null?void 0:e.dataset)!=null&&i.rangeId&&this.updateTooltip(e)}renderThumbs(t){let e=this._value.length>1;return this._rangeValues.clear(),this._value.map((i,a)=>{let s=a+1;this._rangeValues.set(s,i);let n=`thumb-${s}`,r="",u="";return e?(u=t?`label aria-label-hidden ${n}`:`aria-label-hidden ${n}`,a===0?r=`${this.localize.term("minimum")} (${this.tooltipFormatter(i)})`:a===this._value.length-1?r=`${this.localize.term("maximum")} (${this.tooltipFormatter(i)})`:r=this.tooltipFormatter(i)):u=t?"label aria-label-hidden":"",v`<sd-7-0-0-tooltip trigger="${this.tooltip==="on-interaction"?"focus":"manual"}" disabled="${d(this.disabled||this.visuallyDisabled||this.tooltip==="hidden"?!0:void 0)}"><div id="${n}" part="thumb" role="slider" tabindex="${this.disabled||this.visuallyDisabled?-1:0}" aria-disabled="${d(this.disabled||this.visuallyDisabled?"true":void 0)}" aria-labelledby="${u}" aria-label="${r}" aria-valuemax="${this.max}" aria-valuemin="${this.min}" aria-valuenow="${i}" aria-valuetext="${this.tooltipFormatter(i)}" data-range-id="${s}" data-disabled="${d(this.disabled||this.visuallyDisabled||void 0)}" @pointerdown="${this.onClickThumb}" @pointermove="${this.onDragThumb}" @pointerup="${this.onReleaseThumb}" @pointercancel="${this.onReleaseThumb}" @keydown="${this.onKeyPress}" @focus="${this.onFocusThumb}" class="${c("rounded-full absolute top-0 size-4 hover:cursor-grab after:-inset-2",this.disabled||this.visuallyDisabled?"outline-none":"cursor-pointer focus-visible:focus-outline")}"></div></sd-7-0-0-tooltip>`})}render(){let t={label:this.hasSlotController.test("label"),helpText:this.hasSlotController.test("help-text")},e=!!(this.label||t.label),i=!!(this.helpText||t.helpText);return v`<div part="form-control" @focusout="${this.onBlur}" class="flex flex-col">${e?v`<div class="flex items-center gap-1"><label id="label" part="form-control-label" aria-hidden="${e?"false":"true"}" class="${c("w-full text-start",e?"inline-block":"hidden")}" @click="${this.focus}"><slot name="label">${this.label}</slot></label></div>`:null} <label id="aria-label-hidden" class="sr-only">(${this._value.map(this.tooltipFormatter).join(" - ")})</label><div part="base" class="${c("inline-flex w-full",this.visuallyDisabled&&"focus-visible:focus-outline")}" tabindex="${d(this.visuallyDisabled?"0":void 0)}"><div part="input-wrapper" class="relative flex-1 mx-2 mb-[10px]"><input id="input" tabindex="-1" hidden @invalid="${this.handleInvalid}"><div part="track-wrapper" role="presentation" @pointerdown="${this.onClickTrack}" class="relative cursor-pointer -mx-2"><div part="track-click-helper" class="absolute -inset-y-2 inset-x-0"></div><div part="track" data-disabled="${d(this.disabled||this.visuallyDisabled||void 0)}" class="${c("h-1 my-[6px]")}"></div><div part="active-track" hidden="${d(this.noTrackBar?!0:void 0)}" data-disabled="${d(this.disabled||this.visuallyDisabled||void 0)}" class="${c("absolute top-0 h-1")}"></div></div>${this.renderThumbs(e)}<div class="-mt-[10px]" part="scale-ticks" @pointerdown="${this.onClickTrackItem}" role="presentation"><slot name="scale-ticks"></slot></div></div></div><slot></slot><slot name="help-text" part="form-control-help-text" id="help-text" class="${c("text-sm text-neutral-700 mt-1",i?"block":"hidden")}" aria-hidden="${!i}">${this.helpText}</slot></div>`}};l.styles=[...T.styles,E`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
- [part='base']{touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}[part=thumb]{background-color:rgba(var(--sd-color-icon-fill-primary,rgba(var(--sd-color-primary))))}[part=thumb]:hover{background-color:rgba(var(--sd-color-icon-fill-primary-500,rgba(var(--sd-color-primary-500))))}[part=thumb].grabbed{background-color:rgba(var(--sd-color-icon-fill-primary-800,rgba(var(--sd-color-primary-800))))}[part=thumb][data-disabled]{background-color:rgba(var(--sd-color-background-neutral-500,rgba(var(--sd-color-neutral-500))))}[part=track]{background-color:rgba(var(--sd-color-border-neutral-400,rgba(var(--sd-color-neutral-400))))}[part=track][data-disabled]{background-color:rgba(var(--sd-color-background-neutral-500,rgba(var(--sd-color-neutral-500))))}[part=active-track]{background-color:rgba(var(--sd-color-icon-fill-primary,rgba(var(--sd-color-primary))))}[part=active-track][data-disabled]{background-color:rgba(var(--sd-color-background-neutral-500,rgba(var(--sd-color-neutral-500))))}`],o([f("#input")],l.prototype,"input",2),o([f('[part="active-track"]')],l.prototype,"activeTrack",2),o([f('[part="input-wrapper"]')],l.prototype,"inputWrapper",2),o([I('[part="thumb"]')],l.prototype,"thumbs",2),o([h({attribute:!1})],l.prototype,"tooltipFormatter",2),o([h({type:String,reflect:!0})],l.prototype,"name",2),o([h({type:String,reflect:!0})],l.prototype,"label",2),o([h({attribute:"help-text",reflect:!0})],l.prototype,"helpText",2),o([h({type:Number,reflect:!0})],l.prototype,"min",2),o([h({type:Number,reflect:!0})],l.prototype,"max",2),o([h({type:Number,reflect:!0})],l.prototype,"step",2),o([h({type:Boolean,reflect:!0})],l.prototype,"disabled",2),o([h({attribute:"visually-disabled",type:Boolean,reflect:!0})],l.prototype,"visuallyDisabled",2),o([h({attribute:"no-track-bar",type:Boolean,reflect:!0})],l.prototype,"noTrackBar",2),o([h({attribute:"tooltip",type:String,reflect:!0})],l.prototype,"tooltip",2),o([A()],l.prototype,"defaultValue",2),o([h({type:String})],l.prototype,"value",1),l=o([C("sd-7-0-0-range")],l);export{l as a};
1
+ import{a as p,b,c as _}from"./chunk.IVHEBGOY.js";import{a as A}from"./chunk.ERP45OHF.js";import{b as D}from"./chunk.LZRL7OLU.js";import{a as d}from"./chunk.LHSR56PH.js";import{a as M}from"./chunk.CGQ2BPPZ.js";import{a as w}from"./chunk.MEDJPDBB.js";import{a as c}from"./chunk.4ZZFYCXX.js";import{a as C,b as h,d as f,e as I,h as T}from"./chunk.J45556RK.js";import{b as E,e as v}from"./chunk.OBAEIKIV.js";import{e as o}from"./chunk.6EV4YU6C.js";var l=class extends T{constructor(){super();this.formControlController=new D(this);this.hasSlotController=new M(this,"label","help-text");this.localize=new w(this);this.name="";this.label="";this.helpText="";this.min=0;this.max=100;this.step=1;this.disabled=!1;this.visuallyDisabled=!1;this.noTrackBar=!1;this.tooltip="on-interaction";this.defaultValue="";this._value=[0];this._rangeValues=new Map;this._lastChangeValue=[];this._hasFocus=!1;this._dragStyleElement=null;this._preventSelectStart=t=>t.preventDefault();this.tooltipFormatter=this.localize.number.bind(this.localize)}set value(t){this._value=t?t.split(" ").map(Number).sort(p):[]}get value(){return this._value.slice().sort(p).join(" ")}set valueAsArray(t){let e=this._value;this._value=Array.isArray(t)?t.slice().sort(p):t||[],b(e,this._value)&&this.requestUpdate("value",e.join(" "))}get valueAsArray(){return[...this._value].sort(p)}get rtl(){return this.localize.dir()==="rtl"}disconnectedCallback(){super.disconnectedCallback(),this._restoreTextSelection()}firstUpdated(){this.formControlController.updateValidity(),this._lastChangeValue=Array.from(this._value),this.thumbs.forEach(async t=>{var i,a;let e=t.parentElement;await e.updateComplete,(a=(i=e.shadowRoot)==null?void 0:i.querySelector("sd-7-0-1-popup"))==null||a.setAttribute("distance","14")})}willUpdate(t){super.willUpdate(t),this.min>this.max&&([this.min,this.max]=[this.max,this.min]),this.step>this.max-this.min&&(this.step=this.max-this.min),this.step<=0&&(this.step=1);let e=this._value.map(i=>{if(i<=this.min)return this.min;if(i>=this.max)return this.max;let a=this.min+this.step*Math.round((i-this.min)/this.step);return a>this.max?this.max:a});b(this._value,e)&&(this._value=e)}updated(t){super.updated(t);for(let e of this.thumbs){let i=+e.dataset.rangeId;this._rangeValues.has(i)&&(this.moveThumb(e,this._rangeValues.get(i)),this.tooltip==="always-visible"&&(e.parentElement.closeTrigger="manual",e.parentElement.show()))}this.updateActiveTrack()}focus(t){let e=this.thumbs.item(0);e?e.focus(t):super.focus(t)}get validity(){return this.input.validity}checkValidity(){var t;return(t=this.input)==null?void 0:t.checkValidity()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}updateTooltip(t){let e=+t.dataset.rangeId;if(!this._rangeValues.has(e))return;let i=this._rangeValues.get(e),a=t.parentElement;a.content=this.tooltipFormatter(i)}updateActiveTrack(){let{activeTrack:t}=this;if(!t)return;if(this.min===this.max){t.style.insetInlineStart="0%",t.style.insetInlineEnd="0%";return}if(this._value.length===1){let s=getComputedStyle(this).getPropertyValue("--track-active-offset")||"0%",n=100*(this._value[0]-this.min)/(this.max-this.min);t.style.insetInlineStart=`min(${s}, ${n}%)`,t.style.insetInlineEnd=`min(calc(100% - ${s}), calc(100% - ${n}%))`;return}let e=this._value.slice().sort(p),i=100*(e[0]-this.min)/(this.max-this.min),a=100*(e[e.length-1]-this.min)/(this.max-this.min);t.style.insetInlineStart=`${i}%`,t.style.insetInlineEnd=`calc(100% - ${a}%)`}moveThumb(t,e){t.setAttribute("aria-valuenow",e.toString()),t.setAttribute("aria-valuetext",this.tooltipFormatter(e));let i=(e-this.min)/(this.max-this.min);t.style.insetInlineStart=`calc(${100*i}% - 8px)`,this.updateTooltip(t)}movementBoundariesForThumb(t,e){let i=this.valueAsArray,s=Array.from(this.thumbs).indexOf(t),n=i[s-1]||this.min,r=i[s+1]||this.max,u=e<n||e>r;return{finalValue:Math.max(n,Math.min(r,e)),isRestricted:u,nextValue:r,prevValue:n}}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}onClickTrack(t,e=!0){if(this.disabled||this.visuallyDisabled)return;let{clientX:i}=t,a=Array.from(this.thumbs),s=_(this.inputWrapper,i),n=this.step/(this.max-this.min),r=this.min+this.step*Math.round(s/n),u=a.reduce((g,x)=>{let k=this._rangeValues.get(+x.dataset.rangeId),L=this._rangeValues.get(+g.dataset.rangeId),V=Math.abs(k-r),$=Math.abs(L-r);return V===$?k<r?x:g:V<$?x:g}),m=+u.dataset.rangeId;if(!m)return;this._rangeValues.set(m,r),this.moveThumb(u,r);let y=this._value;this._value=Array.from(this._rangeValues.values()),this.updateActiveTrack(),b(y,this._value)&&(this._lastChangeValue=Array.from(this._value),this.emit("sd-input"),this.emit("sd-change"));let F=new PointerEvent("pointerdown",t);e&&u.dispatchEvent(F)&&this.updateTooltip(u)}onClickTrackItem(t){this.onClickTrack(t,!1)}_preventTextSelection(){if(!this._dragStyleElement){let t=document.createElement("style");t.setAttribute("data-sd-7-0-1-range-drag",""),t.textContent="*, *::before, *::after { user-select: none !important; -webkit-user-select: none !important; }",document.head.appendChild(t),this._dragStyleElement=t}document.addEventListener("selectstart",this._preventSelectStart)}_restoreTextSelection(){this._dragStyleElement&&(this._dragStyleElement.remove(),this._dragStyleElement=null),document.removeEventListener("selectstart",this._preventSelectStart)}async onClickThumb(t){if(this.disabled||this.visuallyDisabled)return;let e=t.target;if(this.updateTooltip(e),e.dataset.pointerId)try{e.releasePointerCapture(+e.dataset.pointerId)}catch(i){}e.dataset.pointerId=t.pointerId.toString(),e.setPointerCapture(t.pointerId),this._preventTextSelection(),e.classList.add("grabbed"),this.tooltip==="on-interaction"&&await e.parentElement.show()}onDragThumb(t){if(this.disabled||this.visuallyDisabled)return;let e=t.target,i=+e.dataset.rangeId;if(!this._rangeValues.has(i)||(e.dataset.pointerId?+e.dataset.pointerId:null)!==t.pointerId)return;let s=_(this.inputWrapper,t.clientX),n=this.step/(this.max-this.min),r=this.min+this.step*Math.round(s/n);if(this.emit("sd-move",{cancelable:!0,detail:{element:e,value:r}}).defaultPrevented)return;let m=this.movementBoundariesForThumb(e,r);m.isRestricted?(r=m.finalValue,e.style.zIndex=(3+this.thumbs.length).toFixed(0)):e.style.zIndex="3",this._rangeValues.set(i,r),this.moveThumb(e,r);let y=this._value;this._value=Array.from(this._rangeValues.values()),this.updateActiveTrack(),b(y,this._value)&&this.emit("sd-input")}async onReleaseThumb(t){let e=t.target;!e.dataset.pointerId||t.pointerId!==+e.dataset.pointerId||(e.classList.remove("grabbed"),e.releasePointerCapture(t.pointerId),this._restoreTextSelection(),delete e.dataset.pointerId,b(this._lastChangeValue,this._value)&&(this._lastChangeValue=Array.from(this._value),this.emit("sd-change")),this.tooltip==="on-interaction"&&await e.parentElement.hide())}onKeyPress(t){let e=t.target,i=+e.dataset.rangeId,a=this._rangeValues.get(i);if(a===void 0)return;let s=a;switch(t.key){case"ArrowUp":case"Up":s=Math.min(a+this.step,this.max);break;case"ArrowDown":case"Down":s=Math.max(a-this.step,this.min);break;case"ArrowLeft":case"Left":s=this.rtl?Math.min(a+this.step,this.max):Math.max(a-this.step,this.min);break;case"ArrowRight":case"Right":s=this.rtl?Math.max(a-this.step,this.min):Math.min(a+this.step,this.max);break;case"PageUp":s=Math.min(a+(this.max-this.min)/5,this.max);break;case"PageDown":s=Math.max(a-(this.max-this.min)/5,this.min);break;case"Home":s=this.min;break;case"End":s=this.max;break;default:return}if(s!==a){if(this.emit("sd-move",{cancelable:!0,detail:{element:e,value:s}}).defaultPrevented)return;let r=this.movementBoundariesForThumb(e,s);r.isRestricted&&(s=r.finalValue),this.moveThumb(e,s),this._rangeValues.set(i,s),this._value=Array.from(this._rangeValues.values()),this.updateActiveTrack(),this.updateTooltip(e),this._lastChangeValue=Array.from(this._value),this.emit("sd-input"),this.emit("sd-change")}t.preventDefault()}onBlur(t){var e;t.relatedTarget&&((e=this.shadowRoot)!=null&&e.contains(t.relatedTarget))||(this.emit("sd-blur"),this._hasFocus=!1)}onFocusThumb(t){var i;if(this.disabled||this.visuallyDisabled)return;this._hasFocus||(this._hasFocus=!0,this.emit("sd-focus"));let e=t.target;(i=e==null?void 0:e.dataset)!=null&&i.rangeId&&this.updateTooltip(e)}renderThumbs(t){let e=this._value.length>1;return this._rangeValues.clear(),this._value.map((i,a)=>{let s=a+1;this._rangeValues.set(s,i);let n=`thumb-${s}`,r="",u="";return e?(u=t?`label aria-label-hidden ${n}`:`aria-label-hidden ${n}`,a===0?r=`${this.localize.term("minimum")} (${this.tooltipFormatter(i)})`:a===this._value.length-1?r=`${this.localize.term("maximum")} (${this.tooltipFormatter(i)})`:r=this.tooltipFormatter(i)):u=t?"label aria-label-hidden":"",v`<sd-7-0-1-tooltip trigger="${this.tooltip==="on-interaction"?"focus":"manual"}" disabled="${d(this.disabled||this.visuallyDisabled||this.tooltip==="hidden"?!0:void 0)}"><div id="${n}" part="thumb" role="slider" tabindex="${this.disabled||this.visuallyDisabled?-1:0}" aria-disabled="${d(this.disabled||this.visuallyDisabled?"true":void 0)}" aria-labelledby="${u}" aria-label="${r}" aria-valuemax="${this.max}" aria-valuemin="${this.min}" aria-valuenow="${i}" aria-valuetext="${this.tooltipFormatter(i)}" data-range-id="${s}" data-disabled="${d(this.disabled||this.visuallyDisabled||void 0)}" @pointerdown="${this.onClickThumb}" @pointermove="${this.onDragThumb}" @pointerup="${this.onReleaseThumb}" @pointercancel="${this.onReleaseThumb}" @keydown="${this.onKeyPress}" @focus="${this.onFocusThumb}" class="${c("rounded-full absolute top-0 size-4 hover:cursor-grab after:-inset-2",this.disabled||this.visuallyDisabled?"outline-none":"cursor-pointer focus-visible:focus-outline")}"></div></sd-7-0-1-tooltip>`})}render(){let t={label:this.hasSlotController.test("label"),helpText:this.hasSlotController.test("help-text")},e=!!(this.label||t.label),i=!!(this.helpText||t.helpText);return v`<div part="form-control" @focusout="${this.onBlur}" class="flex flex-col">${e?v`<div class="flex items-center gap-1"><label id="label" part="form-control-label" aria-hidden="${e?"false":"true"}" class="${c("w-full text-start",e?"inline-block":"hidden")}" @click="${this.focus}"><slot name="label">${this.label}</slot></label></div>`:null} <label id="aria-label-hidden" class="sr-only">(${this._value.map(this.tooltipFormatter).join(" - ")})</label><div part="base" class="${c("inline-flex w-full",this.visuallyDisabled&&"focus-visible:focus-outline")}" tabindex="${d(this.visuallyDisabled?"0":void 0)}"><div part="input-wrapper" class="relative flex-1 mx-2 mb-[10px]"><input id="input" tabindex="-1" hidden @invalid="${this.handleInvalid}"><div part="track-wrapper" role="presentation" @pointerdown="${this.onClickTrack}" class="relative cursor-pointer -mx-2"><div part="track-click-helper" class="absolute -inset-y-2 inset-x-0"></div><div part="track" data-disabled="${d(this.disabled||this.visuallyDisabled||void 0)}" class="${c("h-1 my-[6px]")}"></div><div part="active-track" hidden="${d(this.noTrackBar?!0:void 0)}" data-disabled="${d(this.disabled||this.visuallyDisabled||void 0)}" class="${c("absolute top-0 h-1")}"></div></div>${this.renderThumbs(e)}<div class="-mt-[10px]" part="scale-ticks" @pointerdown="${this.onClickTrackItem}" role="presentation"><slot name="scale-ticks"></slot></div></div></div><slot></slot><slot name="help-text" part="form-control-help-text" id="help-text" class="${c("text-sm text-neutral-700 mt-1",i?"block":"hidden")}" aria-hidden="${!i}">${this.helpText}</slot></div>`}};l.styles=[...T.styles,E`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
+ [part='base']{touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}[part=thumb]{background-color:rgba(var(--sd-color-icon-fill-primary,rgba(var(--sd-color-primary))))}[part=thumb]:hover{background-color:rgba(var(--sd-color-icon-fill-primary-500,rgba(var(--sd-color-primary-500))))}[part=thumb].grabbed{background-color:rgba(var(--sd-color-icon-fill-primary-800,rgba(var(--sd-color-primary-800))))}[part=thumb][data-disabled]{background-color:rgba(var(--sd-color-background-neutral-500,rgba(var(--sd-color-neutral-500))))}[part=track]{background-color:rgba(var(--sd-color-border-neutral-400,rgba(var(--sd-color-neutral-400))))}[part=track][data-disabled]{background-color:rgba(var(--sd-color-background-neutral-500,rgba(var(--sd-color-neutral-500))))}[part=active-track]{background-color:rgba(var(--sd-color-icon-fill-primary,rgba(var(--sd-color-primary))))}[part=active-track][data-disabled]{background-color:rgba(var(--sd-color-background-neutral-500,rgba(var(--sd-color-neutral-500))))}`],o([f("#input")],l.prototype,"input",2),o([f('[part="active-track"]')],l.prototype,"activeTrack",2),o([f('[part="input-wrapper"]')],l.prototype,"inputWrapper",2),o([I('[part="thumb"]')],l.prototype,"thumbs",2),o([h({attribute:!1})],l.prototype,"tooltipFormatter",2),o([h({type:String,reflect:!0})],l.prototype,"name",2),o([h({type:String,reflect:!0})],l.prototype,"label",2),o([h({attribute:"help-text",reflect:!0})],l.prototype,"helpText",2),o([h({type:Number,reflect:!0})],l.prototype,"min",2),o([h({type:Number,reflect:!0})],l.prototype,"max",2),o([h({type:Number,reflect:!0})],l.prototype,"step",2),o([h({type:Boolean,reflect:!0})],l.prototype,"disabled",2),o([h({attribute:"visually-disabled",type:Boolean,reflect:!0})],l.prototype,"visuallyDisabled",2),o([h({attribute:"no-track-bar",type:Boolean,reflect:!0})],l.prototype,"noTrackBar",2),o([h({attribute:"tooltip",type:String,reflect:!0})],l.prototype,"tooltip",2),o([A()],l.prototype,"defaultValue",2),o([h({type:String})],l.prototype,"value",1),l=o([C("sd-7-0-1-range")],l);export{l as a};
@@ -1,2 +1,2 @@
1
- import{a as s}from"./chunk.LHSR56PH.js";import{a as p}from"./chunk.CGQ2BPPZ.js";import{a as u}from"./chunk.MEDJPDBB.js";import{a as t}from"./chunk.4ZZFYCXX.js";import{a as h,b as i,h as d}from"./chunk.Z44RDBCE.js";import{b as c,e as r,i as n}from"./chunk.OBAEIKIV.js";import{e as a}from"./chunk.6EV4YU6C.js";var e=class extends d{constructor(){super();this.hasSlotController=new p(this,"label");this.value=null;this.max=100;this.label="";this.valuePosition=null;this.inverted=!1;this.showLabel=!1;this.localize=new u(this);this.valueFormatter=this.localize.number.bind(this.localize)}get safeMax(){return this.max>0?this.max:100}get clampedValue(){var o;return Math.min(Math.max((o=this.value)!=null?o:0,0),this.safeMax)}get percentage(){return this.clampedValue/this.safeMax*100}get isLoading(){return this.value===void 0||this.value===null||isNaN(this.value)}get showValue(){return!this.isLoading&&(this.valuePosition==="right"||this.valuePosition==="bottom")}render(){let o={label:this.hasSlotController.test("label")},l=this.label?!0:!!o.label;return r`<div part="base" class="text-start" aria-hidden="${!l}">${l?r`<label part="label" id="label" class="${t("text-base",!this.showLabel&&"sr-only",this.inverted?"text-white":"text-black")}" aria-hidden="${l?"false":"true"}"><slot name="label">${this.label}</slot></label>`:n}<div class="${t(this.valuePosition==="right"?"flex flex-row items-center gap-2 -mt-1":this.valuePosition==="bottom"?"flex flex-col gap-1 mt-1":"mt-1")}"><div part="bar" id="bar" class="${t("w-full h-[var(--height,0.125rem)]",this.isLoading?"relative ":"flex")}" role="progressbar" aria-valuemin="0" aria-valuemax="${this.safeMax}" aria-valuenow="${s(this.isLoading?void 0:this.valueFormatter(this.clampedValue))}" aria-valuetext="${s(this.isLoading?this.localize.term("loading"):this.valueFormatter(this.clampedValue))}" aria-label="${s(l?void 0:this.label||this.localize.term("progress"))}" aria-labelledby="${s(l?"label":this.label)}" style="${`--percentage: ${this.percentage}%;`}">${this.isLoading?r`<div part="track" class="${t("absolute top-0 left-0 h-full progress-bar__track--loading-left",this.inverted?"sd-7-0-0-progress-bar__slide-bar--inverted-color-background":"sd-7-0-0-progress-bar__slide-bar-color-background")}"></div><div part="track" class="${t("absolute top-0 right-0 h-full progress-bar__track--loading-right",this.inverted?"sd-7-0-0-progress-bar__slide-bar--inverted-color-background":"sd-7-0-0-progress-bar__slide-bar-color-background")}"></div><div part="indicator" class="${t("absolute top-0 h-full progress-bar__indicator--loading",this.inverted?"sd-7-0-0-progress-bar--active--inverted-color-background":"bg-accent")}"></div>`:r`<div part="indicator" class="${t("w-[var(--percentage)]",this.inverted?"sd-7-0-0-progress-bar--active--inverted-color-background":"bg-accent")}"></div>${this.value&&this.value>0&&this.value<this.safeMax?r`<div class="w-0.5 shrink-0"></div>`:n}<div part="track" class="${t("flex-1",this.inverted?"sd-7-0-0-progress-bar__slide-bar--inverted-color-background":"sd-7-0-0-progress-bar__slide-bar-color-background")}"></div>`}</div>${this.showValue?r`<span class="${t("text-neutral-700 text-xs w-shrink-0",this.inverted?"text-white":"text-neutral-700",this.valuePosition==="bottom"?"text-start":"text-center",this.valuePosition==="right"&&"whitespace-nowrap")}" part="value-${this.valuePosition}">${this.valueFormatter(this.clampedValue)}</span>`:n}</div></div>`}};e.styles=[...d.styles,c`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
- :host{display:block;width:100%}.progress-bar__indicator--loading{width:25%;animation:progress-loading-indicator 1.25s ease-in-out infinite alternate}.progress-bar__track--loading-left{animation:progress-loading-track-left 1.25s ease-in-out infinite alternate}.progress-bar__track--loading-right{animation:progress-loading-track-right 1.25s ease-in-out infinite alternate}@keyframes progress-loading-indicator{0%{left:0}100%{left:75%}}@keyframes progress-loading-track-left{0%{width:0}100%{width:calc(75% - .25rem)}}@keyframes progress-loading-track-right{0%{width:calc(75% - .25rem)}100%{width:0}}`],a([i({type:Number,reflect:!0})],e.prototype,"value",2),a([i({type:Number,reflect:!0})],e.prototype,"max",2),a([i({type:String,reflect:!0})],e.prototype,"label",2),a([i({type:String,reflect:!0,attribute:"value-position"})],e.prototype,"valuePosition",2),a([i({type:Boolean,reflect:!0})],e.prototype,"inverted",2),a([i({type:Boolean,reflect:!0,attribute:"show-label"})],e.prototype,"showLabel",2),a([i({attribute:!1})],e.prototype,"valueFormatter",2),e=a([h("sd-7-0-0-progress-bar")],e);export{e as a};
1
+ import{a as s}from"./chunk.LHSR56PH.js";import{a as p}from"./chunk.CGQ2BPPZ.js";import{a as u}from"./chunk.MEDJPDBB.js";import{a as t}from"./chunk.4ZZFYCXX.js";import{a as h,b as i,h as d}from"./chunk.J45556RK.js";import{b as c,e as r,i as n}from"./chunk.OBAEIKIV.js";import{e as a}from"./chunk.6EV4YU6C.js";var e=class extends d{constructor(){super();this.hasSlotController=new p(this,"label");this.value=null;this.max=100;this.label="";this.valuePosition=null;this.inverted=!1;this.showLabel=!1;this.localize=new u(this);this.valueFormatter=this.localize.number.bind(this.localize)}get safeMax(){return this.max>0?this.max:100}get clampedValue(){var o;return Math.min(Math.max((o=this.value)!=null?o:0,0),this.safeMax)}get percentage(){return this.clampedValue/this.safeMax*100}get isLoading(){return this.value===void 0||this.value===null||isNaN(this.value)}get showValue(){return!this.isLoading&&(this.valuePosition==="right"||this.valuePosition==="bottom")}render(){let o={label:this.hasSlotController.test("label")},l=this.label?!0:!!o.label;return r`<div part="base" class="text-start" aria-hidden="${!l}">${l?r`<label part="label" id="label" class="${t("text-base",!this.showLabel&&"sr-only",this.inverted?"text-white":"text-black")}" aria-hidden="${l?"false":"true"}"><slot name="label">${this.label}</slot></label>`:n}<div class="${t(this.valuePosition==="right"?"flex flex-row items-center gap-2 -mt-1":this.valuePosition==="bottom"?"flex flex-col gap-1 mt-1":"mt-1")}"><div part="bar" id="bar" class="${t("w-full h-[var(--height,0.125rem)]",this.isLoading?"relative ":"flex")}" role="progressbar" aria-valuemin="0" aria-valuemax="${this.safeMax}" aria-valuenow="${s(this.isLoading?void 0:this.valueFormatter(this.clampedValue))}" aria-valuetext="${s(this.isLoading?this.localize.term("loading"):this.valueFormatter(this.clampedValue))}" aria-label="${s(l?void 0:this.label||this.localize.term("progress"))}" aria-labelledby="${s(l?"label":this.label)}" style="${`--percentage: ${this.percentage}%;`}">${this.isLoading?r`<div part="track" class="${t("absolute top-0 left-0 h-full progress-bar__track--loading-left",this.inverted?"sd-7-0-1-progress-bar__slide-bar--inverted-color-background":"sd-7-0-1-progress-bar__slide-bar-color-background")}"></div><div part="track" class="${t("absolute top-0 right-0 h-full progress-bar__track--loading-right",this.inverted?"sd-7-0-1-progress-bar__slide-bar--inverted-color-background":"sd-7-0-1-progress-bar__slide-bar-color-background")}"></div><div part="indicator" class="${t("absolute top-0 h-full progress-bar__indicator--loading",this.inverted?"sd-7-0-1-progress-bar--active--inverted-color-background":"bg-accent")}"></div>`:r`<div part="indicator" class="${t("w-[var(--percentage)]",this.inverted?"sd-7-0-1-progress-bar--active--inverted-color-background":"bg-accent")}"></div>${this.value&&this.value>0&&this.value<this.safeMax?r`<div class="w-0.5 shrink-0"></div>`:n}<div part="track" class="${t("flex-1",this.inverted?"sd-7-0-1-progress-bar__slide-bar--inverted-color-background":"sd-7-0-1-progress-bar__slide-bar-color-background")}"></div>`}</div>${this.showValue?r`<span class="${t("text-neutral-700 text-xs w-shrink-0",this.inverted?"text-white":"text-neutral-700",this.valuePosition==="bottom"?"text-start":"text-center",this.valuePosition==="right"&&"whitespace-nowrap")}" part="value-${this.valuePosition}">${this.valueFormatter(this.clampedValue)}</span>`:n}</div></div>`}};e.styles=[...d.styles,c`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
+ :host{display:block;width:100%}.progress-bar__indicator--loading{width:25%;animation:progress-loading-indicator 1.25s ease-in-out infinite alternate}.progress-bar__track--loading-left{animation:progress-loading-track-left 1.25s ease-in-out infinite alternate}.progress-bar__track--loading-right{animation:progress-loading-track-right 1.25s ease-in-out infinite alternate}@keyframes progress-loading-indicator{0%{left:0}100%{left:75%}}@keyframes progress-loading-track-left{0%{width:0}100%{width:calc(75% - .25rem)}}@keyframes progress-loading-track-right{0%{width:calc(75% - .25rem)}100%{width:0}}`],a([i({type:Number,reflect:!0})],e.prototype,"value",2),a([i({type:Number,reflect:!0})],e.prototype,"max",2),a([i({type:String,reflect:!0})],e.prototype,"label",2),a([i({type:String,reflect:!0,attribute:"value-position"})],e.prototype,"valuePosition",2),a([i({type:Boolean,reflect:!0})],e.prototype,"inverted",2),a([i({type:Boolean,reflect:!0,attribute:"show-label"})],e.prototype,"showLabel",2),a([i({attribute:!1})],e.prototype,"valueFormatter",2),e=a([h("sd-7-0-1-progress-bar")],e);export{e as a};
@@ -1,2 +1,2 @@
1
- import{a as n}from"./chunk.MEDJPDBB.js";import{a as e}from"./chunk.4ZZFYCXX.js";import{a,b as c,h as i}from"./chunk.Z44RDBCE.js";import{b as l,e as o}from"./chunk.OBAEIKIV.js";import{e as t}from"./chunk.6EV4YU6C.js";var r=class extends i{constructor(){super(...arguments);this.color="currentColor";this.localize=new n(this)}render(){return o`<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" role="progressbar" aria-label="${this.localize.term("loading")}"><circle class="${e("dot",{primary:"text-primary animate-loader-primary",white:"text-white animate-loader-white",currentColor:"animate-loader-current"}[this.color])}" cx="20" cy="12" r="2" fill="currentColor"/><circle class="${e("dot",{primary:"text-primary animate-loader-primary",white:"text-white animate-loader-white",currentColor:"animate-loader-current"}[this.color])}" cx="12" cy="12" r="2" fill="currentColor"/><circle class="${e("dot",{primary:"text-primary animate-loader-primary",white:"text-white animate-loader-white",currentColor:"animate-loader-current"}[this.color])}" cx="4" cy="12" r="2" fill="currentColor"/></svg>`}};r.styles=[...i.styles,l`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
- :host{display:inline-block;width:1em;height:1em}.dot:nth-child(2){animation-delay:.1s}.dot:nth-child(1){animation-delay:.2s}`],t([c({type:String,reflect:!0})],r.prototype,"color",2),r=t([a("sd-7-0-0-loader")],r);export{r as a};
1
+ import{a as n}from"./chunk.MEDJPDBB.js";import{a as e}from"./chunk.4ZZFYCXX.js";import{a,b as c,h as i}from"./chunk.J45556RK.js";import{b as l,e as o}from"./chunk.OBAEIKIV.js";import{e as t}from"./chunk.6EV4YU6C.js";var r=class extends i{constructor(){super(...arguments);this.color="currentColor";this.localize=new n(this)}render(){return o`<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" role="progressbar" aria-label="${this.localize.term("loading")}"><circle class="${e("dot",{primary:"text-primary animate-loader-primary",white:"text-white animate-loader-white",currentColor:"animate-loader-current"}[this.color])}" cx="20" cy="12" r="2" fill="currentColor"/><circle class="${e("dot",{primary:"text-primary animate-loader-primary",white:"text-white animate-loader-white",currentColor:"animate-loader-current"}[this.color])}" cx="12" cy="12" r="2" fill="currentColor"/><circle class="${e("dot",{primary:"text-primary animate-loader-primary",white:"text-white animate-loader-white",currentColor:"animate-loader-current"}[this.color])}" cx="4" cy="12" r="2" fill="currentColor"/></svg>`}};r.styles=[...i.styles,l`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
+ :host{display:inline-block;width:1em;height:1em}.dot:nth-child(2){animation-delay:.1s}.dot:nth-child(1){animation-delay:.2s}`],t([c({type:String,reflect:!0})],r.prototype,"color",2),r=t([a("sd-7-0-1-loader")],r);export{r as a};
@@ -1,2 +1,2 @@
1
- import{a as u}from"./chunk.CGQ2BPPZ.js";import{a as b}from"./chunk.MEDJPDBB.js";import{a}from"./chunk.4ZZFYCXX.js";import{a as n}from"./chunk.NYKJXI3Q.js";import{a as c,b as i,d as s,h as l}from"./chunk.Z44RDBCE.js";import{b as d,e as o}from"./chunk.OBAEIKIV.js";import{e}from"./chunk.6EV4YU6C.js";var v=0,t=class extends l{constructor(){super(...arguments);this.attrId=++v;this.componentId=`sd-7-0-0-tab-${this.attrId}`;this.hasSlotController=new u(this,"left");this.localize=new b(this);this.variant="default";this.active=!1;this.disabled=!1;this.visuallyDisabled=!1;this.panel=""}connectedCallback(){super.connectedCallback(),this.setAttribute("role","tab")}handleActiveChange(){this.setAttribute("aria-selected",this.active?"true":"false")}handleDisabledChange(){let r=this.disabled||this.visuallyDisabled;this.setAttribute("aria-disabled",r?"true":"false")}focus(r){this.tab.focus(r)}blur(){this.tab.blur()}render(){this.id=this.id.length>0?this.id:this.componentId;let r={left:this.hasSlotController.test("left")};return o`<div part="base" class="${a("inline-flex justify-center min-w-max items-center h-12 px-3 leading-none select-none cursor-pointer group relative choice-control-font-weight","outline-hidden focus-visible:focus-outline outline-2 !-outline-offset-2 transition-all duration-fast ease-in-out",this.variant==="container"?"tab-container-border bg-white rounded-[4px_4px_0_0]":"navigable-border-radius",this.variant==="container"&&this.active&&"tab--active-container-border bg-white",this.disabled||this.visuallyDisabled?"!cursor-not-allowed":"hover:sd-7-0-0-tab--hover-color-background",this.active&&"z-20 sd-7-0-0-tab--active-color-text")}" tabindex="${!this.active||this.disabled?"-1":"0"}"><div class="${a("flex h-full items-center justify-center whitespace-nowrap")}"><slot name="left" class="${a(r.left&&"block pr-2",this.disabled||this.visuallyDisabled?"sd-7-0-0-tab--disabled-color-text":this.active?"sd-7-0-0-tab--active-color-text":"sd-7-0-0-tab-color-text")}"></slot><slot class="${a(this.disabled||this.visuallyDisabled?"sd-7-0-0-tab--disabled-color-text":this.active?"sd-7-0-0-tab--active-color-text":"sd-7-0-0-tab-color-text")}"></slot>${this.variant==="container"?o`<div part="active-tab-indicator" class="${a("absolute bottom-0 h-1 bg-accent w-3/4 bottom-0 group-hover:w-[calc(100%-2px)] navigable__current-indicator-height navigable__current-indicator-border-radius")}"></div>`:""}<div part="hover-bottom-border" class="${a(!this.active&&!this.disabled&&"absolute bottom-0 left-0 w-full h-0.25 border-b sd-7-0-0-tab-color-border")}"></div></div></div>`}};t.styles=[...l.styles,d`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
2
- :host{box-sizing:border-box;display:inline-block}:host(:hover)::part(hover-bottom-border){border-bottom-color:rgba(var(--sd-color-border-neutral-400,195 195 195))}.tab-container-border::after{position:absolute;height:100%;width:100%;border-style:var(--tw-border-style);border-width:1px;border-color:transparent;--tw-content:'';content:var(--tw-content)}.tab--active-container-border::after{position:absolute;height:100%;width:100%;border-style:var(--tw-border-style);border-width:1px;border-color:rgba(var(--sd-color-border-neutral-400,195 195 195));transition-property:border;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)));transition-duration:var(--tw-duration,var(--default-transition-duration,150ms));--tw-duration:var(--sd-duration-medium, 300ms);transition-duration:var(--sd-duration-medium,300ms);--tw-ease:var(--ease-in-out, cubic-bezier(0.4, 0, 0.2, 1));transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1));--tw-content:'';content:var(--tw-content);border-bottom:none;border-radius:4px 4px 0 0}[part=active-tab-indicator]{--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x) var(--tw-scale-y);opacity:var(--sd-opacity-0,0);--tw-duration:var(--sd-duration-fast, 150ms);transition-duration:var(--sd-duration-fast,150ms);transition:width var(--sd-duration-fast) ease-in-out,opacity var(--sd-duration-fast) ease-in-out,transform var(--sd-duration-fast) ease-in-out var(--sd-duration-fast)}:host([active]) [part=active-tab-indicator]{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y);opacity:var(--sd-opacity-100,100%);transition:width var(--sd-duration-fast) ease-in-out,transform var(--sd-duration-fast) ease-in-out}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}`],e([s("[part=base]")],t.prototype,"tab",2),e([s("[part=active-tab-indicator]")],t.prototype,"currentIndicator",2),e([i({type:String,reflect:!0})],t.prototype,"variant",2),e([i({type:Boolean,reflect:!0})],t.prototype,"active",2),e([i({type:Boolean,reflect:!0})],t.prototype,"disabled",2),e([i({type:Boolean,reflect:!0,attribute:"visually-disabled"})],t.prototype,"visuallyDisabled",2),e([i({type:String,reflect:!0})],t.prototype,"panel",2),e([n("active")],t.prototype,"handleActiveChange",1),e([n(["disabled","visually-disabled"])],t.prototype,"handleDisabledChange",1),t=e([c("sd-7-0-0-tab")],t);export{t as a};
1
+ import{a as u}from"./chunk.CGQ2BPPZ.js";import{a as b}from"./chunk.MEDJPDBB.js";import{a}from"./chunk.4ZZFYCXX.js";import{a as n}from"./chunk.NYKJXI3Q.js";import{a as c,b as i,d as s,h as l}from"./chunk.J45556RK.js";import{b as d,e as o}from"./chunk.OBAEIKIV.js";import{e}from"./chunk.6EV4YU6C.js";var v=0,t=class extends l{constructor(){super(...arguments);this.attrId=++v;this.componentId=`sd-7-0-1-tab-${this.attrId}`;this.hasSlotController=new u(this,"left");this.localize=new b(this);this.variant="default";this.active=!1;this.disabled=!1;this.visuallyDisabled=!1;this.panel=""}connectedCallback(){super.connectedCallback(),this.setAttribute("role","tab")}handleActiveChange(){this.setAttribute("aria-selected",this.active?"true":"false")}handleDisabledChange(){let r=this.disabled||this.visuallyDisabled;this.setAttribute("aria-disabled",r?"true":"false")}focus(r){this.tab.focus(r)}blur(){this.tab.blur()}render(){this.id=this.id.length>0?this.id:this.componentId;let r={left:this.hasSlotController.test("left")};return o`<div part="base" class="${a("inline-flex justify-center min-w-max items-center h-12 px-3 leading-none select-none cursor-pointer group relative choice-control-font-weight","outline-hidden focus-visible:focus-outline outline-2 !-outline-offset-2 transition-all duration-fast ease-in-out",this.variant==="container"?"tab-container-border bg-white rounded-[4px_4px_0_0]":"navigable-border-radius",this.variant==="container"&&this.active&&"tab--active-container-border bg-white",this.disabled||this.visuallyDisabled?"!cursor-not-allowed":"hover:sd-7-0-1-tab--hover-color-background",this.active&&"z-20 sd-7-0-1-tab--active-color-text")}" tabindex="${!this.active||this.disabled?"-1":"0"}"><div class="${a("flex h-full items-center justify-center whitespace-nowrap")}"><slot name="left" class="${a(r.left&&"block pr-2",this.disabled||this.visuallyDisabled?"sd-7-0-1-tab--disabled-color-text":this.active?"sd-7-0-1-tab--active-color-text":"sd-7-0-1-tab-color-text")}"></slot><slot class="${a(this.disabled||this.visuallyDisabled?"sd-7-0-1-tab--disabled-color-text":this.active?"sd-7-0-1-tab--active-color-text":"sd-7-0-1-tab-color-text")}"></slot>${this.variant==="container"?o`<div part="active-tab-indicator" class="${a("absolute bottom-0 h-1 bg-accent w-3/4 bottom-0 group-hover:w-[calc(100%-2px)] navigable__current-indicator-height navigable__current-indicator-border-radius")}"></div>`:""}<div part="hover-bottom-border" class="${a(!this.active&&!this.disabled&&"absolute bottom-0 left-0 w-full h-0.25 border-b sd-7-0-1-tab-color-border")}"></div></div></div>`}};t.styles=[...l.styles,d`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
2
+ :host{box-sizing:border-box;display:inline-block}:host(:hover)::part(hover-bottom-border){border-bottom-color:rgba(var(--sd-color-border-neutral-400,195 195 195))}.tab-container-border::after{position:absolute;height:100%;width:100%;border-style:var(--tw-border-style);border-width:1px;border-color:transparent;--tw-content:'';content:var(--tw-content)}.tab--active-container-border::after{position:absolute;height:100%;width:100%;border-style:var(--tw-border-style);border-width:1px;border-color:rgba(var(--sd-color-border-neutral-400,195 195 195));transition-property:border;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)));transition-duration:var(--tw-duration,var(--default-transition-duration,150ms));--tw-duration:var(--sd-duration-medium, 300ms);transition-duration:var(--sd-duration-medium,300ms);--tw-ease:var(--ease-in-out, cubic-bezier(0.4, 0, 0.2, 1));transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1));--tw-content:'';content:var(--tw-content);border-bottom:none;border-radius:4px 4px 0 0}[part=active-tab-indicator]{--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x) var(--tw-scale-y);opacity:var(--sd-opacity-0,0);--tw-duration:var(--sd-duration-fast, 150ms);transition-duration:var(--sd-duration-fast,150ms);transition:width var(--sd-duration-fast) ease-in-out,opacity var(--sd-duration-fast) ease-in-out,transform var(--sd-duration-fast) ease-in-out var(--sd-duration-fast)}:host([active]) [part=active-tab-indicator]{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y);opacity:var(--sd-opacity-100,100%);transition:width var(--sd-duration-fast) ease-in-out,transform var(--sd-duration-fast) ease-in-out}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}`],e([s("[part=base]")],t.prototype,"tab",2),e([s("[part=active-tab-indicator]")],t.prototype,"currentIndicator",2),e([i({type:String,reflect:!0})],t.prototype,"variant",2),e([i({type:Boolean,reflect:!0})],t.prototype,"active",2),e([i({type:Boolean,reflect:!0})],t.prototype,"disabled",2),e([i({type:Boolean,reflect:!0,attribute:"visually-disabled"})],t.prototype,"visuallyDisabled",2),e([i({type:String,reflect:!0})],t.prototype,"panel",2),e([n("active")],t.prototype,"handleActiveChange",1),e([n(["disabled","visually-disabled"])],t.prototype,"handleDisabledChange",1),t=e([c("sd-7-0-1-tab")],t);export{t as a};
@@ -1,2 +1,2 @@
1
- import{a as n}from"./chunk.4ZZFYCXX.js";import{a,b as r,h as o}from"./chunk.Z44RDBCE.js";import{b as i,e as l}from"./chunk.OBAEIKIV.js";import{e}from"./chunk.6EV4YU6C.js";var t=class extends o{constructor(){super(...arguments);this.orientation="horizontal";this.inverted=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","separator")}render(){return l`<hr part="main" aria-orientation="${this.orientation}" class="${n(this.inverted?"sd-7-0-0-divider--inverted-color-border":"border-neutral-400",this.orientation==="horizontal"?"border-t w-full":" border-l h-full")}">`}};t.styles=[...o.styles,i`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
- :host{margin:0}:host(sd-7-0-0-divider[orientation=horizontal]){display:block}:host(sd-7-0-0-divider[orientation=vertical]){display:inline-block}`],e([r({type:String,reflect:!0})],t.prototype,"orientation",2),e([r({type:Boolean,reflect:!0})],t.prototype,"inverted",2),t=e([a("sd-7-0-0-divider")],t);export{t as a};
1
+ import{a as n}from"./chunk.4ZZFYCXX.js";import{a,b as r,h as o}from"./chunk.J45556RK.js";import{b as i,e as l}from"./chunk.OBAEIKIV.js";import{e}from"./chunk.6EV4YU6C.js";var t=class extends o{constructor(){super(...arguments);this.orientation="horizontal";this.inverted=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","separator")}render(){return l`<hr part="main" aria-orientation="${this.orientation}" class="${n(this.inverted?"sd-7-0-1-divider--inverted-color-border":"border-neutral-400",this.orientation==="horizontal"?"border-t w-full":" border-l h-full")}">`}};t.styles=[...o.styles,i`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
+ :host{margin:0}:host(sd-7-0-1-divider[orientation=horizontal]){display:block}:host(sd-7-0-1-divider[orientation=vertical]){display:inline-block}`],e([r({type:String,reflect:!0})],t.prototype,"orientation",2),e([r({type:Boolean,reflect:!0})],t.prototype,"inverted",2),t=e([a("sd-7-0-1-divider")],t);export{t as a};
@@ -1,2 +1,2 @@
1
- import{a as s}from"./chunk.LHSR56PH.js";import{a as d}from"./chunk.CGQ2BPPZ.js";import{a as r}from"./chunk.4ZZFYCXX.js";import{a as h,b as l,d as c,h as a}from"./chunk.Z44RDBCE.js";import{b as o,e as n}from"./chunk.OBAEIKIV.js";import{e as t}from"./chunk.6EV4YU6C.js";var e=class extends a{constructor(){super(...arguments);this.hasSlotController=new d(this,"[default]","icon-left","icon-right");this.standalone=!1;this.size="inherit";this.inverted=!1;this.href="";this.visuallyDisabled=!1}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}handleClick(i){this.visuallyDisabled&&(i.preventDefault(),i.stopPropagation())}focus(i){this.button.focus(i)}blur(){this.button.blur()}render(){let i={label:this.hasSlotController.test("[default]"),"icon-left":this.hasSlotController.test("icon-left"),"icon-right":this.hasSlotController.test("icon-right")};return n`<a part="base" class="${r(this.standalone?"flex items-start":"inline",this.href&&!this.visuallyDisabled?"cursor-pointer":"",this.visuallyDisabled?"cursor-not-allowed focus-visible:focus-outline":"",{sm:"text-sm",lg:"text-base",inherit:""}[this.size],{disabled:this.inverted?"text-neutral-600":"text-neutral-500",enabled:this.inverted?"text-white hover:text-primary-200 active:text-primary-400 focus-visible:focus-outline-inverted":"interactive--default-color-text hover:text-primary-500 active:interactive--active-color-text focus-visible:focus-outline",visuallyDisabled:this.inverted?"text-neutral-600":"text-neutral-500"}[this.href&&!this.visuallyDisabled?"enabled":this.visuallyDisabled?"visuallyDisabled":"disabled"])}" href="${s(this.href||void 0)}" target="${s(this.target||void 0)}" download="${s(this.download)}" rel="${s(this.target?"noreferrer noopener":void 0)}" aria-disabled="${!this.href||this.visuallyDisabled?"true":"false"}" tabindex="${this.href?"0":"-1"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" @click="${this.handleClick}"><slot name="icon-left" part="icon-left" class="${r("inline",i["icon-left"]&&(this.standalone?{sm:"mr-1",lg:"mr-2",inherit:"mr-[0.5em]"}[this.size]:"mr-[0.25em]"))}"></slot><span part="label" class="inline underline underline-offset-2"><slot></slot></span><slot name="icon-right" part="icon-right" class="${r("inline",i["icon-right"]&&(this.standalone?{sm:"ml-1",lg:"ml-2",inherit:"ml-[0.5em]"}[this.size]:"ml-[0.25em]"))}"></slot></a>`}};e.styles=[...a.styles,o`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
- ::slotted(sd-7-0-0-icon){font-size:1.25em;margin-bottom:-.25em}:host([size=sm][standalone]) ::slotted(sd-7-0-0-icon){font-size:var(--sd-text-base,1rem);line-height:var(--tw-leading,var(--text-base--line-height,calc(1.5 / 1)))}:host([size=lg][standalone]) ::slotted(sd-7-0-0-icon){font-size:var(--sd-text-xl,1.5rem);line-height:var(--tw-leading,var(--text-xl--line-height,calc(1.75 / 1.25)))}`],t([c("a")],e.prototype,"button",2),t([l({type:Boolean,reflect:!0})],e.prototype,"standalone",2),t([l({type:String,reflect:!0})],e.prototype,"size",2),t([l({type:Boolean,reflect:!0})],e.prototype,"inverted",2),t([l({type:String,reflect:!0})],e.prototype,"href",2),t([l({type:Boolean,attribute:"visually-disabled",reflect:!0})],e.prototype,"visuallyDisabled",2),t([l({type:String,reflect:!0})],e.prototype,"target",2),t([l({reflect:!0})],e.prototype,"download",2),e=t([h("sd-7-0-0-link")],e);export{e as a};
1
+ import{a as s}from"./chunk.LHSR56PH.js";import{a as d}from"./chunk.CGQ2BPPZ.js";import{a as r}from"./chunk.4ZZFYCXX.js";import{a as h,b as l,d as c,h as a}from"./chunk.J45556RK.js";import{b as o,e as n}from"./chunk.OBAEIKIV.js";import{e as t}from"./chunk.6EV4YU6C.js";var e=class extends a{constructor(){super(...arguments);this.hasSlotController=new d(this,"[default]","icon-left","icon-right");this.standalone=!1;this.size="inherit";this.inverted=!1;this.href="";this.visuallyDisabled=!1}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}handleClick(i){this.visuallyDisabled&&(i.preventDefault(),i.stopPropagation())}focus(i){this.button.focus(i)}blur(){this.button.blur()}render(){let i={label:this.hasSlotController.test("[default]"),"icon-left":this.hasSlotController.test("icon-left"),"icon-right":this.hasSlotController.test("icon-right")};return n`<a part="base" class="${r(this.standalone?"flex items-start":"inline",this.href&&!this.visuallyDisabled?"cursor-pointer":"",this.visuallyDisabled?"cursor-not-allowed focus-visible:focus-outline":"",{sm:"text-sm",lg:"text-base",inherit:""}[this.size],{disabled:this.inverted?"text-neutral-600":"text-neutral-500",enabled:this.inverted?"text-white hover:text-primary-200 active:text-primary-400 focus-visible:focus-outline-inverted":"interactive--default-color-text hover:text-primary-500 active:interactive--active-color-text focus-visible:focus-outline",visuallyDisabled:this.inverted?"text-neutral-600":"text-neutral-500"}[this.href&&!this.visuallyDisabled?"enabled":this.visuallyDisabled?"visuallyDisabled":"disabled"])}" href="${s(this.href||void 0)}" target="${s(this.target||void 0)}" download="${s(this.download)}" rel="${s(this.target?"noreferrer noopener":void 0)}" aria-disabled="${!this.href||this.visuallyDisabled?"true":"false"}" tabindex="${this.href?"0":"-1"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" @click="${this.handleClick}"><slot name="icon-left" part="icon-left" class="${r("inline",i["icon-left"]&&(this.standalone?{sm:"mr-1",lg:"mr-2",inherit:"mr-[0.5em]"}[this.size]:"mr-[0.25em]"))}"></slot><span part="label" class="inline underline underline-offset-2"><slot></slot></span><slot name="icon-right" part="icon-right" class="${r("inline",i["icon-right"]&&(this.standalone?{sm:"ml-1",lg:"ml-2",inherit:"ml-[0.5em]"}[this.size]:"ml-[0.25em]"))}"></slot></a>`}};e.styles=[...a.styles,o`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
+ ::slotted(sd-7-0-1-icon){font-size:1.25em;margin-bottom:-.25em}:host([size=sm][standalone]) ::slotted(sd-7-0-1-icon){font-size:var(--sd-text-base,1rem);line-height:var(--tw-leading,var(--text-base--line-height,calc(1.5 / 1)))}:host([size=lg][standalone]) ::slotted(sd-7-0-1-icon){font-size:var(--sd-text-xl,1.5rem);line-height:var(--tw-leading,var(--text-xl--line-height,calc(1.75 / 1.25)))}`],t([c("a")],e.prototype,"button",2),t([l({type:Boolean,reflect:!0})],e.prototype,"standalone",2),t([l({type:String,reflect:!0})],e.prototype,"size",2),t([l({type:Boolean,reflect:!0})],e.prototype,"inverted",2),t([l({type:String,reflect:!0})],e.prototype,"href",2),t([l({type:Boolean,attribute:"visually-disabled",reflect:!0})],e.prototype,"visuallyDisabled",2),t([l({type:String,reflect:!0})],e.prototype,"target",2),t([l({reflect:!0})],e.prototype,"download",2),e=t([h("sd-7-0-1-link")],e);export{e as a};
@@ -1,4 +1,4 @@
1
- import{a as s}from"./chunk.LHSR56PH.js";import{a as n,b as o}from"./chunk.NL7YFV4O.js";import{b as d}from"./chunk.W5O4FM6B.js";import{a as r}from"./chunk.4ZZFYCXX.js";import{a as v,b as a,h as l}from"./chunk.Z44RDBCE.js";import{b as m}from"./chunk.OBAEIKIV.js";import{e}from"./chunk.6EV4YU6C.js";var t=class extends l{constructor(){super(...arguments);this.variant="main";this.state="default";this.animated=!1;this.notInteractive=!1;this.href="";this.label="";this.marker={cluster:`
1
+ import{a as s}from"./chunk.LHSR56PH.js";import{a as n,b as o}from"./chunk.NL7YFV4O.js";import{b as d}from"./chunk.W5O4FM6B.js";import{a as r}from"./chunk.4ZZFYCXX.js";import{a as v,b as a,h as l}from"./chunk.J45556RK.js";import{b as m}from"./chunk.OBAEIKIV.js";import{e}from"./chunk.6EV4YU6C.js";var t=class extends l{constructor(){super(...arguments);this.variant="main";this.state="default";this.animated=!1;this.notInteractive=!1;this.href="";this.label="";this.marker={cluster:`
2
2
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50">
3
3
  <circle cx="25" cy="25" opacity="1" r="20" />
4
4
  </svg>`,main:`
@@ -7,5 +7,5 @@ import{a as s}from"./chunk.LHSR56PH.js";import{a as n,b as o}from"./chunk.NL7YFV
7
7
  </svg> `,place:`
8
8
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 75">
9
9
  <path fill-rule="evenodd" d="M51 49A29 29 0 0 0 30 0 29 29 0 0 0 9 49l21 22 21-22Z" clip-rule="evenodd" />
10
- </svg>`}}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}isLink(){return!!this.href}render(){let i=this.isLink(),c=this.notInteractive?n`div`:i?n`a`:n`button`,h=d(this.marker[this.variant]),p=`url("data:image/svg+xml;utf8,${encodeURIComponent(this.marker[this.variant]).replace(/#/g,"%23")}")`;return o`<${c} part="base" class="${r("relative flex justify-center",!this.notInteractive&&"group focus-visible:focus-outline")}" href="${s(i?this.href:void 0)}" target="${s(i?this.target:void 0)}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" role="${s(this.notInteractive||i?void 0:"button")}" aria-label="${s(!this.notInteractive&&this.label?this.label:void 0)}" aria-labelledby="${s(!this.notInteractive&&!this.label?"content":void 0)}"><div part="marker" class="${r("relative inline-flex",this.animated&&(this.variant==="main"||this.variant==="place")&&"animate-bounce-once",this.variant==="cluster"&&this.state==="hover"&&"scale-110",this.variant==="cluster"&&!this.notInteractive&&"transition-transform duration-fast ease-in-out hover:scale-110",{cluster:"sd-7-0-0-map-marker--cluster-color-text",main:"sd-color-fill-accent",place:"sd-7-0-0-map-marker--pin-color-text"}[this.variant])}"><div id="motion-wrapper" part="motion-wrapper" class="${r("absolute inset-0 overflow-hidden pointer-events-none",{cluster:"sd-7-0-0-map-marker--cluster--default-color-background group-hover:sd-7-0-0-map-marker--cluster--hover-color-background",main:"sd-7-0-0-map-marker--main-color-background",place:"sd-7-0-0-map-marker--pin--default-color-background"}[this.variant])}" style="mask-image:${p};-webkit-mask-image:${p}"><div class="${r("absolute inset-0 transition-transform ease-in-out duration-fast translate-y-full group-hover:translate-y-0 group-active:translate-y-0",["hover","active"].includes(this.state)&&"!translate-y-0")}"><div class="${r("min-w-full min-h-full skew-y-[-11deg]",{cluster:"",main:this.state==="active"?"bg-accent-700":this.state==="hover"?"bg-accent-550":"group-hover:bg-accent-550 group-active:bg-accent-700",place:this.state==="active"||this.state==="hover"?"sd-7-0-0-map-marker--pin--hover-color-background":"group-active:bg-primary-200"}[this.variant])}"></div></div>${this.variant==="main"?o`<div id="marker-circle" class="absolute rounded-full"></div>`:""}</div>${h} ${this.variant==="cluster"?o`<div id="cluster-border" class="${r("absolute inset-0 sd-7-0-0-map-marker--cluster--default-color-background rounded-full opacity-30 hover:sd-7-0-0-map-marker--cluster--hover-color-background",this.state==="hover"&&"sd-7-0-0-map-marker--cluster--hover-color-background")}"></div>`:""}</div><div id="content" part="content" class="${r("absolute self-center pointer-events-none",this.variant==="cluster"&&"font-bold sd-7-0-0-map-marker--cluster-color-text",this.variant==="place"&&"font-bold sd-7-0-0-map-marker--pin-color-text")}"><slot></slot></div></${c}>`}};t.styles=[...l.styles,m`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
11
- :host{display:block}#motion-wrapper{mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat;mask-position:center;-webkit-mask-position:center;mask-size:contain;-webkit-mask-size:contain}:host([variant=cluster]) [part=base],svg{width:calc(var(--sd-spacing-12,3rem) * var(--map-marker-scaling,1))}:host([variant=cluster]) [part=base]{height:calc(var(--sd-spacing-12,3rem) * var(--map-marker-scaling,1))}:host(:not([variant=cluster])) [part=base]{height:calc(var(--sd-spacing-16,4rem) * var(--map-marker-scaling,1))}:host([variant=cluster]) [part=content]{font-size:calc(var(--sd-font-size-sm,.875rem) * var(--map-marker-scaling,1))}:host([variant=place]) [part=content]{margin-top:calc(var(--sd-spacing-2,.5rem) * -1);font-size:calc(var(--sd-font-size-3xl,2rem) * var(--map-marker-scaling,1))}:host([variant=cluster]) [part=motion-wrapper]>div>div{background-color:rgba(var(--sd-map-marker--cluster--hover-color-background))}:host([variant=main]) [part=marker],:host([variant=place]) [part=marker]{--tw-drop-shadow-size:drop-shadow(var(--sd-drop-shadow, 0px 1px 3px rgba(81, 81, 81, 0.75)));--tw-drop-shadow:drop-shadow(var(--sd-drop-shadow, 0px 1px 3px rgba(81, 81, 81, 0.75)));filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}:host([variant=main]) #marker-circle{width:calc(var(--sd-spacing-4,1rem) * var(--map-marker-scaling,1));height:calc(var(--sd-spacing-4,1rem) * var(--map-marker-scaling,1));left:calc(var(--sd-spacing-4,1rem) * var(--map-marker-scaling,1));right:calc(var(--sd-spacing-4,1rem) * var(--map-marker-scaling,1));top:calc(var(--sd-spacing-4,1rem) * var(--map-marker-scaling,1))}#marker-circle{background-color:rgba(var(--sd-color-icon-fill-white,rgba(var(--sd-color-white))))}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}`],e([a({type:String,reflect:!0})],t.prototype,"variant",2),e([a({type:String,reflect:!0})],t.prototype,"state",2),e([a({type:Boolean,reflect:!0})],t.prototype,"animated",2),e([a({type:Boolean,reflect:!0,attribute:"not-interactive"})],t.prototype,"notInteractive",2),e([a({type:String,reflect:!0})],t.prototype,"href",2),e([a({type:String,reflect:!0})],t.prototype,"target",2),e([a({reflect:!0})],t.prototype,"label",2),t=e([v("sd-7-0-0-map-marker")],t);export{t as a};
10
+ </svg>`}}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}isLink(){return!!this.href}render(){let i=this.isLink(),c=this.notInteractive?n`div`:i?n`a`:n`button`,h=d(this.marker[this.variant]),p=`url("data:image/svg+xml;utf8,${encodeURIComponent(this.marker[this.variant]).replace(/#/g,"%23")}")`;return o`<${c} part="base" class="${r("relative flex justify-center",!this.notInteractive&&"group focus-visible:focus-outline")}" href="${s(i?this.href:void 0)}" target="${s(i?this.target:void 0)}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" role="${s(this.notInteractive||i?void 0:"button")}" aria-label="${s(!this.notInteractive&&this.label?this.label:void 0)}" aria-labelledby="${s(!this.notInteractive&&!this.label?"content":void 0)}"><div part="marker" class="${r("relative inline-flex",this.animated&&(this.variant==="main"||this.variant==="place")&&"animate-bounce-once",this.variant==="cluster"&&this.state==="hover"&&"scale-110",this.variant==="cluster"&&!this.notInteractive&&"transition-transform duration-fast ease-in-out hover:scale-110",{cluster:"sd-7-0-1-map-marker--cluster-color-text",main:"sd-color-fill-accent",place:"sd-7-0-1-map-marker--pin-color-text"}[this.variant])}"><div id="motion-wrapper" part="motion-wrapper" class="${r("absolute inset-0 overflow-hidden pointer-events-none",{cluster:"sd-7-0-1-map-marker--cluster--default-color-background group-hover:sd-7-0-1-map-marker--cluster--hover-color-background",main:"sd-7-0-1-map-marker--main-color-background",place:"sd-7-0-1-map-marker--pin--default-color-background"}[this.variant])}" style="mask-image:${p};-webkit-mask-image:${p}"><div class="${r("absolute inset-0 transition-transform ease-in-out duration-fast translate-y-full group-hover:translate-y-0 group-active:translate-y-0",["hover","active"].includes(this.state)&&"!translate-y-0")}"><div class="${r("min-w-full min-h-full skew-y-[-11deg]",{cluster:"",main:this.state==="active"?"bg-accent-700":this.state==="hover"?"bg-accent-550":"group-hover:bg-accent-550 group-active:bg-accent-700",place:this.state==="active"||this.state==="hover"?"sd-7-0-1-map-marker--pin--hover-color-background":"group-active:bg-primary-200"}[this.variant])}"></div></div>${this.variant==="main"?o`<div id="marker-circle" class="absolute rounded-full"></div>`:""}</div>${h} ${this.variant==="cluster"?o`<div id="cluster-border" class="${r("absolute inset-0 sd-7-0-1-map-marker--cluster--default-color-background rounded-full opacity-30 hover:sd-7-0-1-map-marker--cluster--hover-color-background",this.state==="hover"&&"sd-7-0-1-map-marker--cluster--hover-color-background")}"></div>`:""}</div><div id="content" part="content" class="${r("absolute self-center pointer-events-none",this.variant==="cluster"&&"font-bold sd-7-0-1-map-marker--cluster-color-text",this.variant==="place"&&"font-bold sd-7-0-1-map-marker--pin-color-text")}"><slot></slot></div></${c}>`}};t.styles=[...l.styles,m`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
11
+ :host{display:block}#motion-wrapper{mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat;mask-position:center;-webkit-mask-position:center;mask-size:contain;-webkit-mask-size:contain}:host([variant=cluster]) [part=base],svg{width:calc(var(--sd-spacing-12,3rem) * var(--map-marker-scaling,1))}:host([variant=cluster]) [part=base]{height:calc(var(--sd-spacing-12,3rem) * var(--map-marker-scaling,1))}:host(:not([variant=cluster])) [part=base]{height:calc(var(--sd-spacing-16,4rem) * var(--map-marker-scaling,1))}:host([variant=cluster]) [part=content]{font-size:calc(var(--sd-font-size-sm,.875rem) * var(--map-marker-scaling,1))}:host([variant=place]) [part=content]{margin-top:calc(var(--sd-spacing-2,.5rem) * -1);font-size:calc(var(--sd-font-size-3xl,2rem) * var(--map-marker-scaling,1))}:host([variant=cluster]) [part=motion-wrapper]>div>div{background-color:rgba(var(--sd-map-marker--cluster--hover-color-background))}:host([variant=main]) [part=marker],:host([variant=place]) [part=marker]{--tw-drop-shadow-size:drop-shadow(var(--sd-drop-shadow, 0px 1px 3px rgba(81, 81, 81, 0.75)));--tw-drop-shadow:drop-shadow(var(--sd-drop-shadow, 0px 1px 3px rgba(81, 81, 81, 0.75)));filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}:host([variant=main]) #marker-circle{width:calc(var(--sd-spacing-4,1rem) * var(--map-marker-scaling,1));height:calc(var(--sd-spacing-4,1rem) * var(--map-marker-scaling,1));left:calc(var(--sd-spacing-4,1rem) * var(--map-marker-scaling,1));right:calc(var(--sd-spacing-4,1rem) * var(--map-marker-scaling,1));top:calc(var(--sd-spacing-4,1rem) * var(--map-marker-scaling,1))}#marker-circle{background-color:rgba(var(--sd-color-icon-fill-white,rgba(var(--sd-color-white))))}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}`],e([a({type:String,reflect:!0})],t.prototype,"variant",2),e([a({type:String,reflect:!0})],t.prototype,"state",2),e([a({type:Boolean,reflect:!0})],t.prototype,"animated",2),e([a({type:Boolean,reflect:!0,attribute:"not-interactive"})],t.prototype,"notInteractive",2),e([a({type:String,reflect:!0})],t.prototype,"href",2),e([a({type:String,reflect:!0})],t.prototype,"target",2),e([a({reflect:!0})],t.prototype,"label",2),t=e([v("sd-7-0-1-map-marker")],t);export{t as a};
@@ -1,2 +1,2 @@
1
- import{a as b}from"./chunk.CGQ2BPPZ.js";import{a as y}from"./chunk.MEDJPDBB.js";import{a as r}from"./chunk.4ZZFYCXX.js";import{a as g,b as d,c as o,d as u,h as p}from"./chunk.Z44RDBCE.js";import{b as v,e as a}from"./chunk.OBAEIKIV.js";import{a as h}from"./chunk.WNP2V63C.js";import{e as i}from"./chunk.6EV4YU6C.js";var t=class extends p{constructor(){super();this.localize=new y(this);this.hasSlotController=new b(this,"transcript");this.reversedLayout=!1;this.hideTimestamps=!1;this.animated=!1;this.inverted=!1;this.speed=1;this.currentTime=this.formatTime(0);this.duration="";this.isPlaying=!1;this.isMuted=!1;this.isTranscriptOpen=!1;this.progress=0;this.updateCurrentTime=this.updateCurrentTime.bind(this),this.handleAudioEnd=this.handleAudioEnd.bind(this),this.handleAudioProgress=this.handleAudioProgress.bind(this),this.handleAudioProgressKeydown=this.handleAudioProgressKeydown.bind(this),this.handleTranscriptDrawerToggle=this.handleTranscriptDrawerToggle.bind(this)}firstUpdated(){this.audioElement&&(this.audioElement.addEventListener("timeupdate",this.updateCurrentTime),this.audioElement.addEventListener("ended",this.handleAudioEnd),this.audioElement.setAttribute("controlsList","nodownload"),document.addEventListener("sd-after-hide",this.handleTranscriptDrawerToggle),this.audioElement.playbackRate=this.speed,this.progressSlider.tooltipFormatter=e=>this.localize.term("seconds",Number(e).toFixed(0)),this.animated&&this.initAnimation())}updated(e){if(e.has("animated")){let s=e.get("animated");!s&&this.animated?this.initAnimation():s&&!this.animated&&this.clear()}}get audioElement(){let e=this.shadowRoot.querySelector("slot");return(e==null?void 0:e.assignedElements().length)>0?e.assignedElements()[0]:null}updateCurrentTime(){if(!this.audioElement)return;let e=this.audioElement.currentTime;this.currentTime=this.formatTime(e),this.progress=e,this.progressSlider&&(this.progressSlider.value=this.progress.toString())}updateAudioDuration(){if(this.audioElement){if(isNaN(this.audioElement.duration)){setTimeout(()=>{this.updateAudioDuration()},100);return}this.duration=this.formatTime(this.audioElement.duration),this.progressSlider.max=this.audioElement.duration}}playAudio(){this.audioElement&&(this.isPlaying=!0,this.audioElement.play(),this.emit("sd-playback-start"),this.animated&&this.draw())}pauseAudio(){this.audioElement&&(this.isPlaying=!1,this.audioElement.pause(),this.emit("sd-playback-pause"),this.animated&&this.stopAnimation())}handleAudioEnd(){this.emit("sd-playback-end"),this.isPlaying=!1,this.progress=0,this.progressSlider.value="0",this.currentTime=this.formatTime(0),this.animated&&this.stopAnimation()}toggleMute(){this.audioElement&&(this.isMuted=!this.isMuted,this.isMuted?(this.emit("sd-playback-mute"),this.audioElement.muted=!0):(this.emit("sd-playback-unmute"),this.audioElement.muted=!1))}toggleMuteKeydown(e){e.key==="Enter"&&(e.preventDefault(),this.toggleMute())}togglePlaybackSpeed(){this.audioElement&&(this.emit("sd-playback-speed"),this.speed=this.speed===1.5?1:this.speed+.25,this.audioElement.playbackRate=this.speed)}togglePlaybackSpeedKeydown(e){e.key==="Enter"&&(e.preventDefault(),this.togglePlaybackSpeed())}formatTime(e){let s=Math.floor(e/60).toString().padStart(2,"0"),c=Math.floor(e%60).toString().padStart(2,"0");return`${s}:${c}`}handleAudioProgress(){if(!this.audioElement)return;let e=Number(this.progressSlider.value);this.audioElement.currentTime=e,this.progress=e,this.currentTime=this.formatTime(e)}handleAudioProgressKeydown(e){e.key==="ArrowRight"&&(this.progressSlider.value=(Number(this.progressSlider.value)+1).toString(),this.handleAudioProgress()),e.key==="ArrowLeft"&&(this.progressSlider.value=(Number(this.progressSlider.value)-1).toString(),this.handleAudioProgress())}handleTranscriptDrawerToggle(){this.isTranscriptOpen=!this.isTranscriptOpen}handleThumbGrab(){var e;(e=this.audioElement)==null||e.pause()}handleThumbRelease(){var e;this.isPlaying&&((e=this.audioElement)==null||e.play())}showTranscript(){this.emit("sd-transcript-click"),this.drawer.open=!0,this.handleTranscriptDrawerToggle()}showTranscriptKeydown(e){(e.key==="Enter"||e.key===" ")&&this.showTranscript()}rgbToHex(e){let s=e.match(/\d+/g);if((s==null?void 0:s.length)===3){let c=parseInt(s[0]),m=parseInt(s[1]),n=parseInt(s[2]),l=f=>f.toString(16).padStart(2,"0");return`#${l(c)}${l(m)}${l(n)}`.toUpperCase()}return null}onThemeChange(){this.clear(),setTimeout(this.initAnimation.bind(this),this.token("--sd-duration-fast",150))}initAnimation(){var l;let e=(l=this.canvas)==null?void 0:l.getContext("2d");if(!e)return;this.context=e;let s=this.audioPlayerContainer.querySelector(".playback-speed"),m=window.getComputedStyle(s).color,n=this.inverted?"#FFFFFF33":this.rgbToHex(m)+"33";this.waveList=[new h({canvas:this.canvas,color:n,phase:240,shift:1.5,amplitude:230,frequency:.012,damping:1}),new h({canvas:this.canvas,color:n,phase:180,shift:2.5,amplitude:250,frequency:.005,damping:1}),new h({canvas:this.canvas,color:n,phase:180,shift:-2.5,amplitude:250,frequency:.005,damping:1}),new h({canvas:this.canvas,color:n,phase:180,shift:-1,amplitude:200,frequency:.018,damping:1}),new h({canvas:this.canvas,color:n,phase:180,shift:1.5,amplitude:150,frequency:.01,damping:1})],this.animated&&this.drawStillWaves()}drawStillWaves(){this.waveList.forEach(e=>{e.redraw()})}stopAnimation(){this.isPlaying=!1}clear(){!this.context||!this.canvas||this.context.clearRect(0,0,this.canvas.width,this.canvas.height)}async draw(){!this.isPlaying||!this.animated||(this.clear(),this.waveList.forEach(e=>{e.redraw()}),await new Promise(e=>{setTimeout(e,1e3/30)}),await this.draw())}render(){let e=a`<div class="${r("controls grid grid-cols-3 justify-items-center items-center",this.reversedLayout?"mt-2":"mb-2",!this.animated&&"relative",this.animated&&!this.reversedLayout&&"absolute -top-4 left-0 w-full")}" part="audio-controls"><button class="${r("playback-speed justify-self-start text-base font-bold hover:cursor-pointer sd-interactive",this.inverted&&"sd-interactive--inverted")}" aria-label="${this.localize.term("playbackSpeed")} (${this.speed}x)" @click="${this.togglePlaybackSpeed}" @keydown="${this.togglePlaybackSpeedKeydown}" part="playback-speed">${this.speed}x</button><sd-7-0-0-button ?inverted="${!!this.inverted}" part="play-button" size="lg" @click="${this.isPlaying?this.pauseAudio:this.playAudio}" aria-label="${this.isPlaying?this.localize.term("pauseAudio"):this.localize.term("playAudio")}" title="${this.isPlaying?this.localize.term("pauseAudio"):this.localize.term("playAudio")}" class="mb-4">${this.isPlaying?a`<slot name="pause-icon"><sd-7-0-0-icon class="text-xl" name="pause" library="_internal"></sd-7-0-0-icon></slot>`:a`<slot name="play-icon"><sd-7-0-0-icon class="text-xl" name="play" library="_internal"></sd-7-0-0-icon></slot>`}</sd-7-0-0-button><div class="flex items-center gap-6 justify-self-end">${this.hasSlotController.test("transcript")?a`<button class="${r("w-6 h-6 hover:cursor-pointer sd-interactive",this.inverted&&"sd-interactive--inverted")}" aria-label="${this.isTranscriptOpen?this.localize.term("transcriptIsOpen"):this.localize.term("openTranscript")}" @click="${this.showTranscript}" @keydown="${this.showTranscriptKeydown}" part="transcript"><sd-7-0-0-icon class="w-6 h-6" name="transcript" library="_internal"></sd-7-0-0-icon></button>`:null} <button class="${r("w-6 h-6 hover:cursor-pointer sd-interactive",this.inverted&&"sd-interactive--inverted")}" part="volume" aria-label="${this.isMuted?this.localize.term("unmute"):this.localize.term("mute")}" @click="${this.toggleMute}" @keydown="${this.toggleMuteKeydown}"><sd-7-0-0-icon class="w-6 h-6" name="${this.isMuted?"mute":"volume"}" library="_internal"></sd-7-0-0-icon></button></div></div>`,s=a`<div class="${r("w-full flex justify-between",this.reversedLayout?"mb-0.5":"mt-0.5",this.animated&&this.reversedLayout&&"absolute bottom-0 left-0 !mb-4")}" part="timestamps"><div class="${r("current-time text-sm",this.inverted?"text-primary-400":"text-neutral-700")}">${this.currentTime}</div><div class="${r("current-time text-sm",this.inverted?"text-primary-400":"text-neutral-700")}">${this.duration}</div></div>`;return a`<div class="${r("w-full flex relative",this.reversedLayout?"flex-col-reverse":"flex-col")}" aria-label="${this.localize.term("audioPlayer")}" part="audio-player"><slot @slotchange="${this.updateAudioDuration}"></slot>${!this.animated||this.animated&&this.reversedLayout?e:null}<div class="relative">${this.animated&&!this.reversedLayout?a`${e}`:null} ${this.animated?a`<canvas class="w-full h-16 -mb-2"></canvas>`:null} ${!this.hideTimestamps&&this.animated&&this.reversedLayout?s:null}<sd-7-0-0-range part="progress-slider" tooltip="hidden" min="0" max="100" step="0.001" label="${this.localize.term("seekBar")}" @mousedown="${this.handleThumbGrab}" @touchstart="${this.handleThumbGrab}" @mouseup="${this.handleThumbRelease}" @touchend="${this.handleThumbRelease}" @sd-7-0-0-input="${this.handleAudioProgress}" @keydown="${this.handleAudioProgressKeydown}"></sd-7-0-0-range></div>${this.hasSlotController.test("transcript")?a`<sd-7-0-0-drawer><slot name="transcript"></slot></sd-7-0-0-drawer>`:null} ${!this.hideTimestamps&&(!this.animated||!this.reversedLayout)?s:null}</div><sd-7-0-0-theme-listener></sd-7-0-0-theme-listener>`}};t.styles=[...p.styles,v`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
- sd-7-0-0-button::part(base){display:flex;height:var(--sd-spacing-12,3rem);width:var(--sd-spacing-12,3rem);align-items:center;justify-content:center;border-radius:var(--sd-radius-full,624.9375rem)}sd-7-0-0-button::part(motion-wrapper){border-radius:var(--sd-radius-full,624.9375rem)}sd-7-0-0-button::part(label){display:flex;flex-grow:0;align-items:center}sd-7-0-0-range::part(form-control-label){display:none}:host([inverted]) sd-7-0-0-range::part(thumb){outline-color:rgba(var(--sd-color-border-white,var(--sd-color-white,255 255 255)));background-color:rgba(var(--sd-color-icon-fill-white,rgba(var(--sd-color-white))))}:host([animated]) sd-7-0-0-range::part(track){background-color:transparent}:host([inverted]:not([animated])) sd-7-0-0-range::part(track){background-color:rgba(var(--sd-audio__slide-bar--inverted-color-background,rgba(var(--sd-color-primary-400))))}:host([inverted]:not([animated])) sd-7-0-0-range::part(active-track){background-color:rgba(var(--sd-audio__track-bar--inverted-color-background,rgba(var(--sd-color-white))))}`],i([d({type:Boolean,reflect:!0,attribute:"reversed-layout"})],t.prototype,"reversedLayout",2),i([d({type:Boolean,reflect:!0,attribute:"hide-timestamps"})],t.prototype,"hideTimestamps",2),i([d({type:Boolean,reflect:!0})],t.prototype,"animated",2),i([d({type:Boolean,reflect:!0})],t.prototype,"inverted",2),i([d({type:Number,reflect:!0})],t.prototype,"speed",2),i([o()],t.prototype,"currentTime",2),i([o()],t.prototype,"duration",2),i([o()],t.prototype,"isPlaying",2),i([o()],t.prototype,"isMuted",2),i([o()],t.prototype,"isTranscriptOpen",2),i([o()],t.prototype,"progress",2),i([u('[part="progress-slider"]')],t.prototype,"progressSlider",2),i([u('[part="audio-player"]')],t.prototype,"audioPlayerContainer",2),i([u("sd-7-0-0-drawer")],t.prototype,"drawer",2),i([u("canvas")],t.prototype,"canvas",2),t=i([g("sd-7-0-0-audio")],t);export{t as a};
1
+ import{a as b}from"./chunk.CGQ2BPPZ.js";import{a as y}from"./chunk.MEDJPDBB.js";import{a as r}from"./chunk.4ZZFYCXX.js";import{a as g,b as d,c as o,d as u,h as p}from"./chunk.J45556RK.js";import{b as v,e as a}from"./chunk.OBAEIKIV.js";import{a as h}from"./chunk.WNP2V63C.js";import{e as i}from"./chunk.6EV4YU6C.js";var t=class extends p{constructor(){super();this.localize=new y(this);this.hasSlotController=new b(this,"transcript");this.reversedLayout=!1;this.hideTimestamps=!1;this.animated=!1;this.inverted=!1;this.speed=1;this.currentTime=this.formatTime(0);this.duration="";this.isPlaying=!1;this.isMuted=!1;this.isTranscriptOpen=!1;this.progress=0;this.updateCurrentTime=this.updateCurrentTime.bind(this),this.handleAudioEnd=this.handleAudioEnd.bind(this),this.handleAudioProgress=this.handleAudioProgress.bind(this),this.handleAudioProgressKeydown=this.handleAudioProgressKeydown.bind(this),this.handleTranscriptDrawerToggle=this.handleTranscriptDrawerToggle.bind(this)}firstUpdated(){this.audioElement&&(this.audioElement.addEventListener("timeupdate",this.updateCurrentTime),this.audioElement.addEventListener("ended",this.handleAudioEnd),this.audioElement.setAttribute("controlsList","nodownload"),document.addEventListener("sd-after-hide",this.handleTranscriptDrawerToggle),this.audioElement.playbackRate=this.speed,this.progressSlider.tooltipFormatter=e=>this.localize.term("seconds",Number(e).toFixed(0)),this.animated&&this.initAnimation())}updated(e){if(e.has("animated")){let s=e.get("animated");!s&&this.animated?this.initAnimation():s&&!this.animated&&this.clear()}}get audioElement(){let e=this.shadowRoot.querySelector("slot");return(e==null?void 0:e.assignedElements().length)>0?e.assignedElements()[0]:null}updateCurrentTime(){if(!this.audioElement)return;let e=this.audioElement.currentTime;this.currentTime=this.formatTime(e),this.progress=e,this.progressSlider&&(this.progressSlider.value=this.progress.toString())}updateAudioDuration(){if(this.audioElement){if(isNaN(this.audioElement.duration)){setTimeout(()=>{this.updateAudioDuration()},100);return}this.duration=this.formatTime(this.audioElement.duration),this.progressSlider.max=this.audioElement.duration}}playAudio(){this.audioElement&&(this.isPlaying=!0,this.audioElement.play(),this.emit("sd-playback-start"),this.animated&&this.draw())}pauseAudio(){this.audioElement&&(this.isPlaying=!1,this.audioElement.pause(),this.emit("sd-playback-pause"),this.animated&&this.stopAnimation())}handleAudioEnd(){this.emit("sd-playback-end"),this.isPlaying=!1,this.progress=0,this.progressSlider.value="0",this.currentTime=this.formatTime(0),this.animated&&this.stopAnimation()}toggleMute(){this.audioElement&&(this.isMuted=!this.isMuted,this.isMuted?(this.emit("sd-playback-mute"),this.audioElement.muted=!0):(this.emit("sd-playback-unmute"),this.audioElement.muted=!1))}toggleMuteKeydown(e){e.key==="Enter"&&(e.preventDefault(),this.toggleMute())}togglePlaybackSpeed(){this.audioElement&&(this.emit("sd-playback-speed"),this.speed=this.speed===1.5?1:this.speed+.25,this.audioElement.playbackRate=this.speed)}togglePlaybackSpeedKeydown(e){e.key==="Enter"&&(e.preventDefault(),this.togglePlaybackSpeed())}formatTime(e){let s=Math.floor(e/60).toString().padStart(2,"0"),c=Math.floor(e%60).toString().padStart(2,"0");return`${s}:${c}`}handleAudioProgress(){if(!this.audioElement)return;let e=Number(this.progressSlider.value);this.audioElement.currentTime=e,this.progress=e,this.currentTime=this.formatTime(e)}handleAudioProgressKeydown(e){e.key==="ArrowRight"&&(this.progressSlider.value=(Number(this.progressSlider.value)+1).toString(),this.handleAudioProgress()),e.key==="ArrowLeft"&&(this.progressSlider.value=(Number(this.progressSlider.value)-1).toString(),this.handleAudioProgress())}handleTranscriptDrawerToggle(){this.isTranscriptOpen=!this.isTranscriptOpen}handleThumbGrab(){var e;(e=this.audioElement)==null||e.pause()}handleThumbRelease(){var e;this.isPlaying&&((e=this.audioElement)==null||e.play())}showTranscript(){this.emit("sd-transcript-click"),this.drawer.open=!0,this.handleTranscriptDrawerToggle()}showTranscriptKeydown(e){(e.key==="Enter"||e.key===" ")&&this.showTranscript()}rgbToHex(e){let s=e.match(/\d+/g);if((s==null?void 0:s.length)===3){let c=parseInt(s[0]),m=parseInt(s[1]),n=parseInt(s[2]),l=f=>f.toString(16).padStart(2,"0");return`#${l(c)}${l(m)}${l(n)}`.toUpperCase()}return null}onThemeChange(){this.clear(),setTimeout(this.initAnimation.bind(this),this.token("--sd-duration-fast",150))}initAnimation(){var l;let e=(l=this.canvas)==null?void 0:l.getContext("2d");if(!e)return;this.context=e;let s=this.audioPlayerContainer.querySelector(".playback-speed"),m=window.getComputedStyle(s).color,n=this.inverted?"#FFFFFF33":this.rgbToHex(m)+"33";this.waveList=[new h({canvas:this.canvas,color:n,phase:240,shift:1.5,amplitude:230,frequency:.012,damping:1}),new h({canvas:this.canvas,color:n,phase:180,shift:2.5,amplitude:250,frequency:.005,damping:1}),new h({canvas:this.canvas,color:n,phase:180,shift:-2.5,amplitude:250,frequency:.005,damping:1}),new h({canvas:this.canvas,color:n,phase:180,shift:-1,amplitude:200,frequency:.018,damping:1}),new h({canvas:this.canvas,color:n,phase:180,shift:1.5,amplitude:150,frequency:.01,damping:1})],this.animated&&this.drawStillWaves()}drawStillWaves(){this.waveList.forEach(e=>{e.redraw()})}stopAnimation(){this.isPlaying=!1}clear(){!this.context||!this.canvas||this.context.clearRect(0,0,this.canvas.width,this.canvas.height)}async draw(){!this.isPlaying||!this.animated||(this.clear(),this.waveList.forEach(e=>{e.redraw()}),await new Promise(e=>{setTimeout(e,1e3/30)}),await this.draw())}render(){let e=a`<div class="${r("controls grid grid-cols-3 justify-items-center items-center",this.reversedLayout?"mt-2":"mb-2",!this.animated&&"relative",this.animated&&!this.reversedLayout&&"absolute -top-4 left-0 w-full")}" part="audio-controls"><button class="${r("playback-speed justify-self-start text-base font-bold hover:cursor-pointer sd-interactive",this.inverted&&"sd-interactive--inverted")}" aria-label="${this.localize.term("playbackSpeed")} (${this.speed}x)" @click="${this.togglePlaybackSpeed}" @keydown="${this.togglePlaybackSpeedKeydown}" part="playback-speed">${this.speed}x</button><sd-7-0-1-button ?inverted="${!!this.inverted}" part="play-button" size="lg" @click="${this.isPlaying?this.pauseAudio:this.playAudio}" aria-label="${this.isPlaying?this.localize.term("pauseAudio"):this.localize.term("playAudio")}" title="${this.isPlaying?this.localize.term("pauseAudio"):this.localize.term("playAudio")}" class="mb-4">${this.isPlaying?a`<slot name="pause-icon"><sd-7-0-1-icon class="text-xl" name="pause" library="_internal"></sd-7-0-1-icon></slot>`:a`<slot name="play-icon"><sd-7-0-1-icon class="text-xl" name="play" library="_internal"></sd-7-0-1-icon></slot>`}</sd-7-0-1-button><div class="flex items-center gap-6 justify-self-end">${this.hasSlotController.test("transcript")?a`<button class="${r("w-6 h-6 hover:cursor-pointer sd-interactive",this.inverted&&"sd-interactive--inverted")}" aria-label="${this.isTranscriptOpen?this.localize.term("transcriptIsOpen"):this.localize.term("openTranscript")}" @click="${this.showTranscript}" @keydown="${this.showTranscriptKeydown}" part="transcript"><sd-7-0-1-icon class="w-6 h-6" name="transcript" library="_internal"></sd-7-0-1-icon></button>`:null} <button class="${r("w-6 h-6 hover:cursor-pointer sd-interactive",this.inverted&&"sd-interactive--inverted")}" part="volume" aria-label="${this.isMuted?this.localize.term("unmute"):this.localize.term("mute")}" @click="${this.toggleMute}" @keydown="${this.toggleMuteKeydown}"><sd-7-0-1-icon class="w-6 h-6" name="${this.isMuted?"mute":"volume"}" library="_internal"></sd-7-0-1-icon></button></div></div>`,s=a`<div class="${r("w-full flex justify-between",this.reversedLayout?"mb-0.5":"mt-0.5",this.animated&&this.reversedLayout&&"absolute bottom-0 left-0 !mb-4")}" part="timestamps"><div class="${r("current-time text-sm",this.inverted?"text-primary-400":"text-neutral-700")}">${this.currentTime}</div><div class="${r("current-time text-sm",this.inverted?"text-primary-400":"text-neutral-700")}">${this.duration}</div></div>`;return a`<div class="${r("w-full flex relative",this.reversedLayout?"flex-col-reverse":"flex-col")}" aria-label="${this.localize.term("audioPlayer")}" part="audio-player"><slot @slotchange="${this.updateAudioDuration}"></slot>${!this.animated||this.animated&&this.reversedLayout?e:null}<div class="relative">${this.animated&&!this.reversedLayout?a`${e}`:null} ${this.animated?a`<canvas class="w-full h-16 -mb-2"></canvas>`:null} ${!this.hideTimestamps&&this.animated&&this.reversedLayout?s:null}<sd-7-0-1-range part="progress-slider" tooltip="hidden" min="0" max="100" step="0.001" label="${this.localize.term("seekBar")}" @mousedown="${this.handleThumbGrab}" @touchstart="${this.handleThumbGrab}" @mouseup="${this.handleThumbRelease}" @touchend="${this.handleThumbRelease}" @sd-7-0-1-input="${this.handleAudioProgress}" @keydown="${this.handleAudioProgressKeydown}"></sd-7-0-1-range></div>${this.hasSlotController.test("transcript")?a`<sd-7-0-1-drawer><slot name="transcript"></slot></sd-7-0-1-drawer>`:null} ${!this.hideTimestamps&&(!this.animated||!this.reversedLayout)?s:null}</div><sd-7-0-1-theme-listener></sd-7-0-1-theme-listener>`}};t.styles=[...p.styles,v`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
+ sd-7-0-1-button::part(base){display:flex;height:var(--sd-spacing-12,3rem);width:var(--sd-spacing-12,3rem);align-items:center;justify-content:center;border-radius:var(--sd-radius-full,624.9375rem)}sd-7-0-1-button::part(motion-wrapper){border-radius:var(--sd-radius-full,624.9375rem)}sd-7-0-1-button::part(label){display:flex;flex-grow:0;align-items:center}sd-7-0-1-range::part(form-control-label){display:none}:host([inverted]) sd-7-0-1-range::part(thumb){outline-color:rgba(var(--sd-color-border-white,var(--sd-color-white,255 255 255)));background-color:rgba(var(--sd-color-icon-fill-white,rgba(var(--sd-color-white))))}:host([animated]) sd-7-0-1-range::part(track){background-color:transparent}:host([inverted]:not([animated])) sd-7-0-1-range::part(track){background-color:rgba(var(--sd-audio__slide-bar--inverted-color-background,rgba(var(--sd-color-primary-400))))}:host([inverted]:not([animated])) sd-7-0-1-range::part(active-track){background-color:rgba(var(--sd-audio__track-bar--inverted-color-background,rgba(var(--sd-color-white))))}`],i([d({type:Boolean,reflect:!0,attribute:"reversed-layout"})],t.prototype,"reversedLayout",2),i([d({type:Boolean,reflect:!0,attribute:"hide-timestamps"})],t.prototype,"hideTimestamps",2),i([d({type:Boolean,reflect:!0})],t.prototype,"animated",2),i([d({type:Boolean,reflect:!0})],t.prototype,"inverted",2),i([d({type:Number,reflect:!0})],t.prototype,"speed",2),i([o()],t.prototype,"currentTime",2),i([o()],t.prototype,"duration",2),i([o()],t.prototype,"isPlaying",2),i([o()],t.prototype,"isMuted",2),i([o()],t.prototype,"isTranscriptOpen",2),i([o()],t.prototype,"progress",2),i([u('[part="progress-slider"]')],t.prototype,"progressSlider",2),i([u('[part="audio-player"]')],t.prototype,"audioPlayerContainer",2),i([u("sd-7-0-1-drawer")],t.prototype,"drawer",2),i([u("canvas")],t.prototype,"canvas",2),t=i([g("sd-7-0-1-audio")],t);export{t as a};