@ds-autonomie/web-components 2.20.0 → 2.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (529) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/cdn/chunks/{chunk.LYLTFAFC.js → chunk.2FPBPQUJ.js} +4 -6
  3. package/cdn/chunks/chunk.2OLHSSGN.js +60 -0
  4. package/cdn/chunks/{chunk.ZZBJJF7J.js → chunk.2OZWUNZO.js} +1 -1
  5. package/cdn/chunks/{chunk.EFB2SY45.js → chunk.2TZ4LFPJ.js} +1 -1
  6. package/cdn/chunks/{chunk.WWTHUDXI.js → chunk.2V4YCZ2W.js} +5 -2
  7. package/cdn/chunks/chunk.2YKQ7H24.js +3 -0
  8. package/cdn/chunks/{chunk.F4AQSIUW.js → chunk.353PHEPC.js} +1 -1
  9. package/cdn/chunks/{chunk.ZMEW7RFS.js → chunk.3I36IGZA.js} +1 -1
  10. package/cdn/chunks/{chunk.SBGRTAIJ.js → chunk.3NZ4VRJF.js} +1 -1
  11. package/cdn/chunks/{chunk.DRNNBI43.js → chunk.3Z6ANWYS.js} +1 -1
  12. package/cdn/chunks/{chunk.OSB2X3QH.js → chunk.4HFX2WWN.js} +1 -1
  13. package/cdn/chunks/{chunk.YQURDTCI.js → chunk.5VZFKPSK.js} +1 -1
  14. package/cdn/chunks/{chunk.QXHK62F7.js → chunk.5YSNZTMZ.js} +1 -1
  15. package/cdn/chunks/{chunk.DBXX64Q4.js → chunk.6DSY52TF.js} +5 -5
  16. package/cdn/chunks/{chunk.NH327H72.js → chunk.6DVHKT6J.js} +1 -1
  17. package/cdn/chunks/{chunk.UDLR3IFA.js → chunk.6ETSOBAB.js} +1 -1
  18. package/cdn/chunks/{chunk.3YXGLEPK.js → chunk.6XSWDZ3K.js} +1 -1
  19. package/cdn/chunks/{chunk.HR3DGR2Y.js → chunk.75OMKNKV.js} +1 -1
  20. package/cdn/chunks/{chunk.FEPCSTZT.js → chunk.7DI4X2VG.js} +1 -1
  21. package/cdn/chunks/{chunk.UFUMCCGR.js → chunk.7T3GRSME.js} +1 -1
  22. package/cdn/chunks/{chunk.WMOV27WV.js → chunk.7U5JEAWJ.js} +1 -1
  23. package/cdn/chunks/{chunk.QSMVLQKG.js → chunk.A7WF23I3.js} +1 -1
  24. package/cdn/chunks/{chunk.RDYBSHLC.js → chunk.AGV4A3YT.js} +1 -1
  25. package/cdn/chunks/{chunk.KHGWE5IX.js → chunk.ALIA5R6V.js} +32 -34
  26. package/cdn/chunks/{chunk.VZAYP3SG.js → chunk.AM2ZR2Y2.js} +1 -1
  27. package/cdn/chunks/{chunk.WNYKZ5NJ.js → chunk.AQOO2T52.js} +1 -1
  28. package/cdn/chunks/{chunk.H6456THW.js → chunk.AWM5EZRY.js} +1 -1
  29. package/cdn/chunks/{chunk.BZT2GJNM.js → chunk.B6OZRSZK.js} +1 -1
  30. package/cdn/chunks/{chunk.4XCZGVYA.js → chunk.BFOG2B56.js} +1 -1
  31. package/cdn/chunks/{chunk.VBCBEOZG.js → chunk.BWWABV2J.js} +1 -1
  32. package/cdn/chunks/{chunk.IUOHXTHC.js → chunk.C6L5URBB.js} +1 -1
  33. package/cdn/chunks/chunk.CFJ4QXH4.js +19 -0
  34. package/cdn/chunks/{chunk.YUIUEJ5Y.js → chunk.CT4MJF6T.js} +1 -1
  35. package/cdn/chunks/{chunk.KX5QV54N.js → chunk.CWRA4UT2.js} +1 -1
  36. package/cdn/chunks/chunk.DBVKBRPG.js +47 -0
  37. package/cdn/chunks/{chunk.57RCXLSL.js → chunk.DEILGCUT.js} +1 -1
  38. package/cdn/chunks/{chunk.74Q4P5NY.js → chunk.DFZPEZNV.js} +1 -1
  39. package/cdn/chunks/{chunk.TO3SON22.js → chunk.DGEG6HVV.js} +1 -1
  40. package/cdn/chunks/{chunk.OSR6DVXB.js → chunk.DZNXUAKA.js} +1 -1
  41. package/cdn/chunks/{chunk.QPMWIVIV.js → chunk.EMVVCZ7J.js} +1 -1
  42. package/cdn/chunks/{chunk.STCKZYIM.js → chunk.EV47H3BZ.js} +1 -1
  43. package/cdn/chunks/{chunk.SLWQRYAW.js → chunk.FASLFYND.js} +1 -1
  44. package/cdn/chunks/{chunk.7NBAEATD.js → chunk.FVTT4MMC.js} +1 -1
  45. package/cdn/chunks/chunk.G4QC72M3.js +90 -0
  46. package/cdn/chunks/chunk.GGN6W46J.js +33 -0
  47. package/cdn/chunks/{chunk.5Z62TASD.js → chunk.GL7V5QFT.js} +1 -1
  48. package/cdn/chunks/{chunk.6JL6NMDO.js → chunk.GNP3HUWO.js} +1 -1
  49. package/cdn/chunks/{chunk.KM72KRA4.js → chunk.GSE4BYLS.js} +1 -1
  50. package/cdn/chunks/{chunk.XKWU5ZJA.js → chunk.HACTOR3N.js} +1 -1
  51. package/cdn/chunks/{chunk.WRMXCZIL.js → chunk.HJIBYZA7.js} +1 -1
  52. package/cdn/chunks/{chunk.ZMRIQCNQ.js → chunk.HLXIBAA3.js} +1 -1
  53. package/cdn/chunks/{chunk.XOEINTMR.js → chunk.HPYWAFMA.js} +8 -11
  54. package/cdn/chunks/{chunk.CDESACOR.js → chunk.HTMFQPE5.js} +1 -1
  55. package/cdn/chunks/{chunk.VIXRVYB7.js → chunk.HZV5COH7.js} +1 -1
  56. package/cdn/chunks/chunk.I2EMSNY5.js +3 -0
  57. package/cdn/chunks/{chunk.HGNNGE53.js → chunk.I4AEWSTQ.js} +5 -5
  58. package/cdn/chunks/chunk.I6KH3RXW.js +31 -0
  59. package/cdn/chunks/{chunk.OTNIMSDB.js → chunk.IJ4EFTP2.js} +1 -1
  60. package/cdn/chunks/{chunk.T5OLUN3T.js → chunk.IZDRYSJI.js} +8 -8
  61. package/cdn/chunks/chunk.J34FMZ22.js +20 -0
  62. package/cdn/chunks/{chunk.NZKPTTUJ.js → chunk.J5KWRJTH.js} +1 -1
  63. package/cdn/chunks/{chunk.CR7CW7MM.js → chunk.K6LO352V.js} +1 -1
  64. package/cdn/chunks/{chunk.NVG5W3ED.js → chunk.KDJOQQSW.js} +1 -1
  65. package/cdn/chunks/{chunk.M57VWWNA.js → chunk.KUSB4WKX.js} +1 -1
  66. package/cdn/chunks/{chunk.IDTMD6WQ.js → chunk.KZKCBYIC.js} +1 -1
  67. package/cdn/chunks/{chunk.XHVUNCDG.js → chunk.LCXOBOTQ.js} +1 -1
  68. package/cdn/chunks/{chunk.5V6ZBY2X.js → chunk.LPXI2TGU.js} +1 -1
  69. package/cdn/chunks/{chunk.P7SG42IM.js → chunk.LXVTY3UZ.js} +1 -1
  70. package/cdn/chunks/{chunk.FUN7B2IQ.js → chunk.M4NNGNSF.js} +1 -1
  71. package/cdn/chunks/{chunk.37TJAUZA.js → chunk.MIF4MK3R.js} +1 -1
  72. package/cdn/chunks/{chunk.XOR6B7CF.js → chunk.MPOEF2AD.js} +1 -1
  73. package/cdn/chunks/{chunk.DS2JXBOZ.js → chunk.N35G45JG.js} +1 -1
  74. package/cdn/chunks/{chunk.2MGX3JTR.js → chunk.NWYSJOVO.js} +1 -1
  75. package/cdn/chunks/{chunk.S7OUYCK4.js → chunk.O7SAIPOG.js} +1 -1
  76. package/cdn/chunks/{chunk.G46A6S6B.js → chunk.OE4QGAVP.js} +1 -1
  77. package/cdn/chunks/{chunk.G5H2VKPM.js → chunk.OHC3KP3N.js} +1 -1
  78. package/cdn/chunks/{chunk.YCHSWY7W.js → chunk.OR4BPTYF.js} +1 -1
  79. package/cdn/chunks/{chunk.JVEPCKCT.js → chunk.OX4H5VZP.js} +1 -1
  80. package/cdn/chunks/{chunk.44RPMYBZ.js → chunk.OZUBIMSO.js} +1 -1
  81. package/cdn/chunks/{chunk.YL7QS24Y.js → chunk.P5OHHVIZ.js} +1 -1
  82. package/cdn/chunks/{chunk.O52WFAX7.js → chunk.POOZWGH5.js} +1 -1
  83. package/cdn/chunks/chunk.Q54GPNUS.js +1 -0
  84. package/cdn/chunks/{chunk.4GV3WJET.js → chunk.QXQFA2PL.js} +2 -2
  85. package/cdn/chunks/{chunk.JEOSRXCU.js → chunk.QZ7M6OGO.js} +1 -1
  86. package/cdn/chunks/{chunk.RCGUDUP2.js → chunk.R2SAERUV.js} +14 -15
  87. package/cdn/chunks/{chunk.6UXK7G4D.js → chunk.RKAXCU2K.js} +1 -1
  88. package/cdn/chunks/{chunk.Q2IGZDBA.js → chunk.RMHUEO6M.js} +1 -1
  89. package/cdn/chunks/{chunk.Q7GZ4AMX.js → chunk.RUMRXWLX.js} +1 -1
  90. package/cdn/chunks/{chunk.NJOCDP2A.js → chunk.SARJ4UB5.js} +1 -1
  91. package/cdn/chunks/{chunk.BKSG5KWK.js → chunk.SCA6KI3Y.js} +1 -1
  92. package/cdn/chunks/{chunk.FDMQXEYE.js → chunk.SK27PJHT.js} +1 -1
  93. package/cdn/chunks/{chunk.JUMQSXMT.js → chunk.TBAF2O5H.js} +1 -1
  94. package/cdn/chunks/{chunk.KVJWSAR3.js → chunk.THBCP6LI.js} +1 -1
  95. package/cdn/chunks/{chunk.II4JQ433.js → chunk.U5TCFENL.js} +1 -1
  96. package/cdn/chunks/{chunk.MU36LMLD.js → chunk.UB73V5BI.js} +1 -1
  97. package/cdn/chunks/{chunk.V2HF2VKY.js → chunk.UIEL566X.js} +1 -1
  98. package/cdn/chunks/{chunk.S47ZNKH7.js → chunk.UIKL7DR3.js} +1 -1
  99. package/cdn/chunks/{chunk.56JDCX3P.js → chunk.UPUWTQY3.js} +1 -1
  100. package/cdn/chunks/{chunk.CNAZZZJL.js → chunk.UQC4FZQO.js} +1 -1
  101. package/cdn/chunks/{chunk.K3JAYUBA.js → chunk.UREKS7QR.js} +1 -1
  102. package/cdn/chunks/{chunk.AIMBA5HQ.js → chunk.UVI76N5N.js} +1 -1
  103. package/cdn/chunks/{chunk.GWF5GFSQ.js → chunk.VBIJSQJQ.js} +1 -1
  104. package/cdn/chunks/chunk.VCAUYLU6.js +53 -0
  105. package/cdn/chunks/chunk.VEWOSPRC.js +19 -0
  106. package/cdn/chunks/{chunk.YMSC6K32.js → chunk.VK2CO5ZK.js} +1 -1
  107. package/cdn/chunks/{chunk.76OQZSVD.js → chunk.VPHVZMUY.js} +1 -1
  108. package/cdn/chunks/{chunk.2FAAI4ZJ.js → chunk.VRETONIU.js} +1 -1
  109. package/cdn/chunks/{chunk.Q2GIRDX3.js → chunk.VSTKTCJY.js} +1 -1
  110. package/cdn/chunks/{chunk.7RWZ2YNR.js → chunk.VVBLZBT2.js} +1 -1
  111. package/cdn/chunks/{chunk.EV7HZRUS.js → chunk.W6E7LGND.js} +1 -1
  112. package/cdn/chunks/{chunk.TFTJUTCH.js → chunk.WFPILKOS.js} +1 -1
  113. package/cdn/chunks/{chunk.XZTHZM2O.js → chunk.XBO6BPEL.js} +1 -1
  114. package/cdn/chunks/chunk.XDSXN7TT.js +17 -0
  115. package/cdn/chunks/{chunk.ALDKYE6L.js → chunk.XP43FQ5R.js} +3 -3
  116. package/cdn/chunks/{chunk.GEX7B2RZ.js → chunk.XXFCN6MW.js} +1 -1
  117. package/cdn/chunks/{chunk.JPOWE7L2.js → chunk.YDZDEOUX.js} +1 -1
  118. package/cdn/chunks/{chunk.7Y54WEHT.js → chunk.YEEGO6X3.js} +1 -1
  119. package/cdn/chunks/{chunk.YKDQ56UZ.js → chunk.YG7EIWOO.js} +1 -1
  120. package/cdn/chunks/{chunk.67UP3FZD.js → chunk.Z33ITBWZ.js} +5 -5
  121. package/cdn/chunks/{chunk.F6YFQ3GB.js → chunk.ZEMA7TWY.js} +15 -2
  122. package/cdn/chunks/{chunk.URE4SVTS.js → chunk.ZNUQSSRL.js} +1 -1
  123. package/cdn/chunks/{chunk.M66L2D2H.js → chunk.ZQPFBR34.js} +1 -1
  124. package/cdn/chunks/{chunk.CLIKZB5P.js → chunk.ZZEMBF7E.js} +1 -1
  125. package/cdn/components/accordion/accordion.js +1 -1
  126. package/cdn/components/accordion-group/accordion-group.js +1 -1
  127. package/cdn/components/alert/alert.js +1 -1
  128. package/cdn/components/avatar/avatar.js +1 -1
  129. package/cdn/components/banner/banner.d.ts +36 -0
  130. package/cdn/components/banner/banner.js +1 -0
  131. package/cdn/components/banner/banner.styles.d.ts +2 -0
  132. package/cdn/components/banner/banner.styles.js +1 -0
  133. package/cdn/components/breadcrumb/breadcrumb.js +1 -1
  134. package/cdn/components/breadcrumb-item/breadcrumb-item.js +1 -1
  135. package/cdn/components/button/button.js +1 -1
  136. package/cdn/components/calendar/calendar.js +1 -1
  137. package/cdn/components/card-content/card-content.js +1 -1
  138. package/cdn/components/card-nav-accordion/card-nav-accordion.js +1 -1
  139. package/cdn/components/card-nav-item/card-nav-item.js +1 -1
  140. package/cdn/components/checkbox/checkbox.js +1 -1
  141. package/cdn/components/checkbox/checkbox.styles.js +1 -1
  142. package/cdn/components/checkbox-button/checkbox-button.js +1 -1
  143. package/cdn/components/checkbox-card/checkbox-card.js +1 -1
  144. package/cdn/components/checkbox-group/checkbox-group.js +1 -1
  145. package/cdn/components/checkbox-group/checkbox-group.styles.js +1 -1
  146. package/cdn/components/combobox/combobox.js +1 -1
  147. package/cdn/components/combobox/combobox.styles.js +1 -1
  148. package/cdn/components/copy-button/copy-button.js +1 -1
  149. package/cdn/components/dialog/dialog.js +1 -1
  150. package/cdn/components/download-card/download-card.d.ts +3 -1
  151. package/cdn/components/download-card/download-card.js +1 -1
  152. package/cdn/components/download-card/download-card.styles.js +1 -1
  153. package/cdn/components/download-link/download-link.d.ts +3 -1
  154. package/cdn/components/download-link/download-link.js +1 -1
  155. package/cdn/components/download-link/download-link.styles.js +1 -1
  156. package/cdn/components/drawer/drawer.js +1 -1
  157. package/cdn/components/drawer/drawer.styles.js +1 -1
  158. package/cdn/components/dropdown/dropdown.js +1 -1
  159. package/cdn/components/error-message-panel/error-message-panel.js +1 -1
  160. package/cdn/components/error-message-panel/error-message-panel.styles.js +1 -1
  161. package/cdn/components/error-text/error-text.js +1 -1
  162. package/cdn/components/fieldset/fieldset.js +1 -1
  163. package/cdn/components/fieldset/fieldset.styles.js +1 -1
  164. package/cdn/components/file-upload/file-upload.js +1 -1
  165. package/cdn/components/file-upload/file-upload.styles.js +1 -1
  166. package/cdn/components/file-upload-item/file-upload-item.js +1 -1
  167. package/cdn/components/filter-button/filter-button.js +1 -1
  168. package/cdn/components/filter-counter/filter-counter.js +1 -1
  169. package/cdn/components/filter-date/filter-date.js +1 -1
  170. package/cdn/components/filter-range/filter-range.js +1 -1
  171. package/cdn/components/filter-select/filter-select.js +1 -1
  172. package/cdn/components/footer/footer.js +1 -1
  173. package/cdn/components/format-bytes/format-bytes.js +1 -1
  174. package/cdn/components/format-date/format-date.js +1 -1
  175. package/cdn/components/format-number/format-number.js +1 -1
  176. package/cdn/components/graphic-element/graphic-element.js +1 -1
  177. package/cdn/components/graphic-element/graphic-element.library.js +1 -1
  178. package/cdn/components/header/header.js +1 -1
  179. package/cdn/components/header-modern/header-modern.js +1 -1
  180. package/cdn/components/header-search/header-search.js +1 -1
  181. package/cdn/components/icon/icon.js +1 -1
  182. package/cdn/components/icon/library.js +1 -1
  183. package/cdn/components/icon-button/icon-button.js +1 -1
  184. package/cdn/components/input/input.js +1 -1
  185. package/cdn/components/input-amount/input-amount.js +1 -1
  186. package/cdn/components/input-amount/input-amount.styles.js +1 -1
  187. package/cdn/components/input-date/input-date.js +1 -1
  188. package/cdn/components/input-date/input-date.styles.js +1 -1
  189. package/cdn/components/input-mask/input-mask.js +1 -1
  190. package/cdn/components/input-mask/input-mask.styles.js +1 -1
  191. package/cdn/components/input-native/input-native.js +1 -1
  192. package/cdn/components/input-native/input-native.styles.js +1 -1
  193. package/cdn/components/input-otp/input-otp.js +1 -1
  194. package/cdn/components/input-otp/input-otp.styles.js +1 -1
  195. package/cdn/components/input-phone/input-phone.configs.js +1 -1
  196. package/cdn/components/input-phone/input-phone.js +1 -1
  197. package/cdn/components/input-phone/input-phone.styles.js +1 -1
  198. package/cdn/components/input-time/input-time.js +1 -1
  199. package/cdn/components/input-time/input-time.styles.js +1 -1
  200. package/cdn/components/menu-accordion/menu-accordion.js +1 -1
  201. package/cdn/components/menu-item/menu-item.js +1 -1
  202. package/cdn/components/menu-navigation/menu-navigation.js +1 -1
  203. package/cdn/components/navbar-link/navbar-link.js +1 -1
  204. package/cdn/components/navbar-menu/navbar-menu.js +1 -1
  205. package/cdn/components/option/option.js +1 -1
  206. package/cdn/components/pagination/pagination.js +1 -1
  207. package/cdn/components/popup/popup.js +1 -1
  208. package/cdn/components/profile-button/profile-button.js +1 -1
  209. package/cdn/components/progress-bar/progress-bar.js +1 -1
  210. package/cdn/components/radio/radio.js +1 -1
  211. package/cdn/components/radio-button/radio-button.js +1 -1
  212. package/cdn/components/radio-card/radio-card.js +1 -1
  213. package/cdn/components/radio-group/radio-group.js +1 -1
  214. package/cdn/components/radio-group/radio-group.styles.js +1 -1
  215. package/cdn/components/relative-time/relative-time.js +1 -1
  216. package/cdn/components/search/search.js +1 -1
  217. package/cdn/components/select/select.js +1 -1
  218. package/cdn/components/select/select.styles.js +1 -1
  219. package/cdn/components/sidenav/sidenav.js +1 -1
  220. package/cdn/components/sidenav-info-accordion/sidenav-info-accordion.js +1 -1
  221. package/cdn/components/skip-links/skip-links.js +1 -1
  222. package/cdn/components/spinner/spinner.js +1 -1
  223. package/cdn/components/split-panel/split-panel.js +1 -1
  224. package/cdn/components/step/step.js +1 -1
  225. package/cdn/components/success-text/success-text.js +1 -1
  226. package/cdn/components/switch/switch.js +1 -1
  227. package/cdn/components/tab/tab.js +1 -1
  228. package/cdn/components/tab-group/tab-group.js +1 -1
  229. package/cdn/components/table-action/table-action.d.ts +2 -0
  230. package/cdn/components/table-action/table-action.js +1 -1
  231. package/cdn/components/table-caption/table-caption.js +1 -1
  232. package/cdn/components/table-container/table-container.js +1 -1
  233. package/cdn/components/table-header-cell/table-header-cell.js +1 -1
  234. package/cdn/components/table-header-row/table-header-row.js +1 -1
  235. package/cdn/components/table-of-contents/table-of-contents.js +1 -1
  236. package/cdn/components/table-of-contents/table-of-contents.styles.js +1 -1
  237. package/cdn/components/table-row/table-row.js +1 -1
  238. package/cdn/components/tag/tag.js +1 -1
  239. package/cdn/components/textarea/textarea.js +1 -1
  240. package/cdn/components/textarea/textarea.styles.js +1 -1
  241. package/cdn/components/tooltip/tooltip.js +1 -1
  242. package/cdn/components/tree/tree.js +1 -1
  243. package/cdn/components/tree-item/tree-item.js +1 -1
  244. package/cdn/custom-elements.json +418 -223
  245. package/cdn/design-system.d.ts +1 -0
  246. package/cdn/design-system.js +1 -1
  247. package/cdn/internal/components/form-control/form-control-layout.js +16 -15
  248. package/cdn/internal/components/input-base/input-base.js +4 -3
  249. package/cdn/styles/form-control.styles.js +32 -34
  250. package/cdn/templates/utilities/header.js +1 -1
  251. package/cdn/templates/utilities/template-story-config.js +0 -3
  252. package/cdn/themes/dsa-wc-theme.css +2 -4
  253. package/cdn/themes/dsa-wc-theme.min.css +1 -1
  254. package/cdn/themes/dsa-wc-theme.styles.js +2 -4
  255. package/cdn/translations/en-gb.js +1 -1
  256. package/cdn/translations/en.js +1 -1
  257. package/cdn/translations/fr.js +1 -1
  258. package/cdn/utilities/icon-library.js +1 -1
  259. package/cdn/utilities/localize.d.ts +1 -0
  260. package/cdn/utilities/localize.js +1 -1
  261. package/cdn/utilities/storybook.js +2 -2
  262. package/cdn/vscode.html-custom-data.json +53 -26
  263. package/cdn/web-types.json +230 -122
  264. package/dist/chunks/{chunk.B6XSS23Y.js → chunk.2G35OVLZ.js} +3 -3
  265. package/dist/chunks/{chunk.MWPOWC6N.js → chunk.2GTXVMMC.js} +2 -4
  266. package/dist/chunks/{chunk.MFGYIAUT.js → chunk.3TAGND37.js} +1 -1
  267. package/dist/chunks/{chunk.YBX4TUQG.js → chunk.4IDR4RJI.js} +7 -7
  268. package/dist/chunks/{chunk.K43LRQVK.js → chunk.5DVIZLXZ.js} +1 -1
  269. package/dist/chunks/{chunk.YGUB43LS.js → chunk.5ESJXERV.js} +1 -1
  270. package/dist/chunks/{chunk.M2QIFDAP.js → chunk.5NGXTSAJ.js} +1 -1
  271. package/dist/chunks/{chunk.GMHIXRUV.js → chunk.65EFQZ4A.js} +1 -1
  272. package/dist/chunks/{chunk.TLQMWL6I.js → chunk.67J6LDJW.js} +5 -2
  273. package/dist/chunks/{chunk.MJ6DIYWF.js → chunk.6EU6GX26.js} +1 -1
  274. package/dist/chunks/{chunk.B3DDBDEC.js → chunk.6KY7LP6G.js} +5 -3
  275. package/dist/chunks/{chunk.M2RDCDKZ.js → chunk.6PI2M6R6.js} +1 -1
  276. package/dist/chunks/{chunk.L5HLKFQW.js → chunk.6ZVGYVEL.js} +1 -1
  277. package/dist/chunks/{chunk.BKCIRG2P.js → chunk.73XHVQNA.js} +1 -1
  278. package/dist/chunks/{chunk.JTUO6EOR.js → chunk.7EVHJ2OT.js} +3 -3
  279. package/dist/chunks/{chunk.DE3HY2DW.js → chunk.7HMEK2ND.js} +6 -5
  280. package/dist/chunks/{chunk.4JMXY2WI.js → chunk.7PE2PORN.js} +2 -2
  281. package/dist/chunks/{chunk.TGQQJI2E.js → chunk.7WMOPNN5.js} +6 -6
  282. package/dist/chunks/{chunk.T4XADGK3.js → chunk.7YNHLXVZ.js} +1 -1
  283. package/dist/chunks/chunk.7Z3P7ZIT.js +100 -0
  284. package/dist/chunks/{chunk.LKSUU7CF.js → chunk.ABXTXNT4.js} +2 -2
  285. package/dist/chunks/{chunk.Q76VY2W2.js → chunk.ADVAWXPE.js} +1 -1
  286. package/dist/chunks/{chunk.VNGKMC5T.js → chunk.AEU5B6YK.js} +1 -1
  287. package/dist/chunks/{chunk.6DUG6A52.js → chunk.AL6PYL6U.js} +4 -4
  288. package/dist/chunks/{chunk.VFJEGCDO.js → chunk.BAWCVSXY.js} +1 -1
  289. package/dist/chunks/{chunk.BIMSZQRS.js → chunk.BIB7IJGE.js} +4 -4
  290. package/dist/chunks/{chunk.UOJ4QKLP.js → chunk.C4SE3ULG.js} +1 -1
  291. package/dist/chunks/{chunk.IRBKALXJ.js → chunk.C6BC46KV.js} +7 -7
  292. package/dist/chunks/{chunk.KD27MP6C.js → chunk.D7HT35YE.js} +1 -1
  293. package/dist/chunks/{chunk.RRR5BCCP.js → chunk.DEEMRWEE.js} +7 -7
  294. package/dist/chunks/{chunk.NC6NNDYD.js → chunk.DIRVCY5C.js} +1 -1
  295. package/dist/chunks/{chunk.LWTEEWEF.js → chunk.DJFSPHO4.js} +1 -1
  296. package/dist/chunks/{chunk.34HS7ICN.js → chunk.DVIHNMQQ.js} +4 -2
  297. package/dist/chunks/{chunk.H26XMOUA.js → chunk.DX7525EY.js} +1 -1
  298. package/dist/chunks/{chunk.ZJ6WYIG2.js → chunk.DZLEAEG5.js} +61 -61
  299. package/dist/chunks/chunk.E2AA6JZR.js +102 -0
  300. package/dist/chunks/{chunk.F7XLQM3I.js → chunk.EPG5ZB4T.js} +2 -2
  301. package/dist/chunks/{chunk.XM237MHQ.js → chunk.EQNOUAQ6.js} +8 -4
  302. package/dist/chunks/{chunk.PPNCOBIW.js → chunk.EX63QI6Z.js} +3 -3
  303. package/dist/chunks/{chunk.IJLBJ37U.js → chunk.F4DMZGND.js} +7 -7
  304. package/dist/chunks/{chunk.QAA45XK3.js → chunk.FLCLDNUC.js} +2 -2
  305. package/dist/chunks/{chunk.D4VA4USZ.js → chunk.GDRWZRCN.js} +16 -9
  306. package/dist/chunks/{chunk.LN7NDCQU.js → chunk.GM3QM4YJ.js} +3 -3
  307. package/dist/chunks/{chunk.EGXFCQMV.js → chunk.GOVTNZ72.js} +3 -3
  308. package/dist/chunks/{chunk.2GJ46J7Q.js → chunk.GQZAFXU6.js} +1 -1
  309. package/dist/chunks/{chunk.HCKPLZT3.js → chunk.GSRQID3H.js} +7 -7
  310. package/dist/chunks/{chunk.TJ5TUGGE.js → chunk.H5G2LRCX.js} +8 -8
  311. package/dist/chunks/{chunk.ORK75RRY.js → chunk.H7QHCUBR.js} +2 -2
  312. package/dist/chunks/{chunk.WL6AJERE.js → chunk.H7TB3KTK.js} +3 -3
  313. package/dist/chunks/{chunk.LO42XUHN.js → chunk.HAWD2P5K.js} +12 -13
  314. package/dist/chunks/{chunk.ER5S4DQ4.js → chunk.IDMG3YLC.js} +1 -1
  315. package/dist/chunks/{chunk.25TWOP6P.js → chunk.IQY2ZVAV.js} +6 -6
  316. package/dist/chunks/{chunk.TTV3MIRK.js → chunk.ITBFUL7J.js} +7 -7
  317. package/dist/chunks/{chunk.EDEPWRFC.js → chunk.ITD5BZEA.js} +1 -1
  318. package/dist/chunks/{chunk.UYMQI7J5.js → chunk.ITFYDUMM.js} +3 -3
  319. package/dist/chunks/{chunk.DM5A44VN.js → chunk.IYGSQFGQ.js} +4 -4
  320. package/dist/chunks/{chunk.AAZSI6N4.js → chunk.JBFJWJUF.js} +5 -5
  321. package/dist/chunks/{chunk.JC4UHPES.js → chunk.JMA3VRB4.js} +2 -2
  322. package/dist/chunks/{chunk.ZKCBJ5YM.js → chunk.JZAQYPUX.js} +1 -1
  323. package/dist/chunks/{chunk.WAEFCPAX.js → chunk.KC2ZHNPC.js} +1 -1
  324. package/dist/chunks/{chunk.YTAYYSIR.js → chunk.KGP2JSZ7.js} +2 -2
  325. package/dist/chunks/{chunk.FLRNIL37.js → chunk.KN6JQY6O.js} +1 -1
  326. package/dist/chunks/{chunk.IRPNCLE5.js → chunk.KOO2JWHZ.js} +2 -2
  327. package/dist/chunks/{chunk.XSQDJNFR.js → chunk.LBLBASKK.js} +2 -2
  328. package/dist/chunks/{chunk.UGLMODK6.js → chunk.LUN6HLAE.js} +2 -2
  329. package/dist/chunks/{chunk.6EOZYFCK.js → chunk.LVSZUO34.js} +2 -2
  330. package/dist/chunks/{chunk.CRWYFYCK.js → chunk.M347TELO.js} +7 -7
  331. package/dist/chunks/{chunk.CZWS5IXY.js → chunk.M47YUO2L.js} +1 -1
  332. package/dist/chunks/{chunk.6HSTAJNR.js → chunk.M6X2ZDO6.js} +2 -2
  333. package/dist/chunks/{chunk.DN3K2GHZ.js → chunk.MRGJKLE3.js} +1 -1
  334. package/dist/chunks/{chunk.OUUFQTMX.js → chunk.N2XNANRE.js} +2 -2
  335. package/dist/chunks/{chunk.7I4SBUOE.js → chunk.ORAH2BHK.js} +3 -3
  336. package/dist/chunks/{chunk.IIT2FS67.js → chunk.P57KFF6A.js} +12 -7
  337. package/dist/chunks/{chunk.Z7QD3YXZ.js → chunk.PCTIMH5D.js} +8 -8
  338. package/dist/chunks/{chunk.ZYGCOBUE.js → chunk.PT2BKEDG.js} +1 -1
  339. package/dist/chunks/{chunk.ISEFZON7.js → chunk.Q45EA7A6.js} +1 -1
  340. package/dist/chunks/{chunk.CZC3DHY6.js → chunk.Q6GPBRDV.js} +2 -2
  341. package/dist/chunks/{chunk.MDQDWJCR.js → chunk.QCVOP7JL.js} +13 -0
  342. package/dist/chunks/{chunk.EE3XCTKZ.js → chunk.QLJNW3TZ.js} +3 -3
  343. package/dist/chunks/{chunk.NIBZO5CG.js → chunk.RJAOB66Y.js} +6 -6
  344. package/dist/chunks/{chunk.CY25FZDP.js → chunk.RLLACUYR.js} +27 -15
  345. package/dist/chunks/{chunk.5WXGUCD2.js → chunk.RMOUFLCI.js} +3 -3
  346. package/dist/chunks/{chunk.S5FAXONJ.js → chunk.RVOALTE4.js} +5 -5
  347. package/dist/chunks/{chunk.XTVVSORU.js → chunk.S4ZCJOC5.js} +16 -14
  348. package/dist/chunks/{chunk.C7XR6TIW.js → chunk.SJNFRQKU.js} +1 -1
  349. package/dist/chunks/{chunk.SC6ST3JE.js → chunk.SKY7526Z.js} +1 -1
  350. package/dist/chunks/{chunk.5S6P5V3F.js → chunk.SPIKJZGM.js} +1 -1
  351. package/dist/chunks/{chunk.QGSBICBZ.js → chunk.SWKXQDKB.js} +1 -1
  352. package/dist/chunks/{chunk.I7MPPCZN.js → chunk.SYQNO5B4.js} +2 -2
  353. package/dist/chunks/{chunk.RPOIITDC.js → chunk.SYZVBVOX.js} +4 -4
  354. package/dist/chunks/{chunk.CKEB7DWU.js → chunk.T43D4ETK.js} +32 -34
  355. package/dist/chunks/{chunk.4FZPTWZ7.js → chunk.TAMFIHNV.js} +2 -2
  356. package/dist/chunks/{chunk.AI3RKI3P.js → chunk.TJNOM7IR.js} +1 -1
  357. package/dist/chunks/{chunk.UO6FYSWX.js → chunk.TOXFYUP5.js} +3 -3
  358. package/dist/chunks/{chunk.UBVYU5GL.js → chunk.U5AWZEM5.js} +1 -1
  359. package/dist/chunks/{chunk.AAHDC2DF.js → chunk.U6SFJUEX.js} +1 -1
  360. package/dist/chunks/{chunk.ELOLGOFM.js → chunk.UBA2H662.js} +1 -1
  361. package/dist/chunks/{chunk.UIZ6FPK7.js → chunk.VDZUSRNI.js} +1 -1
  362. package/dist/chunks/{chunk.EJUYB3MH.js → chunk.VRUSJUXU.js} +1 -1
  363. package/dist/chunks/{chunk.C6Q4Y7HY.js → chunk.VTNFE6PI.js} +1 -1
  364. package/dist/chunks/{chunk.M5L3DDVW.js → chunk.W2GBRU2D.js} +2 -2
  365. package/dist/chunks/{chunk.NPMNFNR7.js → chunk.WEWJQ2AA.js} +2 -2
  366. package/dist/chunks/{chunk.FA4NHQF4.js → chunk.WQA4XJEW.js} +1 -1
  367. package/dist/chunks/{chunk.KNXPRETW.js → chunk.WQMUNZSA.js} +2 -2
  368. package/dist/chunks/{chunk.YYKAI7FO.js → chunk.WZBEL7FC.js} +1 -1
  369. package/dist/chunks/{chunk.IYAYPQEC.js → chunk.X3H6MOUU.js} +1 -1
  370. package/dist/chunks/{chunk.RK2WN36C.js → chunk.XBQTTKJU.js} +1 -1
  371. package/dist/chunks/{chunk.BITIOZGG.js → chunk.XCSAMBUB.js} +3 -3
  372. package/dist/chunks/{chunk.ZKBTNXGE.js → chunk.XGEWLFBF.js} +8 -8
  373. package/dist/chunks/{chunk.BEK4DVCN.js → chunk.XHZ5CCR7.js} +1 -1
  374. package/dist/chunks/{chunk.UF7CYOQ4.js → chunk.Y4KCVPIC.js} +6 -6
  375. package/dist/chunks/{chunk.V2HQ7IVJ.js → chunk.Y7UR2ZKQ.js} +8 -7
  376. package/dist/chunks/{chunk.NJQ6BFQQ.js → chunk.YPBLUIU7.js} +4 -4
  377. package/dist/chunks/{chunk.ISXV5IHB.js → chunk.Z4TGH2YA.js} +3 -3
  378. package/dist/chunks/{chunk.KUXAIXES.js → chunk.ZAYEYBAY.js} +8 -11
  379. package/dist/chunks/{chunk.SUX4XQKB.js → chunk.ZDRQOJI6.js} +4 -4
  380. package/dist/chunks/{chunk.QS7BPH3Y.js → chunk.ZSPNI52I.js} +9 -18
  381. package/dist/chunks/{chunk.NGEL5LW3.js → chunk.ZUG2HYP5.js} +3 -3
  382. package/dist/components/accordion/accordion.js +6 -6
  383. package/dist/components/accordion-group/accordion-group.js +8 -8
  384. package/dist/components/alert/alert.js +7 -7
  385. package/dist/components/avatar/avatar.js +5 -5
  386. package/dist/components/banner/banner.d.ts +36 -0
  387. package/dist/components/banner/banner.js +24 -0
  388. package/dist/components/banner/banner.styles.d.ts +2 -0
  389. package/dist/components/banner/banner.styles.js +8 -0
  390. package/dist/components/breadcrumb/breadcrumb.js +2 -2
  391. package/dist/components/breadcrumb-item/breadcrumb-item.js +6 -6
  392. package/dist/components/button/button.js +7 -7
  393. package/dist/components/calendar/calendar.js +2 -2
  394. package/dist/components/card-content/card-content.js +5 -5
  395. package/dist/components/card-nav-accordion/card-nav-accordion.js +6 -6
  396. package/dist/components/card-nav-item/card-nav-item.js +5 -5
  397. package/dist/components/checkbox/checkbox.js +11 -11
  398. package/dist/components/checkbox/checkbox.styles.js +2 -2
  399. package/dist/components/checkbox-button/checkbox-button.js +10 -10
  400. package/dist/components/checkbox-card/checkbox-card.js +8 -8
  401. package/dist/components/checkbox-group/checkbox-group.js +8 -8
  402. package/dist/components/checkbox-group/checkbox-group.styles.js +2 -2
  403. package/dist/components/combobox/combobox.js +15 -15
  404. package/dist/components/combobox/combobox.styles.js +2 -2
  405. package/dist/components/copy-button/copy-button.js +7 -7
  406. package/dist/components/dialog/dialog.js +7 -7
  407. package/dist/components/download-card/download-card.d.ts +3 -1
  408. package/dist/components/download-card/download-card.js +6 -6
  409. package/dist/components/download-card/download-card.styles.js +1 -1
  410. package/dist/components/download-link/download-link.d.ts +3 -1
  411. package/dist/components/download-link/download-link.js +6 -6
  412. package/dist/components/download-link/download-link.styles.js +1 -1
  413. package/dist/components/drawer/drawer.js +8 -8
  414. package/dist/components/drawer/drawer.styles.js +1 -1
  415. package/dist/components/dropdown/dropdown.js +2 -2
  416. package/dist/components/error-message-panel/error-message-panel.js +3 -3
  417. package/dist/components/error-message-panel/error-message-panel.styles.js +1 -1
  418. package/dist/components/error-text/error-text.js +5 -5
  419. package/dist/components/fieldset/fieldset.js +2 -2
  420. package/dist/components/fieldset/fieldset.styles.js +1 -1
  421. package/dist/components/file-upload/file-upload.js +11 -11
  422. package/dist/components/file-upload/file-upload.styles.js +2 -2
  423. package/dist/components/file-upload-item/file-upload-item.js +5 -5
  424. package/dist/components/filter-button/filter-button.js +6 -6
  425. package/dist/components/filter-counter/filter-counter.js +30 -30
  426. package/dist/components/filter-date/filter-date.js +14 -14
  427. package/dist/components/filter-range/filter-range.js +29 -29
  428. package/dist/components/filter-select/filter-select.js +30 -30
  429. package/dist/components/footer/footer.js +2 -2
  430. package/dist/components/format-bytes/format-bytes.js +2 -2
  431. package/dist/components/format-date/format-date.js +2 -2
  432. package/dist/components/format-number/format-number.js +2 -2
  433. package/dist/components/header/header.js +3 -3
  434. package/dist/components/header-modern/header-modern.js +2 -2
  435. package/dist/components/header-search/header-search.js +11 -11
  436. package/dist/components/icon/icon.js +4 -4
  437. package/dist/components/icon/library.js +2 -2
  438. package/dist/components/icon-button/icon-button.js +5 -5
  439. package/dist/components/input/input.js +24 -24
  440. package/dist/components/input-amount/input-amount.js +14 -14
  441. package/dist/components/input-amount/input-amount.styles.js +3 -3
  442. package/dist/components/input-date/input-date.js +16 -16
  443. package/dist/components/input-date/input-date.styles.js +3 -3
  444. package/dist/components/input-mask/input-mask.js +14 -14
  445. package/dist/components/input-mask/input-mask.styles.js +3 -3
  446. package/dist/components/input-native/input-native.js +14 -14
  447. package/dist/components/input-native/input-native.styles.js +3 -3
  448. package/dist/components/input-otp/input-otp.js +11 -11
  449. package/dist/components/input-otp/input-otp.styles.js +2 -2
  450. package/dist/components/input-phone/input-phone.js +19 -19
  451. package/dist/components/input-phone/input-phone.styles.js +2 -2
  452. package/dist/components/input-time/input-time.js +15 -15
  453. package/dist/components/input-time/input-time.styles.js +3 -3
  454. package/dist/components/menu-accordion/menu-accordion.js +7 -7
  455. package/dist/components/menu-item/menu-item.js +3 -3
  456. package/dist/components/menu-navigation/menu-navigation.js +5 -5
  457. package/dist/components/navbar-link/navbar-link.js +9 -9
  458. package/dist/components/navbar-menu/navbar-menu.js +6 -6
  459. package/dist/components/option/option.js +6 -6
  460. package/dist/components/pagination/pagination.js +25 -25
  461. package/dist/components/profile-button/profile-button.js +8 -8
  462. package/dist/components/progress-bar/progress-bar.js +2 -2
  463. package/dist/components/radio/radio.js +6 -6
  464. package/dist/components/radio-button/radio-button.js +10 -10
  465. package/dist/components/radio-card/radio-card.js +12 -12
  466. package/dist/components/radio-group/radio-group.js +8 -8
  467. package/dist/components/radio-group/radio-group.styles.js +2 -2
  468. package/dist/components/relative-time/relative-time.js +2 -2
  469. package/dist/components/search/search.js +8 -8
  470. package/dist/components/select/select.js +14 -14
  471. package/dist/components/select/select.styles.js +2 -2
  472. package/dist/components/sidenav/sidenav.js +7 -7
  473. package/dist/components/sidenav-info-accordion/sidenav-info-accordion.js +8 -8
  474. package/dist/components/skip-links/skip-links.js +2 -2
  475. package/dist/components/spinner/spinner.js +2 -2
  476. package/dist/components/split-panel/split-panel.js +6 -6
  477. package/dist/components/step/step.js +6 -6
  478. package/dist/components/success-text/success-text.js +5 -5
  479. package/dist/components/switch/switch.js +7 -7
  480. package/dist/components/tab/tab.js +7 -7
  481. package/dist/components/tab-group/tab-group.js +7 -7
  482. package/dist/components/table-action/table-action.d.ts +2 -0
  483. package/dist/components/table-action/table-action.js +8 -8
  484. package/dist/components/table-caption/table-caption.js +2 -2
  485. package/dist/components/table-container/table-container.js +2 -2
  486. package/dist/components/table-header-cell/table-header-cell.js +5 -5
  487. package/dist/components/table-header-row/table-header-row.js +18 -18
  488. package/dist/components/table-of-contents/table-of-contents.js +7 -7
  489. package/dist/components/table-of-contents/table-of-contents.styles.js +1 -1
  490. package/dist/components/table-row/table-row.js +14 -14
  491. package/dist/components/tag/tag.js +8 -8
  492. package/dist/components/textarea/textarea.js +9 -9
  493. package/dist/components/textarea/textarea.styles.js +2 -2
  494. package/dist/components/tooltip/tooltip.js +2 -2
  495. package/dist/components/tree/tree.js +9 -9
  496. package/dist/components/tree-item/tree-item.js +8 -8
  497. package/dist/custom-elements.json +418 -223
  498. package/dist/design-system.d.ts +1 -0
  499. package/dist/design-system.js +214 -209
  500. package/dist/internal/components/form-control/form-control-layout.js +16 -15
  501. package/dist/internal/components/input-base/input-base.js +4 -3
  502. package/dist/styles/form-control.styles.js +32 -34
  503. package/dist/templates/utilities/header.js +1 -1
  504. package/dist/templates/utilities/template-story-config.js +0 -3
  505. package/dist/themes/dsa-wc-theme.css +2 -4
  506. package/dist/themes/dsa-wc-theme.min.css +1 -1
  507. package/dist/themes/dsa-wc-theme.styles.js +2 -4
  508. package/dist/translations/en-gb.js +1 -1
  509. package/dist/translations/en.js +1 -1
  510. package/dist/translations/fr.js +1 -1
  511. package/dist/utilities/icon-library.js +2 -2
  512. package/dist/utilities/localize.d.ts +1 -0
  513. package/dist/utilities/localize.js +1 -1
  514. package/dist/utilities/storybook.js +2 -2
  515. package/dist/vscode.html-custom-data.json +53 -26
  516. package/dist/web-types.json +230 -122
  517. package/package.json +18 -18
  518. package/cdn/chunks/chunk.BBVHFT7Q.js +0 -19
  519. package/cdn/chunks/chunk.BMNZ4YMI.js +0 -60
  520. package/cdn/chunks/chunk.CCKFL63L.js +0 -31
  521. package/cdn/chunks/chunk.CUYQOZPJ.js +0 -20
  522. package/cdn/chunks/chunk.H4I7G2EQ.js +0 -3
  523. package/cdn/chunks/chunk.HCJCL2UD.js +0 -23
  524. package/cdn/chunks/chunk.LBAIMDY3.js +0 -1
  525. package/cdn/chunks/chunk.OH7GC6EG.js +0 -53
  526. package/cdn/chunks/chunk.RX76YMGL.js +0 -19
  527. package/cdn/chunks/chunk.VQCDCQ2A.js +0 -3
  528. package/cdn/chunks/chunk.VRIJXOVW.js +0 -47
  529. package/dist/chunks/{chunk.GBZY2OWL.js → chunk.BIDMVL7F.js} +3 -3
@@ -1 +1 @@
1
- var n={placeholder:"_ __ __ __ __",mask:"# ## ## ## ##",pattern:"^((\\+)33|(\\+)262|(\\+)590|(\\+)594|(\\+)596)[1-9](\\d{2}){4}$"},o={placeholder:"__ __ __ __",mask:"## ## ## ##",pattern:"^(\\+)689(\\d{2}){4}$"},r={placeholder:"__ __ __",mask:"## ## ##",pattern:"^((\\+)508|(\\+)681|(\\+)687|(\\+)689)(\\d{2}){3}$"};function t(e){switch(e){case"+508":case"+681":case"+687":return r;case"+689":return o;case"+33":case"+262":case"+590":case"+594":case"+596":default:return n}}export{t as a};
1
+ var n={placeholder:"_ __ __ __ __",mask:"# ## ## ## ##",pattern:"^((\\+)33|(\\+)262|(\\+)590|(\\+)594|(\\+)596)[1-9](\\d{2}){4}$"},o={placeholder:"__ __ __ __",mask:"## ## ## ##",pattern:"^(\\+)689(\\d{2}){4}$"},r={placeholder:"__ __ __",mask:"## ## ##",pattern:"^((\\+)508|(\\+)681|(\\+)687|(\\+)689)(\\d{2}){3}$"};function t(e){switch(e){case"+508":case"+681":case"+687":return r;case"+689":return o;default:return n}}export{t as a};
@@ -1,4 +1,4 @@
1
- import{a as U}from"./chunk.ZMRIQCNQ.js";import{a as k}from"./chunk.DBXX64Q4.js";import{a as P}from"./chunk.4XCZGVYA.js";import{a as f}from"./chunk.EFB2SY45.js";import{a as K}from"./chunk.CUYQOZPJ.js";import{a as _}from"./chunk.67UP3FZD.js";import{e as T,f as u,h as l,i as N}from"./chunk.IFSGAJQ4.js";import{a as L}from"./chunk.LYLTFAFC.js";import{a as D}from"./chunk.KLRPP4NQ.js";import{a as y,c as v}from"./chunk.HHVNQNCC.js";import{a as b,c as $}from"./chunk.TV2TMO2H.js";import{c as I}from"./chunk.LBAIMDY3.js";import{b as m}from"./chunk.QTD6NQFL.js";import{a}from"./chunk.2RF4WD6T.js";import{d as g}from"./chunk.ZBHHLRFH.js";import{a as z}from"./chunk.BWEPOOQP.js";import{a as V,b as d,c as B,d as p}from"./chunk.KBZ32KWP.js";import{a as c}from"./chunk.GP725TPQ.js";import{a as O,b as x,f as s}from"./chunk.IZ2HVRME.js";var i=class extends k{constructor(){super(...arguments);this.localize=new I(this);this.isDatepickerOpen=!1;this.hideCalendarButton=!1;this.range=!1;this.hoist=!1}get valueAsDate(){var t;return this.range?null:(t=this.inputStart)==null?void 0:t.valueAsDate}set valueAsDate(t){if(!this.range){let e=document.createElement("input");e.type="date",e.valueAsDate=t,this.value=e.value}}get valueAsNumber(){return this.range?NaN:this.inputStart.valueAsNumber}set valueAsNumber(t){this.range||(this.inputStart.valueAsNumber=t,this.value=this.inputStart.value)}get validity(){let t=this.inputStart.validity;if(this.range){let e=this.inputEnd.validity;return{badInput:t.badInput||e.badInput,customError:t.customError||e.customError,patternMismatch:t.patternMismatch||e.patternMismatch,rangeOverflow:t.rangeOverflow||e.rangeOverflow,rangeUnderflow:t.rangeUnderflow||e.rangeUnderflow,stepMismatch:t.stepMismatch||e.stepMismatch,tooLong:t.tooLong||e.tooLong,tooShort:t.tooShort||e.tooShort,typeMismatch:t.typeMismatch||e.typeMismatch,valid:t.valid&&e.valid,valueMissing:t.valueMissing||e.valueMissing}}else return t}get validationMessage(){var t;return`${this.inputStart.validationMessage}${(t=this.inputEnd)==null?void 0:t.validationMessage}`}connectedCallback(){super.connectedCallback(),this.handleDocumentFocusIn=this.handleDocumentFocusIn.bind(this),this.handleDocumentMouseDown=this.handleDocumentMouseDown.bind(this),this.shouldDisableDate=this.shouldDisableDate.bind(this)}async firstUpdated(){await this.updateComplete,this.datepickerButton&&m(this.datepickerButton.button,"aria-expanded","false"),this.formControlController.updateValidity()}addOpenListeners(){document.addEventListener("focusin",this.handleDocumentFocusIn),document.addEventListener("mousedown",this.handleDocumentMouseDown)}removeOpenListeners(){document.removeEventListener("focusin",this.handleDocumentFocusIn),document.removeEventListener("mousedown",this.handleDocumentMouseDown)}async handleSelectedDate(t){let{detail:e}=t;(!this.range||e.dates.length!==1)&&(this.value=e.dates.map(r=>T(r)).join(","),this.hideDatepicker(),await this.updateComplete,this.emit("dsa-change"))}handleDocumentFocusIn(t){let e=t.composedPath();this&&!e.includes(this)&&this.hideDatepicker()}handleDocumentMouseDown(t){let e=t.composedPath();this&&!e.includes(this)&&this.hideDatepicker()}handleInputClick(t){!this.disabled&&t.currentTarget===t.target&&this.focus()}handleDefaultKeyDown(t){this.isDatepickerOpen&&t.key==="Escape"&&(t.preventDefault(),t.stopPropagation(),this.hideDatepicker()),this.isDatepickerOpen&&t.key==="Tab"&&setTimeout(()=>{var n,h;let o=(this==null?void 0:this.getRootNode())instanceof ShadowRoot?(h=(n=document.activeElement)==null?void 0:n.shadowRoot)==null?void 0:h.activeElement:document.activeElement;(!this||(o==null?void 0:o.closest(this.tagName.toLowerCase()))!==this)&&this.hideDatepicker()});let r=t.composedPath().some(o=>o===this.datepickerButton);if(r&&(t.key==="Enter"||t.key===" ")){if(t.preventDefault(),!this.isDatepickerOpen){this.showDatepicker();return}r&&this.hideDatepicker()}}handleDateFieldKeydown(t){let e=t.metaKey||t.ctrlKey||t.shiftKey||t.altKey;t.key==="Enter"&&!e&&setTimeout(()=>{!t.defaultPrevented&&!t.isComposing&&this.formControlController.submit()})}handleChange(){let t="",e="";t=this.inputStart.value,this.range?(e=this.inputEnd.value,this.value=N(t,e)):this.value=t,this.formControlController.updateValidity()}handleDateFieldFocus(){setTimeout(()=>{this.hasFocus=!0})}handleDateFieldBlur(){this.hasFocus=!1}getFullDateFromISO(t){return u(t).toLocaleDateString(this.lang||this.localize.lang(),{year:"numeric",month:"long",day:"numeric"})}getDescriptionText(t){let e=typeof this.errorMessage=="string"?this.errorMessage:this.errorMessage.join(", "),r="";if(this.value!=="")if(t==="calendarButton"&&this.range){let n=l(this.value)[0],h=l(this.value)[1];r=`${this.localize.term("selectedDates")}${this.getFullDateFromISO(n)} - ${this.getFullDateFromISO(h)}`}else{let n="";t==="end"?n=l(this.value)[1]:n=this.range?l(this.value)[0]:this.value,r=`${this.localize.term("selectedDate")}${this.getFullDateFromISO(n)}`}return[...e.length>0&&this.error?[e]:[],...this.value?[r]:[],...this.helpText?[this.helpText]:[],...this.description?[this.description]:[]].join(", ")}shouldDisableDate(t){var o,n;let e=typeof this.min=="string"&&t<u(this.min),r=typeof this.max=="string"&&t>u(this.max);return e||r||((n=(o=this.disableDate)==null?void 0:o.call(this,t))!=null?n:!1)}updateInputsValidity(){if(this.disableDate!==void 0){let t=this.inputStart.value;if(this.disableDate(u(t))?this.inputStart.setCustomValidity(this.disabledDateError||this.localize.term(this.range?"invalidStartDate":"invalidDate")):this.inputStart.setCustomValidity(""),this.range){let e=this.inputEnd.value;this.disableDate(u(e))?this.inputEnd.setCustomValidity(this.disabledDateError||this.localize.term("invalidEndDate")):this.inputEnd.setCustomValidity("")}}}async handleOpenChange(){if(this.isDatepickerOpen){this.emit("dsa-show"),this.addOpenListeners(),await v(this),this.popup.active=!0,m(this.datepickerButton.button,"aria-expanded","true");let{keyframes:t,options:e}=$(this,"date-popup.show",{dir:this.localize.dir()});await y(this.popup.popup,t,e),this.emit("dsa-after-show")}else{this.emit("dsa-hide"),this.removeOpenListeners(),await v(this),this.popup.active=!1,m(this.datepickerButton.button,"aria-expanded","false"),this.datepickerButton.focus({preventScroll:!0});let{keyframes:t,options:e}=$(this,"date-popup.hide",{dir:this.localize.dir()});await y(this.popup.popup,t,e),this.emit("dsa-after-hide")}}async showDatepicker(){if(this.isDatepickerOpen){this.isDatepickerOpen=!1;return}return this.isDatepickerOpen=!0,await D(this,"dsa-after-show")}async hideDatepicker(){if(!this.isDatepickerOpen){this.isDatepickerOpen=!1;return}return this.isDatepickerOpen=!1,await D(this,"dsa-after-hide")}async getUpdateComplete(){let t=await super.getUpdateComplete();return await Promise.allSettled([this.inputStart.updateComplete,...this.range?[this.inputEnd.updateComplete]:[]]),t}handleLabelClick(){this.focus()}focus(t){this.inputStart.focus(t)}blur(){var t,e;this.inputStart.blur(),(t=this.inputEnd)==null||t.blur(),(e=this.datepickerButton)==null||e.blur()}stepUp(t){this.inputStart.stepUp(t),this.handleChange()}stepDown(t){this.inputStart.stepDown(t),this.handleChange()}checkValidity(){var t;return this.updateInputsValidity(),this.inputStart.checkValidity()&&(!this.range||((t=this.inputEnd)==null?void 0:t.checkValidity()))}reportValidity(){var t;return this.updateInputsValidity(),this.inputStart.reportValidity()&&(!this.range||((t=this.inputEnd)==null?void 0:t.reportValidity()))}setCustomValidity(t){this.inputStart.setCustomValidity(t),this.formControlController.updateValidity()}renderInput(){var o,n,h,w,C,S,F,E,M;let t=this.hasSlotController.test("prefix"),e=this.clearable&&!this.disabled&&!this.readonly,r=e&&(typeof this.value=="number"||this.value.length>0);return c`
1
+ import{a as U}from"./chunk.HLXIBAA3.js";import{a as k}from"./chunk.6DSY52TF.js";import{a as P}from"./chunk.BFOG2B56.js";import{a as K}from"./chunk.J34FMZ22.js";import{a as f}from"./chunk.2TZ4LFPJ.js";import{a as _}from"./chunk.Z33ITBWZ.js";import{e as T,f as u,h as l,i as N}from"./chunk.IFSGAJQ4.js";import{a as L}from"./chunk.2FPBPQUJ.js";import{a as D}from"./chunk.KLRPP4NQ.js";import{a as y,c as v}from"./chunk.HHVNQNCC.js";import{a as b,c as $}from"./chunk.TV2TMO2H.js";import{c as I}from"./chunk.Q54GPNUS.js";import{b as m}from"./chunk.QTD6NQFL.js";import{a}from"./chunk.2RF4WD6T.js";import{d as g}from"./chunk.ZBHHLRFH.js";import{a as z}from"./chunk.BWEPOOQP.js";import{a as V,b as d,c as B,d as p}from"./chunk.KBZ32KWP.js";import{a as c}from"./chunk.GP725TPQ.js";import{a as O,b as x,f as s}from"./chunk.IZ2HVRME.js";var i=class extends k{constructor(){super(...arguments);this.localize=new I(this);this.isDatepickerOpen=!1;this.hideCalendarButton=!1;this.range=!1;this.hoist=!1}get valueAsDate(){var t;return this.range?null:(t=this.inputStart)==null?void 0:t.valueAsDate}set valueAsDate(t){if(!this.range){let e=document.createElement("input");e.type="date",e.valueAsDate=t,this.value=e.value}}get valueAsNumber(){return this.range?NaN:this.inputStart.valueAsNumber}set valueAsNumber(t){this.range||(this.inputStart.valueAsNumber=t,this.value=this.inputStart.value)}get validity(){let t=this.inputStart.validity;if(this.range){let e=this.inputEnd.validity;return{badInput:t.badInput||e.badInput,customError:t.customError||e.customError,patternMismatch:t.patternMismatch||e.patternMismatch,rangeOverflow:t.rangeOverflow||e.rangeOverflow,rangeUnderflow:t.rangeUnderflow||e.rangeUnderflow,stepMismatch:t.stepMismatch||e.stepMismatch,tooLong:t.tooLong||e.tooLong,tooShort:t.tooShort||e.tooShort,typeMismatch:t.typeMismatch||e.typeMismatch,valid:t.valid&&e.valid,valueMissing:t.valueMissing||e.valueMissing}}else return t}get validationMessage(){var t;return`${this.inputStart.validationMessage}${(t=this.inputEnd)==null?void 0:t.validationMessage}`}connectedCallback(){super.connectedCallback(),this.handleDocumentFocusIn=this.handleDocumentFocusIn.bind(this),this.handleDocumentMouseDown=this.handleDocumentMouseDown.bind(this),this.shouldDisableDate=this.shouldDisableDate.bind(this)}async firstUpdated(){await this.updateComplete,this.datepickerButton&&m(this.datepickerButton.button,"aria-expanded","false"),this.formControlController.updateValidity()}addOpenListeners(){document.addEventListener("focusin",this.handleDocumentFocusIn),document.addEventListener("mousedown",this.handleDocumentMouseDown)}removeOpenListeners(){document.removeEventListener("focusin",this.handleDocumentFocusIn),document.removeEventListener("mousedown",this.handleDocumentMouseDown)}async handleSelectedDate(t){let{detail:e}=t;(!this.range||e.dates.length!==1)&&(this.value=e.dates.map(r=>T(r)).join(","),this.hideDatepicker(),await this.updateComplete,this.emit("dsa-change"))}handleDocumentFocusIn(t){let e=t.composedPath();this&&!e.includes(this)&&this.hideDatepicker()}handleDocumentMouseDown(t){let e=t.composedPath();this&&!e.includes(this)&&this.hideDatepicker()}handleInputClick(t){!this.disabled&&t.currentTarget===t.target&&this.focus()}handleDefaultKeyDown(t){this.isDatepickerOpen&&t.key==="Escape"&&(t.preventDefault(),t.stopPropagation(),this.hideDatepicker()),this.isDatepickerOpen&&t.key==="Tab"&&setTimeout(()=>{var n,h;let o=(this==null?void 0:this.getRootNode())instanceof ShadowRoot?(h=(n=document.activeElement)==null?void 0:n.shadowRoot)==null?void 0:h.activeElement:document.activeElement;(!this||(o==null?void 0:o.closest(this.tagName.toLowerCase()))!==this)&&this.hideDatepicker()});let r=t.composedPath().some(o=>o===this.datepickerButton);if(r&&(t.key==="Enter"||t.key===" ")){if(t.preventDefault(),!this.isDatepickerOpen){this.showDatepicker();return}r&&this.hideDatepicker()}}handleDateFieldKeydown(t){let e=t.metaKey||t.ctrlKey||t.shiftKey||t.altKey;t.key==="Enter"&&!e&&setTimeout(()=>{!t.defaultPrevented&&!t.isComposing&&this.formControlController.submit()})}handleChange(){let t="",e="";t=this.inputStart.value,this.range?(e=this.inputEnd.value,this.value=N(t,e)):this.value=t,this.formControlController.updateValidity()}handleDateFieldFocus(){setTimeout(()=>{this.hasFocus=!0})}handleDateFieldBlur(){this.hasFocus=!1}getFullDateFromISO(t){return u(t).toLocaleDateString(this.lang||this.localize.lang(),{year:"numeric",month:"long",day:"numeric"})}getDescriptionText(t){let e=typeof this.errorMessage=="string"?this.errorMessage:this.errorMessage.join(", "),r="";if(this.value!=="")if(t==="calendarButton"&&this.range){let n=l(this.value)[0],h=l(this.value)[1];r=`${this.localize.term("selectedDates")}${this.getFullDateFromISO(n)} - ${this.getFullDateFromISO(h)}`}else{let n="";t==="end"?n=l(this.value)[1]:n=this.range?l(this.value)[0]:this.value,r=`${this.localize.term("selectedDate")}${this.getFullDateFromISO(n)}`}return[...e.length>0&&this.error?[e]:[],...this.value?[r]:[],...this.helpText?[this.helpText]:[],...this.description?[this.description]:[]].join(", ")}shouldDisableDate(t){var o,n;let e=typeof this.min=="string"&&t<u(this.min),r=typeof this.max=="string"&&t>u(this.max);return e||r||((n=(o=this.disableDate)==null?void 0:o.call(this,t))!=null?n:!1)}updateInputsValidity(){if(this.disableDate!==void 0){let t=this.inputStart.value;if(this.disableDate(u(t))?this.inputStart.setCustomValidity(this.disabledDateError||this.localize.term(this.range?"invalidStartDate":"invalidDate")):this.inputStart.setCustomValidity(""),this.range){let e=this.inputEnd.value;this.disableDate(u(e))?this.inputEnd.setCustomValidity(this.disabledDateError||this.localize.term("invalidEndDate")):this.inputEnd.setCustomValidity("")}}}async handleOpenChange(){if(this.isDatepickerOpen){this.emit("dsa-show"),this.addOpenListeners(),await v(this),this.popup.active=!0,m(this.datepickerButton.button,"aria-expanded","true");let{keyframes:t,options:e}=$(this,"date-popup.show",{dir:this.localize.dir()});await y(this.popup.popup,t,e),this.emit("dsa-after-show")}else{this.emit("dsa-hide"),this.removeOpenListeners(),await v(this),this.popup.active=!1,m(this.datepickerButton.button,"aria-expanded","false"),this.datepickerButton.focus({preventScroll:!0});let{keyframes:t,options:e}=$(this,"date-popup.hide",{dir:this.localize.dir()});await y(this.popup.popup,t,e),this.emit("dsa-after-hide")}}async showDatepicker(){if(this.isDatepickerOpen){this.isDatepickerOpen=!1;return}return this.isDatepickerOpen=!0,await D(this,"dsa-after-show")}async hideDatepicker(){if(!this.isDatepickerOpen){this.isDatepickerOpen=!1;return}return this.isDatepickerOpen=!1,await D(this,"dsa-after-hide")}async getUpdateComplete(){let t=await super.getUpdateComplete();return await Promise.allSettled([this.inputStart.updateComplete,...this.range?[this.inputEnd.updateComplete]:[]]),t}handleLabelClick(){this.focus()}focus(t){this.inputStart.focus(t)}blur(){var t,e;this.inputStart.blur(),(t=this.inputEnd)==null||t.blur(),(e=this.datepickerButton)==null||e.blur()}stepUp(t){this.inputStart.stepUp(t),this.handleChange()}stepDown(t){this.inputStart.stepDown(t),this.handleChange()}checkValidity(){var t;return this.updateInputsValidity(),this.inputStart.checkValidity()&&(!this.range||((t=this.inputEnd)==null?void 0:t.checkValidity()))}reportValidity(){var t;return this.updateInputsValidity(),this.inputStart.reportValidity()&&(!this.range||((t=this.inputEnd)==null?void 0:t.reportValidity()))}setCustomValidity(t){this.inputStart.setCustomValidity(t),this.formControlController.updateValidity()}renderInput(){var o,n,h,w,C,S,F,E,M;let t=this.hasSlotController.test("prefix"),e=this.clearable&&!this.disabled&&!this.readonly,r=e&&(typeof this.value=="number"||this.value.length>0);return c`
2
2
  <div
3
3
  part="base"
4
4
  class=${g({input:!0,"input--date":!0,"input--small":this.size==="small","input--medium":this.size==="medium","input--large":this.size==="large","input--error":this.error,"input--success":this.success&&!this.error,"input--on-layer":this.variant==="layer","input--on-base":this.variant==="base","input--disabled":this.disabled,"input--readonly":this.readonly,"input--focused":this.hasFocus,"input--empty":!this.value,"input--no-calendar":this.hideCalendarButton,"form-control--has-prefix-icon":t})}
@@ -1,4 +1,4 @@
1
- import{a as _}from"./chunk.LYLTFAFC.js";import{a as u}from"./chunk.KLRPP4NQ.js";import{a as h,c}from"./chunk.HHVNQNCC.js";import{a as m,c as p}from"./chunk.TV2TMO2H.js";import{a as d}from"./chunk.B4KFHYLS.js";import{c as w}from"./chunk.LBAIMDY3.js";import{c as g}from"./chunk.VZAYP3SG.js";import{a as o}from"./chunk.2RF4WD6T.js";import{d as b}from"./chunk.ZBHHLRFH.js";import{a as l}from"./chunk.BWEPOOQP.js";import{a as f,b as a,d as v,f as y}from"./chunk.KBZ32KWP.js";import{a as T}from"./chunk.Z4V4DU2C.js";import{a as r}from"./chunk.GP725TPQ.js";import{f as t}from"./chunk.IZ2HVRME.js";var i=Object.assign(document.createElement("div"),{className:"dsa-toast-stack"}),e=class extends y{constructor(){super(...arguments);this.localize=new w(this);this.alertTitle="";this.title="";this.open=!1;this.closable=!1;this.variant="primary";this.size="medium";this.duration=1/0}firstUpdated(){this.base.hidden=!this.open}restartAutoHide(){clearTimeout(this.autoHideTimeout),this.open&&this.duration<1/0&&(this.autoHideTimeout=window.setTimeout(()=>this.hide(),this.duration))}handleCloseClick(){this.hide()}handleMouseMove(){this.restartAutoHide()}getPrefixIconName(){switch(this.variant){case"danger":return"report_gmailerrorred";case"neutral":return"settings";case"success":return"task_alt";case"warning":return"report_problem";default:return"info"}}getIconLabel(){switch(this.variant){case"danger":return this.localize.term("error");case"neutral":return;case"success":return this.localize.term("success");case"warning":return this.localize.term("warning");default:return this.localize.term("info")}}async handleOpenChange(){if(this.open){this.emit("dsa-show"),this.duration<1/0&&this.restartAutoHide(),await c(this.base),this.base.hidden=!1;let{keyframes:s,options:n}=p(this,"alert.show",{dir:this.localize.dir()});await h(this.base,s,n),this.emit("dsa-after-show")}else{this.emit("dsa-hide"),clearTimeout(this.autoHideTimeout),await c(this.base);let{keyframes:s,options:n}=p(this,"alert.hide",{dir:this.localize.dir()});await h(this.base,s,n),this.base.hidden=!0,this.emit("dsa-after-hide")}}handleDurationChange(){this.restartAutoHide()}async show(){if(!this.open)return this.open=!0,await u(this,"dsa-after-show")}async hide(){if(this.open)return this.open=!1,await u(this,"dsa-after-hide")}toast(){return new Promise(s=>{i.parentElement===null&&document.body.append(i),i.appendChild(this),requestAnimationFrame(()=>{this.clientWidth,this.show()}),this.addEventListener("dsa-after-hide",()=>{i.removeChild(this),s(),i.querySelector("dsa-alert")===null&&i.remove()},{once:!0})})}render(){return this.alertTitle&&!this.headerLevel&&d("<dsa-alert> requires a header-level attribute for accessibility if alert-title is set"),this.duration!==1/0&&d("The duration attribute of <dsa-alert> is deprecated and should not be used, because it can prevent some persons from accessing the alert content."),r`
1
+ import{a as _}from"./chunk.2FPBPQUJ.js";import{a as u}from"./chunk.KLRPP4NQ.js";import{a as h,c}from"./chunk.HHVNQNCC.js";import{a as m,c as p}from"./chunk.TV2TMO2H.js";import{a as d}from"./chunk.B4KFHYLS.js";import{c as w}from"./chunk.Q54GPNUS.js";import{c as g}from"./chunk.AM2ZR2Y2.js";import{a as o}from"./chunk.2RF4WD6T.js";import{d as b}from"./chunk.ZBHHLRFH.js";import{a as l}from"./chunk.BWEPOOQP.js";import{a as f,b as a,d as v,f as y}from"./chunk.KBZ32KWP.js";import{a as T}from"./chunk.Z4V4DU2C.js";import{a as r}from"./chunk.GP725TPQ.js";import{f as t}from"./chunk.IZ2HVRME.js";var i=Object.assign(document.createElement("div"),{className:"dsa-toast-stack"}),e=class extends y{constructor(){super(...arguments);this.localize=new w(this);this.alertTitle="";this.title="";this.open=!1;this.closable=!1;this.variant="primary";this.size="medium";this.duration=1/0}firstUpdated(){this.base.hidden=!this.open}restartAutoHide(){clearTimeout(this.autoHideTimeout),this.open&&this.duration<1/0&&(this.autoHideTimeout=window.setTimeout(()=>this.hide(),this.duration))}handleCloseClick(){this.hide()}handleMouseMove(){this.restartAutoHide()}getPrefixIconName(){switch(this.variant){case"danger":return"report_gmailerrorred";case"neutral":return"settings";case"success":return"task_alt";case"warning":return"report_problem";default:return"info"}}getIconLabel(){switch(this.variant){case"danger":return this.localize.term("error");case"neutral":return;case"success":return this.localize.term("success");case"warning":return this.localize.term("warning");default:return this.localize.term("info")}}async handleOpenChange(){if(this.open){this.emit("dsa-show"),this.duration<1/0&&this.restartAutoHide(),await c(this.base),this.base.hidden=!1;let{keyframes:s,options:n}=p(this,"alert.show",{dir:this.localize.dir()});await h(this.base,s,n),this.emit("dsa-after-show")}else{this.emit("dsa-hide"),clearTimeout(this.autoHideTimeout),await c(this.base);let{keyframes:s,options:n}=p(this,"alert.hide",{dir:this.localize.dir()});await h(this.base,s,n),this.base.hidden=!0,this.emit("dsa-after-hide")}}handleDurationChange(){this.restartAutoHide()}async show(){if(!this.open)return this.open=!0,await u(this,"dsa-after-show")}async hide(){if(this.open)return this.open=!1,await u(this,"dsa-after-hide")}toast(){return new Promise(s=>{i.parentElement===null&&document.body.append(i),i.appendChild(this),requestAnimationFrame(()=>{this.clientWidth,this.show()}),this.addEventListener("dsa-after-hide",()=>{i.removeChild(this),s(),i.querySelector("dsa-alert")===null&&i.remove()},{once:!0})})}render(){return this.alertTitle&&!this.headerLevel&&d("<dsa-alert> requires a header-level attribute for accessibility if alert-title is set"),this.duration!==1/0&&d("The duration attribute of <dsa-alert> is deprecated and should not be used, because it can prevent some persons from accessing the alert content."),r`
2
2
  <div aria-live="polite" aria-atomic="true" class="alert__wrapper">
3
3
  <div
4
4
  part="base"
@@ -1,4 +1,4 @@
1
- import{c as d}from"./chunk.LBAIMDY3.js";import{a as r,b as t,f as s}from"./chunk.KBZ32KWP.js";import{a as o}from"./chunk.GP725TPQ.js";import{f as i}from"./chunk.IZ2HVRME.js";var e=class extends s{constructor(){super(...arguments);this.localize=new d(this);this.date=new Date;this.hourFormat="auto"}render(){let n=new Date(this.date),h=this.hourFormat==="auto"?void 0:this.hourFormat==="12";if(!isNaN(n.getMilliseconds()))return o`
1
+ import{c as d}from"./chunk.Q54GPNUS.js";import{a as r,b as t,f as s}from"./chunk.KBZ32KWP.js";import{a as o}from"./chunk.GP725TPQ.js";import{f as i}from"./chunk.IZ2HVRME.js";var e=class extends s{constructor(){super(...arguments);this.localize=new d(this);this.date=new Date;this.hourFormat="auto"}render(){let n=new Date(this.date),h=this.hourFormat==="auto"?void 0:this.hourFormat==="12";if(!isNaN(n.getMilliseconds()))return o`
2
2
  <time datetime=${n.toISOString()}>
3
3
  ${this.localize.date(n,{weekday:this.weekday,era:this.era,year:this.year,month:this.month,day:this.day,hour:this.hour,minute:this.minute,second:this.second,timeZoneName:this.timeZoneName,timeZone:this.timeZone,hour12:h})}
4
4
  </time>
@@ -1,4 +1,4 @@
1
- import{a as C}from"./chunk.7NBAEATD.js";import{b as k,c as $}from"./chunk.FWTZS7LK.js";import{a as _}from"./chunk.LIC3WRPD.js";import{a as h,b as s}from"./chunk.FDMPUSVV.js";import{a as o}from"./chunk.NIRNX67K.js";import{c as v}from"./chunk.LBAIMDY3.js";import{c as y}from"./chunk.VZAYP3SG.js";import{a}from"./chunk.2RF4WD6T.js";import{d as p}from"./chunk.ZBHHLRFH.js";import{a as g}from"./chunk.BWEPOOQP.js";import{a as m,b as i,c as d,d as f,f as b}from"./chunk.KBZ32KWP.js";import{f as e}from"./chunk.IZ2HVRME.js";var t=class extends b{constructor(){super(...arguments);this.formControlController=new k(this,{form:r=>{if(r.hasAttribute("form")){let l=r.getRootNode(),n=r.getAttribute("form");return l.getElementById(n)}return r.closest("form")},assumeInteractionOn:["click"]});this.localize=new v(this);this.hasFocus=!1;this.invalid=!1;this.title="";this.variant="primary";this.size="medium";this.caret=!1;this.disabled=!1;this.loading=!1;this.floating=!1;this.contrasted=!1;this.toggle=!1;this.pressed=!1;this.type="button";this.name="";this.value="";this.href="";this.rel="noreferrer noopener";this.ariaLabel="";this.description=""}get validity(){return this.isButton()?this.button.validity:$}get validationMessage(){return this.isButton()?this.button.validationMessage:""}connectedCallback(){super.connectedCallback(),this.handleHostClick=this.handleHostClick.bind(this),this.addEventListener("click",this.handleHostClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleHostClick)}firstUpdated(){this.isButton()&&this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit("dsa-blur")}handleFocus(){this.hasFocus=!0,this.emit("dsa-focus")}handleClick(){this.type==="submit"&&this.formControlController.submit(this),this.type==="reset"&&this.formControlController.reset(this),this.type==="button"&&this.toggle&&(this.pressed=!this.pressed,this.emit("dsa-change"))}handleHostClick(r){(this.disabled||this.loading)&&(r.preventDefault(),r.stopImmediatePropagation())}handleInvalid(r){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(r)}getSpinnerVariant(){return this.floating?"floating":this.contrasted?"contrasted":"base"}isButton(){return!this.href}isLink(){return!!this.href}handleDisabledChange(){this.isButton()&&this.formControlController.setValidity(this.disabled)}click(){this.button.click()}focus(r){this.button.focus(r)}blur(){this.button.blur()}checkValidity(){return this.isButton()?this.button.checkValidity():!0}getForm(){return this.formControlController.getForm()}reportValidity(){return this.isButton()?this.button.reportValidity():!0}setCustomValidity(r){this.isButton()&&(this.button.setCustomValidity(r),this.formControlController.updateValidity())}render(){var c,u;let r=this.isLink(),l=this.getSpinnerVariant(),n=r?h`a`:h`button`;return s`
1
+ import{a as C}from"./chunk.FVTT4MMC.js";import{b as k,c as $}from"./chunk.FWTZS7LK.js";import{a as _}from"./chunk.LIC3WRPD.js";import{a as h,b as s}from"./chunk.FDMPUSVV.js";import{a as o}from"./chunk.NIRNX67K.js";import{c as v}from"./chunk.Q54GPNUS.js";import{c as y}from"./chunk.AM2ZR2Y2.js";import{a}from"./chunk.2RF4WD6T.js";import{d as p}from"./chunk.ZBHHLRFH.js";import{a as g}from"./chunk.BWEPOOQP.js";import{a as m,b as i,c as d,d as f,f as b}from"./chunk.KBZ32KWP.js";import{f as e}from"./chunk.IZ2HVRME.js";var t=class extends b{constructor(){super(...arguments);this.formControlController=new k(this,{form:r=>{if(r.hasAttribute("form")){let l=r.getRootNode(),n=r.getAttribute("form");return l.getElementById(n)}return r.closest("form")},assumeInteractionOn:["click"]});this.localize=new v(this);this.hasFocus=!1;this.invalid=!1;this.title="";this.variant="primary";this.size="medium";this.caret=!1;this.disabled=!1;this.loading=!1;this.floating=!1;this.contrasted=!1;this.toggle=!1;this.pressed=!1;this.type="button";this.name="";this.value="";this.href="";this.rel="noreferrer noopener";this.ariaLabel="";this.description=""}get validity(){return this.isButton()?this.button.validity:$}get validationMessage(){return this.isButton()?this.button.validationMessage:""}connectedCallback(){super.connectedCallback(),this.handleHostClick=this.handleHostClick.bind(this),this.addEventListener("click",this.handleHostClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleHostClick)}firstUpdated(){this.isButton()&&this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit("dsa-blur")}handleFocus(){this.hasFocus=!0,this.emit("dsa-focus")}handleClick(){this.type==="submit"&&this.formControlController.submit(this),this.type==="reset"&&this.formControlController.reset(this),this.type==="button"&&this.toggle&&(this.pressed=!this.pressed,this.emit("dsa-change"))}handleHostClick(r){(this.disabled||this.loading)&&(r.preventDefault(),r.stopImmediatePropagation())}handleInvalid(r){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(r)}getSpinnerVariant(){return this.floating?"floating":this.contrasted?"contrasted":"base"}isButton(){return!this.href}isLink(){return!!this.href}handleDisabledChange(){this.isButton()&&this.formControlController.setValidity(this.disabled)}click(){this.button.click()}focus(r){this.button.focus(r)}blur(){this.button.blur()}checkValidity(){return this.isButton()?this.button.checkValidity():!0}getForm(){return this.formControlController.getForm()}reportValidity(){return this.isButton()?this.button.reportValidity():!0}setCustomValidity(r){this.isButton()&&(this.button.setCustomValidity(r),this.formControlController.updateValidity())}render(){var c,u;let r=this.isLink(),l=this.getSpinnerVariant(),n=r?h`a`:h`button`;return s`
2
2
  <${n}
3
3
  part="base"
4
4
  class=${p({button:!0,"button--on-base":!this.floating,"button--on-floating-menu":this.floating,"button--on-contrasted-menu":this.contrasted,"button--navigation":this.variant==="navigation","button--primary":this.variant==="primary","button--secondary":this.variant==="secondary","button--tertiary":this.variant==="tertiary"||this.variant==="tertiary-with-outline","button--tertiary-with-outline":this.variant==="tertiary-with-outline","button--neutral":this.variant==="neutral","button--danger":this.variant==="danger","button--small":this.size==="small","button--medium":this.size==="medium","button--large":this.size==="large","button--caret":this.caret,"button--toggle":this.toggle,"button--pressed":this.toggle&&this.pressed,"button--disabled":this.disabled,"button--focused":this.hasFocus,"button--loading":this.loading,"button--rtl":this.localize.dir()==="rtl"})}
@@ -1,4 +1,4 @@
1
- import{a as m}from"./chunk.SWSURKR7.js";import{c as i}from"./chunk.VZAYP3SG.js";import{d as a}from"./chunk.ZBHHLRFH.js";import{a as o,b as s,f as l}from"./chunk.KBZ32KWP.js";import{a as r}from"./chunk.GP725TPQ.js";import{f as e}from"./chunk.IZ2HVRME.js";var t=class extends l{constructor(){super(...arguments);this.variant="base"}render(){return r`<div
1
+ import{a as m}from"./chunk.SWSURKR7.js";import{c as i}from"./chunk.AM2ZR2Y2.js";import{d as a}from"./chunk.ZBHHLRFH.js";import{a as o,b as s,f as l}from"./chunk.KBZ32KWP.js";import{a as r}from"./chunk.GP725TPQ.js";import{f as e}from"./chunk.IZ2HVRME.js";var t=class extends l{constructor(){super(...arguments);this.variant="base"}render(){return r`<div
2
2
  class=${a({"error-text":!0,"error-text--on-floating":this.variant==="floating"})}
3
3
  >
4
4
  <dsa-icon
@@ -1,4 +1,4 @@
1
- import{a as A}from"./chunk.OFITABL5.js";import{a as S}from"./chunk.FNWVRCNG.js";import{a as f}from"./chunk.PIG773U2.js";import{a as p}from"./chunk.ELL45QD3.js";import{c as m}from"./chunk.LBAIMDY3.js";import{b as o,c as s}from"./chunk.QTD6NQFL.js";import{d as b}from"./chunk.ZBHHLRFH.js";import{a as i}from"./chunk.BWEPOOQP.js";import{a as h,b as c}from"./chunk.KBZ32KWP.js";import{a as r}from"./chunk.GP725TPQ.js";import{f as l}from"./chunk.IZ2HVRME.js";var a=class extends S{constructor(){super(...arguments);this.hasSlotController=new p(this,"toolbar");this.localize=new m(this);this.showTableActions=!1}getActionBarAndToolbar(){return{actionBar:this.querySelector("dsa-table-action"),toolbar:this.querySelector("dsa-table-toolbar")}}getLoadingTargets(){return[this.querySelector("dsa-table-caption"),this.querySelector("dsa-table-head"),this.querySelector("dsa-table-body"),this.querySelector("dsa-pagination")]}connectedCallback(){super.connectedCallback(),this.handleTableSelection=this.handleTableSelection.bind(this),this.handleTableActionsClose=this.handleTableActionsClose.bind(this),this.addEventListener("dsa-table-row-all-selected",this.handleTableSelection),this.addEventListener("dsa-table-row-selected",this.handleTableSelection),this.addEventListener("dsa-table-actions-close",this.handleTableActionsClose)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("dsa-table-row-all-selected",this.handleTableSelection),this.removeEventListener("dsa-table-row-selected",this.handleTableSelection),this.removeEventListener("dsa-table-actions-close",this.handleTableActionsClose)}handleTableActionsClose(){this.showTableActions=!1;let t=this.querySelector("dsa-table-action"),e=this.querySelector("dsa-table-header-row");t&&e&&t.deselectAllOnClose&&([...this.querySelectorAll("dsa-table-row")].forEach(d=>{d.selected&&(d.selected=!1)}),e.checkbox.checked&&(e.checkbox.checked=!1),e.checkbox.indeterminate&&(e.checkbox.indeterminate=!1),e.selected&&(e.selected=!1))}handleTableSelection(t){this.showTableActions=t.detail.selectedRows.length>0}handleCaptionSlotChange(){this.linkCaptionAndTable()}handleTableSlotChange(){this.linkCaptionAndTable()}linkCaptionAndTable(){let t=this.querySelector("dsa-table-caption"),e=this.querySelector("dsa-table");if(!t||!e||t.id||e.getAttribute("aria-labelledby"))return;let n=Math.floor(Math.random()*999999999).toString();o(t,"id",n),o(e,"aria-labelledby",n)}handleShowTableActions(){let{actionBar:t,toolbar:e}=this.getActionBarAndToolbar();t!==null&&(this.showTableActions?o(t,"show","true"):s(t,"show")),e!==null&&(this.showTableActions?(o(e,"tabindex","-1"),o(e,"aria-hidden","true")):(s(e,"tabindex"),s(e,"aria-hidden")))}handleLoading(){let t=this.getLoadingTargets();this.loading?t.forEach(e=>{e&&o(e,"loading","true")}):t.forEach(e=>{e&&s(e,"loading")})}handleSkeletonEffectChange(){this.getLoadingTargets().forEach(e=>{e&&o(e,"skeleton-effect",this.skeletonEffect)})}render(){var n;let t=this.hasSlotController.test("toolbar"),e=this.hasSlotController.test("action");return r`
1
+ import{a as A}from"./chunk.OFITABL5.js";import{a as S}from"./chunk.FNWVRCNG.js";import{a as f}from"./chunk.PIG773U2.js";import{a as p}from"./chunk.ELL45QD3.js";import{c as m}from"./chunk.Q54GPNUS.js";import{b as o,c as s}from"./chunk.QTD6NQFL.js";import{d as b}from"./chunk.ZBHHLRFH.js";import{a as i}from"./chunk.BWEPOOQP.js";import{a as h,b as c}from"./chunk.KBZ32KWP.js";import{a as r}from"./chunk.GP725TPQ.js";import{f as l}from"./chunk.IZ2HVRME.js";var a=class extends S{constructor(){super(...arguments);this.hasSlotController=new p(this,"toolbar");this.localize=new m(this);this.showTableActions=!1}getActionBarAndToolbar(){return{actionBar:this.querySelector("dsa-table-action"),toolbar:this.querySelector("dsa-table-toolbar")}}getLoadingTargets(){return[this.querySelector("dsa-table-caption"),this.querySelector("dsa-table-head"),this.querySelector("dsa-table-body"),this.querySelector("dsa-pagination")]}connectedCallback(){super.connectedCallback(),this.handleTableSelection=this.handleTableSelection.bind(this),this.handleTableActionsClose=this.handleTableActionsClose.bind(this),this.addEventListener("dsa-table-row-all-selected",this.handleTableSelection),this.addEventListener("dsa-table-row-selected",this.handleTableSelection),this.addEventListener("dsa-table-actions-close",this.handleTableActionsClose)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("dsa-table-row-all-selected",this.handleTableSelection),this.removeEventListener("dsa-table-row-selected",this.handleTableSelection),this.removeEventListener("dsa-table-actions-close",this.handleTableActionsClose)}handleTableActionsClose(){this.showTableActions=!1;let t=this.querySelector("dsa-table-action"),e=this.querySelector("dsa-table-header-row");t&&e&&t.deselectAllOnClose&&([...this.querySelectorAll("dsa-table-row")].forEach(d=>{d.selected&&(d.selected=!1)}),e.checkbox.checked&&(e.checkbox.checked=!1),e.checkbox.indeterminate&&(e.checkbox.indeterminate=!1),e.selected&&(e.selected=!1))}handleTableSelection(t){this.showTableActions=t.detail.selectedRows.length>0}handleCaptionSlotChange(){this.linkCaptionAndTable()}handleTableSlotChange(){this.linkCaptionAndTable()}linkCaptionAndTable(){let t=this.querySelector("dsa-table-caption"),e=this.querySelector("dsa-table");if(!t||!e||t.id||e.getAttribute("aria-labelledby"))return;let n=Math.floor(Math.random()*999999999).toString();o(t,"id",n),o(e,"aria-labelledby",n)}handleShowTableActions(){let{actionBar:t,toolbar:e}=this.getActionBarAndToolbar();t!==null&&(this.showTableActions?o(t,"show","true"):s(t,"show")),e!==null&&(this.showTableActions?(o(e,"tabindex","-1"),o(e,"aria-hidden","true")):(s(e,"tabindex"),s(e,"aria-hidden")))}handleLoading(){let t=this.getLoadingTargets();this.loading?t.forEach(e=>{e&&o(e,"loading","true")}):t.forEach(e=>{e&&s(e,"loading")})}handleSkeletonEffectChange(){this.getLoadingTargets().forEach(e=>{e&&o(e,"skeleton-effect",this.skeletonEffect)})}render(){var n;let t=this.hasSlotController.test("toolbar"),e=this.hasSlotController.test("action");return r`
2
2
  <slot
3
3
  part="caption"
4
4
  class="slot-caption"
@@ -0,0 +1,17 @@
1
+ import{a as h}from"./chunk.2V4YCZ2W.js";import{c as p}from"./chunk.AM2ZR2Y2.js";import{a,b as i,f as c}from"./chunk.KBZ32KWP.js";import{a as s,e as m}from"./chunk.GP725TPQ.js";import{f as e}from"./chunk.IZ2HVRME.js";var t=class extends c{constructor(){super(...arguments);this.href="";this.cachedDocumentInfo=""}willUpdate(r){var o,n;(r.has("format")||r.has("documentSize"))&&(this.cachedDocumentInfo=this.format&&this.documentSize?`${this.format} - ${this.documentSize}`:((o=this.format)!=null?o:"")+((n=this.documentSize)!=null?n:""))}handleFocus(){this.emit("dsa-focus")}handleBlur(){this.emit("dsa-blur")}render(){return s`
2
+ <a
3
+ part="link"
4
+ download=${this.filename}
5
+ href=${this.href}
6
+ @focus=${this.handleFocus}
7
+ @blur=${this.handleBlur}
8
+ >
9
+ <slot name="image" part="image"></slot>
10
+ <div part="content">
11
+ <slot></slot>
12
+ ${this.description?s` <p part="description">${this.description}</p> `:m}
13
+ <p part="document-info">${this.cachedDocumentInfo}</p>
14
+ </div>
15
+ <dsa-icon part="icon" name="download" library="system"></dsa-icon>
16
+ </a>
17
+ `}};t.styles=h,t.dependencies={"dsa-icon":p},e([i()],t.prototype,"href",2),e([i()],t.prototype,"description",2),e([i()],t.prototype,"format",2),e([i({attribute:"documentsize"})],t.prototype,"documentSize",2),e([i()],t.prototype,"filename",2),t=e([a("dsa-download-card")],t);export{t as a};
@@ -1,4 +1,4 @@
1
- import{a as m}from"./chunk.S4UDOENW.js";import{a as i}from"./chunk.ODH67RGS.js";import{a as c}from"./chunk.EV7HZRUS.js";import{c as n}from"./chunk.LBAIMDY3.js";import{c as d}from"./chunk.VZAYP3SG.js";import{a as s,b as l,d as r,f as a}from"./chunk.KBZ32KWP.js";import{a as o}from"./chunk.GP725TPQ.js";import{f as t}from"./chunk.IZ2HVRME.js";var e=class extends a{constructor(){super(...arguments);this.localize=new n(this);this.show=!1;this.deselectAllOnClose=!1}handleClose(){this.emit("dsa-table-actions-close"),this.show=!1}render(){return o`
1
+ import{a as m}from"./chunk.S4UDOENW.js";import{a as i}from"./chunk.ODH67RGS.js";import{a as c}from"./chunk.W6E7LGND.js";import{c as n}from"./chunk.Q54GPNUS.js";import{c as d}from"./chunk.AM2ZR2Y2.js";import{a as s,b as l,d as a,f as r}from"./chunk.KBZ32KWP.js";import{a as o}from"./chunk.GP725TPQ.js";import{f as t}from"./chunk.IZ2HVRME.js";var e=class extends r{constructor(){super(...arguments);this.localize=new n(this);this.show=!1;this.deselectAllOnClose=!1;this.buttonLabel=""}handleClose(){this.emit("dsa-table-actions-close"),this.show=!1}render(){return o`
2
2
  <slot class="label" name="label"></slot>
3
3
  <slot class="action"></slot>
4
4
  <dsa-divider vertical></dsa-divider>
@@ -9,6 +9,6 @@ import{a as m}from"./chunk.S4UDOENW.js";import{a as i}from"./chunk.ODH67RGS.js";
9
9
  @click=${this.handleClose}
10
10
  >
11
11
  <dsa-icon slot="prefix" name="close" library="system"></dsa-icon>
12
- ${this.deselectAllOnClose?this.localize.term("deselectAll"):this.localize.term("close")}
12
+ ${this.buttonLabel||(this.deselectAllOnClose?this.localize.term("deselectAll"):this.localize.term("close"))}
13
13
  </dsa-button>
14
- `}};e.styles=m,e.dependencies={"dsa-button":c,"dsa-divider":i,"dsa-icon":d},t([r("#closeButton")],e.prototype,"closeButton",2),t([l({type:Boolean,reflect:!0})],e.prototype,"show",2),t([l({type:Boolean,attribute:"deselect-all-on-close"})],e.prototype,"deselectAllOnClose",2),e=t([s("dsa-table-action")],e);export{e as a};
14
+ `}};e.styles=m,e.dependencies={"dsa-button":c,"dsa-divider":i,"dsa-icon":d},t([a("#closeButton")],e.prototype,"closeButton",2),t([l({type:Boolean,reflect:!0})],e.prototype,"show",2),t([l({type:Boolean,attribute:"deselect-all-on-close"})],e.prototype,"deselectAllOnClose",2),t([l({attribute:"button-label"})],e.prototype,"buttonLabel",2),e=t([s("dsa-table-action")],e);export{e as a};
@@ -1,4 +1,4 @@
1
- import{a as A}from"./chunk.I5IBJET7.js";import{a as d}from"./chunk.XHVUNCDG.js";import{a as T}from"./chunk.FC4RDJJF.js";import{a as g}from"./chunk.BWEPOOQP.js";import{a as p,b as u,d as I,f as b}from"./chunk.KBZ32KWP.js";import{a as f}from"./chunk.GP725TPQ.js";import{f as c}from"./chunk.IZ2HVRME.js";function S(h,m=!1){function e(s){let i=s.getChildrenItems({includeDisabled:!1});if(i.length){let l=i.every(r=>r.selected),a=i.every(r=>!r.selected&&!r.indeterminate);s.selected=l,s.indeterminate=!l&&!a}}function n(s){let i=s.parentElement;d.isTreeItem(i)&&(e(i),n(i))}function t(s){for(let i of s.getChildrenItems())i.selected=m?s.selected||i.selected:!i.disabled&&s.selected,t(i);m&&e(s)}t(h),n(h)}var o=class extends b{constructor(){super(...arguments);this.selection="single";this.disableCheckboxSync=!1;this.clickTarget=null;this.initTreeItem=e=>{e.selectable=this.selection==="multiple",this.selection==="parent"&&e.isLeaf&&e.setAttribute("aria-disabled","true")}}async connectedCallback(){super.connectedCallback(),this.handleTreeChanged=this.handleTreeChanged.bind(this),this.handleFocusIn=this.handleFocusIn.bind(this),this.handleFocusOut=this.handleFocusOut.bind(this),this.setAttribute("role","tree"),this.setAttribute("tabindex","0"),this.addEventListener("focusin",this.handleFocusIn),this.addEventListener("focusout",this.handleFocusOut),this.addEventListener("dsa-lazy-change",this.handleSlotChange),await this.updateComplete,this.mutationObserver=new MutationObserver(this.handleTreeChanged),this.mutationObserver.observe(this,{childList:!0,subtree:!0})}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver.disconnect(),this.removeEventListener("focusin",this.handleFocusIn),this.removeEventListener("focusout",this.handleFocusOut),this.removeEventListener("dsa-lazy-change",this.handleSlotChange)}handleTreeChanged(e){for(let n of e){let t=[...n.addedNodes].filter(d.isTreeItem),s=[...n.removedNodes].filter(d.isTreeItem);t.forEach(this.initTreeItem),s.includes(this.lastFocusedItem)&&this.focusItem(this.getFocusableItems()[0])}}selectItem(e){var s;let n=[...this.selectedItems];if(this.selection==="multiple")e.selected=!e.selected,e.lazy&&(e.expanded=!0),this.disableCheckboxSync||S(e);else if(this.selection==="single"||this.selection==="leaf"&&e.isLeaf||this.selection==="parent"&&!e.isLeaf){let i=this.getAllTreeItems();for(let l of i)l.selected=l===e}else if(this.selection==="leaf"&&!e.isLeaf)e.expanded=!e.expanded;else if(this.selection==="parent"&&e.isLeaf){let i=(s=e.parentElement)==null?void 0:s.closest("[role=treeitem]");if(i){let l=this.getAllTreeItems();for(let a of l)a.selected=a===i}}let t=this.selectedItems;(n.length!==t.length||t.some(i=>!n.includes(i)))&&Promise.all(t.map(i=>i.updateComplete)).then(()=>{this.emit("dsa-selection-change",{detail:{selection:t}})})}getAllTreeItems(){return[...this.querySelectorAll("dsa-tree-item")]}focusItem(e){e==null||e.focus()}handleKeyDown(e){if(!["ArrowDown","ArrowUp","ArrowRight","ArrowLeft","Home","End","Enter"," "].includes(e.key))return;let n=this.getFocusableItems();if(n.length>0){e.preventDefault();let t=n.findIndex(a=>a.matches(":focus")),s=n[t],i=a=>{let r=n[T(a,0,n.length-1)];this.focusItem(r)},l=a=>{s.expanded=a};e.key==="ArrowDown"?i(t+1):e.key==="ArrowUp"?i(t-1):e.key==="ArrowRight"?!s||s.disabled||s.expanded||s.isLeaf&&!s.lazy?i(t+1):l(!0):e.key==="ArrowLeft"?!s||s.disabled||s.isLeaf||!s.expanded?i(t-1):l(!1):e.key==="Home"?i(0):e.key==="End"?i(n.length-1):(e.key==="Enter"||e.key===" ")&&(s.disabled||this.selectItem(s))}}handleClick(e){let n=e.target,t=n.closest("dsa-tree-item"),s=e.composedPath().some(i=>{var l;return(l=i==null?void 0:i.classList)==null?void 0:l.contains("tree-item__expand-button")});!t||t.disabled||n!==this.clickTarget||(s?t.expanded=!t.expanded:this.selectItem(t))}handleMouseDown(e){this.clickTarget=e.target}handleFocusOut(e){let n=e.relatedTarget;(!n||!this.contains(n))&&(this.tabIndex=0)}handleFocusIn(e){let n=e.target;e.target===this&&this.focusItem(this.lastFocusedItem||this.getAllTreeItems()[0]),d.isTreeItem(n)&&!n.disabled&&(this.lastFocusedItem&&(this.lastFocusedItem.tabIndex=-1),this.lastFocusedItem=n,this.tabIndex=-1,n.tabIndex=0)}handleSlotChange(){customElements.get("dsa-tree-item")?this.getAllTreeItems().forEach(this.initTreeItem):customElements.whenDefined("dsa-tree-item").then(()=>this.handleSlotChange())}async handleSelectionChange(){let e=this.selection==="multiple",n=this.getAllTreeItems();this.setAttribute("aria-multiselectable",e?"true":"false");for(let t of n)t.selectable=e,t.setAttribute("aria-disabled",t.disabled||(t.isLeaf&&this.selection)==="parent"?"true":"false");e&&!this.disableCheckboxSync&&(await this.updateComplete,[...this.querySelectorAll(":scope > dsa-tree-item")].forEach(t=>{t instanceof d&&S(t,!0)}))}get selectedItems(){let e=this.getAllTreeItems(),n=t=>t.selected;return e.filter(n)}getFocusableItems(){let e=this.getAllTreeItems(),n=new Set;return e.filter(t=>{var i;if(t.disabled)return!1;let s=(i=t.parentElement)==null?void 0:i.closest("[role=treeitem]");return s&&(!s.expanded||s.loading||n.has(s))&&n.add(t),!n.has(t)})}render(){return f`
1
+ import{a as d}from"./chunk.LCXOBOTQ.js";import{a as A}from"./chunk.I5IBJET7.js";import{a as T}from"./chunk.FC4RDJJF.js";import{a as g}from"./chunk.BWEPOOQP.js";import{a as p,b as u,d as I,f as b}from"./chunk.KBZ32KWP.js";import{a as f}from"./chunk.GP725TPQ.js";import{f as c}from"./chunk.IZ2HVRME.js";function S(h,m=!1){function e(s){let i=s.getChildrenItems({includeDisabled:!1});if(i.length){let l=i.every(r=>r.selected),a=i.every(r=>!r.selected&&!r.indeterminate);s.selected=l,s.indeterminate=!l&&!a}}function n(s){let i=s.parentElement;d.isTreeItem(i)&&(e(i),n(i))}function t(s){for(let i of s.getChildrenItems())i.selected=m?s.selected||i.selected:!i.disabled&&s.selected,t(i);m&&e(s)}t(h),n(h)}var o=class extends b{constructor(){super(...arguments);this.selection="single";this.disableCheckboxSync=!1;this.clickTarget=null;this.initTreeItem=e=>{e.selectable=this.selection==="multiple",this.selection==="parent"&&e.isLeaf&&e.setAttribute("aria-disabled","true")}}async connectedCallback(){super.connectedCallback(),this.handleTreeChanged=this.handleTreeChanged.bind(this),this.handleFocusIn=this.handleFocusIn.bind(this),this.handleFocusOut=this.handleFocusOut.bind(this),this.setAttribute("role","tree"),this.setAttribute("tabindex","0"),this.addEventListener("focusin",this.handleFocusIn),this.addEventListener("focusout",this.handleFocusOut),this.addEventListener("dsa-lazy-change",this.handleSlotChange),await this.updateComplete,this.mutationObserver=new MutationObserver(this.handleTreeChanged),this.mutationObserver.observe(this,{childList:!0,subtree:!0})}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver.disconnect(),this.removeEventListener("focusin",this.handleFocusIn),this.removeEventListener("focusout",this.handleFocusOut),this.removeEventListener("dsa-lazy-change",this.handleSlotChange)}handleTreeChanged(e){for(let n of e){let t=[...n.addedNodes].filter(d.isTreeItem),s=[...n.removedNodes].filter(d.isTreeItem);t.forEach(this.initTreeItem),s.includes(this.lastFocusedItem)&&this.focusItem(this.getFocusableItems()[0])}}selectItem(e){var s;let n=[...this.selectedItems];if(this.selection==="multiple")e.selected=!e.selected,e.lazy&&(e.expanded=!0),this.disableCheckboxSync||S(e);else if(this.selection==="single"||this.selection==="leaf"&&e.isLeaf||this.selection==="parent"&&!e.isLeaf){let i=this.getAllTreeItems();for(let l of i)l.selected=l===e}else if(this.selection==="leaf"&&!e.isLeaf)e.expanded=!e.expanded;else if(this.selection==="parent"&&e.isLeaf){let i=(s=e.parentElement)==null?void 0:s.closest("[role=treeitem]");if(i){let l=this.getAllTreeItems();for(let a of l)a.selected=a===i}}let t=this.selectedItems;(n.length!==t.length||t.some(i=>!n.includes(i)))&&Promise.all(t.map(i=>i.updateComplete)).then(()=>{this.emit("dsa-selection-change",{detail:{selection:t}})})}getAllTreeItems(){return[...this.querySelectorAll("dsa-tree-item")]}focusItem(e){e==null||e.focus()}handleKeyDown(e){if(!["ArrowDown","ArrowUp","ArrowRight","ArrowLeft","Home","End","Enter"," "].includes(e.key))return;let n=this.getFocusableItems();if(n.length>0){e.preventDefault();let t=n.findIndex(a=>a.matches(":focus")),s=n[t],i=a=>{let r=n[T(a,0,n.length-1)];this.focusItem(r)},l=a=>{s.expanded=a};e.key==="ArrowDown"?i(t+1):e.key==="ArrowUp"?i(t-1):e.key==="ArrowRight"?!s||s.disabled||s.expanded||s.isLeaf&&!s.lazy?i(t+1):l(!0):e.key==="ArrowLeft"?!s||s.disabled||s.isLeaf||!s.expanded?i(t-1):l(!1):e.key==="Home"?i(0):e.key==="End"?i(n.length-1):(e.key==="Enter"||e.key===" ")&&(s.disabled||this.selectItem(s))}}handleClick(e){let n=e.target,t=n.closest("dsa-tree-item"),s=e.composedPath().some(i=>{var l;return(l=i==null?void 0:i.classList)==null?void 0:l.contains("tree-item__expand-button")});!t||t.disabled||n!==this.clickTarget||(s?t.expanded=!t.expanded:this.selectItem(t))}handleMouseDown(e){this.clickTarget=e.target}handleFocusOut(e){let n=e.relatedTarget;(!n||!this.contains(n))&&(this.tabIndex=0)}handleFocusIn(e){let n=e.target;e.target===this&&this.focusItem(this.lastFocusedItem||this.getAllTreeItems()[0]),d.isTreeItem(n)&&!n.disabled&&(this.lastFocusedItem&&(this.lastFocusedItem.tabIndex=-1),this.lastFocusedItem=n,this.tabIndex=-1,n.tabIndex=0)}handleSlotChange(){customElements.get("dsa-tree-item")?this.getAllTreeItems().forEach(this.initTreeItem):customElements.whenDefined("dsa-tree-item").then(()=>this.handleSlotChange())}async handleSelectionChange(){let e=this.selection==="multiple",n=this.getAllTreeItems();this.setAttribute("aria-multiselectable",e?"true":"false");for(let t of n)t.selectable=e,t.setAttribute("aria-disabled",t.disabled||(t.isLeaf&&this.selection)==="parent"?"true":"false");e&&!this.disableCheckboxSync&&(await this.updateComplete,[...this.querySelectorAll(":scope > dsa-tree-item")].forEach(t=>{t instanceof d&&S(t,!0)}))}get selectedItems(){let e=this.getAllTreeItems(),n=t=>t.selected;return e.filter(n)}getFocusableItems(){let e=this.getAllTreeItems(),n=new Set;return e.filter(t=>{var i;if(t.disabled)return!1;let s=(i=t.parentElement)==null?void 0:i.closest("[role=treeitem]");return s&&(!s.expanded||s.loading||n.has(s))&&n.add(t),!n.has(t)})}render(){return f`
2
2
  <div
3
3
  part="base"
4
4
  class="tree"
@@ -1,4 +1,4 @@
1
- import{a as r}from"./chunk.KHGWE5IX.js";import{a as t}from"./chunk.UMC4I57R.js";import{a as o}from"./chunk.6G2FNLAV.js";var s=o`
1
+ import{a as r}from"./chunk.ALIA5R6V.js";import{a as t}from"./chunk.UMC4I57R.js";import{a as o}from"./chunk.6G2FNLAV.js";var s=o`
2
2
  ${t}
3
3
  ${r}
4
4
 
@@ -1,4 +1,4 @@
1
- import{a as C}from"./chunk.FEPCSTZT.js";import{a as N,b as T}from"./chunk.ZA2UO7BF.js";import{a as m}from"./chunk.76OQZSVD.js";import{a as U}from"./chunk.S47ZNKH7.js";import{d as o,e as v,f as L,g as S,h as z}from"./chunk.WDYFEO2Q.js";import{a as y}from"./chunk.DBXX64Q4.js";import{a as g}from"./chunk.EFB2SY45.js";import{a as E}from"./chunk.ZZBJJF7J.js";import{a as M}from"./chunk.LYLTFAFC.js";import{a as c}from"./chunk.NIRNX67K.js";import{b as w}from"./chunk.HJGLYEWV.js";import{c as F}from"./chunk.VZAYP3SG.js";import{a}from"./chunk.2RF4WD6T.js";import{d}from"./chunk.ZBHHLRFH.js";import{a as p}from"./chunk.BWEPOOQP.js";import{a as _,b as h,c as l,d as b}from"./chunk.KBZ32KWP.js";import{a as u}from"./chunk.GP725TPQ.js";import{a as k,b as V,f as s}from"./chunk.IZ2HVRME.js";var $=m("+33"),i=class extends y{constructor(){super(...arguments);this.localize=new w(this);this.phonePattern=new RegExp($.pattern);this.placeholderLength=o($.placeholder).length;this.maskedNumber="";this.phoneConfig=$;this.placeholder=this.phoneConfig.placeholder;this.pattern=this.phoneConfig.pattern;this._isSyncing=!1;this.value="";this.phonePrefix="+33";this.phoneNumber="";this.inputPrefix="";this.placement="bottom-start"}get validity(){let e=this.phoneNumber.length>0?this.phonePattern.test(this.value):void 0;return S(this.input.validity,e)}connectedCallback(){super.connectedCallback(),this.defaultValue=this.value,this.setPhoneFromValue(this.value),this.syncMaskedNumber()}willUpdate(e){e.has("phonePrefix")&&!N.includes(this.phonePrefix)&&(this.phonePrefix=e.get("phonePrefix"))}syncMaskedNumber(){let e=v(this.phoneNumber,this.placeholder);this.maskedNumber!==e&&(this.maskedNumber=e),this.input&&this.input.value!==e&&(this.input.value=e)}handleInputValueChange(){let e=this.input,t=o(e.value),r=L(t,this.phoneConfig.mask),n=v(r,this.placeholder);this.phoneNumber===r&&this.maskedNumber===n&&e.value===n||(this.phoneNumber=r,this.maskedNumber=n,e.value!==n&&(e.value=n),this.updateValue(),this.formControlController.updateValidity(),this.emit("dsa-input"))}handlePhonePrefixSelectChange(e){e.stopPropagation();let{target:t}=e;t instanceof C&&(this.phonePrefix=t.value,this.updateValue(),this.emit("dsa-change"))}handleInputChange(e){let{target:t}=e;if(t instanceof HTMLInputElement){let r=o(t.value);this.phoneNumber=r,this.updateValue(),this.emit("dsa-change")}}handleClearIconClick(e){this.phonePrefix="+33",this.applyPhoneConfig(this.phonePrefix),this.phoneNumber="",this.maskedNumber="",this.value="",this.input.value!==""&&(this.input.value=""),this.emit("dsa-clear"),this.emit("dsa-input"),this.emit("dsa-change"),this.input.focus(),e.stopPropagation()}updateValue(){this._isSyncing||(this._isSyncing=!0,this.phoneNumber.length===0?this.value="":this.value=`${this.phonePrefix}${this.phoneNumber.substring(0,this.placeholderLength)}`,this._isSyncing=!1)}applyPhoneConfig(e){this.phoneConfig=m(e),this.placeholder=this.phoneConfig.placeholder,this.pattern=this.phoneConfig.pattern,this.placeholderLength=o(this.placeholder).length,this.phonePattern=new RegExp(this.pattern)}getPhonePrefixFromValue(e){for(let t of N)if(e.startsWith(t))return t;return"+33"}setPhoneFromValue(e){if(e===""){this.phonePrefix="+33",this.applyPhoneConfig(this.phonePrefix),this.phoneNumber="",this.value="";return}let t=this.getPhonePrefixFromValue(e),r=m(t),n=o(r.placeholder).length;this.phonePrefix=t,this.applyPhoneConfig(t),this.phoneNumber=e.replace(t,"").substring(0,n)}getDescriptionIds(){let e=["input-phone"];return this.error&&(e=[...e,"error-text"]),e=[...e,"help-text","description"],e.join(" ")}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}async handleValueChange(){this._isSyncing||(this._isSyncing=!0,this.setPhoneFromValue(this.value),this.syncMaskedNumber(),await this.updateComplete,this.formControlController.updateValidity(),this._isSyncing=!1)}handlePhonePrefixChange(){this.applyPhoneConfig(this.phonePrefix),this.phoneNumber.length>this.placeholderLength&&(this.phoneNumber=this.phoneNumber.substring(0,this.placeholderLength)),this.syncMaskedNumber(),this.updateValue()}handlePhoneNumberChange(){this.syncMaskedNumber(),this.updateValue()}checkValidity(){var t;let e=(t=this.input)==null?void 0:t.checkValidity();return this.phoneNumber.length===0?e!=null?e:!1:this.phonePattern.test(this.value)}reportValidity(){var t;let e=(t=this.input)==null?void 0:t.reportValidity();return this.phoneNumber.length===0?e!=null?e:!1:this.phonePattern.test(this.value)}renderInput(){var n,x,P;let e=this.hasSlotController.test("label"),t=this.label?!0:!!e,r=this.clearable&&!this.disabled&&!this.readonly&&(typeof this.phoneNumber=="number"||((n=this.phoneNumber)==null?void 0:n.length)>0);return u`
1
+ import{a as C}from"./chunk.7DI4X2VG.js";import{a as U}from"./chunk.UIKL7DR3.js";import{a as N,b as T}from"./chunk.ZA2UO7BF.js";import{a as m}from"./chunk.VPHVZMUY.js";import{d as o,e as v,f as L,g as S,h as z}from"./chunk.WDYFEO2Q.js";import{a as y}from"./chunk.6DSY52TF.js";import{a as E}from"./chunk.2OZWUNZO.js";import{a as g}from"./chunk.2TZ4LFPJ.js";import{a as M}from"./chunk.2FPBPQUJ.js";import{a as c}from"./chunk.NIRNX67K.js";import{b as w}from"./chunk.HJGLYEWV.js";import{c as F}from"./chunk.AM2ZR2Y2.js";import{a}from"./chunk.2RF4WD6T.js";import{d}from"./chunk.ZBHHLRFH.js";import{a as p}from"./chunk.BWEPOOQP.js";import{a as _,b as h,c as l,d as b}from"./chunk.KBZ32KWP.js";import{a as u}from"./chunk.GP725TPQ.js";import{a as k,b as V,f as s}from"./chunk.IZ2HVRME.js";var $=m("+33"),i=class extends y{constructor(){super(...arguments);this.localize=new w(this);this.phonePattern=new RegExp($.pattern);this.placeholderLength=o($.placeholder).length;this.maskedNumber="";this.phoneConfig=$;this.placeholder=this.phoneConfig.placeholder;this.pattern=this.phoneConfig.pattern;this._isSyncing=!1;this.value="";this.phonePrefix="+33";this.phoneNumber="";this.inputPrefix="";this.placement="bottom-start"}get validity(){let e=this.phoneNumber.length>0?this.phonePattern.test(this.value):void 0;return S(this.input.validity,e)}connectedCallback(){super.connectedCallback(),this.defaultValue=this.value,this.setPhoneFromValue(this.value),this.syncMaskedNumber()}willUpdate(e){e.has("phonePrefix")&&!N.includes(this.phonePrefix)&&(this.phonePrefix=e.get("phonePrefix"))}syncMaskedNumber(){let e=v(this.phoneNumber,this.placeholder);this.maskedNumber!==e&&(this.maskedNumber=e),this.input&&this.input.value!==e&&(this.input.value=e)}handleInputValueChange(){let e=this.input,t=o(e.value),r=L(t,this.phoneConfig.mask),n=v(r,this.placeholder);this.phoneNumber===r&&this.maskedNumber===n&&e.value===n||(this.phoneNumber=r,this.maskedNumber=n,e.value!==n&&(e.value=n),this.updateValue(),this.formControlController.updateValidity(),this.emit("dsa-input"))}handlePhonePrefixSelectChange(e){e.stopPropagation();let{target:t}=e;t instanceof C&&(this.phonePrefix=t.value,this.updateValue(),this.emit("dsa-change"))}handleInputChange(e){let{target:t}=e;if(t instanceof HTMLInputElement){let r=o(t.value);this.phoneNumber=r,this.updateValue(),this.emit("dsa-change")}}handleClearIconClick(e){this.phonePrefix="+33",this.applyPhoneConfig(this.phonePrefix),this.phoneNumber="",this.maskedNumber="",this.value="",this.input.value!==""&&(this.input.value=""),this.emit("dsa-clear"),this.emit("dsa-input"),this.emit("dsa-change"),this.input.focus(),e.stopPropagation()}updateValue(){this._isSyncing||(this._isSyncing=!0,this.phoneNumber.length===0?this.value="":this.value=`${this.phonePrefix}${this.phoneNumber.substring(0,this.placeholderLength)}`,this._isSyncing=!1)}applyPhoneConfig(e){this.phoneConfig=m(e),this.placeholder=this.phoneConfig.placeholder,this.pattern=this.phoneConfig.pattern,this.placeholderLength=o(this.placeholder).length,this.phonePattern=new RegExp(this.pattern)}getPhonePrefixFromValue(e){for(let t of N)if(e.startsWith(t))return t;return"+33"}setPhoneFromValue(e){if(e===""){this.phonePrefix="+33",this.applyPhoneConfig(this.phonePrefix),this.phoneNumber="",this.value="";return}let t=this.getPhonePrefixFromValue(e),r=m(t),n=o(r.placeholder).length;this.phonePrefix=t,this.applyPhoneConfig(t),this.phoneNumber=e.replace(t,"").substring(0,n)}getDescriptionIds(){let e=["input-phone"];return this.error&&(e=[...e,"error-text"]),e=[...e,"help-text","description"],e.join(" ")}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}async handleValueChange(){this._isSyncing||(this._isSyncing=!0,this.setPhoneFromValue(this.value),this.syncMaskedNumber(),await this.updateComplete,this.formControlController.updateValidity(),this._isSyncing=!1)}handlePhonePrefixChange(){this.applyPhoneConfig(this.phonePrefix),this.phoneNumber.length>this.placeholderLength&&(this.phoneNumber=this.phoneNumber.substring(0,this.placeholderLength)),this.syncMaskedNumber(),this.updateValue()}handlePhoneNumberChange(){this.syncMaskedNumber(),this.updateValue()}checkValidity(){var t;let e=(t=this.input)==null?void 0:t.checkValidity();return this.phoneNumber.length===0?e!=null?e:!1:this.phonePattern.test(this.value)}reportValidity(){var t;let e=(t=this.input)==null?void 0:t.reportValidity();return this.phoneNumber.length===0?e!=null?e:!1:this.phonePattern.test(this.value)}renderInput(){var n,x,P;let e=this.hasSlotController.test("label"),t=this.label?!0:!!e,r=this.clearable&&!this.disabled&&!this.readonly&&(typeof this.phoneNumber=="number"||((n=this.phoneNumber)==null?void 0:n.length)>0);return u`
2
2
  <div part="base" class="input-phone__input form-control__field">
3
3
  <dsa-select
4
4
  id="prefix"
@@ -1,4 +1,4 @@
1
- import{a as x}from"./chunk.6B4U6EHI.js";import{a as b}from"./chunk.KX5QV54N.js";import{a as p,b as f}from"./chunk.ELL45QD3.js";import{a as o,b as r}from"./chunk.FDMPUSVV.js";import{a as u}from"./chunk.NIRNX67K.js";import{a as s}from"./chunk.2RF4WD6T.js";import{d as h}from"./chunk.ZBHHLRFH.js";import{a as m}from"./chunk.BWEPOOQP.js";import{a as d,b as i,d as a,f as c}from"./chunk.KBZ32KWP.js";import{f as t}from"./chunk.IZ2HVRME.js";var e=class extends c{constructor(){super(...arguments);this.hasSlotController=new p(this,"prefix");this.cachedTextLabel="";this.type="button";this.size="medium";this.disabled=!1;this.href="";this.rel="noreferrer noopener";this.collapsed=!1}connectedCallback(){super.connectedCallback(),this.handleHostClick=this.handleHostClick.bind(this),this.addEventListener("click",this.handleHostClick),this.hasAttribute("role")||this.setAttribute("role","listitem")}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleHostClick)}firstUpdated(){this.cachedTextLabel=this.getTextLabel()}handleDefaultSlotChange(){let l=this.getTextLabel();l!==this.cachedTextLabel&&(this.cachedTextLabel=l,this.emit("slotchange",{bubbles:!0,composed:!1,cancelable:!1}))}handleHostClick(l){this.disabled&&(l.preventDefault(),l.stopImmediatePropagation())}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}getTextLabel(){return f(this.defaultSlot)}focus(l){this.menuItem.focus(l)}blur(){this.menuItem.blur()}click(){this.menuItem.click()}render(){let l=this.type==="link"?o`a`:o`button`,n=this.cachedTextLabel||this.getTextLabel();return this.collapsed&&!this.hasSlotController.test("prefix")?r``:r`
1
+ import{a as x}from"./chunk.6B4U6EHI.js";import{a as b}from"./chunk.CWRA4UT2.js";import{a as p,b as f}from"./chunk.ELL45QD3.js";import{a as o,b as r}from"./chunk.FDMPUSVV.js";import{a as u}from"./chunk.NIRNX67K.js";import{a as s}from"./chunk.2RF4WD6T.js";import{d as h}from"./chunk.ZBHHLRFH.js";import{a as m}from"./chunk.BWEPOOQP.js";import{a as d,b as i,d as a,f as c}from"./chunk.KBZ32KWP.js";import{f as t}from"./chunk.IZ2HVRME.js";var e=class extends c{constructor(){super(...arguments);this.hasSlotController=new p(this,"prefix");this.cachedTextLabel="";this.type="button";this.size="medium";this.disabled=!1;this.href="";this.rel="noreferrer noopener";this.collapsed=!1}connectedCallback(){super.connectedCallback(),this.handleHostClick=this.handleHostClick.bind(this),this.addEventListener("click",this.handleHostClick),this.hasAttribute("role")||this.setAttribute("role","listitem")}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleHostClick)}firstUpdated(){this.cachedTextLabel=this.getTextLabel()}handleDefaultSlotChange(){let l=this.getTextLabel();l!==this.cachedTextLabel&&(this.cachedTextLabel=l,this.emit("slotchange",{bubbles:!0,composed:!1,cancelable:!1}))}handleHostClick(l){this.disabled&&(l.preventDefault(),l.stopImmediatePropagation())}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}getTextLabel(){return f(this.defaultSlot)}focus(l){this.menuItem.focus(l)}blur(){this.menuItem.blur()}click(){this.menuItem.click()}render(){let l=this.type==="link"?o`a`:o`button`,n=this.cachedTextLabel||this.getTextLabel();return this.collapsed&&!this.hasSlotController.test("prefix")?r``:r`
2
2
  <dsa-tooltip placement="right" hoist ?disabled=${!this.collapsed}>
3
3
  <${l}
4
4
  part="base"
@@ -1,8 +1,8 @@
1
- import{e as ie,f as j}from"./chunk.IFSGAJQ4.js";import{a as Ae}from"./chunk.XZWROQBU.js";import{c as Ne}from"./chunk.LBAIMDY3.js";import{a as Te}from"./chunk.2RF4WD6T.js";import{a as ae}from"./chunk.BWEPOOQP.js";import{a as xe,b as Y,d as Le,f as Me}from"./chunk.KBZ32KWP.js";import{a as ke}from"./chunk.GP725TPQ.js";import{c as Ce,f as w}from"./chunk.IZ2HVRME.js";var o={allRenderFn:!1,cmpDidLoad:!0,cmpDidUnload:!1,cmpDidUpdate:!0,cmpDidRender:!0,cmpWillLoad:!0,cmpWillUpdate:!0,cmpWillRender:!0,connectedCallback:!0,disconnectedCallback:!0,element:!0,event:!0,hasRenderFn:!0,lifecycle:!0,hostListener:!0,hostListenerTargetWindow:!0,hostListenerTargetDocument:!0,hostListenerTargetBody:!0,hostListenerTargetParent:!1,hostListenerTarget:!0,member:!0,method:!0,mode:!0,observeAttribute:!0,prop:!0,propMutable:!0,reflect:!0,scoped:!0,shadowDom:!0,slot:!0,cssAnnotations:!0,state:!0,style:!0,svg:!0,updatable:!0,vdomAttribute:!0,vdomXlink:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomRef:!0,vdomPropOrAttr:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,watchCallback:!0,taskQueue:!0,hotModuleReplacement:!1,isDebug:!1,isDev:!1,isTesting:!1,hydrateServerSide:!1,hydrateClientSide:!1,lifecycleDOMEvents:!1,lazyLoad:!1,profile:!1,slotRelocation:!0,appendChildSlotFix:!1,cloneNodeFix:!1,hydratedAttribute:!1,hydratedClass:!0,safari10:!1,scriptDataOpts:!1,scopedSlotTextContentFix:!1,shadowDomShim:!1,slotChildNodesFix:!1,invisiblePrehydration:!0,propBoolean:!0,propNumber:!0,propString:!0,cssVarShim:!1,constructableCSS:!0,cmpShouldUpdate:!0,devTools:!1,dynamicImportShim:!1,shadowDelegatesFocus:!0,initializeNextTick:!1,asyncLoading:!1,asyncQueue:!1,transformTagName:!1,attachStyles:!0};var q="app";var Mt=Ce({});var O,Je,_,Nt,At=0,Ze=!1,Q=!1,ge=!1,y=!1,Ee=null,re=0,X=!1,Ns={isDev:!!o.isDev,isBrowser:!0,isServer:!1,isTesting:!!o.isTesting};var C=(e,t="")=>{if(o.profile&&performance.mark){let s=`st:${e}:${t}:${At++}`;return performance.mark(s),()=>performance.measure(`[Stencil] ${e}() <${t}>`,s)}else return()=>{}},Et=(e,t)=>o.profile&&performance.mark?(performance.getEntriesByName(e,"mark").length===0&&performance.mark(e),()=>{performance.getEntriesByName(t,"measure").length===0&&performance.measure(t,e)}):()=>{};var It="r",Ot="o",Bt="s",Rt="t",de="s-id",Ie="sty-id",Oe="c-id";var Be="http://www.w3.org/1999/xlink",Re={},_t="http://www.w3.org/2000/svg",Pt="http://www.w3.org/1999/xhtml",zt=e=>e!=null,me=e=>(e=typeof e,e==="object"||e==="function");function Ft(e){var t,s,n;return(n=(s=(t=e.head)===null||t===void 0?void 0:t.querySelector('meta[name="csp-nonce"]'))===null||s===void 0?void 0:s.getAttribute("content"))!==null&&n!==void 0?n:void 0}var $=(e,t,...s)=>{let n=null,a=null,i=null,r=!1,l=!1,c=[],d=h=>{for(let f=0;f<h.length;f++)n=h[f],Array.isArray(n)?d(n):n!=null&&typeof n!="boolean"&&((r=typeof e!="function"&&!me(n))?n=String(n):o.isDev&&typeof e!="function"&&n.$flags$===void 0&&J(`vNode passed as children has unexpected type.
1
+ import{e as ie,f as j}from"./chunk.IFSGAJQ4.js";import{a as Ae}from"./chunk.XZWROQBU.js";import{c as Ne}from"./chunk.Q54GPNUS.js";import{a as Te}from"./chunk.2RF4WD6T.js";import{a as ae}from"./chunk.BWEPOOQP.js";import{a as xe,b as Y,d as Le,f as Me}from"./chunk.KBZ32KWP.js";import{a as ke}from"./chunk.GP725TPQ.js";import{c as Ce,f as w}from"./chunk.IZ2HVRME.js";var o={allRenderFn:!1,cmpDidLoad:!0,cmpDidUnload:!1,cmpDidUpdate:!0,cmpDidRender:!0,cmpWillLoad:!0,cmpWillUpdate:!0,cmpWillRender:!0,connectedCallback:!0,disconnectedCallback:!0,element:!0,event:!0,hasRenderFn:!0,lifecycle:!0,hostListener:!0,hostListenerTargetWindow:!0,hostListenerTargetDocument:!0,hostListenerTargetBody:!0,hostListenerTargetParent:!1,hostListenerTarget:!0,member:!0,method:!0,mode:!0,observeAttribute:!0,prop:!0,propMutable:!0,reflect:!0,scoped:!0,shadowDom:!0,slot:!0,cssAnnotations:!0,state:!0,style:!0,svg:!0,updatable:!0,vdomAttribute:!0,vdomXlink:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomRef:!0,vdomPropOrAttr:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,watchCallback:!0,taskQueue:!0,hotModuleReplacement:!1,isDebug:!1,isDev:!1,isTesting:!1,hydrateServerSide:!1,hydrateClientSide:!1,lifecycleDOMEvents:!1,lazyLoad:!1,profile:!1,slotRelocation:!0,appendChildSlotFix:!1,cloneNodeFix:!1,hydratedAttribute:!1,hydratedClass:!0,safari10:!1,scriptDataOpts:!1,scopedSlotTextContentFix:!1,shadowDomShim:!1,slotChildNodesFix:!1,invisiblePrehydration:!0,propBoolean:!0,propNumber:!0,propString:!0,cssVarShim:!1,constructableCSS:!0,cmpShouldUpdate:!0,devTools:!1,dynamicImportShim:!1,shadowDelegatesFocus:!0,initializeNextTick:!1,asyncLoading:!1,asyncQueue:!1,transformTagName:!1,attachStyles:!0};var q="app";var Mt=Ce({});var O,Je,_,Nt,At=0,Ze=!1,Q=!1,ge=!1,y=!1,Ee=null,re=0,X=!1,Ns={isDev:!!o.isDev,isBrowser:!0,isServer:!1,isTesting:!!o.isTesting};var C=(e,t="")=>{if(o.profile&&performance.mark){let s=`st:${e}:${t}:${At++}`;return performance.mark(s),()=>performance.measure(`[Stencil] ${e}() <${t}>`,s)}else return()=>{}},Et=(e,t)=>o.profile&&performance.mark?(performance.getEntriesByName(e,"mark").length===0&&performance.mark(e),()=>{performance.getEntriesByName(t,"measure").length===0&&performance.measure(t,e)}):()=>{};var It="r",Ot="o",Bt="s",Rt="t",de="s-id",Ie="sty-id",Oe="c-id";var Be="http://www.w3.org/1999/xlink",Re={},_t="http://www.w3.org/2000/svg",Pt="http://www.w3.org/1999/xhtml",Ft=e=>e!=null,me=e=>(e=typeof e,e==="object"||e==="function");function zt(e){var t,s,n;return(n=(s=(t=e.head)===null||t===void 0?void 0:t.querySelector('meta[name="csp-nonce"]'))===null||s===void 0?void 0:s.getAttribute("content"))!==null&&n!==void 0?n:void 0}var $=(e,t,...s)=>{let n=null,a=null,i=null,r=!1,l=!1,c=[],d=h=>{for(let f=0;f<h.length;f++)n=h[f],Array.isArray(n)?d(n):n!=null&&typeof n!="boolean"&&((r=typeof e!="function"&&!me(n))?n=String(n):o.isDev&&typeof e!="function"&&n.$flags$===void 0&&J(`vNode passed as children has unexpected type.
2
2
  Make sure it's using the correct h() function.
3
3
  Empty objects can also be the cause, look for JSX comments that became objects.`),r&&l?c[c.length-1].$text$+=n:c.push(r?P(null,n):n),l=r)};if(d(s),t&&(o.isDev&&e==="input"&&Ut(t),o.vdomKey&&t.key&&(a=t.key),o.slotRelocation&&t.name&&(i=t.name),o.vdomClass)){let h=t.className||t.class;h&&(t.class=typeof h!="object"?h:Object.keys(h).filter(f=>h[f]).join(" "))}if(o.isDev&&c.some(ue)&&J(`The <Host> must be the single root component. Make sure:
4
4
  - You are NOT using hostData() and <Host> in the same component.
5
- - <Host> is used once, and it's the single root component of the render() function.`),o.vdomFunctional&&typeof e=="function")return e(t===null?{}:t,c,Yt);let u=P(e,null);return u.$attrs$=t,c.length>0&&(u.$children$=c),o.vdomKey&&(u.$key$=a),o.slotRelocation&&(u.$name$=i),u},P=(e,t)=>{let s={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return o.vdomAttribute&&(s.$attrs$=null),o.vdomKey&&(s.$key$=null),o.slotRelocation&&(s.$name$=null),s},ye={},ue=e=>e&&e.$tag$===ye,Yt={forEach:(e,t)=>e.map(_e).forEach(t),map:(e,t)=>e.map(_e).map(t).map(Ht)},_e=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),Ht=e=>{if(typeof e.vtag=="function"){let s=Object.assign({},e.vattrs);return e.vkey&&(s.key=e.vkey),e.vname&&(s.name=e.vname),$(e.vtag,s,...e.vchildren||[])}let t=P(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},Ut=e=>{let t=Object.keys(e),s=t.indexOf("value");if(s===-1)return;let n=t.indexOf("type"),a=t.indexOf("min"),i=t.indexOf("max"),r=t.indexOf("step");(s<n||s<a||s<i||s<r)&&U('The "value" prop of <input> should be set after "min", "max", "type" and "step"')},Wt=(e,t,s,n)=>{let a=C("hydrateClient",t),i=e.shadowRoot,r=[],l=[],c=o.shadowDom&&i?[]:null,d=n.$vnode$=P(t,null);p.$orgLocNodes$||fe(m.body,p.$orgLocNodes$=new Map),e[de]=s,e.removeAttribute(de),he(d,r,l,c,e,e,s),r.map(u=>{let h=u.$hostId$+"."+u.$nodeId$,f=p.$orgLocNodes$.get(h),g=u.$elm$;f&&z&&f["s-en"]===""&&f.parentNode.insertBefore(g,f.nextSibling),i||(g["s-hn"]=t,f&&(g["s-ol"]=f,g["s-ol"]["s-nr"]=g)),p.$orgLocNodes$.delete(h)}),o.shadowDom&&i&&c.map(u=>{u&&i.appendChild(u)}),a()},he=(e,t,s,n,a,i,r)=>{let l,c,d,u;if(i.nodeType===1){for(l=i.getAttribute(Oe),l&&(c=l.split("."),(c[0]===r||c[0]==="0")&&(d={$flags$:0,$hostId$:c[0],$nodeId$:c[1],$depth$:c[2],$index$:c[3],$tag$:i.tagName.toLowerCase(),$elm$:i,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},t.push(d),i.removeAttribute(Oe),e.$children$||(e.$children$=[]),e.$children$[d.$index$]=d,e=d,n&&d.$depth$==="0"&&(n[d.$index$]=d.$elm$))),u=i.childNodes.length-1;u>=0;u--)he(e,t,s,n,a,i.childNodes[u],r);if(i.shadowRoot)for(u=i.shadowRoot.childNodes.length-1;u>=0;u--)he(e,t,s,n,a,i.shadowRoot.childNodes[u],r)}else if(i.nodeType===8)c=i.nodeValue.split("."),(c[1]===r||c[1]==="0")&&(l=c[0],d={$flags$:0,$hostId$:c[1],$nodeId$:c[2],$depth$:c[3],$index$:c[4],$elm$:i,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},l===Rt?(d.$elm$=i.nextSibling,d.$elm$&&d.$elm$.nodeType===3&&(d.$text$=d.$elm$.textContent,t.push(d),i.remove(),e.$children$||(e.$children$=[]),e.$children$[d.$index$]=d,n&&d.$depth$==="0"&&(n[d.$index$]=d.$elm$))):d.$hostId$===r&&(l===Bt?(d.$tag$="slot",c[5]?i["s-sn"]=d.$name$=c[5]:i["s-sn"]="",i["s-sr"]=!0,o.shadowDom&&n&&(d.$elm$=m.createElement(d.$tag$),d.$name$&&d.$elm$.setAttribute("name",d.$name$),i.parentNode.insertBefore(d.$elm$,i),i.remove(),d.$depth$==="0"&&(n[d.$index$]=d.$elm$)),s.push(d),e.$children$||(e.$children$=[]),e.$children$[d.$index$]=d):l===It&&(o.shadowDom&&n?i.remove():o.slotRelocation&&(a["s-cr"]=i,i["s-cn"]=!0))));else if(e&&e.$tag$==="style"){let h=P(null,i.textContent);h.$elm$=i,h.$index$="0",e.$children$=[h]}},fe=(e,t)=>{if(e.nodeType===1){let s=0;for(;s<e.childNodes.length;s++)fe(e.childNodes[s],t);if(e.shadowRoot)for(s=0;s<e.shadowRoot.childNodes.length;s++)fe(e.shadowRoot.childNodes[s],t)}else if(e.nodeType===8){let s=e.nodeValue.split(".");s[0]===Ot&&(t.set(s[1]+"."+s[2],e),e.nodeValue="",e["s-en"]=s[3])}},jt=e=>fs.map(t=>t(e)).find(t=>!!t);var qt=(e,t)=>e!=null&&!me(e)?o.propBoolean&&t&4?e==="false"?!1:e===""||!!e:o.propNumber&&t&2?parseFloat(e):o.propString&&t&1?String(e):e:e,Kt=e=>o.lazyLoad?M(e).$hostElement$:e,ve=(e,t,s)=>{let n=Kt(e);return{emit:a=>(o.isDev&&!n.isConnected&&U(`The "${t}" event was emitted, but the dispatcher node is no longer connected to the dom.`),De(n,t,{bubbles:!!(s&4),composed:!!(s&2),cancelable:!!(s&1),detail:a}))}},De=(e,t,s)=>{let n=p.ce(t,s);return e.dispatchEvent(n),n},Pe=new WeakMap,Qt=(e,t,s)=>{let n=Z.get(e);gs&&s?(n=n||new CSSStyleSheet,typeof n=="string"?n=t:n.replaceSync(t)):n=t,Z.set(e,n)},$e=(e,t,s,n)=>{var a;let i=Ve(t,s),r=Z.get(i);if(!o.attachStyles)return i;if(e=e.nodeType===11?e:m,r)if(typeof r=="string"){e=e.head||e;let l=Pe.get(e),c;if(l||Pe.set(e,l=new Set),!l.has(i)){if(o.hydrateClientSide&&e.host&&(c=e.querySelector(`[${Ie}="${i}"]`)))c.innerHTML=r;else{if(o.cssVarShim&&p.$cssShim$){c=p.$cssShim$.createHostStyle(n,i,r,!!(t.$flags$&10));let u=c["s-sc"];u&&(i=u,l=null)}else c=m.createElement("style"),c.innerHTML=r;let d=(a=p.$nonce$)!==null&&a!==void 0?a:Ft(m);d!=null&&c.setAttribute("nonce",d),(o.hydrateServerSide||o.hotModuleReplacement)&&c.setAttribute(Ie,i),e.insertBefore(c,e.querySelector("link"))}l&&l.add(i)}}else o.constructableCSS&&!e.adoptedStyleSheets.includes(r)&&(e.adoptedStyleSheets=[...e.adoptedStyleSheets,r]);return i},Xt=e=>{let t=e.$cmpMeta$,s=e.$hostElement$,n=t.$flags$,a=C("attachStyles",t.$tagName$),i=$e(o.shadowDom&&z&&s.shadowRoot?s.shadowRoot:s.getRootNode(),t,e.$modeName$,s);(o.shadowDom||o.scoped)&&o.cssAnnotations&&n&10&&(s["s-sc"]=i,s.classList.add(i+"-h"),o.scoped&&n&2&&s.classList.add(i+"-s")),a()},Ve=(e,t)=>"sc-"+(o.mode&&t&&e.$flags$&32?e.$tagName$+"-"+t:e.$tagName$);var ze=(e,t,s,n,a,i)=>{if(s!==n){let r=Ke(e,t),l=t.toLowerCase();if(o.vdomClass&&t==="class"){let c=e.classList,d=Fe(s),u=Fe(n);c.remove(...d.filter(h=>h&&!u.includes(h))),c.add(...u.filter(h=>h&&!d.includes(h)))}else if(o.vdomStyle&&t==="style"){if(o.updatable)for(let c in s)(!n||n[c]==null)&&(!o.hydrateServerSide&&c.includes("-")?e.style.removeProperty(c):e.style[c]="");for(let c in n)(!s||n[c]!==s[c])&&(!o.hydrateServerSide&&c.includes("-")?e.style.setProperty(c,n[c]):e.style[c]=n[c])}else if(!(o.vdomKey&&t==="key")){if(o.vdomRef&&t==="ref")n&&n(e);else if(o.vdomListener&&(o.lazyLoad?!r:!e.__lookupSetter__(t))&&t[0]==="o"&&t[1]==="n")t[2]==="-"?t=t.slice(3):Ke(F,l)?t=l.slice(2):t=l[2]+t.slice(3),s&&p.rel(e,t,s,!1),n&&p.ael(e,t,n,!1);else if(o.vdomPropOrAttr){let c=me(n);if((r||c&&n!==null)&&!a)try{if(e.tagName.includes("-"))e[t]=n;else{let u=n==null?"":n;t==="list"?r=!1:(s==null||e[t]!=u)&&(e[t]=u)}}catch(u){}let d=!1;o.vdomXlink&&l!==(l=l.replace(/^xlink\:?/,""))&&(t=l,d=!0),n==null||n===!1?(n!==!1||e.getAttribute(t)==="")&&(o.vdomXlink&&d?e.removeAttributeNS(Be,t):e.removeAttribute(t)):(!r||i&4||a)&&!c&&(n=n===!0?"":n,o.vdomXlink&&d?e.setAttributeNS(Be,t,n):e.setAttribute(t,n))}}}},Gt=/\s/,Fe=e=>e?e.split(Gt):[],et=(e,t,s,n)=>{let a=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,i=e&&e.$attrs$||Re,r=t.$attrs$||Re;if(o.updatable)for(n in i)n in r||ze(a,n,i[n],void 0,s,t.$flags$);for(n in r)ze(a,n,i[n],r[n],s,t.$flags$)},G=(e,t,s,n)=>{let a=t.$children$[s],i=0,r,l,c;if(o.slotRelocation&&!Ze&&(ge=!0,a.$tag$==="slot"&&(O&&n.classList.add(O+"-s"),a.$flags$|=a.$children$?2:1)),o.isDev&&a.$elm$&&J(`The JSX ${a.$text$!==null?`"${a.$text$}" text`:`"${a.$tag$}" element`} node should not be shared within the same renderer. The renderer caches element lookups in order to improve performance. However, a side effect from this is that the exact same JSX node should not be reused. For more information please see https://stenciljs.com/docs/templating-jsx#avoid-shared-jsx-nodes`),o.vdomText&&a.$text$!==null)r=a.$elm$=m.createTextNode(a.$text$);else if(o.slotRelocation&&a.$flags$&1)r=a.$elm$=o.isDebug||o.hydrateServerSide?Zt(a):m.createTextNode("");else{if(o.svg&&!y&&(y=a.$tag$==="svg"),r=a.$elm$=o.svg?m.createElementNS(y?_t:Pt,o.slotRelocation&&a.$flags$&2?"slot-fb":a.$tag$):m.createElement(o.slotRelocation&&a.$flags$&2?"slot-fb":a.$tag$),o.svg&&y&&a.$tag$==="foreignObject"&&(y=!1),o.vdomAttribute&&et(null,a,y),(o.shadowDom||o.scoped)&&zt(O)&&r["s-si"]!==O&&r.classList.add(r["s-si"]=O),a.$children$)for(i=0;i<a.$children$.length;++i)l=G(e,a,i,r),l&&r.appendChild(l);o.svg&&(a.$tag$==="svg"?y=!1:r.tagName==="foreignObject"&&(y=!0))}return o.slotRelocation&&(r["s-hn"]=_,a.$flags$&3&&(r["s-sr"]=!0,r["s-cr"]=Je,r["s-sn"]=a.$name$||"",c=e&&e.$children$&&e.$children$[s],c&&c.$tag$===a.$tag$&&e.$elm$&&H(e.$elm$,!1))),r},H=(e,t)=>{p.$flags$|=1;let s=e.childNodes;for(let n=s.length-1;n>=0;n--){let a=s[n];a["s-hn"]!==_&&a["s-ol"]&&(nt(a).insertBefore(a,be(a)),a["s-ol"].remove(),a["s-ol"]=void 0,ge=!0),t&&H(a,t)}p.$flags$&=-2},tt=(e,t,s,n,a,i)=>{let r=o.slotRelocation&&e["s-cr"]&&e["s-cr"].parentNode||e,l;for(o.shadowDom&&r.shadowRoot&&r.tagName===_&&(r=r.shadowRoot);a<=i;++a)n[a]&&(l=G(null,s,a,e),l&&(n[a].$elm$=l,r.insertBefore(l,o.slotRelocation?be(t):t)))},st=(e,t,s,n,a)=>{for(;t<=s;++t)(n=e[t])&&(a=n.$elm$,it(n),o.slotRelocation&&(Q=!0,a["s-ol"]?a["s-ol"].remove():H(a,!0)),a.remove())},Jt=(e,t,s,n)=>{let a=0,i=0,r=0,l=0,c=t.length-1,d=t[0],u=t[c],h=n.length-1,f=n[0],g=n[h],D,L;for(;a<=c&&i<=h;)if(d==null)d=t[++a];else if(u==null)u=t[--c];else if(f==null)f=n[++i];else if(g==null)g=n[--h];else if(K(d,f))B(d,f),d=t[++a],f=n[++i];else if(K(u,g))B(u,g),u=t[--c],g=n[--h];else if(K(d,g))o.slotRelocation&&(d.$tag$==="slot"||g.$tag$==="slot")&&H(d.$elm$.parentNode,!1),B(d,g),e.insertBefore(d.$elm$,u.$elm$.nextSibling),d=t[++a],g=n[--h];else if(K(u,f))o.slotRelocation&&(d.$tag$==="slot"||g.$tag$==="slot")&&H(u.$elm$.parentNode,!1),B(u,f),e.insertBefore(u.$elm$,d.$elm$),u=t[--c],f=n[++i];else{if(r=-1,o.vdomKey){for(l=a;l<=c;++l)if(t[l]&&t[l].$key$!==null&&t[l].$key$===f.$key$){r=l;break}}o.vdomKey&&r>=0?(L=t[r],L.$tag$!==f.$tag$?D=G(t&&t[i],s,r,e):(B(L,f),t[r]=void 0,D=L.$elm$),f=n[++i]):(D=G(t&&t[i],s,i,e),f=n[++i]),D&&(o.slotRelocation?nt(d.$elm$).insertBefore(D,be(d.$elm$)):d.$elm$.parentNode.insertBefore(D,d.$elm$))}a>c?tt(e,n[h+1]==null?null:n[h+1].$elm$,s,n,i,h):o.updatable&&i>h&&st(t,a,c)},K=(e,t)=>e.$tag$===t.$tag$?o.slotRelocation&&e.$tag$==="slot"?e.$name$===t.$name$:o.vdomKey?e.$key$===t.$key$:!0:!1,be=e=>e&&e["s-ol"]||e,nt=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,B=(e,t)=>{let s=t.$elm$=e.$elm$,n=e.$children$,a=t.$children$,i=t.$tag$,r=t.$text$,l;!o.vdomText||r===null?(o.svg&&(y=i==="svg"?!0:i==="foreignObject"?!1:y),(o.vdomAttribute||o.reflect)&&(o.slot&&i==="slot"||et(e,t,y)),o.updatable&&n!==null&&a!==null?Jt(s,n,t,a):a!==null?(o.updatable&&o.vdomText&&e.$text$!==null&&(s.textContent=""),tt(s,null,t,a,0,a.length-1)):o.updatable&&n!==null&&st(n,0,n.length-1),o.svg&&y&&i==="svg"&&(y=!1)):o.vdomText&&o.slotRelocation&&(l=s["s-cr"])?l.parentNode.textContent=r:o.vdomText&&e.$text$!==r&&(s.data=r)},ot=e=>{let t=e.childNodes,s,n,a,i,r,l;for(n=0,a=t.length;n<a;n++)if(s=t[n],s.nodeType===1){if(s["s-sr"]){for(r=s["s-sn"],s.hidden=!1,i=0;i<a;i++)if(l=t[i].nodeType,t[i]["s-hn"]!==s["s-hn"]||r!==""){if(l===1&&r===t[i].getAttribute("slot")){s.hidden=!0;break}}else if(l===1||l===3&&t[i].textContent.trim()!==""){s.hidden=!0;break}}ot(s)}},b=[],at=e=>{let t,s,n,a,i,r,l=0,c=e.childNodes,d=c.length;for(;l<d;l++){if(t=c[l],t["s-sr"]&&(s=t["s-cr"])&&s.parentNode)for(n=s.parentNode.childNodes,a=t["s-sn"],r=n.length-1;r>=0;r--)s=n[r],!s["s-cn"]&&!s["s-nr"]&&s["s-hn"]!==t["s-hn"]&&(Ye(s,a)?(i=b.find(u=>u.$nodeToRelocate$===s),Q=!0,s["s-sn"]=s["s-sn"]||a,i?i.$slotRefNode$=t:b.push({$slotRefNode$:t,$nodeToRelocate$:s}),s["s-sr"]&&b.map(u=>{Ye(u.$nodeToRelocate$,s["s-sn"])&&(i=b.find(h=>h.$nodeToRelocate$===s),i&&!u.$slotRefNode$&&(u.$slotRefNode$=i.$slotRefNode$))})):b.some(u=>u.$nodeToRelocate$===s)||b.push({$nodeToRelocate$:s}));t.nodeType===1&&at(t)}},Ye=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t?!0:t==="",it=e=>{o.vdomRef&&(e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(it))},He=(e,t)=>{let s=e.$hostElement$,n=e.$cmpMeta$,a=e.$vnode$||P(null,null),i=ue(t)?t:$(null,null,t);if(_=s.tagName,o.isDev&&Array.isArray(t)&&t.some(ue))throw new Error(`The <Host> must be the single root component.
5
+ - <Host> is used once, and it's the single root component of the render() function.`),o.vdomFunctional&&typeof e=="function")return e(t===null?{}:t,c,Yt);let u=P(e,null);return u.$attrs$=t,c.length>0&&(u.$children$=c),o.vdomKey&&(u.$key$=a),o.slotRelocation&&(u.$name$=i),u},P=(e,t)=>{let s={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return o.vdomAttribute&&(s.$attrs$=null),o.vdomKey&&(s.$key$=null),o.slotRelocation&&(s.$name$=null),s},ye={},ue=e=>e&&e.$tag$===ye,Yt={forEach:(e,t)=>e.map(_e).forEach(t),map:(e,t)=>e.map(_e).map(t).map(Ht)},_e=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),Ht=e=>{if(typeof e.vtag=="function"){let s=Object.assign({},e.vattrs);return e.vkey&&(s.key=e.vkey),e.vname&&(s.name=e.vname),$(e.vtag,s,...e.vchildren||[])}let t=P(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},Ut=e=>{let t=Object.keys(e),s=t.indexOf("value");if(s===-1)return;let n=t.indexOf("type"),a=t.indexOf("min"),i=t.indexOf("max"),r=t.indexOf("step");(s<n||s<a||s<i||s<r)&&U('The "value" prop of <input> should be set after "min", "max", "type" and "step"')},Wt=(e,t,s,n)=>{let a=C("hydrateClient",t),i=e.shadowRoot,r=[],l=[],c=o.shadowDom&&i?[]:null,d=n.$vnode$=P(t,null);p.$orgLocNodes$||fe(m.body,p.$orgLocNodes$=new Map),e[de]=s,e.removeAttribute(de),he(d,r,l,c,e,e,s),r.map(u=>{let h=u.$hostId$+"."+u.$nodeId$,f=p.$orgLocNodes$.get(h),g=u.$elm$;f&&F&&f["s-en"]===""&&f.parentNode.insertBefore(g,f.nextSibling),i||(g["s-hn"]=t,f&&(g["s-ol"]=f,g["s-ol"]["s-nr"]=g)),p.$orgLocNodes$.delete(h)}),o.shadowDom&&i&&c.map(u=>{u&&i.appendChild(u)}),a()},he=(e,t,s,n,a,i,r)=>{let l,c,d,u;if(i.nodeType===1){for(l=i.getAttribute(Oe),l&&(c=l.split("."),(c[0]===r||c[0]==="0")&&(d={$flags$:0,$hostId$:c[0],$nodeId$:c[1],$depth$:c[2],$index$:c[3],$tag$:i.tagName.toLowerCase(),$elm$:i,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},t.push(d),i.removeAttribute(Oe),e.$children$||(e.$children$=[]),e.$children$[d.$index$]=d,e=d,n&&d.$depth$==="0"&&(n[d.$index$]=d.$elm$))),u=i.childNodes.length-1;u>=0;u--)he(e,t,s,n,a,i.childNodes[u],r);if(i.shadowRoot)for(u=i.shadowRoot.childNodes.length-1;u>=0;u--)he(e,t,s,n,a,i.shadowRoot.childNodes[u],r)}else if(i.nodeType===8)c=i.nodeValue.split("."),(c[1]===r||c[1]==="0")&&(l=c[0],d={$flags$:0,$hostId$:c[1],$nodeId$:c[2],$depth$:c[3],$index$:c[4],$elm$:i,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},l===Rt?(d.$elm$=i.nextSibling,d.$elm$&&d.$elm$.nodeType===3&&(d.$text$=d.$elm$.textContent,t.push(d),i.remove(),e.$children$||(e.$children$=[]),e.$children$[d.$index$]=d,n&&d.$depth$==="0"&&(n[d.$index$]=d.$elm$))):d.$hostId$===r&&(l===Bt?(d.$tag$="slot",c[5]?i["s-sn"]=d.$name$=c[5]:i["s-sn"]="",i["s-sr"]=!0,o.shadowDom&&n&&(d.$elm$=m.createElement(d.$tag$),d.$name$&&d.$elm$.setAttribute("name",d.$name$),i.parentNode.insertBefore(d.$elm$,i),i.remove(),d.$depth$==="0"&&(n[d.$index$]=d.$elm$)),s.push(d),e.$children$||(e.$children$=[]),e.$children$[d.$index$]=d):l===It&&(o.shadowDom&&n?i.remove():o.slotRelocation&&(a["s-cr"]=i,i["s-cn"]=!0))));else if(e&&e.$tag$==="style"){let h=P(null,i.textContent);h.$elm$=i,h.$index$="0",e.$children$=[h]}},fe=(e,t)=>{if(e.nodeType===1){let s=0;for(;s<e.childNodes.length;s++)fe(e.childNodes[s],t);if(e.shadowRoot)for(s=0;s<e.shadowRoot.childNodes.length;s++)fe(e.shadowRoot.childNodes[s],t)}else if(e.nodeType===8){let s=e.nodeValue.split(".");s[0]===Ot&&(t.set(s[1]+"."+s[2],e),e.nodeValue="",e["s-en"]=s[3])}},jt=e=>fs.map(t=>t(e)).find(t=>!!t);var qt=(e,t)=>e!=null&&!me(e)?o.propBoolean&&t&4?e==="false"?!1:e===""||!!e:o.propNumber&&t&2?parseFloat(e):o.propString&&t&1?String(e):e:e,Kt=e=>o.lazyLoad?M(e).$hostElement$:e,De=(e,t,s)=>{let n=Kt(e);return{emit:a=>(o.isDev&&!n.isConnected&&U(`The "${t}" event was emitted, but the dispatcher node is no longer connected to the dom.`),ve(n,t,{bubbles:!!(s&4),composed:!!(s&2),cancelable:!!(s&1),detail:a}))}},ve=(e,t,s)=>{let n=p.ce(t,s);return e.dispatchEvent(n),n},Pe=new WeakMap,Qt=(e,t,s)=>{let n=Z.get(e);gs&&s?(n=n||new CSSStyleSheet,typeof n=="string"?n=t:n.replaceSync(t)):n=t,Z.set(e,n)},$e=(e,t,s,n)=>{var a;let i=Ve(t,s),r=Z.get(i);if(!o.attachStyles)return i;if(e=e.nodeType===11?e:m,r)if(typeof r=="string"){e=e.head||e;let l=Pe.get(e),c;if(l||Pe.set(e,l=new Set),!l.has(i)){if(o.hydrateClientSide&&e.host&&(c=e.querySelector(`[${Ie}="${i}"]`)))c.innerHTML=r;else{if(o.cssVarShim&&p.$cssShim$){c=p.$cssShim$.createHostStyle(n,i,r,!!(t.$flags$&10));let u=c["s-sc"];u&&(i=u,l=null)}else c=m.createElement("style"),c.innerHTML=r;let d=(a=p.$nonce$)!==null&&a!==void 0?a:zt(m);d!=null&&c.setAttribute("nonce",d),(o.hydrateServerSide||o.hotModuleReplacement)&&c.setAttribute(Ie,i),e.insertBefore(c,e.querySelector("link"))}l&&l.add(i)}}else o.constructableCSS&&!e.adoptedStyleSheets.includes(r)&&(e.adoptedStyleSheets=[...e.adoptedStyleSheets,r]);return i},Xt=e=>{let t=e.$cmpMeta$,s=e.$hostElement$,n=t.$flags$,a=C("attachStyles",t.$tagName$),i=$e(o.shadowDom&&F&&s.shadowRoot?s.shadowRoot:s.getRootNode(),t,e.$modeName$,s);(o.shadowDom||o.scoped)&&o.cssAnnotations&&n&10&&(s["s-sc"]=i,s.classList.add(i+"-h"),o.scoped&&n&2&&s.classList.add(i+"-s")),a()},Ve=(e,t)=>"sc-"+(o.mode&&t&&e.$flags$&32?e.$tagName$+"-"+t:e.$tagName$);var Fe=(e,t,s,n,a,i)=>{if(s!==n){let r=Ke(e,t),l=t.toLowerCase();if(o.vdomClass&&t==="class"){let c=e.classList,d=ze(s),u=ze(n);c.remove(...d.filter(h=>h&&!u.includes(h))),c.add(...u.filter(h=>h&&!d.includes(h)))}else if(o.vdomStyle&&t==="style"){if(o.updatable)for(let c in s)(!n||n[c]==null)&&(!o.hydrateServerSide&&c.includes("-")?e.style.removeProperty(c):e.style[c]="");for(let c in n)(!s||n[c]!==s[c])&&(!o.hydrateServerSide&&c.includes("-")?e.style.setProperty(c,n[c]):e.style[c]=n[c])}else if(!(o.vdomKey&&t==="key")){if(o.vdomRef&&t==="ref")n&&n(e);else if(o.vdomListener&&(o.lazyLoad?!r:!e.__lookupSetter__(t))&&t[0]==="o"&&t[1]==="n")t[2]==="-"?t=t.slice(3):Ke(z,l)?t=l.slice(2):t=l[2]+t.slice(3),s&&p.rel(e,t,s,!1),n&&p.ael(e,t,n,!1);else if(o.vdomPropOrAttr){let c=me(n);if((r||c&&n!==null)&&!a)try{if(e.tagName.includes("-"))e[t]=n;else{let u=n==null?"":n;t==="list"?r=!1:(s==null||e[t]!=u)&&(e[t]=u)}}catch(u){}let d=!1;o.vdomXlink&&l!==(l=l.replace(/^xlink\:?/,""))&&(t=l,d=!0),n==null||n===!1?(n!==!1||e.getAttribute(t)==="")&&(o.vdomXlink&&d?e.removeAttributeNS(Be,t):e.removeAttribute(t)):(!r||i&4||a)&&!c&&(n=n===!0?"":n,o.vdomXlink&&d?e.setAttributeNS(Be,t,n):e.setAttribute(t,n))}}}},Gt=/\s/,ze=e=>e?e.split(Gt):[],et=(e,t,s,n)=>{let a=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,i=e&&e.$attrs$||Re,r=t.$attrs$||Re;if(o.updatable)for(n in i)n in r||Fe(a,n,i[n],void 0,s,t.$flags$);for(n in r)Fe(a,n,i[n],r[n],s,t.$flags$)},G=(e,t,s,n)=>{let a=t.$children$[s],i=0,r,l,c;if(o.slotRelocation&&!Ze&&(ge=!0,a.$tag$==="slot"&&(O&&n.classList.add(O+"-s"),a.$flags$|=a.$children$?2:1)),o.isDev&&a.$elm$&&J(`The JSX ${a.$text$!==null?`"${a.$text$}" text`:`"${a.$tag$}" element`} node should not be shared within the same renderer. The renderer caches element lookups in order to improve performance. However, a side effect from this is that the exact same JSX node should not be reused. For more information please see https://stenciljs.com/docs/templating-jsx#avoid-shared-jsx-nodes`),o.vdomText&&a.$text$!==null)r=a.$elm$=m.createTextNode(a.$text$);else if(o.slotRelocation&&a.$flags$&1)r=a.$elm$=o.isDebug||o.hydrateServerSide?Zt(a):m.createTextNode("");else{if(o.svg&&!y&&(y=a.$tag$==="svg"),r=a.$elm$=o.svg?m.createElementNS(y?_t:Pt,o.slotRelocation&&a.$flags$&2?"slot-fb":a.$tag$):m.createElement(o.slotRelocation&&a.$flags$&2?"slot-fb":a.$tag$),o.svg&&y&&a.$tag$==="foreignObject"&&(y=!1),o.vdomAttribute&&et(null,a,y),(o.shadowDom||o.scoped)&&Ft(O)&&r["s-si"]!==O&&r.classList.add(r["s-si"]=O),a.$children$)for(i=0;i<a.$children$.length;++i)l=G(e,a,i,r),l&&r.appendChild(l);o.svg&&(a.$tag$==="svg"?y=!1:r.tagName==="foreignObject"&&(y=!0))}return o.slotRelocation&&(r["s-hn"]=_,a.$flags$&3&&(r["s-sr"]=!0,r["s-cr"]=Je,r["s-sn"]=a.$name$||"",c=e&&e.$children$&&e.$children$[s],c&&c.$tag$===a.$tag$&&e.$elm$&&H(e.$elm$,!1))),r},H=(e,t)=>{p.$flags$|=1;let s=e.childNodes;for(let n=s.length-1;n>=0;n--){let a=s[n];a["s-hn"]!==_&&a["s-ol"]&&(nt(a).insertBefore(a,be(a)),a["s-ol"].remove(),a["s-ol"]=void 0,ge=!0),t&&H(a,t)}p.$flags$&=-2},tt=(e,t,s,n,a,i)=>{let r=o.slotRelocation&&e["s-cr"]&&e["s-cr"].parentNode||e,l;for(o.shadowDom&&r.shadowRoot&&r.tagName===_&&(r=r.shadowRoot);a<=i;++a)n[a]&&(l=G(null,s,a,e),l&&(n[a].$elm$=l,r.insertBefore(l,o.slotRelocation?be(t):t)))},st=(e,t,s,n,a)=>{for(;t<=s;++t)(n=e[t])&&(a=n.$elm$,it(n),o.slotRelocation&&(Q=!0,a["s-ol"]?a["s-ol"].remove():H(a,!0)),a.remove())},Jt=(e,t,s,n)=>{let a=0,i=0,r=0,l=0,c=t.length-1,d=t[0],u=t[c],h=n.length-1,f=n[0],g=n[h],v,L;for(;a<=c&&i<=h;)if(d==null)d=t[++a];else if(u==null)u=t[--c];else if(f==null)f=n[++i];else if(g==null)g=n[--h];else if(K(d,f))B(d,f),d=t[++a],f=n[++i];else if(K(u,g))B(u,g),u=t[--c],g=n[--h];else if(K(d,g))o.slotRelocation&&(d.$tag$==="slot"||g.$tag$==="slot")&&H(d.$elm$.parentNode,!1),B(d,g),e.insertBefore(d.$elm$,u.$elm$.nextSibling),d=t[++a],g=n[--h];else if(K(u,f))o.slotRelocation&&(d.$tag$==="slot"||g.$tag$==="slot")&&H(u.$elm$.parentNode,!1),B(u,f),e.insertBefore(u.$elm$,d.$elm$),u=t[--c],f=n[++i];else{if(r=-1,o.vdomKey){for(l=a;l<=c;++l)if(t[l]&&t[l].$key$!==null&&t[l].$key$===f.$key$){r=l;break}}o.vdomKey&&r>=0?(L=t[r],L.$tag$!==f.$tag$?v=G(t&&t[i],s,r,e):(B(L,f),t[r]=void 0,v=L.$elm$),f=n[++i]):(v=G(t&&t[i],s,i,e),f=n[++i]),v&&(o.slotRelocation?nt(d.$elm$).insertBefore(v,be(d.$elm$)):d.$elm$.parentNode.insertBefore(v,d.$elm$))}a>c?tt(e,n[h+1]==null?null:n[h+1].$elm$,s,n,i,h):o.updatable&&i>h&&st(t,a,c)},K=(e,t)=>e.$tag$===t.$tag$?o.slotRelocation&&e.$tag$==="slot"?e.$name$===t.$name$:o.vdomKey?e.$key$===t.$key$:!0:!1,be=e=>e&&e["s-ol"]||e,nt=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,B=(e,t)=>{let s=t.$elm$=e.$elm$,n=e.$children$,a=t.$children$,i=t.$tag$,r=t.$text$,l;!o.vdomText||r===null?(o.svg&&(y=i==="svg"?!0:i==="foreignObject"?!1:y),(o.vdomAttribute||o.reflect)&&(o.slot&&i==="slot"||et(e,t,y)),o.updatable&&n!==null&&a!==null?Jt(s,n,t,a):a!==null?(o.updatable&&o.vdomText&&e.$text$!==null&&(s.textContent=""),tt(s,null,t,a,0,a.length-1)):o.updatable&&n!==null&&st(n,0,n.length-1),o.svg&&y&&i==="svg"&&(y=!1)):o.vdomText&&o.slotRelocation&&(l=s["s-cr"])?l.parentNode.textContent=r:o.vdomText&&e.$text$!==r&&(s.data=r)},ot=e=>{let t=e.childNodes,s,n,a,i,r,l;for(n=0,a=t.length;n<a;n++)if(s=t[n],s.nodeType===1){if(s["s-sr"]){for(r=s["s-sn"],s.hidden=!1,i=0;i<a;i++)if(l=t[i].nodeType,t[i]["s-hn"]!==s["s-hn"]||r!==""){if(l===1&&r===t[i].getAttribute("slot")){s.hidden=!0;break}}else if(l===1||l===3&&t[i].textContent.trim()!==""){s.hidden=!0;break}}ot(s)}},b=[],at=e=>{let t,s,n,a,i,r,l=0,c=e.childNodes,d=c.length;for(;l<d;l++){if(t=c[l],t["s-sr"]&&(s=t["s-cr"])&&s.parentNode)for(n=s.parentNode.childNodes,a=t["s-sn"],r=n.length-1;r>=0;r--)s=n[r],!s["s-cn"]&&!s["s-nr"]&&s["s-hn"]!==t["s-hn"]&&(Ye(s,a)?(i=b.find(u=>u.$nodeToRelocate$===s),Q=!0,s["s-sn"]=s["s-sn"]||a,i?i.$slotRefNode$=t:b.push({$slotRefNode$:t,$nodeToRelocate$:s}),s["s-sr"]&&b.map(u=>{Ye(u.$nodeToRelocate$,s["s-sn"])&&(i=b.find(h=>h.$nodeToRelocate$===s),i&&!u.$slotRefNode$&&(u.$slotRefNode$=i.$slotRefNode$))})):b.some(u=>u.$nodeToRelocate$===s)||b.push({$nodeToRelocate$:s}));t.nodeType===1&&at(t)}},Ye=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t?!0:t==="",it=e=>{o.vdomRef&&(e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(it))},He=(e,t)=>{let s=e.$hostElement$,n=e.$cmpMeta$,a=e.$vnode$||P(null,null),i=ue(t)?t:$(null,null,t);if(_=s.tagName,o.isDev&&Array.isArray(t)&&t.some(ue))throw new Error(`The <Host> must be the single root component.
6
6
  Looks like the render() function of "${_.toLowerCase()}" is returning an array that contains the <Host>.
7
7
 
8
8
  The render() function should look like this instead:
@@ -13,14 +13,14 @@ render() {
13
13
  <Host>{content}</Host>
14
14
  );
15
15
  }
16
- `);if(o.reflect&&n.$attrsToReflect$&&(i.$attrs$=i.$attrs$||{},n.$attrsToReflect$.map(([r,l])=>i.$attrs$[l]=s[r])),i.$tag$=null,i.$flags$|=4,e.$vnode$=i,i.$elm$=a.$elm$=o.shadowDom&&s.shadowRoot||s,(o.scoped||o.shadowDom)&&(O=s["s-sc"]),o.slotRelocation&&(Je=s["s-cr"],Ze=z&&(n.$flags$&1)!==0,Q=!1),B(a,i),o.slotRelocation){if(p.$flags$|=1,ge){at(i.$elm$);let r,l,c,d,u,h,f=0;for(;f<b.length;f++)r=b[f],l=r.$nodeToRelocate$,l["s-ol"]||(c=o.isDebug||o.hydrateServerSide?Vt(l):m.createTextNode(""),c["s-nr"]=l,l.parentNode.insertBefore(l["s-ol"]=c,l));for(f=0;f<b.length;f++)if(r=b[f],l=r.$nodeToRelocate$,r.$slotRefNode$){for(d=r.$slotRefNode$.parentNode,u=r.$slotRefNode$.nextSibling,c=l["s-ol"];c=c.previousSibling;)if(h=c["s-nr"],h&&h["s-sn"]===l["s-sn"]&&d===h.parentNode&&(h=h.nextSibling,!h||!h["s-nr"])){u=h;break}(!u&&d!==l.parentNode||l.nextSibling!==u)&&l!==u&&(!l["s-hn"]&&l["s-ol"]&&(l["s-hn"]=l["s-ol"].parentNode.nodeName),d.insertBefore(l,u))}else l.nodeType===1&&(l.hidden=!0)}Q&&ot(i.$elm$),p.$flags$&=-2,b.length=0}},Zt=e=>m.createComment(`<slot${e.$name$?' name="'+e.$name$+'"':""}> (host=${_.toLowerCase()})`),Vt=e=>m.createComment("org-location for "+(e.localName?`<${e.localName}> (host=${e["s-hn"]})`:`[${e.textContent}]`)),rt=(e,t)=>{o.asyncLoading&&t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(s=>e.$onRenderResolve$=s))},Se=(e,t)=>{if(o.taskQueue&&o.updatable&&(e.$flags$|=16),o.asyncLoading&&e.$flags$&4){e.$flags$|=512;return}rt(e,e.$ancestorComponent$);let s=()=>es(e,t);return o.taskQueue?ys(s):s()},es=(e,t)=>{let s=e.$hostElement$,n=C("scheduleUpdate",e.$cmpMeta$.$tagName$),a=o.lazyLoad?e.$lazyInstance$:s,i;return t?(o.lazyLoad&&o.hostListener&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(([r,l])=>S(a,r,l)),e.$queuedListeners$=null)),R(s,"componentWillLoad"),o.cmpWillLoad&&(i=S(a,"componentWillLoad"))):(R(s,"componentWillUpdate"),o.cmpWillUpdate&&(i=S(a,"componentWillUpdate"))),R(s,"componentWillRender"),o.cmpWillRender&&(i=je(i,()=>S(a,"componentWillRender"))),n(),je(i,()=>ts(e,a,t))},ts=async(e,t,s)=>{let n=e.$hostElement$,a=C("update",e.$cmpMeta$.$tagName$),i=n["s-rc"];o.style&&s&&Xt(e);let r=C("render",e.$cmpMeta$.$tagName$);if(o.isDev&&(e.$flags$|=1024),o.hydrateServerSide?await Ue(e,t,n):Ue(e,t,n),o.cssVarShim&&p.$cssShim$&&p.$cssShim$.updateHost(n),o.isDev&&(e.$renderCount$++,e.$flags$&=-1025),o.hydrateServerSide)try{ct(n),s&&(e.$cmpMeta$.$flags$&1?n["s-en"]="":e.$cmpMeta$.$flags$&2&&(n["s-en"]="c"))}catch(l){k(l,n)}if(o.asyncLoading&&i&&(i.map(l=>l()),n["s-rc"]=void 0),r(),a(),o.asyncLoading){let l=n["s-p"],c=()=>We(e);l.length===0?c():(Promise.all(l).then(c),e.$flags$|=4,l.length=0)}else We(e)},Ue=(e,t,s)=>{let n=!!o.allRenderFn,a=!!o.lazyLoad,i=!!o.taskQueue,r=!!o.updatable;try{if(Ee=t,t=(n||t.render)&&t.render(),r&&i&&(e.$flags$&=-17),(r||a)&&(e.$flags$|=2),o.hasRenderFn||o.reflect)if(o.vdomRender||o.reflect){if(o.hydrateServerSide)return Promise.resolve(t).then(l=>He(e,l));He(e,t)}else s.textContent=t}catch(l){k(l,e.$hostElement$)}return Ee=null,null};var We=e=>{let t=e.$cmpMeta$.$tagName$,s=e.$hostElement$,n=C("postUpdate",t),a=o.lazyLoad?e.$lazyInstance$:s,i=e.$ancestorComponent$;o.cmpDidRender&&(o.isDev&&(e.$flags$|=1024),S(a,"componentDidRender"),o.isDev&&(e.$flags$&=-1025)),R(s,"componentDidRender"),e.$flags$&64?(o.cmpDidUpdate&&(o.isDev&&(e.$flags$|=1024),S(a,"componentDidUpdate"),o.isDev&&(e.$flags$&=-1025)),R(s,"componentDidUpdate"),n()):(e.$flags$|=64,o.asyncLoading&&o.cssAnnotations&&lt(s),o.cmpDidLoad&&(o.isDev&&(e.$flags$|=2048),S(a,"componentDidLoad"),o.isDev&&(e.$flags$&=-2049)),R(s,"componentDidLoad"),n(),o.asyncLoading&&(e.$onReadyResolve$(s),i||ss(t))),o.hotModuleReplacement&&s["s-hmr-load"]&&s["s-hmr-load"](),o.method&&o.lazyLoad&&e.$onInstanceResolve$(s),o.asyncLoading&&(e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&ee(()=>Se(e,!1)),e.$flags$&=-517)};var ss=e=>{o.cssAnnotations&&lt(m.documentElement),o.asyncQueue&&(p.$flags$|=2),ee(()=>De(F,"appload",{detail:{namespace:q}})),o.profile&&performance.measure&&performance.measure(`[Stencil] ${q} initial load (by ${e})`,"st:app:start")},S=(e,t,s)=>{if(e&&e[t])try{return e[t](s)}catch(n){k(n)}},je=(e,t)=>e&&e.then?e.then(t):t(),R=(e,t)=>{o.lifecycleDOMEvents&&De(e,"stencil_"+t,{bubbles:!0,composed:!0,detail:{namespace:q}})},lt=e=>o.hydratedClass?e.classList.add("hydrated"):o.hydratedAttribute?e.setAttribute("hydrated",""):void 0,ct=e=>{let t=e.children;if(t!=null)for(let s=0,n=t.length;s<n;s++){let a=t[s];typeof a.connectedCallback=="function"&&a.connectedCallback(),ct(a)}},ns=(e,t)=>M(e).$instanceValues$.get(t),os=(e,t,s,n)=>{let a=M(e),i=o.lazyLoad?a.$hostElement$:e,r=a.$instanceValues$.get(t),l=a.$flags$,c=o.lazyLoad?a.$lazyInstance$:i;s=qt(s,n.$members$[t][0]);let d=Number.isNaN(r)&&Number.isNaN(s),u=s!==r&&!d;if((!o.lazyLoad||!(l&8)||r===void 0)&&u&&(a.$instanceValues$.set(t,s),o.isDev&&(a.$flags$&1024?U(`The state/prop "${t}" changed during rendering. This can potentially lead to infinite-loops and other bugs.`,`
16
+ `);if(o.reflect&&n.$attrsToReflect$&&(i.$attrs$=i.$attrs$||{},n.$attrsToReflect$.map(([r,l])=>i.$attrs$[l]=s[r])),i.$tag$=null,i.$flags$|=4,e.$vnode$=i,i.$elm$=a.$elm$=o.shadowDom&&s.shadowRoot||s,(o.scoped||o.shadowDom)&&(O=s["s-sc"]),o.slotRelocation&&(Je=s["s-cr"],Ze=F&&(n.$flags$&1)!==0,Q=!1),B(a,i),o.slotRelocation){if(p.$flags$|=1,ge){at(i.$elm$);let r,l,c,d,u,h,f=0;for(;f<b.length;f++)r=b[f],l=r.$nodeToRelocate$,l["s-ol"]||(c=o.isDebug||o.hydrateServerSide?Vt(l):m.createTextNode(""),c["s-nr"]=l,l.parentNode.insertBefore(l["s-ol"]=c,l));for(f=0;f<b.length;f++)if(r=b[f],l=r.$nodeToRelocate$,r.$slotRefNode$){for(d=r.$slotRefNode$.parentNode,u=r.$slotRefNode$.nextSibling,c=l["s-ol"];c=c.previousSibling;)if(h=c["s-nr"],h&&h["s-sn"]===l["s-sn"]&&d===h.parentNode&&(h=h.nextSibling,!h||!h["s-nr"])){u=h;break}(!u&&d!==l.parentNode||l.nextSibling!==u)&&l!==u&&(!l["s-hn"]&&l["s-ol"]&&(l["s-hn"]=l["s-ol"].parentNode.nodeName),d.insertBefore(l,u))}else l.nodeType===1&&(l.hidden=!0)}Q&&ot(i.$elm$),p.$flags$&=-2,b.length=0}},Zt=e=>m.createComment(`<slot${e.$name$?' name="'+e.$name$+'"':""}> (host=${_.toLowerCase()})`),Vt=e=>m.createComment("org-location for "+(e.localName?`<${e.localName}> (host=${e["s-hn"]})`:`[${e.textContent}]`)),rt=(e,t)=>{o.asyncLoading&&t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(s=>e.$onRenderResolve$=s))},Se=(e,t)=>{if(o.taskQueue&&o.updatable&&(e.$flags$|=16),o.asyncLoading&&e.$flags$&4){e.$flags$|=512;return}rt(e,e.$ancestorComponent$);let s=()=>es(e,t);return o.taskQueue?ys(s):s()},es=(e,t)=>{let s=e.$hostElement$,n=C("scheduleUpdate",e.$cmpMeta$.$tagName$),a=o.lazyLoad?e.$lazyInstance$:s,i;return t?(o.lazyLoad&&o.hostListener&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(([r,l])=>S(a,r,l)),e.$queuedListeners$=null)),R(s,"componentWillLoad"),o.cmpWillLoad&&(i=S(a,"componentWillLoad"))):(R(s,"componentWillUpdate"),o.cmpWillUpdate&&(i=S(a,"componentWillUpdate"))),R(s,"componentWillRender"),o.cmpWillRender&&(i=je(i,()=>S(a,"componentWillRender"))),n(),je(i,()=>ts(e,a,t))},ts=async(e,t,s)=>{let n=e.$hostElement$,a=C("update",e.$cmpMeta$.$tagName$),i=n["s-rc"];o.style&&s&&Xt(e);let r=C("render",e.$cmpMeta$.$tagName$);if(o.isDev&&(e.$flags$|=1024),o.hydrateServerSide?await Ue(e,t,n):Ue(e,t,n),o.cssVarShim&&p.$cssShim$&&p.$cssShim$.updateHost(n),o.isDev&&(e.$renderCount$++,e.$flags$&=-1025),o.hydrateServerSide)try{ct(n),s&&(e.$cmpMeta$.$flags$&1?n["s-en"]="":e.$cmpMeta$.$flags$&2&&(n["s-en"]="c"))}catch(l){k(l,n)}if(o.asyncLoading&&i&&(i.map(l=>l()),n["s-rc"]=void 0),r(),a(),o.asyncLoading){let l=n["s-p"],c=()=>We(e);l.length===0?c():(Promise.all(l).then(c),e.$flags$|=4,l.length=0)}else We(e)},Ue=(e,t,s)=>{let n=!!o.allRenderFn,a=!!o.lazyLoad,i=!!o.taskQueue,r=!!o.updatable;try{if(Ee=t,t=(n||t.render)&&t.render(),r&&i&&(e.$flags$&=-17),(r||a)&&(e.$flags$|=2),o.hasRenderFn||o.reflect)if(o.vdomRender||o.reflect){if(o.hydrateServerSide)return Promise.resolve(t).then(l=>He(e,l));He(e,t)}else s.textContent=t}catch(l){k(l,e.$hostElement$)}return Ee=null,null};var We=e=>{let t=e.$cmpMeta$.$tagName$,s=e.$hostElement$,n=C("postUpdate",t),a=o.lazyLoad?e.$lazyInstance$:s,i=e.$ancestorComponent$;o.cmpDidRender&&(o.isDev&&(e.$flags$|=1024),S(a,"componentDidRender"),o.isDev&&(e.$flags$&=-1025)),R(s,"componentDidRender"),e.$flags$&64?(o.cmpDidUpdate&&(o.isDev&&(e.$flags$|=1024),S(a,"componentDidUpdate"),o.isDev&&(e.$flags$&=-1025)),R(s,"componentDidUpdate"),n()):(e.$flags$|=64,o.asyncLoading&&o.cssAnnotations&&lt(s),o.cmpDidLoad&&(o.isDev&&(e.$flags$|=2048),S(a,"componentDidLoad"),o.isDev&&(e.$flags$&=-2049)),R(s,"componentDidLoad"),n(),o.asyncLoading&&(e.$onReadyResolve$(s),i||ss(t))),o.hotModuleReplacement&&s["s-hmr-load"]&&s["s-hmr-load"](),o.method&&o.lazyLoad&&e.$onInstanceResolve$(s),o.asyncLoading&&(e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&ee(()=>Se(e,!1)),e.$flags$&=-517)};var ss=e=>{o.cssAnnotations&&lt(m.documentElement),o.asyncQueue&&(p.$flags$|=2),ee(()=>ve(z,"appload",{detail:{namespace:q}})),o.profile&&performance.measure&&performance.measure(`[Stencil] ${q} initial load (by ${e})`,"st:app:start")},S=(e,t,s)=>{if(e&&e[t])try{return e[t](s)}catch(n){k(n)}},je=(e,t)=>e&&e.then?e.then(t):t(),R=(e,t)=>{o.lifecycleDOMEvents&&ve(e,"stencil_"+t,{bubbles:!0,composed:!0,detail:{namespace:q}})},lt=e=>o.hydratedClass?e.classList.add("hydrated"):o.hydratedAttribute?e.setAttribute("hydrated",""):void 0,ct=e=>{let t=e.children;if(t!=null)for(let s=0,n=t.length;s<n;s++){let a=t[s];typeof a.connectedCallback=="function"&&a.connectedCallback(),ct(a)}},ns=(e,t)=>M(e).$instanceValues$.get(t),os=(e,t,s,n)=>{let a=M(e),i=o.lazyLoad?a.$hostElement$:e,r=a.$instanceValues$.get(t),l=a.$flags$,c=o.lazyLoad?a.$lazyInstance$:i;s=qt(s,n.$members$[t][0]);let d=Number.isNaN(r)&&Number.isNaN(s),u=s!==r&&!d;if((!o.lazyLoad||!(l&8)||r===void 0)&&u&&(a.$instanceValues$.set(t,s),o.isDev&&(a.$flags$&1024?U(`The state/prop "${t}" changed during rendering. This can potentially lead to infinite-loops and other bugs.`,`
17
17
  Element`,i,`
18
18
  New value`,s,`
19
19
  Old value`,r):a.$flags$&2048&&U(`The state/prop "${t}" changed during "componentDidLoad()", this triggers extra re-renders, try to setup on "componentWillLoad()"`,`
20
20
  Element`,i,`
21
21
  New value`,s,`
22
22
  Old value`,r)),!o.lazyLoad||c)){if(o.watchCallback&&n.$watchers$&&l&128){let h=n.$watchers$[t];h&&h.map(f=>{try{c[f](s,r,t)}catch(g){k(g,i)}})}if(o.updatable&&(l&18)===2){if(o.cmpShouldUpdate&&c.componentShouldUpdate&&c.componentShouldUpdate(s,r,t)===!1)return;Se(a,!1)}}},dt=(e,t,s)=>{if(o.member&&t.$members$){o.watchCallback&&e.watchers&&(t.$watchers$=e.watchers);let n=Object.entries(t.$members$),a=e.prototype;if(n.map(([i,[r]])=>{(o.prop||o.state)&&(r&31||(!o.lazyLoad||s&2)&&r&32)?Object.defineProperty(a,i,{get(){return ns(this,i)},set(l){if(o.isDev){let c=M(this);(s&1)===0&&(c.$flags$&8)===0&&(r&31)!==0&&(r&1024)===0&&U(`@Prop() "${i}" on <${t.$tagName$}> is immutable but was modified from within the component.
23
- More information: https://stenciljs.com/docs/properties#prop-mutability`)}os(this,i,l,t)},configurable:!0,enumerable:!0}):o.lazyLoad&&o.method&&s&1&&r&64&&Object.defineProperty(a,i,{value(...l){let c=M(this);return c.$onInstancePromise$.then(()=>c.$lazyInstance$[i](...l))}})}),o.observeAttribute&&(!o.lazyLoad||s&1)){let i=new Map;a.attributeChangedCallback=function(r,l,c){p.jmp(()=>{let d=i.get(r);if(this.hasOwnProperty(d))c=this[d],delete this[d];else if(a.hasOwnProperty(d)&&typeof this[d]=="number"&&this[d]==c)return;this[d]=c===null&&typeof this[d]=="boolean"?!1:c})},e.observedAttributes=n.filter(([r,l])=>l[0]&15).map(([r,l])=>{let c=l[1]||r;return i.set(c,r),o.reflect&&l[0]&512&&t.$attrsToReflect$.push([r,c]),c})}}return e},qe=async(e,t,s,n,a)=>{if((o.lazyLoad||o.hydrateServerSide||o.style)&&(t.$flags$&32)===0){if(o.lazyLoad||o.hydrateClientSide){if(t.$flags$|=32,a=hs(s,t,n),a.then){let c=Et(`st:load:${s.$tagName$}:${t.$modeName$}`,`[Stencil] Load module for <${s.$tagName$}>`);a=await a,c()}if((o.isDev||o.isDebug)&&!a)throw new Error(`Constructor for "${s.$tagName$}#${t.$modeName$}" was not found`);o.member&&!a.isProxied&&(o.watchCallback&&(s.$watchers$=a.watchers),dt(a,s,2),a.isProxied=!0);let l=C("createInstance",s.$tagName$);o.member&&(t.$flags$|=8);try{new a(t)}catch(c){k(c)}o.member&&(t.$flags$&=-9),o.watchCallback&&(t.$flags$|=128),l(),ut(t.$lazyInstance$)}else a=e.constructor,t.$flags$|=32,customElements.whenDefined(s.$tagName$).then(()=>t.$flags$|=128);if(o.style&&a.style){let l=a.style;o.mode&&typeof l!="string"&&(l=l[t.$modeName$=jt(e)],o.hydrateServerSide&&t.$modeName$&&e.setAttribute("s-mode",t.$modeName$));let c=Ve(s,t.$modeName$);if(!Z.has(c)){let d=C("registerStyles",s.$tagName$);!o.hydrateServerSide&&o.shadowDom&&o.shadowDomShim&&s.$flags$&8&&(l=await import("./shadow-css.G7TZ65TM.js").then(u=>u.scopeCss(l,c,!1))),Qt(c,l,!!(s.$flags$&1)),d()}}}let i=t.$ancestorComponent$,r=()=>Se(t,!0);o.asyncLoading&&i&&i["s-rc"]?i["s-rc"].push(r):r()},ut=e=>{o.lazyLoad&&o.connectedCallback&&S(e,"connectedCallback")},as=e=>{if((p.$flags$&1)===0){let t=M(e),s=t.$cmpMeta$,n=C("connectedCallback",s.$tagName$);if(o.hostListenerTargetParent&&pe(e,t,s.$listeners$,!0),t.$flags$&1)pe(e,t,s.$listeners$,!1),ut(t.$lazyInstance$);else{t.$flags$|=1;let a;if(o.hydrateClientSide&&(a=e.getAttribute(de),a)){if(o.shadowDom&&z&&s.$flags$&1){let i=o.mode?$e(e.shadowRoot,s,e.getAttribute("s-mode")):$e(e.shadowRoot,s);e.classList.remove(i+"-h",i+"-s")}Wt(e,s.$tagName$,a,t)}if(o.slotRelocation&&!a&&(o.hydrateServerSide||(o.slot||o.shadowDom)&&s.$flags$&12)&&is(e),o.asyncLoading){let i=e;for(;i=i.parentNode||i.host;)if(o.hydrateClientSide&&i.nodeType===1&&i.hasAttribute("s-id")&&i["s-p"]||i["s-p"]){rt(t,t.$ancestorComponent$=i);break}}o.prop&&!o.hydrateServerSide&&s.$members$&&Object.entries(s.$members$).map(([i,[r]])=>{if(r&31&&e.hasOwnProperty(i)){let l=e[i];delete e[i],e[i]=l}}),o.initializeNextTick?ee(()=>qe(e,t,s)):qe(e,t,s)}n()}},is=e=>{let t=e["s-cr"]=m.createComment(o.isDebug?`content-ref (host=${e.localName})`:"");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)},rs=e=>{if((p.$flags$&1)===0){let t=M(e),s=o.lazyLoad?t.$lazyInstance$:e;o.hostListener&&t.$rmListeners$&&(t.$rmListeners$.map(n=>n()),t.$rmListeners$=void 0),o.cssVarShim&&p.$cssShim$&&p.$cssShim$.removeHost(e),o.lazyLoad&&o.disconnectedCallback&&S(s,"disconnectedCallback"),o.cmpDidUnload&&S(s,"componentDidUnload")}};var ht=(e,t)=>{let s={$flags$:t[0],$tagName$:t[1]};o.member&&(s.$members$=t[2]),o.hostListener&&(s.$listeners$=t[3]),o.watchCallback&&(s.$watchers$=e.$watchers$),o.reflect&&(s.$attrsToReflect$=[]),o.shadowDom&&!z&&s.$flags$&1&&(s.$flags$|=8);let n=e.prototype.connectedCallback,a=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__registerHost(){us(this,s)},connectedCallback(){as(this),o.connectedCallback&&n&&n.call(this)},disconnectedCallback(){rs(this),o.disconnectedCallback&&a&&a.call(this)},__attachShadow(){z?o.shadowDelegatesFocus?this.attachShadow({mode:"open",delegatesFocus:!!(s.$flags$&16)}):this.attachShadow({mode:"open"}):this.shadowRoot=this}}),e.is=s.$tagName$,dt(e,s,3)};var pe=(e,t,s,n)=>{o.hostListener&&s&&(o.hostListenerTargetParent&&(n?s=s.filter(([a])=>a&32):s=s.filter(([a])=>!(a&32))),s.map(([a,i,r])=>{let l=o.hostListenerTarget?cs(e,a):e,c=ls(t,r),d=ds(a);p.ael(l,i,c,d),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>p.rel(l,i,c,d))}))},ls=(e,t)=>s=>{try{o.lazyLoad?e.$flags$&256?e.$lazyInstance$[t](s):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,s]):e.$hostElement$[t](s)}catch(n){k(n)}},cs=(e,t)=>o.hostListenerTargetDocument&&t&4?m:o.hostListenerTargetWindow&&t&8?F:o.hostListenerTargetBody&&t&16?m.body:o.hostListenerTargetParent&&t&32?e.parentElement:e,ds=e=>$s?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0;var ft=new WeakMap,M=e=>ft.get(e);var us=(e,t)=>{let s={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return o.isDev&&(s.$renderCount$=0),o.method&&o.lazyLoad&&(s.$onInstancePromise$=new Promise(n=>s.$onInstanceResolve$=n)),o.asyncLoading&&(s.$onReadyPromise$=new Promise(n=>s.$onReadyResolve$=n),e["s-p"]=[],e["s-rc"]=[]),pe(e,s,t.$listeners$,!1),ft.set(e,s)},Ke=(e,t)=>t in e,k=(e,t)=>(Nt||console.error)(e,t),$t=o.isTesting?["STENCIL:"]:["%cstencil","color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"],J=(...e)=>console.error(...$t,...e),U=(...e)=>console.warn(...$t,...e);var Qe=new Map,hs=(e,t,s)=>{let n=e.$tagName$.replace(/-/g,"_"),a=e.$lazyBundleId$;if(o.isDev&&typeof a!="string"){J(`Trying to lazily load component <${e.$tagName$}> with style mode "${t.$modeName$}", but it does not exist.`);return}let i=o.hotModuleReplacement?!1:Qe.get(a);if(i)return i[n];return Mt(`./${a}.entry.js${o.hotModuleReplacement&&s?"?s-hmr="+s:""}`).then(r=>(o.hotModuleReplacement||Qe.set(a,r),r[n]),k)},Z=new Map,fs=[],F=typeof window!="undefined"?window:{},As=o.cssVarShim?F.CSS:null,m=F.document||{head:{}},pt=F.HTMLElement||class{},p={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,s,n)=>e.addEventListener(t,s,n),rel:(e,t,s,n)=>e.removeEventListener(t,s,n),ce:(e,t)=>new CustomEvent(e,t)};var z=o.shadowDomShim&&o.shadowDom?(m.head.attachShadow+"").indexOf("[native")>-1:!0,$s=(()=>{let e=!1;try{m.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=!0}}))}catch(t){}return e})(),ps=e=>Promise.resolve(e),gs=o.constructableCSS?(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch(e){}return!1})():!1,le=[],T=[],ce=[],ms=(e,t)=>s=>{e.push(s),X||(X=!0,t&&p.$flags$&4?ee(V):p.raf(V))},Xe=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(s){k(s)}e.length=0},Ge=(e,t)=>{let s=0,n=0;for(;s<e.length&&(n=performance.now())<t;)try{e[s++](n)}catch(a){k(a)}s===e.length?e.length=0:s!==0&&e.splice(0,s)},V=()=>{if(o.asyncQueue&&re++,Xe(le),o.asyncQueue){let e=(p.$flags$&6)===2?performance.now()+14*Math.ceil(re*.1):1/0;Ge(T,e),Ge(ce,e),T.length>0&&(ce.push(...T),T.length=0),(X=le.length+T.length+ce.length>0)?p.raf(V):re=0}else Xe(T),(X=le.length>0)&&p.raf(V)},ee=e=>ps().then(e);var ys=ms(T,!0);function te(e,t){let s=new Date(e);return s.setDate(s.getDate()+t),s}function vs(e,t,s){let n=[],a=we(e),i=a.getDay()===0?7:a.getDay(),r=se(e),l=r.getDay()===0?7:r.getDay(),c=s===1?7:s-1,d=[],u=[];if(t){let g=(7-s+i)%7,D=oe(a);for(;g>0;)d.push(D),D=oe(D),g-=1;d.reverse();let E=(7-l+c)%7,I=W(r);for(;E>0;)u.push(I),I=W(I),E-=1}let h=a;for(;h.getMonth()===e.getMonth();)n.push(h),h=W(h);return[...d,...n,...u]}function we(e){return A(new Date(`${String(St(e)).padStart(4,"0")}-${String(bt(e)).padStart(2,"0")}-01`))}function N(e){if(e instanceof Date)return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`}function se(e){let t=we(e);return t.setMonth(t.getMonth()+1),t.setDate(t.getDate()-1),t}function bt(e){return e.getMonth()+1}function Ds(e){return new Array(12).fill(void 0).map((t,s)=>{let n=A(new Date(`2006-${String(s+1).padStart(2,"0")}-01`));return Intl.DateTimeFormat(e,{month:"long"}).format(n)})}function W(e){return te(e,1)}function gt(e){let t=new Date(e);return t.setDate(1),t.setMonth(t.getMonth()+1),t}function mt(e){let t=new Date(e);return t.setFullYear(t.getFullYear()+1),t}function oe(e){return ne(e,1)}function yt(e){let t=new Date(e);return t.setDate(1),t.setMonth(t.getMonth()-1),t}function vt(e){let t=new Date(e);return t.setFullYear(t.getFullYear()-1),t}function bs(e,t){return new Array(7).fill(void 0).map((s,n)=>(e+n)%7+1).map(s=>{let n=A(new Date(`2006-01-0${s}`));return[Intl.DateTimeFormat(t,{weekday:"short"}).format(n).slice(0,3),Intl.DateTimeFormat(t,{weekday:"long"}).format(n)]})}function St(e){return e.getFullYear()}function Dt(e,t){if(!e||!t||!t.from||!t.to)return!1;let s=t.from<t.to?t.from:t.to,n=t.from<t.to?t.to:t.from;return e>=s&&e<=n}function x(e,t){return!e||!t?!1:e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function A(e){let t=new Date(e);return t.setMinutes(t.getMinutes()+t.getTimezoneOffset()),t}function ne(e,t){let s=new Date(e);return s.setDate(s.getDate()-t),s}var Ss=".visually-hidden.sc-wc-datepicker{position:absolute;overflow:hidden;width:1px;height:1px;white-space:nowrap;clip:rect(0 0 0 0);clip-path:inset(50%)}",ws={clearButton:"Clear value",monthSelect:"Select month",nextMonthButton:"Next month",nextYearButton:"Next year",picker:"Choose date",previousMonthButton:"Previous month",previousYearButton:"Previous year",todayButton:"Show today",yearSelect:"Select year"},Cs=ht(class extends pt{constructor(){super(),this.__registerHost(),this.selectDate=ve(this,"selectDate",7),this.changeMonth=ve(this,"changeMonth",7),this.disabled=!1,this.disableDate=()=>!1,this.elementClassName="wc-datepicker",this.firstDayOfWeek=0,this.labels=ws,this.locale=(navigator==null?void 0:navigator.language)||"en-US",this.showClearButton=!1,this.showMonthStepper=!0,this.showTodayButton=!1,this.showYearStepper=!1,this.startDate=N(new Date),this.maxSearchDays=365,this.goToRangeStartOnSelect=!0,this.init=()=>{this.currentDate=this.startDate?A(new Date(this.startDate)):new Date,this.updateWeekdays()},this.getAvailableDate=(e,t)=>{let s,n=!1;switch(t){case"previousDay":s=oe(e);break;case"nextDay":s=W(e);break;case"previousSameWeekDay":s=ne(e,7);break;case"nextSameWeekDay":s=te(e,7);break;case"firstOfMonth":s=we(e);break;case"lastOfMonth":s=se(e);break;case"previousMonth":s=yt(e);break;case"nextMonth":s=gt(e);break;case"previousYear":s=vt(e);break;case"nextYear":s=mt(e);break}for(;this.disableDate(s)&&!n;){switch(t){case"previousDay":case"lastOfMonth":s=oe(s);break;case"nextDay":case"firstOfMonth":case"previousMonth":case"nextMonth":case"previousYear":case"nextYear":s=W(s);break;case"previousSameWeekDay":s=ne(s,7);break;case"nextSameWeekDay":s=te(s,7);break}switch(t){case"firstOfMonth":case"lastOfMonth":case"previousYear":case"nextYear":n=s.getMonth()!==e.getMonth();break;case"previousMonth":n=s.getMonth()!==e.getMonth()-1;break;case"nextMonth":n=s.getMonth()!==e.getMonth()+1;break;default:n=!Dt(s,{from:ne(e,this.maxSearchDays),to:te(e,this.maxSearchDays)});break}}return n?e:s},this.nextMonth=()=>{this.updateCurrentDate(gt(this.currentDate))},this.nextYear=()=>{this.updateCurrentDate(mt(this.currentDate))},this.previousMonth=()=>{this.updateCurrentDate(yt(this.currentDate))},this.previousYear=()=>{this.updateCurrentDate(vt(this.currentDate))},this.showToday=()=>{this.updateCurrentDate(new Date)},this.clear=()=>{this.value=void 0,this.selectDate.emit(void 0)},this.onClick=e=>{if(this.disabled)return;let t=e.target.closest("[data-date]");if(!t)return;let s=A(new Date(t.dataset.date));this.updateCurrentDate(s),this.onSelectDate(s)},this.onMonthSelect=e=>{let t=+e.target.value-1,s=this.currentDate.getDate(),n=new Date(this.currentDate.getFullYear(),t,1),a=se(n).getDate(),i=Math.min(s,a),r=new Date(this.currentDate.getFullYear(),t,i);this.updateCurrentDate(r)},this.onYearSelect=e=>{let t=+e.target.value,s=e.target;isNaN(t)?(t=new Date().getFullYear(),s.value=String(t)):t<0?(t=0,s.value=String(t)):t>9999&&(t=9999,s.value=String(t));let n=this.currentDate.getDate(),a=this.currentDate.getMonth(),i=new Date;i.setFullYear(t,a,1);let r=se(i).getDate(),l=Math.min(n,r),c=new Date;c.setFullYear(t,a,l),this.updateCurrentDate(c)},this.onKeyDown=e=>{this.disabled||(e.code==="ArrowLeft"?(e.preventDefault(),this.updateCurrentDate(this.getAvailableDate(this.currentDate,"previousDay"),!0)):e.code==="ArrowRight"?(e.preventDefault(),this.updateCurrentDate(this.getAvailableDate(this.currentDate,"nextDay"),!0)):e.code==="ArrowUp"?(e.preventDefault(),this.updateCurrentDate(this.getAvailableDate(this.currentDate,"previousSameWeekDay"),!0)):e.code==="ArrowDown"?(e.preventDefault(),this.updateCurrentDate(this.getAvailableDate(this.currentDate,"nextSameWeekDay"),!0)):e.code==="PageUp"?(e.preventDefault(),e.shiftKey?this.updateCurrentDate(this.getAvailableDate(this.currentDate,"previousYear"),!0):this.updateCurrentDate(this.getAvailableDate(this.currentDate,"previousMonth"),!0)):e.code==="PageDown"?(e.preventDefault(),e.shiftKey?this.updateCurrentDate(this.getAvailableDate(this.currentDate,"nextYear"),!0):this.updateCurrentDate(this.getAvailableDate(this.currentDate,"nextMonth"),!0)):e.code==="Home"?(e.preventDefault(),this.updateCurrentDate(this.getAvailableDate(this.currentDate,"firstOfMonth"),!0)):e.code==="End"?(e.preventDefault(),this.updateCurrentDate(this.getAvailableDate(this.currentDate,"lastOfMonth"),!0)):(e.code==="Space"||e.code==="Enter")&&(e.preventDefault(),this.onSelectDate(this.currentDate)))},this.onMouseEnter=e=>{if(this.disabled)return;let t=A(new Date(e.target.closest("td").dataset.date));this.hoveredDate=t},this.onMouseLeave=()=>{this.hoveredDate=void 0}}componentWillLoad(){this.init()}watchFirstDayOfWeek(){this.updateWeekdays()}watchLocale(){this.locale||(this.locale=(navigator==null?void 0:navigator.language)||"en-US"),this.updateWeekdays()}watchRange(){this.value=void 0,this.selectDate.emit(void 0)}watchStartDate(){this.currentDate=this.startDate?A(new Date(this.startDate)):new Date}watchValue(){this.value&&(Array.isArray(this.value)?this.currentDate=this.value.length>1&&!this.goToRangeStartOnSelect?this.value[1]:this.value[0]:this.value instanceof Date&&(this.currentDate=this.value))}componentDidRender(){this.moveFocusAfterMonthChanged&&(this.focusDate(this.currentDate),this.moveFocusAfterMonthChanged=!1)}updateWeekdays(){this.weekdays=bs(this.firstDayOfWeek===0?7:this.firstDayOfWeek,this.locale)}getClassName(e){return e?`${this.elementClassName}__${e}`:this.elementClassName}getCalendarRows(){let e=vs(this.currentDate,!0,this.firstDayOfWeek===0?7:this.firstDayOfWeek),t=[];for(let s=0;s<e.length;s+=7){let n=e.slice(s,s+7);t.push(n)}return t}getTitle(){if(this.value)if(this.isRangeValue(this.value)){let e=Intl.DateTimeFormat(this.locale,{day:"numeric",month:"long",year:"numeric"}).format(this.value[0]),t=this.value[1]?Intl.DateTimeFormat(this.locale,{day:"numeric",month:"long",year:"numeric"}).format(this.value[1]):void 0;return t?`${e} - ${t}`:e}else return Intl.DateTimeFormat(this.locale,{day:"numeric",month:"long",year:"numeric"}).format(this.value)}focusDate(e){var t;(t=this.el.querySelector(`[data-date="${N(e)}"]`))===null||t===void 0||t.focus()}updateCurrentDate(e,t){let s=e.getMonth(),n=e.getFullYear();if(n>9999||n<0)return;(s!==this.currentDate.getMonth()||n!==this.currentDate.getFullYear())&&(this.changeMonth.emit({month:bt(e),year:St(e),day:e.getDate()}),t&&(this.moveFocusAfterMonthChanged=!0)),this.currentDate=e,t&&this.focusDate(this.currentDate)}onSelectDate(e){var t,s;if(!this.disableDate(e))if(this.isRangeValue(this.value)){let n=((t=this.value)===null||t===void 0?void 0:t[0])===void 0||this.value.length===2?[e]:[this.value[0],e];n.length===2&&n[0]>n[1]&&n.reverse();let a=n[1]===void 0?[N(n[0])]:[N(n[0]),N(n[1])];this.value=n,this.selectDate.emit(a)}else{if(((s=this.value)===null||s===void 0?void 0:s.getTime())===e.getTime())return;this.value=e,this.selectDate.emit(N(e))}}isRangeValue(e){return this.range}render(){let e=this.showTodayButton||this.showClearButton;return $(ye,null,$("div",{"aria-disabled":String(this.disabled),"aria-label":this.labels.picker,class:{[this.getClassName()]:!0,[`${this.getClassName()}--disabled`]:this.disabled},role:"group"},$("div",{class:this.getClassName("header")},$("span",{"aria-atomic":"true","aria-live":"polite",class:"visually-hidden"},this.getTitle()),this.showYearStepper&&$("button",{"aria-label":this.labels.previousYearButton,class:this.getClassName("previous-year-button"),disabled:this.disabled,innerHTML:this.previousYearButtonContent||void 0,onClick:this.previousYear,type:"button"},$("svg",{fill:"none",height:"24","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",stroke:"currentColor",viewBox:"0 0 24 24",width:"24"},$("polyline",{points:"11 17 6 12 11 7"}),$("polyline",{points:"18 17 13 12 18 7"}))),this.showMonthStepper&&$("button",{"aria-label":this.labels.previousMonthButton,class:this.getClassName("previous-month-button"),disabled:this.disabled,innerHTML:this.previousMonthButtonContent||void 0,onClick:this.previousMonth,type:"button"},$("svg",{fill:"none",height:"24","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",stroke:"currentColor",viewBox:"0 0 24 24",width:"24"},$("polyline",{points:"15 18 9 12 15 6"}))),$("span",{class:this.getClassName("current-month")},$("select",{title:this.labels.monthSelect,"aria-label":this.labels.monthSelect,class:this.getClassName("month-select"),disabled:this.disabled,name:"month",onChange:this.onMonthSelect},Ds(this.locale).map((t,s)=>$("option",{key:t,selected:this.currentDate.getMonth()===s,value:s+1},t))),$("input",{title:this.labels.yearSelect,"aria-label":this.labels.yearSelect,class:this.getClassName("year-select"),disabled:this.disabled,max:9999,maxLength:4,min:1,name:"year",onChange:this.onYearSelect,type:"number",value:this.currentDate.getFullYear()})),this.showMonthStepper&&$("button",{"aria-label":this.labels.nextMonthButton,class:this.getClassName("next-month-button"),disabled:this.disabled,innerHTML:this.nextMonthButtonContent||void 0,onClick:this.nextMonth,type:"button"},$("svg",{fill:"none",height:"24","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",stroke:"currentColor",viewBox:"0 0 24 24",width:"24"},$("polyline",{points:"9 18 15 12 9 6"}))),this.showYearStepper&&$("button",{"aria-label":this.labels.nextYearButton,class:this.getClassName("next-year-button"),disabled:this.disabled,innerHTML:this.nextYearButtonContent||void 0,onClick:this.nextYear,type:"button"},$("svg",{fill:"none",height:"24","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",stroke:"currentColor",viewBox:"0 0 24 24",width:"24"},$("polyline",{points:"13 17 18 12 13 7"}),$("polyline",{points:"6 17 11 12 6 7"})))),$("div",{class:this.getClassName("body")},$("table",{class:this.getClassName("calendar"),onKeyDown:this.onKeyDown,role:"grid"},$("thead",{class:this.getClassName("calendar-header")},$("tr",{class:this.getClassName("weekday-row")},this.weekdays.map(t=>$("th",{"aria-label":t[1],abbr:t[1],class:this.getClassName("weekday"),key:t[0],scope:"col"},$("span",null,t[0]))))),$("tbody",null,this.getCalendarRows().map(t=>{let s=`row-${t[0].getMonth()}-${t[0].getDate()}`;return $("tr",{class:this.getClassName("calendar-row"),key:s},t.map(n=>{var a,i,r,l,c;let d=x(n,this.currentDate),u=n.getMonth()!==this.currentDate.getMonth(),h=Array.isArray(this.value)?x(n,this.value[0])||x(n,this.value[1]):x(n,this.value),f=this.isRangeValue?Dt(n,{from:(a=this.value)===null||a===void 0?void 0:a[0],to:((i=this.value)===null||i===void 0?void 0:i[1])||this.hoveredDate||this.currentDate}):!1,g=!((r=this.value)===null||r===void 0)&&r[0]?[(l=this.value)===null||l===void 0?void 0:l[0],((c=this.value)===null||c===void 0?void 0:c[1])||this.hoveredDate].sort((Lt,Tt)=>Lt-Tt):[],D=this.range&&x(g[0],n),L=this.range&&x(g[1],n),E=x(n,new Date),I=this.disableDate(n),Ct=`cell-${n.getMonth()}-${n.getDate()}`,kt={[this.getClassName("date")]:!0,[this.getClassName("date--current")]:d,[this.getClassName("date--disabled")]:I,[this.getClassName("date--overflowing")]:u,[this.getClassName("date--today")]:E,[this.getClassName("date--selected")]:h,[this.getClassName("date--in-range")]:f,[this.getClassName("date--start")]:D,[this.getClassName("date--end")]:L},xt=h?"strong":E?"em":"span";return $("td",{"aria-disabled":String(I),"aria-selected":h?"true":void 0,"aria-current":E?"date":h?"true":void 0,class:kt,"data-date":N(n),key:Ct,onClick:this.onClick,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,role:"gridcell",tabIndex:x(n,this.currentDate)&&!this.disabled?0:-1},$(xt,{"aria-hidden":"true"},n.getDate()),$("span",{class:"visually-hidden"},Intl.DateTimeFormat(this.locale,{day:"numeric",month:"long",year:"numeric"}).format(n)))}))})))),e&&$("div",{class:this.getClassName("footer")},this.showTodayButton&&$("button",{class:this.getClassName("today-button"),disabled:this.disabled,innerHTML:this.todayButtonContent||void 0,onClick:this.showToday,type:"button"},this.labels.todayButton),this.showClearButton&&$("button",{class:this.getClassName("clear-button"),disabled:this.disabled,innerHTML:this.clearButtonContent||void 0,onClick:this.clear,type:"button"},this.labels.clearButton))))}get el(){return this}static get watchers(){return{firstDayOfWeek:["watchFirstDayOfWeek"],locale:["watchLocale"],range:["watchRange"],startDate:["watchStartDate"],value:["watchValue"]}}static get style(){return Ss}},[2,"wc-datepicker",{clearButtonContent:[1,"clear-button-content"],disabled:[4],disableDate:[16],elementClassName:[1,"element-class-name"],firstDayOfWeek:[2,"first-day-of-week"],range:[4],labels:[16],locale:[1],nextMonthButtonContent:[1,"next-month-button-content"],nextYearButtonContent:[1,"next-year-button-content"],previousMonthButtonContent:[1,"previous-month-button-content"],previousYearButtonContent:[1,"previous-year-button-content"],showClearButton:[4,"show-clear-button"],showMonthStepper:[4,"show-month-stepper"],showTodayButton:[4,"show-today-button"],showYearStepper:[4,"show-year-stepper"],startDate:[1,"start-date"],todayButtonContent:[1,"today-button-content"],value:[1040],maxSearchDays:[2,"max-search-days"],goToRangeStartOnSelect:[4,"go-to-range-start-on-select"],currentDate:[32],hoveredDate:[32],weekdays:[32]}]);var wt=Cs;customElements.define("dsa-internal-calendar",wt);var ks=1,v=class extends Me{constructor(){super(...arguments);this.localize=new Ne(this);this.value="";this.startDate=ie(new Date);this.range=!1}firstUpdated(){this.disableDate!==void 0&&(this.calendar.disableDate=this.disableDate),this.updateCalendarValue()}updateCalendarValue(){let s=this.parsedDateValue;this.calendar.value=s.length>1?s:s[0]}get parsedDateValue(){return this.value===""?[]:this.value.split(",").filter(s=>s!=="").map(s=>j(s))}handleDateSelection(s){let{detail:n}=s;if(n===void 0)return;let a=Array.isArray(n)?n.map(i=>j(i)):[j(n)];this.emit("dsa-date-selected",{detail:{dates:a}})}handleMonthSelection(s){let{month:n,year:a}=s.detail;this.emit("dsa-month-year-selected",{detail:{month:n,year:a}})}getLabels(){return{clearButton:this.localize.term("clearButton"),monthSelect:this.localize.term("monthSelect"),nextMonthButton:this.localize.term("nextMonthButton"),nextYearButton:this.localize.term("nextYearButton"),picker:this.localize.term(this.range?"pickerRange":"picker"),previousMonthButton:this.localize.term("previousMonthButton"),previousYearButton:this.localize.term("previousYearButton"),todayButton:this.localize.term("todayButton"),yearSelect:this.localize.term("yearSelect")}}handleDisableDateChange(){this.disableDate!==void 0&&(this.calendar.disableDate=this.disableDate)}handleValueChange(){if(this.value===""){this.calendar.value=void 0;return}this.updateCalendarValue()}render(){return ke`
23
+ More information: https://stenciljs.com/docs/properties#prop-mutability`)}os(this,i,l,t)},configurable:!0,enumerable:!0}):o.lazyLoad&&o.method&&s&1&&r&64&&Object.defineProperty(a,i,{value(...l){let c=M(this);return c.$onInstancePromise$.then(()=>c.$lazyInstance$[i](...l))}})}),o.observeAttribute&&(!o.lazyLoad||s&1)){let i=new Map;a.attributeChangedCallback=function(r,l,c){p.jmp(()=>{let d=i.get(r);if(this.hasOwnProperty(d))c=this[d],delete this[d];else if(a.hasOwnProperty(d)&&typeof this[d]=="number"&&this[d]==c)return;this[d]=c===null&&typeof this[d]=="boolean"?!1:c})},e.observedAttributes=n.filter(([r,l])=>l[0]&15).map(([r,l])=>{let c=l[1]||r;return i.set(c,r),o.reflect&&l[0]&512&&t.$attrsToReflect$.push([r,c]),c})}}return e},qe=async(e,t,s,n,a)=>{if((o.lazyLoad||o.hydrateServerSide||o.style)&&(t.$flags$&32)===0){if(o.lazyLoad||o.hydrateClientSide){if(t.$flags$|=32,a=hs(s,t,n),a.then){let c=Et(`st:load:${s.$tagName$}:${t.$modeName$}`,`[Stencil] Load module for <${s.$tagName$}>`);a=await a,c()}if((o.isDev||o.isDebug)&&!a)throw new Error(`Constructor for "${s.$tagName$}#${t.$modeName$}" was not found`);o.member&&!a.isProxied&&(o.watchCallback&&(s.$watchers$=a.watchers),dt(a,s,2),a.isProxied=!0);let l=C("createInstance",s.$tagName$);o.member&&(t.$flags$|=8);try{new a(t)}catch(c){k(c)}o.member&&(t.$flags$&=-9),o.watchCallback&&(t.$flags$|=128),l(),ut(t.$lazyInstance$)}else a=e.constructor,t.$flags$|=32,customElements.whenDefined(s.$tagName$).then(()=>t.$flags$|=128);if(o.style&&a.style){let l=a.style;o.mode&&typeof l!="string"&&(l=l[t.$modeName$=jt(e)],o.hydrateServerSide&&t.$modeName$&&e.setAttribute("s-mode",t.$modeName$));let c=Ve(s,t.$modeName$);if(!Z.has(c)){let d=C("registerStyles",s.$tagName$);!o.hydrateServerSide&&o.shadowDom&&o.shadowDomShim&&s.$flags$&8&&(l=await import("./shadow-css.G7TZ65TM.js").then(u=>u.scopeCss(l,c,!1))),Qt(c,l,!!(s.$flags$&1)),d()}}}let i=t.$ancestorComponent$,r=()=>Se(t,!0);o.asyncLoading&&i&&i["s-rc"]?i["s-rc"].push(r):r()},ut=e=>{o.lazyLoad&&o.connectedCallback&&S(e,"connectedCallback")},as=e=>{if((p.$flags$&1)===0){let t=M(e),s=t.$cmpMeta$,n=C("connectedCallback",s.$tagName$);if(o.hostListenerTargetParent&&pe(e,t,s.$listeners$,!0),t.$flags$&1)pe(e,t,s.$listeners$,!1),ut(t.$lazyInstance$);else{t.$flags$|=1;let a;if(o.hydrateClientSide&&(a=e.getAttribute(de),a)){if(o.shadowDom&&F&&s.$flags$&1){let i=o.mode?$e(e.shadowRoot,s,e.getAttribute("s-mode")):$e(e.shadowRoot,s);e.classList.remove(i+"-h",i+"-s")}Wt(e,s.$tagName$,a,t)}if(o.slotRelocation&&!a&&(o.hydrateServerSide||(o.slot||o.shadowDom)&&s.$flags$&12)&&is(e),o.asyncLoading){let i=e;for(;i=i.parentNode||i.host;)if(o.hydrateClientSide&&i.nodeType===1&&i.hasAttribute("s-id")&&i["s-p"]||i["s-p"]){rt(t,t.$ancestorComponent$=i);break}}o.prop&&!o.hydrateServerSide&&s.$members$&&Object.entries(s.$members$).map(([i,[r]])=>{if(r&31&&e.hasOwnProperty(i)){let l=e[i];delete e[i],e[i]=l}}),o.initializeNextTick?ee(()=>qe(e,t,s)):qe(e,t,s)}n()}},is=e=>{let t=e["s-cr"]=m.createComment(o.isDebug?`content-ref (host=${e.localName})`:"");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)},rs=e=>{if((p.$flags$&1)===0){let t=M(e),s=o.lazyLoad?t.$lazyInstance$:e;o.hostListener&&t.$rmListeners$&&(t.$rmListeners$.map(n=>n()),t.$rmListeners$=void 0),o.cssVarShim&&p.$cssShim$&&p.$cssShim$.removeHost(e),o.lazyLoad&&o.disconnectedCallback&&S(s,"disconnectedCallback"),o.cmpDidUnload&&S(s,"componentDidUnload")}};var ht=(e,t)=>{let s={$flags$:t[0],$tagName$:t[1]};o.member&&(s.$members$=t[2]),o.hostListener&&(s.$listeners$=t[3]),o.watchCallback&&(s.$watchers$=e.$watchers$),o.reflect&&(s.$attrsToReflect$=[]),o.shadowDom&&!F&&s.$flags$&1&&(s.$flags$|=8);let n=e.prototype.connectedCallback,a=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__registerHost(){us(this,s)},connectedCallback(){as(this),o.connectedCallback&&n&&n.call(this)},disconnectedCallback(){rs(this),o.disconnectedCallback&&a&&a.call(this)},__attachShadow(){F?o.shadowDelegatesFocus?this.attachShadow({mode:"open",delegatesFocus:!!(s.$flags$&16)}):this.attachShadow({mode:"open"}):this.shadowRoot=this}}),e.is=s.$tagName$,dt(e,s,3)};var pe=(e,t,s,n)=>{o.hostListener&&s&&(o.hostListenerTargetParent&&(n?s=s.filter(([a])=>a&32):s=s.filter(([a])=>!(a&32))),s.map(([a,i,r])=>{let l=o.hostListenerTarget?cs(e,a):e,c=ls(t,r),d=ds(a);p.ael(l,i,c,d),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>p.rel(l,i,c,d))}))},ls=(e,t)=>s=>{try{o.lazyLoad?e.$flags$&256?e.$lazyInstance$[t](s):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,s]):e.$hostElement$[t](s)}catch(n){k(n)}},cs=(e,t)=>o.hostListenerTargetDocument&&t&4?m:o.hostListenerTargetWindow&&t&8?z:o.hostListenerTargetBody&&t&16?m.body:o.hostListenerTargetParent&&t&32?e.parentElement:e,ds=e=>$s?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0;var ft=new WeakMap,M=e=>ft.get(e);var us=(e,t)=>{let s={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return o.isDev&&(s.$renderCount$=0),o.method&&o.lazyLoad&&(s.$onInstancePromise$=new Promise(n=>s.$onInstanceResolve$=n)),o.asyncLoading&&(s.$onReadyPromise$=new Promise(n=>s.$onReadyResolve$=n),e["s-p"]=[],e["s-rc"]=[]),pe(e,s,t.$listeners$,!1),ft.set(e,s)},Ke=(e,t)=>t in e,k=(e,t)=>(Nt||console.error)(e,t),$t=o.isTesting?["STENCIL:"]:["%cstencil","color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"],J=(...e)=>console.error(...$t,...e),U=(...e)=>console.warn(...$t,...e);var Qe=new Map,hs=(e,t,s)=>{let n=e.$tagName$.replace(/-/g,"_"),a=e.$lazyBundleId$;if(o.isDev&&typeof a!="string"){J(`Trying to lazily load component <${e.$tagName$}> with style mode "${t.$modeName$}", but it does not exist.`);return}let i=o.hotModuleReplacement?!1:Qe.get(a);if(i)return i[n];return Mt(`./${a}.entry.js${o.hotModuleReplacement&&s?"?s-hmr="+s:""}`).then(r=>(o.hotModuleReplacement||Qe.set(a,r),r[n]),k)},Z=new Map,fs=[],z=typeof window!="undefined"?window:{},As=o.cssVarShim?z.CSS:null,m=z.document||{head:{}},pt=z.HTMLElement||class{},p={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,s,n)=>e.addEventListener(t,s,n),rel:(e,t,s,n)=>e.removeEventListener(t,s,n),ce:(e,t)=>new CustomEvent(e,t)};var F=o.shadowDomShim&&o.shadowDom?(m.head.attachShadow+"").indexOf("[native")>-1:!0,$s=(()=>{let e=!1;try{m.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=!0}}))}catch(t){}return e})(),ps=e=>Promise.resolve(e),gs=o.constructableCSS?(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch(e){}return!1})():!1,le=[],T=[],ce=[],ms=(e,t)=>s=>{e.push(s),X||(X=!0,t&&p.$flags$&4?ee(V):p.raf(V))},Xe=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(s){k(s)}e.length=0},Ge=(e,t)=>{let s=0,n=0;for(;s<e.length&&(n=performance.now())<t;)try{e[s++](n)}catch(a){k(a)}s===e.length?e.length=0:s!==0&&e.splice(0,s)},V=()=>{if(o.asyncQueue&&re++,Xe(le),o.asyncQueue){let e=(p.$flags$&6)===2?performance.now()+14*Math.ceil(re*.1):1/0;Ge(T,e),Ge(ce,e),T.length>0&&(ce.push(...T),T.length=0),(X=le.length+T.length+ce.length>0)?p.raf(V):re=0}else Xe(T),(X=le.length>0)&&p.raf(V)},ee=e=>ps().then(e);var ys=ms(T,!0);function te(e,t){let s=new Date(e);return s.setDate(s.getDate()+t),s}function Ds(e,t,s){let n=[],a=we(e),i=a.getDay()===0?7:a.getDay(),r=se(e),l=r.getDay()===0?7:r.getDay(),c=s===1?7:s-1,d=[],u=[];if(t){let g=(7-s+i)%7,v=oe(a);for(;g>0;)d.push(v),v=oe(v),g-=1;d.reverse();let E=(7-l+c)%7,I=W(r);for(;E>0;)u.push(I),I=W(I),E-=1}let h=a;for(;h.getMonth()===e.getMonth();)n.push(h),h=W(h);return[...d,...n,...u]}function we(e){return A(new Date(`${String(St(e)).padStart(4,"0")}-${String(bt(e)).padStart(2,"0")}-01`))}function N(e){if(e instanceof Date)return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`}function se(e){let t=we(e);return t.setMonth(t.getMonth()+1),t.setDate(t.getDate()-1),t}function bt(e){return e.getMonth()+1}function vs(e){return new Array(12).fill(void 0).map((t,s)=>{let n=A(new Date(`2006-${String(s+1).padStart(2,"0")}-01`));return Intl.DateTimeFormat(e,{month:"long"}).format(n)})}function W(e){return te(e,1)}function gt(e){let t=new Date(e);return t.setDate(1),t.setMonth(t.getMonth()+1),t}function mt(e){let t=new Date(e);return t.setFullYear(t.getFullYear()+1),t}function oe(e){return ne(e,1)}function yt(e){let t=new Date(e);return t.setDate(1),t.setMonth(t.getMonth()-1),t}function Dt(e){let t=new Date(e);return t.setFullYear(t.getFullYear()-1),t}function bs(e,t){return new Array(7).fill(void 0).map((s,n)=>(e+n)%7+1).map(s=>{let n=A(new Date(`2006-01-0${s}`));return[Intl.DateTimeFormat(t,{weekday:"short"}).format(n).slice(0,3),Intl.DateTimeFormat(t,{weekday:"long"}).format(n)]})}function St(e){return e.getFullYear()}function vt(e,t){if(!e||!t||!t.from||!t.to)return!1;let s=t.from<t.to?t.from:t.to,n=t.from<t.to?t.to:t.from;return e>=s&&e<=n}function x(e,t){return!e||!t?!1:e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function A(e){let t=new Date(e);return t.setMinutes(t.getMinutes()+t.getTimezoneOffset()),t}function ne(e,t){let s=new Date(e);return s.setDate(s.getDate()-t),s}var Ss=".visually-hidden.sc-wc-datepicker{position:absolute;overflow:hidden;width:1px;height:1px;white-space:nowrap;clip:rect(0 0 0 0);clip-path:inset(50%)}",ws={clearButton:"Clear value",monthSelect:"Select month",nextMonthButton:"Next month",nextYearButton:"Next year",picker:"Choose date",previousMonthButton:"Previous month",previousYearButton:"Previous year",todayButton:"Show today",yearSelect:"Select year"},Cs=ht(class extends pt{constructor(){super(),this.__registerHost(),this.selectDate=De(this,"selectDate",7),this.changeMonth=De(this,"changeMonth",7),this.disabled=!1,this.disableDate=()=>!1,this.elementClassName="wc-datepicker",this.firstDayOfWeek=0,this.labels=ws,this.locale=(navigator==null?void 0:navigator.language)||"en-US",this.showClearButton=!1,this.showMonthStepper=!0,this.showTodayButton=!1,this.showYearStepper=!1,this.startDate=N(new Date),this.maxSearchDays=365,this.goToRangeStartOnSelect=!0,this.init=()=>{this.currentDate=this.startDate?A(new Date(this.startDate)):new Date,this.updateWeekdays()},this.getAvailableDate=(e,t)=>{let s,n=!1;switch(t){case"previousDay":s=oe(e);break;case"nextDay":s=W(e);break;case"previousSameWeekDay":s=ne(e,7);break;case"nextSameWeekDay":s=te(e,7);break;case"firstOfMonth":s=we(e);break;case"lastOfMonth":s=se(e);break;case"previousMonth":s=yt(e);break;case"nextMonth":s=gt(e);break;case"previousYear":s=Dt(e);break;case"nextYear":s=mt(e);break}for(;this.disableDate(s)&&!n;){switch(t){case"previousDay":case"lastOfMonth":s=oe(s);break;case"nextDay":case"firstOfMonth":case"previousMonth":case"nextMonth":case"previousYear":case"nextYear":s=W(s);break;case"previousSameWeekDay":s=ne(s,7);break;case"nextSameWeekDay":s=te(s,7);break}switch(t){case"firstOfMonth":case"lastOfMonth":case"previousYear":case"nextYear":n=s.getMonth()!==e.getMonth();break;case"previousMonth":n=s.getMonth()!==e.getMonth()-1;break;case"nextMonth":n=s.getMonth()!==e.getMonth()+1;break;default:n=!vt(s,{from:ne(e,this.maxSearchDays),to:te(e,this.maxSearchDays)});break}}return n?e:s},this.nextMonth=()=>{this.updateCurrentDate(gt(this.currentDate))},this.nextYear=()=>{this.updateCurrentDate(mt(this.currentDate))},this.previousMonth=()=>{this.updateCurrentDate(yt(this.currentDate))},this.previousYear=()=>{this.updateCurrentDate(Dt(this.currentDate))},this.showToday=()=>{this.updateCurrentDate(new Date)},this.clear=()=>{this.value=void 0,this.selectDate.emit(void 0)},this.onClick=e=>{if(this.disabled)return;let t=e.target.closest("[data-date]");if(!t)return;let s=A(new Date(t.dataset.date));this.updateCurrentDate(s),this.onSelectDate(s)},this.onMonthSelect=e=>{let t=+e.target.value-1,s=this.currentDate.getDate(),n=new Date(this.currentDate.getFullYear(),t,1),a=se(n).getDate(),i=Math.min(s,a),r=new Date(this.currentDate.getFullYear(),t,i);this.updateCurrentDate(r)},this.onYearSelect=e=>{let t=+e.target.value,s=e.target;isNaN(t)?(t=new Date().getFullYear(),s.value=String(t)):t<0?(t=0,s.value=String(t)):t>9999&&(t=9999,s.value=String(t));let n=this.currentDate.getDate(),a=this.currentDate.getMonth(),i=new Date;i.setFullYear(t,a,1);let r=se(i).getDate(),l=Math.min(n,r),c=new Date;c.setFullYear(t,a,l),this.updateCurrentDate(c)},this.onKeyDown=e=>{this.disabled||(e.code==="ArrowLeft"?(e.preventDefault(),this.updateCurrentDate(this.getAvailableDate(this.currentDate,"previousDay"),!0)):e.code==="ArrowRight"?(e.preventDefault(),this.updateCurrentDate(this.getAvailableDate(this.currentDate,"nextDay"),!0)):e.code==="ArrowUp"?(e.preventDefault(),this.updateCurrentDate(this.getAvailableDate(this.currentDate,"previousSameWeekDay"),!0)):e.code==="ArrowDown"?(e.preventDefault(),this.updateCurrentDate(this.getAvailableDate(this.currentDate,"nextSameWeekDay"),!0)):e.code==="PageUp"?(e.preventDefault(),e.shiftKey?this.updateCurrentDate(this.getAvailableDate(this.currentDate,"previousYear"),!0):this.updateCurrentDate(this.getAvailableDate(this.currentDate,"previousMonth"),!0)):e.code==="PageDown"?(e.preventDefault(),e.shiftKey?this.updateCurrentDate(this.getAvailableDate(this.currentDate,"nextYear"),!0):this.updateCurrentDate(this.getAvailableDate(this.currentDate,"nextMonth"),!0)):e.code==="Home"?(e.preventDefault(),this.updateCurrentDate(this.getAvailableDate(this.currentDate,"firstOfMonth"),!0)):e.code==="End"?(e.preventDefault(),this.updateCurrentDate(this.getAvailableDate(this.currentDate,"lastOfMonth"),!0)):(e.code==="Space"||e.code==="Enter")&&(e.preventDefault(),this.onSelectDate(this.currentDate)))},this.onMouseEnter=e=>{if(this.disabled)return;let t=A(new Date(e.target.closest("td").dataset.date));this.hoveredDate=t},this.onMouseLeave=()=>{this.hoveredDate=void 0},this.onFocus=e=>{let t=new Date(e.target.dataset.date);x(t,this.currentDate)||this.updateCurrentDate(t)}}componentWillLoad(){this.init()}watchFirstDayOfWeek(){this.updateWeekdays()}watchLocale(){this.locale||(this.locale=(navigator==null?void 0:navigator.language)||"en-US"),this.updateWeekdays()}watchRange(){this.value=void 0,this.selectDate.emit(void 0)}watchStartDate(){this.currentDate=this.startDate?A(new Date(this.startDate)):new Date}watchValue(){this.value&&(Array.isArray(this.value)?this.currentDate=this.value.length>1&&!this.goToRangeStartOnSelect?this.value[1]:this.value[0]:this.value instanceof Date&&(this.currentDate=this.value))}componentDidRender(){this.moveFocusAfterMonthChanged&&(this.focusDate(this.currentDate),this.moveFocusAfterMonthChanged=!1)}updateWeekdays(){this.weekdays=bs(this.firstDayOfWeek===0?7:this.firstDayOfWeek,this.locale)}getClassName(e){return e?`${this.elementClassName}__${e}`:this.elementClassName}getCalendarRows(){let e=Ds(this.currentDate,!0,this.firstDayOfWeek===0?7:this.firstDayOfWeek),t=[];for(let s=0;s<e.length;s+=7){let n=e.slice(s,s+7);t.push(n)}return t}getTitle(){if(this.value)if(this.isRangeValue(this.value)){let e=Intl.DateTimeFormat(this.locale,{day:"numeric",month:"long",year:"numeric"}).format(this.value[0]),t=this.value[1]?Intl.DateTimeFormat(this.locale,{day:"numeric",month:"long",year:"numeric"}).format(this.value[1]):void 0;return t?`${e} - ${t}`:e}else return Intl.DateTimeFormat(this.locale,{day:"numeric",month:"long",year:"numeric"}).format(this.value)}focusDate(e){var t;(t=this.el.querySelector(`[data-date="${N(e)}"]`))===null||t===void 0||t.focus()}updateCurrentDate(e,t){let s=e.getMonth(),n=e.getFullYear();if(n>9999||n<0)return;(s!==this.currentDate.getMonth()||n!==this.currentDate.getFullYear())&&(this.changeMonth.emit({month:bt(e),year:St(e),day:e.getDate()}),t&&(this.moveFocusAfterMonthChanged=!0)),this.currentDate=e,t&&this.focusDate(this.currentDate)}onSelectDate(e){var t,s;if(!this.disableDate(e))if(this.isRangeValue(this.value)){let n=((t=this.value)===null||t===void 0?void 0:t[0])===void 0||this.value.length===2?[e]:[this.value[0],e];n.length===2&&n[0]>n[1]&&n.reverse();let a=n[1]===void 0?[N(n[0])]:[N(n[0]),N(n[1])];this.value=n,this.selectDate.emit(a)}else{if(((s=this.value)===null||s===void 0?void 0:s.getTime())===e.getTime())return;this.value=e,this.selectDate.emit(N(e))}}isRangeValue(e){return this.range}render(){let e=this.showTodayButton||this.showClearButton;return $(ye,null,$("div",{"aria-disabled":String(this.disabled),"aria-label":this.labels.picker,class:{[this.getClassName()]:!0,[`${this.getClassName()}--disabled`]:this.disabled},role:"group"},$("div",{class:this.getClassName("header")},$("span",{"aria-atomic":"true","aria-live":"polite",class:"visually-hidden"},this.getTitle()),this.showYearStepper&&$("button",{"aria-label":this.labels.previousYearButton,class:this.getClassName("previous-year-button"),disabled:this.disabled,innerHTML:this.previousYearButtonContent||void 0,onClick:this.previousYear,type:"button"},$("svg",{fill:"none",height:"24","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",stroke:"currentColor",viewBox:"0 0 24 24",width:"24"},$("polyline",{points:"11 17 6 12 11 7"}),$("polyline",{points:"18 17 13 12 18 7"}))),this.showMonthStepper&&$("button",{"aria-label":this.labels.previousMonthButton,class:this.getClassName("previous-month-button"),disabled:this.disabled,innerHTML:this.previousMonthButtonContent||void 0,onClick:this.previousMonth,type:"button"},$("svg",{fill:"none",height:"24","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",stroke:"currentColor",viewBox:"0 0 24 24",width:"24"},$("polyline",{points:"15 18 9 12 15 6"}))),$("span",{class:this.getClassName("current-month")},$("select",{title:this.labels.monthSelect,"aria-label":this.labels.monthSelect,class:this.getClassName("month-select"),disabled:this.disabled,name:"month",onChange:this.onMonthSelect},vs(this.locale).map((t,s)=>$("option",{key:t,selected:this.currentDate.getMonth()===s,value:s+1},t))),$("input",{title:this.labels.yearSelect,"aria-label":this.labels.yearSelect,class:this.getClassName("year-select"),disabled:this.disabled,max:9999,maxLength:4,min:1,name:"year",onChange:this.onYearSelect,type:"number",value:this.currentDate.getFullYear()})),this.showMonthStepper&&$("button",{"aria-label":this.labels.nextMonthButton,class:this.getClassName("next-month-button"),disabled:this.disabled,innerHTML:this.nextMonthButtonContent||void 0,onClick:this.nextMonth,type:"button"},$("svg",{fill:"none",height:"24","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",stroke:"currentColor",viewBox:"0 0 24 24",width:"24"},$("polyline",{points:"9 18 15 12 9 6"}))),this.showYearStepper&&$("button",{"aria-label":this.labels.nextYearButton,class:this.getClassName("next-year-button"),disabled:this.disabled,innerHTML:this.nextYearButtonContent||void 0,onClick:this.nextYear,type:"button"},$("svg",{fill:"none",height:"24","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",stroke:"currentColor",viewBox:"0 0 24 24",width:"24"},$("polyline",{points:"13 17 18 12 13 7"}),$("polyline",{points:"6 17 11 12 6 7"})))),$("div",{class:this.getClassName("body")},$("table",{class:this.getClassName("calendar"),onKeyDown:this.onKeyDown,role:"grid"},$("thead",{class:this.getClassName("calendar-header")},$("tr",{class:this.getClassName("weekday-row")},this.weekdays.map(t=>$("th",{"aria-label":t[1],abbr:t[1],class:this.getClassName("weekday"),key:t[0],scope:"col"},$("span",null,t[0]))))),$("tbody",null,this.getCalendarRows().map(t=>{let s=`row-${t[0].getMonth()}-${t[0].getDate()}`;return $("tr",{class:this.getClassName("calendar-row"),key:s},t.map(n=>{var a,i,r,l,c;let d=x(n,this.currentDate),u=n.getMonth()!==this.currentDate.getMonth(),h=Array.isArray(this.value)?x(n,this.value[0])||x(n,this.value[1]):x(n,this.value),f=this.isRangeValue?vt(n,{from:(a=this.value)===null||a===void 0?void 0:a[0],to:((i=this.value)===null||i===void 0?void 0:i[1])||this.hoveredDate||this.currentDate}):!1,g=!((r=this.value)===null||r===void 0)&&r[0]?[(l=this.value)===null||l===void 0?void 0:l[0],((c=this.value)===null||c===void 0?void 0:c[1])||this.hoveredDate].sort((Lt,Tt)=>Lt-Tt):[],v=this.range&&x(g[0],n),L=this.range&&x(g[1],n),E=x(n,new Date),I=this.disableDate(n),Ct=`cell-${n.getMonth()}-${n.getDate()}`,kt={[this.getClassName("date")]:!0,[this.getClassName("date--current")]:d,[this.getClassName("date--disabled")]:I,[this.getClassName("date--overflowing")]:u,[this.getClassName("date--today")]:E,[this.getClassName("date--selected")]:h,[this.getClassName("date--in-range")]:f,[this.getClassName("date--start")]:v,[this.getClassName("date--end")]:L},xt=h?"strong":E?"em":"span";return $("td",{"aria-disabled":String(I),"aria-selected":h?"true":void 0,"aria-current":E?"date":h?"true":void 0,class:kt,"data-date":N(n),key:Ct,onClick:this.onClick,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onFocus:this.onFocus,role:"gridcell",tabIndex:x(n,this.currentDate)&&!this.disabled?0:-1},$(xt,{"aria-hidden":"true"},n.getDate()),$("span",{class:"visually-hidden"},Intl.DateTimeFormat(this.locale,{day:"numeric",month:"long",year:"numeric"}).format(n)))}))})))),e&&$("div",{class:this.getClassName("footer")},this.showTodayButton&&$("button",{class:this.getClassName("today-button"),disabled:this.disabled,innerHTML:this.todayButtonContent||void 0,onClick:this.showToday,type:"button"},this.labels.todayButton),this.showClearButton&&$("button",{class:this.getClassName("clear-button"),disabled:this.disabled,innerHTML:this.clearButtonContent||void 0,onClick:this.clear,type:"button"},this.labels.clearButton))))}get el(){return this}static get watchers(){return{firstDayOfWeek:["watchFirstDayOfWeek"],locale:["watchLocale"],range:["watchRange"],startDate:["watchStartDate"],value:["watchValue"]}}static get style(){return Ss}},[2,"wc-datepicker",{clearButtonContent:[1,"clear-button-content"],disabled:[4],disableDate:[16],elementClassName:[1,"element-class-name"],firstDayOfWeek:[2,"first-day-of-week"],range:[4],labels:[16],locale:[1],nextMonthButtonContent:[1,"next-month-button-content"],nextYearButtonContent:[1,"next-year-button-content"],previousMonthButtonContent:[1,"previous-month-button-content"],previousYearButtonContent:[1,"previous-year-button-content"],showClearButton:[4,"show-clear-button"],showMonthStepper:[4,"show-month-stepper"],showTodayButton:[4,"show-today-button"],showYearStepper:[4,"show-year-stepper"],startDate:[1,"start-date"],todayButtonContent:[1,"today-button-content"],value:[1040],maxSearchDays:[2,"max-search-days"],goToRangeStartOnSelect:[4,"go-to-range-start-on-select"],currentDate:[32],hoveredDate:[32],weekdays:[32]}]);var wt=Cs;customElements.define("dsa-internal-calendar",wt);var ks=1,D=class extends Me{constructor(){super(...arguments);this.localize=new Ne(this);this.value="";this.startDate=ie(new Date);this.range=!1}firstUpdated(){this.disableDate!==void 0&&(this.calendar.disableDate=this.disableDate),this.updateCalendarValue()}updateCalendarValue(){let s=this.parsedDateValue;this.calendar.value=s.length>1?s:s[0]}get parsedDateValue(){return this.value===""?[]:this.value.split(",").filter(s=>s!=="").map(s=>j(s))}handleDateSelection(s){let{detail:n}=s;if(n===void 0)return;let a=Array.isArray(n)?n.map(i=>j(i)):[j(n)];this.emit("dsa-date-selected",{detail:{dates:a}})}handleMonthSelection(s){let{month:n,year:a}=s.detail;this.emit("dsa-month-year-selected",{detail:{month:n,year:a}})}getLabels(){return{clearButton:this.localize.term("clearButton"),monthSelect:this.localize.term("monthSelect"),nextMonthButton:this.localize.term("nextMonthButton"),nextYearButton:this.localize.term("nextYearButton"),picker:this.localize.term(this.range?"pickerRange":"picker"),previousMonthButton:this.localize.term("previousMonthButton"),previousYearButton:this.localize.term("previousYearButton"),todayButton:this.localize.term("todayButton"),yearSelect:this.localize.term("yearSelect")}}handleDisableDateChange(){this.disableDate!==void 0&&(this.calendar.disableDate=this.disableDate)}handleValueChange(){if(this.value===""){this.calendar.value=void 0;return}this.updateCalendarValue()}render(){return ke`
24
24
  <dsa-internal-calendar
25
25
  class="calendar"
26
26
  ?range=${Te(this.range)}
@@ -31,7 +31,7 @@ More information: https://stenciljs.com/docs/properties#prop-mutability`)}os(thi
31
31
  .labels=${this.getLabels()}
32
32
  first-day-of-week=${ks}
33
33
  ></dsa-internal-calendar>
34
- `}};v.styles=Ae,w([Le(".calendar")],v.prototype,"calendar",2),w([Y()],v.prototype,"value",2),w([Y({attribute:"start-date"})],v.prototype,"startDate",2),w([Y({type:Boolean,reflect:!0})],v.prototype,"range",2),w([Y({type:Function,attribute:!1})],v.prototype,"disableDate",2),w([ae("disableDate",{waitUntilFirstUpdate:!0})],v.prototype,"handleDisableDateChange",1),w([ae("value",{waitUntilFirstUpdate:!0})],v.prototype,"handleValueChange",1),v=w([xe("dsa-calendar")],v);export{v as a};
34
+ `}};D.styles=Ae,w([Le(".calendar")],D.prototype,"calendar",2),w([Y()],D.prototype,"value",2),w([Y({attribute:"start-date"})],D.prototype,"startDate",2),w([Y({type:Boolean,reflect:!0})],D.prototype,"range",2),w([Y({type:Function,attribute:!1})],D.prototype,"disableDate",2),w([ae("disableDate",{waitUntilFirstUpdate:!0})],D.prototype,"handleDisableDateChange",1),w([ae("value",{waitUntilFirstUpdate:!0})],D.prototype,"handleValueChange",1),D=w([xe("dsa-calendar")],D);export{D as a};
35
35
  /*! Bundled license information:
36
36
 
37
37
  @stencil/core/internal/client/index.js:
@@ -1,5 +1,5 @@
1
- import{a as t}from"./chunk.UMC4I57R.js";import{a as o}from"./chunk.6G2FNLAV.js";var n=o`
2
- ${t}
1
+ import{a as e}from"./chunk.UMC4I57R.js";import{a as o}from"./chunk.6G2FNLAV.js";var n=o`
2
+ ${e}
3
3
 
4
4
  :host {
5
5
  display: block;
@@ -89,6 +89,7 @@ import{a as t}from"./chunk.UMC4I57R.js";import{a as o}from"./chunk.6G2FNLAV.js";
89
89
  /* Item */
90
90
  a {
91
91
  display: flex;
92
+ flex-direction: column;
92
93
  color: var(--dsa-wc-table-of-contents-link-color);
93
94
  transition: var(--dsa-wc-transition-fast) fill;
94
95
  user-select: none;
@@ -109,6 +110,18 @@ import{a as t}from"./chunk.UMC4I57R.js";import{a as o}from"./chunk.6G2FNLAV.js";
109
110
  color: var(--dsa-wc-table-of-contents-link-color-active);
110
111
  font: var(--dsa-wc-menu-item-font-current);
111
112
  }
113
+ /* Reserve the bold width so the layout doesn't shift when a link becomes active.
114
+ The ::after pseudo-element mirrors the link text in bold but stays invisible. */
115
+ a::after {
116
+ content: attr(data-text);
117
+ display: block;
118
+ font: var(--dsa-wc-menu-item-font-current);
119
+ visibility: hidden;
120
+ height: 0;
121
+ overflow: hidden;
122
+ user-select: none;
123
+ pointer-events: none;
124
+ }
112
125
  @media (forced-colors: active) {
113
126
  a:hover,
114
127
  a:focus-visible {