1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="cfeead85-e1b6-4355-aec4-9197e18bf7a6",e._sentryDebugIdIdentifier="sentry-dbid-cfeead85-e1b6-4355-aec4-9197e18bf7a6")}catch(e){}("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"prod"};(self.webpackChunknew_influencing=self.webpackChunknew_influencing||[]).push([[5328],{51575:function(){},73255:function(){},14647:function(){},40963:function(){},39117:function(){},78552:function(){},64598:function(){},83133:function(e,t,i){"use strict";i.d(t,{i:function(){return r}});var n=i(52544),o=i(33500),a=i(90434),s=i(73358);class r extends n.default{static get requires(){return[s.Z,a.o,o.x]}static get pluginName(){return"backgroundColor"}}},33500:function(e,t,i){"use strict";i.d(t,{x:function(){return s}});var n=i(45450),o=i(73358),a=i(6147);class s extends n.default{refresh(){this.isEnabled=!0}execute(e){this.value=e;const t=e?{[a.yJ.COLOR]:e}:void 0;this.editor.execute(o.Z.pluginName,t)}}},90434:function(e,t,i){"use strict";i.d(t,{o:function(){return h}});var n,o=i(52544),a=i(35990),s=i(73358),r=i(6147),l=i(59121),c=i(83133),u=i(33500),d=i(4235),m=i(22555);!function(e){e.BLUE="Blue",e.PURPLE="Purple",e.RED="Red",e.ORANGE="Orange",e.GREEN="Green",e.TEAL="Teal"}(n||(n={}));class g extends l.View{static alpha=.2;removeBtn;colorPicker;childViews;focusTracker=new m.FocusTracker;keystrokes=new m.KeystrokeHandler;_focusCycler;constructor(e){super(e),this.removeBtn=this._createButton("Transparent",d.icons.eraser,"ck-color-table__remove-color"),this.removeBtn.withText=!0,this.colorPicker=this._createViewColorGrid({colorDefinitions:[{color:`rgba(0, 0, 0, ${g.alpha})`,label:"Black",options:{hasBorder:!0}},{color:`rgba(77, 77, 77, ${g.alpha})`,label:"Dim grey",options:{hasBorder:!0}},{color:`rgba(153, 153, 153, ${g.alpha})`,label:"Grey",options:{hasBorder:!0}},{color:`rgba(230, 230, 230, ${g.alpha})`,label:"Light grey",options:{hasBorder:!0}},{color:`rgba(255, 255, 255, ${g.alpha})`,label:"White",options:{hasBorder:!0}},{color:`rgba(230, 77, 77, ${g.alpha})`,label:"Red",options:{hasBorder:!0}},{color:`rgba(230, 153, 77, ${g.alpha})`,label:"Orange",options:{hasBorder:!0}},{color:`rgba(230, 230, 77, ${g.alpha})`,label:"Yellow",options:{hasBorder:!0}},{color:`rgba(153, 230, 77, ${g.alpha})`,label:"Light green",options:{hasBorder:!0}},{color:`rgba(77, 230, 77, ${g.alpha})`,label:"Green",options:{hasBorder:!0}},{color:`rgba(77, 230, 153, ${g.alpha})`,label:"Aquamarine",options:{hasBorder:!0}},{color:`rgba(77, 230, 230, ${g.alpha})`,label:"Turquoise",options:{hasBorder:!0}},{color:`rgba(77, 153, 230, ${g.alpha})`,label:"Light blue",options:{hasBorder:!0}},{color:`rgba(77, 77, 230, ${g.alpha})`,label:"Blue",options:{hasBorder:!0}},{color:`rgba(153, 77, 230, ${g.alpha})`,label:"Purple",options:{hasBorder:!0}}],columns:5}),this.childViews=this.createCollection([this.removeBtn,this.colorPicker]),this._focusCycler=new l.FocusCycler({focusables:this.childViews,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"form",attributes:{class:["ck","ck-abbr-form"],tabindex:"-1"},children:this.childViews})}_createButton(e,t,i){const n=new a.default;return n.set({label:e,icon:t,tooltip:!0,class:i}),n}_createViewColorGrid(e){return new l.ColorGridView(this.locale,e)}render(){this.isRendered||(super.render(),this.colorPicker.items.map((e=>{e.on("execute",(t=>{e.delegate("execute").to(this,"execute")}))})),this.removeBtn.delegate("execute").to(this,"execute"),this.removeBtn.element&&this.focusTracker.add(this.removeBtn.element),this.colorPicker.items.map((e=>{e.element&&this.focusTracker.add(e.element)})),this.element&&this.keystrokes.listenTo(this.element),(0,l.submitHandler)({view:this}))}destroy(){super.destroy(),this.isRendered=!1,this.focusTracker.destroy(),this.keystrokes.destroy()}}class h extends o.default{static get componentName(){return c.i.pluginName}_balloon;_button;formView;init(){this.editor.commands.add(h.componentName,new u.x(this.editor)),this._balloon=this.editor.plugins.get(l.ContextualBalloon),this._balloon._singleViewMode=!0,this.formView=this._createFormView(),this.editor.ui.componentFactory.add(h.componentName,(()=>
1(this._button=this._createButton("Background color",'<svg width="16" height="16" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="currentColor">\n <path d="M37 37c2.2091 0 4-1.7909 4-4 0-1.4728-1.3333-3.4728-4-6-2.6667 2.5272-4 4.5272-4 6 0 2.2091 1.7909 4 4 4Z"/>\n <path d="m20.8535 5.50439 3.5355 3.53554" stroke-width="4" stroke-linecap="round" fill="none"/>\n <path d="M23.6818 8.33281 8.12549 23.8892 19.4392 35.2029l15.5563-15.5564L23.6818 8.33281Z"\n stroke-width="4" stroke-linejoin="round" fill="none"/>\n <path d="m12 20.0732 16.961 5.5764M4 43h40" stroke-width="4" stroke-linecap="round"/>\n</svg>'),this._button.on("execute",(()=>{this._showBalloon()})),this._button))),this.editor.model.document.registerPostFixer((()=>{const e=this.editor.model.document.differ.getChanges();for(const t of e)if("remove"==t.type&&!t.position.root.getChild(0)?.is("element",s.Z.pluginName)&&0==this.editor.data.get().length)return this.editor.execute(h.componentName,t.position.root.getChild(0)?.getAttribute(r.yJ.COLOR)),!0;return!1}))}_createButton(e,t,i){const n=new a.default;return n.set({label:e,icon:t,tooltip:!0,class:i}),n}_createFormView(){const e=this.editor,t=new g(e.locale);return this.listenTo(t,"execute",(t=>{const i=t.source;e.execute(h.componentName,i.color)})),(0,l.clickOutsideHandler)({emitter:t,activator:()=>this._balloon.visibleView===t,contextElements:[this._balloon.view.element],callback:()=>this._hideUI()}),t}_showBalloon(){this._balloon.add({view:this.formView,position:{target:this._button.element},withArrow:!0}),this._balloon.view.isVisible||this.formView.childViews.get(0)?.focus()}_hideUI(){this._balloon.view.isVisible&&(this.formView.element?.reset(),this._balloon.remove(this.formView),this.editor.editing.view.focus())}}},42948:function(e,t,i){"use strict";i.d(t,{f:function(){return s}});var n=i(45450),o=i(90434),a=i(37632);class s extends n.default{bcElement;refresh(){super.refresh(),this.isEnabled=!0}execute(e){null==e?this.editor.model.change((e=>{const t=[...this.editor.model.document.getRoot()?.getChild(0)?.getChildren()].find((e=>e.name==a.O.componentName));t&&e.remove(t)})):this.editor.model.change((t=>{const i=e,n=this.bcElement=t.createElement(a.O.componentName,i),s=this.editor.model.document.getRoot()?.getChild(0);if(s&&s.name==o.o.componentName)if([...s.getChildren()].some((e=>e.name==a.O.componentName))){const i=this.findChild();t.setAttribute("position",e.position,i),t.setAttribute("opacity",e.opacity,i)}else t.model.insertContent(n,s,"end")})),this.value=e?{...this.value,...e}:void 0}findChild(){const e=this.editor.model.document.getRoot()?.getChild(0);if(!e)throw new Error("Root not found");for(const t of[...e.getChildren()])if(t.name==a.O.componentName)return t;throw new Error("Child not found")}}},7502:function(e,t,i){"use strict";i.d(t,{N:function(){return s}});var n=i(52544),o=i(42948),a=i(37632);class s extends n.default{static get requires(){return[a.O,o.f]}static get pluginName(){return"backgroundImage"}}},37632:function(e,t,i){"use strict";i.d(t,{O:function(){return N}});var n,o=i(4235),a=i(52544),s=i(35990),r=i(44056),l=i(59121),c=i(90434),u=i(42948),d=i(7502),m=i(38448),g=i(3765),h=i(32383);!function(e){e.TOP="top",e.RIGHT="right",e.BOTTOM="bottom",e.LEFT="left"}(n||(n={}));class p extends l.View{btn={remove:new s.default};input={vertical:{top:new m.default(new g.default,l.createLabeledInputNumber),bottom:new m.default(new g.default,l.createLabeledInputNumber)},horizontal:{left:new m.default(new g.default,l.createLabeledInputNumber),right:new m.default(new g.default,l.createLabeledInputNumber)}};opacity=new l.View;constructor(e){super(e),this.btn.remove.set({label:"Remove image",class:"d-flex jc-center",withText:!0}),this.btn.remove.on("execute",(()=>{this.btn.remove.delegate("execute").to(this,"remove")}));const t=this.createVerticalTemplate(),i=this.createHorizontalTemplate();this.createOpacityTemplate(),this._changeInputViewTemplate(this.input.vertical.top,"top"),this._changeInputViewTemplate(this.input.vertical.bottom,"bottom"),this._changeInputViewTemplate(this.input.horizontal.left,"left"),this._changeInputViewTemplate(this.input.horizontal.right,"right"),this.setTemplate({tag:"form",attributes:{class:["ck","ck-abbr-form"],style:"display: flex; flex-direction: column;gap: 6px;padding: 8px 12px;",tabindex:"-1"},children:this.createCollection([this.btn.remove,this.opacity,t,i])}),this.render()}createVerticalTemplate(){this.input.vertical.top.set({value:0}),this.input.vertical.bottom.set({value:0});const e=new l.View;return e.setTemplate({tag:"div",attributes:{style:"display: flex; gap: 6px"},children:Object.values(this.input.vertical)}),e}createHorizontalTemplate(){this.input.horizontal.left.set({value:0}),this.input.horizontal.right.set({value:0});const e=new l.View;return e.setTemplate({tag:"div",attributes:{style:"display: flex; gap: 6px"},children:Object.values(this.input.horizontal)}),e}createOpacityTemplate(){const e=this.opacity.bindTemplate,t="ck-background-img-opacity";this.opacity.setTemplate({tag:"div",attributes:{class:"d-flex fd-column"},children:[{tag:"label",attributes:{for:t,class:"text-secondary",style:"color: var(--secondary)"},children:[{text:"Opacity"}]},{tag:"input",attributes:{id:t,type:"range",step:5}}],on:{input:[e.to((e=>{this.opacity.set({value:e.target.value}),this.opacity.element.title=e.target.value+"%"})),e.to("input")]}}),this.opacity.on("input",(e=>{this.opacity.delegate("input").to(this,"opacity")}))}_changeInputViewTemplate(e,t,i){e.set({value:i??0,label:(0,h.Zr)(t),class:"ck-small-input",id:t}),setTimeout((()=>{e.element?.addEventListener("input",(t=>{const i=parseInt(t.target.value);
1e.set({value:i}),this.disableOppositeInput(e.id,!!i)}))}),100),e.on("change:value",((t,i,n)=>{e.delegate("change:value").to(this,`input:${t.source.id}`)})),e.on("change:disabled",((e,t,i)=>{e.source.fieldView.element.disabled=i}))}disableOppositeInput(e,t=!0){switch(e){case n.TOP:this.input.vertical.bottom.set({isEnabled:!t});break;case n.BOTTOM:this.input.vertical.top.set({isEnabled:!t});break;case n.LEFT:this.input.horizontal.right.set({isEnabled:!t});break;case n.RIGHT:this.input.horizontal.left.set({isEnabled:!t})}}resetValues(e,t){this.input.vertical.top.element&&e.top&&(this.disableOppositeInput("top"),this.input.vertical.top.fieldView.value=e.top+"",this.input.vertical.top.fieldView.element?.setAttribute("value",e.top+"")),this.input.vertical.bottom.element&&e.bottom&&(this.disableOppositeInput("bottom"),this.input.vertical.bottom.fieldView.value=e.bottom+"",this.input.vertical.bottom.fieldView.element?.setAttribute("value",e.bottom+"")),this.input.horizontal.left.element&&e.left&&(this.disableOppositeInput("left"),this.input.horizontal.left.fieldView.value=e.left+"",this.input.horizontal.left.fieldView.element?.setAttribute("value",e.left+"")),this.input.horizontal.right.element&&e.right&&(this.disableOppositeInput("right"),this.input.horizontal.right.fieldView.value=e.right+"",this.input.horizontal.right.fieldView.element?.setAttribute("value",e.right+"")),this.opacity.element&&(this.opacity.element.children.item(1).value=t)}}class N extends a.default{LC_NAME="rich_text_bc_image_options";static get componentName(){return d.N.pluginName}static get className(){return"rich-bc-image"}mainBtn;position={top:0,right:0,bottom:0,left:0};opacity=20;formView;balloon;api;set source(e){const t=this.editor.commands.get(d.N.pluginName);t&&(null==t.value&&(t.value={}),t.value.src=e)}get source(){const e=this.editor.commands.get(d.N.pluginName);return e?.value?.src??void 0}init(){this._getFromLC(),this._schema(),this._upcast(),this._downcast(),this.api=this.editor.config.get(N.componentName).api,this.editor.commands.add(N.componentName,new u.f(this.editor)),this.balloon=this.editor.plugins.get(l.ContextualBalloon),this.balloon._singleViewMode=!0,this.formView=this._createFormView(),this.editor.ui.componentFactory.add(N.componentName,(()=>(this.mainBtn=new s.default,this.mainBtn.set({label:"Background image",tooltip:!0,icon:o.icons.image}),this.mainBtn.on("execute",(()=>{this.source?this._showBalloon():this._initImgUpload()})),this.editor.ui.focusTracker.on("change:isFocused",((e,t,i)=>{i||this._hideBalloon()})),this.mainBtn)))}_createFormView(){const e=new p(this.editor.locale);return this.listenTo(e,"input",(e=>{this._positionControl({[e.source.id]:e.source.value}),this.editor.commands.execute(N.componentName,{position:this.position}),this.position[e.source.id]=e.source.value,this._saveToLC()})),this.listenTo(e,"opacity",(e=>{this.opacity=e.source.value,this.editor.commands.execute(N.componentName,{opacity:this.opacity}),this._saveToLC()})),this.listenTo(e,"remove",(e=>{this.source&&this.api.remove(this.source).then((()=>{})),this.source=void 0,this.editor.commands.execute(N.componentName),this._hideBalloon()})),(0,l.clickOutsideHandler)({emitter:e,activator:()=>this.balloon.visibleView==e,contextElements:[this.balloon.view.element],callback:()=>this._hideBalloon()}),e}_showBalloon(){this.formView.resetValues(this.position,this.opacity),this.balloon.visibleView?this.balloon.view.set({isVisible:!0}):this.mainBtn.element&&this.balloon.add({view:this.formView,position:{target:this.mainBtn.element}})}_hideBalloon(){this.balloon.view.isVisible&&(this.formView.element.reset(),this.balloon.view.set({isVisible:!1}),this.editor.editing.view.focus())}_initImgUpload(){const e=document.createElement("input");e.type="file",e.accept="image/png, image/jpeg, image/jpg",e.onchange=t=>{const i=[...t.target.files].pop();if(i){const e=this.mainBtn.icon;this.mainBtn.icon=o.icons.cog,this.mainBtn.set({isEnabled:!1}),r.W.uploadByChunks(i).promise.then((t=>(this.mainBtn.icon=e,this.api.upload(t).then((e=>{this.source=e.data,this.editor.commands.execute(N.componentName,{src:this.source,position:this.position,opacity:this.opacity})}))))).then((()=>{this.editor.editing.view.focus(),this._showBalloon()})).finally((()=>{this.mainBtn.set({isEnabled:!0})}))}e.remove()},e.click()}_upcast(){this.editor.conversion.for("upcast").elementToElement({view:{name:"img",classes:[N.className],styles:{position:!0}}
1,model:(e,{writer:t})=>{const i=[...e.getAttributes()].filter((e=>"src"==e[0])).flat(),n=[...e.getAttributes()].filter((e=>"style"==e[0])).flat();if(i.length>0&&(this.source=i[1]),n.length>0){function o(e){return+(n[1].match(new RegExp(`.*?${e}:(\\d+)`))?.pop()??0)}this.position.top=o("top"),this.position.right=o("right"),this.position.bottom=o("bottom"),this.position.left=o("left")}return t.createElement(N.componentName,e.getAttributes())}})}_downcast(){this.editor.conversion.for("downcast").elementToElement({model:N.componentName,view:(e,{writer:t})=>{let i=`position: absolute; opacity: ${this.opacity/100};`;const n=this._positionToStyle(this.position);return i+=`top: ${this.attrToValue(n.top)};`,i+=`bottom: ${this.attrToValue(n.bottom)};`,i+=`left: ${this.attrToValue(n.left)};`,i+=`right: ${this.attrToValue(n.right)};`,t.createContainerElement("img",{src:e.getAttribute("src"),class:N.className,style:i})},converterPriority:"highest"}),this.editor.conversion.for("downcast").add((e=>{e.on(`attribute:position:${N.componentName}`,((e,t,{writer:i,mapper:n})=>{const o=n.toViewElement(t.item),a=this._positionToStyle(t.attributeNewValue);a&&(i.setStyle("top",this.attrToValue(a.top),o),i.setStyle("right",this.attrToValue(a.right),o),i.setStyle("bottom",this.attrToValue(a.bottom),o),i.setStyle("left",this.attrToValue(a.left),o))})),e.on(`attribute:opacity:${N.componentName}`,((e,t,{writer:i,mapper:n})=>{if(t.item.name!=N.componentName)return;const o=n.toViewElement(t.item);null!=t.attributeNewValue&&i.setStyle("opacity",t.attributeNewValue/100,o)}))}))}attrToValue(e){return Number.isInteger(e)?`${e}px`:e}_positionControl(e){this.position={...this.position,...e},this.position.top&&(this.position.bottom=0),this.position.bottom&&(this.position.top=0),this.position.left&&(this.position.right=0),this.position.right&&(this.position.left=0)}_positionToStyle(e){const t={...e};return 0!=e.top&&(t.bottom="unset"),0!=e.bottom&&(t.top="unset"),0!=e.right&&(t.left="unset"),0!=e.left&&(t.right="unset"),t}_schema(){this.editor.model.schema.register(N.componentName,{allowIn:c.o.componentName,inheritAllFrom:"imageInline",allowAttributes:["src","class"],isLimit:!0,isSelectable:!1,isBlock:!0,isContent:!1}),this.editor.model.schema.addChildCheck(((e,t)=>{if([...e.getNames()].includes(N.componentName))return!1}))}_saveToLC(){localStorage.setItem(this.LC_NAME,JSON.stringify({position:this.position,opacity:this.opacity}))}_getFromLC(){const e=localStorage.getItem(this.LC_NAME);if(!e)return;const t=JSON.parse(e);t.position&&(this.position=t.position),t.opacity&&(this.opacity=t.opacity)}}},73358:function(e,t,i){"use strict";i.d(t,{Z:function(){return l}});var n=i(52544),o=i(45450);class a extends o.default{refresh(){this.isEnabled=!0}execute(e){this.value=e,this.editor.model.change((t=>{const i=this.editor.model.document.getRoot()?.getChild(0);if(i&&i?.name==l.pluginName)e&&Object.keys(e)?t.model.change((t=>{for(const n in e){const o=e[n];t.setAttribute(n,o,i)}})):t.model.change((e=>{e.clearAttributes(i)}));else{const i=t.createElement(l.pluginName,e);t.wrap(this.editor.model.createRangeIn(this.editor.model.document.getRoot()),i),this.editor.commands.get("undo")?.clearStack()}}))}}var s=i(6147);class r extends n.default{init(){this.schema(),this.upcast(),this.downcast(),this.editor.commands.add(l.pluginName,new a(this.editor)),this.editor.on("ready",(()=>{const e=this.editor.model.document.getRoot()?.getChild(0);e?.is("model:element",l.pluginName)||this.editor.commands.execute(l.pluginName,{})}),{priority:"highest"}),this.editor.model.document.on("change:data",(()=>{const e=this.editor.model.document.differ.getChanges();for(const t of e)"remove"==t.type&&t.name==l.pluginName&&(this.editor.commands.execute("undo"),setTimeout((()=>this.editor.commands.get("redo")?.clearStack())))}),{priority:"highest"})}schema(){this.editor.model.schema.register(l.pluginName,{allowIn:"$root",inheritAllFrom:"$container",allowAttributes:Object.values(s.yJ),isBlock:!0,isContent:!0}),this.editor.model.schema.addChildCheck(((e,t)=>{if(t.name===l.pluginName&&"$root"!==e.last.name)return!1}))}upcast(){this.editor.conversion.for("upcast").add((e=>{e.on("element:div",((e,t,i)=>{const{consumable:n,writer:o,safeInsert:a,convertChildren:r,updateConversionResult:c}=i,u={name:!0,classes:s.xV},{viewItem:d}=t;if(!n.test(d,u))return;const m=d.getStyle(s.Hc[s.yJ.COLOR])??"transparent",g=d.getStyle(s.Hc[s.yJ.VERTICAL_ALIGN]),h={[s.yJ.COLOR]:m};g&&(h[s.yJ.VERTICAL_ALIGN]=g);const p=o.createElement(l.pluginName,h);a(p,t.modelCursor)&&(n.consume(d,u),r(d,p),c(p,t))}))}))}downcast(){this.editor.conversion.for("downcast").elementToElement({model:l.pluginName,view:(e,{writer
1:t})=>{const i=e.getAttribute(s.yJ.COLOR),n=e.getAttribute(s.yJ.VERTICAL_ALIGN),o=i?`${s.Hc[s.yJ.COLOR]}: ${i}`:"",a=n?`${s.Hc[s.yJ.VERTICAL_ALIGN]}: ${n}`:"";return t.createContainerElement("div",{class:s.xV,style:[o,a].join(";")})}}),this.editor.conversion.for("editingDowncast").add((e=>{e.on(`attribute:${s.yJ.COLOR}:${l.pluginName}`,((e,t,{writer:i,mapper:n})=>{const o=n.toViewElement(t.item);t.attributeOldValue&&i.removeStyle(s.Hc[s.yJ.COLOR],o),t.attributeNewValue&&i.setStyle(s.Hc[s.yJ.COLOR],t.attributeNewValue,o)}))})).add((e=>{e.on(`attribute:${s.yJ.VERTICAL_ALIGN}:${l.pluginName}`,((e,t,{writer:i,mapper:n})=>{const o=n.toViewElement(t.item);t.attributeOldValue&&i.removeStyle(s.Hc[s.yJ.VERTICAL_ALIGN],o),t.attributeNewValue&&i.setStyle(s.Hc[s.yJ.VERTICAL_ALIGN],t.attributeNewValue,o)}))}))}}class l extends n.default{static get pluginName(){return"baseWrapper"}static get requires(){return[a,r]}}},6147:function(e,t,i){"use strict";var n;i.d(t,{Hc:function(){return o},xV:function(){return a},yJ:function(){return n}}),function(e){e.COLOR="color",e.VERTICAL_ALIGN="vertical-align"}(n||(n={}));const o={[n.COLOR]:"background-color",[n.VERTICAL_ALIGN]:"align-content"},a="rich-text"},547:function(e,t,i){"use strict";i.d(t,{A:function(){return w}});var n=i(52544),o=i(82128),a=i(4235),s=i(80118),r=i(22555);class l extends a.Plugin{static placeholderNames=["First name","Surname","Full name","Outlet"];init(){const e=this.editor,t=e.t;e.ui.componentFactory.add("fallback",(i=>{const n=(0,s.createDropdown)(i);(0,s.addListToDropdown)(n,function(e){const t=new r.Collection;for(const i of e){const e={type:"button",model:{commandParam:i,label:i,withText:!0}};t.add(e)}return t}(l.placeholderNames)),n.buttonView.set({label:t("Insert merge field with fallback"),tooltip:!0,icon:'<?xml version="1.0" encoding="utf-8"?>\n<svg fill="none" width="24px" height="24px" viewBox="0 0 24 24" id="bracket" data-name="Flat Line"\n xmlns="http://www.w3.org/2000/svg">\n <path id="primary" d="M16,3h1a2,2,0,0,1,2,2v5a2,2,0,0,0,2,2h0a2,2,0,0,0-2,2v5a2,2,0,0,1-2,2H16"\n style="fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2;"></path>\n <circle cx="50%" cy="50%" r="1.5" fill="currentColor"></circle>\n <path id="primary-2" d="M8,3H7A2,2,0,0,0,5,5v5a2,2,0,0,1-2,2H3a2,2,0,0,1,2,2v5a2,2,0,0,0,2,2H8"\n style="fill: none; stroke:currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2;"></path>\n</svg>'});const a=e.commands.get(w.pluginName);return n.bind("isEnabled").to(a),this.listenTo(n,"execute",(t=>{e.execute(w.pluginName,{name:t.source.commandParam,fallback:o.A.DEFAULT_FALLBACK}),e.editing.view.focus()})),n}))}}var c=i(85072),u=i.n(c),d=i(97825),m=i.n(d),g=i(77659),h=i.n(g),p=i(55056),N=i.n(p),M=i(10540),f=i.n(M),y=i(41113),A=i.n(y),L=i(51575),I=i.n(L),b={};b.styleTagTransform=A(),b.setAttributes=N(),b.insert=h().bind(null,"head"),b.domAPI=m(),b.insertStyleElement=f();u()(I(),b),I()&&I().locals&&I().locals;class w extends n.default{static get pluginName(){return"fallback"}static get requires(){return[o.A,l]}}},82128:function(e,t,i){"use strict";i.d(t,{A:function(){return E}});var n=i(52544),o=i(80118),a=i(23556),s=i(547),r=i(45450);class l extends r.default{execute(e){const t=this.editor,i=t.model.document.selection;t.model.change((n=>{const o=n.createElement(s.A.pluginName,{...Object.fromEntries(i.getAttributes()),name:e.name,fallback:e.fallback});t.model.insertObject(o,null,null,{setSelection:"on"})}))}refresh(){const e=this.editor.model,t=e.document.selection,i=e.schema.checkChild(t.focus.parent,s.A.pluginName);this.isEnabled=i}}var c=i(4235),u=i(35990),d=i(38448),m=i(85072),g=i.n(m),h=i(97825),p=i.n(h),N=i(77659),M=i.n(N),f=i(55056),y=i.n(f),A=i(10540),L=i.n(A),I=i(41113),b=i.n(I),w=i(39117),T=i.n(w),j={};j.styleTagTransform=b(),j.setAttributes=y(),j.insert=M().bind(null,"head"),j.domAPI=p(),j.insertStyleElement=L();g()(T(),j),T()&&T().locals&&T().locals;class v extends o.View{storedName;fallbackInputView;saveBtnView;cancelBtnView;childViews;
1constructor(e){super(e),this.fallbackInputView=this._createInput("Fallback"),this.saveBtnView=this._createButton("Save",c.icons.check,"ck-button-save w-100"),this.saveBtnView.type="submit",this.cancelBtnView=this._createButton("Cancel",c.icons.cancel,"ck-button-cancel w-100"),this.cancelBtnView.delegate("execute").to(this,"cancel");const t=new o.View(e);t.setTemplate({tag:"div",attributes:{class:"d-flex w-100 jc-center pt-6"},children:this.createCollection([this.saveBtnView,this.cancelBtnView])}),this.childViews=this.createCollection([this.fallbackInputView,t]),this.setTemplate({tag:"form",attributes:{class:["ck","ck-fallback-form"],tabindex:"-1"},children:this.childViews})}_createInput(e){const t=new d.default(this.locale,o.createLabeledInputText);return t.label=e,t}_createButton(e,t,i){const n=new u.default;return n.set({label:e,icon:t,tooltip:!0,class:i}),n}render(){super.render(),(0,o.submitHandler)({view:this})}focus(){this.childViews.first?.focus()}}class E extends n.default{static DEFAULT_FALLBACK="there";static FALLBACK_DATA="data-fallback";static FALLBACK_CLASS="fallback";static get requires(){return[a.Widget]}formView;balloon;
1init(){this._defineSchema(),this._defineConverters(),this.balloon=this.editor.plugins.get(o.ContextualBalloon),this.formView=this._createFormView(),this.editor.commands.add(s.A.pluginName,new l(this.editor)),this.editor.listenTo(this.editor.editing.view.document,"click",((e,t)=>{if(this.editor.isReadOnly)return;const i=this.editor.editing.mapper.toModelElement(t.target);i?.name==s.A.pluginName&&this._showUI({name:i.getAttribute("name")??"",fallback:i.getAttribute("fallback")??""})})),this.editor.editing.mapper.on("viewToModelPosition",(0,a.viewToModelPositionOutsideModelElement)(this.editor.model,(e=>e.hasClass(s.A.pluginName))))}_defineSchema(){this.editor.model.schema.register(s.A.pluginName,{inheritAllFrom:"$inlineObject",allowAttributes:["name","fallback"]})}_defineConverters(){const e=this.editor.conversion;function t(e,t){const i=e.getAttribute("name"),n=e.getAttribute("fallback"),o=e.getAttribute("realName"),a=t.createContainerElement("span",{[E.FALLBACK_DATA]:n,class:E.FALLBACK_CLASS,style:"background-color: font-weight: bold;"}),s=o??`{{ ${i} | "${n}" }}`,r=t.createText(s);return t.insert(t.createPositionAt(a,0),r),a}e.for("upcast").elementToElement({view:{name:"span",attributes:E.FALLBACK_DATA,classes:[E.FALLBACK_CLASS]},model:(e,{writer:t})=>{const[i,n,o]=e.getChild(0).data.match(/{{\s(.+)\s\|\s"(.+)"/)??[];return t.createElement(s.A.pluginName,{name:n??"Error",fallback:o??E.DEFAULT_FALLBACK})}}),e.for("editingDowncast").elementToElement({model:s.A.pluginName,view:(e,{writer:i})=>{const n=t(e,i);return(0,a.toWidget)(n,i)}}),e.for("dataDowncast").elementToElement({model:s.A.pluginName,view:(e,{writer:i})=>t(e,i)})}_createFormView(){const e=new v(this.editor.locale);return this.listenTo(e,"submit",(()=>{const t=e.fallbackInputView.fieldView.element.value??"there";this._hideUI(),this._getBalloonPositionData()?.target().deleteContents(),this.editor.commands.execute(s.A.pluginName,{name:e.storedName,fallback:t})})),this.listenTo(e,"cancel",(()=>{this._hideUI()})),(0,o.clickOutsideHandler)({emitter:e,activator:()=>this.balloon.visibleView===e,contextElements:[this.balloon?.view.element],callback:()=>this._hideUI()}),e}_getBalloonPositionData(){const e=this.editor.editing.view,t=e.document;let i=null;return i=()=>e.domConverter.viewRangeToDom(t.selection.getFirstRange()),{target:i}}_showUI(e){this.balloon.add({view:this.formView,position:this._getBalloonPositionData()}),this.formView.fallbackInputView.fieldView.element.value=e.fallback,this.formView.storedName=e.name,this.formView.focus()}_hideUI(){this.formView.fallbackInputView.fieldView.value="",this.formView.element.reset(),this.balloon.remove(this.formView),this.editor.editing.view.focus()}}},25466:function(e,t,i){"use strict";i.d(t,{s:function(){return d}});var n=i(52544),o=i(73358),a=i(45450),s=i(6147);class r extends a.default{refresh(){this.isEnabled=!0;const e=this.editor.model.document.getRoot()?.getChild(0);e&&e?.name==o.Z.pluginName&&(this.value=e.getAttribute(s.yJ.VERTICAL_ALIGN))}execute(e){this.value=e;const t=e?{[s.yJ.VERTICAL_ALIGN]:e}:void 0;this.editor.execute(o.Z.pluginName,t)}}var l=i(80118),c=i(80935);class u extends n.default{init(){this.editor.commands.add(d.pluginName,new r(this.editor));const e=this.editor,t=e.ui.componentFactory,i=Object.values(c.vh);i.forEach((e=>this._addButton(e))),t.add(d.pluginName,(n=>{const o=(0,l.createDropdown)(n);(0,l.addToolbarToDropdown)(o,(()=>i.map((e=>t.create(`${d.pluginName}:${e}`)))),{enableActiveItemFocusOnDropdownOpen:!0,isVertical:!0,ariaLabel:"Vertical alignment toolbar"}),o.buttonView.set({label:"Vertical alignment",tooltip:!0}),o.extendTemplate({attributes:{class:"ck-vertical-alignment-dropdown"}});const a=c.q4.icon,s=e.commands.get(d.pluginName);return s&&(o.buttonView.bind("icon").to(s,"value",(e=>e?c.rw[e].icon:a)),o.bind("isEnabled").to(s)),this.listenTo(o,"execute",(()=>{e.editing.view.focus()})),o}))}_addButton(e){const t=this.editor;t.ui.componentFactory.add(`${d.pluginName}:${e}`,(i=>{const n=t.commands.get(d.pluginName),o=new l.ButtonView(i);return o.set(c.rw[e]),o.bind("isEnabled").to(n),o.bind("isOn").to(n,"value",(t=>t===e)),this.listenTo(o,"execute",(()=>{t.execute(d.pluginName,e),t.editing.view.focus()})),o}))}}class d extends n.default{static get requires(){return[o.Z,u,r]}static get pluginName(){return"verticalAlignment"}}},80935:function(e,t,i){"use strict";i.d(t,{rw:function(){return o},q4:function(){return a},vh:function(){return n}});var n;!function(e){e.START="start",e.END="end",e.CENTER="center"}(n||(n={}));
1const o={[n.START]:{icon:'<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M2 1a.75.75 0 0 0 0 1.5h12A.75.75 0 0 0 14 1zm9.53 7.78a.75.75 0 0 1-1.06 0L8.75 7.06v7.19a.75.75 0 0 1-1.5 0V7.06L5.53 8.78a.75.75 0 0 1-1.06-1.06l3-3a.75.75 0 0 1 1.06 0l3 3a.75.75 0 0 1 0 1.06"\n fill="currentColor"/>\n</svg>',label:"Start",tooltip:!0,isToggleable:!0},[n.CENTER]:{icon:'<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="m6.53 2.97.72.72V.75a.75.75 0 0 1 1.5 0v2.94l.72-.72a.75.75 0 0 1 1.06 1.06l-2 2a.75.75 0 0 1-1.06 0l-2-2a.75.75 0 0 1 0-1.06.75.75 0 0 1 1.06 0m0 10.06a.75.75 0 1 1-1.06-1.06l2-2a.75.75 0 0 1 1.06 0l2 2a.75.75 0 0 1-1.06 1.06l-.72-.72v2.94a.75.75 0 0 1-1.5 0v-2.94zM2 7.25a.75.75 0 0 0 0 1.5h12a.75.75 0 0 0 0-1.5z"\n fill="currentColor"/>\n</svg>',label:"Center",tooltip:!0,isToggleable:!0},[n.END]:{icon:'<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M5.53 7.22a.75.75 0 0 0-1.06 1.06l3 3a.747.747 0 0 0 1.06 0l3-3a.75.75 0 0 0-1.06-1.06L8.75 8.94V1.75a.75.75 0 0 0-1.5 0v7.19z"\n fill="currentColor"/>\n <path fill-rule="evenodd" clip-rule="evenodd"\n d="M1.25 14.25A.75.75 0 0 1 2 13.5h12a.75.75 0 0 1 0 1.5H2a.75.75 0 0 1-.75-.75" fill="currentColor"/>\n</svg>',label:"End",tooltip:!0,isToggleable:!0}},a=o[n.START]},19151:function(e,t,i){"use strict";i.d(t,{e:function(){return r},v:function(){return s}});var n=i(90434),o=i(37632),a=i(25466);function s(e,t){return new Promise((i=>{let s={bcImage:void 0,bcColor:void 0,fontColor:void 0,bold:!1,italic:!1,underline:!1,alignment:void 0,verticalAlign:void 0};function r(){localStorage.setItem(e,JSON.stringify({...JSON.parse(localStorage.getItem(e)??"{}"),...s}))}s={...s,...JSON.parse(localStorage.getItem(e)??"{}")},s.bcImage&&s.bcImage.src&&t.commands.get(o.O.componentName)?.execute(s.bcImage),s.bcColor&&t.commands.get(n.o.componentName)?.execute(s.bcColor),s.fontColor&&t.commands.get("fontColor")?.execute({value:s.fontColor}),s.bold&&t.commands.get("bold")?.execute(),s.italic&&t.commands.get("italic")?.execute(),s.underline&&t.commands.get("underline")?.execute(),s.alignment&&t.commands.get("alignment")?.execute({value:s.alignment}),s.verticalAlign&&t.commands.get(a.s.pluginName)?.execute(s.verticalAlign),setTimeout((()=>{t.commands.get(o.O.componentName)?.on("execute",((e,[i])=>{s.bcImage=t.commands.get(o.O.componentName).value,r()})),t.commands.get(n.o.componentName)?.on("execute",((e,[t])=>{s.bcColor=t,r()})),t.commands.get("fontColor")?.on("execute",((e,[{value:t}])=>{s.fontColor=t,r()})),t.commands.get("bold")?.on("execute",((e,t)=>{s.bold=!s.bold,r()})),t.commands.get("italic")?.on("execute",((e,t)=>{s.italic=!s.italic,r()})),t.commands.get("underline")?.on("execute",((e,t)=>{s.underline=!s.underline,r()})),t.commands.get("alignment")?.on("execute",((e,[{value:t}])=>{s.alignment=t,r()})),t.commands.get(a.s.pluginName)?.on("execute",((e,[i])=>{s.verticalAlign=t.commands.get(a.s.pluginName).value,r()})),i()}),500)}))}function r(e,t){localStorage.setItem(e,JSON.stringify({...JSON.parse(localStorage.getItem(e)??"{}"),bcImage:t}))}},34763:function(e,t,i){"use strict";i.d(t,{$T:function(){return o},cL:function(){return n},lW:function(){return a}});const n=350,o=999,a="iframeMode"},41895:function(e,t,i){"use strict";i.d(t,{A:function(){return It}});var n=i(20641),o=i(53751),a=i(50953),s=i(90033),r=i(50555),l=i(22222),c=i(49471),u=i(18035),d=i(13505),m=i(80577),g=i(70948),h=i(77207),p=i(4054),N=i(45872),M=i.n(N),f=i(51904),y=i(72040),A=i(20930),L=i(21888),I=i(71966),b=i(77202),w=i(95533),T=i(9581),j=i(12946),v=i(19151),E=i(83133),x=i(90434),C=i(7502),D=i(
152544),S=i(35329);class k extends D.default{static get pluginName(){return"BlockImagePastePlugin"}init(){const e=new S.default(this.editor.editing.view.document);this.editor.plugins.get("ClipboardPipeline").on("inputTransformation",((t,i)=>{i.dataTransfer?.getData("application/ckeditor5-dragging-uid")||(this._collectImages(i.content).forEach((t=>e.remove(t))),i.content.isEmpty&&t.stop())}),{priority:"high"})}_collectImages(e){const t=[],i=e=>{if(e.is("element","img")||e.is("element","picture")||e.is("element","figure")&&e.hasClass("image"))t.push(e);else if(e.is("element")||e.is("documentFragment"))for(const t of e.getChildren())i(t)};return i(e),t}}class z extends D.default{static get pluginName(){return"BlockMediaEmbedPastePlugin"}init(){const e=new S.default(this.editor.editing.view.document);this.editor.plugins.get("ClipboardPipeline").on("inputTransformation",((t,i)=>{i.dataTransfer?.getData("application/ckeditor5-dragging-uid")||(this._collectMedia(i.content).forEach((t=>e.remove(t))),i.content.isEmpty&&t.stop())}),{priority:"high"})}_collectMedia(e){const t=[],i=e=>{if(e.is("element","oembed")||e.is("element","figure")&&e.hasClass("media")||e.is("element")&&e.hasAttribute("data-oembed-url"))t.push(e);else if(e.is("element")||e.is("documentFragment"))for(const t of e.getChildren())i(t)};return i(e),t}}var O=i(39289),_=i(32383),B=i(28340);class R extends D.default{init(){const e=this.editor.model.document.selection;e.on("change:range",(()=>{this.isEnabled=!e.anchor.parent.is("element","codeBlock")})),this._enableTypingHandling()}afterInit(){this._enableEnterHandling(),this._enableShiftEnterHandling()}_enableTypingHandling(){const e=this.editor,t=new B.TextWatcher(e.model,(e=>{if(!function(e){return e.length>4&&" "===e[e.length-1]&&" "!==e[e.length-2]}(e))return;const t=V(e.substr(0,e.length-1));return t?{url:t}:void 0}));t.on("matched:data",((t,i)=>{const{batch:n,range:o,url:a}=i;if(!n.isTyping)return;const s=o.end.getShiftedBy(-1),r=s.getShiftedBy(-a.length),l=e.model.createRange(r,s);this._applyAutoLink(a,l)})),t.bind("isEnabled").to(this)}_applyAutoLink(e,t){const i=this.editor.model,n=this.editor.config.get("link.defaultProtocol"),o=(0,O.addLinkProtocolIfApplicable)(e,n);this.isEnabled&&function(e,t){return t.schema.checkAttributeInSelection(t.createSelection(e),"linkHref")}(t,i)&&(0,O.linkHasProtocol)(o)&&!function(e){const t=e.start.nodeAfter;return!!t&&t.hasAttribute("linkHref")}(t)&&this._persistAutoLink(o,t)}_persistAutoLink(e,t){const i=this.editor.model,n=this.editor.plugins.get("Delete");i.enqueueChange((o=>{o.setAttribute("linkHref",e,t),i.enqueueChange((()=>{n.requestUndoOnBackspace()}))}))}_enableEnterHandling(){const e=this.editor,t=e.model,i=e.commands.get("enter");i&&i.on("execute",(()=>{const e=t.document.selection.getFirstPosition();if(!e||!e.parent.previousSibling)return;const i=t.createRangeIn(e.parent.previousSibling);this._checkAndApplyAutoLinkOnRange(i)}))}_enableShiftEnterHandling(){const e=this.editor,t=e.model,i=e.commands.get("shiftEnter");i&&i.on("execute",(()=>{const e=t.document.selection.getFirstPosition();if(!e)return;const i=t.createRange(t.createPositionAt(e.parent,0),e.getShiftedBy(-1));this._checkAndApplyAutoLinkOnRange(i)}))}_checkAndApplyAutoLinkOnRange(e){const t=this.editor.model,{text:i,range:n}=(0,B.getLastTextLine)(e,t),o=V(i);if(o){const e=t.createRange(n.end.getShiftedBy(-o.length),n.end);this._applyAutoLink(o,e)}}}function V(e){const t=_._t.exec(e);return t?t[0]:null}class Y extends D.default{static get pluginName(){return"customAutoLink"}static get requires(){return[R,B.Delete]}}var U=i(4235),Q=i(35990);class P extends D.default{static get componentName(){return P.pluginName}static get pluginName(){return"eventEmitter"}init(){this.editor.ui.componentFactory.add(P.componentName,(()=>{const e=new Q.default,t=this.editor.config.get(P.pluginName);if(null==t)throw new Error("EventEmitter: config is not defined");return e.set({label:t.label??"Emitter Label",tooltip:!0,icon:t.icon??U.icons.cog,class:t.class}),e.on("execute",(()=>{t.callback(),this.editor.ui.focusTracker.set({isFocused:!1})})),e}))}}var F=i(547),G=i(23556);class H extends D.default{RAW_DATA_ATTRIBUTE_NAME="data-value";static get requires(){return[G.Widget]}init(){this._defineSchema(),this._clipboardListner(),this._defineConverters()}_defineSchema(){this.editor.model.schema.register(Z.pluginName,{inheritAllFrom
1:"$blockObject",allowAttributes:[this.RAW_DATA_ATTRIBUTE_NAME]})}_getAttributsFromIframeCodeString(e){const t=(new DOMParser).parseFromString(e,"text/html").body.children[0];return t.getAttributeNames().map((e=>[e,t.getAttribute(e)]))}_clipboardListner(){const e=new S.default(this.editor.editing.view.document);this.editor.plugins.get("ClipboardPipeline").on("inputTransformation",((t,i)=>{1==i.content.childCount&&i.content.getChild(0).data&&this._isValidIFrame(i.content.getChild(0).data)&&(i.content=e.createDocumentFragment([e.createElement("iframe",this._getAttributsFromIframeCodeString(i.content.getChild(0).data))]))}))}_isValidIFrame(e){const t=e.match(new RegExp('^<iframe.*\\ssrc="([^\\s]*)".*<\\/iframe>$'));return t&&t[1]&&!!t[1].match(new RegExp(_._t))}_defineConverters(){const e=this.editor.conversion;e.for("upcast").elementToElement({view:{name:"iframe",attributes:["src"]},model:(e,{writer:t})=>{const i=e.getIdentity().replace("iframe ","");return t.createElement(Z.pluginName,{[this.RAW_DATA_ATTRIBUTE_NAME]:i})}}),e.for("editingDowncast").elementToElement({model:Z.pluginName,view:(e,{writer:t})=>{const i=this._getAttributsFromIframeCodeString(`<iframe ${e.getAttribute(this.RAW_DATA_ATTRIBUTE_NAME)}></iframe>`),n=t.createContainerElement("div",{class:"iframe-widget-preview"},[t.createContainerElement("div",{class:"iframe-widget-preview-mask",style:"position: absolute;top: 0;left: 0;right: 0;bottom: 0;"}),t.createContainerElement("iframe",i)]);return(0,G.toWidget)(n,t,{label:"iframe widget"})}}),e.for("dataDowncast").elementToElement({model:Z.pluginName,view:(e,{writer:t})=>{const i=this._getAttributsFromIframeCodeString(`<iframe ${e.getAttribute(this.RAW_DATA_ATTRIBUTE_NAME)}></iframe>`);return t.createContainerElement("iframe",i)}})}}class Z extends D.default{static get requires(){return[H]}static get pluginName(){return"iframeWidget"}}var W=i(44056),$=i(40393);class J{loader;uploadApi;restoreApi;deleteApi;chunkAbort;constructor(e,t){this.loader=e,this.uploadApi=t.uploadApi,this.restoreApi=t.restoreApi,this.deleteApi=t.deleteApi}upload(){return this.loader.file.then((e=>new Promise(((t,i)=>
1{const{promise:n,abort:o}=W.W.uploadByChunks(e);return this.chunkAbort=o,n.then(this.uploadApi).then((e=>{t({default:e})})).catch((()=>{i({error:{message:$.JL}})}))}))))}abort(){this.chunkAbort()}}function q(e){const t=["image","imageBlock","inlineImage","imageInline"],i=e.config.get("imageUploadAdapter");if(null==i)throw new Error("ImageUploadAdapter: editor.config.imageUploadAdapter is empty");e.plugins.get("FileRepository").createUploadAdapter=e=>new J(e,{uploadApi:i.uploadApi,restoreApi:i.restoreApi,deleteApi:i.deleteApi}),e.on("ready",(()=>{e.model.document.on("change:data",(n=>{const o=n.source.differ;if(o&&o.isEmpty)return;const a=o.getChanges({includeChangesInGraveyard:!0}),s=e.model.document.graveyard,r=new Set,l=new Set;a.filter((e=>"insert"==e.type)).forEach((i=>{const n=i.position.root===s?r:l;(function(i){const n=[],o=e.model.createRange(i.position,i.position.getShiftedBy(i.length));for(const{item:e}of o)if(e.is("element")&&t.includes(e.name)){const t=e.getAttribute("src");t&&n.push(t)}return n})(i).forEach((e=>n.add(e)))})),r.forEach((e=>{l.has(e)||i?.deleteApi(e)})),l.forEach((e=>{r.has(e)||i?.restoreApi(e)}))}))}),{priority:"lowest"})}var K,X=i(86947),ee=i(25613),te=i(45450);!function(e){e.CREATE="create",e.DELETE="delete"}(K||(K={}));class ie{id;mode}class ne extends te.default{execute(e){const t=this.editor;t.model.change((i=>{if(e.mode===K.CREATE){const n=this._createElement(i,e);t.model.insertObject(n,null,null,{setSelection:"after"})}if(e.mode==K.DELETE){const n=t.model.document.getRoot();for(const o of t.model.createRangeIn(n).getItems())o.name==Se.pluginName&&parseInt(o.getAttribute("data-id"))==parseInt(e.id)&&i.remove(o)}}))}refresh(){super.refresh(),this.isEnabled=!0}_createElement(e,t){return e.createElement(Se.pluginName,{"data-id":t.id})}}var oe=i(32329);const ae=new RegExp(`^${location.origin}\\/api\\/v1\\/video\\/\\d+\\/preview\\?range=.+`),se=new RegExp(`^${location.origin}\\/app\\/interviews\\/\\d+$`),re=/^\/api\/v1\/video\/(\d+)/,le=/^\/app\/interviews\/(\d+)/;function ce(e){return!!_._t.test(e)&&(ue(e)||de(e))}function ue(e){return ae.test(e)}function de(e){return se.test(e)}function me(e){if(ue(e))return he(e,re)}function ge(e){if(de(e))return he(e,le)}function he(e,t){const i=new URL(e).pathname.match(t);if(i&&2==i.length)return i[1]?parseInt(i[1]):void 0}var pe=i(50675);class Ne extends D.default{static CLASS_CONTAINER="interview-wire-link-widget-container";static CLASS_LOADING_ANIMATION="interview-wire-link-loading-animation";init(){this._defineSchema(),this._defineConverters(),this.editor.commands.add(Se.pluginName,new ne(this.editor)),this.editor.plugins.get("ClipboardPipeline").on("inputTransformation",((e,t)=>{const i=t.content.getChild(0).data;let n=i;if(i){if(i.match(/<iframe/)?.length){const e=i.match(/src="(.*?)"/);if(!e)return;n=e[1]}1==t.content.childCount&&ce(n)&&(e.stop(),this._convertUrlToPreview(n).then((e=>{this.editor.commands.execute("mediaEmbed",e)})).catch((e=>console.error(e))))}}))}_defineSchema(){this.editor.model.schema.register(Se.pluginName,{inheritAllFrom:"$blockObject",allowAttributes:["data-id"]})}_defineConverters(){const e=this.editor.conversion;e.for("upcast").elementToElement({view:{name:"div",classes:Ne.CLASS_CONTAINER,attributes:["data-id"]},model:(e,{writer:t})=>t.createElement(Se.pluginName,{class:Ne.CLASS_CONTAINER,"data-id":e.getAttribute("data-id")})}),e.for("editingDowncast").elementToElement({model:Se.pluginName,view:(e,{writer:t})=>{const i=this._createDowncastElement(e,t);return(0,G.toWidget)(i,t,{label:Se.pluginName})}}),e.for("dataDowncast").elementToElement({model:Se.pluginName,view:(e,{writer:t})=>this._createDowncastElement(e,t)})}_createDowncastElement(e,t){const i=e.getAttribute("data-id");return t.createContainerElement("div",{"data-id":i,class:Ne.CLASS_CONTAINER},[t.createContainerElement("div",{class:Ne.CLASS_LOADING_ANIMATION})])}_convertUrlToPreview(e){return new Promise(((t,i)=>{let n;if(de(e)){const o=ge(e);o||i("No interview id found"),n=(0,pe.bj)(ie,{id:o,mode:K.CREATE}),X.k.getInterview(n.id).then((e=>{const o=e.tape.id,a=e.tape.type;(0,ee.V)(a).getEmbed(o,e.tape.range).then((i=>{const s={theme:void 0,width:void 0,range:i.range,title:e.tape.title??"Empty title",visibleText:!0,playerRewindEnabled:!0,playerProgressBarEnabled:!0,playerSpeedControlEnabled:!0,height:"auto"},r=(0,oe.ik)(o,a,s);n.mode=K.DELETE,this.editor.commands.execute(Se.pluginName,n),t(r)})).catch((e=>{console.error(e),i(e)}))})).catch((e=>{console.error(e),i(e)}))}else{if(!ue(e))return i("Link is not Embed Interview or Interview URL");{const i=me(e);n=(0,pe.bj)(ie,{id:i,mode:K.CREATE}),n.mode=K.DELETE,this.editor.commands.execute(Se.pluginName,n),t(e)}}}))}}var Me=i(85072),fe=i.n(Me),ye=i(97825),Ae=i.n(ye),Le=i(77659),Ie=i.n(Le),be=i(55056),we=i.n(be),Te=i(10540),je=i.n(Te),ve=i(41113),Ee=i.n(ve),xe=i(73255),Ce=i.n(xe),De={};De.styleTagTransform=Ee(),De.setAttributes=we(),De.insert=Ie().bind(null,"head"),De.domAPI=Ae(),De.insertStyleElement=je();fe()(Ce(),De),Ce()&&Ce().locals&&Ce().locals;class Se extends D.default{static get pluginName(){return"interviewWireLinkConverter"}static get requires(){return[Ne]}}class ke extends D.default{init(){const e=this.editor.config.get("paragraphLimit.limit");this.editor.editing.view.document.on("enter",((t,i)=>{if(!i.isSoft){const i=this.editor.model.document.selection,n=0!=i.focus?.path[1]?i.focus?.path[1]:i.focus?.path[0];if(!n)return;const o=n-e<0?0:n-e;let a=0;const s=this.editor.model.document.getRoot()?.getChildren();if(s)for(const e of s)e.startOffset>=o&&e.startOffset<=n&&e.isEmpty&&a++;a==e&&t.stop()}}))}}class ze extends D.default{static get pluginName(){return"paragraphLimit"}static get requires(){return[ke]}constructor(e){super(e),e.config.define(ze.pluginName,{limit:3})}}var Oe=i(37923);const _e={getImageById(e){return Oe.n.create().get(`/api/v1/medias/image/${e}`).then((e=>e.data.data))}};var Be,Re=i(86051);!function(e){e.DATA="data",e.EDITING="editing"}(Be||(Be={}));class Ve extends te.default{execute(e){const t=this.editor;t.model.change((i=>{if(null==e.img){const n=this._createElement(i,e);
1t.model.insertObject(n,null,null,{setSelection:"after"})}else{const i=t.model.document.getRoot();for(const{item:n}of t.model.createRangeIn(i))n.name==We.pluginName&&String(n.getAttribute("id"))==String(e.id)&&(n._removeAttribute("data-img-src"),n._setAttribute("data-img-src",e.img),this.editor.editing.reconvertItem(n))}}))}refresh(){super.refresh(),this.isEnabled=!0}_createElement(e,t){return e.createElement(We.pluginName,{"data-src":t.href,"data-img-src":t.img,id:t.id})}}class Ye{img;href;get id(){return(0,_.s5)(this.href)}}var Ue=i(9372),Qe=i(13073);class Pe extends D.default{static get requires(){return[G.Widget]}init(){this._defineSchema(),this._defineConverters(),this.editor.commands.add(We.pluginName,new Ve(this.editor)),this.editor.plugins.get("ClipboardPipeline").on("inputTransformation",((e,t)=>{const i=t.content.getChild(0).data;let n=i;if(i){if(i?.match(/<iframe/)?.length){const e=i.match(/src="(.*?)"/);if(!e)return;n=e[1]}if(1==t.content.childCount&&_._t.test(n)&&ce(n)){const t=(0,pe.bj)(Ye,{href:n});this.editor.commands.execute(We.pluginName,t),e.stop(),this._getThumbnailImage(n).then((e=>{const t=(0,pe.bj)(Ye,{img:e,href:n});this.editor.commands.execute(We.pluginName,t)})).catch((e=>console.error(e)))}}}))}_defineSchema(){this.editor.model.schema.register(We.pluginName,{inheritAllFrom:"$blockObject",allowAttributes:["data-img-src","data-src","id"]})}_defineConverters(){const e=this.editor.conversion;e.for("upcast").elementToElement({view:{name:"div",classes:"thumbnail-widget-container",attributes:["data-img-src","data-src","id"]},model:(e,{writer:t})=>t.createElement(We.pluginName,{class:"thumbnail-widget-container",id:(0,_.s5)(e.getAttribute("data-src")),"data-src":e.getAttribute("data-src"),"data-img-src":e.getAttribute("data-img-src")})}),e.for("editingDowncast").elementToElement({model:We.pluginName,view:(e,{writer:t})=>{const i=this._createDowncastElement(e,t,Be.EDITING);return(0,G.toWidget)(i,t,{label:"thumbnail widget"})}}),e.for("dataDowncast").elementToElement({model:We.pluginName,view:(e,{writer:t})=>this._createDowncastElement(e,t)})}_createDowncastElement(e,t,i=Be.DATA){const n=e.getAttribute("data-src"),o=(0,_.s5)(e.getAttribute("id")),a=e.getAttribute("data-img-src"),s={class:"thumbnail-widget-container",style:"width: 574px; height: 358px;","data-img-src":a,"data-src":n,id:o};let r={style:"width: 574px; height: 358px;"};return i==Be.DATA&&(r={...r,href:n}),a?t.createContainerElement("div",s,[t.createContainerElement("a",r,[t.createRawElement("img",{src:a,style:"width: 574px; height: 358px; object-fit: cover"})])]):t.createContainerElement("div",s,[t.createEmptyElement("div",{class:"thumbnail-widget-loading-animation"})])}_getThumbnailImage(e){return new Promise(((t,i)=>{if(ce(e)||i(),ue(e)||de(e)||i(),ue(e)){const n=function(e){if(ue(e)){const t=new URL(e).searchParams.get("customThumbnailId");return t?parseInt(t):void 0}}(e);if(n)_e.getImageById(n).then((async e=>{await Fe(e).then((e=>t(e)))})).catch((e=>{(0,$.dk)(e),i()}));else{const n=me(e);n||i(),Re.C.get(n).then((async e=>{e.data&&e.data.cover?.url&&await Fe(e.data.cover.url).then((e=>t(e))),i()})).catch((e=>{(0,$.dk)(e),i()}))}}else if(de(e)){const n=ge(e);n||i(),X.k.getInterviewVideo(n).then((async e=>{e.cover?.url&&await Fe(e.cover.url).then((e=>t(e))),i()})).catch((e=>{(0,Ue.l)("error","Interview is not published or video is not found."),(0,$.dk)(e),i()}))}}))}}function Fe(e){return new Promise((function(t,i){(0,Qe.lKg)({src:e},{onSuccess(){t(e)},onError(e){(0,$.dk)(e),i()}})}))}var Ge=i(14647),He=i.n(Ge),Ze={};Ze.styleTagTransform=Ee(),Ze.setAttributes=we(),Ze.insert=Ie().bind(null,"head"),Ze.domAPI=Ae(),Ze.insertStyleElement=je();fe()(He(),Ze),He()&&He().locals&&He().locals;class We extends D.default{static get pluginName(){return"thumbnailWidget"}static get requires(){return[Pe]}}const $e="data-uid",Je="class",qe="data-block-placeholder",Ke="unique-plain-text-block",Xe="unique-plain-text-wrapper",et="uniquePlainTextBlocksWrapper",tt="uniquePlainTextBlock",it="Enter your text";var nt=i(73358);function ot(e){const t=new Set,i=e.getChild(0);
1return i&&i.is("model:element",et)&&[...i.getChildren()].forEach((e=>{e.is("model:element",tt)&&t.add(e.getAttribute($e))})),t}function at(e){let t=e.model.document.getRoot();return t.getChild(0)?.is("model:element",nt.Z.pluginName)&&(t=t.getChild(0)),t}class st extends te.default{refresh(){this.isEnabled=!0}execute(e){const t=this.editor.config.get(dt.pluginName),i=at(this.editor),n=ot(i),o=[];t.blocks.forEach(((t,i)=>{e.length&&!e.includes(t.uid)||n.has(t.uid)||o.push({...t,position:i})})),i.getChild(0)&&i.getChild(0)?.is("model:element",et)||this.editor.model.change((e=>{const t=e.createElement(et,{class:Xe});e.insert(t,i,0)}));const a=i.getChild(0);if(!a||!a.is("model:element",et))throw new Error(`${et} not found`);this.editor.model.change((e=>{o.forEach((t=>{const i={[$e]:t.uid,[Je]:Ke},n=e.createElement(tt);t.defaultContent?e.appendText(t.defaultContent,n):i[qe]=t.placeholder??it,e.setAttributes(i,n),e.insert(n,a,t.position)}))}))}}class rt extends D.default{configBlocks=new Map;init(){const e=this.editor.config.get(dt.pluginName);if(e.blocks.forEach((e=>{this.configBlocks.set(e.uid,e)})),e.blocks.length!=this.configBlocks.size)throw new Error("Block uid mast be unique.");this._schema(),this._upcast(),this._downcast(),this.editor.commands.add(dt.pluginName,new st(this.editor)),this.editor.on("ready",(()=>{this.editor.commands.execute(dt.pluginName,[]),this._listeners()}),{priority:"lowest"})}_schema(){this.editor.model.schema.register(et,{allowChildren:tt,allowIn:["$root",nt.Z.pluginName],isContent:!0,isObject:!0}),this.editor.model.schema.register(tt,{allowChildren:"$text",allowIn:[et],allowAttributes:[$e,Je,qe],isContent:!0,isLimit:!0,isObject:!0}),this.editor.model.schema.addAttributeCheck((e=>{if(e.endsWith(et))return!1})),this.editor.model.schema.addAttributeCheck((e=>{if(e.endsWith(tt+" $text"))return!1})),this.editor.model.schema.addChildCheck(((e,t)=>(!e.endsWith(tt)||"$text"==t.name)&&((!e.endsWith(et)||t.name==tt)&&(!(t.name==et&&!e.endsWith("$root")&&!e.endsWith(nt.Z.pluginName))&&void 0))))}_upcast(){this.editor.conversion.for("upcast").elementToElement({view:{name:"div",classes:[Xe]},model:(e,{writer:t})=>t.createElement(et,e.getAttributes())}),this.editor.conversion.for("upcast").elementToElement({view:{name:"div",classes:[Ke]},model:(e,{writer:t})=>{const i=ot(at(this.editor)),n=e.getAttribute($e),o=n?this.configBlocks.get(n):null;if(!n||!o||i.has(n))return null;const a=t.createElement(tt,e.getAttributes());return e.isEmpty&&(o.defaultContent?a._appendChild(t.createText(o.defaultContent)):a._setAttribute(qe,o.placeholder??it)),a}})}_downcast(){this.editor.conversion.for("downcast").elementToElement({model:et,view:(e,{writer:t})=>t.createContainerElement("div",{class:[Xe]})}),this.editor.conversion.for("editingDowncast").elementToElement({model:tt,view:(e,{writer:t})=>t.createContainerElement("div",e.getAttributes())}),this.editor.conversion.for("editingDowncast").add((e=>{e.on(`attribute:${qe}:${tt}`,((e,t,{writer:i,mapper:n})=>{const o=n.toViewElement(t.item);t.attributeNewValue?i.setAttribute(qe,t.attributeNewValue,o):i.removeAttribute(qe,o)}))})),this.editor.conversion.for("dataDowncast").elementToElement({model:tt,view:(e,{writer:t})=>t.createContainerElement("div",{[Je]:Ke,[$e]:e.getAttribute($e)})})}_listeners(){const e=this.editor,t=e.model;!function(e){function t(t){const i=e.model.document.selection;for(const e of i.getRanges())for(const i of e.getItems())i.is("element")&&(i.name!==et&&i.name!==tt||t())}e.commands.get("delete")?.on("execute",((e,i)=>{t(e.stop)}),{priority:"high"}),e.commands.get("forwardDelete")?.on("execute",((e,i)=>{t(e.stop)}),{priority:"high"})}(e),t.document.on("change:data",(()=>{const i=t.document.differ.getChanges();for(const t of i){if(("remove"===t.type||"insert"===t.type)&&"$text"==t.name&&t.position.parent.name==tt){const i=t.position.parent,n=i.getAttribute($e);0===i.childCount||1===i.childCount&&i.getChild(0).is("$text")&&""==i.getChild(0).data?e.model.change((e=>{e.model.change((e=>{e.setAttribute(qe,this.configBlocks.get(n)?.placeholder??it,i)}))})):i.hasAttribute(qe)&&e.model.change((e=>{e.model.change((e=>{e.removeAttribute(qe,i)}))}))}"remove"==t.type&&(t.name!=tt&&t.name!=et||e.commands.execute("undo"))}}),{priority:"high"}
1),e.editing.view.document.on("keydown",((t,i)=>{const n=e.model.document.selection.getFirstPosition(),o=n?.parent;if(o?.name===tt||o?.name===et){if("Backspace"===i.domEvent.key){const e=t.source.selection,n=e._ranges[0].isCollapsed,o=0==e.anchor.offset;n&&o&&(t.stop(),i.domEvent.preventDefault(),i.domEvent.stopPropagation())}if("Enter"===i.domEvent.key){const n=o?.nextSibling??o?.parent?.nextSibling;n?this.editor.model.change((e=>{const t=e.createPositionAt(n,0),i=e.createRange(t);e.setSelection(i)})):e.model.change((t=>{const i=at(e),n=t.createElement("paragraph");t.insert(n,i,"end");const o=t.createPositionAt(n,0);t.setSelection(t.createRange(o))})),t.stop(),i.domEvent.preventDefault(),i.domEvent.stopPropagation()}}}),{priority:"highest"})}}var lt=i(40963),ct=i.n(lt),ut={};ut.styleTagTransform=Ee(),ut.setAttributes=we(),ut.insert=Ie().bind(null,"head"),ut.domAPI=Ae(),ut.insertStyleElement=je();fe()(ct(),ut),ct()&&ct().locals&&ct().locals;class dt extends D.default{static get requires(){return[rt,st]}static get pluginName(){return"UniquePlainTextBlock"}}var mt=i(25466),gt=i(34763),ht=i(20295),pt=i(59121);const Nt=["data-character-count"],Mt="i-input-extra";var ft=(0,n.pM)({__name:"IInputRichText",props:{modelValue:{},disabled:{type:Boolean},placeholder:{},contentClass:{},id:{},focus:{type:Boolean},loading:{type:Boolean},maxLength:{},useBc:{type:Boolean,default:!0},useMediaEmbed:{type:Boolean},useIframeWidget:{type:Boolean},useEventEmitter:{},imageAdapter:{},withoutStyle:{type:Boolean},bcApi:{},_dev:{type:Boolean},heading:{},saveAs:{},fallback:{type:Boolean},fontSize:{type:Boolean},fontFamily:{type:Boolean},useBcAsDefault:{type:Boolean},defaultVerticalAlignment:{},defaultHorizontalAlignment:{},emailContent:{type:Boolean},asEmpty:{type:Boolean},editorType:{},verticalAlignment:{type:Boolean},uniqueBlocks:{},mediaReadOnly:{type:Boolean}},emits:["update:modelValue","update:characters:count","emitter","blur","focus","keydown"],setup(e,{expose:t,emit:N}){(0,o.$9)((e=>({"63d8d4e3":(0,a.R1)(oe),ad84ccd0:(0,a.R1)(ne),c92c9ba0:(0,a.R1)(ae)})));const D="heading-paragraph",S="heading-heading-1",O="heading-heading-2",_=N,B=e,R=(0,Qe.I8z)((async()=>"classic"==B.editorType?Promise.all([i.e(5865),i.e(8096)]).then(i.bind(i,82840)).then((({ClassicEditor:e})=>e)):u.h)),V=(0,ht.WG)(),U=(0,n.EW)((()=>B.id??V)),Q=(0,a.IJ)(),G=(0,a.KR)(null),H=(0,a.KR)(0),W=(0,n.EW)((()=>({"over-limit":(0,a.R1)(H)<0,"show-characters":void 0!==B.maxLength&&!B.disabled,"i-shimmer":B.loading,"classic-editor":"classic"==B.editorType}))),$=(0,n.EW)((()=>(0,a.R1)(H)>=0)),J=(()=>{const e=[r.C1,y.B8,g.DZ,L.Paragraph,f.N_,Y,j.a,c.yN,c.J2,c.z2,m.rw,d.u,l.n,I.SelectAll,b.Undo,g.Yv,L.ParagraphButtonUI,p.Tg,pt.Notification,ze];return B.verticalAlignment&&e.push(mt.s),B.fontSize&&e.push(m.Z4),B.fontFamily&&e.push(m.ay),B.fallback&&e.push(F.A),B.useEventEmitter&&e.push(P),B.useMediaEmbed&&(e.push(A.Sy),B.mediaReadOnly&&e.push(z)),B.useBc&&e.push(E.i),B.bcApi&&e.push(C.N),B.emailContent?e.push(We):e.push(Se),B.imageAdapter&&(B.mediaReadOnly?e.push(k):e.push(h.BR),e.push(w.FileRepository,q,h._V,h.qI,h.uX,h.bs,h.FU,f.eH)),B.useIframeWidget&&e.push(Z),B.uniqueBlocks&&e.push(dt),e})(),K=[{undo:!0,redo:!0},"|",{paragraph:!0,heading1:!0,heading2:!0,fontSize:B.fontSize,fontFamily:B.fontFamily,fontColor:!0,link:!0},"|",{bold:!0,italic:!0,underline:!0},"|",{fallback:B.fallback,imageUpload:!!B.imageAdapter&&!B.mediaReadOnly,backgroundColor:B.useBc,backgroundImage:B.bcApi},"|",{eventEmitter:B.useEventEmitter,mediaEmbed:B.useMediaEmbed&&!B.mediaReadOnly,"|":B.useEventEmitter||B.useMediaEmbed&&!B.mediaReadOnly},{alignment:!0,verticalAlignment:B.verticalAlignment,bulletedList:!0,numberedList:!0,outdent:!0,indent:!0}].map((e=>"string"==typeof e?[e]:Object.entries(e).filter((e=>e[1])).flatMap((e=>e[0])))).flat(),X=(()=>{const e=[];return B.emailContent||e.push({name:"influencingIframe",url:new RegExp(`(?:^${location.origin}\\/api\\/v1\\/(?:video|sound)\\/\\d+\\/preview?[^?]+)(?:\\?.*?(?:&|^)visibleText=(\\d))?(?:.*?(?:&|^)width=([^&]+))?(?:.*?(?:&|^)height=([^&]+))?`),html(e){let[t,i,n,o]=e;const a=n&&o?"auto":i?"1/1":"16/9";
1return n=n?decodeURIComponent(n.replace(/\+/g,"%20")):"100%",o=o?decodeURIComponent(o?.replace(/\+/g,"%20")):"auto",`<iframe src="${t}&${gt.lW}=1" style="width: ${n};height: ${o};aspect-ratio: ${a};border: none;" allowfullscreen></iframe>`}}),e})(),ee=(0,n.EW)((()=>B.disabled||B.loading)),te=(0,n.EW)((()=>({plugins:J,toolbar:K,heading:{options:[{model:"paragraph",title:"Paragraph",class:D},{model:"heading1",view:"h2",title:"Heading 1",class:S},{model:"heading2",view:"h3",title:"Heading 2",class:O}]},fontFamily:{options:["Open Sans, serif","Arial, Helvetica, sans-serif","Courier New, Courier, monospace","Georgia, serif","Lucida Sans Unicode, Lucida Grande, sans-serif","Tahoma, Geneva, sans-serif","Times New Roman, Times, serif","Trebuchet MS, Helvetica, sans-serif","Verdana, Geneva, sans-serif"]},list:{properties:{styles:!0,startIndex:!0,reversed:!0}},blockToolbar:{items:["bold","italic"],icon:"pilcrow"},link:{defaultProtocol:"https://",addTargetToExternalLinks:!0},wordCount:{onUpdate({characters:e}){B.maxLength&&e>B.maxLength?H.value=B.maxLength-e:H.value=e}},backgroundImage:{api:B.bcApi},image:{resizeUnit:"px",toolbar:["toggleImageCaption",{name:"imageStyle:icons",title:"Alignment",items:["imageStyle:alignBlockLeft","imageStyle:block","imageStyle:alignBlockRight"],defaultItem:"imageStyle:block"},"imageTextAlternative","|","linkImage"],insert:{integrations:["upload"],type:"block"}},[P.pluginName]:{callback:()=>_("emitter",B.useEventEmitter.event),...B.useEventEmitter},imageUploadAdapter:B.imageAdapter,placeholder:B.uniqueBlocks?"":B.placeholder??"Enter your text",mediaEmbed:{previewsInData:!0,extraProviders:X},fontSize:{options:[9,11,"default",15,17,19,21,23,25]},[dt.pluginName]:{blocks:B.uniqueBlocks},saveAs:B.saveAs})));function ie(e){Q.value=e,se(),B.mediaReadOnly&&e.commands.get("mediaEmbed")?.forceDisabled("readonly"),e.model.document.on("change:data",(()=>{const t=e.getData();G.value&&(G.value.lastEditorData=t),function(e){if($.value){de(!0),_("update:characters:count",(0,a.R1)(H));let t=e;B.asEmpty&&0==(0,a.R1)(H)&&(t=""),(0,a.R1)(re)&&_("update:modelValue",t)}else B.modelValue&&B.modelValue.length>0&&(0,a.R1)(Q)?.setData(B.modelValue)}(t)})),B._dev&&M().attach(e),B.saveAs&&(0,v.v)(B.saveAs,e).then((()=>{const t=e.commands.get("alignment");B.defaultHorizontalAlignment&&t&&t.value!=B.defaultHorizontalAlignment&&t.execute({value:B.defaultHorizontalAlignment});const i=e.commands.get("verticalAlignment");B.defaultVerticalAlignment&&i&&i.value!=B.defaultVerticalAlignment&&i.execute(B.defaultVerticalAlignment)})),B.heading&&e.execute("heading",{value:B.heading}),e.getData()&&(le.value=e.editing.model.document.history.version),e.model.listenTo(e.model,"applyOperation",(()=>{(0,a.R1)(re)&&ue(e.editing.model.document.history.version)}),{priority:"lowest"}),e.ui.focusTracker.on("change:isFocused",((t,i,n)=>{de(),!n&&(0,a.R1)(ce)?(_("blur",{dirty:(0,a.R1)(re)}),me()):(_("focus"),e.model.change((t=>{const i=t.createPositionAt(e.model.document.getRoot(),"end");t.setSelection(i)})))})),B.focus&&!(0,a.R1)(ee)&&(0,n.dY)((()=>e.focus())),e.plugins.get("Notification").on("show:warning",((e,t)=>{(0,Ue.l)("warning",t?.message?.error?.message),e.stop()})),e.editing.view.document.on("keydown",((e,t)=>
1{13==t.keyCode?_("keydown",{...t,code:"Enter",key:"Enter"}):27==t.keyCode&&_("keydown",{...t,code:"Escape",key:"Escape"})})),B.useBcAsDefault&&e.commands.execute(x.o.componentName),B.modelValue&&_("update:characters:count",(0,a.R1)(H))}const{firstElementFontSize:ne,firstElementLineHeight:oe,firstElementTextAlign:ae}=(()=>{const e=(0,a.KR)("14px"),t=(0,a.KR)("24px"),i=(0,a.KR)("left"),o=setInterval((()=>{const n=document.getElementById((0,a.R1)(U))?.querySelector("[data-placeholder]")?.firstElementChild;if(n){const o=getComputedStyle(n),s=o.fontSize?.toString(),r=o.lineHeight?.toString(),l=o.textAlign?.toString();s!=(0,a.R1)(e)&&(e.value=o.fontSize?.toString()??e.value),r!=(0,a.R1)(t)&&(t.value=o.lineHeight?.toString()??t.value),l&&l!=(0,a.R1)(i)&&(i.value=l)}}),100);return(0,n.xo)((()=>{clearInterval(o)})),{firstElementLineHeight:t,firstElementFontSize:e,firstElementTextAlign:i}})();function se(e=B.disabled){e?(0,a.R1)(Q)?.enableReadOnlyMode(Mt):(0,a.R1)(Q)?.disableReadOnlyMode(Mt)}const{dirty:re,historyVersion:le,isHistoryChange:ce,changeHistory:ue,changeDirty:de,changeSaveHistory:me}=(()=>{const e=(0,a.KR)(!1),t=(0,a.IJ)(0),i=(0,a.IJ)(0),o=(0,n.EW)((()=>(0,a.R1)(t)!=(0,a.R1)(i)));return{dirty:e,historyVersion:t,isHistoryChange:o,changeHistory:function(e){(0,a.R1)(t)!=e&&(t.value=e)},changeDirty:function(t){if(t)e.value=!0;else if(!(0,a.R1)(e)){function i(){e.value=!0,(0,a.R1)(Q)?.model.document.off("change:data",i)}(0,a.R1)(Q)?.model.document.on("change:data",i)}},changeSaveHistory:function(){i.value=(0,a.R1)(t)}}})();return(0,n.wB)(ee,(e=>{(0,a.R1)(G)&&(!e&&B.focus&&(0,n.dY)((()=>(0,a.R1)(Q)?.focus())),se(e))})),t({focus:()=>(0,a.R1)(Q)?.focus(),getData:()=>B.modelValue}),(e,t)=>((0,n.uX)(),(0,n.CE)("div",{class:(0,s.C4)(["i-input-extra-wrapper",W.value]),"data-character-count":H.value},[(0,a.R1)(R)?((0,n.uX)(),(0,n.Wv)((0,a.R1)(T.component),{key:0,id:U.value,ref_key:"editorRef",ref:G,class:(0,s.C4)([Mt,"support",{"without-style":e.withoutStyle}]),config:te.value,editor:(0,a.R1)(R),modelValue:e.modelValue,readonly:e.disabled,onReady:ie},null,8,["id","class","config","editor","modelValue","readonly"])):(0,n.Q3)("",!0)],10,Nt))}}),yt=i(78552),At=i.n(yt),Lt={};Lt.styleTagTransform=Ee(),Lt.setAttributes=we(),Lt.insert=Ie().bind(null,"head"),Lt.domAPI=Ae(),Lt.insertStyleElement=je();fe()(At(),Lt),At()&&At().locals&&At().locals;var It=ft},25730:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return b}});var n=i(20641),o=i(90033),a=i(41895),s=i(50953),r=(0,n.pM)({__name:"Index",setup(e){const t=(0,s.KR)('<div class="unique-plain-text-wrapper"><div class="unique-plain-text-block" data-uid="header"></div><div class="unique-plain-text-block" data-uid="subheader"></div></div><p>test text</p>'),i=(0,s.KR)([{uid:"header",placeholder:"header placeholder"},{uid:"subheader",placeholder:"subheader placeholder"}]);function r(){console.log(t.value)}return(e,s)=>{const l=(0,n.g2)("IBtn");return(0,n.uX)(),(0,n.CE)("div",null,[(0,n.bF)(a.A,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=e=>t.value=e),placeholder:"Enter your text",uniqueBlocks:i.value,_dev:"",fallback:""},null,8,["modelValue","uniqueBlocks"]),(0,n.bF)(l,{onClick:r},{default:(0,n.k6)((()=>s[1]||(s[1]=[(0,n.eW)(" Get text ")]))),_:1}),s[2]||(s[2]=(0,n.Lk)("h2",null,"Output data:",-1)),(0,n.Lk)("p",null,(0,o.v_)(t.value),1)])}}}),l=i(85072),c=i.n(l),u=i(97825),d=i.n(u),m=i(77659),g=i.n(m),h=i(55056),p=i.n(h),N=i(10540),M=i.n(N),f=i(41113),y=i.n(f),A=i(64598),L=i.n(A),I={};I.styleTagTransform=y(),I.setAttributes=p(),I.insert=g().bind(null,"head"),I.domAPI=d(),I.insertStyleElement=M();c()(L(),I),L()&&L().locals&&L().locals;var b=r},57522:function(e){"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0i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i8+PC9nPjwvc3ZnPg=="},70710:function(e){"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MDAgNDAwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA0MDAgNDAwIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBkPSJNNDAwIDIwMGMwIDExMC41LTg5LjUgMjAwLTIwMCAyMDBTMCAzMTAuNSAwIDIwMCA4OS41IDAgMjAwIDBzMjAwIDg5LjUgMjAwIDIwMHpNMTYzLjQgMzA1LjVjODguNyAwIDEzNy4yLTczLjUgMTM3LjItMTM3LjIgMC0yLjEgMC00LjItLjEtNi4yIDkuNC02LjggMTcuNi0xNS4zIDI0LjEtMjUtOC42IDMuOC0xNy45IDYuNC0yNy43IDcuNiAxMC02IDE3LjYtMTUuNCAyMS4yLTI2LjctOS4zIDUuNS0xOS42IDkuNS0zMC42IDExLjctOC44LTkuNC0yMS4zLTE1LjItMzUuMi0xNS4yLTI2LjYgMC00OC4yIDIxLjYtNDguMiA0OC4yIDAgMy44LjQgNy41IDEuMyAxMS00MC4xLTItNzUuNi0yMS4yLTk5LjQtNTAuNC00LjEgNy4xLTYuNSAxNS40LTYuNSAyNC4yIDAgMTYuNyA4LjUgMzEuNSAyMS41IDQwLjEtNy45LS4yLTE1LjMtMi40LTIxLjgtNnYuNmMwIDIzLjQgMTYuNiA0Mi44IDM4LjcgNDcuMy00IDEuMS04LjMgMS43LTEyLjcgMS43LTMuMSAwLTYuMS0uMy05LjEtLjkgNi4xIDE5LjIgMjMuOSAzMy4xIDQ1IDMzLjUtMTYuNSAxMi45LTM3LjMgMjAuNi01OS45I
1DIwLjYtMy45IDAtNy43LS4yLTExLjUtLjcgMjEuMSAxMy44IDQ2LjUgMjEuOCA3My43IDIxLjgiIHN0eWxlPSJmaWxsOiNmZmYiLz48L3N2Zz4="},19794:function(e){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0LjI2NCAyNC4yNjRoLjc4MWE1LjIyNyA1LjIyNyAwIDAgMCA1LjIzOS01LjIzOHYtMS4wNDV6IiBmaWxsPSIjZmZmIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjwvZz48L3N2Zz4="}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.