@designsystem-se/af 37.0.1 → 37.0.2-beta.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 (364) hide show
  1. package/components/digi-bar-chart.js +1 -1
  2. package/components/digi-button.js +1 -1
  3. package/components/digi-calendar-datepicker.js +4 -4
  4. package/components/digi-calendar-week-view.js +1 -1
  5. package/components/digi-calendar.js +1 -1
  6. package/components/digi-chart-line.js +1 -1
  7. package/components/digi-code-block.js +1 -1
  8. package/components/digi-code-example.js +3 -3
  9. package/components/digi-context-menu.js +1 -1
  10. package/components/digi-dialog.js +3 -3
  11. package/components/digi-expandable-faq-item.js +1 -1
  12. package/components/digi-footer.js +1 -1
  13. package/components/digi-form-category-filter.js +1 -1
  14. package/components/digi-form-checkbox.js +1 -1
  15. package/components/digi-form-error-list.js +3 -3
  16. package/components/digi-form-file-upload.js +1 -1
  17. package/components/digi-form-filter.js +2 -2
  18. package/components/digi-form-input-search.js +1 -1
  19. package/components/digi-form-receipt.js +1 -1
  20. package/components/digi-form-select-filter.js +3 -3
  21. package/components/digi-form-select.js +1 -1
  22. package/components/digi-header-avatar.js +1 -1
  23. package/components/digi-header-navigation.js +2 -2
  24. package/components/digi-header.js +3 -3
  25. package/components/digi-info-card.js +2 -2
  26. package/components/digi-link-internal.js +1 -1
  27. package/components/digi-logo.js +1 -1
  28. package/components/digi-navigation-pagination.js +2 -2
  29. package/components/digi-navigation-sidebar-button.js +1 -1
  30. package/components/digi-navigation-sidebar.js +1 -1
  31. package/components/digi-navigation-vertical-menu-item.js +1 -1
  32. package/components/digi-notification-alert.js +1 -1
  33. package/components/digi-notification-error-page.js +1 -1
  34. package/components/digi-progress-indicator.js +1 -1
  35. package/components/digi-quote.js +1 -1
  36. package/components/digi-tag.js +1 -1
  37. package/components/digi-title-logo.js +1 -1
  38. package/components/digi-tools-feedback.js +3 -3
  39. package/components/digi-tools-theme-provider.js +18 -5
  40. package/components/index.js +1 -1
  41. package/components/p-0d568c4b.js +66 -0
  42. package/components/{p-9466c4e0.js → p-117e7b18.js} +1 -1
  43. package/components/{p-7ff04204.js → p-29f63312.js} +2 -2
  44. package/components/p-606ba731.js +165 -0
  45. package/components/{p-44f143ea.js → p-7d3fb535.js} +2 -2
  46. package/components/{p-2ac136a0.js → p-a79e144f.js} +1 -1
  47. package/components/{p-f53eb01a.js → p-d2a95a3e.js} +1 -1
  48. package/components/p-d7ef9cb1.js +13 -0
  49. package/components/{p-62a0008b.js → p-e756fda7.js} +2 -2
  50. package/components/p-f77cb7ae.js +163 -0
  51. package/custom-elements.json +4 -0
  52. package/dist/cjs/digi-arbetsformedlingen.cjs.js +1 -1
  53. package/dist/cjs/digi-button_38.cjs.entry.js +5759 -0
  54. package/dist/cjs/digi-calendar-week-view.cjs.entry.js +50 -51
  55. package/dist/cjs/{digi-code-block_3.cjs.entry.js → digi-code-block.cjs.entry.js} +3 -143
  56. package/dist/cjs/digi-code-example.cjs.entry.js +1 -1
  57. package/dist/cjs/digi-dialog.cjs.entry.js +4 -15
  58. package/dist/cjs/digi-footer.cjs.entry.js +3 -14
  59. package/dist/cjs/digi-form-error-list.cjs.entry.js +3 -14
  60. package/dist/cjs/digi-form-file-upload.cjs.entry.js +10 -11
  61. package/dist/cjs/digi-form-input-search.cjs.entry.js +6 -7
  62. package/dist/cjs/digi-form-receipt.cjs.entry.js +3 -14
  63. package/dist/cjs/digi-header-avatar.cjs.entry.js +114 -0
  64. package/dist/cjs/digi-header-navigation-item.cjs.entry.js +27 -0
  65. package/dist/cjs/digi-header-navigation.cjs.entry.js +218 -0
  66. package/dist/cjs/digi-header-notification.cjs.entry.js +23 -0
  67. package/dist/cjs/digi-header.cjs.entry.js +134 -0
  68. package/dist/cjs/{digi-icon-copy.cjs.entry.js → digi-icon-bars.cjs.entry.js} +7 -7
  69. package/dist/cjs/digi-icon-bell-filled.cjs.entry.js +30 -0
  70. package/dist/cjs/digi-icon-x.cjs.entry.js +30 -0
  71. package/dist/cjs/digi-info-card.cjs.entry.js +1 -1
  72. package/dist/cjs/digi-link-internal.cjs.entry.js +1 -1
  73. package/dist/cjs/digi-media-image_2.cjs.entry.js +167 -0
  74. package/dist/cjs/digi-navigation-pagination.cjs.entry.js +3 -14
  75. package/dist/cjs/digi-navigation-sidebar-button.cjs.entry.js +30 -0
  76. package/dist/cjs/digi-notification-alert.cjs.entry.js +3 -14
  77. package/dist/cjs/digi-notification-error-page.cjs.entry.js +3 -14
  78. package/dist/cjs/digi-quote.cjs.entry.js +1 -1
  79. package/dist/cjs/digi-title-logo.cjs.entry.js +121 -0
  80. package/dist/cjs/digi-tools-feedback.cjs.entry.js +4 -15
  81. package/dist/cjs/digi-util-breakpoint-observer.cjs.entry.js +48 -0
  82. package/dist/cjs/{form-input-type.enum-9c8ee12a.js → form-input-type.enum-1fb2180a.js} +14 -0
  83. package/dist/cjs/{form-file-upload-variation.enum-634cfae8.js → form-validation-message-variation.enum-c5ec3e2d.js} +7 -0
  84. package/dist/cjs/index-7a477838.js +44 -96
  85. package/dist/cjs/{index-ac8e01b4.js → index-acb7b350.js} +189 -19
  86. package/dist/cjs/index.cjs.js +136 -141
  87. package/dist/cjs/loader.cjs.js +1 -1
  88. package/dist/cjs/{typography-variation.enum-118ff8e5.js → typography-variation.enum-e41bd69d.js} +138 -0
  89. package/dist/collection/components/_button/button/button.css +6 -6
  90. package/dist/collection/components/_calendar/calendar/calendar.css +7 -2
  91. package/dist/collection/components/_calendar/calendar-datepicker/calendar-datepicker.css +347 -102
  92. package/dist/collection/components/_code/code-example/code-example.css +6 -0
  93. package/dist/collection/components/_dialog/dialog/dialog.css +1 -1
  94. package/dist/collection/components/_expandable/expandable-faq-item/expandable-faq-item.css +2 -2
  95. package/dist/collection/components/_form/form-checkbox/form-checkbox.css +347 -102
  96. package/dist/collection/components/_form/form-file-upload/form-file-upload.css +4 -3
  97. package/dist/collection/components/_form/form-select/form-select.css +2 -2
  98. package/dist/collection/components/_form/form-select-filter/form-select-filter.css +1 -1
  99. package/dist/collection/components/_header/header-avatar/header-avatar.css +346 -101
  100. package/dist/collection/components/_info-card/info-card/info-card.css +2 -2
  101. package/dist/collection/components/_link/link-internal/link-internal.css +346 -101
  102. package/dist/collection/components/_navigation/navigation-vertical-menu-item/navigation-vertical-menu-item.css +3 -3
  103. package/dist/collection/components/_progress/progress-indicator/progress-indicator.css +4 -3
  104. package/dist/collection/components/_quote/quote/quote.css +2 -2
  105. package/dist/collection/components/_tools/tools-feedback/tools-feedback.css +1 -1
  106. package/dist/collection/components/_tools/tools-theme-provider/tools-theme-provider.css +113 -2
  107. package/dist/collection/components/_tools/tools-theme-provider/tools-theme-provider.js +43 -2
  108. package/dist/collection/components/_tools/tools-theme-provider/tools-theme-provider.theme.enum.js +5 -0
  109. package/dist/collection/design-tokens/components/_button.variables.scss +6 -6
  110. package/dist/collection/design-tokens/components/_calendar-datepicker.variables.scss +1 -1
  111. package/dist/collection/design-tokens/components/_calendar.variables.scss +3 -2
  112. package/dist/collection/design-tokens/components/_dialog.variables.scss +1 -1
  113. package/dist/collection/design-tokens/components/_expandable-faq-item.variables.scss +2 -2
  114. package/dist/collection/design-tokens/components/_form-checkbox.variables.scss +1 -1
  115. package/dist/collection/design-tokens/components/_form-file-upload.variables.scss +2 -0
  116. package/dist/collection/design-tokens/components/_form-select-filter.variables.scss +1 -1
  117. package/dist/collection/design-tokens/components/_form-select.variables.scss +2 -2
  118. package/dist/collection/design-tokens/components/_info-card.variables.scss +2 -2
  119. package/dist/collection/design-tokens/components/_navigation-vertical-menu-item.variables.scss +3 -3
  120. package/dist/collection/design-tokens/components/_quote.variables.scss +2 -2
  121. package/dist/collection/design-tokens/components/_tools-feedback.variables.scss +1 -1
  122. package/dist/collection/enums.js +1 -0
  123. package/dist/collection/styles/src/_alias.mixin.scss +274 -128
  124. package/dist/collection/styles/src/themes/_common.mixin.scss +7 -0
  125. package/dist/collection/styles/src/themes/_theme-af25.mixin.scss +143 -0
  126. package/dist/collection/styles/src/tokens-documentation/web-AF25.json +1406 -323
  127. package/dist/digi-arbetsformedlingen/design-tokens/components/_button.variables.scss +6 -6
  128. package/dist/digi-arbetsformedlingen/design-tokens/components/_calendar-datepicker.variables.scss +1 -1
  129. package/dist/digi-arbetsformedlingen/design-tokens/components/_calendar.variables.scss +3 -2
  130. package/dist/digi-arbetsformedlingen/design-tokens/components/_dialog.variables.scss +1 -1
  131. package/dist/digi-arbetsformedlingen/design-tokens/components/_expandable-faq-item.variables.scss +2 -2
  132. package/dist/digi-arbetsformedlingen/design-tokens/components/_form-checkbox.variables.scss +1 -1
  133. package/dist/digi-arbetsformedlingen/design-tokens/components/_form-file-upload.variables.scss +2 -0
  134. package/dist/digi-arbetsformedlingen/design-tokens/components/_form-select-filter.variables.scss +1 -1
  135. package/dist/digi-arbetsformedlingen/design-tokens/components/_form-select.variables.scss +2 -2
  136. package/dist/digi-arbetsformedlingen/design-tokens/components/_info-card.variables.scss +2 -2
  137. package/dist/digi-arbetsformedlingen/design-tokens/components/_navigation-vertical-menu-item.variables.scss +3 -3
  138. package/dist/digi-arbetsformedlingen/design-tokens/components/_quote.variables.scss +2 -2
  139. package/dist/digi-arbetsformedlingen/design-tokens/components/_tools-feedback.variables.scss +1 -1
  140. package/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.css +1 -1
  141. package/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.esm.js +1 -1
  142. package/dist/digi-arbetsformedlingen/index.esm.js +1 -1
  143. package/dist/digi-arbetsformedlingen/p-0f543000.entry.js +1 -0
  144. package/dist/digi-arbetsformedlingen/p-13120f18.entry.js +1 -0
  145. package/dist/digi-arbetsformedlingen/p-180663ef.entry.js +1 -0
  146. package/dist/digi-arbetsformedlingen/p-1a619dd3.entry.js +1 -0
  147. package/dist/digi-arbetsformedlingen/p-237cad1c.entry.js +1 -0
  148. package/dist/digi-arbetsformedlingen/p-26e8ea70.entry.js +1 -0
  149. package/dist/digi-arbetsformedlingen/p-3887bb40.js +1 -0
  150. package/dist/digi-arbetsformedlingen/p-52a3c86a.entry.js +1 -0
  151. package/dist/digi-arbetsformedlingen/p-54d9bd3e.entry.js +1 -0
  152. package/dist/digi-arbetsformedlingen/p-5ca38506.entry.js +1 -0
  153. package/dist/digi-arbetsformedlingen/p-64b65586.entry.js +1 -0
  154. package/dist/digi-arbetsformedlingen/p-67e32cc2.entry.js +1 -0
  155. package/dist/digi-arbetsformedlingen/p-73a6be41.entry.js +1 -0
  156. package/dist/digi-arbetsformedlingen/p-76ec3619.entry.js +1 -0
  157. package/dist/digi-arbetsformedlingen/p-780519ec.entry.js +1 -0
  158. package/dist/digi-arbetsformedlingen/p-800b764b.entry.js +1 -0
  159. package/dist/digi-arbetsformedlingen/p-82225661.entry.js +1 -0
  160. package/dist/digi-arbetsformedlingen/p-84719680.entry.js +1 -0
  161. package/dist/digi-arbetsformedlingen/p-920aee36.entry.js +1 -0
  162. package/dist/digi-arbetsformedlingen/p-9b6e8cf8.entry.js +1 -0
  163. package/dist/digi-arbetsformedlingen/p-9e56568b.entry.js +1 -0
  164. package/dist/digi-arbetsformedlingen/p-a105d9fe.js +1 -0
  165. package/dist/digi-arbetsformedlingen/p-ac87daf1.entry.js +1 -0
  166. package/dist/digi-arbetsformedlingen/p-b328f60b.entry.js +1 -0
  167. package/dist/digi-arbetsformedlingen/p-c64b4626.js +1 -0
  168. package/dist/digi-arbetsformedlingen/p-d9bcab5f.entry.js +1 -0
  169. package/dist/digi-arbetsformedlingen/p-e2c92528.entry.js +1 -0
  170. package/dist/digi-arbetsformedlingen/p-e540b80f.entry.js +1 -0
  171. package/dist/digi-arbetsformedlingen/p-e5fee242.js +1 -0
  172. package/dist/digi-arbetsformedlingen/p-e7ee9bea.entry.js +1 -0
  173. package/dist/digi-arbetsformedlingen/p-f601908d.entry.js +1 -0
  174. package/dist/digi-arbetsformedlingen/p-fa44ce49.entry.js +1 -0
  175. package/dist/digi-arbetsformedlingen/p-fe409f14.entry.js +1 -0
  176. package/dist/digi-arbetsformedlingen/styles/src/_alias.mixin.scss +274 -128
  177. package/dist/digi-arbetsformedlingen/styles/src/themes/_common.mixin.scss +7 -0
  178. package/dist/digi-arbetsformedlingen/styles/src/themes/_theme-af25.mixin.scss +143 -0
  179. package/dist/digi-arbetsformedlingen/styles/src/tokens-documentation/web-AF25.json +1406 -323
  180. package/dist/esm/digi-arbetsformedlingen.js +1 -1
  181. package/dist/esm/digi-button_38.entry.js +5718 -0
  182. package/dist/esm/digi-calendar-week-view.entry.js +1 -2
  183. package/dist/esm/digi-code-block.entry.js +85 -0
  184. package/dist/esm/digi-code-example.entry.js +1 -1
  185. package/dist/esm/digi-dialog.entry.js +4 -15
  186. package/dist/esm/digi-footer.entry.js +3 -14
  187. package/dist/esm/digi-form-error-list.entry.js +3 -14
  188. package/dist/esm/digi-form-file-upload.entry.js +2 -3
  189. package/dist/esm/digi-form-input-search.entry.js +1 -2
  190. package/dist/esm/digi-form-receipt.entry.js +3 -14
  191. package/dist/esm/digi-header-avatar.entry.js +110 -0
  192. package/dist/esm/digi-header-navigation-item.entry.js +23 -0
  193. package/dist/esm/digi-header-navigation.entry.js +214 -0
  194. package/dist/esm/digi-header-notification.entry.js +19 -0
  195. package/dist/esm/digi-header.entry.js +130 -0
  196. package/dist/esm/digi-icon-bars.entry.js +26 -0
  197. package/dist/esm/digi-icon-bell-filled.entry.js +26 -0
  198. package/dist/esm/digi-icon-x.entry.js +26 -0
  199. package/dist/esm/digi-info-card.entry.js +1 -1
  200. package/dist/esm/digi-link-internal.entry.js +1 -1
  201. package/dist/esm/digi-media-image_2.entry.js +162 -0
  202. package/dist/esm/digi-navigation-pagination.entry.js +3 -14
  203. package/dist/esm/digi-navigation-sidebar-button.entry.js +26 -0
  204. package/dist/esm/digi-notification-alert.entry.js +3 -14
  205. package/dist/esm/digi-notification-error-page.entry.js +3 -14
  206. package/dist/esm/digi-quote.entry.js +1 -1
  207. package/dist/esm/digi-title-logo.entry.js +117 -0
  208. package/dist/esm/digi-tools-feedback.entry.js +4 -15
  209. package/dist/esm/digi-util-breakpoint-observer.entry.js +44 -0
  210. package/dist/esm/{form-input-type.enum-3da3db27.js → form-input-type.enum-a6bba983.js} +15 -1
  211. package/dist/esm/{form-file-upload-variation.enum-9c49ec5e.js → form-validation-message-variation.enum-f7835fc5.js} +8 -1
  212. package/dist/esm/index-148a7577.js +44 -96
  213. package/dist/esm/{index-2fce392f.js → index-dc6b83f7.js} +170 -3
  214. package/dist/esm/index.js +3 -14
  215. package/dist/esm/loader.js +1 -1
  216. package/dist/esm/{typography-variation.enum-23eeecd2.js → typography-variation.enum-b07f76c9.js} +139 -1
  217. package/dist/types/components/_tools/tools-theme-provider/tools-theme-provider.d.ts +9 -0
  218. package/dist/types/components/_tools/tools-theme-provider/tools-theme-provider.theme.enum.d.ts +4 -0
  219. package/dist/types/components.d.ts +12 -0
  220. package/dist/types/enums.d.ts +1 -0
  221. package/hydrate/index.js +40 -21
  222. package/hydrate/index.mjs +40 -21
  223. package/package.json +1 -1
  224. package/components/p-4bad4fb0.js +0 -7
  225. package/components/p-b57677c1.js +0 -66
  226. package/components/p-e8fc33ed.js +0 -165
  227. package/components/p-ff4f4fb8.js +0 -163
  228. package/dist/cjs/digi-button_17.cjs.entry.js +0 -1120
  229. package/dist/cjs/digi-calendar-datepicker.cjs.entry.js +0 -2600
  230. package/dist/cjs/digi-calendar_2.cjs.entry.js +0 -464
  231. package/dist/cjs/digi-expandable-faq-item.cjs.entry.js +0 -97
  232. package/dist/cjs/digi-form-category-filter.cjs.entry.js +0 -121
  233. package/dist/cjs/digi-form-checkbox.cjs.entry.js +0 -127
  234. package/dist/cjs/digi-form-input.cjs.entry.js +0 -194
  235. package/dist/cjs/digi-form-label_3.cjs.entry.js +0 -129
  236. package/dist/cjs/digi-form-radiogroup.cjs.entry.js +0 -80
  237. package/dist/cjs/digi-form-select-filter.cjs.entry.js +0 -565
  238. package/dist/cjs/digi-form-select_2.cjs.entry.js +0 -186
  239. package/dist/cjs/digi-icon-check.cjs.entry.js +0 -30
  240. package/dist/cjs/digi-icon-chevron-down.cjs.entry.js +0 -30
  241. package/dist/cjs/digi-icon-chevron-left_2.cjs.entry.js +0 -53
  242. package/dist/cjs/digi-icon-minus_2.cjs.entry.js +0 -53
  243. package/dist/cjs/digi-icon-validation-error_2.cjs.entry.js +0 -53
  244. package/dist/cjs/digi-link.cjs.entry.js +0 -75
  245. package/dist/cjs/digi-navigation-vertical-menu-item.cjs.entry.js +0 -150
  246. package/dist/cjs/digi-navigation-vertical-menu.cjs.entry.js +0 -177
  247. package/dist/cjs/digi-progress-indicator.cjs.entry.js +0 -137
  248. package/dist/cjs/digi-tools-theme-provider.cjs.entry.js +0 -28
  249. package/dist/cjs/digi-typography-heading-jumbo.cjs.entry.js +0 -38
  250. package/dist/cjs/digi-typography-preamble.cjs.entry.js +0 -20
  251. package/dist/cjs/digi-typography.cjs.entry.js +0 -26
  252. package/dist/cjs/digi-util-mutation-observer.cjs.entry.js +0 -64
  253. package/dist/cjs/expandable-faq-item-variation.enum-89427195.js +0 -18
  254. package/dist/cjs/form-checkbox-variation.enum-d2ca879e.js +0 -19
  255. package/dist/cjs/form-input-search-variation.enum-e0e025b1.js +0 -15
  256. package/dist/cjs/form-input-variation.enum-c750520c.js +0 -29
  257. package/dist/cjs/form-radiogroup-validation.enum-03a17d4d.js +0 -9
  258. package/dist/cjs/form-select-variation.enum-528c1bf0.js +0 -16
  259. package/dist/cjs/form-validation-message-variation.enum-855ae0be.js +0 -8
  260. package/dist/cjs/index-cad91a90.js +0 -66
  261. package/dist/cjs/index-e8333bcc.js +0 -174
  262. package/dist/cjs/navigation-vertical-menu-variation.enum-c237edd3.js +0 -13
  263. package/dist/cjs/progress-indicator-variation.enum-7cf8e0e4.js +0 -13
  264. package/dist/cjs/tools-theme-provider.brand.enum-bc855272.js +0 -7
  265. package/dist/cjs/typography-heading-jumbo-variation.enum-8677e099.js +0 -17
  266. package/dist/digi-arbetsformedlingen/p-029c4d40.entry.js +0 -1
  267. package/dist/digi-arbetsformedlingen/p-07985aef.entry.js +0 -1
  268. package/dist/digi-arbetsformedlingen/p-0c77050e.entry.js +0 -1
  269. package/dist/digi-arbetsformedlingen/p-1f3345e9.js +0 -1
  270. package/dist/digi-arbetsformedlingen/p-1f956af8.js +0 -1
  271. package/dist/digi-arbetsformedlingen/p-24fe2189.js +0 -1
  272. package/dist/digi-arbetsformedlingen/p-2693c1d8.entry.js +0 -1
  273. package/dist/digi-arbetsformedlingen/p-2c698144.entry.js +0 -1
  274. package/dist/digi-arbetsformedlingen/p-33349e7e.entry.js +0 -1
  275. package/dist/digi-arbetsformedlingen/p-3a76bfde.entry.js +0 -1
  276. package/dist/digi-arbetsformedlingen/p-3b20ec86.js +0 -1
  277. package/dist/digi-arbetsformedlingen/p-3d7fff3c.entry.js +0 -1
  278. package/dist/digi-arbetsformedlingen/p-41bc039f.entry.js +0 -1
  279. package/dist/digi-arbetsformedlingen/p-4841b4e1.js +0 -1
  280. package/dist/digi-arbetsformedlingen/p-4bad4fb0.js +0 -1
  281. package/dist/digi-arbetsformedlingen/p-4e36c467.entry.js +0 -1
  282. package/dist/digi-arbetsformedlingen/p-51149879.entry.js +0 -1
  283. package/dist/digi-arbetsformedlingen/p-51bfa2a9.entry.js +0 -1
  284. package/dist/digi-arbetsformedlingen/p-57319a80.entry.js +0 -1
  285. package/dist/digi-arbetsformedlingen/p-57a0cc63.entry.js +0 -1
  286. package/dist/digi-arbetsformedlingen/p-583d40dc.entry.js +0 -1
  287. package/dist/digi-arbetsformedlingen/p-5d3383f9.entry.js +0 -1
  288. package/dist/digi-arbetsformedlingen/p-681e7beb.entry.js +0 -1
  289. package/dist/digi-arbetsformedlingen/p-6bd60ab6.entry.js +0 -1
  290. package/dist/digi-arbetsformedlingen/p-6d864e79.entry.js +0 -1
  291. package/dist/digi-arbetsformedlingen/p-7238fdb8.entry.js +0 -1
  292. package/dist/digi-arbetsformedlingen/p-7327f45d.entry.js +0 -1
  293. package/dist/digi-arbetsformedlingen/p-750ff498.entry.js +0 -1
  294. package/dist/digi-arbetsformedlingen/p-78c99e87.entry.js +0 -1
  295. package/dist/digi-arbetsformedlingen/p-7933b555.js +0 -1
  296. package/dist/digi-arbetsformedlingen/p-7aacd45f.js +0 -1
  297. package/dist/digi-arbetsformedlingen/p-7e125c6e.entry.js +0 -1
  298. package/dist/digi-arbetsformedlingen/p-8142cc73.js +0 -1
  299. package/dist/digi-arbetsformedlingen/p-88b4d03a.js +0 -1
  300. package/dist/digi-arbetsformedlingen/p-905ccb30.js +0 -1
  301. package/dist/digi-arbetsformedlingen/p-93766b5e.entry.js +0 -1
  302. package/dist/digi-arbetsformedlingen/p-96987381.entry.js +0 -1
  303. package/dist/digi-arbetsformedlingen/p-9a6ea3b7.entry.js +0 -1
  304. package/dist/digi-arbetsformedlingen/p-9b7f0707.entry.js +0 -1
  305. package/dist/digi-arbetsformedlingen/p-9be9a291.js +0 -1
  306. package/dist/digi-arbetsformedlingen/p-9dd5d6c8.js +0 -1
  307. package/dist/digi-arbetsformedlingen/p-a2561b9e.entry.js +0 -1
  308. package/dist/digi-arbetsformedlingen/p-a34dfc04.entry.js +0 -1
  309. package/dist/digi-arbetsformedlingen/p-bd55807c.entry.js +0 -1
  310. package/dist/digi-arbetsformedlingen/p-c29ab968.entry.js +0 -1
  311. package/dist/digi-arbetsformedlingen/p-c461917d.entry.js +0 -1
  312. package/dist/digi-arbetsformedlingen/p-c68bf2b3.entry.js +0 -1
  313. package/dist/digi-arbetsformedlingen/p-c7949525.js +0 -1
  314. package/dist/digi-arbetsformedlingen/p-ccd617cc.entry.js +0 -1
  315. package/dist/digi-arbetsformedlingen/p-d055d564.entry.js +0 -1
  316. package/dist/digi-arbetsformedlingen/p-d1886fff.js +0 -1
  317. package/dist/digi-arbetsformedlingen/p-d5376b7c.entry.js +0 -1
  318. package/dist/digi-arbetsformedlingen/p-d7aa8315.entry.js +0 -1
  319. package/dist/digi-arbetsformedlingen/p-e9abb2b1.entry.js +0 -1
  320. package/dist/digi-arbetsformedlingen/p-edcb61eb.entry.js +0 -1
  321. package/dist/digi-arbetsformedlingen/p-eeca26b2.entry.js +0 -1
  322. package/dist/digi-arbetsformedlingen/p-f40f4b2a.js +0 -1
  323. package/dist/digi-arbetsformedlingen/p-f447b984.js +0 -1
  324. package/dist/digi-arbetsformedlingen/p-f94db846.entry.js +0 -1
  325. package/dist/esm/digi-button_17.entry.js +0 -1100
  326. package/dist/esm/digi-calendar-datepicker.entry.js +0 -2596
  327. package/dist/esm/digi-calendar_2.entry.js +0 -459
  328. package/dist/esm/digi-code-block_3.entry.js +0 -223
  329. package/dist/esm/digi-expandable-faq-item.entry.js +0 -93
  330. package/dist/esm/digi-form-category-filter.entry.js +0 -117
  331. package/dist/esm/digi-form-checkbox.entry.js +0 -123
  332. package/dist/esm/digi-form-input.entry.js +0 -190
  333. package/dist/esm/digi-form-label_3.entry.js +0 -123
  334. package/dist/esm/digi-form-radiogroup.entry.js +0 -76
  335. package/dist/esm/digi-form-select-filter.entry.js +0 -561
  336. package/dist/esm/digi-form-select_2.entry.js +0 -181
  337. package/dist/esm/digi-icon-check.entry.js +0 -26
  338. package/dist/esm/digi-icon-chevron-down.entry.js +0 -26
  339. package/dist/esm/digi-icon-chevron-left_2.entry.js +0 -48
  340. package/dist/esm/digi-icon-copy.entry.js +0 -26
  341. package/dist/esm/digi-icon-minus_2.entry.js +0 -48
  342. package/dist/esm/digi-icon-validation-error_2.entry.js +0 -48
  343. package/dist/esm/digi-link.entry.js +0 -71
  344. package/dist/esm/digi-navigation-vertical-menu-item.entry.js +0 -146
  345. package/dist/esm/digi-navigation-vertical-menu.entry.js +0 -173
  346. package/dist/esm/digi-progress-indicator.entry.js +0 -133
  347. package/dist/esm/digi-tools-theme-provider.entry.js +0 -24
  348. package/dist/esm/digi-typography-heading-jumbo.entry.js +0 -34
  349. package/dist/esm/digi-typography-preamble.entry.js +0 -16
  350. package/dist/esm/digi-typography.entry.js +0 -22
  351. package/dist/esm/digi-util-mutation-observer.entry.js +0 -60
  352. package/dist/esm/expandable-faq-item-variation.enum-a8cb225b.js +0 -18
  353. package/dist/esm/form-checkbox-variation.enum-83e906fc.js +0 -19
  354. package/dist/esm/form-input-search-variation.enum-6d8dc10a.js +0 -15
  355. package/dist/esm/form-input-variation.enum-64d9450f.js +0 -29
  356. package/dist/esm/form-radiogroup-validation.enum-d790fc66.js +0 -9
  357. package/dist/esm/form-select-variation.enum-f2f6098d.js +0 -16
  358. package/dist/esm/form-validation-message-variation.enum-bcef8a9d.js +0 -8
  359. package/dist/esm/index-5b6c95c6.js +0 -63
  360. package/dist/esm/index-8685f88d.js +0 -170
  361. package/dist/esm/navigation-vertical-menu-variation.enum-c30b0ea9.js +0 -13
  362. package/dist/esm/progress-indicator-variation.enum-b12ba50a.js +0 -13
  363. package/dist/esm/tools-theme-provider.brand.enum-8c5a98c9.js +0 -7
  364. package/dist/esm/typography-heading-jumbo-variation.enum-eb737f1b.js +0 -17
@@ -1,2600 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index$2 = require('./index-7a477838.js');
6
- const text = require('./text-65b1b58c.js');
7
- require('./badge-notification-shape.enum-ff802554.js');
8
- const typographyVariation_enum = require('./typography-variation.enum-118ff8e5.js');
9
- require('./badge-status-variation.enum-0a5adc21.js');
10
- require('./code-example-variation.enum-1611825e.js');
11
- require('./form-input-search-variation.enum-e0e025b1.js');
12
- require('./button-variation.enum-bc521499.js');
13
- require('./calendar-week-view-heading-level.enum-fd0c841b.js');
14
- require('./bar-chart-variation.enum-a4e866b6.js');
15
- require('./code-variation.enum-c4a4e6fd.js');
16
- require('./expandable-accordion-header-level.enum-45483252.js');
17
- require('./expandable-faq-item-variation.enum-89427195.js');
18
- require('./expandable-faq-variation.enum-af923f49.js');
19
- require('./footer-card-variation.enum-99555edc.js');
20
- require('./form-checkbox-variation.enum-d2ca879e.js');
21
- require('./form-file-upload-variation.enum-634cfae8.js');
22
- require('./form-input-type.enum-9c8ee12a.js');
23
- const formInputVariation_enum = require('./form-input-variation.enum-c750520c.js');
24
- require('./form-radiogroup-validation.enum-03a17d4d.js');
25
- require('./form-select-variation.enum-528c1bf0.js');
26
- require('./form-textarea-variation.enum-9c90d40f.js');
27
- require('./form-validation-message-variation.enum-855ae0be.js');
28
- require('./info-card-multi-type.enum-14746572.js');
29
- require('./info-card-variation.enum-64cef637.js');
30
- require('./layout-block-variation.enum-f6102119.js');
31
- require('./layout-columns-variation.enum-65675649.js');
32
- require('./link-button-variation.enum-137785e3.js');
33
- require('./list-type.enum-aea4d012.js');
34
- require('./loader-skeleton-variation.enum-d52ba55e.js');
35
- require('./loader-spinner-size.enum-db2973f0.js');
36
- require('./logo-variation.enum-607fadb4.js');
37
- require('./media-figure-alignment.enum-3885aba5.js');
38
- require('./navigation-sidebar-variation.enum-1c0c3064.js');
39
- require('./navigation-vertical-menu-variation.enum-c237edd3.js');
40
- require('./progress-indicator-variation.enum-7cf8e0e4.js');
41
- require('./progress-list-item-variation.enum-90e4c874.js');
42
- require('./progress-list-variation.enum-06d5ce27.js');
43
- require('./progressbar-variation.enum-aff9fa80.js');
44
- require('./quote-image-inner-position.enum-e64e7a6d.js');
45
- require('./table-variation.enum-25df2ad7.js');
46
- require('./tag-media-icon.enum-372563c5.js');
47
- require('./tag-size.enum-387c516c.js');
48
- require('./tools-feedback-banner-type.enum-de373ba0.js');
49
- require('./tools-feedback-rating-variation.enum-2f71e84d.js');
50
- require('./tools-theme-provider.brand.enum-bc855272.js');
51
- require('./typography-heading-jumbo-variation.enum-8677e099.js');
52
- require('./typography-meta-variation.enum-13ac3538.js');
53
- require('./typography-time-variation.enum-bce1d87e.js');
54
- require('./util-breakpoint-observer-breakpoints.enum-e96d3a84.js');
55
- const randomIdGenerator_util = require('./randomIdGenerator.util-e7f4b6de.js');
56
- const detectClickOutside_util = require('./detectClickOutside.util-3e764eb3.js');
57
- const index = require('./index-e8333bcc.js');
58
- const index$1 = require('./index-ac8e01b4.js');
59
- const index$3 = require('./index-cad91a90.js');
60
- require('./detectClosest.util-85b3507b.js');
61
-
62
- function assign(target, dirtyObject) {
63
- if (target == null) {
64
- throw new TypeError('assign requires that input parameter not be null or undefined');
65
- }
66
-
67
- dirtyObject = dirtyObject || {};
68
-
69
- for (var property in dirtyObject) {
70
- if (Object.prototype.hasOwnProperty.call(dirtyObject, property)) {
71
- target[property] = dirtyObject[property];
72
- }
73
- }
74
-
75
- return target;
76
- }
77
-
78
- // See issue: https://github.com/date-fns/date-fns/issues/376
79
-
80
- function setUTCDay(dirtyDate, dirtyDay, dirtyOptions) {
81
- index.requiredArgs(2, arguments);
82
- var options = dirtyOptions || {};
83
- var locale = options.locale;
84
- var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn;
85
- var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : index$1.toInteger(localeWeekStartsOn);
86
- var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : index$1.toInteger(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
87
-
88
- if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
89
- throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
90
- }
91
-
92
- var date = index.toDate(dirtyDate);
93
- var day = index$1.toInteger(dirtyDay);
94
- var currentDay = date.getUTCDay();
95
- var remainder = day % 7;
96
- var dayIndex = (remainder + 7) % 7;
97
- var diff = (dayIndex < weekStartsOn ? 7 : 0) + day - currentDay;
98
- date.setUTCDate(date.getUTCDate() + diff);
99
- return date;
100
- }
101
-
102
- // See issue: https://github.com/date-fns/date-fns/issues/376
103
-
104
- function setUTCISODay(dirtyDate, dirtyDay) {
105
- index.requiredArgs(2, arguments);
106
- var day = index$1.toInteger(dirtyDay);
107
-
108
- if (day % 7 === 0) {
109
- day = day - 7;
110
- }
111
-
112
- var weekStartsOn = 1;
113
- var date = index.toDate(dirtyDate);
114
- var currentDay = date.getUTCDay();
115
- var remainder = day % 7;
116
- var dayIndex = (remainder + 7) % 7;
117
- var diff = (dayIndex < weekStartsOn ? 7 : 0) + day - currentDay;
118
- date.setUTCDate(date.getUTCDate() + diff);
119
- return date;
120
- }
121
-
122
- // See issue: https://github.com/date-fns/date-fns/issues/376
123
-
124
- function setUTCISOWeek(dirtyDate, dirtyISOWeek) {
125
- index.requiredArgs(2, arguments);
126
- var date = index.toDate(dirtyDate);
127
- var isoWeek = index$1.toInteger(dirtyISOWeek);
128
- var diff = index$1.getUTCISOWeek(date) - isoWeek;
129
- date.setUTCDate(date.getUTCDate() - diff * 7);
130
- return date;
131
- }
132
-
133
- // See issue: https://github.com/date-fns/date-fns/issues/376
134
-
135
- function setUTCWeek(dirtyDate, dirtyWeek, options) {
136
- index.requiredArgs(2, arguments);
137
- var date = index.toDate(dirtyDate);
138
- var week = index$1.toInteger(dirtyWeek);
139
- var diff = index$1.getUTCWeek(date, options) - week;
140
- date.setUTCDate(date.getUTCDate() - diff * 7);
141
- return date;
142
- }
143
-
144
- var MILLISECONDS_IN_HOUR = 3600000;
145
- var MILLISECONDS_IN_MINUTE = 60000;
146
- var MILLISECONDS_IN_SECOND = 1000;
147
- var numericPatterns = {
148
- month: /^(1[0-2]|0?\d)/,
149
- // 0 to 12
150
- date: /^(3[0-1]|[0-2]?\d)/,
151
- // 0 to 31
152
- dayOfYear: /^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,
153
- // 0 to 366
154
- week: /^(5[0-3]|[0-4]?\d)/,
155
- // 0 to 53
156
- hour23h: /^(2[0-3]|[0-1]?\d)/,
157
- // 0 to 23
158
- hour24h: /^(2[0-4]|[0-1]?\d)/,
159
- // 0 to 24
160
- hour11h: /^(1[0-1]|0?\d)/,
161
- // 0 to 11
162
- hour12h: /^(1[0-2]|0?\d)/,
163
- // 0 to 12
164
- minute: /^[0-5]?\d/,
165
- // 0 to 59
166
- second: /^[0-5]?\d/,
167
- // 0 to 59
168
- singleDigit: /^\d/,
169
- // 0 to 9
170
- twoDigits: /^\d{1,2}/,
171
- // 0 to 99
172
- threeDigits: /^\d{1,3}/,
173
- // 0 to 999
174
- fourDigits: /^\d{1,4}/,
175
- // 0 to 9999
176
- anyDigitsSigned: /^-?\d+/,
177
- singleDigitSigned: /^-?\d/,
178
- // 0 to 9, -0 to -9
179
- twoDigitsSigned: /^-?\d{1,2}/,
180
- // 0 to 99, -0 to -99
181
- threeDigitsSigned: /^-?\d{1,3}/,
182
- // 0 to 999, -0 to -999
183
- fourDigitsSigned: /^-?\d{1,4}/ // 0 to 9999, -0 to -9999
184
-
185
- };
186
- var timezonePatterns = {
187
- basicOptionalMinutes: /^([+-])(\d{2})(\d{2})?|Z/,
188
- basic: /^([+-])(\d{2})(\d{2})|Z/,
189
- basicOptionalSeconds: /^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,
190
- extended: /^([+-])(\d{2}):(\d{2})|Z/,
191
- extendedOptionalSeconds: /^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/
192
- };
193
-
194
- function parseNumericPattern(pattern, string, valueCallback) {
195
- var matchResult = string.match(pattern);
196
-
197
- if (!matchResult) {
198
- return null;
199
- }
200
-
201
- var value = parseInt(matchResult[0], 10);
202
- return {
203
- value: valueCallback ? valueCallback(value) : value,
204
- rest: string.slice(matchResult[0].length)
205
- };
206
- }
207
-
208
- function parseTimezonePattern(pattern, string) {
209
- var matchResult = string.match(pattern);
210
-
211
- if (!matchResult) {
212
- return null;
213
- } // Input is 'Z'
214
-
215
-
216
- if (matchResult[0] === 'Z') {
217
- return {
218
- value: 0,
219
- rest: string.slice(1)
220
- };
221
- }
222
-
223
- var sign = matchResult[1] === '+' ? 1 : -1;
224
- var hours = matchResult[2] ? parseInt(matchResult[2], 10) : 0;
225
- var minutes = matchResult[3] ? parseInt(matchResult[3], 10) : 0;
226
- var seconds = matchResult[5] ? parseInt(matchResult[5], 10) : 0;
227
- return {
228
- value: sign * (hours * MILLISECONDS_IN_HOUR + minutes * MILLISECONDS_IN_MINUTE + seconds * MILLISECONDS_IN_SECOND),
229
- rest: string.slice(matchResult[0].length)
230
- };
231
- }
232
-
233
- function parseAnyDigitsSigned(string, valueCallback) {
234
- return parseNumericPattern(numericPatterns.anyDigitsSigned, string, valueCallback);
235
- }
236
-
237
- function parseNDigits(n, string, valueCallback) {
238
- switch (n) {
239
- case 1:
240
- return parseNumericPattern(numericPatterns.singleDigit, string, valueCallback);
241
-
242
- case 2:
243
- return parseNumericPattern(numericPatterns.twoDigits, string, valueCallback);
244
-
245
- case 3:
246
- return parseNumericPattern(numericPatterns.threeDigits, string, valueCallback);
247
-
248
- case 4:
249
- return parseNumericPattern(numericPatterns.fourDigits, string, valueCallback);
250
-
251
- default:
252
- return parseNumericPattern(new RegExp('^\\d{1,' + n + '}'), string, valueCallback);
253
- }
254
- }
255
-
256
- function parseNDigitsSigned(n, string, valueCallback) {
257
- switch (n) {
258
- case 1:
259
- return parseNumericPattern(numericPatterns.singleDigitSigned, string, valueCallback);
260
-
261
- case 2:
262
- return parseNumericPattern(numericPatterns.twoDigitsSigned, string, valueCallback);
263
-
264
- case 3:
265
- return parseNumericPattern(numericPatterns.threeDigitsSigned, string, valueCallback);
266
-
267
- case 4:
268
- return parseNumericPattern(numericPatterns.fourDigitsSigned, string, valueCallback);
269
-
270
- default:
271
- return parseNumericPattern(new RegExp('^-?\\d{1,' + n + '}'), string, valueCallback);
272
- }
273
- }
274
-
275
- function dayPeriodEnumToHours(enumValue) {
276
- switch (enumValue) {
277
- case 'morning':
278
- return 4;
279
-
280
- case 'evening':
281
- return 17;
282
-
283
- case 'pm':
284
- case 'noon':
285
- case 'afternoon':
286
- return 12;
287
-
288
- case 'am':
289
- case 'midnight':
290
- case 'night':
291
- default:
292
- return 0;
293
- }
294
- }
295
-
296
- function normalizeTwoDigitYear(twoDigitYear, currentYear) {
297
- var isCommonEra = currentYear > 0; // Absolute number of the current year:
298
- // 1 -> 1 AC
299
- // 0 -> 1 BC
300
- // -1 -> 2 BC
301
-
302
- var absCurrentYear = isCommonEra ? currentYear : 1 - currentYear;
303
- var result;
304
-
305
- if (absCurrentYear <= 50) {
306
- result = twoDigitYear || 100;
307
- } else {
308
- var rangeEnd = absCurrentYear + 50;
309
- var rangeEndCentury = Math.floor(rangeEnd / 100) * 100;
310
- var isPreviousCentury = twoDigitYear >= rangeEnd % 100;
311
- result = twoDigitYear + rangeEndCentury - (isPreviousCentury ? 100 : 0);
312
- }
313
-
314
- return isCommonEra ? result : 1 - result;
315
- }
316
-
317
- var DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
318
- var DAYS_IN_MONTH_LEAP_YEAR = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; // User for validation
319
-
320
- function isLeapYearIndex(year) {
321
- return year % 400 === 0 || year % 4 === 0 && year % 100 !== 0;
322
- }
323
- /*
324
- * | | Unit | | Unit |
325
- * |-----|--------------------------------|-----|--------------------------------|
326
- * | a | AM, PM | A* | Milliseconds in day |
327
- * | b | AM, PM, noon, midnight | B | Flexible day period |
328
- * | c | Stand-alone local day of week | C* | Localized hour w/ day period |
329
- * | d | Day of month | D | Day of year |
330
- * | e | Local day of week | E | Day of week |
331
- * | f | | F* | Day of week in month |
332
- * | g* | Modified Julian day | G | Era |
333
- * | h | Hour [1-12] | H | Hour [0-23] |
334
- * | i! | ISO day of week | I! | ISO week of year |
335
- * | j* | Localized hour w/ day period | J* | Localized hour w/o day period |
336
- * | k | Hour [1-24] | K | Hour [0-11] |
337
- * | l* | (deprecated) | L | Stand-alone month |
338
- * | m | Minute | M | Month |
339
- * | n | | N | |
340
- * | o! | Ordinal number modifier | O* | Timezone (GMT) |
341
- * | p | | P | |
342
- * | q | Stand-alone quarter | Q | Quarter |
343
- * | r* | Related Gregorian year | R! | ISO week-numbering year |
344
- * | s | Second | S | Fraction of second |
345
- * | t! | Seconds timestamp | T! | Milliseconds timestamp |
346
- * | u | Extended year | U* | Cyclic year |
347
- * | v* | Timezone (generic non-locat.) | V* | Timezone (location) |
348
- * | w | Local week of year | W* | Week of month |
349
- * | x | Timezone (ISO-8601 w/o Z) | X | Timezone (ISO-8601) |
350
- * | y | Year (abs) | Y | Local week-numbering year |
351
- * | z* | Timezone (specific non-locat.) | Z* | Timezone (aliases) |
352
- *
353
- * Letters marked by * are not implemented but reserved by Unicode standard.
354
- *
355
- * Letters marked by ! are non-standard, but implemented by date-fns:
356
- * - `o` modifies the previous token to turn it into an ordinal (see `parse` docs)
357
- * - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days,
358
- * i.e. 7 for Sunday, 1 for Monday, etc.
359
- * - `I` is ISO week of year, as opposed to `w` which is local week of year.
360
- * - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year.
361
- * `R` is supposed to be used in conjunction with `I` and `i`
362
- * for universal ISO week-numbering date, whereas
363
- * `Y` is supposed to be used in conjunction with `w` and `e`
364
- * for week-numbering date specific to the locale.
365
- */
366
-
367
-
368
- var parsers = {
369
- // Era
370
- G: {
371
- priority: 140,
372
- parse: function (string, token, match, _options) {
373
- switch (token) {
374
- // AD, BC
375
- case 'G':
376
- case 'GG':
377
- case 'GGG':
378
- return match.era(string, {
379
- width: 'abbreviated'
380
- }) || match.era(string, {
381
- width: 'narrow'
382
- });
383
- // A, B
384
-
385
- case 'GGGGG':
386
- return match.era(string, {
387
- width: 'narrow'
388
- });
389
- // Anno Domini, Before Christ
390
-
391
- case 'GGGG':
392
- default:
393
- return match.era(string, {
394
- width: 'wide'
395
- }) || match.era(string, {
396
- width: 'abbreviated'
397
- }) || match.era(string, {
398
- width: 'narrow'
399
- });
400
- }
401
- },
402
- set: function (date, flags, value, _options) {
403
- flags.era = value;
404
- date.setUTCFullYear(value, 0, 1);
405
- date.setUTCHours(0, 0, 0, 0);
406
- return date;
407
- },
408
- incompatibleTokens: ['R', 'u', 't', 'T']
409
- },
410
- // Year
411
- y: {
412
- // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_Patterns
413
- // | Year | y | yy | yyy | yyyy | yyyyy |
414
- // |----------|-------|----|-------|-------|-------|
415
- // | AD 1 | 1 | 01 | 001 | 0001 | 00001 |
416
- // | AD 12 | 12 | 12 | 012 | 0012 | 00012 |
417
- // | AD 123 | 123 | 23 | 123 | 0123 | 00123 |
418
- // | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 |
419
- // | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |
420
- priority: 130,
421
- parse: function (string, token, match, _options) {
422
- var valueCallback = function (year) {
423
- return {
424
- year: year,
425
- isTwoDigitYear: token === 'yy'
426
- };
427
- };
428
-
429
- switch (token) {
430
- case 'y':
431
- return parseNDigits(4, string, valueCallback);
432
-
433
- case 'yo':
434
- return match.ordinalNumber(string, {
435
- unit: 'year',
436
- valueCallback: valueCallback
437
- });
438
-
439
- default:
440
- return parseNDigits(token.length, string, valueCallback);
441
- }
442
- },
443
- validate: function (_date, value, _options) {
444
- return value.isTwoDigitYear || value.year > 0;
445
- },
446
- set: function (date, flags, value, _options) {
447
- var currentYear = date.getUTCFullYear();
448
-
449
- if (value.isTwoDigitYear) {
450
- var normalizedTwoDigitYear = normalizeTwoDigitYear(value.year, currentYear);
451
- date.setUTCFullYear(normalizedTwoDigitYear, 0, 1);
452
- date.setUTCHours(0, 0, 0, 0);
453
- return date;
454
- }
455
-
456
- var year = !('era' in flags) || flags.era === 1 ? value.year : 1 - value.year;
457
- date.setUTCFullYear(year, 0, 1);
458
- date.setUTCHours(0, 0, 0, 0);
459
- return date;
460
- },
461
- incompatibleTokens: ['Y', 'R', 'u', 'w', 'I', 'i', 'e', 'c', 't', 'T']
462
- },
463
- // Local week-numbering year
464
- Y: {
465
- priority: 130,
466
- parse: function (string, token, match, _options) {
467
- var valueCallback = function (year) {
468
- return {
469
- year: year,
470
- isTwoDigitYear: token === 'YY'
471
- };
472
- };
473
-
474
- switch (token) {
475
- case 'Y':
476
- return parseNDigits(4, string, valueCallback);
477
-
478
- case 'Yo':
479
- return match.ordinalNumber(string, {
480
- unit: 'year',
481
- valueCallback: valueCallback
482
- });
483
-
484
- default:
485
- return parseNDigits(token.length, string, valueCallback);
486
- }
487
- },
488
- validate: function (_date, value, _options) {
489
- return value.isTwoDigitYear || value.year > 0;
490
- },
491
- set: function (date, flags, value, options) {
492
- var currentYear = index$1.getUTCWeekYear(date, options);
493
-
494
- if (value.isTwoDigitYear) {
495
- var normalizedTwoDigitYear = normalizeTwoDigitYear(value.year, currentYear);
496
- date.setUTCFullYear(normalizedTwoDigitYear, 0, options.firstWeekContainsDate);
497
- date.setUTCHours(0, 0, 0, 0);
498
- return index$1.startOfUTCWeek(date, options);
499
- }
500
-
501
- var year = !('era' in flags) || flags.era === 1 ? value.year : 1 - value.year;
502
- date.setUTCFullYear(year, 0, options.firstWeekContainsDate);
503
- date.setUTCHours(0, 0, 0, 0);
504
- return index$1.startOfUTCWeek(date, options);
505
- },
506
- incompatibleTokens: ['y', 'R', 'u', 'Q', 'q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T']
507
- },
508
- // ISO week-numbering year
509
- R: {
510
- priority: 130,
511
- parse: function (string, token, _match, _options) {
512
- if (token === 'R') {
513
- return parseNDigitsSigned(4, string);
514
- }
515
-
516
- return parseNDigitsSigned(token.length, string);
517
- },
518
- set: function (_date, _flags, value, _options) {
519
- var firstWeekOfYear = new Date(0);
520
- firstWeekOfYear.setUTCFullYear(value, 0, 4);
521
- firstWeekOfYear.setUTCHours(0, 0, 0, 0);
522
- return index$1.startOfUTCISOWeek(firstWeekOfYear);
523
- },
524
- incompatibleTokens: ['G', 'y', 'Y', 'u', 'Q', 'q', 'M', 'L', 'w', 'd', 'D', 'e', 'c', 't', 'T']
525
- },
526
- // Extended year
527
- u: {
528
- priority: 130,
529
- parse: function (string, token, _match, _options) {
530
- if (token === 'u') {
531
- return parseNDigitsSigned(4, string);
532
- }
533
-
534
- return parseNDigitsSigned(token.length, string);
535
- },
536
- set: function (date, _flags, value, _options) {
537
- date.setUTCFullYear(value, 0, 1);
538
- date.setUTCHours(0, 0, 0, 0);
539
- return date;
540
- },
541
- incompatibleTokens: ['G', 'y', 'Y', 'R', 'w', 'I', 'i', 'e', 'c', 't', 'T']
542
- },
543
- // Quarter
544
- Q: {
545
- priority: 120,
546
- parse: function (string, token, match, _options) {
547
- switch (token) {
548
- // 1, 2, 3, 4
549
- case 'Q':
550
- case 'QQ':
551
- // 01, 02, 03, 04
552
- return parseNDigits(token.length, string);
553
- // 1st, 2nd, 3rd, 4th
554
-
555
- case 'Qo':
556
- return match.ordinalNumber(string, {
557
- unit: 'quarter'
558
- });
559
- // Q1, Q2, Q3, Q4
560
-
561
- case 'QQQ':
562
- return match.quarter(string, {
563
- width: 'abbreviated',
564
- context: 'formatting'
565
- }) || match.quarter(string, {
566
- width: 'narrow',
567
- context: 'formatting'
568
- });
569
- // 1, 2, 3, 4 (narrow quarter; could be not numerical)
570
-
571
- case 'QQQQQ':
572
- return match.quarter(string, {
573
- width: 'narrow',
574
- context: 'formatting'
575
- });
576
- // 1st quarter, 2nd quarter, ...
577
-
578
- case 'QQQQ':
579
- default:
580
- return match.quarter(string, {
581
- width: 'wide',
582
- context: 'formatting'
583
- }) || match.quarter(string, {
584
- width: 'abbreviated',
585
- context: 'formatting'
586
- }) || match.quarter(string, {
587
- width: 'narrow',
588
- context: 'formatting'
589
- });
590
- }
591
- },
592
- validate: function (_date, value, _options) {
593
- return value >= 1 && value <= 4;
594
- },
595
- set: function (date, _flags, value, _options) {
596
- date.setUTCMonth((value - 1) * 3, 1);
597
- date.setUTCHours(0, 0, 0, 0);
598
- return date;
599
- },
600
- incompatibleTokens: ['Y', 'R', 'q', 'M', 'L', 'w', 'I', 'd', 'D', 'i', 'e', 'c', 't', 'T']
601
- },
602
- // Stand-alone quarter
603
- q: {
604
- priority: 120,
605
- parse: function (string, token, match, _options) {
606
- switch (token) {
607
- // 1, 2, 3, 4
608
- case 'q':
609
- case 'qq':
610
- // 01, 02, 03, 04
611
- return parseNDigits(token.length, string);
612
- // 1st, 2nd, 3rd, 4th
613
-
614
- case 'qo':
615
- return match.ordinalNumber(string, {
616
- unit: 'quarter'
617
- });
618
- // Q1, Q2, Q3, Q4
619
-
620
- case 'qqq':
621
- return match.quarter(string, {
622
- width: 'abbreviated',
623
- context: 'standalone'
624
- }) || match.quarter(string, {
625
- width: 'narrow',
626
- context: 'standalone'
627
- });
628
- // 1, 2, 3, 4 (narrow quarter; could be not numerical)
629
-
630
- case 'qqqqq':
631
- return match.quarter(string, {
632
- width: 'narrow',
633
- context: 'standalone'
634
- });
635
- // 1st quarter, 2nd quarter, ...
636
-
637
- case 'qqqq':
638
- default:
639
- return match.quarter(string, {
640
- width: 'wide',
641
- context: 'standalone'
642
- }) || match.quarter(string, {
643
- width: 'abbreviated',
644
- context: 'standalone'
645
- }) || match.quarter(string, {
646
- width: 'narrow',
647
- context: 'standalone'
648
- });
649
- }
650
- },
651
- validate: function (_date, value, _options) {
652
- return value >= 1 && value <= 4;
653
- },
654
- set: function (date, _flags, value, _options) {
655
- date.setUTCMonth((value - 1) * 3, 1);
656
- date.setUTCHours(0, 0, 0, 0);
657
- return date;
658
- },
659
- incompatibleTokens: ['Y', 'R', 'Q', 'M', 'L', 'w', 'I', 'd', 'D', 'i', 'e', 'c', 't', 'T']
660
- },
661
- // Month
662
- M: {
663
- priority: 110,
664
- parse: function (string, token, match, _options) {
665
- var valueCallback = function (value) {
666
- return value - 1;
667
- };
668
-
669
- switch (token) {
670
- // 1, 2, ..., 12
671
- case 'M':
672
- return parseNumericPattern(numericPatterns.month, string, valueCallback);
673
- // 01, 02, ..., 12
674
-
675
- case 'MM':
676
- return parseNDigits(2, string, valueCallback);
677
- // 1st, 2nd, ..., 12th
678
-
679
- case 'Mo':
680
- return match.ordinalNumber(string, {
681
- unit: 'month',
682
- valueCallback: valueCallback
683
- });
684
- // Jan, Feb, ..., Dec
685
-
686
- case 'MMM':
687
- return match.month(string, {
688
- width: 'abbreviated',
689
- context: 'formatting'
690
- }) || match.month(string, {
691
- width: 'narrow',
692
- context: 'formatting'
693
- });
694
- // J, F, ..., D
695
-
696
- case 'MMMMM':
697
- return match.month(string, {
698
- width: 'narrow',
699
- context: 'formatting'
700
- });
701
- // January, February, ..., December
702
-
703
- case 'MMMM':
704
- default:
705
- return match.month(string, {
706
- width: 'wide',
707
- context: 'formatting'
708
- }) || match.month(string, {
709
- width: 'abbreviated',
710
- context: 'formatting'
711
- }) || match.month(string, {
712
- width: 'narrow',
713
- context: 'formatting'
714
- });
715
- }
716
- },
717
- validate: function (_date, value, _options) {
718
- return value >= 0 && value <= 11;
719
- },
720
- set: function (date, _flags, value, _options) {
721
- date.setUTCMonth(value, 1);
722
- date.setUTCHours(0, 0, 0, 0);
723
- return date;
724
- },
725
- incompatibleTokens: ['Y', 'R', 'q', 'Q', 'L', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']
726
- },
727
- // Stand-alone month
728
- L: {
729
- priority: 110,
730
- parse: function (string, token, match, _options) {
731
- var valueCallback = function (value) {
732
- return value - 1;
733
- };
734
-
735
- switch (token) {
736
- // 1, 2, ..., 12
737
- case 'L':
738
- return parseNumericPattern(numericPatterns.month, string, valueCallback);
739
- // 01, 02, ..., 12
740
-
741
- case 'LL':
742
- return parseNDigits(2, string, valueCallback);
743
- // 1st, 2nd, ..., 12th
744
-
745
- case 'Lo':
746
- return match.ordinalNumber(string, {
747
- unit: 'month',
748
- valueCallback: valueCallback
749
- });
750
- // Jan, Feb, ..., Dec
751
-
752
- case 'LLL':
753
- return match.month(string, {
754
- width: 'abbreviated',
755
- context: 'standalone'
756
- }) || match.month(string, {
757
- width: 'narrow',
758
- context: 'standalone'
759
- });
760
- // J, F, ..., D
761
-
762
- case 'LLLLL':
763
- return match.month(string, {
764
- width: 'narrow',
765
- context: 'standalone'
766
- });
767
- // January, February, ..., December
768
-
769
- case 'LLLL':
770
- default:
771
- return match.month(string, {
772
- width: 'wide',
773
- context: 'standalone'
774
- }) || match.month(string, {
775
- width: 'abbreviated',
776
- context: 'standalone'
777
- }) || match.month(string, {
778
- width: 'narrow',
779
- context: 'standalone'
780
- });
781
- }
782
- },
783
- validate: function (_date, value, _options) {
784
- return value >= 0 && value <= 11;
785
- },
786
- set: function (date, _flags, value, _options) {
787
- date.setUTCMonth(value, 1);
788
- date.setUTCHours(0, 0, 0, 0);
789
- return date;
790
- },
791
- incompatibleTokens: ['Y', 'R', 'q', 'Q', 'M', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']
792
- },
793
- // Local week of year
794
- w: {
795
- priority: 100,
796
- parse: function (string, token, match, _options) {
797
- switch (token) {
798
- case 'w':
799
- return parseNumericPattern(numericPatterns.week, string);
800
-
801
- case 'wo':
802
- return match.ordinalNumber(string, {
803
- unit: 'week'
804
- });
805
-
806
- default:
807
- return parseNDigits(token.length, string);
808
- }
809
- },
810
- validate: function (_date, value, _options) {
811
- return value >= 1 && value <= 53;
812
- },
813
- set: function (date, _flags, value, options) {
814
- return index$1.startOfUTCWeek(setUTCWeek(date, value, options), options);
815
- },
816
- incompatibleTokens: ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T']
817
- },
818
- // ISO week of year
819
- I: {
820
- priority: 100,
821
- parse: function (string, token, match, _options) {
822
- switch (token) {
823
- case 'I':
824
- return parseNumericPattern(numericPatterns.week, string);
825
-
826
- case 'Io':
827
- return match.ordinalNumber(string, {
828
- unit: 'week'
829
- });
830
-
831
- default:
832
- return parseNDigits(token.length, string);
833
- }
834
- },
835
- validate: function (_date, value, _options) {
836
- return value >= 1 && value <= 53;
837
- },
838
- set: function (date, _flags, value, options) {
839
- return index$1.startOfUTCISOWeek(setUTCISOWeek(date, value, options), options);
840
- },
841
- incompatibleTokens: ['y', 'Y', 'u', 'q', 'Q', 'M', 'L', 'w', 'd', 'D', 'e', 'c', 't', 'T']
842
- },
843
- // Day of the month
844
- d: {
845
- priority: 90,
846
- subPriority: 1,
847
- parse: function (string, token, match, _options) {
848
- switch (token) {
849
- case 'd':
850
- return parseNumericPattern(numericPatterns.date, string);
851
-
852
- case 'do':
853
- return match.ordinalNumber(string, {
854
- unit: 'date'
855
- });
856
-
857
- default:
858
- return parseNDigits(token.length, string);
859
- }
860
- },
861
- validate: function (date, value, _options) {
862
- var year = date.getUTCFullYear();
863
- var isLeapYear = isLeapYearIndex(year);
864
- var month = date.getUTCMonth();
865
-
866
- if (isLeapYear) {
867
- return value >= 1 && value <= DAYS_IN_MONTH_LEAP_YEAR[month];
868
- } else {
869
- return value >= 1 && value <= DAYS_IN_MONTH[month];
870
- }
871
- },
872
- set: function (date, _flags, value, _options) {
873
- date.setUTCDate(value);
874
- date.setUTCHours(0, 0, 0, 0);
875
- return date;
876
- },
877
- incompatibleTokens: ['Y', 'R', 'q', 'Q', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']
878
- },
879
- // Day of year
880
- D: {
881
- priority: 90,
882
- subPriority: 1,
883
- parse: function (string, token, match, _options) {
884
- switch (token) {
885
- case 'D':
886
- case 'DD':
887
- return parseNumericPattern(numericPatterns.dayOfYear, string);
888
-
889
- case 'Do':
890
- return match.ordinalNumber(string, {
891
- unit: 'date'
892
- });
893
-
894
- default:
895
- return parseNDigits(token.length, string);
896
- }
897
- },
898
- validate: function (date, value, _options) {
899
- var year = date.getUTCFullYear();
900
- var isLeapYear = isLeapYearIndex(year);
901
-
902
- if (isLeapYear) {
903
- return value >= 1 && value <= 366;
904
- } else {
905
- return value >= 1 && value <= 365;
906
- }
907
- },
908
- set: function (date, _flags, value, _options) {
909
- date.setUTCMonth(0, value);
910
- date.setUTCHours(0, 0, 0, 0);
911
- return date;
912
- },
913
- incompatibleTokens: ['Y', 'R', 'q', 'Q', 'M', 'L', 'w', 'I', 'd', 'E', 'i', 'e', 'c', 't', 'T']
914
- },
915
- // Day of week
916
- E: {
917
- priority: 90,
918
- parse: function (string, token, match, _options) {
919
- switch (token) {
920
- // Tue
921
- case 'E':
922
- case 'EE':
923
- case 'EEE':
924
- return match.day(string, {
925
- width: 'abbreviated',
926
- context: 'formatting'
927
- }) || match.day(string, {
928
- width: 'short',
929
- context: 'formatting'
930
- }) || match.day(string, {
931
- width: 'narrow',
932
- context: 'formatting'
933
- });
934
- // T
935
-
936
- case 'EEEEE':
937
- return match.day(string, {
938
- width: 'narrow',
939
- context: 'formatting'
940
- });
941
- // Tu
942
-
943
- case 'EEEEEE':
944
- return match.day(string, {
945
- width: 'short',
946
- context: 'formatting'
947
- }) || match.day(string, {
948
- width: 'narrow',
949
- context: 'formatting'
950
- });
951
- // Tuesday
952
-
953
- case 'EEEE':
954
- default:
955
- return match.day(string, {
956
- width: 'wide',
957
- context: 'formatting'
958
- }) || match.day(string, {
959
- width: 'abbreviated',
960
- context: 'formatting'
961
- }) || match.day(string, {
962
- width: 'short',
963
- context: 'formatting'
964
- }) || match.day(string, {
965
- width: 'narrow',
966
- context: 'formatting'
967
- });
968
- }
969
- },
970
- validate: function (_date, value, _options) {
971
- return value >= 0 && value <= 6;
972
- },
973
- set: function (date, _flags, value, options) {
974
- date = setUTCDay(date, value, options);
975
- date.setUTCHours(0, 0, 0, 0);
976
- return date;
977
- },
978
- incompatibleTokens: ['D', 'i', 'e', 'c', 't', 'T']
979
- },
980
- // Local day of week
981
- e: {
982
- priority: 90,
983
- parse: function (string, token, match, options) {
984
- var valueCallback = function (value) {
985
- var wholeWeekDays = Math.floor((value - 1) / 7) * 7;
986
- return (value + options.weekStartsOn + 6) % 7 + wholeWeekDays;
987
- };
988
-
989
- switch (token) {
990
- // 3
991
- case 'e':
992
- case 'ee':
993
- // 03
994
- return parseNDigits(token.length, string, valueCallback);
995
- // 3rd
996
-
997
- case 'eo':
998
- return match.ordinalNumber(string, {
999
- unit: 'day',
1000
- valueCallback: valueCallback
1001
- });
1002
- // Tue
1003
-
1004
- case 'eee':
1005
- return match.day(string, {
1006
- width: 'abbreviated',
1007
- context: 'formatting'
1008
- }) || match.day(string, {
1009
- width: 'short',
1010
- context: 'formatting'
1011
- }) || match.day(string, {
1012
- width: 'narrow',
1013
- context: 'formatting'
1014
- });
1015
- // T
1016
-
1017
- case 'eeeee':
1018
- return match.day(string, {
1019
- width: 'narrow',
1020
- context: 'formatting'
1021
- });
1022
- // Tu
1023
-
1024
- case 'eeeeee':
1025
- return match.day(string, {
1026
- width: 'short',
1027
- context: 'formatting'
1028
- }) || match.day(string, {
1029
- width: 'narrow',
1030
- context: 'formatting'
1031
- });
1032
- // Tuesday
1033
-
1034
- case 'eeee':
1035
- default:
1036
- return match.day(string, {
1037
- width: 'wide',
1038
- context: 'formatting'
1039
- }) || match.day(string, {
1040
- width: 'abbreviated',
1041
- context: 'formatting'
1042
- }) || match.day(string, {
1043
- width: 'short',
1044
- context: 'formatting'
1045
- }) || match.day(string, {
1046
- width: 'narrow',
1047
- context: 'formatting'
1048
- });
1049
- }
1050
- },
1051
- validate: function (_date, value, _options) {
1052
- return value >= 0 && value <= 6;
1053
- },
1054
- set: function (date, _flags, value, options) {
1055
- date = setUTCDay(date, value, options);
1056
- date.setUTCHours(0, 0, 0, 0);
1057
- return date;
1058
- },
1059
- incompatibleTokens: ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'E', 'i', 'c', 't', 'T']
1060
- },
1061
- // Stand-alone local day of week
1062
- c: {
1063
- priority: 90,
1064
- parse: function (string, token, match, options) {
1065
- var valueCallback = function (value) {
1066
- var wholeWeekDays = Math.floor((value - 1) / 7) * 7;
1067
- return (value + options.weekStartsOn + 6) % 7 + wholeWeekDays;
1068
- };
1069
-
1070
- switch (token) {
1071
- // 3
1072
- case 'c':
1073
- case 'cc':
1074
- // 03
1075
- return parseNDigits(token.length, string, valueCallback);
1076
- // 3rd
1077
-
1078
- case 'co':
1079
- return match.ordinalNumber(string, {
1080
- unit: 'day',
1081
- valueCallback: valueCallback
1082
- });
1083
- // Tue
1084
-
1085
- case 'ccc':
1086
- return match.day(string, {
1087
- width: 'abbreviated',
1088
- context: 'standalone'
1089
- }) || match.day(string, {
1090
- width: 'short',
1091
- context: 'standalone'
1092
- }) || match.day(string, {
1093
- width: 'narrow',
1094
- context: 'standalone'
1095
- });
1096
- // T
1097
-
1098
- case 'ccccc':
1099
- return match.day(string, {
1100
- width: 'narrow',
1101
- context: 'standalone'
1102
- });
1103
- // Tu
1104
-
1105
- case 'cccccc':
1106
- return match.day(string, {
1107
- width: 'short',
1108
- context: 'standalone'
1109
- }) || match.day(string, {
1110
- width: 'narrow',
1111
- context: 'standalone'
1112
- });
1113
- // Tuesday
1114
-
1115
- case 'cccc':
1116
- default:
1117
- return match.day(string, {
1118
- width: 'wide',
1119
- context: 'standalone'
1120
- }) || match.day(string, {
1121
- width: 'abbreviated',
1122
- context: 'standalone'
1123
- }) || match.day(string, {
1124
- width: 'short',
1125
- context: 'standalone'
1126
- }) || match.day(string, {
1127
- width: 'narrow',
1128
- context: 'standalone'
1129
- });
1130
- }
1131
- },
1132
- validate: function (_date, value, _options) {
1133
- return value >= 0 && value <= 6;
1134
- },
1135
- set: function (date, _flags, value, options) {
1136
- date = setUTCDay(date, value, options);
1137
- date.setUTCHours(0, 0, 0, 0);
1138
- return date;
1139
- },
1140
- incompatibleTokens: ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'E', 'i', 'e', 't', 'T']
1141
- },
1142
- // ISO day of week
1143
- i: {
1144
- priority: 90,
1145
- parse: function (string, token, match, _options) {
1146
- var valueCallback = function (value) {
1147
- if (value === 0) {
1148
- return 7;
1149
- }
1150
-
1151
- return value;
1152
- };
1153
-
1154
- switch (token) {
1155
- // 2
1156
- case 'i':
1157
- case 'ii':
1158
- // 02
1159
- return parseNDigits(token.length, string);
1160
- // 2nd
1161
-
1162
- case 'io':
1163
- return match.ordinalNumber(string, {
1164
- unit: 'day'
1165
- });
1166
- // Tue
1167
-
1168
- case 'iii':
1169
- return match.day(string, {
1170
- width: 'abbreviated',
1171
- context: 'formatting',
1172
- valueCallback: valueCallback
1173
- }) || match.day(string, {
1174
- width: 'short',
1175
- context: 'formatting',
1176
- valueCallback: valueCallback
1177
- }) || match.day(string, {
1178
- width: 'narrow',
1179
- context: 'formatting',
1180
- valueCallback: valueCallback
1181
- });
1182
- // T
1183
-
1184
- case 'iiiii':
1185
- return match.day(string, {
1186
- width: 'narrow',
1187
- context: 'formatting',
1188
- valueCallback: valueCallback
1189
- });
1190
- // Tu
1191
-
1192
- case 'iiiiii':
1193
- return match.day(string, {
1194
- width: 'short',
1195
- context: 'formatting',
1196
- valueCallback: valueCallback
1197
- }) || match.day(string, {
1198
- width: 'narrow',
1199
- context: 'formatting',
1200
- valueCallback: valueCallback
1201
- });
1202
- // Tuesday
1203
-
1204
- case 'iiii':
1205
- default:
1206
- return match.day(string, {
1207
- width: 'wide',
1208
- context: 'formatting',
1209
- valueCallback: valueCallback
1210
- }) || match.day(string, {
1211
- width: 'abbreviated',
1212
- context: 'formatting',
1213
- valueCallback: valueCallback
1214
- }) || match.day(string, {
1215
- width: 'short',
1216
- context: 'formatting',
1217
- valueCallback: valueCallback
1218
- }) || match.day(string, {
1219
- width: 'narrow',
1220
- context: 'formatting',
1221
- valueCallback: valueCallback
1222
- });
1223
- }
1224
- },
1225
- validate: function (_date, value, _options) {
1226
- return value >= 1 && value <= 7;
1227
- },
1228
- set: function (date, _flags, value, options) {
1229
- date = setUTCISODay(date, value, options);
1230
- date.setUTCHours(0, 0, 0, 0);
1231
- return date;
1232
- },
1233
- incompatibleTokens: ['y', 'Y', 'u', 'q', 'Q', 'M', 'L', 'w', 'd', 'D', 'E', 'e', 'c', 't', 'T']
1234
- },
1235
- // AM or PM
1236
- a: {
1237
- priority: 80,
1238
- parse: function (string, token, match, _options) {
1239
- switch (token) {
1240
- case 'a':
1241
- case 'aa':
1242
- case 'aaa':
1243
- return match.dayPeriod(string, {
1244
- width: 'abbreviated',
1245
- context: 'formatting'
1246
- }) || match.dayPeriod(string, {
1247
- width: 'narrow',
1248
- context: 'formatting'
1249
- });
1250
-
1251
- case 'aaaaa':
1252
- return match.dayPeriod(string, {
1253
- width: 'narrow',
1254
- context: 'formatting'
1255
- });
1256
-
1257
- case 'aaaa':
1258
- default:
1259
- return match.dayPeriod(string, {
1260
- width: 'wide',
1261
- context: 'formatting'
1262
- }) || match.dayPeriod(string, {
1263
- width: 'abbreviated',
1264
- context: 'formatting'
1265
- }) || match.dayPeriod(string, {
1266
- width: 'narrow',
1267
- context: 'formatting'
1268
- });
1269
- }
1270
- },
1271
- set: function (date, _flags, value, _options) {
1272
- date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);
1273
- return date;
1274
- },
1275
- incompatibleTokens: ['b', 'B', 'H', 'K', 'k', 't', 'T']
1276
- },
1277
- // AM, PM, midnight
1278
- b: {
1279
- priority: 80,
1280
- parse: function (string, token, match, _options) {
1281
- switch (token) {
1282
- case 'b':
1283
- case 'bb':
1284
- case 'bbb':
1285
- return match.dayPeriod(string, {
1286
- width: 'abbreviated',
1287
- context: 'formatting'
1288
- }) || match.dayPeriod(string, {
1289
- width: 'narrow',
1290
- context: 'formatting'
1291
- });
1292
-
1293
- case 'bbbbb':
1294
- return match.dayPeriod(string, {
1295
- width: 'narrow',
1296
- context: 'formatting'
1297
- });
1298
-
1299
- case 'bbbb':
1300
- default:
1301
- return match.dayPeriod(string, {
1302
- width: 'wide',
1303
- context: 'formatting'
1304
- }) || match.dayPeriod(string, {
1305
- width: 'abbreviated',
1306
- context: 'formatting'
1307
- }) || match.dayPeriod(string, {
1308
- width: 'narrow',
1309
- context: 'formatting'
1310
- });
1311
- }
1312
- },
1313
- set: function (date, _flags, value, _options) {
1314
- date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);
1315
- return date;
1316
- },
1317
- incompatibleTokens: ['a', 'B', 'H', 'K', 'k', 't', 'T']
1318
- },
1319
- // in the morning, in the afternoon, in the evening, at night
1320
- B: {
1321
- priority: 80,
1322
- parse: function (string, token, match, _options) {
1323
- switch (token) {
1324
- case 'B':
1325
- case 'BB':
1326
- case 'BBB':
1327
- return match.dayPeriod(string, {
1328
- width: 'abbreviated',
1329
- context: 'formatting'
1330
- }) || match.dayPeriod(string, {
1331
- width: 'narrow',
1332
- context: 'formatting'
1333
- });
1334
-
1335
- case 'BBBBB':
1336
- return match.dayPeriod(string, {
1337
- width: 'narrow',
1338
- context: 'formatting'
1339
- });
1340
-
1341
- case 'BBBB':
1342
- default:
1343
- return match.dayPeriod(string, {
1344
- width: 'wide',
1345
- context: 'formatting'
1346
- }) || match.dayPeriod(string, {
1347
- width: 'abbreviated',
1348
- context: 'formatting'
1349
- }) || match.dayPeriod(string, {
1350
- width: 'narrow',
1351
- context: 'formatting'
1352
- });
1353
- }
1354
- },
1355
- set: function (date, _flags, value, _options) {
1356
- date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);
1357
- return date;
1358
- },
1359
- incompatibleTokens: ['a', 'b', 't', 'T']
1360
- },
1361
- // Hour [1-12]
1362
- h: {
1363
- priority: 70,
1364
- parse: function (string, token, match, _options) {
1365
- switch (token) {
1366
- case 'h':
1367
- return parseNumericPattern(numericPatterns.hour12h, string);
1368
-
1369
- case 'ho':
1370
- return match.ordinalNumber(string, {
1371
- unit: 'hour'
1372
- });
1373
-
1374
- default:
1375
- return parseNDigits(token.length, string);
1376
- }
1377
- },
1378
- validate: function (_date, value, _options) {
1379
- return value >= 1 && value <= 12;
1380
- },
1381
- set: function (date, _flags, value, _options) {
1382
- var isPM = date.getUTCHours() >= 12;
1383
-
1384
- if (isPM && value < 12) {
1385
- date.setUTCHours(value + 12, 0, 0, 0);
1386
- } else if (!isPM && value === 12) {
1387
- date.setUTCHours(0, 0, 0, 0);
1388
- } else {
1389
- date.setUTCHours(value, 0, 0, 0);
1390
- }
1391
-
1392
- return date;
1393
- },
1394
- incompatibleTokens: ['H', 'K', 'k', 't', 'T']
1395
- },
1396
- // Hour [0-23]
1397
- H: {
1398
- priority: 70,
1399
- parse: function (string, token, match, _options) {
1400
- switch (token) {
1401
- case 'H':
1402
- return parseNumericPattern(numericPatterns.hour23h, string);
1403
-
1404
- case 'Ho':
1405
- return match.ordinalNumber(string, {
1406
- unit: 'hour'
1407
- });
1408
-
1409
- default:
1410
- return parseNDigits(token.length, string);
1411
- }
1412
- },
1413
- validate: function (_date, value, _options) {
1414
- return value >= 0 && value <= 23;
1415
- },
1416
- set: function (date, _flags, value, _options) {
1417
- date.setUTCHours(value, 0, 0, 0);
1418
- return date;
1419
- },
1420
- incompatibleTokens: ['a', 'b', 'h', 'K', 'k', 't', 'T']
1421
- },
1422
- // Hour [0-11]
1423
- K: {
1424
- priority: 70,
1425
- parse: function (string, token, match, _options) {
1426
- switch (token) {
1427
- case 'K':
1428
- return parseNumericPattern(numericPatterns.hour11h, string);
1429
-
1430
- case 'Ko':
1431
- return match.ordinalNumber(string, {
1432
- unit: 'hour'
1433
- });
1434
-
1435
- default:
1436
- return parseNDigits(token.length, string);
1437
- }
1438
- },
1439
- validate: function (_date, value, _options) {
1440
- return value >= 0 && value <= 11;
1441
- },
1442
- set: function (date, _flags, value, _options) {
1443
- var isPM = date.getUTCHours() >= 12;
1444
-
1445
- if (isPM && value < 12) {
1446
- date.setUTCHours(value + 12, 0, 0, 0);
1447
- } else {
1448
- date.setUTCHours(value, 0, 0, 0);
1449
- }
1450
-
1451
- return date;
1452
- },
1453
- incompatibleTokens: ['a', 'b', 'h', 'H', 'k', 't', 'T']
1454
- },
1455
- // Hour [1-24]
1456
- k: {
1457
- priority: 70,
1458
- parse: function (string, token, match, _options) {
1459
- switch (token) {
1460
- case 'k':
1461
- return parseNumericPattern(numericPatterns.hour24h, string);
1462
-
1463
- case 'ko':
1464
- return match.ordinalNumber(string, {
1465
- unit: 'hour'
1466
- });
1467
-
1468
- default:
1469
- return parseNDigits(token.length, string);
1470
- }
1471
- },
1472
- validate: function (_date, value, _options) {
1473
- return value >= 1 && value <= 24;
1474
- },
1475
- set: function (date, _flags, value, _options) {
1476
- var hours = value <= 24 ? value % 24 : value;
1477
- date.setUTCHours(hours, 0, 0, 0);
1478
- return date;
1479
- },
1480
- incompatibleTokens: ['a', 'b', 'h', 'H', 'K', 't', 'T']
1481
- },
1482
- // Minute
1483
- m: {
1484
- priority: 60,
1485
- parse: function (string, token, match, _options) {
1486
- switch (token) {
1487
- case 'm':
1488
- return parseNumericPattern(numericPatterns.minute, string);
1489
-
1490
- case 'mo':
1491
- return match.ordinalNumber(string, {
1492
- unit: 'minute'
1493
- });
1494
-
1495
- default:
1496
- return parseNDigits(token.length, string);
1497
- }
1498
- },
1499
- validate: function (_date, value, _options) {
1500
- return value >= 0 && value <= 59;
1501
- },
1502
- set: function (date, _flags, value, _options) {
1503
- date.setUTCMinutes(value, 0, 0);
1504
- return date;
1505
- },
1506
- incompatibleTokens: ['t', 'T']
1507
- },
1508
- // Second
1509
- s: {
1510
- priority: 50,
1511
- parse: function (string, token, match, _options) {
1512
- switch (token) {
1513
- case 's':
1514
- return parseNumericPattern(numericPatterns.second, string);
1515
-
1516
- case 'so':
1517
- return match.ordinalNumber(string, {
1518
- unit: 'second'
1519
- });
1520
-
1521
- default:
1522
- return parseNDigits(token.length, string);
1523
- }
1524
- },
1525
- validate: function (_date, value, _options) {
1526
- return value >= 0 && value <= 59;
1527
- },
1528
- set: function (date, _flags, value, _options) {
1529
- date.setUTCSeconds(value, 0);
1530
- return date;
1531
- },
1532
- incompatibleTokens: ['t', 'T']
1533
- },
1534
- // Fraction of second
1535
- S: {
1536
- priority: 30,
1537
- parse: function (string, token, _match, _options) {
1538
- var valueCallback = function (value) {
1539
- return Math.floor(value * Math.pow(10, -token.length + 3));
1540
- };
1541
-
1542
- return parseNDigits(token.length, string, valueCallback);
1543
- },
1544
- set: function (date, _flags, value, _options) {
1545
- date.setUTCMilliseconds(value);
1546
- return date;
1547
- },
1548
- incompatibleTokens: ['t', 'T']
1549
- },
1550
- // Timezone (ISO-8601. +00:00 is `'Z'`)
1551
- X: {
1552
- priority: 10,
1553
- parse: function (string, token, _match, _options) {
1554
- switch (token) {
1555
- case 'X':
1556
- return parseTimezonePattern(timezonePatterns.basicOptionalMinutes, string);
1557
-
1558
- case 'XX':
1559
- return parseTimezonePattern(timezonePatterns.basic, string);
1560
-
1561
- case 'XXXX':
1562
- return parseTimezonePattern(timezonePatterns.basicOptionalSeconds, string);
1563
-
1564
- case 'XXXXX':
1565
- return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds, string);
1566
-
1567
- case 'XXX':
1568
- default:
1569
- return parseTimezonePattern(timezonePatterns.extended, string);
1570
- }
1571
- },
1572
- set: function (date, flags, value, _options) {
1573
- if (flags.timestampIsSet) {
1574
- return date;
1575
- }
1576
-
1577
- return new Date(date.getTime() - value);
1578
- },
1579
- incompatibleTokens: ['t', 'T', 'x']
1580
- },
1581
- // Timezone (ISO-8601)
1582
- x: {
1583
- priority: 10,
1584
- parse: function (string, token, _match, _options) {
1585
- switch (token) {
1586
- case 'x':
1587
- return parseTimezonePattern(timezonePatterns.basicOptionalMinutes, string);
1588
-
1589
- case 'xx':
1590
- return parseTimezonePattern(timezonePatterns.basic, string);
1591
-
1592
- case 'xxxx':
1593
- return parseTimezonePattern(timezonePatterns.basicOptionalSeconds, string);
1594
-
1595
- case 'xxxxx':
1596
- return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds, string);
1597
-
1598
- case 'xxx':
1599
- default:
1600
- return parseTimezonePattern(timezonePatterns.extended, string);
1601
- }
1602
- },
1603
- set: function (date, flags, value, _options) {
1604
- if (flags.timestampIsSet) {
1605
- return date;
1606
- }
1607
-
1608
- return new Date(date.getTime() - value);
1609
- },
1610
- incompatibleTokens: ['t', 'T', 'X']
1611
- },
1612
- // Seconds timestamp
1613
- t: {
1614
- priority: 40,
1615
- parse: function (string, _token, _match, _options) {
1616
- return parseAnyDigitsSigned(string);
1617
- },
1618
- set: function (_date, _flags, value, _options) {
1619
- return [new Date(value * 1000), {
1620
- timestampIsSet: true
1621
- }];
1622
- },
1623
- incompatibleTokens: '*'
1624
- },
1625
- // Milliseconds timestamp
1626
- T: {
1627
- priority: 20,
1628
- parse: function (string, _token, _match, _options) {
1629
- return parseAnyDigitsSigned(string);
1630
- },
1631
- set: function (_date, _flags, value, _options) {
1632
- return [new Date(value), {
1633
- timestampIsSet: true
1634
- }];
1635
- },
1636
- incompatibleTokens: '*'
1637
- }
1638
- };
1639
- const parsers$1 = parsers;
1640
-
1641
- var TIMEZONE_UNIT_PRIORITY = 10; // This RegExp consists of three parts separated by `|`:
1642
- // - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token
1643
- // (one of the certain letters followed by `o`)
1644
- // - (\w)\1* matches any sequences of the same letter
1645
- // - '' matches two quote characters in a row
1646
- // - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('),
1647
- // except a single quote symbol, which ends the sequence.
1648
- // Two quote characters do not end the sequence.
1649
- // If there is no matching single quote
1650
- // then the sequence will continue until the end of the string.
1651
- // - . matches any single character unmatched by previous parts of the RegExps
1652
-
1653
- var formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g; // This RegExp catches symbols escaped by quotes, and also
1654
- // sequences of symbols P, p, and the combinations like `PPPPPPPppppp`
1655
-
1656
- var longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;
1657
- var escapedStringRegExp = /^'([^]*?)'?$/;
1658
- var doubleQuoteRegExp = /''/g;
1659
- var notWhitespaceRegExp = /\S/;
1660
- var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
1661
- /**
1662
- * @name parse
1663
- * @category Common Helpers
1664
- * @summary Parse the date.
1665
- *
1666
- * @description
1667
- * Return the date parsed from string using the given format string.
1668
- *
1669
- * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries.
1670
- * > See: https://git.io/fxCyr
1671
- *
1672
- * The characters in the format string wrapped between two single quotes characters (') are escaped.
1673
- * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.
1674
- *
1675
- * Format of the format string is based on Unicode Technical Standard #35:
1676
- * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
1677
- * with a few additions (see note 5 below the table).
1678
- *
1679
- * Not all tokens are compatible. Combinations that don't make sense or could lead to bugs are prohibited
1680
- * and will throw `RangeError`. For example usage of 24-hour format token with AM/PM token will throw an exception:
1681
- *
1682
- * ```javascript
1683
- * parse('23 AM', 'HH a', new Date())
1684
- * //=> RangeError: The format string mustn't contain `HH` and `a` at the same time
1685
- * ```
1686
- *
1687
- * See the compatibility table: https://docs.google.com/spreadsheets/d/e/2PACX-1vQOPU3xUhplll6dyoMmVUXHKl_8CRDs6_ueLmex3SoqwhuolkuN3O05l4rqx5h1dKX8eb46Ul-CCSrq/pubhtml?gid=0&single=true
1688
- *
1689
- * Accepted format string patterns:
1690
- * | Unit |Prior| Pattern | Result examples | Notes |
1691
- * |---------------------------------|-----|---------|-----------------------------------|-------|
1692
- * | Era | 140 | G..GGG | AD, BC | |
1693
- * | | | GGGG | Anno Domini, Before Christ | 2 |
1694
- * | | | GGGGG | A, B | |
1695
- * | Calendar year | 130 | y | 44, 1, 1900, 2017, 9999 | 4 |
1696
- * | | | yo | 44th, 1st, 1900th, 9999999th | 4,5 |
1697
- * | | | yy | 44, 01, 00, 17 | 4 |
1698
- * | | | yyy | 044, 001, 123, 999 | 4 |
1699
- * | | | yyyy | 0044, 0001, 1900, 2017 | 4 |
1700
- * | | | yyyyy | ... | 2,4 |
1701
- * | Local week-numbering year | 130 | Y | 44, 1, 1900, 2017, 9000 | 4 |
1702
- * | | | Yo | 44th, 1st, 1900th, 9999999th | 4,5 |
1703
- * | | | YY | 44, 01, 00, 17 | 4,6 |
1704
- * | | | YYY | 044, 001, 123, 999 | 4 |
1705
- * | | | YYYY | 0044, 0001, 1900, 2017 | 4,6 |
1706
- * | | | YYYYY | ... | 2,4 |
1707
- * | ISO week-numbering year | 130 | R | -43, 1, 1900, 2017, 9999, -9999 | 4,5 |
1708
- * | | | RR | -43, 01, 00, 17 | 4,5 |
1709
- * | | | RRR | -043, 001, 123, 999, -999 | 4,5 |
1710
- * | | | RRRR | -0043, 0001, 2017, 9999, -9999 | 4,5 |
1711
- * | | | RRRRR | ... | 2,4,5 |
1712
- * | Extended year | 130 | u | -43, 1, 1900, 2017, 9999, -999 | 4 |
1713
- * | | | uu | -43, 01, 99, -99 | 4 |
1714
- * | | | uuu | -043, 001, 123, 999, -999 | 4 |
1715
- * | | | uuuu | -0043, 0001, 2017, 9999, -9999 | 4 |
1716
- * | | | uuuuu | ... | 2,4 |
1717
- * | Quarter (formatting) | 120 | Q | 1, 2, 3, 4 | |
1718
- * | | | Qo | 1st, 2nd, 3rd, 4th | 5 |
1719
- * | | | QQ | 01, 02, 03, 04 | |
1720
- * | | | QQQ | Q1, Q2, Q3, Q4 | |
1721
- * | | | QQQQ | 1st quarter, 2nd quarter, ... | 2 |
1722
- * | | | QQQQQ | 1, 2, 3, 4 | 4 |
1723
- * | Quarter (stand-alone) | 120 | q | 1, 2, 3, 4 | |
1724
- * | | | qo | 1st, 2nd, 3rd, 4th | 5 |
1725
- * | | | qq | 01, 02, 03, 04 | |
1726
- * | | | qqq | Q1, Q2, Q3, Q4 | |
1727
- * | | | qqqq | 1st quarter, 2nd quarter, ... | 2 |
1728
- * | | | qqqqq | 1, 2, 3, 4 | 3 |
1729
- * | Month (formatting) | 110 | M | 1, 2, ..., 12 | |
1730
- * | | | Mo | 1st, 2nd, ..., 12th | 5 |
1731
- * | | | MM | 01, 02, ..., 12 | |
1732
- * | | | MMM | Jan, Feb, ..., Dec | |
1733
- * | | | MMMM | January, February, ..., December | 2 |
1734
- * | | | MMMMM | J, F, ..., D | |
1735
- * | Month (stand-alone) | 110 | L | 1, 2, ..., 12 | |
1736
- * | | | Lo | 1st, 2nd, ..., 12th | 5 |
1737
- * | | | LL | 01, 02, ..., 12 | |
1738
- * | | | LLL | Jan, Feb, ..., Dec | |
1739
- * | | | LLLL | January, February, ..., December | 2 |
1740
- * | | | LLLLL | J, F, ..., D | |
1741
- * | Local week of year | 100 | w | 1, 2, ..., 53 | |
1742
- * | | | wo | 1st, 2nd, ..., 53th | 5 |
1743
- * | | | ww | 01, 02, ..., 53 | |
1744
- * | ISO week of year | 100 | I | 1, 2, ..., 53 | 5 |
1745
- * | | | Io | 1st, 2nd, ..., 53th | 5 |
1746
- * | | | II | 01, 02, ..., 53 | 5 |
1747
- * | Day of month | 90 | d | 1, 2, ..., 31 | |
1748
- * | | | do | 1st, 2nd, ..., 31st | 5 |
1749
- * | | | dd | 01, 02, ..., 31 | |
1750
- * | Day of year | 90 | D | 1, 2, ..., 365, 366 | 7 |
1751
- * | | | Do | 1st, 2nd, ..., 365th, 366th | 5 |
1752
- * | | | DD | 01, 02, ..., 365, 366 | 7 |
1753
- * | | | DDD | 001, 002, ..., 365, 366 | |
1754
- * | | | DDDD | ... | 2 |
1755
- * | Day of week (formatting) | 90 | E..EEE | Mon, Tue, Wed, ..., Sun | |
1756
- * | | | EEEE | Monday, Tuesday, ..., Sunday | 2 |
1757
- * | | | EEEEE | M, T, W, T, F, S, S | |
1758
- * | | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | |
1759
- * | ISO day of week (formatting) | 90 | i | 1, 2, 3, ..., 7 | 5 |
1760
- * | | | io | 1st, 2nd, ..., 7th | 5 |
1761
- * | | | ii | 01, 02, ..., 07 | 5 |
1762
- * | | | iii | Mon, Tue, Wed, ..., Sun | 5 |
1763
- * | | | iiii | Monday, Tuesday, ..., Sunday | 2,5 |
1764
- * | | | iiiii | M, T, W, T, F, S, S | 5 |
1765
- * | | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 5 |
1766
- * | Local day of week (formatting) | 90 | e | 2, 3, 4, ..., 1 | |
1767
- * | | | eo | 2nd, 3rd, ..., 1st | 5 |
1768
- * | | | ee | 02, 03, ..., 01 | |
1769
- * | | | eee | Mon, Tue, Wed, ..., Sun | |
1770
- * | | | eeee | Monday, Tuesday, ..., Sunday | 2 |
1771
- * | | | eeeee | M, T, W, T, F, S, S | |
1772
- * | | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | |
1773
- * | Local day of week (stand-alone) | 90 | c | 2, 3, 4, ..., 1 | |
1774
- * | | | co | 2nd, 3rd, ..., 1st | 5 |
1775
- * | | | cc | 02, 03, ..., 01 | |
1776
- * | | | ccc | Mon, Tue, Wed, ..., Sun | |
1777
- * | | | cccc | Monday, Tuesday, ..., Sunday | 2 |
1778
- * | | | ccccc | M, T, W, T, F, S, S | |
1779
- * | | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | |
1780
- * | AM, PM | 80 | a..aaa | AM, PM | |
1781
- * | | | aaaa | a.m., p.m. | 2 |
1782
- * | | | aaaaa | a, p | |
1783
- * | AM, PM, noon, midnight | 80 | b..bbb | AM, PM, noon, midnight | |
1784
- * | | | bbbb | a.m., p.m., noon, midnight | 2 |
1785
- * | | | bbbbb | a, p, n, mi | |
1786
- * | Flexible day period | 80 | B..BBB | at night, in the morning, ... | |
1787
- * | | | BBBB | at night, in the morning, ... | 2 |
1788
- * | | | BBBBB | at night, in the morning, ... | |
1789
- * | Hour [1-12] | 70 | h | 1, 2, ..., 11, 12 | |
1790
- * | | | ho | 1st, 2nd, ..., 11th, 12th | 5 |
1791
- * | | | hh | 01, 02, ..., 11, 12 | |
1792
- * | Hour [0-23] | 70 | H | 0, 1, 2, ..., 23 | |
1793
- * | | | Ho | 0th, 1st, 2nd, ..., 23rd | 5 |
1794
- * | | | HH | 00, 01, 02, ..., 23 | |
1795
- * | Hour [0-11] | 70 | K | 1, 2, ..., 11, 0 | |
1796
- * | | | Ko | 1st, 2nd, ..., 11th, 0th | 5 |
1797
- * | | | KK | 01, 02, ..., 11, 00 | |
1798
- * | Hour [1-24] | 70 | k | 24, 1, 2, ..., 23 | |
1799
- * | | | ko | 24th, 1st, 2nd, ..., 23rd | 5 |
1800
- * | | | kk | 24, 01, 02, ..., 23 | |
1801
- * | Minute | 60 | m | 0, 1, ..., 59 | |
1802
- * | | | mo | 0th, 1st, ..., 59th | 5 |
1803
- * | | | mm | 00, 01, ..., 59 | |
1804
- * | Second | 50 | s | 0, 1, ..., 59 | |
1805
- * | | | so | 0th, 1st, ..., 59th | 5 |
1806
- * | | | ss | 00, 01, ..., 59 | |
1807
- * | Seconds timestamp | 40 | t | 512969520 | |
1808
- * | | | tt | ... | 2 |
1809
- * | Fraction of second | 30 | S | 0, 1, ..., 9 | |
1810
- * | | | SS | 00, 01, ..., 99 | |
1811
- * | | | SSS | 000, 0001, ..., 999 | |
1812
- * | | | SSSS | ... | 2 |
1813
- * | Milliseconds timestamp | 20 | T | 512969520900 | |
1814
- * | | | TT | ... | 2 |
1815
- * | Timezone (ISO-8601 w/ Z) | 10 | X | -08, +0530, Z | |
1816
- * | | | XX | -0800, +0530, Z | |
1817
- * | | | XXX | -08:00, +05:30, Z | |
1818
- * | | | XXXX | -0800, +0530, Z, +123456 | 2 |
1819
- * | | | XXXXX | -08:00, +05:30, Z, +12:34:56 | |
1820
- * | Timezone (ISO-8601 w/o Z) | 10 | x | -08, +0530, +00 | |
1821
- * | | | xx | -0800, +0530, +0000 | |
1822
- * | | | xxx | -08:00, +05:30, +00:00 | 2 |
1823
- * | | | xxxx | -0800, +0530, +0000, +123456 | |
1824
- * | | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | |
1825
- * | Long localized date | NA | P | 05/29/1453 | 5,8 |
1826
- * | | | PP | May 29, 1453 | |
1827
- * | | | PPP | May 29th, 1453 | |
1828
- * | | | PPPP | Sunday, May 29th, 1453 | 2,5,8 |
1829
- * | Long localized time | NA | p | 12:00 AM | 5,8 |
1830
- * | | | pp | 12:00:00 AM | |
1831
- * | Combination of date and time | NA | Pp | 05/29/1453, 12:00 AM | |
1832
- * | | | PPpp | May 29, 1453, 12:00:00 AM | |
1833
- * | | | PPPpp | May 29th, 1453 at ... | |
1834
- * | | | PPPPpp | Sunday, May 29th, 1453 at ... | 2,5,8 |
1835
- * Notes:
1836
- * 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale
1837
- * are the same as "stand-alone" units, but are different in some languages.
1838
- * "Formatting" units are declined according to the rules of the language
1839
- * in the context of a date. "Stand-alone" units are always nominative singular.
1840
- * In `format` function, they will produce different result:
1841
- *
1842
- * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'`
1843
- *
1844
- * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'`
1845
- *
1846
- * `parse` will try to match both formatting and stand-alone units interchangably.
1847
- *
1848
- * 2. Any sequence of the identical letters is a pattern, unless it is escaped by
1849
- * the single quote characters (see below).
1850
- * If the sequence is longer than listed in table:
1851
- * - for numerical units (`yyyyyyyy`) `parse` will try to match a number
1852
- * as wide as the sequence
1853
- * - for text units (`MMMMMMMM`) `parse` will try to match the widest variation of the unit.
1854
- * These variations are marked with "2" in the last column of the table.
1855
- *
1856
- * 3. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales.
1857
- * These tokens represent the shortest form of the quarter.
1858
- *
1859
- * 4. The main difference between `y` and `u` patterns are B.C. years:
1860
- *
1861
- * | Year | `y` | `u` |
1862
- * |------|-----|-----|
1863
- * | AC 1 | 1 | 1 |
1864
- * | BC 1 | 1 | 0 |
1865
- * | BC 2 | 2 | -1 |
1866
- *
1867
- * Also `yy` will try to guess the century of two digit year by proximity with `referenceDate`:
1868
- *
1869
- * `parse('50', 'yy', new Date(2018, 0, 1)) //=> Sat Jan 01 2050 00:00:00`
1870
- *
1871
- * `parse('75', 'yy', new Date(2018, 0, 1)) //=> Wed Jan 01 1975 00:00:00`
1872
- *
1873
- * while `uu` will just assign the year as is:
1874
- *
1875
- * `parse('50', 'uu', new Date(2018, 0, 1)) //=> Sat Jan 01 0050 00:00:00`
1876
- *
1877
- * `parse('75', 'uu', new Date(2018, 0, 1)) //=> Tue Jan 01 0075 00:00:00`
1878
- *
1879
- * The same difference is true for local and ISO week-numbering years (`Y` and `R`),
1880
- * except local week-numbering years are dependent on `options.weekStartsOn`
1881
- * and `options.firstWeekContainsDate` (compare [setISOWeekYear]{@link https://date-fns.org/docs/setISOWeekYear}
1882
- * and [setWeekYear]{@link https://date-fns.org/docs/setWeekYear}).
1883
- *
1884
- * 5. These patterns are not in the Unicode Technical Standard #35:
1885
- * - `i`: ISO day of week
1886
- * - `I`: ISO week of year
1887
- * - `R`: ISO week-numbering year
1888
- * - `o`: ordinal number modifier
1889
- * - `P`: long localized date
1890
- * - `p`: long localized time
1891
- *
1892
- * 6. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.
1893
- * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://git.io/fxCyr
1894
- *
1895
- * 7. `D` and `DD` tokens represent days of the year but they are ofthen confused with days of the month.
1896
- * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://git.io/fxCyr
1897
- *
1898
- * 8. `P+` tokens do not have a defined priority since they are merely aliases to other tokens based
1899
- * on the given locale.
1900
- *
1901
- * using `en-US` locale: `P` => `MM/dd/yyyy`
1902
- * using `en-US` locale: `p` => `hh:mm a`
1903
- * using `pt-BR` locale: `P` => `dd/MM/yyyy`
1904
- * using `pt-BR` locale: `p` => `HH:mm`
1905
- *
1906
- * Values will be assigned to the date in the descending order of its unit's priority.
1907
- * Units of an equal priority overwrite each other in the order of appearance.
1908
- *
1909
- * If no values of higher priority are parsed (e.g. when parsing string 'January 1st' without a year),
1910
- * the values will be taken from 3rd argument `referenceDate` which works as a context of parsing.
1911
- *
1912
- * `referenceDate` must be passed for correct work of the function.
1913
- * If you're not sure which `referenceDate` to supply, create a new instance of Date:
1914
- * `parse('02/11/2014', 'MM/dd/yyyy', new Date())`
1915
- * In this case parsing will be done in the context of the current date.
1916
- * If `referenceDate` is `Invalid Date` or a value not convertible to valid `Date`,
1917
- * then `Invalid Date` will be returned.
1918
- *
1919
- * The result may vary by locale.
1920
- *
1921
- * If `formatString` matches with `dateString` but does not provides tokens, `referenceDate` will be returned.
1922
- *
1923
- * If parsing failed, `Invalid Date` will be returned.
1924
- * Invalid Date is a Date, whose time value is NaN.
1925
- * Time value of Date: http://es5.github.io/#x15.9.1.1
1926
- *
1927
- * ### v2.0.0 breaking changes:
1928
- *
1929
- * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
1930
- *
1931
- * - Old `parse` was renamed to `toDate`.
1932
- * Now `parse` is a new function which parses a string using a provided format.
1933
- *
1934
- * ```javascript
1935
- * // Before v2.0.0
1936
- * parse('2016-01-01')
1937
- *
1938
- * // v2.0.0 onward (toDate no longer accepts a string)
1939
- * toDate(1392098430000) // Unix to timestamp
1940
- * toDate(new Date(2014, 1, 11, 11, 30, 30)) // Cloning the date
1941
- * parse('2016-01-01', 'yyyy-MM-dd', new Date())
1942
- * ```
1943
- *
1944
- * @param {String} dateString - the string to parse
1945
- * @param {String} formatString - the string of tokens
1946
- * @param {Date|Number} referenceDate - defines values missing from the parsed dateString
1947
- * @param {Object} [options] - an object with options.
1948
- * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}
1949
- * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)
1950
- * @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
1951
- * @param {Boolean} [options.useAdditionalWeekYearTokens=false] - if true, allows usage of the week-numbering year tokens `YY` and `YYYY`;
1952
- * see: https://git.io/fxCyr
1953
- * @param {Boolean} [options.useAdditionalDayOfYearTokens=false] - if true, allows usage of the day of year tokens `D` and `DD`;
1954
- * see: https://git.io/fxCyr
1955
- * @returns {Date} the parsed date
1956
- * @throws {TypeError} 3 arguments required
1957
- * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6
1958
- * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7
1959
- * @throws {RangeError} `options.locale` must contain `match` property
1960
- * @throws {RangeError} use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://git.io/fxCyr
1961
- * @throws {RangeError} use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://git.io/fxCyr
1962
- * @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
1963
- * @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
1964
- * @throws {RangeError} format string contains an unescaped latin alphabet character
1965
- *
1966
- * @example
1967
- * // Parse 11 February 2014 from middle-endian format:
1968
- * var result = parse('02/11/2014', 'MM/dd/yyyy', new Date())
1969
- * //=> Tue Feb 11 2014 00:00:00
1970
- *
1971
- * @example
1972
- * // Parse 28th of February in Esperanto locale in the context of 2010 year:
1973
- * import eo from 'date-fns/locale/eo'
1974
- * var result = parse('28-a de februaro', "do 'de' MMMM", new Date(2010, 0, 1), {
1975
- * locale: eo
1976
- * })
1977
- * //=> Sun Feb 28 2010 00:00:00
1978
- */
1979
-
1980
- function parse(dirtyDateString, dirtyFormatString, dirtyReferenceDate, dirtyOptions) {
1981
- index.requiredArgs(3, arguments);
1982
- var dateString = String(dirtyDateString);
1983
- var formatString = String(dirtyFormatString);
1984
- var options = dirtyOptions || {};
1985
- var locale = options.locale || index$1.defaultLocale;
1986
-
1987
- if (!locale.match) {
1988
- throw new RangeError('locale must contain match property');
1989
- }
1990
-
1991
- var localeFirstWeekContainsDate = locale.options && locale.options.firstWeekContainsDate;
1992
- var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : index$1.toInteger(localeFirstWeekContainsDate);
1993
- var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : index$1.toInteger(options.firstWeekContainsDate); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN
1994
-
1995
- if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
1996
- throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');
1997
- }
1998
-
1999
- var localeWeekStartsOn = locale.options && locale.options.weekStartsOn;
2000
- var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : index$1.toInteger(localeWeekStartsOn);
2001
- var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : index$1.toInteger(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
2002
-
2003
- if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
2004
- throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
2005
- }
2006
-
2007
- if (formatString === '') {
2008
- if (dateString === '') {
2009
- return index.toDate(dirtyReferenceDate);
2010
- } else {
2011
- return new Date(NaN);
2012
- }
2013
- }
2014
-
2015
- var subFnOptions = {
2016
- firstWeekContainsDate: firstWeekContainsDate,
2017
- weekStartsOn: weekStartsOn,
2018
- locale: locale
2019
- }; // If timezone isn't specified, it will be set to the system timezone
2020
-
2021
- var setters = [{
2022
- priority: TIMEZONE_UNIT_PRIORITY,
2023
- subPriority: -1,
2024
- set: dateToSystemTimezone,
2025
- index: 0
2026
- }];
2027
- var i;
2028
- var tokens = formatString.match(longFormattingTokensRegExp).map(function (substring) {
2029
- var firstCharacter = substring[0];
2030
-
2031
- if (firstCharacter === 'p' || firstCharacter === 'P') {
2032
- var longFormatter = index$1.longFormatters[firstCharacter];
2033
- return longFormatter(substring, locale.formatLong, subFnOptions);
2034
- }
2035
-
2036
- return substring;
2037
- }).join('').match(formattingTokensRegExp);
2038
- var usedTokens = [];
2039
-
2040
- for (i = 0; i < tokens.length; i++) {
2041
- var token = tokens[i];
2042
-
2043
- if (!options.useAdditionalWeekYearTokens && index$1.isProtectedWeekYearToken(token)) {
2044
- index$1.throwProtectedError(token, formatString, dirtyDateString);
2045
- }
2046
-
2047
- if (!options.useAdditionalDayOfYearTokens && index$1.isProtectedDayOfYearToken(token)) {
2048
- index$1.throwProtectedError(token, formatString, dirtyDateString);
2049
- }
2050
-
2051
- var firstCharacter = token[0];
2052
- var parser = parsers$1[firstCharacter];
2053
-
2054
- if (parser) {
2055
- var incompatibleTokens = parser.incompatibleTokens;
2056
-
2057
- if (Array.isArray(incompatibleTokens)) {
2058
- var incompatibleToken = void 0;
2059
-
2060
- for (var _i = 0; _i < usedTokens.length; _i++) {
2061
- var usedToken = usedTokens[_i].token;
2062
-
2063
- if (incompatibleTokens.indexOf(usedToken) !== -1 || usedToken === firstCharacter) {
2064
- incompatibleToken = usedTokens[_i];
2065
- break;
2066
- }
2067
- }
2068
-
2069
- if (incompatibleToken) {
2070
- throw new RangeError("The format string mustn't contain `".concat(incompatibleToken.fullToken, "` and `").concat(token, "` at the same time"));
2071
- }
2072
- } else if (parser.incompatibleTokens === '*' && usedTokens.length) {
2073
- throw new RangeError("The format string mustn't contain `".concat(token, "` and any other token at the same time"));
2074
- }
2075
-
2076
- usedTokens.push({
2077
- token: firstCharacter,
2078
- fullToken: token
2079
- });
2080
- var parseResult = parser.parse(dateString, token, locale.match, subFnOptions);
2081
-
2082
- if (!parseResult) {
2083
- return new Date(NaN);
2084
- }
2085
-
2086
- setters.push({
2087
- priority: parser.priority,
2088
- subPriority: parser.subPriority || 0,
2089
- set: parser.set,
2090
- validate: parser.validate,
2091
- value: parseResult.value,
2092
- index: setters.length
2093
- });
2094
- dateString = parseResult.rest;
2095
- } else {
2096
- if (firstCharacter.match(unescapedLatinCharacterRegExp)) {
2097
- throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`');
2098
- } // Replace two single quote characters with one single quote character
2099
-
2100
-
2101
- if (token === "''") {
2102
- token = "'";
2103
- } else if (firstCharacter === "'") {
2104
- token = cleanEscapedString(token);
2105
- } // Cut token from string, or, if string doesn't match the token, return Invalid Date
2106
-
2107
-
2108
- if (dateString.indexOf(token) === 0) {
2109
- dateString = dateString.slice(token.length);
2110
- } else {
2111
- return new Date(NaN);
2112
- }
2113
- }
2114
- } // Check if the remaining input contains something other than whitespace
2115
-
2116
-
2117
- if (dateString.length > 0 && notWhitespaceRegExp.test(dateString)) {
2118
- return new Date(NaN);
2119
- }
2120
-
2121
- var uniquePrioritySetters = setters.map(function (setter) {
2122
- return setter.priority;
2123
- }).sort(function (a, b) {
2124
- return b - a;
2125
- }).filter(function (priority, index, array) {
2126
- return array.indexOf(priority) === index;
2127
- }).map(function (priority) {
2128
- return setters.filter(function (setter) {
2129
- return setter.priority === priority;
2130
- }).sort(function (a, b) {
2131
- return b.subPriority - a.subPriority;
2132
- });
2133
- }).map(function (setterArray) {
2134
- return setterArray[0];
2135
- });
2136
- var date = index.toDate(dirtyReferenceDate);
2137
-
2138
- if (isNaN(date)) {
2139
- return new Date(NaN);
2140
- } // Convert the date in system timezone to the same date in UTC+00:00 timezone.
2141
- // This ensures that when UTC functions will be implemented, locales will be compatible with them.
2142
- // See an issue about UTC functions: https://github.com/date-fns/date-fns/issues/37
2143
-
2144
-
2145
- var utcDate = index$1.subMilliseconds(date, index$1.getTimezoneOffsetInMilliseconds(date));
2146
- var flags = {};
2147
-
2148
- for (i = 0; i < uniquePrioritySetters.length; i++) {
2149
- var setter = uniquePrioritySetters[i];
2150
-
2151
- if (setter.validate && !setter.validate(utcDate, setter.value, subFnOptions)) {
2152
- return new Date(NaN);
2153
- }
2154
-
2155
- var result = setter.set(utcDate, flags, setter.value, subFnOptions); // Result is tuple (date, flags)
2156
-
2157
- if (result[0]) {
2158
- utcDate = result[0];
2159
- assign(flags, result[1]); // Result is date
2160
- } else {
2161
- utcDate = result;
2162
- }
2163
- }
2164
-
2165
- return utcDate;
2166
- }
2167
-
2168
- function dateToSystemTimezone(date, flags) {
2169
- if (flags.timestampIsSet) {
2170
- return date;
2171
- }
2172
-
2173
- var convertedDate = new Date(0);
2174
- convertedDate.setFullYear(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate());
2175
- convertedDate.setHours(date.getUTCHours(), date.getUTCMinutes(), date.getUTCSeconds(), date.getUTCMilliseconds());
2176
- return convertedDate;
2177
- }
2178
-
2179
- function cleanEscapedString(input) {
2180
- return input.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp, "'");
2181
- }
2182
-
2183
- const calendarDatepickerCss = ".sc-digi-calendar-datepicker:root{--digi--grayscale--0:#ffffff;--digi--grayscale--50:#fbfbfb;--digi--grayscale--100:#f4f4f4;--digi--grayscale--200:#ededed;--digi--grayscale--300:#e4e4e4;--digi--grayscale--400:#dddddd;--digi--grayscale--500:#cacaca;--digi--grayscale--600:#acacac;--digi--grayscale--700:#757575;--digi--grayscale--800:#5c5c5c;--digi--grayscale--900:#333333;--digi--grayscale--1000:#000000;--digi--sentiment--informative--200:#e9e9ff;--digi--sentiment--informative--500:#0A4DD1;--digi--sentiment--informative--700:#0058a3;--digi--sentiment--error--200:#fdeded;--digi--sentiment--error--500:#da0000;--digi--sentiment--error--700:#c7311a;--digi--sentiment--success--200:#e9f6ec;--digi--sentiment--success--500:#008A20;--digi--sentiment--success--700:#02703c;--digi--sentiment--warning--200:#fff398;--digi--sentiment--warning--50:#fffbdd;--digi--sentiment--warning--500:#ffe200;--digi--sentiment--warning--700:#ffc108;--digi--sentiment--warning--900:#664d00;--digi--misc--transparent:#ffffff00;--digi--animation--duration--base:var(--digi--global--animation--duration--base);--digi--animation--duration--small:var(--digi--global--animation--duration--short);--digi--animation--duration--large:var(--digi--global--animation--duration--longer);--digi--animation--duration--reduced:var(--digi--global--animation--duration--shortest);--digi--animation--duration--sweep:var(--digi--global--animation--duration--longest);--digi--animation--rotation--45:var(--digi--global--animation--rotation--smallest-2);--digi--animation--rotation--90:var(--digi--global--animation--rotation--smallest);--digi--animation--rotation--135:var(--digi--global--animation--rotation--smaller);--digi--animation--rotation--180:var(--digi--global--animation--rotation--small);--digi--animation--rotation--225:var(--digi--global--animation--rotation--base);--digi--animation--rotation--270:var(--digi--global--animation--rotation--large);--digi--animation--rotation--315:var(--digi--global--animation--rotation--larger);--digi--animation--rotation--360:var(--digi--global--animation--rotation--largest);--digi--global--animation--duration--base:.3s;--digi--global--animation--duration--short:.2s;--digi--global--animation--duration--shorter:.1s;--digi--global--animation--duration--shortest:.01s;--digi--global--animation--duration--long:.4s;--digi--global--animation--duration--longer:.5s;--digi--global--animation--duration--longest:4s;--digi--global--animation--rotation--smallest-2:0deg;--digi--global--animation--rotation--smallest:45deg;--digi--global--animation--rotation--smaller:90deg;--digi--global--animation--rotation--small:135deg;--digi--global--animation--rotation--base:180deg;--digi--global--animation--rotation--large:225deg;--digi--global--animation--rotation--larger:270deg;--digi--global--animation--rotation--largest:315deg;--digi--global--animation--rotation--largest-2:360deg;--digi--global--border-radius--base:6px;--digi--global--border-radius--small:4px;--digi--global--border-radius--smaller:3px;--digi--global--border-radius--smallest:2px;--digi--global--border-radius--smallest-2:1px;--digi--global--border-radius--smallest-3:0px;--digi--global--border-radius--large:8px;--digi--global--border-radius--larger:16px;--digi--global--border-radius--largest:32px;--digi--global--border-radius--largest-2:64px;--digi--global--border-width--base:2px;--digi--global--border-width--small:1px;--digi--global--border-width--smaller:0px;--digi--global--border-width--large:4px;--digi--global--border-width--larger:6px;--digi--global--border-width--largest:8px;--digi--global--border-width--largest-2:10px;--digi--global--border-style--solid:solid;--digi--global--border-style--none:none;--digi--global--border-style--dashed:dashed;--digi--global--spacing--base:16px;--digi--global--spacing--small:14px;--digi--global--spacing--smaller:12px;--digi--global--spacing--smallest:10px;--digi--global--spacing--smallest-2:8px;--digi--global--spacing--smallest-3:6px;--digi--global--spacing--smallest-4:4px;--digi--global--spacing--smallest-5:3px;--digi--global--spacing--smallest-6:2px;--digi--global--spacing--smallest-7:1px;--digi--global--spacing--large:18px;--digi--global--spacing--larger:20px;--digi--global--spacing---:22px;--digi--global--spacing--largest-2:24px;--digi--global--spacing--largest-3:28px;--digi--global--spacing--largest-4:32px;--digi--global--spacing--largest-5:40px;--digi--global--spacing--largest-6:48px;--digi--global--spacing--largest-7:56px;--digi--global--spacing--largest-8:64px;--digi--global--spacing--largest:22px;--digi--global--spacing--largest-3-5:30px;--digi--global--spacing--largest-9:72px;--digi--global--spacing--largest-10:80px;--digi--global--breakpoint--smallest-3:374px;--digi--global--breakpoint--smallest-2:375px;--digi--global--breakpoint--smallest:575px;--digi--global--breakpoint--smaller:576px;--digi--global--breakpoint--small:767px;--digi--global--breakpoint--medium:768px;--digi--global--breakpoint--large:991px;--digi--global--breakpoint--larger:992px;--digi--global--breakpoint--largest:1199px;--digi--global--breakpoint--largest-2:1200px;--digi--global--breakpoint--largest-3:1399px;--digi--global--breakpoint--largest-4:1400px;--digi--global--size--smaller:auto;--digi--global--size--small:36rem;--digi--global--size--base:48rem;--digi--global--size--large:62rem;--digi--global--size--larger:75rem;--digi--global--size--largest:87.5rem;--digi--global--text-width--small:31rem;--digi--global--text-width--base:35rem;--digi--global--text-width--large:40rem;--digi--global--text-width--larger:44rem;--digi--global--text-width--largest:48rem;--digi--global--text-width--largest-2:53rem;--digi--global--text-width--largest-3:61rem;--digi--global--text-width--largest-4:70rem;--digi--global--typography--line-height--base:1.5;--digi--global--typography--line-height--small:1;--digi--global--typography--line-height--large:2;--digi--global--typography--font-size--base:1rem;--digi--global--typography--font-size--small:0.875rem;--digi--global--typography--font-size--smaller:0.75rem;--digi--global--typography--font-size--large:1.125rem;--digi--global--typography--font-size--larger:1.25rem;--digi--global--typography--font-size--largest:1.375rem;--digi--global--typography--font-size--largest-2:1.5rem;--digi--global--typography--font-size--largest-3:1.75rem;--digi--global--typography--font-size--largest-4:2rem;--digi--global--typography--font-size--largest-5:2.25rem;--digi--global--typography--font-size--interaction-small:0.875rem;--digi--global--typography--font-size--interaction-medium:1rem;--digi--global--typography--font-size--interaction-large:1.125rem;--digi--global--typography--font-size--largest-6:2.5rem;--digi--global--typography--font-weight--regular:400;--digi--global--typography--font-weight--light:300;--digi--global--typography--font-weight--semibold:600;--digi--global--typography--font-weight--bold:700;--digi--global--typography--font-family--default:\"Open Sans\";--digi--global--typography--font-family--mono:Consolas, Monaco, \"Andale Mono\", \"Ubuntu Mono\", monospace;--digi--global--typography--text-decoration--default:none;--digi--global--typography--text-decoration--link:underline;--digi--border-radius--primary:var(--digi--global--border-radius--smallest-3);--digi--border-radius--secondary:var(--digi--global--border-radius--base);--digi--border-radius--tertiary:var(--digi--global--border-radius--smaller);--digi--border-radius--complementary-1:var(--digi--global--border-radius--largest);--digi--border-radius--complementary-2:var(--digi--global--border-radius--largest-2);--digi--border-radius--button:var(--digi--global--border-radius--base);--digi--border-radius--input:var(--digi--global--border-radius--smallest-3);--digi--border-radius--input-search:var(--digi--global--border-radius--base);--digi--border-radius--complementary-3:var(--digi--global--border-radius--larger);--digi--border-width--primary:var(--digi--global--border-width--small);--digi--border-width--secondary:var(--digi--global--border-width--base);--digi--border-width--complementary-1:var(--digi--global--border-width--largest);--digi--border-width--complementary-2:var(--digi--global--border-width--largest-2);--digi--border-width--input-regular:var(--digi--global--border-width--small);--digi--border-width--input-validation:var(--digi--global--border-width--base);--digi--border-width--button:var(--digi--global--border-width--small);--digi--border-style--primary:var(--digi--global--border-style--solid);--digi--border-style--secondary:var(--digi--global--border-style--none);--digi--padding--medium:var(--digi--global--spacing--base);--digi--padding--smaller:var(--digi--global--spacing--smallest-2);--digi--padding--small:var(--digi--global--spacing--smaller);--digi--padding--large:var(--digi--global--spacing--largest-2);--digi--padding--larger:var(--digi--global--spacing--largest-3);--digi--padding--largest:var(--digi--global--spacing--largest-4);--digi--padding--largest-2:var(--digi--global--spacing--largest-5);--digi--padding--largest-3:var(--digi--global--spacing--largest-6);--digi--margin--smaller:var(--digi--global--spacing--smallest-2);--digi--margin--small:var(--digi--global--spacing--smallest);--digi--margin--medium:var(--digi--global--spacing--base);--digi--margin--large:var(--digi--global--spacing--largest-2);--digi--margin--larger:var(--digi--global--spacing--largest-3);--digi--margin--largest:var(--digi--global--spacing--largest-4);--digi--margin--h1-small:var(--digi--global--spacing--base);--digi--margin--h1-medium:var(--digi--global--spacing--largest-2);--digi--margin--h1-large:var(--digi--global--spacing--largest-4);--digi--margin--h2-small:var(--digi--global--spacing--base);--digi--margin--h2-large:var(--digi--global--spacing--base);--digi--margin--h3-small:var(--digi--global--spacing--smallest-2);--digi--margin--h3-large:var(--digi--global--spacing--smallest-2);--digi--margin--h4-h6-small:var(--digi--global--spacing--smallest-2);--digi--margin--h4-h6-large:var(--digi--global--spacing--smallest-2);--digi--margin--text-small:var(--digi--global--spacing--largest-2);--digi--margin--text-large:var(--digi--global--spacing--largest-2);--digi--gutter--largest-3:var(--digi--global--spacing--largest-2);--digi--gutter--largest-2:var(--digi--global--spacing--larger);--digi--gutter--largest:var(--digi--global--spacing--base);--digi--gutter--larger:var(--digi--global--spacing--smaller);--digi--gutter--large:var(--digi--global--spacing--smallest);--digi--gutter--medium:var(--digi--global--spacing--smallest-2);--digi--gutter--small:var(--digi--global--spacing--smallest-3);--digi--gutter--smaller:var(--digi--global--spacing--smallest-4);--digi--gutter--smallest:var(--digi--global--spacing--smallest-5);--digi--gutter--smallest-2:var(--digi--global--spacing--smallest-6);--digi--gutter--smallest-3:var(--digi--global--spacing--smallest-7);--digi--gutter--button-block-small:var(--digi--global--spacing--smallest-3);--digi--gutter--button-block-medium:var(--digi--global--spacing--smallest-2);--digi--gutter--button-block-large:var(--digi--global--spacing--smallest);--digi--gutter--button-inline-small:var(--digi--global--spacing--smallest-2);--digi--gutter--button-inline-medium:var(--digi--global--spacing--base);--digi--gutter--button-inline-large:var(--digi--global--spacing--largest-2);--digi--gutter--icon:var(--digi--global--spacing--smallest);--digi--breakpoint--small-below:var(--digi--global--breakpoint--smallest);--digi--breakpoint--small:var(--digi--global--breakpoint--smaller);--digi--breakpoint--medium-below:var(--digi--global--breakpoint--small);--digi--breakpoint--medium:var(--digi--global--breakpoint--medium);--digi--breakpoint--large-below:var(--digi--global--breakpoint--large);--digi--breakpoint--large:var(--digi--global--breakpoint--larger);--digi--breakpoint--x-large-below:var(--digi--global--breakpoint--largest);--digi--breakpoint--x-large:var(--digi--global--breakpoint--largest-2);--digi--breakpoint--xx-large-below:var(--digi--global--breakpoint--largest-3);--digi--breakpoint--xx-large:var(--digi--global--breakpoint--largest-4);--digi--container-width--smaller:var(--digi--global--size--smaller);--digi--container-width--small:var(--digi--global--size--small);--digi--container-width--base:var(--digi--global--size--base);--digi--container-width--medium:var(--digi--global--size--base);--digi--container-width--large:var(--digi--global--size--large);--digi--container-width--larger:var(--digi--global--size--larger);--digi--container-width--largest:var(--digi--global--size--largest);--digi--container-gutter--smaller:var(--digi--global--spacing--base);--digi--container-gutter--small:var(--digi--global--spacing--large);--digi--container-gutter--base:var(--digi--global--spacing--base);--digi--container-gutter--medium:var(--digi--global--spacing--largest-2);--digi--container-gutter--large:var(--digi--global--spacing--base);--digi--container-gutter--larger:var(--digi--global--spacing--largest-3-5);--digi--container-gutter--largest:var(--digi--global--spacing--largest-5);--digi--paragraph-width--medium:var(--digi--global--text-width--base);--digi--paragraph-width--large:var(--digi--global--text-width--large);--digi--input-height--small:var(--digi--global--spacing--largest-4);--digi--input-height--medium:var(--digi--global--spacing--largest-5);--digi--input-height--large:var(--digi--global--spacing--largest-6);--digi--typography--body--font-size--desktop:var(--digi--global--typography--font-size--base);--digi--typography--body--font-size--desktop-large:var(--digi--global--typography--font-size--large);--digi--typography--body--font-size--mobile:var(--digi--global--typography--font-size--base);--digi--typography--body--font-weight--desktop:var(--digi--global--typography--font-weight--regular);--digi--typography--body--font-weight--desktop-large:var(--digi--global--typography--font-weight--regular);--digi--typography--body--font-weight--mobile:var(--digi--global--typography--font-weight--regular);--digi--typography--body--line-height--desktop:var(--digi--global--typography--line-height--base);--digi--typography--body--line-height--desktop-large:var(--digi--global--typography--line-height--base);--digi--typography--body--line-height--mobile:var(--digi--global--typography--line-height--base);--digi--typography--body--text-decoration--desktop:var(--digi--global--typography--text-decoration--default);--digi--typography--body--text-decoration--desktop-large:var(--digi--global--typography--text-decoration--default);--digi--typography--body--text-decoration--mobile:var(--digi--global--typography--text-decoration--default);--digi--typography--description--font-size--desktop:var(--digi--global--typography--font-size--base);--digi--typography--description--font-size--desktop-large:var(--digi--global--typography--font-size--large);--digi--typography--description--font-weight--desktop:var(--digi--global--typography--font-weight--semibold);--digi--typography--heading-1--font-size--desktop:var(--digi--global--typography--font-size--largest-4);--digi--typography--heading-1--font-size--desktop-large:var(--digi--global--typography--font-size--largest-6);--digi--typography--heading-1--font-size--mobile:var(--digi--global--typography--font-size--largest-3);--digi--typography--heading-1--font-weight--desktop:var(--digi--global--typography--font-weight--semibold);--digi--typography--heading-1--font-weight--desktop-large:var(--digi--global--typography--font-weight--semibold);--digi--typography--heading-1--font-weight--mobile:var(--digi--global--typography--font-weight--semibold);--digi--typography--heading-1--line-height--desktop:var(--digi--global--typography--line-height--base);--digi--typography--heading-1--line-height--desktop-large:var(--digi--global--typography--line-height--base);--digi--typography--heading-1--line-height--mobile:var(--digi--global--typography--line-height--base);--digi--typography--heading-1--text-decoration--desktop:var(--digi--global--typography--text-decoration--default);--digi--typography--heading-1--text-decoration--desktop-large:var(--digi--global--typography--text-decoration--default);--digi--typography--heading-1--text-decoration--mobile:var(--digi--global--typography--text-decoration--default);--digi--typography--heading-2--font-size--desktop:var(--digi--global--typography--font-size--largest-2);--digi--typography--heading-2--font-size--desktop-large:var(--digi--global--typography--font-size--largest-3);--digi--typography--heading-2--font-size--mobile:var(--digi--global--typography--font-size--largest);--digi--typography--heading-2--font-weight--desktop:var(--digi--global--typography--font-weight--semibold);--digi--typography--heading-2--font-weight--desktop-large:var(--digi--global--typography--font-weight--semibold);--digi--typography--heading-2--font-weight--mobile:var(--digi--global--typography--font-weight--semibold);--digi--typography--heading-2--line-height--desktop:var(--digi--global--typography--line-height--base);--digi--typography--heading-2--line-height--desktop-large:var(--digi--global--typography--line-height--base);--digi--typography--heading-2--line-height--mobile:var(--digi--global--typography--line-height--base);--digi--typography--heading-2--text-decoration--desktop:var(--digi--global--typography--text-decoration--default);--digi--typography--heading-2--text-decoration--desktop-large:var(--digi--global--typography--text-decoration--default);--digi--typography--heading-2--text-decoration--mobile:var(--digi--global--typography--text-decoration--default);--digi--typography--heading-3--font-size--desktop:var(--digi--global--typography--font-size--larger);--digi--typography--heading-3--font-size--desktop-large:var(--digi--global--typography--font-size--largest);--digi--typography--heading-3--font-size--mobile:var(--digi--global--typography--font-size--large);--digi--typography--heading-3--font-weight--desktop:var(--digi--global--typography--font-weight--semibold);--digi--typography--heading-3--font-weight--desktop-large:var(--digi--global--typography--font-weight--semibold);--digi--typography--heading-3--font-weight--mobile:var(--digi--global--typography--font-weight--semibold);--digi--typography--heading-3--line-height--desktop:var(--digi--global--typography--line-height--base);--digi--typography--heading-3--line-height--desktop-large:var(--digi--global--typography--line-height--base);--digi--typography--heading-3--line-height--mobile:var(--digi--global--typography--line-height--base);--digi--typography--heading-3--text-decoration--desktop:var(--digi--global--typography--text-decoration--default);--digi--typography--heading-3--text-decoration--desktop-large:var(--digi--global--typography--text-decoration--default);--digi--typography--heading-3--text-decoration--mobile:var(--digi--global--typography--text-decoration--default);--digi--typography--heading-4--font-size--desktop:var(--digi--global--typography--font-size--base);--digi--typography--heading-4--font-size--desktop-large:var(--digi--global--typography--font-size--large);--digi--typography--heading-4--font-size--mobile:var(--digi--global--typography--font-size--base);--digi--typography--heading-4--font-weight--desktop:var(--digi--global--typography--font-weight--semibold);--digi--typography--heading-4--font-weight--desktop-large:var(--digi--global--typography--font-weight--semibold);--digi--typography--heading-4--font-weight--mobile:var(--digi--global--typography--font-weight--semibold);--digi--typography--heading-4--line-height--desktop:var(--digi--global--typography--line-height--base);--digi--typography--heading-4--line-height--desktop-large:var(--digi--global--typography--line-height--base);--digi--typography--heading-4--line-height--mobile:var(--digi--global--typography--line-height--base);--digi--typography--heading-4--text-decoration--desktop:var(--digi--global--typography--text-decoration--default);--digi--typography--heading-4--text-decoration--desktop-large:var(--digi--global--typography--text-decoration--default);--digi--typography--heading-4--text-decoration--mobile:var(--digi--global--typography--text-decoration--default);--digi--typography--heading-jumbo--font-size--desktop:var(--digi--global--typography--font-size--largest-4);--digi--typography--heading-jumbo--font-size--desktop-large:var(--digi--global--typography--font-size--largest-6);--digi--typography--heading-jumbo--font-weight--desktop:var(--digi--global--typography--font-weight--semibold);--digi--typography--input--font-size--desktop-large:var(--digi--global--typography--font-size--large);--digi--typography--label--font-size--desktop:var(--digi--global--typography--font-size--base);--digi--typography--label--font-weight--desktop:var(--digi--global--typography--font-weight--semibold);--digi--typography--label--font-weight--mobile:var(--digi--global--typography--font-weight--semibold);--digi--typography--label--line-height--desktop:var(--digi--global--typography--line-height--base);--digi--typography--label-description--font-size--desktop:var(--digi--global--typography--font-size--base);--digi--typography--label-description--line-height--desktop:var(--digi--global--typography--line-height--base);--digi--typography--link--font-size--desktop:var(--digi--global--typography--font-size--base);--digi--typography--link--font-size--desktop-large:var(--digi--global--typography--font-size--large);--digi--typography--link--font-size--mobile:var(--digi--global--typography--font-size--base);--digi--typography--link--font-weight--desktop:var(--digi--global--typography--font-weight--regular);--digi--typography--link--font-weight--desktop-large:var(--digi--global--typography--font-weight--regular);--digi--typography--link--font-weight--mobile:var(--digi--global--typography--font-weight--regular);--digi--typography--link--line-height--desktop:var(--digi--global--typography--line-height--base);--digi--typography--link--line-height--desktop-large:var(--digi--global--typography--line-height--base);--digi--typography--link--line-height--mobile:var(--digi--global--typography--line-height--base);--digi--typography--link--text-decoration--desktop:var(--digi--global--typography--text-decoration--link);--digi--typography--link--text-decoration--desktop-large:var(--digi--global--typography--text-decoration--link);--digi--typography--link--text-decoration--mobile:var(--digi--global--typography--text-decoration--link);--digi--typography--link-bold--font-weight--desktop:var(--digi--global--typography--font-weight--semibold);--digi--typography--preamble--font-size--desktop:var(--digi--global--typography--font-size--base);--digi--typography--preamble--font-size--mobile:var(--digi--global--typography--font-size--base);--digi--typography--preamble--font-weight--desktop:var(--digi--global--typography--font-weight--semibold);--digi--typography--preamble--line-height--mobile:var(--digi--global--typography--line-height--base);--digi--typography--preamble--line-height--desktop:var(--digi--global--typography--line-height--base);--digi--typography--accordion--font-size--desktop:var(--digi--global--typography--font-size--base);--digi--typography--accordion--font-size--mobile:var(--digi--global--typography--font-size--base);--digi--typography--accordion--font-weight--desktop:var(--digi--global--typography--font-weight--semibold);--digi--typography--tag--font-size--desktop:var(--digi--global--typography--font-size--small);--digi--typography--tag--font-size--mobile:var(--digi--global--typography--font-size--small);--digi--typography--tag--font-weight--desktop:var(--digi--global--typography--font-weight--regular);--digi--typography--breadcrumbs--font-size--desktop:var(--digi--global--typography--font-size--small);--digi--typography--breadcrumbs--text-decoration--desktop:var(--digi--global--typography--text-decoration--default);--digi--typography--title-logo--font-size--desktop:var(--digi--global--typography--font-size--largest-5);--digi--typography--title-logo--font-size--desktop-large:var(--digi--global--typography--font-size--largest-5);--digi--typography--title-logo--font-size--mobile:var(--digi--global--typography--font-size--largest-3);--digi--typography--title-logo--font-weight--desktop:var(--digi--global--typography--font-weight--bold);--digi--typography--button--font-size--desktop:var(--digi--global--typography--font-size--base);--digi--typography--button--font-size--desktop-large:var(--digi--global--typography--font-size--large);--digi--typography--button--font-weight--desktop:var(--digi--global--typography--font-weight--semibold);--digi--color--logotype-color:var(--digi--color--logotype-color--light);--digi--color--infographic--lineart:var(--digi--color--infographic--lineart--light);--digi--color--infographic--background:var(--digi--color--infographic--background--light);--digi--color--infographic--brand--primary:var(--digi--color--infographic--brand--primary--light);--digi--color--infographic--brand--secondary:var(--digi--color--infographic--brand--secondary--light);--digi--color--infographic--brand--tertiary:var(--digi--color--infographic--brand--tertiary--light);--digi--color--text--primary:var(--digi--color--text--primary--light);--digi--color--text--secondary:var(--digi--color--text--secondary--light);--digi--color--text--description:var(--digi--color--text--description--light);--digi--color--text--interactive--primary:var(--digi--color--text--interactive--primary--light);--digi--color--text--interactive--secondary:var(--digi--color--text--interactive--secondary--light);--digi--color--text--interactive--tertiary:var(--digi--color--text--interactive--tertiary--light);--digi--color--text--interactive--brand-primary:var(--digi--color--text--interactive--brand-primary--light);--digi--color--text--interactive--brand-secondary:var(--digi--color--text--interactive--brand-secondary--light);--digi--color--text--interactive--visited:var(--digi--color--text--interactive--visited--light);--digi--color--background--primary:var(--digi--color--background--primary--light);--digi--color--background--secondary:var(--digi--color--background--secondary--light);--digi--color--background--secondary-muted:var(--digi--color--background--secondary-muted--light);--digi--color--background--secondary-accent:var(--digi--color--background--secondary-accent--light);--digi--color--background--pop-out:var(--digi--color--background--pop-out--light);--digi--color--background--brand-primary:var(--digi--color--background--brand-primary--light);--digi--color--background--transparent:var(--digi--color--background--transparent--light);--digi--color--background--notification:var(--digi--color--background--notification--light);--digi--color--background--interactive--default--primary:var(--digi--color--background--interactive--default--primary--light);--digi--color--background--interactive--default--primary-inverted:var(--digi--color--background--interactive--default--primary-inverted--light);--digi--color--background--interactive--default--secondary:var(--digi--color--background--interactive--default--secondary--light);--digi--color--background--interactive--default--secondary-inverted:var(--digi--color--background--interactive--default--secondary-inverted--light);--digi--color--background--interactive--default--tertiary:var(--digi--color--background--interactive--default--tertiary--light);--digi--color--background--interactive--default--quaternary:var(--digi--color--background--interactive--default--quaternary--light);--digi--color--background--interactive--default--input-elements:var(--digi--color--background--interactive--default--input-elements--light);--digi--color--background--interactive--default--pop-out:var(--digi--color--background--interactive--default--pop-out--light);--digi--color--background--interactive--hover--primary:var(--digi--color--background--interactive--hover--primary--light);--digi--color--background--interactive--hover--secondary:var(--digi--color--background--interactive--hover--secondary--light);--digi--color--background--interactive--hover--tertiary:var(--digi--color--background--interactive--hover--tertiary--light);--digi--color--background--interactive--hover--quarternary:var(--digi--color--background--interactive--hover--quarternary--light);--digi--color--background--interactive--hover--inverted:var(--digi--color--background--interactive--hover--inverted--light);--digi--color--background--interactive--selected--primary:var(--digi--color--background--interactive--selected--primary--light);--digi--color--background--interactive--selected--secondary:var(--digi--color--background--interactive--selected--secondary--light);--digi--color--background--interactive--selected--tertiary:var(--digi--color--background--interactive--selected--tertiary--light);--digi--color--background--interactive--selected--on-menu-minus-button:var(--digi--color--background--interactive--selected--on-menu-minus-button--light);--digi--color--background--interactive--validation--success:var(--digi--color--background--interactive--validation--success--light);--digi--color--background--interactive--validation--warning:var(--digi--color--background--interactive--validation--warning--light);--digi--color--background--interactive--validation--error:var(--digi--color--background--interactive--validation--error--light);--digi--color--background--sentiment--error--primary:var(--digi--color--background--sentiment--error--primary--light);--digi--color--background--sentiment--error--secondary:var(--digi--color--background--sentiment--error--secondary--light);--digi--color--background--sentiment--error--tertiary:var(--digi--color--background--sentiment--error--tertiary--light);--digi--color--background--sentiment--success--primary:var(--digi--color--background--sentiment--success--primary--light);--digi--color--background--sentiment--success--secondary:var(--digi--color--background--sentiment--success--secondary--light);--digi--color--background--sentiment--success--tertiary:var(--digi--color--background--sentiment--success--tertiary--light);--digi--color--background--sentiment--warning--primary:var(--digi--color--background--sentiment--warning--primary--light);--digi--color--background--sentiment--warning--secondary:var(--digi--color--background--sentiment--warning--secondary--light);--digi--color--background--sentiment--warning--tertiary:var(--digi--color--background--sentiment--warning--tertiary--light);--digi--color--background--sentiment--warning--quarternary:var(--digi--color--background--sentiment--warning--quarternary--light);--digi--color--background--sentiment--info--primary:var(--digi--color--background--sentiment--info--primary--light);--digi--color--background--sentiment--info--secondary:var(--digi--color--background--sentiment--info--secondary--light);--digi--color--background--sentiment--info--tertiary:var(--digi--color--background--sentiment--info--tertiary--light);--digi--color--background--sentiment--neutral--primary:var(--digi--color--background--sentiment--neutral--primary--light);--digi--color--background--sentiment--neutral--secondary:var(--digi--color--background--sentiment--neutral--secondary--light);--digi--color--background--sentiment--neutral--tertiary:var(--digi--color--background--sentiment--neutral--tertiary--light);--digi--color--background--sentiment--beta--primary:var(--digi--color--background--sentiment--beta--primary--light);--digi--color--background--sentiment--beta--secondary:var(--digi--color--background--sentiment--beta--secondary--light);--digi--color--border--notification:var(--digi--color--border--notification--light);--digi--color--border--transparent:var(--digi--color--border--transparent--light);--digi--color--border--interactive--default--primary:var(--digi--color--border--interactive--default--primary--light);--digi--color--border--interactive--default--on-input:var(--digi--color--border--interactive--default--on-input--light);--digi--color--border--interactive--default--on-input-nuance:var(--digi--color--border--interactive--default--on-input-nuance--light);--digi--color--border--interactive--default--inverted:var(--digi--color--border--interactive--default--inverted--light);--digi--color--border--interactive--hover--primary:var(--digi--color--border--interactive--hover--primary--light);--digi--color--border--interactive--hover--secondary:var(--digi--color--border--interactive--hover--secondary--light);--digi--color--border--interactive--hover--inverted:var(--digi--color--border--interactive--hover--inverted--light);--digi--color--border--interactive--validation--success:var(--digi--color--border--interactive--validation--success--light);--digi--color--border--interactive--validation--warning:var(--digi--color--border--interactive--validation--warning--light);--digi--color--border--interactive--validation--error:var(--digi--color--border--interactive--validation--error--light);--digi--color--border--interactive--selected--primary:var(--digi--color--border--interactive--selected--primary--light);--digi--color--border--interactive--selected--secondary:var(--digi--color--border--interactive--selected--secondary--light);--digi--color--border--sentiment--error:var(--digi--color--border--sentiment--error--light);--digi--color--border--sentiment--success:var(--digi--color--border--sentiment--success--light);--digi--color--border--sentiment--warning:var(--digi--color--border--sentiment--warning--light);--digi--color--border--sentiment--info:var(--digi--color--border--sentiment--info--light);--digi--color--border--accent--primary:var(--digi--color--border--accent--primary--light);--digi--color--border--accent--secondary:var(--digi--color--border--accent--secondary--light);--digi--color--marking--navigation--selected:var(--digi--color--marking--navigation--selected--light);--digi--color--marking--navigation--level-active:var(--digi--color--marking--navigation--level-active--light);--digi--color--marking--navigation--level-inactive:var(--digi--color--marking--navigation--level-inactive--light);--digi--color--marking--indication--primary:var(--digi--color--marking--indication--primary--light);--digi--color--marking--indication--secondary:var(--digi--color--marking--indication--secondary--light);--digi--color--marking--indication--tertiary:var(--digi--color--marking--indication--tertiary--light);--digi--color--divider--primary:var(--digi--color--divider--primary--light);--digi--color--divider--secondary:var(--digi--color--divider--secondary--light);--digi--color--divider--on-brand-primary:var(--digi--color--divider--on-brand-primary--light);--digi--color--divider--cta:var(--digi--color--divider--cta--light);--digi--color--icon--primary:var(--digi--color--icon--primary--light);--digi--color--icon--secondary:var(--digi--color--icon--secondary--light);--digi--color--icon--cta:var(--digi--color--icon--cta--light);--digi--color--icon--brand-primary:var(--digi--color--icon--brand-primary--light);--digi--color--icon--brand-secondary:var(--digi--color--icon--brand-secondary--light);--digi--color--icon--validation--success:var(--digi--color--icon--validation--success--light);--digi--color--icon--validation--warning:var(--digi--color--icon--validation--warning--light);--digi--color--icon--validation--error:var(--digi--color--icon--validation--error--light);--digi--color--misc--spinner-path:var(--digi--color--misc--spinner-path--light);--digi--color--misc--skeleton:var(--digi--color--misc--skeleton--light);--digi--amethyst--500:#822998;--digi--granskott--150:#f2faf2;--digi--granskott--200:#ebf8eb;--digi--granskott--250:#ddf4dd;--digi--granskott--300:#cbecc9;--digi--granskott--350:#ace4ad;--digi--granskott--650:#1db920;--digi--granskott--700:#02a704;--digi--granskott--750:#018903;--digi--granskott--800:#016503;--digi--natthimmel--200:#e9f6fd;--digi--natthimmel--250:#ddf1fc;--digi--natthimmel--300:#c9e9fa;--digi--natthimmel--350:#abdef7;--digi--natthimmel--700:#043982;--digi--natthimmel--800:#091d54;--digi--natthimmel--900:#071744;--digi--norrsken--400:#aaf5ab;--digi--norrsken--500:#67ee6a;--digi--rallarros--300:#f8ddf5;--digi--rallarros--500:#ce1cbd;--digi--sapphire--500:#1616b2;--digi--color--logotype-color--light:var(--digi--granskott--700);--digi--color--infographic--lineart--light:var(--digi--grayscale--900);--digi--color--infographic--background--light:var(--digi--grayscale--0);--digi--color--infographic--brand--primary--light:var(--digi--granskott--700);--digi--color--infographic--brand--secondary--light:var(--digi--granskott--250);--digi--color--infographic--brand--tertiary--light:var(--digi--rallarros--500);--digi--color--text--primary--light:var(--digi--grayscale--900);--digi--color--text--secondary--light:var(--digi--grayscale--0);--digi--color--text--description--light:var(--digi--grayscale--800);--digi--color--text--interactive--primary--light:var(--digi--sapphire--500);--digi--color--text--interactive--secondary--light:var(--digi--grayscale--0);--digi--color--text--interactive--tertiary--light:var(--digi--grayscale--900);--digi--color--text--interactive--brand-primary--light:var(--digi--natthimmel--800);--digi--color--text--interactive--brand-secondary--light:var(--digi--norrsken--500);--digi--color--text--interactive--visited--light:var(--digi--amethyst--500);--digi--color--background--primary--light:var(--digi--grayscale--0);--digi--color--background--secondary--light:var(--digi--grayscale--100);--digi--color--background--secondary-muted--light:var(--digi--grayscale--50);--digi--color--background--secondary-accent--light:var(--digi--grayscale--400);--digi--color--background--pop-out--light:var(--digi--granskott--200);--digi--color--background--brand-primary--light:var(--digi--natthimmel--800);--digi--color--background--transparent--light:var(--digi--misc--transparent);--digi--color--background--notification--light:var(--digi--sentiment--error--500);--digi--color--background--interactive--default--primary--light:var(--digi--natthimmel--800);--digi--color--background--interactive--default--primary-inverted--light:var(--digi--norrsken--500);--digi--color--background--interactive--default--secondary--light:var(--digi--grayscale--0);--digi--color--background--interactive--default--secondary-inverted--light:var(--digi--misc--transparent);--digi--color--background--interactive--default--tertiary--light:var(--digi--grayscale--200);--digi--color--background--interactive--default--quaternary--light:var(--digi--grayscale--100);--digi--color--background--interactive--default--input-elements--light:var(--digi--grayscale--0);--digi--color--background--interactive--default--pop-out--light:var(--digi--granskott--150);--digi--color--background--interactive--hover--primary--light:var(--digi--natthimmel--700);--digi--color--background--interactive--hover--secondary--light:var(--digi--natthimmel--250);--digi--color--background--interactive--hover--tertiary--light:var(--digi--sapphire--500);--digi--color--background--interactive--hover--quarternary--light:var(--digi--grayscale--200);--digi--color--background--interactive--hover--inverted--light:var(--digi--norrsken--400);--digi--color--background--interactive--selected--primary--light:var(--digi--sentiment--success--500);--digi--color--background--interactive--selected--secondary--light:var(--digi--natthimmel--800);--digi--color--background--interactive--selected--tertiary--light:var(--digi--grayscale--200);--digi--color--background--interactive--selected--on-menu-minus-button--light:var(--digi--granskott--250);--digi--color--background--interactive--validation--success--light:var(--digi--sentiment--success--200);--digi--color--background--interactive--validation--warning--light:var(--digi--sentiment--warning--50);--digi--color--background--interactive--validation--error--light:var(--digi--sentiment--error--200);--digi--color--background--sentiment--error--primary--light:var(--digi--sentiment--error--500);--digi--color--background--sentiment--error--secondary--light:var(--digi--sentiment--error--700);--digi--color--background--sentiment--error--tertiary--light:var(--digi--sentiment--error--200);--digi--color--background--sentiment--success--primary--light:var(--digi--sentiment--success--500);--digi--color--background--sentiment--success--secondary--light:var(--digi--sentiment--success--700);--digi--color--background--sentiment--success--tertiary--light:var(--digi--sentiment--success--200);--digi--color--background--sentiment--warning--primary--light:var(--digi--sentiment--warning--500);--digi--color--background--sentiment--warning--secondary--light:var(--digi--sentiment--warning--700);--digi--color--background--sentiment--warning--tertiary--light:var(--digi--sentiment--warning--200);--digi--color--background--sentiment--warning--quarternary--light:var(--digi--sentiment--warning--50);--digi--color--background--sentiment--info--primary--light:var(--digi--sentiment--informative--500);--digi--color--background--sentiment--info--secondary--light:var(--digi--sentiment--informative--700);--digi--color--background--sentiment--info--tertiary--light:var(--digi--sentiment--informative--200);--digi--color--background--sentiment--neutral--primary--light:var(--digi--grayscale--700);--digi--color--background--sentiment--neutral--secondary--light:var(--digi--grayscale--400);--digi--color--background--sentiment--neutral--tertiary--light:var(--digi--grayscale--900);--digi--color--background--sentiment--beta--primary--light:var(--digi--rallarros--500);--digi--color--background--sentiment--beta--secondary--light:var(--digi--rallarros--300);--digi--color--border--notification--light:var(--digi--grayscale--0);--digi--color--border--transparent--light:var(--digi--misc--transparent);--digi--color--border--interactive--default--primary--light:var(--digi--natthimmel--800);--digi--color--border--interactive--default--on-input--light:var(--digi--grayscale--900);--digi--color--border--interactive--default--on-input-nuance--light:var(--digi--grayscale--800);--digi--color--border--interactive--default--inverted--light:var(--digi--norrsken--500);--digi--color--border--interactive--hover--primary--light:var(--digi--natthimmel--700);--digi--color--border--interactive--hover--secondary--light:var(--digi--natthimmel--800);--digi--color--border--interactive--hover--inverted--light:var(--digi--norrsken--400);--digi--color--border--interactive--validation--success--light:var(--digi--sentiment--success--500);--digi--color--border--interactive--validation--warning--light:var(--digi--sentiment--warning--900);--digi--color--border--interactive--validation--error--light:var(--digi--sentiment--error--500);--digi--color--border--interactive--selected--primary--light:var(--digi--sentiment--success--500);--digi--color--border--interactive--selected--secondary--light:var(--digi--natthimmel--800);--digi--color--border--sentiment--error--light:var(--digi--sentiment--error--500);--digi--color--border--sentiment--success--light:var(--digi--sentiment--success--500);--digi--color--border--sentiment--warning--light:var(--digi--sentiment--warning--500);--digi--color--border--sentiment--info--light:var(--digi--sentiment--informative--500);--digi--color--border--accent--primary--light:var(--digi--natthimmel--800);--digi--color--border--accent--secondary--light:var(--digi--granskott--700);--digi--color--marking--navigation--selected--light:var(--digi--granskott--700);--digi--color--marking--navigation--level-active--light:var(--digi--granskott--250);--digi--color--marking--navigation--level-inactive--light:var(--digi--grayscale--100);--digi--color--marking--indication--primary--light:var(--digi--sentiment--success--500);--digi--color--marking--indication--secondary--light:var(--digi--natthimmel--800);--digi--color--marking--indication--tertiary--light:var(--digi--grayscale--700);--digi--color--divider--primary--light:var(--digi--grayscale--400);--digi--color--divider--secondary--light:var(--digi--grayscale--200);--digi--color--divider--on-brand-primary--light:var(--digi--natthimmel--350);--digi--color--divider--cta--light:var(--digi--sapphire--500);--digi--color--icon--primary--light:var(--digi--grayscale--900);--digi--color--icon--secondary--light:var(--digi--grayscale--0);--digi--color--icon--cta--light:var(--digi--sapphire--500);--digi--color--icon--brand-primary--light:var(--digi--natthimmel--800);--digi--color--icon--brand-secondary--light:var(--digi--granskott--700);--digi--color--icon--validation--success--light:var(--digi--sentiment--success--500);--digi--color--icon--validation--warning--light:var(--digi--sentiment--warning--500);--digi--color--icon--validation--error--light:var(--digi--sentiment--error--500);--digi--color--misc--spinner-path--light:var(--digi--grayscale--400);--digi--color--misc--skeleton--light:var(--digi--grayscale--400);--digi--color--amber--200:#fff398;--digi--color--amber--50:#fffbdd;--digi--color--amber--500:#ffe200;--digi--color--amber--700:#ffc108;--digi--color--amber--900:#664d00;--digi--color--amethyst--500:#822998;--digi--color--forest--200:#e9f6ec;--digi--color--forest--500:#009322;--digi--color--forest--700:#02703c;--digi--color--indigo--200:#e9e9ff;--digi--color--indigo--500:#0000ff;--digi--color--indigo--700:#0058a3;--digi--color--jade--100:#bddfda;--digi--color--jade--200:#7fc1b6;--digi--color--jade--400:#379d8d;--digi--color--jade--50:#ddeeec;--digi--color--jade--500:#058470;--digi--color--jade--600:#046a5a;--digi--color--jade--700:#035548;--digi--color--jade--900:#02372f;--digi--color--leaf--100:#f1f7e5;--digi--color--leaf--200:#ddebc1;--digi--color--leaf--400:#aace65;--digi--color--leaf--500:#95c23e;--digi--color--leaf--600:#779b32;--digi--color--moon--0:#ffffff;--digi--color--pear--500:#b7ee4a;--digi--color--pear--600:#a7d943;--digi--color--rose--100:#f4cada;--digi--color--rose--200:#e997b7;--digi--color--rose--400:#dd5c8e;--digi--color--rose--50:#f9e4ec;--digi--color--rose--500:#d43372;--digi--color--rose--600:#bd2e65;--digi--color--rose--700:#882149;--digi--color--rose--900:#54172e;--digi--color--ruby--200:#fdeded;--digi--color--ruby--500:#da0000;--digi--color--ruby--700:#c7311a;--digi--color--sapphire--500:#1616b2;--digi--color--stratos--100:#dddde9;--digi--color--stratos--400:#33337b;--digi--color--stratos--500:#00005a;--digi--color--stratos--600:#000048;--digi--color--water--200:#f1f8fe;--digi--color--water--500:#bdd3e7;--digi--color--water--700:#0058a3;--digi--color--logotype-color--light--af18:var(--digi--color--leaf--500);--digi--color--infographic--lineart--light--af18:var(--digi--grayscale--900);--digi--color--infographic--background--light--af18:var(--digi--grayscale--0);--digi--color--infographic--brand--primary--light--af18:var(--digi--color--leaf--500);--digi--color--infographic--brand--secondary--light--af18:var(--digi--color--leaf--200);--digi--color--infographic--brand--tertiary--light--af18:var(--digi--color--rose--500);--digi--color--text--primary--light--af18:var(--digi--grayscale--900);--digi--color--text--secondary--light--af18:var(--digi--grayscale--0);--digi--color--text--description--light--af18:var(--digi--grayscale--800);--digi--color--text--interactive--primary--light--af18:var(--digi--color--sapphire--500);--digi--color--text--interactive--secondary--light--af18:var(--digi--grayscale--0);--digi--color--text--interactive--tertiary--light--af18:var(--digi--grayscale--900);--digi--color--text--interactive--brand-primary--light--af18:var(--digi--color--stratos--500);--digi--color--text--interactive--brand-secondary--light--af18:var(--digi--color--leaf--500);--digi--color--text--interactive--visited--light--af18:var(--digi--color--amethyst--500);--digi--color--background--primary--light--af18:var(--digi--grayscale--0);--digi--color--background--secondary--light--af18:var(--digi--grayscale--100);--digi--color--background--secondary-muted--light--af18:var(--digi--grayscale--50);--digi--color--background--secondary-accent--light--af18:var(--digi--grayscale--400);--digi--color--background--pop-out--light--af18:var(--digi--color--leaf--100);--digi--color--background--brand-primary--light--af18:var(--digi--color--stratos--500);--digi--color--background--transparent--light--af18:var(--digi--misc--transparent);--digi--color--background--notification--light--af18:var(--digi--sentiment--error--500);--digi--color--background--interactive--default--primary--light--af18:var(--digi--color--stratos--500);--digi--color--background--interactive--default--primary-inverted--light--af18:var(--digi--color--leaf--500);--digi--color--background--interactive--default--secondary--light--af18:var(--digi--grayscale--0);--digi--color--background--interactive--default--secondary-inverted--light--af18:var(--digi--misc--transparent);--digi--color--background--interactive--default--tertiary--light--af18:var(--digi--grayscale--200);--digi--color--background--interactive--default--quaternary--light--af18:var(--digi--grayscale--100);--digi--color--background--interactive--default--input-elements--light--af18:var(--digi--grayscale--0);--digi--color--background--interactive--default--pop-out--light--af18:var(--digi--color--leaf--100);--digi--color--background--interactive--hover--primary--light--af18:var(--digi--color--water--700);--digi--color--background--interactive--hover--secondary--light--af18:var(--digi--color--water--500);--digi--color--background--interactive--hover--tertiary--light--af18:var(--digi--color--sapphire--500);--digi--color--background--interactive--hover--quarternary--light--af18:var(--digi--grayscale--200);--digi--color--background--interactive--hover--inverted--light--af18:var(--digi--color--pear--500);--digi--color--background--interactive--selected--primary--light--af18:var(--digi--sentiment--success--500);--digi--color--background--interactive--selected--secondary--light--af18:var(--digi--color--stratos--500);--digi--color--background--interactive--selected--tertiary--light--af18:var(--digi--grayscale--200);--digi--color--background--interactive--selected--on-menu-minus-button--light--af18:var(--digi--color--leaf--200);--digi--color--background--interactive--validation--success--light--af18:var(--digi--sentiment--success--200);--digi--color--background--interactive--validation--warning--light--af18:var(--digi--sentiment--warning--50);--digi--color--background--interactive--validation--error--light--af18:var(--digi--sentiment--error--200);--digi--color--background--sentiment--error--primary--light--af18:var(--digi--sentiment--error--500);--digi--color--background--sentiment--error--secondary--light--af18:var(--digi--sentiment--error--700);--digi--color--background--sentiment--error--tertiary--light--af18:var(--digi--sentiment--error--200);--digi--color--background--sentiment--success--primary--light--af18:var(--digi--sentiment--success--500);--digi--color--background--sentiment--success--secondary--light--af18:var(--digi--sentiment--success--700);--digi--color--background--sentiment--success--tertiary--light--af18:var(--digi--sentiment--success--200);--digi--color--background--sentiment--warning--primary--light--af18:var(--digi--sentiment--warning--500);--digi--color--background--sentiment--warning--secondary--light--af18:var(--digi--sentiment--warning--700);--digi--color--background--sentiment--warning--tertiary--light--af18:var(--digi--sentiment--warning--200);--digi--color--background--sentiment--warning--quarternary--light--af18:var(--digi--sentiment--warning--50);--digi--color--background--sentiment--info--primary--light--af18:var(--digi--sentiment--informative--500);--digi--color--background--sentiment--info--secondary--light--af18:var(--digi--sentiment--informative--700);--digi--color--background--sentiment--info--tertiary--light--af18:var(--digi--sentiment--informative--200);--digi--color--background--sentiment--neutral--primary--light--af18:var(--digi--grayscale--700);--digi--color--background--sentiment--neutral--secondary--light--af18:var(--digi--grayscale--400);--digi--color--background--sentiment--neutral--tertiary--light--af18:var(--digi--grayscale--900);--digi--color--background--sentiment--beta--primary--light--af18:var(--digi--color--rose--500);--digi--color--background--sentiment--beta--secondary--light--af18:var(--digi--color--rose--100);--digi--color--border--notification--light--af18:var(--digi--grayscale--0);--digi--color--border--transparent--light--af18:var(--digi--misc--transparent);--digi--color--border--interactive--default--primary--light--af18:var(--digi--color--stratos--500);--digi--color--border--interactive--default--on-input--light--af18:var(--digi--grayscale--900);--digi--color--border--interactive--default--on-input-nuance--light--af18:var(--digi--grayscale--800);--digi--color--border--interactive--default--inverted--light--af18:var(--digi--color--leaf--500);--digi--color--border--interactive--hover--primary--light--af18:var(--digi--color--water--700);--digi--color--border--interactive--hover--secondary--light--af18:var(--digi--color--stratos--500);--digi--color--border--interactive--hover--inverted--light--af18:var(--digi--color--pear--500);--digi--color--border--interactive--validation--success--light--af18:var(--digi--sentiment--success--500);--digi--color--border--interactive--validation--warning--light--af18:var(--digi--sentiment--warning--900);--digi--color--border--interactive--validation--error--light--af18:var(--digi--sentiment--error--500);--digi--color--border--interactive--selected--primary--light--af18:var(--digi--sentiment--success--500);--digi--color--border--interactive--selected--secondary--light--af18:var(--digi--color--stratos--500);--digi--color--border--sentiment--error--light--af18:var(--digi--sentiment--error--500);--digi--color--border--sentiment--success--light--af18:var(--digi--sentiment--success--500);--digi--color--border--sentiment--warning--light--af18:var(--digi--sentiment--warning--500);--digi--color--border--sentiment--info--light--af18:var(--digi--sentiment--informative--500);--digi--color--border--accent--primary--light--af18:var(--digi--color--stratos--500);--digi--color--border--accent--secondary--light--af18:var(--digi--color--leaf--500);--digi--color--marking--navigation--selected--light--af18:var(--digi--color--leaf--500);--digi--color--marking--navigation--level-active--light--af18:var(--digi--color--leaf--200);--digi--color--marking--navigation--level-inactive--light--af18:var(--digi--grayscale--100);--digi--color--marking--indication--primary--light--af18:var(--digi--sentiment--success--500);--digi--color--marking--indication--secondary--light--af18:var(--digi--color--stratos--500);--digi--color--marking--indication--tertiary--light--af18:var(--digi--grayscale--700);--digi--color--divider--primary--light--af18:var(--digi--grayscale--400);--digi--color--divider--secondary--light--af18:var(--digi--grayscale--200);--digi--color--divider--on-brand-primary--light--af18:var(--digi--color--stratos--400);--digi--color--divider--cta--light--af18:var(--digi--color--sapphire--500);--digi--color--icon--primary--light--af18:var(--digi--grayscale--900);--digi--color--icon--secondary--light--af18:var(--digi--grayscale--0);--digi--color--icon--cta--light--af18:var(--digi--color--sapphire--500);--digi--color--icon--brand-primary--light--af18:var(--digi--color--stratos--500);--digi--color--icon--brand-secondary--light--af18:var(--digi--color--leaf--500);--digi--color--icon--validation--success--light--af18:var(--digi--sentiment--success--500);--digi--color--icon--validation--warning--light--af18:var(--digi--sentiment--warning--500);--digi--color--icon--validation--error--light--af18:var(--digi--sentiment--error--500);--digi--color--misc--spinner-path--light--af18:var(--digi--grayscale--400);--digi--color--misc--skeleton--light--af18:var(--digi--grayscale--400)}body.sc-digi-calendar-datepicker{font-size:1rem;font-family:\"Open Sans\", Arial, sans-serif}.sc-digi-calendar-datepicker-h{--digi--datepicker--max-width:18.75rem;--digi--datepicker--border-radius:0.25rem;--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--calendar--background-color:var(--digi--color--background--interactive--default--secondary);--digi--datepicker--input-icon--width:0.875rem;--digi--datepicker--input-icon--horizontal-padding:0.75rem;--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);box-sizing:content-box}.sc-digi-calendar-datepicker-h .digi-calendar-datepicker.sc-digi-calendar-datepicker{position:relative;pointer-events:none}.sc-digi-calendar-datepicker-h .digi-calendar-datepicker__input-field.sc-digi-calendar-datepicker{position:relative;max-width:var(--digi--datepicker--max-width);pointer-events:auto}.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(--digi--datepicker--input--inactive-background)}.sc-digi-calendar-datepicker-h .digi-calendar-datepicker__input-field.sc-digi-calendar-datepicker .digi-calendar-datepicker__input-button.sc-digi-calendar-datepicker{background:var(--digi--color--background--primary);height:var(--digi--form-input--height--medium);color:inherit;border:1px solid var(--digi--color--border--interactive--default--on-input);border-left: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 svg.sc-digi-calendar-datepicker{color:var(--digi--color--icon--brand-primary)}.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__input-field.sc-digi-calendar-datepicker .digi-calendar-datepicker__input-button.sc-digi-calendar-datepicker:hover,.sc-digi-calendar-datepicker-h .digi-calendar-datepicker__input-field.sc-digi-calendar-datepicker .digi-calendar-datepicker__input-button.sc-digi-calendar-datepicker:focus{background:var(--digi--color--background--interactive--hover--secondary)}.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-calendar.sc-digi-calendar-datepicker .digi-calendar-datepicker__calendar.sc-digi-calendar-datepicker{height:auto;background-color:var(--digi--datepicker--calendar--background-color);box-shadow:var(--digi--datepicker--calendar-shadow);position:absolute;top:var(--digi--datepicker--calendar--popup-top);left:0;pointer-events:auto}.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) 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}";
2184
- const DigiCalendarDatepickerStyle0 = calendarDatepickerCss;
2185
-
2186
- const CalendarDatepicker = class {
2187
- constructor(hostRef) {
2188
- index$2.registerInstance(this, hostRef);
2189
- this.afOnDateChange = index$2.createEvent(this, "afOnDateChange", 7);
2190
- this.afOnDateChangeRawText = index$2.createEvent(this, "afOnDateChangeRawText", 7);
2191
- this.afOnValidationChange = index$2.createEvent(this, "afOnValidationChange", 7);
2192
- this.futureYears = 10;
2193
- this.screenReaderUpdateTrigger = false;
2194
- this.showWrongFormatError = false;
2195
- this.showDisabledDateError = false;
2196
- this.showCalendar = false;
2197
- this.userInput = '';
2198
- this.afId = randomIdGenerator_util.randomIdGenerator('digi-calendar-datepicker');
2199
- this.afLabel = text._t.calendar.datepicker.label;
2200
- this.afLabelDescription = undefined;
2201
- this.afName = undefined;
2202
- this.afOpenCalendarAriaLabel = text._t.calendar.datepicker.openCalendarAriaLabel;
2203
- this.afCloseCalendarAriaLabel = text._t.calendar.datepicker.closeCalendarAriaLabel;
2204
- this.afValidation = typographyVariation_enum.CalendarDatepickerValidation.NEUTRAL;
2205
- this.afValidationText = undefined;
2206
- this.afValidationWrongFormat = text._t.calendar.datepicker.validationWrongFormat;
2207
- this.afValidationDisabledDate = text._t.calendar.datepicker.validationDisabledDate;
2208
- this.afRequired = undefined;
2209
- this.afDisableValidation = false;
2210
- this.afRequiredText = undefined;
2211
- this.afSelectedDates = [];
2212
- this.afYearSelect = false;
2213
- this.value = [];
2214
- this.afMinDate = undefined;
2215
- this.afMaxDate = undefined;
2216
- this.afShowWeekNumber = false;
2217
- this.afMultipleDates = false;
2218
- this.afCloseOnSelect = false;
2219
- this.afOpenCalendarTo = undefined;
2220
- this.afErrorMessageIsAlert = true;
2221
- }
2222
- afDisableValidationChangeHandler(newVal) {
2223
- if (!newVal) {
2224
- const dates = this.userInput !== ''
2225
- ? this.parseInputString(this.userInput)
2226
- : this.afSelectedDates;
2227
- this.validateInputAndShowErrors(dates);
2228
- }
2229
- else {
2230
- this.showWrongFormatError = false;
2231
- this.showDisabledDateError = false;
2232
- }
2233
- }
2234
- afSelectedDatesChangeHandler(newVal) {
2235
- if (!this.afDisableValidation && newVal.length > 0) {
2236
- this.validateInputAndShowErrors(newVal);
2237
- }
2238
- }
2239
- valueChangeHandler(newVal) {
2240
- if (this.afDisableValidation && this.afSelectedDates.length > 0) {
2241
- this.afSelectedDates = [];
2242
- }
2243
- /**
2244
- * 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.
2245
- */
2246
- if (Array.isArray(newVal) &&
2247
- newVal.every((d) => d instanceof Date && !isNaN(d.getTime()))) {
2248
- this.afSelectedDates = newVal;
2249
- this.userInput = '';
2250
- }
2251
- }
2252
- afMinDateChangeHandler(newVal) {
2253
- if (!this.afDisableValidation && newVal) {
2254
- this.validateInputAndShowErrors(this.afSelectedDates);
2255
- }
2256
- }
2257
- afMaxDateChangeHandler(newVal) {
2258
- if (!this.afDisableValidation && newVal) {
2259
- this.validateInputAndShowErrors(this.afSelectedDates);
2260
- }
2261
- }
2262
- afMultipleDatesChangeHandler() {
2263
- var _a;
2264
- if (!this.afMultipleDates && this.afSelectedDates.length > 1) {
2265
- this.afSelectedDates = this.afSelectedDates.slice(-1);
2266
- this.value = (_a = this.afSelectedDates) !== null && _a !== void 0 ? _a : [];
2267
- }
2268
- }
2269
- get errorMessageIsAlert() {
2270
- return (this.afErrorMessageIsAlert !== false &&
2271
- this.afErrorMessageIsAlert !== 'false');
2272
- }
2273
- clickHandler(e) {
2274
- const target = e.target;
2275
- const selector = `#${this.afId}-datepicker`;
2276
- if (detectClickOutside_util.detectClickOutside(target, selector)) {
2277
- this.showCalendar = false;
2278
- }
2279
- }
2280
- /**
2281
- * Lyssnar på om fokus sätts på custom-elementet och propagerar ner det till själva input-elementet.
2282
- * @en Listens for when focus is set on the custom element and propagates it down to the actual input element.
2283
- */
2284
- focusOnInput() {
2285
- this._input.focus();
2286
- }
2287
- connectedCallback() {
2288
- this.hostElement.addEventListener('keyup', this.keyUpHandler.bind(this));
2289
- }
2290
- disconnectedCallback() {
2291
- this.hostElement.removeEventListener('keyup', this.keyUpHandler.bind(this));
2292
- }
2293
- componentDidLoad() {
2294
- var _a;
2295
- if ((_a = this.value) === null || _a === void 0 ? void 0 : _a.length) {
2296
- this.setValue(this.value);
2297
- }
2298
- }
2299
- componentDidUpdate() {
2300
- if (this.showCalendar) {
2301
- this.positionCalendar();
2302
- }
2303
- }
2304
- get cssModifiers() {
2305
- return {
2306
- 'digi-calendar-datepicker__show-week-numbers': this.afShowWeekNumber,
2307
- 'digi-calendar-datepicker__show-error': this.hasBuiltInValidationError() || this.hasCustomValidationError(),
2308
- 'digi-calendar-datepicker__show-calendar': this.showCalendar
2309
- };
2310
- }
2311
- keyUpHandler(e) {
2312
- if (e.key === 'Escape' && this.showCalendar) {
2313
- this.showCalendar = false;
2314
- this.focusOnCalendarButton();
2315
- e.stopPropagation();
2316
- }
2317
- }
2318
- focusOnCalendarInput() {
2319
- const input = this.hostElement.querySelector(`#${this.afId}-datepicker input`);
2320
- input === null || input === void 0 ? void 0 : input.focus();
2321
- }
2322
- focusOnCalendarButton() {
2323
- const calendarButton = this.hostElement.querySelector(`#${this.afId}-button`);
2324
- calendarButton.focus();
2325
- }
2326
- positionCalendar() {
2327
- const btn = this.hostElement.querySelector(`#${this.afId}-button`);
2328
- const datepickerEl = this.hostElement.querySelector(`#${this.afId}-datepicker`);
2329
- if (!btn || !datepickerEl)
2330
- return;
2331
- const btnRect = btn.getBoundingClientRect();
2332
- const containerRect = datepickerEl.getBoundingClientRect();
2333
- datepickerEl.style.setProperty('--digi--datepicker--calendar--popup-top', `${btnRect.bottom - containerRect.top + 5}px`);
2334
- }
2335
- toggleCalendar() {
2336
- if (!this.showCalendar) {
2337
- this.positionCalendar();
2338
- }
2339
- this.showCalendar = !this.showCalendar;
2340
- if (this.showCalendar) {
2341
- this.screenReaderUpdateTrigger = !this.screenReaderUpdateTrigger;
2342
- }
2343
- }
2344
- parseInputString(value) {
2345
- return value
2346
- .split(new RegExp(`[&,]|${text._t.and}`, 'g'))
2347
- .map((text) => this.parseDateString(text.trim()));
2348
- }
2349
- resetValueAndState() {
2350
- this.showWrongFormatError = false;
2351
- this.showDisabledDateError = false;
2352
- this.setValue([]);
2353
- this.afOnDateChange.emit([]);
2354
- this.afSelectedDates = [];
2355
- }
2356
- removeDuplicateDates(dates) {
2357
- const seen = new Set();
2358
- return dates.filter((date) => {
2359
- if (!(date instanceof Date) || isNaN(date.getTime())) {
2360
- return true;
2361
- }
2362
- const key = date.toISOString().split('T')[0]; // yyyy-mm-dd
2363
- if (seen.has(key)) {
2364
- return false;
2365
- }
2366
- seen.add(key);
2367
- return true;
2368
- });
2369
- }
2370
- validateInputAndShowErrors(dates) {
2371
- this.showWrongFormatError = !!dates.find((date) => !index.isValid(date));
2372
- this.showDisabledDateError = !!dates.find((date) => !this.isDateSelectable(date));
2373
- const inputIsValid = !this.showWrongFormatError && !this.showDisabledDateError;
2374
- this.afOnValidationChange.emit({
2375
- isValid: inputIsValid,
2376
- validationText: inputIsValid
2377
- ? undefined
2378
- : this.showWrongFormatError
2379
- ? this.afValidationWrongFormat
2380
- : this.afValidationDisabledDate
2381
- });
2382
- }
2383
- setValue(value) {
2384
- this.afSelectedDates = value;
2385
- this.value = value;
2386
- }
2387
- parseInput(evt) {
2388
- let newValue = '';
2389
- if (evt.detail && typeof evt.detail.value === 'string') {
2390
- newValue = evt.detail.value;
2391
- }
2392
- else if (evt.target && evt.target.value != null) {
2393
- newValue = evt.target.value;
2394
- }
2395
- this.userInput = newValue;
2396
- if (newValue === '') {
2397
- this.resetValueAndState();
2398
- return;
2399
- }
2400
- let dates = this.parseInputString(newValue);
2401
- // Single dates - acceptera inte flera datum inskrivna
2402
- if (!this.afDisableValidation &&
2403
- !this.afMultipleDates &&
2404
- dates.length > 1) {
2405
- this.showWrongFormatError = true;
2406
- this.afOnValidationChange.emit({
2407
- isValid: false,
2408
- validationText: this.afValidationWrongFormat
2409
- });
2410
- return;
2411
- }
2412
- // Multiple dates - filtrera bort dubbletter
2413
- if (!this.afDisableValidation && this.afMultipleDates) {
2414
- const uniqueDates = this.removeDuplicateDates(dates);
2415
- if (uniqueDates.length !== dates.length) {
2416
- dates = uniqueDates;
2417
- this.userInput = this.datesToInputString(dates);
2418
- }
2419
- }
2420
- this.setValue(dates);
2421
- if (!this.afDisableValidation) {
2422
- this.validateInputAndShowErrors(dates);
2423
- }
2424
- this.afOnDateChange.emit(dates);
2425
- }
2426
- parseCalendar(evt) {
2427
- if (!(evt === null || evt === void 0 ? void 0 : evt.detail))
2428
- return;
2429
- if (!this.afDisableValidation) {
2430
- this.showWrongFormatError = false;
2431
- this.showDisabledDateError = false;
2432
- }
2433
- this.userInput = '';
2434
- this.setValue(evt.detail);
2435
- this.afOnDateChangeRawText.emit(this.inputValue);
2436
- if (this.afCloseOnSelect) {
2437
- this.toggleCalendar();
2438
- this.focusOnCalendarButton();
2439
- }
2440
- this.afOnDateChange.emit(this.afSelectedDates);
2441
- }
2442
- /*
2443
-
2444
- 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.
2445
-
2446
- */
2447
- parseDateString(s) {
2448
- const raw = s.trim().replace(/[./]/g, '-');
2449
- // 1) yyyy-MM-dd
2450
- if (/^\d{4}-\d{2}-\d{2}$/.test(raw)) {
2451
- const d = parse(raw, 'yyyy-MM-dd', new Date());
2452
- return index.isValid(d) ? d : new Date(NaN);
2453
- }
2454
- // 2) yyyymmdd
2455
- if (/^\d{8}$/.test(raw)) {
2456
- const yyyy = raw.slice(0, 4);
2457
- const mm = raw.slice(4, 6);
2458
- const dd = raw.slice(6, 8);
2459
- const d = parse(`${yyyy}-${mm}-${dd}`, 'yyyy-MM-dd', new Date());
2460
- return index.isValid(d) ? d : new Date(NaN);
2461
- }
2462
- // 3) yymmdd (map to full year using the previous futureYears logic)
2463
- if (/^\d{6}$/.test(raw)) {
2464
- const yy = raw.slice(0, 2);
2465
- const mm = raw.slice(2, 4);
2466
- const dd = raw.slice(4, 6);
2467
- const yyyy = this.getFullYear(yy);
2468
- const d = parse(`${yyyy}-${mm}-${dd}`, 'yyyy-MM-dd', new Date());
2469
- return index.isValid(d) ? d : new Date(NaN);
2470
- }
2471
- // Everything else is invalid (so "1" and "25" will now be "Fel format")
2472
- return new Date(NaN);
2473
- }
2474
- getFullYear(s) {
2475
- if (s.length === 4)
2476
- return s;
2477
- const y = new Date().getFullYear().toString();
2478
- return parseInt(s) > parseInt(y.slice(-2)) + this.futureYears
2479
- ? parseInt(y.slice(0, -2)) - 1 + s
2480
- : y.slice(0, -2) + s;
2481
- }
2482
- isDateSelectable(date) {
2483
- if (this.afMinDate && this.isBefore(date, this.afMinDate))
2484
- return false;
2485
- if (this.afMaxDate && this.isAfter(date, this.afMaxDate))
2486
- return false;
2487
- return true;
2488
- }
2489
- isBefore(a, b) {
2490
- return index$3.isBefore(this.dateWithoutTime(a), this.dateWithoutTime(b));
2491
- }
2492
- isAfter(a, b) {
2493
- return index$3.isAfter(this.dateWithoutTime(a), this.dateWithoutTime(b));
2494
- }
2495
- dateWithoutTime(date) {
2496
- return new Date(date.getFullYear(), date.getMonth(), date.getDate());
2497
- }
2498
- hasBuiltInValidationError() {
2499
- return this.showWrongFormatError || this.showDisabledDateError;
2500
- }
2501
- hasCustomValidationError() {
2502
- return (this.afValidation &&
2503
- this.afValidation !== typographyVariation_enum.CalendarDatepickerValidation.NEUTRAL);
2504
- }
2505
- getErrorText() {
2506
- if (this.hasBuiltInValidationError()) {
2507
- return this.showWrongFormatError
2508
- ? this.afValidationWrongFormat
2509
- : this.afValidationDisabledDate;
2510
- }
2511
- if (this.hasCustomValidationError()) {
2512
- return this.afValidationText;
2513
- }
2514
- }
2515
- get inputValue() {
2516
- if (this.userInput !== '') {
2517
- return this.userInput;
2518
- }
2519
- // otherwise format your real selected dates
2520
- const sorted = this.afSelectedDates
2521
- .slice()
2522
- .sort((a, b) => (this.isBefore(a, b) ? -1 : 1));
2523
- return this.datesToInputString(sorted);
2524
- }
2525
- datesToInputString(dates) {
2526
- return dates.every((date) => date instanceof Date && !isNaN(date.getTime()))
2527
- ? dates
2528
- .map((date) => date.toLocaleDateString(text._t.locale))
2529
- .flatMap((date, index, all) => {
2530
- const isLast = index == all.length - 1;
2531
- const isFirst = index === 0;
2532
- if (isFirst) {
2533
- return date;
2534
- }
2535
- else if (isLast) {
2536
- return [` ${text._t.and} `, date];
2537
- }
2538
- else {
2539
- return [', ', date];
2540
- }
2541
- })
2542
- .join('')
2543
- : '';
2544
- }
2545
- get getSelectedDates() {
2546
- if (!this.afDisableValidation && this.hasBuiltInValidationError()) {
2547
- return [];
2548
- }
2549
- return this.afSelectedDates;
2550
- }
2551
- render() {
2552
- return (index$2.h(index$2.Host, { key: 'e6dcf21e94a0cf58081b2cc351291a9489eadcb6', tabindex: -1 }, index$2.h("div", { key: '4040e430dd3c55e9ed0a0e6ed5aa69dea906e7c3', class: Object.assign({ 'digi-calendar-datepicker': true }, this.cssModifiers), id: `${this.afId}-datepicker` }, index$2.h("div", { key: '823f9480cb8a77c1e3cecdc1f3982e426ab2e658', class: "digi-calendar-datepicker__input-field" }, index$2.h("digi-form-input", { key: '454ca3d0a8d489826891da25bba8d9e0359c1df0', ref: (el) => (this._input = el), class: 'digi-calendar-datepicker__input-component', afLabel: this.afLabel, afLabelDescription: this.afLabelDescription, afName: this.afName, afValue: this.inputValue, afValidation: this.hasBuiltInValidationError()
2553
- ? formInputVariation_enum.FormInputValidation.ERROR
2554
- : this.afValidation, afValidationText: this.getErrorText(), afId: this.afId, afAriaDescribedby: `${this.afId}--validation-message`, afRequired: this.afRequired, afRequiredText: this.afRequiredText, onAfOnChange: (evt) => {
2555
- evt.stopImmediatePropagation();
2556
- this.parseInput(evt);
2557
- }, onAfOnBlur: (evt) => {
2558
- evt.stopImmediatePropagation();
2559
- this.afOnDateChangeRawText.emit(this.inputValue);
2560
- }, onKeyDown: (e) => {
2561
- // Focus trap: Catch backwards tab from input field and direct it to date button.
2562
- if (!this.showCalendar || e.key !== 'Tab' || !e.shiftKey)
2563
- return;
2564
- if (e.target.tagName !== 'INPUT')
2565
- return;
2566
- e.preventDefault();
2567
- const focusableDateButton = this.hostElement.querySelector('.digi-calendar__date[tabindex="0"]');
2568
- focusableDateButton === null || focusableDateButton === void 0 ? void 0 : focusableDateButton.focus();
2569
- } }, index$2.h("button", { key: '0ea8d3a9092c41f96a0cf24a2cdc4aa764e40bce', id: this.afId + '-button', class: "digi-calendar-datepicker__input-button", slot: "button", "aria-label": this.showCalendar
2570
- ? this.afCloseCalendarAriaLabel
2571
- : this.afOpenCalendarAriaLabel, "aria-controls": "calendar-popup", "aria-expanded": this.showCalendar ? 'true' : 'false', onClick: () => this.toggleCalendar(), type: "button" }, index$2.h("digi-icon-calendar-alt", { key: '31ceefc7f2be65159840b1ba6d998a71ba0c5543', class: "digi-calendar-datepicker__button-icon", slot: "icon" })))), index$2.h("div", { key: 'f8105569c6065a353300f87d1eabd88a10227081', class: "digi-calendar-datepicker__calendar", id: "calendar-popup" }, index$2.h("p", { key: 'b7e3556711de8ddb43a17874dada58193341ffcc', role: "alert", class: "digi-calendar-datepicker__sr-instructions" }, this.showCalendar
2572
- ? `${text._t.calendar.screenReaderInstructions}${this.screenReaderUpdateTrigger ? '\u200B' : ''}`
2573
- : ''), index$2.h("digi-calendar", { key: '55286f75c9ff74bb5f11a5098d06aac6f5120017', afActive: this.showCalendar, afShowWeekNumber: this.afShowWeekNumber, afMultipleDates: this.afMultipleDates, afYearSelect: this.afYearSelect, afSelectedDates: this.getSelectedDates, afMinDate: this.afMinDate, afMaxDate: this.afMaxDate, "aria-hidden": !this.showCalendar, afOpenCalendarTo: this.afOpenCalendarTo, onAfOnDateSelectedChange: (evt) => {
2574
- evt.stopImmediatePropagation();
2575
- this.parseCalendar(evt);
2576
- }, onKeyDown: (e) => {
2577
- // Focus trap: Catch forward tab from last focusable element in calendar and direct it to the input.
2578
- if (!this.showCalendar || e.key !== 'Tab' || e.shiftKey)
2579
- return;
2580
- if (!e.target.classList.contains('digi-calendar__date'))
2581
- return;
2582
- e.preventDefault();
2583
- this.focusOnCalendarInput();
2584
- } })), this.afCloseOnSelect && !this.afMultipleDates && (index$2.h("div", { key: 'f3d56c38d789cb0874ef1510e9ddd3e618255a76', class: "digi-calendar-datepicker__selected-date-alert", role: this.errorMessageIsAlert ? 'alert' : null }, this.afSelectedDates.length > 0
2585
- ? `${text._t.calendar.datepicker.selectedDate}: ${this.datesToInputString(this.afSelectedDates)}`
2586
- : '')))));
2587
- }
2588
- get hostElement() { return index$2.getElement(this); }
2589
- static get watchers() { return {
2590
- "afDisableValidation": ["afDisableValidationChangeHandler"],
2591
- "afSelectedDates": ["afSelectedDatesChangeHandler"],
2592
- "value": ["valueChangeHandler"],
2593
- "afMinDate": ["afMinDateChangeHandler"],
2594
- "afMaxDate": ["afMaxDateChangeHandler"],
2595
- "afMultipleDates": ["afMultipleDatesChangeHandler"]
2596
- }; }
2597
- };
2598
- CalendarDatepicker.style = DigiCalendarDatepickerStyle0;
2599
-
2600
- exports.digi_calendar_datepicker = CalendarDatepicker;