@ncino/web-components 7.0.0-preview.8 → 7.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 (67) hide show
  1. package/dist/components/input-rich-text/ckeditor-config.js +1 -1
  2. package/dist/components/input-rich-text/input-rich-text.slds.js +2 -2
  3. package/dist/components/progress-ring/gator/progress-ring.gator.js +36 -0
  4. package/dist/components/progress-ring/index.js +1 -0
  5. package/dist/index.gator.js +1 -1
  6. package/dist/index.js +1 -1
  7. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-alignment@45.2.1 → @ckeditor_ckeditor5-alignment@45.2.2}/node_modules/@ckeditor/ckeditor5-alignment/dist/index.js +1 -1
  8. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-autoformat@45.2.1 → @ckeditor_ckeditor5-autoformat@45.2.2}/node_modules/@ckeditor/ckeditor5-autoformat/dist/index.js +1 -1
  9. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-autosave@45.2.1 → @ckeditor_ckeditor5-autosave@45.2.2}/node_modules/@ckeditor/ckeditor5-autosave/dist/index.js +1 -1
  10. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-basic-styles@45.2.1 → @ckeditor_ckeditor5-basic-styles@45.2.2}/node_modules/@ckeditor/ckeditor5-basic-styles/dist/index.js +1 -1
  11. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-block-quote@45.2.1 → @ckeditor_ckeditor5-block-quote@45.2.2}/node_modules/@ckeditor/ckeditor5-block-quote/dist/index.js +1 -1
  12. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-clipboard@45.2.1 → @ckeditor_ckeditor5-clipboard@45.2.2}/node_modules/@ckeditor/ckeditor5-clipboard/dist/index.js +4 -4
  13. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-cloud-services@45.2.1 → @ckeditor_ckeditor5-cloud-services@45.2.2}/node_modules/@ckeditor/ckeditor5-cloud-services/dist/index.js +1 -1
  14. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-code-block@45.2.1 → @ckeditor_ckeditor5-code-block@45.2.2}/node_modules/@ckeditor/ckeditor5-code-block/dist/index.js +1 -1
  15. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-core@45.2.1 → @ckeditor_ckeditor5-core@45.2.2}/node_modules/@ckeditor/ckeditor5-core/dist/index.js +1 -1
  16. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-editor-classic@45.2.1 → @ckeditor_ckeditor5-editor-classic@45.2.2}/node_modules/@ckeditor/ckeditor5-editor-classic/dist/index.js +1 -1
  17. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-engine@45.2.1 → @ckeditor_ckeditor5-engine@45.2.2}/node_modules/@ckeditor/ckeditor5-engine/dist/index.js +1 -1
  18. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-enter@45.2.1 → @ckeditor_ckeditor5-enter@45.2.2}/node_modules/@ckeditor/ckeditor5-enter/dist/index.js +1 -1
  19. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-essentials@45.2.1 → @ckeditor_ckeditor5-essentials@45.2.2}/node_modules/@ckeditor/ckeditor5-essentials/dist/index.js +1 -1
  20. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-find-and-replace@45.2.1 → @ckeditor_ckeditor5-find-and-replace@45.2.2}/node_modules/@ckeditor/ckeditor5-find-and-replace/dist/index.js +1 -1
  21. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-font@45.2.1 → @ckeditor_ckeditor5-font@45.2.2}/node_modules/@ckeditor/ckeditor5-font/dist/index.js +1 -1
  22. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-heading@45.2.1 → @ckeditor_ckeditor5-heading@45.2.2}/node_modules/@ckeditor/ckeditor5-heading/dist/index.js +1 -1
  23. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-highlight@45.2.1 → @ckeditor_ckeditor5-highlight@45.2.2}/node_modules/@ckeditor/ckeditor5-highlight/dist/index.js +1 -1
  24. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-horizontal-line@45.2.1 → @ckeditor_ckeditor5-horizontal-line@45.2.2}/node_modules/@ckeditor/ckeditor5-horizontal-line/dist/index.js +1 -1
  25. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-html-embed@45.2.1 → @ckeditor_ckeditor5-html-embed@45.2.2}/node_modules/@ckeditor/ckeditor5-html-embed/dist/index.js +1 -1
  26. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-html-support@45.2.1 → @ckeditor_ckeditor5-html-support@45.2.2}/node_modules/@ckeditor/ckeditor5-html-support/dist/index.js +1 -1
  27. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-image@45.2.1 → @ckeditor_ckeditor5-image@45.2.2}/node_modules/@ckeditor/ckeditor5-image/dist/index.js +1 -1
  28. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-indent@45.2.1 → @ckeditor_ckeditor5-indent@45.2.2}/node_modules/@ckeditor/ckeditor5-indent/dist/index.js +1 -1
  29. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-language@45.2.1 → @ckeditor_ckeditor5-language@45.2.2}/node_modules/@ckeditor/ckeditor5-language/dist/index.js +1 -1
  30. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-link@45.2.1 → @ckeditor_ckeditor5-link@45.2.2}/node_modules/@ckeditor/ckeditor5-link/dist/index.js +1 -1
  31. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-list@45.2.1 → @ckeditor_ckeditor5-list@45.2.2}/node_modules/@ckeditor/ckeditor5-list/dist/index.js +1 -1
  32. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-markdown-gfm@45.2.1 → @ckeditor_ckeditor5-markdown-gfm@45.2.2}/node_modules/@ckeditor/ckeditor5-markdown-gfm/dist/index.js +1 -1
  33. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-media-embed@45.2.1 → @ckeditor_ckeditor5-media-embed@45.2.2}/node_modules/@ckeditor/ckeditor5-media-embed/dist/index.js +1 -1
  34. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-mention@45.2.1 → @ckeditor_ckeditor5-mention@45.2.2}/node_modules/@ckeditor/ckeditor5-mention/dist/index.js +1 -1
  35. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-page-break@45.2.1 → @ckeditor_ckeditor5-page-break@45.2.2}/node_modules/@ckeditor/ckeditor5-page-break/dist/index.js +1 -1
  36. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-paragraph@45.2.1 → @ckeditor_ckeditor5-paragraph@45.2.2}/node_modules/@ckeditor/ckeditor5-paragraph/dist/index.js +1 -1
  37. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-paste-from-office@45.2.1 → @ckeditor_ckeditor5-paste-from-office@45.2.2}/node_modules/@ckeditor/ckeditor5-paste-from-office/dist/index.js +1 -1
  38. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-remove-format@45.2.1 → @ckeditor_ckeditor5-remove-format@45.2.2}/node_modules/@ckeditor/ckeditor5-remove-format/dist/index.js +1 -1
  39. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-select-all@45.2.1 → @ckeditor_ckeditor5-select-all@45.2.2}/node_modules/@ckeditor/ckeditor5-select-all/dist/index.js +1 -1
  40. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-show-blocks@45.2.1 → @ckeditor_ckeditor5-show-blocks@45.2.2}/node_modules/@ckeditor/ckeditor5-show-blocks/dist/index.js +1 -1
  41. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-source-editing@45.2.1 → @ckeditor_ckeditor5-source-editing@45.2.2}/node_modules/@ckeditor/ckeditor5-source-editing/dist/index.js +1 -1
  42. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-special-characters@45.2.1 → @ckeditor_ckeditor5-special-characters@45.2.2}/node_modules/@ckeditor/ckeditor5-special-characters/dist/index.js +1 -1
  43. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-style@45.2.1 → @ckeditor_ckeditor5-style@45.2.2}/node_modules/@ckeditor/ckeditor5-style/dist/index.js +1 -1
  44. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-table@45.2.1 → @ckeditor_ckeditor5-table@45.2.2}/node_modules/@ckeditor/ckeditor5-table/dist/index.js +1 -1
  45. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-typing@45.2.1 → @ckeditor_ckeditor5-typing@45.2.2}/node_modules/@ckeditor/ckeditor5-typing/dist/index.js +1 -1
  46. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-ui@45.2.1 → @ckeditor_ckeditor5-ui@45.2.2}/node_modules/@ckeditor/ckeditor5-ui/dist/index.js +1 -1
  47. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-undo@45.2.1 → @ckeditor_ckeditor5-undo@45.2.2}/node_modules/@ckeditor/ckeditor5-undo/dist/index.js +1 -1
  48. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-upload@45.2.1 → @ckeditor_ckeditor5-upload@45.2.2}/node_modules/@ckeditor/ckeditor5-upload/dist/index.js +1 -1
  49. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-utils@45.2.1 → @ckeditor_ckeditor5-utils@45.2.2}/node_modules/@ckeditor/ckeditor5-utils/dist/index.js +1 -1
  50. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-widget@45.2.1 → @ckeditor_ckeditor5-widget@45.2.2}/node_modules/@ckeditor/ckeditor5-widget/dist/index.js +1 -1
  51. package/dist/packages/web-components/public/styles/gator/gator-global-styles.css.js +1 -1
  52. package/dist/packages/web-components/src/components/progress-ring/gator/progress-ring.gator.scss.js +1 -0
  53. package/dist/packages/web-components/src/tokens/primitive.tokens.scss.js +1 -1
  54. package/dist/styles/gator/_gator-typography.css +186 -0
  55. package/dist/styles/gator/gator-global-styles.css +2 -5
  56. package/dist/types/components/progress-ring/gator/progress-ring.gator.d.ts +37 -0
  57. package/dist/types/components/progress-ring/gator/progress-ring.gator.test.d.ts +0 -0
  58. package/dist/types/components/progress-ring/index.d.ts +1 -0
  59. package/dist/types/index.d.ts +1 -0
  60. package/dist/types/index.gator.d.ts +1 -0
  61. package/package.json +2 -2
  62. package/web-types.json +55 -1
  63. package/dist/assets/nCino_AvenirHv.woff2 +0 -0
  64. package/dist/assets/nCino_AvenirMd.woff2 +0 -0
  65. /package/dist/assets/node_modules/.pnpm/{ckeditor5@45.2.1 → ckeditor5@45.2.2}/node_modules/ckeditor5/dist/ckeditor5.css +0 -0
  66. /package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-icons@45.2.1 → @ckeditor_ckeditor5-icons@45.2.2}/node_modules/@ckeditor/ckeditor5-icons/dist/index.js +0 -0
  67. /package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-watchdog@45.2.1 → @ckeditor_ckeditor5-watchdog@45.2.2}/node_modules/@ckeditor/ckeditor5-watchdog/dist/index.js +0 -0
@@ -1,4 +1,4 @@
1
- import{Plugin as o}from"../../../../../@ckeditor_ckeditor5-core@45.2.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{Typing as f}from"../../../../../@ckeditor_ckeditor5-typing@45.2.1/node_modules/@ckeditor/ckeditor5-typing/dist/index.js";import{IconSpecialCharacters as b}from"../../../../../@ckeditor_ckeditor5-icons@45.2.1/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import{Dialog as k,ButtonView as g,MenuBarMenuListItemButtonView as C,DialogViewPosition as _,View as h,LabeledFieldView as y,createLabeledDropdown as x,ViewModel as v,addListToDropdown as T,addKeyboardHandlingForGrid as V,FocusCycler as S}from"../../../../../@ckeditor_ckeditor5-ui@45.2.1/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{CKEditorError as w,Collection as D,FocusTracker as p,KeystrokeHandler as m,global as P}from"../../../../../@ckeditor_ckeditor5-utils@45.2.1/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";/**
1
+ import{Plugin as o}from"../../../../../@ckeditor_ckeditor5-core@45.2.2/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{Typing as f}from"../../../../../@ckeditor_ckeditor5-typing@45.2.2/node_modules/@ckeditor/ckeditor5-typing/dist/index.js";import{IconSpecialCharacters as b}from"../../../../../@ckeditor_ckeditor5-icons@45.2.2/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import{Dialog as k,ButtonView as g,MenuBarMenuListItemButtonView as C,DialogViewPosition as _,View as h,LabeledFieldView as y,createLabeledDropdown as x,ViewModel as v,addListToDropdown as T,addKeyboardHandlingForGrid as V,FocusCycler as S}from"../../../../../@ckeditor_ckeditor5-ui@45.2.2/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{CKEditorError as w,Collection as D,FocusTracker as p,KeystrokeHandler as m,global as P}from"../../../../../@ckeditor_ckeditor5-utils@45.2.2/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
  */class G extends h{tiles;focusTracker;keystrokes;constructor(e){super(e),this.tiles=this.createCollection(),this.setTemplate({tag:"div",children:[{tag:"div",attributes:{class:["ck","ck-character-grid__tiles"]},children:this.tiles}],attributes:{class:["ck","ck-character-grid"]}}),this.focusTracker=new p,this.keystrokes=new m,V({keystrokeHandler:this.keystrokes,focusTracker:this.focusTracker,gridItems:this.tiles,numberOfColumns:()=>P.window.getComputedStyle(this.element.firstChild).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}createTile(e,t){const a=new g(this.locale);return a.set({label:e,withText:!0,class:"ck-character-grid__tile"}),a.extendTemplate({attributes:{title:t},on:{mouseover:a.bindTemplate.to("mouseover"),focus:a.bindTemplate.to("focus")}}),a.on("mouseover",()=>{this.fire("tileHover",{name:t,character:e})}),a.on("focus",()=>{this.fire("tileFocus",{name:t,character:e})}),a.on("execute",()=>{this.fire("execute",{name:t,character:e})}),a}render(){super.render();for(const e of this.tiles)this.focusTracker.add(e.element);this.tiles.on("change",(e,{added:t,removed:a})=>{if(t.length>0)for(const r of t)this.focusTracker.add(r.element);if(a.length>0)for(const r of a)this.focusTracker.remove(r.element)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.keystrokes.destroy()}focus(){this.tiles.first.focus()}}class q extends h{constructor(e){super(e);const t=this.bindTemplate;this.set("character",null),this.set("name",null),this.bind("code").to(this,"character",N),this.setTemplate({tag:"div",children:[{tag:"span",attributes:{class:["ck-character-info__name"]},children:[{text:t.to("name",a=>a||"​")}]},{tag:"span",attributes:{class:["ck-character-info__code"]},children:[{text:t.to("code")}]}],attributes:{class:["ck","ck-character-info"]}})}}function N(c){return c===null?"":"U+"+("0000"+c.codePointAt(0).toString(16)).slice(-4)}class I extends h{items;focusTracker;keystrokes;_focusCycler;categoriesView;gridView;infoView;constructor(e,t,a,r){super(e),this.categoriesView=t,this.gridView=a,this.infoView=r,this.items=this.createCollection(),this.focusTracker=new p,this.keystrokes=new m,this._focusCycler=new S({focusables:this.items,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"div",children:[this.categoriesView,this.gridView,this.infoView],attributes:{tabindex:"-1"}}),this.items.add(this.categoriesView),this.items.add(this.gridView)}render(){super.render(),this.focusTracker.add(this.categoriesView.element),this.focusTracker.add(this.gridView.element),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}}class A extends h{_groupNames;_dropdownView;constructor(e,t){super(e),this.set("currentGroupName",Array.from(t.entries())[0][0]),this._groupNames=t,this._dropdownView=new y(e,x),this.setTemplate({tag:"div",attributes:{class:["ck","ck-character-categories"]},children:[this._dropdownView]})}render(){super.render(),this._setupDropdown()}focus(){this._dropdownView.focus()}_setupDropdown(){const e=new D;for(const[r,i]of this._groupNames){const s={type:"button",model:new v({name:r,label:i,role:"menuitemradio",withText:!0})};s.model.bind("isOn").to(this,"currentGroupName",l=>l===r),e.add(s)}const t=this.locale.t,a=t("Category");this._dropdownView.set({label:a,isEmpty:!1}),this._dropdownView.fieldView.panelPosition=this.locale.uiLanguageDirection==="rtl"?"se":"sw",this._dropdownView.fieldView.buttonView.set({withText:!0,tooltip:a,ariaLabel:a,ariaLabelledBy:void 0,isOn:!1}),this._dropdownView.fieldView.buttonView.bind("label").to(this,"currentGroupName",r=>this._groupNames.get(r)),this._dropdownView.fieldView.on("execute",({source:r})=>{this.currentGroupName=r.name}),T(this._dropdownView.fieldView,e,{ariaLabel:a,role:"menu"})}}const u="All";class U extends o{_characters;_groups;_allSpecialCharactersGroupLabel;static get requires(){return[f,k]}static get pluginName(){return"SpecialCharacters"}static get isOfficialPlugin(){return!0}constructor(e){super(e);const t=e.t;this._characters=new Map,this._groups=new Map,this._allSpecialCharactersGroupLabel=t("All")}init(){const e=this.editor;e.ui.componentFactory.add("specialCharacters",()=>{const t=this._createDialogButton(g);return t.set({tooltip:!0}),t}),e.ui.componentFactory.add("menuBar:specialCharacters",()=>this._createDialogButton(C))}addItems(e,t,a={label:e}){if(e===u)throw new w("special-character-invalid-group-name",null);const r=this._getGroup(e,a.label);for(const i of t)r.items.add(i.title),this._characters.set(i.title,i.character)}getGroups(){const e=Array.from(this._groups.keys()),t=this.editor.config.get("specialCharacters.order")||[],a=t.find(r=>!e.includes(r));if(a)throw new w("special-character-invalid-order-group-name",null,{invalidGroup:a});return new Set([...t,...e])}getCharactersForGroup(e){if(e===u)return new Set(this._characters.keys());const t=this._groups.get(e);if(t)return t.items}getCharacter(e){return this._characters.get(e)}_getGroup(e,t){return this._groups.has(e)||this._groups.set(e,{items:new Set,label:t}),this._groups.get(e)}_updateGrid(e,t){t.tiles.clear();const a=this.getCharactersForGroup(e);for(const r of a){const i=this.getCharacter(r);t.tiles.add(t.createTile(i,r))}}_createDropdownPanelContent(e){const t=Array.from(this.getGroups()).map(l=>[l,this._groups.get(l).label]),a=new Map([[u,this._allSpecialCharactersGroupLabel],...t]),r=new A(e,a),i=new G(e),s=new q(e);return i.on("tileHover",(l,n)=>{s.set(n)}),i.on("tileFocus",(l,n)=>{s.set(n)}),r.on("change:currentGroupName",(l,n,d)=>{this._updateGrid(d,i)}),this._updateGrid(r.currentGroupName,i),{categoriesView:r,gridView:i,infoView:s}}_createDialogButton(e){const t=this.editor,a=t.locale,r=new e(t.locale),i=t.commands.get("insertText"),s=a.t,l=this.editor.plugins.get("Dialog");return r.set({label:s("Special characters"),icon:b,isToggleable:!0}),r.bind("isOn").to(l,"id",n=>n==="specialCharacters"),r.bind("isEnabled").to(i,"isEnabled"),r.on("execute",()=>{if(l.id==="specialCharacters"){l.hide();return}this._showDialog()}),r}_showDialog(){const e=this.editor,t=e.plugins.get("Dialog"),a=e.locale,r=a.t,{categoriesView:i,gridView:s,infoView:l}=this._createDropdownPanelContent(a),n=new I(a,i,s,l);s.on("execute",(d,L)=>{e.execute("insertText",{text:L.character})}),t.show({id:"specialCharacters",title:r("Special characters"),className:"ck-special-characters",content:n,position:_.EDITOR_TOP_SIDE})}}class E extends o{static get pluginName(){return"SpecialCharactersArrows"}static get isOfficialPlugin(){return!0}init(){const e=this.editor,t=e.t;e.plugins.get("SpecialCharacters").addItems("Arrows",[{title:t("leftwards simple arrow"),character:"←"},{title:t("rightwards simple arrow"),character:"→"},{title:t("upwards simple arrow"),character:"↑"},{title:t("downwards simple arrow"),character:"↓"},{title:t("leftwards double arrow"),character:"⇐"},{title:t("rightwards double arrow"),character:"⇒"},{title:t("upwards double arrow"),character:"⇑"},{title:t("downwards double arrow"),character:"⇓"},{title:t("leftwards dashed arrow"),character:"⇠"},{title:t("rightwards dashed arrow"),character:"⇢"},{title:t("upwards dashed arrow"),character:"⇡"},{title:t("downwards dashed arrow"),character:"⇣"},{title:t("leftwards arrow to bar"),character:"⇤"},{title:t("rightwards arrow to bar"),character:"⇥"},{title:t("upwards arrow to bar"),character:"⤒"},{title:t("downwards arrow to bar"),character:"⤓"},{title:t("up down arrow with base"),character:"↨"},{title:t("back with leftwards arrow above"),character:"🔙"},{title:t("end with leftwards arrow above"),character:"🔚"},{title:t("on with exclamation mark with left right arrow above"),character:"🔛"},{title:t("soon with rightwards arrow above"),character:"🔜"},{title:t("top with upwards arrow above"),character:"🔝"}],{label:t("Arrows")})}}class M extends o{static get pluginName(){return"SpecialCharactersText"}static get isOfficialPlugin(){return!0}init(){const e=this.editor,t=e.t;e.plugins.get("SpecialCharacters").addItems("Text",[{character:"‹",title:t("Single left-pointing angle quotation mark")},{character:"›",title:t("Single right-pointing angle quotation mark")},{character:"«",title:t("Left-pointing double angle quotation mark")},{character:"»",title:t("Right-pointing double angle quotation mark")},{character:"‘",title:t("Left single quotation mark")},{character:"’",title:t("Right single quotation mark")},{character:"“",title:t("Left double quotation mark")},{character:"”",title:t("Right double quotation mark")},{character:"‚",title:t("Single low-9 quotation mark")},{character:"„",title:t("Double low-9 quotation mark")},{character:"¡",title:t("Inverted exclamation mark")},{character:"¿",title:t("Inverted question mark")},{character:"‥",title:t("Two dot leader")},{character:"…",title:t("Horizontal ellipsis")},{character:"‡",title:t("Double dagger")},{character:"‰",title:t("Per mille sign")},{character:"‱",title:t("Per ten thousand sign")},{character:"‼",title:t("Double exclamation mark")},{character:"⁈",title:t("Question exclamation mark")},{character:"⁉",title:t("Exclamation question mark")},{character:"⁇",title:t("Double question mark")},{character:"©",title:t("Copyright sign")},{character:"®",title:t("Registered sign")},{character:"™",title:t("Trade mark sign")},{character:"§",title:t("Section sign")},{character:"¶",title:t("Paragraph sign")},{character:"⁋",title:t("Reversed paragraph sign")}],{label:t("Text")})}}class O extends o{static get pluginName(){return"SpecialCharactersMathematical"}static get isOfficialPlugin(){return!0}init(){const e=this.editor,t=e.t;e.plugins.get("SpecialCharacters").addItems("Mathematical",[{character:"<",title:t("Less-than sign")},{character:">",title:t("Greater-than sign")},{character:"≤",title:t("Less-than or equal to")},{character:"≥",title:t("Greater-than or equal to")},{character:"–",title:t("En dash")},{character:"—",title:t("Em dash")},{character:"¯",title:t("Macron")},{character:"‾",title:t("Overline")},{character:"°",title:t("Degree sign")},{character:"−",title:t("Minus sign")},{character:"±",title:t("Plus-minus sign")},{character:"÷",title:t("Division sign")},{character:"⁄",title:t("Fraction slash")},{character:"×",title:t("Multiplication sign")},{character:"ƒ",title:t("Latin small letter f with hook")},{character:"∫",title:t("Integral")},{character:"∑",title:t("N-ary summation")},{character:"∞",title:t("Infinity")},{character:"√",title:t("Square root")},{character:"∼",title:t("Tilde operator")},{character:"≅",title:t("Approximately equal to")},{character:"≈",title:t("Almost equal to")},{character:"≠",title:t("Not equal to")},{character:"≡",title:t("Identical to")},{character:"∈",title:t("Element of")},{character:"∉",title:t("Not an element of")},{character:"∋",title:t("Contains as member")},{character:"∏",title:t("N-ary product")},{character:"∧",title:t("Logical and")},{character:"∨",title:t("Logical or")},{character:"¬",title:t("Not sign")},{character:"∩",title:t("Intersection")},{character:"∪",title:t("Union")},{character:"∂",title:t("Partial differential")},{character:"∀",title:t("For all")},{character:"∃",title:t("There exists")},{character:"∅",title:t("Empty set")},{character:"∇",title:t("Nabla")},{character:"∗",title:t("Asterisk operator")},{character:"∝",title:t("Proportional to")},{character:"∠",title:t("Angle")},{character:"¼",title:t("Vulgar fraction one quarter")},{character:"½",title:t("Vulgar fraction one half")},{character:"¾",title:t("Vulgar fraction three quarters")}],{label:t("Mathematical")})}}class F extends o{static get pluginName(){return"SpecialCharactersLatin"}static get isOfficialPlugin(){return!0}init(){const e=this.editor,t=e.t;e.plugins.get("SpecialCharacters").addItems("Latin",[{character:"Ā",title:t("Latin capital letter a with macron")},{character:"ā",title:t("Latin small letter a with macron")},{character:"Ă",title:t("Latin capital letter a with breve")},{character:"ă",title:t("Latin small letter a with breve")},{character:"Ą",title:t("Latin capital letter a with ogonek")},{character:"ą",title:t("Latin small letter a with ogonek")},{character:"Ć",title:t("Latin capital letter c with acute")},{character:"ć",title:t("Latin small letter c with acute")},{character:"Ĉ",title:t("Latin capital letter c with circumflex")},{character:"ĉ",title:t("Latin small letter c with circumflex")},{character:"Ċ",title:t("Latin capital letter c with dot above")},{character:"ċ",title:t("Latin small letter c with dot above")},{character:"Č",title:t("Latin capital letter c with caron")},{character:"č",title:t("Latin small letter c with caron")},{character:"Ď",title:t("Latin capital letter d with caron")},{character:"ď",title:t("Latin small letter d with caron")},{character:"Đ",title:t("Latin capital letter d with stroke")},{character:"đ",title:t("Latin small letter d with stroke")},{character:"Ē",title:t("Latin capital letter e with macron")},{character:"ē",title:t("Latin small letter e with macron")},{character:"Ĕ",title:t("Latin capital letter e with breve")},{character:"ĕ",title:t("Latin small letter e with breve")},{character:"Ė",title:t("Latin capital letter e with dot above")},{character:"ė",title:t("Latin small letter e with dot above")},{character:"Ę",title:t("Latin capital letter e with ogonek")},{character:"ę",title:t("Latin small letter e with ogonek")},{character:"Ě",title:t("Latin capital letter e with caron")},{character:"ě",title:t("Latin small letter e with caron")},{character:"Ĝ",title:t("Latin capital letter g with circumflex")},{character:"ĝ",title:t("Latin small letter g with circumflex")},{character:"Ğ",title:t("Latin capital letter g with breve")},{character:"ğ",title:t("Latin small letter g with breve")},{character:"Ġ",title:t("Latin capital letter g with dot above")},{character:"ġ",title:t("Latin small letter g with dot above")},{character:"Ģ",title:t("Latin capital letter g with cedilla")},{character:"ģ",title:t("Latin small letter g with cedilla")},{character:"Ĥ",title:t("Latin capital letter h with circumflex")},{character:"ĥ",title:t("Latin small letter h with circumflex")},{character:"Ħ",title:t("Latin capital letter h with stroke")},{character:"ħ",title:t("Latin small letter h with stroke")},{character:"Ĩ",title:t("Latin capital letter i with tilde")},{character:"ĩ",title:t("Latin small letter i with tilde")},{character:"Ī",title:t("Latin capital letter i with macron")},{character:"ī",title:t("Latin small letter i with macron")},{character:"Ĭ",title:t("Latin capital letter i with breve")},{character:"ĭ",title:t("Latin small letter i with breve")},{character:"Į",title:t("Latin capital letter i with ogonek")},{character:"į",title:t("Latin small letter i with ogonek")},{character:"İ",title:t("Latin capital letter i with dot above")},{character:"ı",title:t("Latin small letter dotless i")},{character:"IJ",title:t("Latin capital ligature ij")},{character:"ij",title:t("Latin small ligature ij")},{character:"Ĵ",title:t("Latin capital letter j with circumflex")},{character:"ĵ",title:t("Latin small letter j with circumflex")},{character:"Ķ",title:t("Latin capital letter k with cedilla")},{character:"ķ",title:t("Latin small letter k with cedilla")},{character:"ĸ",title:t("Latin small letter kra")},{character:"Ĺ",title:t("Latin capital letter l with acute")},{character:"ĺ",title:t("Latin small letter l with acute")},{character:"Ļ",title:t("Latin capital letter l with cedilla")},{character:"ļ",title:t("Latin small letter l with cedilla")},{character:"Ľ",title:t("Latin capital letter l with caron")},{character:"ľ",title:t("Latin small letter l with caron")},{character:"Ŀ",title:t("Latin capital letter l with middle dot")},{character:"ŀ",title:t("Latin small letter l with middle dot")},{character:"Ł",title:t("Latin capital letter l with stroke")},{character:"ł",title:t("Latin small letter l with stroke")},{character:"Ń",title:t("Latin capital letter n with acute")},{character:"ń",title:t("Latin small letter n with acute")},{character:"Ņ",title:t("Latin capital letter n with cedilla")},{character:"ņ",title:t("Latin small letter n with cedilla")},{character:"Ň",title:t("Latin capital letter n with caron")},{character:"ň",title:t("Latin small letter n with caron")},{character:"ʼn",title:t("Latin small letter n preceded by apostrophe")},{character:"Ŋ",title:t("Latin capital letter eng")},{character:"ŋ",title:t("Latin small letter eng")},{character:"Ō",title:t("Latin capital letter o with macron")},{character:"ō",title:t("Latin small letter o with macron")},{character:"Ŏ",title:t("Latin capital letter o with breve")},{character:"ŏ",title:t("Latin small letter o with breve")},{character:"Ő",title:t("Latin capital letter o with double acute")},{character:"ő",title:t("Latin small letter o with double acute")},{character:"Œ",title:t("Latin capital ligature oe")},{character:"œ",title:t("Latin small ligature oe")},{character:"Ŕ",title:t("Latin capital letter r with acute")},{character:"ŕ",title:t("Latin small letter r with acute")},{character:"Ŗ",title:t("Latin capital letter r with cedilla")},{character:"ŗ",title:t("Latin small letter r with cedilla")},{character:"Ř",title:t("Latin capital letter r with caron")},{character:"ř",title:t("Latin small letter r with caron")},{character:"Ś",title:t("Latin capital letter s with acute")},{character:"ś",title:t("Latin small letter s with acute")},{character:"Ŝ",title:t("Latin capital letter s with circumflex")},{character:"ŝ",title:t("Latin small letter s with circumflex")},{character:"Ş",title:t("Latin capital letter s with cedilla")},{character:"ş",title:t("Latin small letter s with cedilla")},{character:"Š",title:t("Latin capital letter s with caron")},{character:"š",title:t("Latin small letter s with caron")},{character:"Ţ",title:t("Latin capital letter t with cedilla")},{character:"ţ",title:t("Latin small letter t with cedilla")},{character:"Ť",title:t("Latin capital letter t with caron")},{character:"ť",title:t("Latin small letter t with caron")},{character:"Ŧ",title:t("Latin capital letter t with stroke")},{character:"ŧ",title:t("Latin small letter t with stroke")},{character:"Ũ",title:t("Latin capital letter u with tilde")},{character:"ũ",title:t("Latin small letter u with tilde")},{character:"Ū",title:t("Latin capital letter u with macron")},{character:"ū",title:t("Latin small letter u with macron")},{character:"Ŭ",title:t("Latin capital letter u with breve")},{character:"ŭ",title:t("Latin small letter u with breve")},{character:"Ů",title:t("Latin capital letter u with ring above")},{character:"ů",title:t("Latin small letter u with ring above")},{character:"Ű",title:t("Latin capital letter u with double acute")},{character:"ű",title:t("Latin small letter u with double acute")},{character:"Ų",title:t("Latin capital letter u with ogonek")},{character:"ų",title:t("Latin small letter u with ogonek")},{character:"Ŵ",title:t("Latin capital letter w with circumflex")},{character:"ŵ",title:t("Latin small letter w with circumflex")},{character:"Ŷ",title:t("Latin capital letter y with circumflex")},{character:"ŷ",title:t("Latin small letter y with circumflex")},{character:"Ÿ",title:t("Latin capital letter y with diaeresis")},{character:"Ź",title:t("Latin capital letter z with acute")},{character:"ź",title:t("Latin small letter z with acute")},{character:"Ż",title:t("Latin capital letter z with dot above")},{character:"ż",title:t("Latin small letter z with dot above")},{character:"Ž",title:t("Latin capital letter z with caron")},{character:"ž",title:t("Latin small letter z with caron")},{character:"ſ",title:t("Latin small letter long s")}],{label:t("Latin")})}}class R extends o{static get pluginName(){return"SpecialCharactersCurrency"}static get isOfficialPlugin(){return!0}init(){const e=this.editor,t=e.t;e.plugins.get("SpecialCharacters").addItems("Currency",[{character:"$",title:t("Dollar sign")},{character:"€",title:t("Euro sign")},{character:"¥",title:t("Yen sign")},{character:"£",title:t("Pound sign")},{character:"¢",title:t("Cent sign")},{character:"₠",title:t("Euro-currency sign")},{character:"₡",title:t("Colon sign")},{character:"₢",title:t("Cruzeiro sign")},{character:"₣",title:t("French franc sign")},{character:"₤",title:t("Lira sign")},{character:"¤",title:t("Currency sign")},{character:"₿",title:t("Bitcoin sign")},{character:"₥",title:t("Mill sign")},{character:"₦",title:t("Naira sign")},{character:"₧",title:t("Peseta sign")},{character:"₨",title:t("Rupee sign")},{character:"₩",title:t("Won sign")},{character:"₪",title:t("New sheqel sign")},{character:"₫",title:t("Dong sign")},{character:"₭",title:t("Kip sign")},{character:"₮",title:t("Tugrik sign")},{character:"₯",title:t("Drachma sign")},{character:"₰",title:t("German penny sign")},{character:"₱",title:t("Peso sign")},{character:"₲",title:t("Guarani sign")},{character:"₳",title:t("Austral sign")},{character:"₴",title:t("Hryvnia sign")},{character:"₵",title:t("Cedi sign")},{character:"₶",title:t("Livre tournois sign")},{character:"₷",title:t("Spesmilo sign")},{character:"₸",title:t("Tenge sign")},{character:"₹",title:t("Indian rupee sign")},{character:"₺",title:t("Turkish lira sign")},{character:"₻",title:t("Nordic mark sign")},{character:"₼",title:t("Manat sign")},{character:"₽",title:t("Ruble sign")}],{label:t("Currency")})}}class Q extends o{static get pluginName(){return"SpecialCharactersEssentials"}static get isOfficialPlugin(){return!0}static get requires(){return[R,M,O,E,F]}}export{U as SpecialCharacters,E as SpecialCharactersArrows,R as SpecialCharactersCurrency,Q as SpecialCharactersEssentials,F as SpecialCharactersLatin,O as SpecialCharactersMathematical,M as SpecialCharactersText};
@@ -1,4 +1,4 @@
1
- import{Plugin as d,Command as k}from"../../../../../@ckeditor_ckeditor5-core@45.2.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{createDropdown as _,View as g,ViewCollection as w,FocusCycler as A,LabelView as B,addKeyboardHandlingForGrid as F,ButtonView as V}from"../../../../../@ckeditor_ckeditor5-ui@45.2.1/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{first as T,logWarning as v,FocusTracker as b,KeystrokeHandler as S}from"../../../../../@ckeditor_ckeditor5-utils@45.2.1/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{findAttributeRange as U,findAttributeRangeBound as E}from"../../../../../@ckeditor_ckeditor5-typing@45.2.1/node_modules/@ckeditor/ckeditor5-typing/dist/index.js";import{isObject as x}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/predicate/isObject.js";/**
1
+ import{Plugin as d,Command as k}from"../../../../../@ckeditor_ckeditor5-core@45.2.2/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{createDropdown as _,View as g,ViewCollection as w,FocusCycler as A,LabelView as B,addKeyboardHandlingForGrid as F,ButtonView as V}from"../../../../../@ckeditor_ckeditor5-ui@45.2.2/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{first as T,logWarning as v,FocusTracker as b,KeystrokeHandler as S}from"../../../../../@ckeditor_ckeditor5-utils@45.2.2/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{findAttributeRange as U,findAttributeRangeBound as E}from"../../../../../@ckeditor_ckeditor5-typing@45.2.2/node_modules/@ckeditor/ckeditor5-typing/dist/index.js";import{isObject as x}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/predicate/isObject.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 C extends V{styleDefinition;previewView;constructor(e,t){super(e),this.styleDefinition=t,this.previewView=this._createPreview(),this.set({label:t.name,class:"ck-style-grid__button",withText:!0}),this.extendTemplate({attributes:{role:"option"}}),this.children.add(this.previewView,0)}_createPreview(){const e=new g(this.locale);return e.setTemplate({tag:"div",attributes:{class:["ck","ck-reset_all-excluded","ck-style-grid__button__preview","ck-content"],"aria-hidden":"true"},children:[this.styleDefinition.previewTemplate]}),e}}class D extends g{focusTracker;keystrokes;children;constructor(e,t){super(e),this.focusTracker=new b,this.keystrokes=new S,this.set("activeStyles",[]),this.set("enabledStyles",[]),this.children=this.createCollection(),this.children.delegate("execute").to(this);for(const s of t){const i=new C(e,s);this.children.add(i)}this.on("change:activeStyles",()=>{for(const s of this.children)s.isOn=this.activeStyles.includes(s.styleDefinition.name)}),this.on("change:enabledStyles",()=>{for(const s of this.children)s.isEnabled=this.enabledStyles.includes(s.styleDefinition.name)}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-style-grid"],role:"listbox"},children:this.children})}render(){super.render();for(const e of this.children)this.focusTracker.add(e.element);F({keystrokeHandler:this.keystrokes,focusTracker:this.focusTracker,gridItems:this.children,numberOfColumns:3,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection}),this.keystrokes.listenTo(this.element)}focus(){this.children.first.focus()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}}class m extends g{gridView;labelView;constructor(e,t,s){super(e),this.labelView=new B(e),this.labelView.text=t,this.gridView=new D(e,s),this.setTemplate({tag:"div",attributes:{class:["ck","ck-style-panel__style-group"],role:"group","aria-labelledby":this.labelView.id},children:[this.labelView,this.gridView]})}}class G extends g{focusTracker;keystrokes;children;blockStylesGroupView;inlineStylesGroupView;_focusables;_focusCycler;constructor(e,t){super(e);const s=e.t;this.focusTracker=new b,this.keystrokes=new S,this.children=this.createCollection(),this.blockStylesGroupView=new m(e,s("Block styles"),t.block),this.inlineStylesGroupView=new m(e,s("Text styles"),t.inline),this.set("activeStyles",[]),this.set("enabledStyles",[]),this._focusables=new w,this._focusCycler=new A({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:["shift + tab"],focusNext:["tab"]}}),t.block.length&&this.children.add(this.blockStylesGroupView),t.inline.length&&this.children.add(this.inlineStylesGroupView),this.blockStylesGroupView.gridView.delegate("execute").to(this),this.inlineStylesGroupView.gridView.delegate("execute").to(this),this.blockStylesGroupView.gridView.bind("activeStyles","enabledStyles").to(this,"activeStyles","enabledStyles"),this.inlineStylesGroupView.gridView.bind("activeStyles","enabledStyles").to(this,"activeStyles","enabledStyles"),this.setTemplate({tag:"div",attributes:{class:["ck","ck-style-panel"]},children:this.children})}render(){super.render(),this._focusables.add(this.blockStylesGroupView.gridView),this._focusables.add(this.inlineStylesGroupView.gridView),this.focusTracker.add(this.blockStylesGroupView.gridView.element),this.focusTracker.add(this.inlineStylesGroupView.gridView.element),this.keystrokes.listenTo(this.element)}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}}const H=["caption","colgroup","dd","dt","figcaption","legend","li","optgroup","option","rp","rt","summary","tbody","td","tfoot","th","thead","tr"];class h extends d{_htmlSupport;static get pluginName(){return"StyleUtils"}static get isOfficialPlugin(){return!0}constructor(e){super(e),this.decorate("isStyleEnabledForBlock"),this.decorate("isStyleActiveForBlock"),this.decorate("getAffectedBlocks"),this.decorate("isStyleEnabledForInlineSelection"),this.decorate("isStyleActiveForInlineSelection"),this.decorate("getAffectedInlineSelectable"),this.decorate("getStylePreview"),this.decorate("configureGHSDataFilter")}init(){this._htmlSupport=this.editor.plugins.get("GeneralHtmlSupport")}normalizeConfig(e,t=[]){const s={block:[],inline:[]};for(const i of t){const l=[],o=[];for(const n of e.getDefinitionsForView(i.element)){const u="appliesToBlock"in n?n.appliesToBlock:!1;if(n.isBlock||u){if(typeof u=="string")l.push(u);else if(n.isBlock){const a=n;l.push(n.model),a.paragraphLikeModel&&l.push(a.paragraphLikeModel)}}else o.push(n.model)}const c=this.getStylePreview(i,[{text:"AaBbCcDdEeFfGgHhIiJj"}]);l.length?s.block.push({...i,previewTemplate:c,modelElements:l,isBlock:!0}):s.inline.push({...i,previewTemplate:c,ghsAttributes:o})}return s}isStyleEnabledForBlock(e,t){const s=this.editor.model,i=this._htmlSupport.getGhsAttributeNameForElement(e.element);return s.schema.checkAttribute(t,i)?e.modelElements.includes(t.name):!1}isStyleActiveForBlock(e,t){const s=this._htmlSupport.getGhsAttributeNameForElement(e.element),i=t.getAttribute(s);return this.hasAllClasses(i,e.classes)}getAffectedBlocks(e,t){return e.modelElements.includes(t.name)?[t]:null}isStyleEnabledForInlineSelection(e,t){const s=this.editor.model;for(const i of e.ghsAttributes)if(s.schema.checkAttributeInSelection(t,i))return!0;return!1}isStyleActiveForInlineSelection(e,t){for(const s of e.ghsAttributes){const i=this._getValueFromFirstAllowedNode(t,s);if(this.hasAllClasses(i,e.classes))return!0}return!1}getAffectedInlineSelectable(e,t){return t}getStylePreview(e,t){const{element:s,classes:i}=e;return{tag:P(s)?s:"div",attributes:{class:i},children:t}}hasAllClasses(e,t){return x(e)&&N(e)&&t.every(s=>e.classes.includes(s))}configureGHSDataFilter({block:e,inline:t}){const s=this.editor.plugins.get("DataFilter");s.loadAllowedConfig(e.map(y)),s.loadAllowedConfig(t.map(y))}_getValueFromFirstAllowedNode(e,t){const i=this.editor.model.schema;if(e.isCollapsed)return e.getAttribute(t);for(const l of e.getRanges())for(const o of l.getItems())if(i.checkAttribute(o,t))return o.getAttribute(t);return null}}function N(r){return!!r.classes&&Array.isArray(r.classes)}function P(r){return!H.includes(r)}function y({element:r,classes:e}){return{name:r,classes:e}}class I extends d{static get pluginName(){return"StyleUI"}static get isOfficialPlugin(){return!0}static get requires(){return[h]}init(){const e=this.editor,t=e.plugins.get("DataSchema"),s=e.plugins.get("StyleUtils"),i=e.config.get("style.definitions"),l=s.normalizeConfig(t,i);e.ui.componentFactory.add("style",o=>{const c=o.t,n=_(o),u=e.commands.get("style");return n.once("change:isOpen",()=>{const a=new G(o,l);n.panelView.children.add(a),a.delegate("execute").to(n),a.bind("activeStyles").to(u,"value"),a.bind("enabledStyles").to(u,"enabledStyles")}),n.bind("isEnabled").to(u),n.buttonView.withText=!0,n.buttonView.bind("label").to(u,"value",a=>a.length>1?c("Multiple styles"):a.length===1?a[0]:c("Styles")),n.bind("class").to(u,"value",a=>{const f=["ck-style-dropdown"];return a.length>1&&f.push("ck-style-dropdown_multiple-active"),f.join(" ")}),n.on("execute",a=>{e.execute("style",{styleName:a.source.styleDefinition.name}),e.editing.view.focus()}),n})}}class L extends k{_styleDefinitions;_styleUtils;constructor(e,t){super(e),this.set("value",[]),this.set("enabledStyles",[]),this._styleDefinitions=t,this._styleUtils=this.editor.plugins.get(h)}refresh(){const e=this.editor.model,t=e.document.selection,s=new Set,i=new Set;for(const o of this._styleDefinitions.inline)this._styleUtils.isStyleEnabledForInlineSelection(o,t)&&i.add(o.name),this._styleUtils.isStyleActiveForInlineSelection(o,t)&&s.add(o.name);const l=T(t.getSelectedBlocks())||t.getFirstPosition().parent;if(l){const o=l.getAncestors({includeSelf:!0,parentFirst:!0});for(const c of o){if(c.is("rootElement"))break;for(const n of this._styleDefinitions.block)this._styleUtils.isStyleEnabledForBlock(n,c)&&(i.add(n.name),this._styleUtils.isStyleActiveForBlock(n,c)&&s.add(n.name));if(e.schema.isObject(c))break}}this.enabledStyles=Array.from(i).sort(),this.isEnabled=this.enabledStyles.length>0,this.value=this.isEnabled?Array.from(s).sort():[]}execute({styleName:e,forceValue:t}){if(!this.enabledStyles.includes(e)){v("style-command-executed-with-incorrect-style-name");return}const s=this.editor.model,i=s.document.selection,l=this.editor.plugins.get("GeneralHtmlSupport"),o=[...this._styleDefinitions.inline,...this._styleDefinitions.block],c=o.filter(({name:a})=>this.value.includes(a)),n=o.find(({name:a})=>a==e),u=t===void 0?!this.value.includes(n.name):t;s.change(()=>{let a;O(n)?a=this._findAffectedBlocks(z(i),n):a=[this._styleUtils.getAffectedInlineSelectable(n,i)];for(const f of a)u?l.addModelHtmlClass(n.element,n.classes,f):l.removeModelHtmlClass(n.element,R(c,n),f)})}_findAffectedBlocks(e,t){const s=new Set;for(const i of e){const l=i.getAncestors({includeSelf:!0,parentFirst:!0});for(const o of l){if(o.is("rootElement"))break;const c=this._styleUtils.getAffectedBlocks(t,o);if(c){for(const n of c)s.add(n);break}}}return s}}function R(r,e){return r.reduce((t,s)=>s.name===e.name?t:t.filter(i=>!s.classes.includes(i)),e.classes)}function O(r){return"isBlock"in r}function z(r){const e=Array.from(r.getSelectedBlocks());return e.length?e:[r.getFirstPosition().parent]}class M extends d{_listUtils;_styleUtils;_htmlSupport;static get pluginName(){return"ListStyleSupport"}static get isOfficialPlugin(){return!0}static get requires(){return[h,"GeneralHtmlSupport"]}init(){const e=this.editor;e.plugins.has("ListEditing")&&(this._styleUtils=e.plugins.get(h),this._listUtils=this.editor.plugins.get("ListUtils"),this._htmlSupport=this.editor.plugins.get("GeneralHtmlSupport"),this.listenTo(this._styleUtils,"isStyleEnabledForBlock",(t,[s,i])=>{this._isStyleEnabledForBlock(s,i)&&(t.return=!0,t.stop())},{priority:"high"}),this.listenTo(this._styleUtils,"isStyleActiveForBlock",(t,[s,i])=>{this._isStyleActiveForBlock(s,i)&&(t.return=!0,t.stop())},{priority:"high"}),this.listenTo(this._styleUtils,"getAffectedBlocks",(t,[s,i])=>{const l=this._getAffectedBlocks(s,i);l&&(t.return=l,t.stop())},{priority:"high"}),this.listenTo(this._styleUtils,"getStylePreview",(t,[s,i])=>{const l=this._getStylePreview(s,i);l&&(t.return=l,t.stop())},{priority:"high"}))}_isStyleEnabledForBlock(e,t){const s=this.editor.model;if(!["ol","ul","li"].includes(e.element)||!this._listUtils.isListItemBlock(t))return!1;const i=this._htmlSupport.getGhsAttributeNameForElement(e.element);if(e.element=="ol"||e.element=="ul"){if(!s.schema.checkAttribute(t,i))return!1;const o=this._listUtils.isNumberedListType(t.getAttribute("listType"))?"ol":"ul";return e.element==o}else return s.schema.checkAttribute(t,i)}_isStyleActiveForBlock(e,t){const s=this._htmlSupport.getGhsAttributeNameForElement(e.element),i=t.getAttribute(s);return this._styleUtils.hasAllClasses(i,e.classes)}_getAffectedBlocks(e,t){return this._isStyleEnabledForBlock(e,t)?e.element=="li"?this._listUtils.expandListBlocksToCompleteItems(t,{withNested:!1}):this._listUtils.expandListBlocksToCompleteList(t):null}_getStylePreview(e,t){const{element:s,classes:i}=e;return s=="ol"||s=="ul"?{tag:s,attributes:{class:i},children:[{tag:"li",children:t}]}:s=="li"?{tag:"ol",children:[{tag:s,attributes:{class:i},children:t}]}:null}}class q extends d{_tableUtils;_styleUtils;static get pluginName(){return"TableStyleSupport"}static get isOfficialPlugin(){return!0}static get requires(){return[h]}init(){const e=this.editor;e.plugins.has("TableEditing")&&(this._styleUtils=e.plugins.get(h),this._tableUtils=this.editor.plugins.get("TableUtils"),this.listenTo(this._styleUtils,"isStyleEnabledForBlock",(t,[s,i])=>{this._isApplicable(s,i)&&(t.return=this._isStyleEnabledForBlock(s,i),t.stop())},{priority:"high"}),this.listenTo(this._styleUtils,"getAffectedBlocks",(t,[s,i])=>{this._isApplicable(s,i)&&(t.return=this._getAffectedBlocks(s,i),t.stop())},{priority:"high"}),this.listenTo(this._styleUtils,"configureGHSDataFilter",(t,[{block:s}])=>{this.editor.plugins.get("DataFilter").loadAllowedConfig(s.filter(l=>l.element=="figcaption").map(l=>({name:"caption",classes:l.classes})))}))}_isApplicable(e,t){return["td","th"].includes(e.element)?t.name=="tableCell":["thead","tbody"].includes(e.element)?t.name=="table":!1}_isStyleEnabledForBlock(e,t){if(["td","th"].includes(e.element)){const s=this._tableUtils.getCellLocation(t),l=t.parent.parent,o=l.getAttribute("headingRows")||0,c=l.getAttribute("headingColumns")||0,n=s.row<o||s.column<c;return e.element=="th"?n:!n}if(["thead","tbody"].includes(e.element)){const s=t.getAttribute("headingRows")||0;return e.element=="thead"?s>0:s<this._tableUtils.getRows(t)}/* istanbul ignore next -- @preserve */return!1}_getAffectedBlocks(e,t){return this._isStyleEnabledForBlock(e,t)?[t]:null}}class j extends d{_styleUtils;_htmlSupport;static get pluginName(){return"LinkStyleSupport"}static get isOfficialPlugin(){return!0}static get requires(){return[h,"GeneralHtmlSupport"]}init(){const e=this.editor;e.plugins.has("LinkEditing")&&(this._styleUtils=e.plugins.get(h),this._htmlSupport=this.editor.plugins.get("GeneralHtmlSupport"),this.listenTo(this._styleUtils,"isStyleEnabledForInlineSelection",(t,[s,i])=>{s.element=="a"&&(t.return=this._isStyleEnabled(s,i),t.stop())},{priority:"high"}),this.listenTo(this._styleUtils,"isStyleActiveForInlineSelection",(t,[s,i])=>{s.element=="a"&&(t.return=this._isStyleActive(s,i),t.stop())},{priority:"high"}),this.listenTo(this._styleUtils,"getAffectedInlineSelectable",(t,[s,i])=>{if(s.element!="a")return;const l=this._getAffectedSelectable(s,i);l&&(t.return=l,t.stop())},{priority:"high"}))}_isStyleEnabled(e,t){const s=this.editor.model;if(t.isCollapsed)return t.hasAttribute("linkHref");for(const i of t.getRanges())for(const l of i.getItems())if((l.is("$textProxy")||s.schema.isInline(l))&&l.hasAttribute("linkHref"))return!0;return!1}_isStyleActive(e,t){const s=this.editor.model,i=this._htmlSupport.getGhsAttributeNameForElement(e.element);if(t.isCollapsed){if(t.hasAttribute("linkHref")){const l=t.getAttribute(i);if(this._styleUtils.hasAllClasses(l,e.classes))return!0}return!1}for(const l of t.getRanges())for(const o of l.getItems())if((o.is("$textProxy")||s.schema.isInline(o))&&o.hasAttribute("linkHref")){const c=o.getAttribute(i);return this._styleUtils.hasAllClasses(c,e.classes)}return!1}_getAffectedSelectable(e,t){const s=this.editor.model;if(t.isCollapsed){const l=t.getAttribute("linkHref");return U(t.getFirstPosition(),"linkHref",l,s)}const i=[];for(const l of t.getRanges()){const o=s.createRange(p(l.start,"linkHref",!0,s),p(l.end,"linkHref",!1,s));for(const c of o.getItems())(c.is("$textProxy")||s.schema.isInline(c))&&c.hasAttribute("linkHref")&&i.push(this.editor.model.createRangeOn(c))}return $(i)}}function p(r,e,t,s){const i=r.textNode||(t?r.nodeAfter:r.nodeBefore);if(!i||!i.hasAttribute(e))return r;const l=i.getAttribute(e);return E(r,e,l,t,s)}function $(r){for(let e=1;e<r.length;e++){const t=r[e-1].getJoined(r[e]);t&&r.splice(--e,2,t)}return r}class J extends d{static get pluginName(){return"StyleEditing"}static get isOfficialPlugin(){return!0}static get requires(){return["GeneralHtmlSupport",h,M,q,j]}init(){const e=this.editor,t=e.plugins.get("DataSchema"),s=e.plugins.get("StyleUtils"),i=e.config.get("style.definitions"),l=s.normalizeConfig(t,i);e.commands.add("style",new L(e,l)),s.configureGHSDataFilter(l)}}class Z extends d{static get pluginName(){return"Style"}static get isOfficialPlugin(){return!0}static get requires(){return[J,I]}}export{Z as Style,J as StyleEditing,I as StyleUI,h as StyleUtils};
@@ -1,4 +1,4 @@
1
- import{Plugin as y,Command as A}from"../../../../../@ckeditor_ckeditor5-core@45.2.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{Widget as lo,WidgetToolbarRepository as Ue,toWidgetEditable as pt,isWidget as io,toWidget as so}from"../../../../../@ckeditor_ckeditor5-widget@45.2.1/node_modules/@ckeditor/ckeditor5-widget/dist/index.js";import{Collection as wt,first as We,getLocalizedArrowKeyCodeDirection as ro,DomEmitterMixin as ao,global as ie,Rect as se,toUnit as co,CKEditorError as $e,KeystrokeHandler as ge,FocusTracker as be}from"../../../../../@ckeditor_ckeditor5-utils@45.2.1/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{IconTable as Ge,IconTableColumn as uo,IconTableRow as ho,IconTableMergeCell as mo,IconCaption as go,IconTableCellProperties as bo,IconTableProperties as fo,IconCheck as Ct,IconCancel as Tt,IconObjectInlineRight as po,IconObjectCenter as wo,IconObjectInlineLeft as Co,IconAlignBottom as To,IconAlignMiddle as _o,IconAlignTop as yo,IconAlignJustify as vo,IconAlignRight as Ao,IconAlignCenter as So,IconAlignLeft as Ro}from"../../../../../@ckeditor_ckeditor5-icons@45.2.1/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import{createDropdown as te,MenuBarMenuView as Io,SwitchButtonView as xo,addListToDropdown as Le,ButtonView as V,ContextualBalloon as re,normalizeColorOptions as ae,getLocalizedColorOptions as ce,clickOutsideHandler as _t,SplitButtonView as ko,View as N,addKeyboardHandlingForGrid as Vo,ViewModel as yt,ViewCollection as Be,FocusCycler as De,FormHeaderView as vt,FormRowView as R,submitHandler as At,LabelView as E,LabeledFieldView as I,createLabeledDropdown as St,createLabeledInputText as F,ToolbarView as Te,BalloonPanelView as D,InputTextView as Po,ColorSelectorView as Eo}from"../../../../../@ckeditor_ckeditor5-ui@45.2.1/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{ClipboardMarkersUtils as we,ClipboardPipeline as je}from"../../../../../@ckeditor_ckeditor5-clipboard@45.2.1/node_modules/@ckeditor/ckeditor5-clipboard/dist/index.js";import{enablePlaceholder as Wo,Element as Lo,addBorderRules as Rt,addPaddingRules as Bo,addBackgroundRules as It,DomEventObserver as Do,isColor as Fo,isLength as xt,isPercentage as No}from"../../../../../@ckeditor_ckeditor5-engine@45.2.1/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{debounce as kt}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/function/debounce.js";import{isEqual as Ke}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/predicate/isEqual.js";import{throttle as Mo}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/function/throttle.js";import{isObject as Oo}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/predicate/isObject.js";/**
1
+ import{Plugin as y,Command as A}from"../../../../../@ckeditor_ckeditor5-core@45.2.2/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{Widget as lo,WidgetToolbarRepository as Ue,toWidgetEditable as pt,isWidget as io,toWidget as so}from"../../../../../@ckeditor_ckeditor5-widget@45.2.2/node_modules/@ckeditor/ckeditor5-widget/dist/index.js";import{Collection as wt,first as We,getLocalizedArrowKeyCodeDirection as ro,DomEmitterMixin as ao,global as ie,Rect as se,toUnit as co,CKEditorError as $e,KeystrokeHandler as ge,FocusTracker as be}from"../../../../../@ckeditor_ckeditor5-utils@45.2.2/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{IconTable as Ge,IconTableColumn as uo,IconTableRow as ho,IconTableMergeCell as mo,IconCaption as go,IconTableCellProperties as bo,IconTableProperties as fo,IconCheck as Ct,IconCancel as Tt,IconObjectInlineRight as po,IconObjectCenter as wo,IconObjectInlineLeft as Co,IconAlignBottom as To,IconAlignMiddle as _o,IconAlignTop as yo,IconAlignJustify as vo,IconAlignRight as Ao,IconAlignCenter as So,IconAlignLeft as Ro}from"../../../../../@ckeditor_ckeditor5-icons@45.2.2/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import{createDropdown as te,MenuBarMenuView as Io,SwitchButtonView as xo,addListToDropdown as Le,ButtonView as V,ContextualBalloon as re,normalizeColorOptions as ae,getLocalizedColorOptions as ce,clickOutsideHandler as _t,SplitButtonView as ko,View as N,addKeyboardHandlingForGrid as Vo,ViewModel as yt,ViewCollection as Be,FocusCycler as De,FormHeaderView as vt,FormRowView as R,submitHandler as At,LabelView as E,LabeledFieldView as I,createLabeledDropdown as St,createLabeledInputText as F,ToolbarView as Te,BalloonPanelView as D,InputTextView as Po,ColorSelectorView as Eo}from"../../../../../@ckeditor_ckeditor5-ui@45.2.2/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{ClipboardMarkersUtils as we,ClipboardPipeline as je}from"../../../../../@ckeditor_ckeditor5-clipboard@45.2.2/node_modules/@ckeditor/ckeditor5-clipboard/dist/index.js";import{enablePlaceholder as Wo,Element as Lo,addBorderRules as Rt,addPaddingRules as Bo,addBackgroundRules as It,DomEventObserver as Do,isColor as Fo,isLength as xt,isPercentage as No}from"../../../../../@ckeditor_ckeditor5-engine@45.2.2/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{debounce as kt}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/function/debounce.js";import{isEqual as Ke}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/predicate/isEqual.js";import{throttle as Mo}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/function/throttle.js";import{isObject as Oo}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/predicate/isObject.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 Fe(i,e){const{modelAttribute:t,styleName:o,viewElement:n,defaultValue:l,reduceBoxSides:s=!1,shouldUpcast:r=()=>!0}=e;i.for("upcast").attributeToAttribute({view:{name:n,styles:{[o]:/[\s\S]+/}},model:{key:t,value:(c,a,d)=>{if(!r(c))return;const u=W(l,"",d),h=c.getNormalizedStyle(o),m=s?ne(h):h;if(u!==m)return m}}})}function _e(i,e,t,o){i.for("upcast").add(n=>n.on("element:"+e,(l,s,r)=>{if(!s.modelRange)return;const c=["border-top-width","border-top-color","border-top-style","border-bottom-width","border-bottom-color","border-bottom-style","border-right-width","border-right-color","border-right-style","border-left-width","border-left-color","border-left-style"].filter(f=>s.viewItem.hasStyle(f));if(!c.length)return;const a={styles:c};if(!r.consumable.test(s.viewItem,a))return;const d=[...s.modelRange.getItems({shallow:!0})].pop(),u=d.findAncestor("table",{includeSelf:!0});let h=o;u&&u.getAttribute("tableType")=="layout"&&(h={style:"none",color:"",width:""}),r.consumable.consume(s.viewItem,a);const m={style:s.viewItem.getNormalizedStyle("border-style"),color:s.viewItem.getNormalizedStyle("border-color"),width:s.viewItem.getNormalizedStyle("border-width")},g={style:ne(m.style),color:ne(m.color),width:ne(m.width)};g.style!==h.style&&r.writer.setAttribute(t.style,g.style,d),g.color!==h.color&&r.writer.setAttribute(t.color,g.color,d),g.width!==h.width&&r.writer.setAttribute(t.width,g.width,d)}))}function j(i,e){const{modelElement:t,modelAttribute:o,styleName:n}=e;i.for("downcast").attributeToAttribute({model:{name:t,key:o},view:l=>({key:"style",value:{[n]:l}})})}function oe(i,e){const{modelAttribute:t,styleName:o}=e;i.for("downcast").add(n=>n.on(`attribute:${t}:table`,(l,s,r)=>{const{item:c,attributeNewValue:a}=s,{mapper:d,writer:u}=r;if(!r.consumable.consume(s.item,l.name))return;const h=[...d.toViewElement(c).getChildren()].find(m=>m.is("element","table"));a?u.setStyle(o,a,h):u.removeStyle(o,h)}))}function W(i,e,t){const o=t.modelRange&&We(t.modelRange.getItems({shallow:!0})),n=o&&o.is("element")&&o.findAncestor("table",{includeSelf:!0});return n&&n.getAttribute("tableType")==="layout"?e:i}function ne(i){if(!i)return;const e=["top","right","bottom","left"];if(!e.every(l=>i[l]))return i;const o=i.top;return e.every(l=>i[l]===o)?o:i}function _(i,e,t,o,n=1){e!=null&&n!==void 0&&n!==null&&e>n?o.setAttribute(i,e,t):o.removeAttribute(i,t)}function M(i,e,t={}){const o=i.createElement("tableCell",t);return i.insertElement("paragraph",o),i.insert(o,e),o}function ye(i,e){const t=e.parent.parent,o=parseInt(t.getAttribute("headingColumns")||"0"),{column:n}=i.getCellLocation(e);return!!o&&n<o}function le(i,e,t){const{modelAttribute:o}=t;i.extend("tableCell",{allowAttributes:[o]}),Fe(e,{viewElement:/^(td|th)$/,...t}),j(e,{modelElement:"tableCell",...t})}function L(i){const e=i.getSelectedElement();return e&&e.is("element","table")?e:i.getFirstPosition().findAncestor("table")}function zo(){return i=>{i.on("element:figure",(e,t,o)=>{if(!o.consumable.test(t.viewItem,{name:!0,classes:"table"}))return;const n=$o(t.viewItem);if(!n||!o.consumable.test(n,{name:!0}))return;o.consumable.consume(t.viewItem,{name:!0,classes:"table"});const l=o.convertItem(n,t.modelCursor),s=We(l.modelRange.getItems());if(!s){o.consumable.revert(t.viewItem,{name:!0,classes:"table"});return}o.convertChildren(t.viewItem,o.writer.createPositionAt(s,"end")),o.updateConversionResult(s,t)})}}function Ho(){return i=>{i.on("element:table",(e,t,o)=>{const n=t.viewItem;if(!o.consumable.test(n,{name:!0}))return;const{rows:l,headingRows:s,headingColumns:r}=Go(n),c={};r&&(c.headingColumns=r),s&&(c.headingRows=s);const a=o.writer.createElement("table",c);if(o.safeInsert(a,t.modelCursor)){if(o.consumable.consume(n,{name:!0}),l.forEach(d=>o.convertItem(d,o.writer.createPositionAt(a,"end"))),o.convertChildren(n,o.writer.createPositionAt(a,"end")),a.isEmpty){const d=o.writer.createElement("tableRow");o.writer.insert(d,o.writer.createPositionAt(a,"end")),M(o.writer,o.writer.createPositionAt(d,"end"))}o.updateConversionResult(a,t)}})}}function Uo(){return i=>{i.on("element:tr",(e,t)=>{t.viewItem.isEmpty&&t.modelCursor.index==0&&e.stop()},{priority:"high"})}}function qe(i){return e=>{e.on(`element:${i}`,(t,o,{writer:n})=>{if(!o.modelRange)return;const l=o.modelRange.start.nodeAfter,s=n.createPositionAt(l,0);if(o.viewItem.isEmpty){n.insertElement("paragraph",s);return}const r=Array.from(l.getChildren());if(r.every(c=>c.is("element","$marker"))){const c=n.createElement("paragraph");n.insert(c,n.createPositionAt(l,0));for(const a of r)n.move(n.createRangeOn(a),n.createPositionAt(c,"end"))}},{priority:"low"})}}function $o(i){for(const e of i.getChildren())if(e.is("element","table"))return e}function Go(i){let e=0,t;const o=[],n=[];let l;for(const s of Array.from(i.getChildren())){if(s.name!=="tbody"&&s.name!=="thead"&&s.name!=="tfoot")continue;s.name==="thead"&&!l&&(l=s);const r=Array.from(s.getChildren()).filter(a=>a.is("element","tr"));let c=null;for(const a of r){const d=Array.from(a.getChildren()).filter(u=>u.is("element","td")||u.is("element","th"));if(l&&s===l||s.name==="tbody"&&d.length>0&&(c===null||d.length===c)&&d.every(u=>u.is("element","th")))e++,o.push(a);else{n.push(a);const u=jo(a);(!t||u<t)&&(t=u)}c=Math.max(c||0,d.length)}}return{headingRows:e,headingColumns:t||0,rows:[...o,...n]}}function jo(i){let e=0,t=0;const o=Array.from(i.getChildren()).filter(n=>n.name==="th"||n.name==="td");for(;t<o.length&&o[t].name==="th";){const n=o[t],l=parseInt(n.getAttribute("colspan")||"1");e=e+l,t++}return e}/**
@@ -1,4 +1,4 @@
1
- import{Plugin as k,Command as z}from"../../../../../@ckeditor_ckeditor5-core@45.2.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{keyCodes as y,ObservableMixin as V,env as E,count as Y,isInsideSurrogatePair as J,isInsideCombinedSymbol as X,isInsideEmojiSequence as Z,EventInfo as ee}from"../../../../../@ckeditor_ckeditor5-utils@45.2.1/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{_tryFixingModelRange as $,BubblingEventInfo as D,DomEventData as S,Observer as W,MouseObserver as te,TouchObserver as ne,LiveRange as ie,FocusObserver as se}from"../../../../../@ckeditor_ckeditor5-engine@45.2.1/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{escapeRegExp as oe}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/string/escapeRegExp.js";import{debounce as re}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/function/debounce.js";/**
1
+ import{Plugin as k,Command as z}from"../../../../../@ckeditor_ckeditor5-core@45.2.2/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{keyCodes as y,ObservableMixin as V,env as E,count as Y,isInsideSurrogatePair as J,isInsideCombinedSymbol as X,isInsideEmojiSequence as Z,EventInfo as ee}from"../../../../../@ckeditor_ckeditor5-utils@45.2.2/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{_tryFixingModelRange as $,BubblingEventInfo as D,DomEventData as S,Observer as W,MouseObserver as te,TouchObserver as ne,LiveRange as ie,FocusObserver as se}from"../../../../../@ckeditor_ckeditor5-engine@45.2.2/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{escapeRegExp as oe}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/string/escapeRegExp.js";import{debounce as re}from"../../../../../es-toolkit@1.32.0/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
  *//**
@@ -1,4 +1,4 @@
1
- import{getEnvKeystrokeText as Y,uid as Q,env as A,delay as Lt,createElement as x,KeystrokeHandler as E,FocusTracker as b,toUnit as te,global as d,Rect as T,DomEmitterMixin as ie,ObservableMixin as se,Collection as pe,isIterable as xe,CKEditorError as v,getOptimalPosition as me,logWarning as C,EmitterMixin as Ze,getVisualViewportOffset as K,isVisible as O,isNode as Je,priorities as Ft,isText as At,ResizeObserver as et,toArray as oe,first as Dt,parseBase64EncodedObject as tt,isRange as St}from"../../../../../@ckeditor_ckeditor5-utils@45.2.1/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{Plugin as we,ContextPlugin as Mt}from"../../../../../@ckeditor_ckeditor5-core@45.2.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{IconAccessibility as Ee,IconCancel as it,IconDropdownArrow as ne,IconDragIndicator as Nt,IconPilcrow as Wt,IconThreeVerticalDots as be,IconText as Gt,IconPlus as Rt,IconParagraph as Ht,IconImportExport as zt,IconBold as Ut,IconAlignLeft as $t,IconCheck as st,IconPreviousArrow as Kt,IconNextArrow as jt,IconColorPalette as Xt,IconEraser as qt,IconProjectLogo as Yt,IconColorTileCheck as Qt}from"../../../../../@ckeditor_ckeditor5-icons@45.2.1/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import Ie from"../../../../../color-parse@1.4.2/node_modules/color-parse/index.js";import*as ot from"../../../../../../../_virtual/index.js";import{HexBase as Zt}from"../../../../../vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/entrypoints/hex.js";import"../../../../../@ckeditor_ckeditor5-engine@45.2.1/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{assignIn as Jt}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/assignIn.js";import{isObject as Z}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/predicate/isObject.js";import{cloneDeep as ge}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/cloneDeep.js";import{debounce as fe}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/function/debounce.js";import{isElement as _e}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/predicate/isElement.js";import{cloneDeepWith as ei}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js";import{throttle as ti}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/function/throttle.js";/**
1
+ import{getEnvKeystrokeText as Y,uid as Q,env as A,delay as Lt,createElement as x,KeystrokeHandler as E,FocusTracker as b,toUnit as te,global as d,Rect as T,DomEmitterMixin as ie,ObservableMixin as se,Collection as pe,isIterable as xe,CKEditorError as v,getOptimalPosition as me,logWarning as C,EmitterMixin as Ze,getVisualViewportOffset as K,isVisible as O,isNode as Je,priorities as Ft,isText as At,ResizeObserver as et,toArray as oe,first as Dt,parseBase64EncodedObject as tt,isRange as St}from"../../../../../@ckeditor_ckeditor5-utils@45.2.2/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{Plugin as we,ContextPlugin as Mt}from"../../../../../@ckeditor_ckeditor5-core@45.2.2/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{IconAccessibility as Ee,IconCancel as it,IconDropdownArrow as ne,IconDragIndicator as Nt,IconPilcrow as Wt,IconThreeVerticalDots as be,IconText as Gt,IconPlus as Rt,IconParagraph as Ht,IconImportExport as zt,IconBold as Ut,IconAlignLeft as $t,IconCheck as st,IconPreviousArrow as Kt,IconNextArrow as jt,IconColorPalette as Xt,IconEraser as qt,IconProjectLogo as Yt,IconColorTileCheck as Qt}from"../../../../../@ckeditor_ckeditor5-icons@45.2.2/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import Ie from"../../../../../color-parse@1.4.2/node_modules/color-parse/index.js";import*as ot from"../../../../../../../_virtual/index.js";import{HexBase as Zt}from"../../../../../vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/entrypoints/hex.js";import"../../../../../@ckeditor_ckeditor5-engine@45.2.2/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{assignIn as Jt}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/assignIn.js";import{isObject as Z}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/predicate/isObject.js";import{cloneDeep as ge}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/cloneDeep.js";import{debounce as fe}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/function/debounce.js";import{isElement as _e}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/predicate/isElement.js";import{cloneDeepWith as ei}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js";import{throttle as ti}from"../../../../../es-toolkit@1.32.0/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 B extends pe{_parentElement;constructor(e=[]){super(e,{idProperty:"viewUid"}),this.on("add",(t,i,o)=>{this._renderViewIntoCollectionParent(i,o)}),this.on("remove",(t,i)=>{i.element&&this._parentElement&&i.element.remove()}),this._parentElement=null}destroy(){this.map(e=>e.destroy())}setParent(e){this._parentElement=e;for(const t of this)this._renderViewIntoCollectionParent(t)}delegate(...e){if(!e.length||!ii(e))throw new v("ui-viewcollection-delegate-wrong-events",this);return{to:t=>{for(const i of this)for(const o of e)i.delegate(o).to(t);this.on("add",(i,o)=>{for(const n of e)o.delegate(n).to(t)}),this.on("remove",(i,o)=>{for(const n of e)o.stopDelegating(n,t)})}}}_renderViewIntoCollectionParent(e,t){e.isRendered||e.render(),e.element&&this._parentElement&&this._parentElement.insertBefore(e.element,this._parentElement.children[t])}remove(e){return super.remove(e)}}function ii(s){return s.every(e=>typeof e=="string")}const si="http://www.w3.org/1999/xhtml";class V extends Ze(){ns;tag;text;attributes;children;eventListeners;_isRendered;_revertData;constructor(e){super(),Object.assign(this,Pe(Oe(e))),this._isRendered=!1,this._revertData=null}render(){const e=this._renderNode({intoFragment:!0});return this._isRendered=!0,e}apply(e){return this._revertData=Fe(),this._renderNode({node:e,intoFragment:!1,isApplying:!0,revertData:this._revertData}),e}revert(e){if(!this._revertData)throw new v("ui-template-revert-not-applied",[this,e]);this._revertTemplateFromNode(e,this._revertData)}*getViews(){function*e(t){if(t.children)for(const i of t.children)J(i)?yield i:ke(i)&&(yield*e(i))}yield*e(this)}static bind(e,t){return{to(i,o){return new oi({eventNameOrFunction:i,attribute:i,observable:e,emitter:t,callback:o})},if(i,o,n){return new nt({observable:e,emitter:t,attribute:i,valueIfTrue:o,callback:n})}}}static extend(e,t){if(e._isRendered)throw new v("template-extend-render",[this,e]);ct(e,Pe(Oe(t)))}_renderNode(e){let t;if(e.node?t=this.tag&&this.text:t=this.tag?this.text:!this.text,t)throw new v("ui-template-wrong-syntax",this);return this.text?this._renderText(e):this._renderElement(e)}_renderElement(e){let t=e.node;return t||(t=e.node=document.createElementNS(this.ns||si,this.tag)),this._renderAttributes(e),this._renderElementChildren(e),this._setUpListeners(e),t}_renderText(e){let t=e.node;return t?e.revertData.text=t.textContent:t=e.node=document.createTextNode(""),j(this.text)?this._bindToObservable({schema:this.text,updater:ri(t),data:e}):t.textContent=this.text.join(""),t}_renderAttributes(e){if(!this.attributes)return;const t=e.node,i=e.revertData;for(const o in this.attributes){const n=t.getAttribute(o),r=this.attributes[o];i&&(i.attributes[o]=n);const a=Le(r)?r[0].ns:null;if(j(r)){const l=Le(r)?r[0].value:r;i&&Ae(o)&&l.unshift(n),this._bindToObservable({schema:l,updater:li(t,o,a),data:e})}else if(o=="style"&&typeof r[0]!="string")this._renderStyleAttribute(r[0],e);else{i&&n&&Ae(o)&&r.unshift(n);const l=r.map(c=>c&&(c.value||c)).reduce((c,u)=>c.concat(u),[]).reduce(at,"");M(l)||t.setAttributeNS(a,o,l)}}}_renderStyleAttribute(e,t){const i=t.node;for(const o in e){const n=e[o];j(n)?this._bindToObservable({schema:[n],updater:ai(i,o),data:t}):i.style[o]=n}}_renderElementChildren(e){const t=e.node,i=e.intoFragment?document.createDocumentFragment():t,o=e.isApplying;let n=0;for(const r of this.children)if(Te(r)){if(!o){r.setParent(t);for(const a of r)i.appendChild(a.element)}}else if(J(r))o||(r.isRendered||r.render(),i.appendChild(r.element));else if(Je(r))i.appendChild(r);else if(o){const a=e.revertData,l=Fe();a.children.push(l),r._renderNode({intoFragment:!1,node:i.childNodes[n++],isApplying:!0,revertData:l})}else i.appendChild(r.render());e.intoFragment&&t.appendChild(i)}_setUpListeners(e){if(this.eventListeners)for(const t in this.eventListeners){const i=this.eventListeners[t].map(o=>{const[n,r]=t.split("@");return o.activateDomEventListener(n,r,e)});e.revertData&&e.revertData.bindings.push(i)}}_bindToObservable({schema:e,updater:t,data:i}){const o=i.revertData;rt(e,t,i);const n=e.filter(r=>!M(r)).filter(r=>r.observable).map(r=>r.activateAttributeListener(e,t,i));o&&o.bindings.push(n)}_revertTemplateFromNode(e,t){for(const o of t.bindings)for(const n of o)n();if(t.text){e.textContent=t.text;return}const i=e;for(const o in t.attributes){const n=t.attributes[o];n===null?i.removeAttribute(o):i.setAttribute(o,n)}for(let o=0;o<t.children.length;++o)this._revertTemplateFromNode(i.childNodes[o],t.children[o])}}class H{attribute;observable;emitter;callback;constructor(e){this.attribute=e.attribute,this.observable=e.observable,this.emitter=e.emitter,this.callback=e.callback}getValue(e){const t=this.observable[this.attribute];return this.callback?this.callback(t,e):t}activateAttributeListener(e,t,i){const o=()=>rt(e,t,i);return this.emitter.listenTo(this.observable,`change:${this.attribute}`,o),()=>{this.emitter.stopListening(this.observable,`change:${this.attribute}`,o)}}}class oi extends H{eventNameOrFunction;constructor(e){super(e),this.eventNameOrFunction=e.eventNameOrFunction}activateDomEventListener(e,t,i){const o=(n,r)=>{(!t||r.target.matches(t))&&(typeof this.eventNameOrFunction=="function"?this.eventNameOrFunction(r):this.observable.fire(this.eventNameOrFunction,r))};return this.emitter.listenTo(i.node,e,o),()=>{this.emitter.stopListening(i.node,e,o)}}}class nt extends H{valueIfTrue;constructor(e){super(e),this.valueIfTrue=e.valueIfTrue}getValue(e){const t=super.getValue(e);return M(t)?!1:this.valueIfTrue||!0}}function j(s){return s?(s.value&&(s=s.value),Array.isArray(s)?s.some(j):s instanceof H):!1}function ni(s,e){return s.map(t=>t instanceof H?t.getValue(e):t)}function rt(s,e,{node:t}){const i=ni(s,t);let o;s.length==1&&s[0]instanceof nt?o=i[0]:o=i.reduce(at,""),M(o)?e.remove():e.set(o)}function ri(s){return{set(e){s.textContent=e},remove(){s.textContent=""}}}function li(s,e,t){return{set(i){s.setAttributeNS(t,e,i)},remove(){s.removeAttributeNS(t,e)}}}function ai(s,e){return{set(t){s.style[e]=t},remove(){s.style[e]=null}}}function Oe(s){return ei(s,t=>{if(t&&(t instanceof H||ke(t)||J(t)||Te(t)))return t})}function Pe(s){if(typeof s=="string"?s=ui(s):s.text&&di(s),s.on&&(s.eventListeners=hi(s.on),delete s.on),!s.text){s.attributes&&ci(s.attributes);const e=[];if(s.children)if(Te(s.children))e.push(s.children);else for(const t of s.children)ke(t)||J(t)||Je(t)?e.push(t):e.push(new V(t));s.children=e}return s}function ci(s){for(const e in s)s[e].value&&(s[e].value=oe(s[e].value)),lt(s,e)}function hi(s){for(const e in s)lt(s,e);return s}function ui(s){return{text:[s]}}function di(s){s.text=oe(s.text)}function lt(s,e){s[e]=oe(s[e])}function at(s,e){return M(e)?s:M(s)?e:`${s} ${e}`}function Be(s,e){for(const t in e)s[t]?s[t].push(...e[t]):s[t]=e[t]}function ct(s,e){if(e.attributes&&(s.attributes||(s.attributes={}),Be(s.attributes,e.attributes)),e.eventListeners&&(s.eventListeners||(s.eventListeners={}),Be(s.eventListeners,e.eventListeners)),e.text&&s.text.push(...e.text),e.children&&e.children.length){if(s.children.length!=e.children.length)throw new v("ui-template-extend-children-mismatch",s);let t=0;for(const i of e.children)ct(s.children[t++],i)}}function M(s){return!s&&s!==0}function J(s){return s instanceof h}function ke(s){return s instanceof V}function Te(s){return s instanceof B}function Le(s){return Z(s[0])&&s[0].ns}function Fe(){return{children:[],bindings:[],attributes:{}}}function Ae(s){return s=="class"||s=="style"}class h extends ie(se()){element;isRendered;locale;t;template;_viewCollections;_unboundChildren;_bindTemplate;constructor(e){super(),this.element=null,this.isRendered=!1,this.locale=e,this.t=e&&e.t,this._viewCollections=new pe,this._unboundChildren=this.createCollection(),this._viewCollections.on("add",(t,i)=>{i.locale=e,i.t=e&&e.t}),this.decorate("render")}get bindTemplate(){return this._bindTemplate?this._bindTemplate:this._bindTemplate=V.bind(this,this)}createCollection(e){const t=new B(e);return this._viewCollections.add(t),t}registerChild(e){xe(e)||(e=[e]);for(const t of e)this._unboundChildren.add(t)}deregisterChild(e){xe(e)||(e=[e]);for(const t of e)this._unboundChildren.remove(t)}setTemplate(e){this.template=new V(e)}extendTemplate(e){V.extend(this.template,e)}render(){if(this.isRendered)throw new v("ui-view-render-already-rendered",this);this.template&&(this.element=this.template.render(),this.registerChild(this.template.getViews())),this.isRendered=!0}destroy(){this.stopListening(),this._viewCollections.map(e=>e.destroy()),this.template&&this.template._revertData&&this.template.revert(this.element)}}/**
@@ -1,4 +1,4 @@
1
- import{Plugin as u,Command as _}from"../../../../../@ckeditor_ckeditor5-core@45.2.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{transformSets as B,NoOperation as b}from"../../../../../@ckeditor_ckeditor5-engine@45.2.1/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{ButtonView as y,MenuBarMenuListItemButtonView as R}from"../../../../../@ckeditor_ckeditor5-ui@45.2.1/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{IconUndo as f,IconRedo as p}from"../../../../../@ckeditor_ckeditor5-icons@45.2.1/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";/**
1
+ import{Plugin as u,Command as _}from"../../../../../@ckeditor_ckeditor5-core@45.2.2/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{transformSets as B,NoOperation as b}from"../../../../../@ckeditor_ckeditor5-engine@45.2.2/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{ButtonView as y,MenuBarMenuListItemButtonView as R}from"../../../../../@ckeditor_ckeditor5-ui@45.2.2/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{IconUndo as f,IconRedo as p}from"../../../../../@ckeditor_ckeditor5-icons@45.2.2/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
  */class g extends _{_stack=[];_createdBatches=new WeakSet;constructor(t){super(t),this.refresh(),this._isEnabledBasedOnSelection=!1,this.listenTo(t.data,"set",(e,o)=>{o[1]={...o[1]};const s=o[1];s.batchType||(s.batchType={isUndoable:!1})},{priority:"high"}),this.listenTo(t.data,"set",(e,o)=>{o[1].batchType.isUndoable||this.clearStack()})}refresh(){this.isEnabled=this._stack.length>0}get createdBatches(){return this._createdBatches}addBatch(t){const e=this.editor.model.document.selection,o={ranges:e.hasOwnRange?Array.from(e.getRanges()):[],isBackward:e.isBackward};this._stack.push({batch:t,selection:o}),this.refresh()}clearStack(){this._stack=[],this.refresh()}_restoreSelection(t,e,o){const s=this.editor.model,i=s.document,n=[],d=t.map(r=>r.getTransformedByOperations(o)),h=d.flat();for(const r of d){const l=r.filter(c=>c.root!=i.graveyard).filter(c=>!C(c,h));l.length&&(k(l),n.push(l[0]))}n.length&&s.change(r=>{r.setSelection(n,{backward:e})})}_undo(t,e){const o=this.editor.model,s=o.document;this._createdBatches.add(e);const i=t.operations.slice().filter(n=>n.isDocumentOperation);i.reverse();for(const n of i){const d=n.baseVersion+1,h=Array.from(s.history.getOperations(d)),l=B([n.getReversed()],h,{useRelations:!0,document:this.editor.model.document,forceWeakRemove:!0}).operationsA;for(let c of l){const m=c.affectedSelectable;m&&!o.canEditAt(m)&&(c=new b(c.baseVersion)),e.addOperation(c),o.applyOperation(c),s.history.setOperationAsUndone(n,c)}}}}function k(a){a.sort((t,e)=>t.start.isBefore(e.start)?-1:1);for(let t=1;t<a.length;t++){const o=a[t-1].getJoined(a[t],!0);o&&(t--,a.splice(t,2,o))}}function C(a,t){return t.some(e=>e!==a&&e.containsRange(a,!0))}class T extends g{execute(t=null){const e=t?this._stack.findIndex(i=>i.batch==t):this._stack.length-1,o=this._stack.splice(e,1)[0],s=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(s,()=>{this._undo(o.batch,s);const i=this.editor.model.document.history.getOperations(o.batch.baseVersion);this._restoreSelection(o.selection.ranges,o.selection.isBackward,i)}),this.fire("revert",o.batch,s),this.refresh()}}class U extends g{execute(){const t=this._stack.pop(),e=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(e,()=>{const s=t.batch.operations[t.batch.operations.length-1].baseVersion+1,i=this.editor.model.document.history.getOperations(s);this._restoreSelection(t.selection.ranges,t.selection.isBackward,i),this._undo(t.batch,e)}),this.refresh()}}class O extends u{_undoCommand;_redoCommand;_batchRegistry=new WeakSet;static get pluginName(){return"UndoEditing"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=t.t;this._undoCommand=new T(t),this._redoCommand=new U(t),t.commands.add("undo",this._undoCommand),t.commands.add("redo",this._redoCommand),this.listenTo(t.model,"applyOperation",(o,s)=>{const i=s[0];if(!i.isDocumentOperation)return;const n=i.batch,d=this._redoCommand.createdBatches.has(n),h=this._undoCommand.createdBatches.has(n);this._batchRegistry.has(n)||(this._batchRegistry.add(n),n.isUndoable&&(d?this._undoCommand.addBatch(n):h||(this._undoCommand.addBatch(n),this._redoCommand.clearStack())))},{priority:"highest"}),this.listenTo(this._undoCommand,"revert",(o,s,i)=>{this._redoCommand.addBatch(i)}),t.keystrokes.set("CTRL+Z","undo"),t.keystrokes.set("CTRL+Y","redo"),t.keystrokes.set("CTRL+SHIFT+Z","redo"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Undo"),keystroke:"CTRL+Z"},{label:e("Redo"),keystroke:[["CTRL+Y"],["CTRL+SHIFT+Z"]]}]})}}class w extends u{static get pluginName(){return"UndoUI"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=t.locale,o=t.t,s=e.uiLanguageDirection=="ltr"?f:p,i=e.uiLanguageDirection=="ltr"?p:f;this._addButtonsToFactory("undo",o("Undo"),"CTRL+Z",s),this._addButtonsToFactory("redo",o("Redo"),"CTRL+Y",i)}_addButtonsToFactory(t,e,o,s){const i=this.editor;i.ui.componentFactory.add(t,()=>{const n=this._createButton(y,t,e,o,s);return n.set({tooltip:!0}),n}),i.ui.componentFactory.add("menuBar:"+t,()=>this._createButton(R,t,e,o,s))}_createButton(t,e,o,s,i){const n=this.editor,d=n.locale,h=n.commands.get(e),r=new t(d);return r.set({label:o,icon:i,keystroke:s}),r.bind("isEnabled").to(h,"isEnabled"),this.listenTo(r,"execute",()=>{n.execute(e),n.editing.view.focus()}),r}}class L extends u{static get requires(){return[O,w]}static get pluginName(){return"Undo"}static get isOfficialPlugin(){return!0}}export{L as Undo,O as UndoEditing,w as UndoUI};
@@ -1,4 +1,4 @@
1
- import{Plugin as h,PendingActions as o}from"../../../../../@ckeditor_ckeditor5-core@45.2.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{Collection as u,logWarning as c,ObservableMixin as p,uid as g,CKEditorError as d}from"../../../../../@ckeditor_ckeditor5-utils@45.2.1/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";/**
1
+ import{Plugin as h,PendingActions as o}from"../../../../../@ckeditor_ckeditor5-core@45.2.2/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{Collection as u,logWarning as c,ObservableMixin as p,uid as g,CKEditorError as d}from"../../../../../@ckeditor_ckeditor5-utils@45.2.2/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
  */class _ extends p(){total;_reader;_data;constructor(){super();const e=new window.FileReader;this._reader=e,this._data=void 0,this.set("loaded",0),e.onprogress=t=>{this.loaded=t.loaded}}get error(){return this._reader.error}get data(){return this._data}read(e){const t=this._reader;return this.total=e.size,new Promise((r,s)=>{t.onload=()=>{const a=t.result;this._data=a,r(a)},t.onerror=()=>{s("error")},t.onabort=()=>{s("aborted")},this._reader.readAsDataURL(e)})}abort(){this._reader.abort()}}class n extends h{loaders=new u;_loadersMap=new Map;_pendingAction=null;static get pluginName(){return"FileRepository"}static get isOfficialPlugin(){return!0}static get requires(){return[o]}init(){this.loaders.on("change",()=>this._updatePendingAction()),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(e,t)=>t?e/t*100:0)}getLoader(e){return this._loadersMap.get(e)||null}createLoader(e){if(!this.createUploadAdapter)return c("filerepository-no-upload-adapter"),null;const t=new l(Promise.resolve(e),this.createUploadAdapter);return this.loaders.add(t),this._loadersMap.set(e,t),e instanceof Promise&&t.file.then(r=>{this._loadersMap.set(r,t)}).catch(()=>{}),t.on("change:uploaded",()=>{let r=0;for(const s of this.loaders)r+=s.uploaded;this.uploaded=r}),t.on("change:uploadTotal",()=>{let r=0;for(const s of this.loaders)s.uploadTotal&&(r+=s.uploadTotal);this.uploadTotal=r}),t}destroyLoader(e){const t=e instanceof l?e:this.getLoader(e);t._destroy(),this.loaders.remove(t),this._loadersMap.forEach((r,s)=>{r===t&&this._loadersMap.delete(s)})}_updatePendingAction(){const e=this.editor.plugins.get(o);if(this.loaders.length){if(!this._pendingAction){const t=this.editor.t,r=s=>`${t("Upload in progress")} ${parseInt(s)}%.`;this._pendingAction=e.add(r(this.uploadedPercent)),this._pendingAction.bind("message").to(this,"uploadedPercent",r)}}else e.remove(this._pendingAction),this._pendingAction=null}}class l extends p(){id;_filePromiseWrapper;_adapter;_reader;constructor(e,t){super(),this.id=g(),this._filePromiseWrapper=this._createFilePromiseWrapper(e),this._adapter=t(this),this._reader=new _,this.set("status","idle"),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(r,s)=>s?r/s*100:0),this.set("uploadResponse",null)}get file(){return this._filePromiseWrapper?this._filePromiseWrapper.promise.then(e=>this._filePromiseWrapper?e:null):Promise.resolve(null)}get data(){return this._reader.data}read(){if(this.status!="idle")throw new d("filerepository-read-wrong-status",this);return this.status="reading",this.file.then(e=>this._reader.read(e)).then(e=>{if(this.status!=="reading")throw this.status;return this.status="idle",e}).catch(e=>{throw e==="aborted"?(this.status="aborted","aborted"):(this.status="error",this._reader.error?this._reader.error:e)})}upload(){if(this.status!="idle")throw new d("filerepository-upload-wrong-status",this);return this.status="uploading",this.file.then(()=>this._adapter.upload()).then(e=>(this.uploadResponse=e,this.status="idle",e)).catch(e=>{throw this.status==="aborted"?"aborted":(this.status="error",e)})}abort(){const e=this.status;this.status="aborted",this._filePromiseWrapper.isFulfilled?e=="reading"?this._reader.abort():e=="uploading"&&this._adapter.abort&&this._adapter.abort():(this._filePromiseWrapper.promise.catch(()=>{}),this._filePromiseWrapper.rejecter("aborted")),this._destroy()}_destroy(){this._filePromiseWrapper=void 0,this._reader=void 0,this._adapter=void 0,this.uploadResponse=void 0}_createFilePromiseWrapper(e){const t={};return t.promise=new Promise((r,s)=>{t.rejecter=s,t.isFulfilled=!1,e.then(a=>{t.isFulfilled=!0,r(a)}).catch(a=>{t.isFulfilled=!0,s(a)})}),t}}class b extends h{static get requires(){return[n]}static get pluginName(){return"Base64UploadAdapter"}static get isOfficialPlugin(){return!0}init(){this.editor.plugins.get(n).createUploadAdapter=e=>new f(e)}}let f=class{loader;reader;constructor(e){this.loader=e}upload(){return new Promise((e,t)=>{const r=this.reader=new window.FileReader;r.addEventListener("load",()=>{e({default:r.result})}),r.addEventListener("error",s=>{t(s)}),r.addEventListener("abort",()=>{t()}),this.loader.file.then(s=>{r.readAsDataURL(s)})})}abort(){this.reader.abort()}};export{b as Base64UploadAdapter,n as FileRepository};
@@ -20,7 +20,7 @@ import{isObject as Ut}from"../../../../../es-toolkit@1.32.0/node_modules/es-tool
20
20
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
21
21
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
22
22
  */const re="https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html";class d extends Error{context;data;constructor(t,n,i){super(le(t,i)),this.name="CKEditorError",this.context=n,this.data=i}is(t){return t==="CKEditorError"}static rethrowUnexpectedError(t,n){if(t.is&&t.is("CKEditorError"))throw t;const i=new d(t.message,n);throw i.stack=t.stack,i}}function dn(e,t){console.warn(...Ct(e,t))}function hn(e,t){console.error(...Ct(e,t))}function At(e){return`
23
- Read more: ${re}#error-${e}`}function le(e,t){const n=new WeakSet,o=t?` ${JSON.stringify(t,(r,l)=>{if(typeof l=="object"&&l!==null){if(n.has(l))return`[object ${l.constructor.name}]`;n.add(l)}return l})}`:"",s=At(e);return e+o+s}function Ct(e,t){const n=At(e);return t?[e,t,n]:[e,n]}const ce="45.2.1",pn=new Date(2025,5,24);/* istanbul ignore next -- @preserve */if(globalThis.CKEDITOR_VERSION)throw new d("ckeditor-duplicated-modules",null);globalThis.CKEDITOR_VERSION=ce;const L=Symbol("listeningTo"),Y=Symbol("emitterId"),E=Symbol("delegations"),Ft=T(Object);function T(e){if(!e)return Ft;class t extends e{on(i,o,s){this.listenTo(this,i,o,s)}once(i,o,s){let r=!1;const l=(c,...a)=>{r||(r=!0,c.off(),o.call(this,c,...a))};this.listenTo(this,i,l,s)}off(i,o){this.stopListening(this,i,o)}listenTo(i,o,s,r={}){let l,c;this[L]||(this[L]={});const a=this[L];W(i)||Mt(i);const f=W(i);(l=a[f])||(l=a[f]={emitter:i,callbacks:{}}),(c=l.callbacks[o])||(c=l.callbacks[o]=[]),c.push(s),he(this,i,o,s,r)}stopListening(i,o,s){const r=this[L];let l=i&&W(i);const c=r&&l?r[l]:void 0,a=c&&o?c.callbacks[o]:void 0;if(!(!r||i&&!c||o&&!a))if(s)K(this,i,o,s),a.indexOf(s)!==-1&&(a.length===1?delete c.callbacks[o]:K(this,i,o,s));else if(a){for(;s=a.pop();)K(this,i,o,s);delete c.callbacks[o]}else if(c){for(o in c.callbacks)this.stopListening(i,o);delete r[l]}else{for(l in r)this.stopListening(r[l].emitter);delete this[L]}}fire(i,...o){try{const s=i instanceof G?i:new G(this,i),r=s.name;let l=de(this,r);if(s.path.push(this),l){l=l.slice();for(let a=0;a<l.length;a++){const f=l[a].callback;if(f.call(this,s,...o),s.off.called&&(delete s.off.called,this._removeEventListener(r,f)),s.stop.called)break}}const c=this[E];if(c){const a=c.get(r),f=c.get("*");a&&at(a,s,o),f&&at(f,s,o)}return s.return}catch(s){/* istanbul ignore next -- @preserve */d.rethrowUnexpectedError(s,this)}}delegate(...i){return{to:(o,s)=>{this[E]||(this[E]=new Map),i.forEach(r=>{const l=this[E].get(r);l?l.set(o,s):this[E].set(r,new Map([[o,s]]))})}}}stopDelegating(i,o){if(this[E])if(!i)this[E].clear();else if(!o)this[E].delete(i);else{const s=this[E].get(i);s&&s.delete(o)}}_addEventListener(i,o,s){ue(this,i);const r=X(this,i),l=q.get(s.priority),c={callback:o,priority:l};for(const a of r)se(a,c)}_removeEventListener(i,o){const s=X(this,i);for(const r of s)for(let l=0;l<r.length;l++)r[l].callback==o&&(r.splice(l,1),l--)}}return t}["on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(e=>{T[e]=Ft.prototype[e]});function ae(e,t){const n=e[L];return n&&n[t]?n[t].emitter:null}function Mt(e,t){e[Y]||(e[Y]=t||Q())}function W(e){return e[Y]}function kt(e){return e._events||Object.defineProperty(e,"_events",{value:{}}),e._events}function fe(){return{callbacks:[],childEvents:[]}}function ue(e,t){const n=kt(e);if(n[t])return;let i=t,o=null;const s=[];for(;i!==""&&!n[i];)n[i]=fe(),s.push(n[i]),o&&n[i].childEvents.push(o),o=i,i=i.substr(0,i.lastIndexOf(":"));if(i!==""){for(const r of s)r.callbacks=n[i].callbacks.slice();n[i].childEvents.push(o)}}function X(e,t){const n=kt(e)[t];if(!n)return[];let i=[n.callbacks];for(let o=0;o<n.childEvents.length;o++){const s=X(e,n.childEvents[o]);i=i.concat(s)}return i}function de(e,t){if(!e._events)return null;let n=t;do{const i=e._events[n];if(i&&i.callbacks&&i.callbacks.length)return i.callbacks;const o=n.lastIndexOf(":");n=o>-1?n.substring(0,o):""}while(n);return null}function at(e,t,n){for(let[i,o]of e){o?typeof o=="function"&&(o=o(t.name)):o=t.name;const s=new G(t.source,o);s.path=[...t.path],i.fire(s,...n)}}function he(e,t,n,i,o){t._addEventListener?t._addEventListener(n,i,o):e._addEventListener.call(t,n,i,o)}function K(e,t,n,i){t._removeEventListener?t._removeEventListener(n,i):e._removeEventListener.call(t,n,i)}const v=Symbol("observableProperties"),V=Symbol("boundObservables"),S=Symbol("boundProperties"),I=Symbol("decoratedMethods"),ft=Symbol("decoratedOriginal"),vt=Z(T());function Z(e){if(!e)return vt;class t extends e{set(i,o){if(Ut(i)){Object.keys(i).forEach(r=>{this.set(r,i[r])},this);return}H(this);const s=this[v];if(i in this&&!s.has(i))throw new d("observable-set-cannot-override",this);Object.defineProperty(this,i,{enumerable:!0,configurable:!0,get(){return s.get(i)},set(r){const l=s.get(i);let c=this.fire(`set:${i}`,i,r,l);c===void 0&&(c=r),(l!==c||!s.has(i))&&(s.set(i,c),this.fire(`change:${i}`,i,c,l))}}),this[i]=o}bind(...i){if(!i.length||!ut(i))throw new d("observable-bind-wrong-properties",this);if(new Set(i).size!==i.length)throw new d("observable-bind-duplicate-properties",this);H(this);const o=this[S];i.forEach(r=>{if(o.has(r))throw new d("observable-bind-rebind",this)});const s=new Map;return i.forEach(r=>{const l={property:r,to:[]};o.set(r,l),s.set(r,l)}),{to:pe,toMany:ge,_observable:this,_bindProperties:i,_to:[],_bindings:s}}unbind(...i){if(!this[v])return;const o=this[S],s=this[V];if(i.length){if(!ut(i))throw new d("observable-unbind-wrong-properties",this);i.forEach(r=>{const l=o.get(r);l&&(l.to.forEach(([c,a])=>{const f=s.get(c),u=f[a];u.delete(l),u.size||delete f[a],Object.keys(f).length||(s.delete(c),this.stopListening(c,"change"))}),o.delete(r))})}else s.forEach((r,l)=>{this.stopListening(l,"change")}),s.clear(),o.clear()}decorate(i){H(this);const o=this[i];if(!o)throw new d("observablemixin-cannot-decorate-undefined",this,{object:this,methodName:i});this.on(i,(s,r)=>{s.return=o.apply(this,r)}),this[i]=function(...s){return this.fire(i,s)},this[i][ft]=o,this[I]||(this[I]=[]),this[I].push(i)}stopListening(i,o,s){if(!i&&this[I]){for(const r of this[I])this[r]=this[r][ft];delete this[I]}super.stopListening(i,o,s)}[v];[I];[S];[V]}return t}["set","bind","unbind","decorate","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(e=>{Z[e]=vt.prototype[e]});function H(e){e[v]||(Object.defineProperty(e,v,{value:new Map}),Object.defineProperty(e,V,{value:new Map}),Object.defineProperty(e,S,{value:new Map}))}function pe(...e){const t=be(...e),n=Array.from(this._bindings.keys()),i=n.length;if(!t.callback&&t.to.length>1)throw new d("observable-bind-to-no-callback",this);if(i>1&&t.callback)throw new d("observable-bind-to-extra-callback",this);t.to.forEach(o=>{if(o.properties.length&&o.properties.length!==i)throw new d("observable-bind-to-properties-length",this);o.properties.length||(o.properties=this._bindProperties)}),this._to=t.to,t.callback&&(this._bindings.get(n[0]).callback=t.callback),ye(this._observable,this._to),we(this),this._bindProperties.forEach(o=>{St(this._observable,o)})}function ge(e,t,n){if(this._bindings.size>1)throw new d("observable-bind-to-many-not-one-binding",this);this.to(...me(e,t),n)}function me(e,t){const n=e.map(i=>[i,t]);return Array.prototype.concat.apply([],n)}function ut(e){return e.every(t=>typeof t=="string")}function be(...e){if(!e.length)throw new d("observable-bind-to-parse-error",null);const t={to:[]};let n;return typeof e[e.length-1]=="function"&&(t.callback=e.pop()),e.forEach(i=>{if(typeof i=="string")n.properties.push(i);else if(typeof i=="object")n={observable:i,properties:[]},t.to.push(n);else throw new d("observable-bind-to-parse-error",null)}),t}function _e(e,t,n,i){const o=e[V],s=o.get(n),r=s||{};r[i]||(r[i]=new Set),r[i].add(t),s||o.set(n,r)}function we(e){let t;e._bindings.forEach((n,i)=>{e._to.forEach(o=>{t=o.properties[n.callback?0:e._bindProperties.indexOf(i)],n.to.push([o.observable,t]),_e(e._observable,n,o.observable,t)})})}function St(e,t){const i=e[S].get(t);let o;i.callback?o=i.callback.apply(e,i.to.map(s=>s[0][s[1]])):(o=i.to[0],o=o[0][o[1]]),Object.prototype.hasOwnProperty.call(e,t)?e[t]=o:e.set(t,o)}function ye(e,t){t.forEach(n=>{const i=e[V];let o;i.get(n.observable)||e.listenTo(n.observable,"change",(s,r)=>{o=i.get(n.observable)[r],o&&o.forEach(l=>{St(e,l.property)})})})}/**
23
+ Read more: ${re}#error-${e}`}function le(e,t){const n=new WeakSet,o=t?` ${JSON.stringify(t,(r,l)=>{if(typeof l=="object"&&l!==null){if(n.has(l))return`[object ${l.constructor.name}]`;n.add(l)}return l})}`:"",s=At(e);return e+o+s}function Ct(e,t){const n=At(e);return t?[e,t,n]:[e,n]}const ce="45.2.2",pn=new Date(2025,8,3);/* istanbul ignore next -- @preserve */if(globalThis.CKEDITOR_VERSION)throw new d("ckeditor-duplicated-modules",null);globalThis.CKEDITOR_VERSION=ce;const L=Symbol("listeningTo"),Y=Symbol("emitterId"),E=Symbol("delegations"),Ft=T(Object);function T(e){if(!e)return Ft;class t extends e{on(i,o,s){this.listenTo(this,i,o,s)}once(i,o,s){let r=!1;const l=(c,...a)=>{r||(r=!0,c.off(),o.call(this,c,...a))};this.listenTo(this,i,l,s)}off(i,o){this.stopListening(this,i,o)}listenTo(i,o,s,r={}){let l,c;this[L]||(this[L]={});const a=this[L];W(i)||Mt(i);const f=W(i);(l=a[f])||(l=a[f]={emitter:i,callbacks:{}}),(c=l.callbacks[o])||(c=l.callbacks[o]=[]),c.push(s),he(this,i,o,s,r)}stopListening(i,o,s){const r=this[L];let l=i&&W(i);const c=r&&l?r[l]:void 0,a=c&&o?c.callbacks[o]:void 0;if(!(!r||i&&!c||o&&!a))if(s)K(this,i,o,s),a.indexOf(s)!==-1&&(a.length===1?delete c.callbacks[o]:K(this,i,o,s));else if(a){for(;s=a.pop();)K(this,i,o,s);delete c.callbacks[o]}else if(c){for(o in c.callbacks)this.stopListening(i,o);delete r[l]}else{for(l in r)this.stopListening(r[l].emitter);delete this[L]}}fire(i,...o){try{const s=i instanceof G?i:new G(this,i),r=s.name;let l=de(this,r);if(s.path.push(this),l){l=l.slice();for(let a=0;a<l.length;a++){const f=l[a].callback;if(f.call(this,s,...o),s.off.called&&(delete s.off.called,this._removeEventListener(r,f)),s.stop.called)break}}const c=this[E];if(c){const a=c.get(r),f=c.get("*");a&&at(a,s,o),f&&at(f,s,o)}return s.return}catch(s){/* istanbul ignore next -- @preserve */d.rethrowUnexpectedError(s,this)}}delegate(...i){return{to:(o,s)=>{this[E]||(this[E]=new Map),i.forEach(r=>{const l=this[E].get(r);l?l.set(o,s):this[E].set(r,new Map([[o,s]]))})}}}stopDelegating(i,o){if(this[E])if(!i)this[E].clear();else if(!o)this[E].delete(i);else{const s=this[E].get(i);s&&s.delete(o)}}_addEventListener(i,o,s){ue(this,i);const r=X(this,i),l=q.get(s.priority),c={callback:o,priority:l};for(const a of r)se(a,c)}_removeEventListener(i,o){const s=X(this,i);for(const r of s)for(let l=0;l<r.length;l++)r[l].callback==o&&(r.splice(l,1),l--)}}return t}["on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(e=>{T[e]=Ft.prototype[e]});function ae(e,t){const n=e[L];return n&&n[t]?n[t].emitter:null}function Mt(e,t){e[Y]||(e[Y]=t||Q())}function W(e){return e[Y]}function kt(e){return e._events||Object.defineProperty(e,"_events",{value:{}}),e._events}function fe(){return{callbacks:[],childEvents:[]}}function ue(e,t){const n=kt(e);if(n[t])return;let i=t,o=null;const s=[];for(;i!==""&&!n[i];)n[i]=fe(),s.push(n[i]),o&&n[i].childEvents.push(o),o=i,i=i.substr(0,i.lastIndexOf(":"));if(i!==""){for(const r of s)r.callbacks=n[i].callbacks.slice();n[i].childEvents.push(o)}}function X(e,t){const n=kt(e)[t];if(!n)return[];let i=[n.callbacks];for(let o=0;o<n.childEvents.length;o++){const s=X(e,n.childEvents[o]);i=i.concat(s)}return i}function de(e,t){if(!e._events)return null;let n=t;do{const i=e._events[n];if(i&&i.callbacks&&i.callbacks.length)return i.callbacks;const o=n.lastIndexOf(":");n=o>-1?n.substring(0,o):""}while(n);return null}function at(e,t,n){for(let[i,o]of e){o?typeof o=="function"&&(o=o(t.name)):o=t.name;const s=new G(t.source,o);s.path=[...t.path],i.fire(s,...n)}}function he(e,t,n,i,o){t._addEventListener?t._addEventListener(n,i,o):e._addEventListener.call(t,n,i,o)}function K(e,t,n,i){t._removeEventListener?t._removeEventListener(n,i):e._removeEventListener.call(t,n,i)}const v=Symbol("observableProperties"),V=Symbol("boundObservables"),S=Symbol("boundProperties"),I=Symbol("decoratedMethods"),ft=Symbol("decoratedOriginal"),vt=Z(T());function Z(e){if(!e)return vt;class t extends e{set(i,o){if(Ut(i)){Object.keys(i).forEach(r=>{this.set(r,i[r])},this);return}H(this);const s=this[v];if(i in this&&!s.has(i))throw new d("observable-set-cannot-override",this);Object.defineProperty(this,i,{enumerable:!0,configurable:!0,get(){return s.get(i)},set(r){const l=s.get(i);let c=this.fire(`set:${i}`,i,r,l);c===void 0&&(c=r),(l!==c||!s.has(i))&&(s.set(i,c),this.fire(`change:${i}`,i,c,l))}}),this[i]=o}bind(...i){if(!i.length||!ut(i))throw new d("observable-bind-wrong-properties",this);if(new Set(i).size!==i.length)throw new d("observable-bind-duplicate-properties",this);H(this);const o=this[S];i.forEach(r=>{if(o.has(r))throw new d("observable-bind-rebind",this)});const s=new Map;return i.forEach(r=>{const l={property:r,to:[]};o.set(r,l),s.set(r,l)}),{to:pe,toMany:ge,_observable:this,_bindProperties:i,_to:[],_bindings:s}}unbind(...i){if(!this[v])return;const o=this[S],s=this[V];if(i.length){if(!ut(i))throw new d("observable-unbind-wrong-properties",this);i.forEach(r=>{const l=o.get(r);l&&(l.to.forEach(([c,a])=>{const f=s.get(c),u=f[a];u.delete(l),u.size||delete f[a],Object.keys(f).length||(s.delete(c),this.stopListening(c,"change"))}),o.delete(r))})}else s.forEach((r,l)=>{this.stopListening(l,"change")}),s.clear(),o.clear()}decorate(i){H(this);const o=this[i];if(!o)throw new d("observablemixin-cannot-decorate-undefined",this,{object:this,methodName:i});this.on(i,(s,r)=>{s.return=o.apply(this,r)}),this[i]=function(...s){return this.fire(i,s)},this[i][ft]=o,this[I]||(this[I]=[]),this[I].push(i)}stopListening(i,o,s){if(!i&&this[I]){for(const r of this[I])this[r]=this[r][ft];delete this[I]}super.stopListening(i,o,s)}[v];[I];[S];[V]}return t}["set","bind","unbind","decorate","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(e=>{Z[e]=vt.prototype[e]});function H(e){e[v]||(Object.defineProperty(e,v,{value:new Map}),Object.defineProperty(e,V,{value:new Map}),Object.defineProperty(e,S,{value:new Map}))}function pe(...e){const t=be(...e),n=Array.from(this._bindings.keys()),i=n.length;if(!t.callback&&t.to.length>1)throw new d("observable-bind-to-no-callback",this);if(i>1&&t.callback)throw new d("observable-bind-to-extra-callback",this);t.to.forEach(o=>{if(o.properties.length&&o.properties.length!==i)throw new d("observable-bind-to-properties-length",this);o.properties.length||(o.properties=this._bindProperties)}),this._to=t.to,t.callback&&(this._bindings.get(n[0]).callback=t.callback),ye(this._observable,this._to),we(this),this._bindProperties.forEach(o=>{St(this._observable,o)})}function ge(e,t,n){if(this._bindings.size>1)throw new d("observable-bind-to-many-not-one-binding",this);this.to(...me(e,t),n)}function me(e,t){const n=e.map(i=>[i,t]);return Array.prototype.concat.apply([],n)}function ut(e){return e.every(t=>typeof t=="string")}function be(...e){if(!e.length)throw new d("observable-bind-to-parse-error",null);const t={to:[]};let n;return typeof e[e.length-1]=="function"&&(t.callback=e.pop()),e.forEach(i=>{if(typeof i=="string")n.properties.push(i);else if(typeof i=="object")n={observable:i,properties:[]},t.to.push(n);else throw new d("observable-bind-to-parse-error",null)}),t}function _e(e,t,n,i){const o=e[V],s=o.get(n),r=s||{};r[i]||(r[i]=new Set),r[i].add(t),s||o.set(n,r)}function we(e){let t;e._bindings.forEach((n,i)=>{e._to.forEach(o=>{t=o.properties[n.callback?0:e._bindProperties.indexOf(i)],n.to.push([o.observable,t]),_e(e._observable,n,o.observable,t)})})}function St(e,t){const i=e[S].get(t);let o;i.callback?o=i.callback.apply(e,i.to.map(s=>s[0][s[1]])):(o=i.to[0],o=o[0][o[1]]),Object.prototype.hasOwnProperty.call(e,t)?e[t]=o:e.set(t,o)}function ye(e,t){t.forEach(n=>{const i=e[V];let o;i.get(n.observable)||e.listenTo(n.observable,"change",(s,r)=>{o=i.get(n.observable)[r],o&&o.forEach(l=>{St(e,l.property)})})})}/**
24
24
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
25
25
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
26
26
  */class gn{_replacedElements;constructor(){this._replacedElements=[]}replace(t,n){this._replacedElements.push({element:t,newElement:n}),t.style.display="none",n&&t.parentNode.insertBefore(n,t.nextSibling)}restore(){this._replacedElements.forEach(({element:t,newElement:n})=>{t.style.display="",n&&n.remove()}),this._replacedElements=[]}}/**
@@ -1,4 +1,4 @@
1
- import{Plugin as E}from"../../../../../@ckeditor_ckeditor5-core@45.2.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{MouseObserver as H,TreeWalker as K}from"../../../../../@ckeditor_ckeditor5-engine@45.2.1/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{Delete as V}from"../../../../../@ckeditor_ckeditor5-typing@45.2.1/node_modules/@ckeditor/ckeditor5-typing/dist/index.js";import{keyCodes as P,env as D,getLocalizedArrowKeyCodeDirection as j,logWarning as $,CKEditorError as I,isForwardArrowKeyCode as U,getRangeFromMouseEvent as q,global as T,DomEmitterMixin as G,toArray as O,Rect as b,ObservableMixin as F,compareArrays as Y,EmitterMixin as X}from"../../../../../@ckeditor_ckeditor5-utils@45.2.1/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{IconReturnArrow as J,IconDragHandle as Q}from"../../../../../@ckeditor_ckeditor5-icons@45.2.1/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import{ContextualBalloon as Z,ToolbarView as ee,BalloonPanelView as te,IconView as ie,Template as C,View as oe}from"../../../../../@ckeditor_ckeditor5-ui@45.2.1/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{Enter as ne}from"../../../../../@ckeditor_ckeditor5-enter@45.2.1/node_modules/@ckeditor/ckeditor5-enter/dist/index.js";import{throttle as se}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/function/throttle.js";/**
1
+ import{Plugin as E}from"../../../../../@ckeditor_ckeditor5-core@45.2.2/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{MouseObserver as H,TreeWalker as K}from"../../../../../@ckeditor_ckeditor5-engine@45.2.2/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{Delete as V}from"../../../../../@ckeditor_ckeditor5-typing@45.2.2/node_modules/@ckeditor/ckeditor5-typing/dist/index.js";import{keyCodes as P,env as D,getLocalizedArrowKeyCodeDirection as j,logWarning as $,CKEditorError as I,isForwardArrowKeyCode as U,getRangeFromMouseEvent as q,global as T,DomEmitterMixin as G,toArray as O,Rect as b,ObservableMixin as F,compareArrays as Y,EmitterMixin as X}from"../../../../../@ckeditor_ckeditor5-utils@45.2.2/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{IconReturnArrow as J,IconDragHandle as Q}from"../../../../../@ckeditor_ckeditor5-icons@45.2.2/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import{ContextualBalloon as Z,ToolbarView as ee,BalloonPanelView as te,IconView as ie,Template as C,View as oe}from"../../../../../@ckeditor_ckeditor5-ui@45.2.2/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{Enter as ne}from"../../../../../@ckeditor_ckeditor5-enter@45.2.2/node_modules/@ckeditor/ckeditor5-enter/dist/index.js";import{throttle as se}from"../../../../../es-toolkit@1.32.0/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 re extends X(){_stack=[];add(e,t){const i=this._stack,o=i[0];this._insertDescriptor(e);const n=i[0];o!==n&&!S(o,n)&&this.fire("change:top",{oldDescriptor:o,newDescriptor:n,writer:t})}remove(e,t){const i=this._stack,o=i[0];this._removeDescriptor(e);const n=i[0];o!==n&&!S(o,n)&&this.fire("change:top",{oldDescriptor:o,newDescriptor:n,writer:t})}_insertDescriptor(e){const t=this._stack,i=t.findIndex(n=>n.id===e.id);if(S(e,t[i]))return;i>-1&&t.splice(i,1);let o=0;for(;t[o]&&le(t[o],e);)o++;t.splice(o,0,e)}_removeDescriptor(e){const t=this._stack,i=t.findIndex(o=>o.id===e);i>-1&&t.splice(i,1)}}function S(s,e){return s&&e&&s.priority==e.priority&&v(s.classes)==v(e.classes)}function le(s,e){return s.priority>e.priority?!0:s.priority<e.priority?!1:v(s.classes)>v(e.classes)}function v(s){return Array.isArray(s)?s.sort().join(","):s}const ce="ck-widget",k="ck-widget_selected";function p(s){return s.is("element")?!!s.getCustomProperty("widget"):!1}function Ze(s,e,t={}){if(!s.is("containerElement"))throw new I("widget-to-widget-wrong-element-type",null,{element:s});return e.setAttribute("contenteditable","false",s),e.addClass(ce,s),e.setCustomProperty("widget",!0,s),s.getFillerOffset=ge,e.setCustomProperty("widgetLabel",[],s),t.label&&he(s,t.label),t.hasSelectionHandle&&pe(s,e),N(s,e),s}function ae(s,e,t){if(e.classes&&t.addClass(O(e.classes),s),e.attributes)for(const i in e.attributes)t.setAttribute(i,e.attributes[i],s)}function de(s,e,t){if(e.classes&&t.removeClass(O(e.classes),s),e.attributes)for(const i in e.attributes)t.removeAttribute(i,s)}function N(s,e,t=ae,i=de){const o=new re;o.on("change:top",(l,c)=>{c.oldDescriptor&&i(s,c.oldDescriptor,c.writer),c.newDescriptor&&t(s,c.newDescriptor,c.writer)});const n=(l,c,a)=>o.add(c,a),r=(l,c,a)=>o.remove(c,a);e.setCustomProperty("addHighlight",n,s),e.setCustomProperty("removeHighlight",r,s)}function he(s,e){s.getCustomProperty("widgetLabel").push(e)}function ue(s){return s.getCustomProperty("widgetLabel").reduce((t,i)=>typeof i=="function"?t?t+". "+i():i():t?t+". "+i:i,"")}function et(s,e,t={}){return e.addClass(["ck-editor__editable","ck-editor__nested-editable"],s),t.withAriaRole!==!1&&e.setAttribute("role","textbox",s),e.setAttribute("tabindex","-1",s),t.label&&e.setAttribute("aria-label",t.label,s),e.setAttribute("contenteditable",s.isReadOnly?"false":"true",s),s.on("change:isReadOnly",(i,o,n)=>{e.setAttribute("contenteditable",n?"false":"true",s)}),s.on("change:isFocused",(i,o,n)=>{n?e.addClass("ck-editor__nested-editable_focused",s):e.removeClass("ck-editor__nested-editable_focused",s)}),N(s,e),s}function tt(s,e){const t=s.getSelectedElement();if(t){const i=w(s);if(i)return e.createRange(e.createPositionAt(t,i))}return e.schema.findOptimalInsertionRange(s)}function ge(){return null}function pe(s,e){const t=e.createUIElement("div",{class:"ck ck-widget__selection-handle"},function(i){const o=this.toDomElement(i),n=new ie;return n.set("content",Q),n.render(),o.appendChild(n.element),o});e.insert(e.createPositionAt(s,0),t),e.addClass(["ck-widget_with-selection-handle"],s)}function fe(s){const e=l=>{const{width:c,paddingLeft:a,paddingRight:h}=l.ownerDocument.defaultView.getComputedStyle(l);return parseFloat(c)-(parseFloat(a)||0)-(parseFloat(h)||0)},t=s.parentElement;if(!t)return 0;let i=e(t);const o=5;let n=0,r=t;for(;isNaN(i);){if(r=r.parentElement,++n>o)return 0;i=e(r)}return i}function me(s,e=new b(s)){const t=fe(s);return t?e.width/t*100:0}const m="widget-type-around";function _(s,e,t){return!!s&&p(s)&&!t.isInline(e)}function we(s){return s.closest(".ck-widget__type-around__button")}function _e(s){return s.classList.contains("ck-widget__type-around__button_before")?"before":"after"}function be(s,e){const t=s.closest(".ck-widget");return e.mapDomToView(t)}function w(s){return s.getAttribute(m)}const M=["before","after"],ye=new DOMParser().parseFromString(J,"image/svg+xml").firstChild,A="ck-widget__type-around_disabled";class ve extends E{_currentFakeCaretModelElement=null;static get pluginName(){return"WidgetTypeAround"}static get isOfficialPlugin(){return!0}static get requires(){return[ne,V]}init(){const e=this.editor,t=e.editing.view;this.on("change:isEnabled",(i,o,n)=>{t.change(r=>{for(const l of t.document.roots)n?r.removeClass(A,l):r.addClass(A,l)}),n||e.model.change(r=>{r.removeSelectionAttribute(m)})}),this._enableTypeAroundUIInjection(),this._enableInsertingParagraphsOnButtonClick(),this._enableInsertingParagraphsOnEnterKeypress(),this._enableInsertingParagraphsOnTypingKeystroke(),this._enableTypeAroundFakeCaretActivationUsingKeyboardArrows(),this._enableDeleteIntegration(),this._enableInsertContentIntegration(),this._enableInsertObjectIntegration(),this._enableDeleteContentIntegration()}destroy(){super.destroy(),this._currentFakeCaretModelElement=null}_insertParagraph(e,t){const i=this.editor,o=i.editing.view,n=i.model.schema.getAttributesWithProperty(e,"copyOnReplace",!0);i.execute("insertParagraph",{position:i.model.createPositionAt(e,t),attributes:n}),o.focus(),o.scrollToTheSelection()}_listenToIfEnabled(e,t,i,o){this.listenTo(e,t,(...n)=>{this.isEnabled&&i(...n)},o)}_insertParagraphAccordingToFakeCaretPosition(){const i=this.editor.model.document.selection,o=w(i);if(!o)return!1;const n=i.getSelectedElement();return this._insertParagraph(n,o),!0}_enableTypeAroundUIInjection(){const e=this.editor,t=e.model.schema,i=e.locale.t,o={before:i("Insert paragraph before block"),after:i("Insert paragraph after block")};e.editing.downcastDispatcher.on("insert",(n,r,l)=>{const c=l.mapper.toViewElement(r.item);c&&_(c,r.item,t)&&(Ee(l.writer,o,c),c.getCustomProperty("widgetLabel").push(()=>this.isEnabled?i("Press Enter to type after or press Shift + Enter to type before the widget"):""))},{priority:"low"})}_enableTypeAroundFakeCaretActivationUsingKeyboardArrows(){const e=this.editor,t=e.model,i=t.document.selection,o=t.schema,n=e.editing.view;this._listenToIfEnabled(n.document,"arrowKey",(l,c)=>{this._handleArrowKeyPress(l,c)},{context:[p,"$text"],priority:"high"}),this._listenToIfEnabled(i,"change:range",(l,c)=>{c.directChange&&e.model.change(a=>{a.removeSelectionAttribute(m)})}),this._listenToIfEnabled(t.document,"change:data",()=>{const l=i.getSelectedElement();if(l){const c=e.editing.mapper.toViewElement(l);if(_(c,l,o))return}e.model.change(c=>{c.removeSelectionAttribute(m)})}),this._listenToIfEnabled(e.editing.downcastDispatcher,"selection",(l,c,a)=>{const h=a.writer;if(this._currentFakeCaretModelElement){const f=a.mapper.toViewElement(this._currentFakeCaretModelElement);f&&(h.removeClass(M.map(r),f),this._currentFakeCaretModelElement=null)}const d=c.selection.getSelectedElement();if(!d)return;const g=a.mapper.toViewElement(d);if(!_(g,d,o))return;const u=w(c.selection);u&&(h.addClass(r(u),g),this._currentFakeCaretModelElement=d)}),this._listenToIfEnabled(e.ui.focusTracker,"change:isFocused",(l,c,a)=>{a||e.model.change(h=>{h.removeSelectionAttribute(m)})});function r(l){return`ck-widget_type-around_show-fake-caret_${l}`}}_handleArrowKeyPress(e,t){const i=this.editor,o=i.model,n=o.document.selection,r=o.schema,l=i.editing.view,c=t.keyCode,a=U(c,i.locale.contentLanguageDirection),h=l.document.selection.getSelectedElement(),d=i.editing.mapper.toModelElement(h);let g;_(h,d,r)?g=this._handleArrowKeyPressOnSelectedWidget(a):n.isCollapsed?g=this._handleArrowKeyPressWhenSelectionNextToAWidget(a):t.shiftKey||(g=this._handleArrowKeyPressWhenNonCollapsedSelection(a)),g&&(t.preventDefault(),e.stop())}_handleArrowKeyPressOnSelectedWidget(e){const i=this.editor.model,o=i.document.selection,n=w(o);return i.change(r=>{if(n){if(!(n===(e?"after":"before")))return r.removeSelectionAttribute(m),!0}else return r.setSelectionAttribute(m,e?"after":"before"),!0;return!1})}_handleArrowKeyPressWhenSelectionNextToAWidget(e){const t=this.editor,i=t.model,o=i.schema,n=t.plugins.get("Widget"),r=n._getObjectElementNextToSelection(e),l=t.editing.mapper.toViewElement(r);return _(l,r,o)?(i.change(c=>{n._setSelectionOverElement(r),c.setSelectionAttribute(m,e?"before":"after")}),!0):!1}_handleArrowKeyPressWhenNonCollapsedSelection(e){const t=this.editor,i=t.model,o=i.schema,n=t.editing.mapper,r=i.document.selection,l=e?r.getLastPosition().nodeBefore:r.getFirstPosition().nodeAfter,c=n.toViewElement(l);return _(c,l,o)?(i.change(a=>{a.setSelection(l,"on"),a.setSelectionAttribute(m,e?"after":"before")}),!0):!1}_enableInsertingParagraphsOnButtonClick(){const e=this.editor,t=e.editing.view;this._listenToIfEnabled(t.document,"mousedown",(i,o)=>{const n=we(o.domTarget);if(!n)return;const r=_e(n),l=be(n,t.domConverter),c=e.editing.mapper.toModelElement(l);this._insertParagraph(c,r),o.preventDefault(),i.stop()})}_enableInsertingParagraphsOnEnterKeypress(){const e=this.editor,t=e.model.document.selection,i=e.editing.view;this._listenToIfEnabled(i.document,"enter",(o,n)=>{if(o.eventPhase!="atTarget")return;const r=t.getSelectedElement(),l=e.editing.mapper.toViewElement(r),c=e.model.schema;let a;this._insertParagraphAccordingToFakeCaretPosition()?a=!0:_(l,r,c)&&(this._insertParagraph(r,n.isSoft?"before":"after"),a=!0),a&&(n.preventDefault(),o.stop())},{context:p})}_enableInsertingParagraphsOnTypingKeystroke(){const t=this.editor.editing.view.document;this._listenToIfEnabled(t,"insertText",(i,o)=>{this._insertParagraphAccordingToFakeCaretPosition()&&(o.selection=t.selection)},{priority:"high"}),D.isAndroid?this._listenToIfEnabled(t,"keydown",(i,o)=>{o.keyCode==229&&this._insertParagraphAccordingToFakeCaretPosition()}):this._listenToIfEnabled(t,"compositionstart",()=>{this._insertParagraphAccordingToFakeCaretPosition()},{priority:"highest"})}_enableDeleteIntegration(){const e=this.editor,t=e.editing.view,i=e.model,o=i.schema;this._listenToIfEnabled(t.document,"delete",(n,r)=>{if(n.eventPhase!="atTarget")return;const l=w(i.document.selection);if(!l)return;const c=r.direction,a=i.document.selection.getSelectedElement(),h=l==="before",d=c=="forward";if(h===d)e.execute("delete",{selection:i.createSelection(a,"on")});else{const u=o.getNearestSelectionRange(i.createPositionAt(a,l),c);if(u)if(!u.isCollapsed)i.change(f=>{f.setSelection(u),e.execute(d?"deleteForward":"delete")});else{const f=i.createSelection(u.start);if(i.modifySelection(f,{direction:c}),!f.focus.isEqual(u.start))i.change(y=>{y.setSelection(u),e.execute(d?"deleteForward":"delete")});else{const y=Ce(o,u.start.parent);i.deleteContent(i.createSelection(y,"on"),{doNotAutoparagraph:!0})}}}r.preventDefault(),n.stop()},{context:p})}_enableInsertContentIntegration(){const e=this.editor,t=this.editor.model,i=t.document.selection;this._listenToIfEnabled(e.model,"insertContent",(o,[n,r])=>{if(r&&!r.is("documentSelection"))return;const l=w(i);if(l)return o.stop(),t.change(c=>{const a=i.getSelectedElement(),h=t.createPositionAt(a,l),d=c.createSelection(h),g=t.insertContent(n,d);return c.setSelection(d),g})},{priority:"high"})}_enableInsertObjectIntegration(){const e=this.editor,i=this.editor.model.document.selection;this._listenToIfEnabled(e.model,"insertObject",(o,n)=>{const[,r,l={}]=n;if(r&&!r.is("documentSelection"))return;const c=w(i);c&&(l.findOptimalPosition=c,n[3]=l)},{priority:"high"})}_enableDeleteContentIntegration(){const e=this.editor,i=this.editor.model.document.selection;this._listenToIfEnabled(e.model,"deleteContent",(o,[n])=>{if(n&&!n.is("documentSelection"))return;w(i)&&o.stop()},{priority:"high"})}}function Ee(s,e,t){const i=s.createUIElement("div",{class:"ck ck-reset_all ck-widget__type-around"},function(o){const n=this.toDomElement(o);return Se(n,e),Pe(n),n});s.insert(s.createPositionAt(t,"end"),i)}function Se(s,e){for(const t of M){const i=new C({tag:"div",attributes:{class:["ck","ck-widget__type-around__button",`ck-widget__type-around__button_${t}`],title:e[t],"aria-hidden":"true"},children:[s.ownerDocument.importNode(ye,!0)]});s.appendChild(i.render())}}function Pe(s){const e=new C({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}});s.appendChild(e.render())}function Ce(s,e){let t=e;for(const i of e.getAncestors({parentFirst:!0})){if(i.childCount>1||s.isLimit(i))break;t=i}return t}function Te(s){const e=s.model;return(t,i)=>{const o=i.keyCode==P.arrowup,n=i.keyCode==P.arrowdown,r=i.shiftKey,l=e.document.selection;if(!o&&!n)return;const c=n;if(r&&Re(l,c))return;const a=ke(s,l,c);if(a){if(a.isCollapsed){if(l.isCollapsed)return;if(r)return}(a.isCollapsed||Ae(s,a,c))&&(e.change(h=>{const d=c?a.end:a.start;if(r){const g=e.createSelection(l.anchor);g.setFocus(d),h.setSelection(g)}else h.setSelection(d)}),t.stop(),i.preventDefault(),i.stopPropagation())}}}function ke(s,e,t){const i=s.model;if(t){const o=e.isCollapsed?e.focus:e.getLastPosition(),n=R(i,o,"forward");if(!n)return null;const r=i.createRange(o,n),l=W(i.schema,r,"backward");return l?i.createRange(o,l):null}else{const o=e.isCollapsed?e.focus:e.getFirstPosition(),n=R(i,o,"backward");if(!n)return null;const r=i.createRange(n,o),l=W(i.schema,r,"forward");return l?i.createRange(l,o):null}}function R(s,e,t){const i=s.schema,o=s.createRangeIn(e.root),n=t=="forward"?"elementStart":"elementEnd";for(const{previousPosition:r,item:l,type:c}of o.getWalker({startPosition:e,direction:t})){if(i.isLimit(l)&&!i.isInline(l))return r;if(c==n&&i.isBlock(l))return null}return null}function W(s,e,t){const i=t=="backward"?e.end:e.start;if(s.checkChild(i,"$text"))return i;for(const{nextPosition:o}of e.getWalker({direction:t}))if(s.checkChild(o,"$text"))return o;return null}function Ae(s,e,t){const i=s.model,o=s.view.domConverter;if(t){const a=i.createSelection(e.start);i.modifySelection(a),!a.focus.isAtEnd&&!e.start.isEqual(a.focus)&&(e=i.createRange(a.focus,e.end))}const n=s.mapper.toViewRange(e),r=o.viewRangeToDom(n),l=b.getDomRangeRects(r);let c;for(const a of l){if(c===void 0){c=Math.round(a.bottom);continue}if(Math.round(a.top)>=c)return!1;c=Math.max(c,Math.round(a.bottom))}return!0}function Re(s,e){return!s.isCollapsed&&s.isBackward==e}class it extends E{_previouslySelected=new Set;static get pluginName(){return"Widget"}static get isOfficialPlugin(){return!0}static get requires(){return[ve,V]}init(){const e=this.editor,t=e.editing.view,i=t.document,o=e.t;this.editor.editing.downcastDispatcher.on("selection",(n,r,l)=>{const c=l.writer,a=r.selection;if(a.isCollapsed)return;const h=a.getSelectedElement();if(!h)return;const d=e.editing.mapper.toViewElement(h);p(d)&&l.consumable.consume(a,"selection")&&c.setSelection(c.createRangeOn(d),{fake:!0,label:ue(d)})}),this.editor.editing.downcastDispatcher.on("selection",(n,r,l)=>{this._clearPreviouslySelectedWidgets(l.writer);const c=l.writer,a=c.document.selection;let h=null;for(const d of a.getRanges())for(const g of d){const u=g.item;p(u)&&!xe(u,h)&&(c.addClass(k,u),this._previouslySelected.add(u),h=u)}},{priority:"low"}),t.addObserver(H),this.listenTo(i,"mousedown",(...n)=>this._onMousedown(...n)),this.listenTo(i,"arrowKey",(...n)=>{this._handleSelectionChangeOnArrowKeyPress(...n)},{context:[p,"$text"]}),this.listenTo(i,"arrowKey",(...n)=>{this._preventDefaultOnArrowKeyPress(...n)},{context:"$root"}),this.listenTo(i,"arrowKey",Te(this.editor.editing),{context:"$text"}),this.listenTo(i,"delete",(n,r)=>{this._handleDelete(r.direction=="forward")&&(r.preventDefault(),n.stop())},{context:"$root"}),this.listenTo(i,"tab",(n,r)=>{n.eventPhase=="atTarget"&&(r.shiftKey||this._selectFirstNestedEditable()&&(r.preventDefault(),n.stop()))},{context:p,priority:"low"}),this.listenTo(i,"tab",(n,r)=>{r.shiftKey&&this._selectAncestorWidget()&&(r.preventDefault(),n.stop())},{priority:"low"}),this.listenTo(i,"keydown",(n,r)=>{r.keystroke==P.esc&&this._selectAncestorWidget()&&(r.preventDefault(),n.stop())},{priority:"low"}),e.accessibility.addKeystrokeInfoGroup({id:"widget",label:o("Keystrokes that can be used when a widget is selected (for example: image, table, etc.)"),keystrokes:[{label:o("Move focus from an editable area back to the parent widget"),keystroke:"Esc"},{label:o("Insert a new paragraph directly after a widget"),keystroke:"Enter"},{label:o("Insert a new paragraph directly before a widget"),keystroke:"Shift+Enter"},{label:o("Move the caret to allow typing directly before a widget"),keystroke:[["arrowup"],["arrowleft"]]},{label:o("Move the caret to allow typing directly after a widget"),keystroke:[["arrowdown"],["arrowright"]]}]})}_onMousedown(e,t){const i=this.editor,o=i.editing.view,n=o.document;let r=t.target;if(!r)return;if(t.domEvent.detail>=3){this._selectBlockContent(r)&&t.preventDefault();return}if(!p(r)){const c=We(r);if(!c)return;if(p(c))r=c;else{const a=ze(o,t);if(a&&p(a))r=a;else return}}D.isAndroid&&t.preventDefault(),n.isFocused||o.focus();const l=i.editing.mapper.toModelElement(r);this._setSelectionOverElement(l)}_selectBlockContent(e){const t=this.editor,i=t.model,o=t.editing.mapper,n=i.schema,r=o.findMappedViewAncestor(this.editor.editing.view.createPositionAt(e,0)),l=He(o.toModelElement(r),i.schema);return l?(i.change(c=>{const a=n.isLimit(l)?null:Ve(c.createPositionAfter(l),n),h=c.createPositionAt(l,0),d=a?c.createPositionAt(a,0):c.createPositionAt(l,"end");c.setSelection(c.createRange(h,d))}),!0):!1}_handleSelectionChangeOnArrowKeyPress(e,t){const i=t.keyCode,o=this.editor.model,n=o.schema,r=o.document.selection,l=r.getSelectedElement(),c=j(i,this.editor.locale.contentLanguageDirection),a=c=="down"||c=="right",h=c=="up"||c=="down";if(l&&n.isObject(l)){const g=a?r.getLastPosition():r.getFirstPosition(),u=n.getNearestSelectionRange(g,a?"forward":"backward");u&&(o.change(f=>{f.setSelection(u)}),t.preventDefault(),e.stop());return}if(!r.isCollapsed&&!t.shiftKey){const g=r.getFirstPosition(),u=r.getLastPosition(),f=g.nodeAfter,y=u.nodeBefore;(f&&n.isObject(f)||y&&n.isObject(y))&&(o.change(B=>{B.setSelection(a?u:g)}),t.preventDefault(),e.stop());return}if(!r.isCollapsed)return;const d=this._getObjectElementNextToSelection(a);if(d&&n.isObject(d)){if(n.isInline(d)&&h)return;this._setSelectionOverElement(d),t.preventDefault(),e.stop()}}_preventDefaultOnArrowKeyPress(e,t){const i=this.editor.model,o=i.schema,n=i.document.selection.getSelectedElement();n&&o.isObject(n)&&(t.preventDefault(),e.stop())}_handleDelete(e){const i=this.editor.model.document.selection;if(!this.editor.model.canEditAt(i)||!i.isCollapsed)return;const o=this._getObjectElementNextToSelection(e);if(o)return this.editor.model.change(n=>{let r=i.anchor.parent;for(;r.isEmpty;){const l=r;r=l.parent,n.remove(l)}this._setSelectionOverElement(o)}),!0}_setSelectionOverElement(e){this.editor.model.change(t=>{t.setSelection(t.createRangeOn(e))})}_getObjectElementNextToSelection(e){const t=this.editor.model,i=t.schema,o=t.document.selection,n=t.createSelection(o);if(t.modifySelection(n,{direction:e?"forward":"backward"}),n.isEqual(o))return null;const r=e?n.focus.nodeBefore:n.focus.nodeAfter;return r&&i.isObject(r)?r:null}_clearPreviouslySelectedWidgets(e){for(const t of this._previouslySelected)e.removeClass(k,t);this._previouslySelected.clear()}_selectFirstNestedEditable(){const e=this.editor,i=this.editor.editing.view.document;for(const o of i.selection.getFirstRange().getItems())if(o.is("editableElement")){const n=e.editing.mapper.toModelElement(o);/* istanbul ignore next -- @preserve */if(!n)continue;const r=e.model.createPositionAt(n,0),l=e.model.schema.getNearestSelectionRange(r,"forward");return e.model.change(c=>{c.setSelection(l)}),!0}return!1}_selectAncestorWidget(){const e=this.editor,t=e.editing.mapper,o=e.editing.view.document.selection.getFirstPosition().parent,r=(o.is("$text")?o.parent:o).findAncestor(p);if(!r)return!1;const l=t.toModelElement(r);/* istanbul ignore next -- @preserve */return l?(e.model.change(c=>{c.setSelection(l,"on")}),!0):!1}}function We(s){let e=s;for(;e;){if(e.is("editableElement")||p(e))return e;e=e.parent}return null}function ze(s,e){const t=q(e.domEvent);let i=null;if(t?i=s.domConverter.domRangeToView(t):i=s.createRange(s.createPositionAt(e.target,0)),!i)return null;const o=i.start;if(!o.parent)return null;let n=o.parent;return o.parent.is("editableElement")&&(o.isAtEnd&&o.nodeBefore?n=o.nodeBefore:o.isAtStart&&o.nodeAfter&&(n=o.nodeAfter)),n.is("$text")?n.parent:n}function xe(s,e){return e?Array.from(s.getAncestors()).includes(e):!1}function He(s,e){for(const t of s.getAncestors({includeSelf:!0,parentFirst:!0})){if(e.checkChild(t,"$text"))return t;if(e.isLimit(t)&&!e.isObject(t))break}return null}function Ve(s,e){const t=new K({startPosition:s});for(const{item:i}of t){if(e.isLimit(i)||!i.is("element"))return null;if(e.checkChild(i,"$text"))return i}return null}class ot extends E{_toolbarDefinitions=new Map;_balloon;static get requires(){return[Z]}static get pluginName(){return"WidgetToolbarRepository"}static get isOfficialPlugin(){return!0}init(){const e=this.editor;if(e.plugins.has("BalloonToolbar")){const t=e.plugins.get("BalloonToolbar");this.listenTo(t,"show",i=>{De(e.editing.view.document.selection)&&i.stop()},{priority:"high"})}this._balloon=this.editor.plugins.get("ContextualBalloon"),this.on("change:isEnabled",()=>{this._updateToolbarsVisibility()}),this.listenTo(e.ui,"update",()=>{this._updateToolbarsVisibility()}),this.listenTo(e.ui.focusTracker,"change:isFocused",()=>{this._updateToolbarsVisibility()},{priority:"low"})}destroy(){super.destroy();for(const e of this._toolbarDefinitions.values())e.view.destroy()}register(e,{ariaLabel:t,items:i,getRelatedElement:o,balloonClassName:n="ck-toolbar-container",positions:r}){if(!i.length){$("widget-toolbar-no-items",{toolbarId:e});return}const l=this.editor,c=l.t,a=new ee(l.locale);if(a.ariaLabel=t||c("Widget toolbar"),this._toolbarDefinitions.has(e))throw new I("widget-toolbar-duplicated",this,{toolbarId:e});const h={view:a,getRelatedElement:o,balloonClassName:n,itemsConfig:i,positions:r,initialized:!1};l.ui.addToolbar(a,{isContextual:!0,beforeFocus:()=>{const d=o(l.editing.view.document.selection);d&&this._showToolbar(h,d)},afterBlur:()=>{this._hideToolbar(h)}}),this._toolbarDefinitions.set(e,h)}_updateToolbarsVisibility(){let e=0,t=null,i=null;for(const o of this._toolbarDefinitions.values()){const n=o.getRelatedElement(this.editor.editing.view.document.selection);if(!this.isEnabled||!n)this._isToolbarInBalloon(o)&&this._hideToolbar(o);else if(!this.editor.ui.focusTracker.isFocused)this._isToolbarVisible(o)&&this._hideToolbar(o);else{const r=n.getAncestors().length;r>e&&(e=r,t=n,i=o)}}i&&this._showToolbar(i,t)}_hideToolbar(e){this._balloon.remove(e.view),this.stopListening(this._balloon,"change:visibleView")}_showToolbar(e,t){this._isToolbarVisible(e)?z(this.editor,t,e.positions):this._isToolbarInBalloon(e)||(e.initialized||(e.initialized=!0,e.view.fillFromConfig(e.itemsConfig,this.editor.ui.componentFactory)),this._balloon.add({view:e.view,position:L(this.editor,t,e.positions),balloonClassName:e.balloonClassName}),this.listenTo(this._balloon,"change:visibleView",()=>{for(const i of this._toolbarDefinitions.values())if(this._isToolbarVisible(i)){const o=i.getRelatedElement(this.editor.editing.view.document.selection);z(this.editor,o,e.positions)}}))}_isToolbarVisible(e){return this._balloon.visibleView===e.view}_isToolbarInBalloon(e){return this._balloon.hasView(e.view)}}function z(s,e,t){const i=s.plugins.get("ContextualBalloon"),o=L(s,e,t);i.updatePosition(o)}function L(s,e,t){const i=s.editing.view,o=te.defaultPositions;return{target:i.domConverter.mapViewToDom(e),positions:t||[o.northArrowSouth,o.northArrowSouthWest,o.northArrowSouthEast,o.southArrowNorth,o.southArrowNorthWest,o.southArrowNorthEast,o.viewportStickyNorth]}}function De(s){const e=s.getSelectedElement();return!!(e&&p(e))}class Ie extends F(){_referenceCoordinates;_options;_originalWidth;_originalHeight;_originalWidthPercents;_aspectRatio;constructor(e){super(),this.set("activeHandlePosition",null),this.set("proposedWidthPercents",null),this.set("proposedWidth",null),this.set("proposedHeight",null),this.set("proposedHandleHostWidth",null),this.set("proposedHandleHostHeight",null),this._options=e,this._referenceCoordinates=null}get originalWidth(){return this._originalWidth}get originalHeight(){return this._originalHeight}get originalWidthPercents(){return this._originalWidthPercents}get aspectRatio(){return this._aspectRatio}begin(e,t,i){const o=new b(t);this.activeHandlePosition=Ne(e),this._referenceCoordinates=Oe(t,Me(this.activeHandlePosition)),this._originalWidth=o.width,this._originalHeight=o.height,this._aspectRatio=o.width/o.height;const n=i.style.width;n&&n.match(/^\d+(\.\d*)?%$/)?this._originalWidthPercents=parseFloat(n):this._originalWidthPercents=me(i,o)}update(e){this.proposedWidth=e.width,this.proposedHeight=e.height,this.proposedWidthPercents=e.widthPercents,this.proposedHandleHostWidth=e.handleHostWidth,this.proposedHandleHostHeight=e.handleHostHeight}}function Oe(s,e){const t=new b(s),i=e.split("-"),o={x:i[1]=="right"?t.right:t.left,y:i[0]=="bottom"?t.bottom:t.top};return o.x+=s.ownerDocument.defaultView.scrollX,o.y+=s.ownerDocument.defaultView.scrollY,o}function Fe(s){return`ck-widget__resizer__handle-${s}`}function Ne(s){const e=["top-left","top-right","bottom-right","bottom-left"];for(const t of e)if(s.classList.contains(Fe(t)))return t}function Me(s){const e=s.split("-"),t={top:"bottom",bottom:"top",left:"right",right:"left"};return`${t[e[0]]}-${t[e[1]]}`}class Le extends oe{constructor(){super();const e=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-size-view",e.to("_viewPosition",t=>t?`ck-orientation-${t}`:"")],style:{display:e.if("_isVisible","none",t=>!t)}},children:[{text:e.to("_label")}]})}_bindToState(e,t){this.bind("_isVisible").to(t,"proposedWidth",t,"proposedHeight",(i,o)=>i!==null&&o!==null),this.bind("_label").to(t,"proposedHandleHostWidth",t,"proposedHandleHostHeight",t,"proposedWidthPercents",(i,o,n)=>e.unit==="px"?`${i}×${o}`:`${n}%`),this.bind("_viewPosition").to(t,"activeHandlePosition",t,"proposedHandleHostWidth",t,"proposedHandleHostHeight",(i,o,n)=>o<50||n<50?"above-center":i)}_dismiss(){this.unbind(),this._isVisible=!1}}class x extends F(){_state;_sizeView;_options;_viewResizerWrapper=null;_initialViewWidth;constructor(e){super(),this._options=e,this.set("isEnabled",!0),this.set("isSelected",!1),this.bind("isVisible").to(this,"isEnabled",this,"isSelected",(t,i)=>t&&i),this.decorate("begin"),this.decorate("cancel"),this.decorate("commit"),this.decorate("updateSize"),this.on("commit",t=>{!this.state.proposedWidth&&!this.state.proposedWidthPercents&&(this._cleanup(),t.stop())},{priority:"high"})}get state(){return this._state}show(){this._options.editor.editing.view.change(t=>{t.removeClass("ck-hidden",this._viewResizerWrapper)})}hide(){this._options.editor.editing.view.change(t=>{t.addClass("ck-hidden",this._viewResizerWrapper)})}attach(){const e=this,t=this._options.viewElement;this._options.editor.editing.view.change(o=>{const n=o.createUIElement("div",{class:"ck ck-reset_all ck-widget__resizer"},function(r){const l=this.toDomElement(r);return e._appendHandles(l),e._appendSizeUI(l),l});o.insert(o.createPositionAt(t,"end"),n),o.addClass("ck-widget_with-resizer",t),this._viewResizerWrapper=n,this.isVisible||this.hide()}),this.on("change:isVisible",()=>{this.isVisible?(this.show(),this.redraw()):this.hide()})}begin(e){this._state=new Ie(this._options),this._sizeView._bindToState(this._options,this.state),this._initialViewWidth=this._options.viewElement.getStyle("width"),this.state.begin(e,this._getHandleHost(),this._getResizeHost())}updateSize(e){const t=this._proposeNewSize(e);this._options.editor.editing.view.change(a=>{const h=this._options.unit||"%",d=(h==="%"?t.widthPercents:t.width)+h;a.setStyle("width",d,this._options.viewElement)});const o=this._getHandleHost(),n=new b(o),r=Math.round(n.width),l=Math.round(n.height),c=new b(o);t.width=Math.round(c.width),t.height=Math.round(c.height),this.redraw(n),this.state.update({...t,handleHostWidth:r,handleHostHeight:l})}commit(){const e=this._options.unit||"%",t=(e==="%"?this.state.proposedWidthPercents:this.state.proposedWidth)+e;this._options.editor.editing.view.change(()=>{this._cleanup(),this._options.onCommit(t)})}cancel(){this._cleanup()}destroy(){this.cancel()}redraw(e){const t=this._domResizerWrapper;if(!je(t))return;const i=t.parentElement,o=this._getHandleHost(),n=this._viewResizerWrapper,r=[n.getStyle("width"),n.getStyle("height"),n.getStyle("left"),n.getStyle("top")];let l;if(i.isSameNode(o)){const c=e||new b(o);l=[c.width+"px",c.height+"px",void 0,void 0]}else l=[o.offsetWidth+"px",o.offsetHeight+"px",o.offsetLeft+"px",o.offsetTop+"px"];Y(r,l)!=="same"&&this._options.editor.editing.view.change(c=>{c.setStyle({width:l[0],height:l[1],left:l[2],top:l[3]},n)})}containsHandle(e){return this._domResizerWrapper.contains(e)}static isResizeHandle(e){return e.classList.contains("ck-widget__resizer__handle")}_cleanup(){this._sizeView._dismiss(),this._options.editor.editing.view.change(t=>{t.setStyle("width",this._initialViewWidth,this._options.viewElement)})}_proposeNewSize(e){const t=this.state,i=Ke(e),o=this._options.isCentered?this._options.isCentered(this):!0,n={x:t._referenceCoordinates.x-(i.x+t.originalWidth),y:i.y-t.originalHeight-t._referenceCoordinates.y};o&&t.activeHandlePosition.endsWith("-right")&&(n.x=i.x-(t._referenceCoordinates.x+t.originalWidth)),o&&(n.x*=2);let r=Math.abs(t.originalWidth+n.x),l=Math.abs(t.originalHeight+n.y);return(r/t.aspectRatio>l?"width":"height")=="width"?l=r/t.aspectRatio:r=l*t.aspectRatio,{width:Math.round(r),height:Math.round(l),widthPercents:Math.min(Math.round(t.originalWidthPercents/t.originalWidth*r*100)/100,100)}}_getResizeHost(){const e=this._domResizerWrapper.parentElement;return this._options.getResizeHost(e)}_getHandleHost(){const e=this._domResizerWrapper.parentElement;return this._options.getHandleHost(e)}get _domResizerWrapper(){return this._options.editor.editing.view.domConverter.mapViewToDom(this._viewResizerWrapper)}_appendHandles(e){const t=["top-left","top-right","bottom-right","bottom-left"];for(const i of t)e.appendChild(new C({tag:"div",attributes:{class:`ck-widget__resizer__handle ${Be(i)}`}}).render())}_appendSizeUI(e){this._sizeView=new Le,this._sizeView.render(),e.appendChild(this._sizeView.element)}}function Be(s){return`ck-widget__resizer__handle-${s}`}function Ke(s){return{x:s.pageX,y:s.pageY}}function je(s){return s&&s.ownerDocument&&s.ownerDocument.contains(s)}class nt extends E{_resizers=new Map;_observer;_redrawSelectedResizerThrottled;static get pluginName(){return"WidgetResize"}static get isOfficialPlugin(){return!0}init(){const e=this.editor.editing,t=T.window.document;this.set("selectedResizer",null),this.set("_activeResizer",null),e.view.addObserver(H),this._observer=new(G()),this.listenTo(e.view.document,"mousedown",this._mouseDownListener.bind(this),{priority:"high"}),this._observer.listenTo(t,"mousemove",this._mouseMoveListener.bind(this)),this._observer.listenTo(t,"mouseup",this._mouseUpListener.bind(this)),this._redrawSelectedResizerThrottled=se(()=>this.redrawSelectedResizer(),200),this.editor.ui.on("update",this._redrawSelectedResizerThrottled),this.editor.model.document.on("change",()=>{for(const[o,n]of this._resizers)o.isAttached()||(this._resizers.delete(o),n.destroy())},{priority:"lowest"}),this._observer.listenTo(T.window,"resize",this._redrawSelectedResizerThrottled);const i=this.editor.editing.view.document.selection;i.on("change",()=>{const o=i.getSelectedElement(),n=this.getResizerByViewElement(o)||null;n?this.select(n):this.deselect()})}redrawSelectedResizer(){this.selectedResizer&&this.selectedResizer.isVisible&&this.selectedResizer.redraw()}destroy(){super.destroy(),this._observer.stopListening();for(const e of this._resizers.values())e.destroy();this._redrawSelectedResizerThrottled.cancel()}select(e){this.deselect(),this.selectedResizer=e,this.selectedResizer.isSelected=!0}deselect(){this.selectedResizer&&(this.selectedResizer.isSelected=!1),this.selectedResizer=null}attachTo(e){const t=new x(e),i=this.editor.plugins;if(t.attach(),i.has("WidgetToolbarRepository")){const r=i.get("WidgetToolbarRepository");t.on("begin",()=>{r.forceDisabled("resize")},{priority:"lowest"}),t.on("cancel",()=>{r.clearForceDisabled("resize")},{priority:"highest"}),t.on("commit",()=>{r.clearForceDisabled("resize")},{priority:"highest"})}this._resizers.set(e.viewElement,t);const n=this.editor.editing.view.document.selection.getSelectedElement();return this.getResizerByViewElement(n)==t&&this.select(t),t}getResizerByViewElement(e){return this._resizers.get(e)}_getResizerByHandle(e){for(const t of this._resizers.values())if(t.containsHandle(e))return t}_mouseDownListener(e,t){const i=t.domTarget;x.isResizeHandle(i)&&(this._activeResizer=this._getResizerByHandle(i)||null,this._activeResizer&&(this._activeResizer.begin(i),e.stop(),t.preventDefault()))}_mouseMoveListener(e,t){this._activeResizer&&this._activeResizer.updateSize(t)}_mouseUpListener(){this._activeResizer&&(this._activeResizer.commit(),this._activeResizer=null)}}export{ce as WIDGET_CLASS_NAME,k as WIDGET_SELECTED_CLASS_NAME,it as Widget,nt as WidgetResize,ot as WidgetToolbarRepository,ve as WidgetTypeAround,fe as calculateResizeHostAncestorWidth,me as calculateResizeHostPercentageWidth,tt as findOptimalInsertionRange,ue as getLabel,p as isWidget,N as setHighlightHandling,he as setLabel,Ze as toWidget,et as toWidgetEditable};
@@ -1 +1 @@
1
- const t=':host,:root{--gator-gutter-x: 1.5rem;--gator-gutter-y: 0}.gator-row{display:flex;flex-wrap:wrap;margin-top:calc(-1 * var(--gator-gutter-y));margin-right:calc(-.5 * var(--gator-gutter-x));margin-left:calc(-.5 * var(--gator-gutter-x))}.gator-col{flex:1 0 0}.gator-row>*{flex-shrink:0;width:100%;max-width:100%;padding-right:calc(var(--gator-gutter-x) * .5);padding-left:calc(var(--gator-gutter-x) * .5);margin-top:var(--gator-gutter-y)}.gator-col-12{flex:0 0 100%;max-width:100%}.gator-col-11{flex:0 0 91.666667%;max-width:91.666667%}.gator-col-10{flex:0 0 83.333333%;max-width:83.333333%}.gator-col-9{flex:0 0 75%;max-width:75%}.gator-col-7{flex:0 0 58.333333%;max-width:58.333333%}.gator-col-8{flex:0 0 66.666667%;max-width:66.666667%}.gator-col-6{flex:0 0 50%;max-width:50%}.gator-col-5{flex:0 0 41.666667%;max-width:41.666667%}.gator-col-4{flex:0 0 33.333333%;max-width:33.333333%}.gator-col-3{flex:0 0 25%;max-width:25%}.gator-col-2{flex:0 0 16.666667%;max-width:16.666667%}.gator-col-1{flex:0 0 8.333333%;max-width:8.333333%}.gator-w-100{width:100%}.gator-w-90{width:90%}.gator-w-80{width:80%}.gator-w-70{width:70%}.gator-w-60{width:60%}.gator-w-50{width:50%}.gator-w-40{width:40%}.gator-w-30{width:30%}.gator-w-20{width:20%}.gator-w-10{width:10%}.gator-w-0{width:0}.gator-w-auto{width:auto}.gator-h-auto{height:auto}.gator-h-100{height:100%}.gator-h-90{height:90%}.gator-h-80{height:80%}.gator-h-70{height:70%}.gator-h-60{height:60%}.gator-h-50{height:50%}.gator-h-40{height:40%}.gator-h-30{height:30%}.gator-h-20{height:20%}.gator-h-10{height:10%}.gator-h-0{height:0}.gator-mh-100{max-height:100%}.gator-mh-90{max-height:90%}.gator-mh-80{max-height:80%}.gator-mh-70{max-height:70%}.gator-mh-60{max-height:60%}.gator-mh-50{max-height:50%}.gator-mh-40{max-height:40%}.gator-mh-30{max-height:30%}.gator-mh-20{max-height:20%}.gator-mh-10{max-height:10%}.gator-mw-100{max-width:100%}.gator-mw-90{max-width:90%}.gator-mw-80{max-width:80%}.gator-mw-70{max-width:70%}.gator-mw-60{max-width:60%}.gator-mw-50{max-width:50%}.gator-mw-40{max-width:40%}.gator-mw-30{max-width:30%}.gator-mw-20{max-width:20%}.gator-mw-10{max-width:10%}.gator-mw-0{max-width:0}body{font-family:var(--text-family-body, "Open Sans"),sans-serif}.gator-d-flex{display:flex}.gator-d-inline-flex{display:inline-flex}';export{t as default};
1
+ const t=':host,:root{--gator-gutter-x: 1.5rem;--gator-gutter-y: 0}.gator-row{display:flex;flex-wrap:wrap;margin-top:calc(-1 * var(--gator-gutter-y));margin-right:calc(-.5 * var(--gator-gutter-x));margin-left:calc(-.5 * var(--gator-gutter-x))}.gator-col{flex:1 0 0}.gator-row>*{flex-shrink:0;width:100%;max-width:100%;padding-right:calc(var(--gator-gutter-x) * .5);padding-left:calc(var(--gator-gutter-x) * .5);margin-top:var(--gator-gutter-y)}.gator-col-12{flex:0 0 100%;max-width:100%}.gator-col-11{flex:0 0 91.666667%;max-width:91.666667%}.gator-col-10{flex:0 0 83.333333%;max-width:83.333333%}.gator-col-9{flex:0 0 75%;max-width:75%}.gator-col-7{flex:0 0 58.333333%;max-width:58.333333%}.gator-col-8{flex:0 0 66.666667%;max-width:66.666667%}.gator-col-6{flex:0 0 50%;max-width:50%}.gator-col-5{flex:0 0 41.666667%;max-width:41.666667%}.gator-col-4{flex:0 0 33.333333%;max-width:33.333333%}.gator-col-3{flex:0 0 25%;max-width:25%}.gator-col-2{flex:0 0 16.666667%;max-width:16.666667%}.gator-col-1{flex:0 0 8.333333%;max-width:8.333333%}.gator-w-100{width:100%}.gator-w-90{width:90%}.gator-w-80{width:80%}.gator-w-70{width:70%}.gator-w-60{width:60%}.gator-w-50{width:50%}.gator-w-40{width:40%}.gator-w-30{width:30%}.gator-w-20{width:20%}.gator-w-10{width:10%}.gator-w-0{width:0}.gator-w-auto{width:auto}.gator-h-auto{height:auto}.gator-h-100{height:100%}.gator-h-90{height:90%}.gator-h-80{height:80%}.gator-h-70{height:70%}.gator-h-60{height:60%}.gator-h-50{height:50%}.gator-h-40{height:40%}.gator-h-30{height:30%}.gator-h-20{height:20%}.gator-h-10{height:10%}.gator-h-0{height:0}.gator-mh-100{max-height:100%}.gator-mh-90{max-height:90%}.gator-mh-80{max-height:80%}.gator-mh-70{max-height:70%}.gator-mh-60{max-height:60%}.gator-mh-50{max-height:50%}.gator-mh-40{max-height:40%}.gator-mh-30{max-height:30%}.gator-mh-20{max-height:20%}.gator-mh-10{max-height:10%}.gator-mw-100{max-width:100%}.gator-mw-90{max-width:90%}.gator-mw-80{max-width:80%}.gator-mw-70{max-width:70%}.gator-mw-60{max-width:60%}.gator-mw-50{max-width:50%}.gator-mw-40{max-width:40%}.gator-mw-30{max-width:30%}.gator-mw-20{max-width:20%}.gator-mw-10{max-width:10%}.gator-mw-0{max-width:0}@font-face{font-family:"nCino+Avenir";src:url(/assets/nCino_Avenir.woff2) format("woff2");font-weight:100 400;font-style:normal}@font-face{font-family:"nCino+Avenir";src:url(/assets/nCino_AvenirBd.woff2) format("woff2");font-weight:600 900;font-style:normal}@font-face{font-family:Open Sans;src:url(/assets/OpenSans-VariableFont.woff2) format("woff2");font-weight:100 900;font-style:normal}body{font-family:var(--text-family-body, "Open Sans"),sans-serif}.gator-body-1{font-feature-settings:"liga" off,"clig" off;font-style:normal;font-weight:400;font-family:var(--text-family-body, "Open Sans");color:var(--text-color-primary-base, #1F1F1F);letter-spacing:var(--text-letter-spacing-default, 0);font-size:var(--text-font-size-body-1, 17px);line-height:var(--text-line-height-body-1, 24px)}.gator-body-2{font-feature-settings:"liga" off,"clig" off;font-style:normal;font-weight:400;font-family:var(--text-family-body, "Open Sans");color:var(--text-color-primary-base, #1F1F1F);letter-spacing:var(--text-letter-spacing-default, 0);font-size:var(--text-font-size-body-2, 15px);line-height:var(--text-line-height-body-2, 22px)}.gator-body-3{font-feature-settings:"liga" off,"clig" off;font-style:normal;font-weight:400;font-family:var(--text-family-body, "Open Sans");color:var(--text-color-primary-base, #1F1F1F);letter-spacing:var(--text-letter-spacing-default, 0);font-size:var(--text-font-size-body-3, 13px);line-height:var(--text-line-height-body-3, 18px)}.gator-body-bold{font-weight:700}.gator-body-semibold{font-weight:600}.gator-uppercase{text-transform:uppercase}.gator-heading-display-1{font-feature-settings:"liga" off,"clig" off;font-style:normal;font-weight:700;letter-spacing:var(--text-letter-spacing-narrow, -1px);color:var(--text-color-primary-base, #1F1F1F);font-family:var(--text-family-headings, "nCino+Avenir");font-size:var(--text-font-size-display-1, 72px);line-height:var(--text-line-height-display-1, 90px)}.gator-heading-display-2{font-feature-settings:"liga" off,"clig" off;font-style:normal;font-weight:700;letter-spacing:var(--text-letter-spacing-narrow, -1px);color:var(--text-color-primary-base, #1F1F1F);font-family:var(--text-family-headings, "nCino+Avenir");font-size:var(--text-font-size-display-2, 64px);line-height:var(--text-line-height-display-2, 78px)}.gator-heading-h1{font-feature-settings:"liga" off,"clig" off;font-style:normal;font-weight:700;letter-spacing:var(--text-letter-spacing-narrow, -1px);color:var(--text-color-primary-base, #1F1F1F);font-family:var(--text-family-headings, "nCino+Avenir");font-size:var(--text-font-size-heading-1, 40px);line-height:var(--text-line-height-heading-1, 50px)}.gator-heading-h2{font-feature-settings:"liga" off,"clig" off;font-style:normal;font-weight:700;letter-spacing:var(--text-letter-spacing-narrow, -1px);color:var(--text-color-primary-base, #1F1F1F);font-family:var(--text-family-headings, "nCino+Avenir");font-size:var(--text-font-size-heading-2, 32px);line-height:var(--text-line-height-heading-2, 40px)}.gator-heading-h3{font-feature-settings:"liga" off,"clig" off;font-style:normal;font-weight:700;letter-spacing:var(--text-letter-spacing-narrow, -1px);color:var(--text-color-primary-base, #1F1F1F);font-family:var(--text-family-headings, "nCino+Avenir");font-size:var(--text-font-size-heading-3, 26px);line-height:var(--text-line-height-heading-3, 36px)}.gator-heading-h4{font-feature-settings:"liga" off,"clig" off;font-style:normal;font-weight:700;letter-spacing:var(--text-letter-spacing-narrow, -1px);color:var(--text-color-primary-base, #1F1F1F);font-family:var(--text-family-headings, "nCino+Avenir");font-size:var(--text-font-size-heading-4, 22px);line-height:var(--text-line-height-heading-4, 32px);letter-spacing:var(--text-letter-spacing-default, 0)}.gator-heading-h5{font-feature-settings:"liga" off,"clig" off;font-style:normal;font-weight:700;letter-spacing:var(--text-letter-spacing-narrow, -1px);color:var(--text-color-primary-base, #1F1F1F);font-family:var(--text-family-headings, "nCino+Avenir");font-size:var(--text-font-size-heading-5, 20px);line-height:var(--text-line-height-heading-5, 30px);letter-spacing:var(--text-letter-spacing-default, 0)}.gator-heading-h6{font-feature-settings:"liga" off,"clig" off;font-style:normal;font-weight:700;letter-spacing:var(--text-letter-spacing-narrow, -1px);color:var(--text-color-primary-base, #1F1F1F);font-family:var(--text-family-headings, "nCino+Avenir");font-size:var(--text-font-size-heading-6, 18px);line-height:var(--text-line-height-28, 28px);letter-spacing:var(--text-letter-spacing-default, 0)}@media (max-width: 768px){.gator-heading-display-1{font-size:var(--text-font-size-sm-display-1, 48px);line-height:var(--text-line-height-sm-display-1, 56px)}.gator-heading-display-2{font-size:var(--text-font-size-sm-display-2, 36px);line-height:var(--text-line-height-sm-display-2, 48px)}.gator-heading-h1{font-size:var(--text-font-size-sm-heading-1, 28px);line-height:var(--text-line-height-sm-heading-1, 36px)}.gator-heading-h2{font-size:var(--text-font-size-sm-heading-2, 24px);line-height:var(--text-line-height-sm-heading-2, 32px)}.gator-heading-h3{font-size:var(--text-font-size-sm-heading-3, 22px);line-height:var(--text-line-height-sm-heading-3, 32px)}.gator-heading-h4{font-size:var(--text-font-size-sm-heading-4, 20px);line-height:var(--text-line-height-sm-heading-4, 30px)}.gator-heading-h5{font-size:var(--text-size-18, 18px);line-height:var(--text-line-height-28, 28px)}.gator-heading-h6{font-size:var(--text-size-17, 17px);line-height:var(--text-line-height-24, 24px)}}.gator-d-flex{display:flex}.gator-d-inline-flex{display:inline-flex}';export{t as default};
@@ -0,0 +1 @@
1
+ const r=':host{--ngc-progress-ring-diameter: 56px;--ngc-progress-ring-track-color: var(--ngc-color-border-default, rgba(0, 0, 0, .12));--ngc-progress-ring-progress-color: var(--color-border-brand, var(--color-brand-30, #11395B));--ngc-progress-ring-text-color: var(--ngc-color-text-primary, #000)}.gator-progress-ring{position:relative;display:inline-flex;width:var(--ngc-progress-ring-diameter);height:var(--ngc-progress-ring-diameter);align-items:center;justify-content:center;background:var(--ngc-progress-ring-center-bg, transparent);border-radius:50%}.gator-progress-ring .ring{width:100%;height:100%}.gator-progress-ring .track{stroke:var(--ngc-progress-ring-track-color)}.gator-progress-ring .progress{stroke:var(--ngc-progress-ring-progress-color);stroke-linecap:round;transition:stroke-dashoffset .2s ease}.gator-progress-ring .center{position:absolute;display:flex;align-items:center;justify-content:center;width:calc(var(--ngc-progress-ring-diameter) * .6);height:calc(var(--ngc-progress-ring-diameter) * .6);border-radius:50%}.gator-progress-ring .label{color:var(--ngc-progress-ring-text-color);font-family:var(--text-family-body, "Open Sans");font-size:var(--text-font-size-body-3, .8125rem);font-style:normal;font-weight:400}:host([variant=success]){--ngc-progress-ring-track-color: var(--color-data-viz-green);--ngc-progress-ring-progress-color: var(--color-data-viz-green);--ngc-progress-ring-center-bg: var(--color-surface-success)}:host([variant=warning]){--ngc-progress-ring-track-color: var(--color-data-viz-orange);--ngc-progress-ring-progress-color: var(--color-data-viz-orange);--ngc-progress-ring-center-bg: var(--color-surface-warning)}:host([variant=error]){--ngc-progress-ring-track-color: var(--color-data-viz-red);--ngc-progress-ring-progress-color: var(--color-data-viz-red);--ngc-progress-ring-center-bg: var(--color-surface-error)}:host([variant=ai]){--ngc-progress-ring-track-color: var(--color-data-viz-purple-30-primary);--ngc-progress-ring-progress-color: var(--color-data-viz-purple-30-primary);--ngc-progress-ring-center-bg: var(--color-surface-purple)}';export{r as default};
@@ -1 +1 @@
1
- const o='@font-face{font-family:"nCino+Avenir";src:url(/assets/nCino_Avenir.woff2) format("woff2");font-weight:400;font-style:normal}@font-face{font-family:"nCino+Avenir";src:url(/assets/nCino_AvenirMd.woff2) format("woff2");font-weight:500;font-style:normal}@font-face{font-family:"nCino+Avenir";src:url(/assets/nCino_AvenirBd.woff2) format("woff2");font-weight:600;font-style:normal}@font-face{font-family:"nCino+Avenir";src:url(/assets/nCino_AvenirHv.woff2) format("woff2");font-weight:700;font-style:normal}@font-face{font-family:Open Sans;src:url(/assets/OpenSans-VariableFont.woff2) format("woff2");font-weight:100 900;font-style:normal}:host,:root{--color-black-100: #000000;--color-black-90: #1a1a1a;--color-black-80: #333333;--color-black-70: #4d4d4d;--color-black-60: #666666;--color-black-50: #808080;--color-black-40: #999999;--color-black-30: #b3b3b3;--color-black-20: #cccccc;--color-black-10: #e6e6e6;--color-neutral-80: #040404;--color-neutral-70: #1F1F1F;--color-neutral-60: #404040;--color-neutral-50: #6D6D6D;--color-neutral-40: #BFBFBF;--color-neutral-30: #E5E5E5;--color-neutral-20: #F2F2F2;--color-neutral-10: #F7F7F7;--color-neutral-0: #FFFFFF;--color-brand-50: #0A2033;--color-brand-40: #0E304D;--color-brand-30: #11395B;--color-brand-20: #C3CDD6;--color-brand-10: #E4ECF2;--color-brand-0: #F3F5F7;--color-red-40: #AA330E;--color-red-30: #D44011;--color-red-20: #E99F88;--color-red-10: #FAEBE7;--color-green-40: #1B8754;--color-green-30: #22A969;--color-green-20: #90D4B4;--color-green-10: #E9F7F0;--color-orange-40: #BD5A00;--color-orange-30: #EC7000;--color-orange-20: #F5B77F;--color-orange-10: #FEF1E6;--color-purple-50: #4C0099;--color-purple-40: #6600CC;--color-purple-30: #8000FF;--color-purple-20: #E5CCFF;--color-purple-10: #F6EEFF;--color-blue-50: #2238AA;--color-blue-40: #2A46D4;--color-blue-30: #3355FF;--color-blue-20: #BBC6FF;--color-blue-10: #E8ECFF;--color-aqua-50: #0A5069;--color-aqua-40: #0F6F91;--color-aqua-30: #009FD9;--color-aqua-20: #A2DBF0;--color-aqua-10: #EFF9FC;--color-aqua-0: #F7FBFC;--spacing-1: .125rem;--spacing-2: .25rem;--spacing-3: .5rem;--spacing-4: 1rem;--spacing-6: 1.5rem;--spacing-7: 2rem;--text-family-headings: "nCino+Avenir", sans-serif;--text-family-body: "Open Sans", sans-serif}';export{o as default};
1
+ const o='@font-face{font-family:"nCino+Avenir";src:url(/assets/nCino_Avenir.woff2) format("woff2");font-weight:100 400;font-style:normal}@font-face{font-family:"nCino+Avenir";src:url(/assets/nCino_AvenirBd.woff2) format("woff2");font-weight:600 900;font-style:normal}@font-face{font-family:Open Sans;src:url(/assets/OpenSans-VariableFont.woff2) format("woff2");font-weight:100 900;font-style:normal}:host,:root{--color-black-100: #000000;--color-black-90: #1a1a1a;--color-black-80: #333333;--color-black-70: #4d4d4d;--color-black-60: #666666;--color-black-50: #808080;--color-black-40: #999999;--color-black-30: #b3b3b3;--color-black-20: #cccccc;--color-black-10: #e6e6e6;--color-neutral-80: #040404;--color-neutral-70: #1F1F1F;--color-neutral-60: #404040;--color-neutral-50: #6D6D6D;--color-neutral-40: #BFBFBF;--color-neutral-30: #E5E5E5;--color-neutral-20: #F2F2F2;--color-neutral-10: #F7F7F7;--color-neutral-0: #FFFFFF;--color-brand-50: #0A2033;--color-brand-40: #0E304D;--color-brand-30: #11395B;--color-brand-20: #C3CDD6;--color-brand-10: #E4ECF2;--color-brand-0: #F3F5F7;--color-red-40: #AA330E;--color-red-30: #D44011;--color-red-20: #E99F88;--color-red-10: #FAEBE7;--color-green-40: #1B8754;--color-green-30: #22A969;--color-green-20: #90D4B4;--color-green-10: #E9F7F0;--color-orange-40: #BD5A00;--color-orange-30: #EC7000;--color-orange-20: #F5B77F;--color-orange-10: #FEF1E6;--color-purple-50: #4C0099;--color-purple-40: #6600CC;--color-purple-30: #8000FF;--color-purple-20: #E5CCFF;--color-purple-10: #F6EEFF;--color-blue-50: #2238AA;--color-blue-40: #2A46D4;--color-blue-30: #3355FF;--color-blue-20: #BBC6FF;--color-blue-10: #E8ECFF;--color-aqua-50: #0A5069;--color-aqua-40: #0F6F91;--color-aqua-30: #009FD9;--color-aqua-20: #A2DBF0;--color-aqua-10: #EFF9FC;--color-aqua-0: #F7FBFC;--spacing-1: .125rem;--spacing-2: .25rem;--spacing-3: .5rem;--spacing-4: 1rem;--spacing-6: 1.5rem;--spacing-7: 2rem;--text-family-headings: "nCino+Avenir", sans-serif;--text-family-body: "Open Sans", sans-serif}';export{o as default};