@solid-design-system/components 6.9.2 → 6.10.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 (305) hide show
  1. package/cdn/chunks/{chunk.W34AMMB5.js → chunk.62QW3E3X.js} +1 -1
  2. package/cdn/chunks/{chunk.CJIGOFUV.js → chunk.6SXKCQA5.js} +1 -1
  3. package/cdn/components/breadcrumb/breadcrumb.js +1 -1
  4. package/cdn/components/combobox/combobox.js +1 -1
  5. package/cdn/components/datepicker/datepicker.js +1 -1
  6. package/cdn/components/dropdown/dropdown.js +1 -1
  7. package/cdn/components/popup/popup.js +1 -1
  8. package/cdn/components/range/range.js +1 -1
  9. package/cdn/components/select/select.js +1 -1
  10. package/cdn/components/tooltip/tooltip.js +1 -1
  11. package/cdn/custom-elements.json +1 -1
  12. package/cdn/solid-components.bundle.js +2 -2
  13. package/cdn/solid-components.iife.js +2 -2
  14. package/cdn/solid-components.js +1 -1
  15. package/cdn/utilities/autocomplete-config.js +1 -1
  16. package/cdn/web-types.json +1 -1
  17. package/cdn-versioned/chunks/chunk.23WHB4QP.js +2 -2
  18. package/cdn-versioned/chunks/chunk.2MIX3O75.js +2 -2
  19. package/cdn-versioned/chunks/chunk.2PFSV4UH.js +2 -2
  20. package/cdn-versioned/chunks/chunk.2SMHQXPB.js +2 -2
  21. package/cdn-versioned/chunks/chunk.3JJMR6UW.js +2 -2
  22. package/cdn-versioned/chunks/chunk.3QIJXAQA.js +2 -2
  23. package/cdn-versioned/chunks/chunk.3R2FJ7GP.js +2 -2
  24. package/cdn-versioned/chunks/chunk.5KUK2VJM.js +1 -1
  25. package/cdn-versioned/chunks/{chunk.W34AMMB5.js → chunk.62QW3E3X.js} +2 -2
  26. package/cdn-versioned/chunks/chunk.6H45UF7X.js +1 -1
  27. package/cdn-versioned/chunks/chunk.6P7SZLGS.js +1 -1
  28. package/cdn-versioned/chunks/chunk.6RPVUY7L.js +2 -2
  29. package/cdn-versioned/chunks/{chunk.CJIGOFUV.js → chunk.6SXKCQA5.js} +2 -2
  30. package/cdn-versioned/chunks/chunk.A6VWEUXI.js +2 -2
  31. package/cdn-versioned/chunks/chunk.ABEZTKXZ.js +3 -3
  32. package/cdn-versioned/chunks/chunk.AK6QMGJL.js +2 -2
  33. package/cdn-versioned/chunks/chunk.AZILYRH5.js +2 -2
  34. package/cdn-versioned/chunks/chunk.BJYMUYXU.js +2 -2
  35. package/cdn-versioned/chunks/chunk.CSUL5FAA.js +2 -2
  36. package/cdn-versioned/chunks/chunk.CZH4RZUA.js +2 -2
  37. package/cdn-versioned/chunks/chunk.DOFLMPNA.js +2 -2
  38. package/cdn-versioned/chunks/chunk.EE6DZSAZ.js +2 -2
  39. package/cdn-versioned/chunks/chunk.ETYTBHYS.js +1 -1
  40. package/cdn-versioned/chunks/chunk.F6GLDWSF.js +1 -1
  41. package/cdn-versioned/chunks/chunk.FWVEGMDU.js +2 -2
  42. package/cdn-versioned/chunks/chunk.GB4BLTBN.js +5 -5
  43. package/cdn-versioned/chunks/chunk.GYLDD7OO.js +2 -2
  44. package/cdn-versioned/chunks/chunk.IHPCVJQP.js +1 -1
  45. package/cdn-versioned/chunks/chunk.JE443GSD.js +9 -9
  46. package/cdn-versioned/chunks/chunk.JWST2JU2.js +2 -2
  47. package/cdn-versioned/chunks/chunk.KU24TV3E.js +2 -2
  48. package/cdn-versioned/chunks/chunk.LCDK6JMB.js +2 -2
  49. package/cdn-versioned/chunks/chunk.LCRJHN7X.js +2 -2
  50. package/cdn-versioned/chunks/chunk.LJGKR57E.js +2 -2
  51. package/cdn-versioned/chunks/chunk.LJUXIWVE.js +2 -2
  52. package/cdn-versioned/chunks/chunk.LPAOJ3UT.js +2 -2
  53. package/cdn-versioned/chunks/chunk.LROVOQK7.js +2 -2
  54. package/cdn-versioned/chunks/chunk.LZ22HXBZ.js +1 -1
  55. package/cdn-versioned/chunks/chunk.M7IOABFW.js +2 -2
  56. package/cdn-versioned/chunks/chunk.MBTTKYXS.js +2 -2
  57. package/cdn-versioned/chunks/chunk.MGVXL2HX.js +2 -2
  58. package/cdn-versioned/chunks/chunk.MND77BIP.js +2 -2
  59. package/cdn-versioned/chunks/chunk.MOVV5SGH.js +2 -2
  60. package/cdn-versioned/chunks/chunk.NK5ADMN2.js +1 -1
  61. package/cdn-versioned/chunks/chunk.OVMB2HQ7.js +2 -2
  62. package/cdn-versioned/chunks/chunk.PBG7SX5G.js +2 -2
  63. package/cdn-versioned/chunks/chunk.PO3YG7QM.js +2 -2
  64. package/cdn-versioned/chunks/chunk.RAP66B6O.js +1 -1
  65. package/cdn-versioned/chunks/chunk.RHXXKUAP.js +1 -1
  66. package/cdn-versioned/chunks/chunk.RLMMTFRP.js +2 -2
  67. package/cdn-versioned/chunks/chunk.S6YZ73C6.js +2 -2
  68. package/cdn-versioned/chunks/chunk.SN3JKNRR.js +2 -2
  69. package/cdn-versioned/chunks/chunk.SYKS2NVL.js +2 -2
  70. package/cdn-versioned/chunks/chunk.TIT73LW6.js +1 -1
  71. package/cdn-versioned/chunks/chunk.UH6HUCWL.js +2 -2
  72. package/cdn-versioned/chunks/chunk.VBVSO7CX.js +2 -2
  73. package/cdn-versioned/chunks/chunk.VJWJIXNG.js +5 -5
  74. package/cdn-versioned/chunks/chunk.VNKXLA5X.js +2 -2
  75. package/cdn-versioned/chunks/chunk.VZU6YWNK.js +2 -2
  76. package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
  77. package/cdn-versioned/chunks/chunk.X7Z2PXUI.js +1 -1
  78. package/cdn-versioned/chunks/chunk.XQGK5AD7.js +3 -3
  79. package/cdn-versioned/chunks/chunk.YBVSFGIY.js +2 -2
  80. package/cdn-versioned/chunks/chunk.YPTZDABK.js +1 -1
  81. package/cdn-versioned/components/accordion/accordion.d.ts +1 -1
  82. package/cdn-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  83. package/cdn-versioned/components/animation/animation.d.ts +1 -1
  84. package/cdn-versioned/components/audio/audio.d.ts +1 -1
  85. package/cdn-versioned/components/badge/badge.d.ts +1 -1
  86. package/cdn-versioned/components/brandshape/brandshape.d.ts +1 -1
  87. package/cdn-versioned/components/breadcrumb/breadcrumb.d.ts +1 -1
  88. package/cdn-versioned/components/breadcrumb/breadcrumb.js +1 -1
  89. package/cdn-versioned/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
  90. package/cdn-versioned/components/button/button.d.ts +1 -1
  91. package/cdn-versioned/components/button-group/button-group.d.ts +1 -1
  92. package/cdn-versioned/components/carousel/carousel.d.ts +1 -1
  93. package/cdn-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  94. package/cdn-versioned/components/checkbox/checkbox.d.ts +1 -1
  95. package/cdn-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
  96. package/cdn-versioned/components/combobox/combobox.d.ts +1 -1
  97. package/cdn-versioned/components/combobox/combobox.js +1 -1
  98. package/cdn-versioned/components/datepicker/datepicker.d.ts +1 -1
  99. package/cdn-versioned/components/datepicker/datepicker.js +1 -1
  100. package/cdn-versioned/components/dialog/dialog.d.ts +1 -1
  101. package/cdn-versioned/components/divider/divider.d.ts +1 -1
  102. package/cdn-versioned/components/drawer/drawer.d.ts +1 -1
  103. package/cdn-versioned/components/dropdown/dropdown.d.ts +1 -1
  104. package/cdn-versioned/components/dropdown/dropdown.js +1 -1
  105. package/cdn-versioned/components/expandable/expandable.d.ts +1 -1
  106. package/cdn-versioned/components/flipcard/flipcard.d.ts +1 -1
  107. package/cdn-versioned/components/header/header.d.ts +1 -1
  108. package/cdn-versioned/components/icon/icon.d.ts +1 -1
  109. package/cdn-versioned/components/include/include.d.ts +1 -1
  110. package/cdn-versioned/components/input/input.d.ts +1 -1
  111. package/cdn-versioned/components/link/link.d.ts +1 -1
  112. package/cdn-versioned/components/loader/loader.d.ts +1 -1
  113. package/cdn-versioned/components/map-marker/map-marker.d.ts +1 -1
  114. package/cdn-versioned/components/menu/menu.d.ts +1 -1
  115. package/cdn-versioned/components/menu-item/menu-item.d.ts +1 -1
  116. package/cdn-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  117. package/cdn-versioned/components/notification/notification.d.ts +1 -1
  118. package/cdn-versioned/components/optgroup/optgroup.d.ts +1 -1
  119. package/cdn-versioned/components/option/option.d.ts +1 -1
  120. package/cdn-versioned/components/popup/popup.d.ts +1 -1
  121. package/cdn-versioned/components/popup/popup.js +1 -1
  122. package/cdn-versioned/components/quickfact/quickfact.d.ts +1 -1
  123. package/cdn-versioned/components/radio/radio.d.ts +1 -1
  124. package/cdn-versioned/components/radio-button/radio-button.d.ts +1 -1
  125. package/cdn-versioned/components/radio-group/radio-group.d.ts +1 -1
  126. package/cdn-versioned/components/range/range.d.ts +1 -1
  127. package/cdn-versioned/components/range/range.js +1 -1
  128. package/cdn-versioned/components/range-tick/range-tick.d.ts +1 -1
  129. package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
  130. package/cdn-versioned/components/select/select.d.ts +1 -1
  131. package/cdn-versioned/components/select/select.js +1 -1
  132. package/cdn-versioned/components/skeleton/skeleton.d.ts +1 -1
  133. package/cdn-versioned/components/spinner/spinner.d.ts +1 -1
  134. package/cdn-versioned/components/step/step.d.ts +1 -1
  135. package/cdn-versioned/components/step-group/step-group.d.ts +1 -1
  136. package/cdn-versioned/components/switch/switch.d.ts +1 -1
  137. package/cdn-versioned/components/tab/tab.d.ts +1 -1
  138. package/cdn-versioned/components/tab-group/tab-group.d.ts +1 -1
  139. package/cdn-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  140. package/cdn-versioned/components/tag/tag.d.ts +1 -1
  141. package/cdn-versioned/components/textarea/textarea.d.ts +1 -1
  142. package/cdn-versioned/components/theme-listener/theme-listener.d.ts +1 -1
  143. package/cdn-versioned/components/tooltip/tooltip.d.ts +1 -1
  144. package/cdn-versioned/components/tooltip/tooltip.js +1 -1
  145. package/cdn-versioned/components/video/video.d.ts +1 -1
  146. package/cdn-versioned/custom-elements.json +246 -246
  147. package/cdn-versioned/internal/form.js +2 -2
  148. package/cdn-versioned/solid-components.bundle.js +80 -80
  149. package/cdn-versioned/solid-components.css +2 -2
  150. package/cdn-versioned/solid-components.iife.js +80 -80
  151. package/cdn-versioned/solid-components.js +1 -1
  152. package/cdn-versioned/utilities/autocomplete-config.js +1 -1
  153. package/cdn-versioned/vscode.html-custom-data.json +107 -107
  154. package/cdn-versioned/web-types.json +157 -157
  155. package/dist/chunks/{chunk.WYVFRQ5Z.js → chunk.EV6PNOJR.js} +1 -1
  156. package/dist/chunks/{chunk.VWA3OZPN.js → chunk.KXWU6HY5.js} +1 -1
  157. package/dist/components/breadcrumb/breadcrumb.js +1 -1
  158. package/dist/components/combobox/combobox.js +1 -1
  159. package/dist/components/datepicker/datepicker.js +2 -2
  160. package/dist/components/dropdown/dropdown.js +1 -1
  161. package/dist/components/popup/popup.js +1 -1
  162. package/dist/components/range/range.js +1 -1
  163. package/dist/components/select/select.js +1 -1
  164. package/dist/components/tooltip/tooltip.js +1 -1
  165. package/dist/custom-elements.json +1 -1
  166. package/dist/solid-components.js +2 -2
  167. package/dist/utilities/autocomplete-config.js +1 -1
  168. package/dist/web-types.json +1 -1
  169. package/dist-versioned/chunks/chunk.2NECRQLL.js +3 -3
  170. package/dist-versioned/chunks/chunk.2VYY4TEV.js +2 -2
  171. package/dist-versioned/chunks/chunk.2YKSAZET.js +12 -12
  172. package/dist-versioned/chunks/chunk.36CGUI4G.js +3 -3
  173. package/dist-versioned/chunks/chunk.3LJCVKT5.js +3 -3
  174. package/dist-versioned/chunks/chunk.5L6ITCDK.js +14 -14
  175. package/dist-versioned/chunks/chunk.6C4JDHQE.js +5 -5
  176. package/dist-versioned/chunks/chunk.6VZHBOMA.js +11 -11
  177. package/dist-versioned/chunks/chunk.7JJXTME6.js +4 -4
  178. package/dist-versioned/chunks/chunk.AGALXK7Q.js +2 -2
  179. package/dist-versioned/chunks/chunk.ALSMMO52.js +28 -28
  180. package/dist-versioned/chunks/chunk.AODPVXHS.js +4 -4
  181. package/dist-versioned/chunks/chunk.B2RTBZFX.js +23 -23
  182. package/dist-versioned/chunks/chunk.BNNE7OYM.js +3 -3
  183. package/dist-versioned/chunks/chunk.BVDPZZWU.js +10 -10
  184. package/dist-versioned/chunks/chunk.BXKAF4FA.js +2 -2
  185. package/dist-versioned/chunks/chunk.C3WIBDGG.js +2 -2
  186. package/dist-versioned/chunks/chunk.C7TYKE3H.js +2 -2
  187. package/dist-versioned/chunks/chunk.CCAOZTZT.js +2 -2
  188. package/dist-versioned/chunks/chunk.DQQZ3P2Q.js +1 -1
  189. package/dist-versioned/chunks/chunk.E5PND36Z.js +3 -3
  190. package/dist-versioned/chunks/chunk.EHRCG4D4.js +2 -2
  191. package/dist-versioned/chunks/chunk.EMTQ3SYF.js +1 -1
  192. package/dist-versioned/chunks/chunk.ENPYKZSE.js +1 -1
  193. package/dist-versioned/chunks/{chunk.WYVFRQ5Z.js → chunk.EV6PNOJR.js} +6 -6
  194. package/dist-versioned/chunks/chunk.FBFFDE7W.js +4 -4
  195. package/dist-versioned/chunks/chunk.FWFNUTMW.js +5 -5
  196. package/dist-versioned/chunks/chunk.J6URFAAT.js +1 -1
  197. package/dist-versioned/chunks/chunk.JBLVT4GJ.js +4 -4
  198. package/dist-versioned/chunks/chunk.JGH47TIO.js +8 -8
  199. package/dist-versioned/chunks/chunk.JSOT2AUN.js +8 -8
  200. package/dist-versioned/chunks/chunk.K3XAZCMW.js +8 -8
  201. package/dist-versioned/chunks/chunk.KEJFWGZI.js +4 -4
  202. package/dist-versioned/chunks/chunk.KU6IGPYI.js +4 -4
  203. package/dist-versioned/chunks/chunk.KXDIIYXU.js +1 -1
  204. package/dist-versioned/chunks/{chunk.VWA3OZPN.js → chunk.KXWU6HY5.js} +2 -2
  205. package/dist-versioned/chunks/chunk.L4VSO6PJ.js +6 -6
  206. package/dist-versioned/chunks/chunk.LEHN7AAI.js +3 -3
  207. package/dist-versioned/chunks/chunk.N5IXQ55P.js +25 -25
  208. package/dist-versioned/chunks/chunk.O5FDQ7G3.js +1 -1
  209. package/dist-versioned/chunks/chunk.OGTB6P4O.js +3 -3
  210. package/dist-versioned/chunks/chunk.OS5UP6YI.js +5 -5
  211. package/dist-versioned/chunks/chunk.PMRFHLOS.js +4 -4
  212. package/dist-versioned/chunks/chunk.Q3NYSE4V.js +1 -1
  213. package/dist-versioned/chunks/chunk.Q7RGLPOU.js +4 -4
  214. package/dist-versioned/chunks/chunk.RUNLTRYQ.js +2 -2
  215. package/dist-versioned/chunks/chunk.S6R3YTS2.js +9 -9
  216. package/dist-versioned/chunks/chunk.TBWMHZMA.js +5 -5
  217. package/dist-versioned/chunks/chunk.TNJNDHY7.js +3 -3
  218. package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
  219. package/dist-versioned/chunks/chunk.UPU7QMDY.js +2 -2
  220. package/dist-versioned/chunks/chunk.V4YLR2QP.js +2 -2
  221. package/dist-versioned/chunks/chunk.VTOWPUO4.js +3 -3
  222. package/dist-versioned/chunks/chunk.W5R3Q2AL.js +12 -12
  223. package/dist-versioned/chunks/chunk.W7QA5BDD.js +5 -5
  224. package/dist-versioned/chunks/chunk.WPIZ42LA.js +4 -4
  225. package/dist-versioned/chunks/chunk.WXPUTX2S.js +5 -5
  226. package/dist-versioned/chunks/chunk.X3ZIYVJC.js +7 -7
  227. package/dist-versioned/chunks/chunk.XIMHYPRX.js +6 -6
  228. package/dist-versioned/chunks/chunk.XWVML7WY.js +5 -5
  229. package/dist-versioned/chunks/chunk.YR42X3WU.js +1 -1
  230. package/dist-versioned/chunks/chunk.Z36ZVOCO.js +1 -1
  231. package/dist-versioned/chunks/chunk.Z7C6DHQC.js +5 -5
  232. package/dist-versioned/chunks/chunk.ZR5VFTTA.js +2 -2
  233. package/dist-versioned/components/accordion/accordion.d.ts +1 -1
  234. package/dist-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  235. package/dist-versioned/components/animation/animation.d.ts +1 -1
  236. package/dist-versioned/components/audio/audio.d.ts +1 -1
  237. package/dist-versioned/components/badge/badge.d.ts +1 -1
  238. package/dist-versioned/components/brandshape/brandshape.d.ts +1 -1
  239. package/dist-versioned/components/breadcrumb/breadcrumb.d.ts +1 -1
  240. package/dist-versioned/components/breadcrumb/breadcrumb.js +1 -1
  241. package/dist-versioned/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
  242. package/dist-versioned/components/button/button.d.ts +1 -1
  243. package/dist-versioned/components/button-group/button-group.d.ts +1 -1
  244. package/dist-versioned/components/carousel/carousel.d.ts +1 -1
  245. package/dist-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  246. package/dist-versioned/components/checkbox/checkbox.d.ts +1 -1
  247. package/dist-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
  248. package/dist-versioned/components/combobox/combobox.d.ts +1 -1
  249. package/dist-versioned/components/combobox/combobox.js +1 -1
  250. package/dist-versioned/components/datepicker/datepicker.d.ts +1 -1
  251. package/dist-versioned/components/datepicker/datepicker.js +2 -2
  252. package/dist-versioned/components/dialog/dialog.d.ts +1 -1
  253. package/dist-versioned/components/divider/divider.d.ts +1 -1
  254. package/dist-versioned/components/drawer/drawer.d.ts +1 -1
  255. package/dist-versioned/components/dropdown/dropdown.d.ts +1 -1
  256. package/dist-versioned/components/dropdown/dropdown.js +1 -1
  257. package/dist-versioned/components/expandable/expandable.d.ts +1 -1
  258. package/dist-versioned/components/flipcard/flipcard.d.ts +1 -1
  259. package/dist-versioned/components/header/header.d.ts +1 -1
  260. package/dist-versioned/components/icon/icon.d.ts +1 -1
  261. package/dist-versioned/components/include/include.d.ts +1 -1
  262. package/dist-versioned/components/input/input.d.ts +1 -1
  263. package/dist-versioned/components/link/link.d.ts +1 -1
  264. package/dist-versioned/components/loader/loader.d.ts +1 -1
  265. package/dist-versioned/components/map-marker/map-marker.d.ts +1 -1
  266. package/dist-versioned/components/menu/menu.d.ts +1 -1
  267. package/dist-versioned/components/menu-item/menu-item.d.ts +1 -1
  268. package/dist-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  269. package/dist-versioned/components/notification/notification.d.ts +1 -1
  270. package/dist-versioned/components/optgroup/optgroup.d.ts +1 -1
  271. package/dist-versioned/components/option/option.d.ts +1 -1
  272. package/dist-versioned/components/popup/popup.d.ts +1 -1
  273. package/dist-versioned/components/popup/popup.js +1 -1
  274. package/dist-versioned/components/quickfact/quickfact.d.ts +1 -1
  275. package/dist-versioned/components/radio/radio.d.ts +1 -1
  276. package/dist-versioned/components/radio-button/radio-button.d.ts +1 -1
  277. package/dist-versioned/components/radio-group/radio-group.d.ts +1 -1
  278. package/dist-versioned/components/range/range.d.ts +1 -1
  279. package/dist-versioned/components/range/range.js +1 -1
  280. package/dist-versioned/components/range-tick/range-tick.d.ts +1 -1
  281. package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
  282. package/dist-versioned/components/select/select.d.ts +1 -1
  283. package/dist-versioned/components/select/select.js +1 -1
  284. package/dist-versioned/components/skeleton/skeleton.d.ts +1 -1
  285. package/dist-versioned/components/spinner/spinner.d.ts +1 -1
  286. package/dist-versioned/components/step/step.d.ts +1 -1
  287. package/dist-versioned/components/step-group/step-group.d.ts +1 -1
  288. package/dist-versioned/components/switch/switch.d.ts +1 -1
  289. package/dist-versioned/components/tab/tab.d.ts +1 -1
  290. package/dist-versioned/components/tab-group/tab-group.d.ts +1 -1
  291. package/dist-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  292. package/dist-versioned/components/tag/tag.d.ts +1 -1
  293. package/dist-versioned/components/textarea/textarea.d.ts +1 -1
  294. package/dist-versioned/components/theme-listener/theme-listener.d.ts +1 -1
  295. package/dist-versioned/components/tooltip/tooltip.d.ts +1 -1
  296. package/dist-versioned/components/tooltip/tooltip.js +1 -1
  297. package/dist-versioned/components/video/video.d.ts +1 -1
  298. package/dist-versioned/custom-elements.json +246 -246
  299. package/dist-versioned/internal/form.js +2 -2
  300. package/dist-versioned/solid-components.css +2 -2
  301. package/dist-versioned/solid-components.js +2 -2
  302. package/dist-versioned/utilities/autocomplete-config.js +1 -1
  303. package/dist-versioned/vscode.html-custom-data.json +107 -107
  304. package/dist-versioned/web-types.json +157 -157
  305. package/package.json +1 -1
@@ -185,7 +185,7 @@ sd-button::part(base){display:flex;height:var(--sd-spacing-12);width:var(--sd-sp
185
185
  :host{display:inline-flex;align-items:center;justify-content:center}:host([size=md]){height:var(--sd-spacing-4);min-width:var(--sd-spacing-4);font-size:.625rem}:host([size=lg]){height:calc(var(--sd-spacing-1) * 5);min-width:calc(var(--sd-spacing-1) * 5);font-size:.75rem}:host([size=sm])::part(base){height:var(--sd-spacing-2);min-width:var(--sd-spacing-2)}:host([size=md])::part(base){padding-inline:var(--sd-spacing-1)}:host([size=lg])::part(base){padding-left:.313rem;padding-right:.313rem}`],a([d({type:String,reflect:!0})],ae.prototype,"size",2),a([d({type:String,reflect:!0})],ae.prototype,"variant",2),a([d({type:Boolean,reflect:!0})],ae.prototype,"inverted",2),ae=a([k("sd-badge")],ae);var Zt=class extends f{constructor(){super(...arguments);this.variant="primary";this.shapes=["top","middle","bottom"];this.componentBreakpoint=0}getSvg(t,e){return{0:this.smallSvg(e),414:this.mediumSvg(e),640:this.largeSvg(e)}[t]}largeSvg(t){return t==="top"?p`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 121"><path d="M610.777 1.393.001 120.146 0 123h700.001V74.79c0-4.797-.462-9.585-1.381-14.294-7.909-40.537-47.237-66.998-87.843-59.103Z"/></svg>`:p`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 123"><path d="M89.224 121.607 700 2.854 700.001 0h-700L0 48.21c0 4.797.463 9.584 1.381 14.294 7.909 40.537 47.237 66.998 87.843 59.103Z"/></svg>`}mediumSvg(t){return t==="top"?p`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 119"><path d="M597.75 1.6 0 118.046V121h700V85.872c0-5.509-.53-11.006-1.583-16.413-9.063-46.543-54.133-76.924-100.667-67.86Z"/></svg>`:p`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 121"><path d="M102.25 119.4 700 2.954V0H0v35.128c0 5.509.53 11.006 1.583 16.413 9.063 46.543 54.134 76.924 100.667 67.859Z"/></svg>`}smallSvg(t){return t==="top"?p`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 113"><path d="M566.951 2.08 0 112.466v2.934h700v-3.672c0-7.166-.689-14.314-2.059-21.348-11.789-60.557-70.436-100.09-130.99-88.3Z"/></svg>`:p`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 116"><path d="M133.049 113.32 700 2.934V0H0v3.672c0 7.165.69 14.314 2.059 21.348 11.79 60.557 70.436 100.09 130.99 88.3Z"/></svg>`}setBreakpoint(){switch(!0){case this.containerElem.clientWidth<=414:this.componentBreakpoint=0;break;case this.containerElem.clientWidth<640:this.componentBreakpoint=414;break;default:this.componentBreakpoint=640}}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver(()=>this.setBreakpoint()),this.updateComplete.then(()=>{this.setBreakpoint(),this.resizeObserver.observe(this.containerElem)})}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.unobserve(this.containerElem)}renderTopBrandshape(){return p`<div class="relative" part="shape-top">${this.getSvg(this.componentBreakpoint,"top")} ${this.renderWhitespaceFix("top")}</div>`}renderMiddleBrandshape(){return p`<div class="${c({0:"px-6 py-4",414:"px-10 py-8",640:"px-10 py-8"}[this.componentBreakpoint],"w-full block relative")}"><div part="shape-middle" class="${c({"neutral-100":"bg-neutral-100",primary:"bg-primary",white:"bg-white","border-white":"bg-transparent","border-primary":"bg-transparent",image:"bg-transparent"}[this.variant],"w-full block absolute h-full top-0 left-0 z-0")}"></div><div class="${c("z-10 relative",this.variant==="image"&&"invisible opacity-0")}" part="content"><slot>${this.variant==="image"?"":p`<div class="h-8"></div>`}</slot></div></div>`}renderBottomBrandshape(){return p`<div class="relative" part="shape-bottom">${this.getSvg(this.componentBreakpoint,"bottom")}${this.renderWhitespaceFix("bottom")}</div>`}renderWhitespaceFix(t){return p`<div class="${c({"neutral-100":"bg-neutral-100",primary:"bg-primary",white:"bg-white","border-white":"bg-transparent","border-primary":"bg-transparent",image:"bg-transparent"}[this.variant],{top:"bottom-0",bottom:"top-0"}[t],"block absolute left-0 w-full h-[1px]")}"></div>`}renderStylizedVariant(){return p`<div part="stylized-container" class="w-full overflow-hidden"><slot class="${c(this.variant!=="image"&&"hidden")}" name="image"></slot></div>`}renderShapes(){return p`${this.shapes.includes("top")?this.renderTopBrandshape():""} ${this.shapes.includes("middle")?this.renderMiddleBrandshape():""} ${this.shapes.includes("bottom")?this.renderBottomBrandshape():""}`}render(){let t=this.variant.startsWith("border-")||this.variant==="image";return p`<div class="${c(t&&"fill-transparent","relative")}" part="base">${t?this.renderStylizedVariant():""} ${this.renderShapes()}</div>`}};Zt.styles=[...f.styles,x`/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
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
- )}@supports not (transform:skewY(11deg)){:host{--tan:0.1943803091}}@media (min-width:415px){:host{--radius:72px}}@media (min-width:640px){:host{--radius:84px}}:host([variant=image]) [part=stylized-container],:host([variant^=border-]) [part=stylized-container]::before{position:absolute;top:calc(var(--sd-spacing-1) * 0);left:calc(var(--sd-spacing-1) * 0);transform:skewY(calc(var(--angle) * -1));height:calc(100% - var(--curve) * 2);border-radius:0 var(--radius);margin-top:calc(var(--curve))}slot[name=image]::slotted(img),slot[name=image]::slotted(video){width:100%;-o-object-fit:cover;object-fit:cover;transform:translateY(calc(var(--curve) * -1)) skewY(var(--angle));height:calc(100% + var(--curve) * 2)!important;position:absolute!important}@supports not (height:100cqw){:host([variant=image]) [part=stylized-container],:host([variant^=border-]) [part=stylized-container]::before{transform:unset;height:100%;margin-top:0}slot[name=image]::slotted(img),slot[name=image]::slotted(video){transform:unset;height:100%!important}}:host([variant=border-primary]){--internal-border-color:rgba(var(--sd-color-border-primary, rgba(var(--sd-color-primary))))}:host([variant=border-white]){--internal-border-color:rgba(var(--sd-color-border-white, rgba(var(--sd-color-white))))}:host([variant^=border-]) [part=stylized-container]::before{right:calc(var(--sd-spacing-1) * 0);border-style:var(--tw-border-style);border-width:var(--sd-border-width-2);--tw-border-style:solid;border-style:solid;content:'';border-color:var(--internal-border-color,#000)}:host([variant=neutral-100]) [part=base]{fill:rgba(var(--sd-brandshape--neutral-100-color-background,rgba(var(--sd-color-neutral-100))))}:host([variant=white]) [part=base]{fill:rgba(var(--sd-color-background-white,rgba(var(--sd-color-white))))}:host([variant=primary]) [part=base]{fill:rgba(var(--sd-color-background-primary,rgba(var(--sd-color-primary))))}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}`],a([v("[part=base]")],Zt.prototype,"containerElem",2),a([d({type:String,reflect:!0})],Zt.prototype,"variant",2),a([d({type:Array})],Zt.prototype,"shapes",2),a([L()],Zt.prototype,"componentBreakpoint",2),Zt=a([k("sd-brandshape")],Zt);var ge=Math.min,Ht=Math.max,ji=Math.round,Wi=Math.floor,oe=s=>({x:s,y:s}),Ql={left:"right",right:"left",bottom:"top",top:"bottom"},Gl={start:"end",end:"start"};function Lr(s,i,t){return Ht(s,ge(i,t))}function ni(s,i){return typeof s=="function"?s(i):s}function Te(s){return s.split("-")[0]}function li(s){return s.split("-")[1]}function ys(s){return s==="x"?"y":"x"}function zr(s){return s==="y"?"height":"width"}var Jl=new Set(["top","bottom"]);function be(s){return Jl.has(Te(s))?"y":"x"}function Sr(s){return ys(be(s))}function Oa(s,i,t){t===void 0&&(t=!1);let e=li(s),r=Sr(s),o=zr(r),n=r==="x"?e===(t?"end":"start")?"right":"left":e==="start"?"bottom":"top";return i.reference[o]>i.floating[o]&&(n=Ki(n)),[n,Ki(n)]}function _a(s){let i=Ki(s);return[Tr(s),i,Tr(i)]}function Tr(s){return s.replace(/start|end/g,i=>Gl[i])}var Da=["left","right"],Aa=["right","left"],td=["top","bottom"],ed=["bottom","top"];function id(s,i,t){switch(s){case"top":case"bottom":return t?i?Aa:Da:i?Da:Aa;case"left":case"right":return i?td:ed;default:return[]}}function Ia(s,i,t,e){let r=li(s),o=id(Te(s),t==="start",e);return r&&(o=o.map(n=>n+"-"+r),i&&(o=o.concat(o.map(Tr)))),o}function Ki(s){return s.replace(/left|right|bottom|top/g,i=>Ql[i])}function rd(s){return U({top:0,right:0,bottom:0,left:0},s)}function ws(s){return typeof s!="number"?rd(s):{top:s,right:s,bottom:s,left:s}}function di(s){let{x:i,y:t,width:e,height:r}=s;return{width:e,height:r,top:t,left:i,right:i+e,bottom:t+r,x:i,y:t}}function Pa(s,i,t){let{reference:e,floating:r}=s,o=be(i),n=Sr(i),l=zr(n),h=Te(i),u=o==="y",m=e.x+e.width/2-r.width/2,g=e.y+e.height/2-r.height/2,w=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:g};break;case"left":b={x:e.x-r.width,y:g};break;default:b={x:e.x,y:e.y}}switch(li(i)){case"start":b[n]-=w*(t&&u?-1:1);break;case"end":b[n]+=w*(t&&u?-1:1);break}return b}async function Ha(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:g="floating",altBoundary:w=!1,padding:b=0}=ni(i,s),y=ws(b),z=l[w?g==="floating"?"reference":"floating":g],S=di(await o.getClippingRect({element:(t=await(o.isElement==null?void 0:o.isElement(z)))==null||t?z:z.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(l.floating)),boundary:u,rootBoundary:m,strategy:h})),I=g==="floating"?{x:e,y:r,width:n.floating.width,height:n.floating.height}:n.reference,D=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l.floating)),N=await(o.isElement==null?void 0:o.isElement(D))?await(o.getScale==null?void 0:o.getScale(D))||{x:1,y:1}:{x:1,y:1},_=di(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:I,offsetParent:D,strategy:h}):I);return{top:(S.top-_.top+y.top)/N.y,bottom:(_.bottom-S.bottom+y.bottom)/N.y,left:(S.left-_.left+y.left)/N.x,right:(_.right-S.right+y.right)/N.x}}var Va=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:g}=Pa(u,e,h),w=e,b={},y=0;for(let z=0;z<l.length;z++){var $;let{name:S,fn:I}=l[z],{x:D,y:N,data:_,reset:F}=await I({x:m,y:g,initialPlacement:e,placement:w,strategy:r,middlewareData:b,rects:u,platform:yt(U({},n),{detectOverflow:($=n.detectOverflow)!=null?$:Ha}),elements:{reference:s,floating:i}});m=D!=null?D:m,g=N!=null?N:g,b=yt(U({},b),{[S]:U(U({},b[S]),_)}),F&&y<=50&&(y++,typeof F=="object"&&(F.placement&&(w=F.placement),F.rects&&(u=F.rects===!0?await n.getElementRects({reference:s,floating:i,strategy:r}):F.rects),{x:m,y:g}=Pa(u,w,h)),z=-1)}return{x:m,y:g,placement:w,strategy:r,middlewareData:b}},Fa=s=>({name:"arrow",options:s,async fn(i){let{x:t,y:e,placement:r,rects:o,platform:n,elements:l,middlewareData:h}=i,{element:u,padding:m=0}=ni(s,i)||{};if(u==null)return{};let g=ws(m),w={x:t,y:e},b=Sr(r),y=zr(b),$=await n.getDimensions(u),z=b==="y",S=z?"top":"left",I=z?"bottom":"right",D=z?"clientHeight":"clientWidth",N=o.reference[y]+o.reference[b]-w[b]-o.floating[y],_=w[b]-o.reference[b],F=await(n.getOffsetParent==null?void 0:n.getOffsetParent(u)),W=F?F[D]:0;(!W||!await(n.isElement==null?void 0:n.isElement(F)))&&(W=l.floating[D]||o.floating[y]);let Pt=N/2-_/2,vt=W/2-$[y]/2-1,ht=ge(g[S],vt),Lt=ge(g[I],vt),tt=ht,ft=W-$[y]-Lt,gt=W/2-$[y]/2+Pt,ee=Lr(tt,gt,ft),je=!h.arrow&&li(r)!=null&&gt!==ee&&o.reference[y]/2-(gt<tt?ht:Lt)-$[y]/2<0,xe=je?gt<tt?gt-tt:gt-ft:0;return{[b]:w[b]+xe,data:U({[b]:ee,centerOffset:gt-ee-xe},je&&{alignmentOffset:xe}),reset:je}}});var Ra=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,gt=ni(s,i),{mainAxis:m=!0,crossAxis:g=!0,fallbackPlacements:w,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:$=!0}=gt,z=ar(gt,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((t=o.arrow)!=null&&t.alignmentOffset)return{};let S=Te(r),I=be(l),D=Te(l)===l,N=await(h.isRTL==null?void 0:h.isRTL(u.floating)),_=w||(D||!$?[Ki(l)]:_a(l)),F=y!=="none";!w&&F&&_.push(...Ia(l,$,y,N));let W=[l,..._],Pt=await h.detectOverflow(i,z),vt=[],ht=((e=o.flip)==null?void 0:e.overflows)||[];if(m&&vt.push(Pt[S]),g){let ee=Oa(r,n,N);vt.push(Pt[ee[0]],Pt[ee[1]])}if(ht=[...ht,{placement:r,overflows:vt}],!vt.every(ee=>ee<=0)){var Lt,tt;let ee=(((Lt=o.flip)==null?void 0:Lt.index)||0)+1,je=W[ee];if(je&&(!(g==="alignment"?I!==be(je):!1)||ht.every(ie=>be(ie.placement)===I?ie.overflows[0]>0:!0)))return{data:{index:ee,overflows:ht},reset:{placement:je}};let xe=(tt=ht.filter(We=>We.overflows[0]<=0).sort((We,ie)=>We.overflows[1]-ie.overflows[1])[0])==null?void 0:tt.placement;if(!xe)switch(b){case"bestFit":{var ft;let We=(ft=ht.filter(ie=>{if(F){let He=be(ie.placement);return He===I||He==="y"}return!0}).map(ie=>[ie.placement,ie.overflows.filter(He=>He>0).reduce((He,Ao)=>He+Ao,0)]).sort((ie,He)=>ie[1]-He[1])[0])==null?void 0:ft[0];We&&(xe=We);break}case"initialPlacement":xe=l;break}if(r!==xe)return{reset:{placement:xe}}}return{}}}};var sd=new Set(["left","top"]);async function ad(s,i){let{placement:t,platform:e,elements:r}=s,o=await(e.isRTL==null?void 0:e.isRTL(r.floating)),n=Te(t),l=li(t),h=be(t)==="y",u=sd.has(n)?-1:1,m=o&&h?-1:1,g=ni(i,s),{mainAxis:w,crossAxis:b,alignmentAxis:y}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return l&&typeof y=="number"&&(b=l==="end"?y*-1:y),h?{x:b*m,y:w*u}:{x:w*u,y:b*m}}var Ba=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 ad(i,s);return n===((t=l.offset)==null?void 0:t.placement)&&(e=l.arrow)!=null&&e.alignmentOffset?{}:{x:r+h.x,y:o+h.y,data:yt(U({},h),{placement:n})}}}},Na=function(s){return s===void 0&&(s={}),{name:"shift",options:s,async fn(i){let{x:t,y:e,placement:r,platform:o}=i,S=ni(s,i),{mainAxis:n=!0,crossAxis:l=!1,limiter:h={fn:I=>{let{x:D,y:N}=I;return{x:D,y:N}}}}=S,u=ar(S,["mainAxis","crossAxis","limiter"]),m={x:t,y:e},g=await o.detectOverflow(i,u),w=be(Te(r)),b=ys(w),y=m[b],$=m[w];if(n){let I=b==="y"?"top":"left",D=b==="y"?"bottom":"right",N=y+g[I],_=y-g[D];y=Lr(N,y,_)}if(l){let I=w==="y"?"top":"left",D=w==="y"?"bottom":"right",N=$+g[I],_=$-g[D];$=Lr(N,$,_)}let z=h.fn(yt(U({},i),{[b]:y,[w]:$}));return yt(U({},z),{data:{x:z.x-t,y:z.y-e,enabled:{[b]:n,[w]:l}}})}}};var Ua=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,ht=ni(s,i),{apply:h=()=>{}}=ht,u=ar(ht,["apply"]),m=await n.detectOverflow(i,u),g=Te(r),w=li(r),b=be(r)==="y",{width:y,height:$}=o.floating,z,S;g==="top"||g==="bottom"?(z=g,S=w===(await(n.isRTL==null?void 0:n.isRTL(l.floating))?"start":"end")?"left":"right"):(S=g,z=w==="end"?"top":"bottom");let I=$-m.top-m.bottom,D=y-m.left-m.right,N=ge($-m[z],I),_=ge(y-m[S],D),F=!i.middlewareData.shift,W=N,Pt=_;if((t=i.middlewareData.shift)!=null&&t.enabled.x&&(Pt=D),(e=i.middlewareData.shift)!=null&&e.enabled.y&&(W=I),F&&!w){let Lt=Ht(m.left,0),tt=Ht(m.right,0),ft=Ht(m.top,0),gt=Ht(m.bottom,0);b?Pt=y-2*(Lt!==0||tt!==0?Lt+tt:Ht(m.left,m.right)):W=$-2*(ft!==0||gt!==0?ft+gt:Ht(m.top,m.bottom))}await h(yt(U({},i),{availableWidth:Pt,availableHeight:W}));let vt=await n.getDimensions(l.floating);return y!==vt.width||$!==vt.height?{reset:{rects:!0}}:{}}}};function Mr(){return typeof window!="undefined"}function ci(s){return Ka(s)?(s.nodeName||"").toLowerCase():"#document"}function Nt(s){var i;return(s==null||(i=s.ownerDocument)==null?void 0:i.defaultView)||window}function ne(s){var i;return(i=(Ka(s)?s.ownerDocument:s.document)||window.document)==null?void 0:i.documentElement}function Ka(s){return Mr()?s instanceof Node||s instanceof Nt(s).Node:!1}function Qt(s){return Mr()?s instanceof Element||s instanceof Nt(s).Element:!1}function le(s){return Mr()?s instanceof HTMLElement||s instanceof Nt(s).HTMLElement:!1}function qa(s){return!Mr()||typeof ShadowRoot=="undefined"?!1:s instanceof ShadowRoot||s instanceof Nt(s).ShadowRoot}var od=new Set(["inline","contents"]);function ki(s){let{overflow:i,overflowX:t,overflowY:e,display:r}=Gt(s);return/auto|scroll|overlay|hidden|clip/.test(i+e+t)&&!od.has(r)}var nd=new Set(["table","td","th"]);function ja(s){return nd.has(ci(s))}var ld=[":popover-open",":modal"];function Yi(s){return ld.some(i=>{try{return s.matches(i)}catch(t){return!1}})}var dd=["transform","translate","scale","rotate","perspective"],cd=["transform","translate","scale","rotate","perspective","filter"],hd=["paint","layout","strict","content"];function Dr(s){let i=Ar(),t=Qt(s)?Gt(s):s;return dd.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)||cd.some(e=>(t.willChange||"").includes(e))||hd.some(e=>(t.contain||"").includes(e))}function Wa(s){let i=Le(s);for(;le(i)&&!hi(i);){if(Dr(i))return i;if(Yi(i))return null;i=Le(i)}return null}function Ar(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var ud=new Set(["html","body","#document"]);function hi(s){return ud.has(ci(s))}function Gt(s){return Nt(s).getComputedStyle(s)}function Xi(s){return Qt(s)?{scrollLeft:s.scrollLeft,scrollTop:s.scrollTop}:{scrollLeft:s.scrollX,scrollTop:s.scrollY}}function Le(s){if(ci(s)==="html")return s;let i=s.assignedSlot||s.parentNode||qa(s)&&s.host||ne(s);return qa(i)?i.host:i}function Ya(s){let i=Le(s);return hi(i)?s.ownerDocument?s.ownerDocument.body:s.body:le(i)&&ki(i)?i:Ya(i)}function xi(s,i,t){var e;i===void 0&&(i=[]),t===void 0&&(t=!0);let r=Ya(s),o=r===((e=s.ownerDocument)==null?void 0:e.body),n=Nt(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 Ga(s){let i=Gt(s),t=parseFloat(i.width)||0,e=parseFloat(i.height)||0,r=le(s),o=r?s.offsetWidth:t,n=r?s.offsetHeight:e,l=ji(t)!==o||ji(e)!==n;return l&&(t=o,e=n),{width:t,height:e,$:l}}function ks(s){return Qt(s)?s:s.contextElement}function Ci(s){let i=ks(s);if(!le(i))return oe(1);let t=i.getBoundingClientRect(),{width:e,height:r,$:o}=Ga(i),n=(o?ji(t.width):t.width)/e,l=(o?ji(t.height):t.height)/r;return(!n||!Number.isFinite(n))&&(n=1),(!l||!Number.isFinite(l))&&(l=1),{x:n,y:l}}var pd=oe(0);function Ja(s){let i=Nt(s);return!Ar()||!i.visualViewport?pd:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function md(s,i,t){return i===void 0&&(i=!1),!t||i&&t!==Nt(s)?!1:i}function ui(s,i,t,e){i===void 0&&(i=!1),t===void 0&&(t=!1);let r=s.getBoundingClientRect(),o=ks(s),n=oe(1);i&&(e?Qt(e)&&(n=Ci(e)):n=Ci(s));let l=md(o,t,e)?Ja(o):oe(0),h=(r.left+l.x)/n.x,u=(r.top+l.y)/n.y,m=r.width/n.x,g=r.height/n.y;if(o){let w=Nt(o),b=e&&Qt(e)?Nt(e):e,y=w,$=Or(y);for(;$&&e&&b!==y;){let z=Ci($),S=$.getBoundingClientRect(),I=Gt($),D=S.left+($.clientLeft+parseFloat(I.paddingLeft))*z.x,N=S.top+($.clientTop+parseFloat(I.paddingTop))*z.y;h*=z.x,u*=z.y,m*=z.x,g*=z.y,h+=D,u+=N,y=Nt($),$=Or(y)}}return di({width:m,height:g,x:h,y:u})}function _r(s,i){let t=Xi(s).scrollLeft;return i?i.left+t:ui(ne(s)).left+t}function to(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 fd(s){let{elements:i,rect:t,offsetParent:e,strategy:r}=s,o=r==="fixed",n=ne(e),l=i?Yi(i.floating):!1;if(e===n||l&&o)return t;let h={scrollLeft:0,scrollTop:0},u=oe(1),m=oe(0),g=le(e);if((g||!g&&!o)&&((ci(e)!=="body"||ki(n))&&(h=Xi(e)),le(e))){let b=ui(e);u=Ci(e),m.x=b.x+e.clientLeft,m.y=b.y+e.clientTop}let w=n&&!g&&!o?to(n,h):oe(0);return{width:t.width*u.x,height:t.height*u.y,x:t.x*u.x-h.scrollLeft*u.x+m.x+w.x,y:t.y*u.y-h.scrollTop*u.y+m.y+w.y}}function gd(s){return Array.from(s.getClientRects())}function bd(s){let i=ne(s),t=Xi(s),e=s.ownerDocument.body,r=Ht(i.scrollWidth,i.clientWidth,e.scrollWidth,e.clientWidth),o=Ht(i.scrollHeight,i.clientHeight,e.scrollHeight,e.clientHeight),n=-t.scrollLeft+_r(s),l=-t.scrollTop;return Gt(e).direction==="rtl"&&(n+=Ht(i.clientWidth,e.clientWidth)-r),{width:r,height:o,x:n,y:l}}var Xa=25;function vd(s,i){let t=Nt(s),e=ne(s),r=t.visualViewport,o=e.clientWidth,n=e.clientHeight,l=0,h=0;if(r){o=r.width,n=r.height;let m=Ar();(!m||m&&i==="fixed")&&(l=r.offsetLeft,h=r.offsetTop)}let u=_r(e);if(u<=0){let m=e.ownerDocument,g=m.body,w=getComputedStyle(g),b=m.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,y=Math.abs(e.clientWidth-g.clientWidth-b);y<=Xa&&(o-=y)}else u<=Xa&&(o+=u);return{width:o,height:n,x:l,y:h}}var yd=new Set(["absolute","fixed"]);function wd(s,i){let t=ui(s,!0,i==="fixed"),e=t.top+s.clientTop,r=t.left+s.clientLeft,o=le(s)?Ci(s):oe(1),n=s.clientWidth*o.x,l=s.clientHeight*o.y,h=r*o.x,u=e*o.y;return{width:n,height:l,x:h,y:u}}function Za(s,i,t){let e;if(i==="viewport")e=vd(s,t);else if(i==="document")e=bd(ne(s));else if(Qt(i))e=wd(i,t);else{let r=Ja(s);e={x:i.x-r.x,y:i.y-r.y,width:i.width,height:i.height}}return di(e)}function eo(s,i){let t=Le(s);return t===i||!Qt(t)||hi(t)?!1:Gt(t).position==="fixed"||eo(t,i)}function xd(s,i){let t=i.get(s);if(t)return t;let e=xi(s,[],!1).filter(l=>Qt(l)&&ci(l)!=="body"),r=null,o=Gt(s).position==="fixed",n=o?Le(s):s;for(;Qt(n)&&!hi(n);){let l=Gt(n),h=Dr(n);!h&&l.position==="fixed"&&(r=null),(o?!h&&!r:!h&&l.position==="static"&&!!r&&yd.has(r.position)||ki(n)&&!h&&eo(s,n))?e=e.filter(m=>m!==n):r=l,n=Le(n)}return i.set(s,e),e}function kd(s){let{element:i,boundary:t,rootBoundary:e,strategy:r}=s,n=[...t==="clippingAncestors"?Yi(i)?[]:xd(i,this._c):[].concat(t),e],l=n[0],h=n.reduce((u,m)=>{let g=Za(i,m,r);return u.top=Ht(g.top,u.top),u.right=ge(g.right,u.right),u.bottom=ge(g.bottom,u.bottom),u.left=Ht(g.left,u.left),u},Za(i,l,r));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function Cd(s){let{width:i,height:t}=Ga(s);return{width:i,height:t}}function Ed(s,i,t){let e=le(i),r=ne(i),o=t==="fixed",n=ui(s,!0,o,i),l={scrollLeft:0,scrollTop:0},h=oe(0);function u(){h.x=_r(r)}if(e||!e&&!o)if((ci(i)!=="body"||ki(r))&&(l=Xi(i)),e){let b=ui(i,!0,o,i);h.x=b.x+i.clientLeft,h.y=b.y+i.clientTop}else r&&u();o&&!e&&r&&u();let m=r&&!e&&!o?to(r,l):oe(0),g=n.left+l.scrollLeft-h.x-m.x,w=n.top+l.scrollTop-h.y-m.y;return{x:g,y:w,width:n.width,height:n.height}}function xs(s){return Gt(s).position==="static"}function Qa(s,i){if(!le(s)||Gt(s).position==="fixed")return null;if(i)return i(s);let t=s.offsetParent;return ne(s)===t&&(t=t.ownerDocument.body),t}function io(s,i){let t=Nt(s);if(Yi(s))return t;if(!le(s)){let r=Le(s);for(;r&&!hi(r);){if(Qt(r)&&!xs(r))return r;r=Le(r)}return t}let e=Qa(s,i);for(;e&&ja(e)&&xs(e);)e=Qa(e,i);return e&&hi(e)&&xs(e)&&!Dr(e)?t:e||Wa(s)||t}var $d=async function(s){let i=this.getOffsetParent||io,t=this.getDimensions,e=await t(s.floating);return{reference:Ed(s.reference,await i(s.floating),s.strategy),floating:{x:0,y:0,width:e.width,height:e.height}}};function Td(s){return Gt(s).direction==="rtl"}var Ld={convertOffsetParentRelativeRectToViewportRelativeRect:fd,getDocumentElement:ne,getClippingRect:kd,getOffsetParent:io,getElementRects:$d,getClientRects:gd,getDimensions:Cd,getScale:Ci,isElement:Qt,isRTL:Td};function ro(s,i){return s.x===i.x&&s.y===i.y&&s.width===i.width&&s.height===i.height}function zd(s,i){let t=null,e,r=ne(s);function o(){var l;clearTimeout(e),(l=t)==null||l.disconnect(),t=null}function n(l,h){l===void 0&&(l=!1),h===void 0&&(h=1),o();let u=s.getBoundingClientRect(),{left:m,top:g,width:w,height:b}=u;if(l||i(),!w||!b)return;let y=Wi(g),$=Wi(r.clientWidth-(m+w)),z=Wi(r.clientHeight-(g+b)),S=Wi(m),D={rootMargin:-y+"px "+-$+"px "+-z+"px "+-S+"px",threshold:Ht(0,ge(1,h))||1},N=!0;function _(F){let W=F[0].intersectionRatio;if(W!==h){if(!N)return n();W?n(!1,W):e=setTimeout(()=>{n(!1,1e-7)},1e3)}W===1&&!ro(u,s.getBoundingClientRect())&&n(),N=!1}try{t=new IntersectionObserver(_,yt(U({},D),{root:r.ownerDocument}))}catch(F){t=new IntersectionObserver(_,D)}t.observe(s)}return n(!0),o}function so(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=ks(s),m=r||o?[...u?xi(u):[],...xi(i)]:[];m.forEach(S=>{r&&S.addEventListener("scroll",t,{passive:!0}),o&&S.addEventListener("resize",t)});let g=u&&l?zd(u,t):null,w=-1,b=null;n&&(b=new ResizeObserver(S=>{let[I]=S;I&&I.target===u&&b&&(b.unobserve(i),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var D;(D=b)==null||D.observe(i)})),t()}),u&&!h&&b.observe(u),b.observe(i));let y,$=h?ui(s):null;h&&z();function z(){let S=ui(s);$&&!ro($,S)&&t(),$=S,y=requestAnimationFrame(z)}return t(),()=>{var S;m.forEach(I=>{r&&I.removeEventListener("scroll",t),o&&I.removeEventListener("resize",t)}),g==null||g(),(S=b)==null||S.disconnect(),b=null,h&&cancelAnimationFrame(y)}}var ao=Ba;var oo=Na,no=Ra,Cs=Ua;var lo=Fa;var co=(s,i,t)=>{let e=new Map,r=U({platform:Ld},t),o=yt(U({},r.platform),{_c:e});return Va(s,i,yt(U({},r),{platform:o}))};var Q=class extends f{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=so(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=[ao({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?t.push(Cs({apply:({rects:e})=>{let r=this.sync==="width"||this.sync==="both",o=this.sync==="height"||this.sync==="both";this.popup.style.width=r?`${e.reference.width}px`:"",this.popup.style.height=o?`${e.reference.height}px`:""}})):(this.popup.style.width="",this.popup.style.height=""),this.flip&&t.push(no({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:this.flipFallbackStrategy==="best-fit"?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&t.push(oo({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?t.push(Cs({boundary:this.autoSizeBoundary,padding:this.autoSizePadding,apply:({availableWidth:e,availableHeight:r})=>{this.autoSize==="vertical"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-height",`${r}px`):this.style.removeProperty("--auto-size-available-height"),this.autoSize==="horizontal"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-width",`${e}px`):this.style.removeProperty("--auto-size-available-width")}})):(this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height")),this.arrow&&t.push(lo({element:this.arrowEl,padding:this.arrowPadding})),co(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,g="",w="",b="",y="";if(this.arrowPlacement==="start"){let $=typeof u=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";g=typeof m=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",w=l?$:"",y=l?"":$}else if(this.arrowPlacement==="end"){let $=typeof u=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";w=l?"":$,y=l?$:"",b=typeof m=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""}else this.arrowPlacement==="center"?(y=typeof u=="number"?"calc(50% - var(--arrow-size-diagonal))":"",g=typeof m=="number"?"calc(50% - var(--arrow-size-diagonal))":""):(y=typeof u=="number"?`${u}px`:"",g=typeof m=="number"?`${m}px`:"");Object.assign(this.arrowEl.style,{top:g,right:w,bottom:b,left:y,[h]:"calc(var(--arrow-size-diagonal) * -1)"})}}),this.emit("sd-reposition")}render(){return p`<slot name="anchor" @slotchange="${this.handleAnchorChange}"></slot><div part="popup" class="${c("isolate",this.strategy!=="fixed"?"absolute":"fixed",!this.active&&"hidden")}"><slot></slot>${this.arrow?p`<div part="arrow" class="absolute rotate-45 -z-10" role="presentation"></div>`:""}</div>`}};Q.styles=[...f.styles,x`/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
188
+ )}@supports not (transform:skewY(11deg)){:host{--tan:0.1943803091}}@media (min-width:415px){:host{--radius:72px}}@media (min-width:640px){:host{--radius:84px}}:host([variant=image]) [part=stylized-container],:host([variant^=border-]) [part=stylized-container]::before{position:absolute;top:calc(var(--sd-spacing-1) * 0);left:calc(var(--sd-spacing-1) * 0);transform:skewY(calc(var(--angle) * -1));height:calc(100% - var(--curve) * 2);border-radius:0 var(--radius);margin-top:calc(var(--curve))}slot[name=image]::slotted(img),slot[name=image]::slotted(video){width:100%;-o-object-fit:cover;object-fit:cover;transform:translateY(calc(var(--curve) * -1)) skewY(var(--angle));height:calc(100% + var(--curve) * 2)!important;position:absolute!important}@supports not (height:100cqw){:host([variant=image]) [part=stylized-container],:host([variant^=border-]) [part=stylized-container]::before{transform:unset;height:100%;margin-top:0}slot[name=image]::slotted(img),slot[name=image]::slotted(video){transform:unset;height:100%!important}}:host([variant=border-primary]){--internal-border-color:rgba(var(--sd-color-border-primary, rgba(var(--sd-color-primary))))}:host([variant=border-white]){--internal-border-color:rgba(var(--sd-color-border-white, rgba(var(--sd-color-white))))}:host([variant^=border-]) [part=stylized-container]::before{right:calc(var(--sd-spacing-1) * 0);border-style:var(--tw-border-style);border-width:var(--sd-border-width-2);--tw-border-style:solid;border-style:solid;content:'';border-color:var(--internal-border-color,#000)}:host([variant=neutral-100]) [part=base]{fill:rgba(var(--sd-brandshape--neutral-100-color-background,rgba(var(--sd-color-neutral-100))))}:host([variant=white]) [part=base]{fill:rgba(var(--sd-color-background-white,rgba(var(--sd-color-white))))}:host([variant=primary]) [part=base]{fill:rgba(var(--sd-color-background-primary,rgba(var(--sd-color-primary))))}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}`],a([v("[part=base]")],Zt.prototype,"containerElem",2),a([d({type:String,reflect:!0})],Zt.prototype,"variant",2),a([d({type:Array})],Zt.prototype,"shapes",2),a([L()],Zt.prototype,"componentBreakpoint",2),Zt=a([k("sd-brandshape")],Zt);var ge=Math.min,Ht=Math.max,ji=Math.round,Wi=Math.floor,oe=s=>({x:s,y:s}),Ql={left:"right",right:"left",bottom:"top",top:"bottom"},Gl={start:"end",end:"start"};function Lr(s,i,t){return Ht(s,ge(i,t))}function ni(s,i){return typeof s=="function"?s(i):s}function Te(s){return s.split("-")[0]}function li(s){return s.split("-")[1]}function ys(s){return s==="x"?"y":"x"}function zr(s){return s==="y"?"height":"width"}var Jl=new Set(["top","bottom"]);function be(s){return Jl.has(Te(s))?"y":"x"}function Sr(s){return ys(be(s))}function Oa(s,i,t){t===void 0&&(t=!1);let e=li(s),r=Sr(s),o=zr(r),n=r==="x"?e===(t?"end":"start")?"right":"left":e==="start"?"bottom":"top";return i.reference[o]>i.floating[o]&&(n=Ki(n)),[n,Ki(n)]}function _a(s){let i=Ki(s);return[Tr(s),i,Tr(i)]}function Tr(s){return s.replace(/start|end/g,i=>Gl[i])}var Da=["left","right"],Aa=["right","left"],td=["top","bottom"],ed=["bottom","top"];function id(s,i,t){switch(s){case"top":case"bottom":return t?i?Aa:Da:i?Da:Aa;case"left":case"right":return i?td:ed;default:return[]}}function Ia(s,i,t,e){let r=li(s),o=id(Te(s),t==="start",e);return r&&(o=o.map(n=>n+"-"+r),i&&(o=o.concat(o.map(Tr)))),o}function Ki(s){return s.replace(/left|right|bottom|top/g,i=>Ql[i])}function rd(s){return U({top:0,right:0,bottom:0,left:0},s)}function ws(s){return typeof s!="number"?rd(s):{top:s,right:s,bottom:s,left:s}}function di(s){let{x:i,y:t,width:e,height:r}=s;return{width:e,height:r,top:t,left:i,right:i+e,bottom:t+r,x:i,y:t}}function Pa(s,i,t){let{reference:e,floating:r}=s,o=be(i),n=Sr(i),l=zr(n),h=Te(i),u=o==="y",m=e.x+e.width/2-r.width/2,g=e.y+e.height/2-r.height/2,w=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:g};break;case"left":b={x:e.x-r.width,y:g};break;default:b={x:e.x,y:e.y}}switch(li(i)){case"start":b[n]-=w*(t&&u?-1:1);break;case"end":b[n]+=w*(t&&u?-1:1);break}return b}async function Ha(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:g="floating",altBoundary:w=!1,padding:b=0}=ni(i,s),y=ws(b),z=l[w?g==="floating"?"reference":"floating":g],S=di(await o.getClippingRect({element:(t=await(o.isElement==null?void 0:o.isElement(z)))==null||t?z:z.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(l.floating)),boundary:u,rootBoundary:m,strategy:h})),I=g==="floating"?{x:e,y:r,width:n.floating.width,height:n.floating.height}:n.reference,D=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l.floating)),N=await(o.isElement==null?void 0:o.isElement(D))?await(o.getScale==null?void 0:o.getScale(D))||{x:1,y:1}:{x:1,y:1},_=di(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:I,offsetParent:D,strategy:h}):I);return{top:(S.top-_.top+y.top)/N.y,bottom:(_.bottom-S.bottom+y.bottom)/N.y,left:(S.left-_.left+y.left)/N.x,right:(_.right-S.right+y.right)/N.x}}var Va=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:g}=Pa(u,e,h),w=e,b={},y=0;for(let z=0;z<l.length;z++){var $;let{name:S,fn:I}=l[z],{x:D,y:N,data:_,reset:F}=await I({x:m,y:g,initialPlacement:e,placement:w,strategy:r,middlewareData:b,rects:u,platform:yt(U({},n),{detectOverflow:($=n.detectOverflow)!=null?$:Ha}),elements:{reference:s,floating:i}});m=D!=null?D:m,g=N!=null?N:g,b=yt(U({},b),{[S]:U(U({},b[S]),_)}),F&&y<=50&&(y++,typeof F=="object"&&(F.placement&&(w=F.placement),F.rects&&(u=F.rects===!0?await n.getElementRects({reference:s,floating:i,strategy:r}):F.rects),{x:m,y:g}=Pa(u,w,h)),z=-1)}return{x:m,y:g,placement:w,strategy:r,middlewareData:b}},Fa=s=>({name:"arrow",options:s,async fn(i){let{x:t,y:e,placement:r,rects:o,platform:n,elements:l,middlewareData:h}=i,{element:u,padding:m=0}=ni(s,i)||{};if(u==null)return{};let g=ws(m),w={x:t,y:e},b=Sr(r),y=zr(b),$=await n.getDimensions(u),z=b==="y",S=z?"top":"left",I=z?"bottom":"right",D=z?"clientHeight":"clientWidth",N=o.reference[y]+o.reference[b]-w[b]-o.floating[y],_=w[b]-o.reference[b],F=await(n.getOffsetParent==null?void 0:n.getOffsetParent(u)),W=F?F[D]:0;(!W||!await(n.isElement==null?void 0:n.isElement(F)))&&(W=l.floating[D]||o.floating[y]);let Pt=N/2-_/2,vt=W/2-$[y]/2-1,ht=ge(g[S],vt),Lt=ge(g[I],vt),tt=ht,ft=W-$[y]-Lt,gt=W/2-$[y]/2+Pt,ee=Lr(tt,gt,ft),je=!h.arrow&&li(r)!=null&&gt!==ee&&o.reference[y]/2-(gt<tt?ht:Lt)-$[y]/2<0,xe=je?gt<tt?gt-tt:gt-ft:0;return{[b]:w[b]+xe,data:U({[b]:ee,centerOffset:gt-ee-xe},je&&{alignmentOffset:xe}),reset:je}}});var Ra=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,gt=ni(s,i),{mainAxis:m=!0,crossAxis:g=!0,fallbackPlacements:w,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:$=!0}=gt,z=ar(gt,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((t=o.arrow)!=null&&t.alignmentOffset)return{};let S=Te(r),I=be(l),D=Te(l)===l,N=await(h.isRTL==null?void 0:h.isRTL(u.floating)),_=w||(D||!$?[Ki(l)]:_a(l)),F=y!=="none";!w&&F&&_.push(...Ia(l,$,y,N));let W=[l,..._],Pt=await h.detectOverflow(i,z),vt=[],ht=((e=o.flip)==null?void 0:e.overflows)||[];if(m&&vt.push(Pt[S]),g){let ee=Oa(r,n,N);vt.push(Pt[ee[0]],Pt[ee[1]])}if(ht=[...ht,{placement:r,overflows:vt}],!vt.every(ee=>ee<=0)){var Lt,tt;let ee=(((Lt=o.flip)==null?void 0:Lt.index)||0)+1,je=W[ee];if(je&&(!(g==="alignment"?I!==be(je):!1)||ht.every(ie=>be(ie.placement)===I?ie.overflows[0]>0:!0)))return{data:{index:ee,overflows:ht},reset:{placement:je}};let xe=(tt=ht.filter(We=>We.overflows[0]<=0).sort((We,ie)=>We.overflows[1]-ie.overflows[1])[0])==null?void 0:tt.placement;if(!xe)switch(b){case"bestFit":{var ft;let We=(ft=ht.filter(ie=>{if(F){let He=be(ie.placement);return He===I||He==="y"}return!0}).map(ie=>[ie.placement,ie.overflows.filter(He=>He>0).reduce((He,Ao)=>He+Ao,0)]).sort((ie,He)=>ie[1]-He[1])[0])==null?void 0:ft[0];We&&(xe=We);break}case"initialPlacement":xe=l;break}if(r!==xe)return{reset:{placement:xe}}}return{}}}};var sd=new Set(["left","top"]);async function ad(s,i){let{placement:t,platform:e,elements:r}=s,o=await(e.isRTL==null?void 0:e.isRTL(r.floating)),n=Te(t),l=li(t),h=be(t)==="y",u=sd.has(n)?-1:1,m=o&&h?-1:1,g=ni(i,s),{mainAxis:w,crossAxis:b,alignmentAxis:y}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return l&&typeof y=="number"&&(b=l==="end"?y*-1:y),h?{x:b*m,y:w*u}:{x:w*u,y:b*m}}var Ba=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 ad(i,s);return n===((t=l.offset)==null?void 0:t.placement)&&(e=l.arrow)!=null&&e.alignmentOffset?{}:{x:r+h.x,y:o+h.y,data:yt(U({},h),{placement:n})}}}},Na=function(s){return s===void 0&&(s={}),{name:"shift",options:s,async fn(i){let{x:t,y:e,placement:r,platform:o}=i,S=ni(s,i),{mainAxis:n=!0,crossAxis:l=!1,limiter:h={fn:I=>{let{x:D,y:N}=I;return{x:D,y:N}}}}=S,u=ar(S,["mainAxis","crossAxis","limiter"]),m={x:t,y:e},g=await o.detectOverflow(i,u),w=be(Te(r)),b=ys(w),y=m[b],$=m[w];if(n){let I=b==="y"?"top":"left",D=b==="y"?"bottom":"right",N=y+g[I],_=y-g[D];y=Lr(N,y,_)}if(l){let I=w==="y"?"top":"left",D=w==="y"?"bottom":"right",N=$+g[I],_=$-g[D];$=Lr(N,$,_)}let z=h.fn(yt(U({},i),{[b]:y,[w]:$}));return yt(U({},z),{data:{x:z.x-t,y:z.y-e,enabled:{[b]:n,[w]:l}}})}}};var Ua=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,ht=ni(s,i),{apply:h=()=>{}}=ht,u=ar(ht,["apply"]),m=await n.detectOverflow(i,u),g=Te(r),w=li(r),b=be(r)==="y",{width:y,height:$}=o.floating,z,S;g==="top"||g==="bottom"?(z=g,S=w===(await(n.isRTL==null?void 0:n.isRTL(l.floating))?"start":"end")?"left":"right"):(S=g,z=w==="end"?"top":"bottom");let I=$-m.top-m.bottom,D=y-m.left-m.right,N=ge($-m[z],I),_=ge(y-m[S],D),F=!i.middlewareData.shift,W=N,Pt=_;if((t=i.middlewareData.shift)!=null&&t.enabled.x&&(Pt=D),(e=i.middlewareData.shift)!=null&&e.enabled.y&&(W=I),F&&!w){let Lt=Ht(m.left,0),tt=Ht(m.right,0),ft=Ht(m.top,0),gt=Ht(m.bottom,0);b?Pt=y-2*(Lt!==0||tt!==0?Lt+tt:Ht(m.left,m.right)):W=$-2*(ft!==0||gt!==0?ft+gt:Ht(m.top,m.bottom))}await h(yt(U({},i),{availableWidth:Pt,availableHeight:W}));let vt=await n.getDimensions(l.floating);return y!==vt.width||$!==vt.height?{reset:{rects:!0}}:{}}}};function Mr(){return typeof window!="undefined"}function ci(s){return Ka(s)?(s.nodeName||"").toLowerCase():"#document"}function Nt(s){var i;return(s==null||(i=s.ownerDocument)==null?void 0:i.defaultView)||window}function ne(s){var i;return(i=(Ka(s)?s.ownerDocument:s.document)||window.document)==null?void 0:i.documentElement}function Ka(s){return Mr()?s instanceof Node||s instanceof Nt(s).Node:!1}function Qt(s){return Mr()?s instanceof Element||s instanceof Nt(s).Element:!1}function le(s){return Mr()?s instanceof HTMLElement||s instanceof Nt(s).HTMLElement:!1}function qa(s){return!Mr()||typeof ShadowRoot=="undefined"?!1:s instanceof ShadowRoot||s instanceof Nt(s).ShadowRoot}var od=new Set(["inline","contents"]);function ki(s){let{overflow:i,overflowX:t,overflowY:e,display:r}=Gt(s);return/auto|scroll|overlay|hidden|clip/.test(i+e+t)&&!od.has(r)}var nd=new Set(["table","td","th"]);function ja(s){return nd.has(ci(s))}var ld=[":popover-open",":modal"];function Yi(s){return ld.some(i=>{try{return s.matches(i)}catch(t){return!1}})}var dd=["transform","translate","scale","rotate","perspective"],cd=["transform","translate","scale","rotate","perspective","filter"],hd=["paint","layout","strict","content"];function Dr(s){let i=Ar(),t=Qt(s)?Gt(s):s;return dd.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)||cd.some(e=>(t.willChange||"").includes(e))||hd.some(e=>(t.contain||"").includes(e))}function Wa(s){let i=Le(s);for(;le(i)&&!hi(i);){if(Dr(i))return i;if(Yi(i))return null;i=Le(i)}return null}function Ar(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var ud=new Set(["html","body","#document"]);function hi(s){return ud.has(ci(s))}function Gt(s){return Nt(s).getComputedStyle(s)}function Xi(s){return Qt(s)?{scrollLeft:s.scrollLeft,scrollTop:s.scrollTop}:{scrollLeft:s.scrollX,scrollTop:s.scrollY}}function Le(s){if(ci(s)==="html")return s;let i=s.assignedSlot||s.parentNode||qa(s)&&s.host||ne(s);return qa(i)?i.host:i}function Ya(s){let i=Le(s);return hi(i)?s.ownerDocument?s.ownerDocument.body:s.body:le(i)&&ki(i)?i:Ya(i)}function xi(s,i,t){var e;i===void 0&&(i=[]),t===void 0&&(t=!0);let r=Ya(s),o=r===((e=s.ownerDocument)==null?void 0:e.body),n=Nt(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 Ga(s){let i=Gt(s),t=parseFloat(i.width)||0,e=parseFloat(i.height)||0,r=le(s),o=r?s.offsetWidth:t,n=r?s.offsetHeight:e,l=ji(t)!==o||ji(e)!==n;return l&&(t=o,e=n),{width:t,height:e,$:l}}function ks(s){return Qt(s)?s:s.contextElement}function Ci(s){let i=ks(s);if(!le(i))return oe(1);let t=i.getBoundingClientRect(),{width:e,height:r,$:o}=Ga(i),n=(o?ji(t.width):t.width)/e,l=(o?ji(t.height):t.height)/r;return(!n||!Number.isFinite(n))&&(n=1),(!l||!Number.isFinite(l))&&(l=1),{x:n,y:l}}var pd=oe(0);function Ja(s){let i=Nt(s);return!Ar()||!i.visualViewport?pd:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function md(s,i,t){return i===void 0&&(i=!1),!t||i&&t!==Nt(s)?!1:i}function ui(s,i,t,e){i===void 0&&(i=!1),t===void 0&&(t=!1);let r=s.getBoundingClientRect(),o=ks(s),n=oe(1);i&&(e?Qt(e)&&(n=Ci(e)):n=Ci(s));let l=md(o,t,e)?Ja(o):oe(0),h=(r.left+l.x)/n.x,u=(r.top+l.y)/n.y,m=r.width/n.x,g=r.height/n.y;if(o){let w=Nt(o),b=e&&Qt(e)?Nt(e):e,y=w,$=Or(y);for(;$&&e&&b!==y;){let z=Ci($),S=$.getBoundingClientRect(),I=Gt($),D=S.left+($.clientLeft+parseFloat(I.paddingLeft))*z.x,N=S.top+($.clientTop+parseFloat(I.paddingTop))*z.y;h*=z.x,u*=z.y,m*=z.x,g*=z.y,h+=D,u+=N,y=Nt($),$=Or(y)}}return di({width:m,height:g,x:h,y:u})}function _r(s,i){let t=Xi(s).scrollLeft;return i?i.left+t:ui(ne(s)).left+t}function to(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 fd(s){let{elements:i,rect:t,offsetParent:e,strategy:r}=s,o=r==="fixed",n=ne(e),l=i?Yi(i.floating):!1;if(e===n||l&&o)return t;let h={scrollLeft:0,scrollTop:0},u=oe(1),m=oe(0),g=le(e);if((g||!g&&!o)&&((ci(e)!=="body"||ki(n))&&(h=Xi(e)),le(e))){let b=ui(e);u=Ci(e),m.x=b.x+e.clientLeft,m.y=b.y+e.clientTop}let w=n&&!g&&!o?to(n,h):oe(0);return{width:t.width*u.x,height:t.height*u.y,x:t.x*u.x-h.scrollLeft*u.x+m.x+w.x,y:t.y*u.y-h.scrollTop*u.y+m.y+w.y}}function gd(s){return Array.from(s.getClientRects())}function bd(s){let i=ne(s),t=Xi(s),e=s.ownerDocument.body,r=Ht(i.scrollWidth,i.clientWidth,e.scrollWidth,e.clientWidth),o=Ht(i.scrollHeight,i.clientHeight,e.scrollHeight,e.clientHeight),n=-t.scrollLeft+_r(s),l=-t.scrollTop;return Gt(e).direction==="rtl"&&(n+=Ht(i.clientWidth,e.clientWidth)-r),{width:r,height:o,x:n,y:l}}var Xa=25;function vd(s,i){let t=Nt(s),e=ne(s),r=t.visualViewport,o=e.clientWidth,n=e.clientHeight,l=0,h=0;if(r){o=r.width,n=r.height;let m=Ar();(!m||m&&i==="fixed")&&(l=r.offsetLeft,h=r.offsetTop)}let u=_r(e);if(u<=0){let m=e.ownerDocument,g=m.body,w=getComputedStyle(g),b=m.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,y=Math.abs(e.clientWidth-g.clientWidth-b);y<=Xa&&(o-=y)}else u<=Xa&&(o+=u);return{width:o,height:n,x:l,y:h}}var yd=new Set(["absolute","fixed"]);function wd(s,i){let t=ui(s,!0,i==="fixed"),e=t.top+s.clientTop,r=t.left+s.clientLeft,o=le(s)?Ci(s):oe(1),n=s.clientWidth*o.x,l=s.clientHeight*o.y,h=r*o.x,u=e*o.y;return{width:n,height:l,x:h,y:u}}function Za(s,i,t){let e;if(i==="viewport")e=vd(s,t);else if(i==="document")e=bd(ne(s));else if(Qt(i))e=wd(i,t);else{let r=Ja(s);e={x:i.x-r.x,y:i.y-r.y,width:i.width,height:i.height}}return di(e)}function eo(s,i){let t=Le(s);return t===i||!Qt(t)||hi(t)?!1:Gt(t).position==="fixed"||eo(t,i)}function xd(s,i){let t=i.get(s);if(t)return t;let e=xi(s,[],!1).filter(l=>Qt(l)&&ci(l)!=="body"),r=null,o=Gt(s).position==="fixed",n=o?Le(s):s;for(;Qt(n)&&!hi(n);){let l=Gt(n),h=Dr(n);!h&&l.position==="fixed"&&(r=null),(o?!h&&!r:!h&&l.position==="static"&&!!r&&yd.has(r.position)||ki(n)&&!h&&eo(s,n))?e=e.filter(m=>m!==n):r=l,n=Le(n)}return i.set(s,e),e}function kd(s){let{element:i,boundary:t,rootBoundary:e,strategy:r}=s,n=[...t==="clippingAncestors"?Yi(i)?[]:xd(i,this._c):[].concat(t),e],l=n[0],h=n.reduce((u,m)=>{let g=Za(i,m,r);return u.top=Ht(g.top,u.top),u.right=ge(g.right,u.right),u.bottom=ge(g.bottom,u.bottom),u.left=Ht(g.left,u.left),u},Za(i,l,r));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function Cd(s){let{width:i,height:t}=Ga(s);return{width:i,height:t}}function Ed(s,i,t){let e=le(i),r=ne(i),o=t==="fixed",n=ui(s,!0,o,i),l={scrollLeft:0,scrollTop:0},h=oe(0);function u(){h.x=_r(r)}if(e||!e&&!o)if((ci(i)!=="body"||ki(r))&&(l=Xi(i)),e){let b=ui(i,!0,o,i);h.x=b.x+i.clientLeft,h.y=b.y+i.clientTop}else r&&u();o&&!e&&r&&u();let m=r&&!e&&!o?to(r,l):oe(0),g=n.left+l.scrollLeft-h.x-m.x,w=n.top+l.scrollTop-h.y-m.y;return{x:g,y:w,width:n.width,height:n.height}}function xs(s){return Gt(s).position==="static"}function Qa(s,i){if(!le(s)||Gt(s).position==="fixed")return null;if(i)return i(s);let t=s.offsetParent;return ne(s)===t&&(t=t.ownerDocument.body),t}function io(s,i){let t=Nt(s);if(Yi(s))return t;if(!le(s)){let r=Le(s);for(;r&&!hi(r);){if(Qt(r)&&!xs(r))return r;r=Le(r)}return t}let e=Qa(s,i);for(;e&&ja(e)&&xs(e);)e=Qa(e,i);return e&&hi(e)&&xs(e)&&!Dr(e)?t:e||Wa(s)||t}var $d=async function(s){let i=this.getOffsetParent||io,t=this.getDimensions,e=await t(s.floating);return{reference:Ed(s.reference,await i(s.floating),s.strategy),floating:{x:0,y:0,width:e.width,height:e.height}}};function Td(s){return Gt(s).direction==="rtl"}var Ld={convertOffsetParentRelativeRectToViewportRelativeRect:fd,getDocumentElement:ne,getClippingRect:kd,getOffsetParent:io,getElementRects:$d,getClientRects:gd,getDimensions:Cd,getScale:Ci,isElement:Qt,isRTL:Td};function ro(s,i){return s.x===i.x&&s.y===i.y&&s.width===i.width&&s.height===i.height}function zd(s,i){let t=null,e,r=ne(s);function o(){var l;clearTimeout(e),(l=t)==null||l.disconnect(),t=null}function n(l,h){l===void 0&&(l=!1),h===void 0&&(h=1),o();let u=s.getBoundingClientRect(),{left:m,top:g,width:w,height:b}=u;if(l||i(),!w||!b)return;let y=Wi(g),$=Wi(r.clientWidth-(m+w)),z=Wi(r.clientHeight-(g+b)),S=Wi(m),D={rootMargin:-y+"px "+-$+"px "+-z+"px "+-S+"px",threshold:Ht(0,ge(1,h))||1},N=!0;function _(F){let W=F[0].intersectionRatio;if(W!==h){if(!N)return n();W?n(!1,W):e=setTimeout(()=>{n(!1,1e-7)},1e3)}W===1&&!ro(u,s.getBoundingClientRect())&&n(),N=!1}try{t=new IntersectionObserver(_,yt(U({},D),{root:r.ownerDocument}))}catch(F){t=new IntersectionObserver(_,D)}t.observe(s)}return n(!0),o}function so(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=ks(s),m=r||o?[...u?xi(u):[],...xi(i)]:[];m.forEach(S=>{r&&S.addEventListener("scroll",t,{passive:!0}),o&&S.addEventListener("resize",t)});let g=u&&l?zd(u,t):null,w=-1,b=null;n&&(b=new ResizeObserver(S=>{let[I]=S;I&&I.target===u&&b&&(b.unobserve(i),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var D;(D=b)==null||D.observe(i)})),t()}),u&&!h&&b.observe(u),b.observe(i));let y,$=h?ui(s):null;h&&z();function z(){let S=ui(s);$&&!ro($,S)&&t(),$=S,y=requestAnimationFrame(z)}return t(),()=>{var S;m.forEach(I=>{r&&I.removeEventListener("scroll",t),o&&I.removeEventListener("resize",t)}),g==null||g(),(S=b)==null||S.disconnect(),b=null,h&&cancelAnimationFrame(y)}}var ao=Ba;var oo=Na,no=Ra,Cs=Ua;var lo=Fa;var co=(s,i,t)=>{let e=new Map,r=U({platform:Ld},t),o=yt(U({},r.platform),{_c:e});return Va(s,i,yt(U({},r),{platform:o}))};var Q=class extends f{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=so(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=[ao({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?t.push(Cs({apply:({rects:e})=>{let r=this.sync==="width"||this.sync==="both",o=this.sync==="height"||this.sync==="both";this.popup.style.width=r?`${e.reference.width}px`:"",this.popup.style.height=o?`${e.reference.height}px`:""}})):(this.popup.style.width="",this.popup.style.height=""),this.flip&&t.push(no({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:this.flipFallbackStrategy==="best-fit"?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&t.push(oo({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?t.push(Cs({boundary:this.autoSizeBoundary,padding:this.autoSizePadding,apply:({availableWidth:e,availableHeight:r})=>{this.autoSize==="vertical"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-height",`${r}px`):this.style.removeProperty("--auto-size-available-height"),this.autoSize==="horizontal"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-width",`${e}px`):this.style.removeProperty("--auto-size-available-width")}})):(this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height")),this.arrow&&t.push(lo({element:this.arrowEl,padding:this.arrowPadding})),co(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,g="",w="",b="",y="";if(this.arrowPlacement==="start"){let $=typeof u=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";g=typeof m=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",w=l?$:"",y=l?"":$}else if(this.arrowPlacement==="end"){let $=typeof u=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";w=l?"":$,y=l?$:"",b=typeof m=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""}else this.arrowPlacement==="center"?(y=typeof u=="number"?"calc(50% - var(--arrow-size-diagonal))":"",g=typeof m=="number"?"calc(50% - var(--arrow-size-diagonal))":""):(y=typeof u=="number"?`${u}px`:"",g=typeof m=="number"?`${m}px`:"");Object.assign(this.arrowEl.style,{top:g,right:w,bottom:b,left:y,[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 z-20",this.strategy!=="fixed"?"absolute":"fixed",!this.active&&"hidden")}"><slot></slot>${this.arrow?p`<div part="arrow" class="absolute rotate-45 -z-10" role="presentation"></div>`:""}</div>`}};Q.styles=[...f.styles,x`/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
189
189
  :host{--arrow-color:var(--sd-color-neutral-1000);--arrow-size:6px;--arrow-size-diagonal:calc(var(--arrow-size) * 0.7071);--arrow-padding-offset:calc(var(--arrow-size-diagonal) - var(--arrow-size));display:contents}[part=popup]{max-width:var(--auto-size-available-width,none);max-height:var(--auto-size-available-height,none)}[part=arrow]{width:calc(var(--arrow-size-diagonal) * 2);height:calc(var(--arrow-size-diagonal) * 2);background:var(--arrow-color)}`],a([v('[part="popup"]')],Q.prototype,"popup",2),a([v('[part="arrow"]')],Q.prototype,"arrowEl",2),a([d({reflect:!0})],Q.prototype,"anchor",2),a([d({type:Boolean,reflect:!0})],Q.prototype,"active",2),a([d({type:String,reflect:!0})],Q.prototype,"placement",2),a([d({type:String,reflect:!0})],Q.prototype,"strategy",2),a([d({type:Number,reflect:!0})],Q.prototype,"distance",2),a([d({type:Number,reflect:!0})],Q.prototype,"skidding",2),a([d({type:Boolean,reflect:!0})],Q.prototype,"arrow",2),a([d({type:String,attribute:"arrow-placement",reflect:!0})],Q.prototype,"arrowPlacement",2),a([d({attribute:"arrow-padding",type:Number,reflect:!0})],Q.prototype,"arrowPadding",2),a([d({type:Boolean,reflect:!0})],Q.prototype,"flip",2),a([d({attribute:"flip-fallback-placements",converter:{fromAttribute:t=>t.split(" ").map(e=>e.trim()).filter(e=>e!==""),toAttribute:t=>t.join(" ")}})],Q.prototype,"flipFallbackPlacements",2),a([d({type:String,attribute:"flip-fallback-strategy"})],Q.prototype,"flipFallbackStrategy",2),a([d({type:Object})],Q.prototype,"flipBoundary",2),a([d({attribute:"flip-padding",type:Number})],Q.prototype,"flipPadding",2),a([d({type:Boolean})],Q.prototype,"shift",2),a([d({type:Object})],Q.prototype,"shiftBoundary",2),a([d({attribute:"shift-padding",type:Number})],Q.prototype,"shiftPadding",2),a([d({type:String,attribute:"auto-size"})],Q.prototype,"autoSize",2),a([d()],Q.prototype,"sync",2),a([d({type:Object})],Q.prototype,"autoSizeBoundary",2),a([d({attribute:"auto-size-padding",type:Number})],Q.prototype,"autoSizePadding",2),Q=a([k("sd-popup")],Q);function ho(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 lt=class extends f{constructor(){super(...arguments);this.localize=new A(this);this.open=!1;this.rounded=!1;this.placement="bottom-start";this.disabled=!1;this.stayOpenOnSelect=!1;this.distance=0;this.skidding=0;this.noAutoSize=!1;this.noFlip=!1;this.hoist=!1}connectedCallback(){super.connectedCallback(),this.handleMenuItemActivate=this.handleMenuItemActivate.bind(this),this.handlePanelSelect=this.handlePanelSelect.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleDocumentKeyDown=this.handleDocumentKeyDown.bind(this),this.handleDocumentMouseDown=this.handleDocumentMouseDown.bind(this),this.containingElement||(this.containingElement=this)}firstUpdated(){this.panel.hidden=!this.open,this.open&&(this.addOpenListeners(),this.popup.active=!0)}disconnectedCallback(){super.disconnectedCallback(),this.removeOpenListeners(),this.hide()}getAccessibleTrigger(){let e=this.trigger.assignedElements({flatten:!0}).find(o=>$r(o).start),r=null;if(e)switch(e.tagName.toLowerCase()){case"sd-button":case"sd-icon-button":r=e.button;break;case"sd-navigation-item":r=e.button;break;default:r=e}return r}updateAccessibleTrigger(){let t=this.getAccessibleTrigger();t&&(t.setAttribute("aria-haspopup","true"),t.setAttribute("aria-expanded",this.open?"true":"false"))}focusOnTrigger(){let t=this.getAccessibleTrigger();typeof(t==null?void 0:t.focus)=="function"&&t.focus()}getMenu(){return this.panel.assignedElements({flatten:!0}).find(t=>t.tagName.toLowerCase()==="sd-menu")}handleKeyDown(t){this.open&&t.key==="Escape"&&(t.stopPropagation(),this.hide(),this.focusOnTrigger())}handleDocumentKeyDown(t){var e;if(t.key==="Tab"){if(this.open&&((e=document.activeElement)==null?void 0:e.tagName.toLowerCase())==="sd-menu-item"){t.preventDefault(),this.hide(),this.focusOnTrigger();return}setTimeout(()=>{let r=ri();(!r||!this.containingElement||ho(r,this.containingElement.tagName.toLowerCase())!==this.containingElement)&&this.hide()})}}handleDocumentMouseDown(t){let e=t.composedPath();this.containingElement&&!e.includes(this.containingElement)&&this.hide()}handleMenuItemActivate(t){let e=t.target;se(e,this.panel)}handlePanelSelect(t){let e=t.target;!this.stayOpenOnSelect&&e.tagName.toLowerCase()==="sd-menu"&&(this.hide(),this.focusOnTrigger())}handleTriggerClick(){if(this.open){let t=this.getMenu();if(t){let e=t.getCurrentItem();e==null||e.classList.remove("menu-item-focus")}this.hide()}else this.show()}handleTriggerKeyDown(t){if(t.key==="Escape"&&this.open){t.stopPropagation(),this.focusOnTrigger(),this.handleTriggerClick();return}if([" ","Enter"].includes(t.key)){t.preventDefault(),this.handleTriggerClick();return}let e=this.getMenu();if(e){let r=e.defaultSlot.assignedElements({flatten:!0}),o=r.find(l=>!l.disabled)||r[0],n=r[r.length-1];["ArrowDown","ArrowUp","Home","End"].includes(t.key)&&(t.preventDefault(),this.open||this.show(),r.length>0&&requestAnimationFrame(()=>{(t.key==="ArrowDown"||t.key==="Home")&&(e.setCurrentItem(o),o.focus(),o.classList.add("menu-item-focus")),(t.key==="ArrowUp"||t.key==="End")&&(e.setCurrentItem(n),n.focus(),n.classList.add("menu-item-focus"))}))}}handleTriggerKeyUp(t){t.key===" "&&t.preventDefault()}handleTriggerSlotChange(){this.updateAccessibleTrigger()}async show(){if(!this.open)return this.open=!0,J(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,J(this,"sd-after-hide")}reposition(){this.popup.reposition()}addOpenListeners(){this.panel.addEventListener("sd-activate",this.handleMenuItemActivate),this.panel.addEventListener("sd-select",this.handlePanelSelect),this.panel.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keydown",this.handleDocumentKeyDown),document.addEventListener("mousedown",this.handleDocumentMouseDown)}removeOpenListeners(){this.panel&&(this.panel.removeEventListener("sd-activate",this.handleMenuItemActivate),this.panel.removeEventListener("sd-select",this.handlePanelSelect),this.panel.removeEventListener("keydown",this.handleKeyDown)),document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("mousedown",this.handleDocumentMouseDown)}async handleOpenChange(){if(this.disabled){this.open=!1;return}if(this.updateAccessibleTrigger(),this.open){this.emit("sd-show"),this.addOpenListeners(),await X(this),this.panel.hidden=!1,this.popup.active=!0;let{keyframes:t,options:e}=K(this,"dropdown.show",{dir:this.localize.dir()});await j(this.popup.popup,t,e),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),await X(this);let{keyframes:t,options:e}=K(this,"dropdown.hide",{dir:this.localize.dir()});await j(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>`}};lt.styles=[...f.styles,x`/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
@@ -209,7 +209,7 @@ sd-button::part(base){display:flex;height:var(--sd-spacing-12);width:var(--sd-sp
209
209
  popup:popup__content,
210
210
  "><div part="combobox" class="${c("relative w-full px-4 flex flex-row items-center rounded-default transition-colors hover:duration-fast ease-in-out",this.visuallyDisabled||this.disabled?"hover:bg-transparent":"hover:bg-neutral-200",this.open&&"shadow transition-shadow duration-medium ease-in-out",["invalid","activeInvalid"].includes(g)&&"form-control--invalid-color-background",{sm:"py-1 min-h-[32px]",md:"py-1 min-h-[40px]",lg:"py-2 min-h-[48px]"}[this.size],S)}" slot="anchor" @keydown="${this.handleComboboxKeyDown}" @mousedown="${this.handleComboboxMouseDown}">${t.left?p`<slot part="left" name="left" class="${c("inline-flex",$,b,z)}"></slot>`:""} ${this.multiple&&this.useTags&&this.tags.length>0?p`<div part="tags" class="${c("flex items-center gap-1",$,this.floatingLabel&&"mt-4")}">${this.tags}</div>`:null} <input id="display-input" name="${this.name}" form="${this.form}" part="display-input" class="${c("appearance-none outline-none bg-transparent flex-auto min-w-0",w,this.selectedTextLabel&&!this.multiple?"placeholder:form-control-color-text":"placeholder:text-neutral-700",this.size==="sm"?m?"h-4":"h-6":m?"h-6":"h-8",m&&"leading-none mt-4")}" type="text" placeholder="${!this.floatingLabel||m?this.selectedTextLabel&&!this.multiple?this.selectedTextLabel:this.placeholder||this.localize.term("comboboxDefaultPlaceholder"):""}" .disabled="${this.disabled}" .value="${this.displayInputValue}" autocomplete="off" spellcheck="false" autocapitalize="off" aria-controls="listbox" aria-expanded="${this.open}" aria-haspopup="listbox" aria-labelledby="label" aria-disabled="${this.disabled||this.visuallyDisabled}" aria-describedby="help-text invalid-message" aria-invalid="${this.showInvalidStyle}" role="combobox" tabindex="0" @focus="${this.handleFocus}" @blur="${this.handleBlur}" aria-autocomplete="list" aria-owns="listbox" @input="${this.handleInput}" @change="${this.handleChange}"><div aria-live="polite" id="control-value" class="absolute top-0 left-0 opacity-0 -z-10">${this.selectedOptions.map(D=>D==null?void 0:D.getTextLabel()).join(", ")}</div><input class="${c("value-input absolute top-0 left-0 w-full h-full opacity-0 -z-10",w)}" 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}"> ${l?p`<button part="clear-button" class="${c("flex justify-center",y,this.value.length>0?"visible":"invisible")}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.preventLoosingFocus}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-icon class="${c("text-neutral-700",z)}" name="closing-round" library="_internal"></sd-icon></slot></button>`:""} ${this.showInvalidStyle?p`<sd-icon part="invalid-icon" class="${c(y,z,"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",y,z)}" library="_internal" name="confirm-circle"></sd-icon>`:""}<slot name="right" part="right" class="${c("inline-flex ml-2 leading-[0]",this.disabled||this.visuallyDisabled?"text-neutral-500":"text-primary",z)}">${this.type!=="search"?p`<sd-icon class="${c("transition-transform duration-medium ease-in-out",this.open?"rotate-180":"rotate-0")}" name="chevron-down" part="chevron" library="_internal" color="currentColor" label="${this.localize.term("open")}"></sd-icon>`:""}</slot>${this.type==="search"?p`<button class="${c("flex items-center sd-interactive",y)}" type="button"><sd-icon class="${c(b,z)}" library="_internal" name="magnifying-glass" label="${this.localize.term("search")}"></sd-icon></button>`:p`<button class="sd-interactive combobox-button absolute top-2" @keydown="${this.handleComboboxMouseDown}" type="button"><span class="sr-only">${this.localize.term("open")}</span></button>`}</div><div id="listbox" role="${E(this.multiple?void 0:"listbox")}" aria-expanded="${this.open}" aria-multiselectable="${this.multiple}" 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" @mousedown="${this.preventLoosingFocus}" @mouseup="${this.handleOptionClick}"><div part="filtered-listbox">${this.filteredOptions.length===0?p`<span id="noResults" class="px-4 flex items-center w-full transition-all text-left text-base relative text-black py-3" aria-hidden="true" @click="${this.handleNoResultsClick}">${this.localize.term("noResults")}</span>`:this.options}</div><slot id="defaultOptionsSlot" class="hidden" @slotchange="${this.handleDefaultSlotChange}"></slot></div></sd-popup></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${c("text-sm text-neutral-700 mt-1",n?"block":"hidden")}" aria-hidden="${!n}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage(this.size)}`}};M.styles=[...f.styles,x`/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
211
211
  :host{position:relative;display:block;width:100%}:host([required]) #label::after{content:' *'}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{color:rgba(var(--sd-color-text-neutral-500))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{color:rgba(var(--sd-color-text-neutral-500))}:host([visually-disabled]) input{caret-color:transparent}:host([size=sm]) .combobox-button{right:var(--sd-spacing-4);height:var(--sd-spacing-4);width:var(--sd-spacing-4)}:host([size=md]) .combobox-button{right:.85rem;height:var(--sd-spacing-6);width:var(--sd-spacing-6)}:host([size=lg]) .combobox-button{right:var(--sd-spacing-3);height:var(--sd-spacing-8);width:var(--sd-spacing-8)}[part=listbox]{max-height:var(--auto-size-available-height,auto)}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))}[part=filtered-listbox] sd-optgroup:first-of-type{--display-divider:none}mark{background-color:transparent;--tw-font-weight:var(--sd-font-weight-bold);font-weight:var(--sd-font-weight-bold);color:inherit}@property --tw-font-weight{syntax:"*";inherits:false}`],a([v("sd-popup")],M.prototype,"popup",2),a([v('[part="combobox"]')],M.prototype,"combobox",2),a([v('[part="display-input"]')],M.prototype,"displayInput",2),a([v(".value-input")],M.prototype,"valueInput",2),a([v('[part="listbox"]')],M.prototype,"listbox",2),a([v('[part="tags"]')],M.prototype,"tagWrapper",2),a([v('[part="filtered-listbox"]')],M.prototype,"filteredWrapper",2),a([v("slot:not([name])")],M.prototype,"defaultSlot",2),a([v("#invalid-message")],M.prototype,"invalidMessage",2),a([L()],M.prototype,"hasFocus",2),a([L()],M.prototype,"displayInputValue",2),a([L()],M.prototype,"selectedTextLabel",2),a([L()],M.prototype,"selectedOptions",2),a([L()],M.prototype,"filteredOptions",2),a([L()],M.prototype,"allOptions",2),a([L()],M.prototype,"lastOption",2),a([L()],M.prototype,"showValidStyle",2),a([L()],M.prototype,"showInvalidStyle",2),a([L()],M.prototype,"deletedTagLabel",2),a([d({reflect:!0})],M.prototype,"name",2),a([d({converter:{fromAttribute:t=>t.split(" "),toAttribute:t=>t.join(" ")}})],M.prototype,"value",2),a([Ut()],M.prototype,"defaultValue",2),a([d({type:String,reflect:!0})],M.prototype,"size",2),a([d({type:String,reflect:!0})],M.prototype,"placeholder",2),a([d({type:String,attribute:"max-options-tag-label",reflect:!0})],M.prototype,"maxOptionsTagLabel",2),a([d({type:Boolean,reflect:!0})],M.prototype,"disabled",2),a([d({type:Boolean,reflect:!0,attribute:"visually-disabled"})],M.prototype,"visuallyDisabled",2),a([d({type:Boolean,reflect:!0})],M.prototype,"clearable",2),a([d({type:Boolean,reflect:!0})],M.prototype,"open",2),a([d({type:Boolean,reflect:!0})],M.prototype,"hoist",2),a([d({type:String,reflect:!0})],M.prototype,"label",2),a([d({type:String,reflect:!0})],M.prototype,"placement",2),a([d({type:String,attribute:"help-text",reflect:!0})],M.prototype,"helpText",2),a([d({type:String,reflect:!0})],M.prototype,"form",2),a([d({type:Boolean,reflect:!0})],M.prototype,"required",2),a([d({attribute:"floating-label",type:Boolean,reflect:!0})],M.prototype,"floatingLabel",2),a([d({type:String,reflect:!0})],M.prototype,"type",2),a([L()],M.prototype,"currentPlacement",2),a([d()],M.prototype,"getOption",2),a([d({type:Boolean,reflect:!0})],M.prototype,"multiple",2),a([d({type:Boolean,reflect:!0})],M.prototype,"useTags",2),a([d({type:Number,reflect:!0,attribute:"max-options-visible"})],M.prototype,"maxOptionsVisible",2),a([d({type:Boolean,reflect:!0,attribute:"style-on-valid"})],M.prototype,"styleOnValid",2),a([d()],M.prototype,"filter",2),a([d()],M.prototype,"getTag",2),a([C("filter",{waitUntilFirstUpdate:!0})],M.prototype,"handleFilterChange",1),a([C("useTags",{waitUntilFirstUpdate:!0})],M.prototype,"handleUseTagsChange",1),a([C("size",{waitUntilFirstUpdate:!0})],M.prototype,"applySizeToOptions",1),a([C(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],M.prototype,"handleDisabledChange",1),a([C("value",{waitUntilFirstUpdate:!0})],M.prototype,"handleValueChange",1),a([C("displayInputValue",{waitUntilFirstUpdate:!0})],M.prototype,"handleDisplayInputValueChange",1),a([C("open",{waitUntilFirstUpdate:!0})],M.prototype,"handleOpenChange",1),a([C(["size","floatingLabel"])],M.prototype,"handleSizeChange",1),M=a([k("sd-combobox")],M);R("combobox.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});R("combobox.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});var ye=class extends f{constructor(){super(...arguments);this.orientation="horizontal";this.inverted=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","separator")}render(){return p`<hr part="main" aria-orientation="${this.orientation}" class="${c(this.inverted?"sd-divider--inverted-color-border":"border-neutral-400",this.orientation==="horizontal"?"border-t w-full":" border-l h-full")}">`}};ye.styles=[...f.styles,x`/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
212
- :host{margin:calc(var(--sd-spacing-1) * 0)}:host(sd-divider[orientation=horizontal]){display:block}:host(sd-divider[orientation=vertical]){display:inline-block}`],a([d({type:String,reflect:!0})],ye.prototype,"orientation",2),a([d({type:Boolean,reflect:!0})],ye.prototype,"inverted",2),ye=a([k("sd-divider")],ye);var T={startOfDayLocal:s=>new Date(s.getFullYear(),s.getMonth(),s.getDate()),isSameDay:(s,i)=>!s||!i?!1:s.getFullYear()===i.getFullYear()&&s.getMonth()===i.getMonth()&&s.getDate()===i.getDate(),clampDateToMonth:(s,i)=>{let t=new Date(i.getFullYear(),i.getMonth(),1),e=new Date(i.getFullYear(),i.getMonth()+1,0);return s<t?t:s>e?e:s},toLocalISODate:s=>{let i=s.getFullYear(),t=String(s.getMonth()+1).padStart(2,"0"),e=String(s.getDate()).padStart(2,"0");return`${i}-${t}-${e}`},parseLocalISO:s=>{if(!s)return null;let i,t,e;if(/^\d{4}-\d{2}-\d{2}$/.test(s)){let o=s.split("-");i=Number(o[0]),t=Number(o[1])-1,e=Number(o[2])}else if(/^\d{4}\.\d{2}\.\d{2}$/.test(s)){let o=s.split(".");i=Number(o[0]),t=Number(o[1])-1,e=Number(o[2])}else return null;let r=new Date(i,t,e);return Number.isNaN(r.getTime())?null:r},compareDates:(s,i)=>{let t=T.startOfDayLocal(s).getTime(),e=T.startOfDayLocal(i).getTime();return t-e},isBetweenInclusive:(s,i,t)=>{let e=T.compareDates(i,t)<=0?i:t,r=T.compareDates(i,t)<=0?t:i;return T.compareDates(s,e)>=0&&T.compareDates(s,r)<=0}};var Qi={fromAttribute(s){if(!s)return null;let t=s.trim().replace(/[./]/g,"-").match(/^(\d{4})-(\d{2})-(\d{2})$/);if(!t)return null;let e=`${t[1]}-${t[2]}-${t[3]}`,r=new Date(+t[1],+t[2]-1,+t[3]);return r.getFullYear()!==+t[1]||r.getMonth()!==+t[2]-1||r.getDate()!==+t[3]?null:e},toAttribute(s){return s!=null?s:""}},Ad={fromAttribute(s){if(!s)return[];let i=[],t=s.trim();if(t.startsWith("["))try{let r=JSON.parse(t);Array.isArray(r)&&(i=r.map(String))}catch(r){return[]}else i=t.split(/[\s,]+/).map(r=>r.trim()).filter(Boolean);let e=[];for(let r of i){let n=r.replace(/[-/]/g,".").split(".");if(n.length!==3)continue;let[l,h,u]=n.map(Number);if(!l||!h||!u)continue;let m=new Date(l,h-1,u);if(m.getFullYear()!==l||m.getMonth()!==h-1||m.getDate()!==u)continue;let g=`${l}-${String(h).padStart(2,"0")}-${String(u).padStart(2,"0")}`;e.push(g)}return e},toAttribute(s){return s?s.join(","):""}},O=class extends f{constructor(){super();this.localize=new A(this);this.hasSlotController=new H(this,"label","help-text","tooltip");this.formControlController=new pt(this,{assumeInteractionOn:["sd-blur","sd-input"]});this.locale="en-US";this.value=null;this.range=!1;this.rangeStart=null;this.rangeEnd=null;this.allowSameDayRange=!1;this.min=void 0;this.max=void 0;this.firstDayOfWeek=null;this.disabledWeekends=!1;this.disabledDates=[];this.isDateDisabled=null;this.size="lg";this.alignment="left";this.label="";this.helpText="";this.floatingLabel=!1;this.disabled=!1;this.required=!1;this.visuallyDisabled=!1;this.styleOnValid=!1;this.readonly=!1;this.placement="bottom";this.placeholder="";this.name="";this.form="";this.open=!1;this.today=T.startOfDayLocal(new Date);this.disabledDatesSet=new Set;this.previewEnd=null;this.statusNavText="";this.statusSelectText="";this.hasFocus=!1;this.showValidStyle=!1;this.showInvalidStyle=!1;this.currentPlacement=this.placement;this.inputValue="";this.tabbingIntoGrid=!1;this.statusBumpCounter=0;this.onFocusOut=t=>{let e=t.relatedTarget;e&&this.contains(e)||(this.open&&(this.hide(),this.emit("sd-datepicker-close")),this.hasFocus=!1)};this.onFocusIn=t=>{if(this.disabled||this.visuallyDisabled)return;t.composedPath().some(o=>{var n,l;return o instanceof HTMLElement&&(((n=o.classList)==null?void 0:n.contains("nav"))||((l=o.classList)==null?void 0:l.contains("month-label")))})&&(this.tabbingIntoGrid=!0)};this.handleInput=t=>{var l,h,u,m,g;if(this.disabled||this.visuallyDisabled||this.readonly){(l=t.preventDefault)==null||l.call(t),(h=t.stopPropagation)==null||h.call(t);return}let e=t.target,r=e.value,o=(u=e.selectionStart)!=null?u:r.length,n=(m=t.inputType)==null?void 0:m.startsWith("delete");if(this.range){let w=r.replace(/\D/g,""),b=w.slice(0,8),y=w.slice(8,16),$=this.buildDmyFromDigits(b),z=this.buildDmyFromDigits(y),S;b.length===0?S="":b.length<8?S=$:y.length>0?S=`${$} - ${z}`:S=n?$:`${$} -`;let I=this.countDigitsBeforeCaret(r,o),D;if(I<=8){let _=this.digitIndexToDmyCaretPos(Math.min(I,8));D=Math.min(_,$.length)}else{let _=b.length<8?$.length:$.length+3,F=Math.min(I-8,8),W=this.digitIndexToDmyCaretPos(F);D=_+Math.min(W,z.length)}this.inputValue=S;let N=!1;if(/^\d{2}\.\d{2}\.\d{4}$/.test($)){let _=this.dmyToIso($),F=_?T.parseLocalISO(_):null;F&&!this.isDisabled(F)&&this.inMinMax(F)&&this.rangeStart!==_&&(this.rangeStart=_,this.previewEnd=null,this.viewMonth=new Date(F.getFullYear(),F.getMonth(),1),this.focusedDate=T.startOfDayLocal(F),N=!0)}else this.rangeStart&&(this.rangeStart=null,N=!0),this.rangeEnd&&(this.rangeEnd=null,N=!0);if(/^\d{2}\.\d{2}\.\d{4}$/.test(z)&&this.rangeStart){let _=T.parseLocalISO(this.rangeStart),F=this.dmyToIso(z),W=F?T.parseLocalISO(F):null;if(!!W&&!this.isDisabled(W)&&this.inMinMax(W)){let[vt,ht]=T.compareDates(_,W)<=0?[_,W]:[W,_],Lt=T.isSameDay(vt,ht);if((this.allowSameDayRange||!Lt)&&!this.wouldRangeContainDisabled(vt,ht)){let ft=T.toLocalISODate(T.startOfDayLocal(vt)),gt=T.toLocalISODate(T.startOfDayLocal(ht));(this.rangeStart!==ft||this.rangeEnd!==gt)&&(this.rangeStart=ft,this.rangeEnd=gt,this.viewMonth=new Date(ht.getFullYear(),ht.getMonth(),1),this.focusedDate=T.startOfDayLocal(ht),N=!0)}}}else this.rangeEnd&&(this.rangeEnd=null,N=!0);this.showInvalidStyle=!1,this.showValidStyle=!!(this.rangeStart&&this.rangeEnd),N&&(this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.emit("sd-change",{detail:{value:this.value,rangeStart:this.rangeStart,rangeEnd:this.rangeEnd}})),Promise.resolve().then(()=>{requestAnimationFrame(()=>{var F;let _=(F=this.input)!=null?F:e;_&&(_.value=this.inputValue,_.setSelectionRange(D,D))})})}else{let w=e,b=w.value,y=(g=w.selectionStart)!=null?g:b.length,$=b.replace(/\D/g,"").slice(0,8),z=$.slice(0,2),S=$.slice(2,4),I=$.slice(4,8),D="";z.length>0&&(D+=z,z.length===2&&(D+=".")),S.length>0&&z.length===2&&(D+=S,S.length===2&&(D+=".")),I.length>0&&z.length===2&&S.length===2&&(D+=I),D=D.replace(/\.\.+/g,".");let N=this.inputValue||"";this.inputValue=D;let _=y,F=tt=>{let ft=[];for(let gt=0;gt<tt.length;gt++)tt[gt]==="."&&ft.push(gt);return ft},W=F(N),Pt=F(D),vt=W.filter(tt=>tt<y).length,Lt=Pt.filter(tt=>tt<y).length-vt;if(Lt>0?_+=Lt:!W.includes(y)&&Pt.includes(y)&&(_+=1),_=Math.min(Math.max(0,_),D.length),requestAnimationFrame(()=>{var ft;let tt=(ft=this.input)!=null?ft:w;tt&&(tt.value=this.inputValue,tt.setSelectionRange(_,_))}),/^\d{2}\.\d{2}\.\d{4}$/.test(D)){let tt=this.parseInputText(D);this.applyParsedInput(tt)}else this.showInvalidStyle=!1,this.showValidStyle=!1;return}if(!this.open&&this.hasFocus&&!this.disabled&&!this.visuallyDisabled&&this.show(),this.range){let w=this.rangeStart?T.parseLocalISO(this.rangeStart):null,b=this.rangeEnd?T.parseLocalISO(this.rangeEnd):null;w&&!b?this.setNavStatus(`${this.termStartSelected()}: ${this.formatSelectionLabel(w)}`):w&&b&&this.setNavStatus(`${this.termStartSelected()}: ${this.formatSelectionLabel(w)}; ${this.termEndSelected()}: ${this.formatSelectionLabel(b)}`)}else if(this.value){let w=T.parseLocalISO(this.value);this.setNavStatus(`${this.formatSelectionLabel(w)}`)}};this.handleInputBlur=()=>{if(this.disabled||this.visuallyDisabled){this.handleBlur();return}let t=this.parseInputText(this.inputValue);t.valid?this.applyParsedInput(t):(this.inputValue=this.formatInputValue(),this.showInvalidStyle=!!this.inputValue&&!this.value&&!this.rangeStart),this.handleBlur()};this.handleCurrentPlacement=t=>{let e=t.detail;e&&(this.currentPlacement=e)};this.handleHeaderKeyDown=(t,e,r,o)=>{if(!(this.disabled||this.visuallyDisabled||this.readonly)){if(t.key==="Tab"&&!t.shiftKey){o&&(t.preventDefault(),t.stopPropagation(),this.tabbingIntoGrid=!0,this.focusInitialGridDay());return}(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),t.stopPropagation(),e==="month"?this.setMonth(r):this.setYear(r))}};this.onKeyDown=t=>{var n;if(this.disabled||this.visuallyDisabled||this.readonly){t.preventDefault(),t.stopPropagation();return}let e=t.key,r=!0,o=new Date(this.focusedDate);switch(e){case"ArrowLeft":o.setDate(o.getDate()-1);break;case"ArrowRight":o.setDate(o.getDate()+1);break;case"ArrowUp":o.setDate(o.getDate()-7);break;case"ArrowDown":o.setDate(o.getDate()+7);break;case"Escape":{this.previewEnd?(this.previewEnd=null,this.setNavStatus(this.localize.term("selectionCleared"))):this.range&&this.rangeStart&&!this.rangeEnd&&(this.rangeStart=null,this.setNavStatus(this.localize.term("selectionCleared")),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}})),this.open&&(this.hide(),this.emit("sd-datepicker-close"));break}case"Enter":case" ":this.selectDate(this.focusedDate);break;default:r=!1}if(r){if(t.preventDefault(),o.getMonth()!==this.viewMonth.getMonth()||o.getFullYear()!==this.viewMonth.getFullYear()){this.viewMonth=new Date(o.getFullYear(),o.getMonth(),1);let m=this.formatMonthYear(this.viewMonth);this.setNavStatus(m)}let h=T.startOfDayLocal(o);h.getTime()!==((n=this.focusedDate)==null?void 0:n.getTime())&&(this.focusedDate=h);let u=h.toLocaleDateString(this.locale,{weekday:"long",day:"numeric",month:"long",year:"numeric"});this.setNavStatus(u),this.requestUpdate(),requestAnimationFrame(()=>{let m=this.shadowRoot,g=m==null?void 0:m.querySelector("button.day.focused");g==null||g.focus({preventScroll:!0})})}};this.handleInputKeyDown=t=>{if((this.disabled||this.visuallyDisabled||this.readonly)&&t.key!=="Tab"){t.preventDefault(),t.stopPropagation();return}if(!(t.key==="ArrowLeft"||t.key==="ArrowRight"||t.key==="ArrowUp"||t.key==="ArrowDown"||t.key==="Home"||t.key==="End"||t.key==="PageUp"||t.key==="PageDown")){if(t.key==="Escape"&&this.open){t.preventDefault(),this.hide(),this.emit("sd-datepicker-close");return}t.key==="Enter"&&!this.open&&!this.disabled&&!this.visuallyDisabled&&!this.readonly&&(t.preventDefault(),this.show())}};this.handleOutsideClick=this.handleOutsideClick.bind(this)}connectedCallback(){super.connectedCallback(),this.syncDisabledDatesSet(),document.addEventListener("click",this.handleOutsideClick),this.addEventListener("focusout",this.onFocusOut),this.updateComplete.then(()=>{this.formControlController.updateValidity()});let t=this.value?T.parseLocalISO(this.value):null,e=this.rangeStart?T.parseLocalISO(this.rangeStart):null,r=this.range&&e?e:t!=null?t:T.startOfDayLocal(new Date);this.viewMonth=new Date(r.getFullYear(),r.getMonth(),1),this.focusedDate=T.clampDateToMonth(r,this.viewMonth),(this.firstDayOfWeek===null||this.firstDayOfWeek===void 0)&&(this.firstDayOfWeek=1),this.inputValue=this.formatInputValue(),this.setAttribute("role","group"),this.setAttribute("aria-label",this.range?this.localize.term("datePickerRange"):this.localize.term("datePicker")),this.addEventListener("focusin",this.onFocusIn)}firstUpdated(){this.formControlController.updateValidity()}handleOpenChange(){this.popup&&(this.popup.active=this.open&&!this.disabled&&!this.visuallyDisabled)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusin",this.onFocusIn),this.removeEventListener("focusout",this.onFocusOut),document.removeEventListener("click",this.handleOutsideClick)}handleLocaleChange(){this.firstDayOfWeek===null&&(this.firstDayOfWeek=1),this.requestUpdate()}handleDisabledDatesChange(){this.syncDisabledDatesSet(),this.requestUpdate()}handleValueChange(){let t=this.value?T.parseLocalISO(this.value):null;t&&(this.viewMonth=new Date(t.getFullYear(),t.getMonth(),1),this.focusedDate=T.startOfDayLocal(t)),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var r;let e=this.input;if(e){e.value=(r=this.inputValue)!=null?r:"";let o=e.value.length;e.setSelectionRange(o,o)}this.formControlController.updateValidity()}),this.emit("sd-change",{detail:{value:this.value,rangeStart:this.rangeStart,rangeEnd:this.rangeEnd}})}handleRangeChange(){let t=this.rangeStart?T.parseLocalISO(this.rangeStart):null,e=this.rangeEnd?T.parseLocalISO(this.rangeEnd):null,r=t!=null?t:e;r&&(this.viewMonth=new Date(r.getFullYear(),r.getMonth(),1),this.focusedDate=T.startOfDayLocal(r)),this.previewEnd!==null&&(this.previewEnd=null),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var n;let o=this.input;if(o){o.value=(n=this.inputValue)!=null?n:"";let l=o.value.length;o.setSelectionRange(l,l)}this.formControlController.updateValidity()}),this.emit("sd-change",{detail:{value:this.value,rangeStart:this.rangeStart,rangeEnd:this.rangeEnd}})}handleDisabledChange(){this.formControlController.setValidity(this.disabled),(this.disabled||this.visuallyDisabled)&&(this.open=!1)}handleSizeChange(){this.size=this.floatingLabel&&this.size==="sm"?"md":this.size}get validity(){let t={valid:!0};return this.input instanceof HTMLInputElement?this.input.validity:t}get validationMessage(){return(this.input instanceof HTMLInputElement?this.input.validationMessage:"")||""}checkValidity(){return this.input instanceof HTMLInputElement?this.input.checkValidity():!0}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.input instanceof HTMLInputElement?this.input.reportValidity():!0}setCustomValidity(t){var e;(e=this.input)==null||e.setCustomValidity(t),this.formControlController.updateValidity()}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}parseISO(t){return T.parseLocalISO(t)}inMinMax(t){let e=this.min===null?null:this.parseISO(String(this.min)),r=this.max===null?null:this.parseISO(String(this.max));return!(e&&t<e||r&&t>r)}isInDisabledDates(t){if(!this.disabledDatesSet||this.disabledDatesSet.size===0)return!1;let e=t.getFullYear(),r=String(t.getMonth()+1).padStart(2,"0"),o=String(t.getDate()).padStart(2,"0"),n=`${e}-${r}-${o}`;return this.disabledDatesSet.has(n)}isWeekend(t){let e=t.getDay();return e===0||e===6}isDisabled(t){var e;return!!(!this.inMinMax(t)||this.disabledWeekends&&this.isWeekend(t)||this.isInDisabledDates(t)||(e=this.isDateDisabled)!=null&&e.call(this,t))}setNavStatus(t){this.statusNavText=t}announceSelect(t,e=40){setTimeout(()=>{this.statusBumpCounter++;let r="\u200B".repeat(this.statusBumpCounter%3);this.statusSelectText=t+r},e)}formatSelectionLabel(t){if(this.locale==="de-DE")return t.toLocaleDateString("de-DE",{day:"numeric",month:"long",year:"numeric"});let e=t.getDate(),r=this.ordinal(e),o=t.toLocaleDateString("en-US",{month:"long"}),n=t.getFullYear();return`${r} of ${o} ${n}`}ordinal(t){let e=["th","st","nd","rd"],r=t%100,o=e[(r-20)%10]||e[r]||e[0];return t+o}syncDisabledDatesSet(){let t=[];if(Array.isArray(this.disabledDates))t=this.disabledDates;else if(typeof this.disabledDates=="string"){let e=this.disabledDates.trim();if(e.startsWith("["))try{let r=JSON.parse(e);Array.isArray(r)&&(t=r)}catch(r){t=[]}else e.length>0&&(t=e.split(",").map(r=>r.trim()).filter(Boolean))}this.disabledDatesSet=new Set(t)}wouldRangeContainDisabled(t,e){let r=T.compareDates(t,e)<=0?T.startOfDayLocal(t):T.startOfDayLocal(e),o=T.compareDates(t,e)<=0?T.startOfDayLocal(e):T.startOfDayLocal(t),n=new Date(r);for(;T.compareDates(n,o)<=0;){if(this.isDisabled(n))return!0;n.setDate(n.getDate()+1)}return!1}termStartSelected(){var t,e;return(e=(t=this.localize)==null?void 0:t.term)==null?void 0:e.call(t,"startDateSelected")}termEndSelected(){var t,e;return(e=(t=this.localize)==null?void 0:t.term)==null?void 0:e.call(t,"endDateSelected")}isoToDmy(t){if(!t)return"";let e=T.parseLocalISO(t);if(e||(e=T.parseLocalISO(t.replace(/-/g,"."))),!e)return"";let r=String(e.getDate()).padStart(2,"0"),o=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getFullYear());return`${r}.${o}.${n}`}dmyToIso(t){if(!t)return null;let e=t.match(/^(\d{2})\.(\d{2})\.(\d{4})$/);if(!e)return null;let r=Number(e[1]),o=Number(e[2]),n=Number(e[3]),l=new Date(n,o-1,r);if(l.getFullYear()!==n||l.getMonth()!==o-1||l.getDate()!==r)return null;let h=T.startOfDayLocal(l);return T.toLocalISODate(h)}formatInputValue(){let t=(this.locale||"").toLowerCase(),e=(this.getAttribute("lang")||"").toLowerCase(),o=t.startsWith("de")||e.startsWith("de")?"\u2013":"-";if(!this.range)return this.isoToDmy(this.value);let n=this.isoToDmy(this.rangeStart),l=this.isoToDmy(this.rangeEnd);return n&&l?`${n} ${o} ${l}`:n&&!l?`${n} ${o}`:""}parseInputText(t){var o,n;let e=t.trim();if(this.range){let l=e.split(/\s*-\s*/);if(l.length===1){let h=l[0];if(!h)return{start:null,end:null,valid:!0};let u=this.dmyToIso(h);return u?{start:u,end:null,valid:!0}:{start:null,end:null,valid:!1}}else if(l.length>=2){let h=(o=l[0])!=null?o:"",u=(n=l[1])!=null?n:"",m=h?this.dmyToIso(h):null,g=u?this.dmyToIso(u):null;return h&&!m?{start:null,end:null,valid:!1}:u&&!g?{start:null,end:null,valid:!1}:{start:m,end:g,valid:!0}}return{start:null,end:null,valid:!1}}if(!e)return{single:null,valid:!0};let r=this.dmyToIso(e);return r?{single:r,valid:!0}:{single:null,valid:!1}}applyParsedInput(t){var h,u,m,g;if(!t.valid)return this.showInvalidStyle=!0,this.showValidStyle=!1,this.formControlController.setValidity(!1),!1;let e=w=>{if(!w)return!0;let b=T.parseLocalISO(w);return!(!this.inMinMax(b)||this.isDisabled(b))},r=!1;if(this.range){let w=(h=t.start)!=null?h:null,b=(u=t.end)!=null?u:null;if(!e(w)||b&&!e(b))return this.showInvalidStyle=!0,this.showValidStyle=!1,!1;let y=w?T.parseLocalISO(w):null,$=b?T.parseLocalISO(b):null;if(y&&$){if(T.compareDates(y,$)>0){let I=y;y=$,$=I}if(!this.allowSameDayRange&&T.isSameDay(y,$))return this.showInvalidStyle=!0,this.showValidStyle=!1,!1;if(this.wouldRangeContainDisabled(y,$))return this.showInvalidStyle=!0,this.showValidStyle=!1,!1}let z=y?T.toLocalISODate(T.startOfDayLocal(y)):null,S=$?T.toLocalISODate(T.startOfDayLocal($)):null;if(this.rangeStart!==z||this.rangeEnd!==S){this.rangeStart=z,this.rangeEnd=S,this.previewEnd=null,r=!0;let I=(m=y!=null?y:$)!=null?m:this.today;this.viewMonth=new Date(I.getFullYear(),I.getMonth(),1),this.focusedDate=T.startOfDayLocal(I),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}})}return this.showInvalidStyle=!1,this.range?this.showValidStyle=!!(this.rangeStart&&this.rangeEnd&&this.styleOnValid):this.showValidStyle=!!(this.value&&this.styleOnValid),this.formControlController.setValidity(!0),this.updateComplete.then(()=>{this.formControlController.updateValidity()}),!0}let o=(g=t.single)!=null?g:null;if(!e(o))return this.input.setCustomValidity(this.localize.term("datePickerRange")),this.formControlController.setValidity(!1),this.showInvalidStyle=!0,this.showValidStyle=!1,!1;let n=o?T.parseLocalISO(o):null,l=n?T.toLocalISODate(T.startOfDayLocal(n)):null;return this.value!==l&&(this.value=l,r=!0,n&&(this.viewMonth=new Date(n.getFullYear(),n.getMonth(),1),this.focusedDate=T.startOfDayLocal(n)),this.emit("sd-select",{detail:{value:this.value,date:n!=null?n:null}})),this.showInvalidStyle=!1,this.showValidStyle=!!this.value,this.inputValue=this.formatInputValue(),r}buildDmyFromDigits(t){let e=t.slice(0,8),r=e.slice(0,2),o=e.slice(2,4),n=e.slice(4,8),l=r;return o.length&&(l+="."+o),n.length&&(l+="."+n),l}digitIndexToDmyCaretPos(t){return t<=2?t:t<=4?3+(t-2):6+(t-4)}countDigitsBeforeCaret(t,e){return t.slice(0,e).replace(/\D/g,"").length}handleOutsideClick(t){var r,o;((o=(r=t.composedPath)==null?void 0:r.call(t))!=null?o:[]).includes(this)||(this.hide(),this.hasFocus=!1,this.emit("sd-datepicker-close"))}show(){if(this.open||this.disabled||this.visuallyDisabled||this.readonly){this.open=!1;return}this.open=!0}hide(){if(!this.open||this.disabled){this.open=!1;return}this.open=!1}handleMouseDown(t){if(this.visuallyDisabled||this.disabled||this.readonly){t.preventDefault(),t.stopPropagation();return}t.preventDefault(),this.open||this.show()}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleFocus(){this.hasFocus=!0,!this.open&&!this.disabled&&!this.visuallyDisabled&&!this.readonly&&this.show(),this.emit("sd-focus")}setMonth(t){let e=new Date(this.viewMonth.getFullYear(),this.viewMonth.getMonth()+t,1);if(e.getMonth()===this.viewMonth.getMonth()&&e.getFullYear()===this.viewMonth.getFullYear())return;this.viewMonth=e;let r=this.formatMonthYear(this.viewMonth);this.setNavStatus(r),this.emit("sd-month-change",{detail:{month:this.viewMonth}})}setYear(t){let e=new Date(this.viewMonth.getFullYear()+t,this.viewMonth.getMonth(),1);if(e.getFullYear()===this.viewMonth.getFullYear()&&e.getMonth()===this.viewMonth.getMonth())return;this.viewMonth=e;let r=this.formatMonthYear(this.viewMonth);this.setNavStatus(r),this.emit("sd-month-year",{detail:{month:this.viewMonth}})}focusInitialGridDay(){let t=null;if(!this.range&&this.value){let r=T.parseLocalISO(this.value);r&&(t=T.startOfDayLocal(r))}if(this.range){let r=this.rangeStart?T.parseLocalISO(this.rangeStart):null,o=this.rangeEnd?T.parseLocalISO(this.rangeEnd):null;o?t=T.startOfDayLocal(o):r&&(t=T.startOfDayLocal(r))}if(!(r=>r?r.getFullYear()===this.viewMonth.getFullYear()&&r.getMonth()===this.viewMonth.getMonth()&&!this.isDisabled(r):!1)(t)){let{weeks:r}=this.getMonthMatrix(this.viewMonth),o=r.flat().find(n=>n.getMonth()===this.viewMonth.getMonth()&&T.isSameDay(n,this.today)&&!this.isDisabled(n));if(o)t=T.startOfDayLocal(o);else{let n=r.flat().find(l=>l.getMonth()===this.viewMonth.getMonth()&&!this.isDisabled(l));t=n?T.startOfDayLocal(n):null}}t&&(this.focusedDate=t),this.requestUpdate(),requestAnimationFrame(()=>{let r=this.shadowRoot,o=(r==null?void 0:r.querySelector("button.day.selected"))||(r==null?void 0:r.querySelector("button.day.focused"))||(r==null?void 0:r.querySelector('button.day[tabindex="0"]'))||(r==null?void 0:r.querySelector("button.day"));o==null||o.focus({preventScroll:!0})})}selectSingleDate(t){if(this.readonly||this.isDisabled(t))return;let e=T.startOfDayLocal(t),r=T.toLocalISODate(e);if(this.value===r)return;this.value=r;let o=`${this.formatSelectionLabel(e)}, ${this.localize.term("selected")}`;this.announceSelect(o),this.emit("sd-select",{detail:{value:this.value,date:e}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var l;let n=this.input;n&&(n.value=(l=this.inputValue)!=null?l:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let h=n.value.length;n.setSelectionRange(h,h)})}))})}selectRangeDate(t){if(this.readonly)return;let e=T.startOfDayLocal(t),r=this.rangeStart?T.parseLocalISO(this.rangeStart):null,o=this.rangeEnd?T.parseLocalISO(this.rangeEnd):null;if(!r&&!o){if(this.isDisabled(e))return;this.rangeStart=T.toLocalISODate(e),this.rangeEnd=null,this.previewEnd=null;let n=this.formatSelectionLabel(e);this.announceSelect(`${this.termStartSelected()}: ${n}`,40),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var h;let l=this.input;l&&(l.value=(h=this.inputValue)!=null?h:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let u=l.value.length;l.setSelectionRange(u,u)})}))});return}if(r&&!o){if(this.isDisabled(e))return;if(T.isSameDay(r,e)){if(!this.allowSameDayRange){this.rangeStart=T.toLocalISODate(e),this.rangeEnd=null,this.previewEnd=null;let w=this.formatSelectionLabel(e);this.announceSelect(`${this.termStartSelected()}: ${w}`,40),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var y;let b=this.input;b&&(b.value=(y=this.inputValue)!=null?y:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let $=b.value.length;b.setSelectionRange($,$)})}))});return}this.rangeStart=T.toLocalISODate(e),this.rangeEnd=T.toLocalISODate(e),this.previewEnd=null;let g=this.formatSelectionLabel(e);this.announceSelect(`${this.termStartSelected()}: ${g}`,40),this.announceSelect(`${this.termEndSelected()}: ${g}`,140),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var b;let w=this.input;w&&(w.value=(b=this.inputValue)!=null?b:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let y=w.value.length;w.setSelectionRange(y,y)})}))});return}let n=T.parseLocalISO(this.rangeStart);if(this.wouldRangeContainDisabled(n,e))return;let[l,h]=T.compareDates(n,e)<=0?[n,e]:[e,n];this.rangeStart=T.toLocalISODate(l),this.rangeEnd=T.toLocalISODate(h),this.previewEnd=null;let u=this.formatSelectionLabel(l),m=this.formatSelectionLabel(h);this.announceSelect(`${this.termStartSelected()}: ${u}`,40),this.announceSelect(`${this.termEndSelected()}: ${m}`,140),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var w;let g=this.input;g&&(g.value=(w=this.inputValue)!=null?w:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let b=g.value.length;g.setSelectionRange(b,b)})}))});return}if(r&&o){if(this.isDisabled(e))return;this.rangeStart=T.toLocalISODate(e),this.rangeEnd=null,this.previewEnd=null;let n=this.formatSelectionLabel(e);this.announceSelect(`${this.termStartSelected()}: ${n}`,40),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var h;let l=this.input;l&&(l.value=(h=this.inputValue)!=null?h:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let u=l.value.length;l.setSelectionRange(u,u)})}))})}}selectDate(t){this.readonly||(this.range?this.selectRangeDate(t):this.selectSingleDate(t))}getMonthMatrix(t){var m;let e=(m=this.firstDayOfWeek)!=null?m:1,r=new Date(t.getFullYear(),t.getMonth(),1),o=new Date(r),n=(r.getDay()-e+7)%7;o.setDate(r.getDate()-n);let l=[],h=o;for(let g=0;g<6;g++){let w=[];for(let b=0;b<7;b++)w.push(new Date(h)),h.setDate(h.getDate()+1);l.push(w)}let u=g=>g.every(w=>w.getMonth()!==t.getMonth());for(;l.length>0&&u(l[l.length-1]);)l.pop();return{weeks:l}}formatMonthYear(t){try{return new Intl.DateTimeFormat(this.locale,{month:"long",year:"numeric"}).format(t)}catch(e){return`${t.toLocaleString(void 0,{month:"long"})} ${t.getFullYear()}`}}weekdayLabels(){var o;let t=(o=this.firstDayOfWeek)!=null?o:1,e=new Date(2021,7,1),r=[];for(let n=0;n<7;n++){let l=new Date(e);l.setDate(e.getDate()+(t+n)%7);try{r.push(new Intl.DateTimeFormat(this.locale,{weekday:"short"}).format(l))}catch(h){r.push(l.toLocaleDateString(void 0,{weekday:"short"}))}}return r}getTabTargetDayForCurrentView(t){let e=t.flat().find(o=>o.getMonth()===this.viewMonth.getMonth()&&T.isSameDay(o,this.today)&&!this.isDisabled(o));if(e)return T.startOfDayLocal(e);let r=t.flat().find(o=>o.getMonth()===this.viewMonth.getMonth()&&!this.isDisabled(o));return r?T.startOfDayLocal(r):null}onDayMouseEnter(t){if(!this.range||this.readonly)return;let e=this.rangeStart?T.parseLocalISO(this.rangeStart):null,r=this.rangeEnd?T.parseLocalISO(this.rangeEnd):null;if(e&&!r){let o=T.startOfDayLocal(t);this.previewEnd=this.isDisabled(o)?null:o,this.requestUpdate()}}onGridMouseLeave(){this.previewEnd!==null&&(this.previewEnd=null,this.requestUpdate())}renderCalendar(){var g;let{weeks:t}=this.getMonthMatrix(this.viewMonth),e=this.formatMonthYear(this.viewMonth),r=this.weekdayLabels(),o=this.value?this.parseISO(this.value):null,n=this.rangeStart?this.parseISO(this.rangeStart):null,l=this.rangeEnd?this.parseISO(this.rangeEnd):null,h=this.previewEnd,u=w=>!this.range||!n||l||!h?!1:T.isBetweenInclusive(w,n,h),m=this.getTabTargetDayForCurrentView(t);return p`<div part="datepicker" class="${c("w-[284px] z-50 bg-white py-3 px-4",this.open?"block":"hidden",(g=this.currentPlacement)!=null&&g.startsWith("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","border-primary")}"><div class="flex flex-row items-center w-full justify-between mb-3" part="header"><div class="flex items-center"><button type="button" tabindex="0" class="nav prev w-6 h-6 hover:cursor-pointer sd-interactive" part="prev-year-button" @click="${()=>this.setYear(-1)}" @keydown="${w=>this.handleHeaderKeyDown(w,"year",-1,!1)}" aria-label="${this.localize.term("previousYear")}"><sd-icon library="_internal" name="chevrons-sm-left" class="h-6 w-6"></sd-icon></button> <button type="button" tabindex="0" class="nav prev w-6 h-6 hover:cursor-pointer sd-interactive" part="prev-month-button" @click="${()=>this.setMonth(-1)}" @keydown="${w=>this.handleHeaderKeyDown(w,"month",-1,!1)}" aria-label="${this.localize.term("previousMonth")}"><sd-icon library="_internal" name="chevron-sm-left" class="h-6 w-6"></sd-icon></button></div><div tabindex="-1" class="month-label flex justify-center sd-headline sd-headline--size-base !text-primary" part="month-label" aria-live="polite">${e}</div><div class="flex items-center"><button type="button" tabindex="0" class="nav next w-6 h-6 hover:cursor-pointer sd-interactive" part="next-month-button" @click="${()=>this.setMonth(1)}" @keydown="${w=>this.handleHeaderKeyDown(w,"month",1,!1)}" aria-label="${this.localize.term("nextMonth")}"><sd-icon library="_internal" name="chevron-sm-right" class="h-6 w-6"></sd-icon></button> <button type="button" tabindex="0" class="nav next w-6 h-6 hover:cursor-pointer sd-interactive" part="next-year-button" @click="${()=>this.setYear(1)}" @keydown="${w=>this.handleHeaderKeyDown(w,"year",1,!0)}" aria-label="${this.localize.term("nextYear")}"><sd-icon library="_internal" name="chevrons-sm-right" class="h-6 w-6"></sd-icon></button></div></div><sd-divider></sd-divider><div class="sr-only" aria-live="polite" aria-atomic="true">${this.statusNavText}</div><div class="sr-only" aria-live="assertive" aria-atomic="true">${this.statusSelectText}</div><div class="sr-only" id="keyboard-hint">${this.localize.term("datePickerInfo")}</div><div class="grid mt-2" role="grid" aria-describedby="keyboard-hint" aria-label="${e}" part="grid" @mouseleave="${this.onGridMouseLeave}" @focusin="${()=>{this.tabbingIntoGrid=!1}}"><div class="grid-row grid-head grid grid-cols-7 gap-y-[1px]" role="row">${r.map((w,b)=>p`<div role="columnheader" aria-colindex="${b+1}" part="weekday" class="cell head flex items-center justify-center font-bold text-black text-sm leading-none h-8" aria-label="${w}" title="${w}" id="${"col-"+(b+1)}">${w}</div>`)}</div>${t.map((w,b)=>p`<div class="grid-row grid grid-cols-7 ${b===0?"mt-2":""}" role="row" aria-rowindex="${b+2}">${w.map((y,$)=>{let z=y.getMonth()===this.viewMonth.getMonth(),S=this.isDisabled(y)||!this.inMinMax(y),I=T.isSameDay(y,this.focusedDate),D=T.isSameDay(y,this.today),N=!this.range&&o?T.isSameDay(y,o):!1,_=this.range&&n?T.isSameDay(y,n):!1,F=this.range&&l?T.isSameDay(y,l):!1,W=this.range&&n&&l?T.isBetweenInclusive(y,n,l):!1,Pt=u(y)&&!S,vt=-1,ht=m&&T.isSameDay(y,m);(this.tabbingIntoGrid&&ht||!this.tabbingIntoGrid&&I)&&(vt=0);let Lt=this.isWeekend(y),tt=y.toLocaleDateString(this.locale,{weekday:"long",day:"numeric",month:"long",year:"numeric"}),ft=_?this.localize.term("startDateSelected"):F?this.localize.term("endDateSelected"):void 0;return p`<button type="button" part="day" class="${c("cell day flex items-center justify-center focus-visible:outline focus:outline-2 focus:outline-primary -outline-offset-2 rounded-md w-[36px]",this.size==="sm"?"text-sm h-6":"text-base h-8",_||F?"hover:bg-primary-500":"hover:bg-primary-100 hover:text-primary-500",z?this.isInDisabledDates(y)||!this.inMinMax(y)?"out-month text-neutral-500":this.disabledWeekends&&Lt?"weekend-day text-neutral-500":"in-month text-primary":this.disabledWeekends&&Lt?"out-month weekend-day text-neutral-500":Lt?"out-month weekend-day text-neutral-700":"out-month text-neutral-700",N?"selected border-primary bg-primary text-white hover:bg-primary-500 hover:text-white":"",_?"bg-primary text-white rounded-l-md rounded-r-none":"",F?"bg-primary text-white range-end rounded-r-md rounded-l-none":"",W&&!_&&!F?"in-range selected bg-primary-100 text-primary-500 rounded-none hover:bg-primary-500 hover:text-white":"",!W&&Pt&&!_&&!F?"in-preview-range bg-primary-100 text-primary-500 rounded-none":"",D&&!N&&!_&&!F&&I?"today border-[1px] border-primary font-bold":"",S?"disabled cursor-not-allowed hover:bg-transparent":"cursor-pointer",I&&!D?"focused outline outline-2 outline-primary":"")}" role="gridcell" aria-colindex="${$+1}" aria-labelledby="${"col-"+($+1)}" .tabIndex="${vt}" ?disabled="${S||this.disabled||this.readonly}" aria-disabled="${S||this.visuallyDisabled||this.disabled||this.readonly?"true":"false"}" aria-selected="${N||W||_||F?"true":"false"}" aria-current="${D?"date":Y}" aria-label="${tt}" aria-roledescription="${ft!=null?ft:Y}" @focus="${()=>this.focusedDate=T.startOfDayLocal(y)}" @mouseenter="${()=>this.onDayMouseEnter(y)}" @keydown="${this.onKeyDown}" @click="${()=>{this.focusedDate=T.startOfDayLocal(y),this.selectDate(y)}}">${y.getDate()}</button>`})}</div>`)}</div></div>`}render(){var y,$;let t={label:this.hasSlotController.test("label"),helpText:this.hasSlotController.test("help-text"),tooltip:this.hasSlotController.test("tooltip")},e=this.label?!0:!!t.label,r=this.helpText?!0:!!t.helpText,o=!!t.tooltip,n=this.value!==null&&String(this.value).length>0||this.range&&this.rangeStart!==null||this.rangeEnd!==null,l=this.floatingLabel&&e&&(this.hasFocus||this.open||n)&&!this.disabled&&!this.visuallyDisabled,h=this.disabled||this.visuallyDisabled?"text-neutral-500":"text-primary",u={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],m={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size],g=this.disabled?"disabled":this.visuallyDisabled&&!this.hasFocus?"visuallyDisabled":this.readonly?"readonly":this.hasFocus&&this.showInvalidStyle?"activeInvalid":this.hasFocus&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus||this.open?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",w={disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",readonly:"border-neutral-800",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"border-neutral-800"}[g],b=this.size==="sm"?"text-sm":"text-base";return p`<div part="form-control" class="${c("min-w-[284px]",this.open&&"z-50",(this.disabled||this.visuallyDisabled)&&"cursor-not-allowed")}">${e&&!this.floatingLabel||o?p`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${c(e?"inline-block form-control-color-text":"hidden",b)}" for="input" aria-hidden="${e?"false":"true"}"><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",this.disabled&&"pointer-events-none",this.visuallyDisabled&&"cursor-not-allowed")}">${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",l?this.size==="lg"?"top-2 text-xs":"top-1 text-xs":"top-1/2 -translate-y-1/2",l&&"mt-1")}" for="input"><span class="${c("leading-none",(this.visuallyDisabled||this.disabled)&&"text-neutral-500",l&&!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",w,this.open&&this.alignment==="left"?"rounded-bl-none":"",this.open&&this.alignment==="right"?"rounded-br-none":"",this.open&&((y=this.currentPlacement)!=null&&y.startsWith("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)!=null&&$.startsWith("bottom")?"origin-top":"origin-bottom")}" placement="${this.alignment==="left"?`${this.placement}-start`:`${this.placement}-end`}" flip shift auto-size="vertical" auto-size-padding="10" exportparts="popup:popup__content,"><div part="base" class="${c("px-4 flex flex-row items-center rounded-default transition-colors ease-in-out duration-medium hover:duration-fast w-full",!this.disabled&&!this.readonly&&!this.visuallyDisabled?"hover:bg-neutral-200":"",this.readonly?"bg-neutral-100":"bg-white",g==="disabled"||g==="visuallyDisabled"?"text-neutral-500":"text-black")}" slot="anchor"><input id="input" type="text" role="combobox" aria-expanded="${this.open?"true":"false"}" aria-haspopup="dialog" aria-controls="calendar-grid" aria-describedby="${r?"help-text":void 0}" aria-invalid="${this.showInvalidStyle?"true":"false"}" aria-label="${this.range?"Select date range":"Select a date"}" class="${c("min-w-0 flex-grow focus:outline-none bg-transparent hover:cursor-pointer form-control-color-text",this.visuallyDisabled||this.disabled?"placeholder:text-neutral-500 cursor-not-allowed":"placeholder:text-neutral-700",{sm:"h-8",md:"h-10",lg:"h-12"}[this.size],b,this.floatingLabel&&"mt-4")}" autocomplete="off" spellcheck="false" placeholder="${!this.floatingLabel||l?this.placeholder||this.localize.term(this.range?"dateRangePlaceholder":"datePlaceholder"):""}" ?disabled="${this.disabled}" ?required="${this.required}" ?readonly="${this.readonly||this.visuallyDisabled}" @input="${this.handleInput}" @click="${this.handleMouseDown}" @keydown="${this.handleInputKeyDown}" @focus="${this.handleFocus}" @blur="${this.handleInputBlur}" @invalid="${this.handleInvalid}"> ${this.showInvalidStyle?p`<sd-icon part="invalid-icon" class="${c("text-error",u,m)}" library="_internal" name="risk"></sd-icon>`:""} ${this.showValidStyle&&this.styleOnValid?p`<sd-icon class="${c("text-success flex-shrink-0",u,m)}" library="_internal" name="confirm-circle" part="valid-icon"></sd-icon>`:""}<sd-icon class="${c(h,u,m,"hover:cursor-pointer")}" library="_internal" name="calendar" @click="${this.show}"></sd-icon></div>${this.renderCalendar()}</sd-popup></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${c("text-sm text-neutral-700 mt-1",r?"block":"hidden")}" aria-hidden="${!r}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage(this.size)}`}};O.styles=[...f.styles,x`/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
212
+ :host{margin:calc(var(--sd-spacing-1) * 0)}:host(sd-divider[orientation=horizontal]){display:block}:host(sd-divider[orientation=vertical]){display:inline-block}`],a([d({type:String,reflect:!0})],ye.prototype,"orientation",2),a([d({type:Boolean,reflect:!0})],ye.prototype,"inverted",2),ye=a([k("sd-divider")],ye);var T={startOfDayLocal:s=>new Date(s.getFullYear(),s.getMonth(),s.getDate()),isSameDay:(s,i)=>!s||!i?!1:s.getFullYear()===i.getFullYear()&&s.getMonth()===i.getMonth()&&s.getDate()===i.getDate(),clampDateToMonth:(s,i)=>{let t=new Date(i.getFullYear(),i.getMonth(),1),e=new Date(i.getFullYear(),i.getMonth()+1,0);return s<t?t:s>e?e:s},toLocalISODate:s=>{let i=s.getFullYear(),t=String(s.getMonth()+1).padStart(2,"0"),e=String(s.getDate()).padStart(2,"0");return`${i}-${t}-${e}`},parseLocalISO:s=>{if(!s)return null;let i,t,e;if(/^\d{4}-\d{2}-\d{2}$/.test(s)){let o=s.split("-");i=Number(o[0]),t=Number(o[1])-1,e=Number(o[2])}else if(/^\d{4}\.\d{2}\.\d{2}$/.test(s)){let o=s.split(".");i=Number(o[0]),t=Number(o[1])-1,e=Number(o[2])}else return null;let r=new Date(i,t,e);return Number.isNaN(r.getTime())?null:r},compareDates:(s,i)=>{let t=T.startOfDayLocal(s).getTime(),e=T.startOfDayLocal(i).getTime();return t-e},isBetweenInclusive:(s,i,t)=>{let e=T.compareDates(i,t)<=0?i:t,r=T.compareDates(i,t)<=0?t:i;return T.compareDates(s,e)>=0&&T.compareDates(s,r)<=0}};var Qi={fromAttribute(s){if(!s)return null;let t=s.trim().replace(/[./]/g,"-").match(/^(\d{4})-(\d{2})-(\d{2})$/);if(!t)return null;let e=`${t[1]}-${t[2]}-${t[3]}`,r=new Date(+t[1],+t[2]-1,+t[3]);return r.getFullYear()!==+t[1]||r.getMonth()!==+t[2]-1||r.getDate()!==+t[3]?null:e},toAttribute(s){return s!=null?s:""}},Ad={fromAttribute(s){if(!s)return[];let i=[],t=s.trim();if(t.startsWith("["))try{let r=JSON.parse(t);Array.isArray(r)&&(i=r.map(String))}catch(r){return[]}else i=t.split(/[\s,]+/).map(r=>r.trim()).filter(Boolean);let e=[];for(let r of i){let n=r.replace(/[-/]/g,".").split(".");if(n.length!==3)continue;let[l,h,u]=n.map(Number);if(!l||!h||!u)continue;let m=new Date(l,h-1,u);if(m.getFullYear()!==l||m.getMonth()!==h-1||m.getDate()!==u)continue;let g=`${l}-${String(h).padStart(2,"0")}-${String(u).padStart(2,"0")}`;e.push(g)}return e},toAttribute(s){return s?s.join(","):""}},O=class extends f{constructor(){super();this.localize=new A(this);this.hasSlotController=new H(this,"label","help-text","tooltip");this.formControlController=new pt(this,{assumeInteractionOn:["sd-blur","sd-input"]});this.locale="en-US";this.value=null;this.range=!1;this.rangeStart=null;this.rangeEnd=null;this.allowSameDayRange=!1;this.min=void 0;this.max=void 0;this.firstDayOfWeek=null;this.disabledWeekends=!1;this.disabledDates=[];this.isDateDisabled=null;this.size="lg";this.alignment="left";this.label="";this.helpText="";this.floatingLabel=!1;this.disabled=!1;this.required=!1;this.visuallyDisabled=!1;this.styleOnValid=!1;this.readonly=!1;this.placement="bottom";this.placeholder="";this.name="";this.form="";this.open=!1;this.today=T.startOfDayLocal(new Date);this.disabledDatesSet=new Set;this.previewEnd=null;this.statusNavText="";this.statusSelectText="";this.hasFocus=!1;this.showValidStyle=!1;this.showInvalidStyle=!1;this.currentPlacement=this.placement;this.inputValue="";this.tabbingIntoGrid=!1;this.statusBumpCounter=0;this.onFocusOut=t=>{let e=t.relatedTarget;e&&this.contains(e)||(this.open&&(this.hide(),this.emit("sd-datepicker-close")),this.hasFocus=!1)};this.onFocusIn=t=>{if(this.disabled||this.visuallyDisabled)return;t.composedPath().some(o=>{var n,l;return o instanceof HTMLElement&&(((n=o.classList)==null?void 0:n.contains("nav"))||((l=o.classList)==null?void 0:l.contains("month-label")))})&&(this.tabbingIntoGrid=!0)};this.handleInput=t=>{var l,h,u,m,g;if(this.disabled||this.visuallyDisabled||this.readonly){(l=t.preventDefault)==null||l.call(t),(h=t.stopPropagation)==null||h.call(t);return}let e=t.target,r=e.value,o=(u=e.selectionStart)!=null?u:r.length,n=(m=t.inputType)==null?void 0:m.startsWith("delete");if(this.range){let w=r.replace(/\D/g,""),b=w.slice(0,8),y=w.slice(8,16),$=this.buildDmyFromDigits(b),z=this.buildDmyFromDigits(y),S;b.length===0?S="":b.length<8?S=$:y.length>0?S=`${$} - ${z}`:S=n?$:`${$} -`;let I=this.countDigitsBeforeCaret(r,o),D;if(I<=8){let _=this.digitIndexToDmyCaretPos(Math.min(I,8));D=Math.min(_,$.length)}else{let _=b.length<8?$.length:$.length+3,F=Math.min(I-8,8),W=this.digitIndexToDmyCaretPos(F);D=_+Math.min(W,z.length)}this.inputValue=S;let N=!1;if(/^\d{2}\.\d{2}\.\d{4}$/.test($)){let _=this.dmyToIso($),F=_?T.parseLocalISO(_):null;F&&!this.isDisabled(F)&&this.inMinMax(F)&&this.rangeStart!==_&&(this.rangeStart=_,this.previewEnd=null,this.viewMonth=new Date(F.getFullYear(),F.getMonth(),1),this.focusedDate=T.startOfDayLocal(F),N=!0)}else this.rangeStart&&(this.rangeStart=null,N=!0),this.rangeEnd&&(this.rangeEnd=null,N=!0);if(/^\d{2}\.\d{2}\.\d{4}$/.test(z)&&this.rangeStart){let _=T.parseLocalISO(this.rangeStart),F=this.dmyToIso(z),W=F?T.parseLocalISO(F):null;if(!!W&&!this.isDisabled(W)&&this.inMinMax(W)){let[vt,ht]=T.compareDates(_,W)<=0?[_,W]:[W,_],Lt=T.isSameDay(vt,ht);if((this.allowSameDayRange||!Lt)&&!this.wouldRangeContainDisabled(vt,ht)){let ft=T.toLocalISODate(T.startOfDayLocal(vt)),gt=T.toLocalISODate(T.startOfDayLocal(ht));(this.rangeStart!==ft||this.rangeEnd!==gt)&&(this.rangeStart=ft,this.rangeEnd=gt,this.viewMonth=new Date(ht.getFullYear(),ht.getMonth(),1),this.focusedDate=T.startOfDayLocal(ht),N=!0)}}}else this.rangeEnd&&(this.rangeEnd=null,N=!0);this.showInvalidStyle=!1,this.showValidStyle=!!(this.rangeStart&&this.rangeEnd),N&&(this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.emit("sd-change",{detail:{value:this.value,rangeStart:this.rangeStart,rangeEnd:this.rangeEnd}})),Promise.resolve().then(()=>{requestAnimationFrame(()=>{var F;let _=(F=this.input)!=null?F:e;_&&(_.value=this.inputValue,_.setSelectionRange(D,D))})})}else{let w=e,b=w.value,y=(g=w.selectionStart)!=null?g:b.length,$=b.replace(/\D/g,"").slice(0,8),z=$.slice(0,2),S=$.slice(2,4),I=$.slice(4,8),D="";z.length>0&&(D+=z,z.length===2&&(D+=".")),S.length>0&&z.length===2&&(D+=S,S.length===2&&(D+=".")),I.length>0&&z.length===2&&S.length===2&&(D+=I),D=D.replace(/\.\.+/g,".");let N=this.inputValue||"";this.inputValue=D;let _=y,F=tt=>{let ft=[];for(let gt=0;gt<tt.length;gt++)tt[gt]==="."&&ft.push(gt);return ft},W=F(N),Pt=F(D),vt=W.filter(tt=>tt<y).length,Lt=Pt.filter(tt=>tt<y).length-vt;if(Lt>0?_+=Lt:!W.includes(y)&&Pt.includes(y)&&(_+=1),_=Math.min(Math.max(0,_),D.length),requestAnimationFrame(()=>{var ft;let tt=(ft=this.input)!=null?ft:w;tt&&(tt.value=this.inputValue,tt.setSelectionRange(_,_))}),/^\d{2}\.\d{2}\.\d{4}$/.test(D)){let tt=this.parseInputText(D);this.applyParsedInput(tt)}else this.showInvalidStyle=!1,this.showValidStyle=!1;return}if(!this.open&&this.hasFocus&&!this.disabled&&!this.visuallyDisabled&&this.show(),this.range){let w=this.rangeStart?T.parseLocalISO(this.rangeStart):null,b=this.rangeEnd?T.parseLocalISO(this.rangeEnd):null;w&&!b?this.setNavStatus(`${this.termStartSelected()}: ${this.formatSelectionLabel(w)}`):w&&b&&this.setNavStatus(`${this.termStartSelected()}: ${this.formatSelectionLabel(w)}; ${this.termEndSelected()}: ${this.formatSelectionLabel(b)}`)}else if(this.value){let w=T.parseLocalISO(this.value);this.setNavStatus(`${this.formatSelectionLabel(w)}`)}};this.handleInputBlur=()=>{if(this.disabled||this.visuallyDisabled){this.handleBlur();return}let t=this.parseInputText(this.inputValue);t.valid?this.applyParsedInput(t):(this.inputValue=this.formatInputValue(),this.showInvalidStyle=!!this.inputValue&&!this.value&&!this.rangeStart),this.handleBlur()};this.handleCurrentPlacement=t=>{let e=t.detail;e&&(this.currentPlacement=e)};this.handleHeaderKeyDown=(t,e,r,o)=>{if(!(this.disabled||this.visuallyDisabled||this.readonly)){if(t.key==="Tab"&&!t.shiftKey){o&&(t.preventDefault(),t.stopPropagation(),this.tabbingIntoGrid=!0,this.focusInitialGridDay());return}(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),t.stopPropagation(),e==="month"?this.setMonth(r):this.setYear(r))}};this.onKeyDown=t=>{var n;if(this.disabled||this.visuallyDisabled||this.readonly){t.preventDefault(),t.stopPropagation();return}let e=t.key,r=!0,o=new Date(this.focusedDate);switch(e){case"ArrowLeft":o.setDate(o.getDate()-1);break;case"ArrowRight":o.setDate(o.getDate()+1);break;case"ArrowUp":o.setDate(o.getDate()-7);break;case"ArrowDown":o.setDate(o.getDate()+7);break;case"Escape":{this.previewEnd?(this.previewEnd=null,this.setNavStatus(this.localize.term("selectionCleared"))):this.range&&this.rangeStart&&!this.rangeEnd&&(this.rangeStart=null,this.setNavStatus(this.localize.term("selectionCleared")),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}})),this.open&&(this.hide(),this.emit("sd-datepicker-close"));break}case"Enter":case" ":this.selectDate(this.focusedDate);break;default:r=!1}if(r){if(t.preventDefault(),o.getMonth()!==this.viewMonth.getMonth()||o.getFullYear()!==this.viewMonth.getFullYear()){this.viewMonth=new Date(o.getFullYear(),o.getMonth(),1);let m=this.formatMonthYear(this.viewMonth);this.setNavStatus(m)}let h=T.startOfDayLocal(o);h.getTime()!==((n=this.focusedDate)==null?void 0:n.getTime())&&(this.focusedDate=h);let u=h.toLocaleDateString(this.locale,{weekday:"long",day:"numeric",month:"long",year:"numeric"});this.setNavStatus(u),this.requestUpdate(),requestAnimationFrame(()=>{let m=this.shadowRoot,g=m==null?void 0:m.querySelector("button.day.focused");g==null||g.focus({preventScroll:!0})})}};this.handleInputKeyDown=t=>{if((this.disabled||this.visuallyDisabled||this.readonly)&&t.key!=="Tab"){t.preventDefault(),t.stopPropagation();return}if(!(t.key==="ArrowLeft"||t.key==="ArrowRight"||t.key==="ArrowUp"||t.key==="ArrowDown"||t.key==="Home"||t.key==="End"||t.key==="PageUp"||t.key==="PageDown")){if(t.key==="Escape"&&this.open){t.preventDefault(),this.hide(),this.emit("sd-datepicker-close");return}t.key==="Enter"&&!this.open&&!this.disabled&&!this.visuallyDisabled&&!this.readonly&&(t.preventDefault(),this.show())}};this.handleOutsideClick=this.handleOutsideClick.bind(this)}connectedCallback(){super.connectedCallback(),this.syncDisabledDatesSet(),document.addEventListener("click",this.handleOutsideClick),this.addEventListener("focusout",this.onFocusOut),this.updateComplete.then(()=>{this.formControlController.updateValidity()});let t=this.value?T.parseLocalISO(this.value):null,e=this.rangeStart?T.parseLocalISO(this.rangeStart):null,r=this.range&&e?e:t!=null?t:T.startOfDayLocal(new Date);this.viewMonth=new Date(r.getFullYear(),r.getMonth(),1),this.focusedDate=T.clampDateToMonth(r,this.viewMonth),(this.firstDayOfWeek===null||this.firstDayOfWeek===void 0)&&(this.firstDayOfWeek=1),this.inputValue=this.formatInputValue(),this.setAttribute("role","group"),this.setAttribute("aria-label",this.range?this.localize.term("datePickerRange"):this.localize.term("datePicker")),this.addEventListener("focusin",this.onFocusIn)}firstUpdated(){this.formControlController.updateValidity()}handleOpenChange(){this.popup&&(this.popup.active=this.open&&!this.disabled&&!this.visuallyDisabled)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusin",this.onFocusIn),this.removeEventListener("focusout",this.onFocusOut),document.removeEventListener("click",this.handleOutsideClick)}handleLocaleChange(){this.firstDayOfWeek===null&&(this.firstDayOfWeek=1),this.requestUpdate()}handleDisabledDatesChange(){this.syncDisabledDatesSet(),this.requestUpdate()}handleValueChange(){let t=this.value?T.parseLocalISO(this.value):null;t&&(this.viewMonth=new Date(t.getFullYear(),t.getMonth(),1),this.focusedDate=T.startOfDayLocal(t)),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var r;let e=this.input;if(e){e.value=(r=this.inputValue)!=null?r:"";let o=e.value.length;e.setSelectionRange(o,o)}this.formControlController.updateValidity()}),this.emit("sd-change",{detail:{value:this.value,rangeStart:this.rangeStart,rangeEnd:this.rangeEnd}})}handleRangeChange(){let t=this.rangeStart?T.parseLocalISO(this.rangeStart):null,e=this.rangeEnd?T.parseLocalISO(this.rangeEnd):null,r=t!=null?t:e;r&&(this.viewMonth=new Date(r.getFullYear(),r.getMonth(),1),this.focusedDate=T.startOfDayLocal(r)),this.previewEnd!==null&&(this.previewEnd=null),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var n;let o=this.input;if(o){o.value=(n=this.inputValue)!=null?n:"";let l=o.value.length;o.setSelectionRange(l,l)}this.formControlController.updateValidity()}),this.emit("sd-change",{detail:{value:this.value,rangeStart:this.rangeStart,rangeEnd:this.rangeEnd}})}handleDisabledChange(){this.formControlController.setValidity(this.disabled),(this.disabled||this.visuallyDisabled)&&(this.open=!1)}handleSizeChange(){this.size=this.floatingLabel&&this.size==="sm"?"md":this.size}get validity(){let t={valid:!0};return this.input instanceof HTMLInputElement?this.input.validity:t}get validationMessage(){return(this.input instanceof HTMLInputElement?this.input.validationMessage:"")||""}checkValidity(){return this.input instanceof HTMLInputElement?this.input.checkValidity():!0}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.input instanceof HTMLInputElement?this.input.reportValidity():!0}setCustomValidity(t){var e;(e=this.input)==null||e.setCustomValidity(t),this.formControlController.updateValidity()}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}parseISO(t){return T.parseLocalISO(t)}inMinMax(t){let e=this.min===null?null:this.parseISO(String(this.min)),r=this.max===null?null:this.parseISO(String(this.max));return!(e&&t<e||r&&t>r)}isInDisabledDates(t){if(!this.disabledDatesSet||this.disabledDatesSet.size===0)return!1;let e=t.getFullYear(),r=String(t.getMonth()+1).padStart(2,"0"),o=String(t.getDate()).padStart(2,"0"),n=`${e}-${r}-${o}`;return this.disabledDatesSet.has(n)}isWeekend(t){let e=t.getDay();return e===0||e===6}isDisabled(t){var e;return!!(!this.inMinMax(t)||this.disabledWeekends&&this.isWeekend(t)||this.isInDisabledDates(t)||(e=this.isDateDisabled)!=null&&e.call(this,t))}setNavStatus(t){this.statusNavText=t}announceSelect(t,e=40){setTimeout(()=>{this.statusBumpCounter++;let r="\u200B".repeat(this.statusBumpCounter%3);this.statusSelectText=t+r},e)}formatSelectionLabel(t){if(this.locale==="de-DE")return t.toLocaleDateString("de-DE",{day:"numeric",month:"long",year:"numeric"});let e=t.getDate(),r=this.ordinal(e),o=t.toLocaleDateString("en-US",{month:"long"}),n=t.getFullYear();return`${r} of ${o} ${n}`}ordinal(t){let e=["th","st","nd","rd"],r=t%100,o=e[(r-20)%10]||e[r]||e[0];return t+o}syncDisabledDatesSet(){let t=[];if(Array.isArray(this.disabledDates))t=this.disabledDates;else if(typeof this.disabledDates=="string"){let e=this.disabledDates.trim();if(e.startsWith("["))try{let r=JSON.parse(e);Array.isArray(r)&&(t=r)}catch(r){t=[]}else e.length>0&&(t=e.split(",").map(r=>r.trim()).filter(Boolean))}this.disabledDatesSet=new Set(t)}wouldRangeContainDisabled(t,e){let r=T.compareDates(t,e)<=0?T.startOfDayLocal(t):T.startOfDayLocal(e),o=T.compareDates(t,e)<=0?T.startOfDayLocal(e):T.startOfDayLocal(t),n=new Date(r);for(;T.compareDates(n,o)<=0;){if(this.isDisabled(n))return!0;n.setDate(n.getDate()+1)}return!1}termStartSelected(){var t,e;return(e=(t=this.localize)==null?void 0:t.term)==null?void 0:e.call(t,"startDateSelected")}termEndSelected(){var t,e;return(e=(t=this.localize)==null?void 0:t.term)==null?void 0:e.call(t,"endDateSelected")}isoToDmy(t){if(!t)return"";let e=T.parseLocalISO(t);if(e||(e=T.parseLocalISO(t.replace(/-/g,"."))),!e)return"";let r=String(e.getDate()).padStart(2,"0"),o=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getFullYear());return`${r}.${o}.${n}`}dmyToIso(t){if(!t)return null;let e=t.match(/^(\d{2})\.(\d{2})\.(\d{4})$/);if(!e)return null;let r=Number(e[1]),o=Number(e[2]),n=Number(e[3]),l=new Date(n,o-1,r);if(l.getFullYear()!==n||l.getMonth()!==o-1||l.getDate()!==r)return null;let h=T.startOfDayLocal(l);return T.toLocalISODate(h)}formatInputValue(){let t=(this.locale||"").toLowerCase(),e=(this.getAttribute("lang")||"").toLowerCase(),o=t.startsWith("de")||e.startsWith("de")?"\u2013":"-";if(!this.range)return this.isoToDmy(this.value);let n=this.isoToDmy(this.rangeStart),l=this.isoToDmy(this.rangeEnd);return n&&l?`${n} ${o} ${l}`:n&&!l?`${n} ${o}`:""}parseInputText(t){var o,n;let e=t.trim();if(this.range){let l=e.split(/\s*-\s*/);if(l.length===1){let h=l[0];if(!h)return{start:null,end:null,valid:!0};let u=this.dmyToIso(h);return u?{start:u,end:null,valid:!0}:{start:null,end:null,valid:!1}}else if(l.length>=2){let h=(o=l[0])!=null?o:"",u=(n=l[1])!=null?n:"",m=h?this.dmyToIso(h):null,g=u?this.dmyToIso(u):null;return h&&!m?{start:null,end:null,valid:!1}:u&&!g?{start:null,end:null,valid:!1}:{start:m,end:g,valid:!0}}return{start:null,end:null,valid:!1}}if(!e)return{single:null,valid:!0};let r=this.dmyToIso(e);return r?{single:r,valid:!0}:{single:null,valid:!1}}applyParsedInput(t){var h,u,m,g;if(!t.valid)return this.showInvalidStyle=!0,this.showValidStyle=!1,this.formControlController.setValidity(!1),!1;let e=w=>{if(!w)return!0;let b=T.parseLocalISO(w);return!(!this.inMinMax(b)||this.isDisabled(b))},r=!1;if(this.range){let w=(h=t.start)!=null?h:null,b=(u=t.end)!=null?u:null;if(!e(w)||b&&!e(b))return this.showInvalidStyle=!0,this.showValidStyle=!1,!1;let y=w?T.parseLocalISO(w):null,$=b?T.parseLocalISO(b):null;if(y&&$){if(T.compareDates(y,$)>0){let I=y;y=$,$=I}if(!this.allowSameDayRange&&T.isSameDay(y,$))return this.showInvalidStyle=!0,this.showValidStyle=!1,!1;if(this.wouldRangeContainDisabled(y,$))return this.showInvalidStyle=!0,this.showValidStyle=!1,!1}let z=y?T.toLocalISODate(T.startOfDayLocal(y)):null,S=$?T.toLocalISODate(T.startOfDayLocal($)):null;if(this.rangeStart!==z||this.rangeEnd!==S){this.rangeStart=z,this.rangeEnd=S,this.previewEnd=null,r=!0;let I=(m=y!=null?y:$)!=null?m:this.today;this.viewMonth=new Date(I.getFullYear(),I.getMonth(),1),this.focusedDate=T.startOfDayLocal(I),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}})}return this.showInvalidStyle=!1,this.range?this.showValidStyle=!!(this.rangeStart&&this.rangeEnd&&this.styleOnValid):this.showValidStyle=!!(this.value&&this.styleOnValid),this.formControlController.setValidity(!0),this.updateComplete.then(()=>{this.formControlController.updateValidity()}),!0}let o=(g=t.single)!=null?g:null;if(!e(o))return this.input.setCustomValidity(this.localize.term("datePickerRange")),this.formControlController.setValidity(!1),this.showInvalidStyle=!0,this.showValidStyle=!1,!1;let n=o?T.parseLocalISO(o):null,l=n?T.toLocalISODate(T.startOfDayLocal(n)):null;return this.value!==l&&(this.value=l,r=!0,n&&(this.viewMonth=new Date(n.getFullYear(),n.getMonth(),1),this.focusedDate=T.startOfDayLocal(n)),this.emit("sd-select",{detail:{value:this.value,date:n!=null?n:null}})),this.showInvalidStyle=!1,this.showValidStyle=!!this.value,this.inputValue=this.formatInputValue(),r}buildDmyFromDigits(t){let e=t.slice(0,8),r=e.slice(0,2),o=e.slice(2,4),n=e.slice(4,8),l=r;return o.length&&(l+="."+o),n.length&&(l+="."+n),l}digitIndexToDmyCaretPos(t){return t<=2?t:t<=4?3+(t-2):6+(t-4)}countDigitsBeforeCaret(t,e){return t.slice(0,e).replace(/\D/g,"").length}handleOutsideClick(t){var r,o;((o=(r=t.composedPath)==null?void 0:r.call(t))!=null?o:[]).includes(this)||(this.hide(),this.hasFocus=!1,this.emit("sd-datepicker-close"))}show(){if(this.open||this.disabled||this.visuallyDisabled||this.readonly){this.open=!1;return}this.open=!0}hide(){if(!this.open||this.disabled){this.open=!1;return}this.open=!1}handleMouseDown(t){if(this.visuallyDisabled||this.disabled||this.readonly){t.preventDefault(),t.stopPropagation();return}t.preventDefault(),this.open||this.show()}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleFocus(){this.hasFocus=!0,!this.open&&!this.disabled&&!this.visuallyDisabled&&!this.readonly&&this.show(),this.emit("sd-focus")}setMonth(t){let e=new Date(this.viewMonth.getFullYear(),this.viewMonth.getMonth()+t,1);if(e.getMonth()===this.viewMonth.getMonth()&&e.getFullYear()===this.viewMonth.getFullYear())return;this.viewMonth=e;let r=this.formatMonthYear(this.viewMonth);this.setNavStatus(r),this.emit("sd-month-change",{detail:{month:this.viewMonth}})}setYear(t){let e=new Date(this.viewMonth.getFullYear()+t,this.viewMonth.getMonth(),1);if(e.getFullYear()===this.viewMonth.getFullYear()&&e.getMonth()===this.viewMonth.getMonth())return;this.viewMonth=e;let r=this.formatMonthYear(this.viewMonth);this.setNavStatus(r),this.emit("sd-month-year",{detail:{month:this.viewMonth}})}focusInitialGridDay(){let t=null;if(!this.range&&this.value){let r=T.parseLocalISO(this.value);r&&(t=T.startOfDayLocal(r))}if(this.range){let r=this.rangeStart?T.parseLocalISO(this.rangeStart):null,o=this.rangeEnd?T.parseLocalISO(this.rangeEnd):null;o?t=T.startOfDayLocal(o):r&&(t=T.startOfDayLocal(r))}if(!(r=>r?r.getFullYear()===this.viewMonth.getFullYear()&&r.getMonth()===this.viewMonth.getMonth()&&!this.isDisabled(r):!1)(t)){let{weeks:r}=this.getMonthMatrix(this.viewMonth),o=r.flat().find(n=>n.getMonth()===this.viewMonth.getMonth()&&T.isSameDay(n,this.today)&&!this.isDisabled(n));if(o)t=T.startOfDayLocal(o);else{let n=r.flat().find(l=>l.getMonth()===this.viewMonth.getMonth()&&!this.isDisabled(l));t=n?T.startOfDayLocal(n):null}}t&&(this.focusedDate=t),this.requestUpdate(),requestAnimationFrame(()=>{let r=this.shadowRoot,o=(r==null?void 0:r.querySelector("button.day.selected"))||(r==null?void 0:r.querySelector("button.day.focused"))||(r==null?void 0:r.querySelector('button.day[tabindex="0"]'))||(r==null?void 0:r.querySelector("button.day"));o==null||o.focus({preventScroll:!0})})}selectSingleDate(t){if(this.readonly||this.isDisabled(t))return;let e=T.startOfDayLocal(t),r=T.toLocalISODate(e);if(this.value===r)return;this.value=r;let o=`${this.formatSelectionLabel(e)}, ${this.localize.term("selected")}`;this.announceSelect(o),this.emit("sd-select",{detail:{value:this.value,date:e}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var l;let n=this.input;n&&(n.value=(l=this.inputValue)!=null?l:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let h=n.value.length;n.setSelectionRange(h,h)})}))})}selectRangeDate(t){if(this.readonly)return;let e=T.startOfDayLocal(t),r=this.rangeStart?T.parseLocalISO(this.rangeStart):null,o=this.rangeEnd?T.parseLocalISO(this.rangeEnd):null;if(!r&&!o){if(this.isDisabled(e))return;this.rangeStart=T.toLocalISODate(e),this.rangeEnd=null,this.previewEnd=null;let n=this.formatSelectionLabel(e);this.announceSelect(`${this.termStartSelected()}: ${n}`,40),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var h;let l=this.input;l&&(l.value=(h=this.inputValue)!=null?h:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let u=l.value.length;l.setSelectionRange(u,u)})}))});return}if(r&&!o){if(this.isDisabled(e))return;if(T.isSameDay(r,e)){if(!this.allowSameDayRange){this.rangeStart=T.toLocalISODate(e),this.rangeEnd=null,this.previewEnd=null;let w=this.formatSelectionLabel(e);this.announceSelect(`${this.termStartSelected()}: ${w}`,40),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var y;let b=this.input;b&&(b.value=(y=this.inputValue)!=null?y:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let $=b.value.length;b.setSelectionRange($,$)})}))});return}this.rangeStart=T.toLocalISODate(e),this.rangeEnd=T.toLocalISODate(e),this.previewEnd=null;let g=this.formatSelectionLabel(e);this.announceSelect(`${this.termStartSelected()}: ${g}`,40),this.announceSelect(`${this.termEndSelected()}: ${g}`,140),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var b;let w=this.input;w&&(w.value=(b=this.inputValue)!=null?b:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let y=w.value.length;w.setSelectionRange(y,y)})}))});return}let n=T.parseLocalISO(this.rangeStart);if(this.wouldRangeContainDisabled(n,e))return;let[l,h]=T.compareDates(n,e)<=0?[n,e]:[e,n];this.rangeStart=T.toLocalISODate(l),this.rangeEnd=T.toLocalISODate(h),this.previewEnd=null;let u=this.formatSelectionLabel(l),m=this.formatSelectionLabel(h);this.announceSelect(`${this.termStartSelected()}: ${u}`,40),this.announceSelect(`${this.termEndSelected()}: ${m}`,140),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var w;let g=this.input;g&&(g.value=(w=this.inputValue)!=null?w:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let b=g.value.length;g.setSelectionRange(b,b)})}))});return}if(r&&o){if(this.isDisabled(e))return;this.rangeStart=T.toLocalISODate(e),this.rangeEnd=null,this.previewEnd=null;let n=this.formatSelectionLabel(e);this.announceSelect(`${this.termStartSelected()}: ${n}`,40),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var h;let l=this.input;l&&(l.value=(h=this.inputValue)!=null?h:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let u=l.value.length;l.setSelectionRange(u,u)})}))})}}selectDate(t){this.readonly||(this.range?this.selectRangeDate(t):this.selectSingleDate(t))}getMonthMatrix(t){var m;let e=(m=this.firstDayOfWeek)!=null?m:1,r=new Date(t.getFullYear(),t.getMonth(),1),o=new Date(r),n=(r.getDay()-e+7)%7;o.setDate(r.getDate()-n);let l=[],h=o;for(let g=0;g<6;g++){let w=[];for(let b=0;b<7;b++)w.push(new Date(h)),h.setDate(h.getDate()+1);l.push(w)}let u=g=>g.every(w=>w.getMonth()!==t.getMonth());for(;l.length>0&&u(l[l.length-1]);)l.pop();return{weeks:l}}formatMonthYear(t){try{return new Intl.DateTimeFormat(this.locale,{month:"long",year:"numeric"}).format(t)}catch(e){return`${t.toLocaleString(void 0,{month:"long"})} ${t.getFullYear()}`}}weekdayLabels(){var o;let t=(o=this.firstDayOfWeek)!=null?o:1,e=new Date(2021,7,1),r=[];for(let n=0;n<7;n++){let l=new Date(e);l.setDate(e.getDate()+(t+n)%7);try{r.push(new Intl.DateTimeFormat(this.locale,{weekday:"short"}).format(l))}catch(h){r.push(l.toLocaleDateString(void 0,{weekday:"short"}))}}return r}getTabTargetDayForCurrentView(t){let e=t.flat().find(o=>o.getMonth()===this.viewMonth.getMonth()&&T.isSameDay(o,this.today)&&!this.isDisabled(o));if(e)return T.startOfDayLocal(e);let r=t.flat().find(o=>o.getMonth()===this.viewMonth.getMonth()&&!this.isDisabled(o));return r?T.startOfDayLocal(r):null}onDayMouseEnter(t){if(!this.range||this.readonly)return;let e=this.rangeStart?T.parseLocalISO(this.rangeStart):null,r=this.rangeEnd?T.parseLocalISO(this.rangeEnd):null;if(e&&!r){let o=T.startOfDayLocal(t);this.previewEnd=this.isDisabled(o)?null:o,this.requestUpdate()}}onGridMouseLeave(){this.previewEnd!==null&&(this.previewEnd=null,this.requestUpdate())}renderCalendar(){var g;let{weeks:t}=this.getMonthMatrix(this.viewMonth),e=this.formatMonthYear(this.viewMonth),r=this.weekdayLabels(),o=this.value?this.parseISO(this.value):null,n=this.rangeStart?this.parseISO(this.rangeStart):null,l=this.rangeEnd?this.parseISO(this.rangeEnd):null,h=this.previewEnd,u=w=>!this.range||!n||l||!h?!1:T.isBetweenInclusive(w,n,h),m=this.getTabTargetDayForCurrentView(t);return p`<div part="datepicker" class="${c("w-[284px] z-50 bg-white py-3 px-4",this.open?"block":"hidden",(g=this.currentPlacement)!=null&&g.startsWith("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","border-primary")}"><div class="flex flex-row items-center w-full justify-between mb-3" part="header"><div class="flex items-center"><button type="button" tabindex="0" class="nav prev w-6 h-6 hover:cursor-pointer sd-interactive" part="prev-year-button" @click="${()=>this.setYear(-1)}" @keydown="${w=>this.handleHeaderKeyDown(w,"year",-1,!1)}" aria-label="${this.localize.term("previousYear")}"><sd-icon library="_internal" name="chevrons-sm-left" class="h-6 w-6"></sd-icon></button> <button type="button" tabindex="0" class="nav prev w-6 h-6 hover:cursor-pointer sd-interactive" part="prev-month-button" @click="${()=>this.setMonth(-1)}" @keydown="${w=>this.handleHeaderKeyDown(w,"month",-1,!1)}" aria-label="${this.localize.term("previousMonth")}"><sd-icon library="_internal" name="chevron-sm-left" class="h-6 w-6"></sd-icon></button></div><div tabindex="-1" class="month-label flex justify-center sd-headline sd-headline--size-base !text-primary" part="month-label" aria-live="polite">${e}</div><div class="flex items-center"><button type="button" tabindex="0" class="nav next w-6 h-6 hover:cursor-pointer sd-interactive" part="next-month-button" @click="${()=>this.setMonth(1)}" @keydown="${w=>this.handleHeaderKeyDown(w,"month",1,!1)}" aria-label="${this.localize.term("nextMonth")}"><sd-icon library="_internal" name="chevron-sm-right" class="h-6 w-6"></sd-icon></button> <button type="button" tabindex="0" class="nav next w-6 h-6 hover:cursor-pointer sd-interactive" part="next-year-button" @click="${()=>this.setYear(1)}" @keydown="${w=>this.handleHeaderKeyDown(w,"year",1,!0)}" aria-label="${this.localize.term("nextYear")}"><sd-icon library="_internal" name="chevrons-sm-right" class="h-6 w-6"></sd-icon></button></div></div><sd-divider></sd-divider><div class="sr-only" aria-live="polite" aria-atomic="true">${this.statusNavText}</div><div class="sr-only" aria-live="assertive" aria-atomic="true">${this.statusSelectText}</div><div class="sr-only" id="keyboard-hint">${this.localize.term("datePickerInfo")}</div><div class="grid mt-2" role="grid" aria-describedby="keyboard-hint" aria-label="${e}" part="grid" @mouseleave="${this.onGridMouseLeave}" @focusin="${()=>{this.tabbingIntoGrid=!1}}"><div class="grid-row grid-head grid grid-cols-7 gap-y-[1px]" role="row">${r.map((w,b)=>p`<div role="columnheader" aria-colindex="${b+1}" part="weekday" class="cell head flex items-center justify-center font-bold text-black text-sm leading-none h-8" aria-label="${w}" title="${w}" id="${"col-"+(b+1)}">${w}</div>`)}</div>${t.map((w,b)=>p`<div class="grid-row grid grid-cols-7 ${b===0?"mt-2":""}" role="row" aria-rowindex="${b+2}">${w.map((y,$)=>{let z=y.getMonth()===this.viewMonth.getMonth(),S=this.isDisabled(y)||!this.inMinMax(y),I=T.isSameDay(y,this.focusedDate),D=T.isSameDay(y,this.today),N=!this.range&&o?T.isSameDay(y,o):!1,_=this.range&&n?T.isSameDay(y,n):!1,F=this.range&&l?T.isSameDay(y,l):!1,W=this.range&&n&&l?T.isBetweenInclusive(y,n,l):!1,Pt=u(y)&&!S,vt=-1,ht=m&&T.isSameDay(y,m);(this.tabbingIntoGrid&&ht||!this.tabbingIntoGrid&&I)&&(vt=0);let Lt=this.isWeekend(y),tt=y.toLocaleDateString(this.locale,{weekday:"long",day:"numeric",month:"long",year:"numeric"}),ft=_?this.localize.term("startDateSelected"):F?this.localize.term("endDateSelected"):void 0;return p`<button type="button" part="day" class="${c("cell day flex items-center justify-center focus-visible:outline focus:outline-2 focus:outline-primary -outline-offset-2 rounded-md w-[36px]",this.size==="sm"?"text-sm h-6":"text-base h-8",_||F?"hover:bg-primary-500":"hover:bg-primary-100 hover:text-primary-500",z?this.isInDisabledDates(y)||!this.inMinMax(y)?"out-month text-neutral-500":this.disabledWeekends&&Lt?"weekend-day text-neutral-500":"in-month text-primary":this.disabledWeekends&&Lt?"out-month weekend-day text-neutral-500":Lt?"out-month weekend-day text-neutral-700":"out-month text-neutral-700",N?"selected border-primary bg-primary text-white hover:bg-primary-500 hover:text-white":"",_?"bg-primary text-white rounded-l-md rounded-r-none":"",F?"bg-primary text-white range-end rounded-r-md rounded-l-none":"",W&&!_&&!F?"in-range selected bg-primary-100 text-primary-500 rounded-none hover:bg-primary-500 hover:text-white":"",!W&&Pt&&!_&&!F?"in-preview-range bg-primary-100 text-primary-500 rounded-none":"",D&&!N&&!_&&!F&&I?"today border-[1px] border-primary font-bold":"",S?"disabled cursor-not-allowed hover:bg-transparent":"cursor-pointer",I&&!D?"focused outline outline-2 outline-primary":"")}" role="gridcell" aria-colindex="${$+1}" aria-labelledby="${"col-"+($+1)}" .tabIndex="${vt}" ?disabled="${S||this.disabled||this.readonly}" aria-disabled="${S||this.visuallyDisabled||this.disabled||this.readonly?"true":"false"}" aria-selected="${N||W||_||F?"true":"false"}" aria-current="${D?"date":Y}" aria-label="${tt}" aria-roledescription="${ft!=null?ft:Y}" @focus="${()=>this.focusedDate=T.startOfDayLocal(y)}" @mouseenter="${()=>this.onDayMouseEnter(y)}" @keydown="${this.onKeyDown}" @click="${()=>{this.focusedDate=T.startOfDayLocal(y),this.selectDate(y)}}">${y.getDate()}</button>`})}</div>`)}</div></div>`}render(){var y,$;let t={label:this.hasSlotController.test("label"),helpText:this.hasSlotController.test("help-text"),tooltip:this.hasSlotController.test("tooltip")},e=this.label?!0:!!t.label,r=this.helpText?!0:!!t.helpText,o=!!t.tooltip,n=this.value!==null&&String(this.value).length>0||this.range&&this.rangeStart!==null||this.rangeEnd!==null,l=this.floatingLabel&&e&&(this.hasFocus||this.open||n)&&!this.disabled&&!this.visuallyDisabled,h=this.disabled||this.visuallyDisabled?"text-neutral-500":"text-primary",u={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],m={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size],g=this.disabled?"disabled":this.visuallyDisabled&&!this.hasFocus?"visuallyDisabled":this.readonly?"readonly":this.hasFocus&&this.showInvalidStyle?"activeInvalid":this.hasFocus&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus||this.open?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",w={disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",readonly:"border-neutral-800",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"border-neutral-800"}[g],b=this.size==="sm"?"text-sm":"text-base";return p`<div part="form-control" class="${c("min-w-[284px]",this.open&&"z-50",(this.disabled||this.visuallyDisabled)&&"cursor-not-allowed")}">${e&&!this.floatingLabel||o?p`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${c(e?"inline-block form-control-color-text":"hidden",b)}" for="input" aria-hidden="${e?"false":"true"}"><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",this.disabled&&"pointer-events-none",this.visuallyDisabled&&"cursor-not-allowed")}">${e&&this.floatingLabel?p`<label id="label" part="form-control-floating-label" class="${c("absolute left-4 z-10 pointer-events-none transition-all duration-200",l?this.size==="lg"?"top-2 text-xs":"top-1 text-xs":"top-1/2 -translate-y-1/2",l&&"mt-1")}" for="input"><span class="${c("leading-none",(this.visuallyDisabled||this.disabled)&&"text-neutral-500",l&&!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",w,this.open&&this.alignment==="left"?"rounded-bl-none":"",this.open&&this.alignment==="right"?"rounded-br-none":"",this.open&&((y=this.currentPlacement)!=null&&y.startsWith("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)!=null&&$.startsWith("bottom")?"origin-top":"origin-bottom")}" placement="${this.alignment==="left"?`${this.placement}-start`:`${this.placement}-end`}" flip shift auto-size="vertical" auto-size-padding="10" exportparts="popup:popup__content,"><div part="base" class="${c("px-4 flex flex-row items-center rounded-default transition-colors ease-in-out duration-medium hover:duration-fast w-full",!this.disabled&&!this.readonly&&!this.visuallyDisabled?"hover:bg-neutral-200":"",this.readonly?"bg-neutral-100":"bg-white",g==="disabled"||g==="visuallyDisabled"?"text-neutral-500":"text-black")}" slot="anchor"><input id="input" type="text" role="combobox" aria-expanded="${this.open?"true":"false"}" aria-haspopup="dialog" aria-controls="calendar-grid" aria-describedby="${r?"help-text":void 0}" aria-invalid="${this.showInvalidStyle?"true":"false"}" aria-label="${this.range?"Select date range":"Select a date"}" class="${c("min-w-0 flex-grow focus:outline-none bg-transparent hover:cursor-pointer form-control-color-text",this.visuallyDisabled||this.disabled?"placeholder:text-neutral-500 cursor-not-allowed":"placeholder:text-neutral-700",{sm:"h-8",md:"h-10",lg:"h-12"}[this.size],b,this.floatingLabel&&"mt-4")}" autocomplete="off" spellcheck="false" placeholder="${!this.floatingLabel||l?this.placeholder||this.localize.term(this.range?"dateRangePlaceholder":"datePlaceholder"):""}" ?disabled="${this.disabled}" ?required="${this.required}" ?readonly="${this.readonly||this.visuallyDisabled}" @input="${this.handleInput}" @click="${this.handleMouseDown}" @keydown="${this.handleInputKeyDown}" @focus="${this.handleFocus}" @blur="${this.handleInputBlur}" @invalid="${this.handleInvalid}"> ${this.showInvalidStyle?p`<sd-icon part="invalid-icon" class="${c("text-error",u,m)}" library="_internal" name="risk"></sd-icon>`:""} ${this.showValidStyle&&this.styleOnValid?p`<sd-icon class="${c("text-success flex-shrink-0",u,m)}" library="_internal" name="confirm-circle" part="valid-icon"></sd-icon>`:""}<sd-icon class="${c(h,u,m,"hover:cursor-pointer")}" library="_internal" name="calendar" @click="${this.show}"></sd-icon></div>${this.renderCalendar()}</sd-popup></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${c("text-sm text-neutral-700 mt-1",r?"block":"hidden")}" aria-hidden="${!r}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage(this.size)}`}};O.styles=[...f.styles,x`/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
213
213
  :host{position:relative;display:inline-block;width:100%;--tw-outline-style:none;outline-style:none}:host([required]) #label::after{content:' *'}:host([visually-disabled]) input{caret-color:transparent}`],a([d({type:String,reflect:!0})],O.prototype,"locale",2),a([d({type:String,converter:Qi,reflect:!0})],O.prototype,"value",2),a([d({type:Boolean,reflect:!0})],O.prototype,"range",2),a([d({attribute:"range-start",converter:Qi,reflect:!0})],O.prototype,"rangeStart",2),a([d({attribute:"range-end",converter:Qi,reflect:!0})],O.prototype,"rangeEnd",2),a([d({type:Boolean})],O.prototype,"allowSameDayRange",2),a([d({type:String,converter:Qi,reflect:!0})],O.prototype,"min",2),a([d({type:String,converter:Qi,reflect:!0})],O.prototype,"max",2),a([d({type:Number})],O.prototype,"firstDayOfWeek",2),a([d({type:Boolean,reflect:!0,attribute:"disabled-weekends"})],O.prototype,"disabledWeekends",2),a([d({attribute:"disabled-dates",converter:Ad})],O.prototype,"disabledDates",2),a([d({attribute:!1})],O.prototype,"isDateDisabled",2),a([d({type:String,reflect:!0})],O.prototype,"size",2),a([d({type:String})],O.prototype,"alignment",2),a([d({type:String,reflect:!0})],O.prototype,"label",2),a([d({type:String,attribute:"help-text",reflect:!0})],O.prototype,"helpText",2),a([d({attribute:"floating-label",type:Boolean,reflect:!0})],O.prototype,"floatingLabel",2),a([d({type:Boolean,reflect:!0})],O.prototype,"disabled",2),a([d({type:Boolean,reflect:!0})],O.prototype,"required",2),a([d({type:Boolean,attribute:"visually-disabled"})],O.prototype,"visuallyDisabled",2),a([d({type:Boolean,reflect:!0,attribute:"style-on-valid"})],O.prototype,"styleOnValid",2),a([d({type:Boolean,reflect:!0})],O.prototype,"readonly",2),a([d({type:String,reflect:!0})],O.prototype,"placement",2),a([d({type:String,reflect:!0})],O.prototype,"placeholder",2),a([d({reflect:!0})],O.prototype,"name",2),a([d({type:String,reflect:!0})],O.prototype,"form",2),a([L()],O.prototype,"open",2),a([L()],O.prototype,"viewMonth",2),a([L()],O.prototype,"focusedDate",2),a([L()],O.prototype,"today",2),a([L()],O.prototype,"disabledDatesSet",2),a([L()],O.prototype,"previewEnd",2),a([L()],O.prototype,"statusNavText",2),a([L()],O.prototype,"statusSelectText",2),a([L()],O.prototype,"hasFocus",2),a([L()],O.prototype,"showValidStyle",2),a([L()],O.prototype,"showInvalidStyle",2),a([L()],O.prototype,"currentPlacement",2),a([L()],O.prototype,"inputValue",2),a([v("sd-popup")],O.prototype,"popup",2),a([v("#invalid-message")],O.prototype,"invalidMessage",2),a([v("#input")],O.prototype,"input",2),a([C("open",{waitUntilFirstUpdate:!0})],O.prototype,"handleOpenChange",1),a([C("locale")],O.prototype,"handleLocaleChange",1),a([C("disabledDates")],O.prototype,"handleDisabledDatesChange",1),a([C("value")],O.prototype,"handleValueChange",1),a([C("rangeStart"),C("rangeEnd")],O.prototype,"handleRangeChange",1),a([C(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],O.prototype,"handleDisabledChange",1),a([C(["size","floatingLabel"])],O.prototype,"handleSizeChange",1),O=a([k("sd-datepicker")],O);var Ft=class extends f{constructor(){super(...arguments);this.hasSlotController=new H(this,"footer");this.localize=new A(this);this.open=!1;this.headline="";this.noCloseButton=!1}connectedCallback(){super.connectedCallback(),this.handleDocumentKeyDown=this.handleDocumentKeyDown.bind(this),this.modal=new oi(this)}firstUpdated(){this.dialog.hidden=!this.open,this.open&&(this.addOpenListeners(),this.modal.activate(),si(this))}disconnectedCallback(){super.disconnectedCallback(),ai(this)}get prefersReducedMotion(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}requestClose(t){if(this.emit("sd-request-close",{cancelable:!0,detail:{source:t}}).defaultPrevented){let r=K(this,"dialog.denyClose",{dir:this.localize.dir()});j(this.panel,r.keyframes,r.options);return}this.hide()}addOpenListeners(){document.addEventListener("keydown",this.handleDocumentKeyDown)}removeOpenListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown)}handleDocumentKeyDown(t){this.open&&t.key==="Escape"&&(t.stopPropagation(),this.requestClose("keyboard"))}async handleOpenChange(){if(this.open){this.emit("sd-show"),this.addOpenListeners(),this.originalTrigger=ri(),this.modal.activate(),si(this);let t=this.querySelector("[autofocus]");t&&t.removeAttribute("autofocus"),await Promise.all([X(this.dialog),X(this.overlay)]),this.dialog.hidden=!1,requestAnimationFrame(()=>{this.emit("sd-initial-focus",{cancelable:!0}).defaultPrevented||(t?t.focus({preventScroll:!0}):this.panel.focus({preventScroll:!0})),t&&t.setAttribute("autofocus","")});let e=this.prefersReducedMotion?K(this,"dialog.showReducedMotion",{dir:this.localize.dir()}):K(this,"dialog.show",{dir:this.localize.dir()}),r=K(this,"dialog.overlay.show",{dir:this.localize.dir()});await Promise.all([j(this.panel,e.keyframes,e.options),j(this.overlay,r.keyframes,r.options)]),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),this.modal.deactivate(),await Promise.all([X(this.dialog),X(this.overlay)]);let t=this.prefersReducedMotion?K(this,"dialog.hideReducedMotion",{dir:this.localize.dir()}):K(this,"dialog.hide",{dir:this.localize.dir()}),e=K(this,"dialog.overlay.hide",{dir:this.localize.dir()});await Promise.all([j(this.overlay,e.keyframes,e.options).then(()=>{this.overlay.hidden=!0}),j(this.panel,t.keyframes,t.options).then(()=>{this.panel.hidden=!0})]),this.dialog.hidden=!0,this.overlay.hidden=!1,this.panel.hidden=!1,ai(this);let r=this.originalTrigger;typeof(r==null?void 0:r.focus)=="function"&&r.isConnected&&setTimeout(()=>{try{r.focus({preventScroll:!0})}catch(o){r.focus()}this.originalTrigger=null}),this.emit("sd-after-hide")}}async show(){if(!this.open)return this.open=!0,J(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,J(this,"sd-after-hide")}render(){return p`<div part="base" class="${c("flex items-center justify-center fixed inset-0 z-dialog",this.hasSlotController.test("footer")&&"dialog--has-footer")}"><div part="overlay" class="fixed inset-0 overlay-color-background opacity-90" @click="${()=>this.requestClose("overlay")}" tabindex="-1"></div><div part="panel" class="${c("panel-color-border border flex flex-col z-20 bg-white py-4 sm:py-8 relative gap-6 focus-visible:focus-outline-inverted overflow-y-auto",this.open&&"flex opacity-100")}" role="dialog" aria-modal="true" aria-hidden="${this.open?"false":"true"}" aria-label="${E(this.headline?this.headline:void 0)}" aria-labelledby="${E(this.headline?void 0:"title")}" tabindex="0"><header part="header" class="flex flex-grow-0 flex-shrink-0 basis-auto px-6 sm:px-10"><h2 part="title" class="flex-auto m-0" id="title">${this.headline.length>0?p`<span class="sd-headline sd-headline--size-3xl leading-tight">${this.headline}</span>`:p`<slot name="headline"></slot>`}</h2>${this.noCloseButton?"":p`<sd-button part="close-button" variant="tertiary" exportparts="base:close-button__base" class="${c("absolute top-2 right-2")}" name="x-lg" @click="${()=>this.requestClose("close-button")}" type="button"><sd-icon label="${this.localize.term("close")}" name="close" library="_internal" color="currentColor"></sd-icon></sd-button>`}</header><main part="body" class="flex flex-auto overflow-auto w-full px-6 sm:px-10"><slot></slot></main><footer part="footer" class="flex flex-grow-0 flex-shrink-0 basis-auto ml-auto gap-4 px-6 sm:px-10"><slot name="footer"></slot></footer></div></div>`}};Ft.styles=[...f.styles,x`/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
214
214
  :host{--width:662px}[part=panel]{width:var(--width);max-height:80vh}[part=body]{-webkit-overflow-scrolling:touch}@media (max-width:414px){:host{--width:335px}[part=body]{min-height:50px}[part=footer]{width:100%}}`],a([v('[part="base"]')],Ft.prototype,"dialog",2),a([v('[part="panel"]')],Ft.prototype,"panel",2),a([v('[part="overlay"]')],Ft.prototype,"overlay",2),a([d({type:Boolean,reflect:!0})],Ft.prototype,"open",2),a([d({type:String,reflect:!0})],Ft.prototype,"headline",2),a([d({attribute:"no-close-button",type:Boolean,reflect:!0})],Ft.prototype,"noCloseButton",2),a([C("open",{waitUntilFirstUpdate:!0})],Ft.prototype,"handleOpenChange",1),Ft=a([k("sd-dialog")],Ft);R("dialog.show",{keyframes:[{opacity:0,transform:"translate(-50%, 100%)"},{opacity:1,transform:"translate(0, 0)"}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});R("dialog.showReducedMotion",{keyframes:[{opacity:0},{opacity:1}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out",reducedMotion:"allow"}});R("dialog.hide",{keyframes:[{opacity:1,transform:"translate(0, 0)"},{opacity:0,transform:"translate(50%, -100%)"}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});R("dialog.hideReducedMotion",{keyframes:[{opacity:1},{opacity:0}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out",reducedMotion:"allow"}});R("dialog.denyClose",{keyframes:[{scale:1},{scale:1.02},{scale:1}],options:{duration:250}});R("dialog.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out",reducedMotion:"allow"}});R("dialog.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out",reducedMotion:"allow"}});var Kt=class extends f{constructor(){super(...arguments);this.open=!1;this.inverted=!1;this.localize=new A(this)}updateMaxHeight(){var e;let t=(e=this.contentPreview)==null?void 0:e.scrollHeight.toString();this.style.setProperty("--max-height-pixel",`${t}px`),this.style.setProperty("--max-height",t)}onToggleClick(){this.updateMaxHeight(),this.open=!this.open}async onOpenChange(){if(this.body.classList.add("transitioning"),this.open){this.emit("sd-show"),await X(this.body);let{keyframes:t,options:e}=K(this,"expandable.show",{dir:this.localize.dir()});await j(this.body,Ee(t,this.body.scrollHeight),e),this.body.style.height="auto",this.updateComplete.then(()=>{this.emit("sd-after-show")})}else{this.emit("sd-hide"),await X(this.body);let{keyframes:t,options:e}=K(this,"expandable.hide",{dir:this.localize.dir()});await j(this.body,Ee(t,this.body.scrollHeight),e),this.body.style.height="auto",this.updateComplete.then(()=>{this.emit("sd-after-hide")})}this.details.setAttribute("open",this.open.toString()),this.body.classList.remove("transitioning")}async show(){if(!this.open)return this.onToggleClick(),J(this,"sd-after-show")}async hide(){if(this.open)return this.onToggleClick(),J(this,"sd-after-hide")}render(){return p`<div part="base" class="flex flex-col-reverse gap-4"><button part="toggle" class="${c("sd-interactive sd-interactive--reset",this.inverted&&"sd-interactive--inverted",this.inverted?"!focus-visible:focus-outline-inverted":"!focus-visible:focus-outline")}" @click="${this.onToggleClick}" aria-expanded="${this.open}"><div class="${c("h-full justify-center w-full text-base flex items-center toggle")}"><span part="toggle-icon" class="${c("flex items-center mr-2 transition-transform duration-medium ease-in-out",this.open&&"rotate-180")}"><slot name="expand-icon" class="${c(this.open&&"hidden")}"><sd-icon library="_internal" name="chevron-down" class="text-xl"></sd-icon></slot><slot name="collapse-icon" class="${c(!this.open&&"hidden")}"><sd-icon library="_internal" name="chevron-down" class="text-xl"></sd-icon></slot></span><slot name="toggle-closed" class="${c(this.open&&"hidden")}">${this.localize.term("showMore")}</slot><slot name="toggle-open" class="${c(!this.open&&"hidden")}">${this.localize.term("showLess")}</slot></div></button><details part="details" ?inert="${E(!this.open)}"><summary part="summary" aria-hidden="true" class="cursor-pointer overflow-hidden list-none"><slot name="clone"></slot></summary><div part="content" class="content content-preview overflow-hidden relative"><slot></slot></div></details></div>`}firstUpdated(){this.cloneContentToLightDOM(),this.details.setAttribute("open",this.open.toString())}cloneContentToLightDOM(){let t=document.createElement("div");t.setAttribute("slot","clone"),Array.from(this.childNodes).forEach(r=>{let o=r.cloneNode(!0);t.appendChild(o)}),this.appendChild(t)}};Kt.styles=[...f.styles,x`/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
215
215
  :host{--component-expandable-max-block-size:90px;--gradient-height:24px;--gradient:var(
@@ -1 +1 @@
1
- import{a as pe}from"./chunks/chunk.VNKXLA5X.js";import"./chunks/chunk.HAL7R4WT.js";import{a as oe}from"./chunks/chunk.BJYMUYXU.js";import{a as re}from"./chunks/chunk.NK5ADMN2.js";import{a as ae}from"./chunks/chunk.VBVSO7CX.js";import{a as W}from"./chunks/chunk.OVMB2HQ7.js";import{a as X}from"./chunks/chunk.KU24TV3E.js";import{a as Y}from"./chunks/chunk.LJUXIWVE.js";import{a as Z}from"./chunks/chunk.2SMHQXPB.js";import{a as _}from"./chunks/chunk.PO3YG7QM.js";import{a as $}from"./chunks/chunk.YBVSFGIY.js";import{a as ee}from"./chunks/chunk.2MIX3O75.js";import{a as j}from"./chunks/chunk.M7IOABFW.js";import{a as V}from"./chunks/chunk.XQGK5AD7.js";import"./chunks/chunk.IVHEBGOY.js";import{a as q}from"./chunks/chunk.VZU6YWNK.js";import{a as y}from"./chunks/chunk.S6YZ73C6.js";import{a as z}from"./chunks/chunk.VJWJIXNG.js";import{a as J}from"./chunks/chunk.5KUK2VJM.js";import{a as K}from"./chunks/chunk.F6GLDWSF.js";import{a as U}from"./chunks/chunk.DOFLMPNA.js";import{a as N}from"./chunks/chunk.2PFSV4UH.js";import{a as O}from"./chunks/chunk.3QIJXAQA.js";import{a as P}from"./chunks/chunk.LJGKR57E.js";import{a as E}from"./chunks/chunk.3JJMR6UW.js";import{a as H}from"./chunks/chunk.23WHB4QP.js";import{a as Q}from"./chunks/chunk.PBG7SX5G.js";import{a as F}from"./chunks/chunk.AK6QMGJL.js";import{a as R}from"./chunks/chunk.MGVXL2HX.js";import{a as A}from"./chunks/chunk.CZH4RZUA.js";import{a as w}from"./chunks/chunk.LPAOJ3UT.js";import{a as L}from"./chunks/chunk.LCRJHN7X.js";import"./chunks/chunk.YPTZDABK.js";import"./chunks/chunk.RMXFJHN6.js";import{a as v}from"./chunks/chunk.MND77BIP.js";import{a as M}from"./chunks/chunk.RHXXKUAP.js";import{a as B}from"./chunks/chunk.W34AMMB5.js";import"./chunks/chunk.3MADQ6HK.js";import{a as h}from"./chunks/chunk.EE6DZSAZ.js";import{a as I}from"./chunks/chunk.MOVV5SGH.js";import{a as C}from"./chunks/chunk.MBTTKYXS.js";import{a as D}from"./chunks/chunk.FWVEGMDU.js";import{a as G}from"./chunks/chunk.6RPVUY7L.js";import{a as b}from"./chunks/chunk.LCDK6JMB.js";import"./chunks/chunk.YQH4KNT6.js";import"./chunks/chunk.GO7NGR4Q.js";import{a as T}from"./chunks/chunk.SYKS2NVL.js";import{a as g}from"./chunks/chunk.GB4BLTBN.js";import"./chunks/chunk.G2DTGYNF.js";import{a as k}from"./chunks/chunk.UH6HUCWL.js";import"./chunks/chunk.W4EADN3G.js";import"./chunks/chunk.X2GM34WQ.js";import"./chunks/chunk.W7A3TU2Z.js";import{a as u}from"./chunks/chunk.LROVOQK7.js";import{a as l}from"./chunks/chunk.TIT73LW6.js";import{a as S}from"./chunks/chunk.SN3JKNRR.js";import{a as x}from"./chunks/chunk.ABEZTKXZ.js";import{a as m}from"./chunks/chunk.CJIGOFUV.js";import{a as i}from"./chunks/chunk.GYLDD7OO.js";import{a as s}from"./chunks/chunk.X7Z2PXUI.js";import"./chunks/chunk.A6VWEUXI.js";import{a as c}from"./chunks/chunk.CSUL5FAA.js";import"./chunks/chunk.BJBQEPZV.js";import"./chunks/chunk.EOXYPQZI.js";import"./chunks/chunk.MHWW3RZB.js";import{a as n}from"./chunks/chunk.6H45UF7X.js";import"./chunks/chunk.CBQWVOOS.js";import{a}from"./chunks/chunk.6P7SZLGS.js";import{a as o}from"./chunks/chunk.JWST2JU2.js";import{a as r}from"./chunks/chunk.LZ22HXBZ.js";import"./chunks/chunk.D4E5ZIRW.js";import{a as p}from"./chunks/chunk.AZILYRH5.js";import{a as f}from"./chunks/chunk.3R2FJ7GP.js";import"./chunks/chunk.I2H6CZK5.js";import"./chunks/chunk.2AQOPKKH.js";import"./chunks/chunk.G7HKVXLR.js";import"./chunks/chunk.3L472FD4.js";import{a as d}from"./chunks/chunk.JE443GSD.js";import{a as t}from"./chunks/chunk.ETYTBHYS.js";import"./chunks/chunk.RAP66B6O.js";import"./chunks/chunk.SLXPE3UU.js";import"./chunks/chunk.CGQ2BPPZ.js";import"./chunks/chunk.B2NUKX6G.js";import"./chunks/chunk.SV6DES3E.js";import"./chunks/chunk.KLRPP4NQ.js";import{a as e}from"./chunks/chunk.RLMMTFRP.js";import"./chunks/chunk.HLDWO3HP.js";import"./chunks/chunk.BSPQBW7U.js";import{d as te,e as de}from"./chunks/chunk.54UVKIZB.js";import"./chunks/chunk.3FMN7C5N.js";import"./chunks/chunk.MB7SWCJ2.js";import"./chunks/chunk.PYHYYOBE.js";import"./chunks/chunk.TWZDCIM2.js";import"./chunks/chunk.MWDEA25W.js";import{a as fe}from"./chunks/chunk.IQPMMUES.js";import"./chunks/chunk.B3QUTUIL.js";import"./chunks/chunk.3TJM745S.js";import"./chunks/chunk.HJGLYEWV.js";import"./chunks/chunk.ERQOYXLO.js";import"./chunks/chunk.NYKJXI3Q.js";import"./chunks/chunk.IHPCVJQP.js";import"./chunks/chunk.UOAG5PNU.js";import"./chunks/chunk.W4QBFD6E.js";import"./chunks/chunk.WNP2V63C.js";import"./chunks/chunk.6EV4YU6C.js";export{fe as LocalizeController,o as SdAccordion,a as SdAccordionGroup,r as SdAnimation,p as SdAudio,u as SdBadge,l as SdBrandshape,S as SdBreadcrumb,i as SdBreadcrumbItem,d as SdButton,c as SdCarousel,n as SdCarouselItem,b as SdCheckbox,T as SdCheckboxGroup,g as SdCombobox,B as SdDatepicker,h as SdDialog,I as SdDivider,f as SdDrawer,x as SdDropdown,C as SdExpandable,D as SdFlipcard,G as SdHeader,e as SdIcon,M as SdInclude,R as SdInput,s as SdLink,t as SdLoader,A as SdMapMarker,w as SdMenu,L as SdMenuItem,v as SdNavigationItem,N as SdNotification,O as SdOptgroup,P as SdOption,m as SdPopup,E as SdQuickfact,F as SdRadio,H as SdRadioButton,Q as SdRadioGroup,j as SdRange,q as SdRangeTick,y as SdScrollable,z as SdSelect,J as SdSkeleton,K as SdSpinner,U as SdStep,W as SdStepGroup,X as SdSwitch,Y as SdTab,Z as SdTabGroup,_ as SdTabPanel,k as SdTag,$ as SdTeaser,ee as SdTeaserMedia,oe as SdTextarea,re as SdThemeListener,V as SdTooltip,ae as SdVideo,te as registerIconLibrary,pe as setupAutocomplete,de as unregisterIconLibrary};
1
+ import{a as pe}from"./chunks/chunk.VNKXLA5X.js";import"./chunks/chunk.HAL7R4WT.js";import{a as oe}from"./chunks/chunk.BJYMUYXU.js";import{a as re}from"./chunks/chunk.NK5ADMN2.js";import{a as ae}from"./chunks/chunk.VBVSO7CX.js";import{a as W}from"./chunks/chunk.OVMB2HQ7.js";import{a as X}from"./chunks/chunk.KU24TV3E.js";import{a as Y}from"./chunks/chunk.LJUXIWVE.js";import{a as Z}from"./chunks/chunk.2SMHQXPB.js";import{a as _}from"./chunks/chunk.PO3YG7QM.js";import{a as $}from"./chunks/chunk.YBVSFGIY.js";import{a as ee}from"./chunks/chunk.2MIX3O75.js";import{a as j}from"./chunks/chunk.M7IOABFW.js";import{a as V}from"./chunks/chunk.XQGK5AD7.js";import"./chunks/chunk.IVHEBGOY.js";import{a as q}from"./chunks/chunk.VZU6YWNK.js";import{a as y}from"./chunks/chunk.S6YZ73C6.js";import{a as z}from"./chunks/chunk.VJWJIXNG.js";import{a as J}from"./chunks/chunk.5KUK2VJM.js";import{a as K}from"./chunks/chunk.F6GLDWSF.js";import{a as U}from"./chunks/chunk.DOFLMPNA.js";import{a as N}from"./chunks/chunk.2PFSV4UH.js";import{a as O}from"./chunks/chunk.3QIJXAQA.js";import{a as P}from"./chunks/chunk.LJGKR57E.js";import{a as E}from"./chunks/chunk.3JJMR6UW.js";import{a as H}from"./chunks/chunk.23WHB4QP.js";import{a as Q}from"./chunks/chunk.PBG7SX5G.js";import{a as F}from"./chunks/chunk.AK6QMGJL.js";import{a as R}from"./chunks/chunk.MGVXL2HX.js";import{a as A}from"./chunks/chunk.CZH4RZUA.js";import{a as w}from"./chunks/chunk.LPAOJ3UT.js";import{a as L}from"./chunks/chunk.LCRJHN7X.js";import"./chunks/chunk.YPTZDABK.js";import"./chunks/chunk.RMXFJHN6.js";import{a as v}from"./chunks/chunk.MND77BIP.js";import{a as M}from"./chunks/chunk.RHXXKUAP.js";import{a as B}from"./chunks/chunk.62QW3E3X.js";import"./chunks/chunk.3MADQ6HK.js";import{a as h}from"./chunks/chunk.EE6DZSAZ.js";import{a as I}from"./chunks/chunk.MOVV5SGH.js";import{a as C}from"./chunks/chunk.MBTTKYXS.js";import{a as D}from"./chunks/chunk.FWVEGMDU.js";import{a as G}from"./chunks/chunk.6RPVUY7L.js";import{a as b}from"./chunks/chunk.LCDK6JMB.js";import"./chunks/chunk.YQH4KNT6.js";import"./chunks/chunk.GO7NGR4Q.js";import{a as T}from"./chunks/chunk.SYKS2NVL.js";import{a as g}from"./chunks/chunk.GB4BLTBN.js";import"./chunks/chunk.G2DTGYNF.js";import{a as k}from"./chunks/chunk.UH6HUCWL.js";import"./chunks/chunk.W4EADN3G.js";import"./chunks/chunk.X2GM34WQ.js";import"./chunks/chunk.W7A3TU2Z.js";import{a as u}from"./chunks/chunk.LROVOQK7.js";import{a as l}from"./chunks/chunk.TIT73LW6.js";import{a as S}from"./chunks/chunk.SN3JKNRR.js";import{a as x}from"./chunks/chunk.ABEZTKXZ.js";import{a as m}from"./chunks/chunk.6SXKCQA5.js";import{a as i}from"./chunks/chunk.GYLDD7OO.js";import{a as s}from"./chunks/chunk.X7Z2PXUI.js";import"./chunks/chunk.A6VWEUXI.js";import{a as c}from"./chunks/chunk.CSUL5FAA.js";import"./chunks/chunk.BJBQEPZV.js";import"./chunks/chunk.EOXYPQZI.js";import"./chunks/chunk.MHWW3RZB.js";import{a as n}from"./chunks/chunk.6H45UF7X.js";import"./chunks/chunk.CBQWVOOS.js";import{a}from"./chunks/chunk.6P7SZLGS.js";import{a as o}from"./chunks/chunk.JWST2JU2.js";import{a as r}from"./chunks/chunk.LZ22HXBZ.js";import"./chunks/chunk.D4E5ZIRW.js";import{a as p}from"./chunks/chunk.AZILYRH5.js";import{a as f}from"./chunks/chunk.3R2FJ7GP.js";import"./chunks/chunk.I2H6CZK5.js";import"./chunks/chunk.2AQOPKKH.js";import"./chunks/chunk.G7HKVXLR.js";import"./chunks/chunk.3L472FD4.js";import{a as d}from"./chunks/chunk.JE443GSD.js";import{a as t}from"./chunks/chunk.ETYTBHYS.js";import"./chunks/chunk.RAP66B6O.js";import"./chunks/chunk.SLXPE3UU.js";import"./chunks/chunk.CGQ2BPPZ.js";import"./chunks/chunk.B2NUKX6G.js";import"./chunks/chunk.SV6DES3E.js";import"./chunks/chunk.KLRPP4NQ.js";import{a as e}from"./chunks/chunk.RLMMTFRP.js";import"./chunks/chunk.HLDWO3HP.js";import"./chunks/chunk.BSPQBW7U.js";import{d as te,e as de}from"./chunks/chunk.54UVKIZB.js";import"./chunks/chunk.3FMN7C5N.js";import"./chunks/chunk.MB7SWCJ2.js";import"./chunks/chunk.PYHYYOBE.js";import"./chunks/chunk.TWZDCIM2.js";import"./chunks/chunk.MWDEA25W.js";import{a as fe}from"./chunks/chunk.IQPMMUES.js";import"./chunks/chunk.B3QUTUIL.js";import"./chunks/chunk.3TJM745S.js";import"./chunks/chunk.HJGLYEWV.js";import"./chunks/chunk.ERQOYXLO.js";import"./chunks/chunk.NYKJXI3Q.js";import"./chunks/chunk.IHPCVJQP.js";import"./chunks/chunk.UOAG5PNU.js";import"./chunks/chunk.W4QBFD6E.js";import"./chunks/chunk.WNP2V63C.js";import"./chunks/chunk.6EV4YU6C.js";export{fe as LocalizeController,o as SdAccordion,a as SdAccordionGroup,r as SdAnimation,p as SdAudio,u as SdBadge,l as SdBrandshape,S as SdBreadcrumb,i as SdBreadcrumbItem,d as SdButton,c as SdCarousel,n as SdCarouselItem,b as SdCheckbox,T as SdCheckboxGroup,g as SdCombobox,B as SdDatepicker,h as SdDialog,I as SdDivider,f as SdDrawer,x as SdDropdown,C as SdExpandable,D as SdFlipcard,G as SdHeader,e as SdIcon,M as SdInclude,R as SdInput,s as SdLink,t as SdLoader,A as SdMapMarker,w as SdMenu,L as SdMenuItem,v as SdNavigationItem,N as SdNotification,O as SdOptgroup,P as SdOption,m as SdPopup,E as SdQuickfact,F as SdRadio,H as SdRadioButton,Q as SdRadioGroup,j as SdRange,q as SdRangeTick,y as SdScrollable,z as SdSelect,J as SdSkeleton,K as SdSpinner,U as SdStep,W as SdStepGroup,X as SdSwitch,Y as SdTab,Z as SdTabGroup,_ as SdTabPanel,k as SdTag,$ as SdTeaser,ee as SdTeaserMedia,oe as SdTextarea,re as SdThemeListener,V as SdTooltip,ae as SdVideo,te as registerIconLibrary,pe as setupAutocomplete,de as unregisterIconLibrary};
@@ -1 +1 @@
1
- import{a}from"../chunks/chunk.VNKXLA5X.js";import"../chunks/chunk.CJIGOFUV.js";import"../chunks/chunk.ERQOYXLO.js";import"../chunks/chunk.IHPCVJQP.js";import"../chunks/chunk.UOAG5PNU.js";import"../chunks/chunk.W4QBFD6E.js";import"../chunks/chunk.6EV4YU6C.js";export{a as setupAutocomplete};
1
+ import{a}from"../chunks/chunk.VNKXLA5X.js";import"../chunks/chunk.6SXKCQA5.js";import"../chunks/chunk.ERQOYXLO.js";import"../chunks/chunk.IHPCVJQP.js";import"../chunks/chunk.UOAG5PNU.js";import"../chunks/chunk.W4QBFD6E.js";import"../chunks/chunk.6EV4YU6C.js";export{a as setupAutocomplete};
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@solid-design-system/components",
4
- "version": "6.9.2",
4
+ "version": "6.10.0",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -1,2 +1,2 @@
1
- import{a as p}from"./chunk.SLXPE3UU.js";import{a as b}from"./chunk.CGQ2BPPZ.js";import{a as n}from"./chunk.ERQOYXLO.js";import{a as h}from"./chunk.NYKJXI3Q.js";import{a as d,b as i,c as u,d as r,h as o}from"./chunk.IHPCVJQP.js";import{b as c,e as a}from"./chunk.UOAG5PNU.js";import{e as s}from"./chunk.6EV4YU6C.js";var t=class extends o{constructor(){super(...arguments);this.hasSlotController=new b(this,"[default]","icon");this.hasFocus=!1;this.size="lg";this.disabled=!1;this.visuallyDisabled=!1;this.checked=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","presentation")}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleClick(e){if(this.disabled||this.visuallyDisabled){e.preventDefault(),e.stopPropagation();return}this.checked=!0}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleDisabledChange(){let e=this.disabled||this.visuallyDisabled;this.setAttribute("aria-disabled",e?"true":"false")}focus(e){this.input.focus(e)}blur(){this.input.blur()}render(){let e=this.hasSlotController.test("[default]"),l=this.hasSlotController.test("icon"),m=`${this.size}-${e?"label":"no-label"}`;return a`<div part="base" role="presentation" class="relative"><button part="${`button${this.checked?" button--checked":""}`}" role="radio" aria-checked="${this.checked}" class="${n("relative text-center sd-6-9-2-radio-button-border-radius transition-all ease-in-out duration-100 items-center justify-center focus-visible:focus-outline",this.size==="sm"?"text-sm":"text-base",this.checked&&!this.disabled&&!this.visuallyDisabled?"sd-6-9-2-button--primary--default-color-background sd-6-9-2-button--primary--default-color-text hover:sd-6-9-2-button--primary--hover-color-background":!this.checked&&(this.disabled||this.visuallyDisabled)?"text-neutral-500 hover:cursor-not-allowed":this.checked&&(this.disabled||this.visuallyDisabled)?"bg-neutral-400 text-white hover:cursor-not-allowed ":"bg-transparent sd-6-9-2-radio-button-color-text border-primary hover:text-primary-500 cursor-pointer",e&&{sm:"px-3",md:"px-4",lg:"px-5"}[this.size],this.hasFocus&&"focused-class",e&&"button--has-label",l&&"button--has-icon flex gap-2",m)}" aria-disabled="${this.disabled||this.visuallyDisabled}" type="button" value="${p(this.value)}" tabindex="${this.checked?"0":"-1"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" @click="${this.handleClick}"><slot name="icon" part="icon" class="${n(l&&"inline-flex relative items-center",{sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size])}" ?hidden="${!l}"></slot>${e?a`<slot part="label" class="button__label inline-flex relative items-center whitespace-nowrap"></slot>`:null}</button></div>`}};t.styles=[...o.styles,c`/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
2
- :host{display:block;width:-moz-min-content;width:min-content}.hidden-input{all:unset;position:absolute;inset:calc(var(--sd-spacing-1) * 0);z-index:calc(10 * -1);opacity:var(--sd-opacity-0);outline-style:var(--tw-outline-style);outline-width:1px;outline-color:var(--sd-color-border-error,var(--sd-color-error));--tw-outline-style:dotted;outline-style:dotted}.lg-label{height:var(--sd-spacing-12)}.lg-no-label{height:var(--sd-spacing-12);padding-inline:calc(var(--sd-spacing-1) * 5)}.md-label{height:var(--sd-spacing-10)}.md-no-label{height:var(--sd-spacing-10);padding-inline:var(--sd-spacing-4)}.sm-label{height:var(--sd-spacing-8)}.sm-no-label{height:var(--sd-spacing-8);padding-inline:var(--sd-spacing-3)}:host([size=lg].sd-6-9-2-button-group__button:not(.sd-6-9-2-button-group__button--first)){margin-inline-start:calc(var(--sd-spacing-3) * -1)}:host([size=md].sd-6-9-2-button-group__button:not(.sd-6-9-2-button-group__button--first)){margin-inline-start:calc(var(--sd-spacing-2) * -1)}:host([size=sm].sd-6-9-2-button-group__button:not(.sd-6-9-2-button-group__button--first)){margin-inline-start:calc(var(--sd-spacing-1) * -1)}:host(.sd-6-9-2-button-group__button--hover){z-index:20}:host(.sd-6-9-2-button-group__button--focus),:host(.sd-6-9-2-button-group__button[checked]){z-index:10}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}`],s([r(".button")],t.prototype,"input",2),s([r(".hidden-input")],t.prototype,"hiddenInput",2),s([u()],t.prototype,"hasFocus",2),s([i({type:String,reflect:!0})],t.prototype,"size",2),s([i({type:Boolean,reflect:!0})],t.prototype,"disabled",2),s([i({type:Boolean,reflect:!0,attribute:"visually-disabled"})],t.prototype,"visuallyDisabled",2),s([i({type:Boolean,reflect:!0})],t.prototype,"checked",2),s([i()],t.prototype,"value",2),s([h(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],t.prototype,"handleDisabledChange",1),t=s([d("sd-6-9-2-radio-button")],t);export{t as a};
1
+ import{a as p}from"./chunk.SLXPE3UU.js";import{a as b}from"./chunk.CGQ2BPPZ.js";import{a as n}from"./chunk.ERQOYXLO.js";import{a as h}from"./chunk.NYKJXI3Q.js";import{a as d,b as i,c as u,d as r,h as o}from"./chunk.IHPCVJQP.js";import{b as c,e as a}from"./chunk.UOAG5PNU.js";import{e as s}from"./chunk.6EV4YU6C.js";var t=class extends o{constructor(){super(...arguments);this.hasSlotController=new b(this,"[default]","icon");this.hasFocus=!1;this.size="lg";this.disabled=!1;this.visuallyDisabled=!1;this.checked=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","presentation")}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleClick(e){if(this.disabled||this.visuallyDisabled){e.preventDefault(),e.stopPropagation();return}this.checked=!0}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleDisabledChange(){let e=this.disabled||this.visuallyDisabled;this.setAttribute("aria-disabled",e?"true":"false")}focus(e){this.input.focus(e)}blur(){this.input.blur()}render(){let e=this.hasSlotController.test("[default]"),l=this.hasSlotController.test("icon"),m=`${this.size}-${e?"label":"no-label"}`;return a`<div part="base" role="presentation" class="relative"><button part="${`button${this.checked?" button--checked":""}`}" role="radio" aria-checked="${this.checked}" class="${n("relative text-center sd-6-10-0-radio-button-border-radius transition-all ease-in-out duration-100 items-center justify-center focus-visible:focus-outline",this.size==="sm"?"text-sm":"text-base",this.checked&&!this.disabled&&!this.visuallyDisabled?"sd-6-10-0-button--primary--default-color-background sd-6-10-0-button--primary--default-color-text hover:sd-6-10-0-button--primary--hover-color-background":!this.checked&&(this.disabled||this.visuallyDisabled)?"text-neutral-500 hover:cursor-not-allowed":this.checked&&(this.disabled||this.visuallyDisabled)?"bg-neutral-400 text-white hover:cursor-not-allowed ":"bg-transparent sd-6-10-0-radio-button-color-text border-primary hover:text-primary-500 cursor-pointer",e&&{sm:"px-3",md:"px-4",lg:"px-5"}[this.size],this.hasFocus&&"focused-class",e&&"button--has-label",l&&"button--has-icon flex gap-2",m)}" aria-disabled="${this.disabled||this.visuallyDisabled}" type="button" value="${p(this.value)}" tabindex="${this.checked?"0":"-1"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" @click="${this.handleClick}"><slot name="icon" part="icon" class="${n(l&&"inline-flex relative items-center",{sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size])}" ?hidden="${!l}"></slot>${e?a`<slot part="label" class="button__label inline-flex relative items-center whitespace-nowrap"></slot>`:null}</button></div>`}};t.styles=[...o.styles,c`/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
2
+ :host{display:block;width:-moz-min-content;width:min-content}.hidden-input{all:unset;position:absolute;inset:calc(var(--sd-spacing-1) * 0);z-index:calc(10 * -1);opacity:var(--sd-opacity-0);outline-style:var(--tw-outline-style);outline-width:1px;outline-color:var(--sd-color-border-error,var(--sd-color-error));--tw-outline-style:dotted;outline-style:dotted}.lg-label{height:var(--sd-spacing-12)}.lg-no-label{height:var(--sd-spacing-12);padding-inline:calc(var(--sd-spacing-1) * 5)}.md-label{height:var(--sd-spacing-10)}.md-no-label{height:var(--sd-spacing-10);padding-inline:var(--sd-spacing-4)}.sm-label{height:var(--sd-spacing-8)}.sm-no-label{height:var(--sd-spacing-8);padding-inline:var(--sd-spacing-3)}:host([size=lg].sd-6-10-0-button-group__button:not(.sd-6-10-0-button-group__button--first)){margin-inline-start:calc(var(--sd-spacing-3) * -1)}:host([size=md].sd-6-10-0-button-group__button:not(.sd-6-10-0-button-group__button--first)){margin-inline-start:calc(var(--sd-spacing-2) * -1)}:host([size=sm].sd-6-10-0-button-group__button:not(.sd-6-10-0-button-group__button--first)){margin-inline-start:calc(var(--sd-spacing-1) * -1)}:host(.sd-6-10-0-button-group__button--hover){z-index:20}:host(.sd-6-10-0-button-group__button--focus),:host(.sd-6-10-0-button-group__button[checked]){z-index:10}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}`],s([r(".button")],t.prototype,"input",2),s([r(".hidden-input")],t.prototype,"hiddenInput",2),s([u()],t.prototype,"hasFocus",2),s([i({type:String,reflect:!0})],t.prototype,"size",2),s([i({type:Boolean,reflect:!0})],t.prototype,"disabled",2),s([i({type:Boolean,reflect:!0,attribute:"visually-disabled"})],t.prototype,"visuallyDisabled",2),s([i({type:Boolean,reflect:!0})],t.prototype,"checked",2),s([i()],t.prototype,"value",2),s([h(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],t.prototype,"handleDisabledChange",1),t=s([d("sd-6-10-0-radio-button")],t);export{t as a};
@@ -1,5 +1,5 @@
1
- import{a as c}from"./chunk.CGQ2BPPZ.js";import{a as r}from"./chunk.ERQOYXLO.js";import{a as l,b as i,d,h as n}from"./chunk.IHPCVJQP.js";import{b as s,e}from"./chunk.UOAG5PNU.js";import{e as a}from"./chunk.6EV4YU6C.js";var t=class extends n{constructor(){super(...arguments);this.variant="white";this.open=!1;this.hasSlotController=new c(this,"[default]","media","meta","headline","expandable")}onToggleClick(){this.open=!this.open}render(){let o={"teaser-has-default":this.hasSlotController.test("[default]"),"teaser-has-media":this.hasSlotController.test("media"),"teaser-has-meta":this.hasSlotController.test("meta"),"teaser-has-headline":this.hasSlotController.test("headline"),"teaser-has-expandable":this.hasSlotController.test("expandable")};return e`<div class="relative flex flex-col group" part="base"><div class="absolute flex flex-col justify-end h-full w-full pb-4"><div class="${r("flex-1",this.variant==="gradient-light"&&"bg-gradient-to-t from-white/[.8] to-60%",this.variant==="gradient-dark"&&"bg-gradient-to-t from-primary-800/[.8] to-60%")}"></div><div class="${r("relative",["primary","gradient-dark"].includes(this.variant)&&"text-white")}"><div class="${r("absolute inset-0 pointer-events-none",{white:"bg-white/[.8] group-hover:bg-white/90","neutral-100":"sd-6-9-2-teaser-media--neutral-100-color-background group-hover:sd-6-9-2-teaser-media--neutral-100--hover-color-background",primary:"bg-primary/[.8] text-white group-hover:bg-primary/90","primary-100":"sd-6-9-2-teaser-media--primary-100-color-background group-hover:sd-6-9-2-teaser-media--primary-100--hover-color-background","gradient-light":"bg-gradient-to-t from-white/90 to-white/[.8]","gradient-dark":"bg-gradient-to-t from-primary-800/90 to-primary-800/[.8]"}[this.variant])}"></div><div class="relative flex flex-col text-left p-4" part="content"><div class="flex flex-col"><div part="headline" class="text-lg font-bold m-0 order-2"><slot name="headline">Always insert one semantically correct heading element here</slot></div><div part="meta" class="${r("gap-2 mb-2 order-1",!o["teaser-has-meta"]&&"hidden")}"><slot name="meta"></slot></div></div><div part="main" class="${r(!o["teaser-has-default"]&&"hidden")}"><slot></slot></div><div class="${r("mt-3 transition-opacity duration-300",!this.open&&"hidden",this.open?"opacity-100":"opacity-0")}" part="expandable" aria-hidden="true"><slot name="expandable"></slot></div>${o["teaser-has-expandable"]?e`<button part="toggle" class="sd-interactive sd-interactive--reset mt-2" @click="${this.onToggleClick}" aria-expanded="${this.open}" aria-label="${this.open?"Collapse content":"Expand content"}"><div class="h-full justify-start flex items-start"><sd-6-9-2-icon class="${r("w-6 h-6 transition-transform",this.open&&"rotate-180",["primary","gradient-dark"].includes(this.variant)?"text-white":"text-primary")}" library="_internal" name="chevron-down"></sd-6-9-2-icon></div></button>`:null}</div></div></div><div class="${r("mb-4 -z-10",!o["teaser-has-media"]&&"hidden")}" part="media"><slot name="media"></slot></div></div>`}};t.styles=[...n.styles,s`/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
1
+ import{a as c}from"./chunk.CGQ2BPPZ.js";import{a as r}from"./chunk.ERQOYXLO.js";import{a as l,b as i,d,h as n}from"./chunk.IHPCVJQP.js";import{b as s,e}from"./chunk.UOAG5PNU.js";import{e as a}from"./chunk.6EV4YU6C.js";var t=class extends n{constructor(){super(...arguments);this.variant="white";this.open=!1;this.hasSlotController=new c(this,"[default]","media","meta","headline","expandable")}onToggleClick(){this.open=!this.open}render(){let o={"teaser-has-default":this.hasSlotController.test("[default]"),"teaser-has-media":this.hasSlotController.test("media"),"teaser-has-meta":this.hasSlotController.test("meta"),"teaser-has-headline":this.hasSlotController.test("headline"),"teaser-has-expandable":this.hasSlotController.test("expandable")};return e`<div class="relative flex flex-col group" part="base"><div class="absolute flex flex-col justify-end h-full w-full pb-4"><div class="${r("flex-1",this.variant==="gradient-light"&&"bg-gradient-to-t from-white/[.8] to-60%",this.variant==="gradient-dark"&&"bg-gradient-to-t from-primary-800/[.8] to-60%")}"></div><div class="${r("relative",["primary","gradient-dark"].includes(this.variant)&&"text-white")}"><div class="${r("absolute inset-0 pointer-events-none",{white:"bg-white/[.8] group-hover:bg-white/90","neutral-100":"sd-6-10-0-teaser-media--neutral-100-color-background group-hover:sd-6-10-0-teaser-media--neutral-100--hover-color-background",primary:"bg-primary/[.8] text-white group-hover:bg-primary/90","primary-100":"sd-6-10-0-teaser-media--primary-100-color-background group-hover:sd-6-10-0-teaser-media--primary-100--hover-color-background","gradient-light":"bg-gradient-to-t from-white/90 to-white/[.8]","gradient-dark":"bg-gradient-to-t from-primary-800/90 to-primary-800/[.8]"}[this.variant])}"></div><div class="relative flex flex-col text-left p-4" part="content"><div class="flex flex-col"><div part="headline" class="text-lg font-bold m-0 order-2"><slot name="headline">Always insert one semantically correct heading element here</slot></div><div part="meta" class="${r("gap-2 mb-2 order-1",!o["teaser-has-meta"]&&"hidden")}"><slot name="meta"></slot></div></div><div part="main" class="${r(!o["teaser-has-default"]&&"hidden")}"><slot></slot></div><div class="${r("mt-3 transition-opacity duration-300",!this.open&&"hidden",this.open?"opacity-100":"opacity-0")}" part="expandable" aria-hidden="true"><slot name="expandable"></slot></div>${o["teaser-has-expandable"]?e`<button part="toggle" class="sd-interactive sd-interactive--reset mt-2" @click="${this.onToggleClick}" aria-expanded="${this.open}" aria-label="${this.open?"Collapse content":"Expand content"}"><div class="h-full justify-start flex items-start"><sd-6-10-0-icon class="${r("w-6 h-6 transition-transform",this.open&&"rotate-180",["primary","gradient-dark"].includes(this.variant)?"text-white":"text-primary")}" library="_internal" name="chevron-down"></sd-6-10-0-icon></div></button>`:null}</div></div></div><div class="${r("mb-4 -z-10",!o["teaser-has-media"]&&"hidden")}" part="media"><slot name="media"></slot></div></div>`}};t.styles=[...n.styles,s`/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
2
  :host{display:block}::slotted(*){margin:calc(var(--sd-spacing-1) * 0)}:host([variant=white]) .background:focus-within{background-color:rgba(var(--sd-color-background-white))}@supports (color:color-mix(in lab,red,red)){:host([variant=white]) .background:focus-within{background-color:color-mix(in oklab,rgba(var(--sd-color-background-white)) var(--sd-opacity-90),transparent)}}:host([variant=neutral-100]) .background:focus-within{background-color:rgba(var(--sd-color-background-neutral-100))}@supports (color:color-mix(in lab,red,red)){:host([variant=neutral-100]) .background:focus-within{background-color:color-mix(in oklab,rgba(var(--sd-color-background-neutral-100)) var(--sd-opacity-90),transparent)}}:host([variant=primary]) .background:focus-within{background-color:rgba(var(--sd-color-background-primary))}@supports (color:color-mix(in lab,red,red)){:host([variant=primary]) .background:focus-within{background-color:color-mix(in oklab,rgba(var(--sd-color-background-primary)) var(--sd-opacity-90),transparent)}}:host([variant=primary-100]) .background:focus-within{background-color:rgba(var(--sd-color-background-primary-100))}@supports (color:color-mix(in lab,red,red)){:host([variant=primary-100]) .background:focus-within{background-color:color-mix(in oklab,rgba(var(--sd-color-background-primary-100)) var(--sd-opacity-90),transparent)}}:host([variant=gradient-light]) .bg-gradient-to-t{--sd-color-background-white:var(--sd-informational-gradient--white-color-background, var(--sd-color-white))}:host([variant=gradient-dark]) .bg-gradient-to-t{--sd-color-background-primary-800:var(
3
3
  --sd-informational-gradient--primary-800-color-background,
4
4
  var(--sd-color-primary-800)
5
- )}[part=toggle]{width:-moz-fit-content;width:fit-content}`],a([i({type:String,reflect:!0})],t.prototype,"variant",2),a([i({type:Boolean,reflect:!0})],t.prototype,"open",2),a([d('[part="base"]')],t.prototype,"teaserMedia",2),t=a([l("sd-6-9-2-teaser-media")],t);export{t as a};
5
+ )}[part=toggle]{width:-moz-fit-content;width:fit-content}`],a([i({type:String,reflect:!0})],t.prototype,"variant",2),a([i({type:Boolean,reflect:!0})],t.prototype,"open",2),a([d('[part="base"]')],t.prototype,"teaserMedia",2),t=a([l("sd-6-10-0-teaser-media")],t);export{t as a};