@solid-design-system/components 7.0.1 → 7.0.3

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 (290) hide show
  1. package/cdn/chunks/{chunk.Q3DFVGEW.js → chunk.37JCS2XH.js} +1 -1
  2. package/cdn/chunks/{chunk.HWX5X5EX.js → chunk.7OG7ICBB.js} +1 -1
  3. package/cdn/chunks/chunk.JQV2BZ2E.js +12 -0
  4. package/cdn/components/carousel/carousel.js +1 -1
  5. package/cdn/components/combobox/combobox.js +1 -1
  6. package/cdn/components/datepicker/datepicker.js +1 -1
  7. package/cdn/custom-elements.json +458 -458
  8. package/cdn/solid-components.bundle.js +3 -3
  9. package/cdn/solid-components.iife.js +3 -3
  10. package/cdn/solid-components.js +1 -1
  11. package/cdn/vscode.html-custom-data.json +52 -52
  12. package/cdn/web-types.json +109 -109
  13. package/cdn-versioned/chunks/chunk.2C3UQTSS.js +2 -2
  14. package/cdn-versioned/chunks/chunk.2O3FM7UB.js +2 -2
  15. package/cdn-versioned/chunks/chunk.35XPUMS2.js +1 -1
  16. package/cdn-versioned/chunks/{chunk.Q3DFVGEW.js → chunk.37JCS2XH.js} +5 -5
  17. package/cdn-versioned/chunks/chunk.3IZUMERL.js +2 -2
  18. package/cdn-versioned/chunks/chunk.3RIAU3TH.js +3 -3
  19. package/cdn-versioned/chunks/chunk.4GA43M6X.js +2 -2
  20. package/cdn-versioned/chunks/chunk.4QTJXGRR.js +2 -2
  21. package/cdn-versioned/chunks/{chunk.HWX5X5EX.js → chunk.7OG7ICBB.js} +2 -2
  22. package/cdn-versioned/chunks/chunk.ADVB3FPU.js +2 -2
  23. package/cdn-versioned/chunks/chunk.AJGTKHU5.js +2 -2
  24. package/cdn-versioned/chunks/chunk.C37LGAL3.js +2 -2
  25. package/cdn-versioned/chunks/chunk.CGMKBGJU.js +2 -2
  26. package/cdn-versioned/chunks/chunk.CQNFI34K.js +2 -2
  27. package/cdn-versioned/chunks/chunk.DCAJAXUP.js +2 -2
  28. package/cdn-versioned/chunks/chunk.DS2MKMMN.js +3 -3
  29. package/cdn-versioned/chunks/chunk.DSKB3SEU.js +1 -1
  30. package/cdn-versioned/chunks/chunk.GA3PWYR4.js +2 -2
  31. package/cdn-versioned/chunks/chunk.HNBY226D.js +1 -1
  32. package/cdn-versioned/chunks/chunk.HY624TPC.js +2 -2
  33. package/cdn-versioned/chunks/chunk.I7OVY27Y.js +10 -10
  34. package/cdn-versioned/chunks/chunk.IFLRUJCI.js +2 -2
  35. package/cdn-versioned/chunks/chunk.IQBZ7GRB.js +2 -2
  36. package/cdn-versioned/chunks/chunk.J45556RK.js +1 -1
  37. package/cdn-versioned/chunks/chunk.JMX6KLDZ.js +2 -2
  38. package/cdn-versioned/chunks/chunk.JQV2BZ2E.js +12 -0
  39. package/cdn-versioned/chunks/chunk.KE2YEQDL.js +2 -2
  40. package/cdn-versioned/chunks/chunk.LZRL7OLU.js +1 -1
  41. package/cdn-versioned/chunks/chunk.MR54F6CV.js +2 -2
  42. package/cdn-versioned/chunks/chunk.MYPRMCUO.js +1 -1
  43. package/cdn-versioned/chunks/chunk.N4L76IWF.js +1 -1
  44. package/cdn-versioned/chunks/chunk.NGU7NO3O.js +5 -5
  45. package/cdn-versioned/chunks/chunk.NJKSWXOS.js +2 -2
  46. package/cdn-versioned/chunks/chunk.NOP4DTP2.js +2 -2
  47. package/cdn-versioned/chunks/chunk.OOIX4OAP.js +2 -2
  48. package/cdn-versioned/chunks/chunk.P7GMFHO5.js +1 -1
  49. package/cdn-versioned/chunks/chunk.PCXVXYU2.js +2 -2
  50. package/cdn-versioned/chunks/chunk.PFPUD5HR.js +2 -2
  51. package/cdn-versioned/chunks/chunk.PKCNX4R2.js +2 -2
  52. package/cdn-versioned/chunks/chunk.PQW77KHE.js +2 -2
  53. package/cdn-versioned/chunks/chunk.PURR56D5.js +2 -2
  54. package/cdn-versioned/chunks/chunk.Q63S2Z2M.js +2 -2
  55. package/cdn-versioned/chunks/chunk.QK3WCIP5.js +2 -2
  56. package/cdn-versioned/chunks/chunk.RHC6WZ6V.js +2 -2
  57. package/cdn-versioned/chunks/chunk.RRJCCIDH.js +1 -1
  58. package/cdn-versioned/chunks/chunk.SPL6VR5S.js +2 -2
  59. package/cdn-versioned/chunks/chunk.SSE7T5OF.js +2 -2
  60. package/cdn-versioned/chunks/chunk.SZNU4NHI.js +1 -1
  61. package/cdn-versioned/chunks/chunk.T7I5MFNS.js +2 -2
  62. package/cdn-versioned/chunks/chunk.TIMZJKMF.js +2 -2
  63. package/cdn-versioned/chunks/chunk.TX5WPWH2.js +2 -2
  64. package/cdn-versioned/chunks/chunk.UI3ZVKSU.js +2 -2
  65. package/cdn-versioned/chunks/chunk.V6IM4GAA.js +2 -2
  66. package/cdn-versioned/chunks/chunk.VPBXFCBA.js +2 -2
  67. package/cdn-versioned/chunks/chunk.VSX5LY2D.js +2 -2
  68. package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
  69. package/cdn-versioned/chunks/chunk.WL6NNNG5.js +2 -2
  70. package/cdn-versioned/chunks/chunk.WQZWYMH3.js +1 -1
  71. package/cdn-versioned/chunks/chunk.WUXX2P2S.js +2 -2
  72. package/cdn-versioned/chunks/chunk.XGVG7F7T.js +2 -2
  73. package/cdn-versioned/chunks/chunk.XHYIXZF4.js +2 -2
  74. package/cdn-versioned/chunks/chunk.XZ5JTM6K.js +2 -2
  75. package/cdn-versioned/chunks/chunk.Y4ZS3BWH.js +2 -2
  76. package/cdn-versioned/chunks/chunk.YUDSN6HJ.js +3 -3
  77. package/cdn-versioned/chunks/chunk.Z2M7BQV5.js +2 -2
  78. package/cdn-versioned/components/accordion/accordion.d.ts +1 -1
  79. package/cdn-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  80. package/cdn-versioned/components/animation/animation.d.ts +1 -1
  81. package/cdn-versioned/components/audio/audio.d.ts +1 -1
  82. package/cdn-versioned/components/badge/badge.d.ts +1 -1
  83. package/cdn-versioned/components/brandshape/brandshape.d.ts +1 -1
  84. package/cdn-versioned/components/breadcrumb/breadcrumb.d.ts +1 -1
  85. package/cdn-versioned/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
  86. package/cdn-versioned/components/button/button.d.ts +1 -1
  87. package/cdn-versioned/components/button-group/button-group.d.ts +1 -1
  88. package/cdn-versioned/components/carousel/carousel.d.ts +1 -1
  89. package/cdn-versioned/components/carousel/carousel.js +1 -1
  90. package/cdn-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  91. package/cdn-versioned/components/checkbox/checkbox.d.ts +1 -1
  92. package/cdn-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
  93. package/cdn-versioned/components/combobox/combobox.d.ts +1 -1
  94. package/cdn-versioned/components/combobox/combobox.js +1 -1
  95. package/cdn-versioned/components/datepicker/datepicker.d.ts +1 -1
  96. package/cdn-versioned/components/datepicker/datepicker.js +1 -1
  97. package/cdn-versioned/components/dialog/dialog.d.ts +1 -1
  98. package/cdn-versioned/components/divider/divider.d.ts +1 -1
  99. package/cdn-versioned/components/drawer/drawer.d.ts +1 -1
  100. package/cdn-versioned/components/dropdown/dropdown.d.ts +1 -1
  101. package/cdn-versioned/components/expandable/expandable.d.ts +1 -1
  102. package/cdn-versioned/components/file-selector/file-selector.d.ts +1 -1
  103. package/cdn-versioned/components/flipcard/flipcard.d.ts +1 -1
  104. package/cdn-versioned/components/header/header.d.ts +1 -1
  105. package/cdn-versioned/components/icon/icon.d.ts +1 -1
  106. package/cdn-versioned/components/include/include.d.ts +1 -1
  107. package/cdn-versioned/components/input/input.d.ts +1 -1
  108. package/cdn-versioned/components/link/link.d.ts +1 -1
  109. package/cdn-versioned/components/loader/loader.d.ts +1 -1
  110. package/cdn-versioned/components/map-marker/map-marker.d.ts +1 -1
  111. package/cdn-versioned/components/menu/menu.d.ts +1 -1
  112. package/cdn-versioned/components/menu-item/menu-item.d.ts +1 -1
  113. package/cdn-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  114. package/cdn-versioned/components/notification/notification.d.ts +1 -1
  115. package/cdn-versioned/components/optgroup/optgroup.d.ts +1 -1
  116. package/cdn-versioned/components/option/option.d.ts +1 -1
  117. package/cdn-versioned/components/popup/popup.d.ts +1 -1
  118. package/cdn-versioned/components/progress-bar/progress-bar.d.ts +1 -1
  119. package/cdn-versioned/components/quickfact/quickfact.d.ts +1 -1
  120. package/cdn-versioned/components/radio/radio.d.ts +1 -1
  121. package/cdn-versioned/components/radio-button/radio-button.d.ts +1 -1
  122. package/cdn-versioned/components/radio-group/radio-group.d.ts +1 -1
  123. package/cdn-versioned/components/range/range.d.ts +1 -1
  124. package/cdn-versioned/components/range-tick/range-tick.d.ts +1 -1
  125. package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
  126. package/cdn-versioned/components/select/select.d.ts +1 -1
  127. package/cdn-versioned/components/skeleton/skeleton.d.ts +1 -1
  128. package/cdn-versioned/components/step/step.d.ts +1 -1
  129. package/cdn-versioned/components/step-group/step-group.d.ts +1 -1
  130. package/cdn-versioned/components/switch/switch.d.ts +1 -1
  131. package/cdn-versioned/components/tab/tab.d.ts +1 -1
  132. package/cdn-versioned/components/tab-group/tab-group.d.ts +1 -1
  133. package/cdn-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  134. package/cdn-versioned/components/tag/tag.d.ts +1 -1
  135. package/cdn-versioned/components/textarea/textarea.d.ts +1 -1
  136. package/cdn-versioned/components/theme-listener/theme-listener.d.ts +1 -1
  137. package/cdn-versioned/components/tooltip/tooltip.d.ts +1 -1
  138. package/cdn-versioned/components/video/video.d.ts +1 -1
  139. package/cdn-versioned/custom-elements.json +721 -721
  140. package/cdn-versioned/internal/form.js +2 -2
  141. package/cdn-versioned/solid-components.bundle.js +81 -81
  142. package/cdn-versioned/solid-components.css +3 -3
  143. package/cdn-versioned/solid-components.iife.js +81 -81
  144. package/cdn-versioned/solid-components.js +1 -1
  145. package/cdn-versioned/vscode.html-custom-data.json +166 -166
  146. package/cdn-versioned/web-types.json +280 -280
  147. package/dist/chunks/{chunk.LCQBGEHF.js → chunk.UDTZN5OG.js} +1 -1
  148. package/dist/chunks/{chunk.HCADZIES.js → chunk.YKGIJFJM.js} +1 -1
  149. package/dist/chunks/{chunk.I46TZJHO.js → chunk.Z4IULIBO.js} +5 -5
  150. package/dist/components/carousel/carousel.js +1 -1
  151. package/dist/components/combobox/combobox.js +1 -1
  152. package/dist/components/datepicker/datepicker.js +1 -1
  153. package/dist/custom-elements.json +1 -1
  154. package/dist/solid-components.js +6 -6
  155. package/dist/web-types.json +1 -1
  156. package/dist-versioned/chunks/chunk.2EXNVXP2.js +2 -2
  157. package/dist-versioned/chunks/chunk.2M6Y3YHU.js +4 -4
  158. package/dist-versioned/chunks/chunk.2NXJZVSN.js +11 -11
  159. package/dist-versioned/chunks/chunk.2OT7JZJP.js +10 -10
  160. package/dist-versioned/chunks/chunk.2Y2MTVGF.js +3 -3
  161. package/dist-versioned/chunks/chunk.3PHACHZ2.js +7 -7
  162. package/dist-versioned/chunks/chunk.42XKKRQ2.js +6 -6
  163. package/dist-versioned/chunks/chunk.4FXMBMSY.js +3 -3
  164. package/dist-versioned/chunks/chunk.4JC6XNQW.js +4 -4
  165. package/dist-versioned/chunks/chunk.4VWOZ477.js +4 -4
  166. package/dist-versioned/chunks/chunk.5JPFIM5W.js +3 -3
  167. package/dist-versioned/chunks/chunk.5TU4CAN7.js +6 -6
  168. package/dist-versioned/chunks/chunk.65FELEDA.js +3 -3
  169. package/dist-versioned/chunks/chunk.67LY7Y75.js +4 -4
  170. package/dist-versioned/chunks/chunk.6F52A4JB.js +3 -3
  171. package/dist-versioned/chunks/chunk.72LCNWVE.js +3 -3
  172. package/dist-versioned/chunks/chunk.7DQB3MN6.js +7 -7
  173. package/dist-versioned/chunks/chunk.7EXDALNL.js +5 -5
  174. package/dist-versioned/chunks/chunk.AHIYNPL4.js +1 -1
  175. package/dist-versioned/chunks/chunk.ALJ34SPY.js +4 -4
  176. package/dist-versioned/chunks/chunk.B5BWUIZC.js +2 -2
  177. package/dist-versioned/chunks/chunk.BW5BXFWA.js +5 -5
  178. package/dist-versioned/chunks/chunk.C3L34J75.js +1 -1
  179. package/dist-versioned/chunks/chunk.C3WIBDGG.js +2 -2
  180. package/dist-versioned/chunks/chunk.C4HDZU75.js +2 -2
  181. package/dist-versioned/chunks/chunk.CB7PF3MZ.js +6 -6
  182. package/dist-versioned/chunks/chunk.CXFXIMXV.js +13 -13
  183. package/dist-versioned/chunks/chunk.DF2LZ65H.js +2 -2
  184. package/dist-versioned/chunks/chunk.DGLSKBZE.js +3 -3
  185. package/dist-versioned/chunks/chunk.DZED227Y.js +1 -1
  186. package/dist-versioned/chunks/chunk.EQIZ7J5Z.js +25 -25
  187. package/dist-versioned/chunks/chunk.ES5DW7MC.js +2 -2
  188. package/dist-versioned/chunks/chunk.HFRDUE6W.js +11 -11
  189. package/dist-versioned/chunks/chunk.I3DVEGNB.js +11 -11
  190. package/dist-versioned/chunks/chunk.JKJXDDJU.js +3 -3
  191. package/dist-versioned/chunks/chunk.JPGYEMXS.js +2 -2
  192. package/dist-versioned/chunks/chunk.JXDY64LH.js +10 -10
  193. package/dist-versioned/chunks/chunk.KEJFWGZI.js +4 -4
  194. package/dist-versioned/chunks/chunk.KSU44YSO.js +7 -7
  195. package/dist-versioned/chunks/chunk.KXUT6UJL.js +2 -2
  196. package/dist-versioned/chunks/chunk.MPHRXV2B.js +1 -1
  197. package/dist-versioned/chunks/chunk.N5RQE7OC.js +1 -1
  198. package/dist-versioned/chunks/chunk.PAXRRXRW.js +4 -4
  199. package/dist-versioned/chunks/chunk.PGECK7YI.js +1 -1
  200. package/dist-versioned/chunks/chunk.QGCJ4WUV.js +5 -5
  201. package/dist-versioned/chunks/chunk.QIYLIH7P.js +5 -5
  202. package/dist-versioned/chunks/chunk.QNHUD2SQ.js +42 -42
  203. package/dist-versioned/chunks/chunk.S2ZVBJYN.js +5 -5
  204. package/dist-versioned/chunks/chunk.SEWHXNAY.js +5 -5
  205. package/dist-versioned/chunks/chunk.SG7H3CVK.js +12 -12
  206. package/dist-versioned/chunks/chunk.SMRP2JEM.js +1 -1
  207. package/dist-versioned/chunks/chunk.TFAIMBF7.js +11 -11
  208. package/dist-versioned/chunks/chunk.TLAI6IVF.js +2 -2
  209. package/dist-versioned/chunks/{chunk.LCQBGEHF.js → chunk.UDTZN5OG.js} +11 -11
  210. package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
  211. package/dist-versioned/chunks/chunk.UORTR6WB.js +5 -5
  212. package/dist-versioned/chunks/chunk.VX7JXCCH.js +2 -2
  213. package/dist-versioned/chunks/chunk.XAU2YS2A.js +5 -5
  214. package/dist-versioned/chunks/chunk.XQMBT64Z.js +8 -8
  215. package/dist-versioned/chunks/chunk.YJ46MX3X.js +6 -6
  216. package/dist-versioned/chunks/{chunk.HCADZIES.js → chunk.YKGIJFJM.js} +24 -24
  217. package/dist-versioned/chunks/chunk.YRKHHYV5.js +2 -2
  218. package/dist-versioned/chunks/{chunk.I46TZJHO.js → chunk.Z4IULIBO.js} +15 -15
  219. package/dist-versioned/chunks/chunk.ZLPWCNY6.js +14 -14
  220. package/dist-versioned/chunks/chunk.ZQ6CXL6H.js +5 -5
  221. package/dist-versioned/components/accordion/accordion.d.ts +1 -1
  222. package/dist-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  223. package/dist-versioned/components/animation/animation.d.ts +1 -1
  224. package/dist-versioned/components/audio/audio.d.ts +1 -1
  225. package/dist-versioned/components/badge/badge.d.ts +1 -1
  226. package/dist-versioned/components/brandshape/brandshape.d.ts +1 -1
  227. package/dist-versioned/components/breadcrumb/breadcrumb.d.ts +1 -1
  228. package/dist-versioned/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
  229. package/dist-versioned/components/button/button.d.ts +1 -1
  230. package/dist-versioned/components/button-group/button-group.d.ts +1 -1
  231. package/dist-versioned/components/carousel/carousel.d.ts +1 -1
  232. package/dist-versioned/components/carousel/carousel.js +1 -1
  233. package/dist-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  234. package/dist-versioned/components/checkbox/checkbox.d.ts +1 -1
  235. package/dist-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
  236. package/dist-versioned/components/combobox/combobox.d.ts +1 -1
  237. package/dist-versioned/components/combobox/combobox.js +1 -1
  238. package/dist-versioned/components/datepicker/datepicker.d.ts +1 -1
  239. package/dist-versioned/components/datepicker/datepicker.js +1 -1
  240. package/dist-versioned/components/dialog/dialog.d.ts +1 -1
  241. package/dist-versioned/components/divider/divider.d.ts +1 -1
  242. package/dist-versioned/components/drawer/drawer.d.ts +1 -1
  243. package/dist-versioned/components/dropdown/dropdown.d.ts +1 -1
  244. package/dist-versioned/components/expandable/expandable.d.ts +1 -1
  245. package/dist-versioned/components/file-selector/file-selector.d.ts +1 -1
  246. package/dist-versioned/components/flipcard/flipcard.d.ts +1 -1
  247. package/dist-versioned/components/header/header.d.ts +1 -1
  248. package/dist-versioned/components/icon/icon.d.ts +1 -1
  249. package/dist-versioned/components/include/include.d.ts +1 -1
  250. package/dist-versioned/components/input/input.d.ts +1 -1
  251. package/dist-versioned/components/link/link.d.ts +1 -1
  252. package/dist-versioned/components/loader/loader.d.ts +1 -1
  253. package/dist-versioned/components/map-marker/map-marker.d.ts +1 -1
  254. package/dist-versioned/components/menu/menu.d.ts +1 -1
  255. package/dist-versioned/components/menu-item/menu-item.d.ts +1 -1
  256. package/dist-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  257. package/dist-versioned/components/notification/notification.d.ts +1 -1
  258. package/dist-versioned/components/optgroup/optgroup.d.ts +1 -1
  259. package/dist-versioned/components/option/option.d.ts +1 -1
  260. package/dist-versioned/components/popup/popup.d.ts +1 -1
  261. package/dist-versioned/components/progress-bar/progress-bar.d.ts +1 -1
  262. package/dist-versioned/components/quickfact/quickfact.d.ts +1 -1
  263. package/dist-versioned/components/radio/radio.d.ts +1 -1
  264. package/dist-versioned/components/radio-button/radio-button.d.ts +1 -1
  265. package/dist-versioned/components/radio-group/radio-group.d.ts +1 -1
  266. package/dist-versioned/components/range/range.d.ts +1 -1
  267. package/dist-versioned/components/range-tick/range-tick.d.ts +1 -1
  268. package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
  269. package/dist-versioned/components/select/select.d.ts +1 -1
  270. package/dist-versioned/components/skeleton/skeleton.d.ts +1 -1
  271. package/dist-versioned/components/step/step.d.ts +1 -1
  272. package/dist-versioned/components/step-group/step-group.d.ts +1 -1
  273. package/dist-versioned/components/switch/switch.d.ts +1 -1
  274. package/dist-versioned/components/tab/tab.d.ts +1 -1
  275. package/dist-versioned/components/tab-group/tab-group.d.ts +1 -1
  276. package/dist-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  277. package/dist-versioned/components/tag/tag.d.ts +1 -1
  278. package/dist-versioned/components/textarea/textarea.d.ts +1 -1
  279. package/dist-versioned/components/theme-listener/theme-listener.d.ts +1 -1
  280. package/dist-versioned/components/tooltip/tooltip.d.ts +1 -1
  281. package/dist-versioned/components/video/video.d.ts +1 -1
  282. package/dist-versioned/custom-elements.json +721 -721
  283. package/dist-versioned/internal/form.js +2 -2
  284. package/dist-versioned/solid-components.css +3 -3
  285. package/dist-versioned/solid-components.js +6 -6
  286. package/dist-versioned/vscode.html-custom-data.json +166 -166
  287. package/dist-versioned/web-types.json +280 -280
  288. package/package.json +1 -1
  289. package/cdn/chunks/chunk.5SQTIWWY.js +0 -12
  290. package/cdn-versioned/chunks/chunk.5SQTIWWY.js +0 -12
@@ -6,7 +6,7 @@ import{a as R}from"./chunk.ERP45OHF.js";import{a as B}from"./chunk.X2GM34WQ.js";
6
6
  base:tag__base,
7
7
  content:tag__content,
8
8
  removable-indicator:tag__removable-indicator,
9
- " size="${this.size==="sm"?"sm":"lg"}" removable @keydown="${t=>this.handleTagMaxOptionsKeyDown(t)}" @sd-remove="${t=>this.handleTagRemove(t)}">${this.selectedOptions.length} ${this.localize.term("tagsSelected")}</sd-tag>`]}addOpenListeners(){document.addEventListener("focusin",this.handleDocumentFocusIn),document.addEventListener("mousedown",this.handleDocumentMouseDown),this.getRootNode()!==document&&this.getRootNode().addEventListener("focusin",this.handleDocumentFocusIn)}removeOpenListeners(){document.removeEventListener("focusin",this.handleDocumentFocusIn),document.removeEventListener("mousedown",this.handleDocumentMouseDown),this.getRootNode()!==document&&this.getRootNode().removeEventListener("focusin",this.handleDocumentFocusIn)}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleTagKeyDown(t,e){(t.key==="Backspace"||t.key==="Enter"||t.key===" ")&&this.multiple&&(t.preventDefault(),t.stopPropagation(),this.handleTagRemove(new CustomEvent("sd-remove"),e),this.updateComplete.then(()=>this.displayInput.focus({preventScroll:!0})))}handleTagMaxOptionsKeyDown(t){(t.key==="Backspace"||t.key==="Enter"||t.key===" ")&&this.multiple&&(t.preventDefault(),t.stopPropagation(),this.handleTagRemove(new CustomEvent("sd-remove"),this.selectedOptions[this.selectedOptions.length-1]),this.updateComplete.then(()=>this.displayInput.focus({preventScroll:!0})))}handleLabelClick(){this.visuallyDisabled||this.displayInput.focus()}handleTagRemove(t,e){t.stopPropagation(),e||this.clearCombobox(),e&&!this.disabled&&(this.toggleOptionSelection(e,!1),this.setOrderedSelectedOptions(e),this.deletedTagLabel="",this.deletedTagLabel=this.localize.term("removed",e.textContent),this.updateComplete.then(()=>{this.selectionChanged(),this.emit("sd-input"),this.emit("sd-change")}))}handleComboboxMouseDown(t){if(this.visuallyDisabled){t.preventDefault(),t.stopPropagation();return}let i=t.composedPath().some(o=>o instanceof HTMLSlotElement&&o.name==="removable-indicator");if(this.disabled||i)return;(this.open?this.hide():this.show()).then(()=>{setTimeout(()=>this.displayInput.focus({preventScroll:!0}))})}async handleComboboxKeyDown(t){var e;if(t.key==="Tab"){if(this.displayInputValue="",this.displayInput.value="",this.open&&((e=this.shadowRoot)==null?void 0:e.activeElement)===this.displayInput){t.preventDefault(),this.open=!1,await this.updateComplete,this.displayInput.focus();return}return}this.handleDocumentKeyDown(t)}handleClearClick(t){t.stopPropagation(),this.clearCombobox()}handleSearchClick(t){t.stopPropagation(),!(this.disabled||this.visuallyDisabled)&&this.emit("sd-search")}handleNoResultsClick(t){t.preventDefault(),this.hide()}clearCombobox(){this.value!==""&&(this.value="",this.displayInputValue="",this.selectedTextLabel="",this.lastOption=void 0,this.selectedOptions=[],this.getSlottedOptions().forEach(t=>{t.selected=!1}),this.displayInput.focus({preventScroll:!0}),this.updateComplete.then(()=>{this.emit("sd-clear"),this.emit("sd-input"),this.emit("sd-change")}))}preventLoosingFocus(t){t.stopPropagation(),t.preventDefault()}handleOptionClick(t){let i=t.target.closest("sd-option"),a=this.value;i&&!i.disabled&&(this.multiple?(this.toggleOptionSelection(i),this.lastOption=i,this.setOrderedSelectedOptions(i),this.updateComplete.then(()=>{this.selectionChanged()})):(this.setOrderedSelectedOptions(i),this.setSelectedOptions(i)),this.updateComplete.then(()=>{this.displayInput.focus({preventScroll:!0}),this.value!==a&&(this.emit("sd-input"),this.emit("sd-change"))}),this.multiple||(this.hide(),this.displayInput.focus({preventScroll:!0})))}selectNextOption(t){let e=this.getAllFilteredOptions();if(e.length===0)return;let i=this.getCurrentOption(),a=e.indexOf(i),o=Math.max(0,a);if(t){let n=a+1;o=n>e.length-1?0:n}else{let n=a-1;o=n<0?e.length-1:n}this.setCurrentOption(e[o],new KeyboardEvent("keydown")),H(this.getCurrentOption(),this.listbox,"vertical","auto")}getAllFilteredOptions(){return[...this.filteredWrapper.querySelectorAll("sd-option")]}getCurrentOption(){return this.getAllFilteredOptions().find(t=>t.current)}setCurrentOption(t,e){let i=this.getAllFilteredOptions();this.displayInput.removeAttribute("aria-activedescendant"),i.forEach(a=>{a.current=!1,a.setAttribute("aria-selected","false"),a.isKeyboardFocus=!1}),t&&(t.current=!0,t.setAttribute("aria-selected","true"),this.displayInput.setAttribute("aria-activedescendant",t.id)),t&&(e==null?void 0:e.type)==="keydown"&&(t.isKeyboardFocus=!0)}toggleOptionSelection(t,e){let a=this.getSlottedOptions().find(o=>o.value&&t.value?o.value===t.value:o.getTextLabel()===t.getTextLabel());a&&(a.selected=e!=null?e:!a.selected)}findOptionByValue(t,e){if(e)return Array.isArray(e)?t.find(i=>e.includes(i.value)):t.find(i=>i.value===e)}selectedOptionsAndValueSynced(){var t;return!this.value&&this.selectedOptions.length===0?!0:Array.isArray(this.value)?this.value.length===this.selectedOptions.length:this.value===((t=this.selectedOptions[0])==null?void 0:t.value)}isOptionSelected(t){return t.value?this.value.includes(t.value):this.value.includes(t.getTextLabel())}syncSelectedOptionsAndValue(){return this.selectedOptionsAndValueSynced()?void 0:(this.getSlottedOptions().forEach(e=>{e.selected=!1}),this.selectedOptions=this.getSlottedOptions().filter(e=>this.isOptionSelected(e)),this.selectedOptions.forEach(e=>{e&&(e.selected=!0)}),Promise.resolve())}compareOptions(t,e){return t.value&&e.value?t.value===e.value:t.getTextLabel()===e.getTextLabel()}setSelectedOptions(t){this.getSlottedOptions().forEach(i=>{i.selected=this.compareOptions(i,t)}),this.selectionChanged()}setOrderedSelectedOptions(t){let e=this.getSlottedOptions().find(i=>this.compareOptions(i,t));this.multiple?this.selectedOptions.length>0&&e&&this.selectedOptions.find(i=>this.compareOptions(i,e))?this.selectedOptions=this.selectedOptions.filter(i=>!this.compareOptions(i,e)):this.selectedOptions=[...this.selectedOptions,e]:this.selectedOptions=[e]}selectionChanged(){var e,i,a;let t=this.selectedOptions.some(o=>o?this.isOptionSelected(o):!1);this.multiple?(!t&&this.selectedOptions.length>0?this.value=[...this.value,...this.selectedOptions.map(o=>o.value||o.getTextLabel())]:this.value=this.selectedOptions.map(o=>(o==null?void 0:o.value)||(o==null?void 0:o.getTextLabel())||""),this.displayInputValue=""):(this.value=((e=this.selectedOptions[0])==null?void 0:e.value)||((i=this.selectedOptions[0])==null?void 0:i.getTextLabel())||"",this.selectedTextLabel=((a=this.selectedOptions[0])==null?void 0:a.getTextLabel())||"",this.displayInputValue=""),this.updateComplete.then(()=>{this.formControlController.updateValidity()})}createComboboxOptionsFromQuery(t){let e=[];this.filteredOptions=this.getSlottedOptions().filter(i=>this.filter(i,t)||t==="").map(i=>{var O,v,x;let a=i.cloneNode(!0);if(a.current=a.value===((O=this.lastOption)==null?void 0:O.value),a.selected=i.selected,a.checkbox=i.checkbox,a.size=i.size,!(((v=i.parentElement)==null?void 0:v.tagName.toLowerCase())==="sd-optgroup"))return a;let n=i.parentElement,g=(x=n.querySelector('[slot="label"]'))==null?void 0:x.cloneNode(!0),c=e.find(b=>b.id===n.id);if(c){c==null||c.appendChild(a),g&&(c==null||c.appendChild(g));return}let h=n.cloneNode();return h.appendChild(a),g&&h.appendChild(g),e.push(h),h}).filter(Boolean)}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}handleCurrentPlacement(t){let e=t.detail;e&&(this.currentPlacement=e)}handleFilterChange(){this.createComboboxOptionsFromQuery(this.displayInputValue)}handleUseTagsChange(){let t=this.getAllFilteredOptions();customElements.get("sd-option")&&t.forEach(e=>{e.checkbox=this.multiple})}applySizeToOptions(){this.getSlottedOptions().forEach(t=>{t.size=this.size})}handleDisabledChange(){this.formControlController.setValidity(this.disabled),(this.disabled||this.visuallyDisabled)&&(this.open=!1,this.handleOpenChange())}handleValueChange(){this.syncSelectedOptionsAndValue(),this.multiple?this.createComboboxOptionsFromQuery(this.displayInput.value):this.createComboboxOptionsFromQuery("")}handleDisplayInputValueChange(){this.createComboboxOptionsFromQuery(this.displayInputValue)}async handleOpenChange(){if(this.open&&(!this.disabled||!this.visuallyDisabled)){this.emit("sd-show"),this.addOpenListeners(),await C(this),this.listbox.hidden=!1,this.popup.active=!0;let{keyframes:i,options:a}=k(this,"combobox.show",{dir:this.localize.dir()});await S(this.popup.popup,i,a),this.emit("sd-after-show"),this.filteredOptions.length===0&&this.emit("sd-error");return}this.setCurrentOption(null),this.displayInput.removeAttribute("aria-activedescendant"),this.emit("sd-hide"),this.removeOpenListeners(),await C(this);let{keyframes:t,options:e}=k(this,"combobox.hide",{dir:this.localize.dir()});await S(this.popup.popup,t,e),this.listbox.hidden=!0,this.popup.active=!1,this.emit("sd-after-hide")}handleSizeChange(){this.size=this.floatingLabel&&this.size==="sm"?"md":this.size}async show(){if(this.open||this.disabled||this.visuallyDisabled){this.open=!1;return}return this.open=!0,Promise.race([w(this,"sd-after-show"),w(this,"sd-error")])}async hide(){if(!this.open||this.disabled){this.open=!1;return}return this.displayInputValue="",this.open=!1,w(this,"sd-after-hide")}checkValidity(){return this.valueInput.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.valueInput.reportValidity()}setCustomValidity(t){this.valueInput.setCustomValidity(t),this.formControlController.updateValidity()}focus(t){this.displayInput.focus(t)}blur(){this.displayInput.blur()}async handleInput(){let t=this.displayInput.value;this.displayInputValue=t,await this.updateComplete,this.open=this.filteredWrapper.children.length>0,this.formControlController.updateValidity(),this.emit("sd-input")}handleChange(){(!this.selectedOptions||!this.multiple)&&(this.selectedTextLabel=this.displayInput.value,this.updateComplete.then(()=>{this.formControlController.updateValidity()}),this.emit("sd-change"))}getSlottedOptions(){return K(D(this.defaultSlot)).flat()}getSlottedOptGroups(){return U(D(this.defaultSlot))}async handleDefaultSlotChange(){if(!customElements.get("sd-option")){customElements.whenDefined("sd-option").then(()=>this.handleDefaultSlotChange());return}let t=this.getSlottedOptions(),e=this.getSlottedOptGroups();this.applySizeToOptions();let i=this.findOptionByValue(t,this.value);this.selectedTextLabel=(i==null?void 0:i.getTextLabel())||"",t.forEach((a,o)=>{this.multiple&&(a.checkbox=!0),a.id=a.id||`sd-combobox-option-${o}`}),e.forEach((a,o)=>{a.id=a.id||`sd-combobox-optgroup-${o}`}),await this.syncSelectedOptionsAndValue(),this.multiple?this.createComboboxOptionsFromQuery(this.displayInputValue):this.createComboboxOptionsFromQuery("")}render(){let t={left:this.hasSlotController.test("left"),right:this.hasSlotController.test("right")},e=this.hasSlotController.test("label"),i=this.hasSlotController.test("help-text"),a=this.label?!0:!!e,o=this.helpText?!0:!!i,n=this.clearable&&!this.disabled&&!this.visuallyDisabled,g=t.left,c=this.value!==null&&String(this.value).length>0,h=this.floatingLabel&&a&&(this.hasFocus||c),O=this.disabled?"disabled":this.visuallyDisabled&&!this.hasFocus?"visuallyDisabled":this.hasFocus&&this.showInvalidStyle?"activeInvalid":this.hasFocus&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus||this.open?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",v=this.disabled||this.visuallyDisabled?"cursor-not-allowed":"cursor-pointer",x=this.disabled||this.visuallyDisabled?"text-neutral-500":"form-control-color-icon-fill",b={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],z={sm:"mr-1",md:"mr-2",lg:"mr-2"}[this.size],y={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size],N=this.size==="lg"?this.floatingLabel?"py-3":"py-2":this.floatingLabel?h?"py-2":"py-3":"py-1",q={sm:"left-[36px]",md:"left-[44px]",lg:"left-12"}[this.size];return p`<div part="form-control" class="${d("relative text-left",v,this.size==="sm"?"text-sm":"text-base",this.open&&"z-50")}">${a&&!this.floatingLabel?p`<div class="flex items-center gap-1 mb-2"><label id="label" part="form-control-label" class="${d(a&&"inline-block",a&&(this.visuallyDisabled||this.disabled)?"text-neutral-500":"form-control-color-text")}" aria-hidden="${a?"false":"true"}" @click="${this.handleLabelClick}"><slot name="label">${this.label}</slot></label></div>`:null} <span aria-live="polite" class="sr-only">${this.deletedTagLabel}</span><div part="form-control-input" class="relative w-full bg-white text-black">${a&&this.floatingLabel?p`<label id="label" part="form-control-floating-label" class="${d("absolute left-4 z-20 pointer-events-none transition-all duration-200",g?q:"left-4",h?this.size==="lg"?"top-2 text-xs":"top-1 text-xs":"top-1/2 -translate-y-1/2 form-control-color-text",h&&"mt-1")}" for="input"><span class="${d("leading-none",(this.visuallyDisabled||this.disabled)&&"text-neutral-500",h&&!this.visuallyDisabled&&!this.disabled&&"form-control--filled__floating-label-color-text")}">${this.label}</span></label>`:null}<div part="border" class="${d("absolute top-0 w-full h-full pointer-events-none border form-control-border-radius z-10 transition-[border] duration-medium ease-in-out",{disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",readonly:"form-control-color-border",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"form-control-color-border"}[O],this.open&&(this.currentPlacement==="bottom"?"rounded-bl-none rounded-br-none":"rounded-tl-none rounded-tr-none"))}"></div><sd-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${d("inline-flex relative w-full",this.currentPlacement==="bottom"?"origin-top":"origin-bottom")}" placement="${this.placement}" strategy="${this.hoist?"fixed":"absolute"}" flip shift sync="width" auto-size="vertical" auto-size-padding="10" exportparts="
9
+ " size="${this.size==="sm"?"sm":"lg"}" removable @keydown="${t=>this.handleTagMaxOptionsKeyDown(t)}" @sd-remove="${t=>this.handleTagRemove(t)}">${this.selectedOptions.length} ${this.localize.term("tagsSelected")}</sd-tag>`]}addOpenListeners(){document.addEventListener("focusin",this.handleDocumentFocusIn),document.addEventListener("mousedown",this.handleDocumentMouseDown),this.getRootNode()!==document&&this.getRootNode().addEventListener("focusin",this.handleDocumentFocusIn)}removeOpenListeners(){document.removeEventListener("focusin",this.handleDocumentFocusIn),document.removeEventListener("mousedown",this.handleDocumentMouseDown),this.getRootNode()!==document&&this.getRootNode().removeEventListener("focusin",this.handleDocumentFocusIn)}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleTagKeyDown(t,e){(t.key==="Backspace"||t.key==="Enter"||t.key===" ")&&this.multiple&&(t.preventDefault(),t.stopPropagation(),this.handleTagRemove(new CustomEvent("sd-remove"),e),this.updateComplete.then(()=>this.displayInput.focus({preventScroll:!0})))}handleTagMaxOptionsKeyDown(t){(t.key==="Backspace"||t.key==="Enter"||t.key===" ")&&this.multiple&&(t.preventDefault(),t.stopPropagation(),this.handleTagRemove(new CustomEvent("sd-remove"),this.selectedOptions[this.selectedOptions.length-1]),this.updateComplete.then(()=>this.displayInput.focus({preventScroll:!0})))}handleLabelClick(){this.visuallyDisabled||this.displayInput.focus()}handleTagRemove(t,e){t.stopPropagation(),e||this.clearCombobox(),e&&!this.disabled&&(this.toggleOptionSelection(e,!1),this.setOrderedSelectedOptions(e),this.deletedTagLabel="",this.deletedTagLabel=this.localize.term("removed",e.textContent),this.updateComplete.then(()=>{this.selectionChanged(),this.emit("sd-input"),this.emit("sd-change")}))}handleComboboxMouseDown(t){if(this.visuallyDisabled){t.preventDefault(),t.stopPropagation();return}let i=t.composedPath().some(o=>o instanceof HTMLSlotElement&&o.name==="removable-indicator");if(this.disabled||i)return;(this.open?this.hide():this.show()).then(()=>{setTimeout(()=>this.displayInput.focus({preventScroll:!0}))})}async handleComboboxKeyDown(t){var e;if(t.key==="Tab"){if(this.displayInputValue="",this.displayInput.value="",this.open&&((e=this.shadowRoot)==null?void 0:e.activeElement)===this.displayInput){t.preventDefault(),this.open=!1,await this.updateComplete,this.displayInput.focus();return}return}this.handleDocumentKeyDown(t)}handleClearClick(t){t.stopPropagation(),this.clearCombobox()}handleSearchClick(t){t.stopPropagation(),!(this.disabled||this.visuallyDisabled)&&this.emit("sd-search")}handleNoResultsClick(t){t.preventDefault(),this.hide()}clearCombobox(){this.value!==""&&(this.value="",this.displayInputValue="",this.selectedTextLabel="",this.lastOption=void 0,this.selectedOptions=[],this.getSlottedOptions().forEach(t=>{t.selected=!1}),this.displayInput.focus({preventScroll:!0}),this.updateComplete.then(()=>{this.emit("sd-clear"),this.emit("sd-input"),this.emit("sd-change")}))}preventLoosingFocus(t){t.stopPropagation(),t.preventDefault()}handleOptionClick(t){let i=t.target.closest("sd-option"),a=this.value;i&&!i.disabled&&(this.multiple?(this.toggleOptionSelection(i),this.lastOption=i,this.setOrderedSelectedOptions(i),this.updateComplete.then(()=>{this.selectionChanged()})):(this.setOrderedSelectedOptions(i),this.setSelectedOptions(i)),this.updateComplete.then(()=>{this.displayInput.focus({preventScroll:!0}),this.value!==a&&(this.emit("sd-input"),this.emit("sd-change"))}),this.multiple||(this.hide(),this.displayInput.focus({preventScroll:!0})))}selectNextOption(t){let e=this.getAllFilteredOptions();if(e.length===0)return;let i=this.getCurrentOption(),a=e.indexOf(i),o=Math.max(0,a);if(t){let n=a+1;o=n>e.length-1?0:n}else{let n=a-1;o=n<0?e.length-1:n}this.setCurrentOption(e[o],new KeyboardEvent("keydown")),H(this.getCurrentOption(),this.listbox,"vertical","auto")}getAllFilteredOptions(){return[...this.filteredWrapper.querySelectorAll("sd-option")]}getCurrentOption(){return this.getAllFilteredOptions().find(t=>t.current)}setCurrentOption(t,e){let i=this.getAllFilteredOptions();this.displayInput.removeAttribute("aria-activedescendant"),i.forEach(a=>{a.current=!1,a.setAttribute("aria-selected","false"),a.isKeyboardFocus=!1}),t&&(t.current=!0,t.setAttribute("aria-selected","true"),this.displayInput.setAttribute("aria-activedescendant",t.id)),t&&(e==null?void 0:e.type)==="keydown"&&(t.isKeyboardFocus=!0)}toggleOptionSelection(t,e){let a=this.getSlottedOptions().find(o=>o.value&&t.value?o.value===t.value:o.getTextLabel()===t.getTextLabel());a&&(a.selected=e!=null?e:!a.selected)}findOptionByValue(t,e){if(e)return Array.isArray(e)?t.find(i=>e.includes(i.value)):t.find(i=>i.value===e)}selectedOptionsAndValueSynced(){var t;return!this.value&&this.selectedOptions.length===0?!0:Array.isArray(this.value)?this.value.length===this.selectedOptions.length:this.value===((t=this.selectedOptions[0])==null?void 0:t.value)}isOptionSelected(t){return t.value?this.value.includes(t.value):this.value.includes(t.getTextLabel())}syncSelectedOptionsAndValue(){return this.selectedOptionsAndValueSynced()?void 0:(this.getSlottedOptions().forEach(e=>{e.selected=!1}),this.selectedOptions=this.getSlottedOptions().filter(e=>this.isOptionSelected(e)),this.selectedOptions.forEach(e=>{e&&(e.selected=!0)}),Promise.resolve())}compareOptions(t,e){return t.value&&e.value?t.value===e.value:t.getTextLabel()===e.getTextLabel()}setSelectedOptions(t){this.getSlottedOptions().forEach(i=>{i.selected=this.compareOptions(i,t)}),this.selectionChanged()}setOrderedSelectedOptions(t){let e=this.getSlottedOptions().find(i=>this.compareOptions(i,t));this.multiple?this.selectedOptions.length>0&&e&&this.selectedOptions.find(i=>this.compareOptions(i,e))?this.selectedOptions=this.selectedOptions.filter(i=>!this.compareOptions(i,e)):this.selectedOptions=[...this.selectedOptions,e]:this.selectedOptions=[e]}selectionChanged(){var e,i,a;let t=this.selectedOptions.some(o=>o?this.isOptionSelected(o):!1);this.multiple?(!t&&this.selectedOptions.length>0?this.value=[...this.value,...this.selectedOptions.map(o=>o.value||o.getTextLabel())]:this.value=this.selectedOptions.map(o=>(o==null?void 0:o.value)||(o==null?void 0:o.getTextLabel())||""),this.displayInputValue=""):(this.value=((e=this.selectedOptions[0])==null?void 0:e.value)||((i=this.selectedOptions[0])==null?void 0:i.getTextLabel())||"",this.selectedTextLabel=((a=this.selectedOptions[0])==null?void 0:a.getTextLabel())||"",this.displayInputValue=""),this.updateComplete.then(()=>{this.formControlController.updateValidity()})}createComboboxOptionsFromQuery(t){let e=[];this.filteredOptions=this.getSlottedOptions().filter(i=>this.filter(i,t)||t==="").map(i=>{var O,v,x;let a=i.cloneNode(!0);if(a.current=a.value===((O=this.lastOption)==null?void 0:O.value),a.selected=i.selected,a.checkbox=i.checkbox,a.size=i.size,!(((v=i.parentElement)==null?void 0:v.tagName.toLowerCase())==="sd-optgroup"))return a;let n=i.parentElement,g=(x=n.querySelector('[slot="label"]'))==null?void 0:x.cloneNode(!0),c=e.find(b=>b.id===n.id);if(c){c==null||c.appendChild(a),g&&(c==null||c.appendChild(g));return}let h=n.cloneNode();return h.appendChild(a),g&&h.appendChild(g),e.push(h),h}).filter(Boolean)}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}handleCurrentPlacement(t){let e=t.detail;e&&(this.currentPlacement=e)}handleFilterChange(){this.createComboboxOptionsFromQuery(this.displayInputValue)}handleUseTagsChange(){let t=this.getAllFilteredOptions();customElements.get("sd-option")&&t.forEach(e=>{e.checkbox=this.multiple})}applySizeToOptions(){this.getSlottedOptions().forEach(t=>{t.size=this.size})}handleDisabledChange(){this.formControlController.setValidity(this.disabled),(this.disabled||this.visuallyDisabled)&&(this.open=!1,this.handleOpenChange())}handleValueChange(){this.syncSelectedOptionsAndValue(),this.multiple?this.createComboboxOptionsFromQuery(this.displayInput.value):this.createComboboxOptionsFromQuery("")}handleDisplayInputValueChange(){this.createComboboxOptionsFromQuery(this.displayInputValue)}async handleOpenChange(){if(this.open&&(!this.disabled||!this.visuallyDisabled)){this.emit("sd-show"),this.addOpenListeners(),await C(this),this.listbox.hidden=!1,this.popup.active=!0;let{keyframes:i,options:a}=k(this,"combobox.show",{dir:this.localize.dir()});await S(this.popup.popup,i,a),this.emit("sd-after-show"),this.filteredOptions.length===0&&this.emit("sd-error");return}this.setCurrentOption(null),this.displayInput.removeAttribute("aria-activedescendant"),this.emit("sd-hide"),this.removeOpenListeners(),await C(this);let{keyframes:t,options:e}=k(this,"combobox.hide",{dir:this.localize.dir()});await S(this.popup.popup,t,e),this.listbox.hidden=!0,this.popup.active=!1,this.emit("sd-after-hide")}handleSizeChange(){this.size=this.floatingLabel&&this.size==="sm"?"md":this.size}async show(){if(this.open||this.disabled||this.visuallyDisabled){this.open=!1;return}return this.open=!0,Promise.race([w(this,"sd-after-show"),w(this,"sd-error")])}async hide(){if(!this.open||this.disabled){this.open=!1;return}return this.displayInputValue="",this.open=!1,w(this,"sd-after-hide")}checkValidity(){return this.valueInput.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.valueInput.reportValidity()}setCustomValidity(t){this.valueInput.setCustomValidity(t),this.formControlController.updateValidity()}focus(t){this.displayInput.focus(t)}blur(){this.displayInput.blur()}async handleInput(){let t=this.displayInput.value;this.displayInputValue=t,await this.updateComplete,this.open=this.filteredWrapper.children.length>0,this.formControlController.updateValidity(),this.emit("sd-input")}handleChange(){(!this.selectedOptions||!this.multiple)&&(this.selectedTextLabel=this.displayInput.value,this.updateComplete.then(()=>{this.formControlController.updateValidity()}),this.emit("sd-change"))}getSlottedOptions(){return K(D(this.defaultSlot)).flat()}getSlottedOptGroups(){return U(D(this.defaultSlot))}async handleDefaultSlotChange(){if(!customElements.get("sd-option")){customElements.whenDefined("sd-option").then(()=>this.handleDefaultSlotChange());return}let t=this.getSlottedOptions(),e=this.getSlottedOptGroups();this.applySizeToOptions();let i=this.findOptionByValue(t,this.value);this.selectedTextLabel=(i==null?void 0:i.getTextLabel())||"",t.forEach((a,o)=>{this.multiple&&(a.checkbox=!0),a.id=a.id||`sd-combobox-option-${o}`}),e.forEach((a,o)=>{a.id=a.id||`sd-combobox-optgroup-${o}`}),await this.syncSelectedOptionsAndValue(),this.multiple?this.createComboboxOptionsFromQuery(this.displayInputValue):this.createComboboxOptionsFromQuery("")}render(){let t={left:this.hasSlotController.test("left"),right:this.hasSlotController.test("right")},e=this.hasSlotController.test("label"),i=this.hasSlotController.test("help-text"),a=this.label?!0:!!e,o=this.helpText?!0:!!i,n=this.clearable&&!this.disabled&&!this.visuallyDisabled,g=t.left,c=this.value!==null&&String(this.value).length>0,h=this.floatingLabel&&a&&(this.hasFocus||c),O=this.disabled?"disabled":this.visuallyDisabled&&!this.hasFocus?"visuallyDisabled":this.hasFocus&&this.showInvalidStyle&&!this.open?"activeInvalid":this.hasFocus&&!this.open&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus||this.open?"active":this.showInvalidStyle&&!this.open?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",v=this.disabled||this.visuallyDisabled?"cursor-not-allowed":"cursor-pointer",x=this.disabled||this.visuallyDisabled?"text-neutral-500":"form-control-color-icon-fill",b={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],z={sm:"mr-1",md:"mr-2",lg:"mr-2"}[this.size],y={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size],N=this.size==="lg"?this.floatingLabel?"py-3":"py-2":this.floatingLabel?h?"py-2":"py-3":"py-1",q={sm:"left-[36px]",md:"left-[44px]",lg:"left-12"}[this.size];return p`<div part="form-control" class="${d("relative text-left",v,this.size==="sm"?"text-sm":"text-base",this.open&&"z-50")}">${a&&!this.floatingLabel?p`<div class="flex items-center gap-1 mb-2"><label id="label" part="form-control-label" class="${d(a&&"inline-block",a&&(this.visuallyDisabled||this.disabled)?"text-neutral-500":"form-control-color-text")}" aria-hidden="${a?"false":"true"}" @click="${this.handleLabelClick}"><slot name="label">${this.label}</slot></label></div>`:null} <span aria-live="polite" class="sr-only">${this.deletedTagLabel}</span><div part="form-control-input" class="relative w-full bg-white text-black">${a&&this.floatingLabel?p`<label id="label" part="form-control-floating-label" class="${d("absolute left-4 z-20 pointer-events-none transition-all duration-200",g?q:"left-4",h?this.size==="lg"?"top-2 text-xs":"top-1 text-xs":"top-1/2 -translate-y-1/2 form-control-color-text",h&&"mt-1")}" for="input"><span class="${d("leading-none",(this.visuallyDisabled||this.disabled)&&"text-neutral-500",h&&!this.visuallyDisabled&&!this.disabled&&"form-control--filled__floating-label-color-text")}">${this.label}</span></label>`:null}<div part="border" class="${d("absolute top-0 w-full h-full pointer-events-none border form-control-border-radius z-10 transition-[border] duration-medium ease-in-out",{disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",readonly:"form-control-color-border",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"form-control-color-border"}[O],this.open&&(this.currentPlacement==="bottom"?"rounded-bl-none rounded-br-none":"rounded-tl-none rounded-tr-none"))}"></div><sd-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${d("inline-flex relative w-full",this.currentPlacement==="bottom"?"origin-top":"origin-bottom")}" placement="${this.placement}" strategy="${this.hoist?"fixed":"absolute"}" flip shift sync="width" auto-size="vertical" auto-size-padding="10" exportparts="
10
10
  popup:popup__content,
11
11
  "><div part="combobox" class="${d("relative w-full px-4 flex flex-row items-center form-control-border-radius transition-colors hover:duration-fast ease-in-out",this.visuallyDisabled||this.disabled?"hover:bg-transparent":"hover:[@media(hover:hover)]:form-control--hover-color-background",this.open&&"shadow transition-shadow duration-medium ease-in-out",["invalid","activeInvalid"].includes(O)&&"form-control--invalid-color-background",{sm:"py-1 min-h-[32px]",md:"py-1 min-h-[40px]",lg:"py-2 min-h-[48px]"}[this.size],N)}" slot="anchor" @keydown="${this.handleComboboxKeyDown}" @mousedown="${this.handleComboboxMouseDown}">${t.left?p`<slot part="left" name="left" class="${d("inline-flex",z,x,y)}"></slot>`:""}<div class="${d("flex flex-wrap items-center gap-1 w-full min-w-0 relative",this.floatingLabel&&h&&"mt-4",this.floatingLabel&&!h&&this.size==="lg"&&"mt-2")}">${this.multiple&&this.useTags&&this.tags&&this.tags.length>0?p`<div part="tags" class="${d("flex flex-wrap items-center gap-1 min-w-0",z)}">${this.tags}</div>`:null} <input id="display-input" name="${this.name}" form="${this.form}" part="display-input" class="${d("appearance-none outline-none bg-transparent flex-auto min-w-0",v,this.selectedTextLabel&&!this.multiple?"placeholder:text-black":"placeholder:text-neutral-700",this.size==="sm"?h?"h-4":"h-6":h?"h-6":"h-8")}" type="text" placeholder="${!this.floatingLabel||h?this.selectedTextLabel&&!this.multiple?this.selectedTextLabel:this.placeholder||this.localize.term("comboboxDefaultPlaceholder"):""}" .disabled="${this.disabled}" .value="${this.displayInputValue}" autocomplete="off" spellcheck="false" autocapitalize="off" aria-controls="listbox" aria-expanded="${this.open}" aria-haspopup="listbox" aria-labelledby="label" aria-disabled="${this.disabled||this.visuallyDisabled}" aria-describedby="help-text invalid-message" aria-invalid="${this.showInvalidStyle}" role="combobox" tabindex="0" @focus="${this.handleFocus}" @blur="${this.handleBlur}" aria-autocomplete="list" aria-owns="listbox" @input="${this.handleInput}" @change="${this.handleChange}"></div><div aria-live="polite" id="control-value" class="absolute top-0 left-0 opacity-0 -z-10">${this.selectedOptions.map(L=>L==null?void 0:L.getTextLabel()).join(", ")}</div><input class="${d("value-input absolute top-0 left-0 w-full h-full opacity-0 -z-10",v)}" type="text" ?disabled="${this.disabled}" ?required="${this.required}" .value="${Array.isArray(this.value)?this.value.join(", "):this.value}" tabindex="-1" aria-controls="control-value" aria-hidden="true" @focus="${()=>this.focus()}" @invalid="${this.handleInvalid}"> ${n?p`<button part="clear-button" class="${d("flex justify-center",b,this.value.length>0?"visible":"invisible")}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.preventLoosingFocus}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-icon class="${d("text-neutral-700",y)}" name="close-circle" library="_internal"></sd-icon></slot></button>`:""} ${this.showInvalidStyle?p`<sd-icon part="invalid-icon" class="${d(b,y,"text-error")}" library="_internal" name="risk"></sd-icon>`:""} ${this.styleOnValid&&this.showValidStyle?p`<sd-icon part="valid-icon" class="${d("flex-shrink-0 text-success",b,y)}" library="_internal" name="confirm-circle"></sd-icon>`:""}<slot name="right" part="right" class="${d("inline-flex ml-2 leading-[0]",this.disabled||this.visuallyDisabled?"text-neutral-500":"form-control-color-icon-fill",y)}">${this.type!=="search"?p`<sd-icon class="${d("transition-transform duration-medium ease-in-out",this.open?"rotate-180":"rotate-0")}" name="chevron-bottom" part="chevron" library="_internal" color="currentColor" label="${this.localize.term("open")}"></sd-icon>`:""}</slot>${this.type==="search"?p`<button class="${d("flex items-center",b)}" type="button" @mousedown="${this.preventLoosingFocus}" @click="${this.handleSearchClick}"><sd-icon class="${d(x,y)}" library="_internal" name="magnifying-glass" label="${this.localize.term("search")}"></sd-icon></button>`:p`<button class="combobox-button absolute top-2" tabindex="-1" aria-hidden="true" @keydown="${this.handleComboboxMouseDown}" type="button"><span class="sr-only">${this.localize.term("open")}</span></button>`}</div><div id="listbox" role="${P(this.multiple?void 0:"listbox")}" aria-expanded="${this.open}" aria-multiselectable="${this.multiple}" aria-labelledby="label" part="listbox" class="${d("bg-white px-2 py-3 relative border-primary overflow-y-auto",this.open&&"shadow-listbox transition-shadow duration-medium ease-in-out",this.currentPlacement==="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")}" tabindex="-1" @mousedown="${this.preventLoosingFocus}" @mouseup="${this.handleOptionClick}"><div part="filtered-listbox">${this.filteredOptions.length===0?p`<span id="noResults" class="px-4 flex items-center w-full transition-all text-left text-base relative text-black py-3" aria-hidden="true" @click="${this.handleNoResultsClick}">${this.localize.term("noResults")}</span>`:this.options}</div><slot id="defaultOptionsSlot" class="hidden" @slotchange="${this.handleDefaultSlotChange}"></slot></div></sd-popup></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${d("text-sm mt-1",o?"block":"hidden",this.visuallyDisabled||this.disabled?"text-neutral-500":"text-neutral-700")}" aria-hidden="${!o}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage(this.size)}`}};s.styles=[...E.styles,V`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
12
12
  :host{position:relative;display:block;width:100%}:host([required]) #label::after{content:' *'}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{color:rgba(var(--sd-color-text-neutral-500,174 174 174))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{color:rgba(var(--sd-color-text-neutral-500,174 174 174))}:host([visually-disabled]) input{caret-color:transparent}:host([size=sm]) .combobox-button{right:var(--sd-spacing-4,1rem);height:var(--sd-spacing-4,1rem);width:var(--sd-spacing-4,1rem)}:host([size=md]) .combobox-button{right:.85rem;height:var(--sd-spacing-6,1.5rem);width:var(--sd-spacing-6,1.5rem)}:host([size=lg]) .combobox-button{right:var(--sd-spacing-3,.75rem);height:var(--sd-spacing-8,2rem);width:var(--sd-spacing-8,2rem)}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}sd-tag::part(base){border-radius:var(--sd-radius,.25rem);border-width:var(--sd-combobox__tag-border-width,.0625rem);padding-inline:var(--sd-spacing-1,.25rem)}sd-tag::part(content){display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:var(--tag-max-width,15ch)}sd-tag[size=lg]::part(base){padding-inline:var(--sd-spacing-2,.5rem)}sd-tag[disabled=false]::part(base):hover{background-color:rgba(var(--sd-color-background-primary-100,236 240 249))}[part=filtered-listbox] sd-optgroup:first-of-type{--display-divider:none}mark{background-color:transparent;--tw-font-weight:var(--sd-font-weight-bold, 600);font-weight:var(--sd-font-weight-bold,600);color:inherit}:host([type=search]) sd-icon[name=magnifying-glass],[part=chevron]{color:rgba(var(--sd-form-control-color-icon-fill))}:host([disabled])::part(chevron),:host([type=search][disabled]) sd-icon[name=magnifying-glass],:host([type=search][visually-disabled]) sd-icon[name=magnifying-glass],:host([visually-disabled])::part(chevron){color:rgba(var(--sd-color-icon-fill-neutral-500,--sd-color-neutral-500))}@property --tw-font-weight{syntax:"*";inherits:false}`],l([m("sd-popup")],s.prototype,"popup",2),l([m('[part="combobox"]')],s.prototype,"combobox",2),l([m('[part="display-input"]')],s.prototype,"displayInput",2),l([m(".value-input")],s.prototype,"valueInput",2),l([m('[part="listbox"]')],s.prototype,"listbox",2),l([m('[part="tags"]')],s.prototype,"tagWrapper",2),l([m('[part="filtered-listbox"]')],s.prototype,"filteredWrapper",2),l([m("slot:not([name])")],s.prototype,"defaultSlot",2),l([m("#invalid-message")],s.prototype,"invalidMessage",2),l([u()],s.prototype,"hasFocus",2),l([u()],s.prototype,"displayInputValue",2),l([u()],s.prototype,"selectedTextLabel",2),l([u()],s.prototype,"selectedOptions",2),l([u()],s.prototype,"filteredOptions",2),l([u()],s.prototype,"allOptions",2),l([u()],s.prototype,"lastOption",2),l([u()],s.prototype,"showValidStyle",2),l([u()],s.prototype,"showInvalidStyle",2),l([u()],s.prototype,"deletedTagLabel",2),l([r({reflect:!0})],s.prototype,"name",2),l([r({converter:{fromAttribute:t=>t.split(" "),toAttribute:t=>t.join(" ")}})],s.prototype,"value",2),l([R()],s.prototype,"defaultValue",2),l([r({type:String,reflect:!0})],s.prototype,"size",2),l([r({type:String,reflect:!0})],s.prototype,"placeholder",2),l([r({type:String,attribute:"max-options-tag-label",reflect:!0})],s.prototype,"maxOptionsTagLabel",2),l([r({type:Boolean,reflect:!0})],s.prototype,"disabled",2),l([r({type:Boolean,reflect:!0,attribute:"visually-disabled"})],s.prototype,"visuallyDisabled",2),l([r({type:Boolean,reflect:!0})],s.prototype,"clearable",2),l([r({type:Boolean,reflect:!0})],s.prototype,"open",2),l([r({type:Boolean,reflect:!0})],s.prototype,"hoist",2),l([r({type:String,reflect:!0})],s.prototype,"label",2),l([r({type:String,reflect:!0})],s.prototype,"placement",2),l([r({type:String,attribute:"help-text",reflect:!0})],s.prototype,"helpText",2),l([r({type:String,reflect:!0})],s.prototype,"form",2),l([r({type:Boolean,reflect:!0})],s.prototype,"required",2),l([r({attribute:"floating-label",type:Boolean,reflect:!0})],s.prototype,"floatingLabel",2),l([r({type:String,reflect:!0})],s.prototype,"type",2),l([u()],s.prototype,"currentPlacement",2),l([r()],s.prototype,"getOption",2),l([r({type:Boolean,reflect:!0})],s.prototype,"multiple",2),l([r({type:Boolean,reflect:!0})],s.prototype,"useTags",2),l([r({type:Number,reflect:!0,attribute:"max-options-visible"})],s.prototype,"maxOptionsVisible",2),l([r({type:Boolean,reflect:!0,attribute:"style-on-valid"})],s.prototype,"styleOnValid",2),l([r()],s.prototype,"filter",2),l([r()],s.prototype,"getTag",2),l([f("filter",{waitUntilFirstUpdate:!0})],s.prototype,"handleFilterChange",1),l([f("useTags",{waitUntilFirstUpdate:!0})],s.prototype,"handleUseTagsChange",1),l([f("size",{waitUntilFirstUpdate:!0})],s.prototype,"applySizeToOptions",1),l([f(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],s.prototype,"handleDisabledChange",1),l([f("value",{waitUntilFirstUpdate:!0})],s.prototype,"handleValueChange",1),l([f("displayInputValue",{waitUntilFirstUpdate:!0})],s.prototype,"handleDisplayInputValueChange",1),l([f("open",{waitUntilFirstUpdate:!0})],s.prototype,"handleOpenChange",1),l([f(["size","floatingLabel"])],s.prototype,"handleSizeChange",1),s=l([F("sd-combobox")],s);T("combobox.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});T("combobox.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});export{s as a};
@@ -1,2 +1,2 @@
1
- import{a as i}from"./chunk.WWGARXPI.js";import{a as z,b as U,c as G}from"./chunk.23WKPZET.js";import{b as N}from"./chunk.LZRL7OLU.js";import{a as K}from"./chunk.CGQ2BPPZ.js";import{a as W}from"./chunk.MEDJPDBB.js";import{a as w}from"./chunk.4ZZFYCXX.js";import{a as _}from"./chunk.NYKJXI3Q.js";import{a as H,b,c as O,d as Y,h as A}from"./chunk.J45556RK.js";import{b as q,e as F,i as R}from"./chunk.OBAEIKIV.js";import{e as d}from"./chunk.6EV4YU6C.js";var r=class extends A{constructor(){super();this.localize=new W(this);this.hasSlotController=new K(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=i.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.handleCalendarIconClick=t=>{if(t.preventDefault(),t.stopPropagation(),!(this.disabled||this.visuallyDisabled||this.readonly)){if(this.open){this.hide(),this.emit("sd-datepicker-close");return}this.show(),this.updateComplete.then(()=>{var e;return(e=this.input)==null?void 0:e.focus({preventScroll:!0})})}};this.handleInput=t=>{var l,h,o,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,a=e.value,n=(o=e.selectionStart)!=null?o:a.length,s=(y=t.inputType)==null?void 0:y.startsWith("delete");if(this.range){let c=a.replace(/\D/g,""),f=c.slice(0,8),p=c.slice(8,16),u=this.buildDmyFromDigits(f),M=this.buildDmyFromDigits(p),g;f.length===0?g="":f.length<8?g=u:p.length>0?g=`${u} - ${M}`:g=s?u:`${u} -`;let x=this.countDigitsBeforeCaret(a,n),D;if(x<=8){let v=this.digitIndexToDmyCaretPos(Math.min(x,8));D=Math.min(v,u.length)}else{let v=f.length<8?u.length:u.length+3,S=Math.min(x-8,8),I=this.digitIndexToDmyCaretPos(S);D=v+Math.min(I,M.length)}this.inputValue=g;let C=!1;if(/^\d{2}\.\d{2}\.\d{4}$/.test(u)){let v=this.dmyToIso(u),S=v?i.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=i.startOfDayLocal(S),C=!0)}else this.rangeStart&&(this.rangeStart=null,C=!0),this.rangeEnd&&(this.rangeEnd=null,C=!0);if(/^\d{2}\.\d{2}\.\d{4}$/.test(M)&&this.rangeStart){let v=i.parseLocalISO(this.rangeStart),S=this.dmyToIso(M),I=S?i.parseLocalISO(S):null;if(!!I&&!this.isDisabled(I)&&this.inMinMax(I)){let[$,V]=i.compareDates(v,I)<=0?[v,I]:[I,v],P=i.isSameDay($,V);if((this.allowSameDayRange||!P)&&!this.wouldRangeContainDisabled($,V)){let T=i.toLocalISODate(i.startOfDayLocal($)),k=i.toLocalISODate(i.startOfDayLocal(V));(this.rangeStart!==T||this.rangeEnd!==k)&&(this.rangeStart=T,this.rangeEnd=k,this.viewMonth=new Date(V.getFullYear(),V.getMonth(),1),this.focusedDate=i.startOfDayLocal(V),C=!0)}}}else this.rangeEnd&&(this.rangeEnd=null,C=!0);this.showInvalidStyle=!1,this.showValidStyle=!!(this.rangeStart&&this.rangeEnd),C&&(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 c=e,f=c.value,p=(m=c.selectionStart)!=null?m:f.length,u=f.replace(/\D/g,"").slice(0,8),M=u.slice(0,2),g=u.slice(2,4),x=u.slice(4,8),D="";M.length>0&&(D+=M,M.length===2&&(D+=".")),g.length>0&&M.length===2&&(D+=g,g.length===2&&(D+=".")),x.length>0&&M.length===2&&g.length===2&&(D+=x),D=D.replace(/\.\.+/g,".");let C=this.inputValue||"";this.inputValue=D;let v=p,S=L=>{let T=[];for(let k=0;k<L.length;k++)L[k]==="."&&T.push(k);return T},I=S(C),E=S(D),$=I.filter(L=>L<p).length,P=E.filter(L=>L<p).length-$;if(P>0?v+=P:!I.includes(p)&&E.includes(p)&&(v+=1),v=Math.min(Math.max(0,v),D.length),requestAnimationFrame(()=>{var T;let L=(T=this.input)!=null?T:c;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 c=this.rangeStart?i.parseLocalISO(this.rangeStart):null,f=this.rangeEnd?i.parseLocalISO(this.rangeEnd):null;c&&!f?this.setNavStatus(`${this.termStartSelected()}: ${this.formatSelectionLabel(c)}`):c&&f&&this.setNavStatus(`${this.termStartSelected()}: ${this.formatSelectionLabel(c)}; ${this.termEndSelected()}: ${this.formatSelectionLabel(f)}`)}else if(this.value){let c=i.parseLocalISO(this.value);this.setNavStatus(`${this.formatSelectionLabel(c)}`)}};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,a,n)=>{if(!(this.disabled||this.visuallyDisabled||this.readonly)){if(t.key==="Escape"&&this.open){t.preventDefault(),t.stopPropagation(),this.hide(),this.emit("sd-datepicker-close");return}if(t.key==="Tab"&&!t.shiftKey){n&&(this.hide(),this.emit("sd-datepicker-close"));return}(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),t.stopPropagation(),e==="month"?this.setMonth(a):this.setYear(a))}};this.onKeyDown=t=>{var s,l,h,o;if(this.disabled||this.visuallyDisabled||this.readonly){t.preventDefault(),t.stopPropagation();return}if(t.key==="Tab"&&!t.shiftKey){t.preventDefault(),t.stopPropagation(),(l=(s=this.shadowRoot)==null?void 0:s.querySelector('button[part="prev-year-button"]'))==null||l.focus({preventScroll:!0});return}let e=t.key,a=!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:a=!1}if(a){t.preventDefault();let y=(h=this.viewMonth)!=null?h:this.ensureViewMonth();if(n.getMonth()!==y.getMonth()||n.getFullYear()!==y.getFullYear()){let p=new Date(n.getFullYear(),n.getMonth(),1);this.viewMonth=p;let u=this.formatMonthYear(p);this.setNavStatus(u)}let c=i.startOfDayLocal(n);c.getTime()!==((o=this.focusedDate)==null?void 0:o.getTime())&&(this.focusedDate=c);let f=c.toLocaleDateString(this.locale,{weekday:"long",day:"numeric",month:"long",year:"numeric"});this.setNavStatus(f),this.requestUpdate(),requestAnimationFrame(()=>{let p=this.shadowRoot,u=p==null?void 0:p.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==="Tab"&&!t.shiftKey&&this.open){t.preventDefault(),t.stopPropagation(),this.tabbingIntoGrid=!0,this.focusInitialGridDay();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?i.parseLocalISO(this.value):null,e=this.rangeStart?i.parseLocalISO(this.rangeStart):null,a=i.startOfDayLocal(new Date),n=this.range&&e?e:t!=null?t:a,s=(l=this.viewMonth)!=null?l:new Date(n.getFullYear(),n.getMonth(),1);this.viewMonth=s,this.focusedDate=i.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 a;if(!this.viewMonth)return;let t=this.focusedDate||this.range&&this.rangeEnd&&i.parseLocalISO(this.rangeEnd)||this.range&&this.rangeStart&&i.parseLocalISO(this.rangeStart)||this.value&&i.parseLocalISO(this.value)||this.today;if(!t)return;let e=i.clampDateToMonth(t,this.viewMonth);e.getTime()!==((a=this.focusedDate)==null?void 0:a.getTime())&&(this.focusedDate=e)}handleDisabledDatesChange(){this.syncDisabledDatesSet(),this.requestUpdate()}handleValueChange(){let t=this.value?i.parseLocalISO(this.value):null;t&&(this.viewMonth=new Date(t.getFullYear(),t.getMonth(),1),this.focusedDate=i.startOfDayLocal(t)),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var a;let e=this.input;if(e){e.value=(a=this.inputValue)!=null?a:"";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?i.parseLocalISO(this.rangeStart):null,e=this.rangeEnd?i.parseLocalISO(this.rangeEnd):null,a=t!=null?t:e;a&&(this.viewMonth=new Date(a.getFullYear(),a.getMonth(),1),this.focusedDate=i.startOfDayLocal(a)),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 i.parseLocalISO(t)}inMinMax(t){let e=s=>{if(s==null)return null;if(s instanceof Date)return i.startOfDayLocal(s);if(typeof s=="number")return i.startOfDayLocal(new Date(s));if(typeof s=="string"){let l=this.parseISO(s);return l?i.startOfDayLocal(l):null}return null},a=e(this.min),n=e(this.max);return!(a&&t<a||n&&t>n)}isInDisabledDates(t){if(!this.disabledDatesSet||this.disabledDatesSet.size===0)return!1;let e=t.getFullYear(),a=String(t.getMonth()+1).padStart(2,"0"),n=String(t.getDate()).padStart(2,"0"),s=`${e}-${a}-${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 a="\u200B".repeat(this.statusBumpCounter%3);this.statusSelectText=t+a},e)}formatSelectionLabel(t){if(this.locale==="de-DE")return t.toLocaleDateString("de-DE",{day:"numeric",month:"long",year:"numeric"});let e=t.getDate(),a=this.ordinal(e),n=t.toLocaleDateString("en-US",{month:"long"}),s=t.getFullYear();return`${a} of ${n} ${s}`}ordinal(t){let e=["th","st","nd","rd"],a=t%100,n=e[(a-20)%10]||e[a]||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 a=JSON.parse(e);Array.isArray(a)&&(t=a)}catch(a){t=[]}else e.length>0&&(t=e.split(",").map(a=>a.trim()).filter(Boolean))}this.disabledDatesSet=new Set(t)}wouldRangeContainDisabled(t,e){let a=i.compareDates(t,e)<=0?i.startOfDayLocal(t):i.startOfDayLocal(e),n=i.compareDates(t,e)<=0?i.startOfDayLocal(e):i.startOfDayLocal(t),s=new Date(a);for(;i.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=i.parseLocalISO(t);if(e||(e=i.parseLocalISO(t.replace(/-/g,"."))),!e)return"";let a=String(e.getDate()).padStart(2,"0"),n=String(e.getMonth()+1).padStart(2,"0"),s=String(e.getFullYear());return`${a}.${n}.${s}`}dmyToIso(t){if(!t)return null;let e=t.match(/^(\d{2})\.(\d{2})\.(\d{4})$/);if(!e)return null;let a=Number(e[1]),n=Number(e[2]),s=Number(e[3]),l=new Date(s,n-1,a);if(l.getFullYear()!==s||l.getMonth()!==n-1||l.getDate()!==a)return null;let h=i.startOfDayLocal(l);return i.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 o=this.dmyToIso(h);return o?{start:o,end:null,valid:!0}:{start:null,end:null,valid:!1}}else if(l.length>=2){let h=(n=l[0])!=null?n:"",o=(s=l[1])!=null?s:"",y=h?this.dmyToIso(h):null,m=o?this.dmyToIso(o):null;return h&&!y?{start:null,end:null,valid:!1}:o&&!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 a=this.dmyToIso(e);return a?{single:a,valid:!0}:{single:null,valid:!1}}applyParsedInput(t){var h,o,y,m;if(!t.valid)return this.showInvalidStyle=!0,this.showValidStyle=!1,this.formControlController.setValidity(!1),!1;let e=c=>{if(!c)return!0;let f=i.parseLocalISO(c);return!(!this.inMinMax(f)||this.isDisabled(f))},a=!1;if(this.range){let c=(h=t.start)!=null?h:null,f=(o=t.end)!=null?o:null;if(!e(c)||f&&!e(f))return this.showInvalidStyle=!0,this.showValidStyle=!1,!1;let p=c?i.parseLocalISO(c):null,u=f?i.parseLocalISO(f):null;if(p&&u){if(i.compareDates(p,u)>0){let x=p;p=u,u=x}if(!this.allowSameDayRange&&i.isSameDay(p,u))return this.showInvalidStyle=!0,this.showValidStyle=!1,!1;if(this.wouldRangeContainDisabled(p,u))return this.showInvalidStyle=!0,this.showValidStyle=!1,!1}let M=p?i.toLocalISODate(i.startOfDayLocal(p)):null,g=u?i.toLocalISODate(i.startOfDayLocal(u)):null;if(this.rangeStart!==M||this.rangeEnd!==g){this.rangeStart=M,this.rangeEnd=g,this.previewEnd=null,a=!0;let x=(y=p!=null?p:u)!=null?y:this.today;this.viewMonth=new Date(x.getFullYear(),x.getMonth(),1),this.focusedDate=i.startOfDayLocal(x),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?i.parseLocalISO(n):null,l=s?i.toLocalISODate(i.startOfDayLocal(s)):null;return this.value!==l&&(this.value=l,a=!0,s&&(this.viewMonth=new Date(s.getFullYear(),s.getMonth(),1),this.focusedDate=i.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(),a}buildDmyFromDigits(t){let e=t.slice(0,8),a=e.slice(0,2),n=e.slice(2,4),s=e.slice(4,8),l=a;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 a,n;((n=(a=t.composedPath)==null?void 0:a.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(),a=new Date(e.getFullYear(),e.getMonth()+t,1);if(a.getMonth()===e.getMonth()&&a.getFullYear()===e.getFullYear())return;this.viewMonth=a;let n=this.formatMonthYear(a);this.setNavStatus(n),this.emit("sd-month-change",{detail:{month:a}})}setYear(t){var s;let e=(s=this.viewMonth)!=null?s:this.ensureViewMonth(),a=new Date(e.getFullYear()+t,e.getMonth(),1);if(a.getFullYear()===e.getFullYear()&&a.getMonth()===e.getMonth())return;this.viewMonth=a;let n=this.formatMonthYear(a);this.setNavStatus(n),this.emit("sd-month-year",{detail:{month:a}})}focusInitialGridDay(){var n;let t=null;if(!this.range&&this.value){let s=i.parseLocalISO(this.value);s&&(t=i.startOfDayLocal(s))}if(this.range){let s=this.rangeStart?i.parseLocalISO(this.rangeStart):null,l=this.rangeEnd?i.parseLocalISO(this.rangeEnd):null;s?t=i.startOfDayLocal(s):l&&(t=i.startOfDayLocal(l))}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()&&i.isSameDay(h,this.today)&&!this.isDisabled(h));if(l)t=i.startOfDayLocal(l);else{let h=s.flat().find(o=>o.getMonth()===e.getMonth()&&!this.isDisabled(o));t=h?i.startOfDayLocal(h):null}}t&&(this.focusedDate=t),this.requestUpdate(),requestAnimationFrame(()=>{let s=this.shadowRoot,l=(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.selected"))||(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=i.startOfDayLocal(t),a=i.toLocalISODate(e);if(this.value===a)return;this.value=a;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=i.startOfDayLocal(t),a=this.rangeStart?i.parseLocalISO(this.rangeStart):null,n=this.rangeEnd?i.parseLocalISO(this.rangeEnd):null;if(!a&&!n){if(this.isDisabled(e))return;this.rangeStart=i.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 o=l.value.length;l.setSelectionRange(o,o)})}))});return}if(a&&!n){if(this.isDisabled(e))return;if(i.isSameDay(a,e)){if(!this.allowSameDayRange){this.rangeStart=i.toLocalISODate(e),this.rangeEnd=null,this.previewEnd=null;let c=this.formatSelectionLabel(e);this.announceSelect(`${this.termStartSelected()}: ${c}`,40),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var p;let f=this.input;f&&(f.value=(p=this.inputValue)!=null?p:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let u=f.value.length;f.setSelectionRange(u,u)})}))});return}this.rangeStart=i.toLocalISODate(e),this.rangeEnd=i.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 f;let c=this.input;c&&(c.value=(f=this.inputValue)!=null?f:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let p=c.value.length;c.setSelectionRange(p,p)})}))});return}let s=i.parseLocalISO(this.rangeStart);if(this.wouldRangeContainDisabled(s,e))return;let[l,h]=i.compareDates(s,e)<=0?[s,e]:[e,s];this.rangeStart=i.toLocalISODate(l),this.rangeEnd=i.toLocalISODate(h),this.previewEnd=null;let o=this.formatSelectionLabel(l),y=this.formatSelectionLabel(h);this.announceSelect(`${this.termStartSelected()}: ${o}`,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 c;let m=this.input;m&&(m.value=(c=this.inputValue)!=null?c:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let f=m.value.length;m.setSelectionRange(f,f)})}))});return}if(a&&n){if(this.isDisabled(e))return;this.rangeStart=i.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 o=l.value.length;l.setSelectionRange(o,o)})}))})}}selectDate(t){this.readonly||(this.range?this.selectRangeDate(t):this.selectSingleDate(t))}ensureViewMonth(){if(this.viewMonth)return this.viewMonth;let t=this.value?i.parseLocalISO(this.value):null,e=this.rangeStart?i.parseLocalISO(this.rangeStart):null,a=i.startOfDayLocal(new Date),n=this.range&&e?e:t!=null?t:a,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,a=new Date(t.getFullYear(),t.getMonth(),1),n=new Date(a),s=(a.getDay()-e+7)%7;n.setDate(a.getDate()-s);let l=[],h=n;for(let m=0;m<6;m++){let c=[];for(let f=0;f<7;f++)c.push(new Date(h)),h.setDate(h.getDate()+1);l.push(c)}let o=m=>m.every(c=>c.getMonth()!==t.getMonth());for(;l.length>0&&o(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),a=[];for(let s=0;s<7;s++){let l=new Date(e);l.setDate(e.getDate()+(t+s)%7);try{a.push(new Intl.DateTimeFormat(this.locale,{weekday:"short"}).format(l))}catch(h){a.push(l.toLocaleDateString(void 0,{weekday:"short"}))}}return a}getTabTargetDayForCurrentView(t){var h;let e=(h=this.viewMonth)!=null?h:this.ensureViewMonth(),a=null;if(!this.range&&this.value){let o=i.parseLocalISO(this.value);o&&(a=i.startOfDayLocal(o))}if(this.range){let o=this.rangeStart?i.parseLocalISO(this.rangeStart):null,y=this.rangeEnd?i.parseLocalISO(this.rangeEnd):null;o?a=i.startOfDayLocal(o):y&&(a=i.startOfDayLocal(y))}if((o=>o?o.getFullYear()===e.getFullYear()&&o.getMonth()===e.getMonth()&&!this.isDisabled(o):!1)(a))return a;let s=t.flat().find(o=>o.getMonth()===e.getMonth()&&i.isSameDay(o,this.today)&&!this.isDisabled(o));if(s)return i.startOfDayLocal(s);let l=t.flat().find(o=>o.getMonth()===e.getMonth()&&!this.isDisabled(o));return l?i.startOfDayLocal(l):null}onDayMouseEnter(t){if(!this.range||this.readonly)return;let e=this.rangeStart?i.parseLocalISO(this.rangeStart):null,a=this.rangeEnd?i.parseLocalISO(this.rangeEnd):null;if(e&&!a){let n=i.startOfDayLocal(t);this.previewEnd=this.isDisabled(n)?null:n,this.requestUpdate()}}onGridMouseLeave(){this.previewEnd!==null&&(this.previewEnd=null,this.requestUpdate())}renderCalendar(){var f,p;let t=(f=this.viewMonth)!=null?f:this.ensureViewMonth(),{weeks:e}=this.getMonthMatrix(t),a=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,o=this.previewEnd,y=u=>!this.range||!l||h||!o?!1:i.isBetweenInclusive(u,l,o),m=this.getTabTargetDayForCurrentView(e),c=this.disabled||this.visuallyDisabled?"text-neutral-500":"icon-color";return F`<div part="datepicker" id="calendar" role="dialog" aria-label="${this.range?this.localize.term("datePickerRange"):this.localize.term("datePicker")}" class="${w("w-[284px] z-50 bg-white py-3 px-4",this.open?"block shadow-listbox":"hidden",(p=this.currentPlacement)!=null&&p.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="${w("nav prev w-6 h-6 hover:cursor-pointer focus-visible:focus-outline",c)}" part="prev-year-button" @click="${()=>this.setYear(-1)}" @keydown="${u=>this.handleHeaderKeyDown(u,"year",-1,!1)}" aria-label="${this.localize.term("previousYear")}"><sd-icon library="_internal" name="chevrons-small-left" class="h-6 w-6"></sd-icon></button> <button type="button" tabindex="0" class="${w("nav prev w-6 h-6 hover:cursor-pointer focus-visible:focus-outline",c)}" part="prev-month-button" @click="${()=>this.setMonth(-1)}" @keydown="${u=>this.handleHeaderKeyDown(u,"month",-1,!1)}" aria-label="${this.localize.term("previousMonth")}"><sd-icon library="_internal" name="chevron-sm-left" class="h-6 w-6"></sd-icon></button></div><div tabindex="-1" class="month-label flex justify-center sd-headline sd-headline--size-base" part="month-label" aria-live="polite">${a}</div><div class="flex items-center"><button type="button" tabindex="0" class="${w("nav next w-6 h-6 hover:cursor-pointer focus-visible:focus-outline",c)}" part="next-month-button" @click="${()=>this.setMonth(1)}" @keydown="${u=>this.handleHeaderKeyDown(u,"month",1,!1)}" aria-label="${this.localize.term("nextMonth")}"><sd-icon library="_internal" name="chevron-sm-right" class="h-6 w-6"></sd-icon></button> <button type="button" tabindex="0" class="${w("nav next w-6 h-6 hover:cursor-pointer focus-visible:focus-outline",c)}" part="next-year-button" @click="${()=>this.setYear(1)}" @keydown="${u=>this.handleHeaderKeyDown(u,"year",1,!0)}" aria-label="${this.localize.term("nextYear")}"><sd-icon library="_internal" name="chevrons-small-right" class="h-6 w-6"></sd-icon></button></div></div><sd-divider></sd-divider><div class="sr-only" aria-live="polite" aria-atomic="true">${this.statusNavText}</div><div class="sr-only" aria-live="assertive" aria-atomic="true">${this.statusSelectText}</div><div class="sr-only" id="keyboard-hint">${this.localize.term("datePickerInfo")}</div><div class="grid mt-2" role="grid" aria-describedby="keyboard-hint" aria-label="${a}" 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((u,M)=>F`<div role="columnheader" aria-colindex="${M+1}" part="weekday" class="cell head flex items-center justify-center font-bold text-black text-sm leading-none h-8" aria-label="${u}" title="${u}" id="${"col-"+(M+1)}">${u}</div>`)}</div>${e.map((u,M)=>F`<div class="grid-row grid grid-cols-7 ${M===0?"mt-2":""}" role="row" aria-rowindex="${M+2}">${u.map((g,x)=>{let D=g.getMonth()===t.getMonth(),C=this.isDisabled(g)||!this.inMinMax(g),v=i.isSameDay(g,this.focusedDate),S=i.isSameDay(g,this.today),I=!this.range&&s?i.isSameDay(g,s):!1,E=this.range&&l?i.isSameDay(g,l):!1,$=this.range&&h?i.isSameDay(g,h):!1,V=this.range&&l&&h?i.isBetweenInclusive(g,l,h):!1,P=y(g)&&!C,L=-1,T=m&&i.isSameDay(g,m);(this.tabbingIntoGrid&&T||!this.tabbingIntoGrid&&v)&&(L=0);let k=this.isWeekend(g),j=g.toLocaleDateString(this.locale,{weekday:"long",day:"numeric",month:"long",year:"numeric"}),B=E?this.localize.term("startDateSelected"):$?this.localize.term("endDateSelected"):void 0;return F`<button type="button" part="day" class="${w("cell day relative flex items-center justify-center rounded w-[36px] focus-visible:focus-outline focus-visible:z-10",this.size==="sm"?"text-sm h-6":"text-base h-8",E||$?"sd-datepicker__date-item--selected-color-background sd-datepicker__date-item--selected-color-text hover:sd-datepicker__date-item--selected--hover-color-background hover:sd-datepicker__date-item--selected--hover-color-text":"hover:sd-datepicker__date-item--hover--default-color-text",!E&&!$&&!V&&"hover:sd-datepicker__date-item--hover--default-color-background",I?"selected border-primary sd-datepicker__date-item--selected-color-background sd-datepicker__date-item--selected-color-text hover:sd-datepicker__date-item--selected--hover-color-text hover:sd-datepicker__date-item--selected--hover-color-background":(E||$)&&!D?"out-month":D?this.isInDisabledDates(g)||!this.inMinMax(g)?"out-month text-neutral-500":this.disabledWeekends&&k?"weekend-day text-neutral-500":"in-month sd-datepicker__date-item--default-color-text":this.disabledWeekends&&k?"out-month weekend-day text-neutral-500":k?"out-month weekend-day text-neutral-700":"out-month text-neutral-700 hover:sd-datepicker__date-item--hover--prev-next-color-text hover:sd-datepicker__date-item--hover--prev-next-color-background",E?"rounded-l-md rounded-r-none":"",$?"range-end rounded-r-md rounded-l-none":"",V&&!E&&!$?"in-range selected sd-datepicker__date-item--range-color-background rounded-none hover:sd-datepicker__date-item--selected--hover-color-background hover:sd-datepicker__date-item--selected--hover-color-text":"",!V&&P&&!E&&!$?"in-preview-range bg-primary-100 text-primary-500 rounded-none":"",S&&!I&&!E&&!$&&v?"today border-[1px] border-primary focus-visible:border-transparent sd-datepicker__date-item--current-font-weight":"",C?"disabled cursor-not-allowed hover:bg-transparent":"cursor-pointer",v?"focused":"")}" role="gridcell" aria-colindex="${x+1}" aria-labelledby="${"col-"+(x+1)}" .tabIndex="${L}" ?disabled="${this.disabled||this.readonly}" aria-disabled="${C||this.visuallyDisabled||this.disabled||this.readonly?"true":"false"}" aria-selected="${I||V||E||$?"true":"false"}" aria-current="${S?"date":R}" aria-label="${j}" aria-roledescription="${B!=null?B:R}" @focus="${()=>this.focusedDate=i.startOfDayLocal(g)}" @mouseenter="${()=>this.onDayMouseEnter(g)}" @keydown="${this.onKeyDown}" @click="${()=>{this.focusedDate=i.startOfDayLocal(g),this.selectDate(g)}}">${g.getDate()}</button>`})}</div>`)}</div></div>`}render(){var p,u;let t={label:this.hasSlotController.test("label"),helpText:this.hasSlotController.test("help-text"),tooltip:this.hasSlotController.test("tooltip")},e=this.label?!0:!!t.label,a=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",o={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",c={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],f=this.size==="sm"?"text-sm":"text-base";return F`<div part="form-control" class="${w("min-w-[284px]",this.open&&"z-50",(this.disabled||this.visuallyDisabled)&&"cursor-not-allowed")}">${e&&!this.floatingLabel||n?F`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${w(e?"inline-block":"hidden",this.visuallyDisabled||this.disabled?"text-neutral-500":"form-control-color-text",f)}" for="input" aria-hidden="${e?"false":"true"}"><slot name="label">${this.label}</slot></label> ${t.tooltip?F`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${w("relative w-full",this.disabled&&"pointer-events-none",this.visuallyDisabled&&"cursor-not-allowed")}">${e&&this.floatingLabel?F`<label id="label" part="form-control-floating-label" class="${w("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="${w("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="${w("absolute top-0 w-full h-full pointer-events-none border form-control-border-radius z-10 transition-[border] duration-medium ease-in-out",c,this.open&&((p=this.currentPlacement)!=null&&p.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-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${w("inline-flex relative w-full",(u=this.currentPlacement)!=null&&u.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="${w("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" aria-describedby="${a?"help-text":void 0}" aria-invalid="${this.showInvalidStyle?"true":"false"}" aria-label="${this.range?"Select date range":"Select a date"}" class="${w("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],f,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?F`<sd-icon part="invalid-icon" class="${w("text-error",o,y)}" library="_internal" name="risk"></sd-icon>`:""} ${this.showValidStyle&&this.styleOnValid?F`<sd-icon class="${w("text-success shrink-0",o,y)}" library="_internal" name="confirm-circle" part="valid-icon"></sd-icon>`:""}<sd-icon class="${w(h,o,y,"hover:cursor-pointer")}" library="_internal" name="calendar" @click="${this.handleCalendarIconClick}"></sd-icon></div>${this.renderCalendar()}</sd-popup></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${w("text-sm mt-1",a?"block":"hidden",this.visuallyDisabled||this.disabled?"text-neutral-500":"text-neutral-700")}" aria-hidden="${!a}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage(this.size)}`}};r.styles=[...A.styles,q`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
1
+ import{a as i}from"./chunk.WWGARXPI.js";import{a as z,b as U,c as G}from"./chunk.23WKPZET.js";import{b as N}from"./chunk.LZRL7OLU.js";import{a as K}from"./chunk.CGQ2BPPZ.js";import{a as W}from"./chunk.MEDJPDBB.js";import{a as w}from"./chunk.4ZZFYCXX.js";import{a as _}from"./chunk.NYKJXI3Q.js";import{a as H,b,c as O,d as Y,h as A}from"./chunk.J45556RK.js";import{b as q,e as F,i as R}from"./chunk.OBAEIKIV.js";import{e as d}from"./chunk.6EV4YU6C.js";var r=class extends A{constructor(){super();this.localize=new W(this);this.hasSlotController=new K(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=i.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.handleCalendarIconClick=t=>{if(t.preventDefault(),t.stopPropagation(),!(this.disabled||this.visuallyDisabled||this.readonly)){if(this.open){this.hide(),this.emit("sd-datepicker-close");return}this.show(),this.updateComplete.then(()=>{var e;return(e=this.input)==null?void 0:e.focus({preventScroll:!0})})}};this.handleInput=t=>{var l,h,o,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,a=e.value,n=(o=e.selectionStart)!=null?o:a.length,s=(y=t.inputType)==null?void 0:y.startsWith("delete");if(this.range){let c=a.replace(/\D/g,""),f=c.slice(0,8),p=c.slice(8,16),u=this.buildDmyFromDigits(f),M=this.buildDmyFromDigits(p),g;f.length===0?g="":f.length<8?g=u:p.length>0?g=`${u} - ${M}`:g=s?u:`${u} -`;let x=this.countDigitsBeforeCaret(a,n),D;if(x<=8){let v=this.digitIndexToDmyCaretPos(Math.min(x,8));D=Math.min(v,u.length)}else{let v=f.length<8?u.length:u.length+3,S=Math.min(x-8,8),I=this.digitIndexToDmyCaretPos(S);D=v+Math.min(I,M.length)}this.inputValue=g;let C=!1;if(/^\d{2}\.\d{2}\.\d{4}$/.test(u)){let v=this.dmyToIso(u),S=v?i.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=i.startOfDayLocal(S),C=!0)}else this.rangeStart&&(this.rangeStart=null,C=!0),this.rangeEnd&&(this.rangeEnd=null,C=!0);if(/^\d{2}\.\d{2}\.\d{4}$/.test(M)&&this.rangeStart){let v=i.parseLocalISO(this.rangeStart),S=this.dmyToIso(M),I=S?i.parseLocalISO(S):null;if(!!I&&!this.isDisabled(I)&&this.inMinMax(I)){let[$,V]=i.compareDates(v,I)<=0?[v,I]:[I,v],P=i.isSameDay($,V);if((this.allowSameDayRange||!P)&&!this.wouldRangeContainDisabled($,V)){let T=i.toLocalISODate(i.startOfDayLocal($)),k=i.toLocalISODate(i.startOfDayLocal(V));(this.rangeStart!==T||this.rangeEnd!==k)&&(this.rangeStart=T,this.rangeEnd=k,this.viewMonth=new Date(V.getFullYear(),V.getMonth(),1),this.focusedDate=i.startOfDayLocal(V),C=!0)}}}else this.rangeEnd&&(this.rangeEnd=null,C=!0);this.showInvalidStyle=!1,this.showValidStyle=!!(this.rangeStart&&this.rangeEnd),C&&(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 c=e,f=c.value,p=(m=c.selectionStart)!=null?m:f.length,u=f.replace(/\D/g,"").slice(0,8),M=u.slice(0,2),g=u.slice(2,4),x=u.slice(4,8),D="";M.length>0&&(D+=M,M.length===2&&(D+=".")),g.length>0&&M.length===2&&(D+=g,g.length===2&&(D+=".")),x.length>0&&M.length===2&&g.length===2&&(D+=x),D=D.replace(/\.\.+/g,".");let C=this.inputValue||"";this.inputValue=D;let v=p,S=L=>{let T=[];for(let k=0;k<L.length;k++)L[k]==="."&&T.push(k);return T},I=S(C),E=S(D),$=I.filter(L=>L<p).length,P=E.filter(L=>L<p).length-$;if(P>0?v+=P:!I.includes(p)&&E.includes(p)&&(v+=1),v=Math.min(Math.max(0,v),D.length),requestAnimationFrame(()=>{var T;let L=(T=this.input)!=null?T:c;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 c=this.rangeStart?i.parseLocalISO(this.rangeStart):null,f=this.rangeEnd?i.parseLocalISO(this.rangeEnd):null;c&&!f?this.setNavStatus(`${this.termStartSelected()}: ${this.formatSelectionLabel(c)}`):c&&f&&this.setNavStatus(`${this.termStartSelected()}: ${this.formatSelectionLabel(c)}; ${this.termEndSelected()}: ${this.formatSelectionLabel(f)}`)}else if(this.value){let c=i.parseLocalISO(this.value);this.setNavStatus(`${this.formatSelectionLabel(c)}`)}};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,a,n)=>{if(!(this.disabled||this.visuallyDisabled||this.readonly)){if(t.key==="Escape"&&this.open){t.preventDefault(),t.stopPropagation(),this.hide(),this.emit("sd-datepicker-close");return}if(t.key==="Tab"&&!t.shiftKey){n&&(this.hide(),this.emit("sd-datepicker-close"));return}(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),t.stopPropagation(),e==="month"?this.setMonth(a):this.setYear(a))}};this.onKeyDown=t=>{var s,l,h,o;if(this.disabled||this.visuallyDisabled||this.readonly){t.preventDefault(),t.stopPropagation();return}if(t.key==="Tab"&&!t.shiftKey){t.preventDefault(),t.stopPropagation(),(l=(s=this.shadowRoot)==null?void 0:s.querySelector('button[part="prev-year-button"]'))==null||l.focus({preventScroll:!0});return}let e=t.key,a=!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:a=!1}if(a){t.preventDefault();let y=(h=this.viewMonth)!=null?h:this.ensureViewMonth();if(n.getMonth()!==y.getMonth()||n.getFullYear()!==y.getFullYear()){let p=new Date(n.getFullYear(),n.getMonth(),1);this.viewMonth=p;let u=this.formatMonthYear(p);this.setNavStatus(u)}let c=i.startOfDayLocal(n);c.getTime()!==((o=this.focusedDate)==null?void 0:o.getTime())&&(this.focusedDate=c);let f=c.toLocaleDateString(this.locale,{weekday:"long",day:"numeric",month:"long",year:"numeric"});this.setNavStatus(f),this.requestUpdate(),requestAnimationFrame(()=>{let p=this.shadowRoot,u=p==null?void 0:p.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==="Tab"&&!t.shiftKey&&this.open){t.preventDefault(),t.stopPropagation(),this.tabbingIntoGrid=!0,this.focusInitialGridDay();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?i.parseLocalISO(this.value):null,e=this.rangeStart?i.parseLocalISO(this.rangeStart):null,a=i.startOfDayLocal(new Date),n=this.range&&e?e:t!=null?t:a,s=(l=this.viewMonth)!=null?l:new Date(n.getFullYear(),n.getMonth(),1);this.viewMonth=s,this.focusedDate=i.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 a;if(!this.viewMonth)return;let t=this.focusedDate||this.range&&this.rangeEnd&&i.parseLocalISO(this.rangeEnd)||this.range&&this.rangeStart&&i.parseLocalISO(this.rangeStart)||this.value&&i.parseLocalISO(this.value)||this.today;if(!t)return;let e=i.clampDateToMonth(t,this.viewMonth);e.getTime()!==((a=this.focusedDate)==null?void 0:a.getTime())&&(this.focusedDate=e)}handleDisabledDatesChange(){this.syncDisabledDatesSet(),this.requestUpdate()}handleValueChange(){let t=this.value?i.parseLocalISO(this.value):null;t&&(this.viewMonth=new Date(t.getFullYear(),t.getMonth(),1),this.focusedDate=i.startOfDayLocal(t)),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var a;let e=this.input;if(e){e.value=(a=this.inputValue)!=null?a:"";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?i.parseLocalISO(this.rangeStart):null,e=this.rangeEnd?i.parseLocalISO(this.rangeEnd):null,a=t!=null?t:e;a&&(this.viewMonth=new Date(a.getFullYear(),a.getMonth(),1),this.focusedDate=i.startOfDayLocal(a)),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 i.parseLocalISO(t)}inMinMax(t){let e=s=>{if(s==null)return null;if(s instanceof Date)return i.startOfDayLocal(s);if(typeof s=="number")return i.startOfDayLocal(new Date(s));if(typeof s=="string"){let l=this.parseISO(s);return l?i.startOfDayLocal(l):null}return null},a=e(this.min),n=e(this.max);return!(a&&t<a||n&&t>n)}isInDisabledDates(t){if(!this.disabledDatesSet||this.disabledDatesSet.size===0)return!1;let e=t.getFullYear(),a=String(t.getMonth()+1).padStart(2,"0"),n=String(t.getDate()).padStart(2,"0"),s=`${e}-${a}-${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 a="\u200B".repeat(this.statusBumpCounter%3);this.statusSelectText=t+a},e)}formatSelectionLabel(t){if(this.locale==="de-DE")return t.toLocaleDateString("de-DE",{day:"numeric",month:"long",year:"numeric"});let e=t.getDate(),a=this.ordinal(e),n=t.toLocaleDateString("en-US",{month:"long"}),s=t.getFullYear();return`${a} of ${n} ${s}`}ordinal(t){let e=["th","st","nd","rd"],a=t%100,n=e[(a-20)%10]||e[a]||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 a=JSON.parse(e);Array.isArray(a)&&(t=a)}catch(a){t=[]}else e.length>0&&(t=e.split(",").map(a=>a.trim()).filter(Boolean))}this.disabledDatesSet=new Set(t)}wouldRangeContainDisabled(t,e){let a=i.compareDates(t,e)<=0?i.startOfDayLocal(t):i.startOfDayLocal(e),n=i.compareDates(t,e)<=0?i.startOfDayLocal(e):i.startOfDayLocal(t),s=new Date(a);for(;i.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=i.parseLocalISO(t);if(e||(e=i.parseLocalISO(t.replace(/-/g,"."))),!e)return"";let a=String(e.getDate()).padStart(2,"0"),n=String(e.getMonth()+1).padStart(2,"0"),s=String(e.getFullYear());return`${a}.${n}.${s}`}dmyToIso(t){if(!t)return null;let e=t.match(/^(\d{2})\.(\d{2})\.(\d{4})$/);if(!e)return null;let a=Number(e[1]),n=Number(e[2]),s=Number(e[3]),l=new Date(s,n-1,a);if(l.getFullYear()!==s||l.getMonth()!==n-1||l.getDate()!==a)return null;let h=i.startOfDayLocal(l);return i.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 o=this.dmyToIso(h);return o?{start:o,end:null,valid:!0}:{start:null,end:null,valid:!1}}else if(l.length>=2){let h=(n=l[0])!=null?n:"",o=(s=l[1])!=null?s:"",y=h?this.dmyToIso(h):null,m=o?this.dmyToIso(o):null;return h&&!y?{start:null,end:null,valid:!1}:o&&!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 a=this.dmyToIso(e);return a?{single:a,valid:!0}:{single:null,valid:!1}}applyParsedInput(t){var h,o,y,m;if(!t.valid)return this.showInvalidStyle=!0,this.showValidStyle=!1,this.formControlController.setValidity(!1),!1;let e=c=>{if(!c)return!0;let f=i.parseLocalISO(c);return!(!this.inMinMax(f)||this.isDisabled(f))},a=!1;if(this.range){let c=(h=t.start)!=null?h:null,f=(o=t.end)!=null?o:null;if(!e(c)||f&&!e(f))return this.showInvalidStyle=!0,this.showValidStyle=!1,!1;let p=c?i.parseLocalISO(c):null,u=f?i.parseLocalISO(f):null;if(p&&u){if(i.compareDates(p,u)>0){let x=p;p=u,u=x}if(!this.allowSameDayRange&&i.isSameDay(p,u))return this.showInvalidStyle=!0,this.showValidStyle=!1,!1;if(this.wouldRangeContainDisabled(p,u))return this.showInvalidStyle=!0,this.showValidStyle=!1,!1}let M=p?i.toLocalISODate(i.startOfDayLocal(p)):null,g=u?i.toLocalISODate(i.startOfDayLocal(u)):null;if(this.rangeStart!==M||this.rangeEnd!==g){this.rangeStart=M,this.rangeEnd=g,this.previewEnd=null,a=!0;let x=(y=p!=null?p:u)!=null?y:this.today;this.viewMonth=new Date(x.getFullYear(),x.getMonth(),1),this.focusedDate=i.startOfDayLocal(x),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?i.parseLocalISO(n):null,l=s?i.toLocalISODate(i.startOfDayLocal(s)):null;return this.value!==l&&(this.value=l,a=!0,s&&(this.viewMonth=new Date(s.getFullYear(),s.getMonth(),1),this.focusedDate=i.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(),a}buildDmyFromDigits(t){let e=t.slice(0,8),a=e.slice(0,2),n=e.slice(2,4),s=e.slice(4,8),l=a;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 a,n;((n=(a=t.composedPath)==null?void 0:a.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(),a=new Date(e.getFullYear(),e.getMonth()+t,1);if(a.getMonth()===e.getMonth()&&a.getFullYear()===e.getFullYear())return;this.viewMonth=a;let n=this.formatMonthYear(a);this.setNavStatus(n),this.emit("sd-month-change",{detail:{month:a}})}setYear(t){var s;let e=(s=this.viewMonth)!=null?s:this.ensureViewMonth(),a=new Date(e.getFullYear()+t,e.getMonth(),1);if(a.getFullYear()===e.getFullYear()&&a.getMonth()===e.getMonth())return;this.viewMonth=a;let n=this.formatMonthYear(a);this.setNavStatus(n),this.emit("sd-month-year",{detail:{month:a}})}focusInitialGridDay(){var n;let t=null;if(!this.range&&this.value){let s=i.parseLocalISO(this.value);s&&(t=i.startOfDayLocal(s))}if(this.range){let s=this.rangeStart?i.parseLocalISO(this.rangeStart):null,l=this.rangeEnd?i.parseLocalISO(this.rangeEnd):null;s?t=i.startOfDayLocal(s):l&&(t=i.startOfDayLocal(l))}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()&&i.isSameDay(h,this.today)&&!this.isDisabled(h));if(l)t=i.startOfDayLocal(l);else{let h=s.flat().find(o=>o.getMonth()===e.getMonth()&&!this.isDisabled(o));t=h?i.startOfDayLocal(h):null}}t&&(this.focusedDate=t),this.requestUpdate(),requestAnimationFrame(()=>{let s=this.shadowRoot,l=(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.selected"))||(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=i.startOfDayLocal(t),a=i.toLocalISODate(e);if(this.value===a)return;this.value=a;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=i.startOfDayLocal(t),a=this.rangeStart?i.parseLocalISO(this.rangeStart):null,n=this.rangeEnd?i.parseLocalISO(this.rangeEnd):null;if(!a&&!n){if(this.isDisabled(e))return;this.rangeStart=i.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 o=l.value.length;l.setSelectionRange(o,o)})}))});return}if(a&&!n){if(this.isDisabled(e))return;if(i.isSameDay(a,e)){if(!this.allowSameDayRange){this.rangeStart=i.toLocalISODate(e),this.rangeEnd=null,this.previewEnd=null;let c=this.formatSelectionLabel(e);this.announceSelect(`${this.termStartSelected()}: ${c}`,40),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var p;let f=this.input;f&&(f.value=(p=this.inputValue)!=null?p:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let u=f.value.length;f.setSelectionRange(u,u)})}))});return}this.rangeStart=i.toLocalISODate(e),this.rangeEnd=i.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 f;let c=this.input;c&&(c.value=(f=this.inputValue)!=null?f:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let p=c.value.length;c.setSelectionRange(p,p)})}))});return}let s=i.parseLocalISO(this.rangeStart);if(this.wouldRangeContainDisabled(s,e))return;let[l,h]=i.compareDates(s,e)<=0?[s,e]:[e,s];this.rangeStart=i.toLocalISODate(l),this.rangeEnd=i.toLocalISODate(h),this.previewEnd=null;let o=this.formatSelectionLabel(l),y=this.formatSelectionLabel(h);this.announceSelect(`${this.termStartSelected()}: ${o}`,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 c;let m=this.input;m&&(m.value=(c=this.inputValue)!=null?c:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let f=m.value.length;m.setSelectionRange(f,f)})}))});return}if(a&&n){if(this.isDisabled(e))return;this.rangeStart=i.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 o=l.value.length;l.setSelectionRange(o,o)})}))})}}selectDate(t){this.readonly||(this.range?this.selectRangeDate(t):this.selectSingleDate(t))}ensureViewMonth(){if(this.viewMonth)return this.viewMonth;let t=this.value?i.parseLocalISO(this.value):null,e=this.rangeStart?i.parseLocalISO(this.rangeStart):null,a=i.startOfDayLocal(new Date),n=this.range&&e?e:t!=null?t:a,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,a=new Date(t.getFullYear(),t.getMonth(),1),n=new Date(a),s=(a.getDay()-e+7)%7;n.setDate(a.getDate()-s);let l=[],h=n;for(let m=0;m<6;m++){let c=[];for(let f=0;f<7;f++)c.push(new Date(h)),h.setDate(h.getDate()+1);l.push(c)}let o=m=>m.every(c=>c.getMonth()!==t.getMonth());for(;l.length>0&&o(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),a=[];for(let s=0;s<7;s++){let l=new Date(e);l.setDate(e.getDate()+(t+s)%7);try{a.push(new Intl.DateTimeFormat(this.locale,{weekday:"short"}).format(l))}catch(h){a.push(l.toLocaleDateString(void 0,{weekday:"short"}))}}return a}getTabTargetDayForCurrentView(t){var h;let e=(h=this.viewMonth)!=null?h:this.ensureViewMonth(),a=null;if(!this.range&&this.value){let o=i.parseLocalISO(this.value);o&&(a=i.startOfDayLocal(o))}if(this.range){let o=this.rangeStart?i.parseLocalISO(this.rangeStart):null,y=this.rangeEnd?i.parseLocalISO(this.rangeEnd):null;o?a=i.startOfDayLocal(o):y&&(a=i.startOfDayLocal(y))}if((o=>o?o.getFullYear()===e.getFullYear()&&o.getMonth()===e.getMonth()&&!this.isDisabled(o):!1)(a))return a;let s=t.flat().find(o=>o.getMonth()===e.getMonth()&&i.isSameDay(o,this.today)&&!this.isDisabled(o));if(s)return i.startOfDayLocal(s);let l=t.flat().find(o=>o.getMonth()===e.getMonth()&&!this.isDisabled(o));return l?i.startOfDayLocal(l):null}onDayMouseEnter(t){if(!this.range||this.readonly)return;let e=this.rangeStart?i.parseLocalISO(this.rangeStart):null,a=this.rangeEnd?i.parseLocalISO(this.rangeEnd):null;if(e&&!a){let n=i.startOfDayLocal(t);this.previewEnd=this.isDisabled(n)?null:n,this.requestUpdate()}}onGridMouseLeave(){this.previewEnd!==null&&(this.previewEnd=null,this.requestUpdate())}renderCalendar(){var f,p;let t=(f=this.viewMonth)!=null?f:this.ensureViewMonth(),{weeks:e}=this.getMonthMatrix(t),a=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,o=this.previewEnd,y=u=>!this.range||!l||h||!o?!1:i.isBetweenInclusive(u,l,o),m=this.getTabTargetDayForCurrentView(e),c=this.disabled||this.visuallyDisabled?"text-neutral-500":"icon-color";return F`<div part="datepicker" id="calendar" role="dialog" aria-label="${this.range?this.localize.term("datePickerRange"):this.localize.term("datePicker")}" class="${w("w-[284px] z-50 bg-white py-3 px-4",this.open?"block shadow-listbox":"hidden",(p=this.currentPlacement)!=null&&p.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="${w("nav prev w-6 h-6 hover:cursor-pointer focus-visible:focus-outline",c)}" part="prev-year-button" @click="${()=>this.setYear(-1)}" @keydown="${u=>this.handleHeaderKeyDown(u,"year",-1,!1)}" aria-label="${this.localize.term("previousYear")}"><sd-icon library="_internal" name="chevrons-small-left" class="h-6 w-6"></sd-icon></button> <button type="button" tabindex="0" class="${w("nav prev w-6 h-6 hover:cursor-pointer focus-visible:focus-outline",c)}" part="prev-month-button" @click="${()=>this.setMonth(-1)}" @keydown="${u=>this.handleHeaderKeyDown(u,"month",-1,!1)}" aria-label="${this.localize.term("previousMonth")}"><sd-icon library="_internal" name="chevron-sm-left" class="h-6 w-6"></sd-icon></button></div><div tabindex="-1" class="month-label flex justify-center sd-headline sd-headline--size-base" part="month-label" aria-live="polite">${a}</div><div class="flex items-center"><button type="button" tabindex="0" class="${w("nav next w-6 h-6 hover:cursor-pointer focus-visible:focus-outline",c)}" part="next-month-button" @click="${()=>this.setMonth(1)}" @keydown="${u=>this.handleHeaderKeyDown(u,"month",1,!1)}" aria-label="${this.localize.term("nextMonth")}"><sd-icon library="_internal" name="chevron-sm-right" class="h-6 w-6"></sd-icon></button> <button type="button" tabindex="0" class="${w("nav next w-6 h-6 hover:cursor-pointer focus-visible:focus-outline",c)}" part="next-year-button" @click="${()=>this.setYear(1)}" @keydown="${u=>this.handleHeaderKeyDown(u,"year",1,!0)}" aria-label="${this.localize.term("nextYear")}"><sd-icon library="_internal" name="chevrons-small-right" class="h-6 w-6"></sd-icon></button></div></div><sd-divider></sd-divider><div class="sr-only" aria-live="polite" aria-atomic="true">${this.statusNavText}</div><div class="sr-only" aria-live="assertive" aria-atomic="true">${this.statusSelectText}</div><div class="sr-only" id="keyboard-hint">${this.localize.term("datePickerInfo")}</div><div class="grid mt-2" role="grid" aria-describedby="keyboard-hint" aria-label="${a}" 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((u,M)=>F`<div role="columnheader" aria-colindex="${M+1}" part="weekday" class="cell head flex items-center justify-center font-bold text-black text-sm leading-none h-8" aria-label="${u}" title="${u}" id="${"col-"+(M+1)}">${u}</div>`)}</div>${e.map((u,M)=>F`<div class="grid-row grid grid-cols-7 ${M===0?"mt-2":""}" role="row" aria-rowindex="${M+2}">${u.map((g,x)=>{let D=g.getMonth()===t.getMonth(),C=this.isDisabled(g)||!this.inMinMax(g),v=i.isSameDay(g,this.focusedDate),S=i.isSameDay(g,this.today),I=!this.range&&s?i.isSameDay(g,s):!1,E=this.range&&l?i.isSameDay(g,l):!1,$=this.range&&h?i.isSameDay(g,h):!1,V=this.range&&l&&h?i.isBetweenInclusive(g,l,h):!1,P=y(g)&&!C,L=-1,T=m&&i.isSameDay(g,m);(this.tabbingIntoGrid&&T||!this.tabbingIntoGrid&&v)&&(L=0);let k=this.isWeekend(g),j=g.toLocaleDateString(this.locale,{weekday:"long",day:"numeric",month:"long",year:"numeric"}),B=E?this.localize.term("startDateSelected"):$?this.localize.term("endDateSelected"):void 0;return F`<button type="button" part="day" class="${w("cell day relative flex items-center justify-center rounded w-[36px] focus-visible:focus-outline focus-visible:z-10",this.size==="sm"?"text-sm h-6":"text-base h-8",E||$?"sd-datepicker__date-item--selected-color-background sd-datepicker__date-item--selected-color-text hover:sd-datepicker__date-item--selected--hover-color-background hover:sd-datepicker__date-item--selected--hover-color-text":"hover:sd-datepicker__date-item--hover--default-color-text",!E&&!$&&!V&&"hover:sd-datepicker__date-item--hover--default-color-background",I?"selected border-primary sd-datepicker__date-item--selected-color-background sd-datepicker__date-item--selected-color-text hover:sd-datepicker__date-item--selected--hover-color-text hover:sd-datepicker__date-item--selected--hover-color-background":(E||$)&&!D?"out-month":D?this.isInDisabledDates(g)||!this.inMinMax(g)?"out-month text-neutral-500":this.disabledWeekends&&k?"weekend-day text-neutral-500":"in-month sd-datepicker__date-item--default-color-text":this.disabledWeekends&&k?"out-month weekend-day text-neutral-500":k?"out-month weekend-day text-neutral-700":"out-month text-neutral-700 hover:sd-datepicker__date-item--hover--prev-next-color-text hover:sd-datepicker__date-item--hover--prev-next-color-background",E?"rounded-l-md rounded-r-none":"",$?"range-end rounded-r-md rounded-l-none":"",V&&!E&&!$?"in-range selected sd-datepicker__date-item--range-color-background rounded-none hover:sd-datepicker__date-item--selected--hover-color-background hover:sd-datepicker__date-item--selected--hover-color-text":"",!V&&P&&!E&&!$?"in-preview-range bg-primary-100 text-primary-500 rounded-none":"",S&&!I&&!E&&!$&&v?"today border-[1px] border-primary focus-visible:border-transparent sd-datepicker__date-item--current-font-weight":"",C?"disabled cursor-not-allowed hover:bg-transparent":"cursor-pointer",v?"focused":"")}" role="gridcell" aria-colindex="${x+1}" aria-labelledby="${"col-"+(x+1)}" .tabIndex="${L}" ?disabled="${this.disabled||this.readonly}" aria-disabled="${C||this.visuallyDisabled||this.disabled||this.readonly?"true":"false"}" aria-selected="${I||V||E||$?"true":"false"}" aria-current="${S?"date":R}" aria-label="${j}" aria-roledescription="${B!=null?B:R}" @focus="${()=>this.focusedDate=i.startOfDayLocal(g)}" @mouseenter="${()=>this.onDayMouseEnter(g)}" @keydown="${this.onKeyDown}" @click="${()=>{this.focusedDate=i.startOfDayLocal(g),this.selectDate(g)}}">${g.getDate()}</button>`})}</div>`)}</div></div>`}render(){var p,u;let t={label:this.hasSlotController.test("label"),helpText:this.hasSlotController.test("help-text"),tooltip:this.hasSlotController.test("tooltip")},e=this.label?!0:!!t.label,a=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",o={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&&!this.open?"activeInvalid":this.hasFocus&&!this.open&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus||this.open?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",c={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],f=this.size==="sm"?"text-sm":"text-base";return F`<div part="form-control" class="${w("min-w-[284px]",this.open&&"z-50",(this.disabled||this.visuallyDisabled)&&"cursor-not-allowed")}">${e&&!this.floatingLabel||n?F`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${w(e?"inline-block":"hidden",this.visuallyDisabled||this.disabled?"text-neutral-500":"form-control-color-text",f)}" for="input" aria-hidden="${e?"false":"true"}"><slot name="label">${this.label}</slot></label> ${t.tooltip?F`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${w("relative w-full",this.disabled&&"pointer-events-none",this.visuallyDisabled&&"cursor-not-allowed")}">${e&&this.floatingLabel?F`<label id="label" part="form-control-floating-label" class="${w("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="${w("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="${w("absolute top-0 w-full h-full pointer-events-none border form-control-border-radius z-10 transition-[border] duration-medium ease-in-out",c,this.open&&((p=this.currentPlacement)!=null&&p.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-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${w("inline-flex relative w-full",(u=this.currentPlacement)!=null&&u.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="${w("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" aria-describedby="${a?"help-text":void 0}" aria-invalid="${this.showInvalidStyle?"true":"false"}" aria-label="${this.range?"Select date range":"Select a date"}" class="${w("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],f,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?F`<sd-icon part="invalid-icon" class="${w("text-error",o,y)}" library="_internal" name="risk"></sd-icon>`:""} ${this.showValidStyle&&this.styleOnValid?F`<sd-icon class="${w("text-success shrink-0",o,y)}" library="_internal" name="confirm-circle" part="valid-icon"></sd-icon>`:""}<sd-icon class="${w(h,o,y,"hover:cursor-pointer")}" library="_internal" name="calendar" @click="${this.handleCalendarIconClick}"></sd-icon></div>${this.renderCalendar()}</sd-popup></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${w("text-sm mt-1",a?"block":"hidden",this.visuallyDisabled||this.disabled?"text-neutral-500":"text-neutral-700")}" aria-hidden="${!a}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage(this.size)}`}};r.styles=[...A.styles,q`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
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,70 109 175))}.in-range,.today{color:rgba(var(--sd-datepicker__date-item--current-color-text,0 53 142))}.icon-color{color:rgba(var(--sd-form-control-color-icon-fill))}.month-label{color:rgba(var(--sd-color-border-primary))!important}`],d([b({type:String,reflect:!0})],r.prototype,"locale",2),d([b({type:String,converter:z,reflect:!0})],r.prototype,"value",2),d([b({type:Boolean,reflect:!0})],r.prototype,"range",2),d([b({attribute:"range-start",converter:z,reflect:!0})],r.prototype,"rangeStart",2),d([b({attribute:"range-end",converter:z,reflect:!0})],r.prototype,"rangeEnd",2),d([b({type:Boolean})],r.prototype,"allowSameDayRange",2),d([b({type:String,converter:z,reflect:!0})],r.prototype,"min",2),d([b({type:String,converter:z,reflect:!0})],r.prototype,"max",2),d([b({attribute:"view-month",converter:U})],r.prototype,"viewMonth",2),d([b({type:Number})],r.prototype,"firstDayOfWeek",2),d([b({type:Boolean,reflect:!0,attribute:"disabled-weekends"})],r.prototype,"disabledWeekends",2),d([b({attribute:"disabled-dates",converter:G})],r.prototype,"disabledDates",2),d([b({attribute:!1})],r.prototype,"isDateDisabled",2),d([b({type:String,reflect:!0})],r.prototype,"size",2),d([b({type:String})],r.prototype,"alignment",2),d([b({type:String,reflect:!0})],r.prototype,"label",2),d([b({type:String,attribute:"help-text",reflect:!0})],r.prototype,"helpText",2),d([b({attribute:"floating-label",type:Boolean,reflect:!0})],r.prototype,"floatingLabel",2),d([b({type:Boolean,reflect:!0})],r.prototype,"disabled",2),d([b({type:Boolean,reflect:!0})],r.prototype,"required",2),d([b({type:Boolean,attribute:"visually-disabled"})],r.prototype,"visuallyDisabled",2),d([b({type:Boolean,reflect:!0,attribute:"style-on-valid"})],r.prototype,"styleOnValid",2),d([b({type:Boolean,reflect:!0})],r.prototype,"readonly",2),d([b({type:String,reflect:!0})],r.prototype,"placement",2),d([b({type:String,reflect:!0})],r.prototype,"placeholder",2),d([b({reflect:!0})],r.prototype,"name",2),d([b({type:String,reflect:!0})],r.prototype,"form",2),d([O()],r.prototype,"open",2),d([O()],r.prototype,"focusedDate",2),d([O()],r.prototype,"today",2),d([O()],r.prototype,"disabledDatesSet",2),d([O()],r.prototype,"previewEnd",2),d([O()],r.prototype,"statusNavText",2),d([O()],r.prototype,"statusSelectText",2),d([O()],r.prototype,"hasFocus",2),d([O()],r.prototype,"showValidStyle",2),d([O()],r.prototype,"showInvalidStyle",2),d([O()],r.prototype,"currentPlacement",2),d([O()],r.prototype,"inputValue",2),d([Y("sd-popup")],r.prototype,"popup",2),d([Y("#invalid-message")],r.prototype,"invalidMessage",2),d([Y("#input")],r.prototype,"input",2),d([_("open",{waitUntilFirstUpdate:!0})],r.prototype,"handleOpenChange",1),d([_("locale")],r.prototype,"handleLocaleChange",1),d([_("viewMonth")],r.prototype,"handleViewMonthChange",1),d([_("disabledDates")],r.prototype,"handleDisabledDatesChange",1),d([_("value")],r.prototype,"handleValueChange",1),d([_("rangeStart"),_("rangeEnd")],r.prototype,"handleRangeChange",1),d([_(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],r.prototype,"handleDisabledChange",1),d([_(["size","floatingLabel"])],r.prototype,"handleSizeChange",1),r=d([H("sd-datepicker")],r);export{r as a};
@@ -0,0 +1,12 @@
1
+ import{a as T}from"./chunk.BJBQEPZV.js";import{a as k}from"./chunk.EOXYPQZI.js";import{a as C}from"./chunk.N4L76IWF.js";import{a as $}from"./chunk.CBQWVOOS.js";import{a as _}from"./chunk.MEDJPDBB.js";import{a as l}from"./chunk.4ZZFYCXX.js";import{a as v}from"./chunk.NYKJXI3Q.js";import{a as P,b as p,c as y,d as g,e as A,h as w}from"./chunk.J45556RK.js";import{b as E,e as b}from"./chunk.OBAEIKIV.js";import{d as M}from"./chunk.W4QBFD6E.js";import{e as r}from"./chunk.6EV4YU6C.js";function L(u,h,e){let i=t=>Object.is(t,-0)?0:t;return u<h?i(h):u>e?i(e):i(u)}function*I(u,h){if(u!==void 0){let e=0;for(let i of u)yield h(i,e++)}}function*O(u,h,e=1){let i=h===void 0?0:u;h!=null||(h=u);for(let t=i;e>0?t<h:h<t;t+=e)yield t}var o=class extends w{constructor(){super(...arguments);this.variant="number";this.inverted=!1;this.loop=!1;this.autoplay=!1;this.autoplayInterval=5;this.fade=!1;this.slidesPerPage=1;this.slidesPerMove=1;this.activeSlide=0;this.currentPage=1;this.pausedAutoplay=!1;this.isFocused=!1;this.autoplayController=new $(this,()=>{this.isFocused||this.next()});this.scrollController=new k(this);this.slides=this.getElementsByTagName("sd-carousel-item");this.intersectionObserverEntries=new Map;this.localize=new _(this);this.userInteracted=!1;this.fadeController=new T(this);this.handleUserInteraction=e=>{this.userInteracted=e.type==="keydown"};this.handleSlotChange=e=>{e.some(t=>[...t.addedNodes,...t.removedNodes].some(s=>C.isCarouselItem(s)&&!s.hasAttribute("data-clone")))&&this.initializeSlides(),this.requestUpdate()};this.unblockAutoplay=(e,i)=>{e.detail&&i.blur()}}connectedCallback(){super.connectedCallback(),["mousedown","keydown"].forEach(i=>this.addEventListener(i,this.handleUserInteraction)),this.addEventListener("focusin",this.handleFocus),this.addEventListener("focusout",this.handleBlur),this.addEventListener("keydown",this.handleKeyDown);let e=new IntersectionObserver(i=>{i.forEach(t=>{this.intersectionObserverEntries.set(t.target,t);let s=t.target;s.toggleAttribute("inert",!t.isIntersecting),s.classList.toggle("--in-view",t.isIntersecting),s.setAttribute("aria-hidden",t.isIntersecting?"false":"true")})},{root:this,threshold:.6});this.intersectionObserver=e,e.takeRecords().forEach(i=>{this.intersectionObserverEntries.set(i.target,i)})}disconnectedCallback(){super.disconnectedCallback(),this.intersectionObserver.disconnect(),this.mutationObserver.disconnect(),["mousedown","keydown"].forEach(e=>this.removeEventListener(e,this.handleUserInteraction)),this.removeEventListener("focusin",this.handleFocus),this.removeEventListener("focusout",this.handleBlur),this.removeEventListener("keydown",this.handleKeyDown),this.fade&&this.fadeController.disable()}async firstUpdated(){if((()=>{let i=this.getSlides({excludeClones:!1});return i.length>0&&i[0].getBoundingClientRect().width>0})())this.initializeSlides();else{let i=new IntersectionObserver(t=>{t.forEach(s=>{s.isIntersecting&&s.target.getBoundingClientRect().width>0&&(this.initializeSlides(),i.disconnect())})});i.observe(this)}this.mutationObserver=new MutationObserver(this.handleSlotChange),this.mutationObserver.observe(this,{childList:!0,subtree:!1}),this.fade&&(await this.updateComplete,this.fadeController.enable())}getPageCount(e,i,t){return Math.ceil((e-i)/t)+1>0?Math.ceil((e-i)/t)+1:1}getCurrentPage(e,i,t,s){return Math.ceil((e-t)/s)-Math.ceil((e-t-i)/s)+1}getSlides({excludeClones:e=!0}={}){return[...this.slides].filter(i=>!e||!i.hasAttribute("data-clone"))}handleKeyDown(e){if(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(e.key)){let i=e.target,t=this.localize.dir()==="rtl",s=i.closest('[part~="pagination-item"]')!==null,n=e.key==="ArrowDown"||!t&&e.key==="ArrowRight"||t&&e.key==="ArrowLeft",c=e.key==="ArrowUp"||!t&&e.key==="ArrowLeft"||t&&e.key==="ArrowRight";e.preventDefault(),c&&this.previous(),n&&this.next(),e.key==="Home"&&this.goToSlide(0),e.key==="End"&&this.goToSlide(this.getSlides().length-1),s&&this.updateComplete.then(()=>{var a;let d=(a=this.shadowRoot)==null?void 0:a.querySelector('[part~="pagination-item--active"]');d&&d.focus()})}}handleScrollEnd(){if(this.fade)return;let e=this.getSlides(),t=[...this.intersectionObserverEntries.values()].find(s=>s.isIntersecting);if(this.loop&&(t!=null&&t.target.hasAttribute("data-clone"))){let s=Number(t.target.getAttribute("data-clone"));this.goToSlide(s,"auto");return}t&&(this.activeSlide=e.indexOf(t.target))}handleFocus(){this.isFocused=!0}handleBlur(){this.isFocused=!1}getSlideText(e){var n;let i=[],t=document.createTreeWalker(e,NodeFilter.SHOW_ALL),s=t.nextNode();for(;s;){if(s.nodeType===Node.TEXT_NODE){let c=(n=s.textContent)==null?void 0:n.trim();c&&i.push(c)}else s instanceof HTMLImageElement&&s.alt&&i.push(s.alt);s=t.nextNode()}return i.join(" ")}pause(){this.pausedAutoplay=!0}resume(){this.pausedAutoplay=!1}handlePausedAutoplay(){this.pausedAutoplay?this.autoplayController.stop():this.autoplay&&this.autoplayController.start(this.autoplayInterval*1e3)}handleFadeChange(){this.fade?this.fadeController.enable():this.fadeController.disable()}initializeSlides(){let e=this.getSlides(),i=this.intersectionObserver;if(this.intersectionObserverEntries.clear(),this.getSlides({excludeClones:!1}).forEach((t,s)=>{i.unobserve(t),t.classList.remove("--in-view"),t.classList.remove("--is-active"),t.setAttribute("aria-label",this.localize.term("slideNum",s+1,e.length)),t.hasAttribute("data-clone")&&t.remove()}),this.loop&&!this.fade){let t=this.slidesPerPage,s=e.slice(-t),n=e.slice(0,t);s.reverse().forEach((c,d)=>{let a=c.cloneNode(!0);a.setAttribute("data-clone",String(e.length-d-1)),this.prepend(a)}),n.forEach((c,d)=>{let a=c.cloneNode(!0);a.setAttribute("data-clone",String(d)),this.append(a)})}this.getSlides({excludeClones:!1}).forEach(t=>{i.observe(t)}),this.fade&&this.updateComplete.then(()=>{this.fadeController.enable()}),this.fade||this.goToSlide(this.activeSlide,"auto")}handleSlideChange(){let e=this.getSlides();e.forEach((s,n)=>{s.classList.toggle("--is-active",n===this.activeSlide)}),this.fade&&this.fadeController.updateActiveSlide(this.activeSlide);let i=this.getCurrentPage(e.length,this.activeSlide,this.slidesPerPage,this.slidesPerMove);if(this.currentPage!==i&&(this.currentPage=i),this.hasUpdated&&(this.emit("sd-slide-change",{detail:{index:this.activeSlide,slide:e[this.activeSlide]}}),this.announcementRegion)){let s=this.getSlideText(e[this.activeSlide]),n=this.localize.term("slideNum",this.activeSlide+1,e.length);requestAnimationFrame(()=>{this.announcementRegion.textContent=s?`${s} ${n}`:n})}let t=this.getPageCount(e.length,this.slidesPerPage,this.slidesPerMove);this.currentPage>t&&requestAnimationFrame(()=>{this.nextTillFirst()})}handleSlidesPerMoveChange(){if(this.fade)return;let e=this.getSlides({excludeClones:!1}),i=this.slidesPerMove;e.forEach((t,s)=>{Math.abs(s-i)%i===0?t.style.removeProperty("scroll-snap-align"):t.style.setProperty("scroll-snap-align","none")})}handleAutoplayChange(){this.autoplayController.stop(),this.autoplay&&!this.pausedAutoplay&&this.autoplayController.start(this.autoplayInterval*1e3)}handleautoplayIntervalChange(){!this.autoplay||this.pausedAutoplay||(this.autoplayController.stop(),this.autoplayController.start(this.autoplayInterval*1e3))}previous(e="smooth"){if(this.fade){let s=this.loop?(this.activeSlide-1+this.getSlides().length)%this.getSlides().length:Math.max(0,this.activeSlide-1);this.goToSlide(s);return}let i=this.activeSlide||this.activeSlide-this.slidesPerMove,t=!1;for(;!t&&i>0;)i-=1,t=Math.abs(i-this.slidesPerMove)%this.slidesPerMove===0;this.currentPage-1===0&&this.loop?this.goToSlide(this.activeSlide-this.slidesPerPage,e):this.goToSlide(i,e)}next(e="smooth"){if(this.fade){let i=this.loop?(this.activeSlide+1)%this.getSlides().length:Math.min(this.getSlides().length-1,this.activeSlide+1);this.goToSlide(i);return}this.currentPage+1<=this.getPageCount(this.getSlides().length,this.slidesPerPage,this.slidesPerMove)?this.goToSlide(this.activeSlide+this.slidesPerMove,e):this.loop&&this.nextTillFirst(e)}nextTillFirst(e="smooth"){if(this.fade){this.goToSlide(0);return}for(;this.activeSlide!==0;)this.goToSlide(this.activeSlide+1,e);this.currentPage=this.getCurrentPage(this.getSlides().length,this.activeSlide,this.slidesPerPage,this.slidesPerMove)}goToSlide(e,i="smooth"){let{slidesPerPage:t,loop:s,scrollContainer:n,fade:c}=this,d=this.getSlides(),a=this.getSlides({excludeClones:!1}),f=(e+d.length)%d.length;if(this.activeSlide=f,c)return;let m=L(e+(s?t:0),0,a.length+1),B=a[m],S=n.getBoundingClientRect(),x=B.getBoundingClientRect();if(n.scrollTo({left:x.left-S.left+n.scrollLeft,top:x.top-S.top+n.scrollTop,behavior:M()?"auto":i}),this.userInteracted&&!this.loop){let z=this.activeSlide===d.length-1||this.activeSlide===this.slides.length-this.slidesPerPage,F=this.activeSlide===0;z?this.previousButton.focus({preventScroll:!0}):F&&this.nextButton.focus({preventScroll:!0})}}render(){let{scrollController:e,slidesPerMove:i}=this,t=this.getPageCount(this.getSlides().length,this.slidesPerPage,this.slidesPerMove),s=this.getCurrentPage(this.getSlides().length,this.activeSlide,this.slidesPerPage,this.slidesPerMove),n=this.loop||s>1,c=this.loop||s<t,d=this.localize.dir()==="ltr";return b`<div part="base" class="${l("carousel h-full w-full relative")}"><button class="${l("ml-6 !rounded-sm","!absolute !bottom-0 !right-0 sd-interactive",this.inverted?"sd-interactive--inverted":"sd-interactive--reset",!this.autoplay&&"!hidden")}" part="autoplay-controls" aria-label="${this.pausedAutoplay?this.localize.term("startAutoplay"):this.localize.term("stopAutoplay")}" aria-pressed="true" @click="${a=>{this.pausedAutoplay=!this.pausedAutoplay,a.detail&&this.autoplayControls.blur()}}"><slot name="autoplay-start" class="${l(this.pausedAutoplay?"":"hidden")}"><sd-icon class="h-6 w-6 grid place-items-center" library="_internal" name="play"></sd-icon></slot><slot name="autoplay-pause" class="${l(this.pausedAutoplay?"hidden":"")}"><sd-icon class="h-6 w-6 grid place-items-center" library="_internal" name="pause"></sd-icon></slot></button><div class="carousel__announcement sr-only" aria-live="${!this.autoplay||this.pausedAutoplay||this.isFocused?"polite":"off"}" aria-atomic="true"></div><div id="scroll-container" part="scroll-container" class="${l("carousel__slides mb-6 max-h-full w-full items-center justify-items-center",this.inverted?"focus-visible:focus-outline-inverted":"focus-visible:focus-outline",this.fade?"relative overflow-hidden":"grid overflow-auto overscroll-x-contain grid-flow-col auto-rows-[100%] snap-x snap-mandatory overflow-y-hidden")}" style="--slides-per-page:${this.slidesPerPage}" aria-busy="${e.scrolling?"true":"false"}" aria-label="${this.localize.term("carouselContainer",Array.from(this.slides).filter(a=>!a.hasAttribute("data-clone")).length)}" tabindex="0" @scrollend="${this.handleScrollEnd}"><slot></slot></div><div part="controls" class="${l("w-full flex items-center justify-center relative")}"><div part="navigation" class="${l("carousel__navigation flex items-center justify-center")}"><button part="navigation-button navigation-button--previous" id="carousel__navigation-button--previous" ?disabled="${!n}" class="${l("!mr-6 !rounded-sm sd-interactive transition-colors duration-fast ease-in-out",!n&&"sd-interactive--disabled",this.inverted?"sd-interactive--inverted":"sd-interactive--reset")}" aria-label="${this.localize.term("previousSlide")}" aria-controls="scroll-container" aria-disabled="${n?"false":"true"}" @click="${n?a=>{this.previous(),this.unblockAutoplay(a,this.previousButton)}:null}"><slot name="previous-icon"><sd-icon class="${l("h-6 w-6 rotate-90 grid place-items-center")}" library="_internal" name="${d?"chevron-bottom":"chevron-top"}"></sd-icon></slot></button> ${this.variant==="dot"?b`<div part="pagination-dot" role="tablist" class="${l("carousel__pagination dot flex wrap items-center gap-2")}" aria-controls="scroll-container">${I(O(t),a=>{let f=a+1===s;return b`<button part="pagination-item ${f?"pagination-item--active":""}" class="${l("carousel__pagination-item","block cursor-pointer bg-none border-0 rounded-full",f?"bg-accent":"",this.inverted?"focus-within:focus-outline-inverted":"focus-within:focus-outline")}" role="tab" tabindex="0" aria-selected="${f?"true":"false"}" aria-label="${this.localize.term("goToSlide",a+1,t)}" @mousedown="${m=>m.preventDefault()}" @click="${m=>{this.goToSlide(a*i),this.unblockAutoplay(m,this.paginationItems[a])}}"><span class="${l("h-4 w-4 block border sd-carousel__pager-dot-border-width rounded-full transition-colors duration-slow hover:duration-fast ease-in-out",this.inverted?"sd-carousel__pager-dot--inverted-border hover:border-primary-200":"border-primary hover:border-primary-500",f&&"border-none",f?this.inverted?"sd-carousel__pager-dot--inverted-background hover:sd-carousel__pager-dot--inverted--hovered-background":"sd-carousel__pager-dot-background hover:bg-accent-550":"")}"></span></button>`})}</div>`:b`<span part="pagination-number" class="carousel__pagination number flex gap-0.5 cursor-default select-none" aria-controls="scroll-container"><span part="pagination-item" class="${l("w-5 text-center border-b-2",this.inverted?"text-white sd-carousel--active--inverted-color-border":"text-black sd-carousel--active-color-border")}">${s}</span> <span part="pagination-divider" class="${l("scale-y-[1.5]","text-center",this.inverted?"text-white":"text-black")}">/</span> <span part="pagination-item" class="${l("w-5 text-center",this.inverted?"text-white":"text-black")}">${t}</span></span>`} <button part="navigation-button navigation-button--next" id="carousel__navigation-button--next" ?disabled="${!c}" class="${l("!ml-6 !rounded-sm sd-interactive transition-colors duration-fast ease-in-out",!c&&"sd-interactive--disabled",this.inverted?"sd-interactive--inverted":"sd-interactive--reset")}" aria-label="${this.localize.term("nextSlide")}" aria-controls="scroll-container" aria-disabled="${c?"false":"true"}" @click="${c?a=>{this.next(),this.unblockAutoplay(a,this.nextButton)}:null}"><slot name="next-icon"><sd-icon class="${l("h-6 w-6 rotate-90 grid place-items-center")}" library="_internal" name="${d?"chevron-top":"chevron-bottom"}"></sd-icon></slot></button></div></div></div>`}};o.styles=[...w.styles,E`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
+ :host{--slide-gap:var(--sl-spacing-medium, 1rem);--scroll-hint:0px;display:flex}.carousel{grid-template-areas:'. slides .' '. pagination .'}.carousel__pagination{grid-area:pagination}.carousel__slides{grid-area:slides;scrollbar-width:none;--slide-size:calc((100% - (var(--slides-per-page) - 1) * var(--slide-gap)) / var(--slides-per-page));grid-auto-columns:var(--slide-size);-moz-column-gap:var(--slide-gap);column-gap:var(--slide-gap);scroll-padding-inline:var(--scroll-hint);padding-inline:var(--scroll-hint)}.carousel__slides::-webkit-scrollbar{display:none}[part=autoplay-controls]{z-index:1}:host([fade]){--carousel-height:auto}:host([fade]) .carousel__slides{position:relative;display:block;overflow:hidden;height:var(--carousel-height)}@media (prefers-reduced-motion){:where(.carousel__slides){scroll-behavior:auto}}.carousel__navigation{grid-area:navigation}sd-button::part(label){pointer-events:none;display:flex;flex:auto;align-items:center}`],r([g('[part~="autoplay-controls"]')],o.prototype,"autoplayControls",2),r([g('[part~="navigation-button--previous"]')],o.prototype,"previousButton",2),r([g('[part~="navigation-button--next"]')],o.prototype,"nextButton",2),r([A('[part~="pagination-item"]')],o.prototype,"paginationItems",2),r([p({type:String,reflect:!0})],o.prototype,"variant",2),r([p({type:Boolean,reflect:!0})],o.prototype,"inverted",2),r([p({type:Boolean,reflect:!0})],o.prototype,"loop",2),r([p({type:Boolean,reflect:!0})],o.prototype,"autoplay",2),r([p({type:Number,attribute:"autoplay-interval",reflect:!0})],o.prototype,"autoplayInterval",2),r([p({type:Boolean,reflect:!0})],o.prototype,"fade",2),r([p({type:Number,attribute:"slides-per-page",reflect:!0})],o.prototype,"slidesPerPage",2),r([p({type:Number,attribute:"slides-per-move",reflect:!0})],o.prototype,"slidesPerMove",2),r([g("slot:not([name])")],o.prototype,"defaultSlot",2),r([g(".carousel__slides")],o.prototype,"scrollContainer",2),r([g(".carousel__pagination")],o.prototype,"paginationContainer",2),r([g(".carousel__announcement")],o.prototype,"announcementRegion",2),r([y()],o.prototype,"activeSlide",2),r([y()],o.prototype,"currentPage",2),r([y()],o.prototype,"pausedAutoplay",2),r([y()],o.prototype,"isFocused",2),r([v("pausedAutoplay")],o.prototype,"handlePausedAutoplay",1),r([v("fade",{waitUntilFirstUpdate:!0})],o.prototype,"handleFadeChange",1),r([v("loop",{waitUntilFirstUpdate:!0}),v("slidesPerPage",{waitUntilFirstUpdate:!0})],o.prototype,"initializeSlides",1),r([v("activeSlide")],o.prototype,"handleSlideChange",1),r([v("slidesPerMove")],o.prototype,"handleSlidesPerMoveChange",1),r([v("autoplay")],o.prototype,"handleAutoplayChange",1),r([v("autoplayInterval")],o.prototype,"handleautoplayIntervalChange",1),o=r([P("sd-carousel")],o);export{o as a};
3
+ /*! Bundled license information:
4
+
5
+ lit-html/directives/map.js:
6
+ lit-html/directives/range.js:
7
+ (**
8
+ * @license
9
+ * Copyright 2021 Google LLC
10
+ * SPDX-License-Identifier: BSD-3-Clause
11
+ *)
12
+ */
@@ -1 +1 @@
1
- import{a}from"../../chunks/chunk.5SQTIWWY.js";import"../../chunks/chunk.BJBQEPZV.js";import"../../chunks/chunk.EOXYPQZI.js";import"../../chunks/chunk.MHWW3RZB.js";import"../../chunks/chunk.N4L76IWF.js";import"../../chunks/chunk.CBQWVOOS.js";import"../../chunks/chunk.KLRPP4NQ.js";import"../../chunks/chunk.GA3PWYR4.js";import"../../chunks/chunk.TWZDCIM2.js";import"../../chunks/chunk.MWDEA25W.js";import"../../chunks/chunk.W5O4FM6B.js";import"../../chunks/chunk.QQD62QOV.js";import"../../chunks/chunk.552X4W43.js";import"../../chunks/chunk.TRGIF57L.js";import"../../chunks/chunk.LWLOMMIE.js";import"../../chunks/chunk.J4FJ2SAP.js";import"../../chunks/chunk.NJIXLFKZ.js";import"../../chunks/chunk.MEDJPDBB.js";import"../../chunks/chunk.4XZDW2BJ.js";import"../../chunks/chunk.SOLVKQIM.js";import"../../chunks/chunk.4XDRYWQQ.js";import"../../chunks/chunk.4ZZFYCXX.js";import"../../chunks/chunk.NYKJXI3Q.js";import"../../chunks/chunk.J45556RK.js";import"../../chunks/chunk.OBAEIKIV.js";import"../../chunks/chunk.W4QBFD6E.js";import"../../chunks/chunk.6EV4YU6C.js";export{a as default};
1
+ import{a}from"../../chunks/chunk.JQV2BZ2E.js";import"../../chunks/chunk.BJBQEPZV.js";import"../../chunks/chunk.EOXYPQZI.js";import"../../chunks/chunk.MHWW3RZB.js";import"../../chunks/chunk.N4L76IWF.js";import"../../chunks/chunk.CBQWVOOS.js";import"../../chunks/chunk.KLRPP4NQ.js";import"../../chunks/chunk.GA3PWYR4.js";import"../../chunks/chunk.TWZDCIM2.js";import"../../chunks/chunk.MWDEA25W.js";import"../../chunks/chunk.W5O4FM6B.js";import"../../chunks/chunk.QQD62QOV.js";import"../../chunks/chunk.552X4W43.js";import"../../chunks/chunk.TRGIF57L.js";import"../../chunks/chunk.LWLOMMIE.js";import"../../chunks/chunk.J4FJ2SAP.js";import"../../chunks/chunk.NJIXLFKZ.js";import"../../chunks/chunk.MEDJPDBB.js";import"../../chunks/chunk.4XZDW2BJ.js";import"../../chunks/chunk.SOLVKQIM.js";import"../../chunks/chunk.4XDRYWQQ.js";import"../../chunks/chunk.4ZZFYCXX.js";import"../../chunks/chunk.NYKJXI3Q.js";import"../../chunks/chunk.J45556RK.js";import"../../chunks/chunk.OBAEIKIV.js";import"../../chunks/chunk.W4QBFD6E.js";import"../../chunks/chunk.6EV4YU6C.js";export{a as default};
@@ -1 +1 @@
1
- import{a}from"../../chunks/chunk.Q3DFVGEW.js";import"../../chunks/chunk.54DO3JVH.js";import"../../chunks/chunk.WL6NNNG5.js";import"../../chunks/chunk.ERP45OHF.js";import"../../chunks/chunk.X2GM34WQ.js";import"../../chunks/chunk.W7A3TU2Z.js";import"../../chunks/chunk.OKNJ5BPS.js";import"../../chunks/chunk.MYPRMCUO.js";import"../../chunks/chunk.LZRL7OLU.js";import"../../chunks/chunk.LHSR56PH.js";import"../../chunks/chunk.CGQ2BPPZ.js";import"../../chunks/chunk.B2NUKX6G.js";import"../../chunks/chunk.NL7YFV4O.js";import"../../chunks/chunk.KLRPP4NQ.js";import"../../chunks/chunk.GA3PWYR4.js";import"../../chunks/chunk.TWZDCIM2.js";import"../../chunks/chunk.MWDEA25W.js";import"../../chunks/chunk.W5O4FM6B.js";import"../../chunks/chunk.QQD62QOV.js";import"../../chunks/chunk.552X4W43.js";import"../../chunks/chunk.TRGIF57L.js";import"../../chunks/chunk.LWLOMMIE.js";import"../../chunks/chunk.J4FJ2SAP.js";import"../../chunks/chunk.NJIXLFKZ.js";import"../../chunks/chunk.MEDJPDBB.js";import"../../chunks/chunk.4XZDW2BJ.js";import"../../chunks/chunk.SOLVKQIM.js";import"../../chunks/chunk.4XDRYWQQ.js";import"../../chunks/chunk.4ZZFYCXX.js";import"../../chunks/chunk.NYKJXI3Q.js";import"../../chunks/chunk.J45556RK.js";import"../../chunks/chunk.OBAEIKIV.js";import"../../chunks/chunk.W4QBFD6E.js";import"../../chunks/chunk.6EV4YU6C.js";export{a as default};
1
+ import{a}from"../../chunks/chunk.37JCS2XH.js";import"../../chunks/chunk.54DO3JVH.js";import"../../chunks/chunk.WL6NNNG5.js";import"../../chunks/chunk.ERP45OHF.js";import"../../chunks/chunk.X2GM34WQ.js";import"../../chunks/chunk.W7A3TU2Z.js";import"../../chunks/chunk.OKNJ5BPS.js";import"../../chunks/chunk.MYPRMCUO.js";import"../../chunks/chunk.LZRL7OLU.js";import"../../chunks/chunk.LHSR56PH.js";import"../../chunks/chunk.CGQ2BPPZ.js";import"../../chunks/chunk.B2NUKX6G.js";import"../../chunks/chunk.NL7YFV4O.js";import"../../chunks/chunk.KLRPP4NQ.js";import"../../chunks/chunk.GA3PWYR4.js";import"../../chunks/chunk.TWZDCIM2.js";import"../../chunks/chunk.MWDEA25W.js";import"../../chunks/chunk.W5O4FM6B.js";import"../../chunks/chunk.QQD62QOV.js";import"../../chunks/chunk.552X4W43.js";import"../../chunks/chunk.TRGIF57L.js";import"../../chunks/chunk.LWLOMMIE.js";import"../../chunks/chunk.J4FJ2SAP.js";import"../../chunks/chunk.NJIXLFKZ.js";import"../../chunks/chunk.MEDJPDBB.js";import"../../chunks/chunk.4XZDW2BJ.js";import"../../chunks/chunk.SOLVKQIM.js";import"../../chunks/chunk.4XDRYWQQ.js";import"../../chunks/chunk.4ZZFYCXX.js";import"../../chunks/chunk.NYKJXI3Q.js";import"../../chunks/chunk.J45556RK.js";import"../../chunks/chunk.OBAEIKIV.js";import"../../chunks/chunk.W4QBFD6E.js";import"../../chunks/chunk.6EV4YU6C.js";export{a as default};
@@ -1 +1 @@
1
- import{a}from"../../chunks/chunk.HWX5X5EX.js";import"../../chunks/chunk.WWGARXPI.js";import"../../chunks/chunk.23WKPZET.js";import"../../chunks/chunk.SSE7T5OF.js";import"../../chunks/chunk.MYPRMCUO.js";import"../../chunks/chunk.LZRL7OLU.js";import"../../chunks/chunk.CGQ2BPPZ.js";import"../../chunks/chunk.GA3PWYR4.js";import"../../chunks/chunk.TWZDCIM2.js";import"../../chunks/chunk.MWDEA25W.js";import"../../chunks/chunk.W5O4FM6B.js";import"../../chunks/chunk.QQD62QOV.js";import"../../chunks/chunk.552X4W43.js";import"../../chunks/chunk.TRGIF57L.js";import"../../chunks/chunk.LWLOMMIE.js";import"../../chunks/chunk.J4FJ2SAP.js";import"../../chunks/chunk.NJIXLFKZ.js";import"../../chunks/chunk.MEDJPDBB.js";import"../../chunks/chunk.4XZDW2BJ.js";import"../../chunks/chunk.SOLVKQIM.js";import"../../chunks/chunk.4XDRYWQQ.js";import"../../chunks/chunk.4ZZFYCXX.js";import"../../chunks/chunk.NYKJXI3Q.js";import"../../chunks/chunk.J45556RK.js";import"../../chunks/chunk.OBAEIKIV.js";import"../../chunks/chunk.W4QBFD6E.js";import"../../chunks/chunk.6EV4YU6C.js";export{a as default};
1
+ import{a}from"../../chunks/chunk.7OG7ICBB.js";import"../../chunks/chunk.WWGARXPI.js";import"../../chunks/chunk.23WKPZET.js";import"../../chunks/chunk.SSE7T5OF.js";import"../../chunks/chunk.MYPRMCUO.js";import"../../chunks/chunk.LZRL7OLU.js";import"../../chunks/chunk.CGQ2BPPZ.js";import"../../chunks/chunk.GA3PWYR4.js";import"../../chunks/chunk.TWZDCIM2.js";import"../../chunks/chunk.MWDEA25W.js";import"../../chunks/chunk.W5O4FM6B.js";import"../../chunks/chunk.QQD62QOV.js";import"../../chunks/chunk.552X4W43.js";import"../../chunks/chunk.TRGIF57L.js";import"../../chunks/chunk.LWLOMMIE.js";import"../../chunks/chunk.J4FJ2SAP.js";import"../../chunks/chunk.NJIXLFKZ.js";import"../../chunks/chunk.MEDJPDBB.js";import"../../chunks/chunk.4XZDW2BJ.js";import"../../chunks/chunk.SOLVKQIM.js";import"../../chunks/chunk.4XDRYWQQ.js";import"../../chunks/chunk.4ZZFYCXX.js";import"../../chunks/chunk.NYKJXI3Q.js";import"../../chunks/chunk.J45556RK.js";import"../../chunks/chunk.OBAEIKIV.js";import"../../chunks/chunk.W4QBFD6E.js";import"../../chunks/chunk.6EV4YU6C.js";export{a as default};