@prolibu-suite/cobalt-core 0.10.4 → 0.11.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 (736) hide show
  1. package/custom-elements.json +4362 -388
  2. package/dist/cjs/co-accordion.cjs.entry.js +3 -3
  3. package/dist/cjs/co-action-bar.cjs.entry.js +3 -3
  4. package/dist/cjs/co-app-shell.cjs.entry.js +3 -3
  5. package/dist/cjs/co-audio-player.cjs.entry.js +4 -4
  6. package/dist/cjs/co-autocomplete.cjs.entry.js +2 -2
  7. package/dist/cjs/co-avatar-group.cjs.entry.js +1 -1
  8. package/dist/cjs/co-avatar.cjs.entry.js +7 -4
  9. package/dist/cjs/co-badge.cjs.entry.js +2 -2
  10. package/dist/cjs/co-bottom-sheet.cjs.entry.js +5 -5
  11. package/dist/cjs/co-breadcrumb-item.cjs.entry.js +3 -3
  12. package/dist/cjs/co-breadcrumb.cjs.entry.js +2 -2
  13. package/dist/cjs/co-button-group.cjs.entry.js +3 -3
  14. package/dist/cjs/co-button.cjs.entry.js +9 -7
  15. package/dist/cjs/co-calendar-month_2.cjs.entry.js +4 -4
  16. package/dist/cjs/co-calendar_3.cjs.entry.js +72 -27
  17. package/dist/cjs/co-card.cjs.entry.js +3 -3
  18. package/dist/cjs/co-carousel-item.cjs.entry.js +2 -2
  19. package/dist/cjs/co-carousel.cjs.entry.js +3 -3
  20. package/dist/cjs/co-checkbox-group.cjs.entry.js +1 -1
  21. package/dist/cjs/co-checkbox.cjs.entry.js +13 -5
  22. package/dist/cjs/co-chip_2.cjs.entry.js +9 -6
  23. package/dist/cjs/co-color-area.cjs.entry.js +169 -0
  24. package/dist/cjs/co-color-picker.cjs.entry.js +5 -5
  25. package/dist/cjs/co-color-slider.cjs.entry.js +189 -0
  26. package/dist/cjs/co-column-picker.cjs.entry.js +3 -3
  27. package/dist/cjs/co-combobox.cjs.entry.js +5 -5
  28. package/dist/cjs/co-command-search.cjs.entry.js +5 -5
  29. package/dist/cjs/co-data-table-pagination.cjs.entry.js +5 -5
  30. package/dist/cjs/co-data-table.cjs.entry.js +3 -3
  31. package/dist/cjs/co-date-picker.cjs.entry.js +2 -2
  32. package/dist/cjs/co-date-range-picker.cjs.entry.js +2 -2
  33. package/dist/cjs/co-date-range.cjs.entry.js +2 -2
  34. package/dist/cjs/co-date-time-picker.cjs.entry.js +4 -4
  35. package/dist/cjs/co-document-editor.cjs.entry.js +1161 -0
  36. package/dist/cjs/co-drive-card.cjs.entry.js +2 -2
  37. package/dist/cjs/co-drop-zone.cjs.entry.js +2 -2
  38. package/dist/cjs/co-emoji-picker.cjs.entry.js +3 -3
  39. package/dist/cjs/co-empty-state.cjs.entry.js +3 -3
  40. package/dist/cjs/co-event-calendar.cjs.entry.js +3 -3
  41. package/dist/cjs/co-event-popover.cjs.entry.js +3 -3
  42. package/dist/cjs/co-fab.cjs.entry.js +3 -3
  43. package/dist/cjs/co-file-field.cjs.entry.js +8 -8
  44. package/dist/cjs/co-file-type-tile.cjs.entry.js +3 -3
  45. package/dist/cjs/co-gradient-bar.cjs.entry.js +220 -0
  46. package/dist/cjs/co-helper-text.cjs.entry.js +3 -3
  47. package/dist/cjs/co-icon-button.cjs.entry.js +49 -9
  48. package/dist/cjs/co-icon.cjs.entry.js +3 -3
  49. package/dist/cjs/co-input.cjs.entry.js +14 -8
  50. package/dist/cjs/co-json-field.cjs.entry.js +5 -5
  51. package/dist/cjs/{co-tooltip.cjs.entry.js → co-kbd_2.cjs.entry.js} +194 -6
  52. package/dist/cjs/co-lightbox.cjs.entry.js +5 -5
  53. package/dist/cjs/co-list-footer.cjs.entry.js +2 -2
  54. package/dist/cjs/co-list-item.cjs.entry.js +5 -5
  55. package/dist/cjs/co-loader.cjs.entry.js +1 -1
  56. package/dist/cjs/co-media-thumb.cjs.entry.js +3 -3
  57. package/dist/cjs/co-menu-divider.cjs.entry.js +3 -3
  58. package/dist/cjs/co-menu-item.cjs.entry.js +41 -43
  59. package/dist/cjs/co-menu.cjs.entry.js +81 -5
  60. package/dist/cjs/co-modal.cjs.entry.js +350 -7
  61. package/dist/cjs/co-navbar.cjs.entry.js +3 -3
  62. package/dist/cjs/co-number-field.cjs.entry.js +5 -5
  63. package/dist/cjs/co-overlay.cjs.entry.js +8 -4
  64. package/dist/cjs/co-page-header.cjs.entry.js +2 -2
  65. package/dist/cjs/co-phone-field.cjs.entry.js +3 -3
  66. package/dist/cjs/co-popover.cjs.entry.js +67 -6
  67. package/dist/cjs/co-progress-bar.cjs.entry.js +3 -3
  68. package/dist/cjs/co-progress-circle.cjs.entry.js +3 -3
  69. package/dist/cjs/co-provider-logo_2.cjs.entry.js +2 -2
  70. package/dist/cjs/co-radio-group.cjs.entry.js +4 -4
  71. package/dist/cjs/co-radio.cjs.entry.js +4 -4
  72. package/dist/cjs/co-rating.cjs.entry.js +4 -4
  73. package/dist/cjs/co-ref-field.cjs.entry.js +5 -5
  74. package/dist/cjs/co-rich-text-editor.cjs.entry.js +26 -92
  75. package/dist/cjs/co-rich-text-toolbar.cjs.entry.js +79 -20
  76. package/dist/cjs/co-rich-text-viewer.cjs.entry.js +9 -2
  77. package/dist/cjs/co-row.cjs.entry.js +3 -3
  78. package/dist/cjs/co-segmented-bar.cjs.entry.js +3 -3
  79. package/dist/cjs/co-select.cjs.entry.js +158 -29
  80. package/dist/cjs/co-separator.cjs.entry.js +2 -2
  81. package/dist/cjs/co-sidebar-nav.cjs.entry.js +20 -5
  82. package/dist/cjs/co-sidebar.cjs.entry.js +3 -3
  83. package/dist/cjs/co-slider.cjs.entry.js +203 -23
  84. package/dist/cjs/co-swatch-grid.cjs.entry.js +121 -0
  85. package/dist/cjs/co-switch.cjs.entry.js +5 -5
  86. package/dist/cjs/co-tab-group.cjs.entry.js +113 -4
  87. package/dist/cjs/co-tab.cjs.entry.js +15 -5
  88. package/dist/cjs/co-tags-field.cjs.entry.js +8 -8
  89. package/dist/cjs/co-textarea.cjs.entry.js +6 -6
  90. package/dist/cjs/co-tile.cjs.entry.js +61 -0
  91. package/dist/cjs/co-time-field.cjs.entry.js +2 -2
  92. package/dist/cjs/co-toast.cjs.entry.js +3 -3
  93. package/dist/cjs/co-toggle-button-group.cjs.entry.js +26 -5
  94. package/dist/cjs/co-toggle-button.cjs.entry.js +67 -6
  95. package/dist/cjs/co-transfer-list.cjs.entry.js +3 -3
  96. package/dist/cjs/co-tree-item.cjs.entry.js +110 -0
  97. package/dist/cjs/co-video.cjs.entry.js +3 -3
  98. package/dist/cjs/cobalt.cjs.js +2 -2
  99. package/dist/cjs/{color-CML2Cfdh.js → color-DQVrQGi0.js} +10 -5
  100. package/dist/cjs/{fieldChip-B6YIGU1V.js → fieldChip-C7MxxBVO.js} +1 -1
  101. package/dist/cjs/gradientStops-CMpH4fB_.js +153 -0
  102. package/dist/cjs/hsv-DpfSF3M2.js +95 -0
  103. package/dist/cjs/{index-MDAnKsze.js → index-bHoidDwv.js} +67 -27
  104. package/dist/cjs/index-oMHzCXm6.js +144 -0
  105. package/dist/cjs/loader.cjs.js +2 -2
  106. package/dist/cjs/{index-2kMmd5-a.js → pagination-DV43TRj9.js} +1780 -297
  107. package/dist/cjs/{positioning-CyatXeT_.js → positioning-CILo5esi.js} +45 -18
  108. package/dist/cjs/{requiredMark-D-t-IPN0.js → requiredMark-21yHvvZS.js} +1 -1
  109. package/dist/cjs/rich-text-host-ueFSfW-6.js +119 -0
  110. package/dist/cjs/{richTextI18n-B28uAhh4.js → richTextI18n-DXGIv5w1.js} +45 -0
  111. package/dist/cjs/submenu-RlaX6irw.js +65 -0
  112. package/dist/cjs/{toolbar-config-CYACt9hh.js → toolbar-config-DczL6C4W.js} +32 -0
  113. package/dist/cobalt/cobalt.css +1 -1
  114. package/dist/cobalt/cobalt.esm.js +1 -1
  115. package/dist/cobalt/{p-ee149fd2.entry.js → p-05000ef3.entry.js} +1 -1
  116. package/dist/cobalt/p-06689166.entry.js +1 -0
  117. package/dist/cobalt/{p-1dc55e43.entry.js → p-0a5cfed0.entry.js} +1 -1
  118. package/dist/cobalt/p-1289131f.entry.js +1 -0
  119. package/dist/cobalt/{p-c7d7d7f7.entry.js → p-136beb2c.entry.js} +1 -1
  120. package/dist/cobalt/{p-b437eff6.entry.js → p-1693b614.entry.js} +1 -1
  121. package/dist/cobalt/p-1bfb69ae.entry.js +1 -0
  122. package/dist/cobalt/{p-2c9dba2f.entry.js → p-1f3d5313.entry.js} +1 -1
  123. package/dist/cobalt/{p-b821d9de.entry.js → p-22233b31.entry.js} +1 -1
  124. package/dist/cobalt/{p-c30b4cb5.entry.js → p-26fa36f8.entry.js} +1 -1
  125. package/dist/cobalt/p-2794c500.entry.js +1 -0
  126. package/dist/cobalt/p-297b55cd.entry.js +1 -0
  127. package/dist/cobalt/{p-17244412.entry.js → p-2a2b0c7a.entry.js} +1 -1
  128. package/dist/cobalt/{p-2636b7eb.entry.js → p-2e5702a0.entry.js} +1 -1
  129. package/dist/cobalt/p-3011c84f.entry.js +1 -0
  130. package/dist/cobalt/{p-4d65e713.entry.js → p-30760f77.entry.js} +1 -1
  131. package/dist/cobalt/{p-6dd220e0.entry.js → p-3b9a8e86.entry.js} +1 -1
  132. package/dist/cobalt/p-4111fefa.entry.js +1 -0
  133. package/dist/cobalt/{p-a32b20eb.entry.js → p-44edde81.entry.js} +1 -1
  134. package/dist/cobalt/{p-292b0389.entry.js → p-45007758.entry.js} +1 -1
  135. package/dist/cobalt/p-48c23310.entry.js +1 -0
  136. package/dist/cobalt/p-4b327483.entry.js +1 -0
  137. package/dist/cobalt/p-4c6caa41.entry.js +1 -0
  138. package/dist/cobalt/{p-000a15b8.entry.js → p-5534a64f.entry.js} +1 -1
  139. package/dist/cobalt/p-5573985a.entry.js +1 -0
  140. package/dist/cobalt/p-57d250ad.entry.js +1 -0
  141. package/dist/cobalt/{p-826ee074.entry.js → p-59d3e8fc.entry.js} +1 -1
  142. package/dist/cobalt/{p-4592ca00.entry.js → p-5a32b9a2.entry.js} +1 -1
  143. package/dist/cobalt/p-5b2aa70e.entry.js +1 -0
  144. package/dist/cobalt/{p-d29bb0fa.entry.js → p-5d6e02dd.entry.js} +1 -1
  145. package/dist/cobalt/{p-623cc195.entry.js → p-608d251d.entry.js} +1 -1
  146. package/dist/cobalt/{p-011dc80b.entry.js → p-66fc1528.entry.js} +1 -1
  147. package/dist/cobalt/{p-11c5ce78.entry.js → p-67ad9544.entry.js} +1 -1
  148. package/dist/cobalt/{p-290066ef.entry.js → p-6c157ea2.entry.js} +1 -1
  149. package/dist/cobalt/{p-a2462d7a.entry.js → p-6d541199.entry.js} +1 -1
  150. package/dist/cobalt/{p-58d9b650.entry.js → p-7376f4ed.entry.js} +1 -1
  151. package/dist/cobalt/{p-39a50e7f.entry.js → p-7569375a.entry.js} +1 -1
  152. package/dist/cobalt/{p-7b5c555c.entry.js → p-763698b3.entry.js} +1 -1
  153. package/dist/cobalt/{p-f57dffca.entry.js → p-7675cebe.entry.js} +1 -1
  154. package/dist/cobalt/p-78a20284.entry.js +1 -0
  155. package/dist/cobalt/{p-aa9400bf.entry.js → p-7f3523ce.entry.js} +1 -1
  156. package/dist/cobalt/{p-24196410.entry.js → p-86b6fd81.entry.js} +1 -1
  157. package/dist/cobalt/{p-996f4e38.entry.js → p-889563d5.entry.js} +1 -1
  158. package/dist/cobalt/{p-eadfd661.entry.js → p-8ab5b396.entry.js} +1 -1
  159. package/dist/cobalt/{p-c91d4fc6.entry.js → p-8b2e4579.entry.js} +1 -1
  160. package/dist/cobalt/p-8cd3acaa.entry.js +1 -0
  161. package/dist/cobalt/{p-23ab0cc5.entry.js → p-8f701eac.entry.js} +1 -1
  162. package/dist/cobalt/p-90fad0f9.entry.js +1 -0
  163. package/dist/cobalt/{p-76249983.entry.js → p-97a4fbba.entry.js} +1 -1
  164. package/dist/cobalt/p-9b46a8fe.entry.js +1 -0
  165. package/dist/cobalt/{p-ee2023da.entry.js → p-9bee9dc8.entry.js} +1 -1
  166. package/dist/cobalt/{p-2f9cbbd5.entry.js → p-9cf10331.entry.js} +1 -1
  167. package/dist/cobalt/p-9dc01092.entry.js +1 -0
  168. package/dist/cobalt/p-9e406172.entry.js +1 -0
  169. package/dist/cobalt/p-B1JT7us1.js +1 -0
  170. package/dist/cobalt/{p-BRbgGqLw.js → p-BVGGRfNG.js} +1 -1
  171. package/dist/cobalt/p-BmdKHBZP.js +1 -0
  172. package/dist/cobalt/p-BtliEQAT.js +1 -0
  173. package/dist/cobalt/p-COJdaKBU.js +1 -0
  174. package/dist/cobalt/{p-BAYo-RBt.js → p-CRxTFT_z.js} +1 -1
  175. package/dist/cobalt/p-CYN5B3IQ.js +1 -0
  176. package/dist/cobalt/p-DJkaRtbb.js +2 -0
  177. package/dist/cobalt/p-DU-KOQ8L.js +1 -0
  178. package/dist/cobalt/p-DXLeDZvr.js +1 -0
  179. package/dist/cobalt/{p-D_zA1Pv4.js → p-DgJovDdy.js} +1 -1
  180. package/dist/cobalt/p-RVQJEYxa.js +1 -0
  181. package/dist/cobalt/{p-1861fe41.entry.js → p-a07dedd1.entry.js} +1 -1
  182. package/dist/cobalt/{p-08e42e00.entry.js → p-a336178b.entry.js} +1 -1
  183. package/dist/cobalt/{p-f9a7b7c6.entry.js → p-a52ed6ff.entry.js} +1 -1
  184. package/dist/cobalt/{p-aaca6dab.entry.js → p-a930cdd7.entry.js} +1 -1
  185. package/dist/cobalt/{p-eb82358d.entry.js → p-b1994bb4.entry.js} +1 -1
  186. package/dist/cobalt/p-b2b13da8.entry.js +1 -0
  187. package/dist/cobalt/{p-c2ebf0ec.entry.js → p-b5ec4286.entry.js} +1 -1
  188. package/dist/cobalt/p-b9401dd7.entry.js +1 -0
  189. package/dist/cobalt/p-b9dfb333.entry.js +1 -0
  190. package/dist/cobalt/p-bc3ba0cd.entry.js +1 -0
  191. package/dist/cobalt/{p-d375014b.entry.js → p-bc4fbfa6.entry.js} +1 -1
  192. package/dist/cobalt/{p-d0b2c418.entry.js → p-c109a1e1.entry.js} +1 -1
  193. package/dist/cobalt/{p-ee9a623d.entry.js → p-c1caa112.entry.js} +1 -1
  194. package/dist/cobalt/p-c9990662.entry.js +1 -0
  195. package/dist/cobalt/p-cc4b51fa.entry.js +1 -0
  196. package/dist/cobalt/p-cc5989e9.entry.js +1 -0
  197. package/dist/cobalt/{p-e4264532.entry.js → p-ce2b2048.entry.js} +1 -1
  198. package/dist/cobalt/p-d1c378ff.entry.js +1 -0
  199. package/dist/cobalt/p-d1e83525.entry.js +1 -0
  200. package/dist/cobalt/{p-59963937.entry.js → p-d1f47915.entry.js} +1 -1
  201. package/dist/cobalt/{p-28764b8e.entry.js → p-d4979025.entry.js} +1 -1
  202. package/dist/cobalt/p-d6e7c258.entry.js +1 -0
  203. package/dist/cobalt/p-d75d2f3d.entry.js +1 -0
  204. package/dist/cobalt/p-db42c4ab.entry.js +1 -0
  205. package/dist/cobalt/{p-44c4e4a3.entry.js → p-e4ff2fcb.entry.js} +1 -1
  206. package/dist/cobalt/p-e6116149.entry.js +1 -0
  207. package/dist/cobalt/{p-0c004735.entry.js → p-e99ddf9c.entry.js} +1 -1
  208. package/dist/cobalt/{p-1cc818ca.entry.js → p-ea24eea8.entry.js} +1 -1
  209. package/dist/cobalt/{p-07416e31.entry.js → p-ea564148.entry.js} +1 -1
  210. package/dist/cobalt/{p-8471abe2.entry.js → p-ec7a6bf2.entry.js} +1 -1
  211. package/dist/cobalt/{p-fb2d1144.entry.js → p-ee42dca6.entry.js} +1 -1
  212. package/dist/cobalt/{p-49834b8e.entry.js → p-ee88ec40.entry.js} +1 -1
  213. package/dist/cobalt/p-eeb114da.entry.js +1 -0
  214. package/dist/cobalt/{p-f6691108.entry.js → p-f0898e21.entry.js} +1 -1
  215. package/dist/cobalt/p-f246946a.entry.js +1 -0
  216. package/dist/cobalt/{p-b90d41e4.entry.js → p-f5934cd9.entry.js} +1 -1
  217. package/dist/cobalt/p-f5e1873d.entry.js +1 -0
  218. package/dist/cobalt/p-f60bd4d6.entry.js +1 -0
  219. package/dist/cobalt/p-f813569c.entry.js +1 -0
  220. package/dist/cobalt/{p-f7eb1a40.entry.js → p-f8c7941f.entry.js} +1 -1
  221. package/dist/cobalt/{p-44ea675f.entry.js → p-f8d3c71e.entry.js} +1 -1
  222. package/dist/cobalt/{p-91e73a92.entry.js → p-ffbe955a.entry.js} +1 -1
  223. package/dist/cobalt/p-xnrKkNWQ.js +1 -0
  224. package/dist/collection/collection-manifest.json +8 -0
  225. package/dist/collection/components/co-accordion/co-accordion.js +2 -2
  226. package/dist/collection/components/co-action-bar/co-action-bar.js +2 -2
  227. package/dist/collection/components/co-app-shell/co-app-shell.js +2 -2
  228. package/dist/collection/components/co-audio-player/co-audio-player.js +3 -3
  229. package/dist/collection/components/co-autocomplete/co-autocomplete.js +1 -1
  230. package/dist/collection/components/co-avatar/co-avatar.css +11 -2
  231. package/dist/collection/components/co-avatar/co-avatar.js +7 -4
  232. package/dist/collection/components/co-avatar-group/co-avatar-group.js +1 -1
  233. package/dist/collection/components/co-badge/co-badge.js +1 -1
  234. package/dist/collection/components/co-bottom-sheet/co-bottom-sheet.js +4 -4
  235. package/dist/collection/components/co-breadcrumb/co-breadcrumb.js +1 -1
  236. package/dist/collection/components/co-breadcrumb-item/co-breadcrumb-item.js +2 -2
  237. package/dist/collection/components/co-button/co-button.css +73 -6
  238. package/dist/collection/components/co-button/co-button.js +33 -11
  239. package/dist/collection/components/co-button-group/co-button-group.js +2 -2
  240. package/dist/collection/components/co-calendar/calendarMarks.js +40 -0
  241. package/dist/collection/components/co-calendar/co-calendar.css +11 -1
  242. package/dist/collection/components/co-calendar/co-calendar.js +82 -20
  243. package/dist/collection/components/co-calendar-month/co-calendar-month.js +1 -1
  244. package/dist/collection/components/co-calendar-timegrid/co-calendar-timegrid.js +2 -2
  245. package/dist/collection/components/co-card/co-card.js +2 -2
  246. package/dist/collection/components/co-carousel/co-carousel.js +2 -2
  247. package/dist/collection/components/co-carousel-item/co-carousel-item.js +1 -1
  248. package/dist/collection/components/co-checkbox/co-checkbox.css +43 -1
  249. package/dist/collection/components/co-checkbox/co-checkbox.js +31 -3
  250. package/dist/collection/components/co-checkbox-group/co-checkbox-group.js +1 -1
  251. package/dist/collection/components/co-chip/co-chip.js +2 -2
  252. package/dist/collection/components/co-color-area/co-color-area.css +83 -0
  253. package/dist/collection/components/co-color-area/co-color-area.js +341 -0
  254. package/dist/collection/components/co-color-picker/co-color-picker.js +2 -2
  255. package/dist/collection/components/co-color-slider/co-color-slider.css +115 -0
  256. package/dist/collection/components/co-color-slider/co-color-slider.js +353 -0
  257. package/dist/collection/components/co-column-picker/co-column-picker.js +2 -2
  258. package/dist/collection/components/co-combobox/co-combobox.js +4 -4
  259. package/dist/collection/components/co-command-search/co-command-search.js +5 -5
  260. package/dist/collection/components/co-data-table/co-data-table.js +3 -3
  261. package/dist/collection/components/co-data-table-pagination/co-data-table-pagination.js +4 -4
  262. package/dist/collection/components/co-date-field/co-date-field.js +4 -4
  263. package/dist/collection/components/co-date-range/co-date-range.js +1 -1
  264. package/dist/collection/components/co-date-range-picker/co-date-range-picker.js +2 -2
  265. package/dist/collection/components/co-date-time-picker/co-date-time-picker.js +3 -3
  266. package/dist/collection/components/co-document-editor/change-throttle.js +30 -0
  267. package/dist/collection/components/co-document-editor/co-document-editor.css +438 -0
  268. package/dist/collection/components/co-document-editor/co-document-editor.js +1542 -0
  269. package/dist/collection/components/co-document-editor/document-props.js +40 -0
  270. package/dist/collection/components/co-document-editor/header-tools.js +11 -0
  271. package/dist/collection/components/co-document-editor/image-bar.js +66 -0
  272. package/dist/collection/components/co-document-editor/page-styles.js +90 -0
  273. package/dist/collection/components/co-document-editor/zoom.js +45 -0
  274. package/dist/collection/components/co-drive-card/co-drive-card.js +1 -1
  275. package/dist/collection/components/co-drop-zone/co-drop-zone.js +1 -1
  276. package/dist/collection/components/co-emoji-picker/co-emoji-picker.js +2 -2
  277. package/dist/collection/components/co-empty-state/co-empty-state.js +2 -2
  278. package/dist/collection/components/co-event-calendar/co-event-calendar.js +2 -2
  279. package/dist/collection/components/co-event-popover/co-event-popover.js +1 -1
  280. package/dist/collection/components/co-fab/co-fab.js +2 -2
  281. package/dist/collection/components/co-file-field/co-file-field.js +6 -6
  282. package/dist/collection/components/co-file-type-tile/co-file-type-tile.js +2 -2
  283. package/dist/collection/components/co-gradient-bar/co-gradient-bar.css +138 -0
  284. package/dist/collection/components/co-gradient-bar/co-gradient-bar.js +407 -0
  285. package/dist/collection/components/co-helper-text/co-helper-text.js +2 -2
  286. package/dist/collection/components/co-icon/co-icon.js +2 -2
  287. package/dist/collection/components/co-icon-button/co-icon-button.css +95 -19
  288. package/dist/collection/components/co-icon-button/co-icon-button.js +120 -10
  289. package/dist/collection/components/co-input/co-input.css +122 -0
  290. package/dist/collection/components/co-input/co-input.js +37 -11
  291. package/dist/collection/components/co-json-field/co-json-field.js +3 -3
  292. package/dist/collection/components/co-kbd/co-kbd.css +99 -0
  293. package/dist/collection/components/co-kbd/co-kbd.js +291 -0
  294. package/dist/collection/components/co-lightbox/co-lightbox.js +4 -4
  295. package/dist/collection/components/co-list-footer/co-list-footer.js +1 -1
  296. package/dist/collection/components/co-list-item/co-list-item.js +4 -4
  297. package/dist/collection/components/co-media-thumb/co-media-thumb.js +2 -2
  298. package/dist/collection/components/co-menu/co-menu.css +60 -0
  299. package/dist/collection/components/co-menu/co-menu.js +143 -3
  300. package/dist/collection/components/co-menu-divider/co-menu-divider.css +17 -0
  301. package/dist/collection/components/co-menu-divider/co-menu-divider.js +1 -1
  302. package/dist/collection/components/co-menu-item/co-menu-item.css +42 -6
  303. package/dist/collection/components/co-menu-item/co-menu-item.js +58 -4
  304. package/dist/collection/components/co-modal/co-modal.css +212 -1
  305. package/dist/collection/components/co-modal/co-modal.js +339 -9
  306. package/dist/collection/components/co-navbar/co-navbar.js +2 -2
  307. package/dist/collection/components/co-number-field/co-number-field.js +3 -3
  308. package/dist/collection/components/co-option-list/co-option-list.css +64 -21
  309. package/dist/collection/components/co-option-list/co-option-list.js +6 -2
  310. package/dist/collection/components/co-overlay/co-overlay.js +7 -3
  311. package/dist/collection/components/co-page-header/co-page-header.js +1 -1
  312. package/dist/collection/components/co-phone-field/co-phone-field.js +1 -1
  313. package/dist/collection/components/co-popover/co-popover.css +15 -2
  314. package/dist/collection/components/co-popover/co-popover.js +130 -5
  315. package/dist/collection/components/co-progress-bar/co-progress-bar.js +2 -2
  316. package/dist/collection/components/co-progress-circle/co-progress-circle.js +2 -2
  317. package/dist/collection/components/co-radio/co-radio.js +3 -3
  318. package/dist/collection/components/co-radio-group/co-radio-group.js +4 -4
  319. package/dist/collection/components/co-rating/co-rating.js +3 -3
  320. package/dist/collection/components/co-ref-field/co-ref-field.js +5 -5
  321. package/dist/collection/components/co-rich-text-editor/co-rich-text-editor.js +23 -90
  322. package/dist/collection/components/co-rich-text-toolbar/co-rich-text-toolbar.css +12 -0
  323. package/dist/collection/components/co-rich-text-toolbar/co-rich-text-toolbar.js +123 -18
  324. package/dist/collection/components/co-rich-text-viewer/co-rich-text-viewer.js +8 -1
  325. package/dist/collection/components/co-row/co-row.js +2 -2
  326. package/dist/collection/components/co-segmented-bar/co-segmented-bar.js +3 -3
  327. package/dist/collection/components/co-select/co-select.css +194 -10
  328. package/dist/collection/components/co-select/co-select.js +163 -32
  329. package/dist/collection/components/co-select/virtualRows.js +57 -0
  330. package/dist/collection/components/co-separator/co-separator.js +1 -1
  331. package/dist/collection/components/co-sidebar/co-sidebar.js +2 -2
  332. package/dist/collection/components/co-sidebar-nav/co-sidebar-nav.css +10 -0
  333. package/dist/collection/components/co-sidebar-nav/co-sidebar-nav.js +19 -4
  334. package/dist/collection/components/co-skeleton/co-skeleton.js +1 -1
  335. package/dist/collection/components/co-slider/co-slider.css +148 -5
  336. package/dist/collection/components/co-slider/co-slider.js +240 -21
  337. package/dist/collection/components/co-swatch-grid/co-swatch-grid.css +56 -0
  338. package/dist/collection/components/co-swatch-grid/co-swatch-grid.js +292 -0
  339. package/dist/collection/components/co-switch/co-switch.js +3 -3
  340. package/dist/collection/components/co-tab/co-tab.css +60 -0
  341. package/dist/collection/components/co-tab/co-tab.js +36 -6
  342. package/dist/collection/components/co-tab-group/co-tab-group.css +24 -0
  343. package/dist/collection/components/co-tab-group/co-tab-group.js +124 -2
  344. package/dist/collection/components/co-tab-group/revealTab.js +26 -0
  345. package/dist/collection/components/co-tags-field/co-tags-field.js +5 -5
  346. package/dist/collection/components/co-textarea/co-textarea.js +4 -4
  347. package/dist/collection/components/co-tile/co-tile.css +63 -0
  348. package/dist/collection/components/co-tile/co-tile.js +162 -0
  349. package/dist/collection/components/co-time-field/co-time-field.js +1 -1
  350. package/dist/collection/components/co-toast/co-toast.js +4 -4
  351. package/dist/collection/components/co-toggle-button/co-toggle-button.css +101 -0
  352. package/dist/collection/components/co-toggle-button/co-toggle-button.js +80 -8
  353. package/dist/collection/components/co-toggle-button-group/co-toggle-button-group.css +21 -0
  354. package/dist/collection/components/co-toggle-button-group/co-toggle-button-group.js +28 -7
  355. package/dist/collection/components/co-tooltip/co-tooltip.css +36 -0
  356. package/dist/collection/components/co-tooltip/co-tooltip.js +51 -3
  357. package/dist/collection/components/co-transfer-list/co-transfer-list.js +3 -3
  358. package/dist/collection/components/co-tree-item/co-tree-item.css +226 -0
  359. package/dist/collection/components/co-tree-item/co-tree-item.js +353 -0
  360. package/dist/collection/components/co-tree-item/treeItemI18n.js +16 -0
  361. package/dist/collection/components/co-video/co-video.js +2 -2
  362. package/dist/collection/utils/color.js +9 -5
  363. package/dist/collection/utils/dragMove.js +95 -0
  364. package/dist/collection/utils/gradientBarI18n.js +24 -0
  365. package/dist/collection/utils/gradientStops.js +142 -0
  366. package/dist/collection/utils/hsv.js +114 -0
  367. package/dist/collection/utils/kbdI18n.js +29 -0
  368. package/dist/collection/utils/positioning.js +44 -18
  369. package/dist/collection/utils/rich-text-host.js +109 -0
  370. package/dist/collection/utils/richTextI18n.js +45 -0
  371. package/dist/collection/utils/submenu.js +23 -3
  372. package/dist/collection/utils/swatchGridI18n.js +14 -0
  373. package/dist/collection/utils/test/fake-block-layout.js +41 -0
  374. package/dist/collection/utils/test/prosemirror-dom-shim.js +17 -0
  375. package/dist/collection/utils/test/shared-contract-css.js +9 -0
  376. package/dist/components/co-accordion.js +1 -1
  377. package/dist/components/co-action-bar.js +1 -1
  378. package/dist/components/co-app-shell.js +1 -1
  379. package/dist/components/co-audio-player.js +1 -1
  380. package/dist/components/co-autocomplete.js +1 -1
  381. package/dist/components/co-avatar-group.js +1 -1
  382. package/dist/components/co-avatar.js +1 -1
  383. package/dist/components/co-badge.js +1 -1
  384. package/dist/components/co-bottom-sheet.js +1 -1
  385. package/dist/components/co-breadcrumb-item.js +1 -1
  386. package/dist/components/co-breadcrumb.js +1 -1
  387. package/dist/components/co-button-group.js +1 -1
  388. package/dist/components/co-button.js +1 -1
  389. package/dist/components/co-calendar-month.js +1 -1
  390. package/dist/components/co-calendar-timegrid.js +1 -1
  391. package/dist/components/co-calendar.js +1 -1
  392. package/dist/components/co-card.js +1 -1
  393. package/dist/components/co-carousel-item.js +1 -1
  394. package/dist/components/co-carousel.js +1 -1
  395. package/dist/components/co-checkbox-group.js +1 -1
  396. package/dist/components/co-checkbox.js +1 -1
  397. package/dist/components/co-chip.js +1 -1
  398. package/dist/components/co-color-area.d.ts +11 -0
  399. package/dist/components/co-color-area.js +1 -0
  400. package/dist/components/co-color-picker.js +1 -1
  401. package/dist/components/co-color-slider.d.ts +11 -0
  402. package/dist/components/co-color-slider.js +1 -0
  403. package/dist/components/co-column-picker.js +1 -1
  404. package/dist/components/co-combobox.js +1 -1
  405. package/dist/components/co-command-search.js +1 -1
  406. package/dist/components/co-data-table-pagination.js +1 -1
  407. package/dist/components/co-data-table.js +1 -1
  408. package/dist/components/co-date-field.js +1 -1
  409. package/dist/components/co-date-picker.js +1 -1
  410. package/dist/components/co-date-range-picker.js +1 -1
  411. package/dist/components/co-date-range.js +1 -1
  412. package/dist/components/co-date-time-picker.js +1 -1
  413. package/dist/components/co-document-editor.d.ts +11 -0
  414. package/dist/components/co-document-editor.js +1 -0
  415. package/dist/components/co-drawer.js +1 -1
  416. package/dist/components/co-drive-card.js +1 -1
  417. package/dist/components/co-drop-zone.js +1 -1
  418. package/dist/components/co-emoji-picker.js +1 -1
  419. package/dist/components/co-empty-state.js +1 -1
  420. package/dist/components/co-event-calendar.js +1 -1
  421. package/dist/components/co-event-popover.js +1 -1
  422. package/dist/components/co-fab.js +1 -1
  423. package/dist/components/co-file-field.js +1 -1
  424. package/dist/components/co-file-type-tile.js +1 -1
  425. package/dist/components/co-gradient-bar.d.ts +11 -0
  426. package/dist/components/co-gradient-bar.js +1 -0
  427. package/dist/components/co-helper-text.js +1 -1
  428. package/dist/components/co-icon-button.js +1 -1
  429. package/dist/components/co-icon.js +1 -1
  430. package/dist/components/co-input.js +1 -1
  431. package/dist/components/co-json-field.js +1 -1
  432. package/dist/components/co-kbd.d.ts +11 -0
  433. package/dist/components/co-kbd.js +1 -0
  434. package/dist/components/co-lightbox.js +1 -1
  435. package/dist/components/co-list-footer.js +1 -1
  436. package/dist/components/co-list-item.js +1 -1
  437. package/dist/components/co-media-thumb.js +1 -1
  438. package/dist/components/co-menu-divider.js +1 -1
  439. package/dist/components/co-menu-item.js +1 -1
  440. package/dist/components/co-menu.js +1 -1
  441. package/dist/components/co-modal.js +1 -1
  442. package/dist/components/co-navbar.js +1 -1
  443. package/dist/components/co-number-field.js +1 -1
  444. package/dist/components/co-option-list.js +1 -1
  445. package/dist/components/co-overlay.js +1 -1
  446. package/dist/components/co-page-header.js +1 -1
  447. package/dist/components/co-phone-field.js +1 -1
  448. package/dist/components/co-popover.js +1 -1
  449. package/dist/components/co-progress-bar.js +1 -1
  450. package/dist/components/co-progress-circle.js +1 -1
  451. package/dist/components/co-radio-group.js +1 -1
  452. package/dist/components/co-radio.js +1 -1
  453. package/dist/components/co-rating.js +1 -1
  454. package/dist/components/co-ref-field.js +1 -1
  455. package/dist/components/co-rich-text-editor.js +1 -1
  456. package/dist/components/co-rich-text-toolbar.js +1 -1
  457. package/dist/components/co-rich-text-viewer.js +1 -1
  458. package/dist/components/co-row.js +1 -1
  459. package/dist/components/co-segmented-bar.js +1 -1
  460. package/dist/components/co-select.js +1 -1
  461. package/dist/components/co-separator.js +1 -1
  462. package/dist/components/co-sidebar-nav.js +1 -1
  463. package/dist/components/co-sidebar.js +1 -1
  464. package/dist/components/co-skeleton.js +1 -1
  465. package/dist/components/co-slider.js +1 -1
  466. package/dist/components/co-swatch-grid.d.ts +11 -0
  467. package/dist/components/co-swatch-grid.js +1 -0
  468. package/dist/components/co-switch.js +1 -1
  469. package/dist/components/co-tab-group.js +1 -1
  470. package/dist/components/co-tab.js +1 -1
  471. package/dist/components/co-tags-field.js +1 -1
  472. package/dist/components/co-textarea.js +1 -1
  473. package/dist/components/co-tile.d.ts +11 -0
  474. package/dist/components/co-tile.js +1 -0
  475. package/dist/components/co-time-field.js +1 -1
  476. package/dist/components/co-toast.js +1 -1
  477. package/dist/components/co-toggle-button-group.js +1 -1
  478. package/dist/components/co-toggle-button.js +1 -1
  479. package/dist/components/co-tooltip.js +1 -1
  480. package/dist/components/co-transfer-list.js +1 -1
  481. package/dist/components/co-tree-item.d.ts +11 -0
  482. package/dist/components/co-tree-item.js +1 -0
  483. package/dist/components/co-video.js +1 -1
  484. package/dist/components/index.js +1 -1
  485. package/dist/components/p-B1JT7us1.js +1 -0
  486. package/dist/components/{p-Nt4JJxbL.js → p-B20o5exO.js} +1 -1
  487. package/dist/components/{p-DNJAIVfI.js → p-B3kKOgsA.js} +1 -1
  488. package/dist/components/{p-P4HlMBlL.js → p-BIDSDP05.js} +1 -1
  489. package/dist/components/p-BOqtnWTJ.js +1 -0
  490. package/dist/components/p-BQltjDw5.js +1 -0
  491. package/dist/components/p-BR0LYW9v.js +1 -0
  492. package/dist/components/{p-BRbgGqLw.js → p-BVGGRfNG.js} +1 -1
  493. package/dist/components/p-BZDl9aFl.js +1 -0
  494. package/dist/components/p-BcXdId8y.js +1 -0
  495. package/dist/components/p-BmdKHBZP.js +1 -0
  496. package/dist/components/{p-NNxjElcX.js → p-BraiMwgs.js} +1 -1
  497. package/dist/components/p-BtliEQAT.js +1 -0
  498. package/dist/components/p-Bymi-A7C.js +1 -0
  499. package/dist/components/p-C-f8wTqe.js +1 -0
  500. package/dist/components/{p-BhCVadcA.js → p-C1jZYtUS.js} +1 -1
  501. package/dist/components/{p-CT2enQ6h.js → p-C3G8oPgU.js} +1 -1
  502. package/dist/components/{p-B56LX2SH.js → p-CGH3E8uK.js} +1 -1
  503. package/dist/components/p-COJdaKBU.js +1 -0
  504. package/dist/components/{p-BAYo-RBt.js → p-CRxTFT_z.js} +1 -1
  505. package/dist/components/{p-Du_CgT5E.js → p-CfJgypOl.js} +1 -1
  506. package/dist/components/{p-uxdXViMV.js → p-ChwSnCFf.js} +1 -1
  507. package/dist/components/{p-Dc_Kbari.js → p-CpGEV0iM.js} +1 -1
  508. package/dist/components/{p-DvR45CLa.js → p-D9or2g4j.js} +1 -1
  509. package/dist/components/{p-e5KibEs8.js → p-DJ468fPu.js} +1 -1
  510. package/dist/components/{p-DFlJMEJ-.js → p-DKXCr-hE.js} +1 -1
  511. package/dist/components/p-DU-KOQ8L.js +1 -0
  512. package/dist/components/p-DXLeDZvr.js +1 -0
  513. package/dist/components/{p-BGDqldEg.js → p-DfcPGitr.js} +1 -1
  514. package/dist/components/p-Dg-Ti_Bf.js +1 -0
  515. package/dist/components/p-Dh_eRYKu.js +1 -0
  516. package/dist/components/p-Dp650Gpp.js +1 -0
  517. package/dist/components/p-FA1kBmZ-.js +1 -0
  518. package/dist/components/p-RVQJEYxa.js +1 -0
  519. package/dist/components/p-d4rf3H8p.js +1 -0
  520. package/dist/components/{p-Dxa7c4Ap.js → p-dnaee7fS.js} +1 -1
  521. package/dist/components/p-f2xwcrXa.js +1 -0
  522. package/dist/esm/co-accordion.entry.js +3 -3
  523. package/dist/esm/co-action-bar.entry.js +3 -3
  524. package/dist/esm/co-app-shell.entry.js +3 -3
  525. package/dist/esm/co-audio-player.entry.js +4 -4
  526. package/dist/esm/co-autocomplete.entry.js +2 -2
  527. package/dist/esm/co-avatar-group.entry.js +1 -1
  528. package/dist/esm/co-avatar.entry.js +7 -4
  529. package/dist/esm/co-badge.entry.js +2 -2
  530. package/dist/esm/co-bottom-sheet.entry.js +5 -5
  531. package/dist/esm/co-breadcrumb-item.entry.js +3 -3
  532. package/dist/esm/co-breadcrumb.entry.js +2 -2
  533. package/dist/esm/co-button-group.entry.js +3 -3
  534. package/dist/esm/co-button.entry.js +9 -7
  535. package/dist/esm/co-calendar-month_2.entry.js +4 -4
  536. package/dist/esm/co-calendar_3.entry.js +72 -27
  537. package/dist/esm/co-card.entry.js +3 -3
  538. package/dist/esm/co-carousel-item.entry.js +2 -2
  539. package/dist/esm/co-carousel.entry.js +3 -3
  540. package/dist/esm/co-checkbox-group.entry.js +1 -1
  541. package/dist/esm/co-checkbox.entry.js +13 -5
  542. package/dist/esm/co-chip_2.entry.js +9 -6
  543. package/dist/esm/co-color-area.entry.js +167 -0
  544. package/dist/esm/co-color-picker.entry.js +5 -5
  545. package/dist/esm/co-color-slider.entry.js +187 -0
  546. package/dist/esm/co-column-picker.entry.js +3 -3
  547. package/dist/esm/co-combobox.entry.js +5 -5
  548. package/dist/esm/co-command-search.entry.js +5 -5
  549. package/dist/esm/co-data-table-pagination.entry.js +5 -5
  550. package/dist/esm/co-data-table.entry.js +3 -3
  551. package/dist/esm/co-date-picker.entry.js +2 -2
  552. package/dist/esm/co-date-range-picker.entry.js +2 -2
  553. package/dist/esm/co-date-range.entry.js +2 -2
  554. package/dist/esm/co-date-time-picker.entry.js +4 -4
  555. package/dist/esm/co-document-editor.entry.js +1159 -0
  556. package/dist/esm/co-drive-card.entry.js +2 -2
  557. package/dist/esm/co-drop-zone.entry.js +2 -2
  558. package/dist/esm/co-emoji-picker.entry.js +3 -3
  559. package/dist/esm/co-empty-state.entry.js +3 -3
  560. package/dist/esm/co-event-calendar.entry.js +3 -3
  561. package/dist/esm/co-event-popover.entry.js +3 -3
  562. package/dist/esm/co-fab.entry.js +3 -3
  563. package/dist/esm/co-file-field.entry.js +8 -8
  564. package/dist/esm/co-file-type-tile.entry.js +3 -3
  565. package/dist/esm/co-gradient-bar.entry.js +218 -0
  566. package/dist/esm/co-helper-text.entry.js +3 -3
  567. package/dist/esm/co-icon-button.entry.js +49 -9
  568. package/dist/esm/co-icon.entry.js +3 -3
  569. package/dist/esm/co-input.entry.js +14 -8
  570. package/dist/esm/co-json-field.entry.js +5 -5
  571. package/dist/esm/{co-tooltip.entry.js → co-kbd_2.entry.js} +194 -7
  572. package/dist/esm/co-lightbox.entry.js +5 -5
  573. package/dist/esm/co-list-footer.entry.js +2 -2
  574. package/dist/esm/co-list-item.entry.js +5 -5
  575. package/dist/esm/co-loader.entry.js +1 -1
  576. package/dist/esm/co-media-thumb.entry.js +3 -3
  577. package/dist/esm/co-menu-divider.entry.js +3 -3
  578. package/dist/esm/co-menu-item.entry.js +39 -41
  579. package/dist/esm/co-menu.entry.js +81 -5
  580. package/dist/esm/co-modal.entry.js +350 -7
  581. package/dist/esm/co-navbar.entry.js +3 -3
  582. package/dist/esm/co-number-field.entry.js +5 -5
  583. package/dist/esm/co-overlay.entry.js +8 -4
  584. package/dist/esm/co-page-header.entry.js +2 -2
  585. package/dist/esm/co-phone-field.entry.js +3 -3
  586. package/dist/esm/co-popover.entry.js +67 -6
  587. package/dist/esm/co-progress-bar.entry.js +3 -3
  588. package/dist/esm/co-progress-circle.entry.js +3 -3
  589. package/dist/esm/co-provider-logo_2.entry.js +2 -2
  590. package/dist/esm/co-radio-group.entry.js +4 -4
  591. package/dist/esm/co-radio.entry.js +4 -4
  592. package/dist/esm/co-rating.entry.js +4 -4
  593. package/dist/esm/co-ref-field.entry.js +5 -5
  594. package/dist/esm/co-rich-text-editor.entry.js +26 -92
  595. package/dist/esm/co-rich-text-toolbar.entry.js +79 -20
  596. package/dist/esm/co-rich-text-viewer.entry.js +9 -2
  597. package/dist/esm/co-row.entry.js +3 -3
  598. package/dist/esm/co-segmented-bar.entry.js +3 -3
  599. package/dist/esm/co-select.entry.js +158 -29
  600. package/dist/esm/co-separator.entry.js +2 -2
  601. package/dist/esm/co-sidebar-nav.entry.js +20 -5
  602. package/dist/esm/co-sidebar.entry.js +3 -3
  603. package/dist/esm/co-slider.entry.js +203 -23
  604. package/dist/esm/co-swatch-grid.entry.js +119 -0
  605. package/dist/esm/co-switch.entry.js +5 -5
  606. package/dist/esm/co-tab-group.entry.js +113 -4
  607. package/dist/esm/co-tab.entry.js +15 -5
  608. package/dist/esm/co-tags-field.entry.js +8 -8
  609. package/dist/esm/co-textarea.entry.js +6 -6
  610. package/dist/esm/co-tile.entry.js +59 -0
  611. package/dist/esm/co-time-field.entry.js +2 -2
  612. package/dist/esm/co-toast.entry.js +3 -3
  613. package/dist/esm/co-toggle-button-group.entry.js +26 -5
  614. package/dist/esm/co-toggle-button.entry.js +67 -6
  615. package/dist/esm/co-transfer-list.entry.js +3 -3
  616. package/dist/esm/co-tree-item.entry.js +108 -0
  617. package/dist/esm/co-video.entry.js +3 -3
  618. package/dist/esm/cobalt.js +3 -3
  619. package/dist/esm/{color-BRbgGqLw.js → color-BVGGRfNG.js} +10 -6
  620. package/dist/esm/{fieldChip-uyggU8VV.js → fieldChip-B2ctp2m6.js} +1 -1
  621. package/dist/esm/gradientStops-DDK0y8ra.js +145 -0
  622. package/dist/esm/hsv-COJdaKBU.js +90 -0
  623. package/dist/esm/index-Cpo8HTwr.js +142 -0
  624. package/dist/esm/{index-DH5lfRNj.js → index-DJkaRtbb.js} +67 -28
  625. package/dist/esm/loader.js +3 -3
  626. package/dist/esm/{index-BBIYyvq-.js → pagination-D9OfZUnY.js} +1728 -297
  627. package/dist/esm/{positioning-DFHRS9cJ.js → positioning-BtliEQAT.js} +45 -19
  628. package/dist/esm/{requiredMark-BCJUuZvC.js → requiredMark-D5C5NzOE.js} +1 -1
  629. package/dist/esm/rich-text-host-BmdKHBZP.js +111 -0
  630. package/dist/esm/{richTextI18n-BYKAgwq3.js → richTextI18n-xnrKkNWQ.js} +45 -0
  631. package/dist/esm/submenu-DU-KOQ8L.js +57 -0
  632. package/dist/esm/{toolbar-config-BAYo-RBt.js → toolbar-config-CRxTFT_z.js} +32 -0
  633. package/dist/types/components/co-avatar/co-avatar.d.ts +4 -2
  634. package/dist/types/components/co-button/co-button.d.ts +6 -4
  635. package/dist/types/components/co-calendar/calendarMarks.d.ts +15 -0
  636. package/dist/types/components/co-calendar/co-calendar.d.ts +16 -0
  637. package/dist/types/components/co-checkbox/co-checkbox.d.ts +7 -0
  638. package/dist/types/components/co-color-area/co-color-area.d.ts +64 -0
  639. package/dist/types/components/co-color-slider/co-color-slider.d.ts +61 -0
  640. package/dist/types/components/co-date-time-picker/co-date-time-picker.d.ts +1 -1
  641. package/dist/types/components/co-document-editor/change-throttle.d.ts +9 -0
  642. package/dist/types/components/co-document-editor/co-document-editor.d.ts +276 -0
  643. package/dist/types/components/co-document-editor/document-props.d.ts +6 -0
  644. package/dist/types/components/co-document-editor/header-tools.d.ts +11 -0
  645. package/dist/types/components/co-document-editor/image-bar.d.ts +50 -0
  646. package/dist/types/components/co-document-editor/page-styles.d.ts +1 -0
  647. package/dist/types/components/co-document-editor/zoom.d.ts +26 -0
  648. package/dist/types/components/co-gradient-bar/co-gradient-bar.d.ts +72 -0
  649. package/dist/types/components/co-icon-button/co-icon-button.d.ts +34 -2
  650. package/dist/types/components/co-input/co-input.d.ts +14 -5
  651. package/dist/types/components/co-kbd/co-kbd.d.ts +43 -0
  652. package/dist/types/components/co-menu/co-menu.d.ts +40 -1
  653. package/dist/types/components/co-menu-item/co-menu-item.d.ts +17 -0
  654. package/dist/types/components/co-modal/co-modal.d.ts +111 -2
  655. package/dist/types/components/co-option-list/co-option-list.d.ts +1 -0
  656. package/dist/types/components/co-option-list/optionListLogic.d.ts +3 -0
  657. package/dist/types/components/co-popover/co-popover.d.ts +36 -0
  658. package/dist/types/components/co-rich-text-editor/co-rich-text-editor.d.ts +2 -5
  659. package/dist/types/components/co-rich-text-toolbar/co-rich-text-toolbar.d.ts +17 -2
  660. package/dist/types/components/co-select/co-select.d.ts +47 -5
  661. package/dist/types/components/co-select/virtualRows.d.ts +44 -0
  662. package/dist/types/components/co-slider/co-slider.d.ts +143 -1
  663. package/dist/types/components/co-swatch-grid/co-swatch-grid.d.ts +37 -0
  664. package/dist/types/components/co-tab/co-tab.d.ts +12 -2
  665. package/dist/types/components/co-tab-group/co-tab-group.d.ts +37 -0
  666. package/dist/types/components/co-tab-group/revealTab.d.ts +29 -0
  667. package/dist/types/components/co-tile/co-tile.d.ts +40 -0
  668. package/dist/types/components/co-toggle-button/co-toggle-button.d.ts +37 -2
  669. package/dist/types/components/co-toggle-button-group/co-toggle-button-group.d.ts +20 -2
  670. package/dist/types/components/co-tooltip/co-tooltip.d.ts +12 -0
  671. package/dist/types/components/co-tree-item/co-tree-item.d.ts +73 -0
  672. package/dist/types/components/co-tree-item/treeItemI18n.d.ts +6 -0
  673. package/dist/types/components.d.ts +1744 -88
  674. package/dist/types/utils/color.d.ts +9 -1
  675. package/dist/types/utils/dragMove.d.ts +63 -0
  676. package/dist/types/utils/gradientBarI18n.d.ts +8 -0
  677. package/dist/types/utils/gradientStops.d.ts +63 -0
  678. package/dist/types/utils/hsv.d.ts +44 -0
  679. package/dist/types/utils/kbdI18n.d.ts +25 -0
  680. package/dist/types/utils/positioning.d.ts +24 -0
  681. package/dist/types/utils/rich-text-host.d.ts +41 -0
  682. package/dist/types/utils/richTextI18n.d.ts +15 -0
  683. package/dist/types/utils/submenu.d.ts +16 -2
  684. package/dist/types/utils/swatchGridI18n.d.ts +6 -0
  685. package/dist/types/utils/test/fake-block-layout.d.ts +7 -0
  686. package/dist/types/utils/test/prosemirror-dom-shim.d.ts +1 -0
  687. package/dist/types/utils/test/shared-contract-css.d.ts +9 -0
  688. package/package.json +5 -5
  689. package/dist/cobalt/p-0678c797.entry.js +0 -1
  690. package/dist/cobalt/p-1d3a79af.entry.js +0 -1
  691. package/dist/cobalt/p-216a63ee.entry.js +0 -1
  692. package/dist/cobalt/p-3d31c575.entry.js +0 -1
  693. package/dist/cobalt/p-416795f5.entry.js +0 -1
  694. package/dist/cobalt/p-56551580.entry.js +0 -1
  695. package/dist/cobalt/p-58137c9e.entry.js +0 -1
  696. package/dist/cobalt/p-5a3e4c81.entry.js +0 -1
  697. package/dist/cobalt/p-5c756787.entry.js +0 -1
  698. package/dist/cobalt/p-67f3b9d6.entry.js +0 -1
  699. package/dist/cobalt/p-6a4f3179.entry.js +0 -1
  700. package/dist/cobalt/p-71cbc53c.entry.js +0 -1
  701. package/dist/cobalt/p-72e52af7.entry.js +0 -1
  702. package/dist/cobalt/p-8530ad16.entry.js +0 -1
  703. package/dist/cobalt/p-8a74bf7d.entry.js +0 -1
  704. package/dist/cobalt/p-8e05b979.entry.js +0 -1
  705. package/dist/cobalt/p-8ebc0c12.entry.js +0 -1
  706. package/dist/cobalt/p-8f2199ff.entry.js +0 -1
  707. package/dist/cobalt/p-9246e09c.entry.js +0 -1
  708. package/dist/cobalt/p-99a655f6.entry.js +0 -1
  709. package/dist/cobalt/p-BYKAgwq3.js +0 -1
  710. package/dist/cobalt/p-CJW9H3Gi.js +0 -1
  711. package/dist/cobalt/p-DFHRS9cJ.js +0 -1
  712. package/dist/cobalt/p-DH5lfRNj.js +0 -2
  713. package/dist/cobalt/p-a1b422ca.entry.js +0 -1
  714. package/dist/cobalt/p-ade07307.entry.js +0 -1
  715. package/dist/cobalt/p-b0762fd8.entry.js +0 -1
  716. package/dist/cobalt/p-b698188c.entry.js +0 -1
  717. package/dist/cobalt/p-bde32f8b.entry.js +0 -1
  718. package/dist/cobalt/p-db805569.entry.js +0 -1
  719. package/dist/cobalt/p-e3aae282.entry.js +0 -1
  720. package/dist/cobalt/p-e49a564c.entry.js +0 -1
  721. package/dist/cobalt/p-ef301976.entry.js +0 -1
  722. package/dist/cobalt/p-f4e1c3c3.entry.js +0 -1
  723. package/dist/cobalt/p-fMqVDypp.js +0 -1
  724. package/dist/components/p-2EOI1nrz.js +0 -1
  725. package/dist/components/p-7TncUlLN.js +0 -1
  726. package/dist/components/p-B4NCaKrR.js +0 -1
  727. package/dist/components/p-BJh68Jqe.js +0 -1
  728. package/dist/components/p-BrAFTkAn.js +0 -1
  729. package/dist/components/p-Bsh0JMGf.js +0 -1
  730. package/dist/components/p-CJW9H3Gi.js +0 -1
  731. package/dist/components/p-CWCYYQrF.js +0 -1
  732. package/dist/components/p-D9T7zKeL.js +0 -1
  733. package/dist/components/p-DFHRS9cJ.js +0 -1
  734. package/dist/components/p-DTPYZwaZ.js +0 -1
  735. package/dist/components/p-Dcg4krSX.js +0 -1
  736. package/dist/components/p-Dh8ffSjK.js +0 -1
@@ -0,0 +1 @@
1
+ import{r as t,c as i,f as o,h as e,H as s,a as r}from"./p-DJkaRtbb.js";import{g as a}from"./p-xnrKkNWQ.js";import{b as c,s as n}from"./p-BmdKHBZP.js";import{B as d,F as h,E as l,w as u,r as g,Q as p,s as m,q as b,x as v,z as f,W as _,I as x,P as y,G as w}from"./p-RVQJEYxa.js";import"./p-B2QLgWrz.js";const k={top:38,right:38,bottom:38,left:38},z=new Set(["letter","a4","legal"]);function C(t){if("string"==typeof t){if(z.has(t))return t;try{return C(JSON.parse(t))}catch(t){return"letter"}}if(t&&"object"==typeof t){const{width:i,height:o}=t;if(Number(i)>0&&Number(o)>0)return{width:Number(i),height:Number(o)}}return"letter"}const $=/@(import|charset|namespace)[^;]*;/gi;function S(t,i){return t?M(t.replace(/\/\*[\s\S]*?\*\//g,"").replace($,""),i).trim():""}function P(t,i){let o=0,e=null;for(let s=i;s<t.length;s+=1){const i=t[s];if(e)i===e&&"\\"!==t[s-1]&&(e=null);else if('"'===i||"'"===i)e=i;else if("{"===i)o+=1;else if("}"===i&&(o-=1,0===o))return s}return-1}function H(t,i){const o=t.trim();if(!o)return"";const e=`:where(${i})`;if("*"===o)return`${e}, ${e} *, ${e} :is(pre, code)`;const s=o.replace(/^(?:(?:html|body|:root)(?=$|[\s>+~.#:[])\s*)+/i,"").trim();return s?`${e} ${s}`:e}function M(t,i){let o="",e=0;for(;e<t.length;){const s=t.indexOf("{",e);if(-1===s)break;const r=P(t,s);if(-1===r)break;const a=t.slice(e,s).trim(),c=t.slice(s+1,r);if(e=r+1,!a)continue;if(a.startsWith("@")){const t=a.slice(1).split(/[\s(]/)[0].toLowerCase();"media"===t||"supports"===t?o+=`${a}{${M(c,i)}}`:t.endsWith("keyframes")&&(o+=`${a}{${c}}`);continue}const n=a.split(",").map((t=>H(t,i))).filter(Boolean);n.length&&(o+=`${n.join(", ")}{${c}}`)}return o}function N(t){return Number.isFinite(t)?Math.round(1e3*Math.min(3,Math.max(.25,t)))/1e3:1}function E(t,i,o){return o>0?(t-i)/o:0}function j(t,i,o,e){return t+i*o-e}const O={inline:"image-square","wrap-left":"text-align-left","wrap-right":"text-align-right",break:"rows"},I={width:124,height:34};function L(t,i){let o=0,e=t;for(;e&&e!==i;)o+=e.offsetLeft,e=e.offsetParent;return o}let B=0;const F=class{constructor(o){t(this,o),this.coChange=i(this,"coChange",3),this.coFieldsChange=i(this,"coFieldsChange",3),this.coHeaderChange=i(this,"coHeaderChange",3),this.coPagesChange=i(this,"coPagesChange",3),this.coAction=i(this,"coAction",3),this.coReady=i(this,"coReady",3),this.value=null,this.headerHtml="",this.showPageNumber=!1,this.pageSize="letter",this.headerHeight=45,this.pageStyles="",this.readonly=!1,this.locale="en",this.ready=!1,this.pageCount=1,this.zoomMode="fit",this.scale=1,this.stageHeight=0,this.headerEditing=!1,this.draftShowPageNumber=!1,this.imageBar=null,this.currentHeaderHtml="",this.currentShowPageNumber=!1,this.headerDoc=null,this.instanceId=String(++B),this.applyingExternal=!1,this.lastAppliedValue=null,this.userDirty=!1,this.lastFieldsKey="",this.pendingImageSrcs=new Set,this.changeThrottle=function(t,i){let o=null;return{run(){o||(o=setTimeout((()=>{o=null,i()}),250))},flush(){o&&(clearTimeout(o),o=null,i())},cancel(){o&&clearTimeout(o),o=null},get pending(){return null!==o}}}(0,(()=>this.emitPendingChange())),this.updateImageBar=()=>{const t=this.editor,i=null==t?void 0:t.state.selection,o=null==i?void 0:i.node;if(!t||this.readonly||!o||"image"!==o.type.name)return void(this.imageBar&&(this.imageBar=null));const e=t.view.nodeDOM(i.from),s=this.el.querySelector(".co-doc-editor__sheet");if(!e||!s)return void(this.imageBar&&(this.imageBar=null));const r=w(e,s),a=function(t,i,o=I,e=4){const s=t.top+t.height+e,r=t.top-e-o.height;let a=s,c="below";i.height>0&&s+o.height>i.height&&(r>=0?(a=r,c="above"):(a=Math.max(0,Math.min(t.top+t.height-e-o.height,i.height-o.height)),c="inside"));let n=t.left;return i.width>0&&(n=Math.max(0,Math.min(n,i.width-o.width))),{top:a,left:n,placement:c}}({top:r.top,height:r.height,left:L(e,s)},{width:s.offsetWidth,height:s.offsetHeight}),c=d({wrapperStyle:o.attrs.wrapperStyle,containerStyle:o.attrs.containerStyle}),n=this.imageBar;n&&n.mode===c&&n.top===a.top&&n.left===a.left||(this.imageBar={mode:c,top:a.top,left:a.left})},this.onBodyImageLoad=t=>{const i=t.target,o=this.editor;if(!o||!i||"IMG"!==i.tagName)return;const e=i.getAttribute("src")||"";if(!this.pendingImageSrcs.has(e))return;let s=-1;o.state.doc.descendants(((t,i)=>!(s>=0||("image"!==t.type.name||t.attrs.width||t.attrs.src!==e||(s=i),0))));const r=s>=0?o.state.doc.nodeAt(s):null;if(!r)return;const a=this.marginsPx,c=function(t,i){const o=t>0?t:0,e=i>0?i:0,s=o&&e?Math.min(o,e):o||e;return s?Math.max(1,Math.round(s)):null}(i.naturalWidth,this.pageSizePx.width-a.left-a.right);if(!c)return;let n=!1;o.state.doc.descendants(((t,i)=>(i===s||"image"!==t.type.name||t.attrs.width||t.attrs.src!==e||(n=!0),!n))),n||this.pendingImageSrcs.delete(e);const d=o.state.selection.node&&o.state.selection.from===s;o.view.dispatch(o.state.tr.setNodeMarkup(s,void 0,Object.assign(Object.assign({},r.attrs),{width:c}))),d&&o.commands.setNodeSelection(s)},this.onEditorBlur=()=>{this.changeThrottle.flush()},this.onHostKeydown=t=>{"Escape"===t.key&&this.changeThrottle.flush()},this.onTransaction=({transaction:t})=>{t.docChanged&&(this.applyingExternal||!!t.getMeta(h)||(this.userDirty=!0,this.trackInsertedImages(t)),this.changeThrottle.run())},this.handleToolbarAction=t=>{t.stopPropagation();const{action:i,payload:o}=t.detail||{};o&&!0===o.extra?this.coAction.emit({action:i,payload:{extra:!0}}):"documentHeader"===i&&this.startHeaderEdit()},this.startHeaderEdit=()=>{this.readonly||this.headerEditing||!this.editor||(this.draftShowPageNumber=this.currentShowPageNumber,this.headerEditing=!0,this.refreshPagination())},this.onHeaderTransaction=({transaction:t})=>{t.docChanged&&this.changeThrottle.run()},this.onHeaderImageLoad=t=>{const i=t.target,o=this.headerEditor;if(!o||!i||"IMG"!==i.tagName)return;const e=l({w:i.naturalWidth,h:i.naturalHeight});if(!e)return;let s=-1;try{const t=o.view.posAtDOM(i,0),e=o.state.doc.nodeAt(t);e&&"image"===e.type.name&&(s=t)}catch(t){}if(s<0){const t=i.getAttribute("src");o.state.doc.descendants(((i,o)=>!(s>=0||("image"!==i.type.name||i.attrs.width||i.attrs.src!==t||(s=o),0))))}const r=s>=0?o.state.doc.nodeAt(s):null;r&&!r.attrs.width&&o.view.dispatch(o.state.tr.setNodeMarkup(s,void 0,Object.assign(Object.assign({},r.attrs),{width:e})))},this.onDocumentPointer=t=>{const i=t.composedPath();this.headerBandEl&&i.includes(this.headerBandEl)||this.toolbarEl&&i.includes(this.toolbarEl)||this.commitHeader()},this.onHeaderKeydown=t=>{var i;if("Escape"!==t.key||t.isComposing)return;const o=this.toolbarEl;o&&t.currentTarget===o&&(null===(i=o.shadowRoot)||void 0===i?void 0:i.querySelector('[aria-expanded="true"]'))||(t.preventDefault(),t.stopPropagation(),this.cancelHeader(!0))},this.commitHeader=(t=!1)=>{var i;const o=this.headerEditor;if(!o)return;const e=t&&this.focusIsInBandOrLost(),s=o.isEmpty?"":u(o.state.doc,"print-header",this.resolvedFeatures),r=this.draftShowPageNumber;this.teardownHeaderEditor(),this.currentHeaderHtml=s,this.currentShowPageNumber=r,this.headerDoc=s?g(s,"print-header",this.resolvedFeatures):null,this.headerEditing=!1,this.refreshPagination(),this.coHeaderChange.emit({html:s,showPageNumber:r}),this.emitFieldsIfChanged(),e&&(null===(i=this.editor)||void 0===i||i.commands.focus())},this.cancelHeader=(t=!1)=>{var i;this.headerEditing&&(this.teardownHeaderEditor(),this.headerEditing=!1,this.refreshPagination(),this.emitFieldsIfChanged(),t&&(null===(i=this.editor)||void 0===i||i.commands.focus()))},this.renderedScale=1,this.onCanvasWheel=t=>{var i,o;(t.ctrlKey||t.metaKey)&&(t.preventDefault(),this.zoomTo((i=this.scale,o=1===t.deltaMode?16*t.deltaY:t.deltaY,Number.isFinite(o)?N(i*Math.exp(.01*-o)):i),t.clientX,t.clientY))},this.gestureBase=1,this.onGestureStart=t=>{t.preventDefault(),this.gestureBase=this.scale},this.onGestureChange=t=>{var i,o,e,s;t.preventDefault();const r=null===(i=this.canvasEl)||void 0===i?void 0:i.getBoundingClientRect(),a=null!==(o=t.clientX)&&void 0!==o?o:r?r.left+r.width/2:0,c=null!==(e=t.clientY)&&void 0!==e?e:r?r.top+r.height/2:0;this.zoomTo(N(this.gestureBase*(null!==(s=t.scale)&&void 0!==s?s:1)),a,c)}}get s(){return a(this.locale)}get resolvedFeatures(){var t;return null!==(t=c(this.features))&&void 0!==t?t:{}}get parsedExtraItems(){const t=c(this.extraItems);return Array.isArray(t)?t:[]}get pageSizePx(){return p(C(this.pageSize))}get marginsPx(){return function(t){let i=t;if("string"==typeof t)try{i=JSON.parse(t)}catch(t){return Object.assign({},k)}if(!i||"object"!=typeof i)return Object.assign({},k);const o=i,e=t=>Number.isFinite(Number(o[t]))&&void 0!==o[t]?Number(o[t]):k[t];return{top:e("top"),right:e("right"),bottom:e("bottom"),left:e("left")}}(this.margins)}get hasHeader(){return!!this.currentHeaderHtml||this.headerEditing}get sanitizedHeaderHtml(){return m(this.currentHeaderHtml,"print-header")}get pageScope(){return`.co-doc-editor__sheet[data-co-doc="${this.instanceId}"]`}get activeEditor(){var t;return null!==(t=this.headerEditor)&&void 0!==t?t:this.editor}get documentHeaderEnabled(){return!this.readonly&&!this.headerEditing}buildCustomExtensions(){return[b.configure({page:this.pageSizePx,margins:this.marginsPx,header:{height:this.hasHeader?this.headerHeight:0},footer:{height:0},renderHeader:(t,i)=>this.buildHeaderClone(t,i),onPagesChange:t=>{this.pageCount=t,this.coPagesChange.emit(t)}})]}collectAllFields(){if(!this.editor)return[];const t=v(this.editor.state.doc),i=this.headerEditor?this.headerEditor.state.doc:this.headerDoc;return i&&v(i,t),t}connectedCallback(){this.el.addEventListener("keydown",this.onHostKeydown,!0)}componentWillLoad(){this.ready=!1,this.pageCount=1,this.zoomMode="fit",this.scale=1,this.stageHeight=0,this.headerEditing=!1,this.draftShowPageNumber=!1,this.imageBar=null}componentDidLoad(){var t,i,o;this.contentEl&&(this.syncHeaderFromProps(),this.editor=f({preset:"print",element:this.contentEl,content:this.value?this.parseBody(this.value):null,editable:!this.readonly,features:this.resolvedFeatures,labels:{signature:t=>`${this.s.signature} ${t}`,fieldName:this.s.fieldNamePlaceholder},customExtensions:this.buildCustomExtensions(),imageUpload:this.imageUpload}),this.lastAppliedValue=this.value,this.wireEditor(this.editor),this.applyPageStyles(),"undefined"!=typeof ResizeObserver&&(this.resizeObserver=new ResizeObserver((()=>this.updateScale())),this.canvasEl&&this.resizeObserver.observe(this.canvasEl),this.stageEl&&this.resizeObserver.observe(this.stageEl)),null===(t=this.canvasEl)||void 0===t||t.addEventListener("wheel",this.onCanvasWheel,{passive:!1}),null===(i=this.canvasEl)||void 0===i||i.addEventListener("gesturestart",this.onGestureStart),null===(o=this.canvasEl)||void 0===o||o.addEventListener("gesturechange",this.onGestureChange),this.updateScale(),this.syncToolbar(),this.ready=!0,this.emitFieldsIfChanged(),this.coReady.emit())}componentDidRender(){this.applyPendingAnchor(),this.headerEditing&&!this.headerEditor&&this.headerMountEl&&this.mountHeaderEditor(),this.syncToolbar()}disconnectedCallback(){var t,i,o,e;this.el.removeEventListener("keydown",this.onHostKeydown,!0),this.changeThrottle.cancel(),null===(t=this.resizeObserver)||void 0===t||t.disconnect(),this.resizeObserver=void 0,null===(i=this.canvasEl)||void 0===i||i.removeEventListener("wheel",this.onCanvasWheel),null===(o=this.canvasEl)||void 0===o||o.removeEventListener("gesturestart",this.onGestureStart),null===(e=this.canvasEl)||void 0===e||e.removeEventListener("gesturechange",this.onGestureChange),this.toolbarEl&&(this.toolbarEl.editor=void 0),this.teardownHeaderEditor(!1),this.headerEditing=!1,this.editor&&(this.editor.off("transaction",this.onTransaction),this.editor.off("blur",this.onEditorBlur),this.editor.off("transaction",this.updateImageBar),this.editor.view.dom.removeEventListener("load",this.onBodyImageLoad,!0),this.editor.destroy()),this.editor=void 0,this.pendingImageSrcs.clear(),this.imageBar=null}onValueChange(t){t!==this.lastAppliedValue&&(this.editor&&t&&t===u(this.editor.state.doc,"print",this.resolvedFeatures)?this.lastAppliedValue=t:this.applyBody(t))}onReadonlyChange(){var t;null===(t=this.editor)||void 0===t||t.setEditable(!this.readonly),this.readonly&&this.headerEditing&&this.cancelHeader(),this.updateImageBar()}onPageGeometryChange(){this.refreshPagination(),this.updateScale()}onHeaderPropsChange(){this.headerEditing||(this.syncHeaderFromProps(),this.refreshPagination(),this.emitFieldsIfChanged())}onPageStylesChange(){this.applyPageStyles()}onLabelChange(){this.editor&&this.editor.view.dom.setAttribute("aria-label",this.label||this.s.documentEditor)}onLocaleChange(){this.currentShowPageNumber&&this.refreshPagination()}async getPrintHtml(){return this.editor?u(this.editor.state.doc,"print",this.resolvedFeatures):""}async getHeaderHtml(){return this.currentHeaderHtml}async getJSON(){return this.editor?this.editor.getJSON():null}async flushChange(){this.changeThrottle.flush()}async isEmpty(){return!this.editor||this.editor.isEmpty}async setContent(t){this.applyBody(t)}async setFieldValues(t){var i,e;if(null===(i=this.editor)||void 0===i||i.commands.setFieldValues(t),null===(e=this.headerEditor)||void 0===e||e.commands.setFieldValues(t),!this.currentHeaderHtml)return;const s=_(this.currentHeaderHtml,t,"print-header",this.resolvedFeatures);s!==this.currentHeaderHtml&&(this.currentHeaderHtml=s,this.headerDoc=g(s,"print-header",this.resolvedFeatures),this.headerEditing||(this.refreshPagination(),o(this)))}async insertField(t,i){var o;null===(o=this.editor)||void 0===o||o.chain().focus().insertField(t,i).run()}async insertSignatureSlot(){var t;null===(t=this.editor)||void 0===t||t.chain().focus().insertSignatureSlot().run()}async focusEditor(){var t;null===(t=this.editor)||void 0===t||t.commands.focus()}async getEditorInstance(){var t;return null!==(t=this.editor)&&void 0!==t?t:null}wireEditor(t){const i=t.view.dom;i.classList.add("tiptap"),i.setAttribute("aria-label",this.label||this.s.documentEditor),i.setAttribute("aria-multiline","true"),t.on("transaction",this.onTransaction),t.on("transaction",this.updateImageBar),t.on("blur",this.onEditorBlur),i.addEventListener("load",this.onBodyImageLoad,!0)}imageModeLabel(t){const i=this.s;return{inline:i.imageLayoutInline,"wrap-left":i.imageLayoutWrapLeft,"wrap-right":i.imageLayoutWrapRight,break:i.imageLayoutBreak}[t]}setImageMode(t){var i;null===(i=this.editor)||void 0===i||i.commands.setImageLayoutMode(t),this.updateImageBar()}trackInsertedImages(t){var i,o,e;if(t.getMeta("history$"))return;const s=[];for(const r of t.steps)null===(e=null===(o=null===(i=r.slice)||void 0===i?void 0:i.content)||void 0===o?void 0:o.descendants)||void 0===e||e.call(o,(t=>{"image"===t.type.name&&!t.attrs.width&&t.attrs.src&&s.push(t.attrs.src)}));if(!s.length)return;const r=new Set;t.before.descendants((t=>{"image"!==t.type.name||t.attrs.width||r.add(t.attrs.src)})),s.forEach((t=>{r.has(t)||this.pendingImageSrcs.add(t)}))}parseBody(t){const i=t.trim();if(i.startsWith("{"))try{return JSON.parse(i)}catch(t){}return g(t,"print",this.resolvedFeatures)}applyBody(t){if(this.editor){this.pendingImageSrcs.clear(),this.applyingExternal=!0;try{t?this.editor.commands.setContent(this.parseBody(t),{emitUpdate:!1}):this.editor.commands.clearContent(!1)}finally{this.applyingExternal=!1,this.lastAppliedValue=t}}}emitPendingChange(){this.editor&&(this.emitFieldsIfChanged(),this.userDirty&&(this.userDirty=!1,this.coChange.emit()))}emitFieldsIfChanged(){const t=this.collectAllFields(),i=JSON.stringify(t);i!==this.lastFieldsKey&&(this.lastFieldsKey=i,this.coFieldsChange.emit(t))}syncToolbar(){n(this.toolbarEl,this.activeEditor,this.imageUpload)}syncHeaderFromProps(){var t;this.currentHeaderHtml=this.headerHtml||"",this.currentShowPageNumber=!0===(t=this.showPageNumber)||"true"===t,this.headerDoc=this.currentHeaderHtml?g(this.currentHeaderHtml,"print-header",this.resolvedFeatures):null}mountHeaderEditor(){var t,i;const o=f({preset:"print-header",element:this.headerMountEl,content:this.currentHeaderHtml?g(this.currentHeaderHtml,"print-header",this.resolvedFeatures):null,editable:!0,features:{fields:this.resolvedFeatures.fields},labels:{fieldName:this.s.fieldNamePlaceholder},imageUpload:this.imageUpload});this.headerEditor=o;const e=o.view.dom;e.classList.add("tiptap"),e.setAttribute("aria-label",this.s.documentHeader),o.on("transaction",this.onHeaderTransaction),e.addEventListener("load",this.onHeaderImageLoad,!0),document.addEventListener("mousedown",this.onDocumentPointer,!0),null===(t=this.headerBandEl)||void 0===t||t.addEventListener("keydown",this.onHeaderKeydown,!0),null===(i=this.toolbarEl)||void 0===i||i.addEventListener("keydown",this.onHeaderKeydown,!0),o.commands.focus("end"),this.syncToolbar()}teardownHeaderEditor(t=!0){var i,o;document.removeEventListener("mousedown",this.onDocumentPointer,!0),null===(i=this.headerBandEl)||void 0===i||i.removeEventListener("keydown",this.onHeaderKeydown,!0),null===(o=this.toolbarEl)||void 0===o||o.removeEventListener("keydown",this.onHeaderKeydown,!0);const e=this.headerEditor;this.headerEditor=void 0,t?this.syncToolbar():this.toolbarEl&&e&&this.toolbarEl.editor===e&&(this.toolbarEl.editor=void 0),e&&(e.off("transaction",this.onHeaderTransaction),e.view.dom.removeEventListener("load",this.onHeaderImageLoad,!0),e.destroy())}focusIsInBandOrLost(){const t=document.activeElement;return!t||t===document.body||!(!this.headerBandEl||!this.headerBandEl.contains(t))}refreshPagination(){var t;null===(t=this.editor)||void 0===t||t.commands.setPaginationOptions({page:this.pageSizePx,margins:this.marginsPx,header:{height:this.hasHeader?this.headerHeight:0}})}applyPageStyles(){this.styleEl&&(this.styleEl.textContent=S(this.pageStyles,this.pageScope))}buildHeaderClone(t,i){if(!this.currentHeaderHtml)return null;const o=document.createElement("div");o.className="co-doc-editor__header-static",o.style.height=`${this.headerHeight}px`;const e=document.createElement("div");if(e.className="co-doc-editor__header-html",e.innerHTML=this.sanitizedHeaderHtml,o.appendChild(e),this.currentShowPageNumber){const e=document.createElement("span");e.className="co-doc-editor__page-number",e.textContent=`${this.s.page} ${t} / ${i}`,o.appendChild(e)}return o}updateScale(){var t,i,o,e;if("custom"!==this.zoomMode){const o="actual"===this.zoomMode?1:function(t,i){if(!(t>0&&i>0))return 1;const o=Math.min(1,Math.max(.25,t/i));return Math.round(1e3*o)/1e3}((null!==(i=null===(t=this.canvasEl)||void 0===t?void 0:t.clientWidth)&&void 0!==i?i:0)-32,this.pageSizePx.width);o!==this.scale&&(this.scale=o)}const s=null!==(e=null===(o=this.stageEl)||void 0===o?void 0:o.offsetHeight)&&void 0!==e?e:0;s!==this.stageHeight&&(this.stageHeight=s)}zoomTo(t,i,o){if(this.canvasEl&&this.stageEl&&t!==this.scale){if(this.pendingAnchor)this.pendingAnchor.cx=i,this.pendingAnchor.cy=o;else{const t=this.stageEl.getBoundingClientRect();this.pendingAnchor={px:E(i,t.left,this.renderedScale),py:E(o,t.top,this.renderedScale),cx:i,cy:o}}this.zoomMode="custom",this.scale=t}}applyPendingAnchor(){const t=this.pendingAnchor,i=this.canvasEl;if(this.renderedScale=this.scale,!t||!i||!this.stageEl)return;this.pendingAnchor=void 0;const o=this.stageEl.getBoundingClientRect();i.scrollLeft+=j(o.left,t.px,this.scale,t.cx),i.scrollTop+=j(o.top,t.py,this.scale,t.cy)}setZoom(t){this.zoomMode=t,this.updateScale()}renderHeaderBand(){const t=this.s;return e("div",{key:"header-band",class:{"co-doc-editor__header-band":!0,"co-doc-editor__header-band--editing":this.headerEditing},part:"header-band",hidden:!this.hasHeader,ref:t=>this.headerBandEl=t,onDblClick:()=>this.startHeaderEdit()},this.headerEditing?e("div",{key:"header-editing",class:"co-doc-editor__header-editing"},e("div",{class:"co-doc-editor__header-editor",ref:t=>this.headerMountEl=t}),e("div",{class:"co-doc-editor__header-tools"},e("co-switch",{checked:this.draftShowPageNumber,label:t.pageNumber,disabled:!1,required:!1,status:"default",onCoChange:t=>{t.stopPropagation(),this.draftShowPageNumber=!!t.detail}}),e("co-tooltip",{content:t.confirmHeader},e("co-icon-button",{icon:"check",variant:"ghost",size:"xs",boxSize:28,iconSize:16,label:t.confirmHeader,onClick:()=>this.commitHeader(!0)})))):e("div",{key:"header-static",class:"co-doc-editor__header-static"},e("div",{class:"co-doc-editor__header-html",innerHTML:this.sanitizedHeaderHtml}),this.currentShowPageNumber&&e("span",{class:"co-doc-editor__page-number"},`${t.page} 1 / ${this.pageCount}`)))}renderOverlays(){const t=this.imageBar;return!t||this.readonly||this.headerEditing?null:e("div",{key:"image-bar",class:"co-doc-editor__image-bar",role:"toolbar","aria-label":this.s.imageLayoutLabel,style:{top:`${t.top}px`,left:`${t.left}px`},onMouseDown:t=>t.preventDefault()},x.map((i=>{const o=this.imageModeLabel(i),s=t.mode===i;return e("co-tooltip",{key:i,content:o},e("button",{type:"button",class:{"co-doc-editor__image-mode":!0,"co-doc-editor__image-mode--active":s},"data-mode":i,"aria-label":o,"aria-pressed":String(s),onClick:()=>this.setImageMode(i)},e("co-icon",{name:O[i],size:16,"aria-hidden":"true"})))})))}render(){const t=this.s,i=this.pageSizePx,o=this.marginsPx,r={"--co-doc-page-w":`${i.width}px`,"--co-doc-page-h":`${i.height}px`,"--co-doc-margin-top":`${o.top}px`,"--co-doc-margin-right":`${o.right}px`,"--co-doc-margin-bottom":`${o.bottom}px`,"--co-doc-margin-left":`${o.left}px`,"--co-doc-header-h":`${this.hasHeader?this.headerHeight:0}px`,"--co-doc-pages":String(this.pageCount),"--co-doc-gap":`${y}px`},a={width:i.width*this.scale+"px",height:this.stageHeight?this.stageHeight*this.scale+"px":"auto"},c=(t,i)=>e("button",{key:"3a2671fec095ced83d7c345f817770833a3ea2c3",type:"button",class:{"co-doc-editor__zoom-btn":!0,"co-doc-editor__zoom-btn--active":this.zoomMode===t},"aria-pressed":String(this.zoomMode===t),onClick:()=>this.setZoom(t)},i);return e(s,{key:"9f52b22003b54313cf5231804a476690778b22b6"},e("div",{key:"88184e065b0f6184c3d06097c4243d1ebe7bc6c5",class:{"co-doc-editor":!0,"co-doc-editor--readonly":this.readonly,"co-doc-editor--loading":!this.ready},part:"wrapper"},e("div",{key:"a1cf9f2eb7c23f8a4ca9b2f5098222f54d0168a8",class:"co-doc-editor__bar",part:"bar"},!this.readonly&&e("co-rich-text-toolbar",{key:"889ae86009703a14bec362608e2e81770f963ff0",class:"co-doc-editor__toolbar",part:"toolbar",variant:"document",position:"top",disabled:!1,locale:this.locale,attachmentsEnabled:!1,documentHeaderEnabled:this.documentHeaderEnabled,extraItems:this.parsedExtraItems,onCoAction:this.handleToolbarAction,ref:t=>this.toolbarEl=t}),e("div",{key:"ed349a7dd902fa1569e9efb4e77611835bfa4236",class:"co-doc-editor__zoom",role:"group","aria-label":t.zoom},"custom"===this.zoomMode&&e("span",{key:"a80bfe10a8fea8822084935ed8dbf6b7c0835b2c",class:"co-doc-editor__zoom-level"},`${Math.round(100*this.scale)} %`),c("fit",t.zoomFit),c("actual",t.zoomActual))),e("div",{key:"dd283d50eb5712d34e5568727be504aa972a3b2a",class:"co-doc-editor__body"},e("div",{key:"972162fb86e9b560bcf9d86e50a548cb8fea1d7b",class:"co-doc-editor__canvas",part:"canvas",ref:t=>this.canvasEl=t},e("div",{key:"409e773a4ba786ea867816a8715585dce000d618",class:"co-doc-editor__zoom-frame",style:a},e("div",{key:"0ad67ae01d7aebb0f7f7fd1cacbddc2db3c7c7cc",class:"co-doc-editor__stage",style:{transform:`scale(${this.scale})`},ref:t=>this.stageEl=t},e("div",{key:"e8ca10170b25ff5bd4ebf9382205c1b84bae844a",class:"co-doc-editor__sheet",part:"sheet","data-co-doc":this.instanceId,style:r},e("style",{key:"page-styles","data-co-doc-page-styles":"",ref:t=>this.styleEl=t}),e("div",{key:"paper",class:"co-doc-editor__paper","data-theme":"light"},this.renderHeaderBand(),e("div",{key:"content",class:"co-doc-editor__content",ref:t=>this.contentEl=t}),this.renderOverlays()))))),e("slot",{key:"9a3f5af0b445a56513ac894ac7a6ff67314e611d",name:"aside"}))))}get el(){return r(this)}static get watchers(){return{value:[{onValueChange:0}],readonly:[{onReadonlyChange:0}],pageSize:[{onPageGeometryChange:0}],margins:[{onPageGeometryChange:0}],headerHeight:[{onPageGeometryChange:0}],headerHtml:[{onHeaderPropsChange:0}],showPageNumber:[{onHeaderPropsChange:0}],pageStyles:[{onPageStylesChange:0}],label:[{onLabelChange:0}],locale:[{onLabelChange:0},{onLocaleChange:0}]}}};F.style="co-document-editor{display:block;height:100%;min-height:0}.co-doc-editor{--co-doc-canvas:var(--co-semantic-surface-muted);--co-doc-sheet-shadow:0 1px 3px var(--co-color-opacity-negro-16), 0 0 0 1px var(--co-color-opacity-negro-8);display:flex;flex-direction:column;height:100%;min-height:0;background:var(--co-doc-canvas);color:var(--co-semantic-text-default);font-family:var(--co-font-family-primary)}.co-doc-editor__bar{display:flex;align-items:center;gap:var(--co-spacing-sm2);min-width:0;padding-inline:var(--co-spacing-md);background:var(--co-semantic-surface-page);border-bottom:1px solid var(--co-semantic-border-subtle)}.co-doc-editor__toolbar{flex:1 1 auto;min-width:0}.co-doc-editor__body{flex:1 1 auto;display:flex;min-height:0}.co-doc-editor__body>[slot='aside']{flex:0 0 var(--co-doc-aside-width, 320px);width:var(--co-doc-aside-width, 320px);min-width:0;min-height:0;box-sizing:border-box;border-left:1px solid var(--co-semantic-border-subtle)}.co-doc-editor__canvas{flex:1 1 auto;min-width:0;overflow:auto;box-sizing:border-box;padding:var(--co-spacing-2xl) var(--co-spacing-lg)}.co-doc-editor__content .ProseMirror{position:relative;outline:none}.co-doc-editor--loading .co-doc-editor__content{visibility:hidden}.co-doc-field{--co-doc-field-bg:var(--co-color-primary-amarillo);background:var(--co-doc-field-bg);box-shadow:0 0 0 2px var(--co-doc-field-bg);border-radius:var(--co-border-radius-xxs);color:var(--co-color-base-negro);cursor:pointer}.co-doc-field--empty{--co-doc-field-bg:color-mix(in srgb, var(--co-color-primary-amarillo) 55%, var(--co-color-base-blanco))}.co-doc-field--required.co-doc-field--empty{box-shadow:0 0 0 2px var(--co-doc-field-bg), inset 0 -2px 0 var(--co-color-status-error)}.co-doc-field__input{width:14ch;border:0;outline:1px solid var(--co-semantic-border-focus);background:var(--co-color-base-blanco);font:inherit}.co-doc-signature{display:inline-flex;align-items:center;justify-content:center;vertical-align:top;box-sizing:border-box;outline:1px dashed var(--co-color-primary-azul);outline-offset:-1px;background:color-mix(in srgb, var(--co-color-primary-azul) 6%, transparent);color:var(--co-color-primary-azul);font-size:var(--co-font-size-12);user-select:none}.co-doc-hb{background:color-mix(in srgb, var(--co-color-primary-azul) 12%, transparent);border-radius:var(--co-border-radius-xxs)}.co-doc-editor__zoom{display:inline-flex;flex-shrink:0;align-items:center;gap:var(--co-spacing-xxs);margin-inline-start:auto}.co-doc-editor__zoom-level{min-width:5ch;padding-inline:var(--co-spacing-xs);font-size:var(--co-font-size-13);font-variant-numeric:tabular-nums;text-align:end;color:var(--co-semantic-text-secondary)}.co-doc-editor__zoom-btn{padding:var(--co-spacing-xs) var(--co-spacing-sm2);border:0;border-radius:var(--co-border-radius-xs);background:transparent;color:var(--co-semantic-text-secondary);font:inherit;font-size:var(--co-font-size-13);white-space:nowrap;cursor:pointer}.co-doc-editor__zoom-btn:hover{background:var(--co-semantic-surface-hover)}.co-doc-editor__zoom-btn--active{background:var(--co-semantic-surface-hover);color:var(--co-semantic-text-default)}.co-doc-editor__zoom-btn:focus-visible{outline:1px solid var(--co-semantic-border-focus);box-shadow:0 0 0 2px var(--co-semantic-border-focus-ring)}.co-doc-editor__zoom-frame{margin-inline:auto}.co-doc-editor__stage{width:var(--co-doc-page-w);transform-origin:top left}.co-doc-editor__sheet{--co-semantic-surface-page:var(--co-color-base-blanco);--co-semantic-surface-hover:var(--co-color-opacity-negro-8);--co-semantic-text-default:var(--co-color-base-negro);--co-semantic-text-secondary:var(--co-color-gray-600);--co-semantic-text-muted:var(--co-color-gray-500);--co-semantic-border-default:var(--co-color-opacity-negro-16);--co-semantic-border-subtle:var(--co-color-opacity-negro-8);--co-semantic-border-field:var(--co-color-opacity-negro-25);--co-semantic-border-focus:var(--co-color-opacity-negro-50);--co-semantic-border-focus-ring:var(--co-color-opacity-negro-8);position:relative;width:var(--co-doc-page-w);min-height:calc(var(--co-doc-pages, 1) * var(--co-doc-page-h) + (var(--co-doc-pages, 1) - 1) * var(--co-doc-gap));box-sizing:border-box;padding-top:calc(var(--co-doc-margin-top) + var(--co-doc-header-h, 0px));padding-right:var(--co-doc-margin-right);padding-bottom:var(--co-doc-margin-bottom);padding-left:var(--co-doc-margin-left);overflow:clip;background:var(--co-color-base-blanco);color:var(--co-color-base-negro);color-scheme:light;box-shadow:var(--co-doc-sheet-shadow)}.co-doc-editor__paper{display:contents;color:var(--co-semantic-text-default)}.co-doc-editor .co-doc-editor__sheet .co-doc-editor__content .ProseMirror.tiptap{padding:0 !important;min-height:1em}.co-doc-editor__header-band{position:absolute;top:var(--co-doc-margin-top);left:var(--co-doc-margin-left);right:var(--co-doc-margin-right);height:var(--co-doc-header-h);box-sizing:border-box}.co-doc-editor__header-band[hidden]{display:none}.co-doc-editor__header-band:hover{outline:1px dashed var(--co-color-opacity-negro-25)}.co-doc-editor__header-static{display:flex;align-items:center;justify-content:space-between;height:100%;overflow:hidden;font-size:var(--co-font-size-12);line-height:1.5;user-select:none}.co-doc-editor__header-html{flex:1 1 auto;min-width:0;max-height:100%;overflow:hidden}.co-doc-editor__page-number{flex-shrink:0;margin-inline-start:var(--co-spacing-sm2);white-space:nowrap;color:var(--co-color-gray-600)}.co-doc-page-gap,.co-doc-page-gap__foot,.co-doc-page-gap__between,.co-doc-page-gap__head{margin:0 !important;padding:0 !important;border-width:0 !important;box-sizing:border-box !important}.co-doc-editor__sheet .co-doc-page-gap{position:relative;margin-left:calc(-1 * var(--co-doc-margin-left)) !important;margin-right:calc(-1 * var(--co-doc-margin-right)) !important;user-select:none}.co-doc-page-gap__between{background:var(--co-doc-canvas);border-image:linear-gradient(var(--co-doc-canvas), var(--co-doc-canvas)) fill 0 / 0 / 0 100vmax;box-shadow:inset 0 1px 0 var(--co-color-opacity-negro-8), inset 0 4px 3px -3px var(--co-color-opacity-negro-16), inset 0 -1px 0 var(--co-color-opacity-negro-8)}:is(ul,ol)>.co-doc-page-gap{list-style:none}.co-doc-editor__sheet .co-doc-page-gap__head{padding-top:var(--co-doc-margin-top) !important;padding-left:var(--co-doc-margin-left) !important;padding-right:var(--co-doc-margin-right) !important}.co-doc-page-gap-row>td{padding:0 !important;border:0 !important;background:transparent !important}.co-doc-editor__header-band--editing,.co-doc-editor__header-band--editing:hover{outline:1px solid var(--co-semantic-border-focus);outline-offset:2px}.co-doc-editor__header-editing{display:flex;align-items:center;gap:var(--co-spacing-sm2);height:100%}.co-doc-editor__header-editor{flex:1 1 auto;min-width:0;max-height:100%;overflow:hidden;font-size:var(--co-font-size-12);line-height:1.5}.co-doc-editor__header-editor .ProseMirror{outline:none}.co-doc-editor__header-tools{position:absolute;right:0;bottom:100%;display:flex;align-items:center;gap:var(--co-spacing-xs);padding:var(--co-spacing-xxs) var(--co-spacing-xs);box-sizing:border-box;background:var(--co-semantic-surface-page);border:1px solid var(--co-semantic-border-default);border-radius:var(--co-border-radius-xs)}.co-doc-editor__image-bar{position:absolute;z-index:2;display:flex;gap:var(--co-spacing-xxs);padding:var(--co-spacing-xxs);box-sizing:border-box;background:var(--co-semantic-surface-page);border:1px solid var(--co-semantic-border-default);border-radius:var(--co-border-radius-xs);user-select:none}.co-doc-editor__image-bar co-tooltip{display:inline-flex}.co-doc-editor__image-mode{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:0;border-radius:var(--co-border-radius-xxs);background:transparent;color:var(--co-semantic-text-default);cursor:pointer}.co-doc-editor__image-mode:hover,.co-doc-editor__image-mode--active{background:var(--co-semantic-surface-hover)}.co-doc-editor__image-mode--active{box-shadow:inset 0 0 0 1px var(--co-semantic-border-focus)}.co-doc-editor__image-mode:focus-visible{outline:1px solid var(--co-semantic-border-focus);box-shadow:0 0 0 2px var(--co-semantic-border-focus-ring)}.co-doc-editor__image-mode--active:focus-visible{box-shadow:inset 0 0 0 1px var(--co-semantic-border-focus), 0 0 0 2px var(--co-semantic-border-focus-ring)}";export{F as co_document_editor}
@@ -1 +1 @@
1
- import{r as o,h as a,a as c}from"./p-DH5lfRNj.js";const r=class{constructor(a){o(this,a),this.variant="elevated",this.padding="md",this.clickable=!1,this.stretch=!1,this.hasHeader=!1,this.hasFooter=!1,this.handleHeaderSlotChange=()=>{this.hasHeader=this.checkSlot("header")},this.handleFooterSlotChange=()=>{this.hasFooter=this.checkSlot("footer")}}checkSlot(o){var a,c,r;return(null!==(r=null===(c=null===(a=this.el.shadowRoot)||void 0===a?void 0:a.querySelector(`slot[name="${o}"]`))||void 0===c?void 0:c.assignedElements())&&void 0!==r?r:[]).length>0}render(){return a("div",{key:"52e3eb679a025b1b53854b38063b6fa951cf9f70",class:{"co-card":!0,[`co-card--${this.variant}`]:!0,[`co-card--pad-${this.padding}`]:!0,"co-card--clickable":this.clickable,"co-card--stretch":this.stretch},part:"card",role:this.clickable?"button":void 0,tabIndex:this.clickable?0:void 0},a("div",{key:"753b2277a6629673e8583774e126b2472709221d",class:{"co-card__header":!0,"co-card__header--empty":!this.hasHeader},part:"header"},a("slot",{key:"f73192e7fa291c8a2d831a0f9db7ebe8a7ef8907",name:"header",onSlotchange:this.handleHeaderSlotChange})),a("div",{key:"2916b424d3cb1feacf438678132d10217df51ad9",class:"co-card__body",part:"body"},a("slot",{key:"f957907056567d135c3de5d412251911c7cf8db0"})),a("div",{key:"f1f183b7d3eacbd11787e0cc3d0ef438f8272480",class:{"co-card__footer":!0,"co-card__footer--empty":!this.hasFooter},part:"footer"},a("slot",{key:"2171a95906d5b862c7b39a756cafee17d86f7dbc",name:"footer",onSlotchange:this.handleFooterSlotChange})))}get el(){return c(this)}};r.style=":host{display:block}:host([stretch]){height:100%}.co-card{display:flex;flex-direction:column;font-family:var(--co-font-family-primary);background:var(--co-semantic-surface-page);border-radius:var(--co-border-radius-lg);overflow:hidden;box-sizing:border-box}.co-card--stretch{height:100%}.co-card--elevated{box-shadow:0 1px 3px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.06)}.co-card--outlined{border:1px solid var(--co-semantic-border-subtle)}.co-card--flat{background:var(--co-semantic-surface-muted)}.co-card--pad-none .co-card__header,.co-card--pad-none .co-card__body,.co-card--pad-none .co-card__footer{padding:0}.co-card--pad-none .co-card__header{border-bottom:none}.co-card--pad-none .co-card__footer{border-top:none}.co-card--pad-sm .co-card__header,.co-card--pad-sm .co-card__body,.co-card--pad-sm .co-card__footer{padding:var(--co-spacing-sm) var(--co-spacing-md)}.co-card--pad-md .co-card__header,.co-card--pad-md .co-card__body,.co-card--pad-md .co-card__footer{padding:var(--co-spacing-md) var(--co-spacing-lg)}.co-card--pad-lg .co-card__header,.co-card--pad-lg .co-card__body,.co-card--pad-lg .co-card__footer{padding:var(--co-spacing-lg) var(--co-spacing-xl)}.co-card__body{flex:1;display:flex;flex-direction:column}.co-card__header{border-bottom:1px solid var(--co-semantic-border-subtle)}.co-card__header--empty{display:none}.co-card__footer{border-top:1px solid var(--co-semantic-border-subtle)}.co-card__footer--empty{display:none}.co-card--clickable{cursor:pointer;transition:box-shadow var(--co-motion-duration-base) var(--co-motion-ease-out), transform var(--co-motion-duration-base) var(--co-motion-ease-out)}.co-card--clickable:hover{box-shadow:0 4px 16px rgba(0, 0, 0, 0.1), 0 8px 24px rgba(0, 0, 0, 0.06);transform:translateY(-2px)}.co-card--clickable:active{transform:translateY(0)}.co-card--clickable:focus-visible{outline:2px solid var(--co-semantic-border-focus);outline-offset:2px}";export{r as co_card}
1
+ import{r as a,h as o,a as c}from"./p-DJkaRtbb.js";const r=class{constructor(o){a(this,o),this.variant="elevated",this.padding="md",this.clickable=!1,this.stretch=!1,this.hasHeader=!1,this.hasFooter=!1,this.handleHeaderSlotChange=()=>{this.hasHeader=this.checkSlot("header")},this.handleFooterSlotChange=()=>{this.hasFooter=this.checkSlot("footer")}}checkSlot(a){var o,c,r;return(null!==(r=null===(c=null===(o=this.el.shadowRoot)||void 0===o?void 0:o.querySelector(`slot[name="${a}"]`))||void 0===c?void 0:c.assignedElements())&&void 0!==r?r:[]).length>0}render(){return o("div",{key:"e1ba367c02ad068e72d2daa1f90e2bbdcf262290",class:{"co-card":!0,[`co-card--${this.variant}`]:!0,[`co-card--pad-${this.padding}`]:!0,"co-card--clickable":this.clickable,"co-card--stretch":this.stretch},part:"card",role:this.clickable?"button":void 0,tabIndex:this.clickable?0:void 0},o("div",{key:"265eae5ea9ca7765fa84c135d3141b21a1495212",class:{"co-card__header":!0,"co-card__header--empty":!this.hasHeader},part:"header"},o("slot",{key:"c639a5613b94a6cd5afadee4a508de80744f61a5",name:"header",onSlotchange:this.handleHeaderSlotChange})),o("div",{key:"ace57349938320967253d0a6a32600c9a8580a47",class:"co-card__body",part:"body"},o("slot",{key:"85b3b510c8004fe9753bce5de6a1c39754d09b38"})),o("div",{key:"011b688e835090f81c85d5207fc80fc7794b48fe",class:{"co-card__footer":!0,"co-card__footer--empty":!this.hasFooter},part:"footer"},o("slot",{key:"565877135c3a16cbce2a8e15b0c9c4bc76dfbec1",name:"footer",onSlotchange:this.handleFooterSlotChange})))}get el(){return c(this)}};r.style=":host{display:block}:host([stretch]){height:100%}.co-card{display:flex;flex-direction:column;font-family:var(--co-font-family-primary);background:var(--co-semantic-surface-page);border-radius:var(--co-border-radius-lg);overflow:hidden;box-sizing:border-box}.co-card--stretch{height:100%}.co-card--elevated{box-shadow:0 1px 3px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.06)}.co-card--outlined{border:1px solid var(--co-semantic-border-subtle)}.co-card--flat{background:var(--co-semantic-surface-muted)}.co-card--pad-none .co-card__header,.co-card--pad-none .co-card__body,.co-card--pad-none .co-card__footer{padding:0}.co-card--pad-none .co-card__header{border-bottom:none}.co-card--pad-none .co-card__footer{border-top:none}.co-card--pad-sm .co-card__header,.co-card--pad-sm .co-card__body,.co-card--pad-sm .co-card__footer{padding:var(--co-spacing-sm) var(--co-spacing-md)}.co-card--pad-md .co-card__header,.co-card--pad-md .co-card__body,.co-card--pad-md .co-card__footer{padding:var(--co-spacing-md) var(--co-spacing-lg)}.co-card--pad-lg .co-card__header,.co-card--pad-lg .co-card__body,.co-card--pad-lg .co-card__footer{padding:var(--co-spacing-lg) var(--co-spacing-xl)}.co-card__body{flex:1;display:flex;flex-direction:column}.co-card__header{border-bottom:1px solid var(--co-semantic-border-subtle)}.co-card__header--empty{display:none}.co-card__footer{border-top:1px solid var(--co-semantic-border-subtle)}.co-card__footer--empty{display:none}.co-card--clickable{cursor:pointer;transition:box-shadow var(--co-motion-duration-base) var(--co-motion-ease-out), transform var(--co-motion-duration-base) var(--co-motion-ease-out)}.co-card--clickable:hover{box-shadow:0 4px 16px rgba(0, 0, 0, 0.1), 0 8px 24px rgba(0, 0, 0, 0.06);transform:translateY(-2px)}.co-card--clickable:active{transform:translateY(0)}.co-card--clickable:focus-visible{outline:2px solid var(--co-semantic-border-focus);outline-offset:2px}";export{r as co_card}
@@ -0,0 +1 @@
1
+ import{r as t,h as o,a as i}from"./p-DJkaRtbb.js";import{c as s,g as e,f as a}from"./p-BtliEQAT.js";const r={es:{ctrl:"Ctrl",shift:"Shift",alt:"Alt",win:"Win"},en:{ctrl:"Ctrl",shift:"Shift",alt:"Alt",win:"Win"},pt:{ctrl:"Ctrl",shift:"Shift",alt:"Alt",win:"Win"}},n={mod:"command",cmd:"command",shift:"arrow-fat-up",alt:"option",ctrl:"control"};function c(t){return"mod"===t||"cmd"===t||"shift"===t||"alt"===t||"ctrl"===t}function l(t,o,i){if("mac"===o)switch(t){case"mod":case"cmd":return"Cmd";case"shift":return"Shift";case"alt":return"Option";case"ctrl":return"Control"}switch(t){case"mod":case"ctrl":return i.ctrl;case"cmd":return i.win;case"shift":return i.shift;case"alt":return i.alt}}const h=class{constructor(o){t(this,o),this.keys="",this.platform="auto",this.surface="light",this.size="sm",this.chord=!1}resolvePlatform(){return"mac"===this.platform?"mac":"win"===this.platform?"win":function(){if("undefined"==typeof navigator)return!1;const t=navigator.platform||"",o=navigator.userAgent||"";return/Mac/i.test(t)||/Mac/i.test(o)}()?"mac":"win"}render(){const t=this.keys.split("+").map((t=>t.trim().toLowerCase())).filter(Boolean),i=this.resolvePlatform(),s=r[function(t){const o=(t||"").toLowerCase();return o.startsWith("es")?"es":o.startsWith("pt")?"pt":"en"}(this.locale)],e="sm"===this.size?12:10,a=t.map((t=>c(t)?l(t,i,s):t.toUpperCase())).join(" + "),h=t=>c(t)&&"mac"===i,p=(t,e)=>h(t)?o("co-icon",{name:n[t],size:e}):c(t)?l(t,i,s):t.toUpperCase(),d=[];return this.chord?d.push(o("kbd",{class:"co-kbd__key co-kbd__key--chord",part:"key",key:"chord"},t.map(((t,i)=>o("span",{class:{"co-kbd__cell":!0,"co-kbd__cell--icon":h(t),"co-kbd__cell--text":!h(t)},part:"cell",key:`cell-${i}`},p(t,12)))))):t.forEach(((t,i)=>{i>0&&d.push(o("span",{class:"co-kbd__sep",part:"sep",key:`sep-${i}`},"+")),d.push(o("kbd",{class:"co-kbd__key",part:"key",key:`key-${i}`},p(t,e)))})),o("span",{key:"7a99812a76e02cf357694da3bbea990118c8fff5",class:{"co-kbd":!0,[`co-kbd--${this.size}`]:!0,[`co-kbd--${this.surface}`]:!0,"co-kbd--chord":this.chord},role:"group","aria-label":a,part:"group"},d)}};h.style=":host{display:inline-flex}.co-kbd{display:inline-flex;align-items:center;gap:var(--co-spacing-xxs, 2px)}.co-kbd__sep{font-family:var(--co-font-family-primary, 'Geist', sans-serif);font-size:var(--co-font-size-10, 10px);line-height:1;opacity:0.6}.co-kbd__key{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;font-family:var(--co-font-family-primary, 'Geist', sans-serif);font-style:normal;font-weight:var(--co-font-weight-medium, 500);font-size:var(--co-font-size-10, 10px);line-height:1;text-transform:uppercase;border-radius:var(--co-border-radius-xxs, 4px)}.co-kbd--sm .co-kbd__key{min-width:30px;height:18px;padding:0 3px}.co-kbd--xs .co-kbd__key{width:16px;height:16px;padding:0}.co-kbd__cell{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:12px;height:12px;flex-shrink:0;white-space:nowrap}.co-kbd__cell--icon{width:12px}.co-kbd__cell--text{width:auto;padding:0 1px}.co-kbd--xs .co-kbd__key--chord{width:auto;min-width:16px;height:16px;padding:0 2px}.co-kbd--light .co-kbd__key{background:var(--co-semantic-surface-control, #f6f6f6);color:var(--co-semantic-text-default, #1f1c1b)}.co-kbd--light .co-kbd__sep{color:var(--co-semantic-text-default, #1f1c1b)}.co-kbd--dark .co-kbd__key{background:var(--co-color-opacity-blanco-16, rgba(255, 255, 255, 0.16));color:var(--co-color-base-blanco, #fff)}.co-kbd--dark .co-kbd__sep{color:var(--co-color-base-blanco, #fff)}";const p=class{constructor(o){t(this,o),this.content="",this.placement="top",this.offset=8,this.showDelay=80,this.hideDelay=100,this.disabled=!1,this.arrow=!0,this.flip=!0,this.maxWidth="280px",this.block=!1,this.variant="default",this.visible=!1,this.actualPlacement="top",this.closing=!1,this.suppressed=!1,this.scrollParents=[],this.cachedOffsetAncestor=null,this.offsetAncestorComputed=!1,this.scheduleShow=()=>{this.disabled||!this.content||this.suppressed||(this.clearHideTimeout(),this.visible||(this.showTimeout=setTimeout((()=>{this.visible=!0}),this.showDelay)))},this.scheduleHide=()=>{this.clearShowTimeout(),this.visible&&(this.hideTimeout=setTimeout((()=>{this.visible=!1}),this.hideDelay))},this.hideImmediate=()=>{this.clearTimers(),this.visible=!1},this.finishClose=()=>{clearTimeout(this.closeFallbackTimer),this.visible||(this.closing=!1,this.panelEl=void 0)},this.handlePanelTransitionEnd=t=>{!this.visible&&this.closing&&t.target===this.panelEl&&"opacity"===t.propertyName&&this.finishClose()},this.handleMouseEnter=()=>{this.scheduleShow()},this.handleMouseLeave=()=>{this.suppressed=!1,this.scheduleHide()},this.handlePointerDown=()=>{this.suppressed=!0,this.hideImmediate()},this.handleFocusIn=()=>{this.scheduleShow()},this.handleFocusOut=()=>{this.suppressed=!1,this.scheduleHide()},this.handleKeyDown=t=>{"Escape"===t.key&&this.visible&&this.hideImmediate()},this.updatePosition=()=>{if(!this.visible||!this.triggerEl||!this.panelEl)return;const t=this.triggerEl.getBoundingClientRect(),o=this.panelEl.getBoundingClientRect();if(0===o.width&&0===o.height)return;const{top:i,left:a,actualPlacement:r}=s(t,o,{placement:this.placement,offset:this.offset,flip:this.flip});this.actualPlacement=r;let n=i,c=a;if(!this.panelEl.matches(":popover-open")&&(this.offsetAncestorComputed||(this.cachedOffsetAncestor=e(this.panelEl),(this.cachedOffsetAncestor||this.panelEl.isConnected)&&(this.offsetAncestorComputed=!0)),this.cachedOffsetAncestor)){const t=this.cachedOffsetAncestor.getBoundingClientRect();n-=t.top,c-=t.left}this.panelEl&&(this.panelEl.style.top=`${n}px`,this.panelEl.style.left=`${c}px`,this.panelEl.classList.add("co-tooltip__panel--positioned"))},this.scheduleUpdate=()=>{this.rafId&&cancelAnimationFrame(this.rafId),this.rafId=requestAnimationFrame(this.updatePosition)}}disconnectedCallback(){this.clearTimers(),this.cleanupListeners(),clearTimeout(this.closeFallbackTimer),this.closing=!1}onVisibleChange(t){t?(this.closing=!1,clearTimeout(this.closeFallbackTimer),this.scheduleUpdate(),requestAnimationFrame((()=>{requestAnimationFrame((()=>{this.updatePosition()}))})),this.addScrollListeners()):(this.cleanupListeners(),this.cachedOffsetAncestor=null,this.offsetAncestorComputed=!1,this.closing=!0,clearTimeout(this.closeFallbackTimer),this.closeFallbackTimer=setTimeout((()=>this.finishClose()),250))}onDisabledChange(t){t&&this.visible&&(this.visible=!1,this.clearTimers())}clearShowTimeout(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=void 0)}clearHideTimeout(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=void 0)}clearTimers(){this.clearShowTimeout(),this.clearHideTimeout()}promotePanel(){const t=this.panelEl;if(t&&"function"==typeof t.showPopover)try{t.matches(":popover-open")||t.showPopover()}catch(t){}}addScrollListeners(){window.addEventListener("resize",this.scheduleUpdate,{passive:!0}),window.addEventListener("scroll",this.scheduleUpdate,{passive:!0,capture:!0}),this.scrollParents=a(this.el);for(const t of this.scrollParents)t.addEventListener("scroll",this.scheduleUpdate,{passive:!0})}cleanupListeners(){this.rafId&&(cancelAnimationFrame(this.rafId),this.rafId=void 0),window.removeEventListener("resize",this.scheduleUpdate),window.removeEventListener("scroll",this.scheduleUpdate,{capture:!0});for(const t of this.scrollParents)t.removeEventListener("scroll",this.scheduleUpdate);this.scrollParents=[]}render(){const t=this.actualPlacement.split("-")[0];return o("div",{key:"42e40af183afae3fe39ea52e7ab834d2e2ef2a1f",class:"co-tooltip"},o("div",{key:"021c63ead4abcfc8bd938657af0f4486a710e1d0",class:"co-tooltip__trigger",ref:t=>this.triggerEl=t,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onPointerDown:this.handlePointerDown,onFocusin:this.handleFocusIn,onFocusout:this.handleFocusOut,onKeyDown:this.handleKeyDown,"aria-describedby":this.visible?"tooltip-panel":void 0},o("slot",{key:"93bfbae6583c49cd0e38accce52b2ee7029a3bc0"})),(this.visible||this.closing)&&this.content&&o("div",{key:"d5bf6003b83490d21869f41ae49c24dd347b7d82",id:"tooltip-panel",class:{"co-tooltip__panel":!0,[`co-tooltip__panel--${t}`]:!0,"co-tooltip__panel--closing":this.closing,"co-tooltip__panel--label":"label"===this.variant,"co-tooltip__panel--with-shortcut":!!this.shortcut},role:"tooltip",popover:"manual",part:"panel",onTransitionEnd:this.handlePanelTransitionEnd,ref:t=>{t&&t!==this.panelEl&&(this.panelEl=t,this.promotePanel(),this.scheduleUpdate())},style:{maxWidth:this.maxWidth}},this.arrow&&o("div",{key:"1f3ef81dd7d655e68958321a33a5d405ba671f83",class:`co-tooltip__arrow co-tooltip__arrow--${t}`}),o("span",{key:"a33a95e77ee0bc6922a0c81a63f9862b2ccf9bf5",class:"co-tooltip__content"},this.content),this.shortcut&&o("co-kbd",{key:"608bba77bfc7d43a3ca4d4a2f0c87290b1a9de57",keys:this.shortcut,surface:"dark",size:"xs"})))}get el(){return i(this)}static get watchers(){return{visible:[{onVisibleChange:0}],disabled:[{onDisabledChange:0}]}}};p.style=":host{display:inline-block;position:relative}.co-tooltip{display:inline-block}.co-tooltip__trigger{display:inline-block}:host([block]){display:block;width:100%;min-width:0}:host([block]) .co-tooltip,:host([block]) .co-tooltip__trigger{display:block;width:100%;min-width:0}.co-tooltip__panel{position:fixed;inset:auto;top:0;left:0;margin:0;border:0;max-height:none;overflow:visible;z-index:10000;visibility:hidden;opacity:0;pointer-events:none;background:var(--co-color-base-negro, #1f1c1b);color:var(--co-color-base-blanco, #fff);font-family:var(--co-font-family-primary, 'Geist', sans-serif);font-size:var(--co-font-size-12, 12px);line-height:1.4;font-weight:400;text-transform:none;letter-spacing:var(--co-font-letter-spacing-body, normal);padding:var(--co-spacing-xs, 4px) var(--co-spacing-sm, 8px);border-radius:var(--co-border-radius-xxs, 4px);box-shadow:0 4px 12px rgba(31, 28, 27, 0.12);white-space:normal;word-wrap:break-word;transition:opacity var(--co-motion-duration-fast) var(--co-motion-ease-out), transform var(--co-motion-duration-fast) var(--co-motion-ease-out)}.co-tooltip__panel--positioned{visibility:visible;opacity:1}.co-tooltip__panel--closing{visibility:visible;opacity:0;transition:opacity var(--co-motion-duration-instant) var(--co-motion-ease-in), transform var(--co-motion-duration-instant) var(--co-motion-ease-in)}.co-tooltip__panel--top{transform:translateY(4px)}.co-tooltip__panel--top.co-tooltip__panel--positioned{transform:translateY(0)}.co-tooltip__panel--bottom{transform:translateY(-4px)}.co-tooltip__panel--bottom.co-tooltip__panel--positioned{transform:translateY(0)}.co-tooltip__panel--left{transform:translateX(4px)}.co-tooltip__panel--left.co-tooltip__panel--positioned{transform:translateX(0)}.co-tooltip__panel--right{transform:translateX(-4px)}.co-tooltip__panel--right.co-tooltip__panel--positioned{transform:translateX(0)}.co-tooltip__arrow{position:absolute;width:0;height:0;border:5px solid transparent}.co-tooltip__arrow--top{bottom:-10px;left:50%;transform:translateX(-50%);border-top-color:var(--co-color-base-negro, #1f1c1b);border-bottom:none}.co-tooltip__arrow--bottom{top:-5px;left:50%;transform:translateX(-50%);border-bottom-color:var(--co-color-base-negro, #1f1c1b);border-top:none}.co-tooltip__arrow--left{right:-10px;top:50%;transform:translateY(-50%);border-left-color:var(--co-color-base-negro, #1f1c1b);border-right:none}.co-tooltip__arrow--right{left:-5px;top:50%;transform:translateY(-50%);border-right-color:var(--co-color-base-negro, #1f1c1b);border-left:none}.co-tooltip__content{display:block}.co-tooltip__panel--label{padding:4px 8px;border-radius:var(--co-border-radius-xs, 8px);font-weight:var(--co-font-weight-medium, 500);line-height:1;box-shadow:none}.co-tooltip__panel--label .co-tooltip__arrow{display:none}.co-tooltip__panel--with-shortcut{display:flex;align-items:center;gap:6px}.co-tooltip__panel--with-shortcut:not(.co-tooltip__panel--label){padding-right:10px;}.co-tooltip__panel--label.co-tooltip__panel--with-shortcut{padding-right:4px}";export{h as co_kbd,p as co_tooltip}
@@ -1 +1 @@
1
- import{r as t,c as i,h as s,H as e,a as o}from"./p-DH5lfRNj.js";import{l as a}from"./p-jYd9gu_c.js";const r={es:{prevSlide:"Diapositiva anterior",nextSlide:"Diapositiva siguiente",goToSlide:"Ir a la diapositiva {i}",pickSlide:"Elegir diapositiva",carouselLabel:"Carrusel",slideLabel:"{i} de {n}"},en:{prevSlide:"Previous slide",nextSlide:"Next slide",goToSlide:"Go to slide {i}",pickSlide:"Choose slide",carouselLabel:"Carousel",slideLabel:"{i} of {n}"},pt:{prevSlide:"Slide anterior",nextSlide:"Próximo slide",goToSlide:"Ir para o slide {i}",pickSlide:"Escolher slide",carouselLabel:"Carrossel",slideLabel:"{i} de {n}"}};function c(t){return r[a(t)]}const h=class{constructor(s){t(this,s),this.coSlideChange=i(this,"coSlideChange",7),this.value=0,this.autoplay=!1,this.interval=6e3,this.loop=!0,this.arrows=!0,this.dots=!0,this.pauseOnHover=!0,this.swipe=!0,this.aspectRatio="auto",this.locale="es",this.itemCount=0,this.dragDx=0,this.dragging=!1,this.rotating=!1,this.hovering=!1,this.focusWithin=!1,this.reducedMotion=!1,this.pointerStartX=0,this.pointerStartY=0,this.pointerId=-1,this.suppressClick=!1,this.handleSlotChange=()=>{this.refreshItems()},this.handleVisibilityChange=()=>{document.hidden?this.stopAutoplay():this.restartAutoplay()},this.handleMotionChange=t=>{this.reducedMotion=t.matches,this.restartAutoplay()},this.handleMouseEnter=()=>{this.hovering=!0,this.pauseOnHover&&this.stopAutoplay()},this.handleMouseLeave=()=>{this.hovering=!1,this.restartAutoplay()},this.handleFocusIn=()=>{this.focusWithin=!0,this.stopAutoplay()},this.handleFocusOut=t=>{t.relatedTarget&&this.el.contains(t.relatedTarget)||(this.focusWithin=!1,this.restartAutoplay())},this.handlePointerDown=t=>{this.dragging||!this.swipe||this.itemCount<=1||"mouse"===t.pointerType&&0!==t.button||(this.suppressClick=!1,this.pointerId=t.pointerId,this.pointerStartX=t.clientX,this.pointerStartY=t.clientY,this.dragDx=0)},this.handlePointerMove=t=>{var i;if(t.pointerId!==this.pointerId)return;const s=t.clientX-this.pointerStartX,e=t.clientY-this.pointerStartY;if(!this.dragging){if(Math.abs(s)<h.DRAG_SLOP||Math.abs(s)<Math.abs(e))return;this.dragging=!0,null===(i=this.viewportEl)||void 0===i||i.setPointerCapture(t.pointerId)}this.dragDx=s},this.handlePointerUp=t=>{var i;if(t.pointerId!==this.pointerId)return;if(this.pointerId=-1,!this.dragging)return;const s=this.dragDx;this.dragging=!1,this.dragDx=0,this.suppressClick=!0,null===(i=this.viewportEl)||void 0===i||i.releasePointerCapture(t.pointerId),s<=-h.SWIPE_THRESHOLD?this.advance(1):s>=h.SWIPE_THRESHOLD&&this.advance(-1),this.restartAutoplay()},this.handlePointerCancel=t=>{t.pointerId===this.pointerId&&(this.pointerId=-1,this.dragging=!1,this.dragDx=0,this.suppressClick=!1)},this.handleClickCapture=t=>{this.suppressClick&&(this.suppressClick=!1,t.preventDefault(),t.stopPropagation())},this.handleKeyDown=t=>{"ArrowRight"===t.key?(t.preventDefault(),this.advance(1)):"ArrowLeft"===t.key&&(t.preventDefault(),this.advance(-1))}}componentWillLoad(){var t,i;"undefined"!=typeof window&&window.matchMedia&&(this.motionQuery=window.matchMedia("(prefers-reduced-motion: reduce)"),this.reducedMotion=this.motionQuery.matches,null===(i=(t=this.motionQuery).addEventListener)||void 0===i||i.call(t,"change",this.handleMotionChange))}componentDidLoad(){this.refreshItems(),document.addEventListener("visibilitychange",this.handleVisibilityChange),this.restartAutoplay()}disconnectedCallback(){var t,i;this.stopAutoplay(),document.removeEventListener("visibilitychange",this.handleVisibilityChange),null===(i=null===(t=this.motionQuery)||void 0===t?void 0:t.removeEventListener)||void 0===i||i.call(t,"change",this.handleMotionChange)}watchValue(){const t=this.clampIndex(this.value);t===this.value?this.syncItems():this.value=t}watchLocale(){this.syncItems()}watchAutoplay(){this.restartAutoplay()}async next(){this.advance(1)}async prev(){this.advance(-1)}async goTo(t){this.setActive(this.clampIndex(t))}getItems(){return Array.from(this.el.querySelectorAll(":scope > co-carousel-item"))}refreshItems(){const t=this.getItems();this.itemCount=t.length,this.value>0&&this.value>=this.itemCount&&(this.value=Math.max(0,this.itemCount-1)),this.syncItems(),this.restartAutoplay()}syncItems(){const t=this.getItems(),i=t.length,s=c(this.locale);t.forEach(((t,e)=>{const o=e===this.value;t.setAttribute("aria-label",s.slideLabel.replace("{i}",String(e+1)).replace("{n}",String(i))),t.setAttribute("aria-hidden",o?"false":"true"),t.toggleAttribute("inert",!o)}))}clampIndex(t){return 0===this.itemCount?0:Math.max(0,Math.min(this.itemCount-1,t))}setActive(t){t===this.value||t<0||t>=this.itemCount||(this.value=t,this.coSlideChange.emit(t))}advance(t){if(this.itemCount<=1)return;let i=this.value+t;if(i>=this.itemCount){if(!this.loop)return;i=0}else if(i<0){if(!this.loop)return;i=this.itemCount-1}this.setActive(i)}restartAutoplay(){this.stopAutoplay(),!this.autoplay||this.itemCount<=1||this.reducedMotion||this.pauseOnHover&&this.hovering||this.focusWithin||"undefined"!=typeof document&&document.hidden||(this.timer=setInterval((()=>{this.dragging||(!this.loop&&this.value>=this.itemCount-1?this.stopAutoplay():this.advance(1))}),Math.max(1e3,this.interval)),this.rotating=!0)}stopAutoplay(){this.timer&&(clearInterval(this.timer),this.timer=void 0),this.rotating=!1}render(){const t=c(this.locale),i=this.itemCount>1,o=this.loop||this.value>0,a=this.loop||this.value<this.itemCount-1,r=`co-carousel--${this.aspectRatio.replace(":","-")}`,h={transform:this.dragging?`translateX(calc(${100*-this.value}% + ${this.dragDx}px))`:`translateX(${100*-this.value}%)`};return this.dragging&&(h.transition="none"),s(e,{key:"2e2d00e6956b5de4af5950ad6725a77023420f11"},s("div",{key:"40878a4740b4ad9bf70cf9816d7edc89b8bafeda",class:{"co-carousel":!0,[r]:!0},part:"container",role:"region","aria-roledescription":"carousel","aria-label":t.carouselLabel,tabindex:0,onKeyDown:this.handleKeyDown,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onFocusin:this.handleFocusIn,onFocusout:this.handleFocusOut},s("div",{key:"5c0ec11025ae5c6eb3a88b10595c243a9b910671",class:"co-carousel__viewport",part:"viewport",ref:t=>this.viewportEl=t,onPointerDown:this.handlePointerDown,onPointerMove:this.handlePointerMove,onPointerUp:this.handlePointerUp,onPointerCancel:this.handlePointerCancel,onClickCapture:this.handleClickCapture},s("div",{key:"746d85f914bc24ca86ad88005fe95a214de7cd31",class:"co-carousel__track",part:"track",style:h,"aria-live":this.rotating?"off":"polite"},s("slot",{key:"b33c34a9cb6e03af50176094a89b1c79d363f13d",onSlotchange:this.handleSlotChange}))),this.arrows&&i&&s("button",{key:"4f30b56e84da8f7e15b6cea71a0238f5cd19f39e",class:{"co-carousel__arrow":!0,"co-carousel__arrow--prev":!0,"co-carousel__arrow--disabled":!o},part:"arrow-prev",type:"button","aria-label":t.prevSlide,disabled:!o,onClick:()=>this.advance(-1)},s("co-icon",{key:"09eaa1a665762f7e2b372eb264860e182e411d17",name:"caret-left",size:18,weight:"bold"})),this.arrows&&i&&s("button",{key:"7026bfe945ee42ef7b0f9194ecf6a04f0ef1ab1c",class:{"co-carousel__arrow":!0,"co-carousel__arrow--next":!0,"co-carousel__arrow--disabled":!a},part:"arrow-next",type:"button","aria-label":t.nextSlide,disabled:!a,onClick:()=>this.advance(1)},s("co-icon",{key:"564f5bc3bef0b0ce23e8be91bed8e37540209a7b",name:"caret-right",size:18,weight:"bold"})),this.dots&&i&&s("div",{key:"b19aed5296fa2f3547e85e6c439589703809bae3",class:"co-carousel__dots",part:"dots",role:"group","aria-label":t.pickSlide},Array.from({length:this.itemCount},((i,e)=>s("button",{class:{"co-carousel__dot":!0,"co-carousel__dot--active":e===this.value},part:"dot",type:"button","aria-current":e===this.value?"true":void 0,"aria-label":t.goToSlide.replace("{i}",String(e+1)),onClick:()=>this.setActive(e)}))))))}get el(){return o(this)}static get watchers(){return{value:[{watchValue:0}],locale:[{watchLocale:0}],autoplay:[{watchAutoplay:0}],interval:[{watchAutoplay:0}]}}};h.DRAG_SLOP=8,h.SWIPE_THRESHOLD=40,h.style=":host{display:block;font-family:var(--co-font-family-primary);--co-carousel-arrow-size:36px;--co-carousel-arrow-bg:var(--co-semantic-surface-page);--co-carousel-arrow-color:var(--co-semantic-text-default);--co-carousel-dot-size:6px;--co-carousel-dot-color:var(--co-semantic-border-default);--co-carousel-dot-active-color:var(--co-semantic-text-default);--co-carousel-transition:320ms cubic-bezier(0.25, 0.8, 0.4, 1)}.co-carousel{position:relative;width:100%;outline:none}.co-carousel:focus-visible{outline:2px solid var(--co-semantic-border-focus-ring);outline-offset:2px;border-radius:var(--co-border-radius-sm)}.co-carousel--16-9{aspect-ratio:16 / 9}.co-carousel--4-3{aspect-ratio:4 / 3}.co-carousel--1-1{aspect-ratio:1 / 1}.co-carousel--21-9{aspect-ratio:21 / 9}.co-carousel--auto{aspect-ratio:unset}.co-carousel--16-9 .co-carousel__viewport,.co-carousel--4-3 .co-carousel__viewport,.co-carousel--1-1 .co-carousel__viewport,.co-carousel--21-9 .co-carousel__viewport{position:absolute;inset:0}.co-carousel__viewport{overflow:hidden;width:100%;height:100%;touch-action:pan-y}.co-carousel__track{display:flex;width:100%;height:100%;transition:transform var(--co-carousel-transition);will-change:transform}@media (prefers-reduced-motion: reduce){.co-carousel__track{transition:none}}.co-carousel__arrow{position:absolute;top:50%;transform:translateY(-50%);width:var(--co-carousel-arrow-size);height:var(--co-carousel-arrow-size);display:flex;align-items:center;justify-content:center;border:1px solid var(--co-semantic-border-subtle);border-radius:50%;background:var(--co-carousel-arrow-bg);color:var(--co-carousel-arrow-color);cursor:pointer;padding:0;opacity:0.9;transition:opacity 120ms ease, background 120ms ease;z-index:1}.co-carousel__arrow:hover{opacity:1;background:var(--co-semantic-surface-hover)}.co-carousel__arrow:focus-visible{outline:2px solid var(--co-semantic-border-focus-ring);outline-offset:1px}.co-carousel__arrow--prev{left:var(--co-spacing-sm, 8px)}.co-carousel__arrow--next{right:var(--co-spacing-sm, 8px)}.co-carousel__arrow--disabled{opacity:0.35;cursor:default;pointer-events:none}.co-carousel__dots{position:absolute;left:50%;bottom:var(--co-spacing-sm, 8px);transform:translateX(-50%);display:flex;gap:6px;padding:6px 10px;border-radius:var(--co-border-radius-xl);background:color-mix(in srgb, var(--co-semantic-surface-page) 65%, transparent);backdrop-filter:blur(4px);z-index:1}.co-carousel__dot{width:var(--co-carousel-dot-size);height:var(--co-carousel-dot-size);border-radius:50%;border:none;padding:0;background:var(--co-carousel-dot-color);cursor:pointer;transition:background 120ms ease, width 200ms ease}.co-carousel__dot--active{background:var(--co-carousel-dot-active-color);width:calc(var(--co-carousel-dot-size) * 2.6);border-radius:var(--co-border-radius-xl)}.co-carousel__dot:focus-visible{outline:2px solid var(--co-semantic-border-focus-ring);outline-offset:1px}";export{h as co_carousel}
1
+ import{r as t,c as i,h as s,H as o,a as e}from"./p-DJkaRtbb.js";import{l as a}from"./p-jYd9gu_c.js";const r={es:{prevSlide:"Diapositiva anterior",nextSlide:"Diapositiva siguiente",goToSlide:"Ir a la diapositiva {i}",pickSlide:"Elegir diapositiva",carouselLabel:"Carrusel",slideLabel:"{i} de {n}"},en:{prevSlide:"Previous slide",nextSlide:"Next slide",goToSlide:"Go to slide {i}",pickSlide:"Choose slide",carouselLabel:"Carousel",slideLabel:"{i} of {n}"},pt:{prevSlide:"Slide anterior",nextSlide:"Próximo slide",goToSlide:"Ir para o slide {i}",pickSlide:"Escolher slide",carouselLabel:"Carrossel",slideLabel:"{i} de {n}"}};function c(t){return r[a(t)]}const h=class{constructor(s){t(this,s),this.coSlideChange=i(this,"coSlideChange",7),this.value=0,this.autoplay=!1,this.interval=6e3,this.loop=!0,this.arrows=!0,this.dots=!0,this.pauseOnHover=!0,this.swipe=!0,this.aspectRatio="auto",this.locale="es",this.itemCount=0,this.dragDx=0,this.dragging=!1,this.rotating=!1,this.hovering=!1,this.focusWithin=!1,this.reducedMotion=!1,this.pointerStartX=0,this.pointerStartY=0,this.pointerId=-1,this.suppressClick=!1,this.handleSlotChange=()=>{this.refreshItems()},this.handleVisibilityChange=()=>{document.hidden?this.stopAutoplay():this.restartAutoplay()},this.handleMotionChange=t=>{this.reducedMotion=t.matches,this.restartAutoplay()},this.handleMouseEnter=()=>{this.hovering=!0,this.pauseOnHover&&this.stopAutoplay()},this.handleMouseLeave=()=>{this.hovering=!1,this.restartAutoplay()},this.handleFocusIn=()=>{this.focusWithin=!0,this.stopAutoplay()},this.handleFocusOut=t=>{t.relatedTarget&&this.el.contains(t.relatedTarget)||(this.focusWithin=!1,this.restartAutoplay())},this.handlePointerDown=t=>{this.dragging||!this.swipe||this.itemCount<=1||"mouse"===t.pointerType&&0!==t.button||(this.suppressClick=!1,this.pointerId=t.pointerId,this.pointerStartX=t.clientX,this.pointerStartY=t.clientY,this.dragDx=0)},this.handlePointerMove=t=>{var i;if(t.pointerId!==this.pointerId)return;const s=t.clientX-this.pointerStartX,o=t.clientY-this.pointerStartY;if(!this.dragging){if(Math.abs(s)<h.DRAG_SLOP||Math.abs(s)<Math.abs(o))return;this.dragging=!0,null===(i=this.viewportEl)||void 0===i||i.setPointerCapture(t.pointerId)}this.dragDx=s},this.handlePointerUp=t=>{var i;if(t.pointerId!==this.pointerId)return;if(this.pointerId=-1,!this.dragging)return;const s=this.dragDx;this.dragging=!1,this.dragDx=0,this.suppressClick=!0,null===(i=this.viewportEl)||void 0===i||i.releasePointerCapture(t.pointerId),s<=-h.SWIPE_THRESHOLD?this.advance(1):s>=h.SWIPE_THRESHOLD&&this.advance(-1),this.restartAutoplay()},this.handlePointerCancel=t=>{t.pointerId===this.pointerId&&(this.pointerId=-1,this.dragging=!1,this.dragDx=0,this.suppressClick=!1)},this.handleClickCapture=t=>{this.suppressClick&&(this.suppressClick=!1,t.preventDefault(),t.stopPropagation())},this.handleKeyDown=t=>{"ArrowRight"===t.key?(t.preventDefault(),this.advance(1)):"ArrowLeft"===t.key&&(t.preventDefault(),this.advance(-1))}}componentWillLoad(){var t,i;"undefined"!=typeof window&&window.matchMedia&&(this.motionQuery=window.matchMedia("(prefers-reduced-motion: reduce)"),this.reducedMotion=this.motionQuery.matches,null===(i=(t=this.motionQuery).addEventListener)||void 0===i||i.call(t,"change",this.handleMotionChange))}componentDidLoad(){this.refreshItems(),document.addEventListener("visibilitychange",this.handleVisibilityChange),this.restartAutoplay()}disconnectedCallback(){var t,i;this.stopAutoplay(),document.removeEventListener("visibilitychange",this.handleVisibilityChange),null===(i=null===(t=this.motionQuery)||void 0===t?void 0:t.removeEventListener)||void 0===i||i.call(t,"change",this.handleMotionChange)}watchValue(){const t=this.clampIndex(this.value);t===this.value?this.syncItems():this.value=t}watchLocale(){this.syncItems()}watchAutoplay(){this.restartAutoplay()}async next(){this.advance(1)}async prev(){this.advance(-1)}async goTo(t){this.setActive(this.clampIndex(t))}getItems(){return Array.from(this.el.querySelectorAll(":scope > co-carousel-item"))}refreshItems(){const t=this.getItems();this.itemCount=t.length,this.value>0&&this.value>=this.itemCount&&(this.value=Math.max(0,this.itemCount-1)),this.syncItems(),this.restartAutoplay()}syncItems(){const t=this.getItems(),i=t.length,s=c(this.locale);t.forEach(((t,o)=>{const e=o===this.value;t.setAttribute("aria-label",s.slideLabel.replace("{i}",String(o+1)).replace("{n}",String(i))),t.setAttribute("aria-hidden",e?"false":"true"),t.toggleAttribute("inert",!e)}))}clampIndex(t){return 0===this.itemCount?0:Math.max(0,Math.min(this.itemCount-1,t))}setActive(t){t===this.value||t<0||t>=this.itemCount||(this.value=t,this.coSlideChange.emit(t))}advance(t){if(this.itemCount<=1)return;let i=this.value+t;if(i>=this.itemCount){if(!this.loop)return;i=0}else if(i<0){if(!this.loop)return;i=this.itemCount-1}this.setActive(i)}restartAutoplay(){this.stopAutoplay(),!this.autoplay||this.itemCount<=1||this.reducedMotion||this.pauseOnHover&&this.hovering||this.focusWithin||"undefined"!=typeof document&&document.hidden||(this.timer=setInterval((()=>{this.dragging||(!this.loop&&this.value>=this.itemCount-1?this.stopAutoplay():this.advance(1))}),Math.max(1e3,this.interval)),this.rotating=!0)}stopAutoplay(){this.timer&&(clearInterval(this.timer),this.timer=void 0),this.rotating=!1}render(){const t=c(this.locale),i=this.itemCount>1,e=this.loop||this.value>0,a=this.loop||this.value<this.itemCount-1,r=`co-carousel--${this.aspectRatio.replace(":","-")}`,h={transform:this.dragging?`translateX(calc(${100*-this.value}% + ${this.dragDx}px))`:`translateX(${100*-this.value}%)`};return this.dragging&&(h.transition="none"),s(o,{key:"0a6bcad3e638f000faa62e097ea7ca5ddd4befa2"},s("div",{key:"ba81a5bb37400232010808adadc81e5cfe6c269e",class:{"co-carousel":!0,[r]:!0},part:"container",role:"region","aria-roledescription":"carousel","aria-label":t.carouselLabel,tabindex:0,onKeyDown:this.handleKeyDown,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onFocusin:this.handleFocusIn,onFocusout:this.handleFocusOut},s("div",{key:"6cd3d1580bfcbc6cc37f5a6595249d7fa99eec76",class:"co-carousel__viewport",part:"viewport",ref:t=>this.viewportEl=t,onPointerDown:this.handlePointerDown,onPointerMove:this.handlePointerMove,onPointerUp:this.handlePointerUp,onPointerCancel:this.handlePointerCancel,onClickCapture:this.handleClickCapture},s("div",{key:"ee2d7b97a3efbf4571544eb05c070df5b766578b",class:"co-carousel__track",part:"track",style:h,"aria-live":this.rotating?"off":"polite"},s("slot",{key:"bea154687ae5058c2faaab4e5dfbeb620e6cde20",onSlotchange:this.handleSlotChange}))),this.arrows&&i&&s("button",{key:"78a660846e64ba45bb20af846d9a96b6d16f349b",class:{"co-carousel__arrow":!0,"co-carousel__arrow--prev":!0,"co-carousel__arrow--disabled":!e},part:"arrow-prev",type:"button","aria-label":t.prevSlide,disabled:!e,onClick:()=>this.advance(-1)},s("co-icon",{key:"8994f7c1f5ca4d2f980b713686a3646f9da4ac02",name:"caret-left",size:18,weight:"bold"})),this.arrows&&i&&s("button",{key:"abcbe009342b5894fdb8ac21f5999e5acf7e5dbb",class:{"co-carousel__arrow":!0,"co-carousel__arrow--next":!0,"co-carousel__arrow--disabled":!a},part:"arrow-next",type:"button","aria-label":t.nextSlide,disabled:!a,onClick:()=>this.advance(1)},s("co-icon",{key:"ca6bb4aadcaa416f72e0b8073cdebc86d1c907a5",name:"caret-right",size:18,weight:"bold"})),this.dots&&i&&s("div",{key:"7f1d08a6845604507e010db822fbb4ce13ee4904",class:"co-carousel__dots",part:"dots",role:"group","aria-label":t.pickSlide},Array.from({length:this.itemCount},((i,o)=>s("button",{class:{"co-carousel__dot":!0,"co-carousel__dot--active":o===this.value},part:"dot",type:"button","aria-current":o===this.value?"true":void 0,"aria-label":t.goToSlide.replace("{i}",String(o+1)),onClick:()=>this.setActive(o)}))))))}get el(){return e(this)}static get watchers(){return{value:[{watchValue:0}],locale:[{watchLocale:0}],autoplay:[{watchAutoplay:0}],interval:[{watchAutoplay:0}]}}};h.DRAG_SLOP=8,h.SWIPE_THRESHOLD=40,h.style=":host{display:block;font-family:var(--co-font-family-primary);--co-carousel-arrow-size:36px;--co-carousel-arrow-bg:var(--co-semantic-surface-page);--co-carousel-arrow-color:var(--co-semantic-text-default);--co-carousel-dot-size:6px;--co-carousel-dot-color:var(--co-semantic-border-default);--co-carousel-dot-active-color:var(--co-semantic-text-default);--co-carousel-transition:320ms cubic-bezier(0.25, 0.8, 0.4, 1)}.co-carousel{position:relative;width:100%;outline:none}.co-carousel:focus-visible{outline:2px solid var(--co-semantic-border-focus-ring);outline-offset:2px;border-radius:var(--co-border-radius-sm)}.co-carousel--16-9{aspect-ratio:16 / 9}.co-carousel--4-3{aspect-ratio:4 / 3}.co-carousel--1-1{aspect-ratio:1 / 1}.co-carousel--21-9{aspect-ratio:21 / 9}.co-carousel--auto{aspect-ratio:unset}.co-carousel--16-9 .co-carousel__viewport,.co-carousel--4-3 .co-carousel__viewport,.co-carousel--1-1 .co-carousel__viewport,.co-carousel--21-9 .co-carousel__viewport{position:absolute;inset:0}.co-carousel__viewport{overflow:hidden;width:100%;height:100%;touch-action:pan-y}.co-carousel__track{display:flex;width:100%;height:100%;transition:transform var(--co-carousel-transition);will-change:transform}@media (prefers-reduced-motion: reduce){.co-carousel__track{transition:none}}.co-carousel__arrow{position:absolute;top:50%;transform:translateY(-50%);width:var(--co-carousel-arrow-size);height:var(--co-carousel-arrow-size);display:flex;align-items:center;justify-content:center;border:1px solid var(--co-semantic-border-subtle);border-radius:50%;background:var(--co-carousel-arrow-bg);color:var(--co-carousel-arrow-color);cursor:pointer;padding:0;opacity:0.9;transition:opacity 120ms ease, background 120ms ease;z-index:1}.co-carousel__arrow:hover{opacity:1;background:var(--co-semantic-surface-hover)}.co-carousel__arrow:focus-visible{outline:2px solid var(--co-semantic-border-focus-ring);outline-offset:1px}.co-carousel__arrow--prev{left:var(--co-spacing-sm, 8px)}.co-carousel__arrow--next{right:var(--co-spacing-sm, 8px)}.co-carousel__arrow--disabled{opacity:0.35;cursor:default;pointer-events:none}.co-carousel__dots{position:absolute;left:50%;bottom:var(--co-spacing-sm, 8px);transform:translateX(-50%);display:flex;gap:6px;padding:6px 10px;border-radius:var(--co-border-radius-xl);background:color-mix(in srgb, var(--co-semantic-surface-page) 65%, transparent);backdrop-filter:blur(4px);z-index:1}.co-carousel__dot{width:var(--co-carousel-dot-size);height:var(--co-carousel-dot-size);border-radius:50%;border:none;padding:0;background:var(--co-carousel-dot-color);cursor:pointer;transition:background 120ms ease, width 200ms ease}.co-carousel__dot--active{background:var(--co-carousel-dot-active-color);width:calc(var(--co-carousel-dot-size) * 2.6);border-radius:var(--co-border-radius-xl)}.co-carousel__dot:focus-visible{outline:2px solid var(--co-semantic-border-focus-ring);outline-offset:1px}";export{h as co_carousel}
@@ -1 +1 @@
1
- import{r as o,c as t,h as e}from"./p-DH5lfRNj.js";const a=class{constructor(e){o(this,e),this.coPrimary=t(this,"coPrimary",7),this.coSecondary=t(this,"coSecondary",7),this.primaryIcon="plus",this.secondaryIcon="plus",this.handlePrimary=()=>this.coPrimary.emit(),this.handleSecondary=()=>this.coSecondary.emit()}render(){return e("div",{key:"fbf4ec72aa2f6814b558d51c44592e784355751e",class:"co-list-footer",part:"footer"},this.secondaryLabel&&e("button",{key:"78abef0f79117263c7d30e5ce37a876d193ba5e4",class:"co-list-footer__btn co-list-footer__btn--secondary",type:"button",onClick:this.handleSecondary},this.secondaryIcon&&e("co-icon",{key:"a765ab5be51d7eb5791d3161cf5c7d3688fa0fd7",name:this.secondaryIcon,size:16}),e("span",{key:"0f5d57201bcd6ce40439c26916e01f1e37fcd87e"},this.secondaryLabel)),this.primaryLabel&&e("button",{key:"27aa3b20666c9fe2a6fb7f28a9ca6e2542dd8fd7",class:"co-list-footer__btn co-list-footer__btn--primary",type:"button",onClick:this.handlePrimary},this.primaryIcon&&e("co-icon",{key:"bafe2ebb9cfb2cc26c682ae9b419b09a512652f8",name:this.primaryIcon,size:16}),e("span",{key:"c3c9baead987beea02ead3a65d3372c5532a67b8"},this.primaryLabel)),e("slot",{key:"7a1ce48c91cc95c320c4d680053f42555e601187"}))}};a.style=":host{display:block}.co-list-footer{display:flex;gap:var(--co-spacing-sm2);padding-top:var(--co-spacing-sm2)}.co-list-footer__btn{flex:1;display:flex;align-items:center;justify-content:center;gap:var(--co-spacing-sm);padding:var(--co-spacing-sm2) var(--co-spacing-md);border-radius:var(--co-border-radius-xs);font-family:var(--co-font-family-primary);font-size:var(--co-font-size-12, 12px);font-weight:500;line-height:1;letter-spacing:var(--co-font-letter-spacing-body);white-space:nowrap;cursor:pointer;transition:opacity var(--co-motion-duration-fast) var(--co-motion-ease-out);box-sizing:border-box;min-height:32px}.co-list-footer__btn:hover{opacity:0.85}.co-list-footer__btn:focus-visible{outline:2px solid var(--co-semantic-border-focus);outline-offset:2px}.co-list-footer__btn--secondary{background:transparent;color:var(--co-semantic-text-default);border:1px solid var(--co-semantic-border-default)}.co-list-footer__btn--primary{background:var(--co-semantic-surface-primary);color:var(--co-semantic-on-primary);border:none}";export{a as co_list_footer}
1
+ import{r as o,c as t,h as e}from"./p-DJkaRtbb.js";const s=class{constructor(e){o(this,e),this.coPrimary=t(this,"coPrimary",7),this.coSecondary=t(this,"coSecondary",7),this.primaryIcon="plus",this.secondaryIcon="plus",this.handlePrimary=()=>this.coPrimary.emit(),this.handleSecondary=()=>this.coSecondary.emit()}render(){return e("div",{key:"f0c91f1eb20fbbd57da3a9de3ee9596b1c726ccf",class:"co-list-footer",part:"footer"},this.secondaryLabel&&e("button",{key:"c43b6137c82ab5ecb8493dcabb93a0b6e1fb8527",class:"co-list-footer__btn co-list-footer__btn--secondary",type:"button",onClick:this.handleSecondary},this.secondaryIcon&&e("co-icon",{key:"4723de7f0236643d8ecee7041144c058478237b6",name:this.secondaryIcon,size:16}),e("span",{key:"798e8a622a2b0784849e8040501ae92f87a9fab9"},this.secondaryLabel)),this.primaryLabel&&e("button",{key:"0ce5cdab965ede9ad2489354f31d0f0d55e3fba5",class:"co-list-footer__btn co-list-footer__btn--primary",type:"button",onClick:this.handlePrimary},this.primaryIcon&&e("co-icon",{key:"50e5fb43c0966cb939ba3daced28916e1fe766dd",name:this.primaryIcon,size:16}),e("span",{key:"d2bf250cb31ae5e7ff3595ecbb4234a493744e67"},this.primaryLabel)),e("slot",{key:"dd002081999ed611aef5a411e7011b804e7036ff"}))}};s.style=":host{display:block}.co-list-footer{display:flex;gap:var(--co-spacing-sm2);padding-top:var(--co-spacing-sm2)}.co-list-footer__btn{flex:1;display:flex;align-items:center;justify-content:center;gap:var(--co-spacing-sm);padding:var(--co-spacing-sm2) var(--co-spacing-md);border-radius:var(--co-border-radius-xs);font-family:var(--co-font-family-primary);font-size:var(--co-font-size-12, 12px);font-weight:500;line-height:1;letter-spacing:var(--co-font-letter-spacing-body);white-space:nowrap;cursor:pointer;transition:opacity var(--co-motion-duration-fast) var(--co-motion-ease-out);box-sizing:border-box;min-height:32px}.co-list-footer__btn:hover{opacity:0.85}.co-list-footer__btn:focus-visible{outline:2px solid var(--co-semantic-border-focus);outline-offset:2px}.co-list-footer__btn--secondary{background:transparent;color:var(--co-semantic-text-default);border:1px solid var(--co-semantic-border-default)}.co-list-footer__btn--primary{background:var(--co-semantic-surface-primary);color:var(--co-semantic-on-primary);border:none}";export{s as co_list_footer}
@@ -0,0 +1 @@
1
+ import{r as e,c as i,h as t,a as o}from"./p-DJkaRtbb.js";import{s,S as n,a,b as c,i as r}from"./p-DU-KOQ8L.js";const m=class{constructor(t){e(this,t),this.coSelect=i(this,"coSelect",7),this.coMenuSelect=i(this,"coMenuSelect",7),this.dense=!1,this.selected=!1,this.trailingCheck=!1,this.leadingCheck=!1,this.disabled=!1,this.variant="default",this.hasSubmenu=!1,this.submenuOpen=!1,this.submenuPlacementValue="right-start",this.handleClick=e=>{if(!this.disabled){if(this.hasSubmenu)return e.stopPropagation(),void this.openSubmenu();this.coSelect.emit(),this.coMenuSelect.emit()}},this.handleKeydown=e=>{var i;this.disabled||("Enter"===e.key||" "===e.key?(e.preventDefault(),this.handleClick(e)):"ArrowRight"===e.key&&this.hasSubmenu?(e.preventDefault(),this.openSubmenu(),requestAnimationFrame((()=>{var e;const i=this.el.querySelector("co-menu-item");null===(e=null==i?void 0:i.focusItem)||void 0===e||e.call(i)}))):"ArrowLeft"===e.key&&this.submenuOpen&&(e.preventDefault(),this.submenuOpen=!1,null===(i=this.rowEl)||void 0===i||i.focus()))},this.handleMouseEnter=()=>{!this.disabled&&this.hasSubmenu&&(this.cancelClose(),this.openSubmenu())},this.handleMouseLeave=()=>{this.hasSubmenu&&this.scheduleClose()},this.handlePlacement=e=>{const i=s(e.detail.placement);i&&this.el.setAttribute(n,i)},this.cancelClose=()=>{this.closeTimer&&(window.clearTimeout(this.closeTimer),this.closeTimer=void 0)}}onSubmenuOpenChange(e){e?this.el.setAttribute("data-submenu-open",""):this.el.removeAttribute("data-submenu-open")}async focusItem(){var e;null===(e=this.rowEl)||void 0===e||e.focus()}componentWillLoad(){this.hasSubmenu=this.detectSubmenu()}disconnectedCallback(){this.cancelClose()}detectSubmenu(){for(const e of Array.from(this.el.children)){const i=e.tagName.toLowerCase();if("co-menu-item"===i||"co-menu-divider"===i)return!0}return!1}openSubmenu(){this.submenuOpen||this.closeSiblingSubmenus(),this.submenuPlacementValue=a(r(this.el),c(this.el)),this.submenuOpen=!0}async closeSubmenu(){this.cancelClose(),this.submenuOpen=!1}closeSiblingSubmenus(){var e,i;const t=this.el.parentElement;if(t)for(const o of Array.from(t.children))o!==this.el&&"co-menu-item"===o.tagName.toLowerCase()&&(null===(i=(e=o).closeSubmenu)||void 0===i||i.call(e))}scheduleClose(){this.cancelClose(),this.closeTimer=window.setTimeout((()=>{this.submenuOpen=!1}),260)}render(){var e;const i=t("button",{ref:e=>this.rowEl=e,class:{"co-menu-item":!0,"co-menu-item--dense":this.dense,"co-menu-item--selected":this.selected,"co-menu-item--disabled":this.disabled,"co-menu-item--danger":"danger"===this.variant,"co-menu-item--submenu":this.hasSubmenu,"co-menu-item--submenu-open":this.hasSubmenu&&this.submenuOpen},type:"button",role:"menuitem","aria-haspopup":this.hasSubmenu?"menu":void 0,"aria-expanded":this.hasSubmenu?this.submenuOpen?"true":"false":void 0,disabled:this.disabled,onClick:this.handleClick,onKeyDown:this.handleKeydown,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},this.leadingCheck&&t("span",{class:"co-menu-item__check co-menu-item__check--leading"},this.selected&&t("co-icon",{name:"check",size:12})),this.icon&&t("span",{class:"co-menu-item__icon"},t("co-icon",{name:this.icon,size:null!==(e=this.iconSize)&&void 0!==e?e:16})),t("span",{class:{"co-menu-item__label":!0,"co-menu-item__label--stacked":!!this.caption}},t("span",{class:"co-menu-item__label-main"},this.label,t("slot",{name:"label"})),this.caption&&t("span",{class:"co-menu-item__caption"},this.caption)),this.trailingCheck&&t("span",{class:"co-menu-item__check"},t("co-icon",{name:"check",size:15})),t("span",{class:"co-menu-item__suffix"},t("slot",{name:"suffix"}),this.hasSubmenu&&t("co-icon",{name:"caret-right",size:14})));return this.hasSubmenu?t("div",{class:"co-menu-item__wrap co-menu-item__wrap--submenu",onMouseEnter:this.cancelClose,onMouseLeave:this.handleMouseLeave},t("co-popover",{placement:this.submenuPlacementValue,offset:4,open:this.submenuOpen,bare:!0,onCoOpen:()=>this.openSubmenu(),onCoClose:()=>{this.submenuOpen=!1},onCoPlacement:this.handlePlacement},t("div",{slot:"trigger",class:"co-menu-item__trigger-wrap"},i),t("div",{class:"co-menu-item__submenu",role:"menu",onMouseEnter:this.cancelClose,onMouseLeave:this.handleMouseLeave},t("slot",null)))):t("div",{class:"co-menu-item__wrap"},i)}get el(){return o(this)}static get watchers(){return{submenuOpen:[{onSubmenuOpenChange:0}]}}};m.style=":host{display:block}.co-menu-item__wrap{display:block}.co-menu-item{width:100%;display:flex;align-items:center;gap:var(--co-menu-item-gap, var(--co-spacing-sm, 8px));padding:var(--co-menu-item-padding, var(--co-spacing-sm, 8px) var(--co-spacing-md, 12px));background:transparent;border:0;border-radius:var(--co-border-radius-xs, 8px);font-family:var(--co-font-family-primary);font-size:var(--co-menu-item-font-size, var(--co-font-size-14, 14px));font-weight:var(--co-menu-item-font-weight, normal);letter-spacing:var(--co-menu-item-letter-spacing, normal);line-height:var(--co-menu-item-line-height, normal);color:var(--co-menu-item-color, var(--co-semantic-text-default));text-align:left;cursor:pointer;transition:background var(--co-motion-duration-fast) var(--co-motion-ease-out), color var(--co-motion-duration-fast) var(--co-motion-ease-out);min-height:var(--co-menu-item-height, 36px);box-sizing:border-box}.co-menu-item--dense{padding:var(--co-spacing-xs, 4px) var(--co-spacing-md, 12px);min-height:32px}.co-menu-item--selected{background:var(--co-menu-item-selected-bg, var(--co-color-gray-100, #f6f6f6))}.co-menu-item:hover,.co-menu-item--submenu-open{background:var(--co-menu-item-hover-bg, var(--co-semantic-surface-hover, rgba(31, 28, 27, 0.04)))}.co-menu-item:focus-visible{outline:2px solid var(--co-semantic-border-focus, #2563eb);outline-offset:-2px}.co-menu-item--disabled{opacity:0.5;cursor:not-allowed;pointer-events:none}.co-menu-item--danger{color:var(--co-color-status-error, #aa2e1b)}.co-menu-item--danger:hover{background:var(--co-color-status-bg-error, #ffefef)}.co-menu-item__icon{display:inline-flex;align-items:center;flex-shrink:0;color:var(--co-menu-item-icon-color, currentColor)}.co-menu-item__check{display:inline-flex;align-items:center;flex-shrink:0;color:var(--co-menu-item-color, var(--co-semantic-text-default))}.co-menu-item__label{flex:1;display:inline-flex;align-items:center;gap:var(--co-spacing-xs, 4px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.co-menu-item__label--stacked{flex-direction:column;align-items:flex-start;gap:1px}.co-menu-item__label-main{display:inline-flex;align-items:center;gap:var(--co-spacing-xs, 4px)}.co-menu-item__caption{font-size:var(--co-font-size-11, 11px);color:var(--co-semantic-text-muted);line-height:1.3;white-space:nowrap}.co-menu-item__suffix{display:inline-flex;align-items:center;gap:var(--co-spacing-xs, 4px);flex-shrink:0;color:var(--co-semantic-text-muted)}.co-menu-item--submenu-open .co-menu-item__suffix{color:var(--co-semantic-text-default)}.co-menu-item__trigger-wrap{display:block}.co-menu-item__wrap--submenu>co-popover{display:block;width:100%}.co-menu-item__submenu{background:var(--co-semantic-surface-secondary, #fff);border-radius:var(--co-border-radius-sm, 12px);box-shadow:var(--co-shadow-lg, 0 4px 12px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04)), inset 0 0 0 1px var(--co-color-opacity-negro-8, rgba(31, 28, 27, 0.08));padding:var(--co-menu-padding, var(--co-spacing-xs, 4px));min-width:180px;display:flex;flex-direction:column;gap:2px;position:relative}.co-menu-item__submenu::before,.co-menu-item__submenu::after{content:'';position:absolute;top:0;bottom:0;width:6px;}.co-menu-item__submenu::before{left:-6px}.co-menu-item__submenu::after{right:-6px}.co-menu-item__check--leading{width:12px;justify-content:center}";export{m as co_menu_item}
@@ -0,0 +1 @@
1
+ import{r as o,c,h as e,a as i}from"./p-DJkaRtbb.js";const a=["a[href]","button","input","select","textarea","label","summary",'[contenteditable="true"]','[role="button"]','[role="link"]','[role="checkbox"]','[role="switch"]','[role="menuitem"]','[role="tab"]',"co-button","co-icon-button","co-switch","co-checkbox","co-radio","co-chip","co-input","co-select","co-combobox","co-autocomplete","co-ref-field","co-number-field","co-toggle-button","co-menu"].join(",");function t(o){return"function"==typeof o.matches&&o.matches(a)}const n=class{constructor(e){o(this,e),this.coToggle=c(this,"coToggle",3),this.open=!0,this.heading="",this.subheading="",this.disabled=!1,this.hasSubheadingSlot=!1,this.handleToggle=()=>{this.disabled||(this.open=!this.open,this.coToggle.emit(this.open))},this.handleHeadingClick=o=>{if(this.disabled)return;const c=o.currentTarget;for(const e of o.composedPath()){if(e===c)break;if(t(e))return}this.handleToggle()}}componentWillLoad(){this.hasSubheadingSlot=!!this.el.querySelector('[slot="subheading"]')}componentWillRender(){this.hasSubheadingSlot=!!this.el.querySelector('[slot="subheading"]')}get showSubheading(){return!(!this.subheading||!this.subheading.trim())||this.hasSubheadingSlot}render(){return e("div",{key:"48a22b997b1611f285c747c2ce30b4db2ac87fdc",class:{"co-accordion":!0,"co-accordion--open":this.open,"co-accordion--disabled":this.disabled},part:"accordion"},e("div",{key:"fde9b00c928e7aab65650975ece4539c6a8d54e7",class:"co-accordion__header",part:"header"},e("span",{key:"884cf74c6207037ca4ee8ee4686af08677f15450",class:"co-accordion__heading-group",onClick:this.handleHeadingClick},e("span",{key:"9019e1b204f06c5f5bb184b948a322a81110c79d",class:"co-accordion__heading",part:"heading"},e("slot",{key:"9feb0b98d902bbfdf93c45340aa6854e4c473b31",name:"header"},this.heading)),this.showSubheading&&e("span",{key:"eaffac4798f56c63feb7796f43c58c06ef6e0fcb",class:"co-accordion__subheading",part:"subheading"},e("slot",{key:"659cdde265f6325d3320f355ea9875fc0d50a480",name:"subheading"},this.subheading))),e("button",{key:"a97f62583665f162085dcae31f08297a89bff184",class:"co-accordion__caret",type:"button","aria-expanded":this.open?"true":"false","aria-label":this.heading||"Toggle section",disabled:this.disabled,onClick:this.handleToggle,part:"caret"},e("co-icon",{key:"2d34e356aa0a7817d59c838b4cad3addc0698386",name:"caret-up",size:20}))),e("div",{key:"6514d5a1ef7a7e3eeb33514705a83ad17e30826b",class:"co-accordion__body",part:"body"},e("div",{key:"8dfcd782cda8973943a2619ce24d11a8655fad98",class:"co-accordion__body-inner",part:"body-inner"},e("slot",{key:"7f9a2c929b8bb82ab2267ae590cf3916b8c55824"}))))}get el(){return i(this)}};n.style=":host{display:block}.co-accordion{display:flex;flex-direction:column;width:100%}.co-accordion__header{display:flex;align-items:center;justify-content:space-between;gap:var(--co-spacing-sm, 6px);width:100%;font-family:var(--co-font-family-primary);color:var(--co-semantic-text-default);text-align:left}.co-accordion__heading-group{flex:1;min-width:0;display:flex;flex-direction:column;gap:var(--co-spacing-xxs, 2px);cursor:pointer}.co-accordion__heading{font-size:var(--co-font-size-24);font-weight:500;line-height:1.25;letter-spacing:-0.03em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.co-accordion__subheading{font-size:var(--co-font-size-14);font-weight:400;line-height:1.3;letter-spacing:normal;color:var(--co-semantic-text-secondary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.co-accordion__caret{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:none;background:transparent;border-radius:var(--co-border-radius-full, 9999px);color:var(--co-semantic-text-default);cursor:pointer;transition:transform var(--co-motion-duration-base) var(--co-motion-ease-out), background-color var(--co-motion-duration-fast) var(--co-motion-ease-out);transform:rotate(180deg);}.co-accordion__caret:hover:not(:disabled){background:var(--co-color-opacity-negro-8, rgba(31, 28, 27, 0.08))}.co-accordion--open .co-accordion__caret{transform:rotate(0deg);}.co-accordion__body{display:grid;grid-template-rows:0fr;transition:grid-template-rows var(--co-motion-duration-slow) var(--co-motion-ease-out)}.co-accordion__body-inner{min-height:0;overflow:hidden;padding-top:var(--co-spacing-md);transition:padding-top var(--co-motion-duration-slow) var(--co-motion-ease-out)}.co-accordion:not(.co-accordion--open) .co-accordion__body-inner{padding-top:0}.co-accordion--open .co-accordion__body{grid-template-rows:1fr}.co-accordion:not(.co-accordion--open) .co-accordion__body-inner{visibility:hidden;transition:padding-top var(--co-motion-duration-slow) var(--co-motion-ease-out), visibility 0s linear var(--co-motion-duration-slow)}.co-accordion--open .co-accordion__body-inner{visibility:visible;transition:padding-top var(--co-motion-duration-slow) var(--co-motion-ease-out), visibility 0s linear 0s}.co-accordion__caret:focus-visible{outline:2px solid var(--co-color-primary-azul, #2563eb);outline-offset:2px}.co-accordion--disabled .co-accordion__header{opacity:0.5}.co-accordion--disabled .co-accordion__caret{cursor:not-allowed}.co-accordion--disabled .co-accordion__heading-group{cursor:default}";export{n as co_accordion}
@@ -0,0 +1 @@
1
+ import{i as t,w as e,g as a,s,r as n,a as o,b as r,C as i,c as l,d as u,F as E,e as g,f as T,h as m,I as d,j as S,L as _,k as I,l as c,M as x,m as P,P as p,n as A,o as f,p as L,q as F,S as N,t as h,u as C,T as k,V as y,v as O,x as b,y as H,z as M,A as R,B as z,D as B,E as G,G as j,H as Y,J as v,K as U,N as V,O as $,Q as w,R as D,U as J,W as K,X as W,Y as X,Z,_ as q}from"./p-RVQJEYxa.js";import{C as Q,T as tt,t as et}from"./p-CRxTFT_z.js";function at(t,e){return r(t,{includeUiExtensions:!1,features:e})}var st=Object.freeze({__proto__:null,COLOR_PALETTE:Q,CalloutNode:i,CobaltTaskItem:l,CobaltTaskList:u,FIELD_SYNC_META:E,FontFamilyExtension:g,FontSizeExtension:T,FontWeightExtension:m,IMAGE_LAYOUT_MODES:d,IndentExtension:S,LetterSpacingExtension:_,LineHeightExtension:I,ListStyleExtension:c,MentionNode:x,MergeField:P,PAGE_GAP_PX:p,PAGE_SIZES:A,PAGINATION_META:f,PRESETS:L,Pagination:F,SANITIZE_CONFIGS:N,SIGNATURE_TOKEN_STYLE:h,SignatureSlot:C,TABLE_CONTEXT_ITEMS:tt,TRAILING_BREAK_CLASS:k,VariableNode:y,applyImageLayoutMode:O,collectFields:b,computePageBreaks:H,createEditor:M,defaultToolbarForPreset:R,getExtensions:r,getImageLayoutMode:z,getPrintExtensions:B,headerImageWidth:G,htmlToJson:function(e,a="task",r){if(t(a))return n(e,a,r);const i=s(e??"",a,r);return o(i,at(a,r))},isPrintPreset:t,jsonToHtml:function(n,o="task",r){if(t(o))return n?e(n,o,r):"";if(function(t){if(!t)return!0;const e=t.content;return!Array.isArray(e)||0===e.length||e.every((t=>"paragraph"===t?.type&&(!t.content||0===t.content.length)))}(n))return"";const i=a(n,at(o,r));return s(i,o,r)},jsonToText:function(t){if(!t)return"";const e=new Set(["paragraph","heading","blockquote","listItem","bulletList","orderedList","codeBlock","horizontalRule"]),a=[],s=t=>{t&&("text"!==t.type||"string"!=typeof t.text?"variable"!==t.type?"mention"!==t.type?"mergeField"!==t.type?"signatureSlot"!==t.type?"hardBreak"!==t.type?(Array.isArray(t.content)&&t.content.forEach(s),e.has(t.type)&&a.push("\n")):a.push("\n"):a.push(`⟦sig:${t.attrs?.slot??1}⟧`):a.push(t.attrs?.value||`[[${t.attrs?.name??""}]]`):a.push(`@${t.attrs?.label??""}`):a.push(`{{${t.attrs?.name??""}}}`):a.push(t.text))};return s(t),a.join("").replace(/\n{3,}/g,"\n\n").trim()},layoutBox:j,maxLengthForPreset:Y,nextFreeSlot:v,normalizePrintHtml:U,pageContentHeight:V,parseFieldToken:$,readPrintHtml:n,resolvePageSize:w,sanitize:s,sanitizeFieldName:D,serializePrintHtml:J,setFieldValuesInHtml:K,signatureBoxStyle:W,signatureSlotHtml:X,signatureToken:Z,stripBandOffsets:q,toolbarItems:et,writePrintHtml:e});export{st as R}
@@ -1 +1 @@
1
- function n(n){if(!n||"string"!=typeof n)return null;const t=n.trim().replace("#","");return/^[0-9a-f]+$/i.test(t)?3===t.length?{r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16)}:6===t.length?{r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16)}:null:null}function t(n,t,r){const s=n=>Math.max(0,Math.min(255,Math.round(Number.isFinite(n)?n:0))).toString(16).padStart(2,"0").toUpperCase();return`#${s(n)}${s(t)}${s(r)}`}function r(t){const r=n(t);if(!r)return null;const s=r.r/255,u=r.g/255,e=r.b/255,a=Math.max(s,u,e),o=a-Math.min(s,u,e);let c=0;return 0!==o&&(c=a===s?(u-e)/o%6:a===u?(e-s)/o+2:(s-u)/o+4,c*=60,c<0&&(c+=360)),{h:c,s:0===a?0:o/a*100,v:100*a}}function s({h:n,s:r,v:s}){const u=n=>Number.isFinite(n)?n:0,e=(u(n)%360+360)%360,a=u(r)/100,o=u(s)/100,c=o*a,i=c*(1-Math.abs(e/60%2-1)),f=o-c,l=Math.floor(e/60),h=[[c,i,0],[i,c,0],[0,c,i],[0,i,c],[i,0,c],[c,0,i]],[d,p,M]=h[l%6];return t(255*(d+f),255*(p+f),255*(M+f))}function u(n){return/^#?(?:[0-9a-f]{3}|[0-9a-f]{6})$/i.test((n||"").trim())}function e(r){const e=(r||"").trim();if(!e)return null;if(u(e)){const r=n(e);return t(r.r,r.g,r.b)}const a=e.match(/^rgba?\(\s*([\d.]+)[\s,]+([\d.]+)[\s,]+([\d.]+)(?:[\s,/]+[\d.%]+)?\s*\)$/i);if(a){const[n,r,s]=[+a[1],+a[2],+a[3]];return[n,r,s].every(Number.isFinite)?t(n,r,s):null}const o=e.match(/^hsla?\(\s*([\d.-]+)(?:deg)?[\s,]+([\d.]+)%[\s,]+([\d.]+)%(?:[\s,/]+[\d.%]+)?\s*\)$/i);if(o){const n=+o[1],t=+o[3]/100,r=+o[2]/100;if(![n,t,r].every(Number.isFinite))return null;const u=t+r*Math.min(t,1-t);return s({h:n,s:100*(0===u?0:2*(1-t/u)),v:100*u})}return null}function a(t){return function(t){const r=n(t);if(!r)return 0;const[s,u,e]=[r.r/255,r.g/255,r.b/255].map((n=>n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)));return.2126*s+.7152*u+.0722*e}(t)>.4}export{u as a,r as b,s as h,a as i,e as p}
1
+ function n(n){if(!n||"string"!=typeof n)return null;const t=n.trim().replace("#","");return/^[0-9a-f]+$/i.test(t)?3===t.length?{r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16)}:6===t.length?{r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16)}:null:null}function t(n,t,r){const s=n=>Math.max(0,Math.min(255,Math.round(Number.isFinite(n)?n:0))).toString(16).padStart(2,"0").toUpperCase();return`#${s(n)}${s(t)}${s(r)}`}function r(t){const r=n(t);if(!r)return null;const s=r.r/255,u=r.g/255,e=r.b/255,a=Math.max(s,u,e),o=a-Math.min(s,u,e);let c=0;return 0!==o&&(c=a===s?(u-e)/o%6:a===u?(e-s)/o+2:(s-u)/o+4,c*=60,c<0&&(c+=360)),{h:c,s:0===a?0:o/a*100,v:100*a}}function s({h:n,s:r,v:s}){const u=n=>Number.isFinite(n)?n:0,e=(u(n)%360+360)%360,a=u(r)/100,o=u(s)/100,c=o*a,i=c*(1-Math.abs(e/60%2-1)),f=o-c,l=Math.floor(e/60),h=[[c,i,0],[i,c,0],[0,c,i],[0,i,c],[i,0,c],[c,0,i]],[b,d,p]=h[l%6];return t(255*(b+f),255*(d+f),255*(p+f))}function u(n){return/^#?(?:[0-9a-f]{3}|[0-9a-f]{6})$/i.test((n||"").trim())}function e(r){const e=(r||"").trim();if(!e)return null;if(u(e)){const r=n(e);return t(r.r,r.g,r.b)}const a=e.match(/^rgba?\(\s*([\d.]+)[\s,]+([\d.]+)[\s,]+([\d.]+)(?:[\s,/]+[\d.%]+)?\s*\)$/i);if(a){const[n,r,s]=[+a[1],+a[2],+a[3]];return[n,r,s].every(Number.isFinite)?t(n,r,s):null}const o=e.match(/^hsla?\(\s*([\d.-]+)(?:deg)?[\s,]+([\d.]+)%[\s,]+([\d.]+)%(?:[\s,/]+[\d.%]+)?\s*\)$/i);if(o){const n=+o[1],t=+o[3]/100,r=+o[2]/100;if(![n,t,r].every(Number.isFinite))return null;const u=t+r*Math.min(t,1-t);return s({h:n,s:100*(0===u?0:2*(1-t/u)),v:100*u})}return null}function a({r:n,g:t,b:r}){const[s,u,e]=[n/255,t/255,r/255].map((n=>n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)));return.2126*s+.7152*u+.0722*e}function o(t){return function(t){const r=n(t);return r?a(r):0}(t)>.4}export{u as a,r as b,s as h,o as i,a as l,e as p}
@@ -0,0 +1 @@
1
+ function t(t){if(t){if("string"==typeof t)try{return JSON.parse(t)}catch(t){return}return t}}function n(t){if(!t)return"";try{return JSON.parse(t)}catch(n){return t}}class i{constructor(){this.json=null,this.html=""}seed(t){this.json=t,this.html=""}markEmitted(t){this.json=t.json?JSON.stringify(t.json):null,this.html=t.html}isEcho(t){return t===this.json||t===this.html}}function r(t,i){""===i||null===i?t.commands.clearContent(!1):t.commands.setContent(n(i),{emitUpdate:!1})}function e(t,n){const i=t.isEmpty;return{json:i?null:t.getJSON(),html:i?"":n(t.getHTML()),text:t.getText()}}function s(t,n,i){t&&n&&t.editor!==n&&(t.editor=n),t&&(t.imageUpload=i)}function u(t){const n=t.view;t.state.doc.descendants(((t,i)=>{var r;if("image"!==t.type.name)return!0;const e=n.nodeDOM(i),s=(null===(r=null==e?void 0:e.closest)||void 0===r?void 0:r.call(e,"[data-resize-container]"))||e;if(!s)return!0;const u=t.attrs.imageLayout||"inline";return s.dataset.imageLayout=u,s.style.position="",s.style.left="",s.style.top="",s.style.zIndex="",s.style.display="center"===u||"full-width"===u?"":"inline-flex",!0}))}export{i as E,r as a,t as b,e as c,u as d,n as p,s}
@@ -0,0 +1 @@
1
+ function t(t,n,o){var e,r;const{offset:l,flip:c}=o,i=window.innerHeight,u=window.innerWidth,f=null!==(e=o.shift)&&void 0!==e?e:0,s=null!==(r=o.anchorRect)&&void 0!==r?r:t;let a,d,m=o.placement;if(c){const t=m.startsWith("bottom"),o=m.startsWith("top"),e=m.startsWith("right"),r=m.startsWith("left");if(t){const t=i-s.bottom-l;t<n.height&&s.top-l>t&&(m=m.replace("bottom","top"))}else if(o){const t=s.top-l;t<n.height&&i-s.bottom-l>t&&(m=m.replace("top","bottom"))}else if(e){const t=u-s.right-l;t<n.width&&s.left-l>t&&(m=m.replace("right","left"))}else if(r){const t=s.left-l;t<n.width&&u-s.right-l>t&&(m=m.replace("left","right"))}}const p=m.startsWith("top"),w=m.startsWith("right"),g=m.startsWith("left");if(w||g){d=w?s.right+l:s.left-n.width-l;const t=m.split("-")[1]||"center";a="start"===t?s.top:"end"===t?s.bottom-n.height:s.top+(s.height-n.height)/2,a+=f}else{a=p?s.top-n.height-l:s.bottom+l;const t=m.split("-")[1]||"center";d="start"===t?s.left:"end"===t?s.right-n.width:s.left+(s.width-n.width)/2,d+=f}return d<4&&(d=4),d+n.width>u-4&&(d=u-n.width-4),a+n.height>i-4&&(a=i-n.height-4),a<4&&(a=4),{top:a,left:d,actualPlacement:m}}function n(t){var n,o;if(!t)return null;const e=t.assignedSlot;if(e)return e.parentElement;const r=t.parentElement;if(r)return r;const l=null===(o=(n=t).getRootNode)||void 0===o?void 0:o.call(n);return l instanceof ShadowRoot?l.host:null}function o(t){let o=n(t);for(;o&&o!==document.body&&o!==document.documentElement;){const t=getComputedStyle(o),e=t.transform&&"none"!==t.transform,r=t.perspective&&"none"!==t.perspective,l=t.filter&&"none"!==t.filter,c=t.backdropFilter&&"none"!==t.backdropFilter,i=(t.willChange||"").includes("transform"),u=/paint|layout|strict|content/.test(t.contain||"");if(e||r||l||c||i||u||t.containerType&&"normal"!==t.containerType)return o;o=n(o)}return null}function e(t){if(!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth))return!1;const n=getComputedStyle(t);return/auto|scroll|overlay/.test(n.overflowY)||/auto|scroll|overlay/.test(n.overflowX)}function r(t){const o=[];let r=n(t);for(;r&&r!==document.body&&r!==document.documentElement;)e(r)&&o.push(r),r=n(r);return o}function l(t,n){return!(!t.width&&!t.height)&&[{top:0,left:0,bottom:window.innerHeight,right:window.innerWidth},...n].every((n=>t.bottom>n.top&&t.top<n.bottom&&t.right>n.left&&t.left<n.right))}export{t as c,r as f,o as g,l as i}
@@ -0,0 +1 @@
1
+ function t(t,n,r){return Number.isNaN(t)?n:Math.min(r,Math.max(n,t))}const n=/^#?([0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i;function r(t){if("string"!=typeof t)return null;const r=n.exec(t.trim());if(!r)return null;let a=r[1];a.length<=4&&(a=a.split("").map((t=>t+t)).join(""));const u=t=>parseInt(a.slice(t,t+2),16);return{r:u(0),g:u(2),b:u(4),a:8===a.length?u(6)/255:1}}function a({r:n,g:r,b:a}){const u=n=>Math.round(t(n,0,255)).toString(16).padStart(2,"0");return`#${u(n)}${u(r)}${u(a)}`}function u(n){return a(function({h:n,s:r,v:a}){const u=function(t){return Number.isNaN(t)?0:(t%360+360)%360}(n),e=t(r,0,100)/100,f=t(a,0,100)/100,o=f*e,c=o*(1-Math.abs(u/60%2-1)),s=f-o;let i=0,h=0,M=0;return u<60?[i,h]=[o,c]:u<120?[i,h]=[c,o]:u<180?[h,M]=[o,c]:u<240?[h,M]=[c,o]:[i,M]=u<300?[c,o]:[o,c],{r:Math.round(255*(i+s)),g:Math.round(255*(h+s)),b:Math.round(255*(M+s))}}(n))}export{u as a,t as c,r as h,a as r}
@@ -1 +1 @@
1
- const e={bold:{action:"bold",icon:"text-b",label:"Bold",type:"toggle"},italic:{action:"italic",icon:"text-italic",label:"Italic",type:"toggle"},underline:{action:"underline",icon:"text-underline",label:"Underline",type:"toggle"},strike:{action:"strike",icon:"text-strikethrough",label:"Strikethrough",type:"toggle"},headingStyle:{action:"headingStyle",icon:"text-aa",label:"Styles",type:"dropdown",options:[{action:"paragraph",label:"Normal text"},{action:"heading",label:"Title",payload:{level:1}},{action:"heading",label:"Subtitle",payload:{level:2}},{action:"heading",label:"Heading 3",payload:{level:3}}]},fontSize:{action:"fontSize",icon:"text-aa",label:"Font size",type:"dropdown",options:[{action:"fontSize",label:"8",payload:"8px"},{action:"fontSize",label:"9",payload:"9px"},{action:"fontSize",label:"10",payload:"10px"},{action:"fontSize",label:"11",payload:"11px"},{action:"fontSize",label:"12",payload:"12px"},{action:"fontSize",label:"14",payload:"14px"},{action:"fontSize",label:"16",payload:"16px"},{action:"fontSize",label:"18",payload:"18px"},{action:"fontSize",label:"20",payload:"20px"},{action:"fontSize",label:"24",payload:"24px"},{action:"fontSize",label:"28",payload:"28px"},{action:"fontSize",label:"36",payload:"36px"},{action:"fontSize",label:"48",payload:"48px"},{action:"fontSize",label:"72",payload:"72px"}]},fontFamily:{action:"fontFamily",icon:"text-t",label:"Font",type:"dropdown",options:[{action:"fontFamily",label:"Sans-serif",payload:"sans-serif"},{action:"fontFamily",label:"Serif",payload:"serif"},{action:"fontFamily",label:"Monospace",payload:"monospace"},{action:"separator",label:"─── System fonts ───"},{action:"fontFamily",label:"Arial",payload:"Arial, sans-serif"},{action:"fontFamily",label:"Arial Black",payload:"'Arial Black', sans-serif"},{action:"fontFamily",label:"Comic Sans MS",payload:"'Comic Sans MS', cursive"},{action:"fontFamily",label:"Courier New",payload:"'Courier New', monospace"},{action:"fontFamily",label:"Georgia",payload:"Georgia, serif"},{action:"fontFamily",label:"Helvetica",payload:"Helvetica, Arial, sans-serif"},{action:"fontFamily",label:"Impact",payload:"Impact, sans-serif"},{action:"fontFamily",label:"Lucida Console",payload:"'Lucida Console', monospace"},{action:"fontFamily",label:"Palatino",payload:"'Palatino Linotype', Palatino, serif"},{action:"fontFamily",label:"Tahoma",payload:"Tahoma, sans-serif"},{action:"fontFamily",label:"Times New Roman",payload:"'Times New Roman', serif"},{action:"fontFamily",label:"Trebuchet MS",payload:"'Trebuchet MS', sans-serif"},{action:"fontFamily",label:"Verdana",payload:"Verdana, sans-serif"},{action:"fontFamily",label:"Garamond",payload:"Garamond, serif"},{action:"fontFamily",label:"Futura",payload:"Futura, sans-serif"},{action:"fontFamily",label:"Optima",payload:"Optima, sans-serif"},{action:"fontFamily",label:"Didot",payload:"Didot, serif"},{action:"fontFamily",label:"American Typewriter",payload:"'American Typewriter', serif"},{action:"fontFamily",label:"Brush Script MT",payload:"'Brush Script MT', cursive"}]},bulletList:{action:"bulletList",icon:"list-bullets",label:"Bullet list",type:"toggle"},orderedList:{action:"orderedList",icon:"list-numbers",label:"Numbered list",type:"toggle"},bulletListMenu:{action:"bulletListMenu",icon:"list-bullets",label:"Bullet list",type:"listpicker",options:[{action:"bulletStyle",label:"Disc",payload:"disc"},{action:"bulletStyle",label:"Circle",payload:"circle"},{action:"bulletStyle",label:"Square",payload:"square"}]},orderedListMenu:{action:"orderedListMenu",icon:"list-numbers",label:"Numbered list",type:"listpicker",options:[{action:"orderedStyle",label:"1. 2. 3.",payload:"decimal"},{action:"orderedStyle",label:"a. b. c.",payload:"lower-alpha"},{action:"orderedStyle",label:"i. ii. iii.",payload:"lower-roman"},{action:"orderedStyle",label:"A. B. C.",payload:"upper-alpha"},{action:"orderedStyle",label:"I. II. III.",payload:"upper-roman"}]},taskListMenu:{action:"taskListMenu",icon:"list-checks",label:"Task list",type:"listpicker",options:[{action:"taskStyle",label:"Strike on complete",payload:"strike"},{action:"taskStyle",label:"No strikethrough",payload:"plain"}]},blockquote:{action:"blockquote",icon:"quotes",label:"Quote",type:"toggle"},codeBlock:{action:"codeBlock",icon:"code-block",label:"Code block",type:"toggle"},horizontalRule:{action:"horizontalRule",icon:"minus",label:"Horizontal rule",type:"button"},link:{action:"link",icon:"link",label:"Link",type:"popover"},image:{action:"image",icon:"image",label:"Image",type:"popover"},attachment:{action:"attachment",icon:"paperclip",label:"Attach files",type:"button"},youtube:{action:"youtube",icon:"youtube-logo",label:"YouTube video",type:"popover"},iframe:{action:"iframe",icon:"frame-corners",label:"Embed (iframe)",type:"popover"},table:{action:"table",icon:"table",label:"Table",type:"grid"},textColor:{action:"textColor",icon:"text-a-underline",label:"Text color",type:"color"},highlight:{action:"highlight",icon:"highlighter",label:"Highlight",type:"color"},alignment:{action:"alignment",icon:"text-align-left",label:"Alignment",type:"dropdown",options:[{action:"textAlign",label:"Left",icon:"text-align-left",payload:"left"},{action:"textAlign",label:"Center",icon:"text-align-center",payload:"center"},{action:"textAlign",label:"Right",icon:"text-align-right",payload:"right"},{action:"textAlign",label:"Justify",icon:"text-align-justify",payload:"justify"}]},lineSpacing:{action:"lineSpacing",icon:"arrows-down-up",label:"Line spacing",type:"dropdown",options:[{action:"lineHeight",label:"Single",payload:"1"},{action:"lineHeight",label:"1.15",payload:"1.15"},{action:"lineHeight",label:"1.5",payload:"1.5"},{action:"lineHeight",label:"1.75",payload:"1.75"},{action:"lineHeight",label:"Double",payload:"2"},{action:"lineHeight",label:"2.5",payload:"2.5"},{action:"lineHeight",label:"3",payload:"3"}]},letterSpacing:{action:"letterSpacing",icon:"arrows-out-line-horizontal",label:"Letter spacing",type:"dropdown",options:[{action:"letterSpacing",label:"Normal",payload:"normal"},{action:"letterSpacing",label:"Tight (-0.05em)",payload:"-0.05em"},{action:"letterSpacing",label:"Light (0.05em)",payload:"0.05em"},{action:"letterSpacing",label:"Wide (0.1em)",payload:"0.1em"},{action:"letterSpacing",label:"Very wide (0.2em)",payload:"0.2em"}]},indentIncrease:{action:"indentIncrease",icon:"text-indent",label:"Increase indent",type:"button"},indentDecrease:{action:"indentDecrease",icon:"text-outdent",label:"Decrease indent",type:"button"},callout:{action:"callout",icon:"info",label:"Callout",type:"dropdown",options:[{action:"callout",label:"Info",icon:"info",payload:"info"},{action:"callout",label:"Warning",icon:"warning",payload:"warning"},{action:"callout",label:"Success",icon:"check-circle",payload:"success"},{action:"callout",label:"Error",icon:"x-circle",payload:"error"}]},undo:{action:"undo",icon:"arrow-counter-clockwise",label:"Undo",type:"button"},redo:{action:"redo",icon:"arrow-clockwise",label:"Redo",type:"button"},addColumnAfter:{action:"addColumnAfter",icon:"columns-plus-right",label:"Add column after",type:"button"},addColumnBefore:{action:"addColumnBefore",icon:"columns-plus-left",label:"Add column before",type:"button"},deleteColumn:{action:"deleteColumn",icon:"column-minus",label:"Delete column",type:"button"},addRowAfter:{action:"addRowAfter",icon:"rows-plus-bottom",label:"Add row after",type:"button"},addRowBefore:{action:"addRowBefore",icon:"rows-plus-top",label:"Add row before",type:"button"},deleteRow:{action:"deleteRow",icon:"row-minus",label:"Delete row",type:"button"},deleteTable:{action:"deleteTable",icon:"trash",label:"Delete table",type:"button"},mergeCells:{action:"mergeCells",icon:"unite-square",label:"Merge cells",type:"button"},splitCell:{action:"splitCell",icon:"split-vertical",label:"Split cell",type:"button"},toggleHeaderRow:{action:"toggleHeaderRow",icon:"rows",label:"Header row",type:"toggle"}},a={type:"separator"},l={none:[],compact:[e.bold,e.italic,e.link],"compact-assets":[e.bold,e.italic,e.link,a,e.bulletList,e.orderedList,a,e.image,e.attachment],basic:[e.bold,e.italic,e.underline,e.bulletList,e.orderedList,e.link],notes:[e.bold,e.italic,e.underline,e.strike,a,e.textColor,e.highlight,a,e.bulletListMenu,e.orderedListMenu,a,e.link],email:[e.bold,e.italic,e.underline,e.strike,a,e.textColor,a,e.link,e.image,e.bulletListMenu,e.orderedListMenu],full:[e.headingStyle,e.fontFamily,e.fontSize,a,e.bold,e.italic,e.underline,e.strike,a,e.textColor,e.highlight,a,e.link,e.image,e.youtube,e.iframe,e.table,a,e.alignment,e.lineSpacing,e.letterSpacing,a,e.bulletListMenu,e.orderedListMenu,e.taskListMenu,e.indentDecrease,e.indentIncrease,a,e.blockquote,e.codeBlock,e.horizontalRule,a,e.callout,a,e.undo,e.redo]};function o(e){return l[e]??l.basic}const t=[{type:"separator"},e.addColumnBefore,e.addColumnAfter,e.deleteColumn,{type:"separator"},e.addRowBefore,e.addRowAfter,e.deleteRow,{type:"separator"},e.mergeCells,e.splitCell,e.toggleHeaderRow,{type:"separator"},e.deleteTable],i=["#000000","#434343","#666666","#999999","#b7b7b7","#cccccc","#d9d9d9","#efefef","#f3f3f3","#ffffff","#980000","#ff0000","#ff9900","#ffff00","#00ff00","#00ffff","#4a86e8","#0000ff","#9900ff","#ff00ff","#e6b8af","#f4cccc","#fce5cd","#fff2cc","#d9ead3","#d0e0e3","#c9daf8","#cfe2f3","#d9d2e9","#ead1dc"];export{i as C,t as T,o as t}
1
+ const e={bold:{action:"bold",icon:"text-b",label:"Bold",type:"toggle"},italic:{action:"italic",icon:"text-italic",label:"Italic",type:"toggle"},underline:{action:"underline",icon:"text-underline",label:"Underline",type:"toggle"},strike:{action:"strike",icon:"text-strikethrough",label:"Strikethrough",type:"toggle"},headingStyle:{action:"headingStyle",icon:"text-aa",label:"Styles",type:"dropdown",options:[{action:"paragraph",label:"Normal text"},{action:"heading",label:"Title",payload:{level:1}},{action:"heading",label:"Subtitle",payload:{level:2}},{action:"heading",label:"Heading 3",payload:{level:3}}]},fontSize:{action:"fontSize",icon:"text-aa",label:"Font size",type:"dropdown",options:[{action:"fontSize",label:"8",payload:"8px"},{action:"fontSize",label:"9",payload:"9px"},{action:"fontSize",label:"10",payload:"10px"},{action:"fontSize",label:"11",payload:"11px"},{action:"fontSize",label:"12",payload:"12px"},{action:"fontSize",label:"14",payload:"14px"},{action:"fontSize",label:"16",payload:"16px"},{action:"fontSize",label:"18",payload:"18px"},{action:"fontSize",label:"20",payload:"20px"},{action:"fontSize",label:"24",payload:"24px"},{action:"fontSize",label:"28",payload:"28px"},{action:"fontSize",label:"36",payload:"36px"},{action:"fontSize",label:"48",payload:"48px"},{action:"fontSize",label:"72",payload:"72px"}]},fontFamily:{action:"fontFamily",icon:"text-t",label:"Font",type:"dropdown",options:[{action:"fontFamily",label:"Sans-serif",payload:"sans-serif"},{action:"fontFamily",label:"Serif",payload:"serif"},{action:"fontFamily",label:"Monospace",payload:"monospace"},{action:"separator",label:"─── System fonts ───"},{action:"fontFamily",label:"Arial",payload:"Arial, sans-serif"},{action:"fontFamily",label:"Arial Black",payload:"'Arial Black', sans-serif"},{action:"fontFamily",label:"Comic Sans MS",payload:"'Comic Sans MS', cursive"},{action:"fontFamily",label:"Courier New",payload:"'Courier New', monospace"},{action:"fontFamily",label:"Georgia",payload:"Georgia, serif"},{action:"fontFamily",label:"Helvetica",payload:"Helvetica, Arial, sans-serif"},{action:"fontFamily",label:"Impact",payload:"Impact, sans-serif"},{action:"fontFamily",label:"Lucida Console",payload:"'Lucida Console', monospace"},{action:"fontFamily",label:"Palatino",payload:"'Palatino Linotype', Palatino, serif"},{action:"fontFamily",label:"Tahoma",payload:"Tahoma, sans-serif"},{action:"fontFamily",label:"Times New Roman",payload:"'Times New Roman', serif"},{action:"fontFamily",label:"Trebuchet MS",payload:"'Trebuchet MS', sans-serif"},{action:"fontFamily",label:"Verdana",payload:"Verdana, sans-serif"},{action:"fontFamily",label:"Garamond",payload:"Garamond, serif"},{action:"fontFamily",label:"Futura",payload:"Futura, sans-serif"},{action:"fontFamily",label:"Optima",payload:"Optima, sans-serif"},{action:"fontFamily",label:"Didot",payload:"Didot, serif"},{action:"fontFamily",label:"American Typewriter",payload:"'American Typewriter', serif"},{action:"fontFamily",label:"Brush Script MT",payload:"'Brush Script MT', cursive"}]},bulletList:{action:"bulletList",icon:"list-bullets",label:"Bullet list",type:"toggle"},orderedList:{action:"orderedList",icon:"list-numbers",label:"Numbered list",type:"toggle"},bulletListMenu:{action:"bulletListMenu",icon:"list-bullets",label:"Bullet list",type:"listpicker",options:[{action:"bulletStyle",label:"Disc",payload:"disc"},{action:"bulletStyle",label:"Circle",payload:"circle"},{action:"bulletStyle",label:"Square",payload:"square"}]},orderedListMenu:{action:"orderedListMenu",icon:"list-numbers",label:"Numbered list",type:"listpicker",options:[{action:"orderedStyle",label:"1. 2. 3.",payload:"decimal"},{action:"orderedStyle",label:"a. b. c.",payload:"lower-alpha"},{action:"orderedStyle",label:"i. ii. iii.",payload:"lower-roman"},{action:"orderedStyle",label:"A. B. C.",payload:"upper-alpha"},{action:"orderedStyle",label:"I. II. III.",payload:"upper-roman"}]},taskListMenu:{action:"taskListMenu",icon:"list-checks",label:"Task list",type:"listpicker",options:[{action:"taskStyle",label:"Strike on complete",payload:"strike"},{action:"taskStyle",label:"No strikethrough",payload:"plain"}]},blockquote:{action:"blockquote",icon:"quotes",label:"Quote",type:"toggle"},codeBlock:{action:"codeBlock",icon:"code-block",label:"Code block",type:"toggle"},horizontalRule:{action:"horizontalRule",icon:"minus",label:"Horizontal rule",type:"button"},link:{action:"link",icon:"link",label:"Link",type:"popover"},image:{action:"image",icon:"image",label:"Image",type:"popover"},attachment:{action:"attachment",icon:"paperclip",label:"Attach files",type:"button"},youtube:{action:"youtube",icon:"youtube-logo",label:"YouTube video",type:"popover"},iframe:{action:"iframe",icon:"frame-corners",label:"Embed (iframe)",type:"popover"},table:{action:"table",icon:"table",label:"Table",type:"grid"},textColor:{action:"textColor",icon:"text-a-underline",label:"Text color",type:"color"},highlight:{action:"highlight",icon:"highlighter",label:"Highlight",type:"color"},alignment:{action:"alignment",icon:"text-align-left",label:"Alignment",type:"dropdown",options:[{action:"textAlign",label:"Left",icon:"text-align-left",payload:"left"},{action:"textAlign",label:"Center",icon:"text-align-center",payload:"center"},{action:"textAlign",label:"Right",icon:"text-align-right",payload:"right"},{action:"textAlign",label:"Justify",icon:"text-align-justify",payload:"justify"}]},lineSpacing:{action:"lineSpacing",icon:"arrows-down-up",label:"Line spacing",type:"dropdown",options:[{action:"lineHeight",label:"Single",payload:"1"},{action:"lineHeight",label:"1.15",payload:"1.15"},{action:"lineHeight",label:"1.5",payload:"1.5"},{action:"lineHeight",label:"1.75",payload:"1.75"},{action:"lineHeight",label:"Double",payload:"2"},{action:"lineHeight",label:"2.5",payload:"2.5"},{action:"lineHeight",label:"3",payload:"3"}]},letterSpacing:{action:"letterSpacing",icon:"arrows-out-line-horizontal",label:"Letter spacing",type:"dropdown",options:[{action:"letterSpacing",label:"Normal",payload:"normal"},{action:"letterSpacing",label:"Tight (-0.05em)",payload:"-0.05em"},{action:"letterSpacing",label:"Light (0.05em)",payload:"0.05em"},{action:"letterSpacing",label:"Wide (0.1em)",payload:"0.1em"},{action:"letterSpacing",label:"Very wide (0.2em)",payload:"0.2em"}]},indentIncrease:{action:"indentIncrease",icon:"text-indent",label:"Increase indent",type:"button"},indentDecrease:{action:"indentDecrease",icon:"text-outdent",label:"Decrease indent",type:"button"},callout:{action:"callout",icon:"info",label:"Callout",type:"dropdown",options:[{action:"callout",label:"Info",icon:"info",payload:"info"},{action:"callout",label:"Warning",icon:"warning",payload:"warning"},{action:"callout",label:"Success",icon:"check-circle",payload:"success"},{action:"callout",label:"Error",icon:"x-circle",payload:"error"}]},documentHeadingStyle:{action:"headingStyle",icon:"text-aa",label:"Styles",type:"dropdown",options:[{action:"paragraph",label:"Normal text"},{action:"heading",label:"Title",payload:{level:1}},{action:"heading",label:"Subtitle",payload:{level:2}},{action:"heading",label:"Heading 3",payload:{level:3}},{action:"heading",label:"Heading 4",payload:{level:4}}]},field:{action:"field",icon:"brackets-square",label:"Field",type:"popover"},signature:{action:"signature",icon:"signature",label:"Signature",type:"button"},documentHeader:{action:"documentHeader",icon:"layout",label:"Header",type:"button"},undo:{action:"undo",icon:"arrow-counter-clockwise",label:"Undo",type:"button"},redo:{action:"redo",icon:"arrow-clockwise",label:"Redo",type:"button"},addColumnAfter:{action:"addColumnAfter",icon:"columns-plus-right",label:"Add column after",type:"button"},addColumnBefore:{action:"addColumnBefore",icon:"columns-plus-left",label:"Add column before",type:"button"},deleteColumn:{action:"deleteColumn",icon:"column-minus",label:"Delete column",type:"button"},addRowAfter:{action:"addRowAfter",icon:"rows-plus-bottom",label:"Add row after",type:"button"},addRowBefore:{action:"addRowBefore",icon:"rows-plus-top",label:"Add row before",type:"button"},deleteRow:{action:"deleteRow",icon:"row-minus",label:"Delete row",type:"button"},deleteTable:{action:"deleteTable",icon:"trash",label:"Delete table",type:"button"},mergeCells:{action:"mergeCells",icon:"unite-square",label:"Merge cells",type:"button"},splitCell:{action:"splitCell",icon:"split-vertical",label:"Split cell",type:"button"},toggleHeaderRow:{action:"toggleHeaderRow",icon:"rows",label:"Header row",type:"toggle"}},a={type:"separator"},l={none:[],compact:[e.bold,e.italic,e.link],"compact-assets":[e.bold,e.italic,e.link,a,e.bulletList,e.orderedList,a,e.image,e.attachment],basic:[e.bold,e.italic,e.underline,e.bulletList,e.orderedList,e.link],notes:[e.bold,e.italic,e.underline,e.strike,a,e.textColor,e.highlight,a,e.bulletListMenu,e.orderedListMenu,a,e.link],email:[e.bold,e.italic,e.underline,e.strike,a,e.textColor,a,e.link,e.image,e.bulletListMenu,e.orderedListMenu],full:[e.headingStyle,e.fontFamily,e.fontSize,a,e.bold,e.italic,e.underline,e.strike,a,e.textColor,e.highlight,a,e.link,e.image,e.youtube,e.iframe,e.table,a,e.alignment,e.lineSpacing,e.letterSpacing,a,e.bulletListMenu,e.orderedListMenu,e.taskListMenu,e.indentDecrease,e.indentIncrease,a,e.blockquote,e.codeBlock,e.horizontalRule,a,e.callout,a,e.undo,e.redo],document:[e.documentHeadingStyle,e.fontSize,a,e.bold,e.italic,e.strike,a,e.textColor,e.highlight,a,e.alignment,a,e.bulletList,e.orderedList,a,e.link,e.table,e.image,a,e.field,e.signature,e.documentHeader,a,e.undo,e.redo]};function t(e){return l[e]??l.basic}const o=[{type:"separator"},e.addColumnBefore,e.addColumnAfter,e.deleteColumn,{type:"separator"},e.addRowBefore,e.addRowAfter,e.deleteRow,{type:"separator"},e.mergeCells,e.splitCell,e.toggleHeaderRow,{type:"separator"},e.deleteTable],i=["#000000","#434343","#666666","#999999","#b7b7b7","#cccccc","#d9d9d9","#efefef","#f3f3f3","#ffffff","#980000","#ff0000","#ff9900","#ffff00","#00ff00","#00ffff","#4a86e8","#0000ff","#9900ff","#ff00ff","#e6b8af","#f4cccc","#fce5cd","#fff2cc","#d9ead3","#d0e0e3","#c9daf8","#cfe2f3","#d9d2e9","#ead1dc"];export{i as C,o as T,t}
@@ -0,0 +1 @@
1
+ import{h as r}from"./p-DJkaRtbb.js";const e=({required:e})=>e?r("span",{class:"co-field-required",part:"required"},"*",r("span",{class:"co-field-required__caption"})):null;export{e as R}
@@ -0,0 +1,2 @@
1
+ const o=()=>{},c=":root{--co-color-base-negro:#1f1c1b;--co-color-base-blanco:#ffffff;--co-color-base-off-white:#f7f6f0;--co-color-primary-verde:#02a270;--co-color-primary-amarillo:#fdbf00;--co-color-primary-azul:#2563eb;--co-color-primary-rosado:#f32a73;--co-color-azul-100:#eff4ff;--co-color-azul-200:#dbe6fe;--co-color-azul-300:#bfd3fe;--co-color-azul-400:#93b4fd;--co-color-azul-500:#6090fa;--co-color-azul-600:#3b76f6;--co-color-azul-700:#2563eb;--co-color-azul-800:#1d58d8;--co-color-azul-900:#1e408a;--co-color-celeste-100:#e5f0ff;--co-color-celeste-600:#008ff0;--co-color-rosado-100:#fef1f6;--co-color-rosado-200:#fde6f0;--co-color-rosado-300:#fdcde2;--co-color-rosado-400:#fda4c8;--co-color-rosado-500:#fb6ba3;--co-color-rosado-600:#f32a73;--co-color-rosado-700:#e41e5c;--co-color-rosado-800:#c61044;--co-color-rosado-900:#a41039;--co-color-amarillo-100:#ffffea;--co-color-amarillo-200:#fffbc5;--co-color-amarillo-300:#fff885;--co-color-amarillo-400:#ffe01b;--co-color-amarillo-500:#fdbf00;--co-color-amarillo-600:#e29500;--co-color-amarillo-700:#bb6902;--co-color-amarillo-800:#985108;--co-color-amarillo-900:#7c420b;--co-color-verde-100:#ecfdf5;--co-color-verde-200:#d0fbe5;--co-color-verde-300:#a5f5d0;--co-color-verde-400:#6beab8;--co-color-verde-500:#31d69a;--co-color-verde-600:#0cbd82;--co-color-verde-700:#02a270;--co-color-verde-800:#027a58;--co-color-verde-900:#046147;--co-color-neutral-100:#e6e5df;--co-color-neutral-200:#eeede7;--co-color-neutral-300:#f3f2ec;--co-color-gray-100:#f6f6f6;--co-color-gray-200:#e3e3e3;--co-color-gray-300:#c4c4c4;--co-color-gray-400:#a0a0a0;--co-color-gray-500:#888888;--co-color-gray-600:#585858;--co-color-gray-700:#1f1c1b;--co-color-gray-800:#0a0a0a;--co-color-secondary-rosado-100:#d74ba0;--co-color-secondary-rosado-50:#ffc8eb;--co-color-secondary-rosado-25:#ffe6f5;--co-color-secondary-rojo-100:#eb1e1e;--co-color-secondary-rojo-50:#ff878c;--co-color-secondary-rojo-25:#ffd7dc;--co-color-secondary-naranja-100:#f0821e;--co-color-secondary-naranja-50:#ffbe82;--co-color-secondary-naranja-25:#ffe6d2;--co-color-secondary-amarillo-100:#fad223;--co-color-secondary-amarillo-50:#ffe67d;--co-color-secondary-amarillo-25:#fffac3;--co-color-secondary-verde-100:#afe664;--co-color-secondary-verde-50:#d7ffb4;--co-color-secondary-verde-25:#ebffc8;--co-color-secondary-oliva-100:#aab43c;--co-color-secondary-oliva-50:#d2dc96;--co-color-secondary-oliva-25:#f0f0d2;--co-color-secondary-turquesa-100:#00afaf;--co-color-secondary-turquesa-50:#3ce1c8;--co-color-secondary-turquesa-25:#c8f0f0;--co-color-secondary-azul-claro-100:#00bee6;--co-color-secondary-azul-claro-50:#6ee6f0;--co-color-secondary-azul-claro-25:#befaff;--co-color-secondary-azul-electrico-100:#000aff;--co-color-secondary-azul-electrico-50:#8095ff;--co-color-secondary-azul-electrico-25:#cce0ff;--co-color-secondary-violeta-100:#5f4bd7;--co-color-secondary-violeta-50:#b9b4ff;--co-color-secondary-violeta-25:#e1e1ff;--co-color-secondary-marron-100:#af7355;--co-color-secondary-marron-50:#d7b9a5;--co-color-secondary-marron-25:#f0e1d7;--co-color-secondary-guinda-100:#811137;--co-color-secondary-guinda-50:#c0889c;--co-color-secondary-guinda-25:#e6cfd7;--co-color-status-success:#0a7724;--co-color-status-bg-success:#ebf9ec;--co-color-status-progress:#2d6cc5;--co-color-status-bg-progress:#eef3fa;--co-color-status-submitted:#7556ca;--co-color-status-bg-submitted:#f4f1fb;--co-color-status-review:#85571f;--co-color-status-bg-review:#fcf5db;--co-color-status-pending:#b45103;--co-color-status-bg-pending:#f9f1eb;--co-color-status-error:#aa2e1b;--co-color-status-bg-error:#ffefef;--co-color-opacity-negro-4:rgba(31, 28, 27, 0.04);--co-color-opacity-negro-8:rgba(31, 28, 27, 0.08);--co-color-opacity-negro-16:rgba(31, 28, 27, 0.16);--co-color-opacity-negro-25:rgba(31, 28, 27, 0.25);--co-color-opacity-negro-50:rgba(31, 28, 27, 0.50);--co-color-opacity-negro-80:rgba(31, 28, 27, 0.80);--co-color-opacity-blanco-4:rgba(255, 255, 255, 0.04);--co-color-opacity-blanco-8:rgba(255, 255, 255, 0.08);--co-color-opacity-blanco-16:rgba(255, 255, 255, 0.16);--co-color-opacity-blanco-25:rgba(255, 255, 255, 0.25);--co-color-opacity-blanco-50:rgba(255, 255, 255, 0.50);--co-color-opacity-blanco-80:rgba(255, 255, 255, 0.80);--co-glass-blur:12px;--co-glass-saturate:1.3;--co-glass-panel-blur:18px;--co-motion-duration-instant:80ms;--co-motion-duration-fast:150ms;--co-motion-duration-base:250ms;--co-motion-duration-slow:350ms;--co-motion-duration-slower:500ms;--co-motion-ease-out:cubic-bezier(0.22, 1, 0.36, 1);--co-motion-ease-in:cubic-bezier(0.4, 0, 1, 1);--co-motion-ease-in-out:cubic-bezier(0.45, 0, 0.15, 1);--co-motion-ease-spring:cubic-bezier(0.34, 1.36, 0.64, 1);--co-motion-blur-sm:2px;--co-motion-blur-md:3px;--co-border-radius-xxs:4px;--co-border-radius-xs:8px;--co-border-radius-sm:12px;--co-border-radius-md:14px;--co-border-radius-lg:16px;--co-border-radius-xl:24px;--co-border-radius-2xl:32px;--co-border-radius-3xl:40px;--co-border-radius-4xl:48px;--co-border-radius-5xl:56px;--co-border-radius-6xl:64px;--co-border-radius-full:9999px;--co-shadow-sm:0 1px 2px 0 rgba(26, 26, 26, 0.04);--co-shadow-sm2:0 1px 2px -1px rgba(26, 26, 26, 0.05), 0 1px 4px -1px rgba(26, 26, 26, 0.05);--co-shadow-lg:0 10px 15px -3px rgba(26, 26, 26, 0.05), 0 4px 6px -4px rgba(26, 26, 26, 0.05);--co-spacing-xxs:2px;--co-spacing-xs:4px;--co-spacing-sm:6px;--co-spacing-sm2:8px;--co-spacing-md:12px;--co-spacing-lg:16px;--co-spacing-xl:20px;--co-spacing-2xl:24px;--co-spacing-3xl:32px;--co-spacing-4xl:40px;--co-spacing-5xl:48px;--co-spacing-6xl:56px;--co-spacing-7xl:64px;--co-spacing-8xl:72px;--co-spacing-9xl:80px;--co-spacing-10xl:88px;--co-spacing-11xl:96px;--co-spacing-12xl:104px;--co-spacing-13xl:112px;--co-spacing-14xl:120px;--co-spacing-full:9999px;--co-font-family-primary:'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;--co-font-family-mono:'Geist Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;--co-font-size-10:10px;--co-font-size-11:11px;--co-font-size-12:12px;--co-font-size-13:13px;--co-font-size-14:14px;--co-font-size-16:16px;--co-font-size-18:18px;--co-font-size-20:20px;--co-font-size-22:22px;--co-font-size-24:24px;--co-font-size-26:26px;--co-font-size-28:28px;--co-font-size-30:30px;--co-font-size-32:32px;--co-font-size-36:36px;--co-font-size-40:40px;--co-font-size-44:44px;--co-font-size-48:48px;--co-font-size-50:50px;--co-font-size-56:56px;--co-font-size-64:64px;--co-font-size-72:72px;--co-font-size-80:80px;--co-font-size-96:96px;--co-font-size-104:104px;--co-font-size-112:112px;--co-font-size-128:128px;--co-font-size-144:144px;--co-font-size-160:160px;--co-font-size-180:180px;--co-font-size-200:200px;--co-font-size-220:220px;--co-font-weight-regular:400;--co-font-weight-medium:500;--co-font-weight-semibold:600;--co-font-weight-bold:700;--co-font-line-height-none:1;--co-font-line-height-tight:1.2;--co-font-line-height-snug:1.3;--co-font-line-height-normal:1.5;--co-font-line-height-relaxed:1.6;--co-font-letter-spacing-body:-0.03em;--co-font-letter-spacing-overline:0.08em;--co-semantic-accent:var(--co-color-celeste-600);--co-semantic-on-accent:var(--co-color-base-blanco);--co-semantic-surface-primary:var(--co-color-base-negro);--co-semantic-surface-secondary:var(--co-color-base-blanco);--co-semantic-surface-page:var(--co-color-base-blanco);--co-semantic-surface-muted:var(--co-color-gray-200);--co-semantic-surface-hover:var(--co-color-opacity-negro-8);--co-semantic-surface-disabled:var(--co-color-gray-100);--co-semantic-surface-control:var(--co-color-gray-100);--co-semantic-on-primary:var(--co-color-base-blanco);--co-semantic-on-secondary:var(--co-color-base-negro);--co-semantic-text-default:var(--co-color-base-negro);--co-semantic-text-inverse:var(--co-color-base-blanco);--co-semantic-text-secondary:var(--co-color-gray-600);--co-semantic-text-muted:var(--co-color-gray-500);--co-semantic-text-disabled:var(--co-color-gray-400);--co-semantic-border-default:var(--co-color-opacity-negro-16);--co-semantic-border-subtle:var(--co-color-opacity-negro-8);--co-semantic-border-strong:var(--co-color-opacity-negro-50);--co-semantic-border-field:var(--co-color-opacity-negro-25);--co-semantic-border-focus:var(--co-color-opacity-negro-50);--co-semantic-border-focus-ring:var(--co-color-opacity-negro-8);--co-semantic-border-hairline:var(--co-color-opacity-negro-4);--co-semantic-control-thumb:var(--co-color-base-blanco);--co-semantic-control-shadow:var(--co-color-opacity-negro-16);--co-semantic-status-success:var(--co-color-status-success);--co-semantic-status-error:var(--co-color-status-error);--co-semantic-status-warning:var(--co-color-primary-amarillo);--co-semantic-status-info:var(--co-color-status-progress);--co-semantic-surface-inverse:var(--co-semantic-surface-primary)}@media (prefers-reduced-motion: reduce){:root{--co-motion-duration-instant:0.01ms;--co-motion-duration-fast:0.01ms;--co-motion-duration-base:0.01ms;--co-motion-duration-slow:0.01ms;--co-motion-duration-slower:0.01ms}}@media (prefers-reduced-transparency: reduce){:root{--co-glass-filter:none}}:root{--co-color-negro:var(--co-color-base-negro);--co-color-blanco:var(--co-color-base-blanco);--co-color-neutral-beige:var(--co-color-base-off-white);--co-color-secondary-rojo:var(--co-color-secondary-rojo-100);--co-color-secondary-naranja:var(--co-color-secondary-naranja-100);--co-color-secondary-oliva:var(--co-color-secondary-oliva-100);--co-color-secondary-violeta:var(--co-color-secondary-violeta-100);--co-color-secondary-marron:var(--co-color-secondary-marron-100);--co-color-status-success-bg:var(--co-color-status-bg-success);--co-font-family:var(--co-font-family-primary);--co-font-size-11:11px;--co-font-size-13:13px;--co-font-size-28:28px}";function e(o,c,e){const r="undefined"!=typeof HTMLElement?HTMLElement.prototype:null;for(;o&&o!==r;){const r=Object.getOwnPropertyDescriptor(o,c);if(r&&(!e||r.get))return r;o=Object.getPrototypeOf(o)}}var r,t=(o,c)=>{var r;Object.entries(null!=(r=c.t.o)?r:{}).map((([r,[t]])=>{if(31&t||32&t){const t=o[r],n=e(Object.getPrototypeOf(o),r,!0)||Object.getOwnPropertyDescriptor(o,r);n&&Object.defineProperty(o,r,{get(){return n.get.call(this)},set(o){n.set.call(this,o)},configurable:!0,enumerable:!0}),c.l.has(r)?o[r]=c.l.get(r):void 0!==t&&(o[r]=t)}}))},n=o=>{if(o.__stencil__getHostRef)return o.__stencil__getHostRef()},l=(o,c)=>{c&&(o.__stencil__getHostRef=()=>c,c.i=o,512&c.t.u&&t(o,c))},s=(o,c)=>c in o,a=(o,c)=>(0,console.error)(o,c),i=new Map,f=new Map,u="slot-fb{display:contents}slot-fb[hidden]{display:none}",d="http://www.w3.org/1999/xlink",p="undefined"!=typeof window?window:{},b={u:0,p:"",jmp:o=>o(),raf:o=>requestAnimationFrame(o),ael:(o,c,e,r)=>o.addEventListener(c,e,r),rel:(o,c,e,r)=>o.removeEventListener(c,e,r),ce:(o,c)=>new CustomEvent(o,c)},m=o=>Promise.resolve(o),v=(()=>{try{return!!p.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(o){}return!1})(),y=!!v&&(()=>!!p.document&&Object.getOwnPropertyDescriptor(p.document.adoptedStyleSheets,"length").writable)(),g=!1,h=[],x=[],w=(o,c)=>e=>{o.push(e),g||(g=!0,c&&4&b.u?j($):b.raf($))},z=o=>{for(let c=0;c<o.length;c++)try{o[c](performance.now())}catch(o){a(o)}o.length=0},$=()=>{z(h),z(x),(g=h.length>0)&&b.raf($)},j=o=>m().then(o),S=w(x,!0);function O(){var o;const e=this.attachShadow({mode:"open"});if(void 0===r&&(r=null!=(o=function(o){if(!v)return;const c=new CSSStyleSheet;return c.replaceSync(o),c}(c))?o:null),r)y?e.adoptedStyleSheets.push(r):e.adoptedStyleSheets=[...e.adoptedStyleSheets,r];else if(!v){const o=document.createElement("style");o.innerHTML=c,e.prepend(o)}}var k=o=>{const c=L(o,"childNodes");o.tagName&&o.tagName.includes("-")&&o["s-cr"]&&"SLOT-FB"!==o.tagName&&M(c,o.tagName).forEach((o=>{1===o.nodeType&&"SLOT-FB"===o.tagName&&(o.hidden=!!N(o,E(o),!1).length)}));let e=0;for(e=0;e<c.length;e++){const o=c[e];1===o.nodeType&&L(o,"childNodes").length&&k(o)}};function M(o,c,e){let r,t=0,n=[];for(;t<o.length;t++){if(r=o[t],r["s-sr"]&&(!c||r["s-hn"]===c)&&(void 0===e||E(r)===e)&&(n.push(r),void 0!==e))return n;n=[...n,...M(r.childNodes,c,e)]}return n}var N=(o,c,e=!0)=>{const r=[];(e&&o["s-sr"]||!o["s-sr"])&&r.push(o);let t=o;for(;t=t.nextSibling;)E(t)!==c||!e&&t["s-sr"]||r.push(t);return r},C=(o,c)=>1===o.nodeType?null===o.getAttribute("slot")&&""===c||o.getAttribute("slot")===c:o["s-sn"]===c||""===c,E=o=>"string"==typeof o["s-sn"]?o["s-sn"]:1===o.nodeType&&o.getAttribute("slot")||void 0;function L(o,c){if("__"+c in o){const e=o["__"+c];return"function"!=typeof e?e:e.bind(o)}return"function"!=typeof o[c]?o[c]:o[c].bind(o)}function R(o){var c,e,r;return null!=(r=null==(e=null==(c=o.head)?void 0:c.querySelector('meta[name="csp-nonce"]'))?void 0:e.getAttribute("content"))?r:void 0}var T,F,A=new WeakMap,P=o=>"sc-"+o.m,D=o=>"object"==(o=typeof o)||"function"===o,H=(o,c,...e)=>{let r=null,t=null,n=null,l=!1,s=!1;const a=[],i=c=>{for(let e=0;e<c.length;e++)r=c[e],Array.isArray(r)?i(r):null!=r&&"boolean"!=typeof r&&((l="function"!=typeof o&&!D(r))&&(r+=""),l&&s?a[a.length-1].v+=r:a.push(l?U(null,r):r),s=l)};if(i(e),c){c.key&&(t=c.key),c.name&&(n=c.name);{const o=c.className||c.class;o&&(c.class="object"!=typeof o?o:Object.keys(o).filter((c=>o[c])).join(" "))}}if("function"==typeof o)return o(null===c?{}:c,a,_);const f=U(o,null);return f.h=c,a.length>0&&(f.$=a),f.j=t,f.S=n,f},U=(o,c)=>({u:0,O:o,v:null!=c?c:null,k:null,$:null,h:null,j:null,S:null}),q={},_={forEach:(o,c)=>o.map(B).forEach(c),map:(o,c)=>o.map(B).map(c).map(W)},B=o=>({vattrs:o.h,vchildren:o.$,vkey:o.j,vname:o.S,vtag:o.O,vtext:o.v}),W=o=>{if("function"==typeof o.vtag){const c={...o.vattrs};return o.vkey&&(c.key=o.vkey),o.vname&&(c.name=o.vname),H(o.vtag,c,...o.vchildren||[])}const c=U(o.vtag,o.vtext);return c.h=o.vattrs,c.$=o.vchildren,c.j=o.vkey,c.S=o.vname,c},G=o=>{if(!o)return;const c=Object.keys(o);if(0===c.length)return;let e=!1;for(const r of c){if(e)break;for(const c of o[r])if("string"==typeof c){e=!0;break}}if(!e)return o;const r={};for(const e of c)r[e]=o[e].map((o=>"string"==typeof o?{[o]:0}:o));return r},V=(o,c)=>null==o||D(o)?o:4&c?"false"!==o&&(""===o||!!o):2&c?"string"==typeof o?parseFloat(o):"number"==typeof o?o:NaN:1&c?o+"":o,I=o=>{var c;return null==(c=n(o))?void 0:c.$hostElement$},Y=(o,c,e)=>{const r=I(o);return{emit:o=>Z(r,c,{bubbles:!!(4&e),composed:!!(2&e),cancelable:!!(1&e),detail:o})}},Z=(o,c,e)=>{const r=b.ce(c,e);return o.dispatchEvent(r),r},J=(o,c,e,r,t,l)=>{if(e===r)return;let a=s(o,c),i=c.toLowerCase();if("class"===c){const c=o.classList,t=Q(e);let n=Q(r);c.remove(...t.filter((o=>o&&!n.includes(o)))),c.add(...n.filter((o=>o&&!t.includes(o))))}else if("style"===c){for(const c in e)r&&null!=r[c]||(c.includes("-")?o.style.removeProperty(c):o.style[c]="");for(const c in r)e&&r[c]===e[c]||(c.includes("-")?o.style.setProperty(c,r[c]):o.style[c]=r[c])}else if("key"===c);else if("ref"===c)r&&wo(r,o);else if(a||"o"!==c[0]||"n"!==c[1]){if("a"===c[0]&&c.startsWith("attr:")){const e=c.slice(5);let t;{const c=n(o);if(c&&c.t&&c.t.o){const o=c.t.o[e];o&&o[1]&&(t=o[1])}}return t||(t=e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(null==r||!1===r?!1===r&&""!==o.getAttribute(t)||o.removeAttribute(t):o.setAttribute(t,!0===r?"":r))}if("p"===c[0]&&c.startsWith("prop:")){const e=c.slice(5);try{o[e]=r}catch(o){}return}{const n=D(r);if((a||n&&null!==r)&&!t)try{if(o.tagName.includes("-"))o[c]!==r&&(o[c]=r);else{const t=null==r?"":r;"list"===c?a=!1:null!=e&&o[c]===t||("function"==typeof o.__lookupSetter__(c)?o[c]=t:o.setAttribute(c,t))}}catch(o){}let s=!1;i!==(i=i.replace(/^xlink\:?/,""))&&(c=i,s=!0),null==r||!1===r?!1===r&&""!==o.getAttribute(c)||(s?o.removeAttributeNS(d,c):o.removeAttribute(c)):(!a||4&l||t)&&!n&&1===o.nodeType&&(r=!0===r?"":r,s?o.setAttributeNS(d,c,r):o.setAttribute(c,r))}}else if(c="-"===c[2]?c.slice(3):s(p,i)?i.slice(2):i[2]+c.slice(3),e||r){const t=c.endsWith(X);c=c.replace(oo,""),e&&b.rel(o,c,e,t),r&&b.ael(o,c,r,t)}},K=/\s/,Q=o=>("object"==typeof o&&o&&"baseVal"in o&&(o=o.baseVal),o&&"string"==typeof o?o.split(K):[]),X="Capture",oo=RegExp(X+"$"),co=(o,c,e)=>{const r=11===c.k.nodeType&&c.k.host?c.k.host:c.k,t=o&&o.h||{},n=c.h||{};for(const o of eo(Object.keys(t)))o in n||J(r,o,t[o],void 0,e,c.u);for(const o of eo(Object.keys(n)))J(r,o,t[o],n[o],e,c.u)};function eo(o){return o.includes("ref")?[...o.filter((o=>"ref"!==o)),"ref"]:o}var ro=!1,to=!1,no=!1,lo=!1,so=[],ao=[],io=(o,c,e)=>{var r;const t=c.$[e];let n,l,s,a=0;if(ro||(no=!0,"slot"===t.O&&(t.u|=t.$?2:1)),null!=t.v)n=t.k=p.document.createTextNode(t.v);else if(1&t.u)n=t.k=p.document.createTextNode(""),co(null,t,lo);else{if(lo||(lo="svg"===t.O),!p.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(n=t.k=p.document.createElementNS(lo?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!ro&&2&t.u?"slot-fb":t.O),lo&&"foreignObject"===t.O&&(lo=!1),co(null,t,lo),t.$){const c="template"===t.O?n.content:n;for(a=0;a<t.$.length;++a)l=io(o,t,a),l&&c.appendChild(l)}"svg"===t.O?lo=!1:"foreignObject"===n.tagName&&(lo=!0)}return n["s-hn"]=F,3&t.u&&(n["s-sr"]=!0,n["s-cr"]=T,n["s-sn"]=t.S||"",n["s-rf"]=null==(r=t.h)?void 0:r.ref,function(o){if(o.assignedElements||o.assignedNodes||!o["s-sr"])return;const c=c=>function(o){const e=[],r=this["s-sn"];(null==o?void 0:o.flatten)&&console.error("\n Flattening is not supported for Stencil non-shadow slots.\n You can use `.childNodes` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n ");const t=this["s-cr"].parentElement;return(t.__childNodes?t.childNodes:(o=>{const c=[];for(let e=0;e<o.length;e++){const r=o[e]["s-nr"]||void 0;r&&r.isConnected&&c.push(r)}return c})(t.childNodes)).forEach((o=>{r===E(o)&&e.push(o)})),c?e.filter((o=>1===o.nodeType)):e}.bind(o);o.assignedElements=c(!0),o.assignedNodes=c(!1)}(n),s=o&&o.$&&o.$[e],s&&s.O===t.O&&o.k&&fo(o.k)),n},fo=o=>{b.u|=1;const c=o.closest(F.toLowerCase());if(null!=c){const e=Array.from(c.__childNodes||c.childNodes).find((o=>o["s-cr"])),r=Array.from(o.__childNodes||o.childNodes);for(const o of e?r.reverse():r)null!=o["s-sh"]&&(zo(c,o,null!=e?e:null),o["s-sh"]=void 0,no=!0)}b.u&=-2},uo=(o,c)=>{b.u|=1;const e=Array.from(o.__childNodes||o.childNodes);if(o["s-sr"]){let c=o;for(;c=c.nextSibling;)c&&c["s-sn"]===o["s-sn"]&&c["s-sh"]===F&&e.push(c)}for(let o=e.length-1;o>=0;o--){const r=e[o];r["s-hn"]!==F&&r["s-ol"]&&(zo(vo(r).parentNode,r,vo(r)),r["s-ol"].remove(),r["s-ol"]=void 0,r["s-sh"]=void 0,no=!0),c&&uo(r,c)}b.u&=-2},po=(o,c,e,r,t,n)=>{let l,s=o["s-cr"]&&o["s-cr"].parentNode||o;for(s.shadowRoot&&s.tagName===F&&(s=s.shadowRoot),"template"===e.O&&(s=s.content);t<=n;++t)r[t]&&(l=io(null,e,t),l&&(r[t].k=l,zo(s,l,vo(c))))},bo=(o,c,e)=>{for(let r=c;r<=e;++r){const c=o[r];if(c){const o=c.k;xo(c),o&&(to=!0,o["s-ol"]?o["s-ol"].remove():uo(o,!0),o.remove())}}},mo=(o,c,e=!1)=>o.O===c.O&&("slot"===o.O?o.S===c.S:e?(e&&!o.j&&c.j&&(o.j=c.j),!0):o.j===c.j),vo=o=>o&&o["s-ol"]||o,yo=(o,c,e=!1)=>{const r=c.k=o.k,t=o.$,n=c.$,l=c.O,s=c.v;let a;null==s?(lo="svg"===l||"foreignObject"!==l&&lo,"slot"!==l||ro||o.S!==c.S&&(c.k["s-sn"]=c.S||"",fo(c.k.parentElement)),co(o,c,lo),null!==t&&null!==n?((o,c,e,r,t=!1)=>{let n,l,s=0,a=0,i=0,f=0,u=c.length-1,d=c[0],p=c[u],b=r.length-1,m=r[0],v=r[b];const y="template"===e.O?o.content:o;for(;s<=u&&a<=b;)if(null==d)d=c[++s];else if(null==p)p=c[--u];else if(null==m)m=r[++a];else if(null==v)v=r[--b];else if(mo(d,m,t))yo(d,m,t),d=c[++s],m=r[++a];else if(mo(p,v,t))yo(p,v,t),p=c[--u],v=r[--b];else if(mo(d,v,t))"slot"!==d.O&&"slot"!==v.O||uo(d.k.parentNode,!1),yo(d,v,t),zo(y,d.k,p.k.nextSibling),d=c[++s],v=r[--b];else if(mo(p,m,t))"slot"!==d.O&&"slot"!==v.O||uo(p.k.parentNode,!1),yo(p,m,t),zo(y,p.k,d.k),p=c[--u],m=r[++a];else{for(i=-1,f=s;f<=u;++f)if(c[f]&&null!==c[f].j&&c[f].j===m.j){i=f;break}i>=0?(l=c[i],l.O!==m.O?n=io(c&&c[a],e,i):(yo(l,m,t),c[i]=void 0,n=l.k),m=r[++a]):(n=io(c&&c[a],e,a),m=r[++a]),n&&zo(vo(d.k).parentNode,n,vo(d.k))}s>u?po(o,null==r[b+1]?null:r[b+1].k,e,r,a,b):a>b&&bo(c,s,u)})(r,t,c,n,e):null!==n?(null!==o.v&&(r.textContent=""),po(r,null,c,n,0,n.length-1)):!e&&null!==t&&bo(t,0,t.length-1),lo&&"svg"===l&&(lo=!1)):(a=r["s-cr"])?a.parentNode.textContent=s:o.v!==s&&(r.data=s)},go=[],ho=o=>{let c,e,r;const t=o.__childNodes||o.childNodes;for(const o of t){if(o["s-sr"]&&(c=o["s-cr"])&&c.parentNode){e=c.parentNode.__childNodes||c.parentNode.childNodes;const t=o["s-sn"];for(r=e.length-1;r>=0;r--)if(c=e[r],!(c["s-cn"]||c["s-nr"]||c["s-hn"]===o["s-hn"]||c["s-sh"]&&c["s-sh"]===o["s-hn"]))if(C(c,t)){let e=go.find((o=>o.M===c));to=!0,c["s-sn"]=c["s-sn"]||t,e?(e.M["s-sh"]=o["s-hn"],e.N=o):(c["s-sh"]=o["s-hn"],go.push({N:o,M:c})),c["s-sr"]&&go.map((o=>{C(o.M,c["s-sn"])&&(e=go.find((o=>o.M===c)),e&&!o.N&&(o.N=e.N))}))}else go.some((o=>o.M===c))||go.push({M:c})}1===o.nodeType&&ho(o)}},xo=o=>{o.h&&o.h.ref&&so.push((()=>o.h.ref(null))),o.$&&o.$.map(xo)},wo=(o,c)=>{ao.push((()=>o(c)))},zo=(o,c,e,r)=>{if("string"==typeof c["s-sn"]){o.insertBefore(c,e);const{slotNode:t}=function(o,c){var e;if(!(c=c||(null==(e=o["s-ol"])?void 0:e.parentElement)))return{slotNode:null,slotName:""};const r=o["s-sn"]=E(o)||"";return{slotNode:M(L(c,"childNodes"),c.tagName,r)[0],slotName:r}}(c);return t&&!r&&function(o){o.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1}))}(t),c}return o.__insertBefore?o.__insertBefore(c,e):null==o?void 0:o.insertBefore(c,e)},$o=(o,c)=>{if(c&&!o.C&&c["s-p"]){const e=c["s-p"].push(new Promise((r=>o.C=()=>{c["s-p"].splice(e-1,1),r()})))}},jo=(o,c)=>{if(o.u|=16,4&o.u)return void(o.u|=512);$o(o,o.L);const e=()=>So(o,c);if(!c)return S(e);queueMicrotask((()=>{e()}))},So=(o,c)=>{const e=o.$hostElement$,r=o.i;if(!r)throw Error(`Can't render component <${e.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let t;return c?(o.R&&(o.R=!1,Ro(r,"connectedCallback",void 0,e)),o.u|=256,o.T&&(o.T.map((([o,c])=>Ro(r,o,c,e))),o.T=void 0),o.F.length&&o.F.forEach((o=>o(e))),t=Ro(r,"componentWillLoad",void 0,e)):t=Ro(r,"componentWillUpdate",void 0,e),t=Oo(t,(()=>Ro(r,"componentWillRender",void 0,e))),Oo(t,(()=>Mo(o,r,c)))},Oo=(o,c)=>ko(o)?o.then(c).catch((o=>{console.error(o),c()})):c(),ko=o=>o instanceof Promise||o&&o.then&&"function"==typeof o.then,Mo=async(o,c,e)=>{var r;const t=o.$hostElement$,n=t["s-rc"];e&&(o=>{const c=o.t,e=o.$hostElement$,r=c.u,t=((o,c)=>{var e,r,t;const n=P(c),l=f.get(n);if(!p.document)return n;if(o=11===o.nodeType?o:p.document,l)if("string"==typeof l){let t,s=A.get(o=o.head||o);if(s||A.set(o,s=new Set),!s.has(n)){t=p.document.createElement("style"),t.textContent=l;const a=null!=(e=b.A)?e:R(p.document);if(null!=a&&t.setAttribute("nonce",a),!(1&c.u))if("HEAD"===o.nodeName){const c=o.querySelectorAll("link[rel=preconnect]"),e=c.length>0?c[c.length-1].nextSibling:o.querySelector("style");o.insertBefore(t,(null==e?void 0:e.parentNode)===o?e:null)}else if("host"in o)if(v){const c=new(null!=(r=o.defaultView)?r:o.ownerDocument.defaultView).CSSStyleSheet;c.replaceSync(l),y?o.adoptedStyleSheets.unshift(c):o.adoptedStyleSheets=[c,...o.adoptedStyleSheets]}else{const c=o.querySelector("style");c?c.textContent=l+c.textContent:o.prepend(t)}else o.append(t);1&c.u&&o.insertBefore(t,null),4&c.u&&(t.textContent+=u),s&&s.add(n)}}else{let c=A.get(o);if(c||A.set(o,c=new Set),!c.has(n)){const e=null!=(t=o.defaultView)?t:o.ownerDocument.defaultView;let r;if(l.constructor===e.CSSStyleSheet)r=l;else{r=new e.CSSStyleSheet;for(let o=0;o<l.cssRules.length;o++)r.insertRule(l.cssRules[o].cssText,o)}y?o.adoptedStyleSheets.push(r):o.adoptedStyleSheets=[...o.adoptedStyleSheets,r],c.add(n)}}return n})(e.shadowRoot?e.shadowRoot:e.getRootNode(),c);10&r&&(e["s-sc"]=t,e.classList.add(t+"-h"))})(o);No(o,c,t,e),n&&(n.map((o=>o())),t["s-rc"]=void 0);{const c=null!=(r=t["s-p"])?r:[],e=()=>Co(o);0===c.length?e():(Promise.all(c).then(e).catch(e),o.u|=4,c.length=0)}},No=(o,c,e,r)=>{try{c=c.render(),o.u&=-17,o.u|=2,((o,c,e=!1)=>{var r,t,n,l,s;const a=o.$hostElement$,i=o.t,f=o.P||U(null,null),u=(o=>o&&o.O===q)(c)?c:H(null,null,c);if(F=a.tagName,i.D&&(u.h=u.h||{},i.D.forEach((([o,c])=>{u.h[c]=a[o]}))),e&&u.h)for(const o of Object.keys(u.h))a.hasAttribute(o)&&!["key","ref","style","class"].includes(o)&&(u.h[o]=a[o]);if(u.O=null,u.u|=4,o.P=u,u.k=f.k=a.shadowRoot||a,ro=!(!(1&i.u)||128&i.u),T=a["s-cr"],to=!1,yo(f,u,e),b.u|=1,no){ho(u.k);for(const o of go){const c=o.M;if(!c["s-ol"]&&p.document){const o=p.document.createTextNode("");o["s-nr"]=c,zo(c.parentNode,c["s-ol"]=o,c,e)}}for(const o of go){const c=o.M,s=o.N;if(1===c.nodeType&&e&&(c["s-ih"]=null!=(r=c.hidden)&&r),s){const o=s.parentNode;let r=s.nextSibling;if(r&&1===r.nodeType){let e=null==(t=c["s-ol"])?void 0:t.previousSibling;for(;e;){let t=null!=(n=e["s-nr"])?n:null;if(t&&t["s-sn"]===c["s-sn"]&&o===(t.__parentNode||t.parentNode)){for(t=t.nextSibling;t===c||(null==t?void 0:t["s-sr"]);)t=null==t?void 0:t.nextSibling;if(!t||!t["s-nr"]){r=t;break}}e=e.previousSibling}}if((!r&&o!==(c.__parentNode||c.parentNode)||(c.__nextSibling||c.nextSibling)!==r)&&c!==r){if(zo(o,c,r,e),8===c.nodeType&&c.nodeValue.startsWith("s-nt-")){const o=p.document.createTextNode(c.nodeValue.replace(/^s-nt-/,""));o["s-hn"]=c["s-hn"],o["s-sn"]=c["s-sn"],o["s-sh"]=c["s-sh"],o["s-sr"]=c["s-sr"],o["s-ol"]=c["s-ol"],o["s-ol"]["s-nr"]=o,zo(c.parentNode,o,c,e),c.parentNode.removeChild(c)}1===c.nodeType&&"SLOT-FB"!==c.tagName&&(c.hidden=null!=(l=c["s-ih"])&&l)}c&&"function"==typeof s["s-rf"]&&s["s-rf"](s)}else 1===c.nodeType&&(c.hidden=!0)}}if(to&&k(u.k),b.u&=-2,go.length=0,!ro&&!(1&i.u)&&a["s-cr"]){const o=u.k.__childNodes||u.k.childNodes;for(const c of o)if(c["s-hn"]!==F&&!c["s-sh"])if(e&&null==c["s-ih"]&&(c["s-ih"]=null!=(s=c.hidden)&&s),1===c.nodeType)c.hidden=!0;else if(3===c.nodeType&&c.nodeValue.trim()){const o=p.document.createComment("s-nt-"+c.nodeValue);o["s-sn"]=c["s-sn"],zo(c.parentNode,o,c,e),c.parentNode.removeChild(c)}}T=void 0,so.forEach((o=>o())),so.length=0,ao.forEach((o=>o())),ao.length=0})(o,c,r)}catch(c){a(c,o.$hostElement$)}return null},Co=o=>{const c=o.$hostElement$,e=o.i,r=o.L;Ro(e,"componentDidRender",void 0,c),64&o.u?Ro(e,"componentDidUpdate",void 0,c):(o.u|=64,To(c),Ro(e,"componentDidLoad",void 0,c),o.H(c),r||Lo()),o.U(c),o.C&&(o.C(),o.C=void 0),512&o.u&&j((()=>jo(o,!1))),o.u&=-517},Eo=o=>{var c;{const e=n(o),r=null==(c=null==e?void 0:e.$hostElement$)?void 0:c.isConnected;return r&&2==(18&e.u)&&jo(e,!1),r}},Lo=()=>{j((()=>Z(p,"appload",{detail:{namespace:"cobalt"}})))},Ro=(o,c,e,r)=>{if(o&&o[c])try{return o[c](e)}catch(o){a(o,r)}},To=o=>o.classList.add("hydrated"),Fo=(o,c,e,r)=>{const t=n(o);if(!t)return;if(!t)throw Error(`Couldn't find host element for "${r.m}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const l=t.$hostElement$,s=t.l.get(c),i=t.u,f=t.i;if(e=V(e,r.o[c][0]),!(8&i&&void 0!==s||e===s||Number.isNaN(s)&&Number.isNaN(e))){if(t.l.set(c,e),r.q){const o=r.q[c];o&&o.map((o=>{try{const[[r,n]]=Object.entries(o);(128&i||1&n)&&(f?f[r](e,s,c):t.F.push((()=>{t.i[r](e,s,c)})))}catch(o){a(o,l)}}))}if(2&i){if(f.componentShouldUpdate&&!1===f.componentShouldUpdate(e,s,c)&&!(16&i))return;16&i||jo(t,!1)}}},Ao=(o,c,r)=>{var t,l;const s=o.prototype;{o.watchers&&!c.q&&(c.q=G(o.watchers)),o.deserializers&&!c._&&(c._=o.deserializers),o.serializers&&!c.B&&(c.B=o.serializers);const a=Object.entries(null!=(t=c.o)?t:{});if(a.map((([o,[t]])=>{if(31&t||2&r&&32&t){const{get:l,set:a}=e(s,o)||{};l&&(c.o[o][0]|=2048),a&&(c.o[o][0]|=4096),(1&r||!l)&&Object.defineProperty(s,o,{get(){{if(!(2048&c.o[o][0]))return((o,c)=>n(this).l.get(c))(0,o);const e=n(this),r=e?e.i:s;if(!r)return;return r[o]}},configurable:!0,enumerable:!0}),Object.defineProperty(s,o,{set(e){const l=n(this);if(l){if(a)return void 0===(32&t?this[o]:l.$hostElement$[o])&&l.l.get(o)&&(e=l.l.get(o)),a.call(this,V(e,t)),void Fo(this,o,e=32&t?this[o]:l.$hostElement$[o],c);{if(!(1&r&&4096&c.o[o][0]))return Fo(this,o,e,c),void(1&r&&!l.i&&l.F.push((()=>{4096&c.o[o][0]&&l.i[o]!==l.l.get(o)&&(l.i[o]=e)})));const n=()=>{const r=l.i[o];!l.l.get(o)&&r&&l.l.set(o,r),l.i[o]=V(e,t),Fo(this,o,l.i[o],c)};l.i?n():l.F.push((()=>{n()}))}}}})}else 1&r&&64&t&&Object.defineProperty(s,o,{value(...c){var e;const r=n(this);return null==(e=null==r?void 0:r.W)?void 0:e.then((()=>{var e;return null==(e=r.i)?void 0:e[o](...c)}))}})})),1&r){const e=new Map;s.attributeChangedCallback=function(o,r,t){b.jmp((()=>{var l;const i=e.get(o),f=n(this);if(this.hasOwnProperty(i)&&(t=this[i],delete this[i]),s.hasOwnProperty(i)&&"number"==typeof this[i]&&this[i]==t)return;if(null==i){const e=null==f?void 0:f.u;if(f&&e&&!(8&e)&&t!==r){const n=f.i,s=null==(l=c.q)?void 0:l[o];null==s||s.forEach((c=>{const[[l,s]]=Object.entries(c);null!=n[l]&&(128&e||1&s)&&n[l].call(n,t,r,o)}))}return}const u=a.find((([o])=>o===i)),d=u&&4&u[1][0],p=d&&null===t&&void 0===this[i];d&&(t=null!==t&&"false"!==t);const b=Object.getOwnPropertyDescriptor(s,i);p||t==this[i]||b.get&&!b.set||(this[i]=t)}))},o.observedAttributes=Array.from(new Set([...Object.keys(null!=(l=c.q)?l:{}),...a.filter((([o,c])=>31&c[0])).map((([o,r])=>{var t;const n=r[1]||o;return e.set(n,o),512&r[0]&&(null==(t=c.D)||t.push([o,n])),n}))]))}}return o},Po=(o,c)=>{Ro(o,"connectedCallback",void 0,c)},Do=(o,c)=>{Ro(o,"disconnectedCallback",void 0,c||o)},Ho=(o,c={})=>{var e;if(!p.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const r=[],t=c.exclude||[],l=p.customElements,s=p.document.head,d=s.querySelector("meta[charset]"),m=p.document.createElement("style"),y=[];let g,h=!0;Object.assign(b,c),b.p=new URL(c.resourcesUrl||"./",p.document.baseURI).href;let x=!1;if(o.map((o=>{o[1].map((c=>{var e,s;const u={u:c[0],m:c[1],o:c[2],G:c[3]};4&u.u&&(x=!0),u.o=c[2],u.G=c[3],u.D=[],u.q=G(c[4]),u.B=null!=(e=c[5])?e:{},u._=null!=(s=c[6])?s:{};const d=u.m,m=class extends HTMLElement{"s-p";"s-rc";hasRegisteredEventListeners=!1;constructor(o){if(super(o),((o,c)=>{const e={u:0,$hostElement$:o,t:c,l:new Map,V:new Map};e.W=new Promise((o=>e.U=o)),e.I=new Promise((o=>e.H=o)),o["s-p"]=[],o["s-rc"]=[],e.F=[];const r=e;o.__stencil__getHostRef=()=>r})(o=this,u),1&u.u)if(o.shadowRoot){if("open"!==o.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${u.m}! Mode is set to ${o.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else O.call(o,u)}connectedCallback(){const o=n(this);o&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,Uo(this,o,u.G)),g&&(clearTimeout(g),g=null),h?y.push(this):b.jmp((()=>(o=>{if(!(1&b.u)){const c=n(o);if(!c)return;const e=c.t,r=()=>{};if(1&c.u)Uo(o,c,e.G),(null==c?void 0:c.i)?Po(c.i,o):(null==c?void 0:c.I)&&c.I.then((()=>Po(c.i,o)));else{c.u|=1,12&e.u&&(o=>{if(!p.document)return;const c=o["s-cr"]=p.document.createComment("");c["s-cn"]=!0,zo(o,c,o.firstChild)})(o);{let e=o;for(;e=e.parentNode||e.host;)if(e["s-p"]){$o(c,c.L=e);break}}e.o&&Object.entries(e.o).map((([c,[e]])=>{if(31&e&&Object.prototype.hasOwnProperty.call(o,c)){const e=o[c];delete o[c],o[c]=e}})),(async(o,c,e)=>{let r;try{if(!(32&c.u)){if(c.u|=32,e.Y){const t=((o,c)=>{const e=o.m.replace(/-/g,"_"),r=o.Y;if(!r)return;const t=i.get(r);return t?t[e]:import(`./${r}.entry.js`).then((o=>(i.set(r,o),o[e])),(o=>{a(o,c.$hostElement$)}))
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(e,c);if(t&&"then"in t){const o=()=>{};r=await t,o()}else r=t;if(!r)throw Error(`Constructor for "${e.m}#${c.Z}" was not found`);r.isProxied||(e.q=G(r.watchers),e.B=r.serializers,e._=r.deserializers,Ao(r,e,2),r.isProxied=!0);const n=()=>{};c.u|=8;try{new r(c)}catch(c){a(c,o)}c.u&=-9,c.u|=128,n(),4&e.u?c.R=!0:Po(c.i,o)}else r=o.constructor,customElements.whenDefined(o.localName).then((()=>c.u|=128));if(r&&r.style){let o;"string"==typeof r.style&&(o=r.style);const c=P(e);if(!f.has(c)){const r=()=>{};((o,c,e)=>{let r=f.get(o);v&&e?(r=r||new CSSStyleSheet,"string"==typeof r?r=c:r.replaceSync(c)):r=c,f.set(o,r)})(c,o,!!(1&e.u)),r()}}}const t=c.L,n=()=>jo(c,!0);t&&t["s-rc"]?t["s-rc"].push(n):n()}catch(e){a(e,o),c.C&&(c.C(),c.C=void 0),c.H&&c.H(o)}})(o,c,e)}r()}})(this))))}disconnectedCallback(){b.jmp((()=>(async o=>{if(!(1&b.u)){const c=n(o);(null==c?void 0:c.J)&&(c.J.map((o=>o())),c.J=void 0),(null==c?void 0:c.i)?Do(c.i,o):(null==c?void 0:c.I)&&c.I.then((()=>Do(c.i,o)))}A.has(o)&&A.delete(o),o.shadowRoot&&A.has(o.shadowRoot)&&A.delete(o.shadowRoot)})(this))),b.raf((()=>{var o;const c=n(this);if(!c)return;const e=y.findIndex((o=>o===this));e>-1&&y.splice(e,1),(null==(o=null==c?void 0:c.P)?void 0:o.k)instanceof Node&&!c.P.k.isConnected&&delete c.P.k}))}componentOnReady(){var o;return null==(o=n(this))?void 0:o.I}};u.Y=o[0],t.includes(d)||l.get(d)||(r.push(d),l.define(d,Ao(m,u,1)))}))})),r.length>0&&(x&&(m.textContent+=u),m.textContent+=r.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",m.innerHTML.length)){m.setAttribute("data-styles","");const o=null!=(e=b.A)?e:R(p.document);null!=o&&m.setAttribute("nonce",o),s.insertBefore(m,d?d.nextSibling:s.firstChild)}h=!1,y.length?y.map((o=>o.connectedCallback())):b.jmp((()=>g=setTimeout(Lo,30)))},Uo=(o,c,e)=>{e&&p.document&&e.map((([e,r,t])=>{const n=_o(p.document,o,e),l=qo(c,t),s=Bo(e);b.ael(n,r,l,s),(c.J=c.J||[]).push((()=>b.rel(n,r,l,s)))}))},qo=(o,c)=>e=>{var r;try{256&o.u?null==(r=o.i)||r[c](e):(o.T=o.T||[]).push([c,e])}catch(c){a(c,o.$hostElement$)}},_o=(o,c,e)=>4&e?o:c,Bo=o=>({passive:!!(1&o),capture:!!(2&o)}),Wo=o=>b.A=o;export{q as H,I as a,Ho as b,Y as c,Eo as f,o as g,H as h,m as p,l as r,Wo as s}
@@ -0,0 +1 @@
1
+ const n="submenu-side";function t(n){const t=n.split("-")[0];return"left"===t||"right"===t?t:null}const u="menu-direction";function o(n){return"top"===n.split("-")[0]?"up":"down"}function e(n,t=!1){const u=t?"end":"start";return"left"===n?`left-${u}`:`right-${u}`}function i(n){var t;return"up"===(null===(t=n.closest("co-menu"))||void 0===t?void 0:t.getAttribute(u))}function r(t){var u;const o=null===(u=t.parentElement)||void 0===u?void 0:u.closest("co-menu-item"),e=null==o?void 0:o.getAttribute(n);return"left"===e||"right"===e?e:null}export{u as M,n as S,e as a,i as b,r as i,o as m,t as s}
@@ -0,0 +1 @@
1
+ import{l as r}from"./p-BVGGRfNG.js";import{c as n,h as t,r as u}from"./p-COJdaKBU.js";function o(r){var u;if(!r||"string"!=typeof r)return null;const o=r.trim();if(o.startsWith("#")){const r=t(o);return r?{r:r.r,g:r.g,b:r.b,a:null!==(u=r.a)&&void 0!==u?u:1}:null}const e=/^rgba?\(\s*([^)]*?)\s*\)$/i.exec(o);if(!e)return null;const s=e[1].split(/\s*[,/]\s*|\s+/).filter(Boolean);if(s.length<3||s.length>4)return null;const[a,i,c]=s.slice(0,3).map((r=>Number(r)));if([a,i,c].some((r=>Number.isNaN(r))))return null;const f=void 0===s[3]?1:function(r){const t=r.endsWith("%"),u=Number(t?r.slice(0,-1):r);return Number.isNaN(u)?null:n(t?u/100:u,0,1)}(s[3]);return null===f?null:{r:n(a,0,255),g:n(i,0,255),b:n(c,0,255),a:f}}function e({r,g:n,b:t,a:o}){return o>=1?u({r,g:n,b:t}):`rgba(${Math.round(r)}, ${Math.round(n)}, ${Math.round(t)}, ${e=o,Math.round(1e3*e)/1e3})`;var e}function s(r){const n=o(r);return n?e(Object.assign(Object.assign({},n),{a:1})):r}const a=r=>[...r].sort(((r,n)=>r.position-n.position));function i(r,t){if(0===r.length)return"rgba(0, 0, 0, 0)";const u=a(r),s=n(t,0,100);if(s<=u[0].position)return u[0].color;const i=u[u.length-1];if(s>=i.position)return i.color;let c=1;for(;u[c].position<s;)c++;const f=u[c-1],l=u[c],b=l.position-f.position,g=0===b?0:(s-f.position)/b,$=g<.5?f:l,h=o(f.color),m=o(l.color);return h&&m?e({r:h.r+(m.r-h.r)*g,g:h.g+(m.g-h.g)*g,b:h.b+(m.b-h.b)*g,a:h.a+(m.a-h.a)*g}):$.color}function c(r){if(0===r.length)return"transparent";if(1===r.length){const{color:n}=r[0];return`linear-gradient(to right, ${n} 0%, ${n} 100%)`}return`linear-gradient(to right, ${a(r).map((r=>`${r.color} ${n(r.position,0,100)}%`)).join(", ")})`}function f(r){return r.some((r=>{const n=o(r.color);return!!n&&n.a<1}))}function l(r,t,u){return u<=0?0:Math.round(n((r-t)/u*100,0,100))}function b(r,t){return n(r+t,0,100)}function g(n){const t=o(n);if(!t)return!1;const u=r=>r*t.a+255*(1-t.a);return r({r:u(t.r),g:u(t.g),b:u(t.b)})>.85}export{g as a,c as g,f as h,i,s as o,l as p,b as s}
@@ -1 +1 @@
1
- import{h as e}from"./p-DH5lfRNj.js";const l=({baseClass:l,label:s,modifiers:t={},style:o,title:i,key:a,onRemove:c,onChipDblClick:n},b)=>e("span",{class:Object.assign({[l]:!0},t),style:o,title:i,key:a,onDblClick:n},b,e("span",{class:`${l}-label`},s),c&&e("button",{class:`${l}-remove`,type:"button",tabIndex:-1,onClick:c},e("co-icon",{name:"x-circle",weight:"fill",size:16})));export{l as F}
1
+ import{h as e}from"./p-DJkaRtbb.js";const l=({baseClass:l,label:s,modifiers:t={},style:o,title:i,key:a,onRemove:c,onChipDblClick:n},b)=>e("span",{class:Object.assign({[l]:!0},t),style:o,title:i,key:a,onDblClick:n},b,e("span",{class:`${l}-label`},s),c&&e("button",{class:`${l}-remove`,type:"button",tabIndex:-1,onClick:c},e("co-icon",{name:"x-circle",weight:"fill",size:16})));export{l as F}