@ncino/web-components 8.0.0-preview.8 → 8.0.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 (466) hide show
  1. package/LICENSE.md +1 -0
  2. package/README.md +1 -1
  3. package/dist/_slds/icons/symbols-rtl.svg +1 -1
  4. package/dist/_slds/icons/symbols.svg +1 -1
  5. package/dist/_virtual/axe.js +1 -1
  6. package/dist/_virtual/index_html.js +1 -1
  7. package/dist/_virtual/index_react.js +1 -1
  8. package/dist/components/accordion/gator/base/accordion.gator.js +47 -28
  9. package/dist/components/accordion/gator/group/accordion-group.gator.js +2 -2
  10. package/dist/components/alert/gator/base/alert.gator.js +3 -3
  11. package/dist/components/alert/gator/subtitle/alert-subtitle.gator.js +2 -2
  12. package/dist/components/alert/gator/title/alert-title.gator.js +2 -2
  13. package/dist/components/avatar/gator/avatar.gator.js +5 -5
  14. package/dist/components/badge/gator/badge.gator.js +2 -2
  15. package/dist/components/banner/gator/banner.gator.js +6 -6
  16. package/dist/components/boolean/boolean.gator.js +5 -5
  17. package/dist/components/breadcrumbs/gator/breadcrumb/breadcrumb.gator.js +1 -1
  18. package/dist/components/button/gator/button.gator.js +1 -1
  19. package/dist/components/button-card/gator/button-card.gator.js +1 -1
  20. package/dist/components/button-group/gator/button-group.gator.js +1 -1
  21. package/dist/components/card/card.js +1 -1
  22. package/dist/components/card/gator/base/card.gator.js +1 -1
  23. package/dist/components/checkbox/checkbox.gator.js +8 -5
  24. package/dist/components/display-card/gator/display-card.gator.js +8 -10
  25. package/dist/components/guided-nav/gator/guided-nav/guided-nav.gator.js +5 -3
  26. package/dist/components/guided-nav/gator/guided-nav-step/guided-nav-step.gator.js +23 -14
  27. package/dist/components/guided-nav/gator/guided-nav-substep/guided-nav-substep.gator.js +9 -7
  28. package/dist/components/headline-card/gator/headline-card.gator.js +3 -3
  29. package/dist/components/icon/gator/icon.gator.js +3 -3
  30. package/dist/components/icon/gator/index.js +1 -1
  31. package/dist/components/icon/gator/templates/brain.js +8 -0
  32. package/dist/components/icon/gator/templates/document-ai.js +11 -0
  33. package/dist/components/icon/gator/templates/flags/flag-kh-cambodia.js +280 -80
  34. package/dist/components/icon/gator/templates/flags/flag-pm-saint-pierre-and-miquelon.js +7 -7
  35. package/dist/components/icon/gator/templates/flags/flag-ru-russian-federation.js +26 -19
  36. package/dist/components/icon/gator/templates/flags/flag-sa-sudi-arabia.js +28 -11
  37. package/dist/components/icon/gator/templates/flags/flag-sv-el-slvador.js +36 -24
  38. package/dist/components/icon/gator/templates/index.js +1 -1
  39. package/dist/components/icon/gator/templates/number-0.js +8 -0
  40. package/dist/components/icon/gator/templates/number-10.js +11 -0
  41. package/dist/components/icon/gator/templates/number-4.js +8 -0
  42. package/dist/components/icon/gator/templates/number-5.js +8 -0
  43. package/dist/components/icon/gator/templates/number-6.js +8 -0
  44. package/dist/components/icon/gator/templates/number-7.js +8 -0
  45. package/dist/components/icon/gator/templates/number-8.js +8 -0
  46. package/dist/components/icon/gator/templates/number-9.js +8 -0
  47. package/dist/components/icon/gator/templates/robot.js +17 -0
  48. package/dist/components/icon-button/gator/icon-button.gator.js +3 -3
  49. package/dist/components/icon-button/icon-button.js +1 -1
  50. package/dist/components/illustration/gator/illustration.gator.js +4 -4
  51. package/dist/components/illustration/gator/templates/add-note.js +1 -1
  52. package/dist/components/illustration/gator/templates/address.js +3 -3
  53. package/dist/components/illustration/gator/templates/appointment-confirmed.js +3 -3
  54. package/dist/components/illustration/gator/templates/assets.js +1 -1
  55. package/dist/components/illustration/gator/templates/auto-money.js +3 -3
  56. package/dist/components/illustration/gator/templates/balloons.js +3 -3
  57. package/dist/components/illustration/gator/templates/bank-account.js +1 -1
  58. package/dist/components/illustration/gator/templates/brief-case.js +1 -1
  59. package/dist/components/illustration/gator/templates/calendar-home.js +3 -3
  60. package/dist/components/illustration/gator/templates/change-data.js +3 -3
  61. package/dist/components/illustration/gator/templates/check-with-pencil.js +3 -3
  62. package/dist/components/illustration/gator/templates/co-borrower.js +1 -1
  63. package/dist/components/illustration/gator/templates/co-borrowers-incomplete.js +1 -1
  64. package/dist/components/illustration/gator/templates/co-borrowers.js +1 -1
  65. package/dist/components/illustration/gator/templates/connectivity.js +1 -1
  66. package/dist/components/illustration/gator/templates/contact-search.js +1 -1
  67. package/dist/components/illustration/gator/templates/conversation-multiple.js +3 -3
  68. package/dist/components/illustration/gator/templates/credit-card.js +3 -3
  69. package/dist/components/illustration/gator/templates/crop-background.js +1 -1
  70. package/dist/components/illustration/gator/templates/crop-page.js +3 -3
  71. package/dist/components/illustration/gator/templates/declarations-legal.js +3 -3
  72. package/dist/components/illustration/gator/templates/deliver.js +1 -1
  73. package/dist/components/illustration/gator/templates/demographic-info.js +3 -3
  74. package/dist/components/illustration/gator/templates/document-add.js +1 -1
  75. package/dist/components/illustration/gator/templates/document-signature.js +1 -1
  76. package/dist/components/illustration/gator/templates/download-app.js +1 -1
  77. package/dist/components/illustration/gator/templates/empty-box.js +1 -1
  78. package/dist/components/illustration/gator/templates/home-search.js +3 -3
  79. package/dist/components/illustration/gator/templates/house-5.js +3 -3
  80. package/dist/components/illustration/gator/templates/house-6.js +3 -3
  81. package/dist/components/illustration/gator/templates/house-fireworks.js +1 -1
  82. package/dist/components/illustration/gator/templates/house-under-construction.js +3 -3
  83. package/dist/components/illustration/gator/templates/house-with-shield.js +3 -3
  84. package/dist/components/illustration/gator/templates/inquiry.js +1 -1
  85. package/dist/components/illustration/gator/templates/locked.js +1 -1
  86. package/dist/components/illustration/gator/templates/make-an-offer.js +1 -1
  87. package/dist/components/illustration/gator/templates/network-error.js +1 -1
  88. package/dist/components/illustration/gator/templates/page-1.js +1 -1
  89. package/dist/components/illustration/gator/templates/page-2.js +1 -1
  90. package/dist/components/illustration/gator/templates/page-3.js +1 -1
  91. package/dist/components/illustration/gator/templates/paper-3.js +3 -3
  92. package/dist/components/illustration/gator/templates/paper-7.js +3 -3
  93. package/dist/components/illustration/gator/templates/person-2.js +3 -3
  94. package/dist/components/illustration/gator/templates/personal-info.js +3 -3
  95. package/dist/components/illustration/gator/templates/price-search.js +3 -3
  96. package/dist/components/illustration/gator/templates/quick-links.js +1 -1
  97. package/dist/components/illustration/gator/templates/register.js +3 -3
  98. package/dist/components/illustration/gator/templates/schedule-home-tour.js +1 -1
  99. package/dist/components/illustration/gator/templates/social-security.js +1 -1
  100. package/dist/components/illustration/gator/templates/start-conversation.js +3 -3
  101. package/dist/components/illustration/gator/templates/status-no-x.js +1 -1
  102. package/dist/components/illustration/gator/templates/status.js +3 -3
  103. package/dist/components/illustration/gator/templates/success.js +3 -3
  104. package/dist/components/illustration/gator/templates/talkluments.js +1 -1
  105. package/dist/components/illustration/gator/templates/thumbs-down-man.js +1 -1
  106. package/dist/components/illustration/gator/templates/transfer.js +1 -1
  107. package/dist/components/illustration/gator/templates/unsecured-line-of-credit.js +3 -3
  108. package/dist/components/illustration/gator/templates/upload-cloud.js +1 -1
  109. package/dist/components/image-card/gator/image-card.gator.js +41 -0
  110. package/dist/components/image-card/image-card.js +1 -0
  111. package/dist/components/image-card/index.js +1 -0
  112. package/dist/components/input/base/input-base.gator.js +12 -8
  113. package/dist/components/input/gator/dropdown/input-dropdown.gator.js +12 -9
  114. package/dist/components/input/gator/help-text/help-text.gator.js +4 -4
  115. package/dist/components/input/gator/input-currency/input-currency.gator.js +2 -2
  116. package/dist/components/input/gator/input-date/input-date.gator.js +3 -3
  117. package/dist/components/input/gator/input-file/file-uploaded-preview/file-upload-preview.gator.js +12 -9
  118. package/dist/components/input/gator/input-file/input-file.gator.js +7 -9
  119. package/dist/components/input/gator/input-label/input-label.gator.js +4 -4
  120. package/dist/components/input/gator/input-masked/input-masked.gator.js +1 -1
  121. package/dist/components/input/gator/input-phone/input-phone.gator.js +2 -2
  122. package/dist/components/input/gator/input-search/input-search.gator.js +6 -6
  123. package/dist/components/input/gator/input-text/input-text.gator.js +1 -1
  124. package/dist/components/input/gator/input-textarea/input-textarea.gator.js +4 -4
  125. package/dist/components/input/gator/input-time/input-time.gator.js +4 -4
  126. package/dist/components/input-rich-text/ckeditor-config.js +1 -1
  127. package/dist/components/input-rich-text/input-rich-text.slds.js +3 -3
  128. package/dist/components/list/gator/list/list.gator.js +5 -5
  129. package/dist/components/list/gator/list-item/list-item.gator.js +19 -19
  130. package/dist/components/loading-spinner/gator/loading-spinner.gator.js +2 -2
  131. package/dist/components/menu/base/gator/menu.gator.js +3 -3
  132. package/dist/components/modal/gator/modal.gator.js +6 -6
  133. package/dist/components/page-header/gator/page-header.gator.js +4 -4
  134. package/dist/components/panel/gator/panel.gator.js +14 -14
  135. package/dist/components/panel/gator/panel.storybook-test.js +1 -1
  136. package/dist/components/popover/gator/popover.gator.js +5 -5
  137. package/dist/components/progress-ring/gator/progress-ring.gator.js +4 -4
  138. package/dist/components/progress-stepper/base/progress-stepper.gator.js +19 -0
  139. package/dist/components/progress-stepper/stepper-item/stepper-item.gator.js +42 -0
  140. package/dist/components/radio/radio.gator.js +5 -5
  141. package/dist/components/radio-group/radio-group.gator.js +16 -13
  142. package/dist/components/selection-box/selection-box.gator.js +6 -9
  143. package/dist/components/skeleton-loader/gator/skeleton-loader.gator.js +1 -1
  144. package/dist/components/skip-link/gator/base/skip-link.gator.js +11 -9
  145. package/dist/components/switch/gator/switch.gator.js +20 -7
  146. package/dist/components/switch/switch.js +1 -1
  147. package/dist/components/table/gator/table-bulk-controls/table-bulk-controls.gator.js +1 -1
  148. package/dist/components/table/gator/table-pagination/table-pagination.gator.js +1 -1
  149. package/dist/components/table/gator/table.gator.js +6 -6
  150. package/dist/components/tabs/gator/tabset/tabset.gator.js +6 -6
  151. package/dist/components/text-detail/gator/text-detail.gator.js +27 -24
  152. package/dist/components/text-link/gator/text-link.gator.js +16 -6
  153. package/dist/components/text-link/text-link.js +1 -1
  154. package/dist/components/toast/gator/subtitle/toast-subtitle.gator.js +2 -2
  155. package/dist/components/toast/gator/title/toast-title.gator.js +2 -2
  156. package/dist/components/tooltip/gator/tooltip.gator.js +2 -2
  157. package/dist/components/tooltip/tooltip.js +1 -1
  158. package/dist/design-tokens.source.json +1 -0
  159. package/dist/generated/locale-codes.d.js +1 -0
  160. package/dist/generated/locale-codes.js +1 -0
  161. package/dist/generated/locales/es-419.d.js +1 -0
  162. package/dist/generated/locales/es-419.js +10 -0
  163. package/dist/generated/locales/fr-CA.d.js +1 -0
  164. package/dist/generated/locales/fr-CA.js +10 -0
  165. package/dist/generated/locales/zh-Hans.d.js +1 -0
  166. package/dist/generated/locales/zh-Hans.js +11 -0
  167. package/dist/index.data.js +1 -1
  168. package/dist/index.gator.js +1 -1
  169. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-alignment@46.1.0 → @ckeditor_ckeditor5-alignment@46.1.1}/node_modules/@ckeditor/ckeditor5-alignment/dist/index.js +1 -1
  170. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-autoformat@46.1.0 → @ckeditor_ckeditor5-autoformat@46.1.1}/node_modules/@ckeditor/ckeditor5-autoformat/dist/index.js +1 -1
  171. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-autosave@46.1.0 → @ckeditor_ckeditor5-autosave@46.1.1}/node_modules/@ckeditor/ckeditor5-autosave/dist/index.js +1 -1
  172. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-basic-styles@46.1.0 → @ckeditor_ckeditor5-basic-styles@46.1.1}/node_modules/@ckeditor/ckeditor5-basic-styles/dist/index.js +1 -1
  173. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-block-quote@46.1.0 → @ckeditor_ckeditor5-block-quote@46.1.1}/node_modules/@ckeditor/ckeditor5-block-quote/dist/index.js +1 -1
  174. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-clipboard@46.1.0 → @ckeditor_ckeditor5-clipboard@46.1.1}/node_modules/@ckeditor/ckeditor5-clipboard/dist/index.js +1 -1
  175. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-cloud-services@46.1.0 → @ckeditor_ckeditor5-cloud-services@46.1.1}/node_modules/@ckeditor/ckeditor5-cloud-services/dist/index.js +1 -1
  176. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-code-block@46.1.0 → @ckeditor_ckeditor5-code-block@46.1.1}/node_modules/@ckeditor/ckeditor5-code-block/dist/index.js +1 -1
  177. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-core@46.1.0 → @ckeditor_ckeditor5-core@46.1.1}/node_modules/@ckeditor/ckeditor5-core/dist/index.js +1 -1
  178. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-editor-classic@46.1.0 → @ckeditor_ckeditor5-editor-classic@46.1.1}/node_modules/@ckeditor/ckeditor5-editor-classic/dist/index.js +1 -1
  179. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-engine@46.1.0 → @ckeditor_ckeditor5-engine@46.1.1}/node_modules/@ckeditor/ckeditor5-engine/dist/index.js +1 -1
  180. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-enter@46.1.0 → @ckeditor_ckeditor5-enter@46.1.1}/node_modules/@ckeditor/ckeditor5-enter/dist/index.js +1 -1
  181. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-essentials@46.1.0 → @ckeditor_ckeditor5-essentials@46.1.1}/node_modules/@ckeditor/ckeditor5-essentials/dist/index.js +1 -1
  182. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-find-and-replace@46.1.0 → @ckeditor_ckeditor5-find-and-replace@46.1.1}/node_modules/@ckeditor/ckeditor5-find-and-replace/dist/index.js +1 -1
  183. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-font@46.1.0 → @ckeditor_ckeditor5-font@46.1.1}/node_modules/@ckeditor/ckeditor5-font/dist/index.js +1 -1
  184. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-heading@46.1.0 → @ckeditor_ckeditor5-heading@46.1.1}/node_modules/@ckeditor/ckeditor5-heading/dist/index.js +1 -1
  185. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-highlight@46.1.0 → @ckeditor_ckeditor5-highlight@46.1.1}/node_modules/@ckeditor/ckeditor5-highlight/dist/index.js +1 -1
  186. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-horizontal-line@46.1.0 → @ckeditor_ckeditor5-horizontal-line@46.1.1}/node_modules/@ckeditor/ckeditor5-horizontal-line/dist/index.js +1 -1
  187. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-html-embed@46.1.0 → @ckeditor_ckeditor5-html-embed@46.1.1}/node_modules/@ckeditor/ckeditor5-html-embed/dist/index.js +1 -1
  188. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-html-support@46.1.0 → @ckeditor_ckeditor5-html-support@46.1.1}/node_modules/@ckeditor/ckeditor5-html-support/dist/index.js +1 -1
  189. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-image@46.1.0 → @ckeditor_ckeditor5-image@46.1.1}/node_modules/@ckeditor/ckeditor5-image/dist/index.js +1 -1
  190. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-indent@46.1.0 → @ckeditor_ckeditor5-indent@46.1.1}/node_modules/@ckeditor/ckeditor5-indent/dist/index.js +1 -1
  191. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-language@46.1.0 → @ckeditor_ckeditor5-language@46.1.1}/node_modules/@ckeditor/ckeditor5-language/dist/index.js +1 -1
  192. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-link@46.1.0 → @ckeditor_ckeditor5-link@46.1.1}/node_modules/@ckeditor/ckeditor5-link/dist/index.js +1 -1
  193. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-list@46.1.0 → @ckeditor_ckeditor5-list@46.1.1}/node_modules/@ckeditor/ckeditor5-list/dist/index.js +1 -1
  194. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-markdown-gfm@46.1.0 → @ckeditor_ckeditor5-markdown-gfm@46.1.1}/node_modules/@ckeditor/ckeditor5-markdown-gfm/dist/index.js +1 -1
  195. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-media-embed@46.1.0 → @ckeditor_ckeditor5-media-embed@46.1.1}/node_modules/@ckeditor/ckeditor5-media-embed/dist/index.js +1 -1
  196. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-mention@46.1.0 → @ckeditor_ckeditor5-mention@46.1.1}/node_modules/@ckeditor/ckeditor5-mention/dist/index.js +1 -1
  197. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-page-break@46.1.0 → @ckeditor_ckeditor5-page-break@46.1.1}/node_modules/@ckeditor/ckeditor5-page-break/dist/index.js +1 -1
  198. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-paragraph@46.1.0 → @ckeditor_ckeditor5-paragraph@46.1.1}/node_modules/@ckeditor/ckeditor5-paragraph/dist/index.js +1 -1
  199. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-paste-from-office@46.1.0 → @ckeditor_ckeditor5-paste-from-office@46.1.1}/node_modules/@ckeditor/ckeditor5-paste-from-office/dist/index.js +1 -1
  200. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-remove-format@46.1.0 → @ckeditor_ckeditor5-remove-format@46.1.1}/node_modules/@ckeditor/ckeditor5-remove-format/dist/index.js +1 -1
  201. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-select-all@46.1.0 → @ckeditor_ckeditor5-select-all@46.1.1}/node_modules/@ckeditor/ckeditor5-select-all/dist/index.js +1 -1
  202. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-show-blocks@46.1.0 → @ckeditor_ckeditor5-show-blocks@46.1.1}/node_modules/@ckeditor/ckeditor5-show-blocks/dist/index.js +1 -1
  203. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-source-editing@46.1.0 → @ckeditor_ckeditor5-source-editing@46.1.1}/node_modules/@ckeditor/ckeditor5-source-editing/dist/index.js +1 -1
  204. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-special-characters@46.1.0 → @ckeditor_ckeditor5-special-characters@46.1.1}/node_modules/@ckeditor/ckeditor5-special-characters/dist/index.js +1 -1
  205. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-style@46.1.0 → @ckeditor_ckeditor5-style@46.1.1}/node_modules/@ckeditor/ckeditor5-style/dist/index.js +1 -1
  206. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-table@46.1.0 → @ckeditor_ckeditor5-table@46.1.1}/node_modules/@ckeditor/ckeditor5-table/dist/index.js +1 -1
  207. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-typing@46.1.0 → @ckeditor_ckeditor5-typing@46.1.1}/node_modules/@ckeditor/ckeditor5-typing/dist/index.js +1 -1
  208. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-ui@46.1.0 → @ckeditor_ckeditor5-ui@46.1.1}/node_modules/@ckeditor/ckeditor5-ui/dist/index.js +1 -1
  209. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-undo@46.1.0 → @ckeditor_ckeditor5-undo@46.1.1}/node_modules/@ckeditor/ckeditor5-undo/dist/index.js +1 -1
  210. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-upload@46.1.0 → @ckeditor_ckeditor5-upload@46.1.1}/node_modules/@ckeditor/ckeditor5-upload/dist/index.js +1 -1
  211. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-utils@46.1.0 → @ckeditor_ckeditor5-utils@46.1.1}/node_modules/@ckeditor/ckeditor5-utils/dist/index.js +1 -1
  212. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-widget@46.1.0 → @ckeditor_ckeditor5-widget@46.1.1}/node_modules/@ckeditor/ckeditor5-widget/dist/index.js +1 -1
  213. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.7/node_modules/@figma/code-connect/dist/connect/helpers.js +1 -0
  214. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.7/node_modules/@figma/code-connect/dist/html/external.js +1 -0
  215. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.7/node_modules/@figma/code-connect/dist/html/index_html.js +1 -0
  216. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.7/node_modules/@figma/code-connect/dist/react/external.js +1 -0
  217. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.7/node_modules/@figma/code-connect/dist/react/index_react.js +1 -0
  218. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.7/node_modules/@figma/code-connect/package.json.js +1 -0
  219. package/dist/node_modules/.pnpm/axe-core@4.11.0/node_modules/axe-core/axe.js +30 -0
  220. package/dist/node_modules/.pnpm/color-convert@3.1.0/node_modules/color-convert/conversions.js +1 -1
  221. package/dist/node_modules/.pnpm/color-string@2.0.1/node_modules/color-string/index.js +1 -1
  222. package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/PhoneNumber.js +1 -1
  223. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.24/node_modules/libphonenumber-js/es6/format.js +1 -0
  224. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.24/node_modules/libphonenumber-js/es6/helpers/checkNumberLength.js +1 -0
  225. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.24/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCode.js +1 -0
  226. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.24/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js +1 -0
  227. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.24/node_modules/libphonenumber-js/es6/helpers/extractNationalNumber.js +1 -0
  228. package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js +1 -1
  229. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.24/node_modules/libphonenumber-js/es6/isPossible.js +1 -0
  230. package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/metadata.js +1 -1
  231. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.24/node_modules/libphonenumber-js/es6/parse.js +1 -0
  232. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.24/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js +2 -0
  233. package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/metadata.min.json.js +1 -1
  234. package/dist/node_modules/.pnpm/react@19.2.0/node_modules/react/cjs/react.production.js +9 -0
  235. package/dist/node_modules/.pnpm/{storybook@9.1.5_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.3.1_typescript@5.9_72cffe61c3938b770feb5ac395c7392a → storybook@9.1.13_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.9.1_typescript@5._a0e195139f137e7eecc50e9c6275adcc}/node_modules/storybook/dist/test/index.js +117 -117
  236. package/dist/packages/web-components/src/components/accordion/gator/base/accordion.gator.scss.js +1 -1
  237. package/dist/packages/web-components/src/components/accordion/gator/group/accordion-group.gator.scss.js +1 -1
  238. package/dist/packages/web-components/src/components/alert/gator/base/alert.gator.scss.js +1 -1
  239. package/dist/packages/web-components/src/components/alert/gator/subtitle/alert-subtitle.gator.scss.js +1 -1
  240. package/dist/packages/web-components/src/components/alert/gator/title/alert-title.gator.scss.js +1 -1
  241. package/dist/packages/web-components/src/components/avatar/gator/avatar.gator.scss.js +1 -1
  242. package/dist/packages/web-components/src/components/badge/gator/badge.gator.scss.js +1 -1
  243. package/dist/packages/web-components/src/components/banner/gator/banner.gator.scss.js +1 -1
  244. package/dist/packages/web-components/src/components/button/gator/button.gator.scss.js +1 -1
  245. package/dist/packages/web-components/src/components/card/gator/base/card.gator.scss.js +1 -1
  246. package/dist/packages/web-components/src/components/card/gator/header/card-header.gator.scss.js +1 -1
  247. package/dist/packages/web-components/src/components/checkbox/checkbox.gator.scss.js +1 -1
  248. package/dist/packages/web-components/src/components/chip/gator/chip.gator.scss.js +1 -1
  249. package/dist/packages/web-components/src/components/date-picker/base/gator/datepicker.gator.scss.js +1 -1
  250. package/dist/packages/web-components/src/components/date-picker/year-month-selector/year-month-selector.gator.scss.js +1 -1
  251. package/dist/packages/web-components/src/components/fab/gator/fab.gator.scss.js +1 -1
  252. package/dist/packages/web-components/src/components/guided-nav/gator/guided-nav-step/guided-nav-step.gator.scss.js +1 -1
  253. package/dist/packages/web-components/src/components/guided-nav/gator/guided-nav-substep/guided-nav-substep.gator.scss.js +1 -1
  254. package/dist/packages/web-components/src/components/icon/gator/icon.gator.scss.js +1 -1
  255. package/dist/packages/web-components/src/components/icon-button/gator/icon-button.gator.scss.js +1 -1
  256. package/dist/packages/web-components/src/components/illustration/gator/illustration.gator.scss.js +1 -1
  257. package/dist/packages/web-components/src/components/image-card/gator/image-card.gator.scss.js +1 -0
  258. package/dist/packages/web-components/src/components/input/gator/dropdown/input-dropdown.gator.scss.js +1 -1
  259. package/dist/packages/web-components/src/components/input/gator/help-text/help-text.gator.scss.js +1 -1
  260. package/dist/packages/web-components/src/components/input/gator/input-date/input-date.gator.scss.js +1 -1
  261. package/dist/packages/web-components/src/components/input/gator/input-file/file-uploaded-preview/file-upload-preview.gator.scss.js +1 -1
  262. package/dist/packages/web-components/src/components/input/gator/input-file/input-file.gator.scss.js +1 -1
  263. package/dist/packages/web-components/src/components/input/gator/input-label/input-label.gator.scss.js +1 -1
  264. package/dist/packages/web-components/src/components/input/gator/input-phone/input-phone.gator.scss.js +1 -1
  265. package/dist/packages/web-components/src/components/input/gator/input-search/input-search.gator.scss.js +1 -1
  266. package/dist/packages/web-components/src/components/input/gator/input-textarea/input-textarea.gator.scss.js +1 -1
  267. package/dist/packages/web-components/src/components/input/input.gator.scss.js +1 -1
  268. package/dist/packages/web-components/src/components/list/gator/list-item/list-item.gator.scss.js +1 -1
  269. package/dist/packages/web-components/src/components/loading-spinner/gator/loading-spinner.gator.scss.js +1 -1
  270. package/dist/packages/web-components/src/components/menu/base/gator/menu.gator.scss.js +1 -1
  271. package/dist/packages/web-components/src/components/modal/gator/modal.gator.scss.js +1 -1
  272. package/dist/packages/web-components/src/components/page-header/gator/page-header.gator.scss.js +1 -1
  273. package/dist/packages/web-components/src/components/panel/gator/panel.gator.scss.js +1 -1
  274. package/dist/packages/web-components/src/components/popover/gator/popover.gator.scss.js +1 -1
  275. package/dist/packages/web-components/src/components/progress-bar/gator/progress-bar.gator.scss.js +1 -1
  276. package/dist/packages/web-components/src/components/progress-ring/gator/progress-ring.gator.scss.js +1 -1
  277. package/dist/packages/web-components/src/components/progress-stepper/base/progress-stepper.gator.scss.js +1 -0
  278. package/dist/packages/web-components/src/components/progress-stepper/stepper-item/stepper-item.gator.scss.js +1 -0
  279. package/dist/packages/web-components/src/components/selection-box/selection-box.gator.scss.js +1 -1
  280. package/dist/packages/web-components/src/components/selector/gator/selector.gator.scss.js +1 -1
  281. package/dist/packages/web-components/src/components/skeleton-loader/gator/skeleton-loader.gator.scss.js +1 -1
  282. package/dist/packages/web-components/src/components/skip-link/gator/base/skip-link.gator.scss.js +1 -1
  283. package/dist/packages/web-components/src/components/skip-link/gator/list-item/skip-link-list-item.gator.scss.js +1 -1
  284. package/dist/packages/web-components/src/components/switch/gator/switch.gator.scss.js +1 -1
  285. package/dist/packages/web-components/src/components/table/gator/table-bulk-controls/table-bulk-controls.gator.scss.js +1 -1
  286. package/dist/packages/web-components/src/components/table/gator/table-controls/table-controls.gator.scss.js +1 -1
  287. package/dist/packages/web-components/src/components/table/gator/table-pagination/table-pagination.gator.scss.js +1 -1
  288. package/dist/packages/web-components/src/components/table/gator/table.gator.scss.js +1 -1
  289. package/dist/packages/web-components/src/components/tabs/gator/tabs.gator.scss.js +1 -1
  290. package/dist/packages/web-components/src/components/text-detail/gator/text-detail.gator.scss.js +1 -1
  291. package/dist/packages/web-components/src/components/text-link/gator/text-link.gator.scss.js +1 -1
  292. package/dist/packages/web-components/src/components/toast/gator/base/toast.gator.scss.js +1 -1
  293. package/dist/packages/web-components/src/components/toast/gator/subtitle/toast-subtitle.gator.scss.js +1 -1
  294. package/dist/packages/web-components/src/components/toast/gator/title/toast-title.gator.scss.js +1 -1
  295. package/dist/packages/web-components/src/components/tooltip/gator/tooltip.gator.scss.js +1 -1
  296. package/dist/packages/web-components/src/tokens/primitive.tokens.scss.js +1 -1
  297. package/dist/packages/web-components/src/tokens/semantic.tokens.scss.js +1 -1
  298. package/dist/packages/web-components/src/utils/data/phone-country-codes.json.js +1 -1
  299. package/dist/types/components/accordion/gator/base/accordion.gator.d.ts +1 -0
  300. package/dist/types/components/accordion/gator/group/accordion-group.gator.d.ts +8 -3
  301. package/dist/types/components/card/card.d.ts +1 -0
  302. package/dist/types/components/chip/chip.d.ts +1 -1
  303. package/dist/types/components/guided-nav/gator/guided-nav-step/guided-nav-step.gator.d.ts +9 -4
  304. package/dist/types/components/guided-nav/gator/guided-nav-substep/guided-nav-substep.gator.d.ts +5 -3
  305. package/dist/types/components/icon/gator/templates/brain.d.ts +1 -0
  306. package/dist/types/components/icon/gator/templates/document-ai.d.ts +1 -0
  307. package/dist/types/components/icon/gator/templates/index.d.ts +11 -0
  308. package/dist/types/components/icon/gator/templates/number-0.d.ts +1 -0
  309. package/dist/types/components/icon/gator/templates/number-10.d.ts +1 -0
  310. package/dist/types/components/icon/gator/templates/number-4.d.ts +1 -0
  311. package/dist/types/components/icon/gator/templates/number-5.d.ts +1 -0
  312. package/dist/types/components/icon/gator/templates/number-6.d.ts +1 -0
  313. package/dist/types/components/icon/gator/templates/number-7.d.ts +1 -0
  314. package/dist/types/components/icon/gator/templates/number-8.d.ts +1 -0
  315. package/dist/types/components/icon/gator/templates/number-9.d.ts +1 -0
  316. package/dist/types/components/icon/gator/templates/robot.d.ts +1 -0
  317. package/dist/types/components/icon-button/gator/icon-button.gator.d.ts +1 -0
  318. package/dist/types/components/icon-button/icon-button.d.ts +1 -0
  319. package/dist/types/components/image-card/gator/image-card.gator.d.ts +30 -0
  320. package/dist/types/components/image-card/gator/image-card.gator.test.d.ts +0 -0
  321. package/dist/types/components/image-card/image-card.d.ts +25 -0
  322. package/dist/types/components/image-card/index.d.ts +1 -0
  323. package/dist/types/components/input/base/input-base.gator.d.ts +8 -7
  324. package/dist/types/components/input/gator/dropdown/input-dropdown.gator.d.ts +8 -1
  325. package/dist/types/components/input/gator/help-text/help-text.gator.d.ts +13 -0
  326. package/dist/types/components/input/gator/input-date/input-date.gator.d.ts +2 -2
  327. package/dist/types/components/input/gator/input-file/file-uploaded-preview/file-upload-preview.gator.d.ts +1 -0
  328. package/dist/types/components/input/gator/input-file/input-file.gator.d.ts +1 -1
  329. package/dist/types/components/input/gator/input-label/input-label.gator.d.ts +1 -0
  330. package/dist/types/components/input/gator/input-phone/input-phone.gator.d.ts +1 -1
  331. package/dist/types/components/input/gator/input-time/input-time.gator.d.ts +1 -1
  332. package/dist/types/components/list/gator/list/list.gator.d.ts +2 -1
  333. package/dist/types/components/list/gator/list-item/list-item.gator.d.ts +5 -1
  334. package/dist/types/components/panel/gator/panel.gator.d.ts +1 -1
  335. package/dist/types/components/progress-ring/gator/progress-ring.gator.d.ts +8 -0
  336. package/dist/types/components/progress-stepper/base/progress-stepper.gator.d.ts +19 -0
  337. package/dist/types/components/progress-stepper/base/progress-stepper.gator.test.d.ts +0 -0
  338. package/dist/types/components/progress-stepper/stepper-item/stepper-item.gator.d.ts +46 -0
  339. package/dist/types/components/progress-stepper/stepper-item/stepper-item.gator.test.d.ts +0 -0
  340. package/dist/types/components/selection-box/selection-box.gator.d.ts +6 -1
  341. package/dist/types/components/skeleton-loader/gator/skeleton-loader.gator.d.ts +5 -1
  342. package/dist/types/components/skip-link/gator/base/skip-link.gator.d.ts +1 -1
  343. package/dist/types/components/switch/gator/switch.gator.d.ts +3 -0
  344. package/dist/types/components/switch/switch.d.ts +5 -0
  345. package/dist/types/components/table/gator/table-bulk-controls/table-bulk-controls.gator.d.ts +1 -1
  346. package/dist/types/components/table/gator/table.gator.d.ts +1 -1
  347. package/dist/types/components/tabs/gator/tabset/tabset.gator.d.ts +5 -2
  348. package/dist/types/components/text-detail/gator/text-detail.gator.d.ts +1 -1
  349. package/dist/types/components/text-link/gator/text-link.gator.d.ts +10 -11
  350. package/dist/types/components/text-link/text-link.d.ts +8 -0
  351. package/dist/types/components/tooltip/tooltip.d.ts +1 -0
  352. package/dist/types/generated/locale-codes.d.ts +3 -0
  353. package/dist/types/generated/locales/es-419.d.ts +60 -0
  354. package/dist/types/generated/locales/fr-CA.d.ts +60 -0
  355. package/dist/types/generated/locales/zh-Hans.d.ts +60 -0
  356. package/dist/types/index.gator.d.ts +1 -0
  357. package/dist/types/utils/components/slot-placeholder/slot-placeholder.d.ts +2 -0
  358. package/dist/types/utils/data/data-models.d.ts +1 -0
  359. package/dist/types/utils/data/phone-country-codes.json.d.ts +18 -0
  360. package/dist/types/utils/mixins/attribute-deletion.d.ts +0 -9
  361. package/dist/types/utils/mixins/interactive-component.d.ts +4 -0
  362. package/dist/types/utils/phone-utils.d.ts +10 -0
  363. package/dist/types/utils/storybook-args.d.ts +4 -0
  364. package/dist/utils/brand-color-utils.js +1 -1
  365. package/dist/utils/components/slot-placeholder/slot-placeholder.js +15 -6
  366. package/dist/utils/mixins/attribute-deletion.js +1 -1
  367. package/dist/utils/mixins/interactive-component.js +1 -0
  368. package/dist/utils/phone-utils.js +1 -1
  369. package/dist/utils/storybook-args.js +1 -1
  370. package/dist/utils/vitest-a11y-utils.js +1 -1
  371. package/package.json +135 -135
  372. package/web-types.json +405 -170
  373. package/dist/assets/OpenSans-VariableFont.woff2 +0 -0
  374. package/dist/assets/nCino_Avenir.woff2 +0 -0
  375. package/dist/assets/nCino_AvenirBd.woff2 +0 -0
  376. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.5/node_modules/@figma/code-connect/dist/connect/helpers.js +0 -1
  377. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.5/node_modules/@figma/code-connect/dist/html/external.js +0 -1
  378. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.5/node_modules/@figma/code-connect/dist/html/index_html.js +0 -1
  379. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.5/node_modules/@figma/code-connect/dist/react/external.js +0 -1
  380. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.5/node_modules/@figma/code-connect/dist/react/index_react.js +0 -1
  381. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.5/node_modules/@figma/code-connect/package.json.js +0 -1
  382. package/dist/node_modules/.pnpm/axe-core@4.10.3/node_modules/axe-core/axe.js +0 -30
  383. package/dist/node_modules/.pnpm/color-name@2.0.0/node_modules/color-name/index.js +0 -1
  384. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.15/node_modules/libphonenumber-js/es6/format.js +0 -2
  385. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.15/node_modules/libphonenumber-js/es6/helpers/checkNumberLength.js +0 -1
  386. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.15/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCode.js +0 -1
  387. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.15/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js +0 -1
  388. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.15/node_modules/libphonenumber-js/es6/helpers/extractNationalNumber.js +0 -1
  389. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.15/node_modules/libphonenumber-js/es6/isPossible.js +0 -1
  390. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.15/node_modules/libphonenumber-js/es6/parse.js +0 -1
  391. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.15/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js +0 -2
  392. package/dist/node_modules/.pnpm/react@19.1.1/node_modules/react/cjs/react.production.js +0 -9
  393. package/dist/packages/web-components/public/styles/gator/gator-global-styles.css.js +0 -1
  394. package/dist/packages/web-components/src/components/alert/gator/alert.tokens.scss.js +0 -1
  395. package/dist/packages/web-components/src/components/avatar/avatar.tokens.scss.js +0 -1
  396. package/dist/packages/web-components/src/components/badge/gator/badge.gator.tokens.scss.js +0 -1
  397. package/dist/packages/web-components/src/components/banner/banner.tokens.scss.js +0 -1
  398. package/dist/packages/web-components/src/components/input/gator/help-text/help-text.gator.tokens.scss.js +0 -1
  399. package/dist/packages/web-components/src/components/input/input.gator.tokens.scss.js +0 -1
  400. package/dist/packages/web-components/src/components/menu/menu.tokens.scss.js +0 -1
  401. package/dist/packages/web-components/src/components/panel/gator/panel.gator.tokens.scss.js +0 -1
  402. package/dist/packages/web-components/src/components/selection-box/selection-box.gator.tokens.scss.js +0 -1
  403. package/dist/packages/web-components/src/components/switch/switch.tokens.scss.js +0 -1
  404. package/dist/packages/web-components/src/components/table/table.tokens.scss.js +0 -1
  405. package/dist/packages/web-components/src/components/tabs/gator/tabs.gator.tokens.scss.js +0 -1
  406. package/dist/packages/web-components/src/components/tooltip/tooltip.tokens.scss.js +0 -1
  407. package/dist/packages/web-components/src/tokens/primitive-new.tokens.scss.js +0 -1
  408. package/dist/packages/web-components/src/tokens/semantic-new.tokens.scss.js +0 -1
  409. package/dist/styles/gator/_gator-grid.css +0 -81
  410. package/dist/styles/gator/_gator-sizing.css +0 -179
  411. package/dist/styles/gator/_gator-typography.css +0 -186
  412. package/dist/styles/gator/fonts/OpenSans-VariableFont.woff2 +0 -0
  413. package/dist/styles/gator/fonts/nCino+Avenir.woff2 +0 -0
  414. package/dist/styles/gator/fonts/nCino+AvenirBd.woff2 +0 -0
  415. package/dist/styles/gator/fonts.css +0 -20
  416. package/dist/styles/gator/gator-global-styles.css +0 -12
  417. package/dist/styles/gator/tokens/_gator-global-tokens.css +0 -4
  418. /package/dist/assets/node_modules/.pnpm/{ckeditor5@46.1.0 → ckeditor5@46.1.1}/node_modules/ckeditor5/dist/ckeditor5.css +0 -0
  419. /package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-icons@46.1.0 → @ckeditor_ckeditor5-icons@46.1.1}/node_modules/@ckeditor/ckeditor5-icons/dist/index.js +0 -0
  420. /package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-watchdog@46.1.0 → @ckeditor_ckeditor5-watchdog@46.1.1}/node_modules/@ckeditor/ckeditor5-watchdog/dist/index.js +0 -0
  421. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.5 → @figma_code-connect@1.3.7}/node_modules/@figma/code-connect/dist/client/external.js +0 -0
  422. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.5 → @figma_code-connect@1.3.7}/node_modules/@figma/code-connect/dist/client/figma_client.js +0 -0
  423. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.5 → @figma_code-connect@1.3.7}/node_modules/@figma/code-connect/dist/common/fetch.js +0 -0
  424. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.5 → @figma_code-connect@1.3.7}/node_modules/@figma/code-connect/dist/common/logging.js +0 -0
  425. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.5 → @figma_code-connect@1.3.7}/node_modules/@figma/code-connect/dist/common/updates.js +0 -0
  426. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.5 → @figma_code-connect@1.3.7}/node_modules/@figma/code-connect/dist/connect/external_types.js +0 -0
  427. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.5 → @figma_code-connect@1.3.7}/node_modules/@figma/code-connect/dist/connect/figma_rest_api.js +0 -0
  428. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.5 → @figma_code-connect@1.3.7}/node_modules/@figma/code-connect/dist/connect/index_common.js +0 -0
  429. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.5 → @figma_code-connect@1.3.7}/node_modules/@figma/code-connect/dist/html/template_literal.js +0 -0
  430. /package/dist/node_modules/.pnpm/{@vitest_browser@3.2.4_msw@2.7.3_@types_node@24.3.1_typescript@5.9.2__playwright@1.55.0__87f0b62113e4cf466e19137faba4c80e → @vitest_browser@3.2.4_msw@2.7.3_@types_node@24.9.1_typescript@5.9.3__playwright@1.56.1__f267599ff27ed4cacb9e62a386256df6}/node_modules/@vitest/browser/context.js +0 -0
  431. /package/dist/node_modules/.pnpm/{color@5.0.0 → color@5.0.2}/node_modules/color/index.js +0 -0
  432. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/ParseError.js +0 -0
  433. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/constants.js +0 -0
  434. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/helpers/RFC3966.js +0 -0
  435. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.js +0 -0
  436. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/helpers/extension/createExtensionPattern.js +0 -0
  437. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/helpers/extension/extractExtension.js +0 -0
  438. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js +0 -0
  439. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js +0 -0
  440. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/helpers/extractPhoneContext.js +0 -0
  441. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js +0 -0
  442. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.js +0 -0
  443. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/helpers/getIddPrefix.js +0 -0
  444. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/helpers/getNumberType.js +0 -0
  445. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/helpers/getPossibleCountriesForNumber.js +0 -0
  446. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/helpers/isObject.js +0 -0
  447. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/helpers/isViablePhoneNumber.js +0 -0
  448. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/helpers/matchesEntirely.js +0 -0
  449. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/helpers/parseDigits.js +0 -0
  450. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/helpers/stripIddPrefix.js +0 -0
  451. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/isValid.js +0 -0
  452. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/normalizeArguments.js +0 -0
  453. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/parsePhoneNumber.js +0 -0
  454. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/parsePhoneNumberWithError_.js +0 -0
  455. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/parsePhoneNumber_.js +0 -0
  456. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/tools/semver-compare.js +0 -0
  457. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/min/exports/parsePhoneNumber.js +0 -0
  458. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/min/exports/withMetadataArgument.js +0 -0
  459. /package/dist/node_modules/.pnpm/{react@19.1.1 → react@19.2.0}/node_modules/react/index.js +0 -0
  460. /package/dist/node_modules/.pnpm/{storybook@9.1.5_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.3.1_typescript@5.9_72cffe61c3938b770feb5ac395c7392a → storybook@9.1.13_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.9.1_typescript@5._a0e195139f137e7eecc50e9c6275adcc}/node_modules/storybook/dist/client-logger/index.js +0 -0
  461. /package/dist/node_modules/.pnpm/{storybook@9.1.5_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.3.1_typescript@5.9_72cffe61c3938b770feb5ac395c7392a → storybook@9.1.13_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.9.1_typescript@5._a0e195139f137e7eecc50e9c6275adcc}/node_modules/storybook/dist/core-events/index.js +0 -0
  462. /package/dist/node_modules/.pnpm/{storybook@9.1.5_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.3.1_typescript@5.9_72cffe61c3938b770feb5ac395c7392a → storybook@9.1.13_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.9.1_typescript@5._a0e195139f137e7eecc50e9c6275adcc}/node_modules/storybook/dist/instrumenter/index.js +0 -0
  463. /package/dist/node_modules/.pnpm/{vitest@3.2.4_@types_debug@4.1.12_@types_node@24.3.1_@vitest_browser@3.2.4_@vitest_ui@3._1b07986b91643c89c81b0014d2711937 → vitest@3.2.4_@types_debug@4.1.12_@types_node@24.9.1_@vitest_browser@3.2.4_@vitest_ui@3._1eebb5b0859be5c5eee8a8981f7b0151}/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.js +0 -0
  464. /package/dist/node_modules/.pnpm/{vitest@3.2.4_@types_debug@4.1.12_@types_node@24.3.1_@vitest_browser@3.2.4_@vitest_ui@3._1b07986b91643c89c81b0014d2711937 → vitest@3.2.4_@types_debug@4.1.12_@types_node@24.9.1_@vitest_browser@3.2.4_@vitest_ui@3._1eebb5b0859be5c5eee8a8981f7b0151}/node_modules/vitest/dist/chunks/date.Bq6ZW5rf.js +0 -0
  465. /package/dist/node_modules/.pnpm/{vitest@3.2.4_@types_debug@4.1.12_@types_node@24.3.1_@vitest_browser@3.2.4_@vitest_ui@3._1b07986b91643c89c81b0014d2711937 → vitest@3.2.4_@types_debug@4.1.12_@types_node@24.9.1_@vitest_browser@3.2.4_@vitest_ui@3._1eebb5b0859be5c5eee8a8981f7b0151}/node_modules/vitest/dist/chunks/utils.XdZDrNZV.js +0 -0
  466. /package/dist/node_modules/.pnpm/{vitest@3.2.4_@types_debug@4.1.12_@types_node@24.3.1_@vitest_browser@3.2.4_@vitest_ui@3._1b07986b91643c89c81b0014d2711937 → vitest@3.2.4_@types_debug@4.1.12_@types_node@24.9.1_@vitest_browser@3.2.4_@vitest_ui@3._1eebb5b0859be5c5eee8a8981f7b0151}/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js +0 -0
@@ -0,0 +1 @@
1
+
@@ -0,0 +1 @@
1
+ const e="en",s=["es-419","fr-CA","zh-Hans"],o=["en","es-419","fr-CA","zh-Hans"];export{o as allLocales,e as sourceLocale,s as targetLocales};
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,10 @@
1
+ import"../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";import{html as e}from"../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js";import"../../node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js";import{str as a}from"../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/str-tag.js";import"../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js";const i={hedb4de867a13d461:e`Mostrando
2
+ ${0}
3
+ resultados. Refina tu búsqueda para ver más.
4
+ `,hf4332945d84c7c82:e`
5
+ ${0}
6
+ archivos subidos
7
+ `,s023f114f575b5bd5:"Página actual",s0379fc73608ab971:"Listo",s03c44f5a1b0581d4:"seleccionados",s06963fd6fbd255b6:"Mes siguiente",s0778ff3bbb3af675:"Saltar a las acciones de la tabla",s08b06007b5567108:"de",s10ff4dbbcf74dacb:"Selección de mes",s129df71274160e17:"Abrir selector de fecha",s13f20cb257e12fac:"Este campo es obligatorio",s14b6da16c2cf9e83:"Por favor, complete los campos obligatorios marcados en los pasos anteriores antes de pasar al siguiente paso.",s15ba5784a11e0b88:"Mes actual",s354acc936af915f2:"Cerrar notificación",s3763f519c347a9f7:"Ahora",s3b5fd0df6b2757e8:"Cancelar subida",s4269a31ccd0d376d:"Opciones de hora",s4c4e33c8c5ffe216:"Mes anterior",s4dabcaab8d268abf:"Elementos por página:",s5153faf0f82adea0:"Minuto anterior",s542ffff558768ea3:"Página siguiente",s56360c5f24cfd4ff:"Elementos por página",s5b6a1140834aa043:"Página anterior",s5e8250fb85d64c23:"Cerrar",s619be8edc061ca50:a`Entrada no válida. El valor debe ser mayor o igual a ${0}.`,s61b843c1ec9cd933:"Tipos de archivos aceptados",s63d040e37887f17e:"Hoy",s6f666d1fa690e523:"Año actual",s7354997f3dd083ef:"Opciones de minuto",s77c72f12bcbded71:"Opciones de momento del día",s7ce8c87fe40f71a6:"Seleccionar hora",s8093bb763f0f674e:"Hora anterior",s952111f801940b59:"Entrada no válida. Por favor, ingrese un valor numérico válido.",s9aac493d4233f302:"Botones de desbordamiento",sa9fa88323c514ded:a`Entrada no válida. El valor debe ser menor o igual a ${0}.`,sae5d87e99fe081e0:"Obligatorio",saef0626ba9eedd25:"o suéltalos aquí",sb2603c25b6a6abb0:a`${0} de ${1} caracteres`,sb4f1dffbb6be6302:"Limpiar",sbaace8219b5f4612:"Seleccionar todo",sbe8fd5b7d4adb0fa:"Selección de año",scb0eac431437616e:"Hora siguiente",scc6256ab113cc5f9:"Eliminar archivo",scc7a3682dd25ae19:"Opcional",sd107e22f86ada16a:"Entrada no válida. Solo se permite un carácter decimal.",sd3d0433825a79e44:"Tipo de archivo no compatible.",sd7d49bcfca1d1989:a`Entrada no válida. Solo se permiten hasta
8
+ ${0}
9
+ lugares decimales.
10
+ `,sd7ec34bc086265cc:"No se encontraron resultados. Refina tu búsqueda.",se1a5dde03a87bc2f:"Por favor, sube un solo archivo.",se763ab80d9e379d3:"Saltar a:",se7692167f1edeef2:"Subiendo...",se791c4ae5355aebb:"Entrada no válida. Solo se permiten números, comas o puntos.",sf1e34cc91709c487:"No se subieron archivos",sf2b7951c086832dd:"Entrada no válida. No se permiten decimales para esta moneda.",sf993bb199fefbe04:"Todos",sf999d4199ff4542d:"Cualquiera",sff52d71181e316c0:"Minuto siguiente",s96668830629e0dfc:"Upload",s36572e28ab087b68:"Completed: ",s6a76576b7734ddbd:"Warning: ",s5e2e9d5a6f7e69c3:"Error: ",sa970bae947058eb7:"Incomplete: ",s4c87c534136a2b45:"AI Assisted: "};export{i as templates};
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,10 @@
1
+ import"../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";import{html as s}from"../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js";import"../../node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js";import{str as e}from"../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/str-tag.js";import"../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js";const f={hedb4de867a13d461:s`Affichage de
2
+ ${0}
3
+ résultats. Affinez votre recherche pour en voir plus.
4
+ `,hf4332945d84c7c82:s`
5
+ ${0}
6
+ fichiers téléversés
7
+ `,s023f114f575b5bd5:"Page actuelle",s0379fc73608ab971:"Terminé",s03c44f5a1b0581d4:"sélectionné",s06963fd6fbd255b6:"Mois suivant",s0778ff3bbb3af675:"Aller aux actions du tableau",s08b06007b5567108:"de",s10ff4dbbcf74dacb:"Sélection du mois",s129df71274160e17:"Ouvrir le sélecteur de date",s13f20cb257e12fac:"Ce champ est obligatoire",s14b6da16c2cf9e83:"Veuillez remplir les champs obligatoires indiqués dans les étapes précédentes avant de passer à l'étape suivante.",s15ba5784a11e0b88:"Mois en cours",s354acc936af915f2:"Fermer la notification",s3763f519c347a9f7:"Maintenant",s3b5fd0df6b2757e8:"Annuler le téléversement",s4269a31ccd0d376d:"Options d’heure",s4c4e33c8c5ffe216:"Mois précédent",s4dabcaab8d268abf:"Articles par page:",s5153faf0f82adea0:"Minute précédente",s542ffff558768ea3:"Page suivante",s56360c5f24cfd4ff:"Articles par page",s5b6a1140834aa043:"Page précédente",s5e8250fb85d64c23:"Fermer",s619be8edc061ca50:e`Entrée invalide. Le valeur doit être supérieure ou égale à ${0}.`,s61b843c1ec9cd933:"Types de fichiers acceptés",s63d040e37887f17e:"Aujourd'hui",s6f666d1fa690e523:"Année en cours",s7354997f3dd083ef:"Options de minute",s77c72f12bcbded71:"Options de moment de la journée",s7ce8c87fe40f71a6:"Sélectionner l'heure",s8093bb763f0f674e:"Heure précédente",s952111f801940b59:"Entrée invalide. Veuillez entrer une valeur numérique valide.",s9aac493d4233f302:"Boutons de débordement",sa9fa88323c514ded:e`Entrée invalide. Le valeur doit être inférieure ou égale à ${0}.`,sae5d87e99fe081e0:"Obligatoire",saef0626ba9eedd25:"ou déposez-les ici",sb2603c25b6a6abb0:e`${0} sur ${1} caractères`,sb4f1dffbb6be6302:"Effacer",sbaace8219b5f4612:"Tout sélectionner",sbe8fd5b7d4adb0fa:"Sélection de l'année",scb0eac431437616e:"Heure suivante",scc6256ab113cc5f9:"Supprimer le fichier",scc7a3682dd25ae19:"Facultatif",sd107e22f86ada16a:"Entrée invalide. Un seul caractère décimal est autorisé.",sd3d0433825a79e44:"Type de fichier non pris en charge.",sd7d49bcfca1d1989:e`Entrée invalide. Seulement
8
+ ${0}
9
+ décimales sont autorisées.
10
+ `,sd7ec34bc086265cc:"Aucun résultat trouvé. Affinez votre recherche.",se1a5dde03a87bc2f:"Veuillez téléverser un seul fichier.",se763ab80d9e379d3:"Aller à:",se7692167f1edeef2:"Téléversement...",se791c4ae5355aebb:"Entrée invalide. Seuls les chiffres, les virgules ou les points sont autorisés.",sf1e34cc91709c487:"Aucun fichier téléversé",sf2b7951c086832dd:"Entrée invalide. Aucun chiffre décimal n'est autorisé pour cette devise.",sf993bb199fefbe04:"Tous",sf999d4199ff4542d:"Tous",sff52d71181e316c0:"Minute suivante",s96668830629e0dfc:"Upload",s36572e28ab087b68:"Completed: ",s6a76576b7734ddbd:"Warning: ",s5e2e9d5a6f7e69c3:"Error: ",sa970bae947058eb7:"Incomplete: ",s4c87c534136a2b45:"AI Assisted: "};export{f as templates};
@@ -0,0 +1,11 @@
1
+ import"../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";import{html as e}from"../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js";import"../../node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js";import{str as f}from"../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/str-tag.js";import"../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js";const t={hedb4de867a13d461:e`显示
2
+ ${0}
3
+ 个结果。请优化您的搜索以查看更多。
4
+ `,hf4332945d84c7c82:e`
5
+ 已上传
6
+ ${0}
7
+ 个文件
8
+ `,s023f114f575b5bd5:"当前页",s0379fc73608ab971:"完成",s03c44f5a1b0581d4:"已选",s06963fd6fbd255b6:"下个月",s0778ff3bbb3af675:"跳转到表格操作",s08b06007b5567108:"的",s10ff4dbbcf74dacb:"月份选择",s129df71274160e17:"打开日期选择器",s13f20cb257e12fac:"此字段为必填项",s14b6da16c2cf9e83:"请完成前面步骤中标记的必填字段,然后再进行下一步。",s15ba5784a11e0b88:"本月",s354acc936af915f2:"关闭通知",s3763f519c347a9f7:"现在",s3b5fd0df6b2757e8:"取消上传",s4269a31ccd0d376d:"小时选项",s4c4e33c8c5ffe216:"上个月",s4dabcaab8d268abf:"每页项目数:",s5153faf0f82adea0:"上一分钟",s542ffff558768ea3:"下一页",s56360c5f24cfd4ff:"每页项目数",s5b6a1140834aa043:"上一页",s5e8250fb85d64c23:"关闭",s619be8edc061ca50:f`输入无效。值必须大于或等于 ${0}。`,s61b843c1ec9cd933:"接受的文件类型",s63d040e37887f17e:"今天",s6f666d1fa690e523:"今年",s7354997f3dd083ef:"分钟选项",s77c72f12bcbded71:"时间段选项",s7ce8c87fe40f71a6:"选择时间",s8093bb763f0f674e:"上一小时",s952111f801940b59:"输入无效。请输入有效的数字值。",s9aac493d4233f302:"溢出按钮",sa9fa88323c514ded:f`输入无效。值必须小于或等于 ${0}。`,sae5d87e99fe081e0:"必填",saef0626ba9eedd25:"或拖放到这里",sb2603c25b6a6abb0:f`${0} / ${1} 字符`,sb4f1dffbb6be6302:"清除",sbaace8219b5f4612:"全选",sbe8fd5b7d4adb0fa:"年份选择",scb0eac431437616e:"下一小时",scc6256ab113cc5f9:"删除文件",scc7a3682dd25ae19:"可选",sd107e22f86ada16a:"输入无效。只允许一个小数点字符。",sd3d0433825a79e44:"不支持的文件类型。",sd7d49bcfca1d1989:f`输入无效。最多允许
9
+ ${0}
10
+ 位小数。
11
+ `,sd7ec34bc086265cc:"未找到结果。请优化您的搜索。",se1a5dde03a87bc2f:"请上传一个文件。",se763ab80d9e379d3:"跳转至:",se7692167f1edeef2:"正在上传...",se791c4ae5355aebb:"输入无效。只允许数字、逗号或句号。",sf1e34cc91709c487:"未上传文件",sf2b7951c086832dd:"输入无效。此货币不允许使用小数。",sf993bb199fefbe04:"全部",sf999d4199ff4542d:"任何",sff52d71181e316c0:"下一分钟",s96668830629e0dfc:"Upload",s36572e28ab087b68:"Completed: ",s6a76576b7734ddbd:"Warning: ",s5e2e9d5a6f7e69c3:"Error: ",sa970bae947058eb7:"Incomplete: ",s4c87c534136a2b45:"AI Assisted: "};export{t as templates};
@@ -1 +1 @@
1
- import{formattedNaicsCodes as t}from"./utils/industry-utils.js";import{formattedPhoneCountryCodes as d}from"./utils/phone-utils.js";import{formattedCountriesForDropdown as m,formattedStatesForDropdown as a}from"./utils/places-utils.js";export{m as formattedCountriesForDropdown,t as formattedNaicsCodes,d as formattedPhoneCountryCodes,a as formattedStatesForDropdown};
1
+ import{formattedNaicsCodes as e}from"./utils/industry-utils.js";import{flagIconName as a,flagIconNameByDialCode as d,formattedPhoneCountryCodes as f}from"./utils/phone-utils.js";import{formattedCountriesForDropdown as n,formattedStatesForDropdown as p}from"./utils/places-utils.js";export{a as flagIconName,d as flagIconNameByDialCode,n as formattedCountriesForDropdown,e as formattedNaicsCodes,f as formattedPhoneCountryCodes,p as formattedStatesForDropdown};
@@ -1 +1 @@
1
- import*as o from"./components/accordion/gator/base/accordion.gator.js";import*as t from"./components/accordion/gator/group/accordion-group.gator.js";import*as r from"./components/alert/gator/base/alert.gator.js";import*as a from"./components/alert/gator/subtitle/alert-subtitle.gator.js";import*as e from"./components/alert/gator/title/alert-title.gator.js";import*as p from"./components/avatar/gator/avatar.gator.js";import"./components/badge/slds/badge.slds.js";import*as n from"./components/badge/gator/badge.gator.js";import*as s from"./components/banner/gator/banner.gator.js";import*as m from"./components/boolean/boolean.gator.js";import*as g from"./components/breadcrumbs/gator/container/breadcrumbs.gator.js";import"./components/button/slds/button.slds.js";import*as c from"./components/button/gator/button.gator.js";import*as u from"./components/button-card/gator/button-card.gator.js";import*as x from"./components/button-group/gator/button-group.gator.js";import*as d from"./components/card/gator/base/card.gator.js";import*as l from"./components/card/gator/header/card-header.gator.js";import*as f from"./components/card/gator/content/card-content.gator.js";import*as N from"./components/card/gator/footer/card-footer.gator.js";import*as b from"./components/checkbox/checkbox.gator.js";import*as C from"./components/checkbox-group/checkbox-group.gator.js";import*as T from"./components/chip/gator/chip.gator.js";import*as k from"./components/display-card/gator/display-card.gator.js";import*as h from"./components/divider/gator/divider.gator.js";import*as I from"./components/fab/gator/fab.gator.js";import*as P from"./components/guided-nav/gator/guided-nav/guided-nav.gator.js";import*as B from"./components/headline-card/gator/headline-card.gator.js";import*as v from"./components/input/gator/input-currency/input-currency.gator.js";import*as G from"./components/input/gator/input-date/input-date.gator.js";import*as L from"./components/input/gator/input-label/input-label.gator.js";import*as S from"./components/input/gator/help-text/help-text.gator.js";import*as D from"./components/input/gator/input-text/input-text.gator.js";import*as w from"./components/input/gator/input-textarea/input-textarea.gator.js";import*as F from"./components/input/gator/input-masked/input-masked.gator.js";import*as H from"./components/input/gator/input-percent/input-percent.gator.js";import*as y from"./components/input/gator/input-phone/input-phone.gator.js";import*as A from"./components/input/gator/dropdown/input-dropdown.gator.js";import*as M from"./components/input/gator/input-file/input-file.gator.js";import*as R from"./components/input/gator/input-file/file-uploaded-preview/file-upload-preview.gator.js";import*as U from"./components/input/gator/input-search/input-search.gator.js";import*as j from"./components/input/gator/input-time/input-time.gator.js";import"./components/icon/slds/icon.slds.js";import*as z from"./components/icon/gator/icon.gator.js";import*as E from"./components/icon-button/gator/icon-button.gator.js";import*as J from"./components/list/gator/list/list.gator.js";import*as K from"./components/list/gator/list-item/list-item.gator.js";import*as O from"./components/loading-spinner/gator/loading-spinner.gator.js";import"./components/menu/base/slds/menu.slds.js";import*as V from"./components/menu/base/gator/menu.gator.js";import"./components/menu/menu-divider/menu-divider.slds.js";import"./components/menu/menu-item/slds/menu-item.slds.js";import*as Y from"./components/menu/menu-item/gator/menu-item.gator.js";import"./components/menu/menu-submenu/menu-submenu.slds.js";import*as $ from"./components/modal/gator/modal.gator.js";import*as oo from"./components/page-header/gator/page-header.gator.js";import*as to from"./components/panel/gator/panel.gator.js";import*as ro from"./components/popover/gator/popover.gator.js";import*as ao from"./components/progress-bar/gator/progress-bar.gator.js";import*as eo from"./components/progress-ring/gator/progress-ring.gator.js";import*as po from"./components/radio/radio.gator.js";import*as _o from"./components/radio-group/radio-group.gator.js";import*as no from"./components/selection-box/selection-box.gator.js";import*as so from"./components/selection-box-group/selection-box-group.gator.js";import*as mo from"./components/skeleton-loader/gator/skeleton-loader.gator.js";import*as go from"./components/skip-link/gator/base/skip-link.gator.js";import"./components/skip-link/gator/list-item/skip-link-list-item.gator.js";import*as co from"./components/switch/gator/switch.gator.js";import*as uo from"./components/tabs/gator/tabset/tabset.gator.js";import*as xo from"./components/tabs/gator/tab/tab.gator.js";import*as lo from"./components/text-detail/gator/text-detail.gator.js";import*as fo from"./components/text-link/gator/text-link.gator.js";import*as No from"./components/time-picker/gator/time-picker.gator.js";import*as bo from"./components/toast/gator/base/toast.gator.js";import*as Co from"./components/toast-container/gator/toast-container.gator.js";import*as To from"./components/toaster/gator/toaster.gator.js";import*as ko from"./components/tooltip/gator/tooltip.gator.js";import"./components/tooltip/slds/tooltip.slds.js";import*as Io from"./components/table/gator/table.gator.js";import*as Po from"./components/table/gator/table-pagination/table-pagination.gator.js";import*as Bo from"./components/table/gator/table-controls/table-controls.gator.js";export{o as NgcAccordion,t as NgcAccordionGroup,r as NgcAlert,a as NgcAlertSubtitle,e as NgcAlertTitle,p as NgcAvatar,n as NgcBadge,s as NgcBanner,m as NgcBoolean,g as NgcBreadcrumbs,c as NgcButton,u as NgcButtonCard,x as NgcButtonGroup,d as NgcCard,f as NgcCardContent,N as NgcCardFooter,l as NgcCardHeader,b as NgcCheckbox,C as NgcCheckboxGroup,T as NgcChip,k as NgcDisplayCard,h as NgcDivider,I as NgcFab,P as NgcGuidedNav,B as NgcHeadlineCard,S as NgcHelpText,z as NgcIcon,E as NgcIconButton,v as NgcInputCurrency,G as NgcInputDate,A as NgcInputDropdown,M as NgcInputFile,R as NgcInputFileUploadedPreview,L as NgcInputLabel,F as NgcInputMasked,H as NgcInputPercent,y as NgcInputPhone,U as NgcInputSearch,D as NgcInputText,w as NgcInputTextarea,j as NgcInputTime,J as NgcList,K as NgcListItem,O as NgcLoadingSpinner,V as NgcMenu,Y as NgcMenuItem,$ as NgcModal,oo as NgcPageHeader,to as NgcPanel,ro as NgcPopover,ao as NgcProgressBar,eo as NgcProgressRing,po as NgcRadio,_o as NgcRadioGroup,no as NgcSelectionBox,so as NgcSelectionBoxGroup,mo as NgcSkeletonLoader,go as NgcSkipLink,co as NgcSwitch,xo as NgcTab,Io as NgcTable,Bo as NgcTableControls,Po as NgcTablePagination,uo as NgcTabs,lo as NgcTextDetail,fo as NgcTextLink,No as NgcTimePicker,bo as NgcToast,Co as NgcToastContainer,To as NgcToaster,ko as NgcTooltip};
1
+ import*as o from"./components/accordion/gator/base/accordion.gator.js";import*as t from"./components/accordion/gator/group/accordion-group.gator.js";import*as r from"./components/alert/gator/base/alert.gator.js";import*as a from"./components/alert/gator/subtitle/alert-subtitle.gator.js";import*as e from"./components/alert/gator/title/alert-title.gator.js";import*as p from"./components/avatar/gator/avatar.gator.js";import"./components/badge/slds/badge.slds.js";import*as n from"./components/badge/gator/badge.gator.js";import*as s from"./components/banner/gator/banner.gator.js";import*as m from"./components/boolean/boolean.gator.js";import*as g from"./components/breadcrumbs/gator/container/breadcrumbs.gator.js";import"./components/button/slds/button.slds.js";import*as c from"./components/button/gator/button.gator.js";import*as x from"./components/button-card/gator/button-card.gator.js";import*as u from"./components/button-group/gator/button-group.gator.js";import*as d from"./components/card/gator/base/card.gator.js";import*as l from"./components/card/gator/header/card-header.gator.js";import*as f from"./components/card/gator/content/card-content.gator.js";import*as N from"./components/card/gator/footer/card-footer.gator.js";import*as b from"./components/checkbox/checkbox.gator.js";import*as C from"./components/checkbox-group/checkbox-group.gator.js";import*as T from"./components/chip/gator/chip.gator.js";import*as k from"./components/display-card/gator/display-card.gator.js";import*as h from"./components/divider/gator/divider.gator.js";import*as I from"./components/fab/gator/fab.gator.js";import*as P from"./components/guided-nav/gator/guided-nav/guided-nav.gator.js";import*as B from"./components/headline-card/gator/headline-card.gator.js";import*as v from"./components/input/gator/input-currency/input-currency.gator.js";import*as G from"./components/input/gator/input-date/input-date.gator.js";import*as L from"./components/input/gator/input-label/input-label.gator.js";import*as S from"./components/input/gator/help-text/help-text.gator.js";import*as D from"./components/input/gator/input-text/input-text.gator.js";import*as w from"./components/input/gator/input-textarea/input-textarea.gator.js";import*as F from"./components/input/gator/input-masked/input-masked.gator.js";import*as H from"./components/input/gator/input-percent/input-percent.gator.js";import*as y from"./components/input/gator/input-phone/input-phone.gator.js";import*as A from"./components/input/gator/dropdown/input-dropdown.gator.js";import*as M from"./components/input/gator/input-file/input-file.gator.js";import*as R from"./components/input/gator/input-file/file-uploaded-preview/file-upload-preview.gator.js";import*as U from"./components/input/gator/input-search/input-search.gator.js";import*as j from"./components/input/gator/input-time/input-time.gator.js";import"./components/icon/slds/icon.slds.js";import*as z from"./components/icon/gator/icon.gator.js";import*as E from"./components/icon-button/gator/icon-button.gator.js";import*as J from"./components/image-card/gator/image-card.gator.js";import*as K from"./components/list/gator/list/list.gator.js";import*as O from"./components/list/gator/list-item/list-item.gator.js";import*as Q from"./components/loading-spinner/gator/loading-spinner.gator.js";import"./components/menu/base/slds/menu.slds.js";import*as W from"./components/menu/base/gator/menu.gator.js";import"./components/menu/menu-divider/menu-divider.slds.js";import"./components/menu/menu-item/slds/menu-item.slds.js";import*as Z from"./components/menu/menu-item/gator/menu-item.gator.js";import"./components/menu/menu-submenu/menu-submenu.slds.js";import*as oo from"./components/modal/gator/modal.gator.js";import*as to from"./components/page-header/gator/page-header.gator.js";import*as ro from"./components/panel/gator/panel.gator.js";import*as ao from"./components/popover/gator/popover.gator.js";import*as eo from"./components/progress-bar/gator/progress-bar.gator.js";import*as po from"./components/progress-ring/gator/progress-ring.gator.js";import*as _o from"./components/radio/radio.gator.js";import*as no from"./components/radio-group/radio-group.gator.js";import*as so from"./components/selection-box/selection-box.gator.js";import*as mo from"./components/selection-box-group/selection-box-group.gator.js";import*as go from"./components/skeleton-loader/gator/skeleton-loader.gator.js";import*as io from"./components/skip-link/gator/base/skip-link.gator.js";import"./components/skip-link/gator/list-item/skip-link-list-item.gator.js";import*as xo from"./components/switch/gator/switch.gator.js";import*as uo from"./components/tabs/gator/tabset/tabset.gator.js";import*as lo from"./components/tabs/gator/tab/tab.gator.js";import*as fo from"./components/text-detail/gator/text-detail.gator.js";import*as No from"./components/text-link/gator/text-link.gator.js";import*as bo from"./components/time-picker/gator/time-picker.gator.js";import*as Co from"./components/toast/gator/base/toast.gator.js";import*as To from"./components/toast-container/gator/toast-container.gator.js";import*as ko from"./components/toaster/gator/toaster.gator.js";import*as ho from"./components/tooltip/gator/tooltip.gator.js";import"./components/tooltip/slds/tooltip.slds.js";import*as Po from"./components/table/gator/table.gator.js";import*as Bo from"./components/table/gator/table-pagination/table-pagination.gator.js";import*as vo from"./components/table/gator/table-controls/table-controls.gator.js";export{o as NgcAccordion,t as NgcAccordionGroup,r as NgcAlert,a as NgcAlertSubtitle,e as NgcAlertTitle,p as NgcAvatar,n as NgcBadge,s as NgcBanner,m as NgcBoolean,g as NgcBreadcrumbs,c as NgcButton,x as NgcButtonCard,u as NgcButtonGroup,d as NgcCard,f as NgcCardContent,N as NgcCardFooter,l as NgcCardHeader,b as NgcCheckbox,C as NgcCheckboxGroup,T as NgcChip,k as NgcDisplayCard,h as NgcDivider,I as NgcFab,P as NgcGuidedNav,B as NgcHeadlineCard,S as NgcHelpText,z as NgcIcon,E as NgcIconButton,J as NgcImageCard,v as NgcInputCurrency,G as NgcInputDate,A as NgcInputDropdown,M as NgcInputFile,R as NgcInputFileUploadedPreview,L as NgcInputLabel,F as NgcInputMasked,H as NgcInputPercent,y as NgcInputPhone,U as NgcInputSearch,D as NgcInputText,w as NgcInputTextarea,j as NgcInputTime,K as NgcList,O as NgcListItem,Q as NgcLoadingSpinner,W as NgcMenu,Z as NgcMenuItem,oo as NgcModal,to as NgcPageHeader,ro as NgcPanel,ao as NgcPopover,eo as NgcProgressBar,po as NgcProgressRing,_o as NgcRadio,no as NgcRadioGroup,so as NgcSelectionBox,mo as NgcSelectionBoxGroup,go as NgcSkeletonLoader,io as NgcSkipLink,xo as NgcSwitch,lo as NgcTab,Po as NgcTable,vo as NgcTableControls,Bo as NgcTablePagination,uo as NgcTabs,fo as NgcTextDetail,No as NgcTextLink,bo as NgcTimePicker,Co as NgcToast,To as NgcToastContainer,ko as NgcToaster,ho as NgcTooltip};
@@ -1,4 +1,4 @@
1
- import{Plugin as f,Command as v}from"../../../../../@ckeditor_ckeditor5-core@46.1.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{logWarning as y,CKEditorError as g,first as x}from"../../../../../@ckeditor_ckeditor5-utils@46.1.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{ButtonView as T,createDropdown as B,addToolbarToDropdown as E,MenuBarMenuView as D,MenuBarMenuListView as k,MenuBarMenuListItemView as N,MenuBarMenuListItemButtonView as _}from"../../../../../@ckeditor_ckeditor5-ui@46.1.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{IconAlignLeft as I,IconAlignRight as V,IconAlignCenter as M,IconAlignJustify as O}from"../../../../../@ckeditor_ckeditor5-icons@46.1.0/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";/**
1
+ import{Plugin as f,Command as v}from"../../../../../@ckeditor_ckeditor5-core@46.1.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{logWarning as y,CKEditorError as g,first as x}from"../../../../../@ckeditor_ckeditor5-utils@46.1.1/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{ButtonView as T,createDropdown as B,addToolbarToDropdown as E,MenuBarMenuView as D,MenuBarMenuListView as k,MenuBarMenuListItemView as N,MenuBarMenuListItemButtonView as _}from"../../../../../@ckeditor_ckeditor5-ui@46.1.1/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{IconAlignLeft as I,IconAlignRight as V,IconAlignCenter as M,IconAlignJustify as O}from"../../../../../@ckeditor_ckeditor5-icons@46.1.1/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";/**
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */const b=["left","right","center","justify"];function p(i){return b.includes(i)}function A(i,e){return e.contentLanguageDirection=="rtl"?i==="right":i==="left"}function w(i){const e=i.map(t=>{let o;return typeof t=="string"?o={name:t}:o=t,o}).filter(t=>{const o=b.includes(t.name);return o||y("alignment-config-name-not-recognized",{option:t}),o}),n=e.filter(t=>!!t.className).length;if(n&&n<e.length)throw new g("alignment-config-classnames-are-missing",{configuredOptions:i});return e.forEach((t,o,a)=>{const s=a.slice(o+1);if(s.some(r=>r.name==t.name))throw new g("alignment-config-name-already-defined",{option:t,configuredOptions:i});if(t.className&&s.some(l=>l.className==t.className))throw new g("alignment-config-classname-already-defined",{option:t,configuredOptions:i})}),e}const h="alignment";class L extends v{refresh(){const n=this.editor.locale,t=x(this.editor.model.document.selection.getSelectedBlocks());this.isEnabled=!!t&&this._canBeAligned(t),this.isEnabled&&t.hasAttribute("alignment")?this.value=t.getAttribute("alignment"):this.value=n.contentLanguageDirection==="rtl"?"right":"left"}execute(e={}){const n=this.editor,t=n.locale,o=n.model,a=o.document,s=e.value;o.change(c=>{const r=Array.from(a.selection.getSelectedBlocks()).filter(d=>this._canBeAligned(d)),l=r[0].getAttribute("alignment");A(s,t)||l===s||!s?C(r,c):P(r,c,s)})}_canBeAligned(e){return this.editor.model.schema.checkAttribute(e,h)}}function C(i,e){for(const n of i)e.removeAttribute(h,n)}function P(i,e,n){for(const t of i)e.setAttribute(h,n,t)}class S extends f{static get pluginName(){return"AlignmentEditing"}static get isOfficialPlugin(){return!0}constructor(e){super(e),e.config.define("alignment",{options:b.map(n=>({name:n}))})}init(){const e=this.editor,n=e.locale,t=e.model.schema,a=w(e.config.get("alignment.options")).filter(l=>p(l.name)&&!A(l.name,n)),s=a.some(l=>!!l.className);t.extend("$block",{allowAttributes:"alignment"}),e.model.schema.setAttributeProperties("alignment",{isFormatting:!0}),s?e.conversion.attributeToAttribute(j(a)):e.conversion.for("downcast").attributeToAttribute(z(a));const c=F(a);for(const l of c)e.conversion.for("upcast").attributeToAttribute(l);const r=U(a);for(const l of r)e.conversion.for("upcast").attributeToAttribute(l);e.commands.add("alignment",new L(e))}}function z(i){const e={};for(const{name:t}of i)e[t]={key:"style",value:{"text-align":t}};return{model:{key:"alignment",values:i.map(t=>t.name)},view:e}}function F(i){const e=[];for(const{name:n}of i)e.push({view:{key:"style",value:{"text-align":n}},model:{key:"alignment",value:n}});return e}function U(i){const e=[];for(const{name:n}of i)e.push({view:{key:"align",value:n},model:{key:"alignment",value:n}});return e}function j(i){const e={};for(const t of i)e[t.name]={key:"class",value:t.className};return{model:{key:"alignment",values:i.map(t=>t.name)},view:e}}const u=new Map([["left",I],["right",V],["center",M],["justify",O]]);class J extends f{get localizedOptionTitles(){const e=this.editor.t;return{left:e("Align left"),right:e("Align right"),center:e("Align center"),justify:e("Justify")}}static get pluginName(){return"AlignmentUI"}static get isOfficialPlugin(){return!0}init(){const e=this.editor,n=w(e.config.get("alignment.options"));n.map(t=>t.name).filter(p).forEach(t=>this._addButton(t)),this._addToolbarDropdown(n),this._addMenuBarMenu(n)}_addButton(e){this.editor.ui.componentFactory.add(`alignment:${e}`,t=>this._createButton(t,e))}_createButton(e,n,t={}){const o=this.editor,a=o.commands.get("alignment"),s=new T(e);return s.set({label:this.localizedOptionTitles[n],icon:u.get(n),tooltip:!0,isToggleable:!0,...t}),s.bind("isEnabled").to(a),s.bind("isOn").to(a,"value",c=>c===n),this.listenTo(s,"execute",()=>{o.execute("alignment",{value:n}),o.editing.view.focus()}),s}_addToolbarDropdown(e){const n=this.editor;n.ui.componentFactory.add("alignment",o=>{const a=B(o),s=o.uiLanguageDirection==="rtl"?"w":"e",c=o.t;E(a,()=>e.map(m=>this._createButton(o,m.name,{tooltipPosition:s})),{enableActiveItemFocusOnDropdownOpen:!0,isVertical:!0,ariaLabel:c("Text alignment toolbar")}),a.buttonView.set({label:c("Text alignment"),tooltip:!0}),a.extendTemplate({attributes:{class:"ck-alignment-dropdown"}});const r=o.contentLanguageDirection==="rtl"?u.get("right"):u.get("left"),l=n.commands.get("alignment");return a.buttonView.bind("icon").to(l,"value",m=>u.get(m)||r),a.bind("isEnabled").to(l,"isEnabled"),this.listenTo(a,"execute",()=>{n.editing.view.focus()}),a})}_addMenuBarMenu(e){const n=this.editor;n.ui.componentFactory.add("menuBar:alignment",t=>{const o=n.commands.get("alignment"),a=t.t,s=new D(t),c=new k(t);s.bind("isEnabled").to(o),c.set({ariaLabel:a("Text alignment"),role:"menu"}),s.buttonView.set({label:a("Text alignment")});for(const r of e){const l=new N(t,s),m=new _(t);m.delegate("execute").to(s),m.set({label:this.localizedOptionTitles[r.name],icon:u.get(r.name),role:"menuitemcheckbox",isToggleable:!0}),m.on("execute",()=>{n.execute("alignment",{value:r.name}),n.editing.view.focus()}),m.bind("isOn").to(o,"value",d=>d===r.name),m.bind("isEnabled").to(o,"isEnabled"),l.children.add(m),c.items.add(l)}return s.panelView.children.add(c),s})}}class K extends f{static get requires(){return[S,J]}static get pluginName(){return"Alignment"}static get isOfficialPlugin(){return!0}}export{K as Alignment,L as AlignmentCommand,S as AlignmentEditing,J as AlignmentUI,b as _ALIGNMENT_SUPPORTED_OPTIONS,p as _isAlignmentSupported,A as _isDefaultAlignment,w as _normalizeAlignmentOptions};
@@ -1,4 +1,4 @@
1
- import{Plugin as y}from"../../../../../@ckeditor_ckeditor5-core@46.1.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{Delete as P}from"../../../../../@ckeditor_ckeditor5-typing@46.1.0/node_modules/@ckeditor/ckeditor5-typing/dist/index.js";import{ModelLiveRange as B,ModelSchemaContext as S}from"../../../../../@ckeditor_ckeditor5-engine@46.1.0/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{first as q}from"../../../../../@ckeditor_ckeditor5-utils@46.1.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";/**
1
+ import{Plugin as y}from"../../../../../@ckeditor_ckeditor5-core@46.1.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{Delete as P}from"../../../../../@ckeditor_ckeditor5-typing@46.1.1/node_modules/@ckeditor/ckeditor5-typing/dist/index.js";import{ModelLiveRange as B,ModelSchemaContext as S}from"../../../../../@ckeditor_ckeditor5-engine@46.1.1/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{first as q}from"../../../../../@ckeditor_ckeditor5-utils@46.1.1/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";/**
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */function m(o,t,e,s){let a,n=null;typeof s=="function"?a=s:(n=o.commands.get(s),a=()=>{o.execute(s)}),o.model.document.on("change:data",(g,l)=>{if(n&&!n.isEnabled||!t.isEnabled)return;const r=q(o.model.document.selection.getRanges());if(!r.isCollapsed||l.isUndo||!l.isLocal)return;const h=Array.from(o.model.document.differ.getChanges()),c=h[0];if(h.length!=1||c.type!=="insert"||c.name!="$text"||c.length!=1)return;const i=c.position.parent;if(i.is("element","codeBlock")||i.is("element","listItem")&&typeof s!="function"&&!["numberedList","bulletedList","todoList"].includes(s)||n&&n.value===!0)return;const u=i.getChild(0),A=o.model.createRangeOn(u);if(!A.containsRange(r)&&!r.end.isEqual(A.end))return;const p=e.exec(u.data.substr(0,r.end.offset));p&&o.model.enqueueChange(d=>{const f=o.model.document.selection,L=d.createPositionAt(i,0),$=d.createPositionAt(i,p[0].length),k=new B(L,$);if(a({match:p})!==!1){const x=Array.from(f.getAttributes());d.remove(k);const C=f.getFirstRange(),v=d.createRangeIn(i);i.isEmpty&&!v.isEqual(C)&&!v.containsRange(C,!0)&&d.remove(i),F(d,f,x)}k.detach(),o.model.enqueueChange(()=>{o.plugins.get("Delete").requestUndoOnBackspace()})})})}function F(o,t,e){const s=o.model.schema,a=t.getFirstPosition();let n=new S(a);s.checkChild(n,"$text")&&(n=n.push("$text"));for(const[g,l]of e)s.checkAttribute(n,g)&&o.setSelectionAttribute(g,l)}/**
@@ -1,4 +1,4 @@
1
- import{Plugin as a,PendingActions as n}from"../../../../../@ckeditor_ckeditor5-core@46.1.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{DomEmitterMixin as o}from"../../../../../@ckeditor_ckeditor5-utils@46.1.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{debounce as r}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/function/debounce.js";/**
1
+ import{Plugin as a,PendingActions as n}from"../../../../../@ckeditor_ckeditor5-core@46.1.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{DomEmitterMixin as o}from"../../../../../@ckeditor_ckeditor5-utils@46.1.1/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{debounce as r}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/function/debounce.js";/**
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */class _ extends a{adapter;_debouncedSave;_lastDocumentVersion;_savePromise;_domEmitter;_config;_pendingActions;_makeImmediateSave;_action=null;static get pluginName(){return"Autosave"}static get isOfficialPlugin(){return!0}static get requires(){return[n]}constructor(t){super(t);const e=t.config.get("autosave")||{},i=e.waitingTime||1e3;this.set("state","synchronized"),this._debouncedSave=r(this._save.bind(this),i),this._lastDocumentVersion=t.model.document.version,this._savePromise=null,this._domEmitter=new(o()),this._config=e,this._pendingActions=t.plugins.get(n),this._makeImmediateSave=!1}init(){const t=this.editor,e=t.model.document;this.listenTo(t,"ready",()=>{this.listenTo(e,"change:data",(i,s)=>{this._saveCallbacks.length&&s.isLocal&&(this.state==="synchronized"&&(this.state="waiting",this._setPendingAction()),this.state==="waiting"&&this._debouncedSave())})}),this.listenTo(t,"destroy",()=>this._flush(),{priority:"highest"});/* istanbul ignore next -- @preserve */this._domEmitter.listenTo(window,"beforeunload",(i,s)=>{this._pendingActions.hasAny&&(s.returnValue=this._pendingActions.first.message)})}destroy(){this._domEmitter.stopListening(),super.destroy()}save(){return this._debouncedSave.cancel(),this._save()}_flush(){this._debouncedSave.flush()}_save(){return this._savePromise?(this._makeImmediateSave=this.editor.model.document.version>this._lastDocumentVersion,this._savePromise):(this._setPendingAction(),this.state="saving",this._lastDocumentVersion=this.editor.model.document.version,this._savePromise=Promise.resolve().then(()=>Promise.all(this._saveCallbacks.map(t=>t(this.editor)))).finally(()=>{this._savePromise=null}).then(()=>{if(this._makeImmediateSave)return this._makeImmediateSave=!1,this._save();this.editor.model.document.version>this._lastDocumentVersion?(this.state="waiting",this._debouncedSave()):(this.state="synchronized",this._pendingActions.remove(this._action),this._action=null)}).catch(t=>{throw this.state="error",this.state="saving",this._debouncedSave(),t}),this._savePromise)}_setPendingAction(){const t=this.editor.t;this._action||(this._action=this._pendingActions.add(t("Saving changes")))}get _saveCallbacks(){const t=[];return this.adapter&&this.adapter.save&&t.push(this.adapter.save),this._config.save&&t.push(this._config.save),t}}export{_ as Autosave};
@@ -1,4 +1,4 @@
1
- import{Plugin as r,Command as P}from"../../../../../@ckeditor_ckeditor5-core@46.1.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{IconBold as N,IconCode as U,IconItalic as w,IconStrikethrough as F,IconSubscript as R,IconSuperscript as v,IconUnderline as L}from"../../../../../@ckeditor_ckeditor5-icons@46.1.0/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import{ButtonView as l,MenuBarMenuListItemButtonView as a}from"../../../../../@ckeditor_ckeditor5-ui@46.1.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{TwoStepCaretMovement as O,inlineHighlight as K}from"../../../../../@ckeditor_ckeditor5-typing@46.1.0/node_modules/@ckeditor/ckeditor5-typing/dist/index.js";/**
1
+ import{Plugin as r,Command as P}from"../../../../../@ckeditor_ckeditor5-core@46.1.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{IconBold as N,IconCode as U,IconItalic as w,IconStrikethrough as F,IconSubscript as R,IconSuperscript as v,IconUnderline as L}from"../../../../../@ckeditor_ckeditor5-icons@46.1.1/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import{ButtonView as l,MenuBarMenuListItemButtonView as a}from"../../../../../@ckeditor_ckeditor5-ui@46.1.1/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{TwoStepCaretMovement as O,inlineHighlight as K}from"../../../../../@ckeditor_ckeditor5-typing@46.1.1/node_modules/@ckeditor/ckeditor5-typing/dist/index.js";/**
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */class d extends P{attributeKey;constructor(t,e){super(t),this.attributeKey=e}refresh(){const t=this.editor.model,e=t.document;this.value=this._getValueFromFirstAllowedNode(),this.isEnabled=t.schema.checkAttributeInSelection(e.selection,this.attributeKey)}execute(t={}){const e=this.editor.model,o=e.document.selection,c=t.forceValue===void 0?!this.value:t.forceValue;e.change(m=>{if(o.isCollapsed)c?m.setSelectionAttribute(this.attributeKey,!0):m.removeSelectionAttribute(this.attributeKey);else{const I=e.schema.getValidRanges(o.getRanges(),this.attributeKey);for(const n of I)c?m.setAttribute(this.attributeKey,c,n):m.removeAttribute(this.attributeKey,n)}})}_getValueFromFirstAllowedNode(){const t=this.editor.model,e=t.schema,i=t.document.selection;if(i.isCollapsed)return i.hasAttribute(this.attributeKey);for(const o of i.getRanges())for(const c of o.getItems())if(e.checkAttribute(c,this.attributeKey))return c.hasAttribute(this.attributeKey);return!1}}const p="bold";class $ extends r{static get pluginName(){return"BoldEditing"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=this.editor.t;t.model.schema.extend("$text",{allowAttributes:p}),t.model.schema.setAttributeProperties(p,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:p,view:"strong",upcastAlso:["b",i=>{const o=i.getStyle("font-weight");return o&&(o=="bold"||Number(o)>=600)?{name:!0,styles:["font-weight"]}:null}]}),t.commands.add(p,new d(t,p)),t.keystrokes.set("CTRL+B",p),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Bold text"),keystroke:"CTRL+B"}]})}}function g({editor:s,commandName:t,plugin:e,icon:i,label:o,keystroke:c}){return m=>{const I=s.commands.get(t),n=new m(s.locale);return n.set({label:o,icon:i,keystroke:c,isToggleable:!0}),n.bind("isEnabled").to(I,"isEnabled"),n.bind("isOn").to(I,"value"),n instanceof a?n.set({role:"menuitemcheckbox"}):n.set({tooltip:!0}),e.listenTo(n,"execute",()=>{s.execute(t),s.editing.view.focus()}),n}}const x="bold";class H extends r{static get pluginName(){return"BoldUI"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=t.locale.t,i=g({editor:t,commandName:x,plugin:this,icon:N,label:e("Bold"),keystroke:"CTRL+B"});t.ui.componentFactory.add(x,()=>i(l)),t.ui.componentFactory.add("menuBar:"+x,()=>i(a))}}class st extends r{static get requires(){return[$,H]}static get pluginName(){return"Bold"}static get isOfficialPlugin(){return!0}}const u="code",q="ck-code_selected";class V extends r{static get pluginName(){return"CodeEditing"}static get isOfficialPlugin(){return!0}static get requires(){return[O]}init(){const t=this.editor,e=this.editor.t;t.model.schema.extend("$text",{allowAttributes:u}),t.model.schema.setAttributeProperties(u,{isFormatting:!0,copyOnEnter:!1}),t.conversion.attributeToElement({model:u,view:"code"}),t.commands.add(u,new d(t,u)),t.plugins.get(O).registerAttribute(u),K(t,u,"code",q),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Move out of an inline code style"),keystroke:[["arrowleft","arrowleft"],["arrowright","arrowright"]]}]})}}const S="code";class D extends r{static get pluginName(){return"CodeUI"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=t.locale.t,i=g({editor:t,commandName:S,plugin:this,icon:U,label:e("Code")});t.ui.componentFactory.add(S,()=>i(l)),t.ui.componentFactory.add("menuBar:"+S,()=>i(a))}}class rt extends r{static get requires(){return[V,D]}static get pluginName(){return"Code"}static get isOfficialPlugin(){return!0}}const h="italic";class _ extends r{static get pluginName(){return"ItalicEditing"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=this.editor.t;t.model.schema.extend("$text",{allowAttributes:h}),t.model.schema.setAttributeProperties(h,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:h,view:"i",upcastAlso:["em",{styles:{"font-style":"italic"}}]}),t.commands.add(h,new d(t,h)),t.keystrokes.set("CTRL+I",h),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Italic text"),keystroke:"CTRL+I"}]})}}const E="italic";class G extends r{static get pluginName(){return"ItalicUI"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=t.locale.t,i=g({editor:t,commandName:E,plugin:this,icon:w,keystroke:"CTRL+I",label:e("Italic")});t.ui.componentFactory.add(E,()=>i(l)),t.ui.componentFactory.add("menuBar:"+E,()=>i(a))}}class nt extends r{static get requires(){return[_,G]}static get pluginName(){return"Italic"}static get isOfficialPlugin(){return!0}}const b="strikethrough";class M extends r{static get pluginName(){return"StrikethroughEditing"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=this.editor.t;t.model.schema.extend("$text",{allowAttributes:b}),t.model.schema.setAttributeProperties(b,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:b,view:"s",upcastAlso:["del","strike",{styles:{"text-decoration":"line-through"}}]}),t.commands.add(b,new d(t,b)),t.keystrokes.set("CTRL+SHIFT+X","strikethrough"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Strikethrough text"),keystroke:"CTRL+SHIFT+X"}]})}}const B="strikethrough";class X extends r{static get pluginName(){return"StrikethroughUI"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=t.locale.t,i=g({editor:t,commandName:B,plugin:this,icon:F,keystroke:"CTRL+SHIFT+X",label:e("Strikethrough")});t.ui.componentFactory.add(B,()=>i(l)),t.ui.componentFactory.add("menuBar:"+B,()=>i(a))}}class ot extends r{static get requires(){return[M,X]}static get pluginName(){return"Strikethrough"}static get isOfficialPlugin(){return!0}}const f="subscript";class W extends r{static get pluginName(){return"SubscriptEditing"}static get isOfficialPlugin(){return!0}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:f}),t.model.schema.setAttributeProperties(f,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:f,view:"sub",upcastAlso:[{styles:{"vertical-align":"sub"}}]}),t.commands.add(f,new d(t,f))}}const C="subscript";class j extends r{static get pluginName(){return"SubscriptUI"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=t.locale.t,i=g({editor:t,commandName:C,plugin:this,icon:R,label:e("Subscript")});t.ui.componentFactory.add(C,()=>i(l)),t.ui.componentFactory.add("menuBar:"+C,()=>i(a))}}class ct extends r{static get requires(){return[W,j]}static get pluginName(){return"Subscript"}static get isOfficialPlugin(){return!0}}const y="superscript";class z extends r{static get pluginName(){return"SuperscriptEditing"}static get isOfficialPlugin(){return!0}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:y}),t.model.schema.setAttributeProperties(y,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:y,view:"sup",upcastAlso:[{styles:{"vertical-align":"super"}}]}),t.commands.add(y,new d(t,y))}}const T="superscript";class J extends r{static get pluginName(){return"SuperscriptUI"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=t.locale.t,i=g({editor:t,commandName:T,plugin:this,icon:v,label:e("Superscript")});t.ui.componentFactory.add(T,()=>i(l)),t.ui.componentFactory.add("menuBar:"+T,()=>i(a))}}class at extends r{static get requires(){return[z,J]}static get pluginName(){return"Superscript"}static get isOfficialPlugin(){return!0}}const k="underline";class Q extends r{static get pluginName(){return"UnderlineEditing"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=this.editor.t;t.model.schema.extend("$text",{allowAttributes:k}),t.model.schema.setAttributeProperties(k,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:k,view:"u",upcastAlso:{styles:{"text-decoration":"underline"}}}),t.commands.add(k,new d(t,k)),t.keystrokes.set("CTRL+U","underline"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Underline text"),keystroke:"CTRL+U"}]})}}const A="underline";class Y extends r{static get pluginName(){return"UnderlineUI"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=t.locale.t,i=g({editor:t,commandName:A,plugin:this,icon:L,label:e("Underline"),keystroke:"CTRL+U"});t.ui.componentFactory.add(A,()=>i(l)),t.ui.componentFactory.add("menuBar:"+A,()=>i(a))}}class ut extends r{static get requires(){return[Q,Y]}static get pluginName(){return"Underline"}static get isOfficialPlugin(){return!0}}export{d as AttributeCommand,st as Bold,$ as BoldEditing,H as BoldUI,rt as Code,V as CodeEditing,D as CodeUI,nt as Italic,_ as ItalicEditing,G as ItalicUI,ot as Strikethrough,M as StrikethroughEditing,X as StrikethroughUI,ct as Subscript,W as SubscriptEditing,j as SubscriptUI,at as Superscript,z as SuperscriptEditing,J as SuperscriptUI,ut as Underline,Q as UnderlineEditing,Y as UnderlineUI,g as _getBasicStylesButtonCreator};
@@ -1,4 +1,4 @@
1
- import{Plugin as m,Command as b}from"../../../../../@ckeditor_ckeditor5-core@46.1.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{Enter as Q}from"../../../../../@ckeditor_ckeditor5-enter@46.1.0/node_modules/@ckeditor/ckeditor5-enter/dist/index.js";import{Delete as g}from"../../../../../@ckeditor_ckeditor5-typing@46.1.0/node_modules/@ckeditor/ckeditor5-typing/dist/index.js";import{first as f}from"../../../../../@ckeditor_ckeditor5-utils@46.1.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{IconQuote as B}from"../../../../../@ckeditor_ckeditor5-icons@46.1.0/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import{ButtonView as v,MenuBarMenuListItemButtonView as E}from"../../../../../@ckeditor_ckeditor5-ui@46.1.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";/**
1
+ import{Plugin as m,Command as b}from"../../../../../@ckeditor_ckeditor5-core@46.1.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{Enter as Q}from"../../../../../@ckeditor_ckeditor5-enter@46.1.1/node_modules/@ckeditor/ckeditor5-enter/dist/index.js";import{Delete as g}from"../../../../../@ckeditor_ckeditor5-typing@46.1.1/node_modules/@ckeditor/ckeditor5-typing/dist/index.js";import{first as f}from"../../../../../@ckeditor_ckeditor5-utils@46.1.1/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{IconQuote as B}from"../../../../../@ckeditor_ckeditor5-icons@46.1.1/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import{ButtonView as v,MenuBarMenuListItemButtonView as E}from"../../../../../@ckeditor_ckeditor5-ui@46.1.1/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";/**
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */class x extends b{refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(e={}){const t=this.editor.model,o=t.schema,i=t.document.selection,n=Array.from(i.getSelectedBlocks()),s=e.forceValue===void 0?!this.value:e.forceValue;t.change(u=>{if(!s)this._removeQuote(u,n.filter(d));else{const r=n.filter(c=>d(c)||k(o,c));this._applyQuote(u,r)}})}_getValue(){const e=this.editor.model.document.selection,t=f(e.getSelectedBlocks());return!!(t&&d(t))}_checkEnabled(){if(this.value)return!0;const e=this.editor.model.document.selection,t=this.editor.model.schema,o=f(e.getSelectedBlocks());return o?k(t,o):!1}_removeQuote(e,t){h(e,t).reverse().forEach(o=>{if(o.start.isAtStart&&o.end.isAtEnd){e.unwrap(o.start.parent);return}if(o.start.isAtStart){const n=e.createPositionBefore(o.start.parent);e.move(o,n);return}o.end.isAtEnd||e.split(o.end);const i=e.createPositionAfter(o.end.parent);e.move(o,i)})}_applyQuote(e,t){const o=[];h(e,t).reverse().forEach(i=>{let n=d(i.start);n||(n=e.createElement("blockQuote"),e.wrap(i,n)),o.push(n)}),o.reverse().reduce((i,n)=>i.nextSibling==n?(e.merge(e.createPositionAfter(i)),i):n)}}function d(l){return l.parent.name=="blockQuote"?l.parent:null}function h(l,e){let t,o=0;const i=[];for(;o<e.length;){const n=e[o],s=e[o+1];t||(t=l.createPositionBefore(n)),(!s||n.nextSibling!=s)&&(i.push(l.createRange(t,l.createPositionAfter(n))),t=null),o++}return i}function k(l,e){const t=l.checkChild(e.parent,"blockQuote"),o=l.checkChild(["$root","blockQuote"],e);return t&&o}class P extends m{static get pluginName(){return"BlockQuoteEditing"}static get isOfficialPlugin(){return!0}static get requires(){return[Q,g]}init(){const e=this.editor,t=e.model.schema;e.commands.add("blockQuote",new x(e)),t.register("blockQuote",{inheritAllFrom:"$container"}),e.conversion.elementToElement({model:"blockQuote",view:"blockquote"}),e.model.document.registerPostFixer(s=>{const u=e.model.document.differ.getChanges();for(const r of u)if(r.type=="insert"){const c=r.position.nodeAfter;if(!c)continue;if(c.is("element","blockQuote")&&c.isEmpty)return s.remove(c),!0;if(c.is("element","blockQuote")&&!t.checkChild(r.position,c))return s.unwrap(c),!0;if(c.is("element")){const p=s.createRangeIn(c);for(const a of p.getItems())if(a.is("element","blockQuote")&&!t.checkChild(s.createPositionBefore(a),a))return s.unwrap(a),!0}}else if(r.type=="remove"){const c=r.position.parent;if(c.is("element","blockQuote")&&c.isEmpty)return s.remove(c),!0}return!1});const o=this.editor.editing.view.document,i=e.model.document.selection,n=e.commands.get("blockQuote");this.listenTo(o,"enter",(s,u)=>{if(!i.isCollapsed||!n.value)return;i.getLastPosition().parent.isEmpty&&(e.execute("blockQuote"),e.editing.view.scrollToTheSelection(),u.preventDefault(),s.stop())},{context:"blockquote"}),this.listenTo(o,"delete",(s,u)=>{if(u.direction!="backward"||!i.isCollapsed||!n.value)return;const r=i.getLastPosition().parent;r.isEmpty&&!r.previousSibling&&(e.execute("blockQuote"),e.editing.view.scrollToTheSelection(),u.preventDefault(),s.stop())},{context:"blockquote"})}}class A extends m{static get pluginName(){return"BlockQuoteUI"}static get isOfficialPlugin(){return!0}init(){const e=this.editor;e.ui.componentFactory.add("blockQuote",()=>{const t=this._createButton(v);return t.set({tooltip:!0}),t}),e.ui.componentFactory.add("menuBar:blockQuote",()=>{const t=this._createButton(E);return t.set({role:"menuitemcheckbox"}),t})}_createButton(e){const t=this.editor,o=t.locale,i=t.commands.get("blockQuote"),n=new e(t.locale),s=o.t;return n.set({label:s("Block quote"),icon:B,isToggleable:!0}),n.bind("isEnabled").to(i,"isEnabled"),n.bind("isOn").to(i,"value"),this.listenTo(n,"execute",()=>{t.execute("blockQuote"),t.editing.view.focus()}),n}}class V extends m{static get requires(){return[P,A]}static get pluginName(){return"BlockQuote"}static get isOfficialPlugin(){return!0}}export{V as BlockQuote,x as BlockQuoteCommand,P as BlockQuoteEditing,A as BlockQuoteUI};
@@ -1,4 +1,4 @@
1
- import{Plugin as b}from"../../../../../@ckeditor_ckeditor5-core@46.1.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{EventInfo as z,uid as q,delay as j,DomEmitterMixin as A,env as f,global as u,createElement as I,Rect as _,getRangeFromMouseEvent as ee,ResizeObserver as te,toUnit as re}from"../../../../../@ckeditor_ckeditor5-utils@46.1.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{PointerObserver as ne,ModelLiveRange as T,DomEventObserver as ie,ViewDataTransfer as oe,ModelRange as se}from"../../../../../@ckeditor_ckeditor5-engine@46.1.0/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{Widget as ae,isWidget as k}from"../../../../../@ckeditor_ckeditor5-widget@46.1.0/node_modules/@ckeditor/ckeditor5-widget/dist/index.js";import{View as le}from"../../../../../@ckeditor_ckeditor5-ui@46.1.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{mapValues as ce}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/object/mapValues.js";import{throttle as V}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/function/throttle.js";/**
1
+ import{Plugin as b}from"../../../../../@ckeditor_ckeditor5-core@46.1.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{EventInfo as z,uid as q,delay as j,DomEmitterMixin as A,env as f,global as u,createElement as I,Rect as _,getRangeFromMouseEvent as ee,ResizeObserver as te,toUnit as re}from"../../../../../@ckeditor_ckeditor5-utils@46.1.1/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{PointerObserver as ne,ModelLiveRange as T,DomEventObserver as ie,ViewDataTransfer as oe,ModelRange as se}from"../../../../../@ckeditor_ckeditor5-engine@46.1.1/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{Widget as ae,isWidget as k}from"../../../../../@ckeditor_ckeditor5-widget@46.1.1/node_modules/@ckeditor/ckeditor5-widget/dist/index.js";import{View as le}from"../../../../../@ckeditor_ckeditor5-ui@46.1.1/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{mapValues as ce}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/object/mapValues.js";import{throttle as V}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/function/throttle.js";/**
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */class v extends ie{domEventType=["paste","copy","cut","drop","dragover","dragstart","dragend","dragenter","dragleave"];constructor(e){super(e);const t=this.document;this.listenTo(t,"paste",r("clipboardInput"),{priority:"low"}),this.listenTo(t,"drop",r("clipboardInput"),{priority:"low"}),this.listenTo(t,"dragover",r("dragging"),{priority:"low"});function r(i){return(s,o)=>{o.preventDefault();const n=o.dropRange?[o.dropRange]:null,a=new z(t,i);t.fire(a,{dataTransfer:o.dataTransfer,method:s.name,targetRanges:n,target:o.target,domEvent:o.domEvent}),a.stop.called&&o.stopPropagation()}}}onDomEvent(e){const t="clipboardData"in e?e.clipboardData:e.dataTransfer,r=e.type=="drop"||e.type=="paste",i={dataTransfer:new oe(t,{cacheFiles:r})};if(e.type=="drop"||e.type=="dragover"){const s=ee(e);i.dropRange=s&&this.view.domConverter.domRangeToView(s)}this.fire(e.type,e,i)}}/**
@@ -1,4 +1,4 @@
1
- import{ContextPlugin as f}from"../../../../../@ckeditor_ckeditor5-core@46.1.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{CKEditorError as i,ObservableMixin as p,logWarning as g,EmitterMixin as _}from"../../../../../@ckeditor_ckeditor5-utils@46.1.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";/**
1
+ import{ContextPlugin as f}from"../../../../../@ckeditor_ckeditor5-core@46.1.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{CKEditorError as i,ObservableMixin as p,logWarning as g,EmitterMixin as _}from"../../../../../@ckeditor_ckeditor5-utils@46.1.1/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";/**
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */const T={autoRefresh:!0},d=36e5,k=5e3;class l extends p(){_refresh;_options;_tokenRefreshTimeout;_isDestroyed=!1;constructor(e,t={}){if(super(),!e)throw new i("token-missing-token-url",this);t.initValue&&this._validateTokenValue(t.initValue),this.set("value",t.initValue),typeof e=="function"?this._refresh=e:this._refresh=()=>w(e),this._options={...T,...t}}init(){return new Promise((e,t)=>{if(!this.value){this.refreshToken().then(e).catch(t);return}this._options.autoRefresh&&this._registerRefreshTokenTimeout(),e(this)})}refreshToken(){const e=this._options.autoRefresh;return this._refresh().then(t=>(this._validateTokenValue(t),this.set("value",t),e&&this._registerRefreshTokenTimeout(),this)).catch(t=>{throw g("token-refresh-failed",{autoRefresh:e}),e&&this._registerRefreshTokenTimeout(k),t})}destroy(){this._isDestroyed=!0,clearTimeout(this._tokenRefreshTimeout)}_validateTokenValue(e){const t=typeof e=="string",r=!/^".*"$/.test(e),s=t&&e.split(".").length===3;if(!(r&&s))throw new i("token-not-in-jwt-format",this)}_registerRefreshTokenTimeout(e){if(clearTimeout(this._tokenRefreshTimeout),this._isDestroyed)return;const t=e||this._getTokenRefreshTimeoutTime();this._tokenRefreshTimeout=setTimeout(()=>{this.refreshToken()},t)}_getTokenRefreshTimeoutTime(){try{const[,e]=this.value.split("."),{exp:t}=JSON.parse(atob(e));return t?(t>2147483647&&console.warn("Token expiration time exceeds 32-bit integer range. This might cause unpredictable token refresh timing. Token expiration time should always be provided in seconds.",{tokenExpireTime:t}),Math.floor((t*1e3-Date.now())/2)):d}catch{return d}}static create(e,t={}){return new l(e,t).init()}}function w(n){return new Promise((e,t)=>{const r=new XMLHttpRequest;r.open("GET",n),r.addEventListener("load",()=>{const s=r.status,o=r.response;return s<200||s>299?t(new i("token-cannot-download-new-token",null)):e(o)}),r.addEventListener("error",()=>t(new Error("Network Error"))),r.addEventListener("abort",()=>t(new Error("Abort"))),r.send()})}const h=/^data:(\S*?);base64,/;class m extends _(){file;xhr;_token;_apiAddress;constructor(e,t,r){if(super(),!e)throw new i("fileuploader-missing-file",null);if(!t)throw new i("fileuploader-missing-token",null);if(!r)throw new i("fileuploader-missing-api-address",null);this.file=R(e)?E(e):e,this._token=t,this._apiAddress=r}onProgress(e){return this.on("progress",(t,r)=>e(r)),this}onError(e){return this.once("error",(t,r)=>e(r)),this}abort(){this.xhr.abort()}send(){return this._prepareRequest(),this._attachXHRListeners(),this._sendRequest()}_prepareRequest(){const e=new XMLHttpRequest;e.open("POST",this._apiAddress),e.setRequestHeader("Authorization",this._token.value),e.responseType="json",this.xhr=e}_attachXHRListeners(){const e=this.xhr,t=r=>()=>this.fire("error",r);e.addEventListener("error",t("Network Error")),e.addEventListener("abort",t("Abort"));/* istanbul ignore else -- @preserve */e.upload&&e.upload.addEventListener("progress",r=>{r.lengthComputable&&this.fire("progress",{total:r.total,uploaded:r.loaded})}),e.addEventListener("load",()=>{const r=e.status,s=e.response;if(r<200||r>299)return this.fire("error",s.message||s.error)})}_sendRequest(){const e=new FormData,t=this.xhr;return e.append("file",this.file),new Promise((r,s)=>{t.addEventListener("load",()=>{const o=t.status,a=t.response;return o<200||o>299?a.message?s(new i("fileuploader-uploading-data-failed",this,{message:a.message})):s(a.error):r(a)}),t.addEventListener("error",()=>s(new Error("Network Error"))),t.addEventListener("abort",()=>s(new Error("Abort"))),t.send(e)})}}function E(n,e=512){try{const t=n.match(h)[1],r=atob(n.replace(h,"")),s=[];for(let o=0;o<r.length;o+=e){const a=r.slice(o,o+e),c=new Array(a.length);for(let u=0;u<a.length;u++)c[u]=a.charCodeAt(u);s.push(new Uint8Array(c))}return new Blob(s,{type:t})}catch{throw new i("fileuploader-decoding-image-data-error",null)}}function R(n){return typeof n!="string"?!1:!!n.match(h)?.length}class v{_token;_apiAddress;constructor(e,t){if(!e)throw new i("uploadgateway-missing-token",null);if(!t)throw new i("uploadgateway-missing-api-address",null);this._token=e,this._apiAddress=t}upload(e){return new m(e,this._token,this._apiAddress)}}class y extends f{static get pluginName(){return"CloudServicesCore"}static get isOfficialPlugin(){return!0}createToken(e,t){return new l(e,t)}createUploadGateway(e,t){return new v(e,t)}}class C extends f{tokenUrl;uploadUrl;webSocketUrl;bundleVersion;autoRefresh=!0;token=null;_tokens=new Map;static get pluginName(){return"CloudServices"}static get isOfficialPlugin(){return!0}static get requires(){return[y]}async init(){const t=this.context.config.get("cloudServices")||{};for(const[o,a]of Object.entries(t))this[o]=a;if(!this.tokenUrl){this.token=null;return}const s=this.context.plugins.get("CloudServicesCore").createToken(this.tokenUrl,{autoRefresh:this.autoRefresh});try{this.token=await s.init(),this._tokens.set(this.tokenUrl,this.token)}catch(o){throw s.destroy(),o}}async registerTokenUrl(e){if(this._tokens.has(e))return this.getTokenFor(e);const r=await this.context.plugins.get("CloudServicesCore").createToken(e,{autoRefresh:this.autoRefresh}).init();return this._tokens.set(e,r),r}getTokenFor(e){const t=this._tokens.get(e);if(!t)throw new i("cloudservices-token-not-registered",this);return t}destroy(){super.destroy();for(const e of this._tokens.values())e.destroy()}}export{C as CloudServices,y as CloudServicesCore,l as Token};
@@ -1,4 +1,4 @@
1
- import{Plugin as v,Command as S}from"../../../../../@ckeditor_ckeditor5-core@46.1.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{ShiftEnter as y}from"../../../../../@ckeditor_ckeditor5-enter@46.1.0/node_modules/@ckeditor/ckeditor5-enter/dist/index.js";import{UpcastWriter as O}from"../../../../../@ckeditor_ckeditor5-engine@46.1.0/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{ClipboardPipeline as N}from"../../../../../@ckeditor_ckeditor5-clipboard@46.1.0/node_modules/@ckeditor/ckeditor5-clipboard/dist/index.js";import{Collection as M,first as b}from"../../../../../@ckeditor_ckeditor5-utils@46.1.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{createDropdown as R,addListToDropdown as q,MenuBarMenuView as F,MenuBarMenuListView as $,MenuBarMenuListItemView as z,MenuBarMenuListItemButtonView as W,UIModel as U,SplitButtonView as j}from"../../../../../@ckeditor_ckeditor5-ui@46.1.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{IconCodeBlock as L}from"../../../../../@ckeditor_ckeditor5-icons@46.1.0/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";/**
1
+ import{Plugin as v,Command as S}from"../../../../../@ckeditor_ckeditor5-core@46.1.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{ShiftEnter as y}from"../../../../../@ckeditor_ckeditor5-enter@46.1.1/node_modules/@ckeditor/ckeditor5-enter/dist/index.js";import{UpcastWriter as O}from"../../../../../@ckeditor_ckeditor5-engine@46.1.1/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{ClipboardPipeline as N}from"../../../../../@ckeditor_ckeditor5-clipboard@46.1.1/node_modules/@ckeditor/ckeditor5-clipboard/dist/index.js";import{Collection as M,first as b}from"../../../../../@ckeditor_ckeditor5-utils@46.1.1/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{createDropdown as R,addListToDropdown as q,MenuBarMenuView as F,MenuBarMenuListView as $,MenuBarMenuListItemView as z,MenuBarMenuListItemButtonView as W,UIModel as U,SplitButtonView as j}from"../../../../../@ckeditor_ckeditor5-ui@46.1.1/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{IconCodeBlock as L}from"../../../../../@ckeditor_ckeditor5-icons@46.1.1/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";/**
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */function h(i){const e=i.t,n=i.config.get("codeBlock.languages");for(const o of n)o.label==="Plain text"&&(o.label=e("Plain text")),o.class===void 0&&(o.class=`language-${o.language}`);return n}function k(i,e,n){const o={};for(const c of i)if(e==="class"){const s=c[e].split(" ").shift();o[s]=c[n]}else o[c[e]]=c[n];return o}function w(i){return i.data.match(/^(\s*)/)[0]}function H(i,e){const n=i.createDocumentFragment(),o=e.split(`
@@ -1,4 +1,4 @@
1
- import{ObservableMixin as P,Collection as z,CKEditorError as l,insertToPriorityArray as $,setDataInElement as U,Config as W,parseBase64EncodedObject as j,toArray as Y,crc32 as J,releaseDate as Q,uid as A,logError as X,Locale as Z,EmitterMixin as ee,KeystrokeHandler as te,global as T,env as _}from"../../../../../@ckeditor_ckeditor5-utils@46.1.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{Model as ie,DataController as ne,StylesProcessor as se,EditingController as oe,Conversion as re}from"../../../../../@ckeditor_ckeditor5-engine@46.1.0/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{EditorWatchdog as ae,ContextWatchdog as le}from"../../../../../@ckeditor_ckeditor5-watchdog@46.1.0/node_modules/@ckeditor/ckeditor5-watchdog/dist/index.js";import{isFunction as q}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isFunction.js";import{get as ce}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/object/get.js";import{set as ue}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/object/set.js";/**
1
+ import{ObservableMixin as P,Collection as z,CKEditorError as l,insertToPriorityArray as $,setDataInElement as U,Config as W,parseBase64EncodedObject as j,toArray as Y,crc32 as J,releaseDate as Q,uid as A,logError as X,Locale as Z,EmitterMixin as ee,KeystrokeHandler as te,global as T,env as _}from"../../../../../@ckeditor_ckeditor5-utils@46.1.1/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{Model as ie,DataController as ne,StylesProcessor as se,EditingController as oe,Conversion as re}from"../../../../../@ckeditor_ckeditor5-engine@46.1.1/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{EditorWatchdog as ae,ContextWatchdog as le}from"../../../../../@ckeditor_ckeditor5-watchdog@46.1.1/node_modules/@ckeditor/ckeditor5-watchdog/dist/index.js";import{isFunction as q}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isFunction.js";import{get as ce}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/object/get.js";import{set as ue}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/object/set.js";/**
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */class Le extends P(){editor;_disableStack=new Set;constructor(e){super(),this.editor=e,this.set("isEnabled",!0)}forceDisabled(e){this._disableStack.add(e),this._disableStack.size==1&&(this.on("set:isEnabled",M,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(e){this._disableStack.delete(e),this._disableStack.size==0&&(this.off("set:isEnabled",M),this.isEnabled=!0)}destroy(){this.stopListening()}static get isContextPlugin(){return!1}static get isOfficialPlugin(){return!1}static get isPremiumPlugin(){return!1}}function M(o){o.return=!1,o.stop()}class de extends P(){editor;_isEnabledBasedOnSelection;_affectsData;_disableStack;constructor(e){super(),this.editor=e,this.set("value",void 0),this.set("isEnabled",!1),this._affectsData=!0,this._isEnabledBasedOnSelection=!0,this._disableStack=new Set,this.decorate("execute"),this.listenTo(this.editor.model.document,"change",()=>{this.refresh()}),this.listenTo(e,"change:isReadOnly",()=>{this.refresh()}),this.on("set:isEnabled",t=>{if(!this.affectsData)return;const i=e.model.document.selection,u=!(i.getFirstPosition().root.rootName=="$graveyard")&&e.model.canEditAt(i);(e.isReadOnly||this._isEnabledBasedOnSelection&&!u)&&(t.return=!1,t.stop())},{priority:"highest"}),this.on("execute",t=>{this.isEnabled||t.stop()},{priority:"high"})}get affectsData(){return this._affectsData}set affectsData(e){this._affectsData=e}refresh(){this.isEnabled=!0}forceDisabled(e){this._disableStack.add(e),this._disableStack.size==1&&(this.on("set:isEnabled",F,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(e){this._disableStack.delete(e),this._disableStack.size==0&&(this.off("set:isEnabled",F),this.refresh())}execute(...e){}destroy(){this.stopListening()}}function F(o){o.return=!1,o.stop()}class Te extends de{_childCommandsDefinitions=[];refresh(){}execute(...e){const t=this._getFirstEnabledCommand();return!!t&&t.execute(e)}registerChildCommand(e,t={}){$(this._childCommandsDefinitions,{command:e,priority:t.priority||"normal"}),e.on("change:isEnabled",()=>this._checkEnabled()),this._checkEnabled()}_checkEnabled(){this.isEnabled=!!this._getFirstEnabledCommand()}_getFirstEnabledCommand(){const e=this._childCommandsDefinitions.find(({command:t})=>t.isEnabled);return e&&e.command}}class he{_commands;constructor(){this._commands=new Map}add(e,t){this._commands.set(e,t)}get(e){return this._commands.get(e)}execute(e,...t){const i=this.get(e);if(!i)throw new l("commandcollection-command-not-found",this,{commandName:e});return i.execute(...t)}*names(){yield*this._commands.keys()}*commands(){yield*this._commands.values()}[Symbol.iterator](){return this._commands[Symbol.iterator]()}destroy(){for(const e of this.commands())e.destroy()}}class H extends ee(){_context;_plugins=new Map;_availablePlugins;_contextPlugins;constructor(e,t=[],i=[]){super(),this._context=e,this._availablePlugins=new Map;for(const n of t)n.pluginName&&this._availablePlugins.set(n.pluginName,n);this._contextPlugins=new Map;for(const[n,u]of i)this._contextPlugins.set(n,u),this._contextPlugins.set(u,n),n.pluginName&&this._availablePlugins.set(n.pluginName,n)}*[Symbol.iterator](){for(const e of this._plugins)typeof e[0]=="function"&&(yield e)}get(e){const t=this._plugins.get(e);if(!t){let i=e;throw typeof e=="function"&&(i=e.pluginName||e.name),new l("plugincollection-plugin-not-loaded",this._context,{plugin:i})}return t}has(e){return this._plugins.has(e)}init(e,t=[],i=[]){const n=this,u=this._context;w(e),g(e);const y=e.filter(s=>!v(s,t)),p=[...k(y)];C(p,i);const E=L(p);return S(E,"init").then(()=>S(E,"afterInit")).then(()=>E);function b(s){return typeof s=="function"}function x(s){return b(s)&&!!s.isContextPlugin}function v(s,c){return c.some(r=>r===s||f(s)===r||f(r)===s)}function f(s){return b(s)?s.pluginName||s.name:s}function w(s,c=new Set){s.forEach(r=>{b(r)&&(c.has(r)||(c.add(r),r.pluginName&&!n._availablePlugins.has(r.pluginName)&&n._availablePlugins.set(r.pluginName,r),r.requires&&w(r.requires,c)))})}function k(s,c=new Set){return s.map(r=>b(r)?r:n._availablePlugins.get(r)).reduce((r,a)=>c.has(a)?r:(c.add(a),a.requires&&(g(a.requires,a),k(a.requires,c).forEach(d=>r.add(d))),r.add(a)),new Set)}function g(s,c=null){s.map(r=>b(r)?r:n._availablePlugins.get(r)||r).forEach(r=>{O(r,c),D(r,c),I(r,c)})}function O(s,c){if(!b(s))throw c?new l("plugincollection-soft-required",u,{missingPlugin:s,requiredBy:f(c)}):new l("plugincollection-plugin-not-found",u,{plugin:s})}function D(s,c){if(x(c)&&!x(s))throw new l("plugincollection-context-required",u,{plugin:f(s),requiredBy:f(c)})}function I(s,c){if(c&&v(s,t))throw new l("plugincollection-required",u,{plugin:f(s),requiredBy:f(c)})}function L(s){return s.map(c=>{let r=n._contextPlugins.get(c);return r=r||new c(u),n._add(c,r),r})}function S(s,c){return s.reduce((r,a)=>!a[c]||n._contextPlugins.has(a)?r:r.then(a[c].bind(a)),Promise.resolve())}function C(s,c){for(const r of c){if(typeof r!="function")throw new l("plugincollection-replace-plugin-invalid-type",null,{pluginItem:r});const a=r.pluginName;if(!a)throw new l("plugincollection-replace-plugin-missing-name",null,{pluginItem:r});if(r.requires&&r.requires.length)throw new l("plugincollection-plugin-for-replacing-cannot-have-dependencies",null,{pluginName:a});const d=n._availablePlugins.get(a);if(!d)throw new l("plugincollection-plugin-for-replacing-not-exist",null,{pluginName:a});const m=s.indexOf(d);if(m===-1){if(n._contextPlugins.has(d))return;throw new l("plugincollection-plugin-for-replacing-not-loaded",null,{pluginName:a})}if(d.requires&&d.requires.length)throw new l("plugincollection-replaced-plugin-cannot-have-dependencies",null,{pluginName:a});s.splice(m,1,r),n._availablePlugins.set(a,r)}}}destroy(){const e=[];for(const[,t]of this)typeof t.destroy=="function"&&!this._contextPlugins.has(t)&&e.push(t.destroy());return Promise.all(e)}_add(e,t){this._plugins.set(e,t);const i=e.pluginName;if(i){if(this._plugins.has(i))throw new l("plugincollection-plugin-name-conflict",null,{pluginName:i,plugin1:this._plugins.get(i).constructor,plugin2:e});this._plugins.set(i,t)}}}class G{config;plugins;locale;t;editors;static defaultConfig;static builtinPlugins;_contextOwner=null;constructor(e){const{translations:t,...i}=e||{};this.config=new W(i,this.constructor.defaultConfig);const n=this.constructor.builtinPlugins;this.config.define("plugins",n),this.plugins=new H(this,n);const u=this.config.get("language")||{};this.locale=new Z({uiLanguage:typeof u=="string"?u:u.ui,contentLanguage:this.config.get("language.content"),translations:t}),this.t=this.locale.t,this.editors=new z}initPlugins(){const e=this.config.get("plugins")||[],t=this.config.get("substitutePlugins")||[];for(const i of e.concat(t)){if(typeof i!="function")throw new l("context-initplugins-constructor-only",null,{Plugin:i});if(i.isContextPlugin!==!0)throw new l("context-initplugins-invalid-plugin",null,{Plugin:i})}return this.plugins.init(e,[],t)}destroy(){return Promise.all(Array.from(this.editors,e=>e.destroy())).then(()=>this.plugins.destroy())}_addEditor(e,t){if(this._contextOwner)throw new l("context-addeditor-private-context");this.editors.add(e),t&&(this._contextOwner=e)}_removeEditor(e){return this.editors.has(e)&&this.editors.remove(e),this._contextOwner===e?this.destroy():Promise.resolve()}_getEditorConfig(){const e={};for(const t of this.config.names())["plugins","removePlugins","extraPlugins"].includes(t)||(e[t]=this.config.get(t));return e}static create(e){return new Promise(t=>{const i=new this(e);t(i.initPlugins().then(()=>i))})}}class fe extends P(){context;constructor(e){super(),this.context=e}destroy(){this.stopListening()}static get isContextPlugin(){return!0}static get isOfficialPlugin(){return!1}static get isPremiumPlugin(){return!1}}class ge extends te{editor;constructor(e){super(),this.editor=e}set(e,t,i={}){if(typeof t=="string"){const n=t;t=(u,y)=>{this.editor.execute(n),y()}}super.set(e,t,i)}}const N="contentEditing",B="common";class me{keystrokeInfos=new Map;_editor;constructor(e){this._editor=e;const t=e.config.get("menuBar.isVisible"),i=e.locale.t;this.addKeystrokeInfoCategory({id:N,label:i("Content editing keystrokes"),description:i("These keyboard shortcuts allow for quick access to content editing features.")});const n=[{label:i("Close contextual balloons, dropdowns, and dialogs"),keystroke:"Esc"},{label:i("Open the accessibility help dialog"),keystroke:"Alt+0"},{label:i("Move focus between form fields (inputs, buttons, etc.)"),keystroke:[["Tab"],["Shift+Tab"]]},{label:i("Move focus to the toolbar, navigate between toolbars"),keystroke:"Alt+F10",mayRequireFn:!0},{label:i("Navigate through the toolbar or menu bar"),keystroke:[["arrowup"],["arrowright"],["arrowdown"],["arrowleft"]]},{label:i("Execute the currently focused button. Executing buttons that interact with the editor content moves the focus back to the content."),keystroke:[["Enter"],["Space"]]}];t&&n.push({label:i("Move focus to the menu bar, navigate between menu bars"),keystroke:"Alt+F9",mayRequireFn:!0}),this.addKeystrokeInfoCategory({id:"navigation",label:i("User interface and content navigation keystrokes"),description:i("Use the following keystrokes for more efficient navigation in the CKEditor 5 user interface."),groups:[{id:"common",keystrokes:n}]})}addKeystrokeInfoCategory({id:e,label:t,description:i,groups:n}){this.keystrokeInfos.set(e,{id:e,label:t,description:i,groups:new Map}),this.addKeystrokeInfoGroup({categoryId:e,id:B}),n&&n.forEach(u=>{this.addKeystrokeInfoGroup({categoryId:e,...u})})}addKeystrokeInfoGroup({categoryId:e=N,id:t,label:i,keystrokes:n}){const u=this.keystrokeInfos.get(e);if(!u)throw new l("accessibility-unknown-keystroke-info-category",this._editor,{groupId:t,categoryId:e});u.groups.set(t,{id:t,label:i,keystrokes:n||[]})}addKeystrokeInfos({categoryId:e=N,groupId:t=B,keystrokes:i}){if(!this.keystrokeInfos.has(e))throw new l("accessibility-unknown-keystroke-info-category",this._editor,{categoryId:e,keystrokes:i});const n=this.keystrokeInfos.get(e);if(!n.groups.has(t))throw new l("accessibility-unknown-keystroke-info-group",this._editor,{groupId:t,categoryId:e,keystrokes:i});n.groups.get(t).keystrokes.push(...i)}}function ye(o){return{sessionId:Ee(),pageSessionId:ke(),hostname:window.location.hostname,version:globalThis.CKEDITOR_VERSION,type:pe(o),plugins:we(o.plugins),distribution:be(),env:_e(),integration:Object.create(null),menuBar:{isVisible:!!o.config.get("menuBar.isVisible")},language:{ui:o.locale.uiLanguage,content:o.locale.contentLanguage},toolbar:{main:R(o.config.get("toolbar")),block:R(o.config.get("blockToolbar")),balloon:R(o.config.get("balloonToolbar"))}}}function pe(o){return Object.getPrototypeOf(o).constructor.editorName}function we(o){return Array.from(o).filter(([e])=>!!e.pluginName).map(([e])=>{const{pluginName:t,isContextPlugin:i,isOfficialPlugin:n,isPremiumPlugin:u}=e;return{isContext:!!i,isOfficial:!!n,isPremium:!!u,name:t}})}function R(o){if(!o)return;const e=Array.isArray(o)?{items:o}:o,t=u(e.items||[]);return{isMultiline:t.includes("-"),shouldNotGroupWhenFull:!!e.shouldNotGroupWhenFull,items:n(t)};function n(y){return y.filter(p=>p!=="|"&&p!=="-")}function u(y){return y.flatMap(p=>typeof p=="string"?[p]:u(p.items))}}function be(){return{channel:window[Symbol.for("cke distribution")]||"sh"}}function _e(){let o="unknown",e="unknown";return _.isMac?o="mac":_.isWindows?o="windows":_.isiOS?o="ios":_.isAndroid&&(o="android"),_.isGecko?e="gecko":_.isBlink?e="blink":_.isSafari&&(e="safari"),{os:o,browser:e}}function Ee(){return localStorage.getItem("__ckeditor-session-id")||localStorage.setItem("__ckeditor-session-id",A()),localStorage.getItem("__ckeditor-session-id")}function ke(){return T.window.CKEDITOR_PAGE_SESSION_ID=T.window.CKEDITOR_PAGE_SESSION_ID||A(),T.window.CKEDITOR_PAGE_SESSION_ID}class Ne extends P(){static get editorName(){return"Editor"}accessibility;commands;config;conversion;data;editing;locale;model;plugins;keystrokes;t;static defaultConfig;static builtinPlugins;_context;_readOnlyLocks;constructor(e={}){if(super(),"sanitizeHtml"in e)throw new l("editor-config-sanitizehtml-not-supported");const t=this.constructor,{translations:i,...n}=t.defaultConfig||{},{translations:u=i,...y}=e,p=e.language||n.language;this._context=e.context||new G({language:p,translations:u}),this._context._addEditor(this,!e.context);const E=Array.from(t.builtinPlugins||[]);this.config=new W(y,n),this.config.define("plugins",E),this.config.define(this._context._getEditorConfig()),x(this.config),this.plugins=new H(this,E,this._context.plugins),this.locale=this._context.locale,this.t=this.locale.t,this._readOnlyLocks=new Set,this.commands=new he,this.set("state","initializing"),this.once("ready",()=>this.state="ready",{priority:"high"}),this.once("destroy",()=>this.state="destroyed",{priority:"high"}),this.model=new ie,this.on("change:isReadOnly",()=>{this.model.document.isReadOnly=this.isReadOnly});const b=new se;this.data=new ne(this.model,b),this.editing=new oe(this.model,b),this.editing.view.document.bind("isReadOnly").to(this),this.conversion=new re([this.editing.downcastDispatcher,this.data.downcastDispatcher],this.data.upcastDispatcher),this.conversion.addAlias("dataDowncast",this.data.downcastDispatcher),this.conversion.addAlias("editingDowncast",this.editing.downcastDispatcher),this.keystrokes=new ge(this),this.keystrokes.listenTo(this.editing.view.document),this.accessibility=new me(this),v(this);function x(f){let w=f.get("licenseKey");if(!w&&window.CKEDITOR_GLOBAL_LICENSE_KEY&&(w=window.CKEDITOR_GLOBAL_LICENSE_KEY,f.set("licenseKey",w)),!w)throw new l("license-key-missing")}function v(f){const w=f.config.get("licenseKey"),k=window[Symbol.for("cke distribution")]||"sh";function g(a){f.enableReadOnlyMode(Symbol("invalidLicense")),f._showLicenseError(a)}function O(a){const d=a.split(".");return d.length!=3?null:d[1]}function D(a){return["exp","jti","vc"].every(m=>m in a)}function I(a){return Object.getOwnPropertyNames(a).sort().filter(h=>h!="vc"&&a[h]!=null).map(h=>a[h])}function L(a){const{hostname:d}=new URL(window.location.href);if(a.includes(d))return!0;const m=d.split(".");return a.filter(h=>h.includes("*")).map(h=>h.split(".")).filter(h=>h.length<=m.length).map(h=>Array(m.length-h.length).fill(h[0]==="*"?"*":"").concat(h)).some(h=>m.every((V,K)=>h[K]===V||h[K]==="*"))}function S(a){const d=a[0].toUpperCase()+a.slice(1),m=a==="evaluation"?"an":"a";console.info(`%cCKEditor 5 ${d} License`,"color: #ffffff; background: #743CCD; font-size: 14px; padding: 4px 8px; border-radius: 4px;"),console.warn(`⚠️ You are using ${m} ${a} license of CKEditor 5${a==="trial"?" which is for evaluation purposes only":""}. For production usage, please obtain a production license at https://portal.ckeditor.com/`)}if(w=="GPL"){k=="cloud"&&g("distributionChannel");return}const C=O(w);if(!C){g("invalid");return}const s=j(C);if(!s){g("invalid");return}if(!D(s)){g("invalid");return}if(s.distributionChannel&&!Y(s.distributionChannel).includes(k)){g("distributionChannel");return}if(J(I(s))!=s.vc.toLowerCase()){g("invalid");return}if(new Date(s.exp*1e3)<Q){g("expired");return}const r=s.licensedHosts;if(r&&r.length>0&&!L(r)){g("domainLimit");return}if(["evaluation","trial"].includes(s.licenseType)&&s.exp*1e3<Date.now()){g("expired");return}if(["development","evaluation","trial"].includes(s.licenseType)){const{licenseType:a}=s;window.CKEDITOR_WARNING_SUPPRESSIONS=window.CKEDITOR_WARNING_SUPPRESSIONS||{},window.CKEDITOR_WARNING_SUPPRESSIONS[a]||(S(a),window.CKEDITOR_WARNING_SUPPRESSIONS[a]=!0)}if(["evaluation","trial"].includes(s.licenseType)){const a=s.licenseType,d=setTimeout(()=>{g(`${a}Limit`)},6e5);f.on("destroy",()=>{clearTimeout(d)})}s.usageEndpoint&&f.once("ready",()=>{const a={requestId:A(),requestTime:Math.round(Date.now()/1e3),license:w,editor:Pe(f)};f._sendUsageRequest(s.usageEndpoint,a).then(d=>{const{status:m,message:h}=d;h&&console.warn(h),m!="ok"&&g("usageLimit")},()=>{X("license-key-validation-endpoint-not-reachable",{url:s.usageEndpoint})})},{priority:"high"})}}get isReadOnly(){return this._readOnlyLocks.size>0}set isReadOnly(e){throw new l("editor-isreadonly-has-no-setter")}enableReadOnlyMode(e){if(typeof e!="string"&&typeof e!="symbol")throw new l("editor-read-only-lock-id-invalid",null,{lockId:e});this._readOnlyLocks.has(e)||(this._readOnlyLocks.add(e),this._readOnlyLocks.size===1&&this.fire("change:isReadOnly","isReadOnly",!0,!1))}disableReadOnlyMode(e){if(typeof e!="string"&&typeof e!="symbol")throw new l("editor-read-only-lock-id-invalid",null,{lockId:e});this._readOnlyLocks.has(e)&&(this._readOnlyLocks.delete(e),this._readOnlyLocks.size===0&&this.fire("change:isReadOnly","isReadOnly",!1,!0))}setData(e){this.data.set(e)}getData(e){return this.data.get(e)}initPlugins(){const e=this.config,t=e.get("plugins"),i=e.get("removePlugins")||[],n=e.get("extraPlugins")||[],u=e.get("substitutePlugins")||[];return this.plugins.init(t.concat(n),i,u)}destroy(){let e=Promise.resolve();return this.state=="initializing"&&(e=new Promise(t=>this.once("ready",t))),e.then(()=>{this.fire("destroy"),this.stopListening(),this.commands.destroy()}).then(()=>this.plugins.destroy()).then(()=>{this.model.destroy(),this.data.destroy(),this.editing.destroy(),this.keystrokes.destroy()}).then(()=>this._context._removeEditor(this))}execute(e,...t){try{return this.commands.execute(e,...t)}catch(i){/* istanbul ignore next -- @preserve */l.rethrowUnexpectedError(i,this)}}focus(){this.editing.view.focus()}static create(...e){throw new Error("This is an abstract method.")}static Context=G;static EditorWatchdog=ae;static ContextWatchdog=le;_showLicenseError(e,t){setTimeout(()=>{if(e=="invalid")throw new l("invalid-license-key");if(e=="expired")throw new l("license-key-expired");if(e=="domainLimit")throw new l("license-key-domain-limit");if(e=="featureNotAllowed")throw new l("license-key-plugin-not-allowed",null,{pluginName:t});if(e=="evaluationLimit")throw new l("license-key-evaluation-limit");if(e=="trialLimit")throw new l("license-key-trial-limit");if(e=="developmentLimit")throw new l("license-key-development-limit");if(e=="usageLimit")throw new l("license-key-usage-limit");if(e=="distributionChannel")throw new l("license-key-invalid-distribution-channel")},0),this._showLicenseError=()=>{}}async _sendUsageRequest(e,t){const i=new Headers({"Content-Type":"application/json"}),n=await fetch(new URL(e),{method:"POST",headers:i,body:JSON.stringify(t)});if(!n.ok)throw new Error(`HTTP Response: ${n.status}`);return n.json()}}function Pe(o){const e=ye(o);function t(i,n){if(ce(e,i)!==void 0)throw new l("editor-usage-data-path-already-set",{path:i});ue(e,i,n)}return o.fire("collectUsageData",{setUsageData:t}),e}function Re(o){if(!q(o.updateSourceElement))throw new l("attachtoform-missing-elementapi-interface",o);const e=o.sourceElement;if(xe(e)&&e.form){let t;const i=e.form,n=()=>o.updateSourceElement();q(i.submit)&&(t=i.submit,i.submit=()=>{n(),t.apply(i)}),i.addEventListener("submit",n),o.on("destroy",()=>{i.removeEventListener("submit",n),t&&(i.submit=t)})}}function xe(o){return!!o&&o.tagName.toLowerCase()==="textarea"}function Ae(o){class e extends o{sourceElement;updateSourceElement(i){if(!this.sourceElement)throw new l("editor-missing-sourceelement",this);const n=this.config.get("updateSourceElementOnDestroy"),u=this.sourceElement instanceof HTMLTextAreaElement;if(!n&&!u){U(this.sourceElement,"");return}const y=typeof i=="string"?i:this.data.get();U(this.sourceElement,y)}}return e}class Ke extends fe{_actions;static get pluginName(){return"PendingActions"}static get isOfficialPlugin(){return!0}init(){this.set("hasAny",!1),this._actions=new z({idProperty:"_id"}),this._actions.delegate("add","remove").to(this)}add(e){if(typeof e!="string")throw new l("pendingactions-add-invalid-message",this);const t=new(P());return t.set("message",e),this._actions.add(t),this.hasAny=!0,t}remove(e){this._actions.remove(e),this.hasAny=!!this._actions.length}get first(){return this._actions.get(0)}[Symbol.iterator](){return this._actions[Symbol.iterator]()}}export{me as Accessibility,de as Command,he as CommandCollection,G as Context,fe as ContextPlugin,ge as EditingKeystrokeHandler,Ne as Editor,Ae as ElementApiMixin,Te as MultiCommand,Ke as PendingActions,Le as Plugin,B as _DEFAULT_ACCESSIBILITY_GROUP_ID,ye as _getEditorUsageData,Re as attachToForm};
@@ -1,4 +1,4 @@
1
- import{BoxedEditorUIView as f,StickyPanelView as w,ToolbarView as m,MenuBarView as p,InlineEditableUIView as b,EditorUI as y,normalizeToolbarConfig as v,DialogView as u}from"../../../../../@ckeditor_ckeditor5-ui@46.1.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{enableViewPlaceholder as P}from"../../../../../@ckeditor_ckeditor5-engine@46.1.0/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{CKEditorError as k,getDataFromElement as T,ElementReplacer as V,Rect as a}from"../../../../../@ckeditor_ckeditor5-utils@46.1.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{ElementApiMixin as C,attachToForm as B,Editor as E}from"../../../../../@ckeditor_ckeditor5-core@46.1.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{isElement as S}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isElement.js";/**
1
+ import{BoxedEditorUIView as f,StickyPanelView as w,ToolbarView as m,MenuBarView as p,InlineEditableUIView as b,EditorUI as y,normalizeToolbarConfig as v,DialogView as u}from"../../../../../@ckeditor_ckeditor5-ui@46.1.1/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{enableViewPlaceholder as P}from"../../../../../@ckeditor_ckeditor5-engine@46.1.1/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{CKEditorError as k,getDataFromElement as T,ElementReplacer as V,Rect as a}from"../../../../../@ckeditor_ckeditor5-utils@46.1.1/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{ElementApiMixin as C,attachToForm as B,Editor as E}from"../../../../../@ckeditor_ckeditor5-core@46.1.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{isElement as S}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isElement.js";/**
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */class _ extends y{view;_toolbarConfig;_elementReplacer;constructor(t,i){super(t),this.view=i,this._toolbarConfig=v(t.config.get("toolbar")),this._elementReplacer=new V,this.listenTo(t.editing.view,"scrollToTheSelection",this._handleScrollToTheSelectionWithStickyPanel.bind(this))}get element(){return this.view.element}init(t){const i=this.editor,o=this.view,n=i.editing.view,e=o.editable,s=n.document.getRoot();e.name=s.rootName,o.render();const r=e.element;this.setEditableElement(e.name,r),o.editable.bind("isFocused").to(this.focusTracker),n.attachDomRoot(r),t&&this._elementReplacer.replace(t,this.element),this._initPlaceholder(),this._initToolbar(),o.menuBarView&&this.initMenuBar(o.menuBarView),this._initDialogPluginIntegration(),this._initContextualBalloonIntegration(),this.fire("ready")}destroy(){super.destroy();const t=this.view,i=this.editor.editing.view;this._elementReplacer.restore(),i.getDomRoot(t.editable.name)&&i.detachDomRoot(t.editable.name),t.destroy()}_initToolbar(){const t=this.view;t.stickyPanel.bind("isActive").to(this.focusTracker,"isFocused"),t.stickyPanel.limiterElement=t.element,t.stickyPanel.bind("viewportTopOffset").to(this,"viewportOffset",({visualTop:i})=>i||0),t.toolbar.fillFromConfig(this._toolbarConfig,this.componentFactory),this.addToolbar(t.toolbar)}_initPlaceholder(){const t=this.editor,i=t.editing.view,o=i.document.getRoot(),n=t.sourceElement;let e;const s=t.config.get("placeholder");s&&(e=typeof s=="string"?s:s[this.view.editable.name]),!e&&n&&n.tagName.toLowerCase()==="textarea"&&(e=n.getAttribute("placeholder")),e&&(o.placeholder=e),P({view:i,element:o,isDirectHost:!1,keepOnFocus:!0})}_initContextualBalloonIntegration(){if(!this.editor.plugins.has("ContextualBalloon"))return;const{stickyPanel:t}=this.view,i=this.editor.plugins.get("ContextualBalloon");i.on("getPositionOptions",n=>{const e=n.return;if(!e||!t.isSticky||!t.element)return;const s=new a(t.element).height,r=typeof e.target=="function"?e.target():e.target,h=typeof e.limiter=="function"?e.limiter():e.limiter;if(r&&h&&new a(r).height>=new a(h).height-s)return;const d={...e.viewportOffsetConfig},g=(d.top||0)+s;n.return={...e,viewportOffsetConfig:{...d,top:g}}},{priority:"low"});const o=()=>{i.visibleView&&i.updatePosition()};this.listenTo(t,"change:isSticky",o),this.listenTo(this.editor.ui,"change:viewportOffset",o)}_handleScrollToTheSelectionWithStickyPanel(t,i,o){const n=this.view.stickyPanel;if(n.isSticky){const e=new a(n.element).height;i.viewportOffset.top+=e}else{const e=()=>{this.editor.editing.view.scrollToTheSelection(o)};this.listenTo(n,"change:isSticky",e),setTimeout(()=>{this.stopListening(n,"change:isSticky",e)},20)}}_initDialogPluginIntegration(){if(!this.editor.plugins.has("Dialog"))return;const t=this.view.stickyPanel,i=this.editor.plugins.get("Dialog");i.on("show",()=>{const o=i.view;o.on("moveTo",(n,e)=>{if(!t.isSticky||o.wasMoved||o.isModal)return;const s=new a(t.contentPanelElement);e[1]<s.bottom+u.defaultOffset&&(e[1]=s.bottom+u.defaultOffset)},{priority:"high"})},{priority:"low"})}}class R extends f{stickyPanel;toolbar;editable;constructor(t,i,o={}){super(t),this.stickyPanel=new w(t),this.toolbar=new m(t,{shouldGroupWhenFull:o.shouldToolbarGroupWhenFull}),o.useMenuBar&&(this.menuBarView=new p(t)),this.editable=new b(t,i,void 0,{label:o.label})}render(){super.render(),this.menuBarView?this.stickyPanel.content.addMany([this.menuBarView,this.toolbar]):this.stickyPanel.content.add(this.toolbar),this.top.add(this.stickyPanel),this.main.add(this.editable)}}class W extends C(E){static get editorName(){return"ClassicEditor"}ui;constructor(t,i={}){if(!c(t)&&i.initialData!==void 0)throw new k("editor-create-initial-data",null);super(i),this.config.define("menuBar.isVisible",!1),this.config.get("initialData")===void 0&&this.config.set("initialData",x(t)),c(t)&&(this.sourceElement=t),this.model.document.createRoot();const o=!this.config.get("toolbar.shouldNotGroupWhenFull"),n=this.config.get("menuBar"),e=new R(this.locale,this.editing.view,{shouldToolbarGroupWhenFull:o,useMenuBar:n.isVisible,label:this.config.get("label")});this.ui=new _(this,e),B(this)}destroy(){return this.sourceElement&&this.updateSourceElement(),this.ui.destroy(),super.destroy()}static create(t,i={}){return new Promise(o=>{const n=new this(t,i);o(n.initPlugins().then(()=>n.ui.init(c(t)?t:null)).then(()=>n.data.init(n.config.get("initialData"))).then(()=>n.fire("ready")).then(()=>n))})}}function x(l){return c(l)?T(l):l}function c(l){return S(l)}export{W as ClassicEditor,_ as ClassicEditorUI,R as ClassicEditorUIView};
@@ -1,4 +1,4 @@
1
- import{global as ne,EmitterMixin as x,CKEditorError as f,compareArrays as F,toMap as ge,ObservableMixin as z,count as Kt,isIterable as oe,toArray as ie,Collection as Ft,uid as Ts,spliceArray as Xt,logWarning as J,EventInfo as At,DomEmitterMixin as Ms,isValidAttributeName as Ns,first as Bt,isText as E,indexOf as Se,getAncestors as xs,isComment as Ve,env as N,scrollViewportToShowTarget as Os,isInsideSurrogatePair as Dn,isInsideCombinedSymbol as Vn,remove as Yt,insertAt as Ln,diff as mt,fastDiff as Is,keyCodes as fe,isArrowKeyCode as Fs,priorities as gt,isInsideEmojiSequence as Bs,isNode as it,getCode as Ds}from"../../../../../@ckeditor_ckeditor5-utils@46.1.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{isEqual as Qt}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/predicate/isEqual.js";import{isObject as ot}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isObject.js";import{get as at}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/object/get.js";import{merge as $n}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/object/merge.js";import{set as Vs}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/object/set.js";import{isPlainObject as Dt}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.js";import{assignIn as Ls}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/object/assignIn.js";import{clone as $s}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/object/clone.js";import{cloneDeep as ae}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/object/cloneDeep.js";import{isEqualWith as Ws}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isEqualWith.js";import{debounce as Et}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/function/debounce.js";/**
1
+ import{global as ne,EmitterMixin as x,CKEditorError as f,compareArrays as F,toMap as ge,ObservableMixin as z,count as Kt,isIterable as oe,toArray as ie,Collection as Ft,uid as Ts,spliceArray as Xt,logWarning as J,EventInfo as At,DomEmitterMixin as Ms,isValidAttributeName as Ns,first as Bt,isText as E,indexOf as Se,getAncestors as xs,isComment as Ve,env as N,scrollViewportToShowTarget as Os,isInsideSurrogatePair as Dn,isInsideCombinedSymbol as Vn,remove as Yt,insertAt as Ln,diff as mt,fastDiff as Is,keyCodes as fe,isArrowKeyCode as Fs,priorities as gt,isInsideEmojiSequence as Bs,isNode as it,getCode as Ds}from"../../../../../@ckeditor_ckeditor5-utils@46.1.1/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{isEqual as Qt}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/predicate/isEqual.js";import{isObject as ot}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isObject.js";import{get as at}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/object/get.js";import{merge as $n}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/object/merge.js";import{set as Vs}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/object/set.js";import{isPlainObject as Dt}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.js";import{assignIn as Ls}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/object/assignIn.js";import{clone as $s}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/object/clone.js";import{cloneDeep as ae}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/object/cloneDeep.js";import{isEqualWith as Ws}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isEqualWith.js";import{debounce as Et}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/function/debounce.js";/**
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */const Me=new WeakMap;let Zt=!1;function sl({view:s,element:e,text:t,isDirectHost:n=!0,keepOnFocus:r=!1}){const i=s.document;Me.has(i)||(Me.set(i,new Map),i.registerPostFixer(a=>pt(Me.get(i),a)),i.on("change:isComposing",()=>{s.change(a=>pt(Me.get(i),a))},{priority:"high"})),e.is("editableElement")&&e.on("change:placeholder",(a,l,c)=>o(c)),e.placeholder?o(e.placeholder):t&&o(t),t&&Gs();function o(a){const l={text:a,isDirectHost:n,keepOnFocus:r,hostElement:n?e:null};Me.get(i).set(e,l),s.change(c=>pt([[e,l]],c))}}function qs(s,e){return e.hasClass("ck-placeholder")?!1:(s.addClass("ck-placeholder",e),!0)}function zs(s,e){return e.hasClass("ck-placeholder")?(s.removeClass("ck-placeholder",e),!0):!1}function Js(s,e){if(!s.isAttached()||Us(s))return!1;const t=s.document,r=t.selection.anchor;return t.isComposing&&r&&r.parent===s?!1:e||!t.isFocused?!0:!!r&&r.parent!==s}function Us(s){for(const e of s.getChildren())if(!e.is("uiElement"))return!0;return!1}function pt(s,e){const t=[];let n=!1;for(const[r,i]of s)i.isDirectHost&&(t.push(r),en(e,r,i)&&(n=!0));for(const[r,i]of s){if(i.isDirectHost)continue;const o=js(r);o&&(t.includes(o)||(i.hostElement=o,en(e,r,i)&&(n=!0)))}return n}function en(s,e,t){const{text:n,isDirectHost:r,hostElement:i}=t;let o=!1;return i.getAttribute("data-placeholder")!==n&&(s.setAttribute("data-placeholder",n,i),o=!0),(r||e.childCount==1)&&Js(i,t.keepOnFocus)?qs(s,i)&&(o=!0):zs(s,i)&&(o=!0),o}function js(s){if(s.childCount){const e=s.getChild(0);if(e.is("element")&&!e.is("uiElement")&&!e.is("attributeElement"))return e}return null}function Gs(){Zt||J("enableViewPlaceholder-deprecated-text-option"),Zt=!0}/**
@@ -1,4 +1,4 @@
1
- import{Plugin as m,Command as E}from"../../../../../@ckeditor_ckeditor5-core@46.1.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{Observer as b,BubblingEventInfo as v,ViewDocumentDomEventData as k}from"../../../../../@ckeditor_ckeditor5-engine@46.1.0/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{env as S}from"../../../../../@ckeditor_ckeditor5-utils@46.1.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";/**
1
+ import{Plugin as m,Command as E}from"../../../../../@ckeditor_ckeditor5-core@46.1.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{Observer as b,BubblingEventInfo as v,ViewDocumentDomEventData as k}from"../../../../../@ckeditor_ckeditor5-engine@46.1.1/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{env as S}from"../../../../../@ckeditor_ckeditor5-utils@46.1.1/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";/**
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  *//**
@@ -1,4 +1,4 @@
1
- import{Plugin as t}from"../../../../../@ckeditor_ckeditor5-core@46.1.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{Clipboard as r}from"../../../../../@ckeditor_ckeditor5-clipboard@46.1.0/node_modules/@ckeditor/ckeditor5-clipboard/dist/index.js";import{Enter as i,ShiftEnter as e}from"../../../../../@ckeditor_ckeditor5-enter@46.1.0/node_modules/@ckeditor/ckeditor5-enter/dist/index.js";import{SelectAll as o}from"../../../../../@ckeditor_ckeditor5-select-all@46.1.0/node_modules/@ckeditor/ckeditor5-select-all/dist/index.js";import{Typing as s}from"../../../../../@ckeditor_ckeditor5-typing@46.1.0/node_modules/@ckeditor/ckeditor5-typing/dist/index.js";import{Undo as m}from"../../../../../@ckeditor_ckeditor5-undo@46.1.0/node_modules/@ckeditor/ckeditor5-undo/dist/index.js";import{AccessibilityHelp as l}from"../../../../../@ckeditor_ckeditor5-ui@46.1.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";/**
1
+ import{Plugin as t}from"../../../../../@ckeditor_ckeditor5-core@46.1.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{Clipboard as r}from"../../../../../@ckeditor_ckeditor5-clipboard@46.1.1/node_modules/@ckeditor/ckeditor5-clipboard/dist/index.js";import{Enter as i,ShiftEnter as e}from"../../../../../@ckeditor_ckeditor5-enter@46.1.1/node_modules/@ckeditor/ckeditor5-enter/dist/index.js";import{SelectAll as o}from"../../../../../@ckeditor_ckeditor5-select-all@46.1.1/node_modules/@ckeditor/ckeditor5-select-all/dist/index.js";import{Typing as s}from"../../../../../@ckeditor_ckeditor5-typing@46.1.1/node_modules/@ckeditor/ckeditor5-typing/dist/index.js";import{Undo as m}from"../../../../../@ckeditor_ckeditor5-undo@46.1.1/node_modules/@ckeditor/ckeditor5-undo/dist/index.js";import{AccessibilityHelp as l}from"../../../../../@ckeditor_ckeditor5-ui@46.1.1/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";/**
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */class d extends t{static get requires(){return[l,r,i,o,e,s,m]}static get pluginName(){return"Essentials"}static get isOfficialPlugin(){return!0}}export{d as Essentials};
@@ -1,4 +1,4 @@
1
- import{Plugin as p,Command as _}from"../../../../../@ckeditor_ckeditor5-core@46.1.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{IconFindReplace as w,IconPreviousArrow as x}from"../../../../../@ckeditor_ckeditor5-icons@46.1.0/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import{Dialog as T,DropdownView as F,createDropdown as v,FormHeaderView as B,ButtonView as V,MenuBarMenuListItemButtonView as A,DialogViewPosition as I,CssTransitionDisablerMixin as E,View as g,ViewCollection as D,FocusCycler as O,submitHandler as S,CollapsibleView as P,SwitchButtonView as b,LabeledFieldView as M,createLabeledInputText as N}from"../../../../../@ckeditor_ckeditor5-ui@46.1.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{scrollViewportToShowTarget as H,Collection as m,uid as W,ObservableMixin as $,FocusTracker as L,KeystrokeHandler as U,isVisible as q,Rect as G}from"../../../../../@ckeditor_ckeditor5-utils@46.1.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{debounce as K}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/function/debounce.js";import{escapeRegExp as j}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/string/escapeRegExp.js";/**
1
+ import{Plugin as p,Command as _}from"../../../../../@ckeditor_ckeditor5-core@46.1.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{IconFindReplace as w,IconPreviousArrow as x}from"../../../../../@ckeditor_ckeditor5-icons@46.1.1/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import{Dialog as T,DropdownView as F,createDropdown as v,FormHeaderView as B,ButtonView as V,MenuBarMenuListItemButtonView as A,DialogViewPosition as I,CssTransitionDisablerMixin as E,View as g,ViewCollection as D,FocusCycler as O,submitHandler as S,CollapsibleView as P,SwitchButtonView as b,LabeledFieldView as M,createLabeledInputText as N}from"../../../../../@ckeditor_ckeditor5-ui@46.1.1/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{scrollViewportToShowTarget as H,Collection as m,uid as W,ObservableMixin as $,FocusTracker as L,KeystrokeHandler as U,isVisible as q,Rect as G}from"../../../../../@ckeditor_ckeditor5-utils@46.1.1/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{debounce as K}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/function/debounce.js";import{escapeRegExp as j}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/string/escapeRegExp.js";/**
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */class z extends g{children;_findInputView;_replaceInputView;_findButtonView;_findPrevButtonView;_findNextButtonView;_advancedOptionsCollapsibleView;_matchCaseSwitchView;_wholeWordsOnlySwitchView;_replaceButtonView;_replaceAllButtonView;_inputsDivView;_actionButtonsDivView;_focusTracker;_keystrokes;_focusables;focusCycler;constructor(t){super(t);const e=t.t;this.children=this.createCollection(),this.set("matchCount",0),this.set("highlightOffset",0),this.set("isDirty",!1),this.set("_areCommandsEnabled",{}),this.set("_resultsCounterText",""),this.set("_matchCase",!1),this.set("_wholeWordsOnly",!1),this.bind("_searchResultsFound").to(this,"matchCount",this,"isDirty",(i,s)=>i>0&&!s),this._findInputView=this._createInputField(e("Find in text…")),this._findPrevButtonView=this._createButton({label:e("Previous result"),class:"ck-button-prev",icon:x,keystroke:"Shift+F3",tooltip:!0}),this._findNextButtonView=this._createButton({label:e("Next result"),class:"ck-button-next",icon:x,keystroke:"F3",tooltip:!0}),this._replaceInputView=this._createInputField(e("Replace with…"),"ck-labeled-field-replace"),this._inputsDivView=this._createInputsDiv(),this._matchCaseSwitchView=this._createMatchCaseSwitch(),this._wholeWordsOnlySwitchView=this._createWholeWordsOnlySwitch(),this._advancedOptionsCollapsibleView=this._createAdvancedOptionsCollapsible(),this._replaceAllButtonView=this._createButton({label:e("Replace all"),class:"ck-button-replaceall",withText:!0}),this._replaceButtonView=this._createButton({label:e("Replace"),class:"ck-button-replace",withText:!0}),this._findButtonView=this._createButton({label:e("Find"),class:"ck-button-find ck-button-action",withText:!0}),this._actionButtonsDivView=this._createActionButtonsDiv(),this._focusTracker=new L,this._keystrokes=new U,this._focusables=new D,this.focusCycler=new O({focusables:this._focusables,focusTracker:this._focusTracker,keystrokeHandler:this._keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children.addMany([this._inputsDivView,this._advancedOptionsCollapsibleView,this._actionButtonsDivView]),this.setTemplate({tag:"form",attributes:{class:["ck","ck-find-and-replace-form"],tabindex:"-1"},children:this.children})}render(){super.render(),S({view:this}),this._initFocusCycling(),this._initKeystrokeHandling()}destroy(){super.destroy(),this._focusTracker.destroy(),this._keystrokes.destroy()}focus(t){t===-1?this.focusCycler.focusLast():this.focusCycler.focusFirst()}reset(){this._findInputView.errorText=null,this.isDirty=!0}get _textToFind(){return this._findInputView.fieldView.element.value}get _textToReplace(){return this._replaceInputView.fieldView.element.value}_createInputsDiv(){const t=this.locale,e=t.t,i=new g(t);return this._findInputView.fieldView.on("input",()=>{this.isDirty=!0}),this._findPrevButtonView.delegate("execute").to(this,"findPrevious"),this._findNextButtonView.delegate("execute").to(this,"findNext"),this._findPrevButtonView.bind("isEnabled").to(this,"_areCommandsEnabled",({findPrevious:s})=>s),this._findNextButtonView.bind("isEnabled").to(this,"_areCommandsEnabled",({findNext:s})=>s),this._injectFindResultsCounter(),this._replaceInputView.bind("isEnabled").to(this,"_areCommandsEnabled",this,"_searchResultsFound",({replace:s},n)=>s&&n),this._replaceInputView.bind("infoText").to(this._replaceInputView,"isEnabled",this._replaceInputView,"isFocused",(s,n)=>s||!n?"":e("Tip: Find some text first in order to replace it.")),i.setTemplate({tag:"div",attributes:{class:["ck","ck-find-and-replace-form__inputs"]},children:[this._findInputView,this._findPrevButtonView,this._findNextButtonView,this._replaceInputView]}),i}_onFindButtonExecute(){if(!this._textToFind){const t=this.t;this._findInputView.errorText=t("Text to find must not be empty.");return}this.isDirty=!1,this.fire("findNext",{searchText:this._textToFind,matchCase:this._matchCase,wholeWords:this._wholeWordsOnly})}_injectFindResultsCounter(){const t=this.locale,e=t.t,i=this.bindTemplate,s=new g(this.locale);this.bind("_resultsCounterText").to(this,"highlightOffset",this,"matchCount",(o,r)=>e("%0 of %1",[o,r])),s.setTemplate({tag:"span",attributes:{class:["ck","ck-results-counter",i.if("isDirty","ck-hidden")]},children:[{text:i.to("_resultsCounterText")}]});const n=()=>{const o=this._findInputView.fieldView.element;if(!o||!q(o))return;const r=new G(s.element).width,h=t.uiLanguageDirection==="ltr"?"paddingRight":"paddingLeft";r?o.style[h]=`calc( 2 * var(--ck-spacing-standard) + ${r}px )`:o.style[h]=""};this.on("change:_resultsCounterText",n,{priority:"low"}),this.on("change:isDirty",n,{priority:"low"}),this._findInputView.template.children[0].children.push(s)}_createAdvancedOptionsCollapsible(){const t=this.locale.t,e=new P(this.locale,[this._matchCaseSwitchView,this._wholeWordsOnlySwitchView]);return e.set({label:t("Advanced options"),isCollapsed:!0}),e}_createActionButtonsDiv(){const t=new g(this.locale);return this._replaceButtonView.bind("isEnabled").to(this,"_areCommandsEnabled",this,"_searchResultsFound",({replace:e},i)=>e&&i),this._replaceAllButtonView.bind("isEnabled").to(this,"_areCommandsEnabled",this,"_searchResultsFound",({replaceAll:e},i)=>e&&i),this._replaceButtonView.on("execute",()=>{this.fire("replace",{searchText:this._textToFind,replaceText:this._textToReplace})}),this._replaceAllButtonView.on("execute",()=>{this.fire("replaceAll",{searchText:this._textToFind,replaceText:this._textToReplace}),this.focus()}),this._findButtonView.on("execute",this._onFindButtonExecute.bind(this)),t.setTemplate({tag:"div",attributes:{class:["ck","ck-find-and-replace-form__actions"]},children:[this._replaceAllButtonView,this._replaceButtonView,this._findButtonView]}),t}_createMatchCaseSwitch(){const t=this.locale.t,e=new b(this.locale);return e.set({label:t("Match case"),withText:!0}),e.bind("isOn").to(this,"_matchCase"),e.on("execute",()=>{this._matchCase=!this._matchCase,this.isDirty=!0}),e}_createWholeWordsOnlySwitch(){const t=this.locale.t,e=new b(this.locale);return e.set({label:t("Whole words only"),withText:!0}),e.bind("isOn").to(this,"_wholeWordsOnly"),e.on("execute",()=>{this._wholeWordsOnly=!this._wholeWordsOnly,this.isDirty=!0}),e}_initFocusCycling(){[this._findInputView,this._findPrevButtonView,this._findNextButtonView,this._replaceInputView,this._advancedOptionsCollapsibleView.buttonView,this._matchCaseSwitchView,this._wholeWordsOnlySwitchView,this._replaceAllButtonView,this._replaceButtonView,this._findButtonView].forEach(e=>{this._focusables.add(e),this._focusTracker.add(e.element)})}_initKeystrokeHandling(){const t=i=>i.stopPropagation(),e=i=>{i.stopPropagation(),i.preventDefault()};this._keystrokes.listenTo(this.element),this._keystrokes.set("f3",i=>{e(i),this._findNextButtonView.fire("execute")}),this._keystrokes.set("shift+f3",i=>{e(i),this._findPrevButtonView.fire("execute")}),this._keystrokes.set("enter",i=>{const s=i.target;s===this._findInputView.fieldView.element?(this._areCommandsEnabled.findNext?this._findNextButtonView.fire("execute"):this._findButtonView.fire("execute"),e(i)):s===this._replaceInputView.fieldView.element&&!this.isDirty&&(this._replaceButtonView.fire("execute"),e(i))}),this._keystrokes.set("shift+enter",i=>{i.target===this._findInputView.fieldView.element&&(this._areCommandsEnabled.findPrevious?this._findPrevButtonView.fire("execute"):this._findButtonView.fire("execute"),e(i))}),this._keystrokes.set("arrowright",t),this._keystrokes.set("arrowleft",t),this._keystrokes.set("arrowup",t),this._keystrokes.set("arrowdown",t)}_createButton(t){const e=new V(this.locale);return e.set(t),e}_createInputField(t,e){const i=new M(this.locale,N);return i.label=t,i.class=e,i}}class Q extends p{static get requires(){return[T]}static get pluginName(){return"FindAndReplaceUI"}static get isOfficialPlugin(){return!0}formView;constructor(t){super(t),t.config.define("findAndReplace.uiType","dialog"),this.formView=null}init(){const t=this.editor,e=t.config.get("findAndReplace.uiType")==="dropdown",i=t.commands.get("find"),s=this.editor.t;t.ui.componentFactory.add("findAndReplace",()=>{let n;return e?(n=this._createDropdown(),n.bind("isEnabled").to(i)):n=this._createDialogButtonForToolbar(),t.keystrokes.set("Ctrl+F",(o,r)=>{if(i.isEnabled){if(n instanceof F){const h=n.buttonView;h.isOn||h.fire("execute")}else n.isOn?t.plugins.get("Dialog").view.focus():n.fire("execute");r()}}),n}),e||t.ui.componentFactory.add("menuBar:findAndReplace",()=>this._createDialogButtonForMenuBar()),t.accessibility.addKeystrokeInfos({keystrokes:[{label:s("Find in the document"),keystroke:"CTRL+F"}]})}_createDropdown(){const t=this.editor,e=t.locale.t,i=v(t.locale);return i.once("change:isOpen",()=>{this.formView=this._createFormView(),this.formView.children.add(new B(t.locale,{label:e("Find and replace")}),0),i.panelView.children.add(this.formView)}),i.on("change:isOpen",(s,n,o)=>{o?this._setupFormView():this.fire("searchReseted")},{priority:"low"}),i.buttonView.set({icon:w,label:e("Find and replace"),keystroke:"CTRL+F",tooltip:!0}),i}_createDialogButtonForToolbar(){const t=this.editor,e=this._createButton(V),i=t.plugins.get("Dialog");return e.set({tooltip:!0}),e.bind("isOn").to(i,"id",s=>s==="findAndReplace"),e.on("execute",()=>{e.isOn?i.hide():this._showDialog()}),e}_createDialogButtonForMenuBar(){const t=this._createButton(A),e=this.editor.plugins.get("Dialog"),i=this.editor.plugins.get("Dialog");return t.set({role:"menuitemcheckbox",isToggleable:!0}),t.bind("isOn").to(i,"id",s=>s==="findAndReplace"),t.on("execute",()=>{if(e.id==="findAndReplace"){e.hide();return}this._showDialog()}),t}_createButton(t){const e=this.editor,i=e.commands.get("find"),s=new t(e.locale),n=e.locale.t;return s.bind("isEnabled").to(i),s.set({icon:w,label:n("Find and replace"),keystroke:"CTRL+F"}),s}_showDialog(){const t=this.editor,e=t.plugins.get("Dialog"),i=t.locale.t;this.formView||(this.formView=this._createFormView()),e.show({id:"findAndReplace",title:i("Find and replace"),content:this.formView,position:I.EDITOR_TOP_SIDE,onShow:()=>{this._setupFormView()},onHide:()=>{this.fire("searchReseted")}})}_createFormView(){const t=this.editor,e=new(E(z))(t.locale),i=t.commands,n=this.editor.plugins.get("FindAndReplaceEditing").state;e.bind("highlightOffset").to(n,"highlightedOffset"),e.listenTo(n.results,"change",()=>{e.matchCount=n.results.length});const o=i.get("findNext"),r=i.get("findPrevious"),h=i.get("replace"),a=i.get("replaceAll");return e.bind("_areCommandsEnabled").to(o,"isEnabled",r,"isEnabled",h,"isEnabled",a,"isEnabled",(l,d,u,f)=>({findNext:l,findPrevious:d,replace:u,replaceAll:f})),e.delegate("findNext","findPrevious","replace","replaceAll").to(this),e.on("change:isDirty",(l,d,u)=>{u&&this.fire("searchReseted")}),e}_setupFormView(){this.formView.disableCssTransitions(),this.formView.reset(),this.formView._findInputView.fieldView.select(),this.formView.enableCssTransitions()}}class Z extends _{_state;constructor(t,e){super(t),this.isEnabled=!0,this.affectsData=!1,this._state=e}execute(t,{matchCase:e,wholeWords:i}={}){const{editor:s}=this,{model:n}=s,o=s.plugins.get("FindAndReplaceUtils");let r,h="";typeof t=="string"?r=(...d)=>({results:o.findByTextCallback(t,{matchCase:e,wholeWords:i})(...d),searchText:t}):r=t;const a=r;r=(...d)=>{const u=a(...d);return u&&"searchText"in u&&(h=u.searchText),u};const l=n.document.getRootNames().reduce((d,u)=>o.updateFindResultFromRange(n.createRangeIn(n.document.getRoot(u)),n,r,d),null);return this._state.clear(n),this._state.results.addMany(l),this._state.highlightedResult=l.get(0),this._state.searchText=h,r&&(this._state.lastSearchCallback=r),this._state.matchCase=!!e,this._state.matchWholeWords=!!i,{results:l,findCallback:r}}}class J extends $(){constructor(t){super(),this.set("results",new m),this.set("highlightedResult",null),this.set("highlightedOffset",0),this.set("searchText",""),this.set("replaceText",""),this.set("lastSearchCallback",null),this.set("matchCase",!1),this.set("matchWholeWords",!1),this.results.on("change",(e,{removed:i,index:s})=>{if(Array.from(i).length){let n=!1;if(t.change(o=>{for(const r of i)this.highlightedResult===r&&(n=!0),t.markers.has(r.marker.name)&&o.removeMarker(r.marker)}),n){const o=s>=this.results.length?0:s;this.highlightedResult=this.results.get(o)}}}),this.on("change:highlightedResult",()=>{this.refreshHighlightOffset(t)})}clear(t){this.searchText="",t.change(e=>{if(this.highlightedResult){const i=this.highlightedResult.marker.name.split(":")[1],s=t.markers.get(`findResultHighlighted:${i}`);s&&e.removeMarker(s)}[...this.results].forEach(({marker:i})=>{e.removeMarker(i)})}),this.results.clear()}refreshHighlightOffset(t){const{highlightedResult:e,results:i}=this;e?this.highlightedOffset=R(t,[...i]).indexOf(e)+1:this.highlightedOffset=0}}function R(c,t){const e={before:-1,same:0,after:1,different:1};return c.document.getRootNames().flatMap(i=>t.filter(s=>s.marker.getStart().root.rootName===i).sort((s,n)=>e[s.marker.getStart().compareWith(n.marker.getStart())]))}class k extends _{_state;constructor(t,e){super(t),this.isEnabled=!0,this._state=e,this._isEnabledBasedOnSelection=!1}_replace(t,e){const{model:i}=this.editor,s=e.marker.getRange();i.canEditAt(s)&&i.change(n=>{if(s.root.rootName==="$graveyard"){this._state.results.remove(e);return}let o={};for(const r of s.getItems())if(r.is("$text")||r.is("$textProxy")){o=r.getAttributes();break}i.insertContent(n.createText(t,o),s),this._state.results.has(e)&&this._state.results.remove(e)})}}class X extends k{execute(t,e){const i=Math.max(this._state.highlightedOffset-1,0);if(this._replace(t,e),this._state.results.length){const s=R(this.editor.model,[...this._state.results]);this._state.highlightedResult=s[i%s.length]}}}class Y extends k{execute(t,e){const{editor:i}=this,{model:s}=i,n=i.plugins.get("FindAndReplaceUtils"),o=e instanceof m?e:s.document.getRootNames().reduce((r,h)=>n.updateFindResultFromRange(s.createRangeIn(s.document.getRoot(h)),s,n.findByTextCallback(e,this._state),r),null);o.length&&s.change(()=>{[...o].forEach(r=>{this._replace(t,r)})})}}class C extends _{_state;constructor(t,e){super(t),this.affectsData=!1,this._state=e,this.isEnabled=!1,this.listenTo(this._state.results,"change",()=>{this.isEnabled=this._state.results.length>1})}refresh(){this.isEnabled=this._state.results.length>1}execute(){const t=this._state.results,e=t.getIndex(this._state.highlightedResult),i=e+1>=t.length?0:e+1;this._state.highlightedResult=this._state.results.get(i)}}class ee extends C{execute(){const e=this._state.results.getIndex(this._state.highlightedResult),i=e-1<0?this._state.results.length-1:e-1;this._state.highlightedResult=this._state.results.get(i)}}class te extends p{static get pluginName(){return"FindAndReplaceUtils"}static get isOfficialPlugin(){return!0}updateFindResultFromRange(t,e,i,s){const n=s||new m,o=r=>n.find(h=>{const{marker:a}=h,l=a.getRange(),d=r.getRange();return l.isEqual(d)});return e.change(r=>{[...t].forEach(({type:h,item:a})=>{if(h==="elementStart"&&e.schema.checkChild(a,"$text")){let l=i({item:a,text:this.rangeToText(e.createRangeIn(a))});if(!l)return;"results"in l&&(l=l.results),l.forEach(d=>{const u=`findResult:${W()}`,f=r.addMarker(u,{usingOperation:!1,affectsData:!1,range:r.createRange(r.createPositionAt(a,d.start),r.createPositionAt(a,d.end))}),y=ie(n,f);o(f)||n.add({id:u,label:d.label,marker:f},y)})}})}),n}rangeToText(t){return Array.from(t.getItems({shallow:!0})).reduce((e,i)=>i.is("$text")||i.is("$textProxy")?e+i.data:`${e}
@@ -1,4 +1,4 @@
1
- import{Plugin as h,Command as q}from"../../../../../@ckeditor_ckeditor5-core@46.1.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{createDropdown as O,addListToDropdown as P,MenuBarMenuView as z,MenuBarMenuListView as L,MenuBarMenuListItemView as T,MenuBarMenuListItemButtonView as E,normalizeColorOptions as j,getLocalizedColorOptions as H,focusChildOnDropdownOpen as Y,ColorSelectorView as _,UIModel as D}from"../../../../../@ckeditor_ckeditor5-ui@46.1.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{CKEditorError as I,Collection as $}from"../../../../../@ckeditor_ckeditor5-utils@46.1.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{IconFontBackground as W,IconFontColor as Z,IconFontFamily as V,IconFontSize as N}from"../../../../../@ckeditor_ckeditor5-icons@46.1.0/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import{addBackgroundStylesRules as J,isLengthStyleValue as Q,isPercentageStyleValue as X}from"../../../../../@ckeditor_ckeditor5-engine@46.1.0/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";/**
1
+ import{Plugin as h,Command as q}from"../../../../../@ckeditor_ckeditor5-core@46.1.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{createDropdown as O,addListToDropdown as P,MenuBarMenuView as z,MenuBarMenuListView as L,MenuBarMenuListItemView as T,MenuBarMenuListItemButtonView as E,normalizeColorOptions as j,getLocalizedColorOptions as H,focusChildOnDropdownOpen as Y,ColorSelectorView as _,UIModel as D}from"../../../../../@ckeditor_ckeditor5-ui@46.1.1/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{CKEditorError as I,Collection as $}from"../../../../../@ckeditor_ckeditor5-utils@46.1.1/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{IconFontBackground as W,IconFontColor as Z,IconFontFamily as V,IconFontSize as N}from"../../../../../@ckeditor_ckeditor5-icons@46.1.1/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import{addBackgroundStylesRules as J,isLengthStyleValue as Q,isPercentageStyleValue as X}from"../../../../../@ckeditor_ckeditor5-engine@46.1.1/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";/**
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */class F extends q{attributeKey;constructor(e,o){super(e),this.attributeKey=o}refresh(){const e=this.editor.model,o=e.document;this.value=o.selection.getAttribute(this.attributeKey),this.isEnabled=e.schema.checkAttributeInSelection(o.selection,this.attributeKey)}execute(e={}){const o=this.editor.model,i=o.document.selection,s=e.value,c=e.batch,l=r=>{if(i.isCollapsed)s?r.setSelectionAttribute(this.attributeKey,s):r.removeSelectionAttribute(this.attributeKey);else{const u=o.schema.getValidRanges(i.getRanges(),this.attributeKey);for(const m of u)s?r.setAttribute(this.attributeKey,s,m):r.removeAttribute(this.attributeKey,m)}};c?o.enqueueChange(c,r=>{l(r)}):o.change(r=>{l(r)})}}const p="fontSize",g="fontFamily",w="fontColor",y="fontBackgroundColor";function U(t,e){const o={model:{key:t,values:[]},view:{},upcastAlso:{}};for(const n of e)o.model.values.push(n.model),o.view[n.model]=n.view,n.upcastAlso&&(o.upcastAlso[n.model]=n.upcastAlso);return o}function R(t){return e=>te(e.getStyle(t))}function G(t){return(e,{writer:o})=>o.createAttributeElement("span",{style:`${t}:${e}`},{priority:7})}function ee({dropdownView:t,colors:e,columns:o,removeButtonLabel:n,colorPickerLabel:i,documentColorsLabel:s,documentColorsCount:c,colorPickerViewConfig:l}){const r=t.locale,u=new _(r,{colors:e,columns:o,removeButtonLabel:n,colorPickerLabel:i,documentColorsLabel:s,documentColorsCount:c,colorPickerViewConfig:l});return t.colorSelectorView=u,t.panelView.children.add(u),u}function te(t){return t.replace(/\s/g,"")}class oe extends F{constructor(e){super(e,g)}}/**
@@ -1,4 +1,4 @@
1
- import{Plugin as f,Command as H}from"../../../../../@ckeditor_ckeditor5-core@46.1.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{Paragraph as v}from"../../../../../@ckeditor_ckeditor5-paragraph@46.1.0/node_modules/@ckeditor/ckeditor5-paragraph/dist/index.js";import{priorities as E,Collection as V,first as x}from"../../../../../@ckeditor_ckeditor5-utils@46.1.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{UIModel as C,createDropdown as M,addListToDropdown as k,MenuBarMenuView as L,MenuBarMenuListView as O,MenuBarMenuListItemView as P,MenuBarMenuListItemButtonView as T}from"../../../../../@ckeditor_ckeditor5-ui@46.1.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import"../../../../../@ckeditor_ckeditor5-engine@46.1.0/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";/**
1
+ import{Plugin as f,Command as H}from"../../../../../@ckeditor_ckeditor5-core@46.1.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{Paragraph as v}from"../../../../../@ckeditor_ckeditor5-paragraph@46.1.1/node_modules/@ckeditor/ckeditor5-paragraph/dist/index.js";import{priorities as E,Collection as V,first as x}from"../../../../../@ckeditor_ckeditor5-utils@46.1.1/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{UIModel as C,createDropdown as M,addListToDropdown as k,MenuBarMenuView as L,MenuBarMenuListView as O,MenuBarMenuListItemView as P,MenuBarMenuListItemButtonView as T}from"../../../../../@ckeditor_ckeditor5-ui@46.1.1/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import"../../../../../@ckeditor_ckeditor5-engine@46.1.1/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";/**
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */class y extends H{modelElements;constructor(e,t){super(e),this.modelElements=t}refresh(){const e=x(this.editor.model.document.selection.getSelectedBlocks());this.value=!!e&&this.modelElements.includes(e.name)&&e.name,this.isEnabled=!!e&&this.modelElements.some(t=>b(e,t,this.editor.model.schema))}execute(e){const t=this.editor.model,r=t.document,s=e.value;t.change(c=>{const l=Array.from(r.selection.getSelectedBlocks()).filter(a=>b(a,s,t.schema));for(const a of l)a.is("element",s)||c.rename(a,s)})}}function b(m,e,t){return t.checkChild(m.parent,e)&&!t.isObject(m)}const w="paragraph";class B extends f{static get pluginName(){return"HeadingEditing"}static get isOfficialPlugin(){return!0}constructor(e){super(e),e.config.define("heading",{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h2",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h3",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h4",title:"Heading 3",class:"ck-heading_heading3"}]})}static get requires(){return[v]}init(){const e=this.editor,t=e.config.get("heading.options"),r=[];for(const s of t)s.model!=="paragraph"&&(e.model.schema.register(s.model,{inheritAllFrom:"$block"}),e.conversion.elementToElement(s),r.push(s.model));this._addDefaultH1Conversion(e),e.commands.add("heading",new y(e,r))}afterInit(){const e=this.editor,t=e.commands.get("enter"),r=e.config.get("heading.options");t&&this.listenTo(t,"afterExecute",(s,c)=>{const l=e.model.document.selection.getFirstPosition().parent;r.some(g=>l.is("element",g.model))&&!l.is("element",w)&&l.childCount===0&&c.writer.rename(l,w)})}_addDefaultH1Conversion(e){e.conversion.for("upcast").elementToElement({model:"heading1",view:"h1",converterPriority:E.low+1})}}/**
@@ -1,4 +1,4 @@
1
- import{Plugin as w,Command as V}from"../../../../../@ckeditor_ckeditor5-core@46.1.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{IconEraser as k,IconMarker as x,IconPen as B}from"../../../../../@ckeditor_ckeditor5-icons@46.1.0/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import{ButtonView as y,createDropdown as E,addToolbarToDropdown as H,MenuBarMenuView as M,MenuBarMenuListView as A,MenuBarMenuListItemView as f,MenuBarMenuListItemButtonView as v,ListSeparatorView as T,SplitButtonView as I,ToolbarSeparatorView as P}from"../../../../../@ckeditor_ckeditor5-ui@46.1.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";/**
1
+ import{Plugin as w,Command as V}from"../../../../../@ckeditor_ckeditor5-core@46.1.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{IconEraser as k,IconMarker as x,IconPen as B}from"../../../../../@ckeditor_ckeditor5-icons@46.1.1/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import{ButtonView as y,createDropdown as E,addToolbarToDropdown as H,MenuBarMenuView as M,MenuBarMenuListView as A,MenuBarMenuListItemView as f,MenuBarMenuListItemButtonView as v,ListSeparatorView as T,SplitButtonView as I,ToolbarSeparatorView as P}from"../../../../../@ckeditor_ckeditor5-ui@46.1.1/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";/**
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */class O extends V{refresh(){const e=this.editor.model,t=e.document;this.value=t.selection.getAttribute("highlight"),this.isEnabled=e.schema.checkAttributeInSelection(t.selection,"highlight")}execute(e={}){const t=this.editor.model,r=t.document.selection,o=e.value;t.change(i=>{if(r.isCollapsed){const s=r.getFirstPosition();if(r.hasAttribute("highlight")){const n=c=>c.item.hasAttribute("highlight")&&c.item.getAttribute("highlight")===this.value,h=s.getLastMatchingPosition(n,{direction:"backward"}),l=s.getLastMatchingPosition(n),u=i.createRange(h,l);!o||this.value===o?(s.isEqual(l)||i.removeAttribute("highlight",u),i.removeSelectionAttribute("highlight")):(s.isEqual(l)||i.setAttribute("highlight",o,u),i.setSelectionAttribute("highlight",o))}else o&&i.setSelectionAttribute("highlight",o)}else{const s=t.schema.getValidRanges(r.getRanges(),"highlight");for(const n of s)o?i.setAttribute("highlight",o,n):i.removeAttribute("highlight",n)}})}}class _ extends w{static get pluginName(){return"HighlightEditing"}static get isOfficialPlugin(){return!0}constructor(e){super(e),e.config.define("highlight",{options:[{model:"yellowMarker",class:"marker-yellow",title:"Yellow marker",color:"var(--ck-content-highlight-marker-yellow)",type:"marker"},{model:"greenMarker",class:"marker-green",title:"Green marker",color:"var(--ck-content-highlight-marker-green)",type:"marker"},{model:"pinkMarker",class:"marker-pink",title:"Pink marker",color:"var(--ck-content-highlight-marker-pink)",type:"marker"},{model:"blueMarker",class:"marker-blue",title:"Blue marker",color:"var(--ck-content-highlight-marker-blue)",type:"marker"},{model:"redPen",class:"pen-red",title:"Red pen",color:"var(--ck-content-highlight-pen-red)",type:"pen"},{model:"greenPen",class:"pen-green",title:"Green pen",color:"var(--ck-content-highlight-pen-green)",type:"pen"}]})}init(){const e=this.editor;e.model.schema.extend("$text",{allowAttributes:"highlight"});const t=e.config.get("highlight.options");e.conversion.attributeToElement(R(t)),e.commands.add("highlight",new O(e))}}function R(d){const e={model:{key:"highlight",values:[]},view:{}};for(const t of d)e.model.values.push(t.model),e.view[t.model]={name:"mark",classes:t.class};return e}class S extends w{get localizedOptionTitles(){const e=this.editor.t;return{"Yellow marker":e("Yellow marker"),"Green marker":e("Green marker"),"Pink marker":e("Pink marker"),"Blue marker":e("Blue marker"),"Red pen":e("Red pen"),"Green pen":e("Green pen")}}static get pluginName(){return"HighlightUI"}static get isOfficialPlugin(){return!0}init(){const e=this.editor.config.get("highlight.options");for(const t of e)this._addHighlighterButton(t);this._addRemoveHighlightButton(),this._addDropdown(e),this._addMenuBarButton(e)}_addRemoveHighlightButton(){const e=this.editor.t,t=this.editor.commands.get("highlight");this._addButton("removeHighlight",e("Remove highlight"),k,null,g=>{g.bind("isEnabled").to(t,"isEnabled")})}_addHighlighterButton(e){const t=this.editor.commands.get("highlight");this._addButton("highlight:"+e.model,e.title,b(e.type),e.model,g);function g(r){r.bind("isEnabled").to(t,"isEnabled"),r.bind("isOn").to(t,"value",o=>o===e.model),r.iconView.fillColor=e.color,r.isToggleable=!0}}_addButton(e,t,g,r,o){const i=this.editor;i.ui.componentFactory.add(e,s=>{const n=new y(s),h=this.localizedOptionTitles[t]?this.localizedOptionTitles[t]:t;return n.set({label:h,icon:g,tooltip:!0}),n.on("execute",()=>{i.execute("highlight",{value:r}),i.editing.view.focus()}),o(n),n})}_addDropdown(e){const t=this.editor,g=t.t,r=t.ui.componentFactory,o=e[0],i=e.reduce((s,n)=>(s[n.model]=n,s),{});r.add("highlight",s=>{const n=t.commands.get("highlight"),h=E(s,I),l=h.buttonView;l.set({label:g("Highlight"),tooltip:!0,lastExecuted:o.model,commandValue:o.model,isToggleable:!0}),l.bind("icon").to(n,"value",a=>b(c(a,"type"))),l.bind("color").to(n,"value",a=>c(a,"color")),l.bind("commandValue").to(n,"value",a=>c(a,"model")),l.bind("isOn").to(n,"value",a=>!!a),l.delegate("execute").to(h);const u=()=>{const a=e.map(m=>{const p=r.create("highlight:"+m.model);return this.listenTo(p,"execute",()=>{h.buttonView.set({lastExecuted:m.model})}),p});return a.push(new P),a.push(r.create("removeHighlight")),a};h.bind("isEnabled").to(n,"isEnabled"),H(h,u,{enableActiveItemFocusOnDropdownOpen:!0,ariaLabel:g("Text highlight toolbar")}),C(h),l.on("execute",()=>{t.execute("highlight",{value:l.commandValue})}),this.listenTo(h,"execute",()=>{t.editing.view.focus()});function c(a,m){const p=!a||a===l.lastExecuted?l.lastExecuted:a;return i[p][m]}return h})}_addMenuBarButton(e){const t=this.editor,g=t.t,r=t.commands.get("highlight");t.ui.componentFactory.add("menuBar:highlight",o=>{const i=new M(o);i.buttonView.set({label:g("Highlight"),icon:b("marker")}),i.bind("isEnabled").to(r),i.buttonView.iconView.fillColor="transparent";const s=new A(o);for(const l of e){const u=new f(o,i),c=new v(o);c.set({label:l.title,icon:b(l.type),role:"menuitemradio",isToggleable:!0}),c.iconView.fillColor=l.color,c.delegate("execute").to(i),c.bind("isOn").to(r,"value",a=>a===l.model),c.on("execute",()=>{t.execute("highlight",{value:l.model}),t.editing.view.focus()}),u.children.add(c),s.items.add(u)}s.items.add(new T(o));const n=new f(o,i),h=new v(o);return h.set({label:g("Remove highlight"),icon:k}),h.delegate("execute").to(i),h.on("execute",()=>{t.execute("highlight",{value:null}),t.editing.view.focus()}),n.children.add(h),s.items.add(n),i.panelView.children.add(s),i})}}function C(d){d.buttonView.actionView.iconView.bind("fillColor").to(d.buttonView,"color")}function b(d){return d==="marker"?x:B}class G extends w{static get requires(){return[_,S]}static get pluginName(){return"Highlight"}static get isOfficialPlugin(){return!0}}export{G as Highlight,O as HighlightCommand,_ as HighlightEditing,S as HighlightUI};
@@ -1,4 +1,4 @@
1
- import{Plugin as s,Command as m}from"../../../../../@ckeditor_ckeditor5-core@46.1.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{Widget as u,toWidget as d,findOptimalInsertionRange as h}from"../../../../../@ckeditor_ckeditor5-widget@46.1.0/node_modules/@ckeditor/ckeditor5-widget/dist/index.js";import{IconHorizontalLine as g}from"../../../../../@ckeditor_ckeditor5-icons@46.1.0/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import{ButtonView as z,MenuBarMenuListItemButtonView as L}from"../../../../../@ckeditor_ckeditor5-ui@46.1.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";/**
1
+ import{Plugin as s,Command as m}from"../../../../../@ckeditor_ckeditor5-core@46.1.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{Widget as u,toWidget as d,findOptimalInsertionRange as h}from"../../../../../@ckeditor_ckeditor5-widget@46.1.1/node_modules/@ckeditor/ckeditor5-widget/dist/index.js";import{IconHorizontalLine as g}from"../../../../../@ckeditor_ckeditor5-icons@46.1.1/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import{ButtonView as z,MenuBarMenuListItemButtonView as L}from"../../../../../@ckeditor_ckeditor5-ui@46.1.1/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";/**
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */class p extends m{refresh(){const t=this.editor.model,e=t.schema,n=t.document.selection;this.isEnabled=f(n,e,t)}execute(){const t=this.editor.model;t.change(e=>{const n=e.createElement("horizontalLine");t.insertObject(n,null,null,{setSelection:"after"})})}}function f(o,t,e){const n=E(o,e);return t.checkChild(n,"horizontalLine")}function E(o,t){const n=h(o,t).start.parent;return n.isEmpty&&!n.is("element","$root")?n.parent:n}class H extends s{static get pluginName(){return"HorizontalLineEditing"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=t.model.schema,n=t.t,a=t.conversion;e.register("horizontalLine",{inheritAllFrom:"$blockObject"}),a.for("dataDowncast").elementToElement({model:"horizontalLine",view:(r,{writer:i})=>i.createEmptyElement("hr")}),a.for("editingDowncast").elementToStructure({model:"horizontalLine",view:(r,{writer:i})=>{const c=n("Horizontal line"),l=i.createContainerElement("div",null,i.createEmptyElement("hr"));return i.addClass("ck-horizontal-line",l),i.setCustomProperty("hr",!0,l),b(l,i,c)}}),a.for("upcast").elementToElement({view:"hr",model:"horizontalLine"}),t.commands.add("horizontalLine",new p(t))}}function b(o,t,e){return t.setCustomProperty("horizontalLine",!0,o),d(o,t,{label:e})}class v extends s{static get pluginName(){return"HorizontalLineUI"}static get isOfficialPlugin(){return!0}init(){const t=this.editor;t.ui.componentFactory.add("horizontalLine",()=>{const e=this._createButton(z);return e.set({tooltip:!0}),e}),t.ui.componentFactory.add("menuBar:horizontalLine",()=>this._createButton(L))}_createButton(t){const e=this.editor,n=e.locale,a=e.commands.get("horizontalLine"),r=new t(e.locale),i=n.t;return r.set({label:i("Horizontal line"),icon:g}),r.bind("isEnabled").to(a,"isEnabled"),this.listenTo(r,"execute",()=>{e.execute("horizontalLine"),e.editing.view.focus()}),r}}class B extends s{static get requires(){return[H,v,u]}static get pluginName(){return"HorizontalLine"}static get isOfficialPlugin(){return!0}}export{B as HorizontalLine,p as HorizontalLineCommand,H as HorizontalLineEditing,v as HorizontalLineUI};