@designsystem-se/af 34.2.1-beta.2 → 34.2.1-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (144) hide show
  1. package/components/digi-bar-chart.js +4 -4
  2. package/components/digi-form-input-search.js +1 -1
  3. package/dist/cjs/digi-arbetsformedlingen.cjs.js +1 -1
  4. package/dist/cjs/digi-bar-chart.cjs.entry.js +4 -4
  5. package/dist/cjs/digi-button_10.cjs.entry.js +643 -0
  6. package/dist/cjs/{digi-calendar_16.cjs.entry.js → digi-calendar-datepicker.cjs.entry.js} +48 -1271
  7. package/dist/cjs/digi-calendar-week-view.cjs.entry.js +51 -50
  8. package/dist/cjs/digi-calendar_2.cjs.entry.js +478 -0
  9. package/dist/cjs/digi-code-block_3.cjs.entry.js +5 -4
  10. package/dist/cjs/digi-dialog.cjs.entry.js +5 -4
  11. package/dist/cjs/digi-footer.cjs.entry.js +5 -4
  12. package/dist/cjs/digi-form-error-list.cjs.entry.js +5 -4
  13. package/dist/cjs/digi-form-file-upload.cjs.entry.js +10 -9
  14. package/dist/cjs/digi-form-receipt.cjs.entry.js +5 -4
  15. package/dist/cjs/digi-form-select-filter.cjs.entry.js +6 -5
  16. package/dist/cjs/digi-form-select_2.cjs.entry.js +176 -0
  17. package/dist/cjs/digi-header-navigation.cjs.entry.js +5 -4
  18. package/dist/cjs/digi-header.cjs.entry.js +5 -4
  19. package/dist/cjs/digi-icon-chevron-left.cjs.entry.js +30 -0
  20. package/dist/cjs/digi-icon-chevron-right.cjs.entry.js +30 -0
  21. package/dist/cjs/digi-navigation-pagination.cjs.entry.js +5 -4
  22. package/dist/cjs/digi-notification-alert.cjs.entry.js +5 -4
  23. package/dist/cjs/digi-notification-error-page.cjs.entry.js +5 -4
  24. package/dist/cjs/digi-tools-feedback.cjs.entry.js +5 -4
  25. package/dist/cjs/digi-util-keydown-handler.cjs.entry.js +83 -0
  26. package/dist/cjs/digi-util-mutation-observer.cjs.entry.js +64 -0
  27. package/dist/cjs/{form-validation-message-variation.enum-c5ec3e2d.js → form-file-upload-variation.enum-634cfae8.js} +0 -7
  28. package/dist/cjs/form-input-variation.enum-d8228d73.js +67 -0
  29. package/dist/cjs/form-select-variation.enum-528c1bf0.js +16 -0
  30. package/dist/cjs/form-validation-message-variation.enum-855ae0be.js +8 -0
  31. package/dist/cjs/index-81fc5a97.js +28 -12
  32. package/dist/cjs/{index-acb7b350.js → index-ac8e01b4.js} +19 -189
  33. package/dist/cjs/index-cad91a90.js +66 -0
  34. package/dist/cjs/index-e8333bcc.js +174 -0
  35. package/dist/cjs/index.cjs.js +55 -54
  36. package/dist/cjs/loader.cjs.js +1 -1
  37. package/dist/cjs/{typography-variation.enum-2cf77231.js → typography-variation.enum-d6a04b47.js} +0 -43
  38. package/dist/collection/components/_chart/bar-chart/bar-chart.js +4 -4
  39. package/dist/collection/components/_form/form-input-search/form-input-search.css +4 -0
  40. package/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.esm.js +1 -1
  41. package/dist/digi-arbetsformedlingen/index.esm.js +1 -1
  42. package/dist/digi-arbetsformedlingen/p-1aa24ef1.entry.js +1 -0
  43. package/dist/digi-arbetsformedlingen/p-1f3345e9.js +1 -0
  44. package/dist/digi-arbetsformedlingen/p-25854117.js +1 -0
  45. package/dist/digi-arbetsformedlingen/p-3874db62.entry.js +1 -0
  46. package/dist/digi-arbetsformedlingen/p-4ad84e73.entry.js +1 -0
  47. package/dist/digi-arbetsformedlingen/p-4e2796b4.entry.js +1 -0
  48. package/dist/digi-arbetsformedlingen/p-56ed4535.entry.js +1 -0
  49. package/dist/digi-arbetsformedlingen/p-6786da6f.entry.js +1 -0
  50. package/dist/digi-arbetsformedlingen/p-6f59033a.entry.js +1 -0
  51. package/dist/digi-arbetsformedlingen/p-79152be3.entry.js +1 -0
  52. package/dist/digi-arbetsformedlingen/p-7933b555.js +1 -0
  53. package/dist/digi-arbetsformedlingen/p-7aacd45f.js +1 -0
  54. package/dist/digi-arbetsformedlingen/p-7c138f6f.entry.js +1 -0
  55. package/dist/digi-arbetsformedlingen/p-831ee484.entry.js +1 -0
  56. package/dist/digi-arbetsformedlingen/p-84aa5804.entry.js +1 -0
  57. package/dist/digi-arbetsformedlingen/p-867a8b3e.entry.js +1 -0
  58. package/dist/digi-arbetsformedlingen/p-881168f2.entry.js +1 -0
  59. package/dist/digi-arbetsformedlingen/p-905ccb30.js +1 -0
  60. package/dist/digi-arbetsformedlingen/p-91e65c6d.entry.js +1 -0
  61. package/dist/digi-arbetsformedlingen/p-9f8189c0.entry.js +1 -0
  62. package/dist/digi-arbetsformedlingen/p-9f86edca.entry.js +1 -0
  63. package/dist/digi-arbetsformedlingen/p-a1822414.entry.js +1 -0
  64. package/dist/digi-arbetsformedlingen/p-ae74ccf4.entry.js +1 -0
  65. package/dist/digi-arbetsformedlingen/p-bd5122b0.js +1 -0
  66. package/dist/digi-arbetsformedlingen/p-c7949525.js +1 -0
  67. package/dist/digi-arbetsformedlingen/p-ce3531cb.entry.js +1 -0
  68. package/dist/digi-arbetsformedlingen/p-d41834f2.entry.js +1 -0
  69. package/dist/digi-arbetsformedlingen/p-d612e424.entry.js +1 -0
  70. package/dist/digi-arbetsformedlingen/p-e5443d9d.entry.js +1 -0
  71. package/dist/digi-arbetsformedlingen/p-f447b984.js +1 -0
  72. package/dist/digi-arbetsformedlingen/p-fee0e9e0.entry.js +1 -0
  73. package/dist/esm/digi-arbetsformedlingen.js +1 -1
  74. package/dist/esm/digi-bar-chart.entry.js +4 -4
  75. package/dist/esm/digi-button_10.entry.js +630 -0
  76. package/dist/esm/{digi-calendar_16.entry.js → digi-calendar-datepicker.entry.js} +11 -1219
  77. package/dist/esm/digi-calendar-week-view.entry.js +2 -1
  78. package/dist/esm/digi-calendar_2.entry.js +473 -0
  79. package/dist/esm/digi-code-block_3.entry.js +5 -4
  80. package/dist/esm/digi-dialog.entry.js +5 -4
  81. package/dist/esm/digi-footer.entry.js +5 -4
  82. package/dist/esm/digi-form-error-list.entry.js +5 -4
  83. package/dist/esm/digi-form-file-upload.entry.js +2 -1
  84. package/dist/esm/digi-form-receipt.entry.js +5 -4
  85. package/dist/esm/digi-form-select-filter.entry.js +5 -4
  86. package/dist/esm/digi-form-select_2.entry.js +171 -0
  87. package/dist/esm/digi-header-navigation.entry.js +5 -4
  88. package/dist/esm/digi-header.entry.js +5 -4
  89. package/dist/esm/digi-icon-chevron-left.entry.js +26 -0
  90. package/dist/esm/digi-icon-chevron-right.entry.js +26 -0
  91. package/dist/esm/digi-navigation-pagination.entry.js +5 -4
  92. package/dist/esm/digi-notification-alert.entry.js +5 -4
  93. package/dist/esm/digi-notification-error-page.entry.js +5 -4
  94. package/dist/esm/digi-tools-feedback.entry.js +5 -4
  95. package/dist/esm/digi-util-keydown-handler.entry.js +79 -0
  96. package/dist/esm/digi-util-mutation-observer.entry.js +60 -0
  97. package/dist/esm/{form-validation-message-variation.enum-f7835fc5.js → form-file-upload-variation.enum-9c49ec5e.js} +1 -8
  98. package/dist/esm/form-input-variation.enum-b78808ba.js +67 -0
  99. package/dist/esm/form-select-variation.enum-f2f6098d.js +16 -0
  100. package/dist/esm/form-validation-message-variation.enum-bcef8a9d.js +8 -0
  101. package/dist/esm/{index-dc6b83f7.js → index-2fce392f.js} +3 -170
  102. package/dist/esm/index-5b6c95c6.js +63 -0
  103. package/dist/esm/index-8685f88d.js +170 -0
  104. package/dist/esm/index-bfea2cc5.js +28 -12
  105. package/dist/esm/index.js +5 -4
  106. package/dist/esm/loader.js +1 -1
  107. package/dist/esm/{typography-variation.enum-259c1751.js → typography-variation.enum-0f0f74d5.js} +1 -44
  108. package/hydrate/index.js +5 -5
  109. package/hydrate/index.mjs +5 -5
  110. package/package.json +1 -1
  111. package/dist/cjs/button-type.enum-406723db.js +0 -8
  112. package/dist/cjs/digi-button.cjs.entry.js +0 -130
  113. package/dist/cjs/digi-form-input-search.cjs.entry.js +0 -143
  114. package/dist/cjs/digi-icon-search.cjs.entry.js +0 -30
  115. package/dist/cjs/form-input-type.enum-daf781ba.js +0 -32
  116. package/dist/digi-arbetsformedlingen/p-0ae59327.entry.js +0 -1
  117. package/dist/digi-arbetsformedlingen/p-1158702e.entry.js +0 -1
  118. package/dist/digi-arbetsformedlingen/p-133bdba4.entry.js +0 -1
  119. package/dist/digi-arbetsformedlingen/p-2496eee3.entry.js +0 -1
  120. package/dist/digi-arbetsformedlingen/p-3887bb40.js +0 -1
  121. package/dist/digi-arbetsformedlingen/p-403a97f3.entry.js +0 -1
  122. package/dist/digi-arbetsformedlingen/p-4df790de.entry.js +0 -1
  123. package/dist/digi-arbetsformedlingen/p-62534ddc.entry.js +0 -1
  124. package/dist/digi-arbetsformedlingen/p-6f33ef76.entry.js +0 -1
  125. package/dist/digi-arbetsformedlingen/p-8798c901.entry.js +0 -1
  126. package/dist/digi-arbetsformedlingen/p-9092f712.entry.js +0 -1
  127. package/dist/digi-arbetsformedlingen/p-9f124b4f.entry.js +0 -1
  128. package/dist/digi-arbetsformedlingen/p-a105d9fe.js +0 -1
  129. package/dist/digi-arbetsformedlingen/p-a1bffbc3.entry.js +0 -1
  130. package/dist/digi-arbetsformedlingen/p-bd578fbb.entry.js +0 -1
  131. package/dist/digi-arbetsformedlingen/p-c15ba44e.js +0 -1
  132. package/dist/digi-arbetsformedlingen/p-c2d45a0d.entry.js +0 -1
  133. package/dist/digi-arbetsformedlingen/p-cf75cbcd.entry.js +0 -1
  134. package/dist/digi-arbetsformedlingen/p-d4a341f4.js +0 -1
  135. package/dist/digi-arbetsformedlingen/p-dc0da84c.entry.js +0 -1
  136. package/dist/digi-arbetsformedlingen/p-df292ae0.entry.js +0 -1
  137. package/dist/digi-arbetsformedlingen/p-e292ae3b.entry.js +0 -1
  138. package/dist/digi-arbetsformedlingen/p-e5ca499a.entry.js +0 -1
  139. package/dist/digi-arbetsformedlingen/p-ee9589e6.js +0 -1
  140. package/dist/esm/button-type.enum-5250ae0b.js +0 -8
  141. package/dist/esm/digi-button.entry.js +0 -126
  142. package/dist/esm/digi-form-input-search.entry.js +0 -139
  143. package/dist/esm/digi-icon-search.entry.js +0 -26
  144. package/dist/esm/form-input-type.enum-62a97d5d.js +0 -32
@@ -2,18 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index$1 = require('./index-81fc5a97.js');
6
- const randomIdGenerator_util = require('./randomIdGenerator.util-e7f4b6de.js');
7
- const detectClickOutside_util = require('./detectClickOutside.util-3e764eb3.js');
8
- const detectFocusOutside_util = require('./detectFocusOutside.util-03c62976.js');
9
- const logger_util = require('./logger.util-fdafc086.js');
5
+ const index$2 = require('./index-81fc5a97.js');
10
6
  const text = require('./text-3157012b.js');
11
- const index = require('./index-acb7b350.js');
12
7
  require('./badge-notification-shape.enum-ff802554.js');
13
- const typographyVariation_enum = require('./typography-variation.enum-2cf77231.js');
8
+ const typographyVariation_enum = require('./typography-variation.enum-d6a04b47.js');
14
9
  require('./badge-status-variation.enum-0a5adc21.js');
15
10
  require('./button-size.enum-1fd86b9e.js');
16
- require('./button-type.enum-406723db.js');
11
+ const formInputVariation_enum = require('./form-input-variation.enum-d8228d73.js');
17
12
  require('./button-variation.enum-bc521499.js');
18
13
  require('./calendar-week-view-heading-level.enum-fd0c841b.js');
19
14
  require('./bar-chart-variation.enum-a4e866b6.js');
@@ -24,9 +19,10 @@ require('./expandable-faq-item-variation.enum-89427195.js');
24
19
  require('./expandable-faq-variation.enum-af923f49.js');
25
20
  require('./footer-card-variation.enum-99555edc.js');
26
21
  require('./form-checkbox-variation.enum-d2ca879e.js');
27
- const formValidationMessageVariation_enum = require('./form-validation-message-variation.enum-c5ec3e2d.js');
28
- const formInputType_enum = require('./form-input-type.enum-daf781ba.js');
22
+ require('./form-file-upload-variation.enum-634cfae8.js');
23
+ require('./form-select-variation.enum-528c1bf0.js');
29
24
  require('./form-textarea-variation.enum-9c90d40f.js');
25
+ require('./form-validation-message-variation.enum-855ae0be.js');
30
26
  require('./info-card-multi-type.enum-14746572.js');
31
27
  require('./info-card-variation.enum-64cef637.js');
32
28
  require('./layout-container-max-width.enum-7e637f44.js');
@@ -56,7 +52,11 @@ require('./typography-heading-jumbo-variation.enum-8677e099.js');
56
52
  require('./typography-meta-variation.enum-13ac3538.js');
57
53
  require('./typography-time-variation.enum-bce1d87e.js');
58
54
  require('./util-breakpoint-observer-breakpoints.enum-e96d3a84.js');
59
- const keyboardHandler_util = require('./keyboardHandler.util-d8600adb.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
60
  require('./detectClosest.util-85b3507b.js');
61
61
 
62
62
  function assign(target, dirtyObject) {
@@ -75,66 +75,6 @@ function assign(target, dirtyObject) {
75
75
  return target;
76
76
  }
77
77
 
78
- /**
79
- * @name isAfter
80
- * @category Common Helpers
81
- * @summary Is the first date after the second one?
82
- *
83
- * @description
84
- * Is the first date after the second one?
85
- *
86
- * ### v2.0.0 breaking changes:
87
- *
88
- * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
89
- *
90
- * @param {Date|Number} date - the date that should be after the other one to return true
91
- * @param {Date|Number} dateToCompare - the date to compare with
92
- * @returns {Boolean} the first date is after the second date
93
- * @throws {TypeError} 2 arguments required
94
- *
95
- * @example
96
- * // Is 10 July 1989 after 11 February 1987?
97
- * var result = isAfter(new Date(1989, 6, 10), new Date(1987, 1, 11))
98
- * //=> true
99
- */
100
-
101
- function isAfter(dirtyDate, dirtyDateToCompare) {
102
- index.requiredArgs(2, arguments);
103
- var date = index.toDate(dirtyDate);
104
- var dateToCompare = index.toDate(dirtyDateToCompare);
105
- return date.getTime() > dateToCompare.getTime();
106
- }
107
-
108
- /**
109
- * @name isBefore
110
- * @category Common Helpers
111
- * @summary Is the first date before the second one?
112
- *
113
- * @description
114
- * Is the first date before the second one?
115
- *
116
- * ### v2.0.0 breaking changes:
117
- *
118
- * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
119
- *
120
- * @param {Date|Number} date - the date that should be before the other one to return true
121
- * @param {Date|Number} dateToCompare - the date to compare with
122
- * @returns {Boolean} the first date is before the second date
123
- * @throws {TypeError} 2 arguments required
124
- *
125
- * @example
126
- * // Is 10 July 1989 before 11 February 1987?
127
- * var result = isBefore(new Date(1989, 6, 10), new Date(1987, 1, 11))
128
- * //=> false
129
- */
130
-
131
- function isBefore(dirtyDate, dirtyDateToCompare) {
132
- index.requiredArgs(2, arguments);
133
- var date = index.toDate(dirtyDate);
134
- var dateToCompare = index.toDate(dirtyDateToCompare);
135
- return date.getTime() < dateToCompare.getTime();
136
- }
137
-
138
78
  // See issue: https://github.com/date-fns/date-fns/issues/376
139
79
 
140
80
  function setUTCDay(dirtyDate, dirtyDay, dirtyOptions) {
@@ -142,15 +82,15 @@ function setUTCDay(dirtyDate, dirtyDay, dirtyOptions) {
142
82
  var options = dirtyOptions || {};
143
83
  var locale = options.locale;
144
84
  var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn;
145
- var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : index.toInteger(localeWeekStartsOn);
146
- var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : index.toInteger(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
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
147
87
 
148
88
  if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
149
89
  throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
150
90
  }
151
91
 
152
92
  var date = index.toDate(dirtyDate);
153
- var day = index.toInteger(dirtyDay);
93
+ var day = index$1.toInteger(dirtyDay);
154
94
  var currentDay = date.getUTCDay();
155
95
  var remainder = day % 7;
156
96
  var dayIndex = (remainder + 7) % 7;
@@ -163,7 +103,7 @@ function setUTCDay(dirtyDate, dirtyDay, dirtyOptions) {
163
103
 
164
104
  function setUTCISODay(dirtyDate, dirtyDay) {
165
105
  index.requiredArgs(2, arguments);
166
- var day = index.toInteger(dirtyDay);
106
+ var day = index$1.toInteger(dirtyDay);
167
107
 
168
108
  if (day % 7 === 0) {
169
109
  day = day - 7;
@@ -184,8 +124,8 @@ function setUTCISODay(dirtyDate, dirtyDay) {
184
124
  function setUTCISOWeek(dirtyDate, dirtyISOWeek) {
185
125
  index.requiredArgs(2, arguments);
186
126
  var date = index.toDate(dirtyDate);
187
- var isoWeek = index.toInteger(dirtyISOWeek);
188
- var diff = index.getUTCISOWeek(date) - isoWeek;
127
+ var isoWeek = index$1.toInteger(dirtyISOWeek);
128
+ var diff = index$1.getUTCISOWeek(date) - isoWeek;
189
129
  date.setUTCDate(date.getUTCDate() - diff * 7);
190
130
  return date;
191
131
  }
@@ -195,8 +135,8 @@ function setUTCISOWeek(dirtyDate, dirtyISOWeek) {
195
135
  function setUTCWeek(dirtyDate, dirtyWeek, options) {
196
136
  index.requiredArgs(2, arguments);
197
137
  var date = index.toDate(dirtyDate);
198
- var week = index.toInteger(dirtyWeek);
199
- var diff = index.getUTCWeek(date, options) - week;
138
+ var week = index$1.toInteger(dirtyWeek);
139
+ var diff = index$1.getUTCWeek(date, options) - week;
200
140
  date.setUTCDate(date.getUTCDate() - diff * 7);
201
141
  return date;
202
142
  }
@@ -549,19 +489,19 @@ var parsers = {
549
489
  return value.isTwoDigitYear || value.year > 0;
550
490
  },
551
491
  set: function (date, flags, value, options) {
552
- var currentYear = index.getUTCWeekYear(date, options);
492
+ var currentYear = index$1.getUTCWeekYear(date, options);
553
493
 
554
494
  if (value.isTwoDigitYear) {
555
495
  var normalizedTwoDigitYear = normalizeTwoDigitYear(value.year, currentYear);
556
496
  date.setUTCFullYear(normalizedTwoDigitYear, 0, options.firstWeekContainsDate);
557
497
  date.setUTCHours(0, 0, 0, 0);
558
- return index.startOfUTCWeek(date, options);
498
+ return index$1.startOfUTCWeek(date, options);
559
499
  }
560
500
 
561
501
  var year = !('era' in flags) || flags.era === 1 ? value.year : 1 - value.year;
562
502
  date.setUTCFullYear(year, 0, options.firstWeekContainsDate);
563
503
  date.setUTCHours(0, 0, 0, 0);
564
- return index.startOfUTCWeek(date, options);
504
+ return index$1.startOfUTCWeek(date, options);
565
505
  },
566
506
  incompatibleTokens: ['y', 'R', 'u', 'Q', 'q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T']
567
507
  },
@@ -579,7 +519,7 @@ var parsers = {
579
519
  var firstWeekOfYear = new Date(0);
580
520
  firstWeekOfYear.setUTCFullYear(value, 0, 4);
581
521
  firstWeekOfYear.setUTCHours(0, 0, 0, 0);
582
- return index.startOfUTCISOWeek(firstWeekOfYear);
522
+ return index$1.startOfUTCISOWeek(firstWeekOfYear);
583
523
  },
584
524
  incompatibleTokens: ['G', 'y', 'Y', 'u', 'Q', 'q', 'M', 'L', 'w', 'd', 'D', 'e', 'c', 't', 'T']
585
525
  },
@@ -871,7 +811,7 @@ var parsers = {
871
811
  return value >= 1 && value <= 53;
872
812
  },
873
813
  set: function (date, _flags, value, options) {
874
- return index.startOfUTCWeek(setUTCWeek(date, value, options), options);
814
+ return index$1.startOfUTCWeek(setUTCWeek(date, value, options), options);
875
815
  },
876
816
  incompatibleTokens: ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T']
877
817
  },
@@ -896,7 +836,7 @@ var parsers = {
896
836
  return value >= 1 && value <= 53;
897
837
  },
898
838
  set: function (date, _flags, value, options) {
899
- return index.startOfUTCISOWeek(setUTCISOWeek(date, value, options), options);
839
+ return index$1.startOfUTCISOWeek(setUTCISOWeek(date, value, options), options);
900
840
  },
901
841
  incompatibleTokens: ['y', 'Y', 'u', 'q', 'Q', 'M', 'L', 'w', 'd', 'D', 'e', 'c', 't', 'T']
902
842
  },
@@ -2042,23 +1982,23 @@ function parse(dirtyDateString, dirtyFormatString, dirtyReferenceDate, dirtyOpti
2042
1982
  var dateString = String(dirtyDateString);
2043
1983
  var formatString = String(dirtyFormatString);
2044
1984
  var options = dirtyOptions || {};
2045
- var locale = options.locale || index.defaultLocale;
1985
+ var locale = options.locale || index$1.defaultLocale;
2046
1986
 
2047
1987
  if (!locale.match) {
2048
1988
  throw new RangeError('locale must contain match property');
2049
1989
  }
2050
1990
 
2051
1991
  var localeFirstWeekContainsDate = locale.options && locale.options.firstWeekContainsDate;
2052
- var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : index.toInteger(localeFirstWeekContainsDate);
2053
- var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : index.toInteger(options.firstWeekContainsDate); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN
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
2054
1994
 
2055
1995
  if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
2056
1996
  throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');
2057
1997
  }
2058
1998
 
2059
1999
  var localeWeekStartsOn = locale.options && locale.options.weekStartsOn;
2060
- var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : index.toInteger(localeWeekStartsOn);
2061
- var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : index.toInteger(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
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
2062
2002
 
2063
2003
  if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
2064
2004
  throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
@@ -2089,7 +2029,7 @@ function parse(dirtyDateString, dirtyFormatString, dirtyReferenceDate, dirtyOpti
2089
2029
  var firstCharacter = substring[0];
2090
2030
 
2091
2031
  if (firstCharacter === 'p' || firstCharacter === 'P') {
2092
- var longFormatter = index.longFormatters[firstCharacter];
2032
+ var longFormatter = index$1.longFormatters[firstCharacter];
2093
2033
  return longFormatter(substring, locale.formatLong, subFnOptions);
2094
2034
  }
2095
2035
 
@@ -2100,12 +2040,12 @@ function parse(dirtyDateString, dirtyFormatString, dirtyReferenceDate, dirtyOpti
2100
2040
  for (i = 0; i < tokens.length; i++) {
2101
2041
  var token = tokens[i];
2102
2042
 
2103
- if (!options.useAdditionalWeekYearTokens && index.isProtectedWeekYearToken(token)) {
2104
- index.throwProtectedError(token, formatString, dirtyDateString);
2043
+ if (!options.useAdditionalWeekYearTokens && index$1.isProtectedWeekYearToken(token)) {
2044
+ index$1.throwProtectedError(token, formatString, dirtyDateString);
2105
2045
  }
2106
2046
 
2107
- if (!options.useAdditionalDayOfYearTokens && index.isProtectedDayOfYearToken(token)) {
2108
- index.throwProtectedError(token, formatString, dirtyDateString);
2047
+ if (!options.useAdditionalDayOfYearTokens && index$1.isProtectedDayOfYearToken(token)) {
2048
+ index$1.throwProtectedError(token, formatString, dirtyDateString);
2109
2049
  }
2110
2050
 
2111
2051
  var firstCharacter = token[0];
@@ -2202,7 +2142,7 @@ function parse(dirtyDateString, dirtyFormatString, dirtyReferenceDate, dirtyOpti
2202
2142
  // See an issue about UTC functions: https://github.com/date-fns/date-fns/issues/37
2203
2143
 
2204
2144
 
2205
- var utcDate = index.subMilliseconds(date, index.getTimezoneOffsetInMilliseconds(date));
2145
+ var utcDate = index$1.subMilliseconds(date, index$1.getTimezoneOffsetInMilliseconds(date));
2206
2146
  var flags = {};
2207
2147
 
2208
2148
  for (i = 0; i < uniquePrioritySetters.length; i++) {
@@ -2240,453 +2180,13 @@ function cleanEscapedString(input) {
2240
2180
  return input.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp, "'");
2241
2181
  }
2242
2182
 
2243
- const calendarCss = ".sc-digi-calendar-h{--digi--calendar--display:inline-block;--digi--calendar--header--font-family:var(--digi--global--typography--font-family--default);--digi--calendar--header--font-weight:var(--digi--global--typography--font-weight--semibold);--digi--calendar--header--display:flex;--digi--calendar--header--align-items:center;--digi--calendar--header--justify-content:space-between;--digi--calendar--header--text-align:center;--digi--calendar--header--button--padding:var(--digi--gutter--medium) var(--digi--gutter--largest);--digi--calendar--header--button--background:transparent;--digi--calendar--header--button--box-shadow:none;--digi--calendar--header--button--background--hover:var(--digi--color--background--interactive--hover--secondary);--digi--calendar--table--border-spacing:0;--digi--calendar--table--border-collapse:collapse;--digi--calendar--table--font-family:var(--digi--global--typography--font-family--default);--digi--calendar--table--font-weight:var(--digi--global--typography--font-weight--semibold);--digi--calendar--table-header--padding:var(--digi--gutter--larger) 0;--digi--calendar--table-header--font-weight-normal:var(--digi--typography--body--font-weight--desktop);--digi--calendar--date--border-color:none;--digi--calendar--date--box-shadow:none;--digi--calendar--date--background-color:var(--digi--color--background--interactive--default--secondary);--digi--calendar--date--background-color--hover:var(--digi--color--background--interactive--hover--secondary);--digi--calendar--date--padding:var(--digi--gutter--large);--digi--calendar--date--color:var(--digi--color--text--primary);--digi--calendar--date--focused--background-color:var(--digi--color--background--interactive--hover--secondary);--digi--calendar--date--today--circle-border:2px solid var(--digi--color--marking--indication--secondary);--digi--calendar--date--today--circle-margin:10%;--digi--calendar--date--selected--color:var(--digi--color--text--interactive--secondary);--digi--calendar--date--selected--background-color:var(--digi--color--background--interactive--selected--primary);--digi--calendar--date--not-selectable-strike--color:var(--digi--color--marking--indication--tertiary);--digi--calendar--week--font-style:italic;--digi--calendar--week--font-size:var(--digi--global--typography--font-size--small);--digi--calendar--week--border-color:var(--digi--color--divider--primary);--digi--calendar--week--border-width:var(--digi--border-width--primary)}.sc-digi-calendar-h .digi-calendar.sc-digi-calendar{display:var(--digi--calendar--display);background:var(--digi--calendar--header--button--background);padding:0px 1px 3px 1px;overflow:hidden;max-width:23.4375rem}.sc-digi-calendar-h .digi-calendar--hide.sc-digi-calendar{--digi--calendar--display:none}.sc-digi-calendar-h .digi-calendar__header.sc-digi-calendar{display:var(--digi--calendar--header--display);align-items:var(--digi--calendar--header--align-items);justify-content:var(--digi--calendar--header--justify-content);text-align:var(--digi--calendar--header--text-align);font-size:var(--digi--global--typography--font-size--base);font-family:var(--digi--calendar--header--font-family);font-weight:var(--digi--calendar--header--font-weight)}.sc-digi-calendar-h .digi-calendar__header--year-select.sc-digi-calendar{display:inherit;justify-content:center;margin:0 auto}.sc-digi-calendar-h .digi-calendar__header--year-select.sc-digi-calendar digi-form-select.sc-digi-calendar:first-child{margin-right:var(--digi--padding--smaller)}.sc-digi-calendar-h .digi-calendar__header--year-select.sc-digi-calendar digi-form-select.sc-digi-calendar:last-child{width:5rem}.sc-digi-calendar-h .digi-calendar__header--year-select.sc-digi-calendar digi-form-select.sc-digi-calendar select.sc-digi-calendar{padding-inline-end:2rem}.sc-digi-calendar-h .digi-calendar__header--month-step.sc-digi-calendar{flex:auto;display:inherit;align-items:inherit;justify-content:inherit}.sc-digi-calendar-h .digi-calendar__header--month-step.sc-digi-calendar .digi-calendar__month-select-name.sc-digi-calendar{padding-inline:var(--digi--padding--smaller)}.sc-digi-calendar-h .digi-calendar__header--month-step.sc-digi-calendar .digi-calendar__month-select-button.sc-digi-calendar{font-family:inherit;font-size:inherit;font-weight:inherit;color:var(--digi--calendar--date--color);display:flex;align-items:center;background:var(--digi--calendar--header--button--background);border:var(--digi--calendar--date--box-shadow);padding:var(--digi--calendar--header--button--padding)}.sc-digi-calendar-h .digi-calendar__header--month-step.sc-digi-calendar .digi-calendar__month-select-button.sc-digi-calendar:last-child{border-radius:0 4px 0 0}.sc-digi-calendar-h .digi-calendar__header--month-step.sc-digi-calendar .digi-calendar__month-select-button.sc-digi-calendar:first-child{border-radius:4px 0 0 0}.sc-digi-calendar-h .digi-calendar__header--month-step.sc-digi-calendar .digi-calendar__month-select-button.sc-digi-calendar:focus:not(.digi-calendar__date--not-selectable),.sc-digi-calendar-h .digi-calendar__header--month-step.sc-digi-calendar .digi-calendar__month-select-button.sc-digi-calendar:hover:not(.digi-calendar__date--not-selectable){--digi--calendar--header--button--background:var(\n --digi--calendar--header--button--background--hover\n );text-decoration:underline;cursor:pointer}.sc-digi-calendar-h .digi-calendar__header--month-step.sc-digi-calendar .digi-calendar__month-select-button.sc-digi-calendar:focus-visible{outline:2px solid black;outline-offset:-3px;box-shadow:0px 0px 0px 5px inset white}.sc-digi-calendar-h .digi-calendar__table.sc-digi-calendar{border-collapse:var(--digi--calendar--table--border-collapse);border-spacing:var(--digi--calendar--table--border-spacing);font-family:var(--digi--calendar--table--font-family);table-layout:fixed;margin-bottom:var(--digi--margin--medium)}.sc-digi-calendar-h .digi-calendar__table-header-week.sc-digi-calendar{font-style:italic;padding:var(--digi--calendar--table-header--padding);font-weight:var(--digi--calendar--table-header--font-weight-normal);width:50px}.sc-digi-calendar-h .digi-calendar__table-header.sc-digi-calendar{padding:var(--digi--calendar--table-header--padding);font-weight:var(--digi--calendar--table--font-weight);width:46px}.sc-digi-calendar-h .digi-calendar__td-week.sc-digi-calendar{border-right:var(--digi--calendar--week--border-width) solid var(--digi--calendar--week--border-color)}.sc-digi-calendar-h .digi-calendar__td.sc-digi-calendar{text-align:right}.sc-digi-calendar-h .digi-calendar__date--week-number.sc-digi-calendar{font-style:var(--digi--calendar--week--font-style);font-size:var(--digi--calendar--week--font-size);display:table-cell;text-align:center}.sc-digi-calendar-h .digi-calendar__date--week-number.sc-digi-calendar:hover{cursor:default}.sc-digi-calendar-h .digi-calendar__date.sc-digi-calendar{position:relative;padding:var(--digi--calendar--date--padding);color:var(--digi--calendar--date--color);background-color:var(--digi--calendar--date--background-color);border-color:var(--digi--calendar--date--border-color);border-radius:var(--digi--border-radius--secondary);font-family:inherit;font-size:inherit;font-weight:inherit;text-align:center;border:none;width:44px;height:44px}.sc-digi-calendar-h .digi-calendar__date--disabled.sc-digi-calendar{--digi--calendar--date--color:transparent;pointer-events:none}.sc-digi-calendar-h .digi-calendar__date--today.sc-digi-calendar{position:relative}.sc-digi-calendar-h .digi-calendar__date--today.sc-digi-calendar::after{display:block;content:\" \";position:absolute;top:var(--digi--calendar--date--today--circle-margin);bottom:var(--digi--calendar--date--today--circle-margin);left:var(--digi--calendar--date--today--circle-margin);right:var(--digi--calendar--date--today--circle-margin);border:var(--digi--calendar--date--today--circle-border);border-radius:50%}.sc-digi-calendar-h .digi-calendar__date.sc-digi-calendar:hover:not(.digi-calendar__date--not-selectable){--digi--calendar--date--box-shadow:var(\n --digi--calendar--date--box-shadow--hover\n );--digi--calendar--date--background-color:var(\n --digi--calendar--date--background-color--hover\n );cursor:pointer}.sc-digi-calendar-h .digi-calendar__date.sc-digi-calendar:hover:not(.digi-calendar__date--not-selectable) span.sc-digi-calendar{text-decoration:underline}.sc-digi-calendar-h .digi-calendar__date--selected.sc-digi-calendar{--digi--calendar--date--background-color:var(\n --digi--calendar--date--selected--background-color\n );--digi--calendar--date--color:var(\n --digi--calendar--date--selected--color\n )}.sc-digi-calendar-h .digi-calendar__date--selected.sc-digi-calendar:hover{--digi--calendar--date--background-color:var(\n --digi--calendar--date--selected--background-color\n )}.sc-digi-calendar-h .digi-calendar__date--selected.sc-digi-calendar:hover span.sc-digi-calendar{text-decoration:none}.sc-digi-calendar-h .digi-calendar__date--selected.sc-digi-calendar:focus-visible{outline:2px solid black;outline-offset:-3px;box-shadow:0px 0px 0px 5px inset white}.sc-digi-calendar-h .digi-calendar__date--not-selectable.sc-digi-calendar{cursor:not-allowed}.sc-digi-calendar-h .digi-calendar__date--not-selectable.sc-digi-calendar::after{display:block;content:\" \";width:0px;height:100%;border:1px solid #757575;transform:rotate(-45deg);position:absolute;top:0%;left:50%}.sc-digi-calendar-h .digi-calendar__date--focused.sc-digi-calendar:focus-visible:not(.digi-calendar__date--selected):not(.digi-calendar__date--not-selectable){--digi--calendar--date--background-color:var(\n --digi--calendar--date--focused--background-color\n );outline:2px solid black;outline-offset:-3px;box-shadow:0px 0px 0px 5px inset white}.sc-digi-calendar-s digi-form-label{border:0;clip:rect(1px, 1px, 1px, 1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}";
2244
- const DigiCalendarStyle0 = calendarCss;
2245
-
2246
- const Calendar = class {
2247
- constructor(hostRef) {
2248
- index$1.registerInstance(this, hostRef);
2249
- this.afOnDateSelectedChange = index$1.createEvent(this, "afOnDateSelectedChange", 7);
2250
- this.afOnFocusOutside = index$1.createEvent(this, "afOnFocusOutside", 7);
2251
- this.afOnClickOutside = index$1.createEvent(this, "afOnClickOutside", 7);
2252
- this.afOnDirty = index$1.createEvent(this, "afOnDirty", 7);
2253
- this.activeCalendar = [];
2254
- this.months = [];
2255
- this.selectedDates = [];
2256
- this.focusedDate = undefined;
2257
- this.dirty = false;
2258
- this.afId = randomIdGenerator_util.randomIdGenerator('digi-calendar');
2259
- this.afInitSelectedMonth = new Date().getMonth();
2260
- this.afInitSelectedDate = new Date();
2261
- this.afShowWeekNumber = false;
2262
- this.afSelectedDate = undefined;
2263
- this.afSelectedDates = [];
2264
- this.afActive = true;
2265
- this.afMinDate = undefined;
2266
- this.afMaxDate = undefined;
2267
- this.afMultipleDates = false;
2268
- this.afYearSelect = false;
2269
- }
2270
- afSelectedDateChangeHandler() {
2271
- if (index.isValid(this.afSelectedDate)) {
2272
- this.selectedDates = [this.afSelectedDate];
2273
- }
2274
- else {
2275
- this.selectedDates = [];
2276
- }
2277
- }
2278
- afSelectedDatesChangeHandler() {
2279
- if (this.afSelectedDates.length > 0) {
2280
- if (this.afMultipleDates) {
2281
- const invalidDate = this.afSelectedDates.find((date) => !index.isValid(date));
2282
- if (invalidDate === undefined) {
2283
- this.selectedDates = this.afSelectedDates;
2284
- }
2285
- }
2286
- else if (index.isValid(this.afSelectedDates[0])) {
2287
- this.selectedDates = [this.afSelectedDates[0]];
2288
- }
2289
- }
2290
- else {
2291
- this.selectedDates = [];
2292
- }
2293
- }
2294
- focusoutHandler(e) {
2295
- const target = e.target;
2296
- const selector = `#${this.afId}-calendar`;
2297
- if (detectFocusOutside_util.detectFocusOutside(target, selector)) {
2298
- this.afOnFocusOutside.emit(e);
2299
- }
2300
- }
2301
- clickHandler(e) {
2302
- const target = e.target;
2303
- const selector = `#${this.afId}-calendar`;
2304
- if (detectClickOutside_util.detectClickOutside(target, selector)) {
2305
- this.afOnClickOutside.emit(e);
2306
- }
2307
- }
2308
- drawCalendar(focusedDate) {
2309
- const date = {
2310
- year: focusedDate.getFullYear(),
2311
- month: focusedDate.getMonth()
2312
- };
2313
- this.lastWeekOfPreviousMonth = this.getWeekDays(this.getLastDayOfPrevMonth(date));
2314
- this.firstWeekOfNextMonth = this.getWeekDays(this.getFirstDayOfNextMonth(date));
2315
- this.weeksBetween = this.getWeeksBetween(this.getLastDayOfPrevMonth(date), this.getFirstDayOfNextMonth(date));
2316
- this.weekDaysbetween = this.getWeekdaysOfMonth(this.weeksBetween);
2317
- this.months = [
2318
- 'januari',
2319
- 'februari',
2320
- 'mars',
2321
- 'april',
2322
- 'maj',
2323
- 'juni',
2324
- 'juli',
2325
- 'augusti',
2326
- 'september',
2327
- 'oktober',
2328
- 'november',
2329
- 'december'
2330
- ];
2331
- this.activeCalendar = this.appendFirstWeekOfNextMonth()
2332
- ? [
2333
- this.lastWeekOfPreviousMonth,
2334
- ...this.weekDaysbetween,
2335
- this.appendFirstWeekOfNextMonth()
2336
- ]
2337
- : [this.lastWeekOfPreviousMonth, ...this.weekDaysbetween];
2338
- this.appendFirstWeekOfNextMonth();
2339
- if (this.afShowWeekNumber) {
2340
- this.activeCalendar.forEach((el, i) => {
2341
- this.activeCalendar[i].unshift(this.getWeekNumbers(el[0]));
2342
- });
2343
- }
2344
- }
2345
- appendFirstWeekOfNextMonth() {
2346
- const lastArray = JSON.stringify(this.weekDaysbetween.slice(-1)[0]);
2347
- const stringFirstweek = JSON.stringify(this.firstWeekOfNextMonth);
2348
- if (!this.firstWeekOfNextMonth.some((date) => this.isSameMonth(date, this.focusedDate))) {
2349
- return;
2350
- }
2351
- else if (lastArray !== stringFirstweek) {
2352
- return this.firstWeekOfNextMonth;
2353
- }
2354
- }
2355
- getLastDayOfPrevMonth(date) {
2356
- return new Date(date.year, date.month, 0);
2357
- }
2358
- getWeekDays(date) {
2359
- const today = date || new Date();
2360
- const week = [];
2361
- for (let i = 1; i <= 7; i++) {
2362
- const first = today.getDate() - today.getDay() + i;
2363
- const day = new Date(today.setDate(first));
2364
- week.push(day);
2365
- }
2366
- return week;
2367
- }
2368
- getFirstDayOfNextMonth(date) {
2369
- return new Date(date.year, date.month + 1, 1);
2370
- }
2371
- getWeeksBetween(lastDayOfPrevMonth, firstDayOnNextMonth) {
2372
- const week = 7 * 24 * 60 * 60 * 1000;
2373
- const d1ms = lastDayOfPrevMonth.getTime();
2374
- const d2ms = firstDayOnNextMonth.getTime();
2375
- const diff = Math.abs(d2ms - d1ms);
2376
- return Math.floor(diff / week);
2377
- }
2378
- getWeekdaysOfMonth(weeksBetween) {
2379
- let weeks = [];
2380
- for (let i = 1; i <= weeksBetween; i++) {
2381
- weeks = [...weeks, this.getWeekDays(this.getUpcoming(i))];
2382
- }
2383
- return weeks;
2384
- }
2385
- getUpcoming(weeks) {
2386
- return new Date(this.focusedDate.getFullYear(), this.focusedDate.getMonth(), 7 * weeks);
2387
- }
2388
- onDirty() {
2389
- if (!this.dirty) {
2390
- this.dirty = true;
2391
- this.afOnDirty.emit(this.dirty);
2392
- }
2393
- }
2394
- selectDateHandler(dateSelected) {
2395
- this.onDirty();
2396
- if (!this.isDateSelectable(dateSelected))
2397
- return;
2398
- if (this.isDateSelected(dateSelected)) {
2399
- this.selectedDates = this.afMultipleDates
2400
- ? this.selectedDates.filter((d) => {
2401
- return !this.isSameDate(d, dateSelected);
2402
- })
2403
- : [];
2404
- }
2405
- else {
2406
- this.selectedDates = this.afMultipleDates
2407
- ? [...this.selectedDates, dateSelected]
2408
- : [dateSelected];
2409
- }
2410
- this.focusedDate = new Date(dateSelected);
2411
- this.afOnDateSelectedChange.emit(this.selectedDates);
2412
- }
2413
- getMonthName(monthNumber) {
2414
- return new Date(1992, monthNumber, 1)
2415
- .toLocaleDateString('default', {
2416
- month: 'short'
2417
- })
2418
- .replace('.', '');
2419
- }
2420
- getFullMonthName(monthNumber) {
2421
- return new Date(this.focusedDate.getFullYear(), monthNumber, 1).toLocaleDateString('default', {
2422
- month: 'long',
2423
- year: 'numeric'
2424
- });
2425
- }
2426
- // Get the week number of a specific date. Taken from https://weeknumber.com/how-to/javascript
2427
- getWeekNumbers(dateInput) {
2428
- const date = new Date(dateInput);
2429
- date.getTime();
2430
- date.setHours(0, 0, 0, 0);
2431
- date.setDate(date.getDate() + 3 - ((date.getDay() + 6) % 7));
2432
- const week1 = new Date(date.getFullYear(), 0, 4);
2433
- return (1 +
2434
- Math.round(((date.getTime() - week1.getTime()) / 86400000 -
2435
- 3 +
2436
- ((week1.getDay() + 6) % 7)) /
2437
- 7));
2438
- }
2439
- isSameMonth(date, currentDate) {
2440
- if (date instanceof Date && date instanceof Date) {
2441
- return (`${date.getFullYear()}${date.getMonth()}` ===
2442
- `${currentDate.getFullYear()}${currentDate.getMonth()}`);
2443
- }
2444
- return false;
2445
- }
2446
- isSameDate(date, newDate) {
2447
- return this.getDateString(date) === this.getDateString(newDate);
2448
- }
2449
- getDateString(date) {
2450
- return `${date.getDate()}${date.getMonth()}${date.getFullYear()}`;
2451
- }
2452
- isDateSelected(date) {
2453
- return !!this.selectedDates.find((d) => this.isSameDate(date, d));
2454
- }
2455
- isDateSelectable(date) {
2456
- if (this.afMinDate && this.isBefore(date, this.afMinDate))
2457
- return false;
2458
- if (this.afMaxDate && this.isAfter(date, this.afMaxDate))
2459
- return false;
2460
- return true;
2461
- }
2462
- isBefore(a, b) {
2463
- return isBefore(this.dateWithoutTime(a), this.dateWithoutTime(b));
2464
- }
2465
- isAfter(a, b) {
2466
- return isAfter(this.dateWithoutTime(a), this.dateWithoutTime(b));
2467
- }
2468
- dateWithoutTime(date) {
2469
- return new Date(date.getFullYear(), date.getMonth(), date.getDate());
2470
- }
2471
- isInAnotherMonth(date) {
2472
- return !this.isSameMonth(date, this.focusedDate);
2473
- }
2474
- subtractMonth() {
2475
- const month = new Date(this.focusedDate);
2476
- const currentDay = month.getDate();
2477
- month.setMonth(month.getMonth() - 1, 1);
2478
- const lastDayOfPrevMonth = new Date(month.getFullYear(), month.getMonth() + 1, 0).getDate();
2479
- month.setDate(Math.min(currentDay, lastDayOfPrevMonth));
2480
- this.afInitSelectedMonth = month.getMonth();
2481
- this.focusedDate = month;
2482
- }
2483
- addMonth() {
2484
- const month = new Date(this.focusedDate);
2485
- const currentDay = month.getDate();
2486
- month.setMonth(month.getMonth() + 1, 1);
2487
- const lastDayOfNextMonth = new Date(month.getFullYear(), month.getMonth() + 1, 0).getDate();
2488
- month.setDate(Math.min(currentDay, lastDayOfNextMonth));
2489
- this.afInitSelectedMonth = month.getMonth();
2490
- this.focusedDate = month;
2491
- }
2492
- getCurrent(date) {
2493
- return this.isSameDate(date, new Date()) ? 'date' : null;
2494
- }
2495
- setTabIndex(date) {
2496
- if (this.dirty) {
2497
- return this.isSameDate(date, this.focusedDate) ? 0 : -1;
2498
- }
2499
- else {
2500
- return this.isSameMonth(date, new Date())
2501
- ? this.isSameDate(date, new Date()) && !this.isInAnotherMonth(date)
2502
- ? 0
2503
- : -1
2504
- : this.isSameMonth(date, this.focusedDate) && date.getDate() === 1
2505
- ? 0
2506
- : -1;
2507
- }
2508
- }
2509
- navigateHandler(e, daysToAdd) {
2510
- !!e.detail && e.detail.preventDefault();
2511
- if (e.detail.key === 'Tab') {
2512
- return;
2513
- }
2514
- this.onDirty();
2515
- const date = new Date(e.detail.target.dataset.date);
2516
- const newDate = new Date(date.setDate(date.getDate() + daysToAdd));
2517
- this.focusedDate = newDate;
2518
- this.afInitSelectedMonth = this.focusedDate.getMonth();
2519
- this.resetFocus();
2520
- }
2521
- shiftTabHandler() {
2522
- this.afYearSelect
2523
- ? this._yearSelectInputElement.focus()
2524
- : this._nextButton.focus();
2525
- }
2526
- resetFocus() {
2527
- setTimeout(() => {
2528
- const dates = this._tbody.querySelectorAll('.digi-calendar__date');
2529
- if (dates.length <= 0) {
2530
- logger_util.logger.warn(`Could not find an element with data-date attribute matching navigated date.`, this._tbody);
2531
- return;
2532
- }
2533
- Array.from(dates).map((date) => {
2534
- const d = date;
2535
- d.tabIndex = -1;
2536
- d.classList.remove('digi-calendar__date--focused');
2537
- if (d.dataset.date === this.getFullDate(this.focusedDate)) {
2538
- d.focus();
2539
- d.tabIndex = 0;
2540
- d.classList.add('digi-calendar__date--focused');
2541
- }
2542
- });
2543
- }, 100);
2544
- }
2545
- getFullDate(date) {
2546
- return date.toLocaleString(text._t.locale, {
2547
- day: 'numeric',
2548
- month: 'numeric',
2549
- year: 'numeric'
2550
- });
2551
- }
2552
- getDateName(date) {
2553
- return date.toLocaleString(text._t.locale, {
2554
- year: 'numeric',
2555
- month: 'long',
2556
- day: 'numeric'
2557
- });
2558
- }
2559
- setFocused(date) {
2560
- if (this.dirty) {
2561
- return this.isSameDate(date, this.focusedDate);
2562
- }
2563
- else {
2564
- return this.isSameMonth(date, new Date())
2565
- ? this.isSameDate(date, new Date()) && !this.isInAnotherMonth(date)
2566
- : this.isSameMonth(date, this.focusedDate) && date.getDate() === 1;
2567
- }
2568
- }
2569
- ariaPressed(date) {
2570
- return this.selectedDates.length > 0 &&
2571
- !!this.selectedDates.find((d) => this.isSameDate(d, date))
2572
- ? 'true'
2573
- : 'false';
2574
- }
2575
- selectMonth(evt) {
2576
- const tempDate = new Date(this.focusedDate);
2577
- const selectedMonth = parseInt(evt.target.value, 10);
2578
- const currentDay = tempDate.getDate();
2579
- tempDate.setMonth(selectedMonth, 1);
2580
- const lastDayOfSelectedMonth = new Date(tempDate.getFullYear(), selectedMonth + 1, 0).getDate();
2581
- tempDate.setDate(Math.min(currentDay, lastDayOfSelectedMonth));
2582
- this.afInitSelectedMonth = selectedMonth;
2583
- this.focusedDate = tempDate;
2584
- this.drawCalendar(this.focusedDate);
2585
- }
2586
- selectYear(evt) {
2587
- const tempDate = this.focusedDate;
2588
- tempDate.setFullYear(evt.target.value);
2589
- this.afInitSelectedDate = evt.target.value;
2590
- this.focusedDate = tempDate;
2591
- this.drawCalendar(this.focusedDate);
2592
- }
2593
- earliestSelectableYear() {
2594
- if (this.afMinDate)
2595
- return this.afMinDate.getFullYear();
2596
- return 1900;
2597
- }
2598
- latestSelectableYear() {
2599
- if (this.afMaxDate)
2600
- return this.afMaxDate.getFullYear();
2601
- return new Date(Date.now()).getFullYear() + 10;
2602
- }
2603
- allSelectableYears() {
2604
- const allYears = [];
2605
- let currentYear = this.earliestSelectableYear();
2606
- while (currentYear <= this.latestSelectableYear()) {
2607
- allYears.push(currentYear++);
2608
- }
2609
- return allYears;
2610
- }
2611
- componentWillLoad() {
2612
- if (this.afInitSelectedDate) {
2613
- this.afInitSelectedMonth = this.afInitSelectedDate.getMonth();
2614
- this.focusedDate = this.afInitSelectedDate;
2615
- this.drawCalendar(this.afInitSelectedDate);
2616
- }
2617
- else {
2618
- const startSelectedMonth = new Date(new Date().getFullYear(), this.afInitSelectedMonth);
2619
- this.focusedDate = startSelectedMonth;
2620
- this.drawCalendar(startSelectedMonth);
2621
- }
2622
- }
2623
- componentWillUpdate() {
2624
- this.drawCalendar(this.focusedDate);
2625
- }
2626
- async componentDidLoad() {
2627
- var _a;
2628
- if (index.isValid(this.afSelectedDate))
2629
- this.selectedDates = [this.afSelectedDate];
2630
- else
2631
- this.afSelectedDatesChangeHandler();
2632
- await customElements.whenDefined('digi-form-select');
2633
- if (this.afYearSelect)
2634
- this._yearSelectInputElement =
2635
- await ((_a = this === null || this === void 0 ? void 0 : this._yearSelect) === null || _a === void 0 ? void 0 : _a.afMGetFormControlElement());
2636
- }
2637
- cssDateModifiers(date) {
2638
- const shownMonth = this.focusedDate.getMonth();
2639
- return {
2640
- 'digi-calendar__date--today': this.isSameDate(date, new Date()) && !this.isInAnotherMonth(date),
2641
- 'digi-calendar__date--disabled': this.isInAnotherMonth(date),
2642
- 'digi-calendar__date--focused': this.setFocused(date),
2643
- 'digi-calendar__date--selected': this.isDateSelected(date) && date.getMonth() === shownMonth,
2644
- 'digi-calendar__date--not-selectable': !this.isInAnotherMonth(date) && !this.isDateSelectable(date)
2645
- };
2646
- }
2647
- render() {
2648
- return (index$1.h("div", { key: 'dd8d041a34c874f43bc399f96c508dc170eddfc3', class: {
2649
- 'digi-calendar': true,
2650
- 'digi-calendar--hide': !this.afActive
2651
- }, id: `${this.afId}-calendar` }, this.afYearSelect && (index$1.h("div", { key: 'c53f38e0aef3675fa7b97e2dcb32a1bc9c19abd3', class: "digi-calendar__header" }, index$1.h("div", { key: '244d99b0652bfb7ad5c585078ab2af91548fa579', class: "digi-calendar__header--year-select" }, index$1.h("digi-form-select", { key: '765feb5cb8269d57bbdf1a400a3a3f3e01ca0413', afLabel: "M\u00E5nad", "af-variation": "small", afValue: this.focusedDate.getMonth().toString(), onAfOnSelect: (evt) => {
2652
- this.selectMonth(evt);
2653
- } }, this.months.map((month, index) => {
2654
- return index$1.h("option", { value: index }, month);
2655
- })), index$1.h("digi-form-select", { key: 'fe3960bc47e7a5ae27a4c1bef1a9f1b0bb56a9a8', afLabel: "\u00C5r", "af-variation": "small", afValue: this.focusedDate.getFullYear().toString(), onAfOnSelect: (evt) => {
2656
- this.selectYear(evt);
2657
- }, ref: (el) => (this._yearSelect = el) }, this.allSelectableYears().map((year) => (index$1.h("option", { value: year.toString() }, year))))))), !this.afYearSelect && (index$1.h("div", { key: 'e5fc63f78caf20e86e7c34264389aba72f69a802', class: "digi-calendar__header" }, index$1.h("div", { key: '1f4c4a04c7697efdf94ee01079eb4f86ba550374', class: "digi-calendar__header--month-step" }, index$1.h("button", { key: 'fd036825cd957402bef9433d9c0e4145ac5e39d8', class: "digi-calendar__month-select-button", type: "button", "aria-label": this.getFullMonthName(this.afInitSelectedMonth - 1) +
2658
- ', föregående månad', onClick: () => this.subtractMonth() }, index$1.h("digi-icon-chevron-left", { key: 'bb77e1335ffd12d9e56839cbfcbe1a685f884eb2', slot: "icon", "aria-hidden": "true" }), index$1.h("span", { key: '3ca7e44aeb5c5183091b07cbb19ecd6af69ec91f', class: "digi-calendar__month-select-name" }, this.getMonthName(this.afInitSelectedMonth - 1))), index$1.h("div", { key: 'c885c4c385ee57d3c8d4dc71db03c3556e3d3ec6', class: "digi-calendar__month" }, this.getFullMonthName(this.afInitSelectedMonth)), index$1.h("button", { key: 'fc31cd40cef9e10764b93d25e54e45dd83fad5ae', class: "digi-calendar__month-select-button", type: "button", "aria-label": this.getFullMonthName(this.afInitSelectedMonth + 1) +
2659
- ', nästa månad', onClick: () => this.addMonth(), ref: (el) => (this._nextButton = el) }, index$1.h("span", { key: 'ae0f70e300888630aee53b6d63ce5dbc29766292', class: "digi-calendar__month-select-name" }, this.getMonthName(this.afInitSelectedMonth + 1)), index$1.h("digi-icon-chevron-right", { key: '46af22c36d21f41969b06415e00aaf565d14c448', slot: "icon", "aria-hidden": "true" }))))), index$1.h("digi-util-keydown-handler", { key: '88aab0d648cc5b1dfb926275dad5eb0934185f2d', onAfOnDown: (e) => this.navigateHandler(e, 7), onAfOnUp: (e) => this.navigateHandler(e, -7), onAfOnLeft: (e) => this.navigateHandler(e, -1), onAfOnRight: (e) => this.navigateHandler(e, 1), onAfOnShiftTab: () => this.shiftTabHandler() }, index$1.h("table", { key: 'f55d1cc3c923bb1f39d1fc30f1e600b815521cab', role: "grid", class: "digi-calendar__table" }, index$1.h("thead", { key: 'e2b2c774fe7b1031a8aa587bc9927ab9fc5d7313' }, index$1.h("tr", { key: 'cd0770091bd86a269a29bbaa440f83c9eda7e273', role: "row" }, this.afShowWeekNumber && (index$1.h("th", { key: '0e11243cf38ea7d7ef3bfb87aab6f3641198d37c', role: "columnheader", abbr: text._t.calendar.week, class: "digi-calendar__table-header-week" }, text._t.calendar.week.toLowerCase())), Object.keys(text._t.calendar.weekdays).map((day) => (index$1.h("th", { role: "columnheader", "aria-label": text._t.calendar.weekdays[day], abbr: text._t.calendar.weekdays[day], class: "digi-calendar__table-header" }, text._t.calendar.weekdays_short[day].toLowerCase()))))), index$1.h("tbody", { key: 'af971b06248a9571260ec27f18472ef12c1de994', ref: (el) => (this._tbody = el) }, this.activeCalendar.map((week) => {
2660
- return (index$1.h("tr", null, week.map((day, i) => {
2661
- if (this.afShowWeekNumber && i === 0) {
2662
- return (index$1.h("th", { role: "rowheader", "aria-label": text._t.calendar.week + ' ' + day, class: "digi-calendar__td-week digi-calendar__date--week-number", id: 'digi-calendar__week-' + day }, day));
2663
- }
2664
- else {
2665
- return this.isInAnotherMonth(day) ? (index$1.h("td", null)) : (index$1.h("td", { role: "gridcell", class: "digi-calendar__td" }, index$1.h("button", { key: this.getFullDate(day), type: "button", class: Object.assign(Object.assign({}, this.cssDateModifiers(day)), { 'digi-calendar__date': true }), onClick: () => this.selectDateHandler(day), "aria-current": this.isSameDate(day, new Date()) ? 'date' : null, "aria-label": `
2666
- ${!this.isDateSelectable(day)
2667
- ? text._t.calendar.disabledDate
2668
- : ''} ${this.getDateName(day)}
2669
- `, "aria-disabled": !this.isDateSelectable(day) ? 'true' : null, tabindex: this.setTabIndex(day), "data-date": this.getFullDate(day), "aria-pressed": this.isDateSelectable(day)
2670
- ? this.ariaPressed(day)
2671
- : null }, index$1.h("span", { "aria-hidden": "true" }, day.getDate()))));
2672
- }
2673
- })));
2674
- })))), index$1.h("slot", { key: '1d51fd6cf7c43cc0770b8e96692b8e3aa738acdf', name: "calendar-footer" })));
2675
- }
2676
- static get watchers() { return {
2677
- "afSelectedDate": ["afSelectedDateChangeHandler"],
2678
- "afSelectedDates": ["afSelectedDatesChangeHandler"]
2679
- }; }
2680
- };
2681
- Calendar.style = DigiCalendarStyle0;
2682
-
2683
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:#0000ff;--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:#009322;--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:1.125rem;--digi--datepicker--input-icon--horizontal-padding:1.25rem;--digi--datepicker--input-icon--vertical-padding:var(--digi--global--spacing--smallest-2);--digi--datepicker--input--inline-start:var(--digi--gutter--medium);--digi--datepicker--input--inline-end:calc(var(--digi--datepicker--input-icon--width) + var(--digi--datepicker--input-icon--horizontal-padding) * 2);box-sizing:content-box}.sc-digi-calendar-datepicker-h .digi-calendar-datepicker__input-field.sc-digi-calendar-datepicker{position:relative;max-width:var(--digi--datepicker--max-width)}.sc-digi-calendar-datepicker-h .digi-calendar-datepicker__input-field.sc-digi-calendar-datepicker .digi-calendar-datepicker__inactive.sc-digi-calendar-datepicker{--digi--form-input--background--empty:var(\n --digi--datepicker--input--inactive-background\n )}.sc-digi-calendar-datepicker-h .digi-calendar-datepicker__input-field.sc-digi-calendar-datepicker .digi-calendar-datepicker__input-button.sc-digi-calendar-datepicker{position:absolute;top:0px;bottom:0px;right:0px;background:none;color:inherit;border:none;padding:0;font:inherit;outline:inherit;cursor:pointer}.sc-digi-calendar-datepicker-h .digi-calendar-datepicker__input-field.sc-digi-calendar-datepicker .digi-calendar-datepicker__input-button.sc-digi-calendar-datepicker .digi-calendar-datepicker__button-icon.sc-digi-calendar-datepicker{box-sizing:content-box;width:var(--digi--datepicker--input-icon--width);padding:var(--digi--datepicker--input-icon--vertical-padding) var(--digi--datepicker--input-icon--horizontal-padding)}.sc-digi-calendar-datepicker-h .digi-calendar-datepicker__input-field.sc-digi-calendar-datepicker .digi-calendar-datepicker__input-button.sc-digi-calendar-datepicker:focus-visible{outline:2px solid black;outline-offset:2px;box-shadow:0px 0px 0px 5px white}.sc-digi-calendar-datepicker-h .digi-calendar-datepicker__calendar.sc-digi-calendar-datepicker{max-width:var(--digi--datepicker--calendar--max-width);height:0px;border-radius:var(--digi--datepicker--border-radius);overflow:hidden;z-index:1}.sc-digi-calendar-datepicker-h .digi-calendar-datepicker__show-week-numbers.sc-digi-calendar-datepicker .digi-calendar-datepicker__calendar.sc-digi-calendar-datepicker{max-width:var(--digi--datepicker--calendar--show-week--max-width)}.sc-digi-calendar-datepicker-h .digi-calendar-datepicker__show-error.sc-digi-calendar-datepicker .digi-calendar-datepicker__calendar.sc-digi-calendar-datepicker{margin-top:var(--digi--gutter--medium)}.sc-digi-calendar-datepicker-h .digi-calendar-datepicker__show-calendar.sc-digi-calendar-datepicker .digi-calendar-datepicker__calendar.sc-digi-calendar-datepicker{height:auto;background-color:var(--digi--datepicker--calendar--background-color);box-shadow:var(--digi--datepicker--calendar-shadow);position:absolute}.sc-digi-calendar-datepicker-h .digi-calendar-datepicker__input-component.sc-digi-calendar-datepicker{--digi--form-input--padding:0 var(--digi--datepicker--input--inline-end)\n 0 var(--digi--datepicker--input--inline-start)}.sc-digi-calendar-datepicker-h .digi-calendar-datepicker__selected-date-alert.sc-digi-calendar-datepicker{border:0;clip:rect(1px, 1px, 1px, 1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sc-digi-calendar-datepicker-h .digi-calendar-datepicker__sr-instructions.sc-digi-calendar-datepicker{border:0;clip:rect(1px, 1px, 1px, 1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}";
2684
2184
  const DigiCalendarDatepickerStyle0 = calendarDatepickerCss;
2685
2185
 
2686
2186
  const CalendarDatepicker = class {
2687
2187
  constructor(hostRef) {
2688
- index$1.registerInstance(this, hostRef);
2689
- this.afOnDateChange = index$1.createEvent(this, "afOnDateChange", 7);
2188
+ index$2.registerInstance(this, hostRef);
2189
+ this.afOnDateChange = index$2.createEvent(this, "afOnDateChange", 7);
2690
2190
  this.futureYears = 10;
2691
2191
  this.screenReaderUpdateTrigger = false;
2692
2192
  this.showWrongFormatError = false;
@@ -2896,10 +2396,10 @@ const CalendarDatepicker = class {
2896
2396
  return true;
2897
2397
  }
2898
2398
  isBefore(a, b) {
2899
- return isBefore(this.dateWithoutTime(a), this.dateWithoutTime(b));
2399
+ return index$3.isBefore(this.dateWithoutTime(a), this.dateWithoutTime(b));
2900
2400
  }
2901
2401
  isAfter(a, b) {
2902
- return isAfter(this.dateWithoutTime(a), this.dateWithoutTime(b));
2402
+ return index$3.isAfter(this.dateWithoutTime(a), this.dateWithoutTime(b));
2903
2403
  }
2904
2404
  dateWithoutTime(date) {
2905
2405
  return new Date(date.getFullYear(), date.getMonth(), date.getDate());
@@ -2956,23 +2456,23 @@ const CalendarDatepicker = class {
2956
2456
  return this.afSelectedDates;
2957
2457
  }
2958
2458
  render() {
2959
- return (index$1.h(index$1.Host, { key: '8112725ba8c875e94cc556da8921a74390d9c31e' }, index$1.h("div", { key: '4c3df5468b902a4d26fea152ebaeaea0c9bf3dd9', class: Object.assign({ 'digi-calendar-datepicker': true }, this.cssModifiers), id: `${this.afId}-datepicker` }, index$1.h("div", { key: 'bcc79305b5bb0911e5f33f2ca8641ba1a3a5c588', class: "digi-calendar-datepicker__input-field" }, index$1.h("digi-form-input", { key: 'cfe6189b8a529db4bda725f483ec899fe66b87cc', class: 'digi-calendar-datepicker__input-component', afLabel: this.afLabel, afLabelDescription: this.afLabelDescription, afValue: this.inputValue, afValidation: this.getShowError()
2960
- ? typographyVariation_enum.FormInputValidation.ERROR
2961
- : typographyVariation_enum.FormInputValidation.NEUTRAL, afValidationText: this.getErrorText(), afId: this.afId, afAriaDescribedby: `${this.afId}--validation-message`, afRequired: this.afRequired, afRequiredText: this.afRequiredText, onAfOnChange: (evt) => {
2459
+ return (index$2.h(index$2.Host, { key: '8112725ba8c875e94cc556da8921a74390d9c31e' }, index$2.h("div", { key: '4c3df5468b902a4d26fea152ebaeaea0c9bf3dd9', class: Object.assign({ 'digi-calendar-datepicker': true }, this.cssModifiers), id: `${this.afId}-datepicker` }, index$2.h("div", { key: 'bcc79305b5bb0911e5f33f2ca8641ba1a3a5c588', class: "digi-calendar-datepicker__input-field" }, index$2.h("digi-form-input", { key: 'cfe6189b8a529db4bda725f483ec899fe66b87cc', class: 'digi-calendar-datepicker__input-component', afLabel: this.afLabel, afLabelDescription: this.afLabelDescription, afValue: this.inputValue, afValidation: this.getShowError()
2460
+ ? formInputVariation_enum.FormInputValidation.ERROR
2461
+ : formInputVariation_enum.FormInputValidation.NEUTRAL, afValidationText: this.getErrorText(), afId: this.afId, afAriaDescribedby: `${this.afId}--validation-message`, afRequired: this.afRequired, afRequiredText: this.afRequiredText, onAfOnChange: (evt) => {
2962
2462
  evt.stopImmediatePropagation();
2963
2463
  this.parseInput(evt);
2964
- } }, index$1.h("button", { key: '3126acc01f2f9aef0a02990ef22acbde7c3ed3c7', id: this.afId + '-button', class: "digi-calendar-datepicker__input-button", slot: "button", "aria-label": this.showCalendar
2464
+ } }, index$2.h("button", { key: '3126acc01f2f9aef0a02990ef22acbde7c3ed3c7', id: this.afId + '-button', class: "digi-calendar-datepicker__input-button", slot: "button", "aria-label": this.showCalendar
2965
2465
  ? this.afCloseCalendarAriaLabel
2966
- : this.afOpenCalendarAriaLabel, "aria-controls": "calendar-popup", "aria-expanded": this.showCalendar ? 'true' : 'false', onClick: () => this.toggleCalendar(), type: "button" }, index$1.h("digi-icon-calendar-alt", { key: 'b48fc72cea6c3a94bd9821f2ec9416a4707e13d1', class: "digi-calendar-datepicker__button-icon", slot: "icon" })))), index$1.h("div", { key: 'd7c78a170d2d855cca3c001427d1c64ebab48fb3', class: "digi-calendar-datepicker__calendar", id: "calendar-popup" }, index$1.h("p", { key: '5651e12f6e3e06bfc879bb5c2aaf9920f9faf2e7', role: "alert", class: "digi-calendar-datepicker__sr-instructions" }, this.showCalendar
2466
+ : 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: 'b48fc72cea6c3a94bd9821f2ec9416a4707e13d1', class: "digi-calendar-datepicker__button-icon", slot: "icon" })))), index$2.h("div", { key: 'd7c78a170d2d855cca3c001427d1c64ebab48fb3', class: "digi-calendar-datepicker__calendar", id: "calendar-popup" }, index$2.h("p", { key: '5651e12f6e3e06bfc879bb5c2aaf9920f9faf2e7', role: "alert", class: "digi-calendar-datepicker__sr-instructions" }, this.showCalendar
2967
2467
  ? `${text._t.calendar.screenReaderInstructions}${this.screenReaderUpdateTrigger ? '\u200B' : ''}`
2968
- : ''), index$1.h("digi-calendar", { key: 'a490205afebf723c0da4ff5d3f52ac76ec200ec8', afActive: this.showCalendar, afShowWeekNumber: this.afShowWeekNumber, afMultipleDates: this.afMultipleDates, afSelectedDates: this.getSelectedDates, afMinDate: this.afMinDate, afMaxDate: this.afMaxDate, "aria-hidden": !this.showCalendar, onAfOnDateSelectedChange: (evt) => {
2468
+ : ''), index$2.h("digi-calendar", { key: 'a490205afebf723c0da4ff5d3f52ac76ec200ec8', afActive: this.showCalendar, afShowWeekNumber: this.afShowWeekNumber, afMultipleDates: this.afMultipleDates, afSelectedDates: this.getSelectedDates, afMinDate: this.afMinDate, afMaxDate: this.afMaxDate, "aria-hidden": !this.showCalendar, onAfOnDateSelectedChange: (evt) => {
2969
2469
  evt.stopImmediatePropagation();
2970
2470
  this.parseCalendar(evt);
2971
- } })), this.afCloseOnSelect && !this.afMultipleDates && (index$1.h("div", { key: '9880a2b582c21823d935b4be5161e3301abdd214', class: "digi-calendar-datepicker__selected-date-alert", role: "alert" }, this.afSelectedDates.length > 0
2471
+ } })), this.afCloseOnSelect && !this.afMultipleDates && (index$2.h("div", { key: '9880a2b582c21823d935b4be5161e3301abdd214', class: "digi-calendar-datepicker__selected-date-alert", role: "alert" }, this.afSelectedDates.length > 0
2972
2472
  ? `${text._t.calendar.datepicker.selectedDate}: ${this.datesToInputString(this.afSelectedDates)}`
2973
2473
  : '')))));
2974
2474
  }
2975
- get hostElement() { return index$1.getElement(this); }
2475
+ get hostElement() { return index$2.getElement(this); }
2976
2476
  static get watchers() { return {
2977
2477
  "value": ["valueChangeHandler"],
2978
2478
  "afMultipleDates": ["afMultipleDatesChangeHandler"]
@@ -2980,727 +2480,4 @@ const CalendarDatepicker = class {
2980
2480
  };
2981
2481
  CalendarDatepicker.style = DigiCalendarDatepickerStyle0;
2982
2482
 
2983
- const formInputCss = ".sc-digi-form-input-h{--digi--form-input--height--small:var(--digi--input-height--small);--digi--form-input--height--medium:var(--digi--input-height--medium);--digi--form-input--height--large:var(--digi--input-height--large);--digi--form-input--border-radius:var(--digi--border-radius--input);--digi--form-input--padding:0 var(--digi--gutter--medium);--digi--form-input--background--empty:var(--digi--color--background--interactive--default--input-elements);--digi--form-input--background--neutral:var(--digi--color--background--interactive--default--input-elements);--digi--form-input--background--success:var(--digi--color--background--interactive--validation--success);--digi--form-input--background--warning:var(--digi--color--background--interactive--validation--warning);--digi--form-input--background--error:var(--digi--color--background--interactive--validation--error);--digi--form-input--border--neutral:var(--digi--border-width--input-regular) solid;--digi--form-input--border--error:var(--digi--border-width--input-validation) solid;--digi--form-input--border--success:var(--digi--border-width--input-validation) solid;--digi--form-input--border--warning:var(--digi--border-width--input-validation) solid;--digi--form-input--border-color--neutral:var(--digi--color--border--interactive--default--on-input);--digi--form-input--border-color--success:var(--digi--color--border--interactive--validation--success);--digi--form-input--border-color--warning:var(--digi--color--border--interactive--validation--warning);--digi--form-input--border-color--error:var(--digi--color--border--interactive--validation--error)}.sc-digi-form-input-h .digi-form-input.sc-digi-form-input{display:flex;flex-direction:column;gap:0.4em}.sc-digi-form-input-h .digi-form-input--small.sc-digi-form-input{--HEIGHT:var(--digi--form-input--height--small)}.sc-digi-form-input-h .digi-form-input--medium.sc-digi-form-input{--HEIGHT:var(--digi--form-input--height--medium)}.sc-digi-form-input-h .digi-form-input--large.sc-digi-form-input{--HEIGHT:var(--digi--form-input--height--large)}.sc-digi-form-input-h .digi-form-input--neutral.sc-digi-form-input{--BORDER:var(--digi--form-input--border--neutral);--BORDER-COLOR:var(--digi--form-input--border-color--neutral);--BACKGROUND:var(--digi--form-input--background--neutral)}.sc-digi-form-input-h .digi-form-input--empty.sc-digi-form-input:not(:focus-within){--BACKGROUND:var(--digi--form-input--background--empty)}.sc-digi-form-input-h .digi-form-input--success.sc-digi-form-input{--BORDER:var(--digi--form-input--border--success);--BORDER-COLOR:var(--digi--form-input--border-color--success);--BACKGROUND:var(--digi--form-input--background--success)}.sc-digi-form-input-h .digi-form-input--warning.sc-digi-form-input{--BORDER:var(--digi--form-input--border--warning);--BORDER-COLOR:var(--digi--form-input--border-color--warning);--BACKGROUND:var(--digi--form-input--background--warning)}.sc-digi-form-input-h .digi-form-input--error.sc-digi-form-input{--BORDER:var(--digi--form-input--border--error);--BORDER-COLOR:var(--digi--form-input--border-color--error);--BACKGROUND:var(--digi--form-input--background--error)}.digi-form-input__input-wrapper.sc-digi-form-input{position:relative;display:flex}.digi-form-input__input-wrapper.sc-digi-form-input-s>[slot^=button] button,.digi-form-input__input-wrapper .sc-digi-form-input-s>[slot^=button] button{--MIN-HEIGHT:100%}.digi-form-input--button-variation-primary .digi-form-input__input-wrapper.sc-digi-form-input-s>[slot^=button] button,.digi-form-input__input-wrapper .sc-digi-form-input-s>[slot^=button] button{border-start-start-radius:0;border-end-start-radius:0}.digi-form-input--button-variation-secondary.digi-form-input--has-button-true.sc-digi-form-input .digi-form-input__input-wrapper.sc-digi-form-input{gap:var(--digi--gutter--medium);flex-wrap:wrap}.digi-form-input__input.sc-digi-form-input{flex:1;height:var(--HEIGHT);font-family:var(--digi--global--typography--font-family--default);font-size:var(--digi--typography--body--font-size--desktop);padding:var(--digi--form-input--padding);color:var(--digi--color--text--primary);background:var(--BACKGROUND);border:var(--BORDER);border-color:var(--BORDER-COLOR);border-radius:var(--digi--form-input--border-radius);box-sizing:border-box}.digi-form-input__input.sc-digi-form-input:focus-visible{outline:2px solid black;outline-offset:2px;box-shadow:0px 0px 0px 5px white}.digi-form-input--button-variation-primary.digi-form-input--has-button-true.sc-digi-form-input .digi-form-input__input.sc-digi-form-input{border-end-end-radius:0;border-start-end-radius:0}";
2984
- const DigiFormInputStyle0 = formInputCss;
2985
-
2986
- const FormInput = class {
2987
- constructor(hostRef) {
2988
- index$1.registerInstance(this, hostRef);
2989
- this.afOnChange = index$1.createEvent(this, "afOnChange", 7);
2990
- this.afOnBlur = index$1.createEvent(this, "afOnBlur", 7);
2991
- this.afOnKeyup = index$1.createEvent(this, "afOnKeyup", 7);
2992
- this.afOnFocus = index$1.createEvent(this, "afOnFocus", 7);
2993
- this.afOnFocusout = index$1.createEvent(this, "afOnFocusout", 7);
2994
- this.afOnInput = index$1.createEvent(this, "afOnInput", 7);
2995
- this.afOnDirty = index$1.createEvent(this, "afOnDirty", 7);
2996
- this.afOnTouched = index$1.createEvent(this, "afOnTouched", 7);
2997
- this.afOnReady = index$1.createEvent(this, "afOnReady", 3);
2998
- this.hasActiveValidationMessage = false;
2999
- this.hasButton = undefined;
3000
- this.dirty = false;
3001
- this.touched = false;
3002
- this.afLabel = undefined;
3003
- this.afLabelDescription = undefined;
3004
- this.afType = formInputType_enum.FormInputType.TEXT;
3005
- this.afInputmode = typographyVariation_enum.FormInputMode.DEFAULT;
3006
- this.afButtonVariation = formInputType_enum.FormInputButtonVariation.PRIMARY;
3007
- this.afAutofocus = undefined;
3008
- this.afVariation = typographyVariation_enum.FormInputVariation.MEDIUM;
3009
- this.afName = undefined;
3010
- this.afId = randomIdGenerator_util.randomIdGenerator('digi-form-input');
3011
- this.afMaxlength = undefined;
3012
- this.afMinlength = undefined;
3013
- this.afRequired = undefined;
3014
- this.afRequiredText = undefined;
3015
- this.afAnnounceIfOptional = false;
3016
- this.afAnnounceIfOptionalText = undefined;
3017
- this.value = undefined;
3018
- this.afValue = undefined;
3019
- this.afValidation = typographyVariation_enum.FormInputValidation.NEUTRAL;
3020
- this.afValidationText = undefined;
3021
- this.afRole = undefined;
3022
- this.afAutocomplete = undefined;
3023
- this.afMin = undefined;
3024
- this.afMax = undefined;
3025
- this.afList = undefined;
3026
- this.afStep = undefined;
3027
- this.afDirname = undefined;
3028
- this.afAriaAutocomplete = undefined;
3029
- this.afAriaActivedescendant = undefined;
3030
- this.afAriaLabelledby = undefined;
3031
- this.afAriaDescribedby = undefined;
3032
- this.afAriaControls = undefined;
3033
- this.afTrimValue = undefined;
3034
- }
3035
- onValueChanged(value) {
3036
- this.afValue = value;
3037
- }
3038
- onAfValueChanged(value) {
3039
- this.value = value;
3040
- }
3041
- afValidationTextWatch() {
3042
- this.setActiveValidationMessage();
3043
- }
3044
- /**
3045
- * Hämtar en referens till inputelementet. Bra för att t.ex. sätta fokus programmatiskt.
3046
- * @en Returns a reference to the input element. Handy for setting focus programmatically.
3047
- */
3048
- async afMGetFormControlElement() {
3049
- return this._input;
3050
- }
3051
- componentWillLoad() {
3052
- this.afValue ? (this.value = this.afValue) : (this.afValue = this.value);
3053
- this.setActiveValidationMessage();
3054
- this.setHasButton();
3055
- }
3056
- componentWillUpdate() {
3057
- this.setHasButton();
3058
- }
3059
- componentDidLoad() {
3060
- this.afOnReady.emit();
3061
- }
3062
- setActiveValidationMessage() {
3063
- this.hasActiveValidationMessage = !!this.afValidationText;
3064
- }
3065
- get cssModifiers() {
3066
- return {
3067
- 'digi-form-input--small': this.afVariation === typographyVariation_enum.FormInputVariation.SMALL,
3068
- 'digi-form-input--medium': this.afVariation === typographyVariation_enum.FormInputVariation.MEDIUM,
3069
- 'digi-form-input--large': this.afVariation === typographyVariation_enum.FormInputVariation.LARGE,
3070
- 'digi-form-input--neutral': this.afValidation === typographyVariation_enum.FormInputValidation.NEUTRAL,
3071
- 'digi-form-input--success': this.afValidation === typographyVariation_enum.FormInputValidation.SUCCESS,
3072
- 'digi-form-input--error': this.afValidation === typographyVariation_enum.FormInputValidation.ERROR,
3073
- 'digi-form-input--warning': this.afValidation === typographyVariation_enum.FormInputValidation.WARNING,
3074
- [`digi-form-input--button-variation-${this.afButtonVariation}`]: !!this.afButtonVariation,
3075
- [`digi-form-input--has-button-${this.hasButton}`]: true,
3076
- 'digi-form-input--empty': !this.afValue &&
3077
- (!this.afValidation ||
3078
- this.afValidation === typographyVariation_enum.FormInputValidation.NEUTRAL)
3079
- };
3080
- }
3081
- blurHandler(e) {
3082
- const trimableTypes = [
3083
- formInputType_enum.FormInputType.TEXT,
3084
- formInputType_enum.FormInputType.EMAIL,
3085
- formInputType_enum.FormInputType.SEARCH,
3086
- formInputType_enum.FormInputType.TEL,
3087
- formInputType_enum.FormInputType.URL
3088
- ];
3089
- const shouldTrim = this.afTrimValue && trimableTypes.includes(this.afType);
3090
- if (shouldTrim && typeof e.target.value === 'string') {
3091
- const trimmedValue = e.target.value.trim();
3092
- if (trimmedValue !== e.target.value) {
3093
- this.afValue = this.value = trimmedValue;
3094
- if (this._input) {
3095
- this._input.value = trimmedValue;
3096
- }
3097
- // Emittar afOnInput så Angulars value accessor får det trimmade värdet
3098
- this.afOnInput.emit(e);
3099
- }
3100
- }
3101
- if (!this.touched) {
3102
- this.afOnTouched.emit(e);
3103
- this.touched = true;
3104
- }
3105
- this.afOnBlur.emit(e);
3106
- }
3107
- changeHandler(e) {
3108
- this.setActiveValidationMessage();
3109
- this.afOnChange.emit(e);
3110
- }
3111
- focusHandler(e) {
3112
- this.afOnFocus.emit(e);
3113
- }
3114
- focusoutHandler(e) {
3115
- this.afOnFocusout.emit(e);
3116
- }
3117
- keyupHandler(e) {
3118
- this.afOnKeyup.emit(e);
3119
- }
3120
- inputHandler(e) {
3121
- this.afValue = this.value =
3122
- this.afType === formInputType_enum.FormInputType.NUMBER
3123
- ? parseFloat(e.target.value)
3124
- : e.target.value;
3125
- if (!this.dirty) {
3126
- this.afOnDirty.emit(e);
3127
- this.dirty = true;
3128
- }
3129
- this.setActiveValidationMessage();
3130
- this.afOnInput.emit(e);
3131
- }
3132
- setHasButton() {
3133
- this.hasButton = !!this.hostElement.querySelector('[slot="button"]');
3134
- }
3135
- render() {
3136
- return (index$1.h("div", { key: 'fd3bce3a3e0049c260192ef655c5521571236ae6', class: Object.assign({ 'digi-form-input': true }, this.cssModifiers) }, index$1.h("digi-form-label", { key: '2c0d7d223e24cdf4291c1d89e863bac38beff558', class: "digi-form-input__label", afFor: this.afId, afLabel: this.afLabel, afDescription: this.afLabelDescription, afRequired: this.afRequired, afAnnounceIfOptional: this.afAnnounceIfOptional, afRequiredText: this.afRequiredText, afAnnounceIfOptionalText: this.afAnnounceIfOptionalText }), index$1.h("div", { key: '1125bd730a737476d11cbc18152b53dc935399f4', class: "digi-form-input__input-wrapper" }, index$1.h("input", Object.assign({ key: '2f98355411050b0df8bbf70c3687e1be35a67a00', class: "digi-form-input__input", ref: (el) => (this._input = el), onBlur: (e) => this.blurHandler(e), onChange: (e) => this.changeHandler(e), onFocus: (e) => this.focusHandler(e), onFocusout: (e) => this.focusoutHandler(e), onKeyUp: (e) => this.keyupHandler(e), onInput: (e) => this.inputHandler(e), "aria-activedescendant": this.afAriaActivedescendant, "aria-describedby": this.afAriaDescribedby, "aria-labelledby": this.afAriaLabelledby, "aria-autocomplete": this.afAriaAutocomplete, "aria-invalid": this.afValidation === typographyVariation_enum.FormInputValidation.ERROR ? 'true' : 'false', "aria-controls": this.afAriaControls, autocomplete: this.afAutocomplete, autofocus: this.afAutofocus ? this.afAutofocus : null, maxLength: this.afMaxlength, minLength: this.afMinlength, max: this.afMax, min: this.afMin, step: this.afStep, list: this.afList, role: this.afRole, dirName: this.afDirname, required: this.afRequired, id: this.afId, name: this.afName, type: this.afType, value: this.afValue }, (this.afInputmode == typographyVariation_enum.FormInputMode.DEFAULT
3137
- ? {}
3138
- : { inputmode: this.afInputmode }))), index$1.h("slot", { key: '927b71f7804ebe28f51062ddd1ef7a4cebcb36de', name: "button" })), index$1.h("div", { key: '0427a8d8d8216f56f8ce39a6aee9ccd50d76b199', class: "digi-form-input__footer" }, index$1.h("div", { key: 'e40d6e9c628d9f8000c120ceeaecb86bfc6b86a0', class: "digi-form-input__validation", "aria-atomic": "true", role: "alert", id: `${this.afId}--validation-message` }, this.hasActiveValidationMessage &&
3139
- this.afValidation != typographyVariation_enum.FormInputValidation.NEUTRAL && (index$1.h("digi-form-validation-message", { key: 'ff4e34130e69f881353e21d224ddaa907c3f10bf', class: "digi-form-input__validation-message", "af-variation": this.afValidation }, this.afValidationText))))));
3140
- }
3141
- get hostElement() { return index$1.getElement(this); }
3142
- static get watchers() { return {
3143
- "value": ["onValueChanged"],
3144
- "afValue": ["onAfValueChanged"],
3145
- "afValidationText": ["afValidationTextWatch"]
3146
- }; }
3147
- };
3148
- FormInput.style = DigiFormInputStyle0;
3149
-
3150
- const formLabelCss = ".sc-digi-form-label-h .digi-form-label.sc-digi-form-label{font-family:var(--digi--global--typography--font-family--default);font-size:var(--digi--typography--label--font-size--desktop);color:var(--digi--color--text--primary);display:flex;flex-direction:column}.sc-digi-form-label-h .digi-form-label__label--label.sc-digi-form-label{font-weight:var(--digi--typography--label--font-weight--desktop)}.sc-digi-form-label-h .digi-form-label__label--label.sc-digi-form-label,.sc-digi-form-label-h .digi-form-label__label--description.sc-digi-form-label{line-height:var(--digi--typography--label--line-height--desktop);cursor:pointer;display:block}.sc-digi-form-label-h .digi-form-label__label-group.sc-digi-form-label{display:inline-flex;align-items:center;gap:var(--digi--gutter--icon)}.sc-digi-form-label-h .digi-form-label__description.sc-digi-form-label{max-width:var(--digi--paragraph-width--medium);line-height:var(--digi--typography--label-description--line-height--desktop);font-size:var(--digi--typography--label-description--font-size--desktop)}";
3151
- const DigiFormLabelStyle0 = formLabelCss;
3152
-
3153
- const FormLabel = class {
3154
- constructor(hostRef) {
3155
- index$1.registerInstance(this, hostRef);
3156
- this.labelText = undefined;
3157
- this.hasActionSlot = undefined;
3158
- this.afLabel = undefined;
3159
- this.afId = randomIdGenerator_util.randomIdGenerator('digi-form-label');
3160
- this.afFor = undefined;
3161
- this.afDescription = undefined;
3162
- this.afRequired = undefined;
3163
- this.afAnnounceIfOptional = false;
3164
- this.afRequiredText = text._t.required.toLowerCase();
3165
- this.afAnnounceIfOptionalText = text._t.optional.toLowerCase();
3166
- }
3167
- componentWillLoad() {
3168
- this.setLabelText();
3169
- this.validateFor();
3170
- this.handleSlotVisibility();
3171
- }
3172
- validateFor() {
3173
- if (this.afFor == null) {
3174
- logger_util.logger.warn(`digi-form-label must have a for attribute. Please add a for attribute using af-for`, this.hostElement);
3175
- }
3176
- }
3177
- setLabelText() {
3178
- this.labelText = `${this.afLabel} ${this.requiredText}`;
3179
- if (!this.afLabel) {
3180
- logger_util.logger.warn(`digi-form-label must have a label. Please add a label using af-label`, this.hostElement);
3181
- }
3182
- }
3183
- handleSlotVisibility() {
3184
- this.hasActionSlot = !!this.hostElement.querySelector('[slot="actions"]');
3185
- }
3186
- get requiredText() {
3187
- if (this.afRequired && !this.afAnnounceIfOptional) {
3188
- return this.afRequiredText ? ` (${this.afRequiredText})` : '';
3189
- }
3190
- else if (!this.afRequired && this.afAnnounceIfOptional) {
3191
- return this.afAnnounceIfOptionalText
3192
- ? ` (${this.afAnnounceIfOptionalText})`
3193
- : '';
3194
- }
3195
- else {
3196
- return '';
3197
- }
3198
- }
3199
- render() {
3200
- return (index$1.h("div", { key: '49750e16792d0b5078896035bcb99792e6d9f589', class: "digi-form-label" }, index$1.h("div", { key: '81fddd3e4fcc34ba9c8324f5cae0fd1cde00c3fb', class: "digi-form-label__label-group" }, this.afFor && this.afLabel && (index$1.h("label", { key: '01feb27d7f79c818ad7124f85fb6db671a7af847', class: "digi-form-label__label", htmlFor: this.afFor, id: this.afId }, index$1.h("span", { key: '0d484a84b46230a10df0e88a48ebf03880892bad', class: "digi-form-label__label--label" }, this.labelText), this.afDescription && (index$1.h("span", { key: '2fc41f3cfe8d3057260f65b6e0700b92f47a82b9', class: "digi-form-label__label--description" }, this.afDescription)))), this.hasActionSlot && (index$1.h("div", { key: '466cd22c12eca1390b0051766efe7acd34cf732b', class: "digi-form-label__actions" }, index$1.h("slot", { key: 'acc3c7a1ab59f4031c80f90a32c66a15de025180', name: "actions" }))))));
3201
- }
3202
- get hostElement() { return index$1.getElement(this); }
3203
- static get watchers() { return {
3204
- "afFor": ["validateFor"],
3205
- "afLabel": ["setLabelText"],
3206
- "afRequired": ["setLabelText"],
3207
- "afAnnounceIfOptional": ["setLabelText"]
3208
- }; }
3209
- };
3210
- FormLabel.style = DigiFormLabelStyle0;
3211
-
3212
- const formSelectCss = ".sc-digi-form-select-h{--digi--form-select--background--empty:var(--digi--color--background--interactive--default--secondary);--digi--form-select--background--neutral:var(--digi--color--background--interactive--default--secondary);--digi--form-select--background--success:var(--digi--color--background--interactive--validation--success);--digi--form-select--background--warning:var(--digi--color--background--interactive--validation--warning);--digi--form-select--background--error:var(--digi--color--background--interactive--validation--error);--digi--form-select--border-color--neutral:var(--digi--color--border--interactive--default--on-input);--digi--form-select--border-color--success:var(--digi--color--border--interactive--validation--success);--digi--form-select--border-color--warning:var(--digi--color--border--interactive--validation--warning);--digi--form-select--border-color--error:var(--digi--color--border--interactive--validation--error);--digi--form-select--select-wrapper--position:relative;--digi--form-select--select--height--small:var(--digi--input-height--small);--digi--form-select--select--height--medium:var(--digi--input-height--medium);--digi--form-select--select--height--large:var(--digi--input-height--large);--digi--form-select--select--border-radius:var(--digi--border-radius--input);--digi--form-select--select--padding:0 var(--digi--gutter--medium);--digi--form-select--select--padding--inline-end:var(--digi--padding--large);--digi--form-select--select--border-width--neutral:var(--digi--border-width--input-regular);--digi--form-select--select--border-width--success:var(--digi--border-width--input-validation);--digi--form-select--select--border-width--error:var(--digi--border-width--input-validation);--digi--form-select--select--border-width--warning:var(--digi--border-width--input-validation);--digi--form-select--select--width:100%;--digi--form-select--select--font-size:var(--digi--typography--body--font-size--desktop);--digi--form-select--select-option--font-size:var(--digi--typography--body--font-size--desktop);--digi--form-select--label--margin-bottom:var(--digi--gutter--medium);--digi--form-select--icon--inline-end:0.75rem;--digi--form-select--icon--top:50%;--digi--form-select--icon--transform:translateY(-50%);--digi--form-select--icon--color:var(--digi--color--icon--primary);--digi--form-select--footer--margin-top:var(--digi--gutter--medium)}.sc-digi-form-select-h .digi-form-select.sc-digi-form-select{display:flex;flex-direction:column;gap:0.4em}.sc-digi-form-select-h .digi-form-select--neutral.sc-digi-form-select{--BORDER-WIDTH:var(--digi--form-select--select--border-width--neutral);--BORDER-COLOR:var(--digi--form-select--border-color--neutral);--BACKGROUND:var(--digi--form-select--background--neutral)}.sc-digi-form-select-h .digi-form-select--success.sc-digi-form-select{--BORDER-WIDTH:var(--digi--form-select--select--border-width--success);--BORDER-COLOR:var(--digi--form-select--border-color--success);--BACKGROUND:var(--digi--form-select--background--success)}.sc-digi-form-select-h .digi-form-select--warning.sc-digi-form-select{--BORDER-WIDTH:var(--digi--form-select--select--border-width--warning);--BORDER-COLOR:var(--digi--form-select--border-color--warning);--BACKGROUND:var(--digi--form-select--background--warning)}.sc-digi-form-select-h .digi-form-select--error.sc-digi-form-select{--BORDER-WIDTH:var(--digi--form-select--select--border-width--error);--BORDER-COLOR:var(--digi--form-select--border-color--error);--BACKGROUND:var(--digi--form-select--background--error)}.sc-digi-form-select-h .digi-form-select--small.sc-digi-form-select{--HEIGHT:var(--digi--form-select--select--height--small)}.sc-digi-form-select-h .digi-form-select--medium.sc-digi-form-select{--HEIGHT:var(--digi--form-select--select--height--medium)}.sc-digi-form-select-h .digi-form-select--large.sc-digi-form-select{--HEIGHT:var(--digi--form-select--select--height--large)}.sc-digi-form-select-h .digi-form-select--empty.sc-digi-form-select:not(:focus-within){--BACKGROUND:var(--digi--form-select--background--empty)}.sc-digi-form-select-h .digi-form-select__select.sc-digi-form-select{appearance:none;width:var(--digi--form-select--select--width);padding:var(--digi--form-select--select--padding);padding-inline-end:var(--digi--form-select--select--padding--inline-end);height:var(--HEIGHT);border:var(--BORDER-WIDTH) solid;border-radius:var(--digi--form-select--select--border-radius);border-color:var(--BORDER-COLOR);cursor:pointer;font-size:var(--digi--form-select--select--font-size);color:var(--digi--color--text--primary);background:var(--BACKGROUND);font-family:var(--digi--global--typography--font-family--default)}.sc-digi-form-select-h .digi-form-select__select-wrapper.sc-digi-form-select{position:var(--digi--form-select--select-wrapper--position)}.sc-digi-form-select-h .digi-form-select__select-option.sc-digi-form-select{font-size:var(--digi--form-select--select-option--font-size)}@media (min-width: 48rem){.sc-digi-form-select-h .digi-form-select__select-option.sc-digi-form-select{--digi--form-select--select-option--font-size:var(--digi--typography--font-size--l)}}.sc-digi-form-select-h .digi-form-select__select.sc-digi-form-select::-ms-expand{display:none}.sc-digi-form-select-h .digi-form-select__select.sc-digi-form-select:focus-visible{outline:2px solid black;outline-offset:2px;box-shadow:0px 0px 0px 5px white}.sc-digi-form-select-h .digi-form-select__icon.sc-digi-form-select{position:absolute;inset-inline-end:var(--digi--form-select--icon--inline-end);inset-block-start:var(--digi--form-select--icon--top);transform:var(--digi--form-select--icon--transform);pointer-events:none;color:var(--digi--form-select--icon--color)}.digi-form-select--neutral.sc-digi-form-select .digi-form-select__footer.sc-digi-form-select{position:absolute}";
3213
- const DigiFormSelectStyle0 = formSelectCss;
3214
-
3215
- const FormSelect = class {
3216
- constructor(hostRef) {
3217
- index$1.registerInstance(this, hostRef);
3218
- this.afOnChange = index$1.createEvent(this, "afOnChange", 7);
3219
- this.afOnSelect = index$1.createEvent(this, "afOnSelect", 7);
3220
- this.afOnFocus = index$1.createEvent(this, "afOnFocus", 7);
3221
- this.afOnFocusout = index$1.createEvent(this, "afOnFocusout", 7);
3222
- this.afOnBlur = index$1.createEvent(this, "afOnBlur", 7);
3223
- this.afOnDirty = index$1.createEvent(this, "afOnDirty", 7);
3224
- this.afOnReady = index$1.createEvent(this, "afOnReady", 3);
3225
- this.optionItems = [];
3226
- this.dirty = false;
3227
- this.touched = false;
3228
- this.hasPlaceholder = false;
3229
- this.afLabel = undefined;
3230
- this.afAriaLabel = undefined;
3231
- this.afRequired = undefined;
3232
- this.afRequiredText = undefined;
3233
- this.afPlaceholder = undefined;
3234
- this.afAnnounceIfOptional = false;
3235
- this.afAnnounceIfOptionalText = undefined;
3236
- this.afId = randomIdGenerator_util.randomIdGenerator('digi-form-select');
3237
- this.afName = undefined;
3238
- this.afDescription = undefined;
3239
- this.value = undefined;
3240
- this.afValue = undefined;
3241
- this.afDisableValidation = undefined;
3242
- this.afVariation = typographyVariation_enum.FormSelectVariation.MEDIUM;
3243
- this.afValidation = typographyVariation_enum.FormSelectValidation.NEUTRAL;
3244
- this.afValidationText = undefined;
3245
- this.afStartSelected = undefined;
3246
- this.afAutofocus = undefined;
3247
- }
3248
- onValueChanged(value) {
3249
- this.afValue = value;
3250
- }
3251
- onAfValueChanged(value) {
3252
- this.value = value;
3253
- }
3254
- getOptions() {
3255
- this.checkIfPlaceholder();
3256
- const options = this._observer.children;
3257
- if (!options || options.length <= 0) {
3258
- logger_util.logger.warn(`The slot contains no option elements.`, this.hostElement);
3259
- return;
3260
- }
3261
- this.optionItems = [...Array.from(options)]
3262
- .filter((el) => el.tagName.toLowerCase() === 'option')
3263
- .map((el) => {
3264
- return {
3265
- value: el['value'],
3266
- text: el['text']
3267
- };
3268
- });
3269
- }
3270
- checkIfPlaceholder() {
3271
- this.hasPlaceholder = !!this.afPlaceholder;
3272
- }
3273
- componentWillLoad() {
3274
- this.afValue ? (this.value = this.afValue) : (this.afValue = this.value);
3275
- }
3276
- componentDidLoad() {
3277
- this.getOptions();
3278
- this.afStartSelected &&
3279
- (this.afValue = this.optionItems[this.afStartSelected].value);
3280
- this.afOnReady.emit();
3281
- }
3282
- /**
3283
- * Returnerar en referens till formulärkontrollelementet.
3284
- * @en Returns a reference to the form control element.
3285
- */
3286
- async afMGetFormControlElement() {
3287
- return this._select;
3288
- }
3289
- get cssModifiers() {
3290
- return {
3291
- 'digi-form-select--small': this.afVariation === typographyVariation_enum.FormSelectVariation.SMALL,
3292
- 'digi-form-select--medium': this.afVariation === typographyVariation_enum.FormSelectVariation.MEDIUM,
3293
- 'digi-form-select--large': this.afVariation === typographyVariation_enum.FormSelectVariation.LARGE,
3294
- 'digi-form-select--neutral': this.afValidation === typographyVariation_enum.FormSelectValidation.NEUTRAL,
3295
- 'digi-form-select--success': this.afValidation === typographyVariation_enum.FormSelectValidation.SUCCESS,
3296
- 'digi-form-select--warning': this.afValidation === typographyVariation_enum.FormSelectValidation.WARNING,
3297
- 'digi-form-select--error': this.afValidation === typographyVariation_enum.FormSelectValidation.ERROR,
3298
- 'digi-form-select--empty': !this.afValue &&
3299
- (!this.afValidation ||
3300
- this.afValidation === typographyVariation_enum.FormSelectValidation.NEUTRAL)
3301
- };
3302
- }
3303
- changeHandler(e) {
3304
- if (!this.dirty) {
3305
- this.afOnDirty.emit(e);
3306
- this.dirty = true;
3307
- }
3308
- this.value = this.afValue = e.target.value;
3309
- this.afOnChange.emit(e);
3310
- }
3311
- selectHandler(e) {
3312
- this.value = this.afValue = e.target.value;
3313
- this.afOnSelect.emit(e);
3314
- }
3315
- focusHandler(e) {
3316
- this.afOnFocus.emit(e);
3317
- }
3318
- focusoutHandler(e) {
3319
- this.afOnFocusout.emit(e);
3320
- }
3321
- blurHandler(e) {
3322
- this.afOnBlur.emit(e);
3323
- }
3324
- getSelectedItem(option) {
3325
- return this.afValue == option.value;
3326
- }
3327
- showValidation() {
3328
- return !this.afDisableValidation &&
3329
- this.afValidation !== typographyVariation_enum.FormSelectValidation.NEUTRAL &&
3330
- this.afValidationText
3331
- ? true
3332
- : false;
3333
- }
3334
- render() {
3335
- return (index$1.h("div", { key: '49f40c92117bbce3728e70e863b1a4216413ab29', class: Object.assign({ 'digi-form-select': true }, this.cssModifiers) }, index$1.h("div", { key: 'aa0ab7690d810299489ffaf00cccf038ff5672d3', class: "digi-form-select__label-group" }, index$1.h("digi-form-label", { key: 'b6b7e0638e5a2b01701b8e23d3ae2bc4abe15cf5', afFor: this.afId, afLabel: this.afLabel, afId: `${this.afId}-label`, afDescription: this.afDescription, afRequired: this.afRequired, afAnnounceIfOptional: this.afAnnounceIfOptional, afRequiredText: this.afRequiredText, afAnnounceIfOptionalText: this.afAnnounceIfOptionalText })), index$1.h("div", { key: 'be4fe8473e1014c2a5b3dc7074234df79f281ff4', class: "digi-form-select__select-wrapper" }, index$1.h("select", { key: '71a7828e7675d0062f8b2fc2db48809cc7ef41fc', class: "digi-form-select__select", name: this.afName, id: this.afId, "aria-label": this.afAriaLabel, "aria-invalid": this.afValidation === typographyVariation_enum.FormSelectValidation.ERROR
3336
- ? 'true'
3337
- : 'false', ref: (el) => (this._select = el), required: this.afRequired ? this.afRequired : null, onFocus: (e) => this.focusHandler(e), onFocusout: (e) => this.focusoutHandler(e), onBlur: (e) => this.blurHandler(e), onChange: (e) => this.changeHandler(e), onInput: (e) => this.selectHandler(e), autoFocus: this.afAutofocus ? this.afAutofocus : null }, this.hasPlaceholder && (index$1.h("option", { key: 'f24aa09189501c39a31289d62a7fd18d8722b9b3', class: {
3338
- 'digi-form-select__select-option': true,
3339
- 'digi-form-select__select-option--initial-value': true
3340
- }, disabled: true, selected: !this.afValue, value: "" }, this.afPlaceholder)), this.optionItems.map((option, index) => {
3341
- return (index$1.h("option", { key: index, class: "digi-form-select__select-option", value: option.value, selected: this.getSelectedItem(option) }, option.text));
3342
- })), index$1.h("digi-icon-input-select-marker", { key: '8b9fd9d1affea7fe6febb7a144fffa205c8ab2b5', class: "digi-form-select__icon", slot: "icon" })), index$1.h("digi-util-mutation-observer", { key: '3f5b110b0a296597cb25963d885e881c0fc4657a', hidden: true, ref: (el) => (this._observer = el), onAfOnChange: (e) => {
3343
- e.stopImmediatePropagation();
3344
- this.getOptions();
3345
- } }, index$1.h("slot", { key: '4d39e4eb08050272d097e1f302fd09c71e1210d7' })), index$1.h("div", { key: '63717b4931c6ef6d79c3f7e9807b3f9621a4da43', class: "digi-form-select__footer" }, index$1.h("div", { key: '612a4029c893ae0355620ce8ff8530127c1bd65e', "aria-atomic": "true", role: "alert", id: `${this.afId}--validation-message` }, this.showValidation() && (index$1.h("digi-form-validation-message", { key: 'da30bfd2f237363b4d061d3e83d9f0c3509978bb', "af-variation": this.afValidation }, this.afValidationText))))));
3346
- }
3347
- get hostElement() { return index$1.getElement(this); }
3348
- static get watchers() { return {
3349
- "value": ["onValueChanged"],
3350
- "afValue": ["onAfValueChanged"]
3351
- }; }
3352
- };
3353
- FormSelect.style = DigiFormSelectStyle0;
3354
-
3355
- const formValidationMessageCss = ".sc-digi-form-validation-message-h{--digi--form-validation-message--icon-color--success:var(--digi--color--icon--validation--success);--digi--form-validation-message--icon-color--warning:var(--digi--color--icon--validation--warning);--digi--form-validation-message--icon-color--error:var(--digi--color--icon--validation--error)}.sc-digi-form-validation-message-h .digi-form-validation-message.sc-digi-form-validation-message{display:flex;flex-wrap:wrap;align-items:center}.sc-digi-form-validation-message-h .digi-form-validation-message--success.sc-digi-form-validation-message{--ICON-COLOR:var(--digi--form-validation-message--icon-color--success)}.sc-digi-form-validation-message-h .digi-form-validation-message--warning.sc-digi-form-validation-message{--ICON-COLOR:var(--digi--form-validation-message--icon-color--warning)}.sc-digi-form-validation-message-h .digi-form-validation-message--error.sc-digi-form-validation-message{--ICON-COLOR:var(--digi--form-validation-message--icon-color--error)}.sc-digi-form-validation-message-h .digi-form-validation-message__icon.sc-digi-form-validation-message{color:var(--ICON-COLOR);margin-inline-end:var(--digi--gutter--icon)}.sc-digi-form-validation-message-h .digi-form-validation-message__icon.sc-digi-form-validation-message>*.sc-digi-form-validation-message{--digi--icon--width:1.25em;--digi--icon--height:1.25em;--digi--icon--color:var(--ICON-COLOR);display:flex}.sc-digi-form-validation-message-h .digi-form-validation-message__icon.sc-digi-form-validation-message .warning.sc-digi-form-validation-message{top:3px;position:relative}.sc-digi-form-validation-message-h .digi-form-validation-message__text.sc-digi-form-validation-message{flex:1;font-family:var(--digi--global--typography--font-family--default);font-size:var(--digi--typography--tag--font-size--desktop);color:var(--digi--color--text--primary)}";
3356
- const DigiFormValidationMessageStyle0 = formValidationMessageCss;
3357
-
3358
- const FormValidationMessage = class {
3359
- constructor(hostRef) {
3360
- index$1.registerInstance(this, hostRef);
3361
- this.afVariation = formValidationMessageVariation_enum.FormValidationMessageVariation.SUCCESS;
3362
- }
3363
- get cssModifiers() {
3364
- return {
3365
- 'digi-form-validation-message--success': this.afVariation === formValidationMessageVariation_enum.FormValidationMessageVariation.SUCCESS,
3366
- 'digi-form-validation-message--error': this.afVariation === formValidationMessageVariation_enum.FormValidationMessageVariation.ERROR,
3367
- 'digi-form-validation-message--warning': this.afVariation === formValidationMessageVariation_enum.FormValidationMessageVariation.WARNING
3368
- };
3369
- }
3370
- get icon() {
3371
- switch (this.afVariation) {
3372
- case formValidationMessageVariation_enum.FormValidationMessageVariation.SUCCESS:
3373
- return index$1.h("digi-icon-validation-success", null);
3374
- case formValidationMessageVariation_enum.FormValidationMessageVariation.ERROR:
3375
- return index$1.h("digi-icon-validation-error", null);
3376
- case formValidationMessageVariation_enum.FormValidationMessageVariation.WARNING:
3377
- return index$1.h("digi-icon-validation-warning", { class: "warning" });
3378
- }
3379
- }
3380
- render() {
3381
- return (index$1.h("div", { key: 'b4d77f58e8c289295892fe8c6bbd128f0ac0bfe8', class: Object.assign({ 'digi-form-validation-message': true }, this.cssModifiers) }, index$1.h("div", { key: 'ccf07b383eed2f696e2108bc2b11d50a0a37aee2', class: "digi-form-validation-message__icon", "aria-hidden": "true" }, this.icon), index$1.h("span", { key: 'fe5c2456fcc88c666463205c7c735048697f37d2', class: "digi-form-validation-message__text" }, index$1.h("slot", { key: '8d47bef18ec9c7b255f8ee3ec94af6620a0c0dd4' }))));
3382
- }
3383
- get hostElement() { return index$1.getElement(this); }
3384
- };
3385
- FormValidationMessage.style = DigiFormValidationMessageStyle0;
3386
-
3387
- const iconCalendarAltCss = ".sc-digi-icon-calendar-alt-h{--digi--icon--color:var(--digi--color--icon--primary);--digi--icon--width:initial;--digi--icon--height:auto;display:flex;min-height:1.4em;align-items:center}.sc-digi-icon-calendar-alt-h svg.sc-digi-icon-calendar-alt{color:var(--digi--icon--color);max-width:var(--digi--icon--width);max-height:var(--digi--icon--height);width:var(--digi--icon--width, auto);height:var(--digi--icon--height, auto)}";
3388
- const DigiIconCalendarAltStyle0 = iconCalendarAltCss;
3389
-
3390
- const IconCalendarAlt = class {
3391
- constructor(hostRef) {
3392
- index$1.registerInstance(this, hostRef);
3393
- this.afTitle = undefined;
3394
- this.afDesc = undefined;
3395
- this.afSvgAriaHidden = true;
3396
- this.afSvgAriaLabelledby = undefined;
3397
- this.titleId = randomIdGenerator_util.randomIdGenerator('icontitle');
3398
- }
3399
- render() {
3400
- return (index$1.h("svg", { key: '85ca4c57713e98799bbcf554a98d446a26c66601', class: "digi-icon-calendar-alt", width: "22", height: "26", viewBox: "0 0 22 26", "aria-hidden": this.afSvgAriaHidden ? 'true' : 'false', "aria-labelledby": this.afSvgAriaLabelledby
3401
- ? this.afSvgAriaLabelledby
3402
- : this.afTitle
3403
- ? this.titleId
3404
- : undefined, xmlns: "http://www.w3.org/2000/svg" }, this.afTitle && index$1.h("title", { key: 'f60681387210c607c10525b3a734e6ee9f332934', id: this.titleId }, this.afTitle), this.afDesc && index$1.h("desc", { key: '815e9187f7b608ca1c645f40fcb209d92d02dbe2' }, this.afDesc), index$1.h("path", { key: '580861f52fcd05336ada9918962980320cd37c24', class: "digi-icon-calendar-alt__shape", d: "M21.41 8.125H.59a.601.601 0 01-.59-.61V5.689C0 4.341 1.056 3.25 2.357 3.25h2.357V.61c0-.336.265-.61.59-.61h1.964c.324 0 .59.274.59.61v2.64h6.285V.61c0-.336.265-.61.59-.61h1.963c.325 0 .59.274.59.61v2.64h2.357C20.944 3.25 22 4.342 22 5.688v1.828c0 .335-.265.609-.59.609zM.59 9.75h20.82c.325 0 .59.274.59.61v13.203C22 24.907 20.944 26 19.643 26H2.357C1.056 26 0 24.908 0 23.562V10.36c0-.335.265-.609.59-.609zm5.696 10.36a.601.601 0 00-.59-.61H3.732a.601.601 0 00-.59.61v2.03c0 .336.266.61.59.61h1.964c.325 0 .59-.274.59-.61v-2.03zm0-6.5a.601.601 0 00-.59-.61H3.732a.601.601 0 00-.59.61v2.03c0 .336.266.61.59.61h1.964c.325 0 .59-.274.59-.61v-2.03zm6.285 6.5a.601.601 0 00-.589-.61h-1.964a.601.601 0 00-.59.61v2.03c0 .336.266.61.59.61h1.964c.324 0 .59-.274.59-.61v-2.03zm0-6.5a.601.601 0 00-.589-.61h-1.964a.601.601 0 00-.59.61v2.03c0 .336.266.61.59.61h1.964c.324 0 .59-.274.59-.61v-2.03zm6.286 6.5a.601.601 0 00-.59-.61h-1.963a.601.601 0 00-.59.61v2.03c0 .336.265.61.59.61h1.964c.324 0 .59-.274.59-.61v-2.03zm0-6.5a.601.601 0 00-.59-.61h-1.963a.601.601 0 00-.59.61v2.03c0 .336.265.61.59.61h1.964c.324 0 .59-.274.59-.61v-2.03z", fill: "currentColor", "fill-rule": "nonzero" })));
3405
- }
3406
- };
3407
- IconCalendarAlt.style = DigiIconCalendarAltStyle0;
3408
-
3409
- const iconChevronLeftCss = ".sc-digi-icon-chevron-left-h{--digi--icon--color:var(--digi--color--icon--primary);--digi--icon--width:initial;--digi--icon--height:auto;display:flex;min-height:1.4em;align-items:center}.sc-digi-icon-chevron-left-h svg.sc-digi-icon-chevron-left{color:var(--digi--icon--color);max-width:var(--digi--icon--width);max-height:var(--digi--icon--height);width:var(--digi--icon--width, auto);height:var(--digi--icon--height, auto)}";
3410
- const DigiIconChevronLeftStyle0 = iconChevronLeftCss;
3411
-
3412
- const IconChevronLeft = class {
3413
- constructor(hostRef) {
3414
- index$1.registerInstance(this, hostRef);
3415
- this.afTitle = undefined;
3416
- this.afDesc = undefined;
3417
- this.afSvgAriaHidden = true;
3418
- this.afSvgAriaLabelledby = undefined;
3419
- this.titleId = randomIdGenerator_util.randomIdGenerator('icontitle');
3420
- }
3421
- render() {
3422
- return (index$1.h("svg", { key: '0cba00535eb75441e29bd290eadabf25a856ec19', class: "digi-icon-chevron-left", width: "9", height: "14", viewBox: "0 0 9 14", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": this.afSvgAriaHidden ? 'true' : 'false', "aria-labelledby": this.afSvgAriaLabelledby
3423
- ? this.afSvgAriaLabelledby
3424
- : this.afTitle
3425
- ? this.titleId
3426
- : undefined }, this.afTitle && index$1.h("title", { key: 'a8f7e00e11e34ceb6c8d647e99591dcd6eb24a2b', id: this.titleId }, this.afTitle), this.afDesc && index$1.h("desc", { key: '7306e404cb1fb3e3663cd0abfbe3cbebb96267cb' }, this.afDesc), index$1.h("path", { key: '28a948bb95512a52ed6f60e417a08b8651b49473', class: "digi-icon-chevron-left__shape", d: "M8 13L2 6.926 7.853 1", stroke: "currentColor", "stroke-width": "2", fill: "none", "fill-rule": "evenodd" })));
3427
- }
3428
- };
3429
- IconChevronLeft.style = DigiIconChevronLeftStyle0;
3430
-
3431
- const iconChevronRightCss = ".sc-digi-icon-chevron-right-h{--digi--icon--color:var(--digi--color--icon--primary);--digi--icon--width:initial;--digi--icon--height:auto;display:flex;min-height:1.4em;align-items:center}.sc-digi-icon-chevron-right-h svg.sc-digi-icon-chevron-right{color:var(--digi--icon--color);max-width:var(--digi--icon--width);max-height:var(--digi--icon--height);width:var(--digi--icon--width, auto);height:var(--digi--icon--height, auto)}";
3432
- const DigiIconChevronRightStyle0 = iconChevronRightCss;
3433
-
3434
- const IconChevronRight = class {
3435
- constructor(hostRef) {
3436
- index$1.registerInstance(this, hostRef);
3437
- this.afTitle = undefined;
3438
- this.afDesc = undefined;
3439
- this.afSvgAriaHidden = true;
3440
- this.afSvgAriaLabelledby = undefined;
3441
- this.titleId = randomIdGenerator_util.randomIdGenerator('icontitle');
3442
- }
3443
- render() {
3444
- return (index$1.h("svg", { key: '5483795e9b268b2381068e1c9a295e12e0e394ab', class: "digi-icon-chevron-right", width: "9", height: "14", viewBox: "0 0 9 14", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": this.afSvgAriaHidden ? 'true' : 'false', "aria-labelledby": this.afSvgAriaLabelledby
3445
- ? this.afSvgAriaLabelledby
3446
- : this.afTitle
3447
- ? this.titleId
3448
- : undefined }, this.afTitle && index$1.h("title", { key: 'cd62bf4682b3e3263af97d533387b93b0f255f59', id: this.titleId }, this.afTitle), this.afDesc && index$1.h("desc", { key: '40c407614a27285bd6acaac7742254de6cc76d6e' }, this.afDesc), index$1.h("path", { key: 'fe569a6a16607825ada16a5227b43bfc1776c2f3', class: "digi-icon-chevron-right__shape", d: "M1 13l6-6.074L1.147 1", stroke: "currentColor", "stroke-width": "2", fill: "none", "fill-rule": "evenodd" })));
3449
- }
3450
- };
3451
- IconChevronRight.style = DigiIconChevronRightStyle0;
3452
-
3453
- const iconInputSelectMarkerCss = ".sc-digi-icon-input-select-marker-h{--digi--icon--color:var(--digi--color--icon--primary);--digi--icon--width:initial;--digi--icon--height:auto;display:flex;min-height:1.4em;align-items:center}.sc-digi-icon-input-select-marker-h svg.sc-digi-icon-input-select-marker{color:var(--digi--icon--color);max-width:var(--digi--icon--width);max-height:var(--digi--icon--height);width:var(--digi--icon--width, auto);height:var(--digi--icon--height, auto)}";
3454
- const DigiIconInputSelectMarkerStyle0 = iconInputSelectMarkerCss;
3455
-
3456
- const IconInputSelectMarker = class {
3457
- constructor(hostRef) {
3458
- index$1.registerInstance(this, hostRef);
3459
- this.afTitle = undefined;
3460
- this.afDesc = undefined;
3461
- this.afSvgAriaHidden = true;
3462
- this.afSvgAriaLabelledby = undefined;
3463
- this.titleId = randomIdGenerator_util.randomIdGenerator('icon-input-select-marker');
3464
- }
3465
- render() {
3466
- return (index$1.h("svg", { key: '4a1bd4a8b07d23c4188a34c6b6acdbf331cc4fe3', class: "digi-icon-input-select-marker", width: "14", height: "8", viewBox: "0 0 14 8", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": this.afSvgAriaHidden ? 'true' : 'false', "aria-labelledby": this.afSvgAriaLabelledby
3467
- ? this.afSvgAriaLabelledby
3468
- : this.afTitle
3469
- ? this.titleId
3470
- : undefined }, this.afTitle && index$1.h("title", { key: '83ec1298782db2e5a8756908d2f1d6f7e7258606', id: this.titleId }, this.afTitle), this.afDesc && index$1.h("desc", { key: 'b91499649f9e835920188a5bcd16a9f31c635f3e' }, this.afDesc), index$1.h("path", { key: 'a536e8da9e92c77e97835e9de0be8545a90ecef0', d: "M1 1l6.074 6L13 1.147", stroke: "currentColor", "stroke-width": "2", fill: "none", "fill-rule": "evenodd" })));
3471
- }
3472
- };
3473
- IconInputSelectMarker.style = DigiIconInputSelectMarkerStyle0;
3474
-
3475
- const iconValidationErrorCss = ".sc-digi-icon-validation-error-h{--digi--icon--color:var(--digi--color--icon--primary);--digi--icon--width:initial;--digi--icon--height:auto;display:flex;min-height:1.4em;align-items:center}.sc-digi-icon-validation-error-h svg.sc-digi-icon-validation-error{color:var(--digi--icon--color);max-width:var(--digi--icon--width);max-height:var(--digi--icon--height);width:var(--digi--icon--width, auto);height:var(--digi--icon--height, auto)}";
3476
- const DigiIconValidationErrorStyle0 = iconValidationErrorCss;
3477
-
3478
- const IconValidationError = class {
3479
- constructor(hostRef) {
3480
- index$1.registerInstance(this, hostRef);
3481
- this.afTitle = undefined;
3482
- this.afDesc = undefined;
3483
- this.afSvgAriaHidden = true;
3484
- this.afSvgAriaLabelledby = undefined;
3485
- this.titleId = randomIdGenerator_util.randomIdGenerator('icontitle');
3486
- }
3487
- render() {
3488
- return (index$1.h("svg", { key: '8524bbde695d74e2470455f3cc1839f0d408a457', class: "digi-icon-validation-error", width: "48", height: "48", viewBox: "0 0 48 48", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": this.afSvgAriaHidden ? 'true' : 'false', "aria-labelledby": this.afSvgAriaLabelledby
3489
- ? this.afSvgAriaLabelledby
3490
- : this.afTitle
3491
- ? this.titleId
3492
- : undefined }, this.afTitle && index$1.h("title", { key: '6fb9b3b1c131b19bf917ef77c6537a901cded82f', id: this.titleId }, this.afTitle), this.afDesc && index$1.h("desc", { key: 'aa58e66089363499e54f07e2a8bbb404d950d1ef' }, this.afDesc), index$1.h("path", { key: 'bf969ce29ae22211682e47e4c3ae28327d2151d4', class: "digi-icon-validation-error__shape", d: "M34.4328058,0 C35.5494848,0 36.5900526,0.609146757 37.1483921,1.58958113 L47.5812454,19.9104189 C48.1395849,20.8909496 48.1395849,22.1090504 47.5812454,23.0895811 L37.1483921,41.4104189 C36.5900526,42.3908532 35.5494848,43 34.4328058,43 L13.5671942,43 C12.4505152,43 11.4099474,42.3908532 10.8516079,41.4104189 L0.41875464,23.0895811 C-0.13958488,22.1090504 -0.13958488,20.8909496 0.41875464,19.9104189 L10.8516079,1.58958113 C11.4099474,0.609146757 12.4505152,0 13.5671942,0 Z M18.6736823,12.3728178 C18.2711762,11.964729 17.6203819,11.964729 17.2178757,12.3728178 L15.2825964,14.334939 C14.8800903,14.7430278 14.8800903,15.4028485 15.2825964,15.8109373 L20.6089616,21.2111779 L15.2825964,26.6114185 C14.8800903,27.0195074 14.8800903,27.6793281 15.2825964,28.0874169 L17.2178757,30.049538 C17.6203819,30.4576269 18.2711762,30.4576269 18.6736823,30.049538 L24.0000475,24.6492974 L29.3264127,30.049538 C29.7289188,30.4576269 30.3797132,30.4576269 30.7822193,30.049538 L32.7174986,28.0874169 C33.1200048,27.6793281 33.1200048,27.0195074 32.7174986,26.6114185 L27.3911334,21.2111779 L32.7174986,15.8109373 C33.1200048,15.4028485 33.1200048,14.7430278 32.7174986,14.334939 L30.7822193,12.3728178 C30.3797132,11.964729 29.7289188,11.964729 29.3264127,12.3728178 L24.0000475,17.7730584 Z", fill: "currentColor", "fill-rule": "nonzero" })));
3493
- }
3494
- };
3495
- IconValidationError.style = DigiIconValidationErrorStyle0;
3496
-
3497
- const iconValidationSuccessCss = ".sc-digi-icon-validation-success-h{--digi--icon--color:var(--digi--color--icon--primary);--digi--icon--width:initial;--digi--icon--height:auto;display:flex;min-height:1.4em;align-items:center}.sc-digi-icon-validation-success-h svg.sc-digi-icon-validation-success{color:var(--digi--icon--color);max-width:var(--digi--icon--width);max-height:var(--digi--icon--height);width:var(--digi--icon--width, auto);height:var(--digi--icon--height, auto)}";
3498
- const DigiIconValidationSuccessStyle0 = iconValidationSuccessCss;
3499
-
3500
- const IconCheckCircle = class {
3501
- constructor(hostRef) {
3502
- index$1.registerInstance(this, hostRef);
3503
- this.afTitle = undefined;
3504
- this.afDesc = undefined;
3505
- this.afSvgAriaHidden = true;
3506
- this.afSvgAriaLabelledby = undefined;
3507
- this.titleId = randomIdGenerator_util.randomIdGenerator('icontitle');
3508
- }
3509
- render() {
3510
- return (index$1.h("svg", { key: '0482f39996d2872d04bfee866e2cfb7cae28be0a', class: "digi-icon-validation-success", width: "25", height: "25", viewBox: "0 0 25 25", "aria-hidden": this.afSvgAriaHidden ? 'true' : 'false', "aria-labelledby": this.afSvgAriaLabelledby
3511
- ? this.afSvgAriaLabelledby
3512
- : this.afTitle
3513
- ? this.titleId
3514
- : undefined, xmlns: "http://www.w3.org/2000/svg" }, this.afTitle && index$1.h("title", { key: '8c73fda1ee6f939831da4ac643a67c56f709f71a', id: this.titleId }, this.afTitle), this.afDesc && index$1.h("desc", { key: 'fa56bb893c6b17ad7654657a68b0b49bd94786df' }, this.afDesc), index$1.h("path", { key: '5612043e9d9e866cd0cd2c7f4c4a3eb38cddcd8e', class: "digi-icon-validation-success__shape", d: "M25 12.5C25 19.404 19.404 25 12.5 25S0 19.404 0 12.5 5.596 0 12.5 0 25 5.596 25 12.5zm-13.946 6.619l9.274-9.275a.806.806 0 000-1.14l-1.14-1.14a.806.806 0 00-1.14 0l-7.564 7.563-3.531-3.531a.807.807 0 00-1.14 0l-1.141 1.14a.806.806 0 000 1.14l5.242 5.243a.806.806 0 001.14 0z", fill: "currentColor", "fill-rule": "nonzero" })));
3515
- }
3516
- };
3517
- IconCheckCircle.style = DigiIconValidationSuccessStyle0;
3518
-
3519
- const iconValidationWarningCss = ".sc-digi-icon-validation-warning-h{--digi--icon--color:var(--digi--color--icon--primary);--digi--icon--width:initial;--digi--icon--height:auto;display:flex;min-height:1.4em;align-items:center}.sc-digi-icon-validation-warning-h svg.sc-digi-icon-validation-warning{color:var(--digi--icon--color);max-width:var(--digi--icon--width);max-height:var(--digi--icon--height);width:var(--digi--icon--width, auto);height:var(--digi--icon--height, auto)}";
3520
- const DigiIconValidationWarningStyle0 = iconValidationWarningCss;
3521
-
3522
- const IconValidationWarning = class {
3523
- constructor(hostRef) {
3524
- index$1.registerInstance(this, hostRef);
3525
- this.afTitle = undefined;
3526
- this.afDesc = undefined;
3527
- this.afSvgAriaHidden = true;
3528
- this.afSvgAriaLabelledby = undefined;
3529
- this.titleId = randomIdGenerator_util.randomIdGenerator('icontitle');
3530
- }
3531
- render() {
3532
- return (index$1.h("div", { key: '542f4d7b4b9557d7de28eac8697529b3b8e3e47a' }, index$1.h("svg", { key: '2e39132ddd43fb4dabefab2a766b14b73b862c2d', class: "digi-icon-validation-warning", width: "18", height: "18", viewBox: "0 0 18 18", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": this.afSvgAriaHidden ? 'true' : 'false', "aria-labelledby": this.afSvgAriaLabelledby
3533
- ? this.afSvgAriaLabelledby
3534
- : this.afTitle
3535
- ? this.titleId
3536
- : undefined }, this.afTitle && index$1.h("title", { key: 'df52e5a1bace15d5da7ab1169f050a12d8e3047b', id: this.titleId }, this.afTitle), this.afDesc && index$1.h("desc", { key: '5d07f74a5afea6113223c5e4de79de367717804e' }, this.afDesc), index$1.h("g", { key: 'fde32f48d8b91b6b6028b9cce0fee9e34ef67cc4', fill: "none", "fill-rule": "evenodd" }, index$1.h("circle", { key: 'db8dd3d391232ccd708b9e379ab062c7ae20b090', cx: "9", cy: "9", r: "6.75", fill: "#333" }), index$1.h("path", { key: '89b0008737c65858d22fef93f07c97b7232490dd', d: "m18 9c0 4.9717-4.0298 9-9 9-4.9702 0-9-4.0283-9-9 0-4.9688 4.0298-9 9-9 4.9702 0 9 4.0312 9 9zm-9 1.8145c-0.92196 0-1.6694 0.7474-1.6694 1.6694 0 0.92196 0.7474 1.6694 1.6694 1.6694s1.6694-0.7474 1.6694-1.6694c0-0.92196-0.7474-1.6694-1.6694-1.6694zm-1.3157-1.065c0.012593 0.23095 0.20355 0.41175 0.43483 0.41175h1.7618c0.23128 0 0.42224-0.1808 0.43483-0.41175l0.2692-4.9355c0.013609-0.24946-0.18501-0.45922-0.43483-0.45922h-2.3002c-0.24982 0-0.4484 0.20976-0.43479 0.45922l0.2692 4.9355z", fill: "#FFE200" })))));
3537
- }
3538
- };
3539
- IconValidationWarning.style = DigiIconValidationWarningStyle0;
3540
-
3541
- const typographyCss = "digi-typography{--digi--typography--h1--margin--small:var(--digi--margin--h1-small);--digi--typography--h1--margin--medium:var(--digi--margin--h1-medium);--digi--typography--h1--margin--large:var(--digi--margin--h1-large);--digi--typography--h2--margin--small:var(--digi--margin--h2-small);--digi--typography--h2--margin--large:var(--digi--margin--h2-large);--digi--typography--h3--margin--small:var(--digi--margin--h3-small);--digi--typography--h3--margin--large:var(--digi--margin--h3-large);--digi--typography--h4--margin--small:var(--digi--margin--h4-h6-small);--digi--typography--h4--margin--large:var(--digi--margin--h4-h6-large);--digi--typography--h5--margin--small:var(--digi--margin--h4-h6-small);--digi--typography--h6--margin--large:var(--digi--margin--h4-h6-large);--digi--typography--paragraph--margin--small:var(--digi--margin--text-small);--digi--typography--paragraph--margin--large:var(--digi--margin--text-large);--digi--typography--paragraph--margin-top:initial;--digi--typography--color--text:var(--digi--color--text--primary);--digi--typography--text-decoration-thickness--hover:0.156em;--digi--typography--text-decoration-thickness--default:0.05em;--digi--typography--text-underline-offset:3px;font-family:var(--digi--global--typography--font-family--default);color:var(--digi--typography--color--text);--FONT-SIZE--BODY:var(--digi--typography--body--font-size--mobile);--LINE-HEIGHT--BODY:var(--digi--typography--body--line-height--mobile);--FONT-WEIGHT--BODY:var(--digi--typography--body--font-weight--mobile);--TEXT-DECORATION--BODY:var(\n --digi--typography--body--text-decoration--mobile\n );--MARGIN--BODY:var(--digi--typography--paragraph--margin--small);--FONT-SIZE--LINK:var(--digi--typography--link--font-size--mobile);--LINE-HEIGHT--LINK:var(--digi--typography--link--line-height--mobile);--FONT-WEIGHT--LINK:var(--digi--typography--link--font-weight--mobile);--TEXT-DECORATION--LINK:var(\n --digi--typography--link--text-decoration--mobile\n );--FONT-SIZE--HEADING-1:var(--digi--typography--heading-1--font-size--mobile);--LINE-HEIGHT--HEADING-1:var(\n --digi--typography--heading-1--line-height--mobile\n );--FONT-WEIGHT--HEADING-1:var(\n --digi--typography--heading-1--font-weight--mobile\n );--TEXT-DECORATION--HEADING-1:var(\n --digi--typography--heading-1--text-decoration--mobile\n );--MARGIN--HEADING-1:var(--digi--typography--h1--margin--small);--FONT-SIZE--HEADING-2:var(--digi--typography--heading-2--font-size--mobile);--LINE-HEIGHT--HEADING-2:var(\n --digi--typography--heading-2--line-height--mobile\n );--FONT-WEIGHT--HEADING-2:var(\n --digi--typography--heading-2--font-weight--mobile\n );--TEXT-DECORATION--HEADING-2:var(\n --digi--typography--heading-2--text-decoration--mobile\n );--MARGIN--HEADING-2:var(--digi--typography--h2--margin--small);--FONT-SIZE--HEADING-3:var(--digi--typography--heading-3--font-size--mobile);--LINE-HEIGHT--HEADING-3:var(\n --digi--typography--heading-3--line-height--mobile\n );--FONT-WEIGHT--HEADING-3:var(\n --digi--typography--heading-3--font-weight--mobile\n );--TEXT-DECORATION--HEADING-3:var(\n --digi--typography--heading-3--text-decoration--mobile\n );--MARGIN--HEADING-3:var(--digi--typography--h3--margin--small);--FONT-SIZE--HEADING-4:var(--digi--typography--heading-4--font-size--mobile);--LINE-HEIGHT--HEADING-4:var(\n --digi--typography--heading-4--line-height--mobile\n );--FONT-WEIGHT--HEADING-4:var(\n --digi--typography--heading-4--font-weight--mobile\n );--TEXT-DECORATION--HEADING-4:var(\n --digi--typography--heading-4--text-decoration--mobile\n );--MARGIN--HEADING-4:var(--digi--typography--h4--margin--small);--FONT-SIZE--HEADING-5:var(--digi--typography--heading-4--font-size--mobile);--LINE-HEIGHT--HEADING-5:var(\n --digi--typography--heading-4--line-height--mobile\n );--FONT-WEIGHT--HEADING-5:var(\n --digi--typography--heading-4--font-weight--mobile\n );--TEXT-DECORATION--HEADING-5:var(\n --digi--typography--heading-4--text-decoration--mobile\n );--MARGIN--HEADING-5:var(--digi--typography--h4--margin--small);--FONT-SIZE--HEADING-6:var(--digi--typography--heading-4--font-size--mobile);--LINE-HEIGHT--HEADING-6:var(\n --digi--typography--heading-4--line-height--mobile\n );--FONT-WEIGHT--HEADING-6:var(\n --digi--typography--heading-4--font-weight--mobile\n );--TEXT-DECORATION--HEADING-6:var(\n --digi--typography--heading-4--text-decoration--mobile\n );--MARGIN--HEADING-6:var(--digi--typography--h4--margin--small);font-size:var(--FONT-SIZE--BODY);line-height:var(--LINE-HEIGHT--BODY);font-weight:var(--FONT-WEIGHT--BODY);text-decoration:var(--TEXT-DECORATION--BODY)}@media (min-width: 61.9375rem){digi-typography{--FONT-SIZE--BODY:var(--digi--typography--body--font-size--desktop);--LINE-HEIGHT--BODY:var(--digi--typography--body--line-height--desktop);--FONT-WEIGHT--BODY:var(--digi--typography--body--font-weight--desktop);--TEXT-DECORATION--BODY:var(\n --digi--typography--body--text-decoration--desktop\n );--MARGIN--BODY:var(--digi--typography--paragraph--margin--small);--FONT-SIZE--LINK:var(--digi--typography--link--font-size--desktop);--LINE-HEIGHT--LINK:var(--digi--typography--link--line-height--desktop);--FONT-WEIGHT--LINK:var(--digi--typography--link--font-weight--desktop);--TEXT-DECORATION--LINK:var(\n --digi--typography--link--text-decoration--desktop\n );--FONT-SIZE--HEADING-1:var(\n --digi--typography--heading-1--font-size--desktop\n );--LINE-HEIGHT--HEADING-1:var(\n --digi--typography--heading-1--line-height--desktop\n );--FONT-WEIGHT--HEADING-1:var(\n --digi--typography--heading-1--font-weight--desktop\n );--TEXT-DECORATION--HEADING-1:var(\n --digi--typography--heading-1--text-decoration--desktop\n );--MARGIN--HEADING-1:var(--digi--typography--h1--margin--medium);--FONT-SIZE--HEADING-2:var(\n --digi--typography--heading-2--font-size--desktop\n );--LINE-HEIGHT--HEADING-2:var(\n --digi--typography--heading-2--line-height--desktop\n );--FONT-WEIGHT--HEADING-2:var(\n --digi--typography--heading-2--font-weight--desktop\n );--TEXT-DECORATION--HEADING-2:var(\n --digi--typography--heading-2--text-decoration--desktop\n );--MARGIN--HEADING-2:var(--digi--typography--h2--margin--small);--FONT-SIZE--HEADING-3:var(\n --digi--typography--heading-3--font-size--desktop\n );--LINE-HEIGHT--HEADING-3:var(\n --digi--typography--heading-3--line-height--desktop\n );--FONT-WEIGHT--HEADING-3:var(\n --digi--typography--heading-3--font-weight--desktop\n );--TEXT-DECORATION--HEADING-3:var(\n --digi--typography--heading-3--text-decoration--desktop\n );--MARGIN--HEADING-3:var(--digi--typography--h3--margin--small);--FONT-SIZE--HEADING-4:var(\n --digi--typography--heading-4--font-size--desktop\n );--LINE-HEIGHT--HEADING-4:var(\n --digi--typography--heading-4--line-height--desktop\n );--FONT-WEIGHT--HEADING-4:var(\n --digi--typography--heading-4--font-weight--desktop\n );--TEXT-DECORATION--HEADING-4:var(\n --digi--typography--heading-4--text-decoration--desktop\n );--MARGIN--HEADING-4:var(--digi--typography--h4--margin--small);--FONT-SIZE--HEADING-5:var(\n --digi--typography--heading-4--font-size--desktop\n );--LINE-HEIGHT--HEADING-5:var(\n --digi--typography--heading-4--line-height--desktop\n );--FONT-WEIGHT--HEADING-5:var(\n --digi--typography--heading-4--font-weight--desktop\n );--TEXT-DECORATION--HEADING-5:var(\n --digi--typography--heading-4--text-decoration--desktop\n );--MARGIN--HEADING-5:var(--digi--typography--h5--margin--small);--FONT-SIZE--HEADING-6:var(\n --digi--typography--heading-4--font-size--desktop\n );--LINE-HEIGHT--HEADING-6:var(\n --digi--typography--heading-4--line-height--desktop\n );--FONT-WEIGHT--HEADING-6:var(\n --digi--typography--heading-4--font-weight--desktop\n );--TEXT-DECORATION--HEADING-6:var(\n --digi--typography--heading-4--text-decoration--desktop\n );--MARGIN--HEADING-6:var(--digi--typography--h6--margin--small)}}digi-typography h1,digi-typography h2,digi-typography h3,digi-typography h4,digi-typography h5,digi-typography h6{margin-top:0;}digi-typography h1,digi-typography .digi-h1{font-size:var(--FONT-SIZE--HEADING-1);line-height:var(--LINE-HEIGHT--HEADING-1);font-weight:var(--FONT-WEIGHT--HEADING-1);text-decoration:var(--TEXT-DECORATION--HEADING-1);margin-bottom:var(--MARGIN--HEADING-1)}digi-typography h2,digi-typography .digi-h2{font-size:var(--FONT-SIZE--HEADING-2);line-height:var(--LINE-HEIGHT--HEADING-2);font-weight:var(--FONT-WEIGHT--HEADING-2);text-decoration:var(--TEXT-DECORATION--HEADING-2);margin-bottom:var(--MARGIN--HEADING-2)}digi-typography h3,digi-typography .digi-h3{font-size:var(--FONT-SIZE--HEADING-3);line-height:var(--LINE-HEIGHT--HEADING-3);font-weight:var(--FONT-WEIGHT--HEADING-3);text-decoration:var(--TEXT-DECORATION--HEADING-3);margin-bottom:var(--MARGIN--HEADING-3)}digi-typography h4,digi-typography .digi-h4{font-size:var(--FONT-SIZE--HEADING-4);line-height:var(--LINE-HEIGHT--HEADING-4);font-weight:var(--FONT-WEIGHT--HEADING-4);text-decoration:var(--TEXT-DECORATION--HEADING-4);margin-bottom:var(--MARGIN--HEADING-4)}digi-typography h5,digi-typography .digi-h5{font-size:var(--FONT-SIZE--HEADING-5);line-height:var(--LINE-HEIGHT--HEADING-5);font-weight:var(--FONT-WEIGHT--HEADING-5);text-decoration:var(--TEXT-DECORATION--HEADING-5);margin-bottom:var(--MARGIN--HEADING-5)}digi-typography h6,digi-typography .digi-h6{font-size:var(--FONT-SIZE--HEADING-6);line-height:var(--LINE-HEIGHT--HEADING-6);font-weight:var(--FONT-WEIGHT--HEADING-6);text-decoration:var(--TEXT-DECORATION--HEADING-6);margin-bottom:var(--MARGIN--HEADING-6)}digi-typography p,digi-typography blockquote{font-size:var(--FONT-SIZE--BODY);line-height:var(--LINE-HEIGHT--BODY);font-weight:var(--FONT-WEIGHT--BODY);text-decoration:var(--TEXT-DECORATION--BODY);margin-top:initial;margin-bottom:var(--MARGIN--BODY);max-width:var(--digi--paragraph-width--medium)}digi-typography p:last-child,digi-typography blockquote:last-child{margin-bottom:0}digi-typography blockquote{margin-inline:0}digi-typography digi-typography-preamble{display:block;margin-bottom:var(--MARGIN--BODY)}digi-typography digi-typography-preamble:last-child{margin-bottom:0}digi-typography ul,digi-typography ol,digi-typography dl{font-size:var(--FONT-SIZE--BODY);line-height:var(--LINE-HEIGHT--BODY);font-weight:var(--FONT-WEIGHT--BODY);text-decoration:var(--TEXT-DECORATION--BODY);max-width:var(--digi--paragraph-width--medium);margin-bottom:var(--MARGIN--BODY)}digi-typography ul,digi-typography ol{margin:0 0 var(--MARGIN--BODY) 0;padding-inline-start:1.5rem}digi-typography ul li,digi-typography ol li{margin-top:initial;margin-bottom:0.5rem;box-sizing:border-box;width:100%;padding-left:0}digi-typography ul li:last-child,digi-typography ol li:last-child{margin-bottom:0}digi-typography a{font-size:1em;line-height:var(--LINE-HEIGHT--LINK);font-weight:inherit;text-decoration:var(--TEXT-DECORATION--LINK);color:var(--digi--color--text--interactive--primary);text-decoration-thickness:var(--digi--typography--text-decoration-thickness--default);text-underline-offset:var(--digi--typography--text-underline-offset)}digi-typography a:hover{text-decoration:var(--TEXT-DECORATION--LINK);text-decoration-thickness:var(--digi--typography--text-decoration-thickness--hover)}digi-typography a:focus-visible{outline:2px solid black;outline-offset:2px;box-shadow:0px 0px 0px 5px white}digi-typography a:visited{color:var(--digi--color--text--interactive--visited)}digi-typography .digi-typography--hide-visited a:visited{color:var(--digi--color--text--interactive--primary)}digi-typography strong{font-weight:var(--digi--typography--label--font-weight--desktop)}";
3542
- const DigiTypographyStyle0 = typographyCss;
3543
-
3544
- const Typography = class {
3545
- constructor(hostRef) {
3546
- index$1.registerInstance(this, hostRef);
3547
- this.hideVisitedColor = undefined;
3548
- }
3549
- get cssModifiers() {
3550
- return {
3551
- 'digi-typography--hide-visited': this.hideVisitedColor
3552
- };
3553
- }
3554
- render() {
3555
- return (index$1.h("div", { key: '85c3c6c0b06ab8164b20945c0e75fe34043ccdf6', class: Object.assign({ 'digi-typography': true }, this.cssModifiers) }, index$1.h("slot", { key: '5a1ccbd36d655dbf475c241f24163d53f8d05185' })));
3556
- }
3557
- };
3558
- Typography.style = DigiTypographyStyle0;
3559
-
3560
- const UtilKeydownHandler = class {
3561
- constructor(hostRef) {
3562
- index$1.registerInstance(this, hostRef);
3563
- this.afOnEsc = index$1.createEvent(this, "afOnEsc", 7);
3564
- this.afOnEnter = index$1.createEvent(this, "afOnEnter", 7);
3565
- this.afOnTab = index$1.createEvent(this, "afOnTab", 7);
3566
- this.afOnSpace = index$1.createEvent(this, "afOnSpace", 7);
3567
- this.afOnShiftTab = index$1.createEvent(this, "afOnShiftTab", 7);
3568
- this.afOnUp = index$1.createEvent(this, "afOnUp", 7);
3569
- this.afOnDown = index$1.createEvent(this, "afOnDown", 7);
3570
- this.afOnLeft = index$1.createEvent(this, "afOnLeft", 7);
3571
- this.afOnRight = index$1.createEvent(this, "afOnRight", 7);
3572
- this.afOnHome = index$1.createEvent(this, "afOnHome", 7);
3573
- this.afOnEnd = index$1.createEvent(this, "afOnEnd", 7);
3574
- this.afOnKeyDown = index$1.createEvent(this, "afOnKeyDown", 7);
3575
- }
3576
- keydownHandler(e) {
3577
- const key = keyboardHandler_util.keyboardHandler(e);
3578
- switch (key) {
3579
- case keyboardHandler_util.KEY_CODE.SHIFT_TAB:
3580
- this.afOnShiftTab.emit(e);
3581
- break;
3582
- case keyboardHandler_util.KEY_CODE.DOWN_ARROW:
3583
- this.afOnDown.emit(e);
3584
- this.afOnKeyDown.emit(e);
3585
- break;
3586
- case keyboardHandler_util.KEY_CODE.UP_ARROW:
3587
- this.afOnUp.emit(e);
3588
- this.afOnKeyDown.emit(e);
3589
- break;
3590
- case keyboardHandler_util.KEY_CODE.LEFT_ARROW:
3591
- this.afOnLeft.emit(e);
3592
- this.afOnKeyDown.emit(e);
3593
- break;
3594
- case keyboardHandler_util.KEY_CODE.RIGHT_ARROW:
3595
- this.afOnRight.emit(e);
3596
- this.afOnKeyDown.emit(e);
3597
- break;
3598
- case keyboardHandler_util.KEY_CODE.ENTER:
3599
- this.afOnEnter.emit(e);
3600
- this.afOnKeyDown.emit(e);
3601
- break;
3602
- case keyboardHandler_util.KEY_CODE.ESCAPE:
3603
- this.afOnEsc.emit(e);
3604
- this.afOnKeyDown.emit(e);
3605
- break;
3606
- case keyboardHandler_util.KEY_CODE.TAB:
3607
- this.afOnTab.emit(e);
3608
- this.afOnKeyDown.emit(e);
3609
- break;
3610
- case keyboardHandler_util.KEY_CODE.SPACE:
3611
- this.afOnSpace.emit(e);
3612
- this.afOnKeyDown.emit(e);
3613
- break;
3614
- case keyboardHandler_util.KEY_CODE.HOME:
3615
- this.afOnHome.emit(e);
3616
- this.afOnKeyDown.emit(e);
3617
- break;
3618
- case keyboardHandler_util.KEY_CODE.END:
3619
- this.afOnEnd.emit(e);
3620
- this.afOnKeyDown.emit(e);
3621
- break;
3622
- case keyboardHandler_util.KEY_CODE.ANY:
3623
- this.afOnKeyDown.emit(e);
3624
- break;
3625
- default:
3626
- this.afOnKeyDown.emit(e);
3627
- return;
3628
- }
3629
- }
3630
- render() {
3631
- return index$1.h("slot", { key: 'd7f48cfd9a71e8e14b457f93ffd79f0d17becf37' });
3632
- }
3633
- };
3634
-
3635
- const UtilMutationObserver = class {
3636
- constructor(hostRef) {
3637
- index$1.registerInstance(this, hostRef);
3638
- this.afOnChange = index$1.createEvent(this, "afOnChange", 7);
3639
- this._observer = null;
3640
- this._isObserving = false;
3641
- this.afId = randomIdGenerator_util.randomIdGenerator('digi-util-mutation-observer');
3642
- this.afOptions = {
3643
- attributes: false,
3644
- childList: true,
3645
- subtree: false,
3646
- characterData: false
3647
- };
3648
- }
3649
- afOptionsWatcher(newValue) {
3650
- this._afOptions =
3651
- typeof newValue === 'string' ? JSON.parse(newValue) : newValue;
3652
- }
3653
- componentWillLoad() {
3654
- this.afOptionsWatcher(this.afOptions);
3655
- this.initObserver();
3656
- }
3657
- disconnectedCallback() {
3658
- if (this._isObserving) {
3659
- this.removeObserver();
3660
- }
3661
- }
3662
- initObserver() {
3663
- this._observer = new MutationObserver((mutationsList) => {
3664
- for (const mutation of mutationsList) {
3665
- if (mutation.type === 'childList' ||
3666
- mutation.type === 'attributes' ||
3667
- mutation.type === 'characterData') {
3668
- this.changeHandler(mutation);
3669
- }
3670
- }
3671
- });
3672
- this._observer.observe(this.$el, this._afOptions);
3673
- this._isObserving = true;
3674
- }
3675
- removeObserver() {
3676
- this._observer.disconnect();
3677
- this._isObserving = false;
3678
- }
3679
- changeHandler(e) {
3680
- this.afOnChange.emit(e);
3681
- }
3682
- render() {
3683
- index$1.h("div", { id: this.afId, ref: (el) => (this.$el = el) }, index$1.h("slot", null));
3684
- }
3685
- get $el() { return index$1.getElement(this); }
3686
- static get watchers() { return {
3687
- "afOptions": ["afOptionsWatcher"]
3688
- }; }
3689
- };
3690
-
3691
- exports.digi_calendar = Calendar;
3692
2483
  exports.digi_calendar_datepicker = CalendarDatepicker;
3693
- exports.digi_form_input = FormInput;
3694
- exports.digi_form_label = FormLabel;
3695
- exports.digi_form_select = FormSelect;
3696
- exports.digi_form_validation_message = FormValidationMessage;
3697
- exports.digi_icon_calendar_alt = IconCalendarAlt;
3698
- exports.digi_icon_chevron_left = IconChevronLeft;
3699
- exports.digi_icon_chevron_right = IconChevronRight;
3700
- exports.digi_icon_input_select_marker = IconInputSelectMarker;
3701
- exports.digi_icon_validation_error = IconValidationError;
3702
- exports.digi_icon_validation_success = IconCheckCircle;
3703
- exports.digi_icon_validation_warning = IconValidationWarning;
3704
- exports.digi_typography = Typography;
3705
- exports.digi_util_keydown_handler = UtilKeydownHandler;
3706
- exports.digi_util_mutation_observer = UtilMutationObserver;