@dcodegroup-au/page-builder 0.4.0 → 0.4.1
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.
package/dist/page-builder.es.js
CHANGED
|
@@ -37530,7 +37530,7 @@ const An = /* @__PURE__ */ X0(A9e, [["render", S9e]]), $9e = { class: "rounded-x
|
|
|
37530
37530
|
])),
|
|
37531
37531
|
(s(), Ze(Q1(p.value), {
|
|
37532
37532
|
class: "min-h-[90vh]",
|
|
37533
|
-
key: (
|
|
37533
|
+
key: `${(C = be(c)) == null ? void 0 : C.sectionIndex} - ${(M = be(c)) == null ? void 0 : M.componentIndex}`,
|
|
37534
37534
|
data: be(c),
|
|
37535
37535
|
sites: t.sites,
|
|
37536
37536
|
onUpdate: m
|
package/dist/page-builder.umd.js
CHANGED
|
@@ -58,7 +58,7 @@ ${Fr(this.code(e,r))}
|
|
|
58
58
|
`,{[xt.blotName]:r}),l.insert(i)),new be);const o=this.quill.root.ownerDocument.createElement("div");return o.classList.add(xt.className),o.innerHTML=Cme(this.options.hljs,r,e),Co(this.quill.scroll,o,[(l,i)=>{const a=er.value(l);return a?i.compose(new be().retain(i.length(),{[wn.blotName]:a})):i}],[(l,i)=>l.data.split(`
|
|
59
59
|
`).reduce((a,c,s)=>(s!==0&&a.insert(`
|
|
60
60
|
`,{[xt.blotName]:r}),a.insert(c)),i)],new WeakMap)}}Ls.DEFAULTS={hljs:window.hljs,interval:1e3,languages:[{key:"plain",label:"Plain"},{key:"bash",label:"Bash"},{key:"cpp",label:"C++"},{key:"cs",label:"C#"},{key:"css",label:"CSS"},{key:"diff",label:"Diff"},{key:"xml",label:"HTML/XML"},{key:"java",label:"Java"},{key:"javascript",label:"JavaScript"},{key:"markdown",label:"Markdown"},{key:"php",label:"PHP"},{key:"python",label:"Python"},{key:"ruby",label:"Ruby"},{key:"sql",label:"SQL"}]};const ar=class ar extends pt{static create(e){const r=super.create();return e?r.setAttribute("data-row",e):r.setAttribute("data-row",_o()),r}static formats(e){if(e.hasAttribute("data-row"))return e.getAttribute("data-row")}cellOffset(){return this.parent?this.parent.children.indexOf(this):-1}format(e,r){e===ar.blotName&&r?this.domNode.setAttribute("data-row",r):super.format(e,r)}row(){return this.parent}rowOffset(){return this.row()?this.row().rowOffset():-1}table(){return this.row()&&this.row().table()}};Be(ar,"blotName","table"),Be(ar,"tagName","TD");let Kt=ar;class gn extends Wn{checkMerge(){if(super.checkMerge()&&this.next.children.head!=null){const e=this.children.head.formats(),r=this.children.tail.formats(),o=this.next.children.head.formats(),l=this.next.children.tail.formats();return e.table===r.table&&e.table===o.table&&e.table===l.table}return!1}optimize(e){super.optimize(e),this.children.forEach(r=>{if(r.next==null)return;const o=r.formats(),l=r.next.formats();if(o.table!==l.table){const i=this.splitAfter(r);i&&i.optimize(),this.prev&&this.prev.optimize()}})}rowOffset(){return this.parent?this.parent.children.indexOf(this):-1}table(){return this.parent&&this.parent.parent}}Be(gn,"blotName","table-row"),Be(gn,"tagName","TR");class sn extends Wn{}Be(sn,"blotName","table-body"),Be(sn,"tagName","TBODY");class k1 extends Wn{balanceCells(){const e=this.descendants(gn),r=e.reduce((o,l)=>Math.max(l.children.length,o),0);e.forEach(o=>{new Array(r-o.children.length).fill(0).forEach(()=>{let l;o.children.head!=null&&(l=Kt.formats(o.children.head.domNode));const i=this.scroll.create(Kt.blotName,l);o.appendChild(i),i.optimize()})})}cells(e){return this.rows().map(r=>r.children.at(e))}deleteColumn(e){const[r]=this.descendant(sn);r==null||r.children.head==null||r.children.forEach(o=>{const l=o.children.at(e);l!=null&&l.remove()})}insertColumn(e){const[r]=this.descendant(sn);r==null||r.children.head==null||r.children.forEach(o=>{const l=o.children.at(e),i=Kt.formats(o.children.head.domNode),a=this.scroll.create(Kt.blotName,i);o.insertBefore(a,l)})}insertRow(e){const[r]=this.descendant(sn);if(r==null||r.children.head==null)return;const o=_o(),l=this.scroll.create(gn.blotName);r.children.head.children.forEach(()=>{const a=this.scroll.create(Kt.blotName,o);l.appendChild(a)});const i=r.children.at(e);r.insertBefore(l,i)}rows(){const e=this.children.head;return e==null?[]:e.children.map(r=>r)}}Be(k1,"blotName","table-container"),Be(k1,"tagName","TABLE"),k1.allowedChildren=[sn],sn.requiredContainer=k1,sn.allowedChildren=[gn],gn.requiredContainer=sn,gn.allowedChildren=[Kt],Kt.requiredContainer=gn;function _o(){return`row-${Math.random().toString(36).slice(2,6)}`}class Bme extends Wt{static register(){ie.register(Kt),ie.register(gn),ie.register(sn),ie.register(k1)}constructor(){super(...arguments),this.listenBalanceCells()}balanceTables(){this.quill.scroll.descendants(k1).forEach(e=>{e.balanceCells()})}deleteColumn(){const[e,,r]=this.getTable();r!=null&&(e.deleteColumn(r.cellOffset()),this.quill.update(ie.sources.USER))}deleteRow(){const[,e]=this.getTable();e!=null&&(e.remove(),this.quill.update(ie.sources.USER))}deleteTable(){const[e]=this.getTable();if(e==null)return;const r=e.offset();e.remove(),this.quill.update(ie.sources.USER),this.quill.setSelection(r,ie.sources.SILENT)}getTable(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.quill.getSelection();if(e==null)return[null,null,null,-1];const[r,o]=this.quill.getLine(e.index);if(r==null||r.statics.blotName!==Kt.blotName)return[null,null,null,-1];const l=r.parent;return[l.parent.parent,l,r,o]}insertColumn(e){const r=this.quill.getSelection();if(!r)return;const[o,l,i]=this.getTable(r);if(i==null)return;const a=i.cellOffset();o.insertColumn(a+e),this.quill.update(ie.sources.USER);let c=l.rowOffset();e===0&&(c+=1),this.quill.setSelection(r.index+c,r.length,ie.sources.SILENT)}insertColumnLeft(){this.insertColumn(0)}insertColumnRight(){this.insertColumn(1)}insertRow(e){const r=this.quill.getSelection();if(!r)return;const[o,l,i]=this.getTable(r);if(i==null)return;const a=l.rowOffset();o.insertRow(a+e),this.quill.update(ie.sources.USER),e>0?this.quill.setSelection(r,ie.sources.SILENT):this.quill.setSelection(r.index+l.children.length,r.length,ie.sources.SILENT)}insertRowAbove(){this.insertRow(0)}insertRowBelow(){this.insertRow(1)}insertTable(e,r){const o=this.quill.getSelection();if(o==null)return;const l=new Array(e).fill(0).reduce(i=>{const a=new Array(r).fill(`
|
|
61
|
-
`).join("");return i.insert(a,{table:_o()})},new be().retain(o.index));this.quill.updateContents(l,ie.sources.USER),this.quill.setSelection(o.index,ie.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on(ie.events.SCROLL_OPTIMIZE,e=>{e.some(r=>["TD","TR","TBODY","TABLE"].includes(r.target.tagName)?(this.quill.once(ie.events.TEXT_CHANGE,(o,l,i)=>{i===ie.sources.USER&&this.balanceTables()}),!0):!1)})}}const Ts=pn("quill:toolbar");class So extends Wt{constructor(e,r){var o,l;if(super(e,r),Array.isArray(this.options.container)){const i=document.createElement("div");i.setAttribute("role","toolbar"),vme(i,this.options.container),(l=(o=e.container)==null?void 0:o.parentNode)==null||l.insertBefore(i,e.container),this.container=i}else typeof this.options.container=="string"?this.container=document.querySelector(this.options.container):this.container=this.options.container;if(!(this.container instanceof HTMLElement)){Ts.error("Container required for toolbar",this.options);return}this.container.classList.add("ql-toolbar"),this.controls=[],this.handlers={},this.options.handlers&&Object.keys(this.options.handlers).forEach(i=>{var c;const a=(c=this.options.handlers)==null?void 0:c[i];a&&this.addHandler(i,a)}),Array.from(this.container.querySelectorAll("button, select")).forEach(i=>{this.attach(i)}),this.quill.on(ie.events.EDITOR_CHANGE,()=>{const[i]=this.quill.selection.getRange();this.update(i)})}addHandler(e,r){this.handlers[e]=r}attach(e){let r=Array.from(e.classList).find(l=>l.indexOf("ql-")===0);if(!r)return;if(r=r.slice(3),e.tagName==="BUTTON"&&e.setAttribute("type","button"),this.handlers[r]==null&&this.quill.scroll.query(r)==null){Ts.warn("ignoring attaching to nonexistent format",r,e);return}const o=e.tagName==="SELECT"?"change":"click";e.addEventListener(o,l=>{let i;if(e.tagName==="SELECT"){if(e.selectedIndex<0)return;const c=e.options[e.selectedIndex];c.hasAttribute("selected")?i=!1:i=c.value||!1}else e.classList.contains("ql-active")?i=!1:i=e.value||!e.hasAttribute("value"),l.preventDefault();this.quill.focus();const[a]=this.quill.selection.getRange();if(this.handlers[r]!=null)this.handlers[r].call(this,i);else if(this.quill.scroll.query(r).prototype instanceof _t){if(i=prompt(`Enter ${r}`),!i)return;this.quill.updateContents(new be().retain(a.index).delete(a.length).insert({[r]:i}),ie.sources.USER)}else this.quill.format(r,i,ie.sources.USER);this.update(a)}),this.controls.push([r,e])}update(e){const r=e==null?{}:this.quill.getFormat(e);this.controls.forEach(o=>{const[l,i]=o;if(i.tagName==="SELECT"){let a=null;if(e==null)a=null;else if(r[l]==null)a=i.querySelector("option[selected]");else if(!Array.isArray(r[l])){let c=r[l];typeof c=="string"&&(c=c.replace(/"/g,'\\"')),a=i.querySelector(`option[value="${c}"]`)}a==null?(i.value="",i.selectedIndex=-1):a.selected=!0}else if(e==null)i.classList.remove("ql-active"),i.setAttribute("aria-pressed","false");else if(i.hasAttribute("value")){const a=r[l],c=a===i.getAttribute("value")||a!=null&&a.toString()===i.getAttribute("value")||a==null&&!i.getAttribute("value");i.classList.toggle("ql-active",c),i.setAttribute("aria-pressed",c.toString())}else{const a=r[l]!=null;i.classList.toggle("ql-active",a),i.setAttribute("aria-pressed",a.toString())}})}}So.DEFAULTS={};function Hs(n,e,r){const o=document.createElement("button");o.setAttribute("type","button"),o.classList.add(`ql-${e}`),o.setAttribute("aria-pressed","false"),r!=null?(o.value=r,o.setAttribute("aria-label",`${e}: ${r}`)):o.setAttribute("aria-label",e),n.appendChild(o)}function vme(n,e){Array.isArray(e[0])||(e=[e]),e.forEach(r=>{const o=document.createElement("span");o.classList.add("ql-formats"),r.forEach(l=>{if(typeof l=="string")Hs(o,l);else{const i=Object.keys(l)[0],a=l[i];Array.isArray(a)?Eme(o,i,a):Hs(o,i,a)}}),n.appendChild(o)})}function Eme(n,e,r){const o=document.createElement("select");o.classList.add(`ql-${e}`),r.forEach(l=>{const i=document.createElement("option");l!==!1?i.setAttribute("value",String(l)):i.setAttribute("selected","selected"),o.appendChild(i)}),n.appendChild(o)}So.DEFAULTS={container:null,handlers:{clean(){const n=this.quill.getSelection();if(n!=null)if(n.length===0){const e=this.quill.getFormat();Object.keys(e).forEach(r=>{this.quill.scroll.query(r,Me.INLINE)!=null&&this.quill.format(r,!1,ie.sources.USER)})}else this.quill.removeFormat(n.index,n.length,ie.sources.USER)},direction(n){const{align:e}=this.quill.getFormat();n==="rtl"&&e==null?this.quill.format("align","right",ie.sources.USER):!n&&e==="right"&&this.quill.format("align",!1,ie.sources.USER),this.quill.format("direction",n,ie.sources.USER)},indent(n){const e=this.quill.getSelection(),r=this.quill.getFormat(e),o=parseInt(r.indent||0,10);if(n==="+1"||n==="-1"){let l=n==="+1"?1:-1;r.direction==="rtl"&&(l*=-1),this.quill.format("indent",o+l,ie.sources.USER)}},link(n){n===!0&&(n=prompt("Enter link URL:")),this.quill.format("link",n,ie.sources.USER)},list(n){const e=this.quill.getSelection(),r=this.quill.getFormat(e);n==="check"?r.list==="checked"||r.list==="unchecked"?this.quill.format("list",!1,ie.sources.USER):this.quill.format("list","unchecked",ie.sources.USER):this.quill.format("list",n,ie.sources.USER)}}};const yme='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>',bme='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>',Mme='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>',Nme='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>',Vme='<svg viewbox="0 0 18 18"><g class="ql-fill ql-color-label"><polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/><path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>',Ame='<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>',_me='<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"/><path class="ql-stroke" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"/></svg>',Sme='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>',Os='<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>',nr={align:{"":yme,center:bme,right:Mme,justify:Nme},background:Vme,blockquote:Ame,bold:_me,clean:Sme,code:Os,"code-block":Os,color:'<svg viewbox="0 0 18 18"><line class="ql-color-label ql-stroke ql-transparent" x1="3" x2="15" y1="15" y2="15"/><polyline class="ql-stroke" points="5.5 11 9 3 12.5 11"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="9" y2="9"/></svg>',direction:{"":'<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"/><line class="ql-stroke ql-fill" x1="15" x2="11" y1="4" y2="4"/><path class="ql-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"/><rect class="ql-fill" height="11" width="1" x="11" y="4"/><rect class="ql-fill" height="11" width="1" x="13" y="4"/></svg>',rtl:'<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"/><line class="ql-stroke ql-fill" x1="9" x2="5" y1="4" y2="4"/><path class="ql-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"/><rect class="ql-fill" height="11" width="1" x="5" y="4"/><rect class="ql-fill" height="11" width="1" x="7" y="4"/></svg>'},formula:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z"/><rect class="ql-fill" height="1.6" rx="0.8" ry="0.8" width="5" x="5.15" y="6.2"/><path class="ql-fill" d="M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z"/></svg>',header:{1:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z"/></svg>',2:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',3:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',4:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm7.05371,7.96582v.38477c0,.39648-.165.60547-.46191.60547h-.47314v1.29785a.54085.54085,0,0,1-.605.60547h-.69336a.54085.54085,0,0,1-.605-.60547V12.95605H11.333a.5412.5412,0,0,1-.60547-.60547v-.15332a1.199,1.199,0,0,1,.22021-.748l2.56348-4.05957a.7819.7819,0,0,1,.72607-.39648h1.27637a.54085.54085,0,0,1,.605.60547v3.7627h.33008A.54055.54055,0,0,1,17.05371,11.96582ZM14.28125,8.7207h-.022a4.18969,4.18969,0,0,1-.38525.81348l-1.188,1.80469v.02246h1.5293V9.60059A7.04058,7.04058,0,0,1,14.28125,8.7207Z"/></svg>',5:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.74023,12.18555a2.75131,2.75131,0,0,1-2.91553,2.80566,3.908,3.908,0,0,1-2.25537-.68164.54809.54809,0,0,1-.13184-.8252L11.73438,13c.209-.34082.48389-.36328.8252-.1543a2.23757,2.23757,0,0,0,1.1001.33008,1.01827,1.01827,0,0,0,1.1001-.96777c0-.61621-.53906-.97949-1.25439-.97949a2.15554,2.15554,0,0,0-.64893.09961,1.15209,1.15209,0,0,1-.814.01074l-.12109-.04395a.64116.64116,0,0,1-.45117-.71484l.231-3.00391a.56666.56666,0,0,1,.62744-.583H15.541a.54085.54085,0,0,1,.605.60547v.43945a.54085.54085,0,0,1-.605.60547H13.41748l-.04395.72559a1.29306,1.29306,0,0,1-.04395.30859h.022a2.39776,2.39776,0,0,1,.57227-.07715A2.53266,2.53266,0,0,1,16.74023,12.18555ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',6:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M14.51758,9.64453a1.85627,1.85627,0,0,0-1.24316.38477H13.252a1.73532,1.73532,0,0,1,1.72754-1.4082,2.66491,2.66491,0,0,1,.5498.06641c.35254.05469.57227.01074.70508-.40723l.16406-.5166a.53393.53393,0,0,0-.373-.75977,4.83723,4.83723,0,0,0-1.17773-.14258c-2.43164,0-3.7627,2.17773-3.7627,4.43359,0,2.47559,1.60645,3.69629,3.19043,3.69629A2.70585,2.70585,0,0,0,16.96,12.19727,2.43861,2.43861,0,0,0,14.51758,9.64453Zm-.23047,3.58691c-.67187,0-1.22168-.81445-1.22168-1.45215,0-.47363.30762-.583.72559-.583.96875,0,1.27734.59375,1.27734,1.12207A.82182.82182,0,0,1,14.28711,13.23145ZM10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Z"/></svg>'},italic:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="13" y1="4" y2="4"/><line class="ql-stroke" x1="5" x2="11" y1="14" y2="14"/><line class="ql-stroke" x1="8" x2="10" y1="14" y2="4"/></svg>',image:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="10" width="12" x="3" y="4"/><circle class="ql-fill" cx="6" cy="7" r="1"/><polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"/></svg>',indent:{"+1":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"/></svg>',"-1":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="5 7 5 11 3 9 5 7"/></svg>'},link:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"/><path class="ql-even ql-stroke" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"/><path class="ql-even ql-stroke" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"/></svg>',list:{bullet:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="6" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="6" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="6" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="3" y1="4" y2="4"/><line class="ql-stroke" x1="3" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="3" y1="14" y2="14"/></svg>',check:'<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="9" x2="15" y1="4" y2="4"/><polyline class="ql-stroke" points="3 4 4 5 6 3"/><line class="ql-stroke" x1="9" x2="15" y1="14" y2="14"/><polyline class="ql-stroke" points="3 14 4 15 6 13"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="3 9 4 10 6 8"/></svg>',ordered:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="7" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="7" x2="15" y1="14" y2="14"/><line class="ql-stroke ql-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"/><path class="ql-fill" d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"/><path class="ql-stroke ql-thin" d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"/><path class="ql-stroke ql-thin" d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"/></svg>'},script:{sub:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z"/><path class="ql-fill" d="M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z"/></svg>',super:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z"/><path class="ql-fill" d="M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z"/></svg>'},strike:'<svg viewbox="0 0 18 18"><line class="ql-stroke ql-thin" x1="15.5" x2="2.5" y1="8.5" y2="9.5"/><path class="ql-fill" d="M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z"/><path class="ql-fill" d="M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z"/></svg>',table:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="2" width="3" x="5" y="5"/><rect class="ql-fill" height="2" width="4" x="9" y="5"/><g class="ql-fill ql-transparent"><rect height="2" width="3" x="5" y="8"/><rect height="2" width="4" x="9" y="8"/><rect height="2" width="3" x="5" y="11"/><rect height="2" width="4" x="9" y="11"/></g></svg>',underline:'<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="12" x="3" y="15"/></svg>',video:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="12" width="1" x="5" y="3"/><rect class="ql-fill" height="12" width="1" x="12" y="3"/><rect class="ql-fill" height="2" width="8" x="5" y="8"/><rect class="ql-fill" height="1" width="3" x="3" y="5"/><rect class="ql-fill" height="1" width="3" x="3" y="7"/><rect class="ql-fill" height="1" width="3" x="3" y="10"/><rect class="ql-fill" height="1" width="3" x="3" y="12"/><rect class="ql-fill" height="1" width="3" x="12" y="5"/><rect class="ql-fill" height="1" width="3" x="12" y="7"/><rect class="ql-fill" height="1" width="3" x="12" y="10"/><rect class="ql-fill" height="1" width="3" x="12" y="12"/></svg>'},$me='<svg viewbox="0 0 18 18"><polygon class="ql-stroke" points="7 11 9 13 11 11 7 11"/><polygon class="ql-stroke" points="7 7 9 5 11 7 7 7"/></svg>';let Rs=0;function Ds(n,e){n.setAttribute(e,`${n.getAttribute(e)!=="true"}`)}class Qr{constructor(e){this.select=e,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",()=>{this.togglePicker()}),this.label.addEventListener("keydown",r=>{switch(r.key){case"Enter":this.togglePicker();break;case"Escape":this.escape(),r.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}togglePicker(){this.container.classList.toggle("ql-expanded"),Ds(this.label,"aria-expanded"),Ds(this.options,"aria-hidden")}buildItem(e){const r=document.createElement("span");r.tabIndex="0",r.setAttribute("role","button"),r.classList.add("ql-picker-item");const o=e.getAttribute("value");return o&&r.setAttribute("data-value",o),e.textContent&&r.setAttribute("data-label",e.textContent),r.addEventListener("click",()=>{this.selectItem(r,!0)}),r.addEventListener("keydown",l=>{switch(l.key){case"Enter":this.selectItem(r,!0),l.preventDefault();break;case"Escape":this.escape(),l.preventDefault();break}}),r}buildLabel(){const e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=$me,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}buildOptions(){const e=document.createElement("span");e.classList.add("ql-picker-options"),e.setAttribute("aria-hidden","true"),e.tabIndex="-1",e.id=`ql-picker-options-${Rs}`,Rs+=1,this.label.setAttribute("aria-controls",e.id),this.options=e,Array.from(this.select.options).forEach(r=>{const o=this.buildItem(r);e.appendChild(o),r.selected===!0&&this.selectItem(o)}),this.container.appendChild(e)}buildPicker(){Array.from(this.select.attributes).forEach(e=>{this.container.setAttribute(e.name,e.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}escape(){this.close(),setTimeout(()=>this.label.focus(),1)}close(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}selectItem(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const o=this.container.querySelector(".ql-selected");e!==o&&(o!=null&&o.classList.remove("ql-selected"),e!=null&&(e.classList.add("ql-selected"),this.select.selectedIndex=Array.from(e.parentNode.children).indexOf(e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),r&&(this.select.dispatchEvent(new Event("change")),this.close())))}update(){let e;if(this.select.selectedIndex>-1){const o=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(o)}else this.selectItem(null);const r=e!=null&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",r)}}class Ps extends Qr{constructor(e,r){super(e),this.label.innerHTML=r,this.container.classList.add("ql-color-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).slice(0,7).forEach(o=>{o.classList.add("ql-primary")})}buildItem(e){const r=super.buildItem(e);return r.style.backgroundColor=e.getAttribute("value")||"",r}selectItem(e,r){super.selectItem(e,r);const o=this.label.querySelector(".ql-color-label"),l=e&&e.getAttribute("data-value")||"";o&&(o.tagName==="line"?o.style.stroke=l:o.style.fill=l)}}class Is extends Qr{constructor(e,r){super(e),this.container.classList.add("ql-icon-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).forEach(o=>{o.innerHTML=r[o.getAttribute("data-value")||""]}),this.defaultItem=this.container.querySelector(".ql-selected"),this.selectItem(this.defaultItem)}selectItem(e,r){super.selectItem(e,r);const o=e||this.defaultItem;if(o!=null){if(this.label.innerHTML===o.innerHTML)return;this.label.innerHTML=o.innerHTML}}}const jme=n=>{const{overflowY:e}=getComputedStyle(n,null);return e!=="visible"&&e!=="clip"};class Fs{constructor(e,r){this.quill=e,this.boundsContainer=r||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,jme(this.quill.root)&&this.quill.root.addEventListener("scroll",()=>{this.root.style.marginTop=`${-1*this.quill.root.scrollTop}px`}),this.hide()}hide(){this.root.classList.add("ql-hidden")}position(e){const r=e.left+e.width/2-this.root.offsetWidth/2,o=e.bottom+this.quill.root.scrollTop;this.root.style.left=`${r}px`,this.root.style.top=`${o}px`,this.root.classList.remove("ql-flip");const l=this.boundsContainer.getBoundingClientRect(),i=this.root.getBoundingClientRect();let a=0;if(i.right>l.right&&(a=l.right-i.right,this.root.style.left=`${r+a}px`),i.left<l.left&&(a=l.left-i.left,this.root.style.left=`${r+a}px`),i.bottom>l.bottom){const c=i.bottom-i.top,s=e.bottom-e.top+c;this.root.style.top=`${o-s}px`,this.root.classList.add("ql-flip")}return a}show(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}const Lme=[!1,"center","right","justify"],Tme=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],Hme=[!1,"serif","monospace"],Ome=["1","2","3",!1],Rme=["small",!1,"large","huge"];class rr extends f1{constructor(e,r){super(e,r);const o=l=>{if(!document.body.contains(e.root)){document.body.removeEventListener("click",o);return}this.tooltip!=null&&!this.tooltip.root.contains(l.target)&&document.activeElement!==this.tooltip.textbox&&!this.quill.hasFocus()&&this.tooltip.hide(),this.pickers!=null&&this.pickers.forEach(i=>{i.container.contains(l.target)||i.close()})};e.emitter.listenDOM("click",document.body,o)}addModule(e){const r=super.addModule(e);return e==="toolbar"&&this.extendToolbar(r),r}buildButtons(e,r){Array.from(e).forEach(o=>{(o.getAttribute("class")||"").split(/\s+/).forEach(i=>{if(i.startsWith("ql-")&&(i=i.slice(3),r[i]!=null))if(i==="direction")o.innerHTML=r[i][""]+r[i].rtl;else if(typeof r[i]=="string")o.innerHTML=r[i];else{const a=o.value||"";a!=null&&r[i][a]&&(o.innerHTML=r[i][a])}})})}buildPickers(e,r){this.pickers=Array.from(e).map(l=>{if(l.classList.contains("ql-align")&&(l.querySelector("option")==null&&or(l,Lme),typeof r.align=="object"))return new Is(l,r.align);if(l.classList.contains("ql-background")||l.classList.contains("ql-color")){const i=l.classList.contains("ql-background")?"background":"color";return l.querySelector("option")==null&&or(l,Tme,i==="background"?"#ffffff":"#000000"),new Ps(l,r[i])}return l.querySelector("option")==null&&(l.classList.contains("ql-font")?or(l,Hme):l.classList.contains("ql-header")?or(l,Ome):l.classList.contains("ql-size")&&or(l,Rme)),new Qr(l)});const o=()=>{this.pickers.forEach(l=>{l.update()})};this.quill.on(ye.events.EDITOR_CHANGE,o)}}rr.DEFAULTS=Nn({},f1.DEFAULTS,{modules:{toolbar:{handlers:{formula(){this.quill.theme.tooltip.edit("formula")},image(){let n=this.container.querySelector("input.ql-image[type=file]");n==null&&(n=document.createElement("input"),n.setAttribute("type","file"),n.setAttribute("accept",this.quill.uploader.options.mimetypes.join(", ")),n.classList.add("ql-image"),n.addEventListener("change",()=>{const e=this.quill.getSelection(!0);this.quill.uploader.upload(e,n.files),n.value=""}),this.container.appendChild(n)),n.click()},video(){this.quill.theme.tooltip.edit("video")}}}}});class Us extends Fs{constructor(e,r){super(e,r),this.textbox=this.root.querySelector('input[type="text"]'),this.listen()}listen(){this.textbox.addEventListener("keydown",e=>{e.key==="Enter"?(this.save(),e.preventDefault()):e.key==="Escape"&&(this.cancel(),e.preventDefault())})}cancel(){this.hide(),this.restoreFocus()}edit(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),this.textbox==null)return;r!=null?this.textbox.value=r:e!==this.root.getAttribute("data-mode")&&(this.textbox.value="");const o=this.quill.getBounds(this.quill.selection.savedRange);o!=null&&this.position(o),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute(`data-${e}`)||""),this.root.setAttribute("data-mode",e)}restoreFocus(){this.quill.focus({preventScroll:!0})}save(){let{value:e}=this.textbox;switch(this.root.getAttribute("data-mode")){case"link":{const{scrollTop:r}=this.quill.root;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,ye.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,ye.sources.USER)),this.quill.root.scrollTop=r;break}case"video":e=Dme(e);case"formula":{if(!e)break;const r=this.quill.getSelection(!0);if(r!=null){const o=r.index+r.length;this.quill.insertEmbed(o,this.root.getAttribute("data-mode"),e,ye.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(o+1," ",ye.sources.USER),this.quill.setSelection(o+2,ye.sources.USER)}break}}this.textbox.value="",this.hide()}}function Dme(n){let e=n.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||n.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return e?`${e[1]||"https"}://www.youtube.com/embed/${e[2]}?showinfo=0`:(e=n.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?`${e[1]||"https"}://player.vimeo.com/video/${e[2]}/`:n}function or(n,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;e.forEach(o=>{const l=document.createElement("option");o===r?l.setAttribute("selected","selected"):l.setAttribute("value",String(o)),n.appendChild(l)})}const Pme=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class zs extends Us{constructor(e,r){super(e,r),this.quill.on(ye.events.EDITOR_CHANGE,(o,l,i,a)=>{if(o===ye.events.SELECTION_CHANGE)if(l!=null&&l.length>0&&a===ye.sources.USER){this.show(),this.root.style.left="0px",this.root.style.width="",this.root.style.width=`${this.root.offsetWidth}px`;const c=this.quill.getLines(l.index,l.length);if(c.length===1){const s=this.quill.getBounds(l);s!=null&&this.position(s)}else{const s=c[c.length-1],d=this.quill.getIndex(s),u=Math.min(s.length()-1,l.index+l.length-d),m=this.quill.getBounds(new Gn(d,u));m!=null&&this.position(m)}}else document.activeElement!==this.textbox&&this.quill.hasFocus()&&this.hide()})}listen(){super.listen(),this.root.querySelector(".ql-close").addEventListener("click",()=>{this.root.classList.remove("ql-editing")}),this.quill.on(ye.events.SCROLL_OPTIMIZE,()=>{setTimeout(()=>{if(this.root.classList.contains("ql-hidden"))return;const e=this.quill.getSelection();if(e!=null){const r=this.quill.getBounds(e);r!=null&&this.position(r)}},1)})}cancel(){this.show()}position(e){const r=super.position(e),o=this.root.querySelector(".ql-tooltip-arrow");return o.style.marginLeft="",r!==0&&(o.style.marginLeft=`${-1*r-o.offsetWidth/2}px`),r}}Be(zs,"TEMPLATE",['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""));class qs extends rr{constructor(e,r){r.modules.toolbar!=null&&r.modules.toolbar.container==null&&(r.modules.toolbar.container=Pme),super(e,r),this.quill.container.classList.add("ql-bubble")}extendToolbar(e){this.tooltip=new zs(this.quill,this.options.bounds),e.container!=null&&(this.tooltip.root.appendChild(e.container),this.buildButtons(e.container.querySelectorAll("button"),nr),this.buildPickers(e.container.querySelectorAll("select"),nr))}}qs.DEFAULTS=Nn({},rr.DEFAULTS,{modules:{toolbar:{handlers:{link(n){n?this.quill.theme.tooltip.edit():this.quill.format("link",!1,ie.sources.USER)}}}}});const Ime=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class Gs extends Us{constructor(){super(...arguments);Be(this,"preview",this.root.querySelector("a.ql-preview"))}listen(){super.listen(),this.root.querySelector("a.ql-action").addEventListener("click",r=>{this.root.classList.contains("ql-editing")?this.save():this.edit("link",this.preview.textContent),r.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",r=>{if(this.linkRange!=null){const o=this.linkRange;this.restoreFocus(),this.quill.formatText(o,"link",!1,ye.sources.USER),delete this.linkRange}r.preventDefault(),this.hide()}),this.quill.on(ye.events.SELECTION_CHANGE,(r,o,l)=>{if(r!=null){if(r.length===0&&l===ye.sources.USER){const[i,a]=this.quill.scroll.descendant(_n,r.index);if(i!=null){this.linkRange=new Gn(r.index-a,i.length());const c=_n.formats(i.domNode);this.preview.textContent=c,this.preview.setAttribute("href",c),this.show();const s=this.quill.getBounds(this.linkRange);s!=null&&this.position(s);return}}else delete this.linkRange;this.hide()}})}show(){super.show(),this.root.removeAttribute("data-mode")}}Be(Gs,"TEMPLATE",['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""));class Ws extends rr{constructor(e,r){r.modules.toolbar!=null&&r.modules.toolbar.container==null&&(r.modules.toolbar.container=Ime),super(e,r),this.quill.container.classList.add("ql-snow")}extendToolbar(e){e.container!=null&&(e.container.classList.add("ql-snow"),this.buildButtons(e.container.querySelectorAll("button"),nr),this.buildPickers(e.container.querySelectorAll("select"),nr),this.tooltip=new Gs(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"k",shortKey:!0},(r,o)=>{e.handlers.link.call(e,!o.format.link)}))}}Ws.DEFAULTS=Nn({},rr.DEFAULTS,{modules:{toolbar:{handlers:{link(n){if(n){const e=this.quill.getSelection();if(e==null||e.length===0)return;let r=this.quill.getText(e);/^\S+@\S+\.\S+$/.test(r)&&r.indexOf("mailto:")!==0&&(r=`mailto:${r}`);const{tooltip:o}=this.quill.theme;o.edit("link",r)}else this.quill.format("link",!1,ie.sources.USER)}}}}}),ie.register({"attributors/attribute/direction":ms,"attributors/class/align":ds,"attributors/class/background":Ahe,"attributors/class/color":Vhe,"attributors/class/direction":ps,"attributors/class/font":gs,"attributors/class/size":xs,"attributors/style/align":us,"attributors/style/background":fo,"attributors/style/color":po,"attributors/style/direction":fs,"attributors/style/font":ks,"attributors/style/size":Cs},!0),ie.register({"formats/align":ds,"formats/direction":ps,"formats/indent":xme,"formats/background":fo,"formats/color":po,"formats/font":gs,"formats/size":xs,"formats/blockquote":Eo,"formats/code-block":xt,"formats/header":yo,"formats/list":Y1,"formats/bold":J1,"formats/code":wo,"formats/italic":bo,"formats/link":_n,"formats/script":Mo,"formats/strike":No,"formats/underline":Vo,"formats/formula":Kr,"formats/image":Ao,"formats/video":Zr,"modules/syntax":Ls,"modules/table":Bme,"modules/toolbar":So,"themes/bubble":qs,"themes/snow":Ws,"ui/icons":nr,"ui/picker":Qr,"ui/icon-picker":Is,"ui/color-picker":Ps,"ui/tooltip":Fs},!0);const Fme={name:"QuillEditor",props:{modelValue:{type:String,default:""},options:{type:Object,default:()=>({theme:"snow",placeholder:"Start typing...",modules:{toolbar:[[{font:[]},{size:[]}],["bold","italic","underline","strike"],[{color:[]},{background:[]}],[{script:"sub"},{script:"super"}],[{header:1},{header:2},"blockquote","code-block"],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"}],[{direction:"rtl"},{align:[]}],["link","image","video","formula"],["clean"]]}})}},emits:["update:modelValue"],setup(n,{emit:e}){const r=t.ref(null);let o=null;return t.onMounted(()=>{o=new ie(r.value,n.options),o.root.innerHTML=n.modelValue,o.on("text-change",()=>{e("update:modelValue",o.root.innerHTML)})}),t.watch(()=>n.modelValue,l=>{o&&o.root.innerHTML!==l&&(o.root.innerHTML=l)}),t.onBeforeUnmount(()=>{o=null}),{editorContainer:r}}},Ume={class:"q-editor"},zme={ref:"editorContainer"};function qme(n,e,r,o,l,i){return t.openBlock(),t.createElementBlock("div",Ume,[t.createElementVNode("div",zme,null,512)])}const lr=n1(Fme,[["render",qme]]),Gme={class:"rounded-xl bg-gray-50 px-6 py-5"},Wme={class:"text-lg font-semibold text-gray-900 border-b border-gray-200 pb-4"},Xme={class:"flex flex-col gap-4 rounded-xl bg-gray-200 px-6 py-5"},Kme={key:0,class:"rounded-xl bg-gray-200 mt-4"},Zme={__name:"Paragraph",props:{...un},emits:["update"],setup(n,{emit:e}){const r=t.inject("VFileUpload",Pn),o=n,l=t.ref(o.data.component),i=t.computed(()=>{var s;return((s=l.value.paragraph)==null?void 0:s.replace(/<[^>]*>/g," ").trim()).split(/\s+/).filter(d=>d.length>0).length});return(a,c)=>(t.openBlock(),t.createElementBlock("div",Gme,[t.createElementVNode("p",Wme,t.toDisplayString(l.value.name),1),t.createElementVNode("div",Xme,[c[4]||(c[4]=t.createElementVNode("p",{class:"text-lg font-semibold text-gray-900"}," Description ",-1)),l.value.hasOwnProperty("eyebrow_heading")?(t.openBlock(),t.createBlock(et,{key:0,"is-vertical":"",field:"eyebrow_heading","label-text":"Eyebrow heading *",class:"w-full mb-4",value:l.value.eyebrow_heading,limit:51},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":c[0]||(c[0]=s=>l.value.eyebrow_heading=s),name:"eyebrow_heading",type:"text",placeholder:"Eyebrow heading",maxlength:51,class:"border-1 border-solid border-gray-300 rounded-lg bg-white w-full"},null,512),[[t.vModelText,l.value.eyebrow_heading]])]),_:1},8,["value"])):t.createCommentVNode("",!0),l.value.hasOwnProperty("title")?(t.openBlock(),t.createBlock(et,{key:1,"is-vertical":"",field:"title","label-text":"Title *",class:"w-full mb-4",value:l.value.title,limit:51},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":c[1]||(c[1]=s=>l.value.title=s),name:"title",type:"text",placeholder:"Title",maxlength:51,class:"border-1 border-solid border-gray-300 rounded-lg bg-white w-full"},null,512),[[t.vModelText,l.value.title]])]),_:1},8,["value"])):t.createCommentVNode("",!0),t.createVNode(et,{"is-vertical":"",field:"description","label-text":"Description *",class:"w-full mb-4",value:i.value,"show-count":!0},{default:t.withCtx(()=>[t.createVNode(lr,{modelValue:l.value.paragraph,"onUpdate:modelValue":c[2]||(c[2]=s=>l.value.paragraph=s)},null,8,["modelValue"])]),_:1},8,["value"])]),l.value.hasOwnProperty("featured_image")?(t.openBlock(),t.createElementBlock("div",Kme,[t.createVNode(jt,{classes:"bg-gray-200",title:"Featured Image",supporting_text:"Recommended dimension: 1200*1060px"},{default:t.withCtx(()=>[t.createVNode(t.unref(r),{name:"image",height:"h-[395px]",modelValue:l.value.featured_image,"onUpdate:modelValue":c[3]||(c[3]=s=>l.value.featured_image=s)},null,8,["modelValue"])]),_:1})])):t.createCommentVNode("",!0)]))}},Qme={class:"rounded-xl bg-gray-50 px-6 py-5"},Yme={class:"text-lg font-semibold text-gray-900 pb-4"},Jme={key:0,class:"rounded-xl bg-gray-200"},epe={key:1,class:"flex flex-col gap-4 rounded-xl bg-gray-200 px-6 py-5 mt-4"},tpe={__name:"ImageBlock",props:{...un},emits:["update"],setup(n,{emit:e}){const r=t.inject("VFileUpload",Pn),o=n,l=t.ref(o.data.component),i=t.computed(()=>{var s;return((s=l.value.caption)==null?void 0:s.replace(/<[^>]*>/g," ").trim()).split(/\s+/).filter(d=>d.length>0).length});return(a,c)=>(t.openBlock(),t.createElementBlock("div",Qme,[t.createElementVNode("p",Yme,t.toDisplayString(l.value.name),1),l.value.hasOwnProperty("featured_image")?(t.openBlock(),t.createElementBlock("div",Jme,[t.createVNode(jt,{classes:"bg-gray-200",title:"Featured Image",supporting_text:"Recommended dimension: 1200*1060px"},{default:t.withCtx(()=>[t.createVNode(t.unref(r),{name:"image",height:"h-[395px]",modelValue:l.value.featured_image,"onUpdate:modelValue":c[0]||(c[0]=s=>l.value.featured_image=s)},null,8,["modelValue"])]),_:1})])):t.createCommentVNode("",!0),l.value.hasOwnProperty("caption")?(t.openBlock(),t.createElementBlock("div",epe,[c[2]||(c[2]=t.createElementVNode("p",{class:"text-lg font-semibold text-gray-900 border-b border-gray-200"}," Caption ",-1)),t.createVNode(et,{"is-vertical":"",field:"caption","label-text":"Caption *",class:"w-full mb-4",value:i.value,"show-count":!0},{default:t.withCtx(()=>[t.createVNode(lr,{modelValue:l.value.caption,"onUpdate:modelValue":c[1]||(c[1]=s=>l.value.caption=s)},null,8,["modelValue"])]),_:1},8,["value"])])):t.createCommentVNode("",!0)]))}},npe={class:"page-builder overflow-auto"},rpe={class:"flex gap-4 px-6 overflow-auto"},ope={class:"flex w-[356px] flex-col gap-2 pb-10 overflow-y-auto h-[100vh]"},lpe={class:"border-b border-gray-200 pb-2"},spe=["onClick"],ape={class:"text-lg font-semibold text-brand-800"},ipe={class:"relative flex items-center gap-3"},cpe={class:"cursor-pointer"},dpe={key:0,class:"flex flex-col gap-2"},upe=["onClick"],hpe={class:"flex flex-col"},mpe={class:"text-sm font-medium text-gray-900"},ppe={class:"flex items-center justify-between gap-3 px-[10px]"},fpe={class:"flex h-full flex-1 flex-col mb-20"},wpe={key:0,class:"mb-4 px-6 py-5 rounded-xl bg-gray-50"},gpe={class:"flex flex-col gap-1 pt-6 text-gray-600"},kpe=["value"],xpe={key:1,class:"rounded-xl bg-gray-50 px-6 py-5"},Cpe={class:"flex justify-between space-x-xsSpace pt-xsSpace gap-4 sticky bottom-0 w-full bg-gray-200 py-2 px-6"},Bpe={__name:"PageBuilder",props:{modelValue:{required:!0,type:Object},sites:{type:Array,default:()=>[]},breadcrumbs:{type:Array,default:()=>[]}},emits:["save","close"],setup(n,{emit:e}){var f;const r=e,o=n,l=t.ref(JSON.parse(window.localStorage.getItem("pageBuilderOpenStates"))),i=t.ref(((f=o.modelValue)==null?void 0:f.sections)??[]);let a=t.ref(null);const c=t.ref({sliders:t.markRaw(hr),vertical_tabs:t.markRaw(hr),links:t.markRaw(Mr),header:t.markRaw(_0),callout:t.markRaw(_0),link_grid:t.markRaw(Mr),logos:t.markRaw(l5e),carousel:t.markRaw(m5e),news_grid:t.markRaw(x5e),video_grid:t.markRaw(S5e),paragraph:t.markRaw(Zme),image_block:t.markRaw(tpe),timeline_items:t.markRaw(hr),bullet_points:t.markRaw(Mr),feature_items:t.markRaw(Mr),link_cards:t.markRaw(hr)});l.value||(l.value={},i.value.forEach((p,g)=>{l.value[g]=!0}),window.localStorage.setItem("pageBuilderOpenStates",JSON.stringify(l.value)));const s=p=>{l.value[p]=!l.value[p],window.localStorage.setItem("pageBuilderOpenStates",JSON.stringify(l.value))},d=(p,g,x)=>{a.value={page:o.modelValue,component:g,componentIndex:x,sectionIndex:p}},u=()=>{r("close",o.modelValue)},m=(p=!0)=>{r("save",{page:o.modelValue,redirect:p})},h=t.computed(()=>{var p,g,x,v;return(g=(p=a.value)==null?void 0:p.component)!=null&&g.type?c.value[(v=(x=a.value)==null?void 0:x.component)==null?void 0:v.type]:""});return(p,g)=>{var x,v;return t.openBlock(),t.createElementBlock("div",npe,[t.createElementVNode("div",rpe,[t.createElementVNode("div",ope,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.modelValue.sections,(E,M)=>(t.openBlock(),t.createElementBlock("div",lpe,[t.createElementVNode("div",{onClick:L=>s(M),class:"flex cursor-pointer items-center justify-between px-2 py-4"},[t.createElementVNode("span",ape,t.toDisplayString(E.title),1),t.createElementVNode("div",ipe,[t.createElementVNode("div",cpe,[l.value[M]?(t.openBlock(),t.createBlock(t.unref(pa),{key:1,class:"h-5 w-5"})):(t.openBlock(),t.createBlock(t.unref(h0),{key:0,class:"h-5 w-5"}))])])],8,spe),l.value[M]?(t.openBlock(),t.createElementBlock("div",dpe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(E.components,(L,H)=>{var R,G;return t.openBlock(),t.createElementBlock("div",{onClick:q=>d(M,L,H),class:t.normalizeClass(["flex cursor-pointer items-center justify-between rounded-lg py-1.5 pl-6 pr-2 hover:bg-gray-100",{"bg-gray-200 hover:bg-gray-200":((R=t.unref(a))==null?void 0:R.sectionIndex)===M&&((G=t.unref(a))==null?void 0:G.componentIndex)===H}])},[t.createElementVNode("div",hpe,[g[1]||(g[1]=t.createElementVNode("div",{class:"text-xs text-gray-600"},"Sub-module",-1)),t.createElementVNode("div",mpe,t.toDisplayString(L.name),1)]),t.createElementVNode("div",ppe,[t.createVNode(t.unref(h0),{class:"h-5 w-5"})])],10,upe)}),256))])):t.createCommentVNode("",!0)]))),256))]),t.createElementVNode("div",fpe,[t.unref(a)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",wpe,[g[3]||(g[3]=t.createElementVNode("div",{class:"text-lg pb-6 font-semibold text-gray-900 border-b border-gray-200"},"Settings",-1)),t.createElementVNode("div",gpe,[t.createVNode(et,{field:"breadcrumb","label-text":"Breadcrumb section",class:"w-full"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("select",{id:"breadcrumb","onUpdate:modelValue":g[0]||(g[0]=E=>n.modelValue.breadcrumb=E),name:"url"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.breadcrumbs,E=>(t.openBlock(),t.createElementBlock("option",{value:E},t.toDisplayString(E),9,kpe))),256))],512),[[t.vModelSelect,n.modelValue.breadcrumb]])]),_:1}),g[2]||(g[2]=t.createElementVNode("p",null,"This sets the section name shown in the breadcrumb (e.g. Home / Who We Are / Page). Leave blank to skip the section.",-1))])])),t.unref(a)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",xpe,[t.createVNode(ga)])),(t.openBlock(),t.createBlock(t.resolveDynamicComponent(h.value),{class:"min-h-[90vh]",key:((x=t.unref(a))==null?void 0:x.sectionIndex)+((v=t.unref(a))==null?void 0:v.componentIndex),data:t.unref(a),sites:n.sites,onUpdate:m},null,40,["data","sites"]))])]),t.renderSlot(p.$slots,"default",{},()=>[t.createElementVNode("div",Cpe,[t.createElementVNode("a",{onClick:u,class:"w-[200px] py-[9px] bg-white rounded-full border border-gray-300 shadow-xs text-md font-semibold hover:bg-gray-100 text-gray-700 text-center cursor-pointer"}," Cancel "),t.createElementVNode("a",{onClick:t.withModifiers(m,["prevent"]),class:"w-full py-[9px] rounded-full shadow-xs text-md font-semibold text-white bg-brand-600 hover:bg-brand-700 border border-brand-600 text-center cursor-pointer"},"Save changes")])])])}}},$o="data:image/jpeg;base64,AAAAHGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZgAAAOptZXRhAAAAAAAAACFoZGxyAAAAAAAAAABwaWN0AAAAAAAAAAAAAAAAAAAAAA5waXRtAAAAAAABAAAAImlsb2MAAAAAREAAAQABAAAAAAEOAAEAAAAAAAARtAAAACNpaW5mAAAAAAABAAAAFWluZmUCAAAAAAEAAGF2MDEAAAAAamlwcnAAAABLaXBjbwAAABNjb2xybmNseAABAA0ABoAAAAAMYXYxQ4EMDAAAAAAUaXNwZQAAAAAAAAZBAAAGQQAAABBwaXhpAAAAAAMICAgAAAAXaXBtYQAAAAAAAAABAAEEAYIDBAAAEbxtZGF0EgAKChsqsgZA4ICGg0IyoyMRQAEEEEFA9LrNypVG96LMWWcCoG7e3fR+Ni4S+KmSHgWobWA8OtL9vwZBTQcXX7wPCOaSqjXsz7F6l4FRLlK0rP8o5OlSIUR601ydI43hGj9Zmp+aRpVBIDeJVv2kawzorrWwnkCzlZFEN6kIWzNhDWD17lK5jFHp5nVzBnO7b5xDqgQ41jePfiYsmcXTc+mBRKMYDdHKDnPl/8IBX52Y26kxwh/9P6mo2zGVNs0ONs6XQWBAZF4FLOrQA20MzyF4txDPqWsBcwcki9kP0ye4x2YvaF310Dkfqua5RxdagnQIp81oTTmcVFxZXrNgz/NbDxWQbz/z1D+FoX3neKlSbFhq3ucDHwXJEktw8cZ2XEwmctcaK9W4pdEpJcNmr6e+P5AdD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Sw0dAu5llcisY2G1YCIVQO54Klh4D13C1miwtBQuHViO45hfwzPL4i6j9Iiw/Tm52I1U1IYm9w846xdKgNj9ao2+aw1AJfcajS3gej36pd+1YHYtyTHs3Q57X1kj8Hjnq5dLASg4CZ/oTb12TJsfFPzmidqg0O0iAohcFTz6mJ/Gqrdt1UA=",vpe={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function Epe(n,e){return t.openBlock(),t.createElementBlock("svg",vpe,e[0]||(e[0]=[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M7 17 17 7m0 0H7m10 0v10"},null,-1)]))}const Sn={render:Epe};/**
|
|
61
|
+
`).join("");return i.insert(a,{table:_o()})},new be().retain(o.index));this.quill.updateContents(l,ie.sources.USER),this.quill.setSelection(o.index,ie.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on(ie.events.SCROLL_OPTIMIZE,e=>{e.some(r=>["TD","TR","TBODY","TABLE"].includes(r.target.tagName)?(this.quill.once(ie.events.TEXT_CHANGE,(o,l,i)=>{i===ie.sources.USER&&this.balanceTables()}),!0):!1)})}}const Ts=pn("quill:toolbar");class So extends Wt{constructor(e,r){var o,l;if(super(e,r),Array.isArray(this.options.container)){const i=document.createElement("div");i.setAttribute("role","toolbar"),vme(i,this.options.container),(l=(o=e.container)==null?void 0:o.parentNode)==null||l.insertBefore(i,e.container),this.container=i}else typeof this.options.container=="string"?this.container=document.querySelector(this.options.container):this.container=this.options.container;if(!(this.container instanceof HTMLElement)){Ts.error("Container required for toolbar",this.options);return}this.container.classList.add("ql-toolbar"),this.controls=[],this.handlers={},this.options.handlers&&Object.keys(this.options.handlers).forEach(i=>{var c;const a=(c=this.options.handlers)==null?void 0:c[i];a&&this.addHandler(i,a)}),Array.from(this.container.querySelectorAll("button, select")).forEach(i=>{this.attach(i)}),this.quill.on(ie.events.EDITOR_CHANGE,()=>{const[i]=this.quill.selection.getRange();this.update(i)})}addHandler(e,r){this.handlers[e]=r}attach(e){let r=Array.from(e.classList).find(l=>l.indexOf("ql-")===0);if(!r)return;if(r=r.slice(3),e.tagName==="BUTTON"&&e.setAttribute("type","button"),this.handlers[r]==null&&this.quill.scroll.query(r)==null){Ts.warn("ignoring attaching to nonexistent format",r,e);return}const o=e.tagName==="SELECT"?"change":"click";e.addEventListener(o,l=>{let i;if(e.tagName==="SELECT"){if(e.selectedIndex<0)return;const c=e.options[e.selectedIndex];c.hasAttribute("selected")?i=!1:i=c.value||!1}else e.classList.contains("ql-active")?i=!1:i=e.value||!e.hasAttribute("value"),l.preventDefault();this.quill.focus();const[a]=this.quill.selection.getRange();if(this.handlers[r]!=null)this.handlers[r].call(this,i);else if(this.quill.scroll.query(r).prototype instanceof _t){if(i=prompt(`Enter ${r}`),!i)return;this.quill.updateContents(new be().retain(a.index).delete(a.length).insert({[r]:i}),ie.sources.USER)}else this.quill.format(r,i,ie.sources.USER);this.update(a)}),this.controls.push([r,e])}update(e){const r=e==null?{}:this.quill.getFormat(e);this.controls.forEach(o=>{const[l,i]=o;if(i.tagName==="SELECT"){let a=null;if(e==null)a=null;else if(r[l]==null)a=i.querySelector("option[selected]");else if(!Array.isArray(r[l])){let c=r[l];typeof c=="string"&&(c=c.replace(/"/g,'\\"')),a=i.querySelector(`option[value="${c}"]`)}a==null?(i.value="",i.selectedIndex=-1):a.selected=!0}else if(e==null)i.classList.remove("ql-active"),i.setAttribute("aria-pressed","false");else if(i.hasAttribute("value")){const a=r[l],c=a===i.getAttribute("value")||a!=null&&a.toString()===i.getAttribute("value")||a==null&&!i.getAttribute("value");i.classList.toggle("ql-active",c),i.setAttribute("aria-pressed",c.toString())}else{const a=r[l]!=null;i.classList.toggle("ql-active",a),i.setAttribute("aria-pressed",a.toString())}})}}So.DEFAULTS={};function Hs(n,e,r){const o=document.createElement("button");o.setAttribute("type","button"),o.classList.add(`ql-${e}`),o.setAttribute("aria-pressed","false"),r!=null?(o.value=r,o.setAttribute("aria-label",`${e}: ${r}`)):o.setAttribute("aria-label",e),n.appendChild(o)}function vme(n,e){Array.isArray(e[0])||(e=[e]),e.forEach(r=>{const o=document.createElement("span");o.classList.add("ql-formats"),r.forEach(l=>{if(typeof l=="string")Hs(o,l);else{const i=Object.keys(l)[0],a=l[i];Array.isArray(a)?Eme(o,i,a):Hs(o,i,a)}}),n.appendChild(o)})}function Eme(n,e,r){const o=document.createElement("select");o.classList.add(`ql-${e}`),r.forEach(l=>{const i=document.createElement("option");l!==!1?i.setAttribute("value",String(l)):i.setAttribute("selected","selected"),o.appendChild(i)}),n.appendChild(o)}So.DEFAULTS={container:null,handlers:{clean(){const n=this.quill.getSelection();if(n!=null)if(n.length===0){const e=this.quill.getFormat();Object.keys(e).forEach(r=>{this.quill.scroll.query(r,Me.INLINE)!=null&&this.quill.format(r,!1,ie.sources.USER)})}else this.quill.removeFormat(n.index,n.length,ie.sources.USER)},direction(n){const{align:e}=this.quill.getFormat();n==="rtl"&&e==null?this.quill.format("align","right",ie.sources.USER):!n&&e==="right"&&this.quill.format("align",!1,ie.sources.USER),this.quill.format("direction",n,ie.sources.USER)},indent(n){const e=this.quill.getSelection(),r=this.quill.getFormat(e),o=parseInt(r.indent||0,10);if(n==="+1"||n==="-1"){let l=n==="+1"?1:-1;r.direction==="rtl"&&(l*=-1),this.quill.format("indent",o+l,ie.sources.USER)}},link(n){n===!0&&(n=prompt("Enter link URL:")),this.quill.format("link",n,ie.sources.USER)},list(n){const e=this.quill.getSelection(),r=this.quill.getFormat(e);n==="check"?r.list==="checked"||r.list==="unchecked"?this.quill.format("list",!1,ie.sources.USER):this.quill.format("list","unchecked",ie.sources.USER):this.quill.format("list",n,ie.sources.USER)}}};const yme='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>',bme='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>',Mme='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>',Nme='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>',Vme='<svg viewbox="0 0 18 18"><g class="ql-fill ql-color-label"><polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/><path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>',Ame='<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>',_me='<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"/><path class="ql-stroke" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"/></svg>',Sme='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>',Os='<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>',nr={align:{"":yme,center:bme,right:Mme,justify:Nme},background:Vme,blockquote:Ame,bold:_me,clean:Sme,code:Os,"code-block":Os,color:'<svg viewbox="0 0 18 18"><line class="ql-color-label ql-stroke ql-transparent" x1="3" x2="15" y1="15" y2="15"/><polyline class="ql-stroke" points="5.5 11 9 3 12.5 11"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="9" y2="9"/></svg>',direction:{"":'<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"/><line class="ql-stroke ql-fill" x1="15" x2="11" y1="4" y2="4"/><path class="ql-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"/><rect class="ql-fill" height="11" width="1" x="11" y="4"/><rect class="ql-fill" height="11" width="1" x="13" y="4"/></svg>',rtl:'<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"/><line class="ql-stroke ql-fill" x1="9" x2="5" y1="4" y2="4"/><path class="ql-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"/><rect class="ql-fill" height="11" width="1" x="5" y="4"/><rect class="ql-fill" height="11" width="1" x="7" y="4"/></svg>'},formula:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z"/><rect class="ql-fill" height="1.6" rx="0.8" ry="0.8" width="5" x="5.15" y="6.2"/><path class="ql-fill" d="M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z"/></svg>',header:{1:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z"/></svg>',2:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',3:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',4:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm7.05371,7.96582v.38477c0,.39648-.165.60547-.46191.60547h-.47314v1.29785a.54085.54085,0,0,1-.605.60547h-.69336a.54085.54085,0,0,1-.605-.60547V12.95605H11.333a.5412.5412,0,0,1-.60547-.60547v-.15332a1.199,1.199,0,0,1,.22021-.748l2.56348-4.05957a.7819.7819,0,0,1,.72607-.39648h1.27637a.54085.54085,0,0,1,.605.60547v3.7627h.33008A.54055.54055,0,0,1,17.05371,11.96582ZM14.28125,8.7207h-.022a4.18969,4.18969,0,0,1-.38525.81348l-1.188,1.80469v.02246h1.5293V9.60059A7.04058,7.04058,0,0,1,14.28125,8.7207Z"/></svg>',5:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.74023,12.18555a2.75131,2.75131,0,0,1-2.91553,2.80566,3.908,3.908,0,0,1-2.25537-.68164.54809.54809,0,0,1-.13184-.8252L11.73438,13c.209-.34082.48389-.36328.8252-.1543a2.23757,2.23757,0,0,0,1.1001.33008,1.01827,1.01827,0,0,0,1.1001-.96777c0-.61621-.53906-.97949-1.25439-.97949a2.15554,2.15554,0,0,0-.64893.09961,1.15209,1.15209,0,0,1-.814.01074l-.12109-.04395a.64116.64116,0,0,1-.45117-.71484l.231-3.00391a.56666.56666,0,0,1,.62744-.583H15.541a.54085.54085,0,0,1,.605.60547v.43945a.54085.54085,0,0,1-.605.60547H13.41748l-.04395.72559a1.29306,1.29306,0,0,1-.04395.30859h.022a2.39776,2.39776,0,0,1,.57227-.07715A2.53266,2.53266,0,0,1,16.74023,12.18555ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',6:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M14.51758,9.64453a1.85627,1.85627,0,0,0-1.24316.38477H13.252a1.73532,1.73532,0,0,1,1.72754-1.4082,2.66491,2.66491,0,0,1,.5498.06641c.35254.05469.57227.01074.70508-.40723l.16406-.5166a.53393.53393,0,0,0-.373-.75977,4.83723,4.83723,0,0,0-1.17773-.14258c-2.43164,0-3.7627,2.17773-3.7627,4.43359,0,2.47559,1.60645,3.69629,3.19043,3.69629A2.70585,2.70585,0,0,0,16.96,12.19727,2.43861,2.43861,0,0,0,14.51758,9.64453Zm-.23047,3.58691c-.67187,0-1.22168-.81445-1.22168-1.45215,0-.47363.30762-.583.72559-.583.96875,0,1.27734.59375,1.27734,1.12207A.82182.82182,0,0,1,14.28711,13.23145ZM10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Z"/></svg>'},italic:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="13" y1="4" y2="4"/><line class="ql-stroke" x1="5" x2="11" y1="14" y2="14"/><line class="ql-stroke" x1="8" x2="10" y1="14" y2="4"/></svg>',image:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="10" width="12" x="3" y="4"/><circle class="ql-fill" cx="6" cy="7" r="1"/><polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"/></svg>',indent:{"+1":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"/></svg>',"-1":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="5 7 5 11 3 9 5 7"/></svg>'},link:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"/><path class="ql-even ql-stroke" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"/><path class="ql-even ql-stroke" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"/></svg>',list:{bullet:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="6" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="6" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="6" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="3" y1="4" y2="4"/><line class="ql-stroke" x1="3" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="3" y1="14" y2="14"/></svg>',check:'<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="9" x2="15" y1="4" y2="4"/><polyline class="ql-stroke" points="3 4 4 5 6 3"/><line class="ql-stroke" x1="9" x2="15" y1="14" y2="14"/><polyline class="ql-stroke" points="3 14 4 15 6 13"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="3 9 4 10 6 8"/></svg>',ordered:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="7" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="7" x2="15" y1="14" y2="14"/><line class="ql-stroke ql-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"/><path class="ql-fill" d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"/><path class="ql-stroke ql-thin" d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"/><path class="ql-stroke ql-thin" d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"/></svg>'},script:{sub:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z"/><path class="ql-fill" d="M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z"/></svg>',super:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z"/><path class="ql-fill" d="M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z"/></svg>'},strike:'<svg viewbox="0 0 18 18"><line class="ql-stroke ql-thin" x1="15.5" x2="2.5" y1="8.5" y2="9.5"/><path class="ql-fill" d="M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z"/><path class="ql-fill" d="M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z"/></svg>',table:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="2" width="3" x="5" y="5"/><rect class="ql-fill" height="2" width="4" x="9" y="5"/><g class="ql-fill ql-transparent"><rect height="2" width="3" x="5" y="8"/><rect height="2" width="4" x="9" y="8"/><rect height="2" width="3" x="5" y="11"/><rect height="2" width="4" x="9" y="11"/></g></svg>',underline:'<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="12" x="3" y="15"/></svg>',video:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="12" width="1" x="5" y="3"/><rect class="ql-fill" height="12" width="1" x="12" y="3"/><rect class="ql-fill" height="2" width="8" x="5" y="8"/><rect class="ql-fill" height="1" width="3" x="3" y="5"/><rect class="ql-fill" height="1" width="3" x="3" y="7"/><rect class="ql-fill" height="1" width="3" x="3" y="10"/><rect class="ql-fill" height="1" width="3" x="3" y="12"/><rect class="ql-fill" height="1" width="3" x="12" y="5"/><rect class="ql-fill" height="1" width="3" x="12" y="7"/><rect class="ql-fill" height="1" width="3" x="12" y="10"/><rect class="ql-fill" height="1" width="3" x="12" y="12"/></svg>'},$me='<svg viewbox="0 0 18 18"><polygon class="ql-stroke" points="7 11 9 13 11 11 7 11"/><polygon class="ql-stroke" points="7 7 9 5 11 7 7 7"/></svg>';let Rs=0;function Ds(n,e){n.setAttribute(e,`${n.getAttribute(e)!=="true"}`)}class Qr{constructor(e){this.select=e,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",()=>{this.togglePicker()}),this.label.addEventListener("keydown",r=>{switch(r.key){case"Enter":this.togglePicker();break;case"Escape":this.escape(),r.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}togglePicker(){this.container.classList.toggle("ql-expanded"),Ds(this.label,"aria-expanded"),Ds(this.options,"aria-hidden")}buildItem(e){const r=document.createElement("span");r.tabIndex="0",r.setAttribute("role","button"),r.classList.add("ql-picker-item");const o=e.getAttribute("value");return o&&r.setAttribute("data-value",o),e.textContent&&r.setAttribute("data-label",e.textContent),r.addEventListener("click",()=>{this.selectItem(r,!0)}),r.addEventListener("keydown",l=>{switch(l.key){case"Enter":this.selectItem(r,!0),l.preventDefault();break;case"Escape":this.escape(),l.preventDefault();break}}),r}buildLabel(){const e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=$me,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}buildOptions(){const e=document.createElement("span");e.classList.add("ql-picker-options"),e.setAttribute("aria-hidden","true"),e.tabIndex="-1",e.id=`ql-picker-options-${Rs}`,Rs+=1,this.label.setAttribute("aria-controls",e.id),this.options=e,Array.from(this.select.options).forEach(r=>{const o=this.buildItem(r);e.appendChild(o),r.selected===!0&&this.selectItem(o)}),this.container.appendChild(e)}buildPicker(){Array.from(this.select.attributes).forEach(e=>{this.container.setAttribute(e.name,e.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}escape(){this.close(),setTimeout(()=>this.label.focus(),1)}close(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}selectItem(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const o=this.container.querySelector(".ql-selected");e!==o&&(o!=null&&o.classList.remove("ql-selected"),e!=null&&(e.classList.add("ql-selected"),this.select.selectedIndex=Array.from(e.parentNode.children).indexOf(e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),r&&(this.select.dispatchEvent(new Event("change")),this.close())))}update(){let e;if(this.select.selectedIndex>-1){const o=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(o)}else this.selectItem(null);const r=e!=null&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",r)}}class Ps extends Qr{constructor(e,r){super(e),this.label.innerHTML=r,this.container.classList.add("ql-color-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).slice(0,7).forEach(o=>{o.classList.add("ql-primary")})}buildItem(e){const r=super.buildItem(e);return r.style.backgroundColor=e.getAttribute("value")||"",r}selectItem(e,r){super.selectItem(e,r);const o=this.label.querySelector(".ql-color-label"),l=e&&e.getAttribute("data-value")||"";o&&(o.tagName==="line"?o.style.stroke=l:o.style.fill=l)}}class Is extends Qr{constructor(e,r){super(e),this.container.classList.add("ql-icon-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).forEach(o=>{o.innerHTML=r[o.getAttribute("data-value")||""]}),this.defaultItem=this.container.querySelector(".ql-selected"),this.selectItem(this.defaultItem)}selectItem(e,r){super.selectItem(e,r);const o=e||this.defaultItem;if(o!=null){if(this.label.innerHTML===o.innerHTML)return;this.label.innerHTML=o.innerHTML}}}const jme=n=>{const{overflowY:e}=getComputedStyle(n,null);return e!=="visible"&&e!=="clip"};class Fs{constructor(e,r){this.quill=e,this.boundsContainer=r||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,jme(this.quill.root)&&this.quill.root.addEventListener("scroll",()=>{this.root.style.marginTop=`${-1*this.quill.root.scrollTop}px`}),this.hide()}hide(){this.root.classList.add("ql-hidden")}position(e){const r=e.left+e.width/2-this.root.offsetWidth/2,o=e.bottom+this.quill.root.scrollTop;this.root.style.left=`${r}px`,this.root.style.top=`${o}px`,this.root.classList.remove("ql-flip");const l=this.boundsContainer.getBoundingClientRect(),i=this.root.getBoundingClientRect();let a=0;if(i.right>l.right&&(a=l.right-i.right,this.root.style.left=`${r+a}px`),i.left<l.left&&(a=l.left-i.left,this.root.style.left=`${r+a}px`),i.bottom>l.bottom){const c=i.bottom-i.top,s=e.bottom-e.top+c;this.root.style.top=`${o-s}px`,this.root.classList.add("ql-flip")}return a}show(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}const Lme=[!1,"center","right","justify"],Tme=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],Hme=[!1,"serif","monospace"],Ome=["1","2","3",!1],Rme=["small",!1,"large","huge"];class rr extends f1{constructor(e,r){super(e,r);const o=l=>{if(!document.body.contains(e.root)){document.body.removeEventListener("click",o);return}this.tooltip!=null&&!this.tooltip.root.contains(l.target)&&document.activeElement!==this.tooltip.textbox&&!this.quill.hasFocus()&&this.tooltip.hide(),this.pickers!=null&&this.pickers.forEach(i=>{i.container.contains(l.target)||i.close()})};e.emitter.listenDOM("click",document.body,o)}addModule(e){const r=super.addModule(e);return e==="toolbar"&&this.extendToolbar(r),r}buildButtons(e,r){Array.from(e).forEach(o=>{(o.getAttribute("class")||"").split(/\s+/).forEach(i=>{if(i.startsWith("ql-")&&(i=i.slice(3),r[i]!=null))if(i==="direction")o.innerHTML=r[i][""]+r[i].rtl;else if(typeof r[i]=="string")o.innerHTML=r[i];else{const a=o.value||"";a!=null&&r[i][a]&&(o.innerHTML=r[i][a])}})})}buildPickers(e,r){this.pickers=Array.from(e).map(l=>{if(l.classList.contains("ql-align")&&(l.querySelector("option")==null&&or(l,Lme),typeof r.align=="object"))return new Is(l,r.align);if(l.classList.contains("ql-background")||l.classList.contains("ql-color")){const i=l.classList.contains("ql-background")?"background":"color";return l.querySelector("option")==null&&or(l,Tme,i==="background"?"#ffffff":"#000000"),new Ps(l,r[i])}return l.querySelector("option")==null&&(l.classList.contains("ql-font")?or(l,Hme):l.classList.contains("ql-header")?or(l,Ome):l.classList.contains("ql-size")&&or(l,Rme)),new Qr(l)});const o=()=>{this.pickers.forEach(l=>{l.update()})};this.quill.on(ye.events.EDITOR_CHANGE,o)}}rr.DEFAULTS=Nn({},f1.DEFAULTS,{modules:{toolbar:{handlers:{formula(){this.quill.theme.tooltip.edit("formula")},image(){let n=this.container.querySelector("input.ql-image[type=file]");n==null&&(n=document.createElement("input"),n.setAttribute("type","file"),n.setAttribute("accept",this.quill.uploader.options.mimetypes.join(", ")),n.classList.add("ql-image"),n.addEventListener("change",()=>{const e=this.quill.getSelection(!0);this.quill.uploader.upload(e,n.files),n.value=""}),this.container.appendChild(n)),n.click()},video(){this.quill.theme.tooltip.edit("video")}}}}});class Us extends Fs{constructor(e,r){super(e,r),this.textbox=this.root.querySelector('input[type="text"]'),this.listen()}listen(){this.textbox.addEventListener("keydown",e=>{e.key==="Enter"?(this.save(),e.preventDefault()):e.key==="Escape"&&(this.cancel(),e.preventDefault())})}cancel(){this.hide(),this.restoreFocus()}edit(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),this.textbox==null)return;r!=null?this.textbox.value=r:e!==this.root.getAttribute("data-mode")&&(this.textbox.value="");const o=this.quill.getBounds(this.quill.selection.savedRange);o!=null&&this.position(o),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute(`data-${e}`)||""),this.root.setAttribute("data-mode",e)}restoreFocus(){this.quill.focus({preventScroll:!0})}save(){let{value:e}=this.textbox;switch(this.root.getAttribute("data-mode")){case"link":{const{scrollTop:r}=this.quill.root;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,ye.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,ye.sources.USER)),this.quill.root.scrollTop=r;break}case"video":e=Dme(e);case"formula":{if(!e)break;const r=this.quill.getSelection(!0);if(r!=null){const o=r.index+r.length;this.quill.insertEmbed(o,this.root.getAttribute("data-mode"),e,ye.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(o+1," ",ye.sources.USER),this.quill.setSelection(o+2,ye.sources.USER)}break}}this.textbox.value="",this.hide()}}function Dme(n){let e=n.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||n.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return e?`${e[1]||"https"}://www.youtube.com/embed/${e[2]}?showinfo=0`:(e=n.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?`${e[1]||"https"}://player.vimeo.com/video/${e[2]}/`:n}function or(n,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;e.forEach(o=>{const l=document.createElement("option");o===r?l.setAttribute("selected","selected"):l.setAttribute("value",String(o)),n.appendChild(l)})}const Pme=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class zs extends Us{constructor(e,r){super(e,r),this.quill.on(ye.events.EDITOR_CHANGE,(o,l,i,a)=>{if(o===ye.events.SELECTION_CHANGE)if(l!=null&&l.length>0&&a===ye.sources.USER){this.show(),this.root.style.left="0px",this.root.style.width="",this.root.style.width=`${this.root.offsetWidth}px`;const c=this.quill.getLines(l.index,l.length);if(c.length===1){const s=this.quill.getBounds(l);s!=null&&this.position(s)}else{const s=c[c.length-1],d=this.quill.getIndex(s),u=Math.min(s.length()-1,l.index+l.length-d),m=this.quill.getBounds(new Gn(d,u));m!=null&&this.position(m)}}else document.activeElement!==this.textbox&&this.quill.hasFocus()&&this.hide()})}listen(){super.listen(),this.root.querySelector(".ql-close").addEventListener("click",()=>{this.root.classList.remove("ql-editing")}),this.quill.on(ye.events.SCROLL_OPTIMIZE,()=>{setTimeout(()=>{if(this.root.classList.contains("ql-hidden"))return;const e=this.quill.getSelection();if(e!=null){const r=this.quill.getBounds(e);r!=null&&this.position(r)}},1)})}cancel(){this.show()}position(e){const r=super.position(e),o=this.root.querySelector(".ql-tooltip-arrow");return o.style.marginLeft="",r!==0&&(o.style.marginLeft=`${-1*r-o.offsetWidth/2}px`),r}}Be(zs,"TEMPLATE",['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""));class qs extends rr{constructor(e,r){r.modules.toolbar!=null&&r.modules.toolbar.container==null&&(r.modules.toolbar.container=Pme),super(e,r),this.quill.container.classList.add("ql-bubble")}extendToolbar(e){this.tooltip=new zs(this.quill,this.options.bounds),e.container!=null&&(this.tooltip.root.appendChild(e.container),this.buildButtons(e.container.querySelectorAll("button"),nr),this.buildPickers(e.container.querySelectorAll("select"),nr))}}qs.DEFAULTS=Nn({},rr.DEFAULTS,{modules:{toolbar:{handlers:{link(n){n?this.quill.theme.tooltip.edit():this.quill.format("link",!1,ie.sources.USER)}}}}});const Ime=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class Gs extends Us{constructor(){super(...arguments);Be(this,"preview",this.root.querySelector("a.ql-preview"))}listen(){super.listen(),this.root.querySelector("a.ql-action").addEventListener("click",r=>{this.root.classList.contains("ql-editing")?this.save():this.edit("link",this.preview.textContent),r.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",r=>{if(this.linkRange!=null){const o=this.linkRange;this.restoreFocus(),this.quill.formatText(o,"link",!1,ye.sources.USER),delete this.linkRange}r.preventDefault(),this.hide()}),this.quill.on(ye.events.SELECTION_CHANGE,(r,o,l)=>{if(r!=null){if(r.length===0&&l===ye.sources.USER){const[i,a]=this.quill.scroll.descendant(_n,r.index);if(i!=null){this.linkRange=new Gn(r.index-a,i.length());const c=_n.formats(i.domNode);this.preview.textContent=c,this.preview.setAttribute("href",c),this.show();const s=this.quill.getBounds(this.linkRange);s!=null&&this.position(s);return}}else delete this.linkRange;this.hide()}})}show(){super.show(),this.root.removeAttribute("data-mode")}}Be(Gs,"TEMPLATE",['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""));class Ws extends rr{constructor(e,r){r.modules.toolbar!=null&&r.modules.toolbar.container==null&&(r.modules.toolbar.container=Ime),super(e,r),this.quill.container.classList.add("ql-snow")}extendToolbar(e){e.container!=null&&(e.container.classList.add("ql-snow"),this.buildButtons(e.container.querySelectorAll("button"),nr),this.buildPickers(e.container.querySelectorAll("select"),nr),this.tooltip=new Gs(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"k",shortKey:!0},(r,o)=>{e.handlers.link.call(e,!o.format.link)}))}}Ws.DEFAULTS=Nn({},rr.DEFAULTS,{modules:{toolbar:{handlers:{link(n){if(n){const e=this.quill.getSelection();if(e==null||e.length===0)return;let r=this.quill.getText(e);/^\S+@\S+\.\S+$/.test(r)&&r.indexOf("mailto:")!==0&&(r=`mailto:${r}`);const{tooltip:o}=this.quill.theme;o.edit("link",r)}else this.quill.format("link",!1,ie.sources.USER)}}}}}),ie.register({"attributors/attribute/direction":ms,"attributors/class/align":ds,"attributors/class/background":Ahe,"attributors/class/color":Vhe,"attributors/class/direction":ps,"attributors/class/font":gs,"attributors/class/size":xs,"attributors/style/align":us,"attributors/style/background":fo,"attributors/style/color":po,"attributors/style/direction":fs,"attributors/style/font":ks,"attributors/style/size":Cs},!0),ie.register({"formats/align":ds,"formats/direction":ps,"formats/indent":xme,"formats/background":fo,"formats/color":po,"formats/font":gs,"formats/size":xs,"formats/blockquote":Eo,"formats/code-block":xt,"formats/header":yo,"formats/list":Y1,"formats/bold":J1,"formats/code":wo,"formats/italic":bo,"formats/link":_n,"formats/script":Mo,"formats/strike":No,"formats/underline":Vo,"formats/formula":Kr,"formats/image":Ao,"formats/video":Zr,"modules/syntax":Ls,"modules/table":Bme,"modules/toolbar":So,"themes/bubble":qs,"themes/snow":Ws,"ui/icons":nr,"ui/picker":Qr,"ui/icon-picker":Is,"ui/color-picker":Ps,"ui/tooltip":Fs},!0);const Fme={name:"QuillEditor",props:{modelValue:{type:String,default:""},options:{type:Object,default:()=>({theme:"snow",placeholder:"Start typing...",modules:{toolbar:[[{font:[]},{size:[]}],["bold","italic","underline","strike"],[{color:[]},{background:[]}],[{script:"sub"},{script:"super"}],[{header:1},{header:2},"blockquote","code-block"],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"}],[{direction:"rtl"},{align:[]}],["link","image","video","formula"],["clean"]]}})}},emits:["update:modelValue"],setup(n,{emit:e}){const r=t.ref(null);let o=null;return t.onMounted(()=>{o=new ie(r.value,n.options),o.root.innerHTML=n.modelValue,o.on("text-change",()=>{e("update:modelValue",o.root.innerHTML)})}),t.watch(()=>n.modelValue,l=>{o&&o.root.innerHTML!==l&&(o.root.innerHTML=l)}),t.onBeforeUnmount(()=>{o=null}),{editorContainer:r}}},Ume={class:"q-editor"},zme={ref:"editorContainer"};function qme(n,e,r,o,l,i){return t.openBlock(),t.createElementBlock("div",Ume,[t.createElementVNode("div",zme,null,512)])}const lr=n1(Fme,[["render",qme]]),Gme={class:"rounded-xl bg-gray-50 px-6 py-5"},Wme={class:"text-lg font-semibold text-gray-900 border-b border-gray-200 pb-4"},Xme={class:"flex flex-col gap-4 rounded-xl bg-gray-200 px-6 py-5"},Kme={key:0,class:"rounded-xl bg-gray-200 mt-4"},Zme={__name:"Paragraph",props:{...un},emits:["update"],setup(n,{emit:e}){const r=t.inject("VFileUpload",Pn),o=n,l=t.ref(o.data.component),i=t.computed(()=>{var s;return((s=l.value.paragraph)==null?void 0:s.replace(/<[^>]*>/g," ").trim()).split(/\s+/).filter(d=>d.length>0).length});return(a,c)=>(t.openBlock(),t.createElementBlock("div",Gme,[t.createElementVNode("p",Wme,t.toDisplayString(l.value.name),1),t.createElementVNode("div",Xme,[c[4]||(c[4]=t.createElementVNode("p",{class:"text-lg font-semibold text-gray-900"}," Description ",-1)),l.value.hasOwnProperty("eyebrow_heading")?(t.openBlock(),t.createBlock(et,{key:0,"is-vertical":"",field:"eyebrow_heading","label-text":"Eyebrow heading *",class:"w-full mb-4",value:l.value.eyebrow_heading,limit:51},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":c[0]||(c[0]=s=>l.value.eyebrow_heading=s),name:"eyebrow_heading",type:"text",placeholder:"Eyebrow heading",maxlength:51,class:"border-1 border-solid border-gray-300 rounded-lg bg-white w-full"},null,512),[[t.vModelText,l.value.eyebrow_heading]])]),_:1},8,["value"])):t.createCommentVNode("",!0),l.value.hasOwnProperty("title")?(t.openBlock(),t.createBlock(et,{key:1,"is-vertical":"",field:"title","label-text":"Title *",class:"w-full mb-4",value:l.value.title,limit:51},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":c[1]||(c[1]=s=>l.value.title=s),name:"title",type:"text",placeholder:"Title",maxlength:51,class:"border-1 border-solid border-gray-300 rounded-lg bg-white w-full"},null,512),[[t.vModelText,l.value.title]])]),_:1},8,["value"])):t.createCommentVNode("",!0),t.createVNode(et,{"is-vertical":"",field:"description","label-text":"Description *",class:"w-full mb-4",value:i.value,"show-count":!0},{default:t.withCtx(()=>[t.createVNode(lr,{modelValue:l.value.paragraph,"onUpdate:modelValue":c[2]||(c[2]=s=>l.value.paragraph=s)},null,8,["modelValue"])]),_:1},8,["value"])]),l.value.hasOwnProperty("featured_image")?(t.openBlock(),t.createElementBlock("div",Kme,[t.createVNode(jt,{classes:"bg-gray-200",title:"Featured Image",supporting_text:"Recommended dimension: 1200*1060px"},{default:t.withCtx(()=>[t.createVNode(t.unref(r),{name:"image",height:"h-[395px]",modelValue:l.value.featured_image,"onUpdate:modelValue":c[3]||(c[3]=s=>l.value.featured_image=s)},null,8,["modelValue"])]),_:1})])):t.createCommentVNode("",!0)]))}},Qme={class:"rounded-xl bg-gray-50 px-6 py-5"},Yme={class:"text-lg font-semibold text-gray-900 pb-4"},Jme={key:0,class:"rounded-xl bg-gray-200"},epe={key:1,class:"flex flex-col gap-4 rounded-xl bg-gray-200 px-6 py-5 mt-4"},tpe={__name:"ImageBlock",props:{...un},emits:["update"],setup(n,{emit:e}){const r=t.inject("VFileUpload",Pn),o=n,l=t.ref(o.data.component),i=t.computed(()=>{var s;return((s=l.value.caption)==null?void 0:s.replace(/<[^>]*>/g," ").trim()).split(/\s+/).filter(d=>d.length>0).length});return(a,c)=>(t.openBlock(),t.createElementBlock("div",Qme,[t.createElementVNode("p",Yme,t.toDisplayString(l.value.name),1),l.value.hasOwnProperty("featured_image")?(t.openBlock(),t.createElementBlock("div",Jme,[t.createVNode(jt,{classes:"bg-gray-200",title:"Featured Image",supporting_text:"Recommended dimension: 1200*1060px"},{default:t.withCtx(()=>[t.createVNode(t.unref(r),{name:"image",height:"h-[395px]",modelValue:l.value.featured_image,"onUpdate:modelValue":c[0]||(c[0]=s=>l.value.featured_image=s)},null,8,["modelValue"])]),_:1})])):t.createCommentVNode("",!0),l.value.hasOwnProperty("caption")?(t.openBlock(),t.createElementBlock("div",epe,[c[2]||(c[2]=t.createElementVNode("p",{class:"text-lg font-semibold text-gray-900 border-b border-gray-200"}," Caption ",-1)),t.createVNode(et,{"is-vertical":"",field:"caption","label-text":"Caption *",class:"w-full mb-4",value:i.value,"show-count":!0},{default:t.withCtx(()=>[t.createVNode(lr,{modelValue:l.value.caption,"onUpdate:modelValue":c[1]||(c[1]=s=>l.value.caption=s)},null,8,["modelValue"])]),_:1},8,["value"])])):t.createCommentVNode("",!0)]))}},npe={class:"page-builder overflow-auto"},rpe={class:"flex gap-4 px-6 overflow-auto"},ope={class:"flex w-[356px] flex-col gap-2 pb-10 overflow-y-auto h-[100vh]"},lpe={class:"border-b border-gray-200 pb-2"},spe=["onClick"],ape={class:"text-lg font-semibold text-brand-800"},ipe={class:"relative flex items-center gap-3"},cpe={class:"cursor-pointer"},dpe={key:0,class:"flex flex-col gap-2"},upe=["onClick"],hpe={class:"flex flex-col"},mpe={class:"text-sm font-medium text-gray-900"},ppe={class:"flex items-center justify-between gap-3 px-[10px]"},fpe={class:"flex h-full flex-1 flex-col mb-20"},wpe={key:0,class:"mb-4 px-6 py-5 rounded-xl bg-gray-50"},gpe={class:"flex flex-col gap-1 pt-6 text-gray-600"},kpe=["value"],xpe={key:1,class:"rounded-xl bg-gray-50 px-6 py-5"},Cpe={class:"flex justify-between space-x-xsSpace pt-xsSpace gap-4 sticky bottom-0 w-full bg-gray-200 py-2 px-6"},Bpe={__name:"PageBuilder",props:{modelValue:{required:!0,type:Object},sites:{type:Array,default:()=>[]},breadcrumbs:{type:Array,default:()=>[]}},emits:["save","close"],setup(n,{emit:e}){var f;const r=e,o=n,l=t.ref(JSON.parse(window.localStorage.getItem("pageBuilderOpenStates"))),i=t.ref(((f=o.modelValue)==null?void 0:f.sections)??[]);let a=t.ref(null);const c=t.ref({sliders:t.markRaw(hr),vertical_tabs:t.markRaw(hr),links:t.markRaw(Mr),header:t.markRaw(_0),callout:t.markRaw(_0),link_grid:t.markRaw(Mr),logos:t.markRaw(l5e),carousel:t.markRaw(m5e),news_grid:t.markRaw(x5e),video_grid:t.markRaw(S5e),paragraph:t.markRaw(Zme),image_block:t.markRaw(tpe),timeline_items:t.markRaw(hr),bullet_points:t.markRaw(Mr),feature_items:t.markRaw(Mr),link_cards:t.markRaw(hr)});l.value||(l.value={},i.value.forEach((p,g)=>{l.value[g]=!0}),window.localStorage.setItem("pageBuilderOpenStates",JSON.stringify(l.value)));const s=p=>{l.value[p]=!l.value[p],window.localStorage.setItem("pageBuilderOpenStates",JSON.stringify(l.value))},d=(p,g,x)=>{a.value={page:o.modelValue,component:g,componentIndex:x,sectionIndex:p}},u=()=>{r("close",o.modelValue)},m=(p=!0)=>{r("save",{page:o.modelValue,redirect:p})},h=t.computed(()=>{var p,g,x,v;return(g=(p=a.value)==null?void 0:p.component)!=null&&g.type?c.value[(v=(x=a.value)==null?void 0:x.component)==null?void 0:v.type]:""});return(p,g)=>{var x,v;return t.openBlock(),t.createElementBlock("div",npe,[t.createElementVNode("div",rpe,[t.createElementVNode("div",ope,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.modelValue.sections,(E,M)=>(t.openBlock(),t.createElementBlock("div",lpe,[t.createElementVNode("div",{onClick:L=>s(M),class:"flex cursor-pointer items-center justify-between px-2 py-4"},[t.createElementVNode("span",ape,t.toDisplayString(E.title),1),t.createElementVNode("div",ipe,[t.createElementVNode("div",cpe,[l.value[M]?(t.openBlock(),t.createBlock(t.unref(pa),{key:1,class:"h-5 w-5"})):(t.openBlock(),t.createBlock(t.unref(h0),{key:0,class:"h-5 w-5"}))])])],8,spe),l.value[M]?(t.openBlock(),t.createElementBlock("div",dpe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(E.components,(L,H)=>{var R,G;return t.openBlock(),t.createElementBlock("div",{onClick:q=>d(M,L,H),class:t.normalizeClass(["flex cursor-pointer items-center justify-between rounded-lg py-1.5 pl-6 pr-2 hover:bg-gray-100",{"bg-gray-200 hover:bg-gray-200":((R=t.unref(a))==null?void 0:R.sectionIndex)===M&&((G=t.unref(a))==null?void 0:G.componentIndex)===H}])},[t.createElementVNode("div",hpe,[g[1]||(g[1]=t.createElementVNode("div",{class:"text-xs text-gray-600"},"Sub-module",-1)),t.createElementVNode("div",mpe,t.toDisplayString(L.name),1)]),t.createElementVNode("div",ppe,[t.createVNode(t.unref(h0),{class:"h-5 w-5"})])],10,upe)}),256))])):t.createCommentVNode("",!0)]))),256))]),t.createElementVNode("div",fpe,[t.unref(a)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",wpe,[g[3]||(g[3]=t.createElementVNode("div",{class:"text-lg pb-6 font-semibold text-gray-900 border-b border-gray-200"},"Settings",-1)),t.createElementVNode("div",gpe,[t.createVNode(et,{field:"breadcrumb","label-text":"Breadcrumb section",class:"w-full"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("select",{id:"breadcrumb","onUpdate:modelValue":g[0]||(g[0]=E=>n.modelValue.breadcrumb=E),name:"url"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.breadcrumbs,E=>(t.openBlock(),t.createElementBlock("option",{value:E},t.toDisplayString(E),9,kpe))),256))],512),[[t.vModelSelect,n.modelValue.breadcrumb]])]),_:1}),g[2]||(g[2]=t.createElementVNode("p",null,"This sets the section name shown in the breadcrumb (e.g. Home / Who We Are / Page). Leave blank to skip the section.",-1))])])),t.unref(a)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",xpe,[t.createVNode(ga)])),(t.openBlock(),t.createBlock(t.resolveDynamicComponent(h.value),{class:"min-h-[90vh]",key:`${(x=t.unref(a))==null?void 0:x.sectionIndex} - ${(v=t.unref(a))==null?void 0:v.componentIndex}`,data:t.unref(a),sites:n.sites,onUpdate:m},null,40,["data","sites"]))])]),t.renderSlot(p.$slots,"default",{},()=>[t.createElementVNode("div",Cpe,[t.createElementVNode("a",{onClick:u,class:"w-[200px] py-[9px] bg-white rounded-full border border-gray-300 shadow-xs text-md font-semibold hover:bg-gray-100 text-gray-700 text-center cursor-pointer"}," Cancel "),t.createElementVNode("a",{onClick:t.withModifiers(m,["prevent"]),class:"w-full py-[9px] rounded-full shadow-xs text-md font-semibold text-white bg-brand-600 hover:bg-brand-700 border border-brand-600 text-center cursor-pointer"},"Save changes")])])])}}},$o="data:image/jpeg;base64,AAAAHGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZgAAAOptZXRhAAAAAAAAACFoZGxyAAAAAAAAAABwaWN0AAAAAAAAAAAAAAAAAAAAAA5waXRtAAAAAAABAAAAImlsb2MAAAAAREAAAQABAAAAAAEOAAEAAAAAAAARtAAAACNpaW5mAAAAAAABAAAAFWluZmUCAAAAAAEAAGF2MDEAAAAAamlwcnAAAABLaXBjbwAAABNjb2xybmNseAABAA0ABoAAAAAMYXYxQ4EMDAAAAAAUaXNwZQAAAAAAAAZBAAAGQQAAABBwaXhpAAAAAAMICAgAAAAXaXBtYQAAAAAAAAABAAEEAYIDBAAAEbxtZGF0EgAKChsqsgZA4ICGg0IyoyMRQAEEEEFA9LrNypVG96LMWWcCoG7e3fR+Ni4S+KmSHgWobWA8OtL9vwZBTQcXX7wPCOaSqjXsz7F6l4FRLlK0rP8o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xTrA2fS/UVwlLhqNr1CaMFHaRXO/NJhuiufe83tot7jhyl9vXa9n0047EfylrX8305tvshCwyjRdow1w/1ddWI+dh4W6UpYz0jIVaNbotWQcgZG7gM2+6oTtDhDAQwlsBg0xijwuUTFFuQFSa1+uUPDWnIybAuvuHkE1wOIEWXO2gI7j2A8JbQq4hd+jt03ztXEGlyqJpQ4S5m8BD+oghq0GJKcuyMjJVfGow63d7CAs4DU99U37hHlQ1bI1YPidy6vGLmoYi4TZUYPq9t9vNyO1NtSYwVPO18sLbhsv2TJzQQ1Sw0dAu5llcisY2G1YCIVQO54Klh4D13C1miwtBQuHViO45hfwzPL4i6j9Iiw/Tm52I1U1IYm9w846xdKgNj9ao2+aw1AJfcajS3gej36pd+1YHYtyTHs3Q57X1kj8Hjnq5dLASg4CZ/oTb12TJsfFPzmidqg0O0iAohcFTz6mJ/Gqrdt1UA=",vpe={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"};function Epe(n,e){return t.openBlock(),t.createElementBlock("svg",vpe,e[0]||(e[0]=[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M7 17 17 7m0 0H7m10 0v10"},null,-1)]))}const Sn={render:Epe};/**
|
|
62
62
|
* Vue 3 Carousel 0.15.1
|
|
63
63
|
* (c) 2025
|
|
64
64
|
* @license MIT
|
package/package.json
CHANGED