@cscfi/csc-ui 1.2.4 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (543) hide show
  1. package/dist/cjs/c-accordion-item.cjs.entry.js +1 -1
  2. package/dist/cjs/c-accordion-item.cjs.entry.js.map +1 -1
  3. package/dist/cjs/c-accordion.cjs.entry.js +1 -1
  4. package/dist/cjs/c-accordion.cjs.entry.js.map +1 -1
  5. package/dist/cjs/c-alert.cjs.entry.js +1 -1
  6. package/dist/cjs/c-alert.cjs.entry.js.map +1 -1
  7. package/dist/cjs/c-autocomplete_34.cjs.entry.js +2602 -0
  8. package/dist/cjs/c-autocomplete_34.cjs.entry.js.map +1 -0
  9. package/dist/cjs/c-data-table.cjs.entry.js +1 -1
  10. package/dist/cjs/c-data-table.cjs.entry.js.map +1 -1
  11. package/dist/cjs/c-link.cjs.entry.js +1 -1
  12. package/dist/cjs/c-link.cjs.entry.js.map +1 -1
  13. package/dist/cjs/c-list-item-title.cjs.entry.js +1 -1
  14. package/dist/cjs/c-list-item-title.cjs.entry.js.map +1 -1
  15. package/dist/cjs/c-list-item.cjs.entry.js +1 -1
  16. package/dist/cjs/c-list-item.cjs.entry.js.map +1 -1
  17. package/dist/cjs/c-list.cjs.entry.js +1 -1
  18. package/dist/cjs/c-list.cjs.entry.js.map +1 -1
  19. package/dist/cjs/c-login-button.cjs.entry.js +1 -1
  20. package/dist/cjs/c-login-button.cjs.entry.js.map +1 -1
  21. package/dist/cjs/c-login-buttons.cjs.entry.js +1 -1
  22. package/dist/cjs/c-login-buttons.cjs.entry.js.map +1 -1
  23. package/dist/cjs/c-login-card-content.cjs.entry.js +1 -1
  24. package/dist/cjs/c-login-card-content.cjs.entry.js.map +1 -1
  25. package/dist/cjs/c-login-card-title.cjs.entry.js +1 -1
  26. package/dist/cjs/c-login-card-title.cjs.entry.js.map +1 -1
  27. package/dist/cjs/c-login-card.cjs.entry.js +1 -1
  28. package/dist/cjs/c-login-card.cjs.entry.js.map +1 -1
  29. package/dist/cjs/c-menu_2.cjs.entry.js +2 -2
  30. package/dist/cjs/c-menu_2.cjs.entry.js.map +1 -1
  31. package/dist/cjs/c-modal.cjs.entry.js +1 -1
  32. package/dist/cjs/c-modal.cjs.entry.js.map +1 -1
  33. package/dist/cjs/c-option-value.cjs.entry.js +1 -1
  34. package/dist/cjs/c-option-value.cjs.entry.js.map +1 -1
  35. package/dist/cjs/{c-pagination_2.cjs.entry.js → c-pagination.cjs.entry.js} +2 -15
  36. package/dist/cjs/c-pagination.cjs.entry.js.map +1 -0
  37. package/dist/cjs/c-progress-bar.cjs.entry.js +1 -1
  38. package/dist/cjs/c-progress-bar.cjs.entry.js.map +1 -1
  39. package/dist/cjs/c-row.cjs.entry.js +1 -1
  40. package/dist/cjs/c-row.cjs.entry.js.map +1 -1
  41. package/dist/cjs/c-slider.cjs.entry.js +1 -1
  42. package/dist/cjs/c-slider.cjs.entry.js.map +1 -1
  43. package/dist/cjs/c-status.cjs.entry.js +1 -1
  44. package/dist/cjs/c-status.cjs.entry.js.map +1 -1
  45. package/dist/cjs/c-step.cjs.entry.js +1 -1
  46. package/dist/cjs/c-step.cjs.entry.js.map +1 -1
  47. package/dist/cjs/c-steps.cjs.entry.js +1 -1
  48. package/dist/cjs/c-steps.cjs.entry.js.map +1 -1
  49. package/dist/cjs/c-swiper-tab.cjs.entry.js +1 -1
  50. package/dist/cjs/c-swiper-tab.cjs.entry.js.map +1 -1
  51. package/dist/cjs/c-swiper.cjs.entry.js +1 -1
  52. package/dist/cjs/c-swiper.cjs.entry.js.map +1 -1
  53. package/dist/cjs/c-tab-buttons.cjs.entry.js +1 -1
  54. package/dist/cjs/c-tab-buttons.cjs.entry.js.map +1 -1
  55. package/dist/cjs/c-tab-item.cjs.entry.js +1 -1
  56. package/dist/cjs/c-tab-item.cjs.entry.js.map +1 -1
  57. package/dist/cjs/c-tab-items.cjs.entry.js +1 -1
  58. package/dist/cjs/c-tab-items.cjs.entry.js.map +1 -1
  59. package/dist/cjs/c-tab.cjs.entry.js +1 -1
  60. package/dist/cjs/c-tab.cjs.entry.js.map +1 -1
  61. package/dist/cjs/c-tabs.cjs.entry.js +1 -1
  62. package/dist/cjs/c-tabs.cjs.entry.js.map +1 -1
  63. package/dist/cjs/c-tag.cjs.entry.js +1 -1
  64. package/dist/cjs/c-tag.cjs.entry.js.map +1 -1
  65. package/dist/cjs/c-tags.cjs.entry.js +1 -1
  66. package/dist/cjs/c-tags.cjs.entry.js.map +1 -1
  67. package/dist/cjs/c-toast.cjs.entry.js +1 -1
  68. package/dist/cjs/c-toast.cjs.entry.js.map +1 -1
  69. package/dist/cjs/c-toasts.cjs.entry.js +1 -1
  70. package/dist/cjs/c-toasts.cjs.entry.js.map +1 -1
  71. package/dist/cjs/csc-ui.cjs.js +1 -1
  72. package/dist/cjs/index-91ba22ab.js +4 -44
  73. package/dist/cjs/loader.cjs.js +1 -1
  74. package/dist/collection/components/c-accordion/c-accordion.css +4 -0
  75. package/dist/collection/components/c-accordion-item/c-accordion-item.css +4 -0
  76. package/dist/collection/components/c-alert/c-alert.css +4 -0
  77. package/dist/collection/components/c-autocomplete/c-autocomplete.css +4 -0
  78. package/dist/collection/components/c-badge/c-badge.css +4 -0
  79. package/dist/collection/components/c-button/c-button.css +4 -0
  80. package/dist/collection/components/c-card/c-card.css +4 -0
  81. package/dist/collection/components/c-card-actions/c-card-actions.css +4 -0
  82. package/dist/collection/components/c-card-content/c-card-content.css +4 -0
  83. package/dist/collection/components/c-card-title/c-card-title.css +4 -0
  84. package/dist/collection/components/c-checkbox/c-checkbox.css +4 -0
  85. package/dist/collection/components/c-csc-logo/c-csc-logo.css +4 -0
  86. package/dist/collection/components/c-data-table/c-data-table.css +4 -0
  87. package/dist/collection/components/c-dropdown/c-dropdown.css +4 -0
  88. package/dist/collection/components/c-dropdown/c-dropdown.js +10 -1
  89. package/dist/collection/components/c-dropdown/c-dropdown.js.map +1 -1
  90. package/dist/collection/components/c-icon/c-icon.css +4 -0
  91. package/dist/collection/components/c-icon-button/c-icon-button.css +4 -0
  92. package/dist/collection/components/c-input/c-input.css +4 -0
  93. package/dist/collection/components/c-link/c-link.css +4 -0
  94. package/dist/collection/components/c-list/c-list.css +4 -0
  95. package/dist/collection/components/c-list-item/c-list-item.css +4 -0
  96. package/dist/collection/components/c-list-item-title/c-list-item-title.css +4 -0
  97. package/dist/collection/components/c-loader/c-loader.css +4 -0
  98. package/dist/collection/components/c-login-button/c-login-button.css +4 -0
  99. package/dist/collection/components/c-login-buttons/c-login-buttons.css +4 -0
  100. package/dist/collection/components/c-login-card/c-login-card.css +4 -0
  101. package/dist/collection/components/c-login-card-content/c-login-card-content.css +4 -0
  102. package/dist/collection/components/c-login-card-title/c-login-card-title.css +4 -0
  103. package/dist/collection/components/c-main/c-main.css +28 -2
  104. package/dist/collection/components/c-main/c-main.js +26 -1
  105. package/dist/collection/components/c-main/c-main.js.map +1 -1
  106. package/dist/collection/components/c-menu/c-menu.css +4 -0
  107. package/dist/collection/components/c-menu-items/c-menu-items.css +4 -0
  108. package/dist/collection/components/c-message/c-message.css +4 -0
  109. package/dist/collection/components/c-modal/c-modal.css +4 -0
  110. package/dist/collection/components/c-navigation-button/c-navigation-button.css +4 -0
  111. package/dist/collection/components/c-option/c-option.css +4 -0
  112. package/dist/collection/components/c-option-value/c-option-value.css +4 -0
  113. package/dist/collection/components/c-otp-input/c-otp-input.css +4 -0
  114. package/dist/collection/components/c-page/c-page.css +20 -14
  115. package/dist/collection/components/c-page/c-page.js +1 -1
  116. package/dist/collection/components/c-page/c-page.js.map +1 -1
  117. package/dist/collection/components/c-pagination/c-pagination.css +4 -0
  118. package/dist/collection/components/c-progress-bar/c-progress-bar.css +4 -0
  119. package/dist/collection/components/c-radio/c-radio.css +4 -0
  120. package/dist/collection/components/c-radio-group/c-radio-group.css +4 -0
  121. package/dist/collection/components/c-ripple/c-ripple.css +4 -0
  122. package/dist/collection/components/c-row/c-row.css +4 -0
  123. package/dist/collection/components/c-select/c-select.css +4 -0
  124. package/dist/collection/components/c-side-navigation/c-side-navigation.css +4 -0
  125. package/dist/collection/components/c-side-navigation/c-side-navigation.js.map +1 -1
  126. package/dist/collection/components/c-side-navigation-item/c-side-navigation-item.css +4 -0
  127. package/dist/collection/components/c-side-navigation-title/c-side-navigation-title.css +4 -0
  128. package/dist/collection/components/c-slider/c-slider.css +4 -0
  129. package/dist/collection/components/c-spacer/c-spacer.css +4 -0
  130. package/dist/collection/components/c-spinner/c-spinner.css +4 -0
  131. package/dist/collection/components/c-status/c-status.css +4 -0
  132. package/dist/collection/components/c-step/c-step.css +4 -0
  133. package/dist/collection/components/c-steps/c-steps.css +4 -0
  134. package/dist/collection/components/c-sub-navigation-item/c-sub-navigation-item.css +4 -0
  135. package/dist/collection/components/c-swiper/c-swiper.css +4 -0
  136. package/dist/collection/components/c-swiper-tab/c-swiper-tab.css +4 -0
  137. package/dist/collection/components/c-switch/c-switch.css +4 -0
  138. package/dist/collection/components/c-tab/c-tab.css +4 -0
  139. package/dist/collection/components/c-tab-buttons/c-tab-buttons.css +4 -0
  140. package/dist/collection/components/c-tab-item/c-tab-item.css +4 -0
  141. package/dist/collection/components/c-tab-items/c-tab-items.css +4 -0
  142. package/dist/collection/components/c-table/c-table.css +4 -0
  143. package/dist/collection/components/c-tabs/c-tabs.css +4 -0
  144. package/dist/collection/components/c-tag/c-tag.css +4 -0
  145. package/dist/collection/components/c-tags/c-tags.css +4 -0
  146. package/dist/collection/components/c-text-field/c-text-field.css +4 -0
  147. package/dist/collection/components/c-toast/c-toast.css +4 -0
  148. package/dist/collection/components/c-toasts/c-toasts.css +4 -0
  149. package/dist/collection/components/c-toolbar/c-toolbar.css +4 -0
  150. package/dist/components/c-accordion-item.js +1 -1
  151. package/dist/components/c-accordion-item.js.map +1 -1
  152. package/dist/components/c-accordion.js +1 -1
  153. package/dist/components/c-accordion.js.map +1 -1
  154. package/dist/components/c-alert.js +1 -1
  155. package/dist/components/c-alert.js.map +1 -1
  156. package/dist/components/c-autocomplete.js +1 -1
  157. package/dist/components/c-autocomplete.js.map +1 -1
  158. package/dist/components/c-badge2.js +1 -1
  159. package/dist/components/c-badge2.js.map +1 -1
  160. package/dist/components/c-button.js +1 -1
  161. package/dist/components/c-button.js.map +1 -1
  162. package/dist/components/c-card-actions2.js +1 -1
  163. package/dist/components/c-card-actions2.js.map +1 -1
  164. package/dist/components/c-card-content.js +1 -1
  165. package/dist/components/c-card-content.js.map +1 -1
  166. package/dist/components/c-card-title.js +1 -1
  167. package/dist/components/c-card-title.js.map +1 -1
  168. package/dist/components/c-card.js +1 -1
  169. package/dist/components/c-card.js.map +1 -1
  170. package/dist/components/c-checkbox2.js +1 -1
  171. package/dist/components/c-checkbox2.js.map +1 -1
  172. package/dist/components/c-csc-logo.js +1 -1
  173. package/dist/components/c-csc-logo.js.map +1 -1
  174. package/dist/components/c-data-table.js +1 -1
  175. package/dist/components/c-data-table.js.map +1 -1
  176. package/dist/components/c-dropdown2.js +11 -2
  177. package/dist/components/c-dropdown2.js.map +1 -1
  178. package/dist/components/c-icon-button2.js +1 -1
  179. package/dist/components/c-icon-button2.js.map +1 -1
  180. package/dist/components/c-icon2.js +1 -1
  181. package/dist/components/c-icon2.js.map +1 -1
  182. package/dist/components/c-input2.js +1 -1
  183. package/dist/components/c-input2.js.map +1 -1
  184. package/dist/components/c-link.js +1 -1
  185. package/dist/components/c-link.js.map +1 -1
  186. package/dist/components/c-list-item-title.js +1 -1
  187. package/dist/components/c-list-item-title.js.map +1 -1
  188. package/dist/components/c-list-item.js +1 -1
  189. package/dist/components/c-list-item.js.map +1 -1
  190. package/dist/components/c-list.js +1 -1
  191. package/dist/components/c-list.js.map +1 -1
  192. package/dist/components/c-loader2.js +1 -1
  193. package/dist/components/c-loader2.js.map +1 -1
  194. package/dist/components/c-login-button.js +1 -1
  195. package/dist/components/c-login-button.js.map +1 -1
  196. package/dist/components/c-login-buttons.js +1 -1
  197. package/dist/components/c-login-buttons.js.map +1 -1
  198. package/dist/components/c-login-card-content.js +1 -1
  199. package/dist/components/c-login-card-content.js.map +1 -1
  200. package/dist/components/c-login-card-title.js +1 -1
  201. package/dist/components/c-login-card-title.js.map +1 -1
  202. package/dist/components/c-login-card.js +1 -1
  203. package/dist/components/c-login-card.js.map +1 -1
  204. package/dist/components/c-main.js +6 -3
  205. package/dist/components/c-main.js.map +1 -1
  206. package/dist/components/c-menu-items2.js +1 -1
  207. package/dist/components/c-menu-items2.js.map +1 -1
  208. package/dist/components/c-menu2.js +1 -1
  209. package/dist/components/c-menu2.js.map +1 -1
  210. package/dist/components/c-message2.js +1 -1
  211. package/dist/components/c-message2.js.map +1 -1
  212. package/dist/components/c-modal.js +1 -1
  213. package/dist/components/c-modal.js.map +1 -1
  214. package/dist/components/c-navigation-button.js +1 -1
  215. package/dist/components/c-navigation-button.js.map +1 -1
  216. package/dist/components/c-option-value.js +1 -1
  217. package/dist/components/c-option-value.js.map +1 -1
  218. package/dist/components/c-option.js +1 -1
  219. package/dist/components/c-option.js.map +1 -1
  220. package/dist/components/c-otp-input.js +1 -1
  221. package/dist/components/c-otp-input.js.map +1 -1
  222. package/dist/components/c-page.js +2 -2
  223. package/dist/components/c-page.js.map +1 -1
  224. package/dist/components/c-pagination2.js +1 -1
  225. package/dist/components/c-pagination2.js.map +1 -1
  226. package/dist/components/c-progress-bar.js +1 -1
  227. package/dist/components/c-progress-bar.js.map +1 -1
  228. package/dist/components/c-radio-group.js +1 -1
  229. package/dist/components/c-radio-group.js.map +1 -1
  230. package/dist/components/c-radio.js +1 -1
  231. package/dist/components/c-radio.js.map +1 -1
  232. package/dist/components/c-ripple2.js +1 -1
  233. package/dist/components/c-ripple2.js.map +1 -1
  234. package/dist/components/c-row.js +1 -1
  235. package/dist/components/c-row.js.map +1 -1
  236. package/dist/components/c-select.js +1 -1
  237. package/dist/components/c-select.js.map +1 -1
  238. package/dist/components/c-side-navigation-item.js +1 -1
  239. package/dist/components/c-side-navigation-item.js.map +1 -1
  240. package/dist/components/c-side-navigation-title.js +1 -1
  241. package/dist/components/c-side-navigation-title.js.map +1 -1
  242. package/dist/components/c-side-navigation.js +1 -1
  243. package/dist/components/c-side-navigation.js.map +1 -1
  244. package/dist/components/c-slider.js +1 -1
  245. package/dist/components/c-slider.js.map +1 -1
  246. package/dist/components/c-spacer2.js +1 -1
  247. package/dist/components/c-spacer2.js.map +1 -1
  248. package/dist/components/c-spinner2.js +1 -1
  249. package/dist/components/c-spinner2.js.map +1 -1
  250. package/dist/components/c-status.js +1 -1
  251. package/dist/components/c-status.js.map +1 -1
  252. package/dist/components/c-step.js +1 -1
  253. package/dist/components/c-step.js.map +1 -1
  254. package/dist/components/c-steps.js +1 -1
  255. package/dist/components/c-steps.js.map +1 -1
  256. package/dist/components/c-sub-navigation-item.js +1 -1
  257. package/dist/components/c-sub-navigation-item.js.map +1 -1
  258. package/dist/components/c-swiper-tab.js +1 -1
  259. package/dist/components/c-swiper-tab.js.map +1 -1
  260. package/dist/components/c-swiper.js +1 -1
  261. package/dist/components/c-swiper.js.map +1 -1
  262. package/dist/components/c-switch.js +1 -1
  263. package/dist/components/c-switch.js.map +1 -1
  264. package/dist/components/c-tab-buttons.js +1 -1
  265. package/dist/components/c-tab-buttons.js.map +1 -1
  266. package/dist/components/c-tab-item.js +1 -1
  267. package/dist/components/c-tab-item.js.map +1 -1
  268. package/dist/components/c-tab-items.js +1 -1
  269. package/dist/components/c-tab-items.js.map +1 -1
  270. package/dist/components/c-tab.js +1 -1
  271. package/dist/components/c-tab.js.map +1 -1
  272. package/dist/components/c-table.js +1 -1
  273. package/dist/components/c-table.js.map +1 -1
  274. package/dist/components/c-tabs.js +1 -1
  275. package/dist/components/c-tabs.js.map +1 -1
  276. package/dist/components/c-tag.js +1 -1
  277. package/dist/components/c-tag.js.map +1 -1
  278. package/dist/components/c-tags.js +1 -1
  279. package/dist/components/c-tags.js.map +1 -1
  280. package/dist/components/c-text-field.js +1 -1
  281. package/dist/components/c-text-field.js.map +1 -1
  282. package/dist/components/c-toast2.js +1 -1
  283. package/dist/components/c-toast2.js.map +1 -1
  284. package/dist/components/c-toasts.js +1 -1
  285. package/dist/components/c-toasts.js.map +1 -1
  286. package/dist/components/c-toolbar.js +1 -1
  287. package/dist/components/c-toolbar.js.map +1 -1
  288. package/dist/csc-ui/csc-ui.esm.js +1 -1
  289. package/dist/csc-ui/csc-ui.esm.js.map +1 -1
  290. package/dist/csc-ui/p-0394ebc7.entry.js +2 -0
  291. package/dist/csc-ui/{p-98faa11d.entry.js.map → p-0394ebc7.entry.js.map} +1 -1
  292. package/dist/csc-ui/p-0471fd59.entry.js +2 -0
  293. package/dist/csc-ui/{p-fb098c2b.entry.js.map → p-0471fd59.entry.js.map} +1 -1
  294. package/dist/csc-ui/p-0b41f178.entry.js +2 -0
  295. package/dist/csc-ui/{p-d8899493.entry.js.map → p-0b41f178.entry.js.map} +1 -1
  296. package/dist/csc-ui/p-0e3cf775.entry.js +2 -0
  297. package/dist/csc-ui/{p-e6fb98a7.entry.js.map → p-0e3cf775.entry.js.map} +1 -1
  298. package/dist/csc-ui/p-18a7f4e9.entry.js +2 -0
  299. package/dist/csc-ui/{p-fa83a615.entry.js.map → p-18a7f4e9.entry.js.map} +1 -1
  300. package/dist/csc-ui/p-1aeab024.entry.js +2 -0
  301. package/dist/csc-ui/{p-075a7c96.entry.js.map → p-1aeab024.entry.js.map} +1 -1
  302. package/dist/csc-ui/p-231bc97b.entry.js +2 -0
  303. package/dist/csc-ui/{p-d26167bc.entry.js.map → p-231bc97b.entry.js.map} +1 -1
  304. package/dist/csc-ui/p-29b07261.entry.js +2 -0
  305. package/dist/csc-ui/{p-0db503fb.entry.js.map → p-29b07261.entry.js.map} +1 -1
  306. package/dist/csc-ui/p-30bf678d.entry.js +2 -0
  307. package/dist/csc-ui/{p-74a176e6.entry.js.map → p-30bf678d.entry.js.map} +1 -1
  308. package/dist/csc-ui/p-30edfff8.entry.js +2 -0
  309. package/dist/csc-ui/{p-8f36c6ba.entry.js.map → p-30edfff8.entry.js.map} +1 -1
  310. package/dist/csc-ui/p-4dbc9e96.entry.js +2 -0
  311. package/dist/csc-ui/{p-d76079eb.entry.js.map → p-4dbc9e96.entry.js.map} +1 -1
  312. package/dist/csc-ui/p-4f54f704.entry.js +2 -0
  313. package/dist/csc-ui/p-4f54f704.entry.js.map +1 -0
  314. package/dist/csc-ui/p-4f568e1f.entry.js +2 -0
  315. package/dist/csc-ui/{p-88c60ba3.entry.js.map → p-4f568e1f.entry.js.map} +1 -1
  316. package/dist/csc-ui/p-52a3f4f8.entry.js +2 -0
  317. package/dist/csc-ui/{p-ba475561.entry.js.map → p-52a3f4f8.entry.js.map} +1 -1
  318. package/dist/csc-ui/p-54d44ab9.entry.js +2 -0
  319. package/dist/csc-ui/{p-baea3193.entry.js.map → p-54d44ab9.entry.js.map} +1 -1
  320. package/dist/csc-ui/p-61e0e61f.entry.js +2 -0
  321. package/dist/csc-ui/{p-ff51bae3.entry.js.map → p-61e0e61f.entry.js.map} +1 -1
  322. package/dist/csc-ui/{p-a8a04dff.entry.js → p-6733b506.entry.js} +2 -2
  323. package/dist/csc-ui/{p-a8a04dff.entry.js.map → p-6733b506.entry.js.map} +1 -1
  324. package/dist/csc-ui/p-6a54587f.entry.js +2 -0
  325. package/dist/csc-ui/{p-d074c6db.entry.js.map → p-6a54587f.entry.js.map} +1 -1
  326. package/dist/csc-ui/p-765ae162.entry.js +2 -0
  327. package/dist/csc-ui/p-765ae162.entry.js.map +1 -0
  328. package/dist/csc-ui/p-7ca9b5ff.entry.js +2 -0
  329. package/dist/csc-ui/{p-367d3bd3.entry.js.map → p-7ca9b5ff.entry.js.map} +1 -1
  330. package/dist/csc-ui/p-9bf601bb.entry.js +2 -0
  331. package/dist/csc-ui/{p-2e28b0cc.entry.js.map → p-9bf601bb.entry.js.map} +1 -1
  332. package/dist/csc-ui/p-9dc5b5ac.entry.js +2 -0
  333. package/dist/csc-ui/{p-cc31d9b2.entry.js.map → p-9dc5b5ac.entry.js.map} +1 -1
  334. package/dist/csc-ui/p-a33ca657.entry.js +2 -0
  335. package/dist/csc-ui/{p-82a711fb.entry.js.map → p-a33ca657.entry.js.map} +1 -1
  336. package/dist/csc-ui/p-aa6b6960.entry.js +2 -0
  337. package/dist/csc-ui/{p-f616d1c4.entry.js.map → p-aa6b6960.entry.js.map} +1 -1
  338. package/dist/csc-ui/p-b8fd106b.entry.js +2 -0
  339. package/dist/csc-ui/{p-da6a2275.entry.js.map → p-b8fd106b.entry.js.map} +1 -1
  340. package/dist/csc-ui/p-bae44625.entry.js +2 -0
  341. package/dist/csc-ui/{p-55cbda54.entry.js.map → p-bae44625.entry.js.map} +1 -1
  342. package/dist/csc-ui/p-c28fe9f0.entry.js +2 -0
  343. package/dist/csc-ui/{p-8d5fe14f.entry.js.map → p-c28fe9f0.entry.js.map} +1 -1
  344. package/dist/csc-ui/p-cb4bce81.entry.js +2 -0
  345. package/dist/csc-ui/{p-ea99cd0e.entry.js.map → p-cb4bce81.entry.js.map} +1 -1
  346. package/dist/csc-ui/{p-667da79a.js → p-d72364b9.js} +2 -2
  347. package/dist/csc-ui/p-da7c0754.entry.js +2 -0
  348. package/dist/csc-ui/{p-4f9c92e4.entry.js.map → p-da7c0754.entry.js.map} +1 -1
  349. package/dist/csc-ui/p-dfe321ae.entry.js +2 -0
  350. package/dist/csc-ui/{p-1b181fd3.entry.js.map → p-dfe321ae.entry.js.map} +1 -1
  351. package/dist/csc-ui/p-e90ac550.entry.js +2 -0
  352. package/dist/csc-ui/{p-adaace9b.entry.js.map → p-e90ac550.entry.js.map} +1 -1
  353. package/dist/csc-ui/p-e922c869.entry.js +2 -0
  354. package/dist/csc-ui/{p-1a1e8b4b.entry.js.map → p-e922c869.entry.js.map} +1 -1
  355. package/dist/csc-ui/p-ed7b2d6b.entry.js +2 -0
  356. package/dist/csc-ui/{p-75798257.entry.js.map → p-ed7b2d6b.entry.js.map} +1 -1
  357. package/dist/csc-ui/p-f71fcb7a.entry.js +2 -0
  358. package/dist/csc-ui/{p-8d34efbc.entry.js.map → p-f71fcb7a.entry.js.map} +1 -1
  359. package/dist/csc-ui/p-fadae1ab.entry.js +2 -0
  360. package/dist/csc-ui/{p-aa930d89.entry.js.map → p-fadae1ab.entry.js.map} +1 -1
  361. package/dist/esm/c-accordion-item.entry.js +2 -2
  362. package/dist/esm/c-accordion-item.entry.js.map +1 -1
  363. package/dist/esm/c-accordion.entry.js +1 -1
  364. package/dist/esm/c-accordion.entry.js.map +1 -1
  365. package/dist/esm/c-alert.entry.js +2 -2
  366. package/dist/esm/c-alert.entry.js.map +1 -1
  367. package/dist/esm/c-autocomplete_34.entry.js +2565 -0
  368. package/dist/esm/c-autocomplete_34.entry.js.map +1 -0
  369. package/dist/esm/c-data-table.entry.js +2 -2
  370. package/dist/esm/c-data-table.entry.js.map +1 -1
  371. package/dist/esm/c-link.entry.js +1 -1
  372. package/dist/esm/c-link.entry.js.map +1 -1
  373. package/dist/esm/c-list-item-title.entry.js +1 -1
  374. package/dist/esm/c-list-item-title.entry.js.map +1 -1
  375. package/dist/esm/c-list-item.entry.js +1 -1
  376. package/dist/esm/c-list-item.entry.js.map +1 -1
  377. package/dist/esm/c-list.entry.js +1 -1
  378. package/dist/esm/c-list.entry.js.map +1 -1
  379. package/dist/esm/c-login-button.entry.js +1 -1
  380. package/dist/esm/c-login-button.entry.js.map +1 -1
  381. package/dist/esm/c-login-buttons.entry.js +1 -1
  382. package/dist/esm/c-login-buttons.entry.js.map +1 -1
  383. package/dist/esm/c-login-card-content.entry.js +1 -1
  384. package/dist/esm/c-login-card-content.entry.js.map +1 -1
  385. package/dist/esm/c-login-card-title.entry.js +1 -1
  386. package/dist/esm/c-login-card-title.entry.js.map +1 -1
  387. package/dist/esm/c-login-card.entry.js +1 -1
  388. package/dist/esm/c-login-card.entry.js.map +1 -1
  389. package/dist/esm/c-menu_2.entry.js +3 -3
  390. package/dist/esm/c-menu_2.entry.js.map +1 -1
  391. package/dist/esm/c-modal.entry.js +1 -1
  392. package/dist/esm/c-modal.entry.js.map +1 -1
  393. package/dist/esm/c-option-value.entry.js +1 -1
  394. package/dist/esm/c-option-value.entry.js.map +1 -1
  395. package/dist/esm/{c-pagination_2.entry.js → c-pagination.entry.js} +4 -16
  396. package/dist/esm/c-pagination.entry.js.map +1 -0
  397. package/dist/esm/c-progress-bar.entry.js +1 -1
  398. package/dist/esm/c-progress-bar.entry.js.map +1 -1
  399. package/dist/esm/c-row.entry.js +1 -1
  400. package/dist/esm/c-row.entry.js.map +1 -1
  401. package/dist/esm/c-slider.entry.js +1 -1
  402. package/dist/esm/c-slider.entry.js.map +1 -1
  403. package/dist/esm/c-status.entry.js +1 -1
  404. package/dist/esm/c-status.entry.js.map +1 -1
  405. package/dist/esm/c-step.entry.js +1 -1
  406. package/dist/esm/c-step.entry.js.map +1 -1
  407. package/dist/esm/c-steps.entry.js +1 -1
  408. package/dist/esm/c-steps.entry.js.map +1 -1
  409. package/dist/esm/c-swiper-tab.entry.js +1 -1
  410. package/dist/esm/c-swiper-tab.entry.js.map +1 -1
  411. package/dist/esm/c-swiper.entry.js +2 -2
  412. package/dist/esm/c-swiper.entry.js.map +1 -1
  413. package/dist/esm/c-tab-buttons.entry.js +1 -1
  414. package/dist/esm/c-tab-buttons.entry.js.map +1 -1
  415. package/dist/esm/c-tab-item.entry.js +1 -1
  416. package/dist/esm/c-tab-item.entry.js.map +1 -1
  417. package/dist/esm/c-tab-items.entry.js +1 -1
  418. package/dist/esm/c-tab-items.entry.js.map +1 -1
  419. package/dist/esm/c-tab.entry.js +1 -1
  420. package/dist/esm/c-tab.entry.js.map +1 -1
  421. package/dist/esm/c-tabs.entry.js +2 -2
  422. package/dist/esm/c-tabs.entry.js.map +1 -1
  423. package/dist/esm/c-tag.entry.js +2 -2
  424. package/dist/esm/c-tag.entry.js.map +1 -1
  425. package/dist/esm/c-tags.entry.js +1 -1
  426. package/dist/esm/c-tags.entry.js.map +1 -1
  427. package/dist/esm/c-toast.entry.js +2 -2
  428. package/dist/esm/c-toast.entry.js.map +1 -1
  429. package/dist/esm/c-toasts.entry.js +1 -1
  430. package/dist/esm/c-toasts.entry.js.map +1 -1
  431. package/dist/esm/csc-ui.js +1 -1
  432. package/dist/esm/index-47956d53.js +4 -44
  433. package/dist/esm/loader.js +1 -1
  434. package/dist/esm/{mdi-e483616d.js → mdi-d1289d08.js} +2 -2
  435. package/dist/esm/{mdi-e483616d.js.map → mdi-d1289d08.js.map} +1 -1
  436. package/dist/types/components/c-dropdown/c-dropdown.d.ts +2 -0
  437. package/dist/types/components/c-main/c-main.d.ts +1 -0
  438. package/dist/types/components.d.ts +8 -0
  439. package/package.json +1 -1
  440. package/vscode-data.json +6 -1
  441. package/dist/cjs/c-autocomplete_23.cjs.entry.js +0 -2221
  442. package/dist/cjs/c-autocomplete_23.cjs.entry.js.map +0 -1
  443. package/dist/cjs/c-csc-logo.cjs.entry.js +0 -23
  444. package/dist/cjs/c-csc-logo.cjs.entry.js.map +0 -1
  445. package/dist/cjs/c-loader.cjs.entry.js +0 -39
  446. package/dist/cjs/c-loader.cjs.entry.js.map +0 -1
  447. package/dist/cjs/c-main.cjs.entry.js +0 -21
  448. package/dist/cjs/c-main.cjs.entry.js.map +0 -1
  449. package/dist/cjs/c-navigation-button.cjs.entry.js +0 -22
  450. package/dist/cjs/c-navigation-button.cjs.entry.js.map +0 -1
  451. package/dist/cjs/c-page.cjs.entry.js +0 -34
  452. package/dist/cjs/c-page.cjs.entry.js.map +0 -1
  453. package/dist/cjs/c-pagination_2.cjs.entry.js.map +0 -1
  454. package/dist/cjs/c-side-navigation-item.cjs.entry.js +0 -129
  455. package/dist/cjs/c-side-navigation-item.cjs.entry.js.map +0 -1
  456. package/dist/cjs/c-side-navigation-title.cjs.entry.js +0 -21
  457. package/dist/cjs/c-side-navigation-title.cjs.entry.js.map +0 -1
  458. package/dist/cjs/c-side-navigation.cjs.entry.js +0 -80
  459. package/dist/cjs/c-side-navigation.cjs.entry.js.map +0 -1
  460. package/dist/cjs/c-sub-navigation-item.cjs.entry.js +0 -51
  461. package/dist/cjs/c-sub-navigation-item.cjs.entry.js.map +0 -1
  462. package/dist/cjs/c-toolbar.cjs.entry.js +0 -21
  463. package/dist/cjs/c-toolbar.cjs.entry.js.map +0 -1
  464. package/dist/csc-ui/p-040ed3e2.entry.js +0 -2
  465. package/dist/csc-ui/p-040ed3e2.entry.js.map +0 -1
  466. package/dist/csc-ui/p-075a7c96.entry.js +0 -2
  467. package/dist/csc-ui/p-0db503fb.entry.js +0 -2
  468. package/dist/csc-ui/p-1a1e8b4b.entry.js +0 -2
  469. package/dist/csc-ui/p-1b181fd3.entry.js +0 -2
  470. package/dist/csc-ui/p-2b5cd791.entry.js +0 -2
  471. package/dist/csc-ui/p-2b5cd791.entry.js.map +0 -1
  472. package/dist/csc-ui/p-2e28b0cc.entry.js +0 -2
  473. package/dist/csc-ui/p-34027974.entry.js +0 -2
  474. package/dist/csc-ui/p-34027974.entry.js.map +0 -1
  475. package/dist/csc-ui/p-367d3bd3.entry.js +0 -2
  476. package/dist/csc-ui/p-39df362b.entry.js +0 -2
  477. package/dist/csc-ui/p-39df362b.entry.js.map +0 -1
  478. package/dist/csc-ui/p-4cf4ffff.entry.js +0 -2
  479. package/dist/csc-ui/p-4cf4ffff.entry.js.map +0 -1
  480. package/dist/csc-ui/p-4f9c92e4.entry.js +0 -2
  481. package/dist/csc-ui/p-55cbda54.entry.js +0 -2
  482. package/dist/csc-ui/p-6ff81ae0.entry.js +0 -2
  483. package/dist/csc-ui/p-6ff81ae0.entry.js.map +0 -1
  484. package/dist/csc-ui/p-74a176e6.entry.js +0 -2
  485. package/dist/csc-ui/p-75798257.entry.js +0 -2
  486. package/dist/csc-ui/p-82a711fb.entry.js +0 -2
  487. package/dist/csc-ui/p-88c60ba3.entry.js +0 -2
  488. package/dist/csc-ui/p-8d34efbc.entry.js +0 -2
  489. package/dist/csc-ui/p-8d5fe14f.entry.js +0 -2
  490. package/dist/csc-ui/p-8f36c6ba.entry.js +0 -2
  491. package/dist/csc-ui/p-98faa11d.entry.js +0 -2
  492. package/dist/csc-ui/p-9ba0ed23.entry.js +0 -2
  493. package/dist/csc-ui/p-9ba0ed23.entry.js.map +0 -1
  494. package/dist/csc-ui/p-9c5488fc.entry.js +0 -2
  495. package/dist/csc-ui/p-9c5488fc.entry.js.map +0 -1
  496. package/dist/csc-ui/p-aa930d89.entry.js +0 -2
  497. package/dist/csc-ui/p-adaace9b.entry.js +0 -2
  498. package/dist/csc-ui/p-afd4cc03.entry.js +0 -2
  499. package/dist/csc-ui/p-afd4cc03.entry.js.map +0 -1
  500. package/dist/csc-ui/p-ba475561.entry.js +0 -2
  501. package/dist/csc-ui/p-baea3193.entry.js +0 -2
  502. package/dist/csc-ui/p-cc31d9b2.entry.js +0 -2
  503. package/dist/csc-ui/p-d074c6db.entry.js +0 -2
  504. package/dist/csc-ui/p-d22cd2a7.entry.js +0 -2
  505. package/dist/csc-ui/p-d22cd2a7.entry.js.map +0 -1
  506. package/dist/csc-ui/p-d26167bc.entry.js +0 -2
  507. package/dist/csc-ui/p-d76079eb.entry.js +0 -2
  508. package/dist/csc-ui/p-d8899493.entry.js +0 -2
  509. package/dist/csc-ui/p-da6a2275.entry.js +0 -2
  510. package/dist/csc-ui/p-e1955a0e.entry.js +0 -2
  511. package/dist/csc-ui/p-e1955a0e.entry.js.map +0 -1
  512. package/dist/csc-ui/p-e3bd1f42.entry.js +0 -2
  513. package/dist/csc-ui/p-e3bd1f42.entry.js.map +0 -1
  514. package/dist/csc-ui/p-e6fb98a7.entry.js +0 -2
  515. package/dist/csc-ui/p-ea99cd0e.entry.js +0 -2
  516. package/dist/csc-ui/p-f616d1c4.entry.js +0 -2
  517. package/dist/csc-ui/p-fa83a615.entry.js +0 -2
  518. package/dist/csc-ui/p-fb098c2b.entry.js +0 -2
  519. package/dist/csc-ui/p-ff51bae3.entry.js +0 -2
  520. package/dist/esm/c-autocomplete_23.entry.js +0 -2195
  521. package/dist/esm/c-autocomplete_23.entry.js.map +0 -1
  522. package/dist/esm/c-csc-logo.entry.js +0 -19
  523. package/dist/esm/c-csc-logo.entry.js.map +0 -1
  524. package/dist/esm/c-loader.entry.js +0 -35
  525. package/dist/esm/c-loader.entry.js.map +0 -1
  526. package/dist/esm/c-main.entry.js +0 -17
  527. package/dist/esm/c-main.entry.js.map +0 -1
  528. package/dist/esm/c-navigation-button.entry.js +0 -18
  529. package/dist/esm/c-navigation-button.entry.js.map +0 -1
  530. package/dist/esm/c-page.entry.js +0 -30
  531. package/dist/esm/c-page.entry.js.map +0 -1
  532. package/dist/esm/c-pagination_2.entry.js.map +0 -1
  533. package/dist/esm/c-side-navigation-item.entry.js +0 -125
  534. package/dist/esm/c-side-navigation-item.entry.js.map +0 -1
  535. package/dist/esm/c-side-navigation-title.entry.js +0 -17
  536. package/dist/esm/c-side-navigation-title.entry.js.map +0 -1
  537. package/dist/esm/c-side-navigation.entry.js +0 -76
  538. package/dist/esm/c-side-navigation.entry.js.map +0 -1
  539. package/dist/esm/c-sub-navigation-item.entry.js +0 -47
  540. package/dist/esm/c-sub-navigation-item.entry.js.map +0 -1
  541. package/dist/esm/c-toolbar.entry.js +0 -17
  542. package/dist/esm/c-toolbar.entry.js.map +0 -1
  543. /package/dist/csc-ui/{p-667da79a.js.map → p-d72364b9.js.map} +0 -0
@@ -0,0 +1,2602 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-91ba22ab.js');
6
+ const mdi = require('./mdi-16842afc.js');
7
+ const getScrollParent = require('./getScrollParent-5d488045.js');
8
+
9
+ const cAutocompleteCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host(c-autocomplete){--_c-autocomplete-option-background-color:var(\n --c-autocomplete-option-background-color,\n var(--c-white)\n );--_c-autocomplete-option-background-hover-color:var(\n --c-autocomplete-option-background-hover-color,\n var(--c-primary-100)\n );--_c-autocomplete-active-color:var(\n --c-autocomplete-active-color,\n var(--c-primary-600)\n );--_c-autocomplete-inactive-color:var(\n --c-autocomplete-inactive-color,\n var(--c-tertiary-600)\n );--_c-autocomplete-background-color:var(\n --c-autocomplete-background-color,\n var(--c-transparent)\n );--_c-autocomplete-text-color:var(\n --c-autocomplete-text-color,\n var(--c-text-body)\n );--_c-autocomplete-option-text-color:var(\n --c-autocomplete-option-text-color,\n var(--c-text-body)\n );--_c-autocomplete-placeholder-color:var(\n --c-autocomplete-placeholder-color,\n var(--c-tertiary-500)\n );--c-select-option-background-color:var(\n --_c-autocomplete-option-background-color\n );--c-select-option-background-color-hover:var(\n --_c-autocomplete-option-background-hover-color\n );--c-select-option-text-color:var(--_c-autocomplete-option-text-color);--_c-input-active-color:var(--_c-autocomplete-active-color);--_c-input-inactive-color:var(--_c-autocomplete-inactive-color);--_c-input-background-color:var(--_c-autocomplete-background-color);--_c-input-text-color:var(--_c-autocomplete-text-color);--_c-input-placeholder-color:var(--_c-autocomplete-placeholder-color)}:host{display:block;cursor:text}.c-input-menu__chevron{fill:currentColor;transform:rotate(0deg);transition:transform 0.3s ease-in-out}.c-input-menu__chevron--active{transform:rotate(180deg)}.c-input-menu__input{width:100%;display:flex;justify-items:stretch}.c-input-menu__selection{display:none;pointer-events:none}.c-input-menu__selection--show{align-items:center;display:flex;width:100%;color:var(--_c-select-active-color)}.c-input-menu__item-wrapper{position:absolute;width:100%;top:44px;z-index:10;margin-left:calc(var(--_c-input-label-position) * -1)}.c-input-menu__item-wrapper--shadow{top:47px}.c-input-menu__items{position:absolute;background-color:var(--_c-select-option-background-color);min-width:calc(100% + 24px);box-shadow:0 8px 16px 0 rgba(0, 0, 0, 0.2);z-index:10;user-select:none;border-radius:4px;margin:0 -12px;overflow-y:scroll;list-style:none;padding:0}.c-input-menu__items--hidden{display:none}.c-input-menu__items li{cursor:pointer;display:flex;min-height:48px;padding:0 12px;transition:background-color 0.3s;font-size:14px;align-items:center;justify-content:flex-start;color:var(--_c-select-option-text-color)}.c-input-menu__items li.disabled{background-color:var(--c-tertiary-100);filter:grayscale(1) opacity(0.6);cursor:default}.c-input-menu__items li.disabled:hover{background-color:var(--c-tertiary-100)}.c-input-menu__items li.dense{padding:10px 14px}.c-input-menu__items li:hover{background-color:var(--_c-select-option-background-color-hover)}.c-input-menu__items li[aria-selected=true]{background-color:var(--_c-select-option-background-color-hover);box-shadow:inset 0 0 0 1px var(--_c-select-active-color);border-radius:4px;backface-visibility:hidden;transform:translate3d(0, 0, 0)}.c-input-menu__items li.none{color:rgba(0, 0, 0, 0.5)}.c-input-menu__items--empty li{color:var(--c-text-system);cursor:default;gap:8px;pointer-events:none}.c-input-menu__items--empty li svg{fill:var(--c-warning-600);height:18px;width:18px}input{max-height:32px;padding:8px 0;background-color:transparent;border:none;color:var(--c-text-body);flex:1 1 auto;font-family:var(--c-font-family);font-size:16px;line-height:20px;max-width:100%;min-width:0;width:100%;pointer-events:none}input:focus,input:active{outline:none}input::-ms-reveal{display:none}svg{fill:currentColor;height:22px;width:22px}.c-input--disabled{color:var(--c-tertiary-400)}.c-input:focus-within{color:var(--c-primary-600)}.c-input--error{color:var(--c-error-600)}.c-input--error:focus-within{color:var(--c-error-600)}.visuallyhidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}";
10
+
11
+ const CAutocomplete = class {
12
+ constructor(hostRef) {
13
+ index.registerInstance(this, hostRef);
14
+ this.changeQuery = index.createEvent(this, "changeQuery", 7);
15
+ this.changeValue = index.createEvent(this, "changeValue", 3);
16
+ if (hostRef.$hostElement$["s-ei"]) {
17
+ this.internals = hostRef.$hostElement$["s-ei"];
18
+ }
19
+ else {
20
+ this.internals = hostRef.$hostElement$.attachInternals();
21
+ hostRef.$hostElement$["s-ei"] = this.internals;
22
+ }
23
+ this._preventDialogOpen = false;
24
+ this._debounce = null;
25
+ this._handleSlotChange = () => {
26
+ this.optionElements = this.el.querySelectorAll('c-option');
27
+ const selection = Array.from(this.optionElements).find((option) => option.selected);
28
+ if (selection) {
29
+ this.value = this.returnObject
30
+ ? { name: selection.name, value: selection.value }
31
+ : selection.value;
32
+ this.changeValue.emit(this.value);
33
+ this.changeQuery.emit(this.query);
34
+ this.internals.setFormValue(selection.value.toString());
35
+ }
36
+ if (this.optionElements.length && !this.optionElementsExist) {
37
+ this.optionElementsExist = true;
38
+ }
39
+ };
40
+ this._toggleDropdown = (event) => {
41
+ event.stopPropagation();
42
+ if (this.dropdownVisible) {
43
+ this._dropdownElement.close();
44
+ return;
45
+ }
46
+ this._dropdownElement.open();
47
+ };
48
+ this._onButtonKeyDown = (src, event) => {
49
+ event.stopPropagation();
50
+ if (event.key !== 'Tab')
51
+ event.preventDefault();
52
+ if (['Enter', ' '].includes(event.key)) {
53
+ if (src === 'chevron') {
54
+ this._toggleDropdown(event);
55
+ return;
56
+ }
57
+ this._reset(event);
58
+ this._preventDialogOpen = true;
59
+ this._inputElement.focus();
60
+ }
61
+ };
62
+ this._reset = (event) => {
63
+ event.stopPropagation();
64
+ this.query = '';
65
+ this.value = null;
66
+ this.changeValue.emit(null);
67
+ this.internals.setFormValue(null);
68
+ this.changeQuery.emit('');
69
+ this._preventDialogOpen = true;
70
+ this._cInputElement.reset();
71
+ this._inputElement.focus();
72
+ this._dropdownElement.updateList();
73
+ };
74
+ this._onInputFocus = () => {
75
+ if (!this._preventDialogOpen) {
76
+ this._dropdownElement.open();
77
+ }
78
+ this._updateStatusText();
79
+ this._preventDialogOpen = false;
80
+ };
81
+ this.items = [];
82
+ this.value = null;
83
+ this.query = null;
84
+ this.hostId = undefined;
85
+ this.disabled = false;
86
+ this.label = undefined;
87
+ this.name = undefined;
88
+ this.placeholder = '';
89
+ this.hideDetails = false;
90
+ this.hint = '';
91
+ this.loading = false;
92
+ this.required = false;
93
+ this.valid = true;
94
+ this.validate = false;
95
+ this.validateOnBlur = false;
96
+ this.validation = 'Required field';
97
+ this.shadow = false;
98
+ this.returnObject = false;
99
+ this.itemsPerPage = 6;
100
+ this.optionElements = undefined;
101
+ this.currentIndex = null;
102
+ this.dropdownVisible = false;
103
+ this.statusText = '';
104
+ this.optionElementsExist = false;
105
+ }
106
+ get _id() {
107
+ return this.hostId || `autocomplete_${CAutocomplete._uniqueId}`;
108
+ }
109
+ async reset() {
110
+ this.query = '';
111
+ this.changeValue.emit(null);
112
+ this.internals.setFormValue(null);
113
+ this.changeQuery.emit('');
114
+ this._dropdownElement.updateList();
115
+ }
116
+ _handleKeyDown(event) {
117
+ const alphanumeric = /^[0-9a-zA-Z ]+$/;
118
+ if (event.key.match(alphanumeric) && event.key.length === 1) {
119
+ if (!this.dropdownVisible) {
120
+ this._dropdownElement.open();
121
+ return;
122
+ }
123
+ this._inputElement.focus();
124
+ return;
125
+ }
126
+ if (event.key === 'Escape') {
127
+ event.preventDefault();
128
+ this._preventDialogOpen = true;
129
+ this._dropdownElement.close();
130
+ requestAnimationFrame(() => {
131
+ this._inputElement.focus();
132
+ });
133
+ return;
134
+ }
135
+ if (event.key === 'Tab') {
136
+ this._inputElement.focus();
137
+ requestAnimationFrame(() => {
138
+ this._dropdownElement.close();
139
+ });
140
+ return;
141
+ }
142
+ if (event.key === 'ArrowDown') {
143
+ event.preventDefault();
144
+ if (!this._items.length)
145
+ return;
146
+ if (!this.dropdownVisible || this.currentIndex === null) {
147
+ this.currentIndex = 0;
148
+ this._dropdownElement.open();
149
+ this._dropdownElement.focusItem(this.currentIndex);
150
+ return;
151
+ }
152
+ this.currentIndex = Math.min(this.currentIndex + 1, this._items.length - 1);
153
+ this._dropdownElement.focusItem(this.currentIndex);
154
+ return;
155
+ }
156
+ if (event.key === 'ArrowUp') {
157
+ event.preventDefault();
158
+ if (this.currentIndex === 0) {
159
+ this._dropdownElement.close();
160
+ this._inputElement.focus();
161
+ }
162
+ if (!this.dropdownVisible || this.currentIndex === null) {
163
+ this.currentIndex = this._items.length - 1;
164
+ this._dropdownElement.open();
165
+ this._dropdownElement.focusItem(this.currentIndex);
166
+ return;
167
+ }
168
+ this.currentIndex = Math.max(this.currentIndex - 1, 0);
169
+ this._dropdownElement.focusItem(this.currentIndex);
170
+ }
171
+ if (event.key === 'Enter') {
172
+ event.preventDefault();
173
+ if (this.currentIndex === null)
174
+ return;
175
+ this._dropdownElement.selectItem(this.currentIndex);
176
+ }
177
+ if (event.key === 'Home' && this.dropdownVisible) {
178
+ this.currentIndex = 0;
179
+ }
180
+ if (event.key === 'End' && this.dropdownVisible) {
181
+ this.currentIndex = this._items.length - 1;
182
+ }
183
+ }
184
+ onDropdownStateChange(event) {
185
+ const isOpen = event.detail;
186
+ this.dropdownVisible = isOpen;
187
+ if (!isOpen) {
188
+ requestAnimationFrame(() => {
189
+ this.currentIndex = null;
190
+ });
191
+ }
192
+ }
193
+ onSelectOption(event) {
194
+ this._dropdownElement.close();
195
+ const { name, value } = event.detail;
196
+ this.value = this.returnObject ? event.detail : value;
197
+ this.changeValue.emit(this.value);
198
+ this.internals.setFormValue(value);
199
+ this.query = name;
200
+ this.changeQuery.emit(name);
201
+ this._preventDialogOpen = true;
202
+ if (this.optionElementsExist) {
203
+ Array.from(this.optionElements).forEach((item) => {
204
+ item.selected = item.value === value && item.name === name;
205
+ });
206
+ this._dropdownElement.updateList();
207
+ }
208
+ this._inputElement.focus();
209
+ }
210
+ handleQueryChange() {
211
+ this._updateStatusText();
212
+ }
213
+ _updateInput() {
214
+ this._dropdownElement.open();
215
+ this.query = this._inputElement.value;
216
+ this.changeQuery.emit(this.query);
217
+ this._dropdownElement.updateList();
218
+ }
219
+ _renderLoader() {
220
+ return index.h("c-spinner", { color: "var(--_c-autocomplete-active-color)", size: 20 });
221
+ }
222
+ _renderChevron() {
223
+ const classes = {
224
+ 'c-input-menu__chevron': true,
225
+ 'c-input-menu__chevron--active': this.dropdownVisible,
226
+ };
227
+ return (index.h("c-icon-button", { size: "x-small", class: classes, text: true, onClick: (event) => this._toggleDropdown(event), onKeyDown: (event) => this._onButtonKeyDown('chevron', event) }, index.h("c-icon", { path: mdi.mdiChevronDown, size: 24 })));
228
+ }
229
+ _renderReset() {
230
+ return (index.h("c-icon-button", { "aria-label": "", size: "x-small", text: true, onClick: (event) => this._reset(event), onKeyDown: (event) => this._onButtonKeyDown('reset', event) }, index.h("c-icon", { path: mdi.mdiClose, size: 20 })));
231
+ }
232
+ _renderInputElement() {
233
+ var _a;
234
+ return (index.h("div", { class: "c-input-menu__input" }, index.h("input", { type: "text", ref: (el) => (this._inputElement = el), "aria-expanded": this.dropdownVisible.toString(), "aria-owns": this._inputId + '-items', "aria-autocomplete": "list", autocomplete: "off", class: "c-input__input", role: "combobox", value: this.query, name: (_a = this.name) !== null && _a !== void 0 ? _a : null, onInput: () => this._updateInput(), onFocus: () => this._onInputFocus() })));
235
+ }
236
+ componentWillLoad() {
237
+ CAutocomplete._uniqueId += 1;
238
+ this._inputId =
239
+ 'input_' +
240
+ (this.hostId || this.label || this.placeholder).replace(/[^a-zA-Z0-9-_]/g, '');
241
+ }
242
+ get _items() {
243
+ return this.optionElementsExist ? this.optionElements : this.items;
244
+ }
245
+ _updateStatusText() {
246
+ if (this._debounce !== null) {
247
+ clearTimeout(this._debounce);
248
+ this._debounce = null;
249
+ }
250
+ this._debounce = window.setTimeout(() => {
251
+ const ending = !!this._items.length
252
+ ? ' or navigate using the up and down arrows'
253
+ : '';
254
+ if (this.currentIndex === null) {
255
+ this.statusText = this._items.length
256
+ ? `${this._items.length} result${this._items.length !== 1 ? 's' : ''} available`
257
+ : 'No search results available';
258
+ }
259
+ if (this.query !== null && this._items.length) {
260
+ this.statusText += ', input a search query to filter the results';
261
+ }
262
+ this._dropdownElement.setStatusText(this.statusText + ending);
263
+ this._debounce = null;
264
+ }, 1400);
265
+ }
266
+ render() {
267
+ const itemType = this.optionElementsExist ? 'option' : 'item';
268
+ return (index.h(index.Host, null, index.h("c-dropdown", { ref: (el) => (this._dropdownElement = el), id: `${this._id}-dropdown`, index: this.currentIndex, "items-per-page": this.itemsPerPage, "item-type": itemType, items: this._items, parent: this.el, type: "autocomplete", onKeyDown: (event) => this._handleKeyDown(event) }, index.h("c-input", { slot: "default", ref: (el) => (this._cInputElement = el), active: this.dropdownVisible, disabled: this.disabled, "hide-details": this.hideDetails, hint: this.hint, id: this.hostId, "input-id": this._inputId, label: this.label, name: this.name, placeholder: this.placeholder, required: this.required, shadow: this.shadow, valid: this.valid, validate: this.validate, "validate-on-blur": this.validateOnBlur, validation: this.validation, value: this.query, variant: "select" }, index.h("slot", { name: "pre", slot: "pre" }), index.h("div", { class: "c-input__content" }, this._renderInputElement(), this.loading && this._renderLoader(), !this.loading && this.value && this._renderReset(), !this.loading && !this.value && this._renderChevron(), index.h("slot", { onSlotchange: () => this._handleSlotChange() })), index.h("slot", { name: "post", slot: "post" })))));
269
+ }
270
+ static get formAssociated() { return true; }
271
+ get el() { return index.getElement(this); }
272
+ static get watchers() { return {
273
+ "query": ["handleQueryChange"]
274
+ }; }
275
+ };
276
+ CAutocomplete._uniqueId = 0;
277
+ CAutocomplete.style = cAutocompleteCss;
278
+
279
+ const cBadgeCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{--_c-badge-background-color:var(--c-badge-background-color, var(--c-warning-600));--_c-badge-text-color:var(--c-badge-text-color, var(--c-white));--_c-badge-border-color:var(--c-badge-border-color, var(--c-white));align-items:center;background-color:var(--_c-badge-background-color);border-radius:16px;box-shadow:0 0 0 2px var(--_c-badge-border-color);color:var(--_c-badge-text-color);display:flex;font-size:12px;height:16px;justify-content:center;justify-items:center;line-height:1;min-width:16px;padding:0 4px;pointer-events:none;position:absolute;right:-6px;top:-6px;z-index:2}";
280
+
281
+ const CBadge = class {
282
+ constructor(hostRef) {
283
+ index.registerInstance(this, hostRef);
284
+ }
285
+ render() {
286
+ return (index.h(index.Host, { class: "c-badge" }, index.h("slot", null)));
287
+ }
288
+ };
289
+ CBadge.style = cBadgeCss;
290
+
291
+ const cButtonCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{--_c-button-border-radius:var(--c-button-border-radius, 4px);--_c-button-height:44px;--_c-button-min-width:88px;--_c-button-padding:0 16px;--_c-button-font-size:16px;--_c-button-icon-size:24px;--_c-button-outline-offset:2px;border-radius:var(--_c-button-border-radius);display:inline-flex;transform:translateZ(0);transition:background-color 0.3s ease-in-out;--_c-button-background-color:var(--c-button-background-color, var(--c-primary-600));--_c-button-text-color:var(--c-button-text-color, var(--c-white));--_c-button-loader-color:var(--c-button-loader-color, var(--_c-button-text-color));--_c-button-outline-color:var(--c-button-outline-color, var(--_c-button-background-color));background-color:var(--_c-button-background-color);color:var(--_c-button-text-color)}:host ::slotted(svg){fill:var(--_c-button-loader-color)}:host(.c-button--no-radius){--_c-button-border-radius:0}:host(:host:not(.c-button--description)){height:var(--_c-button-height)}:host(.c-button--description){height:\"auto\"}:host(:host:hover){--_c-button-background-color-hover:var(--c-button-background-color-hover, var(--c-primary-400));background-color:var(--_c-button-background-color-hover)}:host(.c-button--inverted){--_c-button-inverted-background-color:var(--c-button-inverted-background-color, var(--c-white));--_c-button-inverted-text-color:var(--c-button-inverted-text-color, var(--c-primary-600));--_c-button-outline-color:var(--_c-button-inverted-background-color);background-color:var(--_c-button-inverted-background-color);color:var(--_c-button-inverted-text-color)}:host(.c-button--inverted:hover){--_c-button-inverted-background-color-hover:var(--c-button-inverted-background-color-hover, var(--c-primary-200));background-color:var(--_c-button-inverted-background-color-hover)}:host(.c-button--inverted.c-button--disabled){--_c-button-inverted-disabled-background-color:var(--c-button-inverted-disabled-background-color, var(--_c-button-disabled-background-color));--_c-button-inverted-disabled-text-color:var(--c-button-inverted-disabled-text-color, var(--c-tertiary-500));background-color:var(--_c-button-inverted-disabled-background-color);color:var(--_c-button-inverted-disabled-text-color)}:host(.c-button--danger){--_c-button-danger-background-color:var(--c-button-danger-background-color, var(--c-error-600));--_c-button-danger-text-color:var(--c-button-danger-text-color, var(--c-white));--_c-button-danger-loader-color:var(--c-button-danger-loader-color, var(--_c-button-danger-text-color));--_c-button-loader-color:var(--_c-button-danger-loader-color);--_c-button-outline-color:var(--_c-button-danger-background-color);background-color:var(--_c-button-danger-background-color);color:var(--_c-button-danger-text-color)}:host(.c-button--danger:hover){--_c-button-danger-background-color-hover:var(--c-button-danger-background-color-hover, var(--c-error-400));background-color:var(--_c-button-danger-background-color-hover)}:host(.c-button--danger.c-button--disabled){--_c-button-danger-disabled-background-color:var(--c-button-danger-disabled-background-color, var(--_c-button-disabled-background-color));--_c-button-danger-disabled-text-color:var(--c-button-danger-disabled-text-color, var(--_c-button-disabled-text-color));background-color:var(--_c-button-danger-disabled-background-color);color:var(--_c-button-danger-disabled-text-color)}:host(.c-button--danger.c-button--inverted){--_c-button-danger-inverted-text-color:var(--c-button-danger-inverted-text-color, var(--c-error-600));--_c-button-danger-inverted-background-color:var(--c-button-danger-inverted-background-color, var(--c-white));--_c-button-outline-color:var(--_c-button-danger-inverted-background-color);background-color:var(--_c-button-danger-inverted-background-color);color:var(--_c-button-danger-inverted-text-color)}:host(.c-button--danger.c-button--inverted:hover){--_c-button-danger-inverted-background-color-hover:var(--c-button-danger-inverted-background-color-hover, var(--c-error-100));background-color:var(--_c-button-danger-inverted-background-color-hover)}:host(.c-button--danger.c-button--inverted.c-button--disabled){--_c-button-danger-inverted-disabled-background-color:var(--c-button-danger-inverted-disabled-background-color, var(--_c-button-disabled-background-color));--_c-button-danger-inverted-disabled-text-color:var(--c-button-danger-inverted-disabled-text-color, var(--_c-button-disabled-text-color));background-color:var(--_c-button-danger-inverted-disabled-background-color);color:var(--_c-button-danger-inverted-disabled-text-color)}:host(.c-button--ghost){--_c-button-ghost-background-color:var(--c-button-ghost-background-color, var(--c-primary-200));--_c-button-ghost-text-color:var(--c-button-ghost-text-color, var(--c-primary-600));--_c-button-ghost-loader-color:var(--c-button-ghost-loader-color, var(--_c-button-ghost-text-color));--_c-button-loader-color:var(--_c-button-ghost-loader-color);--_c-button-outline-color:var(--_c-button-ghost-text-color);background-color:var(--_c-button-ghost-background-color);color:var(--_c-button-ghost-text-color)}:host(.c-button--ghost:hover){--_c-button-ghost-background-color-hover:var(--c-button-ghost-background-color-hover, var(--c-primary-100));background-color:var(--_c-button-ghost-background-color-hover)}:host(.c-button--ghost.c-button--disabled){--_c-button-ghost-disabled-background-color:var(--c-button-ghost-disabled-background-color, var(--_c-button-disabled-background-color));--_c-button-ghost-disabled-text-color:var(--c-button-ghost-disabled-text-color, var(--_c-button-disabled-text-color));background-color:var(--_c-button-ghost-disabled-background-color);color:var(--_c-button-ghost-disabled-text-color)}:host(.c-button--ghost.c-button--inverted){--_c-button-ghost-inverted-background-color:var(--c-button-ghost-inverted-background-color, rgba(var(--c-white-rgb), 0.2));--_c-button-ghost-inverted-text-color:var(--c-button-ghost-inverted-text-color, var(--c-white));--_c-button-outline-color:var(--_c-button-ghost-inverted-text-color);background-color:var(--_c-button-ghost-inverted-background-color);color:var(--_c-button-ghost-inverted-text-color)}:host(.c-button--ghost.c-button--inverted:hover){--_c-button-ghost-inverted-background-color-hover:var(--c-button-ghost-inverted-background-color-hover, rgba(var(--c-white-rgb), 0.3));background-color:var(--_c-button-ghost-inverted-background-color-hover)}:host(.c-button--ghost.c-button--inverted.c-button--disabled){--_c-button-ghost-inverted-disabled-background-color:var(--c-button-ghost-inverted-disabled-background-color, rgba(var(--c-white-rgb), 0.05));--_c-button-ghost-inverted-disabled-text-color:var(--c-button-ghost-inverted-disabled-text-color, var(--c-tertiary-400));background-color:var(--_c-button-ghost-inverted-disabled-background-color);color:var(--_c-button-ghost-inverted-disabled-text-color)}:host(.c-button--text){--_c-button-text-background-color:var(--c-button-text-background-color, var(--c-transparent));--_c-button-text-text-color:var(--c-button-text-text-color, var(--c-primary-600));--_c-button-text-loader-color:var(--c-button-text-loader-color, var(--_c-button-text-text-color));--_c-button-loader-color:var(--_c-button-text-loader-color);--_c-button-outline-color:var(--_c-button-text-text-color);background-color:var(--_c-button-text-background-color);color:var(--_c-button-text-text-color)}:host(.c-button--text:hover){--_c-button-text-background-color-hover:var(--c-button-text-background-color-hover, var(--c-primary-100));background-color:var(--_c-button-text-background-color-hover)}:host(.c-button--text.c-button--disabled){--_c-button-text-disabled-background-color:var(--c-button-text-disabled-background-color, var(--c-transparent));--_c-button-text-disabled-text-color:var(--c-button-text-disabled-text-color, var(--c-tertiary-500));background-color:var(--_c-button-text-disabled-background-color);color:var(--_c-button-text-disabled-text-color)}:host(.c-button--text.c-button--inverted){--_c-button-text-inverted-background-color:var(--c-button-text-inverted-background-color, var(--c-transparent));--_c-button-text-inverted-text-color:var(--c-button-text-inverted-text-color, var(--c-white));--_c-button-outline-color:var(--_c-button-text-inverted-text-color);background-color:var(--_c-button-text-inverted-background-color);color:var(--_c-button-text-inverted-text-color)}:host(.c-button--text.c-button--inverted:hover){--_c-button-text-inverted-background-color-hover:var(--c-button-text-inverted-background-color-hover, rgba(var(--c-white-rgb), 0.3));background-color:var(--_c-button-text-inverted-background-color-hover)}:host(.c-button--text.c-button--inverted.c-button--disabled){--_c-button-text-inverted-disabled-background-color:var(--c-button-text-inverted-disabled-background-color, var(--c-transparent));--_c-button-text-inverted-disabled-text-color:var(--c-button-text-inverted-disabled-text-color, var(--c-tertiary-400));background-color:var(--_c-button-text-inverted-disabled-background-color);color:var(--_c-button-text-inverted-disabled-text-color)}:host(.c-button--outlined){--_c-button-outlined-text-color:var(--c-button-outlined-text-color, var(--c-primary-600));--_c-button-outlined-border-color:var(--c-button-outlined-border-color, var(--_c-button-outlined-text-color));--_c-button-outlined-background-color:var(--c-button-outlined-background-color, var(--c-transparent));--_c-button-outlined-loader-color:var(--c-button-outlined-loader-color, var(--_c-button-outlined-text-color));--_c-button-loader-color:var(--_c-button-outlined-loader-color);--_c-outline-color:var(--_c-button-outlined-border-color);--_c-button-outline-color:var(--_c-button-outlined-border-color);background-color:var(--_c-button-outlined-background-color);color:var(--_c-button-outlined-text-color);box-shadow:inset 0 0 0 2px var(--_c-outline-color)}:host(.c-button--outlined:hover){--_c-button-outlined-background-color-hover:var(--c-button-outlined-background-color-hover, var(--c-primary-200));background-color:var(--_c-button-outlined-background-color-hover)}:host(.c-button--outlined.c-button--disabled){--_c-button-outlined-disabled-text-color:var(--c-button-outlined-disabled-text-color, var(--c-tertiary-500));--_c-button-outlined-disabled-background-color:var(--c-button-outlined-disabled-background-color, var(--_c-button-outlined-background-color));--_c-button-outlined-disabled-border-color:var(--c-button-outlined-disabled-border-color, var(--c-tertiary-400));--_c-outline-color:var(--_c-button-outlined-disabled-border-color);background-color:var(--_c-button-outlined-disabled-background-color);color:var(--_c-button-outlined-disabled-text-color)}:host(.c-button--outlined.c-button--inverted){--_c-button-outlined-inverted-text-color:var(--c-button-outlined-inverted-text-color, var(--c-white));--_c-button-outlined-inverted-border-color:var(--c-button-outlined-inverted-border-color, var(--_c-button-outlined-inverted-text-color));--_c-button-outlined-inverted-background-color:var(--c-button-outlined-inverted-background-color, var(--_c-button-outlined-background-color));--_c-outline-color:var(--_c-button-outlined-inverted-border-color);--_c-button-outline-color:var(--_c-button-outlined-inverted-border-color);background-color:var(--_c-button-outlined-inverted-background-color);color:var(--_c-button-outlined-inverted-text-color)}:host(.c-button--outlined.c-button--inverted:hover){--_c-button-outlined-inverted-background-color-hover:var(--c-button-outlined-inverted-background-color-hover, rgba(var(--c-white-rgb), 0.3));background-color:var(--_c-button-outlined-inverted-background-color-hover)}:host(.c-button--outlined.c-button--inverted.c-button--disabled){--_c-button-outlined-inverted-disabled-border-color:var(--c-button-outlined-inverted-disabled-border-color, var(--c-tertiary-400));--_c-button-outlined-inverted-disabled-text-color:var(--c-button-outlined-inverted-disabled-text-color, var(--c-tertiary-400));--_c-button-outlined-inverted-disabled-background-color:var(--c-button-outlined-inverted-disabled-background-color, var(--_c-button-outlined-background-color));--_c-outline-color:var(--_c-button-outlined-inverted-disabled-border-color);background-color:var(--_c-button-outlined-inverted-disabled-background-color);color:var(--_c-button-outlined-inverted-disabled-text-color)}:host(.c-button--disabled){--_c-button-disabled-background-color:var(--c-button-disabled-background-color, var(--c-tertiary-100));--_c-button-disabled-text-color:var(--c-button-disabled-text-color, var(--c-tertiary-600));--_c-button-loader-color:var(--_c-button-disabled-text-color);background-color:var(--_c-button-disabled-background-color);color:var(--_c-button-disabled-text-color);pointer-events:none}:host(.c-button:focus){z-index:2}:host(.c-button) a:focus,:host(.c-button) button:focus{outline:none}:host(.c-button) a:focus-visible,:host(.c-button) button:focus-visible{outline:2px var(--_c-button-outline-color) solid;outline-offset:var(--_c-button-outline-offset);z-index:1}:host(.c-button--fit){width:100%}:host(.c-button--small){--_c-button-height:28px}:host(.c-button--large){--_c-button-height:52px}:host(.c-button--fitted){width:100%}::slotted([slot=icon]){font-size:var(--_c-button-icon-size)}::slotted(svg){fill:var(--_c-button-loader-color)}a{text-decoration:none}button,a{background-color:transparent;border-radius:var(--_c-button-border-radius);color:currentColor;font-family:var(--c-font-family);display:inline-grid;place-items:center;border:none;padding:0;position:relative;margin:0;width:100%;cursor:pointer;transition:background-color 0.3s cubic-bezier(0.25, 0.8, 0.5, 1), color 0.3s cubic-bezier(0.25, 0.8, 0.5, 1)}button:disabled,a:disabled{cursor:default}@media (max-width: 767px){.full-width-mobile{max-width:100% !important;width:100% !important;margin:0 !important}.full-width-mobile .c-button-padding{padding:24px 38px}.full-width{flex-grow:1 !important}}.c-button__content{border-radius:var(--_c-button-border-radius);position:relative;box-shadow:none;outline:none;backface-visibility:hidden;transform:translate3d(0, 0, 0);transition:background-color 0.3s;color:currentColor;margin:0;text-decoration:none;display:flex;text-align:center;font-size:var(--_c-button-font-size);font-weight:700;line-height:18px;user-select:none;min-width:var(--_c-button-min-width);white-space:nowrap;height:100%;width:100%;align-items:center;justify-content:center}.c-button__content *{pointer-events:none}.c-button__content svg{fill:var(--_c-button-loader-color);height:var(--_c-button-icon-size);width:var(--_c-button-icon-size)}.c-button__content svg.icon-by-path{margin-right:8px}.c-button__content svg.button-icon{margin-right:16px;font-size:10px;margin-left:-8px;margin-bottom:-2px}.c-button__content--small{--_c-button-padding:0 12px;--_c-button-font-size:14px;--_c-button-icon-size:20px}.c-button__content--large{--_c-button-padding:0 24px;--_c-button-font-size:18px}.c-button__content--no-radius{--_c-button-border-radius:0}.c-button__content--fitted{width:100%}.c-button__content--description{display:grid;grid-template-columns:1fr;gap:0}.c-button__content__inner{display:flex;gap:8px;height:var(--_c-button-height);align-items:center;justify-content:center;padding:var(--_c-button-padding)}.c-button__content__description{font-weight:400;font-size:12px;padding:0 12px 12px}.c-button__content__description--loading{opacity:0.8}.hide-text{color:transparent !important}.hide-text ::slotted([slot=icon]){opacity:0}.hide-text svg{fill:transparent !important}.hide-text .outlined.c-button svg{fill:transparent !important}.c-button__loader{width:100%;position:absolute;height:var(--_c-button-height);display:grid;place-content:center}.c-button__loader.dense_spinner{padding-top:7px}";
292
+
293
+ const CButton = class {
294
+ constructor(hostRef) {
295
+ index.registerInstance(this, hostRef);
296
+ this.tabChange = index.createEvent(this, "tabChange", 7);
297
+ this.tabFocus = index.createEvent(this, "tabFocus", 7);
298
+ this._onClick = (event, center = false) => {
299
+ var _a;
300
+ if (this.disabled) {
301
+ event.preventDefault();
302
+ return;
303
+ }
304
+ this._rippleElement.createRipple(event, this._container, center);
305
+ if (this.tabs) {
306
+ this.tabChange.emit({
307
+ value: (_a = this.value) !== null && _a !== void 0 ? _a : this.hostElement.dataset.index,
308
+ element: this.hostElement,
309
+ });
310
+ }
311
+ if (this.type === 'submit') {
312
+ const submitButton = this._createHiddenSubmitButton();
313
+ submitButton.click();
314
+ submitButton.remove();
315
+ }
316
+ };
317
+ this._createHiddenSubmitButton = () => {
318
+ const form = this._closestElementComposed('form', this._container);
319
+ const submitButton = document.createElement('button');
320
+ submitButton.type = this.type;
321
+ submitButton.style.display = 'none';
322
+ submitButton.disabled = this.disabled;
323
+ form.appendChild(submitButton);
324
+ return submitButton;
325
+ };
326
+ this._onKeyDown = (event) => {
327
+ if (['Space', 'Enter'].includes(event.code)) {
328
+ if (!!this.href) {
329
+ window.open(this.href, this.target);
330
+ }
331
+ event.preventDefault();
332
+ this._onClick(event, true);
333
+ }
334
+ };
335
+ this.inverted = false;
336
+ this.outlined = false;
337
+ this.ghost = false;
338
+ this.danger = false;
339
+ this.grouped = false;
340
+ this.text = false;
341
+ this.loading = false;
342
+ this.fit = false;
343
+ this.noRadius = false;
344
+ this.type = 'button';
345
+ this.disabled = false;
346
+ this.value = undefined;
347
+ this.hostId = undefined;
348
+ this.size = 'default';
349
+ this.href = undefined;
350
+ this.target = '_blank';
351
+ this.tabs = false;
352
+ }
353
+ onTabFocus() {
354
+ var _a;
355
+ this.tabFocus.emit((_a = this.value) !== null && _a !== void 0 ? _a : this.hostElement.dataset.index);
356
+ }
357
+ _closestElementComposed(selector, base) {
358
+ function __closestFrom(el) {
359
+ const found = el.closest(selector);
360
+ return found ? found : __closestFrom(el.getRootNode().host);
361
+ }
362
+ return __closestFrom(base);
363
+ }
364
+ componentWillLoad() {
365
+ this._containerhasDescriptionSlot = !!this.hostElement.querySelector('[slot="description"]');
366
+ }
367
+ render() {
368
+ const contentClasses = {
369
+ 'c-button__content': true,
370
+ 'c-button__content--description': this._containerhasDescriptionSlot,
371
+ 'c-button__content--fitted': !!this.fit,
372
+ 'c-button__content--large': this.size === 'large',
373
+ 'c-button__content--no-radius': !!this.noRadius,
374
+ 'c-button__content--small': this.size === 'small',
375
+ };
376
+ const innerClasses = {
377
+ 'c-button__content__inner': true,
378
+ 'hide-text': this.loading,
379
+ };
380
+ const buttonClasses = {
381
+ fit: !!this.fit,
382
+ grouped: this.grouped,
383
+ outlined: this.outlined,
384
+ };
385
+ const hostClasses = {
386
+ 'c-button': true,
387
+ 'c-button--ghost': this.ghost,
388
+ 'c-button--outlined': this.outlined,
389
+ 'c-button--danger': this.danger,
390
+ 'c-button--disabled': this.disabled,
391
+ 'c-button--inverted': this.inverted,
392
+ 'c-button--text': this.text,
393
+ 'c-button--fitted': !!this.fit,
394
+ 'c-button--description': !!this._containerhasDescriptionSlot,
395
+ 'c-button--active': this.grouped && !this.outlined,
396
+ 'c-button--no-radius': !!this.noRadius,
397
+ [`c-button--${this.size}`]: true,
398
+ };
399
+ const descriptionSlotClasses = {
400
+ 'c-button__content__description': this._containerhasDescriptionSlot,
401
+ 'c-button__content__description--loading': this.loading,
402
+ };
403
+ const Tag = !!this.href ? 'a' : 'button';
404
+ const hostAttributes = {
405
+ onKeyDown: this._onKeyDown,
406
+ };
407
+ const attributes = {
408
+ id: this.hostId,
409
+ class: buttonClasses,
410
+ disabled: this.disabled,
411
+ onClick: this._onClick,
412
+ type: this.type,
413
+ };
414
+ let linkAttributes = {};
415
+ if (!!this.href) {
416
+ linkAttributes = { href: this.href, target: this.target };
417
+ }
418
+ const spinnerSizes = {
419
+ small: 20,
420
+ default: 24,
421
+ large: 28,
422
+ };
423
+ return (index.h(index.Host, Object.assign({ class: hostClasses }, hostAttributes), index.h(Tag, Object.assign({}, attributes, linkAttributes), index.h("div", { class: contentClasses, ref: (el) => (this._container = el) }, index.h("div", { class: innerClasses }, this.loading && (index.h("div", { class: "c-button__loader" }, index.h("c-spinner", { color: "var(--_c-button-loader-color)", size: spinnerSizes[this.size] }))), index.h("slot", null)), this._containerhasDescriptionSlot && (index.h("div", { class: descriptionSlotClasses }, index.h("slot", { name: "description" })))), index.h("c-ripple", { ref: (el) => (this._rippleElement = el) }))));
424
+ }
425
+ get hostElement() { return index.getElement(this); }
426
+ };
427
+ CButton.style = cButtonCss;
428
+
429
+ const cCardCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host(c-card){--_c-card-gap:var(--c-card-gap, clamp(1rem, 2vw, 1.5rem));--_c-card-background-color:var(--c-card-background-color, var(--c-white));display:flex;border-radius:6px;box-shadow:rgba(0, 0, 0, 0.15) 0 10px 20px, rgba(0, 0, 0, 0.2) 0 5px 5px;padding-block:var(--_c-card-gap);position:relative;background-color:var(--_c-card-background-color)}:host(c-card) article{display:flex;flex-direction:column;flex:1;gap:var(--_c-card-gap);max-width:100%}:host(.c-card--fullscreen){--c-icon-button-text-background-color:var(--c-white);overflow:auto}:host(.c-card--fullscreen) .c-card__fullscreen-toggle{position:fixed}@-moz-document url-prefix(){:host(.c-card--fullscreen) .c-card__fullscreen-toggle{position:absolute}}::slotted(c-loader){border-radius:6px}.c-card__fullscreen-toggle{position:absolute;right:calc(var(--_c-card-gap) - 8px);top:calc(var(--_c-card-gap) - 8px)}";
430
+
431
+ const CCard = class {
432
+ constructor(hostRef) {
433
+ index.registerInstance(this, hostRef);
434
+ this.fullscreen = false;
435
+ this.isFullscreen = false;
436
+ }
437
+ _toggleFullscreen() {
438
+ this.isFullscreen = !this.isFullscreen;
439
+ }
440
+ _onFullscreen() {
441
+ var _a, _b;
442
+ if (document.fullscreenElement) {
443
+ this.exitFullscreen();
444
+ return;
445
+ }
446
+ this.host.requestFullscreen();
447
+ const modalWrapper = (_b = (_a = this.host.parentElement) === null || _a === void 0 ? void 0 : _a.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('.modal-wrapper');
448
+ if (modalWrapper) {
449
+ modalWrapper.style.display = this.isFullscreen
450
+ ? 'block'
451
+ : 'flex';
452
+ }
453
+ }
454
+ componentDidLoad() {
455
+ const title = this.host.querySelector('c-card-title');
456
+ if (!!title && this.fullscreen) {
457
+ title.style.marginRight = '40px';
458
+ }
459
+ this.host.addEventListener('fullscreenchange', this._toggleFullscreen.bind(this));
460
+ }
461
+ disconnectedCallback() {
462
+ this.host.removeEventListener('fullscreenchange', this._toggleFullscreen.bind(this));
463
+ }
464
+ async exitFullscreen() {
465
+ var _a, _b;
466
+ if (!document.fullscreenElement)
467
+ return;
468
+ document.exitFullscreen();
469
+ const modalWrapper = (_b = (_a = this.host.parentElement) === null || _a === void 0 ? void 0 : _a.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('.modal-wrapper');
470
+ if (modalWrapper) {
471
+ modalWrapper.style.display = 'flex';
472
+ }
473
+ }
474
+ async enterFullscreen() {
475
+ this.isFullscreen = true;
476
+ }
477
+ render() {
478
+ const hostClasses = {
479
+ 'c-card': true,
480
+ 'c-card--fullscreen': this.isFullscreen,
481
+ };
482
+ return (index.h(index.Host, { class: hostClasses }, index.h("article", null, this.fullscreen && (index.h("c-icon-button", { "aria-hidden": "true", class: "c-card__fullscreen-toggle", title: this.isFullscreen ? 'Exit fullscreen' : 'Enter fullscreen', text: true, onClick: () => this._onFullscreen() }, index.h("c-icon", { path: this.isFullscreen ? mdi.mdiFullscreenExit : mdi.mdiFullscreen }))), index.h("slot", null))));
483
+ }
484
+ static get assetsDirs() { return ["assets"]; }
485
+ get host() { return index.getElement(this); }
486
+ };
487
+ CCard.style = cCardCss;
488
+
489
+ const cCardActionsCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{padding:0 var(--_c-card-gap, 24px);display:block}:host menu{margin:0;padding:0}.c-card-actions{align-items:center;display:flex;gap:8px}.c-card-actions ::slotted(c-button[fit]){flex:1}.c-card-actions--align-center{align-items:center}.c-card-actions--align-start{align-items:flex-start}.c-card-actions--align-end{align-items:flex-end}.c-card-actions--justify-center{justify-content:center}.c-card-actions--justify-end{justify-content:flex-end}.c-card-actions--justify-start{justify-content:flex-start}.c-card-actions--justify-stretch{justify-content:stretch}.c-card-actions--justify-stretch ::slotted(*){flex:1}.c-card-actions--justify-space-between{justify-content:space-between}.c-card-actions--justify-space-around{justify-content:space-around}";
490
+
491
+ const CCardActions = class {
492
+ constructor(hostRef) {
493
+ index.registerInstance(this, hostRef);
494
+ this.align = 'center';
495
+ this.justify = 'start';
496
+ }
497
+ render() {
498
+ const classes = {
499
+ 'c-card-actions': true,
500
+ [`c-card-actions--align-${this.align}`]: true,
501
+ [`c-card-actions--justify-${this.justify}`]: true,
502
+ };
503
+ return (index.h("footer", null, index.h("menu", { class: classes }, index.h("slot", null))));
504
+ }
505
+ };
506
+ CCardActions.style = cCardActionsCss;
507
+
508
+ const cCardContentCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{display:block;padding:0 var(--_c-card-gap, 24px)}.c-card-content{display:flex;flex-direction:column;gap:var(--_c-card-gap)}.c-card-content ::slotted(*){max-width:100%}";
509
+
510
+ const CCardContent = class {
511
+ constructor(hostRef) {
512
+ index.registerInstance(this, hostRef);
513
+ }
514
+ render() {
515
+ return (index.h("article", { class: "c-card-content" }, index.h("slot", null)));
516
+ }
517
+ };
518
+ CCardContent.style = cCardContentCss;
519
+
520
+ const cCardTitleCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{--_c-card-title-color:var(--c-card-title-color, var(--c-text-system));--_c-card-title-underline-color:var(--c-card-title-underline-color, var(--c-primary-600));color:var(--_c-card-title-color);padding-inline:var(--_c-card-gap, 24px);display:block;font-family:var(--c-font-family);font-size:1rem;font-weight:500;text-transform:uppercase}.c-card-title__underline{background-color:var(--_c-card-title-underline-color);border-radius:4px;height:4px;margin-top:10px;width:44px}";
521
+
522
+ const CCardTitle = class {
523
+ constructor(hostRef) {
524
+ index.registerInstance(this, hostRef);
525
+ }
526
+ render() {
527
+ return (index.h("header", { class: "c-card-title" }, index.h("slot", null), index.h("div", { class: "c-card-title__underline" })));
528
+ }
529
+ };
530
+ CCardTitle.style = cCardTitleCss;
531
+
532
+ const cCheckboxCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{--_c-checkbox-background-color-hover:var(--c-checkbox-background-color-hover, rgba(var(--c-primary-rgb), 0.1));--_c-checkbox-color-active:var(--c-checkbox-color-active, var(--_c-checkbox-color));--_c-checkbox-color-disabled:var(--c-checkbox-color-disabled, var(--c-tertiary-500));--_c-checkbox-color:var(--c-checkbox-color, var(--c-primary-600));--_c-checkbox-color-error:var(--c-error-600)}.c-checkbox{position:relative;width:fit-content}.c-checkbox__details{line-height:1;padding:0 12px}.c-checkbox__details.active .c-checkbox__message{opacity:1;transform:translateY(0)}.c-checkbox__message{font-size:12px;opacity:0;transform:translateY(-4px);transition:all 0.2s cubic-bezier(0.25, 0.8, 0.5, 1)}.c-checkbox__message--hint{color:var(--c-tertiary-500)}.c-checkbox__message--error{color:var(--_c-checkbox-color-error)}.c-checkbox__message span{align-items:flex-start;color:currentColor;display:flex;gap:4px;height:16px}.c-checkbox__message svg{fill:currentColor;min-height:16px;min-width:16px;position:relative;top:-2px}.c-checkbox__label-content{padding-top:10px;text-align:left;user-select:none}.c-checkbox__label-content span.required{color:var(--c-error-600)}.c-checkbox--disabled{--_c-checkbox-color:var(--_c-checkbox-color-disabled);--c-error-600:var(--_c-checkbox-color);--_c-checkbox-color-active:var(--_c-checkbox-color-disabled);color:var(--_c-checkbox-color);opacity:0.75}.c-checkbox--disabled .c-checkbox__label{cursor:default}.c-checkbox--error{--_c-checkbox-color:var(--c-error-600);--_c-checkbox-color-active:var(--_c-checkbox-color-error);color:var(--_c-checkbox-color-error)}.c-checkbox input:focus{outline:none}.c-checkbox input:focus+.c-checkbox__label .ripple{outline:2px var(--_c-checkbox-color-active) solid}@supports selector(:focus-visible){.c-checkbox input:focus+.c-checkbox__label .ripple{outline:none}}.c-checkbox input:focus-visible+.c-checkbox__label .ripple{outline:2px var(--_c-checkbox-color-active) solid}.c-checkbox:not(.c-checkbox--disabled) .ripple:hover{background-color:var(--_c-checkbox-background-color-hover)}.c-checkbox .visuallyhidden{border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;padding:0;position:absolute;width:1px}.c-checkbox input:checked+.c-checkbox__label .ripple::before{background:var(--_c-checkbox-color-active);border-color:var(--_c-checkbox-color-active)}.c-checkbox input:checked+.c-checkbox__label .path{stroke:#ffffff;fill:#ffffff;stroke-dashoffset:0;stroke-width:13;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10}.c-checkbox__label{cursor:pointer;display:flex;gap:4px;position:relative;user-select:none}.c-checkbox__label svg{height:14px;left:14px;position:absolute;top:14px;width:14px}.c-checkbox__label--indeterminate .path{stroke-dasharray:0 !important;stroke-dashoffset:0 !important;stroke:transparent}.c-checkbox__label .ripple{border-radius:50%;color:var(--_c-checkbox-color-active);display:grid;height:42px;min-width:42px;overflow:hidden;place-content:center;position:relative;transform:translateZ(0);width:42px}.c-checkbox__label .ripple::before{border-radius:2px;border:2px solid var(--_c-checkbox-color);content:\"\";display:inline-block;height:18px;left:12px;position:absolute;top:12px;transition:all 0.25s ease-out;vertical-align:middle;width:18px}";
533
+
534
+ const CCheckbox = class {
535
+ constructor(hostRef) {
536
+ index.registerInstance(this, hostRef);
537
+ this.changeValue = index.createEvent(this, "changeValue", 3);
538
+ if (hostRef.$hostElement$["s-ei"]) {
539
+ this.internals = hostRef.$hostElement$["s-ei"];
540
+ }
541
+ else {
542
+ this.internals = hostRef.$hostElement$.attachInternals();
543
+ hostRef.$hostElement$["s-ei"] = this.internals;
544
+ }
545
+ this._validationIcon = (index.h("svg", { height: "16px", width: "16px", viewBox: "0 0 24 24" }, index.h("path", { d: mdi.mdiCloseCircle })));
546
+ this.checked = false;
547
+ this.disabled = false;
548
+ this.hideDetails = false;
549
+ this.hint = '';
550
+ this.indeterminate = false;
551
+ this.label = '';
552
+ this.required = false;
553
+ this.valid = true;
554
+ this.validation = 'Required field';
555
+ this.value = false;
556
+ this.trueValue = true;
557
+ this.falseValue = false;
558
+ this.hostName = undefined;
559
+ this.messageOptions = {
560
+ show: false,
561
+ type: 'hint',
562
+ content: '',
563
+ };
564
+ }
565
+ onValidationMessageChange(message) {
566
+ this.onValidChange(message.length === 0);
567
+ }
568
+ onValidChange(valid) {
569
+ this._handleValidation(valid || this.valid);
570
+ }
571
+ handleKeyDown(event) {
572
+ if (['Space'].includes(event.code)) {
573
+ event.preventDefault();
574
+ this._toggleState(event);
575
+ }
576
+ }
577
+ componentWillLoad() {
578
+ this.checked = this.checked || this.value === this.trueValue;
579
+ this.internals.setFormValue(this.checked ? this.trueValue.toString() : this.falseValue.toString());
580
+ }
581
+ componentDidLoad() {
582
+ this._handleMessageOptions(this.valid);
583
+ }
584
+ _handleMessageOptions(valid) {
585
+ requestAnimationFrame(() => {
586
+ this.messageOptions = Object.assign(Object.assign({}, this.messageOptions), { type: valid ? 'hint' : 'error', show: true, content: valid ? (index.h("span", null, this.hint)) : (index.h("span", null, this._validationIcon, " ", this.validation)) });
587
+ });
588
+ }
589
+ _handleValidation(valid, timeout = 200) {
590
+ setTimeout(() => {
591
+ this._handleMessageOptions(valid);
592
+ }, timeout);
593
+ }
594
+ _toggleState(event) {
595
+ if (this.disabled)
596
+ return;
597
+ this._rippleElement.createRipple(event, this._container, true);
598
+ this.checked = !this.checked;
599
+ this.changeValue.emit(this.checked ? this.trueValue : this.falseValue);
600
+ this.internals.setFormValue(this.checked ? this.trueValue.toString() : this.falseValue.toString());
601
+ }
602
+ _renderMessages() {
603
+ if (this.hideDetails)
604
+ return;
605
+ const classes = {
606
+ 'c-checkbox__details': true,
607
+ active: this.messageOptions.show,
608
+ };
609
+ const messageClasses = {
610
+ 'c-checkbox__message': true,
611
+ [`c-checkbox__message--${this.messageOptions.type}`]: true,
612
+ };
613
+ return (index.h("div", { class: classes }, index.h("div", { class: messageClasses }, this.messageOptions.content)));
614
+ }
615
+ render() {
616
+ const wrapperClasses = {
617
+ 'c-checkbox': true,
618
+ 'c-checkbox--disabled': this.disabled,
619
+ 'c-checkbox--error': this.messageOptions.type === 'error',
620
+ };
621
+ const labelClasses = {
622
+ 'c-checkbox__label': true,
623
+ 'c-checkbox__label--indeterminate': this.indeterminate,
624
+ };
625
+ const slotHasContent = !!this.el.childNodes.length;
626
+ return (index.h(index.Host, null, index.h("div", { class: wrapperClasses }, index.h("input", Object.assign({ class: "visuallyhidden", id: "checkbox" }, (!!this.hostName ? { name: this.hostName } : {}), { type: "checkbox", "aria-checked": this.checked.toString(), "aria-disabled": this.disabled.toString(), checked: this.checked ? true : undefined, disabled: this.disabled, onChange: (event) => this._toggleState(event) })), index.h("label", { class: labelClasses, htmlFor: "checkbox" }, index.h("div", { class: "ripple", ref: (el) => (this._container = el) }, index.h("svg", { viewBox: "0 0 100 100" }, !this.indeterminate && this.checked && (index.h("path", { class: "path", d: "M 12 52 l 24 24 l 47 -47 l -3 -3 l -44 44 l -21 -21 l -3 3" })), this.indeterminate && (index.h("path", { class: "path", d: "M20 56 h60 v-8 h-60 z" }))), index.h("c-ripple", { ref: (el) => (this._rippleElement = el) })), (!!this.label || slotHasContent) && (index.h("div", { class: "c-checkbox__label-content" }, !!this.label ? this.label : index.h("slot", null), this.required && index.h("span", { class: "required" }, "\u00A0*"))))), this._renderMessages()));
627
+ }
628
+ static get formAssociated() { return true; }
629
+ get el() { return index.getElement(this); }
630
+ static get watchers() { return {
631
+ "validation": ["onValidationMessageChange"],
632
+ "valid": ["onValidChange"]
633
+ }; }
634
+ };
635
+ CCheckbox.style = cCheckboxCss;
636
+
637
+ const cCscLogoCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{display:block;margin-top:4px}svg .cls-1{fill:none}svg .cls-2{clip-path:url(\"#clip-path\")}svg .cls-3{fill:#5e6a71}svg .cls-4{fill:#066778}svg .cls-5{fill:#830051}";
638
+
639
+ const CCscLogo = class {
640
+ constructor(hostRef) {
641
+ index.registerInstance(this, hostRef);
642
+ this.width = 60;
643
+ }
644
+ render() {
645
+ const svg = (index.h("svg", { viewBox: "0 0 233.61 149.04" }, index.h("defs", null, index.h("clipPath", { id: "clip-path", transform: "translate(0)" }, index.h("rect", { class: "cls-1", width: "233.61", height: "156.31" }))), index.h("title", null, "CSC_logo_no_tagline"), index.h("g", { id: "Layer_2", "data-name": "Layer 2" }, index.h("g", { id: "Layer_1-2", "data-name": "Layer 1" }, index.h("g", { class: "cls-2" }, index.h("path", { class: "cls-3", d: "M97.24,130.66l-.27-.17a.69.69,0,0,1-.44.19,14.57,14.57,0,0,1-1.87-1.07,9.29,9.29,0,0,0-4.46-1.06c-6,0-9.21,4.93-9.21,10.24S84.22,149,90.09,149c4.6,0,5.89-2.57,7-2.57a2.17,2.17,0,0,1,.25.05l.22-.11-2.44-3.34-.28.17a1.84,1.84,0,0,1,.06.41c0,1.34-2.36,2.71-4.64,2.65-4.33-.08-6.08-3.72-6.08-7.56s1.86-7.45,6-7.45c2.2,0,4.44,1.15,4.44,2.21,0,.25.06.41,0,.53l.33.13ZM108,146.72l.32.13a.75.75,0,0,1,.42-.22,12.54,12.54,0,0,0,7.62,2.41c4.32,0,7.28-2.49,7.28-6.19,0-8.14-11.86-4.17-11.86-8.6,0-1.7,1-3,4.11-3,2.41,0,5.26,1,5.26,2.49a.92.92,0,0,1,0,.3l.36.17,1.92-4.14-.28-.11a.85.85,0,0,1-.62.3,11.61,11.61,0,0,1-1.95-.88,11,11,0,0,0-4.5-.87c-4.33,0-7.4,2.08-7.4,5.8,0,7.82,11.76,3.68,11.76,8.67,0,2.27-1.65,3.28-4,3.28-2.77,0-6.11-1.53-6.11-3a1.89,1.89,0,0,1,0-.41l-.31-.17Zm42.56-16.06-.28-.17a.64.64,0,0,1-.43.19,14.57,14.57,0,0,1-1.87-1.07,9.3,9.3,0,0,0-4.47-1.06c-6,0-9.21,4.93-9.21,10.24S137.5,149,143.37,149c4.6,0,5.89-2.57,7-2.57a1.59,1.59,0,0,1,.24.05l.22-.11-2.44-3.34-.27.17a1.84,1.84,0,0,1,.05.41c0,1.34-2.35,2.71-4.63,2.65-4.33-.08-6.08-3.72-6.08-7.56s1.86-7.45,6-7.45c2.2,0,4.44,1.15,4.44,2.21a1.82,1.82,0,0,1,0,.53l.33.13Z", transform: "translate(0)" }), index.h("path", { class: "cls-4", d: "M117.26,117.71s-2.66-.42-2.72-1.66c-2.41-54.33-7.39-52.22-111.82-54.33-2,0-2.72-2.87-2.72-2.87H117.26Z", transform: "translate(0)" }), index.h("path", { class: "cls-5", d: "M116.35,0s2.66.42,2.72,1.66C121.49,56,126.46,53.88,230.89,56c2,0,2.72,2.87,2.72,2.87H116.35Z", transform: "translate(0)" }))))));
646
+ return index.h(index.Host, { style: { width: `${this.width}px` } }, svg);
647
+ }
648
+ };
649
+ CCscLogo.style = cCscLogoCss;
650
+
651
+ const cDropdownCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host(c-dropdown){--_c-dropdown-background-color:var(\n --c-dropdown-background-color,\n var(--c-white)\n );--_c-dropdown-background-color-hover:var(\n --c-dropdown-background-color-hover,\n var(--c-primary-200)\n );--_c-dropdown-text-color:var(--c-dropdown-text-color, var(--c-text-body));--_c-dropdown-text-color-active:var(\n --c-dropdown-text-color-active,\n var(--c-primary-600)\n );--_c-dropdown-font-size:14px;--_c-dropdown-height:42px;display:block;position:relative}:host(c-dropdown) mark{background-color:transparent;box-shadow:0 2px 0 0 var(--_c-dropdown-text-color-active);color:inherit}:host(c-dropdown) dialog{border-radius:4px;background-color:transparent;border:none;margin:-4px 0 0;overflow:visible;padding:4px 0 0;position:fixed}:host(c-dropdown) dialog::backdrop{display:none}:host(c-dropdown) dialog[open].mobile{background-color:var(--_c-dropdown-background-color);width:100vw;max-width:100vw;height:100vh;max-height:100svh;inset:0}:host(c-dropdown) dialog[open].mobile .input-top-wrapper{padding:8px}:host(c-dropdown) dialog .input-bottom-wrapper.active{padding-top:8px}:host(c-dropdown) .dummy{display:none}:host(c-dropdown) ul{background-color:var(--_c-dropdown-background-color);box-shadow:2px 4px 10px rgba(0, 0, 0, 0.1607843137);border-radius:4px;list-style:none;margin:0;outline:none;padding:0;pointer-events:auto;visibility:hidden;width:100%;height:max-content;overflow-y:scroll}:host(c-dropdown) ul.active{visibility:visible;animation:0.2s 1 fade-in cubic-bezier(0.25, 0.8, 0.5, 1)}:host(c-dropdown) ul.active.mobile{width:100vw;max-width:100vw;height:100vh;max-height:calc(100svh - 60px)}:host(c-dropdown) li{align-items:center;column-gap:12px;cursor:pointer;display:flex;flex-wrap:nowrap;font-size:var(--_c-dropdown-font-size);min-height:var(--_c-dropdown-height);outline:none;padding-left:10px;padding-right:10px;pointer-events:auto;white-space:nowrap;width:100%;border-radius:4px}:host(c-dropdown) li span,:host(c-dropdown) li c-option-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}:host(c-dropdown) li:hover,:host(c-dropdown) li:focus,:host(c-dropdown) li.active{background:var(--_c-dropdown-background-color-hover);color:var(--_c-dropdown-text-color-active);box-shadow:inset 0 0 0 1px var(--_c-dropdown-text-color-active)}:host(c-dropdown) li:not(.disabled,:hover,:focus)[aria-selected=true]{background:var(--_c-dropdown-background-color-hover);color:var(--_c-dropdown-text-color-active);border-radius:0}:host(c-dropdown) li.disabled{background-color:rgba(var(--c-tertiary-rgb), 0.05);cursor:default;filter:grayscale(1) opacity(0.75)}:host(c-dropdown) .visuallyhidden{border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;padding:0;position:absolute;width:1px}@keyframes fade-in{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}";
652
+
653
+ const CDropdown = class {
654
+ constructor(hostRef) {
655
+ index.registerInstance(this, hostRef);
656
+ this.selectOption = index.createEvent(this, "selectOption", 7);
657
+ this.dropdownStateChange = index.createEvent(this, "dropdownStateChange", 7);
658
+ this._debounce = null;
659
+ this._isMobile = false;
660
+ this._listItems = [];
661
+ this._isOpening = false;
662
+ this._inputSize = {
663
+ height: 0,
664
+ width: 0,
665
+ };
666
+ this._openedOnTop = false;
667
+ this._hideDetails = false;
668
+ this.itemsPerPage = undefined;
669
+ this.parent = undefined;
670
+ this.items = undefined;
671
+ this.index = undefined;
672
+ this.hostId = undefined;
673
+ this.type = undefined;
674
+ this.itemType = undefined;
675
+ this.renderedList = null;
676
+ this.isOpen = false;
677
+ this.statusText = '';
678
+ }
679
+ optionsWatcher() {
680
+ requestAnimationFrame(() => {
681
+ this.renderedList = this._renderList();
682
+ });
683
+ }
684
+ async stateWatcher(isOpen) {
685
+ if (isOpen)
686
+ this._handleOpen();
687
+ this.dropdownStateChange.emit(isOpen);
688
+ this._scrollParent = this._scrollParent || (await getScrollParent.getScrollParent(this.el));
689
+ this._scrollParent.style.overflow = isOpen ? 'hidden' : null;
690
+ }
691
+ handleIndexChange(index) {
692
+ requestAnimationFrame(() => {
693
+ var _a;
694
+ this._updateStatusText();
695
+ (_a = this._listItems[index]) === null || _a === void 0 ? void 0 : _a.focus();
696
+ });
697
+ }
698
+ async setStatusText(text) {
699
+ requestAnimationFrame(() => {
700
+ this.statusText = text;
701
+ });
702
+ }
703
+ async focusItem(index) {
704
+ requestAnimationFrame(() => {
705
+ var _a;
706
+ (_a = this._listItems[index]) === null || _a === void 0 ? void 0 : _a.focus();
707
+ });
708
+ }
709
+ async open() {
710
+ if (this._dialog.open)
711
+ return;
712
+ this._outsideClickFn = this._handleOutsideClick.bind(this);
713
+ window.addEventListener('click', this._outsideClickFn);
714
+ requestAnimationFrame(() => {
715
+ this.isOpen = true;
716
+ this._positionMenu();
717
+ });
718
+ }
719
+ async close() {
720
+ this._dialog.close();
721
+ this.isOpen = false;
722
+ this._inputElement.slot = 'default';
723
+ this._inputElement.hideDetails = this._hideDetails;
724
+ this._dummyElement.style.width = '0';
725
+ this._dummyElement.style.display = 'none';
726
+ this._dialog.style.width = '0';
727
+ window.removeEventListener('click', this._outsideClickFn);
728
+ }
729
+ _setIsMobile() {
730
+ this._isMobile = window.matchMedia('only screen and (max-width: 760px)').matches;
731
+ }
732
+ _handleOpen() {
733
+ this._isOpening = true;
734
+ setTimeout(() => {
735
+ this._isOpening = false;
736
+ }, 500);
737
+ }
738
+ componentDidLoad() {
739
+ this._setIsMobile();
740
+ this._hideDetails = this.parent.hideDetails;
741
+ this._inputElement = this.el.querySelector('c-input');
742
+ this._resizeObserver = new ResizeObserver((entries) => {
743
+ if (!this._dialog.open)
744
+ return;
745
+ requestAnimationFrame(() => {
746
+ if (!Array.isArray(entries) || !entries.length || this._isOpening)
747
+ return;
748
+ this._setIsMobile();
749
+ this.close();
750
+ });
751
+ });
752
+ this._resizeObserver.observe(window.document.body);
753
+ requestAnimationFrame(() => {
754
+ this.renderedList = this._renderList();
755
+ });
756
+ }
757
+ async selectItem(index) {
758
+ const item = this._listItems[index];
759
+ if (item.classList.contains('disabled')) {
760
+ return true;
761
+ }
762
+ this._listItems[index].click();
763
+ return false;
764
+ }
765
+ async updateList() {
766
+ requestAnimationFrame(() => {
767
+ this.renderedList = this._renderList();
768
+ });
769
+ }
770
+ _handleOutsideClick(event) {
771
+ if (!this.isOpen)
772
+ return;
773
+ if (!event.composedPath().includes(this._dialog)) {
774
+ this.close();
775
+ }
776
+ }
777
+ _highlightMatchingText(value) {
778
+ const { query } = this.parent;
779
+ if (this.parent.tagName === 'C-SELECT' || query === '')
780
+ return value;
781
+ const regex = new RegExp(query, 'gi');
782
+ const highlighted = value
783
+ .replace(/(<([^>]+)>)/gi, '')
784
+ .replace(regex, (match) => `<mark>${match}</mark>`);
785
+ return highlighted;
786
+ }
787
+ _getParentPosition() {
788
+ return this.parent.shadowRoot
789
+ .querySelector('.c-input__slot')
790
+ .getBoundingClientRect();
791
+ }
792
+ _positionMenu() {
793
+ const { innerWidth, innerHeight } = window;
794
+ this._dialog.style.width = 'auto';
795
+ this._dialog.style.opacity = '0';
796
+ this._dialog.showModal();
797
+ requestAnimationFrame(() => {
798
+ let inputSlot = 'input-top';
799
+ const { top: parentTop, width } = this._getParentPosition();
800
+ const inputSize = this.el.getBoundingClientRect();
801
+ this._inputSize = {
802
+ height: inputSize.height,
803
+ width: inputSize.width,
804
+ };
805
+ if (!this._isMobile) {
806
+ this._dialog.style.width = `${width}px`;
807
+ this._dialog.style.top = `${inputSize.top}px`;
808
+ this._dialog.style.bottom = 'auto';
809
+ this._dialog.style.left = `${inputSize.left}px`;
810
+ const { bottom, right, height } = this._dialog.getBoundingClientRect();
811
+ const isInView = {
812
+ x: right < innerWidth,
813
+ y: bottom < innerHeight,
814
+ };
815
+ const fitsOnTop = parentTop - height > 0;
816
+ if (!fitsOnTop && !isInView.y) {
817
+ this._dialog.style.maxHeight = `${parentTop}px`;
818
+ }
819
+ if (!isInView.y || this._openedOnTop) {
820
+ this._openedOnTop = true;
821
+ this._inputElement.hideDetails = true;
822
+ inputSlot = 'input-bottom';
823
+ this._dialog.style.top = 'auto';
824
+ this._dialog.style.bottom = `${innerHeight - inputSize.top - 44}px`;
825
+ }
826
+ }
827
+ this._dummyElement.style.width = `${this._getParentPosition().width}px`;
828
+ this._dummyElement.style.height = `${this._inputSize.height}px`;
829
+ this._dummyElement.style.display = 'block';
830
+ this._dummyElement.slot = 'default';
831
+ this._inputElement.slot = inputSlot;
832
+ this._inputElement.hideDetails = true;
833
+ this._dialog.style.opacity = '1';
834
+ const input = this.parent.shadowRoot.querySelector('input');
835
+ input.focus();
836
+ });
837
+ }
838
+ _emptyItem() {
839
+ const { query, loading } = this.parent;
840
+ if (!query || loading)
841
+ return;
842
+ return (index.h("li", null, index.h("c-icon", { path: mdi.mdiAlert, size: 18, color: "var(--c-warning-600)" }), "No suggestions found"));
843
+ }
844
+ _renderList() {
845
+ return this.itemType === 'option'
846
+ ? this._renderOptionsList()
847
+ : this._renderItemsList();
848
+ }
849
+ _renderOptionsList() {
850
+ if (!this.items.length)
851
+ return this._emptyItem();
852
+ const options = Array.from(this.items);
853
+ this._listItems.length = 0;
854
+ return options.map((option, index$1) => {
855
+ const optionValue = option.querySelector('c-option-value');
856
+ if (optionValue) {
857
+ optionValue.innerHTML = this._highlightMatchingText(optionValue.textContent);
858
+ }
859
+ return (index.h("li", { ref: (el) => this._listItems.push(el), id: `${this.hostId}-option-${option.value}`, tabindex: "-1", role: "option", "aria-set-size": this.items.length.toString(), "aria-pos-in-set": (index$1 + 1).toString(), "aria-selected": (!!option.selected).toString(), class: { disabled: !!option.disabled }, "data-name": option.name, onClick: (event) => {
860
+ if (option.disabled) {
861
+ event.preventDefault();
862
+ return;
863
+ }
864
+ this.selectOption.emit({ name: option.name, value: option.value });
865
+ }, innerHTML: option.outerHTML }));
866
+ });
867
+ }
868
+ _renderItemsList() {
869
+ if (!this.items.length)
870
+ return this._emptyItem();
871
+ this._listItems.length = 0;
872
+ return this.items.map((item, index$1) => {
873
+ return (index.h("li", { ref: (el) => this._listItems.push(el), id: `${this.hostId}-option-${item.value}`, tabindex: "-1", role: "option", "aria-set-size": this.items.length.toString(), "aria-pos-in-set": (index$1 + 1).toString(), "aria-selected": (this.index === index$1).toString(), class: { disabled: !!item.disabled }, "data-name": item.name, onClick: (event) => {
874
+ if (item.disabled) {
875
+ event.preventDefault();
876
+ return;
877
+ }
878
+ this.selectOption.emit({ name: item.name, value: item.value });
879
+ } }, index.h("span", { innerHTML: this._highlightMatchingText(item.name) })));
880
+ });
881
+ }
882
+ _updateStatusText() {
883
+ if (this._debounce !== null) {
884
+ clearTimeout(this._debounce);
885
+ this._debounce = null;
886
+ }
887
+ this._debounce = window.setTimeout(() => {
888
+ var _a;
889
+ const selection = this._listItems[this.index];
890
+ const ending = !!this.items.length
891
+ ? ', to navigate use up and down arrows'
892
+ : '';
893
+ const total = this._listItems.length;
894
+ const position = this.index + 1;
895
+ const isDisabled = !!((_a = selection === null || selection === void 0 ? void 0 : selection.classList) === null || _a === void 0 ? void 0 : _a.contains('disabled'));
896
+ const beginning = isDisabled ? 'Disabled option - ' : '';
897
+ let selectionText = !!selection
898
+ ? `${beginning}${selection.dataset.name} - ${position} of ${total} is highlighted`
899
+ : null;
900
+ if (this.index === null && this.type === 'autocomplete') {
901
+ selectionText = this.items.length
902
+ ? `${this.items.length} result${this.items.length !== 1 ? 's' : ''} available`
903
+ : 'No search results available';
904
+ }
905
+ this.statusText = `${selectionText || ending}`;
906
+ this._debounce = null;
907
+ }, 1400);
908
+ }
909
+ render() {
910
+ if (!this._isMobile &&
911
+ this._dialog &&
912
+ this.itemsPerPage &&
913
+ this.itemsPerPage > 0 &&
914
+ this.items.length > this.itemsPerPage) {
915
+ this._dialog.style.maxHeight = 42 * (this.itemsPerPage + 0.5) + 60 + 'px';
916
+ this._list.style.maxHeight = 42 * (this.itemsPerPage + 0.5) + 'px';
917
+ }
918
+ return (index.h(index.Host, null, index.h("slot", { name: "default" }), index.h("div", { class: "dummy", ref: (el) => (this._dummyElement = el) }), index.h("dialog", { tabindex: "-1", ref: (el) => (this._dialog = el), class: { mobile: this._isMobile }, onCancel: () => this.close() }, index.h("div", { id: 'announce-' + this.hostId, class: "visuallyhidden", "aria-live": "polite", "aria-atomic": "true" }, this.statusText), index.h("div", { class: "input-top-wrapper" }, index.h("slot", { name: "input-top" })), index.h("ul", { ref: (el) => (this._list = el), id: `${this.hostId}--results`, role: "listbox", "aria-expanded": this.isOpen.toString(), class: { active: this.isOpen, mobile: this._isMobile }, tabindex: "-1" }, this.renderedList), index.h("div", { class: { active: this._openedOnTop, 'input-bottom-wrapper': true } }, index.h("slot", { name: "input-bottom" })))));
919
+ }
920
+ get el() { return index.getElement(this); }
921
+ static get watchers() { return {
922
+ "items": ["optionsWatcher"],
923
+ "isOpen": ["stateWatcher"],
924
+ "index": ["handleIndexChange"]
925
+ }; }
926
+ };
927
+ CDropdown.style = cDropdownCss;
928
+
929
+ const cIconCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host(c-icon){--_c-icon-color:var(\n --c-icon-color,\n var(--_c-icon-default-color, curentColor)\n );--_c-icon-size:var(--c-icon-size, 24px);display:inline-flex;align-items:center;height:var(--_c-icon-size);width:var(--_c-icon-size)}:host(c-icon) svg{height:var(--_c-icon-size);width:var(--_c-icon-size)}:host(c-icon) svg path{fill:var(--_c-icon-color)}";
930
+
931
+ const CIcon = class {
932
+ constructor(hostRef) {
933
+ index.registerInstance(this, hostRef);
934
+ this.path = undefined;
935
+ this.size = 24;
936
+ this.color = 'currentColor';
937
+ }
938
+ render() {
939
+ return (index.h(index.Host, { style: {
940
+ '--_c-icon-size': `${this.size}px`,
941
+ '--_c-icon-default-color': this.color,
942
+ } }, index.h("svg", { viewBox: "0 0 24 24" }, index.h("path", { d: this.path }))));
943
+ }
944
+ get host() { return index.getElement(this); }
945
+ };
946
+ CIcon.style = cIconCss;
947
+
948
+ const cIconButtonCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{--_c-icon-button-background-color:var(--c-icon-button-background-color, var(--c-primary-600));--_c-icon-button-background-color-hover:var(--c-icon-button-background-color-hover, var(--c-primary-400));--_c-icon-button-badge-background-color:var(--c-icon-button-badge-background-color, var(--c-warning-600));--_c-icon-button-badge-border-color:var(--c-icon-button-badge-border-color, var(--c-white));--_c-icon-button-badge-text-color:var(--c-icon-button-badge-text-color, var(--c-white));--_c-icon-button-border-radius:var(--c-icon-button-border-radius, 50%);--_c-icon-button-outline-color:var(--c-icon-button-outline-color, var(--c-primary-600));--_c-icon-button-text-color:var(--c-icon-button-text-color, var(--c-white));--_c-icon-button-loader-color:var(--_c-icon-button-text-color);--_c-icon-button-height:40px;--_c-icon-button-width:40px;display:block;position:relative;border-radius:var(--_c-icon-button-border-radius)}:host button{background-color:transparent;color:currentColor;display:inline-grid;place-items:center;border:none;padding:0;position:relative;margin:0;width:100%;height:100%;cursor:pointer;transition:background-color 0.3s cubic-bezier(0.25, 0.8, 0.5, 1), color 0.3s cubic-bezier(0.25, 0.8, 0.5, 1);outline:none;border-radius:var(--_c-icon-button-border-radius)}:host button:disabled{cursor:default}:host c-badge{--_c-badge-background-color:var(--c-badge-background-color, var(--_c-icon-button-badge-background-color));--_c-badge-text-color:var(--c-badge-text-color, var(--_c-icon-button-badge-border-color));--_c-badge-border-color:var(--c-badge-border-color, var(--_c-icon-button-badge-text-color))}:host(.c-icon-button) button{appearance:none}:host(.c-icon-button){font-family:var(--c-font-family);display:flex;border:none;padding:0;width:var(--_c-icon-button-width);height:var(--_c-icon-button-height);background-color:var(--_c-icon-button-background-color);color:var(--_c-icon-button-text-color);transition:background-color 0.3s ease;cursor:pointer;position:relative;align-items:center;justify-content:center;backface-visibility:hidden;transform:translate3d(0, 0, 0);line-height:normal}:host(.c-icon-button) ::slotted(c-icon){--_c-icon-size:24px}:host(.c-icon-button) ::slotted(svg),:host(.c-icon-button) ::slotted(i),:host(.c-icon-button) ::slotted(span){width:24px;height:24px;font-size:24px}:host(.c-icon-button) ::slotted(*),:host(.c-icon-button) svg{display:flex;align-items:center;justify-content:center}:host(:host:hover){background-color:var(--_c-icon-button-background-color-hover)}:host(.c-icon-button--small){--_c-icon-button-height:32px;--_c-icon-button-width:32px}:host(.c-icon-button--small) ::slotted(c-icon){--_c-icon-size:20px}:host(.c-icon-button--small) ::slotted(svg),:host(.c-icon-button--small) ::slotted(i),:host(.c-icon-button--small) ::slotted(span){width:22px !important;height:22px !important;font-size:16px !important}:host(.c-icon-button--x-small){--_c-icon-button-height:28px;--_c-icon-button-width:28px}:host(.c-icon-button--x-small) ::slotted(c-icon){--_c-icon-size:14px}:host(.c-icon-button--x-small) ::slotted(svg),:host(.c-icon-button--x-small) ::slotted(i),:host(.c-icon-button--x-small) ::slotted(span){width:18px !important;height:18px !important;font-size:14px !important}:host(.c-icon-button) button:focus{outline:none}:host(.c-icon-button) button:focus-visible{outline:2px var(--_c-icon-button-outline-color) solid;outline-offset:2px}:host(.c-icon-button--inverted){--_c-icon-button-inverted-background-color:var(--c-icon-button-inverted-background-color, var(--c-white));--_c-icon-button-inverted-text-color:var(--c-icon-button-inverted-text-color, var(--c-primary-600));--_c-icon-button-inverted-background-color-hover:var(--c-icon-button-inverted-background-color-hover, var(--c-primary-200));--_c-icon-button-inverted-badge-background-color:var(--c-icon-button-inverted-badge-background-color, var(--_c-icon-button-badge-background-color));--_c-icon-button-inverted-badge-border-color:var(--c-icon-button-inverted-badge-border-color, var(--c-transparent));--_c-icon-button-inverted-badge-text-color:var(--c-icon-button-inverted-badge-text-color, var(--_c-icon-button-badge-text-color));--_c-icon-button-loader-color:var(--_c-icon-button-inverted-text-color);background-color:var(--_c-icon-button-inverted-background-color);color:var(--_c-icon-button-inverted-text-color)}:host(.c-icon-button--inverted) c-badge{--_c-badge-text-color:var(--c-badge-text-color, var(--_c-icon-button-inverted-badge-border-color));--_c-badge-background-color:var(--c-badge-background-color, var(--_c-icon-button-inverted-badge-background-color));--_c-badge-border-color:var(--c-badge-border-color, var(--_c-icon-button-inverted-badge-text-color))}:host(.c-icon-button--inverted:hover){background-color:var(--_c-icon-button-inverted-background-color-hover)}:host(.c-icon-button--inverted.c-icon-button--disabled){--_c-icon-button-inverted-background-color-disabled:var(--c-icon-button-inverted-background-color-disabled, var(--_c-icon-button-background-color-disabled));--_c-icon-button-inverted-text-color-disabled:var(--c-icon-button-inverted-text-color-disabled, var(--_c-icon-button-text-color-disabled));--_c-icon-button-inverted-outline-color-disabled:var(--c-icon-button-inverted-outline-color-disabled, var(--_c-icon-button-outline-color-disabled));--_c-icon-button-inverted-badge-background-color-disabled:var(--c-icon-button-inverted-badge-background-color-disabled, var(--c-tertiary-200));--_c-icon-button-inverted-badge-border-color-disabled:var(--c-icon-button-inverted-badge-border-color-disabled, var(--c-transparent));--_c-icon-button-inverted-badge-text-color-disabled:var(--c-icon-button-inverted-badge-text-color-disabled, var(--c-tertiary-700));--_c-icon-button-loader-color:var(--_c-icon-button-inverted-text-color-disabled);background-color:var(--_c-icon-button-inverted-background-color-disabled);color:var(--_c-icon-button-inverted-text-color-disabled);pointer-events:none}:host(.c-icon-button--inverted.c-icon-button--disabled) c-badge{--_c-badge-background-color:var(--c-badge-background-color, var(--_c-icon-button-inverted-badge-background-color-disabled));--_c-badge-text-color:var(--c-badge-text-color, var(--_c-icon-button-inverted-badge-border-color-disabled));--_c-badge-border-color:var(--c-badge-border-color, var(--_c-icon-button-inverted-badge-text-color-disabled))}:host(.c-icon-button--inverted.c-icon-button--disabled) .icon-button-badge{background:#acacac}:host(.c-icon-button--disabled){--_c-icon-button-background-color-disabled:var(--c-icon-button-background-color-disabled, var(--c-tertiary-100));--_c-icon-button-background-color-disabled-hover:var(--c-icon-button-background-color-disabled-hover, var(--c-tertiary-100));--_c-icon-button-text-color-disabled:var(--c-icon-button-text-color-disabled, var(--c-tertiary-600));--_c-icon-button-outline-color-disabled:var(--c-icon-button-outline-color-disabled, var(--c-tertiary-600));--_c-icon-button-badge-background-color-disabled:var(--c-icon-button-badge-background-color-disabled, var(--c-tertiary-600));--_c-icon-button-badge-border-color-disabled:var(--c-icon-button-badge-border-color-disabled, var(--_c-icon-button-badge-border-color));--_c-icon-button-badge-text-color-disabled:var(--c-icon-button-badge-text-color-disabled, var(--_c-icon-button-badge-text-color));--_c-icon-button-loader-color:var(--_c-icon-button-text-color-disabled);background-color:var(--_c-icon-button-background-color-disabled);color:var(--_c-icon-button-text-color-disabled);pointer-events:none}:host(.c-icon-button--disabled) c-badge{--_c-badge-background-color:var(--c-badge-background-color, var(--_c-icon-button-badge-background-color-disabled));--_c-badge-text-color:var(--c-badge-text-color, var(--_c-icon-button-badge-border-color-disabled));--_c-badge-border-color:var(--c-badge-border-color, var(--_c-icon-button-badge-text-color-disabled))}:host(.c-icon-button--danger){--_c-icon-button-danger-background-color:var(--c-icon-button-danger-background-color, var(--c-error-600));--_c-icon-button-danger-text-color:var(--c-icon-button-danger-text-color, var(--c-white));--_c-icon-button-danger-background-color-hover:var(--c-icon-button-danger-background-color-hover, var(--c-error-400));--_c-icon-button-danger-badge-background-color:var(--c-icon-button-danger-badge-background-color, var(--_c-icon-button-badge-background-color));--_c-icon-button-danger-badge-border-color:var(--c-icon-button-danger-badge-border-color, var(--_c-icon-button-badge-border-color));--_c-icon-button-danger-badge-text-color:var(--c-icon-button-danger-badge-text-color, var(--_c-icon-button-badge-text-color));--_c-icon-button-loader-color:var(--_c-icon-button-danger-text-color);background-color:var(--_c-icon-button-danger-background-color);color:var(--_c-icon-button-danger-text-color)}:host(.c-icon-button--danger) c-badge{--_c-badge-background-color:var(--c-badge-background-color, var(--_c-icon-button-danger-badge-background-color));--_c-badge-text-color:var(--c-badge-text-color, var(--_c-icon-button-danger-badge-border-color));--_c-badge-border-color:var(--c-badge-border-color, var(--_c-icon-button-danger-badge-text-color))}:host(.c-icon-button--danger:hover){background-color:var(--_c-icon-button-danger-background-color-hover)}:host(.c-icon-button--danger.c-icon-button--disabled){--_c-icon-button-danger-background-color-disabled:var(--c-icon-button-danger-background-color-disabled, var(--_c-icon-button-background-color-disabled));--_c-icon-button-danger-text-color-disabled:var(--c-icon-button-danger-text-color-disabled, var(--_c-icon-button-text-color-disabled));--_c-icon-button-danger-badge-background-color-disabled:var(--c-icon-button-danger-badge-background-color-disabled, var(--_c-icon-button-badge-background-color-disabled));--_c-icon-button-danger-badge-border-color-disabled:var(--c-icon-button-danger-badge-border-color-disabled, var(--_c-icon-button-badge-border-color-disabled));--_c-icon-button-danger-badge-text-color-disabled:var(--c-icon-button-danger-badge-text-color-disabled, var(--_c-icon-button-badge-text-color-disabled));--_c-icon-button-loader-color:var(--_c-icon-button-danger-text-color-disabled);background-color:var(--_c-icon-button-danger-background-color-disabled);color:var(--_c-icon-button-danger-text-color-disabled)}:host(.c-icon-button--danger.c-icon-button--disabled) c-badge{--_c-badge-background-color:var(--c-badge-background-color, var(--_c-icon-button-danger-badge-background-color-disabled));--_c-badge-text-color:var(--c-badge-text-color, var(--_c-icon-button-danger-badge-border-color-disabled));--_c-badge-border-color:var(--c-badge-border-color, var(--_c-icon-button-danger-badge-text-color-disabled))}:host(.c-icon-button--danger.c-icon-button--inverted){--_c-icon-button-danger-inverted-background-color:var(--_c-icon-button-inverted-background-color);--_c-icon-button-danger-inverted-text-color:var(--_c-icon-button-danger-background-color);--_c-icon-button-danger-inverted-badge-background-color:var(--_c-icon-button-inverted-badge-background-color);--_c-icon-button-danger-inverted-badge-border-color:var(--_c-icon-button-inverted-badge-border-color);--_c-icon-button-danger-inverted-badge-text-color:var(--_c-icon-button-inverted-badge-text-color);--_c-icon-button-loader-color:var(--_c-icon-button-danger-inverted-text-color);background-color:var(--_c-icon-button-danger-inverted-background-color);color:var(--_c-icon-button-danger-inverted-text-color)}:host(.c-icon-button--danger.c-icon-button--inverted) c-badge{--_c-badge-background-color:var(--c-badge-background-color, var(--_c-icon-button-danger-inverted-badge-background-color));--_c-badge-text-color:var(--c-badge-text-color, var(--_c-icon-button-danger-inverted-badge-border-color));--_c-badge-border-color:var(--c-badge-border-color, var(--_c-icon-button-danger-inverted-badge-text-color))}:host(.c-icon-button--danger.c-icon-button--inverted.c-icon-button--disabled){--_c-icon-button-danger-inverted-disabled-background-color:var(--_c-icon-button-background-color-disabled);--_c-icon-button-danger-inverted-disabled-text-color:var(--_c-icon-button-text-color-disabled);--_c-icon-button-danger-inverted-disabled-badge-background-color:var(--_c-icon-button-inverted-badge-background-color-disabled);--_c-icon-button-danger-inverted-disabled-badge-border-color:var(--_c-icon-button-inverted-badge-border-color);--_c-icon-button-danger-inverted-disabled-badge-text-color:var(--_c-icon-button-inverted-badge-text-color-disabled);--_c-icon-button-loader-color:var(--_c-icon-button-danger-inverted-disabled-text-color);background-color:var(--_c-icon-button-danger-inverted-disabled-background-color);color:var(--_c-icon-button-danger-inverted-disabled-text-color)}:host(.c-icon-button--danger.c-icon-button--inverted.c-icon-button--disabled) c-badge{--_c-badge-background-color:var(--c-badge-background-color, var(--_c-icon-button-danger-inverted-disabled-badge-background-color));--_c-badge-text-color:var(--c-badge-text-color, var(--_c-icon-button-danger-inverted-disabled-badge-border-color));--_c-badge-border-color:var(--c-badge-border-color, var(--_c-icon-button-danger-inverted-disabled-badge-text-color))}:host(.c-icon-button--ghost){--_c-icon-button-ghost-background-color:var(--c-icon-button-ghost-background-color, rgba(var(--c-primary-rgb), 0.2));--_c-icon-button-ghost-text-color:var(--c-icon-button-ghost-text-color, var(--c-primary-600));--_c-icon-button-ghost-background-color-hover:var(--c-icon-button-ghost-background-color-hover, rgba(var(--c-primary-rgb), 0.3));--_c-icon-button-ghost-badge-background-color:var(--c-icon-button-ghost-badge-background-color, var(--_c-icon-button-badge-background-color));--_c-icon-button-ghost-badge-border-color:var(--c-icon-button-ghost-badge-border-color, var(--_c-icon-button-badge-border-color));--_c-icon-button-ghost-badge-text-color:var(--c-icon-button-ghost-badge-text-color, var(--_c-icon-button-badge-text-color));--_c-icon-button-loader-color:var(--_c-icon-button-ghost-text-color);background-color:var(--_c-icon-button-ghost-background-color);color:var(--_c-icon-button-ghost-text-color)}:host(.c-icon-button--ghost) c-badge{--_c-badge-background-color:var(--c-badge-background-color, var(--_c-icon-button-badge-background-color));--_c-badge-text-color:var(--c-badge-text-color, var(--_c-icon-button-badge-border-color));--_c-badge-border-color:var(--c-badge-border-color, var(--_c-icon-button-badge-text-color))}:host(.c-icon-button--ghost:hover){background-color:var(--_c-icon-button-ghost-background-color-hover)}:host(.c-icon-button--ghost.c-icon-button--inverted){--_c-icon-button-ghost-inverted-background-color:var(--c-icon-button-ghost-inverted-background-color, rgba(var(--c-white-rgb), 0.2));--_c-icon-button-ghost-inverted-background-color-hover:var(--c-icon-button-ghost-inverted-background-color-hover, rgba(var(--c-white-rgb), 0.3));--_c-icon-button-ghost-inverted-text-color:var(--c-icon-button-ghost-inverted-text-color, var(--c-white));--_c-icon-button-ghost-inverted-badge-background-color:var(--c-icon-button-ghost-inverted-badge-background-color, var(--_c-icon-button-inverted-badge-background-color));--_c-icon-button-ghost-inverted-badge-border-color:var(--c-icon-button-ghost-inverted-badge-border-color, var(--_c-icon-button-inverted-badge-border-color));--_c-icon-button-ghost-inverted-badge-text-color:var(--c-icon-button-ghost-inverted-badge-text-color, var(--_c-icon-button-inverted-badge-text-color));--_c-icon-button-loader-color:var(--_c-icon-button-ghost-inverted-text-color);background-color:var(--_c-icon-button-ghost-inverted-background-color);color:var(--_c-icon-button-ghost-inverted-text-color)}:host(.c-icon-button--ghost.c-icon-button--inverted) c-badge{--_c-badge-background-color:var(--c-badge-background-color, var(--_c-icon-button-ghost-inverted-badge-background-color));--_c-badge-text-color:var(--c-badge-text-color, var(--_c-icon-button-ghost-inverted-badge-border-color));--_c-badge-border-color:var(--c-badge-border-color, var(--_c-icon-button-ghost-inverted-badge-text-color))}:host(.c-icon-button--ghost.c-icon-button--inverted:hover){background-color:var(--_c-icon-button-ghost-inverted-background-color-hover)}:host(.c-icon-button--ghost.c-icon-button--disabled){--_c-icon-button-ghost-disabled-background-color:var(--c-icon-button-ghost-disabled-background-color, var(--c-tertiary-200));--_c-icon-button-ghost-disabled-text-color:var(--c-icon-button-ghost-disabled-text-color, var(--c-tertiary-500));--_c-icon-button-ghost-disabled-background-color-hover:var(--c-icon-button-ghost-disabled-background-color-hover, var(--c-tertiary-100));--_c-icon-button-ghost-disabled-badge-background-color:var(--c-icon-button-ghost-disabled-badge-background-color, var(--_c-icon-button-badge-background-color-disabled));--_c-icon-button-ghost-disabled-badge-border-color:var(--c-icon-button-ghost-disabled-badge-border-color, var(--_c-icon-button-badge-border-color-disabled));--_c-icon-button-ghost-disabled-badge-text-color:var(--c-icon-button-ghost-disabled-badge-text-color, var(--_c-icon-button-badge-text-color-disabled));--_c-icon-button-loader-color:var(--_c-icon-button-ghost-disabled-text-color);background-color:var(--_c-icon-button-ghost-disabled-background-color);color:var(--_c-icon-button-ghost-disabled-text-color)}:host(.c-icon-button--ghost.c-icon-button--disabled) c-badge{--_c-badge-background-color:var(--c-badge-background-color, var(--_c-icon-button-ghost-disabled-badge-background-color));--_c-badge-text-color:var(--c-badge-text-color, var(--_c-icon-button-ghost-disabled-badge-border-color));--_c-badge-border-color:var(--c-badge-border-color, var(--_c-icon-button-ghost-disabled-badge-text-color))}:host(.c-icon-button--ghost.c-icon-button--disabled:hover){background-color:var(--_c-icon-button-ghost-disabled-background-color-hover)}:host(.c-icon-button--ghost.c-icon-button--inverted.c-icon-button--disabled){--_c-icon-button-ghost-inverted-disabled-background-color:var(--c-icon-button-ghost-inverted-disabled-background-color, rgba(var(--c-white-rgb), 0.05));--_c-icon-button-ghost-inverted-disabled-text-color:var(--c-icon-button-ghost-inverted-disabled-text-color, var(--c-tertiary-400));--_c-icon-button-ghost-inverted-disabled-badge-background-color:var(--c-icon-button-ghost-inverted-disabled-badge-background-color, var(--_c-icon-button-inverted-badge-background-color-disabled));--_c-icon-button-ghost-inverted-disabled-badge-border-color:var(--c-icon-button-ghost-inverted-disabled-badge-border-color, var(--_c-icon-button-inverted-badge-border-color));--_c-icon-button-ghost-inverted-disabled-badge-text-color:var(--c-icon-button-ghost-inverted-disabled-badge-text-color, var(--_c-icon-button-inverted-badge-text-color-disabled));--_c-icon-button-loader-color:var(--_c-icon-button-ghost-inverted-disabled-text-color);background-color:var(--_c-icon-button-ghost-inverted-disabled-background-color);color:var(--_c-icon-button-ghost-inverted-disabled-text-color)}:host(.c-icon-button--ghost.c-icon-button--inverted.c-icon-button--disabled) c-badge{--_c-badge-background-color:var(--c-badge-background-color, var(--_c-icon-button-ghost-inverted-disabled-badge-background-color));--_c-badge-text-color:var(--c-badge-text-color, var(--_c-icon-button-ghost-inverted-disabled-badge-border-color));--_c-badge-border-color:var(--c-badge-border-color, var(--_c-icon-button-ghost-inverted-disabled-badge-text-color))}:host(.c-icon-button--text){--_c-icon-button-text-text-color:var(--c-icon-button-text-text-color, var(--c-primary-600));--_c-icon-button-text-background-color:var(--c-icon-button-text-background-color, var(--c-transparent));--_c-icon-button-text-background-color-hover:var(--c-icon-button-text-background-color-hover, var(--c-primary-100));--_c-icon-button-text-badge-background-color:var(--c-icon-button-text-badge-background-color, var(--_c-icon-button-badge-background-color));--_c-icon-button-text-badge-border-color:var(--c-icon-button-text-badge-border-color, var(--_c-icon-button-badge-border-color));--_c-icon-button-text-badge-text-color:var(--c-icon-button-text-badge-text-color, var(--_c-icon-button-badge-text-color));--_c-icon-button-loader-color:var(--_c-icon-button-text-text-color);background-color:var(--_c-icon-button-text-background-color);color:var(--_c-icon-button-text-text-color)}:host(.c-icon-button--text) c-badge{--_c-badge-background-color:var(--c-badge-background-color, var(--_c-icon-button-text-badge-background-color));--_c-badge-text-color:var(--c-badge-text-color, var(--_c-icon-button-text-badge-border-color));--_c-badge-border-color:var(--c-badge-border-color, var(--_c-icon-button-text-badge-text-color))}:host(.c-icon-button--text:hover){background-color:var(--_c-icon-button-text-background-color-hover)}:host(.c-icon-button--text.c-icon-button--inverted){--_c-icon-button-text-inverted-text-color:var(--c-icon-button-text-inverted-text-color, var(--c-white));--_c-icon-button-text-inverted-background-color:var(--c-icon-button-text-inverted-background-color, var(--c-transparent));--_c-icon-button-text-inverted-background-color-hover:var(--c-icon-button-text-inverted-background-color-hover, rgba(var(--c-white-rgb), 0.2));--_c-icon-button-text-inverted-badge-background-color:var(--c-icon-button-text-inverted-badge-background-color, var(--_c-icon-button-badge-background-color));--_c-icon-button-text-inverted-badge-border-color:var(--c-icon-button-text-inverted-badge-border-color, var(--_c-icon-button-inverted-badge-border-color));--_c-icon-button-text-inverted-badge-text-color:var(--c-icon-button-text-inverted-badge-text-color, var(--_c-icon-button-badge-text-color));--_c-icon-button-loader-color:var(--_c-icon-button-text-inverted-text-color);background-color:var(--_c-icon-button-text-inverted-background-color);color:var(--_c-icon-button-text-inverted-text-color)}:host(.c-icon-button--text.c-icon-button--inverted) c-badge{--_c-badge-background-color:var(--c-badge-background-color, var(--_c-icon-button-text-inverted-badge-background-color));--_c-badge-text-color:var(--c-badge-text-color, var(--_c-icon-button-text-inverted-badge-border-color));--_c-badge-border-color:var(--c-badge-border-color, var(--_c-icon-button-text-inverted-badge-text-color))}:host(.c-icon-button--text.c-icon-button--inverted:hover){background-color:var(--_c-icon-button-text-inverted-background-color-hover)}:host(.c-icon-button--text.c-icon-button--disabled){--_c-icon-button-text-disabled-text-color:var(--c-icon-button-text-disabled-text-color, var(--c-tertiary-400));--_c-icon-button-text-disabled-background-color:var(--c-icon-button-text-disabled-background-color, var(--c-transparent));--_c-icon-button-text-disabled-badge-background-color:var(--c-icon-button-text-disabled-badge-background-color, var(--_c-icon-button-badge-background-color-disabled));--_c-icon-button-text-disabled-badge-border-color:var(--c-icon-button-text-disabled-badge-border-color, var(--_c-icon-button-badge-border-color-disabled));--_c-icon-button-text-disabled-badge-text-color:var(--c-icon-button-text-disabled-badge-text-color, var(--_c-icon-button-badge-text-color-disabled));--_c-icon-button-loader-color:var(--_c-icon-button-text-disabled-text-color);background-color:var(--_c-icon-button-text-disabled-background-color);color:var(--_c-icon-button-text-disabled-text-color)}:host(.c-icon-button--text.c-icon-button--disabled) c-badge{--_c-badge-background-color:var(--c-badge-background-color, var(--_c-icon-button-text-disabled-badge-background-color));--_c-badge-text-color:var(--c-badge-text-color, var(--_c-icon-button-text-disabled-badge-border-color));--_c-badge-border-color:var(--c-badge-border-color, var(--_c-icon-button-text-disabled-badge-text-color))}:host(.c-icon-button--text.c-icon-button--inverted.c-icon-button--disabled){--_c-icon-button-text-inverted-disabled-text-color:var(--c-icon-button-text-inverted-disabled-text-color, var(--c-tertiary-400));--_c-icon-button-text-inverted-disabled-background-color:var(--c-icon-button-text-inverted-disabled-background-color, var(--c-transparent));--_c-icon-button-text-inverted-disabled-badge-background-color:var(--c-icon-button-text-inverted-disabled-badge-background-color, var(--_c-icon-button-inverted-badge-background-color-disabled));--_c-icon-button-text-inverted-disabled-badge-border-color:var(--c-icon-button-text-inverted-disabled-badge-border-color, var(--_c-icon-button-inverted-badge-border-color-disabled));--_c-icon-button-text-inverted-disabled-badge-text-color:var(--c-icon-button-text-inverted-disabled-badge-text-color, var(--_c-icon-button-inverted-badge-text-color-disabled));--_c-icon-button-loader-color:var(--_c-icon-button-text-inverted-disabled-text-color);background-color:var(--_c-icon-button-text-inverted-disabled-background-color);color:var(--_c-icon-button-text-inverted-disabled-text-color)}:host(.c-icon-button--text.c-icon-button--inverted.c-icon-button--disabled) c-badge{--_c-badge-background-color:var(--c-badge-background-color, var(--_c-icon-button-text-inverted-disabled-badge-background-color));--_c-badge-text-color:var(--c-badge-text-color, var(--_c-icon-button-text-inverted-disabled-badge-border-color));--_c-badge-border-color:var(--c-badge-border-color, var(--_c-icon-button-text-inverted-disabled-badge-text-color))}:host(.c-icon-button--outlined){--_c-icon-button-outlined-text-color:var(--c-icon-button-outlined-text-color, var(--c-primary-600));--_c-icon-button-outlined-background-color:var(--c-icon-button-outlined-background-color, var(--c-transparent));--_c-icon-button-outlined-background-color-hover:var(--c-icon-button-outlined-background-color-hover, rgba(var(--c-primary-rgb), 0.1));--_c-icon-button-outlined-border-color:var(--c-icon-button-outlined-border-color, var(--_c-icon-button-outlined-text-color));--_c-icon-button-outlined-badge-background-color:var(--c-icon-button-outlined-badge-background-color, var(--_c-icon-button-badge-background-color));--_c-icon-button-outlined-badge-border-color:var(--c-icon-button-outlined-badge-border-color, var(--_c-icon-button-badge-border-color));--_c-icon-button-outlined-badge-text-color:var(--c-icon-button-outlined-badge-text-color, var(--_c-icon-button-badge-text-color));--_c-icon-button-loader-color:var(--_c-icon-button-outlined-text-color);background-color:var(--_c-icon-button-outlined-background-color);box-shadow:inset 0 0 0 2px var(--_c-icon-button-outlined-border-color);color:var(--_c-icon-button-outlined-text-color)}:host(.c-icon-button--outlined) c-badge{--_c-badge-background-color:var(--c-badge-background-color, var(--_c-icon-button-outlined-badge-background-color));--_c-badge-text-color:var(--c-badge-text-color, var(--_c-icon-button-outlined-badge-border-color));--_c-badge-border-color:var(--c-badge-border-color, var(--_c-icon-button-outlined-badge-text-color))}:host(.c-icon-button--outlined:hover){background-color:var(--_c-icon-button-outlined-background-color-hover)}:host(.c-icon-button--outlined.c-icon-button--disabled){--_c-icon-button-outlined-disabled-text-color:var(--c-icon-button-outlined-disabled-text-color, var(--c-tertiary-500));--_c-icon-button-outlined-disabled-background-color:var(--c-icon-button-outlined-disabled-background-color, var(--c-transparent));--_c-icon-button-outlined-disabled-border-color:var(--c-icon-button-outlined-disabled-border-color, var(--c-tertiary-400));--_c-icon-button-outlined-disabled-badge-background-color:var(--c-icon-button-outlined-disabled-badge-background-color, var(--_c-icon-button-badge-background-color-disabled));--_c-icon-button-outlined-disabled-badge-border-color:var(--c-icon-button-outlined-disabled-badge-border-color, var(--_c-icon-button-badge-border-color-disabled));--_c-icon-button-outlined-disabled-badge-text-color:var(--c-icon-button-outlined-disabled-badge-text-color, var(--_c-icon-button-badge-text-color-disabled));--_c-icon-button-loader-color:var(--_c-icon-button-outlined-disabled-text-color);background-color:var(--_c-icon-button-outlined-disabled-background-color);box-shadow:inset 0 0 0 2px var(--_c-icon-button-outlined-disabled-border-color);color:var(--_c-icon-button-outlined-disabled-text-color)}:host(.c-icon-button--outlined.c-icon-button--disabled) c-badge{--_c-badge-background-color:var(--c-badge-background-color, var(--_c-icon-button-outlined-disabled-badge-background-color));--_c-badge-text-color:var(--c-badge-text-color, var(--_c-icon-button-outlined-disabled-badge-border-color));--_c-badge-border-color:var(--c-badge-border-color, var(--_c-icon-button-outlined-disabled-badge-text-color))}:host(.c-icon-button--outlined.c-icon-button--inverted){--_c-icon-button-outlined-inverted-text-color:var(--c-icon-button-outlined-inverted-text-color, var(--c-white));--_c-icon-button-outlined-inverted-background-color:var(--c-icon-button-outlined-inverted-background-color, var(--c-transparent));--_c-icon-button-outlined-inverted-background-color-hover:var(--c-icon-button-outlined-inverted-background-color-hover, rgba(var(--c-white-rgb), 0.2));--_c-icon-button-outlined-inverted-border-color:var(--c-icon-button-outlined-inverted-border-color, var(--_c-icon-button-outlined-inverted-text-color));--_c-icon-button-outlined-inverted-badge-background-color:var(--c-icon-button-outlined-inverted-badge-background-color, var(--_c-icon-button-inverted-badge-background-color));--_c-icon-button-outlined-inverted-badge-border-color:var(--c-icon-button-outlined-inverted-badge-border-color, var(--_c-icon-button-inverted-badge-border-color));--_c-icon-button-outlined-inverted-badge-text-color:var(--c-icon-button-outlined-inverted-badge-text-color, var(--_c-icon-button-inverted-badge-text-color));--_c-icon-button-loader-color:var(--_c-icon-button-outlined-inverted-text-color);background-color:var(--_c-icon-button-outlined-inverted-background-color);box-shadow:inset 0 0 0 2px var(--_c-icon-button-outlined-inverted-border-color);color:var(--_c-icon-button-outlined-inverted-text-color)}:host(.c-icon-button--outlined.c-icon-button--inverted) c-badge{--_c-badge-background-color:var(--c-badge-background-color, var(--_c-icon-button-outlined-inverted-badge-background-color));--_c-badge-text-color:var(--c-badge-text-color, var(--_c-icon-button-outlined-inverted-badge-border-color));--_c-badge-border-color:var(--c-badge-border-color, var(--_c-icon-button-outlined-inverted-badge-text-color))}:host(.c-icon-button--outlined.c-icon-button--inverted:hover){background-color:var(--_c-icon-button-outlined-inverted-background-color-hover)}:host(.c-icon-button--outlined.c-icon-button--inverted.c-icon-button--disabled){--_c-icon-button-outlined-inverted-disabled-text-color:var(--c-icon-button-outlined-inverted-disabled-text-color, var(--c-tertiary-400));--_c-icon-button-outlined-inverted-disabled-background-color:var(--c-icon-button-outlined-inverted-disabled-background-color, var(--c-transparent));--_c-icon-button-outlined-inverted-disabled-border-color:var(--c-icon-button-outlined-inverted-disabled-border-color, var(--c-tertiary-500));--_c-icon-button-outlined-inverted-disabled-badge-background-color:var(--c-icon-button-outlined-inverted-disabled-badge-background-color, var(--_c-icon-button-inverted-badge-background-color-disabled));--_c-icon-button-outlined-inverted-disabled-badge-border-color:var(--c-icon-button-outlined-inverted-disabled-badge-border-color, var(--_c-icon-button-inverted-badge-border-color-disabled));--_c-icon-button-outlined-inverted-disabled-badge-text-color:var(--c-icon-button-outlined-inverted-disabled-badge-text-color, var(--_c-icon-button-inverted-badge-text-color-disabled));--_c-icon-button-loader-color:var(--_c-icon-button-outlined-iverted-disabled-text-color);background-color:var(--_c-icon-button-outlined-inverted-disabled-background-color);box-shadow:inset 0 0 0 2px var(--_c-icon-button-outlined-inverted-disabled-border-color);color:var(--_c-icon-button-outlined-inverted-disabled-text-color)}:host(.c-icon-button--outlined.c-icon-button--inverted.c-icon-button--disabled) c-badge{--_c-badge-background-color:var(--c-badge-background-color, var(--_c-icon-button-outlined-inverted-disabled-badge-background-color));--_c-badge-text-color:var(--c-badge-text-color, var(--_c-icon-button-outlined-inverted-disabled-badge-border-color));--_c-badge-border-color:var(--c-badge-border-color, var(--_c-icon-button-outlined-inverted-disabled-badge-text-color))}::slotted(*),svg{pointer-events:none}.inner-container{align-items:center;display:flex;height:100%;inset:0;justify-content:center;overflow:hidden;position:relative;transform:translateZ(0);width:100%}";
949
+
950
+ const CIconButton = class {
951
+ constructor(hostRef) {
952
+ index.registerInstance(this, hostRef);
953
+ this._onClick = (event) => {
954
+ this._rippleElement.createRipple(event, this._container);
955
+ };
956
+ this.badge = undefined;
957
+ this.danger = false;
958
+ this.loading = false;
959
+ this.text = false;
960
+ this.inverted = false;
961
+ this.outlined = false;
962
+ this.path = null;
963
+ this.ghost = false;
964
+ this.disabled = false;
965
+ this.size = 'default';
966
+ }
967
+ _renderBadge() {
968
+ return index.h("c-badge", null, this.badge);
969
+ }
970
+ _hostClasses() {
971
+ return {
972
+ 'c-icon-button': true,
973
+ 'c-icon-button--disabled': !!this.disabled,
974
+ 'c-icon-button--danger': !!this.danger,
975
+ 'c-icon-button--text': !!this.text,
976
+ 'c-icon-button--ghost': !!this.ghost,
977
+ 'c-icon-button--outlined': !!this.outlined,
978
+ 'c-icon-button--inverted': !!this.inverted,
979
+ 'c-icon-button--small': this.size === 'small',
980
+ 'c-icon-button--x-small': this.size === 'x-small',
981
+ };
982
+ }
983
+ render() {
984
+ const spinnerSizes = {
985
+ 'x-small': 18,
986
+ small: 20,
987
+ default: 24,
988
+ };
989
+ return (index.h(index.Host, { class: this._hostClasses() }, index.h("button", { disabled: this.disabled, onClick: this._onClick }, index.h("div", { class: "inner-container", ref: (el) => (this._container = el) }, this.loading && (index.h("c-spinner", { color: "var(--_c-icon-button-loader-color)", size: spinnerSizes[this.size] })), !this.loading && (index.h("slot", null, this.path && (index.h("svg", { width: "24", height: "24", viewBox: "0 0 24 24" }, index.h("path", { d: this.path })))))), this.badge && this._renderBadge(), index.h("c-ripple", { ref: (el) => (this._rippleElement = el) }))));
990
+ }
991
+ };
992
+ CIconButton.style = cIconButtonCss;
993
+
994
+ const cInputCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host(c-input){--_c-input-inactive-color:var(--c-tertiary-600);--_c-input-active-color:var(--c-primary-600);--_c-input-background-color:var(--c-transparent);--_c-input-text-color:var(--c-text-body);--_c-input-placeholder-color:var(--c-tertiary-500);--_c-input-shadow-active-color:var(--_c-input-active-color);--_c-input-shadow-background-color:var(--c-white);--_c-input-shadow-text-color:var(--_c-input-text-color);--_c-input-shadow-placeholder-color:var(--_c-input-placeholder-color);--_c-input-error-color:var(--c-error-600)}.visuallyhidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.c-input{--_c-input-border-width:1px;align-items:flex-start;border-radius:4px;display:flex;flex:1 1 auto;font-family:var(--c-font-family);font-size:16px;letter-spacing:normal;max-width:100%;text-align:left}.c-input input,.c-input select,.c-input textarea{background:none;border:0;display:inline-block;font-family:var(--c-font-family);font-size:16px;line-height:1;margin:0;padding:0;vertical-align:middle;white-space:normal}.c-input input,.c-input textarea{box-sizing:content-box;background-color:transparent;border:none;color:var(--_c-input-text-color);flex:1 1 auto;font-family:var(--c-font-family);font-size:16px;line-height:20px;max-width:100%;min-width:0;width:100%}.c-input input[type=checkbox],.c-input input[type=radio],.c-input select{box-sizing:border-box}.c-input input[type=search]{appearance:textfield;box-sizing:content-box}.c-input ::-webkit-search-decoration{display:none}.c-input textarea{margin-top:4px;min-height:44px;overflow:auto;padding:8px 12px 8px 0;resize:vertical;vertical-align:top}.c-input input{max-height:32px;padding:8px 0}.c-input input:focus,.c-input input:active,.c-input input[aria-expanded=true],.c-input textarea:focus,.c-input textarea:active{outline:none}.c-input .c-input__content{align-items:center;display:flex;width:100%}.c-input .c-input__content slot{display:none}.c-input .c-input__content c-icon-button{aspect-ratio:1;margin-right:-6px}.c-input__control{border-radius:inherit;color:currentColor;display:flex;flex-flow:column wrap;flex-grow:1;gap:8px;height:auto;min-width:0;width:100%;position:relative}.c-input__slot{align-items:stretch;background:transparent;border-radius:inherit;color:inherit;cursor:text;display:flex;min-height:44px;padding:0 12px;position:relative;transition:0.3s cubic-bezier(0.25, 0.8, 0.5, 1);width:100%}.c-input__field{align-items:center;display:flex;flex:1 1 auto;gap:8px;position:relative}.c-input__field input,.c-input__field textarea{flex:1;outline:0}.c-input__field label{font-size:16px;height:20px;left:0;letter-spacing:normal;line-height:20px;max-width:90%;min-height:8px;overflow:hidden;pointer-events:none;position:absolute;right:auto;text-overflow:ellipsis;top:12px;transform-origin:top left;transform:translateX(var(--_c-input-label-position)) translateY(0) scale(1);transition:0.3s cubic-bezier(0.25, 0.8, 0.5, 1) 0.08s;white-space:nowrap}.c-input__field label.active{transform:translateY(-18px) scale(0.75)}.c-input__field label span{color:var(--c-error-600)}.c-input--select input{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.c-input--select .c-input__slot{cursor:pointer}.c-input fieldset{background-color:var(--_c-input-background-color);border-collapse:collapse;border-color:var(--_c-input-inactive-color);border-radius:inherit;border-style:solid;border-width:var(--_c-input-border-width);inset:0;margin:0;padding:0 0 0 8px;pointer-events:none;position:absolute;transition-duration:0.15s;transition-property:color;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1)}.c-input fieldset legend{float:none;line-height:11px;margin-left:-1px;padding:0;text-align:left;transition:width 0.3s cubic-bezier(0.25, 0.8, 0.5, 1);width:0}.c-input fieldset legend.active{width:var(--_c-input-legend-width)}.c-input--shadow .c-input__slot{background-color:var(--_c-input-shadow-background-color);box-shadow:rgba(0, 0, 0, 0.15) 0 5px 15px 0}.c-input--shadow .c-input__slot input,.c-input--shadow .c-input__slot textarea{color:var(--_c-input-shadow-text-color)}.c-input--shadow .c-input__slot:focus-within{outline:2px var(--_c-input-active-color) solid}.c-input--shadow .c-input__slot:focus-within c-icon{--c-icon-color:var(--_c-input-shadow-active-color) !important}.c-input--shadow input::placeholder,.c-input--shadow textarea::placeholder{color:var(--_c-input-shadow-placeholder-color);opacity:1}.c-input--disabled input,.c-input--disabled textarea,.c-input--disabled fieldset,.c-input--disabled label{--_c-input-error-color:var(--c-tertiary-500);color:var(--c-tertiary-500)}.c-input--textarea .c-input__field{margin-right:-12px}.c-input ::placeholder{color:var(--_c-input-placeholder-color);opacity:1}.c-input:focus-within,.c-input--active,.c-input:not(.c-input--disabled):active{--_c-input-border-width:2px;color:var(--_c-input-active-color)}.c-input:focus-within fieldset,.c-input--active fieldset,.c-input:not(.c-input--disabled):active fieldset{border-color:var(--_c-input-active-color)}.c-input:focus-within label,.c-input--active label,.c-input:not(.c-input--disabled):active label{color:var(--_c-input-active-color);transform:translateX(0) translateY(-18px) scale(0.75)}.c-input:focus-within legend,.c-input--active legend,.c-input:not(.c-input--disabled):active legend{width:var(--_c-input-legend-width)}.c-input.active:not(.filled) .c-input-menu__input{position:relative}.c-input.active:not(.filled) .c-input-menu__input::after{display:flex;align-items:center;position:absolute;inset:0;content:attr(data-placeholder);pointer-events:none;color:var(--_c-input-placeholder-color)}.c-input--error{color:var(--c-error-600)}.c-input--error fieldset{border-color:var(--c-error-600) !important}.c-input--error label{color:var(--c-error-600) !important}.c-input--error:focus-within{color:var(--c-error-600)}";
995
+
996
+ const CInput = class {
997
+ constructor(hostRef) {
998
+ index.registerInstance(this, hostRef);
999
+ this.changeValue = index.createEvent(this, "changeValue", 3);
1000
+ this.itemClick = index.createEvent(this, "itemClick", 3);
1001
+ this.dropdownClose = index.createEvent(this, "dropdownClose", 3);
1002
+ this._hasBlurred = false;
1003
+ this._debounce = null;
1004
+ this._observer = new IntersectionObserver((entries, observer) => {
1005
+ entries.forEach((entry) => {
1006
+ if (entry.isIntersecting) {
1007
+ this._calculateElementWidths();
1008
+ observer.unobserve(entry.target);
1009
+ }
1010
+ });
1011
+ }, { threshold: 1 });
1012
+ this._onBlur = () => {
1013
+ setTimeout(() => {
1014
+ if (!this.active) {
1015
+ this.isFocused = false;
1016
+ this._hasBlurred = true;
1017
+ }
1018
+ this._onReset();
1019
+ }, 100);
1020
+ };
1021
+ this._onFocus = (click = true) => {
1022
+ var _a, _b;
1023
+ if (this.disabled)
1024
+ return;
1025
+ this.isFocused = true;
1026
+ (_a = this.inputField) === null || _a === void 0 ? void 0 : _a.focus();
1027
+ if (click) {
1028
+ (_b = this.inputField) === null || _b === void 0 ? void 0 : _b.click();
1029
+ if (this.variant === 'select') {
1030
+ this.itemClick.emit();
1031
+ }
1032
+ }
1033
+ if (this.inputField) {
1034
+ this.inputField.placeholder =
1035
+ !!this.value || !this.placeholder ? '' : this.placeholder;
1036
+ }
1037
+ };
1038
+ this.active = false;
1039
+ this.autofocus = false;
1040
+ this.disabled = false;
1041
+ this.form = false;
1042
+ this.hideDetails = false;
1043
+ this.hint = '';
1044
+ this.hostId = undefined;
1045
+ this.inputId = undefined;
1046
+ this.items = undefined;
1047
+ this.itemsPerPage = 6;
1048
+ this.label = undefined;
1049
+ this.max = null;
1050
+ this.min = null;
1051
+ this.name = undefined;
1052
+ this.placeholder = undefined;
1053
+ this.readonly = false;
1054
+ this.required = false;
1055
+ this.rows = 1;
1056
+ this.shadow = false;
1057
+ this.step = null;
1058
+ this.type = undefined;
1059
+ this.valid = true;
1060
+ this.validate = false;
1061
+ this.validateOnBlur = false;
1062
+ this.validation = 'Required field';
1063
+ this.value = undefined;
1064
+ this.variant = 'text';
1065
+ this.isFocused = false;
1066
+ this.labelWidth = 0;
1067
+ this.preSlotWidth = 0;
1068
+ this.statusText = '';
1069
+ this.currentIndex = null;
1070
+ }
1071
+ onValidChange() {
1072
+ if (this.validateOnBlur && !this._hasBlurred)
1073
+ return;
1074
+ this._setAriaDescriptionId();
1075
+ }
1076
+ onValidationMessageChange() {
1077
+ this._updateStatusText();
1078
+ }
1079
+ onValueChange(value) {
1080
+ if (!value) {
1081
+ this._onReset();
1082
+ }
1083
+ }
1084
+ onPlaceholderChange(placeholder) {
1085
+ if (placeholder)
1086
+ this._onReset();
1087
+ }
1088
+ async reset() {
1089
+ this._onReset();
1090
+ }
1091
+ componentDidLoad() {
1092
+ var _a, _b, _c, _d;
1093
+ if (this.autofocus) {
1094
+ setTimeout(() => {
1095
+ this._onFocus(false);
1096
+ }, 500);
1097
+ }
1098
+ this._calculateElementWidths();
1099
+ this._setAriaDescriptionId();
1100
+ if (this.label) {
1101
+ this._observer.observe(this._labelRef);
1102
+ }
1103
+ (_a = this.inputField) === null || _a === void 0 ? void 0 : _a.addEventListener('focus', () => this._onFocus(false));
1104
+ (_b = this.inputField) === null || _b === void 0 ? void 0 : _b.addEventListener('blur', () => this._onBlur());
1105
+ (_c = this.inputField) === null || _c === void 0 ? void 0 : _c.addEventListener('keypress', this._preventNonNumericalInput);
1106
+ if (this.inputField) {
1107
+ this.inputField.placeholder =
1108
+ !!this.label || !this.placeholder ? '' : this.placeholder;
1109
+ this.inputField.title = (_d = this.label) !== null && _d !== void 0 ? _d : this.placeholder;
1110
+ requestAnimationFrame(() => {
1111
+ const container = this.inputField.closest('.c-input-menu__input');
1112
+ if (!container)
1113
+ return;
1114
+ container.dataset.placeholder = this.placeholder;
1115
+ });
1116
+ }
1117
+ }
1118
+ disconnectedCallback() {
1119
+ var _a, _b, _c, _d;
1120
+ (_a = this.inputField) === null || _a === void 0 ? void 0 : _a.removeEventListener('focus', () => this._onFocus(false));
1121
+ (_b = this.inputField) === null || _b === void 0 ? void 0 : _b.removeEventListener('blur', () => this._onBlur());
1122
+ (_c = this.inputField) === null || _c === void 0 ? void 0 : _c.removeEventListener('keypress', this._preventNonNumericalInput);
1123
+ this._observer.disconnect();
1124
+ (_d = this._dropdownElement) === null || _d === void 0 ? void 0 : _d.remove();
1125
+ }
1126
+ get isActive() {
1127
+ return !!this.value || typeof this.value === 'boolean' || this.isFocused;
1128
+ }
1129
+ _setAriaDescriptionId() {
1130
+ this.inputField.removeAttribute('aria-describedby');
1131
+ let type = null;
1132
+ if (this.valid && !this.value && this.hint) {
1133
+ type = 'hint';
1134
+ }
1135
+ if (!this.valid) {
1136
+ type = 'error';
1137
+ }
1138
+ if (type) {
1139
+ this.inputField.setAttribute('aria-describedby', `${type}-${this.inputId}`);
1140
+ }
1141
+ }
1142
+ _calculateElementWidths() {
1143
+ this.labelWidth = !!this.label ? this._labelRef.scrollWidth * 0.75 + 6 : 0;
1144
+ this.preSlotWidth = this.inputField.offsetLeft;
1145
+ }
1146
+ _onReset() {
1147
+ if (this.inputField) {
1148
+ if (!!this.placeholder &&
1149
+ !this.value &&
1150
+ (this.active || this.isFocused)) {
1151
+ this.inputField.placeholder = this.placeholder;
1152
+ return;
1153
+ }
1154
+ this.inputField.placeholder =
1155
+ !this.label && !this.value && !!this.placeholder
1156
+ ? this.placeholder
1157
+ : '';
1158
+ }
1159
+ }
1160
+ _preventNonNumericalInput(event) {
1161
+ if (this.type !== 'number')
1162
+ return;
1163
+ if (!event.key.match(/^[0-9,\.]+$/))
1164
+ event.preventDefault();
1165
+ }
1166
+ _renderBorders() {
1167
+ if (this.shadow)
1168
+ return;
1169
+ const classes = {
1170
+ active: this.isActive || this.active,
1171
+ };
1172
+ return (index.h("fieldset", { "aria-hidden": "true" }, index.h("legend", { class: classes, style: {
1173
+ '--_c-input-legend-width': this.labelWidth + 'px',
1174
+ } }, index.h("span", { class: "notranslate" }))));
1175
+ }
1176
+ _renderLabel() {
1177
+ if (!this.label)
1178
+ return;
1179
+ const classes = {
1180
+ active: this.isActive,
1181
+ };
1182
+ return (index.h("label", { htmlFor: this.inputId, ref: (el) => (this._labelRef = el), class: classes }, this.label, this.required && index.h("span", null, "\u00A0*")));
1183
+ }
1184
+ get inputField() {
1185
+ var _a;
1186
+ return (_a = this.el) === null || _a === void 0 ? void 0 : _a.querySelector('.c-input__input');
1187
+ }
1188
+ _updateStatusText() {
1189
+ if (this._debounce !== null) {
1190
+ clearTimeout(this._debounce);
1191
+ this._debounce = null;
1192
+ }
1193
+ this._debounce = window.setTimeout(() => {
1194
+ this.statusText = this.valid ? '' : `Error: ${this.validation}`;
1195
+ this._debounce = null;
1196
+ }, 1400);
1197
+ }
1198
+ render() {
1199
+ const containerClasses = {
1200
+ 'c-input': true,
1201
+ 'c-input--disabled': this.disabled,
1202
+ 'c-input--shadow': this.shadow,
1203
+ 'c-input--textarea': this.rows > 1,
1204
+ 'c-input--error': !this.valid,
1205
+ 'c-input--active': this.isFocused || this.active,
1206
+ filled: !!this.value,
1207
+ [`c-input--${this.variant}`]: true,
1208
+ };
1209
+ return (index.h(index.Host, { disabled: this.disabled }, index.h("div", { id: 'announce-' + this.inputId, class: "visuallyhidden", "aria-live": "polite", "aria-atomic": "true" }, this.statusText), index.h("div", { class: containerClasses }, index.h("div", { class: "c-input__control" }, index.h("div", { class: "c-input__slot", onClick: () => this._onFocus() }, this._renderBorders(), index.h("div", { class: "c-input__field", style: {
1210
+ '--_c-input-label-position': this.preSlotWidth + 'px',
1211
+ } }, index.h("slot", { name: "pre" }), this._renderLabel(), index.h("slot", null))), this.variant === 'select' && index.h("slot", { name: "dropdown" }), !this.hideDetails && (index.h("c-message", { hint: this.hint, inputId: this.inputId, valid: this.valid, validation: this.validation }))))));
1212
+ }
1213
+ get el() { return index.getElement(this); }
1214
+ static get watchers() { return {
1215
+ "valid": ["onValidChange"],
1216
+ "validation": ["onValidationMessageChange"],
1217
+ "value": ["onValueChange"],
1218
+ "placeholder": ["onPlaceholderChange"]
1219
+ }; }
1220
+ };
1221
+ CInput.style = cInputCss;
1222
+
1223
+ const cLoaderCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{--_c-loader-color:var(--c-loader-color, var(--c-primary-600));--_c-loader-background-color:var(--c-loader-background-color, rgba(var(--c-white-rgb), 0.8));--_c-loader-text-color:var(--c-loader-text-color, var(--c-text-system));--_c-stroke-start-dasharray:1, 200;--_c-stroke-end-dasharray:89, 200;width:100%;position:absolute;inset:0;z-index:6;background:var(--_c-loader-background-color);border-radius:inherit;visibility:hidden;opacity:0;transition:opacity 0.3s ease-in-out, transform 0.3s ease-in-out}:host(.active){opacity:1;visibility:visible}:host(.active) .c-loader{transform:scale(1)}.c-loader{height:100%;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;transform:scale(0.5);transition:transform 0.3s ease-in-out}.c-loader__slot{line-height:40px;font-size:14px;color:var(--_c-loader-text-color);text-align:center;font-weight:500;display:block;max-height:0;overflow:hidden;animation-duration:4s;animation-direction:forwards;animation-iteration-count:1;animation-name:fadein;animation-fill-mode:forwards}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes animate-stroke{0%{stroke-dasharray:var(--_c-stroke-start-dasharray);stroke-dashoffset:0}50%{stroke-dasharray:var(--_c-stroke-end-dasharray);stroke-dashoffset:-35}100%{stroke-dasharray:var(--_c-stroke-end-dasharray);stroke-dashoffset:-124}}@keyframes fadein{0%{max-height:0}100%{max-height:300px}}";
1224
+
1225
+ const CLoader = class {
1226
+ constructor(hostRef) {
1227
+ index.registerInstance(this, hostRef);
1228
+ this.contentdelay = 0;
1229
+ this.hide = false;
1230
+ this.size = 48;
1231
+ this.width = 4;
1232
+ }
1233
+ onElementHide(hide) {
1234
+ requestAnimationFrame(() => this.el.classList.toggle('active', !hide));
1235
+ }
1236
+ componentDidLoad() {
1237
+ requestAnimationFrame(() => this.el.classList.toggle('active', !this.hide));
1238
+ }
1239
+ render() {
1240
+ const slotHasContent = !!this.el.childNodes.length;
1241
+ const styles = {
1242
+ '--c-loader-size': `${this.size}px`,
1243
+ };
1244
+ return (index.h(index.Host, null, index.h("div", { class: "c-loader", style: styles }, index.h("c-spinner", { color: "var(--_c-loader-color)", size: this.size, width: this.width }), slotHasContent && (index.h("div", { class: "c-loader__slot", style: { 'animation-delay': `${this.contentdelay}s` } }, index.h("slot", null))))));
1245
+ }
1246
+ get el() { return index.getElement(this); }
1247
+ static get watchers() { return {
1248
+ "hide": ["onElementHide"]
1249
+ }; }
1250
+ };
1251
+ CLoader.style = cLoaderCss;
1252
+
1253
+ const cMainCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host(c-main){--_c-main-background-color:var(--c-main-background-color, var(--c-primary-200));--_c-main-text-color:var(--c-main-text-color, var(--c-text-body));background:var(--_c-main-background-color);color:var(--_c-main-text-color);display:flex;flex-direction:column;height:100vh}:host(c-main) ::slotted(*){color:var(--_c-main-text-color)}:host(c-main) main.dashboard{display:grid;grid-template:\"toolbar toolbar\" auto \"sidenav page\" 1fr/auto 1fr;gap:0}:host(c-main) main.dashboard ::slotted(c-toolbar){grid-area:toolbar}:host(c-main) main.dashboard ::slotted(c-page){grid-area:page}:host(c-main) main.dashboard ::slotted(c-side-navigation){grid-area:sidenav}*,::after,::before,body{box-sizing:border-box;margin:0}";
1254
+
1255
+ const CMain = class {
1256
+ constructor(hostRef) {
1257
+ index.registerInstance(this, hostRef);
1258
+ this.disableLayout = false;
1259
+ }
1260
+ render() {
1261
+ return (index.h("main", { class: { dashboard: !this.disableLayout } }, index.h("slot", null)));
1262
+ }
1263
+ };
1264
+ CMain.style = cMainCss;
1265
+
1266
+ const cMessageCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{--_c-message-error-color:var(--c-error-600);--_c-message-hint-color:var(--c-text-system);display:block;line-height:1;padding:0 12px}.c-message--active .c-message-item{opacity:1;transform:translateY(0)}.c-message-item{font-size:12px;min-height:16px;opacity:0;transform:translateY(-4px);transition:all 0.2s cubic-bezier(0.25, 0.8, 0.5, 1)}.c-message-item--hint{color:var(--_c-message-hint-color)}.c-message-item--error{color:var(--_c-message-error-color)}.c-message-item span{align-items:flex-start;color:currentColor;display:flex;gap:4px;min-height:16px}.c-message-item svg{fill:currentColor;height:16px;width:16px;position:relative;top:-2px}.c-message .visuallyhidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}";
1267
+
1268
+ const CMessage = class {
1269
+ constructor(hostRef) {
1270
+ index.registerInstance(this, hostRef);
1271
+ this._validationIcon = (index.h("svg", { height: "16px", width: "16px", viewBox: "0 0 24 24" }, index.h("path", { d: mdi.mdiCloseCircle })));
1272
+ this.hint = '';
1273
+ this.inputId = undefined;
1274
+ this.valid = true;
1275
+ this.validation = 'Required field';
1276
+ this.messageOptions = {
1277
+ show: true,
1278
+ type: 'hint',
1279
+ content: '',
1280
+ };
1281
+ }
1282
+ onValidChange(valid) {
1283
+ this._handleValidation(valid);
1284
+ }
1285
+ onValidationMessageChange(message) {
1286
+ if (this.valid || !message)
1287
+ return;
1288
+ this.messageOptions = Object.assign(Object.assign({}, this.messageOptions), { content: (index.h("span", null, index.h("span", { class: "visuallyhidden" }, "Error: "), this._validationIcon, " ", message)) });
1289
+ }
1290
+ onHintMessageChange(message) {
1291
+ if (!this.valid || !message)
1292
+ return;
1293
+ this.messageOptions = Object.assign(Object.assign({}, this.messageOptions), { content: (index.h("span", null, index.h("span", { class: "visuallyhidden" }, "Hint: "), message)) });
1294
+ }
1295
+ _handleValidation(valid, timeout = 200) {
1296
+ this.messageOptions = Object.assign(Object.assign({}, this.messageOptions), { show: false });
1297
+ setTimeout(() => {
1298
+ this.messageOptions = Object.assign(Object.assign({}, this.messageOptions), { type: valid ? 'hint' : 'error', show: true, content: valid ? (index.h("span", { id: `hint-${this.inputId}` }, index.h("span", { class: "visuallyhidden" }, "Hint: "), this.hint)) : (index.h("span", { id: `error-${this.inputId}` }, this._validationIcon, index.h("span", { class: "visuallyhidden" }, "Error: "), this.validation)) });
1299
+ }, timeout);
1300
+ }
1301
+ componentDidLoad() {
1302
+ this._handleValidation(this.valid, 0);
1303
+ }
1304
+ render() {
1305
+ const classes = {
1306
+ 'c-message': true,
1307
+ 'c-message--active': this.messageOptions.show,
1308
+ };
1309
+ const messageClasses = {
1310
+ 'c-message-item': true,
1311
+ [`c-message-item--${this.messageOptions.type}`]: true,
1312
+ };
1313
+ return (index.h(index.Host, null, index.h("div", { class: classes }, index.h("div", { class: messageClasses }, this.messageOptions.content))));
1314
+ }
1315
+ static get watchers() { return {
1316
+ "valid": ["onValidChange"],
1317
+ "validation": ["onValidationMessageChange"],
1318
+ "hint": ["onHintMessageChange"]
1319
+ }; }
1320
+ };
1321
+ CMessage.style = cMessageCss;
1322
+
1323
+ const cNavigationButtonCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{--_c-navigation-button-color:var(\n --c-navigation-button-color,\n var(--c-text-system)\n );display:block;margin-right:0;cursor:pointer;user-select:none;border-radius:50%;--c-icon-button-text-text-color:var(--_c-navigation-button-color)}";
1324
+
1325
+ const CNavigationButton = class {
1326
+ constructor(hostRef) {
1327
+ index.registerInstance(this, hostRef);
1328
+ }
1329
+ render() {
1330
+ return (index.h(index.Host, { tabindex: 0 }, index.h("c-icon-button", { text: true }, index.h("c-icon", { path: mdi.mdiMenu }))));
1331
+ }
1332
+ };
1333
+ CNavigationButton.style = cNavigationButtonCss;
1334
+
1335
+ const cOptionCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{display:block;width:100%;padding:8px 0}";
1336
+
1337
+ const COption = class {
1338
+ constructor(hostRef) {
1339
+ index.registerInstance(this, hostRef);
1340
+ this.selected = false;
1341
+ this.disabled = false;
1342
+ this.name = undefined;
1343
+ this.value = undefined;
1344
+ }
1345
+ render() {
1346
+ return (index.h(index.Host, { tabindex: "-1" }, index.h("slot", null)));
1347
+ }
1348
+ };
1349
+ COption.style = cOptionCss;
1350
+
1351
+ const cOtpInputCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{--_c-otp-input-border-color:var(--c-otp-input-border-color, var(--c-tertiary-500));--_c-otp-input-border-color-active:var(--c-otp-input-border-color-active, var(--c-primary-600));--_c-otp-input-height:var(--c-otp-input-height, 56px);--_c-otp-input-width:var(--c-otp-input-width, 42px);--_c-otp-input-font-size:var(--c-otp-input-font-size, 24px);--_c-otp-input-text-color:var(--c-otp-input-text-color, var(--c-text-body));--_c-otp-input-border-width:1px;display:block}:host(.error){--_c-otp-input-border-color:var(--c-error-600);--_c-otp-input-border-color-active:var(--c-error-600)}.visuallyhidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.c-otp-input{backface-visibility:hidden;display:inline-grid;gap:8px;grid-auto-columns:minmax(auto, var(--_c-otp-input-width));grid-auto-flow:column;margin-bottom:8px;transform:translate3d(0, 0, 0)}.c-otp-input--hide-details{margin-bottom:0}.c-otp-input input{border-radius:4px;border:none;box-shadow:inset 0 0 0 var(--_c-otp-input-border-width) var(--_c-otp-input-border-color);color:var(--_c-otp-input-text-color);font-size:var(--_c-otp-input-font-size);height:var(--_c-otp-input-height);max-width:var(--_c-otp-input-width);min-width:24px;text-align:center;width:100%}.c-otp-input input:focus{--_c-otp-input-border-width:2px;--_c-otp-input-border-color:var(--_c-otp-input-border-color-active);outline:none}.c-otp-input c-message{grid-column:1/span var(--_c-otp-input-count);grid-row:2}";
1352
+
1353
+ const COtpInput = class {
1354
+ constructor(hostRef) {
1355
+ index.registerInstance(this, hostRef);
1356
+ this.changeValue = index.createEvent(this, "changeValue", 3);
1357
+ this.completion = index.createEvent(this, "completion", 3);
1358
+ if (hostRef.$hostElement$["s-ei"]) {
1359
+ this.internals = hostRef.$hostElement$["s-ei"];
1360
+ }
1361
+ else {
1362
+ this.internals = hostRef.$hostElement$.attachInternals();
1363
+ hostRef.$hostElement$["s-ei"] = this.internals;
1364
+ }
1365
+ this._backSpacePressed = false;
1366
+ this._debounce = null;
1367
+ this._isPasting = false;
1368
+ this._inputs = new Array(this.length).fill(null);
1369
+ this._value = '';
1370
+ this.hideDetails = false;
1371
+ this.hint = '';
1372
+ this.elementId = undefined;
1373
+ this.length = 6;
1374
+ this.valid = true;
1375
+ this.validation = 'Required field';
1376
+ this.statusText = '';
1377
+ }
1378
+ onValidationMessageChange() {
1379
+ this._updateStatusText();
1380
+ }
1381
+ _emitValue() {
1382
+ requestAnimationFrame(() => {
1383
+ this._value = [...this._inputs].map((input) => input.value).join('');
1384
+ const isFullyFilled = this._value.length === this.length;
1385
+ this.changeValue.emit(isFullyFilled ? this._value : null);
1386
+ if (isFullyFilled) {
1387
+ this.completion.emit(this._value || null);
1388
+ }
1389
+ this.internals.setFormValue(this._value);
1390
+ this._updateStatusText();
1391
+ });
1392
+ }
1393
+ _getElements(event) {
1394
+ const target = event.target;
1395
+ const nextElement = target.nextElementSibling;
1396
+ const previousElement = target.previousElementSibling;
1397
+ return { target, nextElement, previousElement };
1398
+ }
1399
+ _onFocus(index) {
1400
+ this._inputs[index].select();
1401
+ }
1402
+ _onKeyDown(event) {
1403
+ this._backSpacePressed = false;
1404
+ const { target, previousElement } = this._getElements(event);
1405
+ if (event.key === 'Backspace') {
1406
+ this._backSpacePressed = true;
1407
+ if (previousElement && !target.value) {
1408
+ previousElement.focus();
1409
+ }
1410
+ this._emitValue();
1411
+ }
1412
+ }
1413
+ get id() {
1414
+ return this.elementId || `c-otp-input--${COtpInput._uniqueId}`;
1415
+ }
1416
+ _onInput(event) {
1417
+ const { target, nextElement, previousElement } = this._getElements(event);
1418
+ if (isNaN(+target.value)) {
1419
+ event.preventDefault();
1420
+ target.value = null;
1421
+ return;
1422
+ }
1423
+ if (this._isPasting) {
1424
+ this._isPasting = false;
1425
+ return;
1426
+ }
1427
+ if (this._backSpacePressed) {
1428
+ return;
1429
+ }
1430
+ if (event.data) {
1431
+ nextElement === null || nextElement === void 0 ? void 0 : nextElement.focus();
1432
+ }
1433
+ else {
1434
+ previousElement === null || previousElement === void 0 ? void 0 : previousElement.focus();
1435
+ }
1436
+ this._emitValue();
1437
+ }
1438
+ _onPaste(event) {
1439
+ event.preventDefault();
1440
+ const pasteData = event.clipboardData.getData('text');
1441
+ if (isNaN(+pasteData)) {
1442
+ return;
1443
+ }
1444
+ this._isPasting = true;
1445
+ for (const [index, value] of pasteData.split('').entries()) {
1446
+ if (index >= this._inputs.length) {
1447
+ continue;
1448
+ }
1449
+ this._inputs[index].value = null;
1450
+ this._inputs[index].value = value;
1451
+ }
1452
+ const nextElementIndex = Math.min(this.length, pasteData.length) - 1;
1453
+ requestAnimationFrame(() => {
1454
+ this._inputs[nextElementIndex].focus();
1455
+ this._emitValue();
1456
+ });
1457
+ }
1458
+ _updateStatusText() {
1459
+ if (this._debounce !== null) {
1460
+ clearTimeout(this._debounce);
1461
+ this._debounce = null;
1462
+ }
1463
+ this._debounce = window.setTimeout(() => {
1464
+ this.statusText = this.valid ? '' : `Error: ${this.validation} `;
1465
+ this.statusText += `Currently entered - ${this._value
1466
+ .split('')
1467
+ .join(' - ')}`;
1468
+ this.statusText = this.statusText.trim();
1469
+ this._debounce = null;
1470
+ }, 1400);
1471
+ }
1472
+ _renderInput(index$1) {
1473
+ return (index.h("input", { id: `${this.id}--input-${index$1 + 1}`, ref: (el) => (this._inputs[index$1] = el), "aria-label": `Enter code - digit number - ${index$1 + 1} of ${this.length}`, type: "tel", maxlength: "1", onFocus: () => this._onFocus(index$1), onInput: (event) => this._onInput(event), onKeyDown: (event) => this._onKeyDown(event), onPaste: (event) => index$1 === 0 && this._onPaste(event) }));
1474
+ }
1475
+ componentWillLoad() {
1476
+ COtpInput._uniqueId += 1;
1477
+ this.internals.setFormValue(this._value);
1478
+ }
1479
+ render() {
1480
+ const classes = {
1481
+ 'c-otp-input': true,
1482
+ 'c-otp-input--hide-details': this.hideDetails,
1483
+ };
1484
+ return (index.h(index.Host, { id: this.id, style: { '--_c-otp-input-count': this.length.toString() }, class: { error: !this.valid } }, index.h("div", { id: 'announce-' + this.id, class: "visuallyhidden", "aria-live": "polite", "aria-atomic": "true" }, this.statusText), index.h("div", { class: classes }, new Array(this.length)
1485
+ .fill(0)
1486
+ .map((_, index) => this._renderInput(index)), index.h("c-message", { hint: this.hint, inputId: this.elementId, valid: this.valid, validation: this.validation }))));
1487
+ }
1488
+ static get formAssociated() { return true; }
1489
+ static get watchers() { return {
1490
+ "validation": ["onValidationMessageChange"]
1491
+ }; }
1492
+ };
1493
+ COtpInput._uniqueId = 0;
1494
+ COtpInput.style = cOtpInputCss;
1495
+
1496
+ const cPageCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host(c-page){--_c-page-max-width:var(--c-page-max-width, 1280px);--_c-page-justify-content:var(--c-page-justify-content, start);display:grid;height:calc(100lvh - 60px);grid-template-rows:1fr auto;grid-template-columns:1fr;width:100%;overflow-y:auto;scroll-behavior:smooth;position:relative;place-items:start var(--_c-page-justify-content)}:host(c-page) .scroll-indicator{z-index:9;height:4px;background-color:var(--c-primary-600);position:fixed;top:0;left:0;width:0%}:host(c-page) .c-page__container{padding:0.5rem;position:relative;width:100%;height:100%;max-width:var(--_c-page-max-width)}@media (min-width: 640px){:host(c-page) .c-page__container{padding:0.75rem}}@media (min-width: 768px){:host(c-page) .c-page__container{padding:1rem}}";
1497
+
1498
+ const CPage = class {
1499
+ constructor(hostRef) {
1500
+ index.registerInstance(this, hostRef);
1501
+ this.scrollIndicator = false;
1502
+ }
1503
+ _onScroll() {
1504
+ if (!this.scrollIndicator)
1505
+ return;
1506
+ const scrollTop = this.el.scrollTop;
1507
+ const height = this.el.scrollHeight - this.el.clientHeight;
1508
+ const scrolled = (scrollTop / height) * 100;
1509
+ this._scrollIndicator.style.width = scrolled + '%';
1510
+ }
1511
+ componentDidLoad() {
1512
+ this.el.onscroll = this._onScroll.bind(this);
1513
+ }
1514
+ render() {
1515
+ return (index.h(index.Host, null, this.scrollIndicator && (index.h("div", { ref: (el) => (this._scrollIndicator = el), class: "scroll-indicator" })), index.h("div", { class: "c-page__container" }, index.h("slot", null)), index.h("slot", { name: "footer" })));
1516
+ }
1517
+ get el() { return index.getElement(this); }
1518
+ };
1519
+ CPage.style = cPageCss;
1520
+
1521
+ const cRadioCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{display:block}";
1522
+
1523
+ const CRadio = class {
1524
+ constructor(hostRef) {
1525
+ index.registerInstance(this, hostRef);
1526
+ this.checked = false;
1527
+ this.disabled = false;
1528
+ this.value = undefined;
1529
+ }
1530
+ render() {
1531
+ return index.h(index.Host, null);
1532
+ }
1533
+ };
1534
+ CRadio.style = cRadioCss;
1535
+
1536
+ const cRadioGroupCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{--_c-radio-group-background-color-hover:var(--c-radio-group-background-color-hover, rgba(var(--c-primary-rgb), 0.1));--_c-radio-group-color:var(--c-radio-group-color, var(--c-primary-600));--_c-radio-group-color-active:var(--c-radio-group-color-active, var(--_c-radio-group-color));--_c-radio-group-color-disabled:var(--c-radio-group-color-disabled, var(--c-tertiary-500));display:flex;flex-direction:column;gap:4px;width:fit-content}.c-radio-group{--_c-radio-group-error-color:var(--c-error-600);--_c-radio-flex-direction:column;--_c-radio-item-gap:2px}.c-radio-group__items{display:flex;flex-flow:var(--_c-radio-flex-direction) wrap;gap:var(--_c-radio-item-gap)}.c-radio-group__label span.required{color:var(--_c-radio-group-error-color)}.c-radio-group--disabled{--_c-radio-group-color:var(--_c-radio-group-color-disabled);--_c-radio-group-error-color:var(--_c-radio-group-color-disabled);color:var(--_c-radio-group-color-disabled);cursor:default;opacity:0.75}.c-radio-group--error{--_c-radio-group-color:var(--_c-radio-group-error-color);--_c-radio-group-color-active:var(--_c-radio-group-error-color);color:var(--_c-radio-group-error-color)}.c-radio-group--inline{--_c-radio-flex-direction:row;--_c-radio-item-gap:12px}.c-radio{align-items:flex-start;display:flex;position:relative;cursor:pointer;font-size:16px;user-select:none;gap:4px;line-height:1.2}.c-radio input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.c-radio input:checked~.ripple .selection::after{display:block;transform:scale(1)}.c-radio .ripple{position:relative;height:42px;width:42px;min-width:42px;border-radius:50%;overflow:hidden;transition:translateZ(0);color:var(--_c-radio-group-color)}.c-radio .selection{position:absolute;top:11px;left:11px;height:20px;width:20px;background-color:transparent;box-shadow:inset 0 0 0 2px var(--_c-radio-group-color);border-radius:50%;transition:box-shadow 0.15s ease-in-out}.c-radio .selection::after{content:\"\";position:absolute;transform:scale(0);transition:transform 0.15s ease-in-out;top:5px;left:5px;width:10px;height:10px;border-radius:50%;background:var(--_c-radio-group-color-active)}.c-radio__details{line-height:1;padding:0 12px}.c-radio__details.active .c-radio__message{opacity:1;transform:translateY(0)}.c-radio__message{font-size:12px;opacity:0;transform:translateY(-4px);transition:all 0.2s cubic-bezier(0.25, 0.8, 0.5, 1)}.c-radio__message--hint{color:var(--c-tertiary-500)}.c-radio__message--error{color:var(--_c-radio-group-error-color) !important}.c-radio__message span{align-items:flex-start;display:flex;gap:4px;height:16px}.c-radio__message span.error{color:var(--_c-radio-group-error-color)}.c-radio__message span.hint{color:var(--c-tertiary-500)}.c-radio__message svg{fill:currentColor;min-height:16px;min-width:16px;position:relative;top:-2px}.c-radio__label{padding-top:12px}.c-radio--disabled{--_c-radio-group-color:var(--_c-radio-group-color-disabled);--_c-radio-group-color-active:var(--_c-radio-group-color-disabled);color:var(--_c-radio-group-color);cursor:default;opacity:0.75}.c-radio--error{--_c-radio-group-color:var(--_c-radio-group-error-color);color:var(--_c-radio-group-error-color)}.c-radio--error span,.c-radio--error svg{fill:var(--_c-radio-group-error-color);color:var(--_c-radio-group-error-color)}.c-radio input:focus{outline:none}.c-radio input:focus+.ripple{outline:2px var(--_c-radio-group-color-active) solid}@supports selector(:focus-visible){.c-radio input:focus+.ripple{outline:none}}.c-radio input:focus-visible+.ripple{outline:2px var(--_c-radio-group-color) solid}.c-radio:not(.c-radio--disabled) .ripple:hover{background-color:var(--_c-radio-group-background-color-hover)}";
1537
+
1538
+ const CRadioGroup = class {
1539
+ constructor(hostRef) {
1540
+ index.registerInstance(this, hostRef);
1541
+ this.changeValue = index.createEvent(this, "changeValue", 3);
1542
+ if (hostRef.$hostElement$["s-ei"]) {
1543
+ this.internals = hostRef.$hostElement$["s-ei"];
1544
+ }
1545
+ else {
1546
+ this.internals = hostRef.$hostElement$.attachInternals();
1547
+ hostRef.$hostElement$["s-ei"] = this.internals;
1548
+ }
1549
+ this._containers = [];
1550
+ this._rippleElements = [];
1551
+ this._handleSlotChange = () => {
1552
+ this._getRadioButtons();
1553
+ };
1554
+ this._getRadioButtons = () => {
1555
+ const radios = this.el.querySelectorAll('c-radio');
1556
+ if (radios.length) {
1557
+ this.returnObject = false;
1558
+ this.items = [
1559
+ ...Array.from(radios).map((radio) => {
1560
+ if (!!radio.checked) {
1561
+ this.value = radio.value;
1562
+ this.changeValue.emit(this.value);
1563
+ }
1564
+ radio.style.display = 'none';
1565
+ return {
1566
+ name: radio.textContent,
1567
+ value: radio.value,
1568
+ disabled: !!radio.disabled,
1569
+ };
1570
+ }),
1571
+ ];
1572
+ }
1573
+ };
1574
+ this._getRadioButton = (item, index$1) => {
1575
+ var _a, _b, _c;
1576
+ const itemId = item.value.toString().replace(/[^a-zA-Z0-9-_]/g, '');
1577
+ const isChecked = !this.returnObject
1578
+ ? ((_b = (_a = this.items) === null || _a === void 0 ? void 0 : _a.find((i) => i.value === item.value)) === null || _b === void 0 ? void 0 : _b.value) === this.value
1579
+ : ((_c = this.value) === null || _c === void 0 ? void 0 : _c.value) === item.value;
1580
+ const classes = {
1581
+ 'c-radio': true,
1582
+ 'c-radio--disabled': !!item.disabled || this.disabled,
1583
+ 'c-radio--error': this.messageOptions.type === 'error',
1584
+ };
1585
+ return (index.h("label", { class: classes, id: itemId, onKeyDown: (event) => this._handleKeyDown(event, item, index$1) }, index.h("input", { type: "radio", "aria-checked": (this.value === item).toString(), "aria-disabled": (!!item.disabled || this.disabled).toString(), "aria-labelledby": itemId, disabled: !!item.disabled || this.disabled, checked: isChecked, name: CRadioGroup._uniqueId.toString(), onChange: (event) => this._select(event, item, index$1) }), index.h("span", { class: "ripple", ref: (el) => (this._containers[index$1] = el) }, index.h("span", { class: "selection" }), index.h("c-ripple", { ref: (el) => (this._rippleElements[index$1] = el) })), index.h("div", { class: "c-radio__label" }, item.name)));
1586
+ };
1587
+ this._validationIcon = (index.h("svg", { height: "16px", width: "16px", viewBox: "0 0 24 24" }, index.h("path", { d: mdi.mdiCloseCircle })));
1588
+ this.value = undefined;
1589
+ this.hideDetails = false;
1590
+ this.hint = '';
1591
+ this.inline = false;
1592
+ this.label = undefined;
1593
+ this.color = '';
1594
+ this.items = [];
1595
+ this.disabled = false;
1596
+ this.returnObject = false;
1597
+ this.required = false;
1598
+ this.valid = true;
1599
+ this.validation = 'Required field';
1600
+ this.messageOptions = {
1601
+ show: true,
1602
+ type: 'hint',
1603
+ content: '',
1604
+ };
1605
+ }
1606
+ onValidationMessageChange(message) {
1607
+ this.onValidChange(message.length === 0);
1608
+ }
1609
+ onValidChange(valid) {
1610
+ this._handleValidation(valid || this.valid);
1611
+ }
1612
+ componentDidLoad() {
1613
+ this._handleValidation(this.valid, 0);
1614
+ }
1615
+ _handleKeyDown(event, item, index) {
1616
+ if (['Space', 'Enter'].includes(event.code)) {
1617
+ event.preventDefault();
1618
+ this._select(event, item, index);
1619
+ }
1620
+ }
1621
+ _handleValidation(valid, timeout = 200) {
1622
+ this.messageOptions = Object.assign(Object.assign({}, this.messageOptions), { show: false });
1623
+ setTimeout(() => {
1624
+ this.messageOptions = Object.assign(Object.assign({}, this.messageOptions), { type: valid ? 'hint' : 'error', show: true, content: valid ? (index.h("span", null, this.hint)) : (index.h("span", null, this._validationIcon, " ", this.validation)) });
1625
+ }, timeout);
1626
+ }
1627
+ _select(event, item, index) {
1628
+ if (!!item.disabled || this.disabled)
1629
+ return;
1630
+ this._rippleElements[index].createRipple(event, this._containers[index], true);
1631
+ this.value = !this.returnObject ? item === null || item === void 0 ? void 0 : item.value : item;
1632
+ this.changeValue.emit(this.value);
1633
+ const value = !this.returnObject
1634
+ ? this.value
1635
+ : this.value.value;
1636
+ this.internals.setFormValue(value);
1637
+ }
1638
+ _renderMessages() {
1639
+ if (this.hideDetails)
1640
+ return;
1641
+ const classes = {
1642
+ 'c-radio__details': true,
1643
+ active: this.messageOptions.show,
1644
+ };
1645
+ const messageClasses = {
1646
+ 'c-radio__message': true,
1647
+ [`c-radio__message--${this.messageOptions.type}`]: true,
1648
+ };
1649
+ return (index.h("div", { class: classes }, index.h("div", { class: messageClasses }, this.messageOptions.content)));
1650
+ }
1651
+ componentWillLoad() {
1652
+ CRadioGroup._uniqueId += 1;
1653
+ const radios = this.el.querySelectorAll('c-radio');
1654
+ const checkedRadio = Array.from(radios).find((item) => item.checked);
1655
+ if (checkedRadio) {
1656
+ const value = checkedRadio.value;
1657
+ this.internals.setFormValue(value);
1658
+ }
1659
+ else if (this.value) {
1660
+ const value = !this.returnObject
1661
+ ? this.value
1662
+ : this.value.value;
1663
+ this.internals.setFormValue(value);
1664
+ }
1665
+ }
1666
+ render() {
1667
+ const slotHasContent = !!this.el.childNodes.length;
1668
+ const wrapperClasses = {
1669
+ 'c-radio-group': true,
1670
+ 'c-radio-group--disabled': this.disabled,
1671
+ 'c-radio-group--inline': this.inline,
1672
+ 'c-radio-group--error': this.messageOptions.type === 'error',
1673
+ };
1674
+ return (index.h("div", { class: wrapperClasses, role: "radiogroup", "aria-labelledby": "c-radio-group__label" }, (!!this.label || slotHasContent) && (index.h("label", { class: "c-radio-group__label" }, !!this.label && this.label, index.h("slot", { onSlotchange: this._handleSlotChange }), this.required && index.h("span", { class: "required" }, "\u00A0*"))), index.h("div", { class: "c-radio-group__items" }, this.items.map((item, index) => this._getRadioButton(item, index))), this._renderMessages()));
1675
+ }
1676
+ static get formAssociated() { return true; }
1677
+ get el() { return index.getElement(this); }
1678
+ static get watchers() { return {
1679
+ "validation": ["onValidationMessageChange"],
1680
+ "valid": ["onValidChange"]
1681
+ }; }
1682
+ };
1683
+ CRadioGroup._uniqueId = 0;
1684
+ CRadioGroup.style = cRadioGroupCss;
1685
+
1686
+ const cRippleCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{pointer-events:none;user-select:none;display:block;overflow:hidden;position:absolute;top:0;left:0;border-radius:inherit;z-index:1}.c-ripple{position:absolute;pointer-events:none;border-radius:50%;transform:scale(0);background:currentColor;opacity:0}.c-ripple.animate{animation:ripple 0.5s backwards linear;opacity:0.3}@keyframes ripple{100%{opacity:0;transform:scale(5)}}";
1687
+
1688
+ const CRipple = class {
1689
+ constructor(hostRef) {
1690
+ index.registerInstance(this, hostRef);
1691
+ }
1692
+ async createRipple(event, parent, center = false) {
1693
+ this._rippleElement.classList.remove('animate');
1694
+ const width = parent.offsetWidth;
1695
+ const height = parent.offsetHeight;
1696
+ const rect = event.target.getBoundingClientRect();
1697
+ const maxDimension = this._calculateHeight(Math.max(parent.offsetWidth, parent.offsetHeight));
1698
+ const x = event.clientX - rect.left;
1699
+ const y = event.clientY - rect.top;
1700
+ const top = y - maxDimension / 2 + 'px';
1701
+ const left = x - maxDimension / 2 + 'px';
1702
+ const centerPosition = {
1703
+ top: maxDimension === height
1704
+ ? '0px'
1705
+ : ((maxDimension - height) / 2) * -1 + 'px',
1706
+ left: maxDimension === width
1707
+ ? '0px'
1708
+ : ((maxDimension - width) / 2) * -1 + 'px',
1709
+ };
1710
+ this.el.style.width = width + 'px';
1711
+ this.el.style.height = height + 'px';
1712
+ this._rippleElement.style.width = maxDimension + 'px';
1713
+ this._rippleElement.style.height = maxDimension + 'px';
1714
+ this._rippleElement.style.top = center ? centerPosition.top : top;
1715
+ this._rippleElement.style.left = center ? centerPosition.left : left;
1716
+ this._rippleElement.classList.add('animate');
1717
+ setTimeout(() => {
1718
+ this._rippleElement.classList.remove('animate');
1719
+ }, 500);
1720
+ }
1721
+ _calculateHeight(height) {
1722
+ const radius = (height / 2) * Math.sqrt(2);
1723
+ return radius * 2;
1724
+ }
1725
+ render() {
1726
+ return (index.h(index.Host, { "aria-hidden": "true" }, index.h("div", { ref: (el) => (this._rippleElement = el), class: "c-ripple" })));
1727
+ }
1728
+ get el() { return index.getElement(this); }
1729
+ };
1730
+ CRipple.style = cRippleCss;
1731
+
1732
+ const cSelectCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{--_c-select-active-color:var(--c-select-active-color, var(--c-primary-600));--_c-select-inactive-color:var(--c-select-inactive-color, var(--c-tertiary-600));--_c-select-background-color:var(--c-select-background-color, var(--c-transparent));--_c-select-text-color:var(--c-select-text-color, var(--c-text-body));--_c-select-placeholder-color:var(--c-select-placeholder-color, var(--c-tertiary-500));--_c-select-option-background-color:var(--c-select-option-background-color, var(--c-white));--_c-select-option-background-color-hover:var(--c-select-option-background-color-hover, var(--c-primary-100));--_c-select-option-text-color:var(--c-select-option-text-color, var(--c-text-body));--_c-select-shadow-active-color:var(--c-select-shadow-active-color, var(--_c-select-active-color));--_c-select-shadow-background-color:var(--c-select-shadow-background-color, var(--c-white));--_c-select-shadow-text-color:var(--c-select-shadow-text-color, var(--_c-select-text-color));--_c-select-shadow-placeholder-color:var(--c-select-shadow-placeholder-color, var(--_c-select-placeholder-color));--_c-input-active-color:var(--_c-select-active-color);--_c-input-inactive-color:var(--_c-select-inactive-color);--_c-input-background-color:var(--_c-select-background-color);--_c-input-text-color:var(--_c-select-text-color);--_c-input-placeholder-color:var(--_c-select-placeholder-color);--_c-input-shadow-active-color:var(--_c-select-shadow-active-color);--_c-input-shadow-background-color:var(--_c-select-shadow-background-color);--_c-input-shadow-text-color:var(--_c-select-shadow-text-color);--_c-input-shadow-placeholder-color:var(--_c-select-shadow-placeholder-color)}:host{display:block;cursor:text}.c-input-menu__chevron{fill:currentColor;transform:rotate(0deg);transition:transform 0.3s ease-in-out}.c-input-menu__chevron--active{transform:rotate(180deg)}.c-input-menu__input{width:100%;display:flex;justify-items:stretch}.c-input-menu__selection{display:none;pointer-events:none}.c-input-menu__selection--show{align-items:center;display:flex;width:100%;color:var(--_c-select-active-color)}.c-input-menu__item-wrapper{position:absolute;width:100%;top:44px;z-index:10;margin-left:calc(var(--_c-input-label-position) * -1)}.c-input-menu__item-wrapper--shadow{top:47px}.c-input-menu__items{position:absolute;background-color:var(--_c-select-option-background-color);min-width:calc(100% + 24px);box-shadow:0 8px 16px 0 rgba(0, 0, 0, 0.2);z-index:10;user-select:none;border-radius:4px;margin:0 -12px;overflow-y:scroll;list-style:none;padding:0}.c-input-menu__items--hidden{display:none}.c-input-menu__items li{cursor:pointer;display:flex;min-height:48px;padding:0 12px;transition:background-color 0.3s;font-size:14px;align-items:center;justify-content:flex-start;color:var(--_c-select-option-text-color)}.c-input-menu__items li.disabled{background-color:var(--c-tertiary-100);filter:grayscale(1) opacity(0.6);cursor:default}.c-input-menu__items li.disabled:hover{background-color:var(--c-tertiary-100)}.c-input-menu__items li.dense{padding:10px 14px}.c-input-menu__items li:hover{background-color:var(--_c-select-option-background-color-hover)}.c-input-menu__items li[aria-selected=true]{background-color:var(--_c-select-option-background-color-hover);box-shadow:inset 0 0 0 1px var(--_c-select-active-color);border-radius:4px;backface-visibility:hidden;transform:translate3d(0, 0, 0)}.c-input-menu__items li.none{color:rgba(0, 0, 0, 0.5)}.c-input-menu__items--empty li{color:var(--c-text-system);cursor:default;gap:8px;pointer-events:none}.c-input-menu__items--empty li svg{fill:var(--c-warning-600);height:18px;width:18px}input{max-height:32px;padding:8px 0;background-color:transparent;border:none;color:var(--c-text-body);flex:1 1 auto;font-family:var(--c-font-family);font-size:16px;line-height:20px;max-width:100%;min-width:0;width:100%;pointer-events:none}input:focus,input:active{outline:none}input::-ms-reveal{display:none}svg{fill:currentColor;height:22px;width:22px}.c-input--disabled{color:var(--c-tertiary-400)}.c-input:focus-within{color:var(--c-primary-600)}.c-input--error{color:var(--c-error-600)}.c-input--error:focus-within{color:var(--c-error-600)}.visuallyhidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}";
1733
+
1734
+ const CSelect = class {
1735
+ constructor(hostRef) {
1736
+ index.registerInstance(this, hostRef);
1737
+ this.changeValue = index.createEvent(this, "changeValue", 3);
1738
+ if (hostRef.$hostElement$["s-ei"]) {
1739
+ this.internals = hostRef.$hostElement$["s-ei"];
1740
+ }
1741
+ else {
1742
+ this.internals = hostRef.$hostElement$.attachInternals();
1743
+ hostRef.$hostElement$["s-ei"] = this.internals;
1744
+ }
1745
+ this._preventDialogOpen = false;
1746
+ this._debounce = null;
1747
+ this._lastKeyPressTime = null;
1748
+ this._searchString = '';
1749
+ this._toggleDropdown = (event) => {
1750
+ event.stopPropagation();
1751
+ if (this.dropdownVisible) {
1752
+ this._dropdownElement.close();
1753
+ return;
1754
+ }
1755
+ this._dropdownElement.open();
1756
+ };
1757
+ this._onButtonKeyDown = (src, event) => {
1758
+ event.stopPropagation();
1759
+ if (event.key !== 'Tab')
1760
+ event.preventDefault();
1761
+ if (['Enter', ' '].includes(event.key)) {
1762
+ if (src === 'chevron') {
1763
+ this._toggleDropdown(event);
1764
+ return;
1765
+ }
1766
+ this._onReset(event);
1767
+ this._preventDialogOpen = true;
1768
+ requestAnimationFrame(() => {
1769
+ this._inputElement.focus();
1770
+ });
1771
+ }
1772
+ };
1773
+ this._onSlotChange = () => {
1774
+ this.optionElements = this.el.querySelectorAll('c-option');
1775
+ if (this.optionElements.length && !this.optionElementsExist) {
1776
+ this.optionElementsExist = true;
1777
+ }
1778
+ const selection = Array.from(this.optionElements).find((option) => option.selected);
1779
+ if (selection) {
1780
+ this.value = this.returnObject
1781
+ ? { name: selection.name, value: selection.value }
1782
+ : selection.value;
1783
+ this.changeValue.emit(this.value);
1784
+ this.internals.setFormValue(selection.value.toString());
1785
+ }
1786
+ };
1787
+ this._onReset = (event) => {
1788
+ event.stopPropagation();
1789
+ this.changeValue.emit(null);
1790
+ this.internals.setFormValue(null);
1791
+ this._selectionElement.classList.remove('c-input-menu__selection--show');
1792
+ this._selectionElement.replaceChildren(null);
1793
+ this._preventDialogOpen = true;
1794
+ this._cInputElement.reset();
1795
+ this._inputElement.focus();
1796
+ this._dropdownElement.updateList();
1797
+ };
1798
+ this._onInputFocus = () => {
1799
+ if (!this._preventDialogOpen) {
1800
+ this._dropdownElement.open();
1801
+ }
1802
+ this._updateStatusText();
1803
+ this._preventDialogOpen = false;
1804
+ };
1805
+ this.items = [];
1806
+ this.value = null;
1807
+ this.hostId = undefined;
1808
+ this.clearable = false;
1809
+ this.disabled = false;
1810
+ this.label = undefined;
1811
+ this.name = undefined;
1812
+ this.placeholder = '';
1813
+ this.hideDetails = false;
1814
+ this.hint = '';
1815
+ this.loading = false;
1816
+ this.required = false;
1817
+ this.valid = true;
1818
+ this.validate = false;
1819
+ this.validateOnBlur = false;
1820
+ this.validation = 'Required field';
1821
+ this.shadow = false;
1822
+ this.returnObject = false;
1823
+ this.itemsPerPage = 6;
1824
+ this.optionAsSelection = undefined;
1825
+ this.optionElements = undefined;
1826
+ this.currentIndex = null;
1827
+ this.dropdownVisible = false;
1828
+ this.statusText = '';
1829
+ this.optionElementsExist = false;
1830
+ }
1831
+ get _id() {
1832
+ return this.hostId || `select_${CSelect._uniqueId}`;
1833
+ }
1834
+ get _items() {
1835
+ return this.optionElementsExist ? this.optionElements : this.items;
1836
+ }
1837
+ get _value() {
1838
+ var _a, _b, _c, _d;
1839
+ if (!this.value)
1840
+ return '';
1841
+ if (!this.returnObject &&
1842
+ !['number', 'string'].includes(typeof this.value)) {
1843
+ console.warn(`[C-SELECT] The value should be of type 'number' or 'string' when return-object is not used.`);
1844
+ return '';
1845
+ }
1846
+ if (!this.returnObject &&
1847
+ ['number', 'string'].includes(typeof this.value)) {
1848
+ return (_b = (_a = Array.from(this._items)) === null || _a === void 0 ? void 0 : _a.find((item) => item.value === this.value)) === null || _b === void 0 ? void 0 : _b.name;
1849
+ }
1850
+ return (_d = (_c = Array.from(this._items)) === null || _c === void 0 ? void 0 : _c.find((item) => item.value === this.value.value)) === null || _d === void 0 ? void 0 : _d.name;
1851
+ }
1852
+ async reset() {
1853
+ this.changeValue.emit(null);
1854
+ this.internals.setFormValue(null);
1855
+ this._dropdownElement.updateList();
1856
+ }
1857
+ handleKeyDown(event) {
1858
+ const alphanumeric = /^[0-9a-zA-Z ]+$/;
1859
+ if (event.key.match(alphanumeric) && event.key.length === 1) {
1860
+ if (this.dropdownVisible)
1861
+ return;
1862
+ if (Date.now() - this._lastKeyPressTime > 3000) {
1863
+ this._searchString = event.key;
1864
+ }
1865
+ else {
1866
+ this._searchString += event.key;
1867
+ }
1868
+ this._lastKeyPressTime = Date.now();
1869
+ const selectionIndex = Array.from(this._items).findIndex((i) => i.name.toLowerCase().startsWith(this._searchString));
1870
+ this.currentIndex = selectionIndex >= 0 ? selectionIndex : null;
1871
+ if (this.currentIndex !== null) {
1872
+ this._dropdownElement.selectItem(this.currentIndex);
1873
+ }
1874
+ return;
1875
+ }
1876
+ if (event.key === 'Escape') {
1877
+ this._preventDialogOpen = true;
1878
+ this._dropdownElement.close();
1879
+ this._inputElement.focus();
1880
+ return;
1881
+ }
1882
+ if (event.key === 'Tab') {
1883
+ this._dropdownElement.close();
1884
+ }
1885
+ if (event.key === 'ArrowDown') {
1886
+ event.preventDefault();
1887
+ if (!this._items.length)
1888
+ return;
1889
+ if (!this.dropdownVisible) {
1890
+ this._dropdownElement.open();
1891
+ }
1892
+ this.currentIndex =
1893
+ this.currentIndex === null
1894
+ ? 0
1895
+ : Math.min(this.currentIndex + 1, this._items.length - 1);
1896
+ this._dropdownElement.focusItem(this.currentIndex);
1897
+ }
1898
+ if (event.key === 'ArrowUp') {
1899
+ event.preventDefault();
1900
+ if (this.currentIndex === 0) {
1901
+ this._dropdownElement.close();
1902
+ this._inputElement.focus();
1903
+ }
1904
+ if (!this.dropdownVisible) {
1905
+ this._dropdownElement.open();
1906
+ }
1907
+ this.currentIndex =
1908
+ this.currentIndex === null
1909
+ ? this._items.length - 1
1910
+ : Math.max(this.currentIndex - 1, 0);
1911
+ this._dropdownElement.focusItem(this.currentIndex);
1912
+ }
1913
+ if (event.key === ' ') {
1914
+ event.preventDefault();
1915
+ }
1916
+ if (event.key === 'Enter') {
1917
+ event.preventDefault();
1918
+ if (this.currentIndex === null)
1919
+ return;
1920
+ this._dropdownElement.selectItem(this.currentIndex);
1921
+ }
1922
+ if (event.key === 'Home' && this.dropdownVisible) {
1923
+ this.currentIndex = 0;
1924
+ }
1925
+ if (event.key === 'End' && this.dropdownVisible) {
1926
+ this.currentIndex = this._items.length - 1;
1927
+ }
1928
+ }
1929
+ onDropdownStateChange(event) {
1930
+ const isOpen = event.detail;
1931
+ this.dropdownVisible = isOpen;
1932
+ }
1933
+ onSelectOption(event) {
1934
+ this._dropdownElement.close();
1935
+ const { name, value } = event.detail;
1936
+ const selection = this._setCurrentIndex({ name, value });
1937
+ if (this.optionElementsExist && this.optionAsSelection && selection) {
1938
+ const clone = selection.cloneNode(true);
1939
+ this._selectionElement.classList.add('c-input-menu__selection--show');
1940
+ this._selectionElement.replaceChildren(clone);
1941
+ }
1942
+ this._dropdownElement.updateList();
1943
+ this.value = this.returnObject ? event.detail : value;
1944
+ this.changeValue.emit(this.value);
1945
+ this.internals.setFormValue(value);
1946
+ this._preventDialogOpen = true;
1947
+ this._inputElement.focus();
1948
+ }
1949
+ _setCurrentIndex({ value, name }) {
1950
+ let selection = null;
1951
+ Array.from(this._items).forEach((item, index) => {
1952
+ const selected = item.value === value && item.name === name;
1953
+ if (this.optionElementsExist) {
1954
+ item.selected = selected;
1955
+ }
1956
+ if (selected) {
1957
+ this.currentIndex = index;
1958
+ selection = item;
1959
+ }
1960
+ });
1961
+ return selection;
1962
+ }
1963
+ _updateInput() {
1964
+ this._dropdownElement.open();
1965
+ this._dropdownElement.updateList();
1966
+ }
1967
+ _updateStatusText() {
1968
+ if (this._debounce !== null) {
1969
+ clearTimeout(this._debounce);
1970
+ this._debounce = null;
1971
+ }
1972
+ this._debounce = window.setTimeout(() => {
1973
+ this.statusText = '';
1974
+ if (this.currentIndex === null) {
1975
+ this.statusText = this._items.length
1976
+ ? `${this._items.length} option${this._items.length !== 1 ? 's' : ''} available`
1977
+ : 'No options available';
1978
+ }
1979
+ const ending = !!this._items.length
1980
+ ? ', navigate using the up and down arrows'
1981
+ : '';
1982
+ this._dropdownElement.setStatusText(this.statusText + ending);
1983
+ this._debounce = null;
1984
+ }, 1400);
1985
+ }
1986
+ componentWillLoad() {
1987
+ CSelect._uniqueId += 1;
1988
+ this._inputId =
1989
+ 'input_' +
1990
+ (this.hostId || this.label || this.placeholder).replace(/[^a-zA-Z0-9-_]/g, '');
1991
+ }
1992
+ componentDidLoad() {
1993
+ if (!this.value)
1994
+ return;
1995
+ const selection = Array.from(this._items).find((item) => {
1996
+ if (this.returnObject) {
1997
+ return (item.name === this.value.name &&
1998
+ item.value === this.value.value);
1999
+ }
2000
+ return item.value === this.value;
2001
+ });
2002
+ this._setCurrentIndex({
2003
+ name: selection.name,
2004
+ value: selection.value.toString(),
2005
+ });
2006
+ }
2007
+ _renderLoader() {
2008
+ return index.h("c-spinner", { color: "var(--_c-autocomplete-active-color)", size: 20 });
2009
+ }
2010
+ _renderChevron() {
2011
+ const classes = {
2012
+ 'c-input-menu__chevron': true,
2013
+ 'c-input-menu__chevron--active': this.dropdownVisible,
2014
+ };
2015
+ return (index.h("c-icon-button", { size: "x-small", class: classes, text: true, onClick: (event) => this._toggleDropdown(event), onKeyDown: (event) => this._onButtonKeyDown('chevron', event) }, index.h("c-icon", { path: mdi.mdiChevronDown, size: 24 })));
2016
+ }
2017
+ _renderInputElement() {
2018
+ var _a;
2019
+ return (index.h("div", { class: "c-input-menu__input" }, index.h("input", { type: "text", readonly: true, ref: (el) => (this._inputElement = el), "aria-expanded": this.dropdownVisible.toString(), "aria-owns": this._inputId + '-items', "aria-autocomplete": "list", autocomplete: "off", class: "c-input__input", role: "combobox", value: this._value, name: (_a = this.name) !== null && _a !== void 0 ? _a : null, onInput: () => this._updateInput(), onFocus: () => this._onInputFocus() }), index.h("div", { ref: (el) => (this._selectionElement = el), class: "c-input-menu__selection" })));
2020
+ }
2021
+ _renderReset() {
2022
+ return (index.h("c-icon-button", { "aria-label": "", size: "x-small", text: true, onClick: (event) => this._onReset(event), onKeyDown: (event) => this._onButtonKeyDown('reset', event) }, index.h("c-icon", { path: mdi.mdiClose, size: 20 })));
2023
+ }
2024
+ render() {
2025
+ const itemType = this.optionElementsExist ? 'option' : 'item';
2026
+ return (index.h(index.Host, null, index.h("c-dropdown", { ref: (el) => (this._dropdownElement = el), id: `${this._id}-dropdown`, index: this.currentIndex, "items-per-page": this.itemsPerPage, "item-type": itemType, items: this._items, parent: this.el, type: "select" }, index.h("c-input", { slot: "default", ref: (el) => (this._cInputElement = el), active: this.dropdownVisible, disabled: this.disabled, "hide-details": this.hideDetails, hint: this.hint, id: this.hostId, "input-id": this._inputId, label: this.label, name: this.name, placeholder: this.placeholder, required: this.required, shadow: this.shadow, valid: this.valid, validate: this.validate, "validate-on-blur": this.validateOnBlur, validation: this.validation, value: this.value, variant: "select", onClick: () => this._dropdownElement.open() }, index.h("slot", { name: "pre", slot: "pre" }), index.h("div", { class: "c-input__content" }, this._renderInputElement(), this.loading && this._renderLoader(), !this.loading &&
2027
+ this.value &&
2028
+ this.clearable &&
2029
+ this._renderReset(), !this.loading &&
2030
+ (!this.value || !this.clearable) &&
2031
+ this._renderChevron(), index.h("slot", { onSlotchange: () => this._onSlotChange() })), index.h("slot", { name: "post", slot: "post" })))));
2032
+ }
2033
+ static get formAssociated() { return true; }
2034
+ get el() { return index.getElement(this); }
2035
+ };
2036
+ CSelect._uniqueId = 0;
2037
+ CSelect.style = cSelectCss;
2038
+
2039
+ const cSideNavigationCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{--_c-side-navigation-background-color:var(\n --c-side-navigation-background-color,\n var(--c-primary-600)\n );--_c-side-navigation-overlay-color:var(\n --c-side-navigation-overlay-color,\n rgba(var(--c-black), 0.5)\n )}:host(.autoheight){height:calc(100vh - 60px);overflow-y:auto;overflow-x:hidden}:host(.desktop){background-color:var(--_c-side-navigation-background-color);display:flex;min-width:clamp(300px, 20vw, 340px)}.c-side-navigation{background-color:var(--_c-side-navigation-background-color);display:flex;flex-flow:column nowrap;flex:1;gap:4px;min-height:fit-content;padding:24px 0 24px 24px;position:relative;transition:transform 0.3s ease;width:100%;z-index:8}.c-side-navigation__content{display:flex;flex-direction:column;flex:1 2 260px;width:320px}.c-side-navigation__content--mobile{height:100vh;max-width:320px;overflow-y:scroll;position:fixed;right:0;top:0;transition:transform 0.2s cubic-bezier(0.25, 0.8, 0.5, 1);transform:translateX(0%);z-index:999}.c-side-navigation__content--mobile.c-side-navigation__content--hidden{transform:translateX(100%)}.c-side-navigation__content--mobile>nav{min-height:auto;padding-top:0}.c-side-navigation__burger{background-color:var(--_c-side-navigation-background-color);display:flex;justify-content:flex-end;padding:8px 16px}.c-side-navigation ul{display:flex;flex-flow:column nowrap;gap:8px;list-style:none;margin:0;padding:0}.autoheight>nav{height:calc(100vh - 60px);overflow-x:hidden;overflow-y:auto}.vertical-spacer{flex:1;margin-bottom:8px}.c-overlay{background:var(--_c-side-navigation-overlay-color);backdrop-filter:blur(4px);inset:0;position:fixed;z-index:998}@keyframes fade-in{0%{opacity:0}100%{opacity:1}}.c-fade-in{animation-duration:0.5s;animation-iteration-count:1;animation-name:fade-in;z-index:997}c-side-navigation-item,c-sub-navigation-item{display:contents}.visuallyhidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}";
2040
+
2041
+ const CSideNavigation = class {
2042
+ constructor(hostRef) {
2043
+ index.registerInstance(this, hostRef);
2044
+ this.mobile = undefined;
2045
+ this.menuVisible = false;
2046
+ }
2047
+ handleChange(event) {
2048
+ const slotted = this.host.querySelectorAll('c-side-navigation-item');
2049
+ const target = event.target;
2050
+ const { active } = target;
2051
+ slotted.forEach((item) => {
2052
+ if (item.querySelector('c-sub-navigation-item[slot="sub-item"]')) {
2053
+ item.active = false;
2054
+ }
2055
+ });
2056
+ if (target.querySelector('[slot="sub-item"]')) {
2057
+ target.active = !active;
2058
+ }
2059
+ else {
2060
+ target.active = true;
2061
+ }
2062
+ }
2063
+ _assignSubItemSlots() {
2064
+ const subItems = this.host.querySelectorAll('c-sub-navigation-item');
2065
+ Array.from(subItems).forEach((item) => {
2066
+ item.setAttribute('slot', 'sub-item');
2067
+ });
2068
+ }
2069
+ componentWillLoad() {
2070
+ this._assignSubItemSlots();
2071
+ }
2072
+ componentDidLoad() {
2073
+ const el = document.querySelector('body');
2074
+ ['click', 'keyup'].forEach((eventType) => {
2075
+ el.addEventListener(eventType, (e) => {
2076
+ if (e.target.matches('c-navigation-button')) {
2077
+ if (eventType === 'click') {
2078
+ this.menuVisible = !this.menuVisible;
2079
+ }
2080
+ else if (e instanceof KeyboardEvent && e.key === 'Enter') {
2081
+ this.menuVisible = !this.menuVisible;
2082
+ }
2083
+ }
2084
+ });
2085
+ });
2086
+ }
2087
+ _closeMenu() {
2088
+ this.menuVisible = false;
2089
+ }
2090
+ render() {
2091
+ const classes = {
2092
+ 'c-side-navigation': true,
2093
+ 'hide-menu': !this.menuVisible,
2094
+ mobile: !!this.mobile,
2095
+ desktop: !this.mobile,
2096
+ };
2097
+ const containerClasses = {
2098
+ 'c-side-navigation__content': true,
2099
+ 'c-side-navigation__content--hidden': !this.menuVisible,
2100
+ 'c-side-navigation__content--mobile': !!this.mobile,
2101
+ 'c-side-navigation__content--desktop': !this.mobile,
2102
+ };
2103
+ return (index.h(index.Host, { class: { desktop: !this.mobile } }, index.h("div", { class: containerClasses }, this.mobile && (index.h("div", { class: "c-side-navigation__burger" }, index.h("c-icon-button", { inverted: true, text: true, onClick: () => this._closeMenu() }, index.h("span", { class: "visuallyhidden" }, "Close sidemenu"), index.h("c-icon", { path: mdi.mdiArrowRight })))), index.h("nav", { class: classes, role: "menubar" }, index.h("slot", null), index.h("div", { class: "vertical-spacer" }), index.h("slot", { name: "bottom" }))), this.menuVisible && this.mobile && (index.h("div", { class: "c-overlay c-fade-in", onClick: () => this._closeMenu() }))));
2104
+ }
2105
+ get host() { return index.getElement(this); }
2106
+ };
2107
+ CSideNavigation.style = cSideNavigationCss;
2108
+
2109
+ const cSideNavigationItemCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host(c-side-navigation-item){--_c-side-navigation-item-background-color-active:var(--c-side-navigation-item-background-color-active, var(--c-primary-200));--_c-side-navigation-item-background-color-hover:var(--c-side-navigation-item-background-color-hover, var(--c-primary-500));--_c-side-navigation-item-background-color:var(--c-side-navigation-item-background-color, var(--c-transparent));--_c-side-navigation-item-outline-color:var(--c-side-navigation-item-outline-color, var(--c-white));--_c-side-navigation-item-text-color-active:var(--c-side-navigation-item-text-color-active, var(--c-primary-600));--_c-side-navigation-item-text-color:var(--c-side-navigation-item-text-color, var(--c-white));--_c-side-navigation-item-sub-item-background-color-active:var(--c-side-navigation-item-sub-item-background-color-active, var(--c-white));--_c-side-navigation-item-sub-item-background-color-hover:var(--c-side-navigation-item-sub-item-background-color-hover, var(--c-primary-100));--_c-side-navigation-item-sub-item-background-color:var(--c-side-navigation-item-sub-item-background-color, var(--c-white));--_c-side-navigation-item-sub-item-outline-color:var(--c-side-navigation-item-sub-item-outline-color, var(--c-primary-600));--_c-side-navigation-item-sub-item-text-color-active:var(--c-side-navigation-item-sub-item-text-color-active, var(--c-primary-600));--_c-side-navigation-item-sub-item-text-color:var(--c-side-navigation-item-sub-item-text-color, var(--c-primary-600))}:host(.c-side-navigation-item){align-items:center;backface-visibility:hidden;border-radius:4px 0 0 4px;background-color:var(--_c-side-navigation-item-background-color);color:var(--_c-side-navigation-item-text-color);cursor:pointer;display:grid;grid-template-columns:1fr;font-weight:400;overflow:hidden;position:relative;transform:translate3d(0, 0, 0);user-select:none}:host(.c-side-navigation-item:hover){background-color:var(--_c-side-navigation-item-background-color-hover)}:host(.c-side-navigation-item:focus){outline:none}:host(.c-side-navigation-item:focus-visible){outline:2px var(--_c-side-navigation-item-outline-color) solid;outline-offset:2px}:host(.c-side-navigation-item.active){background-color:var(--_c-side-navigation-item-background-color-active);color:var(--_c-side-navigation-item-text-color-active)}:host(.c-side-navigation-item.active) .svg{fill:var(--_c-side-navigation-item-text-color-active);transform:rotate(90deg)}:host(.c-side-navigation-item.active) .c-side-navigation-item__header{color:var(--_c-side-navigation-item-text-color-active)}.c-side-navigation-item__header{align-items:center;color:var(--_c-side-navigation-item-text-color);display:grid;gap:8px;grid-template-columns:1fr;min-height:46px;padding:0 12px}.c-side-navigation-item__header--expandable{grid-template-columns:auto 1fr}.c-side-navigation-item__slot{align-items:center;display:flex;gap:8px;line-height:normal;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host(.c-side-navigation-item--parent.active){padding-bottom:4px}::slotted(span),::slotted(c-icon){font-size:20px}.styleMain{padding-left:16px}.sub-item{height:0;overflow-y:hidden;transition:all 500ms ease;width:100%}.subnavactive{height:max-content;width:100%}.svg{align-self:center;fill:var(--_c-side-navigation-item-text-color);transition:transform 0.3s ease}:host>div.active .svg{fill:var(--_c-side-navigation-item-text-color-active);transform:rotate(90deg)}.svg.hidden{opacity:0}.middle{display:flex;height:100%;align-items:center}:host([slot=sub-item]){--_c-side-navigation-item-text-color:var(--c-side-navigation-item-text-color, var(--_c-side-navigation-item-sub-item-text-color));--_c-side-navigation-item-background-color:var(--c-side-navigation-item-background-color, var(--_c-side-navigation-item-sub-item-background-color));--_c-side-navigation-item-background-color-hover:var(--c-side-navigation-item-background-color-hover, var(--_c-side-navigation-item-sub-item-background-color-hover));--_c-side-navigation-item-text-color-active:var(--c-side-navigation-item-text-color-active, var(--_c-side-navigation-item-sub-item-text-color-active));--_c-side-navigation-item-background-color-active:var(--c-side-navigation-item-background-color-active, var(--_c-side-navigation-item-sub-item-background-color-active));--_c-side-navigation-item-outline-color:var(--c-side-navigation-item-outline-color, var(--_c-side-navigation-item-sub-item-outline-color));border-radius:4px;margin:0 8px 4px}";
2110
+
2111
+ const CSideNavigationItem = class {
2112
+ constructor(hostRef) {
2113
+ index.registerInstance(this, hostRef);
2114
+ this.itemChange = index.createEvent(this, "itemChange", 7);
2115
+ this._isSubItem = false;
2116
+ this._slotHasContent = false;
2117
+ this.active = undefined;
2118
+ this.href = undefined;
2119
+ this.target = null;
2120
+ this.loading = false;
2121
+ }
2122
+ handleChange(event) {
2123
+ if (this._isSubItem) {
2124
+ event.stopPropagation();
2125
+ event.stopImmediatePropagation();
2126
+ event.preventDefault();
2127
+ this.active = !this.active;
2128
+ }
2129
+ }
2130
+ onActiveChange(active) {
2131
+ this._handleChildFocusableChange(active);
2132
+ }
2133
+ _handleChildFocusableChange(focusable) {
2134
+ if (!this._slotHasContent)
2135
+ return;
2136
+ Array.from(this.hostElement.querySelectorAll('[slot="sub-item"]')).forEach((child) => {
2137
+ child.ariaHidden = (!focusable).toString();
2138
+ child.focusable = focusable;
2139
+ });
2140
+ }
2141
+ _redirect(event) {
2142
+ if ((event instanceof KeyboardEvent && (event === null || event === void 0 ? void 0 : event.key) === 'Enter') ||
2143
+ !(event instanceof KeyboardEvent)) {
2144
+ if (this._isSubItem) {
2145
+ event.stopPropagation();
2146
+ event.stopImmediatePropagation();
2147
+ event.preventDefault();
2148
+ }
2149
+ this.itemChange.emit(event);
2150
+ if (!this._slotHasContent) {
2151
+ const sidenav = document.querySelector('c-side-navigation');
2152
+ sidenav.menuVisible = false;
2153
+ }
2154
+ if (this.href) {
2155
+ if (this.target) {
2156
+ window.open(this.href, this.target);
2157
+ }
2158
+ else {
2159
+ window.location.href = this.href;
2160
+ }
2161
+ }
2162
+ }
2163
+ }
2164
+ _assignSubItemSlots() {
2165
+ const subItems = this.hostElement.querySelectorAll('c-side-navigation-item');
2166
+ Array.from(subItems).forEach((item) => {
2167
+ item.setAttribute('slot', 'sub-item');
2168
+ });
2169
+ }
2170
+ componentWillLoad() {
2171
+ this._assignSubItemSlots();
2172
+ this._slotHasContent =
2173
+ !!this.hostElement.querySelector('[slot="sub-item"]');
2174
+ this._isSubItem = !!this.hostElement.getAttribute('slot');
2175
+ this._handleChildFocusableChange(this.active);
2176
+ }
2177
+ componentDidLoad() {
2178
+ for (const node of this.hostElement.childNodes) {
2179
+ if (node.nodeName === '#text') {
2180
+ this._ariaLabel = node.nodeValue.trim();
2181
+ break;
2182
+ }
2183
+ }
2184
+ this._handleChildClasses();
2185
+ }
2186
+ _handleChildClasses() {
2187
+ if (!this._isSubItem)
2188
+ return;
2189
+ Array.from(this.hostElement.children)
2190
+ .filter((child) => child.tagName === 'C-SUB-NAVIGATION-ITEM')
2191
+ .forEach((child) => {
2192
+ child.classList.add('c-sub-navigation-item--sub-level');
2193
+ });
2194
+ }
2195
+ render() {
2196
+ var _a, _b;
2197
+ const classes = {
2198
+ 'c-side-navigation-item': true,
2199
+ 'c-side-navigation-item--parent': this._slotHasContent,
2200
+ active: this.active,
2201
+ };
2202
+ const subNavigationClasses = {
2203
+ subnavactive: this.active,
2204
+ 'sub-item': !this.active,
2205
+ };
2206
+ const a11y = {
2207
+ role: 'menuitem',
2208
+ tabindex: '0',
2209
+ };
2210
+ if (this._slotHasContent) {
2211
+ a11y['aria-expanded'] = (_a = (!!this.active)) === null || _a === void 0 ? void 0 : _a.toString();
2212
+ }
2213
+ else if (this.active) {
2214
+ a11y['aria-current'] = 'page';
2215
+ }
2216
+ return (index.h(index.Host, Object.assign({}, a11y, { class: classes, onClick: (e) => this._redirect(e), onKeyDown: (e) => this._redirect(e) }), index.h("div", { class: {
2217
+ 'c-side-navigation-item__header': true,
2218
+ 'c-side-navigation-item__header--expandable': this._slotHasContent,
2219
+ } }, this._slotHasContent && (index.h("svg", { width: "22", height: "22", viewBox: "0 0 24 24", class: "svg" }, index.h("path", { d: mdi.mdiChevronRight }))), index.h("div", { class: "c-side-navigation-item__slot" }, index.h("slot", null))), this._slotHasContent && (index.h("nav", { role: "menubar", "aria-label": this._ariaLabel, "aria-expanded": (_b = (!!this.active)) === null || _b === void 0 ? void 0 : _b.toString(), class: subNavigationClasses }, index.h("slot", { name: "sub-item" }))), index.h("c-loader", { size: 32, hide: !this.loading, style: { pointerEvents: 'none' } })));
2220
+ }
2221
+ get hostElement() { return index.getElement(this); }
2222
+ static get watchers() { return {
2223
+ "active": ["onActiveChange"]
2224
+ }; }
2225
+ };
2226
+ CSideNavigationItem.style = cSideNavigationItemCss;
2227
+
2228
+ const cSideNavigationTitleCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{--_c-side-navigation-title-color:var(--c-side-navigation-title-color, var(--c-white));--_c-side-navigation-title-border-color:var(--c-side-navigation-title-border-color, var(--c-white));align-items:center;box-shadow:0 1px 0 0 var(--_c-side-navigation-title-border-color);color:var(--_c-side-navigation-title-color);display:flex;gap:8px;margin:1.25rem 0 1rem;padding:4px 0}";
2229
+
2230
+ const CSideNavigationTitle = class {
2231
+ constructor(hostRef) {
2232
+ index.registerInstance(this, hostRef);
2233
+ }
2234
+ render() {
2235
+ return (index.h(index.Host, null, index.h("slot", null)));
2236
+ }
2237
+ };
2238
+ CSideNavigationTitle.style = cSideNavigationTitleCss;
2239
+
2240
+ const cSpacerCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{flex-grow:1 !important}";
2241
+
2242
+ const CSpacer = class {
2243
+ constructor(hostRef) {
2244
+ index.registerInstance(this, hostRef);
2245
+ }
2246
+ render() {
2247
+ return index.h(index.Host, null);
2248
+ }
2249
+ };
2250
+ CSpacer.style = cSpacerCss;
2251
+
2252
+ const cSpinnerCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{--_c-spinner-color:var(--c-spinner-color, var(--c-color));--_c-spinner-size:var(--c-size);--_c-spinner-width:var(--c-width);display:block;height:var(--_c-spinner-size);width:var(--_c-spinner-size)}:host(.c-spinner) svg{fill:var(--_c-spinner-color);height:var(--_c-spinner-size);overflow:visible;width:var(--_c-spinner-size)}:host(.c-spinner) svg circle{animation:spinner 2.5s linear infinite;fill:transparent;stroke-dasharray:calc(3.14 * var(--_c-spinner-size));stroke-linecap:round;stroke-width:var(--_c-spinner-width);stroke:var(--_c-spinner-color);transform-origin:calc(0.5px * var(--_c-spinner-size)) calc(0.5px * var(--_c-spinner-size)) 0}@keyframes spinner{0%{transform:rotate(0deg);stroke-dashoffset:calc(0.66 * var(--_c-spinner-size))}50%{transform:rotate(720deg);stroke-dashoffset:calc(3.14 * var(--_c-spinner-size))}100%{transform:rotate(1080deg);stroke-dashoffset:calc(0.66 * var(--_c-spinner-size))}}";
2253
+
2254
+ const CSpinner = class {
2255
+ constructor(hostRef) {
2256
+ index.registerInstance(this, hostRef);
2257
+ this.color = 'var(--c-primary-600)';
2258
+ this.size = 24;
2259
+ this.width = 2;
2260
+ }
2261
+ render() {
2262
+ const iconParams = {
2263
+ cx: this.size / 2,
2264
+ cy: this.size / 2,
2265
+ r: this.size / 2 - 2,
2266
+ };
2267
+ const style = {
2268
+ '--c-size': `${this.size}px`,
2269
+ '--c-width': `${this.width}px`,
2270
+ '--c-color': this.color,
2271
+ };
2272
+ return (index.h(index.Host, { class: "c-spinner", style: style }, index.h("svg", null, index.h("circle", Object.assign({}, iconParams)))));
2273
+ }
2274
+ };
2275
+ CSpinner.style = cSpinnerCss;
2276
+
2277
+ const cSubNavigationItemCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host(c-sub-navigation-item){--_c-sub-navigation-item-text-color:var(\n --c-sub-navigation-item-text-color,\n var(--c-text-body)\n );--_c-sub-navigation-item-background-color:var(\n --c-sub-navigation-item-background-color,\n var(--c-transparent)\n );--_c-sub-navigation-item-background-color-hover:var(\n --c-sub-navigation-item-background-color-hover,\n var(--c-primary-100)\n );--_c-sub-navigation-item-text-color-active:var(\n --c-sub-navigation-item-text-color-active,\n var(--c-primary-600)\n );--_c-sub-navigation-item-background-color-active:var(\n --c-sub-navigation-item-background-color-active,\n var(--c-white)\n );--_c-sub-navigation-item-sub-item-background-color-active:var(\n --c-sub-navigation-item-sub-item-background-color-active,\n var(--c-primary-100)\n );--_c-sub-navigation-item-sub-item-background-color-hover:var(\n --c-sub-navigation-item-sub-item-background-color-hover,\n var(--c-primary-100)\n );--_c-sub-navigation-item-sub-item-background-color:var(\n --c-sub-navigation-item-sub-item-background-color,\n var(--c-transparent)\n );--_c-sub-navigation-item-sub-item-text-color-active:var(\n --c-sub-navigation-item-sub-item-text-color-active,\n var(--c-primary-600)\n );--_c-sub-navigation-item-sub-item-text-color:var(\n --c-sub-navigation-item-sub-item-text-color,\n var(--c-text-body)\n )}:host(.c-sub-navigation-item--sub-level){--_c-sub-navigation-item-background-color:var(\n --_c-sub-navigation-item-sub-item-background-color\n );--_c-sub-navigation-item-text-color:var(\n --_c-sub-navigation-item-sub-item-text-color\n );--_c-sub-navigation-item-background-color-hover:var(\n --_c-sub-navigation-item-sub-item-background-color-hover\n );--_c-sub-navigation-item-text-color-active:var(\n --_c-sub-navigation-item-sub-item-text-color-active\n );--_c-sub-navigation-item-background-color-active:var(\n --_c-sub-navigation-item-sub-item-background-color-active\n )}.c-sub-navigation-item{align-items:center;background-color:var(--_c-sub-navigation-item-background-color);border-radius:4px;color:var(--_c-sub-navigation-item-text-color);cursor:pointer;display:flex;font-weight:400;line-height:46px;margin:0 8px;overflow:hidden;padding-left:34px;position:relative;transition:background-color 0.2s ease-in;user-select:none}.c-sub-navigation-item__wrapper{padding:2px 0}.c-sub-navigation-item__content{display:flex;align-items:center;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.c-sub-navigation-item__content::before{background-color:var(--_c-sub-navigation-item-text-color-active);content:\"\";height:100%;left:0;position:absolute;top:0;transform:translateZ(0) translateX(-8px);transition:transform 0.2s ease-in-out;width:8px}.c-sub-navigation-item:hover{background-color:var(--_c-sub-navigation-item-background-color-hover);color:var(--_c-sub-navigation-item-text-color-active)}:host(.active) .c-sub-navigation-item{background-color:var(--_c-sub-navigation-item-background-color-active)}:host(.active) .c-sub-navigation-item__content::before{transform:translateZ(0) translateX(0)}::slotted(span){margin-right:8px;font-size:20px;line-height:1}:host(:host:focus),:host(:host:focus) .c-sub-navigation-item{outline:none}:host(:host:focus-visible) .c-sub-navigation-item{outline:2px var(--_c-sub-navigation-item-text-color-active) solid;outline-offset:2px}.visuallyhidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.c-sub-navigation-item__slot{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.c-sub-navigation-item__slot slot{display:flex;gap:8px;align-items:center}";
2278
+
2279
+ const CSubNavigationItem = class {
2280
+ constructor(hostRef) {
2281
+ index.registerInstance(this, hostRef);
2282
+ this.active = undefined;
2283
+ this.focusable = false;
2284
+ this.href = undefined;
2285
+ this.target = null;
2286
+ this.loading = false;
2287
+ }
2288
+ _redirect(event) {
2289
+ if ((event instanceof KeyboardEvent && (event === null || event === void 0 ? void 0 : event.key) === 'Enter') ||
2290
+ event instanceof MouseEvent ||
2291
+ event instanceof PointerEvent) {
2292
+ event.stopPropagation();
2293
+ const sidenav = document.querySelector('c-side-navigation');
2294
+ sidenav.menuVisible = false;
2295
+ if (this.href) {
2296
+ if (this.target) {
2297
+ window.open(this.href, this.target);
2298
+ }
2299
+ else {
2300
+ window.location.href = this.href;
2301
+ }
2302
+ }
2303
+ }
2304
+ }
2305
+ render() {
2306
+ const a11y = {
2307
+ tabindex: this.focusable ? '0' : '-1',
2308
+ role: 'menuitem',
2309
+ };
2310
+ if (this.active) {
2311
+ a11y['aria-current'] = 'page';
2312
+ }
2313
+ return (index.h(index.Host, Object.assign({}, a11y, { class: { active: this.active }, onClick: (e) => this._redirect(e), onKeyDown: (e) => this._redirect(e) }), index.h("div", { class: "c-sub-navigation-item__wrapper" }, index.h("div", { class: "c-sub-navigation-item" }, index.h("div", { class: "c-sub-navigation-item__content" }, index.h("div", { class: "c-sub-navigation-item__slot" }, index.h("slot", null)), this.active && (index.h("span", { class: "visuallyhidden" }, ", Current page"))), index.h("c-loader", { size: 32, hide: !this.loading, style: { pointerEvents: 'none' } })))));
2314
+ }
2315
+ get element() { return index.getElement(this); }
2316
+ };
2317
+ CSubNavigationItem.style = cSubNavigationItemCss;
2318
+
2319
+ const cSwitchCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host(c-switch){--_c-switch-border-color:var(--c-switch-border-color, var(--c-tertiary-600));--_c-switch-handle-color:var(--c-switch-handle-color, var(--c-tertiary-600));--_c-switch-slider-color:var(--c-switch-slider-color, var(--c-transparent));--_c-switch-border-color-disabled:var(--c-switch-border-color-disabled, var(--c-transparent));--_c-switch-handle-color-disabled:var(--c-switch-handle-color-disabled, var(--c-tertiary-500));--_c-switch-slider-color-disabled:var(--c-switch-slider-color-disabled, var(--c-tertiary-200));--_c-switch-border-color-active:var(--c-switch-border-color-active, var(--c-primary-600));--_c-switch-handle-color-active:var(--c-switch-handle-color-active, var(--c-white));--_c-switch-slider-color-active:var(--c-switch-slider-color-active, var(--c-primary-600));--_c-switch-border-color-active-disabled:var(--c-switch-border-color-active-disabled, var(--c-tertiary-400));--_c-switch-handle-color-active-disabled:var(--c-switch-handle-color-active-disabled, var(--c-white));--_c-switch-slider-color-active-disabled:var(--c-switch-slider-color-active-disabled, var(--c-tertiary-400));display:inline-block}.c-switch{--_c-switch-handle-margin:5px;--_c-switch-pointer:pointer;--_c-switch-height:22px;--_c-switch-width:44px;--_c-switch-handle-size:calc(var(--_c-switch-height) - 2 * var(--_c-switch-handle-margin));--_c-switch-handle-position-active:calc(\n var(--_c-switch-width) - var(--_c-switch-handle-size) - 2 * var(--_c-switch-handle-margin)\n );backface-visibility:hidden;transform:translate3d(0, 0, 0);display:inline-grid;height:var(--_c-switch-height);position:relative;grid-template-columns:1fr;gap:12px;align-items:center}.c-switch--disabled{--_c-switch-pointer:default;--_c-switch-handle-color:var(--_c-switch-handle-color-disabled);--_c-switch-slider-color:var(--_c-switch-slider-color-disabled);--_c-switch-border-color:var(--_c-switch-border-color-disabled);--c-error-600:var(--c-tertiary-400);color:var(--c-tertiary-500)}.c-switch--label{grid-template-columns:var(--_c-switch-width) auto}.c-switch__label span.required{color:var(--c-error-600)}.c-switch__input{height:var(--_c-switch-height);position:relative;width:var(--_c-switch-width);align-self:start}.c-switch__slider{background-color:var(--_c-switch-slider-color);border-radius:var(--_c-switch-height);box-shadow:inset 0 0 0 2px var(--_c-switch-border-color);inset:0;cursor:var(--_c-switch-pointer);position:absolute;transform-origin:50% 50%;transition:0.3s cubic-bezier(0.25, 0.8, 0.5, 1)}.c-switch__slider::before{background-color:var(--_c-switch-handle-color);border-radius:50%;bottom:var(--_c-switch-handle-margin);content:\"\";height:var(--_c-switch-handle-size);left:var(--_c-switch-handle-margin);position:absolute;transition:0.3s cubic-bezier(0.25, 0.8, 0.5, 1);width:var(--_c-switch-handle-size)}.c-switch input{height:0;opacity:0;width:0}.c-switch input:checked+.c-switch__slider{--_c-switch-handle-color:var(--_c-switch-handle-color-active);--_c-switch-slider-color:var(--_c-switch-slider-color-active);--_c-switch-border-color:var(--_c-switch-border-color-active)}.c-switch input:checked+.c-switch__slider::before{transform:translateX(var(--_c-switch-handle-position-active))}.c-switch input:checked+.c-switch__slider--disabled{--_c-switch-handle-color:var(--_c-switch-handle-color-active-disabled);--_c-switch-slider-color:var(--_c-switch-slider-color-active-disabled);--_c-switch-border-color:var(--_c-switch-border-color-active-disabled)}.c-switch input:focus+.c-switch__slider{outline:none}.c-switch input:focus-visible+.c-switch__slider{outline:2px var(--c-primary-600) solid;outline-offset:2px}";
2320
+
2321
+ const CSwitch = class {
2322
+ constructor(hostRef) {
2323
+ index.registerInstance(this, hostRef);
2324
+ this.changeValue = index.createEvent(this, "changeValue", 3);
2325
+ if (hostRef.$hostElement$["s-ei"]) {
2326
+ this.internals = hostRef.$hostElement$["s-ei"];
2327
+ }
2328
+ else {
2329
+ this.internals = hostRef.$hostElement$.attachInternals();
2330
+ hostRef.$hostElement$["s-ei"] = this.internals;
2331
+ }
2332
+ this._toggleState = () => {
2333
+ if (this.hostDisabled)
2334
+ return;
2335
+ this.checked = !this.checked;
2336
+ this.changeValue.emit(this.checked ? this.trueValue : this.falseValue);
2337
+ this.internals.setFormValue(this.checked ? this.trueValue.toString() : this.falseValue.toString());
2338
+ };
2339
+ this.checked = false;
2340
+ this.value = false;
2341
+ this.trueValue = true;
2342
+ this.falseValue = false;
2343
+ this.hostDisabled = false;
2344
+ this.hostId = undefined;
2345
+ this.required = false;
2346
+ this.hasLabel = false;
2347
+ }
2348
+ componentWillLoad() {
2349
+ this.checked = this.checked || this.value === this.trueValue;
2350
+ this.internals.setFormValue(this.checked ? this.trueValue.toString() : this.falseValue.toString());
2351
+ }
2352
+ componentDidLoad() {
2353
+ const slotted = this.host.childNodes;
2354
+ this.hasLabel = slotted && slotted.length > 0;
2355
+ }
2356
+ render() {
2357
+ const classes = {
2358
+ 'c-switch': true,
2359
+ 'c-switch--disabled': !!this.hostDisabled,
2360
+ 'c-switch--label': this.hasLabel,
2361
+ };
2362
+ const sliderClasses = {
2363
+ 'c-switch__slider': true,
2364
+ 'c-switch__slider--disabled': !!this.hostDisabled,
2365
+ };
2366
+ return (index.h("label", { class: classes, htmlFor: this.hostId }, index.h("div", { class: "c-switch__input" }, index.h("input", { id: this.hostId, "aria-checked": this.checked.toString(), type: "checkbox", role: "switch", disabled: this.hostDisabled, checked: this.checked ? true : undefined, onChange: () => this._toggleState() }), index.h("span", { class: sliderClasses })), this.hasLabel ? (index.h("div", { class: "c-switch__label" }, index.h("slot", null), this.required && index.h("span", { class: "required" }, "\u00A0*"))) : null));
2367
+ }
2368
+ static get formAssociated() { return true; }
2369
+ get host() { return index.getElement(this); }
2370
+ };
2371
+ CSwitch.style = cSwitchCss;
2372
+
2373
+ const cTableCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host,:root{--_c-table-border-color:var(--c-table-border-color, var(--c-tertiary-200));--_c-table-header-text-color:var(--c-table-header-text-color, var(--c-text-system));--_c-table-row-background-color-mobile:var(--c-table-row-background-color-mobile, rgba(var(--c-primary-rgb), 0.05))}table.c-table{border-collapse:collapse;border-spacing:0;border:0;font-size:100%;font-family:var(--c-font-family);margin:0;padding:0;width:100%}table.c-table slot{display:table}table.c-table caption,table.c-table tbody,table.c-table tfoot,table.c-table thead,table.c-table tr,table.c-table th,table.c-table td{border:0;font-size:100%;font-family:var(--c-font-family);margin:0;padding:0}table.c-table thead{background-color:var(--c-white);position:relative}table.c-table thead th{border-bottom:2px solid var(--_c-table-border-color);text-align:left}table.c-table tbody{box-shadow:inset 1px 0 0 0 var(--_c-table-border-color), inset -1px 0 0 0 var(--_c-table-border-color), inset 0 1px 0 0 var(--_c-table-border-color), inset 0 -1px 0 0 var(--_c-table-border-color);}@supports (-webkit-hyphens: none){table.c-table tbody{border:1px solid var(--_c-table-border-color)}table.c-table tbody tr{border-bottom:1px solid var(--_c-table-border-color)}}table.c-table tbody tr{box-shadow:inset 0 1px 0 0 var(--_c-table-border-color)}table.c-table tfoot{background-color:var(--c-white)}table.c-table tfoot tr{box-shadow:inset 0 1px 0 0 var(--_c-table-border-color)}table.c-table tfoot td{min-height:48px}table.c-table tfoot td c-pagination{flex:1}table.c-table th,table.c-table td{font-weight:400;box-sizing:border-box;line-height:normal;padding:16px}table.c-table th{height:48px;font-size:14px;color:var(--_c-table-header-text-color)}table.c-table td{font-size:16px;color:var(--c-text-body)}table.c-table--mobile{border-spacing:0 16px;border-collapse:separate}table.c-table--mobile tbody{box-shadow:none}table.c-table--mobile tbody tr{border-radius:4px;box-shadow:inset 0 0 0 1px var(--_c-table-border-color)}@supports (-webkit-hyphens: none){table.c-table--mobile tbody tr{display:grid;margin-bottom:16px;border:none}}table.c-table--mobile thead{display:none}table.c-table--mobile td{display:grid;gap:4px;padding:12px;min-height:62px}table.c-table--mobile td::before{font-size:14px;color:var(--_c-table-header-text-color);content:attr(data-title);display:inline-block;text-align:start;padding-right:8px}table.c-table--mobile td:nth-of-type(even){background-color:var(--_c-table-row-background-color-mobile)}";
2374
+
2375
+ const CTable = class {
2376
+ constructor(hostRef) {
2377
+ index.registerInstance(this, hostRef);
2378
+ this.mobileBreakpoint = 600;
2379
+ this.responsive = false;
2380
+ }
2381
+ get cells() {
2382
+ return Array.from(this._tableElement.querySelectorAll('td'));
2383
+ }
2384
+ get headers() {
2385
+ return Array.from(this._tableElement.querySelectorAll('th')).map((th) => th.innerHTML);
2386
+ }
2387
+ _handleResize(width) {
2388
+ const isMobile = width <= this.mobileBreakpoint;
2389
+ this._tableElement.classList.toggle('c-table--mobile', isMobile);
2390
+ }
2391
+ componentWillLoad() {
2392
+ this._tableElement = this.el.querySelector('table');
2393
+ this._tableElement.classList.add('c-table');
2394
+ this._observer = new ResizeObserver(([entry]) => {
2395
+ const { width } = entry.contentRect;
2396
+ this._handleResize(width);
2397
+ });
2398
+ }
2399
+ componentDidLoad() {
2400
+ if (this.responsive) {
2401
+ this._observer.observe(this._tableElement);
2402
+ }
2403
+ this.cells.forEach((cell, index) => {
2404
+ cell.dataset.title = this.headers[+index % this.headers.length];
2405
+ });
2406
+ }
2407
+ render() {
2408
+ return (index.h(index.Host, null, index.h("slot", null)));
2409
+ }
2410
+ get el() { return index.getElement(this); }
2411
+ };
2412
+ CTable.style = cTableCss;
2413
+
2414
+ const cTextFieldCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:root,:host{--_c-text-field-active-color:var(--c-text-field-active-color, var(--c-primary-600));--_c-text-field-inactive-color:var(--c-text-field-inactive-color, var(--c-tertiary-600));--_c-text-field-background-color:var(--c-text-field-background-color, var(--c-transparent));--_c-text-field-text-color:var(--c-text-field-text-color, var(--c-text-body));--_c-text-field-placeholder-color:var(--c-text-field-placeholder-color, var(--c-tertiary-500));--_c-text-field-shadow-active-color:var(--c-text-field-shadow-active-color, var(--_c-text-field-active-color));--_c-text-field-shadow-background-color:var(--c-text-field-shadow-background-color, var(--c-white));--_c-text-field-shadow-text-color:var(--c-text-field-shadow-text-color, var(--_c-text-field-text-color));--_c-text-field-shadow-placeholder-color:var(--c-text-field-shadow-placeholder-color, var(--_c-text-field-placeholder-color))}.c-input{--_c-input-active-color:var(--_c-text-field-active-color);--_c-input-inactive-color:var(--_c-text-field-inactive-color);--_c-input-background-color:var(--_c-text-field-background-color);--_c-input-text-color:var(--_c-text-field-text-color);--_c-input-placeholder-color:var(--_c-text-field-placeholder-color);--_c-input-shadow-active-color:var(--_c-text-field-shadow-active-color);--_c-input-shadow-background-color:var(--_c-text-field-shadow-background-color);--_c-input-shadow-text-color:var(--_c-text-field-shadow-text-color);--_c-input-shadow-placeholder-color:var(--_c-text-field-shadow-placeholder-color)}.c-input__password-toggle,.c-input__date-toggle{cursor:pointer;fill:currentColor;height:22px;width:22px}.c-input__password-toggle--disabled,.c-input__date-toggle--disabled{cursor:not-allowed;fill:var(--c-tertiary-500)}.c-input input[type=date]{opacity:0}.c-input input[type=date]::-webkit-calendar-picker-indicator,.c-input input[type=date]::-webkit-inner-spin-button{display:none;appearance:none}.c-input input[type=date]:focus,.c-input input[type=date].c-input__input--filled{opacity:1}";
2415
+
2416
+ const CTextField = class {
2417
+ constructor(hostRef) {
2418
+ index.registerInstance(this, hostRef);
2419
+ this.changeValue = index.createEvent(this, "changeValue", 3);
2420
+ if (hostRef.$hostElement$["s-ei"]) {
2421
+ this.internals = hostRef.$hostElement$["s-ei"];
2422
+ }
2423
+ else {
2424
+ this.internals = hostRef.$hostElement$.attachInternals();
2425
+ hostRef.$hostElement$["s-ei"] = this.internals;
2426
+ }
2427
+ this._originalType = '';
2428
+ this._handleChange = (event) => {
2429
+ this.value = this.trimWhitespace
2430
+ ? event.target.value.trim()
2431
+ : event.target.value;
2432
+ this.changeValue.emit(this.value);
2433
+ this.internals.setFormValue(this.value);
2434
+ };
2435
+ this._handleBlur = (event) => {
2436
+ if (this.trimWhitespace) {
2437
+ const trimmedValue = event.target.value.trim();
2438
+ event.target.value = trimmedValue;
2439
+ }
2440
+ };
2441
+ this._togglePasswordVisibility = () => {
2442
+ if (this.disabled)
2443
+ return;
2444
+ this.type = this.type === 'password' ? 'text' : 'password';
2445
+ };
2446
+ this.autofocus = false;
2447
+ this.autocapitalize = '';
2448
+ this.autocorrect = '';
2449
+ this.autocomplete = '';
2450
+ this.disabled = false;
2451
+ this.hideDetails = false;
2452
+ this.hint = '';
2453
+ this.hostId = undefined;
2454
+ this.trimWhitespace = false;
2455
+ this.label = undefined;
2456
+ this.max = null;
2457
+ this.min = null;
2458
+ this.name = undefined;
2459
+ this.number = false;
2460
+ this.placeholder = undefined;
2461
+ this.readonly = false;
2462
+ this.required = false;
2463
+ this.rows = 1;
2464
+ this.shadow = false;
2465
+ this.step = null;
2466
+ this.type = undefined;
2467
+ this.valid = true;
2468
+ this.validate = false;
2469
+ this.validateOnBlur = false;
2470
+ this.validation = 'Required field';
2471
+ this.value = undefined;
2472
+ this.isFocused = false;
2473
+ this.labelWidth = 0;
2474
+ this.preSlotWidth = 0;
2475
+ this.messageOptions = {
2476
+ show: true,
2477
+ type: 'hint',
2478
+ content: '',
2479
+ };
2480
+ }
2481
+ componentWillLoad() {
2482
+ CTextField._uniqueId += 1;
2483
+ this._originalType = this.type;
2484
+ this._inputId = `${(this.hostId ||
2485
+ this.label ||
2486
+ this.placeholder ||
2487
+ '').replace(/[^a-zA-Z0-9-_]/g, '')}_${CTextField._uniqueId}`;
2488
+ this.internals.setFormValue(this.value);
2489
+ }
2490
+ get isActive() {
2491
+ return !!this.value || this.isFocused;
2492
+ }
2493
+ get passwordIcon() {
2494
+ return this.type === 'password' ? mdi.mdiEye : mdi.mdiEyeOff;
2495
+ }
2496
+ _renderInputElement() {
2497
+ const props = {
2498
+ classes: {
2499
+ 'c-input__input': true,
2500
+ 'c-input__input--filled': !!this.value,
2501
+ },
2502
+ shared: {
2503
+ id: this._inputId,
2504
+ name: this.name,
2505
+ disabled: this.disabled,
2506
+ readonly: this.readonly,
2507
+ value: this.value,
2508
+ onInput: this._handleChange,
2509
+ onChange: this._handleChange,
2510
+ onBlur: this._handleBlur,
2511
+ },
2512
+ input: Object.assign(Object.assign(Object.assign({ type: this.number ? 'number' : this.type || 'text', min: this.min, max: this.max, step: this.step }, (!!this.autocomplete && { autocomplete: this.autocomplete })), (!!this.autocapitalize && { autocapitalize: this.autocapitalize })), (!!this.autocorrect && { autocorrect: this.autocorrect })),
2513
+ textArea: {
2514
+ rows: this.rows,
2515
+ },
2516
+ };
2517
+ const textInput = (index.h("input", Object.assign({ class: props.classes }, props.input, props.shared, { ref: (el) => (this._inputElement = el) })));
2518
+ const textArea = (index.h("textarea", Object.assign({ class: props.classes }, props.shared, props.textArea)));
2519
+ return this.rows > 1 ? textArea : textInput;
2520
+ }
2521
+ _isFirefox() {
2522
+ return !!navigator.userAgent.match(/firefox|fxios/i);
2523
+ }
2524
+ _renderDateToggle() {
2525
+ if (this._originalType !== 'date' || this._isFirefox())
2526
+ return;
2527
+ const classes = {
2528
+ 'c-input__date-toggle': true,
2529
+ 'c-input__date-toggle--disabled': this.disabled,
2530
+ };
2531
+ return (index.h("svg", { class: classes, viewBox: "0 0 24 24", onClick: this._toggleDatepicker.bind(this) }, index.h("path", { d: mdi.mdiCalendar })));
2532
+ }
2533
+ _toggleDatepicker() {
2534
+ var _a;
2535
+ (_a = this._inputElement) === null || _a === void 0 ? void 0 : _a.showPicker();
2536
+ }
2537
+ _renderPasswordToggle() {
2538
+ if (this._originalType !== 'password')
2539
+ return;
2540
+ const classes = {
2541
+ 'c-input__password-toggle': true,
2542
+ 'c-input__password-toggle--disabled': this.disabled,
2543
+ };
2544
+ return (index.h("svg", { class: classes, viewBox: "0 0 24 24", onClick: this._togglePasswordVisibility }, index.h("path", { d: this.passwordIcon })));
2545
+ }
2546
+ render() {
2547
+ return (index.h(index.Host, null, index.h("c-input", { autofocus: this.autofocus, disabled: this.disabled, "hide-details": this.hideDetails, hint: this.hint, id: this.hostId, "input-id": this._inputId, label: this.label, name: this.name, placeholder: this.placeholder, readonly: this.readonly, required: this.required, rows: this.rows, shadow: this.shadow, type: this.type, valid: this.valid, validate: this.validate, "validate-on-blur": this.validateOnBlur, validation: this.validation, value: this.value }, index.h("slot", { name: "pre", slot: "pre" }), this._renderInputElement(), this._renderPasswordToggle(), this._renderDateToggle(), index.h("slot", { name: "post" }))));
2548
+ }
2549
+ static get formAssociated() { return true; }
2550
+ get hiddenEl() { return index.getElement(this); }
2551
+ };
2552
+ CTextField._uniqueId = 0;
2553
+ CTextField.style = cTextFieldCss;
2554
+
2555
+ const cToolbarCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{--_c-toolbar-background-color:var(--c-toolbar-background-color, var(--c-white));--_c-toolbar-text-color:var(--c-toolbar-text-color, var(--c-text-system))}:host .c-toolbar{align-items:center;background:var(--_c-toolbar-background-color);box-shadow:2px 4px 10px rgba(0, 0, 0, 0.1607843137);color:var(--_c-toolbar-text-color);column-gap:12px;display:flex;height:60px;padding-left:16px;padding-right:16px;position:fixed;width:100%;z-index:9}:host .spacer{height:60px;width:100%}:host(.relative) .c-toolbar{position:relative;margin-bottom:-60px}";
2556
+
2557
+ const CToolbar = class {
2558
+ constructor(hostRef) {
2559
+ index.registerInstance(this, hostRef);
2560
+ }
2561
+ render() {
2562
+ return (index.h(index.Host, null, index.h("div", { class: "c-toolbar" }, index.h("slot", null)), index.h("div", { class: "spacer" })));
2563
+ }
2564
+ };
2565
+ CToolbar.style = cToolbarCss;
2566
+
2567
+ exports.c_autocomplete = CAutocomplete;
2568
+ exports.c_badge = CBadge;
2569
+ exports.c_button = CButton;
2570
+ exports.c_card = CCard;
2571
+ exports.c_card_actions = CCardActions;
2572
+ exports.c_card_content = CCardContent;
2573
+ exports.c_card_title = CCardTitle;
2574
+ exports.c_checkbox = CCheckbox;
2575
+ exports.c_csc_logo = CCscLogo;
2576
+ exports.c_dropdown = CDropdown;
2577
+ exports.c_icon = CIcon;
2578
+ exports.c_icon_button = CIconButton;
2579
+ exports.c_input = CInput;
2580
+ exports.c_loader = CLoader;
2581
+ exports.c_main = CMain;
2582
+ exports.c_message = CMessage;
2583
+ exports.c_navigation_button = CNavigationButton;
2584
+ exports.c_option = COption;
2585
+ exports.c_otp_input = COtpInput;
2586
+ exports.c_page = CPage;
2587
+ exports.c_radio = CRadio;
2588
+ exports.c_radio_group = CRadioGroup;
2589
+ exports.c_ripple = CRipple;
2590
+ exports.c_select = CSelect;
2591
+ exports.c_side_navigation = CSideNavigation;
2592
+ exports.c_side_navigation_item = CSideNavigationItem;
2593
+ exports.c_side_navigation_title = CSideNavigationTitle;
2594
+ exports.c_spacer = CSpacer;
2595
+ exports.c_spinner = CSpinner;
2596
+ exports.c_sub_navigation_item = CSubNavigationItem;
2597
+ exports.c_switch = CSwitch;
2598
+ exports.c_table = CTable;
2599
+ exports.c_text_field = CTextField;
2600
+ exports.c_toolbar = CToolbar;
2601
+
2602
+ //# sourceMappingURL=c-autocomplete_34.cjs.entry.js.map