fluency-v8-components 1.1.4 → 1.1.5

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.
@@ -1,4 +1,4 @@
1
- import { H as e, O as t, bn as r, at as o, ay as n, b9 as i, aX as l, ba as C, aY as g, aM as u, aL as b, W as P, V as d, aB as h, aC as p, X as c, a6 as m, a7 as T, a8 as S, a5 as f, aq as I, bb as y, aZ as D, C as B, u as k, aN as A, as as G, s as F, t as M, bc as w, a_ as H, az as L, al as E, am as N, ah as v, aQ as x, D as R, L as V, E as z, ar as W, aJ as j, aU as K, aV as O, aW as Q, an as U, aP as q, ap as J, l as X, m as Y, n as Z, au as $, aD as _, o as aa, G as sa, a as ea, d as ta, b as ra, e as oa, f as na, i as ia, j as la, k as Ca, h as ga, aR as ua, p as ba, av as Pa, be as da, b0 as ha, a4 as pa, bd as ca, a$ as ma, J as Ta, K as Sa, bf as fa, b1 as Ia, r as ya, aO as Da, aA as Ba, aj as ka, ak as Aa, aS as Ga, M as Fa, aT as Ma, bg as wa, b2 as Ha, w as La, v as Ea, x as Na, y as va, a0 as xa, a1 as Ra, bo as Va, aG as za, bh as Wa, b3 as ja, ai as Ka, F as Oa, aw as Qa, Z as Ua, $ as qa, aH as Ja, z as Xa, R as Ya, B as Za, ax as $a, ao as _a, U as as, Y as ss, ag as es, aa as ts, a9 as rs, bi as os, b4 as ns, bj as is, b5 as ls, aE as Cs, aF as gs, N as us, ab as bs, bk as Ps, ac as ds, ad as hs, b6 as ps, ae as cs, a2 as ms, S as Ts, Q as Ss, I as fs, bl as Is, b7 as ys, T as Ds, aI as Bs, a3 as ks, bm as As, b8 as Gs, P as Fs, q as Ms, af as ws, A as Hs, aK as Ls } from "./index-DUIphBld.mjs";
1
+ import { H as e, O as t, bn as r, at as o, ay as n, b9 as i, aX as l, ba as C, aY as g, aM as u, aL as b, W as P, V as d, aB as h, aC as p, X as c, a6 as m, a7 as T, a8 as S, a5 as f, aq as I, bb as y, aZ as D, C as B, u as k, aN as A, as as G, s as F, t as M, bc as w, a_ as H, az as L, al as E, am as N, ah as v, aQ as x, D as R, L as V, E as z, ar as W, aJ as j, aU as K, aV as O, aW as Q, an as U, aP as q, ap as J, l as X, m as Y, n as Z, au as $, aD as _, o as aa, G as sa, a as ea, d as ta, b as ra, e as oa, f as na, i as ia, j as la, k as Ca, h as ga, aR as ua, p as ba, av as Pa, be as da, b0 as ha, a4 as pa, bd as ca, a$ as ma, J as Ta, K as Sa, bf as fa, b1 as Ia, r as ya, aO as Da, aA as Ba, aj as ka, ak as Aa, aS as Ga, M as Fa, aT as Ma, bg as wa, b2 as Ha, w as La, v as Ea, x as Na, y as va, a0 as xa, a1 as Ra, bo as Va, aG as za, bh as Wa, b3 as ja, ai as Ka, F as Oa, aw as Qa, Z as Ua, $ as qa, aH as Ja, z as Xa, R as Ya, B as Za, ax as $a, ao as _a, U as as, Y as ss, ag as es, aa as ts, a9 as rs, bi as os, b4 as ns, bj as is, b5 as ls, aE as Cs, aF as gs, N as us, ab as bs, bk as Ps, ac as ds, ad as hs, b6 as ps, ae as cs, a2 as ms, S as Ts, Q as Ss, I as fs, bl as Is, b7 as ys, T as Ds, aI as Bs, a3 as ks, bm as As, b8 as Gs, P as Fs, q as Ms, af as ws, A as Hs, aK as Ls } from "./index-Db_VJGBP.mjs";
2
2
  export {
3
3
  e as ActionButtons,
4
4
  t as Active,
@@ -54,7 +54,7 @@ ${Pv(this.code(t,n))}
54
54
  `).reduce((o,s,u)=>(u!==0&&o.insert(`
55
55
  `,{[xa.blotName]:n}),o.insert(s)),a)],new WeakMap)}}i8.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 nv=class nv extends ca{static create(t){const n=super.create();return t?n.setAttribute("data-row",t):n.setAttribute("data-row",o5()),n}static formats(t){if(t.hasAttribute("data-row"))return t.getAttribute("data-row")}cellOffset(){return this.parent?this.parent.children.indexOf(this):-1}format(t,n){t===nv.blotName&&n?this.domNode.setAttribute("data-row",n):super.format(t,n)}row(){return this.parent}rowOffset(){return this.row()?this.row().rowOffset():-1}table(){return this.row()&&this.row().table()}};kt(nv,"blotName","table"),kt(nv,"tagName","TD");let qs=nv;class Iu extends Md{checkMerge(){if(super.checkMerge()&&this.next.children.head!=null){const t=this.children.head.formats(),n=this.children.tail.formats(),r=this.next.children.head.formats(),i=this.next.children.tail.formats();return t.table===n.table&&t.table===r.table&&t.table===i.table}return!1}optimize(t){super.optimize(t),this.children.forEach(n=>{if(n.next==null)return;const r=n.formats(),i=n.next.formats();if(r.table!==i.table){const a=this.splitAfter(n);a&&a.optimize(),this.prev&&this.prev.optimize()}})}rowOffset(){return this.parent?this.parent.children.indexOf(this):-1}table(){return this.parent&&this.parent.parent}}kt(Iu,"blotName","table-row"),kt(Iu,"tagName","TR");class zl extends Md{}kt(zl,"blotName","table-body"),kt(zl,"tagName","TBODY");class ch extends Md{balanceCells(){const t=this.descendants(Iu),n=t.reduce((r,i)=>Math.max(i.children.length,r),0);t.forEach(r=>{new Array(n-r.children.length).fill(0).forEach(()=>{let i;r.children.head!=null&&(i=qs.formats(r.children.head.domNode));const a=this.scroll.create(qs.blotName,i);r.appendChild(a),a.optimize()})})}cells(t){return this.rows().map(n=>n.children.at(t))}deleteColumn(t){const[n]=this.descendant(zl);n==null||n.children.head==null||n.children.forEach(r=>{const i=r.children.at(t);i!=null&&i.remove()})}insertColumn(t){const[n]=this.descendant(zl);n==null||n.children.head==null||n.children.forEach(r=>{const i=r.children.at(t),a=qs.formats(r.children.head.domNode),o=this.scroll.create(qs.blotName,a);r.insertBefore(o,i)})}insertRow(t){const[n]=this.descendant(zl);if(n==null||n.children.head==null)return;const r=o5(),i=this.scroll.create(Iu.blotName);n.children.head.children.forEach(()=>{const o=this.scroll.create(qs.blotName,r);i.appendChild(o)});const a=n.children.at(t);n.insertBefore(i,a)}rows(){const t=this.children.head;return t==null?[]:t.children.map(n=>n)}}kt(ch,"blotName","table-container"),kt(ch,"tagName","TABLE"),ch.allowedChildren=[zl],zl.requiredContainer=ch,zl.allowedChildren=[Iu],Iu.requiredContainer=zl,Iu.allowedChildren=[qs],qs.requiredContainer=Iu;function o5(){return`row-${Math.random().toString(36).slice(2,6)}`}class lle extends Vs{static register(){rt.register(qs),rt.register(Iu),rt.register(zl),rt.register(ch)}constructor(){super(...arguments),this.listenBalanceCells()}balanceTables(){this.quill.scroll.descendants(ch).forEach(t=>{t.balanceCells()})}deleteColumn(){const[t,,n]=this.getTable();n!=null&&(t.deleteColumn(n.cellOffset()),this.quill.update(rt.sources.USER))}deleteRow(){const[,t]=this.getTable();t!=null&&(t.remove(),this.quill.update(rt.sources.USER))}deleteTable(){const[t]=this.getTable();if(t==null)return;const n=t.offset();t.remove(),this.quill.update(rt.sources.USER),this.quill.setSelection(n,rt.sources.SILENT)}getTable(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.quill.getSelection();if(t==null)return[null,null,null,-1];const[n,r]=this.quill.getLine(t.index);if(n==null||n.statics.blotName!==qs.blotName)return[null,null,null,-1];const i=n.parent;return[i.parent.parent,i,n,r]}insertColumn(t){const n=this.quill.getSelection();if(!n)return;const[r,i,a]=this.getTable(n);if(a==null)return;const o=a.cellOffset();r.insertColumn(o+t),this.quill.update(rt.sources.USER);let s=i.rowOffset();t===0&&(s+=1),this.quill.setSelection(n.index+s,n.length,rt.sources.SILENT)}insertColumnLeft(){this.insertColumn(0)}insertColumnRight(){this.insertColumn(1)}insertRow(t){const n=this.quill.getSelection();if(!n)return;const[r,i,a]=this.getTable(n);if(a==null)return;const o=i.rowOffset();r.insertRow(o+t),this.quill.update(rt.sources.USER),t>0?this.quill.setSelection(n,rt.sources.SILENT):this.quill.setSelection(n.index+i.children.length,n.length,rt.sources.SILENT)}insertRowAbove(){this.insertRow(0)}insertRowBelow(){this.insertRow(1)}insertTable(t,n){const r=this.quill.getSelection();if(r==null)return;const i=new Array(t).fill(0).reduce(a=>{const o=new Array(n).fill(`
56
56
  `).join("");return a.insert(o,{table:o5()})},new Rt().retain(r.index));this.quill.updateContents(i,rt.sources.USER),this.quill.setSelection(r.index,rt.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on(rt.events.SCROLL_OPTIMIZE,t=>{t.some(n=>["TD","TR","TBODY","TABLE"].includes(n.target.tagName)?(this.quill.once(rt.events.TEXT_CHANGE,(r,i,a)=>{a===rt.sources.USER&&this.balanceTables()}),!0):!1)})}}const a8=Nu("quill:toolbar");class s5 extends Vs{constructor(t,n){var r,i;if(super(t,n),Array.isArray(this.options.container)){const a=document.createElement("div");a.setAttribute("role","toolbar"),ule(a,this.options.container),(i=(r=t.container)==null?void 0:r.parentNode)==null||i.insertBefore(a,t.container),this.container=a}else typeof this.options.container=="string"?this.container=document.querySelector(this.options.container):this.container=this.options.container;if(!(this.container instanceof HTMLElement)){a8.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(a=>{var s;const o=(s=this.options.handlers)==null?void 0:s[a];o&&this.addHandler(a,o)}),Array.from(this.container.querySelectorAll("button, select")).forEach(a=>{this.attach(a)}),this.quill.on(rt.events.EDITOR_CHANGE,()=>{const[a]=this.quill.selection.getRange();this.update(a)})}addHandler(t,n){this.handlers[t]=n}attach(t){let n=Array.from(t.classList).find(i=>i.indexOf("ql-")===0);if(!n)return;if(n=n.slice(3),t.tagName==="BUTTON"&&t.setAttribute("type","button"),this.handlers[n]==null&&this.quill.scroll.query(n)==null){a8.warn("ignoring attaching to nonexistent format",n,t);return}const r=t.tagName==="SELECT"?"change":"click";t.addEventListener(r,i=>{let a;if(t.tagName==="SELECT"){if(t.selectedIndex<0)return;const s=t.options[t.selectedIndex];s.hasAttribute("selected")?a=!1:a=s.value||!1}else t.classList.contains("ql-active")?a=!1:a=t.value||!t.hasAttribute("value"),i.preventDefault();this.quill.focus();const[o]=this.quill.selection.getRange();if(this.handlers[n]!=null)this.handlers[n].call(this,a);else if(this.quill.scroll.query(n).prototype instanceof Do){if(a=prompt(`Enter ${n}`),!a)return;this.quill.updateContents(new Rt().retain(o.index).delete(o.length).insert({[n]:a}),rt.sources.USER)}else this.quill.format(n,a,rt.sources.USER);this.update(o)}),this.controls.push([n,t])}update(t){const n=t==null?{}:this.quill.getFormat(t);this.controls.forEach(r=>{const[i,a]=r;if(a.tagName==="SELECT"){let o=null;if(t==null)o=null;else if(n[i]==null)o=a.querySelector("option[selected]");else if(!Array.isArray(n[i])){let s=n[i];typeof s=="string"&&(s=s.replace(/"/g,'\\"')),o=a.querySelector(`option[value="${s}"]`)}o==null?(a.value="",a.selectedIndex=-1):o.selected=!0}else if(t==null)a.classList.remove("ql-active"),a.setAttribute("aria-pressed","false");else if(a.hasAttribute("value")){const o=n[i],s=o===a.getAttribute("value")||o!=null&&o.toString()===a.getAttribute("value")||o==null&&!a.getAttribute("value");a.classList.toggle("ql-active",s),a.setAttribute("aria-pressed",s.toString())}else{const o=n[i]!=null;a.classList.toggle("ql-active",o),a.setAttribute("aria-pressed",o.toString())}})}}s5.DEFAULTS={};function o8(e,t,n){const r=document.createElement("button");r.setAttribute("type","button"),r.classList.add(`ql-${t}`),r.setAttribute("aria-pressed","false"),n!=null?(r.value=n,r.setAttribute("aria-label",`${t}: ${n}`)):r.setAttribute("aria-label",t),e.appendChild(r)}function ule(e,t){Array.isArray(t[0])||(t=[t]),t.forEach(n=>{const r=document.createElement("span");r.classList.add("ql-formats"),n.forEach(i=>{if(typeof i=="string")o8(r,i);else{const a=Object.keys(i)[0],o=i[a];Array.isArray(o)?cle(r,a,o):o8(r,a,o)}}),e.appendChild(r)})}function cle(e,t,n){const r=document.createElement("select");r.classList.add(`ql-${t}`),n.forEach(i=>{const a=document.createElement("option");i!==!1?a.setAttribute("value",String(i)):a.setAttribute("selected","selected"),r.appendChild(a)}),e.appendChild(r)}s5.DEFAULTS={container:null,handlers:{clean(){const e=this.quill.getSelection();if(e!=null)if(e.length===0){const t=this.quill.getFormat();Object.keys(t).forEach(n=>{this.quill.scroll.query(n,jt.INLINE)!=null&&this.quill.format(n,!1,rt.sources.USER)})}else this.quill.removeFormat(e.index,e.length,rt.sources.USER)},direction(e){const{align:t}=this.quill.getFormat();e==="rtl"&&t==null?this.quill.format("align","right",rt.sources.USER):!e&&t==="right"&&this.quill.format("align",!1,rt.sources.USER),this.quill.format("direction",e,rt.sources.USER)},indent(e){const t=this.quill.getSelection(),n=this.quill.getFormat(t),r=parseInt(n.indent||0,10);if(e==="+1"||e==="-1"){let i=e==="+1"?1:-1;n.direction==="rtl"&&(i*=-1),this.quill.format("indent",r+i,rt.sources.USER)}},link(e){e===!0&&(e=prompt("Enter link URL:")),this.quill.format("link",e,rt.sources.USER)},list(e){const t=this.quill.getSelection(),n=this.quill.getFormat(t);e==="check"?n.list==="checked"||n.list==="unchecked"?this.quill.format("list",!1,rt.sources.USER):this.quill.format("list","unchecked",rt.sources.USER):this.quill.format("list",e,rt.sources.USER)}}};const Ale='<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>',dle='<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>',fle='<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>',hle='<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>',ple='<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>',mle='<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>',gle='<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>',vle='<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>',s8='<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>',Mm={align:{"":Ale,center:dle,right:fle,justify:hle},background:ple,blockquote:mle,bold:gle,clean:vle,code:s8,"code-block":s8,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>'},yle='<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 l8=0;function u8(e,t){e.setAttribute(t,`${e.getAttribute(t)!=="true"}`)}class Kv{constructor(t){this.select=t,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",n=>{switch(n.key){case"Enter":this.togglePicker();break;case"Escape":this.escape(),n.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}togglePicker(){this.container.classList.toggle("ql-expanded"),u8(this.label,"aria-expanded"),u8(this.options,"aria-hidden")}buildItem(t){const n=document.createElement("span");n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item");const r=t.getAttribute("value");return r&&n.setAttribute("data-value",r),t.textContent&&n.setAttribute("data-label",t.textContent),n.addEventListener("click",()=>{this.selectItem(n,!0)}),n.addEventListener("keydown",i=>{switch(i.key){case"Enter":this.selectItem(n,!0),i.preventDefault();break;case"Escape":this.escape(),i.preventDefault();break}}),n}buildLabel(){const t=document.createElement("span");return t.classList.add("ql-picker-label"),t.innerHTML=yle,t.tabIndex="0",t.setAttribute("role","button"),t.setAttribute("aria-expanded","false"),this.container.appendChild(t),t}buildOptions(){const t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id=`ql-picker-options-${l8}`,l8+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,Array.from(this.select.options).forEach(n=>{const r=this.buildItem(n);t.appendChild(r),n.selected===!0&&this.selectItem(r)}),this.container.appendChild(t)}buildPicker(){Array.from(this.select.attributes).forEach(t=>{this.container.setAttribute(t.name,t.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(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const r=this.container.querySelector(".ql-selected");t!==r&&(r!=null&&r.classList.remove("ql-selected"),t!=null&&(t.classList.add("ql-selected"),this.select.selectedIndex=Array.from(t.parentNode.children).indexOf(t),t.hasAttribute("data-value")?this.label.setAttribute("data-value",t.getAttribute("data-value")):this.label.removeAttribute("data-value"),t.hasAttribute("data-label")?this.label.setAttribute("data-label",t.getAttribute("data-label")):this.label.removeAttribute("data-label"),n&&(this.select.dispatchEvent(new Event("change")),this.close())))}update(){let t;if(this.select.selectedIndex>-1){const r=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];t=this.select.options[this.select.selectedIndex],this.selectItem(r)}else this.selectItem(null);const n=t!=null&&t!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}class c8 extends Kv{constructor(t,n){super(t),this.label.innerHTML=n,this.container.classList.add("ql-color-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).slice(0,7).forEach(r=>{r.classList.add("ql-primary")})}buildItem(t){const n=super.buildItem(t);return n.style.backgroundColor=t.getAttribute("value")||"",n}selectItem(t,n){super.selectItem(t,n);const r=this.label.querySelector(".ql-color-label"),i=t&&t.getAttribute("data-value")||"";r&&(r.tagName==="line"?r.style.stroke=i:r.style.fill=i)}}class A8 extends Kv{constructor(t,n){super(t),this.container.classList.add("ql-icon-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).forEach(r=>{r.innerHTML=n[r.getAttribute("data-value")||""]}),this.defaultItem=this.container.querySelector(".ql-selected"),this.selectItem(this.defaultItem)}selectItem(t,n){super.selectItem(t,n);const r=t||this.defaultItem;if(r!=null){if(this.label.innerHTML===r.innerHTML)return;this.label.innerHTML=r.innerHTML}}}const _le=e=>{const{overflowY:t}=getComputedStyle(e,null);return t!=="visible"&&t!=="clip"};let d8=class{constructor(t,n){this.quill=t,this.boundsContainer=n||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,_le(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(t){const n=t.left+t.width/2-this.root.offsetWidth/2,r=t.bottom+this.quill.root.scrollTop;this.root.style.left=`${n}px`,this.root.style.top=`${r}px`,this.root.classList.remove("ql-flip");const i=this.boundsContainer.getBoundingClientRect(),a=this.root.getBoundingClientRect();let o=0;if(a.right>i.right&&(o=i.right-a.right,this.root.style.left=`${n+o}px`),a.left<i.left&&(o=i.left-a.left,this.root.style.left=`${n+o}px`),a.bottom>i.bottom){const s=a.bottom-a.top,u=t.bottom-t.top+s;this.root.style.top=`${r-u}px`,this.root.classList.add("ql-flip")}return o}show(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}};const ble=[!1,"center","right","justify"],wle=["#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"],Ble=[!1,"serif","monospace"],xle=["1","2","3",!1],Cle=["small",!1,"large","huge"];class km extends sh{constructor(t,n){super(t,n);const r=i=>{if(!document.body.contains(t.root)){document.body.removeEventListener("click",r);return}this.tooltip!=null&&!this.tooltip.root.contains(i.target)&&document.activeElement!==this.tooltip.textbox&&!this.quill.hasFocus()&&this.tooltip.hide(),this.pickers!=null&&this.pickers.forEach(a=>{a.container.contains(i.target)||a.close()})};t.emitter.listenDOM("click",document.body,r)}addModule(t){const n=super.addModule(t);return t==="toolbar"&&this.extendToolbar(n),n}buildButtons(t,n){Array.from(t).forEach(r=>{(r.getAttribute("class")||"").split(/\s+/).forEach(a=>{if(a.startsWith("ql-")&&(a=a.slice(3),n[a]!=null))if(a==="direction")r.innerHTML=n[a][""]+n[a].rtl;else if(typeof n[a]=="string")r.innerHTML=n[a];else{const o=r.value||"";o!=null&&n[a][o]&&(r.innerHTML=n[a][o])}})})}buildPickers(t,n){this.pickers=Array.from(t).map(i=>{if(i.classList.contains("ql-align")&&(i.querySelector("option")==null&&Em(i,ble),typeof n.align=="object"))return new A8(i,n.align);if(i.classList.contains("ql-background")||i.classList.contains("ql-color")){const a=i.classList.contains("ql-background")?"background":"color";return i.querySelector("option")==null&&Em(i,wle,a==="background"?"#ffffff":"#000000"),new c8(i,n[a])}return i.querySelector("option")==null&&(i.classList.contains("ql-font")?Em(i,Ble):i.classList.contains("ql-header")?Em(i,xle):i.classList.contains("ql-size")&&Em(i,Cle)),new Kv(i)});const r=()=>{this.pickers.forEach(i=>{i.update()})};this.quill.on(Dt.events.EDITOR_CHANGE,r)}}km.DEFAULTS=Vc({},sh.DEFAULTS,{modules:{toolbar:{handlers:{formula(){this.quill.theme.tooltip.edit("formula")},image(){let e=this.container.querySelector("input.ql-image[type=file]");e==null&&(e=document.createElement("input"),e.setAttribute("type","file"),e.setAttribute("accept",this.quill.uploader.options.mimetypes.join(", ")),e.classList.add("ql-image"),e.addEventListener("change",()=>{const t=this.quill.getSelection(!0);this.quill.uploader.upload(t,e.files),e.value=""}),this.container.appendChild(e)),e.click()},video(){this.quill.theme.tooltip.edit("video")}}}}});class f8 extends d8{constructor(t,n){super(t,n),this.textbox=this.root.querySelector('input[type="text"]'),this.listen()}listen(){this.textbox.addEventListener("keydown",t=>{t.key==="Enter"?(this.save(),t.preventDefault()):t.key==="Escape"&&(this.cancel(),t.preventDefault())})}cancel(){this.hide(),this.restoreFocus()}edit(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",n=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;n!=null?this.textbox.value=n:t!==this.root.getAttribute("data-mode")&&(this.textbox.value="");const r=this.quill.getBounds(this.quill.selection.savedRange);r!=null&&this.position(r),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute(`data-${t}`)||""),this.root.setAttribute("data-mode",t)}restoreFocus(){this.quill.focus({preventScroll:!0})}save(){let{value:t}=this.textbox;switch(this.root.getAttribute("data-mode")){case"link":{const{scrollTop:n}=this.quill.root;this.linkRange?(this.quill.formatText(this.linkRange,"link",t,Dt.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",t,Dt.sources.USER)),this.quill.root.scrollTop=n;break}case"video":t=Sle(t);case"formula":{if(!t)break;const n=this.quill.getSelection(!0);if(n!=null){const r=n.index+n.length;this.quill.insertEmbed(r,this.root.getAttribute("data-mode"),t,Dt.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(r+1," ",Dt.sources.USER),this.quill.setSelection(r+2,Dt.sources.USER)}break}}this.textbox.value="",this.hide()}}function Sle(e){let t=e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return t?`${t[1]||"https"}://www.youtube.com/embed/${t[2]}?showinfo=0`:(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?`${t[1]||"https"}://player.vimeo.com/video/${t[2]}/`:e}function Em(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;t.forEach(r=>{const i=document.createElement("option");r===n?i.setAttribute("selected","selected"):i.setAttribute("value",String(r)),e.appendChild(i)})}const Mle=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class h8 extends f8{constructor(t,n){super(t,n),this.quill.on(Dt.events.EDITOR_CHANGE,(r,i,a,o)=>{if(r===Dt.events.SELECTION_CHANGE)if(i!=null&&i.length>0&&o===Dt.sources.USER){this.show(),this.root.style.left="0px",this.root.style.width="",this.root.style.width=`${this.root.offsetWidth}px`;const s=this.quill.getLines(i.index,i.length);if(s.length===1){const u=this.quill.getBounds(i);u!=null&&this.position(u)}else{const u=s[s.length-1],c=this.quill.getIndex(u),A=Math.min(u.length()-1,i.index+i.length-c),d=this.quill.getBounds(new Sd(c,A));d!=null&&this.position(d)}}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(Dt.events.SCROLL_OPTIMIZE,()=>{setTimeout(()=>{if(this.root.classList.contains("ql-hidden"))return;const t=this.quill.getSelection();if(t!=null){const n=this.quill.getBounds(t);n!=null&&this.position(n)}},1)})}cancel(){this.show()}position(t){const n=super.position(t),r=this.root.querySelector(".ql-tooltip-arrow");return r.style.marginLeft="",n!==0&&(r.style.marginLeft=`${-1*n-r.offsetWidth/2}px`),n}}kt(h8,"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 p8 extends km{constructor(t,n){n.modules.toolbar!=null&&n.modules.toolbar.container==null&&(n.modules.toolbar.container=Mle),super(t,n),this.quill.container.classList.add("ql-bubble")}extendToolbar(t){this.tooltip=new h8(this.quill,this.options.bounds),t.container!=null&&(this.tooltip.root.appendChild(t.container),this.buildButtons(t.container.querySelectorAll("button"),Mm),this.buildPickers(t.container.querySelectorAll("select"),Mm))}}p8.DEFAULTS=Vc({},km.DEFAULTS,{modules:{toolbar:{handlers:{link(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1,rt.sources.USER)}}}}});const kle=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class m8 extends f8{constructor(){super(...arguments);kt(this,"preview",this.root.querySelector("a.ql-preview"))}listen(){super.listen(),this.root.querySelector("a.ql-action").addEventListener("click",n=>{this.root.classList.contains("ql-editing")?this.save():this.edit("link",this.preview.textContent),n.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",n=>{if(this.linkRange!=null){const r=this.linkRange;this.restoreFocus(),this.quill.formatText(r,"link",!1,Dt.sources.USER),delete this.linkRange}n.preventDefault(),this.hide()}),this.quill.on(Dt.events.SELECTION_CHANGE,(n,r,i)=>{if(n!=null){if(n.length===0&&i===Dt.sources.USER){const[a,o]=this.quill.scroll.descendant(Kc,n.index);if(a!=null){this.linkRange=new Sd(n.index-o,a.length());const s=Kc.formats(a.domNode);this.preview.textContent=s,this.preview.setAttribute("href",s),this.show();const u=this.quill.getBounds(this.linkRange);u!=null&&this.position(u);return}}else delete this.linkRange;this.hide()}})}show(){super.show(),this.root.removeAttribute("data-mode")}}kt(m8,"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 g8 extends km{constructor(t,n){n.modules.toolbar!=null&&n.modules.toolbar.container==null&&(n.modules.toolbar.container=kle),super(t,n),this.quill.container.classList.add("ql-snow")}extendToolbar(t){t.container!=null&&(t.container.classList.add("ql-snow"),this.buildButtons(t.container.querySelectorAll("button"),Mm),this.buildPickers(t.container.querySelectorAll("select"),Mm),this.tooltip=new m8(this.quill,this.options.bounds),t.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"k",shortKey:!0},(n,r)=>{t.handlers.link.call(t,!r.format.link)}))}}g8.DEFAULTS=Vc({},km.DEFAULTS,{modules:{toolbar:{handlers:{link(e){if(e){const t=this.quill.getSelection();if(t==null||t.length===0)return;let n=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(n)&&n.indexOf("mailto:")!==0&&(n=`mailto:${n}`);const{tooltip:r}=this.quill.theme;r.edit("link",n)}else this.quill.format("link",!1,rt.sources.USER)}}}}}),rt.register({"attributors/attribute/direction":UT,"attributors/class/align":OT,"attributors/class/background":pse,"attributors/class/color":hse,"attributors/class/direction":PT,"attributors/class/font":QT,"attributors/class/size":jT,"attributors/style/align":IT,"attributors/style/background":qw,"attributors/style/color":zw,"attributors/style/direction":YT,"attributors/style/font":RT,"attributors/style/size":VT},!0),rt.register({"formats/align":OT,"formats/direction":PT,"formats/indent":ale,"formats/background":qw,"formats/color":zw,"formats/font":QT,"formats/size":jT,"formats/blockquote":e5,"formats/code-block":xa,"formats/header":t5,"formats/list":Bm,"formats/bold":xm,"formats/code":Kw,"formats/italic":n5,"formats/link":Kc,"formats/script":r5,"formats/strike":i5,"formats/underline":a5,"formats/formula":zv,"formats/image":ole,"formats/video":qv,"modules/syntax":i8,"modules/table":lle,"modules/toolbar":s5,"themes/bubble":p8,"themes/snow":g8,"ui/icons":Mm,"ui/picker":Kv,"ui/icon-picker":A8,"ui/color-picker":c8,"ui/tooltip":d8},!0);const Ele={props:{modelValue:{type:String,default:""}},data(){return{editor:null}},mounted(){if(this.editor=new rt("#editor",{modules:{toolbar:"#toolbar"},theme:"snow",formats:["font","size","bold","underline","header","italic","strike","link","color","background","list","align"]}),this.modelValue){let e="";this.modelValue.startsWith("<p>")?e=this.modelValue:e=this.editor.clipboard.convertHTML(this.modelValue).ops[0].insert.split(`
57
- `).map(i=>`<p>${i}</p>`).join("");const t=document.querySelector("#editor .ql-editor");t.innerHTML=e}this.editor.on("text-change",()=>{this.$emit("update:modelValue",this.editor.root.innerHTML)})}};function Lle(e,t,n,r,i,a){return t[0]||(t[0]=l.createStaticVNode('<div id="toolbar" class="bg-blue-100 dark:bg-blue-200"><span class="ql-formats"><select class="ql-font"></select><select class="ql-size"></select></span><span class="ql-formats"><button class="ql-bold"></button><button class="ql-italic"></button><button class="ql-underline"></button><button class="ql-strike"></button></span><span class="ql-formats"><select class="ql-color"></select><select class="ql-background"></select></span><span class="ql-formats"><button class="ql-list" value="ordered"></button><button class="ql-list" value="bullet"></button><select class="ql-align"></select></span><span class="ql-formats"><button class="ql-link"></button></span></div><div id="editor" class="min-h-40"></div>',2))}const v8=cr(Ele,[["render",Lle]]),Tle={class:"mt-2"},Nle={class:"text-sm overflow-x-auto text-ellipsis"},Fle=l.defineComponent({__name:"ConfirmDialog",setup(e,{expose:t}){const n=l.ref(!1),r=l.ref(""),i=l.ref(""),a=l.ref(()=>{}),o=l.ref(()=>{}),s=l.ref("Yes"),u=l.ref("No"),c=l.ref(!1);function A(p,m,y,v,g="Yes",_="No"){i.value=p,r.value=m,a.value=y,o.value=v,n.value=!0,s.value=g,u.value=_}async function d(){c.value=!0,await a.value(),c.value=!1,h()}function f(){o.value&&o.value(),h()}function h(){n.value=!1}return t({openModal:A}),(p,m)=>(l.openBlock(),l.createBlock(l.unref(Ks),{open:n.value,title:i.value,onClose:h},{content:l.withCtx(()=>[l.createElementVNode("div",Tle,[l.createElementVNode("p",Nle,l.toDisplayString(r.value),1)])]),footer:l.withCtx(()=>[l.createVNode(l.unref(is),{text:s.value,loading:c.value,onClick:d},null,8,["text","loading"]),l.createVNode(l.unref(is),{text:u.value,color:"red",onClick:f},null,8,["text"])]),_:1},8,["open","title"]))}}),Ole={class:"mt-2"},Ile={class:"break-all text-sm text-gray-600 dark:text-gray-400 font-bold"},Dle={class:"text-sm text-gray-500"},Ule=l.defineComponent({__name:"CopyDialog",emits:["notify"],setup(e,{expose:t,emit:n}){const r=n,i=l.ref(!1),a=l.ref(""),o=l.ref(""),s=l.ref("");function u(d,f,h){o.value=d,a.value=f,s.value=h,i.value=!0}function c(){navigator.clipboard.writeText(s.value),r("notify","Token copied to clipboard","",!0)}function A(){i.value=!1}return t({openModal:u}),(d,f)=>(l.openBlock(),l.createBlock(l.unref(Ks),{open:i.value,title:o.value,onClose:A},{content:l.withCtx(()=>[l.createElementVNode("div",Ole,[l.createElementVNode("p",Ile,l.toDisplayString(s.value),1),l.createElementVNode("p",Dle,l.toDisplayString(a.value),1)])]),footer:l.withCtx(()=>[l.createVNode(l.unref(is),{text:"Copy",color:"green",onClick:c}),l.createVNode(l.unref(is),{text:"Close",color:"red",onClick:A})]),_:1},8,["open","title"]))}}),y8={__name:"ChooseValueDialog",props:{title:{type:String,default:"Add"},nameField:{type:String,default:"Name"},saveButtonText:{type:String,default:"Save"},values:{type:Array,default:()=>[]}},emits:["save"],setup(e,{expose:t,emit:n}){const r=e,i=n,a=l.ref(!1),o=l.ref({}),s=l.computed(()=>{const d=r.values.find(f=>f.value===o.value.key);return d?d.values.map(f=>({label:f,value:f})):[]});function u(d){const f=r.values.find(h=>h.value===d);f&&(o.value.val=f.values[0])}function c(){a.value=!1}function A(d){a.value=!0,o.value={}}return t({open:a,openModal:A,close:c}),(d,f)=>(l.openBlock(),l.createBlock(l.unref(Ks),{open:a.value,title:e.title},{content:l.withCtx(()=>[l.createVNode(l.unref(Pi),{fieldName:e.nameField},{default:l.withCtx(()=>[l.createVNode(l.unref(tr),{modelValue:o.value.key,"onUpdate:modelValue":[f[0]||(f[0]=h=>o.value.key=h),f[1]||(f[1]=h=>u(h))],options:e.values},null,8,["modelValue","options"])]),_:1},8,["fieldName"]),s.value.length>1?(l.openBlock(),l.createBlock(l.unref(Pi),{key:0,fieldName:"Select Attribute Value"},{default:l.withCtx(()=>[l.createVNode(l.unref(tr),{modelValue:o.value.val,"onUpdate:modelValue":f[2]||(f[2]=h=>o.value.val=h),options:s.value},null,8,["modelValue","options"])]),_:1})):l.createCommentVNode("",!0),l.createVNode(l.unref(Pi),{fieldName:"Selected Value"},{default:l.withCtx(()=>[l.createVNode(l.unref(JL),{value:o.value.val,readonly:""},null,8,["value"])]),_:1})]),footer:l.withCtx(()=>[l.createVNode(l.unref(Td),{saveText:e.saveButtonText,onSave:f[3]||(f[3]=h=>i("save",o.value)),onClose:c},null,8,["saveText"])]),_:1},8,["open","title"]))}},Ple={__name:"NameDialog",props:{title:{type:String,default:"Add"},nameField:{type:String,default:"Name"},saveButtonText:{type:String,default:"Save"}},emits:["save"],setup(e,{expose:t,emit:n}){const r=n,i=l.ref(!1),a=l.ref({});function o(){i.value=!1}function s(u){i.value=!0,a.value={name:u.name}}return t({open:i,openModal:s,close:o}),(u,c)=>(l.openBlock(),l.createBlock(l.unref(Ks),{open:i.value,title:e.title},{content:l.withCtx(()=>[l.createVNode(l.unref(Pi),{fieldName:e.nameField},{default:l.withCtx(()=>[l.createVNode(l.unref(qa),{modelValue:a.value.name,"onUpdate:modelValue":c[0]||(c[0]=A=>a.value.name=A)},null,8,["modelValue"])]),_:1},8,["fieldName"])]),footer:l.withCtx(()=>[l.createVNode(l.unref(Td),{saveText:e.saveButtonText,onSave:c[1]||(c[1]=A=>r("save",a.value)),onClose:o},null,8,["saveText"])]),_:1},8,["open","title"]))}},Yle={__name:"NameDescDialog",props:{title:{type:String,default:"Add"},saveButtonText:{type:String,default:"Save"}},emits:["save"],setup(e,{expose:t,emit:n}){const r=n,i=l.ref(!1),a=l.ref({});function o(){i.value=!1}function s(u){i.value=!0,a.value={name:u.name,description:u.description||""}}return t({open:i,openModal:s,close:o}),(u,c)=>(l.openBlock(),l.createBlock(l.unref(Ks),{open:i.value,title:e.title},{content:l.withCtx(()=>[l.createVNode(l.unref(Pi),{fieldName:"Name"},{default:l.withCtx(()=>[l.createVNode(l.unref(qa),{modelValue:a.value.name,"onUpdate:modelValue":c[0]||(c[0]=A=>a.value.name=A)},null,8,["modelValue"])]),_:1}),l.createVNode(l.unref(Pi),{fieldName:"Description"},{default:l.withCtx(()=>[l.createVNode(l.unref(qa),{modelValue:a.value.description,"onUpdate:modelValue":c[1]||(c[1]=A=>a.value.description=A)},null,8,["modelValue"])]),_:1})]),footer:l.withCtx(()=>[l.createVNode(l.unref(Td),{saveText:e.saveButtonText,onSave:c[2]||(c[2]=A=>r("save",a.value)),onClose:o},null,8,["saveText"])]),_:1},8,["open","title"]))}};function Hle(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25H12"})])}function Lm(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function _8(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m4.5 12.75 6 6 9-13.5"})])}function Gv(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"})])}function b8(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])}function Qle(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 15 12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9"})])}function w8(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function B8(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z"})])}function Ld(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function l5(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})])}const Rle={class:"flex"},jle={class:"flex-shrink-0"},Vle={class:"ml-3"},zle={key:0,class:"text-sm font-medium text-green-800"},qle={key:1,class:"text-sm font-medium text-red-800"},Kle={key:2,class:"mt-2 text-sm text-green-700"},Gle={key:3,class:"mt-2 text-sm text-red-700"},Wle={class:"ml-auto pl-3"},Xle={class:"-mx-1.5 -my-1.5"},Jle={class:"flex"},Zle={class:"flex-shrink-0"},$le={class:"ml-3"},eue={key:0,class:"text-sm font-medium text-green-800"},tue={key:1,class:"text-sm font-medium text-red-800"},nue={key:2,class:"mt-2 text-sm text-green-700"},rue={key:3,class:"mt-2 text-sm text-red-700"},iue={class:"ml-auto pl-3"},aue={class:"-mx-1.5 -my-1.5"},oue=l.defineComponent({__name:"Notify",setup(e,{expose:t}){const n=l.ref(!1),r=l.ref(""),i=l.ref(!1),a=l.ref(""),o=l.ref(),s=l.ref(!1);function u(d,f,h){clearTimeout(o.value),a.value=d,r.value=f,i.value=h,n.value=!0;const p=window.document.querySelectorAll("#headlessui-portal-root");s.value=p&&p.length>0&&p[0].childElementCount>1,o.value=setTimeout(()=>{c()},3e3)}function c(){n.value=!1}function A(){return i.value?"green":"red"}return t({openModal:u}),(d,f)=>(l.openBlock(),l.createBlock(l.unref(Hc),{as:"template",show:n.value},{default:l.withCtx(()=>[s.value?(l.openBlock(),l.createBlock(l.unref(Wf),{key:0,as:"div",class:l.normalizeClass([i.value?"bg-green-50":"bg-red-50","rounded-md p-4 fixed bottom-5 z-50"]),style:{"min-width":"75%",left:"50%",transform:"translateX(-50%)"},onClose:c},{default:l.withCtx(()=>[l.createElementVNode("div",Rle,[l.createElementVNode("div",jle,[i.value?(l.openBlock(),l.createBlock(l.unref(Lm),{key:0,class:"icon-md text-green-400","aria-hidden":"true"})):(l.openBlock(),l.createBlock(l.unref(Ld),{key:1,class:"icon-md text-red-400","aria-hidden":"true"}))]),l.createElementVNode("div",Vle,[i.value?(l.openBlock(),l.createElementBlock("h3",zle,l.toDisplayString(a.value),1)):(l.openBlock(),l.createElementBlock("h3",qle,l.toDisplayString(a.value),1)),i.value?(l.openBlock(),l.createElementBlock("div",Kle,[l.createElementVNode("p",null,l.toDisplayString(r.value),1)])):(l.openBlock(),l.createElementBlock("div",Gle,[l.createElementVNode("p",null,l.toDisplayString(r.value),1)]))]),l.createElementVNode("div",Wle,[l.createElementVNode("div",Xle,[l.createVNode(l.unref(Gc),{color:A(),onClick:c},{default:l.withCtx(()=>[l.createVNode(l.unref(_d),{class:"icon-md","aria-hidden":"true"})]),_:1},8,["color"])])])])]),_:1},8,["class"])):(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass([i.value?"bg-green-50":"bg-red-50","rounded-md p-4 fixed bottom-5 z-50"]),style:{"min-width":"75%",left:"50%",transform:"translateX(-50%)"}},[l.createElementVNode("div",Jle,[l.createElementVNode("div",Zle,[i.value?(l.openBlock(),l.createBlock(l.unref(Lm),{key:0,class:"icon-md text-green-400","aria-hidden":"true"})):(l.openBlock(),l.createBlock(l.unref(Ld),{key:1,class:"icon-md text-red-400","aria-hidden":"true"}))]),l.createElementVNode("div",$le,[i.value?(l.openBlock(),l.createElementBlock("h3",eue,l.toDisplayString(a.value),1)):(l.openBlock(),l.createElementBlock("h3",tue,l.toDisplayString(a.value),1)),i.value?(l.openBlock(),l.createElementBlock("div",nue,[l.createElementVNode("p",null,l.toDisplayString(r.value),1)])):(l.openBlock(),l.createElementBlock("div",rue,[l.createElementVNode("p",null,l.toDisplayString(r.value),1)]))]),l.createElementVNode("div",iue,[l.createElementVNode("div",aue,[l.createVNode(l.unref(Gc),{color:A(),onClick:c},{default:l.withCtx(()=>[l.createVNode(l.unref(_d),{class:"icon-md","aria-hidden":"true"})]),_:1},8,["color"])])])])],2))]),_:1},8,["show"]))}}),sue={class:"flex"},lue={class:"flex-shrink-0"},uue={class:"ml-3"},cue={key:0,class:"text-sm font-medium text-green-800"},Aue={key:1,class:"text-sm font-medium text-red-800"},due={key:2,class:"mt-2 text-sm text-green-700"},fue={role:"list",class:"list-disc space-y-1 pl-5"},hue={key:3,class:"mt-2 text-sm text-red-700"},pue={role:"list",class:"list-disc space-y-1 pl-5"},mue={class:"ml-auto pl-3"},gue={class:"-mx-1.5 -my-1.5"},vue={class:"flex"},yue={class:"flex-shrink-0"},_ue={class:"ml-3"},bue={key:0,class:"text-sm font-medium text-green-800"},wue={key:1,class:"text-sm font-medium text-red-800"},Bue={key:2,class:"mt-2 text-sm text-green-700"},xue={role:"list",class:"list-disc space-y-1 pl-5"},Cue={key:3,class:"mt-2 text-sm text-red-700"},Sue={role:"list",class:"list-disc space-y-1 pl-5"},Mue={class:"ml-auto pl-3"},kue={class:"-mx-1.5 -my-1.5"},x8=l.defineComponent({__name:"NotifyList",setup(e,{expose:t}){const n=l.ref(!1),r=l.ref(),i=l.ref(!1),a=l.ref(""),o=l.ref(),s=l.ref(!1);function u(d,f,h){clearTimeout(o.value),a.value=d,r.value=f,i.value=h,n.value=!0;const p=window.document.querySelectorAll("#headlessui-portal-root");s.value=p&&p.length>0&&p[0].childElementCount>1,o.value=setTimeout(()=>{c()},5e3)}function c(){n.value=!1}function A(){return i.value?"green":"red"}return t({openModal:u}),(d,f)=>(l.openBlock(),l.createBlock(l.unref(Hc),{as:"template",show:n.value},{default:l.withCtx(()=>[s.value?(l.openBlock(),l.createBlock(l.unref(Wf),{key:0,as:"div",class:l.normalizeClass([i.value?"bg-green-50":"bg-red-50","rounded-md p-4 fixed bottom-5 z-50"]),style:{"min-width":"75%",left:"50%",transform:"translateX(-50%)"},onClose:c},{default:l.withCtx(()=>[l.createElementVNode("div",sue,[l.createElementVNode("div",lue,[i.value?(l.openBlock(),l.createBlock(l.unref(Lm),{key:0,class:"icon-md text-green-400","aria-hidden":"true"})):(l.openBlock(),l.createBlock(l.unref(Ld),{key:1,class:"icon-md text-red-400","aria-hidden":"true"}))]),l.createElementVNode("div",uue,[i.value?(l.openBlock(),l.createElementBlock("h3",cue,l.toDisplayString(a.value),1)):(l.openBlock(),l.createElementBlock("h3",Aue,l.toDisplayString(a.value),1)),i.value?(l.openBlock(),l.createElementBlock("div",due,[l.createElementVNode("ul",fue,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.value,h=>(l.openBlock(),l.createElementBlock("li",{key:h},l.toDisplayString(h),1))),128))])])):(l.openBlock(),l.createElementBlock("div",hue,[l.createElementVNode("ul",pue,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.value,h=>(l.openBlock(),l.createElementBlock("li",{key:h},l.toDisplayString(h),1))),128))])]))]),l.createElementVNode("div",mue,[l.createElementVNode("div",gue,[l.createVNode(l.unref(Gc),{color:A(),onClick:c},{default:l.withCtx(()=>[l.createVNode(l.unref(_d),{class:"icon-md","aria-hidden":"true"})]),_:1},8,["color"])])])])]),_:1},8,["class"])):(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass([i.value?"bg-green-50":"bg-red-50","rounded-md p-4 fixed bottom-5 z-50"]),style:{"min-width":"75%",left:"50%",transform:"translateX(-50%)"}},[l.createElementVNode("div",vue,[l.createElementVNode("div",yue,[i.value?(l.openBlock(),l.createBlock(l.unref(Lm),{key:0,class:"icon-md text-green-400","aria-hidden":"true"})):(l.openBlock(),l.createBlock(l.unref(Ld),{key:1,class:"icon-md text-red-400","aria-hidden":"true"}))]),l.createElementVNode("div",_ue,[i.value?(l.openBlock(),l.createElementBlock("h3",bue,l.toDisplayString(a.value),1)):(l.openBlock(),l.createElementBlock("h3",wue,l.toDisplayString(a.value),1)),i.value?(l.openBlock(),l.createElementBlock("div",Bue,[l.createElementVNode("ul",xue,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.value,h=>(l.openBlock(),l.createElementBlock("li",{key:h},l.toDisplayString(h),1))),128))])])):(l.openBlock(),l.createElementBlock("div",Cue,[l.createElementVNode("ul",Sue,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.value,h=>(l.openBlock(),l.createElementBlock("li",{key:h},l.toDisplayString(h),1))),128))])]))]),l.createElementVNode("div",Mue,[l.createElementVNode("div",kue,[l.createVNode(l.unref(Gc),{color:A(),onClick:c},{default:l.withCtx(()=>[l.createVNode(l.unref(_d),{class:"icon-md","aria-hidden":"true"})]),_:1},8,["color"])])])])],2))]),_:1},8,["show"]))}}),Eue={__name:"ProgressDialog",emits:["close"],setup(e,{expose:t,emit:n}){const r=n,i=l.ref(!1),a=l.ref("Loading"),o=l.ref(0),s=l.ref(()=>{}),u=l.ref(),c=h=>{o.value+=1,o.value<100?u.value=setTimeout(()=>{s.value(h)},h):(A(),r("close"))};function A(){clearTimeout(u.value),i.value=!1}function d(h,p=0,m=100,y=c){i.value=!0,a.value=h,o.value=p,m?(s.value=c,s.value(m)):(s.value=y,s.value())}function f(h){o.value=h}return t({openModal:d,updateProgress:f,close:A}),(h,p)=>(l.openBlock(),l.createBlock(l.unref(Ks),{open:i.value,title:a.value,loading:!0},{content:l.withCtx(()=>[l.createVNode(l.unref(D8),{progress:o.value},null,8,["progress"])]),_:1},8,["open","title"]))}},Lue={class:"w-full px-4"},Tue={class:"pb-8 md:pb-4 row gap-x-2"},Nue={class:"row gap-x-2"},Fue={__name:"Stepper",props:{steps:Array},setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("div",Lue,[l.createElementVNode("div",Tue,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.steps,(r,i)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass([`h-2 w-1/${e.steps.length} text-sm px-1`,{"opacity-75":r.status!=="current"},{"font-semibold":r.status==="current"}])},l.toDisplayString(r.name),3))),256))]),l.createElementVNode("div",Nue,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.steps,(r,i)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass([`h-2 w-1/${e.steps.length} rounded-lg`,{"bg-gray-200 dark:bg-gray-500":r.status==="upcoming"},{"bg-sky-500":r.status!=="upcoming"}])},null,2))),256))])]))}},Oue={class:"flow-root"},Iue={class:"float-left"},Due={class:"float-right space-x-4"},Uue={__name:"Wizard",props:{open:Boolean,title:String,steps:Array,proceed:Boolean,saveButton:{type:String,default:"Save"},preventSave:{type:[Boolean,Number],default:!1}},emits:["close","next","moved","clickout"],setup(e,{emit:t}){const n=e,r=l.ref(n.steps),i=l.ref(0),a=t;l.watch(()=>n.open,()=>{r.value=n.steps,i.value=0}),l.watch(()=>n.proceed,()=>{n.proceed&&(r.value[i.value].status="completed",i.value+=1,r.value[i.value].status="current",a("moved"))}),l.watch(()=>n.steps,()=>{r.value=n.steps});function o(){i.value===0?(i.value=0,a("close")):(r.value[i.value].status="upcoming",i.value-=1,r.value[i.value].status="current")}function s(){a("next")}return(u,c)=>(l.openBlock(),l.createBlock(l.unref(Ks),{open:e.open,title:e.title,size:"large",onClose:c[1]||(c[1]=A=>u.$emit("clickout"))},{header:l.withCtx(()=>[l.renderSlot(u.$slots,"header")]),content:l.withCtx(()=>[l.createVNode(Fue,{steps:r.value},null,8,["steps"]),l.renderSlot(u.$slots,"content")]),footer:l.withCtx(()=>[l.createElementVNode("div",Oue,[l.createElementVNode("div",Iue,[l.renderSlot(u.$slots,"footer")]),l.createElementVNode("div",Due,[l.createVNode(l.unref(is),{text:i.value===0?"Cancel":"Back",color:"red",onClick:o},null,8,["text"]),i.value!==r.value.length-1?(l.openBlock(),l.createBlock(l.unref(is),{key:0,text:"Next",onClick:s})):(l.openBlock(),l.createBlock(l.unref(is),{key:1,text:e.preventSave?"Close":e.saveButton,color:"blue",onClick:c[0]||(c[0]=A=>e.preventSave?a("close"):s())},null,8,["text"]))])])]),_:3},8,["open","title"]))}},Pue={__name:"ResetPasswordDialog",emits:["save","notify"],setup(e,{expose:t,emit:n}){const r=n,i=l.ref(!1),a=l.ref({}),o=l.ref({});function s(){if(o.value={},!a.value.password||a.value.password.length<8){o.value.password="Password needs to be at least 8 characters long",r("notify","Error",[o.value.password],!1);return}if(a.value.password!==a.value.confirm){o.value.confirm="Passwords do not match",r("notify","Error",[o.value.confirm],!1);return}r("save",a.value),u()}function u(){i.value=!1}function c(A){i.value=!0,a.value={username:A}}return t({open:i,openModal:c,close:u}),(A,d)=>(l.openBlock(),l.createBlock(l.unref(Ks),{open:i.value,title:"Reset Password"},{content:l.withCtx(()=>[l.createVNode(l.unref(Pi),{fieldName:"Password"},{default:l.withCtx(()=>[l.createVNode(l.unref(ow),{modelValue:a.value.password,"onUpdate:modelValue":d[0]||(d[0]=f=>a.value.password=f),error:o.value.password},null,8,["modelValue","error"])]),_:1}),l.createVNode(l.unref(Pi),{fieldName:"Confirm Password"},{default:l.withCtx(()=>[l.createVNode(l.unref(ow),{modelValue:a.value.confirm,"onUpdate:modelValue":d[1]||(d[1]=f=>a.value.confirm=f),error:o.value.confirm},null,8,["modelValue","error"])]),_:1})]),footer:l.withCtx(()=>[l.createVNode(l.unref(Td),{saveText:"Reset",onSave:s,onClose:u})]),_:1},8,["open"]))}},Yue={__name:"DownloadDialog",props:{},emits:["notify","notifyList","close"],setup(e,{expose:t,emit:n}){const r=n,i=l.ref(!1),a=l.ref("Title"),o=l.ref(null);function s(A,d){i.value=!0,a.value=A,o.value=d}function u(){window.open(o.value,"_blank"),c()}function c(){i.value=!1,a.value="Title",o.value=null,r("close")}return t({openModal:s,closeModal:c}),(A,d)=>(l.openBlock(),l.createBlock(l.unref(Ks),{open:i.value,title:a.value,size:"medium"},{footer:l.withCtx(()=>[l.createVNode(l.unref(Td),{saveText:"Download",onSave:u,onClose:c})]),_:1},8,["open","title"]))}};function Tm(){return Tm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tm.apply(this,arguments)}var Hue=13,Que=9,Rue=8,jue=89,Wv=90,Vue=77,C8=57,S8=219,M8=222,k8=192,zue=27,E8=100,que=3e3,Kue=typeof window<"u"&&navigator&&/Win/i.test(navigator.platform),u5=typeof window<"u"&&navigator&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),Gue=l.defineComponent({props:{lineNumbers:{type:Boolean,default:!1},autoStyleLineNumbers:{type:Boolean,default:!0},readonly:{type:Boolean,default:!1},modelValue:{type:String,default:""},highlight:{type:Function,required:!0},tabSize:{type:Number,default:2},insertSpaces:{type:Boolean,default:!0},ignoreTabKey:{type:Boolean,default:!1},placeholder:{type:String,default:""}},data:function(){return{capture:!0,history:{stack:[],offset:-1},lineNumbersHeight:"20px",codeData:""}},watch:{modelValue:{immediate:!0,handler:function(t){t?this.codeData=t:this.codeData=""}},content:{immediate:!0,handler:function(){var t=this;this.lineNumbers&&this.$nextTick(function(){t.setLineNumbersHeight()})}},lineNumbers:function(){var t=this;this.$nextTick(function(){t.styleLineNumbers(),t.setLineNumbersHeight()})}},computed:{isEmpty:function(){return this.codeData.length===0},content:function(){var t=this.highlight(this.codeData)+"<br />";return t},lineNumbersCount:function(){var t=this.codeData.split(/\r\n|\n/).length;return t}},mounted:function(){this._recordCurrentState(),this.styleLineNumbers()},methods:{setLineNumbersHeight:function(){this.lineNumbersHeight=getComputedStyle(this.$refs.pre).height},styleLineNumbers:function(){if(!(!this.lineNumbers||!this.autoStyleLineNumbers)){var t=this.$refs.pre,n=this.$el.querySelector(".prism-editor__line-numbers"),r=window.getComputedStyle(t);this.$nextTick(function(){var i="border-top-left-radius",a="border-bottom-left-radius";if(n){n.style[i]=r[i],n.style[a]=r[a],t.style[i]="0",t.style[a]="0";var o=["background-color","margin-top","padding-top","font-family","font-size","line-height"];o.forEach(function(s){n.style[s]=r[s]}),n.style["margin-bottom"]="-"+r["padding-top"]}})}},_recordCurrentState:function(){var t=this.$refs.textarea;if(t){var n=t.value,r=t.selectionStart,i=t.selectionEnd;this._recordChange({value:n,selectionStart:r,selectionEnd:i})}},_getLines:function(t,n){return t.substring(0,n).split(`
57
+ `).map(i=>`<p>${i}</p>`).join("");const t=document.querySelector("#editor .ql-editor");t.innerHTML=e}this.editor.on("text-change",()=>{this.$emit("update:modelValue",this.editor.root.innerHTML)})}};function Lle(e,t,n,r,i,a){return t[0]||(t[0]=l.createStaticVNode('<div id="toolbar" class="bg-blue-100 dark:bg-blue-200"><span class="ql-formats"><select class="ql-font"></select><select class="ql-size"></select></span><span class="ql-formats"><button class="ql-bold"></button><button class="ql-italic"></button><button class="ql-underline"></button><button class="ql-strike"></button></span><span class="ql-formats"><select class="ql-color"></select><select class="ql-background"></select></span><span class="ql-formats"><button class="ql-list" value="ordered"></button><button class="ql-list" value="bullet"></button><select class="ql-align"></select></span><span class="ql-formats"><button class="ql-link"></button></span></div><div id="editor" class="min-h-40"></div>',2))}const v8=cr(Ele,[["render",Lle]]),Tle={class:"mt-2"},Nle={class:"text-sm overflow-x-auto text-ellipsis"},Fle=l.defineComponent({__name:"ConfirmDialog",setup(e,{expose:t}){const n=l.ref(!1),r=l.ref(""),i=l.ref(""),a=l.ref(()=>{}),o=l.ref(()=>{}),s=l.ref("Yes"),u=l.ref("No"),c=l.ref(!1);function A(p,m,y,v,g="Yes",_="No"){i.value=p,r.value=m,a.value=y,o.value=v,n.value=!0,s.value=g,u.value=_}async function d(){c.value=!0,await a.value(),c.value=!1,h()}function f(){o.value&&o.value(),h()}function h(){n.value=!1}return t({openModal:A}),(p,m)=>(l.openBlock(),l.createBlock(l.unref(Ks),{open:n.value,title:i.value,onClose:h},{content:l.withCtx(()=>[l.createElementVNode("div",Tle,[l.createElementVNode("p",Nle,l.toDisplayString(r.value),1)])]),footer:l.withCtx(()=>[l.createVNode(l.unref(is),{text:s.value,loading:c.value,onClick:d},null,8,["text","loading"]),l.createVNode(l.unref(is),{text:u.value,color:"red",onClick:f},null,8,["text"])]),_:1},8,["open","title"]))}}),Ole={class:"mt-2"},Ile={class:"break-all text-sm text-gray-600 dark:text-gray-400 font-bold"},Dle={class:"text-sm text-gray-500"},Ule=l.defineComponent({__name:"CopyDialog",emits:["notify"],setup(e,{expose:t,emit:n}){const r=n,i=l.ref(!1),a=l.ref(""),o=l.ref(""),s=l.ref("");function u(d,f,h){o.value=d,a.value=f,s.value=h,i.value=!0}function c(){navigator.clipboard.writeText(s.value),r("notify","Token copied to clipboard","",!0)}function A(){i.value=!1}return t({openModal:u}),(d,f)=>(l.openBlock(),l.createBlock(l.unref(Ks),{open:i.value,title:o.value,onClose:A},{content:l.withCtx(()=>[l.createElementVNode("div",Ole,[l.createElementVNode("p",Ile,l.toDisplayString(s.value),1),l.createElementVNode("p",Dle,l.toDisplayString(a.value),1)])]),footer:l.withCtx(()=>[l.createVNode(l.unref(is),{text:"Copy",color:"green",onClick:c}),l.createVNode(l.unref(is),{text:"Close",color:"red",onClick:A})]),_:1},8,["open","title"]))}}),y8={__name:"ChooseValueDialog",props:{title:{type:String,default:"Add"},nameField:{type:String,default:"Name"},saveButtonText:{type:String,default:"Save"},values:{type:Array,default:()=>[]}},emits:["save"],setup(e,{expose:t,emit:n}){const r=e,i=n,a=l.ref(!1),o=l.ref({}),s=l.computed(()=>{const d=r.values.find(f=>f.value===o.value.key);return d?d.values.map(f=>({label:f,value:f})):[]});function u(d){const f=r.values.find(h=>h.value===d);f&&(o.value.val=f.values[0])}function c(){a.value=!1}function A(d){a.value=!0,o.value={}}return t({open:a,openModal:A,close:c}),(d,f)=>(l.openBlock(),l.createBlock(l.unref(Ks),{open:a.value,title:e.title},{content:l.withCtx(()=>[l.createVNode(l.unref(Pi),{fieldName:e.nameField},{default:l.withCtx(()=>[l.createVNode(l.unref(tr),{modelValue:o.value.key,"onUpdate:modelValue":[f[0]||(f[0]=h=>o.value.key=h),f[1]||(f[1]=h=>u(h))],options:e.values},null,8,["modelValue","options"])]),_:1},8,["fieldName"]),s.value.length>1?(l.openBlock(),l.createBlock(l.unref(Pi),{key:0,fieldName:"Select Attribute Value"},{default:l.withCtx(()=>[l.createVNode(l.unref(tr),{modelValue:o.value.val,"onUpdate:modelValue":f[2]||(f[2]=h=>o.value.val=h),options:s.value},null,8,["modelValue","options"])]),_:1})):l.createCommentVNode("",!0),l.createVNode(l.unref(Pi),{fieldName:"Selected Value"},{default:l.withCtx(()=>[l.createVNode(l.unref(JL),{value:o.value.val,readonly:""},null,8,["value"])]),_:1})]),footer:l.withCtx(()=>[l.createVNode(l.unref(Td),{saveText:e.saveButtonText,onSave:f[3]||(f[3]=h=>i("save",o.value)),onClose:c},null,8,["saveText"])]),_:1},8,["open","title"]))}},Ple={__name:"NameDialog",props:{title:{type:String,default:"Add"},nameField:{type:String,default:"Name"},saveButtonText:{type:String,default:"Save"}},emits:["save"],setup(e,{expose:t,emit:n}){const r=n,i=l.ref(!1),a=l.ref({});function o(){i.value=!1}function s(u){i.value=!0,a.value={name:u.name}}return t({open:i,openModal:s,close:o}),(u,c)=>(l.openBlock(),l.createBlock(l.unref(Ks),{open:i.value,title:e.title},{content:l.withCtx(()=>[l.createVNode(l.unref(Pi),{fieldName:e.nameField},{default:l.withCtx(()=>[l.createVNode(l.unref(qa),{modelValue:a.value.name,"onUpdate:modelValue":c[0]||(c[0]=A=>a.value.name=A)},null,8,["modelValue"])]),_:1},8,["fieldName"])]),footer:l.withCtx(()=>[l.createVNode(l.unref(Td),{saveText:e.saveButtonText,onSave:c[1]||(c[1]=A=>r("save",a.value)),onClose:o},null,8,["saveText"])]),_:1},8,["open","title"]))}},Yle={__name:"NameDescDialog",props:{title:{type:String,default:"Add"},saveButtonText:{type:String,default:"Save"},loading:{type:Boolean,default:!1}},emits:["save"],setup(e,{expose:t,emit:n}){const r=n,i=l.ref(!1),a=l.ref({});function o(){i.value=!1}function s(u){i.value=!0,a.value={name:u.name,description:u.description||""}}return t({open:i,openModal:s,close:o}),(u,c)=>(l.openBlock(),l.createBlock(l.unref(Ks),{open:i.value,title:e.title},{content:l.withCtx(()=>[l.createVNode(l.unref(Pi),{fieldName:"Name"},{default:l.withCtx(()=>[l.createVNode(l.unref(qa),{modelValue:a.value.name,"onUpdate:modelValue":c[0]||(c[0]=A=>a.value.name=A)},null,8,["modelValue"])]),_:1}),l.createVNode(l.unref(Pi),{fieldName:"Description"},{default:l.withCtx(()=>[l.createVNode(l.unref(qa),{modelValue:a.value.description,"onUpdate:modelValue":c[1]||(c[1]=A=>a.value.description=A)},null,8,["modelValue"])]),_:1})]),footer:l.withCtx(()=>[l.createVNode(l.unref(Td),{saveText:e.saveButtonText,loading:e.loading,onSave:c[2]||(c[2]=A=>r("save",a.value)),onClose:o},null,8,["saveText","loading"])]),_:1},8,["open","title"]))}};function Hle(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25H12"})])}function Lm(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function _8(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m4.5 12.75 6 6 9-13.5"})])}function Gv(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"})])}function b8(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])}function Qle(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 15 12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9"})])}function w8(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function B8(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z"})])}function Ld(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function l5(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})])}const Rle={class:"flex"},jle={class:"flex-shrink-0"},Vle={class:"ml-3"},zle={key:0,class:"text-sm font-medium text-green-800"},qle={key:1,class:"text-sm font-medium text-red-800"},Kle={key:2,class:"mt-2 text-sm text-green-700"},Gle={key:3,class:"mt-2 text-sm text-red-700"},Wle={class:"ml-auto pl-3"},Xle={class:"-mx-1.5 -my-1.5"},Jle={class:"flex"},Zle={class:"flex-shrink-0"},$le={class:"ml-3"},eue={key:0,class:"text-sm font-medium text-green-800"},tue={key:1,class:"text-sm font-medium text-red-800"},nue={key:2,class:"mt-2 text-sm text-green-700"},rue={key:3,class:"mt-2 text-sm text-red-700"},iue={class:"ml-auto pl-3"},aue={class:"-mx-1.5 -my-1.5"},oue=l.defineComponent({__name:"Notify",setup(e,{expose:t}){const n=l.ref(!1),r=l.ref(""),i=l.ref(!1),a=l.ref(""),o=l.ref(),s=l.ref(!1);function u(d,f,h){clearTimeout(o.value),a.value=d,r.value=f,i.value=h,n.value=!0;const p=window.document.querySelectorAll("#headlessui-portal-root");s.value=p&&p.length>0&&p[0].childElementCount>1,o.value=setTimeout(()=>{c()},3e3)}function c(){n.value=!1}function A(){return i.value?"green":"red"}return t({openModal:u}),(d,f)=>(l.openBlock(),l.createBlock(l.unref(Hc),{as:"template",show:n.value},{default:l.withCtx(()=>[s.value?(l.openBlock(),l.createBlock(l.unref(Wf),{key:0,as:"div",class:l.normalizeClass([i.value?"bg-green-50":"bg-red-50","rounded-md p-4 fixed bottom-5 z-50"]),style:{"min-width":"75%",left:"50%",transform:"translateX(-50%)"},onClose:c},{default:l.withCtx(()=>[l.createElementVNode("div",Rle,[l.createElementVNode("div",jle,[i.value?(l.openBlock(),l.createBlock(l.unref(Lm),{key:0,class:"icon-md text-green-400","aria-hidden":"true"})):(l.openBlock(),l.createBlock(l.unref(Ld),{key:1,class:"icon-md text-red-400","aria-hidden":"true"}))]),l.createElementVNode("div",Vle,[i.value?(l.openBlock(),l.createElementBlock("h3",zle,l.toDisplayString(a.value),1)):(l.openBlock(),l.createElementBlock("h3",qle,l.toDisplayString(a.value),1)),i.value?(l.openBlock(),l.createElementBlock("div",Kle,[l.createElementVNode("p",null,l.toDisplayString(r.value),1)])):(l.openBlock(),l.createElementBlock("div",Gle,[l.createElementVNode("p",null,l.toDisplayString(r.value),1)]))]),l.createElementVNode("div",Wle,[l.createElementVNode("div",Xle,[l.createVNode(l.unref(Gc),{color:A(),onClick:c},{default:l.withCtx(()=>[l.createVNode(l.unref(_d),{class:"icon-md","aria-hidden":"true"})]),_:1},8,["color"])])])])]),_:1},8,["class"])):(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass([i.value?"bg-green-50":"bg-red-50","rounded-md p-4 fixed bottom-5 z-50"]),style:{"min-width":"75%",left:"50%",transform:"translateX(-50%)"}},[l.createElementVNode("div",Jle,[l.createElementVNode("div",Zle,[i.value?(l.openBlock(),l.createBlock(l.unref(Lm),{key:0,class:"icon-md text-green-400","aria-hidden":"true"})):(l.openBlock(),l.createBlock(l.unref(Ld),{key:1,class:"icon-md text-red-400","aria-hidden":"true"}))]),l.createElementVNode("div",$le,[i.value?(l.openBlock(),l.createElementBlock("h3",eue,l.toDisplayString(a.value),1)):(l.openBlock(),l.createElementBlock("h3",tue,l.toDisplayString(a.value),1)),i.value?(l.openBlock(),l.createElementBlock("div",nue,[l.createElementVNode("p",null,l.toDisplayString(r.value),1)])):(l.openBlock(),l.createElementBlock("div",rue,[l.createElementVNode("p",null,l.toDisplayString(r.value),1)]))]),l.createElementVNode("div",iue,[l.createElementVNode("div",aue,[l.createVNode(l.unref(Gc),{color:A(),onClick:c},{default:l.withCtx(()=>[l.createVNode(l.unref(_d),{class:"icon-md","aria-hidden":"true"})]),_:1},8,["color"])])])])],2))]),_:1},8,["show"]))}}),sue={class:"flex"},lue={class:"flex-shrink-0"},uue={class:"ml-3"},cue={key:0,class:"text-sm font-medium text-green-800"},Aue={key:1,class:"text-sm font-medium text-red-800"},due={key:2,class:"mt-2 text-sm text-green-700"},fue={role:"list",class:"list-disc space-y-1 pl-5"},hue={key:3,class:"mt-2 text-sm text-red-700"},pue={role:"list",class:"list-disc space-y-1 pl-5"},mue={class:"ml-auto pl-3"},gue={class:"-mx-1.5 -my-1.5"},vue={class:"flex"},yue={class:"flex-shrink-0"},_ue={class:"ml-3"},bue={key:0,class:"text-sm font-medium text-green-800"},wue={key:1,class:"text-sm font-medium text-red-800"},Bue={key:2,class:"mt-2 text-sm text-green-700"},xue={role:"list",class:"list-disc space-y-1 pl-5"},Cue={key:3,class:"mt-2 text-sm text-red-700"},Sue={role:"list",class:"list-disc space-y-1 pl-5"},Mue={class:"ml-auto pl-3"},kue={class:"-mx-1.5 -my-1.5"},x8=l.defineComponent({__name:"NotifyList",setup(e,{expose:t}){const n=l.ref(!1),r=l.ref(),i=l.ref(!1),a=l.ref(""),o=l.ref(),s=l.ref(!1);function u(d,f,h){clearTimeout(o.value),a.value=d,r.value=f,i.value=h,n.value=!0;const p=window.document.querySelectorAll("#headlessui-portal-root");s.value=p&&p.length>0&&p[0].childElementCount>1,o.value=setTimeout(()=>{c()},5e3)}function c(){n.value=!1}function A(){return i.value?"green":"red"}return t({openModal:u}),(d,f)=>(l.openBlock(),l.createBlock(l.unref(Hc),{as:"template",show:n.value},{default:l.withCtx(()=>[s.value?(l.openBlock(),l.createBlock(l.unref(Wf),{key:0,as:"div",class:l.normalizeClass([i.value?"bg-green-50":"bg-red-50","rounded-md p-4 fixed bottom-5 z-50"]),style:{"min-width":"75%",left:"50%",transform:"translateX(-50%)"},onClose:c},{default:l.withCtx(()=>[l.createElementVNode("div",sue,[l.createElementVNode("div",lue,[i.value?(l.openBlock(),l.createBlock(l.unref(Lm),{key:0,class:"icon-md text-green-400","aria-hidden":"true"})):(l.openBlock(),l.createBlock(l.unref(Ld),{key:1,class:"icon-md text-red-400","aria-hidden":"true"}))]),l.createElementVNode("div",uue,[i.value?(l.openBlock(),l.createElementBlock("h3",cue,l.toDisplayString(a.value),1)):(l.openBlock(),l.createElementBlock("h3",Aue,l.toDisplayString(a.value),1)),i.value?(l.openBlock(),l.createElementBlock("div",due,[l.createElementVNode("ul",fue,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.value,h=>(l.openBlock(),l.createElementBlock("li",{key:h},l.toDisplayString(h),1))),128))])])):(l.openBlock(),l.createElementBlock("div",hue,[l.createElementVNode("ul",pue,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.value,h=>(l.openBlock(),l.createElementBlock("li",{key:h},l.toDisplayString(h),1))),128))])]))]),l.createElementVNode("div",mue,[l.createElementVNode("div",gue,[l.createVNode(l.unref(Gc),{color:A(),onClick:c},{default:l.withCtx(()=>[l.createVNode(l.unref(_d),{class:"icon-md","aria-hidden":"true"})]),_:1},8,["color"])])])])]),_:1},8,["class"])):(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass([i.value?"bg-green-50":"bg-red-50","rounded-md p-4 fixed bottom-5 z-50"]),style:{"min-width":"75%",left:"50%",transform:"translateX(-50%)"}},[l.createElementVNode("div",vue,[l.createElementVNode("div",yue,[i.value?(l.openBlock(),l.createBlock(l.unref(Lm),{key:0,class:"icon-md text-green-400","aria-hidden":"true"})):(l.openBlock(),l.createBlock(l.unref(Ld),{key:1,class:"icon-md text-red-400","aria-hidden":"true"}))]),l.createElementVNode("div",_ue,[i.value?(l.openBlock(),l.createElementBlock("h3",bue,l.toDisplayString(a.value),1)):(l.openBlock(),l.createElementBlock("h3",wue,l.toDisplayString(a.value),1)),i.value?(l.openBlock(),l.createElementBlock("div",Bue,[l.createElementVNode("ul",xue,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.value,h=>(l.openBlock(),l.createElementBlock("li",{key:h},l.toDisplayString(h),1))),128))])])):(l.openBlock(),l.createElementBlock("div",Cue,[l.createElementVNode("ul",Sue,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.value,h=>(l.openBlock(),l.createElementBlock("li",{key:h},l.toDisplayString(h),1))),128))])]))]),l.createElementVNode("div",Mue,[l.createElementVNode("div",kue,[l.createVNode(l.unref(Gc),{color:A(),onClick:c},{default:l.withCtx(()=>[l.createVNode(l.unref(_d),{class:"icon-md","aria-hidden":"true"})]),_:1},8,["color"])])])])],2))]),_:1},8,["show"]))}}),Eue={__name:"ProgressDialog",emits:["close"],setup(e,{expose:t,emit:n}){const r=n,i=l.ref(!1),a=l.ref("Loading"),o=l.ref(0),s=l.ref(()=>{}),u=l.ref(),c=h=>{o.value+=1,o.value<100?u.value=setTimeout(()=>{s.value(h)},h):(A(),r("close"))};function A(){clearTimeout(u.value),i.value=!1}function d(h,p=0,m=100,y=c){i.value=!0,a.value=h,o.value=p,m?(s.value=c,s.value(m)):(s.value=y,s.value())}function f(h){o.value=h}return t({openModal:d,updateProgress:f,close:A}),(h,p)=>(l.openBlock(),l.createBlock(l.unref(Ks),{open:i.value,title:a.value,loading:!0},{content:l.withCtx(()=>[l.createVNode(l.unref(D8),{progress:o.value},null,8,["progress"])]),_:1},8,["open","title"]))}},Lue={class:"w-full px-4"},Tue={class:"pb-8 md:pb-4 row gap-x-2"},Nue={class:"row gap-x-2"},Fue={__name:"Stepper",props:{steps:Array},setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("div",Lue,[l.createElementVNode("div",Tue,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.steps,(r,i)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass([`h-2 w-1/${e.steps.length} text-sm px-1`,{"opacity-75":r.status!=="current"},{"font-semibold":r.status==="current"}])},l.toDisplayString(r.name),3))),256))]),l.createElementVNode("div",Nue,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.steps,(r,i)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass([`h-2 w-1/${e.steps.length} rounded-lg`,{"bg-gray-200 dark:bg-gray-500":r.status==="upcoming"},{"bg-sky-500":r.status!=="upcoming"}])},null,2))),256))])]))}},Oue={class:"flow-root"},Iue={class:"float-left"},Due={class:"float-right space-x-4"},Uue={__name:"Wizard",props:{open:Boolean,title:String,steps:Array,proceed:Boolean,saveButton:{type:String,default:"Save"},preventSave:{type:[Boolean,Number],default:!1}},emits:["close","next","moved","clickout"],setup(e,{emit:t}){const n=e,r=l.ref(n.steps),i=l.ref(0),a=t;l.watch(()=>n.open,()=>{r.value=n.steps,i.value=0}),l.watch(()=>n.proceed,()=>{n.proceed&&(r.value[i.value].status="completed",i.value+=1,r.value[i.value].status="current",a("moved"))}),l.watch(()=>n.steps,()=>{r.value=n.steps});function o(){i.value===0?(i.value=0,a("close")):(r.value[i.value].status="upcoming",i.value-=1,r.value[i.value].status="current")}function s(){a("next")}return(u,c)=>(l.openBlock(),l.createBlock(l.unref(Ks),{open:e.open,title:e.title,size:"large",onClose:c[1]||(c[1]=A=>u.$emit("clickout"))},{header:l.withCtx(()=>[l.renderSlot(u.$slots,"header")]),content:l.withCtx(()=>[l.createVNode(Fue,{steps:r.value},null,8,["steps"]),l.renderSlot(u.$slots,"content")]),footer:l.withCtx(()=>[l.createElementVNode("div",Oue,[l.createElementVNode("div",Iue,[l.renderSlot(u.$slots,"footer")]),l.createElementVNode("div",Due,[l.createVNode(l.unref(is),{text:i.value===0?"Cancel":"Back",color:"red",onClick:o},null,8,["text"]),i.value!==r.value.length-1?(l.openBlock(),l.createBlock(l.unref(is),{key:0,text:"Next",onClick:s})):(l.openBlock(),l.createBlock(l.unref(is),{key:1,text:e.preventSave?"Close":e.saveButton,color:"blue",onClick:c[0]||(c[0]=A=>e.preventSave?a("close"):s())},null,8,["text"]))])])]),_:3},8,["open","title"]))}},Pue={__name:"ResetPasswordDialog",emits:["save","notify"],setup(e,{expose:t,emit:n}){const r=n,i=l.ref(!1),a=l.ref({}),o=l.ref({});function s(){if(o.value={},!a.value.password||a.value.password.length<8){o.value.password="Password needs to be at least 8 characters long",r("notify","Error",[o.value.password],!1);return}if(a.value.password!==a.value.confirm){o.value.confirm="Passwords do not match",r("notify","Error",[o.value.confirm],!1);return}r("save",a.value),u()}function u(){i.value=!1}function c(A){i.value=!0,a.value={username:A}}return t({open:i,openModal:c,close:u}),(A,d)=>(l.openBlock(),l.createBlock(l.unref(Ks),{open:i.value,title:"Reset Password"},{content:l.withCtx(()=>[l.createVNode(l.unref(Pi),{fieldName:"Password"},{default:l.withCtx(()=>[l.createVNode(l.unref(ow),{modelValue:a.value.password,"onUpdate:modelValue":d[0]||(d[0]=f=>a.value.password=f),error:o.value.password},null,8,["modelValue","error"])]),_:1}),l.createVNode(l.unref(Pi),{fieldName:"Confirm Password"},{default:l.withCtx(()=>[l.createVNode(l.unref(ow),{modelValue:a.value.confirm,"onUpdate:modelValue":d[1]||(d[1]=f=>a.value.confirm=f),error:o.value.confirm},null,8,["modelValue","error"])]),_:1})]),footer:l.withCtx(()=>[l.createVNode(l.unref(Td),{saveText:"Reset",onSave:s,onClose:u})]),_:1},8,["open"]))}},Yue={__name:"DownloadDialog",props:{},emits:["notify","notifyList","close"],setup(e,{expose:t,emit:n}){const r=n,i=l.ref(!1),a=l.ref("Title"),o=l.ref(null);function s(A,d){i.value=!0,a.value=A,o.value=d}function u(){window.open(o.value,"_blank"),c()}function c(){i.value=!1,a.value="Title",o.value=null,r("close")}return t({openModal:s,closeModal:c}),(A,d)=>(l.openBlock(),l.createBlock(l.unref(Ks),{open:i.value,title:a.value,size:"medium"},{footer:l.withCtx(()=>[l.createVNode(l.unref(Td),{saveText:"Download",onSave:u,onClose:c})]),_:1},8,["open","title"]))}};function Tm(){return Tm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tm.apply(this,arguments)}var Hue=13,Que=9,Rue=8,jue=89,Wv=90,Vue=77,C8=57,S8=219,M8=222,k8=192,zue=27,E8=100,que=3e3,Kue=typeof window<"u"&&navigator&&/Win/i.test(navigator.platform),u5=typeof window<"u"&&navigator&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),Gue=l.defineComponent({props:{lineNumbers:{type:Boolean,default:!1},autoStyleLineNumbers:{type:Boolean,default:!0},readonly:{type:Boolean,default:!1},modelValue:{type:String,default:""},highlight:{type:Function,required:!0},tabSize:{type:Number,default:2},insertSpaces:{type:Boolean,default:!0},ignoreTabKey:{type:Boolean,default:!1},placeholder:{type:String,default:""}},data:function(){return{capture:!0,history:{stack:[],offset:-1},lineNumbersHeight:"20px",codeData:""}},watch:{modelValue:{immediate:!0,handler:function(t){t?this.codeData=t:this.codeData=""}},content:{immediate:!0,handler:function(){var t=this;this.lineNumbers&&this.$nextTick(function(){t.setLineNumbersHeight()})}},lineNumbers:function(){var t=this;this.$nextTick(function(){t.styleLineNumbers(),t.setLineNumbersHeight()})}},computed:{isEmpty:function(){return this.codeData.length===0},content:function(){var t=this.highlight(this.codeData)+"<br />";return t},lineNumbersCount:function(){var t=this.codeData.split(/\r\n|\n/).length;return t}},mounted:function(){this._recordCurrentState(),this.styleLineNumbers()},methods:{setLineNumbersHeight:function(){this.lineNumbersHeight=getComputedStyle(this.$refs.pre).height},styleLineNumbers:function(){if(!(!this.lineNumbers||!this.autoStyleLineNumbers)){var t=this.$refs.pre,n=this.$el.querySelector(".prism-editor__line-numbers"),r=window.getComputedStyle(t);this.$nextTick(function(){var i="border-top-left-radius",a="border-bottom-left-radius";if(n){n.style[i]=r[i],n.style[a]=r[a],t.style[i]="0",t.style[a]="0";var o=["background-color","margin-top","padding-top","font-family","font-size","line-height"];o.forEach(function(s){n.style[s]=r[s]}),n.style["margin-bottom"]="-"+r["padding-top"]}})}},_recordCurrentState:function(){var t=this.$refs.textarea;if(t){var n=t.value,r=t.selectionStart,i=t.selectionEnd;this._recordChange({value:n,selectionStart:r,selectionEnd:i})}},_getLines:function(t,n){return t.substring(0,n).split(`
58
58
  `)},_applyEdits:function(t){var n=this.$refs.textarea,r=this.history.stack[this.history.offset];r&&n&&(this.history.stack[this.history.offset]=Tm({},r,{selectionStart:n.selectionStart,selectionEnd:n.selectionEnd})),this._recordChange(t),this._updateInput(t)},_recordChange:function(t,n){n===void 0&&(n=!1);var r=this.history,i=r.stack,a=r.offset;if(i.length&&a>-1){this.history.stack=i.slice(0,a+1);var o=this.history.stack.length;if(o>E8){var s=o-E8;this.history.stack=i.slice(s,o),this.history.offset=Math.max(this.history.offset-s,0)}}var u=Date.now();if(n){var c=this.history.stack[this.history.offset];if(c&&u-c.timestamp<que){var A,d,f=/[^a-z0-9]([a-z0-9]+)$/i,h=(A=this._getLines(c.value,c.selectionStart).pop())===null||A===void 0?void 0:A.match(f),p=(d=this._getLines(t.value,t.selectionStart).pop())===null||d===void 0?void 0:d.match(f);if(h&&p&&p[1].startsWith(h[1])){this.history.stack[this.history.offset]=Tm({},t,{timestamp:u});return}}}this.history.stack.push(Tm({},t,{timestamp:u})),this.history.offset++},_updateInput:function(t){var n=this.$refs.textarea;n&&(n.value=t.value,n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd,this.$emit("update:modelValue",t.value))},handleChange:function(t){var n=t.target,r=n.value,i=n.selectionStart,a=n.selectionEnd;this._recordChange({value:r,selectionStart:i,selectionEnd:a},!0),this.$emit("update:modelValue",r)},_undoEdit:function(){var t=this.history,n=t.stack,r=t.offset,i=n[r-1];i&&(this._updateInput(i),this.history.offset=Math.max(r-1,0))},_redoEdit:function(){var t=this.history,n=t.stack,r=t.offset,i=n[r+1];i&&(this._updateInput(i),this.history.offset=Math.min(r+1,n.length-1))},handleKeyDown:function(t){var n=this.tabSize,r=this.insertSpaces,i=this.ignoreTabKey;if(this.$emit("keydown",t),!t.defaultPrevented){t.keyCode===zue&&(t.target.blur(),this.$emit("blur",t));var a=t.target,o=a.value,s=a.selectionStart,u=a.selectionEnd,c=(r?" ":" ").repeat(n);if(t.keyCode===Que&&!i&&this.capture)if(t.preventDefault(),t.shiftKey){var A=this._getLines(o,s),d=A.length-1,f=this._getLines(o,u).length-1,h=o.split(`
59
59
  `).map(function(N,O){return O>=d&&O<=f&&N.startsWith(c)?N.substring(c.length):N}).join(`
60
60
  `);if(o!==h){var p=A[d];this._applyEdits({value:h,selectionStart:p.startsWith(c)?s-c.length:s,selectionEnd:u-(o.length-h.length)})}}else if(s!==u){var m=this._getLines(o,s),y=m.length-1,v=this._getLines(o,u).length-1,g=m[y];this._applyEdits({value:o.split(`
@@ -14669,6 +14669,10 @@ const iY = /* @__PURE__ */ br(nY, [["render", rY]]), aY = { class: "mt-2" }, sY
14669
14669
  saveButtonText: {
14670
14670
  type: String,
14671
14671
  default: "Save"
14672
+ },
14673
+ loading: {
14674
+ type: Boolean,
14675
+ default: !1
14672
14676
  }
14673
14677
  },
14674
14678
  emits: ["save"],
@@ -14714,9 +14718,10 @@ const iY = /* @__PURE__ */ br(nY, [["render", rY]]), aY = { class: "mt-2" }, sY
14714
14718
  footer: Me(() => [
14715
14719
  he(ne(Rh), {
14716
14720
  saveText: e.saveButtonText,
14721
+ loading: e.loading,
14717
14722
  onSave: A[2] || (A[2] = (u) => r("save", a.value)),
14718
14723
  onClose: s
14719
- }, null, 8, ["saveText"])
14724
+ }, null, 8, ["saveText", "loading"])
14720
14725
  ]),
14721
14726
  _: 1
14722
14727
  }, 8, ["open", "title"]));
@@ -60145,7 +60150,7 @@ function(e) {
60145
60150
  */
60146
60151
  function(e) {
60147
60152
  function t() {
60148
- return (fn.canvg ? Promise.resolve(fn.canvg) : import("./index.es-CmPzThTM.mjs")).catch(function(n) {
60153
+ return (fn.canvg ? Promise.resolve(fn.canvg) : import("./index.es-DSa1EEwk.mjs")).catch(function(n) {
60149
60154
  return Promise.reject(new Error("Could not load canvg: " + n));
60150
60155
  }).then(function(n) {
60151
60156
  return n.default ? n.default : n;
@@ -1,4 +1,4 @@
1
- import { c as Da, _ as Va, g as il } from "./index-DUIphBld.mjs";
1
+ import { c as Da, _ as Va, g as il } from "./index-Db_VJGBP.mjs";
2
2
  var fn = {}, cn = {}, cr, vn;
3
3
  function Q() {
4
4
  if (vn) return cr;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fluency-v8-components",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "main": "dist/fluency-v8-components.umd.js",
5
5
  "module": "dist/fluency-v8-components.es.js",
6
6
  "types": "dist/index.d.ts",