fluency-v8-components 1.2.9 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { H as e, O as t, br as r, ax as o, aC as n, bd as i, a$ as l, be as C, b0 as g, aQ as u, aP as b, W as P, V as d, aF as h, aG as p, Z as c, X as m, aa as T, ab as I, ac as S, a9 as f, au as y, bf as B, b1 as D, C as k, u as A, aR as G, aw as F, s as L, t as M, bg as w, b2 as H, aD as E, ap as v, aq as x, al as N, aU as R, D as V, L as z, E as W, av as j, aN as q, Y as K, aY as O, aZ as Q, a_ as U, ar as J, aT as X, at as Y, l as Z, m as $, n as _, ay as aa, aH as sa, o as ea, G as ta, a as ra, d as oa, b as na, e as ia, f as la, i as Ca, j as ga, k as ua, h as ba, aV as Pa, p as da, az as ha, bi as pa, b4 as ca, a6 as ma, bh as Ta, b3 as Ia, J as Sa, K as fa, bj as ya, b5 as Ba, a7 as Da, r as ka, aS as Aa, aE as Ga, an as Fa, ao as La, aW as Ma, M as wa, aX as Ha, bk as Ea, b6 as va, w as xa, v as Na, x as Ra, y as Va, a2 as za, a3 as Wa, bs as ja, aK as qa, bl as Ka, b7 as Oa, am as Qa, F as Ua, aA as Ja, a0 as Xa, a1 as Ya, aL as Za, z as $a, a8 as _a, R as as, B as ss, aB as es, as as ts, U as rs, $ as os, ak as ns, ae as is, ad as ls, bm as Cs, b8 as gs, bn as us, b9 as bs, aI as Ps, aJ as ds, N as hs, af as ps, bo as cs, ag as ms, ah as Ts, ba as Is, ai as Ss, a4 as fs, S as ys, Q as Bs, I as Ds, bp as ks, bb as As, T as Gs, aM as Fs, a5 as Ls, bq as Ms, bc as ws, P as Hs, q as Es, aj as vs, A as xs, aO as Ns } from "./index-DBGeoYsd.mjs";
1
+ import { H as e, O as t, br as r, ax as o, aC as n, bd as i, a$ as l, be as C, b0 as g, aQ as u, aP as b, W as P, V as d, aF as h, aG as p, Z as c, X as m, aa as T, ab as I, ac as S, a9 as f, au as y, bf as B, b1 as D, C as k, u as A, aR as G, aw as F, s as L, t as M, bg as w, b2 as H, aD as E, ap as v, aq as x, al as N, aU as R, D as V, L as z, E as W, av as j, aN as q, Y as K, aY as O, aZ as Q, a_ as U, ar as J, aT as X, at as Y, l as Z, m as $, n as _, ay as aa, aH as sa, o as ea, G as ta, a as ra, d as oa, b as na, e as ia, f as la, i as Ca, j as ga, k as ua, h as ba, aV as Pa, p as da, az as ha, bi as pa, b4 as ca, a6 as ma, bh as Ta, b3 as Ia, J as Sa, K as fa, bj as ya, b5 as Ba, a7 as Da, r as ka, aS as Aa, aE as Ga, an as Fa, ao as La, aW as Ma, M as wa, aX as Ha, bk as Ea, b6 as va, w as xa, v as Na, x as Ra, y as Va, a2 as za, a3 as Wa, bs as ja, aK as qa, bl as Ka, b7 as Oa, am as Qa, F as Ua, aA as Ja, a0 as Xa, a1 as Ya, aL as Za, z as $a, a8 as _a, R as as, B as ss, aB as es, as as ts, U as rs, $ as os, ak as ns, ae as is, ad as ls, bm as Cs, b8 as gs, bn as us, b9 as bs, aI as Ps, aJ as ds, N as hs, af as ps, bo as cs, ag as ms, ah as Ts, ba as Is, ai as Ss, a4 as fs, S as ys, Q as Bs, I as Ds, bp as ks, bb as As, T as Gs, aM as Fs, a5 as Ls, bq as Ms, bc as ws, P as Hs, q as Es, aj as vs, A as xs, aO as Ns } from "./index-9yvRXgPX.mjs";
2
2
  export {
3
3
  e as ActionButtons,
4
4
  t as Active,
@@ -54,7 +54,7 @@ ${Rv(this.code(t,n))}
54
54
  `).reduce((o,s,u)=>(u!==0&&o.insert(`
55
55
  `,{[Ci.blotName]:n}),o.insert(s)),i)],new WeakMap)}}s8.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 rv=class rv extends ci{static create(t){const n=super.create();return t?n.setAttribute("data-row",t):n.setAttribute("data-row",u5()),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===rv.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()}};Mt(rv,"blotName","table"),Mt(rv,"tagName","TD");let Ks=rv;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(),a=this.next.children.tail.formats();return t.table===n.table&&t.table===r.table&&t.table===a.table}return!1}optimize(t){super.optimize(t),this.children.forEach(n=>{if(n.next==null)return;const r=n.formats(),a=n.next.formats();if(r.table!==a.table){const i=this.splitAfter(n);i&&i.optimize(),this.prev&&this.prev.optimize()}})}rowOffset(){return this.parent?this.parent.children.indexOf(this):-1}table(){return this.parent&&this.parent.parent}}Mt(Iu,"blotName","table-row"),Mt(Iu,"tagName","TR");class zl extends Md{}Mt(zl,"blotName","table-body"),Mt(zl,"tagName","TBODY");class Ah extends Md{balanceCells(){const t=this.descendants(Iu),n=t.reduce((r,a)=>Math.max(a.children.length,r),0);t.forEach(r=>{new Array(n-r.children.length).fill(0).forEach(()=>{let a;r.children.head!=null&&(a=Ks.formats(r.children.head.domNode));const i=this.scroll.create(Ks.blotName,a);r.appendChild(i),i.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 a=r.children.at(t);a!=null&&a.remove()})}insertColumn(t){const[n]=this.descendant(zl);n==null||n.children.head==null||n.children.forEach(r=>{const a=r.children.at(t),i=Ks.formats(r.children.head.domNode),o=this.scroll.create(Ks.blotName,i);r.insertBefore(o,a)})}insertRow(t){const[n]=this.descendant(zl);if(n==null||n.children.head==null)return;const r=u5(),a=this.scroll.create(Iu.blotName);n.children.head.children.forEach(()=>{const o=this.scroll.create(Ks.blotName,r);a.appendChild(o)});const i=n.children.at(t);n.insertBefore(a,i)}rows(){const t=this.children.head;return t==null?[]:t.children.map(n=>n)}}Mt(Ah,"blotName","table-container"),Mt(Ah,"tagName","TABLE"),Ah.allowedChildren=[zl],zl.requiredContainer=Ah,zl.allowedChildren=[Iu],Iu.requiredContainer=zl,Iu.allowedChildren=[Ks],Ks.requiredContainer=Iu;function u5(){return`row-${Math.random().toString(36).slice(2,6)}`}class yle extends zs{static register(){rt.register(Ks),rt.register(Iu),rt.register(zl),rt.register(Ah)}constructor(){super(...arguments),this.listenBalanceCells()}balanceTables(){this.quill.scroll.descendants(Ah).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!==Ks.blotName)return[null,null,null,-1];const a=n.parent;return[a.parent.parent,a,n,r]}insertColumn(t){const n=this.quill.getSelection();if(!n)return;const[r,a,i]=this.getTable(n);if(i==null)return;const o=i.cellOffset();r.insertColumn(o+t),this.quill.update(rt.sources.USER);let s=a.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,a,i]=this.getTable(n);if(i==null)return;const o=a.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+a.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 a=new Array(t).fill(0).reduce(i=>{const o=new Array(n).fill(`
56
56
  `).join("");return i.insert(o,{table:u5()})},new Rt().retain(r.index));this.quill.updateContents(a,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,a,i)=>{i===rt.sources.USER&&this.balanceTables()}),!0):!1)})}}const l8=Nu("quill:toolbar");class c5 extends zs{constructor(t,n){var r,a;if(super(t,n),Array.isArray(this.options.container)){const i=document.createElement("div");i.setAttribute("role","toolbar"),_le(i,this.options.container),(a=(r=t.container)==null?void 0:r.parentNode)==null||a.insertBefore(i,t.container),this.container=i}else typeof this.options.container=="string"?this.container=document.querySelector(this.options.container):this.container=this.options.container;if(!(this.container instanceof HTMLElement)){l8.error("Container required for toolbar",this.options);return}this.container.classList.add("ql-toolbar"),this.controls=[],this.handlers={},this.options.handlers&&Object.keys(this.options.handlers).forEach(i=>{var s;const o=(s=this.options.handlers)==null?void 0:s[i];o&&this.addHandler(i,o)}),Array.from(this.container.querySelectorAll("button, select")).forEach(i=>{this.attach(i)}),this.quill.on(rt.events.EDITOR_CHANGE,()=>{const[i]=this.quill.selection.getRange();this.update(i)})}addHandler(t,n){this.handlers[t]=n}attach(t){let n=Array.from(t.classList).find(a=>a.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){l8.warn("ignoring attaching to nonexistent format",n,t);return}const r=t.tagName==="SELECT"?"change":"click";t.addEventListener(r,a=>{let i;if(t.tagName==="SELECT"){if(t.selectedIndex<0)return;const s=t.options[t.selectedIndex];s.hasAttribute("selected")?i=!1:i=s.value||!1}else t.classList.contains("ql-active")?i=!1:i=t.value||!t.hasAttribute("value"),a.preventDefault();this.quill.focus();const[o]=this.quill.selection.getRange();if(this.handlers[n]!=null)this.handlers[n].call(this,i);else if(this.quill.scroll.query(n).prototype instanceof Uo){if(i=prompt(`Enter ${n}`),!i)return;this.quill.updateContents(new Rt().retain(o.index).delete(o.length).insert({[n]:i}),rt.sources.USER)}else this.quill.format(n,i,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[a,i]=r;if(i.tagName==="SELECT"){let o=null;if(t==null)o=null;else if(n[a]==null)o=i.querySelector("option[selected]");else if(!Array.isArray(n[a])){let s=n[a];typeof s=="string"&&(s=s.replace(/"/g,'\\"')),o=i.querySelector(`option[value="${s}"]`)}o==null?(i.value="",i.selectedIndex=-1):o.selected=!0}else if(t==null)i.classList.remove("ql-active"),i.setAttribute("aria-pressed","false");else if(i.hasAttribute("value")){const o=n[a],s=o===i.getAttribute("value")||o!=null&&o.toString()===i.getAttribute("value")||o==null&&!i.getAttribute("value");i.classList.toggle("ql-active",s),i.setAttribute("aria-pressed",s.toString())}else{const o=n[a]!=null;i.classList.toggle("ql-active",o),i.setAttribute("aria-pressed",o.toString())}})}}c5.DEFAULTS={};function u8(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 _le(e,t){Array.isArray(t[0])||(t=[t]),t.forEach(n=>{const r=document.createElement("span");r.classList.add("ql-formats"),n.forEach(a=>{if(typeof a=="string")u8(r,a);else{const i=Object.keys(a)[0],o=a[i];Array.isArray(o)?ble(r,i,o):u8(r,i,o)}}),e.appendChild(r)})}function ble(e,t,n){const r=document.createElement("select");r.classList.add(`ql-${t}`),n.forEach(a=>{const i=document.createElement("option");a!==!1?i.setAttribute("value",String(a)):i.setAttribute("selected","selected"),r.appendChild(i)}),e.appendChild(r)}c5.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 a=e==="+1"?1:-1;n.direction==="rtl"&&(a*=-1),this.quill.format("indent",r+a,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 wle='<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>',Ble='<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>',xle='<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>',Cle='<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>',Sle='<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>',kle='<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>',Mle='<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>',Ele='<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>',c8='<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:{"":wle,center:Ble,right:xle,justify:Cle},background:Sle,blockquote:kle,bold:Mle,clean:Ele,code:c8,"code-block":c8,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>'},Lle='<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 A8=0;function d8(e,t){e.setAttribute(t,`${e.getAttribute(t)!=="true"}`)}class Jv{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"),d8(this.label,"aria-expanded"),d8(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",a=>{switch(a.key){case"Enter":this.selectItem(n,!0),a.preventDefault();break;case"Escape":this.escape(),a.preventDefault();break}}),n}buildLabel(){const t=document.createElement("span");return t.classList.add("ql-picker-label"),t.innerHTML=Lle,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-${A8}`,A8+=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 f8 extends Jv{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"),a=t&&t.getAttribute("data-value")||"";r&&(r.tagName==="line"?r.style.stroke=a:r.style.fill=a)}}class h8 extends Jv{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 Tle=e=>{const{overflowY:t}=getComputedStyle(e,null);return t!=="visible"&&t!=="clip"};let p8=class{constructor(t,n){this.quill=t,this.boundsContainer=n||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,Tle(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 a=this.boundsContainer.getBoundingClientRect(),i=this.root.getBoundingClientRect();let o=0;if(i.right>a.right&&(o=a.right-i.right,this.root.style.left=`${n+o}px`),i.left<a.left&&(o=a.left-i.left,this.root.style.left=`${n+o}px`),i.bottom>a.bottom){const s=i.bottom-i.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 Nle=[!1,"center","right","justify"],Fle=["#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"],Ole=[!1,"serif","monospace"],Ile=["1","2","3",!1],Dle=["small",!1,"large","huge"];class Em extends lh{constructor(t,n){super(t,n);const r=a=>{if(!document.body.contains(t.root)){document.body.removeEventListener("click",r);return}this.tooltip!=null&&!this.tooltip.root.contains(a.target)&&document.activeElement!==this.tooltip.textbox&&!this.quill.hasFocus()&&this.tooltip.hide(),this.pickers!=null&&this.pickers.forEach(i=>{i.container.contains(a.target)||i.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(i=>{if(i.startsWith("ql-")&&(i=i.slice(3),n[i]!=null))if(i==="direction")r.innerHTML=n[i][""]+n[i].rtl;else if(typeof n[i]=="string")r.innerHTML=n[i];else{const o=r.value||"";o!=null&&n[i][o]&&(r.innerHTML=n[i][o])}})})}buildPickers(t,n){this.pickers=Array.from(t).map(a=>{if(a.classList.contains("ql-align")&&(a.querySelector("option")==null&&Lm(a,Nle),typeof n.align=="object"))return new h8(a,n.align);if(a.classList.contains("ql-background")||a.classList.contains("ql-color")){const i=a.classList.contains("ql-background")?"background":"color";return a.querySelector("option")==null&&Lm(a,Fle,i==="background"?"#ffffff":"#000000"),new f8(a,n[i])}return a.querySelector("option")==null&&(a.classList.contains("ql-font")?Lm(a,Ole):a.classList.contains("ql-header")?Lm(a,Ile):a.classList.contains("ql-size")&&Lm(a,Dle)),new Jv(a)});const r=()=>{this.pickers.forEach(a=>{a.update()})};this.quill.on(Ut.events.EDITOR_CHANGE,r)}}Em.DEFAULTS=zc({},lh.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 m8 extends p8{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,Ut.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",t,Ut.sources.USER)),this.quill.root.scrollTop=n;break}case"video":t=Ule(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,Ut.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(r+1," ",Ut.sources.USER),this.quill.setSelection(r+2,Ut.sources.USER)}break}}this.textbox.value="",this.hide()}}function Ule(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 Lm(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;t.forEach(r=>{const a=document.createElement("option");r===n?a.setAttribute("selected","selected"):a.setAttribute("value",String(r)),e.appendChild(a)})}const Ple=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class g8 extends m8{constructor(t,n){super(t,n),this.quill.on(Ut.events.EDITOR_CHANGE,(r,a,i,o)=>{if(r===Ut.events.SELECTION_CHANGE)if(a!=null&&a.length>0&&o===Ut.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(a.index,a.length);if(s.length===1){const u=this.quill.getBounds(a);u!=null&&this.position(u)}else{const u=s[s.length-1],c=this.quill.getIndex(u),A=Math.min(u.length()-1,a.index+a.length-c),d=this.quill.getBounds(new kd(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(Ut.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}}Mt(g8,"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 v8 extends Em{constructor(t,n){n.modules.toolbar!=null&&n.modules.toolbar.container==null&&(n.modules.toolbar.container=Ple),super(t,n),this.quill.container.classList.add("ql-bubble")}extendToolbar(t){this.tooltip=new g8(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))}}v8.DEFAULTS=zc({},Em.DEFAULTS,{modules:{toolbar:{handlers:{link(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1,rt.sources.USER)}}}}});const Hle=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class y8 extends m8{constructor(){super(...arguments);Mt(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,Ut.sources.USER),delete this.linkRange}n.preventDefault(),this.hide()}),this.quill.on(Ut.events.SELECTION_CHANGE,(n,r,a)=>{if(n!=null){if(n.length===0&&a===Ut.sources.USER){const[i,o]=this.quill.scroll.descendant(Gc,n.index);if(i!=null){this.linkRange=new kd(n.index-o,i.length());const s=Gc.formats(i.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")}}Mt(y8,"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 _8 extends Em{constructor(t,n){n.modules.toolbar!=null&&n.modules.toolbar.container==null&&(n.modules.toolbar.container=Hle),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 y8(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)}))}}_8.DEFAULTS=zc({},Em.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":YT,"attributors/class/align":UT,"attributors/class/background":Sse,"attributors/class/color":Cse,"attributors/class/direction":QT,"attributors/class/font":VT,"attributors/class/size":qT,"attributors/style/align":PT,"attributors/style/background":Ww,"attributors/style/color":Gw,"attributors/style/direction":RT,"attributors/style/font":zT,"attributors/style/size":KT},!0),rt.register({"formats/align":UT,"formats/direction":QT,"formats/indent":mle,"formats/background":Ww,"formats/color":Gw,"formats/font":VT,"formats/size":qT,"formats/blockquote":r5,"formats/code-block":Ci,"formats/header":a5,"formats/list":xm,"formats/bold":Cm,"formats/code":Xw,"formats/italic":i5,"formats/link":Gc,"formats/script":o5,"formats/strike":s5,"formats/underline":l5,"formats/formula":Wv,"formats/image":gle,"formats/video":Xv,"modules/syntax":s8,"modules/table":yle,"modules/toolbar":c5,"themes/bubble":v8,"themes/snow":_8,"ui/icons":Mm,"ui/picker":Jv,"ui/icon-picker":h8,"ui/color-picker":f8,"ui/tooltip":p8},!0);const Yle={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(a=>`<p>${a}</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 Qle(e,t,n,r,a,i){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 b8=sr(Yle,[["render",Qle]]),Rle={class:"mt-2"},jle={class:"text-sm overflow-x-auto text-ellipsis"},Vle=l.defineComponent({__name:"ConfirmDialog",setup(e,{expose:t}){const n=l.ref(!1),r=l.ref(""),a=l.ref(""),i=l.ref(()=>{}),o=l.ref(()=>{}),s=l.ref("Yes"),u=l.ref("No"),c=l.ref(!1);function A(m,p,v,y,g="Yes",_="No"){a.value=m,r.value=p,i.value=v,o.value=y,n.value=!0,s.value=g,u.value=_}async function d(){c.value=!0,await i.value(),c.value=!1,h()}function f(){o.value&&o.value(),h()}function h(){n.value=!1}return t({openModal:A}),(m,p)=>(l.openBlock(),l.createBlock(l.unref(Gs),{open:n.value,title:a.value,onClose:h},{content:l.withCtx(()=>[l.createElementVNode("div",Rle,[l.createElementVNode("p",jle,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"]))}}),zle={class:"mt-2"},qle={class:"break-all text-sm text-gray-600 dark:text-gray-400 font-bold"},Kle={class:"text-sm text-gray-500"},Gle=l.defineComponent({__name:"CopyDialog",emits:["notify"],setup(e,{expose:t,emit:n}){const r=n,a=l.ref(!1),i=l.ref(""),o=l.ref(""),s=l.ref("");function u(d,f,h){o.value=d,i.value=f,s.value=h,a.value=!0}function c(){navigator.clipboard.writeText(s.value),r("notify","Token copied to clipboard","",!0)}function A(){a.value=!1}return t({openModal:u}),(d,f)=>(l.openBlock(),l.createBlock(l.unref(Gs),{open:a.value,title:o.value,onClose:A},{content:l.withCtx(()=>[l.createElementVNode("div",zle,[l.createElementVNode("p",qle,l.toDisplayString(s.value),1),l.createElementVNode("p",Kle,l.toDisplayString(i.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"]))}}),w8={__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,a=n,i=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(){i.value=!1}function A(d){i.value=!0,o.value={}}return t({open:i,openModal:A,close:c}),(d,f)=>(l.openBlock(),l.createBlock(l.unref(Gs),{open:i.value,title:e.title},{content:l.withCtx(()=>[l.createVNode(l.unref(Ha),{fieldName:e.nameField},{default:l.withCtx(()=>[l.createVNode(l.unref(nr),{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(Ha),{key:0,fieldName:"Select Attribute Value"},{default:l.withCtx(()=>[l.createVNode(l.unref(nr),{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(Ha),{fieldName:"Selected Value"},{default:l.withCtx(()=>[l.createVNode(l.unref(t6),{value:o.value.val,readonly:""},null,8,["value"])]),_:1})]),footer:l.withCtx(()=>[l.createVNode(l.unref(Nd),{saveText:e.saveButtonText,onSave:f[3]||(f[3]=h=>a("save",o.value)),onClose:c},null,8,["saveText"])]),_:1},8,["open","title"]))}},Wle={__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,a=l.ref(!1),i=l.ref({});function o(){a.value=!1}function s(u){a.value=!0,i.value={name:u.name}}return t({open:a,openModal:s,close:o}),(u,c)=>(l.openBlock(),l.createBlock(l.unref(Gs),{open:a.value,title:e.title},{content:l.withCtx(()=>[l.createVNode(l.unref(Ha),{fieldName:e.nameField},{default:l.withCtx(()=>[l.createVNode(l.unref(Ki),{modelValue:i.value.name,"onUpdate:modelValue":c[0]||(c[0]=A=>i.value.name=A)},null,8,["modelValue"])]),_:1},8,["fieldName"])]),footer:l.withCtx(()=>[l.createVNode(l.unref(Nd),{saveText:e.saveButtonText,onSave:c[1]||(c[1]=A=>r("save",i.value)),onClose:o},null,8,["saveText"])]),_:1},8,["open","title"]))}},Xle={__name:"NameDescDialog",props:{title:{type:String,default:"Add"},saveButtonText:{type:String,default:"Save"},loading:{type:Boolean,default:!1}},emits:["save","notifyList"],setup(e,{expose:t,emit:n}){const r=n,a=l.ref(!1),i=l.ref({}),o=l.ref({});function s(){a.value=!1}function u(c){a.value=!0,i.value={name:c.name,description:c.description||""}}return t({open:a,openModal:u,close:s}),(c,A)=>(l.openBlock(),l.createBlock(l.unref(Gs),{open:a.value,title:e.title},{content:l.withCtx(()=>[l.createVNode(l.unref(Ha),{fieldName:"Name"},{default:l.withCtx(()=>[l.createVNode(l.unref(Ki),{modelValue:i.value.name,"onUpdate:modelValue":A[0]||(A[0]=d=>i.value.name=d),error:o.value.name},null,8,["modelValue","error"])]),_:1}),l.createVNode(l.unref(Ha),{fieldName:"Description"},{default:l.withCtx(()=>[l.createVNode(l.unref(Ki),{modelValue:i.value.description,"onUpdate:modelValue":A[1]||(A[1]=d=>i.value.description=d)},null,8,["modelValue"])]),_:1})]),footer:l.withCtx(()=>[l.createVNode(l.unref(Nd),{saveText:e.saveButtonText,loading:e.loading,onSave:A[2]||(A[2]=d=>r("save",i.value)),onClose:s},null,8,["saveText","loading"])]),_:1},8,["open","title"]))}};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:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25H12"})])}function Jle(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.5M12 17.25h8.25"})])}function Zle(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.25h16.5"})])}function $le(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 5.25h16.5m-16.5 4.5h16.5m-16.5 4.5h16.5m-16.5 4.5h16.5"})])}function Tm(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 x8(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 Zv(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 C8(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 eue(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 S8(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 k8(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 Td(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 A5(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 tue={class:"flex"},nue={class:"flex-shrink-0"},rue={class:"ml-3"},aue={key:0,class:"text-sm font-medium text-green-800"},iue={key:1,class:"text-sm font-medium text-red-800"},oue={key:2,class:"mt-2 text-sm text-green-700"},sue={key:3,class:"mt-2 text-sm text-red-700"},lue={class:"ml-auto pl-3"},uue={class:"-mx-1.5 -my-1.5"},cue={class:"flex"},Aue={class:"flex-shrink-0"},due={class:"ml-3"},fue={key:0,class:"text-sm font-medium text-green-800"},hue={key:1,class:"text-sm font-medium text-red-800"},pue={key:2,class:"mt-2 text-sm text-green-700"},mue={key:3,class:"mt-2 text-sm text-red-700"},gue={class:"ml-auto pl-3"},vue={class:"-mx-1.5 -my-1.5"},yue=l.defineComponent({__name:"Notify",setup(e,{expose:t}){const n=l.ref(!1),r=l.ref(""),a=l.ref(!1),i=l.ref(""),o=l.ref(),s=l.ref(!1);function u(d,f,h){clearTimeout(o.value),i.value=d,r.value=f,a.value=h,n.value=!0;const m=window.document.querySelectorAll("#headlessui-portal-root");s.value=m&&m.length>0&&m[0].childElementCount>1,o.value=setTimeout(()=>{c()},3e3)}function c(){n.value=!1}function A(){return a.value?"green":"red"}return t({openModal:u}),(d,f)=>(l.openBlock(),l.createBlock(l.unref(Qc),{as:"template",show:n.value},{default:l.withCtx(()=>[s.value?(l.openBlock(),l.createBlock(l.unref(Xf),{key:0,as:"div",class:l.normalizeClass([a.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",tue,[l.createElementVNode("div",nue,[a.value?(l.openBlock(),l.createBlock(l.unref(Tm),{key:0,class:"icon-md text-green-400","aria-hidden":"true"})):(l.openBlock(),l.createBlock(l.unref(Td),{key:1,class:"icon-md text-red-400","aria-hidden":"true"}))]),l.createElementVNode("div",rue,[a.value?(l.openBlock(),l.createElementBlock("h3",aue,l.toDisplayString(i.value),1)):(l.openBlock(),l.createElementBlock("h3",iue,l.toDisplayString(i.value),1)),a.value?(l.openBlock(),l.createElementBlock("div",oue,[l.createElementVNode("p",null,l.toDisplayString(r.value),1)])):(l.openBlock(),l.createElementBlock("div",sue,[l.createElementVNode("p",null,l.toDisplayString(r.value),1)]))]),l.createElementVNode("div",lue,[l.createElementVNode("div",uue,[l.createVNode(l.unref(Wc),{color:A(),onClick:c},{default:l.withCtx(()=>[l.createVNode(l.unref(bd),{class:"icon-md","aria-hidden":"true"})]),_:1},8,["color"])])])])]),_:1},8,["class"])):(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass([a.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",cue,[l.createElementVNode("div",Aue,[a.value?(l.openBlock(),l.createBlock(l.unref(Tm),{key:0,class:"icon-md text-green-400","aria-hidden":"true"})):(l.openBlock(),l.createBlock(l.unref(Td),{key:1,class:"icon-md text-red-400","aria-hidden":"true"}))]),l.createElementVNode("div",due,[a.value?(l.openBlock(),l.createElementBlock("h3",fue,l.toDisplayString(i.value),1)):(l.openBlock(),l.createElementBlock("h3",hue,l.toDisplayString(i.value),1)),a.value?(l.openBlock(),l.createElementBlock("div",pue,[l.createElementVNode("p",null,l.toDisplayString(r.value),1)])):(l.openBlock(),l.createElementBlock("div",mue,[l.createElementVNode("p",null,l.toDisplayString(r.value),1)]))]),l.createElementVNode("div",gue,[l.createElementVNode("div",vue,[l.createVNode(l.unref(Wc),{color:A(),onClick:c},{default:l.withCtx(()=>[l.createVNode(l.unref(bd),{class:"icon-md","aria-hidden":"true"})]),_:1},8,["color"])])])])],2))]),_:1},8,["show"]))}}),_ue={class:"flex"},bue={class:"flex-shrink-0"},wue={class:"ml-3"},Bue={key:0,class:"text-sm font-medium text-green-800"},xue={key:1,class:"text-sm font-medium text-red-800"},Cue={key:2,class:"mt-2 text-sm text-green-700"},Sue={role:"list",class:"list-disc space-y-1 pl-5"},kue={key:3,class:"mt-2 text-sm text-red-700"},Mue={role:"list",class:"list-disc space-y-1 pl-5"},Eue={class:"ml-auto pl-3"},Lue={class:"-mx-1.5 -my-1.5"},Tue={class:"flex"},Nue={class:"flex-shrink-0"},Fue={class:"ml-3"},Oue={key:0,class:"text-sm font-medium text-green-800"},Iue={key:1,class:"text-sm font-medium text-red-800"},Due={key:2,class:"mt-2 text-sm text-green-700"},Uue={role:"list",class:"list-disc space-y-1 pl-5"},Pue={key:3,class:"mt-2 text-sm text-red-700"},Hue={role:"list",class:"list-disc space-y-1 pl-5"},Yue={class:"ml-auto pl-3"},Que={class:"-mx-1.5 -my-1.5"},M8=l.defineComponent({__name:"NotifyList",setup(e,{expose:t}){const n=l.ref(!1),r=l.ref(),a=l.ref(!1),i=l.ref(""),o=l.ref(),s=l.ref(!1);function u(d,f,h){clearTimeout(o.value),i.value=d,r.value=f,a.value=h,n.value=!0;const m=window.document.querySelectorAll("#headlessui-portal-root");s.value=m&&m.length>0&&m[0].childElementCount>1,o.value=setTimeout(()=>{c()},5e3)}function c(){n.value=!1}function A(){return a.value?"green":"red"}return t({openModal:u}),(d,f)=>(l.openBlock(),l.createBlock(l.unref(Qc),{as:"template",show:n.value},{default:l.withCtx(()=>[s.value?(l.openBlock(),l.createBlock(l.unref(Xf),{key:0,as:"div",class:l.normalizeClass([a.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",_ue,[l.createElementVNode("div",bue,[a.value?(l.openBlock(),l.createBlock(l.unref(Tm),{key:0,class:"icon-md text-green-400","aria-hidden":"true"})):(l.openBlock(),l.createBlock(l.unref(Td),{key:1,class:"icon-md text-red-400","aria-hidden":"true"}))]),l.createElementVNode("div",wue,[a.value?(l.openBlock(),l.createElementBlock("h3",Bue,l.toDisplayString(i.value),1)):(l.openBlock(),l.createElementBlock("h3",xue,l.toDisplayString(i.value),1)),a.value?(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.openBlock(),l.createElementBlock("div",kue,[l.createElementVNode("ul",Mue,[(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",Eue,[l.createElementVNode("div",Lue,[l.createVNode(l.unref(Wc),{color:A(),onClick:c},{default:l.withCtx(()=>[l.createVNode(l.unref(bd),{class:"icon-md","aria-hidden":"true"})]),_:1},8,["color"])])])])]),_:1},8,["class"])):(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass([a.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",Tue,[l.createElementVNode("div",Nue,[a.value?(l.openBlock(),l.createBlock(l.unref(Tm),{key:0,class:"icon-md text-green-400","aria-hidden":"true"})):(l.openBlock(),l.createBlock(l.unref(Td),{key:1,class:"icon-md text-red-400","aria-hidden":"true"}))]),l.createElementVNode("div",Fue,[a.value?(l.openBlock(),l.createElementBlock("h3",Oue,l.toDisplayString(i.value),1)):(l.openBlock(),l.createElementBlock("h3",Iue,l.toDisplayString(i.value),1)),a.value?(l.openBlock(),l.createElementBlock("div",Due,[l.createElementVNode("ul",Uue,[(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",Pue,[l.createElementVNode("ul",Hue,[(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",Yue,[l.createElementVNode("div",Que,[l.createVNode(l.unref(Wc),{color:A(),onClick:c},{default:l.withCtx(()=>[l.createVNode(l.unref(bd),{class:"icon-md","aria-hidden":"true"})]),_:1},8,["color"])])])])],2))]),_:1},8,["show"]))}}),Rue={__name:"ProgressDialog",emits:["close"],setup(e,{expose:t,emit:n}){const r=n,a=l.ref(!1),i=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),a.value=!1}function d(h,m=0,p=100,v=c){a.value=!0,i.value=h,o.value=m,p?(s.value=c,s.value(p)):(s.value=v,s.value())}function f(h){o.value=h}return t({openModal:d,updateProgress:f,close:A}),(h,m)=>(l.openBlock(),l.createBlock(l.unref(Gs),{open:a.value,title:i.value,loading:!0},{content:l.withCtx(()=>[l.createVNode(l.unref(Y8),{progress:o.value},null,8,["progress"])]),_:1},8,["open","title"]))}},jue={class:"w-full px-4"},Vue={class:"pb-8 md:pb-4 row gap-x-2"},zue={class:"row gap-x-2"},que={__name:"Stepper",props:{steps:Array},setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("div",jue,[l.createElementVNode("div",Vue,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.steps,(r,a)=>(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",zue,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.steps,(r,a)=>(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))])]))}},Kue={class:"flow-root"},Gue={class:"float-left"},Wue={class:"float-right space-x-4"},Xue={__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),a=l.ref(0),i=t;l.watch(()=>n.open,()=>{r.value=n.steps,a.value=0}),l.watch(()=>n.proceed,()=>{n.proceed&&(r.value[a.value].status="completed",a.value+=1,r.value[a.value].status="current",i("moved"))}),l.watch(()=>n.steps,()=>{r.value=n.steps});function o(){a.value===0?(a.value=0,i("close")):(r.value[a.value].status="upcoming",a.value-=1,r.value[a.value].status="current")}function s(){i("next")}return(u,c)=>(l.openBlock(),l.createBlock(l.unref(Gs),{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(que,{steps:r.value},null,8,["steps"]),l.renderSlot(u.$slots,"content")]),footer:l.withCtx(()=>[l.createElementVNode("div",Kue,[l.createElementVNode("div",Gue,[l.renderSlot(u.$slots,"footer")]),l.createElementVNode("div",Wue,[l.createVNode(l.unref(is),{text:a.value===0?"Cancel":"Back",color:"red",onClick:o},null,8,["text"]),a.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?i("close"):s())},null,8,["text"]))])])]),_:3},8,["open","title"]))}},Jue={__name:"ResetPasswordDialog",emits:["save","notify"],setup(e,{expose:t,emit:n}){const r=n,a=l.ref(!1),i=l.ref({}),o=l.ref({});function s(){if(o.value={},!i.value.password||i.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(i.value.password!==i.value.confirm){o.value.confirm="Passwords do not match",r("notify","Error",[o.value.confirm],!1);return}r("save",i.value),u()}function u(){a.value=!1}function c(A){a.value=!0,i.value={username:A}}return t({open:a,openModal:c,close:u}),(A,d)=>(l.openBlock(),l.createBlock(l.unref(Gs),{open:a.value,title:"Reset Password"},{content:l.withCtx(()=>[l.createVNode(l.unref(Ha),{fieldName:"Password"},{default:l.withCtx(()=>[l.createVNode(l.unref(uw),{modelValue:i.value.password,"onUpdate:modelValue":d[0]||(d[0]=f=>i.value.password=f),error:o.value.password},null,8,["modelValue","error"])]),_:1}),l.createVNode(l.unref(Ha),{fieldName:"Confirm Password"},{default:l.withCtx(()=>[l.createVNode(l.unref(uw),{modelValue:i.value.confirm,"onUpdate:modelValue":d[1]||(d[1]=f=>i.value.confirm=f),error:o.value.confirm},null,8,["modelValue","error"])]),_:1})]),footer:l.withCtx(()=>[l.createVNode(l.unref(Nd),{saveText:"Reset",onSave:s,onClose:u})]),_:1},8,["open"]))}},Zue={__name:"DownloadDialog",props:{},emits:["notify","notifyList","close"],setup(e,{expose:t,emit:n}){const r=n,a=l.ref(!1),i=l.ref("Title"),o=l.ref(null);function s(A,d){a.value=!0,i.value=A,o.value=d}function u(){window.open(o.value,"_blank"),c()}function c(){a.value=!1,i.value="Title",o.value=null,r("close")}return t({openModal:s,closeModal:c}),(A,d)=>(l.openBlock(),l.createBlock(l.unref(Gs),{open:a.value,title:i.value,size:"medium"},{footer:l.withCtx(()=>[l.createVNode(l.unref(Nd),{saveText:"Download",onSave:u,onClose:c})]),_:1},8,["open","title"]))}};function Nm(){return Nm=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},Nm.apply(this,arguments)}var $ue=13,ece=9,tce=8,nce=89,$v=90,rce=77,E8=57,L8=219,T8=222,N8=192,ace=27,F8=100,ice=3e3,oce=typeof window<"u"&&navigator&&/Win/i.test(navigator.platform),d5=typeof window<"u"&&navigator&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),sce=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 a="border-top-left-radius",i="border-bottom-left-radius";if(n){n.style[a]=r[a],n.style[i]=r[i],t.style[a]="0",t.style[i]="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,a=t.selectionEnd;this._recordChange({value:n,selectionStart:r,selectionEnd:a})}},_getLines:function(t,n){return t.substring(0,n).split(`
57
+ `).map(a=>`<p>${a}</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 Qle(e,t,n,r,a,i){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 b8=sr(Yle,[["render",Qle]]),Rle={class:"mt-2"},jle={class:"text-sm overflow-x-auto text-ellipsis"},Vle=l.defineComponent({__name:"ConfirmDialog",setup(e,{expose:t}){const n=l.ref(!1),r=l.ref(""),a=l.ref(""),i=l.ref(()=>{}),o=l.ref(()=>{}),s=l.ref("Yes"),u=l.ref("No"),c=l.ref(!1);function A(m,p,v,y,g="Yes",_="No"){a.value=m,r.value=p,i.value=v,o.value=y,n.value=!0,s.value=g,u.value=_}async function d(){c.value=!0,await i.value(),c.value=!1,h()}function f(){o.value&&o.value(),h()}function h(){n.value=!1}return t({openModal:A}),(m,p)=>(l.openBlock(),l.createBlock(l.unref(Gs),{open:n.value,title:a.value,onClose:h},{content:l.withCtx(()=>[l.createElementVNode("div",Rle,[l.createElementVNode("p",jle,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"]))}}),zle={class:"mt-2"},qle={class:"break-all text-sm text-gray-600 dark:text-gray-400 font-bold"},Kle={class:"text-sm text-gray-500"},Gle=l.defineComponent({__name:"CopyDialog",emits:["notify"],setup(e,{expose:t,emit:n}){const r=n,a=l.ref(!1),i=l.ref(""),o=l.ref(""),s=l.ref("");function u(d,f,h){o.value=d,i.value=f,s.value=h,a.value=!0}function c(){navigator.clipboard.writeText(s.value),r("notify","Token copied to clipboard","",!0)}function A(){a.value=!1}return t({openModal:u}),(d,f)=>(l.openBlock(),l.createBlock(l.unref(Gs),{open:a.value,title:o.value,onClose:A},{content:l.withCtx(()=>[l.createElementVNode("div",zle,[l.createElementVNode("p",qle,l.toDisplayString(s.value),1),l.createElementVNode("p",Kle,l.toDisplayString(i.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"]))}}),w8={__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,a=n,i=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(){i.value=!1}function A(d){i.value=!0,o.value={}}return t({open:i,openModal:A,close:c}),(d,f)=>(l.openBlock(),l.createBlock(l.unref(Gs),{open:i.value,title:e.title},{content:l.withCtx(()=>[l.createVNode(l.unref(Ha),{fieldName:e.nameField},{default:l.withCtx(()=>[l.createVNode(l.unref(nr),{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(Ha),{key:0,fieldName:"Select Attribute Value"},{default:l.withCtx(()=>[l.createVNode(l.unref(nr),{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(Ha),{fieldName:"Selected Value"},{default:l.withCtx(()=>[l.createVNode(l.unref(t6),{value:o.value.val,readonly:""},null,8,["value"])]),_:1})]),footer:l.withCtx(()=>[l.createVNode(l.unref(Nd),{saveText:e.saveButtonText,onSave:f[3]||(f[3]=h=>a("save",o.value)),onClose:c},null,8,["saveText"])]),_:1},8,["open","title"]))}},Wle={__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,a=l.ref(!1),i=l.ref({});function o(){a.value=!1}function s(u){a.value=!0,i.value={name:u.name}}return t({open:a,openModal:s,close:o}),(u,c)=>(l.openBlock(),l.createBlock(l.unref(Gs),{open:a.value,title:e.title},{content:l.withCtx(()=>[l.createVNode(l.unref(Ha),{fieldName:e.nameField},{default:l.withCtx(()=>[l.createVNode(l.unref(Ki),{modelValue:i.value.name,"onUpdate:modelValue":c[0]||(c[0]=A=>i.value.name=A)},null,8,["modelValue"])]),_:1},8,["fieldName"])]),footer:l.withCtx(()=>[l.createVNode(l.unref(Nd),{saveText:e.saveButtonText,onSave:c[1]||(c[1]=A=>r("save",i.value)),onClose:o},null,8,["saveText"])]),_:1},8,["open","title"]))}},Xle={__name:"NameDescDialog",props:{title:{type:String,default:"Add"},saveButtonText:{type:String,default:"Save"},loading:{type:Boolean,default:!1}},emits:["save","notifyList"],setup(e,{expose:t,emit:n}){const r=n,a=l.ref(!1),i=l.ref({}),o=l.ref({});function s(){a.value=!1}function u(){if(o.value={},!i.value.name){o.value.name="Name is required",r("notifyList","Error",["Name is required"],!1);return}r("save",i.value)}function c(A){a.value=!0,i.value={name:A.name,description:A.description||""}}return t({open:a,openModal:c,close:s}),(A,d)=>(l.openBlock(),l.createBlock(l.unref(Gs),{open:a.value,title:e.title},{content:l.withCtx(()=>[l.createVNode(l.unref(Ha),{fieldName:"Name"},{default:l.withCtx(()=>[l.createVNode(l.unref(Ki),{modelValue:i.value.name,"onUpdate:modelValue":d[0]||(d[0]=f=>i.value.name=f),error:o.value.name},null,8,["modelValue","error"])]),_:1}),l.createVNode(l.unref(Ha),{fieldName:"Description"},{default:l.withCtx(()=>[l.createVNode(l.unref(Ki),{modelValue:i.value.description,"onUpdate:modelValue":d[1]||(d[1]=f=>i.value.description=f)},null,8,["modelValue"])]),_:1})]),footer:l.withCtx(()=>[l.createVNode(l.unref(Nd),{saveText:e.saveButtonText,loading:e.loading,onSave:u,onClose:s},null,8,["saveText","loading"])]),_:1},8,["open","title"]))}};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:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25H12"})])}function Jle(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.5M12 17.25h8.25"})])}function Zle(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.25h16.5"})])}function $le(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 5.25h16.5m-16.5 4.5h16.5m-16.5 4.5h16.5m-16.5 4.5h16.5"})])}function Tm(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 x8(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 Zv(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 C8(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 eue(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 S8(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 k8(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 Td(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 A5(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 tue={class:"flex"},nue={class:"flex-shrink-0"},rue={class:"ml-3"},aue={key:0,class:"text-sm font-medium text-green-800"},iue={key:1,class:"text-sm font-medium text-red-800"},oue={key:2,class:"mt-2 text-sm text-green-700"},sue={key:3,class:"mt-2 text-sm text-red-700"},lue={class:"ml-auto pl-3"},uue={class:"-mx-1.5 -my-1.5"},cue={class:"flex"},Aue={class:"flex-shrink-0"},due={class:"ml-3"},fue={key:0,class:"text-sm font-medium text-green-800"},hue={key:1,class:"text-sm font-medium text-red-800"},pue={key:2,class:"mt-2 text-sm text-green-700"},mue={key:3,class:"mt-2 text-sm text-red-700"},gue={class:"ml-auto pl-3"},vue={class:"-mx-1.5 -my-1.5"},yue=l.defineComponent({__name:"Notify",setup(e,{expose:t}){const n=l.ref(!1),r=l.ref(""),a=l.ref(!1),i=l.ref(""),o=l.ref(),s=l.ref(!1);function u(d,f,h){clearTimeout(o.value),i.value=d,r.value=f,a.value=h,n.value=!0;const m=window.document.querySelectorAll("#headlessui-portal-root");s.value=m&&m.length>0&&m[0].childElementCount>1,o.value=setTimeout(()=>{c()},3e3)}function c(){n.value=!1}function A(){return a.value?"green":"red"}return t({openModal:u}),(d,f)=>(l.openBlock(),l.createBlock(l.unref(Qc),{as:"template",show:n.value},{default:l.withCtx(()=>[s.value?(l.openBlock(),l.createBlock(l.unref(Xf),{key:0,as:"div",class:l.normalizeClass([a.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",tue,[l.createElementVNode("div",nue,[a.value?(l.openBlock(),l.createBlock(l.unref(Tm),{key:0,class:"icon-md text-green-400","aria-hidden":"true"})):(l.openBlock(),l.createBlock(l.unref(Td),{key:1,class:"icon-md text-red-400","aria-hidden":"true"}))]),l.createElementVNode("div",rue,[a.value?(l.openBlock(),l.createElementBlock("h3",aue,l.toDisplayString(i.value),1)):(l.openBlock(),l.createElementBlock("h3",iue,l.toDisplayString(i.value),1)),a.value?(l.openBlock(),l.createElementBlock("div",oue,[l.createElementVNode("p",null,l.toDisplayString(r.value),1)])):(l.openBlock(),l.createElementBlock("div",sue,[l.createElementVNode("p",null,l.toDisplayString(r.value),1)]))]),l.createElementVNode("div",lue,[l.createElementVNode("div",uue,[l.createVNode(l.unref(Wc),{color:A(),onClick:c},{default:l.withCtx(()=>[l.createVNode(l.unref(bd),{class:"icon-md","aria-hidden":"true"})]),_:1},8,["color"])])])])]),_:1},8,["class"])):(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass([a.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",cue,[l.createElementVNode("div",Aue,[a.value?(l.openBlock(),l.createBlock(l.unref(Tm),{key:0,class:"icon-md text-green-400","aria-hidden":"true"})):(l.openBlock(),l.createBlock(l.unref(Td),{key:1,class:"icon-md text-red-400","aria-hidden":"true"}))]),l.createElementVNode("div",due,[a.value?(l.openBlock(),l.createElementBlock("h3",fue,l.toDisplayString(i.value),1)):(l.openBlock(),l.createElementBlock("h3",hue,l.toDisplayString(i.value),1)),a.value?(l.openBlock(),l.createElementBlock("div",pue,[l.createElementVNode("p",null,l.toDisplayString(r.value),1)])):(l.openBlock(),l.createElementBlock("div",mue,[l.createElementVNode("p",null,l.toDisplayString(r.value),1)]))]),l.createElementVNode("div",gue,[l.createElementVNode("div",vue,[l.createVNode(l.unref(Wc),{color:A(),onClick:c},{default:l.withCtx(()=>[l.createVNode(l.unref(bd),{class:"icon-md","aria-hidden":"true"})]),_:1},8,["color"])])])])],2))]),_:1},8,["show"]))}}),_ue={class:"flex"},bue={class:"flex-shrink-0"},wue={class:"ml-3"},Bue={key:0,class:"text-sm font-medium text-green-800"},xue={key:1,class:"text-sm font-medium text-red-800"},Cue={key:2,class:"mt-2 text-sm text-green-700"},Sue={role:"list",class:"list-disc space-y-1 pl-5"},kue={key:3,class:"mt-2 text-sm text-red-700"},Mue={role:"list",class:"list-disc space-y-1 pl-5"},Eue={class:"ml-auto pl-3"},Lue={class:"-mx-1.5 -my-1.5"},Tue={class:"flex"},Nue={class:"flex-shrink-0"},Fue={class:"ml-3"},Oue={key:0,class:"text-sm font-medium text-green-800"},Iue={key:1,class:"text-sm font-medium text-red-800"},Due={key:2,class:"mt-2 text-sm text-green-700"},Uue={role:"list",class:"list-disc space-y-1 pl-5"},Pue={key:3,class:"mt-2 text-sm text-red-700"},Hue={role:"list",class:"list-disc space-y-1 pl-5"},Yue={class:"ml-auto pl-3"},Que={class:"-mx-1.5 -my-1.5"},M8=l.defineComponent({__name:"NotifyList",setup(e,{expose:t}){const n=l.ref(!1),r=l.ref(),a=l.ref(!1),i=l.ref(""),o=l.ref(),s=l.ref(!1);function u(d,f,h){clearTimeout(o.value),i.value=d,r.value=f,a.value=h,n.value=!0;const m=window.document.querySelectorAll("#headlessui-portal-root");s.value=m&&m.length>0&&m[0].childElementCount>1,o.value=setTimeout(()=>{c()},5e3)}function c(){n.value=!1}function A(){return a.value?"green":"red"}return t({openModal:u}),(d,f)=>(l.openBlock(),l.createBlock(l.unref(Qc),{as:"template",show:n.value},{default:l.withCtx(()=>[s.value?(l.openBlock(),l.createBlock(l.unref(Xf),{key:0,as:"div",class:l.normalizeClass([a.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",_ue,[l.createElementVNode("div",bue,[a.value?(l.openBlock(),l.createBlock(l.unref(Tm),{key:0,class:"icon-md text-green-400","aria-hidden":"true"})):(l.openBlock(),l.createBlock(l.unref(Td),{key:1,class:"icon-md text-red-400","aria-hidden":"true"}))]),l.createElementVNode("div",wue,[a.value?(l.openBlock(),l.createElementBlock("h3",Bue,l.toDisplayString(i.value),1)):(l.openBlock(),l.createElementBlock("h3",xue,l.toDisplayString(i.value),1)),a.value?(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.openBlock(),l.createElementBlock("div",kue,[l.createElementVNode("ul",Mue,[(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",Eue,[l.createElementVNode("div",Lue,[l.createVNode(l.unref(Wc),{color:A(),onClick:c},{default:l.withCtx(()=>[l.createVNode(l.unref(bd),{class:"icon-md","aria-hidden":"true"})]),_:1},8,["color"])])])])]),_:1},8,["class"])):(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass([a.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",Tue,[l.createElementVNode("div",Nue,[a.value?(l.openBlock(),l.createBlock(l.unref(Tm),{key:0,class:"icon-md text-green-400","aria-hidden":"true"})):(l.openBlock(),l.createBlock(l.unref(Td),{key:1,class:"icon-md text-red-400","aria-hidden":"true"}))]),l.createElementVNode("div",Fue,[a.value?(l.openBlock(),l.createElementBlock("h3",Oue,l.toDisplayString(i.value),1)):(l.openBlock(),l.createElementBlock("h3",Iue,l.toDisplayString(i.value),1)),a.value?(l.openBlock(),l.createElementBlock("div",Due,[l.createElementVNode("ul",Uue,[(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",Pue,[l.createElementVNode("ul",Hue,[(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",Yue,[l.createElementVNode("div",Que,[l.createVNode(l.unref(Wc),{color:A(),onClick:c},{default:l.withCtx(()=>[l.createVNode(l.unref(bd),{class:"icon-md","aria-hidden":"true"})]),_:1},8,["color"])])])])],2))]),_:1},8,["show"]))}}),Rue={__name:"ProgressDialog",emits:["close"],setup(e,{expose:t,emit:n}){const r=n,a=l.ref(!1),i=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),a.value=!1}function d(h,m=0,p=100,v=c){a.value=!0,i.value=h,o.value=m,p?(s.value=c,s.value(p)):(s.value=v,s.value())}function f(h){o.value=h}return t({openModal:d,updateProgress:f,close:A}),(h,m)=>(l.openBlock(),l.createBlock(l.unref(Gs),{open:a.value,title:i.value,loading:!0},{content:l.withCtx(()=>[l.createVNode(l.unref(Y8),{progress:o.value},null,8,["progress"])]),_:1},8,["open","title"]))}},jue={class:"w-full px-4"},Vue={class:"pb-8 md:pb-4 row gap-x-2"},zue={class:"row gap-x-2"},que={__name:"Stepper",props:{steps:Array},setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("div",jue,[l.createElementVNode("div",Vue,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.steps,(r,a)=>(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",zue,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.steps,(r,a)=>(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))])]))}},Kue={class:"flow-root"},Gue={class:"float-left"},Wue={class:"float-right space-x-4"},Xue={__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),a=l.ref(0),i=t;l.watch(()=>n.open,()=>{r.value=n.steps,a.value=0}),l.watch(()=>n.proceed,()=>{n.proceed&&(r.value[a.value].status="completed",a.value+=1,r.value[a.value].status="current",i("moved"))}),l.watch(()=>n.steps,()=>{r.value=n.steps});function o(){a.value===0?(a.value=0,i("close")):(r.value[a.value].status="upcoming",a.value-=1,r.value[a.value].status="current")}function s(){i("next")}return(u,c)=>(l.openBlock(),l.createBlock(l.unref(Gs),{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(que,{steps:r.value},null,8,["steps"]),l.renderSlot(u.$slots,"content")]),footer:l.withCtx(()=>[l.createElementVNode("div",Kue,[l.createElementVNode("div",Gue,[l.renderSlot(u.$slots,"footer")]),l.createElementVNode("div",Wue,[l.createVNode(l.unref(is),{text:a.value===0?"Cancel":"Back",color:"red",onClick:o},null,8,["text"]),a.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?i("close"):s())},null,8,["text"]))])])]),_:3},8,["open","title"]))}},Jue={__name:"ResetPasswordDialog",emits:["save","notify"],setup(e,{expose:t,emit:n}){const r=n,a=l.ref(!1),i=l.ref({}),o=l.ref({});function s(){if(o.value={},!i.value.password||i.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(i.value.password!==i.value.confirm){o.value.confirm="Passwords do not match",r("notify","Error",[o.value.confirm],!1);return}r("save",i.value),u()}function u(){a.value=!1}function c(A){a.value=!0,i.value={username:A}}return t({open:a,openModal:c,close:u}),(A,d)=>(l.openBlock(),l.createBlock(l.unref(Gs),{open:a.value,title:"Reset Password"},{content:l.withCtx(()=>[l.createVNode(l.unref(Ha),{fieldName:"Password"},{default:l.withCtx(()=>[l.createVNode(l.unref(uw),{modelValue:i.value.password,"onUpdate:modelValue":d[0]||(d[0]=f=>i.value.password=f),error:o.value.password},null,8,["modelValue","error"])]),_:1}),l.createVNode(l.unref(Ha),{fieldName:"Confirm Password"},{default:l.withCtx(()=>[l.createVNode(l.unref(uw),{modelValue:i.value.confirm,"onUpdate:modelValue":d[1]||(d[1]=f=>i.value.confirm=f),error:o.value.confirm},null,8,["modelValue","error"])]),_:1})]),footer:l.withCtx(()=>[l.createVNode(l.unref(Nd),{saveText:"Reset",onSave:s,onClose:u})]),_:1},8,["open"]))}},Zue={__name:"DownloadDialog",props:{},emits:["notify","notifyList","close"],setup(e,{expose:t,emit:n}){const r=n,a=l.ref(!1),i=l.ref("Title"),o=l.ref(null);function s(A,d){a.value=!0,i.value=A,o.value=d}function u(){window.open(o.value,"_blank"),c()}function c(){a.value=!1,i.value="Title",o.value=null,r("close")}return t({openModal:s,closeModal:c}),(A,d)=>(l.openBlock(),l.createBlock(l.unref(Gs),{open:a.value,title:i.value,size:"medium"},{footer:l.withCtx(()=>[l.createVNode(l.unref(Nd),{saveText:"Download",onSave:u,onClose:c})]),_:1},8,["open","title"]))}};function Nm(){return Nm=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},Nm.apply(this,arguments)}var $ue=13,ece=9,tce=8,nce=89,$v=90,rce=77,E8=57,L8=219,T8=222,N8=192,ace=27,F8=100,ice=3e3,oce=typeof window<"u"&&navigator&&/Win/i.test(navigator.platform),d5=typeof window<"u"&&navigator&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),sce=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 a="border-top-left-radius",i="border-bottom-left-radius";if(n){n.style[a]=r[a],n.style[i]=r[i],t.style[a]="0",t.style[i]="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,a=t.selectionEnd;this._recordChange({value:n,selectionStart:r,selectionEnd:a})}},_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]=Nm({},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,a=r.stack,i=r.offset;if(a.length&&i>-1){this.history.stack=a.slice(0,i+1);var o=this.history.stack.length;if(o>F8){var s=o-F8;this.history.stack=a.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<ice){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),m=(d=this._getLines(t.value,t.selectionStart).pop())===null||d===void 0?void 0:d.match(f);if(h&&m&&m[1].startsWith(h[1])){this.history.stack[this.history.offset]=Nm({},t,{timestamp:u});return}}}this.history.stack.push(Nm({},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,a=n.selectionStart,i=n.selectionEnd;this._recordChange({value:r,selectionStart:a,selectionEnd:i},!0),this.$emit("update:modelValue",r)},_undoEdit:function(){var t=this.history,n=t.stack,r=t.offset,a=n[r-1];a&&(this._updateInput(a),this.history.offset=Math.max(r-1,0))},_redoEdit:function(){var t=this.history,n=t.stack,r=t.offset,a=n[r+1];a&&(this._updateInput(a),this.history.offset=Math.min(r+1,n.length-1))},handleKeyDown:function(t){var n=this.tabSize,r=this.insertSpaces,a=this.ignoreTabKey;if(this.$emit("keydown",t),!t.defaultPrevented){t.keyCode===ace&&(t.target.blur(),this.$emit("blur",t));var i=t.target,o=i.value,s=i.selectionStart,u=i.selectionEnd,c=(r?" ":" ").repeat(n);if(t.keyCode===ece&&!a&&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 m=A[d];this._applyEdits({value:h,selectionStart:m.startsWith(c)?s-c.length:s,selectionEnd:u-(o.length-h.length)})}}else if(s!==u){var p=this._getLines(o,s),v=p.length-1,y=this._getLines(o,u).length-1,g=p[v];this._applyEdits({value:o.split(`
@@ -14818,17 +14818,24 @@ const hY = /* @__PURE__ */ pr(fY, [["render", dY]]), pY = { class: "mt-2" }, gY
14818
14818
  function o() {
14819
14819
  i.value = !1;
14820
14820
  }
14821
- function l(A) {
14821
+ function l() {
14822
+ if (s.value = {}, !a.value.name) {
14823
+ s.value.name = "Name is required", r("notifyList", "Error", ["Name is required"], !1);
14824
+ return;
14825
+ }
14826
+ r("save", a.value);
14827
+ }
14828
+ function A(u) {
14822
14829
  i.value = !0, a.value = {
14823
- name: A.name,
14824
- description: A.description || ""
14830
+ name: u.name,
14831
+ description: u.description || ""
14825
14832
  };
14826
14833
  }
14827
14834
  return t({
14828
14835
  open: i,
14829
- openModal: l,
14836
+ openModal: A,
14830
14837
  close: o
14831
- }), (A, u) => (z(), Je(ee(Jl), {
14838
+ }), (u, c) => (z(), Je(ee(Jl), {
14832
14839
  open: i.value,
14833
14840
  title: e.title
14834
14841
  }, {
@@ -14837,7 +14844,7 @@ const hY = /* @__PURE__ */ pr(fY, [["render", dY]]), pY = { class: "mt-2" }, gY
14837
14844
  default: Me(() => [
14838
14845
  pe(ee(Ss), {
14839
14846
  modelValue: a.value.name,
14840
- "onUpdate:modelValue": u[0] || (u[0] = (c) => a.value.name = c),
14847
+ "onUpdate:modelValue": c[0] || (c[0] = (f) => a.value.name = f),
14841
14848
  error: s.value.name
14842
14849
  }, null, 8, ["modelValue", "error"])
14843
14850
  ]),
@@ -14847,7 +14854,7 @@ const hY = /* @__PURE__ */ pr(fY, [["render", dY]]), pY = { class: "mt-2" }, gY
14847
14854
  default: Me(() => [
14848
14855
  pe(ee(Ss), {
14849
14856
  modelValue: a.value.description,
14850
- "onUpdate:modelValue": u[1] || (u[1] = (c) => a.value.description = c)
14857
+ "onUpdate:modelValue": c[1] || (c[1] = (f) => a.value.description = f)
14851
14858
  }, null, 8, ["modelValue"])
14852
14859
  ]),
14853
14860
  _: 1
@@ -14857,7 +14864,7 @@ const hY = /* @__PURE__ */ pr(fY, [["render", dY]]), pY = { class: "mt-2" }, gY
14857
14864
  pe(ee(jh), {
14858
14865
  saveText: e.saveButtonText,
14859
14866
  loading: e.loading,
14860
- onSave: u[2] || (u[2] = (c) => r("save", a.value)),
14867
+ onSave: l,
14861
14868
  onClose: o
14862
14869
  }, null, 8, ["saveText", "loading"])
14863
14870
  ]),
@@ -60618,7 +60625,7 @@ function(e) {
60618
60625
  */
60619
60626
  function(e) {
60620
60627
  function t() {
60621
- return (dn.canvg ? Promise.resolve(dn.canvg) : import("./index.es-Cduh1ubM.mjs")).catch(function(n) {
60628
+ return (dn.canvg ? Promise.resolve(dn.canvg) : import("./index.es-D_V-SIHX.mjs")).catch(function(n) {
60622
60629
  return Promise.reject(new Error("Could not load canvg: " + n));
60623
60630
  }).then(function(n) {
60624
60631
  return n.default ? n.default : n;
@@ -1,4 +1,4 @@
1
- import { c as Da, _ as Va, g as il } from "./index-DBGeoYsd.mjs";
1
+ import { c as Da, _ as Va, g as il } from "./index-9yvRXgPX.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.2.9",
3
+ "version": "1.3.0",
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",