@solid-design-system/components 6.2.0 → 6.3.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 (299) 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.3CJKJUTD.js → chunk.WOZKICWV.js} +5 -5
  5. package/cdn/components/breadcrumb/breadcrumb.js +1 -1
  6. package/cdn/components/dropdown/dropdown.js +1 -1
  7. package/cdn/components/menu/menu.d.ts +2 -0
  8. package/cdn/components/menu/menu.js +1 -1
  9. package/cdn/components/menu-item/menu-item.js +1 -1
  10. package/cdn/components/select/select.js +1 -1
  11. package/cdn/custom-elements.json +1 -1
  12. package/cdn/solid-components.bundle.js +4 -4
  13. package/cdn/solid-components.iife.js +4 -4
  14. package/cdn/solid-components.js +1 -1
  15. package/cdn/web-types.json +1 -1
  16. package/cdn-versioned/chunks/chunk.2DPSCPM4.js +2 -2
  17. package/cdn-versioned/chunks/chunk.2HJLVWCE.js +2 -2
  18. package/cdn-versioned/chunks/chunk.2KV3QDYA.js +2 -2
  19. package/cdn-versioned/chunks/chunk.3ETEQAPR.js +2 -2
  20. package/cdn-versioned/chunks/chunk.47H4SDKN.js +2 -2
  21. package/cdn-versioned/chunks/chunk.4LGCXG7D.js +2 -2
  22. package/cdn-versioned/chunks/chunk.4P5PT6MV.js +2 -2
  23. package/cdn-versioned/chunks/chunk.5M2K2EXR.js +2 -2
  24. package/cdn-versioned/chunks/chunk.5OE2GCRH.js +2 -2
  25. package/cdn-versioned/chunks/chunk.6GU6NFBF.js +1 -1
  26. package/cdn-versioned/chunks/chunk.745GDIND.js +2 -2
  27. package/cdn-versioned/chunks/chunk.ALCKOGA7.js +1 -1
  28. package/cdn-versioned/chunks/chunk.BZ3VHECJ.js +3 -3
  29. package/cdn-versioned/chunks/chunk.C44GZOLG.js +9 -9
  30. package/cdn-versioned/chunks/chunk.C4QT4K6T.js +2 -2
  31. package/cdn-versioned/chunks/chunk.CDP46OS4.js +1 -1
  32. package/cdn-versioned/chunks/chunk.CJ34NUTS.js +1 -1
  33. package/cdn-versioned/chunks/chunk.CMY3VPYA.js +2 -2
  34. package/cdn-versioned/chunks/chunk.D5FVDNYV.js +2 -2
  35. package/cdn-versioned/chunks/chunk.DC6UQXYF.js +2 -2
  36. package/cdn-versioned/chunks/chunk.DEEJ4ON7.js +2 -2
  37. package/cdn-versioned/chunks/chunk.DXGVZ3KG.js +1 -1
  38. package/cdn-versioned/chunks/chunk.E64WXH47.js +1 -1
  39. package/cdn-versioned/chunks/chunk.EASLRW3B.js +2 -2
  40. package/cdn-versioned/chunks/chunk.G42N3VHE.js +2 -2
  41. package/cdn-versioned/chunks/chunk.GP2QVZP5.js +1 -1
  42. package/cdn-versioned/chunks/chunk.H77CNSMK.js +2 -2
  43. package/cdn-versioned/chunks/chunk.HHASCDC2.js +5 -5
  44. package/cdn-versioned/chunks/chunk.HYUIC2O6.js +2 -2
  45. package/cdn-versioned/chunks/chunk.I234MSSB.js +2 -2
  46. package/cdn-versioned/chunks/chunk.I3TTTGLW.js +1 -1
  47. package/cdn-versioned/chunks/chunk.IAEOXYGB.js +1 -1
  48. package/cdn-versioned/chunks/chunk.JRSX44R6.js +2 -2
  49. package/cdn-versioned/chunks/chunk.KKKGNXIR.js +2 -2
  50. package/cdn-versioned/chunks/chunk.KM5W4EDY.js +2 -2
  51. package/cdn-versioned/chunks/chunk.L6PAHLSN.js +2 -2
  52. package/cdn-versioned/chunks/chunk.MWO5B7BA.js +2 -2
  53. package/cdn-versioned/chunks/chunk.OAVVKKBJ.js +2 -2
  54. package/cdn-versioned/chunks/chunk.OG2BQH6T.js +2 -2
  55. package/cdn-versioned/chunks/{chunk.QJ2LWN24.js → chunk.PDHMAKVQ.js} +2 -2
  56. package/cdn-versioned/chunks/chunk.PPIS2HQ5.js +1 -1
  57. package/cdn-versioned/chunks/chunk.PRGLNPUF.js +1 -1
  58. package/cdn-versioned/chunks/chunk.PT6G5HKE.js +1 -1
  59. package/cdn-versioned/chunks/chunk.Q6GEIXGA.js +2 -0
  60. package/cdn-versioned/chunks/chunk.QMKNC76J.js +2 -2
  61. package/cdn-versioned/chunks/chunk.QUGI3FMS.js +2 -2
  62. package/cdn-versioned/chunks/chunk.RBVWPWFK.js +2 -2
  63. package/cdn-versioned/chunks/chunk.S4II2NTI.js +2 -2
  64. package/cdn-versioned/chunks/chunk.S7VIPIYX.js +2 -2
  65. package/cdn-versioned/chunks/chunk.TWNEU4H4.js +4 -0
  66. package/cdn-versioned/chunks/chunk.TWTQHJPN.js +2 -2
  67. package/cdn-versioned/chunks/chunk.U44PXBV2.js +2 -2
  68. package/cdn-versioned/chunks/chunk.U5N7L5RI.js +2 -2
  69. package/cdn-versioned/chunks/chunk.UVRZTPOZ.js +2 -2
  70. package/cdn-versioned/chunks/chunk.VAUP57XZ.js +2 -2
  71. package/cdn-versioned/chunks/chunk.VMUNNUNV.js +1 -1
  72. package/cdn-versioned/chunks/chunk.VTDQOKJM.js +2 -2
  73. package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
  74. package/cdn-versioned/chunks/{chunk.3CJKJUTD.js → chunk.WOZKICWV.js} +5 -5
  75. package/cdn-versioned/chunks/chunk.XAPH6XNH.js +2 -2
  76. package/cdn-versioned/chunks/chunk.XTRMRKZ6.js +2 -2
  77. package/cdn-versioned/chunks/chunk.Z6TAAGCD.js +2 -2
  78. package/cdn-versioned/chunks/chunk.ZTELVJ34.js +1 -1
  79. package/cdn-versioned/chunks/chunk.ZVHLKL7F.js +2 -2
  80. package/cdn-versioned/components/accordion/accordion.d.ts +1 -1
  81. package/cdn-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  82. package/cdn-versioned/components/animation/animation.d.ts +1 -1
  83. package/cdn-versioned/components/audio/audio.d.ts +1 -1
  84. package/cdn-versioned/components/badge/badge.d.ts +1 -1
  85. package/cdn-versioned/components/brandshape/brandshape.d.ts +1 -1
  86. package/cdn-versioned/components/breadcrumb/breadcrumb.d.ts +1 -1
  87. package/cdn-versioned/components/breadcrumb/breadcrumb.js +1 -1
  88. package/cdn-versioned/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
  89. package/cdn-versioned/components/button/button.d.ts +1 -1
  90. package/cdn-versioned/components/button-group/button-group.d.ts +1 -1
  91. package/cdn-versioned/components/carousel/carousel.d.ts +1 -1
  92. package/cdn-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  93. package/cdn-versioned/components/checkbox/checkbox.d.ts +1 -1
  94. package/cdn-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
  95. package/cdn-versioned/components/combobox/combobox.d.ts +1 -1
  96. package/cdn-versioned/components/datepicker/datepicker.d.ts +1 -1
  97. package/cdn-versioned/components/dialog/dialog.d.ts +1 -1
  98. package/cdn-versioned/components/divider/divider.d.ts +1 -1
  99. package/cdn-versioned/components/drawer/drawer.d.ts +1 -1
  100. package/cdn-versioned/components/dropdown/dropdown.d.ts +1 -1
  101. package/cdn-versioned/components/dropdown/dropdown.js +1 -1
  102. package/cdn-versioned/components/expandable/expandable.d.ts +1 -1
  103. package/cdn-versioned/components/flipcard/flipcard.d.ts +1 -1
  104. package/cdn-versioned/components/header/header.d.ts +1 -1
  105. package/cdn-versioned/components/icon/icon.d.ts +1 -1
  106. package/cdn-versioned/components/include/include.d.ts +1 -1
  107. package/cdn-versioned/components/input/input.d.ts +1 -1
  108. package/cdn-versioned/components/link/link.d.ts +1 -1
  109. package/cdn-versioned/components/loader/loader.d.ts +1 -1
  110. package/cdn-versioned/components/map-marker/map-marker.d.ts +1 -1
  111. package/cdn-versioned/components/menu/menu.d.ts +3 -1
  112. package/cdn-versioned/components/menu/menu.js +1 -1
  113. package/cdn-versioned/components/menu-item/menu-item.d.ts +1 -1
  114. package/cdn-versioned/components/menu-item/menu-item.js +1 -1
  115. package/cdn-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  116. package/cdn-versioned/components/notification/notification.d.ts +1 -1
  117. package/cdn-versioned/components/optgroup/optgroup.d.ts +1 -1
  118. package/cdn-versioned/components/option/option.d.ts +1 -1
  119. package/cdn-versioned/components/popup/popup.d.ts +1 -1
  120. package/cdn-versioned/components/quickfact/quickfact.d.ts +1 -1
  121. package/cdn-versioned/components/radio/radio.d.ts +1 -1
  122. package/cdn-versioned/components/radio-button/radio-button.d.ts +1 -1
  123. package/cdn-versioned/components/radio-group/radio-group.d.ts +1 -1
  124. package/cdn-versioned/components/range/range.d.ts +1 -1
  125. package/cdn-versioned/components/range-tick/range-tick.d.ts +1 -1
  126. package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
  127. package/cdn-versioned/components/select/select.d.ts +1 -1
  128. package/cdn-versioned/components/select/select.js +1 -1
  129. package/cdn-versioned/components/skeleton/skeleton.d.ts +1 -1
  130. package/cdn-versioned/components/spinner/spinner.d.ts +1 -1
  131. package/cdn-versioned/components/step/step.d.ts +1 -1
  132. package/cdn-versioned/components/step-group/step-group.d.ts +1 -1
  133. package/cdn-versioned/components/switch/switch.d.ts +1 -1
  134. package/cdn-versioned/components/tab/tab.d.ts +1 -1
  135. package/cdn-versioned/components/tab-group/tab-group.d.ts +1 -1
  136. package/cdn-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  137. package/cdn-versioned/components/tag/tag.d.ts +1 -1
  138. package/cdn-versioned/components/textarea/textarea.d.ts +1 -1
  139. package/cdn-versioned/components/theme-listener/theme-listener.d.ts +1 -1
  140. package/cdn-versioned/components/tooltip/tooltip.d.ts +1 -1
  141. package/cdn-versioned/components/video/video.d.ts +1 -1
  142. package/cdn-versioned/custom-elements.json +244 -244
  143. package/cdn-versioned/internal/form.js +3 -3
  144. package/cdn-versioned/solid-components.bundle.js +80 -80
  145. package/cdn-versioned/solid-components.css +2 -2
  146. package/cdn-versioned/solid-components.iife.js +80 -80
  147. package/cdn-versioned/solid-components.js +1 -1
  148. package/cdn-versioned/vscode.html-custom-data.json +94 -94
  149. package/cdn-versioned/web-types.json +157 -157
  150. package/dist/chunks/{chunk.N3I674PE.js → chunk.D4UC3BVQ.js} +8 -1
  151. package/dist/chunks/{chunk.XC7QKBQE.js → chunk.LZVVDTSP.js} +6 -1
  152. package/dist/chunks/{chunk.TKDFONFB.js → chunk.SVYFJMYF.js} +17 -1
  153. package/dist/chunks/{chunk.DZEAXPRA.js → chunk.TUMONDN4.js} +1 -1
  154. package/dist/components/breadcrumb/breadcrumb.js +1 -1
  155. package/dist/components/dropdown/dropdown.js +1 -1
  156. package/dist/components/menu/menu.d.ts +2 -0
  157. package/dist/components/menu/menu.js +1 -1
  158. package/dist/components/menu-item/menu-item.js +1 -1
  159. package/dist/components/select/select.js +1 -1
  160. package/dist/custom-elements.json +1 -1
  161. package/dist/solid-components.js +4 -4
  162. package/dist/web-types.json +1 -1
  163. package/dist-versioned/chunks/chunk.22PWID5B.js +2 -2
  164. package/dist-versioned/chunks/chunk.2EWH2DC2.js +1 -1
  165. package/dist-versioned/chunks/chunk.2HTII44Q.js +4 -4
  166. package/dist-versioned/chunks/chunk.2VPWVTT6.js +4 -4
  167. package/dist-versioned/chunks/chunk.3EJL5IKL.js +1 -1
  168. package/dist-versioned/chunks/chunk.3PTRIEGP.js +2 -2
  169. package/dist-versioned/chunks/chunk.4UT3FCHQ.js +2 -2
  170. package/dist-versioned/chunks/chunk.5XWO3USG.js +3 -3
  171. package/dist-versioned/chunks/chunk.75WDCMIC.js +24 -24
  172. package/dist-versioned/chunks/chunk.ASEJW6QN.js +5 -5
  173. package/dist-versioned/chunks/chunk.AUSBWPVD.js +7 -7
  174. package/dist-versioned/chunks/chunk.AZPOFDJP.js +4 -4
  175. package/dist-versioned/chunks/chunk.BBLAIT57.js +2 -2
  176. package/dist-versioned/chunks/chunk.BSP6J6R2.js +2 -2
  177. package/dist-versioned/chunks/chunk.BTNS6ZNO.js +4 -4
  178. package/dist-versioned/chunks/chunk.C3WIBDGG.js +3 -3
  179. package/dist-versioned/chunks/{chunk.N3I674PE.js → chunk.D4UC3BVQ.js} +20 -13
  180. package/dist-versioned/chunks/chunk.D7CJJHHA.js +1 -1
  181. package/dist-versioned/chunks/chunk.DCHRUIDY.js +1 -1
  182. package/dist-versioned/chunks/chunk.DCOB6WLB.js +3 -3
  183. package/dist-versioned/chunks/chunk.DFHY67LW.js +5 -5
  184. package/dist-versioned/chunks/chunk.DTTVI7KT.js +11 -11
  185. package/dist-versioned/chunks/chunk.DXDDB6AB.js +1 -1
  186. package/dist-versioned/chunks/chunk.FKFGVTXH.js +3 -3
  187. package/dist-versioned/chunks/chunk.FSUOT4WC.js +12 -12
  188. package/dist-versioned/chunks/chunk.IJIPMNT2.js +3 -3
  189. package/dist-versioned/chunks/chunk.IYXPHPNO.js +1 -1
  190. package/dist-versioned/chunks/chunk.JGRI4R23.js +1 -1
  191. package/dist-versioned/chunks/chunk.K66JHYHC.js +2 -2
  192. package/dist-versioned/chunks/chunk.KEJFWGZI.js +4 -4
  193. package/dist-versioned/chunks/chunk.L3OEOSPQ.js +1 -1
  194. package/dist-versioned/chunks/chunk.L6ZE3RXX.js +14 -14
  195. package/dist-versioned/chunks/chunk.LBDV5GNR.js +4 -4
  196. package/dist-versioned/chunks/{chunk.XC7QKBQE.js → chunk.LZVVDTSP.js} +32 -27
  197. package/dist-versioned/chunks/chunk.M2D3WWF3.js +8 -8
  198. package/dist-versioned/chunks/chunk.MH7JHBWP.js +2 -2
  199. package/dist-versioned/chunks/chunk.MLRNCOWA.js +3 -3
  200. package/dist-versioned/chunks/chunk.NEUULRS7.js +5 -5
  201. package/dist-versioned/chunks/chunk.NW7LJJS2.js +8 -8
  202. package/dist-versioned/chunks/chunk.OJXVBFUH.js +5 -5
  203. package/dist-versioned/chunks/chunk.P5FGSFP3.js +1 -1
  204. package/dist-versioned/chunks/chunk.PBXAIJQ4.js +5 -5
  205. package/dist-versioned/chunks/chunk.Q7ZMX7IB.js +3 -3
  206. package/dist-versioned/chunks/chunk.QM4E25CD.js +5 -5
  207. package/dist-versioned/chunks/chunk.R56JDQAF.js +2 -2
  208. package/dist-versioned/chunks/chunk.RFDAZXJG.js +3 -3
  209. package/dist-versioned/chunks/chunk.SCWR4Q4K.js +10 -10
  210. package/dist-versioned/chunks/chunk.SQYISG5I.js +4 -4
  211. package/dist-versioned/chunks/{chunk.TKDFONFB.js → chunk.SVYFJMYF.js} +20 -4
  212. package/dist-versioned/chunks/chunk.T46LX45D.js +6 -6
  213. package/dist-versioned/chunks/chunk.TNJNUASM.js +1 -1
  214. package/dist-versioned/chunks/{chunk.DZEAXPRA.js → chunk.TUMONDN4.js} +4 -4
  215. package/dist-versioned/chunks/chunk.TVWV4PUH.js +2 -2
  216. package/dist-versioned/chunks/chunk.U2BN2DBY.js +4 -4
  217. package/dist-versioned/chunks/chunk.UDPSGKZL.js +4 -4
  218. package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
  219. package/dist-versioned/chunks/chunk.UPCVQSXM.js +3 -3
  220. package/dist-versioned/chunks/chunk.UWQPJU3Q.js +3 -3
  221. package/dist-versioned/chunks/chunk.XALPLS2Y.js +6 -6
  222. package/dist-versioned/chunks/chunk.XV2UO6TF.js +2 -2
  223. package/dist-versioned/chunks/chunk.YATRFNET.js +28 -28
  224. package/dist-versioned/chunks/chunk.YFRD2UEO.js +8 -8
  225. package/dist-versioned/chunks/chunk.YNBR5ZDU.js +4 -4
  226. package/dist-versioned/chunks/chunk.ZMEUQIVY.js +9 -9
  227. package/dist-versioned/components/accordion/accordion.d.ts +1 -1
  228. package/dist-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  229. package/dist-versioned/components/animation/animation.d.ts +1 -1
  230. package/dist-versioned/components/audio/audio.d.ts +1 -1
  231. package/dist-versioned/components/badge/badge.d.ts +1 -1
  232. package/dist-versioned/components/brandshape/brandshape.d.ts +1 -1
  233. package/dist-versioned/components/breadcrumb/breadcrumb.d.ts +1 -1
  234. package/dist-versioned/components/breadcrumb/breadcrumb.js +1 -1
  235. package/dist-versioned/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
  236. package/dist-versioned/components/button/button.d.ts +1 -1
  237. package/dist-versioned/components/button-group/button-group.d.ts +1 -1
  238. package/dist-versioned/components/carousel/carousel.d.ts +1 -1
  239. package/dist-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  240. package/dist-versioned/components/checkbox/checkbox.d.ts +1 -1
  241. package/dist-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
  242. package/dist-versioned/components/combobox/combobox.d.ts +1 -1
  243. package/dist-versioned/components/datepicker/datepicker.d.ts +1 -1
  244. package/dist-versioned/components/dialog/dialog.d.ts +1 -1
  245. package/dist-versioned/components/divider/divider.d.ts +1 -1
  246. package/dist-versioned/components/drawer/drawer.d.ts +1 -1
  247. package/dist-versioned/components/dropdown/dropdown.d.ts +1 -1
  248. package/dist-versioned/components/dropdown/dropdown.js +1 -1
  249. package/dist-versioned/components/expandable/expandable.d.ts +1 -1
  250. package/dist-versioned/components/flipcard/flipcard.d.ts +1 -1
  251. package/dist-versioned/components/header/header.d.ts +1 -1
  252. package/dist-versioned/components/icon/icon.d.ts +1 -1
  253. package/dist-versioned/components/include/include.d.ts +1 -1
  254. package/dist-versioned/components/input/input.d.ts +1 -1
  255. package/dist-versioned/components/link/link.d.ts +1 -1
  256. package/dist-versioned/components/loader/loader.d.ts +1 -1
  257. package/dist-versioned/components/map-marker/map-marker.d.ts +1 -1
  258. package/dist-versioned/components/menu/menu.d.ts +3 -1
  259. package/dist-versioned/components/menu/menu.js +1 -1
  260. package/dist-versioned/components/menu-item/menu-item.d.ts +1 -1
  261. package/dist-versioned/components/menu-item/menu-item.js +1 -1
  262. package/dist-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  263. package/dist-versioned/components/notification/notification.d.ts +1 -1
  264. package/dist-versioned/components/optgroup/optgroup.d.ts +1 -1
  265. package/dist-versioned/components/option/option.d.ts +1 -1
  266. package/dist-versioned/components/popup/popup.d.ts +1 -1
  267. package/dist-versioned/components/quickfact/quickfact.d.ts +1 -1
  268. package/dist-versioned/components/radio/radio.d.ts +1 -1
  269. package/dist-versioned/components/radio-button/radio-button.d.ts +1 -1
  270. package/dist-versioned/components/radio-group/radio-group.d.ts +1 -1
  271. package/dist-versioned/components/range/range.d.ts +1 -1
  272. package/dist-versioned/components/range-tick/range-tick.d.ts +1 -1
  273. package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
  274. package/dist-versioned/components/select/select.d.ts +1 -1
  275. package/dist-versioned/components/select/select.js +1 -1
  276. package/dist-versioned/components/skeleton/skeleton.d.ts +1 -1
  277. package/dist-versioned/components/spinner/spinner.d.ts +1 -1
  278. package/dist-versioned/components/step/step.d.ts +1 -1
  279. package/dist-versioned/components/step-group/step-group.d.ts +1 -1
  280. package/dist-versioned/components/switch/switch.d.ts +1 -1
  281. package/dist-versioned/components/tab/tab.d.ts +1 -1
  282. package/dist-versioned/components/tab-group/tab-group.d.ts +1 -1
  283. package/dist-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  284. package/dist-versioned/components/tag/tag.d.ts +1 -1
  285. package/dist-versioned/components/textarea/textarea.d.ts +1 -1
  286. package/dist-versioned/components/theme-listener/theme-listener.d.ts +1 -1
  287. package/dist-versioned/components/tooltip/tooltip.d.ts +1 -1
  288. package/dist-versioned/components/video/video.d.ts +1 -1
  289. package/dist-versioned/custom-elements.json +244 -244
  290. package/dist-versioned/internal/form.js +3 -3
  291. package/dist-versioned/solid-components.css +2 -2
  292. package/dist-versioned/solid-components.js +4 -4
  293. package/dist-versioned/vscode.html-custom-data.json +94 -94
  294. package/dist-versioned/web-types.json +157 -157
  295. package/package.json +2 -2
  296. package/cdn/chunks/chunk.H7S7D4YV.js +0 -2
  297. package/cdn/chunks/chunk.RKKB23ZF.js +0 -4
  298. package/cdn-versioned/chunks/chunk.H7S7D4YV.js +0 -2
  299. 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]")],ie.prototype,"containerElem",2),a([d({type:String,reflect:!0})],ie.prototype,"variant",2),a([d({type:Array})],ie.prototype,"shapes",2),a([L()],ie.prototype,"componentBreakpoint",2),ie=a([k("sd-brandshape")],ie);var he=Math.min,Pt=Math.max,Ki=Math.round,ji=Math.floor,re=s=>({x:s,y:s}),Wl={left:"right",right:"left",bottom:"top",top:"bottom"},Yl={start:"end",end:"start"};function Tr(s,i,t){return Pt(s,he(i,t))}function oi(s,i){return typeof s=="function"?s(i):s}function ke(s){return s.split("-")[0]}function ni(s){return s.split("-")[1]}function vs(s){return s==="x"?"y":"x"}function Lr(s){return s==="y"?"height":"width"}var Xl=new Set(["top","bottom"]);function ue(s){return Xl.has(ke(s))?"y":"x"}function zr(s){return vs(ue(s))}function Sa(s,i,t){t===void 0&&(t=!1);let e=ni(s),r=zr(s),o=Lr(r),n=r==="x"?e===(t?"end":"start")?"right":"left":e==="start"?"bottom":"top";return i.reference[o]>i.floating[o]&&(n=qi(n)),[n,qi(n)]}function Da(s){let i=qi(s);return[$r(s),i,$r(i)]}function $r(s){return s.replace(/start|end/g,i=>Yl[i])}var za=["left","right"],Ma=["right","left"],Zl=["top","bottom"],Ql=["bottom","top"];function Gl(s,i,t){switch(s){case"top":case"bottom":return t?i?Ma:za:i?za:Ma;case"left":case"right":return i?Zl:Ql;default:return[]}}function Aa(s,i,t,e){let r=ni(s),o=Gl(ke(s),t==="start",e);return r&&(o=o.map(n=>n+"-"+r),i&&(o=o.concat(o.map($r)))),o}function qi(s){return s.replace(/left|right|bottom|top/g,i=>Wl[i])}function Jl(s){return B({top:0,right:0,bottom:0,left:0},s)}function ys(s){return typeof s!="number"?Jl(s):{top:s,right:s,bottom:s,left:s}}function li(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 Oa(s,i,t){let{reference:e,floating:r}=s,o=ue(i),n=zr(i),l=Lr(n),h=ke(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(ni(i)){case"start":b[n]-=y*(t&&u?-1:1);break;case"end":b[n]+=y*(t&&u?-1:1);break}return b}var _a=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}=Oa(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=vt(B({},b),{[z]:B(B({},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}=Oa(u,y,h)),T=-1)}return{x:m,y:f,placement:y,strategy:r,middlewareData:b}};async function Mr(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}=oi(i,s),w=ys(b),z=l[y?f==="floating"?"reference":"floating":f],M=li(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=li(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 Ia=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}=oi(s,i)||{};if(u==null)return{};let f=ys(m),y={x:t,y:e},b=zr(r),w=Lr(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 Ct=F/2-D/2,wt=X/2-T[w]/2-1,it=he(f[M],wt),Ot=he(f[_],wt),tt=it,$t=X-T[w]-Ot,mt=X/2-T[w]/2+Ct,Gt=Tr(tt,mt,$t),Ke=!h.arrow&&ni(r)!=null&&mt!==Gt&&o.reference[w]/2-(mt<tt?it:Ot)-T[w]/2<0,be=Ke?mt<tt?mt-tt:mt-$t:0;return{[b]:y[b]+be,data:B({[b]:Gt,centerOffset:mt-Gt-be},Ke&&{alignmentOffset:be}),reset:Ke}}});var Pa=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=oi(s,i),{mainAxis:m=!0,crossAxis:f=!0,fallbackPlacements:y,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:T=!0}=mt,z=sr(mt,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((t=o.arrow)!=null&&t.alignmentOffset)return{};let M=ke(r),_=ue(l),A=ke(l)===l,F=await(h.isRTL==null?void 0:h.isRTL(u.floating)),D=y||(A||!T?[qi(l)]:Da(l)),j=w!=="none";!y&&j&&D.push(...Aa(l,T,w,F));let X=[l,...D],Ct=await Mr(i,z),wt=[],it=((e=o.flip)==null?void 0:e.overflows)||[];if(m&&wt.push(Ct[M]),f){let Gt=Sa(r,n,F);wt.push(Ct[Gt[0]],Ct[Gt[1]])}if(it=[...it,{placement:r,overflows:wt}],!wt.every(Gt=>Gt<=0)){var Ot,tt;let Gt=(((Ot=o.flip)==null?void 0:Ot.index)||0)+1,Ke=X[Gt];if(Ke&&(!(f==="alignment"?_!==ue(Ke):!1)||it.every(Jt=>ue(Jt.placement)===_?Jt.overflows[0]>0:!0)))return{data:{index:Gt,overflows:it},reset:{placement:Ke}};let be=(tt=it.filter(je=>je.overflows[0]<=0).sort((je,Jt)=>je.overflows[1]-Jt.overflows[1])[0])==null?void 0:tt.placement;if(!be)switch(b){case"bestFit":{var $t;let je=($t=it.filter(Jt=>{if(j){let De=ue(Jt.placement);return De===_||De==="y"}return!0}).map(Jt=>[Jt.placement,Jt.overflows.filter(De=>De>0).reduce((De,zo)=>De+zo,0)]).sort((Jt,De)=>Jt[1]-De[1])[0])==null?void 0:$t[0];je&&(be=je);break}case"initialPlacement":be=l;break}if(r!==be)return{reset:{placement:be}}}return{}}}};var td=new Set(["left","top"]);async function ed(s,i){let{placement:t,platform:e,elements:r}=s,o=await(e.isRTL==null?void 0:e.isRTL(r.floating)),n=ke(t),l=ni(t),h=ue(t)==="y",u=td.has(n)?-1:1,m=o&&h?-1:1,f=oi(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 Ha=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 ed(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:vt(B({},h),{placement:n})}}}},Va=function(s){return s===void 0&&(s={}),{name:"shift",options:s,async fn(i){let{x:t,y:e,placement:r}=i,z=oi(s,i),{mainAxis:o=!0,crossAxis:n=!1,limiter:l={fn:M=>{let{x:_,y:A}=M;return{x:_,y:A}}}}=z,h=sr(z,["mainAxis","crossAxis","limiter"]),u={x:t,y:e},m=await Mr(i,h),f=ue(ke(r)),y=vs(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=Tr(A,b,F)}if(n){let M=f==="y"?"top":"left",_=f==="y"?"bottom":"right",A=w+m[M],F=w-m[_];w=Tr(A,w,F)}let T=l.fn(vt(B({},i),{[y]:b,[f]:w}));return vt(B({},T),{data:{x:T.x-t,y:T.y-e,enabled:{[y]:o,[f]:n}}})}}};var Fa=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,it=oi(s,i),{apply:h=()=>{}}=it,u=sr(it,["apply"]),m=await Mr(i,u),f=ke(r),y=ni(r),b=ue(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=he(T-m[z],_),D=he(w-m[M],A),j=!i.middlewareData.shift,X=F,Ct=D;if((t=i.middlewareData.shift)!=null&&t.enabled.x&&(Ct=A),(e=i.middlewareData.shift)!=null&&e.enabled.y&&(X=_),j&&!y){let Ot=Pt(m.left,0),tt=Pt(m.right,0),$t=Pt(m.top,0),mt=Pt(m.bottom,0);b?Ct=w-2*(Ot!==0||tt!==0?Ot+tt:Pt(m.left,m.right)):X=T-2*($t!==0||mt!==0?$t+mt:Pt(m.top,m.bottom))}await h(vt(B({},i),{availableWidth:Ct,availableHeight:X}));let wt=await n.getDimensions(l.floating);return w!==wt.width||T!==wt.height?{reset:{rects:!0}}:{}}}};function Sr(){return typeof window!="undefined"}function di(s){return Ba(s)?(s.nodeName||"").toLowerCase():"#document"}function Vt(s){var i;return(s==null||(i=s.ownerDocument)==null?void 0:i.defaultView)||window}function se(s){var i;return(i=(Ba(s)?s.ownerDocument:s.document)||window.document)==null?void 0:i.documentElement}function Ba(s){return Sr()?s instanceof Node||s instanceof Vt(s).Node:!1}function Xt(s){return Sr()?s instanceof Element||s instanceof Vt(s).Element:!1}function ae(s){return Sr()?s instanceof HTMLElement||s instanceof Vt(s).HTMLElement:!1}function Ra(s){return!Sr()||typeof ShadowRoot=="undefined"?!1:s instanceof ShadowRoot||s instanceof Vt(s).ShadowRoot}var id=new Set(["inline","contents"]);function ki(s){let{overflow:i,overflowX:t,overflowY:e,display:r}=Zt(s);return/auto|scroll|overlay|hidden|clip/.test(i+e+t)&&!id.has(r)}var rd=new Set(["table","td","th"]);function Na(s){return rd.has(di(s))}var sd=[":popover-open",":modal"];function Wi(s){return sd.some(i=>{try{return s.matches(i)}catch(t){return!1}})}var ad=["transform","translate","scale","rotate","perspective"],od=["transform","translate","scale","rotate","perspective","filter"],nd=["paint","layout","strict","content"];function Dr(s){let i=Ar(),t=Xt(s)?Zt(s):s;return ad.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)||od.some(e=>(t.willChange||"").includes(e))||nd.some(e=>(t.contain||"").includes(e))}function Ua(s){let i=Ee(s);for(;ae(i)&&!ci(i);){if(Dr(i))return i;if(Wi(i))return null;i=Ee(i)}return null}function Ar(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var ld=new Set(["html","body","#document"]);function ci(s){return ld.has(di(s))}function Zt(s){return Vt(s).getComputedStyle(s)}function Yi(s){return Xt(s)?{scrollLeft:s.scrollLeft,scrollTop:s.scrollTop}:{scrollLeft:s.scrollX,scrollTop:s.scrollY}}function Ee(s){if(di(s)==="html")return s;let i=s.assignedSlot||s.parentNode||Ra(s)&&s.host||se(s);return Ra(i)?i.host:i}function qa(s){let i=Ee(s);return ci(i)?s.ownerDocument?s.ownerDocument.body:s.body:ae(i)&&ki(i)?i:qa(i)}function xi(s,i,t){var e;i===void 0&&(i=[]),t===void 0&&(t=!0);let r=qa(s),o=r===((e=s.ownerDocument)==null?void 0:e.body),n=Vt(r);if(o){let l=Or(n);return i.concat(n,n.visualViewport||[],ki(r)?r:[],l&&t?xi(l):[])}return i.concat(r,xi(r,[],t))}function Or(s){return s.parent&&Object.getPrototypeOf(s.parent)?s.frameElement:null}function Ya(s){let i=Zt(s),t=parseFloat(i.width)||0,e=parseFloat(i.height)||0,r=ae(s),o=r?s.offsetWidth:t,n=r?s.offsetHeight:e,l=Ki(t)!==o||Ki(e)!==n;return l&&(t=o,e=n),{width:t,height:e,$:l}}function xs(s){return Xt(s)?s:s.contextElement}function Ei(s){let i=xs(s);if(!ae(i))return re(1);let t=i.getBoundingClientRect(),{width:e,height:r,$:o}=Ya(i),n=(o?Ki(t.width):t.width)/e,l=(o?Ki(t.height):t.height)/r;return(!n||!Number.isFinite(n))&&(n=1),(!l||!Number.isFinite(l))&&(l=1),{x:n,y:l}}var dd=re(0);function Xa(s){let i=Vt(s);return!Ar()||!i.visualViewport?dd:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function cd(s,i,t){return i===void 0&&(i=!1),!t||i&&t!==Vt(s)?!1:i}function hi(s,i,t,e){i===void 0&&(i=!1),t===void 0&&(t=!1);let r=s.getBoundingClientRect(),o=xs(s),n=re(1);i&&(e?Xt(e)&&(n=Ei(e)):n=Ei(s));let l=cd(o,t,e)?Xa(o):re(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=Vt(o),b=e&&Xt(e)?Vt(e):e,w=y,T=Or(w);for(;T&&e&&b!==w;){let z=Ei(T),M=T.getBoundingClientRect(),_=Zt(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=Vt(T),T=Or(w)}}return li({width:m,height:f,x:h,y:u})}function _r(s,i){let t=Yi(s).scrollLeft;return i?i.left+t:hi(se(s)).left+t}function Za(s,i){let t=s.getBoundingClientRect(),e=t.left+i.scrollLeft-_r(s,t),r=t.top+i.scrollTop;return{x:e,y:r}}function hd(s){let{elements:i,rect:t,offsetParent:e,strategy:r}=s,o=r==="fixed",n=se(e),l=i?Wi(i.floating):!1;if(e===n||l&&o)return t;let h={scrollLeft:0,scrollTop:0},u=re(1),m=re(0),f=ae(e);if((f||!f&&!o)&&((di(e)!=="body"||ki(n))&&(h=Yi(e)),ae(e))){let b=hi(e);u=Ei(e),m.x=b.x+e.clientLeft,m.y=b.y+e.clientTop}let y=n&&!f&&!o?Za(n,h):re(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 ud(s){return Array.from(s.getClientRects())}function pd(s){let i=se(s),t=Yi(s),e=s.ownerDocument.body,r=Pt(i.scrollWidth,i.clientWidth,e.scrollWidth,e.clientWidth),o=Pt(i.scrollHeight,i.clientHeight,e.scrollHeight,e.clientHeight),n=-t.scrollLeft+_r(s),l=-t.scrollTop;return Zt(e).direction==="rtl"&&(n+=Pt(i.clientWidth,e.clientWidth)-r),{width:r,height:o,x:n,y:l}}var Ka=25;function md(s,i){let t=Vt(s),e=se(s),r=t.visualViewport,o=e.clientWidth,n=e.clientHeight,l=0,h=0;if(r){o=r.width,n=r.height;let m=Ar();(!m||m&&i==="fixed")&&(l=r.offsetLeft,h=r.offsetTop)}let u=_r(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<=Ka&&(o-=w)}else u<=Ka&&(o+=u);return{width:o,height:n,x:l,y:h}}var fd=new Set(["absolute","fixed"]);function gd(s,i){let t=hi(s,!0,i==="fixed"),e=t.top+s.clientTop,r=t.left+s.clientLeft,o=ae(s)?Ei(s):re(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 ja(s,i,t){let e;if(i==="viewport")e=md(s,t);else if(i==="document")e=pd(se(s));else if(Xt(i))e=gd(i,t);else{let r=Xa(s);e={x:i.x-r.x,y:i.y-r.y,width:i.width,height:i.height}}return li(e)}function Qa(s,i){let t=Ee(s);return t===i||!Xt(t)||ci(t)?!1:Zt(t).position==="fixed"||Qa(t,i)}function bd(s,i){let t=i.get(s);if(t)return t;let e=xi(s,[],!1).filter(l=>Xt(l)&&di(l)!=="body"),r=null,o=Zt(s).position==="fixed",n=o?Ee(s):s;for(;Xt(n)&&!ci(n);){let l=Zt(n),h=Dr(n);!h&&l.position==="fixed"&&(r=null),(o?!h&&!r:!h&&l.position==="static"&&!!r&&fd.has(r.position)||ki(n)&&!h&&Qa(s,n))?e=e.filter(m=>m!==n):r=l,n=Ee(n)}return i.set(s,e),e}function vd(s){let{element:i,boundary:t,rootBoundary:e,strategy:r}=s,n=[...t==="clippingAncestors"?Wi(i)?[]:bd(i,this._c):[].concat(t),e],l=n[0],h=n.reduce((u,m)=>{let f=ja(i,m,r);return u.top=Pt(f.top,u.top),u.right=he(f.right,u.right),u.bottom=he(f.bottom,u.bottom),u.left=Pt(f.left,u.left),u},ja(i,l,r));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function yd(s){let{width:i,height:t}=Ya(s);return{width:i,height:t}}function wd(s,i,t){let e=ae(i),r=se(i),o=t==="fixed",n=hi(s,!0,o,i),l={scrollLeft:0,scrollTop:0},h=re(0);function u(){h.x=_r(r)}if(e||!e&&!o)if((di(i)!=="body"||ki(r))&&(l=Yi(i)),e){let b=hi(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?Za(r,l):re(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 ws(s){return Zt(s).position==="static"}function Wa(s,i){if(!ae(s)||Zt(s).position==="fixed")return null;if(i)return i(s);let t=s.offsetParent;return se(s)===t&&(t=t.ownerDocument.body),t}function Ga(s,i){let t=Vt(s);if(Wi(s))return t;if(!ae(s)){let r=Ee(s);for(;r&&!ci(r);){if(Xt(r)&&!ws(r))return r;r=Ee(r)}return t}let e=Wa(s,i);for(;e&&Na(e)&&ws(e);)e=Wa(e,i);return e&&ci(e)&&ws(e)&&!Dr(e)?t:e||Ua(s)||t}var xd=async function(s){let i=this.getOffsetParent||Ga,t=this.getDimensions,e=await t(s.floating);return{reference:wd(s.reference,await i(s.floating),s.strategy),floating:{x:0,y:0,width:e.width,height:e.height}}};function kd(s){return Zt(s).direction==="rtl"}var Ed={convertOffsetParentRelativeRectToViewportRelativeRect:hd,getDocumentElement:se,getClippingRect:vd,getOffsetParent:Ga,getElementRects:xd,getClientRects:ud,getDimensions:yd,getScale:Ei,isElement:Xt,isRTL:kd};function Ja(s,i){return s.x===i.x&&s.y===i.y&&s.width===i.width&&s.height===i.height}function Cd(s,i){let t=null,e,r=se(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=ji(f),T=ji(r.clientWidth-(m+y)),z=ji(r.clientHeight-(f+b)),M=ji(m),A={rootMargin:-w+"px "+-T+"px "+-z+"px "+-M+"px",threshold:Pt(0,he(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&&!Ja(u,s.getBoundingClientRect())&&n(),F=!1}try{t=new IntersectionObserver(D,vt(B({},A),{root:r.ownerDocument}))}catch(j){t=new IntersectionObserver(D,A)}t.observe(s)}return n(!0),o}function to(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=xs(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?Cd(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?hi(s):null;h&&z();function z(){let M=hi(s);T&&!Ja(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 eo=Ha;var io=Va,ro=Pa,ks=Fa;var so=Ia;var ao=(s,i,t)=>{let e=new Map,r=B({platform:Ed},t),o=vt(B({},r.platform),{_c:e});return _a(s,i,vt(B({},r),{platform:o}))};var G=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=to(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=[eo({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?t.push(ks({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(ro({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:this.flipFallbackStrategy==="best-fit"?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&t.push(io({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?t.push(ks({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(so({element:this.arrowEl,padding:this.arrowPadding})),ao(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>`}};G.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"]')],G.prototype,"popup",2),a([v('[part="arrow"]')],G.prototype,"arrowEl",2),a([d({reflect:!0})],G.prototype,"anchor",2),a([d({type:Boolean,reflect:!0})],G.prototype,"active",2),a([d({type:String,reflect:!0})],G.prototype,"placement",2),a([d({type:String,reflect:!0})],G.prototype,"strategy",2),a([d({type:Number,reflect:!0})],G.prototype,"distance",2),a([d({type:Number,reflect:!0})],G.prototype,"skidding",2),a([d({type:Boolean,reflect:!0})],G.prototype,"arrow",2),a([d({type:String,attribute:"arrow-placement",reflect:!0})],G.prototype,"arrowPlacement",2),a([d({attribute:"arrow-padding",type:Number,reflect:!0})],G.prototype,"arrowPadding",2),a([d({type:Boolean,reflect:!0})],G.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(" ")}})],G.prototype,"flipFallbackPlacements",2),a([d({type:String,attribute:"flip-fallback-strategy"})],G.prototype,"flipFallbackStrategy",2),a([d({type:Object})],G.prototype,"flipBoundary",2),a([d({attribute:"flip-padding",type:Number})],G.prototype,"flipPadding",2),a([d({type:Boolean})],G.prototype,"shift",2),a([d({type:Object})],G.prototype,"shiftBoundary",2),a([d({attribute:"shift-padding",type:Number})],G.prototype,"shiftPadding",2),a([d({type:String,attribute:"auto-size"})],G.prototype,"autoSize",2),a([d()],G.prototype,"sync",2),a([d({type:Object})],G.prototype,"autoSizeBoundary",2),a([d({attribute:"auto-size-padding",type:Number})],G.prototype,"autoSizePadding",2),G=a([k("sd-popup")],G);function oo(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 ht=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=>Cr(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=ii();(!r||!this.containingElement||oo(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;ee(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,Z(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,Z(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"]')],G.prototype,"popup",2),a([v('[part="arrow"]')],G.prototype,"arrowEl",2),a([d({reflect:!0})],G.prototype,"anchor",2),a([d({type:Boolean,reflect:!0})],G.prototype,"active",2),a([d({type:String,reflect:!0})],G.prototype,"placement",2),a([d({type:String,reflect:!0})],G.prototype,"strategy",2),a([d({type:Number,reflect:!0})],G.prototype,"distance",2),a([d({type:Number,reflect:!0})],G.prototype,"skidding",2),a([d({type:Boolean,reflect:!0})],G.prototype,"arrow",2),a([d({type:String,attribute:"arrow-placement",reflect:!0})],G.prototype,"arrowPlacement",2),a([d({attribute:"arrow-padding",type:Number,reflect:!0})],G.prototype,"arrowPadding",2),a([d({type:Boolean,reflect:!0})],G.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(" ")}})],G.prototype,"flipFallbackPlacements",2),a([d({type:String,attribute:"flip-fallback-strategy"})],G.prototype,"flipFallbackStrategy",2),a([d({type:Object})],G.prototype,"flipBoundary",2),a([d({attribute:"flip-padding",type:Number})],G.prototype,"flipPadding",2),a([d({type:Boolean})],G.prototype,"shift",2),a([d({type:Object})],G.prototype,"shiftBoundary",2),a([d({attribute:"shift-padding",type:Number})],G.prototype,"shiftPadding",2),a([d({type:String,attribute:"auto-size"})],G.prototype,"autoSize",2),a([d()],G.prototype,"sync",2),a([d({type:Object})],G.prototype,"autoSizeBoundary",2),a([d({attribute:"auto-size-padding",type:Number})],G.prototype,"autoSizePadding",2),G=a([k("sd-popup")],G);function oo(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 ht=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=>Cr(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=ii();(!r||!this.containingElement||oo(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;ee(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,Z(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,Z(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>`}};ht.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")],ht.prototype,"popup",2),a([v("[part=trigger]")],ht.prototype,"trigger",2),a([v("[part=panel]")],ht.prototype,"panel",2),a([d({type:Boolean,reflect:!0})],ht.prototype,"open",2),a([d({type:Boolean,reflect:!0})],ht.prototype,"rounded",2),a([d({type:String,reflect:!0})],ht.prototype,"placement",2),a([d({type:Boolean,reflect:!0})],ht.prototype,"disabled",2),a([d({attribute:"stay-open-on-select",type:Boolean,reflect:!0})],ht.prototype,"stayOpenOnSelect",2),a([d({type:Object})],ht.prototype,"containingElement",2),a([d({type:Number,reflect:!0})],ht.prototype,"distance",2),a([d({type:Number,reflect:!0})],ht.prototype,"skidding",2),a([d({type:Boolean,reflect:!0,attribute:"no-auto-size"})],ht.prototype,"noAutoSize",2),a([d({type:Boolean,reflect:!0,attribute:"no-flip"})],ht.prototype,"noFlip",2),a([d({type:Boolean,reflect:!0})],ht.prototype,"hoist",2),a([E("open",{waitUntilFirstUpdate:!0})],ht.prototype,"handleOpenChange",1),ht=a([k("sd-dropdown")],ht);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 Ft=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>`}};Ft.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
@@ -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=yr(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}>`}};Ut.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})],Ut.prototype,"variant",2),a([d({type:String,reflect:!0})],Ut.prototype,"state",2),a([d({type:Boolean,reflect:!0})],Ut.prototype,"animated",2),a([d({type:Boolean,reflect:!0,attribute:"not-interactive"})],Ut.prototype,"notInteractive",2),a([d({type:String,reflect:!0})],Ut.prototype,"href",2),a([d({type:String,reflect:!0})],Ut.prototype,"target",2),a([d({reflect:!0})],Ut.prototype,"label",2),Ut=a([k("sd-map-marker")],Ut);var Ve=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>`}};Ve.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})],Ut.prototype,"variant",2),a([d({type:String,reflect:!0})],Ut.prototype,"state",2),a([d({type:Boolean,reflect:!0})],Ut.prototype,"animated",2),a([d({type:Boolean,reflect:!0,attribute:"not-interactive"})],Ut.prototype,"notInteractive",2),a([d({type:String,reflect:!0})],Ut.prototype,"href",2),a([d({type:String,reflect:!0})],Ut.prototype,"target",2),a([d({reflect:!0})],Ut.prototype,"label",2),Ut=a([k("sd-map-marker")],Ut);var Ve=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>`}};Ve.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")],Ve.prototype,"defaultSlot",2),Ve=a([k("sd-menu")],Ve);var vo=()=>new Ls,Ls=class{},Ts=new WeakMap,yo=te(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=Ts.get(t);e===void 0&&(e=new WeakMap,Ts.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=Ts.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 Rr=class{constructor(i,t){this.popupRef=vo();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 ${yo(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 Tt=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 Rr(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 $a(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>`}};Tt.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])")],Tt.prototype,"defaultSlot",2),a([v('part="base"')],Tt.prototype,"menuItem",2),a([d()],Tt.prototype,"type",2),a([d({type:Boolean,reflect:!0})],Tt.prototype,"checked",2),a([d({type:Boolean,reflect:!0})],Tt.prototype,"disabled",2),a([d()],Tt.prototype,"value",2),a([d({type:Boolean,reflect:!0})],Tt.prototype,"chevron",2),a([E("checked")],Tt.prototype,"handleCheckedChange",1),a([E("disabled")],Tt.prototype,"handleDisabledChange",1),a([E("type")],Tt.prototype,"handleTypeChange",1),Tt=a([k("sd-menu-item")],Tt);var ut=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}`}};ut.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])")],Tt.prototype,"defaultSlot",2),a([v('part="base"')],Tt.prototype,"menuItem",2),a([d()],Tt.prototype,"type",2),a([d({type:Boolean,reflect:!0})],Tt.prototype,"checked",2),a([d({type:Boolean,reflect:!0})],Tt.prototype,"disabled",2),a([d()],Tt.prototype,"value",2),a([d({type:Boolean,reflect:!0})],Tt.prototype,"chevron",2),a([E("checked")],Tt.prototype,"handleCheckedChange",1),a([E("disabled")],Tt.prototype,"handleDisabledChange",1),a([E("type")],Tt.prototype,"handleTypeChange",1),Tt=a([k("sd-menu-item")],Tt);var ut=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}`}};ut.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"]')],ut.prototype,"button",2),a([v("slot:not([name])")],ut.prototype,"defaultSlot",2),a([d({type:Boolean,reflect:!0})],ut.prototype,"vertical",2),a([d({type:String,reflect:!0})],ut.prototype,"size",2),a([d({reflect:!0})],ut.prototype,"href",2),a([d({type:String,reflect:!0})],ut.prototype,"target",2),a([d({reflect:!0})],ut.prototype,"download",2),a([d({type:Boolean,reflect:!0})],ut.prototype,"current",2),a([d({type:Boolean,reflect:!0})],ut.prototype,"disabled",2),a([d({type:Boolean,reflect:!0})],ut.prototype,"chevron",2),a([d({type:Boolean,reflect:!0})],ut.prototype,"relaxed",2),a([d({type:Boolean,reflect:!0})],ut.prototype,"divider",2),a([d({type:Boolean,reflect:!0})],ut.prototype,"indented",2),a([d({type:Boolean,reflect:!0})],ut.prototype,"open",2),a([d({type:Boolean,reflect:!0})],ut.prototype,"separated",2),ut=a([k("sd-navigation-item")],ut);var Br={"top-right":null,"bottom-center":null},_d=()=>{Object.entries(Br).forEach(([s])=>{let i=document.querySelector(`#sd-toast-stack--${s}`);if(i){i.setAttribute("role","region"),Br[s]=i;return}Br[s]=Object.assign(document.createElement("div"),{role:"region",id:`sd-toast-stack--${s}`,className:`sd-toast-stack sd-toast-stack--${s}`})})};_d();var kt=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 Br[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(bs(this.toastStack))}`,{dir:this.localize.dir()});await Promise.all([K(this.base,we(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(bs(this.toastStack))}`,{dir:this.localize.dir()});await Promise.all([K(this.base,we(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,Z(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,Z(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>`}};kt.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"]')],kt.prototype,"base",2),a([v('[part~="wrapper"]')],kt.prototype,"wrapper",2),a([v('[part~="close-button"]')],kt.prototype,"close",2),a([d({type:String,reflect:!0})],kt.prototype,"variant",2),a([d({type:Boolean,reflect:!0})],kt.prototype,"open",2),a([d({type:Boolean,reflect:!0})],kt.prototype,"closable",2),a([d({type:Number,reflect:!0})],kt.prototype,"duration",2),a([d({type:Boolean,reflect:!0,attribute:"duration-indicator"})],kt.prototype,"durationIndicator",2),a([d({type:String,reflect:!0,attribute:"toast-stack"})],kt.prototype,"toastStack",2),a([E("open",{waitUntilFirstUpdate:!0})],kt.prototype,"handleOpenChange",1),a([E("duration")],kt.prototype,"handleDurationChange",1),kt=a([k("sd-notification")],kt);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 ne=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>`}};ne.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])")],ne.prototype,"defaultSlot",2),a([d({reflect:!0,type:Boolean})],ne.prototype,"disabled",2),a([d({type:String,reflect:!0})],ne.prototype,"label",2),a([E("disabled",{waitUntilFirstUpdate:!0})],ne.prototype,"handleDisabledChange",1),ne=a([k("sd-optgroup")],ne);var yt=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>`}};yt.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
@@ -256,7 +256,7 @@ sd-button::part(base){display:flex;height:var(--sd-spacing-12);width:var(--sd-sp
256
256
  base:tag__base,
257
257
  content:tag__content,
258
258
  removable-indicator:tag__removable-indicator,
259
- " size="${this.size==="sm"?"sm":"lg"}" removable @keydown="${t=>this.handleTagMaxOptionsKeyDown(t)}" @sd-remove="${t=>this.handleTagRemove(t)}">${this.selectedOptions.length} ${this.localize.term("tagsSelected")}</sd-tag>`]}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}handleCurrentPlacement(t){let e=t.detail;e&&(this.currentPlacement=e)}handleUseTagsChange(){let t=this.getAllOptions();customElements.get("sd-option")&&t.forEach(e=>{e.checkbox=this.multiple})}handleDisabledChange(){(this.disabled||this.visuallyDisabled)&&(this.open=!1,this.handleOpenChange())}async handleOpenChange(){if(this.open&&(!this.disabled||!this.visuallyDisabled)){this.setCurrentOption(this.selectedOptions[0]||this.getFirstOption()),this.emit("sd-show"),this.addOpenListeners(),await Y(this),this.listbox.hidden=!1,this.popup.active=!0,requestAnimationFrame(()=>{this.setCurrentOption(this.currentOption)});let{keyframes:t,options:e}=q(this,"select.show",{dir:this.localize.dir()});await K(this.popup.popup,t,e),this.currentOption&&ee(this.currentOption,this.listbox,"vertical","auto"),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),await Y(this);let{keyframes:t,options:e}=q(this,"select.hide",{dir:this.localize.dir()});await K(this.popup.popup,t,e),this.listbox.hidden=!0,this.popup.active=!1,this.emit("sd-after-hide")}}applySizeToOptions(){this._optionsInDefaultSlot.forEach(t=>{t.size=this.size})}handleValueChange(){if(this.selectedOptions.length===(Array.isArray(this.value)?this.value.length:1))return;let t=this.getAllOptions(),e=Array.isArray(this.value)?this.value:[this.value];this.setSelectedOptions(t.filter(r=>e.includes(r.value)))}async show(){if(this.open||this.disabled||this.visuallyDisabled){this.open=!1;return}return this.open=!0,Z(this,"sd-after-show")}async hide(){if(!this.open||this.disabled){this.open=!1;return}return this.open=!1,Z(this,"sd-after-hide")}checkValidity(){var t;return(t=this.valueInput)==null?void 0:t.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.valueInput.reportValidity()}setCustomValidity(t){this.valueInput.setCustomValidity(t),this.formControlController.updateValidity()}focus(t){this.combobox.focus(t)}blur(){this.combobox.blur()}render(){let t={default:this.hasSlotController.test("[default]"),label:this.hasSlotController.test("label"),clearIcon:this.hasSlotController.test("clear-icon"),expandIcon:this.hasSlotController.test("expand-icon"),helpText:this.hasSlotController.test("help-text"),tooltip:this.hasSlotController.test("tooltip")},e=this.label?!0:!!t.label,r=this.helpText?!0:!!t.helpText,o=this.clearable&&!this.disabled,n=!!t.tooltip,l=this.value!==null&&String(this.value).length>0,h=this.floatingLabel&&e&&(this.hasFocus&&!this.visuallyDisabled||this.open||l)&&!(this.disabled&&!l),u=this.disabled?"disabled":this.visuallyDisabled&&!this.hasFocus?"visuallyDisabled":this.hasFocus&&this.showInvalidStyle?"activeInvalid":this.hasFocus&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus||this.open?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",m=this.disabled||this.visuallyDisabled?"cursor-not-allowed":"cursor-pointer",f={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],y={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size],b=this.size==="lg"?this.floatingLabel?h?"py-3":"py-4":"py-2":this.floatingLabel?h?"py-2":"py-3":"py-1";return p`<div part="form-control" class="${c("relative text-left",m,this.size==="sm"?"text-sm":"text-base",this.open&&"z-50")}"><span class="sr-only" aria-live="polite">${this.deletedTagLabel}</span> ${e&&!this.floatingLabel||n?p`<div class="flex items-center gap-1 mb-2"><label id="label" part="form-control-label" class="${e&&"inline-block form-control-color-text"}" aria-hidden="${e?"false":"true"}" @click="${this.handleLabelClick}"><slot name="label">${this.label}</slot></label> ${t.tooltip?p`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${c("relative w-full bg-white",u==="disabled"?"text-neutral-500":"form-control-color-text")}">${e&&this.floatingLabel?p`<label id="label" part="form-control-floating-label" class="${c("absolute left-4 z-20 pointer-events-none transition-all duration-200",h?this.size==="lg"?"top-2 text-xs":"top-1 text-xs":"top-1/2 -translate-y-1/2 text-base",h&&"mt-1")}" for="input"><span class="${c("leading-none",(this.visuallyDisabled||this.disabled)&&"text-neutral-500",h&&!this.visuallyDisabled&&!this.disabled&&"form-control--filled__floating-label-color-text")}">${this.label}</span></label>`:null}<div part="border" class="${c("absolute top-0 w-full h-full pointer-events-none border rounded-default z-10 transition-[border] duration-medium ease-in-out",{disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",readonly:"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"}[u],this.open&&(this.currentPlacement==="bottom"?"rounded-bl-none rounded-br-none":"rounded-tl-none rounded-tr-none"))}"></div><sd-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${c("inline-flex relative w-full",this.currentPlacement==="bottom"?"origin-top":"origin-bottom")}" placement="${this.placement}" strategy="${this.hoist?"fixed":"absolute"}" flip sync="width" auto-size="vertical" auto-size-padding="10" exportparts="
259
+ " size="${this.size==="sm"?"sm":"lg"}" removable @keydown="${t=>this.handleTagMaxOptionsKeyDown(t)}" @sd-remove="${t=>this.handleTagRemove(t)}">${this.selectedOptions.length} ${this.localize.term("tagsSelected")}</sd-tag>`]}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}handleCurrentPlacement(t){let e=t.detail;e&&(this.currentPlacement=e)}handleUseTagsChange(){let t=this.getAllOptions();customElements.get("sd-option")&&t.forEach(e=>{e.checkbox=this.multiple})}handleDisabledChange(){(this.disabled||this.visuallyDisabled)&&(this.open=!1,this.handleOpenChange())}async handleOpenChange(){if(this.open&&(!this.disabled||!this.visuallyDisabled)){this.setCurrentOption(this.selectedOptions[0]||this.getFirstOption()),this.emit("sd-show"),this.addOpenListeners(),await Y(this),this.listbox.hidden=!1,this.popup.active=!0,requestAnimationFrame(()=>{this.setCurrentOption(this.currentOption)});let{keyframes:t,options:e}=q(this,"select.show",{dir:this.localize.dir()});await K(this.popup.popup,t,e),this.currentOption&&ee(this.currentOption,this.listbox,"vertical","auto"),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),await Y(this);let{keyframes:t,options:e}=q(this,"select.hide",{dir:this.localize.dir()});await K(this.popup.popup,t,e),this.listbox.hidden=!0,this.popup.active=!1,this.emit("sd-after-hide")}}applySizeToOptions(){this._optionsInDefaultSlot.forEach(t=>{t.size=this.size})}handleValueChange(){let t=this.value,e=Array.isArray(t)?t:[t],r=this.selectedOptions.map(l=>l.value);if(e.length===r.length&&e.every(l=>r.includes(l)))return;let o=this.getAllOptions(),n=Array.isArray(this.value)?this.value:[this.value];this.setSelectedOptions(o.filter(l=>n.includes(l.value))),this.value=t}async show(){if(this.open||this.disabled||this.visuallyDisabled){this.open=!1;return}return this.open=!0,Z(this,"sd-after-show")}async hide(){if(!this.open||this.disabled){this.open=!1;return}return this.open=!1,Z(this,"sd-after-hide")}checkValidity(){var t;return(t=this.valueInput)==null?void 0:t.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.valueInput.reportValidity()}setCustomValidity(t){this.valueInput.setCustomValidity(t),this.formControlController.updateValidity()}focus(t){this.combobox.focus(t)}blur(){this.combobox.blur()}render(){let t={default:this.hasSlotController.test("[default]"),label:this.hasSlotController.test("label"),clearIcon:this.hasSlotController.test("clear-icon"),expandIcon:this.hasSlotController.test("expand-icon"),helpText:this.hasSlotController.test("help-text"),tooltip:this.hasSlotController.test("tooltip")},e=this.label?!0:!!t.label,r=this.helpText?!0:!!t.helpText,o=this.clearable&&!this.disabled,n=!!t.tooltip,l=this.value!==null&&String(this.value).length>0,h=this.floatingLabel&&e&&(this.hasFocus&&!this.visuallyDisabled||this.open||l)&&!(this.disabled&&!l),u=this.disabled?"disabled":this.visuallyDisabled&&!this.hasFocus?"visuallyDisabled":this.hasFocus&&this.showInvalidStyle?"activeInvalid":this.hasFocus&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus||this.open?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",m=this.disabled||this.visuallyDisabled?"cursor-not-allowed":"cursor-pointer",f={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],y={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size],b=this.size==="lg"?this.floatingLabel?h?"py-3":"py-4":"py-2":this.floatingLabel?h?"py-2":"py-3":"py-1";return p`<div part="form-control" class="${c("relative text-left",m,this.size==="sm"?"text-sm":"text-base",this.open&&"z-50")}"><span class="sr-only" aria-live="polite">${this.deletedTagLabel}</span> ${e&&!this.floatingLabel||n?p`<div class="flex items-center gap-1 mb-2"><label id="label" part="form-control-label" class="${e&&"inline-block form-control-color-text"}" aria-hidden="${e?"false":"true"}" @click="${this.handleLabelClick}"><slot name="label">${this.label}</slot></label> ${t.tooltip?p`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${c("relative w-full bg-white",u==="disabled"?"text-neutral-500":"form-control-color-text")}">${e&&this.floatingLabel?p`<label id="label" part="form-control-floating-label" class="${c("absolute left-4 z-20 pointer-events-none transition-all duration-200",h?this.size==="lg"?"top-2 text-xs":"top-1 text-xs":"top-1/2 -translate-y-1/2 text-base",h&&"mt-1")}" for="input"><span class="${c("leading-none",(this.visuallyDisabled||this.disabled)&&"text-neutral-500",h&&!this.visuallyDisabled&&!this.disabled&&"form-control--filled__floating-label-color-text")}">${this.label}</span></label>`:null}<div part="border" class="${c("absolute top-0 w-full h-full pointer-events-none border rounded-default z-10 transition-[border] duration-medium ease-in-out",{disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",readonly:"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"}[u],this.open&&(this.currentPlacement==="bottom"?"rounded-bl-none rounded-br-none":"rounded-tl-none rounded-tr-none"))}"></div><sd-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${c("inline-flex relative w-full",this.currentPlacement==="bottom"?"origin-top":"origin-bottom")}" placement="${this.placement}" strategy="${this.hoist?"fixed":"absolute"}" flip sync="width" auto-size="vertical" auto-size-padding="10" exportparts="
260
260
  popup:popup__content,
261
261
  "><div class="${c("relative w-full h-full grid rounded-default transition-colors hover:duration-fast ease-in-out",this.visuallyDisabled||this.disabled?"hover:bg-transparent":"hover:bg-neutral-200",["invalid","activeInvalid"].includes(u)&&"form-control--invalid-color-background")}" slot="anchor"><div class="${c("input-container items-center w-full h-full px-4 flex min-w-0",{sm:"py-1",md:"py-1",lg:"py-2"}[this.size],b)}"><input name="${this.name}" form="${this.form}" part="display-input" class="${c("top-0 left-0 appearance-none outline-none flex-grow bg-transparent flex-1 placeholder:text-neutral-700 min-w-0",m,this.multiple&&this.useTags&&this.value.length>0?"hidden":"",this.size==="sm"?h?"h-4":"h-6":h?"h-6":"h-8",h&&"leading-none mt-4")}" type="text" .disabled="${this.disabled}" placeholder="${!this.floatingLabel||h?this.placeholder||this.localize.term("selectDefaultPlaceholder"):""}" .value="${this.displayLabel}" autocomplete="off" spellcheck="false" autocapitalize="off" readonly="readonly" aria-controls="listbox" aria-expanded="${this.open?"true":"false"}" aria-haspopup="listbox" aria-labelledby="label" aria-disabled="${this.disabled||this.visuallyDisabled?"true":"false"}" aria-invalid="${this.showInvalidStyle}" aria-describedby="help-text invalid-message" role="combobox" tabindex="-1"> ${this.multiple&&this.useTags&&this.tags&&this.tags.length>0?p`<div part="tags" class="${c("flex-grow flex flex-wrap items-center gap-1 min-w-0",this.floatingLabel&&"pt-6")}">${this.tags}</div>`:""}<div aria-live="polite" id="control-value" class="absolute top-0 left-0 opacity-0 -z-10">${this.selectedOptions.map(w=>w==null?void 0:w.getTextLabel()).join(", ")}</div><input class="${c("value-input absolute top-0 left-0 w-full h-full opacity-0 -z-10",m)}" type="text" ?disabled="${this.disabled}" ?required="${this.required}" .value="${Array.isArray(this.value)?this.value.join(", "):this.value}" tabindex="-1" aria-controls="control-value" aria-hidden="true" @focus="${()=>this.focus()}" @invalid="${this.handleInvalid}"> ${o?p`<button part="clear-button" class="${c("select__clear flex justify-center",f,this.value.length>0?"visible":"hidden")}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.handleClearMouseDown}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-icon class="${c("text-neutral-700 z-10",y)}" library="_internal" name="closing-round"></sd-icon></slot></button>`:""} ${this.showInvalidStyle?p`<sd-icon part="invalid-icon" class="${c(f,y,"text-error")}" library="_internal" name="risk"></sd-icon>`:""} ${this.styleOnValid&&this.showValidStyle?p`<sd-icon part="valid-icon" class="${c("flex-shrink-0 text-success",f,y)}" library="_internal" name="confirm-circle"></sd-icon>`:""}<slot name="expand-icon" part="expand-icon" class="${c("inline-flex ml-2 items-center transition-transform duration-medium ease-in-out",this.open?"rotate-180":"rotate-0",this.disabled||this.visuallyDisabled?"text-neutral-500":"text-primary",y)}"><sd-icon name="chevron-down" part="chevron" library="_internal" color="currentColor"></sd-icon></slot></div><button part="combobox" class="${c("relative w-full px-4 flex flex-row items-center rounded-default focus-visible:outline-none",m,this.open&&"shadow transition-shadow duration-medium ease-in-out",{sm:"min-h-[32px]",md:"min-h-[40px]",lg:"min-h-[48px]"}[this.size])}" type="button" @keydown="${this.handleComboboxKeyDown}" @mousedown="${this.handleComboboxMouseDown}" @focus="${this.handleFocus}" @blur="${this.handleBlur}" aria-labelledby="label"></button></div><div id="listbox" role="listbox" aria-expanded="${this.open?"true":"false"}" aria-multiselectable="${this.multiple?"true":"false"}" aria-labelledby="label" part="listbox" class="${c("bg-white px-2 py-3 relative border-primary overflow-y-auto",this.open&&"shadow transition-shadow duration-medium ease-in-out",this.currentPlacement==="bottom"?"border-r-2 border-b-2 border-l-2 rounded-br-default rounded-bl-default":"border-r-2 border-t-2 border-l-2 rounded-tr-default rounded-tl-default")}" tabindex="-1" @mouseup="${this.handleOptionClick}" @slotchange="${this.handleDefaultSlotChange}"><slot></slot></div></sd-popup></div><div class="text-sm text-neutral-700 mt-1" part="form-control-help-text" id="help-text" aria-hidden="${r?"false":"true"}"><slot name="help-text">${this.helpText}</slot></div></div>${this.formControlController.renderInvalidMessage(this.size)}`}};V.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
262
262
  :host{position:relative;display:block;width:auto}:host([required]) #label::after{content:' *'}: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))}[part=listbox]{max-height:var(--auto-size-available-height,auto)}.input-container,[part=combobox]{grid-column:1/1;grid-row:1/1}sd-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}sd-tag::part(base){border-radius:var(--sd-radius);padding-inline:var(--sd-spacing-1)}sd-tag::part(content){display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:var(--tag-max-width,15ch)}sd-tag[size=lg]::part(base){padding-inline:var(--sd-spacing-2)}sd-tag[disabled=false]::part(base):hover{background-color:rgba(var(--sd-color-background-primary-100))}`],a([gi({selector:"sd-option"})],V.prototype,"_optionsInDefaultSlot",2),a([v("sd-popup")],V.prototype,"popup",2),a([v('[part="combobox"]')],V.prototype,"combobox",2),a([v('[part="display-input"]')],V.prototype,"displayInput",2),a([v(".value-input")],V.prototype,"valueInput",2),a([v('[part="listbox"]')],V.prototype,"listbox",2),a([v("#invalid-message")],V.prototype,"invalidMessage",2),a([L()],V.prototype,"deletedTagLabel",2),a([L()],V.prototype,"hasFocus",2),a([L()],V.prototype,"currentOption",2),a([L()],V.prototype,"selectedOptions",2),a([L()],V.prototype,"showValidStyle",2),a([L()],V.prototype,"showInvalidStyle",2),a([Rt()],V.prototype,"defaultValue",2),a([d({type:Boolean,reflect:!0})],V.prototype,"open",2),a([d({type:String,reflect:!0})],V.prototype,"size",2),a([d({type:String,reflect:!0})],V.prototype,"placement",2),a([d({type:String,reflect:!0})],V.prototype,"label",2),a([d({type:String,reflect:!0})],V.prototype,"placeholder",2),a([d({type:String,attribute:"max-options-tag-label",reflect:!0})],V.prototype,"maxOptionsTagLabel",2),a([d({type:Boolean,reflect:!0})],V.prototype,"disabled",2),a([d({type:Boolean,reflect:!0,attribute:"visually-disabled"})],V.prototype,"visuallyDisabled",2),a([d({type:String,attribute:"help-text",reflect:!0})],V.prototype,"helpText",2),a([L()],V.prototype,"currentPlacement",2),a([d({type:Boolean,reflect:!0})],V.prototype,"clearable",2),a([d({type:Boolean,reflect:!0})],V.prototype,"multiple",2),a([d({type:Boolean,reflect:!0})],V.prototype,"useTags",2),a([d({attribute:"max-options-visible",type:Number,reflect:!0})],V.prototype,"maxOptionsVisible",2),a([d({reflect:!0})],V.prototype,"form",2),a([d({reflect:!0})],V.prototype,"name",2),a([d({converter:{fromAttribute:t=>t.split(" "),toAttribute:t=>t.join(" ")}})],V.prototype,"value",2),a([d({type:Boolean,reflect:!0})],V.prototype,"required",2),a([d({attribute:"floating-label",type:Boolean,reflect:!0})],V.prototype,"floatingLabel",2),a([d({type:Boolean,reflect:!0,attribute:"style-on-valid"})],V.prototype,"styleOnValid",2),a([d({type:Boolean,reflect:!0})],V.prototype,"hoist",2),a([d()],V.prototype,"getTag",2),a([E("useTags",{waitUntilFirstUpdate:!0})],V.prototype,"handleUseTagsChange",1),a([E(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],V.prototype,"handleDisabledChange",1),a([E("open",{waitUntilFirstUpdate:!0})],V.prototype,"handleOpenChange",1),a([E("size",{waitUntilFirstUpdate:!0})],V.prototype,"applySizeToOptions",1),a([E("value",{waitUntilFirstUpdate:!0})],V.prototype,"handleValueChange",1),V=a([k("sd-select")],V);R("select.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});R("select.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});var Ne=class extends g{constructor(){super(...arguments);this.variant="rectangular"}render(){return p`<div part="base" aria-hidden="true" class="${c("bg-neutral-200 w-full h-full animate-pulse",{rectangular:"rounded-sm",circular:"rounded-full inline-block"}[this.variant])}"><slot></slot></div>`}};Ne.styles=[...g.styles,x`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;