@solid-design-system/components 6.2.1 → 6.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (309) hide show
  1. package/cdn/chunks/{chunk.QJ2LWN24.js → chunk.PDHMAKVQ.js} +2 -2
  2. package/cdn/chunks/chunk.Q6GEIXGA.js +2 -0
  3. package/cdn/chunks/chunk.TWNEU4H4.js +4 -0
  4. package/cdn/chunks/chunk.XQWDDXL2.js +2 -0
  5. package/cdn/components/breadcrumb/breadcrumb.js +1 -1
  6. package/cdn/components/combobox/combobox.js +1 -1
  7. package/cdn/components/dropdown/dropdown.js +1 -1
  8. package/cdn/components/menu/menu.d.ts +2 -0
  9. package/cdn/components/menu/menu.js +1 -1
  10. package/cdn/components/menu-item/menu-item.js +1 -1
  11. package/cdn/components/select/select.js +1 -1
  12. package/cdn/components/tag/tag.js +1 -1
  13. package/cdn/custom-elements.json +1 -1
  14. package/cdn/solid-components.bundle.js +4 -4
  15. package/cdn/solid-components.iife.js +4 -4
  16. package/cdn/solid-components.js +1 -1
  17. package/cdn/web-types.json +1 -1
  18. package/cdn-versioned/chunks/chunk.2DPSCPM4.js +2 -2
  19. package/cdn-versioned/chunks/chunk.2HJLVWCE.js +2 -2
  20. package/cdn-versioned/chunks/chunk.2KV3QDYA.js +2 -2
  21. package/cdn-versioned/chunks/chunk.3ETEQAPR.js +2 -2
  22. package/cdn-versioned/chunks/chunk.47H4SDKN.js +2 -2
  23. package/cdn-versioned/chunks/chunk.4LGCXG7D.js +2 -2
  24. package/cdn-versioned/chunks/chunk.4P5PT6MV.js +2 -2
  25. package/cdn-versioned/chunks/chunk.5M2K2EXR.js +2 -2
  26. package/cdn-versioned/chunks/chunk.5OE2GCRH.js +2 -2
  27. package/cdn-versioned/chunks/chunk.6GU6NFBF.js +1 -1
  28. package/cdn-versioned/chunks/chunk.745GDIND.js +2 -2
  29. package/cdn-versioned/chunks/chunk.ALCKOGA7.js +1 -1
  30. package/cdn-versioned/chunks/chunk.BZ3VHECJ.js +3 -3
  31. package/cdn-versioned/chunks/chunk.C44GZOLG.js +9 -9
  32. package/cdn-versioned/chunks/chunk.C4QT4K6T.js +2 -2
  33. package/cdn-versioned/chunks/chunk.CDP46OS4.js +1 -1
  34. package/cdn-versioned/chunks/chunk.CJ34NUTS.js +1 -1
  35. package/cdn-versioned/chunks/chunk.CMY3VPYA.js +2 -2
  36. package/cdn-versioned/chunks/chunk.D5FVDNYV.js +2 -2
  37. package/cdn-versioned/chunks/chunk.DC6UQXYF.js +2 -2
  38. package/cdn-versioned/chunks/chunk.DEEJ4ON7.js +2 -2
  39. package/cdn-versioned/chunks/chunk.DXGVZ3KG.js +1 -1
  40. package/cdn-versioned/chunks/chunk.E64WXH47.js +1 -1
  41. package/cdn-versioned/chunks/chunk.EASLRW3B.js +2 -2
  42. package/cdn-versioned/chunks/chunk.G42N3VHE.js +2 -2
  43. package/cdn-versioned/chunks/chunk.GP2QVZP5.js +1 -1
  44. package/cdn-versioned/chunks/chunk.H77CNSMK.js +2 -2
  45. package/cdn-versioned/chunks/chunk.HHASCDC2.js +5 -5
  46. package/cdn-versioned/chunks/chunk.I234MSSB.js +2 -2
  47. package/cdn-versioned/chunks/chunk.I3TTTGLW.js +1 -1
  48. package/cdn-versioned/chunks/chunk.IAEOXYGB.js +1 -1
  49. package/cdn-versioned/chunks/chunk.JRSX44R6.js +2 -2
  50. package/cdn-versioned/chunks/chunk.KKKGNXIR.js +2 -2
  51. package/cdn-versioned/chunks/chunk.KM5W4EDY.js +2 -2
  52. package/cdn-versioned/chunks/chunk.L6PAHLSN.js +2 -2
  53. package/cdn-versioned/chunks/chunk.MWO5B7BA.js +2 -2
  54. package/cdn-versioned/chunks/chunk.OAVVKKBJ.js +2 -2
  55. package/cdn-versioned/chunks/chunk.OG2BQH6T.js +2 -2
  56. package/cdn-versioned/chunks/{chunk.QJ2LWN24.js → chunk.PDHMAKVQ.js} +2 -2
  57. package/cdn-versioned/chunks/chunk.PPIS2HQ5.js +1 -1
  58. package/cdn-versioned/chunks/chunk.PRGLNPUF.js +1 -1
  59. package/cdn-versioned/chunks/chunk.PT6G5HKE.js +1 -1
  60. package/cdn-versioned/chunks/chunk.Q6GEIXGA.js +2 -0
  61. package/cdn-versioned/chunks/chunk.QMKNC76J.js +2 -2
  62. package/cdn-versioned/chunks/chunk.QUGI3FMS.js +2 -2
  63. package/cdn-versioned/chunks/chunk.RBVWPWFK.js +2 -2
  64. package/cdn-versioned/chunks/chunk.S4II2NTI.js +2 -2
  65. package/cdn-versioned/chunks/chunk.S7VIPIYX.js +2 -2
  66. package/cdn-versioned/chunks/chunk.TWNEU4H4.js +4 -0
  67. package/cdn-versioned/chunks/chunk.TWTQHJPN.js +2 -2
  68. package/cdn-versioned/chunks/chunk.U44PXBV2.js +2 -2
  69. package/cdn-versioned/chunks/chunk.U5N7L5RI.js +2 -2
  70. package/cdn-versioned/chunks/chunk.UVRZTPOZ.js +2 -2
  71. package/cdn-versioned/chunks/chunk.VAUP57XZ.js +2 -2
  72. package/cdn-versioned/chunks/chunk.VMUNNUNV.js +1 -1
  73. package/cdn-versioned/chunks/chunk.VTDQOKJM.js +2 -2
  74. package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
  75. package/cdn-versioned/chunks/chunk.WOZKICWV.js +5 -5
  76. package/cdn-versioned/chunks/chunk.XAPH6XNH.js +2 -2
  77. package/cdn-versioned/chunks/chunk.XQWDDXL2.js +2 -0
  78. package/cdn-versioned/chunks/chunk.XTRMRKZ6.js +2 -2
  79. package/cdn-versioned/chunks/chunk.Z6TAAGCD.js +2 -2
  80. package/cdn-versioned/chunks/chunk.ZTELVJ34.js +1 -1
  81. package/cdn-versioned/chunks/chunk.ZVHLKL7F.js +2 -2
  82. package/cdn-versioned/components/accordion/accordion.d.ts +1 -1
  83. package/cdn-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  84. package/cdn-versioned/components/animation/animation.d.ts +1 -1
  85. package/cdn-versioned/components/audio/audio.d.ts +1 -1
  86. package/cdn-versioned/components/badge/badge.d.ts +1 -1
  87. package/cdn-versioned/components/brandshape/brandshape.d.ts +1 -1
  88. package/cdn-versioned/components/breadcrumb/breadcrumb.d.ts +1 -1
  89. package/cdn-versioned/components/breadcrumb/breadcrumb.js +1 -1
  90. package/cdn-versioned/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
  91. package/cdn-versioned/components/button/button.d.ts +1 -1
  92. package/cdn-versioned/components/button-group/button-group.d.ts +1 -1
  93. package/cdn-versioned/components/carousel/carousel.d.ts +1 -1
  94. package/cdn-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  95. package/cdn-versioned/components/checkbox/checkbox.d.ts +1 -1
  96. package/cdn-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
  97. package/cdn-versioned/components/combobox/combobox.d.ts +1 -1
  98. package/cdn-versioned/components/combobox/combobox.js +1 -1
  99. package/cdn-versioned/components/datepicker/datepicker.d.ts +1 -1
  100. package/cdn-versioned/components/dialog/dialog.d.ts +1 -1
  101. package/cdn-versioned/components/divider/divider.d.ts +1 -1
  102. package/cdn-versioned/components/drawer/drawer.d.ts +1 -1
  103. package/cdn-versioned/components/dropdown/dropdown.d.ts +1 -1
  104. package/cdn-versioned/components/dropdown/dropdown.js +1 -1
  105. package/cdn-versioned/components/expandable/expandable.d.ts +1 -1
  106. package/cdn-versioned/components/flipcard/flipcard.d.ts +1 -1
  107. package/cdn-versioned/components/header/header.d.ts +1 -1
  108. package/cdn-versioned/components/icon/icon.d.ts +1 -1
  109. package/cdn-versioned/components/include/include.d.ts +1 -1
  110. package/cdn-versioned/components/input/input.d.ts +1 -1
  111. package/cdn-versioned/components/link/link.d.ts +1 -1
  112. package/cdn-versioned/components/loader/loader.d.ts +1 -1
  113. package/cdn-versioned/components/map-marker/map-marker.d.ts +1 -1
  114. package/cdn-versioned/components/menu/menu.d.ts +3 -1
  115. package/cdn-versioned/components/menu/menu.js +1 -1
  116. package/cdn-versioned/components/menu-item/menu-item.d.ts +1 -1
  117. package/cdn-versioned/components/menu-item/menu-item.js +1 -1
  118. package/cdn-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  119. package/cdn-versioned/components/notification/notification.d.ts +1 -1
  120. package/cdn-versioned/components/optgroup/optgroup.d.ts +1 -1
  121. package/cdn-versioned/components/option/option.d.ts +1 -1
  122. package/cdn-versioned/components/popup/popup.d.ts +1 -1
  123. package/cdn-versioned/components/quickfact/quickfact.d.ts +1 -1
  124. package/cdn-versioned/components/radio/radio.d.ts +1 -1
  125. package/cdn-versioned/components/radio-button/radio-button.d.ts +1 -1
  126. package/cdn-versioned/components/radio-group/radio-group.d.ts +1 -1
  127. package/cdn-versioned/components/range/range.d.ts +1 -1
  128. package/cdn-versioned/components/range-tick/range-tick.d.ts +1 -1
  129. package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
  130. package/cdn-versioned/components/select/select.d.ts +1 -1
  131. package/cdn-versioned/components/select/select.js +1 -1
  132. package/cdn-versioned/components/skeleton/skeleton.d.ts +1 -1
  133. package/cdn-versioned/components/spinner/spinner.d.ts +1 -1
  134. package/cdn-versioned/components/step/step.d.ts +1 -1
  135. package/cdn-versioned/components/step-group/step-group.d.ts +1 -1
  136. package/cdn-versioned/components/switch/switch.d.ts +1 -1
  137. package/cdn-versioned/components/tab/tab.d.ts +1 -1
  138. package/cdn-versioned/components/tab-group/tab-group.d.ts +1 -1
  139. package/cdn-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  140. package/cdn-versioned/components/tag/tag.d.ts +1 -1
  141. package/cdn-versioned/components/tag/tag.js +1 -1
  142. package/cdn-versioned/components/textarea/textarea.d.ts +1 -1
  143. package/cdn-versioned/components/theme-listener/theme-listener.d.ts +1 -1
  144. package/cdn-versioned/components/tooltip/tooltip.d.ts +1 -1
  145. package/cdn-versioned/components/video/video.d.ts +1 -1
  146. package/cdn-versioned/custom-elements.json +244 -244
  147. package/cdn-versioned/internal/form.js +3 -3
  148. package/cdn-versioned/solid-components.bundle.js +80 -80
  149. package/cdn-versioned/solid-components.css +2 -2
  150. package/cdn-versioned/solid-components.iife.js +80 -80
  151. package/cdn-versioned/solid-components.js +1 -1
  152. package/cdn-versioned/vscode.html-custom-data.json +94 -94
  153. package/cdn-versioned/web-types.json +157 -157
  154. package/dist/chunks/{chunk.N3I674PE.js → chunk.D4UC3BVQ.js} +8 -1
  155. package/dist/chunks/{chunk.NW7LJJS2.js → chunk.L2RS3IA6.js} +7 -6
  156. package/dist/chunks/{chunk.TKDFONFB.js → chunk.SVYFJMYF.js} +17 -1
  157. package/dist/chunks/{chunk.DZEAXPRA.js → chunk.TUMONDN4.js} +1 -1
  158. package/dist/components/breadcrumb/breadcrumb.js +1 -1
  159. package/dist/components/combobox/combobox.js +1 -1
  160. package/dist/components/dropdown/dropdown.js +1 -1
  161. package/dist/components/menu/menu.d.ts +2 -0
  162. package/dist/components/menu/menu.js +1 -1
  163. package/dist/components/menu-item/menu-item.js +1 -1
  164. package/dist/components/select/select.js +1 -1
  165. package/dist/components/tag/tag.js +1 -1
  166. package/dist/custom-elements.json +1 -1
  167. package/dist/solid-components.js +4 -4
  168. package/dist/web-types.json +1 -1
  169. package/dist-versioned/chunks/chunk.22PWID5B.js +2 -2
  170. package/dist-versioned/chunks/chunk.2EWH2DC2.js +1 -1
  171. package/dist-versioned/chunks/chunk.2HTII44Q.js +4 -4
  172. package/dist-versioned/chunks/chunk.2VPWVTT6.js +4 -4
  173. package/dist-versioned/chunks/chunk.3EJL5IKL.js +1 -1
  174. package/dist-versioned/chunks/chunk.3PTRIEGP.js +2 -2
  175. package/dist-versioned/chunks/chunk.4UT3FCHQ.js +2 -2
  176. package/dist-versioned/chunks/chunk.5XWO3USG.js +3 -3
  177. package/dist-versioned/chunks/chunk.75WDCMIC.js +24 -24
  178. package/dist-versioned/chunks/chunk.ASEJW6QN.js +5 -5
  179. package/dist-versioned/chunks/chunk.AUSBWPVD.js +7 -7
  180. package/dist-versioned/chunks/chunk.AZPOFDJP.js +4 -4
  181. package/dist-versioned/chunks/chunk.BBLAIT57.js +2 -2
  182. package/dist-versioned/chunks/chunk.BSP6J6R2.js +2 -2
  183. package/dist-versioned/chunks/chunk.BTNS6ZNO.js +4 -4
  184. package/dist-versioned/chunks/chunk.C3WIBDGG.js +3 -3
  185. package/dist-versioned/chunks/{chunk.N3I674PE.js → chunk.D4UC3BVQ.js} +20 -13
  186. package/dist-versioned/chunks/chunk.D7CJJHHA.js +1 -1
  187. package/dist-versioned/chunks/chunk.DCHRUIDY.js +1 -1
  188. package/dist-versioned/chunks/chunk.DCOB6WLB.js +3 -3
  189. package/dist-versioned/chunks/chunk.DFHY67LW.js +5 -5
  190. package/dist-versioned/chunks/chunk.DTTVI7KT.js +11 -11
  191. package/dist-versioned/chunks/chunk.DXDDB6AB.js +1 -1
  192. package/dist-versioned/chunks/chunk.FKFGVTXH.js +3 -3
  193. package/dist-versioned/chunks/chunk.FSUOT4WC.js +12 -12
  194. package/dist-versioned/chunks/chunk.IJIPMNT2.js +3 -3
  195. package/dist-versioned/chunks/chunk.IYXPHPNO.js +1 -1
  196. package/dist-versioned/chunks/chunk.JGRI4R23.js +1 -1
  197. package/dist-versioned/chunks/chunk.K66JHYHC.js +2 -2
  198. package/dist-versioned/chunks/chunk.KEJFWGZI.js +4 -4
  199. package/dist-versioned/chunks/{chunk.NW7LJJS2.js → chunk.L2RS3IA6.js} +13 -12
  200. package/dist-versioned/chunks/chunk.L3OEOSPQ.js +1 -1
  201. package/dist-versioned/chunks/chunk.L6ZE3RXX.js +14 -14
  202. package/dist-versioned/chunks/chunk.LBDV5GNR.js +4 -4
  203. package/dist-versioned/chunks/chunk.LZVVDTSP.js +26 -26
  204. package/dist-versioned/chunks/chunk.M2D3WWF3.js +8 -8
  205. package/dist-versioned/chunks/chunk.MH7JHBWP.js +2 -2
  206. package/dist-versioned/chunks/chunk.MLRNCOWA.js +3 -3
  207. package/dist-versioned/chunks/chunk.NEUULRS7.js +5 -5
  208. package/dist-versioned/chunks/chunk.OJXVBFUH.js +5 -5
  209. package/dist-versioned/chunks/chunk.P5FGSFP3.js +1 -1
  210. package/dist-versioned/chunks/chunk.PBXAIJQ4.js +5 -5
  211. package/dist-versioned/chunks/chunk.Q7ZMX7IB.js +3 -3
  212. package/dist-versioned/chunks/chunk.QM4E25CD.js +5 -5
  213. package/dist-versioned/chunks/chunk.R56JDQAF.js +2 -2
  214. package/dist-versioned/chunks/chunk.RFDAZXJG.js +3 -3
  215. package/dist-versioned/chunks/chunk.SCWR4Q4K.js +10 -10
  216. package/dist-versioned/chunks/chunk.SQYISG5I.js +4 -4
  217. package/dist-versioned/chunks/{chunk.TKDFONFB.js → chunk.SVYFJMYF.js} +20 -4
  218. package/dist-versioned/chunks/chunk.T46LX45D.js +6 -6
  219. package/dist-versioned/chunks/chunk.TNJNUASM.js +1 -1
  220. package/dist-versioned/chunks/{chunk.DZEAXPRA.js → chunk.TUMONDN4.js} +4 -4
  221. package/dist-versioned/chunks/chunk.TVWV4PUH.js +2 -2
  222. package/dist-versioned/chunks/chunk.U2BN2DBY.js +4 -4
  223. package/dist-versioned/chunks/chunk.UDPSGKZL.js +4 -4
  224. package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
  225. package/dist-versioned/chunks/chunk.UPCVQSXM.js +3 -3
  226. package/dist-versioned/chunks/chunk.UWQPJU3Q.js +3 -3
  227. package/dist-versioned/chunks/chunk.XALPLS2Y.js +6 -6
  228. package/dist-versioned/chunks/chunk.XV2UO6TF.js +2 -2
  229. package/dist-versioned/chunks/chunk.YATRFNET.js +28 -28
  230. package/dist-versioned/chunks/chunk.YFRD2UEO.js +8 -8
  231. package/dist-versioned/chunks/chunk.YNBR5ZDU.js +4 -4
  232. package/dist-versioned/chunks/chunk.ZMEUQIVY.js +9 -9
  233. package/dist-versioned/components/accordion/accordion.d.ts +1 -1
  234. package/dist-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  235. package/dist-versioned/components/animation/animation.d.ts +1 -1
  236. package/dist-versioned/components/audio/audio.d.ts +1 -1
  237. package/dist-versioned/components/badge/badge.d.ts +1 -1
  238. package/dist-versioned/components/brandshape/brandshape.d.ts +1 -1
  239. package/dist-versioned/components/breadcrumb/breadcrumb.d.ts +1 -1
  240. package/dist-versioned/components/breadcrumb/breadcrumb.js +1 -1
  241. package/dist-versioned/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
  242. package/dist-versioned/components/button/button.d.ts +1 -1
  243. package/dist-versioned/components/button-group/button-group.d.ts +1 -1
  244. package/dist-versioned/components/carousel/carousel.d.ts +1 -1
  245. package/dist-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  246. package/dist-versioned/components/checkbox/checkbox.d.ts +1 -1
  247. package/dist-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
  248. package/dist-versioned/components/combobox/combobox.d.ts +1 -1
  249. package/dist-versioned/components/combobox/combobox.js +1 -1
  250. package/dist-versioned/components/datepicker/datepicker.d.ts +1 -1
  251. package/dist-versioned/components/dialog/dialog.d.ts +1 -1
  252. package/dist-versioned/components/divider/divider.d.ts +1 -1
  253. package/dist-versioned/components/drawer/drawer.d.ts +1 -1
  254. package/dist-versioned/components/dropdown/dropdown.d.ts +1 -1
  255. package/dist-versioned/components/dropdown/dropdown.js +1 -1
  256. package/dist-versioned/components/expandable/expandable.d.ts +1 -1
  257. package/dist-versioned/components/flipcard/flipcard.d.ts +1 -1
  258. package/dist-versioned/components/header/header.d.ts +1 -1
  259. package/dist-versioned/components/icon/icon.d.ts +1 -1
  260. package/dist-versioned/components/include/include.d.ts +1 -1
  261. package/dist-versioned/components/input/input.d.ts +1 -1
  262. package/dist-versioned/components/link/link.d.ts +1 -1
  263. package/dist-versioned/components/loader/loader.d.ts +1 -1
  264. package/dist-versioned/components/map-marker/map-marker.d.ts +1 -1
  265. package/dist-versioned/components/menu/menu.d.ts +3 -1
  266. package/dist-versioned/components/menu/menu.js +1 -1
  267. package/dist-versioned/components/menu-item/menu-item.d.ts +1 -1
  268. package/dist-versioned/components/menu-item/menu-item.js +1 -1
  269. package/dist-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  270. package/dist-versioned/components/notification/notification.d.ts +1 -1
  271. package/dist-versioned/components/optgroup/optgroup.d.ts +1 -1
  272. package/dist-versioned/components/option/option.d.ts +1 -1
  273. package/dist-versioned/components/popup/popup.d.ts +1 -1
  274. package/dist-versioned/components/quickfact/quickfact.d.ts +1 -1
  275. package/dist-versioned/components/radio/radio.d.ts +1 -1
  276. package/dist-versioned/components/radio-button/radio-button.d.ts +1 -1
  277. package/dist-versioned/components/radio-group/radio-group.d.ts +1 -1
  278. package/dist-versioned/components/range/range.d.ts +1 -1
  279. package/dist-versioned/components/range-tick/range-tick.d.ts +1 -1
  280. package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
  281. package/dist-versioned/components/select/select.d.ts +1 -1
  282. package/dist-versioned/components/select/select.js +1 -1
  283. package/dist-versioned/components/skeleton/skeleton.d.ts +1 -1
  284. package/dist-versioned/components/spinner/spinner.d.ts +1 -1
  285. package/dist-versioned/components/step/step.d.ts +1 -1
  286. package/dist-versioned/components/step-group/step-group.d.ts +1 -1
  287. package/dist-versioned/components/switch/switch.d.ts +1 -1
  288. package/dist-versioned/components/tab/tab.d.ts +1 -1
  289. package/dist-versioned/components/tab-group/tab-group.d.ts +1 -1
  290. package/dist-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  291. package/dist-versioned/components/tag/tag.d.ts +1 -1
  292. package/dist-versioned/components/tag/tag.js +1 -1
  293. package/dist-versioned/components/textarea/textarea.d.ts +1 -1
  294. package/dist-versioned/components/theme-listener/theme-listener.d.ts +1 -1
  295. package/dist-versioned/components/tooltip/tooltip.d.ts +1 -1
  296. package/dist-versioned/components/video/video.d.ts +1 -1
  297. package/dist-versioned/custom-elements.json +244 -244
  298. package/dist-versioned/internal/form.js +3 -3
  299. package/dist-versioned/solid-components.css +2 -2
  300. package/dist-versioned/solid-components.js +4 -4
  301. package/dist-versioned/vscode.html-custom-data.json +94 -94
  302. package/dist-versioned/web-types.json +157 -157
  303. package/package.json +2 -2
  304. package/cdn/chunks/chunk.H7S7D4YV.js +0 -2
  305. package/cdn/chunks/chunk.HYUIC2O6.js +0 -2
  306. package/cdn/chunks/chunk.RKKB23ZF.js +0 -4
  307. package/cdn-versioned/chunks/chunk.H7S7D4YV.js +0 -2
  308. package/cdn-versioned/chunks/chunk.HYUIC2O6.js +0 -2
  309. package/cdn-versioned/chunks/chunk.RKKB23ZF.js +0 -4
@@ -186,7 +186,7 @@ sd-button::part(base){display:flex;height:var(--sd-spacing-12);width:var(--sd-sp
186
186
  :host{display:block;container-type:inline-size;--angle:11deg;--radius:60px;--tan:tan(var(--angle));--adjacent:100cqw;--opposite:calc(var(--tan) * var(--adjacent));--curve:calc(
187
187
  (var(--opposite) - (var(--radius) / 3)) * 0.5
188
188
  )}@supports not (transform:skewY(11deg)){:host{--tan:0.1943803091}}@media (min-width:415px){:host{--radius:72px}}@media (min-width:640px){:host{--radius:84px}}:host([variant=image]) [part=stylized-container],:host([variant^=border-]) [part=stylized-container]::before{position:absolute;top:calc(var(--sd-spacing-1) * 0);left:calc(var(--sd-spacing-1) * 0);transform:skewY(calc(var(--angle) * -1));height:calc(100% - var(--curve) * 2);border-radius:0 var(--radius);margin-top:calc(var(--curve))}slot[name=image]::slotted(img),slot[name=image]::slotted(video){width:100%;-o-object-fit:cover;object-fit:cover;transform:translateY(calc(var(--curve) * -1)) skewY(var(--angle));height:calc(100% + var(--curve) * 2)!important;position:absolute!important}@supports not (height:100cqw){:host([variant=image]) [part=stylized-container],:host([variant^=border-]) [part=stylized-container]::before{transform:unset;height:100%;margin-top:0}slot[name=image]::slotted(img),slot[name=image]::slotted(video){transform:unset;height:100%!important}}:host([variant=border-primary]){--internal-border-color:rgba(var(--sd-color-border-primary, rgba(var(--sd-color-primary))))}:host([variant=border-white]){--internal-border-color:rgba(var(--sd-color-border-white, rgba(var(--sd-color-white))))}:host([variant^=border-]) [part=stylized-container]::before{right:calc(var(--sd-spacing-1) * 0);border-style:var(--tw-border-style);border-width:var(--sd-border-width-2);--tw-border-style:solid;border-style:solid;content:'';border-color:var(--internal-border-color,#000)}:host([variant=neutral-100]) [part=base]{fill:rgba(var(--sd-brandshape--neutral-100-color-background,rgba(var(--sd-color-neutral-100))))}:host([variant=white]) [part=base]{fill:rgba(var(--sd-color-background-white,rgba(var(--sd-color-white))))}:host([variant=primary]) [part=base]{fill:rgba(var(--sd-color-background-primary,rgba(var(--sd-color-primary))))}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}`],a([v("[part=base]")],Zt.prototype,"containerElem",2),a([d({type:String,reflect:!0})],Zt.prototype,"variant",2),a([d({type:Array})],Zt.prototype,"shapes",2),a([L()],Zt.prototype,"componentBreakpoint",2),Zt=a([k("sd-brandshape")],Zt);var fe=Math.min,Ht=Math.max,ji=Math.round,Wi=Math.floor,oe=s=>({x:s,y:s}),Zl={left:"right",right:"left",bottom:"top",top:"bottom"},Ql={start:"end",end:"start"};function Lr(s,i,t){return Ht(s,fe(i,t))}function ni(s,i){return typeof s=="function"?s(i):s}function Te(s){return s.split("-")[0]}function li(s){return s.split("-")[1]}function ws(s){return s==="x"?"y":"x"}function zr(s){return s==="y"?"height":"width"}var Gl=new Set(["top","bottom"]);function ge(s){return Gl.has(Te(s))?"y":"x"}function Mr(s){return ws(ge(s))}function Oa(s,i,t){t===void 0&&(t=!1);let e=li(s),r=Mr(s),o=zr(r),n=r==="x"?e===(t?"end":"start")?"right":"left":e==="start"?"bottom":"top";return i.reference[o]>i.floating[o]&&(n=Ki(n)),[n,Ki(n)]}function _a(s){let i=Ki(s);return[Tr(s),i,Tr(i)]}function Tr(s){return s.replace(/start|end/g,i=>Ql[i])}var Da=["left","right"],Aa=["right","left"],Jl=["top","bottom"],td=["bottom","top"];function ed(s,i,t){switch(s){case"top":case"bottom":return t?i?Aa:Da:i?Da:Aa;case"left":case"right":return i?Jl:td;default:return[]}}function Ia(s,i,t,e){let r=li(s),o=ed(Te(s),t==="start",e);return r&&(o=o.map(n=>n+"-"+r),i&&(o=o.concat(o.map(Tr)))),o}function Ki(s){return s.replace(/left|right|bottom|top/g,i=>Zl[i])}function id(s){return N({top:0,right:0,bottom:0,left:0},s)}function xs(s){return typeof s!="number"?id(s):{top:s,right:s,bottom:s,left:s}}function di(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 Pa(s,i,t){let{reference:e,floating:r}=s,o=ge(i),n=Mr(i),l=zr(n),h=Te(i),u=o==="y",m=e.x+e.width/2-r.width/2,f=e.y+e.height/2-r.height/2,y=e[l]/2-r[l]/2,b;switch(h){case"top":b={x:m,y:e.y-r.height};break;case"bottom":b={x:m,y:e.y+e.height};break;case"right":b={x:e.x+e.width,y:f};break;case"left":b={x:e.x-r.width,y:f};break;default:b={x:e.x,y:e.y}}switch(li(i)){case"start":b[n]-=y*(t&&u?-1:1);break;case"end":b[n]+=y*(t&&u?-1:1);break}return b}var Ha=async(s,i,t)=>{let{placement:e="bottom",strategy:r="absolute",middleware:o=[],platform:n}=t,l=o.filter(Boolean),h=await(n.isRTL==null?void 0:n.isRTL(i)),u=await n.getElementRects({reference:s,floating:i,strategy:r}),{x:m,y:f}=Pa(u,e,h),y=e,b={},w=0;for(let T=0;T<l.length;T++){let{name:z,fn:M}=l[T],{x:_,y:A,data:F,reset:D}=await M({x:m,y:f,initialPlacement:e,placement:y,strategy:r,middlewareData:b,rects:u,platform:n,elements:{reference:s,floating:i}});m=_!=null?_:m,f=A!=null?A:f,b=yt(N({},b),{[z]:N(N({},b[z]),F)}),D&&w<=50&&(w++,typeof D=="object"&&(D.placement&&(y=D.placement),D.rects&&(u=D.rects===!0?await n.getElementRects({reference:s,floating:i,strategy:r}):D.rects),{x:m,y:f}=Pa(u,y,h)),T=-1)}return{x:m,y:f,placement:y,strategy:r,middlewareData:b}};async function Sr(s,i){var t;i===void 0&&(i={});let{x:e,y:r,platform:o,rects:n,elements:l,strategy:h}=s,{boundary:u="clippingAncestors",rootBoundary:m="viewport",elementContext:f="floating",altBoundary:y=!1,padding:b=0}=ni(i,s),w=xs(b),z=l[y?f==="floating"?"reference":"floating":f],M=di(await o.getClippingRect({element:(t=await(o.isElement==null?void 0:o.isElement(z)))==null||t?z:z.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(l.floating)),boundary:u,rootBoundary:m,strategy:h})),_=f==="floating"?{x:e,y:r,width:n.floating.width,height:n.floating.height}:n.reference,A=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l.floating)),F=await(o.isElement==null?void 0:o.isElement(A))?await(o.getScale==null?void 0:o.getScale(A))||{x:1,y:1}:{x:1,y:1},D=di(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:_,offsetParent:A,strategy:h}):_);return{top:(M.top-D.top+w.top)/F.y,bottom:(D.bottom-M.bottom+w.bottom)/F.y,left:(M.left-D.left+w.left)/F.x,right:(D.right-M.right+w.right)/F.x}}var Va=s=>({name:"arrow",options:s,async fn(i){let{x:t,y:e,placement:r,rects:o,platform:n,elements:l,middlewareData:h}=i,{element:u,padding:m=0}=ni(s,i)||{};if(u==null)return{};let f=xs(m),y={x:t,y:e},b=Mr(r),w=zr(b),T=await n.getDimensions(u),z=b==="y",M=z?"top":"left",_=z?"bottom":"right",A=z?"clientHeight":"clientWidth",F=o.reference[w]+o.reference[b]-y[b]-o.floating[w],D=y[b]-o.reference[b],j=await(n.getOffsetParent==null?void 0:n.getOffsetParent(u)),X=j?j[A]:0;(!X||!await(n.isElement==null?void 0:n.isElement(j)))&&(X=l.floating[A]||o.floating[w]);let Tt=F/2-D/2,Et=X/2-T[w]/2-1,st=fe(f[M],Et),Pt=fe(f[_],Et),tt=st,Lt=X-T[w]-Pt,mt=X/2-T[w]/2+Tt,ee=Lr(tt,mt,Lt),je=!h.arrow&&li(r)!=null&&mt!==ee&&o.reference[w]/2-(mt<tt?st:Pt)-T[w]/2<0,xe=je?mt<tt?mt-tt:mt-Lt:0;return{[b]:y[b]+xe,data:N({[b]:ee,centerOffset:mt-ee-xe},je&&{alignmentOffset:xe}),reset:je}}});var Fa=function(s){return s===void 0&&(s={}),{name:"flip",options:s,async fn(i){var t,e;let{placement:r,middlewareData:o,rects:n,initialPlacement:l,platform:h,elements:u}=i,mt=ni(s,i),{mainAxis:m=!0,crossAxis:f=!0,fallbackPlacements:y,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:T=!0}=mt,z=ar(mt,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((t=o.arrow)!=null&&t.alignmentOffset)return{};let M=Te(r),_=ge(l),A=Te(l)===l,F=await(h.isRTL==null?void 0:h.isRTL(u.floating)),D=y||(A||!T?[Ki(l)]:_a(l)),j=w!=="none";!y&&j&&D.push(...Ia(l,T,w,F));let X=[l,...D],Tt=await Sr(i,z),Et=[],st=((e=o.flip)==null?void 0:e.overflows)||[];if(m&&Et.push(Tt[M]),f){let ee=Oa(r,n,F);Et.push(Tt[ee[0]],Tt[ee[1]])}if(st=[...st,{placement:r,overflows:Et}],!Et.every(ee=>ee<=0)){var Pt,tt;let ee=(((Pt=o.flip)==null?void 0:Pt.index)||0)+1,je=X[ee];if(je&&(!(f==="alignment"?_!==ge(je):!1)||st.every(ie=>ge(ie.placement)===_?ie.overflows[0]>0:!0)))return{data:{index:ee,overflows:st},reset:{placement:je}};let xe=(tt=st.filter(We=>We.overflows[0]<=0).sort((We,ie)=>We.overflows[1]-ie.overflows[1])[0])==null?void 0:tt.placement;if(!xe)switch(b){case"bestFit":{var Lt;let We=(Lt=st.filter(ie=>{if(j){let He=ge(ie.placement);return He===_||He==="y"}return!0}).map(ie=>[ie.placement,ie.overflows.filter(He=>He>0).reduce((He,Do)=>He+Do,0)]).sort((ie,He)=>ie[1]-He[1])[0])==null?void 0:Lt[0];We&&(xe=We);break}case"initialPlacement":xe=l;break}if(r!==xe)return{reset:{placement:xe}}}return{}}}};var rd=new Set(["left","top"]);async function sd(s,i){let{placement:t,platform:e,elements:r}=s,o=await(e.isRTL==null?void 0:e.isRTL(r.floating)),n=Te(t),l=li(t),h=ge(t)==="y",u=rd.has(n)?-1:1,m=o&&h?-1:1,f=ni(i,s),{mainAxis:y,crossAxis:b,alignmentAxis:w}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof w=="number"&&(b=l==="end"?w*-1:w),h?{x:b*m,y:y*u}:{x:y*u,y:b*m}}var Ra=function(s){return s===void 0&&(s=0),{name:"offset",options:s,async fn(i){var t,e;let{x:r,y:o,placement:n,middlewareData:l}=i,h=await sd(i,s);return n===((t=l.offset)==null?void 0:t.placement)&&(e=l.arrow)!=null&&e.alignmentOffset?{}:{x:r+h.x,y:o+h.y,data:yt(N({},h),{placement:n})}}}},Ba=function(s){return s===void 0&&(s={}),{name:"shift",options:s,async fn(i){let{x:t,y:e,placement:r}=i,z=ni(s,i),{mainAxis:o=!0,crossAxis:n=!1,limiter:l={fn:M=>{let{x:_,y:A}=M;return{x:_,y:A}}}}=z,h=ar(z,["mainAxis","crossAxis","limiter"]),u={x:t,y:e},m=await Sr(i,h),f=ge(Te(r)),y=ws(f),b=u[y],w=u[f];if(o){let M=y==="y"?"top":"left",_=y==="y"?"bottom":"right",A=b+m[M],F=b-m[_];b=Lr(A,b,F)}if(n){let M=f==="y"?"top":"left",_=f==="y"?"bottom":"right",A=w+m[M],F=w-m[_];w=Lr(A,w,F)}let T=l.fn(yt(N({},i),{[y]:b,[f]:w}));return yt(N({},T),{data:{x:T.x-t,y:T.y-e,enabled:{[y]:o,[f]:n}}})}}};var Na=function(s){return s===void 0&&(s={}),{name:"size",options:s,async fn(i){var t,e;let{placement:r,rects:o,platform:n,elements:l}=i,st=ni(s,i),{apply:h=()=>{}}=st,u=ar(st,["apply"]),m=await Sr(i,u),f=Te(r),y=li(r),b=ge(r)==="y",{width:w,height:T}=o.floating,z,M;f==="top"||f==="bottom"?(z=f,M=y===(await(n.isRTL==null?void 0:n.isRTL(l.floating))?"start":"end")?"left":"right"):(M=f,z=y==="end"?"top":"bottom");let _=T-m.top-m.bottom,A=w-m.left-m.right,F=fe(T-m[z],_),D=fe(w-m[M],A),j=!i.middlewareData.shift,X=F,Tt=D;if((t=i.middlewareData.shift)!=null&&t.enabled.x&&(Tt=A),(e=i.middlewareData.shift)!=null&&e.enabled.y&&(X=_),j&&!y){let Pt=Ht(m.left,0),tt=Ht(m.right,0),Lt=Ht(m.top,0),mt=Ht(m.bottom,0);b?Tt=w-2*(Pt!==0||tt!==0?Pt+tt:Ht(m.left,m.right)):X=T-2*(Lt!==0||mt!==0?Lt+mt:Ht(m.top,m.bottom))}await h(yt(N({},i),{availableWidth:Tt,availableHeight:X}));let Et=await n.getDimensions(l.floating);return w!==Et.width||T!==Et.height?{reset:{rects:!0}}:{}}}};function Dr(){return typeof window!="undefined"}function ci(s){return qa(s)?(s.nodeName||"").toLowerCase():"#document"}function Nt(s){var i;return(s==null||(i=s.ownerDocument)==null?void 0:i.defaultView)||window}function ne(s){var i;return(i=(qa(s)?s.ownerDocument:s.document)||window.document)==null?void 0:i.documentElement}function qa(s){return Dr()?s instanceof Node||s instanceof Nt(s).Node:!1}function Qt(s){return Dr()?s instanceof Element||s instanceof Nt(s).Element:!1}function le(s){return Dr()?s instanceof HTMLElement||s instanceof Nt(s).HTMLElement:!1}function Ua(s){return!Dr()||typeof ShadowRoot=="undefined"?!1:s instanceof ShadowRoot||s instanceof Nt(s).ShadowRoot}var ad=new Set(["inline","contents"]);function ki(s){let{overflow:i,overflowX:t,overflowY:e,display:r}=Gt(s);return/auto|scroll|overlay|hidden|clip/.test(i+e+t)&&!ad.has(r)}var od=new Set(["table","td","th"]);function Ka(s){return od.has(ci(s))}var nd=[":popover-open",":modal"];function Yi(s){return nd.some(i=>{try{return s.matches(i)}catch(t){return!1}})}var ld=["transform","translate","scale","rotate","perspective"],dd=["transform","translate","scale","rotate","perspective","filter"],cd=["paint","layout","strict","content"];function Ar(s){let i=Or(),t=Qt(s)?Gt(s):s;return ld.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)||dd.some(e=>(t.willChange||"").includes(e))||cd.some(e=>(t.contain||"").includes(e))}function ja(s){let i=Le(s);for(;le(i)&&!hi(i);){if(Ar(i))return i;if(Yi(i))return null;i=Le(i)}return null}function Or(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var hd=new Set(["html","body","#document"]);function hi(s){return hd.has(ci(s))}function Gt(s){return Nt(s).getComputedStyle(s)}function Xi(s){return Qt(s)?{scrollLeft:s.scrollLeft,scrollTop:s.scrollTop}:{scrollLeft:s.scrollX,scrollTop:s.scrollY}}function Le(s){if(ci(s)==="html")return s;let i=s.assignedSlot||s.parentNode||Ua(s)&&s.host||ne(s);return Ua(i)?i.host:i}function Wa(s){let i=Le(s);return hi(i)?s.ownerDocument?s.ownerDocument.body:s.body:le(i)&&ki(i)?i:Wa(i)}function xi(s,i,t){var e;i===void 0&&(i=[]),t===void 0&&(t=!0);let r=Wa(s),o=r===((e=s.ownerDocument)==null?void 0:e.body),n=Nt(r);if(o){let l=_r(n);return i.concat(n,n.visualViewport||[],ki(r)?r:[],l&&t?xi(l):[])}return i.concat(r,xi(r,[],t))}function _r(s){return s.parent&&Object.getPrototypeOf(s.parent)?s.frameElement:null}function Qa(s){let i=Gt(s),t=parseFloat(i.width)||0,e=parseFloat(i.height)||0,r=le(s),o=r?s.offsetWidth:t,n=r?s.offsetHeight:e,l=ji(t)!==o||ji(e)!==n;return l&&(t=o,e=n),{width:t,height:e,$:l}}function Es(s){return Qt(s)?s:s.contextElement}function Ei(s){let i=Es(s);if(!le(i))return oe(1);let t=i.getBoundingClientRect(),{width:e,height:r,$:o}=Qa(i),n=(o?ji(t.width):t.width)/e,l=(o?ji(t.height):t.height)/r;return(!n||!Number.isFinite(n))&&(n=1),(!l||!Number.isFinite(l))&&(l=1),{x:n,y:l}}var ud=oe(0);function Ga(s){let i=Nt(s);return!Or()||!i.visualViewport?ud:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function pd(s,i,t){return i===void 0&&(i=!1),!t||i&&t!==Nt(s)?!1:i}function ui(s,i,t,e){i===void 0&&(i=!1),t===void 0&&(t=!1);let r=s.getBoundingClientRect(),o=Es(s),n=oe(1);i&&(e?Qt(e)&&(n=Ei(e)):n=Ei(s));let l=pd(o,t,e)?Ga(o):oe(0),h=(r.left+l.x)/n.x,u=(r.top+l.y)/n.y,m=r.width/n.x,f=r.height/n.y;if(o){let y=Nt(o),b=e&&Qt(e)?Nt(e):e,w=y,T=_r(w);for(;T&&e&&b!==w;){let z=Ei(T),M=T.getBoundingClientRect(),_=Gt(T),A=M.left+(T.clientLeft+parseFloat(_.paddingLeft))*z.x,F=M.top+(T.clientTop+parseFloat(_.paddingTop))*z.y;h*=z.x,u*=z.y,m*=z.x,f*=z.y,h+=A,u+=F,w=Nt(T),T=_r(w)}}return di({width:m,height:f,x:h,y:u})}function Ir(s,i){let t=Xi(s).scrollLeft;return i?i.left+t:ui(ne(s)).left+t}function Ja(s,i){let t=s.getBoundingClientRect(),e=t.left+i.scrollLeft-Ir(s,t),r=t.top+i.scrollTop;return{x:e,y:r}}function md(s){let{elements:i,rect:t,offsetParent:e,strategy:r}=s,o=r==="fixed",n=ne(e),l=i?Yi(i.floating):!1;if(e===n||l&&o)return t;let h={scrollLeft:0,scrollTop:0},u=oe(1),m=oe(0),f=le(e);if((f||!f&&!o)&&((ci(e)!=="body"||ki(n))&&(h=Xi(e)),le(e))){let b=ui(e);u=Ei(e),m.x=b.x+e.clientLeft,m.y=b.y+e.clientTop}let y=n&&!f&&!o?Ja(n,h):oe(0);return{width:t.width*u.x,height:t.height*u.y,x:t.x*u.x-h.scrollLeft*u.x+m.x+y.x,y:t.y*u.y-h.scrollTop*u.y+m.y+y.y}}function fd(s){return Array.from(s.getClientRects())}function gd(s){let i=ne(s),t=Xi(s),e=s.ownerDocument.body,r=Ht(i.scrollWidth,i.clientWidth,e.scrollWidth,e.clientWidth),o=Ht(i.scrollHeight,i.clientHeight,e.scrollHeight,e.clientHeight),n=-t.scrollLeft+Ir(s),l=-t.scrollTop;return Gt(e).direction==="rtl"&&(n+=Ht(i.clientWidth,e.clientWidth)-r),{width:r,height:o,x:n,y:l}}var Ya=25;function bd(s,i){let t=Nt(s),e=ne(s),r=t.visualViewport,o=e.clientWidth,n=e.clientHeight,l=0,h=0;if(r){o=r.width,n=r.height;let m=Or();(!m||m&&i==="fixed")&&(l=r.offsetLeft,h=r.offsetTop)}let u=Ir(e);if(u<=0){let m=e.ownerDocument,f=m.body,y=getComputedStyle(f),b=m.compatMode==="CSS1Compat"&&parseFloat(y.marginLeft)+parseFloat(y.marginRight)||0,w=Math.abs(e.clientWidth-f.clientWidth-b);w<=Ya&&(o-=w)}else u<=Ya&&(o+=u);return{width:o,height:n,x:l,y:h}}var vd=new Set(["absolute","fixed"]);function yd(s,i){let t=ui(s,!0,i==="fixed"),e=t.top+s.clientTop,r=t.left+s.clientLeft,o=le(s)?Ei(s):oe(1),n=s.clientWidth*o.x,l=s.clientHeight*o.y,h=r*o.x,u=e*o.y;return{width:n,height:l,x:h,y:u}}function Xa(s,i,t){let e;if(i==="viewport")e=bd(s,t);else if(i==="document")e=gd(ne(s));else if(Qt(i))e=yd(i,t);else{let r=Ga(s);e={x:i.x-r.x,y:i.y-r.y,width:i.width,height:i.height}}return di(e)}function to(s,i){let t=Le(s);return t===i||!Qt(t)||hi(t)?!1:Gt(t).position==="fixed"||to(t,i)}function wd(s,i){let t=i.get(s);if(t)return t;let e=xi(s,[],!1).filter(l=>Qt(l)&&ci(l)!=="body"),r=null,o=Gt(s).position==="fixed",n=o?Le(s):s;for(;Qt(n)&&!hi(n);){let l=Gt(n),h=Ar(n);!h&&l.position==="fixed"&&(r=null),(o?!h&&!r:!h&&l.position==="static"&&!!r&&vd.has(r.position)||ki(n)&&!h&&to(s,n))?e=e.filter(m=>m!==n):r=l,n=Le(n)}return i.set(s,e),e}function xd(s){let{element:i,boundary:t,rootBoundary:e,strategy:r}=s,n=[...t==="clippingAncestors"?Yi(i)?[]:wd(i,this._c):[].concat(t),e],l=n[0],h=n.reduce((u,m)=>{let f=Xa(i,m,r);return u.top=Ht(f.top,u.top),u.right=fe(f.right,u.right),u.bottom=fe(f.bottom,u.bottom),u.left=Ht(f.left,u.left),u},Xa(i,l,r));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function kd(s){let{width:i,height:t}=Qa(s);return{width:i,height:t}}function Ed(s,i,t){let e=le(i),r=ne(i),o=t==="fixed",n=ui(s,!0,o,i),l={scrollLeft:0,scrollTop:0},h=oe(0);function u(){h.x=Ir(r)}if(e||!e&&!o)if((ci(i)!=="body"||ki(r))&&(l=Xi(i)),e){let b=ui(i,!0,o,i);h.x=b.x+i.clientLeft,h.y=b.y+i.clientTop}else r&&u();o&&!e&&r&&u();let m=r&&!e&&!o?Ja(r,l):oe(0),f=n.left+l.scrollLeft-h.x-m.x,y=n.top+l.scrollTop-h.y-m.y;return{x:f,y,width:n.width,height:n.height}}function ks(s){return Gt(s).position==="static"}function Za(s,i){if(!le(s)||Gt(s).position==="fixed")return null;if(i)return i(s);let t=s.offsetParent;return ne(s)===t&&(t=t.ownerDocument.body),t}function eo(s,i){let t=Nt(s);if(Yi(s))return t;if(!le(s)){let r=Le(s);for(;r&&!hi(r);){if(Qt(r)&&!ks(r))return r;r=Le(r)}return t}let e=Za(s,i);for(;e&&Ka(e)&&ks(e);)e=Za(e,i);return e&&hi(e)&&ks(e)&&!Ar(e)?t:e||ja(s)||t}var Cd=async function(s){let i=this.getOffsetParent||eo,t=this.getDimensions,e=await t(s.floating);return{reference:Ed(s.reference,await i(s.floating),s.strategy),floating:{x:0,y:0,width:e.width,height:e.height}}};function $d(s){return Gt(s).direction==="rtl"}var Td={convertOffsetParentRelativeRectToViewportRelativeRect:md,getDocumentElement:ne,getClippingRect:xd,getOffsetParent:eo,getElementRects:Cd,getClientRects:fd,getDimensions:kd,getScale:Ei,isElement:Qt,isRTL:$d};function io(s,i){return s.x===i.x&&s.y===i.y&&s.width===i.width&&s.height===i.height}function Ld(s,i){let t=null,e,r=ne(s);function o(){var l;clearTimeout(e),(l=t)==null||l.disconnect(),t=null}function n(l,h){l===void 0&&(l=!1),h===void 0&&(h=1),o();let u=s.getBoundingClientRect(),{left:m,top:f,width:y,height:b}=u;if(l||i(),!y||!b)return;let w=Wi(f),T=Wi(r.clientWidth-(m+y)),z=Wi(r.clientHeight-(f+b)),M=Wi(m),A={rootMargin:-w+"px "+-T+"px "+-z+"px "+-M+"px",threshold:Ht(0,fe(1,h))||1},F=!0;function D(j){let X=j[0].intersectionRatio;if(X!==h){if(!F)return n();X?n(!1,X):e=setTimeout(()=>{n(!1,1e-7)},1e3)}X===1&&!io(u,s.getBoundingClientRect())&&n(),F=!1}try{t=new IntersectionObserver(D,yt(N({},A),{root:r.ownerDocument}))}catch(j){t=new IntersectionObserver(D,A)}t.observe(s)}return n(!0),o}function ro(s,i,t,e){e===void 0&&(e={});let{ancestorScroll:r=!0,ancestorResize:o=!0,elementResize:n=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:h=!1}=e,u=Es(s),m=r||o?[...u?xi(u):[],...xi(i)]:[];m.forEach(M=>{r&&M.addEventListener("scroll",t,{passive:!0}),o&&M.addEventListener("resize",t)});let f=u&&l?Ld(u,t):null,y=-1,b=null;n&&(b=new ResizeObserver(M=>{let[_]=M;_&&_.target===u&&b&&(b.unobserve(i),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var A;(A=b)==null||A.observe(i)})),t()}),u&&!h&&b.observe(u),b.observe(i));let w,T=h?ui(s):null;h&&z();function z(){let M=ui(s);T&&!io(T,M)&&t(),T=M,w=requestAnimationFrame(z)}return t(),()=>{var M;m.forEach(_=>{r&&_.removeEventListener("scroll",t),o&&_.removeEventListener("resize",t)}),f==null||f(),(M=b)==null||M.disconnect(),b=null,h&&cancelAnimationFrame(w)}}var so=Ra;var ao=Ba,oo=Fa,Cs=Na;var no=Va;var lo=(s,i,t)=>{let e=new Map,r=N({platform:Td},t),o=yt(N({},r.platform),{_c:e});return Ha(s,i,yt(N({},r),{platform:o}))};var Q=class extends g{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=ro(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=[so({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?t.push(Cs({apply:({rects:e})=>{let r=this.sync==="width"||this.sync==="both",o=this.sync==="height"||this.sync==="both";this.popup.style.width=r?`${e.reference.width}px`:"",this.popup.style.height=o?`${e.reference.height}px`:""}})):(this.popup.style.width="",this.popup.style.height=""),this.flip&&t.push(oo({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:this.flipFallbackStrategy==="best-fit"?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&t.push(ao({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?t.push(Cs({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(no({element:this.arrowEl,padding:this.arrowPadding})),lo(this.anchorEl,this.popup,{placement:this.placement,middleware:t,strategy:this.strategy}).then(({x:e,y:r,middlewareData:o,placement:n})=>{let l=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=o.arrow.x,m=o.arrow.y,f="",y="",b="",w="";if(this.arrowPlacement==="start"){let T=typeof u=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";f=typeof m=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",y=l?T:"",w=l?"":T}else if(this.arrowPlacement==="end"){let T=typeof u=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";y=l?"":T,w=l?T:"",b=typeof m=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""}else this.arrowPlacement==="center"?(w=typeof u=="number"?"calc(50% - var(--arrow-size-diagonal))":"",f=typeof m=="number"?"calc(50% - var(--arrow-size-diagonal))":""):(w=typeof u=="number"?`${u}px`:"",f=typeof m=="number"?`${m}px`:"");Object.assign(this.arrowEl.style,{top:f,right:y,bottom:b,left:w,[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>`}};Q.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
189
- :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-width:var(--auto-size-available-width,none);max-height:var(--auto-size-available-height,none)}[part=arrow]{width:calc(var(--arrow-size-diagonal) * 2);height:calc(var(--arrow-size-diagonal) * 2);background:var(--arrow-color)}`],a([v('[part="popup"]')],Q.prototype,"popup",2),a([v('[part="arrow"]')],Q.prototype,"arrowEl",2),a([d({reflect:!0})],Q.prototype,"anchor",2),a([d({type:Boolean,reflect:!0})],Q.prototype,"active",2),a([d({type:String,reflect:!0})],Q.prototype,"placement",2),a([d({type:String,reflect:!0})],Q.prototype,"strategy",2),a([d({type:Number,reflect:!0})],Q.prototype,"distance",2),a([d({type:Number,reflect:!0})],Q.prototype,"skidding",2),a([d({type:Boolean,reflect:!0})],Q.prototype,"arrow",2),a([d({type:String,attribute:"arrow-placement",reflect:!0})],Q.prototype,"arrowPlacement",2),a([d({attribute:"arrow-padding",type:Number,reflect:!0})],Q.prototype,"arrowPadding",2),a([d({type:Boolean,reflect:!0})],Q.prototype,"flip",2),a([d({attribute:"flip-fallback-placements",converter:{fromAttribute:t=>t.split(" ").map(e=>e.trim()).filter(e=>e!==""),toAttribute:t=>t.join(" ")}})],Q.prototype,"flipFallbackPlacements",2),a([d({type:String,attribute:"flip-fallback-strategy"})],Q.prototype,"flipFallbackStrategy",2),a([d({type:Object})],Q.prototype,"flipBoundary",2),a([d({attribute:"flip-padding",type:Number})],Q.prototype,"flipPadding",2),a([d({type:Boolean})],Q.prototype,"shift",2),a([d({type:Object})],Q.prototype,"shiftBoundary",2),a([d({attribute:"shift-padding",type:Number})],Q.prototype,"shiftPadding",2),a([d({type:String,attribute:"auto-size"})],Q.prototype,"autoSize",2),a([d()],Q.prototype,"sync",2),a([d({type:Object})],Q.prototype,"autoSizeBoundary",2),a([d({attribute:"auto-size-padding",type:Number})],Q.prototype,"autoSizePadding",2),Q=a([k("sd-popup")],Q);function co(s,i){let t=s;for(;t;){if(t.matches(i))return t;if(t.parentElement)t=t.parentElement;else if(t.parentNode instanceof ShadowRoot)t=t.parentNode.host;else break}return null}var dt=class extends g{constructor(){super(...arguments);this.localize=new O(this);this.open=!1;this.rounded=!1;this.placement="bottom-start";this.disabled=!1;this.stayOpenOnSelect=!1;this.distance=0;this.skidding=0;this.noAutoSize=!1;this.noFlip=!1;this.hoist=!1}connectedCallback(){super.connectedCallback(),this.handleMenuItemActivate=this.handleMenuItemActivate.bind(this),this.handlePanelSelect=this.handlePanelSelect.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleDocumentKeyDown=this.handleDocumentKeyDown.bind(this),this.handleDocumentMouseDown=this.handleDocumentMouseDown.bind(this),this.containingElement||(this.containingElement=this)}firstUpdated(){this.panel.hidden=!this.open,this.open&&(this.addOpenListeners(),this.popup.active=!0)}disconnectedCallback(){super.disconnectedCallback(),this.removeOpenListeners(),this.hide()}getAccessibleTrigger(){let e=this.trigger.assignedElements({flatten:!0}).find(o=>$r(o).start),r=null;if(e)switch(e.tagName.toLowerCase()){case"sd-button":case"sd-icon-button":r=e.button;break;case"sd-navigation-item":r=e.button;break;default:r=e}return r}updateAccessibleTrigger(){let t=this.getAccessibleTrigger();t&&(t.setAttribute("aria-haspopup","true"),t.setAttribute("aria-expanded",this.open?"true":"false"))}focusOnTrigger(){let t=this.getAccessibleTrigger();typeof(t==null?void 0:t.focus)=="function"&&t.focus()}getMenu(){return this.panel.assignedElements({flatten:!0}).find(t=>t.tagName.toLowerCase()==="sd-menu")}handleKeyDown(t){this.open&&t.key==="Escape"&&(t.stopPropagation(),this.hide(),this.focusOnTrigger())}handleDocumentKeyDown(t){var e;if(t.key==="Tab"){if(this.open&&((e=document.activeElement)==null?void 0:e.tagName.toLowerCase())==="sd-menu-item"){t.preventDefault(),this.hide(),this.focusOnTrigger();return}setTimeout(()=>{let r=ri();(!r||!this.containingElement||co(r,this.containingElement.tagName.toLowerCase())!==this.containingElement)&&this.hide()})}}handleDocumentMouseDown(t){let e=t.composedPath();this.containingElement&&!e.includes(this.containingElement)&&this.hide()}handleMenuItemActivate(t){let e=t.target;se(e,this.panel)}handlePanelSelect(t){let e=t.target;!this.stayOpenOnSelect&&e.tagName.toLowerCase()==="sd-menu"&&(this.hide(),this.focusOnTrigger())}handleTriggerClick(){this.open?this.hide():this.show()}handleTriggerKeyDown(t){if(t.key==="Escape"&&this.open){t.stopPropagation(),this.focusOnTrigger(),this.hide();return}if([" ","Enter"].includes(t.key)){t.preventDefault(),this.handleTriggerClick();return}let e=this.getMenu();if(e){let r=e.defaultSlot.assignedElements({flatten:!0}),o=r.find(l=>!l.disabled)||r[0],n=r[r.length-1];["ArrowDown","ArrowUp","Home","End"].includes(t.key)&&(t.preventDefault(),this.open||this.show(),r.length>0&&requestAnimationFrame(()=>{(t.key==="ArrowDown"||t.key==="Home")&&(e.setCurrentItem(o),o.focus()),(t.key==="ArrowUp"||t.key==="End")&&(e.setCurrentItem(n),n.focus())}))}}handleTriggerKeyUp(t){t.key===" "&&t.preventDefault()}handleTriggerSlotChange(){this.updateAccessibleTrigger()}async show(){if(!this.open)return this.open=!0,J(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,J(this,"sd-after-hide")}reposition(){this.popup.reposition()}addOpenListeners(){this.panel.addEventListener("sd-activate",this.handleMenuItemActivate),this.panel.addEventListener("sd-select",this.handlePanelSelect),this.panel.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keydown",this.handleDocumentKeyDown),document.addEventListener("mousedown",this.handleDocumentMouseDown)}removeOpenListeners(){this.panel&&(this.panel.removeEventListener("sd-activate",this.handleMenuItemActivate),this.panel.removeEventListener("sd-select",this.handlePanelSelect),this.panel.removeEventListener("keydown",this.handleKeyDown)),document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("mousedown",this.handleDocumentMouseDown)}async handleOpenChange(){if(this.disabled){this.open=!1;return}if(this.updateAccessibleTrigger(),this.open){this.emit("sd-show"),this.addOpenListeners(),await Y(this),this.panel.hidden=!1,this.popup.active=!0;let{keyframes:t,options:e}=q(this,"dropdown.show",{dir:this.localize.dir()});await K(this.popup.popup,t,e),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),await Y(this);let{keyframes:t,options:e}=q(this,"dropdown.hide",{dir:this.localize.dir()});await K(this.popup.popup,t,e),this.panel.hidden=!0,this.popup.active=!1,this.emit("sd-after-hide")}}render(){return p`<sd-popup part="base" id="dropdown" exportparts="
189
+ :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-width:var(--auto-size-available-width,none);max-height:var(--auto-size-available-height,none)}[part=arrow]{width:calc(var(--arrow-size-diagonal) * 2);height:calc(var(--arrow-size-diagonal) * 2);background:var(--arrow-color)}`],a([v('[part="popup"]')],Q.prototype,"popup",2),a([v('[part="arrow"]')],Q.prototype,"arrowEl",2),a([d({reflect:!0})],Q.prototype,"anchor",2),a([d({type:Boolean,reflect:!0})],Q.prototype,"active",2),a([d({type:String,reflect:!0})],Q.prototype,"placement",2),a([d({type:String,reflect:!0})],Q.prototype,"strategy",2),a([d({type:Number,reflect:!0})],Q.prototype,"distance",2),a([d({type:Number,reflect:!0})],Q.prototype,"skidding",2),a([d({type:Boolean,reflect:!0})],Q.prototype,"arrow",2),a([d({type:String,attribute:"arrow-placement",reflect:!0})],Q.prototype,"arrowPlacement",2),a([d({attribute:"arrow-padding",type:Number,reflect:!0})],Q.prototype,"arrowPadding",2),a([d({type:Boolean,reflect:!0})],Q.prototype,"flip",2),a([d({attribute:"flip-fallback-placements",converter:{fromAttribute:t=>t.split(" ").map(e=>e.trim()).filter(e=>e!==""),toAttribute:t=>t.join(" ")}})],Q.prototype,"flipFallbackPlacements",2),a([d({type:String,attribute:"flip-fallback-strategy"})],Q.prototype,"flipFallbackStrategy",2),a([d({type:Object})],Q.prototype,"flipBoundary",2),a([d({attribute:"flip-padding",type:Number})],Q.prototype,"flipPadding",2),a([d({type:Boolean})],Q.prototype,"shift",2),a([d({type:Object})],Q.prototype,"shiftBoundary",2),a([d({attribute:"shift-padding",type:Number})],Q.prototype,"shiftPadding",2),a([d({type:String,attribute:"auto-size"})],Q.prototype,"autoSize",2),a([d()],Q.prototype,"sync",2),a([d({type:Object})],Q.prototype,"autoSizeBoundary",2),a([d({attribute:"auto-size-padding",type:Number})],Q.prototype,"autoSizePadding",2),Q=a([k("sd-popup")],Q);function co(s,i){let t=s;for(;t;){if(t.matches(i))return t;if(t.parentElement)t=t.parentElement;else if(t.parentNode instanceof ShadowRoot)t=t.parentNode.host;else break}return null}var dt=class extends g{constructor(){super(...arguments);this.localize=new O(this);this.open=!1;this.rounded=!1;this.placement="bottom-start";this.disabled=!1;this.stayOpenOnSelect=!1;this.distance=0;this.skidding=0;this.noAutoSize=!1;this.noFlip=!1;this.hoist=!1}connectedCallback(){super.connectedCallback(),this.handleMenuItemActivate=this.handleMenuItemActivate.bind(this),this.handlePanelSelect=this.handlePanelSelect.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleDocumentKeyDown=this.handleDocumentKeyDown.bind(this),this.handleDocumentMouseDown=this.handleDocumentMouseDown.bind(this),this.containingElement||(this.containingElement=this)}firstUpdated(){this.panel.hidden=!this.open,this.open&&(this.addOpenListeners(),this.popup.active=!0)}disconnectedCallback(){super.disconnectedCallback(),this.removeOpenListeners(),this.hide()}getAccessibleTrigger(){let e=this.trigger.assignedElements({flatten:!0}).find(o=>$r(o).start),r=null;if(e)switch(e.tagName.toLowerCase()){case"sd-button":case"sd-icon-button":r=e.button;break;case"sd-navigation-item":r=e.button;break;default:r=e}return r}updateAccessibleTrigger(){let t=this.getAccessibleTrigger();t&&(t.setAttribute("aria-haspopup","true"),t.setAttribute("aria-expanded",this.open?"true":"false"))}focusOnTrigger(){let t=this.getAccessibleTrigger();typeof(t==null?void 0:t.focus)=="function"&&t.focus()}getMenu(){return this.panel.assignedElements({flatten:!0}).find(t=>t.tagName.toLowerCase()==="sd-menu")}handleKeyDown(t){this.open&&t.key==="Escape"&&(t.stopPropagation(),this.hide(),this.focusOnTrigger())}handleDocumentKeyDown(t){var e;if(t.key==="Tab"){if(this.open&&((e=document.activeElement)==null?void 0:e.tagName.toLowerCase())==="sd-menu-item"){t.preventDefault(),this.hide(),this.focusOnTrigger();return}setTimeout(()=>{let r=ri();(!r||!this.containingElement||co(r,this.containingElement.tagName.toLowerCase())!==this.containingElement)&&this.hide()})}}handleDocumentMouseDown(t){let e=t.composedPath();this.containingElement&&!e.includes(this.containingElement)&&this.hide()}handleMenuItemActivate(t){let e=t.target;se(e,this.panel)}handlePanelSelect(t){let e=t.target;!this.stayOpenOnSelect&&e.tagName.toLowerCase()==="sd-menu"&&(this.hide(),this.focusOnTrigger())}handleTriggerClick(){if(this.open){let t=this.getMenu();if(t){let e=t.getCurrentItem();e==null||e.classList.remove("menu-item-focus")}this.hide()}else this.show()}handleTriggerKeyDown(t){if(t.key==="Escape"&&this.open){t.stopPropagation(),this.focusOnTrigger(),this.handleTriggerClick();return}if([" ","Enter"].includes(t.key)){t.preventDefault(),this.handleTriggerClick();return}let e=this.getMenu();if(e){let r=e.defaultSlot.assignedElements({flatten:!0}),o=r.find(l=>!l.disabled)||r[0],n=r[r.length-1];["ArrowDown","ArrowUp","Home","End"].includes(t.key)&&(t.preventDefault(),this.open||this.show(),r.length>0&&requestAnimationFrame(()=>{(t.key==="ArrowDown"||t.key==="Home")&&(e.setCurrentItem(o),o.focus(),o.classList.add("menu-item-focus")),(t.key==="ArrowUp"||t.key==="End")&&(e.setCurrentItem(n),n.focus(),n.classList.add("menu-item-focus"))}))}}handleTriggerKeyUp(t){t.key===" "&&t.preventDefault()}handleTriggerSlotChange(){this.updateAccessibleTrigger()}async show(){if(!this.open)return this.open=!0,J(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,J(this,"sd-after-hide")}reposition(){this.popup.reposition()}addOpenListeners(){this.panel.addEventListener("sd-activate",this.handleMenuItemActivate),this.panel.addEventListener("sd-select",this.handlePanelSelect),this.panel.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keydown",this.handleDocumentKeyDown),document.addEventListener("mousedown",this.handleDocumentMouseDown)}removeOpenListeners(){this.panel&&(this.panel.removeEventListener("sd-activate",this.handleMenuItemActivate),this.panel.removeEventListener("sd-select",this.handlePanelSelect),this.panel.removeEventListener("keydown",this.handleKeyDown)),document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("mousedown",this.handleDocumentMouseDown)}async handleOpenChange(){if(this.disabled){this.open=!1;return}if(this.updateAccessibleTrigger(),this.open){this.emit("sd-show"),this.addOpenListeners(),await Y(this),this.panel.hidden=!1,this.popup.active=!0;let{keyframes:t,options:e}=q(this,"dropdown.show",{dir:this.localize.dir()});await K(this.popup.popup,t,e),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),await Y(this);let{keyframes:t,options:e}=q(this,"dropdown.hide",{dir:this.localize.dir()});await K(this.popup.popup,t,e),this.panel.hidden=!0,this.popup.active=!1,this.emit("sd-after-hide")}}render(){return p`<sd-popup part="base" id="dropdown" exportparts="
190
190
  popup:base__popup,
191
191
  " placement="${this.placement}" distance="${this.rounded&&this.distance<1?1:this.distance}" skidding="${this.skidding}" strategy="${this.hoist?"fixed":"absolute"}" ?flip="${!this.noFlip}" shift auto-size="vertical" auto-size-padding="10"><slot name="trigger" slot="anchor" part="trigger" class="block" @click="${this.handleTriggerClick}" @keydown="${this.handleTriggerKeyDown}" @keyup="${this.handleTriggerKeyUp}" @slotchange="${this.handleTriggerSlotChange}"></slot><slot part="panel" class="${c("panel-color-border border shadow bg-white block",this.open?"pointer-events-auto":"pointer-events-none",this.rounded&&"rounded-md")}" aria-hidden="${this.open?"false":"true"}" aria-labelledby="dropdown"></slot></sd-popup>`}};dt.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
192
192
  :host{display:inline-block}#dropdown::part(popup){z-index:var(--sd-z-index-dropdown,900)}#dropdown[data-current-placement^=top]::part(popup){transform-origin:bottom}#dropdown[data-current-placement^=bottom]::part(popup){transform-origin:top}#dropdown[data-current-placement^=left]::part(popup){transform-origin:100%}#dropdown[data-current-placement^=right]::part(popup){transform-origin:0}:host(:not([no-auto-size])) ::slotted(:not([slot=trigger])){overflow:auto;max-width:var(--auto-size-available-width)!important;max-height:var(--auto-size-available-height)!important}`],a([v("#dropdown")],dt.prototype,"popup",2),a([v("[part=trigger]")],dt.prototype,"trigger",2),a([v("[part=panel]")],dt.prototype,"panel",2),a([d({type:Boolean,reflect:!0})],dt.prototype,"open",2),a([d({type:Boolean,reflect:!0})],dt.prototype,"rounded",2),a([d({type:String,reflect:!0})],dt.prototype,"placement",2),a([d({type:Boolean,reflect:!0})],dt.prototype,"disabled",2),a([d({attribute:"stay-open-on-select",type:Boolean,reflect:!0})],dt.prototype,"stayOpenOnSelect",2),a([d({type:Object})],dt.prototype,"containingElement",2),a([d({type:Number,reflect:!0})],dt.prototype,"distance",2),a([d({type:Number,reflect:!0})],dt.prototype,"skidding",2),a([d({type:Boolean,reflect:!0,attribute:"no-auto-size"})],dt.prototype,"noAutoSize",2),a([d({type:Boolean,reflect:!0,attribute:"no-flip"})],dt.prototype,"noFlip",2),a([d({type:Boolean,reflect:!0})],dt.prototype,"hoist",2),a([E("open",{waitUntilFirstUpdate:!0})],dt.prototype,"handleOpenChange",1),dt=a([k("sd-dropdown")],dt);R("dropdown.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});R("dropdown.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});var Vt=class extends g{constructor(){super(...arguments);this.localize=new O(this);this.label="";this.itemPositionsCached=!1;this.isTruncated=!1}get items(){return this.querySelectorAll("sd-breadcrumb-item")}cacheItemPositions(){this.items.forEach(t=>{let{width:e}=t.getBoundingClientRect();t.dataset.size=`${e}`}),this.itemPositionsCached=!0}handleTruncation(){var o;if(document.documentElement.clientWidth<=1024)return;let{width:t}=this.base.getBoundingClientRect(),{width:e}=this.truncated.getBoundingClientRect();this.itemPositionsCached||this.cacheItemPositions(),this.dropdown.innerHTML="",this.isTruncated=!1;let r=0;for(let[n,l]of Array.from(this.items).reverse().entries()){let h=parseFloat(`${(o=l.dataset.size)!=null?o:l.getBoundingClientRect().width}`);if(l.hidden=!1,this.isTruncated){let u=l.cloneNode(!0);this.dropdown.prepend(u),l.hidden=!0;continue}if(n===0||n===1){r+=h;continue}if(this.isTruncated=r+h+e>t,this.isTruncated){let u=l.cloneNode(!0);this.dropdown.prepend(u),l.hidden=!0}else r+=h}}handleMobileChevron(){var e,r,o;let t=document.createElement("sd-icon");t.setAttribute("slot","icon-left"),t.setAttribute("library","_internal"),t.setAttribute("name","chevron-left"),t.setAttribute("class","text-base me-1 lg:hidden"),(o=(r=(e=Array.from(this.items).at(-2))==null?void 0:e.shadowRoot)==null?void 0:r.querySelector("sd-link"))==null||o.appendChild(t)}handleSlotChange(){this.handleMobileChevron()}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver(()=>this.handleTruncation()),this.resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.unobserve(this)}render(){return p`<nav part="base" class="flex items-center pb-1" aria-label="${this.label}"><sd-dropdown part="truncated" class="${c(!this.isTruncated&&"absolute opacity-0 pointer-events-none")}"><button slot="trigger" tabindex="${this.isTruncated?"0":"-1"}" aria-label="${this.localize.term("truncatedBreadcrumbs")}" aria-expanded="false" aria-haspopup="true" class="flex sd-interactive">[...]</button><ol part="truncated-dropdown" class="flex flex-col gap-4 px-2 py-3 min-w-40"></ol></sd-dropdown><ol part="list" class="flex items-center"><slot @slotchange="${this.handleSlotChange}"></slot></ol></nav>`}};Vt.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
@@ -196,7 +196,7 @@ sd-button::part(base){display:flex;height:var(--sd-spacing-12);width:var(--sd-sp
196
196
  :host{aspect-ratio:var(--aspect-ratio);scroll-snap-align:start;scroll-snap-stop:always;display:flex;height:100%;width:100%;flex-direction:column;align-items:center;justify-content:center}::slotted(img){height:100%;width:100%;-o-object-fit:cover;object-fit:cover}`],be=a([k("sd-carousel-item")],be);var G=class extends g{constructor(){super(...arguments);this.variant="number";this.inverted=!1;this.loop=!1;this.autoplay=!1;this.fade=!1;this.slidesPerPage=1;this.slidesPerMove=1;this.activeSlide=0;this.currentPage=1;this.pausedAutoplay=!1;this.autoplayController=new Pr(this,()=>this.next());this.scrollController=new Zi(this);this.slides=this.getElementsByTagName("sd-carousel-item");this.intersectionObserverEntries=new Map;this.localize=new O(this);this.userInteracted=!1;this.fadeController=new Hr(this);this.handleUserInteraction=()=>{this.userInteracted=!0};this.handleSlotChange=t=>{t.some(r=>[...r.addedNodes,...r.removedNodes].some(o=>be.isCarouselItem(o)&&!o.hasAttribute("data-clone")))&&this.initializeSlides(),this.requestUpdate()};this.unblockAutoplay=(t,e)=>{t.detail&&e.blur()}}connectedCallback(){super.connectedCallback(),["click","keydown"].forEach(e=>this.addEventListener(e,this.handleUserInteraction));let t=new IntersectionObserver(e=>{e.forEach(r=>{this.intersectionObserverEntries.set(r.target,r);let o=r.target;o.toggleAttribute("inert",!r.isIntersecting),o.classList.toggle("--in-view",r.isIntersecting),o.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)),this.fade&&this.fadeController.disable()}async firstUpdated(){if((()=>{let e=this.getSlides({excludeClones:!1});return e.length>0&&e[0].getBoundingClientRect().width>0})())this.initializeSlides();else{let e=new IntersectionObserver(r=>{r.forEach(o=>{o.isIntersecting&&o.target.getBoundingClientRect().width>0&&(this.initializeSlides(),e.disconnect())})});e.observe(this)}this.mutationObserver=new MutationObserver(this.handleSlotChange),this.mutationObserver.observe(this,{childList:!0,subtree:!1}),this.fade&&(await this.updateComplete,this.fadeController.enable())}getPageCount(t,e,r){return Math.ceil((t-e)/r)+1>0?Math.ceil((t-e)/r)+1:1}getCurrentPage(t,e,r,o){return Math.ceil((t-r)/o)-Math.ceil((t-r-e)/o)+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",o=e.closest('[part~="pagination-item"]')!==null,n=t.key==="ArrowDown"||!r&&t.key==="ArrowRight"||r&&t.key==="ArrowLeft",l=t.key==="ArrowUp"||!r&&t.key==="ArrowLeft"||r&&t.key==="ArrowRight";t.preventDefault(),l&&this.previous(),n&&this.next(),t.key==="Home"&&this.goToSlide(0),t.key==="End"&&this.goToSlide(this.getSlides().length-1),o&&this.updateComplete.then(()=>{var u;let h=(u=this.shadowRoot)==null?void 0:u.querySelector('[part~="pagination-item--active"]');h&&h.focus()})}}handleScrollEnd(){if(this.fade)return;let t=this.getSlides(),r=[...this.intersectionObserverEntries.values()].find(o=>o.isIntersecting);if(this.loop&&(r!=null&&r.target.hasAttribute("data-clone"))){let o=Number(r.target.getAttribute("data-clone"));this.goToSlide(o,"auto");return}r&&(this.activeSlide=t.indexOf(r.target))}handleFocus(){this.autoplay&&this.scrollContainer.setAttribute("aria-live","polite")}handleBlur(){this.autoplay&&this.scrollContainer.setAttribute("aria-live","off")}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"))}handleFadeChange(){this.fade?this.fadeController.enable():this.fadeController.disable()}initializeSlides(){let t=this.getSlides(),e=this.intersectionObserver;if(this.intersectionObserverEntries.clear(),this.getSlides({excludeClones:!1}).forEach((r,o)=>{e.unobserve(r),r.classList.remove("--in-view"),r.classList.remove("--is-active"),r.setAttribute("aria-label",this.localize.term("slideNum",o+1,t.length)),r.hasAttribute("data-clone")&&r.remove()}),this.loop&&!this.fade){let r=this.slidesPerPage,o=t.slice(-r),n=t.slice(0,r);o.reverse().forEach((l,h)=>{let u=l.cloneNode(!0);u.setAttribute("data-clone",String(t.length-h-1)),this.prepend(u)}),n.forEach((l,h)=>{let u=l.cloneNode(!0);u.setAttribute("data-clone",String(h)),this.append(u)})}this.getSlides({excludeClones:!1}).forEach(r=>{e.observe(r)}),this.fade&&this.updateComplete.then(()=>{this.fadeController.enable()}),this.fade||this.goToSlide(this.activeSlide,"auto")}handleSlideChange(){let t=this.getSlides();t.forEach((o,n)=>{o.classList.toggle("--is-active",n===this.activeSlide)}),this.fade&&this.fadeController.updateActiveSlide(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(){if(this.fade)return;let t=this.getSlides({excludeClones:!1}),e=this.slidesPerMove;t.forEach((r,o)=>{Math.abs(o-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"){if(this.fade){let o=this.loop?(this.activeSlide-1+this.getSlides().length)%this.getSlides().length:Math.max(0,this.activeSlide-1);this.goToSlide(o);return}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"){if(this.fade){let e=this.loop?(this.activeSlide+1)%this.getSlides().length:Math.min(this.getSlides().length-1,this.activeSlide+1);this.goToSlide(e);return}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"){if(this.fade){this.goToSlide(0);return}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:o,scrollContainer:n,fade:l}=this,h=this.getSlides(),u=this.getSlides({excludeClones:!1}),m=(t+h.length)%h.length;if(this.activeSlide=m,l)return;let f=ho(t+(o?r:0),0,u.length+1),y=u[f],b=n.getBoundingClientRect(),w=y.getBoundingClientRect();if(n.scrollTo({left:w.left-b.left+n.scrollLeft,top:w.top-b.top+n.scrollTop,behavior:Ri()?"auto":e}),this.userInteracted&&!this.loop){let T=this.activeSlide===h.length-1||this.activeSlide===this.slides.length-this.slidesPerPage,z=this.activeSlide===0;T?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),o=this.getCurrentPage(this.getSlides().length,this.activeSlide,this.slidesPerPage,this.slidesPerMove),n=this.loop||o>1,l=this.loop||o<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 max-h-full w-full items-center justify-items-center",this.inverted?"focus-visible:focus-outline-inverted":"focus-visible:focus-outline",this.fade?"relative overflow-hidden":"grid overflow-auto overscroll-x-contain grid-flow-col auto-rows-[100%] snap-x snap-mandatory overflow-y-hidden")}" style="--slides-per-page:${this.slidesPerPage}" aria-busy="${t.scrolling?"true":"false"}" aria-label="${this.localize.term("carouselContainer",Array.from(this.slides).filter(u=>!u.hasAttribute("data-clone")).length)}" aria-live="${this.autoplay?"off":"polite"}" tabindex="0" @keydown="${this.handleKeyDown}" @scrollend="${this.handleScrollEnd}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"><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 transition-colors duration-fast ease-in-out",!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"}" @focus="${this.handleFocus}" @blur="${this.handleBlur}" @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="_internal" 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">${uo(po(r),u=>{let m=u+1===o;return p`<button part="pagination-item ${m?"pagination-item--active":""}" class="${c("carousel__pagination-item","block cursor-pointer bg-none border-0 rounded-full",m?"bg-accent":"",this.inverted?"focus-within:focus-outline-inverted":"focus-within:focus-outline")}" role="tab" tabindex="0" aria-selected="${m?"true":"false"}" aria-label="${this.localize.term("goToSlide",u+1,r)}" @click="${f=>{this.goToSlide(u*e),this.unblockAutoplay(f,this.paginationItems[u])}}" @keydown="${this.handleKeyDown}"><span class="${c("h-4 w-4 block border sd-carousel__pager-dot-border-width rounded-full transition-colors duration-slow hover:duration-fast ease-in-out",this.inverted?"sd-carousel__pager-dot--inverted-border hover:border-primary-200":"border-primary hover:border-primary-500",m&&"border-none",m?this.inverted?"sd-carousel__pager-dot--inverted-background hover:sd-carousel__pager-dot--inverted--hovered-background":"sd-carousel__pager-dot-background 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",this.inverted?"text-white sd-carousel--active--inverted-color-border":"text-black sd-carousel--active-color-border")}">${o}</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="${!l}" class="${c("!ml-6 !rounded-sm sd-interactive transition-colors duration-fast ease-in-out",!l&&"sd-interactive--disabled",this.inverted?"sd-interactive--inverted":"sd-interactive--reset")}" aria-label="${this.localize.term("nextSlide")}" aria-controls="scroll-container" aria-disabled="${l?"false":"true"}" @focus="${this.handleFocus}" @blur="${this.handleBlur}" @click="${l?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="_internal" 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="_internal" 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="_internal" name="pause"></sd-icon></slot></button></div></div>`}};G.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
197
197
  :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));grid-auto-columns:var(--slide-size);-moz-column-gap:var(--slide-gap);column-gap:var(--slide-gap);scroll-padding-inline:var(--scroll-hint);padding-inline:var(--scroll-hint)}.carousel__slides::-webkit-scrollbar{display:none}:host([fade]){--carousel-height:auto}:host([fade]) .carousel__slides{position:relative;display:block;overflow:hidden;height:var(--carousel-height)}@media (prefers-reduced-motion){:where(.carousel__slides){scroll-behavior:auto}}.carousel__navigation{grid-area:navigation}sd-button::part(label){pointer-events:none;display:flex;flex:auto;align-items:center}#carousel__navigation-button--next,#carousel__navigation-button--previous{color:rgba(var(--sd-color-icon-fill-primary))}#carousel__navigation-button--next:disabled,#carousel__navigation-button--previous:disabled{color:rgba(var(--sd-color-icon-fill-neutral-500))}:host([inverted]) #carousel__navigation-button--next,:host([inverted]) #carousel__navigation-button--previous{color:rgba(var(--sd-color-icon-fill-white))}:host([inverted]) #carousel__navigation-button--next:disabled,:host([inverted]) #carousel__navigation-button--previous:disabled{color:rgba(var(--sd-color-icon-fill-neutral-600))}`],a([v('[part~="autoplay-controls"]')],G.prototype,"autoplayControls",2),a([v('[part~="navigation-button--previous"]')],G.prototype,"previousButton",2),a([v('[part~="navigation-button--next"]')],G.prototype,"nextButton",2),a([vr('[part~="pagination-item"]')],G.prototype,"paginationItems",2),a([d({type:String,reflect:!0})],G.prototype,"variant",2),a([d({type:Boolean,reflect:!0})],G.prototype,"inverted",2),a([d({type:Boolean,reflect:!0})],G.prototype,"loop",2),a([d({type:Boolean,reflect:!0})],G.prototype,"autoplay",2),a([d({type:Boolean,reflect:!0})],G.prototype,"fade",2),a([d({type:Number,attribute:"slides-per-page",reflect:!0})],G.prototype,"slidesPerPage",2),a([d({type:Number,attribute:"slides-per-move",reflect:!0})],G.prototype,"slidesPerMove",2),a([v("slot:not([name])")],G.prototype,"defaultSlot",2),a([v(".carousel__slides")],G.prototype,"scrollContainer",2),a([v(".carousel__pagination")],G.prototype,"paginationContainer",2),a([L()],G.prototype,"activeSlide",2),a([L()],G.prototype,"currentPage",2),a([L()],G.prototype,"pausedAutoplay",2),a([E("pausedAutoplay")],G.prototype,"handlePausedAutoplay",1),a([E("fade",{waitUntilFirstUpdate:!0})],G.prototype,"handleFadeChange",1),a([E("loop",{waitUntilFirstUpdate:!0}),E("slidesPerPage",{waitUntilFirstUpdate:!0})],G.prototype,"initializeSlides",1),a([E("activeSlide")],G.prototype,"handleSlideChange",1),a([E("slidesPerMove")],G.prototype,"handleSlidesPerMoveChange",1),a([E("autoplay")],G.prototype,"handleAutoplayChange",1),G=a([k("sd-carousel")],G);var Ut=(s="value")=>(i,t)=>{let e=i.constructor,r=e.prototype.attributeChangedCallback;e.prototype.attributeChangedCallback=function(o,n,l){var m;let h=e.getPropertyOptions(s),u=typeof h.attribute=="string"?h.attribute:s;if(o===u){let f=h.converter||Fe,b=(typeof f=="function"?f:(m=f==null?void 0:f.fromAttribute)!=null?m:Fe.fromAttribute)(l,h.type);this[s]!==b&&(this[t]=b)}r.call(this,o,n,l)}};var{I:R0}=aa;var Vr=s=>s.strings===void 0;var zd={},fo=(s,i=zd)=>s._$AH=i;var ze=re(class extends Be{constructor(s){if(super(s),s.type!==Yt.PROPERTY&&s.type!==Yt.ATTRIBUTE&&s.type!==Yt.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!Vr(s))throw Error("`live` bindings can only contain a single expression")}render(s){return s}update(s,[i]){if(i===At||i===W)return i;let t=s.element,e=s.name;if(s.type===Yt.PROPERTY){if(i===t[e])return At}else if(s.type===Yt.BOOLEAN_ATTRIBUTE){if(!!i===t.hasAttribute(e))return At}else if(s.type===Yt.ATTRIBUTE&&t.getAttribute(e)===i+"")return At;return fo(s),i}});var ot=class extends g{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`<div class="flex flex-col"><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="${C(this.value)}" .indeterminate="${ze(this.indeterminate)}" .checked="${ze(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 sd-checkbox-border-width rounded-sm h-4 w-4","transition-colors ease-in-out duration-medium group-hover:duration-fast","peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:outline-primary",{sm:"mt-[2px]",md:"mt-[3px]",lg:"mt-[3px]"}[this.size],{disabledIndeterminate:"border-neutral-500 bg-neutral-500",disabledChecked:"border-neutral-500 bg-neutral-500",disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",invalidIndeterminate:"border-error bg-error group-hover:bg-error-400",invalid:"border-error group-hover:bg-neutral-200",filled:"border-accent hover:border-accent-550 group-hover:border-accent-550 bg-accent group-hover:bg-accent-550",default:"form-control-color-border hover:bg-neutral-200 group-hover:bg-neutral-200 bg-white"}[t])}"><div part="checkbox" class="${c("absolute h-3 transition-[width] right-0 duration-medium",this.checked||this.indeterminate?"w-0":"w-3")}"><div class="${c("w-full h-full transition-colors duration-medium ease-in-out group-hover:duration-fast",{disabledIndeterminate:"bg-neutral-500",disabledChecked:" bg-neutral-500",disabled:"",visuallyDisabled:"",invalidIndeterminate:" bg-error group-hover:bg-error-400",invalid:"group-hover:bg-neutral-200",filled:"bg-accent group-hover:bg-accent-550",default:"hover:bg-neutral-200 group-hover:bg-neutral-200 bg-white"}[t])}"></div></div>${this.checked?p`<sd-icon part="checked-icon" class="text-white w-3 h-3" library="sd-status-assets" name="status-check"></sd-icon>`:""} ${!this.checked&&this.indeterminate?p`<sd-icon part="indeterminate-icon" class="text-white w-3 h-3" library="sd-status-assets" 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><div id="invalid-icon-message" part="invalid-icon-message" class="${c("flex items-center gap-2",this.showInvalidStyle&&"mt-2")}">${this.showInvalidStyle?p`<sd-icon id="invalid-icon" part="invalid-icon" class="${c("text-error")}" library="_internal" name="risk"></sd-icon>`:""} ${this.formControlController.renderInvalidMessage(this.size)}</div></div>`}};ot.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
198
198
  :host{display:block;width:-moz-max-content;width:max-content}:host(:focus-visible){outline-style:var(--tw-outline-style);outline-width:0}:host([required]) #label::after{content:' *'}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}`],a([v('input[type="checkbox"]')],ot.prototype,"input",2),a([v("#invalid-message")],ot.prototype,"invalidMessage",2),a([d({type:String,reflect:!0})],ot.prototype,"title",2),a([d({type:String,reflect:!0})],ot.prototype,"name",2),a([d()],ot.prototype,"value",2),a([d({type:String,reflect:!0})],ot.prototype,"size",2),a([d({type:Boolean,reflect:!0})],ot.prototype,"disabled",2),a([d({type:Boolean,reflect:!0,attribute:"visually-disabled"})],ot.prototype,"visuallyDisabled",2),a([d({type:Boolean,reflect:!0})],ot.prototype,"checked",2),a([d({type:Boolean,reflect:!0})],ot.prototype,"indeterminate",2),a([Ut("checked")],ot.prototype,"defaultChecked",2),a([d({type:String,reflect:!0})],ot.prototype,"form",2),a([d({type:Boolean,reflect:!0})],ot.prototype,"required",2),a([L()],ot.prototype,"showInvalidStyle",2),a([E(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],ot.prototype,"handleDisabledChange",1),a([E(["checked","indeterminate"],{waitUntilFirstUpdate:!0})],ot.prototype,"handleStateChange",1),ot=a([k("sd-checkbox")],ot);var qt=class extends g{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-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"),o=this.helpText?!0:r,n=p`<slot @slotchange="${this.syncCheckboxes}"></slot>`,l=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||l?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> ${l?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",o?"block":"hidden")}" aria-hidden="${!o}">${this.helpText}</slot>`}};qt.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
199
- :host{display:block}:host([orientation=vertical]) ::slotted(sd-checkbox){margin-bottom:var(--sd-spacing-2);display:flex}:host([orientation=vertical]) ::slotted(sd-checkbox:last-of-type){margin-bottom:calc(var(--sd-spacing-1) * 0)}:host([orientation=horizontal]) ::slotted(sd-checkbox){margin-right:var(--sd-spacing-6)}:host([orientation=horizontal]) ::slotted(sd-checkbox:last-of-type){margin-right:calc(var(--sd-spacing-1) * 0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-checkbox){margin-right:var(--sd-spacing-4)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-checkbox:last-of-type){margin-right:calc(var(--sd-spacing-1) * 0)}`],a([d({type:String,reflect:!0})],qt.prototype,"size",2),a([d({type:String,reflect:!0})],qt.prototype,"orientation",2),a([d({type:String,reflect:!0})],qt.prototype,"label",2),a([d({type:String,attribute:"help-text",reflect:!0})],qt.prototype,"helpText",2),a([E("size",{waitUntilFirstUpdate:!0})],qt.prototype,"handleSizeChange",1),a([E("invalid",{waitUntilFirstUpdate:!0})],qt.prototype,"handleInvalid",1),qt=a([k("sd-checkbox-group")],qt);var zt=class extends g{constructor(){super(...arguments);this.localize=new O(this);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")}handleRemove(){this.emit("sd-remove")}isLink(){return!!this.href}click(){this.tag.click()}focus(t){this.tag.focus(t)}blur(){this.tag.blur()}async hide(){this.emit("sd-hide"),this.style.opacity="0",await new Promise(t=>setTimeout(t,this.token("--sd-duration-fast",150))),this.hidden=!0,this.emit("sd-after-hide")}render(){let t=this.isLink(),e=t?et`a`:this.removable?et`div`:et`button`;return U`<${e} part="base" type="${C(t?void 0:"button")}" href="${C(t?this.href:void 0)}" rel="${C(t&&this.target?"noreferrer noopener":void 0)}" target="${C(t?this.target:void 0)}" download="${C(t?this.download:void 0)}" ?disabled="${C(t?void 0:this.disabled)}" aria-labelledby="content" aria-disabled="${this.disabled?"true":"false"}" aria-pressed="${C(this.toggleable?this.selected:void 0)}" tabindex="${this.disabled||this.removable?"-1":"0"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" class="${c("flex border box-border sd-tag-border-radius items-center leading-none whitespace-nowrap transition-colors duration-fast ease-in-out focus-visible:focus-outline",{lg:"h-8 sd-tag-font-weight sd-tag--size-lg-font-size gap-2",sm:"h-6 sd-tag-font-weight sd-tag--size-sm-font-size 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?"sd-tag--selected-border-width sd-tag--selected--default-color-background sd-tag--selected--default-color-border sd-tag--selected--default-color-text hover:sd-tag--selected--hover-color-background hover:sd-tag--selected--hover-color-border hover:sd-tag--selected--hover-color-text disabled:bg-neutral-500 disabled:sd-tag--disabled-color-border":c("sd-tag--default-color-border sd-tag--default-color-text disabled:sd-tag--disabled-color-border disabled:text-neutral-500",this.removable?"sd-tag--default-color-background has-[button:hover]:border-primary-500 has-[button:hover]:text-primary-500":"sd-tag--default-color-background hover:border-primary-500 hover:text-primary-500 hover:sd-tag--default--hover-color-background"),this.disabled&&!t&&"cursor-not-allowed")}"><slot name="icon-left" class="${c("flex-shrink-0",this.size==="lg"?"text-base":"text-[0.75rem]")}"></slot><slot id="content" part="content"></slot>${this.removable&&!t?U`<button class="sd-interactive flex items-center" type="button" @click="${this.handleRemove}"><slot part="removable-indicator" name="removable-indicator"><sd-icon library="_internal" name="close" label="${this.localize.term("remove")}"></sd-icon></slot></button>`:""}</${e}>`}};zt.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
199
+ :host{display:block}:host([orientation=vertical]) ::slotted(sd-checkbox){margin-bottom:var(--sd-spacing-2);display:flex}:host([orientation=vertical]) ::slotted(sd-checkbox:last-of-type){margin-bottom:calc(var(--sd-spacing-1) * 0)}:host([orientation=horizontal]) ::slotted(sd-checkbox){margin-right:var(--sd-spacing-6)}:host([orientation=horizontal]) ::slotted(sd-checkbox:last-of-type){margin-right:calc(var(--sd-spacing-1) * 0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-checkbox){margin-right:var(--sd-spacing-4)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-checkbox:last-of-type){margin-right:calc(var(--sd-spacing-1) * 0)}`],a([d({type:String,reflect:!0})],qt.prototype,"size",2),a([d({type:String,reflect:!0})],qt.prototype,"orientation",2),a([d({type:String,reflect:!0})],qt.prototype,"label",2),a([d({type:String,attribute:"help-text",reflect:!0})],qt.prototype,"helpText",2),a([E("size",{waitUntilFirstUpdate:!0})],qt.prototype,"handleSizeChange",1),a([E("invalid",{waitUntilFirstUpdate:!0})],qt.prototype,"handleInvalid",1),qt=a([k("sd-checkbox-group")],qt);var zt=class extends g{constructor(){super(...arguments);this.localize=new O(this);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")}handleRemove(){this.emit("sd-remove")}isLink(){return!!this.href}click(){this.tag.click()}focus(t){this.tag.focus(t)}blur(){this.tag.blur()}async hide(){this.emit("sd-hide"),this.style.opacity="0",await new Promise(t=>setTimeout(t,this.token("--sd-duration-fast",150))),this.hidden=!0,this.emit("sd-after-hide")}render(){let t=this.isLink(),e=this.removable&&!this.selected&&!this.toggleable,r=t?et`a`:e?et`div`:et`button`;return U`<${r} part="base" type="${C(t?void 0:"button")}" href="${C(t?this.href:void 0)}" rel="${C(t&&this.target?"noreferrer noopener":void 0)}" target="${C(t?this.target:void 0)}" download="${C(t?this.download:void 0)}" ?disabled="${C(t?void 0:this.disabled)}" aria-labelledby="content" aria-disabled="${this.disabled?"true":"false"}" aria-pressed="${C(this.toggleable?this.selected:void 0)}" tabindex="${this.disabled||e?"-1":"0"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" class="${c("flex border box-border sd-tag-border-radius items-center leading-none whitespace-nowrap transition-colors duration-fast ease-in-out focus-visible:focus-outline",{lg:"h-8 sd-tag-font-weight sd-tag--size-lg-font-size gap-2",sm:"h-6 sd-tag-font-weight sd-tag--size-sm-font-size gap-1"}[this.size],{lg:e?"pl-4 pr-3 py-2":"px-4 py-2",sm:e?"pl-3 pr-2 py-2":"px-3 py-[5px]"}[this.size],this.selected?"sd-tag--selected-border-width sd-tag--selected--default-color-background sd-tag--selected--default-color-border sd-tag--selected--default-color-text hover:sd-tag--selected--hover-color-background hover:sd-tag--selected--hover-color-border hover:sd-tag--selected--hover-color-text disabled:bg-neutral-500 disabled:sd-tag--disabled-color-border":c("sd-tag--default-color-border sd-tag--default-color-text disabled:sd-tag--disabled-color-border disabled:text-neutral-500",e?"sd-tag--default-color-background has-[button:hover]:border-primary-500 has-[button:hover]:text-primary-500":"sd-tag--default-color-background hover:border-primary-500 hover:text-primary-500 hover:sd-tag--default--hover-color-background"),this.disabled&&!t&&"cursor-not-allowed")}"><slot name="icon-left" class="${c("flex-shrink-0",this.size==="lg"?"text-base":"text-[0.75rem]")}"></slot><slot id="content" part="content"></slot>${e&&!t?U`<button class="sd-interactive flex items-center" type="button" @click="${this.handleRemove}"><slot part="removable-indicator" name="removable-indicator"><sd-icon library="_internal" name="close" label="${this.localize.term("remove")}"></sd-icon></slot></button>`:""}</${r}>`}};zt.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
200
200
  :host{display:inline-block;transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)));transition-duration:var(--tw-duration,var(--default-transition-duration,150ms));--tw-duration:var(--sd-duration-fast, 150ms);transition-duration:var(--sd-duration-fast,150ms);--tw-ease:var(--ease-in-out, cubic-bezier(0.4, 0, 0.2, 1));transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1))}:host([size=lg])::part(removable-indicator){font-size:var(--sd-text-base);line-height:var(--tw-leading,var(--text-base--line-height,calc(1.5 / 1)))}:host([size=sm])::part(removable-indicator){font-size:.75rem}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}`],a([v("a, button, div")],zt.prototype,"tag",2),a([d({type:String,reflect:!0})],zt.prototype,"size",2),a([d({type:Boolean,reflect:!0})],zt.prototype,"selected",2),a([d({type:Boolean,reflect:!0})],zt.prototype,"toggleable",2),a([d({type:Boolean,reflect:!0})],zt.prototype,"removable",2),a([d({type:Boolean,reflect:!0})],zt.prototype,"disabled",2),a([d({type:String,reflect:!0})],zt.prototype,"href",2),a([d({type:String,reflect:!0})],zt.prototype,"target",2),a([d({reflect:!0})],zt.prototype,"download",2),zt=a([k("sd-tag")],zt);var go=s=>s;var $s=s=>Array.from(s.assignedElements({flatten:!0})),Md=s=>s.tagName.toLocaleLowerCase()==="sd-option"?s:Array.from(s.querySelectorAll(":scope > sd-option")),Sd=s=>s.tagName.toLocaleLowerCase()==="sd-optgroup",bo=s=>s.map(Md),vo=s=>s.filter(Sd),Fr=s=>s.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase();var S=class extends g{constructor(){super(...arguments);this.formControlController=new pt(this,{assumeInteractionOn:["sd-blur","sd-input"]});this.hasSlotController=new P(this,"help-text","label");this.localize=new O(this);this.hasFocus=!1;this.displayInputValue="";this.selectedTextLabel="";this.selectedOptions=[];this.filteredOptions=[];this.allOptions=[];this.showValidStyle=!1;this.showInvalidStyle=!1;this.deletedTagLabel="";this.name="";this.value="";this.defaultValue="";this.size="lg";this.placeholder="";this.maxOptionsTagLabel="";this.disabled=!1;this.visuallyDisabled=!1;this.clearable=!1;this.open=!1;this.hoist=!1;this.label="";this.placement="bottom";this.helpText="";this.form="";this.required=!1;this.floatingLabel=!1;this.type="text";this.currentPlacement=this.placement;this.getOption=go;this.multiple=!1;this.useTags=!0;this.maxOptionsVisible=3;this.styleOnValid=!1;this.filter=(t,e)=>{let r=Fr(t.value),o=Fr(t.getTextLabel()),n=Fr(e);return r.includes(n)||o.includes(n)};this.getTag=t=>p`<sd-tag ?disabled="${this.disabled}" part="tag" exportparts="
201
201
  base:tag__base,
202
202
  content:tag__content,
@@ -234,9 +234,9 @@ sd-button::part(base){display:flex;height:var(--sd-spacing-12);width:var(--sd-sp
234
234
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 75">
235
235
  <path fill-rule="evenodd" d="M51 49A29 29 0 0 0 30 0 29 29 0 0 0 9 49l21 22 21-22Z" clip-rule="evenodd" />
236
236
  </svg>`}}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}isLink(){return!!this.href}render(){let t=this.isLink(),e=this.notInteractive?et`div`:t?et`a`:et`button`,r=wr(this.marker[this.variant]),o=`url("data:image/svg+xml;utf8,${encodeURIComponent(this.marker[this.variant]).replace(/#/g,"%23")}")`;return U`<${e} part="base" class="${c("relative flex justify-center",!this.notInteractive&&"group focus-visible:focus-outline")}" href="${C(t?this.href:void 0)}" target="${C(t?this.target:void 0)}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" role="${C(this.notInteractive||t?void 0:"button")}" aria-label="${C(!this.notInteractive&&this.label?this.label:void 0)}" aria-labelledby="${C(!this.notInteractive&&!this.label?"content":void 0)}"><div part="marker" class="${c("relative inline-flex",this.animated&&(this.variant==="main"||this.variant==="place")&&"animate-bounce-once",this.variant==="cluster"&&this.state==="hover"&&"scale-110 sd-map-marker-cluster--hovered-color-icon-fill",this.variant==="cluster"&&!this.notInteractive&&"transition-transform duration-fast ease-in-out hover:scale-110",{cluster:"sd-map-marker-cluster-color-icon-fill",main:"fill-accent",place:"fill-white"}[this.variant])}"><div id="motion-wrapper" part="motion-wrapper" class="absolute inset-0 overflow-hidden pointer-events-none" style="mask-image:${o};-webkit-mask-image:${o}"><div class="${c("absolute inset-0 transition-transform ease-in-out duration-fast translate-y-full group-hover:translate-y-0 group-active:translate-y-0",["hover","active"].includes(this.state)&&"!translate-y-0")}"><div class="${c("min-w-full min-h-full skew-y-[-11deg]",{cluster:"",main:this.state==="active"?"bg-accent-700":"bg-accent-550 group-active:bg-accent-700",place:this.state==="active"?"bg-primary-200":"bg-primary-100 group-active:bg-primary-200"}[this.variant])}"></div></div>${this.variant==="main"?U`<div id="marker-circle" class="absolute rounded-full bg-white"></div>`:""}</div>${r} ${this.variant==="cluster"?U`<div id="cluster-border" class="${c("absolute inset-0 bg-primary opacity-30 rounded-full",this.state==="hover"&&"bg-primary-500")}"></div>`:""}</div><div id="content" part="content" class="${c("absolute self-center pointer-events-none",this.variant==="cluster"&&"font-bold text-white")}"><slot></slot></div></${e}>`}};Bt.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
237
- :host{display:block}#motion-wrapper{mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat;mask-position:center;-webkit-mask-position:center;mask-size:contain;-webkit-mask-size:contain}:host([variant=cluster]) [part=base],svg{width:calc(var(--sd-spacing-12,3rem) * var(--map-marker-scaling,1))}:host([variant=cluster]) [part=base]{height:calc(var(--sd-spacing-12,3rem) * var(--map-marker-scaling,1))}:host(:not([variant=cluster])) [part=base]{height:calc(var(--sd-spacing-16,4rem) * var(--map-marker-scaling,1))}:host([variant=cluster]) [part=content]{font-size:calc(var(--sd-font-size-sm,.875rem) * var(--map-marker-scaling,1))}:host([variant=place]) [part=content]{margin-top:calc(var(--sd-spacing-2) * -1);font-size:calc(var(--sd-font-size-3xl,2rem) * var(--map-marker-scaling,1))}:host([variant=cluster]) [part=motion-wrapper]>div>div{background-color:rgba(var(--sd-map-marker-cluster--hovered-color-icon-fill))}:host([variant=main]) [part=marker],:host([variant=place]) [part=marker]{--tw-drop-shadow-size:drop-shadow(var(--sd-drop-shadow));--tw-drop-shadow:drop-shadow(var(--sd-drop-shadow));filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}:host([variant=main]) #marker-circle{width:calc(var(--sd-spacing-4,1rem) * var(--map-marker-scaling,1));height:calc(var(--sd-spacing-4,1rem) * var(--map-marker-scaling,1));left:calc(var(--sd-spacing-4,1rem) * var(--map-marker-scaling,1));right:calc(var(--sd-spacing-4,1rem) * var(--map-marker-scaling,1));top:calc(var(--sd-spacing-4,1rem) * var(--map-marker-scaling,1))}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}`],a([d({type:String,reflect:!0})],Bt.prototype,"variant",2),a([d({type:String,reflect:!0})],Bt.prototype,"state",2),a([d({type:Boolean,reflect:!0})],Bt.prototype,"animated",2),a([d({type:Boolean,reflect:!0,attribute:"not-interactive"})],Bt.prototype,"notInteractive",2),a([d({type:String,reflect:!0})],Bt.prototype,"href",2),a([d({type:String,reflect:!0})],Bt.prototype,"target",2),a([d({reflect:!0})],Bt.prototype,"label",2),Bt=a([k("sd-map-marker")],Bt);var Me=class extends g{constructor(){super(...arguments);this.localize=new O(this)}connectedCallback(){super.connectedCallback(),this.setAttribute("role","menu")}handleClick(t){let e=["menuitem","menuitemcheckbox"],r=t.composedPath(),o=r.find(u=>{var m;return e.includes(((m=u==null?void 0:u.getAttribute)==null?void 0:m.call(u,"role"))||"")});if(!o||r.find(u=>{var m;return((m=u==null?void 0:u.getAttribute)==null?void 0:m.call(u,"role"))==="menu"})!==this)return;let h=o;h.type==="checkbox"&&(h.checked=!h.checked),this.emit("sd-select",{detail:{item:h}})}handleKeyDown(t){if(t.key==="Enter"||t.key===" "){let e=this.getCurrentItem();t.preventDefault(),t.stopPropagation(),e==null||e.click()}else if(["ArrowDown","ArrowUp","Home","End"].includes(t.key)){let e=this.getAllItems(),r=this.getCurrentItem(),o=r?e.indexOf(r):0;if(e.length>0){t.preventDefault(),t.stopPropagation();let n=(l,h)=>{let u=l;for(let m of e)if(u=(u+h+e.length)%e.length,!e[u].disabled)return u;return l};if(t.key==="ArrowDown")o=n(o,1);else if(t.key==="ArrowUp")o=n(o,-1);else if(t.key==="Home")o=e.findIndex(l=>!l.disabled),o===-1&&(o=0);else if(t.key==="End"){o=e.length-1;for(let l=e.length-1;l>=0;l--)if(!e[l].disabled){o=l;break}}this.setCurrentItem(e[o]),e[o].focus()}}}handleMouseDown(t){let e=t.target;this.isMenuItem(e)&&this.setCurrentItem(e)}handleSlotChange(){let t=this.getAllItems();t.length>0&&this.setCurrentItem(t[0])}isMenuItem(t){var e;return t.tagName.toLowerCase()==="sd-menu-item"||["menuitem","menuitemcheckbox","menuitemradio"].includes((e=t.getAttribute("role"))!=null?e:"")}getAllItems(){return[...this.defaultSlot.assignedElements({flatten:!0})].filter(t=>!!this.isMenuItem(t))}getCurrentItem(){return this.getAllItems().find(t=>t.getAttribute("tabindex")==="0")}setCurrentItem(t){this.getAllItems().forEach(r=>{r.setAttribute("tabindex",r===t?"0":"-1")})}render(){return p`<slot @slotchange="${this.handleSlotChange}" @click="${this.handleClick}" @keydown="${this.handleKeyDown}" @mousedown="${this.handleMouseDown}"></slot>`}};Me.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
237
+ :host{display:block}#motion-wrapper{mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat;mask-position:center;-webkit-mask-position:center;mask-size:contain;-webkit-mask-size:contain}:host([variant=cluster]) [part=base],svg{width:calc(var(--sd-spacing-12,3rem) * var(--map-marker-scaling,1))}:host([variant=cluster]) [part=base]{height:calc(var(--sd-spacing-12,3rem) * var(--map-marker-scaling,1))}:host(:not([variant=cluster])) [part=base]{height:calc(var(--sd-spacing-16,4rem) * var(--map-marker-scaling,1))}:host([variant=cluster]) [part=content]{font-size:calc(var(--sd-font-size-sm,.875rem) * var(--map-marker-scaling,1))}:host([variant=place]) [part=content]{margin-top:calc(var(--sd-spacing-2) * -1);font-size:calc(var(--sd-font-size-3xl,2rem) * var(--map-marker-scaling,1))}:host([variant=cluster]) [part=motion-wrapper]>div>div{background-color:rgba(var(--sd-map-marker-cluster--hovered-color-icon-fill))}:host([variant=main]) [part=marker],:host([variant=place]) [part=marker]{--tw-drop-shadow-size:drop-shadow(var(--sd-drop-shadow));--tw-drop-shadow:drop-shadow(var(--sd-drop-shadow));filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}:host([variant=main]) #marker-circle{width:calc(var(--sd-spacing-4,1rem) * var(--map-marker-scaling,1));height:calc(var(--sd-spacing-4,1rem) * var(--map-marker-scaling,1));left:calc(var(--sd-spacing-4,1rem) * var(--map-marker-scaling,1));right:calc(var(--sd-spacing-4,1rem) * var(--map-marker-scaling,1));top:calc(var(--sd-spacing-4,1rem) * var(--map-marker-scaling,1))}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}`],a([d({type:String,reflect:!0})],Bt.prototype,"variant",2),a([d({type:String,reflect:!0})],Bt.prototype,"state",2),a([d({type:Boolean,reflect:!0})],Bt.prototype,"animated",2),a([d({type:Boolean,reflect:!0,attribute:"not-interactive"})],Bt.prototype,"notInteractive",2),a([d({type:String,reflect:!0})],Bt.prototype,"href",2),a([d({type:String,reflect:!0})],Bt.prototype,"target",2),a([d({reflect:!0})],Bt.prototype,"label",2),Bt=a([k("sd-map-marker")],Bt);var Me=class extends g{constructor(){super(...arguments);this.localize=new O(this);this.handleOutsideClick=t=>{this.contains(t.target)||this.getAllItems().forEach(e=>e.classList.remove("menu-item-focus"))}}connectedCallback(){super.connectedCallback(),this.setAttribute("role","menu"),document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleOutsideClick)}handleClick(t){let e=["menuitem","menuitemcheckbox"],r=t.composedPath(),o=r.find(u=>{var m;return e.includes(((m=u==null?void 0:u.getAttribute)==null?void 0:m.call(u,"role"))||"")});if(!o||r.find(u=>{var m;return((m=u==null?void 0:u.getAttribute)==null?void 0:m.call(u,"role"))==="menu"})!==this)return;let h=o;h.type==="checkbox"&&(h.checked=!h.checked),this.emit("sd-select",{detail:{item:h}})}handleKeyDown(t){if(t.key==="Escape"){let e=this.getCurrentItem();e==null||e.classList.remove("menu-item-focus")}else if(t.key==="Enter"||t.key===" "){let e=this.getCurrentItem();t.preventDefault(),t.stopPropagation(),e==null||e.classList.remove("menu-item-focus"),e==null||e.click()}else if(["ArrowDown","ArrowUp","Home","End"].includes(t.key)){let e=this.getAllItems(),r=this.getCurrentItem(),o=r?e.indexOf(r):0;if(r==null||r.classList.remove("menu-item-focus"),e.length>0){t.preventDefault(),t.stopPropagation();let n=(l,h)=>{let u=l;for(let m of e)if(u=(u+h+e.length)%e.length,!e[u].disabled)return u;return l};if(t.key==="ArrowDown")o=n(o,1);else if(t.key==="ArrowUp")o=n(o,-1);else if(t.key==="Home")o=e.findIndex(l=>!l.disabled),o===-1&&(o=0);else if(t.key==="End"){o=e.length-1;for(let l=e.length-1;l>=0;l--)if(!e[l].disabled){o=l;break}}this.setCurrentItem(e[o]),e[o].focus(),e[o].classList.add("menu-item-focus")}}}handleMouseDown(t){let e=t.target;this.isMenuItem(e)&&this.setCurrentItem(e)}handleSlotChange(){let t=this.getAllItems();t.length>0&&this.setCurrentItem(t[0])}isMenuItem(t){var e;return t.tagName.toLowerCase()==="sd-menu-item"||["menuitem","menuitemcheckbox","menuitemradio"].includes((e=t.getAttribute("role"))!=null?e:"")}getAllItems(){return[...this.defaultSlot.assignedElements({flatten:!0})].filter(t=>!!this.isMenuItem(t))}getCurrentItem(){return this.getAllItems().find(t=>t.getAttribute("tabindex")==="0")}setCurrentItem(t){this.getAllItems().forEach(r=>{r.setAttribute("tabindex",r===t?"0":"-1")})}render(){return p`<slot @slotchange="${this.handleSlotChange}" @click="${this.handleClick}" @keydown="${this.handleKeyDown}" @mousedown="${this.handleMouseDown}"></slot>`}};Me.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
238
238
  :host{position:relative;display:block;overflow:auto;overscroll-behavior:auto;border-radius:var(--sd-radius-md);padding-inline:var(--sd-spacing-2);padding-block:var(--sd-spacing-3);--tw-shadow:var(--sd-shadow)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}::slotted(sd-divider){padding-block:var(--sd-spacing-3)}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}`],a([v("slot")],Me.prototype,"defaultSlot",2),Me=a([k("sd-menu")],Me);var xo=()=>new Ms,Ms=class{},zs=new WeakMap,ko=re(class extends $i{render(s){return W}update(s,[i]){var e;let t=i!==this.G;return t&&this.G!==void 0&&this.rt(void 0),(t||this.lt!==this.ct)&&(this.G=i,this.ht=(e=s.options)==null?void 0:e.host,this.rt(this.ct=s.element)),W}rt(s){var i;if(this.isConnected||(s=void 0),typeof this.G=="function"){let t=(i=this.ht)!=null?i:globalThis,e=zs.get(t);e===void 0&&(e=new WeakMap,zs.set(t,e)),e.get(this.G)!==void 0&&this.G.call(this.ht,void 0),e.set(this.G,s),s!==void 0&&this.G.call(this.ht,s)}else this.G.value=s}get lt(){var s,i,t;return typeof this.G=="function"?(i=zs.get((s=this.ht)!=null?s:globalThis))==null?void 0:i.get(this.G):(t=this.G)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var Br=class{constructor(i,t){this.popupRef=xo();this.enableSubmenuTimer=-1;this.isConnected=!1;this.isPopupConnected=!1;this.skidding=0;this.submenuOpenDelay=100;this.handleMouseMove=i=>{this.host.style.setProperty("--safe-triangle-cursor-x",`${i.clientX}px`),this.host.style.setProperty("--safe-triangle-cursor-y",`${i.clientY}px`)};this.handleMouseOver=()=>{this.hasSlotController.test("submenu")&&this.enableSubmenu()};this.handleKeyDown=i=>{switch(i.key){case"Escape":case"Tab":this.disableSubmenu();break;case"ArrowLeft":i.target!==this.host&&(i.preventDefault(),i.stopPropagation(),this.host.focus(),this.disableSubmenu());break;case"ArrowRight":case"Enter":case" ":this.handleSubmenuEntry(i);break;default:break}};this.handleClick=i=>{var t;i.target===this.host?(i.preventDefault(),i.stopPropagation()):i.target instanceof Element&&(i.target.tagName==="sd-menu-item"||(t=i.target.role)!=null&&t.startsWith("menuitem"))&&i.target.getAttribute("type")!=="checkbox"&&this.disableSubmenu()};this.handleFocusOut=i=>{i.relatedTarget&&i.relatedTarget instanceof Element&&this.host.contains(i.relatedTarget)||this.disableSubmenu()};this.handlePopupMouseover=i=>{i.stopPropagation()};this.handlePopupReposition=()=>{let i=this.host.renderRoot.querySelector("slot[name='submenu']"),t=i==null?void 0:i.assignedElements({flatten:!0}).filter(h=>h.localName==="sd-menu")[0],e=getComputedStyle(this.host).direction==="rtl";if(!t)return;let{left:r,top:o,width:n,height:l}=t.getBoundingClientRect();this.host.style.setProperty("--safe-triangle-submenu-start-x",`${e?r+n:r}px`),this.host.style.setProperty("--safe-triangle-submenu-start-y",`${o}px`),this.host.style.setProperty("--safe-triangle-submenu-end-x",`${e?r+n:r}px`),this.host.style.setProperty("--safe-triangle-submenu-end-y",`${o+l}px`)};(this.host=i).addController(this),this.hasSlotController=t}hostConnected(){this.hasSlotController.test("submenu")&&!this.host.disabled&&this.addListeners()}hostDisconnected(){this.removeListeners()}hostUpdated(){this.hasSlotController.test("submenu")&&!this.host.disabled?(this.addListeners(),this.updateSkidding()):this.removeListeners()}addListeners(){this.isConnected||(this.host.addEventListener("mousemove",this.handleMouseMove),this.host.addEventListener("mouseover",this.handleMouseOver),this.host.addEventListener("keydown",this.handleKeyDown),this.host.addEventListener("click",this.handleClick),this.host.addEventListener("focusout",this.handleFocusOut),this.isConnected=!0),this.isPopupConnected||this.popupRef.value&&(this.popupRef.value.addEventListener("mouseover",this.handlePopupMouseover),this.popupRef.value.addEventListener("sd-reposition",this.handlePopupReposition),this.isPopupConnected=!0)}removeListeners(){this.isConnected&&(this.host.removeEventListener("mousemove",this.handleMouseMove),this.host.removeEventListener("mouseover",this.handleMouseOver),this.host.removeEventListener("keydown",this.handleKeyDown),this.host.removeEventListener("click",this.handleClick),this.host.removeEventListener("focusout",this.handleFocusOut),this.isConnected=!1),this.isPopupConnected&&this.popupRef.value&&(this.popupRef.value.removeEventListener("mouseover",this.handlePopupMouseover),this.popupRef.value.removeEventListener("sd-reposition",this.handlePopupReposition),this.isPopupConnected=!1)}handleSubmenuEntry(i){let t=this.host.renderRoot.querySelector("slot[name='submenu']");if(!t){console.error("Cannot activate a submenu if no corresponding menuitem can be found.",this);return}let e=null;for(let r of t.assignedElements())if(e=r.querySelectorAll("sd-menu-item, [role^='menuitem']"),e.length!==0)break;if(!(!e||e.length===0)){e[0].setAttribute("tabindex","0");for(let r=1;r!==e.length;++r)e[r].setAttribute("tabindex","-1");this.popupRef.value&&(i.preventDefault(),i.stopPropagation(),this.popupRef.value.active?e[0]instanceof HTMLElement&&e[0].focus():(this.enableSubmenu(!1),this.host.updateComplete.then(()=>{e[0]instanceof HTMLElement&&e[0].focus()}),this.host.requestUpdate()))}}setSubmenuState(i){this.popupRef.value&&this.popupRef.value.active!==i&&(this.popupRef.value.active=i,this.host.requestUpdate())}enableSubmenu(i=!0){i?(window.clearTimeout(this.enableSubmenuTimer),this.enableSubmenuTimer=window.setTimeout(()=>{this.setSubmenuState(!0)},this.submenuOpenDelay)):this.setSubmenuState(!0)}disableSubmenu(){window.clearTimeout(this.enableSubmenuTimer),this.setSubmenuState(!1)}updateSkidding(){var r;if(!((r=this.host.parentElement)!=null&&r.computedStyleMap))return;let i=this.host.parentElement.computedStyleMap(),e=["padding-top","border-top-width","margin-top"].reduce((o,n)=>{var m;let l=(m=i.get(n))!=null?m:new CSSUnitValue(0,"px"),u=(l instanceof CSSUnitValue?l:new CSSUnitValue(0,"px")).to("px");return o-u.value},0);this.skidding=e}isExpanded(){return this.popupRef.value?this.popupRef.value.active:!1}renderSubmenu(){let i=getComputedStyle(this.host).direction==="rtl";return this.isConnected?p`<sd-popup ${ko(this.popupRef)} placement="${i?"left-start":"right-start"}" anchor="anchor" flip flip-fallback-strategy="best-fit" skidding="${this.skidding}" strategy="fixed" auto-size="vertical" auto-size-padding="10"><slot name="submenu"></slot></sd-popup>`:p`<slot name="submenu" hidden></slot>`}};var Ct=class extends g{constructor(){super(...arguments);this.type="normal";this.checked=!1;this.disabled=!1;this.value="";this.chevron=!1;this.hasSlotController=new P(this,"submenu");this.submenuController=new Br(this,this.hasSlotController);this.handleHostClick=t=>{this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())};this.handleMouseOver=t=>{this.focus(),t.stopPropagation()}}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleHostClick),this.addEventListener("mouseover",this.handleMouseOver)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleHostClick),this.removeEventListener("mouseover",this.handleMouseOver)}handleDefaultSlotChange(){let t=this.getTextLabel();if(typeof this.cachedTextLabel=="undefined"){this.cachedTextLabel=t;return}t!==this.cachedTextLabel&&(this.cachedTextLabel=t,this.emit("slotchange",{bubbles:!0,composed:!1,cancelable:!1}))}handleCheckedChange(){if(this.checked&&this.type!=="checkbox"){this.checked=!1,console.error('The checked attribute can only be used on menu items with type="checkbox"',this);return}this.type==="checkbox"?this.setAttribute("aria-checked",this.checked?"true":"false"):this.removeAttribute("aria-checked")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false"),this.setAttribute("tabindex",this.disabled?"-1":"0")}handleTypeChange(){this.type==="checkbox"?(this.setAttribute("role","menuitemcheckbox"),this.setAttribute("aria-checked",this.checked?"true":"false")):(this.setAttribute("role","menuitem"),this.removeAttribute("aria-checked"))}getTextLabel(){return za(this.defaultSlot)}isSubmenu(){return this.hasSlotController.test("submenu")}render(){let t=this.submenuController.isExpanded(),e={label:this.hasSlotController.test("[default]"),iconIndent:this.hasSlotController.test("icon-indent")};return p`<div id="anchor" part="base" class="${c("relative flex items-stretch whitespace-nowrap py-3 px-4 no-wrap !navigable-border-radius",this.disabled?"outline-none cursor-not-allowed sd-menu--disabled-color-text hover:bg-transparent":"cursor-pointer sd-menu-color-text hover:bg-neutral-200",this.isSubmenu()&&t&&"submenu-expanded")}" .disabled="${this.disabled}" ?aria-haspopup="${this.isSubmenu()}" ?aria-expanded="${!!t}">${this.type==="checkbox"?p`<span part="checked-icon" class="${c("flex items-center justify-center grow-0 shrink-0 basis-auto",this.checked?"visible":"invisible")}"><sd-icon name="status-check" library="sd-status-assets" aria-hidden="true"></sd-icon></span>`:""} ${e.iconIndent?p`<slot name="icon-indent" part="icon-indent" class="flex items-center grow-0 shrink-0 basis-auto mr-2"></slot>`:""}<slot part="label" class="inline-flex grow shrink basis-auto text-ellipsis overflow-hidden" @slotchange="${this.handleDefaultSlotChange}"></slot>${this.chevron||this.isSubmenu()?p`<span part="submenu-icon" class="flex items-center justify-center grow-0 shrink-0 basis-auto ml-3"><sd-icon name="chevron-right" library="_internal" aria-hidden="true" class="h-6 w-6"></sd-icon></span>`:""} ${this.submenuController.renderSubmenu()}</div>`}};Ct.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
239
- :host{--submenu-offset:-6px;display:block}:host(:focus-visible){--tw-outline-style:none;outline-style:none}::slotted(sd-icon){height:var(--sd-spacing-6);width:var(--sd-spacing-6)}[part=checked-icon]{margin-right:var(--sd-spacing-3)}.submenu-expanded::after{position:fixed;top:calc(var(--sd-spacing-1) * 0);right:calc(var(--sd-spacing-1) * 0);bottom:calc(var(--sd-spacing-1) * 0);left:calc(var(--sd-spacing-1) * 0);z-index:calc(var(z-dropdown) - 1);--tw-content:'';content:var(--tw-content);clip-path:polygon(var(--safe-triangle-cursor-x,0) var(--safe-triangle-cursor-y,0),var(--safe-triangle-submenu-start-x,0) var(--safe-triangle-submenu-start-y,0),var(--safe-triangle-submenu-end-x,0) var(--safe-triangle-submenu-end-y,0))}:host(:hover:not([aria-disabled=true],:focus-visible)) [part=base]{background-color:rgba(var(--sd-color-background-neutral-200));--tw-outline-style:none;outline-style:none}:host(:focus-visible:not([aria-disabled=true])) [part=base]{outline-style:solid;outline-offset:2px;outline-width:2px;outline-color:rgba(var(--outline-color-primary));outline-offset:-2px}:host(:hover) [part=base]{--tw-outline-style:none;outline-style:none}:host [part=checked-icon],:host [part=icon-indent],:host [part=submenu-icon]{color:rgba(var(--sd-menu-color-icon))}:host([aria-disabled=true]) [part=icon-indent]{color:rgba(var(--sd-menu--disabled-color-icon))}sd-popup::part(popup){z-index:var(--sd-z-index-dropdown,900);background-color:rgba(var(--sd-color-background-white));margin-left:var(--submenu-offset)}::slotted(sd-menu){max-width:var(--auto-size-available-width)!important;max-height:var(--auto-size-available-height)!important}@property --tw-content{syntax:"*";inherits:false;initial-value:""}`],a([v("slot:not([name])")],Ct.prototype,"defaultSlot",2),a([v('part="base"')],Ct.prototype,"menuItem",2),a([d()],Ct.prototype,"type",2),a([d({type:Boolean,reflect:!0})],Ct.prototype,"checked",2),a([d({type:Boolean,reflect:!0})],Ct.prototype,"disabled",2),a([d()],Ct.prototype,"value",2),a([d({type:Boolean,reflect:!0})],Ct.prototype,"chevron",2),a([E("checked")],Ct.prototype,"handleCheckedChange",1),a([E("disabled")],Ct.prototype,"handleDisabledChange",1),a([E("type")],Ct.prototype,"handleTypeChange",1),Ct=a([k("sd-menu-item")],Ct);var ct=class extends g{constructor(){super(...arguments);this.hasSlotController=new P(this,"[default]","description","children");this.localize=new O(this);this.vertical=!1;this.size="md";this.current=!1;this.disabled=!1;this.chevron=!1;this.relaxed=!1;this.divider=!1;this.indented=!1;this.open=!1;this.separated=!1}get isButton(){return!this.href&&!this.hasSlotController.test("children")}get isLink(){return!!this.href}get isAccordion(){return!this.separated&&!this.href&&this.hasSlotController.test("children")}get isIconOnly(){if(!this.defaultSlot)return!1;let t=this.defaultSlot.assignedNodes({flatten:!0});return t.length>0&&t.every(e=>{var r;return e.nodeType===Node.TEXT_NODE?!((r=e.textContent)!=null&&r.trim()):e.nodeType===Node.ELEMENT_NODE?e.tagName.toLowerCase()==="sd-icon":!1})}handleClickButton(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}handleClickSummary(t){t.preventDefault(),t.stopPropagation(),this.disabled||(this.open?this.hideDetails():this.showDetails())}hideDetails(){this.open=!1,this.emit("sd-hide",{cancelable:!0})}showDetails(){this.open=!0,this.emit("sd-show",{cancelable:!0})}get calculatePaddingX(){return this.relaxed&&this.indented?"pl-8 pr-4":this.relaxed?"px-4":this.indented?"pl-4":""}get tag(){return this.separated&&!this.isLink?et`div`:this.isAccordion&&!this.isLink?et`summary`:this.isLink?et`a`:et`button`}focus(){var t;this.disabled||(t=this.button)==null||t.focus()}blur(){var t;(t=this.button)==null||t.blur()}render(){let t=this.tag,e=this.isLink,r=this.isButton,o=this.isAccordion,n=this.isIconOnly,l={label:this.hasSlotController.test("[default]"),main:this.hasSlotController.test("main"),description:this.hasSlotController.test("description"),children:this.hasSlotController.test("children")},h=this.vertical?"py-3":"py-2",u=U`<${t} part="base" class="${c("flex items-center cursor-pointer relative focus-visible:focus-outline group hover:bg-neutral-200 transition-colors duration-fast ease-in-out min-h-[48px] navigable-border-radius",{md:"navigable-font-size",lg:"text-lg",sm:"text-[14px]"}[this.size],this.disabled?"text-neutral-500 pointer-events-none":"sd-navigation-item-color-text",this.current&&"font-bold sd-navigation-item--current-color-text",!o&&"w-full",this.divider&&this.vertical&&"mt-0.25",!this.vertical&&"inline-flex items-center",!this.separated&&"hover:bg-neutral-200 group transition-colors duration-fast ease-in-out min-h-[48px]",n?"justify-center aspect-square p-3":"px-4")}" aria-current="${C(this.current?"page":void 0)}" aria-disabled="${this.disabled}" aria-labelledby="content" aria-describedby="description" ?disabled="${C(r?this.disabled:void 0)}" href="${C(e?this.href:void 0)}" target="${C(e?this.target:void 0)}" download="${C(e?this.download:void 0)}" rel="${C(e&&this.target?"noreferrer noopener":void 0)}" tabindex="${this.disabled?"-1":"0"}" @click="${this.separated?void 0:o?this.handleClickSummary:r?this.handleClickButton:void 0}"><div part="current-indicator" class="${c("absolute bg-accent left-0 pointer-events-none navigable__current-indicator-border-radius",this.vertical?"navigable__current-indicator-width h-[calc(100%-16px)] top-2 group-hover:h-full group-hover:top-0":"navigable__current-indicator-height w-[calc(100%-16px)] bottom-0 left-2 group-hover:w-full group-hover:left-0 transition-all",this.disabled&&"bg-neutral-500")}"></div><div class="inline-flex flex-col justify-center gap-1 w-full h-full"><span part="content-area" class="${c("relative inline-flex justify-between items-center",o?"grow":"w-full",l.description&&"pt-3",!l.description&&!this.separated&&h,this.calculatePaddingX)}">${this.divider&&this.vertical?U`<sd-divider part="divider" class="${c("w-full transition-all absolute -top-0.25 left-0",this.calculatePaddingX)}"></sd-divider>`:""} <span id="content" part="content-container" class="inline-flex items-center flex-auto"><slot part="content" class="inline-flex text-start"></slot></span>${this.chevron||l.children&&this.vertical&&!this.separated?U`<sd-icon name="chevron-down" part="chevron" library="_internal" color="currentColor" class="${c("h-6 w-6 ml-2 transition-all",o?this.open?"rotate-180":"rotate-0":"rotate-[270deg]")}"></sd-icon>`:""} </span>${l.description&&this.vertical?U`<slot id="description" name="description" part="description" class="${c("inline-block text-sm text-left font-normal text-black pb-3",o||this.separated?"grow":"w-full",this.calculatePaddingX)}"></slot>`:""}</div></${t}>`;return this.separated?U`<div part="details" id="navigation-item-details" class="relative flex flex-col"><div class="flex items-start">${u} ${l.children&&this.vertical?U`<button type="button" title="${this.open?this.localize.term("collapseNavigationItem"):this.localize.term("expandNavigationItem")}" class="sd-interactive sd-interactive--reset -mt-1" @click="${this.handleClickSummary}"><sd-icon name="chevron-down" part="chevron" library="_internal" color="currentColor" class="${c("m-4 h-6 w-6 transition-all",o||this.separated?this.open?"rotate-180":"rotate-0":"rotate-[270deg]")}"></sd-icon></button>`:""}</div>${this.open?U`<slot name="children"></slot>`:""}</div>`:o?U`<details aria-expanded="${this.open}" part="details" id="navigation-item-details" ?open="${this.open}" class="relative">${u}<slot name="children"></slot></details>`:U`${u}`}};ct.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
239
+ :host{--submenu-offset:-6px;display:block}:host(:focus-visible){--tw-outline-style:none;outline-style:none}::slotted(sd-icon){height:var(--sd-spacing-6);width:var(--sd-spacing-6)}[part=checked-icon]{margin-right:var(--sd-spacing-3)}.submenu-expanded::after{position:fixed;top:calc(var(--sd-spacing-1) * 0);right:calc(var(--sd-spacing-1) * 0);bottom:calc(var(--sd-spacing-1) * 0);left:calc(var(--sd-spacing-1) * 0);z-index:calc(var(z-dropdown) - 1);--tw-content:'';content:var(--tw-content);clip-path:polygon(var(--safe-triangle-cursor-x,0) var(--safe-triangle-cursor-y,0),var(--safe-triangle-submenu-start-x,0) var(--safe-triangle-submenu-start-y,0),var(--safe-triangle-submenu-end-x,0) var(--safe-triangle-submenu-end-y,0))}:host(:hover:not([aria-disabled=true],:focus-visible)) [part=base]{background-color:rgba(var(--sd-color-background-neutral-200));--tw-outline-style:none;outline-style:none}:host(:focus-visible:not([aria-disabled=true])) [part=base]{outline-style:solid;outline-offset:2px;outline-width:2px;outline-color:rgba(var(--outline-color-primary));outline-offset:-2px}:host(.menu-item-focus) [part=base]{outline-style:solid;outline-offset:2px;outline-width:2px;outline-color:rgba(var(--outline-color-primary));outline-offset:-2px}:host(:hover) [part=base]{--tw-outline-style:none;outline-style:none}:host [part=checked-icon],:host [part=icon-indent],:host [part=submenu-icon]{color:rgba(var(--sd-menu-color-icon))}:host([aria-disabled=true]) [part=icon-indent]{color:rgba(var(--sd-menu--disabled-color-icon))}sd-popup::part(popup){z-index:var(--sd-z-index-dropdown,900);background-color:rgba(var(--sd-color-background-white));margin-left:var(--submenu-offset)}::slotted(sd-menu){max-width:var(--auto-size-available-width)!important;max-height:var(--auto-size-available-height)!important}@property --tw-content{syntax:"*";inherits:false;initial-value:""}`],a([v("slot:not([name])")],Ct.prototype,"defaultSlot",2),a([v('part="base"')],Ct.prototype,"menuItem",2),a([d()],Ct.prototype,"type",2),a([d({type:Boolean,reflect:!0})],Ct.prototype,"checked",2),a([d({type:Boolean,reflect:!0})],Ct.prototype,"disabled",2),a([d()],Ct.prototype,"value",2),a([d({type:Boolean,reflect:!0})],Ct.prototype,"chevron",2),a([E("checked")],Ct.prototype,"handleCheckedChange",1),a([E("disabled")],Ct.prototype,"handleDisabledChange",1),a([E("type")],Ct.prototype,"handleTypeChange",1),Ct=a([k("sd-menu-item")],Ct);var ct=class extends g{constructor(){super(...arguments);this.hasSlotController=new P(this,"[default]","description","children");this.localize=new O(this);this.vertical=!1;this.size="md";this.current=!1;this.disabled=!1;this.chevron=!1;this.relaxed=!1;this.divider=!1;this.indented=!1;this.open=!1;this.separated=!1}get isButton(){return!this.href&&!this.hasSlotController.test("children")}get isLink(){return!!this.href}get isAccordion(){return!this.separated&&!this.href&&this.hasSlotController.test("children")}get isIconOnly(){if(!this.defaultSlot)return!1;let t=this.defaultSlot.assignedNodes({flatten:!0});return t.length>0&&t.every(e=>{var r;return e.nodeType===Node.TEXT_NODE?!((r=e.textContent)!=null&&r.trim()):e.nodeType===Node.ELEMENT_NODE?e.tagName.toLowerCase()==="sd-icon":!1})}handleClickButton(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}handleClickSummary(t){t.preventDefault(),t.stopPropagation(),this.disabled||(this.open?this.hideDetails():this.showDetails())}hideDetails(){this.open=!1,this.emit("sd-hide",{cancelable:!0})}showDetails(){this.open=!0,this.emit("sd-show",{cancelable:!0})}get calculatePaddingX(){return this.relaxed&&this.indented?"pl-8 pr-4":this.relaxed?"px-4":this.indented?"pl-4":""}get tag(){return this.separated&&!this.isLink?et`div`:this.isAccordion&&!this.isLink?et`summary`:this.isLink?et`a`:et`button`}focus(){var t;this.disabled||(t=this.button)==null||t.focus()}blur(){var t;(t=this.button)==null||t.blur()}render(){let t=this.tag,e=this.isLink,r=this.isButton,o=this.isAccordion,n=this.isIconOnly,l={label:this.hasSlotController.test("[default]"),main:this.hasSlotController.test("main"),description:this.hasSlotController.test("description"),children:this.hasSlotController.test("children")},h=this.vertical?"py-3":"py-2",u=U`<${t} part="base" class="${c("flex items-center cursor-pointer relative focus-visible:focus-outline group hover:bg-neutral-200 transition-colors duration-fast ease-in-out min-h-[48px] navigable-border-radius",{md:"navigable-font-size",lg:"text-lg",sm:"text-[14px]"}[this.size],this.disabled?"text-neutral-500 pointer-events-none":"sd-navigation-item-color-text",this.current&&"font-bold sd-navigation-item--current-color-text",!o&&"w-full",this.divider&&this.vertical&&"mt-0.25",!this.vertical&&"inline-flex items-center",!this.separated&&"hover:bg-neutral-200 group transition-colors duration-fast ease-in-out min-h-[48px]",n?"justify-center aspect-square p-3":"px-4")}" aria-current="${C(this.current?"page":void 0)}" aria-disabled="${this.disabled}" aria-labelledby="content" aria-describedby="description" ?disabled="${C(r?this.disabled:void 0)}" href="${C(e?this.href:void 0)}" target="${C(e?this.target:void 0)}" download="${C(e?this.download:void 0)}" rel="${C(e&&this.target?"noreferrer noopener":void 0)}" tabindex="${this.disabled?"-1":"0"}" @click="${this.separated?void 0:o?this.handleClickSummary:r?this.handleClickButton:void 0}"><div part="current-indicator" class="${c("absolute bg-accent left-0 pointer-events-none navigable__current-indicator-border-radius",this.vertical?"navigable__current-indicator-width h-[calc(100%-16px)] top-2 group-hover:h-full group-hover:top-0":"navigable__current-indicator-height w-[calc(100%-16px)] bottom-0 left-2 group-hover:w-full group-hover:left-0 transition-all",this.disabled&&"bg-neutral-500")}"></div><div class="inline-flex flex-col justify-center gap-1 w-full h-full"><span part="content-area" class="${c("relative inline-flex justify-between items-center",o?"grow":"w-full",l.description&&"pt-3",!l.description&&!this.separated&&h,this.calculatePaddingX)}">${this.divider&&this.vertical?U`<sd-divider part="divider" class="${c("w-full transition-all absolute -top-0.25 left-0",this.calculatePaddingX)}"></sd-divider>`:""} <span id="content" part="content-container" class="inline-flex items-center flex-auto"><slot part="content" class="inline-flex text-start"></slot></span>${this.chevron||l.children&&this.vertical&&!this.separated?U`<sd-icon name="chevron-down" part="chevron" library="_internal" color="currentColor" class="${c("h-6 w-6 ml-2 transition-all",o?this.open?"rotate-180":"rotate-0":"rotate-[270deg]")}"></sd-icon>`:""} </span>${l.description&&this.vertical?U`<slot id="description" name="description" part="description" class="${c("inline-block text-sm text-left font-normal text-black pb-3",o||this.separated?"grow":"w-full",this.calculatePaddingX)}"></slot>`:""}</div></${t}>`;return this.separated?U`<div part="details" id="navigation-item-details" class="relative flex flex-col"><div class="flex items-start">${u} ${l.children&&this.vertical?U`<button type="button" title="${this.open?this.localize.term("collapseNavigationItem"):this.localize.term("expandNavigationItem")}" class="sd-interactive sd-interactive--reset -mt-1" @click="${this.handleClickSummary}"><sd-icon name="chevron-down" part="chevron" library="_internal" color="currentColor" class="${c("m-4 h-6 w-6 transition-all",o||this.separated?this.open?"rotate-180":"rotate-0":"rotate-[270deg]")}"></sd-icon></button>`:""}</div>${this.open?U`<slot name="children"></slot>`:""}</div>`:o?U`<details aria-expanded="${this.open}" part="details" id="navigation-item-details" ?open="${this.open}" class="relative">${u}<slot name="children"></slot></details>`:U`${u}`}};ct.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
240
240
  :host{position:relative;box-sizing:border-box;display:inline-block}:host([vertical]){display:block}details summary::-webkit-details-marker{display:none}[part=current-indicator]{--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x) var(--tw-scale-y);opacity:var(--sd-opacity-0);--tw-duration:var(--sd-duration-fast, 150ms);transition-duration:var(--sd-duration-fast,150ms);transition:width var(--sd-duration-fast) ease-in-out,height var(--sd-duration-fast) ease-in-out,left var(--sd-duration-fast) ease-in-out,top var(--sd-duration-fast) ease-in-out,opacity var(--sd-duration-fast) ease-in-out,transform var(--sd-duration-fast) ease-in-out var(--sd-duration-fast)}:host([current]) [part=current-indicator]{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y);opacity:var(--sd-opacity-100);transition:width var(--sd-duration-fast) ease-in-out,height var(--sd-duration-fast) ease-in-out,left var(--sd-duration-fast) ease-in-out,top var(--sd-duration-fast) ease-in-out,transform var(--sd-duration-fast) ease-in-out}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-duration{syntax:"*";inherits:false}`],a([v('[part="base"]')],ct.prototype,"button",2),a([v("slot:not([name])")],ct.prototype,"defaultSlot",2),a([d({type:Boolean,reflect:!0})],ct.prototype,"vertical",2),a([d({type:String,reflect:!0})],ct.prototype,"size",2),a([d({reflect:!0})],ct.prototype,"href",2),a([d({type:String,reflect:!0})],ct.prototype,"target",2),a([d({reflect:!0})],ct.prototype,"download",2),a([d({type:Boolean,reflect:!0})],ct.prototype,"current",2),a([d({type:Boolean,reflect:!0})],ct.prototype,"disabled",2),a([d({type:Boolean,reflect:!0})],ct.prototype,"chevron",2),a([d({type:Boolean,reflect:!0})],ct.prototype,"relaxed",2),a([d({type:Boolean,reflect:!0})],ct.prototype,"divider",2),a([d({type:Boolean,reflect:!0})],ct.prototype,"indented",2),a([d({type:Boolean,reflect:!0})],ct.prototype,"open",2),a([d({type:Boolean,reflect:!0})],ct.prototype,"separated",2),ct=a([k("sd-navigation-item")],ct);var Nr={"top-right":null,"bottom-center":null},Hd=()=>{Object.entries(Nr).forEach(([s])=>{let i=document.querySelector(`#sd-toast-stack--${s}`);if(i){i.setAttribute("role","region"),Nr[s]=i;return}Nr[s]=Object.assign(document.createElement("div"),{role:"region",id:`sd-toast-stack--${s}`,className:`sd-toast-stack sd-toast-stack--${s}`})})};Hd();var xt=class extends g{constructor(){super(...arguments);this.localize=new O(this);this.variant="info";this.open=!1;this.closable=!1;this.duration=1/0;this.durationIndicator=!1;this.toastStack="top-right";this.remainingDuration=this.duration;this.startTime=Date.now()}get stack(){return Nr[this.toastStack]}connectedCallback(){super.connectedCallback(),this.stack.parentElement||(document.body.append(this.stack),this.stack.ariaLabel=this.localize.term("notifications"))}disconnectedCallback(){super.disconnectedCallback()}firstUpdated(){this.wrapper.hidden=!this.open}startAutoHide(){clearTimeout(this.autoHideTimeout),this.startTime=Date.now(),this.remainingDuration=this.duration,this.open&&this.duration<1/0&&(this.autoHideTimeout=window.setTimeout(()=>this.hide(),this.duration))}onHover(){clearTimeout(this.autoHideTimeout),this.duration<1/0&&(this.remainingDuration-=Date.now()-this.startTime)}onHoverEnd(){this.startTime=Date.now(),clearTimeout(this.autoHideTimeout),this.open&&this.duration<1/0&&(this.autoHideTimeout=window.setTimeout(()=>{this.hide()},this.remainingDuration))}handleCloseClick(){this.hide()}handleKeyDown(t){this.closable&&t.key==="Escape"&&this.hide()}async handleOpenChange(){if(this.open){this.emit("sd-show"),this.duration<1/0&&this.startAutoHide(),await Promise.all([Y(this.base),Y(this.wrapper)]),this.wrapper.hidden=!1;let t=q(this,"notification.show",{dir:this.localize.dir()}),e=q(this,`notification.wrapper.show${wi(ys(this.toastStack))}`,{dir:this.localize.dir()});await Promise.all([K(this.base,Ce(t.keyframes,this.base.scrollHeight),t.options),K(this.wrapper,e.keyframes,e.options)]),this.emit("sd-after-show")}else{this.emit("sd-hide"),clearTimeout(this.autoHideTimeout),await Promise.all([Y(this.base),Y(this.wrapper)]);let t=q(this,"notification.hide",{dir:this.localize.dir()}),e=q(this,`notification.wrapper.hide${wi(ys(this.toastStack))}`,{dir:this.localize.dir()});await Promise.all([K(this.base,Ce(t.keyframes,this.base.scrollHeight),t.options),K(this.wrapper,e.keyframes,e.options)]),this.wrapper.hidden=!0,this.emit("sd-after-hide")}}handleDurationChange(){this.startAutoHide()}async show(){if(!this.open)return this.open=!0,J(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,J(this,"sd-after-hide")}async toast(){return new Promise(t=>{this.stack.parentElement===null&&document.body.append(this.stack),this.stack.appendChild(this),requestAnimationFrame(()=>{this.clientWidth,this.show()}),this.addEventListener("sd-after-hide",()=>{this.stack.removeChild(this),t()},{once:!0})})}render(){return p`<div part="base" class="${c("w-full flex items-stretch m-2 focus-visible:focus-outline")}" id="notification" tabindex="0" role="alert" aria-labelledby="message" aria-hidden="${this.open?"false":"true"}" @mouseenter="${this.onHover}" @mouseleave="${this.onHoverEnd}" @keydown="${this.handleKeyDown}"><div part="wrapper" class="${c("w-full h-fit overflow-hidden flex items-stretch relative")}"><slot name="icon" part="icon" class="${c("min-w-min flex items-center px-3 justify-center",{info:"bg-info",success:"bg-success",warning:"bg-warning",error:"bg-error"}[this.variant])}"><sd-icon name="${{info:"info-circle",success:"confirm-circle",warning:"exclamation-circle",error:"warning"}[this.variant]||""}" library="_internal" class="h-6 w-6 text-white"></sd-icon></slot><div part="content" class="${c("h-full w-full p-1 gap-2 flex items-center justify-stretch bg-white","border-solid border-[1px] border-l-0 sd-notification-color-border",{info:"sd-notification--info-color-background",success:"sd-notification--success-color-background",warning:"sd-notification--warning-color-background",error:"sd-notification--error-color-background"}[this.variant])}"><slot id="message" part="message" class="block w-full pl-3 py-2"></slot>${this.closable?p`<sd-button size="md" variant="tertiary" part="close-button" class="ml-auto flex flex-[0_0_auto] items-stretch" @click="${this.handleCloseClick}"><sd-icon label="${this.localize.term("close")}" name="close" library="_internal" color="currentColor"></sd-icon></sd-button>`:""}</div>${this.durationIndicator?p`<div part="duration-indicator__elapsed" id="duration-indicator__elapsed" style="${`animation-duration: ${this.duration}ms`}" class="${c("absolute w-0 h-[2px] bottom-0 bg-primary z-10 animate-grow")}"></div><div part="duration-indicator__total" class="w-full h-[2px] bottom-0 absolute border sd-notification-color-border"></div>`:""}</div></div>`}};xt.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
241
241
  :host{display:contents}#notification:hover #duration-indicator__elapsed{animation-play-state:paused!important}`],a([v('[part~="base"]')],xt.prototype,"base",2),a([v('[part~="wrapper"]')],xt.prototype,"wrapper",2),a([v('[part~="close-button"]')],xt.prototype,"close",2),a([d({type:String,reflect:!0})],xt.prototype,"variant",2),a([d({type:Boolean,reflect:!0})],xt.prototype,"open",2),a([d({type:Boolean,reflect:!0})],xt.prototype,"closable",2),a([d({type:Number,reflect:!0})],xt.prototype,"duration",2),a([d({type:Boolean,reflect:!0,attribute:"duration-indicator"})],xt.prototype,"durationIndicator",2),a([d({type:String,reflect:!0,attribute:"toast-stack"})],xt.prototype,"toastStack",2),a([E("open",{waitUntilFirstUpdate:!0})],xt.prototype,"handleOpenChange",1),a([E("duration")],xt.prototype,"handleDurationChange",1),xt=a([k("sd-notification")],xt);R("notification.show",{keyframes:[{opacity:0,height:0},{opacity:1,height:"auto"}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});R("notification.hide",{keyframes:[{opacity:1,height:"auto"},{opacity:0,height:0}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});R("notification.wrapper.showTopRight",{keyframes:[{bottom:"32px"},{bottom:"0"}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});R("notification.wrapper.hideTopRight",{keyframes:[{bottom:"0"},{bottom:"32px"}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});var te=class extends g{constructor(){super(...arguments);this.localize=new O(this);this.disabled=!1;this.label=""}handleDisableOptions(){let{disabled:t}=this;this.defaultSlot.assignedElements().filter(e=>e.tagName.toLowerCase()==="sd-option").forEach(e=>{e.disabled=t})}handleDisabledChange(){this.handleDisableOptions()}render(){let{disabled:t}=this;return U`<div role="${t?"presentation":"group"}" class="${c(this.disabled?"text-neutral-500":"")}" part="base" aria-labelledby="group-label"><sd-divider id="divider" class="pt-2 pb-4" part="divider"></sd-divider><div part="label-container" class="${c(this.disabled?"text-neutral-500":"text-black")} px-4 font-bold text-left" role="presentation" id="group-label"><slot name="label"><span>${this.label}</span></slot></div><div role="listbox" part="options" aria-label="${this.localize.term("optionGroup")}"><slot @slotchange="${this.handleDisableOptions}"></slot></div></div>`}};te.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
242
242
  :host{--display-divider:block}#divider{display:var(--display-divider)}`],a([v("slot:not([name])")],te.prototype,"defaultSlot",2),a([d({reflect:!0,type:Boolean})],te.prototype,"disabled",2),a([d({type:String,reflect:!0})],te.prototype,"label",2),a([E("disabled",{waitUntilFirstUpdate:!0})],te.prototype,"handleDisabledChange",1),te=a([k("sd-optgroup")],te);var bt=class extends g{constructor(){super(...arguments);this.hasSlotController=new P(this,"default","left","right");this.current=!1;this.selected=!1;this.hasHover=!1;this.isKeyboardFocus=!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 t=this.getTextLabel();if(typeof this.cachedTextLabel=="undefined"){this.cachedTextLabel=t;return}t!==this.cachedTextLabel&&(this.cachedTextLabel=t,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 t;return((t=this.textContent)!=null?t:"").trim()}render(){let t={default:this.hasSlotController.test("default"),left:this.hasSlotController.test("left"),right:this.hasSlotController.test("right")};return p`<div part="base" style="word-break:break-word" class="${c("px-4 flex items-start w-full transition-colors duration-fast ease-in-out text-left text-base relative",{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":"text-black cursor-pointer",this.hasHover&&!this.disabled?"bg-neutral-200":"",this.isKeyboardFocus?"focus-outline focus-outline-offset":"",this.current&&"bg-neutral-200")}" @mouseenter="${this.handleMouseEnter}" @mouseleave="${this.handleMouseLeave}"><span class="${c("absolute w-full left-0 top-0 pointer-events-none transition-[height,top] duration-fast ease-in-out 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?p`<span id="control" part="control ${this.selected?" control--checked":"control--unchecked"}" class="${c("relative flex flex-shrink-0 items-center justify-center border rounded-sm h-4 w-4 mr-2",{sm:"mt-0.5",md:"mt-1",lg:"mt-1"}[this.size],this.disabled?"sd-option--disabled-color-border":this.selected?"bg-accent border-accent":"bg-white form-control-color-border")}">${this.selected?p`<sd-icon part="checked-icon" class="text-white w-3 h-3" library="_internal" name="status-check"></sd-icon>`:""}</span>`:""} ${t.left?p`<slot name="left" part="left" class="inline-flex mr-2"></slot>`:""}<slot part="label" class="inline-block flex-grow" @slotchange="${this.handleDefaultSlotChange}"></slot>${t.right?p`<slot name="right" part="right" class="inline-flex ml-2"></slot>`:""}</div>`}};bt.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
@@ -1 +1 @@
1
- import{a as pe}from"./chunks/chunk.VTDQOKJM.js";import"./chunks/chunk.HAL7R4WT.js";import{a as ee}from"./chunks/chunk.3ETEQAPR.js";import{a as re}from"./chunks/chunk.I3TTTGLW.js";import{a as oe}from"./chunks/chunk.BZ3VHECJ.js";import{a as ae}from"./chunks/chunk.VAUP57XZ.js";import{a as U}from"./chunks/chunk.ZVHLKL7F.js";import{a as W}from"./chunks/chunk.MWO5B7BA.js";import{a as X}from"./chunks/chunk.2DPSCPM4.js";import{a as Y}from"./chunks/chunk.UVRZTPOZ.js";import{a as Z}from"./chunks/chunk.KM5W4EDY.js";import{a as _}from"./chunks/chunk.47H4SDKN.js";import{a as $}from"./chunks/chunk.KKKGNXIR.js";import{a as V}from"./chunks/chunk.EASLRW3B.js";import"./chunks/chunk.IVHEBGOY.js";import{a as j}from"./chunks/chunk.JRSX44R6.js";import{a as q}from"./chunks/chunk.XAPH6XNH.js";import{a as y}from"./chunks/chunk.WOZKICWV.js";import{a as z}from"./chunks/chunk.6GU6NFBF.js";import{a as J}from"./chunks/chunk.ZTELVJ34.js";import{a as K}from"./chunks/chunk.QMKNC76J.js";import{a as N}from"./chunks/chunk.4LGCXG7D.js";import{a as O}from"./chunks/chunk.RBVWPWFK.js";import{a as P}from"./chunks/chunk.S7VIPIYX.js";import{a as E}from"./chunks/chunk.OG2BQH6T.js";import{a as H}from"./chunks/chunk.S4II2NTI.js";import{a as Q}from"./chunks/chunk.Z6TAAGCD.js";import{a as F}from"./chunks/chunk.QUGI3FMS.js";import{a as R}from"./chunks/chunk.D5FVDNYV.js";import{a as A}from"./chunks/chunk.C4QT4K6T.js";import{a as w}from"./chunks/chunk.H7S7D4YV.js";import{a as L}from"./chunks/chunk.QJ2LWN24.js";import"./chunks/chunk.CDP46OS4.js";import"./chunks/chunk.CSLPZKLY.js";import{a as v}from"./chunks/chunk.DEEJ4ON7.js";import{a as M}from"./chunks/chunk.VMUNNUNV.js";import{a as B}from"./chunks/chunk.DC6UQXYF.js";import"./chunks/chunk.3MADQ6HK.js";import{a as h}from"./chunks/chunk.745GDIND.js";import{a as I}from"./chunks/chunk.2KV3QDYA.js";import{a as C}from"./chunks/chunk.CMY3VPYA.js";import{a as D}from"./chunks/chunk.G42N3VHE.js";import{a as G}from"./chunks/chunk.TWTQHJPN.js";import{a as b}from"./chunks/chunk.XTRMRKZ6.js";import"./chunks/chunk.VYBQ3X2B.js";import"./chunks/chunk.SIY4LRPB.js";import{a as T}from"./chunks/chunk.U5N7L5RI.js";import{a as g}from"./chunks/chunk.HHASCDC2.js";import"./chunks/chunk.US3OB3XU.js";import{a as k}from"./chunks/chunk.HYUIC2O6.js";import"./chunks/chunk.N3WG3NAL.js";import"./chunks/chunk.X2GM34WQ.js";import"./chunks/chunk.W7A3TU2Z.js";import{a as u}from"./chunks/chunk.H77CNSMK.js";import{a as l}from"./chunks/chunk.PT6G5HKE.js";import{a as S}from"./chunks/chunk.5M2K2EXR.js";import{a as x}from"./chunks/chunk.RKKB23ZF.js";import{a as m}from"./chunks/chunk.E64WXH47.js";import{a as i}from"./chunks/chunk.OAVVKKBJ.js";import{a as s}from"./chunks/chunk.DXGVZ3KG.js";import"./chunks/chunk.5OE2GCRH.js";import{a as c}from"./chunks/chunk.L6PAHLSN.js";import"./chunks/chunk.BJBQEPZV.js";import"./chunks/chunk.EOXYPQZI.js";import"./chunks/chunk.MHWW3RZB.js";import{a as n}from"./chunks/chunk.GP2QVZP5.js";import"./chunks/chunk.CBQWVOOS.js";import{a}from"./chunks/chunk.IAEOXYGB.js";import{a as o}from"./chunks/chunk.2HJLVWCE.js";import{a as r}from"./chunks/chunk.PRGLNPUF.js";import"./chunks/chunk.D4E5ZIRW.js";import{a as p}from"./chunks/chunk.4P5PT6MV.js";import{a as f}from"./chunks/chunk.I234MSSB.js";import"./chunks/chunk.I2H6CZK5.js";import"./chunks/chunk.2AQOPKKH.js";import"./chunks/chunk.G7HKVXLR.js";import"./chunks/chunk.3L472FD4.js";import{a as d}from"./chunks/chunk.C44GZOLG.js";import{a as t}from"./chunks/chunk.PPIS2HQ5.js";import"./chunks/chunk.CJ34NUTS.js";import"./chunks/chunk.PV6UYBMY.js";import"./chunks/chunk.CGQ2BPPZ.js";import"./chunks/chunk.B2NUKX6G.js";import"./chunks/chunk.PJ7JCMQF.js";import"./chunks/chunk.KLRPP4NQ.js";import{a as e}from"./chunks/chunk.U44PXBV2.js";import"./chunks/chunk.MP6XEXRW.js";import"./chunks/chunk.D6LAH53B.js";import{d as te,e as de}from"./chunks/chunk.54UVKIZB.js";import"./chunks/chunk.3FMN7C5N.js";import"./chunks/chunk.MB7SWCJ2.js";import"./chunks/chunk.PYHYYOBE.js";import"./chunks/chunk.TWZDCIM2.js";import"./chunks/chunk.MWDEA25W.js";import{a as fe}from"./chunks/chunk.IQPMMUES.js";import"./chunks/chunk.B3QUTUIL.js";import"./chunks/chunk.3TJM745S.js";import"./chunks/chunk.HJGLYEWV.js";import"./chunks/chunk.YFQFOIEM.js";import"./chunks/chunk.NYKJXI3Q.js";import"./chunks/chunk.ALCKOGA7.js";import"./chunks/chunk.763RLJEK.js";import"./chunks/chunk.W4QBFD6E.js";import"./chunks/chunk.WNP2V63C.js";import"./chunks/chunk.6EV4YU6C.js";export{fe as LocalizeController,o as SdAccordion,a as SdAccordionGroup,r as SdAnimation,p as SdAudio,u as SdBadge,l as SdBrandshape,S as SdBreadcrumb,i as SdBreadcrumbItem,d as SdButton,c as SdCarousel,n as SdCarouselItem,b as SdCheckbox,T as SdCheckboxGroup,g as SdCombobox,B as SdDatepicker,h as SdDialog,I as SdDivider,f as SdDrawer,x as SdDropdown,C as SdExpandable,D as SdFlipcard,G as SdHeader,e as SdIcon,M as SdInclude,R as SdInput,s as SdLink,t as SdLoader,A as SdMapMarker,w as SdMenu,L as SdMenuItem,v as SdNavigationItem,N as SdNotification,O as SdOptgroup,P as SdOption,m as SdPopup,E as SdQuickfact,F as SdRadio,H as SdRadioButton,Q as SdRadioGroup,V as SdRange,j as SdRangeTick,q as SdScrollable,y as SdSelect,z as SdSkeleton,J as SdSpinner,K as SdStep,U as SdStepGroup,W as SdSwitch,X as SdTab,Y as SdTabGroup,Z as SdTabPanel,k as SdTag,_ as SdTeaser,$ as SdTeaserMedia,ee as SdTextarea,re as SdThemeListener,oe as SdTooltip,ae as SdVideo,te as registerIconLibrary,pe as setupAutocomplete,de as unregisterIconLibrary};
1
+ import{a as pe}from"./chunks/chunk.VTDQOKJM.js";import"./chunks/chunk.HAL7R4WT.js";import{a as ee}from"./chunks/chunk.3ETEQAPR.js";import{a as re}from"./chunks/chunk.I3TTTGLW.js";import{a as oe}from"./chunks/chunk.BZ3VHECJ.js";import{a as ae}from"./chunks/chunk.VAUP57XZ.js";import{a as U}from"./chunks/chunk.ZVHLKL7F.js";import{a as W}from"./chunks/chunk.MWO5B7BA.js";import{a as X}from"./chunks/chunk.2DPSCPM4.js";import{a as Y}from"./chunks/chunk.UVRZTPOZ.js";import{a as Z}from"./chunks/chunk.KM5W4EDY.js";import{a as _}from"./chunks/chunk.47H4SDKN.js";import{a as $}from"./chunks/chunk.KKKGNXIR.js";import{a as V}from"./chunks/chunk.EASLRW3B.js";import"./chunks/chunk.IVHEBGOY.js";import{a as j}from"./chunks/chunk.JRSX44R6.js";import{a as q}from"./chunks/chunk.XAPH6XNH.js";import{a as y}from"./chunks/chunk.WOZKICWV.js";import{a as z}from"./chunks/chunk.6GU6NFBF.js";import{a as J}from"./chunks/chunk.ZTELVJ34.js";import{a as K}from"./chunks/chunk.QMKNC76J.js";import{a as N}from"./chunks/chunk.4LGCXG7D.js";import{a as O}from"./chunks/chunk.RBVWPWFK.js";import{a as P}from"./chunks/chunk.S7VIPIYX.js";import{a as E}from"./chunks/chunk.OG2BQH6T.js";import{a as H}from"./chunks/chunk.S4II2NTI.js";import{a as Q}from"./chunks/chunk.Z6TAAGCD.js";import{a as F}from"./chunks/chunk.QUGI3FMS.js";import{a as R}from"./chunks/chunk.D5FVDNYV.js";import{a as A}from"./chunks/chunk.C4QT4K6T.js";import{a as w}from"./chunks/chunk.Q6GEIXGA.js";import{a as L}from"./chunks/chunk.PDHMAKVQ.js";import"./chunks/chunk.CDP46OS4.js";import"./chunks/chunk.CSLPZKLY.js";import{a as v}from"./chunks/chunk.DEEJ4ON7.js";import{a as M}from"./chunks/chunk.VMUNNUNV.js";import{a as B}from"./chunks/chunk.DC6UQXYF.js";import"./chunks/chunk.3MADQ6HK.js";import{a as h}from"./chunks/chunk.745GDIND.js";import{a as I}from"./chunks/chunk.2KV3QDYA.js";import{a as C}from"./chunks/chunk.CMY3VPYA.js";import{a as D}from"./chunks/chunk.G42N3VHE.js";import{a as G}from"./chunks/chunk.TWTQHJPN.js";import{a as b}from"./chunks/chunk.XTRMRKZ6.js";import"./chunks/chunk.VYBQ3X2B.js";import"./chunks/chunk.SIY4LRPB.js";import{a as T}from"./chunks/chunk.U5N7L5RI.js";import{a as g}from"./chunks/chunk.HHASCDC2.js";import"./chunks/chunk.US3OB3XU.js";import{a as k}from"./chunks/chunk.XQWDDXL2.js";import"./chunks/chunk.N3WG3NAL.js";import"./chunks/chunk.X2GM34WQ.js";import"./chunks/chunk.W7A3TU2Z.js";import{a as u}from"./chunks/chunk.H77CNSMK.js";import{a as l}from"./chunks/chunk.PT6G5HKE.js";import{a as S}from"./chunks/chunk.5M2K2EXR.js";import{a as x}from"./chunks/chunk.TWNEU4H4.js";import{a as m}from"./chunks/chunk.E64WXH47.js";import{a as i}from"./chunks/chunk.OAVVKKBJ.js";import{a as s}from"./chunks/chunk.DXGVZ3KG.js";import"./chunks/chunk.5OE2GCRH.js";import{a as c}from"./chunks/chunk.L6PAHLSN.js";import"./chunks/chunk.BJBQEPZV.js";import"./chunks/chunk.EOXYPQZI.js";import"./chunks/chunk.MHWW3RZB.js";import{a as n}from"./chunks/chunk.GP2QVZP5.js";import"./chunks/chunk.CBQWVOOS.js";import{a}from"./chunks/chunk.IAEOXYGB.js";import{a as o}from"./chunks/chunk.2HJLVWCE.js";import{a as r}from"./chunks/chunk.PRGLNPUF.js";import"./chunks/chunk.D4E5ZIRW.js";import{a as p}from"./chunks/chunk.4P5PT6MV.js";import{a as f}from"./chunks/chunk.I234MSSB.js";import"./chunks/chunk.I2H6CZK5.js";import"./chunks/chunk.2AQOPKKH.js";import"./chunks/chunk.G7HKVXLR.js";import"./chunks/chunk.3L472FD4.js";import{a as d}from"./chunks/chunk.C44GZOLG.js";import{a as t}from"./chunks/chunk.PPIS2HQ5.js";import"./chunks/chunk.CJ34NUTS.js";import"./chunks/chunk.PV6UYBMY.js";import"./chunks/chunk.CGQ2BPPZ.js";import"./chunks/chunk.B2NUKX6G.js";import"./chunks/chunk.PJ7JCMQF.js";import"./chunks/chunk.KLRPP4NQ.js";import{a as e}from"./chunks/chunk.U44PXBV2.js";import"./chunks/chunk.MP6XEXRW.js";import"./chunks/chunk.D6LAH53B.js";import{d as te,e as de}from"./chunks/chunk.54UVKIZB.js";import"./chunks/chunk.3FMN7C5N.js";import"./chunks/chunk.MB7SWCJ2.js";import"./chunks/chunk.PYHYYOBE.js";import"./chunks/chunk.TWZDCIM2.js";import"./chunks/chunk.MWDEA25W.js";import{a as fe}from"./chunks/chunk.IQPMMUES.js";import"./chunks/chunk.B3QUTUIL.js";import"./chunks/chunk.3TJM745S.js";import"./chunks/chunk.HJGLYEWV.js";import"./chunks/chunk.YFQFOIEM.js";import"./chunks/chunk.NYKJXI3Q.js";import"./chunks/chunk.ALCKOGA7.js";import"./chunks/chunk.763RLJEK.js";import"./chunks/chunk.W4QBFD6E.js";import"./chunks/chunk.WNP2V63C.js";import"./chunks/chunk.6EV4YU6C.js";export{fe as LocalizeController,o as SdAccordion,a as SdAccordionGroup,r as SdAnimation,p as SdAudio,u as SdBadge,l as SdBrandshape,S as SdBreadcrumb,i as SdBreadcrumbItem,d as SdButton,c as SdCarousel,n as SdCarouselItem,b as SdCheckbox,T as SdCheckboxGroup,g as SdCombobox,B as SdDatepicker,h as SdDialog,I as SdDivider,f as SdDrawer,x as SdDropdown,C as SdExpandable,D as SdFlipcard,G as SdHeader,e as SdIcon,M as SdInclude,R as SdInput,s as SdLink,t as SdLoader,A as SdMapMarker,w as SdMenu,L as SdMenuItem,v as SdNavigationItem,N as SdNotification,O as SdOptgroup,P as SdOption,m as SdPopup,E as SdQuickfact,F as SdRadio,H as SdRadioButton,Q as SdRadioGroup,V as SdRange,j as SdRangeTick,q as SdScrollable,y as SdSelect,z as SdSkeleton,J as SdSpinner,K as SdStep,U as SdStepGroup,W as SdSwitch,X as SdTab,Y as SdTabGroup,Z as SdTabPanel,k as SdTag,_ as SdTeaser,$ as SdTeaserMedia,ee as SdTextarea,re as SdThemeListener,oe as SdTooltip,ae as SdVideo,te as registerIconLibrary,pe as setupAutocomplete,de as unregisterIconLibrary};
@@ -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": "6.2.1",
4
+ "version": "6.4.0",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -1,2 +1,2 @@
1
- import{a as b}from"./chunk.CGQ2BPPZ.js";import{a as u}from"./chunk.IQPMMUES.js";import{a}from"./chunk.YFQFOIEM.js";import{a as n}from"./chunk.NYKJXI3Q.js";import{a as c,b as i,d as o,h as l}from"./chunk.ALCKOGA7.js";import{b as d,e as s}from"./chunk.763RLJEK.js";import{e}from"./chunk.6EV4YU6C.js";var v=0,t=class extends l{constructor(){super(...arguments);this.attrId=++v;this.componentId=`sd-6-2-1-tab-${this.attrId}`;this.hasSlotController=new b(this,"left");this.localize=new u(this);this.variant="default";this.active=!1;this.disabled=!1;this.visuallyDisabled=!1;this.panel=""}connectedCallback(){super.connectedCallback(),this.setAttribute("role","tab")}handleActiveChange(){this.setAttribute("aria-selected",this.active?"true":"false")}handleDisabledChange(){let r=this.disabled||this.visuallyDisabled;this.setAttribute("aria-disabled",r?"true":"false")}focus(r){this.tab.focus(r)}blur(){this.tab.blur()}render(){this.id=this.id.length>0?this.id:this.componentId;let r={left:this.hasSlotController.test("left")};return s`<div part="base" class="${a("inline-flex justify-center min-w-max items-center h-12 px-3 leading-none select-none cursor-pointer group relative","outline-hidden focus-visible:focus-outline outline-2 !-outline-offset-2 transition-all duration-fast ease-in-out",this.variant==="container"?"tab-container-border bg-white rounded-[4px_4px_0_0]":"navigable-border-radius",this.variant==="container"&&this.active&&"tab--active-container-border bg-white",this.disabled||this.visuallyDisabled?"!cursor-not-allowed":"hover:color-background",this.active&&"z-20")}" tabindex="${!this.active||this.disabled?"-1":"0"}"><div class="${a("flex h-full items-center justify-center whitespace-nowrap",this.disabled||this.visuallyDisabled&&"opacity-50 ")}"><slot name="left" class="${a(r.left&&"block pr-2",this.disabled||this.visuallyDisabled?"text-neutral-500":"text-primary")}"></slot><slot class="${a(this.disabled||this.visuallyDisabled?"text-neutral-500":"text-primary")}"></slot>${this.variant==="container"?s`<div part="active-tab-indicator" class="${a("absolute bottom-0 h-1 bg-accent w-3/4 bottom-0 group-hover:w-[calc(100%-2px)] navigable__current-indicator-height navigable__current-indicator-border-radius")}"></div>`:""}<div part="hover-bottom-border" class="${a(!this.active&&!this.disabled&&"absolute bottom-0 left-0 w-full h-0.25 border-b sd-6-2-1-tab-color-border")}"></div></div></div>`}};t.styles=[...l.styles,d`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
2
- :host{box-sizing:border-box;display:inline-block}:host(:hover)::part(hover-bottom-border){border-bottom-color:rgba(var(--sd-color-border-neutral-400))}.tab-container-border::after{position:absolute;height:100%;width:100%;border-style:var(--tw-border-style);border-width:1px;border-color:transparent;--tw-content:'';content:var(--tw-content)}.tab--active-container-border::after{position:absolute;height:100%;width:100%;border-style:var(--tw-border-style);border-width:1px;border-color:rgba(var(--sd-color-border-neutral-400));transition-property:border;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)));transition-duration:var(--tw-duration,var(--default-transition-duration,150ms));--tw-duration:var(--sd-duration-medium, 300ms);transition-duration:var(--sd-duration-medium,300ms);--tw-ease:var(--ease-in-out, cubic-bezier(0.4, 0, 0.2, 1));transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1));--tw-content:'';content:var(--tw-content);border-bottom:none;border-radius:4px 4px 0 0}[part=active-tab-indicator]{--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x) var(--tw-scale-y);opacity:var(--sd-opacity-0);--tw-duration:var(--sd-duration-fast, 150ms);transition-duration:var(--sd-duration-fast,150ms);transition:width var(--sd-duration-fast) ease-in-out,opacity var(--sd-duration-fast) ease-in-out,transform var(--sd-duration-fast) ease-in-out var(--sd-duration-fast)}:host([active]) [part=active-tab-indicator]{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y);opacity:var(--sd-opacity-100);transition:width var(--sd-duration-fast) ease-in-out,transform var(--sd-duration-fast) ease-in-out}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}`],e([o("[part=base]")],t.prototype,"tab",2),e([o("[part=active-tab-indicator]")],t.prototype,"currentIndicator",2),e([i({type:String,reflect:!0})],t.prototype,"variant",2),e([i({type:Boolean,reflect:!0})],t.prototype,"active",2),e([i({type:Boolean,reflect:!0})],t.prototype,"disabled",2),e([i({type:Boolean,reflect:!0,attribute:"visually-disabled"})],t.prototype,"visuallyDisabled",2),e([i({type:String,reflect:!0})],t.prototype,"panel",2),e([n("active")],t.prototype,"handleActiveChange",1),e([n(["disabled","visually-disabled"])],t.prototype,"handleDisabledChange",1),t=e([c("sd-6-2-1-tab")],t);export{t as a};
1
+ import{a as b}from"./chunk.CGQ2BPPZ.js";import{a as u}from"./chunk.IQPMMUES.js";import{a}from"./chunk.YFQFOIEM.js";import{a as n}from"./chunk.NYKJXI3Q.js";import{a as c,b as i,d as o,h as l}from"./chunk.ALCKOGA7.js";import{b as d,e as s}from"./chunk.763RLJEK.js";import{e}from"./chunk.6EV4YU6C.js";var v=0,t=class extends l{constructor(){super(...arguments);this.attrId=++v;this.componentId=`sd-6-4-0-tab-${this.attrId}`;this.hasSlotController=new b(this,"left");this.localize=new u(this);this.variant="default";this.active=!1;this.disabled=!1;this.visuallyDisabled=!1;this.panel=""}connectedCallback(){super.connectedCallback(),this.setAttribute("role","tab")}handleActiveChange(){this.setAttribute("aria-selected",this.active?"true":"false")}handleDisabledChange(){let r=this.disabled||this.visuallyDisabled;this.setAttribute("aria-disabled",r?"true":"false")}focus(r){this.tab.focus(r)}blur(){this.tab.blur()}render(){this.id=this.id.length>0?this.id:this.componentId;let r={left:this.hasSlotController.test("left")};return s`<div part="base" class="${a("inline-flex justify-center min-w-max items-center h-12 px-3 leading-none select-none cursor-pointer group relative","outline-hidden focus-visible:focus-outline outline-2 !-outline-offset-2 transition-all duration-fast ease-in-out",this.variant==="container"?"tab-container-border bg-white rounded-[4px_4px_0_0]":"navigable-border-radius",this.variant==="container"&&this.active&&"tab--active-container-border bg-white",this.disabled||this.visuallyDisabled?"!cursor-not-allowed":"hover:color-background",this.active&&"z-20")}" tabindex="${!this.active||this.disabled?"-1":"0"}"><div class="${a("flex h-full items-center justify-center whitespace-nowrap",this.disabled||this.visuallyDisabled&&"opacity-50 ")}"><slot name="left" class="${a(r.left&&"block pr-2",this.disabled||this.visuallyDisabled?"text-neutral-500":"text-primary")}"></slot><slot class="${a(this.disabled||this.visuallyDisabled?"text-neutral-500":"text-primary")}"></slot>${this.variant==="container"?s`<div part="active-tab-indicator" class="${a("absolute bottom-0 h-1 bg-accent w-3/4 bottom-0 group-hover:w-[calc(100%-2px)] navigable__current-indicator-height navigable__current-indicator-border-radius")}"></div>`:""}<div part="hover-bottom-border" class="${a(!this.active&&!this.disabled&&"absolute bottom-0 left-0 w-full h-0.25 border-b sd-6-4-0-tab-color-border")}"></div></div></div>`}};t.styles=[...l.styles,d`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
2
+ :host{box-sizing:border-box;display:inline-block}:host(:hover)::part(hover-bottom-border){border-bottom-color:rgba(var(--sd-color-border-neutral-400))}.tab-container-border::after{position:absolute;height:100%;width:100%;border-style:var(--tw-border-style);border-width:1px;border-color:transparent;--tw-content:'';content:var(--tw-content)}.tab--active-container-border::after{position:absolute;height:100%;width:100%;border-style:var(--tw-border-style);border-width:1px;border-color:rgba(var(--sd-color-border-neutral-400));transition-property:border;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)));transition-duration:var(--tw-duration,var(--default-transition-duration,150ms));--tw-duration:var(--sd-duration-medium, 300ms);transition-duration:var(--sd-duration-medium,300ms);--tw-ease:var(--ease-in-out, cubic-bezier(0.4, 0, 0.2, 1));transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1));--tw-content:'';content:var(--tw-content);border-bottom:none;border-radius:4px 4px 0 0}[part=active-tab-indicator]{--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x) var(--tw-scale-y);opacity:var(--sd-opacity-0);--tw-duration:var(--sd-duration-fast, 150ms);transition-duration:var(--sd-duration-fast,150ms);transition:width var(--sd-duration-fast) ease-in-out,opacity var(--sd-duration-fast) ease-in-out,transform var(--sd-duration-fast) ease-in-out var(--sd-duration-fast)}:host([active]) [part=active-tab-indicator]{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y);opacity:var(--sd-opacity-100);transition:width var(--sd-duration-fast) ease-in-out,transform var(--sd-duration-fast) ease-in-out}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}`],e([o("[part=base]")],t.prototype,"tab",2),e([o("[part=active-tab-indicator]")],t.prototype,"currentIndicator",2),e([i({type:String,reflect:!0})],t.prototype,"variant",2),e([i({type:Boolean,reflect:!0})],t.prototype,"active",2),e([i({type:Boolean,reflect:!0})],t.prototype,"disabled",2),e([i({type:Boolean,reflect:!0,attribute:"visually-disabled"})],t.prototype,"visuallyDisabled",2),e([i({type:String,reflect:!0})],t.prototype,"panel",2),e([n("active")],t.prototype,"handleActiveChange",1),e([n(["disabled","visually-disabled"])],t.prototype,"handleDisabledChange",1),t=e([c("sd-6-4-0-tab")],t);export{t as a};
@@ -1,2 +1,2 @@
1
- import{a as p,c as m}from"./chunk.B2NUKX6G.js";import{b as w}from"./chunk.PJ7JCMQF.js";import{a as u}from"./chunk.KLRPP4NQ.js";import{a as g}from"./chunk.IQPMMUES.js";import{a as s}from"./chunk.YFQFOIEM.js";import{a as b}from"./chunk.NYKJXI3Q.js";import{a as y,b as n,d as a,h as c}from"./chunk.ALCKOGA7.js";import{b as f}from"./chunk.763RLJEK.js";import{b as l,e as d,f as h}from"./chunk.W4QBFD6E.js";import{e as i}from"./chunk.6EV4YU6C.js";var t=class extends c{constructor(){super(...arguments);this.localize=new g(this);this.open=!1}firstUpdated(){this.body.hidden=!this.open,this.body.style.height=this.open?"auto":"0",this.open&&(this.accordion.open=!0),this.accordionObserver=new MutationObserver(e=>{for(let o of e)o.type==="attributes"&&o.attributeName==="open"&&(this.accordion.open?this.show():this.hide())}),this.accordionObserver.observe(this.accordion,{attributes:!0})}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.accordionObserver)==null||e.disconnect()}handleSummaryClick(e){e.preventDefault(),this.open?this.hide():this.show()}handleSummaryKeyDown(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.open?this.hide():this.show()),(e.key==="ArrowUp"||e.key==="ArrowLeft")&&(e.preventDefault(),this.hide()),(e.key==="ArrowDown"||e.key==="ArrowRight")&&(e.preventDefault(),this.show())}async handleOpenChange(){if(this.open){if(this.accordion.open=!0,this.emit("sd-show",{cancelable:!0}).defaultPrevented){this.open=!1,this.accordion.open=!1;return}await d(this.body),this.body.hidden=!1;let{keyframes:o,options:r}=m(this,"accordion.show",{dir:this.localize.dir()});await l(this.body,h(o,this.body.scrollHeight),r),this.body.style.height="auto",this.emit("sd-after-show")}else{if(this.emit("sd-hide",{cancelable:!0}).defaultPrevented){this.accordion.open=!0,this.open=!0;return}await d(this.body);let{keyframes:o,options:r}=m(this,"accordion.hide",{dir:this.localize.dir()});await l(this.body,h(o,this.body.scrollHeight),r),this.body.hidden=!0,this.body.style.height="auto",this.accordion.open=!1,this.emit("sd-after-hide")}}async show(){if(!this.open)return this.open=!0,u(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,u(this,"sd-after-hide")}render(){return w`<details part="base" class="border-neutral-400"><summary part="header" id="header" class="${s("flex text-base gap-4 font-bold items-center cursor-pointer select-none px-4 sd-6-2-1-accordion-padding-block focus-visible:focus-outline focus-visible:z-10 sd-6-2-1-accordion-color-text relative group transition-colors ease-in-out duration-fast hover:bg-neutral-200")}" aria-expanded="${this.open?"true":"false"}" aria-controls="content" tabindex="0" @click="${this.handleSummaryClick}" @keydown="${this.handleSummaryKeyDown}"><div part="summary-border" class="${s(!this.open&&"opacity-0","w-1 sd-6-2-1-accordion__indicator-color absolute left-0 transition-height duration-fast ease-in-out h-[calc(100%-16px)] group-hover:h-full")}"></div><slot name="summary" part="summary" class="flex flex-auto items-center text-left">${this.summary}</slot><span part="summary-icon" class="${s("flex flex-grow-0 flex-shrink-0 flex-auto items-center transition-all ease-in-out duration-medium text-xl",this.open&&"rotate-180")}"><slot name="expand-icon" class="${s(this.open&&"hidden")}"><sd-6-2-1-icon library="_internal" name="chevron-down"></sd-6-2-1-icon></slot><slot name="collapse-icon" class="${s(!this.open&&"hidden")}"><sd-6-2-1-icon library="_internal" name="chevron-down"></sd-6-2-1-icon></slot></span></summary><div part="content" id="content" class="overflow-hidden"><slot part="content__slot" class="block px-4 py-6" role="region" aria-labelledby="header"></slot></div></details>`}};t.styles=[...c.styles,f`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
- :host{display:block}[part=header]::-webkit-details-marker{display:none}[part=base]{border-block-width:var(--sd-accordion-border-width)}[part=summary-icon]{color:var(--sd-accordion__chevron-color-text)}`],i([a('[part="base"]')],t.prototype,"accordion",2),i([a('[part="header"]')],t.prototype,"header",2),i([a('[part="content"]')],t.prototype,"body",2),i([n({type:Boolean,reflect:!0})],t.prototype,"open",2),i([n({reflect:!0})],t.prototype,"summary",2),i([b("open",{waitUntilFirstUpdate:!0})],t.prototype,"handleOpenChange",1),t=i([y("sd-6-2-1-accordion")],t);p("accordion.show",{keyframes:[{height:"0",opacity:"0"},{height:"auto",opacity:"1"}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});p("accordion.hide",{keyframes:[{height:"auto",opacity:"1"},{height:"0",opacity:"0"}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});export{t as a};
1
+ import{a as p,c as m}from"./chunk.B2NUKX6G.js";import{b as w}from"./chunk.PJ7JCMQF.js";import{a as u}from"./chunk.KLRPP4NQ.js";import{a as g}from"./chunk.IQPMMUES.js";import{a as s}from"./chunk.YFQFOIEM.js";import{a as b}from"./chunk.NYKJXI3Q.js";import{a as y,b as n,d as a,h as c}from"./chunk.ALCKOGA7.js";import{b as f}from"./chunk.763RLJEK.js";import{b as l,e as d,f as h}from"./chunk.W4QBFD6E.js";import{e as i}from"./chunk.6EV4YU6C.js";var t=class extends c{constructor(){super(...arguments);this.localize=new g(this);this.open=!1}firstUpdated(){this.body.hidden=!this.open,this.body.style.height=this.open?"auto":"0",this.open&&(this.accordion.open=!0),this.accordionObserver=new MutationObserver(e=>{for(let o of e)o.type==="attributes"&&o.attributeName==="open"&&(this.accordion.open?this.show():this.hide())}),this.accordionObserver.observe(this.accordion,{attributes:!0})}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.accordionObserver)==null||e.disconnect()}handleSummaryClick(e){e.preventDefault(),this.open?this.hide():this.show()}handleSummaryKeyDown(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.open?this.hide():this.show()),(e.key==="ArrowUp"||e.key==="ArrowLeft")&&(e.preventDefault(),this.hide()),(e.key==="ArrowDown"||e.key==="ArrowRight")&&(e.preventDefault(),this.show())}async handleOpenChange(){if(this.open){if(this.accordion.open=!0,this.emit("sd-show",{cancelable:!0}).defaultPrevented){this.open=!1,this.accordion.open=!1;return}await d(this.body),this.body.hidden=!1;let{keyframes:o,options:r}=m(this,"accordion.show",{dir:this.localize.dir()});await l(this.body,h(o,this.body.scrollHeight),r),this.body.style.height="auto",this.emit("sd-after-show")}else{if(this.emit("sd-hide",{cancelable:!0}).defaultPrevented){this.accordion.open=!0,this.open=!0;return}await d(this.body);let{keyframes:o,options:r}=m(this,"accordion.hide",{dir:this.localize.dir()});await l(this.body,h(o,this.body.scrollHeight),r),this.body.hidden=!0,this.body.style.height="auto",this.accordion.open=!1,this.emit("sd-after-hide")}}async show(){if(!this.open)return this.open=!0,u(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,u(this,"sd-after-hide")}render(){return w`<details part="base" class="border-neutral-400"><summary part="header" id="header" class="${s("flex text-base gap-4 font-bold items-center cursor-pointer select-none px-4 sd-6-4-0-accordion-padding-block focus-visible:focus-outline focus-visible:z-10 sd-6-4-0-accordion-color-text relative group transition-colors ease-in-out duration-fast hover:bg-neutral-200")}" aria-expanded="${this.open?"true":"false"}" aria-controls="content" tabindex="0" @click="${this.handleSummaryClick}" @keydown="${this.handleSummaryKeyDown}"><div part="summary-border" class="${s(!this.open&&"opacity-0","w-1 sd-6-4-0-accordion__indicator-color absolute left-0 transition-height duration-fast ease-in-out h-[calc(100%-16px)] group-hover:h-full")}"></div><slot name="summary" part="summary" class="flex flex-auto items-center text-left">${this.summary}</slot><span part="summary-icon" class="${s("flex flex-grow-0 flex-shrink-0 flex-auto items-center transition-all ease-in-out duration-medium text-xl",this.open&&"rotate-180")}"><slot name="expand-icon" class="${s(this.open&&"hidden")}"><sd-6-4-0-icon library="_internal" name="chevron-down"></sd-6-4-0-icon></slot><slot name="collapse-icon" class="${s(!this.open&&"hidden")}"><sd-6-4-0-icon library="_internal" name="chevron-down"></sd-6-4-0-icon></slot></span></summary><div part="content" id="content" class="overflow-hidden"><slot part="content__slot" class="block px-4 py-6" role="region" aria-labelledby="header"></slot></div></details>`}};t.styles=[...c.styles,f`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
+ :host{display:block}[part=header]::-webkit-details-marker{display:none}[part=base]{border-block-width:var(--sd-accordion-border-width)}[part=summary-icon]{color:var(--sd-accordion__chevron-color-text)}`],i([a('[part="base"]')],t.prototype,"accordion",2),i([a('[part="header"]')],t.prototype,"header",2),i([a('[part="content"]')],t.prototype,"body",2),i([n({type:Boolean,reflect:!0})],t.prototype,"open",2),i([n({reflect:!0})],t.prototype,"summary",2),i([b("open",{waitUntilFirstUpdate:!0})],t.prototype,"handleOpenChange",1),t=i([y("sd-6-4-0-accordion")],t);p("accordion.show",{keyframes:[{height:"0",opacity:"0"},{height:"auto",opacity:"1"}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});p("accordion.hide",{keyframes:[{height:"auto",opacity:"1"},{height:"0",opacity:"0"}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});export{t as a};
@@ -1,2 +1,2 @@
1
- import{a as n}from"./chunk.YFQFOIEM.js";import{a as l,b as r,h as o}from"./chunk.ALCKOGA7.js";import{b as i,e as a}from"./chunk.763RLJEK.js";import{e}from"./chunk.6EV4YU6C.js";var t=class extends o{constructor(){super(...arguments);this.orientation="horizontal";this.inverted=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","separator")}render(){return a`<hr part="main" aria-orientation="${this.orientation}" class="${n(this.inverted?"sd-6-2-1-divider--inverted-color-border":"border-neutral-400",this.orientation==="horizontal"?"border-t w-full":" border-l h-full")}">`}};t.styles=[...o.styles,i`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
- :host{margin:calc(var(--sd-spacing-1) * 0)}:host(sd-6-2-1-divider[orientation=horizontal]){display:block}:host(sd-6-2-1-divider[orientation=vertical]){display:inline-block}`],e([r({type:String,reflect:!0})],t.prototype,"orientation",2),e([r({type:Boolean,reflect:!0})],t.prototype,"inverted",2),t=e([l("sd-6-2-1-divider")],t);export{t as a};
1
+ import{a as n}from"./chunk.YFQFOIEM.js";import{a as l,b as r,h as o}from"./chunk.ALCKOGA7.js";import{b as i,e as a}from"./chunk.763RLJEK.js";import{e}from"./chunk.6EV4YU6C.js";var t=class extends o{constructor(){super(...arguments);this.orientation="horizontal";this.inverted=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","separator")}render(){return a`<hr part="main" aria-orientation="${this.orientation}" class="${n(this.inverted?"sd-6-4-0-divider--inverted-color-border":"border-neutral-400",this.orientation==="horizontal"?"border-t w-full":" border-l h-full")}">`}};t.styles=[...o.styles,i`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
+ :host{margin:calc(var(--sd-spacing-1) * 0)}:host(sd-6-4-0-divider[orientation=horizontal]){display:block}:host(sd-6-4-0-divider[orientation=vertical]){display:inline-block}`],e([r({type:String,reflect:!0})],t.prototype,"orientation",2),e([r({type:Boolean,reflect:!0})],t.prototype,"inverted",2),t=e([l("sd-6-4-0-divider")],t);export{t as a};
@@ -1,2 +1,2 @@
1
- import{a as w}from"./chunk.VYBQ3X2B.js";import{a as $}from"./chunk.N3WG3NAL.js";import{b as x}from"./chunk.CJ34NUTS.js";import{a}from"./chunk.PV6UYBMY.js";import{a as C}from"./chunk.CGQ2BPPZ.js";import{a as s}from"./chunk.YFQFOIEM.js";import{a as u}from"./chunk.NYKJXI3Q.js";import{a as g,b as i,c as d,d as b,h as m}from"./chunk.ALCKOGA7.js";import{b as y,e as o}from"./chunk.763RLJEK.js";import{e}from"./chunk.6EV4YU6C.js";var t=class extends m{constructor(){super(...arguments);this.formControlController=new x(this);this.hasSlotController=new C(this,"help-text","label");this.hasFocus=!1;this.showValidStyle=!1;this.showInvalidStyle=!1;this.title="";this.name="";this.value="";this.size="lg";this.label="";this.helpText="";this.placeholder="";this.rows=4;this.disabled=!1;this.visuallyDisabled=!1;this.readonly=!1;this.form="";this.required=!1;this.floatingLabel=!1;this.styleOnValid=!1;this.spellcheck=!0;this.defaultValue=""}get validity(){return this.textarea.validity}get validationMessage(){return this.textarea.validationMessage}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.setTextareaHeight()})}firstUpdated(){this.formControlController.updateValidity()}disconnectedCallback(){super.disconnectedCallback()}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleChange(){this.value=this.textarea.value,this.setTextareaHeight(),this.emit("sd-change")}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleInput(){if(this.visuallyDisabled){this.textarea.value=this.value;return}this.value=this.textarea.value,this.formControlController.updateValidity(),this.emit("sd-input")}handleInvalid(l){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(l),this.invalidMessage.textContent=l.target.validationMessage}setTextareaHeight(){this.textarea.style.height=void 0}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleRowsChange(){this.setTextareaHeight()}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity(),this.setTextareaHeight()}focus(l){this.textarea.focus(l)}blur(){this.textarea.blur()}select(){this.textarea.select()}scrollPosition(l){if(l){typeof l.top=="number"&&(this.textarea.scrollTop=l.top),typeof l.left=="number"&&(this.textarea.scrollLeft=l.left);return}return{top:this.textarea.scrollTop,left:this.textarea.scrollTop}}setSelectionRange(l,r,n="none"){this.textarea.setSelectionRange(l,r,n)}setRangeText(l,r,n,c){this.textarea.setRangeText(l,r,n,c),this.value!==this.textarea.value&&(this.value=this.textarea.value),this.value!==this.textarea.value&&(this.value=this.textarea.value,this.setTextareaHeight())}checkValidity(){var l;return(l=this.textarea)==null?void 0:l.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.textarea.reportValidity()}setCustomValidity(l){this.textarea.setCustomValidity(l),this.formControlController.updateValidity()}render(){let l={label:this.hasSlotController.test("label"),helpText:this.hasSlotController.test("help-text"),tooltip:this.hasSlotController.test("tooltip")},r=this.label?!0:!!l.label,n=this.helpText?!0:!!l.helpText,c=!!l.tooltip,V=this.value!==null&&String(this.value).length>0,p=this.floatingLabel&&r&&(this.hasFocus&&!this.visuallyDisabled||V),h=this.disabled?"disabled":this.visuallyDisabled&&!this.hasFocus?"visuallyDisabled":this.readonly?"readonly":this.hasFocus&&this.showInvalidStyle?"activeInvalid":this.hasFocus&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",f=this.size==="sm"?"text-sm":"text-base",v={sm:"text-base top-1",md:"text-lg top-2",lg:"text-xl top-2"}[this.size];return o`<div part="form-control" class="flex flex-col h-full text-left">${r&&!this.floatingLabel||c?o`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${s(r?"inline-block form-control-color-text":"hidden",f)}" for="input" aria-hidden="${r?"false":"true"}"><slot name="label">${this.label}</slot></label> ${l.tooltip?o`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${s("relative h-full w-full",this.disabled&&"cursor-not-allowed")}"><div part="border" class="${s("absolute w-full h-full pointer-events-none border rounded-default transition-[border] duration-medium ease-in-out",{disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",readonly:"form-control-color-border",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"form-control-color-border"}[h])}">${r&&this.floatingLabel?o`<label id="label" part="form-control-floating-label" class="${s("absolute left-4 z-20 pointer-events-none transition-all duration-200",f,p?this.size==="lg"?"top-2 text-xs":"top-1 text-xs":"top-2.5 text-base")}" for="input"><span class="${s("leading-none",(this.visuallyDisabled||this.disabled)&&"text-neutral-500",p&&!this.visuallyDisabled&&!this.disabled&&"form-control--filled__floating-label-color-text")}">${this.label}</span></label>`:null}</div><div part="base" class="${s("textarea h-full flex items-top rounded-default group transition-colors duration-medium hover:duration-fast ease-in-out",this.floatingLabel&&"pt-6",{sm:"textarea-sm",md:"textarea-md",lg:"textarea-lg"}[this.size],!this.disabled&&!this.readonly&&!this.visuallyDisabled?"hover:bg-neutral-200":"",this.readonly?"bg-neutral-100":"bg-white",h==="disabled"||h==="visuallyDisabled"?"text-neutral-500":"form-control-color-text",["invalid","activeInvalid"].includes(h)&&"form-control--invalid-color-background")}"><textarea part="textarea" id="input" class="${s("ps-4 flex-grow focus:outline-none bg-transparent placeholder:text-neutral-700 resize-none group-has-[sd-6-2-1-icon]:pe-8",{sm:this.floatingLabel?"pb-1":"py-1",md:this.floatingLabel?"pb-1":"py-1",lg:this.floatingLabel?"pb-2":"py-2"}[this.size],this.disabled&&"cursor-not-allowed",f)}" title="${this.title}" name="${a(this.name)}" .value="${w(this.value)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" ?visually-disabled="${this.visuallyDisabled}" placeholder="${!this.floatingLabel||p?a(this.placeholder):""}" minlength="${a(this.minlength)}" maxlength="${a(this.maxlength)}" rows="${a(this.rows)}" autocapitalize="${a(this.autocapitalize)}" autocorrect="${a(this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${a(this.spellcheck)}" enterkeyhint="${a(this.enterkeyhint)}" inputmode="${a(this.inputmode)}" aria-describedby="help-text invalid-message" aria-invalid="${this.showInvalidStyle}" aria-disabled="${this.disabled||this.visuallyDisabled}" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"></textarea> ${this.showInvalidStyle?o`<sd-6-2-1-icon class="${s("text-error absolute right-4 pointer-events-none",v)}" library="_internal" name="risk" part="invalid-icon"></sd-6-2-1-icon>`:""} ${this.styleOnValid&&this.showValidStyle?o`<sd-6-2-1-icon class="${s("text-success absolute right-4 pointer-events-none",v)}" library="_internal" name="confirm-circle" part="valid-icon"></sd-6-2-1-icon>`:""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${s("text-sm text-neutral-700 mt-1",n&&!this.showInvalidStyle?"block":"hidden")}" aria-hidden="${!n||this.showInvalidStyle}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage(this.size)}`}};t.styles=[...m.styles,y`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
- :host{display:block;height:100%}:host textarea{scrollbar-gutter:stable}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{color:rgba(var(--sd-color-text-neutral-500))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{color:rgba(var(--sd-color-text-neutral-500))}:host([required]) #label::after{content:' *'}:host([visually-disabled]) textarea{caret-color:transparent}.no-scrollbar::-webkit-scrollbar{display:none}`],e([b("#input")],t.prototype,"textarea",2),e([b("#invalid-message")],t.prototype,"invalidMessage",2),e([d()],t.prototype,"hasFocus",2),e([d()],t.prototype,"showValidStyle",2),e([d()],t.prototype,"showInvalidStyle",2),e([i({type:String,reflect:!0})],t.prototype,"title",2),e([i({type:String,reflect:!0})],t.prototype,"name",2),e([i()],t.prototype,"value",2),e([i({type:String,reflect:!0})],t.prototype,"size",2),e([i({type:String,reflect:!0})],t.prototype,"label",2),e([i({type:String,attribute:"help-text",reflect:!0})],t.prototype,"helpText",2),e([i({type:String,reflect:!0})],t.prototype,"placeholder",2),e([i({type:Number,reflect:!0})],t.prototype,"rows",2),e([i({type:Boolean,reflect:!0})],t.prototype,"disabled",2),e([i({type:Boolean,reflect:!0,attribute:"visually-disabled"})],t.prototype,"visuallyDisabled",2),e([i({type:Boolean,reflect:!0})],t.prototype,"readonly",2),e([i({type:String,reflect:!0})],t.prototype,"form",2),e([i({type:Boolean,reflect:!0})],t.prototype,"required",2),e([i({attribute:"floating-label",type:Boolean,reflect:!0})],t.prototype,"floatingLabel",2),e([i({type:Number,reflect:!0})],t.prototype,"minlength",2),e([i({type:Number,reflect:!0})],t.prototype,"maxlength",2),e([i({type:String,reflect:!0})],t.prototype,"autocapitalize",2),e([i({type:String,reflect:!0})],t.prototype,"autocorrect",2),e([i({reflect:!0})],t.prototype,"autocomplete",2),e([i({type:Boolean,reflect:!0})],t.prototype,"autofocus",2),e([i({type:String,reflect:!0})],t.prototype,"enterkeyhint",2),e([i({type:Boolean,reflect:!0,attribute:"style-on-valid"})],t.prototype,"styleOnValid",2),e([i({type:Boolean,converter:{fromAttribute:l=>!(!l||l==="false"),toAttribute:l=>l?"true":"false"}})],t.prototype,"spellcheck",2),e([i({type:String,reflect:!0})],t.prototype,"inputmode",2),e([$()],t.prototype,"defaultValue",2),e([u("disabled",{waitUntilFirstUpdate:!0})],t.prototype,"handleDisabledChange",1),e([u("rows",{waitUntilFirstUpdate:!0})],t.prototype,"handleRowsChange",1),e([u("value",{waitUntilFirstUpdate:!0})],t.prototype,"handleValueChange",1),t=e([g("sd-6-2-1-textarea")],t);export{t as a};
1
+ import{a as w}from"./chunk.VYBQ3X2B.js";import{a as $}from"./chunk.N3WG3NAL.js";import{b as x}from"./chunk.CJ34NUTS.js";import{a}from"./chunk.PV6UYBMY.js";import{a as C}from"./chunk.CGQ2BPPZ.js";import{a as s}from"./chunk.YFQFOIEM.js";import{a as u}from"./chunk.NYKJXI3Q.js";import{a as g,b as i,c as d,d as b,h as m}from"./chunk.ALCKOGA7.js";import{b as y,e as o}from"./chunk.763RLJEK.js";import{e}from"./chunk.6EV4YU6C.js";var t=class extends m{constructor(){super(...arguments);this.formControlController=new x(this);this.hasSlotController=new C(this,"help-text","label");this.hasFocus=!1;this.showValidStyle=!1;this.showInvalidStyle=!1;this.title="";this.name="";this.value="";this.size="lg";this.label="";this.helpText="";this.placeholder="";this.rows=4;this.disabled=!1;this.visuallyDisabled=!1;this.readonly=!1;this.form="";this.required=!1;this.floatingLabel=!1;this.styleOnValid=!1;this.spellcheck=!0;this.defaultValue=""}get validity(){return this.textarea.validity}get validationMessage(){return this.textarea.validationMessage}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.setTextareaHeight()})}firstUpdated(){this.formControlController.updateValidity()}disconnectedCallback(){super.disconnectedCallback()}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleChange(){this.value=this.textarea.value,this.setTextareaHeight(),this.emit("sd-change")}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleInput(){if(this.visuallyDisabled){this.textarea.value=this.value;return}this.value=this.textarea.value,this.formControlController.updateValidity(),this.emit("sd-input")}handleInvalid(l){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(l),this.invalidMessage.textContent=l.target.validationMessage}setTextareaHeight(){this.textarea.style.height=void 0}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleRowsChange(){this.setTextareaHeight()}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity(),this.setTextareaHeight()}focus(l){this.textarea.focus(l)}blur(){this.textarea.blur()}select(){this.textarea.select()}scrollPosition(l){if(l){typeof l.top=="number"&&(this.textarea.scrollTop=l.top),typeof l.left=="number"&&(this.textarea.scrollLeft=l.left);return}return{top:this.textarea.scrollTop,left:this.textarea.scrollTop}}setSelectionRange(l,r,n="none"){this.textarea.setSelectionRange(l,r,n)}setRangeText(l,r,n,c){this.textarea.setRangeText(l,r,n,c),this.value!==this.textarea.value&&(this.value=this.textarea.value),this.value!==this.textarea.value&&(this.value=this.textarea.value,this.setTextareaHeight())}checkValidity(){var l;return(l=this.textarea)==null?void 0:l.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.textarea.reportValidity()}setCustomValidity(l){this.textarea.setCustomValidity(l),this.formControlController.updateValidity()}render(){let l={label:this.hasSlotController.test("label"),helpText:this.hasSlotController.test("help-text"),tooltip:this.hasSlotController.test("tooltip")},r=this.label?!0:!!l.label,n=this.helpText?!0:!!l.helpText,c=!!l.tooltip,V=this.value!==null&&String(this.value).length>0,p=this.floatingLabel&&r&&(this.hasFocus&&!this.visuallyDisabled||V),h=this.disabled?"disabled":this.visuallyDisabled&&!this.hasFocus?"visuallyDisabled":this.readonly?"readonly":this.hasFocus&&this.showInvalidStyle?"activeInvalid":this.hasFocus&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",f=this.size==="sm"?"text-sm":"text-base",v={sm:"text-base top-1",md:"text-lg top-2",lg:"text-xl top-2"}[this.size];return o`<div part="form-control" class="flex flex-col h-full text-left">${r&&!this.floatingLabel||c?o`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${s(r?"inline-block form-control-color-text":"hidden",f)}" for="input" aria-hidden="${r?"false":"true"}"><slot name="label">${this.label}</slot></label> ${l.tooltip?o`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${s("relative h-full w-full",this.disabled&&"cursor-not-allowed")}"><div part="border" class="${s("absolute w-full h-full pointer-events-none border rounded-default transition-[border] duration-medium ease-in-out",{disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",readonly:"form-control-color-border",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"form-control-color-border"}[h])}">${r&&this.floatingLabel?o`<label id="label" part="form-control-floating-label" class="${s("absolute left-4 z-20 pointer-events-none transition-all duration-200",f,p?this.size==="lg"?"top-2 text-xs":"top-1 text-xs":"top-2.5 text-base")}" for="input"><span class="${s("leading-none",(this.visuallyDisabled||this.disabled)&&"text-neutral-500",p&&!this.visuallyDisabled&&!this.disabled&&"form-control--filled__floating-label-color-text")}">${this.label}</span></label>`:null}</div><div part="base" class="${s("textarea h-full flex items-top rounded-default group transition-colors duration-medium hover:duration-fast ease-in-out",this.floatingLabel&&"pt-6",{sm:"textarea-sm",md:"textarea-md",lg:"textarea-lg"}[this.size],!this.disabled&&!this.readonly&&!this.visuallyDisabled?"hover:bg-neutral-200":"",this.readonly?"bg-neutral-100":"bg-white",h==="disabled"||h==="visuallyDisabled"?"text-neutral-500":"form-control-color-text",["invalid","activeInvalid"].includes(h)&&"form-control--invalid-color-background")}"><textarea part="textarea" id="input" class="${s("ps-4 flex-grow focus:outline-none bg-transparent placeholder:text-neutral-700 resize-none group-has-[sd-6-4-0-icon]:pe-8",{sm:this.floatingLabel?"pb-1":"py-1",md:this.floatingLabel?"pb-1":"py-1",lg:this.floatingLabel?"pb-2":"py-2"}[this.size],this.disabled&&"cursor-not-allowed",f)}" title="${this.title}" name="${a(this.name)}" .value="${w(this.value)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" ?visually-disabled="${this.visuallyDisabled}" placeholder="${!this.floatingLabel||p?a(this.placeholder):""}" minlength="${a(this.minlength)}" maxlength="${a(this.maxlength)}" rows="${a(this.rows)}" autocapitalize="${a(this.autocapitalize)}" autocorrect="${a(this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${a(this.spellcheck)}" enterkeyhint="${a(this.enterkeyhint)}" inputmode="${a(this.inputmode)}" aria-describedby="help-text invalid-message" aria-invalid="${this.showInvalidStyle}" aria-disabled="${this.disabled||this.visuallyDisabled}" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"></textarea> ${this.showInvalidStyle?o`<sd-6-4-0-icon class="${s("text-error absolute right-4 pointer-events-none",v)}" library="_internal" name="risk" part="invalid-icon"></sd-6-4-0-icon>`:""} ${this.styleOnValid&&this.showValidStyle?o`<sd-6-4-0-icon class="${s("text-success absolute right-4 pointer-events-none",v)}" library="_internal" name="confirm-circle" part="valid-icon"></sd-6-4-0-icon>`:""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${s("text-sm text-neutral-700 mt-1",n&&!this.showInvalidStyle?"block":"hidden")}" aria-hidden="${!n||this.showInvalidStyle}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage(this.size)}`}};t.styles=[...m.styles,y`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
+ :host{display:block;height:100%}:host textarea{scrollbar-gutter:stable}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{color:rgba(var(--sd-color-text-neutral-500))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{color:rgba(var(--sd-color-text-neutral-500))}:host([required]) #label::after{content:' *'}:host([visually-disabled]) textarea{caret-color:transparent}.no-scrollbar::-webkit-scrollbar{display:none}`],e([b("#input")],t.prototype,"textarea",2),e([b("#invalid-message")],t.prototype,"invalidMessage",2),e([d()],t.prototype,"hasFocus",2),e([d()],t.prototype,"showValidStyle",2),e([d()],t.prototype,"showInvalidStyle",2),e([i({type:String,reflect:!0})],t.prototype,"title",2),e([i({type:String,reflect:!0})],t.prototype,"name",2),e([i()],t.prototype,"value",2),e([i({type:String,reflect:!0})],t.prototype,"size",2),e([i({type:String,reflect:!0})],t.prototype,"label",2),e([i({type:String,attribute:"help-text",reflect:!0})],t.prototype,"helpText",2),e([i({type:String,reflect:!0})],t.prototype,"placeholder",2),e([i({type:Number,reflect:!0})],t.prototype,"rows",2),e([i({type:Boolean,reflect:!0})],t.prototype,"disabled",2),e([i({type:Boolean,reflect:!0,attribute:"visually-disabled"})],t.prototype,"visuallyDisabled",2),e([i({type:Boolean,reflect:!0})],t.prototype,"readonly",2),e([i({type:String,reflect:!0})],t.prototype,"form",2),e([i({type:Boolean,reflect:!0})],t.prototype,"required",2),e([i({attribute:"floating-label",type:Boolean,reflect:!0})],t.prototype,"floatingLabel",2),e([i({type:Number,reflect:!0})],t.prototype,"minlength",2),e([i({type:Number,reflect:!0})],t.prototype,"maxlength",2),e([i({type:String,reflect:!0})],t.prototype,"autocapitalize",2),e([i({type:String,reflect:!0})],t.prototype,"autocorrect",2),e([i({reflect:!0})],t.prototype,"autocomplete",2),e([i({type:Boolean,reflect:!0})],t.prototype,"autofocus",2),e([i({type:String,reflect:!0})],t.prototype,"enterkeyhint",2),e([i({type:Boolean,reflect:!0,attribute:"style-on-valid"})],t.prototype,"styleOnValid",2),e([i({type:Boolean,converter:{fromAttribute:l=>!(!l||l==="false"),toAttribute:l=>l?"true":"false"}})],t.prototype,"spellcheck",2),e([i({type:String,reflect:!0})],t.prototype,"inputmode",2),e([$()],t.prototype,"defaultValue",2),e([u("disabled",{waitUntilFirstUpdate:!0})],t.prototype,"handleDisabledChange",1),e([u("rows",{waitUntilFirstUpdate:!0})],t.prototype,"handleRowsChange",1),e([u("value",{waitUntilFirstUpdate:!0})],t.prototype,"handleValueChange",1),t=e([g("sd-6-4-0-textarea")],t);export{t as a};