@ukic/canary-web-components 3.0.0-canary.22 → 3.0.0-canary.24

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 (649) hide show
  1. package/dist/cjs/clear-icon-547aa9b9.js +10 -0
  2. package/dist/cjs/clear-icon-547aa9b9.js.map +1 -0
  3. package/dist/cjs/core.cjs.js +1 -1
  4. package/dist/cjs/{date-helpers-6f70dd03.js → date-helpers-d7ee7b45.js} +5 -9
  5. package/dist/cjs/date-helpers-d7ee7b45.js.map +1 -0
  6. package/dist/cjs/{helpers-74cf2649.js → helpers-56717660.js} +31 -7
  7. package/dist/cjs/helpers-56717660.js.map +1 -0
  8. package/dist/cjs/helpers-da852478.js.map +1 -1
  9. package/dist/cjs/ic-accordion-group.cjs.entry.js +1 -1
  10. package/dist/cjs/ic-accordion.cjs.entry.js +1 -1
  11. package/dist/cjs/ic-action-chip.cjs.entry.js +116 -0
  12. package/dist/cjs/ic-action-chip.cjs.entry.js.map +1 -0
  13. package/dist/cjs/ic-alert.cjs.entry.js +2 -2
  14. package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
  15. package/dist/cjs/ic-back-to-top.cjs.entry.js +4 -4
  16. package/dist/cjs/ic-back-to-top.cjs.entry.js.map +1 -1
  17. package/dist/cjs/ic-badge.cjs.entry.js +4 -4
  18. package/dist/cjs/ic-badge.cjs.entry.js.map +1 -1
  19. package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +3 -3
  20. package/dist/cjs/ic-breadcrumb-group.cjs.entry.js.map +1 -1
  21. package/dist/cjs/ic-breadcrumb.cjs.entry.js +3 -3
  22. package/dist/cjs/ic-breadcrumb.cjs.entry.js.map +1 -1
  23. package/dist/cjs/ic-button_3.cjs.entry.js +56 -96
  24. package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
  25. package/dist/cjs/ic-card-vertical.cjs.entry.js +5 -5
  26. package/dist/cjs/ic-card-vertical.cjs.entry.js.map +1 -1
  27. package/dist/cjs/ic-checkbox-group.cjs.entry.js +3 -3
  28. package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
  29. package/dist/cjs/ic-checkbox_3.cjs.entry.js +8 -8
  30. package/dist/cjs/ic-checkbox_3.cjs.entry.js.map +1 -1
  31. package/dist/cjs/ic-chip.cjs.entry.js +13 -5
  32. package/dist/cjs/ic-chip.cjs.entry.js.map +1 -1
  33. package/dist/cjs/ic-classification-banner.cjs.entry.js +2 -2
  34. package/dist/cjs/ic-classification-banner.cjs.entry.js.map +1 -1
  35. package/dist/cjs/ic-data-list.cjs.entry.js +3 -3
  36. package/dist/cjs/ic-data-list.cjs.entry.js.map +1 -1
  37. package/dist/cjs/ic-data-row.cjs.entry.js +4 -4
  38. package/dist/cjs/ic-data-row.cjs.entry.js.map +1 -1
  39. package/dist/cjs/ic-data-table.cjs.entry.js +43 -56
  40. package/dist/cjs/ic-data-table.cjs.entry.js.map +1 -1
  41. package/dist/cjs/ic-date-input.cjs.entry.js +26 -18
  42. package/dist/cjs/ic-date-input.cjs.entry.js.map +1 -1
  43. package/dist/cjs/ic-date-picker.cjs.entry.js +13 -13
  44. package/dist/cjs/ic-date-picker.cjs.entry.js.map +1 -1
  45. package/dist/cjs/ic-dialog.cjs.entry.js +2 -2
  46. package/dist/cjs/ic-dialog.cjs.entry.js.map +1 -1
  47. package/dist/cjs/ic-divider.cjs.entry.js +1 -1
  48. package/dist/cjs/ic-footer-link-group.cjs.entry.js +1 -1
  49. package/dist/cjs/ic-footer-link.cjs.entry.js +3 -3
  50. package/dist/cjs/ic-footer-link.cjs.entry.js.map +1 -1
  51. package/dist/cjs/ic-footer.cjs.entry.js +4 -4
  52. package/dist/cjs/ic-footer.cjs.entry.js.map +1 -1
  53. package/dist/cjs/ic-hero.cjs.entry.js +5 -5
  54. package/dist/cjs/ic-hero.cjs.entry.js.map +1 -1
  55. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +6 -6
  56. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js.map +1 -1
  57. package/dist/cjs/ic-input-component-container_4.cjs.entry.js +224 -0
  58. package/dist/cjs/ic-input-component-container_4.cjs.entry.js.map +1 -0
  59. package/dist/cjs/ic-layout-grid-item.cjs.entry.js +70 -0
  60. package/dist/cjs/ic-layout-grid-item.cjs.entry.js.map +1 -0
  61. package/dist/cjs/ic-layout-grid.cjs.entry.js +156 -0
  62. package/dist/cjs/ic-layout-grid.cjs.entry.js.map +1 -0
  63. package/dist/cjs/ic-link.cjs.entry.js +2 -2
  64. package/dist/cjs/ic-link.cjs.entry.js.map +1 -1
  65. package/dist/cjs/ic-menu-group.cjs.entry.js +2 -2
  66. package/dist/cjs/ic-menu-group.cjs.entry.js.map +1 -1
  67. package/dist/cjs/ic-menu-item.cjs.entry.js +1 -1
  68. package/dist/cjs/{ic-input-component-container_3.cjs.entry.js → ic-menu.cjs.entry.js} +5 -96
  69. package/dist/cjs/ic-menu.cjs.entry.js.map +1 -0
  70. package/dist/cjs/ic-navigation-button.cjs.entry.js +3 -3
  71. package/dist/cjs/ic-navigation-button.cjs.entry.js.map +1 -1
  72. package/dist/cjs/ic-navigation-group.cjs.entry.js +3 -3
  73. package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
  74. package/dist/cjs/ic-navigation-item.cjs.entry.js +3 -3
  75. package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
  76. package/dist/cjs/ic-navigation-menu.cjs.entry.js +5 -5
  77. package/dist/cjs/ic-navigation-menu.cjs.entry.js.map +1 -1
  78. package/dist/cjs/ic-page-header.cjs.entry.js +7 -7
  79. package/dist/cjs/ic-page-header.cjs.entry.js.map +1 -1
  80. package/dist/cjs/ic-pagination_4.cjs.entry.js +18 -18
  81. package/dist/cjs/ic-pagination_4.cjs.entry.js.map +1 -1
  82. package/dist/cjs/ic-popover-menu.cjs.entry.js +10 -6
  83. package/dist/cjs/ic-popover-menu.cjs.entry.js.map +1 -1
  84. package/dist/cjs/ic-radio-group.cjs.entry.js +5 -5
  85. package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
  86. package/dist/cjs/ic-radio-option.cjs.entry.js +5 -5
  87. package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -1
  88. package/dist/cjs/ic-search-bar.cjs.entry.js +10 -10
  89. package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -1
  90. package/dist/cjs/ic-section-container.cjs.entry.js +2 -2
  91. package/dist/cjs/ic-section-container.cjs.entry.js.map +1 -1
  92. package/dist/cjs/ic-side-navigation.cjs.entry.js +5 -5
  93. package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -1
  94. package/dist/cjs/ic-skeleton.cjs.entry.js +2 -2
  95. package/dist/cjs/ic-skeleton.cjs.entry.js.map +1 -1
  96. package/dist/cjs/ic-skip-link.cjs.entry.js +2 -2
  97. package/dist/cjs/ic-skip-link.cjs.entry.js.map +1 -1
  98. package/dist/cjs/ic-status-tag.cjs.entry.js +3 -3
  99. package/dist/cjs/ic-status-tag.cjs.entry.js.map +1 -1
  100. package/dist/cjs/ic-step.cjs.entry.js +14 -14
  101. package/dist/cjs/ic-step.cjs.entry.js.map +1 -1
  102. package/dist/cjs/ic-stepper.cjs.entry.js +3 -3
  103. package/dist/cjs/ic-stepper.cjs.entry.js.map +1 -1
  104. package/dist/cjs/ic-switch.cjs.entry.js +5 -5
  105. package/dist/cjs/ic-switch.cjs.entry.js.map +1 -1
  106. package/dist/cjs/ic-tab-context.cjs.entry.js +1 -1
  107. package/dist/cjs/ic-tab-context.cjs.entry.js.map +1 -1
  108. package/dist/cjs/ic-tab-group.cjs.entry.js +3 -3
  109. package/dist/cjs/ic-tab-group.cjs.entry.js.map +1 -1
  110. package/dist/cjs/ic-tab-panel.cjs.entry.js +2 -2
  111. package/dist/cjs/ic-tab-panel.cjs.entry.js.map +1 -1
  112. package/dist/cjs/ic-tab.cjs.entry.js +3 -3
  113. package/dist/cjs/ic-tab.cjs.entry.js.map +1 -1
  114. package/dist/cjs/ic-theme.cjs.entry.js +2 -2
  115. package/dist/cjs/ic-theme.cjs.entry.js.map +1 -1
  116. package/dist/cjs/ic-time-input.cjs.entry.js +943 -0
  117. package/dist/cjs/ic-time-input.cjs.entry.js.map +1 -0
  118. package/dist/cjs/ic-toast-region.cjs.entry.js +1 -1
  119. package/dist/cjs/ic-toast-region.cjs.entry.js.map +1 -1
  120. package/dist/cjs/ic-toast.cjs.entry.js +5 -5
  121. package/dist/cjs/ic-toast.cjs.entry.js.map +1 -1
  122. package/dist/cjs/ic-toggle-button-group.cjs.entry.js +3 -3
  123. package/dist/cjs/ic-toggle-button-group.cjs.entry.js.map +1 -1
  124. package/dist/cjs/ic-toggle-button.cjs.entry.js +3 -3
  125. package/dist/cjs/ic-toggle-button.cjs.entry.js.map +1 -1
  126. package/dist/cjs/ic-top-navigation.cjs.entry.js +5 -5
  127. package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
  128. package/dist/cjs/ic-tree-item.cjs.entry.js +2 -2
  129. package/dist/cjs/ic-tree-view.cjs.entry.js +3 -3
  130. package/dist/cjs/ic-typography.cjs.entry.js +3 -3
  131. package/dist/cjs/ic-typography.cjs.entry.js.map +1 -1
  132. package/dist/cjs/index-d337cd8a.js +20 -4
  133. package/dist/cjs/loader.cjs.js +1 -1
  134. package/dist/collection/assets/clock.svg +1 -0
  135. package/dist/collection/collection-manifest.json +4 -0
  136. package/dist/collection/components/ic-data-table/ic-data-table.js +43 -57
  137. package/dist/collection/components/ic-data-table/ic-data-table.js.map +1 -1
  138. package/dist/collection/components/ic-data-table/ic-data-table.stories.js +3 -2
  139. package/dist/collection/components/ic-data-table/ic-data-table.stories.js.map +1 -1
  140. package/dist/collection/components/ic-data-table/ic-data-table.types.js.map +1 -1
  141. package/dist/collection/components/ic-data-table/story-data.js +7 -57
  142. package/dist/collection/components/ic-data-table/story-data.js.map +1 -1
  143. package/dist/collection/components/ic-date-input/ic-date-input.js +24 -12
  144. package/dist/collection/components/ic-date-input/ic-date-input.js.map +1 -1
  145. package/dist/collection/components/ic-date-picker/ic-date-picker.css +4 -5
  146. package/dist/collection/components/ic-date-picker/ic-date-picker.js +12 -12
  147. package/dist/collection/components/ic-date-picker/ic-date-picker.js.map +1 -1
  148. package/dist/collection/components/ic-date-picker/ic-date-picker.stories.js +9 -1
  149. package/dist/collection/components/ic-date-picker/ic-date-picker.stories.js.map +1 -1
  150. package/dist/collection/components/ic-date-picker/story-data.js +18 -0
  151. package/dist/collection/components/ic-date-picker/story-data.js.map +1 -1
  152. package/dist/collection/components/ic-time-input/ic-time-input.css +648 -0
  153. package/dist/collection/components/ic-time-input/ic-time-input.js +1600 -0
  154. package/dist/collection/components/ic-time-input/ic-time-input.js.map +1 -0
  155. package/dist/collection/components/ic-time-input/ic-time-input.stories.js +320 -0
  156. package/dist/collection/components/ic-time-input/ic-time-input.stories.js.map +1 -0
  157. package/dist/collection/components/ic-time-input/test/helpers/ic-time-input.js +45 -0
  158. package/dist/collection/components/ic-time-input/test/helpers/ic-time-input.js.map +1 -0
  159. package/dist/collection/components/ic-tree-item/ic-tree-item.js +2 -2
  160. package/dist/collection/components/ic-tree-view/ic-tree-view.js +3 -3
  161. package/dist/collection/utils/date-helpers.js +3 -7
  162. package/dist/collection/utils/date-helpers.js.map +1 -1
  163. package/dist/collection/utils/types.js.map +1 -1
  164. package/dist/components/clear-icon.js +8 -0
  165. package/dist/components/clear-icon.js.map +1 -0
  166. package/dist/components/helpers.js +31 -7
  167. package/dist/components/helpers.js.map +1 -1
  168. package/dist/components/helpers2.js.map +1 -1
  169. package/dist/components/ic-action-chip.js +160 -0
  170. package/dist/components/ic-action-chip.js.map +1 -0
  171. package/dist/components/ic-alert.js +1 -1
  172. package/dist/components/ic-alert.js.map +1 -1
  173. package/dist/components/ic-back-to-top.js +4 -4
  174. package/dist/components/ic-back-to-top.js.map +1 -1
  175. package/dist/components/ic-badge.js +4 -4
  176. package/dist/components/ic-badge.js.map +1 -1
  177. package/dist/components/ic-breadcrumb-group.js +3 -3
  178. package/dist/components/ic-breadcrumb-group.js.map +1 -1
  179. package/dist/components/ic-breadcrumb2.js +3 -3
  180. package/dist/components/ic-breadcrumb2.js.map +1 -1
  181. package/dist/components/ic-button2.js +15 -13
  182. package/dist/components/ic-button2.js.map +1 -1
  183. package/dist/components/ic-card-vertical.js +4 -4
  184. package/dist/components/ic-card-vertical.js.map +1 -1
  185. package/dist/components/ic-checkbox-group.js +3 -3
  186. package/dist/components/ic-checkbox-group.js.map +1 -1
  187. package/dist/components/ic-checkbox2.js +6 -6
  188. package/dist/components/ic-checkbox2.js.map +1 -1
  189. package/dist/components/ic-chip.js +13 -5
  190. package/dist/components/ic-chip.js.map +1 -1
  191. package/dist/components/ic-classification-banner.js +2 -2
  192. package/dist/components/ic-classification-banner.js.map +1 -1
  193. package/dist/components/ic-data-list.js +3 -3
  194. package/dist/components/ic-data-list.js.map +1 -1
  195. package/dist/components/ic-data-row.js +4 -4
  196. package/dist/components/ic-data-row.js.map +1 -1
  197. package/dist/components/ic-data-table.js +43 -56
  198. package/dist/components/ic-data-table.js.map +1 -1
  199. package/dist/components/ic-date-input2.js +29 -25
  200. package/dist/components/ic-date-input2.js.map +1 -1
  201. package/dist/components/ic-date-picker.js +13 -13
  202. package/dist/components/ic-date-picker.js.map +1 -1
  203. package/dist/components/ic-dialog.js +2 -2
  204. package/dist/components/ic-dialog.js.map +1 -1
  205. package/dist/components/ic-divider2.js +1 -1
  206. package/dist/components/ic-empty-state2.js +2 -2
  207. package/dist/components/ic-empty-state2.js.map +1 -1
  208. package/dist/components/ic-footer-link-group.js +1 -1
  209. package/dist/components/ic-footer-link.js +3 -3
  210. package/dist/components/ic-footer-link.js.map +1 -1
  211. package/dist/components/ic-footer.js +4 -4
  212. package/dist/components/ic-footer.js.map +1 -1
  213. package/dist/components/ic-hero.js +5 -5
  214. package/dist/components/ic-hero.js.map +1 -1
  215. package/dist/components/ic-horizontal-scroll2.js +6 -6
  216. package/dist/components/ic-horizontal-scroll2.js.map +1 -1
  217. package/dist/components/ic-input-component-container2.js +4 -4
  218. package/dist/components/ic-input-component-container2.js.map +1 -1
  219. package/dist/components/ic-input-container2.js +2 -2
  220. package/dist/components/ic-input-container2.js.map +1 -1
  221. package/dist/components/ic-input-label2.js +3 -3
  222. package/dist/components/ic-input-label2.js.map +1 -1
  223. package/dist/components/ic-input-validation2.js +4 -4
  224. package/dist/components/ic-input-validation2.js.map +1 -1
  225. package/dist/components/ic-layout-grid-item.js +95 -0
  226. package/dist/components/ic-layout-grid-item.js.map +1 -0
  227. package/dist/components/ic-layout-grid.js +188 -0
  228. package/dist/components/ic-layout-grid.js.map +1 -0
  229. package/dist/components/ic-link2.js +1 -1
  230. package/dist/components/ic-link2.js.map +1 -1
  231. package/dist/components/ic-loading-indicator2.js +5 -5
  232. package/dist/components/ic-loading-indicator2.js.map +1 -1
  233. package/dist/components/ic-menu-group.js +2 -2
  234. package/dist/components/ic-menu-group.js.map +1 -1
  235. package/dist/components/ic-menu-item2.js +1 -1
  236. package/dist/components/ic-menu2.js +4 -4
  237. package/dist/components/ic-menu2.js.map +1 -1
  238. package/dist/components/ic-navigation-button.js +3 -3
  239. package/dist/components/ic-navigation-button.js.map +1 -1
  240. package/dist/components/ic-navigation-group.js +3 -3
  241. package/dist/components/ic-navigation-group.js.map +1 -1
  242. package/dist/components/ic-navigation-item.js +3 -3
  243. package/dist/components/ic-navigation-item.js.map +1 -1
  244. package/dist/components/ic-navigation-menu2.js +5 -5
  245. package/dist/components/ic-navigation-menu2.js.map +1 -1
  246. package/dist/components/ic-page-header.js +7 -7
  247. package/dist/components/ic-page-header.js.map +1 -1
  248. package/dist/components/ic-pagination-item2.js +2 -2
  249. package/dist/components/ic-pagination-item2.js.map +1 -1
  250. package/dist/components/ic-pagination2.js +4 -4
  251. package/dist/components/ic-pagination2.js.map +1 -1
  252. package/dist/components/ic-popover-menu.js +11 -6
  253. package/dist/components/ic-popover-menu.js.map +1 -1
  254. package/dist/components/ic-radio-group.js +5 -5
  255. package/dist/components/ic-radio-group.js.map +1 -1
  256. package/dist/components/ic-radio-option.js +5 -5
  257. package/dist/components/ic-radio-option.js.map +1 -1
  258. package/dist/components/ic-search-bar.js +10 -10
  259. package/dist/components/ic-search-bar.js.map +1 -1
  260. package/dist/components/ic-section-container2.js +2 -2
  261. package/dist/components/ic-section-container2.js.map +1 -1
  262. package/dist/components/ic-select2.js +7 -7
  263. package/dist/components/ic-select2.js.map +1 -1
  264. package/dist/components/ic-side-navigation.js +5 -5
  265. package/dist/components/ic-side-navigation.js.map +1 -1
  266. package/dist/components/ic-skeleton.js +2 -2
  267. package/dist/components/ic-skeleton.js.map +1 -1
  268. package/dist/components/ic-skip-link.js +2 -2
  269. package/dist/components/ic-skip-link.js.map +1 -1
  270. package/dist/components/ic-status-tag.js +2 -2
  271. package/dist/components/ic-status-tag.js.map +1 -1
  272. package/dist/components/ic-step.js +14 -14
  273. package/dist/components/ic-step.js.map +1 -1
  274. package/dist/components/ic-stepper.js +2 -2
  275. package/dist/components/ic-stepper.js.map +1 -1
  276. package/dist/components/ic-switch.js +5 -5
  277. package/dist/components/ic-switch.js.map +1 -1
  278. package/dist/components/ic-tab-context.js +1 -1
  279. package/dist/components/ic-tab-context.js.map +1 -1
  280. package/dist/components/ic-tab-group.js +2 -2
  281. package/dist/components/ic-tab-group.js.map +1 -1
  282. package/dist/components/ic-tab-panel.js +2 -2
  283. package/dist/components/ic-tab-panel.js.map +1 -1
  284. package/dist/components/ic-tab.js +2 -2
  285. package/dist/components/ic-tab.js.map +1 -1
  286. package/dist/components/ic-text-field2.js +7 -7
  287. package/dist/components/ic-text-field2.js.map +1 -1
  288. package/dist/components/ic-theme.js +2 -2
  289. package/dist/components/ic-theme.js.map +1 -1
  290. package/dist/components/ic-time-input.d.ts +11 -0
  291. package/dist/components/ic-time-input.js +1045 -0
  292. package/dist/components/ic-time-input.js.map +1 -0
  293. package/dist/components/ic-toast-region.js +1 -1
  294. package/dist/components/ic-toast-region.js.map +1 -1
  295. package/dist/components/ic-toast.js +5 -5
  296. package/dist/components/ic-toast.js.map +1 -1
  297. package/dist/components/ic-toggle-button-group.js +2 -2
  298. package/dist/components/ic-toggle-button-group.js.map +1 -1
  299. package/dist/components/ic-toggle-button.js +2 -2
  300. package/dist/components/ic-toggle-button.js.map +1 -1
  301. package/dist/components/ic-tooltip2.js +39 -79
  302. package/dist/components/ic-tooltip2.js.map +1 -1
  303. package/dist/components/ic-top-navigation.js +5 -5
  304. package/dist/components/ic-top-navigation.js.map +1 -1
  305. package/dist/components/ic-tree-item.js +2 -2
  306. package/dist/components/ic-tree-view.js +3 -3
  307. package/dist/components/ic-typography2.js +2 -2
  308. package/dist/components/ic-typography2.js.map +1 -1
  309. package/dist/core/core.css +236 -16
  310. package/dist/core/core.esm.js +1 -1
  311. package/dist/core/core.esm.js.map +1 -1
  312. package/dist/core/{p-e253a857.js → p-0f22f41e.js} +2 -2
  313. package/dist/core/p-0f22f41e.js.map +1 -0
  314. package/dist/core/{p-0dc0d839.entry.js → p-0fad83d8.entry.js} +2 -2
  315. package/dist/core/{p-0dc0d839.entry.js.map → p-0fad83d8.entry.js.map} +1 -1
  316. package/dist/core/{p-42913c5b.entry.js → p-145c0245.entry.js} +2 -2
  317. package/dist/core/{p-42913c5b.entry.js.map → p-145c0245.entry.js.map} +1 -1
  318. package/dist/core/{p-15ec796a.entry.js → p-17acca45.entry.js} +2 -2
  319. package/dist/core/{p-15ec796a.entry.js.map → p-17acca45.entry.js.map} +1 -1
  320. package/dist/core/p-1a5efa3e.entry.js +2 -0
  321. package/dist/core/{p-032113b9.entry.js.map → p-1a5efa3e.entry.js.map} +1 -1
  322. package/dist/core/{p-4b6818d9.entry.js → p-1cc402b8.entry.js} +2 -2
  323. package/dist/core/{p-4b6818d9.entry.js.map → p-1cc402b8.entry.js.map} +1 -1
  324. package/dist/core/p-20374e30.entry.js +2 -0
  325. package/dist/core/{p-8cb5deba.entry.js.map → p-20374e30.entry.js.map} +1 -1
  326. package/dist/core/{p-fc5661ac.entry.js → p-287e5c17.entry.js} +2 -2
  327. package/dist/core/{p-fc5661ac.entry.js.map → p-287e5c17.entry.js.map} +1 -1
  328. package/dist/core/p-2f4f4aea.entry.js +2 -0
  329. package/dist/core/p-2f4f4aea.entry.js.map +1 -0
  330. package/dist/core/p-2fe31f66.entry.js +2 -0
  331. package/dist/core/p-2fe31f66.entry.js.map +1 -0
  332. package/dist/core/{p-a220535c.entry.js → p-31d6d587.entry.js} +2 -2
  333. package/dist/core/{p-a220535c.entry.js.map → p-31d6d587.entry.js.map} +1 -1
  334. package/dist/core/{p-3cf99186.entry.js → p-364cc350.entry.js} +2 -2
  335. package/dist/core/{p-6e7aaca5.entry.js → p-3f241d71.entry.js} +2 -2
  336. package/dist/core/{p-6e7aaca5.entry.js.map → p-3f241d71.entry.js.map} +1 -1
  337. package/dist/core/{p-bbf39a76.entry.js → p-40743d97.entry.js} +2 -2
  338. package/dist/core/{p-bbf39a76.entry.js.map → p-40743d97.entry.js.map} +1 -1
  339. package/dist/core/{p-b88585bf.entry.js → p-43285eeb.entry.js} +2 -2
  340. package/dist/core/{p-b88585bf.entry.js.map → p-43285eeb.entry.js.map} +1 -1
  341. package/dist/core/{p-9e051db4.entry.js → p-45dd12ee.entry.js} +2 -2
  342. package/dist/core/{p-9e051db4.entry.js.map → p-45dd12ee.entry.js.map} +1 -1
  343. package/dist/core/{p-e18ba5d6.entry.js → p-4bddb866.entry.js} +2 -2
  344. package/dist/core/{p-e18ba5d6.entry.js.map → p-4bddb866.entry.js.map} +1 -1
  345. package/dist/core/{p-90364cef.entry.js → p-518a8e87.entry.js} +2 -2
  346. package/dist/core/{p-90364cef.entry.js.map → p-518a8e87.entry.js.map} +1 -1
  347. package/dist/core/{p-e2103bcc.entry.js → p-51e2de77.entry.js} +2 -2
  348. package/dist/core/{p-e2103bcc.entry.js.map → p-51e2de77.entry.js.map} +1 -1
  349. package/dist/core/{p-78635447.entry.js → p-558936fb.entry.js} +2 -2
  350. package/dist/core/{p-8d908a57.entry.js → p-588a331f.entry.js} +2 -2
  351. package/dist/core/{p-8d908a57.entry.js.map → p-588a331f.entry.js.map} +1 -1
  352. package/dist/core/p-59048c2a.entry.js +2 -0
  353. package/dist/core/p-59048c2a.entry.js.map +1 -0
  354. package/dist/core/{p-64372a57.entry.js → p-5976d13e.entry.js} +2 -2
  355. package/dist/core/{p-64372a57.entry.js.map → p-5976d13e.entry.js.map} +1 -1
  356. package/dist/core/{p-a26a60ff.entry.js → p-5ac30e1f.entry.js} +2 -2
  357. package/dist/core/{p-a26a60ff.entry.js.map → p-5ac30e1f.entry.js.map} +1 -1
  358. package/dist/core/p-5c7c7205.entry.js +2 -0
  359. package/dist/core/p-5c7c7205.entry.js.map +1 -0
  360. package/dist/core/{p-d281c3cf.entry.js → p-5fbc8e62.entry.js} +2 -2
  361. package/dist/core/{p-d281c3cf.entry.js.map → p-5fbc8e62.entry.js.map} +1 -1
  362. package/dist/core/{p-832c7042.entry.js → p-608a8a4d.entry.js} +2 -2
  363. package/dist/core/p-66ae9eb3.entry.js +2 -0
  364. package/dist/core/p-66ae9eb3.entry.js.map +1 -0
  365. package/dist/core/p-6796acff.entry.js +2 -0
  366. package/dist/core/p-6796acff.entry.js.map +1 -0
  367. package/dist/core/{p-b1b27b7e.entry.js → p-6e8ef73c.entry.js} +2 -2
  368. package/dist/core/{p-b1b27b7e.entry.js.map → p-6e8ef73c.entry.js.map} +1 -1
  369. package/dist/core/p-7d2d067f.entry.js +2 -0
  370. package/dist/core/p-7d2d067f.entry.js.map +1 -0
  371. package/dist/core/{p-5d987f8f.entry.js → p-8051e61b.entry.js} +2 -2
  372. package/dist/core/{p-5d987f8f.entry.js.map → p-8051e61b.entry.js.map} +1 -1
  373. package/dist/core/{p-f569a91f.entry.js → p-812a0246.entry.js} +2 -2
  374. package/dist/core/{p-f569a91f.entry.js.map → p-812a0246.entry.js.map} +1 -1
  375. package/dist/core/p-816aae93.entry.js +2 -0
  376. package/dist/core/p-816aae93.entry.js.map +1 -0
  377. package/dist/core/{p-ead0acc3.entry.js → p-8908b8e6.entry.js} +2 -2
  378. package/dist/core/{p-3448c713.entry.js → p-8b5022bc.entry.js} +2 -2
  379. package/dist/core/{p-3448c713.entry.js.map → p-8b5022bc.entry.js.map} +1 -1
  380. package/dist/core/{p-bf93baea.entry.js → p-91646e38.entry.js} +2 -2
  381. package/dist/core/{p-bf93baea.entry.js.map → p-91646e38.entry.js.map} +1 -1
  382. package/dist/core/{p-826a6c25.entry.js → p-9863a070.entry.js} +2 -2
  383. package/dist/core/{p-826a6c25.entry.js.map → p-9863a070.entry.js.map} +1 -1
  384. package/dist/core/{p-0f86ea09.entry.js → p-999f0a5d.entry.js} +2 -2
  385. package/dist/core/{p-0f86ea09.entry.js.map → p-999f0a5d.entry.js.map} +1 -1
  386. package/dist/core/{p-137dd76e.entry.js → p-9fe5e2eb.entry.js} +2 -2
  387. package/dist/core/{p-137dd76e.entry.js.map → p-9fe5e2eb.entry.js.map} +1 -1
  388. package/dist/core/p-9fffb01e.entry.js +2 -0
  389. package/dist/core/p-9fffb01e.entry.js.map +1 -0
  390. package/dist/core/{p-2d8900bf.entry.js → p-aa94c4b0.entry.js} +2 -2
  391. package/dist/core/{p-2d8900bf.entry.js.map → p-aa94c4b0.entry.js.map} +1 -1
  392. package/dist/core/p-ad48c77c.entry.js +2 -0
  393. package/dist/core/p-ad48c77c.entry.js.map +1 -0
  394. package/dist/core/p-afece95e.entry.js +2 -0
  395. package/dist/core/p-afece95e.entry.js.map +1 -0
  396. package/dist/core/p-b0462734.entry.js +2 -0
  397. package/dist/core/p-b0462734.entry.js.map +1 -0
  398. package/dist/core/{p-5237f3ac.entry.js → p-b87e4485.entry.js} +2 -2
  399. package/dist/core/{p-755bdc43.entry.js → p-b8938f93.entry.js} +2 -2
  400. package/dist/core/{p-33404c14.entry.js → p-b93e8ecb.entry.js} +2 -2
  401. package/dist/core/{p-33404c14.entry.js.map → p-b93e8ecb.entry.js.map} +1 -1
  402. package/dist/core/{p-c86ca475.js → p-bc441e4c.js} +2 -2
  403. package/dist/core/p-bc441e4c.js.map +1 -0
  404. package/dist/core/p-bc7d730d.entry.js +2 -0
  405. package/dist/core/p-bc7d730d.entry.js.map +1 -0
  406. package/dist/core/{p-94065f7a.entry.js → p-be5df6a9.entry.js} +2 -2
  407. package/dist/core/{p-94065f7a.entry.js.map → p-be5df6a9.entry.js.map} +1 -1
  408. package/dist/core/{p-bc974a3e.entry.js → p-c067e62c.entry.js} +2 -2
  409. package/dist/core/{p-bc974a3e.entry.js.map → p-c067e62c.entry.js.map} +1 -1
  410. package/dist/core/p-c3fe54ab.entry.js +2 -0
  411. package/dist/core/{p-1e256460.entry.js.map → p-c3fe54ab.entry.js.map} +1 -1
  412. package/dist/core/{p-b3509380.entry.js → p-c4bf8742.entry.js} +2 -2
  413. package/dist/core/{p-2c4bf16f.entry.js → p-cb4522ed.entry.js} +2 -2
  414. package/dist/core/{p-2c4bf16f.entry.js.map → p-cb4522ed.entry.js.map} +1 -1
  415. package/dist/core/{p-8397766e.entry.js → p-d13a066e.entry.js} +2 -2
  416. package/dist/core/{p-8397766e.entry.js.map → p-d13a066e.entry.js.map} +1 -1
  417. package/dist/core/p-d41b0da0.entry.js +2 -0
  418. package/dist/core/p-d41b0da0.entry.js.map +1 -0
  419. package/dist/core/{p-cc36abaa.entry.js → p-d47e200c.entry.js} +2 -2
  420. package/dist/core/p-dd7450fb.js +2 -0
  421. package/dist/core/p-dd7450fb.js.map +1 -0
  422. package/dist/core/{p-6dd73165.entry.js → p-df88ff5b.entry.js} +2 -2
  423. package/dist/core/{p-6dd73165.entry.js.map → p-df88ff5b.entry.js.map} +1 -1
  424. package/dist/core/p-e543f2e7.entry.js +2 -0
  425. package/dist/core/p-e543f2e7.entry.js.map +1 -0
  426. package/dist/core/{p-c77d6efc.entry.js → p-e7f22a19.entry.js} +2 -2
  427. package/dist/core/{p-c77d6efc.entry.js.map → p-e7f22a19.entry.js.map} +1 -1
  428. package/dist/core/p-ea061ccf.entry.js +2 -0
  429. package/dist/core/p-ea061ccf.entry.js.map +1 -0
  430. package/dist/core/p-efa95979.js +2 -0
  431. package/dist/core/p-efa95979.js.map +1 -0
  432. package/dist/core/{p-b27bc1a1.entry.js → p-efe2fbd7.entry.js} +2 -2
  433. package/dist/core/{p-b27bc1a1.entry.js.map → p-efe2fbd7.entry.js.map} +1 -1
  434. package/dist/core/{p-9097a16a.entry.js → p-f3201a0b.entry.js} +2 -2
  435. package/dist/core/{p-9097a16a.entry.js.map → p-f3201a0b.entry.js.map} +1 -1
  436. package/dist/core/{p-75901d06.entry.js → p-f517f412.entry.js} +2 -2
  437. package/dist/core/{p-fb7f4e2e.entry.js → p-f7d746d7.entry.js} +2 -2
  438. package/dist/core/{p-fb7f4e2e.entry.js.map → p-f7d746d7.entry.js.map} +1 -1
  439. package/dist/core/p-fb8c47ce.entry.js +2 -0
  440. package/dist/core/p-fb8c47ce.entry.js.map +1 -0
  441. package/dist/core/{p-cd8178a9.entry.js → p-fecef807.entry.js} +2 -2
  442. package/dist/core/{p-cd8178a9.entry.js.map → p-fecef807.entry.js.map} +1 -1
  443. package/dist/core/p-ffac41d6.entry.js +2 -0
  444. package/dist/core/p-ffac41d6.entry.js.map +1 -0
  445. package/dist/esm/clear-icon-1c79bda2.js +8 -0
  446. package/dist/esm/clear-icon-1c79bda2.js.map +1 -0
  447. package/dist/esm/core.js +1 -1
  448. package/dist/esm/{date-helpers-3b8c39ab.js → date-helpers-2b531c8c.js} +5 -9
  449. package/dist/esm/date-helpers-2b531c8c.js.map +1 -0
  450. package/dist/esm/{helpers-d9387cd3.js → helpers-89cb996d.js} +2 -2
  451. package/dist/esm/helpers-89cb996d.js.map +1 -0
  452. package/dist/esm/{helpers-574534c9.js → helpers-f3928d01.js} +32 -8
  453. package/dist/esm/helpers-f3928d01.js.map +1 -0
  454. package/dist/esm/ic-accordion-group.entry.js +1 -1
  455. package/dist/esm/ic-accordion.entry.js +1 -1
  456. package/dist/esm/ic-action-chip.entry.js +112 -0
  457. package/dist/esm/ic-action-chip.entry.js.map +1 -0
  458. package/dist/esm/ic-alert.entry.js +2 -2
  459. package/dist/esm/ic-alert.entry.js.map +1 -1
  460. package/dist/esm/ic-back-to-top.entry.js +4 -4
  461. package/dist/esm/ic-back-to-top.entry.js.map +1 -1
  462. package/dist/esm/ic-badge.entry.js +4 -4
  463. package/dist/esm/ic-badge.entry.js.map +1 -1
  464. package/dist/esm/ic-breadcrumb-group.entry.js +3 -3
  465. package/dist/esm/ic-breadcrumb-group.entry.js.map +1 -1
  466. package/dist/esm/ic-breadcrumb.entry.js +3 -3
  467. package/dist/esm/ic-breadcrumb.entry.js.map +1 -1
  468. package/dist/esm/ic-button_3.entry.js +56 -96
  469. package/dist/esm/ic-button_3.entry.js.map +1 -1
  470. package/dist/esm/ic-card-horizontal.entry.js +1 -1
  471. package/dist/esm/ic-card-vertical.entry.js +5 -5
  472. package/dist/esm/ic-card-vertical.entry.js.map +1 -1
  473. package/dist/esm/ic-checkbox-group.entry.js +3 -3
  474. package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
  475. package/dist/esm/ic-checkbox_3.entry.js +9 -9
  476. package/dist/esm/ic-checkbox_3.entry.js.map +1 -1
  477. package/dist/esm/ic-chip.entry.js +13 -5
  478. package/dist/esm/ic-chip.entry.js.map +1 -1
  479. package/dist/esm/ic-classification-banner.entry.js +2 -2
  480. package/dist/esm/ic-classification-banner.entry.js.map +1 -1
  481. package/dist/esm/ic-data-list.entry.js +3 -3
  482. package/dist/esm/ic-data-list.entry.js.map +1 -1
  483. package/dist/esm/ic-data-row.entry.js +4 -4
  484. package/dist/esm/ic-data-row.entry.js.map +1 -1
  485. package/dist/esm/ic-data-table-title-bar.entry.js +1 -1
  486. package/dist/esm/ic-data-table.entry.js +44 -57
  487. package/dist/esm/ic-data-table.entry.js.map +1 -1
  488. package/dist/esm/ic-date-input.entry.js +27 -19
  489. package/dist/esm/ic-date-input.entry.js.map +1 -1
  490. package/dist/esm/ic-date-picker.entry.js +14 -14
  491. package/dist/esm/ic-date-picker.entry.js.map +1 -1
  492. package/dist/esm/ic-dialog.entry.js +2 -2
  493. package/dist/esm/ic-dialog.entry.js.map +1 -1
  494. package/dist/esm/ic-divider.entry.js +1 -1
  495. package/dist/esm/ic-footer-link-group.entry.js +1 -1
  496. package/dist/esm/ic-footer-link.entry.js +3 -3
  497. package/dist/esm/ic-footer-link.entry.js.map +1 -1
  498. package/dist/esm/ic-footer.entry.js +4 -4
  499. package/dist/esm/ic-footer.entry.js.map +1 -1
  500. package/dist/esm/ic-hero.entry.js +5 -5
  501. package/dist/esm/ic-hero.entry.js.map +1 -1
  502. package/dist/esm/ic-horizontal-scroll.entry.js +6 -6
  503. package/dist/esm/ic-horizontal-scroll.entry.js.map +1 -1
  504. package/dist/esm/ic-input-component-container_4.entry.js +217 -0
  505. package/dist/esm/ic-input-component-container_4.entry.js.map +1 -0
  506. package/dist/esm/ic-layout-grid-item.entry.js +66 -0
  507. package/dist/esm/ic-layout-grid-item.entry.js.map +1 -0
  508. package/dist/esm/ic-layout-grid.entry.js +152 -0
  509. package/dist/esm/ic-layout-grid.entry.js.map +1 -0
  510. package/dist/esm/ic-link.entry.js +2 -2
  511. package/dist/esm/ic-link.entry.js.map +1 -1
  512. package/dist/esm/ic-menu-group.entry.js +2 -2
  513. package/dist/esm/ic-menu-group.entry.js.map +1 -1
  514. package/dist/esm/ic-menu-item.entry.js +1 -1
  515. package/dist/esm/{ic-input-component-container_3.entry.js → ic-menu.entry.js} +7 -96
  516. package/dist/esm/ic-menu.entry.js.map +1 -0
  517. package/dist/esm/ic-navigation-button.entry.js +3 -3
  518. package/dist/esm/ic-navigation-button.entry.js.map +1 -1
  519. package/dist/esm/ic-navigation-group.entry.js +3 -3
  520. package/dist/esm/ic-navigation-group.entry.js.map +1 -1
  521. package/dist/esm/ic-navigation-item.entry.js +3 -3
  522. package/dist/esm/ic-navigation-item.entry.js.map +1 -1
  523. package/dist/esm/ic-navigation-menu.entry.js +5 -5
  524. package/dist/esm/ic-navigation-menu.entry.js.map +1 -1
  525. package/dist/esm/ic-page-header.entry.js +7 -7
  526. package/dist/esm/ic-page-header.entry.js.map +1 -1
  527. package/dist/esm/ic-pagination_4.entry.js +18 -18
  528. package/dist/esm/ic-pagination_4.entry.js.map +1 -1
  529. package/dist/esm/ic-popover-menu.entry.js +10 -6
  530. package/dist/esm/ic-popover-menu.entry.js.map +1 -1
  531. package/dist/esm/ic-radio-group.entry.js +5 -5
  532. package/dist/esm/ic-radio-group.entry.js.map +1 -1
  533. package/dist/esm/ic-radio-option.entry.js +5 -5
  534. package/dist/esm/ic-radio-option.entry.js.map +1 -1
  535. package/dist/esm/ic-search-bar.entry.js +10 -10
  536. package/dist/esm/ic-search-bar.entry.js.map +1 -1
  537. package/dist/esm/ic-section-container.entry.js +2 -2
  538. package/dist/esm/ic-section-container.entry.js.map +1 -1
  539. package/dist/esm/ic-side-navigation.entry.js +5 -5
  540. package/dist/esm/ic-side-navigation.entry.js.map +1 -1
  541. package/dist/esm/ic-skeleton.entry.js +2 -2
  542. package/dist/esm/ic-skeleton.entry.js.map +1 -1
  543. package/dist/esm/ic-skip-link.entry.js +2 -2
  544. package/dist/esm/ic-skip-link.entry.js.map +1 -1
  545. package/dist/esm/ic-status-tag.entry.js +3 -3
  546. package/dist/esm/ic-status-tag.entry.js.map +1 -1
  547. package/dist/esm/ic-step.entry.js +14 -14
  548. package/dist/esm/ic-step.entry.js.map +1 -1
  549. package/dist/esm/ic-stepper.entry.js +3 -3
  550. package/dist/esm/ic-stepper.entry.js.map +1 -1
  551. package/dist/esm/ic-switch.entry.js +5 -5
  552. package/dist/esm/ic-switch.entry.js.map +1 -1
  553. package/dist/esm/ic-tab-context.entry.js +1 -1
  554. package/dist/esm/ic-tab-context.entry.js.map +1 -1
  555. package/dist/esm/ic-tab-group.entry.js +3 -3
  556. package/dist/esm/ic-tab-group.entry.js.map +1 -1
  557. package/dist/esm/ic-tab-panel.entry.js +2 -2
  558. package/dist/esm/ic-tab-panel.entry.js.map +1 -1
  559. package/dist/esm/ic-tab.entry.js +3 -3
  560. package/dist/esm/ic-tab.entry.js.map +1 -1
  561. package/dist/esm/ic-theme.entry.js +2 -2
  562. package/dist/esm/ic-theme.entry.js.map +1 -1
  563. package/dist/esm/ic-time-input.entry.js +939 -0
  564. package/dist/esm/ic-time-input.entry.js.map +1 -0
  565. package/dist/esm/ic-toast-region.entry.js +1 -1
  566. package/dist/esm/ic-toast-region.entry.js.map +1 -1
  567. package/dist/esm/ic-toast.entry.js +5 -5
  568. package/dist/esm/ic-toast.entry.js.map +1 -1
  569. package/dist/esm/ic-toggle-button-group.entry.js +3 -3
  570. package/dist/esm/ic-toggle-button-group.entry.js.map +1 -1
  571. package/dist/esm/ic-toggle-button.entry.js +3 -3
  572. package/dist/esm/ic-toggle-button.entry.js.map +1 -1
  573. package/dist/esm/ic-top-navigation.entry.js +5 -5
  574. package/dist/esm/ic-top-navigation.entry.js.map +1 -1
  575. package/dist/esm/ic-tree-item.entry.js +3 -3
  576. package/dist/esm/ic-tree-view.entry.js +4 -4
  577. package/dist/esm/ic-typography.entry.js +3 -3
  578. package/dist/esm/ic-typography.entry.js.map +1 -1
  579. package/dist/esm/index-a7a720e7.js +20 -4
  580. package/dist/esm/loader.js +1 -1
  581. package/dist/types/components/ic-data-table/ic-data-table.types.d.ts +12 -7
  582. package/dist/types/components/ic-data-table/story-data.d.ts +11 -20
  583. package/dist/types/components/ic-date-input/ic-date-input.d.ts +2 -1
  584. package/dist/types/components/ic-date-picker/ic-date-picker.stories.d.ts +8 -0
  585. package/dist/types/components/ic-date-picker/story-data.d.ts +1 -0
  586. package/dist/types/components/ic-time-input/ic-time-input.d.ts +229 -0
  587. package/dist/types/components/ic-time-input/ic-time-input.stories.d.ts +121 -0
  588. package/dist/types/components/ic-time-input/test/helpers/ic-time-input.d.ts +23 -0
  589. package/dist/types/components.d.ts +234 -2
  590. package/dist/types/utils/date-helpers.d.ts +1 -1
  591. package/dist/types/utils/types.d.ts +5 -0
  592. package/hydrate/index.js +1828 -476
  593. package/hydrate/index.mjs +1828 -476
  594. package/package.json +3 -3
  595. package/dist/cjs/date-helpers-6f70dd03.js.map +0 -1
  596. package/dist/cjs/helpers-74cf2649.js.map +0 -1
  597. package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +0 -1
  598. package/dist/cjs/ic-input-label_2.cjs.entry.js +0 -133
  599. package/dist/cjs/ic-input-label_2.cjs.entry.js.map +0 -1
  600. package/dist/core/p-032113b9.entry.js +0 -2
  601. package/dist/core/p-0fe08a58.js +0 -2
  602. package/dist/core/p-0fe08a58.js.map +0 -1
  603. package/dist/core/p-156fc5f1.entry.js +0 -2
  604. package/dist/core/p-156fc5f1.entry.js.map +0 -1
  605. package/dist/core/p-1e256460.entry.js +0 -2
  606. package/dist/core/p-1ffac8ae.entry.js +0 -2
  607. package/dist/core/p-1ffac8ae.entry.js.map +0 -1
  608. package/dist/core/p-224b2e14.entry.js +0 -2
  609. package/dist/core/p-224b2e14.entry.js.map +0 -1
  610. package/dist/core/p-2de3287c.entry.js +0 -2
  611. package/dist/core/p-2de3287c.entry.js.map +0 -1
  612. package/dist/core/p-497918fd.entry.js +0 -2
  613. package/dist/core/p-497918fd.entry.js.map +0 -1
  614. package/dist/core/p-6f72e6ac.entry.js +0 -2
  615. package/dist/core/p-6f72e6ac.entry.js.map +0 -1
  616. package/dist/core/p-88c5ec78.entry.js +0 -2
  617. package/dist/core/p-88c5ec78.entry.js.map +0 -1
  618. package/dist/core/p-8cb5deba.entry.js +0 -2
  619. package/dist/core/p-95881758.entry.js +0 -2
  620. package/dist/core/p-95881758.entry.js.map +0 -1
  621. package/dist/core/p-97abdbf7.entry.js +0 -2
  622. package/dist/core/p-97abdbf7.entry.js.map +0 -1
  623. package/dist/core/p-a54eb1d1.entry.js +0 -2
  624. package/dist/core/p-a54eb1d1.entry.js.map +0 -1
  625. package/dist/core/p-c67381b1.entry.js +0 -2
  626. package/dist/core/p-c67381b1.entry.js.map +0 -1
  627. package/dist/core/p-c86ca475.js.map +0 -1
  628. package/dist/core/p-c94e7b0b.entry.js +0 -2
  629. package/dist/core/p-c94e7b0b.entry.js.map +0 -1
  630. package/dist/core/p-cdd6d5e8.entry.js +0 -2
  631. package/dist/core/p-cdd6d5e8.entry.js.map +0 -1
  632. package/dist/core/p-d04b75cb.entry.js +0 -2
  633. package/dist/core/p-d04b75cb.entry.js.map +0 -1
  634. package/dist/core/p-e253a857.js.map +0 -1
  635. package/dist/esm/date-helpers-3b8c39ab.js.map +0 -1
  636. package/dist/esm/helpers-574534c9.js.map +0 -1
  637. package/dist/esm/helpers-d9387cd3.js.map +0 -1
  638. package/dist/esm/ic-input-component-container_3.entry.js.map +0 -1
  639. package/dist/esm/ic-input-label_2.entry.js +0 -128
  640. package/dist/esm/ic-input-label_2.entry.js.map +0 -1
  641. /package/dist/core/{p-3cf99186.entry.js.map → p-364cc350.entry.js.map} +0 -0
  642. /package/dist/core/{p-78635447.entry.js.map → p-558936fb.entry.js.map} +0 -0
  643. /package/dist/core/{p-832c7042.entry.js.map → p-608a8a4d.entry.js.map} +0 -0
  644. /package/dist/core/{p-ead0acc3.entry.js.map → p-8908b8e6.entry.js.map} +0 -0
  645. /package/dist/core/{p-5237f3ac.entry.js.map → p-b87e4485.entry.js.map} +0 -0
  646. /package/dist/core/{p-755bdc43.entry.js.map → p-b8938f93.entry.js.map} +0 -0
  647. /package/dist/core/{p-b3509380.entry.js.map → p-c4bf8742.entry.js.map} +0 -0
  648. /package/dist/core/{p-cc36abaa.entry.js.map → p-d47e200c.entry.js.map} +0 -0
  649. /package/dist/core/{p-75901d06.entry.js.map → p-f517f412.entry.js.map} +0 -0
@@ -1,2 +1,2 @@
1
- import{r as n,h as e,H as t,g as i}from"./p-8e4e97b4.js";import{r as a,i as o,b as r,a as c,h as d,I as s}from"./p-0fe08a58.js";import{C as l}from"./p-170ddfc2.js";const b='/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */\n\n/* Document\n ========================================================================== */\n\n/**\n * 1. Correct the line height in all browsers.\n * 2. Prevent adjustments of font size after orientation changes in iOS.\n */\n\nhtml {\n line-height: 1.15; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n}\n\n/* Sections\n ========================================================================== */\n\n/**\n * Remove the margin in all browsers.\n */\n\nbody {\n margin: 0;\n}\n\n/**\n * Render the `main` element consistently in IE.\n */\n\nmain {\n display: block;\n}\n\n/**\n * Correct the font size and margin on `h1` elements within `section` and\n * `article` contexts in Chrome, Firefox, and Safari.\n */\n\nh1 {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/* Grouping content\n ========================================================================== */\n\n/**\n * 1. Add the correct box sizing in Firefox.\n * 2. Show the overflow in Edge and IE.\n */\n\nhr {\n box-sizing: content-box; /* 1 */\n height: 0; /* 1 */\n overflow: visible; /* 2 */\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\npre {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/* Text-level semantics\n ========================================================================== */\n\n/**\n * Remove the gray background on active links in IE 10.\n */\n\na {\n background-color: transparent;\n}\n\n/**\n * 1. Remove the bottom border in Chrome 57-\n * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.\n */\n\nabbr[title] {\n border-bottom: none; /* 1 */\n text-decoration: underline; /* 2 */\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted; /* 2 */\n}\n\n/**\n * Add the correct font weight in Chrome, Edge, and Safari.\n */\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\ncode,\nkbd,\nsamp {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/**\n * Add the correct font size in all browsers.\n */\n\nsmall {\n font-size: 80%;\n}\n\n/**\n * Prevent `sub` and `sup` elements from affecting the line height in\n * all browsers.\n */\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/* Embedded content\n ========================================================================== */\n\n/**\n * Remove the border on images inside links in IE 10.\n */\n\nimg {\n border-style: none;\n}\n\n/* Forms\n ========================================================================== */\n\n/**\n * 1. Change the font styles in all browsers.\n * 2. Remove the margin in Firefox and Safari.\n */\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-size: 100%; /* 1 */\n line-height: 1.15; /* 1 */\n margin: 0; /* 2 */\n}\n\n/**\n * Show the overflow in IE.\n * 1. Show the overflow in Edge.\n */\n\nbutton,\ninput {\n /* 1 */\n overflow: visible;\n}\n\n/**\n * Remove the inheritance of text transform in Edge, Firefox, and IE.\n * 1. Remove the inheritance of text transform in Firefox.\n */\n\nbutton,\nselect {\n /* 1 */\n text-transform: none;\n}\n\n/**\n * Correct the inability to style clickable types in iOS and Safari.\n */\n\nbutton,\n[type="button"],\n[type="reset"],\n[type="submit"] {\n -webkit-appearance: button;\n}\n\n/**\n * Remove the inner border and padding in Firefox.\n */\n\nbutton::-moz-focus-inner,\n[type="button"]::-moz-focus-inner,\n[type="reset"]::-moz-focus-inner,\n[type="submit"]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n}\n\n/**\n * Restore the focus styles unset by the previous rule.\n */\n\nbutton:-moz-focusring,\n[type="button"]:-moz-focusring,\n[type="reset"]:-moz-focusring,\n[type="submit"]:-moz-focusring {\n outline: 1px dotted ButtonText;\n}\n\n/**\n * Correct the padding in Firefox.\n */\n\nfieldset {\n padding: 0.35em 0.75em 0.625em;\n}\n\n/**\n * 1. Correct the text wrapping in Edge and IE.\n * 2. Correct the color inheritance from `fieldset` elements in IE.\n * 3. Remove the padding so developers are not caught out when they zero out\n * `fieldset` elements in all browsers.\n */\n\nlegend {\n box-sizing: border-box; /* 1 */\n color: inherit; /* 2 */\n display: table; /* 1 */\n max-width: 100%; /* 1 */\n padding: 0; /* 3 */\n white-space: normal; /* 1 */\n}\n\n/**\n * Add the correct vertical alignment in Chrome, Firefox, and Opera.\n */\n\nprogress {\n vertical-align: baseline;\n}\n\n/**\n * Remove the default vertical scrollbar in IE 10+.\n */\n\ntextarea {\n overflow: auto;\n}\n\n/**\n * 1. Add the correct box sizing in IE 10.\n * 2. Remove the padding in IE 10.\n */\n\n[type="checkbox"],\n[type="radio"] {\n box-sizing: border-box; /* 1 */\n padding: 0; /* 2 */\n}\n\n/**\n * Correct the cursor style of increment and decrement buttons in Chrome.\n */\n\n[type="number"]::-webkit-inner-spin-button,\n[type="number"]::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * 1. Correct the odd appearance in Chrome and Safari.\n * 2. Correct the outline style in Safari.\n */\n\n[type="search"] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/**\n * Remove the inner padding in Chrome and Safari on macOS.\n */\n\n[type="search"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n * 1. Correct the inability to style clickable types in iOS and Safari.\n * 2. Change font properties to `inherit` in Safari.\n */\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/* Interactive\n ========================================================================== */\n\n/*\n * Add the correct display in Edge, IE 10+, and Firefox.\n */\n\ndetails {\n display: block;\n}\n\n/*\n * Add the correct display in all browsers.\n */\n\nsummary {\n display: list-item;\n}\n\n/* Misc\n ========================================================================== */\n\n/**\n * Add the correct display in IE 10+.\n */\n\ntemplate {\n display: none;\n}\n\n/**\n * Add the correct display in IE 10.\n */\n\n[hidden] {\n display: none;\n}\n\nhtml,\nbody,\ndiv,\nspan,\napplet,\nobject,\niframe,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nblockquote,\npre,\na,\nabbr,\nacronym,\naddress,\nbig,\ncite,\ncode,\ndel,\ndfn,\nem,\nimg,\nins,\nkbd,\nq,\ns,\nsamp,\nsmall,\nstrike,\nstrong,\nsub,\nsup,\ntt,\nvar,\nb,\nu,\ni,\ncenter,\ndl,\ndt,\ndd,\nol,\nul,\nli,\nfieldset,\nform,\nlabel,\nlegend,\ntable,\ncaption,\ntbody,\ntfoot,\nthead,\ntr,\nth,\ntd,\narticle,\naside,\ncanvas,\ndetails,\nembed,\nfigure,\nfigcaption,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\noutput,\nruby,\nsection,\nsummary,\ntime,\nmark,\naudio,\nvideo {\n margin: 0;\n padding: 0;\n border: 0;\n font-size: 100%;\n font-style: inherit;\n vertical-align: baseline;\n}\n\n\n:host {\n display: flex;\n}\n\na {\n text-decoration: none !important;\n color: var(--ic-card-text-primary) !important;\n}\n\na:visited {\n color: var(--ic-card-link-action-dark) !important;\n}\n\nbutton {\n border: none;\n background-color: transparent;\n outline: var(--ic-hc-focus-outline);\n}\n\n.card {\n display: flex;\n flex-direction: column;\n border: var(--ic-space-1px) solid var(--ic-card-border-primary);\n border-radius: var(--ic-border-radius);\n box-sizing: border-box;\n padding: var(--ic-space-md);\n text-align: left;\n color: var(--ic-card-text-primary);\n transition: var(--ic-easing-transition-fast);\n position: relative;\n width: inherit;\n min-width: -moz-fit-content;\n min-width: fit-content;\n height: -moz-fit-content;\n height: fit-content;\n min-height: 100%;\n\n ::slotted(svg) {\n fill: var(--ic-card-icon);\n }\n\n &.monochrome {\n border: var(--ic-border-width) solid var(--ic-card-border-monochrome);\n }\n\n &.fullwidth {\n width: 100%;\n }\n\n &.clickable {\n &:hover {\n background-color: var(--ic-card-background-hover);\n border: var(--ic-space-1px) solid var(--ic-card-hover-border-color);\n cursor: pointer;\n }\n\n &.focussed,\n &:focus {\n background-color: var(--ic-card-background-hover);\n box-shadow: var(--ic-border-focus);\n outline: var(--ic-hc-focus-outline);\n border: var(--ic-space-1px) solid var(--ic-card-pressed-border-color);\n }\n\n &:active {\n background-color: var(--ic-card-background-pressed);\n box-shadow: var(--ic-border-focus);\n\n .card-title {\n text-decoration: none;\n }\n }\n\n .card-title {\n --ic-typography-color: var(--ic-card-clickable-text);\n\n color: var(--ic-card-clickable-text);\n text-decoration: underline;\n text-decoration-thickness: var(--ic-space-1px);\n margin-bottom: var(--ic-space-xxs);\n }\n\n .interaction-button,\n .icon {\n margin-bottom: var(--ic-space-xxs);\n }\n }\n\n &.disabled {\n border: var(--ic-space-1px) dashed var(--ic-card-disabled-border-color);\n\n .card-message,\n .subheading,\n .card-title {\n --ic-typography-color: var(--ic-card-disabled-text);\n }\n\n .card-title {\n text-decoration: underline;\n text-decoration-thickness: var(--ic-space-1px);\n text-decoration-color: var(--ic-card-disabled-text);\n color: var(--ic-card-disabled-text);\n }\n\n ::slotted(svg) {\n fill: var(--ic-card-icon-disabled);\n }\n }\n}\n\n.card-header {\n display: flex;\n align-items: center;\n}\n\n.icon {\n display: flex;\n align-items: center;\n padding-right: var(--ic-space-xs);\n}\n\n.card.clickable:hover .card-title,\n.card.clickable:focus .card-title,\n.card.clickable.focussed .card-title {\n display: inline-block;\n border-bottom: 0.25rem solid !important;\n margin-bottom: 0 !important;\n text-decoration: none;\n}\n\n@supports (text-underline-offset: 25%) {\n .card.clickable:hover .card-title,\n .card.clickable:focus .card-title,\n .card.clickable.focussed .card-title {\n text-decoration-line: underline;\n text-decoration-thickness: 25%;\n text-underline-offset: 25%;\n border-bottom: 0 !important;\n margin-bottom: 0.25rem !important;\n }\n}\n\n.subheading {\n margin-top: var(--ic-space-xxs);\n}\n\n.adornment {\n margin-top: var(--ic-space-xxs);\n}\n\n.card-message {\n margin-top: var(--ic-space-md);\n align-items: left;\n}\n\n.interaction-button {\n margin-left: auto;\n}\n\n.image-top {\n margin-bottom: var(--ic-space-md);\n display: flex;\n justify-content: center;\n}\n\n.image-mid {\n margin-top: var(--ic-space-md);\n display: flex;\n justify-content: center;\n}\n\n.interaction-area {\n display: flex;\n flex-grow: 1;\n gap: var(--ic-space-md);\n margin-top: var(--ic-space-md);\n align-items: flex-end;\n}\n\n.interaction-controls {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: var(--ic-space-sm);\n}\n\n.toggle-button {\n width: 2.5rem;\n height: 2.5rem;\n padding: var(--ic-space-xs);\n margin: var(--ic-space-1px) 0;\n min-width: 0;\n cursor: pointer;\n transition: var(--ic-easing-transition-fast);\n border-radius: var(--ic-border-radius);\n display: inline-flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n background: none;\n border: none;\n box-sizing: border-box;\n white-space: nowrap;\n vertical-align: middle;\n\n &:hover {\n background-color: var(--ic-card-background-hover);\n }\n\n &:focus {\n box-shadow: var(--ic-border-focus);\n }\n\n &:active:not(:focus) {\n background-color: var(--ic-card-background-pressed);\n }\n\n svg {\n pointer-events: none;\n width: 100% !important;\n height: 100% !important;\n fill: currentcolor !important;\n }\n}\n\n#ic-tooltip-expand-button {\n margin-left: auto;\n position: relative;\n}\n\n.toggle-button-closed svg {\n transform: rotate(90deg);\n}\n\n.toggle-button-expanded svg {\n transform: rotate(-90deg);\n}\n\n.expanded-content {\n margin-top: var(--ic-space-md);\n}\n\n/** High Contrast **/\n@media (forced-colors: active) {\n .card {\n ::slotted(svg) {\n fill: currentcolor;\n }\n\n &.disabled {\n border-color: GrayText !important;\n\n ::slotted(svg) {\n fill: GrayText !important;\n }\n\n .card-message,\n .subheading,\n .card-title {\n color: GrayText;\n\n --ic-typography-color: GrayText;\n }\n }\n }\n\n .toggle-button:focus,\n .toggle-button:hover {\n outline-color: Highlight;\n }\n}\n';const h=b;const f=class{constructor(e){n(this,e);this.hostMutationObserver=null;this.areaExpanded=false;this.isFocussed=false;this.monochrome=false;this.parentEl=null;this.parentIsAnchorTag=false;this.clickable=false;this.disabled=false;this.expandable=false;this.fullWidth=false;this.hreflang="";this.message="";this.theme="inherit";this.parentFocussed=()=>{this.isFocussed=true};this.parentBlurred=()=>{this.isFocussed=false};this.toggleExpanded=()=>{this.areaExpanded=!this.areaExpanded}}watchDisabledHandler(){a(this.disabled,this.el)}disconnectedCallback(){var n;if(this.parentEl&&this.parentIsAnchorTag){this.parentEl.removeEventListener("focus",this.parentFocussed);this.parentEl.removeEventListener("blur",this.parentBlurred)}(n=this.hostMutationObserver)===null||n===void 0?void 0:n.disconnect()}componentWillLoad(){var n;this.parentEl=this.el.parentElement;if(((n=this.parentEl)===null||n===void 0?void 0:n.tagName)==="A"){this.clickable=true;this.parentIsAnchorTag=true;this.parentEl.classList.add("ic-card-wrapper-link");this.parentEl.addEventListener("focus",this.parentFocussed);this.parentEl.addEventListener("blur",this.parentBlurred)}a(this.disabled,this.el)}componentDidLoad(){!o(this.el,"heading")&&r([{prop:this.heading,propName:"heading"}],"Card");this.updateTheme();this.hostMutationObserver=new MutationObserver((n=>c(n,["message","adornment","expanded-content","image-top","image-mid","icon","interaction-button","badge","interaction-controls"],this)));this.hostMutationObserver.observe(this.el,{childList:true})}handleHostClick(n){if(this.disabled){n.stopImmediatePropagation()}}brandChangeHandler(n){this.updateTheme(n.detail.mode)}async setFocus(){var n,e;const t=this.el.shadowRoot;if(t){if(t.querySelector("a")){(n=t.querySelector("a"))===null||n===void 0?void 0:n.focus()}else if(t.querySelector("button")){(e=t.querySelector("button"))===null||e===void 0?void 0:e.focus()}}}updateTheme(n=null){const e=d(this.el,n);if(e!==s.Default){this.monochrome=true;this.theme=e===s.Light?s.Dark:s.Light}}render(){const{clickable:n,disabled:i,expandable:a,fullWidth:r,heading:c,isFocussed:d,message:s,monochrome:b,href:h,hreflang:f,parentIsAnchorTag:m,referrerpolicy:p,rel:g,subheading:u,target:v,theme:y}=this;const x=m||!n?"div":h===undefined?"button":"a";const k=x=="a"&&{href:h,hrefLang:f,referrerPolicy:p,rel:g,target:v};return e(t,{key:"d62f341e096d81fa917e578aa55c99d6d828c9e3",class:{[`ic-theme-${y}`]:y!=="inherit"}},e(x,Object.assign({key:"742b03d9281d850a9052638038980b45ca567c17",class:{card:true,clickable:!!n&&!i,disabled:!!i,fullwidth:!!r,focussed:d,monochrome:b},tabindex:n&&!m?0:undefined,"aria-disabled":i?"true":null,disabled:i},k),o(this.el,"image-top")&&e("div",{key:"d5f584871df498cf11acb97ff3694115d4819a73",class:"image-top"},e("slot",{key:"88fa5d9566421a5ca724622bb11b0ad593babecb",name:"image-top"})),e("div",{key:"3211c93ebca0fcddad4ac7ce75999ab8d7939442",class:"card-header"},o(this.el,"icon")&&e("div",{key:"c80cf3c24f0cbdf7cac901ee8c945c4d1432fe9f",class:"icon"},e("slot",{key:"7e087604510f545b891f104f972ee50ac686b9be",name:"icon"})),e("div",{key:"02bc7be8d85faee7b497c2b2608d80f70b79ec86",class:"card-title"},e("slot",{key:"e5285ad53121d899dd27966860b664fe1ecc388f",name:"heading"},e("ic-typography",{key:"00573eddbbdd537b86a1331bd2b2db4a443a13c0",variant:"h4"},e("p",{key:"bccc52bc8feadd3abe0cd8092819258dc2e155c8"},c)))),o(this.el,"interaction-button")&&e("div",{key:"f9f2baeee122976ab5ffa8e3dff9027bb78db6b4",class:"interaction-button"},e("slot",{key:"01b087c7b7ff9fa54dfb1171c5a4899cf090b45c",name:"interaction-button"}))),(u||o(this.el,"subheading"))&&e("div",{key:"81f19c8c0d726ebbb35f71375a35fac342e4e7cd",class:"subheading"},e("slot",{key:"17c871d9694857824afb3c9f7593c8498873d810",name:"subheading"},e("ic-typography",{key:"9ca1068e95a3c69def8ec0bf82135dd36ed57fbc",variant:"subtitle-small"},u))),o(this.el,"adornment")&&e("div",{key:"e43dadfb629c3a5dd28a6b1c46555dfade8d498f",class:"adornment"},e("slot",{key:"b8f63d79ffaff166020d643497ad8b92f4580a0e",name:"adornment"})),o(this.el,"image-mid")&&e("div",{key:"1077bd869310c629a1b154e031dbed14559798b7",class:"image-mid"},e("slot",{key:"f598c5ddfb5a591f3988c49b3f7be1e84fb87552",name:"image-mid"})),(s||o(this.el,"message"))&&e("div",{key:"08d46a26aac3972495cc7724ff8fbd55cc90a31c",class:"card-message"},s&&e("ic-typography",{key:"50c632b1ac9fed137e668ceec4f1fe35f9a2cf99",variant:"body"},s),o(this.el,"message")&&e("slot",{key:"2b971484237d985d4318993477d39b5f6d1e8f0d",name:"message"})),(o(this.el,"interaction-controls")||a)&&e("div",{key:"3e7f6bc8df858349187486fb9e9ebec56d42d0a5",class:"interaction-area"},e("div",{key:"4fd96e05aa6daef84d93d8f1da4dd80b2d349623",class:"interaction-controls"},e("slot",{key:"2f690307f464bb1f710344723b2f76078334ea30",name:"interaction-controls"})),a&&e("ic-tooltip",{key:"9880fae8f9a52bdfe1820df5cbfc92af33080e2a",id:"ic-tooltip-expand-button",label:"Toggle expandable area",silent:true},e("button",{key:"0d1656a001fa061ebae17757a560ba11dae90339",class:{"toggle-button":true,[`toggle-button-${this.areaExpanded?"expanded":"closed"}`]:true},"aria-label":"Toggle expandable area","aria-expanded":`${this.areaExpanded}`,"aria-controls":this.areaExpanded?"expanded-content-area":null,onClick:this.toggleExpanded,innerHTML:l}))),o(this.el,"expanded-content")&&this.areaExpanded&&e("div",{key:"dc55cb4419b35c1f5f6b771cf5dc62c1d77626a7",class:"expanded-content",id:"expanded-content-area"},e("slot",{key:"3b0d0c87d0467ffde6e62ed49b9116280a6c7108",name:"expanded-content"})),o(this.el,"badge")&&e("slot",{key:"f51d29f2b88429b0e0024c6f9ba34abaf4e1a6d1",name:"badge"})))}get el(){return i(this)}static get watchers(){return{disabled:["watchDisabledHandler"]}}};f.style=h;export{f as ic_card_vertical};
2
- //# sourceMappingURL=p-33404c14.entry.js.map
1
+ import{r as n,h as e,H as t,g as a}from"./p-8e4e97b4.js";import{r as i,i as o,o as r,a as c,j as d,I as s}from"./p-efa95979.js";import{C as l}from"./p-170ddfc2.js";const b='/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */\n\n/* Document\n ========================================================================== */\n\n/**\n * 1. Correct the line height in all browsers.\n * 2. Prevent adjustments of font size after orientation changes in iOS.\n */\n\nhtml {\n line-height: 1.15; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n}\n\n/* Sections\n ========================================================================== */\n\n/**\n * Remove the margin in all browsers.\n */\n\nbody {\n margin: 0;\n}\n\n/**\n * Render the `main` element consistently in IE.\n */\n\nmain {\n display: block;\n}\n\n/**\n * Correct the font size and margin on `h1` elements within `section` and\n * `article` contexts in Chrome, Firefox, and Safari.\n */\n\nh1 {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/* Grouping content\n ========================================================================== */\n\n/**\n * 1. Add the correct box sizing in Firefox.\n * 2. Show the overflow in Edge and IE.\n */\n\nhr {\n box-sizing: content-box; /* 1 */\n height: 0; /* 1 */\n overflow: visible; /* 2 */\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\npre {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/* Text-level semantics\n ========================================================================== */\n\n/**\n * Remove the gray background on active links in IE 10.\n */\n\na {\n background-color: transparent;\n}\n\n/**\n * 1. Remove the bottom border in Chrome 57-\n * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.\n */\n\nabbr[title] {\n border-bottom: none; /* 1 */\n text-decoration: underline; /* 2 */\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted; /* 2 */\n}\n\n/**\n * Add the correct font weight in Chrome, Edge, and Safari.\n */\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\ncode,\nkbd,\nsamp {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/**\n * Add the correct font size in all browsers.\n */\n\nsmall {\n font-size: 80%;\n}\n\n/**\n * Prevent `sub` and `sup` elements from affecting the line height in\n * all browsers.\n */\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/* Embedded content\n ========================================================================== */\n\n/**\n * Remove the border on images inside links in IE 10.\n */\n\nimg {\n border-style: none;\n}\n\n/* Forms\n ========================================================================== */\n\n/**\n * 1. Change the font styles in all browsers.\n * 2. Remove the margin in Firefox and Safari.\n */\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-size: 100%; /* 1 */\n line-height: 1.15; /* 1 */\n margin: 0; /* 2 */\n}\n\n/**\n * Show the overflow in IE.\n * 1. Show the overflow in Edge.\n */\n\nbutton,\ninput {\n /* 1 */\n overflow: visible;\n}\n\n/**\n * Remove the inheritance of text transform in Edge, Firefox, and IE.\n * 1. Remove the inheritance of text transform in Firefox.\n */\n\nbutton,\nselect {\n /* 1 */\n text-transform: none;\n}\n\n/**\n * Correct the inability to style clickable types in iOS and Safari.\n */\n\nbutton,\n[type="button"],\n[type="reset"],\n[type="submit"] {\n -webkit-appearance: button;\n}\n\n/**\n * Remove the inner border and padding in Firefox.\n */\n\nbutton::-moz-focus-inner,\n[type="button"]::-moz-focus-inner,\n[type="reset"]::-moz-focus-inner,\n[type="submit"]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n}\n\n/**\n * Restore the focus styles unset by the previous rule.\n */\n\nbutton:-moz-focusring,\n[type="button"]:-moz-focusring,\n[type="reset"]:-moz-focusring,\n[type="submit"]:-moz-focusring {\n outline: 1px dotted ButtonText;\n}\n\n/**\n * Correct the padding in Firefox.\n */\n\nfieldset {\n padding: 0.35em 0.75em 0.625em;\n}\n\n/**\n * 1. Correct the text wrapping in Edge and IE.\n * 2. Correct the color inheritance from `fieldset` elements in IE.\n * 3. Remove the padding so developers are not caught out when they zero out\n * `fieldset` elements in all browsers.\n */\n\nlegend {\n box-sizing: border-box; /* 1 */\n color: inherit; /* 2 */\n display: table; /* 1 */\n max-width: 100%; /* 1 */\n padding: 0; /* 3 */\n white-space: normal; /* 1 */\n}\n\n/**\n * Add the correct vertical alignment in Chrome, Firefox, and Opera.\n */\n\nprogress {\n vertical-align: baseline;\n}\n\n/**\n * Remove the default vertical scrollbar in IE 10+.\n */\n\ntextarea {\n overflow: auto;\n}\n\n/**\n * 1. Add the correct box sizing in IE 10.\n * 2. Remove the padding in IE 10.\n */\n\n[type="checkbox"],\n[type="radio"] {\n box-sizing: border-box; /* 1 */\n padding: 0; /* 2 */\n}\n\n/**\n * Correct the cursor style of increment and decrement buttons in Chrome.\n */\n\n[type="number"]::-webkit-inner-spin-button,\n[type="number"]::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * 1. Correct the odd appearance in Chrome and Safari.\n * 2. Correct the outline style in Safari.\n */\n\n[type="search"] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/**\n * Remove the inner padding in Chrome and Safari on macOS.\n */\n\n[type="search"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n * 1. Correct the inability to style clickable types in iOS and Safari.\n * 2. Change font properties to `inherit` in Safari.\n */\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/* Interactive\n ========================================================================== */\n\n/*\n * Add the correct display in Edge, IE 10+, and Firefox.\n */\n\ndetails {\n display: block;\n}\n\n/*\n * Add the correct display in all browsers.\n */\n\nsummary {\n display: list-item;\n}\n\n/* Misc\n ========================================================================== */\n\n/**\n * Add the correct display in IE 10+.\n */\n\ntemplate {\n display: none;\n}\n\n/**\n * Add the correct display in IE 10.\n */\n\n[hidden] {\n display: none;\n}\n\nhtml,\nbody,\ndiv,\nspan,\napplet,\nobject,\niframe,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nblockquote,\npre,\na,\nabbr,\nacronym,\naddress,\nbig,\ncite,\ncode,\ndel,\ndfn,\nem,\nimg,\nins,\nkbd,\nq,\ns,\nsamp,\nsmall,\nstrike,\nstrong,\nsub,\nsup,\ntt,\nvar,\nb,\nu,\ni,\ncenter,\ndl,\ndt,\ndd,\nol,\nul,\nli,\nfieldset,\nform,\nlabel,\nlegend,\ntable,\ncaption,\ntbody,\ntfoot,\nthead,\ntr,\nth,\ntd,\narticle,\naside,\ncanvas,\ndetails,\nembed,\nfigure,\nfigcaption,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\noutput,\nruby,\nsection,\nsummary,\ntime,\nmark,\naudio,\nvideo {\n margin: 0;\n padding: 0;\n border: 0;\n font-size: 100%;\n font-style: inherit;\n vertical-align: baseline;\n}\n\n\n:host {\n display: flex;\n}\n\na {\n text-decoration: none !important;\n color: var(--ic-card-text-primary) !important;\n}\n\na:visited {\n color: var(--ic-card-link-action-dark) !important;\n}\n\nbutton {\n border: none;\n background-color: transparent;\n outline: var(--ic-hc-focus-outline);\n}\n\n.card {\n display: flex;\n flex-direction: column;\n border: var(--ic-space-1px) solid var(--ic-card-border-primary);\n border-radius: var(--ic-border-radius);\n box-sizing: border-box;\n padding: var(--ic-space-md);\n text-align: left;\n color: var(--ic-card-text-primary);\n transition: var(--ic-easing-transition-fast);\n position: relative;\n width: inherit;\n min-width: -moz-fit-content;\n min-width: fit-content;\n height: -moz-fit-content;\n height: fit-content;\n min-height: 100%;\n\n ::slotted(svg) {\n fill: var(--ic-card-icon);\n }\n\n &.monochrome {\n border: var(--ic-border-width) solid var(--ic-card-border-monochrome);\n }\n\n &.fullwidth {\n width: 100%;\n }\n\n &.clickable {\n &:hover {\n background-color: var(--ic-card-background-hover);\n border: var(--ic-space-1px) solid var(--ic-card-hover-border-color);\n cursor: pointer;\n }\n\n &.focussed,\n &:focus {\n background-color: var(--ic-card-background-hover);\n box-shadow: var(--ic-border-focus);\n outline: var(--ic-hc-focus-outline);\n border: var(--ic-space-1px) solid var(--ic-card-pressed-border-color);\n }\n\n &:active {\n background-color: var(--ic-card-background-pressed);\n box-shadow: var(--ic-border-focus);\n\n .card-title {\n text-decoration: none;\n }\n }\n\n .card-title {\n --ic-typography-color: var(--ic-card-clickable-text);\n\n color: var(--ic-card-clickable-text);\n text-decoration: underline;\n text-decoration-thickness: var(--ic-space-1px);\n margin-bottom: var(--ic-space-xxs);\n }\n\n .interaction-button,\n .icon {\n margin-bottom: var(--ic-space-xxs);\n }\n }\n\n &.disabled {\n border: var(--ic-space-1px) dashed var(--ic-card-disabled-border-color);\n\n .card-message,\n .subheading,\n .card-title {\n --ic-typography-color: var(--ic-card-disabled-text);\n }\n\n .card-title {\n text-decoration: underline;\n text-decoration-thickness: var(--ic-space-1px);\n text-decoration-color: var(--ic-card-disabled-text);\n color: var(--ic-card-disabled-text);\n }\n\n ::slotted(svg) {\n fill: var(--ic-card-icon-disabled);\n }\n }\n}\n\n.card-header {\n display: flex;\n align-items: center;\n}\n\n.icon {\n display: flex;\n align-items: center;\n padding-right: var(--ic-space-xs);\n}\n\n.card.clickable:hover .card-title,\n.card.clickable:focus .card-title,\n.card.clickable.focussed .card-title {\n display: inline-block;\n border-bottom: 0.25rem solid !important;\n margin-bottom: 0 !important;\n text-decoration: none;\n}\n\n@supports (text-underline-offset: 25%) {\n .card.clickable:hover .card-title,\n .card.clickable:focus .card-title,\n .card.clickable.focussed .card-title {\n text-decoration-line: underline;\n text-decoration-thickness: 25%;\n text-underline-offset: 25%;\n border-bottom: 0 !important;\n margin-bottom: 0.25rem !important;\n }\n}\n\n.subheading {\n margin-top: var(--ic-space-xxs);\n}\n\n.adornment {\n margin-top: var(--ic-space-xxs);\n}\n\n.card-message {\n margin-top: var(--ic-space-md);\n align-items: left;\n}\n\n.interaction-button {\n margin-left: auto;\n}\n\n.image-top {\n margin-bottom: var(--ic-space-md);\n display: flex;\n justify-content: center;\n}\n\n.image-mid {\n margin-top: var(--ic-space-md);\n display: flex;\n justify-content: center;\n}\n\n.interaction-area {\n display: flex;\n flex-grow: 1;\n gap: var(--ic-space-md);\n margin-top: var(--ic-space-md);\n align-items: flex-end;\n}\n\n.interaction-controls {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: var(--ic-space-sm);\n}\n\n.toggle-button {\n width: 2.5rem;\n height: 2.5rem;\n padding: var(--ic-space-xs);\n margin: var(--ic-space-1px) 0;\n min-width: 0;\n cursor: pointer;\n transition: var(--ic-easing-transition-fast);\n border-radius: var(--ic-border-radius);\n display: inline-flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n background: none;\n border: none;\n box-sizing: border-box;\n white-space: nowrap;\n vertical-align: middle;\n\n &:hover {\n background-color: var(--ic-card-background-hover);\n }\n\n &:focus {\n box-shadow: var(--ic-border-focus);\n }\n\n &:active:not(:focus) {\n background-color: var(--ic-card-background-pressed);\n }\n\n svg {\n pointer-events: none;\n width: 100% !important;\n height: 100% !important;\n fill: currentcolor !important;\n }\n}\n\n#ic-tooltip-expand-button {\n margin-left: auto;\n position: relative;\n}\n\n.toggle-button-closed svg {\n transform: rotate(90deg);\n}\n\n.toggle-button-expanded svg {\n transform: rotate(-90deg);\n}\n\n.expanded-content {\n margin-top: var(--ic-space-md);\n}\n\n/** High Contrast **/\n@media (forced-colors: active) {\n .card {\n ::slotted(svg) {\n fill: currentcolor;\n }\n\n &.disabled {\n border-color: GrayText !important;\n\n ::slotted(svg) {\n fill: GrayText !important;\n }\n\n .card-message,\n .subheading,\n .card-title {\n color: GrayText;\n\n --ic-typography-color: GrayText;\n }\n }\n }\n\n .toggle-button:focus,\n .toggle-button:hover {\n outline-color: Highlight;\n }\n}\n';const h=b;const f=class{constructor(e){n(this,e);this.hostMutationObserver=null;this.areaExpanded=false;this.isFocussed=false;this.monochrome=false;this.parentEl=null;this.parentIsAnchorTag=false;this.clickable=false;this.disabled=false;this.expandable=false;this.fullWidth=false;this.hreflang="";this.message="";this.theme="inherit";this.parentFocussed=()=>{this.isFocussed=true};this.parentBlurred=()=>{this.isFocussed=false};this.toggleExpanded=()=>{this.areaExpanded=!this.areaExpanded}}watchDisabledHandler(){i(this.disabled,this.el)}disconnectedCallback(){var n;if(this.parentEl&&this.parentIsAnchorTag){this.parentEl.removeEventListener("focus",this.parentFocussed);this.parentEl.removeEventListener("blur",this.parentBlurred)}(n=this.hostMutationObserver)===null||n===void 0?void 0:n.disconnect()}componentWillLoad(){var n;this.parentEl=this.el.parentElement;if(((n=this.parentEl)===null||n===void 0?void 0:n.tagName)==="A"){this.clickable=true;this.parentIsAnchorTag=true;this.parentEl.classList.add("ic-card-wrapper-link");this.parentEl.addEventListener("focus",this.parentFocussed);this.parentEl.addEventListener("blur",this.parentBlurred)}i(this.disabled,this.el)}componentDidLoad(){!o(this.el,"heading")&&r([{prop:this.heading,propName:"heading"}],"Card");this.updateTheme();this.hostMutationObserver=new MutationObserver((n=>c(n,["message","adornment","expanded-content","image-top","image-mid","icon","interaction-button","badge","interaction-controls"],this)));this.hostMutationObserver.observe(this.el,{childList:true})}handleHostClick(n){if(this.disabled){n.stopImmediatePropagation()}}brandChangeHandler(n){this.updateTheme(n.detail.mode)}async setFocus(){var n,e;const t=this.el.shadowRoot;if(t){if(t.querySelector("a")){(n=t.querySelector("a"))===null||n===void 0?void 0:n.focus()}else if(t.querySelector("button")){(e=t.querySelector("button"))===null||e===void 0?void 0:e.focus()}}}updateTheme(n=null){const e=d(this.el,n);if(e!==s.Default){this.monochrome=true;this.theme=e===s.Light?s.Dark:s.Light}}render(){const{clickable:n,disabled:a,expandable:i,fullWidth:r,heading:c,isFocussed:d,message:s,monochrome:b,href:h,hreflang:f,parentIsAnchorTag:m,referrerpolicy:p,rel:g,subheading:u,target:v,theme:y}=this;const x=m||!n?"div":h===undefined?"button":"a";const k=x=="a"&&{href:h,hrefLang:f,referrerPolicy:p,rel:g,target:v};return e(t,{key:"2dc8070692fc796401c84c6156d1f66c8053310a",class:{[`ic-theme-${y}`]:y!=="inherit"}},e(x,Object.assign({key:"a1a8763990ed7e5ac5eecfc69e4b29ab184b9e6e",class:{card:true,clickable:!!n&&!a,disabled:!!a,fullwidth:!!r,focussed:d,monochrome:b},tabindex:n&&!m?0:undefined,"aria-disabled":a?"true":null,disabled:a},k),o(this.el,"image-top")&&e("div",{key:"2c12f461a8b8972d8a4de1a6560a2c52ecadc36f",class:"image-top"},e("slot",{key:"9afec40e5ef6b57a10ca922d7f3da378f962200f",name:"image-top"})),e("div",{key:"bb92939da24dbfa2fb2e4bc2606d4f7ef9d2ba37",class:"card-header"},o(this.el,"icon")&&e("div",{key:"165af9342325b430548209cf2bcd5b9781b752fd",class:"icon"},e("slot",{key:"4b2cdd47b1f2abfc16097dee848b630c93c1b835",name:"icon"})),e("div",{key:"02f1b6357a696bc43b9d5cc7c8030647b52e311c",class:"card-title"},e("slot",{key:"b71ca0fa6a4aeb1cf75579920a66f58abe11d5ae",name:"heading"},e("ic-typography",{key:"63f9c6478987888f41a53d5beadec2b3deaa52ae",variant:"h4"},e("p",{key:"6d642c20d4656a408cf439c969a1895cb834c15e"},c)))),o(this.el,"interaction-button")&&e("div",{key:"7a44d7d2c17cd980fa14da2a65aa68ddd8832f77",class:"interaction-button"},e("slot",{key:"6a9e0f0ca96125d94d39b31474c82ffe088ea475",name:"interaction-button"}))),(u||o(this.el,"subheading"))&&e("div",{key:"dc19ca8ae488c30aa1fc58e56db23fc0dc2a2c0f",class:"subheading"},e("slot",{key:"bae9a057f813ef5c5df04befed60d09ccb106857",name:"subheading"},e("ic-typography",{key:"13a32e2d9bc3258b65edf8a5c385f181f39a2c8d",variant:"subtitle-small"},u))),o(this.el,"adornment")&&e("div",{key:"c359631c9d1ed0643290e1db2a5e521d6702b29d",class:"adornment"},e("slot",{key:"398a65927df066f96bffc5b59b95fd27ec558c12",name:"adornment"})),o(this.el,"image-mid")&&e("div",{key:"463a2495779d1faca6efd98a3e1425e3486fc0d1",class:"image-mid"},e("slot",{key:"049daa3cbf2542b0a47951a8758bb50a1ad699e2",name:"image-mid"})),(s||o(this.el,"message"))&&e("div",{key:"9f6b4ea8e3a8cfa0e8ad58366f4e2a198cb0f8f6",class:"card-message"},s&&e("ic-typography",{key:"1a32ff3958de50ea5732a0fb52616d04c6ebedcc",variant:"body"},s),o(this.el,"message")&&e("slot",{key:"0dabb8f6ed9bd42a0982284fa4976734c0d5e16f",name:"message"})),(o(this.el,"interaction-controls")||i)&&e("div",{key:"2d6292c895df325c53cffc72a330720855644c59",class:"interaction-area"},e("div",{key:"a8c4c10d85a5608f49dbccb8cb65443d56d64a3f",class:"interaction-controls"},e("slot",{key:"5caebe86117ec6ef31d096a284aa035153e02a56",name:"interaction-controls"})),i&&e("ic-tooltip",{key:"1d66d84f3181cc1694cdf779befca1610c538f71",id:"ic-tooltip-expand-button",label:"Toggle expandable area",silent:true},e("button",{key:"eaa2b9484428dab89fb67677b80a09a6174b011b",class:{"toggle-button":true,[`toggle-button-${this.areaExpanded?"expanded":"closed"}`]:true},"aria-label":"Toggle expandable area","aria-expanded":`${this.areaExpanded}`,"aria-controls":this.areaExpanded?"expanded-content-area":null,onClick:this.toggleExpanded,innerHTML:l}))),o(this.el,"expanded-content")&&this.areaExpanded&&e("div",{key:"d896c331bad9e027c4b56dd1fce75bc530218516",class:"expanded-content",id:"expanded-content-area"},e("slot",{key:"7fc81de39ef8a949674f22089d413bf946befdd7",name:"expanded-content"})),o(this.el,"badge")&&e("slot",{key:"283bff90fab9be3b640ab7d04384d7ce2873bad8",name:"badge"})))}get el(){return a(this)}static get watchers(){return{disabled:["watchDisabledHandler"]}}};f.style=h;export{f as ic_card_vertical};
2
+ //# sourceMappingURL=p-b93e8ecb.entry.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["icCardVerticalCss","IcCardVerticalStyle0","CardVertical","constructor","hostRef","this","hostMutationObserver","areaExpanded","isFocussed","monochrome","parentEl","parentIsAnchorTag","clickable","disabled","expandable","fullWidth","hreflang","message","theme","parentFocussed","parentBlurred","toggleExpanded","watchDisabledHandler","removeDisabledFalse","el","disconnectedCallback","_a","removeEventListener","disconnect","componentWillLoad","parentElement","tagName","classList","add","addEventListener","componentDidLoad","isSlotUsed","onComponentRequiredPropUndefined","prop","heading","propName","updateTheme","MutationObserver","mutationList","renderDynamicChildSlots","observe","childList","handleHostClick","event","stopImmediatePropagation","brandChangeHandler","ev","detail","mode","setFocus","_b","shadowRoot","querySelector","focus","foregroundColor","getBrandFromContext","IcBrandForegroundEnum","Default","Light","Dark","render","href","referrerpolicy","rel","subheading","target","Component","undefined","attrs","hrefLang","referrerPolicy","h","Host","key","class","Object","assign","card","fullwidth","focussed","tabindex","name","variant","id","label","silent","onClick","innerHTML","chevronIcon"],"sources":["../web-components/dist/collection/components/ic-card-vertical/ic-card-vertical.css?tag=ic-card-vertical&encapsulation=shadow","../web-components/dist/collection/components/ic-card-vertical/ic-card-vertical.js"],"sourcesContent":["/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */\n\n/* Document\n ========================================================================== */\n\n/**\n * 1. Correct the line height in all browsers.\n * 2. Prevent adjustments of font size after orientation changes in iOS.\n */\n\nhtml {\n line-height: 1.15; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n}\n\n/* Sections\n ========================================================================== */\n\n/**\n * Remove the margin in all browsers.\n */\n\nbody {\n margin: 0;\n}\n\n/**\n * Render the `main` element consistently in IE.\n */\n\nmain {\n display: block;\n}\n\n/**\n * Correct the font size and margin on `h1` elements within `section` and\n * `article` contexts in Chrome, Firefox, and Safari.\n */\n\nh1 {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/* Grouping content\n ========================================================================== */\n\n/**\n * 1. Add the correct box sizing in Firefox.\n * 2. Show the overflow in Edge and IE.\n */\n\nhr {\n box-sizing: content-box; /* 1 */\n height: 0; /* 1 */\n overflow: visible; /* 2 */\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\npre {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/* Text-level semantics\n ========================================================================== */\n\n/**\n * Remove the gray background on active links in IE 10.\n */\n\na {\n background-color: transparent;\n}\n\n/**\n * 1. Remove the bottom border in Chrome 57-\n * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.\n */\n\nabbr[title] {\n border-bottom: none; /* 1 */\n text-decoration: underline; /* 2 */\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted; /* 2 */\n}\n\n/**\n * Add the correct font weight in Chrome, Edge, and Safari.\n */\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\ncode,\nkbd,\nsamp {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/**\n * Add the correct font size in all browsers.\n */\n\nsmall {\n font-size: 80%;\n}\n\n/**\n * Prevent `sub` and `sup` elements from affecting the line height in\n * all browsers.\n */\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/* Embedded content\n ========================================================================== */\n\n/**\n * Remove the border on images inside links in IE 10.\n */\n\nimg {\n border-style: none;\n}\n\n/* Forms\n ========================================================================== */\n\n/**\n * 1. Change the font styles in all browsers.\n * 2. Remove the margin in Firefox and Safari.\n */\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-size: 100%; /* 1 */\n line-height: 1.15; /* 1 */\n margin: 0; /* 2 */\n}\n\n/**\n * Show the overflow in IE.\n * 1. Show the overflow in Edge.\n */\n\nbutton,\ninput {\n /* 1 */\n overflow: visible;\n}\n\n/**\n * Remove the inheritance of text transform in Edge, Firefox, and IE.\n * 1. Remove the inheritance of text transform in Firefox.\n */\n\nbutton,\nselect {\n /* 1 */\n text-transform: none;\n}\n\n/**\n * Correct the inability to style clickable types in iOS and Safari.\n */\n\nbutton,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"] {\n -webkit-appearance: button;\n}\n\n/**\n * Remove the inner border and padding in Firefox.\n */\n\nbutton::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n}\n\n/**\n * Restore the focus styles unset by the previous rule.\n */\n\nbutton:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring {\n outline: 1px dotted ButtonText;\n}\n\n/**\n * Correct the padding in Firefox.\n */\n\nfieldset {\n padding: 0.35em 0.75em 0.625em;\n}\n\n/**\n * 1. Correct the text wrapping in Edge and IE.\n * 2. Correct the color inheritance from `fieldset` elements in IE.\n * 3. Remove the padding so developers are not caught out when they zero out\n * `fieldset` elements in all browsers.\n */\n\nlegend {\n box-sizing: border-box; /* 1 */\n color: inherit; /* 2 */\n display: table; /* 1 */\n max-width: 100%; /* 1 */\n padding: 0; /* 3 */\n white-space: normal; /* 1 */\n}\n\n/**\n * Add the correct vertical alignment in Chrome, Firefox, and Opera.\n */\n\nprogress {\n vertical-align: baseline;\n}\n\n/**\n * Remove the default vertical scrollbar in IE 10+.\n */\n\ntextarea {\n overflow: auto;\n}\n\n/**\n * 1. Add the correct box sizing in IE 10.\n * 2. Remove the padding in IE 10.\n */\n\n[type=\"checkbox\"],\n[type=\"radio\"] {\n box-sizing: border-box; /* 1 */\n padding: 0; /* 2 */\n}\n\n/**\n * Correct the cursor style of increment and decrement buttons in Chrome.\n */\n\n[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * 1. Correct the odd appearance in Chrome and Safari.\n * 2. Correct the outline style in Safari.\n */\n\n[type=\"search\"] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/**\n * Remove the inner padding in Chrome and Safari on macOS.\n */\n\n[type=\"search\"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n * 1. Correct the inability to style clickable types in iOS and Safari.\n * 2. Change font properties to `inherit` in Safari.\n */\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/* Interactive\n ========================================================================== */\n\n/*\n * Add the correct display in Edge, IE 10+, and Firefox.\n */\n\ndetails {\n display: block;\n}\n\n/*\n * Add the correct display in all browsers.\n */\n\nsummary {\n display: list-item;\n}\n\n/* Misc\n ========================================================================== */\n\n/**\n * Add the correct display in IE 10+.\n */\n\ntemplate {\n display: none;\n}\n\n/**\n * Add the correct display in IE 10.\n */\n\n[hidden] {\n display: none;\n}\n\nhtml,\nbody,\ndiv,\nspan,\napplet,\nobject,\niframe,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nblockquote,\npre,\na,\nabbr,\nacronym,\naddress,\nbig,\ncite,\ncode,\ndel,\ndfn,\nem,\nimg,\nins,\nkbd,\nq,\ns,\nsamp,\nsmall,\nstrike,\nstrong,\nsub,\nsup,\ntt,\nvar,\nb,\nu,\ni,\ncenter,\ndl,\ndt,\ndd,\nol,\nul,\nli,\nfieldset,\nform,\nlabel,\nlegend,\ntable,\ncaption,\ntbody,\ntfoot,\nthead,\ntr,\nth,\ntd,\narticle,\naside,\ncanvas,\ndetails,\nembed,\nfigure,\nfigcaption,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\noutput,\nruby,\nsection,\nsummary,\ntime,\nmark,\naudio,\nvideo {\n margin: 0;\n padding: 0;\n border: 0;\n font-size: 100%;\n font-style: inherit;\n vertical-align: baseline;\n}\n\n\n:host {\n display: flex;\n}\n\na {\n text-decoration: none !important;\n color: var(--ic-card-text-primary) !important;\n}\n\na:visited {\n color: var(--ic-card-link-action-dark) !important;\n}\n\nbutton {\n border: none;\n background-color: transparent;\n outline: var(--ic-hc-focus-outline);\n}\n\n.card {\n display: flex;\n flex-direction: column;\n border: var(--ic-space-1px) solid var(--ic-card-border-primary);\n border-radius: var(--ic-border-radius);\n box-sizing: border-box;\n padding: var(--ic-space-md);\n text-align: left;\n color: var(--ic-card-text-primary);\n transition: var(--ic-easing-transition-fast);\n position: relative;\n width: inherit;\n min-width: -moz-fit-content;\n min-width: fit-content;\n height: -moz-fit-content;\n height: fit-content;\n min-height: 100%;\n\n ::slotted(svg) {\n fill: var(--ic-card-icon);\n }\n\n &.monochrome {\n border: var(--ic-border-width) solid var(--ic-card-border-monochrome);\n }\n\n &.fullwidth {\n width: 100%;\n }\n\n &.clickable {\n &:hover {\n background-color: var(--ic-card-background-hover);\n border: var(--ic-space-1px) solid var(--ic-card-hover-border-color);\n cursor: pointer;\n }\n\n &.focussed,\n &:focus {\n background-color: var(--ic-card-background-hover);\n box-shadow: var(--ic-border-focus);\n outline: var(--ic-hc-focus-outline);\n border: var(--ic-space-1px) solid var(--ic-card-pressed-border-color);\n }\n\n &:active {\n background-color: var(--ic-card-background-pressed);\n box-shadow: var(--ic-border-focus);\n\n .card-title {\n text-decoration: none;\n }\n }\n\n .card-title {\n --ic-typography-color: var(--ic-card-clickable-text);\n\n color: var(--ic-card-clickable-text);\n text-decoration: underline;\n text-decoration-thickness: var(--ic-space-1px);\n margin-bottom: var(--ic-space-xxs);\n }\n\n .interaction-button,\n .icon {\n margin-bottom: var(--ic-space-xxs);\n }\n }\n\n &.disabled {\n border: var(--ic-space-1px) dashed var(--ic-card-disabled-border-color);\n\n .card-message,\n .subheading,\n .card-title {\n --ic-typography-color: var(--ic-card-disabled-text);\n }\n\n .card-title {\n text-decoration: underline;\n text-decoration-thickness: var(--ic-space-1px);\n text-decoration-color: var(--ic-card-disabled-text);\n color: var(--ic-card-disabled-text);\n }\n\n ::slotted(svg) {\n fill: var(--ic-card-icon-disabled);\n }\n }\n}\n\n.card-header {\n display: flex;\n align-items: center;\n}\n\n.icon {\n display: flex;\n align-items: center;\n padding-right: var(--ic-space-xs);\n}\n\n.card.clickable:hover .card-title,\n.card.clickable:focus .card-title,\n.card.clickable.focussed .card-title {\n display: inline-block;\n border-bottom: 0.25rem solid !important;\n margin-bottom: 0 !important;\n text-decoration: none;\n}\n\n@supports (text-underline-offset: 25%) {\n .card.clickable:hover .card-title,\n .card.clickable:focus .card-title,\n .card.clickable.focussed .card-title {\n text-decoration-line: underline;\n text-decoration-thickness: 25%;\n text-underline-offset: 25%;\n border-bottom: 0 !important;\n margin-bottom: 0.25rem !important;\n }\n}\n\n.subheading {\n margin-top: var(--ic-space-xxs);\n}\n\n.adornment {\n margin-top: var(--ic-space-xxs);\n}\n\n.card-message {\n margin-top: var(--ic-space-md);\n align-items: left;\n}\n\n.interaction-button {\n margin-left: auto;\n}\n\n.image-top {\n margin-bottom: var(--ic-space-md);\n display: flex;\n justify-content: center;\n}\n\n.image-mid {\n margin-top: var(--ic-space-md);\n display: flex;\n justify-content: center;\n}\n\n.interaction-area {\n display: flex;\n flex-grow: 1;\n gap: var(--ic-space-md);\n margin-top: var(--ic-space-md);\n align-items: flex-end;\n}\n\n.interaction-controls {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: var(--ic-space-sm);\n}\n\n.toggle-button {\n width: 2.5rem;\n height: 2.5rem;\n padding: var(--ic-space-xs);\n margin: var(--ic-space-1px) 0;\n min-width: 0;\n cursor: pointer;\n transition: var(--ic-easing-transition-fast);\n border-radius: var(--ic-border-radius);\n display: inline-flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n background: none;\n border: none;\n box-sizing: border-box;\n white-space: nowrap;\n vertical-align: middle;\n\n &:hover {\n background-color: var(--ic-card-background-hover);\n }\n\n &:focus {\n box-shadow: var(--ic-border-focus);\n }\n\n &:active:not(:focus) {\n background-color: var(--ic-card-background-pressed);\n }\n\n svg {\n pointer-events: none;\n width: 100% !important;\n height: 100% !important;\n fill: currentcolor !important;\n }\n}\n\n#ic-tooltip-expand-button {\n margin-left: auto;\n position: relative;\n}\n\n.toggle-button-closed svg {\n transform: rotate(90deg);\n}\n\n.toggle-button-expanded svg {\n transform: rotate(-90deg);\n}\n\n.expanded-content {\n margin-top: var(--ic-space-md);\n}\n\n/** High Contrast **/\n@media (forced-colors: active) {\n .card {\n ::slotted(svg) {\n fill: currentcolor;\n }\n\n &.disabled {\n border-color: GrayText !important;\n\n ::slotted(svg) {\n fill: GrayText !important;\n }\n\n .card-message,\n .subheading,\n .card-title {\n color: GrayText;\n\n --ic-typography-color: GrayText;\n }\n }\n }\n\n .toggle-button:focus,\n .toggle-button:hover {\n outline-color: Highlight;\n }\n}\n","import { h, Host, } from \"@stencil/core\";\nimport { onComponentRequiredPropUndefined, isSlotUsed, getBrandFromContext, removeDisabledFalse, renderDynamicChildSlots, } from \"../../utils/helpers\";\nimport { IcBrandForegroundEnum, } from \"../../utils/types\";\nimport chevronIcon from \"../../assets/chevron-icon.svg\";\n/**\n * @slot heading - Content will be placed at the top of the card to the right of the icon.\n * @slot message - Content will be placed in the main body of the card.\n * @slot subheading - Content will be placed below the card heading.\n * @slot adornment - Content will be placed below the card subheading.\n * @slot image-top - Content will be placed at the top of the card above all other content.\n * @slot image-mid - Content will be placed below the card heading section.\n * @slot icon - Content will be placed to the left of the card heading.\n * @slot interaction-button - Content will be placed in the top right corner of the heading section.\n * @slot interaction-controls - Content will be placed below the card message.\n * @slot expanded-content - Content will be placed below the interaction controls but will not initially be rendered.\n * @slot badge - Badge component overlaying the top right of the card.\n */\nexport class CardVertical {\n constructor() {\n this.hostMutationObserver = null;\n this.areaExpanded = false;\n this.isFocussed = false;\n this.monochrome = false;\n this.parentEl = null;\n this.parentIsAnchorTag = false;\n /**\n * If `true`, the card will be a clickable variant, instead of static.\n */\n this.clickable = false;\n /**\n * If `true`, the card will be disabled if it is clickable.\n */\n this.disabled = false;\n /**\n * If `true`, the card will have an expandable area and expansion toggle button.\n */\n this.expandable = false;\n /**\n * If `true`, the card will fill the width of the container.\n */\n this.fullWidth = false;\n /**\n * The human language of the linked URL.\n */\n this.hreflang = \"\";\n /**\n * The main body message of the card.\n */\n this.message = \"\";\n /**\n * Sets the theme color to the dark or light theme color. \"inherit\" will set the color based on the system settings or ic-theme component.\n */\n this.theme = \"inherit\";\n this.parentFocussed = () => {\n this.isFocussed = true;\n };\n this.parentBlurred = () => {\n this.isFocussed = false;\n };\n this.toggleExpanded = () => {\n this.areaExpanded = !this.areaExpanded;\n };\n }\n watchDisabledHandler() {\n removeDisabledFalse(this.disabled, this.el);\n }\n disconnectedCallback() {\n var _a;\n if (this.parentEl && this.parentIsAnchorTag) {\n this.parentEl.removeEventListener(\"focus\", this.parentFocussed);\n this.parentEl.removeEventListener(\"blur\", this.parentBlurred);\n }\n (_a = this.hostMutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();\n }\n componentWillLoad() {\n var _a;\n this.parentEl = this.el.parentElement;\n if (((_a = this.parentEl) === null || _a === void 0 ? void 0 : _a.tagName) === \"A\") {\n this.clickable = true;\n this.parentIsAnchorTag = true;\n this.parentEl.classList.add(\"ic-card-wrapper-link\");\n this.parentEl.addEventListener(\"focus\", this.parentFocussed);\n this.parentEl.addEventListener(\"blur\", this.parentBlurred);\n }\n removeDisabledFalse(this.disabled, this.el);\n }\n componentDidLoad() {\n !isSlotUsed(this.el, \"heading\") &&\n onComponentRequiredPropUndefined([{ prop: this.heading, propName: \"heading\" }], \"Card\");\n this.updateTheme();\n this.hostMutationObserver = new MutationObserver((mutationList) => renderDynamicChildSlots(mutationList, [\n \"message\",\n \"adornment\",\n \"expanded-content\",\n \"image-top\",\n \"image-mid\",\n \"icon\",\n \"interaction-button\",\n \"badge\",\n \"interaction-controls\",\n ], this));\n this.hostMutationObserver.observe(this.el, {\n childList: true,\n });\n }\n handleHostClick(event) {\n if (this.disabled) {\n event.stopImmediatePropagation();\n }\n }\n brandChangeHandler(ev) {\n this.updateTheme(ev.detail.mode);\n }\n /**\n * Sets focus on the card.\n */\n async setFocus() {\n var _a, _b;\n const shadowRoot = this.el.shadowRoot;\n if (shadowRoot) {\n if (shadowRoot.querySelector(\"a\")) {\n (_a = shadowRoot.querySelector(\"a\")) === null || _a === void 0 ? void 0 : _a.focus();\n }\n else if (shadowRoot.querySelector(\"button\")) {\n (_b = shadowRoot.querySelector(\"button\")) === null || _b === void 0 ? void 0 : _b.focus();\n }\n }\n }\n updateTheme(mode = null) {\n const foregroundColor = getBrandFromContext(this.el, mode);\n if (foregroundColor !== IcBrandForegroundEnum.Default) {\n this.monochrome = true;\n this.theme =\n foregroundColor === IcBrandForegroundEnum.Light\n ? IcBrandForegroundEnum.Dark\n : IcBrandForegroundEnum.Light;\n }\n }\n render() {\n const { clickable, disabled, expandable, fullWidth, heading, isFocussed, message, monochrome, href, hreflang, parentIsAnchorTag, referrerpolicy, rel, subheading, target, theme, } = this;\n const Component = parentIsAnchorTag || !clickable\n ? \"div\"\n : href === undefined\n ? \"button\"\n : \"a\";\n const attrs = Component == \"a\" && {\n href: href,\n hrefLang: hreflang,\n referrerPolicy: referrerpolicy,\n rel: rel,\n target: target,\n };\n return (h(Host, { key: 'd62f341e096d81fa917e578aa55c99d6d828c9e3', class: {\n [`ic-theme-${theme}`]: theme !== \"inherit\",\n } }, h(Component, Object.assign({ key: '742b03d9281d850a9052638038980b45ca567c17', class: {\n card: true,\n clickable: !!clickable && !disabled,\n disabled: !!disabled,\n fullwidth: !!fullWidth,\n focussed: isFocussed,\n monochrome: monochrome,\n }, tabindex: clickable && !parentIsAnchorTag ? 0 : undefined, \"aria-disabled\": disabled ? \"true\" : null, disabled: disabled }, attrs), isSlotUsed(this.el, \"image-top\") && (h(\"div\", { key: 'd5f584871df498cf11acb97ff3694115d4819a73', class: \"image-top\" }, h(\"slot\", { key: '88fa5d9566421a5ca724622bb11b0ad593babecb', name: \"image-top\" }))), h(\"div\", { key: '3211c93ebca0fcddad4ac7ce75999ab8d7939442', class: \"card-header\" }, isSlotUsed(this.el, \"icon\") && (h(\"div\", { key: 'c80cf3c24f0cbdf7cac901ee8c945c4d1432fe9f', class: \"icon\" }, h(\"slot\", { key: '7e087604510f545b891f104f972ee50ac686b9be', name: \"icon\" }))), h(\"div\", { key: '02bc7be8d85faee7b497c2b2608d80f70b79ec86', class: \"card-title\" }, h(\"slot\", { key: 'e5285ad53121d899dd27966860b664fe1ecc388f', name: \"heading\" }, h(\"ic-typography\", { key: '00573eddbbdd537b86a1331bd2b2db4a443a13c0', variant: \"h4\" }, h(\"p\", { key: 'bccc52bc8feadd3abe0cd8092819258dc2e155c8' }, heading)))), isSlotUsed(this.el, \"interaction-button\") && (h(\"div\", { key: 'f9f2baeee122976ab5ffa8e3dff9027bb78db6b4', class: \"interaction-button\" }, h(\"slot\", { key: '01b087c7b7ff9fa54dfb1171c5a4899cf090b45c', name: \"interaction-button\" })))), (subheading || isSlotUsed(this.el, \"subheading\")) && (h(\"div\", { key: '81f19c8c0d726ebbb35f71375a35fac342e4e7cd', class: \"subheading\" }, h(\"slot\", { key: '17c871d9694857824afb3c9f7593c8498873d810', name: \"subheading\" }, h(\"ic-typography\", { key: '9ca1068e95a3c69def8ec0bf82135dd36ed57fbc', variant: \"subtitle-small\" }, subheading)))), isSlotUsed(this.el, \"adornment\") && (h(\"div\", { key: 'e43dadfb629c3a5dd28a6b1c46555dfade8d498f', class: \"adornment\" }, h(\"slot\", { key: 'b8f63d79ffaff166020d643497ad8b92f4580a0e', name: \"adornment\" }))), isSlotUsed(this.el, \"image-mid\") && (h(\"div\", { key: '1077bd869310c629a1b154e031dbed14559798b7', class: \"image-mid\" }, h(\"slot\", { key: 'f598c5ddfb5a591f3988c49b3f7be1e84fb87552', name: \"image-mid\" }))), (message || isSlotUsed(this.el, \"message\")) && (h(\"div\", { key: '08d46a26aac3972495cc7724ff8fbd55cc90a31c', class: \"card-message\" }, message && (h(\"ic-typography\", { key: '50c632b1ac9fed137e668ceec4f1fe35f9a2cf99', variant: \"body\" }, message)), isSlotUsed(this.el, \"message\") && h(\"slot\", { key: '2b971484237d985d4318993477d39b5f6d1e8f0d', name: \"message\" }))), (isSlotUsed(this.el, \"interaction-controls\") || expandable) && (h(\"div\", { key: '3e7f6bc8df858349187486fb9e9ebec56d42d0a5', class: \"interaction-area\" }, h(\"div\", { key: '4fd96e05aa6daef84d93d8f1da4dd80b2d349623', class: \"interaction-controls\" }, h(\"slot\", { key: '2f690307f464bb1f710344723b2f76078334ea30', name: \"interaction-controls\" })), expandable && (h(\"ic-tooltip\", { key: '9880fae8f9a52bdfe1820df5cbfc92af33080e2a', id: \"ic-tooltip-expand-button\", label: \"Toggle expandable area\", silent: true }, h(\"button\", { key: '0d1656a001fa061ebae17757a560ba11dae90339', class: {\n \"toggle-button\": true,\n [`toggle-button-${this.areaExpanded ? \"expanded\" : \"closed\"}`]: true,\n }, \"aria-label\": \"Toggle expandable area\", \"aria-expanded\": `${this.areaExpanded}`, \"aria-controls\": this.areaExpanded ? \"expanded-content-area\" : null, onClick: this.toggleExpanded, innerHTML: chevronIcon }))))), isSlotUsed(this.el, \"expanded-content\") && this.areaExpanded && (h(\"div\", { key: 'dc55cb4419b35c1f5f6b771cf5dc62c1d77626a7', class: \"expanded-content\", id: \"expanded-content-area\" }, h(\"slot\", { key: '3b0d0c87d0467ffde6e62ed49b9116280a6c7108', name: \"expanded-content\" }))), isSlotUsed(this.el, \"badge\") && h(\"slot\", { key: 'f51d29f2b88429b0e0024c6f9ba34abaf4e1a6d1', name: \"badge\" }))));\n }\n static get is() { return \"ic-card-vertical\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() {\n return {\n \"$\": [\"ic-card-vertical.css\"]\n };\n }\n static get styleUrls() {\n return {\n \"$\": [\"ic-card-vertical.css\"]\n };\n }\n static get properties() {\n return {\n \"clickable\": {\n \"type\": \"boolean\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean | undefined\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"If `true`, the card will be a clickable variant, instead of static.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"clickable\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"disabled\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean | undefined\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"If `true`, the card will be disabled if it is clickable.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"disabled\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"expandable\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean | undefined\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"If `true`, the card will have an expandable area and expansion toggle button.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"expandable\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"fullWidth\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean | undefined\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"If `true`, the card will fill the width of the container.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"full-width\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"heading\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string | undefined\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The heading for the card. This is required, unless a slotted heading is used.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"heading\",\n \"reflect\": false\n },\n \"href\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string | undefined\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The URL that the clickable card link points to. If set, the clickable card will render as an \\\"a\\\" tag, otherwise it will render as a button.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"href\",\n \"reflect\": false\n },\n \"hreflang\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string | undefined\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The human language of the linked URL.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"hreflang\",\n \"reflect\": false,\n \"defaultValue\": \"\\\"\\\"\"\n },\n \"message\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string | undefined\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The main body message of the card.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"message\",\n \"reflect\": false,\n \"defaultValue\": \"\\\"\\\"\"\n },\n \"referrerpolicy\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"ReferrerPolicy\",\n \"resolved\": \"\\\"\\\" | \\\"no-referrer\\\" | \\\"no-referrer-when-downgrade\\\" | \\\"origin\\\" | \\\"origin-when-cross-origin\\\" | \\\"same-origin\\\" | \\\"strict-origin\\\" | \\\"strict-origin-when-cross-origin\\\" | \\\"unsafe-url\\\" | undefined\",\n \"references\": {\n \"ReferrerPolicy\": {\n \"location\": \"global\",\n \"id\": \"global::ReferrerPolicy\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"How much of the referrer to send when following the link.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"referrerpolicy\",\n \"reflect\": false\n },\n \"rel\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string | undefined\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The relationship of the linked URL as space-separated link types.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"rel\",\n \"reflect\": false\n },\n \"subheading\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string | undefined\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The subheading for the card.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"subheading\",\n \"reflect\": false\n },\n \"target\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string | undefined\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The place to display the linked URL, as the name for a browsing context (a tab, window, or iframe).\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"target\",\n \"reflect\": false\n },\n \"theme\": {\n \"type\": \"string\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"IcThemeMode\",\n \"resolved\": \"\\\"dark\\\" | \\\"inherit\\\" | \\\"light\\\" | undefined\",\n \"references\": {\n \"IcThemeMode\": {\n \"location\": \"import\",\n \"path\": \"../../utils/types\",\n \"id\": \"src/utils/types.ts::IcThemeMode\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Sets the theme color to the dark or light theme color. \\\"inherit\\\" will set the color based on the system settings or ic-theme component.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"theme\",\n \"reflect\": false,\n \"defaultValue\": \"\\\"inherit\\\"\"\n }\n };\n }\n static get states() {\n return {\n \"areaExpanded\": {},\n \"isFocussed\": {},\n \"monochrome\": {},\n \"parentEl\": {},\n \"parentIsAnchorTag\": {}\n };\n }\n static get methods() {\n return {\n \"setFocus\": {\n \"complexType\": {\n \"signature\": \"() => Promise<void>\",\n \"parameters\": [],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\",\n \"id\": \"global::Promise\"\n }\n },\n \"return\": \"Promise<void>\"\n },\n \"docs\": {\n \"text\": \"Sets focus on the card.\",\n \"tags\": []\n }\n }\n };\n }\n static get elementRef() { return \"el\"; }\n static get watchers() {\n return [{\n \"propName\": \"disabled\",\n \"methodName\": \"watchDisabledHandler\"\n }];\n }\n static get listeners() {\n return [{\n \"name\": \"click\",\n \"method\": \"handleHostClick\",\n \"target\": undefined,\n \"capture\": true,\n \"passive\": false\n }, {\n \"name\": \"brandChange\",\n \"method\": \"brandChangeHandler\",\n \"target\": \"document\",\n \"capture\": false,\n \"passive\": false\n }];\n }\n}\n//# sourceMappingURL=ic-card-vertical.js.map\n"],"mappings":"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","ignoreList":[]}
1
+ {"version":3,"names":["icCardVerticalCss","IcCardVerticalStyle0","CardVertical","constructor","hostRef","this","hostMutationObserver","areaExpanded","isFocussed","monochrome","parentEl","parentIsAnchorTag","clickable","disabled","expandable","fullWidth","hreflang","message","theme","parentFocussed","parentBlurred","toggleExpanded","watchDisabledHandler","removeDisabledFalse","el","disconnectedCallback","_a","removeEventListener","disconnect","componentWillLoad","parentElement","tagName","classList","add","addEventListener","componentDidLoad","isSlotUsed","onComponentRequiredPropUndefined","prop","heading","propName","updateTheme","MutationObserver","mutationList","renderDynamicChildSlots","observe","childList","handleHostClick","event","stopImmediatePropagation","brandChangeHandler","ev","detail","mode","setFocus","_b","shadowRoot","querySelector","focus","foregroundColor","getBrandFromContext","IcBrandForegroundEnum","Default","Light","Dark","render","href","referrerpolicy","rel","subheading","target","Component","undefined","attrs","hrefLang","referrerPolicy","h","Host","key","class","Object","assign","card","fullwidth","focussed","tabindex","name","variant","id","label","silent","onClick","innerHTML","chevronIcon"],"sources":["../web-components/dist/collection/components/ic-card-vertical/ic-card-vertical.css?tag=ic-card-vertical&encapsulation=shadow","../web-components/dist/collection/components/ic-card-vertical/ic-card-vertical.js"],"sourcesContent":["/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */\n\n/* Document\n ========================================================================== */\n\n/**\n * 1. Correct the line height in all browsers.\n * 2. Prevent adjustments of font size after orientation changes in iOS.\n */\n\nhtml {\n line-height: 1.15; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n}\n\n/* Sections\n ========================================================================== */\n\n/**\n * Remove the margin in all browsers.\n */\n\nbody {\n margin: 0;\n}\n\n/**\n * Render the `main` element consistently in IE.\n */\n\nmain {\n display: block;\n}\n\n/**\n * Correct the font size and margin on `h1` elements within `section` and\n * `article` contexts in Chrome, Firefox, and Safari.\n */\n\nh1 {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/* Grouping content\n ========================================================================== */\n\n/**\n * 1. Add the correct box sizing in Firefox.\n * 2. Show the overflow in Edge and IE.\n */\n\nhr {\n box-sizing: content-box; /* 1 */\n height: 0; /* 1 */\n overflow: visible; /* 2 */\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\npre {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/* Text-level semantics\n ========================================================================== */\n\n/**\n * Remove the gray background on active links in IE 10.\n */\n\na {\n background-color: transparent;\n}\n\n/**\n * 1. Remove the bottom border in Chrome 57-\n * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.\n */\n\nabbr[title] {\n border-bottom: none; /* 1 */\n text-decoration: underline; /* 2 */\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted; /* 2 */\n}\n\n/**\n * Add the correct font weight in Chrome, Edge, and Safari.\n */\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\ncode,\nkbd,\nsamp {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/**\n * Add the correct font size in all browsers.\n */\n\nsmall {\n font-size: 80%;\n}\n\n/**\n * Prevent `sub` and `sup` elements from affecting the line height in\n * all browsers.\n */\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/* Embedded content\n ========================================================================== */\n\n/**\n * Remove the border on images inside links in IE 10.\n */\n\nimg {\n border-style: none;\n}\n\n/* Forms\n ========================================================================== */\n\n/**\n * 1. Change the font styles in all browsers.\n * 2. Remove the margin in Firefox and Safari.\n */\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-size: 100%; /* 1 */\n line-height: 1.15; /* 1 */\n margin: 0; /* 2 */\n}\n\n/**\n * Show the overflow in IE.\n * 1. Show the overflow in Edge.\n */\n\nbutton,\ninput {\n /* 1 */\n overflow: visible;\n}\n\n/**\n * Remove the inheritance of text transform in Edge, Firefox, and IE.\n * 1. Remove the inheritance of text transform in Firefox.\n */\n\nbutton,\nselect {\n /* 1 */\n text-transform: none;\n}\n\n/**\n * Correct the inability to style clickable types in iOS and Safari.\n */\n\nbutton,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"] {\n -webkit-appearance: button;\n}\n\n/**\n * Remove the inner border and padding in Firefox.\n */\n\nbutton::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n}\n\n/**\n * Restore the focus styles unset by the previous rule.\n */\n\nbutton:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring {\n outline: 1px dotted ButtonText;\n}\n\n/**\n * Correct the padding in Firefox.\n */\n\nfieldset {\n padding: 0.35em 0.75em 0.625em;\n}\n\n/**\n * 1. Correct the text wrapping in Edge and IE.\n * 2. Correct the color inheritance from `fieldset` elements in IE.\n * 3. Remove the padding so developers are not caught out when they zero out\n * `fieldset` elements in all browsers.\n */\n\nlegend {\n box-sizing: border-box; /* 1 */\n color: inherit; /* 2 */\n display: table; /* 1 */\n max-width: 100%; /* 1 */\n padding: 0; /* 3 */\n white-space: normal; /* 1 */\n}\n\n/**\n * Add the correct vertical alignment in Chrome, Firefox, and Opera.\n */\n\nprogress {\n vertical-align: baseline;\n}\n\n/**\n * Remove the default vertical scrollbar in IE 10+.\n */\n\ntextarea {\n overflow: auto;\n}\n\n/**\n * 1. Add the correct box sizing in IE 10.\n * 2. Remove the padding in IE 10.\n */\n\n[type=\"checkbox\"],\n[type=\"radio\"] {\n box-sizing: border-box; /* 1 */\n padding: 0; /* 2 */\n}\n\n/**\n * Correct the cursor style of increment and decrement buttons in Chrome.\n */\n\n[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * 1. Correct the odd appearance in Chrome and Safari.\n * 2. Correct the outline style in Safari.\n */\n\n[type=\"search\"] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/**\n * Remove the inner padding in Chrome and Safari on macOS.\n */\n\n[type=\"search\"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n * 1. Correct the inability to style clickable types in iOS and Safari.\n * 2. Change font properties to `inherit` in Safari.\n */\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/* Interactive\n ========================================================================== */\n\n/*\n * Add the correct display in Edge, IE 10+, and Firefox.\n */\n\ndetails {\n display: block;\n}\n\n/*\n * Add the correct display in all browsers.\n */\n\nsummary {\n display: list-item;\n}\n\n/* Misc\n ========================================================================== */\n\n/**\n * Add the correct display in IE 10+.\n */\n\ntemplate {\n display: none;\n}\n\n/**\n * Add the correct display in IE 10.\n */\n\n[hidden] {\n display: none;\n}\n\nhtml,\nbody,\ndiv,\nspan,\napplet,\nobject,\niframe,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nblockquote,\npre,\na,\nabbr,\nacronym,\naddress,\nbig,\ncite,\ncode,\ndel,\ndfn,\nem,\nimg,\nins,\nkbd,\nq,\ns,\nsamp,\nsmall,\nstrike,\nstrong,\nsub,\nsup,\ntt,\nvar,\nb,\nu,\ni,\ncenter,\ndl,\ndt,\ndd,\nol,\nul,\nli,\nfieldset,\nform,\nlabel,\nlegend,\ntable,\ncaption,\ntbody,\ntfoot,\nthead,\ntr,\nth,\ntd,\narticle,\naside,\ncanvas,\ndetails,\nembed,\nfigure,\nfigcaption,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\noutput,\nruby,\nsection,\nsummary,\ntime,\nmark,\naudio,\nvideo {\n margin: 0;\n padding: 0;\n border: 0;\n font-size: 100%;\n font-style: inherit;\n vertical-align: baseline;\n}\n\n\n:host {\n display: flex;\n}\n\na {\n text-decoration: none !important;\n color: var(--ic-card-text-primary) !important;\n}\n\na:visited {\n color: var(--ic-card-link-action-dark) !important;\n}\n\nbutton {\n border: none;\n background-color: transparent;\n outline: var(--ic-hc-focus-outline);\n}\n\n.card {\n display: flex;\n flex-direction: column;\n border: var(--ic-space-1px) solid var(--ic-card-border-primary);\n border-radius: var(--ic-border-radius);\n box-sizing: border-box;\n padding: var(--ic-space-md);\n text-align: left;\n color: var(--ic-card-text-primary);\n transition: var(--ic-easing-transition-fast);\n position: relative;\n width: inherit;\n min-width: -moz-fit-content;\n min-width: fit-content;\n height: -moz-fit-content;\n height: fit-content;\n min-height: 100%;\n\n ::slotted(svg) {\n fill: var(--ic-card-icon);\n }\n\n &.monochrome {\n border: var(--ic-border-width) solid var(--ic-card-border-monochrome);\n }\n\n &.fullwidth {\n width: 100%;\n }\n\n &.clickable {\n &:hover {\n background-color: var(--ic-card-background-hover);\n border: var(--ic-space-1px) solid var(--ic-card-hover-border-color);\n cursor: pointer;\n }\n\n &.focussed,\n &:focus {\n background-color: var(--ic-card-background-hover);\n box-shadow: var(--ic-border-focus);\n outline: var(--ic-hc-focus-outline);\n border: var(--ic-space-1px) solid var(--ic-card-pressed-border-color);\n }\n\n &:active {\n background-color: var(--ic-card-background-pressed);\n box-shadow: var(--ic-border-focus);\n\n .card-title {\n text-decoration: none;\n }\n }\n\n .card-title {\n --ic-typography-color: var(--ic-card-clickable-text);\n\n color: var(--ic-card-clickable-text);\n text-decoration: underline;\n text-decoration-thickness: var(--ic-space-1px);\n margin-bottom: var(--ic-space-xxs);\n }\n\n .interaction-button,\n .icon {\n margin-bottom: var(--ic-space-xxs);\n }\n }\n\n &.disabled {\n border: var(--ic-space-1px) dashed var(--ic-card-disabled-border-color);\n\n .card-message,\n .subheading,\n .card-title {\n --ic-typography-color: var(--ic-card-disabled-text);\n }\n\n .card-title {\n text-decoration: underline;\n text-decoration-thickness: var(--ic-space-1px);\n text-decoration-color: var(--ic-card-disabled-text);\n color: var(--ic-card-disabled-text);\n }\n\n ::slotted(svg) {\n fill: var(--ic-card-icon-disabled);\n }\n }\n}\n\n.card-header {\n display: flex;\n align-items: center;\n}\n\n.icon {\n display: flex;\n align-items: center;\n padding-right: var(--ic-space-xs);\n}\n\n.card.clickable:hover .card-title,\n.card.clickable:focus .card-title,\n.card.clickable.focussed .card-title {\n display: inline-block;\n border-bottom: 0.25rem solid !important;\n margin-bottom: 0 !important;\n text-decoration: none;\n}\n\n@supports (text-underline-offset: 25%) {\n .card.clickable:hover .card-title,\n .card.clickable:focus .card-title,\n .card.clickable.focussed .card-title {\n text-decoration-line: underline;\n text-decoration-thickness: 25%;\n text-underline-offset: 25%;\n border-bottom: 0 !important;\n margin-bottom: 0.25rem !important;\n }\n}\n\n.subheading {\n margin-top: var(--ic-space-xxs);\n}\n\n.adornment {\n margin-top: var(--ic-space-xxs);\n}\n\n.card-message {\n margin-top: var(--ic-space-md);\n align-items: left;\n}\n\n.interaction-button {\n margin-left: auto;\n}\n\n.image-top {\n margin-bottom: var(--ic-space-md);\n display: flex;\n justify-content: center;\n}\n\n.image-mid {\n margin-top: var(--ic-space-md);\n display: flex;\n justify-content: center;\n}\n\n.interaction-area {\n display: flex;\n flex-grow: 1;\n gap: var(--ic-space-md);\n margin-top: var(--ic-space-md);\n align-items: flex-end;\n}\n\n.interaction-controls {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: var(--ic-space-sm);\n}\n\n.toggle-button {\n width: 2.5rem;\n height: 2.5rem;\n padding: var(--ic-space-xs);\n margin: var(--ic-space-1px) 0;\n min-width: 0;\n cursor: pointer;\n transition: var(--ic-easing-transition-fast);\n border-radius: var(--ic-border-radius);\n display: inline-flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n background: none;\n border: none;\n box-sizing: border-box;\n white-space: nowrap;\n vertical-align: middle;\n\n &:hover {\n background-color: var(--ic-card-background-hover);\n }\n\n &:focus {\n box-shadow: var(--ic-border-focus);\n }\n\n &:active:not(:focus) {\n background-color: var(--ic-card-background-pressed);\n }\n\n svg {\n pointer-events: none;\n width: 100% !important;\n height: 100% !important;\n fill: currentcolor !important;\n }\n}\n\n#ic-tooltip-expand-button {\n margin-left: auto;\n position: relative;\n}\n\n.toggle-button-closed svg {\n transform: rotate(90deg);\n}\n\n.toggle-button-expanded svg {\n transform: rotate(-90deg);\n}\n\n.expanded-content {\n margin-top: var(--ic-space-md);\n}\n\n/** High Contrast **/\n@media (forced-colors: active) {\n .card {\n ::slotted(svg) {\n fill: currentcolor;\n }\n\n &.disabled {\n border-color: GrayText !important;\n\n ::slotted(svg) {\n fill: GrayText !important;\n }\n\n .card-message,\n .subheading,\n .card-title {\n color: GrayText;\n\n --ic-typography-color: GrayText;\n }\n }\n }\n\n .toggle-button:focus,\n .toggle-button:hover {\n outline-color: Highlight;\n }\n}\n","import { h, Host, } from \"@stencil/core\";\nimport { onComponentRequiredPropUndefined, isSlotUsed, getBrandFromContext, removeDisabledFalse, renderDynamicChildSlots, } from \"../../utils/helpers\";\nimport { IcBrandForegroundEnum, } from \"../../utils/types\";\nimport chevronIcon from \"../../assets/chevron-icon.svg\";\n/**\n * @slot heading - Content will be placed at the top of the card to the right of the icon.\n * @slot message - Content will be placed in the main body of the card.\n * @slot subheading - Content will be placed below the card heading.\n * @slot adornment - Content will be placed below the card subheading.\n * @slot image-top - Content will be placed at the top of the card above all other content.\n * @slot image-mid - Content will be placed below the card heading section.\n * @slot icon - Content will be placed to the left of the card heading.\n * @slot interaction-button - Content will be placed in the top right corner of the heading section.\n * @slot interaction-controls - Content will be placed below the card message.\n * @slot expanded-content - Content will be placed below the interaction controls but will not initially be rendered.\n * @slot badge - Badge component overlaying the top right of the card.\n */\nexport class CardVertical {\n constructor() {\n this.hostMutationObserver = null;\n this.areaExpanded = false;\n this.isFocussed = false;\n this.monochrome = false;\n this.parentEl = null;\n this.parentIsAnchorTag = false;\n /**\n * If `true`, the card will be a clickable variant, instead of static.\n */\n this.clickable = false;\n /**\n * If `true`, the card will be disabled if it is clickable.\n */\n this.disabled = false;\n /**\n * If `true`, the card will have an expandable area and expansion toggle button.\n */\n this.expandable = false;\n /**\n * If `true`, the card will fill the width of the container.\n */\n this.fullWidth = false;\n /**\n * The human language of the linked URL.\n */\n this.hreflang = \"\";\n /**\n * The main body message of the card.\n */\n this.message = \"\";\n /**\n * Sets the theme color to the dark or light theme color. \"inherit\" will set the color based on the system settings or ic-theme component.\n */\n this.theme = \"inherit\";\n this.parentFocussed = () => {\n this.isFocussed = true;\n };\n this.parentBlurred = () => {\n this.isFocussed = false;\n };\n this.toggleExpanded = () => {\n this.areaExpanded = !this.areaExpanded;\n };\n }\n watchDisabledHandler() {\n removeDisabledFalse(this.disabled, this.el);\n }\n disconnectedCallback() {\n var _a;\n if (this.parentEl && this.parentIsAnchorTag) {\n this.parentEl.removeEventListener(\"focus\", this.parentFocussed);\n this.parentEl.removeEventListener(\"blur\", this.parentBlurred);\n }\n (_a = this.hostMutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();\n }\n componentWillLoad() {\n var _a;\n this.parentEl = this.el.parentElement;\n if (((_a = this.parentEl) === null || _a === void 0 ? void 0 : _a.tagName) === \"A\") {\n this.clickable = true;\n this.parentIsAnchorTag = true;\n this.parentEl.classList.add(\"ic-card-wrapper-link\");\n this.parentEl.addEventListener(\"focus\", this.parentFocussed);\n this.parentEl.addEventListener(\"blur\", this.parentBlurred);\n }\n removeDisabledFalse(this.disabled, this.el);\n }\n componentDidLoad() {\n !isSlotUsed(this.el, \"heading\") &&\n onComponentRequiredPropUndefined([{ prop: this.heading, propName: \"heading\" }], \"Card\");\n this.updateTheme();\n this.hostMutationObserver = new MutationObserver((mutationList) => renderDynamicChildSlots(mutationList, [\n \"message\",\n \"adornment\",\n \"expanded-content\",\n \"image-top\",\n \"image-mid\",\n \"icon\",\n \"interaction-button\",\n \"badge\",\n \"interaction-controls\",\n ], this));\n this.hostMutationObserver.observe(this.el, {\n childList: true,\n });\n }\n handleHostClick(event) {\n if (this.disabled) {\n event.stopImmediatePropagation();\n }\n }\n brandChangeHandler(ev) {\n this.updateTheme(ev.detail.mode);\n }\n /**\n * Sets focus on the card.\n */\n async setFocus() {\n var _a, _b;\n const shadowRoot = this.el.shadowRoot;\n if (shadowRoot) {\n if (shadowRoot.querySelector(\"a\")) {\n (_a = shadowRoot.querySelector(\"a\")) === null || _a === void 0 ? void 0 : _a.focus();\n }\n else if (shadowRoot.querySelector(\"button\")) {\n (_b = shadowRoot.querySelector(\"button\")) === null || _b === void 0 ? void 0 : _b.focus();\n }\n }\n }\n updateTheme(mode = null) {\n const foregroundColor = getBrandFromContext(this.el, mode);\n if (foregroundColor !== IcBrandForegroundEnum.Default) {\n this.monochrome = true;\n this.theme =\n foregroundColor === IcBrandForegroundEnum.Light\n ? IcBrandForegroundEnum.Dark\n : IcBrandForegroundEnum.Light;\n }\n }\n render() {\n const { clickable, disabled, expandable, fullWidth, heading, isFocussed, message, monochrome, href, hreflang, parentIsAnchorTag, referrerpolicy, rel, subheading, target, theme, } = this;\n const Component = parentIsAnchorTag || !clickable\n ? \"div\"\n : href === undefined\n ? \"button\"\n : \"a\";\n const attrs = Component == \"a\" && {\n href: href,\n hrefLang: hreflang,\n referrerPolicy: referrerpolicy,\n rel: rel,\n target: target,\n };\n return (h(Host, { key: '2dc8070692fc796401c84c6156d1f66c8053310a', class: {\n [`ic-theme-${theme}`]: theme !== \"inherit\",\n } }, h(Component, Object.assign({ key: 'a1a8763990ed7e5ac5eecfc69e4b29ab184b9e6e', class: {\n card: true,\n clickable: !!clickable && !disabled,\n disabled: !!disabled,\n fullwidth: !!fullWidth,\n focussed: isFocussed,\n monochrome: monochrome,\n }, tabindex: clickable && !parentIsAnchorTag ? 0 : undefined, \"aria-disabled\": disabled ? \"true\" : null, disabled: disabled }, attrs), isSlotUsed(this.el, \"image-top\") && (h(\"div\", { key: '2c12f461a8b8972d8a4de1a6560a2c52ecadc36f', class: \"image-top\" }, h(\"slot\", { key: '9afec40e5ef6b57a10ca922d7f3da378f962200f', name: \"image-top\" }))), h(\"div\", { key: 'bb92939da24dbfa2fb2e4bc2606d4f7ef9d2ba37', class: \"card-header\" }, isSlotUsed(this.el, \"icon\") && (h(\"div\", { key: '165af9342325b430548209cf2bcd5b9781b752fd', class: \"icon\" }, h(\"slot\", { key: '4b2cdd47b1f2abfc16097dee848b630c93c1b835', name: \"icon\" }))), h(\"div\", { key: '02f1b6357a696bc43b9d5cc7c8030647b52e311c', class: \"card-title\" }, h(\"slot\", { key: 'b71ca0fa6a4aeb1cf75579920a66f58abe11d5ae', name: \"heading\" }, h(\"ic-typography\", { key: '63f9c6478987888f41a53d5beadec2b3deaa52ae', variant: \"h4\" }, h(\"p\", { key: '6d642c20d4656a408cf439c969a1895cb834c15e' }, heading)))), isSlotUsed(this.el, \"interaction-button\") && (h(\"div\", { key: '7a44d7d2c17cd980fa14da2a65aa68ddd8832f77', class: \"interaction-button\" }, h(\"slot\", { key: '6a9e0f0ca96125d94d39b31474c82ffe088ea475', name: \"interaction-button\" })))), (subheading || isSlotUsed(this.el, \"subheading\")) && (h(\"div\", { key: 'dc19ca8ae488c30aa1fc58e56db23fc0dc2a2c0f', class: \"subheading\" }, h(\"slot\", { key: 'bae9a057f813ef5c5df04befed60d09ccb106857', name: \"subheading\" }, h(\"ic-typography\", { key: '13a32e2d9bc3258b65edf8a5c385f181f39a2c8d', variant: \"subtitle-small\" }, subheading)))), isSlotUsed(this.el, \"adornment\") && (h(\"div\", { key: 'c359631c9d1ed0643290e1db2a5e521d6702b29d', class: \"adornment\" }, h(\"slot\", { key: '398a65927df066f96bffc5b59b95fd27ec558c12', name: \"adornment\" }))), isSlotUsed(this.el, \"image-mid\") && (h(\"div\", { key: '463a2495779d1faca6efd98a3e1425e3486fc0d1', class: \"image-mid\" }, h(\"slot\", { key: '049daa3cbf2542b0a47951a8758bb50a1ad699e2', name: \"image-mid\" }))), (message || isSlotUsed(this.el, \"message\")) && (h(\"div\", { key: '9f6b4ea8e3a8cfa0e8ad58366f4e2a198cb0f8f6', class: \"card-message\" }, message && (h(\"ic-typography\", { key: '1a32ff3958de50ea5732a0fb52616d04c6ebedcc', variant: \"body\" }, message)), isSlotUsed(this.el, \"message\") && h(\"slot\", { key: '0dabb8f6ed9bd42a0982284fa4976734c0d5e16f', name: \"message\" }))), (isSlotUsed(this.el, \"interaction-controls\") || expandable) && (h(\"div\", { key: '2d6292c895df325c53cffc72a330720855644c59', class: \"interaction-area\" }, h(\"div\", { key: 'a8c4c10d85a5608f49dbccb8cb65443d56d64a3f', class: \"interaction-controls\" }, h(\"slot\", { key: '5caebe86117ec6ef31d096a284aa035153e02a56', name: \"interaction-controls\" })), expandable && (h(\"ic-tooltip\", { key: '1d66d84f3181cc1694cdf779befca1610c538f71', id: \"ic-tooltip-expand-button\", label: \"Toggle expandable area\", silent: true }, h(\"button\", { key: 'eaa2b9484428dab89fb67677b80a09a6174b011b', class: {\n \"toggle-button\": true,\n [`toggle-button-${this.areaExpanded ? \"expanded\" : \"closed\"}`]: true,\n }, \"aria-label\": \"Toggle expandable area\", \"aria-expanded\": `${this.areaExpanded}`, \"aria-controls\": this.areaExpanded ? \"expanded-content-area\" : null, onClick: this.toggleExpanded, innerHTML: chevronIcon }))))), isSlotUsed(this.el, \"expanded-content\") && this.areaExpanded && (h(\"div\", { key: 'd896c331bad9e027c4b56dd1fce75bc530218516', class: \"expanded-content\", id: \"expanded-content-area\" }, h(\"slot\", { key: '7fc81de39ef8a949674f22089d413bf946befdd7', name: \"expanded-content\" }))), isSlotUsed(this.el, \"badge\") && h(\"slot\", { key: '283bff90fab9be3b640ab7d04384d7ce2873bad8', name: \"badge\" }))));\n }\n static get is() { return \"ic-card-vertical\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() {\n return {\n \"$\": [\"ic-card-vertical.css\"]\n };\n }\n static get styleUrls() {\n return {\n \"$\": [\"ic-card-vertical.css\"]\n };\n }\n static get properties() {\n return {\n \"clickable\": {\n \"type\": \"boolean\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean | undefined\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"If `true`, the card will be a clickable variant, instead of static.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"clickable\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"disabled\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean | undefined\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"If `true`, the card will be disabled if it is clickable.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"disabled\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"expandable\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean | undefined\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"If `true`, the card will have an expandable area and expansion toggle button.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"expandable\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"fullWidth\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean | undefined\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"If `true`, the card will fill the width of the container.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"full-width\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"heading\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string | undefined\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The heading for the card. This is required, unless a slotted heading is used.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"heading\",\n \"reflect\": false\n },\n \"href\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string | undefined\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The URL that the clickable card link points to. If set, the clickable card will render as an \\\"a\\\" tag, otherwise it will render as a button.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"href\",\n \"reflect\": false\n },\n \"hreflang\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string | undefined\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The human language of the linked URL.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"hreflang\",\n \"reflect\": false,\n \"defaultValue\": \"\\\"\\\"\"\n },\n \"message\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string | undefined\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The main body message of the card.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"message\",\n \"reflect\": false,\n \"defaultValue\": \"\\\"\\\"\"\n },\n \"referrerpolicy\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"ReferrerPolicy\",\n \"resolved\": \"\\\"\\\" | \\\"no-referrer\\\" | \\\"no-referrer-when-downgrade\\\" | \\\"origin\\\" | \\\"origin-when-cross-origin\\\" | \\\"same-origin\\\" | \\\"strict-origin\\\" | \\\"strict-origin-when-cross-origin\\\" | \\\"unsafe-url\\\" | undefined\",\n \"references\": {\n \"ReferrerPolicy\": {\n \"location\": \"global\",\n \"id\": \"global::ReferrerPolicy\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"How much of the referrer to send when following the link.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"referrerpolicy\",\n \"reflect\": false\n },\n \"rel\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string | undefined\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The relationship of the linked URL as space-separated link types.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"rel\",\n \"reflect\": false\n },\n \"subheading\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string | undefined\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The subheading for the card.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"subheading\",\n \"reflect\": false\n },\n \"target\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string | undefined\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The place to display the linked URL, as the name for a browsing context (a tab, window, or iframe).\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"target\",\n \"reflect\": false\n },\n \"theme\": {\n \"type\": \"string\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"IcThemeMode\",\n \"resolved\": \"\\\"dark\\\" | \\\"inherit\\\" | \\\"light\\\" | undefined\",\n \"references\": {\n \"IcThemeMode\": {\n \"location\": \"import\",\n \"path\": \"../../utils/types\",\n \"id\": \"src/utils/types.ts::IcThemeMode\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Sets the theme color to the dark or light theme color. \\\"inherit\\\" will set the color based on the system settings or ic-theme component.\"\n },\n \"getter\": false,\n \"setter\": false,\n \"attribute\": \"theme\",\n \"reflect\": false,\n \"defaultValue\": \"\\\"inherit\\\"\"\n }\n };\n }\n static get states() {\n return {\n \"areaExpanded\": {},\n \"isFocussed\": {},\n \"monochrome\": {},\n \"parentEl\": {},\n \"parentIsAnchorTag\": {}\n };\n }\n static get methods() {\n return {\n \"setFocus\": {\n \"complexType\": {\n \"signature\": \"() => Promise<void>\",\n \"parameters\": [],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\",\n \"id\": \"global::Promise\"\n }\n },\n \"return\": \"Promise<void>\"\n },\n \"docs\": {\n \"text\": \"Sets focus on the card.\",\n \"tags\": []\n }\n }\n };\n }\n static get elementRef() { return \"el\"; }\n static get watchers() {\n return [{\n \"propName\": \"disabled\",\n \"methodName\": \"watchDisabledHandler\"\n }];\n }\n static get listeners() {\n return [{\n \"name\": \"click\",\n \"method\": \"handleHostClick\",\n \"target\": undefined,\n \"capture\": true,\n \"passive\": false\n }, {\n \"name\": \"brandChange\",\n \"method\": \"brandChangeHandler\",\n \"target\": \"document\",\n \"capture\": false,\n \"passive\": false\n }];\n }\n}\n//# sourceMappingURL=ic-card-vertical.js.map\n"],"mappings":"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","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- const t=t=>{const n=/^(0[1-9]|1[0-2])(\/|-)(0[1-9]|[12][0-9]|3[01])(\/|-)\d{4}$/;return n.test(t)};const n=(t,n)=>{let e=new Date;if(s(t)){e=typeof t==="string"?new Date(t):t}else if(typeof t==="string"){const s=o(t,n);const c=Number(s[0]);const a=Number(s[1])-1;const r=Number(s[2]);e=new Date(c,a,r)}return e};const s=t=>t instanceof Date||!isNaN(+new Date(+t));const e=t=>t.slice(0,t.indexOf("T"));const o=(n,s)=>{if(n.includes("T")&&n.includes("Z"))return e(n).split("-");let o=[];const a=n.replace(/-/g,"/").split("/");if(a.length>1){const n=a.map((t=>t.length===1?c(t):t));if(n[0].length===4){o=[n[0],n[1],n[2]]}else{o=[n[2],n[1],n[0]];if(t(n.join("/"))&&s.charAt(0)==="M"){o=[n[2],n[0],n[1]]}}}return o};const c=t=>+t<10?`0${t}`:t.toString();const a=(t,n)=>{const s=new Date(t);const e=s.getDay();const o=(e<n?7:0)+e-n;s.setDate(s.getDate()-o);return s};const r=(t,n)=>{const s=new Date(t);const e=s.getDay();const o=(e<n?-7:0)+6-(e-n);s.setDate(s.getDate()+o);return s};const u=t=>new Date(t.getFullYear(),t.getMonth(),1);const i=t=>new Date(t.getFullYear(),t.getMonth()+1,0);const f=(t,n)=>t!==null&&n!==null&&t.getFullYear()===n.getFullYear()&&t.getMonth()===n.getMonth()&&t.getDate()===n.getDate();const l=(t,n,s)=>{const e=t.getTime();if(n!==null&&e<n.getTime()){return n}if(s!==null&&e>s.getTime()){return s}return t};const D=(t,n,s)=>l(t,n,s)===t;const w=(t,n,s)=>!t||!(n&&t<n.getFullYear())&&!(s&&t>s.getFullYear());export{u as a,f as b,a as c,D as d,r as e,l as f,i as g,n as h,s as i,c as j,e as k,o as s,w as y};
2
- //# sourceMappingURL=p-c86ca475.js.map
1
+ const t=t=>{const n=/^(0[1-9]|1[0-2])(\/|-)(0[1-9]|[12][0-9]|3[01])(\/|-)\d{4}$/;return n.test(t)};const n=(t,n)=>{let e=new Date;if(s(t)){e=typeof t==="string"?new Date(t):t}else if(typeof t==="string"){const s=o(t,n);const c=Number(s[0]);const a=Number(s[1])-1;const r=Number(s[2]);e=new Date(c,a,r)}return e};const s=t=>t instanceof Date||!isNaN(+new Date(+t));const e=t=>t.slice(0,t.indexOf("T"));const o=(n,s)=>{if(n.includes("T")&&n.includes("Z"))return e(n).split("-");let o=[];const a=n.replace(/-/g,"/").split("/");if(a.length>1){const n=a.map((t=>t.length===1?c(t):t));if(n[0].length===4){o=[n[0],n[1],n[2]]}else{o=[n[2],n[1],n[0]];if(t(n.join("/"))&&s.charAt(0)==="M"){o=[n[2],n[0],n[1]]}}}return o};const c=t=>+t<10?`0${t}`:t.toString();const a=(t,n)=>{const s=new Date(t);const e=s.getDay();const o=(e<n?7:0)+e-n;s.setDate(s.getDate()-o);return s};const r=t=>new Date(t.getFullYear(),t.getMonth(),1);const u=t=>new Date(t.getFullYear(),t.getMonth()+1,0);const i=t=>new Date(new Date(t).setDate(t.getDate()+41));const f=(t,n)=>t!==null&&n!==null&&t.getFullYear()===n.getFullYear()&&t.getMonth()===n.getMonth()&&t.getDate()===n.getDate();const l=(t,n,s)=>{const e=t.getTime();if(n!==null&&e<n.getTime()){return n}if(s!==null&&e>s.getTime()){return s}return t};const D=(t,n,s)=>l(t,n,s)===t;const w=(t,n,s)=>!t||!(n&&t<n.getFullYear())&&!(s&&t>s.getFullYear());export{r as a,f as b,a as c,D as d,i as e,l as f,u as g,n as h,s as i,c as j,e as k,o as s,w as y};
2
+ //# sourceMappingURL=p-bc441e4c.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["isMonthFirstFormat","dateString","monthFirstFormat","test","createDate","date","dateFormat","newDate","Date","isDateOrEpoch","dateArray","splitStringDate","year","Number","month","day","isNaN","extractDateFromZuluDateTime","zuluDateTime","slice","indexOf","includes","split","splitDateWithSlashes","replace","length","dateParts","map","part","convertToDoubleDigits","join","charAt","value","toString","getWeekStart","startDay","tmpDate","getDay","diff","setDate","getDate","getMonthStart","getFullYear","getMonth","getMonthEnd","addSixWeeks","start","dateMatches","a","b","clampDate","min","max","time","getTime","dateInRange","yearInRange"],"sources":["src/utils/date-helpers.ts"],"sourcesContent":["import { IcDateFormat, IcWeekDays } from \"../utils/types\";\n\nexport const isMonthFirstFormat = (dateString: string): boolean => {\n const monthFirstFormat =\n /^(0[1-9]|1[0-2])(\\/|-)(0[1-9]|[12][0-9]|3[01])(\\/|-)\\d{4}$/;\n return monthFirstFormat.test(dateString);\n};\n\nexport const isDayFirstFormat = (dateString: string): boolean => {\n const dayFirstFormat =\n /^(0[1-9]|[12][0-9]|3[01])(\\/|-)(0[1-9]|1[0-2])(\\/|-)\\d{4}$/;\n return dayFirstFormat.test(dateString);\n};\n\nexport const createDate = (\n date: string | Date,\n dateFormat: IcDateFormat\n): Date => {\n let newDate = new Date();\n if (isDateOrEpoch(date)) {\n newDate = typeof date === \"string\" ? new Date(date) : date;\n } else if (typeof date === \"string\") {\n const dateArray = splitStringDate(date, dateFormat);\n const year = Number(dateArray[0]);\n const month = Number(dateArray[1]) - 1;\n const day = Number(dateArray[2]);\n newDate = new Date(year, month, day);\n }\n return newDate;\n};\n\nexport const isDateOrEpoch = (date: Date | string): boolean =>\n date instanceof Date || !isNaN(+new Date(+date));\n\nexport const extractDateFromZuluDateTime = (zuluDateTime: string): string =>\n zuluDateTime.slice(0, zuluDateTime.indexOf(\"T\"));\n\nexport const splitStringDate = (\n date: string,\n dateFormat: IcDateFormat\n): string[] => {\n // returns an array where item 1 is year, item 2 is month, item 3 is day\n if (date.includes(\"T\") && date.includes(\"Z\"))\n return extractDateFromZuluDateTime(date).split(\"-\");\n\n let newDate: string[] = [];\n\n const splitDateWithSlashes = date.replace(/-/g, \"/\").split(\"/\");\n if (splitDateWithSlashes.length > 1) {\n const dateParts = splitDateWithSlashes.map((part) =>\n part.length === 1 ? convertToDoubleDigits(part) : part\n ); // pad any values to 2 characters\n\n if (dateParts[0].length === 4) {\n newDate = [dateParts[0], dateParts[1], dateParts[2]];\n } else {\n newDate = [dateParts[2], dateParts[1], dateParts[0]];\n\n if (\n isMonthFirstFormat(dateParts.join(\"/\")) &&\n dateFormat.charAt(0) === \"M\"\n ) {\n newDate = [dateParts[2], dateParts[0], dateParts[1]];\n }\n }\n }\n\n return newDate;\n};\n\nexport const convertToDoubleDigits = (value: string | number): string =>\n +value < 10 ? `0${value}` : value.toString();\n\nexport const getWeekStart = (date: Date, startDay: IcWeekDays): Date => {\n const tmpDate = new Date(date);\n const day = tmpDate.getDay();\n const diff = (day < startDay ? 7 : 0) + day - startDay;\n\n tmpDate.setDate(tmpDate.getDate() - diff);\n return tmpDate;\n};\n\nexport const getMonthStart = (date: Date): Date => {\n return new Date(date.getFullYear(), date.getMonth(), 1);\n};\n\nexport const getMonthEnd = (date: Date): Date => {\n return new Date(date.getFullYear(), date.getMonth() + 1, 0);\n};\n\nexport const addSixWeeks = (start: Date): Date => {\n return new Date(new Date(start).setDate(start.getDate() + 41));\n};\n\n/**\n * Compare if two dates are equal exactly equal\n */\nexport const dateMatches = (a: Date | null, b: Date | null): boolean =>\n a !== null &&\n b !== null &&\n a.getFullYear() === b.getFullYear() &&\n a.getMonth() === b.getMonth() &&\n a.getDate() === b.getDate();\n\nexport const clampDate = (\n date: Date,\n min: Date | null,\n max: Date | null\n): Date => {\n const time = date.getTime();\n if (min !== null && time < min.getTime()) {\n return min;\n }\n if (max !== null && time > max.getTime()) {\n return max;\n }\n return date;\n};\n\n/**\n * Compare if date is within specified range\n */\nexport const dateInRange = (\n date: Date,\n min: Date | null,\n max: Date | null\n): boolean => clampDate(date, min, max) === date;\n\nexport const yearInRange = (\n year: number | null,\n min: Date | null,\n max: Date | null\n): boolean =>\n !year ||\n (!(min && year < min.getFullYear()) && !(max && year > max.getFullYear()));\n"],"mappings":"AAEO,MAAMA,EAAsBC,IACjC,MAAMC,EACJ,6DACF,OAAOA,EAAiBC,KAAKF,EAAW,E,MAS7BG,EAAa,CACxBC,EACAC,KAEA,IAAIC,EAAU,IAAIC,KAClB,GAAIC,EAAcJ,GAAO,CACvBE,SAAiBF,IAAS,SAAW,IAAIG,KAAKH,GAAQA,C,MACjD,UAAWA,IAAS,SAAU,CACnC,MAAMK,EAAYC,EAAgBN,EAAMC,GACxC,MAAMM,EAAOC,OAAOH,EAAU,IAC9B,MAAMI,EAAQD,OAAOH,EAAU,IAAM,EACrC,MAAMK,EAAMF,OAAOH,EAAU,IAC7BH,EAAU,IAAIC,KAAKI,EAAME,EAAOC,E,CAElC,OAAOR,CAAO,E,MAGHE,EAAiBJ,GAC5BA,aAAgBG,OAASQ,OAAO,IAAIR,MAAMH,I,MAE/BY,EAA+BC,GAC1CA,EAAaC,MAAM,EAAGD,EAAaE,QAAQ,M,MAEhCT,EAAkB,CAC7BN,EACAC,KAGA,GAAID,EAAKgB,SAAS,MAAQhB,EAAKgB,SAAS,KACtC,OAAOJ,EAA4BZ,GAAMiB,MAAM,KAEjD,IAAIf,EAAoB,GAExB,MAAMgB,EAAuBlB,EAAKmB,QAAQ,KAAM,KAAKF,MAAM,KAC3D,GAAIC,EAAqBE,OAAS,EAAG,CACnC,MAAMC,EAAYH,EAAqBI,KAAKC,GAC1CA,EAAKH,SAAW,EAAII,EAAsBD,GAAQA,IAGpD,GAAIF,EAAU,GAAGD,SAAW,EAAG,CAC7BlB,EAAU,CAACmB,EAAU,GAAIA,EAAU,GAAIA,EAAU,G,KAC5C,CACLnB,EAAU,CAACmB,EAAU,GAAIA,EAAU,GAAIA,EAAU,IAEjD,GACE1B,EAAmB0B,EAAUI,KAAK,OAClCxB,EAAWyB,OAAO,KAAO,IACzB,CACAxB,EAAU,CAACmB,EAAU,GAAIA,EAAU,GAAIA,EAAU,G,GAKvD,OAAOnB,CAAO,E,MAGHsB,EAAyBG,IACnCA,EAAQ,GAAK,IAAIA,IAAUA,EAAMC,W,MAEvBC,EAAe,CAAC7B,EAAY8B,KACvC,MAAMC,EAAU,IAAI5B,KAAKH,GACzB,MAAMU,EAAMqB,EAAQC,SACpB,MAAMC,GAAQvB,EAAMoB,EAAW,EAAI,GAAKpB,EAAMoB,EAE9CC,EAAQG,QAAQH,EAAQI,UAAYF,GACpC,OAAOF,CAAO,E,MAGHK,EAAiBpC,GACrB,IAAIG,KAAKH,EAAKqC,cAAerC,EAAKsC,WAAY,G,MAG1CC,EAAevC,GACnB,IAAIG,KAAKH,EAAKqC,cAAerC,EAAKsC,WAAa,EAAG,G,MAG9CE,EAAeC,GACnB,IAAItC,KAAK,IAAIA,KAAKsC,GAAOP,QAAQO,EAAMN,UAAY,K,MAM/CO,EAAc,CAACC,EAAgBC,IAC1CD,IAAM,MACNC,IAAM,MACND,EAAEN,gBAAkBO,EAAEP,eACtBM,EAAEL,aAAeM,EAAEN,YACnBK,EAAER,YAAcS,EAAET,U,MAEPU,EAAY,CACvB7C,EACA8C,EACAC,KAEA,MAAMC,EAAOhD,EAAKiD,UAClB,GAAIH,IAAQ,MAAQE,EAAOF,EAAIG,UAAW,CACxC,OAAOH,C,CAET,GAAIC,IAAQ,MAAQC,EAAOD,EAAIE,UAAW,CACxC,OAAOF,C,CAET,OAAO/C,CAAI,E,MAMAkD,EAAc,CACzBlD,EACA8C,EACAC,IACYF,EAAU7C,EAAM8C,EAAKC,KAAS/C,E,MAE/BmD,EAAc,CACzB5C,EACAuC,EACAC,KAECxC,KACEuC,GAAOvC,EAAOuC,EAAIT,kBAAoBU,GAAOxC,EAAOwC,EAAIV,sB","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as t,c as i,h as s,H as e,g as a}from"./p-8e4e97b4.js";import{b as h,s as r,q as n,r as o,v as l,w as c,o as d,t as u,u as f,x as b,k as p,l as v}from"./p-0f22f41e.js";import{b as m,i as w,j as y,s as g,h as k,k as x}from"./p-bc441e4c.js";import{C as $}from"./p-dd7450fb.js";const D=`<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none">\n <path d="M16.6667 2.50004H15.8334V0.833374H14.1667V2.50004H5.83342V0.833374H4.16675V2.50004H3.33341C2.41675 2.50004 1.66675 3.25004 1.66675 4.16671V17.5C1.66675 18.4167 2.41675 19.1667 3.33341 19.1667H16.6667C17.5834 19.1667 18.3334 18.4167 18.3334 17.5V4.16671C18.3334 3.25004 17.5834 2.50004 16.6667 2.50004ZM16.6667 17.5H3.33341V6.66671H16.6667V17.5Z" fill="currentColor"/>\n</svg>`;const H='/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type="button"],[type="reset"],[type="submit"]{-webkit-appearance:button}button::-moz-focus-inner,[type="button"]::-moz-focus-inner,[type="reset"]::-moz-focus-inner,[type="submit"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type="button"]:-moz-focusring,[type="reset"]:-moz-focusring,[type="submit"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type="checkbox"],[type="radio"]{box-sizing:border-box;padding:0;}[type="number"]::-webkit-inner-spin-button,[type="number"]::-webkit-outer-spin-button{height:auto}[type="search"]{-webkit-appearance:textfield;outline-offset:-2px;}[type="search"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{--ic-input-label-helpertext-padding:var(--ic-space-xs);--input-bg-color:var(--ic-date-input-bg);--ic-input-label-text-color:var(--ic-date-input-label);--ic-input-label-helper-text-color:var(--ic-date-input-subtitle);--border-color:var(--ic-date-input-border);--border-color-disabled:var(--ic-date-input-border-disabled);--border-color-hover:var(--ic-date-input-border-default-hover);--border-color-pressed:var(--ic-date-input-border-default-pressed);--border-error-color:var(--ic-date-input-border-error);--border-error-color-hover:var(--ic-date-input-border-error-hover);--border-error-color-pressed:var(--ic-date-input-border-error-pressed);--border-success-color:var(--ic-date-input-border-success);--border-success-color-hover:var(--ic-date-input-border-success-hover);--border-success-color-pressed:var(--ic-date-input-border-success-pressed);--border-warning-color:var(--ic-date-input-border-warning);--border-warning-color-hover:var(--ic-date-input-border-warning-hover);--border-warning-color-pressed:var(--ic-date-input-border-warning-pressed)}:host(.ic-date-input-disabled){--ic-input-label-text-color:var(--ic-date-input-label-disabled);--ic-input-label-helper-text-color:var(--ic-date-input-subtitle-disabled)}input{border:0;height:100%;padding:0;outline:none;background:none;-moz-appearance:textfield;-webkit-appearance:textfield;appearance:textfield;color:var(--ic-date-input-text-filled);caret-color:var(--ic-date-input-typing-cursor)}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none}input:-webkit-autofill{box-shadow:0 0 0 var(--ic-space-sm) var(--ic-color-background-primary) inset;-webkit-text-fill-color:var(--ic-date-input-text-filled) !important}input::-moz-placeholder{color:var(--ic-date-input-text-placeholder)}input::placeholder{color:var(--ic-date-input-text-placeholder)}ic-input-component-container{cursor:text}ic-input-component-container .focus-indicator{padding:var(--ic-space-xxxs) var(--ic-space-xs);align-items:center}.date-inputs{color:var(--ic-date-input-text-placeholder)}.day-input{width:1.438rem}.month-input{width:1.813rem}.year-input,.year-input.fit-to-value{width:2.313rem}.fit-to-value{width:1.25rem}.sr-only{position:absolute;left:-9999px}.input-container{width:100%;display:flex;justify-content:space-between;align-items:center;position:relative}.action-buttons{display:flex;align-items:center}.show-calendar-button-wrapper{display:flex;justify-content:center;align-items:center}.clear-button,.calendar-button{border-radius:var(--ic-border-radius);transition:box-shadow var(--ic-easing-transition),\n border-radius var(--ic-easing-transition);margin:0}.clear-button.hidden{display:none}.clear-button:focus,.calendar-button:focus,.clear-button:active,.calendar-button:active{background-color:var(--ic-color-focus-inner) !important;box-shadow:inset 0 0 0 0.125rem var(--ic-color-focus-outer) !important;border-radius:0.25rem}.calendar-button:focus,.calendar-button:active{--ic-button-tertiary-text-active:var(--ic-atoms-input-clear-button-focus);--ic-button-tertiary-text-hover-active:var(\n --ic-atoms-input-clear-button-focus\n );--ic-button-tertiary-text-pressed-active:var(\n --ic-atoms-input-clear-button-focus\n )}.clear-button:focus,.calendar-button:focus,.clear-button:active *,.calendar-button:active *{fill:var(--ic-atoms-input-clear-button-focus)}.clear-button svg{color:var(--ic-date-input-clear-icon)}.clear-button:focus svg{color:var(--ic-atoms-input-clear-button-focus)}.divider{margin:0 var(--ic-space-xxs);width:var(--ic-space-1px);background-color:var(--ic-atoms-input-divider);border-radius:var(--ic-space-1px)}.divider.small{height:var(--ic-space-md)}.divider.medium{height:calc(var(--ic-space-sm) + var(--ic-space-xs))}.divider.large{height:var(--ic-space-lg)}ic-input-validation{--ic-input-validation-status-text-color:var(--ic-date-input-status-text);--ic-input-validation-error:var(--ic-date-input-icon-error);--ic-input-validation-warning-icon-color:var(--ic-date-input-icon-warning);--ic-input-validation-success-icon-color:var(--ic-date-input-icon-success)}';const z=H;let Y=0;const M=class{constructor(e){t(this,e);this.calendarButtonClicked=i(this,"calendarButtonClicked",7);this.icBlur=i(this,"icBlur",7);this.icChange=i(this,"icChange",7);this.icFocus=i(this,"icFocus",7);this.DEFAULT_DATE_FORMAT="DD/MM/YYYY";this.ARIA_INVALID="aria-invalid";this.ARIA_LABEL="aria-label";this.ARIA_LABELLED_BY="aria-labelledby";this.EVENT_OBJECT_STRING="[object Event]";this.FIT_TO_VALUE="fit-to-value";this.initialValue=this.value;this.INPUT_EVENT_OBJECT_STRING="[object InputEvent]";this.inputsInOrder=[];this.isAfterMax=false;this.isBeforeMin=false;this.preventInputsUpdating=false;this.isDisabledDate=false;this.isValidDay=true;this.isValidMonth=true;this.isValidDate=true;this.isZuluTime=false;this.KEYBOARD_EVENT_OBJECT_STRING="[object KeyboardEvent]";this.MAX_DAY=31;this.MAX_MONTH=12;this.previousSelectedDate=null;this.selectedDate=null;this.externalSetDate=false;this.clearInput=false;this.calendarIsOpen=false;this.calendarFocused=false;this.clearButtonFocused=false;this.removeLabelledBy=false;this.day="";this.month="";this.year="";this.dateFormat=this.DEFAULT_DATE_FORMAT;this.emitDatePartChange=false;this.disabled=false;this.disableDays=[];this.disableDaysMessage="The date you have selected is on a day of the week that is not allowed. Please select another date.";this.disableFuture=false;this.disableFutureMessage="Dates in the future are not allowed. Please select a date in the past.";this.disablePast=false;this.disablePastMessage="Dates in the past are not allowed. Please select a date in the future.";this.hideHelperText=false;this.hideLabel=false;this.inputId=`ic-date-input-${Y++}`;this.invalidDateMessage="Please enter a valid date.";this.max="";this.min="";this.name=this.inputId;this.required=false;this.showCalendarButton=false;this.showClearButton=true;this.size="medium";this.theme="inherit";this.value="";this.validationStatus="";this.validationText="";this.setInputPasteValue=(t,i)=>{if(t){const s=t;s.value=i;s.classList.add(this.FIT_TO_VALUE)}};this.checkSingleCopiedValueIsValid=(t,i)=>{let s=false;const e=Number(i);switch(t){case this.dayInputEl:s=e>=1&&e<=this.MAX_DAY;break;case this.monthInputEl:s=e>=1&&e<=this.MAX_MONTH;break;case this.yearInputEl:s=true;break}return s};this.isKeyboardOrEvent=t=>Object.prototype.toString.call(t)===this.EVENT_OBJECT_STRING||Object.prototype.toString.call(t)===this.KEYBOARD_EVENT_OBJECT_STRING;this.setDateValidity=()=>{if(!h(this.day)){this.isValidDay=+this.day>this.MAX_DAY?false:true}else{this.isValidDay=true}if(!h(this.month)){this.isValidMonth=+this.month>this.MAX_MONTH?false:true}else{this.isValidMonth=true}};this.handleInput=t=>{const i=t;const s=t.target;if(s!==this.yearInputEl){if(i.inputType!=="deleteContentBackward"&&!this.preventAutoFormatting){if(s.value.length===1&&(s===this.dayInputEl&&+s.value>=4||s===this.monthInputEl&&+s.value>=2)&&+s.value<=9){this.setInputValue(s);this.notifyScreenReader(s,t);this.moveToNextInput(s)}if(s.value.length===2){if(+s.value===0){s.value="01"}this.setInputValue(s);this.setPreventInput(s,true);this.notifyScreenReader(s,t);this.moveToNextInput(s)}else{this.setPreventInput(s,false)}}else if(this.preventAutoFormatting){if(s.value.length===2&&!this.isKeyboardOrEvent(t)){this.setInputValue(s);this.setPreventInput(s,true);this.moveToNextInput(s)}else{this.setInputValue(s)}}if(s.value.length!==2){this.setPreventInput(s,false)}}else{if(s.value.length===4){this.setInputValue(s);if(Object.prototype.toString.call(t)!==this.EVENT_OBJECT_STRING){this.moveToNextInput(s)}this.setPreventInput(s,true)}else{this.setPreventInput(s,false)}}this.setFitToValueStyling(s);if(s.value.length===0){this.setInputValue(s,true);this.setValidationMessage()}this.notifyScreenReader(s,t)};this.handleKeyDown=(t,i)=>{var s;const e=t.target;const a=(s=t.key)===null||s===void 0?void 0:s.toLowerCase();const h=/-?\d*\.?\d+(e[-+]?\d+)?|[/-]|arrowup|arrowdown|arrowleft|arrowright|shift|tab|backspace|delete/;if(!h.test(a)&&!((t.ctrlKey||t.metaKey)&&(a==="v"||a==="c"))){t.preventDefault()}switch(a){case"/":case"-":case".":t.preventDefault();this.setPasteInvalidText();this.moveToNextInput(e);break;case"arrowright":case"arrowleft":t.preventDefault();this.handleLeftRightArrowKeyPress(e,a);break;case"arrowup":case"arrowdown":this.preventAutoFormatting=true;this.handleUpDownArrowKeyPress(e,t);break;case"backspace":if(e.value.length===0){t.preventDefault();this.moveToPreviousInput(e)}break}this.preventInput(t,i);this.preventInputsUpdating=true};this.handleFocus=t=>{const i=t.target;i.select()};this.handleBlur=t=>{const i=t.target;if(i){this.setPasteInvalidText();this.autocompleteInput(i)}};this.handleLeftRightArrowKeyPress=(t,i)=>{if(i==="arrowright"){this.moveToNextInput(t)}else{this.moveToPreviousInput(t)}this.setPasteInvalidText()};this.notifyScreenReaderSelectedDate=()=>{if(this.selectedDate&&this.selectedDateInfoEl){const t=r(p);const i=r(v);this.selectedDateInfoEl.textContent=`Selected date: ${t[this.selectedDate.getDay()]}, ${this.selectedDate.getDate()} ${i[this.selectedDate.getMonth()]} ${this.selectedDate.getFullYear()}`}};this.handleUpDownArrowKeyPress=(t,i)=>{const s=t===this.yearInputEl?0:1;let e=9999;switch(t){case this.dayInputEl:e=this.MAX_DAY;break;case this.monthInputEl:e=this.MAX_MONTH;break;case this.yearInputEl:e=9999}if(t===null||t===void 0?void 0:t.value){if(i.key==="ArrowUp"){if(+t.value===e){i.preventDefault();t.value=`0${s}`}else{t.value=+t.value+1<10?`0${+t.value+1}`:(+t.value+1).toString()}this.notifyScreenReader(t,i)}if(i.key==="ArrowDown"){if(+t.value===s){i.preventDefault();t.value=e.toString()}else{t.value=+t.value-1<10?`0${+t.value-1}`:(+t.value-1).toString()}this.notifyScreenReader(t,i)}}else{if(i.key==="ArrowDown"){i.preventDefault();t.value=t===this.yearInputEl?(new Date).getFullYear().toString():e.toString();this.notifyScreenReader(t,i)}else if(i.key==="ArrowUp"){i.preventDefault();t.value=t===this.yearInputEl?(new Date).getFullYear().toString():`0${s}`;this.notifyScreenReader(t,i)}}this.setInputValue(t);this.setFitToValueStyling(t)};this.handleDateChange=t=>{if(t||!m(this.selectedDate,this.previousSelectedDate)){if(this.value){this.inputsInOrder.forEach((t=>{t.classList.add(this.FIT_TO_VALUE)}))}if(this.day&&this.month&&this.year&&this.invalidDateText===""){this.setValueAndEmitChange(this.selectedDate);this.notifyScreenReaderSelectedDate()}else if(!(this.selectedDate===null&&this.previousSelectedDate===null)&&this.selectedDateInfoEl){this.setValueAndEmitChange(null);this.selectedDateInfoEl.textContent=""}this.previousSelectedDate=this.selectedDate;if(!this.preventInputsUpdating){this.updateInputValues(this.day,this.month,this.year)}}};this.slicePastedDate=(t,i)=>i.length>t?i.slice(0,t):i;this.isPastedStringDateValid=t=>{if(/\d+-\d+-\d+$/.test(t)||/\d+\/\d+\/\d+/.test(t)||/\d+\.\d+\.\d+/.test(t)){return true}if(/[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}(?::[0-9]{2}(?:\.\d+)?)?Z/.test(t)){this.isZuluTime=true;return true}return false};this.handlePaste=t=>{var i;t.preventDefault();const s=((i=t.clipboardData)===null||i===void 0?void 0:i.getData("Text"))||"";const e=this.isPastedStringDateValid(s);this.setPastedValueAndValidation(e,s,t)};this.setDate=t=>{if(t===null||t===""||t===undefined){if(this.day)this.day="";if(this.month)this.month="";if(this.year)this.year="";this.inputsInOrder.forEach((t=>{t.classList.remove(this.FIT_TO_VALUE);this.setPreventInput(t,false)}));this.handleDateChange(true)}else{if(w(t)){let i;if(typeof t==="string"){i=new Date(+t)}else{i=t}this.day=y(i.getDate());this.month=y(i.getMonth()+1);this.year=i.getFullYear().toString()}else if(typeof t==="string"){const i=g(t,this.dateFormat);this.selectedDate=new Date(Number(i[0]),Number(i[1])-1,Number(i[2]));this.year=i[0];this.month=i[1];this.day=i[2];this.setValueAndEmitChange(this.selectedDate)}}this.setValidationMessage()};this.formatMinMax=t=>{let i;const s=y(t.getDate());const e=y(t.getMonth()+1);const a=t.getFullYear();switch(this.dateFormat){case this.DEFAULT_DATE_FORMAT:i=`${s}/${e}/${a}`;break;case"MM/DD/YYYY":i=`${e}/${s}/${a}`;break;case"YYYY/MM/DD":i=`${a}/${e}/${s}`;break}return i};this.updateInputValues=(t,i,s)=>{if(this.dayInputEl&&this.monthInputEl&&this.yearInputEl){this.dayInputEl.value=t;this.monthInputEl.value=i;this.yearInputEl.value=s}};this.setInputValue=(t,i=false)=>{const s=i?"":t.value;switch(t){case this.dayInputEl:this.day=s;break;case this.monthInputEl:this.month=s;break;case this.yearInputEl:if(this.year!==s){this.year=s}}this.setValidationMessage()};this.setValidationMessage=()=>{this.setDateValidity();if(!h(this.day)&&!h(this.month)&&!h(this.year)){this.selectedDate=this.convertToDate(this.year,this.month,this.day);this.isValidDate=!!this.selectedDate&&this.selectedDate.getDate()==+this.day;this.isDisabledDate=this.isSelectedDateDisabled();if(!this.isValidDate||this.isDisabledDate){this.inputsInOrder.forEach((t=>t.setAttribute(this.ARIA_INVALID,"true")))}else{this.inputsInOrder.forEach((t=>t.removeAttribute(this.ARIA_INVALID)))}}else{this.selectedDate=null}if(!(this.isValidDay&&this.isValidMonth&&this.isValidDate)){this.invalidDateText=this.invalidDateMessage}else if(this.isDisabledDate&&this.selectedDate!==null){if(this.isBeforeMin){if(this.disablePast){this.invalidDateText=this.disablePastMessage}else{this.invalidDateText=`Please enter a date after ${this.formatMinMax(this.minDate)}.`}}else if(this.isAfterMax){if(this.disableFuture){this.invalidDateText=this.disableFutureMessage}else{this.invalidDateText=`Please enter a date before ${this.formatMinMax(this.maxDate)}.`}}else if(this.disableDays.length!==0){this.invalidDateText=this.disableDaysMessage}else{if(this.disablePast){this.invalidDateText=this.disablePastMessage}if(this.disableFuture){this.invalidDateText=this.disableFutureMessage}}}else{this.invalidDateText=""}};this.setInputsInOrder=()=>{var t;(t=this.el.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll("input").forEach((t=>this.inputsInOrder.push(t)))};this.setAriaLabelledBy=()=>{var t,i,s;if(this.disabled&&!h((t=this.inputCompContainerEl)===null||t===void 0?void 0:t.getAttribute(this.ARIA_LABELLED_BY))){this.removeAriaLabelledBy();return}if(this.disabled){return}const e=(i=this.el.shadowRoot)===null||i===void 0?void 0:i.querySelector("label");const a=`${this.inputId}-label`;if(e!==null&&e!==undefined){e.id=a}const r=!h(this.validationStatus)||!h(this.invalidDateText);const o=`${(s=e===null||e===void 0?void 0:e.id)!==null&&s!==void 0?s:""} ${this.screenReaderInfoId} ${n(this.el,this.inputId,this.helperText!==""&&this.helperText!==this.defaultHelperText,r)} ${this.selectedDate?this.selectedDateInfoId:""} ${this.assistiveHintId}`;this.inputCompContainerEl.setAttribute(this.ARIA_LABELLED_BY,o)};this.setPreventInput=(t,i)=>{switch(t){case this.dayInputEl:this.preventDayInput=i;break;case this.monthInputEl:this.preventMonthInput=i;break;case this.yearInputEl:this.preventYearInput=i}};this.getInputFromDatePart=t=>{const i=s("input",{class:"day-input",id:"day-input",ref:t=>this.dayInputEl=t,"aria-label":"day",placeholder:"DD",disabled:this.disabled,onPaste:this.handlePaste,inputmode:"number",pattern:"[0-9]*",onKeyDown:t=>this.handleKeyDown(t,this.preventDayInput)});const e=s("input",{id:"month-input",class:"month-input",ref:t=>this.monthInputEl=t,"aria-label":"month",placeholder:"MM",disabled:this.disabled,onPaste:this.handlePaste,inputmode:"number",pattern:"[0-9]*",onKeyDown:t=>this.handleKeyDown(t,this.preventMonthInput)});const a=s("input",{id:"year-input",class:"year-input",ref:t=>this.yearInputEl=t,"aria-label":"year",placeholder:"YYYY",maxLength:4,disabled:this.disabled,onPaste:this.handlePaste,inputmode:"number",pattern:"[0-9]*",onKeyDown:t=>this.handleKeyDown(t,this.preventYearInput)});let h;switch(t){case"D":h=i;break;case"M":h=e;break;case"Y":h=a}return h};this.getInputsInOrder=()=>{const t=this.dateFormat.split("/");const i=[];t.forEach((t=>{i.push(this.getInputFromDatePart(t.substring(0,1)))}));return i};this.getDescOfInputsOrder=()=>{let t;switch(this.dateFormat){case this.DEFAULT_DATE_FORMAT:t="day, month, and year";break;case"MM/DD/YYYY":t="month, day, and year";break;case"YYYY/MM/DD":t="year, month, and day"}return t};this.getScreenReaderInfo=t=>{let i="";if(this.required){i+="required"}if(t===f.Error){i+=" invalid data"}return i===""?"":i+", "};this.preventInput=(t,i)=>{const s=t.key;const e=t.target;let a;if(e){a=e.value.substring(e.selectionStart||0,e.selectionEnd||undefined)}if(s==="e"||s==="."||s==="-"||t.key>="0"&&t.key<="9"&&i&&!a){t.preventDefault()}};this.isSelectedDateDisabled=()=>{if(!this.selectedDate)return false;const t=new Date;const i=this.selectedDate.toDateString()!==t.toDateString();this.isAfterMax=this.maxDate&&this.selectedDate>this.maxDate&&i;this.isBeforeMin=this.minDate&&this.selectedDate<this.minDate&&i;return this.isAfterMax||this.isBeforeMin||this.disableDays.includes(this.selectedDate.getDay())||(!!this.disablePast&&this.selectedDate<t||!!this.disableFuture&&this.selectedDate>t)&&i};this.moveToNextInput=t=>{var i;this.preventAutoFormatting=false;(i=this.inputsInOrder[this.inputsInOrder.findIndex((i=>i===t))+1])===null||i===void 0?void 0:i.focus()};this.moveToPreviousInput=t=>{var i;this.preventAutoFormatting=false;(i=this.inputsInOrder[this.inputsInOrder.findIndex((i=>i===t))-1])===null||i===void 0?void 0:i.focus()};this.autocompleteInput=t=>{const i=t.value;if(this.yearInputEl&&t===this.yearInputEl){const t=["2","0","0"];let s="";if(i){t.forEach(((t,e)=>{if(i.length+e<=3){s+=t}}));this.yearInputEl.value=`${s}${i}`}}else if(i.length===1){t.value=+i===0?"01":`0${i}`}if(t.value){this.setInputValue(t)}};this.convertToDate=(t,i,s)=>{if(!h(t)&&!h(i)&&!h(s)){return new Date(+t,+i-1,+s)}else{return null}};this.handleHostBlur=()=>{this.removeLabelledBy=false;this.icBlur.emit({value:this.selectedDate})};this.handleHostFocus=()=>{var t,i;if((i=(t=this.el.shadowRoot)===null||t===void 0?void 0:t.activeElement)===null||i===void 0?void 0:i.id.match(/(day|month|year)-input$/)){this.removeLabelledBy=false}else{this.removeLabelledBy=true}this.icFocus.emit({value:this.selectedDate})};this.handleFormReset=()=>{this.setDate(this.initialValue);this.setValidationMessage();this.handleDateChange(false)};this.getAriaLabel=t=>t.getAttribute(this.ARIA_LABEL);this.notifyScreenReaderArrowKeys=t=>{var i;const s=(i=this.el.shadowRoot)===null||i===void 0?void 0:i.querySelector("#live-region");const e=this.getAriaLabel(t);if(s&&t.value&&e){let i="";if(t===this.monthInputEl&&!!v[+t.value-1]){i=`${t.value} - ${v[+t.value-1]}, ${e}`}if(t===this.dayInputEl||t===this.yearInputEl){i=`${t.value}, ${e}`}s.textContent=i}};this.notifyScreenReaderInput=(t,i)=>{const s=this.getAriaLabel(t);const e=t.value;if(s&&e){let a="";const h=v[+e-1];if(t===this.monthInputEl&&!!h&&this.isValidMonth&&e.length===2){a=`${e} - ${h}`}else if(t===this.dayInputEl&&this.isValidDay&&e.length===2||t===this.yearInputEl&&e.length===4){a=e}i.textContent=`${a}, ${s}`}};this.setFitToValueStyling=t=>{if(t.value){t.classList.add(this.FIT_TO_VALUE)}else{t.classList.remove(this.FIT_TO_VALUE)}};this.setAriaInvalid=(t,i,s,e)=>{var a,h;if(this.inputsInOrder.length){this.inputsInOrder.forEach((t=>{t.removeAttribute(this.ARIA_INVALID)}));if(!t){(a=this.dayInputEl)===null||a===void 0?void 0:a.setAttribute(this.ARIA_INVALID,"true")}if(!i){(h=this.monthInputEl)===null||h===void 0?void 0:h.setAttribute(this.ARIA_INVALID,"true")}if(!s||e){this.inputsInOrder.forEach((t=>{t.setAttribute(this.ARIA_INVALID,"true")}))}}};this.handleClear=()=>{this.clearInput=true;this.inputsInOrder.forEach((t=>{t.classList.remove(this.FIT_TO_VALUE);this.setInputValue(t,true);this.setPreventInput(t,false)}));this.clearInput=false;this.preventInputsUpdating=false;this.setValidationMessage();this.handleDateChange(true);this.inputsInOrder[0].focus()};this.handleCalendarOpen=t=>{var i,s,e,a,h,r;t.stopImmediatePropagation();(e=(s=(i=this.calendarButtonEl)===null||i===void 0?void 0:i.shadowRoot)===null||s===void 0?void 0:s.querySelector("ic-tooltip"))===null||e===void 0?void 0:e.displayTooltip(false);this.calendarButtonClicked.emit({value:this.selectedDate});(r=(h=(a=this.calendarButtonEl)===null||a===void 0?void 0:a.shadowRoot)===null||h===void 0?void 0:h.querySelector("ic-tooltip"))===null||r===void 0?void 0:r.displayTooltip(false);this.preventInputsUpdating=false;this.calendarIsOpen=true};this.setValueAndEmitChange=t=>{if(!m(this.value?new Date(this.value):null,t)){this.emitIcChange(t);this.value=t}};this.handleCalendarFocus=()=>{this.calendarFocused=true;if(this.calendarIsOpen){this.preventInputsUpdating=false;this.calendarIsOpen=false}else{this.preventInputsUpdating=true}};this.handleCalendarBlur=()=>{this.calendarFocused=false;this.preventInputsUpdating=true};this.handleClearFocus=()=>{this.removeLabelledBy=true;this.preventInputsUpdating=true;this.clearButtonFocused=true};this.handleClearBlur=t=>{var i;this.clearButtonFocused=false;this.preventInputsUpdating=true;if((i=t.relatedTarget)===null||i===void 0?void 0:i.id.match(/(day|year)-input$/)){this.removeLabelledBy=false;return}this.removeLabelledBy=true};this.emitIcChange=t=>{this.selectedDate=t;if(!m(this.selectedDate,t)||this.day!==null||this.month!==null||this.year!==null){let i=null;if(t!==null){i=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate()))}this.icChange.emit({value:t,dateObject:{day:this.day===""?null:this.day,month:this.month===""?null:this.month,year:this.year===""?null:this.year},utcValue:i})}}}watchInputHandler(){if(this.emitDatePartChange&&!this.externalSetDate&&!this.clearInput&&!(this.day&&this.month&&this.year)&&this.selectedDate===null){this.emitIcChange(this.selectedDate)}}watchDisabledHandler(){o(this.disabled,this.el)}watchDisableFutureHandler(){this.watchMaxHandler()}watchDisablePastHandler(){this.watchMinHandler()}watchMaxHandler(){if(this.disableFuture){this.maxDate=new Date}else{this.maxDate=k(this.max,this.dateFormat)}}watchMinHandler(){if(this.disablePast){this.minDate=new Date}else{this.minDate=k(this.min,this.dateFormat)}}watchRequiredHandler(){var t,i;const s=(t=this.el.shadowRoot)===null||t===void 0?void 0:t.querySelector("label");if(this.required){const t=document.createElement("span");t.setAttribute("id","asterisk-span");t.setAttribute("aria-hidden","true");t.textContent=" *";s===null||s===void 0?void 0:s.appendChild(t)}else{const t=(i=this.el.shadowRoot)===null||i===void 0?void 0:i.querySelector("#asterisk-span");if(t){t.remove()}}}disconnectedCallback(){l(this.el,this.handleFormReset)}componentWillLoad(){this.defaultHelperText=`Use format ${this.dateFormat}`;if(h(this.helperText))this.helperText=this.defaultHelperText;this.watchMinHandler();this.watchMaxHandler();if(this.value){this.externalSetDate=true;this.setDate(this.value)}this.screenReaderInfoId=`${this.inputId}-screen-reader-info`;this.assistiveHintId=`${this.inputId}-assistive-hint`;this.selectedDateInfoId=`${this.inputId}-selected-date-info`;c(this.el,this.handleFormReset);o(this.disabled,this.el)}componentDidLoad(){this.setInputsInOrder();d([{prop:this.label,propName:"label"}],"Date Input");if(this.value){this.updateInputValues(this.day,this.month,this.year);this.inputsInOrder.forEach((t=>{t.classList.add(this.FIT_TO_VALUE)}))}this.setAriaInvalid(this.isValidDay,this.isValidMonth,this.isValidDate,this.isDisabledDate);if(this.value){this.notifyScreenReaderSelectedDate()}this.inputsInOrder.forEach((t=>{t.addEventListener("input",this.handleInput);t.addEventListener("focus",this.handleFocus);t.addEventListener("blur",this.handleBlur)}));this.watchRequiredHandler()}componentWillUpdate(){if(h(this.helperText))this.helperText=this.defaultHelperText;if(!this.preventInputsUpdating)this.setDate(this.value);this.setAriaInvalid(this.isValidDay,this.isValidMonth,this.isValidDate,this.isDisabledDate);this.handleDateChange(false);this.preventInputsUpdating=false}componentDidRender(){if(this.removeLabelledBy){this.removeAriaLabelledBy();return}this.setAriaLabelledBy()}async getDate(){return this.selectedDate}async setCalendarFocus(){if(this.calendarButtonEl){this.calendarButtonEl.focus()}}async setDisableDays(t){this.disableDays=t}async triggerIcChange(t){this.externalSetDate=true;this.setDate(t);this.emitIcChange(t);this.externalSetDate=false}removeAriaLabelledBy(){this.inputCompContainerEl.removeAttribute(this.ARIA_LABELLED_BY)}setPastedValueAndValidation(t,i,s){switch(true){case t:{const t=this.isZuluTime?x(i):i;const s=t.split(/-|\/|\./);this.inputsInOrder.forEach(((t,i)=>{t.classList.add(this.FIT_TO_VALUE);if(this.isZuluTime){this.pasteZuluDateTime(s,i)}else{let e;if(t===this.dayInputEl||t===this.monthInputEl){e=this.slicePastedDate(2,s[i])}else{e=this.slicePastedDate(4,s[i])}t.value=e;this.setInputValue(t);this.autocompleteInput(t)}}));this.isZuluTime=false;break}case(i.length===1||i.length===2||i.length===4)&&u(i):if(this.checkSingleCopiedValueIsValid(s.target,i)){this.setInputPasteValue(s.target,i);this.setInputValue(s.target)}else{this.displayPastedValidation(s)}break;case i.length===3&&u(i):if(s.target!==this.yearInputEl){this.displayPastedValidation(s)}else{this.setInputPasteValue(s.target,i);this.setInputValue(s.target)}break;case i.length>=5&&u(i):this.displayPastedValidation(s)}}pasteZuluDateTime(t,i){if(i===0&&this.yearInputEl){const s=this.slicePastedDate(4,t[i]);this.yearInputEl.value=s;this.setInputValue(this.yearInputEl)}else if(i===1&&this.monthInputEl){const s=this.slicePastedDate(2,t[i]);this.monthInputEl.value=s;this.setInputValue(this.monthInputEl)}else if(this.dayInputEl){const s=this.slicePastedDate(2,t[i]);this.dayInputEl.value=s;this.setInputValue(this.dayInputEl)}}displayPastedValidation(t){var i;if(((i=this.invalidDateText)===null||i===void 0?void 0:i.length)>0){this.previousInvalidDateTest=this.invalidDateText}this.invalidDateText=`Please paste a valid ${this.getAriaLabel(t.target)}`;this.validationStatus=f.Error;this.isPasteValidationDisplayed=true}setPasteInvalidText(){var t;if(this.isPasteValidationDisplayed){this.invalidDateText=(t=this.previousInvalidDateTest)!==null&&t!==void 0?t:"";this.isPasteValidationDisplayed=false;this.preventInputsUpdating=true}}notifyScreenReader(t,i){var s;const e=(s=this.el.shadowRoot)===null||s===void 0?void 0:s.querySelector("#live-region");if(e){if(this.isKeyboardOrEvent(i)){this.notifyScreenReaderArrowKeys(t)}else if(Object.prototype.toString.call(i)===this.INPUT_EVENT_OBJECT_STRING){this.notifyScreenReaderInput(t,e)}}}render(){const{inputId:t,label:i,disabled:a,helperText:r,hideHelperText:n,hideLabel:o,showClearButton:l,showCalendarButton:c,size:d,theme:u}=this;const p=!h(this.validationStatus);const v=p?this.validationStatus:!h(this.invalidDateText)?f.Error:"";const m=`Type or use the up and down arrow keys to change the values for the ${this.getDescOfInputsOrder()}.`;b(true,this.el,this.name,this.convertToDate(this.year,this.month,this.day),this.disabled);return s(e,{key:"767560eabf5c5242cf11ead943b6e07cff501305",class:{[`ic-theme-${u}`]:u!=="inherit",[`ic-date-input-disabled`]:a},onBlur:this.handleHostBlur,onFocus:this.handleHostFocus},s("ic-input-container",{key:"cd37bd9a48a9f578cdf5b3f5a03bba04e4a502d5",disabled:a},!(o&&n)&&s("ic-input-label",{key:"0bdb602306aa1177106759da5f977f36869a51e1",for:t,label:i,hideLabel:o,helperText:!n?r:"",disabled:a},s("slot",{key:"3eba48de2044efaaba63c31474597c88906cf0e7",name:"helper-text",slot:"helper-text"})),s("span",{key:"4395cbcc455b0535a1dc51a17d43d2056894558c",id:this.screenReaderInfoId,class:"sr-only","aria-hidden":"true"},this.getScreenReaderInfo(v),o&&`${i}\n`,n&&`${r}\n`,`${this.defaultHelperText}.`),s("span",{key:"2832552e06bf18c157e4b89240603c66e97d2bd7",id:this.assistiveHintId,class:"sr-only","aria-hidden":"true"},m),s("span",{key:"96ea3a7bb98dec9d217c9abfde2fffe29fd8b10b",id:"live-region","aria-live":"assertive",class:"sr-only"}),s("ic-input-component-container",{key:"239191d8b0d2f732fab91303a283d4592a6a8cbc",id:t,ref:t=>this.inputCompContainerEl=t,disabled:a,validationStatus:v,size:d,role:"group",class:{[`ic-theme-${u}`]:u!=="inherit"}},s("div",{key:"b11b5d3a989391a0960b29ca54e78f9de1e41f97",class:"input-container"},s("div",{key:"2e4106d33ee3b1ef5cf89cb61ac38f15c792a601",class:"date-inputs"},this.getInputsInOrder()[0],"/",this.getInputsInOrder()[1],"/",this.getInputsInOrder()[2]),s("div",{key:"8da9c7b8ca40a1bba9a714de24ae33e540ed91d0",class:"action-buttons"},l&&s("ic-button",{key:"2a7a675746e26ffdd4a6d43f4fdd268b9425f81f",id:"clear-button","aria-label":"Clear input",class:{["clear-button"]:true,["hidden"]:h(this.day)&&h(this.month)&&h(this.year)},disabled:this.disabled,innerHTML:$,onClick:this.handleClear,onFocus:this.handleClearFocus,onBlur:this.handleClearBlur,variant:"icon-tertiary",theme:this.clearButtonFocused?"light":"dark",size:d}),c&&s("div",{key:"1a402f80e4ebfdb1e323b159dc2f93e412f84ff2",class:"show-calendar-button-wrapper"},s("div",{key:"1a93e892a8808109e93eb94ecee6639f930e78ac",class:{divider:true,[d]:true}}),s("ic-button",{key:"0a4a5c7d2fd886be631ad052d02175c05900a814",id:"calendar-button",ref:t=>this.calendarButtonEl=t,"aria-label":"Display calendar","aria-haspopup":"dialog",class:"calendar-button",disabled:this.disabled,innerHTML:D,onClick:this.handleCalendarOpen,variant:"icon-tertiary",size:d,onFocus:this.handleCalendarFocus,onBlur:this.handleCalendarBlur,theme:this.calendarFocused?"light":"dark"}))))),s("span",{key:"c3db6318bf5b2759c708d07d0b5e446d35702f38",id:this.selectedDateInfoId,class:"sr-only","aria-live":"polite"},s("span",{key:"6a682bf4c118014e15709e3d7099f9346a41d1a5",ref:t=>this.selectedDateInfoEl=t,role:"status"})),(p||!h(this.invalidDateText))&&s("ic-input-validation",{key:"90d5948c97133f9c1028016a20bc8b09542de88c",status:v,message:p?this.validationText:this.invalidDateText,for:t})))}static get delegatesFocus(){return true}get el(){return a(this)}static get watchers(){return{day:["watchInputHandler"],month:["watchInputHandler"],year:["watchInputHandler"],disabled:["watchDisabledHandler"],disableFuture:["watchDisableFutureHandler"],disablePast:["watchDisablePastHandler"],max:["watchMaxHandler"],min:["watchMinHandler"],required:["watchRequiredHandler"]}}};M.style=z;export{M as ic_date_input};
2
+ //# sourceMappingURL=p-bc7d730d.entry.js.map