@prolibu-suite/cobalt-core 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (590) hide show
  1. package/custom-elements.json +15675 -11199
  2. package/dist/cjs/co-accordion.cjs.entry.js +3 -3
  3. package/dist/cjs/co-app-shell.cjs.entry.js +4 -4
  4. package/dist/cjs/co-autocomplete.cjs.entry.js +10 -7
  5. package/dist/cjs/co-avatar-group.cjs.entry.js +77 -0
  6. package/dist/cjs/co-avatar.cjs.entry.js +6 -4
  7. package/dist/cjs/co-badge.cjs.entry.js +2 -2
  8. package/dist/cjs/co-bottom-sheet.cjs.entry.js +325 -0
  9. package/dist/cjs/co-button-group.cjs.entry.js +3 -3
  10. package/dist/cjs/co-button.cjs.entry.js +6 -6
  11. package/dist/cjs/co-calendar-month.cjs.entry.js +381 -0
  12. package/dist/cjs/co-calendar_3.cjs.entry.js +11 -11
  13. package/dist/cjs/co-card.cjs.entry.js +3 -3
  14. package/dist/cjs/co-checkbox-group.cjs.entry.js +5 -5
  15. package/dist/cjs/co-checkbox.cjs.entry.js +5 -5
  16. package/dist/cjs/co-chip.cjs.entry.js +11 -8
  17. package/dist/cjs/co-color-picker.cjs.entry.js +7 -5
  18. package/dist/cjs/co-column-picker.cjs.entry.js +3 -3
  19. package/dist/cjs/co-combobox.cjs.entry.js +7 -7
  20. package/dist/cjs/co-command-search.cjs.entry.js +151 -12
  21. package/dist/cjs/co-data-table-pagination.cjs.entry.js +5 -5
  22. package/dist/cjs/co-data-table.cjs.entry.js +25 -11
  23. package/dist/cjs/co-date-picker.cjs.entry.js +2 -2
  24. package/dist/cjs/co-date-range-picker.cjs.entry.js +3 -3
  25. package/dist/cjs/co-date-range.cjs.entry.js +2 -2
  26. package/dist/cjs/co-empty-state.cjs.entry.js +2 -2
  27. package/dist/cjs/co-event-calendar.cjs.entry.js +318 -0
  28. package/dist/cjs/co-fab.cjs.entry.js +3 -3
  29. package/dist/cjs/co-file-field.cjs.entry.js +8 -8
  30. package/dist/cjs/co-helper-text.cjs.entry.js +3 -3
  31. package/dist/cjs/co-icon-button.cjs.entry.js +5 -5
  32. package/dist/cjs/co-icon.cjs.entry.js +33 -25
  33. package/dist/cjs/co-input.cjs.entry.js +6 -6
  34. package/dist/cjs/co-json-field.cjs.entry.js +10 -6
  35. package/dist/cjs/co-lightbox.cjs.entry.js +5 -5
  36. package/dist/cjs/co-list-footer.cjs.entry.js +25 -0
  37. package/dist/cjs/co-list-item.cjs.entry.js +60 -4
  38. package/dist/cjs/co-loader_2.cjs.entry.js +293 -0
  39. package/dist/cjs/co-menu-divider.cjs.entry.js +2 -2
  40. package/dist/cjs/co-menu-item.cjs.entry.js +17 -10
  41. package/dist/cjs/co-menu.cjs.entry.js +2 -2
  42. package/dist/cjs/co-modal.cjs.entry.js +16 -4
  43. package/dist/cjs/co-navbar.cjs.entry.js +3 -3
  44. package/dist/cjs/co-number-field.cjs.entry.js +18 -6
  45. package/dist/cjs/co-page-header.cjs.entry.js +2 -2
  46. package/dist/cjs/co-phone-field.cjs.entry.js +6 -4
  47. package/dist/cjs/co-popover.cjs.entry.js +45 -14
  48. package/dist/cjs/co-progress-bar.cjs.entry.js +8 -4
  49. package/dist/cjs/co-progress-circle.cjs.entry.js +3 -3
  50. package/dist/cjs/co-radio-group.cjs.entry.js +4 -4
  51. package/dist/cjs/co-radio.cjs.entry.js +4 -4
  52. package/dist/cjs/co-rating.cjs.entry.js +4 -4
  53. package/dist/cjs/co-ref-field.cjs.entry.js +36 -13
  54. package/dist/cjs/co-rich-text-editor.cjs.entry.js +1879 -33
  55. package/dist/cjs/co-rich-text-toolbar.cjs.entry.js +995 -71
  56. package/dist/cjs/co-rich-text-viewer.cjs.entry.js +55 -19
  57. package/dist/cjs/co-row.cjs.entry.js +3 -3
  58. package/dist/cjs/co-select.cjs.entry.js +8 -8
  59. package/dist/cjs/co-separator.cjs.entry.js +2 -2
  60. package/dist/cjs/co-sidebar-nav.cjs.entry.js +29 -9
  61. package/dist/cjs/co-sidebar.cjs.entry.js +3 -3
  62. package/dist/cjs/co-skeleton.cjs.entry.js +26 -0
  63. package/dist/cjs/co-slider.cjs.entry.js +3 -3
  64. package/dist/cjs/co-switch.cjs.entry.js +6 -6
  65. package/dist/cjs/co-tab-group.cjs.entry.js +2 -2
  66. package/dist/cjs/co-tab.cjs.entry.js +3 -3
  67. package/dist/cjs/co-tags-field.cjs.entry.js +19 -13
  68. package/dist/cjs/co-textarea.cjs.entry.js +11 -7
  69. package/dist/cjs/co-toast.cjs.entry.js +2 -2
  70. package/dist/cjs/co-toggle-button-group.cjs.entry.js +4 -4
  71. package/dist/cjs/co-toggle-button.cjs.entry.js +4 -4
  72. package/dist/cjs/co-tooltip.cjs.entry.js +51 -16
  73. package/dist/cjs/co-transfer-list.cjs.entry.js +3 -3
  74. package/dist/cjs/co-video.cjs.entry.js +839 -0
  75. package/dist/cjs/cobalt.cjs.js +2 -2
  76. package/dist/cjs/fieldChip-CDIMz_Y6.js +7 -0
  77. package/dist/cjs/{index-CaEJnpZe.js → index-5NdsiFjZ.js} +14509 -6317
  78. package/dist/cjs/{index-DoFnrUVH.js → index-BumlM92r.js} +45 -21
  79. package/dist/cjs/loader.cjs.js +2 -2
  80. package/dist/cjs/overlayAfterClose-BdeXrhVY.js +12 -0
  81. package/dist/{esm/sanitizer-DcK0GGZC.js → cjs/purify.es-DX41ZWS2.js} +3 -107
  82. package/dist/cjs/{requiredMark-DA6y-4rp.js → requiredMark-CqMGt1H1.js} +1 -1
  83. package/dist/cjs/richTextI18n-B7ktXg3M.js +382 -0
  84. package/dist/cjs/toolbar-config-3PlT-3zm.js +216 -0
  85. package/dist/cjs/tz-Dgom0W69.js +127 -0
  86. package/dist/cobalt/cobalt.css +1 -1
  87. package/dist/cobalt/cobalt.esm.js +1 -1
  88. package/dist/cobalt/p-0a506c9d.entry.js +1 -0
  89. package/dist/cobalt/p-0bb55163.entry.js +1 -0
  90. package/dist/cobalt/{p-6404bd21.entry.js → p-0e8c0d87.entry.js} +1 -1
  91. package/dist/cobalt/p-12e2c2c4.entry.js +1 -0
  92. package/dist/cobalt/p-136ad468.entry.js +1 -0
  93. package/dist/cobalt/{p-654bbc2a.entry.js → p-14b59277.entry.js} +1 -1
  94. package/dist/cobalt/p-1531d3c9.entry.js +1 -0
  95. package/dist/cobalt/p-1774d211.entry.js +1 -0
  96. package/dist/cobalt/p-180e1106.entry.js +1 -0
  97. package/dist/cobalt/p-1a07c23c.entry.js +1 -0
  98. package/dist/cobalt/p-1dc9c49e.entry.js +1 -0
  99. package/dist/cobalt/p-1f747e45.entry.js +1 -0
  100. package/dist/cobalt/p-201eaf35.entry.js +1 -0
  101. package/dist/cobalt/p-260101ab.entry.js +1 -0
  102. package/dist/cobalt/p-279bf91c.entry.js +1 -0
  103. package/dist/cobalt/p-29be61a9.entry.js +1 -0
  104. package/dist/cobalt/p-2d2ce434.entry.js +1 -0
  105. package/dist/cobalt/{p-aa63812a.entry.js → p-2f86e1e0.entry.js} +1 -1
  106. package/dist/cobalt/{p-522fcdb7.entry.js → p-31ab9a46.entry.js} +1 -1
  107. package/dist/cobalt/{p-fe9e85b6.entry.js → p-37595103.entry.js} +1 -1
  108. package/dist/cobalt/{p-def448e4.entry.js → p-377c2ccc.entry.js} +1 -1
  109. package/dist/cobalt/p-3863ea91.entry.js +1 -0
  110. package/dist/cobalt/p-3a257cb0.entry.js +1 -0
  111. package/dist/cobalt/p-3e187456.entry.js +1 -0
  112. package/dist/cobalt/{p-5d01bd4d.entry.js → p-4431faac.entry.js} +1 -1
  113. package/dist/cobalt/{p-54f26e95.entry.js → p-4504f7b0.entry.js} +1 -1
  114. package/dist/cobalt/{p-f8728b21.entry.js → p-456fa86f.entry.js} +1 -1
  115. package/dist/cobalt/{p-3f9b3fcb.entry.js → p-4871690e.entry.js} +1 -1
  116. package/dist/cobalt/{p-d17e1444.entry.js → p-4c01d984.entry.js} +1 -1
  117. package/dist/cobalt/p-51a53177.entry.js +1 -0
  118. package/dist/cobalt/p-52de17da.entry.js +1 -0
  119. package/dist/cobalt/p-5890e4d1.entry.js +1 -0
  120. package/dist/cobalt/{p-f2c5cb74.entry.js → p-58a53421.entry.js} +1 -1
  121. package/dist/cobalt/p-62274eba.entry.js +1 -0
  122. package/dist/cobalt/p-635b03d5.entry.js +1 -0
  123. package/dist/cobalt/p-64ddee92.entry.js +1 -0
  124. package/dist/cobalt/p-65af5017.entry.js +1 -0
  125. package/dist/cobalt/p-69d4c0c8.entry.js +1 -0
  126. package/dist/cobalt/p-6c480916.entry.js +1 -0
  127. package/dist/cobalt/p-6d1217c3.entry.js +1 -0
  128. package/dist/cobalt/{p-f0e8fa7d.entry.js → p-6e808b3a.entry.js} +1 -1
  129. package/dist/cobalt/{p-f97ad9ad.entry.js → p-70b14b05.entry.js} +1 -1
  130. package/dist/cobalt/{p-97c20011.entry.js → p-790d384e.entry.js} +1 -1
  131. package/dist/cobalt/p-8012e152.entry.js +1 -0
  132. package/dist/cobalt/p-80b27203.entry.js +1 -0
  133. package/dist/cobalt/p-867c1465.entry.js +1 -0
  134. package/dist/cobalt/p-86a143d7.entry.js +1 -0
  135. package/dist/cobalt/{p-e8b58332.entry.js → p-8d59f5ad.entry.js} +1 -1
  136. package/dist/cobalt/p-8d7fdb9d.entry.js +1 -0
  137. package/dist/cobalt/{p-7f818368.entry.js → p-8dc1dab8.entry.js} +1 -1
  138. package/dist/cobalt/{p-beb9c11d.entry.js → p-8e1dc062.entry.js} +1 -1
  139. package/dist/cobalt/p-929e647f.entry.js +1 -0
  140. package/dist/cobalt/p-92bd9b29.entry.js +1 -0
  141. package/dist/cobalt/p-93046365.entry.js +1 -0
  142. package/dist/cobalt/p-98ab5f3f.entry.js +1 -0
  143. package/dist/cobalt/{p-c87285b6.entry.js → p-9a04ca90.entry.js} +1 -1
  144. package/dist/cobalt/{p-7ef766c6.entry.js → p-9a088515.entry.js} +1 -1
  145. package/dist/cobalt/p-9abbd436.entry.js +1 -0
  146. package/dist/cobalt/p-9d69c067.entry.js +1 -0
  147. package/dist/cobalt/p-B-ckjCUA.js +1 -0
  148. package/dist/cobalt/p-B2QLgWrz.js +2 -0
  149. package/dist/cobalt/p-B6JZk8fL.js +1 -0
  150. package/dist/cobalt/p-BZJ7NCm5.js +1 -0
  151. package/dist/cobalt/p-CYsftTKf.js +2 -0
  152. package/dist/cobalt/p-CegCk7FL.js +1 -0
  153. package/dist/cobalt/p-Ch1jfwZ2.js +1 -0
  154. package/dist/cobalt/p-ChibIpZv.js +1 -0
  155. package/dist/cobalt/p-afb7e19e.entry.js +1 -0
  156. package/dist/cobalt/{p-b758c2e6.entry.js → p-b6f20268.entry.js} +1 -1
  157. package/dist/cobalt/{p-bb07da22.entry.js → p-ba90e871.entry.js} +1 -1
  158. package/dist/cobalt/p-c10697e1.entry.js +1 -0
  159. package/dist/cobalt/p-c4f59532.entry.js +1 -0
  160. package/dist/cobalt/{p-1e0282b8.entry.js → p-cb235aa7.entry.js} +1 -1
  161. package/dist/cobalt/p-cfb36943.entry.js +1 -0
  162. package/dist/cobalt/p-d809bd44.entry.js +1 -0
  163. package/dist/cobalt/p-e53861e4.entry.js +1 -0
  164. package/dist/cobalt/p-e54dd404.entry.js +1 -0
  165. package/dist/cobalt/{p-01fc77c4.entry.js → p-eb18fdbf.entry.js} +1 -1
  166. package/dist/cobalt/{p-95d14878.entry.js → p-eb73052a.entry.js} +1 -1
  167. package/dist/cobalt/{p-273afd93.entry.js → p-ef7d4ae3.entry.js} +1 -1
  168. package/dist/cobalt/p-f4063c41.entry.js +1 -0
  169. package/dist/cobalt/p-oImf-7fN.js +1 -0
  170. package/dist/cobalt/{p-CyYF8IJE.js → p-tPYikBRJ.js} +1 -1
  171. package/dist/collection/collection-manifest.json +10 -3
  172. package/dist/collection/components/co-accordion/co-accordion.js +2 -2
  173. package/dist/collection/components/co-app-shell/co-app-shell.css +79 -6
  174. package/dist/collection/components/co-app-shell/co-app-shell.js +2 -2
  175. package/dist/collection/components/co-autocomplete/co-autocomplete.css +28 -1
  176. package/dist/collection/components/co-autocomplete/co-autocomplete.js +27 -4
  177. package/dist/collection/components/co-avatar/co-avatar.css +38 -1
  178. package/dist/collection/components/co-avatar/co-avatar.js +23 -2
  179. package/dist/collection/components/co-avatar-group/co-avatar-group.css +86 -0
  180. package/dist/collection/components/co-avatar-group/co-avatar-group.js +224 -0
  181. package/dist/collection/components/co-badge/co-badge.js +1 -1
  182. package/dist/collection/components/co-bottom-sheet/co-bottom-sheet.css +136 -0
  183. package/dist/collection/components/co-bottom-sheet/co-bottom-sheet.js +507 -0
  184. package/dist/collection/components/co-button/co-button.css +40 -7
  185. package/dist/collection/components/co-button/co-button.js +26 -7
  186. package/dist/collection/components/co-button-group/co-button-group.js +2 -2
  187. package/dist/collection/components/co-calendar/co-calendar.js +1 -1
  188. package/dist/collection/components/co-calendar-month/co-calendar-month.css +231 -0
  189. package/dist/collection/components/co-calendar-month/co-calendar-month.js +594 -0
  190. package/dist/collection/components/co-card/co-card.js +2 -2
  191. package/dist/collection/components/co-checkbox/co-checkbox.css +7 -1
  192. package/dist/collection/components/co-checkbox/co-checkbox.js +3 -3
  193. package/dist/collection/components/co-checkbox-group/co-checkbox-group.css +7 -1
  194. package/dist/collection/components/co-checkbox-group/co-checkbox-group.js +3 -3
  195. package/dist/collection/components/co-chip/co-chip.css +27 -7
  196. package/dist/collection/components/co-chip/co-chip.js +52 -10
  197. package/dist/collection/components/co-color-picker/co-color-picker.css +35 -1
  198. package/dist/collection/components/co-color-picker/co-color-picker.js +24 -2
  199. package/dist/collection/components/co-column-picker/co-column-picker.js +2 -2
  200. package/dist/collection/components/co-combobox/co-combobox.css +7 -47
  201. package/dist/collection/components/co-combobox/co-combobox.js +4 -4
  202. package/dist/collection/components/co-command-search/co-command-search.css +163 -1
  203. package/dist/collection/components/co-command-search/co-command-search.js +355 -14
  204. package/dist/collection/components/co-command-search/commandSearchGroup.js +17 -0
  205. package/dist/collection/components/co-command-search/commandSearchLogic.js +27 -0
  206. package/dist/collection/components/co-data-table/co-data-table.css +37 -1
  207. package/dist/collection/components/co-data-table/co-data-table.js +25 -11
  208. package/dist/collection/components/co-data-table-pagination/co-data-table-pagination.js +4 -4
  209. package/dist/collection/components/co-date-field/co-date-field.css +7 -1
  210. package/dist/collection/components/co-date-field/co-date-field.js +4 -4
  211. package/dist/collection/components/co-date-range/co-date-range.js +1 -1
  212. package/dist/collection/components/co-date-range-picker/co-date-range-picker.css +7 -1
  213. package/dist/collection/components/co-drawer/co-drawer.css +1 -0
  214. package/dist/collection/components/co-drawer/co-drawer.js +2 -2
  215. package/dist/collection/components/co-empty-state/co-empty-state.js +1 -1
  216. package/dist/collection/components/co-event-calendar/co-event-calendar.css +146 -0
  217. package/dist/collection/components/co-event-calendar/co-event-calendar.js +620 -0
  218. package/dist/collection/components/co-fab/co-fab.js +2 -2
  219. package/dist/collection/components/co-file-field/co-file-field.css +7 -1
  220. package/dist/collection/components/co-file-field/co-file-field.js +5 -5
  221. package/dist/collection/components/co-helper-text/co-helper-text.js +2 -2
  222. package/dist/collection/components/co-icon/co-icon.js +7 -37
  223. package/dist/collection/components/co-icon/iconLoader.js +39 -0
  224. package/dist/collection/components/co-icon-button/co-icon-button.css +19 -8
  225. package/dist/collection/components/co-icon-button/co-icon-button.js +23 -4
  226. package/dist/collection/components/co-input/co-input.css +7 -1
  227. package/dist/collection/components/co-input/co-input.js +3 -3
  228. package/dist/collection/components/co-json-field/co-json-field.css +25 -1
  229. package/dist/collection/components/co-json-field/co-json-field.js +27 -3
  230. package/dist/collection/components/co-lightbox/co-lightbox.js +4 -4
  231. package/dist/collection/components/co-list-footer/co-list-footer.css +50 -0
  232. package/dist/collection/components/co-list-footer/co-list-footer.js +149 -0
  233. package/dist/collection/components/co-list-item/co-list-item.css +7 -0
  234. package/dist/collection/components/co-list-item/co-list-item.js +65 -2
  235. package/dist/collection/components/co-loader/co-loader.css +9 -0
  236. package/dist/collection/components/co-menu/co-menu.js +1 -1
  237. package/dist/collection/components/co-menu-divider/co-menu-divider.js +1 -1
  238. package/dist/collection/components/co-menu-item/co-menu-item.css +18 -0
  239. package/dist/collection/components/co-menu-item/co-menu-item.js +15 -8
  240. package/dist/collection/components/co-modal/co-modal.css +42 -2
  241. package/dist/collection/components/co-modal/co-modal.js +42 -2
  242. package/dist/collection/components/co-navbar/co-navbar.js +2 -2
  243. package/dist/collection/components/co-number-field/co-number-field.css +19 -1
  244. package/dist/collection/components/co-number-field/co-number-field.js +34 -3
  245. package/dist/collection/components/co-overlay/co-overlay.css +15 -1
  246. package/dist/collection/components/co-overlay/co-overlay.js +266 -1
  247. package/dist/collection/components/co-overlay/focusTrap.js +53 -0
  248. package/dist/collection/components/co-overlay/overlayAfterClose.js +8 -0
  249. package/dist/collection/components/co-page-header/co-page-header.js +1 -1
  250. package/dist/collection/components/co-phone-field/co-phone-field.css +30 -2
  251. package/dist/collection/components/co-phone-field/co-phone-field.js +23 -1
  252. package/dist/collection/components/co-popover/co-popover.css +9 -0
  253. package/dist/collection/components/co-popover/co-popover.js +43 -12
  254. package/dist/collection/components/co-progress-bar/co-progress-bar.css +22 -0
  255. package/dist/collection/components/co-progress-bar/co-progress-bar.js +26 -2
  256. package/dist/collection/components/co-progress-circle/co-progress-circle.js +2 -2
  257. package/dist/collection/components/co-radio/co-radio.js +3 -3
  258. package/dist/collection/components/co-radio-group/co-radio-group.js +3 -3
  259. package/dist/collection/components/co-rating/co-rating.js +3 -3
  260. package/dist/collection/components/co-ref-field/co-ref-field.css +64 -6
  261. package/dist/collection/components/co-ref-field/co-ref-field.js +0 -0
  262. package/dist/collection/components/co-rich-text-editor/co-rich-text-editor.css +1125 -41
  263. package/dist/collection/components/co-rich-text-editor/co-rich-text-editor.js +2008 -53
  264. package/dist/collection/components/co-rich-text-toolbar/co-rich-text-toolbar.css +791 -9
  265. package/dist/collection/components/co-rich-text-toolbar/co-rich-text-toolbar.js +1071 -71
  266. package/dist/collection/components/co-rich-text-viewer/co-rich-text-viewer.css +78 -0
  267. package/dist/collection/components/co-rich-text-viewer/co-rich-text-viewer.js +46 -41
  268. package/dist/collection/components/co-row/co-row.js +2 -2
  269. package/dist/collection/components/co-select/co-select.css +7 -1
  270. package/dist/collection/components/co-select/co-select.js +5 -5
  271. package/dist/collection/components/co-separator/co-separator.js +1 -1
  272. package/dist/collection/components/co-sidebar/co-sidebar.js +2 -2
  273. package/dist/collection/components/co-sidebar-nav/co-sidebar-nav.css +99 -12
  274. package/dist/collection/components/co-sidebar-nav/co-sidebar-nav.js +28 -8
  275. package/dist/collection/components/co-skeleton/co-skeleton.css +28 -0
  276. package/dist/collection/components/co-skeleton/co-skeleton.js +97 -0
  277. package/dist/collection/components/co-slider/co-slider.js +2 -2
  278. package/dist/collection/components/co-switch/co-switch.css +9 -1
  279. package/dist/collection/components/co-switch/co-switch.js +3 -3
  280. package/dist/collection/components/co-tab/co-tab.js +2 -2
  281. package/dist/collection/components/co-tab-group/co-tab-group.js +1 -1
  282. package/dist/collection/components/co-tags-field/co-tags-field.css +39 -1
  283. package/dist/collection/components/co-tags-field/co-tags-field.js +36 -10
  284. package/dist/collection/components/co-textarea/co-textarea.css +26 -1
  285. package/dist/collection/components/co-textarea/co-textarea.js +28 -4
  286. package/dist/collection/components/co-toast/co-toast.js +1 -1
  287. package/dist/collection/components/co-toggle-button/co-toggle-button.css +26 -4
  288. package/dist/collection/components/co-toggle-button/co-toggle-button.js +3 -3
  289. package/dist/collection/components/co-toggle-button-group/co-toggle-button-group.css +16 -12
  290. package/dist/collection/components/co-toggle-button-group/co-toggle-button-group.js +2 -2
  291. package/dist/collection/components/co-tooltip/co-tooltip.css +8 -0
  292. package/dist/collection/components/co-tooltip/co-tooltip.js +69 -14
  293. package/dist/collection/components/co-transfer-list/co-transfer-list.js +2 -2
  294. package/dist/collection/components/co-video/co-video.css +497 -0
  295. package/dist/collection/components/co-video/co-video.js +1772 -0
  296. package/dist/collection/utils/fieldChip.js +2 -0
  297. package/dist/collection/utils/icon-config.js +12 -0
  298. package/dist/collection/utils/richTextI18n.js +378 -0
  299. package/dist/collection/utils/sheetGesture.js +53 -0
  300. package/dist/components/co-accordion.js +1 -1
  301. package/dist/components/co-app-shell.js +1 -1
  302. package/dist/components/co-autocomplete.js +1 -1
  303. package/dist/components/co-avatar-group.d.ts +11 -0
  304. package/dist/components/co-avatar-group.js +1 -0
  305. package/dist/components/co-avatar.js +1 -1
  306. package/dist/components/co-badge.js +1 -1
  307. package/dist/components/co-bottom-sheet.d.ts +11 -0
  308. package/dist/components/co-bottom-sheet.js +1 -0
  309. package/dist/components/co-button-group.js +1 -1
  310. package/dist/components/co-button.js +1 -1
  311. package/dist/components/co-calendar-month.d.ts +11 -0
  312. package/dist/components/co-calendar-month.js +1 -0
  313. package/dist/components/co-calendar.js +1 -1
  314. package/dist/components/co-card.js +1 -1
  315. package/dist/components/co-checkbox-group.js +1 -1
  316. package/dist/components/co-checkbox.js +1 -1
  317. package/dist/components/co-chip.js +1 -1
  318. package/dist/components/co-color-picker.js +1 -1
  319. package/dist/components/co-column-picker.js +1 -1
  320. package/dist/components/co-combobox.js +1 -1
  321. package/dist/components/co-command-search.js +1 -1
  322. package/dist/components/co-data-table-pagination.js +1 -1
  323. package/dist/components/co-data-table.js +1 -1
  324. package/dist/components/co-date-field.js +1 -1
  325. package/dist/components/co-date-picker.js +1 -1
  326. package/dist/components/co-date-range-picker.js +1 -1
  327. package/dist/components/co-date-range.js +1 -1
  328. package/dist/components/co-drawer.js +1 -1
  329. package/dist/components/co-empty-state.js +1 -1
  330. package/dist/components/co-event-calendar.d.ts +11 -0
  331. package/dist/components/co-event-calendar.js +1 -0
  332. package/dist/components/co-fab.js +1 -1
  333. package/dist/components/co-file-field.js +1 -1
  334. package/dist/components/co-helper-text.js +1 -1
  335. package/dist/components/co-icon-button.js +1 -1
  336. package/dist/components/co-icon.js +1 -1
  337. package/dist/components/co-input.js +1 -1
  338. package/dist/components/co-json-field.js +1 -1
  339. package/dist/components/co-lightbox.js +1 -1
  340. package/dist/components/co-list-footer.d.ts +11 -0
  341. package/dist/components/co-list-footer.js +1 -0
  342. package/dist/components/co-list-item.js +1 -1
  343. package/dist/components/co-loader.js +1 -1
  344. package/dist/components/co-menu-divider.js +1 -1
  345. package/dist/components/co-menu-item.js +1 -1
  346. package/dist/components/co-menu.js +1 -1
  347. package/dist/components/co-modal.js +1 -1
  348. package/dist/components/co-navbar.js +1 -1
  349. package/dist/components/co-number-field.js +1 -1
  350. package/dist/components/co-overlay.js +1 -1
  351. package/dist/components/co-page-header.js +1 -1
  352. package/dist/components/co-phone-field.js +1 -1
  353. package/dist/components/co-popover.js +1 -1
  354. package/dist/components/co-progress-bar.js +1 -1
  355. package/dist/components/co-progress-circle.js +1 -1
  356. package/dist/components/co-radio-group.js +1 -1
  357. package/dist/components/co-radio.js +1 -1
  358. package/dist/components/co-rating.js +1 -1
  359. package/dist/components/co-ref-field.js +1 -1
  360. package/dist/components/co-rich-text-editor.js +1 -1
  361. package/dist/components/co-rich-text-toolbar.js +1 -1
  362. package/dist/components/co-rich-text-viewer.js +1 -1
  363. package/dist/components/co-row.js +1 -1
  364. package/dist/components/co-select.js +1 -1
  365. package/dist/components/co-separator.js +1 -1
  366. package/dist/components/co-sidebar-nav.js +1 -1
  367. package/dist/components/co-sidebar.js +1 -1
  368. package/dist/components/co-skeleton.d.ts +11 -0
  369. package/dist/components/co-skeleton.js +1 -0
  370. package/dist/components/co-slider.js +1 -1
  371. package/dist/components/co-switch.js +1 -1
  372. package/dist/components/co-tab-group.js +1 -1
  373. package/dist/components/co-tab.js +1 -1
  374. package/dist/components/co-tags-field.js +1 -1
  375. package/dist/components/co-textarea.js +1 -1
  376. package/dist/components/co-toast.js +1 -1
  377. package/dist/components/co-toggle-button-group.js +1 -1
  378. package/dist/components/co-toggle-button.js +1 -1
  379. package/dist/components/co-tooltip.js +1 -1
  380. package/dist/components/co-transfer-list.js +1 -1
  381. package/dist/components/co-video.d.ts +11 -0
  382. package/dist/components/co-video.js +1 -0
  383. package/dist/components/index.js +1 -1
  384. package/dist/components/p-B2QLgWrz.js +2 -0
  385. package/dist/components/{p-BeWXpX8I.js → p-B7vGYFbO.js} +1 -1
  386. package/dist/components/p-BB2OaYKF.js +1 -0
  387. package/dist/components/p-BFeE_fiq.js +1 -0
  388. package/dist/components/p-BNKz39GA.js +1 -0
  389. package/dist/components/p-Ba4v1NXo.js +1 -0
  390. package/dist/components/p-C_ULDaks.js +1 -0
  391. package/dist/components/p-CegCk7FL.js +1 -0
  392. package/dist/components/p-ChibIpZv.js +1 -0
  393. package/dist/components/p-D3Y_ti3Q.js +1 -0
  394. package/dist/components/{p-DObrQi5F.js → p-DKh8ZK4U.js} +1 -1
  395. package/dist/components/{p-C9tHLXKS.js → p-DeZxp9vb.js} +1 -1
  396. package/dist/components/p-DvhR3H61.js +1 -0
  397. package/dist/components/p-DxCFMMfY.js +1 -0
  398. package/dist/components/{p-OGpfa9Yd.js → p-DzoNGEDU.js} +1 -1
  399. package/dist/components/p-EPZfLt5l.js +1 -0
  400. package/dist/components/p-FMnqPWcM.js +1 -0
  401. package/dist/components/p-Hzh9U2cM.js +1 -0
  402. package/dist/components/p-WZ06pT2Y.js +1 -0
  403. package/dist/components/p-tloAgDin.js +1 -0
  404. package/dist/esm/co-accordion.entry.js +3 -3
  405. package/dist/esm/co-app-shell.entry.js +4 -4
  406. package/dist/esm/co-autocomplete.entry.js +10 -7
  407. package/dist/esm/co-avatar-group.entry.js +75 -0
  408. package/dist/esm/co-avatar.entry.js +6 -4
  409. package/dist/esm/co-badge.entry.js +2 -2
  410. package/dist/esm/co-bottom-sheet.entry.js +323 -0
  411. package/dist/esm/co-button-group.entry.js +3 -3
  412. package/dist/esm/co-button.entry.js +6 -6
  413. package/dist/esm/co-calendar-month.entry.js +379 -0
  414. package/dist/esm/co-calendar_3.entry.js +12 -12
  415. package/dist/esm/co-card.entry.js +3 -3
  416. package/dist/esm/co-checkbox-group.entry.js +5 -5
  417. package/dist/esm/co-checkbox.entry.js +5 -5
  418. package/dist/esm/co-chip.entry.js +11 -8
  419. package/dist/esm/co-color-picker.entry.js +7 -5
  420. package/dist/esm/co-column-picker.entry.js +3 -3
  421. package/dist/esm/co-combobox.entry.js +7 -7
  422. package/dist/esm/co-command-search.entry.js +151 -12
  423. package/dist/esm/co-data-table-pagination.entry.js +5 -5
  424. package/dist/esm/co-data-table.entry.js +25 -11
  425. package/dist/esm/co-date-picker.entry.js +2 -2
  426. package/dist/esm/co-date-range-picker.entry.js +4 -4
  427. package/dist/esm/co-date-range.entry.js +2 -2
  428. package/dist/esm/co-empty-state.entry.js +2 -2
  429. package/dist/esm/co-event-calendar.entry.js +316 -0
  430. package/dist/esm/co-fab.entry.js +3 -3
  431. package/dist/esm/co-file-field.entry.js +8 -8
  432. package/dist/esm/co-helper-text.entry.js +3 -3
  433. package/dist/esm/co-icon-button.entry.js +5 -5
  434. package/dist/esm/co-icon.entry.js +33 -25
  435. package/dist/esm/co-input.entry.js +6 -6
  436. package/dist/esm/co-json-field.entry.js +10 -6
  437. package/dist/esm/co-lightbox.entry.js +5 -5
  438. package/dist/esm/co-list-footer.entry.js +23 -0
  439. package/dist/esm/co-list-item.entry.js +60 -4
  440. package/dist/esm/co-loader_2.entry.js +290 -0
  441. package/dist/esm/co-menu-divider.entry.js +2 -2
  442. package/dist/esm/co-menu-item.entry.js +17 -10
  443. package/dist/esm/co-menu.entry.js +2 -2
  444. package/dist/esm/co-modal.entry.js +16 -4
  445. package/dist/esm/co-navbar.entry.js +3 -3
  446. package/dist/esm/co-number-field.entry.js +18 -6
  447. package/dist/esm/co-page-header.entry.js +2 -2
  448. package/dist/esm/co-phone-field.entry.js +6 -4
  449. package/dist/esm/co-popover.entry.js +45 -14
  450. package/dist/esm/co-progress-bar.entry.js +8 -4
  451. package/dist/esm/co-progress-circle.entry.js +3 -3
  452. package/dist/esm/co-radio-group.entry.js +4 -4
  453. package/dist/esm/co-radio.entry.js +4 -4
  454. package/dist/esm/co-rating.entry.js +4 -4
  455. package/dist/esm/co-ref-field.entry.js +36 -13
  456. package/dist/esm/co-rich-text-editor.entry.js +1879 -33
  457. package/dist/esm/co-rich-text-toolbar.entry.js +995 -71
  458. package/dist/esm/co-rich-text-viewer.entry.js +55 -19
  459. package/dist/esm/co-row.entry.js +3 -3
  460. package/dist/esm/co-select.entry.js +8 -8
  461. package/dist/esm/co-separator.entry.js +2 -2
  462. package/dist/esm/co-sidebar-nav.entry.js +29 -9
  463. package/dist/esm/co-sidebar.entry.js +3 -3
  464. package/dist/esm/co-skeleton.entry.js +24 -0
  465. package/dist/esm/co-slider.entry.js +3 -3
  466. package/dist/esm/co-switch.entry.js +6 -6
  467. package/dist/esm/co-tab-group.entry.js +2 -2
  468. package/dist/esm/co-tab.entry.js +3 -3
  469. package/dist/esm/co-tags-field.entry.js +19 -13
  470. package/dist/esm/co-textarea.entry.js +11 -7
  471. package/dist/esm/co-toast.entry.js +2 -2
  472. package/dist/esm/co-toggle-button-group.entry.js +4 -4
  473. package/dist/esm/co-toggle-button.entry.js +4 -4
  474. package/dist/esm/co-tooltip.entry.js +51 -16
  475. package/dist/esm/co-transfer-list.entry.js +3 -3
  476. package/dist/esm/co-video.entry.js +837 -0
  477. package/dist/esm/cobalt.js +3 -3
  478. package/dist/esm/{dates-CyYF8IJE.js → dates-tPYikBRJ.js} +1 -1
  479. package/dist/esm/fieldChip-GPikjpYw.js +5 -0
  480. package/dist/esm/{index-BKmfyPZK.js → index-CYsftTKf.js} +45 -21
  481. package/dist/esm/{index-BjAqSidM.js → index-w_Wxgclf.js} +14508 -6305
  482. package/dist/esm/loader.js +3 -3
  483. package/dist/esm/overlayAfterClose-Ch1jfwZ2.js +10 -0
  484. package/dist/{cjs/sanitizer-CjHZAkOm.js → esm/purify.es-B2QLgWrz.js} +1 -110
  485. package/dist/esm/{requiredMark-DFvtYtkE.js → requiredMark-CEbXKHcU.js} +1 -1
  486. package/dist/esm/richTextI18n-B-ckjCUA.js +380 -0
  487. package/dist/esm/toolbar-config-ChibIpZv.js +212 -0
  488. package/dist/esm/tz-B6JZk8fL.js +119 -0
  489. package/dist/types/components/co-autocomplete/co-autocomplete.d.ts +2 -0
  490. package/dist/types/components/co-avatar/co-avatar.d.ts +2 -0
  491. package/dist/types/components/co-avatar-group/co-avatar-group.d.ts +33 -0
  492. package/dist/types/components/co-bottom-sheet/co-bottom-sheet.d.ts +81 -0
  493. package/dist/types/components/co-button/co-button.d.ts +3 -1
  494. package/dist/types/components/co-calendar-month/co-calendar-month.d.ts +83 -0
  495. package/dist/types/components/co-chip/co-chip.d.ts +7 -2
  496. package/dist/types/components/co-color-picker/co-color-picker.d.ts +2 -0
  497. package/dist/types/components/co-command-search/co-command-search.d.ts +39 -6
  498. package/dist/types/components/co-command-search/commandSearchGroup.d.ts +20 -0
  499. package/dist/types/components/co-command-search/commandSearchLogic.d.ts +17 -0
  500. package/dist/types/components/co-data-table/co-data-table.d.ts +2 -1
  501. package/dist/types/components/co-event-calendar/co-event-calendar.d.ts +110 -0
  502. package/dist/types/components/co-icon/co-icon.d.ts +1 -1
  503. package/dist/types/components/co-icon/iconLoader.d.ts +6 -0
  504. package/dist/types/components/co-icon-button/co-icon-button.d.ts +2 -0
  505. package/dist/types/components/co-json-field/co-json-field.d.ts +3 -0
  506. package/dist/types/components/co-list-footer/co-list-footer.d.ts +26 -0
  507. package/dist/types/components/co-list-item/co-list-item.d.ts +11 -0
  508. package/dist/types/components/co-modal/co-modal.d.ts +6 -0
  509. package/dist/types/components/co-number-field/co-number-field.d.ts +13 -0
  510. package/dist/types/components/co-overlay/co-overlay.d.ts +45 -0
  511. package/dist/types/components/co-overlay/focusTrap.d.ts +20 -0
  512. package/dist/types/components/co-overlay/overlayAfterClose.d.ts +5 -0
  513. package/dist/types/components/co-phone-field/co-phone-field.d.ts +2 -0
  514. package/dist/types/components/co-popover/co-popover.d.ts +9 -0
  515. package/dist/types/components/co-progress-bar/co-progress-bar.d.ts +2 -0
  516. package/dist/types/components/co-ref-field/co-ref-field.d.ts +17 -2
  517. package/dist/types/components/co-rich-text-editor/co-rich-text-editor.d.ts +161 -9
  518. package/dist/types/components/co-rich-text-toolbar/co-rich-text-toolbar.d.ts +119 -13
  519. package/dist/types/components/co-rich-text-viewer/co-rich-text-viewer.d.ts +1 -14
  520. package/dist/types/components/co-skeleton/co-skeleton.d.ts +13 -0
  521. package/dist/types/components/co-tags-field/co-tags-field.d.ts +2 -0
  522. package/dist/types/components/co-textarea/co-textarea.d.ts +3 -0
  523. package/dist/types/components/co-tooltip/co-tooltip.d.ts +12 -0
  524. package/dist/types/components/co-video/co-video.d.ts +203 -0
  525. package/dist/types/components.d.ts +1729 -72
  526. package/dist/types/utils/fieldChip.d.ts +37 -0
  527. package/dist/types/utils/icon-config.d.ts +11 -0
  528. package/dist/types/utils/richTextI18n.d.ts +130 -0
  529. package/dist/types/utils/sheetGesture.d.ts +31 -0
  530. package/package.json +3 -2
  531. package/dist/cjs/co-loader.cjs.entry.js +0 -34
  532. package/dist/cjs/co-overlay.cjs.entry.js +0 -23
  533. package/dist/cobalt/p-0a6d8061.entry.js +0 -1
  534. package/dist/cobalt/p-0bf288cd.entry.js +0 -1
  535. package/dist/cobalt/p-136bdbd2.entry.js +0 -1
  536. package/dist/cobalt/p-15708d32.entry.js +0 -1
  537. package/dist/cobalt/p-1578b019.entry.js +0 -1
  538. package/dist/cobalt/p-23d48581.entry.js +0 -1
  539. package/dist/cobalt/p-2718ff27.entry.js +0 -1
  540. package/dist/cobalt/p-2b4d8535.entry.js +0 -1
  541. package/dist/cobalt/p-3190d715.entry.js +0 -1
  542. package/dist/cobalt/p-41228dce.entry.js +0 -1
  543. package/dist/cobalt/p-44672953.entry.js +0 -1
  544. package/dist/cobalt/p-53ce9023.entry.js +0 -1
  545. package/dist/cobalt/p-5e7141aa.entry.js +0 -1
  546. package/dist/cobalt/p-5f905739.entry.js +0 -1
  547. package/dist/cobalt/p-6678ac0a.entry.js +0 -1
  548. package/dist/cobalt/p-66a912dd.entry.js +0 -1
  549. package/dist/cobalt/p-6759ee1c.entry.js +0 -1
  550. package/dist/cobalt/p-69a40bfd.entry.js +0 -1
  551. package/dist/cobalt/p-6a6a62cb.entry.js +0 -1
  552. package/dist/cobalt/p-6d43b6cd.entry.js +0 -1
  553. package/dist/cobalt/p-759c3dd0.entry.js +0 -1
  554. package/dist/cobalt/p-782f729f.entry.js +0 -1
  555. package/dist/cobalt/p-83b89bf8.entry.js +0 -1
  556. package/dist/cobalt/p-88dc561a.entry.js +0 -1
  557. package/dist/cobalt/p-8c27aff7.entry.js +0 -1
  558. package/dist/cobalt/p-996179f7.entry.js +0 -1
  559. package/dist/cobalt/p-9c533830.entry.js +0 -1
  560. package/dist/cobalt/p-9d89bf47.entry.js +0 -1
  561. package/dist/cobalt/p-BKmfyPZK.js +0 -2
  562. package/dist/cobalt/p-BchB6Hdr.js +0 -1
  563. package/dist/cobalt/p-DcK0GGZC.js +0 -2
  564. package/dist/cobalt/p-Qqq8fysz.js +0 -1
  565. package/dist/cobalt/p-aa17c70b.entry.js +0 -1
  566. package/dist/cobalt/p-ad4c1b41.entry.js +0 -1
  567. package/dist/cobalt/p-ae4d3207.entry.js +0 -1
  568. package/dist/cobalt/p-af64da37.entry.js +0 -1
  569. package/dist/cobalt/p-c6a242e4.entry.js +0 -1
  570. package/dist/cobalt/p-cd57e8b4.entry.js +0 -1
  571. package/dist/cobalt/p-ce3a535f.entry.js +0 -1
  572. package/dist/cobalt/p-d958566a.entry.js +0 -1
  573. package/dist/cobalt/p-dd873bf8.entry.js +0 -1
  574. package/dist/cobalt/p-e4de8865.entry.js +0 -1
  575. package/dist/cobalt/p-eba0bf7f.entry.js +0 -1
  576. package/dist/cobalt/p-fad3605d.entry.js +0 -1
  577. package/dist/cobalt/p-ff2690e5.entry.js +0 -1
  578. package/dist/components/p-BXdfh__-.js +0 -1
  579. package/dist/components/p-BchB6Hdr.js +0 -1
  580. package/dist/components/p-BiW0ubLs.js +0 -1
  581. package/dist/components/p-CaMgu2_g.js +0 -1
  582. package/dist/components/p-DBhNS7JD.js +0 -1
  583. package/dist/components/p-DPi_U-Kl.js +0 -1
  584. package/dist/components/p-DcK0GGZC.js +0 -2
  585. package/dist/components/p-MiSJXuBx.js +0 -1
  586. package/dist/components/p-Sgn-2g8m.js +0 -1
  587. package/dist/components/p-jDjfGZJp.js +0 -1
  588. package/dist/components/p-o8hrDIKe.js +0 -1
  589. package/dist/esm/co-loader.entry.js +0 -32
  590. package/dist/esm/co-overlay.entry.js +0 -21
@@ -1 +0,0 @@
1
- import{t,p as e,H as r,c as o,h as a}from"./index.js";import{d as i}from"./p-DPi_U-Kl.js";const n=e(class t extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.coAction=o(this,"coAction",7),this.variant="basic",this.disabled=!1,this.items=[],this.tick=0,this.onTransaction=()=>{this.tick++},this.run=t=>{const e=this.editor;if(!e||this.disabled)return;const r=e.chain().focus();switch(t.action){case"bold":r.toggleBold().run();break;case"italic":r.toggleItalic().run();break;case"underline":r.toggleUnderline().run();break;case"strike":r.toggleStrike().run();break;case"code":r.toggleCode().run();break;case"bulletList":r.toggleBulletList().run();break;case"orderedList":r.toggleOrderedList().run();break;case"blockquote":r.toggleBlockquote().run();break;case"heading":r.toggleHeading(t.payload).run();break;case"undo":r.undo().run();break;case"redo":r.redo().run();break;case"link":this.toggleLink();break;case"image":this.insertImage();break;default:r.run()}this.coAction.emit({action:t.action,payload:t.payload})}}async componentWillLoad(){const t=await import("./p-BchB6Hdr.js");this.items=t.toolbarItems("none"===this.variant?"compact":this.variant)}async onVariantChange(t){const e=await import("./p-BchB6Hdr.js");this.items=e.toolbarItems("none"===t?"compact":t)}onEditorChange(t,e){null==e||e.off("transaction",this.onTransaction),null==t||t.on("transaction",this.onTransaction),this.tick++}disconnectedCallback(){var t;null===(t=this.editor)||void 0===t||t.off("transaction",this.onTransaction)}isActive(t){if(!this.editor)return!1;if("toggle"!==t.type)return!1;try{return this.editor.isActive(t.action,t.payload)}catch(t){return!1}}static safeUrl(t,e){var r,o;const a=null==t?void 0:t.trim();if(!a)return null;const i=null===(o=null===(r=/^([a-z][a-z0-9+.-]*):/i.exec(a))||void 0===r?void 0:r[1])||void 0===o?void 0:o.toLowerCase();return i?e.includes(i)?a:null:a}toggleLink(){const e=this.editor;if(!e)return;const r=e.chain().focus();if(e.isActive("link"))return void r.unsetLink().run();const o="undefined"!=typeof window?window.prompt("Enter URL"):null,a=t.safeUrl(o,["http","https","mailto","tel"]);a&&r.setLink({href:a}).run()}insertImage(){const e=this.editor;if(!(null==e?void 0:e.schema.nodes.image))return;const r="undefined"!=typeof window?window.prompt("Image URL"):null,o=t.safeUrl(r,["http","https"]);o&&e.chain().focus().setImage({src:o}).run()}supportedBySchema(t){const e=this.editor;if(!e)return!0;const{nodes:r,marks:o}=e.schema;switch(t.action){case"image":return!!r.image;case"bulletList":return!!r.bulletList;case"orderedList":return!!r.orderedList;case"blockquote":return!!r.blockquote;case"heading":return!!r.heading;case"code":return!!o.code;case"underline":return!!o.underline;case"strike":return!!o.strike;case"link":return!!o.link;default:return!0}}canRun(t){var e,r,o,a;if(!this.editor||this.disabled)return!1;const i=this.editor.can();return"undo"===t.action?null===(r=null===(e=i.undo)||void 0===e?void 0:e.call(i))||void 0===r||r:"redo"!==t.action||null===(a=null===(o=i.redo)||void 0===o?void 0:o.call(i))||void 0===a||a}render(){return"none"===this.variant||0===this.items.length?null:a("div",{class:"co-rich-text-toolbar",role:"toolbar","aria-label":"Formatting",part:"toolbar"},this.items.filter((t=>this.supportedBySchema(t))).map((t=>{var e;return a("button",{key:`${t.action}-${JSON.stringify(null!==(e=t.payload)&&void 0!==e?e:"")}`,type:"button",class:{"co-rich-text-toolbar__btn":!0,"co-rich-text-toolbar__btn--active":this.isActive(t)},title:t.label,"aria-label":t.label,"aria-pressed":"toggle"===t.type?String(this.isActive(t)):void 0,disabled:!this.canRun(t),onMouseDown:t=>t.preventDefault(),onClick:()=>this.run(t),part:"button"},a("co-icon",{name:t.icon,size:18}))})))}static get watchers(){return{variant:[{onVariantChange:0}],editor:[{onEditorChange:0}]}}static get style(){return":host{display:block;font-family:var(--co-font-family-primary)}.co-rich-text-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:var(--co-spacing-xxs, 2px);padding:var(--co-spacing-xs) var(--co-spacing-sm);border-bottom:1px solid var(--co-semantic-border-subtle);background:var(--co-semantic-surface-secondary)}.co-rich-text-toolbar__btn{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;border:none;border-radius:var(--co-border-radius-xxs);background:transparent;color:var(--co-semantic-text-secondary);cursor:pointer;transition:background 0.12s ease, color 0.12s ease}.co-rich-text-toolbar__btn:hover:not(:disabled){background:var(--co-semantic-surface-hover, rgba(0, 0, 0, 0.06));color:var(--co-semantic-text-default)}.co-rich-text-toolbar__btn--active{background:var(--co-semantic-surface-hover, rgba(37, 99, 235, 0.12));color:var(--co-color-primary-azul)}.co-rich-text-toolbar__btn:disabled{opacity:0.4;cursor:not-allowed}.co-rich-text-toolbar__btn:focus-visible{outline:2px solid var(--co-semantic-border-focus, var(--co-color-primary-azul));outline-offset:1px}"}},[1,"co-rich-text-toolbar",{editor:[16],variant:[1],disabled:[4],items:[32],tick:[32]},void 0,{variant:[{onVariantChange:0}],editor:[{onEditorChange:0}]}]);function s(){"undefined"!=typeof customElements&&["co-rich-text-toolbar","co-icon"].forEach((e=>{switch(e){case"co-rich-text-toolbar":customElements.get(t(e))||customElements.define(t(e),n);break;case"co-icon":customElements.get(t(e))||i()}}))}s();export{n as C,s as d}
@@ -1 +0,0 @@
1
- import{t as c,p as i,H as o,c as e,h as a}from"./index.js";import{d as s}from"./p-DPi_U-Kl.js";const t=i(class extends o{constructor(c){super(),!1!==c&&this.__registerHost(),this.__attachShadow(),this.coRemove=e(this,"coRemove",7),this.coClick=e(this,"coClick",7),this.shape="rounded",this.size="large",this.iconMode="none",this.variant="filled",this.color="default",this.iconWeight="regular",this.removable=!1,this.clickable=!1,this.disabled=!1,this.selected=!1,this.handleClick=()=>{this.disabled||this.clickable&&this.coClick.emit()},this.handleRemove=c=>{c.stopPropagation(),this.disabled||this.coRemove.emit()}}render(){const c="left"===this.iconMode||"both"===this.iconMode,i="both"===this.iconMode&&!this.removable,o="large"===this.size?16:10,e="large"===this.size?14:10,s=c||!!this.iconLeft,t=i||!!this.iconRight||this.removable;let r;return r=s&&t?"both":s?"left":t?"right":"none",a(this.clickable?"button":"div",{key:"8e94cb3fc83ce53f93f565028849c28a3a479dbd",class:{"co-chip":!0,[`co-chip--${this.shape}`]:!0,[`co-chip--${this.size}`]:!0,[`co-chip--icon-${r}`]:!0,[`co-chip--${this.variant}`]:!0,[`co-chip--${this.color}`]:"default"!==this.color,"co-chip--clickable":this.clickable,"co-chip--disabled":this.disabled,"co-chip--selected":this.selected},part:"chip",type:this.clickable?"button":void 0,disabled:this.clickable?this.disabled:void 0,onClick:this.handleClick},this.iconLeft&&!c&&a("span",{key:"80e0a7ff126606a7aba11d38d76d7edd9363d611",class:"co-chip__icon-left",part:"icon-left"},a("co-icon",{key:"d7118005c74ee93e5d0aecae0eaafd9be97193a9",name:this.iconLeft,size:o,weight:this.iconWeight})),c&&a("span",{key:"d5984fa72cb57b7c7b362766e67a68f436bff041",class:"co-chip__icon-left",part:"icon-left"},a("slot",{key:"11fc498b242ac3092048d6b818ed86812e7350e8",name:"icon-left"})),a("span",{key:"cd50714d03e4d87dbbad6c0e9f1ed08158991014",class:"co-chip__label"},a("slot",{key:"d39ab68830d70c7c5bd26772426108e1a092cc24"},this.label)),this.iconRight&&!i&&!this.removable&&a("span",{key:"d04f8b0b2220af25e5660c8fedb8479c85f925a0",class:"co-chip__icon-right",part:"icon-right"},a("co-icon",{key:"86588187fd73c183399fdb5297fe708970b60086",name:this.iconRight,size:o,weight:this.iconWeight})),i&&a("span",{key:"d729d2e1828f2377462c31ca4497db4a720cb8dc",class:"co-chip__icon-right",part:"icon-right"},a("slot",{key:"b5ec5e777bf02e80fca2ec7d66c7e177b412cbc0",name:"icon-right"})),this.removable&&a("span",{key:"db8a8b04c0e76ccb3f61dcf099b91a86ee249af8",class:"co-chip__remove",part:"remove",role:"button",tabIndex:this.disabled?-1:0,onClick:this.handleRemove,"aria-label":"Remove"},a("co-icon",{key:"0b112fe84652534b42758283a70fa50c2c191cff",name:"x-circle",size:e,weight:"fill"})))}static get style(){return":host{display:inline-flex;max-width:var(--co-chip-max-width, none)}.co-chip{display:inline-flex;align-items:center;justify-content:center;font-family:var(--co-font-family-primary);font-weight:400;line-height:1;letter-spacing:var(--co-font-letter-spacing-body);white-space:nowrap;box-sizing:border-box;-webkit-font-smoothing:antialiased;max-width:100%;overflow:hidden;border:1px solid transparent;transition:background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;cursor:default;margin:0;padding:0}button.co-chip{cursor:pointer;outline:none}button.co-chip:focus-visible{box-shadow:0 0 0 2px var(--co-semantic-border-focus-ring)}.co-chip__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.co-chip--filled{background:var(--co-chip-bg, var(--co-semantic-surface-muted));color:var(--co-chip-color, var(--co-semantic-text-default));border-color:var(--co-chip-border, transparent)}.co-chip--filled.co-chip--clickable:hover:not(.co-chip--disabled){background:var(--co-color-opacity-negro-8, rgba(0, 0, 0, 0.08))}.co-chip--filled.co-chip--clickable:active:not(.co-chip--disabled){opacity:0.85}.co-chip--filled.co-chip--primary{background:var(--co-semantic-surface-primary);color:var(--co-semantic-on-primary)}.co-chip--filled.co-chip--primary.co-chip--clickable:hover:not(.co-chip--disabled){background:var(--co-semantic-surface-primary);opacity:0.85}.co-chip--filled.co-chip--success{background:var(--co-semantic-status-success);color:#fff}.co-chip--filled.co-chip--error{background:var(--co-semantic-status-error);color:#fff}.co-chip--filled.co-chip--warning{background:var(--co-color-status-review);color:#fff}.co-chip--filled.co-chip--info{background:var(--co-semantic-status-info);color:#fff}.co-chip--outlined{background:transparent;color:var(--co-semantic-text-default);border-color:var(--co-semantic-border-default)}.co-chip--outlined.co-chip--clickable:hover:not(.co-chip--disabled){background:var(--co-semantic-surface-hover)}.co-chip--outlined.co-chip--clickable:active:not(.co-chip--disabled){background:var(--co-semantic-surface-muted)}.co-chip--outlined.co-chip--primary{color:var(--co-semantic-surface-primary);border-color:var(--co-semantic-surface-primary)}.co-chip--outlined.co-chip--success{color:var(--co-semantic-status-success);border-color:var(--co-semantic-status-success)}.co-chip--outlined.co-chip--error{color:var(--co-semantic-status-error);border-color:var(--co-semantic-status-error)}.co-chip--outlined.co-chip--warning{color:var(--co-color-status-review);border-color:var(--co-color-status-review)}.co-chip--outlined.co-chip--info{color:var(--co-semantic-status-info);border-color:var(--co-semantic-status-info)}.co-chip--filled.co-chip--selected{box-shadow:inset 0 0 0 1px rgba(255, 255, 255, 0.3)}.co-chip--outlined.co-chip--selected{background:var(--co-semantic-surface-muted);border-width:2px}.co-chip--disabled{opacity:0.4;cursor:not-allowed;pointer-events:none}button.co-chip--disabled{pointer-events:auto;}.co-chip--large{font-size:var(--co-font-size-12)}.co-chip--large.co-chip--icon-none{padding:var(--co-spacing-sm) var(--co-spacing-sm2);gap:0}.co-chip--large.co-chip--icon-left{padding:var(--co-spacing-xs) var(--co-spacing-sm2) var(--co-spacing-xs) var(--co-spacing-sm);gap:var(--co-spacing-sm)}.co-chip--large.co-chip--icon-right{padding:var(--co-spacing-xs) var(--co-spacing-xs) var(--co-spacing-xs) var(--co-spacing-sm2);gap:var(--co-spacing-sm)}.co-chip--large.co-chip--icon-both{padding:var(--co-spacing-xs);gap:var(--co-spacing-sm)}.co-chip--small{font-size:var(--co-font-size-10)}.co-chip--small.co-chip--icon-none{padding:var(--co-spacing-xs) var(--co-spacing-sm);gap:0}.co-chip--small.co-chip--icon-left{padding:var(--co-spacing-xs) var(--co-spacing-sm) var(--co-spacing-xs) var(--co-spacing-xs);gap:var(--co-spacing-xs)}.co-chip--small.co-chip--icon-right{padding:var(--co-spacing-xs) var(--co-spacing-xs) var(--co-spacing-xs) var(--co-spacing-sm);gap:var(--co-spacing-xs)}.co-chip--small.co-chip--icon-both{padding:var(--co-spacing-xs);gap:var(--co-spacing-xs)}.co-chip--rounded{border-radius:var(--co-border-radius-full)}.co-chip--square{border-radius:var(--co-spacing-sm)}.co-chip__icon-left,.co-chip__icon-right{display:inline-flex;flex-shrink:0;align-items:center}.co-chip--large .co-chip__icon-left,.co-chip--large .co-chip__icon-right{width:16px;height:16px}.co-chip--small .co-chip__icon-left,.co-chip--small .co-chip__icon-right{width:10px;height:10px}.co-chip__remove{display:inline-flex;flex-shrink:0;align-items:center;cursor:pointer;opacity:0.7;transition:opacity 0.1s ease;border:none;background:transparent;padding:0;color:inherit}.co-chip__remove:hover{opacity:1}.co-chip--large .co-chip__remove{width:14px;height:14px}.co-chip--small .co-chip__remove{width:10px;height:10px}::slotted(*){display:inline-flex;width:100%;height:100%}"}},[257,"co-chip",{shape:[1],size:[1],iconMode:[1,"icon-mode"],variant:[1],color:[1],label:[1],iconLeft:[1,"icon-left"],iconRight:[1,"icon-right"],iconWeight:[1,"icon-weight"],removable:[4],clickable:[4],disabled:[4],selected:[1540]}]);function r(){"undefined"!=typeof customElements&&["co-chip","co-icon"].forEach((i=>{switch(i){case"co-chip":customElements.get(c(i))||customElements.define(c(i),t);break;case"co-icon":customElements.get(c(i))||s()}}))}r();export{t as C,r as d}
@@ -1 +0,0 @@
1
- import{t as e,p as r,H as a,c as o,h as t}from"./index.js";import{d as c}from"./p-DPi_U-Kl.js";import{d as i}from"./p-OGpfa9Yd.js";import{d as s}from"./p-MiSJXuBx.js";const d=r(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.coClose=o(this,"coClose",7),this.coOpen=o(this,"coOpen",7),this.coAfterOpen=o(this,"coAfterOpen",7),this.coAfterClose=o(this,"coAfterClose",7),this.open=!1,this.position="right",this.size="md",this.heading="",this.description="",this.icon="",this.closable=!0,this.closeOnOverlay=!0,this.closeOnEscape=!0,this.loading=!1,this.handleOverlayClose=()=>{this.closeOnOverlay&&this.coClose.emit()},this.handleCloseClick=()=>{this.coClose.emit()},this.stopPropagation=e=>{e.stopPropagation()},this.handleTransitionEnd=e=>{"transform"===e.propertyName&&(this.open?this.coAfterOpen.emit():this.coAfterClose.emit())}}onOpenChange(e,r){e&&!r&&this.coOpen.emit()}handleKey(e){this.open&&this.closeOnEscape&&"Escape"===e.key&&this.coClose.emit()}render(){return t("co-overlay",{key:"5382858988db48dfb4e0cb8eef90b04177acdfe2",open:this.open,onCoClose:this.handleOverlayClose},t("aside",{key:"ec2258a955669f165587af08c8bf60bcf6a19c8a",class:{"co-drawer":!0,"co-drawer--open":this.open,[`co-drawer--${this.position}`]:!0,[`co-drawer--${this.size}`]:!0},part:"drawer",role:"dialog","aria-modal":"true","aria-labelledby":"co-drawer-heading",onClick:this.stopPropagation,onTransitionEnd:this.handleTransitionEnd},t("header",{key:"3569d4b2a581eedc42637a769ab0d1e46f818c66",class:"co-drawer__header",part:"header"},t("div",{key:"0e811a18325188b4e3ef4105370a88126ad1d98b",class:"co-drawer__header-content"},t("slot",{key:"00f0249a2683fefc712de952055a229abdff2247",name:"header"},t("div",{key:"8e817ae4ef809410799c66892a22f99f5f2bb053",class:"co-drawer__heading-row"},this.icon&&t("co-icon",{key:"4a1b54a9686c173c28e039cb54ba5d40a9327754",name:this.icon,size:20,class:"co-drawer__icon"}),t("h2",{key:"a09b2e8ffc080f8d73d8b480c32911bc1a36451f",class:"co-drawer__heading",id:"co-drawer-heading"},this.heading)),this.description&&t("p",{key:"bf2c3b8fca185608120387bbccb007317b34d09a",class:"co-drawer__description"},this.description))),this.closable&&t("button",{key:"b1bb85ea967aac2c14e5d86324c222ce44d168ef",class:"co-drawer__close",type:"button","aria-label":"Close",onClick:this.handleCloseClick},t("co-icon",{key:"dd95e54ae9b3152d001b864cceba60cd65561580",name:"x",size:20}))),t("div",{key:"5049854b50e2e1f42faca4fc8c2fca705e4731a5",class:"co-drawer__tabs",part:"tabs"},t("slot",{key:"13f4acf903542f287d7f8047280dfe4c211de1d3",name:"tabs"})),t("div",{key:"208ff3f785ae347a385518ac217eb05927366836",class:"co-drawer__body",part:"body"},t("slot",{key:"938e78913ef13925b67512512a35a79f3f1a87c4"}),t("co-loader",{key:"624228401019ad3b8d3b14907268702c46c996e8",overlay:!0,visible:this.loading,part:"loader"})),t("footer",{key:"283d37c8784f59e77fc7009d98cf5dd83e71ed81",class:"co-drawer__footer",part:"footer"},t("slot",{key:"85dfa2065ddca4b2ac6079aa50f85b0f61fdc8d0",name:"footer"}))))}get el(){return this}static get watchers(){return{open:[{onOpenChange:0}]}}static get style(){return":host{display:contents}.co-drawer{position:fixed;background:var(--co-semantic-surface-page);display:flex;flex-direction:column;font-family:var(--co-font-family-primary);transition:transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);overflow:hidden;will-change:transform;z-index:1}.co-drawer--right{top:0;right:0;margin:6px;height:100vh;height:-webkit-fill-available;border-radius:24px;transform:translateX(calc(100% + 12px));box-shadow:0 4px 24px rgba(0, 0, 0, 0.12)}.co-drawer--right.co-drawer--open{transform:translateX(0)}.co-drawer--left{top:0;left:0;margin:6px;height:100vh;height:-webkit-fill-available;border-radius:24px;transform:translateX(calc(-100% - 12px));box-shadow:0 4px 24px rgba(0, 0, 0, 0.12)}.co-drawer--left.co-drawer--open{transform:translateX(0)}.co-drawer--bottom{bottom:0;left:0;right:0;margin:6px;width:auto;transform:translateY(calc(100% + 12px));box-shadow:0 -4px 24px rgba(0, 0, 0, 0.12);border-radius:24px}.co-drawer--bottom.co-drawer--open{transform:translateY(0)}.co-drawer--right.co-drawer--sm,.co-drawer--left.co-drawer--sm{width:400px;max-width:100vw}.co-drawer--right.co-drawer--md,.co-drawer--left.co-drawer--md{width:520px;max-width:100vw}.co-drawer--right.co-drawer--lg,.co-drawer--left.co-drawer--lg{width:720px;max-width:100vw}.co-drawer--right.co-drawer--xl,.co-drawer--left.co-drawer--xl{width:960px;max-width:100vw}.co-drawer--right.co-drawer--full,.co-drawer--left.co-drawer--full{width:100vw}.co-drawer--bottom.co-drawer--sm{height:40vh}.co-drawer--bottom.co-drawer--md{height:60vh}.co-drawer--bottom.co-drawer--lg{height:80vh}.co-drawer--bottom.co-drawer--xl{height:95vh}.co-drawer--bottom.co-drawer--full{height:100vh}.co-drawer__header{display:flex;align-items:center;gap:var(--co-spacing-md);padding:var(--co-spacing-lg) var(--co-spacing-xl);border-bottom:1px solid var(--co-semantic-border-default);flex-shrink:0}.co-drawer__header-content{flex:1;min-width:0}.co-drawer__heading-row{display:flex;align-items:center;gap:var(--co-spacing-sm, 8px)}.co-drawer__icon{flex-shrink:0;color:var(--co-semantic-text-secondary)}.co-drawer__heading{margin:0;font-size:var(--co-font-size-18);font-weight:600;color:var(--co-semantic-text-default);line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.co-drawer__description{margin:var(--co-spacing-xs) 0 0;font-size:var(--co-font-size-13);font-weight:400;color:var(--co-semantic-text-muted);line-height:1.4}.co-drawer__close{display:flex;align-items:center;justify-content:center;padding:var(--co-spacing-xs);margin:0;border:none;background:transparent;cursor:pointer;color:var(--co-semantic-text-muted);border-radius:var(--co-border-radius-sm);transition:background 0.1s ease;flex-shrink:0}.co-drawer__close:hover{background:var(--co-semantic-surface-hover)}.co-drawer__close:focus-visible{outline:2px solid var(--co-color-primary-azul);outline-offset:2px}.co-drawer__tabs{flex-shrink:0;border-bottom:1px solid var(--co-semantic-border-default)}.co-drawer__tabs:empty{display:none}.co-drawer__body{flex:1;overflow-y:auto;padding:var(--co-spacing-xl);position:relative}.co-drawer__footer{display:flex;justify-content:flex-end;align-items:center;gap:var(--co-spacing-md);padding:var(--co-spacing-lg) var(--co-spacing-xl);border-top:1px solid var(--co-semantic-border-default);flex-shrink:0}.co-drawer__footer:empty{display:none}@media (max-width: 600px){.co-drawer--right,.co-drawer--left{width:100vw !important}}"}},[257,"co-drawer",{open:[1540],position:[513],size:[513],heading:[1],description:[1],icon:[1],closable:[4],closeOnOverlay:[4,"close-on-overlay"],closeOnEscape:[4,"close-on-escape"],loading:[4]},[[4,"keydown","handleKey"]],{open:[{onOpenChange:0}]}]);function n(){"undefined"!=typeof customElements&&["co-drawer","co-icon","co-loader","co-overlay"].forEach((r=>{switch(r){case"co-drawer":customElements.get(e(r))||customElements.define(e(r),d);break;case"co-icon":customElements.get(e(r))||c();break;case"co-loader":customElements.get(e(r))||i();break;case"co-overlay":customElements.get(e(r))||s()}}))}n();export{d as C,n as d}
@@ -1 +0,0 @@
1
- import{t,p as e,H as n,h as s,a as i}from"./index.js";const a=new Map;const o=e(class extends n{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.name="",this.weight="regular",this.size=16,this.svgContent=""}async componentWillLoad(){await this.fetch()}async onPropsChange(){await this.fetch()}async fetch(){this.svgContent=this.name?await async function(t,e){const n=`${e}/${t}`;if(a.has(n))return a.get(n);const s=function(t,e){return"regular"===e?`${t}.svg`:`${t}-${e}.svg`}(t,e),i=`${globalThis.__cobaltIconBasePath||"https://cdn.jsdelivr.net/npm/@phosphor-icons/core@2.1.1/assets"}/${e}/${s}`;try{const t=await fetch(i);if(!t.ok)return"";const e=await t.text();return a.set(n,e),e}catch(t){return""}}(this.name,this.weight):""}render(){return s(i,{key:"0fad4d5acc013ca70b12384477cb5413615c23d2","aria-hidden":"true",style:{display:"inline-flex",width:`${this.size}px`,height:`${this.size}px`,flexShrink:"0"}},s("span",{key:"7e5199c496bb07aade0400b61415260f5fd2ee2a",part:"svg",innerHTML:this.svgContent}))}static get watchers(){return{name:[{onPropsChange:0}],weight:[{onPropsChange:0}]}}static get style(){return":host{display:inline-flex;align-items:center;justify-content:center;color:inherit;line-height:1;flex-shrink:0}span{display:contents}svg{display:block;width:100%;height:100%;fill:currentColor}"}},[1,"co-icon",{name:[1],weight:[1],size:[2],svgContent:[32]},void 0,{name:[{onPropsChange:0}],weight:[{onPropsChange:0}]}]);function r(){"undefined"!=typeof customElements&&["co-icon"].forEach((e=>{"co-icon"===e&&(customElements.get(t(e))||customElements.define(t(e),o))}))}r();export{o as C,r as d}
@@ -1,2 +0,0 @@
1
- /*! @license DOMPurify 3.4.8 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.8/LICENSE */
2
- function t(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}const e=Object.entries,n=Object.setPrototypeOf,r=Object.isFrozen,o=Object.getPrototypeOf,i=Object.getOwnPropertyDescriptor;let a=Object.freeze,l=Object.seal,c=Object.create,s="undefined"!=typeof Reflect&&Reflect,u=s.apply,f=s.construct;a||(a=function(t){return t}),l||(l=function(t){return t}),u||(u=function(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return t.apply(e,r)}),f||(f=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return new t(...n)});const p=j(Array.prototype.forEach),m=j(Array.prototype.lastIndexOf),d=j(Array.prototype.pop),h=j(Array.prototype.push),g=j(Array.prototype.splice),y=Array.isArray,b=j(String.prototype.toLowerCase),w=j(String.prototype.toString),A=j(String.prototype.match),T=j(String.prototype.replace),v=j(String.prototype.indexOf),x=j(String.prototype.trim),S=j(Number.prototype.toString),k=j(Boolean.prototype.toString),O="undefined"==typeof BigInt?null:j(BigInt.prototype.toString),L="undefined"==typeof Symbol?null:j(Symbol.prototype.toString),D=j(Object.prototype.hasOwnProperty),_=j(Object.prototype.toString),E=j(RegExp.prototype.test),R=(z=TypeError,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return f(z,e)});var z;function j(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return u(t,e,r)}}function I(t,e){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:b;if(n&&n(t,null),!y(e))return t;let i=e.length;for(;i--;){let n=e[i];if("string"==typeof n){const t=o(n);t!==n&&(r(e)||(e[i]=t),n=t)}t[n]=!0}return t}function N(t){for(let e=0;e<t.length;e++)D(t,e)||(t[e]=null);return t}function M(n){const r=c(null);for(const l of e(n)){var o=(a=2,function(t){if(Array.isArray(t))return t}(i=l)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e);else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(i,a)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}(i,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());const e=o[0],c=o[1];D(n,e)&&(r[e]=y(c)?N(c):c&&"object"==typeof c&&c.constructor===Object?M(c):c)}var i,a;return r}function F(t,e){for(;null!==t;){const n=i(t,e);if(n){if(n.get)return j(n.get);if("function"==typeof n.value)return j(n.value)}t=o(t)}return function(){return null}}const W=a(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),C=a(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),B=a(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),P=a(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),G=a(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),U=a(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),q=a(["#text"]),Y=a(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),H=a(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),$=a(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),K=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),V=l(/{{[\w\W]*|^[\w\W]*}}/g),X=l(/<%[\w\W]*|^[\w\W]*%>/g),J=l(/\${[\w\W]*/g),Q=l(/^data-[\-\w.\u00B7-\uFFFF]+$/),Z=l(/^aria-[\-\w]+$/),tt=l(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),et=l(/^(?:\w+script|data):/i),nt=l(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),rt=l(/^html$/i),ot=l(/^[a-z][.\w]*(-[.\w]+)+$/i),it=function(){return"undefined"==typeof window?null:window};var at=function t(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:it();const r=e=>t(e);if(r.version="3.4.8",r.removed=[],!n||!n.document||9!==n.document.nodeType||!n.Element)return r.isSupported=!1,r;let o=n.document;const i=o,l=i.currentScript,s=n.HTMLTemplateElement,u=n.Node,f=n.NodeFilter,z=n.DOMParser,j=n.trustedTypes,N=n.Element.prototype,at=F(N,"cloneNode"),lt=F(N,"remove"),ct=F(N,"nextSibling"),st=F(N,"childNodes"),ut=F(N,"parentNode"),ft=F(N,"shadowRoot"),pt=F(N,"attributes"),mt=u&&u.prototype?F(u.prototype,"nodeType"):null,dt=u&&u.prototype?F(u.prototype,"nodeName"):null;if("function"==typeof s){const t=o.createElement("template");t.content&&t.content.ownerDocument&&(o=t.content.ownerDocument)}let ht,gt="",yt=0;const bt=function(t){if(yt>0)throw R('The configured TRUSTED_TYPES_POLICY.createHTML must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose createHTML wraps DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.');yt++;try{return ht.createHTML(t)}finally{yt--}},wt=o.implementation,At=o.createNodeIterator,Tt=o.createDocumentFragment,vt=o.getElementsByTagName,xt=i.importNode;let St={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};r.isSupported="function"==typeof e&&"function"==typeof ut&&wt&&void 0!==wt.createHTMLDocument;const kt=V,Ot=X,Lt=J,Dt=Q,_t=Z,Et=et,Rt=nt,zt=ot;let jt=tt,It=null;const Nt=I({},[...W,...C,...B,...G,...q]);let Mt=null;const Ft=I({},[...Y,...H,...$,...K]);let Wt=Object.seal(c(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ct=null,Bt=null;const Pt=Object.seal(c(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Gt=!0,Ut=!0,qt=!1,Yt=!0,Ht=!1,$t=!0,Kt=!1,Vt=!1,Xt=!1,Jt=!1,Qt=!1,Zt=!1,te=!0,ee=!1;const ne="user-content-";let re=!0,oe=!1,ie={},ae=null;const le=I({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ce=null;const se=I({},["audio","video","img","source","image","track"]);let ue=null;const fe=I({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),pe="http://www.w3.org/1998/Math/MathML",me="http://www.w3.org/2000/svg",de="http://www.w3.org/1999/xhtml";let he=de,ge=!1,ye=null;const be=I({},[pe,me,de],w);let we=I({},["mi","mo","mn","ms","mtext"]),Ae=I({},["annotation-xml"]);const Te=I({},["title","style","font","a","script"]);let ve=null;const xe=["application/xhtml+xml","text/html"];let Se=null,ke=null;const Oe=o.createElement("form"),Le=function(t){return t instanceof RegExp||t instanceof Function},De=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(ke&&ke===t)return;t&&"object"==typeof t||(t={}),t=M(t),ve=-1===xe.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,Se="application/xhtml+xml"===ve?w:b,It=D(t,"ALLOWED_TAGS")&&y(t.ALLOWED_TAGS)?I({},t.ALLOWED_TAGS,Se):Nt,Mt=D(t,"ALLOWED_ATTR")&&y(t.ALLOWED_ATTR)?I({},t.ALLOWED_ATTR,Se):Ft,ye=D(t,"ALLOWED_NAMESPACES")&&y(t.ALLOWED_NAMESPACES)?I({},t.ALLOWED_NAMESPACES,w):be,ue=D(t,"ADD_URI_SAFE_ATTR")&&y(t.ADD_URI_SAFE_ATTR)?I(M(fe),t.ADD_URI_SAFE_ATTR,Se):fe,ce=D(t,"ADD_DATA_URI_TAGS")&&y(t.ADD_DATA_URI_TAGS)?I(M(se),t.ADD_DATA_URI_TAGS,Se):se,ae=D(t,"FORBID_CONTENTS")&&y(t.FORBID_CONTENTS)?I({},t.FORBID_CONTENTS,Se):le,Ct=D(t,"FORBID_TAGS")&&y(t.FORBID_TAGS)?I({},t.FORBID_TAGS,Se):M({}),Bt=D(t,"FORBID_ATTR")&&y(t.FORBID_ATTR)?I({},t.FORBID_ATTR,Se):M({}),ie=!!D(t,"USE_PROFILES")&&(t.USE_PROFILES&&"object"==typeof t.USE_PROFILES?M(t.USE_PROFILES):t.USE_PROFILES),Gt=!1!==t.ALLOW_ARIA_ATTR,Ut=!1!==t.ALLOW_DATA_ATTR,qt=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Yt=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Ht=t.SAFE_FOR_TEMPLATES||!1,$t=!1!==t.SAFE_FOR_XML,Kt=t.WHOLE_DOCUMENT||!1,Jt=t.RETURN_DOM||!1,Qt=t.RETURN_DOM_FRAGMENT||!1,Zt=t.RETURN_TRUSTED_TYPE||!1,Xt=t.FORCE_BODY||!1,te=!1!==t.SANITIZE_DOM,ee=t.SANITIZE_NAMED_PROPS||!1,re=!1!==t.KEEP_CONTENT,oe=t.IN_PLACE||!1,jt=function(t){try{return E(t,""),!0}catch(t){return!1}}(t.ALLOWED_URI_REGEXP)?t.ALLOWED_URI_REGEXP:tt,he="string"==typeof t.NAMESPACE?t.NAMESPACE:de,we=D(t,"MATHML_TEXT_INTEGRATION_POINTS")&&t.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof t.MATHML_TEXT_INTEGRATION_POINTS?M(t.MATHML_TEXT_INTEGRATION_POINTS):I({},["mi","mo","mn","ms","mtext"]),Ae=D(t,"HTML_INTEGRATION_POINTS")&&t.HTML_INTEGRATION_POINTS&&"object"==typeof t.HTML_INTEGRATION_POINTS?M(t.HTML_INTEGRATION_POINTS):I({},["annotation-xml"]);const e=D(t,"CUSTOM_ELEMENT_HANDLING")&&t.CUSTOM_ELEMENT_HANDLING&&"object"==typeof t.CUSTOM_ELEMENT_HANDLING?M(t.CUSTOM_ELEMENT_HANDLING):c(null);if(Wt=c(null),D(e,"tagNameCheck")&&Le(e.tagNameCheck)&&(Wt.tagNameCheck=e.tagNameCheck),D(e,"attributeNameCheck")&&Le(e.attributeNameCheck)&&(Wt.attributeNameCheck=e.attributeNameCheck),D(e,"allowCustomizedBuiltInElements")&&"boolean"==typeof e.allowCustomizedBuiltInElements&&(Wt.allowCustomizedBuiltInElements=e.allowCustomizedBuiltInElements),Ht&&(Ut=!1),Qt&&(Jt=!0),ie&&(It=I({},q),Mt=c(null),!0===ie.html&&(I(It,W),I(Mt,Y)),!0===ie.svg&&(I(It,C),I(Mt,H),I(Mt,K)),!0===ie.svgFilters&&(I(It,B),I(Mt,H),I(Mt,K)),!0===ie.mathMl&&(I(It,G),I(Mt,$),I(Mt,K))),Pt.tagCheck=null,Pt.attributeCheck=null,D(t,"ADD_TAGS")&&("function"==typeof t.ADD_TAGS?Pt.tagCheck=t.ADD_TAGS:y(t.ADD_TAGS)&&(It===Nt&&(It=M(It)),I(It,t.ADD_TAGS,Se))),D(t,"ADD_ATTR")&&("function"==typeof t.ADD_ATTR?Pt.attributeCheck=t.ADD_ATTR:y(t.ADD_ATTR)&&(Mt===Ft&&(Mt=M(Mt)),I(Mt,t.ADD_ATTR,Se))),D(t,"ADD_URI_SAFE_ATTR")&&y(t.ADD_URI_SAFE_ATTR)&&I(ue,t.ADD_URI_SAFE_ATTR,Se),D(t,"FORBID_CONTENTS")&&y(t.FORBID_CONTENTS)&&(ae===le&&(ae=M(ae)),I(ae,t.FORBID_CONTENTS,Se)),D(t,"ADD_FORBID_CONTENTS")&&y(t.ADD_FORBID_CONTENTS)&&(ae===le&&(ae=M(ae)),I(ae,t.ADD_FORBID_CONTENTS,Se)),re&&(It["#text"]=!0),Kt&&I(It,["html","head","body"]),It.table&&(I(It,["tbody"]),delete Ct.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw R('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw R('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const e=ht;ht=t.TRUSTED_TYPES_POLICY;try{gt=bt("")}catch(t){throw ht=e,t}}else void 0===ht&&null!==t.TRUSTED_TYPES_POLICY&&(ht=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";e&&e.hasAttribute(r)&&(n=e.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return t.createPolicy(o,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(j,l)),ht&&"string"==typeof gt&&(gt=bt(""));(St.uponSanitizeElement.length>0||St.uponSanitizeAttribute.length>0)&&It===Nt&&(It=M(It)),St.uponSanitizeAttribute.length>0&&Mt===Ft&&(Mt=M(Mt)),a&&a(t),ke=t},_e=I({},[...C,...B,...P]),Ee=I({},[...G,...U]),Re=function(t){h(r.removed,{element:t});try{ut(t).removeChild(t)}catch(e){lt(t)}},ze=function(t,e){try{h(r.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){h(r.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t)if(Jt||Qt)try{Re(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},je=function(t){let e=null,n=null;if(Xt)t="<remove></remove>"+t;else{const e=A(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===ve&&he===de&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const r=ht?bt(t):t;if(he===de)try{e=(new z).parseFromString(r,ve)}catch(t){}if(!e||!e.documentElement){e=wt.createDocument(he,"template",null);try{e.documentElement.innerHTML=ge?gt:r}catch(t){}}const i=e.body||e.documentElement;return t&&n&&i.insertBefore(o.createTextNode(n),i.childNodes[0]||null),he===de?vt.call(e,Kt?"html":"body")[0]:Kt?e.documentElement:i},Ie=function(t){return At.call(t.ownerDocument||t,t,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT|f.SHOW_PROCESSING_INSTRUCTION|f.SHOW_CDATA_SECTION,null)},Ne=function(t){var e,n;t.normalize();const r=At.call(t.ownerDocument||t,t,f.SHOW_TEXT|f.SHOW_COMMENT|f.SHOW_CDATA_SECTION|f.SHOW_PROCESSING_INSTRUCTION,null);let o=r.nextNode();for(;o;){let t=o.data;p([kt,Ot,Lt],(e=>{t=T(t,e," ")})),o.data=t,o=r.nextNode()}const i=null!==(e=null===(n=t.querySelectorAll)||void 0===n?void 0:n.call(t,"template"))&&void 0!==e?e:[];p(Array.from(i),(t=>{Fe(t.content)&&Ne(t.content)}))},Me=function(t){const e=dt?dt(t):null;return"string"==typeof e&&"form"===Se(e)&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||t.attributes!==pt(t)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes||t.nodeType!==mt(t)||t.childNodes!==st(t))},Fe=function(t){if(!mt||"object"!=typeof t||null===t)return!1;try{return 11===mt(t)}catch(t){return!1}},We=function(t){if(!mt||"object"!=typeof t||null===t)return!1;try{return"number"==typeof mt(t)}catch(t){return!1}};function Ce(t,e,n){p(t,(t=>{t.call(r,e,n,ke)}))}const Be=function(t){let e=null;if(Ce(St.beforeSanitizeElements,t,null),Me(t))return Re(t),!0;const n=Se(dt?dt(t):t.nodeName);if(Ce(St.uponSanitizeElement,t,{tagName:n,allowedTags:It}),$t&&t.hasChildNodes()&&!We(t.firstElementChild)&&E(/<[/\w!]/g,t.innerHTML)&&E(/<[/\w!]/g,t.textContent))return Re(t),!0;if($t&&t.namespaceURI===de&&"style"===n&&We(t.firstElementChild))return Re(t),!0;if(7===t.nodeType)return Re(t),!0;if($t&&8===t.nodeType&&E(/<[/\w]/g,t.data))return Re(t),!0;if(Ct[n]||!(Pt.tagCheck instanceof Function&&Pt.tagCheck(n))&&!It[n]){if(!Ct[n]&&Ue(n)){if(Wt.tagNameCheck instanceof RegExp&&E(Wt.tagNameCheck,n))return!1;if(Wt.tagNameCheck instanceof Function&&Wt.tagNameCheck(n))return!1}if(re&&!ae[n]){const e=ut(t),n=st(t);if(n&&e)for(let r=n.length-1;r>=0;--r){const o=at(n[r],!0);e.insertBefore(o,ct(t))}}return Re(t),!0}return 1===(mt?mt(t):t.nodeType)&&!function(t){let e=ut(t);e&&e.tagName||(e={namespaceURI:he,tagName:"template"});const n=b(t.tagName),r=b(e.tagName);return!!ye[t.namespaceURI]&&(t.namespaceURI===me?e.namespaceURI===de?"svg"===n:e.namespaceURI===pe?"svg"===n&&("annotation-xml"===r||we[r]):Boolean(_e[n]):t.namespaceURI===pe?e.namespaceURI===de?"math"===n:e.namespaceURI===me?"math"===n&&Ae[r]:Boolean(Ee[n]):t.namespaceURI===de?!(e.namespaceURI===me&&!Ae[r])&&!(e.namespaceURI===pe&&!we[r])&&!Ee[n]&&(Te[n]||!_e[n]):!("application/xhtml+xml"!==ve||!ye[t.namespaceURI]))}(t)||("noscript"===n||"noembed"===n||"noframes"===n)&&E(/<\/no(script|embed|frames)/i,t.innerHTML)?(Re(t),!0):(Ht&&3===t.nodeType&&(e=t.textContent,p([kt,Ot,Lt],(t=>{e=T(e,t," ")})),t.textContent!==e&&(h(r.removed,{element:t.cloneNode()}),t.textContent=e)),Ce(St.afterSanitizeElements,t,null),!1)},Pe=function(t,e,n){if(Bt[e])return!1;if(te&&("id"===e||"name"===e)&&(n in o||n in Oe))return!1;const r=Mt[e]||Pt.attributeCheck instanceof Function&&Pt.attributeCheck(e,t);if(Ut&&!Bt[e]&&E(Dt,e));else if(Gt&&E(_t,e));else if(!r||Bt[e]){if(!(Ue(t)&&(Wt.tagNameCheck instanceof RegExp&&E(Wt.tagNameCheck,t)||Wt.tagNameCheck instanceof Function&&Wt.tagNameCheck(t))&&(Wt.attributeNameCheck instanceof RegExp&&E(Wt.attributeNameCheck,e)||Wt.attributeNameCheck instanceof Function&&Wt.attributeNameCheck(e,t))||"is"===e&&Wt.allowCustomizedBuiltInElements&&(Wt.tagNameCheck instanceof RegExp&&E(Wt.tagNameCheck,n)||Wt.tagNameCheck instanceof Function&&Wt.tagNameCheck(n))))return!1}else if(ue[e]);else if(E(jt,T(n,Rt,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==v(n,"data:")||!ce[t])if(qt&&!E(Et,T(n,Rt,"")));else if(n)return!1;return!0},Ge=I({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Ue=function(t){return!Ge[b(t)]&&E(zt,t)},qe=function(t){Ce(St.beforeSanitizeAttributes,t,null);const e=t.attributes;if(!e||Me(t))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Mt,forceKeepAttr:void 0};let o=e.length;for(;o--;){const i=e[o],a=i.name,l=i.namespaceURI,c=i.value,s=Se(a),u=c;let f="value"===a?u:x(u);if(n.attrName=s,n.attrValue=f,n.keepAttr=!0,n.forceKeepAttr=void 0,Ce(St.uponSanitizeAttribute,t,n),f=n.attrValue,!ee||"id"!==s&&"name"!==s||0===v(f,ne)||(ze(a,t),f=ne+f),$t&&E(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,f)){ze(a,t);continue}if("attributename"===s&&A(f,"href")){ze(a,t);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr){ze(a,t);continue}if(!Yt&&E(/\/>/i,f)){ze(a,t);continue}Ht&&p([kt,Ot,Lt],(t=>{f=T(f,t," ")}));const m=Se(t.nodeName);if(Pe(m,s,f)){if(ht&&"object"==typeof j&&"function"==typeof j.getAttributeType)if(l);else switch(j.getAttributeType(m,s)){case"TrustedHTML":f=bt(f);break;case"TrustedScriptURL":f=ht.createScriptURL(f)}if(f!==u)try{l?t.setAttributeNS(l,a,f):t.setAttribute(a,f),Me(t)?Re(t):d(r.removed)}catch(e){ze(a,t)}}else ze(a,t)}Ce(St.afterSanitizeAttributes,t,null)},Ye=function(t){let e=null;const n=Ie(t);for(Ce(St.beforeSanitizeShadowDOM,t,null);e=n.nextNode();)if(Ce(St.uponSanitizeShadowNode,e,null),Be(e),qe(e),Fe(e.content)&&Ye(e.content),1===(mt?mt(e):e.nodeType)){const t=ft?ft(e):e.shadowRoot;Fe(t)&&(He(t),Ye(t))}Ce(St.afterSanitizeShadowDOM,t,null)},He=function(t){const e=mt?mt(t):t.nodeType;if(1===e){const e=ft?ft(t):t.shadowRoot;Fe(e)&&(He(e),Ye(e))}const n=st?st(t):t.childNodes;if(!n)return;const r=[];p(n,(t=>{h(r,t)}));for(const t of r)He(t);if(1===e){const e=dt?dt(t):null;if("string"==typeof e&&"template"===Se(e)){const e=t.content;Fe(e)&&He(e)}}};return r.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,o=null,a=null,l=null;if(ge=!t,ge&&(t="\x3c!--\x3e"),"string"!=typeof t&&!We(t)&&"string"!=typeof(t=function(t){switch(typeof t){case"string":return t;case"number":return S(t);case"boolean":return k(t);case"bigint":return O?O(t):"0";case"symbol":return L?L(t):"Symbol()";case"undefined":default:return _(t);case"function":case"object":{if(null===t)return _(t);const e=t,n=F(e,"toString");if("function"==typeof n){const t=n(e);return"string"==typeof t?t:_(t)}return _(t)}}}(t)))throw R("dirty is not a string, aborting");if(!r.isSupported)return t;if(Vt||De(e),r.removed=[],"string"==typeof t&&(oe=!1),oe){const e=dt?dt(t):t.nodeName;if("string"==typeof e){const t=Se(e);if(!It[t]||Ct[t])throw R("root node is forbidden and cannot be sanitized in-place")}if(Me(t))throw R("root node is clobbered and cannot be sanitized in-place");He(t)}else if(We(t))n=je("\x3c!----\x3e"),o=n.ownerDocument.importNode(t,!0),1===o.nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?n=o:n.appendChild(o),He(o);else{if(!Jt&&!Ht&&!Kt&&-1===t.indexOf("<"))return ht&&Zt?bt(t):t;if(n=je(t),!n)return Jt?null:Zt?gt:""}n&&Xt&&Re(n.firstChild);const c=Ie(oe?t:n);for(;a=c.nextNode();)Be(a),qe(a),Fe(a.content)&&Ye(a.content);if(oe)return Ht&&Ne(t),t;if(Jt){if(Ht&&Ne(n),Qt)for(l=Tt.call(n.ownerDocument);n.firstChild;)l.appendChild(n.firstChild);else l=n;return(Mt.shadowroot||Mt.shadowrootmode)&&(l=xt.call(i,l,!0)),l}let s=Kt?n.outerHTML:n.innerHTML;return Kt&&It["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&E(rt,n.ownerDocument.doctype.name)&&(s="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+s),Ht&&p([kt,Ot,Lt],(t=>{s=T(s,t," ")})),ht&&Zt?bt(s):s},r.setConfig=function(){De(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Vt=!0},r.clearConfig=function(){ke=null,Vt=!1},r.isValidAttribute=function(t,e,n){ke||De({});const r=Se(t),o=Se(e);return Pe(r,o,n)},r.addHook=function(t,e){"function"==typeof e&&h(St[t],e)},r.removeHook=function(t,e){if(void 0!==e){const n=m(St[t],e);return-1===n?void 0:g(St[t],n,1)[0]}return d(St[t])},r.removeHooks=function(t){St[t]=[]},r.removeAllHooks=function(){St={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},r}();const lt=["p","br","strong","em","a","span"],ct=["href","target","rel","data-mention-id","data-mention-label"],st={comment:{ALLOWED_TAGS:[...lt],ALLOWED_ATTR:[...ct],ALLOW_DATA_ATTR:!1},task:{ALLOWED_TAGS:[...lt,"u","s","code","ul","ol","li","blockquote"],ALLOWED_ATTR:[...ct],ALLOW_DATA_ATTR:!1},email:{ALLOWED_TAGS:[...lt,"u","s","code","ul","ol","li","blockquote","h2","h3","div","img"],ALLOWED_ATTR:[...ct,"style","data-variable","src","alt","width","height"],ALLOW_DATA_ATTR:!1},document:{ALLOWED_TAGS:[...lt,"u","s","code","ul","ol","li","blockquote","h1","h2","h3","h4","hr","div","mark","img","table","thead","tbody","tr","th","td"],ALLOWED_ATTR:[...ct,"style","data-variable","colspan","rowspan","src","alt","width","height"],ALLOW_DATA_ATTR:!1}},ut=["script","iframe","object","embed","form","input","textarea","style"],ft=["onerror","onload","onclick"],pt=new Set(["color","background-color","text-align"]);let mt=!1;function dt(t,e="task",n){if(!t)return"";mt||(mt=!0,at.addHook("uponSanitizeAttribute",((t,e)=>{if("style"!==e.attrName)return;const n=e.attrValue.split(";").map((t=>t.trim())).filter((t=>{const e=t.indexOf(":");if(e<=0)return!1;const n=t.slice(0,e).trim().toLowerCase();return pt.has(n)&&!/url\s*\(|expression\s*\(/i.test(t)}));e.attrValue=n.join("; "),e.attrValue||(e.keepAttr=!1)})));const r=function(t,e){const n=st[t]??st.task;if(!e)return n;const r=new Set(n.ALLOWED_TAGS),o=new Set(n.ALLOWED_ATTR);return e.image&&(r.add("img"),["src","alt","width","height"].forEach((t=>o.add(t)))),e.variables&&o.add("data-variable"),{...n,ALLOWED_TAGS:[...r],ALLOWED_ATTR:[...o]}}(e,n);return at.sanitize(t,{ALLOWED_TAGS:r.ALLOWED_TAGS,ALLOWED_ATTR:r.ALLOWED_ATTR,ALLOW_DATA_ATTR:r.ALLOW_DATA_ATTR??!1,FORBID_TAGS:ut,FORBID_ATTR:ft,ADD_ATTR:["target"]})}export{st as S,dt as s}
@@ -1 +0,0 @@
1
- import{t as e,p as t,H as o,c as s,h as a}from"./index.js";const n=t(class extends o{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.coClose=s(this,"coClose",7),this.open=!1,this.handleClick=()=>{this.coClose.emit()}}render(){return a("div",{key:"65b20d04a50324ef37a5a9f0ff726ead15d0d757",class:{"co-overlay":!0,"co-overlay--open":this.open},part:"overlay",onClick:this.handleClick},a("slot",{key:"64d6abebb8d812d4c638b14608ba2982aae43a19"}))}static get style(){return":host{display:contents}.co-overlay{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;background:rgba(0, 0, 0, 0.4);opacity:0;pointer-events:none;transition:opacity 0.2s ease}.co-overlay--open{opacity:1;pointer-events:auto}"}},[257,"co-overlay",{open:[1540]}]);function i(){"undefined"!=typeof customElements&&["co-overlay"].forEach((t=>{"co-overlay"===t&&(customElements.get(e(t))||customElements.define(e(t),n))}))}i();export{n as C,i as d}
@@ -1 +0,0 @@
1
- import{t,p as s,H as a,h as i}from"./index.js";import{d as r}from"./p-DPi_U-Kl.js";function e(t){const s=function(t){if(!t||"string"!=typeof t)return null;const s=t.replace("#","");return 3===s.length?{r:parseInt(s[0]+s[0],16),g:parseInt(s[1]+s[1],16),b:parseInt(s[2]+s[2],16)}:6===s.length?{r:parseInt(s.slice(0,2),16),g:parseInt(s.slice(2,4),16),b:parseInt(s.slice(4,6),16)}:null}(t);if(!s)return 0;const[a,i,r]=[s.r/255,s.g/255,s.b/255].map((t=>t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)));return.2126*a+.7152*i+.0722*r}const o={xl:80,lg:64,md:56,sm:48,xs:32,xxs:24},c={xl:32,lg:28,md:24,sm:20,xs:16,xxs:12},n={xl:"var(--co-font-size-26)",lg:"var(--co-font-size-22)",md:"var(--co-font-size-18)",sm:"var(--co-font-size-16)",xs:"var(--co-font-size-12)",xxs:"var(--co-font-size-10)"},l=s(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.type="text",this.size="md",this.icon="user",this.iconWeight="regular",this.shape="circle",this.imgFailed=!1,this.handleImgError=()=>{this.imgFailed=!0}}render(){var t,s,a;const r=null!==(t=o[this.size])&&void 0!==t?t:56,l=null!==(s=c[this.size])&&void 0!==s?s:24,h=null!==(a=n[this.size])&&void 0!==a?a:"var(--co-font-size-18)",f="image"===this.type&&this.src&&!this.imgFailed;return i("div",{key:"8d537f60b1cefc91c98b0bfd5bdbfc9af8415868",class:{"co-avatar":!0,[`co-avatar--${this.size}`]:!0,[`co-avatar--${this.type}`]:!0,"co-avatar--square":"square"===this.shape,"co-avatar--light":!!this.color&&(d=this.color,e(d)>.4)},style:Object.assign({width:`${r}px`,height:`${r}px`,fontSize:h},this.color?{background:this.color}:{}),part:"avatar",role:"img","aria-label":"text"===this.type?this.text:this.icon},f?i("img",{class:"co-avatar__img",src:this.src,alt:this.text||"",onError:this.handleImgError}):"icon"===this.type?i("co-icon",{name:this.icon,weight:this.iconWeight,size:l}):i("span",{class:"co-avatar__text"},this.text));var d}static get style(){return":host{display:inline-flex}.co-avatar{display:inline-flex;align-items:center;justify-content:center;border-radius:var(--co-border-radius-full);background:var(--co-semantic-surface-primary);color:var(--co-semantic-on-primary);font-family:var(--co-font-family-primary);font-weight:600;line-height:1;letter-spacing:var(--co-font-letter-spacing-body);overflow:hidden;flex-shrink:0;user-select:none;-webkit-font-smoothing:antialiased}.co-avatar__text{text-transform:uppercase}.co-avatar__img{width:100%;height:100%;object-fit:cover;display:block}.co-avatar--square{border-radius:var(--co-border-radius-xs)}.co-avatar--light{color:rgba(0, 0, 0, 0.87)}"}},[1,"co-avatar",{type:[1],size:[1],text:[1],src:[1],icon:[1],iconWeight:[1,"icon-weight"],shape:[1],color:[1],imgFailed:[32]}]);function h(){"undefined"!=typeof customElements&&["co-avatar","co-icon"].forEach((s=>{switch(s){case"co-avatar":customElements.get(t(s))||customElements.define(t(s),l);break;case"co-icon":customElements.get(t(s))||r()}}))}h();export{l as C,h as d}
@@ -1 +0,0 @@
1
- import{t as e,p as c,H as o,c as t,h as i}from"./index.js";const r=c(class extends o{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.coChange=t(this,"coChange",7),this.checked=!1,this.indeterminate=!1,this.size="small",this.disabled=!1,this.value="",this.handleClick=()=>{this.disabled||(this.indeterminate?(this.indeterminate=!1,this.checked=!1,this.coChange.emit(!1)):(this.checked=!this.checked,this.coChange.emit(this.checked)))}}render(){return i("div",{key:"f10bb5afb8820e35d6ba5ecdaccaf101e0b4b2ed",class:{"co-checkbox-row":!0,"co-checkbox-row--disabled":this.disabled},onClick:this.handleClick},i("span",{key:"191a4c3ce30ca393fe229626d0cb1166d18ba4ae",role:"checkbox","aria-checked":this.indeterminate?"mixed":String(this.checked),"aria-label":this.label||"",class:{"co-checkbox":!0,[`co-checkbox--${this.size}`]:!0,"co-checkbox--checked":this.checked&&!this.indeterminate,"co-checkbox--indeterminate":this.indeterminate,"co-checkbox--disabled":this.disabled},part:"box"}),this.label&&i("span",{key:"e4d3641d5f6d2b6ea78f801d50cc62a21d566478",class:"co-checkbox__label",part:"label"},this.label))}static get style(){return":host{display:inline-flex;font-family:var(--co-font-family-primary);font-size:var(--co-font-size-14);letter-spacing:var(--co-font-letter-spacing-body);line-height:1}.co-checkbox-row{display:flex;align-items:center;gap:var(--co-spacing-sm2);cursor:pointer}.co-checkbox-row--disabled{cursor:not-allowed}.co-checkbox__label{color:var(--co-semantic-text-secondary);font-size:var(--co-font-size-14);font-weight:400;line-height:1;white-space:nowrap;user-select:none}.co-checkbox-row--disabled .co-checkbox__label{color:var(--co-semantic-text-disabled)}.co-checkbox{position:relative;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;border:none;outline:none;padding:0;overflow:hidden;flex-shrink:0;box-sizing:border-box;transition:background 0.15s ease, border-color 0.15s ease}.co-checkbox--small{width:16px;height:16px;border-radius:var(--co-border-radius-xxs);}.co-checkbox--large{width:24px;height:24px;border-radius:var(--co-spacing-sm);}.co-checkbox:not(.co-checkbox--checked){background:transparent;border:1px solid var(--co-semantic-border-subtle)}.co-checkbox--checked{background:var(--co-semantic-surface-primary);border:none}.co-checkbox--checked::after{content:'';display:block;box-sizing:border-box;border-style:solid;border-color:var(--co-semantic-on-primary);border-width:0 0 1.5px 1.5px;transform:rotate(-45deg) translateY(-15%)}.co-checkbox--small.co-checkbox--checked::after{width:7px;height:4px}.co-checkbox--large.co-checkbox--checked::after{width:10px;height:6px}.co-checkbox--indeterminate{background:var(--co-semantic-surface-primary);border:none}.co-checkbox--indeterminate::after{content:'';display:block;background:var(--co-semantic-on-primary);border-radius:1px}.co-checkbox--small.co-checkbox--indeterminate::after{width:8px;height:1.5px}.co-checkbox--large.co-checkbox--indeterminate::after{width:12px;height:2px}.co-checkbox--disabled{opacity:0.4;cursor:not-allowed;pointer-events:none}"}},[1,"co-checkbox",{checked:[1540],indeterminate:[1540],size:[1],disabled:[4],label:[1],value:[1]}]);function a(){"undefined"!=typeof customElements&&["co-checkbox"].forEach((c=>{"co-checkbox"===c&&(customElements.get(e(c))||customElements.define(e(c),r))}))}a();export{r as C,a as d}
@@ -1 +0,0 @@
1
- import{t as e,p as i,H as t,c as a,h as d}from"./index.js";import{R as s}from"./p-CWneqh4n.js";import{g as o}from"./p-C1DCLOEl.js";import{d as l}from"./p-DPi_U-Kl.js";import{f as r,l as c,e as n}from"./p-CyYF8IJE.js";const f=i(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.coInput=a(this,"coInput",7),this.coChange=a(this,"coChange",7),this.coInvalid=a(this,"coInvalid",7),this.coClear=a(this,"coClear",7),this.coFocus=a(this,"coFocus",7),this.coBlur=a(this,"coBlur",7),this.value=null,this.size="md",this.locale="es-CO",this.displayFormat="d MMM yyyy",this.disabled=!1,this.readonly=!1,this.required=!1,this.clearable=!0,this.invalid=!1,this.layout="vertical",this.draft="",this.internalInvalid=!1,this.hasFocus=!1,this.handleInput=e=>{this.draft=e.target.value,this.internalInvalid=!1,this.coInput.emit(this.draft)},this.handleFocus=()=>{this.hasFocus=!0,this.coFocus.emit()},this.handleBlur=()=>{this.hasFocus=!1,this.commit(),this.coBlur.emit()},this.handleKeyDown=e=>{"Enter"===e.key&&(this.commit()||(e.preventDefault(),e.stopPropagation()))},this.handleClear=()=>{var e;this.draft="",this.internalInvalid=!1,null!==this.value&&(this.value=null,this.coChange.emit(null)),this.coClear.emit(),null===(e=this.inputEl)||void 0===e||e.focus()}}componentWillLoad(){this.draft=r(this.value,this.displayFormat,this.locale)}onValueChange(){this.hasFocus||(this.draft=r(this.value,this.displayFormat,this.locale),this.internalInvalid=!1)}async focusInput(){var e;null===(e=this.inputEl)||void 0===e||e.focus()}get order(){const e=this.displayFormat.toLowerCase();return e.startsWith("y")?"ymd":e.startsWith("m")?"mdy":"dmy"}get isInvalid(){return this.invalid||this.internalInvalid}get hasValue(){return""!==this.draft.trim()}commit(){const e=c(this.draft,{order:this.order,locale:this.locale});if("empty"===e.status)return this.internalInvalid=!1,null!==this.value&&(this.value=null,this.coChange.emit(null)),!0;if("invalid"===e.status||null===e.value)return this.internalInvalid=!0,this.coInvalid.emit({raw:this.draft}),!1;const i=e.value;return n(i,{min:this.min,max:this.max,disabledDates:h(this.disabledDates),disabledDaysOfWeek:p(this.disabledDaysOfWeek)})?(this.internalInvalid=!0,this.coInvalid.emit({raw:this.draft}),!1):(this.internalInvalid=!1,this.draft=r(i,this.displayFormat,this.locale),this.value!==i&&(this.value=i,this.coChange.emit(i)),!0)}render(){var e,i;const t=o(this.locale),a=this.clearable&&this.hasValue&&!this.disabled&&!this.readonly,l=this.placeholder||t.setDate,r=this.isInvalid?this.errorMessage:this.helperText;return d("div",{key:"bd42272c21a560d339158f2b82edd0cb61623e31",class:{"co-date-field":!0,"co-date-field--disabled":this.disabled,"co-date-field--focused":this.hasFocus,"co-date-field--filled":this.hasValue,"co-date-field--invalid":this.isInvalid,[`co-date-field--${this.size}`]:!0},part:"wrapper"},this.label&&d("div",{key:"210bac89442729649bf59f14eeecb4d3a1d53855",class:"co-date-field__labels"},d("label",{key:"79a151b05d97b47cec8461c3bd32d0838d9e2d66",class:"co-date-field__label",part:"label"},this.label,d(s,{key:"75a513ad61d0801863d2c01a1f5a2da2023e78d1",required:this.required}))),d("div",{key:"ebe1983e55ef1a33f17faa95609ee076f957fcdb",class:"co-date-field__field-row"},d("div",{key:"b420fa05fbe6a9ea89f02284c52a0e3686cdbaaa",class:"co-date-field__field",part:"field"},d("co-icon",{key:"19f698a0798c1a32497a1d427ecbf8462027d400",name:"calendar",size:16,class:"co-date-field__icon"}),d("div",{key:"4aafe0476089a55f1defb4384101442bbc48fdf0",class:"co-date-field__input-wrapper"},d("input",{key:"7170645098dfa8f08b7fad8f65d590cb22c098da",ref:e=>this.inputEl=e,class:"co-date-field__native",type:"text",inputMode:"numeric",autocomplete:"off",value:this.draft,placeholder:l,disabled:this.disabled,readOnly:this.readonly,required:this.required,"aria-invalid":this.isInvalid?"true":"false","aria-label":this.label?void 0:t.dateLabel,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,part:"input"})),this.clearable&&d("button",{key:"53bd2c0e74a031f5d351617fb7f12d7ed21e8269",class:{"co-date-field__clear":!0,"co-date-field__clear--hidden":!a},type:"button",tabIndex:-1,onMouseDown:e=>e.preventDefault(),onClick:this.handleClear,"aria-label":null!==(e=this.clearLabel)&&void 0!==e?e:t.clearDate,part:"clear"},d("co-icon",{key:"28dc6e38810c755d34fcbab2252f011999f0b4d3",name:"x-circle",size:16,weight:"fill"})))),this.name&&d("input",{key:"58146749042da81c9a2e0f71edd082fbf478297f",type:"hidden",name:this.name,value:null!==(i=this.value)&&void 0!==i?i:""}),r&&d("div",{key:"b1d13979e2b54558950e15bc88f690888ca9345c",class:{"co-date-field__helper":!0,"co-date-field__helper--error":this.isInvalid},part:"helper"},this.isInvalid&&d("co-icon",{key:"d4a8a63210d503600f5c268e4e8b920c81aca8d1",name:"warning-circle",size:14,class:"co-date-field__helper-icon"}),d("span",{key:"6fc66017a9f1bedcb0e0e554643d504683860fbe",class:"co-date-field__helper-text"},r)))}get el(){return this}static get watchers(){return{value:[{onValueChange:0}]}}static get style(){return":host{display:block;font-family:var(--co-font-family-primary);font-size:var(--co-font-size-14);letter-spacing:var(--co-font-letter-spacing-body);line-height:1}.co-date-field{display:flex;flex-direction:column;gap:var(--co-spacing-sm2)}.co-date-field__labels{display:flex;align-items:center;justify-content:space-between;padding:0 var(--co-spacing-xs);gap:var(--co-spacing-sm2)}.co-date-field__label{color:var(--co-semantic-text-secondary);font-size:var(--co-font-size-14);font-weight:400;letter-spacing:var(--co-font-letter-spacing-body);line-height:1;white-space:nowrap;cursor:default}.co-date-field__field-row{display:flex;align-items:stretch}.co-date-field--s .co-date-field__field{min-height:28px;padding:var(--co-spacing-xxs) var(--co-spacing-sm)}.co-date-field--sm .co-date-field__field{min-height:32px;padding:var(--co-spacing-xs) var(--co-spacing-sm)}.co-date-field--lg .co-date-field__field{min-height:48px;padding:var(--co-spacing-sm) var(--co-spacing-lg)}.co-date-field--s .co-date-field__input-wrapper,.co-date-field--sm .co-date-field__input-wrapper{min-height:0;padding:0}.co-date-field__field{display:flex;align-items:center;gap:var(--co-spacing-sm2);padding:var(--co-spacing-sm2) var(--co-spacing-md);background:var(--co-semantic-surface-secondary);border:1px solid var(--co-semantic-border-subtle);border-radius:var(--co-border-radius-xs);transition:border-color 0.15s ease, box-shadow 0.15s ease;min-height:40px;box-sizing:border-box;overflow:hidden;flex:1;min-width:0}.co-date-field__icon{flex-shrink:0;color:var(--co-semantic-text-muted);display:flex;align-items:center}.co-date-field__input-wrapper{flex:1;display:flex;align-items:center;min-width:0;min-height:24px;padding:var(--co-spacing-xxs) 0}.co-date-field__native{width:100%;border:none;outline:none;background:transparent;font-family:inherit;font-size:inherit;font-weight:400;letter-spacing:inherit;line-height:1;color:var(--co-semantic-text-default);padding:0;margin:0}.co-date-field__native::placeholder{color:var(--co-semantic-text-muted)}.co-date-field__clear{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:16px;padding:0;margin:0;border:none;background:transparent;cursor:pointer;color:var(--co-semantic-text-muted);transition:color 0.15s ease}.co-date-field__clear--hidden{visibility:hidden;pointer-events:none}.co-date-field__clear:hover{color:var(--co-semantic-text-default)}.co-date-field__helper{display:flex;align-items:center;gap:var(--co-spacing-xs);padding:0 var(--co-spacing-xs)}.co-date-field__helper-icon{flex-shrink:0;color:var(--co-semantic-text-muted);display:flex;align-items:center}.co-date-field__helper-text{color:var(--co-semantic-text-muted);font-size:var(--co-font-size-14);font-weight:400;line-height:1;letter-spacing:var(--co-font-letter-spacing-body)}.co-date-field--focused .co-date-field__field{border-color:var(--co-semantic-border-focus);box-shadow:0 0 0 2px var(--co-semantic-border-focus-ring)}.co-date-field--disabled .co-date-field__labels .co-date-field__label{color:var(--co-semantic-text-disabled)}.co-date-field--disabled .co-date-field__field{background:var(--co-semantic-surface-disabled);border-color:transparent;cursor:not-allowed}.co-date-field--disabled .co-date-field__native{color:var(--co-semantic-text-disabled);cursor:not-allowed}.co-date-field--disabled .co-date-field__native::placeholder{color:var(--co-semantic-text-disabled)}.co-date-field--disabled .co-date-field__icon{color:var(--co-semantic-text-disabled)}.co-date-field--invalid .co-date-field__field{border-color:var(--co-semantic-status-error)}.co-date-field--invalid.co-date-field--focused .co-date-field__field{border-color:var(--co-semantic-status-error);box-shadow:0 0 0 2px rgba(170, 46, 27, 0.12)}.co-date-field__helper--error .co-date-field__helper-icon,.co-date-field__helper--error .co-date-field__helper-text{color:var(--co-semantic-status-error)}:host([layout='horizontal']) .co-date-field{display:grid;grid-template-columns:var(--co-field-label-width, max-content) 1fr;align-items:start;column-gap:var(--co-spacing-md);row-gap:var(--co-spacing-sm2)}:host([layout='horizontal']) .co-date-field__labels{grid-column:1;grid-row:1;padding-top:var(--co-spacing-sm2);min-width:0}:host([layout='horizontal']) .co-date-field__label{white-space:normal}:host([layout='horizontal']) .co-date-field>:not(.co-date-field__labels){grid-column:2;min-width:0}.co-field-required{margin-left:2px;color:var(--co-color-status-error)}.co-field-required__caption{margin-left:4px;color:var(--co-semantic-text-muted);font-size:var(--co-font-size-12);font-weight:400}.co-field-required__caption::before{content:var(--co-field-required-text, ' (required)')}"}},[1,"co-date-field",{value:[1025],size:[513],min:[1],max:[1],disabledDates:[1,"disabled-dates"],disabledDaysOfWeek:[1,"disabled-days-of-week"],locale:[1],displayFormat:[1,"display-format"],label:[1],placeholder:[1],name:[1],disabled:[4],readonly:[4],required:[4],clearable:[4],invalid:[4],errorMessage:[1,"error-message"],helperText:[1,"helper-text"],layout:[513],clearLabel:[1,"clear-label"],draft:[32],internalInvalid:[32],hasFocus:[32],focusInput:[64]},void 0,{value:[{onValueChange:0}]}]);function h(e){if(Array.isArray(e))return e;if("string"==typeof e&&e.trim()){try{const i=JSON.parse(e);if(Array.isArray(i))return i.map(String)}catch(e){}return e.split(",").map((e=>e.trim())).filter(Boolean)}return[]}function p(e){if(Array.isArray(e))return e;if("string"==typeof e&&e.trim()){try{const i=JSON.parse(e);if(Array.isArray(i))return i.map(Number).filter((e=>!Number.isNaN(e)))}catch(e){}return e.split(",").map((e=>Number(e.trim()))).filter((e=>!Number.isNaN(e)))}return[]}function u(){"undefined"!=typeof customElements&&["co-date-field","co-icon"].forEach((i=>{switch(i){case"co-date-field":customElements.get(e(i))||customElements.define(e(i),f);break;case"co-icon":customElements.get(e(i))||l()}}))}u();export{f as C,u as d}
@@ -1,32 +0,0 @@
1
- import { r as registerInstance, h } from './index-BKmfyPZK.js';
2
-
3
- const coLoaderCss = () => `:host{display:contents;--co-loader-ball:15px;--co-loader-step:25px;--co-loader-text:var(--co-font-size-14);--co-loader-gap:10px}:host([size="sm"]){--co-loader-ball:8px;--co-loader-step:14px;--co-loader-text:var(--co-font-size-12);--co-loader-gap:6px}:host([size="lg"]){--co-loader-ball:20px;--co-loader-step:33px;--co-loader-gap:12px}.co-loader{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--co-loader-gap)}.co-loader--overlay{position:absolute;inset:0;background:rgba(255, 255, 255, 0.72);z-index:10}.co-loader__balls{position:relative;width:calc(var(--co-loader-step) * 3);height:var(--co-loader-ball)}.co-loader__ball{position:absolute;width:var(--co-loader-ball);height:var(--co-loader-ball);border-radius:50%;animation:co-loader-bounce 2s infinite cubic-bezier(0.28, 0.84, 0.42, 1)}.co-loader__ball--blue{background-color:#4285f4}.co-loader__ball--yellow{background-color:#fdbd00;animation-delay:0.4s}.co-loader__ball--red{background-color:#d4145a;animation-delay:0.8s}.co-loader__text{margin:0;font-family:var(--co-font-family-primary);font-size:var(--co-loader-text);color:var(--co-semantic-text-secondary);text-align:center;white-space:pre-line}@keyframes co-loader-bounce{0%,100%{transform:translateX(0) scale(1)}25%{transform:translateX(var(--co-loader-step)) scale(1.2)}50%{transform:translateX(calc(var(--co-loader-step) * 2)) scale(0.8)}75%{transform:translateX(var(--co-loader-step)) scale(1.2)}}`;
4
-
5
- const CoLoader = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- /** Show the loader. When false the component renders nothing so it doesn't
9
- * hold layout space or run animations while hidden. */
10
- this.visible = true;
11
- /** Render as an absolute-positioned overlay over the nearest positioned
12
- * ancestor. When false (default) the loader is inline. */
13
- this.overlay = false;
14
- /** Size of the ball animation. `sm` ~42px wide for tight UI like dropdown
15
- * bodies; `md` (default) ~75px for drawers/boot; `lg` ~100px for big
16
- * empty screens. */
17
- this.size = 'md';
18
- /** Optional text label below the balls. Multi-line is supported. */
19
- this.text = '';
20
- /** CSS color for the overlay backdrop. Only applied when `overlay=true`. */
21
- this.background = '';
22
- }
23
- render() {
24
- if (!this.visible)
25
- return null;
26
- const style = this.overlay && this.background ? { background: this.background } : undefined;
27
- return (h("div", { class: { 'co-loader': true, 'co-loader--overlay': this.overlay }, style: style, part: "root", role: "status", "aria-live": "polite" }, h("div", { class: "co-loader__balls", part: "balls" }, h("span", { class: "co-loader__ball co-loader__ball--blue" }), h("span", { class: "co-loader__ball co-loader__ball--yellow" }), h("span", { class: "co-loader__ball co-loader__ball--red" })), this.text && h("p", { class: "co-loader__text", part: "text" }, this.text)));
28
- }
29
- };
30
- CoLoader.style = coLoaderCss();
31
-
32
- export { CoLoader as co_loader };
@@ -1,21 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h } from './index-BKmfyPZK.js';
2
-
3
- const coOverlayCss = () => `:host{display:contents}.co-overlay{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;background:rgba(0, 0, 0, 0.4);opacity:0;pointer-events:none;transition:opacity 0.2s ease}.co-overlay--open{opacity:1;pointer-events:auto}`;
4
-
5
- const CoOverlay = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- this.coClose = createEvent(this, "coClose", 7);
9
- /** Whether the overlay is visible */
10
- this.open = false;
11
- this.handleClick = () => {
12
- this.coClose.emit();
13
- };
14
- }
15
- render() {
16
- return (h("div", { key: '65b20d04a50324ef37a5a9f0ff726ead15d0d757', class: { 'co-overlay': true, 'co-overlay--open': this.open }, part: "overlay", onClick: this.handleClick }, h("slot", { key: '64d6abebb8d812d4c638b14608ba2982aae43a19' })));
17
- }
18
- };
19
- CoOverlay.style = coOverlayCss();
20
-
21
- export { CoOverlay as co_overlay };