@solid-design-system/components 4.2.2 → 4.2.4

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 (369) hide show
  1. package/cdn/chunks/{chunk.6AT7QBRE.js → chunk.2ZCXWR7E.js} +1 -1
  2. package/cdn/chunks/{chunk.AZ5UMKBM.js → chunk.3NTNY2UH.js} +1 -1
  3. package/cdn/chunks/{chunk.B4OSWTH3.js → chunk.4F44QRA2.js} +1 -1
  4. package/cdn/chunks/{chunk.KME2AZKV.js → chunk.6JTQVPYM.js} +1 -1
  5. package/cdn/chunks/{chunk.CYH3PCNG.js → chunk.6MS466M2.js} +1 -1
  6. package/cdn/chunks/{chunk.CAWYHBD5.js → chunk.75EO36IN.js} +1 -1
  7. package/cdn/chunks/{chunk.M37NO2OL.js → chunk.7QUNXEQK.js} +1 -1
  8. package/cdn/chunks/{chunk.SZMORTHB.js → chunk.7RLRSCXQ.js} +1 -1
  9. package/cdn/chunks/{chunk.CSTIFOAP.js → chunk.7XV3YENR.js} +1 -1
  10. package/cdn/chunks/{chunk.YEIAYEJG.js → chunk.CNH2FBFM.js} +1 -1
  11. package/cdn/chunks/{chunk.PGNO6HV2.js → chunk.DUICZBMU.js} +1 -1
  12. package/cdn/chunks/{chunk.XL3BUCUU.js → chunk.E5MVZNLH.js} +1 -1
  13. package/cdn/chunks/{chunk.GS3QL2OV.js → chunk.EROIZW6X.js} +1 -1
  14. package/cdn/chunks/{chunk.4IFORLFN.js → chunk.EVPT7JK3.js} +1 -1
  15. package/cdn/chunks/{chunk.MLIJR3PY.js → chunk.EZYSQC3V.js} +1 -1
  16. package/cdn/chunks/{chunk.LS53PDIU.js → chunk.FHGJUXJX.js} +1 -1
  17. package/cdn/chunks/{chunk.23IKXZVG.js → chunk.GJMUIRQ2.js} +1 -1
  18. package/cdn/chunks/{chunk.AURWAJH2.js → chunk.GWPLAP5S.js} +1 -1
  19. package/cdn/chunks/{chunk.LRCDXHQL.js → chunk.H6R4QDN2.js} +1 -1
  20. package/cdn/chunks/{chunk.2PA3FZXS.js → chunk.IUWDL2C4.js} +1 -1
  21. package/cdn/chunks/{chunk.QC2KZSKL.js → chunk.J2X6EPLA.js} +1 -1
  22. package/cdn/chunks/{chunk.7SQQCKX5.js → chunk.KMS2GOZX.js} +1 -1
  23. package/cdn/chunks/{chunk.CF4RVCLN.js → chunk.L53H4NRS.js} +1 -1
  24. package/cdn/chunks/{chunk.W72MLMOE.js → chunk.LU3JG42J.js} +1 -1
  25. package/cdn/chunks/{chunk.6ZV2UB2R.js → chunk.LZPV4I3M.js} +1 -1
  26. package/cdn/chunks/{chunk.SRHKA7HE.js → chunk.MQMIFBAP.js} +1 -1
  27. package/cdn/chunks/{chunk.CJNJKNFE.js → chunk.MS332YGT.js} +1 -1
  28. package/cdn/chunks/{chunk.Q5XVXRF6.js → chunk.PY7WAXNJ.js} +1 -1
  29. package/cdn/chunks/{chunk.NMHMV2IL.js → chunk.RLUO45Y5.js} +1 -1
  30. package/cdn/chunks/chunk.SIAG2ZHR.js +1 -0
  31. package/cdn/chunks/{chunk.7CKFXHTE.js → chunk.TU2ZS5QJ.js} +1 -1
  32. package/cdn/chunks/{chunk.UXYQTHQP.js → chunk.U7V4IBUM.js} +1 -1
  33. package/cdn/chunks/{chunk.AXTP2V5W.js → chunk.UPY4N63N.js} +1 -1
  34. package/cdn/chunks/{chunk.QB6ZZCNC.js → chunk.UVMPKHLP.js} +1 -1
  35. package/cdn/chunks/{chunk.CBUVQPJ2.js → chunk.WF3RODYO.js} +1 -1
  36. package/cdn/chunks/{chunk.QQCSHGCT.js → chunk.WGANUF5U.js} +1 -1
  37. package/cdn/chunks/{chunk.IHS6YCNW.js → chunk.WPJYFH2I.js} +1 -1
  38. package/cdn/chunks/{chunk.2BWXU745.js → chunk.WVPFNYMA.js} +1 -1
  39. package/cdn/chunks/{chunk.D6M4QQEX.js → chunk.WVTQW42J.js} +1 -1
  40. package/cdn/chunks/{chunk.VOS6ZTYL.js → chunk.XLPU7RKV.js} +1 -1
  41. package/cdn/chunks/{chunk.UI7L6PX5.js → chunk.ZEAKI2UK.js} +1 -1
  42. package/cdn/chunks/{chunk.M56AX2NQ.js → chunk.ZNGUO7XZ.js} +1 -1
  43. package/cdn/components/accordion/accordion.js +1 -1
  44. package/cdn/components/accordion-group/accordion-group.js +1 -1
  45. package/cdn/components/audio/audio.js +1 -1
  46. package/cdn/components/badge/badge.js +1 -1
  47. package/cdn/components/brandshape/brandshape.js +1 -1
  48. package/cdn/components/button/button.js +1 -1
  49. package/cdn/components/carousel/carousel.js +1 -1
  50. package/cdn/components/checkbox/checkbox.js +1 -1
  51. package/cdn/components/checkbox-group/checkbox-group.js +1 -1
  52. package/cdn/components/combobox/combobox.js +1 -1
  53. package/cdn/components/dialog/dialog.js +1 -1
  54. package/cdn/components/divider/divider.js +1 -1
  55. package/cdn/components/drawer/drawer.js +1 -1
  56. package/cdn/components/dropdown/dropdown.js +1 -1
  57. package/cdn/components/expandable/expandable.js +1 -1
  58. package/cdn/components/flipcard/flipcard.js +1 -1
  59. package/cdn/components/input/input.js +1 -1
  60. package/cdn/components/link/link.js +1 -1
  61. package/cdn/components/map-marker/map-marker.js +1 -1
  62. package/cdn/components/navigation-item/navigation-item.js +1 -1
  63. package/cdn/components/notification/notification.js +1 -1
  64. package/cdn/components/optgroup/optgroup.js +1 -1
  65. package/cdn/components/option/option.js +1 -1
  66. package/cdn/components/popup/popup.js +1 -1
  67. package/cdn/components/quickfact/quickfact.js +1 -1
  68. package/cdn/components/radio/radio.js +1 -1
  69. package/cdn/components/radio-button/radio-button.js +1 -1
  70. package/cdn/components/radio-group/radio-group.js +1 -1
  71. package/cdn/components/scrollable/scrollable.js +1 -1
  72. package/cdn/components/select/select.js +1 -1
  73. package/cdn/components/spinner/spinner.js +1 -1
  74. package/cdn/components/step/step.js +1 -1
  75. package/cdn/components/step-group/step-group.js +1 -1
  76. package/cdn/components/switch/switch.js +1 -1
  77. package/cdn/components/tab/tab.js +1 -1
  78. package/cdn/components/tab-group/tab-group.js +1 -1
  79. package/cdn/components/tab-panel/tab-panel.js +1 -1
  80. package/cdn/components/tag/tag.js +1 -1
  81. package/cdn/components/teaser/teaser.js +1 -1
  82. package/cdn/components/teaser-media/teaser-media.js +1 -1
  83. package/cdn/components/textarea/textarea.js +1 -1
  84. package/cdn/components/tooltip/tooltip.js +1 -1
  85. package/cdn/components/video/video.js +1 -1
  86. package/cdn/custom-elements.json +1 -1
  87. package/cdn/solid-components.bundle.js +2 -2
  88. package/cdn/solid-components.iife.js +2 -2
  89. package/cdn/solid-components.js +1 -1
  90. package/cdn/utilities/autocomplete-config.js +1 -1
  91. package/cdn/web-types.json +1 -1
  92. package/cdn-versioned/_components/menu/menu.js +1 -1
  93. package/cdn-versioned/_components/menu/menu.styles.js +1 -1
  94. package/cdn-versioned/_components/menu-item/menu-item.js +2 -2
  95. package/cdn-versioned/chunks/{chunk.6AT7QBRE.js → chunk.2ZCXWR7E.js} +1 -1
  96. package/cdn-versioned/chunks/{chunk.AZ5UMKBM.js → chunk.3NTNY2UH.js} +1 -1
  97. package/cdn-versioned/chunks/{chunk.B4OSWTH3.js → chunk.4F44QRA2.js} +1 -1
  98. package/cdn-versioned/chunks/chunk.65NSSTJE.js +1 -1
  99. package/cdn-versioned/chunks/{chunk.KME2AZKV.js → chunk.6JTQVPYM.js} +1 -1
  100. package/cdn-versioned/chunks/{chunk.CYH3PCNG.js → chunk.6MS466M2.js} +1 -1
  101. package/cdn-versioned/chunks/{chunk.CAWYHBD5.js → chunk.75EO36IN.js} +1 -1
  102. package/cdn-versioned/chunks/{chunk.M37NO2OL.js → chunk.7QUNXEQK.js} +1 -1
  103. package/cdn-versioned/chunks/{chunk.SZMORTHB.js → chunk.7RLRSCXQ.js} +1 -1
  104. package/cdn-versioned/chunks/chunk.7UYAPC2H.js +1 -1
  105. package/cdn-versioned/chunks/{chunk.CSTIFOAP.js → chunk.7XV3YENR.js} +1 -1
  106. package/cdn-versioned/chunks/chunk.CEVVDV52.js +1 -1
  107. package/cdn-versioned/chunks/{chunk.YEIAYEJG.js → chunk.CNH2FBFM.js} +2 -2
  108. package/cdn-versioned/chunks/{chunk.PGNO6HV2.js → chunk.DUICZBMU.js} +1 -1
  109. package/cdn-versioned/chunks/{chunk.XL3BUCUU.js → chunk.E5MVZNLH.js} +1 -1
  110. package/cdn-versioned/chunks/{chunk.GS3QL2OV.js → chunk.EROIZW6X.js} +1 -1
  111. package/cdn-versioned/chunks/{chunk.4IFORLFN.js → chunk.EVPT7JK3.js} +4 -4
  112. package/cdn-versioned/chunks/{chunk.MLIJR3PY.js → chunk.EZYSQC3V.js} +1 -1
  113. package/cdn-versioned/chunks/{chunk.LS53PDIU.js → chunk.FHGJUXJX.js} +4 -4
  114. package/cdn-versioned/chunks/chunk.FKNSLPX6.js +1 -1
  115. package/cdn-versioned/chunks/{chunk.23IKXZVG.js → chunk.GJMUIRQ2.js} +1 -1
  116. package/cdn-versioned/chunks/{chunk.AURWAJH2.js → chunk.GWPLAP5S.js} +1 -1
  117. package/cdn-versioned/chunks/{chunk.LRCDXHQL.js → chunk.H6R4QDN2.js} +1 -1
  118. package/cdn-versioned/chunks/chunk.IEPFDM4R.js +1 -1
  119. package/cdn-versioned/chunks/{chunk.2PA3FZXS.js → chunk.IUWDL2C4.js} +1 -1
  120. package/cdn-versioned/chunks/{chunk.QC2KZSKL.js → chunk.J2X6EPLA.js} +1 -1
  121. package/cdn-versioned/chunks/{chunk.7SQQCKX5.js → chunk.KMS2GOZX.js} +1 -1
  122. package/cdn-versioned/chunks/{chunk.CF4RVCLN.js → chunk.L53H4NRS.js} +1 -1
  123. package/cdn-versioned/chunks/{chunk.W72MLMOE.js → chunk.LU3JG42J.js} +1 -1
  124. package/cdn-versioned/chunks/{chunk.6ZV2UB2R.js → chunk.LZPV4I3M.js} +1 -1
  125. package/cdn-versioned/chunks/{chunk.SRHKA7HE.js → chunk.MQMIFBAP.js} +1 -1
  126. package/cdn-versioned/chunks/{chunk.CJNJKNFE.js → chunk.MS332YGT.js} +1 -1
  127. package/cdn-versioned/chunks/{chunk.Q5XVXRF6.js → chunk.PY7WAXNJ.js} +1 -1
  128. package/cdn-versioned/chunks/{chunk.NMHMV2IL.js → chunk.RLUO45Y5.js} +2 -2
  129. package/cdn-versioned/chunks/chunk.SIAG2ZHR.js +1 -0
  130. package/cdn-versioned/chunks/chunk.SLT75PJ7.js +1 -1
  131. package/cdn-versioned/chunks/{chunk.7CKFXHTE.js → chunk.TU2ZS5QJ.js} +4 -4
  132. package/cdn-versioned/chunks/chunk.TW2X7LLC.js +1 -1
  133. package/cdn-versioned/chunks/{chunk.UXYQTHQP.js → chunk.U7V4IBUM.js} +1 -1
  134. package/cdn-versioned/chunks/{chunk.AXTP2V5W.js → chunk.UPY4N63N.js} +1 -1
  135. package/cdn-versioned/chunks/{chunk.QB6ZZCNC.js → chunk.UVMPKHLP.js} +1 -1
  136. package/cdn-versioned/chunks/chunk.VVV2SCQ6.js +1 -1
  137. package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
  138. package/cdn-versioned/chunks/{chunk.CBUVQPJ2.js → chunk.WF3RODYO.js} +1 -1
  139. package/cdn-versioned/chunks/{chunk.QQCSHGCT.js → chunk.WGANUF5U.js} +2 -2
  140. package/cdn-versioned/chunks/{chunk.IHS6YCNW.js → chunk.WPJYFH2I.js} +1 -1
  141. package/cdn-versioned/chunks/{chunk.2BWXU745.js → chunk.WVPFNYMA.js} +1 -1
  142. package/cdn-versioned/chunks/{chunk.D6M4QQEX.js → chunk.WVTQW42J.js} +1 -1
  143. package/cdn-versioned/chunks/chunk.X77YGX4O.js +1 -1
  144. package/cdn-versioned/chunks/{chunk.VOS6ZTYL.js → chunk.XLPU7RKV.js} +1 -1
  145. package/cdn-versioned/chunks/{chunk.UI7L6PX5.js → chunk.ZEAKI2UK.js} +2 -2
  146. package/cdn-versioned/chunks/{chunk.M56AX2NQ.js → chunk.ZNGUO7XZ.js} +1 -1
  147. package/cdn-versioned/chunks/chunk.ZZFQQH27.js +1 -1
  148. package/cdn-versioned/components/accordion/accordion.d.ts +1 -1
  149. package/cdn-versioned/components/accordion/accordion.js +1 -1
  150. package/cdn-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  151. package/cdn-versioned/components/accordion-group/accordion-group.js +1 -1
  152. package/cdn-versioned/components/animation/animation.d.ts +1 -1
  153. package/cdn-versioned/components/audio/audio.d.ts +1 -1
  154. package/cdn-versioned/components/audio/audio.js +1 -1
  155. package/cdn-versioned/components/badge/badge.d.ts +1 -1
  156. package/cdn-versioned/components/badge/badge.js +1 -1
  157. package/cdn-versioned/components/brandshape/brandshape.d.ts +1 -1
  158. package/cdn-versioned/components/brandshape/brandshape.js +1 -1
  159. package/cdn-versioned/components/button/button.d.ts +1 -1
  160. package/cdn-versioned/components/button/button.js +1 -1
  161. package/cdn-versioned/components/button-group/button-group.d.ts +1 -1
  162. package/cdn-versioned/components/carousel/carousel.d.ts +1 -1
  163. package/cdn-versioned/components/carousel/carousel.js +1 -1
  164. package/cdn-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  165. package/cdn-versioned/components/checkbox/checkbox.d.ts +1 -1
  166. package/cdn-versioned/components/checkbox/checkbox.js +1 -1
  167. package/cdn-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
  168. package/cdn-versioned/components/checkbox-group/checkbox-group.js +1 -1
  169. package/cdn-versioned/components/combobox/combobox.d.ts +4 -4
  170. package/cdn-versioned/components/combobox/combobox.js +1 -1
  171. package/cdn-versioned/components/dialog/dialog.d.ts +1 -1
  172. package/cdn-versioned/components/dialog/dialog.js +1 -1
  173. package/cdn-versioned/components/divider/divider.d.ts +1 -1
  174. package/cdn-versioned/components/divider/divider.js +1 -1
  175. package/cdn-versioned/components/drawer/drawer.d.ts +1 -1
  176. package/cdn-versioned/components/drawer/drawer.js +1 -1
  177. package/cdn-versioned/components/dropdown/dropdown.d.ts +1 -1
  178. package/cdn-versioned/components/dropdown/dropdown.js +1 -1
  179. package/cdn-versioned/components/expandable/expandable.d.ts +1 -1
  180. package/cdn-versioned/components/expandable/expandable.js +1 -1
  181. package/cdn-versioned/components/flipcard/flipcard.d.ts +1 -1
  182. package/cdn-versioned/components/flipcard/flipcard.js +1 -1
  183. package/cdn-versioned/components/header/header.d.ts +1 -1
  184. package/cdn-versioned/components/icon/icon.d.ts +1 -1
  185. package/cdn-versioned/components/include/include.d.ts +1 -1
  186. package/cdn-versioned/components/input/input.d.ts +1 -1
  187. package/cdn-versioned/components/input/input.js +1 -1
  188. package/cdn-versioned/components/link/link.d.ts +1 -1
  189. package/cdn-versioned/components/link/link.js +1 -1
  190. package/cdn-versioned/components/map-marker/map-marker.d.ts +1 -1
  191. package/cdn-versioned/components/map-marker/map-marker.js +1 -1
  192. package/cdn-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  193. package/cdn-versioned/components/navigation-item/navigation-item.js +1 -1
  194. package/cdn-versioned/components/notification/notification.d.ts +1 -1
  195. package/cdn-versioned/components/notification/notification.js +1 -1
  196. package/cdn-versioned/components/optgroup/optgroup.d.ts +2 -2
  197. package/cdn-versioned/components/optgroup/optgroup.js +1 -1
  198. package/cdn-versioned/components/option/option.d.ts +1 -1
  199. package/cdn-versioned/components/option/option.js +1 -1
  200. package/cdn-versioned/components/popup/popup.d.ts +1 -1
  201. package/cdn-versioned/components/popup/popup.js +1 -1
  202. package/cdn-versioned/components/quickfact/quickfact.d.ts +1 -1
  203. package/cdn-versioned/components/quickfact/quickfact.js +1 -1
  204. package/cdn-versioned/components/radio/radio.d.ts +1 -1
  205. package/cdn-versioned/components/radio/radio.js +1 -1
  206. package/cdn-versioned/components/radio-button/radio-button.d.ts +1 -1
  207. package/cdn-versioned/components/radio-button/radio-button.js +1 -1
  208. package/cdn-versioned/components/radio-group/radio-group.d.ts +2 -2
  209. package/cdn-versioned/components/radio-group/radio-group.js +1 -1
  210. package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
  211. package/cdn-versioned/components/scrollable/scrollable.js +1 -1
  212. package/cdn-versioned/components/select/select.d.ts +4 -4
  213. package/cdn-versioned/components/select/select.js +1 -1
  214. package/cdn-versioned/components/spinner/spinner.d.ts +1 -1
  215. package/cdn-versioned/components/spinner/spinner.js +1 -1
  216. package/cdn-versioned/components/step/step.d.ts +1 -1
  217. package/cdn-versioned/components/step/step.js +1 -1
  218. package/cdn-versioned/components/step-group/step-group.d.ts +1 -1
  219. package/cdn-versioned/components/step-group/step-group.js +1 -1
  220. package/cdn-versioned/components/switch/switch.d.ts +1 -1
  221. package/cdn-versioned/components/switch/switch.js +1 -1
  222. package/cdn-versioned/components/tab/tab.d.ts +1 -1
  223. package/cdn-versioned/components/tab/tab.js +1 -1
  224. package/cdn-versioned/components/tab-group/tab-group.d.ts +1 -1
  225. package/cdn-versioned/components/tab-group/tab-group.js +1 -1
  226. package/cdn-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  227. package/cdn-versioned/components/tab-panel/tab-panel.js +1 -1
  228. package/cdn-versioned/components/tag/tag.d.ts +1 -1
  229. package/cdn-versioned/components/tag/tag.js +1 -1
  230. package/cdn-versioned/components/teaser/teaser.js +1 -1
  231. package/cdn-versioned/components/teaser-media/teaser-media.js +1 -1
  232. package/cdn-versioned/components/textarea/textarea.d.ts +1 -1
  233. package/cdn-versioned/components/textarea/textarea.js +1 -1
  234. package/cdn-versioned/components/tooltip/tooltip.d.ts +1 -1
  235. package/cdn-versioned/components/tooltip/tooltip.js +1 -1
  236. package/cdn-versioned/components/video/video.d.ts +1 -1
  237. package/cdn-versioned/components/video/video.js +1 -1
  238. package/cdn-versioned/custom-elements.json +202 -202
  239. package/cdn-versioned/internal/form.js +3 -3
  240. package/cdn-versioned/solid-components.bundle.js +16 -16
  241. package/cdn-versioned/solid-components.css +2 -2
  242. package/cdn-versioned/solid-components.iife.js +16 -16
  243. package/cdn-versioned/solid-components.js +1 -1
  244. package/cdn-versioned/utilities/autocomplete-config.js +1 -1
  245. package/cdn-versioned/vscode.html-custom-data.json +80 -80
  246. package/cdn-versioned/web-types.json +137 -137
  247. package/dist/chunks/{chunk.NXMLWQ4F.js → chunk.DLQHVF36.js} +1 -1
  248. package/dist/chunks/{chunk.UWKWJ6WX.js → chunk.XQ7I46XG.js} +1 -1
  249. package/dist/components/checkbox/checkbox.js +1 -1
  250. package/dist/components/radio-group/radio-group.js +1 -1
  251. package/dist/custom-elements.json +1 -1
  252. package/dist/solid-components.js +5 -5
  253. package/dist/web-types.json +1 -1
  254. package/dist-versioned/_components/menu/menu.js +1 -1
  255. package/dist-versioned/_components/menu/menu.styles.js +1 -1
  256. package/dist-versioned/_components/menu-item/menu-item.js +2 -2
  257. package/dist-versioned/chunks/chunk.33QCSKQD.js +1 -1
  258. package/dist-versioned/chunks/chunk.5U42A4N2.js +1 -1
  259. package/dist-versioned/chunks/chunk.65GBG62N.js +2 -2
  260. package/dist-versioned/chunks/chunk.6DKXZWRN.js +4 -4
  261. package/dist-versioned/chunks/chunk.6Q2FPQCD.js +5 -5
  262. package/dist-versioned/chunks/chunk.AEYAUOW5.js +2 -2
  263. package/dist-versioned/chunks/chunk.AQOV7CSX.js +3 -3
  264. package/dist-versioned/chunks/chunk.DKDBS6OJ.js +9 -9
  265. package/dist-versioned/chunks/{chunk.NXMLWQ4F.js → chunk.DLQHVF36.js} +13 -13
  266. package/dist-versioned/chunks/chunk.DQPMDZDZ.js +5 -5
  267. package/dist-versioned/chunks/chunk.F27JSEQZ.js +5 -5
  268. package/dist-versioned/chunks/chunk.F2TZ6DNQ.js +29 -29
  269. package/dist-versioned/chunks/chunk.FG4KLSVA.js +4 -4
  270. package/dist-versioned/chunks/chunk.GEIIXN6O.js +3 -3
  271. package/dist-versioned/chunks/chunk.GXOBJN4Z.js +5 -5
  272. package/dist-versioned/chunks/chunk.I44BFH6N.js +2 -2
  273. package/dist-versioned/chunks/chunk.I6LLIF3A.js +5 -5
  274. package/dist-versioned/chunks/chunk.IHJUIKE5.js +2 -2
  275. package/dist-versioned/chunks/chunk.IHKHCZDI.js +2 -2
  276. package/dist-versioned/chunks/chunk.JCZYHLLG.js +1 -1
  277. package/dist-versioned/chunks/chunk.KVKRZJS7.js +3 -3
  278. package/dist-versioned/chunks/chunk.LM7G2MP2.js +1 -1
  279. package/dist-versioned/chunks/chunk.LT6DJYQW.js +2 -2
  280. package/dist-versioned/chunks/chunk.LTMUP2IF.js +1 -1
  281. package/dist-versioned/chunks/chunk.M4CPDAKC.js +1 -1
  282. package/dist-versioned/chunks/chunk.MM7UZ56N.js +13 -13
  283. package/dist-versioned/chunks/chunk.MPC4NJ7T.js +2 -2
  284. package/dist-versioned/chunks/chunk.MUTJR3Y5.js +2 -2
  285. package/dist-versioned/chunks/chunk.NKQ5TMZU.js +1 -1
  286. package/dist-versioned/chunks/chunk.NVGI6WK4.js +3 -3
  287. package/dist-versioned/chunks/chunk.OED6NJWG.js +26 -26
  288. package/dist-versioned/chunks/chunk.OVXTOIRH.js +1 -1
  289. package/dist-versioned/chunks/chunk.PHOL2FZ7.js +2 -2
  290. package/dist-versioned/chunks/chunk.PY2NXO6G.js +1 -1
  291. package/dist-versioned/chunks/chunk.Q2OO67VT.js +2 -2
  292. package/dist-versioned/chunks/chunk.QINFB4CI.js +3 -3
  293. package/dist-versioned/chunks/chunk.R7F4MWPK.js +2 -2
  294. package/dist-versioned/chunks/chunk.SL7UXNEP.js +6 -6
  295. package/dist-versioned/chunks/chunk.SUVILVZH.js +1 -1
  296. package/dist-versioned/chunks/chunk.TA2OGXIC.js +1 -1
  297. package/dist-versioned/chunks/chunk.THT3CJM5.js +1 -1
  298. package/dist-versioned/chunks/chunk.UEKILTQF.js +2 -2
  299. package/dist-versioned/chunks/chunk.UGILZRQF.js +5 -5
  300. package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
  301. package/dist-versioned/chunks/chunk.UTL7JKFI.js +6 -6
  302. package/dist-versioned/chunks/chunk.V27Y42MG.js +2 -2
  303. package/dist-versioned/chunks/chunk.VAA7NUXP.js +2 -2
  304. package/dist-versioned/chunks/chunk.VYPTEJCW.js +2 -2
  305. package/dist-versioned/chunks/chunk.WZK6B3UV.js +11 -11
  306. package/dist-versioned/chunks/chunk.X27M4U7I.js +1 -1
  307. package/dist-versioned/chunks/{chunk.UWKWJ6WX.js → chunk.XQ7I46XG.js} +4 -4
  308. package/dist-versioned/chunks/chunk.XS43N4DL.js +2 -2
  309. package/dist-versioned/chunks/chunk.YHVAW367.js +1 -1
  310. package/dist-versioned/components/accordion/accordion.d.ts +1 -1
  311. package/dist-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  312. package/dist-versioned/components/animation/animation.d.ts +1 -1
  313. package/dist-versioned/components/audio/audio.d.ts +1 -1
  314. package/dist-versioned/components/badge/badge.d.ts +1 -1
  315. package/dist-versioned/components/brandshape/brandshape.d.ts +1 -1
  316. package/dist-versioned/components/button/button.d.ts +1 -1
  317. package/dist-versioned/components/button-group/button-group.d.ts +1 -1
  318. package/dist-versioned/components/carousel/carousel.d.ts +1 -1
  319. package/dist-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  320. package/dist-versioned/components/checkbox/checkbox.d.ts +1 -1
  321. package/dist-versioned/components/checkbox/checkbox.js +1 -1
  322. package/dist-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
  323. package/dist-versioned/components/combobox/combobox.d.ts +4 -4
  324. package/dist-versioned/components/dialog/dialog.d.ts +1 -1
  325. package/dist-versioned/components/divider/divider.d.ts +1 -1
  326. package/dist-versioned/components/drawer/drawer.d.ts +1 -1
  327. package/dist-versioned/components/dropdown/dropdown.d.ts +1 -1
  328. package/dist-versioned/components/expandable/expandable.d.ts +1 -1
  329. package/dist-versioned/components/flipcard/flipcard.d.ts +1 -1
  330. package/dist-versioned/components/header/header.d.ts +1 -1
  331. package/dist-versioned/components/icon/icon.d.ts +1 -1
  332. package/dist-versioned/components/include/include.d.ts +1 -1
  333. package/dist-versioned/components/input/input.d.ts +1 -1
  334. package/dist-versioned/components/link/link.d.ts +1 -1
  335. package/dist-versioned/components/map-marker/map-marker.d.ts +1 -1
  336. package/dist-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  337. package/dist-versioned/components/notification/notification.d.ts +1 -1
  338. package/dist-versioned/components/optgroup/optgroup.d.ts +2 -2
  339. package/dist-versioned/components/option/option.d.ts +1 -1
  340. package/dist-versioned/components/popup/popup.d.ts +1 -1
  341. package/dist-versioned/components/quickfact/quickfact.d.ts +1 -1
  342. package/dist-versioned/components/radio/radio.d.ts +1 -1
  343. package/dist-versioned/components/radio-button/radio-button.d.ts +1 -1
  344. package/dist-versioned/components/radio-group/radio-group.d.ts +2 -2
  345. package/dist-versioned/components/radio-group/radio-group.js +1 -1
  346. package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
  347. package/dist-versioned/components/select/select.d.ts +4 -4
  348. package/dist-versioned/components/spinner/spinner.d.ts +1 -1
  349. package/dist-versioned/components/step/step.d.ts +1 -1
  350. package/dist-versioned/components/step-group/step-group.d.ts +1 -1
  351. package/dist-versioned/components/switch/switch.d.ts +1 -1
  352. package/dist-versioned/components/tab/tab.d.ts +1 -1
  353. package/dist-versioned/components/tab-group/tab-group.d.ts +1 -1
  354. package/dist-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  355. package/dist-versioned/components/tag/tag.d.ts +1 -1
  356. package/dist-versioned/components/textarea/textarea.d.ts +1 -1
  357. package/dist-versioned/components/tooltip/tooltip.d.ts +1 -1
  358. package/dist-versioned/components/video/video.d.ts +1 -1
  359. package/dist-versioned/custom-elements.json +202 -202
  360. package/dist-versioned/internal/form.js +3 -3
  361. package/dist-versioned/solid-components.css +2 -2
  362. package/dist-versioned/solid-components.js +5 -5
  363. package/dist-versioned/vscode.html-custom-data.json +80 -80
  364. package/dist-versioned/web-types.json +137 -137
  365. package/package.json +10 -10
  366. package/cdn/chunks/chunk.FG4AYCVI.js +0 -1
  367. package/cdn-versioned/chunks/chunk.FG4AYCVI.js +0 -1
  368. /package/cdn/chunks/{chunk.TWQVHGYD.js → chunk.26V4EXHB.js} +0 -0
  369. /package/cdn-versioned/chunks/{chunk.TWQVHGYD.js → chunk.26V4EXHB.js} +0 -0
@@ -108,7 +108,7 @@
108
108
  disabled:text-neutral-500`,cta:`text-white ${this.visuallyDisabled?"bg-neutral-500 hover:bg-neutral-500 active:bg-neutral-500":"bg-accent-500 border-transparent hover:bg-accent-550 active:bg-accent-700"}
109
109
  ${this.inverted?"disabled:bg-neutral-600":"disabled:bg-neutral-500"} disabled:text-white`}[this.variant])}" ?disabled="${E(t?void 0:this.disabled)}" type="${E(t?void 0:this.type)}" title="${this.title}" name="${E(t?void 0:this.name)}" value="${E(t?void 0:this.value)}" href="${E(t?this.href:void 0)}" target="${E(t?this.target:void 0)}" download="${E(t?this.download:void 0)}" rel="${E(t&&this.target?"noreferrer noopener":void 0)}" role="${E(t?void 0:"button")}" aria-disabled="${this.disabled||this.visuallyDisabled?"true":"false"}" aria-labelledby="content" tabindex="${this.disabled?"-1":"0"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" @invalid="${this.isButton()?this.handleInvalid:null}" @click="${this.handleClick}"><slot name="icon-left" part="icon-left" class="${c("flex flex-auto items-center pointer-events-none",r["icon-only"]&&"hidden",this.loading&&"invisible",r["icon-left"]&&{sm:"mr-1",md:"mr-2",lg:"mr-2"}[this.size])}"></slot><slot part="label" id="content" class="${c(r["icon-only"]?"flex flex-auto items-center pointer-events-none":"inline-block",this.loading&&"invisible")}"></slot><slot name="icon-right" part="icon-right" class="${c("flex flex-auto items-center pointer-events-none",this.loading&&"invisible",r["icon-only"]&&"hidden",r["icon-right"]&&{sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size])}"></slot>${this.loading?F`<sd-spinner class="${c("absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2")}"></sd-spinner>`:""}</${e}>`}};B.styles=[...m.styles,v`:host{cursor:pointer;display:inline-block;position:relative;width:var(--sd-spacing-auto,auto)}sd-spinner{--indicator-color:currentColor;--track-color:var(--tw-varcolor-200)}::slotted(sd-badge){pointer-events:none;position:absolute;right:var(--sd-spacing-0,0);top:var(--sd-spacing-0,0);--tw-translate-x:50%!important;--tw-translate-y:-50%!important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}::slotted(sd-icon),sd-spinner{font-size:calc(var(--tw-varspacing)/2)}`],o([g("a, button")],B.prototype,"button",2),o([Ke({selector:"sd-icon"})],B.prototype,"_iconsInDefaultSlot",2),o([C()],B.prototype,"invalid",2),o([l()],B.prototype,"title",2),o([l({reflect:!0})],B.prototype,"variant",2),o([l({type:Boolean,reflect:!0})],B.prototype,"inverted",2),o([l({reflect:!0})],B.prototype,"size",2),o([l({type:Boolean,reflect:!0})],B.prototype,"disabled",2),o([l({type:Boolean,reflect:!0,attribute:"visually-disabled"})],B.prototype,"visuallyDisabled",2),o([l({type:Boolean,reflect:!0})],B.prototype,"loading",2),o([l()],B.prototype,"type",2),o([l()],B.prototype,"name",2),o([l()],B.prototype,"value",2),o([l()],B.prototype,"href",2),o([l()],B.prototype,"target",2),o([l()],B.prototype,"download",2),o([l()],B.prototype,"form",2),o([l({attribute:"formaction"})],B.prototype,"formAction",2),o([l({attribute:"formenctype"})],B.prototype,"formEnctype",2),o([l({attribute:"formmethod"})],B.prototype,"formMethod",2),o([l({attribute:"formnovalidate",type:Boolean})],B.prototype,"formNoValidate",2),o([l({attribute:"formtarget"})],B.prototype,"formTarget",2),o([w("disabled",{waitUntilFirstUpdate:!0})],B.prototype,"handleDisabledChange",1),B=o([y("sd-button")],B);var Bi=class{constructor(i,t){this.timerId=0;this.activeInteractions=0;this.paused=!1;this.stopped=!0;this.pause=()=>{this.activeInteractions++||(this.paused=!0,this.host.requestUpdate())};this.resume=()=>{--this.activeInteractions||(this.paused=!1,this.host.requestUpdate())};i.addController(this),this.host=i,this.tickCallback=t}hostConnected(){this.host.addEventListener("mouseenter",this.pause),this.host.addEventListener("mouseleave",this.resume),this.host.addEventListener("focusin",this.pause),this.host.addEventListener("focusout",this.resume),this.host.addEventListener("touchstart",this.pause,{passive:!0}),this.host.addEventListener("touchend",this.resume)}hostDisconnected(){this.stop(),this.host.removeEventListener("mouseenter",this.pause),this.host.removeEventListener("mouseleave",this.resume),this.host.removeEventListener("focusin",this.pause),this.host.removeEventListener("focusout",this.resume),this.host.removeEventListener("touchstart",this.pause),this.host.removeEventListener("touchend",this.resume)}start(i){this.stop(),this.stopped=!1,this.timerId=window.setInterval(()=>{this.paused||this.tickCallback()},i)}stop(){clearInterval(this.timerId),this.stopped=!0,this.host.requestUpdate()}};function As(s,i,t){let e=r=>Object.is(r,-0)?0:r;return s<i?e(i):s>t?e(t):e(s)}function*Os(s,i){if(s!==void 0){let t=0;for(let e of s)yield i(e,t++)}}function*Ms(s,i,t=1){let e=i===void 0?0:s;i!=null||(i=s);for(let r=e;t>0?r<i:i<r;r+=t)yield r}var Ds=Symbol(),Vi=s=>(i,t,e)=>{let r=e.value;e.value=function(...a){clearTimeout(this[Ds]),this[Ds]=window.setTimeout(()=>{r.apply(this,a)},s)}};var hi=class{constructor(i){this.pointers=new Set;this.dragging=!1;this.scrolling=!1;this.mouseDragging=!1;this.handleScroll=()=>{this.scrolling||(this.scrolling=!0,this.host.requestUpdate()),this.handleScrollEnd()};this.handlePointerDown=i=>{if(i.pointerType==="touch")return;this.pointers.add(i.pointerId),this.mouseDragging&&!this.dragging&&i.button===0&&(i.preventDefault(),this.host.scrollContainer.addEventListener("pointermove",this.handlePointerMove))};this.handlePointerMove=i=>{let t=this.host.scrollContainer,e=!!i.movementX||!!i.movementY;!this.dragging&&e?(t.setPointerCapture(i.pointerId),this.handleDragStart()):t.hasPointerCapture(i.pointerId)&&this.handleDrag(i)};this.handlePointerUp=i=>{this.pointers.delete(i.pointerId),this.host.scrollContainer.releasePointerCapture(i.pointerId),this.pointers.size===0&&this.handleDragEnd()};this.handleTouchEnd=i=>{for(let t of i.changedTouches)this.pointers.delete(t.identifier)};this.handleTouchStart=i=>{for(let t of i.touches)this.pointers.add(t.identifier)};this.host=i,i.addController(this)}async hostConnected(){let i=this.host;await i.updateComplete;let t=i.scrollContainer;t.addEventListener("scroll",this.handleScroll,{passive:!0}),t.addEventListener("pointerdown",this.handlePointerDown),t.addEventListener("pointerup",this.handlePointerUp),t.addEventListener("pointercancel",this.handlePointerUp),t.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),t.addEventListener("touchend",this.handleTouchEnd)}hostDisconnected(){let t=this.host.scrollContainer;t.removeEventListener("scroll",this.handleScroll),t.removeEventListener("pointerdown",this.handlePointerDown),t.removeEventListener("pointerup",this.handlePointerUp),t.removeEventListener("pointercancel",this.handlePointerUp),t.removeEventListener("touchstart",this.handleTouchStart),t.removeEventListener("touchend",this.handleTouchEnd)}handleScrollEnd(){this.pointers.size?this.handleScrollEnd():(this.scrolling=!1,this.host.scrollContainer.dispatchEvent(new CustomEvent("scrollend",{bubbles:!1,cancelable:!1})),this.host.requestUpdate())}handleDragStart(){let i=this.host;this.dragging=!0,i.scrollContainer.style.setProperty("scroll-snap-type","unset"),i.requestUpdate()}handleDrag(i){this.host.scrollContainer.scrollBy({left:-i.movementX,top:-i.movementY})}async handleDragEnd(){let i=this.host,t=i.scrollContainer;t.removeEventListener("pointermove",this.handlePointerMove),this.dragging=!1;let e=t.scrollLeft,r=t.scrollTop;t.style.removeProperty("scroll-snap-type");let a=t.scrollLeft,n=t.scrollTop;t.style.setProperty("scroll-snap-type","unset"),t.scrollTo({left:e,top:r,behavior:"auto"}),t.scrollTo({left:a,top:n,behavior:ni()?"auto":"smooth"}),this.scrolling&&await U(t,"scrollend"),t.style.removeProperty("scroll-snap-type"),i.requestUpdate()}};o([Vi(100)],hi.prototype,"handleScrollEnd",1);var ee=class extends m{static isCarouselItem(i){return i instanceof Element&&i.getAttribute("aria-roledescription")==="slide"}connectedCallback(){super.connectedCallback(),this.setAttribute("role","group")}render(){return p`<slot></slot>`}};ee.styles=[...m.styles,v`:host{align-items:center;aspect-ratio:var(--aspect-ratio);display:flex;flex-direction:column;height:100%;justify-content:center;scroll-snap-align:start;scroll-snap-stop:always;width:100%}::slotted(img){height:100%;-o-object-fit:cover;object-fit:cover;width:100%}`],ee=o([y("sd-carousel-item")],ee);var N=class extends m{constructor(){super(...arguments);this.variant="number";this.inverted=!1;this.loop=!1;this.autoplay=!1;this.slidesPerPage=1;this.slidesPerMove=1;this.activeSlide=0;this.currentPage=1;this.pausedAutoplay=!1;this.autoplayController=new Bi(this,()=>this.next());this.scrollController=new hi(this);this.slides=this.getElementsByTagName("sd-carousel-item");this.intersectionObserverEntries=new Map;this.localize=new P(this);this.userInteracted=!1;this.handleUserInteraction=()=>{this.userInteracted=!0};this.handleSlotChange=t=>{t.some(r=>[...r.addedNodes,...r.removedNodes].some(a=>ee.isCarouselItem(a)&&!a.hasAttribute("data-clone")))&&this.initializeSlides(),this.requestUpdate()};this.unblockAutoplay=(t,e)=>{t.detail&&e.blur()}}connectedCallback(){super.connectedCallback(),this.setAttribute("role","region"),this.setAttribute("aria-label",this.localize.term("carousel")),["click","keydown"].forEach(e=>this.addEventListener(e,this.handleUserInteraction));let t=new IntersectionObserver(e=>{e.forEach(r=>{this.intersectionObserverEntries.set(r.target,r);let a=r.target;a.toggleAttribute("inert",!r.isIntersecting),a.classList.toggle("--in-view",r.isIntersecting),a.setAttribute("aria-hidden",r.isIntersecting?"false":"true")})},{root:this,threshold:.6});this.intersectionObserver=t,t.takeRecords().forEach(e=>{this.intersectionObserverEntries.set(e.target,e)})}disconnectedCallback(){super.disconnectedCallback(),this.intersectionObserver.disconnect(),this.mutationObserver.disconnect(),["click","keydown"].forEach(t=>this.removeEventListener(t,this.handleUserInteraction))}firstUpdated(){this.initializeSlides(),this.mutationObserver=new MutationObserver(this.handleSlotChange),this.mutationObserver.observe(this,{childList:!0,subtree:!1})}getPageCount(t,e,r){return Math.ceil((t-e)/r)+1>0?Math.ceil((t-e)/r)+1:1}getCurrentPage(t,e,r,a){return Math.ceil((t-r)/a)-Math.ceil((t-r-e)/a)+1}getSlides({excludeClones:t=!0}={}){return[...this.slides].filter(e=>!t||!e.hasAttribute("data-clone"))}handleKeyDown(t){if(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(t.key)){let e=t.target,r=this.localize.dir()==="rtl",a=e.closest('[part~="pagination-item"]')!==null,n=t.key==="ArrowDown"||!r&&t.key==="ArrowRight"||r&&t.key==="ArrowLeft",d=t.key==="ArrowUp"||!r&&t.key==="ArrowLeft"||r&&t.key==="ArrowRight";t.preventDefault(),d&&this.previous(),n&&this.next(),t.key==="Home"&&this.goToSlide(0),t.key==="End"&&this.goToSlide(this.getSlides().length-1),a&&this.updateComplete.then(()=>{var u;let h=(u=this.shadowRoot)==null?void 0:u.querySelector('[part~="pagination-item--active"]');h&&h.focus()})}}handleScrollEnd(){let t=this.getSlides(),r=[...this.intersectionObserverEntries.values()].find(a=>a.isIntersecting);if(this.loop&&(r!=null&&r.target.hasAttribute("data-clone"))){let a=Number(r.target.getAttribute("data-clone"));this.goToSlide(a,"auto");return}r&&(this.activeSlide=t.indexOf(r.target))}pause(){this.pausedAutoplay=!0}resume(){this.pausedAutoplay=!1}handlePausedAutoplay(){var t,e;this.pausedAutoplay?(this.autoplayController.stop(),(t=this.autoplayControls)==null||t.setAttribute("aria-pressed","false")):this.autoplay&&(this.autoplayController.start(3e3),(e=this.autoplayControls)==null||e.setAttribute("aria-pressed","true"))}initializeSlides(){let t=this.getSlides(),e=this.intersectionObserver;if(this.intersectionObserverEntries.clear(),this.getSlides({excludeClones:!1}).forEach((r,a)=>{e.unobserve(r),r.classList.remove("--in-view"),r.classList.remove("--is-active"),r.setAttribute("aria-label",this.localize.term("slideNum",a+1,t.length)),r.hasAttribute("data-clone")&&r.remove()}),this.loop){let r=this.slidesPerPage,a=t.slice(-r),n=t.slice(0,r);a.reverse().forEach((d,h)=>{let u=d.cloneNode(!0);u.setAttribute("data-clone",String(t.length-h-1)),this.prepend(u)}),n.forEach((d,h)=>{let u=d.cloneNode(!0);u.setAttribute("data-clone",String(h)),this.append(u)})}this.getSlides({excludeClones:!1}).forEach(r=>{e.observe(r)}),this.goToSlide(this.activeSlide,"auto")}handleSlideChange(){let t=this.getSlides();t.forEach((a,n)=>{a.classList.toggle("--is-active",n===this.activeSlide)});let e=this.getCurrentPage(t.length,this.activeSlide,this.slidesPerPage,this.slidesPerMove);this.currentPage!==e&&(this.currentPage=e),this.hasUpdated&&this.emit("sd-slide-change",{detail:{index:this.activeSlide,slide:t[this.activeSlide]}});let r=this.getPageCount(t.length,this.slidesPerPage,this.slidesPerMove);this.currentPage>r&&requestAnimationFrame(()=>{this.nextTillFirst()})}handleSlidesPerMoveChange(){let t=this.getSlides({excludeClones:!1}),e=this.slidesPerMove;t.forEach((r,a)=>{Math.abs(a-e)%e===0?r.style.removeProperty("scroll-snap-align"):r.style.setProperty("scroll-snap-align","none")})}handleAutoplayChange(){this.autoplayController.stop(),this.autoplay&&!this.pausedAutoplay&&this.autoplayController.start(3e3)}previous(t="smooth"){let e=this.activeSlide||this.activeSlide-this.slidesPerMove,r=!1;for(;!r&&e>0;)e-=1,r=Math.abs(e-this.slidesPerMove)%this.slidesPerMove===0;this.currentPage-1===0&&this.loop?this.goToSlide(this.activeSlide-this.slidesPerPage,t):this.goToSlide(e,t)}next(t="smooth"){this.currentPage+1<=this.getPageCount(this.getSlides().length,this.slidesPerPage,this.slidesPerMove)?this.goToSlide(this.activeSlide+this.slidesPerMove,t):this.loop&&this.nextTillFirst(t)}nextTillFirst(t="smooth"){for(;this.activeSlide!==0;)this.goToSlide(this.activeSlide+1,t);this.currentPage=this.getCurrentPage(this.getSlides().length,this.activeSlide,this.slidesPerPage,this.slidesPerMove)}goToSlide(t,e="smooth"){let{slidesPerPage:r,loop:a,scrollContainer:n}=this,d=this.getSlides(),h=this.getSlides({excludeClones:!1}),u=(t+d.length)%d.length;this.activeSlide=u;let f=As(t+(a?r:0),0,h.length+1),b=h[f],k=n.getBoundingClientRect(),x=b.getBoundingClientRect();if(n.scrollTo({left:x.left-k.left+n.scrollLeft,top:x.top-k.top+n.scrollTop,behavior:ni()?"auto":e}),this.userInteracted&&!this.loop){let $=this.activeSlide===d.length-1||this.activeSlide===this.slides.length-this.slidesPerPage,z=this.activeSlide===0;$?this.previousButton.focus({preventScroll:!0}):z&&this.nextButton.focus({preventScroll:!0})}}render(){let{scrollController:t,slidesPerMove:e}=this,r=this.getPageCount(this.getSlides().length,this.slidesPerPage,this.slidesPerMove),a=this.getCurrentPage(this.getSlides().length,this.activeSlide,this.slidesPerPage,this.slidesPerMove),n=this.loop||a>1,d=this.loop||a<r,h=this.localize.dir()==="ltr";return p`<div part="base" class="${c("carousel h-full w-full")}"><div id="scroll-container" part="scroll-container" class="${c(`carousel__slides mb-6
110
110
  grid max-h-full w-full items-center justify-items-center overflow-auto`,this.inverted?"focus-visible:focus-outline-inverted":"focus-visible:focus-outline",`overscroll-x-contain grid-flow-col auto-rows-[100%]
111
- snap-x snap-mandatory overflow-y-hidden`)}" style="--slides-per-page:${this.slidesPerPage}" aria-busy="${t.scrolling?"true":"false"}" role="status" tabindex="0" @keydown="${this.handleKeyDown}" @scrollend="${this.handleScrollEnd}"><slot></slot></div><div part="controls" class="${c("w-full flex items-center justify-center relative")}"><div part="navigation" class="${c("carousel__navigation flex items-center justify-center")}"><button part="navigation-button navigation-button--previous" id="carousel__navigation-button--previous" ?disabled="${!n}" class="${c("!mr-6 !rounded-sm sd-interactive",!n&&"sd-interactive--disabled",this.inverted?"sd-interactive--inverted":"sd-interactive--reset")}" aria-label="${this.localize.term("previousSlide")}" aria-controls="scroll-container" aria-disabled="${n?"false":"true"}" @click="${n?u=>{this.previous(),this.unblockAutoplay(u,this.previousButton)}:null}"><slot name="previous-icon"><sd-icon class="${c("h-6 w-6 rotate-90 grid place-items-center")}" library="system" name="${h?"chevron-down":"chevron-up"}"></sd-icon></slot></button> ${this.variant==="dot"?p`<div part="pagination-dot" role="tablist" class="${c("carousel__pagination dot flex wrap items-center gap-2")}" aria-controls="scroll-container">${Os(Ms(r),u=>{let f=u+1===a;return p`<button part="pagination-item ${f?"pagination-item--active":""}" class="${c("carousel__pagination-item","block cursor-pointer bg-none border-0 rounded-full",f?"bg-accent":"",this.inverted?"focus-within:focus-outline-inverted":"focus-within:focus-outline")}" role="tab" tabindex="0" aria-selected="${f?"true":"false"}" aria-label="${this.localize.term("goToSlide",u+1,r)}" @click="${b=>{this.goToSlide(u*e),this.unblockAutoplay(b,this.paginationItems[u])}}" @keydown="${this.handleKeyDown}"><span class="${c("h-4 w-4 block border hover:border-primary-500 rounded-full",this.inverted?"border-white hover:border-primary-500":"border-primary",f&&"bg-accent border-none",f?this.inverted?"hover:bg-accent-300":"hover:bg-accent-550":"")}"></span></button>`})}</div>`:p`<span part="pagination-number" class="carousel__pagination number flex gap-0.5 cursor-default select-none" aria-controls="scroll-container"><span part="pagination-item" class="${c("w-5 text-center border-b-2 border-accent",this.inverted?"text-white":"text-black")}">${a}</span> <span part="pagination-divider" class="${c("scale-y-[1.5]","text-center",this.inverted?"text-white":"text-black")}">/</span> <span part="pagination-item" class="${c("w-5 text-center",this.inverted?"text-white":"text-black")}">${r}</span></span>`} <button part="navigation-button navigation-button--next" id="carousel__navigation-button--next" ?disabled="${!d}" class="${c("!ml-6 !rounded-sm sd-interactive ",!d&&"sd-interactive--disabled",this.inverted?"sd-interactive--inverted":"sd-interactive--reset")}" aria-label="${this.localize.term("nextSlide")}" aria-controls="scroll-container" aria-disabled="${d?"false":"true"}" @click="${d?u=>{this.next(),this.unblockAutoplay(u,this.nextButton)}:null}"><slot name="next-icon"><sd-icon class="${c("h-6 w-6 rotate-90 grid place-items-center")}" library="system" name="${h?"chevron-up":"chevron-down"}"></sd-icon></slot></button></div><button class="${c("ml-6 !rounded-sm","!absolute !right-0 sd-interactive",this.inverted?"sd-interactive--inverted":"sd-interactive--reset",!this.autoplay&&"!hidden")}" part="autoplay-controls" aria-label="${this.localize.term("autoplay")}" aria-pressed="true" @click="${u=>{this.pausedAutoplay=!this.pausedAutoplay,u.detail&&this.autoplayControls.blur()}}"><slot name="autoplay-start" class="${c(this.pausedAutoplay?"":"hidden")}"><sd-icon class="h-6 w-6 grid place-items-center" library="system" name="start"></sd-icon></slot><slot name="autoplay-pause" class="${c(this.pausedAutoplay?"hidden":"")}"><sd-icon class="h-6 w-6 grid place-items-center" library="system" name="pause"></sd-icon></slot></button></div></div>`}};N.styles=[...m.styles,v`:host{--slide-gap:var(--sl-spacing-medium,1rem);--scroll-hint:0px;display:flex}.carousel{grid-template-areas:". slides ." ". pagination ."}.carousel__pagination{grid-area:pagination}.carousel__slides{grid-area:slides;scrollbar-width:none;--slide-size:calc((100% - (var(--slides-per-page) - 1)*var(--slide-gap))/var(--slides-per-page));-moz-column-gap:var(--slide-gap);column-gap:var(--slide-gap);grid-auto-columns:var(--slide-size);padding-inline:var(--scroll-hint);scroll-padding-inline:var(--scroll-hint)}.carousel__slides::-webkit-scrollbar{display:none}@media (prefers-reduced-motion){:where(.carousel__slides){scroll-behavior:auto}}.carousel__navigation{grid-area:navigation}sd-button::part(label){align-items:center;display:flex;flex:1 1 auto;pointer-events:none}`],o([g('[part~="autoplay-controls"]')],N.prototype,"autoplayControls",2),o([g('[part~="navigation-button--previous"]')],N.prototype,"previousButton",2),o([g('[part~="navigation-button--next"]')],N.prototype,"nextButton",2),o([bs('[part~="pagination-item"]')],N.prototype,"paginationItems",2),o([l({type:String,reflect:!0})],N.prototype,"variant",2),o([l({type:Boolean,reflect:!0})],N.prototype,"inverted",2),o([l({type:Boolean,reflect:!0})],N.prototype,"loop",2),o([l({type:Boolean,reflect:!0})],N.prototype,"autoplay",2),o([l({type:Number,attribute:"slides-per-page"})],N.prototype,"slidesPerPage",2),o([l({type:Number,attribute:"slides-per-move"})],N.prototype,"slidesPerMove",2),o([g("slot:not([name])")],N.prototype,"defaultSlot",2),o([g(".carousel__slides")],N.prototype,"scrollContainer",2),o([g(".carousel__pagination")],N.prototype,"paginationContainer",2),o([C()],N.prototype,"activeSlide",2),o([C()],N.prototype,"currentPage",2),o([C()],N.prototype,"pausedAutoplay",2),o([w("pausedAutoplay")],N.prototype,"handlePausedAutoplay",1),o([w("loop",{waitUntilFirstUpdate:!0}),w("slidesPerPage",{waitUntilFirstUpdate:!0})],N.prototype,"initializeSlides",1),o([w("activeSlide")],N.prototype,"handleSlideChange",1),o([w("slidesPerMove")],N.prototype,"handleSlidesPerMoveChange",1),o([w("autoplay")],N.prototype,"handleAutoplayChange",1),N=o([y("sd-carousel")],N);var Ht=(s="value")=>(i,t)=>{let e=i.constructor,r=e.prototype.attributeChangedCallback;e.prototype.attributeChangedCallback=function(a,n,d){var f;let h=e.getPropertyOptions(s),u=typeof h.attribute=="string"?h.attribute:s;if(a===u){let b=h.converter||we,x=(typeof b=="function"?b:(f=b==null?void 0:b.fromAttribute)!=null?f:we.fromAttribute)(d,h.type);this[s]!==x&&(this[t]=x)}r.call(this,a,n,d)}};var{I:c0}=ss;var Ri=s=>s.strings===void 0;var Pn={},_s=(s,i=Pn)=>s._$AH=i;var he=de(class extends ke{constructor(s){if(super(s),s.type!==Ot.PROPERTY&&s.type!==Ot.ATTRIBUTE&&s.type!==Ot.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!Ri(s))throw Error("`live` bindings can only contain a single expression")}render(s){return s}update(s,[i]){if(i===vt||i===Y)return i;let t=s.element,e=s.name;if(s.type===Ot.PROPERTY){if(i===t[e])return vt}else if(s.type===Ot.BOOLEAN_ATTRIBUTE){if(!!i===t.hasAttribute(e))return vt}else if(s.type===Ot.ATTRIBUTE&&t.getAttribute(e)===i+"")return vt;return _s(s),i}});var Q=class extends m{constructor(){super(...arguments);this.formControlController=new pt(this,{value:t=>t.checked?t.value||"on":void 0,defaultValue:t=>t.defaultChecked,setValue:(t,e)=>t.checked=e});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(t){if(this.visuallyDisabled){t.preventDefault(),t.stopPropagation();return}this.checked=!this.checked,this.indeterminate=!1,this.emit("sd-change")}handleBlur(){this.emit("sd-blur")}handleInput(){this.emit("sd-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}handleFocus(){this.emit("sd-focus")}handleDisabledChange(){let t=this.disabled||this.visuallyDisabled;this.setAttribute("aria-disabled",t?"true":"false"),this.formControlController.setValidity(t)}handleStateChange(){this.input.checked=this.checked,this.input.indeterminate=this.indeterminate,this.formControlController.updateValidity()}click(){this.input.click()}focus(t){this.input.focus(t)}blur(){this.input.blur()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){let t=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 p`<label part="base" class="${c("sd-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="${E(this.value)}" .indeterminate="${he(this.indeterminate)}" .checked="${he(this.checked)}" .disabled="${this.disabled}" .required="${this.required}" aria-checked="${this.checked?"true":"false"}" 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="${c("relative flex flex-shrink-0 items-center justify-center border rounded-sm h-4 w-4",this.visuallyDisabled?"":"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"}[t])}">${this.checked?p`<sd-icon part="checked-icon" class="text-white w-3 h-3" library="system" name="status-check"></sd-icon>`:""} ${!this.checked&&this.indeterminate?p`<sd-icon part="indeterminate-icon" class="text-white w-3 h-3" library="system" name="status-minus"></sd-icon>`:""} </span><span part="label" id="label" class="${c("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()}`}};Q.styles=[...m.styles,v`:host{display:block;width:-moz-max-content;width:max-content}:host(:focus-visible){outline-width:0}:host([required]) #label:after{content:" *"}`],o([g('input[type="checkbox"]')],Q.prototype,"input",2),o([g("#invalid-message")],Q.prototype,"invalidMessage",2),o([l()],Q.prototype,"title",2),o([l()],Q.prototype,"name",2),o([l()],Q.prototype,"value",2),o([l({reflect:!0})],Q.prototype,"size",2),o([l({type:Boolean,reflect:!0})],Q.prototype,"disabled",2),o([l({type:Boolean,reflect:!0,attribute:"visually-disabled"})],Q.prototype,"visuallyDisabled",2),o([l({type:Boolean,reflect:!0})],Q.prototype,"checked",2),o([l({type:Boolean,reflect:!0})],Q.prototype,"indeterminate",2),o([Ht("checked")],Q.prototype,"defaultChecked",2),o([l({reflect:!0})],Q.prototype,"form",2),o([l({type:Boolean,reflect:!0})],Q.prototype,"required",2),o([C()],Q.prototype,"showInvalidStyle",2),o([w(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],Q.prototype,"handleDisabledChange",1),o([w(["checked","indeterminate"],{waitUntilFirstUpdate:!0})],Q.prototype,"handleStateChange",1),Q=o([y("sd-checkbox")],Q);var $t=class extends m{constructor(){super(...arguments);this.hasSlotController=new D(this,"label","help-text");this.size="lg";this.orientation="vertical";this.label="";this.helpText=""}getAllCheckboxes(){return[...this.querySelectorAll("sd-checkbox")]}async syncCheckboxElements(){let t=this.getAllCheckboxes();await Promise.all(t.map(async e=>{await e.updateComplete,e.size=this.size}))}syncCheckboxes(){customElements.get("sd-checkbox")?this.syncCheckboxElements():customElements.whenDefined("sd-checkbox").then(()=>this.syncCheckboxes())}handleSizeChange(){this.syncCheckboxes()}handleInvalid(){this.syncCheckboxes()}render(){let t=this.hasSlotController.test("label"),e=this.label?!0:t,r=this.hasSlotController.test("help-text"),a=this.helpText?!0:r,n=p`<slot @slotchange="${this.syncCheckboxes}"></slot>`,d=this.hasSlotController.test("tooltip");return p`<fieldset part="form-control" class="${c("border-0 p-0 m-0",{sm:"text-sm",md:"text-base",lg:"text-base"}[this.size])}" role="group" aria-labelledby="label">${e||d?p`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${c("p-0 font-bold leading-normal text-black",e?"flex":"hidden")}" aria-hidden="${e?"false":"true"}"><slot name="label">${this.label}</slot></label> ${d?p`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${c({vertical:"flex flex-col",horizontal:"flex flex-row"}[this.orientation])}">${n}</div></fieldset><slot name="help-text" part="form-control-help-text" id="help-text" class="${c("text-sm text-neutral-700 mt-2",a?"block":"hidden")}" aria-hidden="${!a}">${this.helpText}</slot>`}};$t.styles=[...m.styles,v`:host{display:block}:host([orientation=vertical]) ::slotted(sd-checkbox){display:flex;margin-bottom:var(--sd-spacing-2,.5rem)}:host([orientation=vertical]) ::slotted(sd-checkbox:last-of-type){margin-bottom:var(--sd-spacing-0,0)}:host([orientation=horizontal]) ::slotted(sd-checkbox){margin-right:var(--sd-spacing-6,1.5rem)}:host([orientation=horizontal]) ::slotted(sd-checkbox:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-checkbox){margin-right:var(--sd-spacing-4,1rem)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-checkbox:last-of-type){margin-right:var(--sd-spacing-0,0)}`],o([l({reflect:!0})],$t.prototype,"size",2),o([l({reflect:!0})],$t.prototype,"orientation",2),o([l()],$t.prototype,"label",2),o([l({attribute:"help-text"})],$t.prototype,"helpText",2),o([w("size",{waitUntilFirstUpdate:!0})],$t.prototype,"handleSizeChange",1),o([w("invalid",{waitUntilFirstUpdate:!0})],$t.prototype,"handleInvalid",1),$t=o([y("sd-checkbox-group")],$t);var Ss=s=>s;var $r=s=>Array.from(s.assignedElements({flatten:!0})),Fn=s=>s.tagName.toLocaleLowerCase()==="sd-option"?s:Array.from(s.querySelectorAll(":scope > sd-option")),Bn=s=>s.tagName.toLocaleLowerCase()==="sd-optgroup",Hs=s=>s.map(Fn),Is=s=>s.filter(Bn),Ui=s=>s.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase();function Ps(s,i){return{top:Math.round(s.getBoundingClientRect().top-i.getBoundingClientRect().top),left:Math.round(s.getBoundingClientRect().left-i.getBoundingClientRect().left)}}var Tr=new Set;function Vn(){let s=document.documentElement.clientWidth;return Math.abs(window.innerWidth-s)}function De(s){if(Tr.add(s),!document.body.classList.contains("sd-scroll-lock")){let i=Vn();document.body.classList.add("sd-scroll-lock"),document.body.style.setProperty("--sd-scroll-lock-size",`${i}px`)}}function _e(s){Tr.delete(s),Tr.size===0&&(document.body.classList.remove("sd-scroll-lock"),document.body.style.removeProperty("--sd-scrollbar-width"))}function qt(s,i,t="vertical",e="smooth"){let r=Ps(s,i),a=r.top+i.scrollTop,n=r.left+i.scrollLeft,d=i.scrollLeft,h=i.scrollLeft+i.offsetWidth,u=i.scrollTop,f=i.scrollTop+i.offsetHeight;(t==="horizontal"||t==="both")&&(n<d?i.scrollTo({left:n,behavior:e}):n+s.clientWidth>h&&i.scrollTo({left:n-i.offsetWidth+s.clientWidth,behavior:e})),(t==="vertical"||t==="both")&&(a<u?i.scrollTo({top:a,behavior:e}):a+s.clientHeight>f&&i.scrollTo({top:a-i.offsetHeight+s.clientHeight,behavior:e}))}var ie=Math.min,xt=Math.max,ui=Math.round,mi=Math.floor,Kt=s=>({x:s,y:s}),Rn={left:"right",right:"left",bottom:"top",top:"bottom"},Un={start:"end",end:"start"};function qi(s,i,t){return xt(s,ie(i,t))}function Se(s,i){return typeof s=="function"?s(i):s}function pe(s){return s.split("-")[0]}function He(s){return s.split("-")[1]}function Lr(s){return s==="x"?"y":"x"}function Ki(s){return s==="y"?"height":"width"}function Ce(s){return["top","bottom"].includes(pe(s))?"y":"x"}function ji(s){return Lr(Ce(s))}function Fs(s,i,t){t===void 0&&(t=!1);let e=He(s),r=ji(s),a=Ki(r),n=r==="x"?e===(t?"end":"start")?"right":"left":e==="start"?"bottom":"top";return i.reference[a]>i.floating[a]&&(n=pi(n)),[n,pi(n)]}function Bs(s){let i=pi(s);return[Ni(s),i,Ni(i)]}function Ni(s){return s.replace(/start|end/g,i=>Un[i])}function Nn(s,i,t){let e=["left","right"],r=["right","left"],a=["top","bottom"],n=["bottom","top"];switch(s){case"top":case"bottom":return t?i?r:e:i?e:r;case"left":case"right":return i?a:n;default:return[]}}function Vs(s,i,t,e){let r=He(s),a=Nn(pe(s),t==="start",e);return r&&(a=a.map(n=>n+"-"+r),i&&(a=a.concat(a.map(Ni)))),a}function pi(s){return s.replace(/left|right|bottom|top/g,i=>Rn[i])}function qn(s){return M({top:0,right:0,bottom:0,left:0},s)}function zr(s){return typeof s!="number"?qn(s):{top:s,right:s,bottom:s,left:s}}function Ie(s){let{x:i,y:t,width:e,height:r}=s;return{width:e,height:r,top:t,left:i,right:i+e,bottom:t+r,x:i,y:t}}function Rs(s,i,t){let{reference:e,floating:r}=s,a=Ce(i),n=ji(i),d=Ki(n),h=pe(i),u=a==="y",f=e.x+e.width/2-r.width/2,b=e.y+e.height/2-r.height/2,k=e[d]/2-r[d]/2,x;switch(h){case"top":x={x:f,y:e.y-r.height};break;case"bottom":x={x:f,y:e.y+e.height};break;case"right":x={x:e.x+e.width,y:b};break;case"left":x={x:e.x-r.width,y:b};break;default:x={x:e.x,y:e.y}}switch(He(i)){case"start":x[n]-=k*(t&&u?-1:1);break;case"end":x[n]+=k*(t&&u?-1:1);break}return x}var Us=async(s,i,t)=>{let{placement:e="bottom",strategy:r="absolute",middleware:a=[],platform:n}=t,d=a.filter(Boolean),h=await(n.isRTL==null?void 0:n.isRTL(i)),u=await n.getElementRects({reference:s,floating:i,strategy:r}),{x:f,y:b}=Rs(u,e,h),k=e,x={},$=0;for(let z=0;z<d.length;z++){let{name:I,fn:_}=d[z],{x:q,y:K,data:tt,reset:et}=await _({x:f,y:b,initialPlacement:e,placement:k,strategy:r,middlewareData:x,rects:u,platform:n,elements:{reference:s,floating:i}});f=q!=null?q:f,b=K!=null?K:b,x=rt(M({},x),{[I]:M(M({},x[I]),tt)}),et&&$<=50&&($++,typeof et=="object"&&(et.placement&&(k=et.placement),et.rects&&(u=et.rects===!0?await n.getElementRects({reference:s,floating:i,strategy:r}):et.rects),{x:f,y:b}=Rs(u,k,h)),z=-1)}return{x:f,y:b,placement:k,strategy:r,middlewareData:x}};async function Yi(s,i){var t;i===void 0&&(i={});let{x:e,y:r,platform:a,rects:n,elements:d,strategy:h}=s,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:b="floating",altBoundary:k=!1,padding:x=0}=Se(i,s),$=zr(x),I=d[k?b==="floating"?"reference":"floating":b],_=Ie(await a.getClippingRect({element:(t=await(a.isElement==null?void 0:a.isElement(I)))==null||t?I:I.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(d.floating)),boundary:u,rootBoundary:f,strategy:h})),q=b==="floating"?{x:e,y:r,width:n.floating.width,height:n.floating.height}:n.reference,K=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d.floating)),tt=await(a.isElement==null?void 0:a.isElement(K))?await(a.getScale==null?void 0:a.getScale(K))||{x:1,y:1}:{x:1,y:1},et=Ie(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:q,offsetParent:K,strategy:h}):q);return{top:(_.top-et.top+$.top)/tt.y,bottom:(et.bottom-_.bottom+$.bottom)/tt.y,left:(_.left-et.left+$.left)/tt.x,right:(et.right-_.right+$.right)/tt.x}}var Ns=s=>({name:"arrow",options:s,async fn(i){let{x:t,y:e,placement:r,rects:a,platform:n,elements:d,middlewareData:h}=i,{element:u,padding:f=0}=Se(s,i)||{};if(u==null)return{};let b=zr(f),k={x:t,y:e},x=ji(r),$=Ki(x),z=await n.getDimensions(u),I=x==="y",_=I?"top":"left",q=I?"bottom":"right",K=I?"clientHeight":"clientWidth",tt=a.reference[$]+a.reference[x]-k[x]-a.floating[$],et=k[x]-a.reference[x],Vt=await(n.getOffsetParent==null?void 0:n.getOffsetParent(u)),gt=Vt?Vt[K]:0;(!gt||!await(n.isElement==null?void 0:n.isElement(Vt)))&&(gt=d.floating[K]||a.floating[$]);let oe=tt/2-et/2,Qt=gt/2-z[$]/2-1,Rt=ie(b[_],Qt),fe=ie(b[q],Qt),Jt=Rt,be=gt-z[$]-fe,At=gt/2-z[$]/2+oe,Ut=qi(Jt,At,be),Re=!h.arrow&&He(r)!=null&&At!==Ut&&a.reference[$]/2-(At<Jt?Rt:fe)-z[$]/2<0,ae=Re?At<Jt?At-Jt:At-be:0;return{[x]:k[x]+ae,data:M({[x]:Ut,centerOffset:At-Ut-ae},Re&&{alignmentOffset:ae}),reset:Re}}});var qs=function(s){return s===void 0&&(s={}),{name:"flip",options:s,async fn(i){var t,e;let{placement:r,middlewareData:a,rects:n,initialPlacement:d,platform:h,elements:u}=i,At=Se(s,i),{mainAxis:f=!0,crossAxis:b=!0,fallbackPlacements:k,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:$="none",flipAlignment:z=!0}=At,I=xi(At,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((t=a.arrow)!=null&&t.alignmentOffset)return{};let _=pe(r),q=Ce(d),K=pe(d)===d,tt=await(h.isRTL==null?void 0:h.isRTL(u.floating)),et=k||(K||!z?[pi(d)]:Bs(d)),Vt=$!=="none";!k&&Vt&&et.push(...Vs(d,z,$,tt));let gt=[d,...et],oe=await Yi(i,I),Qt=[],Rt=((e=a.flip)==null?void 0:e.overflows)||[];if(f&&Qt.push(oe[_]),b){let Ut=Fs(r,n,tt);Qt.push(oe[Ut[0]],oe[Ut[1]])}if(Rt=[...Rt,{placement:r,overflows:Qt}],!Qt.every(Ut=>Ut<=0)){var fe,Jt;let Ut=(((fe=a.flip)==null?void 0:fe.index)||0)+1,Re=gt[Ut];if(Re)return{data:{index:Ut,overflows:Rt},reset:{placement:Re}};let ae=(Jt=Rt.filter(Ue=>Ue.overflows[0]<=0).sort((Ue,ge)=>Ue.overflows[1]-ge.overflows[1])[0])==null?void 0:Jt.placement;if(!ae)switch(x){case"bestFit":{var be;let Ue=(be=Rt.filter(ge=>{if(Vt){let ve=Ce(ge.placement);return ve===q||ve==="y"}return!0}).map(ge=>[ge.placement,ge.overflows.filter(ve=>ve>0).reduce((ve,yo)=>ve+yo,0)]).sort((ge,ve)=>ge[1]-ve[1])[0])==null?void 0:be[0];Ue&&(ae=Ue);break}case"initialPlacement":ae=d;break}if(r!==ae)return{reset:{placement:ae}}}return{}}}};async function Kn(s,i){let{placement:t,platform:e,elements:r}=s,a=await(e.isRTL==null?void 0:e.isRTL(r.floating)),n=pe(t),d=He(t),h=Ce(t)==="y",u=["left","top"].includes(n)?-1:1,f=a&&h?-1:1,b=Se(i,s),{mainAxis:k,crossAxis:x,alignmentAxis:$}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return d&&typeof $=="number"&&(x=d==="end"?$*-1:$),h?{x:x*f,y:k*u}:{x:k*u,y:x*f}}var Ks=function(s){return s===void 0&&(s=0),{name:"offset",options:s,async fn(i){var t,e;let{x:r,y:a,placement:n,middlewareData:d}=i,h=await Kn(i,s);return n===((t=d.offset)==null?void 0:t.placement)&&(e=d.arrow)!=null&&e.alignmentOffset?{}:{x:r+h.x,y:a+h.y,data:rt(M({},h),{placement:n})}}}},js=function(s){return s===void 0&&(s={}),{name:"shift",options:s,async fn(i){let{x:t,y:e,placement:r}=i,I=Se(s,i),{mainAxis:a=!0,crossAxis:n=!1,limiter:d={fn:_=>{let{x:q,y:K}=_;return{x:q,y:K}}}}=I,h=xi(I,["mainAxis","crossAxis","limiter"]),u={x:t,y:e},f=await Yi(i,h),b=Ce(pe(r)),k=Lr(b),x=u[k],$=u[b];if(a){let _=k==="y"?"top":"left",q=k==="y"?"bottom":"right",K=x+f[_],tt=x-f[q];x=qi(K,x,tt)}if(n){let _=b==="y"?"top":"left",q=b==="y"?"bottom":"right",K=$+f[_],tt=$-f[q];$=qi(K,$,tt)}let z=d.fn(rt(M({},i),{[k]:x,[b]:$}));return rt(M({},z),{data:{x:z.x-t,y:z.y-e,enabled:{[k]:a,[b]:n}}})}}};var Ys=function(s){return s===void 0&&(s={}),{name:"size",options:s,async fn(i){var t,e;let{placement:r,rects:a,platform:n,elements:d}=i,Rt=Se(s,i),{apply:h=()=>{}}=Rt,u=xi(Rt,["apply"]),f=await Yi(i,u),b=pe(r),k=He(r),x=Ce(r)==="y",{width:$,height:z}=a.floating,I,_;b==="top"||b==="bottom"?(I=b,_=k===(await(n.isRTL==null?void 0:n.isRTL(d.floating))?"start":"end")?"left":"right"):(_=b,I=k==="end"?"top":"bottom");let q=z-f.top-f.bottom,K=$-f.left-f.right,tt=ie(z-f[I],q),et=ie($-f[_],K),Vt=!i.middlewareData.shift,gt=tt,oe=et;if((t=i.middlewareData.shift)!=null&&t.enabled.x&&(oe=K),(e=i.middlewareData.shift)!=null&&e.enabled.y&&(gt=q),Vt&&!k){let fe=xt(f.left,0),Jt=xt(f.right,0),be=xt(f.top,0),At=xt(f.bottom,0);x?oe=$-2*(fe!==0||Jt!==0?fe+Jt:xt(f.left,f.right)):gt=z-2*(be!==0||At!==0?be+At:xt(f.top,f.bottom))}await h(rt(M({},i),{availableWidth:oe,availableHeight:gt}));let Qt=await n.getDimensions(d.floating);return $!==Qt.width||z!==Qt.height?{reset:{rects:!0}}:{}}}};function Zi(){return typeof window!="undefined"}function Pe(s){return Xs(s)?(s.nodeName||"").toLowerCase():"#document"}function Tt(s){var i;return(s==null||(i=s.ownerDocument)==null?void 0:i.defaultView)||window}function jt(s){var i;return(i=(Xs(s)?s.ownerDocument:s.document)||window.document)==null?void 0:i.documentElement}function Xs(s){return Zi()?s instanceof Node||s instanceof Tt(s).Node:!1}function It(s){return Zi()?s instanceof Element||s instanceof Tt(s).Element:!1}function Yt(s){return Zi()?s instanceof HTMLElement||s instanceof Tt(s).HTMLElement:!1}function Zs(s){return!Zi()||typeof ShadowRoot=="undefined"?!1:s instanceof ShadowRoot||s instanceof Tt(s).ShadowRoot}function Xe(s){let{overflow:i,overflowX:t,overflowY:e,display:r}=Pt(s);return/auto|scroll|overlay|hidden|clip/.test(i+e+t)&&!["inline","contents"].includes(r)}function Ws(s){return["table","td","th"].includes(Pe(s))}function fi(s){return[":popover-open",":modal"].some(i=>{try{return s.matches(i)}catch(t){return!1}})}function Xi(s){let i=Wi(),t=It(s)?Pt(s):s;return["transform","translate","scale","rotate","perspective"].some(e=>t[e]?t[e]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!i&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!i&&(t.filter?t.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(e=>(t.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(t.contain||"").includes(e))}function Qs(s){let i=ue(s);for(;Yt(i)&&!Fe(i);){if(Xi(i))return i;if(fi(i))return null;i=ue(i)}return null}function Wi(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Fe(s){return["html","body","#document"].includes(Pe(s))}function Pt(s){return Tt(s).getComputedStyle(s)}function bi(s){return It(s)?{scrollLeft:s.scrollLeft,scrollTop:s.scrollTop}:{scrollLeft:s.scrollX,scrollTop:s.scrollY}}function ue(s){if(Pe(s)==="html")return s;let i=s.assignedSlot||s.parentNode||Zs(s)&&s.host||jt(s);return Zs(i)?i.host:i}function Js(s){let i=ue(s);return Fe(i)?s.ownerDocument?s.ownerDocument.body:s.body:Yt(i)&&Xe(i)?i:Js(i)}function Ze(s,i,t){var e;i===void 0&&(i=[]),t===void 0&&(t=!0);let r=Js(s),a=r===((e=s.ownerDocument)==null?void 0:e.body),n=Tt(r);if(a){let d=Qi(n);return i.concat(n,n.visualViewport||[],Xe(r)?r:[],d&&t?Ze(d):[])}return i.concat(r,Ze(r,[],t))}function Qi(s){return s.parent&&Object.getPrototypeOf(s.parent)?s.frameElement:null}function eo(s){let i=Pt(s),t=parseFloat(i.width)||0,e=parseFloat(i.height)||0,r=Yt(s),a=r?s.offsetWidth:t,n=r?s.offsetHeight:e,d=ui(t)!==a||ui(e)!==n;return d&&(t=a,e=n),{width:t,height:e,$:d}}function Or(s){return It(s)?s:s.contextElement}function We(s){let i=Or(s);if(!Yt(i))return Kt(1);let t=i.getBoundingClientRect(),{width:e,height:r,$:a}=eo(i),n=(a?ui(t.width):t.width)/e,d=(a?ui(t.height):t.height)/r;return(!n||!Number.isFinite(n))&&(n=1),(!d||!Number.isFinite(d))&&(d=1),{x:n,y:d}}var jn=Kt(0);function io(s){let i=Tt(s);return!Wi()||!i.visualViewport?jn:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function Yn(s,i,t){return i===void 0&&(i=!1),!t||i&&t!==Tt(s)?!1:i}function Be(s,i,t,e){i===void 0&&(i=!1),t===void 0&&(t=!1);let r=s.getBoundingClientRect(),a=Or(s),n=Kt(1);i&&(e?It(e)&&(n=We(e)):n=We(s));let d=Yn(a,t,e)?io(a):Kt(0),h=(r.left+d.x)/n.x,u=(r.top+d.y)/n.y,f=r.width/n.x,b=r.height/n.y;if(a){let k=Tt(a),x=e&&It(e)?Tt(e):e,$=k,z=Qi($);for(;z&&e&&x!==$;){let I=We(z),_=z.getBoundingClientRect(),q=Pt(z),K=_.left+(z.clientLeft+parseFloat(q.paddingLeft))*I.x,tt=_.top+(z.clientTop+parseFloat(q.paddingTop))*I.y;h*=I.x,u*=I.y,f*=I.x,b*=I.y,h+=K,u+=tt,$=Tt(z),z=Qi($)}}return Ie({width:f,height:b,x:h,y:u})}function Mr(s,i){let t=bi(s).scrollLeft;return i?i.left+t:Be(jt(s)).left+t}function ro(s,i,t){t===void 0&&(t=!1);let e=s.getBoundingClientRect(),r=e.left+i.scrollLeft-(t?0:Mr(s,e)),a=e.top+i.scrollTop;return{x:r,y:a}}function Zn(s){let{elements:i,rect:t,offsetParent:e,strategy:r}=s,a=r==="fixed",n=jt(e),d=i?fi(i.floating):!1;if(e===n||d&&a)return t;let h={scrollLeft:0,scrollTop:0},u=Kt(1),f=Kt(0),b=Yt(e);if((b||!b&&!a)&&((Pe(e)!=="body"||Xe(n))&&(h=bi(e)),Yt(e))){let x=Be(e);u=We(e),f.x=x.x+e.clientLeft,f.y=x.y+e.clientTop}let k=n&&!b&&!a?ro(n,h,!0):Kt(0);return{width:t.width*u.x,height:t.height*u.y,x:t.x*u.x-h.scrollLeft*u.x+f.x+k.x,y:t.y*u.y-h.scrollTop*u.y+f.y+k.y}}function Xn(s){return Array.from(s.getClientRects())}function Wn(s){let i=jt(s),t=bi(s),e=s.ownerDocument.body,r=xt(i.scrollWidth,i.clientWidth,e.scrollWidth,e.clientWidth),a=xt(i.scrollHeight,i.clientHeight,e.scrollHeight,e.clientHeight),n=-t.scrollLeft+Mr(s),d=-t.scrollTop;return Pt(e).direction==="rtl"&&(n+=xt(i.clientWidth,e.clientWidth)-r),{width:r,height:a,x:n,y:d}}function Qn(s,i){let t=Tt(s),e=jt(s),r=t.visualViewport,a=e.clientWidth,n=e.clientHeight,d=0,h=0;if(r){a=r.width,n=r.height;let u=Wi();(!u||u&&i==="fixed")&&(d=r.offsetLeft,h=r.offsetTop)}return{width:a,height:n,x:d,y:h}}function Jn(s,i){let t=Be(s,!0,i==="fixed"),e=t.top+s.clientTop,r=t.left+s.clientLeft,a=Yt(s)?We(s):Kt(1),n=s.clientWidth*a.x,d=s.clientHeight*a.y,h=r*a.x,u=e*a.y;return{width:n,height:d,x:h,y:u}}function Gs(s,i,t){let e;if(i==="viewport")e=Qn(s,t);else if(i==="document")e=Wn(jt(s));else if(It(i))e=Jn(i,t);else{let r=io(s);e={x:i.x-r.x,y:i.y-r.y,width:i.width,height:i.height}}return Ie(e)}function so(s,i){let t=ue(s);return t===i||!It(t)||Fe(t)?!1:Pt(t).position==="fixed"||so(t,i)}function Gn(s,i){let t=i.get(s);if(t)return t;let e=Ze(s,[],!1).filter(d=>It(d)&&Pe(d)!=="body"),r=null,a=Pt(s).position==="fixed",n=a?ue(s):s;for(;It(n)&&!Fe(n);){let d=Pt(n),h=Xi(n);!h&&d.position==="fixed"&&(r=null),(a?!h&&!r:!h&&d.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||Xe(n)&&!h&&so(s,n))?e=e.filter(f=>f!==n):r=d,n=ue(n)}return i.set(s,e),e}function tl(s){let{element:i,boundary:t,rootBoundary:e,strategy:r}=s,n=[...t==="clippingAncestors"?fi(i)?[]:Gn(i,this._c):[].concat(t),e],d=n[0],h=n.reduce((u,f)=>{let b=Gs(i,f,r);return u.top=xt(b.top,u.top),u.right=ie(b.right,u.right),u.bottom=ie(b.bottom,u.bottom),u.left=xt(b.left,u.left),u},Gs(i,d,r));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function el(s){let{width:i,height:t}=eo(s);return{width:i,height:t}}function il(s,i,t){let e=Yt(i),r=jt(i),a=t==="fixed",n=Be(s,!0,a,i),d={scrollLeft:0,scrollTop:0},h=Kt(0);if(e||!e&&!a)if((Pe(i)!=="body"||Xe(r))&&(d=bi(i)),e){let k=Be(i,!0,a,i);h.x=k.x+i.clientLeft,h.y=k.y+i.clientTop}else r&&(h.x=Mr(r));let u=r&&!e&&!a?ro(r,d):Kt(0),f=n.left+d.scrollLeft-h.x-u.x,b=n.top+d.scrollTop-h.y-u.y;return{x:f,y:b,width:n.width,height:n.height}}function Ar(s){return Pt(s).position==="static"}function to(s,i){if(!Yt(s)||Pt(s).position==="fixed")return null;if(i)return i(s);let t=s.offsetParent;return jt(s)===t&&(t=t.ownerDocument.body),t}function oo(s,i){let t=Tt(s);if(fi(s))return t;if(!Yt(s)){let r=ue(s);for(;r&&!Fe(r);){if(It(r)&&!Ar(r))return r;r=ue(r)}return t}let e=to(s,i);for(;e&&Ws(e)&&Ar(e);)e=to(e,i);return e&&Fe(e)&&Ar(e)&&!Xi(e)?t:e||Qs(s)||t}var rl=async function(s){let i=this.getOffsetParent||oo,t=this.getDimensions,e=await t(s.floating);return{reference:il(s.reference,await i(s.floating),s.strategy),floating:{x:0,y:0,width:e.width,height:e.height}}};function sl(s){return Pt(s).direction==="rtl"}var ol={convertOffsetParentRelativeRectToViewportRelativeRect:Zn,getDocumentElement:jt,getClippingRect:tl,getOffsetParent:oo,getElementRects:rl,getClientRects:Xn,getDimensions:el,getScale:We,isElement:It,isRTL:sl};function ao(s,i){return s.x===i.x&&s.y===i.y&&s.width===i.width&&s.height===i.height}function al(s,i){let t=null,e,r=jt(s);function a(){var d;clearTimeout(e),(d=t)==null||d.disconnect(),t=null}function n(d,h){d===void 0&&(d=!1),h===void 0&&(h=1),a();let u=s.getBoundingClientRect(),{left:f,top:b,width:k,height:x}=u;if(d||i(),!k||!x)return;let $=mi(b),z=mi(r.clientWidth-(f+k)),I=mi(r.clientHeight-(b+x)),_=mi(f),K={rootMargin:-$+"px "+-z+"px "+-I+"px "+-_+"px",threshold:xt(0,ie(1,h))||1},tt=!0;function et(Vt){let gt=Vt[0].intersectionRatio;if(gt!==h){if(!tt)return n();gt?n(!1,gt):e=setTimeout(()=>{n(!1,1e-7)},1e3)}gt===1&&!ao(u,s.getBoundingClientRect())&&n(),tt=!1}try{t=new IntersectionObserver(et,rt(M({},K),{root:r.ownerDocument}))}catch(Vt){t=new IntersectionObserver(et,K)}t.observe(s)}return n(!0),a}function no(s,i,t,e){e===void 0&&(e={});let{ancestorScroll:r=!0,ancestorResize:a=!0,elementResize:n=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:h=!1}=e,u=Or(s),f=r||a?[...u?Ze(u):[],...Ze(i)]:[];f.forEach(_=>{r&&_.addEventListener("scroll",t,{passive:!0}),a&&_.addEventListener("resize",t)});let b=u&&d?al(u,t):null,k=-1,x=null;n&&(x=new ResizeObserver(_=>{let[q]=_;q&&q.target===u&&x&&(x.unobserve(i),cancelAnimationFrame(k),k=requestAnimationFrame(()=>{var K;(K=x)==null||K.observe(i)})),t()}),u&&!h&&x.observe(u),x.observe(i));let $,z=h?Be(s):null;h&&I();function I(){let _=Be(s);z&&!ao(z,_)&&t(),z=_,$=requestAnimationFrame(I)}return t(),()=>{var _;f.forEach(q=>{r&&q.removeEventListener("scroll",t),a&&q.removeEventListener("resize",t)}),b==null||b(),(_=x)==null||_.disconnect(),x=null,h&&cancelAnimationFrame($)}}var lo=Ks;var co=js,ho=qs,Dr=Ys;var po=Ns;var uo=(s,i,t)=>{let e=new Map,r=M({platform:ol},t),a=rt(M({},r.platform),{_c:e});return Us(s,i,rt(M({},r),{platform:a}))};var H=class extends m{constructor(){super(...arguments);this.active=!1;this.placement="top";this.strategy="absolute";this.distance=0;this.skidding=0;this.arrow=!1;this.arrowPlacement="anchor";this.arrowPadding=10;this.flip=!1;this.flipFallbackPlacements="";this.flipFallbackStrategy="best-fit";this.flipPadding=0;this.shift=!1;this.shiftPadding=0;this.autoSizePadding=0}async connectedCallback(){super.connectedCallback(),await this.updateComplete,this.start(),this.setupMutationObserver()}disconnectedCallback(){this.stop(),this.mutationObserver&&this.mutationObserver.disconnect()}async updated(t){super.updated(t),t.has("active")&&(this.active?this.start():this.stop()),t.has("anchor")&&this.handleAnchorChange(),this.active&&(await this.updateComplete,this.reposition())}setupMutationObserver(){this.mutationObserver=new MutationObserver(e=>this.handleCurrentPlacementChange(e));let t={attributes:!0};this.mutationObserver.observe(this,t)}handleCurrentPlacementChange(t){return t.forEach(e=>{if(e.attributeName==="data-current-placement"){let r=this.getAttribute("data-current-placement");this.emit("sd-current-placement",{detail:r})}})}async handleAnchorChange(){if(await this.stop(),this.anchor&&typeof this.anchor=="string"){let t=this.getRootNode();this.anchorEl=t.getElementById(this.anchor)}else this.anchor instanceof HTMLElement?this.anchorEl=this.anchor:this.anchorEl=this.querySelector('[slot="anchor"]');if(this.anchorEl instanceof HTMLSlotElement&&(this.anchorEl=this.anchorEl.assignedElements({flatten:!0})[0]),!this.anchorEl)throw new Error("Invalid anchor element: no anchor could be found using the anchor slot or the anchor attribute.");this.start()}start(){this.anchorEl&&(this.cleanup=no(this.anchorEl,this.popup,()=>{this.reposition()}))}async stop(){return new Promise(t=>{this.cleanup?(this.cleanup(),this.cleanup=void 0,this.removeAttribute("data-current-placement"),this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height"),requestAnimationFrame(()=>t())):t()})}reposition(){if(!this.active||!this.anchorEl)return;let t=[lo({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?t.push(Dr({apply:({rects:e})=>{let r=this.sync==="width"||this.sync==="both",a=this.sync==="height"||this.sync==="both";this.popup.style.width=r?`${e.reference.width}px`:"",this.popup.style.height=a?`${e.reference.height}px`:""}})):(this.popup.style.width="",this.popup.style.height=""),this.flip&&t.push(ho({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:this.flipFallbackStrategy==="best-fit"?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&t.push(co({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?t.push(Dr({boundary:this.autoSizeBoundary,padding:this.autoSizePadding,apply:({availableWidth:e,availableHeight:r})=>{this.autoSize==="vertical"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-height",`${r}px`):this.style.removeProperty("--auto-size-available-height"),this.autoSize==="horizontal"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-width",`${e}px`):this.style.removeProperty("--auto-size-available-width")}})):(this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height")),this.arrow&&t.push(po({element:this.arrowEl,padding:this.arrowPadding})),uo(this.anchorEl,this.popup,{placement:this.placement,middleware:t,strategy:this.strategy}).then(({x:e,y:r,middlewareData:a,placement:n})=>{let d=getComputedStyle(this).direction==="rtl",h={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]];if(this.setAttribute("data-current-placement",n),Object.assign(this.popup.style,{left:`${e}px`,top:`${r}px`}),this.arrow){let u=a.arrow.x,f=a.arrow.y,b="",k="",x="",$="";if(this.arrowPlacement==="start"){let z=typeof u=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";b=typeof f=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",k=d?z:"",$=d?"":z}else if(this.arrowPlacement==="end"){let z=typeof u=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";k=d?"":z,$=d?z:"",x=typeof f=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""}else this.arrowPlacement==="center"?($=typeof u=="number"?"calc(50% - var(--arrow-size-diagonal))":"",b=typeof f=="number"?"calc(50% - var(--arrow-size-diagonal))":""):($=typeof u=="number"?`${u}px`:"",b=typeof f=="number"?`${f}px`:"");Object.assign(this.arrowEl.style,{top:b,right:k,bottom:x,left:$,[h]:"calc(var(--arrow-size-diagonal) * -1)"})}}),this.emit("sd-reposition")}render(){return p`<slot name="anchor" @slotchange="${this.handleAnchorChange}"></slot><div part="popup" class="${c("isolate",this.strategy!=="fixed"?"absolute":"fixed",!this.active&&"hidden")}"><slot></slot>${this.arrow?p`<div part="arrow" class="absolute rotate-45 -z-10" role="presentation"></div>`:""}</div>`}};H.styles=[...m.styles,v`:host{--arrow-color:var(--sd-color-neutral-1000);--arrow-size:6px;--arrow-size-diagonal:calc(var(--arrow-size)*0.7071);--arrow-padding-offset:calc(var(--arrow-size-diagonal) - var(--arrow-size));display:contents}[part=popup]{max-height:var(--auto-size-available-height,none);max-width:var(--auto-size-available-width,none)}[part=arrow]{background:var(--arrow-color);height:calc(var(--arrow-size-diagonal)*2);width:calc(var(--arrow-size-diagonal)*2)}`],o([g('[part="popup"]')],H.prototype,"popup",2),o([g('[part="arrow"]')],H.prototype,"arrowEl",2),o([l()],H.prototype,"anchor",2),o([l({type:Boolean,reflect:!0})],H.prototype,"active",2),o([l({reflect:!0})],H.prototype,"placement",2),o([l({reflect:!0})],H.prototype,"strategy",2),o([l({type:Number})],H.prototype,"distance",2),o([l({type:Number})],H.prototype,"skidding",2),o([l({type:Boolean})],H.prototype,"arrow",2),o([l({attribute:"arrow-placement"})],H.prototype,"arrowPlacement",2),o([l({attribute:"arrow-padding",type:Number})],H.prototype,"arrowPadding",2),o([l({type:Boolean})],H.prototype,"flip",2),o([l({attribute:"flip-fallback-placements",converter:{fromAttribute:t=>t.split(" ").map(e=>e.trim()).filter(e=>e!==""),toAttribute:t=>t.join(" ")}})],H.prototype,"flipFallbackPlacements",2),o([l({attribute:"flip-fallback-strategy"})],H.prototype,"flipFallbackStrategy",2),o([l({type:Object})],H.prototype,"flipBoundary",2),o([l({attribute:"flip-padding",type:Number})],H.prototype,"flipPadding",2),o([l({type:Boolean})],H.prototype,"shift",2),o([l({type:Object})],H.prototype,"shiftBoundary",2),o([l({attribute:"shift-padding",type:Number})],H.prototype,"shiftPadding",2),o([l({attribute:"auto-size"})],H.prototype,"autoSize",2),o([l()],H.prototype,"sync",2),o([l({type:Object})],H.prototype,"autoSizeBoundary",2),o([l({attribute:"auto-size-padding",type:Number})],H.prototype,"autoSizePadding",2),H=o([y("sd-popup")],H);var st=class extends m{constructor(){super(...arguments);this.size="lg";this.selected=!1;this.toggleable=!1;this.removable=!1;this.disabled=!1;this.href=""}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}handleRemoveClick(){this.emit("sd-remove")}isLink(){return!!this.href}click(){this.tag.click()}focus(t){this.tag.focus(t)}blur(){this.tag.blur()}render(){let t=this.isLink(),e=t?X`a`:X`button`;return F`<${e} part="base" type="${E(t?void 0:"button")}" href="${E(t?this.href:void 0)}" rel="${E(t&&this.target?"noreferrer noopener":void 0)}" target="${E(t?this.target:void 0)}" download="${E(t?this.download:void 0)}" ?disabled="${E(t?void 0:this.disabled)}" aria-disabled="${this.disabled?"true":"false"}" aria-pressed="${E(this.toggleable?this.selected:void 0)}" tabindex="${this.disabled?"-1":"0"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" class="${c("inline-flex border box-border rounded-full items-center leading-none whitespace-nowrap focus-visible:focus-outline",{lg:"h-8 text-base gap-2",sm:"h-6 text-sm gap-1"}[this.size],{lg:this.removable?"pl-4 pr-3 py-2":"px-4 py-2",sm:this.removable?"pl-3 pr-2 py-2":"px-3 py-[5px]"}[this.size],this.selected?"bg-primary border-primary text-white hover:bg-primary-500 hover:border-primary-500 disabled:bg-neutral-500 disabled:border-neutral-500":"border-primary text-primary hover:border-primary-500 hover:bg-neutral-100 hover:text-primary-500 disabled:border-neutral-500 disabled:text-neutral-500",this.disabled&&!t&&"cursor-not-allowed")}"><slot part="content"></slot>${this.removable?F`<slot part="removable-indicator" name="removable-indicator" @click="${this.handleRemoveClick}" class="${c({lg:"text-base",sm:"text-[12px]"}[this.size])}"><sd-icon library="system" name="close" label="remove"></sd-icon></slot>`:""}</${e}>`}};st.styles=[...m.styles,v`:host{display:inline-block}`],o([g("a, button")],st.prototype,"tag",2),o([l({reflect:!0})],st.prototype,"size",2),o([l({type:Boolean,reflect:!0})],st.prototype,"selected",2),o([l({type:Boolean,reflect:!0})],st.prototype,"toggleable",2),o([l({type:Boolean,reflect:!0})],st.prototype,"removable",2),o([l({type:Boolean,reflect:!0})],st.prototype,"disabled",2),o([l()],st.prototype,"href",2),o([l()],st.prototype,"target",2),o([l()],st.prototype,"download",2),st=o([y("sd-tag")],st);var T=class extends m{constructor(){super(...arguments);this.formControlController=new pt(this,{assumeInteractionOn:["sd-blur","sd-input"]});this.hasSlotController=new D(this,"help-text","label");this.localize=new P(this);this.hasHover=!1;this.hasFocus=!1;this.displayInputValue="";this.selectedTextLabel="";this.selectedOptions=[];this.filteredOptions=[];this.allOptions=[];this.showValidStyle=!1;this.showInvalidStyle=!1;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.currentPlacement=this.placement;this.getOption=Ss;this.multiple=!1;this.useTags=!0;this.maxOptionsVisible=3;this.styleOnValid=!1;this.filter=(t,e)=>{let r=Ui(t.value),a=Ui(t.getTextLabel()),n=Ui(e);return r.includes(n)||a.includes(n)};this.getTag=t=>p`<sd-tag ?disabled="${this.disabled}" part="tag" exportparts="
111
+ snap-x snap-mandatory overflow-y-hidden`)}" style="--slides-per-page:${this.slidesPerPage}" aria-busy="${t.scrolling?"true":"false"}" role="status" tabindex="0" @keydown="${this.handleKeyDown}" @scrollend="${this.handleScrollEnd}"><slot></slot></div><div part="controls" class="${c("w-full flex items-center justify-center relative")}"><div part="navigation" class="${c("carousel__navigation flex items-center justify-center")}"><button part="navigation-button navigation-button--previous" id="carousel__navigation-button--previous" ?disabled="${!n}" class="${c("!mr-6 !rounded-sm sd-interactive",!n&&"sd-interactive--disabled",this.inverted?"sd-interactive--inverted":"sd-interactive--reset")}" aria-label="${this.localize.term("previousSlide")}" aria-controls="scroll-container" aria-disabled="${n?"false":"true"}" @click="${n?u=>{this.previous(),this.unblockAutoplay(u,this.previousButton)}:null}"><slot name="previous-icon"><sd-icon class="${c("h-6 w-6 rotate-90 grid place-items-center")}" library="system" name="${h?"chevron-down":"chevron-up"}"></sd-icon></slot></button> ${this.variant==="dot"?p`<div part="pagination-dot" role="tablist" class="${c("carousel__pagination dot flex wrap items-center gap-2")}" aria-controls="scroll-container">${Os(Ms(r),u=>{let f=u+1===a;return p`<button part="pagination-item ${f?"pagination-item--active":""}" class="${c("carousel__pagination-item","block cursor-pointer bg-none border-0 rounded-full",f?"bg-accent":"",this.inverted?"focus-within:focus-outline-inverted":"focus-within:focus-outline")}" role="tab" tabindex="0" aria-selected="${f?"true":"false"}" aria-label="${this.localize.term("goToSlide",u+1,r)}" @click="${b=>{this.goToSlide(u*e),this.unblockAutoplay(b,this.paginationItems[u])}}" @keydown="${this.handleKeyDown}"><span class="${c("h-4 w-4 block border hover:border-primary-500 rounded-full",this.inverted?"border-white hover:border-primary-500":"border-primary",f&&"bg-accent border-none",f?this.inverted?"hover:bg-accent-300":"hover:bg-accent-550":"")}"></span></button>`})}</div>`:p`<span part="pagination-number" class="carousel__pagination number flex gap-0.5 cursor-default select-none" aria-controls="scroll-container"><span part="pagination-item" class="${c("w-5 text-center border-b-2 border-accent",this.inverted?"text-white":"text-black")}">${a}</span> <span part="pagination-divider" class="${c("scale-y-[1.5]","text-center",this.inverted?"text-white":"text-black")}">/</span> <span part="pagination-item" class="${c("w-5 text-center",this.inverted?"text-white":"text-black")}">${r}</span></span>`} <button part="navigation-button navigation-button--next" id="carousel__navigation-button--next" ?disabled="${!d}" class="${c("!ml-6 !rounded-sm sd-interactive ",!d&&"sd-interactive--disabled",this.inverted?"sd-interactive--inverted":"sd-interactive--reset")}" aria-label="${this.localize.term("nextSlide")}" aria-controls="scroll-container" aria-disabled="${d?"false":"true"}" @click="${d?u=>{this.next(),this.unblockAutoplay(u,this.nextButton)}:null}"><slot name="next-icon"><sd-icon class="${c("h-6 w-6 rotate-90 grid place-items-center")}" library="system" name="${h?"chevron-up":"chevron-down"}"></sd-icon></slot></button></div><button class="${c("ml-6 !rounded-sm","!absolute !right-0 sd-interactive",this.inverted?"sd-interactive--inverted":"sd-interactive--reset",!this.autoplay&&"!hidden")}" part="autoplay-controls" aria-label="${this.localize.term("autoplay")}" aria-pressed="true" @click="${u=>{this.pausedAutoplay=!this.pausedAutoplay,u.detail&&this.autoplayControls.blur()}}"><slot name="autoplay-start" class="${c(this.pausedAutoplay?"":"hidden")}"><sd-icon class="h-6 w-6 grid place-items-center" library="system" name="start"></sd-icon></slot><slot name="autoplay-pause" class="${c(this.pausedAutoplay?"hidden":"")}"><sd-icon class="h-6 w-6 grid place-items-center" library="system" name="pause"></sd-icon></slot></button></div></div>`}};N.styles=[...m.styles,v`:host{--slide-gap:var(--sl-spacing-medium,1rem);--scroll-hint:0px;display:flex}.carousel{grid-template-areas:". slides ." ". pagination ."}.carousel__pagination{grid-area:pagination}.carousel__slides{grid-area:slides;scrollbar-width:none;--slide-size:calc((100% - (var(--slides-per-page) - 1)*var(--slide-gap))/var(--slides-per-page));-moz-column-gap:var(--slide-gap);column-gap:var(--slide-gap);grid-auto-columns:var(--slide-size);padding-inline:var(--scroll-hint);scroll-padding-inline:var(--scroll-hint)}.carousel__slides::-webkit-scrollbar{display:none}@media (prefers-reduced-motion){:where(.carousel__slides){scroll-behavior:auto}}.carousel__navigation{grid-area:navigation}sd-button::part(label){align-items:center;display:flex;flex:1 1 auto;pointer-events:none}`],o([g('[part~="autoplay-controls"]')],N.prototype,"autoplayControls",2),o([g('[part~="navigation-button--previous"]')],N.prototype,"previousButton",2),o([g('[part~="navigation-button--next"]')],N.prototype,"nextButton",2),o([bs('[part~="pagination-item"]')],N.prototype,"paginationItems",2),o([l({type:String,reflect:!0})],N.prototype,"variant",2),o([l({type:Boolean,reflect:!0})],N.prototype,"inverted",2),o([l({type:Boolean,reflect:!0})],N.prototype,"loop",2),o([l({type:Boolean,reflect:!0})],N.prototype,"autoplay",2),o([l({type:Number,attribute:"slides-per-page"})],N.prototype,"slidesPerPage",2),o([l({type:Number,attribute:"slides-per-move"})],N.prototype,"slidesPerMove",2),o([g("slot:not([name])")],N.prototype,"defaultSlot",2),o([g(".carousel__slides")],N.prototype,"scrollContainer",2),o([g(".carousel__pagination")],N.prototype,"paginationContainer",2),o([C()],N.prototype,"activeSlide",2),o([C()],N.prototype,"currentPage",2),o([C()],N.prototype,"pausedAutoplay",2),o([w("pausedAutoplay")],N.prototype,"handlePausedAutoplay",1),o([w("loop",{waitUntilFirstUpdate:!0}),w("slidesPerPage",{waitUntilFirstUpdate:!0})],N.prototype,"initializeSlides",1),o([w("activeSlide")],N.prototype,"handleSlideChange",1),o([w("slidesPerMove")],N.prototype,"handleSlidesPerMoveChange",1),o([w("autoplay")],N.prototype,"handleAutoplayChange",1),N=o([y("sd-carousel")],N);var Ht=(s="value")=>(i,t)=>{let e=i.constructor,r=e.prototype.attributeChangedCallback;e.prototype.attributeChangedCallback=function(a,n,d){var f;let h=e.getPropertyOptions(s),u=typeof h.attribute=="string"?h.attribute:s;if(a===u){let b=h.converter||we,x=(typeof b=="function"?b:(f=b==null?void 0:b.fromAttribute)!=null?f:we.fromAttribute)(d,h.type);this[s]!==x&&(this[t]=x)}r.call(this,a,n,d)}};var{I:c0}=ss;var Ri=s=>s.strings===void 0;var Pn={},_s=(s,i=Pn)=>s._$AH=i;var he=de(class extends ke{constructor(s){if(super(s),s.type!==Ot.PROPERTY&&s.type!==Ot.ATTRIBUTE&&s.type!==Ot.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!Ri(s))throw Error("`live` bindings can only contain a single expression")}render(s){return s}update(s,[i]){if(i===vt||i===Y)return i;let t=s.element,e=s.name;if(s.type===Ot.PROPERTY){if(i===t[e])return vt}else if(s.type===Ot.BOOLEAN_ATTRIBUTE){if(!!i===t.hasAttribute(e))return vt}else if(s.type===Ot.ATTRIBUTE&&t.getAttribute(e)===i+"")return vt;return _s(s),i}});var Q=class extends m{constructor(){super(...arguments);this.formControlController=new pt(this,{value:t=>t.checked?t.value||"on":void 0,defaultValue:t=>t.defaultChecked,setValue:(t,e)=>t.checked=e});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(t){if(this.visuallyDisabled){t.preventDefault(),t.stopPropagation();return}this.checked=!this.checked,this.indeterminate=!1,this.emit("sd-change")}handleBlur(){this.emit("sd-blur")}handleInput(){this.emit("sd-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}handleFocus(){this.emit("sd-focus")}handleDisabledChange(){let t=this.disabled||this.visuallyDisabled;this.setAttribute("aria-disabled",t?"true":"false"),this.formControlController.setValidity(t)}handleStateChange(){this.input.checked=this.checked,this.input.indeterminate=this.indeterminate,this.formControlController.updateValidity()}click(){this.input.click()}focus(t){this.input.focus(t)}blur(){this.input.blur()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){let t=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 p`<label part="base" class="${c("sd-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="${E(this.value)}" .indeterminate="${he(this.indeterminate)}" .checked="${he(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="${c("relative flex flex-shrink-0 items-center justify-center border rounded-sm h-4 w-4",this.visuallyDisabled?"":"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"}[t])}">${this.checked?p`<sd-icon part="checked-icon" class="text-white w-3 h-3" library="system" name="status-check"></sd-icon>`:""} ${!this.checked&&this.indeterminate?p`<sd-icon part="indeterminate-icon" class="text-white w-3 h-3" library="system" name="status-minus"></sd-icon>`:""} </span><span part="label" id="label" class="${c("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()}`}};Q.styles=[...m.styles,v`:host{display:block;width:-moz-max-content;width:max-content}:host(:focus-visible){outline-width:0}:host([required]) #label:after{content:" *"}`],o([g('input[type="checkbox"]')],Q.prototype,"input",2),o([g("#invalid-message")],Q.prototype,"invalidMessage",2),o([l()],Q.prototype,"title",2),o([l()],Q.prototype,"name",2),o([l()],Q.prototype,"value",2),o([l({reflect:!0})],Q.prototype,"size",2),o([l({type:Boolean,reflect:!0})],Q.prototype,"disabled",2),o([l({type:Boolean,reflect:!0,attribute:"visually-disabled"})],Q.prototype,"visuallyDisabled",2),o([l({type:Boolean,reflect:!0})],Q.prototype,"checked",2),o([l({type:Boolean,reflect:!0})],Q.prototype,"indeterminate",2),o([Ht("checked")],Q.prototype,"defaultChecked",2),o([l({reflect:!0})],Q.prototype,"form",2),o([l({type:Boolean,reflect:!0})],Q.prototype,"required",2),o([C()],Q.prototype,"showInvalidStyle",2),o([w(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],Q.prototype,"handleDisabledChange",1),o([w(["checked","indeterminate"],{waitUntilFirstUpdate:!0})],Q.prototype,"handleStateChange",1),Q=o([y("sd-checkbox")],Q);var $t=class extends m{constructor(){super(...arguments);this.hasSlotController=new D(this,"label","help-text");this.size="lg";this.orientation="vertical";this.label="";this.helpText=""}getAllCheckboxes(){return[...this.querySelectorAll("sd-checkbox")]}async syncCheckboxElements(){let t=this.getAllCheckboxes();await Promise.all(t.map(async e=>{await e.updateComplete,e.size=this.size}))}syncCheckboxes(){customElements.get("sd-checkbox")?this.syncCheckboxElements():customElements.whenDefined("sd-checkbox").then(()=>this.syncCheckboxes())}handleSizeChange(){this.syncCheckboxes()}handleInvalid(){this.syncCheckboxes()}render(){let t=this.hasSlotController.test("label"),e=this.label?!0:t,r=this.hasSlotController.test("help-text"),a=this.helpText?!0:r,n=p`<slot @slotchange="${this.syncCheckboxes}"></slot>`,d=this.hasSlotController.test("tooltip");return p`<fieldset part="form-control" class="${c("border-0 p-0 m-0",{sm:"text-sm",md:"text-base",lg:"text-base"}[this.size])}" role="group" aria-labelledby="label">${e||d?p`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${c("p-0 font-bold leading-normal text-black",e?"flex":"hidden")}" aria-hidden="${e?"false":"true"}"><slot name="label">${this.label}</slot></label> ${d?p`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${c({vertical:"flex flex-col",horizontal:"flex flex-row"}[this.orientation])}">${n}</div></fieldset><slot name="help-text" part="form-control-help-text" id="help-text" class="${c("text-sm text-neutral-700 mt-2",a?"block":"hidden")}" aria-hidden="${!a}">${this.helpText}</slot>`}};$t.styles=[...m.styles,v`:host{display:block}:host([orientation=vertical]) ::slotted(sd-checkbox){display:flex;margin-bottom:var(--sd-spacing-2,.5rem)}:host([orientation=vertical]) ::slotted(sd-checkbox:last-of-type){margin-bottom:var(--sd-spacing-0,0)}:host([orientation=horizontal]) ::slotted(sd-checkbox){margin-right:var(--sd-spacing-6,1.5rem)}:host([orientation=horizontal]) ::slotted(sd-checkbox:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-checkbox){margin-right:var(--sd-spacing-4,1rem)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-checkbox:last-of-type){margin-right:var(--sd-spacing-0,0)}`],o([l({reflect:!0})],$t.prototype,"size",2),o([l({reflect:!0})],$t.prototype,"orientation",2),o([l()],$t.prototype,"label",2),o([l({attribute:"help-text"})],$t.prototype,"helpText",2),o([w("size",{waitUntilFirstUpdate:!0})],$t.prototype,"handleSizeChange",1),o([w("invalid",{waitUntilFirstUpdate:!0})],$t.prototype,"handleInvalid",1),$t=o([y("sd-checkbox-group")],$t);var Ss=s=>s;var $r=s=>Array.from(s.assignedElements({flatten:!0})),Fn=s=>s.tagName.toLocaleLowerCase()==="sd-option"?s:Array.from(s.querySelectorAll(":scope > sd-option")),Bn=s=>s.tagName.toLocaleLowerCase()==="sd-optgroup",Hs=s=>s.map(Fn),Is=s=>s.filter(Bn),Ui=s=>s.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase();function Ps(s,i){return{top:Math.round(s.getBoundingClientRect().top-i.getBoundingClientRect().top),left:Math.round(s.getBoundingClientRect().left-i.getBoundingClientRect().left)}}var Tr=new Set;function Vn(){let s=document.documentElement.clientWidth;return Math.abs(window.innerWidth-s)}function De(s){if(Tr.add(s),!document.body.classList.contains("sd-scroll-lock")){let i=Vn();document.body.classList.add("sd-scroll-lock"),document.body.style.setProperty("--sd-scroll-lock-size",`${i}px`)}}function _e(s){Tr.delete(s),Tr.size===0&&(document.body.classList.remove("sd-scroll-lock"),document.body.style.removeProperty("--sd-scrollbar-width"))}function qt(s,i,t="vertical",e="smooth"){let r=Ps(s,i),a=r.top+i.scrollTop,n=r.left+i.scrollLeft,d=i.scrollLeft,h=i.scrollLeft+i.offsetWidth,u=i.scrollTop,f=i.scrollTop+i.offsetHeight;(t==="horizontal"||t==="both")&&(n<d?i.scrollTo({left:n,behavior:e}):n+s.clientWidth>h&&i.scrollTo({left:n-i.offsetWidth+s.clientWidth,behavior:e})),(t==="vertical"||t==="both")&&(a<u?i.scrollTo({top:a,behavior:e}):a+s.clientHeight>f&&i.scrollTo({top:a-i.offsetHeight+s.clientHeight,behavior:e}))}var ie=Math.min,xt=Math.max,ui=Math.round,mi=Math.floor,Kt=s=>({x:s,y:s}),Rn={left:"right",right:"left",bottom:"top",top:"bottom"},Un={start:"end",end:"start"};function qi(s,i,t){return xt(s,ie(i,t))}function Se(s,i){return typeof s=="function"?s(i):s}function pe(s){return s.split("-")[0]}function He(s){return s.split("-")[1]}function Lr(s){return s==="x"?"y":"x"}function Ki(s){return s==="y"?"height":"width"}function Ce(s){return["top","bottom"].includes(pe(s))?"y":"x"}function ji(s){return Lr(Ce(s))}function Fs(s,i,t){t===void 0&&(t=!1);let e=He(s),r=ji(s),a=Ki(r),n=r==="x"?e===(t?"end":"start")?"right":"left":e==="start"?"bottom":"top";return i.reference[a]>i.floating[a]&&(n=pi(n)),[n,pi(n)]}function Bs(s){let i=pi(s);return[Ni(s),i,Ni(i)]}function Ni(s){return s.replace(/start|end/g,i=>Un[i])}function Nn(s,i,t){let e=["left","right"],r=["right","left"],a=["top","bottom"],n=["bottom","top"];switch(s){case"top":case"bottom":return t?i?r:e:i?e:r;case"left":case"right":return i?a:n;default:return[]}}function Vs(s,i,t,e){let r=He(s),a=Nn(pe(s),t==="start",e);return r&&(a=a.map(n=>n+"-"+r),i&&(a=a.concat(a.map(Ni)))),a}function pi(s){return s.replace(/left|right|bottom|top/g,i=>Rn[i])}function qn(s){return M({top:0,right:0,bottom:0,left:0},s)}function zr(s){return typeof s!="number"?qn(s):{top:s,right:s,bottom:s,left:s}}function Ie(s){let{x:i,y:t,width:e,height:r}=s;return{width:e,height:r,top:t,left:i,right:i+e,bottom:t+r,x:i,y:t}}function Rs(s,i,t){let{reference:e,floating:r}=s,a=Ce(i),n=ji(i),d=Ki(n),h=pe(i),u=a==="y",f=e.x+e.width/2-r.width/2,b=e.y+e.height/2-r.height/2,k=e[d]/2-r[d]/2,x;switch(h){case"top":x={x:f,y:e.y-r.height};break;case"bottom":x={x:f,y:e.y+e.height};break;case"right":x={x:e.x+e.width,y:b};break;case"left":x={x:e.x-r.width,y:b};break;default:x={x:e.x,y:e.y}}switch(He(i)){case"start":x[n]-=k*(t&&u?-1:1);break;case"end":x[n]+=k*(t&&u?-1:1);break}return x}var Us=async(s,i,t)=>{let{placement:e="bottom",strategy:r="absolute",middleware:a=[],platform:n}=t,d=a.filter(Boolean),h=await(n.isRTL==null?void 0:n.isRTL(i)),u=await n.getElementRects({reference:s,floating:i,strategy:r}),{x:f,y:b}=Rs(u,e,h),k=e,x={},$=0;for(let z=0;z<d.length;z++){let{name:I,fn:_}=d[z],{x:q,y:K,data:tt,reset:et}=await _({x:f,y:b,initialPlacement:e,placement:k,strategy:r,middlewareData:x,rects:u,platform:n,elements:{reference:s,floating:i}});f=q!=null?q:f,b=K!=null?K:b,x=rt(M({},x),{[I]:M(M({},x[I]),tt)}),et&&$<=50&&($++,typeof et=="object"&&(et.placement&&(k=et.placement),et.rects&&(u=et.rects===!0?await n.getElementRects({reference:s,floating:i,strategy:r}):et.rects),{x:f,y:b}=Rs(u,k,h)),z=-1)}return{x:f,y:b,placement:k,strategy:r,middlewareData:x}};async function Yi(s,i){var t;i===void 0&&(i={});let{x:e,y:r,platform:a,rects:n,elements:d,strategy:h}=s,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:b="floating",altBoundary:k=!1,padding:x=0}=Se(i,s),$=zr(x),I=d[k?b==="floating"?"reference":"floating":b],_=Ie(await a.getClippingRect({element:(t=await(a.isElement==null?void 0:a.isElement(I)))==null||t?I:I.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(d.floating)),boundary:u,rootBoundary:f,strategy:h})),q=b==="floating"?{x:e,y:r,width:n.floating.width,height:n.floating.height}:n.reference,K=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d.floating)),tt=await(a.isElement==null?void 0:a.isElement(K))?await(a.getScale==null?void 0:a.getScale(K))||{x:1,y:1}:{x:1,y:1},et=Ie(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:q,offsetParent:K,strategy:h}):q);return{top:(_.top-et.top+$.top)/tt.y,bottom:(et.bottom-_.bottom+$.bottom)/tt.y,left:(_.left-et.left+$.left)/tt.x,right:(et.right-_.right+$.right)/tt.x}}var Ns=s=>({name:"arrow",options:s,async fn(i){let{x:t,y:e,placement:r,rects:a,platform:n,elements:d,middlewareData:h}=i,{element:u,padding:f=0}=Se(s,i)||{};if(u==null)return{};let b=zr(f),k={x:t,y:e},x=ji(r),$=Ki(x),z=await n.getDimensions(u),I=x==="y",_=I?"top":"left",q=I?"bottom":"right",K=I?"clientHeight":"clientWidth",tt=a.reference[$]+a.reference[x]-k[x]-a.floating[$],et=k[x]-a.reference[x],Vt=await(n.getOffsetParent==null?void 0:n.getOffsetParent(u)),gt=Vt?Vt[K]:0;(!gt||!await(n.isElement==null?void 0:n.isElement(Vt)))&&(gt=d.floating[K]||a.floating[$]);let oe=tt/2-et/2,Qt=gt/2-z[$]/2-1,Rt=ie(b[_],Qt),fe=ie(b[q],Qt),Jt=Rt,be=gt-z[$]-fe,At=gt/2-z[$]/2+oe,Ut=qi(Jt,At,be),Re=!h.arrow&&He(r)!=null&&At!==Ut&&a.reference[$]/2-(At<Jt?Rt:fe)-z[$]/2<0,ae=Re?At<Jt?At-Jt:At-be:0;return{[x]:k[x]+ae,data:M({[x]:Ut,centerOffset:At-Ut-ae},Re&&{alignmentOffset:ae}),reset:Re}}});var qs=function(s){return s===void 0&&(s={}),{name:"flip",options:s,async fn(i){var t,e;let{placement:r,middlewareData:a,rects:n,initialPlacement:d,platform:h,elements:u}=i,At=Se(s,i),{mainAxis:f=!0,crossAxis:b=!0,fallbackPlacements:k,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:$="none",flipAlignment:z=!0}=At,I=xi(At,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((t=a.arrow)!=null&&t.alignmentOffset)return{};let _=pe(r),q=Ce(d),K=pe(d)===d,tt=await(h.isRTL==null?void 0:h.isRTL(u.floating)),et=k||(K||!z?[pi(d)]:Bs(d)),Vt=$!=="none";!k&&Vt&&et.push(...Vs(d,z,$,tt));let gt=[d,...et],oe=await Yi(i,I),Qt=[],Rt=((e=a.flip)==null?void 0:e.overflows)||[];if(f&&Qt.push(oe[_]),b){let Ut=Fs(r,n,tt);Qt.push(oe[Ut[0]],oe[Ut[1]])}if(Rt=[...Rt,{placement:r,overflows:Qt}],!Qt.every(Ut=>Ut<=0)){var fe,Jt;let Ut=(((fe=a.flip)==null?void 0:fe.index)||0)+1,Re=gt[Ut];if(Re)return{data:{index:Ut,overflows:Rt},reset:{placement:Re}};let ae=(Jt=Rt.filter(Ue=>Ue.overflows[0]<=0).sort((Ue,ge)=>Ue.overflows[1]-ge.overflows[1])[0])==null?void 0:Jt.placement;if(!ae)switch(x){case"bestFit":{var be;let Ue=(be=Rt.filter(ge=>{if(Vt){let ve=Ce(ge.placement);return ve===q||ve==="y"}return!0}).map(ge=>[ge.placement,ge.overflows.filter(ve=>ve>0).reduce((ve,yo)=>ve+yo,0)]).sort((ge,ve)=>ge[1]-ve[1])[0])==null?void 0:be[0];Ue&&(ae=Ue);break}case"initialPlacement":ae=d;break}if(r!==ae)return{reset:{placement:ae}}}return{}}}};async function Kn(s,i){let{placement:t,platform:e,elements:r}=s,a=await(e.isRTL==null?void 0:e.isRTL(r.floating)),n=pe(t),d=He(t),h=Ce(t)==="y",u=["left","top"].includes(n)?-1:1,f=a&&h?-1:1,b=Se(i,s),{mainAxis:k,crossAxis:x,alignmentAxis:$}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return d&&typeof $=="number"&&(x=d==="end"?$*-1:$),h?{x:x*f,y:k*u}:{x:k*u,y:x*f}}var Ks=function(s){return s===void 0&&(s=0),{name:"offset",options:s,async fn(i){var t,e;let{x:r,y:a,placement:n,middlewareData:d}=i,h=await Kn(i,s);return n===((t=d.offset)==null?void 0:t.placement)&&(e=d.arrow)!=null&&e.alignmentOffset?{}:{x:r+h.x,y:a+h.y,data:rt(M({},h),{placement:n})}}}},js=function(s){return s===void 0&&(s={}),{name:"shift",options:s,async fn(i){let{x:t,y:e,placement:r}=i,I=Se(s,i),{mainAxis:a=!0,crossAxis:n=!1,limiter:d={fn:_=>{let{x:q,y:K}=_;return{x:q,y:K}}}}=I,h=xi(I,["mainAxis","crossAxis","limiter"]),u={x:t,y:e},f=await Yi(i,h),b=Ce(pe(r)),k=Lr(b),x=u[k],$=u[b];if(a){let _=k==="y"?"top":"left",q=k==="y"?"bottom":"right",K=x+f[_],tt=x-f[q];x=qi(K,x,tt)}if(n){let _=b==="y"?"top":"left",q=b==="y"?"bottom":"right",K=$+f[_],tt=$-f[q];$=qi(K,$,tt)}let z=d.fn(rt(M({},i),{[k]:x,[b]:$}));return rt(M({},z),{data:{x:z.x-t,y:z.y-e,enabled:{[k]:a,[b]:n}}})}}};var Ys=function(s){return s===void 0&&(s={}),{name:"size",options:s,async fn(i){var t,e;let{placement:r,rects:a,platform:n,elements:d}=i,Rt=Se(s,i),{apply:h=()=>{}}=Rt,u=xi(Rt,["apply"]),f=await Yi(i,u),b=pe(r),k=He(r),x=Ce(r)==="y",{width:$,height:z}=a.floating,I,_;b==="top"||b==="bottom"?(I=b,_=k===(await(n.isRTL==null?void 0:n.isRTL(d.floating))?"start":"end")?"left":"right"):(_=b,I=k==="end"?"top":"bottom");let q=z-f.top-f.bottom,K=$-f.left-f.right,tt=ie(z-f[I],q),et=ie($-f[_],K),Vt=!i.middlewareData.shift,gt=tt,oe=et;if((t=i.middlewareData.shift)!=null&&t.enabled.x&&(oe=K),(e=i.middlewareData.shift)!=null&&e.enabled.y&&(gt=q),Vt&&!k){let fe=xt(f.left,0),Jt=xt(f.right,0),be=xt(f.top,0),At=xt(f.bottom,0);x?oe=$-2*(fe!==0||Jt!==0?fe+Jt:xt(f.left,f.right)):gt=z-2*(be!==0||At!==0?be+At:xt(f.top,f.bottom))}await h(rt(M({},i),{availableWidth:oe,availableHeight:gt}));let Qt=await n.getDimensions(d.floating);return $!==Qt.width||z!==Qt.height?{reset:{rects:!0}}:{}}}};function Zi(){return typeof window!="undefined"}function Pe(s){return Xs(s)?(s.nodeName||"").toLowerCase():"#document"}function Tt(s){var i;return(s==null||(i=s.ownerDocument)==null?void 0:i.defaultView)||window}function jt(s){var i;return(i=(Xs(s)?s.ownerDocument:s.document)||window.document)==null?void 0:i.documentElement}function Xs(s){return Zi()?s instanceof Node||s instanceof Tt(s).Node:!1}function It(s){return Zi()?s instanceof Element||s instanceof Tt(s).Element:!1}function Yt(s){return Zi()?s instanceof HTMLElement||s instanceof Tt(s).HTMLElement:!1}function Zs(s){return!Zi()||typeof ShadowRoot=="undefined"?!1:s instanceof ShadowRoot||s instanceof Tt(s).ShadowRoot}function Xe(s){let{overflow:i,overflowX:t,overflowY:e,display:r}=Pt(s);return/auto|scroll|overlay|hidden|clip/.test(i+e+t)&&!["inline","contents"].includes(r)}function Ws(s){return["table","td","th"].includes(Pe(s))}function fi(s){return[":popover-open",":modal"].some(i=>{try{return s.matches(i)}catch(t){return!1}})}function Xi(s){let i=Wi(),t=It(s)?Pt(s):s;return["transform","translate","scale","rotate","perspective"].some(e=>t[e]?t[e]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!i&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!i&&(t.filter?t.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(e=>(t.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(t.contain||"").includes(e))}function Qs(s){let i=ue(s);for(;Yt(i)&&!Fe(i);){if(Xi(i))return i;if(fi(i))return null;i=ue(i)}return null}function Wi(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Fe(s){return["html","body","#document"].includes(Pe(s))}function Pt(s){return Tt(s).getComputedStyle(s)}function bi(s){return It(s)?{scrollLeft:s.scrollLeft,scrollTop:s.scrollTop}:{scrollLeft:s.scrollX,scrollTop:s.scrollY}}function ue(s){if(Pe(s)==="html")return s;let i=s.assignedSlot||s.parentNode||Zs(s)&&s.host||jt(s);return Zs(i)?i.host:i}function Js(s){let i=ue(s);return Fe(i)?s.ownerDocument?s.ownerDocument.body:s.body:Yt(i)&&Xe(i)?i:Js(i)}function Ze(s,i,t){var e;i===void 0&&(i=[]),t===void 0&&(t=!0);let r=Js(s),a=r===((e=s.ownerDocument)==null?void 0:e.body),n=Tt(r);if(a){let d=Qi(n);return i.concat(n,n.visualViewport||[],Xe(r)?r:[],d&&t?Ze(d):[])}return i.concat(r,Ze(r,[],t))}function Qi(s){return s.parent&&Object.getPrototypeOf(s.parent)?s.frameElement:null}function eo(s){let i=Pt(s),t=parseFloat(i.width)||0,e=parseFloat(i.height)||0,r=Yt(s),a=r?s.offsetWidth:t,n=r?s.offsetHeight:e,d=ui(t)!==a||ui(e)!==n;return d&&(t=a,e=n),{width:t,height:e,$:d}}function Or(s){return It(s)?s:s.contextElement}function We(s){let i=Or(s);if(!Yt(i))return Kt(1);let t=i.getBoundingClientRect(),{width:e,height:r,$:a}=eo(i),n=(a?ui(t.width):t.width)/e,d=(a?ui(t.height):t.height)/r;return(!n||!Number.isFinite(n))&&(n=1),(!d||!Number.isFinite(d))&&(d=1),{x:n,y:d}}var jn=Kt(0);function io(s){let i=Tt(s);return!Wi()||!i.visualViewport?jn:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function Yn(s,i,t){return i===void 0&&(i=!1),!t||i&&t!==Tt(s)?!1:i}function Be(s,i,t,e){i===void 0&&(i=!1),t===void 0&&(t=!1);let r=s.getBoundingClientRect(),a=Or(s),n=Kt(1);i&&(e?It(e)&&(n=We(e)):n=We(s));let d=Yn(a,t,e)?io(a):Kt(0),h=(r.left+d.x)/n.x,u=(r.top+d.y)/n.y,f=r.width/n.x,b=r.height/n.y;if(a){let k=Tt(a),x=e&&It(e)?Tt(e):e,$=k,z=Qi($);for(;z&&e&&x!==$;){let I=We(z),_=z.getBoundingClientRect(),q=Pt(z),K=_.left+(z.clientLeft+parseFloat(q.paddingLeft))*I.x,tt=_.top+(z.clientTop+parseFloat(q.paddingTop))*I.y;h*=I.x,u*=I.y,f*=I.x,b*=I.y,h+=K,u+=tt,$=Tt(z),z=Qi($)}}return Ie({width:f,height:b,x:h,y:u})}function Mr(s,i){let t=bi(s).scrollLeft;return i?i.left+t:Be(jt(s)).left+t}function ro(s,i,t){t===void 0&&(t=!1);let e=s.getBoundingClientRect(),r=e.left+i.scrollLeft-(t?0:Mr(s,e)),a=e.top+i.scrollTop;return{x:r,y:a}}function Zn(s){let{elements:i,rect:t,offsetParent:e,strategy:r}=s,a=r==="fixed",n=jt(e),d=i?fi(i.floating):!1;if(e===n||d&&a)return t;let h={scrollLeft:0,scrollTop:0},u=Kt(1),f=Kt(0),b=Yt(e);if((b||!b&&!a)&&((Pe(e)!=="body"||Xe(n))&&(h=bi(e)),Yt(e))){let x=Be(e);u=We(e),f.x=x.x+e.clientLeft,f.y=x.y+e.clientTop}let k=n&&!b&&!a?ro(n,h,!0):Kt(0);return{width:t.width*u.x,height:t.height*u.y,x:t.x*u.x-h.scrollLeft*u.x+f.x+k.x,y:t.y*u.y-h.scrollTop*u.y+f.y+k.y}}function Xn(s){return Array.from(s.getClientRects())}function Wn(s){let i=jt(s),t=bi(s),e=s.ownerDocument.body,r=xt(i.scrollWidth,i.clientWidth,e.scrollWidth,e.clientWidth),a=xt(i.scrollHeight,i.clientHeight,e.scrollHeight,e.clientHeight),n=-t.scrollLeft+Mr(s),d=-t.scrollTop;return Pt(e).direction==="rtl"&&(n+=xt(i.clientWidth,e.clientWidth)-r),{width:r,height:a,x:n,y:d}}function Qn(s,i){let t=Tt(s),e=jt(s),r=t.visualViewport,a=e.clientWidth,n=e.clientHeight,d=0,h=0;if(r){a=r.width,n=r.height;let u=Wi();(!u||u&&i==="fixed")&&(d=r.offsetLeft,h=r.offsetTop)}return{width:a,height:n,x:d,y:h}}function Jn(s,i){let t=Be(s,!0,i==="fixed"),e=t.top+s.clientTop,r=t.left+s.clientLeft,a=Yt(s)?We(s):Kt(1),n=s.clientWidth*a.x,d=s.clientHeight*a.y,h=r*a.x,u=e*a.y;return{width:n,height:d,x:h,y:u}}function Gs(s,i,t){let e;if(i==="viewport")e=Qn(s,t);else if(i==="document")e=Wn(jt(s));else if(It(i))e=Jn(i,t);else{let r=io(s);e={x:i.x-r.x,y:i.y-r.y,width:i.width,height:i.height}}return Ie(e)}function so(s,i){let t=ue(s);return t===i||!It(t)||Fe(t)?!1:Pt(t).position==="fixed"||so(t,i)}function Gn(s,i){let t=i.get(s);if(t)return t;let e=Ze(s,[],!1).filter(d=>It(d)&&Pe(d)!=="body"),r=null,a=Pt(s).position==="fixed",n=a?ue(s):s;for(;It(n)&&!Fe(n);){let d=Pt(n),h=Xi(n);!h&&d.position==="fixed"&&(r=null),(a?!h&&!r:!h&&d.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||Xe(n)&&!h&&so(s,n))?e=e.filter(f=>f!==n):r=d,n=ue(n)}return i.set(s,e),e}function tl(s){let{element:i,boundary:t,rootBoundary:e,strategy:r}=s,n=[...t==="clippingAncestors"?fi(i)?[]:Gn(i,this._c):[].concat(t),e],d=n[0],h=n.reduce((u,f)=>{let b=Gs(i,f,r);return u.top=xt(b.top,u.top),u.right=ie(b.right,u.right),u.bottom=ie(b.bottom,u.bottom),u.left=xt(b.left,u.left),u},Gs(i,d,r));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function el(s){let{width:i,height:t}=eo(s);return{width:i,height:t}}function il(s,i,t){let e=Yt(i),r=jt(i),a=t==="fixed",n=Be(s,!0,a,i),d={scrollLeft:0,scrollTop:0},h=Kt(0);if(e||!e&&!a)if((Pe(i)!=="body"||Xe(r))&&(d=bi(i)),e){let k=Be(i,!0,a,i);h.x=k.x+i.clientLeft,h.y=k.y+i.clientTop}else r&&(h.x=Mr(r));let u=r&&!e&&!a?ro(r,d):Kt(0),f=n.left+d.scrollLeft-h.x-u.x,b=n.top+d.scrollTop-h.y-u.y;return{x:f,y:b,width:n.width,height:n.height}}function Ar(s){return Pt(s).position==="static"}function to(s,i){if(!Yt(s)||Pt(s).position==="fixed")return null;if(i)return i(s);let t=s.offsetParent;return jt(s)===t&&(t=t.ownerDocument.body),t}function oo(s,i){let t=Tt(s);if(fi(s))return t;if(!Yt(s)){let r=ue(s);for(;r&&!Fe(r);){if(It(r)&&!Ar(r))return r;r=ue(r)}return t}let e=to(s,i);for(;e&&Ws(e)&&Ar(e);)e=to(e,i);return e&&Fe(e)&&Ar(e)&&!Xi(e)?t:e||Qs(s)||t}var rl=async function(s){let i=this.getOffsetParent||oo,t=this.getDimensions,e=await t(s.floating);return{reference:il(s.reference,await i(s.floating),s.strategy),floating:{x:0,y:0,width:e.width,height:e.height}}};function sl(s){return Pt(s).direction==="rtl"}var ol={convertOffsetParentRelativeRectToViewportRelativeRect:Zn,getDocumentElement:jt,getClippingRect:tl,getOffsetParent:oo,getElementRects:rl,getClientRects:Xn,getDimensions:el,getScale:We,isElement:It,isRTL:sl};function ao(s,i){return s.x===i.x&&s.y===i.y&&s.width===i.width&&s.height===i.height}function al(s,i){let t=null,e,r=jt(s);function a(){var d;clearTimeout(e),(d=t)==null||d.disconnect(),t=null}function n(d,h){d===void 0&&(d=!1),h===void 0&&(h=1),a();let u=s.getBoundingClientRect(),{left:f,top:b,width:k,height:x}=u;if(d||i(),!k||!x)return;let $=mi(b),z=mi(r.clientWidth-(f+k)),I=mi(r.clientHeight-(b+x)),_=mi(f),K={rootMargin:-$+"px "+-z+"px "+-I+"px "+-_+"px",threshold:xt(0,ie(1,h))||1},tt=!0;function et(Vt){let gt=Vt[0].intersectionRatio;if(gt!==h){if(!tt)return n();gt?n(!1,gt):e=setTimeout(()=>{n(!1,1e-7)},1e3)}gt===1&&!ao(u,s.getBoundingClientRect())&&n(),tt=!1}try{t=new IntersectionObserver(et,rt(M({},K),{root:r.ownerDocument}))}catch(Vt){t=new IntersectionObserver(et,K)}t.observe(s)}return n(!0),a}function no(s,i,t,e){e===void 0&&(e={});let{ancestorScroll:r=!0,ancestorResize:a=!0,elementResize:n=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:h=!1}=e,u=Or(s),f=r||a?[...u?Ze(u):[],...Ze(i)]:[];f.forEach(_=>{r&&_.addEventListener("scroll",t,{passive:!0}),a&&_.addEventListener("resize",t)});let b=u&&d?al(u,t):null,k=-1,x=null;n&&(x=new ResizeObserver(_=>{let[q]=_;q&&q.target===u&&x&&(x.unobserve(i),cancelAnimationFrame(k),k=requestAnimationFrame(()=>{var K;(K=x)==null||K.observe(i)})),t()}),u&&!h&&x.observe(u),x.observe(i));let $,z=h?Be(s):null;h&&I();function I(){let _=Be(s);z&&!ao(z,_)&&t(),z=_,$=requestAnimationFrame(I)}return t(),()=>{var _;f.forEach(q=>{r&&q.removeEventListener("scroll",t),a&&q.removeEventListener("resize",t)}),b==null||b(),(_=x)==null||_.disconnect(),x=null,h&&cancelAnimationFrame($)}}var lo=Ks;var co=js,ho=qs,Dr=Ys;var po=Ns;var uo=(s,i,t)=>{let e=new Map,r=M({platform:ol},t),a=rt(M({},r.platform),{_c:e});return Us(s,i,rt(M({},r),{platform:a}))};var H=class extends m{constructor(){super(...arguments);this.active=!1;this.placement="top";this.strategy="absolute";this.distance=0;this.skidding=0;this.arrow=!1;this.arrowPlacement="anchor";this.arrowPadding=10;this.flip=!1;this.flipFallbackPlacements="";this.flipFallbackStrategy="best-fit";this.flipPadding=0;this.shift=!1;this.shiftPadding=0;this.autoSizePadding=0}async connectedCallback(){super.connectedCallback(),await this.updateComplete,this.start(),this.setupMutationObserver()}disconnectedCallback(){this.stop(),this.mutationObserver&&this.mutationObserver.disconnect()}async updated(t){super.updated(t),t.has("active")&&(this.active?this.start():this.stop()),t.has("anchor")&&this.handleAnchorChange(),this.active&&(await this.updateComplete,this.reposition())}setupMutationObserver(){this.mutationObserver=new MutationObserver(e=>this.handleCurrentPlacementChange(e));let t={attributes:!0};this.mutationObserver.observe(this,t)}handleCurrentPlacementChange(t){return t.forEach(e=>{if(e.attributeName==="data-current-placement"){let r=this.getAttribute("data-current-placement");this.emit("sd-current-placement",{detail:r})}})}async handleAnchorChange(){if(await this.stop(),this.anchor&&typeof this.anchor=="string"){let t=this.getRootNode();this.anchorEl=t.getElementById(this.anchor)}else this.anchor instanceof HTMLElement?this.anchorEl=this.anchor:this.anchorEl=this.querySelector('[slot="anchor"]');if(this.anchorEl instanceof HTMLSlotElement&&(this.anchorEl=this.anchorEl.assignedElements({flatten:!0})[0]),!this.anchorEl)throw new Error("Invalid anchor element: no anchor could be found using the anchor slot or the anchor attribute.");this.start()}start(){this.anchorEl&&(this.cleanup=no(this.anchorEl,this.popup,()=>{this.reposition()}))}async stop(){return new Promise(t=>{this.cleanup?(this.cleanup(),this.cleanup=void 0,this.removeAttribute("data-current-placement"),this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height"),requestAnimationFrame(()=>t())):t()})}reposition(){if(!this.active||!this.anchorEl)return;let t=[lo({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?t.push(Dr({apply:({rects:e})=>{let r=this.sync==="width"||this.sync==="both",a=this.sync==="height"||this.sync==="both";this.popup.style.width=r?`${e.reference.width}px`:"",this.popup.style.height=a?`${e.reference.height}px`:""}})):(this.popup.style.width="",this.popup.style.height=""),this.flip&&t.push(ho({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:this.flipFallbackStrategy==="best-fit"?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&t.push(co({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?t.push(Dr({boundary:this.autoSizeBoundary,padding:this.autoSizePadding,apply:({availableWidth:e,availableHeight:r})=>{this.autoSize==="vertical"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-height",`${r}px`):this.style.removeProperty("--auto-size-available-height"),this.autoSize==="horizontal"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-width",`${e}px`):this.style.removeProperty("--auto-size-available-width")}})):(this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height")),this.arrow&&t.push(po({element:this.arrowEl,padding:this.arrowPadding})),uo(this.anchorEl,this.popup,{placement:this.placement,middleware:t,strategy:this.strategy}).then(({x:e,y:r,middlewareData:a,placement:n})=>{let d=getComputedStyle(this).direction==="rtl",h={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]];if(this.setAttribute("data-current-placement",n),Object.assign(this.popup.style,{left:`${e}px`,top:`${r}px`}),this.arrow){let u=a.arrow.x,f=a.arrow.y,b="",k="",x="",$="";if(this.arrowPlacement==="start"){let z=typeof u=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";b=typeof f=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",k=d?z:"",$=d?"":z}else if(this.arrowPlacement==="end"){let z=typeof u=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";k=d?"":z,$=d?z:"",x=typeof f=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""}else this.arrowPlacement==="center"?($=typeof u=="number"?"calc(50% - var(--arrow-size-diagonal))":"",b=typeof f=="number"?"calc(50% - var(--arrow-size-diagonal))":""):($=typeof u=="number"?`${u}px`:"",b=typeof f=="number"?`${f}px`:"");Object.assign(this.arrowEl.style,{top:b,right:k,bottom:x,left:$,[h]:"calc(var(--arrow-size-diagonal) * -1)"})}}),this.emit("sd-reposition")}render(){return p`<slot name="anchor" @slotchange="${this.handleAnchorChange}"></slot><div part="popup" class="${c("isolate",this.strategy!=="fixed"?"absolute":"fixed",!this.active&&"hidden")}"><slot></slot>${this.arrow?p`<div part="arrow" class="absolute rotate-45 -z-10" role="presentation"></div>`:""}</div>`}};H.styles=[...m.styles,v`:host{--arrow-color:var(--sd-color-neutral-1000);--arrow-size:6px;--arrow-size-diagonal:calc(var(--arrow-size)*0.7071);--arrow-padding-offset:calc(var(--arrow-size-diagonal) - var(--arrow-size));display:contents}[part=popup]{max-height:var(--auto-size-available-height,none);max-width:var(--auto-size-available-width,none)}[part=arrow]{background:var(--arrow-color);height:calc(var(--arrow-size-diagonal)*2);width:calc(var(--arrow-size-diagonal)*2)}`],o([g('[part="popup"]')],H.prototype,"popup",2),o([g('[part="arrow"]')],H.prototype,"arrowEl",2),o([l()],H.prototype,"anchor",2),o([l({type:Boolean,reflect:!0})],H.prototype,"active",2),o([l({reflect:!0})],H.prototype,"placement",2),o([l({reflect:!0})],H.prototype,"strategy",2),o([l({type:Number})],H.prototype,"distance",2),o([l({type:Number})],H.prototype,"skidding",2),o([l({type:Boolean})],H.prototype,"arrow",2),o([l({attribute:"arrow-placement"})],H.prototype,"arrowPlacement",2),o([l({attribute:"arrow-padding",type:Number})],H.prototype,"arrowPadding",2),o([l({type:Boolean})],H.prototype,"flip",2),o([l({attribute:"flip-fallback-placements",converter:{fromAttribute:t=>t.split(" ").map(e=>e.trim()).filter(e=>e!==""),toAttribute:t=>t.join(" ")}})],H.prototype,"flipFallbackPlacements",2),o([l({attribute:"flip-fallback-strategy"})],H.prototype,"flipFallbackStrategy",2),o([l({type:Object})],H.prototype,"flipBoundary",2),o([l({attribute:"flip-padding",type:Number})],H.prototype,"flipPadding",2),o([l({type:Boolean})],H.prototype,"shift",2),o([l({type:Object})],H.prototype,"shiftBoundary",2),o([l({attribute:"shift-padding",type:Number})],H.prototype,"shiftPadding",2),o([l({attribute:"auto-size"})],H.prototype,"autoSize",2),o([l()],H.prototype,"sync",2),o([l({type:Object})],H.prototype,"autoSizeBoundary",2),o([l({attribute:"auto-size-padding",type:Number})],H.prototype,"autoSizePadding",2),H=o([y("sd-popup")],H);var st=class extends m{constructor(){super(...arguments);this.size="lg";this.selected=!1;this.toggleable=!1;this.removable=!1;this.disabled=!1;this.href=""}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}handleRemoveClick(){this.emit("sd-remove")}isLink(){return!!this.href}click(){this.tag.click()}focus(t){this.tag.focus(t)}blur(){this.tag.blur()}render(){let t=this.isLink(),e=t?X`a`:X`button`;return F`<${e} part="base" type="${E(t?void 0:"button")}" href="${E(t?this.href:void 0)}" rel="${E(t&&this.target?"noreferrer noopener":void 0)}" target="${E(t?this.target:void 0)}" download="${E(t?this.download:void 0)}" ?disabled="${E(t?void 0:this.disabled)}" aria-disabled="${this.disabled?"true":"false"}" aria-pressed="${E(this.toggleable?this.selected:void 0)}" tabindex="${this.disabled?"-1":"0"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" class="${c("inline-flex border box-border rounded-full items-center leading-none whitespace-nowrap focus-visible:focus-outline",{lg:"h-8 text-base gap-2",sm:"h-6 text-sm gap-1"}[this.size],{lg:this.removable?"pl-4 pr-3 py-2":"px-4 py-2",sm:this.removable?"pl-3 pr-2 py-2":"px-3 py-[5px]"}[this.size],this.selected?"bg-primary border-primary text-white hover:bg-primary-500 hover:border-primary-500 disabled:bg-neutral-500 disabled:border-neutral-500":"border-primary text-primary hover:border-primary-500 hover:bg-neutral-100 hover:text-primary-500 disabled:border-neutral-500 disabled:text-neutral-500",this.disabled&&!t&&"cursor-not-allowed")}"><slot part="content"></slot>${this.removable?F`<slot part="removable-indicator" name="removable-indicator" @click="${this.handleRemoveClick}" class="${c({lg:"text-base",sm:"text-[12px]"}[this.size])}"><sd-icon library="system" name="close" label="remove"></sd-icon></slot>`:""}</${e}>`}};st.styles=[...m.styles,v`:host{display:inline-block}`],o([g("a, button")],st.prototype,"tag",2),o([l({reflect:!0})],st.prototype,"size",2),o([l({type:Boolean,reflect:!0})],st.prototype,"selected",2),o([l({type:Boolean,reflect:!0})],st.prototype,"toggleable",2),o([l({type:Boolean,reflect:!0})],st.prototype,"removable",2),o([l({type:Boolean,reflect:!0})],st.prototype,"disabled",2),o([l()],st.prototype,"href",2),o([l()],st.prototype,"target",2),o([l()],st.prototype,"download",2),st=o([y("sd-tag")],st);var T=class extends m{constructor(){super(...arguments);this.formControlController=new pt(this,{assumeInteractionOn:["sd-blur","sd-input"]});this.hasSlotController=new D(this,"help-text","label");this.localize=new P(this);this.hasHover=!1;this.hasFocus=!1;this.displayInputValue="";this.selectedTextLabel="";this.selectedOptions=[];this.filteredOptions=[];this.allOptions=[];this.showValidStyle=!1;this.showInvalidStyle=!1;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.currentPlacement=this.placement;this.getOption=Ss;this.multiple=!1;this.useTags=!0;this.maxOptionsVisible=3;this.styleOnValid=!1;this.filter=(t,e)=>{let r=Ui(t.value),a=Ui(t.getTextLabel()),n=Ui(e);return r.includes(n)||a.includes(n)};this.getTag=t=>p`<sd-tag ?disabled="${this.disabled}" part="tag" exportparts="
112
112
  base:tag__base,
113
113
  content:tag__content,
114
114
  removable-indicator:tag__removable-indicator,
@@ -157,7 +157,7 @@
157
157
  <slot part="content__slot" class="block" role="region" aria-labelledby="header"></slot>
158
158
  </div>
159
159
  </${t}>
160
- `}};me.styles=[...ft.styles,v`: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)}}`],o([l({type:Boolean,reflect:!0})],me.prototype,"expandable",2),me=o([y("sd-quickfact")],me);S("quickfact.show",{keyframes:[{height:"0",opacity:"0"},{height:"auto",opacity:"1"}],options:{duration:300,easing:"ease"}});S("quickfact.hide",{keyframes:[{height:"auto",opacity:"1"},{height:"0",opacity:"0"}],options:{duration:300,easing:"ease"}});var ht=class extends m{constructor(){super(...arguments);this.checked=!1;this.hasFocus=!1;this.size="lg";this.disabled=!1;this.visuallyDisabled=!1;this.invalid=!1}connectedCallback(){super.connectedCallback(),this.handleBlur=this.handleBlur.bind(this),this.handleClick=this.handleClick.bind(this),this.handleFocus=this.handleFocus.bind(this),this.setInitialAttributes(),this.addEventListeners()}disconnectedCallback(){this.removeEventListeners()}addEventListeners(){this.addEventListener("blur",this.handleBlur),this.addEventListener("click",this.handleClick),this.addEventListener("focus",this.handleFocus)}removeEventListeners(){this.removeEventListener("blur",this.handleBlur),this.removeEventListener("click",this.handleClick),this.removeEventListener("focus",this.handleFocus)}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleClick(){!this.disabled&&!this.visuallyDisabled&&(this.checked=!0)}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}setInitialAttributes(){this.setAttribute("role","radio"),this.setAttribute("tabindex","-1"),this.setAttribute("aria-disabled",this.disabled||this.visuallyDisabled?"true":"false")}handleCheckedChange(){this.setAttribute("aria-checked",this.checked?"true":"false"),this.setAttribute("tabindex",this.checked?"0":"-1")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}render(){return p`<span part="base" class="${c("sd-radio group inline-flex items-start items-center text-base leading-normal text-black cursor-pointer align-middle",(this.disabled||this.visuallyDisabled)&&"hover:cursor-not-allowed",{sm:"small-size text-sm",md:"text-base",lg:"text-base"}[this.size])}"><span part="${`${this.checked?"control--checked":"control--unchecked"}`}" class="${c("flex-initial shrink-0 relative inline-flex items-center justify-center border rounded-full bg-white h-4 w-4",this.disabled||this.visuallyDisabled?"border-neutral-500":this.invalid?"border-error hover:border-error-400 group-hover:border-error-400":this.checked?"border-accent hover:border-accent-550 group-hover:border-accent-550":"border-neutral-800 hover:bg-neutral-200 group-hover:bg-neutral-200")}">${this.checked?p`<span part="checked" class="${c("rounded-full inline-flex text-white bg-accent h-2.5 w-2.5",this.disabled?"bg-neutral-500":this.visuallyDisabled?"bg-white":this.invalid?"bg-error hover:bg-error-400 group-hover:bg-error-400":this.checked?"bg-accent hover:bg-accent-550 group-hover:bg-accent-550":"bg-neutral-800")}"></span>`:""}</span><slot part="label" class="${c("ml-2 select-none inline-block",this.disabled||this.visuallyDisabled?"text-neutral-500":this.invalid?"text-error":"text-black")}"></slot></span>`}};ht.styles=[...m.styles,v`:host{display:block;width:-moz-max-content;width:max-content}:host(:focus-visible),:host([visually-disabled]:focus-visible) [part=control--checked],:host([visually-disabled]:focus-visible) [part=control--unchecked]{outline:2px solid transparent;outline-offset:2px}:host(:focus-visible) [part=control--checked],:host(:focus-visible) [part=control--unchecked]{outline-color:rgb(var(--sd-color-primary,0 53 142)/1);outline-offset:2px;outline-style:solid;outline-width:2px}`],o([C()],ht.prototype,"checked",2),o([C()],ht.prototype,"hasFocus",2),o([l({reflect:!0})],ht.prototype,"size",2),o([l({type:Boolean,reflect:!0})],ht.prototype,"disabled",2),o([l({type:Boolean,reflect:!0,attribute:"visually-disabled"})],ht.prototype,"visuallyDisabled",2),o([l()],ht.prototype,"value",2),o([l({type:Boolean,reflect:!0})],ht.prototype,"invalid",2),o([w("checked")],ht.prototype,"handleCheckedChange",1),o([w(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],ht.prototype,"handleDisabledChange",1),ht=o([y("sd-radio")],ht);var bt=class extends m{constructor(){super(...arguments);this.hasSlotController=new D(this,"[default]","icon");this.hasFocus=!1;this.size="lg";this.disabled=!1;this.visuallyDisabled=!1;this.checked=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","presentation")}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleClick(t){if(this.disabled||this.visuallyDisabled){t.preventDefault(),t.stopPropagation();return}this.checked=!0}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleDisabledChange(){let t=this.disabled||this.visuallyDisabled;this.setAttribute("aria-disabled",t?"true":"false")}focus(t){this.input.focus(t)}blur(){this.input.blur()}render(){let t=this.hasSlotController.test("[default]"),e=this.hasSlotController.test("icon"),r=`${this.size}-${t?"label":"no-label"}`;return p`<div part="base" role="presentation" class="relative"><button part="${`button${this.checked?" button--checked":""}`}" role="radio" aria-checked="${this.checked}" class="${c("relative text-center border rounded-default transition-all ease-in-out duration-100 items-center justify-center focus-visible:focus-outline",this.size==="sm"?"text-sm":"text-base",this.visuallyDisabled&&"focus-visible:outline-none",this.checked&&!this.disabled&&!this.visuallyDisabled?"bg-primary border-primary text-white hover:bg-primary-500 hover:border-primary-500":(this.disabled||this.visuallyDisabled)&&!this.checked?"border-neutral-500 text-neutral-500 hover:cursor-not-allowed":(this.disabled||this.visuallyDisabled)&&this.checked?"text-neutral-500 border-neutral-500 hover:cursor-not-allowed ":"bg-transparent text-primary border-primary hover:bg-primary-100 hover:border-primary-500 hover:text-primary-500 cursor-pointer",t&&"px-4",this.hasFocus&&"focused-class",t&&"button--has-label",e&&"button--has-icon flex gap-2",r)}" aria-disabled="${this.disabled||this.visuallyDisabled}" type="button" value="${E(this.value)}" tabindex="${this.checked?"0":"-1"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" @click="${this.handleClick}"><slot name="icon" part="icon" class="${c(e&&"inline-flex relative items-center",{sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size])}" ?hidden="${!e}"></slot>${t?p`<slot part="label" class="button__label inline-flex relative items-center whitespace-nowrap"></slot>`:null}</button></div>`}};bt.styles=[...m.styles,v`:host{display:block;width:-moz-min-content;width:min-content}.hidden-input{all:unset;inset:var(--sd-spacing-0,0);opacity:var(--sd-opacity-0,0);outline-color:rgb(var(--sd-color-error,204 25 55)/1);outline-style:dotted;outline-width:1px;position:absolute;z-index:-10}.lg-label,.lg-no-label{height:var(--sd-spacing-12,3rem)}.lg-no-label{width:var(--sd-spacing-12,3rem)}.md-label,.md-no-label{height:var(--sd-spacing-10,2.5rem)}.md-no-label{width:var(--sd-spacing-10,2.5rem)}.sm-label,.sm-no-label{height:var(--sd-spacing-8,2rem)}.sm-no-label{width:var(--sd-spacing-8,2rem)}:host(.sd-button-group__button--first:not(.sd-button-group__button--last)) button{border-bottom-right-radius:var(--sd-border-radius-none,0);border-top-right-radius:var(--sd-border-radius-none,0)}:host(.sd-button-group__button--inner) button{border-radius:var(--sd-border-radius-none,0)}:host(.sd-button-group__button--last:not(.sd-button-group__button--first)) button{border-bottom-left-radius:var(--sd-border-radius-none,0);border-top-left-radius:var(--sd-border-radius-none,0)}:host(.sd-button-group__button:not(.sd-button-group__button--first)){margin-inline-start:-1px}:host(.sd-button-group__button--hover){z-index:10}:host(.sd-button-group__button--focus),:host(.sd-button-group__button[checked]){z-index:20}`],o([g(".button")],bt.prototype,"input",2),o([g(".hidden-input")],bt.prototype,"hiddenInput",2),o([C()],bt.prototype,"hasFocus",2),o([l({reflect:!0})],bt.prototype,"size",2),o([l({type:Boolean,reflect:!0})],bt.prototype,"disabled",2),o([l({type:Boolean,reflect:!0,attribute:"visually-disabled"})],bt.prototype,"visuallyDisabled",2),o([l({type:Boolean,reflect:!0})],bt.prototype,"checked",2),o([l()],bt.prototype,"value",2),o([w(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],bt.prototype,"handleDisabledChange",1),bt=o([y("sd-radio-button")],bt);var Zt=class extends m{constructor(){super(...arguments);this.disableRole=!1;this.label=""}handleFocus(t){let e=yi(t.target);e==null||e.classList.add("sd-button-group__button--focus")}handleBlur(t){let e=yi(t.target);e==null||e.classList.remove("sd-button-group__button--focus")}handleMouseOver(t){let e=yi(t.target);e==null||e.classList.add("sd-button-group__button--hover")}handleMouseOut(t){let e=yi(t.target);e==null||e.classList.remove("sd-button-group__button--hover")}handleSlotChange(){let t=[...this.defaultSlot.assignedElements({flatten:!0})];t.forEach(e=>{let r=t.indexOf(e),a=yi(e);a!==null&&(a.classList.add("sd-button-group__button"),a.classList.toggle("sd-button-group__button--first",r===0),a.classList.toggle("sd-button-group__button--inner",r>0&&r<t.length-1),a.classList.toggle("sd-button-group__button--last",r===t.length-1),a.classList.toggle("sd-button-group__button--radio",a.tagName.toLowerCase()==="sd-radio-button"))})}render(){return p`<slot part="base" role="${this.disableRole?"presentation":"group"}" aria-label="${this.label}" @focusout="${this.handleBlur}" @focusin="${this.handleFocus}" @mouseover="${this.handleMouseOver}" @mouseout="${this.handleMouseOut}" @slotchange="${this.handleSlotChange}"></slot>`}};Zt.styles=[...m.styles,v`:host{display:inline-block}[part=base]{display:flex;flex-wrap:nowrap}`],o([g("slot")],Zt.prototype,"defaultSlot",2),o([C()],Zt.prototype,"disableRole",2),o([l()],Zt.prototype,"label",2),Zt=o([y("sd-button-group")],Zt);function yi(s){var t;let i="sd-button, sd-radio-button";return(t=s.closest(i))!=null?t:s.querySelector(i)}var Z=class extends m{constructor(){super(...arguments);this.formControlController=new pt(this);this.hasSlotController=new D(this,"label","error-text");this.customValidityMessage="";this.hasButtonGroup=!1;this.defaultValue="";this.showInvalidStyle=!1;this.size="lg";this.required=!1;this.orientation="vertical";this.label="";this.helpText="";this.boldLabel=!1;this.name="option";this.value="";this.form=""}get validity(){let t=this.required&&!this.value;return this.customValidityMessage!==""?zs:t?Ls:Ye}get validationMessage(){let t=this.required&&!this.value;return this.customValidityMessage!==""?this.customValidityMessage:t?this.validationInput.validationMessage:""}connectedCallback(){super.connectedCallback(),this.defaultValue=this.value}firstUpdated(){this.formControlController.updateValidity()}getAllRadios(){return[...this.querySelectorAll("sd-radio, sd-radio-button")]}handleRadioClick(t){let e=t.target.closest("sd-radio, sd-radio-button"),r=this.getAllRadios(),a=this.value;e.disabled||(this.value=e.value,r.forEach(n=>n.checked=n===e),this.value!==a&&(this.emit("sd-change"),this.emit("sd-input")))}handleKeyDown(t){var h;if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"," "].includes(t.key))return;let e=this.getAllRadios().filter(u=>!u.disabled),r=(h=e.find(u=>u.checked))!=null?h:e[0],a=t.key===" "?0:["ArrowUp","ArrowLeft"].includes(t.key)?-1:1,n=this.value,d=e.indexOf(r)+a;d<0&&(d=e.length-1),d>e.length-1&&(d=0),this.getAllRadios().forEach(u=>{u.checked=!1,this.hasButtonGroup||(u.tabIndex=-1)}),this.value=e[d].value,e[d].checked=!0,this.hasButtonGroup?e[d].shadowRoot.querySelector("button").focus():(e[d].tabIndex=0,e[d].focus()),this.value!==n&&(this.emit("sd-change"),this.emit("sd-input")),t.preventDefault()}focus(){let t=this.getAllRadios(),r=t.find(a=>a.checked)||t[0];r&&r.focus()}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}async syncRadioElements(){var e,r;let t=this.getAllRadios();if(await Promise.all(t.map(async a=>{await a.updateComplete,a.checked=a.value===this.value,a.size=this.size,a instanceof ht&&(a.invalid=this.showInvalidStyle)})),this.hasButtonGroup=t.some(a=>a.tagName.toLowerCase()==="sd-radio-button"),!t.some(a=>a.checked))if(this.hasButtonGroup){let a=(e=t[0].shadowRoot)==null?void 0:e.querySelector("button");a&&(a.tabIndex=0)}else t[0].tabIndex=0;if(this.hasButtonGroup){let a=(r=this.shadowRoot)==null?void 0:r.querySelector("sd-button-group");a&&(a.disableRole=!0)}}syncRadios(){if(customElements.get("sd-radio")&&customElements.get("sd-radio-button")){this.syncRadioElements();return}customElements.get("sd-radio")?this.syncRadioElements():customElements.whenDefined("sd-radio").then(()=>this.syncRadios()),customElements.get("sd-radio-button")?this.syncRadioElements():customElements.whenDefined("sd-radio-button").then(()=>this.syncRadios())}updateCheckedRadio(){this.getAllRadios().forEach(e=>e.checked=e.value===this.value),this.formControlController.setValidity(this.validity.valid)}handleSizeChange(){this.syncRadios()}handleInvalidChange(){this.syncRadios()}handleValueChange(){this.hasUpdated&&(this.updateCheckedRadio(),this.reportValidity())}checkValidity(){let t=this.required&&!this.value,e=this.customValidityMessage!=="";return t||e?(this.formControlController.emitInvalidEvent(),!1):!0}getForm(){return this.formControlController.getForm()}reportValidity(){let t=this.validity.valid;return this.formControlController.setValidity(t),this.validationInput.hidden=!0,clearTimeout(this.validationTimeout),this.formControlController.fakeUserInteraction(),t||(this.validationInput.hidden=!1,this.validationInput.reportValidity(),this.validationTimeout=setTimeout(()=>this.validationInput.hidden=!0,1e4)),t}setCustomValidity(t=""){this.customValidityMessage=t,this.validationInput.setCustomValidity(t),this.formControlController.updateValidity()}render(){let t=this.hasSlotController.test("label"),e=this.label?!0:t,r=this.hasSlotController.test("help-text"),a=this.helpText?!0:!!r,n=this.hasSlotController.test("tooltip"),d=p`<slot @slotchange="${this.syncRadios}" @click="${this.handleRadioClick}" @keydown="${this.handleKeyDown}"></slot>`;return p`<fieldset part="form-control" class="${c("border-0 p-0 m-0 flex flex-col",{sm:"text-sm",md:"text-base",lg:"text-base"}[this.size])}" role="radiogroup" aria-describedby="invalid-message">${e||n?p`<div class="flex items-center gap-1 mb-2"><legend part="form-control-label" id="label" class="${c("p-0 leading-normal text-black text-left",e?"flex":"hidden",this.boldLabel&&"font-bold")}" @click="${this.focus}" aria-hidden="${e?"false":"true"}"><slot name="label">${this.label}</slot></legend>${n?p`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${c("flex",{vertical:"flex-col",horizontal:"flex-row"}[this.orientation])}"><div class="sr-only"><label><input id="validation-input" type="text" ?required="${this.required}" tabindex="-1" hidden @invalid="${this.handleInvalid}"></label></div>${this.hasButtonGroup?p`<sd-button-group part="button-group" exportparts="base:button-group__base" role="presentation">${d}</sd-button-group>`:d}</div></fieldset><slot name="help-text" part="form-control-help-text" id="help-text" class="${c("text-sm text-neutral-700 mt-2",a?"block":"hidden")}" aria-hidden="${!a}">${this.helpText}</slot>${this.formControlController.renderInvalidMessage()}`}};Z.dependencies={"sd-button-group":Zt},Z.styles=[...m.styles,v`:host{display:block}:host([orientation=vertical]) ::slotted(sd-radio){display:flex;margin-bottom:var(--sd-spacing-2,.5rem)}:host([orientation=vertical]) ::slotted(sd-radio:last-of-type){margin-bottom:var(--sd-spacing-0,0)}:host([orientation=horizontal]) ::slotted(sd-radio){margin-right:var(--sd-spacing-6,1.5rem)}:host([orientation=horizontal]) ::slotted(sd-radio:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-radio){margin-right:var(--sd-spacing-4,1rem)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-radio:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([required]) #label:after{content:" *"}`],o([g("slot:not([name])")],Z.prototype,"defaultSlot",2),o([g("#validation-input")],Z.prototype,"validationInput",2),o([g("#invalid-message")],Z.prototype,"invalidMessage",2),o([C()],Z.prototype,"hasButtonGroup",2),o([C()],Z.prototype,"defaultValue",2),o([C()],Z.prototype,"showInvalidStyle",2),o([l({reflect:!0})],Z.prototype,"size",2),o([l({type:Boolean,reflect:!0})],Z.prototype,"required",2),o([l({reflect:!0})],Z.prototype,"orientation",2),o([l()],Z.prototype,"label",2),o([l({attribute:"help-text"})],Z.prototype,"helpText",2),o([l({type:Boolean,reflect:!0})],Z.prototype,"boldLabel",2),o([l()],Z.prototype,"name",2),o([l({reflect:!0})],Z.prototype,"value",2),o([l({reflect:!0})],Z.prototype,"form",2),o([w("size",{waitUntilFirstUpdate:!0})],Z.prototype,"handleSizeChange",1),o([w("showInvalidStyle",{waitUntilFirstUpdate:!0})],Z.prototype,"handleInvalidChange",1),o([w("value")],Z.prototype,"handleValueChange",1),Z=o([y("sd-radio-group")],Z);var mt=class extends m{constructor(){super(...arguments);this.localize=new P(this);this.orientation="horizontal";this.scrollbars=!1;this.buttons=!1;this.shadows=!1;this.inset=!1;this.step=150;this.canScroll={left:!1,right:!1,up:!1,down:!1};this.isScrollHorizontalEnabled=!1;this.isScrollVerticalEnabled=!1;this.isKeyboardNavigation=!1;this.scrollContainer=null}connectedCallback(){super.connectedCallback(),this.updateScrollEnabledFlags(),this.resizeObserver=new ResizeObserver(()=>{this.updateScrollIndicatorVisibility()}),this.updateComplete.then(()=>{this.scrollContainer=this.renderRoot.querySelector(".scroll-container"),this.scrollContainer&&this.resizeObserver.observe(this.scrollContainer)})}disconnectedCallback(){super.disconnectedCallback(),this.scrollContainer&&this.resizeObserver.unobserve(this.scrollContainer)}updated(t){super.updated(t),(t.has("orientation")||t.has("buttons")||t.has("shadows"))&&(this.updateScrollEnabledFlags(),this.updateScrollIndicatorVisibility())}updateScrollEnabledFlags(){let t=this.orientation;this.isScrollHorizontalEnabled=t==="horizontal"||t==="auto",this.isScrollVerticalEnabled=t==="vertical"||t==="auto"}get container(){return this.renderRoot.querySelector(".scroll-container")}updateScrollIndicatorVisibility(){let t=this.container;if(!t)return;let e=this.isScrollHorizontalEnabled&&t.scrollLeft>0,r=this.isScrollHorizontalEnabled&&t.scrollLeft+t.clientWidth<t.scrollWidth-1,a=this.isScrollVerticalEnabled&&t.scrollTop>0,n=this.isScrollVerticalEnabled&&t.scrollTop+t.clientHeight<t.scrollHeight-1,d=this.renderRoot.querySelector('[part="button-start"]'),h=this.renderRoot.querySelector('[part="button-end"]');this.canScroll={left:this.isKeyboardNavigation?this.isScrollHorizontalEnabled:e,right:this.isKeyboardNavigation?this.isScrollHorizontalEnabled:r,up:this.isKeyboardNavigation?this.isScrollVerticalEnabled:a,down:this.isKeyboardNavigation?this.isScrollVerticalEnabled:n};let u=e||a,f=r||n;u&&this.dispatchEvent(new CustomEvent("start")),f&&this.dispatchEvent(new CustomEvent("end")),this.isKeyboardNavigation&&(d&&(d.hidden=!u),d&&u&&!(n||r)&&d.focus(),h&&(h.hidden=!f),h&&f&&!(a||e)&&h.focus())}handleScroll(t,e){var h;let r=t==="left"||t==="up"?-this.step:this.step,a=t==="left"||t==="right"?"left":"top";this.isKeyboardNavigation=(e==null?void 0:e.pointerType)!=="mouse";let n={behavior:"smooth"};n[a]=r,(h=this.scrollContainer)==null||h.scrollBy(n);let d=`button-${t}`;this.dispatchEvent(new CustomEvent(d,{bubbles:!0,composed:!0}))}render(){let t="relative p-0 border-0 bg-transparent cursor-pointer w-5 h-5 flex items-center justify-center sd-interactive rounded-md flex text-lg",e="scroll-shadow absolute z-10 pointer-events-none";return p`<div part="base" class="${c("scroll-container flex overflow-hidden flex-1",this.orientation==="horizontal"&&"scroll-horizontal flex-row whitespace-nowrap items-center overflow-x-scroll overflow-y-hidden",this.orientation==="vertical"&&"scroll-vertical justify-items-center overflow-y-scroll overflow-x-hidden",this.orientation==="auto"&&"scroll-auto overflow-auto",this.scrollbars?"show-scrollbars":"hide-scrollbars",this.inset?"p-4":"")}" @scroll="${this.updateScrollIndicatorVisibility}" tabindex="0"><div part="scroll-content" class="flex-1"><slot></slot></div></div>${this.buttons?p`${this.isScrollHorizontalEnabled?p`${this.canScroll.left?p`<div part="button-left" class="absolute z-10 flex items-center justify-center top-0 left-0 h-full w-8"><button part="button-start" class="${c(t)}" @click="${r=>this.handleScroll("left",r)}"><slot name="icon-start"><sd-icon library="system" name="chevron-up" class="rotate-[-90deg]" label="${this.localize.term("scrollToStart")}"></sd-icon></slot></button></div>`:null} ${this.canScroll.right?p`<div part="button-right" class="absolute z-10 flex items-center justify-center top-0 right-0 h-full w-8"><button part="button-end" class="${c(t)}" @click="${r=>this.handleScroll("right",r)}"><slot name="icon-end"><sd-icon library="system" name="chevron-down" class="rotate-[-90deg]" label="${this.localize.term("scrollToEnd")}"></sd-icon></slot></button></div>`:null}`:null} ${this.isScrollVerticalEnabled?p`${this.canScroll.up?p`<div part="button-top" class="absolute z-10 flex items-center justify-center top-0 left-0 w-full h-8"><button part="button-start" class="${c(t)}" @click="${r=>this.handleScroll("up",r)}"><slot name="icon-start"><sd-icon library="system" name="chevron-up" label="${this.localize.term("scrollToStart")}"></sd-icon></slot></button></div>`:null} ${this.canScroll.down?p`<div part="button-bottom" class="absolute z-10 flex items-center justify-center bottom-0 left-0 w-full h-8"><button part="button-end" class="${c(t)}" @click="${r=>this.handleScroll("down",r)}"><slot name="icon-end"><sd-icon library="system" name="chevron-down" label="${this.localize.term("scrollToEnd")}"></sd-icon></slot></button></div>`:null}`:null}`:null} ${this.shadows?p`${this.isScrollHorizontalEnabled?p`${this.canScroll.left?p`<div part="shadow-left" class="${e} left top-0 left-0 w-[6px] h-full"></div>`:null} ${this.canScroll.right?p`<div part="shadow-right" class="${e} right top-0 right-0 w-[6px] h-full"></div>`:null}`:null} ${this.isScrollVerticalEnabled?p`${this.canScroll.up?p`<div part="shadow-top" class="${e} top top-0 left-0 w-full h-[6px]"></div>`:null} ${this.canScroll.down?p`<div part="shadow-bottom" class="${e} bottom bottom-0 left-0 w-full h-[6px]"></div>`:null}`:null}`:null}`}};mt.styles=[...m.styles,v`:host{--gradient-color:hsla(0,0%,100%,0);--gradient:var(--gradient-color) 0%,#fff 80%,#fff 100%;display:flex;overflow:hidden;position:relative}.hide-scrollbars{scrollbar-width:none;-ms-overflow-style:none}.hide-scrollbars::-webkit-scrollbar{display:none}.scroll-container::-webkit-scrollbar-thumb{background-color:transparent}.scroll-container:hover::-webkit-scrollbar-thumb{background:var(--background-neutral-400,#c3c3c3);border-radius:var(--sd-border-radius-sm,.125rem)}.scroll-container::-webkit-scrollbar{height:var(--sd-spacing-1,.25rem);width:var(--sd-spacing-1,.25rem)}.scroll-auto{overflow:auto}[part=button-left]{background:linear-gradient(270deg,var(--gradient))}[part=button-right]{background:linear-gradient(90deg,var(--gradient))}[part=button-top]{background:linear-gradient(0deg,var(--gradient))}[part=button-bottom]{background:linear-gradient(180deg,var(--gradient))}[part=shadow-left]{background:linear-gradient(270deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}[part=shadow-right]{background:linear-gradient(90deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}[part=shadow-top]{background:linear-gradient(0deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}[part=shadow-bottom]{background:linear-gradient(180deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}.sd-icon--top{align-self:flex-start}.sd-icon--down{align-self:flex-end}`],o([l({type:String,reflect:!0})],mt.prototype,"orientation",2),o([l({type:Boolean,reflect:!0})],mt.prototype,"scrollbars",2),o([l({type:Boolean,reflect:!0})],mt.prototype,"buttons",2),o([l({type:Boolean,reflect:!0})],mt.prototype,"shadows",2),o([l({type:Boolean,reflect:!0})],mt.prototype,"inset",2),o([l({type:Number,reflect:!0})],mt.prototype,"step",2),o([C()],mt.prototype,"canScroll",2),o([C()],mt.prototype,"isScrollHorizontalEnabled",2),o([C()],mt.prototype,"isScrollVerticalEnabled",2),o([C()],mt.prototype,"isKeyboardNavigation",2),mt=o([y("sd-scrollable")],mt);var L=class extends m{constructor(){super(...arguments);this.formControlController=new pt(this,{assumeInteractionOn:["sd-blur","sd-input"]});this.hasSlotController=new D(this,"help-text","label");this.localize=new P(this);this.typeToSelectString="";this.hasHover=!1;this.displayLabel="";this.deletedTagLabel="";this.hasFocus=!1;this.selectedOptions=[];this.showValidStyle=!1;this.showInvalidStyle=!1;this.defaultValue="";this.open=!1;this.size="lg";this.placement="bottom";this.label="";this.placeholder="";this.maxOptionsTagLabel="";this.disabled=!1;this.visuallyDisabled=!1;this.helpText="";this.currentPlacement=this.placement;this.clearable=!1;this.multiple=!1;this.useTags=!1;this.maxOptionsVisible=3;this.form="";this.name="";this.value="";this.required=!1;this.styleOnValid=!1;this.hoist=!1;this.getTag=t=>p`<sd-tag ?disabled="${this.disabled}" part="tag" exportparts="
160
+ `}};me.styles=[...ft.styles,v`: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)}}`],o([l({type:Boolean,reflect:!0})],me.prototype,"expandable",2),me=o([y("sd-quickfact")],me);S("quickfact.show",{keyframes:[{height:"0",opacity:"0"},{height:"auto",opacity:"1"}],options:{duration:300,easing:"ease"}});S("quickfact.hide",{keyframes:[{height:"auto",opacity:"1"},{height:"0",opacity:"0"}],options:{duration:300,easing:"ease"}});var ht=class extends m{constructor(){super(...arguments);this.checked=!1;this.hasFocus=!1;this.size="lg";this.disabled=!1;this.visuallyDisabled=!1;this.invalid=!1}connectedCallback(){super.connectedCallback(),this.handleBlur=this.handleBlur.bind(this),this.handleClick=this.handleClick.bind(this),this.handleFocus=this.handleFocus.bind(this),this.setInitialAttributes(),this.addEventListeners()}disconnectedCallback(){this.removeEventListeners()}addEventListeners(){this.addEventListener("blur",this.handleBlur),this.addEventListener("click",this.handleClick),this.addEventListener("focus",this.handleFocus)}removeEventListeners(){this.removeEventListener("blur",this.handleBlur),this.removeEventListener("click",this.handleClick),this.removeEventListener("focus",this.handleFocus)}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleClick(){!this.disabled&&!this.visuallyDisabled&&(this.checked=!0)}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}setInitialAttributes(){this.setAttribute("role","radio"),this.setAttribute("tabindex","-1"),this.setAttribute("aria-disabled",this.disabled||this.visuallyDisabled?"true":"false")}handleCheckedChange(){this.setAttribute("aria-checked",this.checked?"true":"false"),this.setAttribute("tabindex",this.checked?"0":"-1")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}render(){return p`<span part="base" class="${c("sd-radio group inline-flex items-start items-center text-base leading-normal text-black cursor-pointer align-middle",(this.disabled||this.visuallyDisabled)&&"hover:cursor-not-allowed",{sm:"small-size text-sm",md:"text-base",lg:"text-base"}[this.size])}"><span part="${`${this.checked?"control--checked":"control--unchecked"}`}" class="${c("flex-initial shrink-0 relative inline-flex items-center justify-center border rounded-full bg-white h-4 w-4",this.disabled||this.visuallyDisabled?"border-neutral-500":this.invalid?"border-error hover:border-error-400 group-hover:border-error-400":this.checked?"border-accent hover:border-accent-550 group-hover:border-accent-550":"border-neutral-800 hover:bg-neutral-200 group-hover:bg-neutral-200")}">${this.checked?p`<span part="checked" class="${c("rounded-full inline-flex text-white bg-accent h-2.5 w-2.5",this.disabled?"bg-neutral-500":this.visuallyDisabled?"bg-white":this.invalid?"bg-error hover:bg-error-400 group-hover:bg-error-400":this.checked?"bg-accent hover:bg-accent-550 group-hover:bg-accent-550":"bg-neutral-800")}"></span>`:""}</span><slot part="label" class="${c("ml-2 select-none inline-block",this.disabled||this.visuallyDisabled?"text-neutral-500":this.invalid?"text-error":"text-black")}"></slot></span>`}};ht.styles=[...m.styles,v`:host{display:block;width:-moz-max-content;width:max-content}:host(:focus-visible),:host([visually-disabled]:focus-visible) [part=control--checked],:host([visually-disabled]:focus-visible) [part=control--unchecked]{outline:2px solid transparent;outline-offset:2px}:host(:focus-visible) [part=control--checked],:host(:focus-visible) [part=control--unchecked]{outline-color:rgb(var(--sd-color-primary,0 53 142)/1);outline-offset:2px;outline-style:solid;outline-width:2px}`],o([C()],ht.prototype,"checked",2),o([C()],ht.prototype,"hasFocus",2),o([l({reflect:!0})],ht.prototype,"size",2),o([l({type:Boolean,reflect:!0})],ht.prototype,"disabled",2),o([l({type:Boolean,reflect:!0,attribute:"visually-disabled"})],ht.prototype,"visuallyDisabled",2),o([l()],ht.prototype,"value",2),o([l({type:Boolean,reflect:!0})],ht.prototype,"invalid",2),o([w("checked")],ht.prototype,"handleCheckedChange",1),o([w(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],ht.prototype,"handleDisabledChange",1),ht=o([y("sd-radio")],ht);var bt=class extends m{constructor(){super(...arguments);this.hasSlotController=new D(this,"[default]","icon");this.hasFocus=!1;this.size="lg";this.disabled=!1;this.visuallyDisabled=!1;this.checked=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","presentation")}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleClick(t){if(this.disabled||this.visuallyDisabled){t.preventDefault(),t.stopPropagation();return}this.checked=!0}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleDisabledChange(){let t=this.disabled||this.visuallyDisabled;this.setAttribute("aria-disabled",t?"true":"false")}focus(t){this.input.focus(t)}blur(){this.input.blur()}render(){let t=this.hasSlotController.test("[default]"),e=this.hasSlotController.test("icon"),r=`${this.size}-${t?"label":"no-label"}`;return p`<div part="base" role="presentation" class="relative"><button part="${`button${this.checked?" button--checked":""}`}" role="radio" aria-checked="${this.checked}" class="${c("relative text-center border rounded-default transition-all ease-in-out duration-100 items-center justify-center focus-visible:focus-outline",this.size==="sm"?"text-sm":"text-base",this.visuallyDisabled&&"focus-visible:outline-none",this.checked&&!this.disabled&&!this.visuallyDisabled?"bg-primary border-primary text-white hover:bg-primary-500 hover:border-primary-500":(this.disabled||this.visuallyDisabled)&&!this.checked?"border-neutral-500 text-neutral-500 hover:cursor-not-allowed":(this.disabled||this.visuallyDisabled)&&this.checked?"text-neutral-500 border-neutral-500 hover:cursor-not-allowed ":"bg-transparent text-primary border-primary hover:bg-primary-100 hover:border-primary-500 hover:text-primary-500 cursor-pointer",t&&"px-4",this.hasFocus&&"focused-class",t&&"button--has-label",e&&"button--has-icon flex gap-2",r)}" aria-disabled="${this.disabled||this.visuallyDisabled}" type="button" value="${E(this.value)}" tabindex="${this.checked?"0":"-1"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" @click="${this.handleClick}"><slot name="icon" part="icon" class="${c(e&&"inline-flex relative items-center",{sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size])}" ?hidden="${!e}"></slot>${t?p`<slot part="label" class="button__label inline-flex relative items-center whitespace-nowrap"></slot>`:null}</button></div>`}};bt.styles=[...m.styles,v`:host{display:block;width:-moz-min-content;width:min-content}.hidden-input{all:unset;inset:var(--sd-spacing-0,0);opacity:var(--sd-opacity-0,0);outline-color:rgb(var(--sd-color-error,204 25 55)/1);outline-style:dotted;outline-width:1px;position:absolute;z-index:-10}.lg-label,.lg-no-label{height:var(--sd-spacing-12,3rem)}.lg-no-label{width:var(--sd-spacing-12,3rem)}.md-label,.md-no-label{height:var(--sd-spacing-10,2.5rem)}.md-no-label{width:var(--sd-spacing-10,2.5rem)}.sm-label,.sm-no-label{height:var(--sd-spacing-8,2rem)}.sm-no-label{width:var(--sd-spacing-8,2rem)}:host(.sd-button-group__button--first:not(.sd-button-group__button--last)) button{border-bottom-right-radius:var(--sd-border-radius-none,0);border-top-right-radius:var(--sd-border-radius-none,0)}:host(.sd-button-group__button--inner) button{border-radius:var(--sd-border-radius-none,0)}:host(.sd-button-group__button--last:not(.sd-button-group__button--first)) button{border-bottom-left-radius:var(--sd-border-radius-none,0);border-top-left-radius:var(--sd-border-radius-none,0)}:host(.sd-button-group__button:not(.sd-button-group__button--first)){margin-inline-start:-1px}:host(.sd-button-group__button--hover){z-index:10}:host(.sd-button-group__button--focus),:host(.sd-button-group__button[checked]){z-index:20}`],o([g(".button")],bt.prototype,"input",2),o([g(".hidden-input")],bt.prototype,"hiddenInput",2),o([C()],bt.prototype,"hasFocus",2),o([l({reflect:!0})],bt.prototype,"size",2),o([l({type:Boolean,reflect:!0})],bt.prototype,"disabled",2),o([l({type:Boolean,reflect:!0,attribute:"visually-disabled"})],bt.prototype,"visuallyDisabled",2),o([l({type:Boolean,reflect:!0})],bt.prototype,"checked",2),o([l()],bt.prototype,"value",2),o([w(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],bt.prototype,"handleDisabledChange",1),bt=o([y("sd-radio-button")],bt);var Zt=class extends m{constructor(){super(...arguments);this.disableRole=!1;this.label=""}handleFocus(t){let e=yi(t.target);e==null||e.classList.add("sd-button-group__button--focus")}handleBlur(t){let e=yi(t.target);e==null||e.classList.remove("sd-button-group__button--focus")}handleMouseOver(t){let e=yi(t.target);e==null||e.classList.add("sd-button-group__button--hover")}handleMouseOut(t){let e=yi(t.target);e==null||e.classList.remove("sd-button-group__button--hover")}handleSlotChange(){let t=[...this.defaultSlot.assignedElements({flatten:!0})];t.forEach(e=>{let r=t.indexOf(e),a=yi(e);a!==null&&(a.classList.add("sd-button-group__button"),a.classList.toggle("sd-button-group__button--first",r===0),a.classList.toggle("sd-button-group__button--inner",r>0&&r<t.length-1),a.classList.toggle("sd-button-group__button--last",r===t.length-1),a.classList.toggle("sd-button-group__button--radio",a.tagName.toLowerCase()==="sd-radio-button"))})}render(){return p`<slot part="base" role="${this.disableRole?"presentation":"group"}" aria-label="${this.label}" @focusout="${this.handleBlur}" @focusin="${this.handleFocus}" @mouseover="${this.handleMouseOver}" @mouseout="${this.handleMouseOut}" @slotchange="${this.handleSlotChange}"></slot>`}};Zt.styles=[...m.styles,v`:host{display:inline-block}[part=base]{display:flex;flex-wrap:nowrap}`],o([g("slot")],Zt.prototype,"defaultSlot",2),o([C()],Zt.prototype,"disableRole",2),o([l()],Zt.prototype,"label",2),Zt=o([y("sd-button-group")],Zt);function yi(s){var t;let i="sd-button, sd-radio-button";return(t=s.closest(i))!=null?t:s.querySelector(i)}var Z=class extends m{constructor(){super(...arguments);this.formControlController=new pt(this);this.hasSlotController=new D(this,"label","error-text");this.customValidityMessage="";this.hasButtonGroup=!1;this.defaultValue="";this.showInvalidStyle=!1;this.size="lg";this.required=!1;this.orientation="vertical";this.label="";this.helpText="";this.boldLabel=!1;this.name="option";this.value="";this.form=""}get validity(){let t=this.required&&!this.value;return this.customValidityMessage!==""?zs:t?Ls:Ye}get validationMessage(){let t=this.required&&!this.value;return this.customValidityMessage!==""?this.customValidityMessage:t?this.validationInput.validationMessage:""}connectedCallback(){super.connectedCallback(),this.defaultValue=this.value}firstUpdated(){this.formControlController.updateValidity()}getAllRadios(){return[...this.querySelectorAll("sd-radio, sd-radio-button")]}handleRadioClick(t){let e=t.target.closest("sd-radio, sd-radio-button"),r=this.getAllRadios(),a=this.value;e.disabled||(this.value=e.value,r.forEach(n=>n.checked=n===e),this.value!==a&&(this.emit("sd-change"),this.emit("sd-input")))}handleKeyDown(t){var h;if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"," "].includes(t.key))return;let e=this.getAllRadios().filter(u=>!u.disabled),r=(h=e.find(u=>u.checked))!=null?h:e[0],a=t.key===" "?0:["ArrowUp","ArrowLeft"].includes(t.key)?-1:1,n=this.value,d=e.indexOf(r)+a;d<0&&(d=e.length-1),d>e.length-1&&(d=0),this.getAllRadios().forEach(u=>{u.checked=!1,this.hasButtonGroup||(u.tabIndex=-1)}),this.value=e[d].value,e[d].checked=!0,this.hasButtonGroup?e[d].shadowRoot.querySelector("button").focus():(e[d].tabIndex=0,e[d].focus()),this.value!==n&&(this.emit("sd-change"),this.emit("sd-input")),t.preventDefault()}focus(){let t=this.getAllRadios(),r=t.find(a=>a.checked)||t[0];r&&r.focus()}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}async syncRadioElements(){var e,r;let t=this.getAllRadios();if(await Promise.all(t.map(async a=>{await a.updateComplete,a.checked=a.value===this.value,a.size=this.size,a instanceof ht&&(a.invalid=this.showInvalidStyle)})),this.hasButtonGroup=t.some(a=>a.tagName.toLowerCase()==="sd-radio-button"),!t.some(a=>a.checked))if(this.hasButtonGroup){let a=(e=t[0].shadowRoot)==null?void 0:e.querySelector("button");a&&(a.tabIndex=0)}else t[0].tabIndex=0;if(this.hasButtonGroup){let a=(r=this.shadowRoot)==null?void 0:r.querySelector("sd-button-group");a&&(a.disableRole=!0)}}syncRadios(){if(customElements.get("sd-radio")&&customElements.get("sd-radio-button")){this.syncRadioElements();return}customElements.get("sd-radio")?this.syncRadioElements():customElements.whenDefined("sd-radio").then(()=>this.syncRadios()),customElements.get("sd-radio-button")?this.syncRadioElements():customElements.whenDefined("sd-radio-button").then(()=>this.syncRadios())}updateCheckedRadio(){this.getAllRadios().forEach(e=>e.checked=e.value===this.value),this.formControlController.setValidity(this.validity.valid)}handleSizeChange(){this.syncRadios()}handleInvalidChange(){this.syncRadios()}handleValueChange(){this.hasUpdated&&(this.updateCheckedRadio(),this.reportValidity())}checkValidity(){let t=this.required&&!this.value,e=this.customValidityMessage!=="";return t||e?(this.formControlController.emitInvalidEvent(),!1):!0}getForm(){return this.formControlController.getForm()}reportValidity(){let t=this.validity.valid;return this.formControlController.setValidity(t),this.validationInput.hidden=!0,clearTimeout(this.validationTimeout),this.formControlController.fakeUserInteraction(),t||(this.validationInput.hidden=!1,this.validationInput.reportValidity(),this.validationTimeout=setTimeout(()=>this.validationInput.hidden=!0,1e4)),t}setCustomValidity(t=""){this.customValidityMessage=t,this.validationInput.setCustomValidity(t),this.formControlController.updateValidity()}render(){let t=this.hasSlotController.test("label"),e=this.label?!0:t,r=this.hasSlotController.test("help-text"),a=this.helpText?!0:!!r,n=this.hasSlotController.test("tooltip"),d=p`<slot @slotchange="${this.syncRadios}" @click="${this.handleRadioClick}" @keydown="${this.handleKeyDown}"></slot>`;return p`<fieldset part="form-control" class="${c("border-0 p-0 m-0 flex flex-col",{sm:"text-sm",md:"text-base",lg:"text-base"}[this.size])}" role="radiogroup" aria-describedby="invalid-message">${e||n?p`<div class="flex items-center gap-1 mb-2"><legend part="form-control-label" id="label" class="${c("p-0 leading-normal text-black text-left",e?"flex":"hidden",this.boldLabel&&"font-bold")}" @click="${this.focus}" aria-hidden="${e?"false":"true"}"><slot name="label">${this.label}</slot></legend>${n?p`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${c("flex",{vertical:"flex-col",horizontal:"flex-row"}[this.orientation])}"><div class="sr-only"><label><input id="validation-input" type="text" ?required="${this.required}" aria-labelledby="label" tabindex="-1" hidden @invalid="${this.handleInvalid}"></label></div>${this.hasButtonGroup?p`<sd-button-group part="button-group" exportparts="base:button-group__base" role="presentation">${d}</sd-button-group>`:d}</div></fieldset><slot name="help-text" part="form-control-help-text" id="help-text" class="${c("text-sm text-neutral-700 mt-2",a?"block":"hidden")}" aria-hidden="${!a}">${this.helpText}</slot>${this.formControlController.renderInvalidMessage()}`}};Z.dependencies={"sd-button-group":Zt},Z.styles=[...m.styles,v`:host{display:block}:host([orientation=vertical]) ::slotted(sd-radio){display:flex;margin-bottom:var(--sd-spacing-2,.5rem)}:host([orientation=vertical]) ::slotted(sd-radio:last-of-type){margin-bottom:var(--sd-spacing-0,0)}:host([orientation=horizontal]) ::slotted(sd-radio){margin-right:var(--sd-spacing-6,1.5rem)}:host([orientation=horizontal]) ::slotted(sd-radio:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-radio){margin-right:var(--sd-spacing-4,1rem)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-radio:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([required]) #label:after{content:" *"}`],o([g("slot:not([name])")],Z.prototype,"defaultSlot",2),o([g("#validation-input")],Z.prototype,"validationInput",2),o([g("#invalid-message")],Z.prototype,"invalidMessage",2),o([C()],Z.prototype,"hasButtonGroup",2),o([C()],Z.prototype,"defaultValue",2),o([C()],Z.prototype,"showInvalidStyle",2),o([l({reflect:!0})],Z.prototype,"size",2),o([l({type:Boolean,reflect:!0})],Z.prototype,"required",2),o([l({reflect:!0})],Z.prototype,"orientation",2),o([l()],Z.prototype,"label",2),o([l({attribute:"help-text"})],Z.prototype,"helpText",2),o([l({type:Boolean,reflect:!0})],Z.prototype,"boldLabel",2),o([l()],Z.prototype,"name",2),o([l({reflect:!0})],Z.prototype,"value",2),o([l({reflect:!0})],Z.prototype,"form",2),o([w("size",{waitUntilFirstUpdate:!0})],Z.prototype,"handleSizeChange",1),o([w("showInvalidStyle",{waitUntilFirstUpdate:!0})],Z.prototype,"handleInvalidChange",1),o([w("value")],Z.prototype,"handleValueChange",1),Z=o([y("sd-radio-group")],Z);var mt=class extends m{constructor(){super(...arguments);this.localize=new P(this);this.orientation="horizontal";this.scrollbars=!1;this.buttons=!1;this.shadows=!1;this.inset=!1;this.step=150;this.canScroll={left:!1,right:!1,up:!1,down:!1};this.isScrollHorizontalEnabled=!1;this.isScrollVerticalEnabled=!1;this.isKeyboardNavigation=!1;this.scrollContainer=null}connectedCallback(){super.connectedCallback(),this.updateScrollEnabledFlags(),this.resizeObserver=new ResizeObserver(()=>{this.updateScrollIndicatorVisibility()}),this.updateComplete.then(()=>{this.scrollContainer=this.renderRoot.querySelector(".scroll-container"),this.scrollContainer&&this.resizeObserver.observe(this.scrollContainer)})}disconnectedCallback(){super.disconnectedCallback(),this.scrollContainer&&this.resizeObserver.unobserve(this.scrollContainer)}updated(t){super.updated(t),(t.has("orientation")||t.has("buttons")||t.has("shadows"))&&(this.updateScrollEnabledFlags(),this.updateScrollIndicatorVisibility())}updateScrollEnabledFlags(){let t=this.orientation;this.isScrollHorizontalEnabled=t==="horizontal"||t==="auto",this.isScrollVerticalEnabled=t==="vertical"||t==="auto"}get container(){return this.renderRoot.querySelector(".scroll-container")}updateScrollIndicatorVisibility(){let t=this.container;if(!t)return;let e=this.isScrollHorizontalEnabled&&t.scrollLeft>0,r=this.isScrollHorizontalEnabled&&t.scrollLeft+t.clientWidth<t.scrollWidth-1,a=this.isScrollVerticalEnabled&&t.scrollTop>0,n=this.isScrollVerticalEnabled&&t.scrollTop+t.clientHeight<t.scrollHeight-1,d=this.renderRoot.querySelector('[part="button-start"]'),h=this.renderRoot.querySelector('[part="button-end"]');this.canScroll={left:this.isKeyboardNavigation?this.isScrollHorizontalEnabled:e,right:this.isKeyboardNavigation?this.isScrollHorizontalEnabled:r,up:this.isKeyboardNavigation?this.isScrollVerticalEnabled:a,down:this.isKeyboardNavigation?this.isScrollVerticalEnabled:n};let u=e||a,f=r||n;u&&this.dispatchEvent(new CustomEvent("start")),f&&this.dispatchEvent(new CustomEvent("end")),this.isKeyboardNavigation&&(d&&(d.hidden=!u),d&&u&&!(n||r)&&d.focus(),h&&(h.hidden=!f),h&&f&&!(a||e)&&h.focus())}handleScroll(t,e){var h;let r=t==="left"||t==="up"?-this.step:this.step,a=t==="left"||t==="right"?"left":"top";this.isKeyboardNavigation=(e==null?void 0:e.pointerType)!=="mouse";let n={behavior:"smooth"};n[a]=r,(h=this.scrollContainer)==null||h.scrollBy(n);let d=`button-${t}`;this.dispatchEvent(new CustomEvent(d,{bubbles:!0,composed:!0}))}render(){let t="relative p-0 border-0 bg-transparent cursor-pointer w-5 h-5 flex items-center justify-center sd-interactive rounded-md flex text-lg",e="scroll-shadow absolute z-10 pointer-events-none";return p`<div part="base" class="${c("scroll-container flex overflow-hidden flex-1",this.orientation==="horizontal"&&"scroll-horizontal flex-row whitespace-nowrap items-center overflow-x-scroll overflow-y-hidden",this.orientation==="vertical"&&"scroll-vertical justify-items-center overflow-y-scroll overflow-x-hidden",this.orientation==="auto"&&"scroll-auto overflow-auto",this.scrollbars?"show-scrollbars":"hide-scrollbars",this.inset?"p-4":"")}" @scroll="${this.updateScrollIndicatorVisibility}" tabindex="0"><div part="scroll-content" class="flex-1"><slot></slot></div></div>${this.buttons?p`${this.isScrollHorizontalEnabled?p`${this.canScroll.left?p`<div part="button-left" class="absolute z-10 flex items-center justify-center top-0 left-0 h-full w-8"><button part="button-start" class="${c(t)}" @click="${r=>this.handleScroll("left",r)}"><slot name="icon-start"><sd-icon library="system" name="chevron-up" class="rotate-[-90deg]" label="${this.localize.term("scrollToStart")}"></sd-icon></slot></button></div>`:null} ${this.canScroll.right?p`<div part="button-right" class="absolute z-10 flex items-center justify-center top-0 right-0 h-full w-8"><button part="button-end" class="${c(t)}" @click="${r=>this.handleScroll("right",r)}"><slot name="icon-end"><sd-icon library="system" name="chevron-down" class="rotate-[-90deg]" label="${this.localize.term("scrollToEnd")}"></sd-icon></slot></button></div>`:null}`:null} ${this.isScrollVerticalEnabled?p`${this.canScroll.up?p`<div part="button-top" class="absolute z-10 flex items-center justify-center top-0 left-0 w-full h-8"><button part="button-start" class="${c(t)}" @click="${r=>this.handleScroll("up",r)}"><slot name="icon-start"><sd-icon library="system" name="chevron-up" label="${this.localize.term("scrollToStart")}"></sd-icon></slot></button></div>`:null} ${this.canScroll.down?p`<div part="button-bottom" class="absolute z-10 flex items-center justify-center bottom-0 left-0 w-full h-8"><button part="button-end" class="${c(t)}" @click="${r=>this.handleScroll("down",r)}"><slot name="icon-end"><sd-icon library="system" name="chevron-down" label="${this.localize.term("scrollToEnd")}"></sd-icon></slot></button></div>`:null}`:null}`:null} ${this.shadows?p`${this.isScrollHorizontalEnabled?p`${this.canScroll.left?p`<div part="shadow-left" class="${e} left top-0 left-0 w-[6px] h-full"></div>`:null} ${this.canScroll.right?p`<div part="shadow-right" class="${e} right top-0 right-0 w-[6px] h-full"></div>`:null}`:null} ${this.isScrollVerticalEnabled?p`${this.canScroll.up?p`<div part="shadow-top" class="${e} top top-0 left-0 w-full h-[6px]"></div>`:null} ${this.canScroll.down?p`<div part="shadow-bottom" class="${e} bottom bottom-0 left-0 w-full h-[6px]"></div>`:null}`:null}`:null}`}};mt.styles=[...m.styles,v`:host{--gradient-color:hsla(0,0%,100%,0);--gradient:var(--gradient-color) 0%,#fff 80%,#fff 100%;display:flex;overflow:hidden;position:relative}.hide-scrollbars{scrollbar-width:none;-ms-overflow-style:none}.hide-scrollbars::-webkit-scrollbar{display:none}.scroll-container::-webkit-scrollbar-thumb{background-color:transparent}.scroll-container:hover::-webkit-scrollbar-thumb{background:var(--background-neutral-400,#c3c3c3);border-radius:var(--sd-border-radius-sm,.125rem)}.scroll-container::-webkit-scrollbar{height:var(--sd-spacing-1,.25rem);width:var(--sd-spacing-1,.25rem)}.scroll-auto{overflow:auto}[part=button-left]{background:linear-gradient(270deg,var(--gradient))}[part=button-right]{background:linear-gradient(90deg,var(--gradient))}[part=button-top]{background:linear-gradient(0deg,var(--gradient))}[part=button-bottom]{background:linear-gradient(180deg,var(--gradient))}[part=shadow-left]{background:linear-gradient(270deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}[part=shadow-right]{background:linear-gradient(90deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}[part=shadow-top]{background:linear-gradient(0deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}[part=shadow-bottom]{background:linear-gradient(180deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}.sd-icon--top{align-self:flex-start}.sd-icon--down{align-self:flex-end}`],o([l({type:String,reflect:!0})],mt.prototype,"orientation",2),o([l({type:Boolean,reflect:!0})],mt.prototype,"scrollbars",2),o([l({type:Boolean,reflect:!0})],mt.prototype,"buttons",2),o([l({type:Boolean,reflect:!0})],mt.prototype,"shadows",2),o([l({type:Boolean,reflect:!0})],mt.prototype,"inset",2),o([l({type:Number,reflect:!0})],mt.prototype,"step",2),o([C()],mt.prototype,"canScroll",2),o([C()],mt.prototype,"isScrollHorizontalEnabled",2),o([C()],mt.prototype,"isScrollVerticalEnabled",2),o([C()],mt.prototype,"isKeyboardNavigation",2),mt=o([y("sd-scrollable")],mt);var L=class extends m{constructor(){super(...arguments);this.formControlController=new pt(this,{assumeInteractionOn:["sd-blur","sd-input"]});this.hasSlotController=new D(this,"help-text","label");this.localize=new P(this);this.typeToSelectString="";this.hasHover=!1;this.displayLabel="";this.deletedTagLabel="";this.hasFocus=!1;this.selectedOptions=[];this.showValidStyle=!1;this.showInvalidStyle=!1;this.defaultValue="";this.open=!1;this.size="lg";this.placement="bottom";this.label="";this.placeholder="";this.maxOptionsTagLabel="";this.disabled=!1;this.visuallyDisabled=!1;this.helpText="";this.currentPlacement=this.placement;this.clearable=!1;this.multiple=!1;this.useTags=!1;this.maxOptionsVisible=3;this.form="";this.name="";this.value="";this.required=!1;this.styleOnValid=!1;this.hoist=!1;this.getTag=t=>p`<sd-tag ?disabled="${this.disabled}" part="tag" exportparts="
161
161
  base:tag__base,
162
162
  content:tag__content,
163
163
  removable-indicator:tag__removable-indicator,
@@ -1 +1 @@
1
- import{a as Z}from"./chunks/chunk.CEVVDV52.js";import"./chunks/chunk.HAL7R4WT.js";import{a as q}from"./chunks/chunk.IHS6YCNW.js";import{a as y}from"./chunks/chunk.QC2KZSKL.js";import{a as z}from"./chunks/chunk.Q5XVXRF6.js";import{a as J}from"./chunks/chunk.PGNO6HV2.js";import{a as K}from"./chunks/chunk.NMHMV2IL.js";import{a as U}from"./chunks/chunk.XL3BUCUU.js";import{a as E}from"./chunks/chunk.23IKXZVG.js";import{a as F}from"./chunks/chunk.4IFORLFN.js";import{a as H}from"./chunks/chunk.W72MLMOE.js";import{a as L}from"./chunks/chunk.CJNJKNFE.js";import{a as Q}from"./chunks/chunk.UI7L6PX5.js";import{a as V}from"./chunks/chunk.KME2AZKV.js";import{a as j}from"./chunks/chunk.6ZV2UB2R.js";import{a as w}from"./chunks/chunk.CAWYHBD5.js";import{a as R}from"./chunks/chunk.M37NO2OL.js";import{a as M}from"./chunks/chunk.6AT7QBRE.js";import{a as v}from"./chunks/chunk.7CKFXHTE.js";import{a as O}from"./chunks/chunk.CYH3PCNG.js";import{a as P}from"./chunks/chunk.SRHKA7HE.js";import{a as N}from"./chunks/chunk.UXYQTHQP.js";import{a as I}from"./chunks/chunk.TW2X7LLC.js";import{a as h}from"./chunks/chunk.LRCDXHQL.js";import{a as A}from"./chunks/chunk.VOS6ZTYL.js";import{a as B}from"./chunks/chunk.SZMORTHB.js";import{a as D}from"./chunks/chunk.7SQQCKX5.js";import{a as g}from"./chunks/chunk.CBUVQPJ2.js";import{a as k}from"./chunks/chunk.GS3QL2OV.js";import{a as C}from"./chunks/chunk.B4OSWTH3.js";import{a as G}from"./chunks/chunk.7UYAPC2H.js";import{a as m}from"./chunks/chunk.FG4AYCVI.js";import"./chunks/chunk.5CK64GWQ.js";import{a as S}from"./chunks/chunk.AZ5UMKBM.js";import{a as n}from"./chunks/chunk.LS53PDIU.js";import{a as i}from"./chunks/chunk.D6M4QQEX.js";import{a as s}from"./chunks/chunk.2BWXU745.js";import"./chunks/chunk.D7TMPF3D.js";import"./chunks/chunk.X2GM34WQ.js";import"./chunks/chunk.W7A3TU2Z.js";import{a as c}from"./chunks/chunk.MLIJR3PY.js";import{a as b}from"./chunks/chunk.M56AX2NQ.js";import{a as T}from"./chunks/chunk.AXTP2V5W.js";import"./chunks/chunk.X2O263YD.js";import"./chunks/chunk.64UNKF45.js";import"./chunks/chunk.3L472FD4.js";import{a as d}from"./chunks/chunk.CSTIFOAP.js";import{a as f}from"./chunks/chunk.QB6ZZCNC.js";import{a as u}from"./chunks/chunk.YEIAYEJG.js";import{a as p}from"./chunks/chunk.2PA3FZXS.js";import"./chunks/chunk.65NSSTJE.js";import"./chunks/chunk.HE2LNCWW.js";import"./chunks/chunk.SLT75PJ7.js";import{a as x}from"./chunks/chunk.QQCSHGCT.js";import"./chunks/chunk.CBQWVOOS.js";import"./chunks/chunk.EUGX6XW6.js";import"./chunks/chunk.MHWW3RZB.js";import{a as l}from"./chunks/chunk.X77YGX4O.js";import{a}from"./chunks/chunk.FKNSLPX6.js";import{a as e}from"./chunks/chunk.AURWAJH2.js";import"./chunks/chunk.A3DKF5BY.js";import"./chunks/chunk.5ZILM4TA.js";import{b as o}from"./chunks/chunk.ZZFQQH27.js";import"./chunks/chunk.SPDB3L7V.js";import{d as W,e as X}from"./chunks/chunk.SNS2IHBI.js";import"./chunks/chunk.TWZDCIM2.js";import"./chunks/chunk.MWDEA25W.js";import"./chunks/chunk.K7HF3VBZ.js";import"./chunks/chunk.PYHYYOBE.js";import"./chunks/chunk.EFLL7VXU.js";import"./chunks/chunk.RQYP7MH5.js";import"./chunks/chunk.KLRPP4NQ.js";import{a as t}from"./chunks/chunk.IEPFDM4R.js";import"./chunks/chunk.E2DRD2OX.js";import"./chunks/chunk.XR2KNB36.js";import{a as r}from"./chunks/chunk.CF4RVCLN.js";import"./chunks/chunk.6HO6CE4A.js";import{a as Y}from"./chunks/chunk.TNPIUMKG.js";import"./chunks/chunk.2KVQZ6AF.js";import"./chunks/chunk.MT6JRSNW.js";import"./chunks/chunk.HJGLYEWV.js";import"./chunks/chunk.TWQVHGYD.js";import"./chunks/chunk.VVV2SCQ6.js";import"./chunks/chunk.IRWHG2Q4.js";import"./chunks/chunk.WNP2V63C.js";import"./chunks/chunk.TJOCV4DC.js";export{Y as LocalizeController,e as SdAccordion,a as SdAccordionGroup,t as SdAnimation,r as SdAudio,d as SdBadge,f as SdBrandshape,u as SdButton,x as SdCarousel,l as SdCarouselItem,m as SdCheckbox,S as SdCheckboxGroup,n as SdCombobox,c as SdDialog,b as SdDivider,T 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,s as SdPopup,v as SdQuickfact,N as SdRadio,O as SdRadioButton,P as SdRadioGroup,E as SdScrollable,F as SdSelect,p as SdSpinner,H as SdStep,L as SdStepGroup,Q as SdSwitch,V as SdTab,j as SdTabGroup,q as SdTabPanel,i 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.WPJYFH2I.js";import{a as y}from"./chunks/chunk.J2X6EPLA.js";import{a as z}from"./chunks/chunk.PY7WAXNJ.js";import{a as J}from"./chunks/chunk.DUICZBMU.js";import{a as K}from"./chunks/chunk.RLUO45Y5.js";import{a as U}from"./chunks/chunk.E5MVZNLH.js";import{a as E}from"./chunks/chunk.GJMUIRQ2.js";import{a as F}from"./chunks/chunk.EVPT7JK3.js";import{a as H}from"./chunks/chunk.LU3JG42J.js";import{a as L}from"./chunks/chunk.MS332YGT.js";import{a as Q}from"./chunks/chunk.ZEAKI2UK.js";import{a as V}from"./chunks/chunk.6JTQVPYM.js";import{a as j}from"./chunks/chunk.LZPV4I3M.js";import{a as w}from"./chunks/chunk.75EO36IN.js";import{a as R}from"./chunks/chunk.7QUNXEQK.js";import{a as M}from"./chunks/chunk.2ZCXWR7E.js";import{a as v}from"./chunks/chunk.TU2ZS5QJ.js";import{a as O}from"./chunks/chunk.6MS466M2.js";import{a as P}from"./chunks/chunk.MQMIFBAP.js";import{a as N}from"./chunks/chunk.U7V4IBUM.js";import{a as I}from"./chunks/chunk.TW2X7LLC.js";import{a as h}from"./chunks/chunk.H6R4QDN2.js";import{a as A}from"./chunks/chunk.XLPU7RKV.js";import{a as B}from"./chunks/chunk.7RLRSCXQ.js";import{a as D}from"./chunks/chunk.KMS2GOZX.js";import{a as g}from"./chunks/chunk.WF3RODYO.js";import{a as k}from"./chunks/chunk.EROIZW6X.js";import{a as C}from"./chunks/chunk.4F44QRA2.js";import{a as G}from"./chunks/chunk.7UYAPC2H.js";import{a as m}from"./chunks/chunk.SIAG2ZHR.js";import"./chunks/chunk.5CK64GWQ.js";import{a as S}from"./chunks/chunk.3NTNY2UH.js";import{a as n}from"./chunks/chunk.FHGJUXJX.js";import{a as i}from"./chunks/chunk.WVTQW42J.js";import{a as s}from"./chunks/chunk.WVPFNYMA.js";import"./chunks/chunk.D7TMPF3D.js";import"./chunks/chunk.X2GM34WQ.js";import"./chunks/chunk.W7A3TU2Z.js";import{a as c}from"./chunks/chunk.EZYSQC3V.js";import{a as T}from"./chunks/chunk.UPY4N63N.js";import"./chunks/chunk.X2O263YD.js";import"./chunks/chunk.64UNKF45.js";import"./chunks/chunk.3L472FD4.js";import{a as b}from"./chunks/chunk.ZNGUO7XZ.js";import{a as d}from"./chunks/chunk.7XV3YENR.js";import{a as f}from"./chunks/chunk.UVMPKHLP.js";import{a as u}from"./chunks/chunk.CNH2FBFM.js";import{a as p}from"./chunks/chunk.IUWDL2C4.js";import"./chunks/chunk.65NSSTJE.js";import"./chunks/chunk.HE2LNCWW.js";import"./chunks/chunk.SLT75PJ7.js";import{a as x}from"./chunks/chunk.WGANUF5U.js";import"./chunks/chunk.CBQWVOOS.js";import"./chunks/chunk.EUGX6XW6.js";import"./chunks/chunk.MHWW3RZB.js";import{a as l}from"./chunks/chunk.X77YGX4O.js";import{a}from"./chunks/chunk.FKNSLPX6.js";import{a as e}from"./chunks/chunk.GWPLAP5S.js";import"./chunks/chunk.A3DKF5BY.js";import"./chunks/chunk.5ZILM4TA.js";import{b as o}from"./chunks/chunk.ZZFQQH27.js";import"./chunks/chunk.SPDB3L7V.js";import{d as W,e as X}from"./chunks/chunk.SNS2IHBI.js";import"./chunks/chunk.TWZDCIM2.js";import"./chunks/chunk.MWDEA25W.js";import"./chunks/chunk.K7HF3VBZ.js";import"./chunks/chunk.PYHYYOBE.js";import"./chunks/chunk.EFLL7VXU.js";import"./chunks/chunk.RQYP7MH5.js";import"./chunks/chunk.KLRPP4NQ.js";import{a as t}from"./chunks/chunk.IEPFDM4R.js";import"./chunks/chunk.E2DRD2OX.js";import"./chunks/chunk.XR2KNB36.js";import{a as r}from"./chunks/chunk.L53H4NRS.js";import"./chunks/chunk.6HO6CE4A.js";import{a as Y}from"./chunks/chunk.TNPIUMKG.js";import"./chunks/chunk.2KVQZ6AF.js";import"./chunks/chunk.MT6JRSNW.js";import"./chunks/chunk.HJGLYEWV.js";import"./chunks/chunk.26V4EXHB.js";import"./chunks/chunk.VVV2SCQ6.js";import"./chunks/chunk.IRWHG2Q4.js";import"./chunks/chunk.WNP2V63C.js";import"./chunks/chunk.TJOCV4DC.js";export{Y as LocalizeController,e as SdAccordion,a as SdAccordionGroup,t as SdAnimation,r as SdAudio,d as SdBadge,f as SdBrandshape,u as SdButton,x as SdCarousel,l as SdCarouselItem,m as SdCheckbox,S as SdCheckboxGroup,n as SdCombobox,c as SdDialog,b as SdDivider,T 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,s as SdPopup,v as SdQuickfact,N as SdRadio,O as SdRadioButton,P as SdRadioGroup,E as SdScrollable,F as SdSelect,p as SdSpinner,H as SdStep,L as SdStepGroup,Q as SdSwitch,V as SdTab,j as SdTabGroup,q as SdTabPanel,i 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.2BWXU745.js";import"../chunks/chunk.TWQVHGYD.js";import"../chunks/chunk.VVV2SCQ6.js";import"../chunks/chunk.IRWHG2Q4.js";import"../chunks/chunk.TJOCV4DC.js";export{a as setupAutocomplete};
1
+ import{a}from"../chunks/chunk.CEVVDV52.js";import"../chunks/chunk.WVPFNYMA.js";import"../chunks/chunk.26V4EXHB.js";import"../chunks/chunk.VVV2SCQ6.js";import"../chunks/chunk.IRWHG2Q4.js";import"../chunks/chunk.TJOCV4DC.js";export{a as setupAutocomplete};
@@ -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": "4.2.2",
4
+ "version": "4.2.4",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -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-4-2-2-select', { detail: { item } });
35
+ this.emit('sd-4-2-4-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-4-2-2-divider) {
14
+ ::slotted(sd-4-2-4-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-4-2-2-icon name="check" library="system" aria-hidden="true"></sd-4-2-2-icon>
77
+ <sd-4-2-4-icon name="check" library="system" aria-hidden="true"></sd-4-2-4-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-4-2-2-icon name="chevron-right" library="system" aria-hidden="true"></sd-4-2-2-icon>
87
+ <sd-4-2-4-icon name="chevron-right" library="system" aria-hidden="true"></sd-4-2-4-icon>
88
88
  </span>
89
89
  </div>
90
90
  `;
@@ -1 +1 @@
1
- import{a as o}from"./chunk.E2DRD2OX.js";import{a as u}from"./chunk.6HO6CE4A.js";import{a as i}from"./chunk.TWQVHGYD.js";import{a as h,b as a,c as r,d,h as n}from"./chunk.VVV2SCQ6.js";import{b as c,e as s}from"./chunk.IRWHG2Q4.js";import{e as t}from"./chunk.TJOCV4DC.js";var e=class extends n{constructor(){super(...arguments);this.hasSlotController=new u(this,"default","left","right");this.current=!1;this.selected=!1;this.hasHover=!1;this.size="lg";this.checkbox=!1;this.disabled=!1;this.value=""}connectedCallback(){super.connectedCallback(),this.setAttribute("role","option"),this.setAttribute("aria-selected","false")}handleDefaultSlotChange(){let l=this.getTextLabel();if(typeof this.cachedTextLabel=="undefined"){this.cachedTextLabel=l;return}l!==this.cachedTextLabel&&(this.cachedTextLabel=l,this.emit("slotchange",{bubbles:!0,composed:!1,cancelable:!1}))}handleMouseEnter(){this.hasHover=!0}handleMouseLeave(){this.hasHover=!1}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}handleSelectedChange(){this.setAttribute("aria-selected",this.selected?"true":"false")}handleValueChange(){this.value.includes(" ")&&(console.error("Option values cannot include a space. All spaces have been replaced with underscores.",this),this.value=this.value.replace(/ /g,"_"))}getTextLabel(){var l;return((l=this.textContent)!=null?l:"").trim()}render(){let l={default:this.hasSlotController.test("default"),left:this.hasSlotController.test("left"),right:this.hasSlotController.test("right")};return s`<div part="base" class="${i("px-4 flex items-center w-full transition-all text-left text-base relative text-black",{sm:"text-sm py-1",md:"text-base py-2",lg:"text-base py-3"}[this.size],this.disabled?"text-neutral-500 cursor-not-allowed":"cursor-pointer",this.hasHover&&!this.disabled?"bg-neutral-200":"",this.current&&"bg-neutral-200")}" @mouseenter="${this.handleMouseEnter}" @mouseleave="${this.handleMouseLeave}"><span class="${i("absolute w-full left-0 top-0 pointer-events-none transition-all duration-150 border-l-4 h-[calc(100%-8px)]",this.selected&&!this.checkbox?"border-accent":"border-transparent",this.disabled&&"border-neutral-500 top-1",!this.disabled&&this.hasHover?"h-full top-0":"top-1")}"></span> ${this.checkbox?s`<span id="control" part="control ${this.selected?" control--checked":"control--unchecked"}" class="${i("relative flex flex-shrink-0 items-center justify-center border rounded-sm h-4 w-4 mr-2",this.disabled?"border-neutral-500":this.selected?"bg-accent border-accent":"border-neutral-800")}">${this.selected?s`<sd-4-2-2-icon part="checked-icon" class="text-white w-3 h-3" library="system" name="status-check"></sd-4-2-2-icon>`:""}</span>`:""} ${l.left?s`<slot name="left" part="left" class="inline-flex mr-2"></slot>`:""}<slot part="label" class="inline-block flex-grow" @slotchange="${this.handleDefaultSlotChange}"></slot>${l.right?s`<slot name="right" part="right" class="inline-flex ml-2"></slot>`:""}</div>`}};e.styles=[...n.styles,c`:host{display:block;outline:2px solid transparent!important;outline-offset:2px!important;position:relative;width:100%}`],t([d('[part="base"]')],e.prototype,"defaultSlot",2),t([r()],e.prototype,"current",2),t([r()],e.prototype,"selected",2),t([r()],e.prototype,"hasHover",2),t([a({reflect:!0})],e.prototype,"size",2),t([a({type:Boolean,reflect:!0})],e.prototype,"checkbox",2),t([a({type:Boolean,reflect:!0})],e.prototype,"disabled",2),t([a({reflect:!0})],e.prototype,"value",2),t([o("disabled")],e.prototype,"handleDisabledChange",1),t([o("selected")],e.prototype,"handleSelectedChange",1),t([o("value")],e.prototype,"handleValueChange",1),e=t([h("sd-4-2-2-option")],e);export{e as a};
1
+ import{a as o}from"./chunk.E2DRD2OX.js";import{a as u}from"./chunk.6HO6CE4A.js";import{a as i}from"./chunk.26V4EXHB.js";import{a as h,b as a,c as r,d,h as n}from"./chunk.VVV2SCQ6.js";import{b as c,e as s}from"./chunk.IRWHG2Q4.js";import{e as t}from"./chunk.TJOCV4DC.js";var e=class extends n{constructor(){super(...arguments);this.hasSlotController=new u(this,"default","left","right");this.current=!1;this.selected=!1;this.hasHover=!1;this.size="lg";this.checkbox=!1;this.disabled=!1;this.value=""}connectedCallback(){super.connectedCallback(),this.setAttribute("role","option"),this.setAttribute("aria-selected","false")}handleDefaultSlotChange(){let l=this.getTextLabel();if(typeof this.cachedTextLabel=="undefined"){this.cachedTextLabel=l;return}l!==this.cachedTextLabel&&(this.cachedTextLabel=l,this.emit("slotchange",{bubbles:!0,composed:!1,cancelable:!1}))}handleMouseEnter(){this.hasHover=!0}handleMouseLeave(){this.hasHover=!1}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}handleSelectedChange(){this.setAttribute("aria-selected",this.selected?"true":"false")}handleValueChange(){this.value.includes(" ")&&(console.error("Option values cannot include a space. All spaces have been replaced with underscores.",this),this.value=this.value.replace(/ /g,"_"))}getTextLabel(){var l;return((l=this.textContent)!=null?l:"").trim()}render(){let l={default:this.hasSlotController.test("default"),left:this.hasSlotController.test("left"),right:this.hasSlotController.test("right")};return s`<div part="base" class="${i("px-4 flex items-center w-full transition-all text-left text-base relative text-black",{sm:"text-sm py-1",md:"text-base py-2",lg:"text-base py-3"}[this.size],this.disabled?"text-neutral-500 cursor-not-allowed":"cursor-pointer",this.hasHover&&!this.disabled?"bg-neutral-200":"",this.current&&"bg-neutral-200")}" @mouseenter="${this.handleMouseEnter}" @mouseleave="${this.handleMouseLeave}"><span class="${i("absolute w-full left-0 top-0 pointer-events-none transition-all duration-150 border-l-4 h-[calc(100%-8px)]",this.selected&&!this.checkbox?"border-accent":"border-transparent",this.disabled&&"border-neutral-500 top-1",!this.disabled&&this.hasHover?"h-full top-0":"top-1")}"></span> ${this.checkbox?s`<span id="control" part="control ${this.selected?" control--checked":"control--unchecked"}" class="${i("relative flex flex-shrink-0 items-center justify-center border rounded-sm h-4 w-4 mr-2",this.disabled?"border-neutral-500":this.selected?"bg-accent border-accent":"border-neutral-800")}">${this.selected?s`<sd-4-2-4-icon part="checked-icon" class="text-white w-3 h-3" library="system" name="status-check"></sd-4-2-4-icon>`:""}</span>`:""} ${l.left?s`<slot name="left" part="left" class="inline-flex mr-2"></slot>`:""}<slot part="label" class="inline-block flex-grow" @slotchange="${this.handleDefaultSlotChange}"></slot>${l.right?s`<slot name="right" part="right" class="inline-flex ml-2"></slot>`:""}</div>`}};e.styles=[...n.styles,c`:host{display:block;outline:2px solid transparent!important;outline-offset:2px!important;position:relative;width:100%}`],t([d('[part="base"]')],e.prototype,"defaultSlot",2),t([r()],e.prototype,"current",2),t([r()],e.prototype,"selected",2),t([r()],e.prototype,"hasHover",2),t([a({reflect:!0})],e.prototype,"size",2),t([a({type:Boolean,reflect:!0})],e.prototype,"checkbox",2),t([a({type:Boolean,reflect:!0})],e.prototype,"disabled",2),t([a({reflect:!0})],e.prototype,"value",2),t([o("disabled")],e.prototype,"handleDisabledChange",1),t([o("selected")],e.prototype,"handleSelectedChange",1),t([o("value")],e.prototype,"handleValueChange",1),e=t([h("sd-4-2-4-option")],e);export{e as a};
@@ -1 +1 @@
1
- import{a as r}from"./chunk.E2DRD2OX.js";import{a as p}from"./chunk.6HO6CE4A.js";import{a}from"./chunk.TWQVHGYD.js";import{a as d,b as o,h as n}from"./chunk.VVV2SCQ6.js";import{b as m,e as s}from"./chunk.IRWHG2Q4.js";import{e}from"./chunk.TJOCV4DC.js";var t=class extends n{constructor(){super(...arguments);this.hasSlotController=new p(this,"label","help-text");this.size="lg";this.orientation="vertical";this.label="";this.helpText=""}getAllCheckboxes(){return[...this.querySelectorAll("sd-4-2-2-checkbox")]}async syncCheckboxElements(){let i=this.getAllCheckboxes();await Promise.all(i.map(async l=>{await l.updateComplete,l.size=this.size}))}syncCheckboxes(){customElements.get("sd-4-2-2-checkbox")?this.syncCheckboxElements():customElements.whenDefined("sd-4-2-2-checkbox").then(()=>this.syncCheckboxes())}handleSizeChange(){this.syncCheckboxes()}handleInvalid(){this.syncCheckboxes()}render(){let i=this.hasSlotController.test("label"),l=this.label?!0:i,b=this.hasSlotController.test("help-text"),c=this.helpText?!0:b,x=s`<slot @slotchange="${this.syncCheckboxes}"></slot>`,h=this.hasSlotController.test("tooltip");return s`<fieldset part="form-control" class="${a("border-0 p-0 m-0",{sm:"text-sm",md:"text-base",lg:"text-base"}[this.size])}" role="group" aria-labelledby="label">${l||h?s`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${a("p-0 font-bold leading-normal text-black",l?"flex":"hidden")}" aria-hidden="${l?"false":"true"}"><slot name="label">${this.label}</slot></label> ${h?s`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${a({vertical:"flex flex-col",horizontal:"flex flex-row"}[this.orientation])}">${x}</div></fieldset><slot name="help-text" part="form-control-help-text" id="help-text" class="${a("text-sm text-neutral-700 mt-2",c?"block":"hidden")}" aria-hidden="${!c}">${this.helpText}</slot>`}};t.styles=[...n.styles,m`:host{display:block}:host([orientation=vertical]) ::slotted(sd-4-2-2-checkbox){display:flex;margin-bottom:var(--sd-spacing-2,.5rem)}:host([orientation=vertical]) ::slotted(sd-4-2-2-checkbox:last-of-type){margin-bottom:var(--sd-spacing-0,0)}:host([orientation=horizontal]) ::slotted(sd-4-2-2-checkbox){margin-right:var(--sd-spacing-6,1.5rem)}:host([orientation=horizontal]) ::slotted(sd-4-2-2-checkbox:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-4-2-2-checkbox){margin-right:var(--sd-spacing-4,1rem)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-4-2-2-checkbox:last-of-type){margin-right:var(--sd-spacing-0,0)}`],e([o({reflect:!0})],t.prototype,"size",2),e([o({reflect:!0})],t.prototype,"orientation",2),e([o()],t.prototype,"label",2),e([o({attribute:"help-text"})],t.prototype,"helpText",2),e([r("size",{waitUntilFirstUpdate:!0})],t.prototype,"handleSizeChange",1),e([r("invalid",{waitUntilFirstUpdate:!0})],t.prototype,"handleInvalid",1),t=e([d("sd-4-2-2-checkbox-group")],t);export{t as a};
1
+ import{a as r}from"./chunk.E2DRD2OX.js";import{a as p}from"./chunk.6HO6CE4A.js";import{a}from"./chunk.26V4EXHB.js";import{a as d,b as o,h as n}from"./chunk.VVV2SCQ6.js";import{b as m,e as s}from"./chunk.IRWHG2Q4.js";import{e}from"./chunk.TJOCV4DC.js";var t=class extends n{constructor(){super(...arguments);this.hasSlotController=new p(this,"label","help-text");this.size="lg";this.orientation="vertical";this.label="";this.helpText=""}getAllCheckboxes(){return[...this.querySelectorAll("sd-4-2-4-checkbox")]}async syncCheckboxElements(){let i=this.getAllCheckboxes();await Promise.all(i.map(async l=>{await l.updateComplete,l.size=this.size}))}syncCheckboxes(){customElements.get("sd-4-2-4-checkbox")?this.syncCheckboxElements():customElements.whenDefined("sd-4-2-4-checkbox").then(()=>this.syncCheckboxes())}handleSizeChange(){this.syncCheckboxes()}handleInvalid(){this.syncCheckboxes()}render(){let i=this.hasSlotController.test("label"),l=this.label?!0:i,b=this.hasSlotController.test("help-text"),c=this.helpText?!0:b,x=s`<slot @slotchange="${this.syncCheckboxes}"></slot>`,h=this.hasSlotController.test("tooltip");return s`<fieldset part="form-control" class="${a("border-0 p-0 m-0",{sm:"text-sm",md:"text-base",lg:"text-base"}[this.size])}" role="group" aria-labelledby="label">${l||h?s`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${a("p-0 font-bold leading-normal text-black",l?"flex":"hidden")}" aria-hidden="${l?"false":"true"}"><slot name="label">${this.label}</slot></label> ${h?s`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${a({vertical:"flex flex-col",horizontal:"flex flex-row"}[this.orientation])}">${x}</div></fieldset><slot name="help-text" part="form-control-help-text" id="help-text" class="${a("text-sm text-neutral-700 mt-2",c?"block":"hidden")}" aria-hidden="${!c}">${this.helpText}</slot>`}};t.styles=[...n.styles,m`:host{display:block}:host([orientation=vertical]) ::slotted(sd-4-2-4-checkbox){display:flex;margin-bottom:var(--sd-spacing-2,.5rem)}:host([orientation=vertical]) ::slotted(sd-4-2-4-checkbox:last-of-type){margin-bottom:var(--sd-spacing-0,0)}:host([orientation=horizontal]) ::slotted(sd-4-2-4-checkbox){margin-right:var(--sd-spacing-6,1.5rem)}:host([orientation=horizontal]) ::slotted(sd-4-2-4-checkbox:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-4-2-4-checkbox){margin-right:var(--sd-spacing-4,1rem)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-4-2-4-checkbox:last-of-type){margin-right:var(--sd-spacing-0,0)}`],e([o({reflect:!0})],t.prototype,"size",2),e([o({reflect:!0})],t.prototype,"orientation",2),e([o()],t.prototype,"label",2),e([o({attribute:"help-text"})],t.prototype,"helpText",2),e([r("size",{waitUntilFirstUpdate:!0})],t.prototype,"handleSizeChange",1),e([r("invalid",{waitUntilFirstUpdate:!0})],t.prototype,"handleInvalid",1),t=e([d("sd-4-2-4-checkbox-group")],t);export{t as a};