@solid-design-system/components 5.4.3 → 5.5.0

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 (555) hide show
  1. package/cdn/chunks/{chunk.KHY5O4PT.js → chunk.2TNYH5IL.js} +1 -1
  2. package/cdn/chunks/{chunk.IUWNRXYW.js → chunk.2Y4RRR77.js} +1 -1
  3. package/cdn/chunks/{chunk.W5IMHZGX.js → chunk.3NHWHKAX.js} +1 -1
  4. package/cdn/chunks/chunk.3YJWQK5P.js +1 -0
  5. package/cdn/chunks/{chunk.2ZCIEZ7L.js → chunk.45XXNE45.js} +1 -1
  6. package/cdn/chunks/{chunk.O4HSOKLJ.js → chunk.563PG5RE.js} +1 -1
  7. package/cdn/chunks/{chunk.MIGHPO6I.js → chunk.5DM35GAT.js} +1 -1
  8. package/cdn/chunks/{chunk.J4TCNBTX.js → chunk.5ZUTPOZN.js} +1 -1
  9. package/cdn/chunks/{chunk.UMVIOATK.js → chunk.6UFQTNJ4.js} +1 -1
  10. package/cdn/chunks/{chunk.KMC7EIBY.js → chunk.7OTVI3CD.js} +1 -1
  11. package/cdn/chunks/{chunk.I3FJGGZ3.js → chunk.7QC4UBY2.js} +1 -1
  12. package/cdn/chunks/{chunk.6O2SO5QT.js → chunk.7QIKWTMS.js} +1 -1
  13. package/cdn/chunks/{chunk.AQNGYRPO.js → chunk.7QK6UA2Z.js} +1 -1
  14. package/cdn/chunks/{chunk.44UUKD5Y.js → chunk.7YLJCJVT.js} +1 -1
  15. package/cdn/chunks/{chunk.P6C6ODMQ.js → chunk.A32BGFOG.js} +1 -1
  16. package/cdn/chunks/{chunk.DMQJUJKP.js → chunk.A464DMKJ.js} +1 -1
  17. package/cdn/chunks/{chunk.O775J6XQ.js → chunk.B3NQ4A2U.js} +1 -1
  18. package/cdn/chunks/{chunk.6KS2ASKZ.js → chunk.B5LASGKJ.js} +1 -1
  19. package/cdn/chunks/{chunk.4QEWHV7D.js → chunk.C2ELABGI.js} +1 -1
  20. package/cdn/chunks/{chunk.XO4OTCQR.js → chunk.DFHAOXPC.js} +1 -1
  21. package/cdn/chunks/{chunk.BQBDCD43.js → chunk.DTYL56NS.js} +1 -1
  22. package/cdn/chunks/{chunk.JBN3F7U4.js → chunk.EBN7NGGZ.js} +1 -1
  23. package/cdn/chunks/{chunk.YQFJEUR4.js → chunk.GALZYH2O.js} +1 -1
  24. package/cdn/chunks/{chunk.T6E3LAEG.js → chunk.GHDR3GKI.js} +1 -1
  25. package/cdn/chunks/chunk.I2H6CZK5.js +1 -0
  26. package/cdn/chunks/{chunk.IDRPZQRX.js → chunk.I62U5KAM.js} +1 -1
  27. package/cdn/chunks/{chunk.I3CJWUNI.js → chunk.IT7JA266.js} +1 -1
  28. package/cdn/chunks/{chunk.AUFZNGGE.js → chunk.J4ZSD5TG.js} +1 -1
  29. package/cdn/chunks/{chunk.D6WXGJKA.js → chunk.JGHJFDZX.js} +1 -1
  30. package/cdn/chunks/{chunk.T5MUPWZ5.js → chunk.KL3MASXA.js} +1 -1
  31. package/cdn/chunks/{chunk.AB24SDUG.js → chunk.L6SX2TJ6.js} +1 -1
  32. package/cdn/chunks/{chunk.6AZBNEBJ.js → chunk.LKWDMDUJ.js} +1 -1
  33. package/cdn/chunks/{chunk.T6LPMALU.js → chunk.M4OVPDW3.js} +1 -1
  34. package/cdn/chunks/{chunk.WR3DFUYK.js → chunk.MCTJO37V.js} +1 -1
  35. package/cdn/chunks/{chunk.S5XOCA5O.js → chunk.OCLPE5JZ.js} +1 -1
  36. package/cdn/chunks/{chunk.FMDEKAH2.js → chunk.P2DJN4FR.js} +1 -1
  37. package/cdn/chunks/{chunk.YBWN6AYL.js → chunk.PS3TGJUN.js} +1 -1
  38. package/cdn/chunks/{chunk.22RZ6TMN.js → chunk.QGZH4A4S.js} +1 -1
  39. package/cdn/chunks/{chunk.WFMWVMAD.js → chunk.SS5LUGOK.js} +1 -1
  40. package/cdn/chunks/{chunk.WFLJWMLS.js → chunk.TCEVJUR4.js} +1 -1
  41. package/cdn/chunks/{chunk.37MMMQAE.js → chunk.TW36XK5M.js} +1 -1
  42. package/cdn/chunks/{chunk.KPXMHFEA.js → chunk.U56O4JGT.js} +1 -1
  43. package/cdn/chunks/{chunk.JWE6CJMP.js → chunk.URTZIQ6E.js} +1 -1
  44. package/cdn/chunks/{chunk.BQUVRGBQ.js → chunk.VO5VKWRA.js} +1 -1
  45. package/cdn/chunks/{chunk.AHE6RU7L.js → chunk.WLIMVXV6.js} +1 -1
  46. package/cdn/chunks/{chunk.CISFWT2K.js → chunk.WRL6BR2M.js} +1 -1
  47. package/cdn/chunks/{chunk.LPEHFYRQ.js → chunk.XJFIJA5Z.js} +1 -1
  48. package/cdn/chunks/{chunk.FUDO6HHH.js → chunk.YLGCY74T.js} +1 -1
  49. package/cdn/chunks/{chunk.ABD2C3S7.js → chunk.YMBH4W6H.js} +1 -1
  50. package/cdn/chunks/chunk.YVWXTEAH.js +25 -0
  51. package/cdn/chunks/chunk.ZK4EEZJP.js +1 -0
  52. package/cdn/components/accordion/accordion.js +1 -1
  53. package/cdn/components/accordion-group/accordion-group.js +1 -1
  54. package/cdn/components/animation/animation.js +1 -1
  55. package/cdn/components/audio/audio.js +1 -1
  56. package/cdn/components/badge/badge.js +1 -1
  57. package/cdn/components/brandshape/brandshape.js +1 -1
  58. package/cdn/components/button/button.js +1 -1
  59. package/cdn/components/button-group/button-group.js +1 -1
  60. package/cdn/components/carousel/carousel.js +1 -1
  61. package/cdn/components/carousel-item/carousel-item.js +1 -1
  62. package/cdn/components/checkbox/checkbox.js +1 -1
  63. package/cdn/components/checkbox-group/checkbox-group.js +1 -1
  64. package/cdn/components/combobox/combobox.js +1 -1
  65. package/cdn/components/dialog/dialog.js +1 -1
  66. package/cdn/components/divider/divider.js +1 -1
  67. package/cdn/components/drawer/drawer.js +1 -1
  68. package/cdn/components/dropdown/dropdown.js +1 -1
  69. package/cdn/components/expandable/expandable.js +1 -1
  70. package/cdn/components/flipcard/flipcard.js +1 -1
  71. package/cdn/components/header/header.js +1 -1
  72. package/cdn/components/icon/icon.js +1 -1
  73. package/cdn/components/include/include.js +1 -1
  74. package/cdn/components/input/input.js +1 -1
  75. package/cdn/components/link/link.js +1 -1
  76. package/cdn/components/map-marker/map-marker.js +1 -1
  77. package/cdn/components/navigation-item/navigation-item.js +1 -1
  78. package/cdn/components/notification/notification.d.ts +1 -0
  79. package/cdn/components/notification/notification.js +1 -1
  80. package/cdn/components/optgroup/optgroup.js +1 -1
  81. package/cdn/components/option/option.js +1 -1
  82. package/cdn/components/popup/popup.js +1 -1
  83. package/cdn/components/quickfact/quickfact.js +1 -1
  84. package/cdn/components/radio/radio.js +1 -1
  85. package/cdn/components/radio-button/radio-button.js +1 -1
  86. package/cdn/components/radio-group/radio-group.js +1 -1
  87. package/cdn/components/scrollable/scrollable.js +1 -1
  88. package/cdn/components/select/select.js +1 -1
  89. package/cdn/components/spinner/spinner.js +1 -1
  90. package/cdn/components/step/step.js +1 -1
  91. package/cdn/components/step-group/step-group.js +1 -1
  92. package/cdn/components/switch/switch.js +1 -1
  93. package/cdn/components/tab/tab.js +1 -1
  94. package/cdn/components/tab-group/tab-group.js +1 -1
  95. package/cdn/components/tab-panel/tab-panel.js +1 -1
  96. package/cdn/components/tag/tag.js +1 -1
  97. package/cdn/components/teaser/teaser.js +1 -1
  98. package/cdn/components/teaser-media/teaser-media.js +1 -1
  99. package/cdn/components/textarea/textarea.js +1 -1
  100. package/cdn/components/tooltip/tooltip.js +1 -1
  101. package/cdn/components/video/video.js +1 -1
  102. package/cdn/custom-elements.json +5 -1
  103. package/cdn/internal/string.d.ts +1 -0
  104. package/cdn/internal/string.js +3 -0
  105. package/cdn/solid-components.bundle.js +19 -19
  106. package/cdn/solid-components.css +1 -1
  107. package/cdn/solid-components.iife.js +19 -19
  108. package/cdn/solid-components.js +1 -1
  109. package/cdn/utilities/autocomplete-config.js +1 -1
  110. package/cdn/vscode.html-custom-data.json +1 -1
  111. package/cdn/web-types.json +2 -2
  112. package/cdn-versioned/_components/menu/menu.js +1 -1
  113. package/cdn-versioned/_components/menu/menu.styles.js +1 -1
  114. package/cdn-versioned/_components/menu-item/menu-item.js +2 -2
  115. package/cdn-versioned/chunks/{chunk.KHY5O4PT.js → chunk.2TNYH5IL.js} +1 -1
  116. package/cdn-versioned/chunks/{chunk.IUWNRXYW.js → chunk.2Y4RRR77.js} +1 -1
  117. package/cdn-versioned/chunks/{chunk.W5IMHZGX.js → chunk.3NHWHKAX.js} +1 -1
  118. package/cdn-versioned/chunks/chunk.3YJWQK5P.js +1 -0
  119. package/cdn-versioned/chunks/{chunk.2ZCIEZ7L.js → chunk.45XXNE45.js} +1 -1
  120. package/cdn-versioned/chunks/{chunk.O4HSOKLJ.js → chunk.563PG5RE.js} +4 -4
  121. package/cdn-versioned/chunks/{chunk.MIGHPO6I.js → chunk.5DM35GAT.js} +1 -1
  122. package/cdn-versioned/chunks/{chunk.J4TCNBTX.js → chunk.5ZUTPOZN.js} +1 -1
  123. package/cdn-versioned/chunks/chunk.6HLS5XU2.js +1 -1
  124. package/cdn-versioned/chunks/{chunk.UMVIOATK.js → chunk.6UFQTNJ4.js} +4 -4
  125. package/cdn-versioned/chunks/{chunk.KMC7EIBY.js → chunk.7OTVI3CD.js} +1 -1
  126. package/cdn-versioned/chunks/{chunk.I3FJGGZ3.js → chunk.7QC4UBY2.js} +2 -2
  127. package/cdn-versioned/chunks/{chunk.6O2SO5QT.js → chunk.7QIKWTMS.js} +1 -1
  128. package/cdn-versioned/chunks/{chunk.AQNGYRPO.js → chunk.7QK6UA2Z.js} +1 -1
  129. package/cdn-versioned/chunks/{chunk.44UUKD5Y.js → chunk.7YLJCJVT.js} +1 -1
  130. package/cdn-versioned/chunks/{chunk.P6C6ODMQ.js → chunk.A32BGFOG.js} +1 -1
  131. package/cdn-versioned/chunks/{chunk.DMQJUJKP.js → chunk.A464DMKJ.js} +1 -1
  132. package/cdn-versioned/chunks/{chunk.O775J6XQ.js → chunk.B3NQ4A2U.js} +1 -1
  133. package/cdn-versioned/chunks/{chunk.6KS2ASKZ.js → chunk.B5LASGKJ.js} +1 -1
  134. package/cdn-versioned/chunks/{chunk.4QEWHV7D.js → chunk.C2ELABGI.js} +1 -1
  135. package/cdn-versioned/chunks/chunk.CEVVDV52.js +1 -1
  136. package/cdn-versioned/chunks/{chunk.XO4OTCQR.js → chunk.DFHAOXPC.js} +1 -1
  137. package/cdn-versioned/chunks/{chunk.BQBDCD43.js → chunk.DTYL56NS.js} +1 -1
  138. package/cdn-versioned/chunks/{chunk.JBN3F7U4.js → chunk.EBN7NGGZ.js} +2 -2
  139. package/cdn-versioned/chunks/{chunk.YQFJEUR4.js → chunk.GALZYH2O.js} +1 -1
  140. package/cdn-versioned/chunks/{chunk.T6E3LAEG.js → chunk.GHDR3GKI.js} +1 -1
  141. package/cdn-versioned/chunks/chunk.I2H6CZK5.js +1 -0
  142. package/cdn-versioned/chunks/{chunk.IDRPZQRX.js → chunk.I62U5KAM.js} +1 -1
  143. package/cdn-versioned/chunks/{chunk.I3CJWUNI.js → chunk.IT7JA266.js} +1 -1
  144. package/cdn-versioned/chunks/{chunk.AUFZNGGE.js → chunk.J4ZSD5TG.js} +1 -1
  145. package/cdn-versioned/chunks/{chunk.D6WXGJKA.js → chunk.JGHJFDZX.js} +1 -1
  146. package/cdn-versioned/chunks/{chunk.T5MUPWZ5.js → chunk.KL3MASXA.js} +1 -1
  147. package/cdn-versioned/chunks/{chunk.AB24SDUG.js → chunk.L6SX2TJ6.js} +1 -1
  148. package/cdn-versioned/chunks/{chunk.6AZBNEBJ.js → chunk.LKWDMDUJ.js} +1 -1
  149. package/cdn-versioned/chunks/{chunk.T6LPMALU.js → chunk.M4OVPDW3.js} +1 -1
  150. package/cdn-versioned/chunks/{chunk.WR3DFUYK.js → chunk.MCTJO37V.js} +1 -1
  151. package/cdn-versioned/chunks/{chunk.S5XOCA5O.js → chunk.OCLPE5JZ.js} +1 -1
  152. package/cdn-versioned/chunks/{chunk.FMDEKAH2.js → chunk.P2DJN4FR.js} +2 -2
  153. package/cdn-versioned/chunks/{chunk.YBWN6AYL.js → chunk.PS3TGJUN.js} +1 -1
  154. package/cdn-versioned/chunks/{chunk.22RZ6TMN.js → chunk.QGZH4A4S.js} +1 -1
  155. package/cdn-versioned/chunks/{chunk.WFMWVMAD.js → chunk.SS5LUGOK.js} +1 -1
  156. package/cdn-versioned/chunks/{chunk.WFLJWMLS.js → chunk.TCEVJUR4.js} +1 -1
  157. package/cdn-versioned/chunks/{chunk.37MMMQAE.js → chunk.TW36XK5M.js} +4 -4
  158. package/cdn-versioned/chunks/{chunk.KPXMHFEA.js → chunk.U56O4JGT.js} +2 -2
  159. package/cdn-versioned/chunks/{chunk.JWE6CJMP.js → chunk.URTZIQ6E.js} +2 -2
  160. package/cdn-versioned/chunks/{chunk.BQUVRGBQ.js → chunk.VO5VKWRA.js} +1 -1
  161. package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
  162. package/cdn-versioned/chunks/{chunk.AHE6RU7L.js → chunk.WLIMVXV6.js} +1 -1
  163. package/cdn-versioned/chunks/{chunk.CISFWT2K.js → chunk.WRL6BR2M.js} +1 -1
  164. package/cdn-versioned/chunks/{chunk.LPEHFYRQ.js → chunk.XJFIJA5Z.js} +1 -1
  165. package/cdn-versioned/chunks/{chunk.FUDO6HHH.js → chunk.YLGCY74T.js} +1 -1
  166. package/cdn-versioned/chunks/{chunk.ABD2C3S7.js → chunk.YMBH4W6H.js} +1 -1
  167. package/cdn-versioned/chunks/chunk.YVWXTEAH.js +25 -0
  168. package/cdn-versioned/chunks/chunk.ZK4EEZJP.js +1 -0
  169. package/cdn-versioned/components/accordion/accordion.d.ts +1 -1
  170. package/cdn-versioned/components/accordion/accordion.js +1 -1
  171. package/cdn-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  172. package/cdn-versioned/components/accordion-group/accordion-group.js +1 -1
  173. package/cdn-versioned/components/animation/animation.d.ts +1 -1
  174. package/cdn-versioned/components/animation/animation.js +1 -1
  175. package/cdn-versioned/components/audio/audio.d.ts +1 -1
  176. package/cdn-versioned/components/audio/audio.js +1 -1
  177. package/cdn-versioned/components/badge/badge.d.ts +1 -1
  178. package/cdn-versioned/components/badge/badge.js +1 -1
  179. package/cdn-versioned/components/brandshape/brandshape.d.ts +1 -1
  180. package/cdn-versioned/components/brandshape/brandshape.js +1 -1
  181. package/cdn-versioned/components/button/button.d.ts +1 -1
  182. package/cdn-versioned/components/button/button.js +1 -1
  183. package/cdn-versioned/components/button-group/button-group.d.ts +1 -1
  184. package/cdn-versioned/components/button-group/button-group.js +1 -1
  185. package/cdn-versioned/components/carousel/carousel.d.ts +1 -1
  186. package/cdn-versioned/components/carousel/carousel.js +1 -1
  187. package/cdn-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  188. package/cdn-versioned/components/carousel-item/carousel-item.js +1 -1
  189. package/cdn-versioned/components/checkbox/checkbox.d.ts +1 -1
  190. package/cdn-versioned/components/checkbox/checkbox.js +1 -1
  191. package/cdn-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
  192. package/cdn-versioned/components/checkbox-group/checkbox-group.js +1 -1
  193. package/cdn-versioned/components/combobox/combobox.d.ts +1 -1
  194. package/cdn-versioned/components/combobox/combobox.js +1 -1
  195. package/cdn-versioned/components/dialog/dialog.d.ts +1 -1
  196. package/cdn-versioned/components/dialog/dialog.js +1 -1
  197. package/cdn-versioned/components/divider/divider.d.ts +1 -1
  198. package/cdn-versioned/components/divider/divider.js +1 -1
  199. package/cdn-versioned/components/drawer/drawer.d.ts +1 -1
  200. package/cdn-versioned/components/drawer/drawer.js +1 -1
  201. package/cdn-versioned/components/dropdown/dropdown.d.ts +1 -1
  202. package/cdn-versioned/components/dropdown/dropdown.js +1 -1
  203. package/cdn-versioned/components/expandable/expandable.d.ts +1 -1
  204. package/cdn-versioned/components/expandable/expandable.js +1 -1
  205. package/cdn-versioned/components/flipcard/flipcard.d.ts +1 -1
  206. package/cdn-versioned/components/flipcard/flipcard.js +1 -1
  207. package/cdn-versioned/components/header/header.d.ts +1 -1
  208. package/cdn-versioned/components/header/header.js +1 -1
  209. package/cdn-versioned/components/icon/icon.d.ts +1 -1
  210. package/cdn-versioned/components/icon/icon.js +1 -1
  211. package/cdn-versioned/components/include/include.d.ts +1 -1
  212. package/cdn-versioned/components/include/include.js +1 -1
  213. package/cdn-versioned/components/input/input.d.ts +1 -1
  214. package/cdn-versioned/components/input/input.js +1 -1
  215. package/cdn-versioned/components/link/link.d.ts +1 -1
  216. package/cdn-versioned/components/link/link.js +1 -1
  217. package/cdn-versioned/components/map-marker/map-marker.d.ts +1 -1
  218. package/cdn-versioned/components/map-marker/map-marker.js +1 -1
  219. package/cdn-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  220. package/cdn-versioned/components/navigation-item/navigation-item.js +1 -1
  221. package/cdn-versioned/components/notification/notification.d.ts +2 -1
  222. package/cdn-versioned/components/notification/notification.js +1 -1
  223. package/cdn-versioned/components/optgroup/optgroup.d.ts +1 -1
  224. package/cdn-versioned/components/optgroup/optgroup.js +1 -1
  225. package/cdn-versioned/components/option/option.d.ts +1 -1
  226. package/cdn-versioned/components/option/option.js +1 -1
  227. package/cdn-versioned/components/popup/popup.d.ts +1 -1
  228. package/cdn-versioned/components/popup/popup.js +1 -1
  229. package/cdn-versioned/components/quickfact/quickfact.d.ts +1 -1
  230. package/cdn-versioned/components/quickfact/quickfact.js +1 -1
  231. package/cdn-versioned/components/radio/radio.d.ts +1 -1
  232. package/cdn-versioned/components/radio/radio.js +1 -1
  233. package/cdn-versioned/components/radio-button/radio-button.d.ts +1 -1
  234. package/cdn-versioned/components/radio-button/radio-button.js +1 -1
  235. package/cdn-versioned/components/radio-group/radio-group.d.ts +1 -1
  236. package/cdn-versioned/components/radio-group/radio-group.js +1 -1
  237. package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
  238. package/cdn-versioned/components/scrollable/scrollable.js +1 -1
  239. package/cdn-versioned/components/select/select.d.ts +1 -1
  240. package/cdn-versioned/components/select/select.js +1 -1
  241. package/cdn-versioned/components/spinner/spinner.d.ts +1 -1
  242. package/cdn-versioned/components/spinner/spinner.js +1 -1
  243. package/cdn-versioned/components/step/step.d.ts +1 -1
  244. package/cdn-versioned/components/step/step.js +1 -1
  245. package/cdn-versioned/components/step-group/step-group.d.ts +1 -1
  246. package/cdn-versioned/components/step-group/step-group.js +1 -1
  247. package/cdn-versioned/components/switch/switch.d.ts +1 -1
  248. package/cdn-versioned/components/switch/switch.js +1 -1
  249. package/cdn-versioned/components/tab/tab.d.ts +1 -1
  250. package/cdn-versioned/components/tab/tab.js +1 -1
  251. package/cdn-versioned/components/tab-group/tab-group.d.ts +1 -1
  252. package/cdn-versioned/components/tab-group/tab-group.js +1 -1
  253. package/cdn-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  254. package/cdn-versioned/components/tab-panel/tab-panel.js +1 -1
  255. package/cdn-versioned/components/tag/tag.d.ts +1 -1
  256. package/cdn-versioned/components/tag/tag.js +1 -1
  257. package/cdn-versioned/components/teaser/teaser.js +1 -1
  258. package/cdn-versioned/components/teaser-media/teaser-media.js +1 -1
  259. package/cdn-versioned/components/textarea/textarea.d.ts +1 -1
  260. package/cdn-versioned/components/textarea/textarea.js +1 -1
  261. package/cdn-versioned/components/tooltip/tooltip.d.ts +1 -1
  262. package/cdn-versioned/components/tooltip/tooltip.js +1 -1
  263. package/cdn-versioned/components/video/video.d.ts +1 -1
  264. package/cdn-versioned/components/video/video.js +1 -1
  265. package/cdn-versioned/custom-elements.json +213 -209
  266. package/cdn-versioned/internal/form.js +3 -3
  267. package/cdn-versioned/internal/string.d.ts +1 -0
  268. package/cdn-versioned/internal/string.js +3 -0
  269. package/cdn-versioned/solid-components.bundle.js +21 -21
  270. package/cdn-versioned/solid-components.css +2 -2
  271. package/cdn-versioned/solid-components.iife.js +21 -21
  272. package/cdn-versioned/solid-components.js +1 -1
  273. package/cdn-versioned/utilities/autocomplete-config.js +1 -1
  274. package/cdn-versioned/vscode.html-custom-data.json +80 -80
  275. package/cdn-versioned/web-types.json +137 -137
  276. package/dist/chunks/{chunk.Y7RW6FN5.js → chunk.2FLTH2J2.js} +1 -1
  277. package/dist/chunks/{chunk.O6ZCXYG7.js → chunk.2N5XLHBL.js} +1 -1
  278. package/dist/chunks/{chunk.K4NJXWOJ.js → chunk.2PXT2JGM.js} +1 -1
  279. package/dist/chunks/{chunk.KNR2TKCV.js → chunk.2USCM2K7.js} +1 -1
  280. package/dist/chunks/{chunk.WOZNRS7M.js → chunk.2ZGD7ZWV.js} +14 -18
  281. package/dist/chunks/{chunk.E3L4D5JB.js → chunk.3GP7FNMV.js} +1 -1
  282. package/dist/chunks/{chunk.PMMQGCWE.js → chunk.3HPLJIDM.js} +1 -1
  283. package/dist/chunks/{chunk.I3TERPA7.js → chunk.3WKBJLEU.js} +1 -1
  284. package/dist/chunks/{chunk.WNKRVUCI.js → chunk.4PQ2QFNO.js} +1 -1
  285. package/dist/chunks/{chunk.NJDUDBH3.js → chunk.57SMIFAB.js} +1 -1
  286. package/dist/chunks/chunk.6EG5PXXO.js +82 -0
  287. package/dist/chunks/{chunk.VBUX2EMW.js → chunk.7HDYUFV4.js} +1 -1
  288. package/dist/chunks/{chunk.EPTG3T3K.js → chunk.7KAD3IZR.js} +1 -1
  289. package/dist/chunks/{chunk.DVE7LUSU.js → chunk.AJXUUZNA.js} +1 -1
  290. package/dist/chunks/{chunk.R4RNIJUR.js → chunk.AV42LWAO.js} +1 -1
  291. package/dist/chunks/{chunk.ZWGFV5US.js → chunk.CPC45P5D.js} +2 -2
  292. package/dist/chunks/{chunk.QHFL2NPD.js → chunk.DMKN3M74.js} +1 -1
  293. package/dist/chunks/{chunk.ER5WL52L.js → chunk.EPXREFBH.js} +58 -18
  294. package/dist/chunks/{chunk.3EFIPRDK.js → chunk.EZYVCZIX.js} +1 -1
  295. package/dist/chunks/{chunk.MQHKJBMI.js → chunk.FKLYH7XI.js} +1 -1
  296. package/dist/chunks/{chunk.POPZOOPO.js → chunk.FL7XA2L3.js} +2 -2
  297. package/dist/chunks/{chunk.OYISVPRT.js → chunk.GANFEZEA.js} +1 -1
  298. package/dist/chunks/{chunk.TICMXROB.js → chunk.GC6J3QO6.js} +1 -1
  299. package/dist/chunks/{chunk.JDURQSHD.js → chunk.GOGPGGHW.js} +1 -1
  300. package/dist/chunks/{chunk.YR7FBXEK.js → chunk.GPGNE73T.js} +1 -1
  301. package/dist/chunks/{chunk.YHPP5HHG.js → chunk.INOD7KXJ.js} +1 -1
  302. package/dist/chunks/{chunk.YA5MP52V.js → chunk.JDQMDO76.js} +1 -1
  303. package/dist/chunks/{chunk.KHDJQVLW.js → chunk.K3TQETH6.js} +1 -1
  304. package/dist/chunks/{chunk.BMOZ4UCJ.js → chunk.KQIAHXDV.js} +1 -1
  305. package/dist/chunks/{chunk.J2MWZHOR.js → chunk.LLVY4FRO.js} +1 -1
  306. package/dist/chunks/{chunk.ZFCSAN3P.js → chunk.MAEGWOCQ.js} +1 -1
  307. package/dist/chunks/{chunk.AQSNQIE2.js → chunk.MJI2LR7Q.js} +1 -1
  308. package/dist/chunks/{chunk.CWRYUKKN.js → chunk.MXEVN4M3.js} +1 -1
  309. package/dist/chunks/{chunk.WPSQV3EJ.js → chunk.NRZU3V4L.js} +1 -1
  310. package/dist/chunks/{chunk.XVPNFAM2.js → chunk.OLQDLBR7.js} +1 -1
  311. package/dist/chunks/{chunk.QT7I3AD5.js → chunk.PA346ZLC.js} +1 -1
  312. package/dist/chunks/{chunk.BNHWLWIO.js → chunk.QN3ULHF6.js} +1 -1
  313. package/dist/chunks/{chunk.MGZNYUU5.js → chunk.RUGET775.js} +1 -1
  314. package/dist/chunks/{chunk.4L2ZJWMT.js → chunk.S44HT5WK.js} +1 -1
  315. package/dist/chunks/chunk.SF6AUNJF.js +12 -0
  316. package/dist/chunks/{chunk.DKMBAQNN.js → chunk.SJ633J2S.js} +1 -1
  317. package/dist/chunks/{chunk.IAVZSNZM.js → chunk.TN3AK2CB.js} +1 -1
  318. package/dist/chunks/{chunk.BNKXTELX.js → chunk.URTD4FVZ.js} +1 -1
  319. package/dist/chunks/{chunk.RJEVYRGU.js → chunk.VWO7SMIW.js} +1 -1
  320. package/dist/chunks/{chunk.VWCNE6RW.js → chunk.WZSUVVGK.js} +1 -1
  321. package/dist/chunks/{chunk.XOBAD7BT.js → chunk.XEIN3AUI.js} +1 -1
  322. package/dist/chunks/{chunk.JDGZXKQ6.js → chunk.XUT7HJ23.js} +1 -1
  323. package/dist/chunks/{chunk.VYA3GCBI.js → chunk.YGYU27OD.js} +2 -2
  324. package/dist/chunks/{chunk.AEC7OUIU.js → chunk.YIT7C2FX.js} +1 -1
  325. package/dist/chunks/{chunk.ZKAEJF4D.js → chunk.ZJYBYFC4.js} +1 -1
  326. package/dist/chunks/{chunk.QH3LDBIV.js → chunk.ZZ53RZAM.js} +1 -1
  327. package/dist/components/accordion/accordion.js +3 -3
  328. package/dist/components/accordion-group/accordion-group.js +4 -4
  329. package/dist/components/animation/animation.js +2 -2
  330. package/dist/components/audio/audio.js +7 -6
  331. package/dist/components/badge/badge.js +2 -2
  332. package/dist/components/brandshape/brandshape.js +2 -2
  333. package/dist/components/button/button.js +3 -3
  334. package/dist/components/button-group/button-group.js +2 -2
  335. package/dist/components/carousel/carousel.js +4 -4
  336. package/dist/components/carousel-item/carousel-item.js +2 -2
  337. package/dist/components/checkbox/checkbox.js +3 -3
  338. package/dist/components/checkbox-group/checkbox-group.js +3 -3
  339. package/dist/components/combobox/combobox.js +5 -5
  340. package/dist/components/dialog/dialog.js +5 -5
  341. package/dist/components/divider/divider.js +2 -2
  342. package/dist/components/drawer/drawer.js +6 -5
  343. package/dist/components/dropdown/dropdown.js +3 -3
  344. package/dist/components/expandable/expandable.js +3 -3
  345. package/dist/components/flipcard/flipcard.js +5 -5
  346. package/dist/components/header/header.js +2 -2
  347. package/dist/components/icon/icon.js +2 -2
  348. package/dist/components/include/include.js +2 -2
  349. package/dist/components/input/input.js +3 -3
  350. package/dist/components/link/link.js +2 -2
  351. package/dist/components/map-marker/map-marker.js +2 -2
  352. package/dist/components/navigation-item/navigation-item.js +4 -4
  353. package/dist/components/notification/notification.d.ts +1 -0
  354. package/dist/components/notification/notification.js +6 -5
  355. package/dist/components/optgroup/optgroup.js +3 -3
  356. package/dist/components/option/option.js +3 -3
  357. package/dist/components/popup/popup.js +2 -2
  358. package/dist/components/quickfact/quickfact.js +4 -4
  359. package/dist/components/radio/radio.js +2 -2
  360. package/dist/components/radio-button/radio-button.js +2 -2
  361. package/dist/components/radio-group/radio-group.js +4 -4
  362. package/dist/components/scrollable/scrollable.js +3 -3
  363. package/dist/components/select/select.js +5 -5
  364. package/dist/components/spinner/spinner.js +2 -2
  365. package/dist/components/step/step.js +3 -3
  366. package/dist/components/step-group/step-group.js +2 -2
  367. package/dist/components/switch/switch.js +2 -2
  368. package/dist/components/tab/tab.js +2 -2
  369. package/dist/components/tab-group/tab-group.js +3 -3
  370. package/dist/components/tab-panel/tab-panel.js +2 -2
  371. package/dist/components/tag/tag.js +3 -3
  372. package/dist/components/teaser/teaser.js +2 -2
  373. package/dist/components/teaser-media/teaser-media.js +2 -2
  374. package/dist/components/textarea/textarea.js +3 -3
  375. package/dist/components/tooltip/tooltip.js +4 -4
  376. package/dist/components/video/video.js +3 -3
  377. package/dist/custom-elements.json +5 -1
  378. package/dist/internal/string.d.ts +1 -0
  379. package/dist/internal/string.js +3 -0
  380. package/dist/solid-components.css +1 -1
  381. package/dist/solid-components.js +51 -50
  382. package/dist/utilities/autocomplete-config.js +2 -2
  383. package/dist/vscode.html-custom-data.json +1 -1
  384. package/dist/web-types.json +2 -2
  385. package/dist-versioned/_components/menu/menu.js +1 -1
  386. package/dist-versioned/_components/menu/menu.styles.js +1 -1
  387. package/dist-versioned/_components/menu-item/menu-item.js +2 -2
  388. package/dist-versioned/chunks/{chunk.Y7RW6FN5.js → chunk.2FLTH2J2.js} +2 -2
  389. package/dist-versioned/chunks/{chunk.O6ZCXYG7.js → chunk.2N5XLHBL.js} +3 -3
  390. package/dist-versioned/chunks/{chunk.K4NJXWOJ.js → chunk.2PXT2JGM.js} +5 -5
  391. package/dist-versioned/chunks/{chunk.KNR2TKCV.js → chunk.2USCM2K7.js} +3 -3
  392. package/dist-versioned/chunks/{chunk.WOZNRS7M.js → chunk.2ZGD7ZWV.js} +16 -20
  393. package/dist-versioned/chunks/{chunk.E3L4D5JB.js → chunk.3GP7FNMV.js} +2 -2
  394. package/dist-versioned/chunks/{chunk.PMMQGCWE.js → chunk.3HPLJIDM.js} +2 -2
  395. package/dist-versioned/chunks/{chunk.I3TERPA7.js → chunk.3WKBJLEU.js} +3 -3
  396. package/dist-versioned/chunks/{chunk.WNKRVUCI.js → chunk.4PQ2QFNO.js} +6 -6
  397. package/dist-versioned/chunks/{chunk.NJDUDBH3.js → chunk.57SMIFAB.js} +6 -6
  398. package/dist-versioned/chunks/chunk.6DKXZWRN.js +4 -4
  399. package/dist-versioned/chunks/chunk.6EG5PXXO.js +82 -0
  400. package/dist-versioned/chunks/{chunk.VBUX2EMW.js → chunk.7HDYUFV4.js} +4 -4
  401. package/dist-versioned/chunks/{chunk.EPTG3T3K.js → chunk.7KAD3IZR.js} +6 -6
  402. package/dist-versioned/chunks/{chunk.DVE7LUSU.js → chunk.AJXUUZNA.js} +7 -7
  403. package/dist-versioned/chunks/{chunk.R4RNIJUR.js → chunk.AV42LWAO.js} +5 -5
  404. package/dist-versioned/chunks/{chunk.ZWGFV5US.js → chunk.CPC45P5D.js} +14 -14
  405. package/dist-versioned/chunks/{chunk.QHFL2NPD.js → chunk.DMKN3M74.js} +12 -12
  406. package/dist-versioned/chunks/{chunk.ER5WL52L.js → chunk.EPXREFBH.js} +61 -21
  407. package/dist-versioned/chunks/{chunk.3EFIPRDK.js → chunk.EZYVCZIX.js} +3 -3
  408. package/dist-versioned/chunks/{chunk.MQHKJBMI.js → chunk.FKLYH7XI.js} +2 -2
  409. package/dist-versioned/chunks/{chunk.POPZOOPO.js → chunk.FL7XA2L3.js} +8 -8
  410. package/dist-versioned/chunks/{chunk.OYISVPRT.js → chunk.GANFEZEA.js} +4 -4
  411. package/dist-versioned/chunks/{chunk.TICMXROB.js → chunk.GC6J3QO6.js} +2 -2
  412. package/dist-versioned/chunks/{chunk.JDURQSHD.js → chunk.GOGPGGHW.js} +4 -4
  413. package/dist-versioned/chunks/{chunk.YR7FBXEK.js → chunk.GPGNE73T.js} +4 -4
  414. package/dist-versioned/chunks/{chunk.YHPP5HHG.js → chunk.INOD7KXJ.js} +3 -3
  415. package/dist-versioned/chunks/{chunk.YA5MP52V.js → chunk.JDQMDO76.js} +10 -10
  416. package/dist-versioned/chunks/{chunk.KHDJQVLW.js → chunk.K3TQETH6.js} +2 -2
  417. package/dist-versioned/chunks/{chunk.BMOZ4UCJ.js → chunk.KQIAHXDV.js} +3 -3
  418. package/dist-versioned/chunks/chunk.KVKRZJS7.js +3 -3
  419. package/dist-versioned/chunks/{chunk.J2MWZHOR.js → chunk.LLVY4FRO.js} +27 -27
  420. package/dist-versioned/chunks/{chunk.ZFCSAN3P.js → chunk.MAEGWOCQ.js} +2 -2
  421. package/dist-versioned/chunks/{chunk.AQSNQIE2.js → chunk.MJI2LR7Q.js} +9 -9
  422. package/dist-versioned/chunks/{chunk.CWRYUKKN.js → chunk.MXEVN4M3.js} +3 -3
  423. package/dist-versioned/chunks/{chunk.WPSQV3EJ.js → chunk.NRZU3V4L.js} +2 -2
  424. package/dist-versioned/chunks/{chunk.XVPNFAM2.js → chunk.OLQDLBR7.js} +15 -15
  425. package/dist-versioned/chunks/{chunk.QT7I3AD5.js → chunk.PA346ZLC.js} +25 -25
  426. package/dist-versioned/chunks/{chunk.BNHWLWIO.js → chunk.QN3ULHF6.js} +3 -3
  427. package/dist-versioned/chunks/{chunk.MGZNYUU5.js → chunk.RUGET775.js} +6 -6
  428. package/dist-versioned/chunks/{chunk.4L2ZJWMT.js → chunk.S44HT5WK.js} +3 -3
  429. package/dist-versioned/chunks/chunk.SF6AUNJF.js +12 -0
  430. package/dist-versioned/chunks/{chunk.DKMBAQNN.js → chunk.SJ633J2S.js} +2 -2
  431. package/dist-versioned/chunks/{chunk.IAVZSNZM.js → chunk.TN3AK2CB.js} +3 -3
  432. package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
  433. package/dist-versioned/chunks/{chunk.BNKXTELX.js → chunk.URTD4FVZ.js} +2 -2
  434. package/dist-versioned/chunks/{chunk.RJEVYRGU.js → chunk.VWO7SMIW.js} +3 -3
  435. package/dist-versioned/chunks/{chunk.VWCNE6RW.js → chunk.WZSUVVGK.js} +3 -3
  436. package/dist-versioned/chunks/{chunk.XOBAD7BT.js → chunk.XEIN3AUI.js} +3 -3
  437. package/dist-versioned/chunks/{chunk.JDGZXKQ6.js → chunk.XUT7HJ23.js} +2 -2
  438. package/dist-versioned/chunks/{chunk.VYA3GCBI.js → chunk.YGYU27OD.js} +5 -5
  439. package/dist-versioned/chunks/{chunk.AEC7OUIU.js → chunk.YIT7C2FX.js} +2 -2
  440. package/dist-versioned/chunks/{chunk.ZKAEJF4D.js → chunk.ZJYBYFC4.js} +3 -3
  441. package/dist-versioned/chunks/{chunk.QH3LDBIV.js → chunk.ZZ53RZAM.js} +2 -2
  442. package/dist-versioned/components/accordion/accordion.d.ts +1 -1
  443. package/dist-versioned/components/accordion/accordion.js +3 -3
  444. package/dist-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  445. package/dist-versioned/components/accordion-group/accordion-group.js +4 -4
  446. package/dist-versioned/components/animation/animation.d.ts +1 -1
  447. package/dist-versioned/components/animation/animation.js +2 -2
  448. package/dist-versioned/components/audio/audio.d.ts +1 -1
  449. package/dist-versioned/components/audio/audio.js +7 -6
  450. package/dist-versioned/components/badge/badge.d.ts +1 -1
  451. package/dist-versioned/components/badge/badge.js +2 -2
  452. package/dist-versioned/components/brandshape/brandshape.d.ts +1 -1
  453. package/dist-versioned/components/brandshape/brandshape.js +2 -2
  454. package/dist-versioned/components/button/button.d.ts +1 -1
  455. package/dist-versioned/components/button/button.js +3 -3
  456. package/dist-versioned/components/button-group/button-group.d.ts +1 -1
  457. package/dist-versioned/components/button-group/button-group.js +2 -2
  458. package/dist-versioned/components/carousel/carousel.d.ts +1 -1
  459. package/dist-versioned/components/carousel/carousel.js +4 -4
  460. package/dist-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  461. package/dist-versioned/components/carousel-item/carousel-item.js +2 -2
  462. package/dist-versioned/components/checkbox/checkbox.d.ts +1 -1
  463. package/dist-versioned/components/checkbox/checkbox.js +3 -3
  464. package/dist-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
  465. package/dist-versioned/components/checkbox-group/checkbox-group.js +3 -3
  466. package/dist-versioned/components/combobox/combobox.d.ts +1 -1
  467. package/dist-versioned/components/combobox/combobox.js +5 -5
  468. package/dist-versioned/components/dialog/dialog.d.ts +1 -1
  469. package/dist-versioned/components/dialog/dialog.js +5 -5
  470. package/dist-versioned/components/divider/divider.d.ts +1 -1
  471. package/dist-versioned/components/divider/divider.js +2 -2
  472. package/dist-versioned/components/drawer/drawer.d.ts +1 -1
  473. package/dist-versioned/components/drawer/drawer.js +6 -5
  474. package/dist-versioned/components/dropdown/dropdown.d.ts +1 -1
  475. package/dist-versioned/components/dropdown/dropdown.js +3 -3
  476. package/dist-versioned/components/expandable/expandable.d.ts +1 -1
  477. package/dist-versioned/components/expandable/expandable.js +3 -3
  478. package/dist-versioned/components/flipcard/flipcard.d.ts +1 -1
  479. package/dist-versioned/components/flipcard/flipcard.js +5 -5
  480. package/dist-versioned/components/header/header.d.ts +1 -1
  481. package/dist-versioned/components/header/header.js +2 -2
  482. package/dist-versioned/components/icon/icon.d.ts +1 -1
  483. package/dist-versioned/components/icon/icon.js +2 -2
  484. package/dist-versioned/components/include/include.d.ts +1 -1
  485. package/dist-versioned/components/include/include.js +2 -2
  486. package/dist-versioned/components/input/input.d.ts +1 -1
  487. package/dist-versioned/components/input/input.js +3 -3
  488. package/dist-versioned/components/link/link.d.ts +1 -1
  489. package/dist-versioned/components/link/link.js +2 -2
  490. package/dist-versioned/components/map-marker/map-marker.d.ts +1 -1
  491. package/dist-versioned/components/map-marker/map-marker.js +2 -2
  492. package/dist-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  493. package/dist-versioned/components/navigation-item/navigation-item.js +4 -4
  494. package/dist-versioned/components/notification/notification.d.ts +2 -1
  495. package/dist-versioned/components/notification/notification.js +6 -5
  496. package/dist-versioned/components/optgroup/optgroup.d.ts +1 -1
  497. package/dist-versioned/components/optgroup/optgroup.js +3 -3
  498. package/dist-versioned/components/option/option.d.ts +1 -1
  499. package/dist-versioned/components/option/option.js +3 -3
  500. package/dist-versioned/components/popup/popup.d.ts +1 -1
  501. package/dist-versioned/components/popup/popup.js +2 -2
  502. package/dist-versioned/components/quickfact/quickfact.d.ts +1 -1
  503. package/dist-versioned/components/quickfact/quickfact.js +4 -4
  504. package/dist-versioned/components/radio/radio.d.ts +1 -1
  505. package/dist-versioned/components/radio/radio.js +2 -2
  506. package/dist-versioned/components/radio-button/radio-button.d.ts +1 -1
  507. package/dist-versioned/components/radio-button/radio-button.js +2 -2
  508. package/dist-versioned/components/radio-group/radio-group.d.ts +1 -1
  509. package/dist-versioned/components/radio-group/radio-group.js +4 -4
  510. package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
  511. package/dist-versioned/components/scrollable/scrollable.js +3 -3
  512. package/dist-versioned/components/select/select.d.ts +1 -1
  513. package/dist-versioned/components/select/select.js +5 -5
  514. package/dist-versioned/components/spinner/spinner.d.ts +1 -1
  515. package/dist-versioned/components/spinner/spinner.js +2 -2
  516. package/dist-versioned/components/step/step.d.ts +1 -1
  517. package/dist-versioned/components/step/step.js +3 -3
  518. package/dist-versioned/components/step-group/step-group.d.ts +1 -1
  519. package/dist-versioned/components/step-group/step-group.js +2 -2
  520. package/dist-versioned/components/switch/switch.d.ts +1 -1
  521. package/dist-versioned/components/switch/switch.js +2 -2
  522. package/dist-versioned/components/tab/tab.d.ts +1 -1
  523. package/dist-versioned/components/tab/tab.js +2 -2
  524. package/dist-versioned/components/tab-group/tab-group.d.ts +1 -1
  525. package/dist-versioned/components/tab-group/tab-group.js +3 -3
  526. package/dist-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  527. package/dist-versioned/components/tab-panel/tab-panel.js +2 -2
  528. package/dist-versioned/components/tag/tag.d.ts +1 -1
  529. package/dist-versioned/components/tag/tag.js +3 -3
  530. package/dist-versioned/components/teaser/teaser.js +2 -2
  531. package/dist-versioned/components/teaser-media/teaser-media.js +2 -2
  532. package/dist-versioned/components/textarea/textarea.d.ts +1 -1
  533. package/dist-versioned/components/textarea/textarea.js +3 -3
  534. package/dist-versioned/components/tooltip/tooltip.d.ts +1 -1
  535. package/dist-versioned/components/tooltip/tooltip.js +4 -4
  536. package/dist-versioned/components/video/video.d.ts +1 -1
  537. package/dist-versioned/components/video/video.js +3 -3
  538. package/dist-versioned/custom-elements.json +213 -209
  539. package/dist-versioned/internal/form.js +3 -3
  540. package/dist-versioned/internal/string.d.ts +1 -0
  541. package/dist-versioned/internal/string.js +3 -0
  542. package/dist-versioned/solid-components.css +2 -2
  543. package/dist-versioned/solid-components.js +51 -50
  544. package/dist-versioned/utilities/autocomplete-config.js +2 -2
  545. package/dist-versioned/vscode.html-custom-data.json +80 -80
  546. package/dist-versioned/web-types.json +137 -137
  547. package/package.json +2 -2
  548. package/cdn/chunks/chunk.3J5KIUOG.js +0 -25
  549. package/cdn/chunks/chunk.XHCQ2HAX.js +0 -1
  550. package/cdn/chunks/chunk.ZNRYPR2Z.js +0 -1
  551. package/cdn-versioned/chunks/chunk.3J5KIUOG.js +0 -25
  552. package/cdn-versioned/chunks/chunk.XHCQ2HAX.js +0 -1
  553. package/cdn-versioned/chunks/chunk.ZNRYPR2Z.js +0 -1
  554. package/dist/chunks/chunk.BHMQ7JTH.js +0 -82
  555. package/dist-versioned/chunks/chunk.BHMQ7JTH.js +0 -82
@@ -1 +1 @@
1
- import{a as Z}from"./chunks/chunk.CEVVDV52.js";import"./chunks/chunk.HAL7R4WT.js";import{a as q}from"./chunks/chunk.FUDO6HHH.js";import{a as y}from"./chunks/chunk.KHY5O4PT.js";import{a as z}from"./chunks/chunk.WFLJWMLS.js";import{a as J}from"./chunks/chunk.AHE6RU7L.js";import{a as K}from"./chunks/chunk.JWE6CJMP.js";import{a as U}from"./chunks/chunk.6KS2ASKZ.js";import{a as E}from"./chunks/chunk.BQBDCD43.js";import{a as F}from"./chunks/chunk.37MMMQAE.js";import{a as H}from"./chunks/chunk.AB24SDUG.js";import{a as L}from"./chunks/chunk.T6LPMALU.js";import{a as Q}from"./chunks/chunk.JBN3F7U4.js";import{a as V}from"./chunks/chunk.2ZCIEZ7L.js";import{a as j}from"./chunks/chunk.YBWN6AYL.js";import{a as w}from"./chunks/chunk.ZNRYPR2Z.js";import{a as R}from"./chunks/chunk.4QEWHV7D.js";import{a as M}from"./chunks/chunk.LPEHFYRQ.js";import{a as v}from"./chunks/chunk.UMVIOATK.js";import{a as O}from"./chunks/chunk.CISFWT2K.js";import{a as P}from"./chunks/chunk.WFMWVMAD.js";import{a as N}from"./chunks/chunk.O775J6XQ.js";import{a as I}from"./chunks/chunk.KMC7EIBY.js";import{a as h}from"./chunks/chunk.6AZBNEBJ.js";import{a as A}from"./chunks/chunk.6O2SO5QT.js";import{a as B}from"./chunks/chunk.I3FJGGZ3.js";import{a as D}from"./chunks/chunk.P6C6ODMQ.js";import{a as g}from"./chunks/chunk.D6WXGJKA.js";import{a as k}from"./chunks/chunk.W5IMHZGX.js";import{a as C}from"./chunks/chunk.S5XOCA5O.js";import{a as G}from"./chunks/chunk.DMQJUJKP.js";import{a as S}from"./chunks/chunk.IUWNRXYW.js";import"./chunks/chunk.5XTSQKKL.js";import{a as s}from"./chunks/chunk.YQFJEUR4.js";import{a as c}from"./chunks/chunk.O4HSOKLJ.js";import{a as n}from"./chunks/chunk.XO4OTCQR.js";import{a as i}from"./chunks/chunk.IDRPZQRX.js";import"./chunks/chunk.CDC46OKY.js";import"./chunks/chunk.X2GM34WQ.js";import"./chunks/chunk.W7A3TU2Z.js";import{a as b}from"./chunks/chunk.WR3DFUYK.js";import{a as T}from"./chunks/chunk.AQNGYRPO.js";import{a as u}from"./chunks/chunk.MIGHPO6I.js";import{a as l}from"./chunks/chunk.T6E3LAEG.js";import"./chunks/chunk.22RZ6TMN.js";import{a as m}from"./chunks/chunk.KPXMHFEA.js";import"./chunks/chunk.CBQWVOOS.js";import"./chunks/chunk.C577EOP7.js";import"./chunks/chunk.MHWW3RZB.js";import{a as x}from"./chunks/chunk.T5MUPWZ5.js";import{a}from"./chunks/chunk.44UUKD5Y.js";import{a as e}from"./chunks/chunk.BQUVRGBQ.js";import{a as p}from"./chunks/chunk.ABD2C3S7.js";import"./chunks/chunk.XR2KNB36.js";import{a as f}from"./chunks/chunk.AUFZNGGE.js";import{a as d}from"./chunks/chunk.XHCQ2HAX.js";import"./chunks/chunk.I6OYJBJI.js";import"./chunks/chunk.64UNKF45.js";import"./chunks/chunk.3L472FD4.js";import{a as t}from"./chunks/chunk.FMDEKAH2.js";import{a as r}from"./chunks/chunk.J4TCNBTX.js";import"./chunks/chunk.6HLS5XU2.js";import"./chunks/chunk.YTG5BN3U.js";import"./chunks/chunk.6HO6CE4A.js";import"./chunks/chunk.SKUMYG4O.js";import"./chunks/chunk.H2TKMIFR.js";import{a as o}from"./chunks/chunk.I3CJWUNI.js";import{d as W,e as X}from"./chunks/chunk.D5IOD6QB.js";import"./chunks/chunk.TWZDCIM2.js";import"./chunks/chunk.MWDEA25W.js";import"./chunks/chunk.N2OPZHJV.js";import"./chunks/chunk.CDEXCMVF.js";import"./chunks/chunk.K7HF3VBZ.js";import"./chunks/chunk.GJFN7PBS.js";import"./chunks/chunk.PYHYYOBE.js";import{a as Y}from"./chunks/chunk.DEXOQON7.js";import"./chunks/chunk.BVJF73VY.js";import"./chunks/chunk.E2XBRTA4.js";import"./chunks/chunk.HJGLYEWV.js";import"./chunks/chunk.26V4EXHB.js";import"./chunks/chunk.KLRPP4NQ.js";import"./chunks/chunk.E2DRD2OX.js";import"./chunks/chunk.3J5KIUOG.js";import"./chunks/chunk.UWPDCU52.js";import"./chunks/chunk.6OTM3PE5.js";import"./chunks/chunk.WNP2V63C.js";import"./chunks/chunk.TJOCV4DC.js";export{Y as LocalizeController,e as SdAccordion,a as SdAccordionGroup,p as SdAnimation,f as SdAudio,u as SdBadge,l as SdBrandshape,t as SdButton,m as SdCarousel,x as SdCarouselItem,S as SdCheckbox,s as SdCheckboxGroup,c as SdCombobox,b as SdDialog,T as SdDivider,d as SdDrawer,g as SdDropdown,k as SdExpandable,C as SdFlipcard,G as SdHeader,o as SdIcon,I as SdInclude,h as SdInput,A as SdLink,B as SdMapMarker,D as SdNavigationItem,w as SdNotification,R as SdOptgroup,M as SdOption,i as SdPopup,v as SdQuickfact,N as SdRadio,O as SdRadioButton,P as SdRadioGroup,E as SdScrollable,F as SdSelect,r as SdSpinner,H as SdStep,L as SdStepGroup,Q as SdSwitch,V as SdTab,j as SdTabGroup,q as SdTabPanel,n as SdTag,y as SdTeaser,z as SdTeaserMedia,J as SdTextarea,K as SdTooltip,U as SdVideo,W as registerIconLibrary,Z as setupAutocomplete,X as unregisterIconLibrary};
1
+ import{a as Z}from"./chunks/chunk.CEVVDV52.js";import"./chunks/chunk.HAL7R4WT.js";import{a as q}from"./chunks/chunk.YLGCY74T.js";import{a as y}from"./chunks/chunk.2TNYH5IL.js";import{a as z}from"./chunks/chunk.TCEVJUR4.js";import{a as J}from"./chunks/chunk.WLIMVXV6.js";import{a as K}from"./chunks/chunk.URTZIQ6E.js";import{a as U}from"./chunks/chunk.B5LASGKJ.js";import{a as E}from"./chunks/chunk.DTYL56NS.js";import{a as F}from"./chunks/chunk.TW36XK5M.js";import{a as H}from"./chunks/chunk.L6SX2TJ6.js";import{a as L}from"./chunks/chunk.M4OVPDW3.js";import{a as Q}from"./chunks/chunk.EBN7NGGZ.js";import{a as V}from"./chunks/chunk.45XXNE45.js";import{a as j}from"./chunks/chunk.PS3TGJUN.js";import{a as w}from"./chunks/chunk.3YJWQK5P.js";import{a as R}from"./chunks/chunk.C2ELABGI.js";import{a as M}from"./chunks/chunk.XJFIJA5Z.js";import{a as v}from"./chunks/chunk.6UFQTNJ4.js";import{a as O}from"./chunks/chunk.WRL6BR2M.js";import{a as P}from"./chunks/chunk.SS5LUGOK.js";import{a as N}from"./chunks/chunk.B3NQ4A2U.js";import{a as I}from"./chunks/chunk.7OTVI3CD.js";import{a as h}from"./chunks/chunk.LKWDMDUJ.js";import{a as A}from"./chunks/chunk.7QIKWTMS.js";import{a as B}from"./chunks/chunk.7QC4UBY2.js";import{a as D}from"./chunks/chunk.A32BGFOG.js";import{a as g}from"./chunks/chunk.JGHJFDZX.js";import{a as k}from"./chunks/chunk.3NHWHKAX.js";import{a as C}from"./chunks/chunk.OCLPE5JZ.js";import{a as G}from"./chunks/chunk.A464DMKJ.js";import{a as S}from"./chunks/chunk.2Y4RRR77.js";import"./chunks/chunk.5XTSQKKL.js";import{a as s}from"./chunks/chunk.GALZYH2O.js";import{a as c}from"./chunks/chunk.563PG5RE.js";import{a as n}from"./chunks/chunk.DFHAOXPC.js";import{a as i}from"./chunks/chunk.I62U5KAM.js";import"./chunks/chunk.CDC46OKY.js";import"./chunks/chunk.X2GM34WQ.js";import"./chunks/chunk.W7A3TU2Z.js";import{a as b}from"./chunks/chunk.MCTJO37V.js";import{a as T}from"./chunks/chunk.7QK6UA2Z.js";import{a as u}from"./chunks/chunk.5DM35GAT.js";import{a as l}from"./chunks/chunk.GHDR3GKI.js";import"./chunks/chunk.QGZH4A4S.js";import{a as m}from"./chunks/chunk.U56O4JGT.js";import"./chunks/chunk.CBQWVOOS.js";import"./chunks/chunk.C577EOP7.js";import"./chunks/chunk.MHWW3RZB.js";import{a as x}from"./chunks/chunk.KL3MASXA.js";import{a}from"./chunks/chunk.7YLJCJVT.js";import{a as e}from"./chunks/chunk.VO5VKWRA.js";import{a as p}from"./chunks/chunk.YMBH4W6H.js";import"./chunks/chunk.XR2KNB36.js";import{a as f}from"./chunks/chunk.J4ZSD5TG.js";import{a as d}from"./chunks/chunk.ZK4EEZJP.js";import"./chunks/chunk.I2H6CZK5.js";import"./chunks/chunk.I6OYJBJI.js";import"./chunks/chunk.64UNKF45.js";import"./chunks/chunk.3L472FD4.js";import{a as t}from"./chunks/chunk.P2DJN4FR.js";import{a as r}from"./chunks/chunk.5ZUTPOZN.js";import"./chunks/chunk.6HLS5XU2.js";import"./chunks/chunk.YTG5BN3U.js";import"./chunks/chunk.6HO6CE4A.js";import"./chunks/chunk.SKUMYG4O.js";import"./chunks/chunk.H2TKMIFR.js";import{a as o}from"./chunks/chunk.IT7JA266.js";import{d as W,e as X}from"./chunks/chunk.D5IOD6QB.js";import"./chunks/chunk.TWZDCIM2.js";import"./chunks/chunk.MWDEA25W.js";import"./chunks/chunk.N2OPZHJV.js";import"./chunks/chunk.CDEXCMVF.js";import"./chunks/chunk.K7HF3VBZ.js";import"./chunks/chunk.GJFN7PBS.js";import"./chunks/chunk.PYHYYOBE.js";import{a as Y}from"./chunks/chunk.DEXOQON7.js";import"./chunks/chunk.BVJF73VY.js";import"./chunks/chunk.E2XBRTA4.js";import"./chunks/chunk.HJGLYEWV.js";import"./chunks/chunk.26V4EXHB.js";import"./chunks/chunk.KLRPP4NQ.js";import"./chunks/chunk.E2DRD2OX.js";import"./chunks/chunk.YVWXTEAH.js";import"./chunks/chunk.UWPDCU52.js";import"./chunks/chunk.6OTM3PE5.js";import"./chunks/chunk.WNP2V63C.js";import"./chunks/chunk.TJOCV4DC.js";export{Y as LocalizeController,e as SdAccordion,a as SdAccordionGroup,p as SdAnimation,f as SdAudio,u as SdBadge,l as SdBrandshape,t as SdButton,m as SdCarousel,x as SdCarouselItem,S as SdCheckbox,s as SdCheckboxGroup,c as SdCombobox,b as SdDialog,T as SdDivider,d as SdDrawer,g as SdDropdown,k as SdExpandable,C as SdFlipcard,G as SdHeader,o as SdIcon,I as SdInclude,h as SdInput,A as SdLink,B as SdMapMarker,D as SdNavigationItem,w as SdNotification,R as SdOptgroup,M as SdOption,i as SdPopup,v as SdQuickfact,N as SdRadio,O as SdRadioButton,P as SdRadioGroup,E as SdScrollable,F as SdSelect,r as SdSpinner,H as SdStep,L as SdStepGroup,Q as SdSwitch,V as SdTab,j as SdTabGroup,q as SdTabPanel,n as SdTag,y as SdTeaser,z as SdTeaserMedia,J as SdTextarea,K as SdTooltip,U as SdVideo,W as registerIconLibrary,Z as setupAutocomplete,X as unregisterIconLibrary};
@@ -1 +1 @@
1
- import{a}from"../chunks/chunk.CEVVDV52.js";import"../chunks/chunk.IDRPZQRX.js";import"../chunks/chunk.26V4EXHB.js";import"../chunks/chunk.3J5KIUOG.js";import"../chunks/chunk.UWPDCU52.js";import"../chunks/chunk.6OTM3PE5.js";import"../chunks/chunk.TJOCV4DC.js";export{a as setupAutocomplete};
1
+ import{a}from"../chunks/chunk.CEVVDV52.js";import"../chunks/chunk.I62U5KAM.js";import"../chunks/chunk.26V4EXHB.js";import"../chunks/chunk.YVWXTEAH.js";import"../chunks/chunk.UWPDCU52.js";import"../chunks/chunk.6OTM3PE5.js";import"../chunks/chunk.TJOCV4DC.js";export{a as setupAutocomplete};
@@ -1604,7 +1604,7 @@
1604
1604
  },
1605
1605
  {
1606
1606
  "name": "sd-notification",
1607
- "description": "Alerts are used to display important messages inline or as toast notifications.\n---\n\n\n### **Events:**\n - **sd-show** - Emitted when the notification opens.\n- **sd-after-show** - Emitted after the notification opens and all animations are complete.\n- **sd-hide** - Emitted when the notification closes.\n- **sd-after-hide** - Emitted after the notification closes and all animations are complete.\n\n### **Methods:**\n - **show()** - Shows the notification.\n- **hide()** - Hides the notification\n- **toast()** - Displays the notification as a toast notification. This will move the notification out of its position in the DOM and, when\ndismissed, it will be removed from the DOM completely. By storing a reference to the notification, you can reuse it by\ncalling this method again. The returned promise will resolve after the notification is hidden.\n- **emit(name: _string_, options: _CustomEventInit_)** - Emits a custom event with more convenient defaults.\n- **token(name: _string_, fallback: _T_): _T_** - Retrieves the value of a css variable token.\n\n### **Slots:**\n - _default_ - The sd-notification's main content.\n- **icon** - An icon to show in the sd-notification. Works best with `<sd-icon>`.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **icon** - The container that wraps the optional icon.\n- **content** - The container that wraps the notifications's main content and the close button.\n- **message** - The container that wraps the notifications's main content.\n- **duration-indicator__elapsed** - The current duration indicator.\n- **duration-indicator__total** - The total duration indicator.\n- **close-button** - The close button, an `<sd-icon-button>`.",
1607
+ "description": "Alerts are used to display important messages inline or as toast notifications.\n---\n\n\n### **Events:**\n - **sd-show** - Emitted when the notification opens.\n- **sd-after-show** - Emitted after the notification opens and all animations are complete.\n- **sd-hide** - Emitted when the notification closes.\n- **sd-after-hide** - Emitted after the notification closes and all animations are complete.\n\n### **Methods:**\n - **show()** - Shows the notification.\n- **hide()** - Hides the notification\n- **toast()** - Displays the notification as a toast notification. This will move the notification out of its position in the DOM and, when\ndismissed, it will be removed from the DOM completely. By storing a reference to the notification, you can reuse it by\ncalling this method again. The returned promise will resolve after the notification is hidden.\n- **emit(name: _string_, options: _CustomEventInit_)** - Emits a custom event with more convenient defaults.\n- **token(name: _string_, fallback: _T_): _T_** - Retrieves the value of a css variable token.\n\n### **Slots:**\n - _default_ - The sd-notification's main content.\n- **icon** - An icon to show in the sd-notification. Works best with `<sd-icon>`.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **wrapper** - The container that wraps all the notification elements.\n- **icon** - The container that wraps the optional icon.\n- **content** - The container that wraps the notifications's main content and the close button.\n- **message** - The container that wraps the notifications's main content.\n- **duration-indicator__elapsed** - The current duration indicator.\n- **duration-indicator__total** - The total duration indicator.\n- **close-button** - The close button, an `<sd-icon-button>`.",
1608
1608
  "attributes": [
1609
1609
  {
1610
1610
  "name": "variant",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@solid-design-system/components",
4
- "version": "5.4.3",
4
+ "version": "5.5.0",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -3672,7 +3672,7 @@
3672
3672
  },
3673
3673
  {
3674
3674
  "name": "sd-notification",
3675
- "description": "Alerts are used to display important messages inline or as toast notifications.\n---\n\n\n### **Events:**\n - **sd-show** - Emitted when the notification opens.\n- **sd-after-show** - Emitted after the notification opens and all animations are complete.\n- **sd-hide** - Emitted when the notification closes.\n- **sd-after-hide** - Emitted after the notification closes and all animations are complete.\n\n### **Methods:**\n - **show()** - Shows the notification.\n- **hide()** - Hides the notification\n- **toast()** - Displays the notification as a toast notification. This will move the notification out of its position in the DOM and, when\ndismissed, it will be removed from the DOM completely. By storing a reference to the notification, you can reuse it by\ncalling this method again. The returned promise will resolve after the notification is hidden.\n- **emit(name: _string_, options: _CustomEventInit_)** - Emits a custom event with more convenient defaults.\n- **token(name: _string_, fallback: _T_): _T_** - Retrieves the value of a css variable token.\n\n### **Slots:**\n - _default_ - The sd-notification's main content.\n- **icon** - An icon to show in the sd-notification. Works best with `<sd-icon>`.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **icon** - The container that wraps the optional icon.\n- **content** - The container that wraps the notifications's main content and the close button.\n- **message** - The container that wraps the notifications's main content.\n- **duration-indicator__elapsed** - The current duration indicator.\n- **duration-indicator__total** - The total duration indicator.\n- **close-button** - The close button, an `<sd-icon-button>`.",
3675
+ "description": "Alerts are used to display important messages inline or as toast notifications.\n---\n\n\n### **Events:**\n - **sd-show** - Emitted when the notification opens.\n- **sd-after-show** - Emitted after the notification opens and all animations are complete.\n- **sd-hide** - Emitted when the notification closes.\n- **sd-after-hide** - Emitted after the notification closes and all animations are complete.\n\n### **Methods:**\n - **show()** - Shows the notification.\n- **hide()** - Hides the notification\n- **toast()** - Displays the notification as a toast notification. This will move the notification out of its position in the DOM and, when\ndismissed, it will be removed from the DOM completely. By storing a reference to the notification, you can reuse it by\ncalling this method again. The returned promise will resolve after the notification is hidden.\n- **emit(name: _string_, options: _CustomEventInit_)** - Emits a custom event with more convenient defaults.\n- **token(name: _string_, fallback: _T_): _T_** - Retrieves the value of a css variable token.\n\n### **Slots:**\n - _default_ - The sd-notification's main content.\n- **icon** - An icon to show in the sd-notification. Works best with `<sd-icon>`.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **wrapper** - The container that wraps all the notification elements.\n- **icon** - The container that wraps the optional icon.\n- **content** - The container that wraps the notifications's main content and the close button.\n- **message** - The container that wraps the notifications's main content.\n- **duration-indicator__elapsed** - The current duration indicator.\n- **duration-indicator__total** - The total duration indicator.\n- **close-button** - The close button, an `<sd-icon-button>`.",
3676
3676
  "doc-url": "",
3677
3677
  "attributes": [
3678
3678
  {
@@ -32,7 +32,7 @@ let SdMenu = class SdMenu extends SolidElement {
32
32
  if (item.type === 'checkbox') {
33
33
  item.checked = !item.checked;
34
34
  }
35
- this.emit('sd-5-4-3-select', { detail: { item } });
35
+ this.emit('sd-5-5-0-select', { detail: { item } });
36
36
  }
37
37
  handleKeyDown(event) {
38
38
  if (event.key === 'Enter') {
@@ -11,7 +11,7 @@ export default css `
11
11
  overscroll-behavior: none;
12
12
  }
13
13
 
14
- ::slotted(sd-5-4-3-divider) {
14
+ ::slotted(sd-5-5-0-divider) {
15
15
  --spacing: var(--sd-spacing-x-small);
16
16
  }
17
17
  `;
@@ -74,7 +74,7 @@ let SdMenuItem = class SdMenuItem extends SolidElement {
74
74
  })}
75
75
  >
76
76
  <span part="checked-icon" class="menu-item__check">
77
- <sd-5-4-3-icon name="check" library="_internal" aria-hidden="true"></sd-5-4-3-icon>
77
+ <sd-5-5-0-icon name="check" library="_internal" aria-hidden="true"></sd-5-5-0-icon>
78
78
  </span>
79
79
 
80
80
  <slot name="prefix" part="prefix" class="menu-item__prefix"></slot>
@@ -84,7 +84,7 @@ let SdMenuItem = class SdMenuItem extends SolidElement {
84
84
  <slot name="suffix" part="suffix" class="menu-item__suffix"></slot>
85
85
 
86
86
  <span class="menu-item__chevron">
87
- <sd-5-4-3-icon name="chevron-right" library="_internal" aria-hidden="true"></sd-5-4-3-icon>
87
+ <sd-5-5-0-icon name="chevron-right" library="_internal" aria-hidden="true"></sd-5-5-0-icon>
88
88
  </span>
89
89
  </div>
90
90
  `;
@@ -1 +1 @@
1
- import{a as p}from"./chunk.6HO6CE4A.js";import{a as r}from"./chunk.26V4EXHB.js";import{a as h,b as a,c as d,d as m,h as s}from"./chunk.3J5KIUOG.js";import{b as l,e as n}from"./chunk.UWPDCU52.js";import{e as i}from"./chunk.TJOCV4DC.js";var t=class extends s{constructor(){super(...arguments);this.variant="white";this.breakpoint=448;this.inset=!1;this.hasSlotController=new p(this,"[default]","media","meta","headline")}connectedCallback(){super.connectedCallback(),this.breakpoint===0?this._orientation="horizontal":this.breakpoint===9999?this._orientation="vertical":window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(()=>this.updateOrientation()),this.resizeObserver.observe(this))}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver&&this.resizeObserver.disconnect()}updated(e){super.updated(e),e.has("breakpoint")&&this.updateOrientation()}updateOrientation(){this._orientation=this.offsetWidth>=this.breakpoint?"horizontal":"vertical"}render(){let e=this.variant==="white border-neutral-400"||this.inset,o={"teaser-has-default":this.hasSlotController.test("[default]"),"teaser-has-media":this.hasSlotController.test("media"),"teaser-has-meta":this.hasSlotController.test("meta"),"teaser-has-headline":this.hasSlotController.test("headline")};return n`<div class="${r("flex",{white:"bg-white","white border-neutral-400":"bg-white border border-neutral-400","neutral-100":"bg-neutral-100",primary:"bg-primary text-white","primary-100":"bg-primary-100"}[this.variant],this._orientation==="vertical"&&"flex-col",this._orientation==="horizontal"&&"flex-row gap-8",this._orientation==="horizontal"&&e&&"py-8 px-10")}" part="base"><div style="${this._orientation==="horizontal"?`width: var(--distribution-content, 100%); ${e?"width: var(--distribution-content, calc(100% - 2rem));":""}`:""}" class="${r("flex flex-col text-left order-2",this._orientation==="horizontal"&&"flex flex-col",this._orientation==="vertical"&&e&&"m-4")}" part="content"><div class="flex flex-col-reverse"><div part="headline" class="${r("text-lg font-bold m-0",this.variant==="primary"?"text-white":"text-black")}"><slot name="headline">Always insert one semantically correct heading element here (e. g. &lt;h2>)</slot></div><div part="meta" class="${r("gap-2 mb-4",!o["teaser-has-meta"]&&"hidden")}"><slot name="meta"></slot></div></div><div part="main" class="${r(!o["teaser-has-default"]&&"hidden")}" role="group" aria-labelledby="headline"><slot></slot></div></div><div part="media" id="media" style="${this._orientation==="horizontal"?"width: var(--distribution-media, 100%);":""}" class="${r("order-1",!e&&this._orientation==="vertical"&&"mb-4",!o["teaser-has-media"]&&"hidden",this.variant==="white border-neutral-400"&&this._orientation==="vertical"&&"mx-[-1px] mt-[-1px]")}"><slot name="media"></slot></div></div>`}};t.styles=[...s.styles,l`:host{display:block}::slotted(*){margin:var(--sd-spacing-0,0)}::slotted([slot=headline]){font-size:var(--sd-font-size-lg,1.25rem)!important;font-weight:700;margin:var(--sd-spacing-0,0)!important}`],i([a({type:String,reflect:!0})],t.prototype,"variant",2),i([a({reflect:!0,type:Number})],t.prototype,"breakpoint",2),i([a({type:Boolean,reflect:!0})],t.prototype,"inset",2),i([m('[part="base"]')],t.prototype,"teaser",2),i([d()],t.prototype,"_orientation",2),t=i([h("sd-5-4-3-teaser")],t);export{t as a};
1
+ import{a as p}from"./chunk.6HO6CE4A.js";import{a as r}from"./chunk.26V4EXHB.js";import{a as h,b as a,c as d,d as m,h as s}from"./chunk.YVWXTEAH.js";import{b as l,e as n}from"./chunk.UWPDCU52.js";import{e as i}from"./chunk.TJOCV4DC.js";var t=class extends s{constructor(){super(...arguments);this.variant="white";this.breakpoint=448;this.inset=!1;this.hasSlotController=new p(this,"[default]","media","meta","headline")}connectedCallback(){super.connectedCallback(),this.breakpoint===0?this._orientation="horizontal":this.breakpoint===9999?this._orientation="vertical":window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(()=>this.updateOrientation()),this.resizeObserver.observe(this))}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver&&this.resizeObserver.disconnect()}updated(e){super.updated(e),e.has("breakpoint")&&this.updateOrientation()}updateOrientation(){this._orientation=this.offsetWidth>=this.breakpoint?"horizontal":"vertical"}render(){let e=this.variant==="white border-neutral-400"||this.inset,o={"teaser-has-default":this.hasSlotController.test("[default]"),"teaser-has-media":this.hasSlotController.test("media"),"teaser-has-meta":this.hasSlotController.test("meta"),"teaser-has-headline":this.hasSlotController.test("headline")};return n`<div class="${r("flex",{white:"bg-white","white border-neutral-400":"bg-white border border-neutral-400","neutral-100":"bg-neutral-100",primary:"bg-primary text-white","primary-100":"bg-primary-100"}[this.variant],this._orientation==="vertical"&&"flex-col",this._orientation==="horizontal"&&"flex-row gap-8",this._orientation==="horizontal"&&e&&"py-8 px-10")}" part="base"><div style="${this._orientation==="horizontal"?`width: var(--distribution-content, 100%); ${e?"width: var(--distribution-content, calc(100% - 2rem));":""}`:""}" class="${r("flex flex-col text-left order-2",this._orientation==="horizontal"&&"flex flex-col",this._orientation==="vertical"&&e&&"m-4")}" part="content"><div class="flex flex-col-reverse"><div part="headline" class="${r("text-lg font-bold m-0",this.variant==="primary"?"text-white":"text-black")}"><slot name="headline">Always insert one semantically correct heading element here (e. g. &lt;h2>)</slot></div><div part="meta" class="${r("gap-2 mb-4",!o["teaser-has-meta"]&&"hidden")}"><slot name="meta"></slot></div></div><div part="main" class="${r(!o["teaser-has-default"]&&"hidden")}" role="group" aria-labelledby="headline"><slot></slot></div></div><div part="media" id="media" style="${this._orientation==="horizontal"?"width: var(--distribution-media, 100%);":""}" class="${r("order-1",!e&&this._orientation==="vertical"&&"mb-4",!o["teaser-has-media"]&&"hidden",this.variant==="white border-neutral-400"&&this._orientation==="vertical"&&"mx-[-1px] mt-[-1px]")}"><slot name="media"></slot></div></div>`}};t.styles=[...s.styles,l`:host{display:block}::slotted(*){margin:var(--sd-spacing-0,0)}::slotted([slot=headline]){font-size:var(--sd-font-size-lg,1.25rem)!important;font-weight:700;margin:var(--sd-spacing-0,0)!important}`],i([a({type:String,reflect:!0})],t.prototype,"variant",2),i([a({reflect:!0,type:Number})],t.prototype,"breakpoint",2),i([a({type:Boolean,reflect:!0})],t.prototype,"inset",2),i([m('[part="base"]')],t.prototype,"teaser",2),i([d()],t.prototype,"_orientation",2),t=i([h("sd-5-5-0-teaser")],t);export{t as a};
@@ -1 +1 @@
1
- import{b as d}from"./chunk.5XTSQKKL.js";import{a as b}from"./chunk.CDC46OKY.js";import{b as m}from"./chunk.6HLS5XU2.js";import{a as p}from"./chunk.YTG5BN3U.js";import{a as l}from"./chunk.26V4EXHB.js";import{a as n}from"./chunk.E2DRD2OX.js";import{a as h,b as r,c,d as s,h as o}from"./chunk.3J5KIUOG.js";import{b as u,e as a}from"./chunk.UWPDCU52.js";import{e as i}from"./chunk.TJOCV4DC.js";var t=class extends o{constructor(){super(...arguments);this.formControlController=new m(this,{value:e=>e.checked?e.value||"on":void 0,defaultValue:e=>e.defaultChecked,setValue:(e,f)=>e.checked=f});this.title="";this.name="";this.size="lg";this.disabled=!1;this.visuallyDisabled=!1;this.checked=!1;this.indeterminate=!1;this.defaultChecked=!1;this.form="";this.required=!1;this.showInvalidStyle=!1}get validity(){return this.input.validity}firstUpdated(){this.formControlController.updateValidity()}handleClick(e){if(this.visuallyDisabled){e.preventDefault(),e.stopPropagation();return}this.checked=!this.checked,this.indeterminate=!1,this.emit("sd-change")}handleBlur(){this.emit("sd-blur")}handleInput(){this.emit("sd-input")}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e),this.invalidMessage.textContent=e.target.validationMessage}handleFocus(){this.emit("sd-focus")}handleDisabledChange(){let e=this.disabled||this.visuallyDisabled;this.setAttribute("aria-disabled",e?"true":"false"),this.formControlController.setValidity(e)}handleStateChange(){this.input.checked=this.checked,this.input.indeterminate=this.indeterminate,this.formControlController.updateValidity()}click(){this.input.click()}focus(e){this.input.focus(e)}blur(){this.input.blur()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.input.reportValidity()}setCustomValidity(e){this.input.setCustomValidity(e),this.formControlController.updateValidity()}render(){let e=this.disabled&&this.indeterminate?"disabledIndeterminate":this.disabled&&this.checked?"disabledChecked":this.disabled?"disabled":this.visuallyDisabled?"visuallyDisabled":this.showInvalidStyle&&this.indeterminate?"invalidIndeterminate":this.showInvalidStyle?"invalid":this.checked||this.indeterminate?"filled":"default";return a`<label part="base" class="${l("sd-5-4-3-checkbox group flex items-start text-base leading-normal text-black cursor-pointer",(this.disabled||this.visuallyDisabled)&&"hover:cursor-not-allowed",{sm:"text-sm",md:"text-base",lg:"text-base"}[this.size])}"><input class="peer absolute opacity-0 p-0 m-0 pointer-events-none" type="checkbox" title="${this.title}" name="${this.name}" value="${p(this.value)}" .indeterminate="${d(this.indeterminate)}" .checked="${d(this.checked)}" .disabled="${this.disabled}" .required="${this.required}" aria-checked="${this.indeterminate?"mixed":this.checked}" aria-describedby="invalid-message" aria-invalid="${this.showInvalidStyle}" aria-disabled="${this.disabled||this.visuallyDisabled?"true":"false"}" @click="${this.handleClick}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @blur="${this.handleBlur}" @focus="${this.handleFocus}"> <span id="control" part="control ${this.checked?" control--checked":"control--unchecked"} ${this.indeterminate?" control--indeterminate":""}" class="${l("relative flex flex-shrink-0 items-center justify-center border rounded-sm h-4 w-4","transition-colors ease-in-out duration-medium group-hover:duration-fast","peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:outline-primary",{sm:"mt-[2px]",md:"mt-[3px]",lg:"mt-[3px]"}[this.size],{disabledIndeterminate:"border-neutral-500 bg-neutral-500",disabledChecked:"border-neutral-500 bg-neutral-500",disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",invalidIndeterminate:"border-error bg-error group-hover:bg-error-400",invalid:"border-error group-hover:bg-neutral-200",filled:"border-accent hover:border-accent-550 group-hover:border-accent-550 bg-accent group-hover:bg-accent-550",default:"border-neutral-800 hover:bg-neutral-200 group-hover:bg-neutral-200 bg-white"}[e])}"><div class="${l("absolute h-3 transition-[width] right-0.25 duration-medium",this.checked?"w-0":"w-3")}"><div class="${l("w-full h-full transition-colors duration-medium ease-in-out group-hover:duration-fast",{disabledIndeterminate:"bg-neutral-500",disabledChecked:" bg-neutral-500",disabled:"",visuallyDisabled:"",invalidIndeterminate:" bg-error group-hover:bg-error-400",invalid:"group-hover:bg-neutral-200",filled:"bg-accent group-hover:bg-accent-550",default:"hover:bg-neutral-200 group-hover:bg-neutral-200 bg-white"}[e])}"></div></div>${this.checked?a`<sd-5-4-3-icon part="checked-icon" class="text-white w-3 h-3" library="_internal" name="status-check"></sd-5-4-3-icon>`:""} ${!this.checked&&this.indeterminate?a`<sd-5-4-3-icon part="indeterminate-icon" class="text-white w-3 h-3" library="_internal" name="status-minus"></sd-5-4-3-icon>`:""} </span><span part="label" id="label" class="${l("select-none inline-block ml-2",this.disabled||this.visuallyDisabled?"text-neutral-500":this.showInvalidStyle?"text-error":"text-black")}"><slot></slot></span></label> ${this.formControlController.renderInvalidMessage()}`}};t.styles=[...o.styles,u`:host{display:block;width:-moz-max-content;width:max-content}:host(:focus-visible){outline-width:0}:host([required]) #label:after{content:" *"}`],i([s('input[type="checkbox"]')],t.prototype,"input",2),i([s("#invalid-message")],t.prototype,"invalidMessage",2),i([r({type:String,reflect:!0})],t.prototype,"title",2),i([r({type:String,reflect:!0})],t.prototype,"name",2),i([r()],t.prototype,"value",2),i([r({type:String,reflect:!0})],t.prototype,"size",2),i([r({type:Boolean,reflect:!0})],t.prototype,"disabled",2),i([r({type:Boolean,reflect:!0,attribute:"visually-disabled"})],t.prototype,"visuallyDisabled",2),i([r({type:Boolean,reflect:!0})],t.prototype,"checked",2),i([r({type:Boolean,reflect:!0})],t.prototype,"indeterminate",2),i([b("checked")],t.prototype,"defaultChecked",2),i([r({type:String,reflect:!0})],t.prototype,"form",2),i([r({type:Boolean,reflect:!0})],t.prototype,"required",2),i([c()],t.prototype,"showInvalidStyle",2),i([n(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],t.prototype,"handleDisabledChange",1),i([n(["checked","indeterminate"],{waitUntilFirstUpdate:!0})],t.prototype,"handleStateChange",1),t=i([h("sd-5-4-3-checkbox")],t);export{t as a};
1
+ import{b as d}from"./chunk.5XTSQKKL.js";import{a as b}from"./chunk.CDC46OKY.js";import{b as m}from"./chunk.6HLS5XU2.js";import{a as p}from"./chunk.YTG5BN3U.js";import{a as l}from"./chunk.26V4EXHB.js";import{a as n}from"./chunk.E2DRD2OX.js";import{a as h,b as r,c,d as s,h as o}from"./chunk.YVWXTEAH.js";import{b as u,e as a}from"./chunk.UWPDCU52.js";import{e as i}from"./chunk.TJOCV4DC.js";var t=class extends o{constructor(){super(...arguments);this.formControlController=new m(this,{value:e=>e.checked?e.value||"on":void 0,defaultValue:e=>e.defaultChecked,setValue:(e,f)=>e.checked=f});this.title="";this.name="";this.size="lg";this.disabled=!1;this.visuallyDisabled=!1;this.checked=!1;this.indeterminate=!1;this.defaultChecked=!1;this.form="";this.required=!1;this.showInvalidStyle=!1}get validity(){return this.input.validity}firstUpdated(){this.formControlController.updateValidity()}handleClick(e){if(this.visuallyDisabled){e.preventDefault(),e.stopPropagation();return}this.checked=!this.checked,this.indeterminate=!1,this.emit("sd-change")}handleBlur(){this.emit("sd-blur")}handleInput(){this.emit("sd-input")}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e),this.invalidMessage.textContent=e.target.validationMessage}handleFocus(){this.emit("sd-focus")}handleDisabledChange(){let e=this.disabled||this.visuallyDisabled;this.setAttribute("aria-disabled",e?"true":"false"),this.formControlController.setValidity(e)}handleStateChange(){this.input.checked=this.checked,this.input.indeterminate=this.indeterminate,this.formControlController.updateValidity()}click(){this.input.click()}focus(e){this.input.focus(e)}blur(){this.input.blur()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.input.reportValidity()}setCustomValidity(e){this.input.setCustomValidity(e),this.formControlController.updateValidity()}render(){let e=this.disabled&&this.indeterminate?"disabledIndeterminate":this.disabled&&this.checked?"disabledChecked":this.disabled?"disabled":this.visuallyDisabled?"visuallyDisabled":this.showInvalidStyle&&this.indeterminate?"invalidIndeterminate":this.showInvalidStyle?"invalid":this.checked||this.indeterminate?"filled":"default";return a`<label part="base" class="${l("sd-5-5-0-checkbox group flex items-start text-base leading-normal text-black cursor-pointer",(this.disabled||this.visuallyDisabled)&&"hover:cursor-not-allowed",{sm:"text-sm",md:"text-base",lg:"text-base"}[this.size])}"><input class="peer absolute opacity-0 p-0 m-0 pointer-events-none" type="checkbox" title="${this.title}" name="${this.name}" value="${p(this.value)}" .indeterminate="${d(this.indeterminate)}" .checked="${d(this.checked)}" .disabled="${this.disabled}" .required="${this.required}" aria-checked="${this.indeterminate?"mixed":this.checked}" aria-describedby="invalid-message" aria-invalid="${this.showInvalidStyle}" aria-disabled="${this.disabled||this.visuallyDisabled?"true":"false"}" @click="${this.handleClick}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @blur="${this.handleBlur}" @focus="${this.handleFocus}"> <span id="control" part="control ${this.checked?" control--checked":"control--unchecked"} ${this.indeterminate?" control--indeterminate":""}" class="${l("relative flex flex-shrink-0 items-center justify-center border rounded-sm h-4 w-4","transition-colors ease-in-out duration-medium group-hover:duration-fast","peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:outline-primary",{sm:"mt-[2px]",md:"mt-[3px]",lg:"mt-[3px]"}[this.size],{disabledIndeterminate:"border-neutral-500 bg-neutral-500",disabledChecked:"border-neutral-500 bg-neutral-500",disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",invalidIndeterminate:"border-error bg-error group-hover:bg-error-400",invalid:"border-error group-hover:bg-neutral-200",filled:"border-accent hover:border-accent-550 group-hover:border-accent-550 bg-accent group-hover:bg-accent-550",default:"border-neutral-800 hover:bg-neutral-200 group-hover:bg-neutral-200 bg-white"}[e])}"><div class="${l("absolute h-3 transition-[width] right-0.25 duration-medium",this.checked?"w-0":"w-3")}"><div class="${l("w-full h-full transition-colors duration-medium ease-in-out group-hover:duration-fast",{disabledIndeterminate:"bg-neutral-500",disabledChecked:" bg-neutral-500",disabled:"",visuallyDisabled:"",invalidIndeterminate:" bg-error group-hover:bg-error-400",invalid:"group-hover:bg-neutral-200",filled:"bg-accent group-hover:bg-accent-550",default:"hover:bg-neutral-200 group-hover:bg-neutral-200 bg-white"}[e])}"></div></div>${this.checked?a`<sd-5-5-0-icon part="checked-icon" class="text-white w-3 h-3" library="_internal" name="status-check"></sd-5-5-0-icon>`:""} ${!this.checked&&this.indeterminate?a`<sd-5-5-0-icon part="indeterminate-icon" class="text-white w-3 h-3" library="_internal" name="status-minus"></sd-5-5-0-icon>`:""} </span><span part="label" id="label" class="${l("select-none inline-block ml-2",this.disabled||this.visuallyDisabled?"text-neutral-500":this.showInvalidStyle?"text-error":"text-black")}"><slot></slot></span></label> ${this.formControlController.renderInvalidMessage()}`}};t.styles=[...o.styles,u`:host{display:block;width:-moz-max-content;width:max-content}:host(:focus-visible){outline-width:0}:host([required]) #label:after{content:" *"}`],i([s('input[type="checkbox"]')],t.prototype,"input",2),i([s("#invalid-message")],t.prototype,"invalidMessage",2),i([r({type:String,reflect:!0})],t.prototype,"title",2),i([r({type:String,reflect:!0})],t.prototype,"name",2),i([r()],t.prototype,"value",2),i([r({type:String,reflect:!0})],t.prototype,"size",2),i([r({type:Boolean,reflect:!0})],t.prototype,"disabled",2),i([r({type:Boolean,reflect:!0,attribute:"visually-disabled"})],t.prototype,"visuallyDisabled",2),i([r({type:Boolean,reflect:!0})],t.prototype,"checked",2),i([r({type:Boolean,reflect:!0})],t.prototype,"indeterminate",2),i([b("checked")],t.prototype,"defaultChecked",2),i([r({type:String,reflect:!0})],t.prototype,"form",2),i([r({type:Boolean,reflect:!0})],t.prototype,"required",2),i([c()],t.prototype,"showInvalidStyle",2),i([n(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],t.prototype,"handleDisabledChange",1),i([n(["checked","indeterminate"],{waitUntilFirstUpdate:!0})],t.prototype,"handleStateChange",1),t=i([h("sd-5-5-0-checkbox")],t);export{t as a};
@@ -1 +1 @@
1
- import{a as b}from"./chunk.YTG5BN3U.js";import{a as c,c as p}from"./chunk.SKUMYG4O.js";import{a as y}from"./chunk.DEXOQON7.js";import{a as o}from"./chunk.26V4EXHB.js";import{a as m}from"./chunk.KLRPP4NQ.js";import{a as v}from"./chunk.E2DRD2OX.js";import{a as f,b as a,d as n,h}from"./chunk.3J5KIUOG.js";import{b as g,e as u}from"./chunk.UWPDCU52.js";import{b as r,e as l,f as d}from"./chunk.6OTM3PE5.js";import{e as i}from"./chunk.TJOCV4DC.js";var t=class extends h{constructor(){super(...arguments);this.open=!1;this.inverted=!1;this.localize=new y(this)}updateMaxHeight(){var s;let e=(s=this.contentPreview)==null?void 0:s.scrollHeight.toString();this.style.setProperty("--max-height-pixel",`${e}px`),this.style.setProperty("--max-height",e)}onToggleClick(){this.updateMaxHeight(),this.open=!this.open}async onOpenChange(){if(this.body.classList.add("transitioning"),this.open){this.emit("sd-show"),await l(this.body);let{keyframes:e,options:s}=p(this,"expandable.show",{dir:this.localize.dir()});await r(this.body,d(e,this.body.scrollHeight),s),this.body.style.height="auto",this.updateComplete.then(()=>{this.emit("sd-after-show")})}else{this.emit("sd-hide"),await l(this.body);let{keyframes:e,options:s}=p(this,"expandable.hide",{dir:this.localize.dir()});await r(this.body,d(e,this.body.scrollHeight),s),this.body.style.height="auto",this.updateComplete.then(()=>{this.emit("sd-after-hide")})}this.details.setAttribute("open",this.open.toString()),this.body.classList.remove("transitioning")}async show(){if(!this.open)return this.onToggleClick(),m(this,"sd-after-show")}async hide(){if(this.open)return this.onToggleClick(),m(this,"sd-after-hide")}render(){return u`<div part="base" class="flex flex-col-reverse gap-4"><button part="toggle" class="${o("sd-interactive sd-interactive--reset",this.inverted&&"sd-interactive--inverted",this.inverted?"!focus-visible:focus-outline-inverted":"!focus-visible:focus-outline")}" @click="${this.onToggleClick}" aria-expanded="${this.open}"><div class="${o("h-full justify-center w-full text-base flex items-center toggle")}"><span part="toggle-icon" class="${o("flex items-center mr-2 transition-transform duration-medium ease-in-out",this.open&&"rotate-180")}"><slot name="expand-icon" class="${o(this.open&&"hidden")}"><sd-5-4-3-icon library="_internal" name="chevron-down" class="text-xl"></sd-5-4-3-icon></slot><slot name="collapse-icon" class="${o(!this.open&&"hidden")}"><sd-5-4-3-icon library="_internal" name="chevron-down" class="text-xl"></sd-5-4-3-icon></slot></span><slot name="toggle-closed" class="${o(this.open&&"hidden")}">${this.localize.term("showMore")}</slot><slot name="toggle-open" class="${o(!this.open&&"hidden")}">${this.localize.term("showLess")}</slot></div></button><details part="details" ?inert="${b(!this.open)}"><summary part="summary" aria-hidden="true" class="cursor-pointer overflow-hidden list-none"><slot name="clone"></slot></summary><div part="content" class="content content-preview overflow-hidden relative"><slot></slot></div></details></div>`}firstUpdated(){this.cloneContentToLightDOM(),this.details.setAttribute("open",this.open.toString())}cloneContentToLightDOM(){let e=document.createElement("div");e.setAttribute("slot","clone"),Array.from(this.childNodes).forEach(x=>{let w=x.cloneNode(!0);e.appendChild(w)}),this.appendChild(e)}};t.styles=[...h.styles,g`:host{--gradient-color-start:hsla(0,0%,100%,0);--gradient-color-end:#fff;--component-expandable-max-block-size:90px;--gradient-height:24px;--gradient:var(--gradient-color-start) 0%,var(--gradient-color-end) 80%,var(--gradient-color-end) 100%;display:inline-block;position:relative;width:100%}.toggle::-moz-focus-inner{border-style:none;padding:var(--sd-spacing-0,0)}details>summary::-webkit-details-marker,details[open] summary{display:none}summary{max-block-size:var(--component-expandable-max-block-size)}:host([open]) summary{max-block-size:var(--max-height-pixel,1000vh)}.content{max-block-size:var(--component-expandable-max-block-size)}:host([open]) .content,:host:has(.transitioning) .content{max-block-size:var(--max-height-pixel,1000vh)}.content:after{background:linear-gradient(180deg,var(--gradient));bottom:var(--sd-spacing-0,0);content:" ";display:block;height:var(--gradient-height);left:var(--sd-spacing-0,0);opacity:var(--sd-opacity-0,0);position:absolute;transition-duration:.15s;transition-duration:var(--sd-duration-medium,.3s);transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);width:100%}:host([inverted]) .content:after{background:var(--gradient-vertical-transparent-primary,linear-gradient(180deg,rgba(0,53,142,0) 0,#00358e 80%,#00358e 100%))}:host(:not([open])) .content:after{opacity:var(--sd-opacity-100,1)}`],i([n(".content-preview")],t.prototype,"contentPreview",2),i([n("details")],t.prototype,"details",2),i([n('[part="content"]')],t.prototype,"body",2),i([a({type:Boolean,reflect:!0})],t.prototype,"open",2),i([a({type:Boolean,reflect:!0})],t.prototype,"inverted",2),i([v("open",{waitUntilFirstUpdate:!0})],t.prototype,"onOpenChange",1),t=i([f("sd-5-4-3-expandable")],t);c("expandable.show",{keyframes:[{height:"var(--component-expandable-max-block-size, 90px)"},{height:"auto"}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});c("expandable.hide",{keyframes:[{height:"auto"},{height:"var(--component-expandable-max-block-size, 90px)"}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});export{t as a};
1
+ import{a as b}from"./chunk.YTG5BN3U.js";import{a as c,c as p}from"./chunk.SKUMYG4O.js";import{a as y}from"./chunk.DEXOQON7.js";import{a as o}from"./chunk.26V4EXHB.js";import{a as m}from"./chunk.KLRPP4NQ.js";import{a as v}from"./chunk.E2DRD2OX.js";import{a as f,b as a,d as n,h}from"./chunk.YVWXTEAH.js";import{b as g,e as u}from"./chunk.UWPDCU52.js";import{b as r,e as l,f as d}from"./chunk.6OTM3PE5.js";import{e as i}from"./chunk.TJOCV4DC.js";var t=class extends h{constructor(){super(...arguments);this.open=!1;this.inverted=!1;this.localize=new y(this)}updateMaxHeight(){var s;let e=(s=this.contentPreview)==null?void 0:s.scrollHeight.toString();this.style.setProperty("--max-height-pixel",`${e}px`),this.style.setProperty("--max-height",e)}onToggleClick(){this.updateMaxHeight(),this.open=!this.open}async onOpenChange(){if(this.body.classList.add("transitioning"),this.open){this.emit("sd-show"),await l(this.body);let{keyframes:e,options:s}=p(this,"expandable.show",{dir:this.localize.dir()});await r(this.body,d(e,this.body.scrollHeight),s),this.body.style.height="auto",this.updateComplete.then(()=>{this.emit("sd-after-show")})}else{this.emit("sd-hide"),await l(this.body);let{keyframes:e,options:s}=p(this,"expandable.hide",{dir:this.localize.dir()});await r(this.body,d(e,this.body.scrollHeight),s),this.body.style.height="auto",this.updateComplete.then(()=>{this.emit("sd-after-hide")})}this.details.setAttribute("open",this.open.toString()),this.body.classList.remove("transitioning")}async show(){if(!this.open)return this.onToggleClick(),m(this,"sd-after-show")}async hide(){if(this.open)return this.onToggleClick(),m(this,"sd-after-hide")}render(){return u`<div part="base" class="flex flex-col-reverse gap-4"><button part="toggle" class="${o("sd-interactive sd-interactive--reset",this.inverted&&"sd-interactive--inverted",this.inverted?"!focus-visible:focus-outline-inverted":"!focus-visible:focus-outline")}" @click="${this.onToggleClick}" aria-expanded="${this.open}"><div class="${o("h-full justify-center w-full text-base flex items-center toggle")}"><span part="toggle-icon" class="${o("flex items-center mr-2 transition-transform duration-medium ease-in-out",this.open&&"rotate-180")}"><slot name="expand-icon" class="${o(this.open&&"hidden")}"><sd-5-5-0-icon library="_internal" name="chevron-down" class="text-xl"></sd-5-5-0-icon></slot><slot name="collapse-icon" class="${o(!this.open&&"hidden")}"><sd-5-5-0-icon library="_internal" name="chevron-down" class="text-xl"></sd-5-5-0-icon></slot></span><slot name="toggle-closed" class="${o(this.open&&"hidden")}">${this.localize.term("showMore")}</slot><slot name="toggle-open" class="${o(!this.open&&"hidden")}">${this.localize.term("showLess")}</slot></div></button><details part="details" ?inert="${b(!this.open)}"><summary part="summary" aria-hidden="true" class="cursor-pointer overflow-hidden list-none"><slot name="clone"></slot></summary><div part="content" class="content content-preview overflow-hidden relative"><slot></slot></div></details></div>`}firstUpdated(){this.cloneContentToLightDOM(),this.details.setAttribute("open",this.open.toString())}cloneContentToLightDOM(){let e=document.createElement("div");e.setAttribute("slot","clone"),Array.from(this.childNodes).forEach(x=>{let w=x.cloneNode(!0);e.appendChild(w)}),this.appendChild(e)}};t.styles=[...h.styles,g`:host{--gradient-color-start:hsla(0,0%,100%,0);--gradient-color-end:#fff;--component-expandable-max-block-size:90px;--gradient-height:24px;--gradient:var(--gradient-color-start) 0%,var(--gradient-color-end) 80%,var(--gradient-color-end) 100%;display:inline-block;position:relative;width:100%}.toggle::-moz-focus-inner{border-style:none;padding:var(--sd-spacing-0,0)}details>summary::-webkit-details-marker,details[open] summary{display:none}summary{max-block-size:var(--component-expandable-max-block-size)}:host([open]) summary{max-block-size:var(--max-height-pixel,1000vh)}.content{max-block-size:var(--component-expandable-max-block-size)}:host([open]) .content,:host:has(.transitioning) .content{max-block-size:var(--max-height-pixel,1000vh)}.content:after{background:linear-gradient(180deg,var(--gradient));bottom:var(--sd-spacing-0,0);content:" ";display:block;height:var(--gradient-height);left:var(--sd-spacing-0,0);opacity:var(--sd-opacity-0,0);position:absolute;transition-duration:.15s;transition-duration:var(--sd-duration-medium,.3s);transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);width:100%}:host([inverted]) .content:after{background:var(--gradient-vertical-transparent-primary,linear-gradient(180deg,rgba(0,53,142,0) 0,#00358e 80%,#00358e 100%))}:host(:not([open])) .content:after{opacity:var(--sd-opacity-100,1)}`],i([n(".content-preview")],t.prototype,"contentPreview",2),i([n("details")],t.prototype,"details",2),i([n('[part="content"]')],t.prototype,"body",2),i([a({type:Boolean,reflect:!0})],t.prototype,"open",2),i([a({type:Boolean,reflect:!0})],t.prototype,"inverted",2),i([v("open",{waitUntilFirstUpdate:!0})],t.prototype,"onOpenChange",1),t=i([f("sd-5-5-0-expandable")],t);c("expandable.show",{keyframes:[{height:"var(--component-expandable-max-block-size, 90px)"},{height:"auto"}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});c("expandable.hide",{keyframes:[{height:"auto"},{height:"var(--component-expandable-max-block-size, 90px)"}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});export{t as a};
@@ -0,0 +1 @@
1
+ import{a as g,b as v}from"./chunk.I2H6CZK5.js";import{a as d,c as h}from"./chunk.SKUMYG4O.js";import{a as H}from"./chunk.DEXOQON7.js";import{a as r}from"./chunk.26V4EXHB.js";import{a as y}from"./chunk.KLRPP4NQ.js";import{a as f}from"./chunk.E2DRD2OX.js";import{a as T,b as a,d as u,h as w}from"./chunk.YVWXTEAH.js";import{b as k,e as p}from"./chunk.UWPDCU52.js";import{b as n,e as l,f as b}from"./chunk.6OTM3PE5.js";import{e}from"./chunk.TJOCV4DC.js";var m={"top-right":null,"bottom-center":null},$=()=>{Object.entries(m).forEach(([s])=>{let c=document.querySelector(`#sd-toast-stack--${s}`);if(c){c.setAttribute("role","region"),m[s]=c;return}m[s]=Object.assign(document.createElement("div"),{role:"region",id:`sd-toast-stack--${s}`,className:`sd-toast-stack sd-toast-stack--${s}`})})};$();var t=class extends w{constructor(){super(...arguments);this.localize=new H(this);this.variant="info";this.open=!1;this.closable=!1;this.duration=1/0;this.durationIndicator=!1;this.toastStack="top-right";this.remainingDuration=this.duration;this.startTime=Date.now()}get stack(){return m[this.toastStack]}connectedCallback(){super.connectedCallback(),this.stack.parentElement||(document.body.append(this.stack),this.stack.ariaLabel=this.localize.term("notifications"))}disconnectedCallback(){super.disconnectedCallback()}firstUpdated(){this.wrapper.hidden=!this.open}startAutoHide(){clearTimeout(this.autoHideTimeout),this.startTime=Date.now(),this.remainingDuration=this.duration,this.open&&this.duration<1/0&&(this.autoHideTimeout=window.setTimeout(()=>this.hide(),this.duration))}onHover(){clearTimeout(this.autoHideTimeout),this.duration<1/0&&(this.remainingDuration-=Date.now()-this.startTime)}onHoverEnd(){this.startTime=Date.now(),clearTimeout(this.autoHideTimeout),this.open&&this.duration<1/0&&(this.autoHideTimeout=window.setTimeout(()=>{this.hide()},this.remainingDuration))}handleCloseClick(){this.hide()}handleKeyDown(i){this.closable&&i.key==="Escape"&&this.hide()}async handleOpenChange(){if(this.open){this.emit("sd-show"),this.duration<1/0&&this.startAutoHide(),await Promise.all([l(this.base),l(this.wrapper)]),this.wrapper.hidden=!1;let i=h(this,"notification.show",{dir:this.localize.dir()}),o=h(this,`notification.wrapper.show${g(v(this.toastStack))}`,{dir:this.localize.dir()});await Promise.all([n(this.base,b(i.keyframes,this.base.scrollHeight),i.options),n(this.wrapper,o.keyframes,o.options)]),this.emit("sd-after-show")}else{this.emit("sd-hide"),clearTimeout(this.autoHideTimeout),await Promise.all([l(this.base),l(this.wrapper)]);let i=h(this,"notification.hide",{dir:this.localize.dir()}),o=h(this,`notification.wrapper.hide${g(v(this.toastStack))}`,{dir:this.localize.dir()});await Promise.all([n(this.base,b(i.keyframes,this.base.scrollHeight),i.options),n(this.wrapper,o.keyframes,o.options)]),this.wrapper.hidden=!0,this.emit("sd-after-hide")}}handleDurationChange(){this.startAutoHide()}async show(){if(!this.open)return this.open=!0,y(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,y(this,"sd-after-hide")}async toast(){return new Promise(i=>{this.stack.parentElement===null&&document.body.append(this.stack),this.stack.appendChild(this),requestAnimationFrame(()=>{this.clientWidth,this.show()}),this.addEventListener("sd-after-hide",()=>{this.stack.removeChild(this),i()},{once:!0})})}render(){return p`<div part="base" class="${r("w-full flex items-stretch m-2 focus-visible:focus-outline")}" id="notification" tabindex="0" role="alert" aria-labelledby="message" aria-hidden="${this.open?"false":"true"}" @mouseenter="${this.onHover}" @mouseleave="${this.onHoverEnd}" @keydown="${this.handleKeyDown}"><div part="wrapper" class="${r("w-full h-fit overflow-hidden flex items-stretch relative")}"><slot name="icon" part="icon" class="${r("min-w-min flex items-center px-3 justify-center",{info:"bg-info",success:"bg-success",warning:"bg-warning",error:"bg-error"}[this.variant])}"><sd-5-5-0-icon name="${{info:"info-circle",success:"confirm-circle",warning:"exclamation-circle",error:"warning"}[this.variant]||""}" library="_internal" class="h-6 w-6 text-white"></sd-5-5-0-icon></slot><div part="content" class="${r("h-full w-full p-1 gap-2 flex items-center justify-stretch bg-white","border-solid border-[1px] border-l-0 border-neutral-400")}"><slot id="message" part="message" class="block w-full pl-3 py-2"></slot>${this.closable?p`<sd-5-5-0-button size="md" variant="tertiary" part="close-button" class="ml-auto flex flex-[0_0_auto] items-stretch" @click="${this.handleCloseClick}"><sd-5-5-0-icon label="${this.localize.term("close")}" name="close" library="_internal" color="currentColor"></sd-5-5-0-icon></sd-5-5-0-button>`:""}</div>${this.durationIndicator?p`<div part="duration-indicator__elapsed" id="duration-indicator__elapsed" style="${`animation-duration: ${this.duration}ms`}" class="${r("absolute w-0 h-[2px] bottom-0 bg-primary z-10 animate-grow")}"></div><div part="duration-indicator__total" class="w-full h-[2px] bottom-0 absolute border border-neutral-400"></div>`:""}</div></div>`}};t.styles=[...w.styles,k`:host{display:contents}#notification:hover #duration-indicator__elapsed{animation-play-state:paused!important}`],e([u('[part~="base"]')],t.prototype,"base",2),e([u('[part~="wrapper"]')],t.prototype,"wrapper",2),e([u('[part~="close-button"]')],t.prototype,"close",2),e([a({type:String,reflect:!0})],t.prototype,"variant",2),e([a({type:Boolean,reflect:!0})],t.prototype,"open",2),e([a({type:Boolean,reflect:!0})],t.prototype,"closable",2),e([a({type:Number,reflect:!0})],t.prototype,"duration",2),e([a({type:Boolean,reflect:!0,attribute:"duration-indicator"})],t.prototype,"durationIndicator",2),e([a({type:String,reflect:!0,attribute:"toast-stack"})],t.prototype,"toastStack",2),e([f("open",{waitUntilFirstUpdate:!0})],t.prototype,"handleOpenChange",1),e([f("duration")],t.prototype,"handleDurationChange",1),t=e([T("sd-5-5-0-notification")],t);d("notification.show",{keyframes:[{opacity:0,height:0},{opacity:1,height:"auto"}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});d("notification.hide",{keyframes:[{opacity:1,height:"auto"},{opacity:0,height:0}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});d("notification.wrapper.showTopRight",{keyframes:[{bottom:"32px"},{bottom:"0"}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});d("notification.wrapper.hideTopRight",{keyframes:[{bottom:"0"},{bottom:"32px"}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});export{t as a};
@@ -1 +1 @@
1
- import{a as b}from"./chunk.6HO6CE4A.js";import{a as i}from"./chunk.26V4EXHB.js";import{a}from"./chunk.E2DRD2OX.js";import{a as d,b as l,d as c,h as r}from"./chunk.3J5KIUOG.js";import{b as o,e as n}from"./chunk.UWPDCU52.js";import{e}from"./chunk.TJOCV4DC.js";var u=0,t=class extends r{constructor(){super(...arguments);this.attrId=++u;this.componentId=`sd-5-4-3-tab-${this.attrId}`;this.hasSlotController=new b(this,"left");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 s=this.disabled||this.visuallyDisabled;this.setAttribute("aria-disabled",s?"true":"false")}focus(s){this.tab.focus(s)}blur(){this.tab.blur()}render(){this.id=this.id.length>0?this.id:this.componentId;let s={left:this.hasSlotController.test("left")};return n`<div part="base" class="${i("inline-flex justify-center min-w-max items-center h-12 px-3 leading-none select-none cursor-pointer group relative focus-visible:focus-outline outline-2 !-outline-offset-2",this.variant==="container"&&" rounded-[4px_4px_0_0]",this.variant==="container"&&this.active&&"tab--active-container-border bg-white",this.disabled||this.visuallyDisabled?"!cursor-not-allowed":"hover:bg-neutral-200")}" tabindex="${!this.active||this.disabled?"-1":"0"}"><div class="${i("flex h-full items-center justify-center whitespace-nowrap",this.disabled||this.visuallyDisabled&&"opacity-50 ")}"><slot name="left" class="${i(s.left&&"block pr-2",this.disabled||this.visuallyDisabled?"text-neutral-500":"text-primary")}"></slot><slot class="${i(this.disabled||this.visuallyDisabled?"text-neutral-500":"text-primary")}"></slot><div part="active-tab-indicator" class="${i((!this.active||this.disabled)&&"hidden","absolute bottom-0 h-1 bg-accent",this.variant==="default"?"w-full":"w-3/4 group-hover:w-full transition-all duration-200 ease-in-out")}"></div><div part="hover-bottom-border" class="${i(!this.active&&!this.disabled&&"absolute w-full h-0.25 bottom-0 border-b border-neutral-400 invisible group-hover:visible")}"></div></div></div>`}};t.styles=[...r.styles,o`:host{box-sizing:border-box;display:block}.tab--active-container-border:after{border-width:1px;content:"";height:100%;position:absolute;width:100%;--tw-border-opacity:1;border-color:rgb(var(--sd-color-neutral-400,195 195 195)/var(--tw-border-opacity,1));border-bottom:none;border-radius:4px 4px 0 0}`],e([c("[part=base]")],t.prototype,"tab",2),e([l({type:String,reflect:!0})],t.prototype,"variant",2),e([l({type:Boolean,reflect:!0})],t.prototype,"active",2),e([l({type:Boolean,reflect:!0})],t.prototype,"disabled",2),e([l({type:Boolean,reflect:!0,attribute:"visually-disabled"})],t.prototype,"visuallyDisabled",2),e([l({type:String,reflect:!0})],t.prototype,"panel",2),e([a("active")],t.prototype,"handleActiveChange",1),e([a(["disabled","visually-disabled"])],t.prototype,"handleDisabledChange",1),t=e([d("sd-5-4-3-tab")],t);export{t as a};
1
+ import{a as b}from"./chunk.6HO6CE4A.js";import{a as i}from"./chunk.26V4EXHB.js";import{a}from"./chunk.E2DRD2OX.js";import{a as d,b as l,d as c,h as r}from"./chunk.YVWXTEAH.js";import{b as o,e as n}from"./chunk.UWPDCU52.js";import{e}from"./chunk.TJOCV4DC.js";var u=0,t=class extends r{constructor(){super(...arguments);this.attrId=++u;this.componentId=`sd-5-5-0-tab-${this.attrId}`;this.hasSlotController=new b(this,"left");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 s=this.disabled||this.visuallyDisabled;this.setAttribute("aria-disabled",s?"true":"false")}focus(s){this.tab.focus(s)}blur(){this.tab.blur()}render(){this.id=this.id.length>0?this.id:this.componentId;let s={left:this.hasSlotController.test("left")};return n`<div part="base" class="${i("inline-flex justify-center min-w-max items-center h-12 px-3 leading-none select-none cursor-pointer group relative focus-visible:focus-outline outline-2 !-outline-offset-2",this.variant==="container"&&" rounded-[4px_4px_0_0]",this.variant==="container"&&this.active&&"tab--active-container-border bg-white",this.disabled||this.visuallyDisabled?"!cursor-not-allowed":"hover:bg-neutral-200")}" tabindex="${!this.active||this.disabled?"-1":"0"}"><div class="${i("flex h-full items-center justify-center whitespace-nowrap",this.disabled||this.visuallyDisabled&&"opacity-50 ")}"><slot name="left" class="${i(s.left&&"block pr-2",this.disabled||this.visuallyDisabled?"text-neutral-500":"text-primary")}"></slot><slot class="${i(this.disabled||this.visuallyDisabled?"text-neutral-500":"text-primary")}"></slot><div part="active-tab-indicator" class="${i((!this.active||this.disabled)&&"hidden","absolute bottom-0 h-1 bg-accent",this.variant==="default"?"w-full":"w-3/4 group-hover:w-full transition-all duration-200 ease-in-out")}"></div><div part="hover-bottom-border" class="${i(!this.active&&!this.disabled&&"absolute w-full h-0.25 bottom-0 border-b border-neutral-400 invisible group-hover:visible")}"></div></div></div>`}};t.styles=[...r.styles,o`:host{box-sizing:border-box;display:block}.tab--active-container-border:after{border-width:1px;content:"";height:100%;position:absolute;width:100%;--tw-border-opacity:1;border-color:rgb(var(--sd-color-neutral-400,195 195 195)/var(--tw-border-opacity,1));border-bottom:none;border-radius:4px 4px 0 0}`],e([c("[part=base]")],t.prototype,"tab",2),e([l({type:String,reflect:!0})],t.prototype,"variant",2),e([l({type:Boolean,reflect:!0})],t.prototype,"active",2),e([l({type:Boolean,reflect:!0})],t.prototype,"disabled",2),e([l({type:Boolean,reflect:!0,attribute:"visually-disabled"})],t.prototype,"visuallyDisabled",2),e([l({type:String,reflect:!0})],t.prototype,"panel",2),e([a("active")],t.prototype,"handleActiveChange",1),e([a(["disabled","visually-disabled"])],t.prototype,"handleDisabledChange",1),t=e([d("sd-5-5-0-tab")],t);export{t as a};
@@ -1,11 +1,11 @@
1
- import{a as P}from"./chunk.CDC46OKY.js";import{a as H}from"./chunk.X2GM34WQ.js";import{a as L,d as R,e as K,f as w}from"./chunk.W7A3TU2Z.js";import{c as A}from"./chunk.3L472FD4.js";import{b as z}from"./chunk.6HLS5XU2.js";import{a as M}from"./chunk.YTG5BN3U.js";import{a as F}from"./chunk.6HO6CE4A.js";import{a as E,c as C}from"./chunk.SKUMYG4O.js";import{a as $}from"./chunk.N2OPZHJV.js";import{a as V}from"./chunk.DEXOQON7.js";import{a as d}from"./chunk.26V4EXHB.js";import{a as x}from"./chunk.KLRPP4NQ.js";import{a as g}from"./chunk.E2DRD2OX.js";import{a as k,b as r,c as u,d as c,h as T}from"./chunk.3J5KIUOG.js";import{b as D,e as p}from"./chunk.UWPDCU52.js";import{b as S,e as I}from"./chunk.6OTM3PE5.js";import{e as l}from"./chunk.TJOCV4DC.js";var s=class extends T{constructor(){super(...arguments);this.formControlController=new z(this,{assumeInteractionOn:["sd-blur","sd-5-4-3-input"]});this.hasSlotController=new F(this,"help-text","label");this.localize=new V(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.type="text";this.currentPlacement=this.placement;this.getOption=H;this.multiple=!1;this.useTags=!0;this.maxOptionsVisible=3;this.styleOnValid=!1;this.filter=(t,e)=>{let i=w(t.value),a=w(t.getTextLabel()),n=w(e);return i.includes(n)||a.includes(n)};this.getTag=t=>p`<sd-5-4-3-tag ?disabled="${this.disabled}" part="tag" exportparts="
1
+ import{a as P}from"./chunk.CDC46OKY.js";import{a as H}from"./chunk.X2GM34WQ.js";import{a as L,d as R,e as K,f as w}from"./chunk.W7A3TU2Z.js";import{c as A}from"./chunk.3L472FD4.js";import{b as z}from"./chunk.6HLS5XU2.js";import{a as M}from"./chunk.YTG5BN3U.js";import{a as F}from"./chunk.6HO6CE4A.js";import{a as E,c as C}from"./chunk.SKUMYG4O.js";import{a as $}from"./chunk.N2OPZHJV.js";import{a as V}from"./chunk.DEXOQON7.js";import{a as d}from"./chunk.26V4EXHB.js";import{a as x}from"./chunk.KLRPP4NQ.js";import{a as g}from"./chunk.E2DRD2OX.js";import{a as k,b as r,c as u,d as c,h as T}from"./chunk.YVWXTEAH.js";import{b as D,e as p}from"./chunk.UWPDCU52.js";import{b as S,e as I}from"./chunk.6OTM3PE5.js";import{e as l}from"./chunk.TJOCV4DC.js";var s=class extends T{constructor(){super(...arguments);this.formControlController=new z(this,{assumeInteractionOn:["sd-blur","sd-5-5-0-input"]});this.hasSlotController=new F(this,"help-text","label");this.localize=new V(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.type="text";this.currentPlacement=this.placement;this.getOption=H;this.multiple=!1;this.useTags=!0;this.maxOptionsVisible=3;this.styleOnValid=!1;this.filter=(t,e)=>{let i=w(t.value),a=w(t.getTextLabel()),n=w(e);return i.includes(n)||a.includes(n)};this.getTag=t=>p`<sd-5-5-0-tag ?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-5-4-3-tag>`;this.handleDocumentFocusIn=t=>{let e=t.composedPath();this&&!e.includes(this)&&this.hide()};this.handleDocumentKeyDown=t=>{let i=t.composedPath().some(o=>o instanceof HTMLButtonElement&&o.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(t.key==="Enter"){let o=this.getCurrentOption(),f=t.metaKey||t.ctrlKey||t.shiftKey||t.altKey;if(!this.open&&!f){setTimeout(()=>{t.defaultPrevented||this.formControlController.submit()});return}if(!this.open||o!=null&&o.disabled)return;if(o&&!o.disabled){let h=this.value;this.multiple?(this.toggleOptionSelection(o),this.lastOption=o,this.setOrderedSelectedOptions(o),this.updateComplete.then(()=>{this.selectionChanged()})):(this.setOrderedSelectedOptions(o),this.setSelectedOptions(o)),this.updateComplete.then(()=>{this.displayInput.focus({preventScroll:!0}),this.value!==h&&(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"?$(a):a}`};return this.filteredOptions.map(e=>e.tagName.toLowerCase()==="sd-5-4-3-optgroup"?(Array.from(e.children).forEach(i=>{i.tagName.toLowerCase()==="sd-5-4-3-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}</div>`}return[p``]}):[p`<sd-5-4-3-tag ?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-5-5-0-tag>`;this.handleDocumentFocusIn=t=>{let e=t.composedPath();this&&!e.includes(this)&&this.hide()};this.handleDocumentKeyDown=t=>{let i=t.composedPath().some(o=>o instanceof HTMLButtonElement&&o.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(t.key==="Enter"){let o=this.getCurrentOption(),f=t.metaKey||t.ctrlKey||t.shiftKey||t.altKey;if(!this.open&&!f){setTimeout(()=>{t.defaultPrevented||this.formControlController.submit()});return}if(!this.open||o!=null&&o.disabled)return;if(o&&!o.disabled){let h=this.value;this.multiple?(this.toggleOptionSelection(o),this.lastOption=o,this.setOrderedSelectedOptions(o),this.updateComplete.then(()=>{this.selectionChanged()})):(this.setOrderedSelectedOptions(o),this.setSelectedOptions(o)),this.updateComplete.then(()=>{this.displayInput.focus({preventScroll:!0}),this.value!==h&&(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"?$(a):a}`};return this.filteredOptions.map(e=>e.tagName.toLowerCase()==="sd-5-5-0-optgroup"?(Array.from(e.children).forEach(i=>{i.tagName.toLowerCase()==="sd-5-5-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}</div>`}return[p``]}):[p`<sd-5-5-0-tag ?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-5-4-3-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(n=>n instanceof HTMLSlotElement&&n.name==="removable-indicator");if(this.disabled||i)return;(this.open?this.hide():this.show()).then(()=>{setTimeout(()=>this.displayInput.focus({preventScroll:!0}))})}handleComboboxKeyDown(t){t.key!=="Tab"&&this.handleDocumentKeyDown(t)}handleClearClick(t){t.stopPropagation(),this.clearCombobox()}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-5-4-3-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),n=Math.max(0,a);if(t){let o=a+1;n=o>e.length-1?0:o}else{let o=a-1;n=o<0?e.length-1:o}this.setCurrentOption(e[n],new KeyboardEvent("keydown")),A(this.getCurrentOption(),this.listbox,"vertical","auto")}getAllFilteredOptions(){return[...this.filteredWrapper.querySelectorAll("sd-5-4-3-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(n=>n.value&&t.value?n.value===t.value:n.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(n=>n?this.isOptionSelected(n):!1);this.multiple?(!t&&this.selectedOptions.length>0?this.value=[...this.value,...this.selectedOptions.map(n=>n.value||n.getTextLabel())]:this.value=this.selectedOptions.map(n=>(n==null?void 0:n.value)||(n==null?void 0:n.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 y,b,m;let a=i.cloneNode(!0);if(a.current=a.value===((y=this.lastOption)==null?void 0:y.value),a.selected=i.selected,a.checkbox=i.checkbox,a.size=i.size,!(((b=i.parentElement)==null?void 0:b.tagName.toLowerCase())==="sd-5-4-3-optgroup"))return a;let o=i.parentElement,f=(m=o.querySelector('[slot="label"]'))==null?void 0:m.cloneNode(!0),h=e.find(O=>O.id===o.id);if(h){h==null||h.appendChild(a),f&&(h==null||h.appendChild(f));return}let v=o.cloneNode();return v.appendChild(a),f&&v.appendChild(f),e.push(v),v}).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-5-4-3-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 I(this),this.listbox.hidden=!1,this.popup.active=!0;let{keyframes:i,options:a}=C(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 I(this);let{keyframes:t,options:e}=C(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")}async show(){if(this.open||this.disabled||this.visuallyDisabled){this.open=!1;return}return this.open=!0,Promise.race([x(this,"sd-after-show"),x(this,"sd-error")])}async hide(){if(!this.open||this.disabled){this.open=!1;return}return this.displayInputValue="",this.open=!1,x(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 R(L(this.defaultSlot)).flat()}getSlottedOptGroups(){return K(L(this.defaultSlot))}async handleDefaultSlotChange(){if(!customElements.get("sd-5-4-3-option")){customElements.whenDefined("sd-5-4-3-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,n)=>{this.multiple&&(a.checkbox=!0),a.id=a.id||`sd-5-4-3-combobox-option-${n}`}),e.forEach((a,n)=>{a.id=a.id||`sd-5-4-3-combobox-optgroup-${n}`}),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,n=this.helpText?!0:!!i,o=this.clearable&&!this.disabled&&!this.visuallyDisabled,f=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",h=this.disabled||this.visuallyDisabled?"cursor-not-allowed":"cursor-pointer",v=this.disabled||this.visuallyDisabled?"text-neutral-500":"text-primary",y={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],b={sm:"mr-1",md:"mr-2",lg:"mr-2"}[this.size],m={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size];return p`<div part="form-control" class="${d("relative text-left",h,this.size==="sm"?"text-sm":"text-base",this.open&&"z-50")}"><label id="label" part="form-control-label" class="${a&&"inline-block mb-2"}" aria-hidden="${!a}" @click="${this.handleLabelClick}"><slot name="label">${this.label}</slot></label> <span aria-live="polite" class="sr-only">${this.deletedTagLabel}</span><div part="form-control-input" class="relative w-full bg-white text-black"><div part="border" class="${d("absolute top-0 w-full h-full pointer-events-none border rounded-default z-10 transition-[border] duration-medium ease-in-out",{disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",readonly:"border-neutral-800",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"border-neutral-800"}[f],this.open&&(this.currentPlacement==="bottom"?"rounded-bl-none rounded-br-none":"rounded-tl-none rounded-tr-none"))}"></div><sd-5-4-3-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-5-5-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(n=>n instanceof HTMLSlotElement&&n.name==="removable-indicator");if(this.disabled||i)return;(this.open?this.hide():this.show()).then(()=>{setTimeout(()=>this.displayInput.focus({preventScroll:!0}))})}handleComboboxKeyDown(t){t.key!=="Tab"&&this.handleDocumentKeyDown(t)}handleClearClick(t){t.stopPropagation(),this.clearCombobox()}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-5-5-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),n=Math.max(0,a);if(t){let o=a+1;n=o>e.length-1?0:o}else{let o=a-1;n=o<0?e.length-1:o}this.setCurrentOption(e[n],new KeyboardEvent("keydown")),A(this.getCurrentOption(),this.listbox,"vertical","auto")}getAllFilteredOptions(){return[...this.filteredWrapper.querySelectorAll("sd-5-5-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(n=>n.value&&t.value?n.value===t.value:n.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(n=>n?this.isOptionSelected(n):!1);this.multiple?(!t&&this.selectedOptions.length>0?this.value=[...this.value,...this.selectedOptions.map(n=>n.value||n.getTextLabel())]:this.value=this.selectedOptions.map(n=>(n==null?void 0:n.value)||(n==null?void 0:n.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 y,b,m;let a=i.cloneNode(!0);if(a.current=a.value===((y=this.lastOption)==null?void 0:y.value),a.selected=i.selected,a.checkbox=i.checkbox,a.size=i.size,!(((b=i.parentElement)==null?void 0:b.tagName.toLowerCase())==="sd-5-5-0-optgroup"))return a;let o=i.parentElement,f=(m=o.querySelector('[slot="label"]'))==null?void 0:m.cloneNode(!0),h=e.find(O=>O.id===o.id);if(h){h==null||h.appendChild(a),f&&(h==null||h.appendChild(f));return}let v=o.cloneNode();return v.appendChild(a),f&&v.appendChild(f),e.push(v),v}).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-5-5-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 I(this),this.listbox.hidden=!1,this.popup.active=!0;let{keyframes:i,options:a}=C(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 I(this);let{keyframes:t,options:e}=C(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")}async show(){if(this.open||this.disabled||this.visuallyDisabled){this.open=!1;return}return this.open=!0,Promise.race([x(this,"sd-after-show"),x(this,"sd-error")])}async hide(){if(!this.open||this.disabled){this.open=!1;return}return this.displayInputValue="",this.open=!1,x(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 R(L(this.defaultSlot)).flat()}getSlottedOptGroups(){return K(L(this.defaultSlot))}async handleDefaultSlotChange(){if(!customElements.get("sd-5-5-0-option")){customElements.whenDefined("sd-5-5-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,n)=>{this.multiple&&(a.checkbox=!0),a.id=a.id||`sd-5-5-0-combobox-option-${n}`}),e.forEach((a,n)=>{a.id=a.id||`sd-5-5-0-combobox-optgroup-${n}`}),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,n=this.helpText?!0:!!i,o=this.clearable&&!this.disabled&&!this.visuallyDisabled,f=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",h=this.disabled||this.visuallyDisabled?"cursor-not-allowed":"cursor-pointer",v=this.disabled||this.visuallyDisabled?"text-neutral-500":"text-primary",y={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],b={sm:"mr-1",md:"mr-2",lg:"mr-2"}[this.size],m={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size];return p`<div part="form-control" class="${d("relative text-left",h,this.size==="sm"?"text-sm":"text-base",this.open&&"z-50")}"><label id="label" part="form-control-label" class="${a&&"inline-block mb-2"}" aria-hidden="${!a}" @click="${this.handleLabelClick}"><slot name="label">${this.label}</slot></label> <span aria-live="polite" class="sr-only">${this.deletedTagLabel}</span><div part="form-control-input" class="relative w-full bg-white text-black"><div part="border" class="${d("absolute top-0 w-full h-full pointer-events-none border rounded-default z-10 transition-[border] duration-medium ease-in-out",{disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",readonly:"border-neutral-800",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"border-neutral-800"}[f],this.open&&(this.currentPlacement==="bottom"?"rounded-bl-none rounded-br-none":"rounded-tl-none rounded-tr-none"))}"></div><sd-5-5-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="
10
10
  popup:popup__content,
11
- "><div part="combobox" class="${d("relative w-full px-4 flex flex-row items-center rounded-default transition-colors hover:duration-fast ease-in-out",this.visuallyDisabled||this.disabled?"hover:bg-transparent":"hover:bg-neutral-200",this.open&&"shadow transition-shadow duration-medium ease-in-out",{sm:"py-1 min-h-[32px]",md:"py-1 min-h-[40px]",lg:"py-2 min-h-[48px]"}[this.size])}" slot="anchor" @keydown="${this.handleComboboxKeyDown}" @mousedown="${this.handleComboboxMouseDown}">${t.left?p`<slot part="left" name="left" class="${d("inline-flex",b,v,m)}"></slot>`:""} ${this.multiple&&this.useTags&&this.tags.length>0?p`<div part="tags" class="${d("flex items-center gap-1",b)}">${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",h,this.selectedTextLabel&&!this.multiple?"placeholder-black":"placeholder-neutral-700")}" type="text" placeholder="${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 aria-live="polite" id="control-value" class="absolute top-0 left-0 opacity-0 -z-10">${this.selectedOptions.map(O=>O==null?void 0:O.getTextLabel()).join(", ")}</div><input class="${d("value-input absolute top-0 left-0 w-full h-full opacity-0 -z-10",h)}" 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}"> ${o?p`<button part="clear-button" class="${d("flex justify-center",y,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-5-4-3-icon class="${d("text-neutral-700",m)}" name="closing-round" library="_internal"></sd-5-4-3-icon></slot></button>`:""} ${this.showInvalidStyle?p`<sd-5-4-3-icon part="invalid-icon" class="${d(y,m,"text-error")}" library="_internal" name="risk"></sd-5-4-3-icon>`:""} ${this.styleOnValid&&this.showValidStyle?p`<sd-5-4-3-icon part="valid-icon" class="${d("flex-shrink-0 text-success",y,m)}" library="_internal" name="status-check"></sd-5-4-3-icon>`:""}<slot name="right" part="right" class="${d("inline-flex ml-2 leading-[0]",this.disabled||this.visuallyDisabled?"text-neutral-500":"text-primary",m)}">${this.type!=="search"?p`<sd-5-4-3-icon class="${d("transition-transform duration-medium ease-in-out",this.open?"rotate-180":"rotate-0")}" name="chevron-down" part="chevron" library="_internal" color="currentColor" label="${this.localize.term("open")}"></sd-5-4-3-icon>`:""}</slot>${this.type==="search"?p`<button class="${d("flex items-center sd-interactive",y)}" type="button"><sd-5-4-3-icon class="${d(v,m)}" library="_internal" name="magnifying-glass" label="${this.localize.term("search")}"></sd-5-4-3-icon></button>`:p`<button class="sd-interactive combobox-button absolute top-2" @keydown="${this.handleComboboxMouseDown}" type="button"><span class="sr-only">${this.localize.term("open")}</span></button>`}</div><div id="listbox" role="${M(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 transition-shadow duration-medium ease-in-out",this.currentPlacement==="bottom"?"border-r-2 border-b-2 border-l-2 rounded-br-default rounded-bl-default":"border-r-2 border-t-2 border-l-2 rounded-tr-default rounded-tl-default")}" 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-5-4-3-popup></div><div part="form-control-help-text" id="help-text" class="text-sm text-neutral-700 mt-2" aria-hidden="${!n}"><slot name="help-text">${this.helpText}</slot></div></div>${this.formControlController.renderInvalidMessage()}`}};s.styles=[...T.styles,D`:host{display:block;position:relative;width:100%}:host([required]) #label:after{content:" *"}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}:host([visually-disabled]) input{caret-color:transparent}:host([size=sm]) .combobox-button{height:var(--sd-spacing-4,1rem);right:var(--sd-spacing-4,1rem);width:var(--sd-spacing-4,1rem)}:host([size=md]) .combobox-button{height:var(--sd-spacing-6,1.5rem);right:.85rem;width:var(--sd-spacing-6,1.5rem)}:host([size=lg]) .combobox-button{height:var(--sd-spacing-8,2rem);right:var(--sd-spacing-3,.75rem);width:var(--sd-spacing-8,2rem)}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-5-4-3-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}sd-5-4-3-tag::part(base){border-radius:var(--sd-border-radius-default,.25rem);padding-left:var(--sd-spacing-1,.25rem);padding-right:var(--sd-spacing-1,.25rem)}sd-5-4-3-tag::part(content){display:inline-block;max-width:var(--tag-max-width,15ch);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}sd-5-4-3-tag[size=lg]::part(base){padding-left:var(--sd-spacing-2,.5rem);padding-right:var(--sd-spacing-2,.5rem)}sd-5-4-3-tag[disabled=false]::part(base):hover{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-100,236 240 249)/var(--tw-bg-opacity,1))}[part=filtered-listbox] sd-5-4-3-optgroup:first-of-type{--display-divider:none}mark{background-color:transparent;color:inherit;font-weight:700}`],l([c("sd-5-4-3-popup")],s.prototype,"popup",2),l([c('[part="combobox"]')],s.prototype,"combobox",2),l([c('[part="display-input"]')],s.prototype,"displayInput",2),l([c(".value-input")],s.prototype,"valueInput",2),l([c('[part="listbox"]')],s.prototype,"listbox",2),l([c('[part="tags"]')],s.prototype,"tagWrapper",2),l([c('[part="filtered-listbox"]')],s.prototype,"filteredWrapper",2),l([c("slot:not([name])")],s.prototype,"defaultSlot",2),l([c("#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([P()],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({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([g("filter",{waitUntilFirstUpdate:!0})],s.prototype,"handleFilterChange",1),l([g("useTags",{waitUntilFirstUpdate:!0})],s.prototype,"handleUseTagsChange",1),l([g("size",{waitUntilFirstUpdate:!0})],s.prototype,"applySizeToOptions",1),l([g(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],s.prototype,"handleDisabledChange",1),l([g("value",{waitUntilFirstUpdate:!0})],s.prototype,"handleValueChange",1),l([g("displayInputValue",{waitUntilFirstUpdate:!0})],s.prototype,"handleDisplayInputValueChange",1),l([g("open",{waitUntilFirstUpdate:!0})],s.prototype,"handleOpenChange",1),s=l([k("sd-5-4-3-combobox")],s);E("combobox.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});E("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 rounded-default transition-colors hover:duration-fast ease-in-out",this.visuallyDisabled||this.disabled?"hover:bg-transparent":"hover:bg-neutral-200",this.open&&"shadow transition-shadow duration-medium ease-in-out",{sm:"py-1 min-h-[32px]",md:"py-1 min-h-[40px]",lg:"py-2 min-h-[48px]"}[this.size])}" slot="anchor" @keydown="${this.handleComboboxKeyDown}" @mousedown="${this.handleComboboxMouseDown}">${t.left?p`<slot part="left" name="left" class="${d("inline-flex",b,v,m)}"></slot>`:""} ${this.multiple&&this.useTags&&this.tags.length>0?p`<div part="tags" class="${d("flex items-center gap-1",b)}">${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",h,this.selectedTextLabel&&!this.multiple?"placeholder-black":"placeholder-neutral-700")}" type="text" placeholder="${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 aria-live="polite" id="control-value" class="absolute top-0 left-0 opacity-0 -z-10">${this.selectedOptions.map(O=>O==null?void 0:O.getTextLabel()).join(", ")}</div><input class="${d("value-input absolute top-0 left-0 w-full h-full opacity-0 -z-10",h)}" 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}"> ${o?p`<button part="clear-button" class="${d("flex justify-center",y,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-5-5-0-icon class="${d("text-neutral-700",m)}" name="closing-round" library="_internal"></sd-5-5-0-icon></slot></button>`:""} ${this.showInvalidStyle?p`<sd-5-5-0-icon part="invalid-icon" class="${d(y,m,"text-error")}" library="_internal" name="risk"></sd-5-5-0-icon>`:""} ${this.styleOnValid&&this.showValidStyle?p`<sd-5-5-0-icon part="valid-icon" class="${d("flex-shrink-0 text-success",y,m)}" library="_internal" name="status-check"></sd-5-5-0-icon>`:""}<slot name="right" part="right" class="${d("inline-flex ml-2 leading-[0]",this.disabled||this.visuallyDisabled?"text-neutral-500":"text-primary",m)}">${this.type!=="search"?p`<sd-5-5-0-icon class="${d("transition-transform duration-medium ease-in-out",this.open?"rotate-180":"rotate-0")}" name="chevron-down" part="chevron" library="_internal" color="currentColor" label="${this.localize.term("open")}"></sd-5-5-0-icon>`:""}</slot>${this.type==="search"?p`<button class="${d("flex items-center sd-interactive",y)}" type="button"><sd-5-5-0-icon class="${d(v,m)}" library="_internal" name="magnifying-glass" label="${this.localize.term("search")}"></sd-5-5-0-icon></button>`:p`<button class="sd-interactive combobox-button absolute top-2" @keydown="${this.handleComboboxMouseDown}" type="button"><span class="sr-only">${this.localize.term("open")}</span></button>`}</div><div id="listbox" role="${M(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 transition-shadow duration-medium ease-in-out",this.currentPlacement==="bottom"?"border-r-2 border-b-2 border-l-2 rounded-br-default rounded-bl-default":"border-r-2 border-t-2 border-l-2 rounded-tr-default rounded-tl-default")}" 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-5-5-0-popup></div><div part="form-control-help-text" id="help-text" class="text-sm text-neutral-700 mt-2" aria-hidden="${!n}"><slot name="help-text">${this.helpText}</slot></div></div>${this.formControlController.renderInvalidMessage()}`}};s.styles=[...T.styles,D`:host{display:block;position:relative;width:100%}:host([required]) #label:after{content:" *"}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}:host([visually-disabled]) input{caret-color:transparent}:host([size=sm]) .combobox-button{height:var(--sd-spacing-4,1rem);right:var(--sd-spacing-4,1rem);width:var(--sd-spacing-4,1rem)}:host([size=md]) .combobox-button{height:var(--sd-spacing-6,1.5rem);right:.85rem;width:var(--sd-spacing-6,1.5rem)}:host([size=lg]) .combobox-button{height:var(--sd-spacing-8,2rem);right:var(--sd-spacing-3,.75rem);width:var(--sd-spacing-8,2rem)}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-5-5-0-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}sd-5-5-0-tag::part(base){border-radius:var(--sd-border-radius-default,.25rem);padding-left:var(--sd-spacing-1,.25rem);padding-right:var(--sd-spacing-1,.25rem)}sd-5-5-0-tag::part(content){display:inline-block;max-width:var(--tag-max-width,15ch);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}sd-5-5-0-tag[size=lg]::part(base){padding-left:var(--sd-spacing-2,.5rem);padding-right:var(--sd-spacing-2,.5rem)}sd-5-5-0-tag[disabled=false]::part(base):hover{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-100,236 240 249)/var(--tw-bg-opacity,1))}[part=filtered-listbox] sd-5-5-0-optgroup:first-of-type{--display-divider:none}mark{background-color:transparent;color:inherit;font-weight:700}`],l([c("sd-5-5-0-popup")],s.prototype,"popup",2),l([c('[part="combobox"]')],s.prototype,"combobox",2),l([c('[part="display-input"]')],s.prototype,"displayInput",2),l([c(".value-input")],s.prototype,"valueInput",2),l([c('[part="listbox"]')],s.prototype,"listbox",2),l([c('[part="tags"]')],s.prototype,"tagWrapper",2),l([c('[part="filtered-listbox"]')],s.prototype,"filteredWrapper",2),l([c("slot:not([name])")],s.prototype,"defaultSlot",2),l([c("#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([P()],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({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([g("filter",{waitUntilFirstUpdate:!0})],s.prototype,"handleFilterChange",1),l([g("useTags",{waitUntilFirstUpdate:!0})],s.prototype,"handleUseTagsChange",1),l([g("size",{waitUntilFirstUpdate:!0})],s.prototype,"applySizeToOptions",1),l([g(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],s.prototype,"handleDisabledChange",1),l([g("value",{waitUntilFirstUpdate:!0})],s.prototype,"handleValueChange",1),l([g("displayInputValue",{waitUntilFirstUpdate:!0})],s.prototype,"handleDisplayInputValueChange",1),l([g("open",{waitUntilFirstUpdate:!0})],s.prototype,"handleOpenChange",1),s=l([k("sd-5-5-0-combobox")],s);E("combobox.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});E("combobox.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});export{s as a};
@@ -1 +1 @@
1
- import{a as s}from"./chunk.26V4EXHB.js";import{a as o,b as r,h as i}from"./chunk.3J5KIUOG.js";import{b as n,e as a}from"./chunk.UWPDCU52.js";import{e as t}from"./chunk.TJOCV4DC.js";var e=class extends i{constructor(){super(...arguments);this.size="lg";this.variant="blue";this.inverted=!1}render(){return a`<span part="base" aria-labelledby="content" class="${s("inline-flex items-center justify-center gap-x-[1px] text-center font-bold whitespace-nowrap border rounded-full select-none cursor-[inherit]",{blue:this.inverted?"text-primary bg-primary-100 border-primary":"text-white bg-primary-500 border-white",green:this.inverted?"text-white bg-success border-primary":"text-white bg-success border-white",red:this.inverted?"text-white bg-error border-primary":"text-white bg-error border-white"}[this.variant])}"><span id="content" part="content" class="${s(this.size==="sm"&&"sr-only")}"><slot></slot></span></span>`}};e.styles=[...i.styles,n`:host{align-items:center;display:inline-flex;justify-content:center}:host([size=md]){font-size:.625rem;height:var(--sd-spacing-4,1rem);min-width:var(--sd-spacing-4,1rem)}:host([size=lg]){font-size:.75rem;height:var(--sd-spacing-5,1.25rem);min-width:var(--sd-spacing-5,1.25rem)}:host([size=sm])::part(base){height:var(--sd-spacing-2,.5rem);min-width:var(--sd-spacing-2,.5rem)}:host([size=md])::part(base){padding-left:var(--sd-spacing-1,.25rem);padding-right:var(--sd-spacing-1,.25rem)}:host([size=lg])::part(base){padding-left:.313rem;padding-right:.313rem}`],t([r({type:String,reflect:!0})],e.prototype,"size",2),t([r({type:String,reflect:!0})],e.prototype,"variant",2),t([r({type:Boolean,reflect:!0})],e.prototype,"inverted",2),e=t([o("sd-5-4-3-badge")],e);export{e as a};
1
+ import{a as s}from"./chunk.26V4EXHB.js";import{a as o,b as r,h as i}from"./chunk.YVWXTEAH.js";import{b as n,e as a}from"./chunk.UWPDCU52.js";import{e as t}from"./chunk.TJOCV4DC.js";var e=class extends i{constructor(){super(...arguments);this.size="lg";this.variant="blue";this.inverted=!1}render(){return a`<span part="base" aria-labelledby="content" class="${s("inline-flex items-center justify-center gap-x-[1px] text-center font-bold whitespace-nowrap border rounded-full select-none cursor-[inherit]",{blue:this.inverted?"text-primary bg-primary-100 border-primary":"text-white bg-primary-500 border-white",green:this.inverted?"text-white bg-success border-primary":"text-white bg-success border-white",red:this.inverted?"text-white bg-error border-primary":"text-white bg-error border-white"}[this.variant])}"><span id="content" part="content" class="${s(this.size==="sm"&&"sr-only")}"><slot></slot></span></span>`}};e.styles=[...i.styles,n`:host{align-items:center;display:inline-flex;justify-content:center}:host([size=md]){font-size:.625rem;height:var(--sd-spacing-4,1rem);min-width:var(--sd-spacing-4,1rem)}:host([size=lg]){font-size:.75rem;height:var(--sd-spacing-5,1.25rem);min-width:var(--sd-spacing-5,1.25rem)}:host([size=sm])::part(base){height:var(--sd-spacing-2,.5rem);min-width:var(--sd-spacing-2,.5rem)}:host([size=md])::part(base){padding-left:var(--sd-spacing-1,.25rem);padding-right:var(--sd-spacing-1,.25rem)}:host([size=lg])::part(base){padding-left:.313rem;padding-right:.313rem}`],t([r({type:String,reflect:!0})],e.prototype,"size",2),t([r({type:String,reflect:!0})],e.prototype,"variant",2),t([r({type:Boolean,reflect:!0})],e.prototype,"inverted",2),e=t([o("sd-5-5-0-badge")],e);export{e as a};
@@ -1 +1 @@
1
- import{a}from"./chunk.DEXOQON7.js";import{a as m}from"./chunk.26V4EXHB.js";import{a as i,b as s,h as l}from"./chunk.3J5KIUOG.js";import{b as t,e as o}from"./chunk.UWPDCU52.js";import{e as r}from"./chunk.TJOCV4DC.js";var e=class extends l{constructor(){super(...arguments);this.color="currentColor";this.localize=new a(this)}render(){return o`<svg role="progressbar" viewBox="0 0 24 24" class="${m("animate-spin",{primary:"text-primary",white:"text-white",currentColor:""}[this.color])}" aria-label="${this.localize.term("loading")}"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12Z" class="opacity-20" fill="currentColor"/><mask id="mask0_5273_25391" style="mask-type:alpha" maskUnits="userSpaceOnUse"><path d="M24 12C24 5.37258 18.6274 0 12 0V12H24Z" fill="currentColor"/></mask><g mask="url(#mask0_5273_25391)"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12Z" fill="currentColor"/></g></svg>`}};e.styles=[...l.styles,t`:host{display:inline-block;height:1em;width:1em}`],r([s({type:String,reflect:!0})],e.prototype,"color",2),e=r([i("sd-5-4-3-spinner")],e);export{e as a};
1
+ import{a}from"./chunk.DEXOQON7.js";import{a as m}from"./chunk.26V4EXHB.js";import{a as i,b as s,h as l}from"./chunk.YVWXTEAH.js";import{b as t,e as o}from"./chunk.UWPDCU52.js";import{e as r}from"./chunk.TJOCV4DC.js";var e=class extends l{constructor(){super(...arguments);this.color="currentColor";this.localize=new a(this)}render(){return o`<svg role="progressbar" viewBox="0 0 24 24" class="${m("animate-spin",{primary:"text-primary",white:"text-white",currentColor:""}[this.color])}" aria-label="${this.localize.term("loading")}"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12Z" class="opacity-20" fill="currentColor"/><mask id="mask0_5273_25391" style="mask-type:alpha" maskUnits="userSpaceOnUse"><path d="M24 12C24 5.37258 18.6274 0 12 0V12H24Z" fill="currentColor"/></mask><g mask="url(#mask0_5273_25391)"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12Z" fill="currentColor"/></g></svg>`}};e.styles=[...l.styles,t`:host{display:inline-block;height:1em;width:1em}`],r([s({type:String,reflect:!0})],e.prototype,"color",2),e=r([i("sd-5-5-0-spinner")],e);export{e as a};
@@ -1 +1 @@
1
- import{e as p}from"./chunk.UWPDCU52.js";import{a as l,b as m}from"./chunk.TJOCV4DC.js";var a=new WeakMap,n=new WeakMap,c=new WeakMap,d=new WeakMap,v=class{constructor(t,e){this.handleFormData=t=>{let e=this.options.disabled(this.host),o=this.options.name(this.host),i=this.options.value(this.host),s=this.host.tagName.toLowerCase()==="sd-5-4-3-button";!e&&!s&&typeof o=="string"&&o.length>0&&typeof i!="undefined"&&(Array.isArray(i)?i.forEach(r=>{t.formData.append(o,r.toString())}):t.formData.append(o,i.toString()))};this.handleFormSubmit=t=>{var i,s;let e=this.options.disabled(this.host),o=this.options.reportValidity;if(this.form&&!this.form.noValidate&&((i=a.get(this.form))==null||i.forEach(r=>{this.setUserInteracted(r,!0)})),this.form&&!this.form.noValidate&&!e&&!o(this.host)){t.preventDefault(),t.stopImmediatePropagation();let r=(s=this.form)==null?void 0:s.querySelectorAll("[data-invalid]");Array.from(r).filter(h=>h.tagName.toLowerCase()==="sd-5-4-3-radio-group").forEach(h=>{var f,u;(u=(f=h.shadowRoot)==null?void 0:f.querySelector("input"))==null||u.dispatchEvent(new Event("invalid"))}),r!=null&&r.length&&r[0].focus()}};this.handleFormReset=()=>{this.options.setValue(this.host,this.options.defaultValue(this.host)),this.setUserInteracted(this.host,!1),d.set(this.host,[])};this.handleInteraction=t=>{let e=d.get(this.host);e.includes(t.type)||e.push(t.type),e.length===this.options.assumeInteractionOn.length&&this.setUserInteracted(this.host,!0)};this.fakeUserInteraction=()=>{this.setUserInteracted(this.host,!0)};(this.host=t).addController(this),this.options=l({form:o=>{if(o.hasAttribute("form")&&o.getAttribute("form")!==""){let i=o.getRootNode(),s=o.getAttribute("form");if(s)return i.getElementById(s)}return o.closest("form")},name:o=>o.name,value:o=>o.value,defaultValue:o=>o.defaultValue,disabled:o=>{var i;return(i=o.disabled)!=null?i:!1},reportValidity:o=>typeof o.reportValidity=="function"?o.reportValidity():!0,setValue:(o,i)=>o.value=i,assumeInteractionOn:["sd-5-4-3-input"]},e)}hostConnected(){let t=this.options.form(this.host);t&&this.attachForm(t),d.set(this.host,[]),this.options.assumeInteractionOn.forEach(e=>{this.host.addEventListener(e,this.handleInteraction)})}hostDisconnected(){this.detachForm(),d.delete(this.host),this.options.assumeInteractionOn.forEach(t=>{this.host.removeEventListener(t,this.handleInteraction)})}hostUpdated(){var e;let t=this.options.form(this.host);t||this.detachForm(),t&&this.form!==t&&(this.detachForm(),this.attachForm(t)),this.host.hasUpdated&&(this.setValidity((e=this.host)==null?void 0:e.validity.valid),this.updateValidityStyle())}attachForm(t){t?(this.form=t,a.has(this.form)?a.get(this.form).add(this.host):a.set(this.form,new Set([this.host])),this.form.addEventListener("formdata",this.handleFormData),this.form.addEventListener("submit",this.handleFormSubmit),this.form.addEventListener("reset",this.handleFormReset),n.has(this.form)||(n.set(this.form,this.form.reportValidity),this.form.reportValidity=()=>this.reportFormValidity())):this.form=void 0}detachForm(){var t;this.form&&((t=a.get(this.form))==null||t.delete(this.host),this.form.removeEventListener("formdata",this.handleFormData),this.form.removeEventListener("submit",this.handleFormSubmit),this.form.removeEventListener("reset",this.handleFormReset),n.has(this.form)&&(this.form.reportValidity=n.get(this.form),n.delete(this.form))),this.form=void 0}reportFormValidity(){if(this.form&&!this.form.noValidate){let t=this.form.querySelectorAll("*");for(let e of t)if(typeof e.reportValidity=="function"&&!e.reportValidity())return!1}return!0}setUserInteracted(t,e){c.set(t,e),t.requestUpdate()}doAction(t,e){if(this.form){let o=document.createElement("button");o.type=t,o.style.position="absolute",o.style.width="0",o.style.height="0",o.style.clipPath="inset(50%)",o.style.overflow="hidden",o.style.whiteSpace="nowrap",e&&(o.name=e.name,o.value=e.value,["formaction","formenctype","formmethod","formnovalidate","formtarget"].forEach(i=>{e.hasAttribute(i)&&o.setAttribute(i,e.getAttribute(i))})),this.form.append(o),o.click(),o.remove()}}updateValidityStyle(){this.host.hasAttribute("data-user-valid")&&this.host.checkValidity()?(this.host.showValidStyle!==void 0&&(this.host.showValidStyle=!0),this.host.showInvalidStyle=!1):this.host.hasAttribute("data-user-invalid")&&!this.host.checkValidity()?(this.host.showValidStyle!==void 0&&(this.host.showValidStyle=!1),this.host.showInvalidStyle=!0):(this.host.showValidStyle!==void 0&&(this.host.showValidStyle=!1),this.host.showInvalidStyle=!1)}getForm(){var t;return(t=this.form)!=null?t:null}renderInvalidMessage(){return p`<div id="invalid-message" class="text-error text-sm mt-2 text-left" part="invalid-message" aria-live="polite" ?hidden="${!this.host.showInvalidStyle}"></div>`}reset(t){this.doAction("reset",t)}submit(t){this.doAction("submit",t)}setValidity(t){var s;let e=this.host,o=!!c.get(e),i=!!e.required;(s=this.form)!=null&&s.noValidate?(e.removeAttribute("data-required"),e.removeAttribute("data-optional"),e.removeAttribute("data-invalid"),e.removeAttribute("data-valid"),e.removeAttribute("data-user-invalid"),e.removeAttribute("data-user-valid"),e.removeAttribute("aria-invalid")):(e.toggleAttribute("data-required",i),e.toggleAttribute("data-optional",!i),e.toggleAttribute("data-invalid",!t),e.toggleAttribute("data-valid",t),e.toggleAttribute("data-user-invalid",!t&&o),e.toggleAttribute("data-user-valid",t&&o),e.setAttribute("aria-invalid",(!t).toString()))}updateValidity(){let t=this.host;this.setValidity(t==null?void 0:t.validity.valid)}emitInvalidEvent(t){t==null||t.preventDefault();let e=new CustomEvent("sd-invalid",{bubbles:!1,composed:!1,cancelable:!0,detail:{}});t||e.preventDefault()}},y=Object.freeze({badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:!0,valueMissing:!1}),F=Object.freeze(m(l({},y),{valid:!1,valueMissing:!0})),V=Object.freeze(m(l({},y),{valid:!1,customError:!0}));export{a,v as b,y as c,F as d,V as e};
1
+ import{e as p}from"./chunk.UWPDCU52.js";import{a as l,b as m}from"./chunk.TJOCV4DC.js";var a=new WeakMap,n=new WeakMap,c=new WeakMap,d=new WeakMap,v=class{constructor(t,e){this.handleFormData=t=>{let e=this.options.disabled(this.host),o=this.options.name(this.host),i=this.options.value(this.host),s=this.host.tagName.toLowerCase()==="sd-5-5-0-button";!e&&!s&&typeof o=="string"&&o.length>0&&typeof i!="undefined"&&(Array.isArray(i)?i.forEach(r=>{t.formData.append(o,r.toString())}):t.formData.append(o,i.toString()))};this.handleFormSubmit=t=>{var i,s;let e=this.options.disabled(this.host),o=this.options.reportValidity;if(this.form&&!this.form.noValidate&&((i=a.get(this.form))==null||i.forEach(r=>{this.setUserInteracted(r,!0)})),this.form&&!this.form.noValidate&&!e&&!o(this.host)){t.preventDefault(),t.stopImmediatePropagation();let r=(s=this.form)==null?void 0:s.querySelectorAll("[data-invalid]");Array.from(r).filter(h=>h.tagName.toLowerCase()==="sd-5-5-0-radio-group").forEach(h=>{var f,u;(u=(f=h.shadowRoot)==null?void 0:f.querySelector("input"))==null||u.dispatchEvent(new Event("invalid"))}),r!=null&&r.length&&r[0].focus()}};this.handleFormReset=()=>{this.options.setValue(this.host,this.options.defaultValue(this.host)),this.setUserInteracted(this.host,!1),d.set(this.host,[])};this.handleInteraction=t=>{let e=d.get(this.host);e.includes(t.type)||e.push(t.type),e.length===this.options.assumeInteractionOn.length&&this.setUserInteracted(this.host,!0)};this.fakeUserInteraction=()=>{this.setUserInteracted(this.host,!0)};(this.host=t).addController(this),this.options=l({form:o=>{if(o.hasAttribute("form")&&o.getAttribute("form")!==""){let i=o.getRootNode(),s=o.getAttribute("form");if(s)return i.getElementById(s)}return o.closest("form")},name:o=>o.name,value:o=>o.value,defaultValue:o=>o.defaultValue,disabled:o=>{var i;return(i=o.disabled)!=null?i:!1},reportValidity:o=>typeof o.reportValidity=="function"?o.reportValidity():!0,setValue:(o,i)=>o.value=i,assumeInteractionOn:["sd-5-5-0-input"]},e)}hostConnected(){let t=this.options.form(this.host);t&&this.attachForm(t),d.set(this.host,[]),this.options.assumeInteractionOn.forEach(e=>{this.host.addEventListener(e,this.handleInteraction)})}hostDisconnected(){this.detachForm(),d.delete(this.host),this.options.assumeInteractionOn.forEach(t=>{this.host.removeEventListener(t,this.handleInteraction)})}hostUpdated(){var e;let t=this.options.form(this.host);t||this.detachForm(),t&&this.form!==t&&(this.detachForm(),this.attachForm(t)),this.host.hasUpdated&&(this.setValidity((e=this.host)==null?void 0:e.validity.valid),this.updateValidityStyle())}attachForm(t){t?(this.form=t,a.has(this.form)?a.get(this.form).add(this.host):a.set(this.form,new Set([this.host])),this.form.addEventListener("formdata",this.handleFormData),this.form.addEventListener("submit",this.handleFormSubmit),this.form.addEventListener("reset",this.handleFormReset),n.has(this.form)||(n.set(this.form,this.form.reportValidity),this.form.reportValidity=()=>this.reportFormValidity())):this.form=void 0}detachForm(){var t;this.form&&((t=a.get(this.form))==null||t.delete(this.host),this.form.removeEventListener("formdata",this.handleFormData),this.form.removeEventListener("submit",this.handleFormSubmit),this.form.removeEventListener("reset",this.handleFormReset),n.has(this.form)&&(this.form.reportValidity=n.get(this.form),n.delete(this.form))),this.form=void 0}reportFormValidity(){if(this.form&&!this.form.noValidate){let t=this.form.querySelectorAll("*");for(let e of t)if(typeof e.reportValidity=="function"&&!e.reportValidity())return!1}return!0}setUserInteracted(t,e){c.set(t,e),t.requestUpdate()}doAction(t,e){if(this.form){let o=document.createElement("button");o.type=t,o.style.position="absolute",o.style.width="0",o.style.height="0",o.style.clipPath="inset(50%)",o.style.overflow="hidden",o.style.whiteSpace="nowrap",e&&(o.name=e.name,o.value=e.value,["formaction","formenctype","formmethod","formnovalidate","formtarget"].forEach(i=>{e.hasAttribute(i)&&o.setAttribute(i,e.getAttribute(i))})),this.form.append(o),o.click(),o.remove()}}updateValidityStyle(){this.host.hasAttribute("data-user-valid")&&this.host.checkValidity()?(this.host.showValidStyle!==void 0&&(this.host.showValidStyle=!0),this.host.showInvalidStyle=!1):this.host.hasAttribute("data-user-invalid")&&!this.host.checkValidity()?(this.host.showValidStyle!==void 0&&(this.host.showValidStyle=!1),this.host.showInvalidStyle=!0):(this.host.showValidStyle!==void 0&&(this.host.showValidStyle=!1),this.host.showInvalidStyle=!1)}getForm(){var t;return(t=this.form)!=null?t:null}renderInvalidMessage(){return p`<div id="invalid-message" class="text-error text-sm mt-2 text-left" part="invalid-message" aria-live="polite" ?hidden="${!this.host.showInvalidStyle}"></div>`}reset(t){this.doAction("reset",t)}submit(t){this.doAction("submit",t)}setValidity(t){var s;let e=this.host,o=!!c.get(e),i=!!e.required;(s=this.form)!=null&&s.noValidate?(e.removeAttribute("data-required"),e.removeAttribute("data-optional"),e.removeAttribute("data-invalid"),e.removeAttribute("data-valid"),e.removeAttribute("data-user-invalid"),e.removeAttribute("data-user-valid"),e.removeAttribute("aria-invalid")):(e.toggleAttribute("data-required",i),e.toggleAttribute("data-optional",!i),e.toggleAttribute("data-invalid",!t),e.toggleAttribute("data-valid",t),e.toggleAttribute("data-user-invalid",!t&&o),e.toggleAttribute("data-user-valid",t&&o),e.setAttribute("aria-invalid",(!t).toString()))}updateValidity(){let t=this.host;this.setValidity(t==null?void 0:t.validity.valid)}emitInvalidEvent(t){t==null||t.preventDefault();let e=new CustomEvent("sd-invalid",{bubbles:!1,composed:!1,cancelable:!0,detail:{}});t||e.preventDefault()}},y=Object.freeze({badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:!0,valueMissing:!1}),F=Object.freeze(m(l({},y),{valid:!1,valueMissing:!0})),V=Object.freeze(m(l({},y),{valid:!1,customError:!0}));export{a,v as b,y as c,F as d,V as e};
@@ -1,4 +1,4 @@
1
- import{a as o}from"./chunk.BQUVRGBQ.js";import{a as s}from"./chunk.YTG5BN3U.js";import{a as n}from"./chunk.SKUMYG4O.js";import{a,b as c}from"./chunk.H2TKMIFR.js";import{a as e}from"./chunk.26V4EXHB.js";import{a as m,b as p}from"./chunk.3J5KIUOG.js";import{b as d}from"./chunk.UWPDCU52.js";import{e as i}from"./chunk.TJOCV4DC.js";var t=class extends o{constructor(){super(...arguments);this.expandable=!1}render(){let r=this.expandable?a`details`:a`div`,l=this.expandable?a`summary`:a`div`;return c`
1
+ import{a as o}from"./chunk.VO5VKWRA.js";import{a as s}from"./chunk.YTG5BN3U.js";import{a as n}from"./chunk.SKUMYG4O.js";import{a,b as c}from"./chunk.H2TKMIFR.js";import{a as e}from"./chunk.26V4EXHB.js";import{a as m,b as p}from"./chunk.YVWXTEAH.js";import{b as d}from"./chunk.UWPDCU52.js";import{e as i}from"./chunk.TJOCV4DC.js";var t=class extends o{constructor(){super(...arguments);this.expandable=!1}render(){let r=this.expandable?a`details`:a`div`,l=this.expandable?a`summary`:a`div`;return c`
2
2
  <${r} part="base" class="sm:p-6">
3
3
  <${l}
4
4
  part="header"
@@ -27,14 +27,14 @@ import{a as o}from"./chunk.BQUVRGBQ.js";import{a as s}from"./chunk.YTG5BN3U.js";
27
27
  part="summary-icon"
28
28
  class=${e("flex flex-grow-0 flex-shrink-0 flex-auto self-start sm:self-center transition-transform ease-in-out duration-medium text-xl sm:text-4xl sm:mt-2",this.open&&"rotate-180",!this.expandable&&"hidden")}
29
29
  ><slot name="expand-icon" class=${e(this.open&&"hidden")}>
30
- <sd-5-4-3-icon library="_internal" name="chevron-down" class="group-hover:text-primary-500 transition-colors ease-in-out duration-medium"></sd-5-4-3-icon>
30
+ <sd-5-5-0-icon library="_internal" name="chevron-down" class="group-hover:text-primary-500 transition-colors ease-in-out duration-medium"></sd-5-5-0-icon>
31
31
  </slot>
32
32
  <slot name="collapse-icon" class=${e(!this.open&&"hidden")}>
33
- <sd-5-4-3-icon library="_internal" name="chevron-down" class="group-hover:text-primary-500 transition-colors ease-in-out duration-medium"></sd-5-4-3-icon> </slot
33
+ <sd-5-5-0-icon library="_internal" name="chevron-down" class="group-hover:text-primary-500 transition-colors ease-in-out duration-medium"></sd-5-5-0-icon> </slot
34
34
  ></span>
35
35
  </${l}>
36
36
  <div part="content" id="content" class=${e("overflow-hidden",!this.expandable&&"hidden")}>
37
37
  <slot part="content__slot" class="block" role="region" aria-labelledby="header"></slot>
38
38
  </div>
39
39
  </${r}>
40
- `}};t.styles=[...o.styles,d`:host{display:block}@media (min-width:640px){[part=summary-icon]{font-size:var(--sd-spacing-12,3rem)}}[part=icon]{font-size:var(--sd-spacing-12,3rem)}@media (min-width:640px){[part=icon]{font-size:var(--sd-spacing-24,6rem)}}`],i([p({type:Boolean,reflect:!0})],t.prototype,"expandable",2),t=i([m("sd-5-4-3-quickfact")],t);n("quickfact.show",{keyframes:[{height:"0"},{height:"auto"}],options:{duration:"var(--sd-duration-medium, 300ms)",easing:"ease-in-out"}});n("quickfact.hide",{keyframes:[{height:"auto"},{height:"0"}],options:{duration:"var(--sd-duration-medium, 300ms)",easing:"ease-in-out"}});export{t as a};
40
+ `}};t.styles=[...o.styles,d`:host{display:block}@media (min-width:640px){[part=summary-icon]{font-size:var(--sd-spacing-12,3rem)}}[part=icon]{font-size:var(--sd-spacing-12,3rem)}@media (min-width:640px){[part=icon]{font-size:var(--sd-spacing-24,6rem)}}`],i([p({type:Boolean,reflect:!0})],t.prototype,"expandable",2),t=i([m("sd-5-5-0-quickfact")],t);n("quickfact.show",{keyframes:[{height:"0"},{height:"auto"}],options:{duration:"var(--sd-duration-medium, 300ms)",easing:"ease-in-out"}});n("quickfact.hide",{keyframes:[{height:"auto"},{height:"0"}],options:{duration:"var(--sd-duration-medium, 300ms)",easing:"ease-in-out"}});export{t as a};
@@ -1 +1 @@
1
- import{a as n}from"./chunk.MWDEA25W.js";import{a as p}from"./chunk.E2DRD2OX.js";import{a as m,b as o,h as a}from"./chunk.3J5KIUOG.js";import{b as l,e as c}from"./chunk.UWPDCU52.js";import{e as s}from"./chunk.TJOCV4DC.js";var t=class extends a{constructor(){super(...arguments);this.mode="cors";this.allowScripts=!1}executeScript(e){let r=document.createElement("script");[...e.attributes].forEach(i=>r.setAttribute(i.name,i.value)),r.textContent=e.textContent,e.parentNode.replaceChild(r,e)}async handleSrcChange(){try{let e=this.src,r=await n(e,this.mode);if(e!==this.src)return;if(!r.ok){this.emit("sd-error",{detail:{status:r.status}});return}this.innerHTML=r.html,this.allowScripts&&[...this.querySelectorAll("script")].forEach(i=>this.executeScript(i)),this.emit("sd-load")}catch(e){this.emit("sd-error",{detail:{status:-1}})}}render(){return c`<slot></slot>`}};t.styles=[...a.styles,l`:host{display:block}`],s([o({reflect:!0})],t.prototype,"src",2),s([o({type:String,reflect:!0})],t.prototype,"mode",2),s([o({attribute:"allow-scripts",type:Boolean,reflect:!0})],t.prototype,"allowScripts",2),s([p("src")],t.prototype,"handleSrcChange",1),t=s([m("sd-5-4-3-include")],t);export{t as a};
1
+ import{a as n}from"./chunk.MWDEA25W.js";import{a as p}from"./chunk.E2DRD2OX.js";import{a as m,b as o,h as a}from"./chunk.YVWXTEAH.js";import{b as l,e as c}from"./chunk.UWPDCU52.js";import{e as s}from"./chunk.TJOCV4DC.js";var t=class extends a{constructor(){super(...arguments);this.mode="cors";this.allowScripts=!1}executeScript(e){let r=document.createElement("script");[...e.attributes].forEach(i=>r.setAttribute(i.name,i.value)),r.textContent=e.textContent,e.parentNode.replaceChild(r,e)}async handleSrcChange(){try{let e=this.src,r=await n(e,this.mode);if(e!==this.src)return;if(!r.ok){this.emit("sd-error",{detail:{status:r.status}});return}this.innerHTML=r.html,this.allowScripts&&[...this.querySelectorAll("script")].forEach(i=>this.executeScript(i)),this.emit("sd-load")}catch(e){this.emit("sd-error",{detail:{status:-1}})}}render(){return c`<slot></slot>`}};t.styles=[...a.styles,l`:host{display:block}`],s([o({reflect:!0})],t.prototype,"src",2),s([o({type:String,reflect:!0})],t.prototype,"mode",2),s([o({attribute:"allow-scripts",type:Boolean,reflect:!0})],t.prototype,"allowScripts",2),s([p("src")],t.prototype,"handleSrcChange",1),t=s([m("sd-5-5-0-include")],t);export{t as a};
@@ -1,4 +1,4 @@
1
- import{a as i}from"./chunk.YTG5BN3U.js";import{a as n,b as l}from"./chunk.H2TKMIFR.js";import{b as h}from"./chunk.N2OPZHJV.js";import{a as r}from"./chunk.26V4EXHB.js";import{a as p,b as a,h as c}from"./chunk.3J5KIUOG.js";import{b as v}from"./chunk.UWPDCU52.js";import{e}from"./chunk.TJOCV4DC.js";var t=class extends c{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 i}from"./chunk.YTG5BN3U.js";import{a as n,b as l}from"./chunk.H2TKMIFR.js";import{b as h}from"./chunk.N2OPZHJV.js";import{a as r}from"./chunk.26V4EXHB.js";import{a as p,b as a,h as c}from"./chunk.YVWXTEAH.js";import{b as v}from"./chunk.UWPDCU52.js";import{e}from"./chunk.TJOCV4DC.js";var t=class extends c{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,4 +7,4 @@ import{a as i}from"./chunk.YTG5BN3U.js";import{a as n,b as l}from"./chunk.H2TKMI
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 s=this.isLink(),o=this.notInteractive?n`div`:s?n`a`:n`button`,d=h(this.marker[this.variant]),m=`url("data:image/svg+xml;utf8,${encodeURIComponent(this.marker[this.variant]).replace(/#/g,"%23")}")`;return l`<${o} part="base" class="${r("relative flex justify-center",!this.notInteractive&&"group focus-visible:focus-outline")}" href="${i(s?this.href:void 0)}" target="${i(s?this.target:void 0)}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" role="${i(this.notInteractive||s?void 0:"button")}" aria-label="${i(!this.notInteractive&&this.label?this.label:void 0)}" aria-labelledby="${i(!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 fill-primary-500",this.variant==="cluster"&&!this.notInteractive&&"transition-transform duration-fast ease-in-out hover:scale-110",{cluster:"fill-primary",main:"fill-accent",place:"fill-white"}[this.variant])}"><div id="motion-wrapper" part="motion-wrapper" class="absolute inset-0 overflow-hidden pointer-events-none" style="mask-image:${m};-webkit-mask-image:${m}"><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:"bg-primary-500",main:this.state==="active"?"bg-accent-700":"bg-accent-550 group-active:bg-accent-700",place:this.state==="active"?"bg-primary-200":"bg-primary-100 group-active:bg-primary-200"}[this.variant])}"></div></div>${this.variant==="main"?l`<div id="marker-circle" class="absolute rounded-full bg-white"></div>`:""}</div>${d} ${this.variant==="cluster"?l`<div id="cluster-border" class="${r("absolute inset-0 bg-primary opacity-30 rounded-full",this.state==="hover"&&"bg-primary-500")}"></div>`:""}</div><div id="content" part="content" class="${r("absolute self-center pointer-events-none",this.variant==="cluster"&&"font-bold text-white")}"><slot></slot></div></${o}>`}};t.styles=[...c.styles,v`:host{display:block}#motion-wrapper{mask-position:center;-webkit-mask-position:center;mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat;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]{font-size:calc(var(--sd-font-size-3xl,2rem)*var(--map-marker-scaling,1));margin-top:calc(var(--sd-spacing-2,.5rem)*-1)}:host([variant=main]) [part=marker],:host([variant=place]) [part=marker]{--tw-drop-shadow:drop-shadow(var(--sd-shadow,0px 1px 3px #515151));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{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));width:calc(var(--sd-spacing-4,1rem)*var(--map-marker-scaling,1))}`],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([p("sd-5-4-3-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 s=this.isLink(),o=this.notInteractive?n`div`:s?n`a`:n`button`,d=h(this.marker[this.variant]),m=`url("data:image/svg+xml;utf8,${encodeURIComponent(this.marker[this.variant]).replace(/#/g,"%23")}")`;return l`<${o} part="base" class="${r("relative flex justify-center",!this.notInteractive&&"group focus-visible:focus-outline")}" href="${i(s?this.href:void 0)}" target="${i(s?this.target:void 0)}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" role="${i(this.notInteractive||s?void 0:"button")}" aria-label="${i(!this.notInteractive&&this.label?this.label:void 0)}" aria-labelledby="${i(!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 fill-primary-500",this.variant==="cluster"&&!this.notInteractive&&"transition-transform duration-fast ease-in-out hover:scale-110",{cluster:"fill-primary",main:"fill-accent",place:"fill-white"}[this.variant])}"><div id="motion-wrapper" part="motion-wrapper" class="absolute inset-0 overflow-hidden pointer-events-none" style="mask-image:${m};-webkit-mask-image:${m}"><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:"bg-primary-500",main:this.state==="active"?"bg-accent-700":"bg-accent-550 group-active:bg-accent-700",place:this.state==="active"?"bg-primary-200":"bg-primary-100 group-active:bg-primary-200"}[this.variant])}"></div></div>${this.variant==="main"?l`<div id="marker-circle" class="absolute rounded-full bg-white"></div>`:""}</div>${d} ${this.variant==="cluster"?l`<div id="cluster-border" class="${r("absolute inset-0 bg-primary opacity-30 rounded-full",this.state==="hover"&&"bg-primary-500")}"></div>`:""}</div><div id="content" part="content" class="${r("absolute self-center pointer-events-none",this.variant==="cluster"&&"font-bold text-white")}"><slot></slot></div></${o}>`}};t.styles=[...c.styles,v`:host{display:block}#motion-wrapper{mask-position:center;-webkit-mask-position:center;mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat;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]{font-size:calc(var(--sd-font-size-3xl,2rem)*var(--map-marker-scaling,1));margin-top:calc(var(--sd-spacing-2,.5rem)*-1)}:host([variant=main]) [part=marker],:host([variant=place]) [part=marker]{--tw-drop-shadow:drop-shadow(var(--sd-shadow,0px 1px 3px #515151));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{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));width:calc(var(--sd-spacing-4,1rem)*var(--map-marker-scaling,1))}`],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([p("sd-5-5-0-map-marker")],t);export{t as a};