@ukic/canary-web-components 2.0.0-canary.20 → 2.0.0-canary.21

Sign up to get free protection for your applications and to get access to all the features.
Files changed (355) hide show
  1. package/dist/cjs/core.cjs.js +1 -1
  2. package/dist/cjs/{helpers-73d277d1.js → helpers-081d6031.js} +4 -2
  3. package/dist/cjs/helpers-081d6031.js.map +1 -0
  4. package/dist/cjs/{helpers-fc9441f8.js → helpers-261701cd.js} +81 -1
  5. package/dist/cjs/helpers-261701cd.js.map +1 -0
  6. package/dist/cjs/ic-accordion-group.cjs.entry.js +1 -1
  7. package/dist/cjs/ic-accordion.cjs.entry.js +1 -1
  8. package/dist/cjs/ic-alert.cjs.entry.js +17 -1
  9. package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
  10. package/dist/cjs/ic-back-to-top.cjs.entry.js +1 -1
  11. package/dist/cjs/ic-badge.cjs.entry.js +1 -1
  12. package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +1 -1
  13. package/dist/cjs/ic-breadcrumb.cjs.entry.js +1 -1
  14. package/dist/cjs/ic-button_3.cjs.entry.js +1 -1
  15. package/dist/cjs/ic-card-horizontal.cjs.entry.js +131 -0
  16. package/dist/cjs/ic-card-horizontal.cjs.entry.js.map +1 -0
  17. package/dist/cjs/ic-card.cjs.entry.js +25 -1
  18. package/dist/cjs/ic-card.cjs.entry.js.map +1 -1
  19. package/dist/cjs/ic-checkbox-group.cjs.entry.js +1 -1
  20. package/dist/cjs/ic-checkbox.cjs.entry.js +1 -1
  21. package/dist/cjs/ic-chip.cjs.entry.js +1 -1
  22. package/dist/cjs/ic-classification-banner.cjs.entry.js +12 -3
  23. package/dist/cjs/ic-classification-banner.cjs.entry.js.map +1 -1
  24. package/dist/cjs/ic-data-row.cjs.entry.js +1 -1
  25. package/dist/cjs/ic-data-table-title-bar.cjs.entry.js +1 -1
  26. package/dist/cjs/ic-data-table.cjs.entry.js +1 -1
  27. package/dist/cjs/ic-date-input.cjs.entry.js +1 -1
  28. package/dist/cjs/ic-date-picker.cjs.entry.js +11 -4
  29. package/dist/cjs/ic-date-picker.cjs.entry.js.map +1 -1
  30. package/dist/cjs/ic-dialog.cjs.entry.js +1 -1
  31. package/dist/cjs/ic-divider.cjs.entry.js +1 -1
  32. package/dist/cjs/ic-empty-state_2.cjs.entry.js +21 -2
  33. package/dist/cjs/ic-empty-state_2.cjs.entry.js.map +1 -1
  34. package/dist/cjs/ic-footer-link-group.cjs.entry.js +1 -1
  35. package/dist/cjs/ic-footer-link.cjs.entry.js +1 -1
  36. package/dist/cjs/ic-footer.cjs.entry.js +1 -1
  37. package/dist/cjs/ic-hero.cjs.entry.js +17 -1
  38. package/dist/cjs/ic-hero.cjs.entry.js.map +1 -1
  39. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +1 -1
  40. package/dist/cjs/ic-input-component-container_4.cjs.entry.js +1 -1
  41. package/dist/cjs/ic-link.cjs.entry.js +1 -1
  42. package/dist/cjs/ic-menu-group.cjs.entry.js +1 -1
  43. package/dist/cjs/ic-menu-item.cjs.entry.js +1 -1
  44. package/dist/cjs/ic-menu-with-multi.cjs.entry.js +1 -1
  45. package/dist/cjs/ic-menu.cjs.entry.js +1 -1
  46. package/dist/cjs/ic-navigation-button.cjs.entry.js +1 -1
  47. package/dist/cjs/ic-navigation-group.cjs.entry.js +1 -1
  48. package/dist/cjs/ic-navigation-item.cjs.entry.js +1 -1
  49. package/dist/cjs/ic-navigation-menu.cjs.entry.js +1 -1
  50. package/dist/cjs/ic-page-header.cjs.entry.js +1 -1
  51. package/dist/cjs/ic-pagination_4.cjs.entry.js +1 -1
  52. package/dist/cjs/ic-popover-menu.cjs.entry.js +1 -1
  53. package/dist/cjs/ic-radio-group.cjs.entry.js +1 -1
  54. package/dist/cjs/ic-radio-option.cjs.entry.js +1 -1
  55. package/dist/cjs/ic-search-bar.cjs.entry.js +1 -1
  56. package/dist/cjs/ic-select-with-multi.cjs.entry.js +2 -30
  57. package/dist/cjs/ic-select-with-multi.cjs.entry.js.map +1 -1
  58. package/dist/cjs/ic-side-navigation.cjs.entry.js +1 -1
  59. package/dist/cjs/ic-status-tag.cjs.entry.js +1 -1
  60. package/dist/cjs/ic-step.cjs.entry.js +1 -1
  61. package/dist/cjs/ic-stepper.cjs.entry.js +1 -1
  62. package/dist/cjs/ic-switch.cjs.entry.js +1 -1
  63. package/dist/cjs/ic-tab-group.cjs.entry.js +1 -1
  64. package/dist/cjs/ic-tab-panel.cjs.entry.js +1 -1
  65. package/dist/cjs/ic-tab.cjs.entry.js +1 -1
  66. package/dist/cjs/ic-theme.cjs.entry.js +1 -1
  67. package/dist/cjs/ic-toast.cjs.entry.js +1 -1
  68. package/dist/cjs/ic-toggle-button.cjs.entry.js +1 -1
  69. package/dist/cjs/ic-top-navigation.cjs.entry.js +1 -1
  70. package/dist/cjs/ic-typography.cjs.entry.js +1 -1
  71. package/dist/cjs/index-4cf27b16.js +4 -0
  72. package/dist/cjs/loader.cjs.js +1 -1
  73. package/dist/collection/collection-manifest.json +1 -0
  74. package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.css +655 -0
  75. package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.js +373 -0
  76. package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.js.map +1 -0
  77. package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.types.js +2 -0
  78. package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.types.js.map +1 -0
  79. package/dist/collection/components/ic-card-horizontal/test/basic/ic-card-horizontal.spec.js +130 -0
  80. package/dist/collection/components/ic-card-horizontal/test/basic/ic-card-horizontal.spec.js.map +1 -0
  81. package/dist/collection/components/ic-date-picker/ic-date-picker.js +12 -3
  82. package/dist/collection/components/ic-date-picker/ic-date-picker.js.map +1 -1
  83. package/dist/collection/components/ic-date-picker/test/basic/ic-date-picker.spec.js +29 -0
  84. package/dist/collection/components/ic-date-picker/test/basic/ic-date-picker.spec.js.map +1 -1
  85. package/dist/collection/utils/helpers.js +4 -0
  86. package/dist/collection/utils/helpers.js.map +1 -1
  87. package/dist/components/helpers.js +4 -2
  88. package/dist/components/helpers.js.map +1 -1
  89. package/dist/components/helpers2.js +78 -1
  90. package/dist/components/helpers2.js.map +1 -1
  91. package/dist/components/ic-alert2.js +18 -2
  92. package/dist/components/ic-alert2.js.map +1 -1
  93. package/dist/components/ic-back-to-top.js +1 -1
  94. package/dist/components/ic-badge.js +1 -1
  95. package/dist/components/ic-breadcrumb-group.js +1 -1
  96. package/dist/components/ic-card-horizontal.d.ts +11 -0
  97. package/dist/components/ic-card-horizontal.js +167 -0
  98. package/dist/components/ic-card-horizontal.js.map +1 -0
  99. package/dist/components/ic-card.js +26 -2
  100. package/dist/components/ic-card.js.map +1 -1
  101. package/dist/components/ic-checkbox-group.js +1 -1
  102. package/dist/components/ic-checkbox.js +1 -1
  103. package/dist/components/ic-chip.js +1 -1
  104. package/dist/components/ic-classification-banner.js +12 -3
  105. package/dist/components/ic-classification-banner.js.map +1 -1
  106. package/dist/components/ic-data-row.js +1 -1
  107. package/dist/components/ic-data-table.js +1 -1
  108. package/dist/components/ic-date-input2.js +1 -1
  109. package/dist/components/ic-date-picker.js +12 -4
  110. package/dist/components/ic-date-picker.js.map +1 -1
  111. package/dist/components/ic-divider2.js +1 -1
  112. package/dist/components/ic-empty-state2.js +21 -2
  113. package/dist/components/ic-empty-state2.js.map +1 -1
  114. package/dist/components/ic-footer-link-group.js +1 -1
  115. package/dist/components/ic-footer-link.js +1 -1
  116. package/dist/components/ic-footer.js +1 -1
  117. package/dist/components/ic-hero.js +18 -2
  118. package/dist/components/ic-hero.js.map +1 -1
  119. package/dist/components/ic-input-component-container2.js +1 -1
  120. package/dist/components/ic-input-label2.js +1 -1
  121. package/dist/components/ic-input-validation2.js +1 -1
  122. package/dist/components/ic-menu3.js +1 -1
  123. package/dist/components/ic-navigation-button.js +1 -1
  124. package/dist/components/ic-navigation-group.js +1 -1
  125. package/dist/components/ic-navigation-item.js +1 -1
  126. package/dist/components/ic-page-header.js +1 -1
  127. package/dist/components/ic-pagination-bar2.js +1 -1
  128. package/dist/components/ic-radio-group.js +1 -1
  129. package/dist/components/ic-radio-option.js +1 -1
  130. package/dist/components/ic-search-bar.js +1 -1
  131. package/dist/components/ic-select-with-multi.js +1 -29
  132. package/dist/components/ic-select-with-multi.js.map +1 -1
  133. package/dist/components/ic-select2.js +1 -1
  134. package/dist/components/ic-side-navigation.js +1 -1
  135. package/dist/components/ic-switch.js +1 -1
  136. package/dist/components/ic-text-field2.js +1 -1
  137. package/dist/components/ic-theme.js +1 -1
  138. package/dist/components/ic-top-navigation.js +1 -1
  139. package/dist/core/core.esm.js +1 -1
  140. package/dist/core/core.esm.js.map +1 -1
  141. package/dist/core/{p-edf3411a.entry.js → p-007da09d.entry.js} +2 -2
  142. package/dist/core/{p-0a99994a.entry.js → p-01008e8d.entry.js} +2 -2
  143. package/dist/core/{p-4c57eef0.entry.js → p-01297278.entry.js} +2 -2
  144. package/dist/core/{p-3eb33ef4.entry.js → p-0551f0cf.entry.js} +2 -2
  145. package/dist/core/{p-24f9f6d4.entry.js → p-0944d33b.entry.js} +2 -2
  146. package/dist/core/{p-d3e186a3.entry.js → p-0ea28e7a.entry.js} +2 -2
  147. package/dist/core/p-145c8074.entry.js +2 -0
  148. package/dist/core/p-145c8074.entry.js.map +1 -0
  149. package/dist/core/{p-b8d3f121.entry.js → p-169bcf0f.entry.js} +2 -2
  150. package/dist/core/{p-47c91e08.entry.js → p-1733278a.entry.js} +2 -2
  151. package/dist/core/{p-4883e147.entry.js → p-1ac733c1.entry.js} +2 -2
  152. package/dist/core/{p-94ce6f29.entry.js → p-1d0cff8a.entry.js} +2 -2
  153. package/dist/core/{p-e2387530.entry.js → p-2647931d.entry.js} +2 -2
  154. package/dist/core/{p-0b14be10.entry.js → p-32a3b6c8.entry.js} +2 -2
  155. package/dist/core/{p-a1369740.entry.js → p-354e5dbe.entry.js} +2 -2
  156. package/dist/core/{p-af21360a.entry.js → p-3be4aae0.entry.js} +2 -2
  157. package/dist/core/{p-781e8391.entry.js → p-3d9eca50.entry.js} +2 -2
  158. package/dist/core/{p-92a858f7.entry.js → p-40fc7162.entry.js} +2 -2
  159. package/dist/core/{p-1440cdd1.js → p-45ebcb74.js} +2 -2
  160. package/dist/core/p-45ebcb74.js.map +1 -0
  161. package/dist/core/p-4e6f7cfe.entry.js +2 -0
  162. package/dist/core/p-4e6f7cfe.entry.js.map +1 -0
  163. package/dist/core/{p-db5c4969.entry.js → p-569a68c0.entry.js} +2 -2
  164. package/dist/core/{p-a5bb7bb0.entry.js → p-59d9ea22.entry.js} +2 -2
  165. package/dist/core/{p-c2b5e7b1.entry.js → p-5fea8f1c.entry.js} +2 -2
  166. package/dist/core/{p-c2b5e7b1.entry.js.map → p-5fea8f1c.entry.js.map} +1 -1
  167. package/dist/core/{p-2b9b9f6e.entry.js → p-66595f5f.entry.js} +2 -2
  168. package/dist/core/p-693a77bb.entry.js +2 -0
  169. package/dist/core/p-693a77bb.entry.js.map +1 -0
  170. package/dist/core/p-6b74397a.entry.js +2 -0
  171. package/dist/core/p-6b74397a.entry.js.map +1 -0
  172. package/dist/core/{p-6a7a5ed5.entry.js → p-6e697a16.entry.js} +2 -2
  173. package/dist/core/{p-7168b71a.entry.js → p-6f8fd43e.entry.js} +2 -2
  174. package/dist/core/{p-0970c8a1.entry.js → p-7f690fa3.entry.js} +2 -2
  175. package/dist/core/{p-992b6161.entry.js → p-96670e29.entry.js} +2 -2
  176. package/dist/core/{p-8100f45c.entry.js → p-9e69f517.entry.js} +2 -2
  177. package/dist/core/{p-0629691b.entry.js → p-9e7a5c72.entry.js} +2 -2
  178. package/dist/core/{p-cb7793b0.entry.js → p-9f8ef2bc.entry.js} +2 -2
  179. package/dist/core/{p-60ca1000.entry.js → p-a4585c7e.entry.js} +2 -2
  180. package/dist/core/{p-646b886c.entry.js → p-a589ead8.entry.js} +2 -2
  181. package/dist/core/{p-34cc7b3d.entry.js → p-a6d3743c.entry.js} +2 -2
  182. package/dist/core/{p-14b363d0.entry.js → p-a8c97918.entry.js} +2 -2
  183. package/dist/core/{p-a484c41c.entry.js → p-a970d653.entry.js} +2 -2
  184. package/dist/core/{p-6eafa62e.entry.js → p-ae7c2c39.entry.js} +2 -2
  185. package/dist/core/{p-87868dd2.entry.js → p-b3ed5423.entry.js} +2 -2
  186. package/dist/core/{p-eeae7272.entry.js → p-be4c0cc8.entry.js} +2 -2
  187. package/dist/core/{p-4ec1ce96.entry.js → p-c04f1bfb.entry.js} +2 -2
  188. package/dist/core/p-c04f1bfb.entry.js.map +1 -0
  189. package/dist/core/{p-6cf5343b.entry.js → p-d06c0049.entry.js} +2 -2
  190. package/dist/core/{p-66c26240.entry.js → p-d39239be.entry.js} +2 -2
  191. package/dist/core/{p-7e850bad.entry.js → p-d3ea79e1.entry.js} +2 -2
  192. package/dist/core/{p-ef996e40.entry.js → p-d448bdbd.entry.js} +2 -2
  193. package/dist/core/p-d44b7f21.entry.js +2 -0
  194. package/dist/core/p-d44b7f21.entry.js.map +1 -0
  195. package/dist/core/{p-2536b95b.entry.js → p-d5d36143.entry.js} +2 -2
  196. package/dist/core/p-d68e0c94.entry.js +2 -0
  197. package/dist/core/p-d68e0c94.entry.js.map +1 -0
  198. package/dist/core/{p-12120521.entry.js → p-d91428b4.entry.js} +2 -2
  199. package/dist/core/{p-34e72f79.entry.js → p-e191290c.entry.js} +2 -2
  200. package/dist/core/{p-e1e04f34.entry.js → p-e2421111.entry.js} +2 -2
  201. package/dist/core/{p-6c5c6aaf.entry.js → p-e393e53c.entry.js} +2 -2
  202. package/dist/core/{p-0cdd4c93.entry.js → p-e5b1dd58.entry.js} +2 -2
  203. package/dist/core/p-f6735e4a.js +2 -0
  204. package/dist/core/p-f6735e4a.js.map +1 -0
  205. package/dist/core/{p-3245554e.entry.js → p-fab8da25.entry.js} +2 -2
  206. package/dist/core/{p-0ecde7a8.entry.js → p-fb4219d6.entry.js} +2 -2
  207. package/dist/core/{p-06e0b5b6.entry.js → p-fc0eac8b.entry.js} +2 -2
  208. package/dist/core/{p-d67a5c90.entry.js → p-fdacc7f7.entry.js} +2 -2
  209. package/dist/core/{p-b7161816.entry.js → p-ffeca3c7.entry.js} +2 -2
  210. package/dist/esm/core.js +1 -1
  211. package/dist/esm/{helpers-4e2e4787.js → helpers-d41662f3.js} +5 -3
  212. package/dist/esm/helpers-d41662f3.js.map +1 -0
  213. package/dist/esm/{helpers-1cd71f8a.js → helpers-e75fd113.js} +79 -2
  214. package/dist/esm/helpers-e75fd113.js.map +1 -0
  215. package/dist/esm/ic-accordion-group.entry.js +1 -1
  216. package/dist/esm/ic-accordion.entry.js +1 -1
  217. package/dist/esm/ic-alert.entry.js +18 -2
  218. package/dist/esm/ic-alert.entry.js.map +1 -1
  219. package/dist/esm/ic-back-to-top.entry.js +1 -1
  220. package/dist/esm/ic-badge.entry.js +1 -1
  221. package/dist/esm/ic-breadcrumb-group.entry.js +1 -1
  222. package/dist/esm/ic-breadcrumb.entry.js +1 -1
  223. package/dist/esm/ic-button_3.entry.js +1 -1
  224. package/dist/esm/ic-card-horizontal.entry.js +127 -0
  225. package/dist/esm/ic-card-horizontal.entry.js.map +1 -0
  226. package/dist/esm/ic-card.entry.js +26 -2
  227. package/dist/esm/ic-card.entry.js.map +1 -1
  228. package/dist/esm/ic-checkbox-group.entry.js +1 -1
  229. package/dist/esm/ic-checkbox.entry.js +1 -1
  230. package/dist/esm/ic-chip.entry.js +1 -1
  231. package/dist/esm/ic-classification-banner.entry.js +12 -3
  232. package/dist/esm/ic-classification-banner.entry.js.map +1 -1
  233. package/dist/esm/ic-data-row.entry.js +1 -1
  234. package/dist/esm/ic-data-table-title-bar.entry.js +1 -1
  235. package/dist/esm/ic-data-table.entry.js +1 -1
  236. package/dist/esm/ic-date-input.entry.js +1 -1
  237. package/dist/esm/ic-date-picker.entry.js +11 -4
  238. package/dist/esm/ic-date-picker.entry.js.map +1 -1
  239. package/dist/esm/ic-dialog.entry.js +1 -1
  240. package/dist/esm/ic-divider.entry.js +1 -1
  241. package/dist/esm/ic-empty-state_2.entry.js +22 -3
  242. package/dist/esm/ic-empty-state_2.entry.js.map +1 -1
  243. package/dist/esm/ic-footer-link-group.entry.js +1 -1
  244. package/dist/esm/ic-footer-link.entry.js +1 -1
  245. package/dist/esm/ic-footer.entry.js +1 -1
  246. package/dist/esm/ic-hero.entry.js +18 -2
  247. package/dist/esm/ic-hero.entry.js.map +1 -1
  248. package/dist/esm/ic-horizontal-scroll.entry.js +1 -1
  249. package/dist/esm/ic-input-component-container_4.entry.js +1 -1
  250. package/dist/esm/ic-link.entry.js +1 -1
  251. package/dist/esm/ic-menu-group.entry.js +1 -1
  252. package/dist/esm/ic-menu-item.entry.js +1 -1
  253. package/dist/esm/ic-menu-with-multi.entry.js +1 -1
  254. package/dist/esm/ic-menu.entry.js +1 -1
  255. package/dist/esm/ic-navigation-button.entry.js +1 -1
  256. package/dist/esm/ic-navigation-group.entry.js +1 -1
  257. package/dist/esm/ic-navigation-item.entry.js +1 -1
  258. package/dist/esm/ic-navigation-menu.entry.js +1 -1
  259. package/dist/esm/ic-page-header.entry.js +1 -1
  260. package/dist/esm/ic-pagination_4.entry.js +1 -1
  261. package/dist/esm/ic-popover-menu.entry.js +1 -1
  262. package/dist/esm/ic-radio-group.entry.js +1 -1
  263. package/dist/esm/ic-radio-option.entry.js +1 -1
  264. package/dist/esm/ic-search-bar.entry.js +1 -1
  265. package/dist/esm/ic-select-with-multi.entry.js +1 -29
  266. package/dist/esm/ic-select-with-multi.entry.js.map +1 -1
  267. package/dist/esm/ic-side-navigation.entry.js +1 -1
  268. package/dist/esm/ic-status-tag.entry.js +1 -1
  269. package/dist/esm/ic-step.entry.js +1 -1
  270. package/dist/esm/ic-stepper.entry.js +1 -1
  271. package/dist/esm/ic-switch.entry.js +1 -1
  272. package/dist/esm/ic-tab-group.entry.js +1 -1
  273. package/dist/esm/ic-tab-panel.entry.js +1 -1
  274. package/dist/esm/ic-tab.entry.js +1 -1
  275. package/dist/esm/ic-theme.entry.js +1 -1
  276. package/dist/esm/ic-toast.entry.js +1 -1
  277. package/dist/esm/ic-toggle-button.entry.js +1 -1
  278. package/dist/esm/ic-top-navigation.entry.js +1 -1
  279. package/dist/esm/ic-typography.entry.js +1 -1
  280. package/dist/esm/index-93509377.js +4 -0
  281. package/dist/esm/loader.js +1 -1
  282. package/dist/types/components/ic-card-horizontal/ic-card-horizontal.d.ts +71 -0
  283. package/dist/types/components/ic-card-horizontal/ic-card-horizontal.types.d.ts +1 -0
  284. package/dist/types/components/ic-date-picker/ic-date-picker.d.ts +1 -0
  285. package/dist/types/components.d.ts +99 -0
  286. package/dist/types/utils/helpers.d.ts +1 -0
  287. package/hydrate/index.js +1038 -753
  288. package/package.json +3 -3
  289. package/dist/cjs/helpers-73d277d1.js.map +0 -1
  290. package/dist/cjs/helpers-fc9441f8.js.map +0 -1
  291. package/dist/core/p-1440cdd1.js.map +0 -1
  292. package/dist/core/p-20d4ded5.js +0 -2
  293. package/dist/core/p-20d4ded5.js.map +0 -1
  294. package/dist/core/p-352b9c17.entry.js +0 -2
  295. package/dist/core/p-352b9c17.entry.js.map +0 -1
  296. package/dist/core/p-3fa986f8.entry.js +0 -2
  297. package/dist/core/p-3fa986f8.entry.js.map +0 -1
  298. package/dist/core/p-4ec1ce96.entry.js.map +0 -1
  299. package/dist/core/p-9769c195.entry.js +0 -2
  300. package/dist/core/p-9769c195.entry.js.map +0 -1
  301. package/dist/core/p-cb15d0b6.entry.js +0 -2
  302. package/dist/core/p-cb15d0b6.entry.js.map +0 -1
  303. package/dist/core/p-e32cce28.entry.js +0 -2
  304. package/dist/core/p-e32cce28.entry.js.map +0 -1
  305. package/dist/esm/helpers-1cd71f8a.js.map +0 -1
  306. package/dist/esm/helpers-4e2e4787.js.map +0 -1
  307. /package/dist/core/{p-edf3411a.entry.js.map → p-007da09d.entry.js.map} +0 -0
  308. /package/dist/core/{p-0a99994a.entry.js.map → p-01008e8d.entry.js.map} +0 -0
  309. /package/dist/core/{p-4c57eef0.entry.js.map → p-01297278.entry.js.map} +0 -0
  310. /package/dist/core/{p-3eb33ef4.entry.js.map → p-0551f0cf.entry.js.map} +0 -0
  311. /package/dist/core/{p-24f9f6d4.entry.js.map → p-0944d33b.entry.js.map} +0 -0
  312. /package/dist/core/{p-d3e186a3.entry.js.map → p-0ea28e7a.entry.js.map} +0 -0
  313. /package/dist/core/{p-b8d3f121.entry.js.map → p-169bcf0f.entry.js.map} +0 -0
  314. /package/dist/core/{p-47c91e08.entry.js.map → p-1733278a.entry.js.map} +0 -0
  315. /package/dist/core/{p-4883e147.entry.js.map → p-1ac733c1.entry.js.map} +0 -0
  316. /package/dist/core/{p-94ce6f29.entry.js.map → p-1d0cff8a.entry.js.map} +0 -0
  317. /package/dist/core/{p-e2387530.entry.js.map → p-2647931d.entry.js.map} +0 -0
  318. /package/dist/core/{p-0b14be10.entry.js.map → p-32a3b6c8.entry.js.map} +0 -0
  319. /package/dist/core/{p-a1369740.entry.js.map → p-354e5dbe.entry.js.map} +0 -0
  320. /package/dist/core/{p-af21360a.entry.js.map → p-3be4aae0.entry.js.map} +0 -0
  321. /package/dist/core/{p-781e8391.entry.js.map → p-3d9eca50.entry.js.map} +0 -0
  322. /package/dist/core/{p-92a858f7.entry.js.map → p-40fc7162.entry.js.map} +0 -0
  323. /package/dist/core/{p-db5c4969.entry.js.map → p-569a68c0.entry.js.map} +0 -0
  324. /package/dist/core/{p-a5bb7bb0.entry.js.map → p-59d9ea22.entry.js.map} +0 -0
  325. /package/dist/core/{p-2b9b9f6e.entry.js.map → p-66595f5f.entry.js.map} +0 -0
  326. /package/dist/core/{p-6a7a5ed5.entry.js.map → p-6e697a16.entry.js.map} +0 -0
  327. /package/dist/core/{p-7168b71a.entry.js.map → p-6f8fd43e.entry.js.map} +0 -0
  328. /package/dist/core/{p-0970c8a1.entry.js.map → p-7f690fa3.entry.js.map} +0 -0
  329. /package/dist/core/{p-992b6161.entry.js.map → p-96670e29.entry.js.map} +0 -0
  330. /package/dist/core/{p-8100f45c.entry.js.map → p-9e69f517.entry.js.map} +0 -0
  331. /package/dist/core/{p-0629691b.entry.js.map → p-9e7a5c72.entry.js.map} +0 -0
  332. /package/dist/core/{p-cb7793b0.entry.js.map → p-9f8ef2bc.entry.js.map} +0 -0
  333. /package/dist/core/{p-60ca1000.entry.js.map → p-a4585c7e.entry.js.map} +0 -0
  334. /package/dist/core/{p-646b886c.entry.js.map → p-a589ead8.entry.js.map} +0 -0
  335. /package/dist/core/{p-34cc7b3d.entry.js.map → p-a6d3743c.entry.js.map} +0 -0
  336. /package/dist/core/{p-14b363d0.entry.js.map → p-a8c97918.entry.js.map} +0 -0
  337. /package/dist/core/{p-a484c41c.entry.js.map → p-a970d653.entry.js.map} +0 -0
  338. /package/dist/core/{p-6eafa62e.entry.js.map → p-ae7c2c39.entry.js.map} +0 -0
  339. /package/dist/core/{p-87868dd2.entry.js.map → p-b3ed5423.entry.js.map} +0 -0
  340. /package/dist/core/{p-eeae7272.entry.js.map → p-be4c0cc8.entry.js.map} +0 -0
  341. /package/dist/core/{p-6cf5343b.entry.js.map → p-d06c0049.entry.js.map} +0 -0
  342. /package/dist/core/{p-66c26240.entry.js.map → p-d39239be.entry.js.map} +0 -0
  343. /package/dist/core/{p-7e850bad.entry.js.map → p-d3ea79e1.entry.js.map} +0 -0
  344. /package/dist/core/{p-ef996e40.entry.js.map → p-d448bdbd.entry.js.map} +0 -0
  345. /package/dist/core/{p-2536b95b.entry.js.map → p-d5d36143.entry.js.map} +0 -0
  346. /package/dist/core/{p-12120521.entry.js.map → p-d91428b4.entry.js.map} +0 -0
  347. /package/dist/core/{p-34e72f79.entry.js.map → p-e191290c.entry.js.map} +0 -0
  348. /package/dist/core/{p-e1e04f34.entry.js.map → p-e2421111.entry.js.map} +0 -0
  349. /package/dist/core/{p-6c5c6aaf.entry.js.map → p-e393e53c.entry.js.map} +0 -0
  350. /package/dist/core/{p-0cdd4c93.entry.js.map → p-e5b1dd58.entry.js.map} +0 -0
  351. /package/dist/core/{p-3245554e.entry.js.map → p-fab8da25.entry.js.map} +0 -0
  352. /package/dist/core/{p-0ecde7a8.entry.js.map → p-fb4219d6.entry.js.map} +0 -0
  353. /package/dist/core/{p-06e0b5b6.entry.js.map → p-fc0eac8b.entry.js.map} +0 -0
  354. /package/dist/core/{p-d67a5c90.entry.js.map → p-fdacc7f7.entry.js.map} +0 -0
  355. /package/dist/core/{p-b7161816.entry.js.map → p-ffeca3c7.entry.js.map} +0 -0
package/hydrate/index.js CHANGED
@@ -7643,15 +7643,15 @@ const IC_DEVICE_SIZES = {
7643
7643
  L: 1200,
7644
7644
  XL: 99999,
7645
7645
  };
7646
- const IC_BLOCK_COLOR_COMPONENTS = [
7646
+ const IC_BLOCK_COLOR_COMPONENTS$1 = [
7647
7647
  "ic-hero",
7648
7648
  "ic-top-navigation",
7649
7649
  "ic-footer",
7650
7650
  "ic-side-navigation",
7651
7651
  "ic-alert",
7652
7652
  ];
7653
- const IC_FIXED_COLOR_COMPONENTS = ["ic-alert"];
7654
- const IC_BLOCK_COLOR_EXCEPTIONS = {
7653
+ const IC_FIXED_COLOR_COMPONENTS$1 = ["ic-alert"];
7654
+ const IC_BLOCK_COLOR_EXCEPTIONS$1 = {
7655
7655
  "ic-alert": ["ic-link"],
7656
7656
  };
7657
7657
  /* Range within which the chosen theme colour would not have a sufficient brightness difference with either of the black or white foreground colours
@@ -7797,19 +7797,19 @@ const getInputDescribedByText$1 = (inputId, helperText, validationText) => `${he
7797
7797
  * ""
7798
7798
  * @returns IcThemeForeground depending on the context
7799
7799
  */
7800
- const getThemeFromContext = (el, themeFromEvent = null) => {
7800
+ const getThemeFromContext$1 = (el, themeFromEvent = null) => {
7801
7801
  var _a;
7802
7802
  const parentElement = el.parentElement || el.getRootNode().host.parentElement;
7803
- const blockColorParent = parentElement.closest(IC_BLOCK_COLOR_COMPONENTS.join(","));
7803
+ const blockColorParent = parentElement.closest(IC_BLOCK_COLOR_COMPONENTS$1.join(","));
7804
7804
  // If within a block color component
7805
7805
  if (blockColorParent !== null) {
7806
7806
  const parentTag = blockColorParent.tagName.toLowerCase();
7807
7807
  const currentTag = el.tagName.toLowerCase();
7808
- if ((_a = IC_BLOCK_COLOR_EXCEPTIONS[parentTag]) === null || _a === void 0 ? void 0 : _a.includes(currentTag)) {
7808
+ if ((_a = IC_BLOCK_COLOR_EXCEPTIONS$1[parentTag]) === null || _a === void 0 ? void 0 : _a.includes(currentTag)) {
7809
7809
  return IcThemeForegroundEnum$1.Default;
7810
7810
  }
7811
7811
  else if (themeFromEvent !== null &&
7812
- !IC_FIXED_COLOR_COMPONENTS.includes(parentTag)) {
7812
+ !IC_FIXED_COLOR_COMPONENTS$1.includes(parentTag)) {
7813
7813
  return themeFromEvent;
7814
7814
  }
7815
7815
  else if (blockColorParent.classList.contains(IcThemeForegroundEnum$1.Dark)) {
@@ -8067,8 +8067,10 @@ const convertToRGBA = (color) => {
8067
8067
  : null;
8068
8068
  };
8069
8069
  const capitalize$1 = (text) => text.charAt(0).toUpperCase() + text.slice(1);
8070
- const checkSlotInChildMutations = (addedNodes, removedNodes, slotName) => {
8071
- const hasSlot = (nodeList) => Array.from(nodeList).some((node) => node.slot === slotName);
8070
+ const checkSlotInChildMutations$1 = (addedNodes, removedNodes, slotName) => {
8071
+ const hasSlot = (nodeList) => Array.from(nodeList).some((node) => Array.isArray(slotName)
8072
+ ? slotName.some((name) => node.slot === name)
8073
+ : node.slot === slotName);
8072
8074
  return hasSlot(addedNodes) || hasSlot(removedNodes);
8073
8075
  };
8074
8076
 
@@ -8353,10 +8355,16 @@ class Alert {
8353
8355
  registerInstance(this, hostRef);
8354
8356
  this.dismiss = createEvent(this, "dismiss", 7);
8355
8357
  this.icDismiss = createEvent(this, "icDismiss", 7);
8358
+ this.hostMutationObserver = null;
8356
8359
  this.dismissAction = () => {
8357
8360
  this.dismiss.emit();
8358
8361
  this.icDismiss.emit();
8359
8362
  };
8363
+ this.hostMutationCallback = (mutationList) => {
8364
+ if (mutationList.some(({ type, addedNodes, removedNodes }) => type === "childList"
8365
+ ? checkSlotInChildMutations$1(addedNodes, removedNodes, "action")
8366
+ : false)) ;
8367
+ };
8360
8368
  this.alertTitleWrap = false;
8361
8369
  this.visible = true;
8362
8370
  this.announced = true;
@@ -8366,8 +8374,16 @@ class Alert {
8366
8374
  this.titleAbove = false;
8367
8375
  this.variant = "neutral";
8368
8376
  }
8377
+ disconnectedCallback() {
8378
+ var _a;
8379
+ (_a = this.hostMutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
8380
+ }
8369
8381
  componentDidLoad() {
8370
8382
  this.alertTitleShouldWrap();
8383
+ this.hostMutationObserver = new MutationObserver(this.hostMutationCallback);
8384
+ this.hostMutationObserver.observe(this.el, {
8385
+ childList: true,
8386
+ });
8371
8387
  }
8372
8388
  handleClick() {
8373
8389
  this.visible = !this.visible;
@@ -9255,7 +9271,7 @@ class Button {
9255
9271
  return !!this.routerSlot;
9256
9272
  }
9257
9273
  updateTheme(newTheme = null) {
9258
- const foregroundColor = getThemeFromContext(this.el, newTheme);
9274
+ const foregroundColor = getThemeFromContext$1(this.el, newTheme);
9259
9275
  if (foregroundColor !== IcThemeForegroundEnum$1.Default) {
9260
9276
  this.appearance = foregroundColor;
9261
9277
  }
@@ -9400,9 +9416,10 @@ const icCardCss = "/*!@html*/html.sc-ic-card{line-height:1.15;-webkit-text-size-
9400
9416
  * @slot expanded-content - Content will be placed below the interaction controls but will not initially be rendered.
9401
9417
  * @slot badge - Badge component overlaying the top right of the card.
9402
9418
  */
9403
- class Card {
9419
+ class Card$1 {
9404
9420
  constructor(hostRef) {
9405
9421
  registerInstance(this, hostRef);
9422
+ this.hostMutationObserver = null;
9406
9423
  this.parentFocussed = () => {
9407
9424
  this.isFocussed = true;
9408
9425
  };
@@ -9412,6 +9429,21 @@ class Card {
9412
9429
  this.toggleExpanded = () => {
9413
9430
  this.areaExpanded = !this.areaExpanded;
9414
9431
  };
9432
+ this.hostMutationCallback = (mutationList) => {
9433
+ if (mutationList.some(({ type, addedNodes, removedNodes }) => type === "childList"
9434
+ ? checkSlotInChildMutations$1(addedNodes, removedNodes, [
9435
+ "message",
9436
+ "adornment",
9437
+ "expanded-content",
9438
+ "image-top",
9439
+ "image-mid",
9440
+ "icon",
9441
+ "interaction-button",
9442
+ "badge",
9443
+ "interaction-controls",
9444
+ ])
9445
+ : false)) ;
9446
+ };
9415
9447
  this.appearance = "default";
9416
9448
  this.areaExpanded = false;
9417
9449
  this.isFocussed = false;
@@ -9431,10 +9463,12 @@ class Card {
9431
9463
  this.target = undefined;
9432
9464
  }
9433
9465
  disconnectedCallback() {
9466
+ var _a;
9434
9467
  if (this.parentIsAnchorTag) {
9435
9468
  this.parentEl.removeEventListener("focus", this.parentFocussed);
9436
9469
  this.parentEl.removeEventListener("blur", this.parentBlurred);
9437
9470
  }
9471
+ (_a = this.hostMutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
9438
9472
  }
9439
9473
  componentWillLoad() {
9440
9474
  this.parentEl = this.el.parentElement;
@@ -9451,6 +9485,10 @@ class Card {
9451
9485
  !isSlotUsed$1(this.el, "heading") &&
9452
9486
  onComponentRequiredPropUndefined$1([{ prop: this.heading, propName: "heading" }], "Card");
9453
9487
  this.updateTheme();
9488
+ this.hostMutationObserver = new MutationObserver(this.hostMutationCallback);
9489
+ this.hostMutationObserver.observe(this.el, {
9490
+ childList: true,
9491
+ });
9454
9492
  }
9455
9493
  handleHostClick(event) {
9456
9494
  if (this.disabled) {
@@ -9473,7 +9511,7 @@ class Card {
9473
9511
  }
9474
9512
  }
9475
9513
  updateTheme(newTheme = null) {
9476
- const foregroundColor = getThemeFromContext(this.el, newTheme || null);
9514
+ const foregroundColor = getThemeFromContext$1(this.el, newTheme || null);
9477
9515
  if (foregroundColor !== IcThemeForegroundEnum$1.Default) {
9478
9516
  this.appearance = foregroundColor;
9479
9517
  }
@@ -9539,858 +9577,1066 @@ class Card {
9539
9577
  }; }
9540
9578
  }
9541
9579
 
9542
- const icCheckboxCss = "/*!@html*/html.sc-ic-checkbox{line-height:1.15;-webkit-text-size-adjust:100%}/*!@body*/body.sc-ic-checkbox{margin:0}/*!@main*/main.sc-ic-checkbox{display:block}/*!@h1*/h1.sc-ic-checkbox{font-size:2em;margin:0.67em 0}/*!@hr*/hr.sc-ic-checkbox{box-sizing:content-box;height:0;overflow:visible}/*!@pre*/pre.sc-ic-checkbox{font-family:monospace, monospace;font-size:1em}/*!@a*/a.sc-ic-checkbox{background-color:transparent}/*!@abbr[title]*/abbr[title].sc-ic-checkbox{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}/*!@b,\nstrong*/b.sc-ic-checkbox,strong.sc-ic-checkbox{font-weight:bolder}/*!@code,\nkbd,\nsamp*/code.sc-ic-checkbox,kbd.sc-ic-checkbox,samp.sc-ic-checkbox{font-family:monospace, monospace;font-size:1em}/*!@small*/small.sc-ic-checkbox{font-size:80%}/*!@sub,\nsup*/sub.sc-ic-checkbox,sup.sc-ic-checkbox{font-size:75%;line-height:0;position:relative;vertical-align:baseline}/*!@sub*/sub.sc-ic-checkbox{bottom:-0.25em}/*!@sup*/sup.sc-ic-checkbox{top:-0.5em}/*!@img*/img.sc-ic-checkbox{border-style:none}/*!@button,\ninput,\noptgroup,\nselect,\ntextarea*/button.sc-ic-checkbox,input.sc-ic-checkbox,optgroup.sc-ic-checkbox,select.sc-ic-checkbox,textarea.sc-ic-checkbox{font-family:inherit;font-size:100%;line-height:1.15;margin:0}/*!@button,\ninput*/button.sc-ic-checkbox,input.sc-ic-checkbox{overflow:visible}/*!@button,\nselect*/button.sc-ic-checkbox,select.sc-ic-checkbox{text-transform:none}/*!@button,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"]*/button.sc-ic-checkbox,[type=\"button\"].sc-ic-checkbox,[type=\"reset\"].sc-ic-checkbox,[type=\"submit\"].sc-ic-checkbox{-webkit-appearance:button}/*!@button::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner*/button.sc-ic-checkbox::-moz-focus-inner,[type=\"button\"].sc-ic-checkbox::-moz-focus-inner,[type=\"reset\"].sc-ic-checkbox::-moz-focus-inner,[type=\"submit\"].sc-ic-checkbox::-moz-focus-inner{border-style:none;padding:0}/*!@button:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring*/button.sc-ic-checkbox:-moz-focusring,[type=\"button\"].sc-ic-checkbox:-moz-focusring,[type=\"reset\"].sc-ic-checkbox:-moz-focusring,[type=\"submit\"].sc-ic-checkbox:-moz-focusring{outline:1px dotted ButtonText}/*!@fieldset*/fieldset.sc-ic-checkbox{padding:0.35em 0.75em 0.625em}/*!@legend*/legend.sc-ic-checkbox{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}/*!@progress*/progress.sc-ic-checkbox{vertical-align:baseline}/*!@textarea*/textarea.sc-ic-checkbox{overflow:auto}/*!@[type=\"checkbox\"],\n[type=\"radio\"]*/[type=\"checkbox\"].sc-ic-checkbox,[type=\"radio\"].sc-ic-checkbox{box-sizing:border-box;padding:0}/*!@[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button*/[type=\"number\"].sc-ic-checkbox::-webkit-inner-spin-button,[type=\"number\"].sc-ic-checkbox::-webkit-outer-spin-button{height:auto}/*!@[type=\"search\"]*/[type=\"search\"].sc-ic-checkbox{-webkit-appearance:textfield;outline-offset:-2px}/*!@[type=\"search\"]::-webkit-search-decoration*/[type=\"search\"].sc-ic-checkbox::-webkit-search-decoration{-webkit-appearance:none}/*!@::-webkit-file-upload-button*/.sc-ic-checkbox::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}/*!@details*/details.sc-ic-checkbox{display:block}/*!@summary*/summary.sc-ic-checkbox{display:list-item}/*!@template*/template.sc-ic-checkbox{display:none}/*!@[hidden]*/[hidden].sc-ic-checkbox{display:none}/*!@html,\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*/html.sc-ic-checkbox,body.sc-ic-checkbox,div.sc-ic-checkbox,span.sc-ic-checkbox,applet.sc-ic-checkbox,object.sc-ic-checkbox,iframe.sc-ic-checkbox,h1.sc-ic-checkbox,h2.sc-ic-checkbox,h3.sc-ic-checkbox,h4.sc-ic-checkbox,h5.sc-ic-checkbox,h6.sc-ic-checkbox,p.sc-ic-checkbox,blockquote.sc-ic-checkbox,pre.sc-ic-checkbox,a.sc-ic-checkbox,abbr.sc-ic-checkbox,acronym.sc-ic-checkbox,address.sc-ic-checkbox,big.sc-ic-checkbox,cite.sc-ic-checkbox,code.sc-ic-checkbox,del.sc-ic-checkbox,dfn.sc-ic-checkbox,em.sc-ic-checkbox,img.sc-ic-checkbox,ins.sc-ic-checkbox,kbd.sc-ic-checkbox,q.sc-ic-checkbox,s.sc-ic-checkbox,samp.sc-ic-checkbox,small.sc-ic-checkbox,strike.sc-ic-checkbox,strong.sc-ic-checkbox,sub.sc-ic-checkbox,sup.sc-ic-checkbox,tt.sc-ic-checkbox,var.sc-ic-checkbox,b.sc-ic-checkbox,u.sc-ic-checkbox,i.sc-ic-checkbox,center.sc-ic-checkbox,dl.sc-ic-checkbox,dt.sc-ic-checkbox,dd.sc-ic-checkbox,ol.sc-ic-checkbox,ul.sc-ic-checkbox,li.sc-ic-checkbox,fieldset.sc-ic-checkbox,form.sc-ic-checkbox,label.sc-ic-checkbox,legend.sc-ic-checkbox,table.sc-ic-checkbox,caption.sc-ic-checkbox,tbody.sc-ic-checkbox,tfoot.sc-ic-checkbox,thead.sc-ic-checkbox,tr.sc-ic-checkbox,th.sc-ic-checkbox,td.sc-ic-checkbox,article.sc-ic-checkbox,aside.sc-ic-checkbox,canvas.sc-ic-checkbox,details.sc-ic-checkbox,embed.sc-ic-checkbox,figure.sc-ic-checkbox,figcaption.sc-ic-checkbox,footer.sc-ic-checkbox,header.sc-ic-checkbox,hgroup.sc-ic-checkbox,menu.sc-ic-checkbox,nav.sc-ic-checkbox,output.sc-ic-checkbox,ruby.sc-ic-checkbox,section.sc-ic-checkbox,summary.sc-ic-checkbox,time.sc-ic-checkbox,mark.sc-ic-checkbox,audio.sc-ic-checkbox,video.sc-ic-checkbox{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}/*!@:host(.disabled)*/.disabled.sc-ic-checkbox-h{color:var(--ic-architectural-200);pointer-events:none}/*!@.container*/.container.sc-ic-checkbox{display:flex;width:-moz-fit-content;width:fit-content;padding:var(--ic-space-xxs) 0 var(--ic-space-xxs) var(--ic-space-xxs);margin-bottom:var(--ic-space-xxs);align-items:center}/*!@:host(.small) .container*/.small.sc-ic-checkbox-h .container.sc-ic-checkbox{margin-bottom:var(--ic-space-xxxs)}/*!@.checkbox*/.checkbox.sc-ic-checkbox{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:block;position:relative;top:0;left:0;height:var(--ic-space-lg);width:var(--ic-space-lg);background-color:var(--ic-architectural-white);border:var(--ic-border-width) solid var(--ic-architectural-400);border-radius:var(--ic-border-radius);outline:none;cursor:pointer;transition:var(--ic-easing-transition-fast);flex-shrink:0}/*!@:host(.small) .checkbox,\n:host(.small) .container svg*/.small.sc-ic-checkbox-h .checkbox.sc-ic-checkbox,.small.sc-ic-checkbox-h .container.sc-ic-checkbox svg.sc-ic-checkbox{width:var(--ic-space-md);height:var(--ic-space-md)}/*!@:host(.large) .checkbox,\n:host(.large) .container svg*/.large.sc-ic-checkbox-h .checkbox.sc-ic-checkbox,.large.sc-ic-checkbox-h .container.sc-ic-checkbox svg.sc-ic-checkbox{width:var(--ic-space-xl);height:var(--ic-space-xl)}/*!@.checkbox:checked*/.checkbox.sc-ic-checkbox:checked{background-color:var(--ic-action-default);border:var(--ic-border-width) solid var(--ic-action-default);transition:var(--ic-easing-transition-slow)}/*!@.checkbox:checked:disabled*/.checkbox.sc-ic-checkbox:checked:disabled{background-color:var(--ic-architectural-200)}/*!@.checkbox:indeterminate,\n.checkbox.indeterminate:checked*/.checkbox.sc-ic-checkbox:indeterminate,.checkbox.indeterminate.sc-ic-checkbox:checked{background-color:var(--ic-architectural-white);border:0.125rem solid var(--ic-action-default)}/*!@.checkbox:checked:hover*/.checkbox.sc-ic-checkbox:checked:hover{background-color:var(--ic-action-default-hover)}/*!@.checkbox:indeterminate:hover,\n.checkbox.indeterminate:checked:hover*/.checkbox.sc-ic-checkbox:indeterminate:hover,.checkbox.indeterminate.sc-ic-checkbox:checked:hover{background-color:var(--ic-action-default-bg-hover-no-alpha);border:0.125rem solid var(--ic-action-default-hover)}/*!@.checkbox:checked:active*/.checkbox.sc-ic-checkbox:checked:active{background-color:var(--ic-action-default-active)}/*!@.checkbox:indeterminate:active,\n.checkbox.indeterminate:checked:active*/.checkbox.sc-ic-checkbox:indeterminate:active,.checkbox.indeterminate.sc-ic-checkbox:checked:active{background-color:var(--ic-action-default-bg-active-no-alpha);border:0.125rem solid var(--ic-action-default-active)}/*!@.checkbox:hover*/.checkbox.sc-ic-checkbox:hover{background-color:var(--ic-action-default-bg-hover-no-alpha);box-shadow:0 0 0 0.25rem var(--ic-action-default-bg-hover);border:var(--ic-border-width) solid var(--ic-action-default-hover)}/*!@.checkbox:active*/.checkbox.sc-ic-checkbox:active{background-color:var(--ic-action-default-bg-active-no-alpha);box-shadow:0 0 0 0.25rem var(--ic-action-default-bg-active);border:var(--ic-border-width) solid var(--ic-action-default-active)}/*!@.checkbox:focus*/.checkbox.sc-ic-checkbox:focus{box-shadow:var(--ic-border-focus)}/*!@.checkbox:disabled*/.checkbox.sc-ic-checkbox:disabled{border:var(--ic-border-width) dashed var(--ic-architectural-200)}/*!@.checkbox-label*/.checkbox-label.sc-ic-checkbox{padding-left:var(--ic-space-sm)}/*!@.checkbox-label:hover*/.checkbox-label.sc-ic-checkbox:hover{cursor:pointer}/*!@.checkmark*/.checkmark.sc-ic-checkbox{position:relative;right:calc(-1 * var(--ic-space-lg));margin-left:calc(-1 * var(--ic-space-lg));fill:white;z-index:1;background-color:transparent;pointer-events:none;flex-shrink:0}/*!@:host(.small) .checkmark*/.small.sc-ic-checkbox-h .checkmark.sc-ic-checkbox{margin-left:calc(-1 * var(--ic-space-md));right:calc(-1 * var(--ic-space-md))}/*!@:host(.large) .checkmark*/.large.sc-ic-checkbox-h .checkmark.sc-ic-checkbox{margin-left:calc(-1 * var(--ic-space-xl));right:calc(-1 * var(--ic-space-xl))}/*!@.indeterminate-symbol*/.indeterminate-symbol.sc-ic-checkbox{position:relative;width:0.875rem;height:var(--ic-space-xxxs);right:-1.188rem;margin-left:-0.875rem;z-index:1;background-color:var(--ic-action-default);pointer-events:none;flex-shrink:0}/*!@:host(.small) .indeterminate-symbol*/.small.sc-ic-checkbox-h .indeterminate-symbol.sc-ic-checkbox{width:0.6rem;right:-0.8rem;margin-left:-0.6rem}/*!@:host(.large) .indeterminate-symbol*/.large.sc-ic-checkbox-h .indeterminate-symbol.sc-ic-checkbox{width:1.25rem;right:-1.625rem;margin-left:-1.25rem}/*!@.container:hover .indeterminate-symbol*/.container.sc-ic-checkbox:hover .indeterminate-symbol.sc-ic-checkbox{background-color:var(--ic-action-default-hover)}/*!@.container:active .indeterminate-symbol*/.container.sc-ic-checkbox:active .indeterminate-symbol.sc-ic-checkbox{background-color:var(--ic-action-default-active)}/*!@.additional-field-wrapper*/.additional-field-wrapper.sc-ic-checkbox{margin-left:calc(var(--ic-space-md) + var(--ic-space-lg));margin-top:calc(var(--ic-space-sm) / 2)}/*!@.branch-corner*/.branch-corner.sc-ic-checkbox{color:var(--ic-action-default);height:var(--ic-space-md);width:var(--ic-space-xl);border-radius:0 0 0 0.188rem;border-bottom:0.125rem solid var(--ic-action-default);border-left:0.125rem solid var(--ic-action-default)}/*!@.dynamic-container*/.dynamic-container.sc-ic-checkbox{display:flex;position:relative;margin:var(--ic-space-xxxs) 0 var(--ic-space-xxs) var(--ic-space-md);gap:var(--ic-space-xs)}/*!@.dynamic-text*/.dynamic-text.sc-ic-checkbox{color:var(--ic-action-default);margin-top:calc(var(--ic-space-sm) / 2);margin-bottom:var(--ic-space-xs);border-radius:2%}@media (max-width: 576px){/*!@::slotted(ic-text-field)*/.sc-ic-checkbox-s>ic-text-field{--input-width:100%}}@media (forced-colors: active){/*!@.checkbox*/.checkbox.sc-ic-checkbox{-webkit-appearance:revert;-moz-appearance:revert;appearance:revert;transition:none}/*!@.checkbox:checked*/.checkbox.sc-ic-checkbox:checked{transition:none}/*!@.checkbox:focus-visible*/.checkbox.sc-ic-checkbox:focus-visible{outline:0.125rem solid highlight}/*!@.checkbox:disabled:not(:checked)*/.checkbox.sc-ic-checkbox:disabled:not(:checked){-webkit-appearance:none;-moz-appearance:none;appearance:none;border-color:GrayText}/*!@.checkmark*/.checkmark.sc-ic-checkbox{fill:none}/*!@.indeterminate-symbol*/.indeterminate-symbol.sc-ic-checkbox{display:none}}";
9580
+ // Global ARIA attributes
9581
+ const IC_INHERITED_ARIA = [
9582
+ "aria-atomic",
9583
+ "aria-autocomplete",
9584
+ "aria-busy",
9585
+ "aria-controls",
9586
+ "aria-current",
9587
+ "aria-describedby",
9588
+ "aria-description",
9589
+ "aria-details",
9590
+ "aria-disabled",
9591
+ "aria-dropeffect",
9592
+ "aria-errormessage",
9593
+ "aria-expanded",
9594
+ "aria-flowto",
9595
+ "aria-grabbed",
9596
+ "aria-haspopup",
9597
+ "aria-hidden",
9598
+ "aria-invalid",
9599
+ "aria-keyshortcuts",
9600
+ "aria-label",
9601
+ "aria-labelledby",
9602
+ "aria-live",
9603
+ "aria-owns",
9604
+ "aria-relevant",
9605
+ "aria-roledescription",
9606
+ ];
9607
+ const IC_BLOCK_COLOR_COMPONENTS = [
9608
+ "ic-hero",
9609
+ "ic-top-navigation",
9610
+ "ic-footer",
9611
+ "ic-side-navigation",
9612
+ "ic-alert",
9613
+ ];
9614
+ const IC_FIXED_COLOR_COMPONENTS = ["ic-alert"];
9615
+ const IC_BLOCK_COLOR_EXCEPTIONS = {
9616
+ "ic-alert": ["ic-link"],
9617
+ };
9618
+
9619
+ var IcInformationStatus;
9620
+ (function (IcInformationStatus) {
9621
+ IcInformationStatus["Warning"] = "warning";
9622
+ IcInformationStatus["Error"] = "error";
9623
+ IcInformationStatus["Success"] = "success";
9624
+ })(IcInformationStatus || (IcInformationStatus = {}));
9625
+ var IcThemeForegroundEnum;
9626
+ (function (IcThemeForegroundEnum) {
9627
+ IcThemeForegroundEnum["Default"] = "default";
9628
+ IcThemeForegroundEnum["Dark"] = "dark";
9629
+ IcThemeForegroundEnum["Light"] = "light";
9630
+ })(IcThemeForegroundEnum || (IcThemeForegroundEnum = {}));
9631
+ var IcDateInputMonths;
9632
+ (function (IcDateInputMonths) {
9633
+ IcDateInputMonths[IcDateInputMonths["January"] = 0] = "January";
9634
+ IcDateInputMonths[IcDateInputMonths["February"] = 1] = "February";
9635
+ IcDateInputMonths[IcDateInputMonths["March"] = 2] = "March";
9636
+ IcDateInputMonths[IcDateInputMonths["April"] = 3] = "April";
9637
+ IcDateInputMonths[IcDateInputMonths["May"] = 4] = "May";
9638
+ IcDateInputMonths[IcDateInputMonths["June"] = 5] = "June";
9639
+ IcDateInputMonths[IcDateInputMonths["July"] = 6] = "July";
9640
+ IcDateInputMonths[IcDateInputMonths["August"] = 7] = "August";
9641
+ IcDateInputMonths[IcDateInputMonths["September"] = 8] = "September";
9642
+ IcDateInputMonths[IcDateInputMonths["October"] = 9] = "October";
9643
+ IcDateInputMonths[IcDateInputMonths["November"] = 10] = "November";
9644
+ IcDateInputMonths[IcDateInputMonths["December"] = 11] = "December";
9645
+ })(IcDateInputMonths || (IcDateInputMonths = {}));
9646
+ var IcShortDayNames;
9647
+ (function (IcShortDayNames) {
9648
+ IcShortDayNames[IcShortDayNames["Sun"] = 0] = "Sun";
9649
+ IcShortDayNames[IcShortDayNames["Mon"] = 1] = "Mon";
9650
+ IcShortDayNames[IcShortDayNames["Tue"] = 2] = "Tue";
9651
+ IcShortDayNames[IcShortDayNames["Wed"] = 3] = "Wed";
9652
+ IcShortDayNames[IcShortDayNames["Thu"] = 4] = "Thu";
9653
+ IcShortDayNames[IcShortDayNames["Fri"] = 5] = "Fri";
9654
+ IcShortDayNames[IcShortDayNames["Sat"] = 6] = "Sat";
9655
+ })(IcShortDayNames || (IcShortDayNames = {}));
9656
+ var IcDayNames;
9657
+ (function (IcDayNames) {
9658
+ IcDayNames[IcDayNames["Sunday"] = 0] = "Sunday";
9659
+ IcDayNames[IcDayNames["Monday"] = 1] = "Monday";
9660
+ IcDayNames[IcDayNames["Tuesday"] = 2] = "Tuesday";
9661
+ IcDayNames[IcDayNames["Wednesday"] = 3] = "Wednesday";
9662
+ IcDayNames[IcDayNames["Thursday"] = 4] = "Thursday";
9663
+ IcDayNames[IcDayNames["Friday"] = 5] = "Friday";
9664
+ IcDayNames[IcDayNames["Saturday"] = 6] = "Saturday";
9665
+ })(IcDayNames || (IcDayNames = {}));
9666
+ var IcWeekDays;
9667
+ (function (IcWeekDays) {
9668
+ IcWeekDays[IcWeekDays["Sunday"] = 0] = "Sunday";
9669
+ IcWeekDays[IcWeekDays["Monday"] = 1] = "Monday";
9670
+ IcWeekDays[IcWeekDays["Tuesday"] = 2] = "Tuesday";
9671
+ IcWeekDays[IcWeekDays["Wednesday"] = 3] = "Wednesday";
9672
+ IcWeekDays[IcWeekDays["Thursday"] = 4] = "Thursday";
9673
+ IcWeekDays[IcWeekDays["Friday"] = 5] = "Friday";
9674
+ IcWeekDays[IcWeekDays["Saturday"] = 6] = "Saturday";
9675
+ })(IcWeekDays || (IcWeekDays = {}));
9543
9676
 
9544
9677
  /**
9545
- * @slot additional-field - Content to be displayed alongside a checkbox.
9678
+ * converts an enum of strings into an array of strings
9546
9679
  */
9547
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
9548
- class Checkbox {
9549
- constructor(hostRef) {
9550
- registerInstance(this, hostRef);
9551
- this.checkboxChecked = createEvent(this, "checkboxChecked", 7);
9552
- this.icCheck = createEvent(this, "icCheck", 7);
9553
- this.handleClick = () => {
9554
- this.checked = !this.checked;
9555
- this.displayIndeterminate = this.nativeIndeterminateBehaviour
9556
- ? false
9557
- : this.indeterminate && this.checked;
9558
- this.icCheck.emit();
9559
- this.checkboxChecked.emit();
9560
- };
9561
- this.handleFormReset = () => {
9562
- this.checked = this.initiallyChecked;
9563
- };
9564
- this.additionalFieldDisplay = "static";
9565
- this.checked = false;
9566
- this.initiallyChecked = this.checked;
9567
- this.disabled = false;
9568
- this.dynamicText = "This selection requires additional answers";
9569
- this.form = undefined;
9570
- this.formaction = undefined;
9571
- this.formenctype = undefined;
9572
- this.formmethod = undefined;
9573
- this.formnovalidate = undefined;
9574
- this.formtarget = undefined;
9575
- this.groupLabel = undefined;
9576
- this.indeterminate = false;
9577
- this.displayIndeterminate = this.indeterminate;
9578
- this.label = undefined;
9579
- this.name = undefined;
9580
- this.nativeIndeterminateBehaviour = false;
9581
- this.size = undefined;
9582
- this.small = false;
9583
- this.value = undefined;
9584
- this.hideLabel = false;
9585
- }
9586
- watchIndeterminateHandler() {
9587
- this.displayIndeterminate = this.nativeIndeterminateBehaviour
9588
- ? this.indeterminate
9589
- : this.indeterminate && this.checked;
9590
- }
9591
- componentWillLoad() {
9592
- removeDisabledFalse$1(this.disabled, this.el);
9593
- addFormResetListener$1(this.el, this.handleFormReset);
9594
- const checkboxGroup = this.el.parentElement;
9595
- if (checkboxGroup) {
9596
- if (!this.name)
9597
- this.name = checkboxGroup.name;
9598
- this.groupLabel = checkboxGroup.label;
9680
+ const stringEnumToArray = (theEnum) => {
9681
+ const arr = [];
9682
+ Object.values(theEnum).forEach((val) => {
9683
+ if (isNaN(Number(val))) {
9684
+ const str = val;
9685
+ arr.push(str);
9599
9686
  }
9600
- }
9601
- componentDidLoad() {
9602
- onComponentRequiredPropUndefined$1([
9603
- { prop: this.label, propName: "label" },
9604
- { prop: this.value, propName: "value" },
9605
- ], "Checkbox");
9606
- }
9607
- componentDidRender() {
9608
- if (this.additionalFieldDisplay === "static") {
9609
- const textfield = this.el.querySelector("ic-text-field");
9610
- if (!this.checked) {
9611
- textfield === null || textfield === void 0 ? void 0 : textfield.setAttribute("disabled", "");
9612
- }
9613
- else {
9614
- textfield === null || textfield === void 0 ? void 0 : textfield.removeAttribute("disabled");
9687
+ });
9688
+ return arr;
9689
+ };
9690
+ /**
9691
+ * Used to inherit global attributes set on the host. Called in componentWillLoad and assigned
9692
+ * to a variable that is later used in the render function.
9693
+ *
9694
+ * This does not need to be reactive as changing attributes on the host element
9695
+ * does not trigger a re-render.
9696
+ */
9697
+ const inheritAttributes = (element, attributes = []) => {
9698
+ const attributeObject = {};
9699
+ attributes.forEach((attr) => {
9700
+ if (element.hasAttribute(attr)) {
9701
+ const value = element.getAttribute(attr);
9702
+ if (value !== null) {
9703
+ attributeObject[attr] = element.getAttribute(attr);
9615
9704
  }
9705
+ element.removeAttribute(attr);
9616
9706
  }
9617
- else if (this.additionalFieldContainer) {
9618
- this.additionalFieldContainer.style.display = !this.checked
9619
- ? "none"
9620
- : "flex";
9707
+ });
9708
+ return attributeObject;
9709
+ };
9710
+ /**
9711
+ * This method is used to add a hidden input to a host element that contains
9712
+ * a Shadow DOM. It does not add the input inside of the Shadow root which
9713
+ * allows it to be picked up inside of forms. It should contain the same
9714
+ * values as the host element.
9715
+ *
9716
+ * @param always Add a hidden input even if the container does not use Shadow
9717
+ * @param container The element where the input will be added
9718
+ * @param name The name of the input
9719
+ * @param value The value of the input
9720
+ * @param disabled If true, the input is disabled
9721
+ */
9722
+ const renderHiddenInput = (always, container, name, value, disabled) => {
9723
+ if (name !== undefined && (always || hasShadowDom(container))) {
9724
+ const inputs = container.querySelectorAll("input.ic-input");
9725
+ const inputEls = Array.from(inputs);
9726
+ const filtered = inputEls.filter((el) => container === el.parentElement);
9727
+ let input = filtered[0];
9728
+ if (input === null || input === undefined) {
9729
+ input = container.ownerDocument.createElement("input");
9730
+ input.type = "hidden";
9731
+ input.classList.add("ic-input");
9732
+ container.appendChild(input);
9733
+ }
9734
+ input.disabled = disabled;
9735
+ input.name = name;
9736
+ if (value instanceof Date) {
9737
+ input.value = value ? value.toISOString() : null;
9738
+ }
9739
+ else {
9740
+ input.value = value || "";
9621
9741
  }
9622
9742
  }
9623
- disconnectedCallback() {
9624
- removeFormResetListener$1(this.el, this.handleFormReset);
9625
- }
9626
- /**
9627
- * Sets focus on the checkbox.
9628
- */
9629
- async setFocus() {
9630
- var _a;
9631
- (_a = this.el.shadowRoot.querySelector(".checkbox")) === null || _a === void 0 ? void 0 : _a.focus();
9743
+ };
9744
+ /**
9745
+ * This method helps to understand the context in which a component exists,
9746
+ * to assist with choosing appropriate foreground colours to use. For example,
9747
+ * this method will help you use the 'white' version of a button if it's within
9748
+ * a block colour element using white foreground text.
9749
+ *
9750
+ * This only works for components/elements passed via <slot> and not if they
9751
+ * are part of an IC component.
9752
+ *
9753
+ * ""
9754
+ * @returns IcThemeForeground depending on the context
9755
+ */
9756
+ const getThemeFromContext = (el, themeFromEvent = null) => {
9757
+ var _a;
9758
+ const parentElement = el.parentElement || el.getRootNode().host.parentElement;
9759
+ const blockColorParent = parentElement.closest(IC_BLOCK_COLOR_COMPONENTS.join(","));
9760
+ // If within a block color component
9761
+ if (blockColorParent !== null) {
9762
+ const parentTag = blockColorParent.tagName.toLowerCase();
9763
+ const currentTag = el.tagName.toLowerCase();
9764
+ if ((_a = IC_BLOCK_COLOR_EXCEPTIONS[parentTag]) === null || _a === void 0 ? void 0 : _a.includes(currentTag)) {
9765
+ return IcThemeForegroundEnum.Default;
9766
+ }
9767
+ else if (themeFromEvent !== null &&
9768
+ !IC_FIXED_COLOR_COMPONENTS.includes(parentTag)) {
9769
+ return themeFromEvent;
9770
+ }
9771
+ else if (blockColorParent.classList.contains(IcThemeForegroundEnum.Dark)) {
9772
+ return IcThemeForegroundEnum.Dark;
9773
+ }
9774
+ return IcThemeForegroundEnum.Light;
9632
9775
  }
9633
- render() {
9634
- const { additionalFieldDisplay, checked, disabled, dynamicText, el, form, formaction, formenctype, formmethod, formnovalidate, formtarget, displayIndeterminate, groupLabel, label, name, size, small, value, } = this;
9635
- const id = `ic-checkbox-${isPropDefined(label) || value}-${groupLabel}`.replace(/ /g, "-");
9636
- const parentElementSize = el.parentElement
9637
- .size;
9638
- checked
9639
- ? renderHiddenInput$1(true, el, name, checked && value, disabled)
9640
- : removeHiddenInput(el);
9641
- return (hAsync(Host, { class: {
9642
- disabled,
9643
- small,
9644
- [`${size || parentElementSize}`]: true,
9645
- } }, hAsync("div", { class: "container" }, displayIndeterminate && hAsync("div", { class: "indeterminate-symbol" }), !displayIndeterminate && checked && (hAsync("svg", { class: "checkmark", width: "1.5rem", height: "1.5rem", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", "fill-rule": "evenodd", "clip-rule": "evenodd" }, hAsync("title", null, "checkmark icon"), hAsync("path", { d: "M21 6.285l-11.16 12.733-6.84-6.018 1.319-1.49 5.341 4.686 9.865-11.196 1.475 1.285z" }))), hAsync("input", { role: "checkbox", class: {
9646
- checkbox: true,
9647
- checked,
9648
- indeterminate: displayIndeterminate,
9649
- }, type: "checkbox", name: name, id: id, value: value, disabled: disabled ? true : null, checked: checked, indeterminate: displayIndeterminate, onClick: this.handleClick, form: form, formaction: formaction, formenctype: formenctype, formmethod: formmethod, formnovalidate: formnovalidate, formtarget: formtarget, "aria-label": this.hideLabel ? this.label : undefined }), !this.hideLabel && (hAsync("ic-typography", { class: "checkbox-label", variant: "body" }, hAsync("label", { htmlFor: id }, label)))), isSlotUsed$1(el, "additional-field") && (hAsync("div", { class: "dynamic-container", ref: (el) => (this.additionalFieldContainer = el) }, additionalFieldDisplay === "dynamic" && (hAsync("div", { class: "branch-corner" })), hAsync("div", null, additionalFieldDisplay === "dynamic" && (hAsync("ic-typography", { variant: "caption" }, hAsync("p", { class: "dynamic-text", "aria-live": "polite" }, dynamicText))), hAsync("div", { class: {
9650
- "additional-field-wrapper": additionalFieldDisplay === "static",
9651
- } }, hAsync("slot", { name: "additional-field" })))))));
9776
+ return IcThemeForegroundEnum.Default;
9777
+ };
9778
+ const isEmptyString = (value) => value ? value.trim().length === 0 : true;
9779
+ const getCssProperty = (cssVar) => getComputedStyle(document.documentElement).getPropertyValue(cssVar);
9780
+ const getSlot = (element, name) => {
9781
+ if (element && element.querySelector) {
9782
+ return element.querySelector(`[slot="${name}"]`);
9652
9783
  }
9653
- static get delegatesFocus() { return true; }
9654
- get el() { return getElement(this); }
9655
- static get watchers() { return {
9656
- "indeterminate": ["watchIndeterminateHandler"]
9657
- }; }
9658
- static get style() { return icCheckboxCss; }
9659
- static get cmpMeta() { return {
9660
- "$flags$": 25,
9661
- "$tagName$": "ic-checkbox",
9662
- "$members$": {
9663
- "additionalFieldDisplay": [513, "additional-field-display"],
9664
- "checked": [1540],
9665
- "disabled": [4],
9666
- "dynamicText": [1, "dynamic-text"],
9667
- "form": [1],
9668
- "formaction": [1],
9669
- "formenctype": [1],
9670
- "formmethod": [1],
9671
- "formnovalidate": [4],
9672
- "formtarget": [1],
9673
- "groupLabel": [1025, "group-label"],
9674
- "indeterminate": [4],
9675
- "label": [1],
9676
- "name": [1025],
9677
- "nativeIndeterminateBehaviour": [4, "native-indeterminate-behaviour"],
9678
- "size": [1],
9679
- "small": [4],
9680
- "value": [1],
9681
- "hideLabel": [4, "hide-label"],
9682
- "initiallyChecked": [32],
9683
- "displayIndeterminate": [32],
9684
- "setFocus": [64]
9685
- },
9686
- "$listeners$": undefined,
9687
- "$lazyBundleId$": "-",
9688
- "$attrsToReflect$": [["additionalFieldDisplay", "additional-field-display"], ["checked", "checked"]]
9689
- }; }
9690
- }
9784
+ return null;
9785
+ };
9786
+ const getSlotContent = (element, name) => {
9787
+ const slot = getSlot(element, name);
9788
+ if (slot) {
9789
+ return getSlotElements(slot);
9790
+ }
9791
+ return null;
9792
+ };
9793
+ const getSlotElements = (slot) => {
9794
+ const slotContent = slot.firstElementChild;
9795
+ if (slotContent !== null) {
9796
+ const elements = slotContent.assignedElements
9797
+ ? slotContent.assignedElements()
9798
+ : slotContent.childNodes;
9799
+ return elements.length ? elements : slot.tagName ? [slot] : null;
9800
+ }
9801
+ else {
9802
+ //check for single element
9803
+ return slot === null ? null : [slot];
9804
+ }
9805
+ };
9806
+ ({
9807
+ XS: Number(getCssProperty("--ic-breakpoint-xs").replace("px", "")),
9808
+ S: Number(getCssProperty("--ic-breakpoint-sm").replace("px", "")),
9809
+ M: Number(getCssProperty("--ic-breakpoint-md").replace("px", "")),
9810
+ L: Number(getCssProperty("--ic-breakpoint-lg").replace("px", "")),
9811
+ XL: Number(getCssProperty("--ic-breakpoint-xl").replace("px", "")),
9812
+ UNDEFINED: 1200,
9813
+ });
9814
+ const isSlotUsed = (element, slotName) => Array.from(element.children).some((child) => child.getAttribute("slot") === slotName);
9815
+ const hasShadowDom = (el) => !!el.shadowRoot && !!el.attachShadow;
9816
+ const getInputHelperTextID = (id) => id + "-helper-text";
9817
+ const getInputValidationTextID = (id) => id + "-validation-text";
9818
+ const getInputDescribedByText = (inputId, helperText, validationText) => `${helperText ? getInputHelperTextID(inputId) : ""} ${validationText ? getInputValidationTextID(inputId) : ""}`.trim();
9819
+ const isMobileOrTablet = () => "maxTouchPoints" in navigator ? navigator.maxTouchPoints > 0 : false;
9820
+ /**
9821
+ * Extracts the label using the value from an object. Requires the object to have a label and value property.
9822
+ * @param value - value from object
9823
+ * @param options - list of menu items
9824
+ * @returns - label corresponding to value
9825
+ */
9826
+ const getLabelFromValue = (value, options, valueField = "value", labelField = "label") => {
9827
+ const ungroupedOptions = [];
9828
+ if (options.length > 0 && options.map) {
9829
+ options.map((option) => {
9830
+ if (option.children) {
9831
+ option.children.map((option) => ungroupedOptions.push(option));
9832
+ }
9833
+ else {
9834
+ ungroupedOptions.push(option);
9835
+ }
9836
+ });
9837
+ const matchingValue = ungroupedOptions.find((option) => option[valueField] === value);
9838
+ if (matchingValue !== undefined)
9839
+ return matchingValue[labelField];
9840
+ }
9841
+ return undefined;
9842
+ };
9843
+ /**
9844
+ * Filters the options based on the search string.
9845
+ * @param options - array of options
9846
+ * @param includeDescriptions - determines whether option descriptions are included when filtering options
9847
+ * @param searchString - string used to filter the options
9848
+ * @param position - whether the search string matches the start of or anywhere in the options
9849
+ * @returns filtered array of options
9850
+ */
9851
+ const getFilteredMenuOptions = (options, includeDescriptions, searchString, position, labelField = "label") => options.filter((option) => {
9852
+ var _a;
9853
+ const label = option[labelField].toLowerCase();
9854
+ const description = (_a = option.description) === null || _a === void 0 ? void 0 : _a.toLowerCase();
9855
+ const lowerSearchString = searchString.toLowerCase();
9856
+ return position === "anywhere"
9857
+ ? includeDescriptions
9858
+ ? label.includes(lowerSearchString) ||
9859
+ (description === null || description === void 0 ? void 0 : description.includes(lowerSearchString))
9860
+ : label.includes(lowerSearchString)
9861
+ : includeDescriptions
9862
+ ? label.startsWith(lowerSearchString) ||
9863
+ (description === null || description === void 0 ? void 0 : description.startsWith(lowerSearchString))
9864
+ : label.startsWith(lowerSearchString);
9865
+ });
9866
+ /**
9867
+ * Gets count of options where only group title "parent" options have been removed.
9868
+ * Disabled options are included in the count.
9869
+ * @param options - array of options
9870
+ * @returns number of options not including group titles
9871
+ */
9872
+ const getOptionsWithoutGroupTitlesCount = (options) => {
9873
+ const optionsWithoutGroupTitles = [];
9874
+ if (options.length > 0 && options.map) {
9875
+ options.map((option) => {
9876
+ if (option.children) {
9877
+ option.children.map((option) => optionsWithoutGroupTitles.push(option));
9878
+ }
9879
+ else {
9880
+ optionsWithoutGroupTitles.push(option);
9881
+ }
9882
+ });
9883
+ }
9884
+ return optionsWithoutGroupTitles.length;
9885
+ };
9886
+ const isNumeric = (value) => {
9887
+ return /^-?\d+$/.test(value);
9888
+ };
9889
+ const hasValidationStatus = (status, disabled) => {
9890
+ return status !== "" && !disabled;
9891
+ };
9892
+ const onComponentRequiredPropUndefined = (props, component) => {
9893
+ for (let i = 0; i < props.length; i++) {
9894
+ const { prop, propName } = props[i];
9895
+ if (prop === null || prop === undefined) {
9896
+ console.error(`No ${propName} specified for ${component} component - prop '${propName}' (web components) / '${kebabToCamelCase(propName)}' (react) required`);
9897
+ }
9898
+ }
9899
+ };
9900
+ const kebabToCamelCase = (kebabCase) => {
9901
+ kebabCase = kebabCase.toLowerCase();
9902
+ const individualWords = kebabCase.split("-");
9903
+ let camelCase = individualWords[0];
9904
+ for (let i = 1; i < individualWords.length; i++) {
9905
+ camelCase +=
9906
+ individualWords[i].substring(0, 1).toUpperCase() +
9907
+ individualWords[i].substring(1);
9908
+ }
9909
+ return camelCase;
9910
+ };
9911
+ const checkResizeObserver = (callbackFn) => {
9912
+ if (typeof window !== "undefined" &&
9913
+ typeof window.ResizeObserver !== "undefined") {
9914
+ callbackFn();
9915
+ }
9916
+ };
9917
+ const getForm = (el) => el.closest("FORM");
9918
+ const addFormResetListener = (el, callbackFn) => {
9919
+ const form = getForm(el);
9920
+ if (form !== null) {
9921
+ form.addEventListener("reset", callbackFn);
9922
+ }
9923
+ };
9924
+ const removeFormResetListener = (el, callbackFn) => {
9925
+ const form = getForm(el);
9926
+ if (form !== null) {
9927
+ form.removeEventListener("reset", callbackFn);
9928
+ }
9929
+ };
9930
+ const removeDisabledFalse = (disabled, element) => {
9931
+ if (!disabled) {
9932
+ element.removeAttribute("disabled");
9933
+ }
9934
+ };
9935
+ const isMacDevice = () => {
9936
+ return window.navigator.userAgent.toUpperCase().indexOf("MAC") >= 0;
9937
+ };
9938
+ const capitalize = (text) => {
9939
+ return text.charAt(0).toUpperCase() + text.slice(1);
9940
+ };
9941
+ const checkSlotInChildMutations = (addedNodes, removedNodes, slotName) => {
9942
+ const hasSlot = (nodeList) => Array.from(nodeList).some((node) => node.slot === slotName);
9943
+ return hasSlot(addedNodes) || hasSlot(removedNodes);
9944
+ };
9691
9945
 
9692
- const icCheckboxGroupCss = "/*!@html*/html.sc-ic-checkbox-group{line-height:1.15;-webkit-text-size-adjust:100%}/*!@body*/body.sc-ic-checkbox-group{margin:0}/*!@main*/main.sc-ic-checkbox-group{display:block}/*!@h1*/h1.sc-ic-checkbox-group{font-size:2em;margin:0.67em 0}/*!@hr*/hr.sc-ic-checkbox-group{box-sizing:content-box;height:0;overflow:visible}/*!@pre*/pre.sc-ic-checkbox-group{font-family:monospace, monospace;font-size:1em}/*!@a*/a.sc-ic-checkbox-group{background-color:transparent}/*!@abbr[title]*/abbr[title].sc-ic-checkbox-group{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}/*!@b,\nstrong*/b.sc-ic-checkbox-group,strong.sc-ic-checkbox-group{font-weight:bolder}/*!@code,\nkbd,\nsamp*/code.sc-ic-checkbox-group,kbd.sc-ic-checkbox-group,samp.sc-ic-checkbox-group{font-family:monospace, monospace;font-size:1em}/*!@small*/small.sc-ic-checkbox-group{font-size:80%}/*!@sub,\nsup*/sub.sc-ic-checkbox-group,sup.sc-ic-checkbox-group{font-size:75%;line-height:0;position:relative;vertical-align:baseline}/*!@sub*/sub.sc-ic-checkbox-group{bottom:-0.25em}/*!@sup*/sup.sc-ic-checkbox-group{top:-0.5em}/*!@img*/img.sc-ic-checkbox-group{border-style:none}/*!@button,\ninput,\noptgroup,\nselect,\ntextarea*/button.sc-ic-checkbox-group,input.sc-ic-checkbox-group,optgroup.sc-ic-checkbox-group,select.sc-ic-checkbox-group,textarea.sc-ic-checkbox-group{font-family:inherit;font-size:100%;line-height:1.15;margin:0}/*!@button,\ninput*/button.sc-ic-checkbox-group,input.sc-ic-checkbox-group{overflow:visible}/*!@button,\nselect*/button.sc-ic-checkbox-group,select.sc-ic-checkbox-group{text-transform:none}/*!@button,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"]*/button.sc-ic-checkbox-group,[type=\"button\"].sc-ic-checkbox-group,[type=\"reset\"].sc-ic-checkbox-group,[type=\"submit\"].sc-ic-checkbox-group{-webkit-appearance:button}/*!@button::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner*/button.sc-ic-checkbox-group::-moz-focus-inner,[type=\"button\"].sc-ic-checkbox-group::-moz-focus-inner,[type=\"reset\"].sc-ic-checkbox-group::-moz-focus-inner,[type=\"submit\"].sc-ic-checkbox-group::-moz-focus-inner{border-style:none;padding:0}/*!@button:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring*/button.sc-ic-checkbox-group:-moz-focusring,[type=\"button\"].sc-ic-checkbox-group:-moz-focusring,[type=\"reset\"].sc-ic-checkbox-group:-moz-focusring,[type=\"submit\"].sc-ic-checkbox-group:-moz-focusring{outline:1px dotted ButtonText}/*!@fieldset*/fieldset.sc-ic-checkbox-group{padding:0.35em 0.75em 0.625em}/*!@legend*/legend.sc-ic-checkbox-group{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}/*!@progress*/progress.sc-ic-checkbox-group{vertical-align:baseline}/*!@textarea*/textarea.sc-ic-checkbox-group{overflow:auto}/*!@[type=\"checkbox\"],\n[type=\"radio\"]*/[type=\"checkbox\"].sc-ic-checkbox-group,[type=\"radio\"].sc-ic-checkbox-group{box-sizing:border-box;padding:0}/*!@[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button*/[type=\"number\"].sc-ic-checkbox-group::-webkit-inner-spin-button,[type=\"number\"].sc-ic-checkbox-group::-webkit-outer-spin-button{height:auto}/*!@[type=\"search\"]*/[type=\"search\"].sc-ic-checkbox-group{-webkit-appearance:textfield;outline-offset:-2px}/*!@[type=\"search\"]::-webkit-search-decoration*/[type=\"search\"].sc-ic-checkbox-group::-webkit-search-decoration{-webkit-appearance:none}/*!@::-webkit-file-upload-button*/.sc-ic-checkbox-group::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}/*!@details*/details.sc-ic-checkbox-group{display:block}/*!@summary*/summary.sc-ic-checkbox-group{display:list-item}/*!@template*/template.sc-ic-checkbox-group{display:none}/*!@[hidden]*/[hidden].sc-ic-checkbox-group{display:none}/*!@html,\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*/html.sc-ic-checkbox-group,body.sc-ic-checkbox-group,div.sc-ic-checkbox-group,span.sc-ic-checkbox-group,applet.sc-ic-checkbox-group,object.sc-ic-checkbox-group,iframe.sc-ic-checkbox-group,h1.sc-ic-checkbox-group,h2.sc-ic-checkbox-group,h3.sc-ic-checkbox-group,h4.sc-ic-checkbox-group,h5.sc-ic-checkbox-group,h6.sc-ic-checkbox-group,p.sc-ic-checkbox-group,blockquote.sc-ic-checkbox-group,pre.sc-ic-checkbox-group,a.sc-ic-checkbox-group,abbr.sc-ic-checkbox-group,acronym.sc-ic-checkbox-group,address.sc-ic-checkbox-group,big.sc-ic-checkbox-group,cite.sc-ic-checkbox-group,code.sc-ic-checkbox-group,del.sc-ic-checkbox-group,dfn.sc-ic-checkbox-group,em.sc-ic-checkbox-group,img.sc-ic-checkbox-group,ins.sc-ic-checkbox-group,kbd.sc-ic-checkbox-group,q.sc-ic-checkbox-group,s.sc-ic-checkbox-group,samp.sc-ic-checkbox-group,small.sc-ic-checkbox-group,strike.sc-ic-checkbox-group,strong.sc-ic-checkbox-group,sub.sc-ic-checkbox-group,sup.sc-ic-checkbox-group,tt.sc-ic-checkbox-group,var.sc-ic-checkbox-group,b.sc-ic-checkbox-group,u.sc-ic-checkbox-group,i.sc-ic-checkbox-group,center.sc-ic-checkbox-group,dl.sc-ic-checkbox-group,dt.sc-ic-checkbox-group,dd.sc-ic-checkbox-group,ol.sc-ic-checkbox-group,ul.sc-ic-checkbox-group,li.sc-ic-checkbox-group,fieldset.sc-ic-checkbox-group,form.sc-ic-checkbox-group,label.sc-ic-checkbox-group,legend.sc-ic-checkbox-group,table.sc-ic-checkbox-group,caption.sc-ic-checkbox-group,tbody.sc-ic-checkbox-group,tfoot.sc-ic-checkbox-group,thead.sc-ic-checkbox-group,tr.sc-ic-checkbox-group,th.sc-ic-checkbox-group,td.sc-ic-checkbox-group,article.sc-ic-checkbox-group,aside.sc-ic-checkbox-group,canvas.sc-ic-checkbox-group,details.sc-ic-checkbox-group,embed.sc-ic-checkbox-group,figure.sc-ic-checkbox-group,figcaption.sc-ic-checkbox-group,footer.sc-ic-checkbox-group,header.sc-ic-checkbox-group,hgroup.sc-ic-checkbox-group,menu.sc-ic-checkbox-group,nav.sc-ic-checkbox-group,output.sc-ic-checkbox-group,ruby.sc-ic-checkbox-group,section.sc-ic-checkbox-group,summary.sc-ic-checkbox-group,time.sc-ic-checkbox-group,mark.sc-ic-checkbox-group,audio.sc-ic-checkbox-group,video.sc-ic-checkbox-group{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}/*!@:host*/.sc-ic-checkbox-group-h{display:block}/*!@ic-input-label.error*/ic-input-label.error.sc-ic-checkbox-group{color:var(--ic-status-error)}/*!@ic-input-label ic-typography*/ic-input-label.sc-ic-checkbox-group ic-typography.sc-ic-checkbox-group{margin-bottom:var(--ic-space-sm)}/*!@:host(.small) ic-input-label ic-typography*/.small.sc-ic-checkbox-group-h ic-input-label.sc-ic-checkbox-group ic-typography.sc-ic-checkbox-group{margin-bottom:calc(var(--ic-space-sm) / 2)}/*!@ic-input-validation*/ic-input-validation.sc-ic-checkbox-group{margin-top:var(--ic-space-sm)}/*!@:host(.small) ic-input-validation*/.small.sc-ic-checkbox-group-h ic-input-validation.sc-ic-checkbox-group{margin-top:calc(var(--ic-space-sm) / 2)}/*!@.checkboxes-container*/.checkboxes-container.sc-ic-checkbox-group{margin-bottom:calc(-1 * var(--ic-space-xxs))}/*!@:host(.small) .checkboxes-container*/.small.sc-ic-checkbox-group-h .checkboxes-container.sc-ic-checkbox-group{margin-bottom:calc(-1 * var(--ic-space-xxxs))}/*!@.screen-reader-only-text*/.screen-reader-only-text.sc-ic-checkbox-group{position:absolute;left:-9999px;background-color:#fff;color:#000;text-transform:none}";
9946
+ const icCardHorizontalCss = "/*!@html*/html.sc-ic-card-horizontal{line-height:1.15;-webkit-text-size-adjust:100%}/*!@body*/body.sc-ic-card-horizontal{margin:0}/*!@main*/main.sc-ic-card-horizontal{display:block}/*!@h1*/h1.sc-ic-card-horizontal{font-size:2em;margin:0.67em 0}/*!@hr*/hr.sc-ic-card-horizontal{box-sizing:content-box;height:0;overflow:visible}/*!@pre*/pre.sc-ic-card-horizontal{font-family:monospace, monospace;font-size:1em}/*!@a*/a.sc-ic-card-horizontal{background-color:transparent}/*!@abbr[title]*/abbr[title].sc-ic-card-horizontal{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}/*!@b,\nstrong*/b.sc-ic-card-horizontal,strong.sc-ic-card-horizontal{font-weight:bolder}/*!@code,\nkbd,\nsamp*/code.sc-ic-card-horizontal,kbd.sc-ic-card-horizontal,samp.sc-ic-card-horizontal{font-family:monospace, monospace;font-size:1em}/*!@small*/small.sc-ic-card-horizontal{font-size:80%}/*!@sub,\nsup*/sub.sc-ic-card-horizontal,sup.sc-ic-card-horizontal{font-size:75%;line-height:0;position:relative;vertical-align:baseline}/*!@sub*/sub.sc-ic-card-horizontal{bottom:-0.25em}/*!@sup*/sup.sc-ic-card-horizontal{top:-0.5em}/*!@img*/img.sc-ic-card-horizontal{border-style:none}/*!@button,\ninput,\noptgroup,\nselect,\ntextarea*/button.sc-ic-card-horizontal,input.sc-ic-card-horizontal,optgroup.sc-ic-card-horizontal,select.sc-ic-card-horizontal,textarea.sc-ic-card-horizontal{font-family:inherit;font-size:100%;line-height:1.15;margin:0}/*!@button,\ninput*/button.sc-ic-card-horizontal,input.sc-ic-card-horizontal{overflow:visible}/*!@button,\nselect*/button.sc-ic-card-horizontal,select.sc-ic-card-horizontal{text-transform:none}/*!@button,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"]*/button.sc-ic-card-horizontal,[type=\"button\"].sc-ic-card-horizontal,[type=\"reset\"].sc-ic-card-horizontal,[type=\"submit\"].sc-ic-card-horizontal{-webkit-appearance:button}/*!@button::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner*/button.sc-ic-card-horizontal::-moz-focus-inner,[type=\"button\"].sc-ic-card-horizontal::-moz-focus-inner,[type=\"reset\"].sc-ic-card-horizontal::-moz-focus-inner,[type=\"submit\"].sc-ic-card-horizontal::-moz-focus-inner{border-style:none;padding:0}/*!@button:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring*/button.sc-ic-card-horizontal:-moz-focusring,[type=\"button\"].sc-ic-card-horizontal:-moz-focusring,[type=\"reset\"].sc-ic-card-horizontal:-moz-focusring,[type=\"submit\"].sc-ic-card-horizontal:-moz-focusring{outline:1px dotted ButtonText}/*!@fieldset*/fieldset.sc-ic-card-horizontal{padding:0.35em 0.75em 0.625em}/*!@legend*/legend.sc-ic-card-horizontal{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}/*!@progress*/progress.sc-ic-card-horizontal{vertical-align:baseline}/*!@textarea*/textarea.sc-ic-card-horizontal{overflow:auto}/*!@[type=\"checkbox\"],\n[type=\"radio\"]*/[type=\"checkbox\"].sc-ic-card-horizontal,[type=\"radio\"].sc-ic-card-horizontal{box-sizing:border-box;padding:0}/*!@[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button*/[type=\"number\"].sc-ic-card-horizontal::-webkit-inner-spin-button,[type=\"number\"].sc-ic-card-horizontal::-webkit-outer-spin-button{height:auto}/*!@[type=\"search\"]*/[type=\"search\"].sc-ic-card-horizontal{-webkit-appearance:textfield;outline-offset:-2px}/*!@[type=\"search\"]::-webkit-search-decoration*/[type=\"search\"].sc-ic-card-horizontal::-webkit-search-decoration{-webkit-appearance:none}/*!@::-webkit-file-upload-button*/.sc-ic-card-horizontal::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}/*!@details*/details.sc-ic-card-horizontal{display:block}/*!@summary*/summary.sc-ic-card-horizontal{display:list-item}/*!@template*/template.sc-ic-card-horizontal{display:none}/*!@[hidden]*/[hidden].sc-ic-card-horizontal{display:none}/*!@html,\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*/html.sc-ic-card-horizontal,body.sc-ic-card-horizontal,div.sc-ic-card-horizontal,span.sc-ic-card-horizontal,applet.sc-ic-card-horizontal,object.sc-ic-card-horizontal,iframe.sc-ic-card-horizontal,h1.sc-ic-card-horizontal,h2.sc-ic-card-horizontal,h3.sc-ic-card-horizontal,h4.sc-ic-card-horizontal,h5.sc-ic-card-horizontal,h6.sc-ic-card-horizontal,p.sc-ic-card-horizontal,blockquote.sc-ic-card-horizontal,pre.sc-ic-card-horizontal,a.sc-ic-card-horizontal,abbr.sc-ic-card-horizontal,acronym.sc-ic-card-horizontal,address.sc-ic-card-horizontal,big.sc-ic-card-horizontal,cite.sc-ic-card-horizontal,code.sc-ic-card-horizontal,del.sc-ic-card-horizontal,dfn.sc-ic-card-horizontal,em.sc-ic-card-horizontal,img.sc-ic-card-horizontal,ins.sc-ic-card-horizontal,kbd.sc-ic-card-horizontal,q.sc-ic-card-horizontal,s.sc-ic-card-horizontal,samp.sc-ic-card-horizontal,small.sc-ic-card-horizontal,strike.sc-ic-card-horizontal,strong.sc-ic-card-horizontal,sub.sc-ic-card-horizontal,sup.sc-ic-card-horizontal,tt.sc-ic-card-horizontal,var.sc-ic-card-horizontal,b.sc-ic-card-horizontal,u.sc-ic-card-horizontal,i.sc-ic-card-horizontal,center.sc-ic-card-horizontal,dl.sc-ic-card-horizontal,dt.sc-ic-card-horizontal,dd.sc-ic-card-horizontal,ol.sc-ic-card-horizontal,ul.sc-ic-card-horizontal,li.sc-ic-card-horizontal,fieldset.sc-ic-card-horizontal,form.sc-ic-card-horizontal,label.sc-ic-card-horizontal,legend.sc-ic-card-horizontal,table.sc-ic-card-horizontal,caption.sc-ic-card-horizontal,tbody.sc-ic-card-horizontal,tfoot.sc-ic-card-horizontal,thead.sc-ic-card-horizontal,tr.sc-ic-card-horizontal,th.sc-ic-card-horizontal,td.sc-ic-card-horizontal,article.sc-ic-card-horizontal,aside.sc-ic-card-horizontal,canvas.sc-ic-card-horizontal,details.sc-ic-card-horizontal,embed.sc-ic-card-horizontal,figure.sc-ic-card-horizontal,figcaption.sc-ic-card-horizontal,footer.sc-ic-card-horizontal,header.sc-ic-card-horizontal,hgroup.sc-ic-card-horizontal,menu.sc-ic-card-horizontal,nav.sc-ic-card-horizontal,output.sc-ic-card-horizontal,ruby.sc-ic-card-horizontal,section.sc-ic-card-horizontal,summary.sc-ic-card-horizontal,time.sc-ic-card-horizontal,mark.sc-ic-card-horizontal,audio.sc-ic-card-horizontal,video.sc-ic-card-horizontal{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}/*!@:host*/.sc-ic-card-horizontal-h{display:flex;--card-max-width:548px;--image-size:114px;--message-max-lines:2}/*!@.card.small*/.card.small.sc-ic-card-horizontal{--card-max-width:360px}/*!@.card.large*/.card.large.sc-ic-card-horizontal{--card-max-width:720px;--image-size:142px;--message-max-lines:3}/*!@.card.extra-large*/.card.extra-large.sc-ic-card-horizontal{--card-max-width:1130px;--image-size:186px;--message-max-lines:5}/*!@a*/a.sc-ic-card-horizontal{text-decoration:none !important;color:var(--ic-architectural-black) !important}/*!@button*/button.sc-ic-card-horizontal{border:none;background-color:transparent;outline:var(--ic-hc-focus-outline);padding:0}/*!@.card,\n.card.clickable*/.card.sc-ic-card-horizontal,.card.clickable.sc-ic-card-horizontal{display:flex;flex-direction:row;border:var(--ic-border-default);border-radius:var(--ic-border-radius);box-sizing:border-box;text-align:left;color:var(--ic-architectural-black);transition:var(--ic-easing-transition-fast);position:relative;max-width:var(--card-max-width);height:-moz-fit-content;height:fit-content;width:var(--card-horizontal-width, -moz-fit-content);width:var(--card-horizontal-width, fit-content)}/*!@.dark.card,\n.dark.card.clickable*/.dark.card.sc-ic-card-horizontal,.dark.card.clickable.sc-ic-card-horizontal{border:var(--ic-border-width) solid var(--ic-architectural-700)}/*!@.card.clickable:hover*/.card.clickable.sc-ic-card-horizontal:hover{background-color:var(--ic-action-default-bg-hover);border:var(--ic-border-hover);cursor:pointer}/*!@.card.clickable:focus,\n.card.clickable.focussed*/.card.clickable.sc-ic-card-horizontal:focus,.card.clickable.focussed.sc-ic-card-horizontal{background-color:var(--ic-action-default-bg-hover);box-shadow:var(--ic-border-focus);outline:var(--ic-hc-focus-outline);border:var(--ic-border-pressed)}/*!@.card.clickable:active*/.card.clickable.sc-ic-card-horizontal:active{background-color:var(--ic-action-default-bg-active);box-shadow:var(--ic-border-focus)}/*!@.card.disabled*/.card.disabled.sc-ic-card-horizontal{border:var(--ic-border-disabled)}/*!@.card-header*/.card-header.sc-ic-card-horizontal{display:flex;align-items:center}/*!@.icon*/.icon.sc-ic-card-horizontal{display:flex;align-items:center;padding-right:var(--ic-space-xs)}/*!@.card.disabled ::slotted(svg)*/.card.disabled .sc-ic-card-horizontal-s>svg{fill:var(--ic-color-tertiary-text)}/*!@.card.clickable .card-title*/.card.clickable.sc-ic-card-horizontal .card-title.sc-ic-card-horizontal{color:var(--ic-hyperlink);text-decoration:underline;text-decoration-thickness:var(--ic-space-1px)}/*!@.card.clickable:hover .card-title,\n.card.clickable:focus .card-title,\n.card.clickable.focussed .card-title*/.card.clickable.sc-ic-card-horizontal:hover .card-title.sc-ic-card-horizontal,.card.clickable.sc-ic-card-horizontal:focus .card-title.sc-ic-card-horizontal,.card.clickable.focussed.sc-ic-card-horizontal .card-title.sc-ic-card-horizontal{display:inline-block;border-bottom:0.25rem solid !important;margin-bottom:-0.25rem !important;text-decoration:none}/*!@.card.clickable:active .card-title*/.card.clickable.sc-ic-card-horizontal:active .card-title.sc-ic-card-horizontal{text-decoration:none}/*!@.card.disabled .card-title*/.card.disabled.sc-ic-card-horizontal .card-title.sc-ic-card-horizontal{text-decoration:underline;text-decoration-thickness:var(--ic-space-1px);text-decoration-color:var(--ic-color-tertiary-text);color:var(--ic-color-tertiary-text)}/*!@.card-message*/.card-message.sc-ic-card-horizontal{margin-top:var(--ic-space-xxxs);align-items:left}/*!@.card.disabled .card-message*/.card.disabled.sc-ic-card-horizontal .card-message.sc-ic-card-horizontal{color:var(--ic-color-tertiary-text)}/*!@.image*/.image.sc-ic-card-horizontal{display:flex;height:var(--image-size);width:var(--image-size);border-radius:var(--ic-border-radius)}/*!@.card-content*/.card-content.sc-ic-card-horizontal{display:flex;flex-direction:column;padding:var(--ic-space-md)}/*!@.card .card-title ::slotted([slot=\"heading\"]),\n.card .card-title ic-typography p*/.card .card-title .sc-ic-card-horizontal-s>[slot=\"heading\"],.card.sc-ic-card-horizontal .card-title.sc-ic-card-horizontal ic-typography.sc-ic-card-horizontal p.sc-ic-card-horizontal{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:calc(var(--card-max-width) - var(--ic-space-xl))}/*!@.card.with-icon .card-title ::slotted([slot=\"heading\"]),\n.card.with-icon .card-title ic-typography p*/.card.with-icon .card-title .sc-ic-card-horizontal-s>[slot=\"heading\"],.card.with-icon.sc-ic-card-horizontal .card-title.sc-ic-card-horizontal ic-typography.sc-ic-card-horizontal p.sc-ic-card-horizontal{max-width:calc(var(--card-max-width) - (2 * var(--ic-space-xl)))}/*!@.card.with-image .card-title ::slotted([slot=\"heading\"]),\n.card.with-image .card-title ic-typography p*/.card.with-image .card-title .sc-ic-card-horizontal-s>[slot=\"heading\"],.card.with-image.sc-ic-card-horizontal .card-title.sc-ic-card-horizontal ic-typography.sc-ic-card-horizontal p.sc-ic-card-horizontal{max-width:calc(\n var(--card-max-width) - var(--image-size) - var(--ic-space-xl)\n )}/*!@.card.with-image.with-icon .card-title ::slotted([slot=\"heading\"]),\n.card.with-image.with-icon .card-title ic-typography p*/.card.with-image.with-icon .card-title .sc-ic-card-horizontal-s>[slot=\"heading\"],.card.with-image.with-icon.sc-ic-card-horizontal .card-title.sc-ic-card-horizontal ic-typography.sc-ic-card-horizontal p.sc-ic-card-horizontal{max-width:calc(\n var(--card-max-width) - var(--image-size) - (2 * var(--ic-space-xl))\n )}/*!@.card .card-message ::slotted([slot=\"message\"]),\n.card .card-message ic-typography*/.card .card-message .sc-ic-card-horizontal-s>[slot=\"message\"],.card.sc-ic-card-horizontal .card-message.sc-ic-card-horizontal ic-typography.sc-ic-card-horizontal{display:-webkit-box;-webkit-box-orient:vertical;line-clamp:var(--message-max-lines, initial);-webkit-line-clamp:var(--message-max-lines, initial);overflow:hidden}@media (forced-colors: active){/*!@.card ::slotted(svg)*/.card .sc-ic-card-horizontal-s>svg{fill:currentcolor}/*!@.card.disabled ::slotted(svg)*/.card.disabled .sc-ic-card-horizontal-s>svg{fill:GrayText !important}/*!@.card.disabled*/.card.disabled.sc-ic-card-horizontal{border-color:GrayText !important}/*!@.card.disabled .card-message,\n .card.disabled .card-title*/.card.disabled.sc-ic-card-horizontal .card-message.sc-ic-card-horizontal,.card.disabled.sc-ic-card-horizontal .card-title.sc-ic-card-horizontal{color:GrayText}}";
9693
9947
 
9694
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
9695
- class CheckboxGroup {
9948
+ /**
9949
+ * @slot heading - Content will be placed at the top of the horizontal card to the right of the icon.
9950
+ * @slot message - Content will be placed in the main body of the horizontal card.
9951
+ * @slot image - Content will be placed to the left of all other content.
9952
+ * @slot icon - Content will be placed to the left of the horizontal card heading.
9953
+ * @slot badge - Badge component overlaying the top right of the horizontal card.
9954
+ */
9955
+ class Card {
9696
9956
  constructor(hostRef) {
9697
9957
  registerInstance(this, hostRef);
9698
- this.icChange = createEvent(this, "icChange", 7);
9958
+ this.hostMutationObserver = null;
9959
+ this.hostMutationCallback = (mutationList) => {
9960
+ if (mutationList.some(({ type, addedNodes, removedNodes }) => type === "childList"
9961
+ ? checkSlotInChildMutations(addedNodes, removedNodes, "image")
9962
+ : false)) ;
9963
+ };
9964
+ this.parentFocussed = () => {
9965
+ this.isFocussed = true;
9966
+ };
9967
+ this.parentBlurred = () => {
9968
+ this.isFocussed = false;
9969
+ };
9970
+ this.appearance = "default";
9971
+ this.isFocussed = false;
9972
+ this.parentEl = null;
9973
+ this.parentIsAnchorTag = false;
9974
+ this.clickable = false;
9699
9975
  this.disabled = false;
9700
- this.helperText = "";
9701
- this.hideLabel = false;
9702
- this.label = undefined;
9703
- this.name = undefined;
9704
- this.required = false;
9705
- this.size = "default";
9706
- this.small = false;
9707
- this.validationStatus = "";
9708
- this.validationText = "";
9709
- }
9710
- labelNameHandler(newValue, oldValue, propName) {
9711
- Array.from(this.el.querySelectorAll("ic-checkbox")).forEach((checkbox) => {
9712
- if (propName === "label")
9713
- checkbox.groupLabel = newValue;
9714
- else if (checkbox.name === oldValue) {
9715
- // If the checkbox name has been set by the parent, then override it
9716
- checkbox.name = newValue;
9717
- }
9718
- });
9976
+ this.heading = undefined;
9977
+ this.href = undefined;
9978
+ this.hreflang = "";
9979
+ this.message = "";
9980
+ this.referrerpolicy = undefined;
9981
+ this.rel = undefined;
9982
+ this.size = "medium";
9983
+ this.target = undefined;
9719
9984
  }
9720
- handleChange(ev) {
9721
- //don't pass on the event if it has come from slotted text field
9722
- //otherwise any icChange handler bound to the checkbox group will also run
9723
- if (ev.target.tagName === "IC-TEXT-FIELD") {
9724
- ev.stopImmediatePropagation();
9985
+ disconnectedCallback() {
9986
+ var _a;
9987
+ if (this.parentIsAnchorTag) {
9988
+ this.parentEl.removeEventListener("focus", this.parentFocussed);
9989
+ this.parentEl.removeEventListener("blur", this.parentBlurred);
9725
9990
  }
9991
+ (_a = this.hostMutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
9726
9992
  }
9727
9993
  componentWillLoad() {
9728
- removeDisabledFalse$1(this.disabled, this.el);
9994
+ this.parentEl = this.el.parentElement;
9995
+ if (this.parentEl.tagName === "A") {
9996
+ this.clickable = true;
9997
+ this.parentIsAnchorTag = true;
9998
+ this.parentEl.classList.add("ic-card-wrapper-link");
9999
+ this.parentEl.addEventListener("focus", this.parentFocussed);
10000
+ this.parentEl.addEventListener("blur", this.parentBlurred);
10001
+ }
10002
+ removeDisabledFalse(this.disabled, this.el);
9729
10003
  }
9730
10004
  componentDidLoad() {
9731
- onComponentRequiredPropUndefined$1([
9732
- { prop: this.label, propName: "label" },
9733
- { prop: this.name, propName: "name" },
9734
- ], "Checkbox Group");
9735
- }
9736
- selectHandler({ target }) {
9737
- const checkedOptions = Array.from(this.el.querySelectorAll("ic-checkbox")).filter(({ checked, disabled }) => checked && !disabled);
9738
- this.icChange.emit({
9739
- value: checkedOptions.map(({ value }) => value),
9740
- checkedOptions: checkedOptions.map((opt) => {
9741
- var _a;
9742
- return ({
9743
- checkbox: opt,
9744
- textFieldValue: (_a = opt.querySelector("ic-text-field")) === null || _a === void 0 ? void 0 : _a.value,
9745
- });
9746
- }),
9747
- selectedOption: target,
10005
+ !isSlotUsed(this.el, "heading") &&
10006
+ onComponentRequiredPropUndefined([{ prop: this.heading, propName: "heading" }], "Card");
10007
+ this.updateTheme();
10008
+ this.hostMutationObserver = new MutationObserver(this.hostMutationCallback);
10009
+ this.hostMutationObserver.observe(this.el, {
10010
+ childList: true,
9748
10011
  });
9749
10012
  }
10013
+ handleHostClick(event) {
10014
+ if (this.disabled) {
10015
+ event.stopImmediatePropagation();
10016
+ }
10017
+ }
10018
+ themeChangeHandler(ev) {
10019
+ const theme = ev.detail;
10020
+ this.updateTheme(theme.mode);
10021
+ }
10022
+ /**
10023
+ * Sets focus on the card.
10024
+ */
10025
+ async setFocus() {
10026
+ if (this.el.shadowRoot.querySelector("a")) {
10027
+ this.el.shadowRoot.querySelector("a").focus();
10028
+ }
10029
+ else if (this.el.shadowRoot.querySelector("button")) {
10030
+ this.el.shadowRoot.querySelector("button").focus();
10031
+ }
10032
+ }
10033
+ updateTheme(newTheme = null) {
10034
+ const foregroundColor = getThemeFromContext(this.el, newTheme || null);
10035
+ if (foregroundColor !== IcThemeForegroundEnum.Default) {
10036
+ this.appearance = foregroundColor;
10037
+ }
10038
+ }
9750
10039
  render() {
9751
- const { disabled, helperText, hideLabel, label, name, required, size, small, validationStatus, validationText, } = this;
9752
- const describedBy = getInputDescribedByText$1(name, helperText !== "", validationStatus !== "");
9753
- return (hAsync(Host, { class: { ["small"]: small, [`${size}`]: true } }, (validationStatus === "error" || required || hideLabel) && (hAsync("span", { id: "screenReaderOnlyText", class: "screen-reader-only-text", "aria-hidden": "true" }, label, " ", validationStatus === "error" ? "invalid data " : null, " ", required ? "required" : null)), hAsync("fieldset", { id: name, "aria-labelledby": `${validationStatus === "error" || required || hideLabel
9754
- ? "screenReaderOnlyText"
9755
- : ""} ${describedBy}`.trim(), disabled: disabled }, !hideLabel && (hAsync("legend", null, hAsync("ic-input-label", { class: { [`${validationStatus}`]: true }, label: label, helperText: helperText, required: required, disabled: disabled, for: name }))), hAsync("div", { class: "checkboxes-container" }, hAsync("slot", null))), hasValidationStatus$1(validationStatus, disabled) && (hAsync("ic-input-validation", { for: name, ariaLiveMode: "polite", status: validationStatus, message: validationText }))));
10040
+ const { clickable, disabled, heading, message, href, hreflang, referrerpolicy, rel, target, parentIsAnchorTag, isFocussed, size, } = this;
10041
+ const Component = parentIsAnchorTag
10042
+ ? "div"
10043
+ : clickable
10044
+ ? this.href === undefined
10045
+ ? "button"
10046
+ : "a"
10047
+ : "div";
10048
+ const attrs = Component == "a" && {
10049
+ href: href,
10050
+ hrefLang: hreflang,
10051
+ referrerPolicy: referrerpolicy,
10052
+ rel: rel,
10053
+ target: target,
10054
+ };
10055
+ return (hAsync(Component, Object.assign({ class: {
10056
+ ["card"]: true,
10057
+ ["clickable"]: clickable && !disabled,
10058
+ ["disabled"]: disabled,
10059
+ ["focussed"]: isFocussed,
10060
+ ["dark"]: this.appearance === IcThemeForegroundEnum.Dark,
10061
+ [`${size}`]: true,
10062
+ ["with-icon"]: isSlotUsed(this.el, "icon"),
10063
+ ["with-image"]: isSlotUsed(this.el, "image"),
10064
+ }, tabindex: clickable && !parentIsAnchorTag ? 0 : null, "aria-disabled": disabled ? "true" : null, disabled: disabled ? true : null }, attrs), isSlotUsed(this.el, "image") && (hAsync("div", { class: { ["image"]: true } }, hAsync("slot", { name: "image" }))), hAsync("div", { class: "card-content" }, hAsync("div", { class: "card-header" }, isSlotUsed(this.el, "icon") && (hAsync("div", { class: "icon" }, hAsync("slot", { name: "icon" }))), hAsync("div", { class: "card-title" }, hAsync("slot", { name: "heading" }, hAsync("ic-typography", { variant: "h4" }, hAsync("p", null, heading))))), (message || isSlotUsed(this.el, "message")) && (hAsync("div", { class: {
10065
+ ["card-message"]: true,
10066
+ } }, message && (hAsync("ic-typography", { variant: "body" }, message)), isSlotUsed(this.el, "message") && hAsync("slot", { name: "message" })))), isSlotUsed(this.el, "badge") && hAsync("slot", { name: "badge" })));
9756
10067
  }
9757
10068
  get el() { return getElement(this); }
9758
- static get watchers() { return {
9759
- "label": ["labelNameHandler"],
9760
- "name": ["labelNameHandler"]
9761
- }; }
9762
- static get style() { return icCheckboxGroupCss; }
10069
+ static get style() { return icCardHorizontalCss; }
9763
10070
  static get cmpMeta() { return {
9764
- "$flags$": 9,
9765
- "$tagName$": "ic-checkbox-group",
9766
- "$members$": {
9767
- "disabled": [4],
9768
- "helperText": [1, "helper-text"],
9769
- "hideLabel": [4, "hide-label"],
9770
- "label": [1],
9771
- "name": [1],
9772
- "required": [4],
10071
+ "$flags$": 9,
10072
+ "$tagName$": "ic-card-horizontal",
10073
+ "$members$": {
10074
+ "clickable": [1028],
10075
+ "disabled": [4],
10076
+ "heading": [1],
10077
+ "href": [1],
10078
+ "hreflang": [1],
10079
+ "message": [1],
10080
+ "referrerpolicy": [1],
10081
+ "rel": [1],
9773
10082
  "size": [1],
9774
- "small": [4],
9775
- "validationStatus": [1, "validation-status"],
9776
- "validationText": [1, "validation-text"]
10083
+ "target": [1],
10084
+ "appearance": [32],
10085
+ "isFocussed": [32],
10086
+ "parentEl": [32],
10087
+ "parentIsAnchorTag": [32],
10088
+ "setFocus": [64]
9777
10089
  },
9778
- "$listeners$": [[0, "icChange", "handleChange"], [0, "icCheck", "selectHandler"]],
10090
+ "$listeners$": [[2, "click", "handleHostClick"], [4, "themeChange", "themeChangeHandler"]],
9779
10091
  "$lazyBundleId$": "-",
9780
10092
  "$attrsToReflect$": []
9781
10093
  }; }
9782
10094
  }
9783
10095
 
9784
- var dismissIcon = `<svg viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
9785
- <path d="M10 0C4.47 0 0 4.47 0 10C0 15.53 4.47 20 10 20C15.53 20 20 15.53 20 10C20 4.47 15.53 0 10 0ZM15 13.59L13.59 15L10 11.41L6.41 15L5 13.59L8.59 10L5 6.41L6.41 5L10 8.59L13.59 5L15 6.41L11.41 10L15 13.59Z" fill="currentColor"/>
9786
- </svg>
9787
- `;
9788
-
9789
- const icChipCss = "/*!@html*/html.sc-ic-chip{line-height:1.15;-webkit-text-size-adjust:100%}/*!@body*/body.sc-ic-chip{margin:0}/*!@main*/main.sc-ic-chip{display:block}/*!@h1*/h1.sc-ic-chip{font-size:2em;margin:0.67em 0}/*!@hr*/hr.sc-ic-chip{box-sizing:content-box;height:0;overflow:visible}/*!@pre*/pre.sc-ic-chip{font-family:monospace, monospace;font-size:1em}/*!@a*/a.sc-ic-chip{background-color:transparent}/*!@abbr[title]*/abbr[title].sc-ic-chip{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}/*!@b,\nstrong*/b.sc-ic-chip,strong.sc-ic-chip{font-weight:bolder}/*!@code,\nkbd,\nsamp*/code.sc-ic-chip,kbd.sc-ic-chip,samp.sc-ic-chip{font-family:monospace, monospace;font-size:1em}/*!@small*/small.sc-ic-chip{font-size:80%}/*!@sub,\nsup*/sub.sc-ic-chip,sup.sc-ic-chip{font-size:75%;line-height:0;position:relative;vertical-align:baseline}/*!@sub*/sub.sc-ic-chip{bottom:-0.25em}/*!@sup*/sup.sc-ic-chip{top:-0.5em}/*!@img*/img.sc-ic-chip{border-style:none}/*!@button,\ninput,\noptgroup,\nselect,\ntextarea*/button.sc-ic-chip,input.sc-ic-chip,optgroup.sc-ic-chip,select.sc-ic-chip,textarea.sc-ic-chip{font-family:inherit;font-size:100%;line-height:1.15;margin:0}/*!@button,\ninput*/button.sc-ic-chip,input.sc-ic-chip{overflow:visible}/*!@button,\nselect*/button.sc-ic-chip,select.sc-ic-chip{text-transform:none}/*!@button,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"]*/button.sc-ic-chip,[type=\"button\"].sc-ic-chip,[type=\"reset\"].sc-ic-chip,[type=\"submit\"].sc-ic-chip{-webkit-appearance:button}/*!@button::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner*/button.sc-ic-chip::-moz-focus-inner,[type=\"button\"].sc-ic-chip::-moz-focus-inner,[type=\"reset\"].sc-ic-chip::-moz-focus-inner,[type=\"submit\"].sc-ic-chip::-moz-focus-inner{border-style:none;padding:0}/*!@button:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring*/button.sc-ic-chip:-moz-focusring,[type=\"button\"].sc-ic-chip:-moz-focusring,[type=\"reset\"].sc-ic-chip:-moz-focusring,[type=\"submit\"].sc-ic-chip:-moz-focusring{outline:1px dotted ButtonText}/*!@fieldset*/fieldset.sc-ic-chip{padding:0.35em 0.75em 0.625em}/*!@legend*/legend.sc-ic-chip{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}/*!@progress*/progress.sc-ic-chip{vertical-align:baseline}/*!@textarea*/textarea.sc-ic-chip{overflow:auto}/*!@[type=\"checkbox\"],\n[type=\"radio\"]*/[type=\"checkbox\"].sc-ic-chip,[type=\"radio\"].sc-ic-chip{box-sizing:border-box;padding:0}/*!@[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button*/[type=\"number\"].sc-ic-chip::-webkit-inner-spin-button,[type=\"number\"].sc-ic-chip::-webkit-outer-spin-button{height:auto}/*!@[type=\"search\"]*/[type=\"search\"].sc-ic-chip{-webkit-appearance:textfield;outline-offset:-2px}/*!@[type=\"search\"]::-webkit-search-decoration*/[type=\"search\"].sc-ic-chip::-webkit-search-decoration{-webkit-appearance:none}/*!@::-webkit-file-upload-button*/.sc-ic-chip::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}/*!@details*/details.sc-ic-chip{display:block}/*!@summary*/summary.sc-ic-chip{display:list-item}/*!@template*/template.sc-ic-chip{display:none}/*!@[hidden]*/[hidden].sc-ic-chip{display:none}/*!@html,\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*/html.sc-ic-chip,body.sc-ic-chip,div.sc-ic-chip,span.sc-ic-chip,applet.sc-ic-chip,object.sc-ic-chip,iframe.sc-ic-chip,h1.sc-ic-chip,h2.sc-ic-chip,h3.sc-ic-chip,h4.sc-ic-chip,h5.sc-ic-chip,h6.sc-ic-chip,p.sc-ic-chip,blockquote.sc-ic-chip,pre.sc-ic-chip,a.sc-ic-chip,abbr.sc-ic-chip,acronym.sc-ic-chip,address.sc-ic-chip,big.sc-ic-chip,cite.sc-ic-chip,code.sc-ic-chip,del.sc-ic-chip,dfn.sc-ic-chip,em.sc-ic-chip,img.sc-ic-chip,ins.sc-ic-chip,kbd.sc-ic-chip,q.sc-ic-chip,s.sc-ic-chip,samp.sc-ic-chip,small.sc-ic-chip,strike.sc-ic-chip,strong.sc-ic-chip,sub.sc-ic-chip,sup.sc-ic-chip,tt.sc-ic-chip,var.sc-ic-chip,b.sc-ic-chip,u.sc-ic-chip,i.sc-ic-chip,center.sc-ic-chip,dl.sc-ic-chip,dt.sc-ic-chip,dd.sc-ic-chip,ol.sc-ic-chip,ul.sc-ic-chip,li.sc-ic-chip,fieldset.sc-ic-chip,form.sc-ic-chip,label.sc-ic-chip,legend.sc-ic-chip,table.sc-ic-chip,caption.sc-ic-chip,tbody.sc-ic-chip,tfoot.sc-ic-chip,thead.sc-ic-chip,tr.sc-ic-chip,th.sc-ic-chip,td.sc-ic-chip,article.sc-ic-chip,aside.sc-ic-chip,canvas.sc-ic-chip,details.sc-ic-chip,embed.sc-ic-chip,figure.sc-ic-chip,figcaption.sc-ic-chip,footer.sc-ic-chip,header.sc-ic-chip,hgroup.sc-ic-chip,menu.sc-ic-chip,nav.sc-ic-chip,output.sc-ic-chip,ruby.sc-ic-chip,section.sc-ic-chip,summary.sc-ic-chip,time.sc-ic-chip,mark.sc-ic-chip,audio.sc-ic-chip,video.sc-ic-chip{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}/*!@:host*/.sc-ic-chip-h{display:inline-block}/*!@.chip*/.chip.sc-ic-chip{display:flex;padding:var(--ic-space-xxs);font-size:0.875rem;border-radius:var(--ic-space-md);text-align:left;text-decoration:none;transition:var(--ic-easing-transition-fast);position:relative}/*!@.chip.small*/.chip.small.sc-ic-chip{padding:var(--ic-space-xxxs);border-radius:calc(var(--ic-space-md) - var(--ic-space-xxxs))}/*!@.chip.large*/.chip.large.sc-ic-chip{padding:var(--ic-space-xs);border-radius:calc(var(--ic-space-md) + var(--ic-space-xxs))}/*!@.label*/.label.sc-ic-chip{padding:0 var(--ic-space-xs)}/*!@.chip.hovered:not(:focus-within)*/.chip.hovered.sc-ic-chip:not(:focus-within){background-color:var(--ic-architectural-300)}/*!@.chip:focus-within*/.chip.sc-ic-chip:focus-within{box-shadow:var(--ic-border-focus);outline:var(--ic-hc-focus-outline);z-index:1}/*!@.chip.outline.hovered:not(:focus-within),\n.chip.outlined.hovered:not(:focus-within)*/.chip.outline.hovered.sc-ic-chip:not(:focus-within),.chip.outlined.hovered.sc-ic-chip:not(:focus-within){background-color:var(--ic-action-dark-bg-hover)}/*!@ic-tooltip:focus-within*/ic-tooltip.sc-ic-chip:focus-within{z-index:1}/*!@.filled*/.filled.sc-ic-chip{background-color:var(--chip-custom-color, var(--ic-architectural-200));color:var(--chip-custom-foreground-color, black);border:none}/*!@.filled.disabled*/.filled.disabled.sc-ic-chip{background-color:var(--ic-architectural-100)}/*!@.outline,\n.outlined*/.outline.sc-ic-chip,.outlined.sc-ic-chip{color:var(--ic-architectural-900);border:var(--ic-border-width) solid\n var(--chip-custom-color, var(--ic-architectural-900));padding:calc(var(--ic-space-xxs) - var(--ic-space-1px))}/*!@.outline.small,\n.outlined.small*/.outline.small.sc-ic-chip,.outlined.small.sc-ic-chip{padding:calc(var(--ic-space-xxxs) - var(--ic-space-1px))}/*!@.outline.large,\n.outlined.large*/.outline.large.sc-ic-chip,.outlined.large.sc-ic-chip{padding:calc(var(--ic-space-xs) - var(--ic-space-1px))}/*!@.outline.disabled,\n.outlined.disabled*/.outline.disabled.sc-ic-chip,.outlined.disabled.sc-ic-chip{border:var(--ic-border-disabled);background:none}/*!@.chip.disabled ic-typography*/.chip.disabled.sc-ic-chip ic-typography.sc-ic-chip{color:var(--ic-architectural-500)}/*!@.filled.disabled ic-typography*/.filled.disabled.sc-ic-chip ic-typography.sc-ic-chip{color:var(--ic-architectural-600)}/*!@.dismiss-icon*/.dismiss-icon.sc-ic-chip{border:none;border-radius:50%;padding:0;background:none;cursor:pointer;margin:var(--ic-space-xxxs);height:calc(var(--ic-space-lg) - var(--ic-space-xxs));width:calc(var(--ic-space-lg) - var(--ic-space-xxs))}/*!@.dismiss-icon:focus*/.dismiss-icon.sc-ic-chip:focus{outline:var(--ic-hc-focus-outline)}/*!@.dismiss-icon[disabled]*/.dismiss-icon[disabled].sc-ic-chip{pointer-events:none;color:var(--ic-architectural-200)}/*!@.icon*/.icon.sc-ic-chip{padding:var(--ic-space-xxxs);box-sizing:border-box}/*!@.icon,\nic-tooltip*/.icon.sc-ic-chip,ic-tooltip.sc-ic-chip{width:var(--ic-space-lg);height:var(--ic-space-lg)}/*!@.chip.disabled path,\n.chip.disabled ::slotted(svg)*/.chip.disabled.sc-ic-chip path.sc-ic-chip,.chip.disabled.sc-ic-chip-s>svg,.chip.disabled .sc-ic-chip-s>svg{fill:var(--ic-architectural-200)}/*!@.chip.white-background*/.chip.white-background.sc-ic-chip{background-color:var(--ic-architectural-white)}/*!@.chip.white-background.hovered:not(:focus-within)*/.chip.white-background.hovered.sc-ic-chip:not(:focus-within){background-color:var(--ic-action-dark-bg-hover-no-alpha) !important}@media (forced-colors: active){/*!@.chip*/.chip.sc-ic-chip{border:var(--ic-hc-border)}/*!@.filled.small*/.filled.small.sc-ic-chip{padding:calc(var(--ic-space-xxxs) - var(--ic-space-1px))}/*!@.filled*/.filled.sc-ic-chip{padding:calc(var(--ic-space-xxxs) + var(--ic-space-1px))}/*!@.filled.large*/.filled.large.sc-ic-chip{padding:calc(var(--ic-space-xs) - var(--ic-space-1px))}/*!@.chip.disabled*/.chip.disabled.sc-ic-chip{-webkit-appearance:none;-moz-appearance:none;appearance:none;border-color:GrayText}/*!@.chip.disabled ic-typography*/.chip.disabled.sc-ic-chip ic-typography.sc-ic-chip{color:GrayText}/*!@.chip.disabled path,\n .chip.disabled ::slotted(svg)*/.chip.disabled.sc-ic-chip path.sc-ic-chip,.chip.disabled.sc-ic-chip-s>svg,.chip.disabled .sc-ic-chip-s>svg{fill:GrayText}/*!@.chip:focus-within*/.chip.sc-ic-chip:focus-within{outline:none;border-color:Highlight}}";
10096
+ const icCheckboxCss = "/*!@html*/html.sc-ic-checkbox{line-height:1.15;-webkit-text-size-adjust:100%}/*!@body*/body.sc-ic-checkbox{margin:0}/*!@main*/main.sc-ic-checkbox{display:block}/*!@h1*/h1.sc-ic-checkbox{font-size:2em;margin:0.67em 0}/*!@hr*/hr.sc-ic-checkbox{box-sizing:content-box;height:0;overflow:visible}/*!@pre*/pre.sc-ic-checkbox{font-family:monospace, monospace;font-size:1em}/*!@a*/a.sc-ic-checkbox{background-color:transparent}/*!@abbr[title]*/abbr[title].sc-ic-checkbox{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}/*!@b,\nstrong*/b.sc-ic-checkbox,strong.sc-ic-checkbox{font-weight:bolder}/*!@code,\nkbd,\nsamp*/code.sc-ic-checkbox,kbd.sc-ic-checkbox,samp.sc-ic-checkbox{font-family:monospace, monospace;font-size:1em}/*!@small*/small.sc-ic-checkbox{font-size:80%}/*!@sub,\nsup*/sub.sc-ic-checkbox,sup.sc-ic-checkbox{font-size:75%;line-height:0;position:relative;vertical-align:baseline}/*!@sub*/sub.sc-ic-checkbox{bottom:-0.25em}/*!@sup*/sup.sc-ic-checkbox{top:-0.5em}/*!@img*/img.sc-ic-checkbox{border-style:none}/*!@button,\ninput,\noptgroup,\nselect,\ntextarea*/button.sc-ic-checkbox,input.sc-ic-checkbox,optgroup.sc-ic-checkbox,select.sc-ic-checkbox,textarea.sc-ic-checkbox{font-family:inherit;font-size:100%;line-height:1.15;margin:0}/*!@button,\ninput*/button.sc-ic-checkbox,input.sc-ic-checkbox{overflow:visible}/*!@button,\nselect*/button.sc-ic-checkbox,select.sc-ic-checkbox{text-transform:none}/*!@button,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"]*/button.sc-ic-checkbox,[type=\"button\"].sc-ic-checkbox,[type=\"reset\"].sc-ic-checkbox,[type=\"submit\"].sc-ic-checkbox{-webkit-appearance:button}/*!@button::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner*/button.sc-ic-checkbox::-moz-focus-inner,[type=\"button\"].sc-ic-checkbox::-moz-focus-inner,[type=\"reset\"].sc-ic-checkbox::-moz-focus-inner,[type=\"submit\"].sc-ic-checkbox::-moz-focus-inner{border-style:none;padding:0}/*!@button:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring*/button.sc-ic-checkbox:-moz-focusring,[type=\"button\"].sc-ic-checkbox:-moz-focusring,[type=\"reset\"].sc-ic-checkbox:-moz-focusring,[type=\"submit\"].sc-ic-checkbox:-moz-focusring{outline:1px dotted ButtonText}/*!@fieldset*/fieldset.sc-ic-checkbox{padding:0.35em 0.75em 0.625em}/*!@legend*/legend.sc-ic-checkbox{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}/*!@progress*/progress.sc-ic-checkbox{vertical-align:baseline}/*!@textarea*/textarea.sc-ic-checkbox{overflow:auto}/*!@[type=\"checkbox\"],\n[type=\"radio\"]*/[type=\"checkbox\"].sc-ic-checkbox,[type=\"radio\"].sc-ic-checkbox{box-sizing:border-box;padding:0}/*!@[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button*/[type=\"number\"].sc-ic-checkbox::-webkit-inner-spin-button,[type=\"number\"].sc-ic-checkbox::-webkit-outer-spin-button{height:auto}/*!@[type=\"search\"]*/[type=\"search\"].sc-ic-checkbox{-webkit-appearance:textfield;outline-offset:-2px}/*!@[type=\"search\"]::-webkit-search-decoration*/[type=\"search\"].sc-ic-checkbox::-webkit-search-decoration{-webkit-appearance:none}/*!@::-webkit-file-upload-button*/.sc-ic-checkbox::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}/*!@details*/details.sc-ic-checkbox{display:block}/*!@summary*/summary.sc-ic-checkbox{display:list-item}/*!@template*/template.sc-ic-checkbox{display:none}/*!@[hidden]*/[hidden].sc-ic-checkbox{display:none}/*!@html,\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*/html.sc-ic-checkbox,body.sc-ic-checkbox,div.sc-ic-checkbox,span.sc-ic-checkbox,applet.sc-ic-checkbox,object.sc-ic-checkbox,iframe.sc-ic-checkbox,h1.sc-ic-checkbox,h2.sc-ic-checkbox,h3.sc-ic-checkbox,h4.sc-ic-checkbox,h5.sc-ic-checkbox,h6.sc-ic-checkbox,p.sc-ic-checkbox,blockquote.sc-ic-checkbox,pre.sc-ic-checkbox,a.sc-ic-checkbox,abbr.sc-ic-checkbox,acronym.sc-ic-checkbox,address.sc-ic-checkbox,big.sc-ic-checkbox,cite.sc-ic-checkbox,code.sc-ic-checkbox,del.sc-ic-checkbox,dfn.sc-ic-checkbox,em.sc-ic-checkbox,img.sc-ic-checkbox,ins.sc-ic-checkbox,kbd.sc-ic-checkbox,q.sc-ic-checkbox,s.sc-ic-checkbox,samp.sc-ic-checkbox,small.sc-ic-checkbox,strike.sc-ic-checkbox,strong.sc-ic-checkbox,sub.sc-ic-checkbox,sup.sc-ic-checkbox,tt.sc-ic-checkbox,var.sc-ic-checkbox,b.sc-ic-checkbox,u.sc-ic-checkbox,i.sc-ic-checkbox,center.sc-ic-checkbox,dl.sc-ic-checkbox,dt.sc-ic-checkbox,dd.sc-ic-checkbox,ol.sc-ic-checkbox,ul.sc-ic-checkbox,li.sc-ic-checkbox,fieldset.sc-ic-checkbox,form.sc-ic-checkbox,label.sc-ic-checkbox,legend.sc-ic-checkbox,table.sc-ic-checkbox,caption.sc-ic-checkbox,tbody.sc-ic-checkbox,tfoot.sc-ic-checkbox,thead.sc-ic-checkbox,tr.sc-ic-checkbox,th.sc-ic-checkbox,td.sc-ic-checkbox,article.sc-ic-checkbox,aside.sc-ic-checkbox,canvas.sc-ic-checkbox,details.sc-ic-checkbox,embed.sc-ic-checkbox,figure.sc-ic-checkbox,figcaption.sc-ic-checkbox,footer.sc-ic-checkbox,header.sc-ic-checkbox,hgroup.sc-ic-checkbox,menu.sc-ic-checkbox,nav.sc-ic-checkbox,output.sc-ic-checkbox,ruby.sc-ic-checkbox,section.sc-ic-checkbox,summary.sc-ic-checkbox,time.sc-ic-checkbox,mark.sc-ic-checkbox,audio.sc-ic-checkbox,video.sc-ic-checkbox{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}/*!@:host(.disabled)*/.disabled.sc-ic-checkbox-h{color:var(--ic-architectural-200);pointer-events:none}/*!@.container*/.container.sc-ic-checkbox{display:flex;width:-moz-fit-content;width:fit-content;padding:var(--ic-space-xxs) 0 var(--ic-space-xxs) var(--ic-space-xxs);margin-bottom:var(--ic-space-xxs);align-items:center}/*!@:host(.small) .container*/.small.sc-ic-checkbox-h .container.sc-ic-checkbox{margin-bottom:var(--ic-space-xxxs)}/*!@.checkbox*/.checkbox.sc-ic-checkbox{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:block;position:relative;top:0;left:0;height:var(--ic-space-lg);width:var(--ic-space-lg);background-color:var(--ic-architectural-white);border:var(--ic-border-width) solid var(--ic-architectural-400);border-radius:var(--ic-border-radius);outline:none;cursor:pointer;transition:var(--ic-easing-transition-fast);flex-shrink:0}/*!@:host(.small) .checkbox,\n:host(.small) .container svg*/.small.sc-ic-checkbox-h .checkbox.sc-ic-checkbox,.small.sc-ic-checkbox-h .container.sc-ic-checkbox svg.sc-ic-checkbox{width:var(--ic-space-md);height:var(--ic-space-md)}/*!@:host(.large) .checkbox,\n:host(.large) .container svg*/.large.sc-ic-checkbox-h .checkbox.sc-ic-checkbox,.large.sc-ic-checkbox-h .container.sc-ic-checkbox svg.sc-ic-checkbox{width:var(--ic-space-xl);height:var(--ic-space-xl)}/*!@.checkbox:checked*/.checkbox.sc-ic-checkbox:checked{background-color:var(--ic-action-default);border:var(--ic-border-width) solid var(--ic-action-default);transition:var(--ic-easing-transition-slow)}/*!@.checkbox:checked:disabled*/.checkbox.sc-ic-checkbox:checked:disabled{background-color:var(--ic-architectural-200)}/*!@.checkbox:indeterminate,\n.checkbox.indeterminate:checked*/.checkbox.sc-ic-checkbox:indeterminate,.checkbox.indeterminate.sc-ic-checkbox:checked{background-color:var(--ic-architectural-white);border:0.125rem solid var(--ic-action-default)}/*!@.checkbox:checked:hover*/.checkbox.sc-ic-checkbox:checked:hover{background-color:var(--ic-action-default-hover)}/*!@.checkbox:indeterminate:hover,\n.checkbox.indeterminate:checked:hover*/.checkbox.sc-ic-checkbox:indeterminate:hover,.checkbox.indeterminate.sc-ic-checkbox:checked:hover{background-color:var(--ic-action-default-bg-hover-no-alpha);border:0.125rem solid var(--ic-action-default-hover)}/*!@.checkbox:checked:active*/.checkbox.sc-ic-checkbox:checked:active{background-color:var(--ic-action-default-active)}/*!@.checkbox:indeterminate:active,\n.checkbox.indeterminate:checked:active*/.checkbox.sc-ic-checkbox:indeterminate:active,.checkbox.indeterminate.sc-ic-checkbox:checked:active{background-color:var(--ic-action-default-bg-active-no-alpha);border:0.125rem solid var(--ic-action-default-active)}/*!@.checkbox:hover*/.checkbox.sc-ic-checkbox:hover{background-color:var(--ic-action-default-bg-hover-no-alpha);box-shadow:0 0 0 0.25rem var(--ic-action-default-bg-hover);border:var(--ic-border-width) solid var(--ic-action-default-hover)}/*!@.checkbox:active*/.checkbox.sc-ic-checkbox:active{background-color:var(--ic-action-default-bg-active-no-alpha);box-shadow:0 0 0 0.25rem var(--ic-action-default-bg-active);border:var(--ic-border-width) solid var(--ic-action-default-active)}/*!@.checkbox:focus*/.checkbox.sc-ic-checkbox:focus{box-shadow:var(--ic-border-focus)}/*!@.checkbox:disabled*/.checkbox.sc-ic-checkbox:disabled{border:var(--ic-border-width) dashed var(--ic-architectural-200)}/*!@.checkbox-label*/.checkbox-label.sc-ic-checkbox{padding-left:var(--ic-space-sm)}/*!@.checkbox-label:hover*/.checkbox-label.sc-ic-checkbox:hover{cursor:pointer}/*!@.checkmark*/.checkmark.sc-ic-checkbox{position:relative;right:calc(-1 * var(--ic-space-lg));margin-left:calc(-1 * var(--ic-space-lg));fill:white;z-index:1;background-color:transparent;pointer-events:none;flex-shrink:0}/*!@:host(.small) .checkmark*/.small.sc-ic-checkbox-h .checkmark.sc-ic-checkbox{margin-left:calc(-1 * var(--ic-space-md));right:calc(-1 * var(--ic-space-md))}/*!@:host(.large) .checkmark*/.large.sc-ic-checkbox-h .checkmark.sc-ic-checkbox{margin-left:calc(-1 * var(--ic-space-xl));right:calc(-1 * var(--ic-space-xl))}/*!@.indeterminate-symbol*/.indeterminate-symbol.sc-ic-checkbox{position:relative;width:0.875rem;height:var(--ic-space-xxxs);right:-1.188rem;margin-left:-0.875rem;z-index:1;background-color:var(--ic-action-default);pointer-events:none;flex-shrink:0}/*!@:host(.small) .indeterminate-symbol*/.small.sc-ic-checkbox-h .indeterminate-symbol.sc-ic-checkbox{width:0.6rem;right:-0.8rem;margin-left:-0.6rem}/*!@:host(.large) .indeterminate-symbol*/.large.sc-ic-checkbox-h .indeterminate-symbol.sc-ic-checkbox{width:1.25rem;right:-1.625rem;margin-left:-1.25rem}/*!@.container:hover .indeterminate-symbol*/.container.sc-ic-checkbox:hover .indeterminate-symbol.sc-ic-checkbox{background-color:var(--ic-action-default-hover)}/*!@.container:active .indeterminate-symbol*/.container.sc-ic-checkbox:active .indeterminate-symbol.sc-ic-checkbox{background-color:var(--ic-action-default-active)}/*!@.additional-field-wrapper*/.additional-field-wrapper.sc-ic-checkbox{margin-left:calc(var(--ic-space-md) + var(--ic-space-lg));margin-top:calc(var(--ic-space-sm) / 2)}/*!@.branch-corner*/.branch-corner.sc-ic-checkbox{color:var(--ic-action-default);height:var(--ic-space-md);width:var(--ic-space-xl);border-radius:0 0 0 0.188rem;border-bottom:0.125rem solid var(--ic-action-default);border-left:0.125rem solid var(--ic-action-default)}/*!@.dynamic-container*/.dynamic-container.sc-ic-checkbox{display:flex;position:relative;margin:var(--ic-space-xxxs) 0 var(--ic-space-xxs) var(--ic-space-md);gap:var(--ic-space-xs)}/*!@.dynamic-text*/.dynamic-text.sc-ic-checkbox{color:var(--ic-action-default);margin-top:calc(var(--ic-space-sm) / 2);margin-bottom:var(--ic-space-xs);border-radius:2%}@media (max-width: 576px){/*!@::slotted(ic-text-field)*/.sc-ic-checkbox-s>ic-text-field{--input-width:100%}}@media (forced-colors: active){/*!@.checkbox*/.checkbox.sc-ic-checkbox{-webkit-appearance:revert;-moz-appearance:revert;appearance:revert;transition:none}/*!@.checkbox:checked*/.checkbox.sc-ic-checkbox:checked{transition:none}/*!@.checkbox:focus-visible*/.checkbox.sc-ic-checkbox:focus-visible{outline:0.125rem solid highlight}/*!@.checkbox:disabled:not(:checked)*/.checkbox.sc-ic-checkbox:disabled:not(:checked){-webkit-appearance:none;-moz-appearance:none;appearance:none;border-color:GrayText}/*!@.checkmark*/.checkmark.sc-ic-checkbox{fill:none}/*!@.indeterminate-symbol*/.indeterminate-symbol.sc-ic-checkbox{display:none}}";
9790
10097
 
9791
10098
  /**
9792
- * @slot icon - Content will be rendered at the start of the chip.
9793
- * @slot badge - Badge component overlaying the top right of the chip.
10099
+ * @slot additional-field - Content to be displayed alongside a checkbox.
9794
10100
  */
9795
- class Chip {
10101
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
10102
+ class Checkbox {
9796
10103
  constructor(hostRef) {
9797
10104
  registerInstance(this, hostRef);
9798
- this.dismiss = createEvent(this, "dismiss", 7);
9799
- this.icDismiss = createEvent(this, "icDismiss", 7);
9800
- this.dismissAction = () => {
9801
- this.dismiss.emit();
9802
- this.icDismiss.emit();
9803
- };
9804
- this.mouseEnterHandler = () => {
9805
- this.hovered = true;
9806
- };
9807
- this.mouseLeaveHandler = () => {
9808
- this.hovered = false;
10105
+ this.checkboxChecked = createEvent(this, "checkboxChecked", 7);
10106
+ this.icCheck = createEvent(this, "icCheck", 7);
10107
+ this.handleClick = () => {
10108
+ this.checked = !this.checked;
10109
+ this.displayIndeterminate = this.nativeIndeterminateBehaviour
10110
+ ? false
10111
+ : this.indeterminate && this.checked;
10112
+ this.icCheck.emit();
10113
+ this.checkboxChecked.emit();
9809
10114
  };
9810
- this.setChipColour = () => {
9811
- const colorRGBA = convertToRGBA(this.customColor);
9812
- if (colorRGBA) {
9813
- const { r, g, b, a } = colorRGBA;
9814
- const foregroundColour = (r * 299 + g * 587 + b * 114) / 1000 > 133.3505 ? "black" : "white";
9815
- this.el.setAttribute("style", `--chip-custom-color: rgba(${r}, ${g}, ${b}, ${a}); --chip-custom-foreground-color: var(--ic-architectural-${foregroundColour})`);
9816
- }
10115
+ this.handleFormReset = () => {
10116
+ this.checked = this.initiallyChecked;
9817
10117
  };
9818
- this.hovered = false;
9819
- this.visible = true;
9820
- this.appearance = undefined;
9821
- this.customColor = null;
10118
+ this.additionalFieldDisplay = "static";
10119
+ this.checked = false;
10120
+ this.initiallyChecked = this.checked;
9822
10121
  this.disabled = false;
9823
- this.dismissible = false;
10122
+ this.dynamicText = "This selection requires additional answers";
10123
+ this.form = undefined;
10124
+ this.formaction = undefined;
10125
+ this.formenctype = undefined;
10126
+ this.formmethod = undefined;
10127
+ this.formnovalidate = undefined;
10128
+ this.formtarget = undefined;
10129
+ this.groupLabel = undefined;
10130
+ this.indeterminate = false;
10131
+ this.displayIndeterminate = this.indeterminate;
9824
10132
  this.label = undefined;
9825
- this.size = "default";
9826
- this.transparentBackground = true;
9827
- this.variant = "filled";
10133
+ this.name = undefined;
10134
+ this.nativeIndeterminateBehaviour = false;
10135
+ this.size = undefined;
10136
+ this.small = false;
10137
+ this.value = undefined;
10138
+ this.hideLabel = false;
9828
10139
  }
9829
- customColorHandler() {
9830
- if (!this.dismissible) {
9831
- this.setChipColour();
9832
- }
10140
+ watchIndeterminateHandler() {
10141
+ this.displayIndeterminate = this.nativeIndeterminateBehaviour
10142
+ ? this.indeterminate
10143
+ : this.indeterminate && this.checked;
9833
10144
  }
9834
10145
  componentWillLoad() {
9835
10146
  removeDisabledFalse$1(this.disabled, this.el);
9836
- if (!this.dismissible) {
9837
- this.setChipColour();
9838
- }
9839
- if (this.appearance === "outline") {
9840
- this.variant = "outlined";
10147
+ addFormResetListener$1(this.el, this.handleFormReset);
10148
+ const checkboxGroup = this.el.parentElement;
10149
+ if (checkboxGroup) {
10150
+ if (!this.name)
10151
+ this.name = checkboxGroup.name;
10152
+ this.groupLabel = checkboxGroup.label;
9841
10153
  }
9842
10154
  }
9843
10155
  componentDidLoad() {
9844
- onComponentRequiredPropUndefined$1([{ prop: this.label, propName: "label" }], "Chip");
10156
+ onComponentRequiredPropUndefined$1([
10157
+ { prop: this.label, propName: "label" },
10158
+ { prop: this.value, propName: "value" },
10159
+ ], "Checkbox");
9845
10160
  }
9846
- handleClick() {
9847
- this.visible = !this.visible;
10161
+ componentDidRender() {
10162
+ if (this.additionalFieldDisplay === "static") {
10163
+ const textfield = this.el.querySelector("ic-text-field");
10164
+ if (!this.checked) {
10165
+ textfield === null || textfield === void 0 ? void 0 : textfield.setAttribute("disabled", "");
10166
+ }
10167
+ else {
10168
+ textfield === null || textfield === void 0 ? void 0 : textfield.removeAttribute("disabled");
10169
+ }
10170
+ }
10171
+ else if (this.additionalFieldContainer) {
10172
+ this.additionalFieldContainer.style.display = !this.checked
10173
+ ? "none"
10174
+ : "flex";
10175
+ }
10176
+ }
10177
+ disconnectedCallback() {
10178
+ removeFormResetListener$1(this.el, this.handleFormReset);
9848
10179
  }
9849
10180
  /**
9850
- * Sets focus on the chip.
10181
+ * Sets focus on the checkbox.
9851
10182
  */
9852
10183
  async setFocus() {
9853
10184
  var _a;
9854
- (_a = this.el.shadowRoot.querySelector("button")) === null || _a === void 0 ? void 0 : _a.focus();
10185
+ (_a = this.el.shadowRoot.querySelector(".checkbox")) === null || _a === void 0 ? void 0 : _a.focus();
9855
10186
  }
9856
10187
  render() {
9857
- const { label, appearance, variant, size, dismissible, visible, disabled, hovered, } = this;
9858
- return (visible && (hAsync("div", { class: {
9859
- chip: true,
9860
- [`${appearance}`]: appearance !== undefined,
9861
- [`${variant}`]: true,
9862
- [`${size}`]: true,
10188
+ const { additionalFieldDisplay, checked, disabled, dynamicText, el, form, formaction, formenctype, formmethod, formnovalidate, formtarget, displayIndeterminate, groupLabel, label, name, size, small, value, } = this;
10189
+ const id = `ic-checkbox-${isPropDefined(label) || value}-${groupLabel}`.replace(/ /g, "-");
10190
+ const parentElementSize = el.parentElement
10191
+ .size;
10192
+ checked
10193
+ ? renderHiddenInput$1(true, el, name, checked && value, disabled)
10194
+ : removeHiddenInput(el);
10195
+ return (hAsync(Host, { class: {
9863
10196
  disabled,
9864
- dismissible,
9865
- hovered,
9866
- "white-background": this.variant === "outlined" && !this.transparentBackground,
9867
- } }, isSlotUsed$1(this.el, "icon") && (hAsync("div", { class: "icon" }, hAsync("slot", { name: "icon" }))), hAsync("ic-typography", { variant: "label", "apply-vertical-margins": false, class: "label" }, hAsync("span", null, label)), dismissible && (hAsync("ic-tooltip", { label: "Dismiss", target: "dismiss-icon", class: { "tooltip-disabled": disabled } }, hAsync("button", { id: "dismiss-icon", class: "dismiss-icon", "aria-label": `Dismiss ${label} chip`, disabled: disabled, tabindex: disabled ? -1 : 0, onClick: this.dismissAction, onMouseEnter: this.mouseEnterHandler, onMouseLeave: this.mouseLeaveHandler, innerHTML: dismissIcon }))), isSlotUsed$1(this.el, "badge") && hAsync("slot", { name: "badge" }))));
10197
+ small,
10198
+ [`${size || parentElementSize}`]: true,
10199
+ } }, hAsync("div", { class: "container" }, displayIndeterminate && hAsync("div", { class: "indeterminate-symbol" }), !displayIndeterminate && checked && (hAsync("svg", { class: "checkmark", width: "1.5rem", height: "1.5rem", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", "fill-rule": "evenodd", "clip-rule": "evenodd" }, hAsync("title", null, "checkmark icon"), hAsync("path", { d: "M21 6.285l-11.16 12.733-6.84-6.018 1.319-1.49 5.341 4.686 9.865-11.196 1.475 1.285z" }))), hAsync("input", { role: "checkbox", class: {
10200
+ checkbox: true,
10201
+ checked,
10202
+ indeterminate: displayIndeterminate,
10203
+ }, type: "checkbox", name: name, id: id, value: value, disabled: disabled ? true : null, checked: checked, indeterminate: displayIndeterminate, onClick: this.handleClick, form: form, formaction: formaction, formenctype: formenctype, formmethod: formmethod, formnovalidate: formnovalidate, formtarget: formtarget, "aria-label": this.hideLabel ? this.label : undefined }), !this.hideLabel && (hAsync("ic-typography", { class: "checkbox-label", variant: "body" }, hAsync("label", { htmlFor: id }, label)))), isSlotUsed$1(el, "additional-field") && (hAsync("div", { class: "dynamic-container", ref: (el) => (this.additionalFieldContainer = el) }, additionalFieldDisplay === "dynamic" && (hAsync("div", { class: "branch-corner" })), hAsync("div", null, additionalFieldDisplay === "dynamic" && (hAsync("ic-typography", { variant: "caption" }, hAsync("p", { class: "dynamic-text", "aria-live": "polite" }, dynamicText))), hAsync("div", { class: {
10204
+ "additional-field-wrapper": additionalFieldDisplay === "static",
10205
+ } }, hAsync("slot", { name: "additional-field" })))))));
9868
10206
  }
9869
10207
  static get delegatesFocus() { return true; }
9870
10208
  get el() { return getElement(this); }
9871
- static get watchers() { return {
9872
- "customColor": ["customColorHandler"]
9873
- }; }
9874
- static get style() { return icChipCss; }
9875
- static get cmpMeta() { return {
9876
- "$flags$": 25,
9877
- "$tagName$": "ic-chip",
9878
- "$members$": {
9879
- "appearance": [1],
9880
- "customColor": [1, "custom-color"],
9881
- "disabled": [4],
9882
- "dismissible": [4],
9883
- "label": [1],
9884
- "size": [1],
9885
- "transparentBackground": [4, "transparent-background"],
9886
- "variant": [1],
9887
- "hovered": [32],
9888
- "visible": [32],
9889
- "setFocus": [64]
9890
- },
9891
- "$listeners$": [[2, "icDismiss", "handleClick"]],
9892
- "$lazyBundleId$": "-",
9893
- "$attrsToReflect$": []
9894
- }; }
9895
- }
9896
-
9897
- const icClassificationBannerCss = "/*!@html*/html.sc-ic-classification-banner{line-height:1.15;-webkit-text-size-adjust:100%}/*!@body*/body.sc-ic-classification-banner{margin:0}/*!@main*/main.sc-ic-classification-banner{display:block}/*!@h1*/h1.sc-ic-classification-banner{font-size:2em;margin:0.67em 0}/*!@hr*/hr.sc-ic-classification-banner{box-sizing:content-box;height:0;overflow:visible}/*!@pre*/pre.sc-ic-classification-banner{font-family:monospace, monospace;font-size:1em}/*!@a*/a.sc-ic-classification-banner{background-color:transparent}/*!@abbr[title]*/abbr[title].sc-ic-classification-banner{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}/*!@b,\nstrong*/b.sc-ic-classification-banner,strong.sc-ic-classification-banner{font-weight:bolder}/*!@code,\nkbd,\nsamp*/code.sc-ic-classification-banner,kbd.sc-ic-classification-banner,samp.sc-ic-classification-banner{font-family:monospace, monospace;font-size:1em}/*!@small*/small.sc-ic-classification-banner{font-size:80%}/*!@sub,\nsup*/sub.sc-ic-classification-banner,sup.sc-ic-classification-banner{font-size:75%;line-height:0;position:relative;vertical-align:baseline}/*!@sub*/sub.sc-ic-classification-banner{bottom:-0.25em}/*!@sup*/sup.sc-ic-classification-banner{top:-0.5em}/*!@img*/img.sc-ic-classification-banner{border-style:none}/*!@button,\ninput,\noptgroup,\nselect,\ntextarea*/button.sc-ic-classification-banner,input.sc-ic-classification-banner,optgroup.sc-ic-classification-banner,select.sc-ic-classification-banner,textarea.sc-ic-classification-banner{font-family:inherit;font-size:100%;line-height:1.15;margin:0}/*!@button,\ninput*/button.sc-ic-classification-banner,input.sc-ic-classification-banner{overflow:visible}/*!@button,\nselect*/button.sc-ic-classification-banner,select.sc-ic-classification-banner{text-transform:none}/*!@button,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"]*/button.sc-ic-classification-banner,[type=\"button\"].sc-ic-classification-banner,[type=\"reset\"].sc-ic-classification-banner,[type=\"submit\"].sc-ic-classification-banner{-webkit-appearance:button}/*!@button::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner*/button.sc-ic-classification-banner::-moz-focus-inner,[type=\"button\"].sc-ic-classification-banner::-moz-focus-inner,[type=\"reset\"].sc-ic-classification-banner::-moz-focus-inner,[type=\"submit\"].sc-ic-classification-banner::-moz-focus-inner{border-style:none;padding:0}/*!@button:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring*/button.sc-ic-classification-banner:-moz-focusring,[type=\"button\"].sc-ic-classification-banner:-moz-focusring,[type=\"reset\"].sc-ic-classification-banner:-moz-focusring,[type=\"submit\"].sc-ic-classification-banner:-moz-focusring{outline:1px dotted ButtonText}/*!@fieldset*/fieldset.sc-ic-classification-banner{padding:0.35em 0.75em 0.625em}/*!@legend*/legend.sc-ic-classification-banner{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}/*!@progress*/progress.sc-ic-classification-banner{vertical-align:baseline}/*!@textarea*/textarea.sc-ic-classification-banner{overflow:auto}/*!@[type=\"checkbox\"],\n[type=\"radio\"]*/[type=\"checkbox\"].sc-ic-classification-banner,[type=\"radio\"].sc-ic-classification-banner{box-sizing:border-box;padding:0}/*!@[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button*/[type=\"number\"].sc-ic-classification-banner::-webkit-inner-spin-button,[type=\"number\"].sc-ic-classification-banner::-webkit-outer-spin-button{height:auto}/*!@[type=\"search\"]*/[type=\"search\"].sc-ic-classification-banner{-webkit-appearance:textfield;outline-offset:-2px}/*!@[type=\"search\"]::-webkit-search-decoration*/[type=\"search\"].sc-ic-classification-banner::-webkit-search-decoration{-webkit-appearance:none}/*!@::-webkit-file-upload-button*/.sc-ic-classification-banner::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}/*!@details*/details.sc-ic-classification-banner{display:block}/*!@summary*/summary.sc-ic-classification-banner{display:list-item}/*!@template*/template.sc-ic-classification-banner{display:none}/*!@[hidden]*/[hidden].sc-ic-classification-banner{display:none}/*!@html,\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*/html.sc-ic-classification-banner,body.sc-ic-classification-banner,div.sc-ic-classification-banner,span.sc-ic-classification-banner,applet.sc-ic-classification-banner,object.sc-ic-classification-banner,iframe.sc-ic-classification-banner,h1.sc-ic-classification-banner,h2.sc-ic-classification-banner,h3.sc-ic-classification-banner,h4.sc-ic-classification-banner,h5.sc-ic-classification-banner,h6.sc-ic-classification-banner,p.sc-ic-classification-banner,blockquote.sc-ic-classification-banner,pre.sc-ic-classification-banner,a.sc-ic-classification-banner,abbr.sc-ic-classification-banner,acronym.sc-ic-classification-banner,address.sc-ic-classification-banner,big.sc-ic-classification-banner,cite.sc-ic-classification-banner,code.sc-ic-classification-banner,del.sc-ic-classification-banner,dfn.sc-ic-classification-banner,em.sc-ic-classification-banner,img.sc-ic-classification-banner,ins.sc-ic-classification-banner,kbd.sc-ic-classification-banner,q.sc-ic-classification-banner,s.sc-ic-classification-banner,samp.sc-ic-classification-banner,small.sc-ic-classification-banner,strike.sc-ic-classification-banner,strong.sc-ic-classification-banner,sub.sc-ic-classification-banner,sup.sc-ic-classification-banner,tt.sc-ic-classification-banner,var.sc-ic-classification-banner,b.sc-ic-classification-banner,u.sc-ic-classification-banner,i.sc-ic-classification-banner,center.sc-ic-classification-banner,dl.sc-ic-classification-banner,dt.sc-ic-classification-banner,dd.sc-ic-classification-banner,ol.sc-ic-classification-banner,ul.sc-ic-classification-banner,li.sc-ic-classification-banner,fieldset.sc-ic-classification-banner,form.sc-ic-classification-banner,label.sc-ic-classification-banner,legend.sc-ic-classification-banner,table.sc-ic-classification-banner,caption.sc-ic-classification-banner,tbody.sc-ic-classification-banner,tfoot.sc-ic-classification-banner,thead.sc-ic-classification-banner,tr.sc-ic-classification-banner,th.sc-ic-classification-banner,td.sc-ic-classification-banner,article.sc-ic-classification-banner,aside.sc-ic-classification-banner,canvas.sc-ic-classification-banner,details.sc-ic-classification-banner,embed.sc-ic-classification-banner,figure.sc-ic-classification-banner,figcaption.sc-ic-classification-banner,footer.sc-ic-classification-banner,header.sc-ic-classification-banner,hgroup.sc-ic-classification-banner,menu.sc-ic-classification-banner,nav.sc-ic-classification-banner,output.sc-ic-classification-banner,ruby.sc-ic-classification-banner,section.sc-ic-classification-banner,summary.sc-ic-classification-banner,time.sc-ic-classification-banner,mark.sc-ic-classification-banner,audio.sc-ic-classification-banner,video.sc-ic-classification-banner{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}/*!@:host*/.sc-ic-classification-banner-h{position:fixed;left:0;bottom:0;width:100%;height:var(--ic-space-lg);z-index:var(--ic-z-index-classification-banner)}/*!@:host(.inline)*/.inline.sc-ic-classification-banner-h{position:static;left:auto;bottom:auto}/*!@.classification-banner*/.classification-banner.sc-ic-classification-banner{display:flex;flex-direction:row;justify-content:center;align-items:center;padding:var(--ic-space-xxxs) var(--ic-space-md)}/*!@.default*/.default.sc-ic-classification-banner{background-color:var(--ic-classification-not-set);color:var(--ic-classification-not-set-foreground)}/*!@.official,\n.official-sensitive*/.official.sc-ic-classification-banner,.official-sensitive.sc-ic-classification-banner{background-color:var(--ic-classification-official);color:var(--ic-classification-official-foreground)}/*!@.secret*/.secret.sc-ic-classification-banner{background-color:var(--ic-classification-secret);color:var(--ic-classification-secret-foreground)}/*!@.top-secret*/.top-secret.sc-ic-classification-banner{background-color:var(--ic-classification-top-secret);color:var(--ic-classification-top-secret-foreground)}/*!@.offscreen*/.offscreen.sc-ic-classification-banner{position:absolute;left:-9999px;background-color:#fff;color:#000;text-transform:none}@media (forced-colors: active){/*!@.classification-banner*/.classification-banner.sc-ic-classification-banner{border:var(--ic-hc-border)}}";
9898
-
9899
- const classificationText = {
9900
- default: "protective marking not set",
9901
- official: "official",
9902
- "official-sensitive": "official sensitive",
9903
- secret: "secret",
9904
- "top-secret": "top secret",
9905
- };
9906
- class ClassificationBanner {
9907
- constructor(hostRef) {
9908
- registerInstance(this, hostRef);
9909
- this.additionalSelectors = "";
9910
- this.classification = "default";
9911
- this.country = "uk";
9912
- this.inline = false;
9913
- this.upTo = false;
9914
- }
9915
- render() {
9916
- const { classification, inline, country, upTo, additionalSelectors } = this;
9917
- return (hAsync(Host, { class: { ["inline"]: inline } }, hAsync("banner", { "aria-label": "Protective marking", class: {
9918
- ["classification-banner"]: true,
9919
- [`${classification}`]: classification,
9920
- } }, classification !== "default" ? (hAsync("span", { class: "offscreen" }, "The protective marking of this page is:", " ")) : null, hAsync("ic-typography", { variant: "caption-uppercase" }, classification === "default"
9921
- ? classificationText[classification]
9922
- : `${upTo ? "up to" : ""}
9923
- ${country !== "" ? country : ""}
9924
- ${classificationText[classification]}
9925
- ${additionalSelectors !== "" ? additionalSelectors : ""}`))));
9926
- }
9927
- static get style() { return icClassificationBannerCss; }
9928
- static get cmpMeta() { return {
9929
- "$flags$": 9,
9930
- "$tagName$": "ic-classification-banner",
9931
- "$members$": {
9932
- "additionalSelectors": [1, "additional-selectors"],
9933
- "classification": [1],
9934
- "country": [1],
9935
- "inline": [4],
9936
- "upTo": [4, "up-to"]
9937
- },
9938
- "$listeners$": undefined,
9939
- "$lazyBundleId$": "-",
9940
- "$attrsToReflect$": []
9941
- }; }
9942
- }
9943
-
9944
- const icDataEntityCss = "/*!@html*/html.sc-ic-data-entity{line-height:1.15;-webkit-text-size-adjust:100%}/*!@body*/body.sc-ic-data-entity{margin:0}/*!@main*/main.sc-ic-data-entity{display:block}/*!@h1*/h1.sc-ic-data-entity{font-size:2em;margin:0.67em 0}/*!@hr*/hr.sc-ic-data-entity{box-sizing:content-box;height:0;overflow:visible}/*!@pre*/pre.sc-ic-data-entity{font-family:monospace, monospace;font-size:1em}/*!@a*/a.sc-ic-data-entity{background-color:transparent}/*!@abbr[title]*/abbr[title].sc-ic-data-entity{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}/*!@b,\nstrong*/b.sc-ic-data-entity,strong.sc-ic-data-entity{font-weight:bolder}/*!@code,\nkbd,\nsamp*/code.sc-ic-data-entity,kbd.sc-ic-data-entity,samp.sc-ic-data-entity{font-family:monospace, monospace;font-size:1em}/*!@small*/small.sc-ic-data-entity{font-size:80%}/*!@sub,\nsup*/sub.sc-ic-data-entity,sup.sc-ic-data-entity{font-size:75%;line-height:0;position:relative;vertical-align:baseline}/*!@sub*/sub.sc-ic-data-entity{bottom:-0.25em}/*!@sup*/sup.sc-ic-data-entity{top:-0.5em}/*!@img*/img.sc-ic-data-entity{border-style:none}/*!@button,\ninput,\noptgroup,\nselect,\ntextarea*/button.sc-ic-data-entity,input.sc-ic-data-entity,optgroup.sc-ic-data-entity,select.sc-ic-data-entity,textarea.sc-ic-data-entity{font-family:inherit;font-size:100%;line-height:1.15;margin:0}/*!@button,\ninput*/button.sc-ic-data-entity,input.sc-ic-data-entity{overflow:visible}/*!@button,\nselect*/button.sc-ic-data-entity,select.sc-ic-data-entity{text-transform:none}/*!@button,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"]*/button.sc-ic-data-entity,[type=\"button\"].sc-ic-data-entity,[type=\"reset\"].sc-ic-data-entity,[type=\"submit\"].sc-ic-data-entity{-webkit-appearance:button}/*!@button::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner*/button.sc-ic-data-entity::-moz-focus-inner,[type=\"button\"].sc-ic-data-entity::-moz-focus-inner,[type=\"reset\"].sc-ic-data-entity::-moz-focus-inner,[type=\"submit\"].sc-ic-data-entity::-moz-focus-inner{border-style:none;padding:0}/*!@button:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring*/button.sc-ic-data-entity:-moz-focusring,[type=\"button\"].sc-ic-data-entity:-moz-focusring,[type=\"reset\"].sc-ic-data-entity:-moz-focusring,[type=\"submit\"].sc-ic-data-entity:-moz-focusring{outline:1px dotted ButtonText}/*!@fieldset*/fieldset.sc-ic-data-entity{padding:0.35em 0.75em 0.625em}/*!@legend*/legend.sc-ic-data-entity{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}/*!@progress*/progress.sc-ic-data-entity{vertical-align:baseline}/*!@textarea*/textarea.sc-ic-data-entity{overflow:auto}/*!@[type=\"checkbox\"],\n[type=\"radio\"]*/[type=\"checkbox\"].sc-ic-data-entity,[type=\"radio\"].sc-ic-data-entity{box-sizing:border-box;padding:0}/*!@[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button*/[type=\"number\"].sc-ic-data-entity::-webkit-inner-spin-button,[type=\"number\"].sc-ic-data-entity::-webkit-outer-spin-button{height:auto}/*!@[type=\"search\"]*/[type=\"search\"].sc-ic-data-entity{-webkit-appearance:textfield;outline-offset:-2px}/*!@[type=\"search\"]::-webkit-search-decoration*/[type=\"search\"].sc-ic-data-entity::-webkit-search-decoration{-webkit-appearance:none}/*!@::-webkit-file-upload-button*/.sc-ic-data-entity::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}/*!@details*/details.sc-ic-data-entity{display:block}/*!@summary*/summary.sc-ic-data-entity{display:list-item}/*!@template*/template.sc-ic-data-entity{display:none}/*!@[hidden]*/[hidden].sc-ic-data-entity{display:none}/*!@html,\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*/html.sc-ic-data-entity,body.sc-ic-data-entity,div.sc-ic-data-entity,span.sc-ic-data-entity,applet.sc-ic-data-entity,object.sc-ic-data-entity,iframe.sc-ic-data-entity,h1.sc-ic-data-entity,h2.sc-ic-data-entity,h3.sc-ic-data-entity,h4.sc-ic-data-entity,h5.sc-ic-data-entity,h6.sc-ic-data-entity,p.sc-ic-data-entity,blockquote.sc-ic-data-entity,pre.sc-ic-data-entity,a.sc-ic-data-entity,abbr.sc-ic-data-entity,acronym.sc-ic-data-entity,address.sc-ic-data-entity,big.sc-ic-data-entity,cite.sc-ic-data-entity,code.sc-ic-data-entity,del.sc-ic-data-entity,dfn.sc-ic-data-entity,em.sc-ic-data-entity,img.sc-ic-data-entity,ins.sc-ic-data-entity,kbd.sc-ic-data-entity,q.sc-ic-data-entity,s.sc-ic-data-entity,samp.sc-ic-data-entity,small.sc-ic-data-entity,strike.sc-ic-data-entity,strong.sc-ic-data-entity,sub.sc-ic-data-entity,sup.sc-ic-data-entity,tt.sc-ic-data-entity,var.sc-ic-data-entity,b.sc-ic-data-entity,u.sc-ic-data-entity,i.sc-ic-data-entity,center.sc-ic-data-entity,dl.sc-ic-data-entity,dt.sc-ic-data-entity,dd.sc-ic-data-entity,ol.sc-ic-data-entity,ul.sc-ic-data-entity,li.sc-ic-data-entity,fieldset.sc-ic-data-entity,form.sc-ic-data-entity,label.sc-ic-data-entity,legend.sc-ic-data-entity,table.sc-ic-data-entity,caption.sc-ic-data-entity,tbody.sc-ic-data-entity,tfoot.sc-ic-data-entity,thead.sc-ic-data-entity,tr.sc-ic-data-entity,th.sc-ic-data-entity,td.sc-ic-data-entity,article.sc-ic-data-entity,aside.sc-ic-data-entity,canvas.sc-ic-data-entity,details.sc-ic-data-entity,embed.sc-ic-data-entity,figure.sc-ic-data-entity,figcaption.sc-ic-data-entity,footer.sc-ic-data-entity,header.sc-ic-data-entity,hgroup.sc-ic-data-entity,menu.sc-ic-data-entity,nav.sc-ic-data-entity,output.sc-ic-data-entity,ruby.sc-ic-data-entity,section.sc-ic-data-entity,summary.sc-ic-data-entity,time.sc-ic-data-entity,mark.sc-ic-data-entity,audio.sc-ic-data-entity,video.sc-ic-data-entity{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}/*!@:host*/.sc-ic-data-entity-h{display:block}/*!@.rows*/.rows.sc-ic-data-entity{display:flex;flex-direction:column;gap:var(--ic-space-md)}/*!@:host(.small) .rows*/.small.sc-ic-data-entity-h .rows.sc-ic-data-entity{gap:var(--ic-space-xs)}/*!@.divider*/.divider.sc-ic-data-entity{margin-top:var(--ic-space-lg);margin-bottom:var(--ic-space-md);height:var(--ic-border-width);background-color:var(--ic-architectural-300)}/*!@:host(.small) .divider*/.small.sc-ic-data-entity-h .divider.sc-ic-data-entity{margin-top:var(--ic-space-sm);margin-bottom:var(--ic-space-xs)}@media (forced-colors: active){/*!@.divider*/.divider.sc-ic-data-entity{background-color:canvastext}}";
9945
-
9946
- /**
9947
- * @slot heading - Content will be placed at the top of the data entity.
9948
- */
9949
- class DataEntity {
9950
- constructor(hostRef) {
9951
- registerInstance(this, hostRef);
9952
- this.heading = undefined;
9953
- this.size = "default";
9954
- this.small = false;
9955
- }
9956
- render() {
9957
- const { el, heading, small, size } = this;
9958
- if (small || size === "small") {
9959
- Array.from(el.children).forEach((child) => child.setAttribute("size", "small"));
9960
- }
9961
- return (hAsync(Host, { class: { small: small || size === "small" } }, hAsync("div", { class: "heading", id: "data-entity-heading" }, hAsync("slot", { name: "heading" }, hAsync("ic-typography", { variant: "h3" }, heading))), hAsync("div", { class: "divider" }), hAsync("ul", { "aria-labelledby": "data-entity-heading", class: "rows" }, hAsync("slot", null))));
9962
- }
9963
- get el() { return getElement(this); }
9964
- static get style() { return icDataEntityCss; }
10209
+ static get watchers() { return {
10210
+ "indeterminate": ["watchIndeterminateHandler"]
10211
+ }; }
10212
+ static get style() { return icCheckboxCss; }
9965
10213
  static get cmpMeta() { return {
9966
- "$flags$": 9,
9967
- "$tagName$": "ic-data-entity",
10214
+ "$flags$": 25,
10215
+ "$tagName$": "ic-checkbox",
9968
10216
  "$members$": {
9969
- "heading": [1],
10217
+ "additionalFieldDisplay": [513, "additional-field-display"],
10218
+ "checked": [1540],
10219
+ "disabled": [4],
10220
+ "dynamicText": [1, "dynamic-text"],
10221
+ "form": [1],
10222
+ "formaction": [1],
10223
+ "formenctype": [1],
10224
+ "formmethod": [1],
10225
+ "formnovalidate": [4],
10226
+ "formtarget": [1],
10227
+ "groupLabel": [1025, "group-label"],
10228
+ "indeterminate": [4],
10229
+ "label": [1],
10230
+ "name": [1025],
10231
+ "nativeIndeterminateBehaviour": [4, "native-indeterminate-behaviour"],
9970
10232
  "size": [1],
9971
- "small": [4]
10233
+ "small": [4],
10234
+ "value": [1],
10235
+ "hideLabel": [4, "hide-label"],
10236
+ "initiallyChecked": [32],
10237
+ "displayIndeterminate": [32],
10238
+ "setFocus": [64]
9972
10239
  },
9973
10240
  "$listeners$": undefined,
9974
10241
  "$lazyBundleId$": "-",
9975
- "$attrsToReflect$": []
10242
+ "$attrsToReflect$": [["additionalFieldDisplay", "additional-field-display"], ["checked", "checked"]]
9976
10243
  }; }
9977
10244
  }
9978
10245
 
9979
- const icDataRowCss = "/*!@html*/html.sc-ic-data-row{line-height:1.15;-webkit-text-size-adjust:100%}/*!@body*/body.sc-ic-data-row{margin:0}/*!@main*/main.sc-ic-data-row{display:block}/*!@h1*/h1.sc-ic-data-row{font-size:2em;margin:0.67em 0}/*!@hr*/hr.sc-ic-data-row{box-sizing:content-box;height:0;overflow:visible}/*!@pre*/pre.sc-ic-data-row{font-family:monospace, monospace;font-size:1em}/*!@a*/a.sc-ic-data-row{background-color:transparent}/*!@abbr[title]*/abbr[title].sc-ic-data-row{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}/*!@b,\nstrong*/b.sc-ic-data-row,strong.sc-ic-data-row{font-weight:bolder}/*!@code,\nkbd,\nsamp*/code.sc-ic-data-row,kbd.sc-ic-data-row,samp.sc-ic-data-row{font-family:monospace, monospace;font-size:1em}/*!@small*/small.sc-ic-data-row{font-size:80%}/*!@sub,\nsup*/sub.sc-ic-data-row,sup.sc-ic-data-row{font-size:75%;line-height:0;position:relative;vertical-align:baseline}/*!@sub*/sub.sc-ic-data-row{bottom:-0.25em}/*!@sup*/sup.sc-ic-data-row{top:-0.5em}/*!@img*/img.sc-ic-data-row{border-style:none}/*!@button,\ninput,\noptgroup,\nselect,\ntextarea*/button.sc-ic-data-row,input.sc-ic-data-row,optgroup.sc-ic-data-row,select.sc-ic-data-row,textarea.sc-ic-data-row{font-family:inherit;font-size:100%;line-height:1.15;margin:0}/*!@button,\ninput*/button.sc-ic-data-row,input.sc-ic-data-row{overflow:visible}/*!@button,\nselect*/button.sc-ic-data-row,select.sc-ic-data-row{text-transform:none}/*!@button,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"]*/button.sc-ic-data-row,[type=\"button\"].sc-ic-data-row,[type=\"reset\"].sc-ic-data-row,[type=\"submit\"].sc-ic-data-row{-webkit-appearance:button}/*!@button::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner*/button.sc-ic-data-row::-moz-focus-inner,[type=\"button\"].sc-ic-data-row::-moz-focus-inner,[type=\"reset\"].sc-ic-data-row::-moz-focus-inner,[type=\"submit\"].sc-ic-data-row::-moz-focus-inner{border-style:none;padding:0}/*!@button:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring*/button.sc-ic-data-row:-moz-focusring,[type=\"button\"].sc-ic-data-row:-moz-focusring,[type=\"reset\"].sc-ic-data-row:-moz-focusring,[type=\"submit\"].sc-ic-data-row:-moz-focusring{outline:1px dotted ButtonText}/*!@fieldset*/fieldset.sc-ic-data-row{padding:0.35em 0.75em 0.625em}/*!@legend*/legend.sc-ic-data-row{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}/*!@progress*/progress.sc-ic-data-row{vertical-align:baseline}/*!@textarea*/textarea.sc-ic-data-row{overflow:auto}/*!@[type=\"checkbox\"],\n[type=\"radio\"]*/[type=\"checkbox\"].sc-ic-data-row,[type=\"radio\"].sc-ic-data-row{box-sizing:border-box;padding:0}/*!@[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button*/[type=\"number\"].sc-ic-data-row::-webkit-inner-spin-button,[type=\"number\"].sc-ic-data-row::-webkit-outer-spin-button{height:auto}/*!@[type=\"search\"]*/[type=\"search\"].sc-ic-data-row{-webkit-appearance:textfield;outline-offset:-2px}/*!@[type=\"search\"]::-webkit-search-decoration*/[type=\"search\"].sc-ic-data-row::-webkit-search-decoration{-webkit-appearance:none}/*!@::-webkit-file-upload-button*/.sc-ic-data-row::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}/*!@details*/details.sc-ic-data-row{display:block}/*!@summary*/summary.sc-ic-data-row{display:list-item}/*!@template*/template.sc-ic-data-row{display:none}/*!@[hidden]*/[hidden].sc-ic-data-row{display:none}/*!@html,\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*/html.sc-ic-data-row,body.sc-ic-data-row,div.sc-ic-data-row,span.sc-ic-data-row,applet.sc-ic-data-row,object.sc-ic-data-row,iframe.sc-ic-data-row,h1.sc-ic-data-row,h2.sc-ic-data-row,h3.sc-ic-data-row,h4.sc-ic-data-row,h5.sc-ic-data-row,h6.sc-ic-data-row,p.sc-ic-data-row,blockquote.sc-ic-data-row,pre.sc-ic-data-row,a.sc-ic-data-row,abbr.sc-ic-data-row,acronym.sc-ic-data-row,address.sc-ic-data-row,big.sc-ic-data-row,cite.sc-ic-data-row,code.sc-ic-data-row,del.sc-ic-data-row,dfn.sc-ic-data-row,em.sc-ic-data-row,img.sc-ic-data-row,ins.sc-ic-data-row,kbd.sc-ic-data-row,q.sc-ic-data-row,s.sc-ic-data-row,samp.sc-ic-data-row,small.sc-ic-data-row,strike.sc-ic-data-row,strong.sc-ic-data-row,sub.sc-ic-data-row,sup.sc-ic-data-row,tt.sc-ic-data-row,var.sc-ic-data-row,b.sc-ic-data-row,u.sc-ic-data-row,i.sc-ic-data-row,center.sc-ic-data-row,dl.sc-ic-data-row,dt.sc-ic-data-row,dd.sc-ic-data-row,ol.sc-ic-data-row,ul.sc-ic-data-row,li.sc-ic-data-row,fieldset.sc-ic-data-row,form.sc-ic-data-row,label.sc-ic-data-row,legend.sc-ic-data-row,table.sc-ic-data-row,caption.sc-ic-data-row,tbody.sc-ic-data-row,tfoot.sc-ic-data-row,thead.sc-ic-data-row,tr.sc-ic-data-row,th.sc-ic-data-row,td.sc-ic-data-row,article.sc-ic-data-row,aside.sc-ic-data-row,canvas.sc-ic-data-row,details.sc-ic-data-row,embed.sc-ic-data-row,figure.sc-ic-data-row,figcaption.sc-ic-data-row,footer.sc-ic-data-row,header.sc-ic-data-row,hgroup.sc-ic-data-row,menu.sc-ic-data-row,nav.sc-ic-data-row,output.sc-ic-data-row,ruby.sc-ic-data-row,section.sc-ic-data-row,summary.sc-ic-data-row,time.sc-ic-data-row,mark.sc-ic-data-row,audio.sc-ic-data-row,video.sc-ic-data-row{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}/*!@:host*/.sc-ic-data-row-h{position:relative;display:block}/*!@.data*/.data.sc-ic-data-row{display:flex;align-items:center}/*!@.text-cells*/.text-cells.sc-ic-data-row{display:flex;flex-grow:1;min-width:0}/*!@.label*/.label.sc-ic-data-row{width:12.5rem;min-width:12.5rem;margin-right:var(--ic-space-md);color:var(--ic-color-tertiary-text)}/*!@.value*/.value.sc-ic-data-row{flex-grow:1}/*!@slot[name=\"value\"]::slotted(ic-text-field[readonly][hide-label])*/slot[name=\"value\"].sc-ic-data-row-s>ic-text-field[readonly][hide-label]{margin-top:calc(var(--ic-space-xs) * -1)}/*!@slot[name=\"value\"]::slotted(ic-text-field[small][readonly][hide-label])*/slot[name=\"value\"].sc-ic-data-row-s>ic-text-field[small][readonly][hide-label]{margin-top:calc(var(--ic-space-xxs) * -1)}/*!@slot[name=\"value\"]::slotted(ic-text-field[readonly][hide-label][rows])*/slot[name=\"value\"].sc-ic-data-row-s>ic-text-field[readonly][hide-label][rows]{margin-top:calc(var(--ic-space-xxs) * -1 - var(--ic-space-xxxs))}/*!@.end-component*/.end-component.sc-ic-data-row{width:-moz-fit-content;width:fit-content;margin-left:3.5rem}/*!@.divider*/.divider.sc-ic-data-row{margin-top:var(--ic-space-md);height:var(--ic-border-width);background-color:var(--ic-architectural-300)}/*!@:host(.small) .divider*/.small.sc-ic-data-row-h .divider.sc-ic-data-row{margin-top:var(--ic-space-xs)}/*!@:host(.breakpoint-medium) .label*/.breakpoint-medium.sc-ic-data-row-h .label.sc-ic-data-row{width:10rem;min-width:10rem}/*!@:host(.breakpoint-xs) .text-cells*/.breakpoint-xs.sc-ic-data-row-h .text-cells.sc-ic-data-row{flex-direction:column}/*!@:host(.breakpoint-xs) .label*/.breakpoint-xs.sc-ic-data-row-h .label.sc-ic-data-row{width:8rem;margin-bottom:var(--ic-space-xs)}/*!@:host(.breakpoint-xs) .value*/.breakpoint-xs.sc-ic-data-row-h .value.sc-ic-data-row{max-width:95%}/*!@:host(.breakpoint-xs) .end-component*/.breakpoint-xs.sc-ic-data-row-h .end-component.sc-ic-data-row{margin-left:0}@media (forced-colors: active){/*!@.divider*/.divider.sc-ic-data-row{background-color:canvastext}}";
10246
+ const icCheckboxGroupCss = "/*!@html*/html.sc-ic-checkbox-group{line-height:1.15;-webkit-text-size-adjust:100%}/*!@body*/body.sc-ic-checkbox-group{margin:0}/*!@main*/main.sc-ic-checkbox-group{display:block}/*!@h1*/h1.sc-ic-checkbox-group{font-size:2em;margin:0.67em 0}/*!@hr*/hr.sc-ic-checkbox-group{box-sizing:content-box;height:0;overflow:visible}/*!@pre*/pre.sc-ic-checkbox-group{font-family:monospace, monospace;font-size:1em}/*!@a*/a.sc-ic-checkbox-group{background-color:transparent}/*!@abbr[title]*/abbr[title].sc-ic-checkbox-group{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}/*!@b,\nstrong*/b.sc-ic-checkbox-group,strong.sc-ic-checkbox-group{font-weight:bolder}/*!@code,\nkbd,\nsamp*/code.sc-ic-checkbox-group,kbd.sc-ic-checkbox-group,samp.sc-ic-checkbox-group{font-family:monospace, monospace;font-size:1em}/*!@small*/small.sc-ic-checkbox-group{font-size:80%}/*!@sub,\nsup*/sub.sc-ic-checkbox-group,sup.sc-ic-checkbox-group{font-size:75%;line-height:0;position:relative;vertical-align:baseline}/*!@sub*/sub.sc-ic-checkbox-group{bottom:-0.25em}/*!@sup*/sup.sc-ic-checkbox-group{top:-0.5em}/*!@img*/img.sc-ic-checkbox-group{border-style:none}/*!@button,\ninput,\noptgroup,\nselect,\ntextarea*/button.sc-ic-checkbox-group,input.sc-ic-checkbox-group,optgroup.sc-ic-checkbox-group,select.sc-ic-checkbox-group,textarea.sc-ic-checkbox-group{font-family:inherit;font-size:100%;line-height:1.15;margin:0}/*!@button,\ninput*/button.sc-ic-checkbox-group,input.sc-ic-checkbox-group{overflow:visible}/*!@button,\nselect*/button.sc-ic-checkbox-group,select.sc-ic-checkbox-group{text-transform:none}/*!@button,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"]*/button.sc-ic-checkbox-group,[type=\"button\"].sc-ic-checkbox-group,[type=\"reset\"].sc-ic-checkbox-group,[type=\"submit\"].sc-ic-checkbox-group{-webkit-appearance:button}/*!@button::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner*/button.sc-ic-checkbox-group::-moz-focus-inner,[type=\"button\"].sc-ic-checkbox-group::-moz-focus-inner,[type=\"reset\"].sc-ic-checkbox-group::-moz-focus-inner,[type=\"submit\"].sc-ic-checkbox-group::-moz-focus-inner{border-style:none;padding:0}/*!@button:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring*/button.sc-ic-checkbox-group:-moz-focusring,[type=\"button\"].sc-ic-checkbox-group:-moz-focusring,[type=\"reset\"].sc-ic-checkbox-group:-moz-focusring,[type=\"submit\"].sc-ic-checkbox-group:-moz-focusring{outline:1px dotted ButtonText}/*!@fieldset*/fieldset.sc-ic-checkbox-group{padding:0.35em 0.75em 0.625em}/*!@legend*/legend.sc-ic-checkbox-group{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}/*!@progress*/progress.sc-ic-checkbox-group{vertical-align:baseline}/*!@textarea*/textarea.sc-ic-checkbox-group{overflow:auto}/*!@[type=\"checkbox\"],\n[type=\"radio\"]*/[type=\"checkbox\"].sc-ic-checkbox-group,[type=\"radio\"].sc-ic-checkbox-group{box-sizing:border-box;padding:0}/*!@[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button*/[type=\"number\"].sc-ic-checkbox-group::-webkit-inner-spin-button,[type=\"number\"].sc-ic-checkbox-group::-webkit-outer-spin-button{height:auto}/*!@[type=\"search\"]*/[type=\"search\"].sc-ic-checkbox-group{-webkit-appearance:textfield;outline-offset:-2px}/*!@[type=\"search\"]::-webkit-search-decoration*/[type=\"search\"].sc-ic-checkbox-group::-webkit-search-decoration{-webkit-appearance:none}/*!@::-webkit-file-upload-button*/.sc-ic-checkbox-group::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}/*!@details*/details.sc-ic-checkbox-group{display:block}/*!@summary*/summary.sc-ic-checkbox-group{display:list-item}/*!@template*/template.sc-ic-checkbox-group{display:none}/*!@[hidden]*/[hidden].sc-ic-checkbox-group{display:none}/*!@html,\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*/html.sc-ic-checkbox-group,body.sc-ic-checkbox-group,div.sc-ic-checkbox-group,span.sc-ic-checkbox-group,applet.sc-ic-checkbox-group,object.sc-ic-checkbox-group,iframe.sc-ic-checkbox-group,h1.sc-ic-checkbox-group,h2.sc-ic-checkbox-group,h3.sc-ic-checkbox-group,h4.sc-ic-checkbox-group,h5.sc-ic-checkbox-group,h6.sc-ic-checkbox-group,p.sc-ic-checkbox-group,blockquote.sc-ic-checkbox-group,pre.sc-ic-checkbox-group,a.sc-ic-checkbox-group,abbr.sc-ic-checkbox-group,acronym.sc-ic-checkbox-group,address.sc-ic-checkbox-group,big.sc-ic-checkbox-group,cite.sc-ic-checkbox-group,code.sc-ic-checkbox-group,del.sc-ic-checkbox-group,dfn.sc-ic-checkbox-group,em.sc-ic-checkbox-group,img.sc-ic-checkbox-group,ins.sc-ic-checkbox-group,kbd.sc-ic-checkbox-group,q.sc-ic-checkbox-group,s.sc-ic-checkbox-group,samp.sc-ic-checkbox-group,small.sc-ic-checkbox-group,strike.sc-ic-checkbox-group,strong.sc-ic-checkbox-group,sub.sc-ic-checkbox-group,sup.sc-ic-checkbox-group,tt.sc-ic-checkbox-group,var.sc-ic-checkbox-group,b.sc-ic-checkbox-group,u.sc-ic-checkbox-group,i.sc-ic-checkbox-group,center.sc-ic-checkbox-group,dl.sc-ic-checkbox-group,dt.sc-ic-checkbox-group,dd.sc-ic-checkbox-group,ol.sc-ic-checkbox-group,ul.sc-ic-checkbox-group,li.sc-ic-checkbox-group,fieldset.sc-ic-checkbox-group,form.sc-ic-checkbox-group,label.sc-ic-checkbox-group,legend.sc-ic-checkbox-group,table.sc-ic-checkbox-group,caption.sc-ic-checkbox-group,tbody.sc-ic-checkbox-group,tfoot.sc-ic-checkbox-group,thead.sc-ic-checkbox-group,tr.sc-ic-checkbox-group,th.sc-ic-checkbox-group,td.sc-ic-checkbox-group,article.sc-ic-checkbox-group,aside.sc-ic-checkbox-group,canvas.sc-ic-checkbox-group,details.sc-ic-checkbox-group,embed.sc-ic-checkbox-group,figure.sc-ic-checkbox-group,figcaption.sc-ic-checkbox-group,footer.sc-ic-checkbox-group,header.sc-ic-checkbox-group,hgroup.sc-ic-checkbox-group,menu.sc-ic-checkbox-group,nav.sc-ic-checkbox-group,output.sc-ic-checkbox-group,ruby.sc-ic-checkbox-group,section.sc-ic-checkbox-group,summary.sc-ic-checkbox-group,time.sc-ic-checkbox-group,mark.sc-ic-checkbox-group,audio.sc-ic-checkbox-group,video.sc-ic-checkbox-group{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}/*!@:host*/.sc-ic-checkbox-group-h{display:block}/*!@ic-input-label.error*/ic-input-label.error.sc-ic-checkbox-group{color:var(--ic-status-error)}/*!@ic-input-label ic-typography*/ic-input-label.sc-ic-checkbox-group ic-typography.sc-ic-checkbox-group{margin-bottom:var(--ic-space-sm)}/*!@:host(.small) ic-input-label ic-typography*/.small.sc-ic-checkbox-group-h ic-input-label.sc-ic-checkbox-group ic-typography.sc-ic-checkbox-group{margin-bottom:calc(var(--ic-space-sm) / 2)}/*!@ic-input-validation*/ic-input-validation.sc-ic-checkbox-group{margin-top:var(--ic-space-sm)}/*!@:host(.small) ic-input-validation*/.small.sc-ic-checkbox-group-h ic-input-validation.sc-ic-checkbox-group{margin-top:calc(var(--ic-space-sm) / 2)}/*!@.checkboxes-container*/.checkboxes-container.sc-ic-checkbox-group{margin-bottom:calc(-1 * var(--ic-space-xxs))}/*!@:host(.small) .checkboxes-container*/.small.sc-ic-checkbox-group-h .checkboxes-container.sc-ic-checkbox-group{margin-bottom:calc(-1 * var(--ic-space-xxxs))}/*!@.screen-reader-only-text*/.screen-reader-only-text.sc-ic-checkbox-group{position:absolute;left:-9999px;background-color:#fff;color:#000;text-transform:none}";
9980
10247
 
9981
- /**
9982
- * @slot label - Content will be rendered in the leftmost cell.
9983
- * @slot value - Content will be rendered to the right of the label.
9984
- * @slot end-component - Content will be displayed in the rightmost cell.
9985
- */
9986
- class DataRow {
10248
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
10249
+ class CheckboxGroup {
9987
10250
  constructor(hostRef) {
9988
10251
  registerInstance(this, hostRef);
9989
- this.hasEndComponent = false;
9990
- this.resizeObserver = null;
9991
- this.runResizeObserver = () => {
9992
- this.resizeObserver = new ResizeObserver(() => {
9993
- this.checkLabelAbove();
9994
- });
9995
- this.resizeObserver.observe(this.el);
9996
- };
9997
- this.renderCellContent = (cell) => {
9998
- const isValue = cell === "value";
9999
- return (hAsync("div", { class: cell }, isSlotUsed$1(this.el, cell) ? (hAsync("slot", { name: cell })) : (hAsync("ic-typography", { variant: isValue
10000
- ? "body"
10001
- : this.entitySize === "xs"
10002
- ? "label"
10003
- : "subtitle-large" }, isValue ? this.value : this.label))));
10004
- };
10005
- this.deviceSize = DEVICE_SIZES.XL;
10006
- this.entitySize = undefined;
10252
+ this.icChange = createEvent(this, "icChange", 7);
10253
+ this.disabled = false;
10254
+ this.helperText = "";
10255
+ this.hideLabel = false;
10007
10256
  this.label = undefined;
10257
+ this.name = undefined;
10258
+ this.required = false;
10008
10259
  this.size = "default";
10009
10260
  this.small = false;
10010
- this.value = undefined;
10261
+ this.validationStatus = "";
10262
+ this.validationText = "";
10011
10263
  }
10012
- disconnectedCallback() {
10013
- var _a;
10014
- (_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
10264
+ labelNameHandler(newValue, oldValue, propName) {
10265
+ Array.from(this.el.querySelectorAll("ic-checkbox")).forEach((checkbox) => {
10266
+ if (propName === "label")
10267
+ checkbox.groupLabel = newValue;
10268
+ else if (checkbox.name === oldValue) {
10269
+ // If the checkbox name has been set by the parent, then override it
10270
+ checkbox.name = newValue;
10271
+ }
10272
+ });
10273
+ }
10274
+ handleChange(ev) {
10275
+ //don't pass on the event if it has come from slotted text field
10276
+ //otherwise any icChange handler bound to the checkbox group will also run
10277
+ if (ev.target.tagName === "IC-TEXT-FIELD") {
10278
+ ev.stopImmediatePropagation();
10279
+ }
10015
10280
  }
10016
10281
  componentWillLoad() {
10017
- this.deviceSize = getCurrentDeviceSize();
10018
- this.hasEndComponent = slotHasContent(this.el, "end-component");
10019
- this.checkLabelAbove();
10282
+ removeDisabledFalse$1(this.disabled, this.el);
10020
10283
  }
10021
10284
  componentDidLoad() {
10022
- checkResizeObserver$1(this.runResizeObserver);
10023
- if (this.hasEndComponent)
10024
- this.labelEndComponent();
10025
- }
10026
- checkLabelAbove() {
10027
- var _a;
10028
- const rowSize = ((_a = this.el.shadowRoot.querySelector(".data")) === null || _a === void 0 ? void 0 : _a.clientWidth) + 46;
10029
- if (rowSize) {
10030
- this.entitySize =
10031
- rowSize < DEVICE_SIZES.S ? "xs" : rowSize < DEVICE_SIZES.M ? "m" : "xl";
10032
- }
10285
+ onComponentRequiredPropUndefined$1([
10286
+ { prop: this.label, propName: "label" },
10287
+ { prop: this.name, propName: "name" },
10288
+ ], "Checkbox Group");
10033
10289
  }
10034
- labelEndComponent() {
10035
- this.el.shadowRoot
10036
- .querySelectorAll("slot[name=end-component]")
10037
- .forEach((child) => child.setAttribute("aria-label", `for ${this.label} row`));
10290
+ selectHandler({ target }) {
10291
+ const checkedOptions = Array.from(this.el.querySelectorAll("ic-checkbox")).filter(({ checked, disabled }) => checked && !disabled);
10292
+ this.icChange.emit({
10293
+ value: checkedOptions.map(({ value }) => value),
10294
+ checkedOptions: checkedOptions.map((opt) => {
10295
+ var _a;
10296
+ return ({
10297
+ checkbox: opt,
10298
+ textFieldValue: (_a = opt.querySelector("ic-text-field")) === null || _a === void 0 ? void 0 : _a.value,
10299
+ });
10300
+ }),
10301
+ selectedOption: target,
10302
+ });
10038
10303
  }
10039
10304
  render() {
10040
- const { el, entitySize, hasEndComponent, label, renderCellContent, size, small, value, } = this;
10041
- return (hAsync(Host, { class: {
10042
- ["small"]: small || size === "small",
10043
- ["breakpoint-medium"]: entitySize === "m",
10044
- ["breakpoint-xs"]: entitySize === "xs",
10045
- }, role: "listitem" }, hAsync("div", { class: "data" }, hAsync("div", { class: "text-cells" }, (isSlotUsed$1(el, "label") || label) && renderCellContent("label"), (isSlotUsed$1(el, "value") || value) && renderCellContent("value")), hasEndComponent && (hAsync("div", { class: "end-component" }, hAsync("slot", { name: "end-component" })))), hAsync("div", { class: "divider" })));
10305
+ const { disabled, helperText, hideLabel, label, name, required, size, small, validationStatus, validationText, } = this;
10306
+ const describedBy = getInputDescribedByText$1(name, helperText !== "", validationStatus !== "");
10307
+ return (hAsync(Host, { class: { ["small"]: small, [`${size}`]: true } }, (validationStatus === "error" || required || hideLabel) && (hAsync("span", { id: "screenReaderOnlyText", class: "screen-reader-only-text", "aria-hidden": "true" }, label, " ", validationStatus === "error" ? "invalid data " : null, " ", required ? "required" : null)), hAsync("fieldset", { id: name, "aria-labelledby": `${validationStatus === "error" || required || hideLabel
10308
+ ? "screenReaderOnlyText"
10309
+ : ""} ${describedBy}`.trim(), disabled: disabled }, !hideLabel && (hAsync("legend", null, hAsync("ic-input-label", { class: { [`${validationStatus}`]: true }, label: label, helperText: helperText, required: required, disabled: disabled, for: name }))), hAsync("div", { class: "checkboxes-container" }, hAsync("slot", null))), hasValidationStatus$1(validationStatus, disabled) && (hAsync("ic-input-validation", { for: name, ariaLiveMode: "polite", status: validationStatus, message: validationText }))));
10046
10310
  }
10047
10311
  get el() { return getElement(this); }
10048
- static get style() { return icDataRowCss; }
10312
+ static get watchers() { return {
10313
+ "label": ["labelNameHandler"],
10314
+ "name": ["labelNameHandler"]
10315
+ }; }
10316
+ static get style() { return icCheckboxGroupCss; }
10049
10317
  static get cmpMeta() { return {
10050
10318
  "$flags$": 9,
10051
- "$tagName$": "ic-data-row",
10319
+ "$tagName$": "ic-checkbox-group",
10052
10320
  "$members$": {
10321
+ "disabled": [4],
10322
+ "helperText": [1, "helper-text"],
10323
+ "hideLabel": [4, "hide-label"],
10053
10324
  "label": [1],
10325
+ "name": [1],
10326
+ "required": [4],
10054
10327
  "size": [1],
10055
10328
  "small": [4],
10056
- "value": [1],
10057
- "deviceSize": [32],
10058
- "entitySize": [32]
10059
- },
10060
- "$listeners$": undefined,
10061
- "$lazyBundleId$": "-",
10062
- "$attrsToReflect$": []
10063
- }; }
10064
- }
10065
-
10066
- var unsortedIcon = `<svg focusable="false" aria-hidden="true" viewBox="0 0 24 24">
10067
- <path d="M9 3 5 6.99h3V14h2V6.99h3L9 3zm7 14.01V10h-2v7.01h-3L15 21l4-3.99h-3z"></path>
10068
- </svg>`;
10069
-
10070
- var ascendingIcon = `<svg focusable="false" aria-hidden="true" viewBox="0 0 24 24" style="transform: rotate(-90deg);">
10071
- <path d="M16.01 11H4v2h12.01v3L20 12l-3.99-4z"></path>
10072
- </svg>`;
10073
-
10074
- var descendingIcon = `<svg focusable="false" aria-hidden="true" viewBox="0 0 24 24" style="transform: rotate(90deg)">
10075
- <path d="M16.01 11H4v2h12.01v3L20 12l-3.99-4z"></path>
10076
- </svg>`;
10077
-
10078
- // Global ARIA attributes
10079
- const IC_INHERITED_ARIA = [
10080
- "aria-atomic",
10081
- "aria-autocomplete",
10082
- "aria-busy",
10083
- "aria-controls",
10084
- "aria-current",
10085
- "aria-describedby",
10086
- "aria-description",
10087
- "aria-details",
10088
- "aria-disabled",
10089
- "aria-dropeffect",
10090
- "aria-errormessage",
10091
- "aria-expanded",
10092
- "aria-flowto",
10093
- "aria-grabbed",
10094
- "aria-haspopup",
10095
- "aria-hidden",
10096
- "aria-invalid",
10097
- "aria-keyshortcuts",
10098
- "aria-label",
10099
- "aria-labelledby",
10100
- "aria-live",
10101
- "aria-owns",
10102
- "aria-relevant",
10103
- "aria-roledescription",
10104
- ];
10105
-
10106
- var IcInformationStatus;
10107
- (function (IcInformationStatus) {
10108
- IcInformationStatus["Warning"] = "warning";
10109
- IcInformationStatus["Error"] = "error";
10110
- IcInformationStatus["Success"] = "success";
10111
- })(IcInformationStatus || (IcInformationStatus = {}));
10112
- var IcThemeForegroundEnum;
10113
- (function (IcThemeForegroundEnum) {
10114
- IcThemeForegroundEnum["Default"] = "default";
10115
- IcThemeForegroundEnum["Dark"] = "dark";
10116
- IcThemeForegroundEnum["Light"] = "light";
10117
- })(IcThemeForegroundEnum || (IcThemeForegroundEnum = {}));
10118
- var IcDateInputMonths;
10119
- (function (IcDateInputMonths) {
10120
- IcDateInputMonths[IcDateInputMonths["January"] = 0] = "January";
10121
- IcDateInputMonths[IcDateInputMonths["February"] = 1] = "February";
10122
- IcDateInputMonths[IcDateInputMonths["March"] = 2] = "March";
10123
- IcDateInputMonths[IcDateInputMonths["April"] = 3] = "April";
10124
- IcDateInputMonths[IcDateInputMonths["May"] = 4] = "May";
10125
- IcDateInputMonths[IcDateInputMonths["June"] = 5] = "June";
10126
- IcDateInputMonths[IcDateInputMonths["July"] = 6] = "July";
10127
- IcDateInputMonths[IcDateInputMonths["August"] = 7] = "August";
10128
- IcDateInputMonths[IcDateInputMonths["September"] = 8] = "September";
10129
- IcDateInputMonths[IcDateInputMonths["October"] = 9] = "October";
10130
- IcDateInputMonths[IcDateInputMonths["November"] = 10] = "November";
10131
- IcDateInputMonths[IcDateInputMonths["December"] = 11] = "December";
10132
- })(IcDateInputMonths || (IcDateInputMonths = {}));
10133
- var IcShortDayNames;
10134
- (function (IcShortDayNames) {
10135
- IcShortDayNames[IcShortDayNames["Sun"] = 0] = "Sun";
10136
- IcShortDayNames[IcShortDayNames["Mon"] = 1] = "Mon";
10137
- IcShortDayNames[IcShortDayNames["Tue"] = 2] = "Tue";
10138
- IcShortDayNames[IcShortDayNames["Wed"] = 3] = "Wed";
10139
- IcShortDayNames[IcShortDayNames["Thu"] = 4] = "Thu";
10140
- IcShortDayNames[IcShortDayNames["Fri"] = 5] = "Fri";
10141
- IcShortDayNames[IcShortDayNames["Sat"] = 6] = "Sat";
10142
- })(IcShortDayNames || (IcShortDayNames = {}));
10143
- var IcDayNames;
10144
- (function (IcDayNames) {
10145
- IcDayNames[IcDayNames["Sunday"] = 0] = "Sunday";
10146
- IcDayNames[IcDayNames["Monday"] = 1] = "Monday";
10147
- IcDayNames[IcDayNames["Tuesday"] = 2] = "Tuesday";
10148
- IcDayNames[IcDayNames["Wednesday"] = 3] = "Wednesday";
10149
- IcDayNames[IcDayNames["Thursday"] = 4] = "Thursday";
10150
- IcDayNames[IcDayNames["Friday"] = 5] = "Friday";
10151
- IcDayNames[IcDayNames["Saturday"] = 6] = "Saturday";
10152
- })(IcDayNames || (IcDayNames = {}));
10153
- var IcWeekDays;
10154
- (function (IcWeekDays) {
10155
- IcWeekDays[IcWeekDays["Sunday"] = 0] = "Sunday";
10156
- IcWeekDays[IcWeekDays["Monday"] = 1] = "Monday";
10157
- IcWeekDays[IcWeekDays["Tuesday"] = 2] = "Tuesday";
10158
- IcWeekDays[IcWeekDays["Wednesday"] = 3] = "Wednesday";
10159
- IcWeekDays[IcWeekDays["Thursday"] = 4] = "Thursday";
10160
- IcWeekDays[IcWeekDays["Friday"] = 5] = "Friday";
10161
- IcWeekDays[IcWeekDays["Saturday"] = 6] = "Saturday";
10162
- })(IcWeekDays || (IcWeekDays = {}));
10329
+ "validationStatus": [1, "validation-status"],
10330
+ "validationText": [1, "validation-text"]
10331
+ },
10332
+ "$listeners$": [[0, "icChange", "handleChange"], [0, "icCheck", "selectHandler"]],
10333
+ "$lazyBundleId$": "-",
10334
+ "$attrsToReflect$": []
10335
+ }; }
10336
+ }
10337
+
10338
+ var dismissIcon = `<svg viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
10339
+ <path d="M10 0C4.47 0 0 4.47 0 10C0 15.53 4.47 20 10 20C15.53 20 20 15.53 20 10C20 4.47 15.53 0 10 0ZM15 13.59L13.59 15L10 11.41L6.41 15L5 13.59L8.59 10L5 6.41L6.41 5L10 8.59L13.59 5L15 6.41L11.41 10L15 13.59Z" fill="currentColor"/>
10340
+ </svg>
10341
+ `;
10342
+
10343
+ const icChipCss = "/*!@html*/html.sc-ic-chip{line-height:1.15;-webkit-text-size-adjust:100%}/*!@body*/body.sc-ic-chip{margin:0}/*!@main*/main.sc-ic-chip{display:block}/*!@h1*/h1.sc-ic-chip{font-size:2em;margin:0.67em 0}/*!@hr*/hr.sc-ic-chip{box-sizing:content-box;height:0;overflow:visible}/*!@pre*/pre.sc-ic-chip{font-family:monospace, monospace;font-size:1em}/*!@a*/a.sc-ic-chip{background-color:transparent}/*!@abbr[title]*/abbr[title].sc-ic-chip{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}/*!@b,\nstrong*/b.sc-ic-chip,strong.sc-ic-chip{font-weight:bolder}/*!@code,\nkbd,\nsamp*/code.sc-ic-chip,kbd.sc-ic-chip,samp.sc-ic-chip{font-family:monospace, monospace;font-size:1em}/*!@small*/small.sc-ic-chip{font-size:80%}/*!@sub,\nsup*/sub.sc-ic-chip,sup.sc-ic-chip{font-size:75%;line-height:0;position:relative;vertical-align:baseline}/*!@sub*/sub.sc-ic-chip{bottom:-0.25em}/*!@sup*/sup.sc-ic-chip{top:-0.5em}/*!@img*/img.sc-ic-chip{border-style:none}/*!@button,\ninput,\noptgroup,\nselect,\ntextarea*/button.sc-ic-chip,input.sc-ic-chip,optgroup.sc-ic-chip,select.sc-ic-chip,textarea.sc-ic-chip{font-family:inherit;font-size:100%;line-height:1.15;margin:0}/*!@button,\ninput*/button.sc-ic-chip,input.sc-ic-chip{overflow:visible}/*!@button,\nselect*/button.sc-ic-chip,select.sc-ic-chip{text-transform:none}/*!@button,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"]*/button.sc-ic-chip,[type=\"button\"].sc-ic-chip,[type=\"reset\"].sc-ic-chip,[type=\"submit\"].sc-ic-chip{-webkit-appearance:button}/*!@button::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner*/button.sc-ic-chip::-moz-focus-inner,[type=\"button\"].sc-ic-chip::-moz-focus-inner,[type=\"reset\"].sc-ic-chip::-moz-focus-inner,[type=\"submit\"].sc-ic-chip::-moz-focus-inner{border-style:none;padding:0}/*!@button:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring*/button.sc-ic-chip:-moz-focusring,[type=\"button\"].sc-ic-chip:-moz-focusring,[type=\"reset\"].sc-ic-chip:-moz-focusring,[type=\"submit\"].sc-ic-chip:-moz-focusring{outline:1px dotted ButtonText}/*!@fieldset*/fieldset.sc-ic-chip{padding:0.35em 0.75em 0.625em}/*!@legend*/legend.sc-ic-chip{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}/*!@progress*/progress.sc-ic-chip{vertical-align:baseline}/*!@textarea*/textarea.sc-ic-chip{overflow:auto}/*!@[type=\"checkbox\"],\n[type=\"radio\"]*/[type=\"checkbox\"].sc-ic-chip,[type=\"radio\"].sc-ic-chip{box-sizing:border-box;padding:0}/*!@[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button*/[type=\"number\"].sc-ic-chip::-webkit-inner-spin-button,[type=\"number\"].sc-ic-chip::-webkit-outer-spin-button{height:auto}/*!@[type=\"search\"]*/[type=\"search\"].sc-ic-chip{-webkit-appearance:textfield;outline-offset:-2px}/*!@[type=\"search\"]::-webkit-search-decoration*/[type=\"search\"].sc-ic-chip::-webkit-search-decoration{-webkit-appearance:none}/*!@::-webkit-file-upload-button*/.sc-ic-chip::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}/*!@details*/details.sc-ic-chip{display:block}/*!@summary*/summary.sc-ic-chip{display:list-item}/*!@template*/template.sc-ic-chip{display:none}/*!@[hidden]*/[hidden].sc-ic-chip{display:none}/*!@html,\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*/html.sc-ic-chip,body.sc-ic-chip,div.sc-ic-chip,span.sc-ic-chip,applet.sc-ic-chip,object.sc-ic-chip,iframe.sc-ic-chip,h1.sc-ic-chip,h2.sc-ic-chip,h3.sc-ic-chip,h4.sc-ic-chip,h5.sc-ic-chip,h6.sc-ic-chip,p.sc-ic-chip,blockquote.sc-ic-chip,pre.sc-ic-chip,a.sc-ic-chip,abbr.sc-ic-chip,acronym.sc-ic-chip,address.sc-ic-chip,big.sc-ic-chip,cite.sc-ic-chip,code.sc-ic-chip,del.sc-ic-chip,dfn.sc-ic-chip,em.sc-ic-chip,img.sc-ic-chip,ins.sc-ic-chip,kbd.sc-ic-chip,q.sc-ic-chip,s.sc-ic-chip,samp.sc-ic-chip,small.sc-ic-chip,strike.sc-ic-chip,strong.sc-ic-chip,sub.sc-ic-chip,sup.sc-ic-chip,tt.sc-ic-chip,var.sc-ic-chip,b.sc-ic-chip,u.sc-ic-chip,i.sc-ic-chip,center.sc-ic-chip,dl.sc-ic-chip,dt.sc-ic-chip,dd.sc-ic-chip,ol.sc-ic-chip,ul.sc-ic-chip,li.sc-ic-chip,fieldset.sc-ic-chip,form.sc-ic-chip,label.sc-ic-chip,legend.sc-ic-chip,table.sc-ic-chip,caption.sc-ic-chip,tbody.sc-ic-chip,tfoot.sc-ic-chip,thead.sc-ic-chip,tr.sc-ic-chip,th.sc-ic-chip,td.sc-ic-chip,article.sc-ic-chip,aside.sc-ic-chip,canvas.sc-ic-chip,details.sc-ic-chip,embed.sc-ic-chip,figure.sc-ic-chip,figcaption.sc-ic-chip,footer.sc-ic-chip,header.sc-ic-chip,hgroup.sc-ic-chip,menu.sc-ic-chip,nav.sc-ic-chip,output.sc-ic-chip,ruby.sc-ic-chip,section.sc-ic-chip,summary.sc-ic-chip,time.sc-ic-chip,mark.sc-ic-chip,audio.sc-ic-chip,video.sc-ic-chip{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}/*!@:host*/.sc-ic-chip-h{display:inline-block}/*!@.chip*/.chip.sc-ic-chip{display:flex;padding:var(--ic-space-xxs);font-size:0.875rem;border-radius:var(--ic-space-md);text-align:left;text-decoration:none;transition:var(--ic-easing-transition-fast);position:relative}/*!@.chip.small*/.chip.small.sc-ic-chip{padding:var(--ic-space-xxxs);border-radius:calc(var(--ic-space-md) - var(--ic-space-xxxs))}/*!@.chip.large*/.chip.large.sc-ic-chip{padding:var(--ic-space-xs);border-radius:calc(var(--ic-space-md) + var(--ic-space-xxs))}/*!@.label*/.label.sc-ic-chip{padding:0 var(--ic-space-xs)}/*!@.chip.hovered:not(:focus-within)*/.chip.hovered.sc-ic-chip:not(:focus-within){background-color:var(--ic-architectural-300)}/*!@.chip:focus-within*/.chip.sc-ic-chip:focus-within{box-shadow:var(--ic-border-focus);outline:var(--ic-hc-focus-outline);z-index:1}/*!@.chip.outline.hovered:not(:focus-within),\n.chip.outlined.hovered:not(:focus-within)*/.chip.outline.hovered.sc-ic-chip:not(:focus-within),.chip.outlined.hovered.sc-ic-chip:not(:focus-within){background-color:var(--ic-action-dark-bg-hover)}/*!@ic-tooltip:focus-within*/ic-tooltip.sc-ic-chip:focus-within{z-index:1}/*!@.filled*/.filled.sc-ic-chip{background-color:var(--chip-custom-color, var(--ic-architectural-200));color:var(--chip-custom-foreground-color, black);border:none}/*!@.filled.disabled*/.filled.disabled.sc-ic-chip{background-color:var(--ic-architectural-100)}/*!@.outline,\n.outlined*/.outline.sc-ic-chip,.outlined.sc-ic-chip{color:var(--ic-architectural-900);border:var(--ic-border-width) solid\n var(--chip-custom-color, var(--ic-architectural-900));padding:calc(var(--ic-space-xxs) - var(--ic-space-1px))}/*!@.outline.small,\n.outlined.small*/.outline.small.sc-ic-chip,.outlined.small.sc-ic-chip{padding:calc(var(--ic-space-xxxs) - var(--ic-space-1px))}/*!@.outline.large,\n.outlined.large*/.outline.large.sc-ic-chip,.outlined.large.sc-ic-chip{padding:calc(var(--ic-space-xs) - var(--ic-space-1px))}/*!@.outline.disabled,\n.outlined.disabled*/.outline.disabled.sc-ic-chip,.outlined.disabled.sc-ic-chip{border:var(--ic-border-disabled);background:none}/*!@.chip.disabled ic-typography*/.chip.disabled.sc-ic-chip ic-typography.sc-ic-chip{color:var(--ic-architectural-500)}/*!@.filled.disabled ic-typography*/.filled.disabled.sc-ic-chip ic-typography.sc-ic-chip{color:var(--ic-architectural-600)}/*!@.dismiss-icon*/.dismiss-icon.sc-ic-chip{border:none;border-radius:50%;padding:0;background:none;cursor:pointer;margin:var(--ic-space-xxxs);height:calc(var(--ic-space-lg) - var(--ic-space-xxs));width:calc(var(--ic-space-lg) - var(--ic-space-xxs))}/*!@.dismiss-icon:focus*/.dismiss-icon.sc-ic-chip:focus{outline:var(--ic-hc-focus-outline)}/*!@.dismiss-icon[disabled]*/.dismiss-icon[disabled].sc-ic-chip{pointer-events:none;color:var(--ic-architectural-200)}/*!@.icon*/.icon.sc-ic-chip{padding:var(--ic-space-xxxs);box-sizing:border-box}/*!@.icon,\nic-tooltip*/.icon.sc-ic-chip,ic-tooltip.sc-ic-chip{width:var(--ic-space-lg);height:var(--ic-space-lg)}/*!@.chip.disabled path,\n.chip.disabled ::slotted(svg)*/.chip.disabled.sc-ic-chip path.sc-ic-chip,.chip.disabled.sc-ic-chip-s>svg,.chip.disabled .sc-ic-chip-s>svg{fill:var(--ic-architectural-200)}/*!@.chip.white-background*/.chip.white-background.sc-ic-chip{background-color:var(--ic-architectural-white)}/*!@.chip.white-background.hovered:not(:focus-within)*/.chip.white-background.hovered.sc-ic-chip:not(:focus-within){background-color:var(--ic-action-dark-bg-hover-no-alpha) !important}@media (forced-colors: active){/*!@.chip*/.chip.sc-ic-chip{border:var(--ic-hc-border)}/*!@.filled.small*/.filled.small.sc-ic-chip{padding:calc(var(--ic-space-xxxs) - var(--ic-space-1px))}/*!@.filled*/.filled.sc-ic-chip{padding:calc(var(--ic-space-xxxs) + var(--ic-space-1px))}/*!@.filled.large*/.filled.large.sc-ic-chip{padding:calc(var(--ic-space-xs) - var(--ic-space-1px))}/*!@.chip.disabled*/.chip.disabled.sc-ic-chip{-webkit-appearance:none;-moz-appearance:none;appearance:none;border-color:GrayText}/*!@.chip.disabled ic-typography*/.chip.disabled.sc-ic-chip ic-typography.sc-ic-chip{color:GrayText}/*!@.chip.disabled path,\n .chip.disabled ::slotted(svg)*/.chip.disabled.sc-ic-chip path.sc-ic-chip,.chip.disabled.sc-ic-chip-s>svg,.chip.disabled .sc-ic-chip-s>svg{fill:GrayText}/*!@.chip:focus-within*/.chip.sc-ic-chip:focus-within{outline:none;border-color:Highlight}}";
10163
10344
 
10164
10345
  /**
10165
- * converts an enum of strings into an array of strings
10166
- */
10167
- const stringEnumToArray = (theEnum) => {
10168
- const arr = [];
10169
- Object.values(theEnum).forEach((val) => {
10170
- if (isNaN(Number(val))) {
10171
- const str = val;
10172
- arr.push(str);
10173
- }
10174
- });
10175
- return arr;
10176
- };
10177
- /**
10178
- * Used to inherit global attributes set on the host. Called in componentWillLoad and assigned
10179
- * to a variable that is later used in the render function.
10180
- *
10181
- * This does not need to be reactive as changing attributes on the host element
10182
- * does not trigger a re-render.
10346
+ * @slot icon - Content will be rendered at the start of the chip.
10347
+ * @slot badge - Badge component overlaying the top right of the chip.
10183
10348
  */
10184
- const inheritAttributes = (element, attributes = []) => {
10185
- const attributeObject = {};
10186
- attributes.forEach((attr) => {
10187
- if (element.hasAttribute(attr)) {
10188
- const value = element.getAttribute(attr);
10189
- if (value !== null) {
10190
- attributeObject[attr] = element.getAttribute(attr);
10349
+ class Chip {
10350
+ constructor(hostRef) {
10351
+ registerInstance(this, hostRef);
10352
+ this.dismiss = createEvent(this, "dismiss", 7);
10353
+ this.icDismiss = createEvent(this, "icDismiss", 7);
10354
+ this.dismissAction = () => {
10355
+ this.dismiss.emit();
10356
+ this.icDismiss.emit();
10357
+ };
10358
+ this.mouseEnterHandler = () => {
10359
+ this.hovered = true;
10360
+ };
10361
+ this.mouseLeaveHandler = () => {
10362
+ this.hovered = false;
10363
+ };
10364
+ this.setChipColour = () => {
10365
+ const colorRGBA = convertToRGBA(this.customColor);
10366
+ if (colorRGBA) {
10367
+ const { r, g, b, a } = colorRGBA;
10368
+ const foregroundColour = (r * 299 + g * 587 + b * 114) / 1000 > 133.3505 ? "black" : "white";
10369
+ this.el.setAttribute("style", `--chip-custom-color: rgba(${r}, ${g}, ${b}, ${a}); --chip-custom-foreground-color: var(--ic-architectural-${foregroundColour})`);
10191
10370
  }
10192
- element.removeAttribute(attr);
10193
- }
10194
- });
10195
- return attributeObject;
10196
- };
10197
- /**
10198
- * This method is used to add a hidden input to a host element that contains
10199
- * a Shadow DOM. It does not add the input inside of the Shadow root which
10200
- * allows it to be picked up inside of forms. It should contain the same
10201
- * values as the host element.
10202
- *
10203
- * @param always Add a hidden input even if the container does not use Shadow
10204
- * @param container The element where the input will be added
10205
- * @param name The name of the input
10206
- * @param value The value of the input
10207
- * @param disabled If true, the input is disabled
10208
- */
10209
- const renderHiddenInput = (always, container, name, value, disabled) => {
10210
- if (name !== undefined && (always || hasShadowDom(container))) {
10211
- const inputs = container.querySelectorAll("input.ic-input");
10212
- const inputEls = Array.from(inputs);
10213
- const filtered = inputEls.filter((el) => container === el.parentElement);
10214
- let input = filtered[0];
10215
- if (input === null || input === undefined) {
10216
- input = container.ownerDocument.createElement("input");
10217
- input.type = "hidden";
10218
- input.classList.add("ic-input");
10219
- container.appendChild(input);
10371
+ };
10372
+ this.hovered = false;
10373
+ this.visible = true;
10374
+ this.appearance = undefined;
10375
+ this.customColor = null;
10376
+ this.disabled = false;
10377
+ this.dismissible = false;
10378
+ this.label = undefined;
10379
+ this.size = "default";
10380
+ this.transparentBackground = true;
10381
+ this.variant = "filled";
10382
+ }
10383
+ customColorHandler() {
10384
+ if (!this.dismissible) {
10385
+ this.setChipColour();
10220
10386
  }
10221
- input.disabled = disabled;
10222
- input.name = name;
10223
- if (value instanceof Date) {
10224
- input.value = value ? value.toISOString() : null;
10387
+ }
10388
+ componentWillLoad() {
10389
+ removeDisabledFalse$1(this.disabled, this.el);
10390
+ if (!this.dismissible) {
10391
+ this.setChipColour();
10225
10392
  }
10226
- else {
10227
- input.value = value || "";
10393
+ if (this.appearance === "outline") {
10394
+ this.variant = "outlined";
10228
10395
  }
10229
10396
  }
10230
- };
10231
- const isEmptyString = (value) => value ? value.trim().length === 0 : true;
10232
- const getCssProperty = (cssVar) => getComputedStyle(document.documentElement).getPropertyValue(cssVar);
10233
- const getSlot = (element, name) => {
10234
- if (element && element.querySelector) {
10235
- return element.querySelector(`[slot="${name}"]`);
10397
+ componentDidLoad() {
10398
+ onComponentRequiredPropUndefined$1([{ prop: this.label, propName: "label" }], "Chip");
10236
10399
  }
10237
- return null;
10238
- };
10239
- const getSlotContent = (element, name) => {
10240
- const slot = getSlot(element, name);
10241
- if (slot) {
10242
- return getSlotElements(slot);
10400
+ handleClick() {
10401
+ this.visible = !this.visible;
10243
10402
  }
10244
- return null;
10245
- };
10246
- const getSlotElements = (slot) => {
10247
- const slotContent = slot.firstElementChild;
10248
- if (slotContent !== null) {
10249
- const elements = slotContent.assignedElements
10250
- ? slotContent.assignedElements()
10251
- : slotContent.childNodes;
10252
- return elements.length ? elements : slot.tagName ? [slot] : null;
10403
+ /**
10404
+ * Sets focus on the chip.
10405
+ */
10406
+ async setFocus() {
10407
+ var _a;
10408
+ (_a = this.el.shadowRoot.querySelector("button")) === null || _a === void 0 ? void 0 : _a.focus();
10253
10409
  }
10254
- else {
10255
- //check for single element
10256
- return slot === null ? null : [slot];
10410
+ render() {
10411
+ const { label, appearance, variant, size, dismissible, visible, disabled, hovered, } = this;
10412
+ return (visible && (hAsync("div", { class: {
10413
+ chip: true,
10414
+ [`${appearance}`]: appearance !== undefined,
10415
+ [`${variant}`]: true,
10416
+ [`${size}`]: true,
10417
+ disabled,
10418
+ dismissible,
10419
+ hovered,
10420
+ "white-background": this.variant === "outlined" && !this.transparentBackground,
10421
+ } }, isSlotUsed$1(this.el, "icon") && (hAsync("div", { class: "icon" }, hAsync("slot", { name: "icon" }))), hAsync("ic-typography", { variant: "label", "apply-vertical-margins": false, class: "label" }, hAsync("span", null, label)), dismissible && (hAsync("ic-tooltip", { label: "Dismiss", target: "dismiss-icon", class: { "tooltip-disabled": disabled } }, hAsync("button", { id: "dismiss-icon", class: "dismiss-icon", "aria-label": `Dismiss ${label} chip`, disabled: disabled, tabindex: disabled ? -1 : 0, onClick: this.dismissAction, onMouseEnter: this.mouseEnterHandler, onMouseLeave: this.mouseLeaveHandler, innerHTML: dismissIcon }))), isSlotUsed$1(this.el, "badge") && hAsync("slot", { name: "badge" }))));
10257
10422
  }
10423
+ static get delegatesFocus() { return true; }
10424
+ get el() { return getElement(this); }
10425
+ static get watchers() { return {
10426
+ "customColor": ["customColorHandler"]
10427
+ }; }
10428
+ static get style() { return icChipCss; }
10429
+ static get cmpMeta() { return {
10430
+ "$flags$": 25,
10431
+ "$tagName$": "ic-chip",
10432
+ "$members$": {
10433
+ "appearance": [1],
10434
+ "customColor": [1, "custom-color"],
10435
+ "disabled": [4],
10436
+ "dismissible": [4],
10437
+ "label": [1],
10438
+ "size": [1],
10439
+ "transparentBackground": [4, "transparent-background"],
10440
+ "variant": [1],
10441
+ "hovered": [32],
10442
+ "visible": [32],
10443
+ "setFocus": [64]
10444
+ },
10445
+ "$listeners$": [[2, "icDismiss", "handleClick"]],
10446
+ "$lazyBundleId$": "-",
10447
+ "$attrsToReflect$": []
10448
+ }; }
10449
+ }
10450
+
10451
+ const icClassificationBannerCss = "/*!@html*/html.sc-ic-classification-banner{line-height:1.15;-webkit-text-size-adjust:100%}/*!@body*/body.sc-ic-classification-banner{margin:0}/*!@main*/main.sc-ic-classification-banner{display:block}/*!@h1*/h1.sc-ic-classification-banner{font-size:2em;margin:0.67em 0}/*!@hr*/hr.sc-ic-classification-banner{box-sizing:content-box;height:0;overflow:visible}/*!@pre*/pre.sc-ic-classification-banner{font-family:monospace, monospace;font-size:1em}/*!@a*/a.sc-ic-classification-banner{background-color:transparent}/*!@abbr[title]*/abbr[title].sc-ic-classification-banner{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}/*!@b,\nstrong*/b.sc-ic-classification-banner,strong.sc-ic-classification-banner{font-weight:bolder}/*!@code,\nkbd,\nsamp*/code.sc-ic-classification-banner,kbd.sc-ic-classification-banner,samp.sc-ic-classification-banner{font-family:monospace, monospace;font-size:1em}/*!@small*/small.sc-ic-classification-banner{font-size:80%}/*!@sub,\nsup*/sub.sc-ic-classification-banner,sup.sc-ic-classification-banner{font-size:75%;line-height:0;position:relative;vertical-align:baseline}/*!@sub*/sub.sc-ic-classification-banner{bottom:-0.25em}/*!@sup*/sup.sc-ic-classification-banner{top:-0.5em}/*!@img*/img.sc-ic-classification-banner{border-style:none}/*!@button,\ninput,\noptgroup,\nselect,\ntextarea*/button.sc-ic-classification-banner,input.sc-ic-classification-banner,optgroup.sc-ic-classification-banner,select.sc-ic-classification-banner,textarea.sc-ic-classification-banner{font-family:inherit;font-size:100%;line-height:1.15;margin:0}/*!@button,\ninput*/button.sc-ic-classification-banner,input.sc-ic-classification-banner{overflow:visible}/*!@button,\nselect*/button.sc-ic-classification-banner,select.sc-ic-classification-banner{text-transform:none}/*!@button,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"]*/button.sc-ic-classification-banner,[type=\"button\"].sc-ic-classification-banner,[type=\"reset\"].sc-ic-classification-banner,[type=\"submit\"].sc-ic-classification-banner{-webkit-appearance:button}/*!@button::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner*/button.sc-ic-classification-banner::-moz-focus-inner,[type=\"button\"].sc-ic-classification-banner::-moz-focus-inner,[type=\"reset\"].sc-ic-classification-banner::-moz-focus-inner,[type=\"submit\"].sc-ic-classification-banner::-moz-focus-inner{border-style:none;padding:0}/*!@button:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring*/button.sc-ic-classification-banner:-moz-focusring,[type=\"button\"].sc-ic-classification-banner:-moz-focusring,[type=\"reset\"].sc-ic-classification-banner:-moz-focusring,[type=\"submit\"].sc-ic-classification-banner:-moz-focusring{outline:1px dotted ButtonText}/*!@fieldset*/fieldset.sc-ic-classification-banner{padding:0.35em 0.75em 0.625em}/*!@legend*/legend.sc-ic-classification-banner{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}/*!@progress*/progress.sc-ic-classification-banner{vertical-align:baseline}/*!@textarea*/textarea.sc-ic-classification-banner{overflow:auto}/*!@[type=\"checkbox\"],\n[type=\"radio\"]*/[type=\"checkbox\"].sc-ic-classification-banner,[type=\"radio\"].sc-ic-classification-banner{box-sizing:border-box;padding:0}/*!@[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button*/[type=\"number\"].sc-ic-classification-banner::-webkit-inner-spin-button,[type=\"number\"].sc-ic-classification-banner::-webkit-outer-spin-button{height:auto}/*!@[type=\"search\"]*/[type=\"search\"].sc-ic-classification-banner{-webkit-appearance:textfield;outline-offset:-2px}/*!@[type=\"search\"]::-webkit-search-decoration*/[type=\"search\"].sc-ic-classification-banner::-webkit-search-decoration{-webkit-appearance:none}/*!@::-webkit-file-upload-button*/.sc-ic-classification-banner::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}/*!@details*/details.sc-ic-classification-banner{display:block}/*!@summary*/summary.sc-ic-classification-banner{display:list-item}/*!@template*/template.sc-ic-classification-banner{display:none}/*!@[hidden]*/[hidden].sc-ic-classification-banner{display:none}/*!@html,\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*/html.sc-ic-classification-banner,body.sc-ic-classification-banner,div.sc-ic-classification-banner,span.sc-ic-classification-banner,applet.sc-ic-classification-banner,object.sc-ic-classification-banner,iframe.sc-ic-classification-banner,h1.sc-ic-classification-banner,h2.sc-ic-classification-banner,h3.sc-ic-classification-banner,h4.sc-ic-classification-banner,h5.sc-ic-classification-banner,h6.sc-ic-classification-banner,p.sc-ic-classification-banner,blockquote.sc-ic-classification-banner,pre.sc-ic-classification-banner,a.sc-ic-classification-banner,abbr.sc-ic-classification-banner,acronym.sc-ic-classification-banner,address.sc-ic-classification-banner,big.sc-ic-classification-banner,cite.sc-ic-classification-banner,code.sc-ic-classification-banner,del.sc-ic-classification-banner,dfn.sc-ic-classification-banner,em.sc-ic-classification-banner,img.sc-ic-classification-banner,ins.sc-ic-classification-banner,kbd.sc-ic-classification-banner,q.sc-ic-classification-banner,s.sc-ic-classification-banner,samp.sc-ic-classification-banner,small.sc-ic-classification-banner,strike.sc-ic-classification-banner,strong.sc-ic-classification-banner,sub.sc-ic-classification-banner,sup.sc-ic-classification-banner,tt.sc-ic-classification-banner,var.sc-ic-classification-banner,b.sc-ic-classification-banner,u.sc-ic-classification-banner,i.sc-ic-classification-banner,center.sc-ic-classification-banner,dl.sc-ic-classification-banner,dt.sc-ic-classification-banner,dd.sc-ic-classification-banner,ol.sc-ic-classification-banner,ul.sc-ic-classification-banner,li.sc-ic-classification-banner,fieldset.sc-ic-classification-banner,form.sc-ic-classification-banner,label.sc-ic-classification-banner,legend.sc-ic-classification-banner,table.sc-ic-classification-banner,caption.sc-ic-classification-banner,tbody.sc-ic-classification-banner,tfoot.sc-ic-classification-banner,thead.sc-ic-classification-banner,tr.sc-ic-classification-banner,th.sc-ic-classification-banner,td.sc-ic-classification-banner,article.sc-ic-classification-banner,aside.sc-ic-classification-banner,canvas.sc-ic-classification-banner,details.sc-ic-classification-banner,embed.sc-ic-classification-banner,figure.sc-ic-classification-banner,figcaption.sc-ic-classification-banner,footer.sc-ic-classification-banner,header.sc-ic-classification-banner,hgroup.sc-ic-classification-banner,menu.sc-ic-classification-banner,nav.sc-ic-classification-banner,output.sc-ic-classification-banner,ruby.sc-ic-classification-banner,section.sc-ic-classification-banner,summary.sc-ic-classification-banner,time.sc-ic-classification-banner,mark.sc-ic-classification-banner,audio.sc-ic-classification-banner,video.sc-ic-classification-banner{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}/*!@:host*/.sc-ic-classification-banner-h{position:fixed;left:0;bottom:0;width:100%;height:var(--ic-space-lg);z-index:var(--ic-z-index-classification-banner)}/*!@:host(.inline)*/.inline.sc-ic-classification-banner-h{position:static;left:auto;bottom:auto}/*!@.classification-banner*/.classification-banner.sc-ic-classification-banner{display:flex;flex-direction:row;justify-content:center;align-items:center;padding:var(--ic-space-xxxs) var(--ic-space-md)}/*!@.default*/.default.sc-ic-classification-banner{background-color:var(--ic-classification-not-set);color:var(--ic-classification-not-set-foreground)}/*!@.official,\n.official-sensitive*/.official.sc-ic-classification-banner,.official-sensitive.sc-ic-classification-banner{background-color:var(--ic-classification-official);color:var(--ic-classification-official-foreground)}/*!@.secret*/.secret.sc-ic-classification-banner{background-color:var(--ic-classification-secret);color:var(--ic-classification-secret-foreground)}/*!@.top-secret*/.top-secret.sc-ic-classification-banner{background-color:var(--ic-classification-top-secret);color:var(--ic-classification-top-secret-foreground)}/*!@.offscreen*/.offscreen.sc-ic-classification-banner{position:absolute;left:-9999px;background-color:#fff;color:#000;text-transform:none}@media (forced-colors: active){/*!@.classification-banner*/.classification-banner.sc-ic-classification-banner{border:var(--ic-hc-border)}}";
10452
+
10453
+ const classificationText = {
10454
+ default: "protective marking not set",
10455
+ official: "official",
10456
+ "official-sensitive": "official sensitive",
10457
+ secret: "secret",
10458
+ "top-secret": "top secret",
10258
10459
  };
10259
- ({
10260
- XS: Number(getCssProperty("--ic-breakpoint-xs").replace("px", "")),
10261
- S: Number(getCssProperty("--ic-breakpoint-sm").replace("px", "")),
10262
- M: Number(getCssProperty("--ic-breakpoint-md").replace("px", "")),
10263
- L: Number(getCssProperty("--ic-breakpoint-lg").replace("px", "")),
10264
- XL: Number(getCssProperty("--ic-breakpoint-xl").replace("px", "")),
10265
- UNDEFINED: 1200,
10266
- });
10267
- const isSlotUsed = (element, slotName) => Array.from(element.children).some((child) => child.getAttribute("slot") === slotName);
10268
- const hasShadowDom = (el) => !!el.shadowRoot && !!el.attachShadow;
10269
- const getInputHelperTextID = (id) => id + "-helper-text";
10270
- const getInputValidationTextID = (id) => id + "-validation-text";
10271
- const getInputDescribedByText = (inputId, helperText, validationText) => `${helperText ? getInputHelperTextID(inputId) : ""} ${validationText ? getInputValidationTextID(inputId) : ""}`.trim();
10272
- const isMobileOrTablet = () => "maxTouchPoints" in navigator ? navigator.maxTouchPoints > 0 : false;
10273
- /**
10274
- * Extracts the label using the value from an object. Requires the object to have a label and value property.
10275
- * @param value - value from object
10276
- * @param options - list of menu items
10277
- * @returns - label corresponding to value
10278
- */
10279
- const getLabelFromValue = (value, options, valueField = "value", labelField = "label") => {
10280
- const ungroupedOptions = [];
10281
- if (options.length > 0 && options.map) {
10282
- options.map((option) => {
10283
- if (option.children) {
10284
- option.children.map((option) => ungroupedOptions.push(option));
10285
- }
10286
- else {
10287
- ungroupedOptions.push(option);
10288
- }
10289
- });
10290
- const matchingValue = ungroupedOptions.find((option) => option[valueField] === value);
10291
- if (matchingValue !== undefined)
10292
- return matchingValue[labelField];
10460
+ class ClassificationBanner {
10461
+ constructor(hostRef) {
10462
+ registerInstance(this, hostRef);
10463
+ this.additionalSelectors = "";
10464
+ this.classification = "default";
10465
+ this.country = "uk";
10466
+ this.inline = false;
10467
+ this.upTo = false;
10293
10468
  }
10294
- return undefined;
10295
- };
10469
+ render() {
10470
+ const { inline, upTo } = this;
10471
+ // In case of unrecognized props, fallback to default
10472
+ let { country, additionalSelectors, classification } = this;
10473
+ if (!country)
10474
+ country = "";
10475
+ if (!additionalSelectors)
10476
+ additionalSelectors = "";
10477
+ if (!classification ||
10478
+ (classification && !classificationText[classification]))
10479
+ classification = "default";
10480
+ return (hAsync(Host, { class: { ["inline"]: inline } }, hAsync("banner", { "aria-label": "Protective marking", class: {
10481
+ ["classification-banner"]: true,
10482
+ [`${classification}`]: classification,
10483
+ } }, classification !== "default" ? (hAsync("span", { class: "offscreen" }, "The protective marking of this page is:", " ")) : null, hAsync("ic-typography", { variant: "caption-uppercase" }, classification === "default"
10484
+ ? classificationText[classification]
10485
+ : `${upTo ? "up to" : ""}
10486
+ ${country}
10487
+ ${classificationText[classification]}
10488
+ ${additionalSelectors}`))));
10489
+ }
10490
+ static get style() { return icClassificationBannerCss; }
10491
+ static get cmpMeta() { return {
10492
+ "$flags$": 9,
10493
+ "$tagName$": "ic-classification-banner",
10494
+ "$members$": {
10495
+ "additionalSelectors": [1, "additional-selectors"],
10496
+ "classification": [1],
10497
+ "country": [1],
10498
+ "inline": [4],
10499
+ "upTo": [4, "up-to"]
10500
+ },
10501
+ "$listeners$": undefined,
10502
+ "$lazyBundleId$": "-",
10503
+ "$attrsToReflect$": []
10504
+ }; }
10505
+ }
10506
+
10507
+ const icDataEntityCss = "/*!@html*/html.sc-ic-data-entity{line-height:1.15;-webkit-text-size-adjust:100%}/*!@body*/body.sc-ic-data-entity{margin:0}/*!@main*/main.sc-ic-data-entity{display:block}/*!@h1*/h1.sc-ic-data-entity{font-size:2em;margin:0.67em 0}/*!@hr*/hr.sc-ic-data-entity{box-sizing:content-box;height:0;overflow:visible}/*!@pre*/pre.sc-ic-data-entity{font-family:monospace, monospace;font-size:1em}/*!@a*/a.sc-ic-data-entity{background-color:transparent}/*!@abbr[title]*/abbr[title].sc-ic-data-entity{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}/*!@b,\nstrong*/b.sc-ic-data-entity,strong.sc-ic-data-entity{font-weight:bolder}/*!@code,\nkbd,\nsamp*/code.sc-ic-data-entity,kbd.sc-ic-data-entity,samp.sc-ic-data-entity{font-family:monospace, monospace;font-size:1em}/*!@small*/small.sc-ic-data-entity{font-size:80%}/*!@sub,\nsup*/sub.sc-ic-data-entity,sup.sc-ic-data-entity{font-size:75%;line-height:0;position:relative;vertical-align:baseline}/*!@sub*/sub.sc-ic-data-entity{bottom:-0.25em}/*!@sup*/sup.sc-ic-data-entity{top:-0.5em}/*!@img*/img.sc-ic-data-entity{border-style:none}/*!@button,\ninput,\noptgroup,\nselect,\ntextarea*/button.sc-ic-data-entity,input.sc-ic-data-entity,optgroup.sc-ic-data-entity,select.sc-ic-data-entity,textarea.sc-ic-data-entity{font-family:inherit;font-size:100%;line-height:1.15;margin:0}/*!@button,\ninput*/button.sc-ic-data-entity,input.sc-ic-data-entity{overflow:visible}/*!@button,\nselect*/button.sc-ic-data-entity,select.sc-ic-data-entity{text-transform:none}/*!@button,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"]*/button.sc-ic-data-entity,[type=\"button\"].sc-ic-data-entity,[type=\"reset\"].sc-ic-data-entity,[type=\"submit\"].sc-ic-data-entity{-webkit-appearance:button}/*!@button::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner*/button.sc-ic-data-entity::-moz-focus-inner,[type=\"button\"].sc-ic-data-entity::-moz-focus-inner,[type=\"reset\"].sc-ic-data-entity::-moz-focus-inner,[type=\"submit\"].sc-ic-data-entity::-moz-focus-inner{border-style:none;padding:0}/*!@button:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring*/button.sc-ic-data-entity:-moz-focusring,[type=\"button\"].sc-ic-data-entity:-moz-focusring,[type=\"reset\"].sc-ic-data-entity:-moz-focusring,[type=\"submit\"].sc-ic-data-entity:-moz-focusring{outline:1px dotted ButtonText}/*!@fieldset*/fieldset.sc-ic-data-entity{padding:0.35em 0.75em 0.625em}/*!@legend*/legend.sc-ic-data-entity{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}/*!@progress*/progress.sc-ic-data-entity{vertical-align:baseline}/*!@textarea*/textarea.sc-ic-data-entity{overflow:auto}/*!@[type=\"checkbox\"],\n[type=\"radio\"]*/[type=\"checkbox\"].sc-ic-data-entity,[type=\"radio\"].sc-ic-data-entity{box-sizing:border-box;padding:0}/*!@[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button*/[type=\"number\"].sc-ic-data-entity::-webkit-inner-spin-button,[type=\"number\"].sc-ic-data-entity::-webkit-outer-spin-button{height:auto}/*!@[type=\"search\"]*/[type=\"search\"].sc-ic-data-entity{-webkit-appearance:textfield;outline-offset:-2px}/*!@[type=\"search\"]::-webkit-search-decoration*/[type=\"search\"].sc-ic-data-entity::-webkit-search-decoration{-webkit-appearance:none}/*!@::-webkit-file-upload-button*/.sc-ic-data-entity::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}/*!@details*/details.sc-ic-data-entity{display:block}/*!@summary*/summary.sc-ic-data-entity{display:list-item}/*!@template*/template.sc-ic-data-entity{display:none}/*!@[hidden]*/[hidden].sc-ic-data-entity{display:none}/*!@html,\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*/html.sc-ic-data-entity,body.sc-ic-data-entity,div.sc-ic-data-entity,span.sc-ic-data-entity,applet.sc-ic-data-entity,object.sc-ic-data-entity,iframe.sc-ic-data-entity,h1.sc-ic-data-entity,h2.sc-ic-data-entity,h3.sc-ic-data-entity,h4.sc-ic-data-entity,h5.sc-ic-data-entity,h6.sc-ic-data-entity,p.sc-ic-data-entity,blockquote.sc-ic-data-entity,pre.sc-ic-data-entity,a.sc-ic-data-entity,abbr.sc-ic-data-entity,acronym.sc-ic-data-entity,address.sc-ic-data-entity,big.sc-ic-data-entity,cite.sc-ic-data-entity,code.sc-ic-data-entity,del.sc-ic-data-entity,dfn.sc-ic-data-entity,em.sc-ic-data-entity,img.sc-ic-data-entity,ins.sc-ic-data-entity,kbd.sc-ic-data-entity,q.sc-ic-data-entity,s.sc-ic-data-entity,samp.sc-ic-data-entity,small.sc-ic-data-entity,strike.sc-ic-data-entity,strong.sc-ic-data-entity,sub.sc-ic-data-entity,sup.sc-ic-data-entity,tt.sc-ic-data-entity,var.sc-ic-data-entity,b.sc-ic-data-entity,u.sc-ic-data-entity,i.sc-ic-data-entity,center.sc-ic-data-entity,dl.sc-ic-data-entity,dt.sc-ic-data-entity,dd.sc-ic-data-entity,ol.sc-ic-data-entity,ul.sc-ic-data-entity,li.sc-ic-data-entity,fieldset.sc-ic-data-entity,form.sc-ic-data-entity,label.sc-ic-data-entity,legend.sc-ic-data-entity,table.sc-ic-data-entity,caption.sc-ic-data-entity,tbody.sc-ic-data-entity,tfoot.sc-ic-data-entity,thead.sc-ic-data-entity,tr.sc-ic-data-entity,th.sc-ic-data-entity,td.sc-ic-data-entity,article.sc-ic-data-entity,aside.sc-ic-data-entity,canvas.sc-ic-data-entity,details.sc-ic-data-entity,embed.sc-ic-data-entity,figure.sc-ic-data-entity,figcaption.sc-ic-data-entity,footer.sc-ic-data-entity,header.sc-ic-data-entity,hgroup.sc-ic-data-entity,menu.sc-ic-data-entity,nav.sc-ic-data-entity,output.sc-ic-data-entity,ruby.sc-ic-data-entity,section.sc-ic-data-entity,summary.sc-ic-data-entity,time.sc-ic-data-entity,mark.sc-ic-data-entity,audio.sc-ic-data-entity,video.sc-ic-data-entity{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}/*!@:host*/.sc-ic-data-entity-h{display:block}/*!@.rows*/.rows.sc-ic-data-entity{display:flex;flex-direction:column;gap:var(--ic-space-md)}/*!@:host(.small) .rows*/.small.sc-ic-data-entity-h .rows.sc-ic-data-entity{gap:var(--ic-space-xs)}/*!@.divider*/.divider.sc-ic-data-entity{margin-top:var(--ic-space-lg);margin-bottom:var(--ic-space-md);height:var(--ic-border-width);background-color:var(--ic-architectural-300)}/*!@:host(.small) .divider*/.small.sc-ic-data-entity-h .divider.sc-ic-data-entity{margin-top:var(--ic-space-sm);margin-bottom:var(--ic-space-xs)}@media (forced-colors: active){/*!@.divider*/.divider.sc-ic-data-entity{background-color:canvastext}}";
10508
+
10296
10509
  /**
10297
- * Filters the options based on the search string.
10298
- * @param options - array of options
10299
- * @param includeDescriptions - determines whether option descriptions are included when filtering options
10300
- * @param searchString - string used to filter the options
10301
- * @param position - whether the search string matches the start of or anywhere in the options
10302
- * @returns filtered array of options
10510
+ * @slot heading - Content will be placed at the top of the data entity.
10303
10511
  */
10304
- const getFilteredMenuOptions = (options, includeDescriptions, searchString, position, labelField = "label") => options.filter((option) => {
10305
- var _a;
10306
- const label = option[labelField].toLowerCase();
10307
- const description = (_a = option.description) === null || _a === void 0 ? void 0 : _a.toLowerCase();
10308
- const lowerSearchString = searchString.toLowerCase();
10309
- return position === "anywhere"
10310
- ? includeDescriptions
10311
- ? label.includes(lowerSearchString) ||
10312
- (description === null || description === void 0 ? void 0 : description.includes(lowerSearchString))
10313
- : label.includes(lowerSearchString)
10314
- : includeDescriptions
10315
- ? label.startsWith(lowerSearchString) ||
10316
- (description === null || description === void 0 ? void 0 : description.startsWith(lowerSearchString))
10317
- : label.startsWith(lowerSearchString);
10318
- });
10512
+ class DataEntity {
10513
+ constructor(hostRef) {
10514
+ registerInstance(this, hostRef);
10515
+ this.heading = undefined;
10516
+ this.size = "default";
10517
+ this.small = false;
10518
+ }
10519
+ render() {
10520
+ const { el, heading, small, size } = this;
10521
+ if (small || size === "small") {
10522
+ Array.from(el.children).forEach((child) => child.setAttribute("size", "small"));
10523
+ }
10524
+ return (hAsync(Host, { class: { small: small || size === "small" } }, hAsync("div", { class: "heading", id: "data-entity-heading" }, hAsync("slot", { name: "heading" }, hAsync("ic-typography", { variant: "h3" }, heading))), hAsync("div", { class: "divider" }), hAsync("ul", { "aria-labelledby": "data-entity-heading", class: "rows" }, hAsync("slot", null))));
10525
+ }
10526
+ get el() { return getElement(this); }
10527
+ static get style() { return icDataEntityCss; }
10528
+ static get cmpMeta() { return {
10529
+ "$flags$": 9,
10530
+ "$tagName$": "ic-data-entity",
10531
+ "$members$": {
10532
+ "heading": [1],
10533
+ "size": [1],
10534
+ "small": [4]
10535
+ },
10536
+ "$listeners$": undefined,
10537
+ "$lazyBundleId$": "-",
10538
+ "$attrsToReflect$": []
10539
+ }; }
10540
+ }
10541
+
10542
+ const icDataRowCss = "/*!@html*/html.sc-ic-data-row{line-height:1.15;-webkit-text-size-adjust:100%}/*!@body*/body.sc-ic-data-row{margin:0}/*!@main*/main.sc-ic-data-row{display:block}/*!@h1*/h1.sc-ic-data-row{font-size:2em;margin:0.67em 0}/*!@hr*/hr.sc-ic-data-row{box-sizing:content-box;height:0;overflow:visible}/*!@pre*/pre.sc-ic-data-row{font-family:monospace, monospace;font-size:1em}/*!@a*/a.sc-ic-data-row{background-color:transparent}/*!@abbr[title]*/abbr[title].sc-ic-data-row{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}/*!@b,\nstrong*/b.sc-ic-data-row,strong.sc-ic-data-row{font-weight:bolder}/*!@code,\nkbd,\nsamp*/code.sc-ic-data-row,kbd.sc-ic-data-row,samp.sc-ic-data-row{font-family:monospace, monospace;font-size:1em}/*!@small*/small.sc-ic-data-row{font-size:80%}/*!@sub,\nsup*/sub.sc-ic-data-row,sup.sc-ic-data-row{font-size:75%;line-height:0;position:relative;vertical-align:baseline}/*!@sub*/sub.sc-ic-data-row{bottom:-0.25em}/*!@sup*/sup.sc-ic-data-row{top:-0.5em}/*!@img*/img.sc-ic-data-row{border-style:none}/*!@button,\ninput,\noptgroup,\nselect,\ntextarea*/button.sc-ic-data-row,input.sc-ic-data-row,optgroup.sc-ic-data-row,select.sc-ic-data-row,textarea.sc-ic-data-row{font-family:inherit;font-size:100%;line-height:1.15;margin:0}/*!@button,\ninput*/button.sc-ic-data-row,input.sc-ic-data-row{overflow:visible}/*!@button,\nselect*/button.sc-ic-data-row,select.sc-ic-data-row{text-transform:none}/*!@button,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"]*/button.sc-ic-data-row,[type=\"button\"].sc-ic-data-row,[type=\"reset\"].sc-ic-data-row,[type=\"submit\"].sc-ic-data-row{-webkit-appearance:button}/*!@button::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner*/button.sc-ic-data-row::-moz-focus-inner,[type=\"button\"].sc-ic-data-row::-moz-focus-inner,[type=\"reset\"].sc-ic-data-row::-moz-focus-inner,[type=\"submit\"].sc-ic-data-row::-moz-focus-inner{border-style:none;padding:0}/*!@button:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring*/button.sc-ic-data-row:-moz-focusring,[type=\"button\"].sc-ic-data-row:-moz-focusring,[type=\"reset\"].sc-ic-data-row:-moz-focusring,[type=\"submit\"].sc-ic-data-row:-moz-focusring{outline:1px dotted ButtonText}/*!@fieldset*/fieldset.sc-ic-data-row{padding:0.35em 0.75em 0.625em}/*!@legend*/legend.sc-ic-data-row{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}/*!@progress*/progress.sc-ic-data-row{vertical-align:baseline}/*!@textarea*/textarea.sc-ic-data-row{overflow:auto}/*!@[type=\"checkbox\"],\n[type=\"radio\"]*/[type=\"checkbox\"].sc-ic-data-row,[type=\"radio\"].sc-ic-data-row{box-sizing:border-box;padding:0}/*!@[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button*/[type=\"number\"].sc-ic-data-row::-webkit-inner-spin-button,[type=\"number\"].sc-ic-data-row::-webkit-outer-spin-button{height:auto}/*!@[type=\"search\"]*/[type=\"search\"].sc-ic-data-row{-webkit-appearance:textfield;outline-offset:-2px}/*!@[type=\"search\"]::-webkit-search-decoration*/[type=\"search\"].sc-ic-data-row::-webkit-search-decoration{-webkit-appearance:none}/*!@::-webkit-file-upload-button*/.sc-ic-data-row::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}/*!@details*/details.sc-ic-data-row{display:block}/*!@summary*/summary.sc-ic-data-row{display:list-item}/*!@template*/template.sc-ic-data-row{display:none}/*!@[hidden]*/[hidden].sc-ic-data-row{display:none}/*!@html,\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*/html.sc-ic-data-row,body.sc-ic-data-row,div.sc-ic-data-row,span.sc-ic-data-row,applet.sc-ic-data-row,object.sc-ic-data-row,iframe.sc-ic-data-row,h1.sc-ic-data-row,h2.sc-ic-data-row,h3.sc-ic-data-row,h4.sc-ic-data-row,h5.sc-ic-data-row,h6.sc-ic-data-row,p.sc-ic-data-row,blockquote.sc-ic-data-row,pre.sc-ic-data-row,a.sc-ic-data-row,abbr.sc-ic-data-row,acronym.sc-ic-data-row,address.sc-ic-data-row,big.sc-ic-data-row,cite.sc-ic-data-row,code.sc-ic-data-row,del.sc-ic-data-row,dfn.sc-ic-data-row,em.sc-ic-data-row,img.sc-ic-data-row,ins.sc-ic-data-row,kbd.sc-ic-data-row,q.sc-ic-data-row,s.sc-ic-data-row,samp.sc-ic-data-row,small.sc-ic-data-row,strike.sc-ic-data-row,strong.sc-ic-data-row,sub.sc-ic-data-row,sup.sc-ic-data-row,tt.sc-ic-data-row,var.sc-ic-data-row,b.sc-ic-data-row,u.sc-ic-data-row,i.sc-ic-data-row,center.sc-ic-data-row,dl.sc-ic-data-row,dt.sc-ic-data-row,dd.sc-ic-data-row,ol.sc-ic-data-row,ul.sc-ic-data-row,li.sc-ic-data-row,fieldset.sc-ic-data-row,form.sc-ic-data-row,label.sc-ic-data-row,legend.sc-ic-data-row,table.sc-ic-data-row,caption.sc-ic-data-row,tbody.sc-ic-data-row,tfoot.sc-ic-data-row,thead.sc-ic-data-row,tr.sc-ic-data-row,th.sc-ic-data-row,td.sc-ic-data-row,article.sc-ic-data-row,aside.sc-ic-data-row,canvas.sc-ic-data-row,details.sc-ic-data-row,embed.sc-ic-data-row,figure.sc-ic-data-row,figcaption.sc-ic-data-row,footer.sc-ic-data-row,header.sc-ic-data-row,hgroup.sc-ic-data-row,menu.sc-ic-data-row,nav.sc-ic-data-row,output.sc-ic-data-row,ruby.sc-ic-data-row,section.sc-ic-data-row,summary.sc-ic-data-row,time.sc-ic-data-row,mark.sc-ic-data-row,audio.sc-ic-data-row,video.sc-ic-data-row{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}/*!@:host*/.sc-ic-data-row-h{position:relative;display:block}/*!@.data*/.data.sc-ic-data-row{display:flex;align-items:center}/*!@.text-cells*/.text-cells.sc-ic-data-row{display:flex;flex-grow:1;min-width:0}/*!@.label*/.label.sc-ic-data-row{width:12.5rem;min-width:12.5rem;margin-right:var(--ic-space-md);color:var(--ic-color-tertiary-text)}/*!@.value*/.value.sc-ic-data-row{flex-grow:1}/*!@slot[name=\"value\"]::slotted(ic-text-field[readonly][hide-label])*/slot[name=\"value\"].sc-ic-data-row-s>ic-text-field[readonly][hide-label]{margin-top:calc(var(--ic-space-xs) * -1)}/*!@slot[name=\"value\"]::slotted(ic-text-field[small][readonly][hide-label])*/slot[name=\"value\"].sc-ic-data-row-s>ic-text-field[small][readonly][hide-label]{margin-top:calc(var(--ic-space-xxs) * -1)}/*!@slot[name=\"value\"]::slotted(ic-text-field[readonly][hide-label][rows])*/slot[name=\"value\"].sc-ic-data-row-s>ic-text-field[readonly][hide-label][rows]{margin-top:calc(var(--ic-space-xxs) * -1 - var(--ic-space-xxxs))}/*!@.end-component*/.end-component.sc-ic-data-row{width:-moz-fit-content;width:fit-content;margin-left:3.5rem}/*!@.divider*/.divider.sc-ic-data-row{margin-top:var(--ic-space-md);height:var(--ic-border-width);background-color:var(--ic-architectural-300)}/*!@:host(.small) .divider*/.small.sc-ic-data-row-h .divider.sc-ic-data-row{margin-top:var(--ic-space-xs)}/*!@:host(.breakpoint-medium) .label*/.breakpoint-medium.sc-ic-data-row-h .label.sc-ic-data-row{width:10rem;min-width:10rem}/*!@:host(.breakpoint-xs) .text-cells*/.breakpoint-xs.sc-ic-data-row-h .text-cells.sc-ic-data-row{flex-direction:column}/*!@:host(.breakpoint-xs) .label*/.breakpoint-xs.sc-ic-data-row-h .label.sc-ic-data-row{width:8rem;margin-bottom:var(--ic-space-xs)}/*!@:host(.breakpoint-xs) .value*/.breakpoint-xs.sc-ic-data-row-h .value.sc-ic-data-row{max-width:95%}/*!@:host(.breakpoint-xs) .end-component*/.breakpoint-xs.sc-ic-data-row-h .end-component.sc-ic-data-row{margin-left:0}@media (forced-colors: active){/*!@.divider*/.divider.sc-ic-data-row{background-color:canvastext}}";
10543
+
10319
10544
  /**
10320
- * Gets count of options where only group title "parent" options have been removed.
10321
- * Disabled options are included in the count.
10322
- * @param options - array of options
10323
- * @returns number of options not including group titles
10545
+ * @slot label - Content will be rendered in the leftmost cell.
10546
+ * @slot value - Content will be rendered to the right of the label.
10547
+ * @slot end-component - Content will be displayed in the rightmost cell.
10324
10548
  */
10325
- const getOptionsWithoutGroupTitlesCount = (options) => {
10326
- const optionsWithoutGroupTitles = [];
10327
- if (options.length > 0 && options.map) {
10328
- options.map((option) => {
10329
- if (option.children) {
10330
- option.children.map((option) => optionsWithoutGroupTitles.push(option));
10331
- }
10332
- else {
10333
- optionsWithoutGroupTitles.push(option);
10334
- }
10335
- });
10549
+ class DataRow {
10550
+ constructor(hostRef) {
10551
+ registerInstance(this, hostRef);
10552
+ this.hasEndComponent = false;
10553
+ this.resizeObserver = null;
10554
+ this.runResizeObserver = () => {
10555
+ this.resizeObserver = new ResizeObserver(() => {
10556
+ this.checkLabelAbove();
10557
+ });
10558
+ this.resizeObserver.observe(this.el);
10559
+ };
10560
+ this.renderCellContent = (cell) => {
10561
+ const isValue = cell === "value";
10562
+ return (hAsync("div", { class: cell }, isSlotUsed$1(this.el, cell) ? (hAsync("slot", { name: cell })) : (hAsync("ic-typography", { variant: isValue
10563
+ ? "body"
10564
+ : this.entitySize === "xs"
10565
+ ? "label"
10566
+ : "subtitle-large" }, isValue ? this.value : this.label))));
10567
+ };
10568
+ this.deviceSize = DEVICE_SIZES.XL;
10569
+ this.entitySize = undefined;
10570
+ this.label = undefined;
10571
+ this.size = "default";
10572
+ this.small = false;
10573
+ this.value = undefined;
10336
10574
  }
10337
- return optionsWithoutGroupTitles.length;
10338
- };
10339
- const isNumeric = (value) => {
10340
- return /^-?\d+$/.test(value);
10341
- };
10342
- const hasValidationStatus = (status, disabled) => {
10343
- return status !== "" && !disabled;
10344
- };
10345
- const onComponentRequiredPropUndefined = (props, component) => {
10346
- for (let i = 0; i < props.length; i++) {
10347
- const { prop, propName } = props[i];
10348
- if (prop === null || prop === undefined) {
10349
- console.error(`No ${propName} specified for ${component} component - prop '${propName}' (web components) / '${kebabToCamelCase(propName)}' (react) required`);
10350
- }
10575
+ disconnectedCallback() {
10576
+ var _a;
10577
+ (_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
10351
10578
  }
10352
- };
10353
- const kebabToCamelCase = (kebabCase) => {
10354
- kebabCase = kebabCase.toLowerCase();
10355
- const individualWords = kebabCase.split("-");
10356
- let camelCase = individualWords[0];
10357
- for (let i = 1; i < individualWords.length; i++) {
10358
- camelCase +=
10359
- individualWords[i].substring(0, 1).toUpperCase() +
10360
- individualWords[i].substring(1);
10579
+ componentWillLoad() {
10580
+ this.deviceSize = getCurrentDeviceSize();
10581
+ this.hasEndComponent = slotHasContent(this.el, "end-component");
10582
+ this.checkLabelAbove();
10361
10583
  }
10362
- return camelCase;
10363
- };
10364
- const checkResizeObserver = (callbackFn) => {
10365
- if (typeof window !== "undefined" &&
10366
- typeof window.ResizeObserver !== "undefined") {
10367
- callbackFn();
10584
+ componentDidLoad() {
10585
+ checkResizeObserver$1(this.runResizeObserver);
10586
+ if (this.hasEndComponent)
10587
+ this.labelEndComponent();
10368
10588
  }
10369
- };
10370
- const getForm = (el) => el.closest("FORM");
10371
- const addFormResetListener = (el, callbackFn) => {
10372
- const form = getForm(el);
10373
- if (form !== null) {
10374
- form.addEventListener("reset", callbackFn);
10589
+ checkLabelAbove() {
10590
+ var _a;
10591
+ const rowSize = ((_a = this.el.shadowRoot.querySelector(".data")) === null || _a === void 0 ? void 0 : _a.clientWidth) + 46;
10592
+ if (rowSize) {
10593
+ this.entitySize =
10594
+ rowSize < DEVICE_SIZES.S ? "xs" : rowSize < DEVICE_SIZES.M ? "m" : "xl";
10595
+ }
10375
10596
  }
10376
- };
10377
- const removeFormResetListener = (el, callbackFn) => {
10378
- const form = getForm(el);
10379
- if (form !== null) {
10380
- form.removeEventListener("reset", callbackFn);
10597
+ labelEndComponent() {
10598
+ this.el.shadowRoot
10599
+ .querySelectorAll("slot[name=end-component]")
10600
+ .forEach((child) => child.setAttribute("aria-label", `for ${this.label} row`));
10381
10601
  }
10382
- };
10383
- const removeDisabledFalse = (disabled, element) => {
10384
- if (!disabled) {
10385
- element.removeAttribute("disabled");
10602
+ render() {
10603
+ const { el, entitySize, hasEndComponent, label, renderCellContent, size, small, value, } = this;
10604
+ return (hAsync(Host, { class: {
10605
+ ["small"]: small || size === "small",
10606
+ ["breakpoint-medium"]: entitySize === "m",
10607
+ ["breakpoint-xs"]: entitySize === "xs",
10608
+ }, role: "listitem" }, hAsync("div", { class: "data" }, hAsync("div", { class: "text-cells" }, (isSlotUsed$1(el, "label") || label) && renderCellContent("label"), (isSlotUsed$1(el, "value") || value) && renderCellContent("value")), hasEndComponent && (hAsync("div", { class: "end-component" }, hAsync("slot", { name: "end-component" })))), hAsync("div", { class: "divider" })));
10386
10609
  }
10387
- };
10388
- const isMacDevice = () => {
10389
- return window.navigator.userAgent.toUpperCase().indexOf("MAC") >= 0;
10390
- };
10391
- const capitalize = (text) => {
10392
- return text.charAt(0).toUpperCase() + text.slice(1);
10393
- };
10610
+ get el() { return getElement(this); }
10611
+ static get style() { return icDataRowCss; }
10612
+ static get cmpMeta() { return {
10613
+ "$flags$": 9,
10614
+ "$tagName$": "ic-data-row",
10615
+ "$members$": {
10616
+ "label": [1],
10617
+ "size": [1],
10618
+ "small": [4],
10619
+ "value": [1],
10620
+ "deviceSize": [32],
10621
+ "entitySize": [32]
10622
+ },
10623
+ "$listeners$": undefined,
10624
+ "$lazyBundleId$": "-",
10625
+ "$attrsToReflect$": []
10626
+ }; }
10627
+ }
10628
+
10629
+ var unsortedIcon = `<svg focusable="false" aria-hidden="true" viewBox="0 0 24 24">
10630
+ <path d="M9 3 5 6.99h3V14h2V6.99h3L9 3zm7 14.01V10h-2v7.01h-3L15 21l4-3.99h-3z"></path>
10631
+ </svg>`;
10632
+
10633
+ var ascendingIcon = `<svg focusable="false" aria-hidden="true" viewBox="0 0 24 24" style="transform: rotate(-90deg);">
10634
+ <path d="M16.01 11H4v2h12.01v3L20 12l-3.99-4z"></path>
10635
+ </svg>`;
10636
+
10637
+ var descendingIcon = `<svg focusable="false" aria-hidden="true" viewBox="0 0 24 24" style="transform: rotate(90deg)">
10638
+ <path d="M16.01 11H4v2h12.01v3L20 12l-3.99-4z"></path>
10639
+ </svg>`;
10394
10640
 
10395
10641
  const icDataTableCss = "/*!@:host*/.sc-ic-data-table-h{position:relative;display:block;height:100%;max-height:100%}/*!@.table-container*/.table-container.sc-ic-data-table{position:relative;height:calc(100% - var(--ic-space-xxxs))}/*!@ic-loading-indicator*/ic-loading-indicator.sc-ic-data-table{position:sticky;top:20px}/*!@.table-row-container*/.table-row-container.sc-ic-data-table{position:relative;height:100%;overflow:auto;transition:var(--ic-easing-transition-fast);overflow-anchor:none}/*!@:host([show-pagination=\"true\"]) .table-row-container*/[show-pagination=\"true\"].sc-ic-data-table-h .table-row-container.sc-ic-data-table{height:calc(100% - 3.5625rem)}/*!@table*/table.sc-ic-data-table{table-layout:fixed;border-spacing:0;width:100%}/*!@.table-row-container:focus*/.table-row-container.sc-ic-data-table:focus{outline:none;box-shadow:var(--ic-border-focus);border-radius:var(--ic-border-radius);transition:var(--ic-easing-transition-fast);z-index:1}/*!@:host([embedded=\"true\"]) .table-row-container*/[embedded=\"true\"].sc-ic-data-table-h .table-row-container.sc-ic-data-table{border:var(--ic-border-light)}/*!@.column-header-sticky*/.column-header-sticky.sc-ic-data-table{position:sticky;top:0;z-index:1}/*!@.column-header-overlay*/.column-header-overlay.sc-ic-data-table{position:sticky;top:0;z-index:1;box-shadow:0 0.375rem var(--ic-space-xs) calc(var(--ic-space-xxs * -1))\n rgb(0 0 0 / 20%)}/*!@.row-header-sticky*/.row-header-sticky.sc-ic-data-table{position:sticky;left:0}/*!@.column-header,\n.table-row*/.column-header.sc-ic-data-table,.table-row.sc-ic-data-table{box-sizing:border-box}/*!@.table-row-selected*/.table-row-selected.sc-ic-data-table{background-color:var(--ic-table-row-selected) !important}/*!@.sort-button*/.sort-button.sc-ic-data-table{margin-left:auto}/*!@.sort-button:hover*/.sort-button.sc-ic-data-table:hover{background-color:var(--ic-action-dark-bg-hover)}/*!@.sort-button:active*/.sort-button.sc-ic-data-table:active{background-color:var(--ic-action-dark-bg-active)}/*!@.sort-button svg*/.sort-button.sc-ic-data-table svg.sc-ic-data-table{color:var(--ic-architectural-black)}/*!@.sort-button-unsorted svg*/.sort-button-unsorted.sc-ic-data-table svg.sc-ic-data-table{color:var(--ic-color-tertiary-text)}/*!@.table-density-dense*/.table-density-dense.sc-ic-data-table{padding:var(--ic-space-xxs) var(--ic-space-xs) !important}/*!@.text-dense*/.text-dense.sc-ic-data-table{font-size:var(--ic-font-size-label)}/*!@.table-density-spacious*/.table-density-spacious.sc-ic-data-table{padding:0.625rem var(--ic-space-xs) !important}/*!@.text-spacious*/.text-spacious.sc-ic-data-table{font-size:1.125rem}/*!@.column-header-text*/.column-header-text.sc-ic-data-table{font-weight:var(--ic-font-weight-bold)}/*!@.column-header,\n.row-header*/.column-header.sc-ic-data-table,.row-header.sc-ic-data-table{text-align:left;padding:var(--ic-space-xs);background-color:var(--ic-architectural-40);border-right:var(--ic-border-light);border-bottom:var(--ic-border-light)}/*!@.column-header:last-child*/.column-header.sc-ic-data-table:last-child{border-right:none}/*!@.scrollable .column-header:last-child*/.scrollable.sc-ic-data-table .column-header.sc-ic-data-table:last-child{border-right:var(--ic-border-light) !important}/*!@:host([embedded=\"true\"]) tr:last-child .table-cell,\n:host([embedded=\"true\"]) tr:last-child .row-header*/[embedded=\"true\"].sc-ic-data-table-h tr.sc-ic-data-table:last-child .table-cell.sc-ic-data-table,[embedded=\"true\"].sc-ic-data-table-h tr.sc-ic-data-table:last-child .row-header.sc-ic-data-table{border-bottom:none}/*!@.column-header-alignment-left,\n.row-header-alignment-left,\n.cell-alignment-left*/.column-header-alignment-left.sc-ic-data-table,.row-header-alignment-left.sc-ic-data-table,.cell-alignment-left.sc-ic-data-table{text-align:left !important;justify-content:start !important}/*!@.column-header-alignment-right,\n.row-header-alignment-right,\n.cell-alignment-right*/.column-header-alignment-right.sc-ic-data-table,.row-header-alignment-right.sc-ic-data-table,.cell-alignment-right.sc-ic-data-table{text-align:right !important;justify-content:end !important}/*!@.column-header-alignment-center,\n.row-header-alignment-center,\n.cell-alignment-center*/.column-header-alignment-center.sc-ic-data-table,.row-header-alignment-center.sc-ic-data-table,.cell-alignment-center.sc-ic-data-table{text-align:center !important;justify-content:center !important}/*!@.table-row:nth-child(even)*/.table-row.sc-ic-data-table:nth-child(even){background-color:var(--ic-architectural-20)}/*!@.table-cell*/.table-cell.sc-ic-data-table{padding:var(--ic-space-xs);border-bottom:solid var(--ic-architectural-100) var(--ic-space-1px)}/*!@.data-type-string*/.data-type-string.sc-ic-data-table{text-align:left;vertical-align:top}/*!@.data-type-number,\n.data-type-date*/.data-type-number.sc-ic-data-table,.data-type-date.sc-ic-data-table{text-align:right;justify-content:end;vertical-align:top}/*!@.cell-alignment-top*/.cell-alignment-top.sc-ic-data-table{vertical-align:top}/*!@.cell-alignment-middle*/.cell-alignment-middle.sc-ic-data-table{vertical-align:middle}/*!@.cell-alignment-bottom*/.cell-alignment-bottom.sc-ic-data-table{vertical-align:bottom}/*!@.cell-emphasis-low*/.cell-emphasis-low.sc-ic-data-table{color:var(--ic-color-secondary-text)}/*!@.cell-emphasis-high*/.cell-emphasis-high.sc-ic-data-table{font-weight:var(--ic-font-weight-bold)}/*!@.pagination-container*/.pagination-container.sc-ic-data-table{background-color:var(--ic-architectural-40);border-top:var(--ic-border-light)}/*!@.screen-reader-sort-text,\n.table-caption*/.screen-reader-sort-text.sc-ic-data-table,.table-caption.sc-ic-data-table{position:absolute;left:-100rem}/*!@.table-cell,\n.column-header,\n.row-header*/.table-cell.sc-ic-data-table,.column-header.sc-ic-data-table,.row-header.sc-ic-data-table{word-wrap:break-word;white-space:pre-wrap}/*!@.loading-empty*/.loading-empty.sc-ic-data-table{padding:var(--ic-space-xl) var(--ic-space-xxl);margin-top:var(--ic-space-xl)}/*!@.updating-state*/.updating-state.sc-ic-data-table{padding:0;border-bottom:var(--ic-border-light)}/*!@.updating-state-headers*/.updating-state-headers.sc-ic-data-table{border-bottom:none}/*!@.loading*/.loading.sc-ic-data-table{position:absolute;left:calc(50% - 5.9741rem);opacity:0;transition:opacity var(--ic-transition-duration-slow)}/*!@.loading.show-background*/.loading.show-background.sc-ic-data-table{background-color:var(--ic-architectural-white);border:var(--ic-border-light)}/*!@.loading.show*/.loading.show.sc-ic-data-table{opacity:1}/*!@.icon,\n::slotted(svg)*/.icon.sc-ic-data-table,.sc-ic-data-table-s>svg{height:var(--ic-space-lg);width:var(--ic-space-lg);margin-right:var(--ic-space-xxs)}/*!@.column-header-alignment-right > .icon,\n.row-header-alignment-right > .icon,\n.cell-alignment-right > .icon,\n.column-header-alignment-right > ::slotted(svg),\n.row-header-alignment-right > ::slotted(svg),\n.cell-alignment-right > ::slotted(svg)*/.column-header-alignment-right.sc-ic-data-table>.icon.sc-ic-data-table,.row-header-alignment-right.sc-ic-data-table>.icon.sc-ic-data-table,.cell-alignment-right.sc-ic-data-table>.icon.sc-ic-data-table,.column-header-alignment-right>.sc-ic-data-table-s>svg,.row-header-alignment-right>.sc-ic-data-table-s>svg,.cell-alignment-right>.sc-ic-data-table-s>svg{margin-right:auto}/*!@.column-header-alignment-center > ic-typography,\n.row-header-alignment-right > ic-typography,\n.cell-alignment-center > ic-typography*/.column-header-alignment-center.sc-ic-data-table>ic-typography.sc-ic-data-table,.row-header-alignment-right.sc-ic-data-table>ic-typography.sc-ic-data-table,.cell-alignment-center.sc-ic-data-table>ic-typography.sc-ic-data-table{flex:1}/*!@.icon > svg*/.icon.sc-ic-data-table>svg.sc-ic-data-table{height:var(--ic-space-lg);width:var(--ic-space-lg);display:inline-block}@media screen and (min-width: 576px){/*!@.column-header-inner-container*/.column-header-inner-container.sc-ic-data-table{display:flex;align-items:center}/*!@.cell-container*/.cell-container.sc-ic-data-table{display:flex}}";
10396
10642
 
@@ -13027,6 +13273,14 @@ class DatePicker {
13027
13273
  this.minDate = createDate(this.min, this.dateFormat);
13028
13274
  }
13029
13275
  }
13276
+ watchStartOfWeekHandler() {
13277
+ this.orderedDaysOfWeek = this.daysOfWeek
13278
+ .slice(this.startOfWeek)
13279
+ .concat(this.daysOfWeek.slice(0, this.startOfWeek));
13280
+ if (this.calendarOpen) {
13281
+ this.updateMonthInView();
13282
+ }
13283
+ }
13030
13284
  watchOpenHandler() {
13031
13285
  if (this.calendarOpen) {
13032
13286
  if (this.inputEl) {
@@ -13106,9 +13360,7 @@ class DatePicker {
13106
13360
  onComponentRequiredPropUndefined([{ prop: this.label, propName: "label" }], "Date Picker");
13107
13361
  this.monthNames = stringEnumToArray(IcDateInputMonths);
13108
13362
  this.daysOfWeek = stringEnumToArray(IcShortDayNames);
13109
- this.orderedDaysOfWeek = this.daysOfWeek
13110
- .splice(this.startOfWeek, this.daysOfWeek.length)
13111
- .concat(this.daysOfWeek.splice(0, this.startOfWeek));
13363
+ this.watchStartOfWeekHandler();
13112
13364
  this.watchMaxHandler();
13113
13365
  this.watchMinHandler();
13114
13366
  }
@@ -13190,6 +13442,7 @@ class DatePicker {
13190
13442
  "disablePast": ["watchDisablePastHandler"],
13191
13443
  "max": ["watchMaxHandler"],
13192
13444
  "min": ["watchMinHandler"],
13445
+ "startOfWeek": ["watchStartOfWeekHandler"],
13193
13446
  "calendarOpen": ["watchOpenHandler"],
13194
13447
  "focussedDate": ["watchFocussedDateHandler"],
13195
13448
  "monthInView": ["watchMonthInViewHandler"],
@@ -13706,6 +13959,15 @@ const icEmptyStateCss = "/*!@:host*/.sc-ic-empty-state-h{gap:var(--ic-space-xs);
13706
13959
  class EmptyState {
13707
13960
  constructor(hostRef) {
13708
13961
  registerInstance(this, hostRef);
13962
+ this.hostMutationObserver = null;
13963
+ this.hostMutationCallback = (mutationList) => {
13964
+ if (mutationList.some(({ type, addedNodes, removedNodes }) => type === "childList"
13965
+ ? checkSlotInChildMutations$1(addedNodes, removedNodes, [
13966
+ "image",
13967
+ "actions",
13968
+ ])
13969
+ : false)) ;
13970
+ };
13709
13971
  this.aligned = "left";
13710
13972
  this.body = undefined;
13711
13973
  this.bodyMaxLines = undefined;
@@ -13713,9 +13975,17 @@ class EmptyState {
13713
13975
  this.imageSize = "default";
13714
13976
  this.subheading = undefined;
13715
13977
  }
13978
+ disconnectedCallback() {
13979
+ var _a;
13980
+ (_a = this.hostMutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
13981
+ }
13716
13982
  componentDidLoad() {
13717
13983
  !isSlotUsed$1(this.el, "heading") &&
13718
13984
  onComponentRequiredPropUndefined$1([{ prop: this.heading, propName: "heading" }], "Empty State");
13985
+ this.hostMutationObserver = new MutationObserver(this.hostMutationCallback);
13986
+ this.hostMutationObserver.observe(this.el, {
13987
+ childList: true,
13988
+ });
13719
13989
  }
13720
13990
  render() {
13721
13991
  const { aligned, body, bodyMaxLines, heading, imageSize, subheading } = this;
@@ -14008,6 +14278,12 @@ const icHeroCss = "/*!@html*/html.sc-ic-hero{line-height:1.15;-webkit-text-size-
14008
14278
  class Hero {
14009
14279
  constructor(hostRef) {
14010
14280
  registerInstance(this, hostRef);
14281
+ this.hostMutationObserver = null;
14282
+ this.hostMutationCallback = (mutationList) => {
14283
+ if (mutationList.some(({ type, addedNodes, removedNodes }) => type === "childList"
14284
+ ? checkSlotInChildMutations$1(addedNodes, removedNodes, "secondary")
14285
+ : false)) ;
14286
+ };
14011
14287
  this.foregroundColor = getThemeForegroundColor();
14012
14288
  this.rightContent = false;
14013
14289
  this.leftContentFullWidth = !this.rightContent && this.secondaryHeading === undefined;
@@ -14023,12 +14299,20 @@ class Hero {
14023
14299
  this.small = false;
14024
14300
  this.subheading = undefined;
14025
14301
  }
14302
+ disconnectedCallback() {
14303
+ var _a;
14304
+ (_a = this.hostMutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
14305
+ }
14026
14306
  componentWillLoad() {
14027
14307
  this.rightContent = slotHasContent(this.el, "secondary");
14028
14308
  }
14029
14309
  componentDidLoad() {
14030
14310
  !isSlotUsed$1(this.el, "heading") &&
14031
14311
  onComponentRequiredPropUndefined$1([{ prop: this.heading, propName: "heading" }], "Hero");
14312
+ this.hostMutationObserver = new MutationObserver(this.hostMutationCallback);
14313
+ this.hostMutationObserver.observe(this.el, {
14314
+ childList: true,
14315
+ });
14032
14316
  }
14033
14317
  componentWillRender() {
14034
14318
  this.rightContent = slotHasContent(this.el, "secondary");
@@ -14285,7 +14569,7 @@ class InputComponentContainer {
14285
14569
  registerInstance(this, hostRef);
14286
14570
  this.hostMutationCallback = (mutationList) => {
14287
14571
  if (mutationList.some(({ type, addedNodes, removedNodes }) => type === "childList"
14288
- ? checkSlotInChildMutations(addedNodes, removedNodes, "left-icon")
14572
+ ? checkSlotInChildMutations$1(addedNodes, removedNodes, "left-icon")
14289
14573
  : false)) ;
14290
14574
  };
14291
14575
  this.appearance = "default";
@@ -14541,7 +14825,7 @@ class Link {
14541
14825
  (_a = this.el.shadowRoot.querySelector("a")) === null || _a === void 0 ? void 0 : _a.focus();
14542
14826
  }
14543
14827
  updateTheme(newTheme = null) {
14544
- const theme = getThemeFromContext(this.el, newTheme);
14828
+ const theme = getThemeFromContext$1(this.el, newTheme);
14545
14829
  if (theme !== IcThemeForegroundEnum$1.Default) {
14546
14830
  this.appearance = theme;
14547
14831
  }
@@ -22969,7 +23253,7 @@ class Select$1 {
22969
23253
  this.el.getAttribute(attributeName);
22970
23254
  }
22971
23255
  else if (type === "childList") {
22972
- checkSlotInChildMutations(addedNodes, removedNodes, "icon");
23256
+ checkSlotInChildMutations$1(addedNodes, removedNodes, "icon");
22973
23257
  }
22974
23258
  });
22975
23259
  };
@@ -26164,7 +26448,7 @@ class TextField {
26164
26448
  this.el.getAttribute(attributeName);
26165
26449
  }
26166
26450
  else if (type === "childList") {
26167
- checkSlotInChildMutations(addedNodes, removedNodes, "icon");
26451
+ checkSlotInChildMutations$1(addedNodes, removedNodes, "icon");
26168
26452
  }
26169
26453
  });
26170
26454
  };
@@ -27592,6 +27876,7 @@ registerComponents([
27592
27876
  Breadcrumb,
27593
27877
  BreadcrumbGroup,
27594
27878
  Button,
27879
+ Card$1,
27595
27880
  Card,
27596
27881
  Checkbox,
27597
27882
  CheckboxGroup,