@designsystem-se/af 34.1.0 → 34.2.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 (1475) hide show
  1. package/components/digi-bar-chart.js +8 -8
  2. package/components/digi-calendar-datepicker.js +37 -22
  3. package/components/digi-calendar-week-view.js +8 -8
  4. package/components/digi-calendar.js +1 -1
  5. package/components/digi-card.js +2 -2
  6. package/components/digi-chart-line.js +85 -76
  7. package/components/digi-code-block.js +1 -1
  8. package/components/digi-code-example.js +10 -10
  9. package/components/digi-code.js +1 -1
  10. package/components/digi-context-menu.js +4 -4
  11. package/components/digi-dialog.js +6 -6
  12. package/components/digi-expandable-accordion.js +5 -5
  13. package/components/digi-expandable-faq-item.js +6 -6
  14. package/components/digi-expandable-faq.js +2 -2
  15. package/components/digi-footer-card.js +1 -1
  16. package/components/digi-footer.js +4 -4
  17. package/components/digi-form-category-filter.js +4 -4
  18. package/components/digi-form-checkbox.js +1 -1
  19. package/components/digi-form-error-list.js +14 -14
  20. package/components/digi-form-fieldset.js +1 -1
  21. package/components/digi-form-file-upload.js +18 -18
  22. package/components/digi-form-filter.js +8 -8
  23. package/components/digi-form-input-search.js +9 -9
  24. package/components/digi-form-input.js +1 -1
  25. package/components/digi-form-label.js +1 -1
  26. package/components/digi-form-radiobutton.js +1 -1
  27. package/components/digi-form-radiogroup.js +1 -1
  28. package/components/digi-form-receipt.js +3 -3
  29. package/components/digi-form-select-filter.js +17 -17
  30. package/components/digi-form-select.js +1 -1
  31. package/components/digi-form-textarea.js +8 -8
  32. package/components/digi-form-validation-message.js +1 -1
  33. package/components/digi-header-avatar.js +3 -3
  34. package/components/digi-header-navigation-item.js +1 -1
  35. package/components/digi-header-navigation.js +7 -7
  36. package/components/digi-header-notification.js +2 -2
  37. package/components/digi-header.js +8 -8
  38. package/components/digi-icon-accessibility-deaf.js +2 -2
  39. package/components/digi-icon-accessibility-universal.js +2 -2
  40. package/components/digi-icon-apple.js +2 -2
  41. package/components/digi-icon-archive-outline.js +2 -2
  42. package/components/digi-icon-archive.js +2 -2
  43. package/components/digi-icon-arrow-back.js +2 -2
  44. package/components/digi-icon-arrow-down.js +2 -2
  45. package/components/digi-icon-arrow-left.js +2 -2
  46. package/components/digi-icon-arrow-right.js +1 -1
  47. package/components/digi-icon-arrow-sign-in.js +2 -2
  48. package/components/digi-icon-arrow-sign-out.js +2 -2
  49. package/components/digi-icon-arrow-up.js +2 -2
  50. package/components/digi-icon-at.js +2 -2
  51. package/components/digi-icon-bars.js +1 -1
  52. package/components/digi-icon-bell-filled.js +2 -2
  53. package/components/digi-icon-bell.js +2 -2
  54. package/components/digi-icon-book.js +2 -2
  55. package/components/digi-icon-bookmark-outline.js +2 -2
  56. package/components/digi-icon-bookmark-solid.js +2 -2
  57. package/components/digi-icon-bubble-ellipsis.js +2 -2
  58. package/components/digi-icon-bubble.js +2 -2
  59. package/components/digi-icon-building-outline.js +2 -2
  60. package/components/digi-icon-building-solid.js +2 -2
  61. package/components/digi-icon-bullseye.js +2 -2
  62. package/components/digi-icon-calculator-solid.js +2 -2
  63. package/components/digi-icon-calendar-alt-alert.js +2 -2
  64. package/components/digi-icon-calendar-alt.js +1 -1
  65. package/components/digi-icon-calendar.js +2 -2
  66. package/components/digi-icon-caret-circle-right.js +2 -2
  67. package/components/digi-icon-caret-down.js +1 -1
  68. package/components/digi-icon-caret-left.js +2 -2
  69. package/components/digi-icon-caret-right.js +2 -2
  70. package/components/digi-icon-caret-up.js +1 -1
  71. package/components/digi-icon-chart.js +1 -1
  72. package/components/digi-icon-chat.js +2 -2
  73. package/components/digi-icon-check-circle-reg-alt.js +2 -2
  74. package/components/digi-icon-check-circle-solid.js +2 -2
  75. package/components/digi-icon-check.js +1 -1
  76. package/components/digi-icon-checklist.js +2 -2
  77. package/components/digi-icon-chevron-down.js +1 -1
  78. package/components/digi-icon-chevron-left.js +1 -1
  79. package/components/digi-icon-chevron-right.js +1 -1
  80. package/components/digi-icon-chevron-up.js +1 -1
  81. package/components/digi-icon-clock.js +2 -2
  82. package/components/digi-icon-communication-play-solid.js +2 -2
  83. package/components/digi-icon-compress-alt.js +2 -2
  84. package/components/digi-icon-comunication-case.js +2 -2
  85. package/components/digi-icon-comunication-flag.js +2 -2
  86. package/components/digi-icon-comunication-graduate.js +2 -2
  87. package/components/digi-icon-comunication-play.js +2 -2
  88. package/components/digi-icon-cooperation.js +2 -2
  89. package/components/digi-icon-copy.js +1 -1
  90. package/components/digi-icon-danger-outline.js +2 -2
  91. package/components/digi-icon-download.js +2 -2
  92. package/components/digi-icon-dxa.js +2 -2
  93. package/components/digi-icon-edit.js +2 -2
  94. package/components/digi-icon-ellipsis.js +2 -2
  95. package/components/digi-icon-envelope-filled.js +2 -2
  96. package/components/digi-icon-envelope.js +2 -2
  97. package/components/digi-icon-exclamation-circle-filled.js +2 -2
  98. package/components/digi-icon-exclamation-triangle-filled.js +2 -2
  99. package/components/digi-icon-exclamation-triangle-warning.js +2 -2
  100. package/components/digi-icon-exclamation-triangle.js +2 -2
  101. package/components/digi-icon-expand-alt.js +2 -2
  102. package/components/digi-icon-external-link-alt.js +1 -1
  103. package/components/digi-icon-eye-slash.js +2 -2
  104. package/components/digi-icon-eye.js +2 -2
  105. package/components/digi-icon-facebook-square.js +2 -2
  106. package/components/digi-icon-file-add.js +1 -1
  107. package/components/digi-icon-file-document.js +2 -2
  108. package/components/digi-icon-file-excel.js +2 -2
  109. package/components/digi-icon-file-export.js +1 -1
  110. package/components/digi-icon-file-governing.js +2 -2
  111. package/components/digi-icon-file-pdf.js +2 -2
  112. package/components/digi-icon-file-powerpoint.js +2 -2
  113. package/components/digi-icon-file-remove.js +1 -1
  114. package/components/digi-icon-file-word.js +2 -2
  115. package/components/digi-icon-film.js +2 -2
  116. package/components/digi-icon-filter.js +2 -2
  117. package/components/digi-icon-folder-add.js +1 -1
  118. package/components/digi-icon-folder-directory.js +1 -1
  119. package/components/digi-icon-folder-open.js +1 -1
  120. package/components/digi-icon-folder.js +1 -1
  121. package/components/digi-icon-globe-filled.js +2 -2
  122. package/components/digi-icon-globe.js +2 -2
  123. package/components/digi-icon-headphones.js +2 -2
  124. package/components/digi-icon-heart-solid.js +2 -2
  125. package/components/digi-icon-heart.js +2 -2
  126. package/components/digi-icon-history.js +2 -2
  127. package/components/digi-icon-home.js +2 -2
  128. package/components/digi-icon-image.js +2 -2
  129. package/components/digi-icon-info-circle-solid.js +2 -2
  130. package/components/digi-icon-input-select-marker.js +1 -1
  131. package/components/digi-icon-instagram.js +2 -2
  132. package/components/digi-icon-job-suggestion.js +2 -2
  133. package/components/digi-icon-language-outline.js +1 -1
  134. package/components/digi-icon-language.js +2 -2
  135. package/components/digi-icon-laptop-phone.js +2 -2
  136. package/components/digi-icon-lattlast.js +2 -2
  137. package/components/digi-icon-licence-bus.js +2 -2
  138. package/components/digi-icon-licence-car.js +2 -2
  139. package/components/digi-icon-licence-motorcycle.js +2 -2
  140. package/components/digi-icon-licence-truck.js +2 -2
  141. package/components/digi-icon-lightbulb.js +2 -2
  142. package/components/digi-icon-linkedin-in.js +2 -2
  143. package/components/digi-icon-list-ul.js +1 -1
  144. package/components/digi-icon-lock.js +2 -2
  145. package/components/digi-icon-marker-filled.js +2 -2
  146. package/components/digi-icon-marker.js +2 -2
  147. package/components/digi-icon-media-course.js +2 -2
  148. package/components/digi-icon-media-podcast.js +2 -2
  149. package/components/digi-icon-microphone-off.js +2 -2
  150. package/components/digi-icon-microphone.js +2 -2
  151. package/components/digi-icon-minus.js +1 -1
  152. package/components/digi-icon-move.js +2 -2
  153. package/components/digi-icon-news.js +1 -1
  154. package/components/digi-icon-notification-error.js +1 -1
  155. package/components/digi-icon-notification-info.js +1 -1
  156. package/components/digi-icon-notification-succes.js +1 -1
  157. package/components/digi-icon-notification-warning.js +1 -1
  158. package/components/digi-icon-online-computervideo.js +1 -1
  159. package/components/digi-icon-online-interview.js +2 -2
  160. package/components/digi-icon-online-meeting.js +2 -2
  161. package/components/digi-icon-online-task.js +2 -2
  162. package/components/digi-icon-online-video.js +1 -1
  163. package/components/digi-icon-open-source.js +2 -2
  164. package/components/digi-icon-palette.js +2 -2
  165. package/components/digi-icon-paperclip.js +1 -1
  166. package/components/digi-icon-paste.js +1 -1
  167. package/components/digi-icon-pen.js +2 -2
  168. package/components/digi-icon-phone-hangup.js +2 -2
  169. package/components/digi-icon-phone.js +2 -2
  170. package/components/digi-icon-plus.js +1 -1
  171. package/components/digi-icon-pod.js +1 -1
  172. package/components/digi-icon-print.js +2 -2
  173. package/components/digi-icon-read.js +2 -2
  174. package/components/digi-icon-redo.js +2 -2
  175. package/components/digi-icon-scale.js +1 -1
  176. package/components/digi-icon-screensharing-off.js +2 -2
  177. package/components/digi-icon-screensharing.js +2 -2
  178. package/components/digi-icon-search.js +1 -1
  179. package/components/digi-icon-send-outline.js +2 -2
  180. package/components/digi-icon-send-solid.js +2 -2
  181. package/components/digi-icon-settings.js +2 -2
  182. package/components/digi-icon-share-alt.js +2 -2
  183. package/components/digi-icon-share-chain.js +2 -2
  184. package/components/digi-icon-sign.js +1 -1
  185. package/components/digi-icon-sliders-h.js +2 -2
  186. package/components/digi-icon-sokkandidat.js +2 -2
  187. package/components/digi-icon-sort-down.js +2 -2
  188. package/components/digi-icon-sort-up.js +2 -2
  189. package/components/digi-icon-sort.js +2 -2
  190. package/components/digi-icon-spinner.js +1 -1
  191. package/components/digi-icon-star-reg.js +2 -2
  192. package/components/digi-icon-star.js +2 -2
  193. package/components/digi-icon-suitcase-outline.js +2 -2
  194. package/components/digi-icon-suitcase-solid.js +2 -2
  195. package/components/digi-icon-system-assistance.js +2 -2
  196. package/components/digi-icon-table-column.js +2 -2
  197. package/components/digi-icon-table-row.js +2 -2
  198. package/components/digi-icon-table.js +1 -1
  199. package/components/digi-icon-task-done.js +2 -2
  200. package/components/digi-icon-toggle-off.js +2 -2
  201. package/components/digi-icon-toggle-on.js +2 -2
  202. package/components/digi-icon-trash.js +1 -1
  203. package/components/digi-icon-twitter.js +2 -2
  204. package/components/digi-icon-tyck-till.js +2 -2
  205. package/components/digi-icon-unlock.js +2 -2
  206. package/components/digi-icon-update.js +2 -2
  207. package/components/digi-icon-upload.js +2 -2
  208. package/components/digi-icon-user-add.js +1 -1
  209. package/components/digi-icon-user-alt.js +2 -2
  210. package/components/digi-icon-user-edit.js +1 -1
  211. package/components/digi-icon-users-solid.js +2 -2
  212. package/components/digi-icon-validation-error.js +1 -1
  213. package/components/digi-icon-validation-success.js +1 -1
  214. package/components/digi-icon-validation-warning.js +1 -1
  215. package/components/digi-icon-videocamera-off.js +2 -2
  216. package/components/digi-icon-videocamera.js +2 -2
  217. package/components/digi-icon-volume.js +1 -1
  218. package/components/digi-icon-web-tv.js +2 -2
  219. package/components/digi-icon-webinar.js +1 -1
  220. package/components/digi-icon-wifi-signal0.js +2 -2
  221. package/components/digi-icon-wifi-signal1.js +2 -2
  222. package/components/digi-icon-wifi-signal2.js +2 -2
  223. package/components/digi-icon-wifi-signal3.js +2 -2
  224. package/components/digi-icon-window.js +2 -2
  225. package/components/digi-icon-x-button-outline.js +1 -1
  226. package/components/digi-icon-x-button.js +2 -2
  227. package/components/digi-icon-x.js +1 -1
  228. package/components/digi-icon-youtube.js +2 -2
  229. package/components/digi-info-card-multi-container.js +2 -2
  230. package/components/digi-info-card-multi.js +11 -11
  231. package/components/digi-info-card.js +5 -5
  232. package/components/digi-layout-block.js +1 -1
  233. package/components/digi-layout-columns.js +1 -1
  234. package/components/digi-layout-container.js +1 -1
  235. package/components/digi-layout-media-object.js +1 -1
  236. package/components/digi-link-button.js +2 -2
  237. package/components/digi-link-external.js +1 -1
  238. package/components/digi-link-internal.js +1 -1
  239. package/components/digi-link.js +1 -1
  240. package/components/digi-list.js +3 -3
  241. package/components/digi-loader-skeleton.js +3 -3
  242. package/components/digi-loader-spinner.js +2 -2
  243. package/components/digi-logo.js +1 -1
  244. package/components/digi-media-figure.js +1 -1
  245. package/components/digi-media-image.js +1 -1
  246. package/components/digi-navigation-breadcrumbs.js +3 -3
  247. package/components/digi-navigation-context-menu.js +1 -1
  248. package/components/digi-navigation-pagination.js +10 -10
  249. package/components/digi-navigation-sidebar-button.js +1 -1
  250. package/components/digi-navigation-sidebar.js +5 -5
  251. package/components/digi-navigation-vertical-menu-item.js +8 -8
  252. package/components/digi-navigation-vertical-menu.js +1 -1
  253. package/components/digi-notification-alert.js +1 -1
  254. package/components/digi-notification-error-page.js +6 -6
  255. package/components/digi-progress-circle.js +11 -11
  256. package/components/digi-progress-indicator.js +7 -7
  257. package/components/digi-progress-list-item.js +9 -9
  258. package/components/digi-progress-list.js +2 -2
  259. package/components/digi-progressbar.js +3 -3
  260. package/components/digi-quote.js +3 -3
  261. package/components/digi-table.js +1 -1
  262. package/components/digi-tablist-panel.js +2 -2
  263. package/components/digi-tablist.js +7 -7
  264. package/components/digi-tag-media.js +1 -1
  265. package/components/digi-tag.js +3 -3
  266. package/components/digi-tools-feedback-banner.js +6 -6
  267. package/components/digi-tools-feedback-rating.js +7 -7
  268. package/components/digi-tools-feedback.js +3 -3
  269. package/components/digi-tools-languagepicker.js +10 -10
  270. package/components/digi-typography-heading-jumbo.js +1 -1
  271. package/components/digi-typography-meta.js +1 -1
  272. package/components/digi-typography-preamble.js +1 -1
  273. package/components/digi-typography-time.js +2 -2
  274. package/components/digi-typography.js +1 -1
  275. package/components/digi-util-breakpoint-observer.js +1 -1
  276. package/components/digi-util-detect-click-outside.js +1 -1
  277. package/components/digi-util-detect-focus-outside.js +1 -1
  278. package/components/digi-util-intersection-observer.js +1 -1
  279. package/components/digi-util-keydown-handler.js +1 -1
  280. package/components/digi-util-keyup-handler.js +1 -1
  281. package/components/digi-util-resize-observer.js +1 -1
  282. package/components/{p-36fbdb2e.js → p-0176102e.js} +2 -2
  283. package/components/{p-b551e1ca.js → p-08175009.js} +2 -2
  284. package/components/{p-42aa440f.js → p-08cf2c0e.js} +13 -0
  285. package/components/{p-d8d71310.js → p-09558a88.js} +2 -2
  286. package/components/{p-d01319cf.js → p-0b61f10f.js} +2 -2
  287. package/components/{p-f215529b.js → p-0d7b08db.js} +2 -2
  288. package/components/{p-4b8bc232.js → p-1125ddc8.js} +39 -35
  289. package/components/{p-6dd63fa2.js → p-19303dad.js} +2 -2
  290. package/components/{p-399bd0ae.js → p-19a1055b.js} +2 -2
  291. package/components/{p-455e0caa.js → p-1bd2159d.js} +2 -2
  292. package/components/{p-e9645cdc.js → p-24f5d311.js} +1 -1
  293. package/components/{p-ccf02db2.js → p-26249c3d.js} +2 -2
  294. package/components/{p-77627936.js → p-2a63f2e6.js} +2 -2
  295. package/components/{p-afc595b8.js → p-2bbd7c80.js} +2 -2
  296. package/components/{p-30ce30ad.js → p-2f1ac27e.js} +2 -2
  297. package/components/{p-8b1bc24a.js → p-33c53546.js} +10 -10
  298. package/components/{p-a207c60e.js → p-346137ab.js} +8 -8
  299. package/components/{p-f6ca68ba.js → p-3e1e6969.js} +1 -1
  300. package/components/{p-8c0542dc.js → p-3eca4900.js} +2 -2
  301. package/components/{p-0643b217.js → p-4323193f.js} +2 -2
  302. package/components/{p-0df2c2ad.js → p-46cdcafa.js} +3 -3
  303. package/components/{p-9e6f28f2.js → p-474db732.js} +2 -2
  304. package/components/{p-224094ec.js → p-4a45fa2d.js} +2 -2
  305. package/components/{p-3e02e6a4.js → p-4d70f125.js} +2 -2
  306. package/components/{p-6afc74b6.js → p-517bb876.js} +2 -2
  307. package/components/{p-d8cae9f0.js → p-5278a2e8.js} +2 -2
  308. package/components/{p-9f5ead44.js → p-5415afc2.js} +8 -8
  309. package/components/{p-01f0b623.js → p-5e98f94d.js} +2 -2
  310. package/components/{p-1a50c1ba.js → p-6bb240b4.js} +2 -2
  311. package/components/{p-3df44ed0.js → p-6e2b2f5f.js} +1 -1
  312. package/components/{p-3cb11597.js → p-71661f2a.js} +1 -1
  313. package/components/{p-ccb24f10.js → p-71ce3c3a.js} +2 -2
  314. package/components/{p-6c2ae1ce.js → p-734d320a.js} +2 -2
  315. package/components/{p-1cf20227.js → p-760d2b12.js} +2 -2
  316. package/components/{p-a92aa84e.js → p-7cbb7a7a.js} +9 -9
  317. package/components/{p-b4012353.js → p-7efae29b.js} +4 -4
  318. package/components/{p-d08ba8cc.js → p-882e478d.js} +2 -2
  319. package/components/{p-95d76cb0.js → p-8c64caef.js} +2 -2
  320. package/components/{p-10503e1d.js → p-8cc46a2b.js} +1 -1
  321. package/components/{p-e186e533.js → p-97f95d5d.js} +2 -2
  322. package/components/{p-f3c5a743.js → p-a3815a92.js} +1 -1
  323. package/components/{p-91cb9cd3.js → p-a3ca29ce.js} +2 -2
  324. package/components/{p-12191494.js → p-ac2e2b47.js} +2 -2
  325. package/components/{p-beedb5f0.js → p-b153a860.js} +2 -2
  326. package/components/{p-d102eafc.js → p-b3507f12.js} +2 -2
  327. package/components/{p-dc9fbc23.js → p-b789243d.js} +3 -3
  328. package/components/{p-a81675ae.js → p-bb9167c2.js} +2 -2
  329. package/components/{p-50634baa.js → p-c2e722fa.js} +1 -1
  330. package/components/{p-bdbd71ce.js → p-c325edd3.js} +2 -2
  331. package/components/{p-63c2d5a1.js → p-c6f305ca.js} +2 -2
  332. package/components/{p-950b05b1.js → p-c70dcde3.js} +1 -1
  333. package/components/{p-788a55f5.js → p-c888067f.js} +2 -2
  334. package/components/{p-a7a4037a.js → p-cb9426ce.js} +2 -2
  335. package/components/{p-51efc942.js → p-ccc246b7.js} +2 -2
  336. package/components/{p-5100e0e5.js → p-cd78d897.js} +2 -2
  337. package/components/{p-d593f0d5.js → p-cf6f3fb1.js} +1 -1
  338. package/components/{p-dea832cf.js → p-d0bfbe82.js} +2 -2
  339. package/components/{p-2c789cac.js → p-e52962b0.js} +2 -2
  340. package/components/{p-26c6d0a6.js → p-e733f09a.js} +2 -2
  341. package/components/{p-40deb303.js → p-e7369e2f.js} +2 -2
  342. package/components/{p-d08de295.js → p-eb0fe1c6.js} +3 -3
  343. package/components/{p-e22aa82c.js → p-f033f1bc.js} +2 -2
  344. package/components/{p-f0bdf339.js → p-f19a887c.js} +1 -1
  345. package/components/{p-6d2a8b7a.js → p-f65f552b.js} +2 -2
  346. package/components/{p-0747c454.js → p-f9a8c6ee.js} +3 -3
  347. package/components/{p-918e9955.js → p-faf3b0b5.js} +8 -8
  348. package/components/{p-8d38a5f2.js → p-ff63ccc3.js} +2 -2
  349. package/custom-elements.json +8 -0
  350. package/dist/cjs/code-variation.enum-c4a4e6fd.js +19 -0
  351. package/dist/cjs/digi-arbetsformedlingen.cjs.js +1 -1
  352. package/dist/cjs/digi-bar-chart.cjs.entry.js +2 -2
  353. package/dist/cjs/digi-calendar-week-view.cjs.entry.js +51 -52
  354. package/dist/cjs/digi-calendar_16.cjs.entry.js +3710 -0
  355. package/dist/cjs/digi-card.cjs.entry.js +1 -1
  356. package/dist/cjs/digi-chart-line.cjs.entry.js +81 -72
  357. package/dist/cjs/digi-code-block_3.cjs.entry.js +15 -18
  358. package/dist/cjs/digi-code-example.cjs.entry.js +5 -5
  359. package/dist/cjs/digi-code.cjs.entry.js +45 -0
  360. package/dist/cjs/digi-context-menu.cjs.entry.js +2 -2
  361. package/dist/cjs/digi-dialog.cjs.entry.js +15 -18
  362. package/dist/cjs/digi-expandable-accordion.cjs.entry.js +8 -11
  363. package/dist/cjs/digi-expandable-faq-item.cjs.entry.js +4 -4
  364. package/dist/cjs/digi-expandable-faq.cjs.entry.js +2 -2
  365. package/dist/cjs/digi-footer-card.cjs.entry.js +1 -1
  366. package/dist/cjs/digi-footer.cjs.entry.js +7 -10
  367. package/dist/cjs/digi-form-category-filter.cjs.entry.js +2 -2
  368. package/dist/cjs/digi-form-checkbox.cjs.entry.js +2 -2
  369. package/dist/cjs/digi-form-error-list.cjs.entry.js +8 -11
  370. package/dist/cjs/digi-form-file-upload.cjs.entry.js +15 -16
  371. package/dist/cjs/digi-form-filter.cjs.entry.js +6 -6
  372. package/dist/cjs/digi-form-input-search.cjs.entry.js +7 -8
  373. package/dist/cjs/digi-form-radiogroup.cjs.entry.js +1 -1
  374. package/dist/cjs/digi-form-receipt.cjs.entry.js +13 -16
  375. package/dist/cjs/digi-form-select-filter.cjs.entry.js +20 -23
  376. package/dist/cjs/digi-form-textarea.cjs.entry.js +3 -3
  377. package/dist/cjs/digi-header-avatar.cjs.entry.js +1 -1
  378. package/dist/cjs/digi-header-navigation-item.cjs.entry.js +1 -1
  379. package/dist/cjs/digi-header-navigation.cjs.entry.js +8 -11
  380. package/dist/cjs/digi-header-notification.cjs.entry.js +2 -2
  381. package/dist/cjs/digi-header.cjs.entry.js +7 -10
  382. package/dist/cjs/digi-icon-accessibility-deaf.cjs.entry.js +2 -2
  383. package/dist/cjs/digi-icon-accessibility-universal.cjs.entry.js +2 -2
  384. package/dist/cjs/digi-icon-apple.cjs.entry.js +2 -2
  385. package/dist/cjs/digi-icon-archive-outline.cjs.entry.js +2 -2
  386. package/dist/cjs/digi-icon-archive.cjs.entry.js +2 -2
  387. package/dist/cjs/digi-icon-arrow-back.cjs.entry.js +2 -2
  388. package/dist/cjs/digi-icon-arrow-down.cjs.entry.js +2 -2
  389. package/dist/cjs/digi-icon-arrow-left.cjs.entry.js +2 -2
  390. package/dist/cjs/digi-icon-arrow-right.cjs.entry.js +2 -2
  391. package/dist/cjs/digi-icon-arrow-sign-in.cjs.entry.js +2 -2
  392. package/dist/cjs/digi-icon-arrow-sign-out.cjs.entry.js +2 -2
  393. package/dist/cjs/digi-icon-arrow-up.cjs.entry.js +2 -2
  394. package/dist/cjs/digi-icon-at.cjs.entry.js +2 -2
  395. package/dist/cjs/digi-icon-bars.cjs.entry.js +2 -2
  396. package/dist/cjs/digi-icon-bell-filled.cjs.entry.js +2 -2
  397. package/dist/cjs/digi-icon-bell.cjs.entry.js +2 -2
  398. package/dist/cjs/digi-icon-book.cjs.entry.js +2 -2
  399. package/dist/cjs/digi-icon-bookmark-outline.cjs.entry.js +2 -2
  400. package/dist/cjs/digi-icon-bookmark-solid.cjs.entry.js +2 -2
  401. package/dist/cjs/digi-icon-bubble-ellipsis.cjs.entry.js +2 -2
  402. package/dist/cjs/digi-icon-bubble.cjs.entry.js +2 -2
  403. package/dist/cjs/digi-icon-building-outline.cjs.entry.js +2 -2
  404. package/dist/cjs/digi-icon-building-solid.cjs.entry.js +2 -2
  405. package/dist/cjs/digi-icon-bullseye.cjs.entry.js +2 -2
  406. package/dist/cjs/digi-icon-calculator-solid.cjs.entry.js +2 -2
  407. package/dist/cjs/digi-icon-calendar-alt-alert.cjs.entry.js +2 -2
  408. package/dist/cjs/digi-icon-calendar.cjs.entry.js +2 -2
  409. package/dist/cjs/digi-icon-caret-circle-right.cjs.entry.js +2 -2
  410. package/dist/cjs/digi-icon-caret-down_2.cjs.entry.js +4 -4
  411. package/dist/cjs/digi-icon-caret-left.cjs.entry.js +2 -2
  412. package/dist/cjs/digi-icon-caret-right.cjs.entry.js +2 -2
  413. package/dist/cjs/digi-icon-chart_2.cjs.entry.js +4 -4
  414. package/dist/cjs/digi-icon-chat.cjs.entry.js +2 -2
  415. package/dist/cjs/digi-icon-check-circle-reg-alt.cjs.entry.js +2 -2
  416. package/dist/cjs/digi-icon-check-circle-solid.cjs.entry.js +2 -2
  417. package/dist/cjs/digi-icon-check.cjs.entry.js +2 -2
  418. package/dist/cjs/digi-icon-checklist.cjs.entry.js +2 -2
  419. package/dist/cjs/digi-icon-chevron-down.cjs.entry.js +2 -2
  420. package/dist/cjs/digi-icon-chevron-up.cjs.entry.js +2 -2
  421. package/dist/cjs/digi-icon-clock.cjs.entry.js +2 -2
  422. package/dist/cjs/digi-icon-communication-play-solid.cjs.entry.js +2 -2
  423. package/dist/cjs/digi-icon-compress-alt.cjs.entry.js +2 -2
  424. package/dist/cjs/digi-icon-comunication-case.cjs.entry.js +2 -2
  425. package/dist/cjs/digi-icon-comunication-flag.cjs.entry.js +2 -2
  426. package/dist/cjs/digi-icon-comunication-graduate.cjs.entry.js +2 -2
  427. package/dist/cjs/digi-icon-comunication-play.cjs.entry.js +2 -2
  428. package/dist/cjs/digi-icon-cooperation.cjs.entry.js +2 -2
  429. package/dist/cjs/digi-icon-copy.cjs.entry.js +2 -2
  430. package/dist/cjs/digi-icon-danger-outline.cjs.entry.js +2 -2
  431. package/dist/cjs/digi-icon-download.cjs.entry.js +2 -2
  432. package/dist/cjs/digi-icon-dxa.cjs.entry.js +2 -2
  433. package/dist/cjs/digi-icon-edit.cjs.entry.js +2 -2
  434. package/dist/cjs/digi-icon-ellipsis.cjs.entry.js +2 -2
  435. package/dist/cjs/digi-icon-envelope-filled.cjs.entry.js +2 -2
  436. package/dist/cjs/digi-icon-envelope.cjs.entry.js +2 -2
  437. package/dist/cjs/digi-icon-exclamation-circle-filled.cjs.entry.js +2 -2
  438. package/dist/cjs/digi-icon-exclamation-triangle-filled.cjs.entry.js +2 -2
  439. package/dist/cjs/digi-icon-exclamation-triangle-warning.cjs.entry.js +2 -2
  440. package/dist/cjs/digi-icon-exclamation-triangle.cjs.entry.js +2 -2
  441. package/dist/cjs/digi-icon-expand-alt.cjs.entry.js +2 -2
  442. package/dist/cjs/digi-icon-external-link-alt_2.cjs.entry.js +3 -3
  443. package/dist/cjs/digi-icon-eye-slash.cjs.entry.js +2 -2
  444. package/dist/cjs/digi-icon-eye.cjs.entry.js +2 -2
  445. package/dist/cjs/digi-icon-facebook-square.cjs.entry.js +2 -2
  446. package/dist/cjs/digi-icon-file-add.cjs.entry.js +1 -1
  447. package/dist/cjs/digi-icon-file-document.cjs.entry.js +2 -2
  448. package/dist/cjs/digi-icon-file-excel.cjs.entry.js +2 -2
  449. package/dist/cjs/digi-icon-file-export.cjs.entry.js +1 -1
  450. package/dist/cjs/digi-icon-file-governing.cjs.entry.js +2 -2
  451. package/dist/cjs/digi-icon-file-pdf.cjs.entry.js +2 -2
  452. package/dist/cjs/digi-icon-file-powerpoint.cjs.entry.js +2 -2
  453. package/dist/cjs/digi-icon-file-remove.cjs.entry.js +1 -1
  454. package/dist/cjs/digi-icon-file-word.cjs.entry.js +2 -2
  455. package/dist/cjs/digi-icon-film.cjs.entry.js +2 -2
  456. package/dist/cjs/digi-icon-filter.cjs.entry.js +2 -2
  457. package/dist/cjs/digi-icon-folder-add.cjs.entry.js +1 -1
  458. package/dist/cjs/digi-icon-folder-directory.cjs.entry.js +1 -1
  459. package/dist/cjs/digi-icon-folder-open.cjs.entry.js +1 -1
  460. package/dist/cjs/digi-icon-folder.cjs.entry.js +1 -1
  461. package/dist/cjs/digi-icon-globe-filled.cjs.entry.js +2 -2
  462. package/dist/cjs/digi-icon-globe.cjs.entry.js +2 -2
  463. package/dist/cjs/digi-icon-headphones.cjs.entry.js +2 -2
  464. package/dist/cjs/digi-icon-heart-solid.cjs.entry.js +2 -2
  465. package/dist/cjs/digi-icon-heart.cjs.entry.js +2 -2
  466. package/dist/cjs/digi-icon-history.cjs.entry.js +2 -2
  467. package/dist/cjs/digi-icon-home.cjs.entry.js +2 -2
  468. package/dist/cjs/digi-icon-image.cjs.entry.js +2 -2
  469. package/dist/cjs/digi-icon-info-circle-solid.cjs.entry.js +2 -2
  470. package/dist/cjs/digi-icon-instagram.cjs.entry.js +2 -2
  471. package/dist/cjs/digi-icon-job-suggestion.cjs.entry.js +2 -2
  472. package/dist/cjs/digi-icon-language-outline_4.cjs.entry.js +11 -11
  473. package/dist/cjs/digi-icon-language.cjs.entry.js +2 -2
  474. package/dist/cjs/digi-icon-laptop-phone.cjs.entry.js +2 -2
  475. package/dist/cjs/digi-icon-lattlast.cjs.entry.js +2 -2
  476. package/dist/cjs/digi-icon-licence-bus.cjs.entry.js +2 -2
  477. package/dist/cjs/digi-icon-licence-car.cjs.entry.js +2 -2
  478. package/dist/cjs/digi-icon-licence-motorcycle.cjs.entry.js +2 -2
  479. package/dist/cjs/digi-icon-licence-truck.cjs.entry.js +2 -2
  480. package/dist/cjs/digi-icon-lightbulb.cjs.entry.js +2 -2
  481. package/dist/cjs/digi-icon-linkedin-in.cjs.entry.js +2 -2
  482. package/dist/cjs/digi-icon-list-ul_6.cjs.entry.js +12 -12
  483. package/dist/cjs/digi-icon-lock.cjs.entry.js +2 -2
  484. package/dist/cjs/digi-icon-marker-filled.cjs.entry.js +2 -2
  485. package/dist/cjs/digi-icon-marker.cjs.entry.js +2 -2
  486. package/dist/cjs/digi-icon-media-course.cjs.entry.js +2 -2
  487. package/dist/cjs/digi-icon-media-podcast.cjs.entry.js +2 -2
  488. package/dist/cjs/digi-icon-microphone-off.cjs.entry.js +2 -2
  489. package/dist/cjs/digi-icon-microphone.cjs.entry.js +2 -2
  490. package/dist/cjs/digi-icon-minus_2.cjs.entry.js +4 -4
  491. package/dist/cjs/digi-icon-move.cjs.entry.js +2 -2
  492. package/dist/cjs/digi-icon-notification-error_5.cjs.entry.js +9 -9
  493. package/dist/cjs/digi-icon-online-interview.cjs.entry.js +2 -2
  494. package/dist/cjs/digi-icon-online-meeting.cjs.entry.js +2 -2
  495. package/dist/cjs/digi-icon-online-task.cjs.entry.js +2 -2
  496. package/dist/cjs/digi-icon-open-source.cjs.entry.js +2 -2
  497. package/dist/cjs/digi-icon-palette.cjs.entry.js +2 -2
  498. package/dist/cjs/digi-icon-paperclip_3.cjs.entry.js +6 -6
  499. package/dist/cjs/digi-icon-paste.cjs.entry.js +1 -1
  500. package/dist/cjs/digi-icon-pen.cjs.entry.js +2 -2
  501. package/dist/cjs/digi-icon-phone-hangup.cjs.entry.js +2 -2
  502. package/dist/cjs/digi-icon-phone.cjs.entry.js +2 -2
  503. package/dist/cjs/digi-icon-print.cjs.entry.js +2 -2
  504. package/dist/cjs/digi-icon-read.cjs.entry.js +2 -2
  505. package/dist/cjs/digi-icon-redo.cjs.entry.js +2 -2
  506. package/dist/cjs/digi-icon-scale.cjs.entry.js +1 -1
  507. package/dist/cjs/digi-icon-screensharing-off.cjs.entry.js +2 -2
  508. package/dist/cjs/digi-icon-screensharing.cjs.entry.js +2 -2
  509. package/dist/cjs/digi-icon-search.cjs.entry.js +2 -2
  510. package/dist/cjs/digi-icon-send-outline.cjs.entry.js +2 -2
  511. package/dist/cjs/digi-icon-send-solid.cjs.entry.js +2 -2
  512. package/dist/cjs/digi-icon-settings.cjs.entry.js +2 -2
  513. package/dist/cjs/digi-icon-share-alt.cjs.entry.js +2 -2
  514. package/dist/cjs/digi-icon-share-chain.cjs.entry.js +2 -2
  515. package/dist/cjs/digi-icon-sliders-h.cjs.entry.js +2 -2
  516. package/dist/cjs/digi-icon-sokkandidat.cjs.entry.js +2 -2
  517. package/dist/cjs/digi-icon-sort-down.cjs.entry.js +2 -2
  518. package/dist/cjs/digi-icon-sort-up.cjs.entry.js +2 -2
  519. package/dist/cjs/digi-icon-sort.cjs.entry.js +2 -2
  520. package/dist/cjs/digi-icon-spinner.cjs.entry.js +2 -2
  521. package/dist/cjs/digi-icon-star-reg.cjs.entry.js +2 -2
  522. package/dist/cjs/digi-icon-star.cjs.entry.js +2 -2
  523. package/dist/cjs/digi-icon-suitcase-outline.cjs.entry.js +2 -2
  524. package/dist/cjs/digi-icon-suitcase-solid.cjs.entry.js +2 -2
  525. package/dist/cjs/digi-icon-system-assistance.cjs.entry.js +2 -2
  526. package/dist/cjs/digi-icon-table-column.cjs.entry.js +2 -2
  527. package/dist/cjs/digi-icon-table-row.cjs.entry.js +2 -2
  528. package/dist/cjs/digi-icon-task-done.cjs.entry.js +2 -2
  529. package/dist/cjs/digi-icon-toggle-off.cjs.entry.js +2 -2
  530. package/dist/cjs/digi-icon-toggle-on.cjs.entry.js +2 -2
  531. package/dist/cjs/digi-icon-twitter.cjs.entry.js +2 -2
  532. package/dist/cjs/digi-icon-tyck-till.cjs.entry.js +2 -2
  533. package/dist/cjs/digi-icon-unlock.cjs.entry.js +2 -2
  534. package/dist/cjs/digi-icon-update.cjs.entry.js +2 -2
  535. package/dist/cjs/digi-icon-upload.cjs.entry.js +2 -2
  536. package/dist/cjs/digi-icon-user-add.cjs.entry.js +1 -1
  537. package/dist/cjs/digi-icon-user-alt.cjs.entry.js +2 -2
  538. package/dist/cjs/digi-icon-user-edit.cjs.entry.js +1 -1
  539. package/dist/cjs/digi-icon-users-solid.cjs.entry.js +2 -2
  540. package/dist/cjs/digi-icon-videocamera-off.cjs.entry.js +2 -2
  541. package/dist/cjs/digi-icon-videocamera.cjs.entry.js +2 -2
  542. package/dist/cjs/digi-icon-web-tv.cjs.entry.js +2 -2
  543. package/dist/cjs/digi-icon-wifi-signal0.cjs.entry.js +2 -2
  544. package/dist/cjs/digi-icon-wifi-signal1.cjs.entry.js +2 -2
  545. package/dist/cjs/digi-icon-wifi-signal2.cjs.entry.js +2 -2
  546. package/dist/cjs/digi-icon-wifi-signal3.cjs.entry.js +2 -2
  547. package/dist/cjs/digi-icon-window.cjs.entry.js +2 -2
  548. package/dist/cjs/digi-icon-x-button.cjs.entry.js +2 -2
  549. package/dist/cjs/digi-icon-x.cjs.entry.js +2 -2
  550. package/dist/cjs/digi-icon-youtube.cjs.entry.js +2 -2
  551. package/dist/cjs/digi-info-card-multi-container.cjs.entry.js +1 -1
  552. package/dist/cjs/digi-info-card-multi.cjs.entry.js +1 -1
  553. package/dist/cjs/digi-info-card.cjs.entry.js +1 -1
  554. package/dist/cjs/digi-layout-block_2.cjs.entry.js +2 -2
  555. package/dist/cjs/digi-layout-columns.cjs.entry.js +1 -1
  556. package/dist/cjs/digi-link-button.cjs.entry.js +1 -1
  557. package/dist/cjs/digi-link-internal.cjs.entry.js +1 -1
  558. package/dist/cjs/digi-link.cjs.entry.js +1 -1
  559. package/dist/cjs/digi-list.cjs.entry.js +1 -1
  560. package/dist/cjs/digi-loader-skeleton.cjs.entry.js +3 -3
  561. package/dist/cjs/digi-loader-spinner.cjs.entry.js +1 -1
  562. package/dist/cjs/digi-logo_2.cjs.entry.js +3 -3
  563. package/dist/cjs/digi-media-figure.cjs.entry.js +1 -1
  564. package/dist/cjs/digi-media-image_2.cjs.entry.js +3 -3
  565. package/dist/cjs/digi-navigation-breadcrumbs.cjs.entry.js +3 -3
  566. package/dist/cjs/digi-navigation-pagination.cjs.entry.js +10 -13
  567. package/dist/cjs/digi-navigation-sidebar.cjs.entry.js +2 -2
  568. package/dist/cjs/digi-navigation-vertical-menu-item.cjs.entry.js +6 -6
  569. package/dist/cjs/digi-navigation-vertical-menu.cjs.entry.js +1 -1
  570. package/dist/cjs/digi-notification-alert.cjs.entry.js +12 -15
  571. package/dist/cjs/digi-notification-error-page.cjs.entry.js +23 -26
  572. package/dist/cjs/digi-progress-circle.cjs.entry.js +9 -9
  573. package/dist/cjs/digi-progress-indicator.cjs.entry.js +4 -4
  574. package/dist/cjs/digi-progress-list-item.cjs.entry.js +6 -6
  575. package/dist/cjs/digi-progress-list.cjs.entry.js +1 -1
  576. package/dist/cjs/digi-progressbar.cjs.entry.js +3 -3
  577. package/dist/cjs/digi-quote.cjs.entry.js +1 -1
  578. package/dist/cjs/digi-table.cjs.entry.js +1 -1
  579. package/dist/cjs/digi-tablist-panel.cjs.entry.js +2 -2
  580. package/dist/cjs/digi-tablist.cjs.entry.js +5 -5
  581. package/dist/cjs/digi-tag-media.cjs.entry.js +2 -2
  582. package/dist/cjs/digi-tag.cjs.entry.js +2 -2
  583. package/dist/cjs/digi-tools-feedback-banner.cjs.entry.js +1 -1
  584. package/dist/cjs/digi-tools-feedback-rating.cjs.entry.js +1 -1
  585. package/dist/cjs/digi-tools-feedback.cjs.entry.js +12 -15
  586. package/dist/cjs/digi-tools-languagepicker.cjs.entry.js +3 -3
  587. package/dist/cjs/digi-typography-heading-jumbo.cjs.entry.js +1 -1
  588. package/dist/cjs/digi-typography-meta.cjs.entry.js +1 -1
  589. package/dist/cjs/digi-typography-preamble.cjs.entry.js +1 -1
  590. package/dist/cjs/digi-typography-time.cjs.entry.js +2 -2
  591. package/dist/cjs/digi-util-breakpoint-observer.cjs.entry.js +1 -1
  592. package/dist/cjs/digi-util-detect-click-outside.cjs.entry.js +1 -1
  593. package/dist/cjs/digi-util-detect-focus-outside.cjs.entry.js +1 -1
  594. package/dist/cjs/digi-util-keyup-handler.cjs.entry.js +1 -1
  595. package/dist/cjs/digi-util-resize-observer.cjs.entry.js +1 -1
  596. package/dist/cjs/{form-input-type.enum-9c8ee12a.js → form-input-type.enum-daf781ba.js} +7 -0
  597. package/dist/cjs/{form-file-upload-variation.enum-634cfae8.js → form-validation-message-variation.enum-c5ec3e2d.js} +7 -0
  598. package/dist/cjs/{index-ac8e01b4.js → index-acb7b350.js} +189 -19
  599. package/dist/cjs/index-cfa8e9be.js +6 -30
  600. package/dist/cjs/index.cjs.js +82 -85
  601. package/dist/cjs/loader.cjs.js +1 -1
  602. package/dist/cjs/{text-ca7e238b.js → text-3157012b.js} +13 -0
  603. package/dist/cjs/{tools-feedback-variation.enum-b17e8f87.js → typography-variation.enum-cc2d8aef.js} +49 -0
  604. package/dist/collection/components/_calendar/calendar/calendar.css +10 -4
  605. package/dist/collection/components/_calendar/calendar/calendar.js +27 -23
  606. package/dist/collection/components/_calendar/calendar-datepicker/calendar-datepicker.css +26 -0
  607. package/dist/collection/components/_calendar/calendar-datepicker/calendar-datepicker.js +72 -13
  608. package/dist/collection/components/_calendar/week-view/calendar-week-view.js +4 -4
  609. package/dist/collection/components/_card/card/card.js +1 -1
  610. package/dist/collection/components/_chart/bar-chart/bar-chart.js +1 -1
  611. package/dist/collection/components/_chart/chart-line/chart-line.css +14 -2
  612. package/dist/collection/components/_chart/chart-line/chart-line.js +46 -42
  613. package/dist/collection/components/_code/code/code.js +1 -1
  614. package/dist/collection/components/_code/code-block/code-block.js +1 -1
  615. package/dist/collection/components/_code/code-example/code-example.js +4 -4
  616. package/dist/collection/components/_dialog/dialog/dialog.js +3 -3
  617. package/dist/collection/components/_expandable/expandable-accordion/expandable-accordion.js +1 -1
  618. package/dist/collection/components/_expandable/expandable-faq/expandable-faq.js +2 -2
  619. package/dist/collection/components/_expandable/expandable-faq-item/expandable-faq-item.js +4 -4
  620. package/dist/collection/components/_footer/footer/footer.js +1 -1
  621. package/dist/collection/components/_footer/footer-card/footer-card.js +1 -1
  622. package/dist/collection/components/_form/form-category-filter/form-category-filter.js +2 -2
  623. package/dist/collection/components/_form/form-checkbox/form-checkbox.js +2 -2
  624. package/dist/collection/components/_form/form-error-list/form-error-list.js +3 -3
  625. package/dist/collection/components/_form/form-fieldset/form-fieldset.js +1 -1
  626. package/dist/collection/components/_form/form-file-upload/form-file-upload.js +7 -7
  627. package/dist/collection/components/_form/form-filter/form-filter.js +5 -5
  628. package/dist/collection/components/_form/form-input/form-input.js +3 -3
  629. package/dist/collection/components/_form/form-input-search/form-input-search.js +2 -2
  630. package/dist/collection/components/_form/form-label/form-label.js +1 -1
  631. package/dist/collection/components/_form/form-radiobutton/form-radiobutton.js +2 -2
  632. package/dist/collection/components/_form/form-radiogroup/form-radiogroup.js +1 -1
  633. package/dist/collection/components/_form/form-receipt/form-receipt.js +1 -1
  634. package/dist/collection/components/_form/form-select/form-select.js +4 -4
  635. package/dist/collection/components/_form/form-select-filter/form-select-filter.js +7 -7
  636. package/dist/collection/components/_form/form-textarea/form-textarea.js +3 -3
  637. package/dist/collection/components/_form/form-validation-message/form-validation-message.js +1 -1
  638. package/dist/collection/components/_header/header/header.js +2 -2
  639. package/dist/collection/components/_header/header-avatar/header-avatar.js +1 -1
  640. package/dist/collection/components/_header/header-navigation/header-navigation.js +3 -3
  641. package/dist/collection/components/_header/header-navigation-item/header-navigation-item.js +1 -1
  642. package/dist/collection/components/_header/header-notification/header-notification.js +2 -2
  643. package/dist/collection/components/_icon/icon-accessibility-deaf/icon-accessibility-deaf.js +2 -2
  644. package/dist/collection/components/_icon/icon-accessibility-universal/icon-accessibility-universal.js +2 -2
  645. package/dist/collection/components/_icon/icon-apple/icon-apple.js +2 -2
  646. package/dist/collection/components/_icon/icon-archive/icon-archive.js +2 -2
  647. package/dist/collection/components/_icon/icon-archive-outline/icon-archive-outline.js +2 -2
  648. package/dist/collection/components/_icon/icon-arrow-back/icon-arrow-back.js +2 -2
  649. package/dist/collection/components/_icon/icon-arrow-down/icon-arrow-down.js +2 -2
  650. package/dist/collection/components/_icon/icon-arrow-left/icon-arrow-left.js +2 -2
  651. package/dist/collection/components/_icon/icon-arrow-right/icon-arrow-right.js +2 -2
  652. package/dist/collection/components/_icon/icon-arrow-sign-in/icon-arrow-sign-in.js +2 -2
  653. package/dist/collection/components/_icon/icon-arrow-sign-out/icon-arrow-sign-out.js +2 -2
  654. package/dist/collection/components/_icon/icon-arrow-up/icon-arrow-up.js +2 -2
  655. package/dist/collection/components/_icon/icon-at/icon-at.js +2 -2
  656. package/dist/collection/components/_icon/icon-bars/icon-bars.js +2 -2
  657. package/dist/collection/components/_icon/icon-bell/icon-bell.js +2 -2
  658. package/dist/collection/components/_icon/icon-bell-filled/icon-bell-filled.js +2 -2
  659. package/dist/collection/components/_icon/icon-book/icon-book.js +2 -2
  660. package/dist/collection/components/_icon/icon-bookmark-outline/icon-bookmark-outline.js +2 -2
  661. package/dist/collection/components/_icon/icon-bookmark-solid/icon-bookmark-solid.js +2 -2
  662. package/dist/collection/components/_icon/icon-bubble/icon-bubble.js +2 -2
  663. package/dist/collection/components/_icon/icon-bubble-ellipsis/icon-bubble-ellipsis.js +2 -2
  664. package/dist/collection/components/_icon/icon-building-outline/icon-building-outline.js +2 -2
  665. package/dist/collection/components/_icon/icon-building-solid/icon-building-solid.js +2 -2
  666. package/dist/collection/components/_icon/icon-bullseye/icon-bullseye.js +2 -2
  667. package/dist/collection/components/_icon/icon-calculator-solid/icon-calculator-solid.js +2 -2
  668. package/dist/collection/components/_icon/icon-calendar/icon-calendar.js +2 -2
  669. package/dist/collection/components/_icon/icon-calendar-alt/icon-calendar-alt.js +2 -2
  670. package/dist/collection/components/_icon/icon-calendar-alt-alert/icon-calendar-alt-alert.js +2 -2
  671. package/dist/collection/components/_icon/icon-caret-circle-right/icon-caret-circle-right.js +2 -2
  672. package/dist/collection/components/_icon/icon-caret-down/icon-caret-down.js +2 -2
  673. package/dist/collection/components/_icon/icon-caret-left/icon-caret-left.js +2 -2
  674. package/dist/collection/components/_icon/icon-caret-right/icon-caret-right.js +2 -2
  675. package/dist/collection/components/_icon/icon-caret-up/icon-caret-up.js +2 -2
  676. package/dist/collection/components/_icon/icon-chart/icon-chart.js +2 -2
  677. package/dist/collection/components/_icon/icon-chat/icon-chat.js +2 -2
  678. package/dist/collection/components/_icon/icon-check/icon-check.js +2 -2
  679. package/dist/collection/components/_icon/icon-check-circle-reg-alt/icon-check-circle-reg-alt.js +2 -2
  680. package/dist/collection/components/_icon/icon-check-circle-solid/icon-check-circle-solid.js +2 -2
  681. package/dist/collection/components/_icon/icon-checklist/icon-checklist.js +2 -2
  682. package/dist/collection/components/_icon/icon-chevron-down/icon-chevron-down.js +2 -2
  683. package/dist/collection/components/_icon/icon-chevron-left/icon-chevron-left.js +2 -2
  684. package/dist/collection/components/_icon/icon-chevron-right/icon-chevron-right.js +2 -2
  685. package/dist/collection/components/_icon/icon-chevron-up/icon-chevron-up.js +2 -2
  686. package/dist/collection/components/_icon/icon-clock/icon-clock.js +2 -2
  687. package/dist/collection/components/_icon/icon-communication-play-solid/icon-communication-play-solid.js +2 -2
  688. package/dist/collection/components/_icon/icon-compress-alt/icon-compress-alt.js +2 -2
  689. package/dist/collection/components/_icon/icon-comunication-case/icon-comunication-case.js +2 -2
  690. package/dist/collection/components/_icon/icon-comunication-flag/icon-comunication-flag.js +2 -2
  691. package/dist/collection/components/_icon/icon-comunication-graduate/icon-comunication-graduate.js +2 -2
  692. package/dist/collection/components/_icon/icon-comunication-play/icon-comunication-play.js +2 -2
  693. package/dist/collection/components/_icon/icon-cooperation/icon-cooperation.js +2 -2
  694. package/dist/collection/components/_icon/icon-copy/icon-copy.js +2 -2
  695. package/dist/collection/components/_icon/icon-danger-outline/icon-danger-outline.js +2 -2
  696. package/dist/collection/components/_icon/icon-download/icon-download.js +2 -2
  697. package/dist/collection/components/_icon/icon-dxa/icon-dxa.js +2 -2
  698. package/dist/collection/components/_icon/icon-edit/icon-edit.js +2 -2
  699. package/dist/collection/components/_icon/icon-ellipsis/icon-ellipsis.js +2 -2
  700. package/dist/collection/components/_icon/icon-envelope/icon-envelope.js +2 -2
  701. package/dist/collection/components/_icon/icon-envelope-filled/icon-envelope-filled.js +2 -2
  702. package/dist/collection/components/_icon/icon-exclamation-circle-filled/icon-exclamation-circle-filled.js +2 -2
  703. package/dist/collection/components/_icon/icon-exclamation-triangle/icon-exclamation-triangle.js +2 -2
  704. package/dist/collection/components/_icon/icon-exclamation-triangle-filled/icon-exclamation-triangle-filled.js +2 -2
  705. package/dist/collection/components/_icon/icon-exclamation-triangle-warning/icon-exclamation-triangle-warning.js +2 -2
  706. package/dist/collection/components/_icon/icon-expand-alt/icon-expand-alt.js +2 -2
  707. package/dist/collection/components/_icon/icon-external-link-alt/icon-external-link-alt.js +2 -2
  708. package/dist/collection/components/_icon/icon-eye/icon-eye.js +2 -2
  709. package/dist/collection/components/_icon/icon-eye-slash/icon-eye-slash.js +2 -2
  710. package/dist/collection/components/_icon/icon-facebook-square/icon-facebook-square.js +2 -2
  711. package/dist/collection/components/_icon/icon-file-add/icon-file-add.js +1 -1
  712. package/dist/collection/components/_icon/icon-file-document/icon-file-document.js +2 -2
  713. package/dist/collection/components/_icon/icon-file-excel/icon-file-excel.js +2 -2
  714. package/dist/collection/components/_icon/icon-file-export/icon-file-export.js +1 -1
  715. package/dist/collection/components/_icon/icon-file-governing/icon-file-governing.js +2 -2
  716. package/dist/collection/components/_icon/icon-file-pdf/icon-file-pdf.js +2 -2
  717. package/dist/collection/components/_icon/icon-file-powerpoint/icon-file-powerpoint.js +2 -2
  718. package/dist/collection/components/_icon/icon-file-remove/icon-file-remove.js +1 -1
  719. package/dist/collection/components/_icon/icon-file-word/icon-file-word.js +2 -2
  720. package/dist/collection/components/_icon/icon-film/icon-film.js +2 -2
  721. package/dist/collection/components/_icon/icon-filter/icon-filter.js +2 -2
  722. package/dist/collection/components/_icon/icon-folder/icon-folder.js +1 -1
  723. package/dist/collection/components/_icon/icon-folder-add/icon-folder-add.js +1 -1
  724. package/dist/collection/components/_icon/icon-folder-directory/icon-folder-directory.js +1 -1
  725. package/dist/collection/components/_icon/icon-folder-open/icon-folder-open.js +1 -1
  726. package/dist/collection/components/_icon/icon-globe/icon-globe.js +2 -2
  727. package/dist/collection/components/_icon/icon-globe-filled/icon-globe-filled.js +2 -2
  728. package/dist/collection/components/_icon/icon-headphones/icon-headphones.js +2 -2
  729. package/dist/collection/components/_icon/icon-heart/icon-heart.js +2 -2
  730. package/dist/collection/components/_icon/icon-heart-solid/icon-heart-solid.js +2 -2
  731. package/dist/collection/components/_icon/icon-history/icon-history.js +2 -2
  732. package/dist/collection/components/_icon/icon-home/icon-home.js +2 -2
  733. package/dist/collection/components/_icon/icon-image/icon-image.js +2 -2
  734. package/dist/collection/components/_icon/icon-info-circle-solid/icon-info-circle-solid.js +2 -2
  735. package/dist/collection/components/_icon/icon-input-select-marker/icon-input-select-marker.js +2 -2
  736. package/dist/collection/components/_icon/icon-instagram/icon-instagram.js +2 -2
  737. package/dist/collection/components/_icon/icon-job-suggestion/icon-job-suggestion.js +2 -2
  738. package/dist/collection/components/_icon/icon-language/icon-language.js +2 -2
  739. package/dist/collection/components/_icon/icon-language-outline/icon-language-outline.js +2 -2
  740. package/dist/collection/components/_icon/icon-laptop-phone/icon-laptop-phone.js +2 -2
  741. package/dist/collection/components/_icon/icon-lattlast/icon-lattlast.js +2 -2
  742. package/dist/collection/components/_icon/icon-licence-bus/icon-licence-bus.js +2 -2
  743. package/dist/collection/components/_icon/icon-licence-car/icon-licence-car.js +2 -2
  744. package/dist/collection/components/_icon/icon-licence-motorcycle/icon-licence-motorcycle.js +2 -2
  745. package/dist/collection/components/_icon/icon-licence-truck/icon-licence-truck.js +2 -2
  746. package/dist/collection/components/_icon/icon-lightbulb/icon-lightbulb.js +2 -2
  747. package/dist/collection/components/_icon/icon-linkedin-in/icon-linkedin-in.js +2 -2
  748. package/dist/collection/components/_icon/icon-list-ul/icon-list-ul.js +2 -2
  749. package/dist/collection/components/_icon/icon-lock/icon-lock.js +2 -2
  750. package/dist/collection/components/_icon/icon-marker/icon-marker.js +2 -2
  751. package/dist/collection/components/_icon/icon-marker-filled/icon-marker-filled.js +2 -2
  752. package/dist/collection/components/_icon/icon-media-course/icon-media-course.js +2 -2
  753. package/dist/collection/components/_icon/icon-media-podcast/icon-media-podcast.js +2 -2
  754. package/dist/collection/components/_icon/icon-microphone/icon-microphone.js +2 -2
  755. package/dist/collection/components/_icon/icon-microphone-off/icon-microphone-off.js +2 -2
  756. package/dist/collection/components/_icon/icon-minus/icon-minus.js +2 -2
  757. package/dist/collection/components/_icon/icon-move/icon-move.js +2 -2
  758. package/dist/collection/components/_icon/icon-news/icon-news.js +2 -2
  759. package/dist/collection/components/_icon/icon-notification-error/icon-notification-error.js +2 -2
  760. package/dist/collection/components/_icon/icon-notification-info/icon-notification-info.js +2 -2
  761. package/dist/collection/components/_icon/icon-notification-succes/icon-notification-succes.js +2 -2
  762. package/dist/collection/components/_icon/icon-notification-warning/icon-notification-warning.js +2 -2
  763. package/dist/collection/components/_icon/icon-online-computervideo/icon-online-computervideo.js +2 -2
  764. package/dist/collection/components/_icon/icon-online-interview/icon-online-interview.js +2 -2
  765. package/dist/collection/components/_icon/icon-online-meeting/icon-online-meeting.js +2 -2
  766. package/dist/collection/components/_icon/icon-online-task/icon-online-task.js +2 -2
  767. package/dist/collection/components/_icon/icon-online-video/icon-online-video.js +2 -2
  768. package/dist/collection/components/_icon/icon-open-source/icon-open-source.js +2 -2
  769. package/dist/collection/components/_icon/icon-palette/icon-palette.js +2 -2
  770. package/dist/collection/components/_icon/icon-paperclip/icon-paperclip.js +2 -2
  771. package/dist/collection/components/_icon/icon-paste/icon-paste.js +1 -1
  772. package/dist/collection/components/_icon/icon-pen/icon-pen.js +2 -2
  773. package/dist/collection/components/_icon/icon-phone/icon-phone.js +2 -2
  774. package/dist/collection/components/_icon/icon-phone-hangup/icon-phone-hangup.js +2 -2
  775. package/dist/collection/components/_icon/icon-plus/icon-plus.js +2 -2
  776. package/dist/collection/components/_icon/icon-pod/icon-pod.js +2 -2
  777. package/dist/collection/components/_icon/icon-print/icon-print.js +2 -2
  778. package/dist/collection/components/_icon/icon-read/icon-read.js +2 -2
  779. package/dist/collection/components/_icon/icon-redo/icon-redo.js +2 -2
  780. package/dist/collection/components/_icon/icon-scale/icon-scale.js +1 -1
  781. package/dist/collection/components/_icon/icon-screensharing/icon-screensharing.js +2 -2
  782. package/dist/collection/components/_icon/icon-screensharing-off/icon-screensharing-off.js +2 -2
  783. package/dist/collection/components/_icon/icon-search/icon-search.js +2 -2
  784. package/dist/collection/components/_icon/icon-send-outline/icon-send-outline.js +2 -2
  785. package/dist/collection/components/_icon/icon-send-solid/icon-send-solid.js +2 -2
  786. package/dist/collection/components/_icon/icon-settings/icon-settings.js +2 -2
  787. package/dist/collection/components/_icon/icon-share-alt/icon-share-alt.js +2 -2
  788. package/dist/collection/components/_icon/icon-share-chain/icon-share-chain.js +2 -2
  789. package/dist/collection/components/_icon/icon-sign/icon-sign.js +2 -2
  790. package/dist/collection/components/_icon/icon-sliders-h/icon-sliders-h.js +2 -2
  791. package/dist/collection/components/_icon/icon-sokkandidat/icon-sokkandidat.js +2 -2
  792. package/dist/collection/components/_icon/icon-sort/icon-sort.js +2 -2
  793. package/dist/collection/components/_icon/icon-sort-down/icon-sort-down.js +2 -2
  794. package/dist/collection/components/_icon/icon-sort-up/icon-sort-up.js +2 -2
  795. package/dist/collection/components/_icon/icon-spinner/icon-spinner.js +2 -2
  796. package/dist/collection/components/_icon/icon-star/icon-star.js +2 -2
  797. package/dist/collection/components/_icon/icon-star-reg/icon-star-reg.js +2 -2
  798. package/dist/collection/components/_icon/icon-suitcase-outline/icon-suitcase-outline.js +2 -2
  799. package/dist/collection/components/_icon/icon-suitcase-solid/icon-suitcase-solid.js +2 -2
  800. package/dist/collection/components/_icon/icon-system-assistance/icon-system-assistance.js +2 -2
  801. package/dist/collection/components/_icon/icon-table/icon-table.js +2 -2
  802. package/dist/collection/components/_icon/icon-table-column/icon-table-column.js +2 -2
  803. package/dist/collection/components/_icon/icon-table-row/icon-table-row.js +2 -2
  804. package/dist/collection/components/_icon/icon-task-done/icon-task-done.js +2 -2
  805. package/dist/collection/components/_icon/icon-toggle-off/icon-toggle-off.js +2 -2
  806. package/dist/collection/components/_icon/icon-toggle-on/icon-toggle-on.js +2 -2
  807. package/dist/collection/components/_icon/icon-trash/icon-trash.js +2 -2
  808. package/dist/collection/components/_icon/icon-twitter/icon-twitter.js +2 -2
  809. package/dist/collection/components/_icon/icon-tyck-till/icon-tyck-till.js +2 -2
  810. package/dist/collection/components/_icon/icon-unlock/icon-unlock.js +2 -2
  811. package/dist/collection/components/_icon/icon-update/icon-update.js +2 -2
  812. package/dist/collection/components/_icon/icon-upload/icon-upload.js +2 -2
  813. package/dist/collection/components/_icon/icon-user-add/icon-user-add.js +1 -1
  814. package/dist/collection/components/_icon/icon-user-alt/icon-user-alt.js +2 -2
  815. package/dist/collection/components/_icon/icon-user-edit/icon-user-edit.js +1 -1
  816. package/dist/collection/components/_icon/icon-users-solid/icon-users-solid.js +2 -2
  817. package/dist/collection/components/_icon/icon-validation-error/icon-validation-error.js +2 -2
  818. package/dist/collection/components/_icon/icon-validation-success/icon-validation-success.js +2 -2
  819. package/dist/collection/components/_icon/icon-validation-warning/icon-validation-warning.js +2 -2
  820. package/dist/collection/components/_icon/icon-videocamera/icon-videocamera.js +2 -2
  821. package/dist/collection/components/_icon/icon-videocamera-off/icon-videocamera-off.js +2 -2
  822. package/dist/collection/components/_icon/icon-volume/icon-volume.js +2 -2
  823. package/dist/collection/components/_icon/icon-web-tv/icon-web-tv.js +2 -2
  824. package/dist/collection/components/_icon/icon-webinar/icon-webinar.js +2 -2
  825. package/dist/collection/components/_icon/icon-wifi-signal0/icon-wifi-signal0.js +2 -2
  826. package/dist/collection/components/_icon/icon-wifi-signal1/icon-wifi-signal1.js +2 -2
  827. package/dist/collection/components/_icon/icon-wifi-signal2/icon-wifi-signal2.js +2 -2
  828. package/dist/collection/components/_icon/icon-wifi-signal3/icon-wifi-signal3.js +2 -2
  829. package/dist/collection/components/_icon/icon-window/icon-window.js +2 -2
  830. package/dist/collection/components/_icon/icon-x/icon-x.js +2 -2
  831. package/dist/collection/components/_icon/icon-x-button/icon-x-button.js +2 -2
  832. package/dist/collection/components/_icon/icon-x-button-outline/icon-x-button-outline.js +2 -2
  833. package/dist/collection/components/_icon/icon-youtube/icon-youtube.js +2 -2
  834. package/dist/collection/components/_info-card/info-card/info-card.js +1 -1
  835. package/dist/collection/components/_info-card/info-card-multi/info-card-multi.js +1 -1
  836. package/dist/collection/components/_info-card/info-card-multi-container/info-card-multi-container.js +1 -1
  837. package/dist/collection/components/_layout/layout-block/layout-block.js +1 -1
  838. package/dist/collection/components/_layout/layout-columns/layout-columns.js +1 -1
  839. package/dist/collection/components/_layout/layout-container/layout-container.js +1 -1
  840. package/dist/collection/components/_layout/layout-media-object/layout-media-object.js +1 -1
  841. package/dist/collection/components/_link/link/link.js +1 -1
  842. package/dist/collection/components/_link/link-button/link-button.js +1 -1
  843. package/dist/collection/components/_link/link-external/link-external.js +1 -1
  844. package/dist/collection/components/_link/link-internal/link-internal.js +1 -1
  845. package/dist/collection/components/_list/list/list.js +1 -1
  846. package/dist/collection/components/_loader/loader-skeleton/loader-skeleton.js +3 -3
  847. package/dist/collection/components/_loader/loader-spinner/loader-spinner.js +1 -1
  848. package/dist/collection/components/_logo/logo/logo.js +2 -2
  849. package/dist/collection/components/_media/media-figure/media-figure.js +1 -1
  850. package/dist/collection/components/_media/media-image/media-image.js +2 -2
  851. package/dist/collection/components/_navigation/navigation-breadcrumbs/navigation-breadcrumbs.js +2 -2
  852. package/dist/collection/components/_navigation/navigation-context-menu/navigation-context-menu.js +2 -2
  853. package/dist/collection/components/_navigation/navigation-context-menu-legacy/navigation-context-menu.js +5 -5
  854. package/dist/collection/components/_navigation/navigation-pagination/navigation-pagination.js +6 -6
  855. package/dist/collection/components/_navigation/navigation-sidebar/navigation-sidebar.js +2 -2
  856. package/dist/collection/components/_navigation/navigation-sidebar-button/navigation-sidebar-button.js +1 -1
  857. package/dist/collection/components/_navigation/navigation-tablist/navigation-tablist.js +5 -5
  858. package/dist/collection/components/_navigation/navigation-tablist-panel/tablist-panel.js +2 -2
  859. package/dist/collection/components/_navigation/navigation-vertical-menu/navigation-vertical-menu.js +1 -1
  860. package/dist/collection/components/_navigation/navigation-vertical-menu-item/navigation-vertical-menu-item.js +6 -6
  861. package/dist/collection/components/_notification/notification-alert/notification-alert.js +2 -2
  862. package/dist/collection/components/_notification/notification-error-page/notification-error-page.js +3 -3
  863. package/dist/collection/components/_progress/progress-circle/progress-circle.js +8 -8
  864. package/dist/collection/components/_progress/progress-indicator/progress-indicator.js +3 -3
  865. package/dist/collection/components/_progress/progress-list/progress-list.js +1 -1
  866. package/dist/collection/components/_progress/progress-list-item/progress-list-item.js +5 -5
  867. package/dist/collection/components/_progress/progressbar/progressbar.js +2 -2
  868. package/dist/collection/components/_quote/quote/quote.js +1 -1
  869. package/dist/collection/components/_table/table/table.js +1 -1
  870. package/dist/collection/components/_tag/tag/tag.js +1 -1
  871. package/dist/collection/components/_tag/tag-media/tag-media.js +2 -2
  872. package/dist/collection/components/_tools/tools-feedback/tools-feedback.js +1 -1
  873. package/dist/collection/components/_tools/tools-feedback-banner/tools-feedback-banner.js +1 -1
  874. package/dist/collection/components/_tools/tools-feedback-rating/tools-feedback-rating.js +1 -1
  875. package/dist/collection/components/_tools/tools-languagepicker/tools-languagepicker.js +3 -3
  876. package/dist/collection/components/_typography/typography/typography.js +1 -1
  877. package/dist/collection/components/_typography/typography-heading-jumbo/typography-heading-jumbo.js +1 -1
  878. package/dist/collection/components/_typography/typography-meta/typography-meta.js +1 -1
  879. package/dist/collection/components/_typography/typography-preamble/typography-preamble.js +1 -1
  880. package/dist/collection/components/_typography/typography-time/typography-time.js +1 -1
  881. package/dist/collection/components/_util/util-breakpoint-observer/util-breakpoint-observer.js +1 -1
  882. package/dist/collection/components/_util/util-detect-click-outside/util-detect-click-outside.js +1 -1
  883. package/dist/collection/components/_util/util-detect-focus-outside/util-detect-focus-outside.js +1 -1
  884. package/dist/collection/components/_util/util-intersection-observer/util-intersection-observer.js +1 -1
  885. package/dist/collection/components/_util/util-keydown-handler/util-keydown-handler.js +1 -1
  886. package/dist/collection/components/_util/util-keyup-handler/util-keyup-handler.js +1 -1
  887. package/dist/collection/components/_util/util-resize-observer/util-resize-observer.js +1 -1
  888. package/dist/collection/text/locale/sv/text.js +13 -0
  889. package/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.esm.js +1 -1
  890. package/dist/digi-arbetsformedlingen/index.esm.js +1 -1
  891. package/dist/digi-arbetsformedlingen/{p-0516c800.entry.js → p-02a04cf3.entry.js} +1 -1
  892. package/dist/digi-arbetsformedlingen/{p-16a3e46b.entry.js → p-02cf07e8.entry.js} +1 -1
  893. package/dist/digi-arbetsformedlingen/{p-5a7db717.entry.js → p-03be1666.entry.js} +1 -1
  894. package/dist/digi-arbetsformedlingen/{p-0f485fa7.entry.js → p-04cec605.entry.js} +1 -1
  895. package/dist/digi-arbetsformedlingen/{p-076c366b.entry.js → p-0693af96.entry.js} +1 -1
  896. package/dist/digi-arbetsformedlingen/{p-3c6e1cbc.entry.js → p-076f92de.entry.js} +1 -1
  897. package/dist/digi-arbetsformedlingen/{p-84c79dba.entry.js → p-078d012a.entry.js} +1 -1
  898. package/dist/digi-arbetsformedlingen/{p-35b658e0.entry.js → p-0793f184.entry.js} +1 -1
  899. package/dist/digi-arbetsformedlingen/p-08cf2c0e.js +1 -0
  900. package/dist/digi-arbetsformedlingen/{p-de4c4238.entry.js → p-0972c7c6.entry.js} +1 -1
  901. package/dist/digi-arbetsformedlingen/{p-98fbbd5b.entry.js → p-0aca60e0.entry.js} +1 -1
  902. package/dist/digi-arbetsformedlingen/p-0de1bdec.entry.js +1 -0
  903. package/dist/digi-arbetsformedlingen/{p-b2f9e9a4.entry.js → p-0e4b83cc.entry.js} +1 -1
  904. package/dist/digi-arbetsformedlingen/{p-f67ebb76.entry.js → p-0e6379a8.entry.js} +1 -1
  905. package/dist/digi-arbetsformedlingen/{p-4e625acf.entry.js → p-0f90f61f.entry.js} +1 -1
  906. package/dist/digi-arbetsformedlingen/p-1088e9fc.entry.js +1 -0
  907. package/dist/digi-arbetsformedlingen/{p-82707491.entry.js → p-11b99f00.entry.js} +1 -1
  908. package/dist/digi-arbetsformedlingen/{p-80dc837a.entry.js → p-11e54b5c.entry.js} +1 -1
  909. package/dist/digi-arbetsformedlingen/{p-a6fcc0f7.entry.js → p-12de3a7e.entry.js} +1 -1
  910. package/dist/digi-arbetsformedlingen/{p-7ffe6ded.entry.js → p-14e9d33a.entry.js} +1 -1
  911. package/dist/digi-arbetsformedlingen/{p-5d588713.entry.js → p-160e9e94.entry.js} +1 -1
  912. package/dist/digi-arbetsformedlingen/{p-17a7bf09.entry.js → p-16effd03.entry.js} +1 -1
  913. package/dist/digi-arbetsformedlingen/{p-7bbee718.entry.js → p-1701b23a.entry.js} +1 -1
  914. package/dist/digi-arbetsformedlingen/{p-a0607d6f.entry.js → p-17a1422e.entry.js} +1 -1
  915. package/dist/digi-arbetsformedlingen/{p-da9d7578.entry.js → p-17cd7fb4.entry.js} +1 -1
  916. package/dist/digi-arbetsformedlingen/p-193488ec.entry.js +1 -0
  917. package/dist/digi-arbetsformedlingen/{p-eedd8fdb.entry.js → p-19822b1c.entry.js} +1 -1
  918. package/dist/digi-arbetsformedlingen/{p-f0cdaac5.entry.js → p-1a550ba9.entry.js} +1 -1
  919. package/dist/digi-arbetsformedlingen/{p-26795b0d.entry.js → p-1af5bf39.entry.js} +1 -1
  920. package/dist/digi-arbetsformedlingen/{p-8b9389f3.entry.js → p-1b6da519.entry.js} +1 -1
  921. package/dist/digi-arbetsformedlingen/{p-fe237907.entry.js → p-22129c8d.entry.js} +1 -1
  922. package/dist/digi-arbetsformedlingen/{p-d155d7bb.entry.js → p-23f75ae6.entry.js} +1 -1
  923. package/dist/digi-arbetsformedlingen/{p-c4d553e8.entry.js → p-245a9c9e.entry.js} +1 -1
  924. package/dist/digi-arbetsformedlingen/{p-18dbe97f.entry.js → p-26d2be3a.entry.js} +1 -1
  925. package/dist/digi-arbetsformedlingen/{p-1b475b3a.entry.js → p-29a3eed7.entry.js} +1 -1
  926. package/dist/digi-arbetsformedlingen/{p-a399093e.entry.js → p-2ae0f625.entry.js} +1 -1
  927. package/dist/digi-arbetsformedlingen/{p-fc466660.entry.js → p-2c495316.entry.js} +1 -1
  928. package/dist/digi-arbetsformedlingen/{p-346297b2.entry.js → p-2c993d15.entry.js} +1 -1
  929. package/dist/digi-arbetsformedlingen/{p-da96aa9d.entry.js → p-2ef3e74c.entry.js} +1 -1
  930. package/dist/digi-arbetsformedlingen/{p-04162d84.entry.js → p-2fe35dd2.entry.js} +1 -1
  931. package/dist/digi-arbetsformedlingen/{p-4e9b1820.entry.js → p-303d78c4.entry.js} +1 -1
  932. package/dist/digi-arbetsformedlingen/{p-c4445a09.entry.js → p-31c0d616.entry.js} +1 -1
  933. package/dist/digi-arbetsformedlingen/p-321bfe4e.entry.js +1 -0
  934. package/dist/digi-arbetsformedlingen/{p-fdd6d003.entry.js → p-340cf425.entry.js} +1 -1
  935. package/dist/digi-arbetsformedlingen/p-3498b991.entry.js +1 -0
  936. package/dist/digi-arbetsformedlingen/{p-e1e773a1.entry.js → p-356d406f.entry.js} +1 -1
  937. package/dist/digi-arbetsformedlingen/{p-f90cf259.entry.js → p-36258fdd.entry.js} +1 -1
  938. package/dist/digi-arbetsformedlingen/{p-4ce85210.entry.js → p-36ddd2ab.entry.js} +1 -1
  939. package/dist/digi-arbetsformedlingen/p-3887bb40.js +1 -0
  940. package/dist/digi-arbetsformedlingen/{p-6ff164fd.entry.js → p-38c1a2f2.entry.js} +1 -1
  941. package/dist/digi-arbetsformedlingen/{p-240a0fd6.entry.js → p-39882543.entry.js} +1 -1
  942. package/dist/digi-arbetsformedlingen/{p-7db581bb.entry.js → p-39c6215e.entry.js} +1 -1
  943. package/dist/digi-arbetsformedlingen/{p-23063d72.entry.js → p-3a90a7fc.entry.js} +1 -1
  944. package/dist/digi-arbetsformedlingen/{p-0747ab93.entry.js → p-3aa2f442.entry.js} +1 -1
  945. package/dist/digi-arbetsformedlingen/{p-496ae8a3.entry.js → p-3d2a6129.entry.js} +1 -1
  946. package/dist/digi-arbetsformedlingen/{p-426f534f.entry.js → p-3db462ee.entry.js} +1 -1
  947. package/dist/digi-arbetsformedlingen/{p-fc04eda1.entry.js → p-3dee6ab1.entry.js} +1 -1
  948. package/dist/digi-arbetsformedlingen/{p-7ed8dc9d.entry.js → p-3deed624.entry.js} +1 -1
  949. package/dist/digi-arbetsformedlingen/{p-5ae30112.entry.js → p-3e190eab.entry.js} +1 -1
  950. package/dist/digi-arbetsformedlingen/{p-1cd20814.entry.js → p-3e87c270.entry.js} +1 -1
  951. package/dist/digi-arbetsformedlingen/{p-9b2a74f7.entry.js → p-3f76fe1f.entry.js} +1 -1
  952. package/dist/digi-arbetsformedlingen/p-4064cd87.entry.js +1 -0
  953. package/dist/digi-arbetsformedlingen/{p-9d8d64fa.entry.js → p-40dbd064.entry.js} +1 -1
  954. package/dist/digi-arbetsformedlingen/{p-fb14c7c9.entry.js → p-41b04bce.entry.js} +1 -1
  955. package/dist/digi-arbetsformedlingen/{p-8fd82e32.entry.js → p-4257e1be.entry.js} +1 -1
  956. package/dist/digi-arbetsformedlingen/{p-3db5c984.entry.js → p-43704d7d.entry.js} +1 -1
  957. package/dist/digi-arbetsformedlingen/{p-0fe47e7e.entry.js → p-46255d54.entry.js} +1 -1
  958. package/dist/digi-arbetsformedlingen/{p-486092da.entry.js → p-477b072a.entry.js} +1 -1
  959. package/dist/digi-arbetsformedlingen/{p-9306e6a9.entry.js → p-48c6416d.entry.js} +1 -1
  960. package/dist/digi-arbetsformedlingen/{p-613a935c.entry.js → p-49045f39.entry.js} +1 -1
  961. package/dist/digi-arbetsformedlingen/{p-059d72cb.entry.js → p-4bb9a961.entry.js} +1 -1
  962. package/dist/digi-arbetsformedlingen/{p-c5e5de11.entry.js → p-4c4b4882.entry.js} +1 -1
  963. package/dist/digi-arbetsformedlingen/{p-e5577e96.entry.js → p-4d99a725.entry.js} +1 -1
  964. package/dist/digi-arbetsformedlingen/{p-83a125bc.entry.js → p-4dd1d8db.entry.js} +1 -1
  965. package/dist/digi-arbetsformedlingen/{p-66b0d3c6.entry.js → p-4e06c96a.entry.js} +1 -1
  966. package/dist/digi-arbetsformedlingen/{p-661985e6.entry.js → p-5163adc8.entry.js} +1 -1
  967. package/dist/digi-arbetsformedlingen/{p-ded9f8e3.entry.js → p-540a773b.entry.js} +1 -1
  968. package/dist/digi-arbetsformedlingen/{p-affe6eac.entry.js → p-550643ce.entry.js} +1 -1
  969. package/dist/digi-arbetsformedlingen/{p-62fd94d8.entry.js → p-563e37c7.entry.js} +1 -1
  970. package/dist/digi-arbetsformedlingen/{p-df308616.entry.js → p-57419950.entry.js} +1 -1
  971. package/dist/digi-arbetsformedlingen/{p-cd39195b.entry.js → p-59379085.entry.js} +1 -1
  972. package/dist/digi-arbetsformedlingen/{p-435d4154.entry.js → p-59cae4c1.entry.js} +1 -1
  973. package/dist/digi-arbetsformedlingen/{p-81cac8dd.entry.js → p-5c05f352.entry.js} +1 -1
  974. package/dist/digi-arbetsformedlingen/p-5d21a361.js +1 -0
  975. package/dist/digi-arbetsformedlingen/p-5e58972f.entry.js +1 -0
  976. package/dist/digi-arbetsformedlingen/{p-21eb286a.entry.js → p-5f551436.entry.js} +1 -1
  977. package/dist/digi-arbetsformedlingen/{p-8cf8b047.entry.js → p-602e1911.entry.js} +1 -1
  978. package/dist/digi-arbetsformedlingen/{p-e79f0918.entry.js → p-62d1eab7.entry.js} +1 -1
  979. package/dist/digi-arbetsformedlingen/{p-fd5964d2.entry.js → p-6590140b.entry.js} +1 -1
  980. package/dist/digi-arbetsformedlingen/{p-cd9064d6.entry.js → p-66f8a2c2.entry.js} +1 -1
  981. package/dist/digi-arbetsformedlingen/{p-30e27b49.entry.js → p-6797dd05.entry.js} +1 -1
  982. package/dist/digi-arbetsformedlingen/{p-d630f2e9.entry.js → p-67b254fc.entry.js} +1 -1
  983. package/dist/digi-arbetsformedlingen/{p-125df937.entry.js → p-6b3938cc.entry.js} +1 -1
  984. package/dist/digi-arbetsformedlingen/{p-c11decb4.entry.js → p-6d54c272.entry.js} +1 -1
  985. package/dist/digi-arbetsformedlingen/{p-8d1c7f27.entry.js → p-6dd033f2.entry.js} +1 -1
  986. package/dist/digi-arbetsformedlingen/{p-e9192197.entry.js → p-6ee69762.entry.js} +1 -1
  987. package/dist/digi-arbetsformedlingen/{p-6bd27542.entry.js → p-6f31da13.entry.js} +1 -1
  988. package/dist/digi-arbetsformedlingen/{p-95278d49.entry.js → p-6fc88075.entry.js} +1 -1
  989. package/dist/digi-arbetsformedlingen/{p-619d0b7f.entry.js → p-71ccda1b.entry.js} +1 -1
  990. package/dist/digi-arbetsformedlingen/{p-bb4fcf71.entry.js → p-72be5544.entry.js} +1 -1
  991. package/dist/digi-arbetsformedlingen/{p-f36ba972.entry.js → p-736eb5c8.entry.js} +1 -1
  992. package/dist/digi-arbetsformedlingen/p-73e1a5ab.entry.js +1 -0
  993. package/dist/digi-arbetsformedlingen/{p-b13263b0.entry.js → p-75e182cc.entry.js} +1 -1
  994. package/dist/digi-arbetsformedlingen/{p-1d3f7336.entry.js → p-764b73ea.entry.js} +1 -1
  995. package/dist/digi-arbetsformedlingen/{p-5dfbcb6d.entry.js → p-7773251e.entry.js} +1 -1
  996. package/dist/digi-arbetsformedlingen/{p-121fd0f2.entry.js → p-77fe1fd0.entry.js} +1 -1
  997. package/dist/digi-arbetsformedlingen/{p-471a75e3.entry.js → p-785e46d4.entry.js} +1 -1
  998. package/dist/digi-arbetsformedlingen/{p-acde0ae5.entry.js → p-7a22f33c.entry.js} +1 -1
  999. package/dist/digi-arbetsformedlingen/{p-91a13287.entry.js → p-7a67e3fd.entry.js} +1 -1
  1000. package/dist/digi-arbetsformedlingen/{p-9f79a7d9.entry.js → p-7a7b26b3.entry.js} +1 -1
  1001. package/dist/digi-arbetsformedlingen/{p-c7b076ab.entry.js → p-7bb567b2.entry.js} +1 -1
  1002. package/dist/digi-arbetsformedlingen/{p-14278393.entry.js → p-7deb9e89.entry.js} +1 -1
  1003. package/dist/digi-arbetsformedlingen/{p-e7fe33f1.entry.js → p-7e5db6d4.entry.js} +1 -1
  1004. package/dist/digi-arbetsformedlingen/{p-08b98bde.entry.js → p-7eb06ffb.entry.js} +1 -1
  1005. package/dist/digi-arbetsformedlingen/{p-df64aa40.entry.js → p-7ef37b46.entry.js} +1 -1
  1006. package/dist/digi-arbetsformedlingen/{p-5740fc11.entry.js → p-7f92b5e7.entry.js} +1 -1
  1007. package/dist/digi-arbetsformedlingen/{p-4da5e3ed.entry.js → p-7fea860c.entry.js} +1 -1
  1008. package/dist/digi-arbetsformedlingen/{p-68c8def2.entry.js → p-80e11d4c.entry.js} +1 -1
  1009. package/dist/digi-arbetsformedlingen/{p-f43eb5fe.entry.js → p-8127b7db.entry.js} +1 -1
  1010. package/dist/digi-arbetsformedlingen/{p-419d99f0.entry.js → p-82d69cca.entry.js} +1 -1
  1011. package/dist/digi-arbetsformedlingen/{p-e452e96c.entry.js → p-83113513.entry.js} +1 -1
  1012. package/dist/digi-arbetsformedlingen/{p-3f9ec0ca.entry.js → p-833c1a34.entry.js} +1 -1
  1013. package/dist/digi-arbetsformedlingen/{p-a2c44417.entry.js → p-87423d5a.entry.js} +1 -1
  1014. package/dist/digi-arbetsformedlingen/p-88a5eebc.entry.js +1 -0
  1015. package/dist/digi-arbetsformedlingen/p-88f3a6fb.entry.js +1 -0
  1016. package/dist/digi-arbetsformedlingen/{p-e6209410.entry.js → p-88f412a8.entry.js} +1 -1
  1017. package/dist/digi-arbetsformedlingen/{p-a4bb69b3.entry.js → p-89215a7e.entry.js} +1 -1
  1018. package/dist/digi-arbetsformedlingen/{p-e07fed59.entry.js → p-8a66d2f5.entry.js} +1 -1
  1019. package/dist/digi-arbetsformedlingen/{p-77455f4d.entry.js → p-8adac287.entry.js} +1 -1
  1020. package/dist/digi-arbetsformedlingen/{p-68886e60.entry.js → p-8bb28549.entry.js} +1 -1
  1021. package/dist/digi-arbetsformedlingen/p-8bf670be.entry.js +1 -0
  1022. package/dist/digi-arbetsformedlingen/{p-1bbb57ad.entry.js → p-8c70b414.entry.js} +1 -1
  1023. package/dist/digi-arbetsformedlingen/{p-4d4cbfa5.entry.js → p-8e481ebd.entry.js} +1 -1
  1024. package/dist/digi-arbetsformedlingen/p-8e90865a.entry.js +1 -0
  1025. package/dist/digi-arbetsformedlingen/{p-e38b77b4.entry.js → p-8eb5223e.entry.js} +1 -1
  1026. package/dist/digi-arbetsformedlingen/{p-c7bcb369.entry.js → p-91c0670e.entry.js} +1 -1
  1027. package/dist/digi-arbetsformedlingen/p-92020915.js +1 -0
  1028. package/dist/digi-arbetsformedlingen/{p-71613ea0.entry.js → p-920a6084.entry.js} +1 -1
  1029. package/dist/digi-arbetsformedlingen/{p-d08467f0.entry.js → p-92bd3e86.entry.js} +1 -1
  1030. package/dist/digi-arbetsformedlingen/{p-5e9e93f5.entry.js → p-92f806c4.entry.js} +1 -1
  1031. package/dist/digi-arbetsformedlingen/{p-f73aeb82.entry.js → p-953ffe55.entry.js} +1 -1
  1032. package/dist/digi-arbetsformedlingen/p-95b5dda1.entry.js +1 -0
  1033. package/dist/digi-arbetsformedlingen/{p-7d37ed3a.entry.js → p-97a36575.entry.js} +1 -1
  1034. package/dist/digi-arbetsformedlingen/{p-73409acd.entry.js → p-9a55cb51.entry.js} +1 -1
  1035. package/dist/digi-arbetsformedlingen/{p-4e6f5896.entry.js → p-9ba89d2c.entry.js} +1 -1
  1036. package/dist/digi-arbetsformedlingen/{p-cb5c055e.entry.js → p-9bc1c020.entry.js} +1 -1
  1037. package/dist/digi-arbetsformedlingen/{p-1d9afaeb.entry.js → p-9be015cf.entry.js} +1 -1
  1038. package/dist/digi-arbetsformedlingen/{p-b190f91b.entry.js → p-9cbdc766.entry.js} +1 -1
  1039. package/dist/digi-arbetsformedlingen/{p-55c6db25.entry.js → p-9eef2ffc.entry.js} +1 -1
  1040. package/dist/digi-arbetsformedlingen/{p-e71fd797.entry.js → p-9f93007d.entry.js} +1 -1
  1041. package/dist/digi-arbetsformedlingen/{p-bce8a67c.entry.js → p-a01a3da6.entry.js} +1 -1
  1042. package/dist/digi-arbetsformedlingen/p-a105d9fe.js +1 -0
  1043. package/dist/digi-arbetsformedlingen/{p-af8d27e5.entry.js → p-a167d390.entry.js} +1 -1
  1044. package/dist/digi-arbetsformedlingen/p-a206dfa3.entry.js +1 -0
  1045. package/dist/digi-arbetsformedlingen/{p-750a8d51.entry.js → p-a21a91e4.entry.js} +1 -1
  1046. package/dist/digi-arbetsformedlingen/{p-54a4cfa5.entry.js → p-a227b733.entry.js} +1 -1
  1047. package/dist/digi-arbetsformedlingen/{p-830d8507.entry.js → p-a248f9e0.entry.js} +1 -1
  1048. package/dist/digi-arbetsformedlingen/p-a2859df3.entry.js +1 -0
  1049. package/dist/digi-arbetsformedlingen/{p-74f9985c.entry.js → p-a8469f02.entry.js} +1 -1
  1050. package/dist/digi-arbetsformedlingen/{p-3e743935.entry.js → p-a9332308.entry.js} +1 -1
  1051. package/dist/digi-arbetsformedlingen/{p-31105794.entry.js → p-a93f2b6b.entry.js} +1 -1
  1052. package/dist/digi-arbetsformedlingen/{p-30e31afc.entry.js → p-a96c44b4.entry.js} +1 -1
  1053. package/dist/digi-arbetsformedlingen/{p-2f79bfcc.entry.js → p-aa0a4940.entry.js} +1 -1
  1054. package/dist/digi-arbetsformedlingen/{p-fa00fe1d.entry.js → p-addcff39.entry.js} +1 -1
  1055. package/dist/digi-arbetsformedlingen/{p-c5b23a53.entry.js → p-afc62148.entry.js} +1 -1
  1056. package/dist/digi-arbetsformedlingen/{p-8e7a926a.entry.js → p-b056ce71.entry.js} +1 -1
  1057. package/dist/digi-arbetsformedlingen/{p-35cf4444.entry.js → p-b0bcac7a.entry.js} +1 -1
  1058. package/dist/digi-arbetsformedlingen/{p-04ca1ba6.entry.js → p-b14092da.entry.js} +1 -1
  1059. package/dist/digi-arbetsformedlingen/{p-7c6a495f.entry.js → p-b20ca0d2.entry.js} +1 -1
  1060. package/dist/digi-arbetsformedlingen/{p-4a2237fa.entry.js → p-b34f09c7.entry.js} +1 -1
  1061. package/dist/digi-arbetsformedlingen/{p-16546321.entry.js → p-b4c0fa1a.entry.js} +1 -1
  1062. package/dist/digi-arbetsformedlingen/{p-9cae94f4.entry.js → p-b5773ac6.entry.js} +1 -1
  1063. package/dist/digi-arbetsformedlingen/{p-27d9e868.entry.js → p-b5e59413.entry.js} +1 -1
  1064. package/dist/digi-arbetsformedlingen/{p-fa7824e9.entry.js → p-b61d361d.entry.js} +1 -1
  1065. package/dist/digi-arbetsformedlingen/p-b68ddb2a.entry.js +1 -0
  1066. package/dist/digi-arbetsformedlingen/{p-c465b247.entry.js → p-b737100d.entry.js} +1 -1
  1067. package/dist/digi-arbetsformedlingen/{p-02eb3f33.entry.js → p-b78dae7a.entry.js} +1 -1
  1068. package/dist/digi-arbetsformedlingen/p-b8dac9c5.entry.js +1 -0
  1069. package/dist/digi-arbetsformedlingen/{p-966ea804.entry.js → p-ba5d7f76.entry.js} +1 -1
  1070. package/dist/digi-arbetsformedlingen/{p-e0bccd2c.entry.js → p-bde668a9.entry.js} +1 -1
  1071. package/dist/digi-arbetsformedlingen/p-be06f90f.entry.js +1 -0
  1072. package/dist/digi-arbetsformedlingen/{p-36d3ee99.entry.js → p-be098fa5.entry.js} +1 -1
  1073. package/dist/digi-arbetsformedlingen/{p-c358a422.entry.js → p-be6e3f1d.entry.js} +1 -1
  1074. package/dist/digi-arbetsformedlingen/{p-d6c9651a.entry.js → p-bf126f0a.entry.js} +1 -1
  1075. package/dist/digi-arbetsformedlingen/{p-bad82d8a.entry.js → p-bf60efc6.entry.js} +1 -1
  1076. package/dist/digi-arbetsformedlingen/{p-e8253b4a.entry.js → p-bf6b8be5.entry.js} +1 -1
  1077. package/dist/digi-arbetsformedlingen/{p-57665401.entry.js → p-bf7f5faa.entry.js} +1 -1
  1078. package/dist/digi-arbetsformedlingen/{p-23e2e1a5.entry.js → p-c08fec62.entry.js} +1 -1
  1079. package/dist/digi-arbetsformedlingen/{p-f2339f8e.entry.js → p-c256bd52.entry.js} +1 -1
  1080. package/dist/digi-arbetsformedlingen/{p-caa4c56b.entry.js → p-c59bcd72.entry.js} +1 -1
  1081. package/dist/digi-arbetsformedlingen/{p-e31d2831.entry.js → p-c5afc827.entry.js} +1 -1
  1082. package/dist/digi-arbetsformedlingen/{p-ed2e5841.entry.js → p-c68ca2da.entry.js} +1 -1
  1083. package/dist/digi-arbetsformedlingen/{p-48664690.entry.js → p-c803825a.entry.js} +1 -1
  1084. package/dist/digi-arbetsformedlingen/{p-bc5eee65.entry.js → p-cacdf700.entry.js} +1 -1
  1085. package/dist/digi-arbetsformedlingen/{p-879cdd10.entry.js → p-cbd4461c.entry.js} +1 -1
  1086. package/dist/digi-arbetsformedlingen/{p-4dc35d6b.entry.js → p-cd6f2668.entry.js} +1 -1
  1087. package/dist/digi-arbetsformedlingen/{p-3fde4aec.entry.js → p-cdab9a0e.entry.js} +1 -1
  1088. package/dist/digi-arbetsformedlingen/{p-a76fb329.entry.js → p-ce59bde6.entry.js} +1 -1
  1089. package/dist/digi-arbetsformedlingen/{p-bc3d9008.entry.js → p-cf1aa952.entry.js} +1 -1
  1090. package/dist/digi-arbetsformedlingen/{p-5c710bcb.entry.js → p-cf994156.entry.js} +1 -1
  1091. package/dist/digi-arbetsformedlingen/p-d28f8b37.entry.js +1 -0
  1092. package/dist/digi-arbetsformedlingen/{p-0bb39a68.entry.js → p-d34cda5c.entry.js} +1 -1
  1093. package/dist/digi-arbetsformedlingen/{p-36eaa414.entry.js → p-d3d619a3.entry.js} +1 -1
  1094. package/dist/digi-arbetsformedlingen/p-d4a341f4.js +1 -0
  1095. package/dist/digi-arbetsformedlingen/{p-64a20b9c.entry.js → p-d4ac6a10.entry.js} +1 -1
  1096. package/dist/digi-arbetsformedlingen/{p-8ccb96f6.entry.js → p-d5d64b5d.entry.js} +1 -1
  1097. package/dist/digi-arbetsformedlingen/p-d6906bae.entry.js +1 -0
  1098. package/dist/digi-arbetsformedlingen/{p-a90a939b.entry.js → p-d715b5ed.entry.js} +1 -1
  1099. package/dist/digi-arbetsformedlingen/{p-e076ca78.entry.js → p-d7d89adf.entry.js} +1 -1
  1100. package/dist/digi-arbetsformedlingen/{p-2eb2de93.entry.js → p-d807cb30.entry.js} +1 -1
  1101. package/dist/digi-arbetsformedlingen/{p-349f73d9.entry.js → p-d922c956.entry.js} +1 -1
  1102. package/dist/digi-arbetsformedlingen/{p-06906d4f.entry.js → p-d98ec971.entry.js} +1 -1
  1103. package/dist/digi-arbetsformedlingen/{p-612805a2.entry.js → p-da335886.entry.js} +1 -1
  1104. package/dist/digi-arbetsformedlingen/p-dce7e8b5.entry.js +1 -0
  1105. package/dist/digi-arbetsformedlingen/{p-c8110048.entry.js → p-dea66113.entry.js} +1 -1
  1106. package/dist/digi-arbetsformedlingen/{p-39d35e8a.entry.js → p-dfb97030.entry.js} +1 -1
  1107. package/dist/digi-arbetsformedlingen/{p-d4eb5182.entry.js → p-dfd68b21.entry.js} +1 -1
  1108. package/dist/digi-arbetsformedlingen/p-dfdcdbde.entry.js +1 -0
  1109. package/dist/digi-arbetsformedlingen/{p-16f04ebd.entry.js → p-dfeaa860.entry.js} +1 -1
  1110. package/dist/digi-arbetsformedlingen/{p-468a8ea8.entry.js → p-e03fe7fa.entry.js} +1 -1
  1111. package/dist/digi-arbetsformedlingen/{p-13996170.entry.js → p-e23519db.entry.js} +1 -1
  1112. package/dist/digi-arbetsformedlingen/{p-058d1027.entry.js → p-e2bd585e.entry.js} +1 -1
  1113. package/dist/digi-arbetsformedlingen/{p-60cf8634.entry.js → p-e3a9e24c.entry.js} +1 -1
  1114. package/dist/digi-arbetsformedlingen/p-e540b299.entry.js +1 -0
  1115. package/dist/digi-arbetsformedlingen/{p-a0362a23.entry.js → p-e5426458.entry.js} +1 -1
  1116. package/dist/digi-arbetsformedlingen/{p-06be1b4a.entry.js → p-e641fdee.entry.js} +1 -1
  1117. package/dist/digi-arbetsformedlingen/{p-b2fb9242.entry.js → p-e73e15b5.entry.js} +1 -1
  1118. package/dist/digi-arbetsformedlingen/{p-53959d1f.entry.js → p-e753b82b.entry.js} +1 -1
  1119. package/dist/digi-arbetsformedlingen/{p-42f0d174.entry.js → p-e7702b99.entry.js} +1 -1
  1120. package/dist/digi-arbetsformedlingen/{p-71bcb9a0.entry.js → p-e8804aab.entry.js} +1 -1
  1121. package/dist/digi-arbetsformedlingen/{p-2bb1d28f.entry.js → p-e91f230f.entry.js} +1 -1
  1122. package/dist/digi-arbetsformedlingen/{p-6aaa3467.entry.js → p-e928b31b.entry.js} +1 -1
  1123. package/dist/digi-arbetsformedlingen/{p-1f7bc313.entry.js → p-eb45bd78.entry.js} +1 -1
  1124. package/dist/digi-arbetsformedlingen/{p-49c1cb4f.entry.js → p-ece715b2.entry.js} +1 -1
  1125. package/dist/digi-arbetsformedlingen/{p-b34f34a9.entry.js → p-ef244330.entry.js} +1 -1
  1126. package/dist/digi-arbetsformedlingen/p-ef54d1eb.entry.js +1 -0
  1127. package/dist/digi-arbetsformedlingen/{p-2fac371d.entry.js → p-f1ed1dff.entry.js} +1 -1
  1128. package/dist/digi-arbetsformedlingen/{p-20a65f1c.entry.js → p-f4172911.entry.js} +1 -1
  1129. package/dist/digi-arbetsformedlingen/{p-7830e192.entry.js → p-f584243f.entry.js} +1 -1
  1130. package/dist/digi-arbetsformedlingen/{p-38064358.entry.js → p-f64c581c.entry.js} +1 -1
  1131. package/dist/digi-arbetsformedlingen/p-f7766267.entry.js +1 -0
  1132. package/dist/digi-arbetsformedlingen/{p-0e898bf5.entry.js → p-f7b5f053.entry.js} +1 -1
  1133. package/dist/digi-arbetsformedlingen/{p-c16e6afe.entry.js → p-f83cfb31.entry.js} +1 -1
  1134. package/dist/digi-arbetsformedlingen/{p-f92f2ef6.entry.js → p-f925fc0c.entry.js} +1 -1
  1135. package/dist/digi-arbetsformedlingen/{p-280f26e1.entry.js → p-f978cede.entry.js} +1 -1
  1136. package/dist/digi-arbetsformedlingen/p-fa97c49c.entry.js +1 -0
  1137. package/dist/digi-arbetsformedlingen/p-fc27de01.entry.js +1 -0
  1138. package/dist/digi-arbetsformedlingen/p-fcfdca1e.entry.js +1 -0
  1139. package/dist/digi-arbetsformedlingen/{p-b6057ecf.entry.js → p-fe754f19.entry.js} +1 -1
  1140. package/dist/digi-arbetsformedlingen/{p-99a03187.entry.js → p-feac7704.entry.js} +1 -1
  1141. package/dist/esm/code-variation.enum-1eee7c7a.js +19 -0
  1142. package/dist/esm/digi-arbetsformedlingen.js +1 -1
  1143. package/dist/esm/digi-bar-chart.entry.js +2 -2
  1144. package/dist/esm/digi-calendar-week-view.entry.js +6 -7
  1145. package/dist/esm/digi-calendar_16.entry.js +3691 -0
  1146. package/dist/esm/digi-card.entry.js +1 -1
  1147. package/dist/esm/digi-chart-line.entry.js +81 -72
  1148. package/dist/esm/digi-code-block_3.entry.js +9 -12
  1149. package/dist/esm/digi-code-example.entry.js +5 -5
  1150. package/dist/esm/digi-code.entry.js +41 -0
  1151. package/dist/esm/digi-context-menu.entry.js +2 -2
  1152. package/dist/esm/digi-dialog.entry.js +7 -10
  1153. package/dist/esm/digi-expandable-accordion.entry.js +6 -9
  1154. package/dist/esm/digi-expandable-faq-item.entry.js +4 -4
  1155. package/dist/esm/digi-expandable-faq.entry.js +2 -2
  1156. package/dist/esm/digi-footer-card.entry.js +1 -1
  1157. package/dist/esm/digi-footer.entry.js +5 -8
  1158. package/dist/esm/digi-form-category-filter.entry.js +2 -2
  1159. package/dist/esm/digi-form-checkbox.entry.js +2 -2
  1160. package/dist/esm/digi-form-error-list.entry.js +7 -10
  1161. package/dist/esm/digi-form-file-upload.entry.js +9 -10
  1162. package/dist/esm/digi-form-filter.entry.js +6 -6
  1163. package/dist/esm/digi-form-input-search.entry.js +3 -4
  1164. package/dist/esm/digi-form-radiogroup.entry.js +1 -1
  1165. package/dist/esm/digi-form-receipt.entry.js +5 -8
  1166. package/dist/esm/digi-form-select-filter.entry.js +12 -15
  1167. package/dist/esm/digi-form-textarea.entry.js +3 -3
  1168. package/dist/esm/digi-header-avatar.entry.js +1 -1
  1169. package/dist/esm/digi-header-navigation-item.entry.js +1 -1
  1170. package/dist/esm/digi-header-navigation.entry.js +7 -10
  1171. package/dist/esm/digi-header-notification.entry.js +2 -2
  1172. package/dist/esm/digi-header.entry.js +6 -9
  1173. package/dist/esm/digi-icon-accessibility-deaf.entry.js +2 -2
  1174. package/dist/esm/digi-icon-accessibility-universal.entry.js +2 -2
  1175. package/dist/esm/digi-icon-apple.entry.js +2 -2
  1176. package/dist/esm/digi-icon-archive-outline.entry.js +2 -2
  1177. package/dist/esm/digi-icon-archive.entry.js +2 -2
  1178. package/dist/esm/digi-icon-arrow-back.entry.js +2 -2
  1179. package/dist/esm/digi-icon-arrow-down.entry.js +2 -2
  1180. package/dist/esm/digi-icon-arrow-left.entry.js +2 -2
  1181. package/dist/esm/digi-icon-arrow-right.entry.js +2 -2
  1182. package/dist/esm/digi-icon-arrow-sign-in.entry.js +2 -2
  1183. package/dist/esm/digi-icon-arrow-sign-out.entry.js +2 -2
  1184. package/dist/esm/digi-icon-arrow-up.entry.js +2 -2
  1185. package/dist/esm/digi-icon-at.entry.js +2 -2
  1186. package/dist/esm/digi-icon-bars.entry.js +2 -2
  1187. package/dist/esm/digi-icon-bell-filled.entry.js +2 -2
  1188. package/dist/esm/digi-icon-bell.entry.js +2 -2
  1189. package/dist/esm/digi-icon-book.entry.js +2 -2
  1190. package/dist/esm/digi-icon-bookmark-outline.entry.js +2 -2
  1191. package/dist/esm/digi-icon-bookmark-solid.entry.js +2 -2
  1192. package/dist/esm/digi-icon-bubble-ellipsis.entry.js +2 -2
  1193. package/dist/esm/digi-icon-bubble.entry.js +2 -2
  1194. package/dist/esm/digi-icon-building-outline.entry.js +2 -2
  1195. package/dist/esm/digi-icon-building-solid.entry.js +2 -2
  1196. package/dist/esm/digi-icon-bullseye.entry.js +2 -2
  1197. package/dist/esm/digi-icon-calculator-solid.entry.js +2 -2
  1198. package/dist/esm/digi-icon-calendar-alt-alert.entry.js +2 -2
  1199. package/dist/esm/digi-icon-calendar.entry.js +2 -2
  1200. package/dist/esm/digi-icon-caret-circle-right.entry.js +2 -2
  1201. package/dist/esm/digi-icon-caret-down_2.entry.js +4 -4
  1202. package/dist/esm/digi-icon-caret-left.entry.js +2 -2
  1203. package/dist/esm/digi-icon-caret-right.entry.js +2 -2
  1204. package/dist/esm/digi-icon-chart_2.entry.js +4 -4
  1205. package/dist/esm/digi-icon-chat.entry.js +2 -2
  1206. package/dist/esm/digi-icon-check-circle-reg-alt.entry.js +2 -2
  1207. package/dist/esm/digi-icon-check-circle-solid.entry.js +2 -2
  1208. package/dist/esm/digi-icon-check.entry.js +2 -2
  1209. package/dist/esm/digi-icon-checklist.entry.js +2 -2
  1210. package/dist/esm/digi-icon-chevron-down.entry.js +2 -2
  1211. package/dist/esm/digi-icon-chevron-up.entry.js +2 -2
  1212. package/dist/esm/digi-icon-clock.entry.js +2 -2
  1213. package/dist/esm/digi-icon-communication-play-solid.entry.js +2 -2
  1214. package/dist/esm/digi-icon-compress-alt.entry.js +2 -2
  1215. package/dist/esm/digi-icon-comunication-case.entry.js +2 -2
  1216. package/dist/esm/digi-icon-comunication-flag.entry.js +2 -2
  1217. package/dist/esm/digi-icon-comunication-graduate.entry.js +2 -2
  1218. package/dist/esm/digi-icon-comunication-play.entry.js +2 -2
  1219. package/dist/esm/digi-icon-cooperation.entry.js +2 -2
  1220. package/dist/esm/digi-icon-copy.entry.js +2 -2
  1221. package/dist/esm/digi-icon-danger-outline.entry.js +2 -2
  1222. package/dist/esm/digi-icon-download.entry.js +2 -2
  1223. package/dist/esm/digi-icon-dxa.entry.js +2 -2
  1224. package/dist/esm/digi-icon-edit.entry.js +2 -2
  1225. package/dist/esm/digi-icon-ellipsis.entry.js +2 -2
  1226. package/dist/esm/digi-icon-envelope-filled.entry.js +2 -2
  1227. package/dist/esm/digi-icon-envelope.entry.js +2 -2
  1228. package/dist/esm/digi-icon-exclamation-circle-filled.entry.js +2 -2
  1229. package/dist/esm/digi-icon-exclamation-triangle-filled.entry.js +2 -2
  1230. package/dist/esm/digi-icon-exclamation-triangle-warning.entry.js +2 -2
  1231. package/dist/esm/digi-icon-exclamation-triangle.entry.js +2 -2
  1232. package/dist/esm/digi-icon-expand-alt.entry.js +2 -2
  1233. package/dist/esm/digi-icon-external-link-alt_2.entry.js +3 -3
  1234. package/dist/esm/digi-icon-eye-slash.entry.js +2 -2
  1235. package/dist/esm/digi-icon-eye.entry.js +2 -2
  1236. package/dist/esm/digi-icon-facebook-square.entry.js +2 -2
  1237. package/dist/esm/digi-icon-file-add.entry.js +1 -1
  1238. package/dist/esm/digi-icon-file-document.entry.js +2 -2
  1239. package/dist/esm/digi-icon-file-excel.entry.js +2 -2
  1240. package/dist/esm/digi-icon-file-export.entry.js +1 -1
  1241. package/dist/esm/digi-icon-file-governing.entry.js +2 -2
  1242. package/dist/esm/digi-icon-file-pdf.entry.js +2 -2
  1243. package/dist/esm/digi-icon-file-powerpoint.entry.js +2 -2
  1244. package/dist/esm/digi-icon-file-remove.entry.js +1 -1
  1245. package/dist/esm/digi-icon-file-word.entry.js +2 -2
  1246. package/dist/esm/digi-icon-film.entry.js +2 -2
  1247. package/dist/esm/digi-icon-filter.entry.js +2 -2
  1248. package/dist/esm/digi-icon-folder-add.entry.js +1 -1
  1249. package/dist/esm/digi-icon-folder-directory.entry.js +1 -1
  1250. package/dist/esm/digi-icon-folder-open.entry.js +1 -1
  1251. package/dist/esm/digi-icon-folder.entry.js +1 -1
  1252. package/dist/esm/digi-icon-globe-filled.entry.js +2 -2
  1253. package/dist/esm/digi-icon-globe.entry.js +2 -2
  1254. package/dist/esm/digi-icon-headphones.entry.js +2 -2
  1255. package/dist/esm/digi-icon-heart-solid.entry.js +2 -2
  1256. package/dist/esm/digi-icon-heart.entry.js +2 -2
  1257. package/dist/esm/digi-icon-history.entry.js +2 -2
  1258. package/dist/esm/digi-icon-home.entry.js +2 -2
  1259. package/dist/esm/digi-icon-image.entry.js +2 -2
  1260. package/dist/esm/digi-icon-info-circle-solid.entry.js +2 -2
  1261. package/dist/esm/digi-icon-instagram.entry.js +2 -2
  1262. package/dist/esm/digi-icon-job-suggestion.entry.js +2 -2
  1263. package/dist/esm/digi-icon-language-outline_4.entry.js +11 -11
  1264. package/dist/esm/digi-icon-language.entry.js +2 -2
  1265. package/dist/esm/digi-icon-laptop-phone.entry.js +2 -2
  1266. package/dist/esm/digi-icon-lattlast.entry.js +2 -2
  1267. package/dist/esm/digi-icon-licence-bus.entry.js +2 -2
  1268. package/dist/esm/digi-icon-licence-car.entry.js +2 -2
  1269. package/dist/esm/digi-icon-licence-motorcycle.entry.js +2 -2
  1270. package/dist/esm/digi-icon-licence-truck.entry.js +2 -2
  1271. package/dist/esm/digi-icon-lightbulb.entry.js +2 -2
  1272. package/dist/esm/digi-icon-linkedin-in.entry.js +2 -2
  1273. package/dist/esm/digi-icon-list-ul_6.entry.js +12 -12
  1274. package/dist/esm/digi-icon-lock.entry.js +2 -2
  1275. package/dist/esm/digi-icon-marker-filled.entry.js +2 -2
  1276. package/dist/esm/digi-icon-marker.entry.js +2 -2
  1277. package/dist/esm/digi-icon-media-course.entry.js +2 -2
  1278. package/dist/esm/digi-icon-media-podcast.entry.js +2 -2
  1279. package/dist/esm/digi-icon-microphone-off.entry.js +2 -2
  1280. package/dist/esm/digi-icon-microphone.entry.js +2 -2
  1281. package/dist/esm/digi-icon-minus_2.entry.js +4 -4
  1282. package/dist/esm/digi-icon-move.entry.js +2 -2
  1283. package/dist/esm/digi-icon-notification-error_5.entry.js +9 -9
  1284. package/dist/esm/digi-icon-online-interview.entry.js +2 -2
  1285. package/dist/esm/digi-icon-online-meeting.entry.js +2 -2
  1286. package/dist/esm/digi-icon-online-task.entry.js +2 -2
  1287. package/dist/esm/digi-icon-open-source.entry.js +2 -2
  1288. package/dist/esm/digi-icon-palette.entry.js +2 -2
  1289. package/dist/esm/digi-icon-paperclip_3.entry.js +6 -6
  1290. package/dist/esm/digi-icon-paste.entry.js +1 -1
  1291. package/dist/esm/digi-icon-pen.entry.js +2 -2
  1292. package/dist/esm/digi-icon-phone-hangup.entry.js +2 -2
  1293. package/dist/esm/digi-icon-phone.entry.js +2 -2
  1294. package/dist/esm/digi-icon-print.entry.js +2 -2
  1295. package/dist/esm/digi-icon-read.entry.js +2 -2
  1296. package/dist/esm/digi-icon-redo.entry.js +2 -2
  1297. package/dist/esm/digi-icon-scale.entry.js +1 -1
  1298. package/dist/esm/digi-icon-screensharing-off.entry.js +2 -2
  1299. package/dist/esm/digi-icon-screensharing.entry.js +2 -2
  1300. package/dist/esm/digi-icon-search.entry.js +2 -2
  1301. package/dist/esm/digi-icon-send-outline.entry.js +2 -2
  1302. package/dist/esm/digi-icon-send-solid.entry.js +2 -2
  1303. package/dist/esm/digi-icon-settings.entry.js +2 -2
  1304. package/dist/esm/digi-icon-share-alt.entry.js +2 -2
  1305. package/dist/esm/digi-icon-share-chain.entry.js +2 -2
  1306. package/dist/esm/digi-icon-sliders-h.entry.js +2 -2
  1307. package/dist/esm/digi-icon-sokkandidat.entry.js +2 -2
  1308. package/dist/esm/digi-icon-sort-down.entry.js +2 -2
  1309. package/dist/esm/digi-icon-sort-up.entry.js +2 -2
  1310. package/dist/esm/digi-icon-sort.entry.js +2 -2
  1311. package/dist/esm/digi-icon-spinner.entry.js +2 -2
  1312. package/dist/esm/digi-icon-star-reg.entry.js +2 -2
  1313. package/dist/esm/digi-icon-star.entry.js +2 -2
  1314. package/dist/esm/digi-icon-suitcase-outline.entry.js +2 -2
  1315. package/dist/esm/digi-icon-suitcase-solid.entry.js +2 -2
  1316. package/dist/esm/digi-icon-system-assistance.entry.js +2 -2
  1317. package/dist/esm/digi-icon-table-column.entry.js +2 -2
  1318. package/dist/esm/digi-icon-table-row.entry.js +2 -2
  1319. package/dist/esm/digi-icon-task-done.entry.js +2 -2
  1320. package/dist/esm/digi-icon-toggle-off.entry.js +2 -2
  1321. package/dist/esm/digi-icon-toggle-on.entry.js +2 -2
  1322. package/dist/esm/digi-icon-twitter.entry.js +2 -2
  1323. package/dist/esm/digi-icon-tyck-till.entry.js +2 -2
  1324. package/dist/esm/digi-icon-unlock.entry.js +2 -2
  1325. package/dist/esm/digi-icon-update.entry.js +2 -2
  1326. package/dist/esm/digi-icon-upload.entry.js +2 -2
  1327. package/dist/esm/digi-icon-user-add.entry.js +1 -1
  1328. package/dist/esm/digi-icon-user-alt.entry.js +2 -2
  1329. package/dist/esm/digi-icon-user-edit.entry.js +1 -1
  1330. package/dist/esm/digi-icon-users-solid.entry.js +2 -2
  1331. package/dist/esm/digi-icon-videocamera-off.entry.js +2 -2
  1332. package/dist/esm/digi-icon-videocamera.entry.js +2 -2
  1333. package/dist/esm/digi-icon-web-tv.entry.js +2 -2
  1334. package/dist/esm/digi-icon-wifi-signal0.entry.js +2 -2
  1335. package/dist/esm/digi-icon-wifi-signal1.entry.js +2 -2
  1336. package/dist/esm/digi-icon-wifi-signal2.entry.js +2 -2
  1337. package/dist/esm/digi-icon-wifi-signal3.entry.js +2 -2
  1338. package/dist/esm/digi-icon-window.entry.js +2 -2
  1339. package/dist/esm/digi-icon-x-button.entry.js +2 -2
  1340. package/dist/esm/digi-icon-x.entry.js +2 -2
  1341. package/dist/esm/digi-icon-youtube.entry.js +2 -2
  1342. package/dist/esm/digi-info-card-multi-container.entry.js +1 -1
  1343. package/dist/esm/digi-info-card-multi.entry.js +1 -1
  1344. package/dist/esm/digi-info-card.entry.js +1 -1
  1345. package/dist/esm/digi-layout-block_2.entry.js +2 -2
  1346. package/dist/esm/digi-layout-columns.entry.js +1 -1
  1347. package/dist/esm/digi-link-button.entry.js +1 -1
  1348. package/dist/esm/digi-link-internal.entry.js +1 -1
  1349. package/dist/esm/digi-link.entry.js +1 -1
  1350. package/dist/esm/digi-list.entry.js +1 -1
  1351. package/dist/esm/digi-loader-skeleton.entry.js +3 -3
  1352. package/dist/esm/digi-loader-spinner.entry.js +1 -1
  1353. package/dist/esm/digi-logo_2.entry.js +3 -3
  1354. package/dist/esm/digi-media-figure.entry.js +1 -1
  1355. package/dist/esm/digi-media-image_2.entry.js +3 -3
  1356. package/dist/esm/digi-navigation-breadcrumbs.entry.js +3 -3
  1357. package/dist/esm/digi-navigation-pagination.entry.js +10 -13
  1358. package/dist/esm/digi-navigation-sidebar.entry.js +2 -2
  1359. package/dist/esm/digi-navigation-vertical-menu-item.entry.js +6 -6
  1360. package/dist/esm/digi-navigation-vertical-menu.entry.js +1 -1
  1361. package/dist/esm/digi-notification-alert.entry.js +6 -9
  1362. package/dist/esm/digi-notification-error-page.entry.js +7 -10
  1363. package/dist/esm/digi-progress-circle.entry.js +9 -9
  1364. package/dist/esm/digi-progress-indicator.entry.js +4 -4
  1365. package/dist/esm/digi-progress-list-item.entry.js +6 -6
  1366. package/dist/esm/digi-progress-list.entry.js +1 -1
  1367. package/dist/esm/digi-progressbar.entry.js +3 -3
  1368. package/dist/esm/digi-quote.entry.js +1 -1
  1369. package/dist/esm/digi-table.entry.js +1 -1
  1370. package/dist/esm/digi-tablist-panel.entry.js +2 -2
  1371. package/dist/esm/digi-tablist.entry.js +5 -5
  1372. package/dist/esm/digi-tag-media.entry.js +2 -2
  1373. package/dist/esm/digi-tag.entry.js +2 -2
  1374. package/dist/esm/digi-tools-feedback-banner.entry.js +1 -1
  1375. package/dist/esm/digi-tools-feedback-rating.entry.js +1 -1
  1376. package/dist/esm/digi-tools-feedback.entry.js +5 -8
  1377. package/dist/esm/digi-tools-languagepicker.entry.js +3 -3
  1378. package/dist/esm/digi-typography-heading-jumbo.entry.js +1 -1
  1379. package/dist/esm/digi-typography-meta.entry.js +1 -1
  1380. package/dist/esm/digi-typography-preamble.entry.js +1 -1
  1381. package/dist/esm/digi-typography-time.entry.js +2 -2
  1382. package/dist/esm/digi-util-breakpoint-observer.entry.js +1 -1
  1383. package/dist/esm/digi-util-detect-click-outside.entry.js +1 -1
  1384. package/dist/esm/digi-util-detect-focus-outside.entry.js +1 -1
  1385. package/dist/esm/digi-util-keyup-handler.entry.js +1 -1
  1386. package/dist/esm/digi-util-resize-observer.entry.js +1 -1
  1387. package/dist/esm/{form-input-type.enum-3da3db27.js → form-input-type.enum-62a97d5d.js} +8 -1
  1388. package/dist/esm/{form-file-upload-variation.enum-9c49ec5e.js → form-validation-message-variation.enum-f7835fc5.js} +8 -1
  1389. package/dist/esm/index-8e318bb2.js +6 -30
  1390. package/dist/esm/{index-2fce392f.js → index-dc6b83f7.js} +170 -3
  1391. package/dist/esm/index.js +4 -7
  1392. package/dist/esm/loader.js +1 -1
  1393. package/dist/esm/{text-ee5498fa.js → text-26e02c8d.js} +13 -0
  1394. package/dist/esm/{tools-feedback-variation.enum-4bfb560b.js → typography-variation.enum-eff5d5d8.js} +50 -1
  1395. package/dist/types/components/_calendar/calendar/calendar.d.ts +1 -1
  1396. package/dist/types/components/_calendar/calendar-datepicker/calendar-datepicker.d.ts +11 -0
  1397. package/dist/types/components/_chart/chart-line/chart-line.d.ts +3 -1
  1398. package/dist/types/components.d.ts +20 -0
  1399. package/dist/types/text/locale/sv/text.d.ts +13 -0
  1400. package/hydrate/index.js +693 -653
  1401. package/hydrate/index.mjs +693 -653
  1402. package/package.json +1 -1
  1403. package/dist/cjs/digi-calendar-datepicker.cjs.entry.js +0 -2473
  1404. package/dist/cjs/digi-calendar_2.cjs.entry.js +0 -474
  1405. package/dist/cjs/digi-code_8.cjs.entry.js +0 -406
  1406. package/dist/cjs/digi-form-select_2.cjs.entry.js +0 -176
  1407. package/dist/cjs/digi-icon-chevron-left.cjs.entry.js +0 -30
  1408. package/dist/cjs/digi-icon-chevron-right.cjs.entry.js +0 -30
  1409. package/dist/cjs/digi-util-keydown-handler.cjs.entry.js +0 -83
  1410. package/dist/cjs/digi-util-mutation-observer.cjs.entry.js +0 -64
  1411. package/dist/cjs/form-input-search-variation.enum-c50239bc.js +0 -8
  1412. package/dist/cjs/form-select-variation.enum-528c1bf0.js +0 -16
  1413. package/dist/cjs/form-validation-message-variation.enum-855ae0be.js +0 -8
  1414. package/dist/cjs/index-cad91a90.js +0 -66
  1415. package/dist/cjs/index-e8333bcc.js +0 -174
  1416. package/dist/cjs/typography-variation.enum-f1d49c3a.js +0 -53
  1417. package/dist/digi-arbetsformedlingen/p-005c72ca.entry.js +0 -1
  1418. package/dist/digi-arbetsformedlingen/p-07b64c62.entry.js +0 -1
  1419. package/dist/digi-arbetsformedlingen/p-1d065367.js +0 -1
  1420. package/dist/digi-arbetsformedlingen/p-1d825386.entry.js +0 -1
  1421. package/dist/digi-arbetsformedlingen/p-1f3345e9.js +0 -1
  1422. package/dist/digi-arbetsformedlingen/p-3394614c.js +0 -1
  1423. package/dist/digi-arbetsformedlingen/p-3af566fd.entry.js +0 -1
  1424. package/dist/digi-arbetsformedlingen/p-3ee7d913.entry.js +0 -1
  1425. package/dist/digi-arbetsformedlingen/p-42aa440f.js +0 -1
  1426. package/dist/digi-arbetsformedlingen/p-4c6b9991.entry.js +0 -1
  1427. package/dist/digi-arbetsformedlingen/p-4ce9b4ce.entry.js +0 -1
  1428. package/dist/digi-arbetsformedlingen/p-4ef42d4d.entry.js +0 -1
  1429. package/dist/digi-arbetsformedlingen/p-4fa41b6b.entry.js +0 -1
  1430. package/dist/digi-arbetsformedlingen/p-54885d0b.entry.js +0 -1
  1431. package/dist/digi-arbetsformedlingen/p-59d1de44.entry.js +0 -1
  1432. package/dist/digi-arbetsformedlingen/p-619a1edf.entry.js +0 -1
  1433. package/dist/digi-arbetsformedlingen/p-6897066a.entry.js +0 -1
  1434. package/dist/digi-arbetsformedlingen/p-7933b555.js +0 -1
  1435. package/dist/digi-arbetsformedlingen/p-7aacd45f.js +0 -1
  1436. package/dist/digi-arbetsformedlingen/p-7bea4820.entry.js +0 -1
  1437. package/dist/digi-arbetsformedlingen/p-8586e274.entry.js +0 -1
  1438. package/dist/digi-arbetsformedlingen/p-860e37c2.entry.js +0 -1
  1439. package/dist/digi-arbetsformedlingen/p-87a58f87.entry.js +0 -1
  1440. package/dist/digi-arbetsformedlingen/p-88b4d03a.js +0 -1
  1441. package/dist/digi-arbetsformedlingen/p-905ccb30.js +0 -1
  1442. package/dist/digi-arbetsformedlingen/p-973acc86.entry.js +0 -1
  1443. package/dist/digi-arbetsformedlingen/p-9e081a49.entry.js +0 -1
  1444. package/dist/digi-arbetsformedlingen/p-a0472ce2.entry.js +0 -1
  1445. package/dist/digi-arbetsformedlingen/p-a061e518.entry.js +0 -1
  1446. package/dist/digi-arbetsformedlingen/p-a29a52f3.entry.js +0 -1
  1447. package/dist/digi-arbetsformedlingen/p-a60de01b.entry.js +0 -1
  1448. package/dist/digi-arbetsformedlingen/p-a7f77b2a.entry.js +0 -1
  1449. package/dist/digi-arbetsformedlingen/p-baa2b1e1.entry.js +0 -1
  1450. package/dist/digi-arbetsformedlingen/p-bc3d2778.js +0 -1
  1451. package/dist/digi-arbetsformedlingen/p-be911ea9.entry.js +0 -1
  1452. package/dist/digi-arbetsformedlingen/p-c7949525.js +0 -1
  1453. package/dist/digi-arbetsformedlingen/p-d2c4b90b.entry.js +0 -1
  1454. package/dist/digi-arbetsformedlingen/p-d3d5e24d.entry.js +0 -1
  1455. package/dist/digi-arbetsformedlingen/p-e5595f8b.entry.js +0 -1
  1456. package/dist/digi-arbetsformedlingen/p-e886d3e9.entry.js +0 -1
  1457. package/dist/digi-arbetsformedlingen/p-ee915c1e.entry.js +0 -1
  1458. package/dist/digi-arbetsformedlingen/p-f14601e4.entry.js +0 -1
  1459. package/dist/digi-arbetsformedlingen/p-f427db52.entry.js +0 -1
  1460. package/dist/digi-arbetsformedlingen/p-f447b984.js +0 -1
  1461. package/dist/digi-arbetsformedlingen/p-f77e57f3.entry.js +0 -1
  1462. package/dist/esm/digi-calendar-datepicker.entry.js +0 -2469
  1463. package/dist/esm/digi-calendar_2.entry.js +0 -469
  1464. package/dist/esm/digi-code_8.entry.js +0 -395
  1465. package/dist/esm/digi-form-select_2.entry.js +0 -171
  1466. package/dist/esm/digi-icon-chevron-left.entry.js +0 -26
  1467. package/dist/esm/digi-icon-chevron-right.entry.js +0 -26
  1468. package/dist/esm/digi-util-keydown-handler.entry.js +0 -79
  1469. package/dist/esm/digi-util-mutation-observer.entry.js +0 -60
  1470. package/dist/esm/form-input-search-variation.enum-f9d669f2.js +0 -8
  1471. package/dist/esm/form-select-variation.enum-f2f6098d.js +0 -16
  1472. package/dist/esm/form-validation-message-variation.enum-bcef8a9d.js +0 -8
  1473. package/dist/esm/index-5b6c95c6.js +0 -63
  1474. package/dist/esm/index-8685f88d.js +0 -170
  1475. package/dist/esm/typography-variation.enum-bea2321f.js +0 -53
@@ -0,0 +1,3691 @@
1
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-8e318bb2.js';
2
+ import { r as randomIdGenerator } from './randomIdGenerator.util-56406f2e.js';
3
+ import { d as detectClickOutside } from './detectClickOutside.util-72594957.js';
4
+ import { d as detectFocusOutside } from './detectFocusOutside.util-a8676bee.js';
5
+ import { l as logger } from './logger.util-ede3c48a.js';
6
+ import { _ as _t } from './text-26e02c8d.js';
7
+ import { r as requiredArgs, t as toDate, a as toInteger, g as getUTCISOWeek, b as getUTCWeek, c as getUTCWeekYear, s as startOfUTCWeek, d as startOfUTCISOWeek, i as isProtectedWeekYearToken, e as throwProtectedError, f as isProtectedDayOfYearToken, h as subMilliseconds, j as getTimezoneOffsetInMilliseconds, k as defaultLocale, l as longFormatters, m as isValid } from './index-dc6b83f7.js';
8
+ import './badge-notification-shape.enum-e15a6245.js';
9
+ import { C as CalendarDatepickerValidation, i as FormInputValidation, h as FormInputMode, j as FormInputVariation, s as FormSelectVariation, r as FormSelectValidation, G as TypographyVariation } from './typography-variation.enum-eff5d5d8.js';
10
+ import './badge-status-variation.enum-8d6370ff.js';
11
+ import './button-size.enum-2dcd673f.js';
12
+ import './button-type.enum-5250ae0b.js';
13
+ import './button-variation.enum-94fffdd6.js';
14
+ import './calendar-week-view-heading-level.enum-6774297c.js';
15
+ import './card-footer-border.enum-eed26243.js';
16
+ import './bar-chart-variation.enum-97c0b47f.js';
17
+ import './code-example-variation.enum-e9f9fced.js';
18
+ import './code-variation.enum-1eee7c7a.js';
19
+ import './expandable-faq-item-variation.enum-a8cb225b.js';
20
+ import './expandable-faq-variation.enum-6934c367.js';
21
+ import './footer-card-variation.enum-cc732148.js';
22
+ import './form-checkbox-variation.enum-83e906fc.js';
23
+ import { c as FormValidationMessageVariation } from './form-validation-message-variation.enum-f7835fc5.js';
24
+ import { b as FormInputType, a as FormInputButtonVariation } from './form-input-type.enum-62a97d5d.js';
25
+ import './form-textarea-variation.enum-05017e8e.js';
26
+ import './info-card-multi-type.enum-07ee124f.js';
27
+ import './info-card-variation.enum-2ccc52c1.js';
28
+ import './layout-container-max-width.enum-c40018ac.js';
29
+ import './layout-block-variation.enum-b7a20db4.js';
30
+ import './layout-columns-variation.enum-34f7754e.js';
31
+ import './layout-media-object-alignment.enum-305b86b6.js';
32
+ import './link-button-variation.enum-b7f1d571.js';
33
+ import './list-type.enum-fbb331ad.js';
34
+ import './loader-skeleton-variation.enum-f9f867b4.js';
35
+ import './loader-spinner-size.enum-0b246fa0.js';
36
+ import './logo-variation.enum-5b68b79f.js';
37
+ import './media-figure-alignment.enum-a1d36567.js';
38
+ import './navigation-context-menu-item-type.enum-d5434f5a.js';
39
+ import './navigation-context-menu-horizontal-position.enum-e5ed22c2.js';
40
+ import './navigation-sidebar-variation.enum-8fead764.js';
41
+ import './navigation-vertical-menu-variation.enum-c30b0ea9.js';
42
+ import './progress-indicator-variation.enum-b12ba50a.js';
43
+ import './progress-list-item-variation.enum-384b9a3a.js';
44
+ import './progress-list-variation.enum-300bd89d.js';
45
+ import './progressbar-variation.enum-40adaab4.js';
46
+ import './quote-image-inner-position.enum-8e9b1e65.js';
47
+ import './table-variation.enum-dd9366b6.js';
48
+ import './tag-media-icon.enum-fefa191c.js';
49
+ import './tag-size.enum-1e1bcf94.js';
50
+ import './tools-feedback-banner-type.enum-74b4e580.js';
51
+ import './tools-feedback-rating-variation.enum-29058ff2.js';
52
+ import './typography-heading-jumbo-variation.enum-eb737f1b.js';
53
+ import './typography-meta-variation.enum-1f7c2878.js';
54
+ import './typography-time-variation.enum-34c830ef.js';
55
+ import './util-breakpoint-observer-breakpoints.enum-6d004731.js';
56
+ import { K as KEY_CODE, k as keyboardHandler } from './keyboardHandler.util-383c0054.js';
57
+ import './detectClosest.util-58a7504f.js';
58
+
59
+ function assign(target, dirtyObject) {
60
+ if (target == null) {
61
+ throw new TypeError('assign requires that input parameter not be null or undefined');
62
+ }
63
+
64
+ dirtyObject = dirtyObject || {};
65
+
66
+ for (var property in dirtyObject) {
67
+ if (Object.prototype.hasOwnProperty.call(dirtyObject, property)) {
68
+ target[property] = dirtyObject[property];
69
+ }
70
+ }
71
+
72
+ return target;
73
+ }
74
+
75
+ /**
76
+ * @name isAfter
77
+ * @category Common Helpers
78
+ * @summary Is the first date after the second one?
79
+ *
80
+ * @description
81
+ * Is the first date after the second one?
82
+ *
83
+ * ### v2.0.0 breaking changes:
84
+ *
85
+ * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
86
+ *
87
+ * @param {Date|Number} date - the date that should be after the other one to return true
88
+ * @param {Date|Number} dateToCompare - the date to compare with
89
+ * @returns {Boolean} the first date is after the second date
90
+ * @throws {TypeError} 2 arguments required
91
+ *
92
+ * @example
93
+ * // Is 10 July 1989 after 11 February 1987?
94
+ * var result = isAfter(new Date(1989, 6, 10), new Date(1987, 1, 11))
95
+ * //=> true
96
+ */
97
+
98
+ function isAfter(dirtyDate, dirtyDateToCompare) {
99
+ requiredArgs(2, arguments);
100
+ var date = toDate(dirtyDate);
101
+ var dateToCompare = toDate(dirtyDateToCompare);
102
+ return date.getTime() > dateToCompare.getTime();
103
+ }
104
+
105
+ /**
106
+ * @name isBefore
107
+ * @category Common Helpers
108
+ * @summary Is the first date before the second one?
109
+ *
110
+ * @description
111
+ * Is the first date before the second one?
112
+ *
113
+ * ### v2.0.0 breaking changes:
114
+ *
115
+ * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
116
+ *
117
+ * @param {Date|Number} date - the date that should be before the other one to return true
118
+ * @param {Date|Number} dateToCompare - the date to compare with
119
+ * @returns {Boolean} the first date is before the second date
120
+ * @throws {TypeError} 2 arguments required
121
+ *
122
+ * @example
123
+ * // Is 10 July 1989 before 11 February 1987?
124
+ * var result = isBefore(new Date(1989, 6, 10), new Date(1987, 1, 11))
125
+ * //=> false
126
+ */
127
+
128
+ function isBefore(dirtyDate, dirtyDateToCompare) {
129
+ requiredArgs(2, arguments);
130
+ var date = toDate(dirtyDate);
131
+ var dateToCompare = toDate(dirtyDateToCompare);
132
+ return date.getTime() < dateToCompare.getTime();
133
+ }
134
+
135
+ // See issue: https://github.com/date-fns/date-fns/issues/376
136
+
137
+ function setUTCDay(dirtyDate, dirtyDay, dirtyOptions) {
138
+ requiredArgs(2, arguments);
139
+ var options = dirtyOptions || {};
140
+ var locale = options.locale;
141
+ var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn;
142
+ var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : toInteger(localeWeekStartsOn);
143
+ var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : toInteger(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
144
+
145
+ if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
146
+ throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
147
+ }
148
+
149
+ var date = toDate(dirtyDate);
150
+ var day = toInteger(dirtyDay);
151
+ var currentDay = date.getUTCDay();
152
+ var remainder = day % 7;
153
+ var dayIndex = (remainder + 7) % 7;
154
+ var diff = (dayIndex < weekStartsOn ? 7 : 0) + day - currentDay;
155
+ date.setUTCDate(date.getUTCDate() + diff);
156
+ return date;
157
+ }
158
+
159
+ // See issue: https://github.com/date-fns/date-fns/issues/376
160
+
161
+ function setUTCISODay(dirtyDate, dirtyDay) {
162
+ requiredArgs(2, arguments);
163
+ var day = toInteger(dirtyDay);
164
+
165
+ if (day % 7 === 0) {
166
+ day = day - 7;
167
+ }
168
+
169
+ var weekStartsOn = 1;
170
+ var date = toDate(dirtyDate);
171
+ var currentDay = date.getUTCDay();
172
+ var remainder = day % 7;
173
+ var dayIndex = (remainder + 7) % 7;
174
+ var diff = (dayIndex < weekStartsOn ? 7 : 0) + day - currentDay;
175
+ date.setUTCDate(date.getUTCDate() + diff);
176
+ return date;
177
+ }
178
+
179
+ // See issue: https://github.com/date-fns/date-fns/issues/376
180
+
181
+ function setUTCISOWeek(dirtyDate, dirtyISOWeek) {
182
+ requiredArgs(2, arguments);
183
+ var date = toDate(dirtyDate);
184
+ var isoWeek = toInteger(dirtyISOWeek);
185
+ var diff = getUTCISOWeek(date) - isoWeek;
186
+ date.setUTCDate(date.getUTCDate() - diff * 7);
187
+ return date;
188
+ }
189
+
190
+ // See issue: https://github.com/date-fns/date-fns/issues/376
191
+
192
+ function setUTCWeek(dirtyDate, dirtyWeek, options) {
193
+ requiredArgs(2, arguments);
194
+ var date = toDate(dirtyDate);
195
+ var week = toInteger(dirtyWeek);
196
+ var diff = getUTCWeek(date, options) - week;
197
+ date.setUTCDate(date.getUTCDate() - diff * 7);
198
+ return date;
199
+ }
200
+
201
+ var MILLISECONDS_IN_HOUR = 3600000;
202
+ var MILLISECONDS_IN_MINUTE = 60000;
203
+ var MILLISECONDS_IN_SECOND = 1000;
204
+ var numericPatterns = {
205
+ month: /^(1[0-2]|0?\d)/,
206
+ // 0 to 12
207
+ date: /^(3[0-1]|[0-2]?\d)/,
208
+ // 0 to 31
209
+ dayOfYear: /^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,
210
+ // 0 to 366
211
+ week: /^(5[0-3]|[0-4]?\d)/,
212
+ // 0 to 53
213
+ hour23h: /^(2[0-3]|[0-1]?\d)/,
214
+ // 0 to 23
215
+ hour24h: /^(2[0-4]|[0-1]?\d)/,
216
+ // 0 to 24
217
+ hour11h: /^(1[0-1]|0?\d)/,
218
+ // 0 to 11
219
+ hour12h: /^(1[0-2]|0?\d)/,
220
+ // 0 to 12
221
+ minute: /^[0-5]?\d/,
222
+ // 0 to 59
223
+ second: /^[0-5]?\d/,
224
+ // 0 to 59
225
+ singleDigit: /^\d/,
226
+ // 0 to 9
227
+ twoDigits: /^\d{1,2}/,
228
+ // 0 to 99
229
+ threeDigits: /^\d{1,3}/,
230
+ // 0 to 999
231
+ fourDigits: /^\d{1,4}/,
232
+ // 0 to 9999
233
+ anyDigitsSigned: /^-?\d+/,
234
+ singleDigitSigned: /^-?\d/,
235
+ // 0 to 9, -0 to -9
236
+ twoDigitsSigned: /^-?\d{1,2}/,
237
+ // 0 to 99, -0 to -99
238
+ threeDigitsSigned: /^-?\d{1,3}/,
239
+ // 0 to 999, -0 to -999
240
+ fourDigitsSigned: /^-?\d{1,4}/ // 0 to 9999, -0 to -9999
241
+
242
+ };
243
+ var timezonePatterns = {
244
+ basicOptionalMinutes: /^([+-])(\d{2})(\d{2})?|Z/,
245
+ basic: /^([+-])(\d{2})(\d{2})|Z/,
246
+ basicOptionalSeconds: /^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,
247
+ extended: /^([+-])(\d{2}):(\d{2})|Z/,
248
+ extendedOptionalSeconds: /^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/
249
+ };
250
+
251
+ function parseNumericPattern(pattern, string, valueCallback) {
252
+ var matchResult = string.match(pattern);
253
+
254
+ if (!matchResult) {
255
+ return null;
256
+ }
257
+
258
+ var value = parseInt(matchResult[0], 10);
259
+ return {
260
+ value: valueCallback ? valueCallback(value) : value,
261
+ rest: string.slice(matchResult[0].length)
262
+ };
263
+ }
264
+
265
+ function parseTimezonePattern(pattern, string) {
266
+ var matchResult = string.match(pattern);
267
+
268
+ if (!matchResult) {
269
+ return null;
270
+ } // Input is 'Z'
271
+
272
+
273
+ if (matchResult[0] === 'Z') {
274
+ return {
275
+ value: 0,
276
+ rest: string.slice(1)
277
+ };
278
+ }
279
+
280
+ var sign = matchResult[1] === '+' ? 1 : -1;
281
+ var hours = matchResult[2] ? parseInt(matchResult[2], 10) : 0;
282
+ var minutes = matchResult[3] ? parseInt(matchResult[3], 10) : 0;
283
+ var seconds = matchResult[5] ? parseInt(matchResult[5], 10) : 0;
284
+ return {
285
+ value: sign * (hours * MILLISECONDS_IN_HOUR + minutes * MILLISECONDS_IN_MINUTE + seconds * MILLISECONDS_IN_SECOND),
286
+ rest: string.slice(matchResult[0].length)
287
+ };
288
+ }
289
+
290
+ function parseAnyDigitsSigned(string, valueCallback) {
291
+ return parseNumericPattern(numericPatterns.anyDigitsSigned, string, valueCallback);
292
+ }
293
+
294
+ function parseNDigits(n, string, valueCallback) {
295
+ switch (n) {
296
+ case 1:
297
+ return parseNumericPattern(numericPatterns.singleDigit, string, valueCallback);
298
+
299
+ case 2:
300
+ return parseNumericPattern(numericPatterns.twoDigits, string, valueCallback);
301
+
302
+ case 3:
303
+ return parseNumericPattern(numericPatterns.threeDigits, string, valueCallback);
304
+
305
+ case 4:
306
+ return parseNumericPattern(numericPatterns.fourDigits, string, valueCallback);
307
+
308
+ default:
309
+ return parseNumericPattern(new RegExp('^\\d{1,' + n + '}'), string, valueCallback);
310
+ }
311
+ }
312
+
313
+ function parseNDigitsSigned(n, string, valueCallback) {
314
+ switch (n) {
315
+ case 1:
316
+ return parseNumericPattern(numericPatterns.singleDigitSigned, string, valueCallback);
317
+
318
+ case 2:
319
+ return parseNumericPattern(numericPatterns.twoDigitsSigned, string, valueCallback);
320
+
321
+ case 3:
322
+ return parseNumericPattern(numericPatterns.threeDigitsSigned, string, valueCallback);
323
+
324
+ case 4:
325
+ return parseNumericPattern(numericPatterns.fourDigitsSigned, string, valueCallback);
326
+
327
+ default:
328
+ return parseNumericPattern(new RegExp('^-?\\d{1,' + n + '}'), string, valueCallback);
329
+ }
330
+ }
331
+
332
+ function dayPeriodEnumToHours(enumValue) {
333
+ switch (enumValue) {
334
+ case 'morning':
335
+ return 4;
336
+
337
+ case 'evening':
338
+ return 17;
339
+
340
+ case 'pm':
341
+ case 'noon':
342
+ case 'afternoon':
343
+ return 12;
344
+
345
+ case 'am':
346
+ case 'midnight':
347
+ case 'night':
348
+ default:
349
+ return 0;
350
+ }
351
+ }
352
+
353
+ function normalizeTwoDigitYear(twoDigitYear, currentYear) {
354
+ var isCommonEra = currentYear > 0; // Absolute number of the current year:
355
+ // 1 -> 1 AC
356
+ // 0 -> 1 BC
357
+ // -1 -> 2 BC
358
+
359
+ var absCurrentYear = isCommonEra ? currentYear : 1 - currentYear;
360
+ var result;
361
+
362
+ if (absCurrentYear <= 50) {
363
+ result = twoDigitYear || 100;
364
+ } else {
365
+ var rangeEnd = absCurrentYear + 50;
366
+ var rangeEndCentury = Math.floor(rangeEnd / 100) * 100;
367
+ var isPreviousCentury = twoDigitYear >= rangeEnd % 100;
368
+ result = twoDigitYear + rangeEndCentury - (isPreviousCentury ? 100 : 0);
369
+ }
370
+
371
+ return isCommonEra ? result : 1 - result;
372
+ }
373
+
374
+ var DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
375
+ var DAYS_IN_MONTH_LEAP_YEAR = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; // User for validation
376
+
377
+ function isLeapYearIndex(year) {
378
+ return year % 400 === 0 || year % 4 === 0 && year % 100 !== 0;
379
+ }
380
+ /*
381
+ * | | Unit | | Unit |
382
+ * |-----|--------------------------------|-----|--------------------------------|
383
+ * | a | AM, PM | A* | Milliseconds in day |
384
+ * | b | AM, PM, noon, midnight | B | Flexible day period |
385
+ * | c | Stand-alone local day of week | C* | Localized hour w/ day period |
386
+ * | d | Day of month | D | Day of year |
387
+ * | e | Local day of week | E | Day of week |
388
+ * | f | | F* | Day of week in month |
389
+ * | g* | Modified Julian day | G | Era |
390
+ * | h | Hour [1-12] | H | Hour [0-23] |
391
+ * | i! | ISO day of week | I! | ISO week of year |
392
+ * | j* | Localized hour w/ day period | J* | Localized hour w/o day period |
393
+ * | k | Hour [1-24] | K | Hour [0-11] |
394
+ * | l* | (deprecated) | L | Stand-alone month |
395
+ * | m | Minute | M | Month |
396
+ * | n | | N | |
397
+ * | o! | Ordinal number modifier | O* | Timezone (GMT) |
398
+ * | p | | P | |
399
+ * | q | Stand-alone quarter | Q | Quarter |
400
+ * | r* | Related Gregorian year | R! | ISO week-numbering year |
401
+ * | s | Second | S | Fraction of second |
402
+ * | t! | Seconds timestamp | T! | Milliseconds timestamp |
403
+ * | u | Extended year | U* | Cyclic year |
404
+ * | v* | Timezone (generic non-locat.) | V* | Timezone (location) |
405
+ * | w | Local week of year | W* | Week of month |
406
+ * | x | Timezone (ISO-8601 w/o Z) | X | Timezone (ISO-8601) |
407
+ * | y | Year (abs) | Y | Local week-numbering year |
408
+ * | z* | Timezone (specific non-locat.) | Z* | Timezone (aliases) |
409
+ *
410
+ * Letters marked by * are not implemented but reserved by Unicode standard.
411
+ *
412
+ * Letters marked by ! are non-standard, but implemented by date-fns:
413
+ * - `o` modifies the previous token to turn it into an ordinal (see `parse` docs)
414
+ * - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days,
415
+ * i.e. 7 for Sunday, 1 for Monday, etc.
416
+ * - `I` is ISO week of year, as opposed to `w` which is local week of year.
417
+ * - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year.
418
+ * `R` is supposed to be used in conjunction with `I` and `i`
419
+ * for universal ISO week-numbering date, whereas
420
+ * `Y` is supposed to be used in conjunction with `w` and `e`
421
+ * for week-numbering date specific to the locale.
422
+ */
423
+
424
+
425
+ var parsers = {
426
+ // Era
427
+ G: {
428
+ priority: 140,
429
+ parse: function (string, token, match, _options) {
430
+ switch (token) {
431
+ // AD, BC
432
+ case 'G':
433
+ case 'GG':
434
+ case 'GGG':
435
+ return match.era(string, {
436
+ width: 'abbreviated'
437
+ }) || match.era(string, {
438
+ width: 'narrow'
439
+ });
440
+ // A, B
441
+
442
+ case 'GGGGG':
443
+ return match.era(string, {
444
+ width: 'narrow'
445
+ });
446
+ // Anno Domini, Before Christ
447
+
448
+ case 'GGGG':
449
+ default:
450
+ return match.era(string, {
451
+ width: 'wide'
452
+ }) || match.era(string, {
453
+ width: 'abbreviated'
454
+ }) || match.era(string, {
455
+ width: 'narrow'
456
+ });
457
+ }
458
+ },
459
+ set: function (date, flags, value, _options) {
460
+ flags.era = value;
461
+ date.setUTCFullYear(value, 0, 1);
462
+ date.setUTCHours(0, 0, 0, 0);
463
+ return date;
464
+ },
465
+ incompatibleTokens: ['R', 'u', 't', 'T']
466
+ },
467
+ // Year
468
+ y: {
469
+ // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_Patterns
470
+ // | Year | y | yy | yyy | yyyy | yyyyy |
471
+ // |----------|-------|----|-------|-------|-------|
472
+ // | AD 1 | 1 | 01 | 001 | 0001 | 00001 |
473
+ // | AD 12 | 12 | 12 | 012 | 0012 | 00012 |
474
+ // | AD 123 | 123 | 23 | 123 | 0123 | 00123 |
475
+ // | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 |
476
+ // | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |
477
+ priority: 130,
478
+ parse: function (string, token, match, _options) {
479
+ var valueCallback = function (year) {
480
+ return {
481
+ year: year,
482
+ isTwoDigitYear: token === 'yy'
483
+ };
484
+ };
485
+
486
+ switch (token) {
487
+ case 'y':
488
+ return parseNDigits(4, string, valueCallback);
489
+
490
+ case 'yo':
491
+ return match.ordinalNumber(string, {
492
+ unit: 'year',
493
+ valueCallback: valueCallback
494
+ });
495
+
496
+ default:
497
+ return parseNDigits(token.length, string, valueCallback);
498
+ }
499
+ },
500
+ validate: function (_date, value, _options) {
501
+ return value.isTwoDigitYear || value.year > 0;
502
+ },
503
+ set: function (date, flags, value, _options) {
504
+ var currentYear = date.getUTCFullYear();
505
+
506
+ if (value.isTwoDigitYear) {
507
+ var normalizedTwoDigitYear = normalizeTwoDigitYear(value.year, currentYear);
508
+ date.setUTCFullYear(normalizedTwoDigitYear, 0, 1);
509
+ date.setUTCHours(0, 0, 0, 0);
510
+ return date;
511
+ }
512
+
513
+ var year = !('era' in flags) || flags.era === 1 ? value.year : 1 - value.year;
514
+ date.setUTCFullYear(year, 0, 1);
515
+ date.setUTCHours(0, 0, 0, 0);
516
+ return date;
517
+ },
518
+ incompatibleTokens: ['Y', 'R', 'u', 'w', 'I', 'i', 'e', 'c', 't', 'T']
519
+ },
520
+ // Local week-numbering year
521
+ Y: {
522
+ priority: 130,
523
+ parse: function (string, token, match, _options) {
524
+ var valueCallback = function (year) {
525
+ return {
526
+ year: year,
527
+ isTwoDigitYear: token === 'YY'
528
+ };
529
+ };
530
+
531
+ switch (token) {
532
+ case 'Y':
533
+ return parseNDigits(4, string, valueCallback);
534
+
535
+ case 'Yo':
536
+ return match.ordinalNumber(string, {
537
+ unit: 'year',
538
+ valueCallback: valueCallback
539
+ });
540
+
541
+ default:
542
+ return parseNDigits(token.length, string, valueCallback);
543
+ }
544
+ },
545
+ validate: function (_date, value, _options) {
546
+ return value.isTwoDigitYear || value.year > 0;
547
+ },
548
+ set: function (date, flags, value, options) {
549
+ var currentYear = getUTCWeekYear(date, options);
550
+
551
+ if (value.isTwoDigitYear) {
552
+ var normalizedTwoDigitYear = normalizeTwoDigitYear(value.year, currentYear);
553
+ date.setUTCFullYear(normalizedTwoDigitYear, 0, options.firstWeekContainsDate);
554
+ date.setUTCHours(0, 0, 0, 0);
555
+ return startOfUTCWeek(date, options);
556
+ }
557
+
558
+ var year = !('era' in flags) || flags.era === 1 ? value.year : 1 - value.year;
559
+ date.setUTCFullYear(year, 0, options.firstWeekContainsDate);
560
+ date.setUTCHours(0, 0, 0, 0);
561
+ return startOfUTCWeek(date, options);
562
+ },
563
+ incompatibleTokens: ['y', 'R', 'u', 'Q', 'q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T']
564
+ },
565
+ // ISO week-numbering year
566
+ R: {
567
+ priority: 130,
568
+ parse: function (string, token, _match, _options) {
569
+ if (token === 'R') {
570
+ return parseNDigitsSigned(4, string);
571
+ }
572
+
573
+ return parseNDigitsSigned(token.length, string);
574
+ },
575
+ set: function (_date, _flags, value, _options) {
576
+ var firstWeekOfYear = new Date(0);
577
+ firstWeekOfYear.setUTCFullYear(value, 0, 4);
578
+ firstWeekOfYear.setUTCHours(0, 0, 0, 0);
579
+ return startOfUTCISOWeek(firstWeekOfYear);
580
+ },
581
+ incompatibleTokens: ['G', 'y', 'Y', 'u', 'Q', 'q', 'M', 'L', 'w', 'd', 'D', 'e', 'c', 't', 'T']
582
+ },
583
+ // Extended year
584
+ u: {
585
+ priority: 130,
586
+ parse: function (string, token, _match, _options) {
587
+ if (token === 'u') {
588
+ return parseNDigitsSigned(4, string);
589
+ }
590
+
591
+ return parseNDigitsSigned(token.length, string);
592
+ },
593
+ set: function (date, _flags, value, _options) {
594
+ date.setUTCFullYear(value, 0, 1);
595
+ date.setUTCHours(0, 0, 0, 0);
596
+ return date;
597
+ },
598
+ incompatibleTokens: ['G', 'y', 'Y', 'R', 'w', 'I', 'i', 'e', 'c', 't', 'T']
599
+ },
600
+ // Quarter
601
+ Q: {
602
+ priority: 120,
603
+ parse: function (string, token, match, _options) {
604
+ switch (token) {
605
+ // 1, 2, 3, 4
606
+ case 'Q':
607
+ case 'QQ':
608
+ // 01, 02, 03, 04
609
+ return parseNDigits(token.length, string);
610
+ // 1st, 2nd, 3rd, 4th
611
+
612
+ case 'Qo':
613
+ return match.ordinalNumber(string, {
614
+ unit: 'quarter'
615
+ });
616
+ // Q1, Q2, Q3, Q4
617
+
618
+ case 'QQQ':
619
+ return match.quarter(string, {
620
+ width: 'abbreviated',
621
+ context: 'formatting'
622
+ }) || match.quarter(string, {
623
+ width: 'narrow',
624
+ context: 'formatting'
625
+ });
626
+ // 1, 2, 3, 4 (narrow quarter; could be not numerical)
627
+
628
+ case 'QQQQQ':
629
+ return match.quarter(string, {
630
+ width: 'narrow',
631
+ context: 'formatting'
632
+ });
633
+ // 1st quarter, 2nd quarter, ...
634
+
635
+ case 'QQQQ':
636
+ default:
637
+ return match.quarter(string, {
638
+ width: 'wide',
639
+ context: 'formatting'
640
+ }) || match.quarter(string, {
641
+ width: 'abbreviated',
642
+ context: 'formatting'
643
+ }) || match.quarter(string, {
644
+ width: 'narrow',
645
+ context: 'formatting'
646
+ });
647
+ }
648
+ },
649
+ validate: function (_date, value, _options) {
650
+ return value >= 1 && value <= 4;
651
+ },
652
+ set: function (date, _flags, value, _options) {
653
+ date.setUTCMonth((value - 1) * 3, 1);
654
+ date.setUTCHours(0, 0, 0, 0);
655
+ return date;
656
+ },
657
+ incompatibleTokens: ['Y', 'R', 'q', 'M', 'L', 'w', 'I', 'd', 'D', 'i', 'e', 'c', 't', 'T']
658
+ },
659
+ // Stand-alone quarter
660
+ q: {
661
+ priority: 120,
662
+ parse: function (string, token, match, _options) {
663
+ switch (token) {
664
+ // 1, 2, 3, 4
665
+ case 'q':
666
+ case 'qq':
667
+ // 01, 02, 03, 04
668
+ return parseNDigits(token.length, string);
669
+ // 1st, 2nd, 3rd, 4th
670
+
671
+ case 'qo':
672
+ return match.ordinalNumber(string, {
673
+ unit: 'quarter'
674
+ });
675
+ // Q1, Q2, Q3, Q4
676
+
677
+ case 'qqq':
678
+ return match.quarter(string, {
679
+ width: 'abbreviated',
680
+ context: 'standalone'
681
+ }) || match.quarter(string, {
682
+ width: 'narrow',
683
+ context: 'standalone'
684
+ });
685
+ // 1, 2, 3, 4 (narrow quarter; could be not numerical)
686
+
687
+ case 'qqqqq':
688
+ return match.quarter(string, {
689
+ width: 'narrow',
690
+ context: 'standalone'
691
+ });
692
+ // 1st quarter, 2nd quarter, ...
693
+
694
+ case 'qqqq':
695
+ default:
696
+ return match.quarter(string, {
697
+ width: 'wide',
698
+ context: 'standalone'
699
+ }) || match.quarter(string, {
700
+ width: 'abbreviated',
701
+ context: 'standalone'
702
+ }) || match.quarter(string, {
703
+ width: 'narrow',
704
+ context: 'standalone'
705
+ });
706
+ }
707
+ },
708
+ validate: function (_date, value, _options) {
709
+ return value >= 1 && value <= 4;
710
+ },
711
+ set: function (date, _flags, value, _options) {
712
+ date.setUTCMonth((value - 1) * 3, 1);
713
+ date.setUTCHours(0, 0, 0, 0);
714
+ return date;
715
+ },
716
+ incompatibleTokens: ['Y', 'R', 'Q', 'M', 'L', 'w', 'I', 'd', 'D', 'i', 'e', 'c', 't', 'T']
717
+ },
718
+ // Month
719
+ M: {
720
+ priority: 110,
721
+ parse: function (string, token, match, _options) {
722
+ var valueCallback = function (value) {
723
+ return value - 1;
724
+ };
725
+
726
+ switch (token) {
727
+ // 1, 2, ..., 12
728
+ case 'M':
729
+ return parseNumericPattern(numericPatterns.month, string, valueCallback);
730
+ // 01, 02, ..., 12
731
+
732
+ case 'MM':
733
+ return parseNDigits(2, string, valueCallback);
734
+ // 1st, 2nd, ..., 12th
735
+
736
+ case 'Mo':
737
+ return match.ordinalNumber(string, {
738
+ unit: 'month',
739
+ valueCallback: valueCallback
740
+ });
741
+ // Jan, Feb, ..., Dec
742
+
743
+ case 'MMM':
744
+ return match.month(string, {
745
+ width: 'abbreviated',
746
+ context: 'formatting'
747
+ }) || match.month(string, {
748
+ width: 'narrow',
749
+ context: 'formatting'
750
+ });
751
+ // J, F, ..., D
752
+
753
+ case 'MMMMM':
754
+ return match.month(string, {
755
+ width: 'narrow',
756
+ context: 'formatting'
757
+ });
758
+ // January, February, ..., December
759
+
760
+ case 'MMMM':
761
+ default:
762
+ return match.month(string, {
763
+ width: 'wide',
764
+ context: 'formatting'
765
+ }) || match.month(string, {
766
+ width: 'abbreviated',
767
+ context: 'formatting'
768
+ }) || match.month(string, {
769
+ width: 'narrow',
770
+ context: 'formatting'
771
+ });
772
+ }
773
+ },
774
+ validate: function (_date, value, _options) {
775
+ return value >= 0 && value <= 11;
776
+ },
777
+ set: function (date, _flags, value, _options) {
778
+ date.setUTCMonth(value, 1);
779
+ date.setUTCHours(0, 0, 0, 0);
780
+ return date;
781
+ },
782
+ incompatibleTokens: ['Y', 'R', 'q', 'Q', 'L', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']
783
+ },
784
+ // Stand-alone month
785
+ L: {
786
+ priority: 110,
787
+ parse: function (string, token, match, _options) {
788
+ var valueCallback = function (value) {
789
+ return value - 1;
790
+ };
791
+
792
+ switch (token) {
793
+ // 1, 2, ..., 12
794
+ case 'L':
795
+ return parseNumericPattern(numericPatterns.month, string, valueCallback);
796
+ // 01, 02, ..., 12
797
+
798
+ case 'LL':
799
+ return parseNDigits(2, string, valueCallback);
800
+ // 1st, 2nd, ..., 12th
801
+
802
+ case 'Lo':
803
+ return match.ordinalNumber(string, {
804
+ unit: 'month',
805
+ valueCallback: valueCallback
806
+ });
807
+ // Jan, Feb, ..., Dec
808
+
809
+ case 'LLL':
810
+ return match.month(string, {
811
+ width: 'abbreviated',
812
+ context: 'standalone'
813
+ }) || match.month(string, {
814
+ width: 'narrow',
815
+ context: 'standalone'
816
+ });
817
+ // J, F, ..., D
818
+
819
+ case 'LLLLL':
820
+ return match.month(string, {
821
+ width: 'narrow',
822
+ context: 'standalone'
823
+ });
824
+ // January, February, ..., December
825
+
826
+ case 'LLLL':
827
+ default:
828
+ return match.month(string, {
829
+ width: 'wide',
830
+ context: 'standalone'
831
+ }) || match.month(string, {
832
+ width: 'abbreviated',
833
+ context: 'standalone'
834
+ }) || match.month(string, {
835
+ width: 'narrow',
836
+ context: 'standalone'
837
+ });
838
+ }
839
+ },
840
+ validate: function (_date, value, _options) {
841
+ return value >= 0 && value <= 11;
842
+ },
843
+ set: function (date, _flags, value, _options) {
844
+ date.setUTCMonth(value, 1);
845
+ date.setUTCHours(0, 0, 0, 0);
846
+ return date;
847
+ },
848
+ incompatibleTokens: ['Y', 'R', 'q', 'Q', 'M', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']
849
+ },
850
+ // Local week of year
851
+ w: {
852
+ priority: 100,
853
+ parse: function (string, token, match, _options) {
854
+ switch (token) {
855
+ case 'w':
856
+ return parseNumericPattern(numericPatterns.week, string);
857
+
858
+ case 'wo':
859
+ return match.ordinalNumber(string, {
860
+ unit: 'week'
861
+ });
862
+
863
+ default:
864
+ return parseNDigits(token.length, string);
865
+ }
866
+ },
867
+ validate: function (_date, value, _options) {
868
+ return value >= 1 && value <= 53;
869
+ },
870
+ set: function (date, _flags, value, options) {
871
+ return startOfUTCWeek(setUTCWeek(date, value, options), options);
872
+ },
873
+ incompatibleTokens: ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T']
874
+ },
875
+ // ISO week of year
876
+ I: {
877
+ priority: 100,
878
+ parse: function (string, token, match, _options) {
879
+ switch (token) {
880
+ case 'I':
881
+ return parseNumericPattern(numericPatterns.week, string);
882
+
883
+ case 'Io':
884
+ return match.ordinalNumber(string, {
885
+ unit: 'week'
886
+ });
887
+
888
+ default:
889
+ return parseNDigits(token.length, string);
890
+ }
891
+ },
892
+ validate: function (_date, value, _options) {
893
+ return value >= 1 && value <= 53;
894
+ },
895
+ set: function (date, _flags, value, options) {
896
+ return startOfUTCISOWeek(setUTCISOWeek(date, value, options), options);
897
+ },
898
+ incompatibleTokens: ['y', 'Y', 'u', 'q', 'Q', 'M', 'L', 'w', 'd', 'D', 'e', 'c', 't', 'T']
899
+ },
900
+ // Day of the month
901
+ d: {
902
+ priority: 90,
903
+ subPriority: 1,
904
+ parse: function (string, token, match, _options) {
905
+ switch (token) {
906
+ case 'd':
907
+ return parseNumericPattern(numericPatterns.date, string);
908
+
909
+ case 'do':
910
+ return match.ordinalNumber(string, {
911
+ unit: 'date'
912
+ });
913
+
914
+ default:
915
+ return parseNDigits(token.length, string);
916
+ }
917
+ },
918
+ validate: function (date, value, _options) {
919
+ var year = date.getUTCFullYear();
920
+ var isLeapYear = isLeapYearIndex(year);
921
+ var month = date.getUTCMonth();
922
+
923
+ if (isLeapYear) {
924
+ return value >= 1 && value <= DAYS_IN_MONTH_LEAP_YEAR[month];
925
+ } else {
926
+ return value >= 1 && value <= DAYS_IN_MONTH[month];
927
+ }
928
+ },
929
+ set: function (date, _flags, value, _options) {
930
+ date.setUTCDate(value);
931
+ date.setUTCHours(0, 0, 0, 0);
932
+ return date;
933
+ },
934
+ incompatibleTokens: ['Y', 'R', 'q', 'Q', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']
935
+ },
936
+ // Day of year
937
+ D: {
938
+ priority: 90,
939
+ subPriority: 1,
940
+ parse: function (string, token, match, _options) {
941
+ switch (token) {
942
+ case 'D':
943
+ case 'DD':
944
+ return parseNumericPattern(numericPatterns.dayOfYear, string);
945
+
946
+ case 'Do':
947
+ return match.ordinalNumber(string, {
948
+ unit: 'date'
949
+ });
950
+
951
+ default:
952
+ return parseNDigits(token.length, string);
953
+ }
954
+ },
955
+ validate: function (date, value, _options) {
956
+ var year = date.getUTCFullYear();
957
+ var isLeapYear = isLeapYearIndex(year);
958
+
959
+ if (isLeapYear) {
960
+ return value >= 1 && value <= 366;
961
+ } else {
962
+ return value >= 1 && value <= 365;
963
+ }
964
+ },
965
+ set: function (date, _flags, value, _options) {
966
+ date.setUTCMonth(0, value);
967
+ date.setUTCHours(0, 0, 0, 0);
968
+ return date;
969
+ },
970
+ incompatibleTokens: ['Y', 'R', 'q', 'Q', 'M', 'L', 'w', 'I', 'd', 'E', 'i', 'e', 'c', 't', 'T']
971
+ },
972
+ // Day of week
973
+ E: {
974
+ priority: 90,
975
+ parse: function (string, token, match, _options) {
976
+ switch (token) {
977
+ // Tue
978
+ case 'E':
979
+ case 'EE':
980
+ case 'EEE':
981
+ return match.day(string, {
982
+ width: 'abbreviated',
983
+ context: 'formatting'
984
+ }) || match.day(string, {
985
+ width: 'short',
986
+ context: 'formatting'
987
+ }) || match.day(string, {
988
+ width: 'narrow',
989
+ context: 'formatting'
990
+ });
991
+ // T
992
+
993
+ case 'EEEEE':
994
+ return match.day(string, {
995
+ width: 'narrow',
996
+ context: 'formatting'
997
+ });
998
+ // Tu
999
+
1000
+ case 'EEEEEE':
1001
+ return match.day(string, {
1002
+ width: 'short',
1003
+ context: 'formatting'
1004
+ }) || match.day(string, {
1005
+ width: 'narrow',
1006
+ context: 'formatting'
1007
+ });
1008
+ // Tuesday
1009
+
1010
+ case 'EEEE':
1011
+ default:
1012
+ return match.day(string, {
1013
+ width: 'wide',
1014
+ context: 'formatting'
1015
+ }) || match.day(string, {
1016
+ width: 'abbreviated',
1017
+ context: 'formatting'
1018
+ }) || match.day(string, {
1019
+ width: 'short',
1020
+ context: 'formatting'
1021
+ }) || match.day(string, {
1022
+ width: 'narrow',
1023
+ context: 'formatting'
1024
+ });
1025
+ }
1026
+ },
1027
+ validate: function (_date, value, _options) {
1028
+ return value >= 0 && value <= 6;
1029
+ },
1030
+ set: function (date, _flags, value, options) {
1031
+ date = setUTCDay(date, value, options);
1032
+ date.setUTCHours(0, 0, 0, 0);
1033
+ return date;
1034
+ },
1035
+ incompatibleTokens: ['D', 'i', 'e', 'c', 't', 'T']
1036
+ },
1037
+ // Local day of week
1038
+ e: {
1039
+ priority: 90,
1040
+ parse: function (string, token, match, options) {
1041
+ var valueCallback = function (value) {
1042
+ var wholeWeekDays = Math.floor((value - 1) / 7) * 7;
1043
+ return (value + options.weekStartsOn + 6) % 7 + wholeWeekDays;
1044
+ };
1045
+
1046
+ switch (token) {
1047
+ // 3
1048
+ case 'e':
1049
+ case 'ee':
1050
+ // 03
1051
+ return parseNDigits(token.length, string, valueCallback);
1052
+ // 3rd
1053
+
1054
+ case 'eo':
1055
+ return match.ordinalNumber(string, {
1056
+ unit: 'day',
1057
+ valueCallback: valueCallback
1058
+ });
1059
+ // Tue
1060
+
1061
+ case 'eee':
1062
+ return match.day(string, {
1063
+ width: 'abbreviated',
1064
+ context: 'formatting'
1065
+ }) || match.day(string, {
1066
+ width: 'short',
1067
+ context: 'formatting'
1068
+ }) || match.day(string, {
1069
+ width: 'narrow',
1070
+ context: 'formatting'
1071
+ });
1072
+ // T
1073
+
1074
+ case 'eeeee':
1075
+ return match.day(string, {
1076
+ width: 'narrow',
1077
+ context: 'formatting'
1078
+ });
1079
+ // Tu
1080
+
1081
+ case 'eeeeee':
1082
+ return match.day(string, {
1083
+ width: 'short',
1084
+ context: 'formatting'
1085
+ }) || match.day(string, {
1086
+ width: 'narrow',
1087
+ context: 'formatting'
1088
+ });
1089
+ // Tuesday
1090
+
1091
+ case 'eeee':
1092
+ default:
1093
+ return match.day(string, {
1094
+ width: 'wide',
1095
+ context: 'formatting'
1096
+ }) || match.day(string, {
1097
+ width: 'abbreviated',
1098
+ context: 'formatting'
1099
+ }) || match.day(string, {
1100
+ width: 'short',
1101
+ context: 'formatting'
1102
+ }) || match.day(string, {
1103
+ width: 'narrow',
1104
+ context: 'formatting'
1105
+ });
1106
+ }
1107
+ },
1108
+ validate: function (_date, value, _options) {
1109
+ return value >= 0 && value <= 6;
1110
+ },
1111
+ set: function (date, _flags, value, options) {
1112
+ date = setUTCDay(date, value, options);
1113
+ date.setUTCHours(0, 0, 0, 0);
1114
+ return date;
1115
+ },
1116
+ incompatibleTokens: ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'E', 'i', 'c', 't', 'T']
1117
+ },
1118
+ // Stand-alone local day of week
1119
+ c: {
1120
+ priority: 90,
1121
+ parse: function (string, token, match, options) {
1122
+ var valueCallback = function (value) {
1123
+ var wholeWeekDays = Math.floor((value - 1) / 7) * 7;
1124
+ return (value + options.weekStartsOn + 6) % 7 + wholeWeekDays;
1125
+ };
1126
+
1127
+ switch (token) {
1128
+ // 3
1129
+ case 'c':
1130
+ case 'cc':
1131
+ // 03
1132
+ return parseNDigits(token.length, string, valueCallback);
1133
+ // 3rd
1134
+
1135
+ case 'co':
1136
+ return match.ordinalNumber(string, {
1137
+ unit: 'day',
1138
+ valueCallback: valueCallback
1139
+ });
1140
+ // Tue
1141
+
1142
+ case 'ccc':
1143
+ return match.day(string, {
1144
+ width: 'abbreviated',
1145
+ context: 'standalone'
1146
+ }) || match.day(string, {
1147
+ width: 'short',
1148
+ context: 'standalone'
1149
+ }) || match.day(string, {
1150
+ width: 'narrow',
1151
+ context: 'standalone'
1152
+ });
1153
+ // T
1154
+
1155
+ case 'ccccc':
1156
+ return match.day(string, {
1157
+ width: 'narrow',
1158
+ context: 'standalone'
1159
+ });
1160
+ // Tu
1161
+
1162
+ case 'cccccc':
1163
+ return match.day(string, {
1164
+ width: 'short',
1165
+ context: 'standalone'
1166
+ }) || match.day(string, {
1167
+ width: 'narrow',
1168
+ context: 'standalone'
1169
+ });
1170
+ // Tuesday
1171
+
1172
+ case 'cccc':
1173
+ default:
1174
+ return match.day(string, {
1175
+ width: 'wide',
1176
+ context: 'standalone'
1177
+ }) || match.day(string, {
1178
+ width: 'abbreviated',
1179
+ context: 'standalone'
1180
+ }) || match.day(string, {
1181
+ width: 'short',
1182
+ context: 'standalone'
1183
+ }) || match.day(string, {
1184
+ width: 'narrow',
1185
+ context: 'standalone'
1186
+ });
1187
+ }
1188
+ },
1189
+ validate: function (_date, value, _options) {
1190
+ return value >= 0 && value <= 6;
1191
+ },
1192
+ set: function (date, _flags, value, options) {
1193
+ date = setUTCDay(date, value, options);
1194
+ date.setUTCHours(0, 0, 0, 0);
1195
+ return date;
1196
+ },
1197
+ incompatibleTokens: ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'E', 'i', 'e', 't', 'T']
1198
+ },
1199
+ // ISO day of week
1200
+ i: {
1201
+ priority: 90,
1202
+ parse: function (string, token, match, _options) {
1203
+ var valueCallback = function (value) {
1204
+ if (value === 0) {
1205
+ return 7;
1206
+ }
1207
+
1208
+ return value;
1209
+ };
1210
+
1211
+ switch (token) {
1212
+ // 2
1213
+ case 'i':
1214
+ case 'ii':
1215
+ // 02
1216
+ return parseNDigits(token.length, string);
1217
+ // 2nd
1218
+
1219
+ case 'io':
1220
+ return match.ordinalNumber(string, {
1221
+ unit: 'day'
1222
+ });
1223
+ // Tue
1224
+
1225
+ case 'iii':
1226
+ return match.day(string, {
1227
+ width: 'abbreviated',
1228
+ context: 'formatting',
1229
+ valueCallback: valueCallback
1230
+ }) || match.day(string, {
1231
+ width: 'short',
1232
+ context: 'formatting',
1233
+ valueCallback: valueCallback
1234
+ }) || match.day(string, {
1235
+ width: 'narrow',
1236
+ context: 'formatting',
1237
+ valueCallback: valueCallback
1238
+ });
1239
+ // T
1240
+
1241
+ case 'iiiii':
1242
+ return match.day(string, {
1243
+ width: 'narrow',
1244
+ context: 'formatting',
1245
+ valueCallback: valueCallback
1246
+ });
1247
+ // Tu
1248
+
1249
+ case 'iiiiii':
1250
+ return match.day(string, {
1251
+ width: 'short',
1252
+ context: 'formatting',
1253
+ valueCallback: valueCallback
1254
+ }) || match.day(string, {
1255
+ width: 'narrow',
1256
+ context: 'formatting',
1257
+ valueCallback: valueCallback
1258
+ });
1259
+ // Tuesday
1260
+
1261
+ case 'iiii':
1262
+ default:
1263
+ return match.day(string, {
1264
+ width: 'wide',
1265
+ context: 'formatting',
1266
+ valueCallback: valueCallback
1267
+ }) || match.day(string, {
1268
+ width: 'abbreviated',
1269
+ context: 'formatting',
1270
+ valueCallback: valueCallback
1271
+ }) || match.day(string, {
1272
+ width: 'short',
1273
+ context: 'formatting',
1274
+ valueCallback: valueCallback
1275
+ }) || match.day(string, {
1276
+ width: 'narrow',
1277
+ context: 'formatting',
1278
+ valueCallback: valueCallback
1279
+ });
1280
+ }
1281
+ },
1282
+ validate: function (_date, value, _options) {
1283
+ return value >= 1 && value <= 7;
1284
+ },
1285
+ set: function (date, _flags, value, options) {
1286
+ date = setUTCISODay(date, value, options);
1287
+ date.setUTCHours(0, 0, 0, 0);
1288
+ return date;
1289
+ },
1290
+ incompatibleTokens: ['y', 'Y', 'u', 'q', 'Q', 'M', 'L', 'w', 'd', 'D', 'E', 'e', 'c', 't', 'T']
1291
+ },
1292
+ // AM or PM
1293
+ a: {
1294
+ priority: 80,
1295
+ parse: function (string, token, match, _options) {
1296
+ switch (token) {
1297
+ case 'a':
1298
+ case 'aa':
1299
+ case 'aaa':
1300
+ return match.dayPeriod(string, {
1301
+ width: 'abbreviated',
1302
+ context: 'formatting'
1303
+ }) || match.dayPeriod(string, {
1304
+ width: 'narrow',
1305
+ context: 'formatting'
1306
+ });
1307
+
1308
+ case 'aaaaa':
1309
+ return match.dayPeriod(string, {
1310
+ width: 'narrow',
1311
+ context: 'formatting'
1312
+ });
1313
+
1314
+ case 'aaaa':
1315
+ default:
1316
+ return match.dayPeriod(string, {
1317
+ width: 'wide',
1318
+ context: 'formatting'
1319
+ }) || match.dayPeriod(string, {
1320
+ width: 'abbreviated',
1321
+ context: 'formatting'
1322
+ }) || match.dayPeriod(string, {
1323
+ width: 'narrow',
1324
+ context: 'formatting'
1325
+ });
1326
+ }
1327
+ },
1328
+ set: function (date, _flags, value, _options) {
1329
+ date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);
1330
+ return date;
1331
+ },
1332
+ incompatibleTokens: ['b', 'B', 'H', 'K', 'k', 't', 'T']
1333
+ },
1334
+ // AM, PM, midnight
1335
+ b: {
1336
+ priority: 80,
1337
+ parse: function (string, token, match, _options) {
1338
+ switch (token) {
1339
+ case 'b':
1340
+ case 'bb':
1341
+ case 'bbb':
1342
+ return match.dayPeriod(string, {
1343
+ width: 'abbreviated',
1344
+ context: 'formatting'
1345
+ }) || match.dayPeriod(string, {
1346
+ width: 'narrow',
1347
+ context: 'formatting'
1348
+ });
1349
+
1350
+ case 'bbbbb':
1351
+ return match.dayPeriod(string, {
1352
+ width: 'narrow',
1353
+ context: 'formatting'
1354
+ });
1355
+
1356
+ case 'bbbb':
1357
+ default:
1358
+ return match.dayPeriod(string, {
1359
+ width: 'wide',
1360
+ context: 'formatting'
1361
+ }) || match.dayPeriod(string, {
1362
+ width: 'abbreviated',
1363
+ context: 'formatting'
1364
+ }) || match.dayPeriod(string, {
1365
+ width: 'narrow',
1366
+ context: 'formatting'
1367
+ });
1368
+ }
1369
+ },
1370
+ set: function (date, _flags, value, _options) {
1371
+ date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);
1372
+ return date;
1373
+ },
1374
+ incompatibleTokens: ['a', 'B', 'H', 'K', 'k', 't', 'T']
1375
+ },
1376
+ // in the morning, in the afternoon, in the evening, at night
1377
+ B: {
1378
+ priority: 80,
1379
+ parse: function (string, token, match, _options) {
1380
+ switch (token) {
1381
+ case 'B':
1382
+ case 'BB':
1383
+ case 'BBB':
1384
+ return match.dayPeriod(string, {
1385
+ width: 'abbreviated',
1386
+ context: 'formatting'
1387
+ }) || match.dayPeriod(string, {
1388
+ width: 'narrow',
1389
+ context: 'formatting'
1390
+ });
1391
+
1392
+ case 'BBBBB':
1393
+ return match.dayPeriod(string, {
1394
+ width: 'narrow',
1395
+ context: 'formatting'
1396
+ });
1397
+
1398
+ case 'BBBB':
1399
+ default:
1400
+ return match.dayPeriod(string, {
1401
+ width: 'wide',
1402
+ context: 'formatting'
1403
+ }) || match.dayPeriod(string, {
1404
+ width: 'abbreviated',
1405
+ context: 'formatting'
1406
+ }) || match.dayPeriod(string, {
1407
+ width: 'narrow',
1408
+ context: 'formatting'
1409
+ });
1410
+ }
1411
+ },
1412
+ set: function (date, _flags, value, _options) {
1413
+ date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);
1414
+ return date;
1415
+ },
1416
+ incompatibleTokens: ['a', 'b', 't', 'T']
1417
+ },
1418
+ // Hour [1-12]
1419
+ h: {
1420
+ priority: 70,
1421
+ parse: function (string, token, match, _options) {
1422
+ switch (token) {
1423
+ case 'h':
1424
+ return parseNumericPattern(numericPatterns.hour12h, string);
1425
+
1426
+ case 'ho':
1427
+ return match.ordinalNumber(string, {
1428
+ unit: 'hour'
1429
+ });
1430
+
1431
+ default:
1432
+ return parseNDigits(token.length, string);
1433
+ }
1434
+ },
1435
+ validate: function (_date, value, _options) {
1436
+ return value >= 1 && value <= 12;
1437
+ },
1438
+ set: function (date, _flags, value, _options) {
1439
+ var isPM = date.getUTCHours() >= 12;
1440
+
1441
+ if (isPM && value < 12) {
1442
+ date.setUTCHours(value + 12, 0, 0, 0);
1443
+ } else if (!isPM && value === 12) {
1444
+ date.setUTCHours(0, 0, 0, 0);
1445
+ } else {
1446
+ date.setUTCHours(value, 0, 0, 0);
1447
+ }
1448
+
1449
+ return date;
1450
+ },
1451
+ incompatibleTokens: ['H', 'K', 'k', 't', 'T']
1452
+ },
1453
+ // Hour [0-23]
1454
+ H: {
1455
+ priority: 70,
1456
+ parse: function (string, token, match, _options) {
1457
+ switch (token) {
1458
+ case 'H':
1459
+ return parseNumericPattern(numericPatterns.hour23h, string);
1460
+
1461
+ case 'Ho':
1462
+ return match.ordinalNumber(string, {
1463
+ unit: 'hour'
1464
+ });
1465
+
1466
+ default:
1467
+ return parseNDigits(token.length, string);
1468
+ }
1469
+ },
1470
+ validate: function (_date, value, _options) {
1471
+ return value >= 0 && value <= 23;
1472
+ },
1473
+ set: function (date, _flags, value, _options) {
1474
+ date.setUTCHours(value, 0, 0, 0);
1475
+ return date;
1476
+ },
1477
+ incompatibleTokens: ['a', 'b', 'h', 'K', 'k', 't', 'T']
1478
+ },
1479
+ // Hour [0-11]
1480
+ K: {
1481
+ priority: 70,
1482
+ parse: function (string, token, match, _options) {
1483
+ switch (token) {
1484
+ case 'K':
1485
+ return parseNumericPattern(numericPatterns.hour11h, string);
1486
+
1487
+ case 'Ko':
1488
+ return match.ordinalNumber(string, {
1489
+ unit: 'hour'
1490
+ });
1491
+
1492
+ default:
1493
+ return parseNDigits(token.length, string);
1494
+ }
1495
+ },
1496
+ validate: function (_date, value, _options) {
1497
+ return value >= 0 && value <= 11;
1498
+ },
1499
+ set: function (date, _flags, value, _options) {
1500
+ var isPM = date.getUTCHours() >= 12;
1501
+
1502
+ if (isPM && value < 12) {
1503
+ date.setUTCHours(value + 12, 0, 0, 0);
1504
+ } else {
1505
+ date.setUTCHours(value, 0, 0, 0);
1506
+ }
1507
+
1508
+ return date;
1509
+ },
1510
+ incompatibleTokens: ['a', 'b', 'h', 'H', 'k', 't', 'T']
1511
+ },
1512
+ // Hour [1-24]
1513
+ k: {
1514
+ priority: 70,
1515
+ parse: function (string, token, match, _options) {
1516
+ switch (token) {
1517
+ case 'k':
1518
+ return parseNumericPattern(numericPatterns.hour24h, string);
1519
+
1520
+ case 'ko':
1521
+ return match.ordinalNumber(string, {
1522
+ unit: 'hour'
1523
+ });
1524
+
1525
+ default:
1526
+ return parseNDigits(token.length, string);
1527
+ }
1528
+ },
1529
+ validate: function (_date, value, _options) {
1530
+ return value >= 1 && value <= 24;
1531
+ },
1532
+ set: function (date, _flags, value, _options) {
1533
+ var hours = value <= 24 ? value % 24 : value;
1534
+ date.setUTCHours(hours, 0, 0, 0);
1535
+ return date;
1536
+ },
1537
+ incompatibleTokens: ['a', 'b', 'h', 'H', 'K', 't', 'T']
1538
+ },
1539
+ // Minute
1540
+ m: {
1541
+ priority: 60,
1542
+ parse: function (string, token, match, _options) {
1543
+ switch (token) {
1544
+ case 'm':
1545
+ return parseNumericPattern(numericPatterns.minute, string);
1546
+
1547
+ case 'mo':
1548
+ return match.ordinalNumber(string, {
1549
+ unit: 'minute'
1550
+ });
1551
+
1552
+ default:
1553
+ return parseNDigits(token.length, string);
1554
+ }
1555
+ },
1556
+ validate: function (_date, value, _options) {
1557
+ return value >= 0 && value <= 59;
1558
+ },
1559
+ set: function (date, _flags, value, _options) {
1560
+ date.setUTCMinutes(value, 0, 0);
1561
+ return date;
1562
+ },
1563
+ incompatibleTokens: ['t', 'T']
1564
+ },
1565
+ // Second
1566
+ s: {
1567
+ priority: 50,
1568
+ parse: function (string, token, match, _options) {
1569
+ switch (token) {
1570
+ case 's':
1571
+ return parseNumericPattern(numericPatterns.second, string);
1572
+
1573
+ case 'so':
1574
+ return match.ordinalNumber(string, {
1575
+ unit: 'second'
1576
+ });
1577
+
1578
+ default:
1579
+ return parseNDigits(token.length, string);
1580
+ }
1581
+ },
1582
+ validate: function (_date, value, _options) {
1583
+ return value >= 0 && value <= 59;
1584
+ },
1585
+ set: function (date, _flags, value, _options) {
1586
+ date.setUTCSeconds(value, 0);
1587
+ return date;
1588
+ },
1589
+ incompatibleTokens: ['t', 'T']
1590
+ },
1591
+ // Fraction of second
1592
+ S: {
1593
+ priority: 30,
1594
+ parse: function (string, token, _match, _options) {
1595
+ var valueCallback = function (value) {
1596
+ return Math.floor(value * Math.pow(10, -token.length + 3));
1597
+ };
1598
+
1599
+ return parseNDigits(token.length, string, valueCallback);
1600
+ },
1601
+ set: function (date, _flags, value, _options) {
1602
+ date.setUTCMilliseconds(value);
1603
+ return date;
1604
+ },
1605
+ incompatibleTokens: ['t', 'T']
1606
+ },
1607
+ // Timezone (ISO-8601. +00:00 is `'Z'`)
1608
+ X: {
1609
+ priority: 10,
1610
+ parse: function (string, token, _match, _options) {
1611
+ switch (token) {
1612
+ case 'X':
1613
+ return parseTimezonePattern(timezonePatterns.basicOptionalMinutes, string);
1614
+
1615
+ case 'XX':
1616
+ return parseTimezonePattern(timezonePatterns.basic, string);
1617
+
1618
+ case 'XXXX':
1619
+ return parseTimezonePattern(timezonePatterns.basicOptionalSeconds, string);
1620
+
1621
+ case 'XXXXX':
1622
+ return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds, string);
1623
+
1624
+ case 'XXX':
1625
+ default:
1626
+ return parseTimezonePattern(timezonePatterns.extended, string);
1627
+ }
1628
+ },
1629
+ set: function (date, flags, value, _options) {
1630
+ if (flags.timestampIsSet) {
1631
+ return date;
1632
+ }
1633
+
1634
+ return new Date(date.getTime() - value);
1635
+ },
1636
+ incompatibleTokens: ['t', 'T', 'x']
1637
+ },
1638
+ // Timezone (ISO-8601)
1639
+ x: {
1640
+ priority: 10,
1641
+ parse: function (string, token, _match, _options) {
1642
+ switch (token) {
1643
+ case 'x':
1644
+ return parseTimezonePattern(timezonePatterns.basicOptionalMinutes, string);
1645
+
1646
+ case 'xx':
1647
+ return parseTimezonePattern(timezonePatterns.basic, string);
1648
+
1649
+ case 'xxxx':
1650
+ return parseTimezonePattern(timezonePatterns.basicOptionalSeconds, string);
1651
+
1652
+ case 'xxxxx':
1653
+ return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds, string);
1654
+
1655
+ case 'xxx':
1656
+ default:
1657
+ return parseTimezonePattern(timezonePatterns.extended, string);
1658
+ }
1659
+ },
1660
+ set: function (date, flags, value, _options) {
1661
+ if (flags.timestampIsSet) {
1662
+ return date;
1663
+ }
1664
+
1665
+ return new Date(date.getTime() - value);
1666
+ },
1667
+ incompatibleTokens: ['t', 'T', 'X']
1668
+ },
1669
+ // Seconds timestamp
1670
+ t: {
1671
+ priority: 40,
1672
+ parse: function (string, _token, _match, _options) {
1673
+ return parseAnyDigitsSigned(string);
1674
+ },
1675
+ set: function (_date, _flags, value, _options) {
1676
+ return [new Date(value * 1000), {
1677
+ timestampIsSet: true
1678
+ }];
1679
+ },
1680
+ incompatibleTokens: '*'
1681
+ },
1682
+ // Milliseconds timestamp
1683
+ T: {
1684
+ priority: 20,
1685
+ parse: function (string, _token, _match, _options) {
1686
+ return parseAnyDigitsSigned(string);
1687
+ },
1688
+ set: function (_date, _flags, value, _options) {
1689
+ return [new Date(value), {
1690
+ timestampIsSet: true
1691
+ }];
1692
+ },
1693
+ incompatibleTokens: '*'
1694
+ }
1695
+ };
1696
+ const parsers$1 = parsers;
1697
+
1698
+ var TIMEZONE_UNIT_PRIORITY = 10; // This RegExp consists of three parts separated by `|`:
1699
+ // - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token
1700
+ // (one of the certain letters followed by `o`)
1701
+ // - (\w)\1* matches any sequences of the same letter
1702
+ // - '' matches two quote characters in a row
1703
+ // - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('),
1704
+ // except a single quote symbol, which ends the sequence.
1705
+ // Two quote characters do not end the sequence.
1706
+ // If there is no matching single quote
1707
+ // then the sequence will continue until the end of the string.
1708
+ // - . matches any single character unmatched by previous parts of the RegExps
1709
+
1710
+ var formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g; // This RegExp catches symbols escaped by quotes, and also
1711
+ // sequences of symbols P, p, and the combinations like `PPPPPPPppppp`
1712
+
1713
+ var longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;
1714
+ var escapedStringRegExp = /^'([^]*?)'?$/;
1715
+ var doubleQuoteRegExp = /''/g;
1716
+ var notWhitespaceRegExp = /\S/;
1717
+ var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
1718
+ /**
1719
+ * @name parse
1720
+ * @category Common Helpers
1721
+ * @summary Parse the date.
1722
+ *
1723
+ * @description
1724
+ * Return the date parsed from string using the given format string.
1725
+ *
1726
+ * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries.
1727
+ * > See: https://git.io/fxCyr
1728
+ *
1729
+ * The characters in the format string wrapped between two single quotes characters (') are escaped.
1730
+ * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.
1731
+ *
1732
+ * Format of the format string is based on Unicode Technical Standard #35:
1733
+ * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
1734
+ * with a few additions (see note 5 below the table).
1735
+ *
1736
+ * Not all tokens are compatible. Combinations that don't make sense or could lead to bugs are prohibited
1737
+ * and will throw `RangeError`. For example usage of 24-hour format token with AM/PM token will throw an exception:
1738
+ *
1739
+ * ```javascript
1740
+ * parse('23 AM', 'HH a', new Date())
1741
+ * //=> RangeError: The format string mustn't contain `HH` and `a` at the same time
1742
+ * ```
1743
+ *
1744
+ * See the compatibility table: https://docs.google.com/spreadsheets/d/e/2PACX-1vQOPU3xUhplll6dyoMmVUXHKl_8CRDs6_ueLmex3SoqwhuolkuN3O05l4rqx5h1dKX8eb46Ul-CCSrq/pubhtml?gid=0&single=true
1745
+ *
1746
+ * Accepted format string patterns:
1747
+ * | Unit |Prior| Pattern | Result examples | Notes |
1748
+ * |---------------------------------|-----|---------|-----------------------------------|-------|
1749
+ * | Era | 140 | G..GGG | AD, BC | |
1750
+ * | | | GGGG | Anno Domini, Before Christ | 2 |
1751
+ * | | | GGGGG | A, B | |
1752
+ * | Calendar year | 130 | y | 44, 1, 1900, 2017, 9999 | 4 |
1753
+ * | | | yo | 44th, 1st, 1900th, 9999999th | 4,5 |
1754
+ * | | | yy | 44, 01, 00, 17 | 4 |
1755
+ * | | | yyy | 044, 001, 123, 999 | 4 |
1756
+ * | | | yyyy | 0044, 0001, 1900, 2017 | 4 |
1757
+ * | | | yyyyy | ... | 2,4 |
1758
+ * | Local week-numbering year | 130 | Y | 44, 1, 1900, 2017, 9000 | 4 |
1759
+ * | | | Yo | 44th, 1st, 1900th, 9999999th | 4,5 |
1760
+ * | | | YY | 44, 01, 00, 17 | 4,6 |
1761
+ * | | | YYY | 044, 001, 123, 999 | 4 |
1762
+ * | | | YYYY | 0044, 0001, 1900, 2017 | 4,6 |
1763
+ * | | | YYYYY | ... | 2,4 |
1764
+ * | ISO week-numbering year | 130 | R | -43, 1, 1900, 2017, 9999, -9999 | 4,5 |
1765
+ * | | | RR | -43, 01, 00, 17 | 4,5 |
1766
+ * | | | RRR | -043, 001, 123, 999, -999 | 4,5 |
1767
+ * | | | RRRR | -0043, 0001, 2017, 9999, -9999 | 4,5 |
1768
+ * | | | RRRRR | ... | 2,4,5 |
1769
+ * | Extended year | 130 | u | -43, 1, 1900, 2017, 9999, -999 | 4 |
1770
+ * | | | uu | -43, 01, 99, -99 | 4 |
1771
+ * | | | uuu | -043, 001, 123, 999, -999 | 4 |
1772
+ * | | | uuuu | -0043, 0001, 2017, 9999, -9999 | 4 |
1773
+ * | | | uuuuu | ... | 2,4 |
1774
+ * | Quarter (formatting) | 120 | Q | 1, 2, 3, 4 | |
1775
+ * | | | Qo | 1st, 2nd, 3rd, 4th | 5 |
1776
+ * | | | QQ | 01, 02, 03, 04 | |
1777
+ * | | | QQQ | Q1, Q2, Q3, Q4 | |
1778
+ * | | | QQQQ | 1st quarter, 2nd quarter, ... | 2 |
1779
+ * | | | QQQQQ | 1, 2, 3, 4 | 4 |
1780
+ * | Quarter (stand-alone) | 120 | q | 1, 2, 3, 4 | |
1781
+ * | | | qo | 1st, 2nd, 3rd, 4th | 5 |
1782
+ * | | | qq | 01, 02, 03, 04 | |
1783
+ * | | | qqq | Q1, Q2, Q3, Q4 | |
1784
+ * | | | qqqq | 1st quarter, 2nd quarter, ... | 2 |
1785
+ * | | | qqqqq | 1, 2, 3, 4 | 3 |
1786
+ * | Month (formatting) | 110 | M | 1, 2, ..., 12 | |
1787
+ * | | | Mo | 1st, 2nd, ..., 12th | 5 |
1788
+ * | | | MM | 01, 02, ..., 12 | |
1789
+ * | | | MMM | Jan, Feb, ..., Dec | |
1790
+ * | | | MMMM | January, February, ..., December | 2 |
1791
+ * | | | MMMMM | J, F, ..., D | |
1792
+ * | Month (stand-alone) | 110 | L | 1, 2, ..., 12 | |
1793
+ * | | | Lo | 1st, 2nd, ..., 12th | 5 |
1794
+ * | | | LL | 01, 02, ..., 12 | |
1795
+ * | | | LLL | Jan, Feb, ..., Dec | |
1796
+ * | | | LLLL | January, February, ..., December | 2 |
1797
+ * | | | LLLLL | J, F, ..., D | |
1798
+ * | Local week of year | 100 | w | 1, 2, ..., 53 | |
1799
+ * | | | wo | 1st, 2nd, ..., 53th | 5 |
1800
+ * | | | ww | 01, 02, ..., 53 | |
1801
+ * | ISO week of year | 100 | I | 1, 2, ..., 53 | 5 |
1802
+ * | | | Io | 1st, 2nd, ..., 53th | 5 |
1803
+ * | | | II | 01, 02, ..., 53 | 5 |
1804
+ * | Day of month | 90 | d | 1, 2, ..., 31 | |
1805
+ * | | | do | 1st, 2nd, ..., 31st | 5 |
1806
+ * | | | dd | 01, 02, ..., 31 | |
1807
+ * | Day of year | 90 | D | 1, 2, ..., 365, 366 | 7 |
1808
+ * | | | Do | 1st, 2nd, ..., 365th, 366th | 5 |
1809
+ * | | | DD | 01, 02, ..., 365, 366 | 7 |
1810
+ * | | | DDD | 001, 002, ..., 365, 366 | |
1811
+ * | | | DDDD | ... | 2 |
1812
+ * | Day of week (formatting) | 90 | E..EEE | Mon, Tue, Wed, ..., Sun | |
1813
+ * | | | EEEE | Monday, Tuesday, ..., Sunday | 2 |
1814
+ * | | | EEEEE | M, T, W, T, F, S, S | |
1815
+ * | | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | |
1816
+ * | ISO day of week (formatting) | 90 | i | 1, 2, 3, ..., 7 | 5 |
1817
+ * | | | io | 1st, 2nd, ..., 7th | 5 |
1818
+ * | | | ii | 01, 02, ..., 07 | 5 |
1819
+ * | | | iii | Mon, Tue, Wed, ..., Sun | 5 |
1820
+ * | | | iiii | Monday, Tuesday, ..., Sunday | 2,5 |
1821
+ * | | | iiiii | M, T, W, T, F, S, S | 5 |
1822
+ * | | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 5 |
1823
+ * | Local day of week (formatting) | 90 | e | 2, 3, 4, ..., 1 | |
1824
+ * | | | eo | 2nd, 3rd, ..., 1st | 5 |
1825
+ * | | | ee | 02, 03, ..., 01 | |
1826
+ * | | | eee | Mon, Tue, Wed, ..., Sun | |
1827
+ * | | | eeee | Monday, Tuesday, ..., Sunday | 2 |
1828
+ * | | | eeeee | M, T, W, T, F, S, S | |
1829
+ * | | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | |
1830
+ * | Local day of week (stand-alone) | 90 | c | 2, 3, 4, ..., 1 | |
1831
+ * | | | co | 2nd, 3rd, ..., 1st | 5 |
1832
+ * | | | cc | 02, 03, ..., 01 | |
1833
+ * | | | ccc | Mon, Tue, Wed, ..., Sun | |
1834
+ * | | | cccc | Monday, Tuesday, ..., Sunday | 2 |
1835
+ * | | | ccccc | M, T, W, T, F, S, S | |
1836
+ * | | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | |
1837
+ * | AM, PM | 80 | a..aaa | AM, PM | |
1838
+ * | | | aaaa | a.m., p.m. | 2 |
1839
+ * | | | aaaaa | a, p | |
1840
+ * | AM, PM, noon, midnight | 80 | b..bbb | AM, PM, noon, midnight | |
1841
+ * | | | bbbb | a.m., p.m., noon, midnight | 2 |
1842
+ * | | | bbbbb | a, p, n, mi | |
1843
+ * | Flexible day period | 80 | B..BBB | at night, in the morning, ... | |
1844
+ * | | | BBBB | at night, in the morning, ... | 2 |
1845
+ * | | | BBBBB | at night, in the morning, ... | |
1846
+ * | Hour [1-12] | 70 | h | 1, 2, ..., 11, 12 | |
1847
+ * | | | ho | 1st, 2nd, ..., 11th, 12th | 5 |
1848
+ * | | | hh | 01, 02, ..., 11, 12 | |
1849
+ * | Hour [0-23] | 70 | H | 0, 1, 2, ..., 23 | |
1850
+ * | | | Ho | 0th, 1st, 2nd, ..., 23rd | 5 |
1851
+ * | | | HH | 00, 01, 02, ..., 23 | |
1852
+ * | Hour [0-11] | 70 | K | 1, 2, ..., 11, 0 | |
1853
+ * | | | Ko | 1st, 2nd, ..., 11th, 0th | 5 |
1854
+ * | | | KK | 01, 02, ..., 11, 00 | |
1855
+ * | Hour [1-24] | 70 | k | 24, 1, 2, ..., 23 | |
1856
+ * | | | ko | 24th, 1st, 2nd, ..., 23rd | 5 |
1857
+ * | | | kk | 24, 01, 02, ..., 23 | |
1858
+ * | Minute | 60 | m | 0, 1, ..., 59 | |
1859
+ * | | | mo | 0th, 1st, ..., 59th | 5 |
1860
+ * | | | mm | 00, 01, ..., 59 | |
1861
+ * | Second | 50 | s | 0, 1, ..., 59 | |
1862
+ * | | | so | 0th, 1st, ..., 59th | 5 |
1863
+ * | | | ss | 00, 01, ..., 59 | |
1864
+ * | Seconds timestamp | 40 | t | 512969520 | |
1865
+ * | | | tt | ... | 2 |
1866
+ * | Fraction of second | 30 | S | 0, 1, ..., 9 | |
1867
+ * | | | SS | 00, 01, ..., 99 | |
1868
+ * | | | SSS | 000, 0001, ..., 999 | |
1869
+ * | | | SSSS | ... | 2 |
1870
+ * | Milliseconds timestamp | 20 | T | 512969520900 | |
1871
+ * | | | TT | ... | 2 |
1872
+ * | Timezone (ISO-8601 w/ Z) | 10 | X | -08, +0530, Z | |
1873
+ * | | | XX | -0800, +0530, Z | |
1874
+ * | | | XXX | -08:00, +05:30, Z | |
1875
+ * | | | XXXX | -0800, +0530, Z, +123456 | 2 |
1876
+ * | | | XXXXX | -08:00, +05:30, Z, +12:34:56 | |
1877
+ * | Timezone (ISO-8601 w/o Z) | 10 | x | -08, +0530, +00 | |
1878
+ * | | | xx | -0800, +0530, +0000 | |
1879
+ * | | | xxx | -08:00, +05:30, +00:00 | 2 |
1880
+ * | | | xxxx | -0800, +0530, +0000, +123456 | |
1881
+ * | | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | |
1882
+ * | Long localized date | NA | P | 05/29/1453 | 5,8 |
1883
+ * | | | PP | May 29, 1453 | |
1884
+ * | | | PPP | May 29th, 1453 | |
1885
+ * | | | PPPP | Sunday, May 29th, 1453 | 2,5,8 |
1886
+ * | Long localized time | NA | p | 12:00 AM | 5,8 |
1887
+ * | | | pp | 12:00:00 AM | |
1888
+ * | Combination of date and time | NA | Pp | 05/29/1453, 12:00 AM | |
1889
+ * | | | PPpp | May 29, 1453, 12:00:00 AM | |
1890
+ * | | | PPPpp | May 29th, 1453 at ... | |
1891
+ * | | | PPPPpp | Sunday, May 29th, 1453 at ... | 2,5,8 |
1892
+ * Notes:
1893
+ * 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale
1894
+ * are the same as "stand-alone" units, but are different in some languages.
1895
+ * "Formatting" units are declined according to the rules of the language
1896
+ * in the context of a date. "Stand-alone" units are always nominative singular.
1897
+ * In `format` function, they will produce different result:
1898
+ *
1899
+ * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'`
1900
+ *
1901
+ * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'`
1902
+ *
1903
+ * `parse` will try to match both formatting and stand-alone units interchangably.
1904
+ *
1905
+ * 2. Any sequence of the identical letters is a pattern, unless it is escaped by
1906
+ * the single quote characters (see below).
1907
+ * If the sequence is longer than listed in table:
1908
+ * - for numerical units (`yyyyyyyy`) `parse` will try to match a number
1909
+ * as wide as the sequence
1910
+ * - for text units (`MMMMMMMM`) `parse` will try to match the widest variation of the unit.
1911
+ * These variations are marked with "2" in the last column of the table.
1912
+ *
1913
+ * 3. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales.
1914
+ * These tokens represent the shortest form of the quarter.
1915
+ *
1916
+ * 4. The main difference between `y` and `u` patterns are B.C. years:
1917
+ *
1918
+ * | Year | `y` | `u` |
1919
+ * |------|-----|-----|
1920
+ * | AC 1 | 1 | 1 |
1921
+ * | BC 1 | 1 | 0 |
1922
+ * | BC 2 | 2 | -1 |
1923
+ *
1924
+ * Also `yy` will try to guess the century of two digit year by proximity with `referenceDate`:
1925
+ *
1926
+ * `parse('50', 'yy', new Date(2018, 0, 1)) //=> Sat Jan 01 2050 00:00:00`
1927
+ *
1928
+ * `parse('75', 'yy', new Date(2018, 0, 1)) //=> Wed Jan 01 1975 00:00:00`
1929
+ *
1930
+ * while `uu` will just assign the year as is:
1931
+ *
1932
+ * `parse('50', 'uu', new Date(2018, 0, 1)) //=> Sat Jan 01 0050 00:00:00`
1933
+ *
1934
+ * `parse('75', 'uu', new Date(2018, 0, 1)) //=> Tue Jan 01 0075 00:00:00`
1935
+ *
1936
+ * The same difference is true for local and ISO week-numbering years (`Y` and `R`),
1937
+ * except local week-numbering years are dependent on `options.weekStartsOn`
1938
+ * and `options.firstWeekContainsDate` (compare [setISOWeekYear]{@link https://date-fns.org/docs/setISOWeekYear}
1939
+ * and [setWeekYear]{@link https://date-fns.org/docs/setWeekYear}).
1940
+ *
1941
+ * 5. These patterns are not in the Unicode Technical Standard #35:
1942
+ * - `i`: ISO day of week
1943
+ * - `I`: ISO week of year
1944
+ * - `R`: ISO week-numbering year
1945
+ * - `o`: ordinal number modifier
1946
+ * - `P`: long localized date
1947
+ * - `p`: long localized time
1948
+ *
1949
+ * 6. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.
1950
+ * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://git.io/fxCyr
1951
+ *
1952
+ * 7. `D` and `DD` tokens represent days of the year but they are ofthen confused with days of the month.
1953
+ * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://git.io/fxCyr
1954
+ *
1955
+ * 8. `P+` tokens do not have a defined priority since they are merely aliases to other tokens based
1956
+ * on the given locale.
1957
+ *
1958
+ * using `en-US` locale: `P` => `MM/dd/yyyy`
1959
+ * using `en-US` locale: `p` => `hh:mm a`
1960
+ * using `pt-BR` locale: `P` => `dd/MM/yyyy`
1961
+ * using `pt-BR` locale: `p` => `HH:mm`
1962
+ *
1963
+ * Values will be assigned to the date in the descending order of its unit's priority.
1964
+ * Units of an equal priority overwrite each other in the order of appearance.
1965
+ *
1966
+ * If no values of higher priority are parsed (e.g. when parsing string 'January 1st' without a year),
1967
+ * the values will be taken from 3rd argument `referenceDate` which works as a context of parsing.
1968
+ *
1969
+ * `referenceDate` must be passed for correct work of the function.
1970
+ * If you're not sure which `referenceDate` to supply, create a new instance of Date:
1971
+ * `parse('02/11/2014', 'MM/dd/yyyy', new Date())`
1972
+ * In this case parsing will be done in the context of the current date.
1973
+ * If `referenceDate` is `Invalid Date` or a value not convertible to valid `Date`,
1974
+ * then `Invalid Date` will be returned.
1975
+ *
1976
+ * The result may vary by locale.
1977
+ *
1978
+ * If `formatString` matches with `dateString` but does not provides tokens, `referenceDate` will be returned.
1979
+ *
1980
+ * If parsing failed, `Invalid Date` will be returned.
1981
+ * Invalid Date is a Date, whose time value is NaN.
1982
+ * Time value of Date: http://es5.github.io/#x15.9.1.1
1983
+ *
1984
+ * ### v2.0.0 breaking changes:
1985
+ *
1986
+ * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
1987
+ *
1988
+ * - Old `parse` was renamed to `toDate`.
1989
+ * Now `parse` is a new function which parses a string using a provided format.
1990
+ *
1991
+ * ```javascript
1992
+ * // Before v2.0.0
1993
+ * parse('2016-01-01')
1994
+ *
1995
+ * // v2.0.0 onward (toDate no longer accepts a string)
1996
+ * toDate(1392098430000) // Unix to timestamp
1997
+ * toDate(new Date(2014, 1, 11, 11, 30, 30)) // Cloning the date
1998
+ * parse('2016-01-01', 'yyyy-MM-dd', new Date())
1999
+ * ```
2000
+ *
2001
+ * @param {String} dateString - the string to parse
2002
+ * @param {String} formatString - the string of tokens
2003
+ * @param {Date|Number} referenceDate - defines values missing from the parsed dateString
2004
+ * @param {Object} [options] - an object with options.
2005
+ * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}
2006
+ * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)
2007
+ * @param {1|2|3|4|5|6|7} [options.firstWeekContainsDate=1] - the day of January, which is always in the first week of the year
2008
+ * @param {Boolean} [options.useAdditionalWeekYearTokens=false] - if true, allows usage of the week-numbering year tokens `YY` and `YYYY`;
2009
+ * see: https://git.io/fxCyr
2010
+ * @param {Boolean} [options.useAdditionalDayOfYearTokens=false] - if true, allows usage of the day of year tokens `D` and `DD`;
2011
+ * see: https://git.io/fxCyr
2012
+ * @returns {Date} the parsed date
2013
+ * @throws {TypeError} 3 arguments required
2014
+ * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6
2015
+ * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7
2016
+ * @throws {RangeError} `options.locale` must contain `match` property
2017
+ * @throws {RangeError} use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://git.io/fxCyr
2018
+ * @throws {RangeError} use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://git.io/fxCyr
2019
+ * @throws {RangeError} use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://git.io/fxCyr
2020
+ * @throws {RangeError} use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://git.io/fxCyr
2021
+ * @throws {RangeError} format string contains an unescaped latin alphabet character
2022
+ *
2023
+ * @example
2024
+ * // Parse 11 February 2014 from middle-endian format:
2025
+ * var result = parse('02/11/2014', 'MM/dd/yyyy', new Date())
2026
+ * //=> Tue Feb 11 2014 00:00:00
2027
+ *
2028
+ * @example
2029
+ * // Parse 28th of February in Esperanto locale in the context of 2010 year:
2030
+ * import eo from 'date-fns/locale/eo'
2031
+ * var result = parse('28-a de februaro', "do 'de' MMMM", new Date(2010, 0, 1), {
2032
+ * locale: eo
2033
+ * })
2034
+ * //=> Sun Feb 28 2010 00:00:00
2035
+ */
2036
+
2037
+ function parse(dirtyDateString, dirtyFormatString, dirtyReferenceDate, dirtyOptions) {
2038
+ requiredArgs(3, arguments);
2039
+ var dateString = String(dirtyDateString);
2040
+ var formatString = String(dirtyFormatString);
2041
+ var options = dirtyOptions || {};
2042
+ var locale = options.locale || defaultLocale;
2043
+
2044
+ if (!locale.match) {
2045
+ throw new RangeError('locale must contain match property');
2046
+ }
2047
+
2048
+ var localeFirstWeekContainsDate = locale.options && locale.options.firstWeekContainsDate;
2049
+ var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : toInteger(localeFirstWeekContainsDate);
2050
+ var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : toInteger(options.firstWeekContainsDate); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN
2051
+
2052
+ if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
2053
+ throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');
2054
+ }
2055
+
2056
+ var localeWeekStartsOn = locale.options && locale.options.weekStartsOn;
2057
+ var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : toInteger(localeWeekStartsOn);
2058
+ var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : toInteger(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
2059
+
2060
+ if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
2061
+ throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
2062
+ }
2063
+
2064
+ if (formatString === '') {
2065
+ if (dateString === '') {
2066
+ return toDate(dirtyReferenceDate);
2067
+ } else {
2068
+ return new Date(NaN);
2069
+ }
2070
+ }
2071
+
2072
+ var subFnOptions = {
2073
+ firstWeekContainsDate: firstWeekContainsDate,
2074
+ weekStartsOn: weekStartsOn,
2075
+ locale: locale
2076
+ }; // If timezone isn't specified, it will be set to the system timezone
2077
+
2078
+ var setters = [{
2079
+ priority: TIMEZONE_UNIT_PRIORITY,
2080
+ subPriority: -1,
2081
+ set: dateToSystemTimezone,
2082
+ index: 0
2083
+ }];
2084
+ var i;
2085
+ var tokens = formatString.match(longFormattingTokensRegExp).map(function (substring) {
2086
+ var firstCharacter = substring[0];
2087
+
2088
+ if (firstCharacter === 'p' || firstCharacter === 'P') {
2089
+ var longFormatter = longFormatters[firstCharacter];
2090
+ return longFormatter(substring, locale.formatLong, subFnOptions);
2091
+ }
2092
+
2093
+ return substring;
2094
+ }).join('').match(formattingTokensRegExp);
2095
+ var usedTokens = [];
2096
+
2097
+ for (i = 0; i < tokens.length; i++) {
2098
+ var token = tokens[i];
2099
+
2100
+ if (!options.useAdditionalWeekYearTokens && isProtectedWeekYearToken(token)) {
2101
+ throwProtectedError(token, formatString, dirtyDateString);
2102
+ }
2103
+
2104
+ if (!options.useAdditionalDayOfYearTokens && isProtectedDayOfYearToken(token)) {
2105
+ throwProtectedError(token, formatString, dirtyDateString);
2106
+ }
2107
+
2108
+ var firstCharacter = token[0];
2109
+ var parser = parsers$1[firstCharacter];
2110
+
2111
+ if (parser) {
2112
+ var incompatibleTokens = parser.incompatibleTokens;
2113
+
2114
+ if (Array.isArray(incompatibleTokens)) {
2115
+ var incompatibleToken = void 0;
2116
+
2117
+ for (var _i = 0; _i < usedTokens.length; _i++) {
2118
+ var usedToken = usedTokens[_i].token;
2119
+
2120
+ if (incompatibleTokens.indexOf(usedToken) !== -1 || usedToken === firstCharacter) {
2121
+ incompatibleToken = usedTokens[_i];
2122
+ break;
2123
+ }
2124
+ }
2125
+
2126
+ if (incompatibleToken) {
2127
+ throw new RangeError("The format string mustn't contain `".concat(incompatibleToken.fullToken, "` and `").concat(token, "` at the same time"));
2128
+ }
2129
+ } else if (parser.incompatibleTokens === '*' && usedTokens.length) {
2130
+ throw new RangeError("The format string mustn't contain `".concat(token, "` and any other token at the same time"));
2131
+ }
2132
+
2133
+ usedTokens.push({
2134
+ token: firstCharacter,
2135
+ fullToken: token
2136
+ });
2137
+ var parseResult = parser.parse(dateString, token, locale.match, subFnOptions);
2138
+
2139
+ if (!parseResult) {
2140
+ return new Date(NaN);
2141
+ }
2142
+
2143
+ setters.push({
2144
+ priority: parser.priority,
2145
+ subPriority: parser.subPriority || 0,
2146
+ set: parser.set,
2147
+ validate: parser.validate,
2148
+ value: parseResult.value,
2149
+ index: setters.length
2150
+ });
2151
+ dateString = parseResult.rest;
2152
+ } else {
2153
+ if (firstCharacter.match(unescapedLatinCharacterRegExp)) {
2154
+ throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`');
2155
+ } // Replace two single quote characters with one single quote character
2156
+
2157
+
2158
+ if (token === "''") {
2159
+ token = "'";
2160
+ } else if (firstCharacter === "'") {
2161
+ token = cleanEscapedString(token);
2162
+ } // Cut token from string, or, if string doesn't match the token, return Invalid Date
2163
+
2164
+
2165
+ if (dateString.indexOf(token) === 0) {
2166
+ dateString = dateString.slice(token.length);
2167
+ } else {
2168
+ return new Date(NaN);
2169
+ }
2170
+ }
2171
+ } // Check if the remaining input contains something other than whitespace
2172
+
2173
+
2174
+ if (dateString.length > 0 && notWhitespaceRegExp.test(dateString)) {
2175
+ return new Date(NaN);
2176
+ }
2177
+
2178
+ var uniquePrioritySetters = setters.map(function (setter) {
2179
+ return setter.priority;
2180
+ }).sort(function (a, b) {
2181
+ return b - a;
2182
+ }).filter(function (priority, index, array) {
2183
+ return array.indexOf(priority) === index;
2184
+ }).map(function (priority) {
2185
+ return setters.filter(function (setter) {
2186
+ return setter.priority === priority;
2187
+ }).sort(function (a, b) {
2188
+ return b.subPriority - a.subPriority;
2189
+ });
2190
+ }).map(function (setterArray) {
2191
+ return setterArray[0];
2192
+ });
2193
+ var date = toDate(dirtyReferenceDate);
2194
+
2195
+ if (isNaN(date)) {
2196
+ return new Date(NaN);
2197
+ } // Convert the date in system timezone to the same date in UTC+00:00 timezone.
2198
+ // This ensures that when UTC functions will be implemented, locales will be compatible with them.
2199
+ // See an issue about UTC functions: https://github.com/date-fns/date-fns/issues/37
2200
+
2201
+
2202
+ var utcDate = subMilliseconds(date, getTimezoneOffsetInMilliseconds(date));
2203
+ var flags = {};
2204
+
2205
+ for (i = 0; i < uniquePrioritySetters.length; i++) {
2206
+ var setter = uniquePrioritySetters[i];
2207
+
2208
+ if (setter.validate && !setter.validate(utcDate, setter.value, subFnOptions)) {
2209
+ return new Date(NaN);
2210
+ }
2211
+
2212
+ var result = setter.set(utcDate, flags, setter.value, subFnOptions); // Result is tuple (date, flags)
2213
+
2214
+ if (result[0]) {
2215
+ utcDate = result[0];
2216
+ assign(flags, result[1]); // Result is date
2217
+ } else {
2218
+ utcDate = result;
2219
+ }
2220
+ }
2221
+
2222
+ return utcDate;
2223
+ }
2224
+
2225
+ function dateToSystemTimezone(date, flags) {
2226
+ if (flags.timestampIsSet) {
2227
+ return date;
2228
+ }
2229
+
2230
+ var convertedDate = new Date(0);
2231
+ convertedDate.setFullYear(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate());
2232
+ convertedDate.setHours(date.getUTCHours(), date.getUTCMinutes(), date.getUTCSeconds(), date.getUTCMilliseconds());
2233
+ return convertedDate;
2234
+ }
2235
+
2236
+ function cleanEscapedString(input) {
2237
+ return input.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp, "'");
2238
+ }
2239
+
2240
+ const calendarCss = ".digi--util--fs--xs.sc-digi-calendar{font-size:var(--digi--global--typography--font-size--small) !important}.digi--util--fs--s.sc-digi-calendar{font-size:calc(var(--digi--global--typography--font-size--small) + 1px) !important}.digi--util--fs--m.sc-digi-calendar{font-size:var(--digi--global--typography--font-size--base) !important}.digi--util--fs--l.sc-digi-calendar{font-size:var(--digi--global--typography--font-size--large) !important}.digi--util--fw--sb.sc-digi-calendar{font-weight:var(--digi--global--typography--font-weight--semibold) !important}.digi--util--pt--1.sc-digi-calendar{padding-top:var(--digi--global--spacing--smallest-2) !important}.digi--util--pt--10.sc-digi-calendar{padding-top:var(--digi--global--spacing--smallest) !important}.digi--util--pt--20.sc-digi-calendar{padding-top:var(--digi--global--spacing--base) !important}.digi--util--pt--30.sc-digi-calendar{padding-top:var(--digi--global--spacing--largest-2) !important}.digi--util--pt--40.sc-digi-calendar{padding-top:var(--digi--global--spacing--largest-4) !important}.digi--util--pt--50.sc-digi-calendar{padding-top:2.5rem !important}.digi--util--pt--60.sc-digi-calendar{padding-top:var(--digi--global--spacing--largest-5) !important}.digi--util--pt--70.sc-digi-calendar{padding-top:var(--digi--global--spacing--largest-6) !important}.digi--util--pt--80.sc-digi-calendar{padding-top:4.5rem !important}.digi--util--pt--90.sc-digi-calendar{padding-top:5rem !important}.digi--util--pb--1.sc-digi-calendar{padding-bottom:var(--digi--global--spacing--smallest-2) !important}.digi--util--pb--10.sc-digi-calendar{padding-bottom:var(--digi--global--spacing--smallest) !important}.digi--util--pb--20.sc-digi-calendar{padding-bottom:var(--digi--global--spacing--base) !important}.digi--util--pb--30.sc-digi-calendar{padding-bottom:var(--digi--global--spacing--largest-2) !important}.digi--util--pb--40.sc-digi-calendar{padding-bottom:var(--digi--global--spacing--largest-4) !important}.digi--util--pb--50.sc-digi-calendar{padding-bottom:2.5rem !important}.digi--util--pb--60.sc-digi-calendar{padding-bottom:var(--digi--global--spacing--largest-5) !important}.digi--util--pb--70.sc-digi-calendar{padding-bottom:var(--digi--global--spacing--largest-6) !important}.digi--util--pb--80.sc-digi-calendar{padding-bottom:4.5rem !important}.digi--util--pb--90.sc-digi-calendar{padding-bottom:5rem !important}.digi--util--p--1.sc-digi-calendar{padding:var(--digi--global--spacing--smallest-2) !important}.digi--util--p--10.sc-digi-calendar{padding:var(--digi--global--spacing--smallest) !important}.digi--util--p--20.sc-digi-calendar{padding:var(--digi--global--spacing--base) !important}.digi--util--p--30.sc-digi-calendar{padding:var(--digi--global--spacing--largest-2) !important}.digi--util--p--40.sc-digi-calendar{padding:var(--digi--global--spacing--largest-4) !important}.digi--util--p--50.sc-digi-calendar{padding:2.5rem !important}.digi--util--p--60.sc-digi-calendar{padding:var(--digi--global--spacing--largest-5) !important}.digi--util--p--70.sc-digi-calendar{padding:var(--digi--global--spacing--largest-6) !important}.digi--util--p--80.sc-digi-calendar{padding:4.5rem !important}.digi--util--p--90.sc-digi-calendar{padding:5rem !important}.digi--util--ptb--1.sc-digi-calendar{padding-top:var(--digi--global--spacing--smallest-2) !important;padding-bottom:var(--digi--global--spacing--smallest-2) !important}.digi--util--ptb--10.sc-digi-calendar{padding-top:var(--digi--global--spacing--smallest) !important;padding-bottom:var(--digi--global--spacing--smallest) !important}.digi--util--ptb--20.sc-digi-calendar{padding-top:var(--digi--global--spacing--base) !important;padding-bottom:var(--digi--global--spacing--base) !important}.digi--util--ptb--30.sc-digi-calendar{padding-top:var(--digi--global--spacing--largest-2) !important;padding-bottom:var(--digi--global--spacing--largest-2) !important}.digi--util--ptb--40.sc-digi-calendar{padding-top:var(--digi--global--spacing--largest-4) !important;padding-bottom:var(--digi--global--spacing--largest-4) !important}.digi--util--ptb--50.sc-digi-calendar{padding-top:2.5rem !important;padding-bottom:2.5rem !important}.digi--util--ptb--60.sc-digi-calendar{padding-top:var(--digi--global--spacing--largest-5) !important;padding-bottom:var(--digi--global--spacing--largest-5) !important}.digi--util--ptb--70.sc-digi-calendar{padding-top:var(--digi--global--spacing--largest-6) !important;padding-bottom:var(--digi--global--spacing--largest-6) !important}.digi--util--ptb--80.sc-digi-calendar{padding-top:4.5rem !important;padding-bottom:4.5rem !important}.digi--util--ptb--90.sc-digi-calendar{padding-top:5rem !important;padding-bottom:5rem !important}.digi--util--plr--1.sc-digi-calendar{padding-left:var(--digi--global--spacing--smallest-2) !important;padding-right:var(--digi--global--spacing--smallest-2) !important}.digi--util--plr--10.sc-digi-calendar{padding-left:var(--digi--global--spacing--smallest) !important;padding-right:var(--digi--global--spacing--smallest) !important}.digi--util--plr--20.sc-digi-calendar{padding-left:var(--digi--global--spacing--base) !important;padding-right:var(--digi--global--spacing--base) !important}.digi--util--plr--30.sc-digi-calendar{padding-left:var(--digi--global--spacing--largest-2) !important;padding-right:var(--digi--global--spacing--largest-2) !important}.digi--util--plr--40.sc-digi-calendar{padding-left:var(--digi--global--spacing--largest-4) !important;padding-right:var(--digi--global--spacing--largest-4) !important}.digi--util--plr--50.sc-digi-calendar{padding-left:2.5rem !important;padding-right:2.5rem !important}.digi--util--plr--60.sc-digi-calendar{padding-left:var(--digi--global--spacing--largest-5) !important;padding-right:var(--digi--global--spacing--largest-5) !important}.digi--util--plr--70.sc-digi-calendar{padding-left:var(--digi--global--spacing--largest-6) !important;padding-right:var(--digi--global--spacing--largest-6) !important}.digi--util--plr--80.sc-digi-calendar{padding-left:4.5rem !important;padding-right:4.5rem !important}.digi--util--plr--90.sc-digi-calendar{padding-left:5rem !important;padding-right:5rem !important}.digi--util--sr-only.sc-digi-calendar{border:0;clip:rect(1px, 1px, 1px, 1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.digi--util--hidden.sc-digi-calendar{display:none}.sc-digi-calendar-h{--digi--calendar--display:inline-block;--digi--calendar--header--font-family:var(--digi--global--typography--font-family--default);--digi--calendar--header--font-weight:var(--digi--global--typography--font-weight--semibold);--digi--calendar--header--display:flex;--digi--calendar--header--align-items:center;--digi--calendar--header--justify-content:space-between;--digi--calendar--header--text-align:center;--digi--calendar--header--button--padding:var(--digi--gutter--medium) var(--digi--gutter--largest);--digi--calendar--header--button--background:transparent;--digi--calendar--header--button--box-shadow:none;--digi--calendar--header--button--background--hover:var(--digi--global--color--cta--blue--dark);--digi--calendar--table--border-spacing:0;--digi--calendar--table--border-collapse:collapse;--digi--calendar--table--font-family:var(--digi--global--typography--font-family--default);--digi--calendar--table--font-weight:var(--digi--global--typography--font-weight--semibold);--digi--calendar--table-header--padding:var(--digi--gutter--larger) 0;--digi--calendar--table-header--font-weight-normal:var(--digi--typography--body--font-weight--desktop);--digi--calendar--date--border-color:none;--digi--calendar--date--box-shadow:none;--digi--calendar--date--box-shadow--hover:inset 0 0 0 var(--digi--border-width--primary) var(--digi--color--text--link);--digi--calendar--date--background-color:var(--digi--color--background--primary);--digi--calendar--date--background-color--hover:var(--digi--global--color--cta--blue--dark);--digi--calendar--date--padding:var(--digi--gutter--large);--digi--calendar--date--color:var(--digi--color--text--primary);--digi--calendar--date--focused--box-shadow:inset 0 0 0 var(--digi--border-width--primary) var(--digi--color--text--link);--digi--calendar--date--focused--background-color:var(--digi--global--color--cta--blue--dark);--digi--calendar--date--today--box-shadow:none;--digi--calendar--date--today--background-color:var(--digi--color--background--neutral-1);--digi--calendar--date--today--background-color--hover:var(--digi--global--color--cta--blue--dark);--digi--calendar--date--today--background-color--focused:var(--digi--global--color--cta--blue--dark);--digi--calendar--date--today--border-color:var(--digi--color--background--neutral-1);--digi--calendar--date--today--color:var(--digi--color--text--primary);--digi--calendar--date--today--circle-border:2px solid var(--digi--color--text--secondary);--digi--calendar--date--today--circle-margin:10%;--digi--calendar--date--selected--color:var(--digi--color--text--inverted);--digi--calendar--date--selected--background-color:var(--digi--color--background--complementary-1);--digi--calendar--week--font-style:italic;--digi--calendar--week--font-size:var(--digi--global--typography--font-size--small);--digi--calendar--week--border-color:var(--digi--color--background--neutral-3);--digi--calendar--week--border-width:var(--digi--border-width--primary)}.sc-digi-calendar-h .digi-calendar.sc-digi-calendar{display:var(--digi--calendar--display);background:var(--digi--calendar--header--button--background);padding:0px 1px 3px 1px;overflow:hidden;max-width:23.4375rem}.sc-digi-calendar-h .digi-calendar--hide.sc-digi-calendar{--digi--calendar--display:none}.sc-digi-calendar-h .digi-calendar__header.sc-digi-calendar{display:var(--digi--calendar--header--display);align-items:var(--digi--calendar--header--align-items);justify-content:var(--digi--calendar--header--justify-content);text-align:var(--digi--calendar--header--text-align);font-size:var(--digi--global--typography--font-size--base);font-family:var(--digi--calendar--header--font-family);font-weight:var(--digi--calendar--header--font-weight)}.sc-digi-calendar-h .digi-calendar__header--year-select.sc-digi-calendar{display:inherit;justify-content:center;margin:0 auto}.sc-digi-calendar-h .digi-calendar__header--year-select.sc-digi-calendar digi-form-select.sc-digi-calendar:first-child{margin-right:var(--digi--padding--smaller)}.sc-digi-calendar-h .digi-calendar__header--year-select.sc-digi-calendar digi-form-select.sc-digi-calendar:last-child{width:5rem}.sc-digi-calendar-h .digi-calendar__header--year-select.sc-digi-calendar digi-form-select.sc-digi-calendar select.sc-digi-calendar{padding-inline-end:2rem}.sc-digi-calendar-h .digi-calendar__header--month-step.sc-digi-calendar{flex:auto;display:inherit;align-items:inherit;justify-content:inherit}.sc-digi-calendar-h .digi-calendar__header--month-step.sc-digi-calendar .digi-calendar__month-select-name.sc-digi-calendar{padding-inline:var(--digi--padding--smaller)}.sc-digi-calendar-h .digi-calendar__header--month-step.sc-digi-calendar .digi-calendar__month-select-button.sc-digi-calendar{font-family:inherit;font-size:inherit;font-weight:inherit;color:var(--digi--calendar--date--color);display:flex;align-items:center;background:var(--digi--calendar--header--button--background);border:var(--digi--calendar--date--box-shadow);padding:var(--digi--calendar--header--button--padding)}.sc-digi-calendar-h .digi-calendar__header--month-step.sc-digi-calendar .digi-calendar__month-select-button.sc-digi-calendar:last-child{border-radius:0 4px 0 0}.sc-digi-calendar-h .digi-calendar__header--month-step.sc-digi-calendar .digi-calendar__month-select-button.sc-digi-calendar:first-child{border-radius:4px 0 0 0}.sc-digi-calendar-h .digi-calendar__header--month-step.sc-digi-calendar .digi-calendar__month-select-button.sc-digi-calendar:focus:not(.digi-calendar__date--not-selectable),.sc-digi-calendar-h .digi-calendar__header--month-step.sc-digi-calendar .digi-calendar__month-select-button.sc-digi-calendar:hover:not(.digi-calendar__date--not-selectable){--digi--calendar--header--button--background:var(\n --digi--calendar--header--button--background--hover\n );text-decoration:underline;cursor:pointer}.sc-digi-calendar-h .digi-calendar__header--month-step.sc-digi-calendar .digi-calendar__month-select-button.sc-digi-calendar:focus-visible{outline:2px solid black;outline-offset:-3px;box-shadow:0px 0px 0px 5px inset white}.sc-digi-calendar-h .digi-calendar__table.sc-digi-calendar{border-collapse:var(--digi--calendar--table--border-collapse);border-spacing:var(--digi--calendar--table--border-spacing);font-family:var(--digi--calendar--table--font-family);table-layout:fixed;margin-bottom:var(--digi--margin--medium)}.sc-digi-calendar-h .digi-calendar__table-header-week.sc-digi-calendar{font-style:italic;padding:var(--digi--calendar--table-header--padding);font-weight:var(--digi--calendar--table-header--font-weight-normal);width:50px}.sc-digi-calendar-h .digi-calendar__table-header.sc-digi-calendar{padding:var(--digi--calendar--table-header--padding);font-weight:var(--digi--calendar--table--font-weight);width:46px}.sc-digi-calendar-h .digi-calendar__td-week.sc-digi-calendar{border-right:var(--digi--calendar--week--border-width) solid var(--digi--calendar--week--border-color)}.sc-digi-calendar-h .digi-calendar__td.sc-digi-calendar{text-align:right}.sc-digi-calendar-h .digi-calendar__date--week-number.sc-digi-calendar{font-style:var(--digi--calendar--week--font-style);font-size:var(--digi--calendar--week--font-size);display:table-cell;text-align:center}.sc-digi-calendar-h .digi-calendar__date--week-number.sc-digi-calendar:hover{cursor:default}.sc-digi-calendar-h .digi-calendar__date.sc-digi-calendar{position:relative;padding:var(--digi--calendar--date--padding);color:var(--digi--calendar--date--color);background-color:var(--digi--calendar--date--background-color);border-color:var(--digi--calendar--date--border-color);border-radius:var(--digi--border-radius--secondary);font-family:inherit;font-size:inherit;font-weight:inherit;text-align:center;border:none;width:44px;height:44px}.sc-digi-calendar-h .digi-calendar__date--disabled.sc-digi-calendar{--digi--calendar--date--color:transparent;pointer-events:none}.sc-digi-calendar-h .digi-calendar__date--today.sc-digi-calendar{position:relative}.sc-digi-calendar-h .digi-calendar__date--today.sc-digi-calendar::after{display:block;content:\" \";position:absolute;top:var(--digi--calendar--date--today--circle-margin);bottom:var(--digi--calendar--date--today--circle-margin);left:var(--digi--calendar--date--today--circle-margin);right:var(--digi--calendar--date--today--circle-margin);border:var(--digi--calendar--date--today--circle-border);border-radius:50%}.sc-digi-calendar-h .digi-calendar__date.sc-digi-calendar:hover:not(.digi-calendar__date--not-selectable){--digi--calendar--date--box-shadow:var(\n --digi--calendar--date--box-shadow--hover\n );--digi--calendar--date--background-color:var(\n --digi--calendar--date--background-color--hover\n );cursor:pointer}.sc-digi-calendar-h .digi-calendar__date.sc-digi-calendar:hover:not(.digi-calendar__date--not-selectable) span.sc-digi-calendar{text-decoration:underline}.sc-digi-calendar-h .digi-calendar__date--selected.sc-digi-calendar{--digi--calendar--date--background-color:var(\n --digi--calendar--date--selected--background-color\n );--digi--calendar--date--color:var(\n --digi--calendar--date--selected--color\n )}.sc-digi-calendar-h .digi-calendar__date--selected.sc-digi-calendar:hover{--digi--calendar--date--background-color:var(\n --digi--calendar--date--selected--background-color\n )}.sc-digi-calendar-h .digi-calendar__date--selected.sc-digi-calendar:hover span.sc-digi-calendar{text-decoration:none}.sc-digi-calendar-h .digi-calendar__date--selected.sc-digi-calendar:focus-visible{outline:2px solid black;outline-offset:-3px;box-shadow:0px 0px 0px 5px inset white}.sc-digi-calendar-h .digi-calendar__date--not-selectable.sc-digi-calendar{cursor:not-allowed}.sc-digi-calendar-h .digi-calendar__date--not-selectable.sc-digi-calendar::after{display:block;content:\" \";width:0px;height:100%;border:1px solid #757575;transform:rotate(-45deg);position:absolute;top:0%;left:50%}.sc-digi-calendar-h .digi-calendar__date--focused.sc-digi-calendar:focus-visible:not(.digi-calendar__date--selected):not(.digi-calendar__date--not-selectable){--digi--calendar--date--background-color:var(\n --digi--calendar--date--focused--background-color\n );outline:2px solid black;outline-offset:-3px;box-shadow:0px 0px 0px 5px inset white}.sc-digi-calendar-s digi-form-label{border:0;clip:rect(1px, 1px, 1px, 1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}";
2241
+ const DigiCalendarStyle0 = calendarCss;
2242
+
2243
+ const Calendar = class {
2244
+ constructor(hostRef) {
2245
+ registerInstance(this, hostRef);
2246
+ this.afOnDateSelectedChange = createEvent(this, "afOnDateSelectedChange", 7);
2247
+ this.afOnFocusOutside = createEvent(this, "afOnFocusOutside", 7);
2248
+ this.afOnClickOutside = createEvent(this, "afOnClickOutside", 7);
2249
+ this.afOnDirty = createEvent(this, "afOnDirty", 7);
2250
+ this.activeCalendar = [];
2251
+ this.months = [];
2252
+ this.selectedDates = [];
2253
+ this.focusedDate = undefined;
2254
+ this.dirty = false;
2255
+ this.afId = randomIdGenerator('digi-calendar');
2256
+ this.afInitSelectedMonth = new Date().getMonth();
2257
+ this.afInitSelectedDate = new Date();
2258
+ this.afShowWeekNumber = false;
2259
+ this.afSelectedDate = undefined;
2260
+ this.afSelectedDates = [];
2261
+ this.afActive = true;
2262
+ this.afMinDate = undefined;
2263
+ this.afMaxDate = undefined;
2264
+ this.afMultipleDates = false;
2265
+ this.afYearSelect = false;
2266
+ }
2267
+ afSelectedDateChangeHandler() {
2268
+ if (isValid(this.afSelectedDate)) {
2269
+ this.selectedDates = [this.afSelectedDate];
2270
+ }
2271
+ else {
2272
+ this.selectedDates = [];
2273
+ }
2274
+ }
2275
+ afSelectedDatesChangeHandler() {
2276
+ if (this.afSelectedDates.length > 0) {
2277
+ if (this.afMultipleDates) {
2278
+ const invalidDate = this.afSelectedDates.find((date) => !isValid(date));
2279
+ if (invalidDate === undefined) {
2280
+ this.selectedDates = this.afSelectedDates;
2281
+ }
2282
+ }
2283
+ else if (isValid(this.afSelectedDates[0])) {
2284
+ this.selectedDates = [this.afSelectedDates[0]];
2285
+ }
2286
+ }
2287
+ else {
2288
+ this.selectedDates = [];
2289
+ }
2290
+ }
2291
+ focusoutHandler(e) {
2292
+ const target = e.target;
2293
+ const selector = `#${this.afId}-calendar`;
2294
+ if (detectFocusOutside(target, selector)) {
2295
+ this.afOnFocusOutside.emit(e);
2296
+ }
2297
+ }
2298
+ clickHandler(e) {
2299
+ const target = e.target;
2300
+ const selector = `#${this.afId}-calendar`;
2301
+ if (detectClickOutside(target, selector)) {
2302
+ this.afOnClickOutside.emit(e);
2303
+ }
2304
+ }
2305
+ drawCalendar(focusedDate) {
2306
+ const date = {
2307
+ year: focusedDate.getFullYear(),
2308
+ month: focusedDate.getMonth()
2309
+ };
2310
+ this.lastWeekOfPreviousMonth = this.getWeekDays(this.getLastDayOfPrevMonth(date));
2311
+ this.firstWeekOfNextMonth = this.getWeekDays(this.getFirstDayOfNextMonth(date));
2312
+ this.weeksBetween = this.getWeeksBetween(this.getLastDayOfPrevMonth(date), this.getFirstDayOfNextMonth(date));
2313
+ this.weekDaysbetween = this.getWeekdaysOfMonth(this.weeksBetween);
2314
+ this.months = [
2315
+ 'januari',
2316
+ 'februari',
2317
+ 'mars',
2318
+ 'april',
2319
+ 'maj',
2320
+ 'juni',
2321
+ 'juli',
2322
+ 'augusti',
2323
+ 'september',
2324
+ 'oktober',
2325
+ 'november',
2326
+ 'december'
2327
+ ];
2328
+ this.activeCalendar = this.appendFirstWeekOfNextMonth()
2329
+ ? [
2330
+ this.lastWeekOfPreviousMonth,
2331
+ ...this.weekDaysbetween,
2332
+ this.appendFirstWeekOfNextMonth()
2333
+ ]
2334
+ : [this.lastWeekOfPreviousMonth, ...this.weekDaysbetween];
2335
+ this.appendFirstWeekOfNextMonth();
2336
+ if (this.afShowWeekNumber) {
2337
+ this.activeCalendar.forEach((el, i) => {
2338
+ this.activeCalendar[i].unshift(this.getWeekNumbers(el[0]));
2339
+ });
2340
+ }
2341
+ }
2342
+ appendFirstWeekOfNextMonth() {
2343
+ const lastArray = JSON.stringify(this.weekDaysbetween.slice(-1)[0]);
2344
+ const stringFirstweek = JSON.stringify(this.firstWeekOfNextMonth);
2345
+ if (!this.firstWeekOfNextMonth.some((date) => this.isSameMonth(date, this.focusedDate))) {
2346
+ return;
2347
+ }
2348
+ else if (lastArray !== stringFirstweek) {
2349
+ return this.firstWeekOfNextMonth;
2350
+ }
2351
+ }
2352
+ getLastDayOfPrevMonth(date) {
2353
+ return new Date(date.year, date.month, 0);
2354
+ }
2355
+ getWeekDays(date) {
2356
+ const today = date || new Date();
2357
+ const week = [];
2358
+ for (let i = 1; i <= 7; i++) {
2359
+ const first = today.getDate() - today.getDay() + i;
2360
+ const day = new Date(today.setDate(first));
2361
+ week.push(day);
2362
+ }
2363
+ return week;
2364
+ }
2365
+ getFirstDayOfNextMonth(date) {
2366
+ return new Date(date.year, date.month + 1, 1);
2367
+ }
2368
+ getWeeksBetween(lastDayOfPrevMonth, firstDayOnNextMonth) {
2369
+ const week = 7 * 24 * 60 * 60 * 1000;
2370
+ const d1ms = lastDayOfPrevMonth.getTime();
2371
+ const d2ms = firstDayOnNextMonth.getTime();
2372
+ const diff = Math.abs(d2ms - d1ms);
2373
+ return Math.floor(diff / week);
2374
+ }
2375
+ getWeekdaysOfMonth(weeksBetween) {
2376
+ let weeks = [];
2377
+ for (let i = 1; i <= weeksBetween; i++) {
2378
+ weeks = [...weeks, this.getWeekDays(this.getUpcoming(i))];
2379
+ }
2380
+ return weeks;
2381
+ }
2382
+ getUpcoming(weeks) {
2383
+ return new Date(this.focusedDate.getFullYear(), this.focusedDate.getMonth(), 7 * weeks);
2384
+ }
2385
+ onDirty() {
2386
+ if (!this.dirty) {
2387
+ this.dirty = true;
2388
+ this.afOnDirty.emit(this.dirty);
2389
+ }
2390
+ }
2391
+ selectDateHandler(dateSelected) {
2392
+ this.onDirty();
2393
+ if (!this.isDateSelectable(dateSelected))
2394
+ return;
2395
+ if (this.isDateSelected(dateSelected)) {
2396
+ this.selectedDates = this.afMultipleDates
2397
+ ? this.selectedDates.filter((d) => {
2398
+ return !this.isSameDate(d, dateSelected);
2399
+ })
2400
+ : [];
2401
+ }
2402
+ else {
2403
+ this.selectedDates = this.afMultipleDates
2404
+ ? [...this.selectedDates, dateSelected]
2405
+ : [dateSelected];
2406
+ }
2407
+ this.focusedDate = new Date(dateSelected);
2408
+ this.afOnDateSelectedChange.emit(this.selectedDates);
2409
+ }
2410
+ getMonthName(monthNumber) {
2411
+ return new Date(1992, monthNumber, 1)
2412
+ .toLocaleDateString('default', {
2413
+ month: 'short'
2414
+ })
2415
+ .replace('.', '');
2416
+ }
2417
+ getFullMonthName(monthNumber) {
2418
+ return new Date(this.focusedDate.getFullYear(), monthNumber, 1).toLocaleDateString('default', {
2419
+ month: 'long',
2420
+ year: 'numeric'
2421
+ });
2422
+ }
2423
+ // Get the week number of a specific date. Taken from https://weeknumber.com/how-to/javascript
2424
+ getWeekNumbers(dateInput) {
2425
+ const date = new Date(dateInput);
2426
+ date.getTime();
2427
+ date.setHours(0, 0, 0, 0);
2428
+ date.setDate(date.getDate() + 3 - ((date.getDay() + 6) % 7));
2429
+ const week1 = new Date(date.getFullYear(), 0, 4);
2430
+ return (1 +
2431
+ Math.round(((date.getTime() - week1.getTime()) / 86400000 -
2432
+ 3 +
2433
+ ((week1.getDay() + 6) % 7)) /
2434
+ 7));
2435
+ }
2436
+ isSameMonth(date, currentDate) {
2437
+ if (date instanceof Date && date instanceof Date) {
2438
+ return (`${date.getFullYear()}${date.getMonth()}` ===
2439
+ `${currentDate.getFullYear()}${currentDate.getMonth()}`);
2440
+ }
2441
+ return false;
2442
+ }
2443
+ isSameDate(date, newDate) {
2444
+ return this.getDateString(date) === this.getDateString(newDate);
2445
+ }
2446
+ getDateString(date) {
2447
+ return `${date.getDate()}${date.getMonth()}${date.getFullYear()}`;
2448
+ }
2449
+ isDateSelected(date) {
2450
+ return !!this.selectedDates.find((d) => this.isSameDate(date, d));
2451
+ }
2452
+ isDateSelectable(date) {
2453
+ if (this.afMinDate && this.isBefore(date, this.afMinDate))
2454
+ return false;
2455
+ if (this.afMaxDate && this.isAfter(date, this.afMaxDate))
2456
+ return false;
2457
+ return true;
2458
+ }
2459
+ isBefore(a, b) {
2460
+ return isBefore(this.dateWithoutTime(a), this.dateWithoutTime(b));
2461
+ }
2462
+ isAfter(a, b) {
2463
+ return isAfter(this.dateWithoutTime(a), this.dateWithoutTime(b));
2464
+ }
2465
+ dateWithoutTime(date) {
2466
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate());
2467
+ }
2468
+ isInAnotherMonth(date) {
2469
+ return !this.isSameMonth(date, this.focusedDate);
2470
+ }
2471
+ subtractMonth() {
2472
+ const month = new Date(this.focusedDate);
2473
+ const currentDay = month.getDate();
2474
+ month.setMonth(month.getMonth() - 1, 1);
2475
+ const lastDayOfPrevMonth = new Date(month.getFullYear(), month.getMonth() + 1, 0).getDate();
2476
+ month.setDate(Math.min(currentDay, lastDayOfPrevMonth));
2477
+ this.afInitSelectedMonth = month.getMonth();
2478
+ this.focusedDate = month;
2479
+ }
2480
+ addMonth() {
2481
+ const month = new Date(this.focusedDate);
2482
+ const currentDay = month.getDate();
2483
+ month.setMonth(month.getMonth() + 1, 1);
2484
+ const lastDayOfNextMonth = new Date(month.getFullYear(), month.getMonth() + 1, 0).getDate();
2485
+ month.setDate(Math.min(currentDay, lastDayOfNextMonth));
2486
+ this.afInitSelectedMonth = month.getMonth();
2487
+ this.focusedDate = month;
2488
+ }
2489
+ getCurrent(date) {
2490
+ return this.isSameDate(date, new Date()) ? 'date' : null;
2491
+ }
2492
+ setTabIndex(date) {
2493
+ if (this.dirty) {
2494
+ return this.isSameDate(date, this.focusedDate) ? 0 : -1;
2495
+ }
2496
+ else {
2497
+ return this.isSameMonth(date, new Date())
2498
+ ? this.isSameDate(date, new Date()) && !this.isInAnotherMonth(date)
2499
+ ? 0
2500
+ : -1
2501
+ : this.isSameMonth(date, this.focusedDate) && date.getDate() === 1
2502
+ ? 0
2503
+ : -1;
2504
+ }
2505
+ }
2506
+ navigateHandler(e, daysToAdd) {
2507
+ !!e.detail && e.detail.preventDefault();
2508
+ if (e.detail.key === 'Tab') {
2509
+ return;
2510
+ }
2511
+ this.onDirty();
2512
+ const date = new Date(e.detail.target.dataset.date);
2513
+ const newDate = new Date(date.setDate(date.getDate() + daysToAdd));
2514
+ this.focusedDate = newDate;
2515
+ this.afInitSelectedMonth = this.focusedDate.getMonth();
2516
+ this.resetFocus();
2517
+ }
2518
+ shiftTabHandler() {
2519
+ this.afYearSelect
2520
+ ? this._yearSelectInputElement.focus()
2521
+ : this._nextButton.focus();
2522
+ }
2523
+ resetFocus() {
2524
+ setTimeout(() => {
2525
+ const dates = this._tbody.querySelectorAll('.digi-calendar__date');
2526
+ if (dates.length <= 0) {
2527
+ logger.warn(`Could not find an element with data-date attribute matching navigated date.`, this._tbody);
2528
+ return;
2529
+ }
2530
+ Array.from(dates).map((date) => {
2531
+ const d = date;
2532
+ d.tabIndex = -1;
2533
+ d.classList.remove('digi-calendar__date--focused');
2534
+ if (d.dataset.date === this.getFullDate(this.focusedDate)) {
2535
+ d.focus();
2536
+ d.tabIndex = 0;
2537
+ d.classList.add('digi-calendar__date--focused');
2538
+ }
2539
+ });
2540
+ }, 100);
2541
+ }
2542
+ getFullDate(date) {
2543
+ return date.toLocaleString(_t.locale, {
2544
+ day: 'numeric',
2545
+ month: 'numeric',
2546
+ year: 'numeric'
2547
+ });
2548
+ }
2549
+ getDateName(date) {
2550
+ return date.toLocaleString(_t.locale, {
2551
+ year: 'numeric',
2552
+ month: 'long',
2553
+ day: 'numeric'
2554
+ });
2555
+ }
2556
+ setFocused(date) {
2557
+ if (this.dirty) {
2558
+ return this.isSameDate(date, this.focusedDate);
2559
+ }
2560
+ else {
2561
+ return this.isSameMonth(date, new Date())
2562
+ ? this.isSameDate(date, new Date()) && !this.isInAnotherMonth(date)
2563
+ : this.isSameMonth(date, this.focusedDate) && date.getDate() === 1;
2564
+ }
2565
+ }
2566
+ ariaPressed(date) {
2567
+ return this.selectedDates.length > 0 &&
2568
+ !!this.selectedDates.find((d) => this.isSameDate(d, date))
2569
+ ? 'true'
2570
+ : 'false';
2571
+ }
2572
+ selectMonth(evt) {
2573
+ const tempDate = new Date(this.focusedDate);
2574
+ const selectedMonth = parseInt(evt.target.value, 10);
2575
+ const currentDay = tempDate.getDate();
2576
+ tempDate.setMonth(selectedMonth, 1);
2577
+ const lastDayOfSelectedMonth = new Date(tempDate.getFullYear(), selectedMonth + 1, 0).getDate();
2578
+ tempDate.setDate(Math.min(currentDay, lastDayOfSelectedMonth));
2579
+ this.afInitSelectedMonth = selectedMonth;
2580
+ this.focusedDate = tempDate;
2581
+ this.drawCalendar(this.focusedDate);
2582
+ }
2583
+ selectYear(evt) {
2584
+ const tempDate = this.focusedDate;
2585
+ tempDate.setFullYear(evt.target.value);
2586
+ this.afInitSelectedDate = evt.target.value;
2587
+ this.focusedDate = tempDate;
2588
+ this.drawCalendar(this.focusedDate);
2589
+ }
2590
+ earliestSelectableYear() {
2591
+ if (this.afMinDate)
2592
+ return this.afMinDate.getFullYear();
2593
+ return 1900;
2594
+ }
2595
+ latestSelectableYear() {
2596
+ if (this.afMaxDate)
2597
+ return this.afMaxDate.getFullYear();
2598
+ return new Date(Date.now()).getFullYear() + 10;
2599
+ }
2600
+ allSelectableYears() {
2601
+ const allYears = [];
2602
+ let currentYear = this.earliestSelectableYear();
2603
+ while (currentYear <= this.latestSelectableYear()) {
2604
+ allYears.push(currentYear++);
2605
+ }
2606
+ return allYears;
2607
+ }
2608
+ componentWillLoad() {
2609
+ if (this.afInitSelectedDate) {
2610
+ this.afInitSelectedMonth = this.afInitSelectedDate.getMonth();
2611
+ this.focusedDate = this.afInitSelectedDate;
2612
+ this.drawCalendar(this.afInitSelectedDate);
2613
+ }
2614
+ else {
2615
+ const startSelectedMonth = new Date(new Date().getFullYear(), this.afInitSelectedMonth);
2616
+ this.focusedDate = startSelectedMonth;
2617
+ this.drawCalendar(startSelectedMonth);
2618
+ }
2619
+ }
2620
+ componentWillUpdate() {
2621
+ this.drawCalendar(this.focusedDate);
2622
+ }
2623
+ async componentDidLoad() {
2624
+ var _a;
2625
+ if (isValid(this.afSelectedDate))
2626
+ this.selectedDates = [this.afSelectedDate];
2627
+ else
2628
+ this.afSelectedDatesChangeHandler();
2629
+ await customElements.whenDefined('digi-form-select');
2630
+ if (this.afYearSelect)
2631
+ this._yearSelectInputElement =
2632
+ await ((_a = this === null || this === void 0 ? void 0 : this._yearSelect) === null || _a === void 0 ? void 0 : _a.afMGetFormControlElement());
2633
+ }
2634
+ cssDateModifiers(date) {
2635
+ const shownMonth = this.focusedDate.getMonth();
2636
+ return {
2637
+ 'digi-calendar__date--today': this.isSameDate(date, new Date()) && !this.isInAnotherMonth(date),
2638
+ 'digi-calendar__date--disabled': this.isInAnotherMonth(date),
2639
+ 'digi-calendar__date--focused': this.setFocused(date),
2640
+ 'digi-calendar__date--selected': this.isDateSelected(date) && date.getMonth() === shownMonth,
2641
+ 'digi-calendar__date--not-selectable': !this.isInAnotherMonth(date) && !this.isDateSelectable(date)
2642
+ };
2643
+ }
2644
+ render() {
2645
+ return (h("div", { key: 'dd8d041a34c874f43bc399f96c508dc170eddfc3', class: {
2646
+ 'digi-calendar': true,
2647
+ 'digi-calendar--hide': !this.afActive
2648
+ }, id: `${this.afId}-calendar` }, this.afYearSelect && (h("div", { key: 'c53f38e0aef3675fa7b97e2dcb32a1bc9c19abd3', class: "digi-calendar__header" }, h("div", { key: '244d99b0652bfb7ad5c585078ab2af91548fa579', class: "digi-calendar__header--year-select" }, h("digi-form-select", { key: '765feb5cb8269d57bbdf1a400a3a3f3e01ca0413', afLabel: "M\u00E5nad", "af-variation": "small", afValue: this.focusedDate.getMonth().toString(), onAfOnSelect: (evt) => {
2649
+ this.selectMonth(evt);
2650
+ } }, this.months.map((month, index) => {
2651
+ return h("option", { value: index }, month);
2652
+ })), h("digi-form-select", { key: 'fe3960bc47e7a5ae27a4c1bef1a9f1b0bb56a9a8', afLabel: "\u00C5r", "af-variation": "small", afValue: this.focusedDate.getFullYear().toString(), onAfOnSelect: (evt) => {
2653
+ this.selectYear(evt);
2654
+ }, ref: (el) => (this._yearSelect = el) }, this.allSelectableYears().map((year) => (h("option", { value: year.toString() }, year))))))), !this.afYearSelect && (h("div", { key: 'e5fc63f78caf20e86e7c34264389aba72f69a802', class: "digi-calendar__header" }, h("div", { key: '1f4c4a04c7697efdf94ee01079eb4f86ba550374', class: "digi-calendar__header--month-step" }, h("button", { key: 'fd036825cd957402bef9433d9c0e4145ac5e39d8', class: "digi-calendar__month-select-button", type: "button", "aria-label": this.getFullMonthName(this.afInitSelectedMonth - 1) +
2655
+ ', föregående månad', onClick: () => this.subtractMonth() }, h("digi-icon-chevron-left", { key: 'bb77e1335ffd12d9e56839cbfcbe1a685f884eb2', slot: "icon", "aria-hidden": "true" }), h("span", { key: '3ca7e44aeb5c5183091b07cbb19ecd6af69ec91f', class: "digi-calendar__month-select-name" }, this.getMonthName(this.afInitSelectedMonth - 1))), h("div", { key: 'c885c4c385ee57d3c8d4dc71db03c3556e3d3ec6', class: "digi-calendar__month" }, this.getFullMonthName(this.afInitSelectedMonth)), h("button", { key: 'fc31cd40cef9e10764b93d25e54e45dd83fad5ae', class: "digi-calendar__month-select-button", type: "button", "aria-label": this.getFullMonthName(this.afInitSelectedMonth + 1) +
2656
+ ', nästa månad', onClick: () => this.addMonth(), ref: (el) => (this._nextButton = el) }, h("span", { key: 'ae0f70e300888630aee53b6d63ce5dbc29766292', class: "digi-calendar__month-select-name" }, this.getMonthName(this.afInitSelectedMonth + 1)), h("digi-icon-chevron-right", { key: '46af22c36d21f41969b06415e00aaf565d14c448', slot: "icon", "aria-hidden": "true" }))))), h("digi-util-keydown-handler", { key: '88aab0d648cc5b1dfb926275dad5eb0934185f2d', onAfOnDown: (e) => this.navigateHandler(e, 7), onAfOnUp: (e) => this.navigateHandler(e, -7), onAfOnLeft: (e) => this.navigateHandler(e, -1), onAfOnRight: (e) => this.navigateHandler(e, 1), onAfOnShiftTab: () => this.shiftTabHandler() }, h("table", { key: 'f55d1cc3c923bb1f39d1fc30f1e600b815521cab', role: "grid", class: "digi-calendar__table" }, h("thead", { key: 'e2b2c774fe7b1031a8aa587bc9927ab9fc5d7313' }, h("tr", { key: 'cd0770091bd86a269a29bbaa440f83c9eda7e273', role: "row" }, this.afShowWeekNumber && (h("th", { key: '0e11243cf38ea7d7ef3bfb87aab6f3641198d37c', role: "columnheader", abbr: _t.calendar.week, class: "digi-calendar__table-header-week" }, _t.calendar.week.toLowerCase())), Object.keys(_t.calendar.weekdays).map((day) => (h("th", { role: "columnheader", "aria-label": _t.calendar.weekdays[day], abbr: _t.calendar.weekdays[day], class: "digi-calendar__table-header" }, _t.calendar.weekdays_short[day].toLowerCase()))))), h("tbody", { key: 'af971b06248a9571260ec27f18472ef12c1de994', ref: (el) => (this._tbody = el) }, this.activeCalendar.map((week) => {
2657
+ return (h("tr", null, week.map((day, i) => {
2658
+ if (this.afShowWeekNumber && i === 0) {
2659
+ return (h("th", { role: "rowheader", "aria-label": _t.calendar.week + ' ' + day, class: "digi-calendar__td-week digi-calendar__date--week-number", id: 'digi-calendar__week-' + day }, day));
2660
+ }
2661
+ else {
2662
+ return this.isInAnotherMonth(day) ? (h("td", null)) : (h("td", { role: "gridcell", class: "digi-calendar__td" }, h("button", { key: this.getFullDate(day), type: "button", class: Object.assign(Object.assign({}, this.cssDateModifiers(day)), { 'digi-calendar__date': true }), onClick: () => this.selectDateHandler(day), "aria-current": this.isSameDate(day, new Date()) ? 'date' : null, "aria-label": `
2663
+ ${!this.isDateSelectable(day)
2664
+ ? _t.calendar.disabledDate
2665
+ : ''} ${this.getDateName(day)}
2666
+ `, "aria-disabled": !this.isDateSelectable(day) ? 'true' : null, tabindex: this.setTabIndex(day), "data-date": this.getFullDate(day), "aria-pressed": this.isDateSelectable(day)
2667
+ ? this.ariaPressed(day)
2668
+ : null }, h("span", { "aria-hidden": "true" }, day.getDate()))));
2669
+ }
2670
+ })));
2671
+ })))), h("slot", { key: '1d51fd6cf7c43cc0770b8e96692b8e3aa738acdf', name: "calendar-footer" })));
2672
+ }
2673
+ static get watchers() { return {
2674
+ "afSelectedDate": ["afSelectedDateChangeHandler"],
2675
+ "afSelectedDates": ["afSelectedDatesChangeHandler"]
2676
+ }; }
2677
+ };
2678
+ Calendar.style = DigiCalendarStyle0;
2679
+
2680
+ const calendarDatepickerCss = ".digi--util--fs--xs.sc-digi-calendar-datepicker{font-size:var(--digi--global--typography--font-size--small) !important}.digi--util--fs--s.sc-digi-calendar-datepicker{font-size:calc(var(--digi--global--typography--font-size--small) + 1px) !important}.digi--util--fs--m.sc-digi-calendar-datepicker{font-size:var(--digi--global--typography--font-size--base) !important}.digi--util--fs--l.sc-digi-calendar-datepicker{font-size:var(--digi--global--typography--font-size--large) !important}.digi--util--fw--sb.sc-digi-calendar-datepicker{font-weight:var(--digi--global--typography--font-weight--semibold) !important}.digi--util--pt--1.sc-digi-calendar-datepicker{padding-top:var(--digi--global--spacing--smallest-2) !important}.digi--util--pt--10.sc-digi-calendar-datepicker{padding-top:var(--digi--global--spacing--smallest) !important}.digi--util--pt--20.sc-digi-calendar-datepicker{padding-top:var(--digi--global--spacing--base) !important}.digi--util--pt--30.sc-digi-calendar-datepicker{padding-top:var(--digi--global--spacing--largest-2) !important}.digi--util--pt--40.sc-digi-calendar-datepicker{padding-top:var(--digi--global--spacing--largest-4) !important}.digi--util--pt--50.sc-digi-calendar-datepicker{padding-top:2.5rem !important}.digi--util--pt--60.sc-digi-calendar-datepicker{padding-top:var(--digi--global--spacing--largest-5) !important}.digi--util--pt--70.sc-digi-calendar-datepicker{padding-top:var(--digi--global--spacing--largest-6) !important}.digi--util--pt--80.sc-digi-calendar-datepicker{padding-top:4.5rem !important}.digi--util--pt--90.sc-digi-calendar-datepicker{padding-top:5rem !important}.digi--util--pb--1.sc-digi-calendar-datepicker{padding-bottom:var(--digi--global--spacing--smallest-2) !important}.digi--util--pb--10.sc-digi-calendar-datepicker{padding-bottom:var(--digi--global--spacing--smallest) !important}.digi--util--pb--20.sc-digi-calendar-datepicker{padding-bottom:var(--digi--global--spacing--base) !important}.digi--util--pb--30.sc-digi-calendar-datepicker{padding-bottom:var(--digi--global--spacing--largest-2) !important}.digi--util--pb--40.sc-digi-calendar-datepicker{padding-bottom:var(--digi--global--spacing--largest-4) !important}.digi--util--pb--50.sc-digi-calendar-datepicker{padding-bottom:2.5rem !important}.digi--util--pb--60.sc-digi-calendar-datepicker{padding-bottom:var(--digi--global--spacing--largest-5) !important}.digi--util--pb--70.sc-digi-calendar-datepicker{padding-bottom:var(--digi--global--spacing--largest-6) !important}.digi--util--pb--80.sc-digi-calendar-datepicker{padding-bottom:4.5rem !important}.digi--util--pb--90.sc-digi-calendar-datepicker{padding-bottom:5rem !important}.digi--util--p--1.sc-digi-calendar-datepicker{padding:var(--digi--global--spacing--smallest-2) !important}.digi--util--p--10.sc-digi-calendar-datepicker{padding:var(--digi--global--spacing--smallest) !important}.digi--util--p--20.sc-digi-calendar-datepicker{padding:var(--digi--global--spacing--base) !important}.digi--util--p--30.sc-digi-calendar-datepicker{padding:var(--digi--global--spacing--largest-2) !important}.digi--util--p--40.sc-digi-calendar-datepicker{padding:var(--digi--global--spacing--largest-4) !important}.digi--util--p--50.sc-digi-calendar-datepicker{padding:2.5rem !important}.digi--util--p--60.sc-digi-calendar-datepicker{padding:var(--digi--global--spacing--largest-5) !important}.digi--util--p--70.sc-digi-calendar-datepicker{padding:var(--digi--global--spacing--largest-6) !important}.digi--util--p--80.sc-digi-calendar-datepicker{padding:4.5rem !important}.digi--util--p--90.sc-digi-calendar-datepicker{padding:5rem !important}.digi--util--ptb--1.sc-digi-calendar-datepicker{padding-top:var(--digi--global--spacing--smallest-2) !important;padding-bottom:var(--digi--global--spacing--smallest-2) !important}.digi--util--ptb--10.sc-digi-calendar-datepicker{padding-top:var(--digi--global--spacing--smallest) !important;padding-bottom:var(--digi--global--spacing--smallest) !important}.digi--util--ptb--20.sc-digi-calendar-datepicker{padding-top:var(--digi--global--spacing--base) !important;padding-bottom:var(--digi--global--spacing--base) !important}.digi--util--ptb--30.sc-digi-calendar-datepicker{padding-top:var(--digi--global--spacing--largest-2) !important;padding-bottom:var(--digi--global--spacing--largest-2) !important}.digi--util--ptb--40.sc-digi-calendar-datepicker{padding-top:var(--digi--global--spacing--largest-4) !important;padding-bottom:var(--digi--global--spacing--largest-4) !important}.digi--util--ptb--50.sc-digi-calendar-datepicker{padding-top:2.5rem !important;padding-bottom:2.5rem !important}.digi--util--ptb--60.sc-digi-calendar-datepicker{padding-top:var(--digi--global--spacing--largest-5) !important;padding-bottom:var(--digi--global--spacing--largest-5) !important}.digi--util--ptb--70.sc-digi-calendar-datepicker{padding-top:var(--digi--global--spacing--largest-6) !important;padding-bottom:var(--digi--global--spacing--largest-6) !important}.digi--util--ptb--80.sc-digi-calendar-datepicker{padding-top:4.5rem !important;padding-bottom:4.5rem !important}.digi--util--ptb--90.sc-digi-calendar-datepicker{padding-top:5rem !important;padding-bottom:5rem !important}.digi--util--plr--1.sc-digi-calendar-datepicker{padding-left:var(--digi--global--spacing--smallest-2) !important;padding-right:var(--digi--global--spacing--smallest-2) !important}.digi--util--plr--10.sc-digi-calendar-datepicker{padding-left:var(--digi--global--spacing--smallest) !important;padding-right:var(--digi--global--spacing--smallest) !important}.digi--util--plr--20.sc-digi-calendar-datepicker{padding-left:var(--digi--global--spacing--base) !important;padding-right:var(--digi--global--spacing--base) !important}.digi--util--plr--30.sc-digi-calendar-datepicker{padding-left:var(--digi--global--spacing--largest-2) !important;padding-right:var(--digi--global--spacing--largest-2) !important}.digi--util--plr--40.sc-digi-calendar-datepicker{padding-left:var(--digi--global--spacing--largest-4) !important;padding-right:var(--digi--global--spacing--largest-4) !important}.digi--util--plr--50.sc-digi-calendar-datepicker{padding-left:2.5rem !important;padding-right:2.5rem !important}.digi--util--plr--60.sc-digi-calendar-datepicker{padding-left:var(--digi--global--spacing--largest-5) !important;padding-right:var(--digi--global--spacing--largest-5) !important}.digi--util--plr--70.sc-digi-calendar-datepicker{padding-left:var(--digi--global--spacing--largest-6) !important;padding-right:var(--digi--global--spacing--largest-6) !important}.digi--util--plr--80.sc-digi-calendar-datepicker{padding-left:4.5rem !important;padding-right:4.5rem !important}.digi--util--plr--90.sc-digi-calendar-datepicker{padding-left:5rem !important;padding-right:5rem !important}.digi--util--sr-only.sc-digi-calendar-datepicker{border:0;clip:rect(1px, 1px, 1px, 1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.digi--util--hidden.sc-digi-calendar-datepicker{display:none}.sc-digi-calendar-datepicker-h{--digi--datepicker--max-width:18.75rem;--digi--datepicker--border-radius:0.25rem;--digi--datepicker--focus-outline:solid var(--digi--border-width--secondary) var(--digi--color--border--secondary);--digi--datepicker--calendar--max-width:20.25rem;--digi--datepicker--calendar--show-week--max-width:23.375rem;--digi--datepicker--calendar-shadow:0 0.125rem 0.375rem 0 rgba(0, 0, 0, 0.7);--digi--datepicker--input-icon--width:1.125rem;--digi--datepicker--input-icon--horizontal-padding:1.25rem;--digi--datepicker--input-icon--vertical-padding:var(--digi--global--spacing--smallest-2);--digi--datepicker--input--inline-start:var(--digi--gutter--medium);--digi--datepicker--input--inline-end:calc(var(--digi--datepicker--input-icon--width) + var(--digi--datepicker--input-icon--horizontal-padding) * 2);--digi--datepicker--input--inactive-background:var(--digi--color--background--secondary);box-sizing:content-box}.sc-digi-calendar-datepicker-h .digi-calendar-datepicker__input-field.sc-digi-calendar-datepicker{position:relative;max-width:var(--digi--datepicker--max-width)}.sc-digi-calendar-datepicker-h .digi-calendar-datepicker__input-field.sc-digi-calendar-datepicker .digi-calendar-datepicker__inactive.sc-digi-calendar-datepicker{--digi--form-input--background--empty:var(\n --digi--datepicker--input--inactive-background\n )}.sc-digi-calendar-datepicker-h .digi-calendar-datepicker__input-field.sc-digi-calendar-datepicker .digi-calendar-datepicker__input-button.sc-digi-calendar-datepicker{position:absolute;top:0px;bottom:0px;right:0px;background:none;color:inherit;border:none;padding:0;font:inherit;outline:inherit;cursor:pointer}.sc-digi-calendar-datepicker-h .digi-calendar-datepicker__input-field.sc-digi-calendar-datepicker .digi-calendar-datepicker__input-button.sc-digi-calendar-datepicker .digi-calendar-datepicker__button-icon.sc-digi-calendar-datepicker{box-sizing:content-box;width:var(--digi--datepicker--input-icon--width);padding:var(--digi--datepicker--input-icon--vertical-padding) var(--digi--datepicker--input-icon--horizontal-padding)}.sc-digi-calendar-datepicker-h .digi-calendar-datepicker__input-field.sc-digi-calendar-datepicker .digi-calendar-datepicker__input-button.sc-digi-calendar-datepicker:focus-visible{outline:2px solid black;outline-offset:2px;box-shadow:0px 0px 0px 5px white}.sc-digi-calendar-datepicker-h .digi-calendar-datepicker__calendar.sc-digi-calendar-datepicker{max-width:var(--digi--datepicker--calendar--max-width);height:0px;border-radius:var(--digi--datepicker--border-radius);overflow:hidden;z-index:1}.sc-digi-calendar-datepicker-h .digi-calendar-datepicker__show-week-numbers.sc-digi-calendar-datepicker .digi-calendar-datepicker__calendar.sc-digi-calendar-datepicker{max-width:var(--digi--datepicker--calendar--show-week--max-width)}.sc-digi-calendar-datepicker-h .digi-calendar-datepicker__show-error.sc-digi-calendar-datepicker .digi-calendar-datepicker__calendar.sc-digi-calendar-datepicker{margin-top:var(--digi--gutter--medium)}.sc-digi-calendar-datepicker-h .digi-calendar-datepicker__show-calendar.sc-digi-calendar-datepicker .digi-calendar-datepicker__calendar.sc-digi-calendar-datepicker{height:auto;background-color:#fff;box-shadow:var(--digi--datepicker--calendar-shadow);position:absolute}.sc-digi-calendar-datepicker-h .digi-calendar-datepicker__input-component.sc-digi-calendar-datepicker{--digi--form-input--padding:0 var(--digi--datepicker--input--inline-end)\n 0 var(--digi--datepicker--input--inline-start)}.sc-digi-calendar-datepicker-h .digi-calendar-datepicker__selected-date-alert.sc-digi-calendar-datepicker{border:0;clip:rect(1px, 1px, 1px, 1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sc-digi-calendar-datepicker-h .digi-calendar-datepicker__sr-instructions.sc-digi-calendar-datepicker{border:0;clip:rect(1px, 1px, 1px, 1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}";
2681
+ const DigiCalendarDatepickerStyle0 = calendarDatepickerCss;
2682
+
2683
+ const CalendarDatepicker = class {
2684
+ constructor(hostRef) {
2685
+ registerInstance(this, hostRef);
2686
+ this.afOnDateChange = createEvent(this, "afOnDateChange", 7);
2687
+ this.futureYears = 10;
2688
+ this.screenReaderUpdateTrigger = false;
2689
+ this.showWrongFormatError = false;
2690
+ this.showDisabledDateError = false;
2691
+ this.showCalendar = false;
2692
+ this.userInput = '';
2693
+ this.afId = randomIdGenerator('digi-calendar-datepicker');
2694
+ this.afLabel = _t.calendar.datepicker.label;
2695
+ this.afLabelDescription = _t.calendar.datepicker.description;
2696
+ this.afOpenCalendarAriaLabel = _t.calendar.datepicker.openCalendarAriaLabel;
2697
+ this.afCloseCalendarAriaLabel = _t.calendar.datepicker.closeCalendarAriaLabel;
2698
+ this.afValidation = CalendarDatepickerValidation.NEUTRAL;
2699
+ this.afValidationText = undefined;
2700
+ this.afInvalid = false;
2701
+ this.afValidationMessage = _t.calendar.datepicker.validationMessage;
2702
+ this.afValidationWrongFormat = _t.calendar.datepicker.validationWrongFormat;
2703
+ this.afValidationDisabledDate = _t.calendar.datepicker.validationDisabledDate;
2704
+ this.afRequired = undefined;
2705
+ this.afDisableValidation = undefined;
2706
+ this.afRequiredText = undefined;
2707
+ this.afSelectedDates = [];
2708
+ this.value = [];
2709
+ this.afMinDate = undefined;
2710
+ this.afMaxDate = undefined;
2711
+ this.afShowWeekNumber = false;
2712
+ this.afMultipleDates = false;
2713
+ this.afCloseOnSelect = false;
2714
+ }
2715
+ valueChangeHandler(newVal) {
2716
+ if (this.afDisableValidation && this.afSelectedDates.length > 0) {
2717
+ this.afSelectedDates = [];
2718
+ }
2719
+ /**
2720
+ * Behövde lägga till den här förändringen för att angular med value accessor betedde sig märkligt vid onBlur av input-fält. Den reagerade när man lämnade fältet även fast fältet var tomt (pratar om watchern). Så behövde bygga en guard/gatekeeper som kontrollerar värdet först. Ska inte påverka manuell-, eller autovalidering.
2721
+ */
2722
+ if (Array.isArray(newVal) &&
2723
+ newVal.every((d) => d instanceof Date && !isNaN(d.getTime()))) {
2724
+ this.afSelectedDates = newVal;
2725
+ this.userInput = '';
2726
+ }
2727
+ }
2728
+ afMultipleDatesChangeHandler() {
2729
+ var _a;
2730
+ if (!this.afMultipleDates && this.afSelectedDates.length > 1) {
2731
+ this.afSelectedDates = this.afSelectedDates.slice(-1);
2732
+ this.value = (_a = this.afSelectedDates) !== null && _a !== void 0 ? _a : [];
2733
+ }
2734
+ }
2735
+ clickHandler(e) {
2736
+ const target = e.target;
2737
+ const selector = `#${this.afId}-datepicker`;
2738
+ if (detectClickOutside(target, selector)) {
2739
+ this.showCalendar = false;
2740
+ }
2741
+ }
2742
+ connectedCallback() {
2743
+ this.hostElement.addEventListener('keyup', this.keyUpHandler.bind(this));
2744
+ }
2745
+ disconnectedCallback() {
2746
+ this.hostElement.removeEventListener('keyup', this.keyUpHandler.bind(this));
2747
+ }
2748
+ componentDidLoad() {
2749
+ var _a;
2750
+ if ((_a = this.value) === null || _a === void 0 ? void 0 : _a.length) {
2751
+ this.setValue(this.value);
2752
+ }
2753
+ }
2754
+ get cssModifiers() {
2755
+ return {
2756
+ 'digi-calendar-datepicker__show-week-numbers': this.afShowWeekNumber,
2757
+ 'digi-calendar-datepicker__show-error': this.getShowError(),
2758
+ 'digi-calendar-datepicker__show-calendar': this.showCalendar
2759
+ };
2760
+ }
2761
+ keyUpHandler(e) {
2762
+ if (e.key === 'Escape' && this.showCalendar) {
2763
+ this.showCalendar = false;
2764
+ this.focusOnCalendarButton();
2765
+ e.stopPropagation();
2766
+ }
2767
+ }
2768
+ focusOnCalendarButton() {
2769
+ const calendarButton = this.hostElement.querySelector(`#${this.afId}-button`);
2770
+ calendarButton.focus();
2771
+ }
2772
+ toggleCalendar() {
2773
+ this.showCalendar = !this.showCalendar;
2774
+ if (this.showCalendar) {
2775
+ this.screenReaderUpdateTrigger = !this.screenReaderUpdateTrigger;
2776
+ }
2777
+ }
2778
+ parseInputString(value) {
2779
+ return value
2780
+ .split(/[&,]|och/g)
2781
+ .map((text) => this.parseDateString(text.trim()));
2782
+ }
2783
+ resetValueAndState() {
2784
+ this.showWrongFormatError = false;
2785
+ this.showDisabledDateError = false;
2786
+ this.setValue([]);
2787
+ this.afOnDateChange.emit(['']);
2788
+ this.afSelectedDates = [];
2789
+ }
2790
+ validateInputAndShowErrors(dates) {
2791
+ this.showWrongFormatError = !!dates.find((date) => !isValid(date));
2792
+ this.showDisabledDateError = !!dates.find((date) => !this.isDateSelectable(date));
2793
+ }
2794
+ setValue(value) {
2795
+ this.afSelectedDates = value;
2796
+ this.value = value;
2797
+ }
2798
+ /*
2799
+
2800
+ Metoden tar både Stencil-specifika och vanliga DOM-event, extraherar texten användaren matat in, hanterar tom inmatning, par­sar till Date[], kör intern validering, uppdaterar komponentens state och slutligen emitterar alltid en string[] med exakt det användaren skrev – vilket gör det smidigare för Angular-value-accessorn att jobba vidare med.
2801
+
2802
+ */
2803
+ parseInput(evt) {
2804
+ let newValue = '';
2805
+ if (evt.detail && typeof evt.detail.value === 'string') {
2806
+ newValue = evt.detail.value;
2807
+ }
2808
+ else if (evt.target && evt.target.value != null) {
2809
+ newValue = evt.target.value;
2810
+ }
2811
+ this.userInput = newValue;
2812
+ if (newValue === '') {
2813
+ this.resetValueAndState();
2814
+ return;
2815
+ }
2816
+ const dates = this.parseInputString(newValue);
2817
+ this.setValue(dates); // target.value
2818
+ if (!this.afDisableValidation) {
2819
+ this.validateInputAndShowErrors(dates);
2820
+ if (this.getShowError()) {
2821
+ this.afOnDateChange.emit([]);
2822
+ }
2823
+ else {
2824
+ this.afOnDateChange.emit(this.afSelectedDates);
2825
+ }
2826
+ }
2827
+ else {
2828
+ const dateStrs = newValue.split(/[&,]|och/g).map((s) => s.trim());
2829
+ this.afOnDateChange.emit([...dateStrs]); // evt.detail
2830
+ }
2831
+ }
2832
+ parseCalendar(evt) {
2833
+ if (!(evt === null || evt === void 0 ? void 0 : evt.detail))
2834
+ return;
2835
+ if (!this.afDisableValidation) {
2836
+ this.afInvalid = false;
2837
+ this.showWrongFormatError = false;
2838
+ this.showDisabledDateError = false;
2839
+ }
2840
+ this.userInput = '';
2841
+ this.setValue(evt.detail);
2842
+ if (this.afCloseOnSelect) {
2843
+ this.toggleCalendar();
2844
+ this.focusOnCalendarButton();
2845
+ }
2846
+ this.afOnDateChange.emit(this.afSelectedDates);
2847
+ }
2848
+ /*
2849
+
2850
+ Metoden överskrider JavaScripts inbyggda "isValid"-funktion, då den tillåter att ex., "1" är rätt format medans ex., "13" är fel format vid YYYY-MM-DD krav på inmatat format.
2851
+
2852
+ */
2853
+ parseDateString(s) {
2854
+ const raw = s.trim().replace(/[./]/g, '-');
2855
+ // 1) yyyy-MM-dd
2856
+ if (/^\d{4}-\d{2}-\d{2}$/.test(raw)) {
2857
+ const d = parse(raw, 'yyyy-MM-dd', new Date());
2858
+ return isValid(d) ? d : new Date(NaN);
2859
+ }
2860
+ // 2) yyyymmdd
2861
+ if (/^\d{8}$/.test(raw)) {
2862
+ const yyyy = raw.slice(0, 4);
2863
+ const mm = raw.slice(4, 6);
2864
+ const dd = raw.slice(6, 8);
2865
+ const d = parse(`${yyyy}-${mm}-${dd}`, 'yyyy-MM-dd', new Date());
2866
+ return isValid(d) ? d : new Date(NaN);
2867
+ }
2868
+ // 3) yymmdd (map to full year using the previous futureYears logic)
2869
+ if (/^\d{6}$/.test(raw)) {
2870
+ const yy = raw.slice(0, 2);
2871
+ const mm = raw.slice(2, 4);
2872
+ const dd = raw.slice(4, 6);
2873
+ const yyyy = this.getFullYear(yy);
2874
+ const d = parse(`${yyyy}-${mm}-${dd}`, 'yyyy-MM-dd', new Date());
2875
+ return isValid(d) ? d : new Date(NaN);
2876
+ }
2877
+ // Everything else is invalid (so "1" and "25" will now be "Fel format")
2878
+ return new Date(NaN);
2879
+ }
2880
+ getFullYear(s) {
2881
+ if (s.length === 4)
2882
+ return s;
2883
+ const y = new Date().getFullYear().toString();
2884
+ return parseInt(s) > parseInt(y.slice(-2)) + this.futureYears
2885
+ ? parseInt(y.slice(0, -2)) - 1 + s
2886
+ : y.slice(0, -2) + s;
2887
+ }
2888
+ isDateSelectable(date) {
2889
+ if (this.afMinDate && this.isBefore(date, this.afMinDate))
2890
+ return false;
2891
+ if (this.afMaxDate && this.isAfter(date, this.afMaxDate))
2892
+ return false;
2893
+ return true;
2894
+ }
2895
+ isBefore(a, b) {
2896
+ return isBefore(this.dateWithoutTime(a), this.dateWithoutTime(b));
2897
+ }
2898
+ isAfter(a, b) {
2899
+ return isAfter(this.dateWithoutTime(a), this.dateWithoutTime(b));
2900
+ }
2901
+ dateWithoutTime(date) {
2902
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate());
2903
+ }
2904
+ getShowError() {
2905
+ return (this.afInvalid || this.showWrongFormatError || this.showDisabledDateError);
2906
+ }
2907
+ getErrorText() {
2908
+ var _a;
2909
+ if (this.afInvalid) {
2910
+ return (_a = this.afValidationText) !== null && _a !== void 0 ? _a : this.afValidationMessage;
2911
+ }
2912
+ return this.showWrongFormatError
2913
+ ? this.afValidationWrongFormat
2914
+ : this.afValidationDisabledDate;
2915
+ }
2916
+ get inputValue() {
2917
+ if (this.userInput !== '') {
2918
+ return this.userInput;
2919
+ }
2920
+ // otherwise format your real selected dates
2921
+ const sorted = this.afSelectedDates
2922
+ .slice()
2923
+ .sort((a, b) => (this.isBefore(a, b) ? -1 : 1));
2924
+ return this.datesToInputString(sorted);
2925
+ }
2926
+ datesToInputString(dates) {
2927
+ return dates.every((date) => date instanceof Date && !isNaN(date.getTime()))
2928
+ ? dates
2929
+ .map((date) => date.toLocaleDateString('sv-SE'))
2930
+ .flatMap((date, index, all) => {
2931
+ const isLast = index == all.length - 1;
2932
+ const isFirst = index === 0;
2933
+ if (isFirst) {
2934
+ return date;
2935
+ }
2936
+ else if (isLast) {
2937
+ return [' och ', date];
2938
+ }
2939
+ else {
2940
+ return [', ', date];
2941
+ }
2942
+ })
2943
+ .join('')
2944
+ : '';
2945
+ }
2946
+ get getSelectedDates() {
2947
+ if (this.afDisableValidation && this.getShowError()) {
2948
+ return this.afSelectedDates;
2949
+ }
2950
+ if (this.getShowError()) {
2951
+ return [];
2952
+ }
2953
+ return this.afSelectedDates;
2954
+ }
2955
+ render() {
2956
+ return (h(Host, { key: '8112725ba8c875e94cc556da8921a74390d9c31e' }, h("div", { key: '4c3df5468b902a4d26fea152ebaeaea0c9bf3dd9', class: Object.assign({ 'digi-calendar-datepicker': true }, this.cssModifiers), id: `${this.afId}-datepicker` }, h("div", { key: 'bcc79305b5bb0911e5f33f2ca8641ba1a3a5c588', class: "digi-calendar-datepicker__input-field" }, h("digi-form-input", { key: 'cfe6189b8a529db4bda725f483ec899fe66b87cc', class: 'digi-calendar-datepicker__input-component', afLabel: this.afLabel, afLabelDescription: this.afLabelDescription, afValue: this.inputValue, afValidation: this.getShowError()
2957
+ ? FormInputValidation.ERROR
2958
+ : FormInputValidation.NEUTRAL, afValidationText: this.getErrorText(), afId: this.afId, afAriaDescribedby: `${this.afId}--validation-message`, afRequired: this.afRequired, afRequiredText: this.afRequiredText, onAfOnChange: (evt) => {
2959
+ evt.stopImmediatePropagation();
2960
+ this.parseInput(evt);
2961
+ } }, h("button", { key: '3126acc01f2f9aef0a02990ef22acbde7c3ed3c7', id: this.afId + '-button', class: "digi-calendar-datepicker__input-button", slot: "button", "aria-label": this.showCalendar
2962
+ ? this.afCloseCalendarAriaLabel
2963
+ : this.afOpenCalendarAriaLabel, "aria-controls": "calendar-popup", "aria-expanded": this.showCalendar ? 'true' : 'false', onClick: () => this.toggleCalendar(), type: "button" }, h("digi-icon-calendar-alt", { key: 'b48fc72cea6c3a94bd9821f2ec9416a4707e13d1', class: "digi-calendar-datepicker__button-icon", slot: "icon" })))), h("div", { key: 'd7c78a170d2d855cca3c001427d1c64ebab48fb3', class: "digi-calendar-datepicker__calendar", id: "calendar-popup" }, h("p", { key: '5651e12f6e3e06bfc879bb5c2aaf9920f9faf2e7', role: "alert", class: "digi-calendar-datepicker__sr-instructions" }, this.showCalendar
2964
+ ? `${_t.calendar.screenReaderInstructions}${this.screenReaderUpdateTrigger ? '\u200B' : ''}`
2965
+ : ''), h("digi-calendar", { key: 'a490205afebf723c0da4ff5d3f52ac76ec200ec8', afActive: this.showCalendar, afShowWeekNumber: this.afShowWeekNumber, afMultipleDates: this.afMultipleDates, afSelectedDates: this.getSelectedDates, afMinDate: this.afMinDate, afMaxDate: this.afMaxDate, "aria-hidden": !this.showCalendar, onAfOnDateSelectedChange: (evt) => {
2966
+ evt.stopImmediatePropagation();
2967
+ this.parseCalendar(evt);
2968
+ } })), this.afCloseOnSelect && !this.afMultipleDates && (h("div", { key: '9880a2b582c21823d935b4be5161e3301abdd214', class: "digi-calendar-datepicker__selected-date-alert", role: "alert" }, this.afSelectedDates.length > 0
2969
+ ? `${_t.calendar.datepicker.selectedDate}: ${this.datesToInputString(this.afSelectedDates)}`
2970
+ : '')))));
2971
+ }
2972
+ get hostElement() { return getElement(this); }
2973
+ static get watchers() { return {
2974
+ "value": ["valueChangeHandler"],
2975
+ "afMultipleDates": ["afMultipleDatesChangeHandler"]
2976
+ }; }
2977
+ };
2978
+ CalendarDatepicker.style = DigiCalendarDatepickerStyle0;
2979
+
2980
+ const formInputCss = ".digi--util--fs--xs.sc-digi-form-input{font-size:var(--digi--global--typography--font-size--small) !important}.digi--util--fs--s.sc-digi-form-input{font-size:calc(var(--digi--global--typography--font-size--small) + 1px) !important}.digi--util--fs--m.sc-digi-form-input{font-size:var(--digi--global--typography--font-size--base) !important}.digi--util--fs--l.sc-digi-form-input{font-size:var(--digi--global--typography--font-size--large) !important}.digi--util--fw--sb.sc-digi-form-input{font-weight:var(--digi--global--typography--font-weight--semibold) !important}.digi--util--pt--1.sc-digi-form-input{padding-top:var(--digi--global--spacing--smallest-2) !important}.digi--util--pt--10.sc-digi-form-input{padding-top:var(--digi--global--spacing--smallest) !important}.digi--util--pt--20.sc-digi-form-input{padding-top:var(--digi--global--spacing--base) !important}.digi--util--pt--30.sc-digi-form-input{padding-top:var(--digi--global--spacing--largest-2) !important}.digi--util--pt--40.sc-digi-form-input{padding-top:var(--digi--global--spacing--largest-4) !important}.digi--util--pt--50.sc-digi-form-input{padding-top:2.5rem !important}.digi--util--pt--60.sc-digi-form-input{padding-top:var(--digi--global--spacing--largest-5) !important}.digi--util--pt--70.sc-digi-form-input{padding-top:var(--digi--global--spacing--largest-6) !important}.digi--util--pt--80.sc-digi-form-input{padding-top:4.5rem !important}.digi--util--pt--90.sc-digi-form-input{padding-top:5rem !important}.digi--util--pb--1.sc-digi-form-input{padding-bottom:var(--digi--global--spacing--smallest-2) !important}.digi--util--pb--10.sc-digi-form-input{padding-bottom:var(--digi--global--spacing--smallest) !important}.digi--util--pb--20.sc-digi-form-input{padding-bottom:var(--digi--global--spacing--base) !important}.digi--util--pb--30.sc-digi-form-input{padding-bottom:var(--digi--global--spacing--largest-2) !important}.digi--util--pb--40.sc-digi-form-input{padding-bottom:var(--digi--global--spacing--largest-4) !important}.digi--util--pb--50.sc-digi-form-input{padding-bottom:2.5rem !important}.digi--util--pb--60.sc-digi-form-input{padding-bottom:var(--digi--global--spacing--largest-5) !important}.digi--util--pb--70.sc-digi-form-input{padding-bottom:var(--digi--global--spacing--largest-6) !important}.digi--util--pb--80.sc-digi-form-input{padding-bottom:4.5rem !important}.digi--util--pb--90.sc-digi-form-input{padding-bottom:5rem !important}.digi--util--p--1.sc-digi-form-input{padding:var(--digi--global--spacing--smallest-2) !important}.digi--util--p--10.sc-digi-form-input{padding:var(--digi--global--spacing--smallest) !important}.digi--util--p--20.sc-digi-form-input{padding:var(--digi--global--spacing--base) !important}.digi--util--p--30.sc-digi-form-input{padding:var(--digi--global--spacing--largest-2) !important}.digi--util--p--40.sc-digi-form-input{padding:var(--digi--global--spacing--largest-4) !important}.digi--util--p--50.sc-digi-form-input{padding:2.5rem !important}.digi--util--p--60.sc-digi-form-input{padding:var(--digi--global--spacing--largest-5) !important}.digi--util--p--70.sc-digi-form-input{padding:var(--digi--global--spacing--largest-6) !important}.digi--util--p--80.sc-digi-form-input{padding:4.5rem !important}.digi--util--p--90.sc-digi-form-input{padding:5rem !important}.digi--util--ptb--1.sc-digi-form-input{padding-top:var(--digi--global--spacing--smallest-2) !important;padding-bottom:var(--digi--global--spacing--smallest-2) !important}.digi--util--ptb--10.sc-digi-form-input{padding-top:var(--digi--global--spacing--smallest) !important;padding-bottom:var(--digi--global--spacing--smallest) !important}.digi--util--ptb--20.sc-digi-form-input{padding-top:var(--digi--global--spacing--base) !important;padding-bottom:var(--digi--global--spacing--base) !important}.digi--util--ptb--30.sc-digi-form-input{padding-top:var(--digi--global--spacing--largest-2) !important;padding-bottom:var(--digi--global--spacing--largest-2) !important}.digi--util--ptb--40.sc-digi-form-input{padding-top:var(--digi--global--spacing--largest-4) !important;padding-bottom:var(--digi--global--spacing--largest-4) !important}.digi--util--ptb--50.sc-digi-form-input{padding-top:2.5rem !important;padding-bottom:2.5rem !important}.digi--util--ptb--60.sc-digi-form-input{padding-top:var(--digi--global--spacing--largest-5) !important;padding-bottom:var(--digi--global--spacing--largest-5) !important}.digi--util--ptb--70.sc-digi-form-input{padding-top:var(--digi--global--spacing--largest-6) !important;padding-bottom:var(--digi--global--spacing--largest-6) !important}.digi--util--ptb--80.sc-digi-form-input{padding-top:4.5rem !important;padding-bottom:4.5rem !important}.digi--util--ptb--90.sc-digi-form-input{padding-top:5rem !important;padding-bottom:5rem !important}.digi--util--plr--1.sc-digi-form-input{padding-left:var(--digi--global--spacing--smallest-2) !important;padding-right:var(--digi--global--spacing--smallest-2) !important}.digi--util--plr--10.sc-digi-form-input{padding-left:var(--digi--global--spacing--smallest) !important;padding-right:var(--digi--global--spacing--smallest) !important}.digi--util--plr--20.sc-digi-form-input{padding-left:var(--digi--global--spacing--base) !important;padding-right:var(--digi--global--spacing--base) !important}.digi--util--plr--30.sc-digi-form-input{padding-left:var(--digi--global--spacing--largest-2) !important;padding-right:var(--digi--global--spacing--largest-2) !important}.digi--util--plr--40.sc-digi-form-input{padding-left:var(--digi--global--spacing--largest-4) !important;padding-right:var(--digi--global--spacing--largest-4) !important}.digi--util--plr--50.sc-digi-form-input{padding-left:2.5rem !important;padding-right:2.5rem !important}.digi--util--plr--60.sc-digi-form-input{padding-left:var(--digi--global--spacing--largest-5) !important;padding-right:var(--digi--global--spacing--largest-5) !important}.digi--util--plr--70.sc-digi-form-input{padding-left:var(--digi--global--spacing--largest-6) !important;padding-right:var(--digi--global--spacing--largest-6) !important}.digi--util--plr--80.sc-digi-form-input{padding-left:4.5rem !important;padding-right:4.5rem !important}.digi--util--plr--90.sc-digi-form-input{padding-left:5rem !important;padding-right:5rem !important}.digi--util--sr-only.sc-digi-form-input{border:0;clip:rect(1px, 1px, 1px, 1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.digi--util--hidden.sc-digi-form-input{display:none}.sc-digi-form-input-h{--digi--form-input--height--small:var(--digi--input-height--small);--digi--form-input--height--medium:var(--digi--input-height--medium);--digi--form-input--height--large:var(--digi--input-height--large);--digi--form-input--border-radius:var(--digi--border-radius--input);--digi--form-input--padding:0 var(--digi--gutter--medium);--digi--form-input--background--empty:var(--digi--color--background--input-empty);--digi--form-input--background--neutral:var(--digi--color--background--input);--digi--form-input--background--success:var(--digi--color--background--success-2);--digi--form-input--background--warning:var(--digi--color--background--warning-2);--digi--form-input--background--error:var(--digi--color--background--danger-2);--digi--form-input--border--neutral:var(--digi--border-width--input-regular) solid;--digi--form-input--border--error:var(--digi--border-width--input-validation) solid;--digi--form-input--border--success:var(--digi--border-width--input-validation) solid;--digi--form-input--border--warning:var(--digi--border-width--input-validation) solid;--digi--form-input--border-color--neutral:var(--digi--color--border--neutral-3);--digi--form-input--border-color--success:var(--digi--color--border--success);--digi--form-input--border-color--warning:var(--digi--color--border--warning-2);--digi--form-input--border-color--error:var(--digi--color--border--danger)}.sc-digi-form-input-h .digi-form-input.sc-digi-form-input{display:flex;flex-direction:column;gap:0.4em}.sc-digi-form-input-h .digi-form-input--small.sc-digi-form-input{--HEIGHT:var(--digi--form-input--height--small)}.sc-digi-form-input-h .digi-form-input--medium.sc-digi-form-input{--HEIGHT:var(--digi--form-input--height--medium)}.sc-digi-form-input-h .digi-form-input--large.sc-digi-form-input{--HEIGHT:var(--digi--form-input--height--large)}.sc-digi-form-input-h .digi-form-input--neutral.sc-digi-form-input{--BORDER:var(--digi--form-input--border--neutral);--BORDER-COLOR:var(--digi--form-input--border-color--neutral);--BACKGROUND:var(--digi--form-input--background--neutral)}.sc-digi-form-input-h .digi-form-input--empty.sc-digi-form-input:not(:focus-within){--BACKGROUND:var(--digi--form-input--background--empty)}.sc-digi-form-input-h .digi-form-input--success.sc-digi-form-input{--BORDER:var(--digi--form-input--border--success);--BORDER-COLOR:var(--digi--form-input--border-color--success);--BACKGROUND:var(--digi--form-input--background--success)}.sc-digi-form-input-h .digi-form-input--warning.sc-digi-form-input{--BORDER:var(--digi--form-input--border--warning);--BORDER-COLOR:var(--digi--form-input--border-color--warning);--BACKGROUND:var(--digi--form-input--background--warning)}.sc-digi-form-input-h .digi-form-input--error.sc-digi-form-input{--BORDER:var(--digi--form-input--border--error);--BORDER-COLOR:var(--digi--form-input--border-color--error);--BACKGROUND:var(--digi--form-input--background--error)}.digi-form-input__input-wrapper.sc-digi-form-input{position:relative;display:flex}.digi-form-input__input-wrapper.sc-digi-form-input-s>[slot^=button] button,.digi-form-input__input-wrapper .sc-digi-form-input-s>[slot^=button] button{--MIN-HEIGHT:100%}.digi-form-input--button-variation-primary .digi-form-input__input-wrapper.sc-digi-form-input-s>[slot^=button] button,.digi-form-input__input-wrapper .sc-digi-form-input-s>[slot^=button] button{border-start-start-radius:0;border-end-start-radius:0}.digi-form-input--button-variation-secondary.digi-form-input--has-button-true.sc-digi-form-input .digi-form-input__input-wrapper.sc-digi-form-input{gap:var(--digi--gutter--medium);flex-wrap:wrap}.digi-form-input__input.sc-digi-form-input{flex:1;height:var(--HEIGHT);font-family:var(--digi--global--typography--font-family--default);font-size:var(--digi--typography--body--font-size--desktop);padding:var(--digi--form-input--padding);color:var(--digi--color--text--primary);background:var(--BACKGROUND);border:var(--BORDER);border-color:var(--BORDER-COLOR);border-radius:var(--digi--form-input--border-radius);box-sizing:border-box}.digi-form-input__input.sc-digi-form-input:focus-visible{outline:2px solid black;outline-offset:2px;box-shadow:0px 0px 0px 5px white}.digi-form-input--button-variation-primary.digi-form-input--has-button-true.sc-digi-form-input .digi-form-input__input.sc-digi-form-input{border-end-end-radius:0;border-start-end-radius:0}";
2981
+ const DigiFormInputStyle0 = formInputCss;
2982
+
2983
+ const FormInput = class {
2984
+ constructor(hostRef) {
2985
+ registerInstance(this, hostRef);
2986
+ this.afOnChange = createEvent(this, "afOnChange", 7);
2987
+ this.afOnBlur = createEvent(this, "afOnBlur", 7);
2988
+ this.afOnKeyup = createEvent(this, "afOnKeyup", 7);
2989
+ this.afOnFocus = createEvent(this, "afOnFocus", 7);
2990
+ this.afOnFocusout = createEvent(this, "afOnFocusout", 7);
2991
+ this.afOnInput = createEvent(this, "afOnInput", 7);
2992
+ this.afOnDirty = createEvent(this, "afOnDirty", 7);
2993
+ this.afOnTouched = createEvent(this, "afOnTouched", 7);
2994
+ this.afOnReady = createEvent(this, "afOnReady", 3);
2995
+ this.hasActiveValidationMessage = false;
2996
+ this.hasButton = undefined;
2997
+ this.dirty = false;
2998
+ this.touched = false;
2999
+ this.afLabel = undefined;
3000
+ this.afLabelDescription = undefined;
3001
+ this.afType = FormInputType.TEXT;
3002
+ this.afInputmode = FormInputMode.DEFAULT;
3003
+ this.afButtonVariation = FormInputButtonVariation.PRIMARY;
3004
+ this.afAutofocus = undefined;
3005
+ this.afVariation = FormInputVariation.MEDIUM;
3006
+ this.afName = undefined;
3007
+ this.afId = randomIdGenerator('digi-form-input');
3008
+ this.afMaxlength = undefined;
3009
+ this.afMinlength = undefined;
3010
+ this.afRequired = undefined;
3011
+ this.afRequiredText = undefined;
3012
+ this.afAnnounceIfOptional = false;
3013
+ this.afAnnounceIfOptionalText = undefined;
3014
+ this.value = undefined;
3015
+ this.afValue = undefined;
3016
+ this.afValidation = FormInputValidation.NEUTRAL;
3017
+ this.afValidationText = undefined;
3018
+ this.afRole = undefined;
3019
+ this.afAutocomplete = undefined;
3020
+ this.afMin = undefined;
3021
+ this.afMax = undefined;
3022
+ this.afList = undefined;
3023
+ this.afStep = undefined;
3024
+ this.afDirname = undefined;
3025
+ this.afAriaAutocomplete = undefined;
3026
+ this.afAriaActivedescendant = undefined;
3027
+ this.afAriaLabelledby = undefined;
3028
+ this.afAriaDescribedby = undefined;
3029
+ this.afAriaControls = undefined;
3030
+ this.afTrimValue = undefined;
3031
+ }
3032
+ onValueChanged(value) {
3033
+ this.afValue = value;
3034
+ }
3035
+ onAfValueChanged(value) {
3036
+ this.value = value;
3037
+ }
3038
+ afValidationTextWatch() {
3039
+ this.setActiveValidationMessage();
3040
+ }
3041
+ /**
3042
+ * Hämtar en referens till inputelementet. Bra för att t.ex. sätta fokus programmatiskt.
3043
+ * @en Returns a reference to the input element. Handy for setting focus programmatically.
3044
+ */
3045
+ async afMGetFormControlElement() {
3046
+ return this._input;
3047
+ }
3048
+ componentWillLoad() {
3049
+ this.afValue ? (this.value = this.afValue) : (this.afValue = this.value);
3050
+ this.setActiveValidationMessage();
3051
+ this.setHasButton();
3052
+ }
3053
+ componentWillUpdate() {
3054
+ this.setHasButton();
3055
+ }
3056
+ componentDidLoad() {
3057
+ this.afOnReady.emit();
3058
+ }
3059
+ setActiveValidationMessage() {
3060
+ this.hasActiveValidationMessage = !!this.afValidationText;
3061
+ }
3062
+ get cssModifiers() {
3063
+ return {
3064
+ 'digi-form-input--small': this.afVariation === FormInputVariation.SMALL,
3065
+ 'digi-form-input--medium': this.afVariation === FormInputVariation.MEDIUM,
3066
+ 'digi-form-input--large': this.afVariation === FormInputVariation.LARGE,
3067
+ 'digi-form-input--neutral': this.afValidation === FormInputValidation.NEUTRAL,
3068
+ 'digi-form-input--success': this.afValidation === FormInputValidation.SUCCESS,
3069
+ 'digi-form-input--error': this.afValidation === FormInputValidation.ERROR,
3070
+ 'digi-form-input--warning': this.afValidation === FormInputValidation.WARNING,
3071
+ [`digi-form-input--button-variation-${this.afButtonVariation}`]: !!this.afButtonVariation,
3072
+ [`digi-form-input--has-button-${this.hasButton}`]: true,
3073
+ 'digi-form-input--empty': !this.afValue &&
3074
+ (!this.afValidation ||
3075
+ this.afValidation === FormInputValidation.NEUTRAL)
3076
+ };
3077
+ }
3078
+ blurHandler(e) {
3079
+ const trimableTypes = [
3080
+ FormInputType.TEXT,
3081
+ FormInputType.EMAIL,
3082
+ FormInputType.SEARCH,
3083
+ FormInputType.TEL,
3084
+ FormInputType.URL
3085
+ ];
3086
+ const shouldTrim = this.afTrimValue && trimableTypes.includes(this.afType);
3087
+ if (shouldTrim && typeof e.target.value === 'string') {
3088
+ const trimmedValue = e.target.value.trim();
3089
+ if (trimmedValue !== e.target.value) {
3090
+ this.afValue = this.value = trimmedValue;
3091
+ if (this._input) {
3092
+ this._input.value = trimmedValue;
3093
+ }
3094
+ // Emittar afOnInput så Angulars value accessor får det trimmade värdet
3095
+ this.afOnInput.emit(e);
3096
+ }
3097
+ }
3098
+ if (!this.touched) {
3099
+ this.afOnTouched.emit(e);
3100
+ this.touched = true;
3101
+ }
3102
+ this.afOnBlur.emit(e);
3103
+ }
3104
+ changeHandler(e) {
3105
+ this.setActiveValidationMessage();
3106
+ this.afOnChange.emit(e);
3107
+ }
3108
+ focusHandler(e) {
3109
+ this.afOnFocus.emit(e);
3110
+ }
3111
+ focusoutHandler(e) {
3112
+ this.afOnFocusout.emit(e);
3113
+ }
3114
+ keyupHandler(e) {
3115
+ this.afOnKeyup.emit(e);
3116
+ }
3117
+ inputHandler(e) {
3118
+ this.afValue = this.value =
3119
+ this.afType === FormInputType.NUMBER
3120
+ ? parseFloat(e.target.value)
3121
+ : e.target.value;
3122
+ if (!this.dirty) {
3123
+ this.afOnDirty.emit(e);
3124
+ this.dirty = true;
3125
+ }
3126
+ this.setActiveValidationMessage();
3127
+ this.afOnInput.emit(e);
3128
+ }
3129
+ setHasButton() {
3130
+ this.hasButton = !!this.hostElement.querySelector('[slot="button"]');
3131
+ }
3132
+ render() {
3133
+ return (h("div", { key: '1aa7540d3dab28be9c664bdf86d547c933a56e5a', class: Object.assign({ 'digi-form-input': true }, this.cssModifiers) }, h("digi-form-label", { key: 'c3b6ba7021e31f976d4d826677e126be2ed6857f', class: "digi-form-input__label", afFor: this.afId, afLabel: this.afLabel, afDescription: this.afLabelDescription, afRequired: this.afRequired, afAnnounceIfOptional: this.afAnnounceIfOptional, afRequiredText: this.afRequiredText, afAnnounceIfOptionalText: this.afAnnounceIfOptionalText }), h("div", { key: '9350f31f21c1df58e2f34c519deac15ebfa753f0', class: "digi-form-input__input-wrapper" }, h("input", Object.assign({ key: 'fa3dd27ef27d8cc40d0f6a96070fd8d59bdad307', class: "digi-form-input__input", ref: (el) => (this._input = el), onBlur: (e) => this.blurHandler(e), onChange: (e) => this.changeHandler(e), onFocus: (e) => this.focusHandler(e), onFocusout: (e) => this.focusoutHandler(e), onKeyUp: (e) => this.keyupHandler(e), onInput: (e) => this.inputHandler(e), "aria-activedescendant": this.afAriaActivedescendant, "aria-describedby": this.afAriaDescribedby, "aria-labelledby": this.afAriaLabelledby, "aria-autocomplete": this.afAriaAutocomplete, "aria-invalid": this.afValidation === FormInputValidation.ERROR ? 'true' : 'false', "aria-controls": this.afAriaControls, autocomplete: this.afAutocomplete, autofocus: this.afAutofocus ? this.afAutofocus : null, maxLength: this.afMaxlength, minLength: this.afMinlength, max: this.afMax, min: this.afMin, step: this.afStep, list: this.afList, role: this.afRole, dirName: this.afDirname, required: this.afRequired, id: this.afId, name: this.afName, type: this.afType, value: this.afValue }, (this.afInputmode == FormInputMode.DEFAULT
3134
+ ? {}
3135
+ : { inputmode: this.afInputmode }))), h("slot", { key: '278fadbcbb07a11f538b89839abb4f2072d3ac91', name: "button" })), h("div", { key: '0ede33dab7938cbee94ecaa5862f2b4ba13e300c', class: "digi-form-input__footer" }, h("div", { key: '8b1ecabcb74226fe7f79abaf6adc08a3cb2f1bcb', class: "digi-form-input__validation", "aria-atomic": "true", role: "alert", id: `${this.afId}--validation-message` }, this.hasActiveValidationMessage &&
3136
+ this.afValidation != FormInputValidation.NEUTRAL && (h("digi-form-validation-message", { key: 'eba577556027323c09c9e2f9e82c7cf7379dba02', class: "digi-form-input__validation-message", "af-variation": this.afValidation }, this.afValidationText))))));
3137
+ }
3138
+ get hostElement() { return getElement(this); }
3139
+ static get watchers() { return {
3140
+ "value": ["onValueChanged"],
3141
+ "afValue": ["onAfValueChanged"],
3142
+ "afValidationText": ["afValidationTextWatch"]
3143
+ }; }
3144
+ };
3145
+ FormInput.style = DigiFormInputStyle0;
3146
+
3147
+ const formLabelCss = ".sc-digi-form-label-h .digi-form-label.sc-digi-form-label{font-family:var(--digi--global--typography--font-family--default);font-size:var(--digi--typography--label--font-size--desktop);color:var(--digi--color--text--primary);display:flex;flex-direction:column}.sc-digi-form-label-h .digi-form-label__label--label.sc-digi-form-label{font-weight:var(--digi--typography--label--font-weight--desktop)}.sc-digi-form-label-h .digi-form-label__label--label.sc-digi-form-label,.sc-digi-form-label-h .digi-form-label__label--description.sc-digi-form-label{line-height:var(--digi--typography--label--line-height--desktop);cursor:pointer;display:block}.sc-digi-form-label-h .digi-form-label__label-group.sc-digi-form-label{display:inline-flex;align-items:center;gap:var(--digi--gutter--icon)}.sc-digi-form-label-h .digi-form-label__description.sc-digi-form-label{max-width:var(--digi--paragraph-width--medium);line-height:var(--digi--typography--label-description--line-height--desktop);font-size:var(--digi--typography--label-description--font-size--desktop)}";
3148
+ const DigiFormLabelStyle0 = formLabelCss;
3149
+
3150
+ const FormLabel = class {
3151
+ constructor(hostRef) {
3152
+ registerInstance(this, hostRef);
3153
+ this.labelText = undefined;
3154
+ this.hasActionSlot = undefined;
3155
+ this.afLabel = undefined;
3156
+ this.afId = randomIdGenerator('digi-form-label');
3157
+ this.afFor = undefined;
3158
+ this.afDescription = undefined;
3159
+ this.afRequired = undefined;
3160
+ this.afAnnounceIfOptional = false;
3161
+ this.afRequiredText = _t.required.toLowerCase();
3162
+ this.afAnnounceIfOptionalText = _t.optional.toLowerCase();
3163
+ }
3164
+ componentWillLoad() {
3165
+ this.setLabelText();
3166
+ this.validateFor();
3167
+ this.handleSlotVisibility();
3168
+ }
3169
+ validateFor() {
3170
+ if (this.afFor == null) {
3171
+ logger.warn(`digi-form-label must have a for attribute. Please add a for attribute using af-for`, this.hostElement);
3172
+ }
3173
+ }
3174
+ setLabelText() {
3175
+ this.labelText = `${this.afLabel} ${this.requiredText}`;
3176
+ if (!this.afLabel) {
3177
+ logger.warn(`digi-form-label must have a label. Please add a label using af-label`, this.hostElement);
3178
+ }
3179
+ }
3180
+ handleSlotVisibility() {
3181
+ this.hasActionSlot = !!this.hostElement.querySelector('[slot="actions"]');
3182
+ }
3183
+ get requiredText() {
3184
+ if (this.afRequired && !this.afAnnounceIfOptional) {
3185
+ return this.afRequiredText ? ` (${this.afRequiredText})` : '';
3186
+ }
3187
+ else if (!this.afRequired && this.afAnnounceIfOptional) {
3188
+ return this.afAnnounceIfOptionalText
3189
+ ? ` (${this.afAnnounceIfOptionalText})`
3190
+ : '';
3191
+ }
3192
+ else {
3193
+ return '';
3194
+ }
3195
+ }
3196
+ render() {
3197
+ return (h("div", { key: 'b48c9c4e5bd84efe850bd352254d20349f8fde6d', class: "digi-form-label" }, h("div", { key: 'db0c500e71aef86e579f232e80f9840a86e0f1e0', class: "digi-form-label__label-group" }, this.afFor && this.afLabel && (h("label", { key: 'febe4909de38322597c166dfbb047db88cedaad6', class: "digi-form-label__label", htmlFor: this.afFor, id: this.afId }, h("span", { key: '73a07ae177166aba5f1662186b0866e80b3dca84', class: "digi-form-label__label--label" }, this.labelText), this.afDescription && (h("span", { key: '499a131078bb931be9dfd08071782db081533f6b', class: "digi-form-label__label--description" }, this.afDescription)))), this.hasActionSlot && (h("div", { key: '4becc0a3cbb27fe90e793ff20f10783b29e1ad66', class: "digi-form-label__actions" }, h("slot", { key: 'f8bcbbe8e0a6940144c57ba12a9402961b8dbafa', name: "actions" }))))));
3198
+ }
3199
+ get hostElement() { return getElement(this); }
3200
+ static get watchers() { return {
3201
+ "afFor": ["validateFor"],
3202
+ "afLabel": ["setLabelText"],
3203
+ "afRequired": ["setLabelText"],
3204
+ "afAnnounceIfOptional": ["setLabelText"]
3205
+ }; }
3206
+ };
3207
+ FormLabel.style = DigiFormLabelStyle0;
3208
+
3209
+ const formSelectCss = ".digi--util--fs--xs.sc-digi-form-select{font-size:var(--digi--global--typography--font-size--small) !important}.digi--util--fs--s.sc-digi-form-select{font-size:calc(var(--digi--global--typography--font-size--small) + 1px) !important}.digi--util--fs--m.sc-digi-form-select{font-size:var(--digi--global--typography--font-size--base) !important}.digi--util--fs--l.sc-digi-form-select{font-size:var(--digi--global--typography--font-size--large) !important}.digi--util--fw--sb.sc-digi-form-select{font-weight:var(--digi--global--typography--font-weight--semibold) !important}.digi--util--pt--1.sc-digi-form-select{padding-top:var(--digi--global--spacing--smallest-2) !important}.digi--util--pt--10.sc-digi-form-select{padding-top:var(--digi--global--spacing--smallest) !important}.digi--util--pt--20.sc-digi-form-select{padding-top:var(--digi--global--spacing--base) !important}.digi--util--pt--30.sc-digi-form-select{padding-top:var(--digi--global--spacing--largest-2) !important}.digi--util--pt--40.sc-digi-form-select{padding-top:var(--digi--global--spacing--largest-4) !important}.digi--util--pt--50.sc-digi-form-select{padding-top:2.5rem !important}.digi--util--pt--60.sc-digi-form-select{padding-top:var(--digi--global--spacing--largest-5) !important}.digi--util--pt--70.sc-digi-form-select{padding-top:var(--digi--global--spacing--largest-6) !important}.digi--util--pt--80.sc-digi-form-select{padding-top:4.5rem !important}.digi--util--pt--90.sc-digi-form-select{padding-top:5rem !important}.digi--util--pb--1.sc-digi-form-select{padding-bottom:var(--digi--global--spacing--smallest-2) !important}.digi--util--pb--10.sc-digi-form-select{padding-bottom:var(--digi--global--spacing--smallest) !important}.digi--util--pb--20.sc-digi-form-select{padding-bottom:var(--digi--global--spacing--base) !important}.digi--util--pb--30.sc-digi-form-select{padding-bottom:var(--digi--global--spacing--largest-2) !important}.digi--util--pb--40.sc-digi-form-select{padding-bottom:var(--digi--global--spacing--largest-4) !important}.digi--util--pb--50.sc-digi-form-select{padding-bottom:2.5rem !important}.digi--util--pb--60.sc-digi-form-select{padding-bottom:var(--digi--global--spacing--largest-5) !important}.digi--util--pb--70.sc-digi-form-select{padding-bottom:var(--digi--global--spacing--largest-6) !important}.digi--util--pb--80.sc-digi-form-select{padding-bottom:4.5rem !important}.digi--util--pb--90.sc-digi-form-select{padding-bottom:5rem !important}.digi--util--p--1.sc-digi-form-select{padding:var(--digi--global--spacing--smallest-2) !important}.digi--util--p--10.sc-digi-form-select{padding:var(--digi--global--spacing--smallest) !important}.digi--util--p--20.sc-digi-form-select{padding:var(--digi--global--spacing--base) !important}.digi--util--p--30.sc-digi-form-select{padding:var(--digi--global--spacing--largest-2) !important}.digi--util--p--40.sc-digi-form-select{padding:var(--digi--global--spacing--largest-4) !important}.digi--util--p--50.sc-digi-form-select{padding:2.5rem !important}.digi--util--p--60.sc-digi-form-select{padding:var(--digi--global--spacing--largest-5) !important}.digi--util--p--70.sc-digi-form-select{padding:var(--digi--global--spacing--largest-6) !important}.digi--util--p--80.sc-digi-form-select{padding:4.5rem !important}.digi--util--p--90.sc-digi-form-select{padding:5rem !important}.digi--util--ptb--1.sc-digi-form-select{padding-top:var(--digi--global--spacing--smallest-2) !important;padding-bottom:var(--digi--global--spacing--smallest-2) !important}.digi--util--ptb--10.sc-digi-form-select{padding-top:var(--digi--global--spacing--smallest) !important;padding-bottom:var(--digi--global--spacing--smallest) !important}.digi--util--ptb--20.sc-digi-form-select{padding-top:var(--digi--global--spacing--base) !important;padding-bottom:var(--digi--global--spacing--base) !important}.digi--util--ptb--30.sc-digi-form-select{padding-top:var(--digi--global--spacing--largest-2) !important;padding-bottom:var(--digi--global--spacing--largest-2) !important}.digi--util--ptb--40.sc-digi-form-select{padding-top:var(--digi--global--spacing--largest-4) !important;padding-bottom:var(--digi--global--spacing--largest-4) !important}.digi--util--ptb--50.sc-digi-form-select{padding-top:2.5rem !important;padding-bottom:2.5rem !important}.digi--util--ptb--60.sc-digi-form-select{padding-top:var(--digi--global--spacing--largest-5) !important;padding-bottom:var(--digi--global--spacing--largest-5) !important}.digi--util--ptb--70.sc-digi-form-select{padding-top:var(--digi--global--spacing--largest-6) !important;padding-bottom:var(--digi--global--spacing--largest-6) !important}.digi--util--ptb--80.sc-digi-form-select{padding-top:4.5rem !important;padding-bottom:4.5rem !important}.digi--util--ptb--90.sc-digi-form-select{padding-top:5rem !important;padding-bottom:5rem !important}.digi--util--plr--1.sc-digi-form-select{padding-left:var(--digi--global--spacing--smallest-2) !important;padding-right:var(--digi--global--spacing--smallest-2) !important}.digi--util--plr--10.sc-digi-form-select{padding-left:var(--digi--global--spacing--smallest) !important;padding-right:var(--digi--global--spacing--smallest) !important}.digi--util--plr--20.sc-digi-form-select{padding-left:var(--digi--global--spacing--base) !important;padding-right:var(--digi--global--spacing--base) !important}.digi--util--plr--30.sc-digi-form-select{padding-left:var(--digi--global--spacing--largest-2) !important;padding-right:var(--digi--global--spacing--largest-2) !important}.digi--util--plr--40.sc-digi-form-select{padding-left:var(--digi--global--spacing--largest-4) !important;padding-right:var(--digi--global--spacing--largest-4) !important}.digi--util--plr--50.sc-digi-form-select{padding-left:2.5rem !important;padding-right:2.5rem !important}.digi--util--plr--60.sc-digi-form-select{padding-left:var(--digi--global--spacing--largest-5) !important;padding-right:var(--digi--global--spacing--largest-5) !important}.digi--util--plr--70.sc-digi-form-select{padding-left:var(--digi--global--spacing--largest-6) !important;padding-right:var(--digi--global--spacing--largest-6) !important}.digi--util--plr--80.sc-digi-form-select{padding-left:4.5rem !important;padding-right:4.5rem !important}.digi--util--plr--90.sc-digi-form-select{padding-left:5rem !important;padding-right:5rem !important}.digi--util--sr-only.sc-digi-form-select{border:0;clip:rect(1px, 1px, 1px, 1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.digi--util--hidden.sc-digi-form-select{display:none}.sc-digi-form-select-h{--digi--form-select--background--empty:var(--digi--color--background--input-empty);--digi--form-select--background--neutral:var(--digi--color--background--input);--digi--form-select--background--success:var(--digi--color--background--success-2);--digi--form-select--background--warning:var(--digi--color--background--warning-2);--digi--form-select--background--error:var(--digi--color--background--danger-2);--digi--form-select--border-color--neutral:var(--digi--color--border--neutral-3);--digi--form-select--border-color--success:var(--digi--color--border--success);--digi--form-select--border-color--warning:var(--digi--color--border--warning-2);--digi--form-select--border-color--error:var(--digi--color--border--danger);--digi--form-select--select-wrapper--position:relative;--digi--form-select--select--height--small:var(--digi--input-height--small);--digi--form-select--select--height--medium:var(--digi--input-height--medium);--digi--form-select--select--height--large:var(--digi--input-height--large);--digi--form-select--select--border-radius:var(--digi--border-radius--input);--digi--form-select--select--padding:0 var(--digi--gutter--medium);--digi--form-select--select--padding--inline-end:var(--digi--padding--large);--digi--form-select--select--border-width--neutral:var(--digi--border-width--input-regular);--digi--form-select--select--border-width--success:var(--digi--border-width--input-validation);--digi--form-select--select--border-width--error:var(--digi--border-width--input-validation);--digi--form-select--select--border-width--warning:var(--digi--border-width--input-validation);--digi--form-select--select--width:100%;--digi--form-select--select--font-size:var(--digi--typography--body--font-size--desktop);--digi--form-select--select-option--font-size:var(--digi--typography--body--font-size--desktop);--digi--form-select--label--margin-bottom:var(--digi--gutter--medium);--digi--form-select--icon--inline-end:0.75rem;--digi--form-select--icon--top:50%;--digi--form-select--icon--transform:translateY(-50%);--digi--form-select--icon--color:var(--digi--color--icons--primary);--digi--form-select--footer--margin-top:var(--digi--gutter--medium)}.sc-digi-form-select-h .digi-form-select.sc-digi-form-select{display:flex;flex-direction:column;gap:0.4em}.sc-digi-form-select-h .digi-form-select--neutral.sc-digi-form-select{--BORDER-WIDTH:var(--digi--form-select--select--border-width--neutral);--BORDER-COLOR:var(--digi--form-select--border-color--neutral);--BACKGROUND:var(--digi--form-select--background--neutral)}.sc-digi-form-select-h .digi-form-select--success.sc-digi-form-select{--BORDER-WIDTH:var(--digi--form-select--select--border-width--success);--BORDER-COLOR:var(--digi--form-select--border-color--success);--BACKGROUND:var(--digi--form-select--background--success)}.sc-digi-form-select-h .digi-form-select--warning.sc-digi-form-select{--BORDER-WIDTH:var(--digi--form-select--select--border-width--warning);--BORDER-COLOR:var(--digi--form-select--border-color--warning);--BACKGROUND:var(--digi--form-select--background--warning)}.sc-digi-form-select-h .digi-form-select--error.sc-digi-form-select{--BORDER-WIDTH:var(--digi--form-select--select--border-width--error);--BORDER-COLOR:var(--digi--form-select--border-color--error);--BACKGROUND:var(--digi--form-select--background--error)}.sc-digi-form-select-h .digi-form-select--small.sc-digi-form-select{--HEIGHT:var(--digi--form-select--select--height--small)}.sc-digi-form-select-h .digi-form-select--medium.sc-digi-form-select{--HEIGHT:var(--digi--form-select--select--height--medium)}.sc-digi-form-select-h .digi-form-select--large.sc-digi-form-select{--HEIGHT:var(--digi--form-select--select--height--large)}.sc-digi-form-select-h .digi-form-select--empty.sc-digi-form-select:not(:focus-within){--BACKGROUND:var(--digi--form-select--background--empty)}.sc-digi-form-select-h .digi-form-select__select.sc-digi-form-select{appearance:none;width:var(--digi--form-select--select--width);padding:var(--digi--form-select--select--padding);padding-inline-end:var(--digi--form-select--select--padding--inline-end);height:var(--HEIGHT);border:var(--BORDER-WIDTH) solid;border-radius:var(--digi--form-select--select--border-radius);border-color:var(--BORDER-COLOR);cursor:pointer;font-size:var(--digi--form-select--select--font-size);color:var(--digi--color--text--primary);background:var(--BACKGROUND);font-family:var(--digi--global--typography--font-family--default)}.sc-digi-form-select-h .digi-form-select__select-wrapper.sc-digi-form-select{position:var(--digi--form-select--select-wrapper--position)}.sc-digi-form-select-h .digi-form-select__select-option.sc-digi-form-select{font-size:var(--digi--form-select--select-option--font-size)}@media (min-width: 48rem){.sc-digi-form-select-h .digi-form-select__select-option.sc-digi-form-select{--digi--form-select--select-option--font-size:var(\n --digi--typography--font-size--l\n )}}.sc-digi-form-select-h .digi-form-select__select.sc-digi-form-select::-ms-expand{display:none}.sc-digi-form-select-h .digi-form-select__select.sc-digi-form-select:focus-visible{outline:2px solid black;outline-offset:2px;box-shadow:0px 0px 0px 5px white}.sc-digi-form-select-h .digi-form-select__icon.sc-digi-form-select{position:absolute;inset-inline-end:var(--digi--form-select--icon--inline-end);inset-block-start:var(--digi--form-select--icon--top);transform:var(--digi--form-select--icon--transform);pointer-events:none;color:var(--digi--form-select--icon--color)}.digi-form-select--neutral.sc-digi-form-select .digi-form-select__footer.sc-digi-form-select{position:absolute}";
3210
+ const DigiFormSelectStyle0 = formSelectCss;
3211
+
3212
+ const FormSelect = class {
3213
+ constructor(hostRef) {
3214
+ registerInstance(this, hostRef);
3215
+ this.afOnChange = createEvent(this, "afOnChange", 7);
3216
+ this.afOnSelect = createEvent(this, "afOnSelect", 7);
3217
+ this.afOnFocus = createEvent(this, "afOnFocus", 7);
3218
+ this.afOnFocusout = createEvent(this, "afOnFocusout", 7);
3219
+ this.afOnBlur = createEvent(this, "afOnBlur", 7);
3220
+ this.afOnDirty = createEvent(this, "afOnDirty", 7);
3221
+ this.afOnReady = createEvent(this, "afOnReady", 3);
3222
+ this.optionItems = [];
3223
+ this.dirty = false;
3224
+ this.touched = false;
3225
+ this.hasPlaceholder = false;
3226
+ this.afLabel = undefined;
3227
+ this.afAriaLabel = undefined;
3228
+ this.afRequired = undefined;
3229
+ this.afRequiredText = undefined;
3230
+ this.afPlaceholder = undefined;
3231
+ this.afAnnounceIfOptional = false;
3232
+ this.afAnnounceIfOptionalText = undefined;
3233
+ this.afId = randomIdGenerator('digi-form-select');
3234
+ this.afName = undefined;
3235
+ this.afDescription = undefined;
3236
+ this.value = undefined;
3237
+ this.afValue = undefined;
3238
+ this.afDisableValidation = undefined;
3239
+ this.afVariation = FormSelectVariation.MEDIUM;
3240
+ this.afValidation = FormSelectValidation.NEUTRAL;
3241
+ this.afValidationText = undefined;
3242
+ this.afStartSelected = undefined;
3243
+ this.afAutofocus = undefined;
3244
+ }
3245
+ onValueChanged(value) {
3246
+ this.afValue = value;
3247
+ }
3248
+ onAfValueChanged(value) {
3249
+ this.value = value;
3250
+ }
3251
+ getOptions() {
3252
+ this.checkIfPlaceholder();
3253
+ const options = this._observer.children;
3254
+ if (!options || options.length <= 0) {
3255
+ logger.warn(`The slot contains no option elements.`, this.hostElement);
3256
+ return;
3257
+ }
3258
+ this.optionItems = [...Array.from(options)]
3259
+ .filter((el) => el.tagName.toLowerCase() === 'option')
3260
+ .map((el) => {
3261
+ return {
3262
+ value: el['value'],
3263
+ text: el['text']
3264
+ };
3265
+ });
3266
+ }
3267
+ checkIfPlaceholder() {
3268
+ this.hasPlaceholder = !!this.afPlaceholder;
3269
+ }
3270
+ componentWillLoad() {
3271
+ this.afValue ? (this.value = this.afValue) : (this.afValue = this.value);
3272
+ }
3273
+ componentDidLoad() {
3274
+ this.getOptions();
3275
+ this.afStartSelected &&
3276
+ (this.afValue = this.optionItems[this.afStartSelected].value);
3277
+ this.afOnReady.emit();
3278
+ }
3279
+ /**
3280
+ * Returnerar en referens till formulärkontrollelementet.
3281
+ * @en Returns a reference to the form control element.
3282
+ */
3283
+ async afMGetFormControlElement() {
3284
+ return this._select;
3285
+ }
3286
+ get cssModifiers() {
3287
+ return {
3288
+ 'digi-form-select--small': this.afVariation === FormSelectVariation.SMALL,
3289
+ 'digi-form-select--medium': this.afVariation === FormSelectVariation.MEDIUM,
3290
+ 'digi-form-select--large': this.afVariation === FormSelectVariation.LARGE,
3291
+ 'digi-form-select--neutral': this.afValidation === FormSelectValidation.NEUTRAL,
3292
+ 'digi-form-select--success': this.afValidation === FormSelectValidation.SUCCESS,
3293
+ 'digi-form-select--warning': this.afValidation === FormSelectValidation.WARNING,
3294
+ 'digi-form-select--error': this.afValidation === FormSelectValidation.ERROR,
3295
+ 'digi-form-select--empty': !this.afValue &&
3296
+ (!this.afValidation ||
3297
+ this.afValidation === FormSelectValidation.NEUTRAL)
3298
+ };
3299
+ }
3300
+ changeHandler(e) {
3301
+ if (!this.dirty) {
3302
+ this.afOnDirty.emit(e);
3303
+ this.dirty = true;
3304
+ }
3305
+ this.value = this.afValue = e.target.value;
3306
+ this.afOnChange.emit(e);
3307
+ }
3308
+ selectHandler(e) {
3309
+ this.value = this.afValue = e.target.value;
3310
+ this.afOnSelect.emit(e);
3311
+ }
3312
+ focusHandler(e) {
3313
+ this.afOnFocus.emit(e);
3314
+ }
3315
+ focusoutHandler(e) {
3316
+ this.afOnFocusout.emit(e);
3317
+ }
3318
+ blurHandler(e) {
3319
+ this.afOnBlur.emit(e);
3320
+ }
3321
+ getSelectedItem(option) {
3322
+ return this.afValue == option.value;
3323
+ }
3324
+ showValidation() {
3325
+ return !this.afDisableValidation &&
3326
+ this.afValidation !== FormSelectValidation.NEUTRAL &&
3327
+ this.afValidationText
3328
+ ? true
3329
+ : false;
3330
+ }
3331
+ render() {
3332
+ return (h("div", { key: '91a5e871b434693ca389e5c8e84848c7fcad072e', class: Object.assign({ 'digi-form-select': true }, this.cssModifiers) }, h("div", { key: '07e19dda0da93f2c90f6778a78f58dc8fbfb7719', class: "digi-form-select__label-group" }, h("digi-form-label", { key: '0cd1af36f92f12dcbe5666b2d6ff2e3c160addf9', afFor: this.afId, afLabel: this.afLabel, afId: `${this.afId}-label`, afDescription: this.afDescription, afRequired: this.afRequired, afAnnounceIfOptional: this.afAnnounceIfOptional, afRequiredText: this.afRequiredText, afAnnounceIfOptionalText: this.afAnnounceIfOptionalText })), h("div", { key: '5736e9079bee6e2483932ab4b43a4cbfe5b92546', class: "digi-form-select__select-wrapper" }, h("select", { key: 'f9cc95a6ee131aca825e966b9421151f12f5e32b', class: "digi-form-select__select", name: this.afName, id: this.afId, "aria-label": this.afAriaLabel, "aria-invalid": this.afValidation === FormSelectValidation.ERROR
3333
+ ? 'true'
3334
+ : 'false', ref: (el) => (this._select = el), required: this.afRequired ? this.afRequired : null, onFocus: (e) => this.focusHandler(e), onFocusout: (e) => this.focusoutHandler(e), onBlur: (e) => this.blurHandler(e), onChange: (e) => this.changeHandler(e), onInput: (e) => this.selectHandler(e), autoFocus: this.afAutofocus ? this.afAutofocus : null }, this.hasPlaceholder && (h("option", { key: 'feaffa13b689a0d49e62d16288c7f5977b847ce7', class: {
3335
+ 'digi-form-select__select-option': true,
3336
+ 'digi-form-select__select-option--initial-value': true
3337
+ }, disabled: true, selected: !this.afValue, value: "" }, this.afPlaceholder)), this.optionItems.map((option, index) => {
3338
+ return (h("option", { key: index, class: "digi-form-select__select-option", value: option.value, selected: this.getSelectedItem(option) }, option.text));
3339
+ })), h("digi-icon-input-select-marker", { key: 'de46b02650159f597f732423156011773b8fe963', class: "digi-form-select__icon", slot: "icon" })), h("digi-util-mutation-observer", { key: 'e7e91d5fdc70713cc19175bff232c70135872609', hidden: true, ref: (el) => (this._observer = el), onAfOnChange: (e) => {
3340
+ e.stopImmediatePropagation();
3341
+ this.getOptions();
3342
+ } }, h("slot", { key: '57475c6695e247234d88b4eda5e2e1063eb67ca9' })), h("div", { key: '10a3deb7f116c074ce154327b3d86bb0f7de15ed', class: "digi-form-select__footer" }, h("div", { key: 'af206ea4a03cbfb56e56c423d654f8e6a3429628', "aria-atomic": "true", role: "alert", id: `${this.afId}--validation-message` }, this.showValidation() && (h("digi-form-validation-message", { key: '9fb481198687f9349bde3848a50be16ebfb80bd2', "af-variation": this.afValidation }, this.afValidationText))))));
3343
+ }
3344
+ get hostElement() { return getElement(this); }
3345
+ static get watchers() { return {
3346
+ "value": ["onValueChanged"],
3347
+ "afValue": ["onAfValueChanged"]
3348
+ }; }
3349
+ };
3350
+ FormSelect.style = DigiFormSelectStyle0;
3351
+
3352
+ const formValidationMessageCss = ".sc-digi-form-validation-message-h{--digi--form-validation-message--icon-color--success:var(--digi--color--icons--success);--digi--form-validation-message--icon-color--warning:var(--digi--color--icons--warning);--digi--form-validation-message--icon-color--error:var(--digi--color--icons--danger)}.sc-digi-form-validation-message-h .digi-form-validation-message.sc-digi-form-validation-message{display:flex;flex-wrap:wrap;align-items:center}.sc-digi-form-validation-message-h .digi-form-validation-message--success.sc-digi-form-validation-message{--ICON-COLOR:var(--digi--form-validation-message--icon-color--success)}.sc-digi-form-validation-message-h .digi-form-validation-message--warning.sc-digi-form-validation-message{--ICON-COLOR:var(--digi--form-validation-message--icon-color--warning)}.sc-digi-form-validation-message-h .digi-form-validation-message--error.sc-digi-form-validation-message{--ICON-COLOR:var(--digi--form-validation-message--icon-color--error)}.sc-digi-form-validation-message-h .digi-form-validation-message__icon.sc-digi-form-validation-message{color:var(--ICON-COLOR);margin-inline-end:var(--digi--gutter--icon)}.sc-digi-form-validation-message-h .digi-form-validation-message__icon.sc-digi-form-validation-message>*.sc-digi-form-validation-message{--digi--icon--width:1.25em;--digi--icon--height:1.25em;--digi--icon--color:var(--ICON-COLOR);display:flex}.sc-digi-form-validation-message-h .digi-form-validation-message__text.sc-digi-form-validation-message{flex:1;font-family:var(--digi--global--typography--font-family--default);font-size:var(--digi--typography--tag--font-size--desktop);color:var(--digi--color--text--primary)}";
3353
+ const DigiFormValidationMessageStyle0 = formValidationMessageCss;
3354
+
3355
+ const FormValidationMessage = class {
3356
+ constructor(hostRef) {
3357
+ registerInstance(this, hostRef);
3358
+ this.afVariation = FormValidationMessageVariation.SUCCESS;
3359
+ }
3360
+ get cssModifiers() {
3361
+ return {
3362
+ 'digi-form-validation-message--success': this.afVariation === FormValidationMessageVariation.SUCCESS,
3363
+ 'digi-form-validation-message--error': this.afVariation === FormValidationMessageVariation.ERROR,
3364
+ 'digi-form-validation-message--warning': this.afVariation === FormValidationMessageVariation.WARNING
3365
+ };
3366
+ }
3367
+ get icon() {
3368
+ switch (this.afVariation) {
3369
+ case FormValidationMessageVariation.SUCCESS:
3370
+ return h("digi-icon-validation-success", null);
3371
+ case FormValidationMessageVariation.ERROR:
3372
+ return h("digi-icon-validation-error", null);
3373
+ case FormValidationMessageVariation.WARNING:
3374
+ return h("digi-icon-validation-warning", null);
3375
+ }
3376
+ }
3377
+ render() {
3378
+ return (h("div", { key: '36e7b16642138c72ff6b700a38ad231afc00e0e0', class: Object.assign({ 'digi-form-validation-message': true }, this.cssModifiers) }, h("div", { key: 'a7919996faded84c3736bdabbb2e7cf745c7c209', class: "digi-form-validation-message__icon", "aria-hidden": "true" }, this.icon), h("span", { key: '004c8c730cd4162d60d90f826e7aed2f400deec7', class: "digi-form-validation-message__text" }, h("slot", { key: '0cd61a84e84b0609c50063ad89c9f1a14f682b41' }))));
3379
+ }
3380
+ get hostElement() { return getElement(this); }
3381
+ };
3382
+ FormValidationMessage.style = DigiFormValidationMessageStyle0;
3383
+
3384
+ const iconCalendarAltCss = ".sc-digi-icon-calendar-alt-h{--digi--icon--color:var(--digi--color--icons--primary);--digi--icon--width:initial;--digi--icon--height:auto;display:flex;min-height:1.4em;align-items:center}.sc-digi-icon-calendar-alt-h svg.sc-digi-icon-calendar-alt{color:var(--digi--icon--color);max-width:var(--digi--icon--width);max-height:var(--digi--icon--height);width:var(--digi--icon--width, auto);height:var(--digi--icon--height, auto)}";
3385
+ const DigiIconCalendarAltStyle0 = iconCalendarAltCss;
3386
+
3387
+ const IconCalendarAlt = class {
3388
+ constructor(hostRef) {
3389
+ registerInstance(this, hostRef);
3390
+ this.afTitle = undefined;
3391
+ this.afDesc = undefined;
3392
+ this.afSvgAriaHidden = true;
3393
+ this.afSvgAriaLabelledby = undefined;
3394
+ this.titleId = randomIdGenerator('icontitle');
3395
+ }
3396
+ render() {
3397
+ return (h("svg", { key: '717dea2fb09a3cf7b12e4feb9b879715b9a21493', class: "digi-icon-calendar-alt", width: "22", height: "26", viewBox: "0 0 22 26", "aria-hidden": this.afSvgAriaHidden ? 'true' : 'false', "aria-labelledby": this.afSvgAriaLabelledby
3398
+ ? this.afSvgAriaLabelledby
3399
+ : this.afTitle
3400
+ ? this.titleId
3401
+ : undefined, xmlns: "http://www.w3.org/2000/svg" }, this.afTitle && h("title", { key: 'e365ef1b093c66b7a0542a1783179f7bb613c785', id: this.titleId }, this.afTitle), this.afDesc && h("desc", { key: 'ae3b11661fb765c26a36af123cb387241d67da6e' }, this.afDesc), h("path", { key: 'a794cb9d725f7cb96510aba86d76d24d294a4749', class: "digi-icon-calendar-alt__shape", d: "M21.41 8.125H.59a.601.601 0 01-.59-.61V5.689C0 4.341 1.056 3.25 2.357 3.25h2.357V.61c0-.336.265-.61.59-.61h1.964c.324 0 .59.274.59.61v2.64h6.285V.61c0-.336.265-.61.59-.61h1.963c.325 0 .59.274.59.61v2.64h2.357C20.944 3.25 22 4.342 22 5.688v1.828c0 .335-.265.609-.59.609zM.59 9.75h20.82c.325 0 .59.274.59.61v13.203C22 24.907 20.944 26 19.643 26H2.357C1.056 26 0 24.908 0 23.562V10.36c0-.335.265-.609.59-.609zm5.696 10.36a.601.601 0 00-.59-.61H3.732a.601.601 0 00-.59.61v2.03c0 .336.266.61.59.61h1.964c.325 0 .59-.274.59-.61v-2.03zm0-6.5a.601.601 0 00-.59-.61H3.732a.601.601 0 00-.59.61v2.03c0 .336.266.61.59.61h1.964c.325 0 .59-.274.59-.61v-2.03zm6.285 6.5a.601.601 0 00-.589-.61h-1.964a.601.601 0 00-.59.61v2.03c0 .336.266.61.59.61h1.964c.324 0 .59-.274.59-.61v-2.03zm0-6.5a.601.601 0 00-.589-.61h-1.964a.601.601 0 00-.59.61v2.03c0 .336.266.61.59.61h1.964c.324 0 .59-.274.59-.61v-2.03zm6.286 6.5a.601.601 0 00-.59-.61h-1.963a.601.601 0 00-.59.61v2.03c0 .336.265.61.59.61h1.964c.324 0 .59-.274.59-.61v-2.03zm0-6.5a.601.601 0 00-.59-.61h-1.963a.601.601 0 00-.59.61v2.03c0 .336.265.61.59.61h1.964c.324 0 .59-.274.59-.61v-2.03z", fill: "currentColor", "fill-rule": "nonzero" })));
3402
+ }
3403
+ };
3404
+ IconCalendarAlt.style = DigiIconCalendarAltStyle0;
3405
+
3406
+ const iconChevronLeftCss = ".sc-digi-icon-chevron-left-h{--digi--icon--color:var(--digi--color--icons--primary);--digi--icon--width:initial;--digi--icon--height:auto;display:flex;min-height:1.4em;align-items:center}.sc-digi-icon-chevron-left-h svg.sc-digi-icon-chevron-left{color:var(--digi--icon--color);max-width:var(--digi--icon--width);max-height:var(--digi--icon--height);width:var(--digi--icon--width, auto);height:var(--digi--icon--height, auto)}";
3407
+ const DigiIconChevronLeftStyle0 = iconChevronLeftCss;
3408
+
3409
+ const IconChevronLeft = class {
3410
+ constructor(hostRef) {
3411
+ registerInstance(this, hostRef);
3412
+ this.afTitle = undefined;
3413
+ this.afDesc = undefined;
3414
+ this.afSvgAriaHidden = true;
3415
+ this.afSvgAriaLabelledby = undefined;
3416
+ this.titleId = randomIdGenerator('icontitle');
3417
+ }
3418
+ render() {
3419
+ return (h("svg", { key: '270c79be5a401a8379049f3a2a3e8879b4726dc4', class: "digi-icon-chevron-left", width: "9", height: "14", viewBox: "0 0 9 14", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": this.afSvgAriaHidden ? 'true' : 'false', "aria-labelledby": this.afSvgAriaLabelledby
3420
+ ? this.afSvgAriaLabelledby
3421
+ : this.afTitle
3422
+ ? this.titleId
3423
+ : undefined }, this.afTitle && h("title", { key: 'd037a28ce82daa37205b708fdb5fa063e4eef4f1', id: this.titleId }, this.afTitle), this.afDesc && h("desc", { key: '9d8c7e5784556619124a0b60c05eae08e35e9464' }, this.afDesc), h("path", { key: '3b6f2550b3022beaa736e4702bf0103663a1aea6', class: "digi-icon-chevron-left__shape", d: "M8 13L2 6.926 7.853 1", stroke: "currentColor", "stroke-width": "2", fill: "none", "fill-rule": "evenodd" })));
3424
+ }
3425
+ };
3426
+ IconChevronLeft.style = DigiIconChevronLeftStyle0;
3427
+
3428
+ const iconChevronRightCss = ".sc-digi-icon-chevron-right-h{--digi--icon--color:var(--digi--color--icons--primary);--digi--icon--width:initial;--digi--icon--height:auto;display:flex;min-height:1.4em;align-items:center}.sc-digi-icon-chevron-right-h svg.sc-digi-icon-chevron-right{color:var(--digi--icon--color);max-width:var(--digi--icon--width);max-height:var(--digi--icon--height);width:var(--digi--icon--width, auto);height:var(--digi--icon--height, auto)}";
3429
+ const DigiIconChevronRightStyle0 = iconChevronRightCss;
3430
+
3431
+ const IconChevronRight = class {
3432
+ constructor(hostRef) {
3433
+ registerInstance(this, hostRef);
3434
+ this.afTitle = undefined;
3435
+ this.afDesc = undefined;
3436
+ this.afSvgAriaHidden = true;
3437
+ this.afSvgAriaLabelledby = undefined;
3438
+ this.titleId = randomIdGenerator('icontitle');
3439
+ }
3440
+ render() {
3441
+ return (h("svg", { key: '68185d039e92ea914b081d7340634d811f51f492', class: "digi-icon-chevron-right", width: "9", height: "14", viewBox: "0 0 9 14", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": this.afSvgAriaHidden ? 'true' : 'false', "aria-labelledby": this.afSvgAriaLabelledby
3442
+ ? this.afSvgAriaLabelledby
3443
+ : this.afTitle
3444
+ ? this.titleId
3445
+ : undefined }, this.afTitle && h("title", { key: '2d5e9ee86f056a11b9a11e5a838d74140fbb35f2', id: this.titleId }, this.afTitle), this.afDesc && h("desc", { key: '0745cb39d634686b396033dc3adddd7b79afcf30' }, this.afDesc), h("path", { key: '8cce9cc1838fc0b53e405c6ca78abf356e5dae0d', class: "digi-icon-chevron-right__shape", d: "M1 13l6-6.074L1.147 1", stroke: "currentColor", "stroke-width": "2", fill: "none", "fill-rule": "evenodd" })));
3446
+ }
3447
+ };
3448
+ IconChevronRight.style = DigiIconChevronRightStyle0;
3449
+
3450
+ const iconInputSelectMarkerCss = ".sc-digi-icon-input-select-marker-h{--digi--icon--color:var(--digi--color--icons--primary);--digi--icon--width:initial;--digi--icon--height:auto;display:flex;min-height:1.4em;align-items:center}.sc-digi-icon-input-select-marker-h svg.sc-digi-icon-input-select-marker{color:var(--digi--icon--color);max-width:var(--digi--icon--width);max-height:var(--digi--icon--height);width:var(--digi--icon--width, auto);height:var(--digi--icon--height, auto)}";
3451
+ const DigiIconInputSelectMarkerStyle0 = iconInputSelectMarkerCss;
3452
+
3453
+ const IconInputSelectMarker = class {
3454
+ constructor(hostRef) {
3455
+ registerInstance(this, hostRef);
3456
+ this.afTitle = undefined;
3457
+ this.afDesc = undefined;
3458
+ this.afSvgAriaHidden = true;
3459
+ this.afSvgAriaLabelledby = undefined;
3460
+ this.titleId = randomIdGenerator('icon-input-select-marker');
3461
+ }
3462
+ render() {
3463
+ return (h("svg", { key: 'b1c2af5879cec1294170dcaf2feef73d43b4927c', class: "digi-icon-input-select-marker", width: "14", height: "8", viewBox: "0 0 14 8", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": this.afSvgAriaHidden ? 'true' : 'false', "aria-labelledby": this.afSvgAriaLabelledby
3464
+ ? this.afSvgAriaLabelledby
3465
+ : this.afTitle
3466
+ ? this.titleId
3467
+ : undefined }, this.afTitle && h("title", { key: '426f57c838fc6878ef989422bf399a4a967fa127', id: this.titleId }, this.afTitle), this.afDesc && h("desc", { key: '125a12c09683e9289e9c6bc5684f2e322ebc3e4d' }, this.afDesc), h("path", { key: 'beb311202e133f7bcf33b102e72b46081e3b9b16', d: "M1 1l6.074 6L13 1.147", stroke: "currentColor", "stroke-width": "2", fill: "none", "fill-rule": "evenodd" })));
3468
+ }
3469
+ };
3470
+ IconInputSelectMarker.style = DigiIconInputSelectMarkerStyle0;
3471
+
3472
+ const iconValidationErrorCss = ".sc-digi-icon-validation-error-h{--digi--icon--color:var(--digi--color--icons--primary);--digi--icon--width:initial;--digi--icon--height:auto;display:flex;min-height:1.4em;align-items:center}.sc-digi-icon-validation-error-h svg.sc-digi-icon-validation-error{color:var(--digi--icon--color);max-width:var(--digi--icon--width);max-height:var(--digi--icon--height);width:var(--digi--icon--width, auto);height:var(--digi--icon--height, auto)}";
3473
+ const DigiIconValidationErrorStyle0 = iconValidationErrorCss;
3474
+
3475
+ const IconValidationError = class {
3476
+ constructor(hostRef) {
3477
+ registerInstance(this, hostRef);
3478
+ this.afTitle = undefined;
3479
+ this.afDesc = undefined;
3480
+ this.afSvgAriaHidden = true;
3481
+ this.afSvgAriaLabelledby = undefined;
3482
+ this.titleId = randomIdGenerator('icontitle');
3483
+ }
3484
+ render() {
3485
+ return (h("svg", { key: 'e5926faf5138de2f678ceaa64d0ec68f2f441167', class: "digi-icon-validation-error", width: "48", height: "48", viewBox: "0 0 48 48", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": this.afSvgAriaHidden ? 'true' : 'false', "aria-labelledby": this.afSvgAriaLabelledby
3486
+ ? this.afSvgAriaLabelledby
3487
+ : this.afTitle
3488
+ ? this.titleId
3489
+ : undefined }, this.afTitle && h("title", { key: 'd822ccc0d2f55fa4f28efdd1121f35ef084ccf4a', id: this.titleId }, this.afTitle), this.afDesc && h("desc", { key: '5415f721eb24785451786ed2e83ab0c86e708996' }, this.afDesc), h("path", { key: 'fe92d9254af99570ef6e3e6dc1f332817804c2c9', class: "digi-icon-validation-error__shape", d: "M34.4328058,0 C35.5494848,0 36.5900526,0.609146757 37.1483921,1.58958113 L47.5812454,19.9104189 C48.1395849,20.8909496 48.1395849,22.1090504 47.5812454,23.0895811 L37.1483921,41.4104189 C36.5900526,42.3908532 35.5494848,43 34.4328058,43 L13.5671942,43 C12.4505152,43 11.4099474,42.3908532 10.8516079,41.4104189 L0.41875464,23.0895811 C-0.13958488,22.1090504 -0.13958488,20.8909496 0.41875464,19.9104189 L10.8516079,1.58958113 C11.4099474,0.609146757 12.4505152,0 13.5671942,0 Z M18.6736823,12.3728178 C18.2711762,11.964729 17.6203819,11.964729 17.2178757,12.3728178 L15.2825964,14.334939 C14.8800903,14.7430278 14.8800903,15.4028485 15.2825964,15.8109373 L20.6089616,21.2111779 L15.2825964,26.6114185 C14.8800903,27.0195074 14.8800903,27.6793281 15.2825964,28.0874169 L17.2178757,30.049538 C17.6203819,30.4576269 18.2711762,30.4576269 18.6736823,30.049538 L24.0000475,24.6492974 L29.3264127,30.049538 C29.7289188,30.4576269 30.3797132,30.4576269 30.7822193,30.049538 L32.7174986,28.0874169 C33.1200048,27.6793281 33.1200048,27.0195074 32.7174986,26.6114185 L27.3911334,21.2111779 L32.7174986,15.8109373 C33.1200048,15.4028485 33.1200048,14.7430278 32.7174986,14.334939 L30.7822193,12.3728178 C30.3797132,11.964729 29.7289188,11.964729 29.3264127,12.3728178 L24.0000475,17.7730584 Z", fill: "currentColor", "fill-rule": "nonzero" })));
3490
+ }
3491
+ };
3492
+ IconValidationError.style = DigiIconValidationErrorStyle0;
3493
+
3494
+ const iconValidationSuccessCss = ".sc-digi-icon-validation-success-h{--digi--icon--color:var(--digi--color--icons--primary);--digi--icon--width:initial;--digi--icon--height:auto;display:flex;min-height:1.4em;align-items:center}.sc-digi-icon-validation-success-h svg.sc-digi-icon-validation-success{color:var(--digi--icon--color);max-width:var(--digi--icon--width);max-height:var(--digi--icon--height);width:var(--digi--icon--width, auto);height:var(--digi--icon--height, auto)}";
3495
+ const DigiIconValidationSuccessStyle0 = iconValidationSuccessCss;
3496
+
3497
+ const IconCheckCircle = class {
3498
+ constructor(hostRef) {
3499
+ registerInstance(this, hostRef);
3500
+ this.afTitle = undefined;
3501
+ this.afDesc = undefined;
3502
+ this.afSvgAriaHidden = true;
3503
+ this.afSvgAriaLabelledby = undefined;
3504
+ this.titleId = randomIdGenerator('icontitle');
3505
+ }
3506
+ render() {
3507
+ return (h("svg", { key: '41d3993b98edbb949475cc3bafffd7623627e687', class: "digi-icon-validation-success", width: "25", height: "25", viewBox: "0 0 25 25", "aria-hidden": this.afSvgAriaHidden ? 'true' : 'false', "aria-labelledby": this.afSvgAriaLabelledby
3508
+ ? this.afSvgAriaLabelledby
3509
+ : this.afTitle
3510
+ ? this.titleId
3511
+ : undefined, xmlns: "http://www.w3.org/2000/svg" }, this.afTitle && h("title", { key: 'ba0cbe303c02f48953b41565035ad1e31d35dd05', id: this.titleId }, this.afTitle), this.afDesc && h("desc", { key: 'ee85ecc4d62ac8f299a587eb0bd06915784d0206' }, this.afDesc), h("path", { key: '170aba20ee2ddc3127b0ded6f2df15a5703ce633', class: "digi-icon-validation-success__shape", d: "M25 12.5C25 19.404 19.404 25 12.5 25S0 19.404 0 12.5 5.596 0 12.5 0 25 5.596 25 12.5zm-13.946 6.619l9.274-9.275a.806.806 0 000-1.14l-1.14-1.14a.806.806 0 00-1.14 0l-7.564 7.563-3.531-3.531a.807.807 0 00-1.14 0l-1.141 1.14a.806.806 0 000 1.14l5.242 5.243a.806.806 0 001.14 0z", fill: "currentColor", "fill-rule": "nonzero" })));
3512
+ }
3513
+ };
3514
+ IconCheckCircle.style = DigiIconValidationSuccessStyle0;
3515
+
3516
+ const iconValidationWarningCss = ".sc-digi-icon-validation-warning-h{--digi--icon--color:var(--digi--color--icons--primary);--digi--icon--width:initial;--digi--icon--height:auto;display:flex;min-height:1.4em;align-items:center}.sc-digi-icon-validation-warning-h svg.sc-digi-icon-validation-warning{color:var(--digi--icon--color);max-width:var(--digi--icon--width);max-height:var(--digi--icon--height);width:var(--digi--icon--width, auto);height:var(--digi--icon--height, auto)}";
3517
+ const DigiIconValidationWarningStyle0 = iconValidationWarningCss;
3518
+
3519
+ const IconValidationWarning = class {
3520
+ constructor(hostRef) {
3521
+ registerInstance(this, hostRef);
3522
+ this.afTitle = undefined;
3523
+ this.afDesc = undefined;
3524
+ this.afSvgAriaHidden = true;
3525
+ this.afSvgAriaLabelledby = undefined;
3526
+ this.titleId = randomIdGenerator('icontitle');
3527
+ }
3528
+ render() {
3529
+ return (h("div", { key: '3d2603c36948ea130fd95859372c1dd8cd7546c2' }, h("svg", { key: '1c9cc8327c739a5705d42dd684811841c0adac21', class: "digi-icon-validation-warning", width: "18", height: "18", viewBox: "0 0 18 18", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": this.afSvgAriaHidden ? 'true' : 'false', "aria-labelledby": this.afSvgAriaLabelledby
3530
+ ? this.afSvgAriaLabelledby
3531
+ : this.afTitle
3532
+ ? this.titleId
3533
+ : undefined }, this.afTitle && h("title", { key: '4d9d37418650040068cc7e139dc1166070779b6f', id: this.titleId }, this.afTitle), this.afDesc && h("desc", { key: '62b30166ecb5960a6f98d06dbf0bb0f8f1e5ffd6' }, this.afDesc), h("g", { key: '6731b721bfb44bd7bc18e7a4948a7a0c04298c61', fill: "none", "fill-rule": "evenodd" }, h("circle", { key: '07f862279ab37e0d898545fddf1264c3b1b2f2ce', cx: "9", cy: "9", r: "6.75", fill: "#333" }), h("path", { key: 'bdd59d64cb3c2235c243dbfa79f18fbeac82306b', d: "m18 9c0 4.9717-4.0298 9-9 9-4.9702 0-9-4.0283-9-9 0-4.9688 4.0298-9 9-9 4.9702 0 9 4.0312 9 9zm-9 1.8145c-0.92196 0-1.6694 0.7474-1.6694 1.6694 0 0.92196 0.7474 1.6694 1.6694 1.6694s1.6694-0.7474 1.6694-1.6694c0-0.92196-0.7474-1.6694-1.6694-1.6694zm-1.3157-1.065c0.012593 0.23095 0.20355 0.41175 0.43483 0.41175h1.7618c0.23128 0 0.42224-0.1808 0.43483-0.41175l0.2692-4.9355c0.013609-0.24946-0.18501-0.45922-0.43483-0.45922h-2.3002c-0.24982 0-0.4484 0.20976-0.43479 0.45922l0.2692 4.9355z", fill: "#FFE200" })))));
3534
+ }
3535
+ };
3536
+ IconValidationWarning.style = DigiIconValidationWarningStyle0;
3537
+
3538
+ const typographyCss = ".digi--util--fs--xs{font-size:var(--digi--global--typography--font-size--small) !important}.digi--util--fs--s{font-size:calc(var(--digi--global--typography--font-size--small) + 1px) !important}.digi--util--fs--m{font-size:var(--digi--global--typography--font-size--base) !important}.digi--util--fs--l{font-size:var(--digi--global--typography--font-size--large) !important}.digi--util--fw--sb{font-weight:var(--digi--global--typography--font-weight--semibold) !important}.digi--util--pt--1{padding-top:var(--digi--global--spacing--smallest-2) !important}.digi--util--pt--10{padding-top:var(--digi--global--spacing--smallest) !important}.digi--util--pt--20{padding-top:var(--digi--global--spacing--base) !important}.digi--util--pt--30{padding-top:var(--digi--global--spacing--largest-2) !important}.digi--util--pt--40{padding-top:var(--digi--global--spacing--largest-4) !important}.digi--util--pt--50{padding-top:2.5rem !important}.digi--util--pt--60{padding-top:var(--digi--global--spacing--largest-5) !important}.digi--util--pt--70{padding-top:var(--digi--global--spacing--largest-6) !important}.digi--util--pt--80{padding-top:4.5rem !important}.digi--util--pt--90{padding-top:5rem !important}.digi--util--pb--1{padding-bottom:var(--digi--global--spacing--smallest-2) !important}.digi--util--pb--10{padding-bottom:var(--digi--global--spacing--smallest) !important}.digi--util--pb--20{padding-bottom:var(--digi--global--spacing--base) !important}.digi--util--pb--30{padding-bottom:var(--digi--global--spacing--largest-2) !important}.digi--util--pb--40{padding-bottom:var(--digi--global--spacing--largest-4) !important}.digi--util--pb--50{padding-bottom:2.5rem !important}.digi--util--pb--60{padding-bottom:var(--digi--global--spacing--largest-5) !important}.digi--util--pb--70{padding-bottom:var(--digi--global--spacing--largest-6) !important}.digi--util--pb--80{padding-bottom:4.5rem !important}.digi--util--pb--90{padding-bottom:5rem !important}.digi--util--p--1{padding:var(--digi--global--spacing--smallest-2) !important}.digi--util--p--10{padding:var(--digi--global--spacing--smallest) !important}.digi--util--p--20{padding:var(--digi--global--spacing--base) !important}.digi--util--p--30{padding:var(--digi--global--spacing--largest-2) !important}.digi--util--p--40{padding:var(--digi--global--spacing--largest-4) !important}.digi--util--p--50{padding:2.5rem !important}.digi--util--p--60{padding:var(--digi--global--spacing--largest-5) !important}.digi--util--p--70{padding:var(--digi--global--spacing--largest-6) !important}.digi--util--p--80{padding:4.5rem !important}.digi--util--p--90{padding:5rem !important}.digi--util--ptb--1{padding-top:var(--digi--global--spacing--smallest-2) !important;padding-bottom:var(--digi--global--spacing--smallest-2) !important}.digi--util--ptb--10{padding-top:var(--digi--global--spacing--smallest) !important;padding-bottom:var(--digi--global--spacing--smallest) !important}.digi--util--ptb--20{padding-top:var(--digi--global--spacing--base) !important;padding-bottom:var(--digi--global--spacing--base) !important}.digi--util--ptb--30{padding-top:var(--digi--global--spacing--largest-2) !important;padding-bottom:var(--digi--global--spacing--largest-2) !important}.digi--util--ptb--40{padding-top:var(--digi--global--spacing--largest-4) !important;padding-bottom:var(--digi--global--spacing--largest-4) !important}.digi--util--ptb--50{padding-top:2.5rem !important;padding-bottom:2.5rem !important}.digi--util--ptb--60{padding-top:var(--digi--global--spacing--largest-5) !important;padding-bottom:var(--digi--global--spacing--largest-5) !important}.digi--util--ptb--70{padding-top:var(--digi--global--spacing--largest-6) !important;padding-bottom:var(--digi--global--spacing--largest-6) !important}.digi--util--ptb--80{padding-top:4.5rem !important;padding-bottom:4.5rem !important}.digi--util--ptb--90{padding-top:5rem !important;padding-bottom:5rem !important}.digi--util--plr--1{padding-left:var(--digi--global--spacing--smallest-2) !important;padding-right:var(--digi--global--spacing--smallest-2) !important}.digi--util--plr--10{padding-left:var(--digi--global--spacing--smallest) !important;padding-right:var(--digi--global--spacing--smallest) !important}.digi--util--plr--20{padding-left:var(--digi--global--spacing--base) !important;padding-right:var(--digi--global--spacing--base) !important}.digi--util--plr--30{padding-left:var(--digi--global--spacing--largest-2) !important;padding-right:var(--digi--global--spacing--largest-2) !important}.digi--util--plr--40{padding-left:var(--digi--global--spacing--largest-4) !important;padding-right:var(--digi--global--spacing--largest-4) !important}.digi--util--plr--50{padding-left:2.5rem !important;padding-right:2.5rem !important}.digi--util--plr--60{padding-left:var(--digi--global--spacing--largest-5) !important;padding-right:var(--digi--global--spacing--largest-5) !important}.digi--util--plr--70{padding-left:var(--digi--global--spacing--largest-6) !important;padding-right:var(--digi--global--spacing--largest-6) !important}.digi--util--plr--80{padding-left:4.5rem !important;padding-right:4.5rem !important}.digi--util--plr--90{padding-left:5rem !important;padding-right:5rem !important}.digi--util--sr-only{border:0;clip:rect(1px, 1px, 1px, 1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.digi--util--hidden{display:none}digi-typography{--digi--typography--h1--margin--small:var(--digi--margin--h1-small);--digi--typography--h1--margin--medium:var(--digi--margin--h1-medium);--digi--typography--h1--margin--large:var(--digi--margin--h1-large);--digi--typography--h2--margin--small:var(--digi--margin--h2-small);--digi--typography--h2--margin--large:var(--digi--margin--h2-large);--digi--typography--h3--margin--small:var(--digi--margin--h3-small);--digi--typography--h3--margin--large:var(--digi--margin--h3-large);--digi--typography--h4--margin--small:var(--digi--margin--h4-h6-small);--digi--typography--h4--margin--large:var(--digi--margin--h4-h6-large);--digi--typography--h5--margin--small:var(--digi--margin--h4-h6-small);--digi--typography--h6--margin--large:var(--digi--margin--h4-h6-large);--digi--typography--paragraph--margin--small:var(--digi--margin--text-small);--digi--typography--paragraph--margin--large:var(--digi--margin--text-large);--digi--typography--paragraph--margin-top:initial;--digi--typography--color--text:var(--digi--color--text--primary);--digi--typography--text-decoration-thickness--hover:0.156em;--digi--typography--text-decoration-thickness--default:0.05em;--digi--typography--text-underline-offset:3px;font-family:var(--digi--global--typography--font-family--default);color:var(--digi--typography--color--text);--FONT-SIZE--BODY:var(--digi--typography--body--font-size--mobile);--LINE-HEIGHT--BODY:var(--digi--typography--body--line-height--mobile);--FONT-WEIGHT--BODY:var(--digi--typography--body--font-weight--mobile);--TEXT-DECORATION--BODY:var(\n --digi--typography--body--text-decoration--mobile\n );--MARGIN--BODY:var(--digi--typography--paragraph--margin--small);--FONT-SIZE--LINK:var(--digi--typography--link--font-size--mobile);--LINE-HEIGHT--LINK:var(--digi--typography--link--line-height--mobile);--FONT-WEIGHT--LINK:var(--digi--typography--link--font-weight--mobile);--TEXT-DECORATION--LINK:var(\n --digi--typography--link--text-decoration--mobile\n );--FONT-SIZE--HEADING-1:var(--digi--typography--heading-1--font-size--mobile);--LINE-HEIGHT--HEADING-1:var(\n --digi--typography--heading-1--line-height--mobile\n );--FONT-WEIGHT--HEADING-1:var(\n --digi--typography--heading-1--font-weight--mobile\n );--TEXT-DECORATION--HEADING-1:var(\n --digi--typography--heading-1--text-decoration--mobile\n );--MARGIN--HEADING-1:var(--digi--typography--h1--margin--small);--FONT-SIZE--HEADING-2:var(--digi--typography--heading-2--font-size--mobile);--LINE-HEIGHT--HEADING-2:var(\n --digi--typography--heading-2--line-height--mobile\n );--FONT-WEIGHT--HEADING-2:var(\n --digi--typography--heading-2--font-weight--mobile\n );--TEXT-DECORATION--HEADING-2:var(\n --digi--typography--heading-2--text-decoration--mobile\n );--MARGIN--HEADING-2:var(--digi--typography--h2--margin--small);--FONT-SIZE--HEADING-3:var(--digi--typography--heading-3--font-size--mobile);--LINE-HEIGHT--HEADING-3:var(\n --digi--typography--heading-3--line-height--mobile\n );--FONT-WEIGHT--HEADING-3:var(\n --digi--typography--heading-3--font-weight--mobile\n );--TEXT-DECORATION--HEADING-3:var(\n --digi--typography--heading-3--text-decoration--mobile\n );--MARGIN--HEADING-3:var(--digi--typography--h3--margin--small);--FONT-SIZE--HEADING-4:var(--digi--typography--heading-4--font-size--mobile);--LINE-HEIGHT--HEADING-4:var(\n --digi--typography--heading-4--line-height--mobile\n );--FONT-WEIGHT--HEADING-4:var(\n --digi--typography--heading-4--font-weight--mobile\n );--TEXT-DECORATION--HEADING-4:var(\n --digi--typography--heading-4--text-decoration--mobile\n );--MARGIN--HEADING-4:var(--digi--typography--h4--margin--small);--FONT-SIZE--HEADING-5:var(--digi--typography--heading-4--font-size--mobile);--LINE-HEIGHT--HEADING-5:var(\n --digi--typography--heading-4--line-height--mobile\n );--FONT-WEIGHT--HEADING-5:var(\n --digi--typography--heading-4--font-weight--mobile\n );--TEXT-DECORATION--HEADING-5:var(\n --digi--typography--heading-4--text-decoration--mobile\n );--MARGIN--HEADING-5:var(--digi--typography--h4--margin--small);--FONT-SIZE--HEADING-6:var(--digi--typography--heading-4--font-size--mobile);--LINE-HEIGHT--HEADING-6:var(\n --digi--typography--heading-4--line-height--mobile\n );--FONT-WEIGHT--HEADING-6:var(\n --digi--typography--heading-4--font-weight--mobile\n );--TEXT-DECORATION--HEADING-6:var(\n --digi--typography--heading-4--text-decoration--mobile\n );--MARGIN--HEADING-6:var(--digi--typography--h4--margin--small);font-size:var(--FONT-SIZE--BODY);line-height:var(--LINE-HEIGHT--BODY);font-weight:var(--FONT-WEIGHT--BODY);text-decoration:var(--TEXT-DECORATION--BODY)}@media (min-width: 62rem){digi-typography{--FONT-SIZE--BODY:var(--digi--typography--body--font-size--desktop);--LINE-HEIGHT--BODY:var(--digi--typography--body--line-height--desktop);--FONT-WEIGHT--BODY:var(--digi--typography--body--font-weight--desktop);--TEXT-DECORATION--BODY:var(\n --digi--typography--body--text-decoration--desktop\n );--MARGIN--BODY:var(--digi--typography--paragraph--margin--small);--FONT-SIZE--LINK:var(--digi--typography--link--font-size--desktop);--LINE-HEIGHT--LINK:var(--digi--typography--link--line-height--desktop);--FONT-WEIGHT--LINK:var(--digi--typography--link--font-weight--desktop);--TEXT-DECORATION--LINK:var(\n --digi--typography--link--text-decoration--desktop\n );--FONT-SIZE--HEADING-1:var(\n --digi--typography--heading-1--font-size--desktop\n );--LINE-HEIGHT--HEADING-1:var(\n --digi--typography--heading-1--line-height--desktop\n );--FONT-WEIGHT--HEADING-1:var(\n --digi--typography--heading-1--font-weight--desktop\n );--TEXT-DECORATION--HEADING-1:var(\n --digi--typography--heading-1--text-decoration--desktop\n );--MARGIN--HEADING-1:var(--digi--typography--h1--margin--medium);--FONT-SIZE--HEADING-2:var(\n --digi--typography--heading-2--font-size--desktop\n );--LINE-HEIGHT--HEADING-2:var(\n --digi--typography--heading-2--line-height--desktop\n );--FONT-WEIGHT--HEADING-2:var(\n --digi--typography--heading-2--font-weight--desktop\n );--TEXT-DECORATION--HEADING-2:var(\n --digi--typography--heading-2--text-decoration--desktop\n );--MARGIN--HEADING-2:var(--digi--typography--h2--margin--small);--FONT-SIZE--HEADING-3:var(\n --digi--typography--heading-3--font-size--desktop\n );--LINE-HEIGHT--HEADING-3:var(\n --digi--typography--heading-3--line-height--desktop\n );--FONT-WEIGHT--HEADING-3:var(\n --digi--typography--heading-3--font-weight--desktop\n );--TEXT-DECORATION--HEADING-3:var(\n --digi--typography--heading-3--text-decoration--desktop\n );--MARGIN--HEADING-3:var(--digi--typography--h3--margin--small);--FONT-SIZE--HEADING-4:var(\n --digi--typography--heading-4--font-size--desktop\n );--LINE-HEIGHT--HEADING-4:var(\n --digi--typography--heading-4--line-height--desktop\n );--FONT-WEIGHT--HEADING-4:var(\n --digi--typography--heading-4--font-weight--desktop\n );--TEXT-DECORATION--HEADING-4:var(\n --digi--typography--heading-4--text-decoration--desktop\n );--MARGIN--HEADING-4:var(--digi--typography--h4--margin--small);--FONT-SIZE--HEADING-5:var(\n --digi--typography--heading-4--font-size--desktop\n );--LINE-HEIGHT--HEADING-5:var(\n --digi--typography--heading-4--line-height--desktop\n );--FONT-WEIGHT--HEADING-5:var(\n --digi--typography--heading-4--font-weight--desktop\n );--TEXT-DECORATION--HEADING-5:var(\n --digi--typography--heading-4--text-decoration--desktop\n );--MARGIN--HEADING-5:var(--digi--typography--h5--margin--small);--FONT-SIZE--HEADING-6:var(\n --digi--typography--heading-4--font-size--desktop\n );--LINE-HEIGHT--HEADING-6:var(\n --digi--typography--heading-4--line-height--desktop\n );--FONT-WEIGHT--HEADING-6:var(\n --digi--typography--heading-4--font-weight--desktop\n );--TEXT-DECORATION--HEADING-6:var(\n --digi--typography--heading-4--text-decoration--desktop\n );--MARGIN--HEADING-6:var(--digi--typography--h6--margin--small)}}digi-typography .digi-typography--large{--FONT-SIZE--BODY:var(--digi--typography--body--font-size--desktop);--LINE-HEIGHT--BODY:var(--digi--typography--body--line-height--desktop);--FONT-WEIGHT--BODY:var(--digi--typography--body--font-weight--desktop);--TEXT-DECORATION--BODY:var(\n --digi--typography--body--text-decoration--desktop\n );--MARGIN--BODY:var(--digi--typography--paragraph--margin--small);--FONT-SIZE--LINK:var(--digi--typography--link--font-size--desktop);--LINE-HEIGHT--LINK:var(--digi--typography--link--line-height--desktop);--FONT-WEIGHT--LINK:var(--digi--typography--link--font-weight--desktop);--TEXT-DECORATION--LINK:var(\n --digi--typography--link--text-decoration--desktop\n );--FONT-SIZE--HEADING-1:var(\n --digi--typography--heading-1--font-size--desktop\n );--LINE-HEIGHT--HEADING-1:var(\n --digi--typography--heading-1--line-height--desktop\n );--FONT-WEIGHT--HEADING-1:var(\n --digi--typography--heading-1--font-weight--desktop\n );--TEXT-DECORATION--HEADING-1:var(\n --digi--typography--heading-1--text-decoration--desktop\n );--MARGIN--HEADING-1:var(--digi--typography--h1--margin--medium);--FONT-SIZE--HEADING-2:var(\n --digi--typography--heading-2--font-size--desktop\n );--LINE-HEIGHT--HEADING-2:var(\n --digi--typography--heading-2--line-height--desktop\n );--FONT-WEIGHT--HEADING-2:var(\n --digi--typography--heading-2--font-weight--desktop\n );--TEXT-DECORATION--HEADING-2:var(\n --digi--typography--heading-2--text-decoration--desktop\n );--MARGIN--HEADING-2:var(--digi--typography--h2--margin--small);--FONT-SIZE--HEADING-3:var(\n --digi--typography--heading-3--font-size--desktop\n );--LINE-HEIGHT--HEADING-3:var(\n --digi--typography--heading-3--line-height--desktop\n );--FONT-WEIGHT--HEADING-3:var(\n --digi--typography--heading-3--font-weight--desktop\n );--TEXT-DECORATION--HEADING-3:var(\n --digi--typography--heading-3--text-decoration--desktop\n );--MARGIN--HEADING-3:var(--digi--typography--h3--margin--small);--FONT-SIZE--HEADING-4:var(\n --digi--typography--heading-4--font-size--desktop\n );--LINE-HEIGHT--HEADING-4:var(\n --digi--typography--heading-4--line-height--desktop\n );--FONT-WEIGHT--HEADING-4:var(\n --digi--typography--heading-4--font-weight--desktop\n );--TEXT-DECORATION--HEADING-4:var(\n --digi--typography--heading-4--text-decoration--desktop\n );--MARGIN--HEADING-4:var(--digi--typography--h4--margin--small);--FONT-SIZE--HEADING-5:var(\n --digi--typography--heading-4--font-size--desktop\n );--LINE-HEIGHT--HEADING-5:var(\n --digi--typography--heading-4--line-height--desktop\n );--FONT-WEIGHT--HEADING-5:var(\n --digi--typography--heading-4--font-weight--desktop\n );--TEXT-DECORATION--HEADING-5:var(\n --digi--typography--heading-4--text-decoration--desktop\n );--MARGIN--HEADING-5:var(--digi--typography--h5--margin--small);--FONT-SIZE--HEADING-6:var(\n --digi--typography--heading-4--font-size--desktop\n );--LINE-HEIGHT--HEADING-6:var(\n --digi--typography--heading-4--line-height--desktop\n );--FONT-WEIGHT--HEADING-6:var(\n --digi--typography--heading-4--font-weight--desktop\n );--TEXT-DECORATION--HEADING-6:var(\n --digi--typography--heading-4--text-decoration--desktop\n );--MARGIN--HEADING-6:var(--digi--typography--h6--margin--small)}@media (min-width: 62rem){digi-typography .digi-typography--large{--FONT-SIZE--BODY:var(--digi--typography--body--font-size--desktop-large);--LINE-HEIGHT--BODY:var(\n --digi--typography--body--line-height--desktop-large\n );--FONT-WEIGHT--BODY:var(\n --digi--typography--body--font-weight--desktop-large\n );--TEXT-DECORATION--BODY:var(\n --digi--typography--body--text-decoration--desktop-large\n );--MARGIN--BODY:var(--digi--typography--paragraph--margin--large);--FONT-SIZE--LINK:var(--digi--typography--link--font-size--desktop-large);--LINE-HEIGHT--LINK:var(\n --digi--typography--link--line-height--desktop-large\n );--FONT-WEIGHT--LINK:var(\n --digi--typography--link--font-weight--desktop-large\n );--TEXT-DECORATION--LINK:var(\n --digi--typography--link--text-decoration--desktop-large\n );--FONT-SIZE--HEADING-1:var(\n --digi--typography--heading-1--font-size--desktop-large\n );--LINE-HEIGHT--HEADING-1:var(\n --digi--typography--heading-1--line-height--desktop-large\n );--FONT-WEIGHT--HEADING-1:var(\n --digi--typography--heading-1--font-weight--desktop-large\n );--TEXT-DECORATION--HEADING-1:var(\n --digi--typography--heading-1--text-decoration--desktop-large\n );--MARGIN--HEADING-1:var(--digi--typography--h1--margin--large);--FONT-SIZE--HEADING-2:var(\n --digi--typography--heading-2--font-size--desktop-large\n );--LINE-HEIGHT--HEADING-2:var(\n --digi--typography--heading-2--line-height--desktop-large\n );--FONT-WEIGHT--HEADING-2:var(\n --digi--typography--heading-2--font-weight--desktop-large\n );--TEXT-DECORATION--HEADING-2:var(\n --digi--typography--heading-2--text-decoration--desktop-large\n );--MARGIN--HEADING-2:var(--digi--typography--h2--margin--large);--FONT-SIZE--HEADING-3:var(\n --digi--typography--heading-3--font-size--desktop-large\n );--LINE-HEIGHT--HEADING-3:var(\n --digi--typography--heading-3--line-height--desktop-large\n );--FONT-WEIGHT--HEADING-3:var(\n --digi--typography--heading-3--font-weight--desktop-large\n );--TEXT-DECORATION--HEADING-3:var(\n --digi--typography--heading-3--text-decoration--desktop-large\n );--MARGIN--HEADING-3:var(--digi--typography--h3--margin--large);--FONT-SIZE--HEADING-4:var(\n --digi--typography--heading-4--font-size--desktop-large\n );--LINE-HEIGHT--HEADING-4:var(\n --digi--typography--heading-4--line-height--desktop-large\n );--FONT-WEIGHT--HEADING-4:var(\n --digi--typography--heading-4--font-weight--desktop-large\n );--TEXT-DECORATION--HEADING-4:var(\n --digi--typography--heading-4--text-decoration--desktop-large\n );--MARGIN--HEADING-4:var(--digi--typography--h4--margin--large);--FONT-SIZE--HEADING-5:var(\n --digi--typography--heading-4--font-size--desktop-large\n );--LINE-HEIGHT--HEADING-5:var(\n --digi--typography--heading-4--line-height--desktop-large\n );--FONT-WEIGHT--HEADING-5:var(\n --digi--typography--heading-4--font-weight--desktop-large\n );--TEXT-DECORATION--HEADING-5:var(\n --digi--typography--heading-4--text-decoration--desktop-large\n );--MARGIN--HEADING-5:var(--digi--typography--h5--margin--large);--FONT-SIZE--HEADING-6:var(\n --digi--typography--heading-4--font-size--desktop-large\n );--LINE-HEIGHT--HEADING-6:var(\n --digi--typography--heading-4--line-height--desktop-large\n );--FONT-WEIGHT--HEADING-6:var(\n --digi--typography--heading-4--font-weight--desktop-large\n );--TEXT-DECORATION--HEADING-6:var(\n --digi--typography--heading-4--text-decoration--desktop-large\n );--MARGIN--HEADING-6:var(--digi--typography--h6--margin--large)}}digi-typography .digi-typography--hide-visited a:visited{color:var(--digi--color--text--link-secondary, var(--digi--color--text--link))}digi-typography h1,digi-typography h2,digi-typography h3,digi-typography h4,digi-typography h5,digi-typography h6{margin-top:0;}digi-typography h1,digi-typography .digi-h1{font-size:var(--FONT-SIZE--HEADING-1);line-height:var(--LINE-HEIGHT--HEADING-1);font-weight:var(--FONT-WEIGHT--HEADING-1);text-decoration:var(--TEXT-DECORATION--HEADING-1);margin-bottom:var(--MARGIN--HEADING-1)}digi-typography h2,digi-typography .digi-h2{font-size:var(--FONT-SIZE--HEADING-2);line-height:var(--LINE-HEIGHT--HEADING-2);font-weight:var(--FONT-WEIGHT--HEADING-2);text-decoration:var(--TEXT-DECORATION--HEADING-2);margin-bottom:var(--MARGIN--HEADING-2)}digi-typography h3,digi-typography .digi-h3{font-size:var(--FONT-SIZE--HEADING-3);line-height:var(--LINE-HEIGHT--HEADING-3);font-weight:var(--FONT-WEIGHT--HEADING-3);text-decoration:var(--TEXT-DECORATION--HEADING-3);margin-bottom:var(--MARGIN--HEADING-3)}digi-typography h4,digi-typography .digi-h4{font-size:var(--FONT-SIZE--HEADING-4);line-height:var(--LINE-HEIGHT--HEADING-4);font-weight:var(--FONT-WEIGHT--HEADING-4);text-decoration:var(--TEXT-DECORATION--HEADING-4);margin-bottom:var(--MARGIN--HEADING-4)}digi-typography h5,digi-typography .digi-h5{font-size:var(--FONT-SIZE--HEADING-5);line-height:var(--LINE-HEIGHT--HEADING-5);font-weight:var(--FONT-WEIGHT--HEADING-5);text-decoration:var(--TEXT-DECORATION--HEADING-5);margin-bottom:var(--MARGIN--HEADING-5)}digi-typography h6,digi-typography .digi-h6{font-size:var(--FONT-SIZE--HEADING-6);line-height:var(--LINE-HEIGHT--HEADING-6);font-weight:var(--FONT-WEIGHT--HEADING-6);text-decoration:var(--TEXT-DECORATION--HEADING-6);margin-bottom:var(--MARGIN--HEADING-6)}digi-typography p,digi-typography blockquote{font-size:var(--FONT-SIZE--BODY);line-height:var(--LINE-HEIGHT--BODY);font-weight:var(--FONT-WEIGHT--BODY);text-decoration:var(--TEXT-DECORATION--BODY);margin-top:initial;margin-bottom:var(--MARGIN--BODY);max-width:var(--digi--paragraph-width--medium)}digi-typography p:last-child,digi-typography blockquote:last-child{margin-bottom:0}digi-typography blockquote{margin-inline:0}digi-typography digi-typography-preamble{display:block;margin-bottom:var(--MARGIN--BODY)}digi-typography digi-typography-preamble:last-child{margin-bottom:0}digi-typography ul,digi-typography ol,digi-typography dl{font-size:var(--FONT-SIZE--BODY);line-height:var(--LINE-HEIGHT--BODY);font-weight:var(--FONT-WEIGHT--BODY);text-decoration:var(--TEXT-DECORATION--BODY);max-width:var(--digi--paragraph-width--medium);margin-bottom:var(--MARGIN--BODY)}digi-typography ul,digi-typography ol{margin:0 0 var(--MARGIN--BODY) 0;padding-inline-start:1.5rem}digi-typography ul li,digi-typography ol li{margin-top:initial;margin-bottom:0.5rem;box-sizing:border-box;width:100%;padding-left:0}digi-typography ul li:last-child,digi-typography ol li:last-child{margin-bottom:0}digi-typography a{font-size:1em;line-height:var(--LINE-HEIGHT--LINK);font-weight:inherit;text-decoration:var(--TEXT-DECORATION--LINK);color:var(--digi--color--text--link-secondary, var(--digi--color--text--link));text-decoration-thickness:var(--digi--typography--text-decoration-thickness--default);text-underline-offset:var(--digi--typography--text-underline-offset)}digi-typography a:hover{text-decoration:var(--TEXT-DECORATION--LINK);text-decoration-thickness:var(--digi--typography--text-decoration-thickness--hover)}digi-typography a:focus-visible{outline:2px solid black;outline-offset:2px;box-shadow:0px 0px 0px 5px white}digi-typography a:visited{color:var(--digi--color--text--link-secondary-visited, var(--digi--color--text--link-visited))}digi-typography strong{font-weight:var(--digi--typography--label--font-weight--desktop)}";
3539
+ const DigiTypographyStyle0 = typographyCss;
3540
+
3541
+ const Typography = class {
3542
+ constructor(hostRef) {
3543
+ registerInstance(this, hostRef);
3544
+ this.afVariation = TypographyVariation.SMALL;
3545
+ this.hideVisitedColor = undefined;
3546
+ }
3547
+ get cssModifiers() {
3548
+ return {
3549
+ 'digi-typography--large': this.afVariation === TypographyVariation.LARGE,
3550
+ 'digi-typography--small': this.afVariation === TypographyVariation.SMALL,
3551
+ 'digi-typography--hide-visited': this.hideVisitedColor
3552
+ };
3553
+ }
3554
+ render() {
3555
+ return (h("div", { key: '29a5a4901380fca0be3c0e5adeead961e6aad7d8', class: Object.assign({ 'digi-typography': true }, this.cssModifiers) }, h("slot", { key: 'b94798471efb3981fe1ee9fe11b28f8038c34875' })));
3556
+ }
3557
+ };
3558
+ Typography.style = DigiTypographyStyle0;
3559
+
3560
+ const UtilKeydownHandler = class {
3561
+ constructor(hostRef) {
3562
+ registerInstance(this, hostRef);
3563
+ this.afOnEsc = createEvent(this, "afOnEsc", 7);
3564
+ this.afOnEnter = createEvent(this, "afOnEnter", 7);
3565
+ this.afOnTab = createEvent(this, "afOnTab", 7);
3566
+ this.afOnSpace = createEvent(this, "afOnSpace", 7);
3567
+ this.afOnShiftTab = createEvent(this, "afOnShiftTab", 7);
3568
+ this.afOnUp = createEvent(this, "afOnUp", 7);
3569
+ this.afOnDown = createEvent(this, "afOnDown", 7);
3570
+ this.afOnLeft = createEvent(this, "afOnLeft", 7);
3571
+ this.afOnRight = createEvent(this, "afOnRight", 7);
3572
+ this.afOnHome = createEvent(this, "afOnHome", 7);
3573
+ this.afOnEnd = createEvent(this, "afOnEnd", 7);
3574
+ this.afOnKeyDown = createEvent(this, "afOnKeyDown", 7);
3575
+ }
3576
+ keydownHandler(e) {
3577
+ const key = keyboardHandler(e);
3578
+ switch (key) {
3579
+ case KEY_CODE.SHIFT_TAB:
3580
+ this.afOnShiftTab.emit(e);
3581
+ break;
3582
+ case KEY_CODE.DOWN_ARROW:
3583
+ this.afOnDown.emit(e);
3584
+ this.afOnKeyDown.emit(e);
3585
+ break;
3586
+ case KEY_CODE.UP_ARROW:
3587
+ this.afOnUp.emit(e);
3588
+ this.afOnKeyDown.emit(e);
3589
+ break;
3590
+ case KEY_CODE.LEFT_ARROW:
3591
+ this.afOnLeft.emit(e);
3592
+ this.afOnKeyDown.emit(e);
3593
+ break;
3594
+ case KEY_CODE.RIGHT_ARROW:
3595
+ this.afOnRight.emit(e);
3596
+ this.afOnKeyDown.emit(e);
3597
+ break;
3598
+ case KEY_CODE.ENTER:
3599
+ this.afOnEnter.emit(e);
3600
+ this.afOnKeyDown.emit(e);
3601
+ break;
3602
+ case KEY_CODE.ESCAPE:
3603
+ this.afOnEsc.emit(e);
3604
+ this.afOnKeyDown.emit(e);
3605
+ break;
3606
+ case KEY_CODE.TAB:
3607
+ this.afOnTab.emit(e);
3608
+ this.afOnKeyDown.emit(e);
3609
+ break;
3610
+ case KEY_CODE.SPACE:
3611
+ this.afOnSpace.emit(e);
3612
+ this.afOnKeyDown.emit(e);
3613
+ break;
3614
+ case KEY_CODE.HOME:
3615
+ this.afOnHome.emit(e);
3616
+ this.afOnKeyDown.emit(e);
3617
+ break;
3618
+ case KEY_CODE.END:
3619
+ this.afOnEnd.emit(e);
3620
+ this.afOnKeyDown.emit(e);
3621
+ break;
3622
+ case KEY_CODE.ANY:
3623
+ this.afOnKeyDown.emit(e);
3624
+ break;
3625
+ default:
3626
+ this.afOnKeyDown.emit(e);
3627
+ return;
3628
+ }
3629
+ }
3630
+ render() {
3631
+ return h("slot", { key: '568e76c1f6e0716e34371a51f7eae9ab4ee6d829' });
3632
+ }
3633
+ };
3634
+
3635
+ const UtilMutationObserver = class {
3636
+ constructor(hostRef) {
3637
+ registerInstance(this, hostRef);
3638
+ this.afOnChange = createEvent(this, "afOnChange", 7);
3639
+ this._observer = null;
3640
+ this._isObserving = false;
3641
+ this.afId = randomIdGenerator('digi-util-mutation-observer');
3642
+ this.afOptions = {
3643
+ attributes: false,
3644
+ childList: true,
3645
+ subtree: false,
3646
+ characterData: false
3647
+ };
3648
+ }
3649
+ afOptionsWatcher(newValue) {
3650
+ this._afOptions =
3651
+ typeof newValue === 'string' ? JSON.parse(newValue) : newValue;
3652
+ }
3653
+ componentWillLoad() {
3654
+ this.afOptionsWatcher(this.afOptions);
3655
+ this.initObserver();
3656
+ }
3657
+ disconnectedCallback() {
3658
+ if (this._isObserving) {
3659
+ this.removeObserver();
3660
+ }
3661
+ }
3662
+ initObserver() {
3663
+ this._observer = new MutationObserver((mutationsList) => {
3664
+ for (const mutation of mutationsList) {
3665
+ if (mutation.type === 'childList' ||
3666
+ mutation.type === 'attributes' ||
3667
+ mutation.type === 'characterData') {
3668
+ this.changeHandler(mutation);
3669
+ }
3670
+ }
3671
+ });
3672
+ this._observer.observe(this.$el, this._afOptions);
3673
+ this._isObserving = true;
3674
+ }
3675
+ removeObserver() {
3676
+ this._observer.disconnect();
3677
+ this._isObserving = false;
3678
+ }
3679
+ changeHandler(e) {
3680
+ this.afOnChange.emit(e);
3681
+ }
3682
+ render() {
3683
+ h("div", { id: this.afId, ref: (el) => (this.$el = el) }, h("slot", null));
3684
+ }
3685
+ get $el() { return getElement(this); }
3686
+ static get watchers() { return {
3687
+ "afOptions": ["afOptionsWatcher"]
3688
+ }; }
3689
+ };
3690
+
3691
+ export { Calendar as digi_calendar, CalendarDatepicker as digi_calendar_datepicker, FormInput as digi_form_input, FormLabel as digi_form_label, FormSelect as digi_form_select, FormValidationMessage as digi_form_validation_message, IconCalendarAlt as digi_icon_calendar_alt, IconChevronLeft as digi_icon_chevron_left, IconChevronRight as digi_icon_chevron_right, IconInputSelectMarker as digi_icon_input_select_marker, IconValidationError as digi_icon_validation_error, IconCheckCircle as digi_icon_validation_success, IconValidationWarning as digi_icon_validation_warning, Typography as digi_typography, UtilKeydownHandler as digi_util_keydown_handler, UtilMutationObserver as digi_util_mutation_observer };