@solid-design-system/components 6.22.1 → 6.22.2

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 (625) hide show
  1. package/cdn/chunks/{chunk.JFN54TP3.js → chunk.2BZIVV5K.js} +1 -1
  2. package/cdn/chunks/{chunk.S6JJWCTI.js → chunk.2C6WSOSU.js} +1 -1
  3. package/cdn/chunks/{chunk.2IFJTWWI.js → chunk.2OOFFN2M.js} +1 -1
  4. package/cdn/chunks/{chunk.AGTHQN5U.js → chunk.2RNIZ5ES.js} +1 -1
  5. package/cdn/chunks/{chunk.UTXIVBR2.js → chunk.2U2NO4J2.js} +1 -1
  6. package/cdn/chunks/{chunk.RKMV24FY.js → chunk.37VRPNTF.js} +1 -1
  7. package/cdn/chunks/{chunk.OMRKG6ND.js → chunk.3IP2NPXJ.js} +1 -1
  8. package/cdn/chunks/{chunk.LH5RKLIB.js → chunk.4FOYP5RB.js} +1 -1
  9. package/cdn/chunks/{chunk.BOWHXMXY.js → chunk.4ZJ3MXQP.js} +1 -1
  10. package/cdn/chunks/{chunk.7LZHW3Q5.js → chunk.5N2XL4PO.js} +1 -1
  11. package/cdn/chunks/{chunk.WIHSK6PN.js → chunk.5N3PHCUL.js} +1 -1
  12. package/cdn/chunks/{chunk.4OE2TU3Y.js → chunk.5WVT5PBZ.js} +1 -1
  13. package/cdn/chunks/{chunk.APOMDHNP.js → chunk.6BPMFU3D.js} +1 -1
  14. package/cdn/chunks/{chunk.DDU5T7TW.js → chunk.6ETYTZUH.js} +1 -1
  15. package/cdn/chunks/{chunk.SCHC5WSJ.js → chunk.6TKTHSCR.js} +1 -1
  16. package/cdn/chunks/{chunk.RRIIBUZG.js → chunk.7FVXXCOD.js} +1 -1
  17. package/cdn/chunks/{chunk.6HSHV3NX.js → chunk.ADOC55AB.js} +1 -1
  18. package/cdn/chunks/{chunk.J6KIY4UA.js → chunk.AKV76X4Q.js} +1 -1
  19. package/cdn/chunks/{chunk.ZIC3N6YJ.js → chunk.ALDQAJDW.js} +1 -1
  20. package/cdn/chunks/{chunk.AHMUV4CN.js → chunk.AYKTQHGY.js} +1 -1
  21. package/cdn/chunks/{chunk.4LLZ2ILW.js → chunk.BDLRDS6L.js} +1 -1
  22. package/cdn/chunks/{chunk.2SEVUMWS.js → chunk.BG4E5EW4.js} +1 -1
  23. package/cdn/chunks/{chunk.OJGPDUWV.js → chunk.CA3ZPQGP.js} +1 -1
  24. package/cdn/chunks/{chunk.7DKBOZJU.js → chunk.CAHD2LJ3.js} +1 -1
  25. package/cdn/chunks/{chunk.2UC7ID2H.js → chunk.CMEG4R7E.js} +1 -1
  26. package/cdn/chunks/{chunk.VFMCDN7W.js → chunk.DETMVE4V.js} +1 -1
  27. package/cdn/chunks/{chunk.JHDF277H.js → chunk.DSPHE3TH.js} +1 -1
  28. package/cdn/chunks/{chunk.UTS7NBOJ.js → chunk.DTEL5K6Z.js} +1 -1
  29. package/cdn/chunks/{chunk.BS3GY6J5.js → chunk.FHTDIHGC.js} +1 -1
  30. package/cdn/chunks/{chunk.2Q64C7PW.js → chunk.FHXS4WLL.js} +1 -1
  31. package/cdn/chunks/{chunk.EDP2BY4Q.js → chunk.FRWRMA7J.js} +1 -1
  32. package/cdn/chunks/{chunk.MLNVOR7M.js → chunk.G5U3QXVE.js} +1 -1
  33. package/cdn/chunks/{chunk.6PB7EWTQ.js → chunk.GBVC6QMP.js} +1 -1
  34. package/cdn/chunks/{chunk.YAANK3U6.js → chunk.GWLO3ODI.js} +1 -1
  35. package/cdn/chunks/{chunk.EBMYXBFR.js → chunk.HUSYEMEE.js} +1 -1
  36. package/cdn/chunks/{chunk.Q7E6F2HW.js → chunk.JVZUIG4Z.js} +1 -1
  37. package/cdn/chunks/{chunk.PXFYL6KY.js → chunk.KKXG4ZQQ.js} +1 -1
  38. package/cdn/chunks/{chunk.SOQN353H.js → chunk.LBZYRAB2.js} +1 -1
  39. package/cdn/chunks/{chunk.CXFLSM56.js → chunk.LECQW2YR.js} +1 -1
  40. package/cdn/chunks/{chunk.FEXFNF27.js → chunk.M45PIU7T.js} +1 -1
  41. package/cdn/chunks/{chunk.XJAJO727.js → chunk.MJMWCFYX.js} +1 -1
  42. package/cdn/chunks/{chunk.3UAQXMAF.js → chunk.MWVSSKTZ.js} +1 -1
  43. package/cdn/chunks/{chunk.L7BTB6LI.js → chunk.OLSOHNP7.js} +1 -1
  44. package/cdn/chunks/{chunk.WHOK4XT7.js → chunk.OWCWWGXI.js} +1 -1
  45. package/cdn/chunks/{chunk.JQW6SYSE.js → chunk.PTB4GO5U.js} +1 -1
  46. package/cdn/chunks/{chunk.CW7N5I3S.js → chunk.Q337W2UO.js} +1 -1
  47. package/cdn/chunks/{chunk.XICZDG3E.js → chunk.Q4FDLMDW.js} +1 -1
  48. package/cdn/chunks/{chunk.ZSCCD7CU.js → chunk.Q6IB3SDR.js} +1 -1
  49. package/cdn/chunks/{chunk.POBQCTPL.js → chunk.Q7O53AIP.js} +1 -1
  50. package/cdn/chunks/{chunk.R6ZEBMRH.js → chunk.QUNMRYGU.js} +1 -1
  51. package/cdn/chunks/{chunk.ENE5YY4Y.js → chunk.R2OOOZTC.js} +1 -1
  52. package/cdn/chunks/{chunk.EPVQ4QAS.js → chunk.R2PYTI7W.js} +1 -1
  53. package/cdn/chunks/{chunk.MC7A5NMS.js → chunk.TRLT5GBO.js} +1 -1
  54. package/cdn/chunks/{chunk.D4SBGWDF.js → chunk.UKZ2PZBT.js} +1 -1
  55. package/cdn/chunks/{chunk.AO2OON4N.js → chunk.VLKRVPQH.js} +1 -1
  56. package/cdn/chunks/{chunk.GXY2VZH2.js → chunk.VQ6ETYCB.js} +1 -1
  57. package/cdn/chunks/{chunk.ICWUJ66F.js → chunk.W3PA36P5.js} +1 -1
  58. package/cdn/chunks/{chunk.WYUWPKVY.js → chunk.WRZERWXG.js} +1 -1
  59. package/cdn/chunks/{chunk.ES62UWOT.js → chunk.XAQFVG3G.js} +1 -1
  60. package/cdn/chunks/{chunk.5CJ4UEYT.js → chunk.YXXS6VLA.js} +1 -1
  61. package/cdn/components/accordion/accordion.js +1 -1
  62. package/cdn/components/accordion-group/accordion-group.js +1 -1
  63. package/cdn/components/animation/animation.js +1 -1
  64. package/cdn/components/audio/audio.js +1 -1
  65. package/cdn/components/badge/badge.js +1 -1
  66. package/cdn/components/brandshape/brandshape.js +1 -1
  67. package/cdn/components/breadcrumb/breadcrumb.js +1 -1
  68. package/cdn/components/breadcrumb-item/breadcrumb-item.js +1 -1
  69. package/cdn/components/button/button.js +1 -1
  70. package/cdn/components/button-group/button-group.js +1 -1
  71. package/cdn/components/carousel/carousel.js +1 -1
  72. package/cdn/components/carousel-item/carousel-item.js +1 -1
  73. package/cdn/components/checkbox/checkbox.js +1 -1
  74. package/cdn/components/checkbox-group/checkbox-group.js +1 -1
  75. package/cdn/components/combobox/combobox.js +1 -1
  76. package/cdn/components/datepicker/datepicker.js +1 -1
  77. package/cdn/components/dialog/dialog.js +1 -1
  78. package/cdn/components/divider/divider.js +1 -1
  79. package/cdn/components/drawer/drawer.js +1 -1
  80. package/cdn/components/dropdown/dropdown.js +1 -1
  81. package/cdn/components/expandable/expandable.js +1 -1
  82. package/cdn/components/flipcard/flipcard.js +1 -1
  83. package/cdn/components/header/header.js +1 -1
  84. package/cdn/components/icon/icon.js +1 -1
  85. package/cdn/components/include/include.js +1 -1
  86. package/cdn/components/input/input.js +1 -1
  87. package/cdn/components/link/link.js +1 -1
  88. package/cdn/components/loader/loader.js +1 -1
  89. package/cdn/components/map-marker/map-marker.js +1 -1
  90. package/cdn/components/menu/menu.js +1 -1
  91. package/cdn/components/menu-item/menu-item.js +1 -1
  92. package/cdn/components/navigation-item/navigation-item.js +1 -1
  93. package/cdn/components/notification/notification.js +1 -1
  94. package/cdn/components/optgroup/optgroup.js +1 -1
  95. package/cdn/components/option/option.js +1 -1
  96. package/cdn/components/popup/popup.js +1 -1
  97. package/cdn/components/quickfact/quickfact.js +1 -1
  98. package/cdn/components/radio/radio.js +1 -1
  99. package/cdn/components/radio-button/radio-button.js +1 -1
  100. package/cdn/components/radio-group/radio-group.js +1 -1
  101. package/cdn/components/range/range.js +1 -1
  102. package/cdn/components/range-tick/range-tick.js +1 -1
  103. package/cdn/components/scrollable/scrollable.js +1 -1
  104. package/cdn/components/select/select.js +1 -1
  105. package/cdn/components/skeleton/skeleton.js +1 -1
  106. package/cdn/components/spinner/spinner.js +1 -1
  107. package/cdn/components/step/step.js +1 -1
  108. package/cdn/components/step-group/step-group.js +1 -1
  109. package/cdn/components/switch/switch.js +1 -1
  110. package/cdn/components/tab/tab.js +1 -1
  111. package/cdn/components/tab-group/tab-group.js +1 -1
  112. package/cdn/components/tab-panel/tab-panel.js +1 -1
  113. package/cdn/components/tag/tag.js +1 -1
  114. package/cdn/components/teaser/teaser.js +1 -1
  115. package/cdn/components/teaser-media/teaser-media.js +1 -1
  116. package/cdn/components/textarea/textarea.js +1 -1
  117. package/cdn/components/theme-listener/theme-listener.js +1 -1
  118. package/cdn/components/tooltip/tooltip.js +1 -1
  119. package/cdn/components/video/video.js +1 -1
  120. package/cdn/custom-elements.json +1 -1
  121. package/cdn/solid-components.bundle.js +1 -1
  122. package/cdn/solid-components.iife.js +1 -1
  123. package/cdn/solid-components.js +1 -1
  124. package/cdn/utilities/autocomplete-config.js +1 -1
  125. package/cdn/web-types.json +1 -1
  126. package/cdn-versioned/chunks/{chunk.JFN54TP3.js → chunk.2BZIVV5K.js} +3 -3
  127. package/cdn-versioned/chunks/{chunk.S6JJWCTI.js → chunk.2C6WSOSU.js} +2 -2
  128. package/cdn-versioned/chunks/{chunk.2IFJTWWI.js → chunk.2OOFFN2M.js} +2 -2
  129. package/cdn-versioned/chunks/{chunk.AGTHQN5U.js → chunk.2RNIZ5ES.js} +2 -2
  130. package/cdn-versioned/chunks/{chunk.UTXIVBR2.js → chunk.2U2NO4J2.js} +2 -2
  131. package/cdn-versioned/chunks/{chunk.RKMV24FY.js → chunk.37VRPNTF.js} +3 -3
  132. package/cdn-versioned/chunks/{chunk.OMRKG6ND.js → chunk.3IP2NPXJ.js} +2 -2
  133. package/cdn-versioned/chunks/{chunk.LH5RKLIB.js → chunk.4FOYP5RB.js} +2 -2
  134. package/cdn-versioned/chunks/{chunk.BOWHXMXY.js → chunk.4ZJ3MXQP.js} +2 -2
  135. package/cdn-versioned/chunks/{chunk.7LZHW3Q5.js → chunk.5N2XL4PO.js} +2 -2
  136. package/cdn-versioned/chunks/{chunk.WIHSK6PN.js → chunk.5N3PHCUL.js} +2 -2
  137. package/cdn-versioned/chunks/{chunk.4OE2TU3Y.js → chunk.5WVT5PBZ.js} +2 -2
  138. package/cdn-versioned/chunks/{chunk.APOMDHNP.js → chunk.6BPMFU3D.js} +2 -2
  139. package/cdn-versioned/chunks/{chunk.DDU5T7TW.js → chunk.6ETYTZUH.js} +2 -2
  140. package/cdn-versioned/chunks/{chunk.SCHC5WSJ.js → chunk.6TKTHSCR.js} +2 -2
  141. package/cdn-versioned/chunks/{chunk.RRIIBUZG.js → chunk.7FVXXCOD.js} +2 -2
  142. package/cdn-versioned/chunks/{chunk.6HSHV3NX.js → chunk.ADOC55AB.js} +3 -3
  143. package/cdn-versioned/chunks/{chunk.J6KIY4UA.js → chunk.AKV76X4Q.js} +2 -2
  144. package/cdn-versioned/chunks/{chunk.ZIC3N6YJ.js → chunk.ALDQAJDW.js} +2 -2
  145. package/cdn-versioned/chunks/{chunk.AHMUV4CN.js → chunk.AYKTQHGY.js} +2 -2
  146. package/cdn-versioned/chunks/{chunk.4LLZ2ILW.js → chunk.BDLRDS6L.js} +2 -2
  147. package/cdn-versioned/chunks/{chunk.2SEVUMWS.js → chunk.BG4E5EW4.js} +2 -2
  148. package/cdn-versioned/chunks/{chunk.OJGPDUWV.js → chunk.CA3ZPQGP.js} +2 -2
  149. package/cdn-versioned/chunks/{chunk.7DKBOZJU.js → chunk.CAHD2LJ3.js} +2 -2
  150. package/cdn-versioned/chunks/{chunk.2UC7ID2H.js → chunk.CMEG4R7E.js} +2 -2
  151. package/cdn-versioned/chunks/{chunk.VFMCDN7W.js → chunk.DETMVE4V.js} +2 -2
  152. package/cdn-versioned/chunks/chunk.DSKB3SEU.js +1 -1
  153. package/cdn-versioned/chunks/{chunk.JHDF277H.js → chunk.DSPHE3TH.js} +2 -2
  154. package/cdn-versioned/chunks/{chunk.UTS7NBOJ.js → chunk.DTEL5K6Z.js} +2 -2
  155. package/cdn-versioned/chunks/chunk.E3RBLJOD.js +2 -2
  156. package/cdn-versioned/chunks/{chunk.BS3GY6J5.js → chunk.FHTDIHGC.js} +5 -5
  157. package/cdn-versioned/chunks/{chunk.2Q64C7PW.js → chunk.FHXS4WLL.js} +2 -2
  158. package/cdn-versioned/chunks/{chunk.EDP2BY4Q.js → chunk.FRWRMA7J.js} +2 -2
  159. package/cdn-versioned/chunks/{chunk.MLNVOR7M.js → chunk.G5U3QXVE.js} +2 -2
  160. package/cdn-versioned/chunks/{chunk.6PB7EWTQ.js → chunk.GBVC6QMP.js} +2 -2
  161. package/cdn-versioned/chunks/{chunk.YAANK3U6.js → chunk.GWLO3ODI.js} +2 -2
  162. package/cdn-versioned/chunks/{chunk.EBMYXBFR.js → chunk.HUSYEMEE.js} +2 -2
  163. package/cdn-versioned/chunks/{chunk.Q7E6F2HW.js → chunk.JVZUIG4Z.js} +2 -2
  164. package/cdn-versioned/chunks/{chunk.PXFYL6KY.js → chunk.KKXG4ZQQ.js} +2 -2
  165. package/cdn-versioned/chunks/{chunk.SOQN353H.js → chunk.LBZYRAB2.js} +2 -2
  166. package/cdn-versioned/chunks/{chunk.CXFLSM56.js → chunk.LECQW2YR.js} +2 -2
  167. package/cdn-versioned/chunks/chunk.LZRL7OLU.js +1 -1
  168. package/cdn-versioned/chunks/{chunk.FEXFNF27.js → chunk.M45PIU7T.js} +2 -2
  169. package/cdn-versioned/chunks/{chunk.XJAJO727.js → chunk.MJMWCFYX.js} +1 -1
  170. package/cdn-versioned/chunks/{chunk.3UAQXMAF.js → chunk.MWVSSKTZ.js} +2 -2
  171. package/cdn-versioned/chunks/{chunk.L7BTB6LI.js → chunk.OLSOHNP7.js} +2 -2
  172. package/cdn-versioned/chunks/{chunk.WHOK4XT7.js → chunk.OWCWWGXI.js} +2 -2
  173. package/cdn-versioned/chunks/{chunk.JQW6SYSE.js → chunk.PTB4GO5U.js} +2 -2
  174. package/cdn-versioned/chunks/{chunk.CW7N5I3S.js → chunk.Q337W2UO.js} +2 -2
  175. package/cdn-versioned/chunks/{chunk.XICZDG3E.js → chunk.Q4FDLMDW.js} +2 -2
  176. package/cdn-versioned/chunks/{chunk.ZSCCD7CU.js → chunk.Q6IB3SDR.js} +2 -2
  177. package/cdn-versioned/chunks/{chunk.POBQCTPL.js → chunk.Q7O53AIP.js} +3 -3
  178. package/cdn-versioned/chunks/{chunk.R6ZEBMRH.js → chunk.QUNMRYGU.js} +2 -2
  179. package/cdn-versioned/chunks/{chunk.ENE5YY4Y.js → chunk.R2OOOZTC.js} +10 -10
  180. package/cdn-versioned/chunks/{chunk.EPVQ4QAS.js → chunk.R2PYTI7W.js} +2 -2
  181. package/cdn-versioned/chunks/{chunk.MC7A5NMS.js → chunk.TRLT5GBO.js} +2 -2
  182. package/cdn-versioned/chunks/{chunk.D4SBGWDF.js → chunk.UKZ2PZBT.js} +2 -2
  183. package/cdn-versioned/chunks/{chunk.AO2OON4N.js → chunk.VLKRVPQH.js} +5 -5
  184. package/cdn-versioned/chunks/{chunk.GXY2VZH2.js → chunk.VQ6ETYCB.js} +2 -2
  185. package/cdn-versioned/chunks/{chunk.ICWUJ66F.js → chunk.W3PA36P5.js} +2 -2
  186. package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
  187. package/cdn-versioned/chunks/{chunk.WYUWPKVY.js → chunk.WRZERWXG.js} +2 -2
  188. package/cdn-versioned/chunks/{chunk.ES62UWOT.js → chunk.XAQFVG3G.js} +2 -2
  189. package/cdn-versioned/chunks/{chunk.5CJ4UEYT.js → chunk.YXXS6VLA.js} +2 -2
  190. package/cdn-versioned/components/accordion/accordion.d.ts +1 -1
  191. package/cdn-versioned/components/accordion/accordion.js +1 -1
  192. package/cdn-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  193. package/cdn-versioned/components/accordion-group/accordion-group.js +1 -1
  194. package/cdn-versioned/components/animation/animation.d.ts +1 -1
  195. package/cdn-versioned/components/animation/animation.js +1 -1
  196. package/cdn-versioned/components/audio/audio.d.ts +1 -1
  197. package/cdn-versioned/components/audio/audio.js +1 -1
  198. package/cdn-versioned/components/badge/badge.d.ts +1 -1
  199. package/cdn-versioned/components/badge/badge.js +1 -1
  200. package/cdn-versioned/components/brandshape/brandshape.d.ts +1 -1
  201. package/cdn-versioned/components/brandshape/brandshape.js +1 -1
  202. package/cdn-versioned/components/breadcrumb/breadcrumb.d.ts +1 -1
  203. package/cdn-versioned/components/breadcrumb/breadcrumb.js +1 -1
  204. package/cdn-versioned/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
  205. package/cdn-versioned/components/breadcrumb-item/breadcrumb-item.js +1 -1
  206. package/cdn-versioned/components/button/button.d.ts +1 -1
  207. package/cdn-versioned/components/button/button.js +1 -1
  208. package/cdn-versioned/components/button-group/button-group.d.ts +1 -1
  209. package/cdn-versioned/components/button-group/button-group.js +1 -1
  210. package/cdn-versioned/components/carousel/carousel.d.ts +1 -1
  211. package/cdn-versioned/components/carousel/carousel.js +1 -1
  212. package/cdn-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  213. package/cdn-versioned/components/carousel-item/carousel-item.js +1 -1
  214. package/cdn-versioned/components/checkbox/checkbox.d.ts +1 -1
  215. package/cdn-versioned/components/checkbox/checkbox.js +1 -1
  216. package/cdn-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
  217. package/cdn-versioned/components/checkbox-group/checkbox-group.js +1 -1
  218. package/cdn-versioned/components/combobox/combobox.d.ts +1 -1
  219. package/cdn-versioned/components/combobox/combobox.js +1 -1
  220. package/cdn-versioned/components/datepicker/datepicker.d.ts +1 -1
  221. package/cdn-versioned/components/datepicker/datepicker.js +1 -1
  222. package/cdn-versioned/components/dialog/dialog.d.ts +1 -1
  223. package/cdn-versioned/components/dialog/dialog.js +1 -1
  224. package/cdn-versioned/components/divider/divider.d.ts +1 -1
  225. package/cdn-versioned/components/divider/divider.js +1 -1
  226. package/cdn-versioned/components/drawer/drawer.d.ts +1 -1
  227. package/cdn-versioned/components/drawer/drawer.js +1 -1
  228. package/cdn-versioned/components/dropdown/dropdown.d.ts +1 -1
  229. package/cdn-versioned/components/dropdown/dropdown.js +1 -1
  230. package/cdn-versioned/components/expandable/expandable.d.ts +1 -1
  231. package/cdn-versioned/components/expandable/expandable.js +1 -1
  232. package/cdn-versioned/components/flipcard/flipcard.d.ts +1 -1
  233. package/cdn-versioned/components/flipcard/flipcard.js +1 -1
  234. package/cdn-versioned/components/header/header.d.ts +1 -1
  235. package/cdn-versioned/components/header/header.js +1 -1
  236. package/cdn-versioned/components/icon/icon.d.ts +1 -1
  237. package/cdn-versioned/components/icon/icon.js +1 -1
  238. package/cdn-versioned/components/include/include.d.ts +1 -1
  239. package/cdn-versioned/components/include/include.js +1 -1
  240. package/cdn-versioned/components/input/input.d.ts +1 -1
  241. package/cdn-versioned/components/input/input.js +1 -1
  242. package/cdn-versioned/components/link/link.d.ts +1 -1
  243. package/cdn-versioned/components/link/link.js +1 -1
  244. package/cdn-versioned/components/loader/loader.d.ts +1 -1
  245. package/cdn-versioned/components/loader/loader.js +1 -1
  246. package/cdn-versioned/components/map-marker/map-marker.d.ts +1 -1
  247. package/cdn-versioned/components/map-marker/map-marker.js +1 -1
  248. package/cdn-versioned/components/menu/menu.d.ts +1 -1
  249. package/cdn-versioned/components/menu/menu.js +1 -1
  250. package/cdn-versioned/components/menu-item/menu-item.d.ts +1 -1
  251. package/cdn-versioned/components/menu-item/menu-item.js +1 -1
  252. package/cdn-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  253. package/cdn-versioned/components/navigation-item/navigation-item.js +1 -1
  254. package/cdn-versioned/components/notification/notification.d.ts +1 -1
  255. package/cdn-versioned/components/notification/notification.js +1 -1
  256. package/cdn-versioned/components/optgroup/optgroup.d.ts +1 -1
  257. package/cdn-versioned/components/optgroup/optgroup.js +1 -1
  258. package/cdn-versioned/components/option/option.d.ts +1 -1
  259. package/cdn-versioned/components/option/option.js +1 -1
  260. package/cdn-versioned/components/popup/popup.d.ts +1 -1
  261. package/cdn-versioned/components/popup/popup.js +1 -1
  262. package/cdn-versioned/components/quickfact/quickfact.d.ts +1 -1
  263. package/cdn-versioned/components/quickfact/quickfact.js +1 -1
  264. package/cdn-versioned/components/radio/radio.d.ts +1 -1
  265. package/cdn-versioned/components/radio/radio.js +1 -1
  266. package/cdn-versioned/components/radio-button/radio-button.d.ts +1 -1
  267. package/cdn-versioned/components/radio-button/radio-button.js +1 -1
  268. package/cdn-versioned/components/radio-group/radio-group.d.ts +1 -1
  269. package/cdn-versioned/components/radio-group/radio-group.js +1 -1
  270. package/cdn-versioned/components/range/range.d.ts +1 -1
  271. package/cdn-versioned/components/range/range.js +1 -1
  272. package/cdn-versioned/components/range-tick/range-tick.d.ts +1 -1
  273. package/cdn-versioned/components/range-tick/range-tick.js +1 -1
  274. package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
  275. package/cdn-versioned/components/scrollable/scrollable.js +1 -1
  276. package/cdn-versioned/components/select/select.d.ts +1 -1
  277. package/cdn-versioned/components/select/select.js +1 -1
  278. package/cdn-versioned/components/skeleton/skeleton.d.ts +1 -1
  279. package/cdn-versioned/components/skeleton/skeleton.js +1 -1
  280. package/cdn-versioned/components/spinner/spinner.d.ts +1 -1
  281. package/cdn-versioned/components/spinner/spinner.js +1 -1
  282. package/cdn-versioned/components/step/step.d.ts +1 -1
  283. package/cdn-versioned/components/step/step.js +1 -1
  284. package/cdn-versioned/components/step-group/step-group.d.ts +1 -1
  285. package/cdn-versioned/components/step-group/step-group.js +1 -1
  286. package/cdn-versioned/components/switch/switch.d.ts +1 -1
  287. package/cdn-versioned/components/switch/switch.js +1 -1
  288. package/cdn-versioned/components/tab/tab.d.ts +1 -1
  289. package/cdn-versioned/components/tab/tab.js +1 -1
  290. package/cdn-versioned/components/tab-group/tab-group.d.ts +1 -1
  291. package/cdn-versioned/components/tab-group/tab-group.js +1 -1
  292. package/cdn-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  293. package/cdn-versioned/components/tab-panel/tab-panel.js +1 -1
  294. package/cdn-versioned/components/tag/tag.d.ts +1 -1
  295. package/cdn-versioned/components/tag/tag.js +1 -1
  296. package/cdn-versioned/components/teaser/teaser.js +1 -1
  297. package/cdn-versioned/components/teaser-media/teaser-media.js +1 -1
  298. package/cdn-versioned/components/textarea/textarea.d.ts +1 -1
  299. package/cdn-versioned/components/textarea/textarea.js +1 -1
  300. package/cdn-versioned/components/theme-listener/theme-listener.d.ts +1 -1
  301. package/cdn-versioned/components/theme-listener/theme-listener.js +1 -1
  302. package/cdn-versioned/components/tooltip/tooltip.d.ts +1 -1
  303. package/cdn-versioned/components/tooltip/tooltip.js +1 -1
  304. package/cdn-versioned/components/video/video.d.ts +1 -1
  305. package/cdn-versioned/components/video/video.js +1 -1
  306. package/cdn-versioned/custom-elements.json +251 -251
  307. package/cdn-versioned/internal/form.js +2 -2
  308. package/cdn-versioned/solid-components.bundle.js +80 -80
  309. package/cdn-versioned/solid-components.css +2 -2
  310. package/cdn-versioned/solid-components.iife.js +80 -80
  311. package/cdn-versioned/solid-components.js +1 -1
  312. package/cdn-versioned/utilities/autocomplete-config.js +1 -1
  313. package/cdn-versioned/vscode.html-custom-data.json +108 -108
  314. package/cdn-versioned/web-types.json +164 -164
  315. package/dist/chunks/{chunk.BS2ZPKOG.js → chunk.2GU5AAD3.js} +1 -1
  316. package/dist/chunks/{chunk.M4O3MDU3.js → chunk.2LBFHQ5J.js} +1 -1
  317. package/dist/chunks/{chunk.KWD3E7PP.js → chunk.3JQDOTZV.js} +1 -1
  318. package/dist/chunks/{chunk.7BT4WAQS.js → chunk.4JOZYCES.js} +1 -1
  319. package/dist/chunks/{chunk.TJI3UYUJ.js → chunk.53C2SHMU.js} +1 -1
  320. package/dist/chunks/{chunk.RU5GF26P.js → chunk.54U2NRWY.js} +1 -1
  321. package/dist/chunks/{chunk.YT23TSJR.js → chunk.6F3OUOGI.js} +1 -1
  322. package/dist/chunks/{chunk.DYG4FWRG.js → chunk.6MYHPN5U.js} +1 -1
  323. package/dist/chunks/{chunk.TE6LK5OI.js → chunk.6PLFHNPQ.js} +1 -1
  324. package/dist/chunks/{chunk.W6PBLDS5.js → chunk.6VQYIPKX.js} +2 -2
  325. package/dist/chunks/{chunk.VTBH4LAP.js → chunk.72RPJBEE.js} +1 -1
  326. package/dist/chunks/{chunk.J5A33XU2.js → chunk.7IP6W4VD.js} +1 -1
  327. package/dist/chunks/{chunk.7BSLFKU5.js → chunk.7LVPMNWR.js} +1 -1
  328. package/dist/chunks/{chunk.EDHEUF6G.js → chunk.B5EIDLLA.js} +1 -1
  329. package/dist/chunks/{chunk.2PFOTMKD.js → chunk.BLLH7QVA.js} +1 -1
  330. package/dist/chunks/{chunk.H53WQBDK.js → chunk.BSWNMA5L.js} +1 -1
  331. package/dist/chunks/{chunk.AQ5RLVDO.js → chunk.DN2GTRKZ.js} +1 -1
  332. package/dist/chunks/{chunk.LQBN4KWJ.js → chunk.DWZAOOHK.js} +1 -1
  333. package/dist/chunks/{chunk.CMHJNHR6.js → chunk.DZ7EZGHB.js} +1 -1
  334. package/dist/chunks/{chunk.G5R47M2B.js → chunk.F2TFKBU7.js} +1 -1
  335. package/dist/chunks/{chunk.GFHNKXRG.js → chunk.FKQZQZLK.js} +1 -1
  336. package/dist/chunks/{chunk.B4TM2WST.js → chunk.GIFPMRXC.js} +1 -1
  337. package/dist/chunks/{chunk.YSZ5CL7K.js → chunk.HCEXY3M4.js} +1 -1
  338. package/dist/chunks/{chunk.3MUWC7ZQ.js → chunk.HUOIMJZG.js} +1 -1
  339. package/dist/chunks/{chunk.KVKO4ZLN.js → chunk.IGWHKJT7.js} +2 -2
  340. package/dist/chunks/{chunk.X3SWQRRP.js → chunk.JJTZNPEM.js} +1 -1
  341. package/dist/chunks/{chunk.2XO44VKK.js → chunk.K6RAY27I.js} +1 -1
  342. package/dist/chunks/{chunk.MLDYTATL.js → chunk.KCMGLGQJ.js} +1 -1
  343. package/dist/chunks/{chunk.POKSS32D.js → chunk.LWJKB57V.js} +1 -1
  344. package/dist/chunks/{chunk.UI7JLJDL.js → chunk.MF5HKQBF.js} +1 -1
  345. package/dist/chunks/{chunk.6XTGETVW.js → chunk.NL76ODWH.js} +1 -1
  346. package/dist/chunks/{chunk.3NFW33UT.js → chunk.NO65B56O.js} +1 -1
  347. package/dist/chunks/{chunk.EEEIIJMB.js → chunk.NPDQ36TC.js} +1 -1
  348. package/dist/chunks/{chunk.FRLOS6P7.js → chunk.P37X7CAZ.js} +1 -1
  349. package/dist/chunks/{chunk.3P3ZLPSI.js → chunk.PDGRG77N.js} +1 -1
  350. package/dist/chunks/{chunk.RMSZCVAI.js → chunk.PZ7R7SI7.js} +1 -1
  351. package/dist/chunks/{chunk.4CYDINDB.js → chunk.QP4KPI6Z.js} +1 -1
  352. package/dist/chunks/{chunk.BR5PPGBX.js → chunk.QQO73GC3.js} +1 -1
  353. package/dist/chunks/{chunk.UF4HXV3V.js → chunk.QVZRJYXK.js} +1 -1
  354. package/dist/chunks/{chunk.SLUGXG7E.js → chunk.R7T5GVG2.js} +1 -1
  355. package/dist/chunks/{chunk.RS7M5R4R.js → chunk.RAAP5457.js} +1 -1
  356. package/dist/chunks/{chunk.J3RX4Y6S.js → chunk.RCP5M6QU.js} +1 -1
  357. package/dist/chunks/{chunk.H3SVUQP3.js → chunk.SBKXOLDW.js} +1 -1
  358. package/dist/chunks/{chunk.D2XKPNOP.js → chunk.SZOMTQQW.js} +1 -1
  359. package/dist/chunks/{chunk.SB4P52KM.js → chunk.T54LXOQ5.js} +1 -1
  360. package/dist/chunks/{chunk.JQBYEVD6.js → chunk.TFJLCKDW.js} +1 -1
  361. package/dist/chunks/{chunk.7AGLFNJK.js → chunk.TSMFJY5S.js} +2 -2
  362. package/dist/chunks/{chunk.5NTF57TJ.js → chunk.TV5RHOWS.js} +1 -1
  363. package/dist/chunks/{chunk.ZOLOAEEA.js → chunk.TXWQGRBO.js} +1 -1
  364. package/dist/chunks/{chunk.ZXAAMEZI.js → chunk.V24CSPXQ.js} +1 -1
  365. package/dist/chunks/{chunk.HDGNHXRQ.js → chunk.V7R2TC2E.js} +1 -1
  366. package/dist/chunks/{chunk.TQGIML36.js → chunk.XRN52CCW.js} +1 -1
  367. package/dist/chunks/{chunk.AGSJ3MWY.js → chunk.YEVNQB6X.js} +1 -1
  368. package/dist/chunks/{chunk.EXZ6VFXN.js → chunk.YOSVX7OH.js} +1 -1
  369. package/dist/chunks/{chunk.UWOJEWNV.js → chunk.YPHYPOLZ.js} +1 -1
  370. package/dist/chunks/{chunk.WXXHOSE3.js → chunk.YXKB3TBZ.js} +1 -1
  371. package/dist/chunks/{chunk.I4T5RT5D.js → chunk.ZM6NVRGV.js} +1 -1
  372. package/dist/chunks/{chunk.NWI2U6GV.js → chunk.ZPM2NPOM.js} +1 -1
  373. package/dist/chunks/{chunk.AJ6IUEXD.js → chunk.ZPQYBRV6.js} +1 -1
  374. package/dist/chunks/{chunk.DG6HQUYC.js → chunk.ZXTI2SUI.js} +1 -1
  375. package/dist/components/accordion/accordion.js +3 -3
  376. package/dist/components/accordion-group/accordion-group.js +4 -4
  377. package/dist/components/animation/animation.js +2 -2
  378. package/dist/components/audio/audio.js +6 -6
  379. package/dist/components/badge/badge.js +2 -2
  380. package/dist/components/brandshape/brandshape.js +2 -2
  381. package/dist/components/breadcrumb/breadcrumb.js +5 -5
  382. package/dist/components/breadcrumb-item/breadcrumb-item.js +3 -3
  383. package/dist/components/button/button.js +3 -3
  384. package/dist/components/button-group/button-group.js +2 -2
  385. package/dist/components/carousel/carousel.js +4 -4
  386. package/dist/components/carousel-item/carousel-item.js +2 -2
  387. package/dist/components/checkbox/checkbox.js +3 -3
  388. package/dist/components/checkbox-group/checkbox-group.js +3 -3
  389. package/dist/components/combobox/combobox.js +5 -5
  390. package/dist/components/datepicker/datepicker.js +5 -5
  391. package/dist/components/dialog/dialog.js +5 -5
  392. package/dist/components/divider/divider.js +2 -2
  393. package/dist/components/drawer/drawer.js +5 -5
  394. package/dist/components/dropdown/dropdown.js +3 -3
  395. package/dist/components/expandable/expandable.js +3 -3
  396. package/dist/components/flipcard/flipcard.js +5 -5
  397. package/dist/components/header/header.js +2 -2
  398. package/dist/components/icon/icon.js +2 -2
  399. package/dist/components/include/include.js +2 -2
  400. package/dist/components/input/input.js +3 -3
  401. package/dist/components/link/link.js +2 -2
  402. package/dist/components/loader/loader.js +2 -2
  403. package/dist/components/map-marker/map-marker.js +2 -2
  404. package/dist/components/menu/menu.js +2 -2
  405. package/dist/components/menu-item/menu-item.js +2 -2
  406. package/dist/components/navigation-item/navigation-item.js +4 -4
  407. package/dist/components/notification/notification.js +5 -5
  408. package/dist/components/optgroup/optgroup.js +3 -3
  409. package/dist/components/option/option.js +3 -3
  410. package/dist/components/popup/popup.js +2 -2
  411. package/dist/components/quickfact/quickfact.js +4 -4
  412. package/dist/components/radio/radio.js +2 -2
  413. package/dist/components/radio-button/radio-button.js +2 -2
  414. package/dist/components/radio-group/radio-group.js +4 -4
  415. package/dist/components/range/range.js +5 -5
  416. package/dist/components/range-tick/range-tick.js +2 -2
  417. package/dist/components/scrollable/scrollable.js +3 -3
  418. package/dist/components/select/select.js +5 -5
  419. package/dist/components/skeleton/skeleton.js +2 -2
  420. package/dist/components/spinner/spinner.js +2 -2
  421. package/dist/components/step/step.js +3 -3
  422. package/dist/components/step-group/step-group.js +2 -2
  423. package/dist/components/switch/switch.js +2 -2
  424. package/dist/components/tab/tab.js +2 -2
  425. package/dist/components/tab-group/tab-group.js +3 -3
  426. package/dist/components/tab-panel/tab-panel.js +2 -2
  427. package/dist/components/tag/tag.js +3 -3
  428. package/dist/components/teaser/teaser.js +2 -2
  429. package/dist/components/teaser-media/teaser-media.js +2 -2
  430. package/dist/components/textarea/textarea.js +3 -3
  431. package/dist/components/theme-listener/theme-listener.js +2 -2
  432. package/dist/components/tooltip/tooltip.js +4 -4
  433. package/dist/components/video/video.js +3 -3
  434. package/dist/custom-elements.json +1 -1
  435. package/dist/solid-components.js +60 -60
  436. package/dist/utilities/autocomplete-config.js +2 -2
  437. package/dist/web-types.json +1 -1
  438. package/dist-versioned/chunks/{chunk.BS2ZPKOG.js → chunk.2GU5AAD3.js} +12 -12
  439. package/dist-versioned/chunks/{chunk.M4O3MDU3.js → chunk.2LBFHQ5J.js} +14 -14
  440. package/dist-versioned/chunks/{chunk.KWD3E7PP.js → chunk.3JQDOTZV.js} +7 -7
  441. package/dist-versioned/chunks/{chunk.7BT4WAQS.js → chunk.4JOZYCES.js} +4 -4
  442. package/dist-versioned/chunks/{chunk.TJI3UYUJ.js → chunk.53C2SHMU.js} +6 -6
  443. package/dist-versioned/chunks/{chunk.RU5GF26P.js → chunk.54U2NRWY.js} +6 -6
  444. package/dist-versioned/chunks/{chunk.YT23TSJR.js → chunk.6F3OUOGI.js} +6 -6
  445. package/dist-versioned/chunks/{chunk.DYG4FWRG.js → chunk.6MYHPN5U.js} +3 -3
  446. package/dist-versioned/chunks/{chunk.TE6LK5OI.js → chunk.6PLFHNPQ.js} +15 -15
  447. package/dist-versioned/chunks/{chunk.W6PBLDS5.js → chunk.6VQYIPKX.js} +14 -14
  448. package/dist-versioned/chunks/{chunk.VTBH4LAP.js → chunk.72RPJBEE.js} +2 -2
  449. package/dist-versioned/chunks/{chunk.J5A33XU2.js → chunk.7IP6W4VD.js} +5 -5
  450. package/dist-versioned/chunks/{chunk.7BSLFKU5.js → chunk.7LVPMNWR.js} +11 -11
  451. package/dist-versioned/chunks/{chunk.EDHEUF6G.js → chunk.B5EIDLLA.js} +26 -26
  452. package/dist-versioned/chunks/{chunk.2PFOTMKD.js → chunk.BLLH7QVA.js} +34 -34
  453. package/dist-versioned/chunks/{chunk.H53WQBDK.js → chunk.BSWNMA5L.js} +1 -1
  454. package/dist-versioned/chunks/chunk.C3WIBDGG.js +2 -2
  455. package/dist-versioned/chunks/{chunk.AQ5RLVDO.js → chunk.DN2GTRKZ.js} +2 -2
  456. package/dist-versioned/chunks/{chunk.LQBN4KWJ.js → chunk.DWZAOOHK.js} +11 -11
  457. package/dist-versioned/chunks/{chunk.CMHJNHR6.js → chunk.DZ7EZGHB.js} +26 -26
  458. package/dist-versioned/chunks/chunk.EAJ3CM6N.js +4 -4
  459. package/dist-versioned/chunks/{chunk.G5R47M2B.js → chunk.F2TFKBU7.js} +7 -7
  460. package/dist-versioned/chunks/{chunk.GFHNKXRG.js → chunk.FKQZQZLK.js} +9 -9
  461. package/dist-versioned/chunks/{chunk.B4TM2WST.js → chunk.GIFPMRXC.js} +6 -6
  462. package/dist-versioned/chunks/{chunk.YSZ5CL7K.js → chunk.HCEXY3M4.js} +2 -2
  463. package/dist-versioned/chunks/{chunk.3MUWC7ZQ.js → chunk.HUOIMJZG.js} +2 -2
  464. package/dist-versioned/chunks/{chunk.KVKO4ZLN.js → chunk.IGWHKJT7.js} +12 -12
  465. package/dist-versioned/chunks/{chunk.X3SWQRRP.js → chunk.JJTZNPEM.js} +4 -4
  466. package/dist-versioned/chunks/{chunk.2XO44VKK.js → chunk.K6RAY27I.js} +3 -3
  467. package/dist-versioned/chunks/{chunk.MLDYTATL.js → chunk.KCMGLGQJ.js} +8 -8
  468. package/dist-versioned/chunks/chunk.KEJFWGZI.js +4 -4
  469. package/dist-versioned/chunks/{chunk.POKSS32D.js → chunk.LWJKB57V.js} +3 -3
  470. package/dist-versioned/chunks/{chunk.UI7JLJDL.js → chunk.MF5HKQBF.js} +7 -7
  471. package/dist-versioned/chunks/{chunk.6XTGETVW.js → chunk.NL76ODWH.js} +12 -12
  472. package/dist-versioned/chunks/{chunk.3NFW33UT.js → chunk.NO65B56O.js} +6 -6
  473. package/dist-versioned/chunks/{chunk.EEEIIJMB.js → chunk.NPDQ36TC.js} +3 -3
  474. package/dist-versioned/chunks/{chunk.FRLOS6P7.js → chunk.P37X7CAZ.js} +3 -3
  475. package/dist-versioned/chunks/{chunk.3P3ZLPSI.js → chunk.PDGRG77N.js} +6 -6
  476. package/dist-versioned/chunks/{chunk.RMSZCVAI.js → chunk.PZ7R7SI7.js} +6 -6
  477. package/dist-versioned/chunks/{chunk.4CYDINDB.js → chunk.QP4KPI6Z.js} +3 -3
  478. package/dist-versioned/chunks/{chunk.BR5PPGBX.js → chunk.QQO73GC3.js} +8 -8
  479. package/dist-versioned/chunks/{chunk.UF4HXV3V.js → chunk.QVZRJYXK.js} +11 -11
  480. package/dist-versioned/chunks/{chunk.SLUGXG7E.js → chunk.R7T5GVG2.js} +3 -3
  481. package/dist-versioned/chunks/{chunk.RS7M5R4R.js → chunk.RAAP5457.js} +6 -6
  482. package/dist-versioned/chunks/{chunk.J3RX4Y6S.js → chunk.RCP5M6QU.js} +3 -3
  483. package/dist-versioned/chunks/{chunk.H3SVUQP3.js → chunk.SBKXOLDW.js} +6 -6
  484. package/dist-versioned/chunks/{chunk.D2XKPNOP.js → chunk.SZOMTQQW.js} +7 -7
  485. package/dist-versioned/chunks/{chunk.SB4P52KM.js → chunk.T54LXOQ5.js} +2 -2
  486. package/dist-versioned/chunks/{chunk.JQBYEVD6.js → chunk.TFJLCKDW.js} +4 -4
  487. package/dist-versioned/chunks/{chunk.7AGLFNJK.js → chunk.TSMFJY5S.js} +5 -5
  488. package/dist-versioned/chunks/{chunk.5NTF57TJ.js → chunk.TV5RHOWS.js} +2 -2
  489. package/dist-versioned/chunks/{chunk.ZOLOAEEA.js → chunk.TXWQGRBO.js} +4 -4
  490. package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
  491. package/dist-versioned/chunks/{chunk.ZXAAMEZI.js → chunk.V24CSPXQ.js} +4 -4
  492. package/dist-versioned/chunks/{chunk.HDGNHXRQ.js → chunk.V7R2TC2E.js} +12 -12
  493. package/dist-versioned/chunks/{chunk.TQGIML36.js → chunk.XRN52CCW.js} +3 -3
  494. package/dist-versioned/chunks/{chunk.AGSJ3MWY.js → chunk.YEVNQB6X.js} +3 -3
  495. package/dist-versioned/chunks/{chunk.EXZ6VFXN.js → chunk.YOSVX7OH.js} +2 -2
  496. package/dist-versioned/chunks/{chunk.UWOJEWNV.js → chunk.YPHYPOLZ.js} +3 -3
  497. package/dist-versioned/chunks/{chunk.WXXHOSE3.js → chunk.YXKB3TBZ.js} +5 -5
  498. package/dist-versioned/chunks/{chunk.I4T5RT5D.js → chunk.ZM6NVRGV.js} +5 -5
  499. package/dist-versioned/chunks/{chunk.NWI2U6GV.js → chunk.ZPM2NPOM.js} +5 -5
  500. package/dist-versioned/chunks/{chunk.AJ6IUEXD.js → chunk.ZPQYBRV6.js} +6 -6
  501. package/dist-versioned/chunks/{chunk.DG6HQUYC.js → chunk.ZXTI2SUI.js} +11 -11
  502. package/dist-versioned/components/accordion/accordion.d.ts +1 -1
  503. package/dist-versioned/components/accordion/accordion.js +3 -3
  504. package/dist-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  505. package/dist-versioned/components/accordion-group/accordion-group.js +4 -4
  506. package/dist-versioned/components/animation/animation.d.ts +1 -1
  507. package/dist-versioned/components/animation/animation.js +2 -2
  508. package/dist-versioned/components/audio/audio.d.ts +1 -1
  509. package/dist-versioned/components/audio/audio.js +6 -6
  510. package/dist-versioned/components/badge/badge.d.ts +1 -1
  511. package/dist-versioned/components/badge/badge.js +2 -2
  512. package/dist-versioned/components/brandshape/brandshape.d.ts +1 -1
  513. package/dist-versioned/components/brandshape/brandshape.js +2 -2
  514. package/dist-versioned/components/breadcrumb/breadcrumb.d.ts +1 -1
  515. package/dist-versioned/components/breadcrumb/breadcrumb.js +5 -5
  516. package/dist-versioned/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
  517. package/dist-versioned/components/breadcrumb-item/breadcrumb-item.js +3 -3
  518. package/dist-versioned/components/button/button.d.ts +1 -1
  519. package/dist-versioned/components/button/button.js +3 -3
  520. package/dist-versioned/components/button-group/button-group.d.ts +1 -1
  521. package/dist-versioned/components/button-group/button-group.js +2 -2
  522. package/dist-versioned/components/carousel/carousel.d.ts +1 -1
  523. package/dist-versioned/components/carousel/carousel.js +4 -4
  524. package/dist-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  525. package/dist-versioned/components/carousel-item/carousel-item.js +2 -2
  526. package/dist-versioned/components/checkbox/checkbox.d.ts +1 -1
  527. package/dist-versioned/components/checkbox/checkbox.js +3 -3
  528. package/dist-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
  529. package/dist-versioned/components/checkbox-group/checkbox-group.js +3 -3
  530. package/dist-versioned/components/combobox/combobox.d.ts +1 -1
  531. package/dist-versioned/components/combobox/combobox.js +5 -5
  532. package/dist-versioned/components/datepicker/datepicker.d.ts +1 -1
  533. package/dist-versioned/components/datepicker/datepicker.js +5 -5
  534. package/dist-versioned/components/dialog/dialog.d.ts +1 -1
  535. package/dist-versioned/components/dialog/dialog.js +5 -5
  536. package/dist-versioned/components/divider/divider.d.ts +1 -1
  537. package/dist-versioned/components/divider/divider.js +2 -2
  538. package/dist-versioned/components/drawer/drawer.d.ts +1 -1
  539. package/dist-versioned/components/drawer/drawer.js +5 -5
  540. package/dist-versioned/components/dropdown/dropdown.d.ts +1 -1
  541. package/dist-versioned/components/dropdown/dropdown.js +3 -3
  542. package/dist-versioned/components/expandable/expandable.d.ts +1 -1
  543. package/dist-versioned/components/expandable/expandable.js +3 -3
  544. package/dist-versioned/components/flipcard/flipcard.d.ts +1 -1
  545. package/dist-versioned/components/flipcard/flipcard.js +5 -5
  546. package/dist-versioned/components/header/header.d.ts +1 -1
  547. package/dist-versioned/components/header/header.js +2 -2
  548. package/dist-versioned/components/icon/icon.d.ts +1 -1
  549. package/dist-versioned/components/icon/icon.js +2 -2
  550. package/dist-versioned/components/include/include.d.ts +1 -1
  551. package/dist-versioned/components/include/include.js +2 -2
  552. package/dist-versioned/components/input/input.d.ts +1 -1
  553. package/dist-versioned/components/input/input.js +3 -3
  554. package/dist-versioned/components/link/link.d.ts +1 -1
  555. package/dist-versioned/components/link/link.js +2 -2
  556. package/dist-versioned/components/loader/loader.d.ts +1 -1
  557. package/dist-versioned/components/loader/loader.js +2 -2
  558. package/dist-versioned/components/map-marker/map-marker.d.ts +1 -1
  559. package/dist-versioned/components/map-marker/map-marker.js +2 -2
  560. package/dist-versioned/components/menu/menu.d.ts +1 -1
  561. package/dist-versioned/components/menu/menu.js +2 -2
  562. package/dist-versioned/components/menu-item/menu-item.d.ts +1 -1
  563. package/dist-versioned/components/menu-item/menu-item.js +2 -2
  564. package/dist-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  565. package/dist-versioned/components/navigation-item/navigation-item.js +4 -4
  566. package/dist-versioned/components/notification/notification.d.ts +1 -1
  567. package/dist-versioned/components/notification/notification.js +5 -5
  568. package/dist-versioned/components/optgroup/optgroup.d.ts +1 -1
  569. package/dist-versioned/components/optgroup/optgroup.js +3 -3
  570. package/dist-versioned/components/option/option.d.ts +1 -1
  571. package/dist-versioned/components/option/option.js +3 -3
  572. package/dist-versioned/components/popup/popup.d.ts +1 -1
  573. package/dist-versioned/components/popup/popup.js +2 -2
  574. package/dist-versioned/components/quickfact/quickfact.d.ts +1 -1
  575. package/dist-versioned/components/quickfact/quickfact.js +4 -4
  576. package/dist-versioned/components/radio/radio.d.ts +1 -1
  577. package/dist-versioned/components/radio/radio.js +2 -2
  578. package/dist-versioned/components/radio-button/radio-button.d.ts +1 -1
  579. package/dist-versioned/components/radio-button/radio-button.js +2 -2
  580. package/dist-versioned/components/radio-group/radio-group.d.ts +1 -1
  581. package/dist-versioned/components/radio-group/radio-group.js +4 -4
  582. package/dist-versioned/components/range/range.d.ts +1 -1
  583. package/dist-versioned/components/range/range.js +5 -5
  584. package/dist-versioned/components/range-tick/range-tick.d.ts +1 -1
  585. package/dist-versioned/components/range-tick/range-tick.js +2 -2
  586. package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
  587. package/dist-versioned/components/scrollable/scrollable.js +3 -3
  588. package/dist-versioned/components/select/select.d.ts +1 -1
  589. package/dist-versioned/components/select/select.js +5 -5
  590. package/dist-versioned/components/skeleton/skeleton.d.ts +1 -1
  591. package/dist-versioned/components/skeleton/skeleton.js +2 -2
  592. package/dist-versioned/components/spinner/spinner.d.ts +1 -1
  593. package/dist-versioned/components/spinner/spinner.js +2 -2
  594. package/dist-versioned/components/step/step.d.ts +1 -1
  595. package/dist-versioned/components/step/step.js +3 -3
  596. package/dist-versioned/components/step-group/step-group.d.ts +1 -1
  597. package/dist-versioned/components/step-group/step-group.js +2 -2
  598. package/dist-versioned/components/switch/switch.d.ts +1 -1
  599. package/dist-versioned/components/switch/switch.js +2 -2
  600. package/dist-versioned/components/tab/tab.d.ts +1 -1
  601. package/dist-versioned/components/tab/tab.js +2 -2
  602. package/dist-versioned/components/tab-group/tab-group.d.ts +1 -1
  603. package/dist-versioned/components/tab-group/tab-group.js +3 -3
  604. package/dist-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  605. package/dist-versioned/components/tab-panel/tab-panel.js +2 -2
  606. package/dist-versioned/components/tag/tag.d.ts +1 -1
  607. package/dist-versioned/components/tag/tag.js +3 -3
  608. package/dist-versioned/components/teaser/teaser.js +2 -2
  609. package/dist-versioned/components/teaser-media/teaser-media.js +2 -2
  610. package/dist-versioned/components/textarea/textarea.d.ts +1 -1
  611. package/dist-versioned/components/textarea/textarea.js +3 -3
  612. package/dist-versioned/components/theme-listener/theme-listener.d.ts +1 -1
  613. package/dist-versioned/components/theme-listener/theme-listener.js +2 -2
  614. package/dist-versioned/components/tooltip/tooltip.d.ts +1 -1
  615. package/dist-versioned/components/tooltip/tooltip.js +4 -4
  616. package/dist-versioned/components/video/video.d.ts +1 -1
  617. package/dist-versioned/components/video/video.js +3 -3
  618. package/dist-versioned/custom-elements.json +251 -251
  619. package/dist-versioned/internal/form.js +2 -2
  620. package/dist-versioned/solid-components.css +2 -2
  621. package/dist-versioned/solid-components.js +60 -60
  622. package/dist-versioned/utilities/autocomplete-config.js +2 -2
  623. package/dist-versioned/vscode.html-custom-data.json +108 -108
  624. package/dist-versioned/web-types.json +164 -164
  625. package/package.json +2 -2
@@ -1,2 +1,2 @@
1
- import{a as N}from"./chunk.ICEC5PGK.js";import{a as B}from"./chunk.SAEYIL5V.js";import{a as A}from"./chunk.ERP45OHF.js";import{b as z}from"./chunk.LZRL7OLU.js";import{a as n}from"./chunk.LHSR56PH.js";import{a as M}from"./chunk.CGQ2BPPZ.js";import{a as P,b as V}from"./chunk.QQD62QOV.js";import{a as T}from"./chunk.VAM5SM3O.js";import{a}from"./chunk.UFTAQNZB.js";import{a as b}from"./chunk.NYKJXI3Q.js";import{a as E,b as s,c as m,d as w,h as x}from"./chunk.XJAJO727.js";import{b as D,e as r,h as F,i as L}from"./chunk.OBAEIKIV.js";import{a as k,e as i}from"./chunk.6EV4YU6C.js";var $=class extends N{constructor(e){super(e);this.handlePointerDown=e=>{e.button!==0||this.host.disabled||this.spinOnLongPressCallback(e)};this.handlePointerUp=e=>{e==null||e.preventDefault(),e==null||e.stopPropagation(),this.timeout&&this.callbacks.start(),this.stopSpinningAndCleanUp(),this.callbacks.end(),document.removeEventListener("pointerup",this.handlePointerUp)};if(e.type!==P.ELEMENT||!(e.element instanceof HTMLButtonElement))throw new Error("The `longPress` directive must be used on an HTMLButtonElement.")}render(e){return L}update(e,[l]){return this.callbacks===void 0&&this.host===void 0&&(this.host=e.element,this.callbacks=k({},l),this.host.addEventListener("pointerdown",this.handlePointerDown)),F}disconnected(){this.stopSpinningAndCleanUp(),this.host.removeEventListener("pointerdown",this.handlePointerDown),document.removeEventListener("pointerup",this.handlePointerUp)}spinOnLongPressCallback(e){var l;e.preventDefault(),e.stopPropagation(),this.timeout=setTimeout(()=>{this.timeout=void 0,this.interval=setInterval(()=>{this.callbacks.start()},50)},500),document.addEventListener("pointerup",this.handlePointerUp),(l=this.observer)==null||l.disconnect(),this.observer=new MutationObserver(u=>{u.forEach(p=>{p.attributeName==="disabled"&&this.stopSpinningAndCleanUp()})}),this.observer.observe(this.host,{attributes:!0})}stopSpinningAndCleanUp(){var e;clearInterval(this.interval),clearTimeout(this.timeout),(e=this.observer)==null||e.disconnect()}},C=V($);var _,R=(_=navigator.userAgentData)==null?void 0:_.brands.some(f=>f.brand.includes("Chromium")),J=R?!1:navigator.userAgent.includes("Firefox"),t=class extends x{constructor(){super(...arguments);this.formControlController=new z(this);this.hasSlotController=new M(this,"help-text","label","left","right","message","placeholder");this.localize=new T(this);this.hasFocus=!1;this.showValidStyle=!1;this.showInvalidStyle=!1;this.isClickableIconFocused=!1;this.type="text";this.size="lg";this.value="";this.defaultValue="";this.placeholder="";this.label="";this.helpText="";this.clearable=!1;this.disabled=!1;this.visuallyDisabled=!1;this.readonly=!1;this.passwordToggle=!1;this.passwordVisible=!1;this.spinButtons=!1;this.form="";this.name="";this.title="";this.required=!1;this.floatingLabel=!1;this.styleOnValid=!1;this.spellcheck=!0}get valueAsDate(){var e,l;return(l=(e=this.input)==null?void 0:e.valueAsDate)!=null?l:null}set valueAsDate(e){let l=document.createElement("input");l.type="date",l.valueAsDate=e,this.value=l.value}get valueAsNumber(){var e,l;return(l=(e=this.input)==null?void 0:e.valueAsNumber)!=null?l:parseFloat(this.value)}set valueAsNumber(e){let l=document.createElement("input");l.type="number",l.valueAsNumber=e,this.value=l.value}get validity(){return this.input.validity}firstUpdated(){this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleChange(){this.value=this.input.value,this.emit("sd-change")}handleClearClick(e){this.value="",this.emit("sd-clear"),this.emit("sd-input"),this.emit("sd-change"),this.input.focus(),e.stopPropagation()}handleSearchClick(e){this.emit("sd-search"),e.stopPropagation()}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleInput(){if(this.visuallyDisabled){this.input.value=this.value;return}this.value=this.input.value,this.formControlController.updateValidity(),this.emit("sd-input")}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e),this.invalidMessage.textContent=e.target.validationMessage}handleKeyDown(e){let l=e.metaKey||e.ctrlKey||e.shiftKey||e.altKey;e.key==="Enter"&&!l&&setTimeout(()=>{!e.defaultPrevented&&!e.isComposing&&this.formControlController.submit()})}handlePasswordToggle(){this.passwordVisible=!this.passwordVisible}handleClickableIconFocusIn(){this.isClickableIconFocused=!0}handleClickableIconFocusOut(){this.isClickableIconFocused=!1}isDecrementDisabled(){if(this.disabled||this.readonly)return!0;if(this.min===void 0||this.min===null)return!1;let e=typeof this.min=="string"?parseFloat(this.min):this.min;return this.valueAsNumber<=e}isIncrementDisabled(){if(this.disabled||this.readonly)return!0;if(this.max===void 0||this.max===null)return!1;let e=typeof this.max=="string"?parseFloat(this.max):this.max;return this.valueAsNumber>=e}handleStep(){this.handleInput(),this.input.focus()}handleStepUp(){this.stepUp(),this.handleStep()}handleStepDown(){this.stepDown(),this.handleStep()}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleStepChange(){this.input.step=String(this.step),this.formControlController.updateValidity()}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity()}handleSizeChange(){this.size=this.floatingLabel&&this.size==="sm"?"md":this.size}focus(e){this.input.focus(e)}blur(){this.input.blur()}select(){this.input.select()}setSelectionRange(e,l,u="none"){this.input.setSelectionRange(e,l,u)}setRangeText(e,l,u,p){this.input.setRangeText(e,l,u,p),this.value!==this.input.value&&(this.value=this.input.value)}showPicker(){"showPicker"in HTMLInputElement.prototype&&this.input.showPicker()}stepUp(){this.input.stepUp(),this.value!==this.input.value&&(this.value=this.input.value)}stepDown(){this.input.stepDown(),this.value!==this.input.value&&(this.value=this.input.value)}checkValidity(){var e;return(e=this.input)==null?void 0:e.checkValidity()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.input.reportValidity()}setCustomValidity(e){this.input.setCustomValidity(e),this.formControlController.updateValidity()}render(){let e={label:this.hasSlotController.test("label"),helpText:this.hasSlotController.test("help-text"),description:this.hasSlotController.test("description"),left:this.hasSlotController.test("left"),right:this.hasSlotController.test("right"),tooltip:this.hasSlotController.test("tooltip")},l=this.label?!0:!!e.label,u=this.helpText?!0:!!e.helpText,p=this.clearable&&!this.readonly&&(typeof this.value=="number"||this.value.length>0),O=!!e.tooltip,S=e.left,v=this.value!==null&&String(this.value).length>0,h=this.floatingLabel&&l&&(this.hasFocus||v||this.isClickableIconFocused),y=this.disabled?"disabled":this.visuallyDisabled&&!this.hasFocus?"visuallyDisabled":this.readonly?"readonly":this.hasFocus&&this.showInvalidStyle?"activeInvalid":this.hasFocus&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",g=this.size==="sm"?"text-sm":"text-base",U={disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",readonly:"form-control-color-border",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"form-control-color-border"}[y],c=this.disabled||this.visuallyDisabled?"text-neutral-500":"icon-color",d={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],o={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size],K=this.size==="lg"?this.floatingLabel?h?"py-3":"py-4":"py-2":this.floatingLabel?h?"py-2":"py-3":"py-1",q={sm:"left-[36px]",md:"left-[44px]",lg:"left-12"}[this.size];return r`<div part="form-control" class="${a((this.disabled||this.visuallyDisabled)&&"cursor-not-allowed")}">${(l||O)&&!this.floatingLabel?r`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${a(l?"inline-block":"hidden",g,this.visuallyDisabled||this.disabled?"text-neutral-500":" form-control-color-text")}" for="input" aria-hidden="${l?"false":"true"}"><slot name="label">${this.label}</slot></label> ${e.tooltip?r`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${a("relative w-full",this.disabled&&"pointer-events-none",this.visuallyDisabled&&"cursor-not-allowed")}"><div part="border" class="${a("absolute w-full h-full pointer-events-none border form-control-border-radius transition-[border] ease-in-out duration-medium hover:duration-fast",U)}"></div><div part="base" class="${a("px-4 flex flex-row items-center form-control-border-radius transition-colors ease-in-out duration-medium hover:duration-fast",this.floatingLabel&&"has-floating-label",!this.disabled&&!this.readonly&&!this.visuallyDisabled?"hover:[@media(hover:hover)]:form-control--hover-color-background":"",this.readonly?"form-control--read-only-color-background":"bg-white",["disabled","visuallyDisabled"].includes(y)?"text-neutral-500":"text-black",["invalid","activeInvalid"].includes(y)&&"form-control--invalid-color-background",K)}">${e.left?r`<slot name="left" part="left" class="${a("inline-flex",this.size==="sm"?"mr-1":"mr-2",c,o)}"></slot>`:""} <input part="input" id="input" class="${a("min-w-0 flex-grow focus:outline-none bg-transparent",this.visuallyDisabled||this.disabled?"placeholder:text-neutral-500 cursor-not-allowed":"placeholder:text-neutral-700",this.size==="sm"?h?"h-4":"h-6":h?"h-6":"h-8",g,h&&"leading-none mt-4")}" type="${this.type==="password"&&this.passwordVisible?"text":this.type}" title="${this.title}" name="${n(this.name)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${!this.floatingLabel||h?n(this.placeholder):""}" minlength="${n(this.minlength)}" maxlength="${n(this.maxlength)}" min="${n(this.min)}" max="${n(this.max)}" step="${n(this.step)}" .value="${B(this.value)}" autocapitalize="${n(this.type==="password"?"off":this.autocapitalize)}" autocomplete="${n(this.autocomplete)}" autocorrect="${n(this.type==="password"?"off":this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${this.spellcheck}" pattern="${n(this.pattern)}" enterkeyhint="${n(this.enterkeyhint)}" inputmode="${n(this.inputmode)}" aria-describedby="help-text invalid-message" aria-disabled="${this.visuallyDisabled||this.disabled?"true":"false"}" aria-invalid="${this.showInvalidStyle}" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @keydown="${this.handleKeyDown}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${l&&this.floatingLabel?r`<label part="form-control-floating-label" class="${a("pointer-events-none absolute",S?q:"left-4",!this.readonly&&"transition-all duration-medium ease-out",!h||!v&&(this.readonly||this.visuallyDisabled)?"top-1/2 -translate-y-1/2 form-control-color-text":this.size==="lg"?"top-2":"top-1")}" for="input" aria-hidden="${l?"false":"true"}"><span id="floating-label" class="${a("pointer-events-none leading-none",!this.readonly&&"transition-all duration-medium ease-out",!h||!v&&(this.readonly||this.visuallyDisabled)?g:"text-xs",(this.visuallyDisabled||this.disabled)&&"text-neutral-500",h&&!this.visuallyDisabled&&!this.disabled&&"form-control--filled__floating-label-color-text")}">${this.label}</span></label>`:null} ${p?r`<button part="clear-button" class="${a("flex justify-center",d)}" type="button" aria-label="${this.localize.term("clearEntry")}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-6-22-1-icon class="${a(this.disabled||this.visuallyDisabled?"text-neutral-500":"text-neutral-700",o)}" library="_internal" name="closing-round"></sd-6-22-1-icon></slot></button>`:""} ${this.passwordToggle&&this.type==="password"?r`<button aria-label="${this.localize.term(this.passwordVisible?"hidePassword":"showPassword")}" part="password-toggle-button" class="${a("flex items-center sd-interactive",d,this.floatingLabel&&!h&&"hide-password-toggle")}" type="button" @click="${this.handlePasswordToggle}" @mousedown="${this.handleClickableIconFocusIn}" @focus="${()=>this.handleClickableIconFocusIn()}" @blur="${this.handleClickableIconFocusOut}">${this.passwordVisible?r`<slot name="show-password-icon"><sd-6-22-1-icon class="${a(c,o)}" library="_internal" name="eye"></sd-6-22-1-icon></slot>`:r`<slot name="hide-password-icon"><sd-6-22-1-icon class="${a(c,o)}" library="_internal" name="eye-crossed-out"></sd-6-22-1-icon></slot>`}</button>`:""} ${(this.type==="date"||this.type==="datetime-local")&&!J?r`<sd-6-22-1-icon class="${a(c,d,o)}" library="_internal" name="calendar"></sd-6-22-1-icon>`:""} ${this.type==="time"?r`<sd-6-22-1-icon class="${a(c,d,o)}" library="_internal" name="clock"></sd-6-22-1-icon>`:""} ${this.type==="search"?r`<button class="${a("flex items-center sd-interactive",d)}" type="button" @click="${this.handleSearchClick}"><sd-6-22-1-icon class="${a(c,o)}" library="_internal" name="magnifying-glass" label="${this.localize.term("search")}"></sd-6-22-1-icon></button>`:""} ${this.showInvalidStyle?r`<sd-6-22-1-icon part="invalid-icon" class="${a("text-error",d,o)}" library="_internal" name="risk"></sd-6-22-1-icon>`:""} ${this.showValidStyle&&this.styleOnValid?r`<sd-6-22-1-icon class="${a("text-success flex-shrink-0",d,o)}" library="_internal" name="confirm-circle" part="valid-icon"></sd-6-22-1-icon>`:""} ${e.right?r`<slot name="right" part="right" class="${a("inline-flex",c,d,o)}"></slot>`:""} ${this.type==="number"&&this.spinButtons?r`<div part="stepper" class="flex items-center"><button part="decrement-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isDecrementDisabled()}" aria-hidden="true" ${C({start:()=>this.handleStepDown(),end:()=>this.handleChange()})} tabindex="-1" @mousedown="${this.handleClickableIconFocusIn}" @focus="${()=>this.handleClickableIconFocusIn()}" @blur="${this.handleClickableIconFocusOut}"><slot name="decrement-number-stepper"><sd-6-22-1-icon library="_internal" name="minus-circle" label="Decrease value" class="${a(c,d,o)}"></sd-6-22-1-icon></slot></button> <button part="increment-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isIncrementDisabled()}" aria-hidden="true" ${C({start:()=>this.handleStepUp(),end:()=>this.handleChange()})} tabindex="-1"><slot name="increment-number-stepper"><sd-6-22-1-icon library="_internal" name="plus-circle" label="Decrease value" class="${a(c,d,o)}"></sd-6-22-1-icon></slot></button></div>`:""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${a("text-sm mt-1",u&&!this.showInvalidStyle?"block":"hidden",this.visuallyDisabled||this.disabled?"text-neutral-500":"text-neutral-700")}" aria-hidden="${!u||this.showInvalidStyle}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage(this.size)}`}};t.styles=[...x.styles,D`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
- :host{position:relative;box-sizing:border-box;display:inline-block;width:100%;text-align:left}:host([vertical]){display:block}:host([required]) :is(#label,#floating-label)::after{content:' *'}:host([visually-disabled]) input{caret-color:transparent}details summary::-webkit-details-marker{display:none}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}input[type=time]::-webkit-calendar-picker-indicator{background:0 0;display:none;-webkit-appearance:none}details summary::-webkit-details-marker,input[type=date]::-webkit-calendar-picker-indicator,input[type=datetime-local]::-webkit-calendar-picker-indicator,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration{display:none}.stepper-button[disabled] sd-6-22-1-icon{color:rgba(var(--sd-color-text-neutral-500))}.hide-password-toggle{display:none}.has-floating-label input[type=date]:not(.has-value),.has-floating-label input[type=datetime-local]:not(.has-value),.has-floating-label input[type=time]:not(.has-value){color:transparent}.has-floating-label input[type=date]:focus,.has-floating-label input[type=datetime-local]:focus,.has-floating-label input[type=time]:focus{color:inherit}.icon-color{color:rgb(var(--sd-color-icon-fill-primary))}`],i([w("#input")],t.prototype,"input",2),i([w("#invalid-message")],t.prototype,"invalidMessage",2),i([m()],t.prototype,"hasFocus",2),i([m()],t.prototype,"showValidStyle",2),i([m()],t.prototype,"showInvalidStyle",2),i([m()],t.prototype,"isClickableIconFocused",2),i([s({type:String,reflect:!0})],t.prototype,"type",2),i([s({type:String,reflect:!0})],t.prototype,"size",2),i([s({type:String,reflect:!0})],t.prototype,"inputmode",2),i([s()],t.prototype,"value",2),i([A()],t.prototype,"defaultValue",2),i([s({type:String,reflect:!0})],t.prototype,"placeholder",2),i([s({type:String,reflect:!0})],t.prototype,"label",2),i([s({type:String,attribute:"help-text",reflect:!0})],t.prototype,"helpText",2),i([s({type:Boolean,reflect:!0})],t.prototype,"clearable",2),i([s({type:Boolean,reflect:!0})],t.prototype,"disabled",2),i([s({type:Boolean,reflect:!0,attribute:"visually-disabled"})],t.prototype,"visuallyDisabled",2),i([s({type:Boolean,reflect:!0})],t.prototype,"readonly",2),i([s({attribute:"password-toggle",type:Boolean,reflect:!0})],t.prototype,"passwordToggle",2),i([s({attribute:"password-visible",type:Boolean,reflect:!0})],t.prototype,"passwordVisible",2),i([s({attribute:"spin-buttons",type:Boolean,reflect:!0})],t.prototype,"spinButtons",2),i([s({type:Number,reflect:!0})],t.prototype,"minlength",2),i([s({type:Number,reflect:!0})],t.prototype,"maxlength",2),i([s({reflect:!0})],t.prototype,"min",2),i([s({reflect:!0})],t.prototype,"max",2),i([s({type:String,reflect:!0})],t.prototype,"form",2),i([s({type:String,reflect:!0})],t.prototype,"name",2),i([s({type:String,reflect:!0})],t.prototype,"title",2),i([s({type:Boolean,reflect:!0})],t.prototype,"required",2),i([s({attribute:"floating-label",type:Boolean,reflect:!0})],t.prototype,"floatingLabel",2),i([s()],t.prototype,"pattern",2),i([s({reflect:!0})],t.prototype,"step",2),i([s({type:String,reflect:!0})],t.prototype,"autocapitalize",2),i([s({type:String,reflect:!0})],t.prototype,"autocorrect",2),i([s({reflect:!0})],t.prototype,"autocomplete",2),i([s({type:Boolean,reflect:!0})],t.prototype,"autofocus",2),i([s({type:String,reflect:!0})],t.prototype,"enterkeyhint",2),i([s({type:Boolean,reflect:!0,attribute:"style-on-valid"})],t.prototype,"styleOnValid",2),i([s({type:Boolean,converter:{fromAttribute:e=>!(!e||e==="false"),toAttribute:e=>e?"true":"false"}})],t.prototype,"spellcheck",2),i([b("disabled",{waitUntilFirstUpdate:!0})],t.prototype,"handleDisabledChange",1),i([b("step",{waitUntilFirstUpdate:!0})],t.prototype,"handleStepChange",1),i([b("value",{waitUntilFirstUpdate:!0})],t.prototype,"handleValueChange",1),i([b(["size","floatingLabel"])],t.prototype,"handleSizeChange",1),t=i([E("sd-6-22-1-input")],t);export{t as a};
1
+ import{a as N}from"./chunk.ICEC5PGK.js";import{a as B}from"./chunk.SAEYIL5V.js";import{a as A}from"./chunk.ERP45OHF.js";import{b as z}from"./chunk.LZRL7OLU.js";import{a as n}from"./chunk.LHSR56PH.js";import{a as M}from"./chunk.CGQ2BPPZ.js";import{a as P,b as V}from"./chunk.QQD62QOV.js";import{a as T}from"./chunk.VAM5SM3O.js";import{a}from"./chunk.UFTAQNZB.js";import{a as b}from"./chunk.NYKJXI3Q.js";import{a as E,b as s,c as m,d as w,h as x}from"./chunk.MJMWCFYX.js";import{b as D,e as r,h as F,i as L}from"./chunk.OBAEIKIV.js";import{a as k,e as i}from"./chunk.6EV4YU6C.js";var $=class extends N{constructor(e){super(e);this.handlePointerDown=e=>{e.button!==0||this.host.disabled||this.spinOnLongPressCallback(e)};this.handlePointerUp=e=>{e==null||e.preventDefault(),e==null||e.stopPropagation(),this.timeout&&this.callbacks.start(),this.stopSpinningAndCleanUp(),this.callbacks.end(),document.removeEventListener("pointerup",this.handlePointerUp)};if(e.type!==P.ELEMENT||!(e.element instanceof HTMLButtonElement))throw new Error("The `longPress` directive must be used on an HTMLButtonElement.")}render(e){return L}update(e,[l]){return this.callbacks===void 0&&this.host===void 0&&(this.host=e.element,this.callbacks=k({},l),this.host.addEventListener("pointerdown",this.handlePointerDown)),F}disconnected(){this.stopSpinningAndCleanUp(),this.host.removeEventListener("pointerdown",this.handlePointerDown),document.removeEventListener("pointerup",this.handlePointerUp)}spinOnLongPressCallback(e){var l;e.preventDefault(),e.stopPropagation(),this.timeout=setTimeout(()=>{this.timeout=void 0,this.interval=setInterval(()=>{this.callbacks.start()},50)},500),document.addEventListener("pointerup",this.handlePointerUp),(l=this.observer)==null||l.disconnect(),this.observer=new MutationObserver(u=>{u.forEach(p=>{p.attributeName==="disabled"&&this.stopSpinningAndCleanUp()})}),this.observer.observe(this.host,{attributes:!0})}stopSpinningAndCleanUp(){var e;clearInterval(this.interval),clearTimeout(this.timeout),(e=this.observer)==null||e.disconnect()}},C=V($);var _,R=(_=navigator.userAgentData)==null?void 0:_.brands.some(f=>f.brand.includes("Chromium")),J=R?!1:navigator.userAgent.includes("Firefox"),t=class extends x{constructor(){super(...arguments);this.formControlController=new z(this);this.hasSlotController=new M(this,"help-text","label","left","right","message","placeholder");this.localize=new T(this);this.hasFocus=!1;this.showValidStyle=!1;this.showInvalidStyle=!1;this.isClickableIconFocused=!1;this.type="text";this.size="lg";this.value="";this.defaultValue="";this.placeholder="";this.label="";this.helpText="";this.clearable=!1;this.disabled=!1;this.visuallyDisabled=!1;this.readonly=!1;this.passwordToggle=!1;this.passwordVisible=!1;this.spinButtons=!1;this.form="";this.name="";this.title="";this.required=!1;this.floatingLabel=!1;this.styleOnValid=!1;this.spellcheck=!0}get valueAsDate(){var e,l;return(l=(e=this.input)==null?void 0:e.valueAsDate)!=null?l:null}set valueAsDate(e){let l=document.createElement("input");l.type="date",l.valueAsDate=e,this.value=l.value}get valueAsNumber(){var e,l;return(l=(e=this.input)==null?void 0:e.valueAsNumber)!=null?l:parseFloat(this.value)}set valueAsNumber(e){let l=document.createElement("input");l.type="number",l.valueAsNumber=e,this.value=l.value}get validity(){return this.input.validity}firstUpdated(){this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleChange(){this.value=this.input.value,this.emit("sd-change")}handleClearClick(e){this.value="",this.emit("sd-clear"),this.emit("sd-input"),this.emit("sd-change"),this.input.focus(),e.stopPropagation()}handleSearchClick(e){this.emit("sd-search"),e.stopPropagation()}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleInput(){if(this.visuallyDisabled){this.input.value=this.value;return}this.value=this.input.value,this.formControlController.updateValidity(),this.emit("sd-input")}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e),this.invalidMessage.textContent=e.target.validationMessage}handleKeyDown(e){let l=e.metaKey||e.ctrlKey||e.shiftKey||e.altKey;e.key==="Enter"&&!l&&setTimeout(()=>{!e.defaultPrevented&&!e.isComposing&&this.formControlController.submit()})}handlePasswordToggle(){this.passwordVisible=!this.passwordVisible}handleClickableIconFocusIn(){this.isClickableIconFocused=!0}handleClickableIconFocusOut(){this.isClickableIconFocused=!1}isDecrementDisabled(){if(this.disabled||this.readonly)return!0;if(this.min===void 0||this.min===null)return!1;let e=typeof this.min=="string"?parseFloat(this.min):this.min;return this.valueAsNumber<=e}isIncrementDisabled(){if(this.disabled||this.readonly)return!0;if(this.max===void 0||this.max===null)return!1;let e=typeof this.max=="string"?parseFloat(this.max):this.max;return this.valueAsNumber>=e}handleStep(){this.handleInput(),this.input.focus()}handleStepUp(){this.stepUp(),this.handleStep()}handleStepDown(){this.stepDown(),this.handleStep()}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleStepChange(){this.input.step=String(this.step),this.formControlController.updateValidity()}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity()}handleSizeChange(){this.size=this.floatingLabel&&this.size==="sm"?"md":this.size}focus(e){this.input.focus(e)}blur(){this.input.blur()}select(){this.input.select()}setSelectionRange(e,l,u="none"){this.input.setSelectionRange(e,l,u)}setRangeText(e,l,u,p){this.input.setRangeText(e,l,u,p),this.value!==this.input.value&&(this.value=this.input.value)}showPicker(){"showPicker"in HTMLInputElement.prototype&&this.input.showPicker()}stepUp(){this.input.stepUp(),this.value!==this.input.value&&(this.value=this.input.value)}stepDown(){this.input.stepDown(),this.value!==this.input.value&&(this.value=this.input.value)}checkValidity(){var e;return(e=this.input)==null?void 0:e.checkValidity()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.input.reportValidity()}setCustomValidity(e){this.input.setCustomValidity(e),this.formControlController.updateValidity()}render(){let e={label:this.hasSlotController.test("label"),helpText:this.hasSlotController.test("help-text"),description:this.hasSlotController.test("description"),left:this.hasSlotController.test("left"),right:this.hasSlotController.test("right"),tooltip:this.hasSlotController.test("tooltip")},l=this.label?!0:!!e.label,u=this.helpText?!0:!!e.helpText,p=this.clearable&&!this.readonly&&(typeof this.value=="number"||this.value.length>0),O=!!e.tooltip,S=e.left,v=this.value!==null&&String(this.value).length>0,h=this.floatingLabel&&l&&(this.hasFocus||v||this.isClickableIconFocused),y=this.disabled?"disabled":this.visuallyDisabled&&!this.hasFocus?"visuallyDisabled":this.readonly?"readonly":this.hasFocus&&this.showInvalidStyle?"activeInvalid":this.hasFocus&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",g=this.size==="sm"?"text-sm":"text-base",U={disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",readonly:"form-control-color-border",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"form-control-color-border"}[y],c=this.disabled||this.visuallyDisabled?"text-neutral-500":"icon-color",d={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],o={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size],K=this.size==="lg"?this.floatingLabel?h?"py-3":"py-4":"py-2":this.floatingLabel?h?"py-2":"py-3":"py-1",q={sm:"left-[36px]",md:"left-[44px]",lg:"left-12"}[this.size];return r`<div part="form-control" class="${a((this.disabled||this.visuallyDisabled)&&"cursor-not-allowed")}">${(l||O)&&!this.floatingLabel?r`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${a(l?"inline-block":"hidden",g,this.visuallyDisabled||this.disabled?"text-neutral-500":" form-control-color-text")}" for="input" aria-hidden="${l?"false":"true"}"><slot name="label">${this.label}</slot></label> ${e.tooltip?r`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${a("relative w-full",this.disabled&&"pointer-events-none",this.visuallyDisabled&&"cursor-not-allowed")}"><div part="border" class="${a("absolute w-full h-full pointer-events-none border form-control-border-radius transition-[border] ease-in-out duration-medium hover:duration-fast",U)}"></div><div part="base" class="${a("px-4 flex flex-row items-center form-control-border-radius transition-colors ease-in-out duration-medium hover:duration-fast",this.floatingLabel&&"has-floating-label",!this.disabled&&!this.readonly&&!this.visuallyDisabled?"hover:[@media(hover:hover)]:form-control--hover-color-background":"",this.readonly?"form-control--read-only-color-background":"bg-white",["disabled","visuallyDisabled"].includes(y)?"text-neutral-500":"text-black",["invalid","activeInvalid"].includes(y)&&"form-control--invalid-color-background",K)}">${e.left?r`<slot name="left" part="left" class="${a("inline-flex",this.size==="sm"?"mr-1":"mr-2",c,o)}"></slot>`:""} <input part="input" id="input" class="${a("min-w-0 flex-grow focus:outline-none bg-transparent",this.visuallyDisabled||this.disabled?"placeholder:text-neutral-500 cursor-not-allowed":"placeholder:text-neutral-700",this.size==="sm"?h?"h-4":"h-6":h?"h-6":"h-8",g,h&&"leading-none mt-4")}" type="${this.type==="password"&&this.passwordVisible?"text":this.type}" title="${this.title}" name="${n(this.name)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${!this.floatingLabel||h?n(this.placeholder):""}" minlength="${n(this.minlength)}" maxlength="${n(this.maxlength)}" min="${n(this.min)}" max="${n(this.max)}" step="${n(this.step)}" .value="${B(this.value)}" autocapitalize="${n(this.type==="password"?"off":this.autocapitalize)}" autocomplete="${n(this.autocomplete)}" autocorrect="${n(this.type==="password"?"off":this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${this.spellcheck}" pattern="${n(this.pattern)}" enterkeyhint="${n(this.enterkeyhint)}" inputmode="${n(this.inputmode)}" aria-describedby="help-text invalid-message" aria-disabled="${this.visuallyDisabled||this.disabled?"true":"false"}" aria-invalid="${this.showInvalidStyle}" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @keydown="${this.handleKeyDown}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${l&&this.floatingLabel?r`<label part="form-control-floating-label" class="${a("pointer-events-none absolute",S?q:"left-4",!this.readonly&&"transition-all duration-medium ease-out",!h||!v&&(this.readonly||this.visuallyDisabled)?"top-1/2 -translate-y-1/2 form-control-color-text":this.size==="lg"?"top-2":"top-1")}" for="input" aria-hidden="${l?"false":"true"}"><span id="floating-label" class="${a("pointer-events-none leading-none",!this.readonly&&"transition-all duration-medium ease-out",!h||!v&&(this.readonly||this.visuallyDisabled)?g:"text-xs",(this.visuallyDisabled||this.disabled)&&"text-neutral-500",h&&!this.visuallyDisabled&&!this.disabled&&"form-control--filled__floating-label-color-text")}">${this.label}</span></label>`:null} ${p?r`<button part="clear-button" class="${a("flex justify-center",d)}" type="button" aria-label="${this.localize.term("clearEntry")}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-6-22-2-icon class="${a(this.disabled||this.visuallyDisabled?"text-neutral-500":"text-neutral-700",o)}" library="_internal" name="closing-round"></sd-6-22-2-icon></slot></button>`:""} ${this.passwordToggle&&this.type==="password"?r`<button aria-label="${this.localize.term(this.passwordVisible?"hidePassword":"showPassword")}" part="password-toggle-button" class="${a("flex items-center sd-interactive",d,this.floatingLabel&&!h&&"hide-password-toggle")}" type="button" @click="${this.handlePasswordToggle}" @mousedown="${this.handleClickableIconFocusIn}" @focus="${()=>this.handleClickableIconFocusIn()}" @blur="${this.handleClickableIconFocusOut}">${this.passwordVisible?r`<slot name="show-password-icon"><sd-6-22-2-icon class="${a(c,o)}" library="_internal" name="eye"></sd-6-22-2-icon></slot>`:r`<slot name="hide-password-icon"><sd-6-22-2-icon class="${a(c,o)}" library="_internal" name="eye-crossed-out"></sd-6-22-2-icon></slot>`}</button>`:""} ${(this.type==="date"||this.type==="datetime-local")&&!J?r`<sd-6-22-2-icon class="${a(c,d,o)}" library="_internal" name="calendar"></sd-6-22-2-icon>`:""} ${this.type==="time"?r`<sd-6-22-2-icon class="${a(c,d,o)}" library="_internal" name="clock"></sd-6-22-2-icon>`:""} ${this.type==="search"?r`<button class="${a("flex items-center sd-interactive",d)}" type="button" @click="${this.handleSearchClick}"><sd-6-22-2-icon class="${a(c,o)}" library="_internal" name="magnifying-glass" label="${this.localize.term("search")}"></sd-6-22-2-icon></button>`:""} ${this.showInvalidStyle?r`<sd-6-22-2-icon part="invalid-icon" class="${a("text-error",d,o)}" library="_internal" name="risk"></sd-6-22-2-icon>`:""} ${this.showValidStyle&&this.styleOnValid?r`<sd-6-22-2-icon class="${a("text-success flex-shrink-0",d,o)}" library="_internal" name="confirm-circle" part="valid-icon"></sd-6-22-2-icon>`:""} ${e.right?r`<slot name="right" part="right" class="${a("inline-flex",c,d,o)}"></slot>`:""} ${this.type==="number"&&this.spinButtons?r`<div part="stepper" class="flex items-center"><button part="decrement-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isDecrementDisabled()}" aria-hidden="true" ${C({start:()=>this.handleStepDown(),end:()=>this.handleChange()})} tabindex="-1" @mousedown="${this.handleClickableIconFocusIn}" @focus="${()=>this.handleClickableIconFocusIn()}" @blur="${this.handleClickableIconFocusOut}"><slot name="decrement-number-stepper"><sd-6-22-2-icon library="_internal" name="minus-circle" label="Decrease value" class="${a(c,d,o)}"></sd-6-22-2-icon></slot></button> <button part="increment-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isIncrementDisabled()}" aria-hidden="true" ${C({start:()=>this.handleStepUp(),end:()=>this.handleChange()})} tabindex="-1"><slot name="increment-number-stepper"><sd-6-22-2-icon library="_internal" name="plus-circle" label="Decrease value" class="${a(c,d,o)}"></sd-6-22-2-icon></slot></button></div>`:""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${a("text-sm mt-1",u&&!this.showInvalidStyle?"block":"hidden",this.visuallyDisabled||this.disabled?"text-neutral-500":"text-neutral-700")}" aria-hidden="${!u||this.showInvalidStyle}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage(this.size)}`}};t.styles=[...x.styles,D`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
+ :host{position:relative;box-sizing:border-box;display:inline-block;width:100%;text-align:left}:host([vertical]){display:block}:host([required]) :is(#label,#floating-label)::after{content:' *'}:host([visually-disabled]) input{caret-color:transparent}details summary::-webkit-details-marker{display:none}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}input[type=time]::-webkit-calendar-picker-indicator{background:0 0;display:none;-webkit-appearance:none}details summary::-webkit-details-marker,input[type=date]::-webkit-calendar-picker-indicator,input[type=datetime-local]::-webkit-calendar-picker-indicator,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration{display:none}.stepper-button[disabled] sd-6-22-2-icon{color:rgba(var(--sd-color-text-neutral-500))}.hide-password-toggle{display:none}.has-floating-label input[type=date]:not(.has-value),.has-floating-label input[type=datetime-local]:not(.has-value),.has-floating-label input[type=time]:not(.has-value){color:transparent}.has-floating-label input[type=date]:focus,.has-floating-label input[type=datetime-local]:focus,.has-floating-label input[type=time]:focus{color:inherit}.icon-color{color:rgb(var(--sd-color-icon-fill-primary))}`],i([w("#input")],t.prototype,"input",2),i([w("#invalid-message")],t.prototype,"invalidMessage",2),i([m()],t.prototype,"hasFocus",2),i([m()],t.prototype,"showValidStyle",2),i([m()],t.prototype,"showInvalidStyle",2),i([m()],t.prototype,"isClickableIconFocused",2),i([s({type:String,reflect:!0})],t.prototype,"type",2),i([s({type:String,reflect:!0})],t.prototype,"size",2),i([s({type:String,reflect:!0})],t.prototype,"inputmode",2),i([s()],t.prototype,"value",2),i([A()],t.prototype,"defaultValue",2),i([s({type:String,reflect:!0})],t.prototype,"placeholder",2),i([s({type:String,reflect:!0})],t.prototype,"label",2),i([s({type:String,attribute:"help-text",reflect:!0})],t.prototype,"helpText",2),i([s({type:Boolean,reflect:!0})],t.prototype,"clearable",2),i([s({type:Boolean,reflect:!0})],t.prototype,"disabled",2),i([s({type:Boolean,reflect:!0,attribute:"visually-disabled"})],t.prototype,"visuallyDisabled",2),i([s({type:Boolean,reflect:!0})],t.prototype,"readonly",2),i([s({attribute:"password-toggle",type:Boolean,reflect:!0})],t.prototype,"passwordToggle",2),i([s({attribute:"password-visible",type:Boolean,reflect:!0})],t.prototype,"passwordVisible",2),i([s({attribute:"spin-buttons",type:Boolean,reflect:!0})],t.prototype,"spinButtons",2),i([s({type:Number,reflect:!0})],t.prototype,"minlength",2),i([s({type:Number,reflect:!0})],t.prototype,"maxlength",2),i([s({reflect:!0})],t.prototype,"min",2),i([s({reflect:!0})],t.prototype,"max",2),i([s({type:String,reflect:!0})],t.prototype,"form",2),i([s({type:String,reflect:!0})],t.prototype,"name",2),i([s({type:String,reflect:!0})],t.prototype,"title",2),i([s({type:Boolean,reflect:!0})],t.prototype,"required",2),i([s({attribute:"floating-label",type:Boolean,reflect:!0})],t.prototype,"floatingLabel",2),i([s()],t.prototype,"pattern",2),i([s({reflect:!0})],t.prototype,"step",2),i([s({type:String,reflect:!0})],t.prototype,"autocapitalize",2),i([s({type:String,reflect:!0})],t.prototype,"autocorrect",2),i([s({reflect:!0})],t.prototype,"autocomplete",2),i([s({type:Boolean,reflect:!0})],t.prototype,"autofocus",2),i([s({type:String,reflect:!0})],t.prototype,"enterkeyhint",2),i([s({type:Boolean,reflect:!0,attribute:"style-on-valid"})],t.prototype,"styleOnValid",2),i([s({type:Boolean,converter:{fromAttribute:e=>!(!e||e==="false"),toAttribute:e=>e?"true":"false"}})],t.prototype,"spellcheck",2),i([b("disabled",{waitUntilFirstUpdate:!0})],t.prototype,"handleDisabledChange",1),i([b("step",{waitUntilFirstUpdate:!0})],t.prototype,"handleStepChange",1),i([b("value",{waitUntilFirstUpdate:!0})],t.prototype,"handleValueChange",1),i([b(["size","floatingLabel"])],t.prototype,"handleSizeChange",1),t=i([E("sd-6-22-2-input")],t);export{t as a};
@@ -1,4 +1,4 @@
1
- import{a as v}from"./chunk.SAEYIL5V.js";import{a as b}from"./chunk.ERP45OHF.js";import{b as u}from"./chunk.LZRL7OLU.js";import{a as m}from"./chunk.LHSR56PH.js";import{a as p}from"./chunk.CGQ2BPPZ.js";import{a as i}from"./chunk.UFTAQNZB.js";import{a}from"./chunk.NYKJXI3Q.js";import{a as c,b as o,c as h,d as s,h as n}from"./chunk.XJAJO727.js";import{b as d,e as l}from"./chunk.OBAEIKIV.js";import{e as t}from"./chunk.6EV4YU6C.js";var e=class extends n{constructor(){super(...arguments);this.hasSlotController=new p(this,"tooltip");this.formControlController=new u(this,{value:r=>r.checked?r.value||"on":void 0,defaultValue:r=>r.defaultChecked,setValue:(r,f)=>r.checked=f});this.showInvalidStyle=!1;this.title="";this.name="";this.disabled=!1;this.checked=!1;this.defaultChecked=!1;this.form="";this.required=!1}get validity(){return this.input.validity}firstUpdated(){this.formControlController.updateValidity()}handleClick(){this.checked=!this.checked,this.emit("sd-change")}handleBlur(){this.emit("sd-blur")}handleInput(){this.emit("sd-input")}handleInvalid(r){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(r),this.invalidMessage.textContent=r.target.validationMessage}handleFocus(){this.emit("sd-focus")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false"),this.formControlController.setValidity(this.disabled)}handleStateChange(){this.input.checked=this.checked,this.formControlController.updateValidity()}click(){this.input.click()}focus(r){this.input.focus(r)}blur(){this.input.blur()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(r){this.input.setCustomValidity(r),this.formControlController.updateValidity()}render(){return l`<div class="flex flex-row items-center gap-2"><label part="base" class="${i("group flex items-center text-base leading-normal text-black cursor-pointer",this.disabled&&"hover:cursor-not-allowed")}"><input id="input" class="peer absolute opacity-0 p-0 m-0 pointer-events-none" type="checkbox" role="switch" title="${this.title}" name="${this.name}" value="${m(this.value)}" .checked="${v(this.checked)}" .disabled="${this.disabled}" .required="${this.required}" aria-checked="${this.checked?"true":"false"}" aria-invalid="${this.showInvalidStyle}" aria-describedby="invalid-message" @click="${this.handleClick}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @blur="${this.handleBlur}" @focus="${this.handleFocus}"> <span id="control" part="control ${this.checked?" control--checked":"control--unchecked"}" class="${i(`relative flex flex-initial items-center justify-center sd-6-22-1-switch-border-width rounded-full h-4 w-8 transition-colors ease duration-100
1
+ import{a as v}from"./chunk.SAEYIL5V.js";import{a as b}from"./chunk.ERP45OHF.js";import{b as u}from"./chunk.LZRL7OLU.js";import{a as m}from"./chunk.LHSR56PH.js";import{a as p}from"./chunk.CGQ2BPPZ.js";import{a as i}from"./chunk.UFTAQNZB.js";import{a}from"./chunk.NYKJXI3Q.js";import{a as c,b as o,c as h,d as s,h as n}from"./chunk.MJMWCFYX.js";import{b as d,e as l}from"./chunk.OBAEIKIV.js";import{e as t}from"./chunk.6EV4YU6C.js";var e=class extends n{constructor(){super(...arguments);this.hasSlotController=new p(this,"tooltip");this.formControlController=new u(this,{value:r=>r.checked?r.value||"on":void 0,defaultValue:r=>r.defaultChecked,setValue:(r,f)=>r.checked=f});this.showInvalidStyle=!1;this.title="";this.name="";this.disabled=!1;this.checked=!1;this.defaultChecked=!1;this.form="";this.required=!1}get validity(){return this.input.validity}firstUpdated(){this.formControlController.updateValidity()}handleClick(){this.checked=!this.checked,this.emit("sd-change")}handleBlur(){this.emit("sd-blur")}handleInput(){this.emit("sd-input")}handleInvalid(r){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(r),this.invalidMessage.textContent=r.target.validationMessage}handleFocus(){this.emit("sd-focus")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false"),this.formControlController.setValidity(this.disabled)}handleStateChange(){this.input.checked=this.checked,this.formControlController.updateValidity()}click(){this.input.click()}focus(r){this.input.focus(r)}blur(){this.input.blur()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(r){this.input.setCustomValidity(r),this.formControlController.updateValidity()}render(){return l`<div class="flex flex-row items-center gap-2"><label part="base" class="${i("group flex items-center text-base leading-normal text-black cursor-pointer",this.disabled&&"hover:cursor-not-allowed")}"><input id="input" class="peer absolute opacity-0 p-0 m-0 pointer-events-none" type="checkbox" role="switch" title="${this.title}" name="${this.name}" value="${m(this.value)}" .checked="${v(this.checked)}" .disabled="${this.disabled}" .required="${this.required}" aria-checked="${this.checked?"true":"false"}" aria-invalid="${this.showInvalidStyle}" aria-describedby="invalid-message" @click="${this.handleClick}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @blur="${this.handleBlur}" @focus="${this.handleFocus}"> <span id="control" part="control ${this.checked?" control--checked":"control--unchecked"}" class="${i(`relative flex flex-initial items-center justify-center sd-6-22-2-switch-border-width rounded-full h-4 w-8 transition-colors ease duration-100
2
2
  peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2
3
- peer-focus-visible:outline-primary outline-transparent transition-colors ease-in-out duration-medium hover:duration-fast`,this.disabled&&this.checked?"bg-neutral-500":this.disabled?"border-neutral-500":this.showInvalidStyle?this.checked?"border-error bg-error hover:bg-error-400 hover:border-error-400 group-hover:border-error-400 group-hover:bg-error-400":"border-error bg-white hover:border-error-400 hover:bg-white group-hover:border-error-400 group-hover:bg-white":this.checked?"border-accent hover:sd-6-22-1-switch--checked--hover-color-background bg-accent hover:border-accent-550 group-hover:border-accent-550 group-hover:sd-6-22-1-switch--checked--hover-color-background":"sd-6-22-1-switch--unchecked-color-border bg-white hover:sd-6-22-1-switch--unchecked--hover-color-background group-hover:sd-6-22-1-switch--unchecked--hover-color-background")}"><span id="thumb" part="thumb" class="${i("w-2.5 h-2.5 rounded-full transition[transform,colors] ease-in-out duration-medium",this.disabled&&this.checked?"translate-x-2":this.disabled?"-translate-x-2":this.showInvalidStyle?this.checked?"translate-x-2":"bg-error -translate-x-2 hover:bg-error-400 hover:border-error-400 group-hover:border-error-400 group-hover:bg-error-400":this.checked?"translate-x-2":"-translate-x-2 sd-6-22-1-switch--unchecked__icon-color-background")}"></span> </span><span part="label" id="label" class="${i("select-none inline-block ml-2",this.disabled?"text-neutral-500":"sd-6-22-1-switch-color-text")}"><slot></slot></span></label> ${this.hasSlotController.test("tooltip")?l`<slot name="tooltip"></slot>`:null}</div><div part="invalid-icon-message" class="flex items-center gap-2 mt-2">${this.showInvalidStyle?l`<sd-6-22-1-icon part="invalid-icon" class="${i("text-error")}" library="_internal" name="risk"></sd-6-22-1-icon>`:""} ${this.formControlController.renderInvalidMessage("lg")}</div>`}};e.styles=[...n.styles,d`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
4
- :host{display:block;width:-moz-max-content;width:max-content}:host(:focus-visible){--tw-outline-style:none;outline-style:none}:host([required]) #label::after{content:' *'}:host([disabled][checked]) #control{border-color:rgba(var(--sd-color-background-neutral-500,rgba(var(--sd-color-neutral-500))))}:host([checked]) [part=thumb]{background-color:rgba(var(--sd-color-icon-fill-white,rgba(var(--sd-color-white))))}:host([disabled]:not([checked])) [part=thumb]{background-color:rgba(var(--sd-color-icon-fill-neutral-500,rgba(var(--sd-color-neutral-500))))}`],t([s("input")],e.prototype,"input",2),t([s("#invalid-message")],e.prototype,"invalidMessage",2),t([h()],e.prototype,"showInvalidStyle",2),t([o({type:String,reflect:!0})],e.prototype,"title",2),t([o({type:String,reflect:!0})],e.prototype,"name",2),t([o()],e.prototype,"value",2),t([o({type:Boolean,reflect:!0})],e.prototype,"disabled",2),t([o({type:Boolean,reflect:!0})],e.prototype,"checked",2),t([b("checked")],e.prototype,"defaultChecked",2),t([o({reflect:!0})],e.prototype,"form",2),t([o({type:Boolean,reflect:!0})],e.prototype,"required",2),t([a("disabled",{waitUntilFirstUpdate:!0})],e.prototype,"handleDisabledChange",1),t([a(["checked"],{waitUntilFirstUpdate:!0})],e.prototype,"handleStateChange",1),e=t([c("sd-6-22-1-switch")],e);export{e as a};
3
+ peer-focus-visible:outline-primary outline-transparent transition-colors ease-in-out duration-medium hover:duration-fast`,this.disabled&&this.checked?"bg-neutral-500":this.disabled?"border-neutral-500":this.showInvalidStyle?this.checked?"border-error bg-error hover:bg-error-400 hover:border-error-400 group-hover:border-error-400 group-hover:bg-error-400":"border-error bg-white hover:border-error-400 hover:bg-white group-hover:border-error-400 group-hover:bg-white":this.checked?"border-accent hover:sd-6-22-2-switch--checked--hover-color-background bg-accent hover:border-accent-550 group-hover:border-accent-550 group-hover:sd-6-22-2-switch--checked--hover-color-background":"sd-6-22-2-switch--unchecked-color-border bg-white hover:sd-6-22-2-switch--unchecked--hover-color-background group-hover:sd-6-22-2-switch--unchecked--hover-color-background")}"><span id="thumb" part="thumb" class="${i("w-2.5 h-2.5 rounded-full transition[transform,colors] ease-in-out duration-medium",this.disabled&&this.checked?"translate-x-2":this.disabled?"-translate-x-2":this.showInvalidStyle?this.checked?"translate-x-2":"bg-error -translate-x-2 hover:bg-error-400 hover:border-error-400 group-hover:border-error-400 group-hover:bg-error-400":this.checked?"translate-x-2":"-translate-x-2 sd-6-22-2-switch--unchecked__icon-color-background")}"></span> </span><span part="label" id="label" class="${i("select-none inline-block ml-2",this.disabled?"text-neutral-500":"sd-6-22-2-switch-color-text")}"><slot></slot></span></label> ${this.hasSlotController.test("tooltip")?l`<slot name="tooltip"></slot>`:null}</div><div part="invalid-icon-message" class="flex items-center gap-2 mt-2">${this.showInvalidStyle?l`<sd-6-22-2-icon part="invalid-icon" class="${i("text-error")}" library="_internal" name="risk"></sd-6-22-2-icon>`:""} ${this.formControlController.renderInvalidMessage("lg")}</div>`}};e.styles=[...n.styles,d`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
4
+ :host{display:block;width:-moz-max-content;width:max-content}:host(:focus-visible){--tw-outline-style:none;outline-style:none}:host([required]) #label::after{content:' *'}:host([disabled][checked]) #control{border-color:rgba(var(--sd-color-background-neutral-500,rgba(var(--sd-color-neutral-500))))}:host([checked]) [part=thumb]{background-color:rgba(var(--sd-color-icon-fill-white,rgba(var(--sd-color-white))))}:host([disabled]:not([checked])) [part=thumb]{background-color:rgba(var(--sd-color-icon-fill-neutral-500,rgba(var(--sd-color-neutral-500))))}`],t([s("input")],e.prototype,"input",2),t([s("#invalid-message")],e.prototype,"invalidMessage",2),t([h()],e.prototype,"showInvalidStyle",2),t([o({type:String,reflect:!0})],e.prototype,"title",2),t([o({type:String,reflect:!0})],e.prototype,"name",2),t([o()],e.prototype,"value",2),t([o({type:Boolean,reflect:!0})],e.prototype,"disabled",2),t([o({type:Boolean,reflect:!0})],e.prototype,"checked",2),t([b("checked")],e.prototype,"defaultChecked",2),t([o({reflect:!0})],e.prototype,"form",2),t([o({type:Boolean,reflect:!0})],e.prototype,"required",2),t([a("disabled",{waitUntilFirstUpdate:!0})],e.prototype,"handleDisabledChange",1),t([a(["checked"],{waitUntilFirstUpdate:!0})],e.prototype,"handleStateChange",1),e=t([c("sd-6-22-2-switch")],e);export{e as a};
@@ -1,2 +1,2 @@
1
- import{a as m,b as g,c as b,d as h,h as u}from"./chunk.XJAJO727.js";import{b as d,e as c}from"./chunk.OBAEIKIV.js";import{e as l}from"./chunk.6EV4YU6C.js";var s=class extends u{constructor(){super(...arguments);this.disableRole=!1;this.label=""}handleFocus(e){let t=a(e.target);t==null||t.classList.add("sd-6-22-1-button-group__button--focus")}handleBlur(e){let t=a(e.target);t==null||t.classList.remove("sd-6-22-1-button-group__button--focus")}handleMouseOver(e){let t=a(e.target);t==null||t.classList.add("sd-6-22-1-button-group__button--hover")}handleMouseOut(e){let t=a(e.target);t==null||t.classList.remove("sd-6-22-1-button-group__button--hover")}handleSlotChange(){let e=[...this.defaultSlot.assignedElements({flatten:!0})];e.forEach(t=>{let n=e.indexOf(t),o=a(t);o!==null&&(o.classList.add("sd-6-22-1-button-group__button"),o.classList.toggle("sd-6-22-1-button-group__button--first",n===0),o.classList.toggle("sd-6-22-1-button-group__button--inner",n>0&&n<e.length-1),o.classList.toggle("sd-6-22-1-button-group__button--last",n===e.length-1),o.classList.toggle("sd-6-22-1-button-group__button--radio",o.tagName.toLowerCase()==="sd-6-22-1-radio-button"))})}render(){return c`<slot part="base" role="${this.disableRole?"presentation":"group"}" aria-label="${this.label}" @focusout="${this.handleBlur}" @focusin="${this.handleFocus}" @mouseover="${this.handleMouseOver}" @mouseout="${this.handleMouseOut}" @slotchange="${this.handleSlotChange}"></slot>`}};s.styles=[...u.styles,d`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
- :host{display:inline-block}[part=base]{display:flex;flex-wrap:nowrap}`],l([h("slot")],s.prototype,"defaultSlot",2),l([b()],s.prototype,"disableRole",2),l([g({type:String,reflect:!0})],s.prototype,"label",2),s=l([m("sd-6-22-1-button-group")],s);function a(r){var e;let i="sd-6-22-1-button, sd-6-22-1-radio-button";return(e=r.closest(i))!=null?e:r.querySelector(i)}export{s as a};
1
+ import{a as m,b as g,c as b,d as h,h as u}from"./chunk.MJMWCFYX.js";import{b as d,e as c}from"./chunk.OBAEIKIV.js";import{e as l}from"./chunk.6EV4YU6C.js";var s=class extends u{constructor(){super(...arguments);this.disableRole=!1;this.label=""}handleFocus(e){let t=a(e.target);t==null||t.classList.add("sd-6-22-2-button-group__button--focus")}handleBlur(e){let t=a(e.target);t==null||t.classList.remove("sd-6-22-2-button-group__button--focus")}handleMouseOver(e){let t=a(e.target);t==null||t.classList.add("sd-6-22-2-button-group__button--hover")}handleMouseOut(e){let t=a(e.target);t==null||t.classList.remove("sd-6-22-2-button-group__button--hover")}handleSlotChange(){let e=[...this.defaultSlot.assignedElements({flatten:!0})];e.forEach(t=>{let n=e.indexOf(t),o=a(t);o!==null&&(o.classList.add("sd-6-22-2-button-group__button"),o.classList.toggle("sd-6-22-2-button-group__button--first",n===0),o.classList.toggle("sd-6-22-2-button-group__button--inner",n>0&&n<e.length-1),o.classList.toggle("sd-6-22-2-button-group__button--last",n===e.length-1),o.classList.toggle("sd-6-22-2-button-group__button--radio",o.tagName.toLowerCase()==="sd-6-22-2-radio-button"))})}render(){return c`<slot part="base" role="${this.disableRole?"presentation":"group"}" aria-label="${this.label}" @focusout="${this.handleBlur}" @focusin="${this.handleFocus}" @mouseover="${this.handleMouseOver}" @mouseout="${this.handleMouseOut}" @slotchange="${this.handleSlotChange}"></slot>`}};s.styles=[...u.styles,d`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
+ :host{display:inline-block}[part=base]{display:flex;flex-wrap:nowrap}`],l([h("slot")],s.prototype,"defaultSlot",2),l([b()],s.prototype,"disableRole",2),l([g({type:String,reflect:!0})],s.prototype,"label",2),s=l([m("sd-6-22-2-button-group")],s);function a(r){var e;let i="sd-6-22-2-button, sd-6-22-2-radio-button";return(e=r.closest(i))!=null?e:r.querySelector(i)}export{s as a};
@@ -1,2 +1,2 @@
1
- import{a as d}from"./chunk.SAEYIL5V.js";import{a as b}from"./chunk.ERP45OHF.js";import{b as m}from"./chunk.LZRL7OLU.js";import{a as p}from"./chunk.LHSR56PH.js";import{a as l}from"./chunk.UFTAQNZB.js";import{a as n}from"./chunk.NYKJXI3Q.js";import{a as u,b as r,c as h,d as a,h as o}from"./chunk.XJAJO727.js";import{b as c,e as s}from"./chunk.OBAEIKIV.js";import{e as i}from"./chunk.6EV4YU6C.js";var t=class extends o{constructor(){super(...arguments);this.formControlController=new m(this,{value:e=>e.checked?e.value||"on":void 0,defaultValue:e=>e.defaultChecked,setValue:(e,v)=>e.checked=v});this.title="";this.name="";this.size="lg";this.disabled=!1;this.visuallyDisabled=!1;this.checked=!1;this.indeterminate=!1;this.defaultChecked=!1;this.form="";this.required=!1;this.showInvalidStyle=!1}get validity(){return this.input.validity}firstUpdated(){this.formControlController.updateValidity()}handleClick(e){if(this.visuallyDisabled){e.preventDefault(),e.stopPropagation();return}this.checked=!this.checked,this.indeterminate=!1,this.emit("sd-change")}handleBlur(){this.emit("sd-blur")}handleInput(){this.emit("sd-input")}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e),this.invalidMessage.textContent=e.target.validationMessage}handleFocus(){this.emit("sd-focus")}handleDisabledChange(){let e=this.disabled||this.visuallyDisabled;this.setAttribute("aria-disabled",e?"true":"false"),this.formControlController.setValidity(e)}handleStateChange(){this.input.checked=this.checked,this.input.indeterminate=this.indeterminate,this.formControlController.updateValidity()}click(){this.input.click()}focus(e){this.input.focus(e)}blur(){this.input.blur()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.input.reportValidity()}setCustomValidity(e){this.input.setCustomValidity(e),this.formControlController.updateValidity()}render(){let e=this.disabled&&this.indeterminate?"disabledIndeterminate":this.disabled&&this.checked?"disabledChecked":this.disabled?"disabled":this.visuallyDisabled?"visuallyDisabled":this.showInvalidStyle&&this.indeterminate?"invalidIndeterminate":this.showInvalidStyle?"invalid":this.checked||this.indeterminate?"filled":"default";return s`<div class="flex flex-col"><label part="base" class="${l("sd-6-22-1-checkbox group flex items-start text-base leading-normal text-black cursor-pointer",(this.disabled||this.visuallyDisabled)&&"hover:cursor-not-allowed",{sm:"text-sm",md:"text-base",lg:"text-base"}[this.size])}"><input class="peer absolute opacity-0 p-0 m-0 pointer-events-none" type="checkbox" title="${this.title}" name="${this.name}" value="${p(this.value)}" .indeterminate="${d(this.indeterminate)}" .checked="${d(this.checked)}" .disabled="${this.disabled}" .required="${this.required}" aria-checked="${this.indeterminate?"mixed":this.checked}" aria-describedby="invalid-message" aria-invalid="${this.showInvalidStyle}" aria-disabled="${this.disabled||this.visuallyDisabled?"true":"false"}" @click="${this.handleClick}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @blur="${this.handleBlur}" @focus="${this.handleFocus}"> <span id="control" part="control ${this.checked?" control--checked":"control--unchecked"} ${this.indeterminate?" control--indeterminate":""}" class="${l("relative flex flex-shrink-0 items-center justify-center border sd-6-22-1-checkbox-border-width rounded-sm h-4 w-4","transition-colors ease-in-out duration-medium group-hover:duration-fast","peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:outline-primary outline-transparent",{sm:"mt-[2px]",md:"mt-[3px]",lg:"mt-[3px]"}[this.size],{disabledIndeterminate:"border-neutral-500 bg-neutral-500",disabledChecked:"border-neutral-500 bg-neutral-500",disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",invalidIndeterminate:"border-error bg-error group-hover:bg-error-400 group-hover:border-error-400",invalid:"border-error group-hover:border-error-400 group-hover:bg-transparent",filled:"border-accent hover:border-accent-550 group-hover:border-accent-550 bg-accent group-hover:bg-accent-550",default:"form-control-color-border hover:bg-neutral-200 group-hover:bg-neutral-200 bg-white"}[e])}"><div part="checkbox" class="${l("absolute h-3 transition-[width] right-0 duration-medium",this.checked||this.indeterminate?"w-0":"w-3")}"><div class="${l("w-full h-full transition-colors duration-medium ease-in-out group-hover:duration-fast",{disabledIndeterminate:"bg-neutral-500",disabledChecked:" bg-neutral-500",disabled:"",visuallyDisabled:"",invalidIndeterminate:" bg-error group-hover:bg-error-400",invalid:"",filled:"bg-accent group-hover:bg-accent-550",default:"hover:bg-neutral-200 group-hover:bg-neutral-200 bg-white"}[e])}"></div></div>${this.checked?s`<sd-6-22-1-icon part="checked-icon" class="text-white w-3 h-3" library="sd-status-assets" name="status-check"></sd-6-22-1-icon>`:""} ${!this.checked&&this.indeterminate?s`<sd-6-22-1-icon part="indeterminate-icon" class="text-white w-3 h-3" library="sd-status-assets" name="status-minus"></sd-6-22-1-icon>`:""} </span><span part="label" id="label" class="${l("select-none inline-block ml-2",this.disabled||this.visuallyDisabled?"text-neutral-500":"text-black")}"><slot></slot></span></label><div id="invalid-icon-message" part="invalid-icon-message" class="${l("flex items-center gap-2",this.showInvalidStyle&&"mt-2")}">${this.showInvalidStyle?s`<sd-6-22-1-icon id="invalid-icon" part="invalid-icon" library="_internal" name="risk"></sd-6-22-1-icon>`:""} ${this.formControlController.renderInvalidMessage(this.size)}</div></div>`}};t.styles=[...o.styles,c`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
2
- :host{display:block;width:-moz-max-content;width:max-content}:host(:focus-visible){outline-style:var(--tw-outline-style);outline-width:0}:host([required]) #label::after{content:' *'}[part=invalid-icon]{color:rgb(var(--sd-color-icon-fill-error))}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}`],i([a('input[type="checkbox"]')],t.prototype,"input",2),i([a("#invalid-message")],t.prototype,"invalidMessage",2),i([r({type:String,reflect:!0})],t.prototype,"title",2),i([r({type:String,reflect:!0})],t.prototype,"name",2),i([r()],t.prototype,"value",2),i([r({type:String,reflect:!0})],t.prototype,"size",2),i([r({type:Boolean,reflect:!0})],t.prototype,"disabled",2),i([r({type:Boolean,reflect:!0,attribute:"visually-disabled"})],t.prototype,"visuallyDisabled",2),i([r({type:Boolean,reflect:!0})],t.prototype,"checked",2),i([r({type:Boolean,reflect:!0})],t.prototype,"indeterminate",2),i([b("checked")],t.prototype,"defaultChecked",2),i([r({type:String,reflect:!0})],t.prototype,"form",2),i([r({type:Boolean,reflect:!0})],t.prototype,"required",2),i([h()],t.prototype,"showInvalidStyle",2),i([n(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],t.prototype,"handleDisabledChange",1),i([n(["checked","indeterminate"],{waitUntilFirstUpdate:!0})],t.prototype,"handleStateChange",1),t=i([u("sd-6-22-1-checkbox")],t);export{t as a};
1
+ import{a as d}from"./chunk.SAEYIL5V.js";import{a as b}from"./chunk.ERP45OHF.js";import{b as m}from"./chunk.LZRL7OLU.js";import{a as p}from"./chunk.LHSR56PH.js";import{a as l}from"./chunk.UFTAQNZB.js";import{a as n}from"./chunk.NYKJXI3Q.js";import{a as u,b as r,c as h,d as a,h as o}from"./chunk.MJMWCFYX.js";import{b as c,e as s}from"./chunk.OBAEIKIV.js";import{e as i}from"./chunk.6EV4YU6C.js";var t=class extends o{constructor(){super(...arguments);this.formControlController=new m(this,{value:e=>e.checked?e.value||"on":void 0,defaultValue:e=>e.defaultChecked,setValue:(e,v)=>e.checked=v});this.title="";this.name="";this.size="lg";this.disabled=!1;this.visuallyDisabled=!1;this.checked=!1;this.indeterminate=!1;this.defaultChecked=!1;this.form="";this.required=!1;this.showInvalidStyle=!1}get validity(){return this.input.validity}firstUpdated(){this.formControlController.updateValidity()}handleClick(e){if(this.visuallyDisabled){e.preventDefault(),e.stopPropagation();return}this.checked=!this.checked,this.indeterminate=!1,this.emit("sd-change")}handleBlur(){this.emit("sd-blur")}handleInput(){this.emit("sd-input")}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e),this.invalidMessage.textContent=e.target.validationMessage}handleFocus(){this.emit("sd-focus")}handleDisabledChange(){let e=this.disabled||this.visuallyDisabled;this.setAttribute("aria-disabled",e?"true":"false"),this.formControlController.setValidity(e)}handleStateChange(){this.input.checked=this.checked,this.input.indeterminate=this.indeterminate,this.formControlController.updateValidity()}click(){this.input.click()}focus(e){this.input.focus(e)}blur(){this.input.blur()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.input.reportValidity()}setCustomValidity(e){this.input.setCustomValidity(e),this.formControlController.updateValidity()}render(){let e=this.disabled&&this.indeterminate?"disabledIndeterminate":this.disabled&&this.checked?"disabledChecked":this.disabled?"disabled":this.visuallyDisabled?"visuallyDisabled":this.showInvalidStyle&&this.indeterminate?"invalidIndeterminate":this.showInvalidStyle?"invalid":this.checked||this.indeterminate?"filled":"default";return s`<div class="flex flex-col"><label part="base" class="${l("sd-6-22-2-checkbox group flex items-start text-base leading-normal text-black cursor-pointer",(this.disabled||this.visuallyDisabled)&&"hover:cursor-not-allowed",{sm:"text-sm",md:"text-base",lg:"text-base"}[this.size])}"><input class="peer absolute opacity-0 p-0 m-0 pointer-events-none" type="checkbox" title="${this.title}" name="${this.name}" value="${p(this.value)}" .indeterminate="${d(this.indeterminate)}" .checked="${d(this.checked)}" .disabled="${this.disabled}" .required="${this.required}" aria-checked="${this.indeterminate?"mixed":this.checked}" aria-describedby="invalid-message" aria-invalid="${this.showInvalidStyle}" aria-disabled="${this.disabled||this.visuallyDisabled?"true":"false"}" @click="${this.handleClick}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @blur="${this.handleBlur}" @focus="${this.handleFocus}"> <span id="control" part="control ${this.checked?" control--checked":"control--unchecked"} ${this.indeterminate?" control--indeterminate":""}" class="${l("relative flex flex-shrink-0 items-center justify-center border sd-6-22-2-checkbox-border-width rounded-sm h-4 w-4","transition-colors ease-in-out duration-medium group-hover:duration-fast","peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:outline-primary outline-transparent",{sm:"mt-[2px]",md:"mt-[3px]",lg:"mt-[3px]"}[this.size],{disabledIndeterminate:"border-neutral-500 bg-neutral-500",disabledChecked:"border-neutral-500 bg-neutral-500",disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",invalidIndeterminate:"border-error bg-error group-hover:bg-error-400 group-hover:border-error-400",invalid:"border-error group-hover:border-error-400 group-hover:bg-transparent",filled:"border-accent hover:border-accent-550 group-hover:border-accent-550 bg-accent group-hover:bg-accent-550",default:"form-control-color-border hover:bg-neutral-200 group-hover:bg-neutral-200 bg-white"}[e])}"><div part="checkbox" class="${l("absolute h-3 transition-[width] right-0 duration-medium",this.checked||this.indeterminate?"w-0":"w-3")}"><div class="${l("w-full h-full transition-colors duration-medium ease-in-out group-hover:duration-fast",{disabledIndeterminate:"bg-neutral-500",disabledChecked:" bg-neutral-500",disabled:"",visuallyDisabled:"",invalidIndeterminate:" bg-error group-hover:bg-error-400",invalid:"",filled:"bg-accent group-hover:bg-accent-550",default:"hover:bg-neutral-200 group-hover:bg-neutral-200 bg-white"}[e])}"></div></div>${this.checked?s`<sd-6-22-2-icon part="checked-icon" class="text-white w-3 h-3" library="sd-status-assets" name="status-check"></sd-6-22-2-icon>`:""} ${!this.checked&&this.indeterminate?s`<sd-6-22-2-icon part="indeterminate-icon" class="text-white w-3 h-3" library="sd-status-assets" name="status-minus"></sd-6-22-2-icon>`:""} </span><span part="label" id="label" class="${l("select-none inline-block ml-2",this.disabled||this.visuallyDisabled?"text-neutral-500":"text-black")}"><slot></slot></span></label><div id="invalid-icon-message" part="invalid-icon-message" class="${l("flex items-center gap-2",this.showInvalidStyle&&"mt-2")}">${this.showInvalidStyle?s`<sd-6-22-2-icon id="invalid-icon" part="invalid-icon" library="_internal" name="risk"></sd-6-22-2-icon>`:""} ${this.formControlController.renderInvalidMessage(this.size)}</div></div>`}};t.styles=[...o.styles,c`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
2
+ :host{display:block;width:-moz-max-content;width:max-content}:host(:focus-visible){outline-style:var(--tw-outline-style);outline-width:0}:host([required]) #label::after{content:' *'}[part=invalid-icon]{color:rgb(var(--sd-color-icon-fill-error))}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}`],i([a('input[type="checkbox"]')],t.prototype,"input",2),i([a("#invalid-message")],t.prototype,"invalidMessage",2),i([r({type:String,reflect:!0})],t.prototype,"title",2),i([r({type:String,reflect:!0})],t.prototype,"name",2),i([r()],t.prototype,"value",2),i([r({type:String,reflect:!0})],t.prototype,"size",2),i([r({type:Boolean,reflect:!0})],t.prototype,"disabled",2),i([r({type:Boolean,reflect:!0,attribute:"visually-disabled"})],t.prototype,"visuallyDisabled",2),i([r({type:Boolean,reflect:!0})],t.prototype,"checked",2),i([r({type:Boolean,reflect:!0})],t.prototype,"indeterminate",2),i([b("checked")],t.prototype,"defaultChecked",2),i([r({type:String,reflect:!0})],t.prototype,"form",2),i([r({type:Boolean,reflect:!0})],t.prototype,"required",2),i([h()],t.prototype,"showInvalidStyle",2),i([n(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],t.prototype,"handleDisabledChange",1),i([n(["checked","indeterminate"],{waitUntilFirstUpdate:!0})],t.prototype,"handleStateChange",1),t=i([u("sd-6-22-2-checkbox")],t);export{t as a};
@@ -1,2 +1,2 @@
1
- import{a}from"./chunk.WWGARXPI.js";import{a as z,b as K,c as G}from"./chunk.23WKPZET.js";import{b as N}from"./chunk.LZRL7OLU.js";import{a as U}from"./chunk.CGQ2BPPZ.js";import{a as W}from"./chunk.VAM5SM3O.js";import{a as x}from"./chunk.UFTAQNZB.js";import{a as F}from"./chunk.NYKJXI3Q.js";import{a as H,b,c as E,d as Y,h as A}from"./chunk.XJAJO727.js";import{b as q,e as V,i as R}from"./chunk.OBAEIKIV.js";import{e as o}from"./chunk.6EV4YU6C.js";var r=class extends A{constructor(){super();this.localize=new W(this);this.hasSlotController=new U(this,"label","help-text","tooltip");this.formControlController=new N(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.viewMonth=null;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=a.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(n=>{var s,l;return n instanceof HTMLElement&&(((s=n.classList)==null?void 0:s.contains("nav"))||((l=n.classList)==null?void 0:l.contains("month-label")))})&&(this.tabbingIntoGrid=!0)};this.handleInput=t=>{var l,h,g,y,m;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,i=e.value,n=(g=e.selectionStart)!=null?g:i.length,s=(y=t.inputType)==null?void 0:y.startsWith("delete");if(this.range){let d=i.replace(/\D/g,""),u=d.slice(0,8),c=d.slice(8,16),f=this.buildDmyFromDigits(u),p=this.buildDmyFromDigits(c),M;u.length===0?M="":u.length<8?M=f:c.length>0?M=`${f} - ${p}`:M=s?f:`${f} -`;let I=this.countDigitsBeforeCaret(i,n),D;if(I<=8){let v=this.digitIndexToDmyCaretPos(Math.min(I,8));D=Math.min(v,f.length)}else{let v=u.length<8?f.length:f.length+3,S=Math.min(I-8,8),w=this.digitIndexToDmyCaretPos(S);D=v+Math.min(w,p.length)}this.inputValue=M;let $=!1;if(/^\d{2}\.\d{2}\.\d{4}$/.test(f)){let v=this.dmyToIso(f),S=v?a.parseLocalISO(v):null;S&&!this.isDisabled(S)&&this.inMinMax(S)&&this.rangeStart!==v&&(this.rangeStart=v,this.previewEnd=null,this.viewMonth=new Date(S.getFullYear(),S.getMonth(),1),this.focusedDate=a.startOfDayLocal(S),$=!0)}else this.rangeStart&&(this.rangeStart=null,$=!0),this.rangeEnd&&(this.rangeEnd=null,$=!0);if(/^\d{2}\.\d{2}\.\d{4}$/.test(p)&&this.rangeStart){let v=a.parseLocalISO(this.rangeStart),S=this.dmyToIso(p),w=S?a.parseLocalISO(S):null;if(!!w&&!this.isDisabled(w)&&this.inMinMax(w)){let[k,T]=a.compareDates(v,w)<=0?[v,w]:[w,v],P=a.isSameDay(k,T);if((this.allowSameDayRange||!P)&&!this.wouldRangeContainDisabled(k,T)){let C=a.toLocalISODate(a.startOfDayLocal(k)),_=a.toLocalISODate(a.startOfDayLocal(T));(this.rangeStart!==C||this.rangeEnd!==_)&&(this.rangeStart=C,this.rangeEnd=_,this.viewMonth=new Date(T.getFullYear(),T.getMonth(),1),this.focusedDate=a.startOfDayLocal(T),$=!0)}}}else this.rangeEnd&&(this.rangeEnd=null,$=!0);this.showInvalidStyle=!1,this.showValidStyle=!!(this.rangeStart&&this.rangeEnd),$&&(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 S;let v=(S=this.input)!=null?S:e;v&&(v.value=this.inputValue,v.setSelectionRange(D,D))})})}else{let d=e,u=d.value,c=(m=d.selectionStart)!=null?m:u.length,f=u.replace(/\D/g,"").slice(0,8),p=f.slice(0,2),M=f.slice(2,4),I=f.slice(4,8),D="";p.length>0&&(D+=p,p.length===2&&(D+=".")),M.length>0&&p.length===2&&(D+=M,M.length===2&&(D+=".")),I.length>0&&p.length===2&&M.length===2&&(D+=I),D=D.replace(/\.\.+/g,".");let $=this.inputValue||"";this.inputValue=D;let v=c,S=L=>{let C=[];for(let _=0;_<L.length;_++)L[_]==="."&&C.push(_);return C},w=S($),O=S(D),k=w.filter(L=>L<c).length,P=O.filter(L=>L<c).length-k;if(P>0?v+=P:!w.includes(c)&&O.includes(c)&&(v+=1),v=Math.min(Math.max(0,v),D.length),requestAnimationFrame(()=>{var C;let L=(C=this.input)!=null?C:d;L&&(L.value=this.inputValue,L.setSelectionRange(v,v))}),/^\d{2}\.\d{2}\.\d{4}$/.test(D)){let L=this.parseInputText(D);this.applyParsedInput(L)}else this.showInvalidStyle=!1,this.showValidStyle=!1;return}if(!this.open&&this.hasFocus&&!this.disabled&&!this.visuallyDisabled&&this.show(),this.range){let d=this.rangeStart?a.parseLocalISO(this.rangeStart):null,u=this.rangeEnd?a.parseLocalISO(this.rangeEnd):null;d&&!u?this.setNavStatus(`${this.termStartSelected()}: ${this.formatSelectionLabel(d)}`):d&&u&&this.setNavStatus(`${this.termStartSelected()}: ${this.formatSelectionLabel(d)}; ${this.termEndSelected()}: ${this.formatSelectionLabel(u)}`)}else if(this.value){let d=a.parseLocalISO(this.value);this.setNavStatus(`${this.formatSelectionLabel(d)}`)}};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,i,n)=>{if(!(this.disabled||this.visuallyDisabled||this.readonly)){if(t.key==="Tab"&&!t.shiftKey){n&&(t.preventDefault(),t.stopPropagation(),this.tabbingIntoGrid=!0,this.focusInitialGridDay());return}(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),t.stopPropagation(),e==="month"?this.setMonth(i):this.setYear(i))}};this.onKeyDown=t=>{var s,l;if(this.disabled||this.visuallyDisabled||this.readonly){t.preventDefault(),t.stopPropagation();return}let e=t.key,i=!0,n=new Date(this.focusedDate);switch(e){case"ArrowLeft":n.setDate(n.getDate()-1);break;case"ArrowRight":n.setDate(n.getDate()+1);break;case"ArrowUp":n.setDate(n.getDate()-7);break;case"ArrowDown":n.setDate(n.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:i=!1}if(i){t.preventDefault();let h=(s=this.viewMonth)!=null?s:this.ensureViewMonth();if(n.getMonth()!==h.getMonth()||n.getFullYear()!==h.getFullYear()){let d=new Date(n.getFullYear(),n.getMonth(),1);this.viewMonth=d;let u=this.formatMonthYear(d);this.setNavStatus(u)}let y=a.startOfDayLocal(n);y.getTime()!==((l=this.focusedDate)==null?void 0:l.getTime())&&(this.focusedDate=y);let m=y.toLocaleDateString(this.locale,{weekday:"long",day:"numeric",month:"long",year:"numeric"});this.setNavStatus(m),this.requestUpdate(),requestAnimationFrame(()=>{let d=this.shadowRoot,u=d==null?void 0:d.querySelector("button.day.focused");u==null||u.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(){var l;super.connectedCallback(),this.syncDisabledDatesSet(),document.addEventListener("click",this.handleOutsideClick),this.addEventListener("focusout",this.onFocusOut),this.updateComplete.then(()=>{this.formControlController.updateValidity()});let t=this.value?a.parseLocalISO(this.value):null,e=this.rangeStart?a.parseLocalISO(this.rangeStart):null,i=a.startOfDayLocal(new Date),n=this.range&&e?e:t!=null?t:i,s=(l=this.viewMonth)!=null?l:new Date(n.getFullYear(),n.getMonth(),1);this.viewMonth=s,this.focusedDate=a.clampDateToMonth(n,s),(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()}handleViewMonthChange(){var i;if(!this.viewMonth)return;let t=this.focusedDate||this.range&&this.rangeEnd&&a.parseLocalISO(this.rangeEnd)||this.range&&this.rangeStart&&a.parseLocalISO(this.rangeStart)||this.value&&a.parseLocalISO(this.value)||this.today;if(!t)return;let e=a.clampDateToMonth(t,this.viewMonth);e.getTime()!==((i=this.focusedDate)==null?void 0:i.getTime())&&(this.focusedDate=e)}handleDisabledDatesChange(){this.syncDisabledDatesSet(),this.requestUpdate()}handleValueChange(){let t=this.value?a.parseLocalISO(this.value):null;t&&(this.viewMonth=new Date(t.getFullYear(),t.getMonth(),1),this.focusedDate=a.startOfDayLocal(t)),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var i;let e=this.input;if(e){e.value=(i=this.inputValue)!=null?i:"";let n=e.value.length;e.setSelectionRange(n,n)}this.formControlController.updateValidity()}),this.emit("sd-change",{detail:{value:this.value,rangeStart:this.rangeStart,rangeEnd:this.rangeEnd}})}handleRangeChange(){let t=this.rangeStart?a.parseLocalISO(this.rangeStart):null,e=this.rangeEnd?a.parseLocalISO(this.rangeEnd):null,i=t!=null?t:e;i&&(this.viewMonth=new Date(i.getFullYear(),i.getMonth(),1),this.focusedDate=a.startOfDayLocal(i)),this.previewEnd!==null&&(this.previewEnd=null),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var s;let n=this.input;if(n){n.value=(s=this.inputValue)!=null?s:"";let l=n.value.length;n.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 a.parseLocalISO(t)}inMinMax(t){let e=s=>{if(s==null)return null;if(s instanceof Date)return a.startOfDayLocal(s);if(typeof s=="number")return a.startOfDayLocal(new Date(s));if(typeof s=="string"){let l=this.parseISO(s);return l?a.startOfDayLocal(l):null}return null},i=e(this.min),n=e(this.max);return!(i&&t<i||n&&t>n)}isInDisabledDates(t){if(!this.disabledDatesSet||this.disabledDatesSet.size===0)return!1;let e=t.getFullYear(),i=String(t.getMonth()+1).padStart(2,"0"),n=String(t.getDate()).padStart(2,"0"),s=`${e}-${i}-${n}`;return this.disabledDatesSet.has(s)}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 i="\u200B".repeat(this.statusBumpCounter%3);this.statusSelectText=t+i},e)}formatSelectionLabel(t){if(this.locale==="de-DE")return t.toLocaleDateString("de-DE",{day:"numeric",month:"long",year:"numeric"});let e=t.getDate(),i=this.ordinal(e),n=t.toLocaleDateString("en-US",{month:"long"}),s=t.getFullYear();return`${i} of ${n} ${s}`}ordinal(t){let e=["th","st","nd","rd"],i=t%100,n=e[(i-20)%10]||e[i]||e[0];return t+n}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 i=JSON.parse(e);Array.isArray(i)&&(t=i)}catch(i){t=[]}else e.length>0&&(t=e.split(",").map(i=>i.trim()).filter(Boolean))}this.disabledDatesSet=new Set(t)}wouldRangeContainDisabled(t,e){let i=a.compareDates(t,e)<=0?a.startOfDayLocal(t):a.startOfDayLocal(e),n=a.compareDates(t,e)<=0?a.startOfDayLocal(e):a.startOfDayLocal(t),s=new Date(i);for(;a.compareDates(s,n)<=0;){if(this.isDisabled(s))return!0;s.setDate(s.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=a.parseLocalISO(t);if(e||(e=a.parseLocalISO(t.replace(/-/g,"."))),!e)return"";let i=String(e.getDate()).padStart(2,"0"),n=String(e.getMonth()+1).padStart(2,"0"),s=String(e.getFullYear());return`${i}.${n}.${s}`}dmyToIso(t){if(!t)return null;let e=t.match(/^(\d{2})\.(\d{2})\.(\d{4})$/);if(!e)return null;let i=Number(e[1]),n=Number(e[2]),s=Number(e[3]),l=new Date(s,n-1,i);if(l.getFullYear()!==s||l.getMonth()!==n-1||l.getDate()!==i)return null;let h=a.startOfDayLocal(l);return a.toLocalISODate(h)}formatInputValue(){let t=(this.locale||"").toLowerCase(),e=(this.getAttribute("lang")||"").toLowerCase(),n=t.startsWith("de")||e.startsWith("de")?"\u2013":"-";if(!this.range)return this.isoToDmy(this.value);let s=this.isoToDmy(this.rangeStart),l=this.isoToDmy(this.rangeEnd);return s&&l?`${s} ${n} ${l}`:s&&!l?`${s} ${n}`:""}parseInputText(t){var n,s;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 g=this.dmyToIso(h);return g?{start:g,end:null,valid:!0}:{start:null,end:null,valid:!1}}else if(l.length>=2){let h=(n=l[0])!=null?n:"",g=(s=l[1])!=null?s:"",y=h?this.dmyToIso(h):null,m=g?this.dmyToIso(g):null;return h&&!y?{start:null,end:null,valid:!1}:g&&!m?{start:null,end:null,valid:!1}:{start:y,end:m,valid:!0}}return{start:null,end:null,valid:!1}}if(!e)return{single:null,valid:!0};let i=this.dmyToIso(e);return i?{single:i,valid:!0}:{single:null,valid:!1}}applyParsedInput(t){var h,g,y,m;if(!t.valid)return this.showInvalidStyle=!0,this.showValidStyle=!1,this.formControlController.setValidity(!1),!1;let e=d=>{if(!d)return!0;let u=a.parseLocalISO(d);return!(!this.inMinMax(u)||this.isDisabled(u))},i=!1;if(this.range){let d=(h=t.start)!=null?h:null,u=(g=t.end)!=null?g:null;if(!e(d)||u&&!e(u))return this.showInvalidStyle=!0,this.showValidStyle=!1,!1;let c=d?a.parseLocalISO(d):null,f=u?a.parseLocalISO(u):null;if(c&&f){if(a.compareDates(c,f)>0){let I=c;c=f,f=I}if(!this.allowSameDayRange&&a.isSameDay(c,f))return this.showInvalidStyle=!0,this.showValidStyle=!1,!1;if(this.wouldRangeContainDisabled(c,f))return this.showInvalidStyle=!0,this.showValidStyle=!1,!1}let p=c?a.toLocalISODate(a.startOfDayLocal(c)):null,M=f?a.toLocalISODate(a.startOfDayLocal(f)):null;if(this.rangeStart!==p||this.rangeEnd!==M){this.rangeStart=p,this.rangeEnd=M,this.previewEnd=null,i=!0;let I=(y=c!=null?c:f)!=null?y:this.today;this.viewMonth=new Date(I.getFullYear(),I.getMonth(),1),this.focusedDate=a.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 n=(m=t.single)!=null?m:null;if(!e(n))return this.input.setCustomValidity(this.localize.term("datePickerRange")),this.formControlController.setValidity(!1),this.showInvalidStyle=!0,this.showValidStyle=!1,!1;let s=n?a.parseLocalISO(n):null,l=s?a.toLocalISODate(a.startOfDayLocal(s)):null;return this.value!==l&&(this.value=l,i=!0,s&&(this.viewMonth=new Date(s.getFullYear(),s.getMonth(),1),this.focusedDate=a.startOfDayLocal(s)),this.emit("sd-select",{detail:{value:this.value,date:s!=null?s:null}})),this.showInvalidStyle=!1,this.showValidStyle=!!this.value,this.inputValue=this.formatInputValue(),i}buildDmyFromDigits(t){let e=t.slice(0,8),i=e.slice(0,2),n=e.slice(2,4),s=e.slice(4,8),l=i;return n.length&&(l+="."+n),s.length&&(l+="."+s),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 i,n;((n=(i=t.composedPath)==null?void 0:i.call(t))!=null?n:[]).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){var s;let e=(s=this.viewMonth)!=null?s:this.ensureViewMonth(),i=new Date(e.getFullYear(),e.getMonth()+t,1);if(i.getMonth()===e.getMonth()&&i.getFullYear()===e.getFullYear())return;this.viewMonth=i;let n=this.formatMonthYear(i);this.setNavStatus(n),this.emit("sd-month-change",{detail:{month:i}})}setYear(t){var s;let e=(s=this.viewMonth)!=null?s:this.ensureViewMonth(),i=new Date(e.getFullYear()+t,e.getMonth(),1);if(i.getFullYear()===e.getFullYear()&&i.getMonth()===e.getMonth())return;this.viewMonth=i;let n=this.formatMonthYear(i);this.setNavStatus(n),this.emit("sd-month-year",{detail:{month:i}})}focusInitialGridDay(){var n;let t=null;if(!this.range&&this.value){let s=a.parseLocalISO(this.value);s&&(t=a.startOfDayLocal(s))}if(this.range){let s=this.rangeStart?a.parseLocalISO(this.rangeStart):null,l=this.rangeEnd?a.parseLocalISO(this.rangeEnd):null;l?t=a.startOfDayLocal(l):s&&(t=a.startOfDayLocal(s))}let e=(n=this.viewMonth)!=null?n:this.ensureViewMonth();if(!(s=>s?s.getFullYear()===e.getFullYear()&&s.getMonth()===e.getMonth()&&!this.isDisabled(s):!1)(t)){let{weeks:s}=this.getMonthMatrix(e),l=s.flat().find(h=>h.getMonth()===e.getMonth()&&a.isSameDay(h,this.today)&&!this.isDisabled(h));if(l)t=a.startOfDayLocal(l);else{let h=s.flat().find(g=>g.getMonth()===e.getMonth()&&!this.isDisabled(g));t=h?a.startOfDayLocal(h):null}}t&&(this.focusedDate=t),this.requestUpdate(),requestAnimationFrame(()=>{let s=this.shadowRoot,l=(s==null?void 0:s.querySelector("button.day.selected"))||(s==null?void 0:s.querySelector("button.day.focused"))||(s==null?void 0:s.querySelector('button.day[tabindex="0"]'))||(s==null?void 0:s.querySelector("button.day"));l==null||l.focus({preventScroll:!0})})}selectSingleDate(t){if(this.readonly||this.isDisabled(t))return;let e=a.startOfDayLocal(t),i=a.toLocalISODate(e);if(this.value===i)return;this.value=i;let n=`${this.formatSelectionLabel(e)}, ${this.localize.term("selected")}`;this.announceSelect(n),this.emit("sd-select",{detail:{value:this.value,date:e}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var l;let s=this.input;s&&(s.value=(l=this.inputValue)!=null?l:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let h=s.value.length;s.setSelectionRange(h,h)})}))})}selectRangeDate(t){if(this.readonly)return;let e=a.startOfDayLocal(t),i=this.rangeStart?a.parseLocalISO(this.rangeStart):null,n=this.rangeEnd?a.parseLocalISO(this.rangeEnd):null;if(!i&&!n){if(this.isDisabled(e))return;this.rangeStart=a.toLocalISODate(e),this.rangeEnd=null,this.previewEnd=null;let s=this.formatSelectionLabel(e);this.announceSelect(`${this.termStartSelected()}: ${s}`,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 g=l.value.length;l.setSelectionRange(g,g)})}))});return}if(i&&!n){if(this.isDisabled(e))return;if(a.isSameDay(i,e)){if(!this.allowSameDayRange){this.rangeStart=a.toLocalISODate(e),this.rangeEnd=null,this.previewEnd=null;let d=this.formatSelectionLabel(e);this.announceSelect(`${this.termStartSelected()}: ${d}`,40),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var c;let u=this.input;u&&(u.value=(c=this.inputValue)!=null?c:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let f=u.value.length;u.setSelectionRange(f,f)})}))});return}this.rangeStart=a.toLocalISODate(e),this.rangeEnd=a.toLocalISODate(e),this.previewEnd=null;let m=this.formatSelectionLabel(e);this.announceSelect(`${this.termStartSelected()}: ${m}`,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 u;let d=this.input;d&&(d.value=(u=this.inputValue)!=null?u:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let c=d.value.length;d.setSelectionRange(c,c)})}))});return}let s=a.parseLocalISO(this.rangeStart);if(this.wouldRangeContainDisabled(s,e))return;let[l,h]=a.compareDates(s,e)<=0?[s,e]:[e,s];this.rangeStart=a.toLocalISODate(l),this.rangeEnd=a.toLocalISODate(h),this.previewEnd=null;let g=this.formatSelectionLabel(l),y=this.formatSelectionLabel(h);this.announceSelect(`${this.termStartSelected()}: ${g}`,40),this.announceSelect(`${this.termEndSelected()}: ${y}`,140),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var d;let m=this.input;m&&(m.value=(d=this.inputValue)!=null?d:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let u=m.value.length;m.setSelectionRange(u,u)})}))});return}if(i&&n){if(this.isDisabled(e))return;this.rangeStart=a.toLocalISODate(e),this.rangeEnd=null,this.previewEnd=null;let s=this.formatSelectionLabel(e);this.announceSelect(`${this.termStartSelected()}: ${s}`,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 g=l.value.length;l.setSelectionRange(g,g)})}))})}}selectDate(t){this.readonly||(this.range?this.selectRangeDate(t):this.selectSingleDate(t))}ensureViewMonth(){if(this.viewMonth)return this.viewMonth;let t=this.value?a.parseLocalISO(this.value):null,e=this.rangeStart?a.parseLocalISO(this.rangeStart):null,i=a.startOfDayLocal(new Date),n=this.range&&e?e:t!=null?t:i,s=new Date(n.getFullYear(),n.getMonth(),1);return this.viewMonth=s,s}getMonthMatrix(t){var y;let e=(y=this.firstDayOfWeek)!=null?y:1,i=new Date(t.getFullYear(),t.getMonth(),1),n=new Date(i),s=(i.getDay()-e+7)%7;n.setDate(i.getDate()-s);let l=[],h=n;for(let m=0;m<6;m++){let d=[];for(let u=0;u<7;u++)d.push(new Date(h)),h.setDate(h.getDate()+1);l.push(d)}let g=m=>m.every(d=>d.getMonth()!==t.getMonth());for(;l.length>0&&g(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 n;let t=(n=this.firstDayOfWeek)!=null?n:1,e=new Date(2021,7,1),i=[];for(let s=0;s<7;s++){let l=new Date(e);l.setDate(e.getDate()+(t+s)%7);try{i.push(new Intl.DateTimeFormat(this.locale,{weekday:"short"}).format(l))}catch(h){i.push(l.toLocaleDateString(void 0,{weekday:"short"}))}}return i}getTabTargetDayForCurrentView(t){var s;let e=(s=this.viewMonth)!=null?s:this.ensureViewMonth(),i=t.flat().find(l=>l.getMonth()===e.getMonth()&&a.isSameDay(l,this.today)&&!this.isDisabled(l));if(i)return a.startOfDayLocal(i);let n=t.flat().find(l=>l.getMonth()===e.getMonth()&&!this.isDisabled(l));return n?a.startOfDayLocal(n):null}onDayMouseEnter(t){if(!this.range||this.readonly)return;let e=this.rangeStart?a.parseLocalISO(this.rangeStart):null,i=this.rangeEnd?a.parseLocalISO(this.rangeEnd):null;if(e&&!i){let n=a.startOfDayLocal(t);this.previewEnd=this.isDisabled(n)?null:n,this.requestUpdate()}}onGridMouseLeave(){this.previewEnd!==null&&(this.previewEnd=null,this.requestUpdate())}renderCalendar(){var d,u;let t=(d=this.viewMonth)!=null?d:this.ensureViewMonth(),{weeks:e}=this.getMonthMatrix(t),i=this.formatMonthYear(t),n=this.weekdayLabels(),s=this.value?this.parseISO(this.value):null,l=this.rangeStart?this.parseISO(this.rangeStart):null,h=this.rangeEnd?this.parseISO(this.rangeEnd):null,g=this.previewEnd,y=c=>!this.range||!l||h||!g?!1:a.isBetweenInclusive(c,l,g),m=this.getTabTargetDayForCurrentView(e);return V`<div part="datepicker" class="${x("w-[284px] z-50 bg-white py-3 px-4",this.open?"block shadow-listbox":"hidden",(u=this.currentPlacement)!=null&&u.startsWith("bottom")?"border-r-2 border-b-2 border-l-2 form-control__listbox-border-bottom-right-radius form-control__listbox-border-bottom-left-radius":"border-r-2 border-t-2 border-l-2 form-control__listbox-border-top-right-radius form-control__listbox-border-top-left-radius","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="${c=>this.handleHeaderKeyDown(c,"year",-1,!1)}" aria-label="${this.localize.term("previousYear")}"><sd-6-22-1-icon library="_internal" name="chevrons-sm-left" class="h-6 w-6"></sd-6-22-1-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="${c=>this.handleHeaderKeyDown(c,"month",-1,!1)}" aria-label="${this.localize.term("previousMonth")}"><sd-6-22-1-icon library="_internal" name="chevron-sm-left" class="h-6 w-6"></sd-6-22-1-icon></button></div><div tabindex="-1" class="month-label flex justify-center sd-headline sd-headline--size-base" part="month-label" aria-live="polite">${i}</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="${c=>this.handleHeaderKeyDown(c,"month",1,!1)}" aria-label="${this.localize.term("nextMonth")}"><sd-6-22-1-icon library="_internal" name="chevron-sm-right" class="h-6 w-6"></sd-6-22-1-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="${c=>this.handleHeaderKeyDown(c,"year",1,!0)}" aria-label="${this.localize.term("nextYear")}"><sd-6-22-1-icon library="_internal" name="chevrons-sm-right" class="h-6 w-6"></sd-6-22-1-icon></button></div></div><sd-6-22-1-divider></sd-6-22-1-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="${i}" part="grid" @mouseleave="${this.onGridMouseLeave}" @focusin="${()=>{this.tabbingIntoGrid=!1}}"><div class="grid-row grid-head grid grid-cols-7 gap-y-[1px]" role="row">${n.map((c,f)=>V`<div role="columnheader" aria-colindex="${f+1}" part="weekday" class="cell head flex items-center justify-center font-bold text-black text-sm leading-none h-8" aria-label="${c}" title="${c}" id="${"col-"+(f+1)}">${c}</div>`)}</div>${e.map((c,f)=>V`<div class="grid-row grid grid-cols-7 ${f===0?"mt-2":""}" role="row" aria-rowindex="${f+2}">${c.map((p,M)=>{let I=p.getMonth()===t.getMonth(),D=this.isDisabled(p)||!this.inMinMax(p),$=a.isSameDay(p,this.focusedDate),v=a.isSameDay(p,this.today),S=!this.range&&s?a.isSameDay(p,s):!1,w=this.range&&l?a.isSameDay(p,l):!1,O=this.range&&h?a.isSameDay(p,h):!1,k=this.range&&l&&h?a.isBetweenInclusive(p,l,h):!1,T=y(p)&&!D,P=-1,L=m&&a.isSameDay(p,m);(this.tabbingIntoGrid&&L||!this.tabbingIntoGrid&&$)&&(P=0);let C=this.isWeekend(p),_=p.toLocaleDateString(this.locale,{weekday:"long",day:"numeric",month:"long",year:"numeric"}),B=w?this.localize.term("startDateSelected"):O?this.localize.term("endDateSelected"):void 0;return V`<button type="button" part="day" class="${x("cell day flex items-center justify-center focus-visible:outline focus:outline-2 focus:outline-primary -outline-offset-2 rounded w-[36px]",this.size==="sm"?"text-sm h-6":"text-base h-8",w||O?$?"outline-none sd-6-22-1-datepicker__date-item--selected--hover-color-background sd-6-22-1-datepicker__date-item--selected--hover-color-text":"outline-none sd-6-22-1-datepicker__date-item--selected-color-background sd-6-22-1-datepicker__date-item--selected-color-text hover:sd-6-22-1-datepicker__date-item--selected--hover-color-background hover:sd-6-22-1-datepicker__date-item--selected--hover-color-text":"hover:sd-6-22-1-datepicker__date-item--hover--default-color-text",!w&&!O&&!k&&"hover:sd-6-22-1-datepicker__date-item--hover--default-color-background",S?"selected outline-none border-primary sd-6-22-1-datepicker__date-item--selected-color-background sd-6-22-1-datepicker__date-item--selected-color-text hover:sd-6-22-1-datepicker__date-item--selected--hover-color-text hover:sd-6-22-1-datepicker__date-item--selected--hover-color-background":I?this.isInDisabledDates(p)||!this.inMinMax(p)?"out-month text-neutral-500":this.disabledWeekends&&C?"weekend-day text-neutral-500":"in-month sd-6-22-1-datepicker__date-item--default-color-text":this.disabledWeekends&&C?"out-month weekend-day text-neutral-500":C?"out-month weekend-day text-neutral-700":"out-month text-neutral-700 hover:sd-6-22-1-datepicker__date-item--hover--prev-next-color-text hover:sd-6-22-1-datepicker__date-item--hover--prev-next-color-background",w?"rounded-l-md rounded-r-none":"",O?"range-end rounded-r-md rounded-l-none":"",k&&!w&&!O?"in-range selected sd-6-22-1-datepicker__date-item--range-color-background rounded-none hover:sd-6-22-1-datepicker__date-item--selected--hover-color-background hover:sd-6-22-1-datepicker__date-item--selected--hover-color-text":"",!k&&T&&!w&&!O?"in-preview-range bg-primary-100 text-primary-500 rounded-none":"",v&&!S&&!w&&!O&&$?"today border-[1px] border-primary sd-6-22-1-datepicker__date-item--current-font-weight":"",D?"disabled cursor-not-allowed hover:bg-transparent":"cursor-pointer",$&&!v?"focused outline outline-2 outline-primary":"")}" role="gridcell" aria-colindex="${M+1}" aria-labelledby="${"col-"+(M+1)}" .tabIndex="${P}" ?disabled="${D||this.disabled||this.readonly}" aria-disabled="${D||this.visuallyDisabled||this.disabled||this.readonly?"true":"false"}" aria-selected="${S||k||w||O?"true":"false"}" aria-current="${v?"date":R}" aria-label="${_}" aria-roledescription="${B!=null?B:R}" @focus="${()=>this.focusedDate=a.startOfDayLocal(p)}" @mouseenter="${()=>this.onDayMouseEnter(p)}" @keydown="${this.onKeyDown}" @click="${()=>{this.focusedDate=a.startOfDayLocal(p),this.selectDate(p)}}">${p.getDate()}</button>`})}</div>`)}</div></div>`}render(){var c,f;let t={label:this.hasSlotController.test("label"),helpText:this.hasSlotController.test("help-text"),tooltip:this.hasSlotController.test("tooltip")},e=this.label?!0:!!t.label,i=this.helpText?!0:!!t.helpText,n=!!t.tooltip,s=this.value!==null&&String(this.value).length>0||this.range&&this.rangeStart!==null||this.rangeEnd!==null,l=this.floatingLabel&&e&&(this.hasFocus||this.open||s)&&!this.disabled&&!this.visuallyDisabled,h=this.disabled||this.visuallyDisabled?"text-neutral-500":"icon-color",g={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],y={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size],m=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",d={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:"form-control-color-border"}[m],u=this.size==="sm"?"text-sm":"text-base";return V`<div part="form-control" class="${x("min-w-[284px]",this.open&&"z-50",(this.disabled||this.visuallyDisabled)&&"cursor-not-allowed")}">${e&&!this.floatingLabel||n?V`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${x(e?"inline-block":"hidden",this.visuallyDisabled||this.disabled?"text-neutral-500":"form-control-color-text",u)}" for="input" aria-hidden="${e?"false":"true"}"><slot name="label">${this.label}</slot></label> ${t.tooltip?V`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${x("relative w-full",this.disabled&&"pointer-events-none",this.visuallyDisabled&&"cursor-not-allowed")}">${e&&this.floatingLabel?V`<label id="label" part="form-control-floating-label" class="${x("absolute left-4 z-20 pointer-events-none transition-all duration-200 form-control--filled__floating-label-color-text",l?this.size==="lg"?"top-2 text-xs":"top-1 text-xs":"top-1/2 -translate-y-1/2 form-control-color-text",l&&"mt-1")}" for="input"><span class="${x("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="${x("absolute top-0 w-full h-full pointer-events-none border form-control-border-radius z-10 transition-[border] duration-medium ease-in-out",d,this.open&&((c=this.currentPlacement)!=null&&c.startsWith("bottom")?this.open&&this.alignment==="left"?"rounded-bl-none":"rounded-br-none":this.open&&this.alignment==="left"?"rounded-tl-none":"rounded-tr-none"))}"></div><sd-6-22-1-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${x("inline-flex relative w-full",(f=this.currentPlacement)!=null&&f.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="${x("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:[@media(hover:hover)]:form-control--hover-color-background":"",this.readonly?"form-control--read-only-color-background":"bg-white",m==="disabled"||m==="visuallyDisabled"?"text-neutral-500":"text-black",m==="invalid"&&"form-control--invalid-color-background",m==="active"&&"shadow")}" slot="anchor"><input id="input" type="text" role="combobox" aria-expanded="${this.open?"true":"false"}" aria-haspopup="dialog" aria-controls="calendar-grid" aria-describedby="${i?"help-text":void 0}" aria-invalid="${this.showInvalidStyle?"true":"false"}" aria-label="${this.range?"Select date range":"Select a date"}" class="${x("min-w-0 grow focus:outline-none bg-transparent hover:cursor-pointer text-black",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],u,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?V`<sd-6-22-1-icon part="invalid-icon" class="${x("text-error",g,y)}" library="_internal" name="risk"></sd-6-22-1-icon>`:""} ${this.showValidStyle&&this.styleOnValid?V`<sd-6-22-1-icon class="${x("text-success shrink-0",g,y)}" library="_internal" name="confirm-circle" part="valid-icon"></sd-6-22-1-icon>`:""}<sd-6-22-1-icon class="${x(h,g,y,"hover:cursor-pointer")}" library="_internal" name="calendar" @click="${this.show}"></sd-6-22-1-icon></div>${this.renderCalendar()}</sd-6-22-1-popup></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${x("text-sm mt-1",i?"block":"hidden",this.visuallyDisabled||this.disabled?"text-neutral-500":"text-neutral-700")}" aria-hidden="${!i}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage(this.size)}`}};r.styles=[...A.styles,q`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
- :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}.today:hover{border-color:rgba(var(--sd-datepicker__date-item--hover--default-color-border,rgba(var(--sd-color-primary-500))))}.in-range,.today{color:rgba(var(--sd-datepicker__date-item--current-color-text,rgba(var(--sd-color-primary))))}.icon-color{color:rgb(var(--sd-color-icon-fill-primary))}.month-label{color:rgb(var(--sd-color-border-primary))!important}`],o([b({type:String,reflect:!0})],r.prototype,"locale",2),o([b({type:String,converter:z,reflect:!0})],r.prototype,"value",2),o([b({type:Boolean,reflect:!0})],r.prototype,"range",2),o([b({attribute:"range-start",converter:z,reflect:!0})],r.prototype,"rangeStart",2),o([b({attribute:"range-end",converter:z,reflect:!0})],r.prototype,"rangeEnd",2),o([b({type:Boolean})],r.prototype,"allowSameDayRange",2),o([b({type:String,converter:z,reflect:!0})],r.prototype,"min",2),o([b({type:String,converter:z,reflect:!0})],r.prototype,"max",2),o([b({attribute:"view-month",converter:K})],r.prototype,"viewMonth",2),o([b({type:Number})],r.prototype,"firstDayOfWeek",2),o([b({type:Boolean,reflect:!0,attribute:"disabled-weekends"})],r.prototype,"disabledWeekends",2),o([b({attribute:"disabled-dates",converter:G})],r.prototype,"disabledDates",2),o([b({attribute:!1})],r.prototype,"isDateDisabled",2),o([b({type:String,reflect:!0})],r.prototype,"size",2),o([b({type:String})],r.prototype,"alignment",2),o([b({type:String,reflect:!0})],r.prototype,"label",2),o([b({type:String,attribute:"help-text",reflect:!0})],r.prototype,"helpText",2),o([b({attribute:"floating-label",type:Boolean,reflect:!0})],r.prototype,"floatingLabel",2),o([b({type:Boolean,reflect:!0})],r.prototype,"disabled",2),o([b({type:Boolean,reflect:!0})],r.prototype,"required",2),o([b({type:Boolean,attribute:"visually-disabled"})],r.prototype,"visuallyDisabled",2),o([b({type:Boolean,reflect:!0,attribute:"style-on-valid"})],r.prototype,"styleOnValid",2),o([b({type:Boolean,reflect:!0})],r.prototype,"readonly",2),o([b({type:String,reflect:!0})],r.prototype,"placement",2),o([b({type:String,reflect:!0})],r.prototype,"placeholder",2),o([b({reflect:!0})],r.prototype,"name",2),o([b({type:String,reflect:!0})],r.prototype,"form",2),o([E()],r.prototype,"open",2),o([E()],r.prototype,"focusedDate",2),o([E()],r.prototype,"today",2),o([E()],r.prototype,"disabledDatesSet",2),o([E()],r.prototype,"previewEnd",2),o([E()],r.prototype,"statusNavText",2),o([E()],r.prototype,"statusSelectText",2),o([E()],r.prototype,"hasFocus",2),o([E()],r.prototype,"showValidStyle",2),o([E()],r.prototype,"showInvalidStyle",2),o([E()],r.prototype,"currentPlacement",2),o([E()],r.prototype,"inputValue",2),o([Y("sd-6-22-1-popup")],r.prototype,"popup",2),o([Y("#invalid-message")],r.prototype,"invalidMessage",2),o([Y("#input")],r.prototype,"input",2),o([F("open",{waitUntilFirstUpdate:!0})],r.prototype,"handleOpenChange",1),o([F("locale")],r.prototype,"handleLocaleChange",1),o([F("viewMonth")],r.prototype,"handleViewMonthChange",1),o([F("disabledDates")],r.prototype,"handleDisabledDatesChange",1),o([F("value")],r.prototype,"handleValueChange",1),o([F("rangeStart"),F("rangeEnd")],r.prototype,"handleRangeChange",1),o([F(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],r.prototype,"handleDisabledChange",1),o([F(["size","floatingLabel"])],r.prototype,"handleSizeChange",1),r=o([H("sd-6-22-1-datepicker")],r);export{r as a};
1
+ import{a}from"./chunk.WWGARXPI.js";import{a as z,b as K,c as G}from"./chunk.23WKPZET.js";import{b as N}from"./chunk.LZRL7OLU.js";import{a as U}from"./chunk.CGQ2BPPZ.js";import{a as W}from"./chunk.VAM5SM3O.js";import{a as x}from"./chunk.UFTAQNZB.js";import{a as F}from"./chunk.NYKJXI3Q.js";import{a as H,b,c as E,d as Y,h as A}from"./chunk.MJMWCFYX.js";import{b as q,e as V,i as R}from"./chunk.OBAEIKIV.js";import{e as o}from"./chunk.6EV4YU6C.js";var r=class extends A{constructor(){super();this.localize=new W(this);this.hasSlotController=new U(this,"label","help-text","tooltip");this.formControlController=new N(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.viewMonth=null;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=a.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(n=>{var s,l;return n instanceof HTMLElement&&(((s=n.classList)==null?void 0:s.contains("nav"))||((l=n.classList)==null?void 0:l.contains("month-label")))})&&(this.tabbingIntoGrid=!0)};this.handleInput=t=>{var l,h,g,y,m;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,i=e.value,n=(g=e.selectionStart)!=null?g:i.length,s=(y=t.inputType)==null?void 0:y.startsWith("delete");if(this.range){let d=i.replace(/\D/g,""),u=d.slice(0,8),c=d.slice(8,16),f=this.buildDmyFromDigits(u),p=this.buildDmyFromDigits(c),M;u.length===0?M="":u.length<8?M=f:c.length>0?M=`${f} - ${p}`:M=s?f:`${f} -`;let I=this.countDigitsBeforeCaret(i,n),D;if(I<=8){let v=this.digitIndexToDmyCaretPos(Math.min(I,8));D=Math.min(v,f.length)}else{let v=u.length<8?f.length:f.length+3,S=Math.min(I-8,8),w=this.digitIndexToDmyCaretPos(S);D=v+Math.min(w,p.length)}this.inputValue=M;let $=!1;if(/^\d{2}\.\d{2}\.\d{4}$/.test(f)){let v=this.dmyToIso(f),S=v?a.parseLocalISO(v):null;S&&!this.isDisabled(S)&&this.inMinMax(S)&&this.rangeStart!==v&&(this.rangeStart=v,this.previewEnd=null,this.viewMonth=new Date(S.getFullYear(),S.getMonth(),1),this.focusedDate=a.startOfDayLocal(S),$=!0)}else this.rangeStart&&(this.rangeStart=null,$=!0),this.rangeEnd&&(this.rangeEnd=null,$=!0);if(/^\d{2}\.\d{2}\.\d{4}$/.test(p)&&this.rangeStart){let v=a.parseLocalISO(this.rangeStart),S=this.dmyToIso(p),w=S?a.parseLocalISO(S):null;if(!!w&&!this.isDisabled(w)&&this.inMinMax(w)){let[k,T]=a.compareDates(v,w)<=0?[v,w]:[w,v],P=a.isSameDay(k,T);if((this.allowSameDayRange||!P)&&!this.wouldRangeContainDisabled(k,T)){let C=a.toLocalISODate(a.startOfDayLocal(k)),_=a.toLocalISODate(a.startOfDayLocal(T));(this.rangeStart!==C||this.rangeEnd!==_)&&(this.rangeStart=C,this.rangeEnd=_,this.viewMonth=new Date(T.getFullYear(),T.getMonth(),1),this.focusedDate=a.startOfDayLocal(T),$=!0)}}}else this.rangeEnd&&(this.rangeEnd=null,$=!0);this.showInvalidStyle=!1,this.showValidStyle=!!(this.rangeStart&&this.rangeEnd),$&&(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 S;let v=(S=this.input)!=null?S:e;v&&(v.value=this.inputValue,v.setSelectionRange(D,D))})})}else{let d=e,u=d.value,c=(m=d.selectionStart)!=null?m:u.length,f=u.replace(/\D/g,"").slice(0,8),p=f.slice(0,2),M=f.slice(2,4),I=f.slice(4,8),D="";p.length>0&&(D+=p,p.length===2&&(D+=".")),M.length>0&&p.length===2&&(D+=M,M.length===2&&(D+=".")),I.length>0&&p.length===2&&M.length===2&&(D+=I),D=D.replace(/\.\.+/g,".");let $=this.inputValue||"";this.inputValue=D;let v=c,S=L=>{let C=[];for(let _=0;_<L.length;_++)L[_]==="."&&C.push(_);return C},w=S($),O=S(D),k=w.filter(L=>L<c).length,P=O.filter(L=>L<c).length-k;if(P>0?v+=P:!w.includes(c)&&O.includes(c)&&(v+=1),v=Math.min(Math.max(0,v),D.length),requestAnimationFrame(()=>{var C;let L=(C=this.input)!=null?C:d;L&&(L.value=this.inputValue,L.setSelectionRange(v,v))}),/^\d{2}\.\d{2}\.\d{4}$/.test(D)){let L=this.parseInputText(D);this.applyParsedInput(L)}else this.showInvalidStyle=!1,this.showValidStyle=!1;return}if(!this.open&&this.hasFocus&&!this.disabled&&!this.visuallyDisabled&&this.show(),this.range){let d=this.rangeStart?a.parseLocalISO(this.rangeStart):null,u=this.rangeEnd?a.parseLocalISO(this.rangeEnd):null;d&&!u?this.setNavStatus(`${this.termStartSelected()}: ${this.formatSelectionLabel(d)}`):d&&u&&this.setNavStatus(`${this.termStartSelected()}: ${this.formatSelectionLabel(d)}; ${this.termEndSelected()}: ${this.formatSelectionLabel(u)}`)}else if(this.value){let d=a.parseLocalISO(this.value);this.setNavStatus(`${this.formatSelectionLabel(d)}`)}};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,i,n)=>{if(!(this.disabled||this.visuallyDisabled||this.readonly)){if(t.key==="Tab"&&!t.shiftKey){n&&(t.preventDefault(),t.stopPropagation(),this.tabbingIntoGrid=!0,this.focusInitialGridDay());return}(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),t.stopPropagation(),e==="month"?this.setMonth(i):this.setYear(i))}};this.onKeyDown=t=>{var s,l;if(this.disabled||this.visuallyDisabled||this.readonly){t.preventDefault(),t.stopPropagation();return}let e=t.key,i=!0,n=new Date(this.focusedDate);switch(e){case"ArrowLeft":n.setDate(n.getDate()-1);break;case"ArrowRight":n.setDate(n.getDate()+1);break;case"ArrowUp":n.setDate(n.getDate()-7);break;case"ArrowDown":n.setDate(n.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:i=!1}if(i){t.preventDefault();let h=(s=this.viewMonth)!=null?s:this.ensureViewMonth();if(n.getMonth()!==h.getMonth()||n.getFullYear()!==h.getFullYear()){let d=new Date(n.getFullYear(),n.getMonth(),1);this.viewMonth=d;let u=this.formatMonthYear(d);this.setNavStatus(u)}let y=a.startOfDayLocal(n);y.getTime()!==((l=this.focusedDate)==null?void 0:l.getTime())&&(this.focusedDate=y);let m=y.toLocaleDateString(this.locale,{weekday:"long",day:"numeric",month:"long",year:"numeric"});this.setNavStatus(m),this.requestUpdate(),requestAnimationFrame(()=>{let d=this.shadowRoot,u=d==null?void 0:d.querySelector("button.day.focused");u==null||u.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(){var l;super.connectedCallback(),this.syncDisabledDatesSet(),document.addEventListener("click",this.handleOutsideClick),this.addEventListener("focusout",this.onFocusOut),this.updateComplete.then(()=>{this.formControlController.updateValidity()});let t=this.value?a.parseLocalISO(this.value):null,e=this.rangeStart?a.parseLocalISO(this.rangeStart):null,i=a.startOfDayLocal(new Date),n=this.range&&e?e:t!=null?t:i,s=(l=this.viewMonth)!=null?l:new Date(n.getFullYear(),n.getMonth(),1);this.viewMonth=s,this.focusedDate=a.clampDateToMonth(n,s),(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()}handleViewMonthChange(){var i;if(!this.viewMonth)return;let t=this.focusedDate||this.range&&this.rangeEnd&&a.parseLocalISO(this.rangeEnd)||this.range&&this.rangeStart&&a.parseLocalISO(this.rangeStart)||this.value&&a.parseLocalISO(this.value)||this.today;if(!t)return;let e=a.clampDateToMonth(t,this.viewMonth);e.getTime()!==((i=this.focusedDate)==null?void 0:i.getTime())&&(this.focusedDate=e)}handleDisabledDatesChange(){this.syncDisabledDatesSet(),this.requestUpdate()}handleValueChange(){let t=this.value?a.parseLocalISO(this.value):null;t&&(this.viewMonth=new Date(t.getFullYear(),t.getMonth(),1),this.focusedDate=a.startOfDayLocal(t)),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var i;let e=this.input;if(e){e.value=(i=this.inputValue)!=null?i:"";let n=e.value.length;e.setSelectionRange(n,n)}this.formControlController.updateValidity()}),this.emit("sd-change",{detail:{value:this.value,rangeStart:this.rangeStart,rangeEnd:this.rangeEnd}})}handleRangeChange(){let t=this.rangeStart?a.parseLocalISO(this.rangeStart):null,e=this.rangeEnd?a.parseLocalISO(this.rangeEnd):null,i=t!=null?t:e;i&&(this.viewMonth=new Date(i.getFullYear(),i.getMonth(),1),this.focusedDate=a.startOfDayLocal(i)),this.previewEnd!==null&&(this.previewEnd=null),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var s;let n=this.input;if(n){n.value=(s=this.inputValue)!=null?s:"";let l=n.value.length;n.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 a.parseLocalISO(t)}inMinMax(t){let e=s=>{if(s==null)return null;if(s instanceof Date)return a.startOfDayLocal(s);if(typeof s=="number")return a.startOfDayLocal(new Date(s));if(typeof s=="string"){let l=this.parseISO(s);return l?a.startOfDayLocal(l):null}return null},i=e(this.min),n=e(this.max);return!(i&&t<i||n&&t>n)}isInDisabledDates(t){if(!this.disabledDatesSet||this.disabledDatesSet.size===0)return!1;let e=t.getFullYear(),i=String(t.getMonth()+1).padStart(2,"0"),n=String(t.getDate()).padStart(2,"0"),s=`${e}-${i}-${n}`;return this.disabledDatesSet.has(s)}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 i="\u200B".repeat(this.statusBumpCounter%3);this.statusSelectText=t+i},e)}formatSelectionLabel(t){if(this.locale==="de-DE")return t.toLocaleDateString("de-DE",{day:"numeric",month:"long",year:"numeric"});let e=t.getDate(),i=this.ordinal(e),n=t.toLocaleDateString("en-US",{month:"long"}),s=t.getFullYear();return`${i} of ${n} ${s}`}ordinal(t){let e=["th","st","nd","rd"],i=t%100,n=e[(i-20)%10]||e[i]||e[0];return t+n}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 i=JSON.parse(e);Array.isArray(i)&&(t=i)}catch(i){t=[]}else e.length>0&&(t=e.split(",").map(i=>i.trim()).filter(Boolean))}this.disabledDatesSet=new Set(t)}wouldRangeContainDisabled(t,e){let i=a.compareDates(t,e)<=0?a.startOfDayLocal(t):a.startOfDayLocal(e),n=a.compareDates(t,e)<=0?a.startOfDayLocal(e):a.startOfDayLocal(t),s=new Date(i);for(;a.compareDates(s,n)<=0;){if(this.isDisabled(s))return!0;s.setDate(s.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=a.parseLocalISO(t);if(e||(e=a.parseLocalISO(t.replace(/-/g,"."))),!e)return"";let i=String(e.getDate()).padStart(2,"0"),n=String(e.getMonth()+1).padStart(2,"0"),s=String(e.getFullYear());return`${i}.${n}.${s}`}dmyToIso(t){if(!t)return null;let e=t.match(/^(\d{2})\.(\d{2})\.(\d{4})$/);if(!e)return null;let i=Number(e[1]),n=Number(e[2]),s=Number(e[3]),l=new Date(s,n-1,i);if(l.getFullYear()!==s||l.getMonth()!==n-1||l.getDate()!==i)return null;let h=a.startOfDayLocal(l);return a.toLocalISODate(h)}formatInputValue(){let t=(this.locale||"").toLowerCase(),e=(this.getAttribute("lang")||"").toLowerCase(),n=t.startsWith("de")||e.startsWith("de")?"\u2013":"-";if(!this.range)return this.isoToDmy(this.value);let s=this.isoToDmy(this.rangeStart),l=this.isoToDmy(this.rangeEnd);return s&&l?`${s} ${n} ${l}`:s&&!l?`${s} ${n}`:""}parseInputText(t){var n,s;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 g=this.dmyToIso(h);return g?{start:g,end:null,valid:!0}:{start:null,end:null,valid:!1}}else if(l.length>=2){let h=(n=l[0])!=null?n:"",g=(s=l[1])!=null?s:"",y=h?this.dmyToIso(h):null,m=g?this.dmyToIso(g):null;return h&&!y?{start:null,end:null,valid:!1}:g&&!m?{start:null,end:null,valid:!1}:{start:y,end:m,valid:!0}}return{start:null,end:null,valid:!1}}if(!e)return{single:null,valid:!0};let i=this.dmyToIso(e);return i?{single:i,valid:!0}:{single:null,valid:!1}}applyParsedInput(t){var h,g,y,m;if(!t.valid)return this.showInvalidStyle=!0,this.showValidStyle=!1,this.formControlController.setValidity(!1),!1;let e=d=>{if(!d)return!0;let u=a.parseLocalISO(d);return!(!this.inMinMax(u)||this.isDisabled(u))},i=!1;if(this.range){let d=(h=t.start)!=null?h:null,u=(g=t.end)!=null?g:null;if(!e(d)||u&&!e(u))return this.showInvalidStyle=!0,this.showValidStyle=!1,!1;let c=d?a.parseLocalISO(d):null,f=u?a.parseLocalISO(u):null;if(c&&f){if(a.compareDates(c,f)>0){let I=c;c=f,f=I}if(!this.allowSameDayRange&&a.isSameDay(c,f))return this.showInvalidStyle=!0,this.showValidStyle=!1,!1;if(this.wouldRangeContainDisabled(c,f))return this.showInvalidStyle=!0,this.showValidStyle=!1,!1}let p=c?a.toLocalISODate(a.startOfDayLocal(c)):null,M=f?a.toLocalISODate(a.startOfDayLocal(f)):null;if(this.rangeStart!==p||this.rangeEnd!==M){this.rangeStart=p,this.rangeEnd=M,this.previewEnd=null,i=!0;let I=(y=c!=null?c:f)!=null?y:this.today;this.viewMonth=new Date(I.getFullYear(),I.getMonth(),1),this.focusedDate=a.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 n=(m=t.single)!=null?m:null;if(!e(n))return this.input.setCustomValidity(this.localize.term("datePickerRange")),this.formControlController.setValidity(!1),this.showInvalidStyle=!0,this.showValidStyle=!1,!1;let s=n?a.parseLocalISO(n):null,l=s?a.toLocalISODate(a.startOfDayLocal(s)):null;return this.value!==l&&(this.value=l,i=!0,s&&(this.viewMonth=new Date(s.getFullYear(),s.getMonth(),1),this.focusedDate=a.startOfDayLocal(s)),this.emit("sd-select",{detail:{value:this.value,date:s!=null?s:null}})),this.showInvalidStyle=!1,this.showValidStyle=!!this.value,this.inputValue=this.formatInputValue(),i}buildDmyFromDigits(t){let e=t.slice(0,8),i=e.slice(0,2),n=e.slice(2,4),s=e.slice(4,8),l=i;return n.length&&(l+="."+n),s.length&&(l+="."+s),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 i,n;((n=(i=t.composedPath)==null?void 0:i.call(t))!=null?n:[]).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){var s;let e=(s=this.viewMonth)!=null?s:this.ensureViewMonth(),i=new Date(e.getFullYear(),e.getMonth()+t,1);if(i.getMonth()===e.getMonth()&&i.getFullYear()===e.getFullYear())return;this.viewMonth=i;let n=this.formatMonthYear(i);this.setNavStatus(n),this.emit("sd-month-change",{detail:{month:i}})}setYear(t){var s;let e=(s=this.viewMonth)!=null?s:this.ensureViewMonth(),i=new Date(e.getFullYear()+t,e.getMonth(),1);if(i.getFullYear()===e.getFullYear()&&i.getMonth()===e.getMonth())return;this.viewMonth=i;let n=this.formatMonthYear(i);this.setNavStatus(n),this.emit("sd-month-year",{detail:{month:i}})}focusInitialGridDay(){var n;let t=null;if(!this.range&&this.value){let s=a.parseLocalISO(this.value);s&&(t=a.startOfDayLocal(s))}if(this.range){let s=this.rangeStart?a.parseLocalISO(this.rangeStart):null,l=this.rangeEnd?a.parseLocalISO(this.rangeEnd):null;l?t=a.startOfDayLocal(l):s&&(t=a.startOfDayLocal(s))}let e=(n=this.viewMonth)!=null?n:this.ensureViewMonth();if(!(s=>s?s.getFullYear()===e.getFullYear()&&s.getMonth()===e.getMonth()&&!this.isDisabled(s):!1)(t)){let{weeks:s}=this.getMonthMatrix(e),l=s.flat().find(h=>h.getMonth()===e.getMonth()&&a.isSameDay(h,this.today)&&!this.isDisabled(h));if(l)t=a.startOfDayLocal(l);else{let h=s.flat().find(g=>g.getMonth()===e.getMonth()&&!this.isDisabled(g));t=h?a.startOfDayLocal(h):null}}t&&(this.focusedDate=t),this.requestUpdate(),requestAnimationFrame(()=>{let s=this.shadowRoot,l=(s==null?void 0:s.querySelector("button.day.selected"))||(s==null?void 0:s.querySelector("button.day.focused"))||(s==null?void 0:s.querySelector('button.day[tabindex="0"]'))||(s==null?void 0:s.querySelector("button.day"));l==null||l.focus({preventScroll:!0})})}selectSingleDate(t){if(this.readonly||this.isDisabled(t))return;let e=a.startOfDayLocal(t),i=a.toLocalISODate(e);if(this.value===i)return;this.value=i;let n=`${this.formatSelectionLabel(e)}, ${this.localize.term("selected")}`;this.announceSelect(n),this.emit("sd-select",{detail:{value:this.value,date:e}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var l;let s=this.input;s&&(s.value=(l=this.inputValue)!=null?l:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let h=s.value.length;s.setSelectionRange(h,h)})}))})}selectRangeDate(t){if(this.readonly)return;let e=a.startOfDayLocal(t),i=this.rangeStart?a.parseLocalISO(this.rangeStart):null,n=this.rangeEnd?a.parseLocalISO(this.rangeEnd):null;if(!i&&!n){if(this.isDisabled(e))return;this.rangeStart=a.toLocalISODate(e),this.rangeEnd=null,this.previewEnd=null;let s=this.formatSelectionLabel(e);this.announceSelect(`${this.termStartSelected()}: ${s}`,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 g=l.value.length;l.setSelectionRange(g,g)})}))});return}if(i&&!n){if(this.isDisabled(e))return;if(a.isSameDay(i,e)){if(!this.allowSameDayRange){this.rangeStart=a.toLocalISODate(e),this.rangeEnd=null,this.previewEnd=null;let d=this.formatSelectionLabel(e);this.announceSelect(`${this.termStartSelected()}: ${d}`,40),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var c;let u=this.input;u&&(u.value=(c=this.inputValue)!=null?c:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let f=u.value.length;u.setSelectionRange(f,f)})}))});return}this.rangeStart=a.toLocalISODate(e),this.rangeEnd=a.toLocalISODate(e),this.previewEnd=null;let m=this.formatSelectionLabel(e);this.announceSelect(`${this.termStartSelected()}: ${m}`,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 u;let d=this.input;d&&(d.value=(u=this.inputValue)!=null?u:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let c=d.value.length;d.setSelectionRange(c,c)})}))});return}let s=a.parseLocalISO(this.rangeStart);if(this.wouldRangeContainDisabled(s,e))return;let[l,h]=a.compareDates(s,e)<=0?[s,e]:[e,s];this.rangeStart=a.toLocalISODate(l),this.rangeEnd=a.toLocalISODate(h),this.previewEnd=null;let g=this.formatSelectionLabel(l),y=this.formatSelectionLabel(h);this.announceSelect(`${this.termStartSelected()}: ${g}`,40),this.announceSelect(`${this.termEndSelected()}: ${y}`,140),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var d;let m=this.input;m&&(m.value=(d=this.inputValue)!=null?d:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let u=m.value.length;m.setSelectionRange(u,u)})}))});return}if(i&&n){if(this.isDisabled(e))return;this.rangeStart=a.toLocalISODate(e),this.rangeEnd=null,this.previewEnd=null;let s=this.formatSelectionLabel(e);this.announceSelect(`${this.termStartSelected()}: ${s}`,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 g=l.value.length;l.setSelectionRange(g,g)})}))})}}selectDate(t){this.readonly||(this.range?this.selectRangeDate(t):this.selectSingleDate(t))}ensureViewMonth(){if(this.viewMonth)return this.viewMonth;let t=this.value?a.parseLocalISO(this.value):null,e=this.rangeStart?a.parseLocalISO(this.rangeStart):null,i=a.startOfDayLocal(new Date),n=this.range&&e?e:t!=null?t:i,s=new Date(n.getFullYear(),n.getMonth(),1);return this.viewMonth=s,s}getMonthMatrix(t){var y;let e=(y=this.firstDayOfWeek)!=null?y:1,i=new Date(t.getFullYear(),t.getMonth(),1),n=new Date(i),s=(i.getDay()-e+7)%7;n.setDate(i.getDate()-s);let l=[],h=n;for(let m=0;m<6;m++){let d=[];for(let u=0;u<7;u++)d.push(new Date(h)),h.setDate(h.getDate()+1);l.push(d)}let g=m=>m.every(d=>d.getMonth()!==t.getMonth());for(;l.length>0&&g(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 n;let t=(n=this.firstDayOfWeek)!=null?n:1,e=new Date(2021,7,1),i=[];for(let s=0;s<7;s++){let l=new Date(e);l.setDate(e.getDate()+(t+s)%7);try{i.push(new Intl.DateTimeFormat(this.locale,{weekday:"short"}).format(l))}catch(h){i.push(l.toLocaleDateString(void 0,{weekday:"short"}))}}return i}getTabTargetDayForCurrentView(t){var s;let e=(s=this.viewMonth)!=null?s:this.ensureViewMonth(),i=t.flat().find(l=>l.getMonth()===e.getMonth()&&a.isSameDay(l,this.today)&&!this.isDisabled(l));if(i)return a.startOfDayLocal(i);let n=t.flat().find(l=>l.getMonth()===e.getMonth()&&!this.isDisabled(l));return n?a.startOfDayLocal(n):null}onDayMouseEnter(t){if(!this.range||this.readonly)return;let e=this.rangeStart?a.parseLocalISO(this.rangeStart):null,i=this.rangeEnd?a.parseLocalISO(this.rangeEnd):null;if(e&&!i){let n=a.startOfDayLocal(t);this.previewEnd=this.isDisabled(n)?null:n,this.requestUpdate()}}onGridMouseLeave(){this.previewEnd!==null&&(this.previewEnd=null,this.requestUpdate())}renderCalendar(){var d,u;let t=(d=this.viewMonth)!=null?d:this.ensureViewMonth(),{weeks:e}=this.getMonthMatrix(t),i=this.formatMonthYear(t),n=this.weekdayLabels(),s=this.value?this.parseISO(this.value):null,l=this.rangeStart?this.parseISO(this.rangeStart):null,h=this.rangeEnd?this.parseISO(this.rangeEnd):null,g=this.previewEnd,y=c=>!this.range||!l||h||!g?!1:a.isBetweenInclusive(c,l,g),m=this.getTabTargetDayForCurrentView(e);return V`<div part="datepicker" class="${x("w-[284px] z-50 bg-white py-3 px-4",this.open?"block shadow-listbox":"hidden",(u=this.currentPlacement)!=null&&u.startsWith("bottom")?"border-r-2 border-b-2 border-l-2 form-control__listbox-border-bottom-right-radius form-control__listbox-border-bottom-left-radius":"border-r-2 border-t-2 border-l-2 form-control__listbox-border-top-right-radius form-control__listbox-border-top-left-radius","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="${c=>this.handleHeaderKeyDown(c,"year",-1,!1)}" aria-label="${this.localize.term("previousYear")}"><sd-6-22-2-icon library="_internal" name="chevrons-sm-left" class="h-6 w-6"></sd-6-22-2-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="${c=>this.handleHeaderKeyDown(c,"month",-1,!1)}" aria-label="${this.localize.term("previousMonth")}"><sd-6-22-2-icon library="_internal" name="chevron-sm-left" class="h-6 w-6"></sd-6-22-2-icon></button></div><div tabindex="-1" class="month-label flex justify-center sd-headline sd-headline--size-base" part="month-label" aria-live="polite">${i}</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="${c=>this.handleHeaderKeyDown(c,"month",1,!1)}" aria-label="${this.localize.term("nextMonth")}"><sd-6-22-2-icon library="_internal" name="chevron-sm-right" class="h-6 w-6"></sd-6-22-2-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="${c=>this.handleHeaderKeyDown(c,"year",1,!0)}" aria-label="${this.localize.term("nextYear")}"><sd-6-22-2-icon library="_internal" name="chevrons-sm-right" class="h-6 w-6"></sd-6-22-2-icon></button></div></div><sd-6-22-2-divider></sd-6-22-2-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="${i}" part="grid" @mouseleave="${this.onGridMouseLeave}" @focusin="${()=>{this.tabbingIntoGrid=!1}}"><div class="grid-row grid-head grid grid-cols-7 gap-y-[1px]" role="row">${n.map((c,f)=>V`<div role="columnheader" aria-colindex="${f+1}" part="weekday" class="cell head flex items-center justify-center font-bold text-black text-sm leading-none h-8" aria-label="${c}" title="${c}" id="${"col-"+(f+1)}">${c}</div>`)}</div>${e.map((c,f)=>V`<div class="grid-row grid grid-cols-7 ${f===0?"mt-2":""}" role="row" aria-rowindex="${f+2}">${c.map((p,M)=>{let I=p.getMonth()===t.getMonth(),D=this.isDisabled(p)||!this.inMinMax(p),$=a.isSameDay(p,this.focusedDate),v=a.isSameDay(p,this.today),S=!this.range&&s?a.isSameDay(p,s):!1,w=this.range&&l?a.isSameDay(p,l):!1,O=this.range&&h?a.isSameDay(p,h):!1,k=this.range&&l&&h?a.isBetweenInclusive(p,l,h):!1,T=y(p)&&!D,P=-1,L=m&&a.isSameDay(p,m);(this.tabbingIntoGrid&&L||!this.tabbingIntoGrid&&$)&&(P=0);let C=this.isWeekend(p),_=p.toLocaleDateString(this.locale,{weekday:"long",day:"numeric",month:"long",year:"numeric"}),B=w?this.localize.term("startDateSelected"):O?this.localize.term("endDateSelected"):void 0;return V`<button type="button" part="day" class="${x("cell day flex items-center justify-center focus-visible:outline focus:outline-2 focus:outline-primary -outline-offset-2 rounded w-[36px]",this.size==="sm"?"text-sm h-6":"text-base h-8",w||O?$?"outline-none sd-6-22-2-datepicker__date-item--selected--hover-color-background sd-6-22-2-datepicker__date-item--selected--hover-color-text":"outline-none sd-6-22-2-datepicker__date-item--selected-color-background sd-6-22-2-datepicker__date-item--selected-color-text hover:sd-6-22-2-datepicker__date-item--selected--hover-color-background hover:sd-6-22-2-datepicker__date-item--selected--hover-color-text":"hover:sd-6-22-2-datepicker__date-item--hover--default-color-text",!w&&!O&&!k&&"hover:sd-6-22-2-datepicker__date-item--hover--default-color-background",S?"selected outline-none border-primary sd-6-22-2-datepicker__date-item--selected-color-background sd-6-22-2-datepicker__date-item--selected-color-text hover:sd-6-22-2-datepicker__date-item--selected--hover-color-text hover:sd-6-22-2-datepicker__date-item--selected--hover-color-background":I?this.isInDisabledDates(p)||!this.inMinMax(p)?"out-month text-neutral-500":this.disabledWeekends&&C?"weekend-day text-neutral-500":"in-month sd-6-22-2-datepicker__date-item--default-color-text":this.disabledWeekends&&C?"out-month weekend-day text-neutral-500":C?"out-month weekend-day text-neutral-700":"out-month text-neutral-700 hover:sd-6-22-2-datepicker__date-item--hover--prev-next-color-text hover:sd-6-22-2-datepicker__date-item--hover--prev-next-color-background",w?"rounded-l-md rounded-r-none":"",O?"range-end rounded-r-md rounded-l-none":"",k&&!w&&!O?"in-range selected sd-6-22-2-datepicker__date-item--range-color-background rounded-none hover:sd-6-22-2-datepicker__date-item--selected--hover-color-background hover:sd-6-22-2-datepicker__date-item--selected--hover-color-text":"",!k&&T&&!w&&!O?"in-preview-range bg-primary-100 text-primary-500 rounded-none":"",v&&!S&&!w&&!O&&$?"today border-[1px] border-primary sd-6-22-2-datepicker__date-item--current-font-weight":"",D?"disabled cursor-not-allowed hover:bg-transparent":"cursor-pointer",$&&!v?"focused outline outline-2 outline-primary":"")}" role="gridcell" aria-colindex="${M+1}" aria-labelledby="${"col-"+(M+1)}" .tabIndex="${P}" ?disabled="${D||this.disabled||this.readonly}" aria-disabled="${D||this.visuallyDisabled||this.disabled||this.readonly?"true":"false"}" aria-selected="${S||k||w||O?"true":"false"}" aria-current="${v?"date":R}" aria-label="${_}" aria-roledescription="${B!=null?B:R}" @focus="${()=>this.focusedDate=a.startOfDayLocal(p)}" @mouseenter="${()=>this.onDayMouseEnter(p)}" @keydown="${this.onKeyDown}" @click="${()=>{this.focusedDate=a.startOfDayLocal(p),this.selectDate(p)}}">${p.getDate()}</button>`})}</div>`)}</div></div>`}render(){var c,f;let t={label:this.hasSlotController.test("label"),helpText:this.hasSlotController.test("help-text"),tooltip:this.hasSlotController.test("tooltip")},e=this.label?!0:!!t.label,i=this.helpText?!0:!!t.helpText,n=!!t.tooltip,s=this.value!==null&&String(this.value).length>0||this.range&&this.rangeStart!==null||this.rangeEnd!==null,l=this.floatingLabel&&e&&(this.hasFocus||this.open||s)&&!this.disabled&&!this.visuallyDisabled,h=this.disabled||this.visuallyDisabled?"text-neutral-500":"icon-color",g={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],y={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size],m=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",d={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:"form-control-color-border"}[m],u=this.size==="sm"?"text-sm":"text-base";return V`<div part="form-control" class="${x("min-w-[284px]",this.open&&"z-50",(this.disabled||this.visuallyDisabled)&&"cursor-not-allowed")}">${e&&!this.floatingLabel||n?V`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${x(e?"inline-block":"hidden",this.visuallyDisabled||this.disabled?"text-neutral-500":"form-control-color-text",u)}" for="input" aria-hidden="${e?"false":"true"}"><slot name="label">${this.label}</slot></label> ${t.tooltip?V`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${x("relative w-full",this.disabled&&"pointer-events-none",this.visuallyDisabled&&"cursor-not-allowed")}">${e&&this.floatingLabel?V`<label id="label" part="form-control-floating-label" class="${x("absolute left-4 z-20 pointer-events-none transition-all duration-200 form-control--filled__floating-label-color-text",l?this.size==="lg"?"top-2 text-xs":"top-1 text-xs":"top-1/2 -translate-y-1/2 form-control-color-text",l&&"mt-1")}" for="input"><span class="${x("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="${x("absolute top-0 w-full h-full pointer-events-none border form-control-border-radius z-10 transition-[border] duration-medium ease-in-out",d,this.open&&((c=this.currentPlacement)!=null&&c.startsWith("bottom")?this.open&&this.alignment==="left"?"rounded-bl-none":"rounded-br-none":this.open&&this.alignment==="left"?"rounded-tl-none":"rounded-tr-none"))}"></div><sd-6-22-2-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${x("inline-flex relative w-full",(f=this.currentPlacement)!=null&&f.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="${x("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:[@media(hover:hover)]:form-control--hover-color-background":"",this.readonly?"form-control--read-only-color-background":"bg-white",m==="disabled"||m==="visuallyDisabled"?"text-neutral-500":"text-black",m==="invalid"&&"form-control--invalid-color-background",m==="active"&&"shadow")}" slot="anchor"><input id="input" type="text" role="combobox" aria-expanded="${this.open?"true":"false"}" aria-haspopup="dialog" aria-controls="calendar-grid" aria-describedby="${i?"help-text":void 0}" aria-invalid="${this.showInvalidStyle?"true":"false"}" aria-label="${this.range?"Select date range":"Select a date"}" class="${x("min-w-0 grow focus:outline-none bg-transparent hover:cursor-pointer text-black",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],u,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?V`<sd-6-22-2-icon part="invalid-icon" class="${x("text-error",g,y)}" library="_internal" name="risk"></sd-6-22-2-icon>`:""} ${this.showValidStyle&&this.styleOnValid?V`<sd-6-22-2-icon class="${x("text-success shrink-0",g,y)}" library="_internal" name="confirm-circle" part="valid-icon"></sd-6-22-2-icon>`:""}<sd-6-22-2-icon class="${x(h,g,y,"hover:cursor-pointer")}" library="_internal" name="calendar" @click="${this.show}"></sd-6-22-2-icon></div>${this.renderCalendar()}</sd-6-22-2-popup></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${x("text-sm mt-1",i?"block":"hidden",this.visuallyDisabled||this.disabled?"text-neutral-500":"text-neutral-700")}" aria-hidden="${!i}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage(this.size)}`}};r.styles=[...A.styles,q`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
+ :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}.today:hover{border-color:rgba(var(--sd-datepicker__date-item--hover--default-color-border,rgba(var(--sd-color-primary-500))))}.in-range,.today{color:rgba(var(--sd-datepicker__date-item--current-color-text,rgba(var(--sd-color-primary))))}.icon-color{color:rgb(var(--sd-color-icon-fill-primary))}.month-label{color:rgb(var(--sd-color-border-primary))!important}`],o([b({type:String,reflect:!0})],r.prototype,"locale",2),o([b({type:String,converter:z,reflect:!0})],r.prototype,"value",2),o([b({type:Boolean,reflect:!0})],r.prototype,"range",2),o([b({attribute:"range-start",converter:z,reflect:!0})],r.prototype,"rangeStart",2),o([b({attribute:"range-end",converter:z,reflect:!0})],r.prototype,"rangeEnd",2),o([b({type:Boolean})],r.prototype,"allowSameDayRange",2),o([b({type:String,converter:z,reflect:!0})],r.prototype,"min",2),o([b({type:String,converter:z,reflect:!0})],r.prototype,"max",2),o([b({attribute:"view-month",converter:K})],r.prototype,"viewMonth",2),o([b({type:Number})],r.prototype,"firstDayOfWeek",2),o([b({type:Boolean,reflect:!0,attribute:"disabled-weekends"})],r.prototype,"disabledWeekends",2),o([b({attribute:"disabled-dates",converter:G})],r.prototype,"disabledDates",2),o([b({attribute:!1})],r.prototype,"isDateDisabled",2),o([b({type:String,reflect:!0})],r.prototype,"size",2),o([b({type:String})],r.prototype,"alignment",2),o([b({type:String,reflect:!0})],r.prototype,"label",2),o([b({type:String,attribute:"help-text",reflect:!0})],r.prototype,"helpText",2),o([b({attribute:"floating-label",type:Boolean,reflect:!0})],r.prototype,"floatingLabel",2),o([b({type:Boolean,reflect:!0})],r.prototype,"disabled",2),o([b({type:Boolean,reflect:!0})],r.prototype,"required",2),o([b({type:Boolean,attribute:"visually-disabled"})],r.prototype,"visuallyDisabled",2),o([b({type:Boolean,reflect:!0,attribute:"style-on-valid"})],r.prototype,"styleOnValid",2),o([b({type:Boolean,reflect:!0})],r.prototype,"readonly",2),o([b({type:String,reflect:!0})],r.prototype,"placement",2),o([b({type:String,reflect:!0})],r.prototype,"placeholder",2),o([b({reflect:!0})],r.prototype,"name",2),o([b({type:String,reflect:!0})],r.prototype,"form",2),o([E()],r.prototype,"open",2),o([E()],r.prototype,"focusedDate",2),o([E()],r.prototype,"today",2),o([E()],r.prototype,"disabledDatesSet",2),o([E()],r.prototype,"previewEnd",2),o([E()],r.prototype,"statusNavText",2),o([E()],r.prototype,"statusSelectText",2),o([E()],r.prototype,"hasFocus",2),o([E()],r.prototype,"showValidStyle",2),o([E()],r.prototype,"showInvalidStyle",2),o([E()],r.prototype,"currentPlacement",2),o([E()],r.prototype,"inputValue",2),o([Y("sd-6-22-2-popup")],r.prototype,"popup",2),o([Y("#invalid-message")],r.prototype,"invalidMessage",2),o([Y("#input")],r.prototype,"input",2),o([F("open",{waitUntilFirstUpdate:!0})],r.prototype,"handleOpenChange",1),o([F("locale")],r.prototype,"handleLocaleChange",1),o([F("viewMonth")],r.prototype,"handleViewMonthChange",1),o([F("disabledDates")],r.prototype,"handleDisabledDatesChange",1),o([F("value")],r.prototype,"handleValueChange",1),o([F("rangeStart"),F("rangeEnd")],r.prototype,"handleRangeChange",1),o([F(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],r.prototype,"handleDisabledChange",1),o([F(["size","floatingLabel"])],r.prototype,"handleSizeChange",1),r=o([H("sd-6-22-2-datepicker")],r);export{r as a};
@@ -1,2 +1,2 @@
1
- import{a as o}from"./chunk.UFTAQNZB.js";import{a as i,b as a,h as r}from"./chunk.XJAJO727.js";import{b as l,e as s}from"./chunk.OBAEIKIV.js";import{e}from"./chunk.6EV4YU6C.js";var t=class extends r{constructor(){super(...arguments);this.variant="rectangular"}render(){return s`<div part="base" aria-hidden="true" class="${o("sd-6-22-1-skeleton-color w-full h-full animate-pulse",{rectangular:"rounded-sm",circular:"rounded-full inline-block"}[this.variant])}"><slot></slot></div>`}};t.styles=[...r.styles,l`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
- :host{display:block}::slotted(*){visibility:hidden}`],e([a({type:String,reflect:!0})],t.prototype,"variant",2),t=e([i("sd-6-22-1-skeleton")],t);export{t as a};
1
+ import{a as o}from"./chunk.UFTAQNZB.js";import{a as i,b as a,h as r}from"./chunk.MJMWCFYX.js";import{b as l,e as s}from"./chunk.OBAEIKIV.js";import{e}from"./chunk.6EV4YU6C.js";var t=class extends r{constructor(){super(...arguments);this.variant="rectangular"}render(){return s`<div part="base" aria-hidden="true" class="${o("sd-6-22-2-skeleton-color w-full h-full animate-pulse",{rectangular:"rounded-sm",circular:"rounded-full inline-block"}[this.variant])}"><slot></slot></div>`}};t.styles=[...r.styles,l`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
+ :host{display:block}::slotted(*){visibility:hidden}`],e([a({type:String,reflect:!0})],t.prototype,"variant",2),t=e([i("sd-6-22-2-skeleton")],t);export{t as a};
@@ -1,2 +1,2 @@
1
- import{a as C}from"./chunk.2AQOPKKH.js";import{a as M}from"./chunk.G7HKVXLR.js";import{a as y,b as v}from"./chunk.3L472FD4.js";import{a as f}from"./chunk.LHSR56PH.js";import{a as k}from"./chunk.CGQ2BPPZ.js";import{a,c as s}from"./chunk.B2NUKX6G.js";import{a as m}from"./chunk.KLRPP4NQ.js";import{a as x}from"./chunk.VAM5SM3O.js";import{a as p}from"./chunk.UFTAQNZB.js";import{a as b}from"./chunk.NYKJXI3Q.js";import{a as w,b as h,d as c,h as u}from"./chunk.XJAJO727.js";import{b as g,e as l}from"./chunk.OBAEIKIV.js";import{b as n,e as d}from"./chunk.W4QBFD6E.js";import{e as o}from"./chunk.6EV4YU6C.js";var t=class extends u{constructor(){super(...arguments);this.hasSlotController=new k(this,"footer");this.localize=new x(this);this.open=!1;this.headline="";this.noCloseButton=!1}connectedCallback(){super.connectedCallback(),this.handleDocumentKeyDown=this.handleDocumentKeyDown.bind(this),this.modal=new C(this)}firstUpdated(){this.dialog.hidden=!this.open,this.open&&(this.addOpenListeners(),this.modal.activate(),y(this))}disconnectedCallback(){super.disconnectedCallback(),v(this)}get prefersReducedMotion(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}requestClose(e){if(this.emit("sd-request-close",{cancelable:!0,detail:{source:e}}).defaultPrevented){let i=s(this,"dialog.denyClose",{dir:this.localize.dir()});n(this.panel,i.keyframes,i.options);return}this.hide()}addOpenListeners(){document.addEventListener("keydown",this.handleDocumentKeyDown)}removeOpenListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown)}handleDocumentKeyDown(e){this.open&&e.key==="Escape"&&(e.stopPropagation(),this.requestClose("keyboard"))}async handleOpenChange(){if(this.open){this.emit("sd-show"),this.addOpenListeners(),this.originalTrigger=M(),this.modal.activate(),y(this);let e=this.querySelector("[autofocus]");e&&e.removeAttribute("autofocus"),await Promise.all([d(this.dialog),d(this.overlay)]),this.dialog.hidden=!1,requestAnimationFrame(()=>{this.emit("sd-initial-focus",{cancelable:!0}).defaultPrevented||(e?e.focus({preventScroll:!0}):this.panel.focus({preventScroll:!0})),e&&e.setAttribute("autofocus","")});let r=this.prefersReducedMotion?s(this,"dialog.showReducedMotion",{dir:this.localize.dir()}):s(this,"dialog.show",{dir:this.localize.dir()}),i=s(this,"dialog.overlay.show",{dir:this.localize.dir()});await Promise.all([n(this.panel,r.keyframes,r.options),n(this.overlay,i.keyframes,i.options)]),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),this.modal.deactivate(),await Promise.all([d(this.dialog),d(this.overlay)]);let e=this.prefersReducedMotion?s(this,"dialog.hideReducedMotion",{dir:this.localize.dir()}):s(this,"dialog.hide",{dir:this.localize.dir()}),r=s(this,"dialog.overlay.hide",{dir:this.localize.dir()});await Promise.all([n(this.overlay,r.keyframes,r.options).then(()=>{this.overlay.hidden=!0}),n(this.panel,e.keyframes,e.options).then(()=>{this.panel.hidden=!0})]),this.dialog.hidden=!0,this.overlay.hidden=!1,this.panel.hidden=!1,v(this);let i=this.originalTrigger;typeof(i==null?void 0:i.focus)=="function"&&i.isConnected&&setTimeout(()=>{try{i.focus({preventScroll:!0})}catch(L){i.focus()}this.originalTrigger=null}),this.emit("sd-after-hide")}}async show(){if(!this.open)return this.open=!0,m(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,m(this,"sd-after-hide")}render(){return l`<div part="base" class="${p("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" @click="${()=>this.requestClose("overlay")}" tabindex="-1"></div><div part="panel" class="${p("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="${f(this.headline?this.headline:void 0)}" aria-labelledby="${f(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?l`<span class="sd-headline sd-headline--size-3xl leading-tight">${this.headline}</span>`:l`<slot name="headline"></slot>`}</h2>${this.noCloseButton?"":l`<sd-6-22-1-button part="close-button" variant="tertiary" exportparts="base:close-button__base" class="${p("absolute top-2 right-2")}" name="x-lg" @click="${()=>this.requestClose("close-button")}" type="button"><sd-6-22-1-icon label="${this.localize.term("close")}" name="close" library="_internal" color="currentColor"></sd-6-22-1-icon></sd-6-22-1-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>`}};t.styles=[...u.styles,g`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
- :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%}}`],o([c('[part="base"]')],t.prototype,"dialog",2),o([c('[part="panel"]')],t.prototype,"panel",2),o([c('[part="overlay"]')],t.prototype,"overlay",2),o([h({type:Boolean,reflect:!0})],t.prototype,"open",2),o([h({type:String,reflect:!0})],t.prototype,"headline",2),o([h({attribute:"no-close-button",type:Boolean,reflect:!0})],t.prototype,"noCloseButton",2),o([b("open",{waitUntilFirstUpdate:!0})],t.prototype,"handleOpenChange",1),t=o([w("sd-6-22-1-dialog")],t);a("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"}});a("dialog.showReducedMotion",{keyframes:[{opacity:0},{opacity:1}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out",reducedMotion:"allow"}});a("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"}});a("dialog.hideReducedMotion",{keyframes:[{opacity:1},{opacity:0}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out",reducedMotion:"allow"}});a("dialog.denyClose",{keyframes:[{scale:1},{scale:1.02},{scale:1}],options:{duration:250}});a("dialog.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out",reducedMotion:"allow"}});a("dialog.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out",reducedMotion:"allow"}});export{t as a};
1
+ import{a as C}from"./chunk.2AQOPKKH.js";import{a as M}from"./chunk.G7HKVXLR.js";import{a as y,b as v}from"./chunk.3L472FD4.js";import{a as f}from"./chunk.LHSR56PH.js";import{a as k}from"./chunk.CGQ2BPPZ.js";import{a,c as s}from"./chunk.B2NUKX6G.js";import{a as m}from"./chunk.KLRPP4NQ.js";import{a as x}from"./chunk.VAM5SM3O.js";import{a as p}from"./chunk.UFTAQNZB.js";import{a as b}from"./chunk.NYKJXI3Q.js";import{a as w,b as h,d as c,h as u}from"./chunk.MJMWCFYX.js";import{b as g,e as l}from"./chunk.OBAEIKIV.js";import{b as n,e as d}from"./chunk.W4QBFD6E.js";import{e as o}from"./chunk.6EV4YU6C.js";var t=class extends u{constructor(){super(...arguments);this.hasSlotController=new k(this,"footer");this.localize=new x(this);this.open=!1;this.headline="";this.noCloseButton=!1}connectedCallback(){super.connectedCallback(),this.handleDocumentKeyDown=this.handleDocumentKeyDown.bind(this),this.modal=new C(this)}firstUpdated(){this.dialog.hidden=!this.open,this.open&&(this.addOpenListeners(),this.modal.activate(),y(this))}disconnectedCallback(){super.disconnectedCallback(),v(this)}get prefersReducedMotion(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}requestClose(e){if(this.emit("sd-request-close",{cancelable:!0,detail:{source:e}}).defaultPrevented){let i=s(this,"dialog.denyClose",{dir:this.localize.dir()});n(this.panel,i.keyframes,i.options);return}this.hide()}addOpenListeners(){document.addEventListener("keydown",this.handleDocumentKeyDown)}removeOpenListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown)}handleDocumentKeyDown(e){this.open&&e.key==="Escape"&&(e.stopPropagation(),this.requestClose("keyboard"))}async handleOpenChange(){if(this.open){this.emit("sd-show"),this.addOpenListeners(),this.originalTrigger=M(),this.modal.activate(),y(this);let e=this.querySelector("[autofocus]");e&&e.removeAttribute("autofocus"),await Promise.all([d(this.dialog),d(this.overlay)]),this.dialog.hidden=!1,requestAnimationFrame(()=>{this.emit("sd-initial-focus",{cancelable:!0}).defaultPrevented||(e?e.focus({preventScroll:!0}):this.panel.focus({preventScroll:!0})),e&&e.setAttribute("autofocus","")});let r=this.prefersReducedMotion?s(this,"dialog.showReducedMotion",{dir:this.localize.dir()}):s(this,"dialog.show",{dir:this.localize.dir()}),i=s(this,"dialog.overlay.show",{dir:this.localize.dir()});await Promise.all([n(this.panel,r.keyframes,r.options),n(this.overlay,i.keyframes,i.options)]),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),this.modal.deactivate(),await Promise.all([d(this.dialog),d(this.overlay)]);let e=this.prefersReducedMotion?s(this,"dialog.hideReducedMotion",{dir:this.localize.dir()}):s(this,"dialog.hide",{dir:this.localize.dir()}),r=s(this,"dialog.overlay.hide",{dir:this.localize.dir()});await Promise.all([n(this.overlay,r.keyframes,r.options).then(()=>{this.overlay.hidden=!0}),n(this.panel,e.keyframes,e.options).then(()=>{this.panel.hidden=!0})]),this.dialog.hidden=!0,this.overlay.hidden=!1,this.panel.hidden=!1,v(this);let i=this.originalTrigger;typeof(i==null?void 0:i.focus)=="function"&&i.isConnected&&setTimeout(()=>{try{i.focus({preventScroll:!0})}catch(L){i.focus()}this.originalTrigger=null}),this.emit("sd-after-hide")}}async show(){if(!this.open)return this.open=!0,m(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,m(this,"sd-after-hide")}render(){return l`<div part="base" class="${p("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" @click="${()=>this.requestClose("overlay")}" tabindex="-1"></div><div part="panel" class="${p("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="${f(this.headline?this.headline:void 0)}" aria-labelledby="${f(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?l`<span class="sd-headline sd-headline--size-3xl leading-tight">${this.headline}</span>`:l`<slot name="headline"></slot>`}</h2>${this.noCloseButton?"":l`<sd-6-22-2-button part="close-button" variant="tertiary" exportparts="base:close-button__base" class="${p("absolute top-2 right-2")}" name="x-lg" @click="${()=>this.requestClose("close-button")}" type="button"><sd-6-22-2-icon label="${this.localize.term("close")}" name="close" library="_internal" color="currentColor"></sd-6-22-2-icon></sd-6-22-2-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>`}};t.styles=[...u.styles,g`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
+ :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%}}`],o([c('[part="base"]')],t.prototype,"dialog",2),o([c('[part="panel"]')],t.prototype,"panel",2),o([c('[part="overlay"]')],t.prototype,"overlay",2),o([h({type:Boolean,reflect:!0})],t.prototype,"open",2),o([h({type:String,reflect:!0})],t.prototype,"headline",2),o([h({attribute:"no-close-button",type:Boolean,reflect:!0})],t.prototype,"noCloseButton",2),o([b("open",{waitUntilFirstUpdate:!0})],t.prototype,"handleOpenChange",1),t=o([w("sd-6-22-2-dialog")],t);a("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"}});a("dialog.showReducedMotion",{keyframes:[{opacity:0},{opacity:1}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out",reducedMotion:"allow"}});a("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"}});a("dialog.hideReducedMotion",{keyframes:[{opacity:1},{opacity:0}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out",reducedMotion:"allow"}});a("dialog.denyClose",{keyframes:[{scale:1},{scale:1.02},{scale:1}],options:{duration:250}});a("dialog.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out",reducedMotion:"allow"}});a("dialog.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out",reducedMotion:"allow"}});export{t as a};
@@ -1,2 +1,2 @@
1
- import{a as s}from"./chunk.LHSR56PH.js";import{a as l,b as d}from"./chunk.NL7YFV4O.js";import{a as f}from"./chunk.VAM5SM3O.js";import{a}from"./chunk.UFTAQNZB.js";import{a as u,b as i,d as b,h as n}from"./chunk.XJAJO727.js";import{b as h}from"./chunk.OBAEIKIV.js";import{e as r}from"./chunk.6EV4YU6C.js";var e=class extends n{constructor(){super(...arguments);this.localize=new f(this);this.size="lg";this.selected=!1;this.toggleable=!1;this.removable=!1;this.disabled=!1;this.href=""}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}handleRemove(){this.emit("sd-remove")}isLink(){return!!this.href}click(){this.tag.click()}focus(t){this.tag.focus(t)}blur(){this.tag.blur()}async hide(){this.emit("sd-hide"),this.style.opacity="0",await new Promise(t=>setTimeout(t,this.token("--sd-duration-fast",150))),this.hidden=!0,this.emit("sd-after-hide")}render(){let t=this.isLink(),o=this.removable&&!this.selected&&!this.toggleable,c=t?l`a`:o?l`div`:l`button`;return d`<${c} part="base" type="${s(t?void 0:"button")}" href="${s(t?this.href:void 0)}" rel="${s(t&&this.target?"noreferrer noopener":void 0)}" target="${s(t?this.target:void 0)}" download="${s(t?this.download:void 0)}" ?disabled="${s(t?void 0:this.disabled)}" aria-labelledby="content" aria-disabled="${this.disabled?"true":"false"}" aria-pressed="${s(this.toggleable?this.selected:void 0)}" tabindex="${this.disabled||o?"-1":"0"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" class="${a("flex border box-border sd-6-22-1-tag-border-radius items-center leading-none whitespace-nowrap transition-colors duration-fast ease-in-out focus-visible:focus-outline",{lg:"h-8 sd-6-22-1-tag-font-weight sd-6-22-1-tag--size-lg-font-size gap-2",sm:"h-6 sd-6-22-1-tag-font-weight sd-6-22-1-tag--size-sm-font-size gap-1"}[this.size],{lg:o?"pl-4 pr-3 py-2":"px-4 py-2",sm:o?"pl-3 pr-2 py-2":"px-3 py-[5px]"}[this.size],this.disabled?a(!t&&"cursor-not-allowed",this.selected&&"bg-neutral-500 text-white","sd-6-22-1-tag--disabled-color-border sd-6-22-1-tag--disabled-color-text"):this.selected?"sd-6-22-1-tag--selected-border-width sd-6-22-1-tag--selected--default-color-background sd-6-22-1-tag--selected--default-color-border sd-6-22-1-tag--selected--default-color-text hover:sd-6-22-1-tag--selected--hover-color-background hover:sd-6-22-1-tag--selected--hover-color-border hover:sd-6-22-1-tag--selected--hover-color-text":a("sd-6-22-1-tag--default-color-border sd-6-22-1-tag--default-color-text",o?"sd-6-22-1-tag--default-color-background has-[button:hover]:border-primary-500 has-[button:hover]:text-primary-500":"sd-6-22-1-tag--default-color-background hover:border-primary-500 hover:text-primary-500 hover:sd-6-22-1-tag--default--hover-color-background"))}"><slot name="icon-left" class="${a("flex-shrink-0",this.size==="lg"?"text-base":"text-[0.75rem]")}"></slot><slot id="content" part="content"></slot>${o&&!t?d`<button class="sd-interactive flex items-center" type="button" @click="${this.handleRemove}" ?disabled="${s(t?void 0:this.disabled)}"><slot part="removable-indicator" name="removable-indicator" class="${a(this.disabled&&"sd-6-22-1-tag--disabled-color-text")}"><sd-6-22-1-icon library="_internal" name="close" label="${this.localize.term("remove")}"></sd-6-22-1-icon></slot></button>`:""}</${c}>`}};e.styles=[...n.styles,h`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
2
- :host{display:inline-block;transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)));transition-duration:var(--tw-duration,var(--default-transition-duration,150ms));--tw-duration:var(--sd-duration-fast, 150ms);transition-duration:var(--sd-duration-fast,150ms);--tw-ease:var(--ease-in-out, cubic-bezier(0.4, 0, 0.2, 1));transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1))}:host([size=lg])::part(removable-indicator){font-size:var(--sd-text-base);line-height:var(--tw-leading,var(--text-base--line-height,calc(1.5 / 1)))}:host([size=sm])::part(removable-indicator){font-size:.75rem}.sd-6-22-1-tag--disabled-color-border{border-color:rgb(var(--sd-tag--disabled-color-border))}.sd-6-22-1-tag-font-weight{font-weight:var(--sd-tag-font-weight)}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}`],r([b("a, button, div")],e.prototype,"tag",2),r([i({type:String,reflect:!0})],e.prototype,"size",2),r([i({type:Boolean,reflect:!0})],e.prototype,"selected",2),r([i({type:Boolean,reflect:!0})],e.prototype,"toggleable",2),r([i({type:Boolean,reflect:!0})],e.prototype,"removable",2),r([i({type:Boolean,reflect:!0})],e.prototype,"disabled",2),r([i({type:String,reflect:!0})],e.prototype,"href",2),r([i({type:String,reflect:!0})],e.prototype,"target",2),r([i({reflect:!0})],e.prototype,"download",2),e=r([u("sd-6-22-1-tag")],e);export{e as a};
1
+ import{a as s}from"./chunk.LHSR56PH.js";import{a as l,b as d}from"./chunk.NL7YFV4O.js";import{a as f}from"./chunk.VAM5SM3O.js";import{a}from"./chunk.UFTAQNZB.js";import{a as u,b as i,d as b,h as n}from"./chunk.MJMWCFYX.js";import{b as h}from"./chunk.OBAEIKIV.js";import{e as r}from"./chunk.6EV4YU6C.js";var e=class extends n{constructor(){super(...arguments);this.localize=new f(this);this.size="lg";this.selected=!1;this.toggleable=!1;this.removable=!1;this.disabled=!1;this.href=""}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}handleRemove(){this.emit("sd-remove")}isLink(){return!!this.href}click(){this.tag.click()}focus(t){this.tag.focus(t)}blur(){this.tag.blur()}async hide(){this.emit("sd-hide"),this.style.opacity="0",await new Promise(t=>setTimeout(t,this.token("--sd-duration-fast",150))),this.hidden=!0,this.emit("sd-after-hide")}render(){let t=this.isLink(),o=this.removable&&!this.selected&&!this.toggleable,c=t?l`a`:o?l`div`:l`button`;return d`<${c} part="base" type="${s(t?void 0:"button")}" href="${s(t?this.href:void 0)}" rel="${s(t&&this.target?"noreferrer noopener":void 0)}" target="${s(t?this.target:void 0)}" download="${s(t?this.download:void 0)}" ?disabled="${s(t?void 0:this.disabled)}" aria-labelledby="content" aria-disabled="${this.disabled?"true":"false"}" aria-pressed="${s(this.toggleable?this.selected:void 0)}" tabindex="${this.disabled||o?"-1":"0"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" class="${a("flex border box-border sd-6-22-2-tag-border-radius items-center leading-none whitespace-nowrap transition-colors duration-fast ease-in-out focus-visible:focus-outline",{lg:"h-8 sd-6-22-2-tag-font-weight sd-6-22-2-tag--size-lg-font-size gap-2",sm:"h-6 sd-6-22-2-tag-font-weight sd-6-22-2-tag--size-sm-font-size gap-1"}[this.size],{lg:o?"pl-4 pr-3 py-2":"px-4 py-2",sm:o?"pl-3 pr-2 py-2":"px-3 py-[5px]"}[this.size],this.disabled?a(!t&&"cursor-not-allowed",this.selected&&"bg-neutral-500 text-white","sd-6-22-2-tag--disabled-color-border sd-6-22-2-tag--disabled-color-text"):this.selected?"sd-6-22-2-tag--selected-border-width sd-6-22-2-tag--selected--default-color-background sd-6-22-2-tag--selected--default-color-border sd-6-22-2-tag--selected--default-color-text hover:sd-6-22-2-tag--selected--hover-color-background hover:sd-6-22-2-tag--selected--hover-color-border hover:sd-6-22-2-tag--selected--hover-color-text":a("sd-6-22-2-tag--default-color-border sd-6-22-2-tag--default-color-text",o?"sd-6-22-2-tag--default-color-background has-[button:hover]:border-primary-500 has-[button:hover]:text-primary-500":"sd-6-22-2-tag--default-color-background hover:border-primary-500 hover:text-primary-500 hover:sd-6-22-2-tag--default--hover-color-background"))}"><slot name="icon-left" class="${a("flex-shrink-0",this.size==="lg"?"text-base":"text-[0.75rem]")}"></slot><slot id="content" part="content"></slot>${o&&!t?d`<button class="sd-interactive flex items-center" type="button" @click="${this.handleRemove}" ?disabled="${s(t?void 0:this.disabled)}"><slot part="removable-indicator" name="removable-indicator" class="${a(this.disabled&&"sd-6-22-2-tag--disabled-color-text")}"><sd-6-22-2-icon library="_internal" name="close" label="${this.localize.term("remove")}"></sd-6-22-2-icon></slot></button>`:""}</${c}>`}};e.styles=[...n.styles,h`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
2
+ :host{display:inline-block;transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)));transition-duration:var(--tw-duration,var(--default-transition-duration,150ms));--tw-duration:var(--sd-duration-fast, 150ms);transition-duration:var(--sd-duration-fast,150ms);--tw-ease:var(--ease-in-out, cubic-bezier(0.4, 0, 0.2, 1));transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1))}:host([size=lg])::part(removable-indicator){font-size:var(--sd-text-base);line-height:var(--tw-leading,var(--text-base--line-height,calc(1.5 / 1)))}:host([size=sm])::part(removable-indicator){font-size:.75rem}.sd-6-22-2-tag--disabled-color-border{border-color:rgb(var(--sd-tag--disabled-color-border))}.sd-6-22-2-tag-font-weight{font-weight:var(--sd-tag-font-weight)}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}`],r([b("a, button, div")],e.prototype,"tag",2),r([i({type:String,reflect:!0})],e.prototype,"size",2),r([i({type:Boolean,reflect:!0})],e.prototype,"selected",2),r([i({type:Boolean,reflect:!0})],e.prototype,"toggleable",2),r([i({type:Boolean,reflect:!0})],e.prototype,"removable",2),r([i({type:Boolean,reflect:!0})],e.prototype,"disabled",2),r([i({type:String,reflect:!0})],e.prototype,"href",2),r([i({type:String,reflect:!0})],e.prototype,"target",2),r([i({reflect:!0})],e.prototype,"download",2),e=r([u("sd-6-22-2-tag")],e);export{e as a};
@@ -1,2 +1,2 @@
1
- import{a as l}from"./chunk.MHWW3RZB.js";import{a as n,b as o,d,h as a}from"./chunk.XJAJO727.js";import{b as r,e as s}from"./chunk.OBAEIKIV.js";import{e as t}from"./chunk.6EV4YU6C.js";var e=class extends a{constructor(){super(...arguments);this.fixed=!1}connectedCallback(){super.connectedCallback(),this.updateCalculatedHeight=this.updateCalculatedHeight.bind(this),this.addResizeObserver=this.addResizeObserver.bind(this),window.addEventListener("resize",this.updateCalculatedHeight)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this.updateCalculatedHeight)}firstUpdated(){this.updateCalculatedHeight(),this.addResizeObserver()}updated(i){super.updated(i),i.has("fixed")&&this.updateCalculatedHeight()}addResizeObserver(){this.resizeObserver=new ResizeObserver(this.updateCalculatedHeight),this.header&&this.resizeObserver.observe(this.header)}updateCalculatedHeight(){let i=parseFloat(getComputedStyle(document.documentElement).fontSize),p=window.innerHeight/i;this.header&&this.fixed&&p>=32?document.documentElement.style.setProperty("--sd-header-calculated-height",`${this.header.clientHeight}px`):document.documentElement.style.removeProperty("--sd-header-calculated-height")}render(){return s`<header class="w-full sd-6-22-1-header-color-background sd-6-22-1-header-padding-bottom relative" role="banner"><div part="main" class="relative mx-auto my-0 box-border"><slot></slot></div></header>`}};e.styles=[...a.styles,r`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
2
- :host{position:relative;z-index:var(--sd-z-index-header,600);display:block}@media (min-height:32rem){:host([fixed]){padding-bottom:var(--sd-header-calculated-height)!important}:host([fixed]) header{position:fixed;top:calc(var(--sd-spacing-1) * 0);left:calc(var(--sd-spacing-1) * 0);width:100%}:host([fixed]) header::after{position:absolute;top:100%;right:calc(var(--sd-spacing-1) * 0);left:calc(var(--sd-spacing-1) * 0);height:var(--sd-header__shadow-height,var(--sd-spacing-1));--tw-gradient-position:to bottom in oklab;background-image:linear-gradient(var(--tw-gradient-stops));--tw-gradient-from:color-mix(in oklab, var(--color-black, #000) 40%, transparent);--tw-gradient-to:color-mix(in oklab, var(--color-black, #000) var(--sd-opacity-0), transparent);--tw-gradient-stops:var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));--tw-content:'';content:var(--tw-content)}}[part=main]{width:var(--sd-header-inner-width);max-width:var(--sd-header-inner-max-width);padding:var(--sd-header-padding,12px 16px)}header::before{position:absolute;bottom:calc(var(--sd-spacing-1) * 0);left:calc(var(--sd-spacing-1) * 0);display:block;width:100%;--tw-content:'';content:var(--tw-content);background-color:rgb(var(--sd-header__underline-color-background));height:var(--sd-header__underline-height,var(--sd-spacing-2))}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-content{syntax:"*";inherits:false;initial-value:""}`],t([o({reflect:!0,type:Boolean})],e.prototype,"fixed",2),t([d("header")],e.prototype,"header",2),t([l(100)],e.prototype,"updateCalculatedHeight",1),e=t([n("sd-6-22-1-header")],e);export{e as a};
1
+ import{a as l}from"./chunk.MHWW3RZB.js";import{a as n,b as o,d,h as a}from"./chunk.MJMWCFYX.js";import{b as r,e as s}from"./chunk.OBAEIKIV.js";import{e as t}from"./chunk.6EV4YU6C.js";var e=class extends a{constructor(){super(...arguments);this.fixed=!1}connectedCallback(){super.connectedCallback(),this.updateCalculatedHeight=this.updateCalculatedHeight.bind(this),this.addResizeObserver=this.addResizeObserver.bind(this),window.addEventListener("resize",this.updateCalculatedHeight)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this.updateCalculatedHeight)}firstUpdated(){this.updateCalculatedHeight(),this.addResizeObserver()}updated(i){super.updated(i),i.has("fixed")&&this.updateCalculatedHeight()}addResizeObserver(){this.resizeObserver=new ResizeObserver(this.updateCalculatedHeight),this.header&&this.resizeObserver.observe(this.header)}updateCalculatedHeight(){let i=parseFloat(getComputedStyle(document.documentElement).fontSize),p=window.innerHeight/i;this.header&&this.fixed&&p>=32?document.documentElement.style.setProperty("--sd-header-calculated-height",`${this.header.clientHeight}px`):document.documentElement.style.removeProperty("--sd-header-calculated-height")}render(){return s`<header class="w-full sd-6-22-2-header-color-background sd-6-22-2-header-padding-bottom relative" role="banner"><div part="main" class="relative mx-auto my-0 box-border"><slot></slot></div></header>`}};e.styles=[...a.styles,r`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
2
+ :host{position:relative;z-index:var(--sd-z-index-header,600);display:block}@media (min-height:32rem){:host([fixed]){padding-bottom:var(--sd-header-calculated-height)!important}:host([fixed]) header{position:fixed;top:calc(var(--sd-spacing-1) * 0);left:calc(var(--sd-spacing-1) * 0);width:100%}:host([fixed]) header::after{position:absolute;top:100%;right:calc(var(--sd-spacing-1) * 0);left:calc(var(--sd-spacing-1) * 0);height:var(--sd-header__shadow-height,var(--sd-spacing-1));--tw-gradient-position:to bottom in oklab;background-image:linear-gradient(var(--tw-gradient-stops));--tw-gradient-from:color-mix(in oklab, var(--color-black, #000) 40%, transparent);--tw-gradient-to:color-mix(in oklab, var(--color-black, #000) var(--sd-opacity-0), transparent);--tw-gradient-stops:var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));--tw-content:'';content:var(--tw-content)}}[part=main]{width:var(--sd-header-inner-width);max-width:var(--sd-header-inner-max-width);padding:var(--sd-header-padding,12px 16px)}header::before{position:absolute;bottom:calc(var(--sd-spacing-1) * 0);left:calc(var(--sd-spacing-1) * 0);display:block;width:100%;--tw-content:'';content:var(--tw-content);background-color:rgb(var(--sd-header__underline-color-background));height:var(--sd-header__underline-height,var(--sd-spacing-2))}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-content{syntax:"*";inherits:false;initial-value:""}`],t([o({reflect:!0,type:Boolean})],e.prototype,"fixed",2),t([d("header")],e.prototype,"header",2),t([l(100)],e.prototype,"updateCalculatedHeight",1),e=t([n("sd-6-22-2-header")],e);export{e as a};