golden-logic-ui 1.0.233 → 1.0.234

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.
@@ -53118,10 +53118,10 @@ const Xre = /* @__PURE__ */ Ta(Zoe, [["render", ose]]), sse = {
53118
53118
  /* @__PURE__ */ H("span", { class: "relative inline-flex w-2 h-2 bg-blue-500 rounded-full" })
53119
53119
  ], -1), nre = {
53120
53120
  key: 1,
53121
- class: "inline-flex items-center px-2 py-1 text-xs font-medium text-green-800 bg-green-100 rounded-full dark:bg-green-900 dark:text-green-300"
53121
+ class: "inline-flex items-center px-2 py-1 text-sm font-medium text-green-800 bg-green-100 rounded-full dark:bg-green-900 dark:text-green-300"
53122
53122
  }, ore = /* @__PURE__ */ H("span", { class: "w-2 h-2 bg-green-500 rounded-full me-1" }, null, -1), sre = {
53123
53123
  key: 2,
53124
- class: "inline-flex items-center px-2 py-1 bg-red-100 text-red-800 text-xs font-medium rounded-full dark:bg-red-900 dark:text-red-300"
53124
+ class: "inline-flex items-center px-2 py-1 bg-red-100 text-red-800 text-sm font-medium rounded-full dark:bg-red-900 dark:text-red-300"
53125
53125
  }, rre = /* @__PURE__ */ H("span", { class: "w-2 h-2 bg-red-500 rounded-full me-1" }, null, -1), are = {
53126
53126
  xmlns: "http://www.w3.org/2000/svg",
53127
53127
  viewBox: "0 0 20 20",
@@ -87,4 +87,4 @@ Required: `+m.join(", "));return st[L].apply(null,J)},log:st=>{console.log(st,{c
87
87
  Actual: `+As.join(","));if(!fn(T,Lc=>eo(As,Lc)))throw new Error("Not all branches were specified when using match. Specified: "+As.join(", ")+`
88
88
  Required: `+T.join(", "));return Eo[ut].apply(null,Qt)},log:Eo=>{console.log(Eo,{constructors:T,constructor:ut,params:Qt})}}}}),H}}.generate([{none:[]},{only:["index"]},{left:["index","next"]},{middle:["prev","index","next"]},{right:["prev","index"]}])});const Vt=(C,T)=>{const H=Rl.fromTable(C);return Ms(H,T).bind(he=>{const Ue=he[he.length-1],ut=he[0].row,Tt=Ue.row+Ue.rowspan,Qt=H.all.slice(ut,Tt);return fe(Qt)}).getOr("")},Gi=C=>Oc(C,"rgb")?Pl(C):C,K0=C=>{const T=Zn.fromDom(C);return{borderwidth:Re(T,"border-width").getOr(""),borderstyle:Re(T,"border-style").getOr(""),bordercolor:Re(T,"border-color").map(Gi).getOr(""),backgroundcolor:Re(T,"background-color").map(Gi).getOr("")}},gu=C=>{const T=C[0],H=C.slice(1);return z(H,q=>{z(Nn(T),he=>{yt(q,(Ue,ut)=>{const Tt=T[he];Tt!==""&&he===ut&&Tt!==Ue&&(T[he]="")})})}),T},_r=(C,T,H,q)=>_t(C,he=>!wt(H.formatter.matchNode(q,T+he))).getOr(""),Wu=me(_r,["left","center","right"],"align"),Eg=me(_r,["top","middle","bottom"],"valign"),ia=(C,T)=>{const H=gg(C),q=Fu(C),he=()=>({borderstyle:qt(H,"border-style").getOr(""),bordercolor:Gi(qt(H,"border-color").getOr("")),backgroundcolor:Gi(qt(H,"background-color").getOr(""))}),Ue={height:"",width:"100%",cellspacing:"",cellpadding:"",caption:!1,class:"",align:"",border:""},ut=()=>{const Js=H["border-width"];return $l(C)&&Js?{border:Js}:qt(q,"border").fold(()=>({}),Eo=>({border:Eo}))},Tt=T?he():{},Qt=()=>{const Js=qt(H,"border-spacing").or(qt(q,"cellspacing")).fold(()=>({}),As=>({cellspacing:As})),Eo=qt(H,"border-padding").or(qt(q,"cellpadding")).fold(()=>({}),As=>({cellpadding:As}));return{...Js,...Eo}};return{...Ue,...H,...q,...Tt,...ut(),...Qt()}},qi=C=>Et(Zn.fromDom(C)).map(T=>{const H={selection:vg(C.cells)};return Vt(T,H)}).getOr(""),Nh=(C,T,H)=>{const q=(Tt,Qt)=>{const $n=Re(Zn.fromDom(Qt),"border-width");return $l(C)&&$n.isSome()?$n.getOr(""):Tt.getAttrib(Qt,"border")||mc(C.dom,Qt,"border-width")||mc(C.dom,Qt,"border")||""},he=C.dom,Ue=$l(C)?he.getStyle(T,"border-spacing")||he.getAttrib(T,"cellspacing"):he.getAttrib(T,"cellspacing")||he.getStyle(T,"border-spacing"),ut=$l(C)?mc(he,T,"padding")||he.getAttrib(T,"cellpadding"):he.getAttrib(T,"cellpadding")||mc(he,T,"padding");return{width:he.getStyle(T,"width")||he.getAttrib(T,"width"),height:he.getStyle(T,"height")||he.getAttrib(T,"height"),cellspacing:Ue??"",cellpadding:ut??"",border:q(he,T),caption:!!he.select("caption",T)[0],class:he.getAttrib(T,"class",""),align:Wu(C,T),...H?K0(T):{}}},hu=(C,T,H)=>{const q=C.dom;return{height:q.getStyle(T,"height")||q.getAttrib(T,"height"),class:q.getAttrib(T,"class",""),type:qi(T),align:Wu(C,T),...H?K0(T):{}}},Y0=(C,T,H,q)=>{const he=C.dom,Ue=q.getOr(T),ut=(Tt,Qt)=>he.getStyle(Tt,Qt)||he.getAttrib(Tt,Qt);return{width:ut(Ue,"width"),height:ut(T,"height"),scope:he.getAttrib(T,"scope"),celltype:lm(T),class:he.getAttrib(T,"class",""),halign:Wu(C,T),valign:Eg(C,T),...H?K0(T):{}}},Tg=(C,T)=>{const H=Rl.fromTable(C),q=Rl.justCells(H),he=Xo(q,Ue=>ir(T,ut=>jo(Ue.element,ut)));return mt(he,Ue=>({element:Ue.element.dom,column:Rl.getColumnAt(H,Ue.column).map(ut=>ut.element.dom)}))},ct=(C,T,H,q)=>{q("scope")&&C.setAttrib("scope",H.scope),q("class")&&C.setAttrib("class",H.class),q("height")&&C.setStyle("height",ds(H.height)),q("width")&&T.setStyle("width",ds(H.width))},X0=(C,T,H)=>{H("backgroundcolor")&&C.setFormat("tablecellbackgroundcolor",T.backgroundcolor),H("bordercolor")&&C.setFormat("tablecellbordercolor",T.bordercolor),H("borderstyle")&&C.setFormat("tablecellborderstyle",T.borderstyle),H("borderwidth")&&C.setFormat("tablecellborderwidth",ds(T.borderwidth))},Ed=(C,T,H,q)=>{const he=T.length===1;z(T,Ue=>{const ut=Ue.element,Tt=he?jn:q,Qt=pm.normal(C,ut),$n=Ue.column.map(Js=>pm.normal(C,Js)).getOr(Qt);ct(Qt,$n,H,Tt),af(C)&&X0(Qt,H,Tt),q("halign")&&Yc(C,ut,H.halign),q("valign")&&im(C,ut,H.valign)})},Zu=(C,T)=>{C.execCommand("mceTableCellType",!1,{type:T.celltype,no_events:!0})},Ag=(C,T,H,q)=>{const he=No(q,(Ue,ut)=>H[ut]!==Ue);N(he)>0&&T.length>=1&&Et(T[0]).each(Ue=>{const ut=Tg(Ue,T),Tt=N(No(he,($n,Js)=>Js!=="scope"&&Js!=="celltype"))>0,Qt=et(he,"celltype");(Tt||et(he,"scope"))&&Ed(C,ut,q,me(et,he)),Qt&&Zu(C,q),no(C,Ue.dom,{structure:Qt,style:Tt})})},Hs=(C,T,H,q)=>{const he=q.getData();q.close(),C.undoManager.transact(()=>{Ag(C,T,H,he),C.focus()})},es=(C,T)=>{const H=Et(T[0]).map(q=>mt(Tg(q,T),he=>Y0(C,he.element,af(C),he.column)));return gu(H.getOrDie())},gc=C=>{const T=Xa(C);if(T.length===0)return;const H=es(C,T),q={type:"tabpanel",tabs:[{title:"General",name:"general",items:Ah(C)},df(C,"cell")]},he={type:"panel",items:[{type:"grid",columns:2,items:Ah(C)}]};C.windowManager.open({title:"Cell Properties",size:"normal",body:af(C)?q:he,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:H,onSubmit:me(Hs,C,T,H)})},Qa=C=>{const T=Il(cu(C));return T.length>0?oe.some({name:"class",type:"listbox",label:"Class",items:T}):oe.none()},oo=[{type:"listbox",name:"type",label:"Row type",items:[{text:"Header",value:"header"},{text:"Body",value:"body"},{text:"Footer",value:"footer"}]},{type:"listbox",name:"align",label:"Alignment",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},{label:"Height",name:"height",type:"input"}],mf=C=>oo.concat(Qa(C).toArray()),Aa=(C,T,H)=>{H("class")&&C.setAttrib("class",T.class),H("height")&&C.setStyle("height",ds(T.height))},cr=(C,T,H)=>{H("backgroundcolor")&&C.setStyle("background-color",T.backgroundcolor),H("bordercolor")&&C.setStyle("border-color",T.bordercolor),H("borderstyle")&&C.setStyle("border-style",T.borderstyle)},Dh=(C,T,H,q)=>{const Ue=T.length===1?jn:q;z(T,ut=>{const Tt=pm.normal(C,ut);Aa(Tt,H,Ue),um(C)&&cr(Tt,H,Ue),q("align")&&Yc(C,ut,H.align)})},Qe=(C,T)=>{C.execCommand("mceTableRowType",!1,{type:T.type,no_events:!0})},tl=(C,T,H,q)=>{const he=No(q,(Ue,ut)=>H[ut]!==Ue);if(N(he)>0){const Ue=et(he,"type"),ut=Ue?N(he)>1:!0;ut&&Dh(C,T,q,me(et,he)),Ue&&Qe(C,q),Et(Zn.fromDom(T[0])).each(Tt=>no(C,Tt.dom,{structure:Ue,style:ut}))}},Ng=(C,T,H,q)=>{const he=q.getData();q.close(),C.undoManager.transact(()=>{tl(C,T,H,he),C.focus()})},Co=C=>{const T=di(ys(C),Ya.selected);if(T.length===0)return;const H=mt(T,ut=>hu(C,ut.dom,um(C))),q=gu(H),he={type:"tabpanel",tabs:[{title:"General",name:"general",items:mf(C)},df(C,"row")]},Ue={type:"panel",items:[{type:"grid",columns:2,items:mf(C)}]};C.windowManager.open({title:"Row Properties",size:"normal",body:um(C)?he:Ue,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:q,onSubmit:me(Ng,C,mt(T,ut=>ut.dom),q)})},Ki=(C,T,H)=>{const q=H?[{type:"input",name:"cols",label:"Cols",inputMode:"numeric"},{type:"input",name:"rows",label:"Rows",inputMode:"numeric"}]:[],he=[{type:"input",name:"width",label:"Width"},{type:"input",name:"height",label:"Height"}],Ue=dm(C)?[{type:"input",name:"cellspacing",label:"Cell spacing",inputMode:"numeric"},{type:"input",name:"cellpadding",label:"Cell padding",inputMode:"numeric"},{type:"input",name:"border",label:"Border width"},{type:"label",label:"Caption",items:[{type:"checkbox",name:"caption",label:"Show caption"}]}]:[],ut=[{type:"listbox",name:"align",label:"Alignment",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]}],Tt=T.length>0?[{type:"listbox",name:"class",label:"Class",items:T}]:[];return q.concat(he).concat(Ue).concat(ut).concat(Tt)},J0=(C,T,H,q)=>{if(T.tagName==="TD"||T.tagName==="TH")Ne(H)&&yn(q)?C.setStyle(T,H,q):C.setStyles(T,H);else if(T.children)for(let he=0;he<T.children.length;he++)J0(C,T.children[he],H,q)},Yi=(C,T,H,q)=>{const he=C.dom,Ue={},ut={},Tt=$l(C),Qt=qa(C);if(wt(H.class)||(Ue.class=H.class),ut.height=ds(H.height),Tt?ut.width=ds(H.width):he.getAttrib(T,"width")&&(Ue.width=Fi(H.width)),Tt?(ut["border-width"]=ds(H.border),ut["border-spacing"]=ds(H.cellspacing)):(Ue.border=H.border,Ue.cellpadding=H.cellpadding,Ue.cellspacing=H.cellspacing),Tt&&T.children){const $n={};if(q.border&&($n["border-width"]=ds(H.border)),q.cellpadding&&($n.padding=ds(H.cellpadding)),Qt&&q.bordercolor&&($n["border-color"]=H.bordercolor),!cn($n))for(let Js=0;Js<T.children.length;Js++)J0(he,T.children[Js],$n)}if(Qt){const $n=H;ut["background-color"]=$n.backgroundcolor,ut["border-color"]=$n.bordercolor,ut["border-style"]=$n.borderstyle}he.setStyles(T,{...gg(C),...ut}),he.setAttribs(T,{...Fu(C),...Ue})},a1=(C,T,H,q)=>{const he=C.dom,Ue=q.getData(),ut=No(Ue,(Tt,Qt)=>H[Qt]!==Tt);q.close(),Ue.class===""&&delete Ue.class,C.undoManager.transact(()=>{if(!T){const Tt=ka(Ue.cols).getOr(1),Qt=ka(Ue.rows).getOr(1);C.execCommand("mceInsertTable",!1,{rows:Qt,columns:Tt}),T=Wi(ys(C),Ga(C)).bind($n=>Et($n,Ga(C))).map($n=>$n.dom).getOrDie()}if(N(ut)>0){const Tt={border:et(ut,"border"),bordercolor:et(ut,"bordercolor"),cellpadding:et(ut,"cellpadding")};Yi(C,T,Ue,Tt);const Qt=he.select("caption",T)[0];(Qt&&!Ue.caption||!Qt&&Ue.caption)&&C.execCommand("mceTableToggleCaption"),Yc(C,T,Ue.align)}if(C.focus(),C.addVisual(),N(ut)>0){const Tt=et(ut,"caption"),Qt=Tt?N(ut)>1:!0;no(C,T,{structure:Tt,style:Qt})}})},mi=(C,T)=>{const H=C.dom;let q,he=ia(C,qa(C));T?(he.cols="1",he.rows="1",qa(C)&&(he.borderstyle="",he.bordercolor="",he.backgroundcolor="")):(q=H.getParent(C.selection.getStart(),"table",C.getBody()),q?he=Nh(C,q,qa(C)):qa(C)&&(he.borderstyle="",he.bordercolor="",he.backgroundcolor=""));const Ue=Il(fm(C));Ue.length>0&&he.class&&(he.class=he.class.replace(/\s*mce\-item\-table\s*/g,""));const ut={type:"grid",columns:2,items:Ki(C,Ue,T)},Tt=()=>({type:"panel",items:[ut]}),Qt=()=>({type:"tabpanel",tabs:[{title:"General",name:"general",items:[ut]},df(C,"table")]}),$n=qa(C)?Qt():Tt();C.windowManager.open({title:"Table Properties",size:"normal",body:$n,onSubmit:me(a1,C,q,he),buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:he})},c1=C=>{const T=H=>{Ca(ys(C))&&H()};yt({mceTableProps:me(mi,C,!1),mceTableRowProps:me(Co,C),mceTableCellProps:me(gc,C),mceInsertTableDialog:me(mi,C,!0)},(H,q)=>C.addCommand(q,()=>T(H)))},bl=(C,T)=>ke(C,T).isSome(),Ro=or,pu=C=>{const T=(q,he)=>Os(q,he).exists(Ue=>parseInt(Ue,10)>1),H=q=>T(q,"rowspan")||T(q,"colspan");return C.length>0&&fn(C,H)?oe.some(C):oe.none()},bm=(C,T,H)=>T.length<=1?oe.none():q0(C,H.firstSelectedSelector,H.lastSelectedSelector).map(q=>({bounds:q,cells:T})),Na=C=>({element:C,mergable:oe.none(),unmergable:oe.none(),selection:[C]}),l1=(C,T,H)=>({element:H,mergable:bm(T,C,Ya),unmergable:pu(C),selection:Ro(C)}),ym=C=>{const T=zu(oe.none()),H=zu([]);let q=oe.none();const he=lc("caption"),Ue=So=>q.forall(Xn=>!Xn[So]),ut=()=>jr(ys(C),Ga(C)),Tt=()=>jr($a(C),Ga(C)),Qt=()=>ut().bind(So=>oa(Cr(Et(So),Tt().bind(Et),(Xn,ua)=>jo(Xn,ua)?he(So)?oe.some(Na(So)):oe.some(l1(Xa(C),Xn,So)):oe.none()))),$n=So=>Et(So.element).map(ua=>{const ec=Rl.fromTable(ua),i1=Ms(ec,So).getOr([]),ju=$i(i1,(tc,Cm)=>(Cm.isLocked&&(tc.onAny=!0,Cm.column===0?tc.onFirst=!0:Cm.column+Cm.colspan>=ec.grid.columns&&(tc.onLast=!0)),tc),{onAny:!1,onFirst:!1,onLast:!1});return{mergeable:ji(ec,So).isSome(),unmergeable:la(ec,So).isSome(),locked:ju}}),Js=()=>{T.set(at(Qt)()),q=T.get().bind($n),z(H.get(),Ct)},Eo=So=>(So(),H.set(H.get().concat([So])),()=>{H.set(Xo(H.get(),Xn=>Xn!==So))}),As=(So,Xn)=>Eo(()=>T.get().fold(()=>{So.setEnabled(!1)},ua=>{So.setEnabled(!Xn(ua)&&C.selection.isEditable())})),nl=(So,Xn,ua)=>Eo(()=>T.get().fold(()=>{So.setEnabled(!1),So.setActive(!1)},ec=>{So.setEnabled(!Xn(ec)&&C.selection.isEditable()),So.setActive(ua(ec))})),Lc=So=>q.exists(Xn=>Xn.locked[So]),Vl=So=>As(So,Xn=>!1),Ad=So=>As(So,Xn=>he(Xn.element)),Xi=So=>Xn=>As(Xn,ua=>he(ua.element)||Lc(So)),Dg=So=>Xn=>As(Xn,ua=>he(ua.element)||So().isNone()),ff=(So,Xn)=>ua=>As(ua,ec=>he(ec.element)||So().isNone()||Lc(Xn)),wm=So=>As(So,Xn=>Ue("mergeable")),Og=So=>As(So,Xn=>Ue("unmergeable")),Ir=So=>nl(So,va,Xn=>Et(Xn.element,Ga(C)).exists(ec=>bl(ec,"caption"))),Hl=(So,Xn)=>ua=>nl(ua,ec=>he(ec.element),()=>C.queryCommandValue(So)===Xn),gf=Hl("mceTableRowType","header"),xm=Hl("mceTableColType","th");return C.on("NodeChange ExecCommand TableSelectorChange",Js),{onSetupTable:Vl,onSetupCellOrRow:Ad,onSetupColumn:Xi,onSetupPasteable:Dg,onSetupPasteableColumn:ff,onSetupMergeable:wm,onSetupUnmergeable:Og,resetTargets:Js,onSetupTableWithCaption:Ir,onSetupTableRowHeaders:gf,onSetupTableColumnHeaders:xm,targets:T.get}};var vm=tinymce.util.Tools.resolve("tinymce.FakeClipboard");const hc="x-tinymce/dom-table-",Td=hc+"rows",Te=hc+"columns",Mc=C=>{var T;const H=(T=vm.read())!==null&&T!==void 0?T:[];return Ra(H,q=>oe.from(q.getType(C)))},Ll=()=>Mc(Td),Fl=()=>Mc(Te),Pc=C=>T=>{const H=()=>{T.setEnabled(C.selection.isEditable())};return C.on("NodeChange",H),H(),()=>{C.off("NodeChange",H)}},Hr=(C,T)=>{C.ui.registry.addMenuButton("table",{tooltip:"Table",icon:"table",onSetup:Pc(C),fetch:Tt=>Tt("inserttable | cell row column | advtablesort | tableprops deletetable")});const H=Tt=>()=>C.execCommand(Tt),q=(Tt,Qt)=>{C.queryCommandSupported(Qt.command)&&C.ui.registry.addButton(Tt,{...Qt,onAction:In(Qt.onAction)?Qt.onAction:H(Qt.command)})},he=(Tt,Qt)=>{C.queryCommandSupported(Qt.command)&&C.ui.registry.addToggleButton(Tt,{...Qt,onAction:In(Qt.onAction)?Qt.onAction:H(Qt.command)})};q("tableprops",{tooltip:"Table properties",command:"mceTableProps",icon:"table",onSetup:T.onSetupTable}),q("tabledelete",{tooltip:"Delete table",command:"mceTableDelete",icon:"table-delete-table",onSetup:T.onSetupTable}),q("tablecellprops",{tooltip:"Cell properties",command:"mceTableCellProps",icon:"table-cell-properties",onSetup:T.onSetupCellOrRow}),q("tablemergecells",{tooltip:"Merge cells",command:"mceTableMergeCells",icon:"table-merge-cells",onSetup:T.onSetupMergeable}),q("tablesplitcells",{tooltip:"Split cell",command:"mceTableSplitCells",icon:"table-split-cells",onSetup:T.onSetupUnmergeable}),q("tableinsertrowbefore",{tooltip:"Insert row before",command:"mceTableInsertRowBefore",icon:"table-insert-row-above",onSetup:T.onSetupCellOrRow}),q("tableinsertrowafter",{tooltip:"Insert row after",command:"mceTableInsertRowAfter",icon:"table-insert-row-after",onSetup:T.onSetupCellOrRow}),q("tabledeleterow",{tooltip:"Delete row",command:"mceTableDeleteRow",icon:"table-delete-row",onSetup:T.onSetupCellOrRow}),q("tablerowprops",{tooltip:"Row properties",command:"mceTableRowProps",icon:"table-row-properties",onSetup:T.onSetupCellOrRow}),q("tableinsertcolbefore",{tooltip:"Insert column before",command:"mceTableInsertColBefore",icon:"table-insert-column-before",onSetup:T.onSetupColumn("onFirst")}),q("tableinsertcolafter",{tooltip:"Insert column after",command:"mceTableInsertColAfter",icon:"table-insert-column-after",onSetup:T.onSetupColumn("onLast")}),q("tabledeletecol",{tooltip:"Delete column",command:"mceTableDeleteCol",icon:"table-delete-column",onSetup:T.onSetupColumn("onAny")}),q("tablecutrow",{tooltip:"Cut row",command:"mceTableCutRow",icon:"cut-row",onSetup:T.onSetupCellOrRow}),q("tablecopyrow",{tooltip:"Copy row",command:"mceTableCopyRow",icon:"duplicate-row",onSetup:T.onSetupCellOrRow}),q("tablepasterowbefore",{tooltip:"Paste row before",command:"mceTablePasteRowBefore",icon:"paste-row-before",onSetup:T.onSetupPasteable(Ll)}),q("tablepasterowafter",{tooltip:"Paste row after",command:"mceTablePasteRowAfter",icon:"paste-row-after",onSetup:T.onSetupPasteable(Ll)}),q("tablecutcol",{tooltip:"Cut column",command:"mceTableCutCol",icon:"cut-column",onSetup:T.onSetupColumn("onAny")}),q("tablecopycol",{tooltip:"Copy column",command:"mceTableCopyCol",icon:"duplicate-column",onSetup:T.onSetupColumn("onAny")}),q("tablepastecolbefore",{tooltip:"Paste column before",command:"mceTablePasteColBefore",icon:"paste-column-before",onSetup:T.onSetupPasteableColumn(Fl,"onFirst")}),q("tablepastecolafter",{tooltip:"Paste column after",command:"mceTablePasteColAfter",icon:"paste-column-after",onSetup:T.onSetupPasteableColumn(Fl,"onLast")}),q("tableinsertdialog",{tooltip:"Insert table",command:"mceInsertTableDialog",icon:"table",onSetup:Pc(C)});const Ue=mu(fm(C));Ue.length!==0&&C.queryCommandSupported("mceTableToggleClass")&&C.ui.registry.addMenuButton("tableclass",{icon:"table-classes",tooltip:"Table styles",fetch:Zi(C,Ue,"tableclass",Tt=>C.execCommand("mceTableToggleClass",!1,Tt)),onSetup:T.onSetupTable});const ut=mu(mm(C));ut.length!==0&&C.queryCommandSupported("mceTableCellToggleClass")&&C.ui.registry.addMenuButton("tablecellclass",{icon:"table-cell-classes",tooltip:"Cell styles",fetch:Zi(C,ut,"tablecellclass",Tt=>C.execCommand("mceTableCellToggleClass",!1,Tt)),onSetup:T.onSetupCellOrRow}),C.queryCommandSupported("mceTableApplyCellStyle")&&(C.ui.registry.addMenuButton("tablecellvalign",{icon:"vertical-align",tooltip:"Vertical align",fetch:Zi(C,lf,"tablecellverticalalign",Ja(C,"vertical-align")),onSetup:T.onSetupCellOrRow}),C.ui.registry.addMenuButton("tablecellborderwidth",{icon:"border-width",tooltip:"Border width",fetch:Zi(C,Iu(C),"tablecellborderwidth",Ja(C,"border-width")),onSetup:T.onSetupCellOrRow}),C.ui.registry.addMenuButton("tablecellborderstyle",{icon:"border-style",tooltip:"Border style",fetch:Zi(C,Lu(C),"tablecellborderstyle",Ja(C,"border-style")),onSetup:T.onSetupCellOrRow}),C.ui.registry.addMenuButton("tablecellbackgroundcolor",{icon:"cell-background-color",tooltip:"Background color",fetch:Tt=>Tt(Hn(C,dg(C),"background-color")),onSetup:T.onSetupCellOrRow}),C.ui.registry.addMenuButton("tablecellbordercolor",{icon:"cell-border-color",tooltip:"Border color",fetch:Tt=>Tt(Hn(C,Ui(C),"border-color")),onSetup:T.onSetupCellOrRow})),he("tablecaption",{tooltip:"Table caption",icon:"table-caption",command:"mceTableToggleCaption",onSetup:T.onSetupTableWithCaption}),he("tablerowheader",{tooltip:"Row header",icon:"table-top-header",command:"mceTableRowType",onAction:Uu(C),onSetup:T.onSetupTableRowHeaders}),he("tablecolheader",{tooltip:"Column header",icon:"table-left-header",command:"mceTableColType",onAction:Sg(C),onSetup:T.onSetupTableColumnHeaders})},qr=C=>{const T=q=>C.dom.is(q,"table")&&C.getBody().contains(q)&&C.dom.isEditable(q.parentNode),H=ci(C);H.length>0&&C.ui.registry.addContextToolbar("table",{predicate:T,items:H,scope:"node",position:"node"})},Q0=C=>T=>{const H=()=>{T.setEnabled(C.selection.isEditable())};return C.on("NodeChange",H),H(),()=>{C.off("NodeChange",H)}},Ic=(C,T)=>{const H=Eo=>()=>C.execCommand(Eo),q=(Eo,As)=>C.queryCommandSupported(As.command)?(C.ui.registry.addMenuItem(Eo,{...As,onAction:In(As.onAction)?As.onAction:H(As.command)}),!0):!1,he=(Eo,As)=>{C.queryCommandSupported(As.command)&&C.ui.registry.addToggleMenuItem(Eo,{...As,onAction:In(As.onAction)?As.onAction:H(As.command)})},Ue=Eo=>{C.execCommand("mceInsertTable",!1,{rows:Eo.numRows,columns:Eo.numColumns})},ut=[q("tableinsertrowbefore",{text:"Insert row before",icon:"table-insert-row-above",command:"mceTableInsertRowBefore",onSetup:T.onSetupCellOrRow}),q("tableinsertrowafter",{text:"Insert row after",icon:"table-insert-row-after",command:"mceTableInsertRowAfter",onSetup:T.onSetupCellOrRow}),q("tabledeleterow",{text:"Delete row",icon:"table-delete-row",command:"mceTableDeleteRow",onSetup:T.onSetupCellOrRow}),q("tablerowprops",{text:"Row properties",icon:"table-row-properties",command:"mceTableRowProps",onSetup:T.onSetupCellOrRow}),q("tablecutrow",{text:"Cut row",icon:"cut-row",command:"mceTableCutRow",onSetup:T.onSetupCellOrRow}),q("tablecopyrow",{text:"Copy row",icon:"duplicate-row",command:"mceTableCopyRow",onSetup:T.onSetupCellOrRow}),q("tablepasterowbefore",{text:"Paste row before",icon:"paste-row-before",command:"mceTablePasteRowBefore",onSetup:T.onSetupPasteable(Ll)}),q("tablepasterowafter",{text:"Paste row after",icon:"paste-row-after",command:"mceTablePasteRowAfter",onSetup:T.onSetupPasteable(Ll)})],Tt=[q("tableinsertcolumnbefore",{text:"Insert column before",icon:"table-insert-column-before",command:"mceTableInsertColBefore",onSetup:T.onSetupColumn("onFirst")}),q("tableinsertcolumnafter",{text:"Insert column after",icon:"table-insert-column-after",command:"mceTableInsertColAfter",onSetup:T.onSetupColumn("onLast")}),q("tabledeletecolumn",{text:"Delete column",icon:"table-delete-column",command:"mceTableDeleteCol",onSetup:T.onSetupColumn("onAny")}),q("tablecutcolumn",{text:"Cut column",icon:"cut-column",command:"mceTableCutCol",onSetup:T.onSetupColumn("onAny")}),q("tablecopycolumn",{text:"Copy column",icon:"duplicate-column",command:"mceTableCopyCol",onSetup:T.onSetupColumn("onAny")}),q("tablepastecolumnbefore",{text:"Paste column before",icon:"paste-column-before",command:"mceTablePasteColBefore",onSetup:T.onSetupPasteableColumn(Fl,"onFirst")}),q("tablepastecolumnafter",{text:"Paste column after",icon:"paste-column-after",command:"mceTablePasteColAfter",onSetup:T.onSetupPasteableColumn(Fl,"onLast")})],Qt=[q("tablecellprops",{text:"Cell properties",icon:"table-cell-properties",command:"mceTableCellProps",onSetup:T.onSetupCellOrRow}),q("tablemergecells",{text:"Merge cells",icon:"table-merge-cells",command:"mceTableMergeCells",onSetup:T.onSetupMergeable}),q("tablesplitcells",{text:"Split cell",icon:"table-split-cells",command:"mceTableSplitCells",onSetup:T.onSetupUnmergeable})];Ka(C)?C.ui.registry.addNestedMenuItem("inserttable",{text:"Table",icon:"table",getSubmenuItems:()=>[{type:"fancymenuitem",fancytype:"inserttable",onAction:Ue}],onSetup:Q0(C)}):C.ui.registry.addMenuItem("inserttable",{text:"Table",icon:"table",onAction:H("mceInsertTableDialog"),onSetup:Q0(C)}),C.ui.registry.addMenuItem("inserttabledialog",{text:"Insert table",icon:"table",onAction:H("mceInsertTableDialog"),onSetup:Q0(C)}),q("tableprops",{text:"Table properties",onSetup:T.onSetupTable,command:"mceTableProps"}),q("deletetable",{text:"Delete table",icon:"table-delete-table",onSetup:T.onSetupTable,command:"mceTableDelete"}),eo(ut,!0)&&C.ui.registry.addNestedMenuItem("row",{type:"nestedmenuitem",text:"Row",getSubmenuItems:Nt("tableinsertrowbefore tableinsertrowafter tabledeleterow tablerowprops | tablecutrow tablecopyrow tablepasterowbefore tablepasterowafter")}),eo(Tt,!0)&&C.ui.registry.addNestedMenuItem("column",{type:"nestedmenuitem",text:"Column",getSubmenuItems:Nt("tableinsertcolumnbefore tableinsertcolumnafter tabledeletecolumn | tablecutcolumn tablecopycolumn tablepastecolumnbefore tablepastecolumnafter")}),eo(Qt,!0)&&C.ui.registry.addNestedMenuItem("cell",{type:"nestedmenuitem",text:"Cell",getSubmenuItems:Nt("tablecellprops tablemergecells tablesplitcells")}),C.ui.registry.addContextMenu("table",{update:()=>(T.resetTargets(),T.targets().fold(Nt(""),Eo=>ft(Eo.element)==="caption"?"tableprops deletetable":"cell row column | advtablesort | tableprops deletetable"))});const $n=mu(fm(C));$n.length!==0&&C.queryCommandSupported("mceTableToggleClass")&&C.ui.registry.addNestedMenuItem("tableclass",{icon:"table-classes",text:"Table styles",getSubmenuItems:()=>go(C,$n,"tableclass",Eo=>C.execCommand("mceTableToggleClass",!1,Eo)),onSetup:T.onSetupTable});const Js=mu(mm(C));Js.length!==0&&C.queryCommandSupported("mceTableCellToggleClass")&&C.ui.registry.addNestedMenuItem("tablecellclass",{icon:"table-cell-classes",text:"Cell styles",getSubmenuItems:()=>go(C,Js,"tablecellclass",Eo=>C.execCommand("mceTableCellToggleClass",!1,Eo)),onSetup:T.onSetupCellOrRow}),C.queryCommandSupported("mceTableApplyCellStyle")&&(C.ui.registry.addNestedMenuItem("tablecellvalign",{icon:"vertical-align",text:"Vertical align",getSubmenuItems:()=>go(C,lf,"tablecellverticalalign",Ja(C,"vertical-align")),onSetup:T.onSetupCellOrRow}),C.ui.registry.addNestedMenuItem("tablecellborderwidth",{icon:"border-width",text:"Border width",getSubmenuItems:()=>go(C,Iu(C),"tablecellborderwidth",Ja(C,"border-width")),onSetup:T.onSetupCellOrRow}),C.ui.registry.addNestedMenuItem("tablecellborderstyle",{icon:"border-style",text:"Border style",getSubmenuItems:()=>go(C,Lu(C),"tablecellborderstyle",Ja(C,"border-style")),onSetup:T.onSetupCellOrRow}),C.ui.registry.addNestedMenuItem("tablecellbackgroundcolor",{icon:"cell-background-color",text:"Background color",getSubmenuItems:()=>Hn(C,dg(C),"background-color"),onSetup:T.onSetupCellOrRow}),C.ui.registry.addNestedMenuItem("tablecellbordercolor",{icon:"cell-border-color",text:"Border color",getSubmenuItems:()=>Hn(C,Ui(C),"border-color"),onSetup:T.onSetupCellOrRow})),he("tablecaption",{icon:"table-caption",text:"Table caption",command:"mceTableToggleCaption",onSetup:T.onSetupTableWithCaption}),he("tablerowheader",{text:"Row header",icon:"table-top-header",command:"mceTableRowType",onAction:Uu(C),onSetup:T.onSetupTableRowHeaders}),he("tablecolheader",{text:"Column header",icon:"table-left-header",command:"mceTableColType",onAction:Sg(C),onSetup:T.onSetupTableRowHeaders})},bu=C=>{const T=ym(C);Ys(C),c1(C),Ic(C,T),Hr(C,T),qr(C)};var rn=()=>{P.add("table",bu)};rn()}(),function(){var P=tinymce.util.Tools.resolve("tinymce.PluginManager");const be=(ee,He)=>{ee.focus(),ee.undoManager.transact(()=>{ee.setContent(He)}),ee.selection.setCursorLocation(),ee.nodeChanged()},ce=ee=>ee.getContent({source_view:!0}),Ae=ee=>{const He=ce(ee);ee.windowManager.open({title:"Source Code",size:"large",body:{type:"panel",items:[{type:"textarea",name:"code"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:{code:He},onSubmit:wt=>{be(ee,wt.getData().code),wt.close()}})},ve=ee=>{ee.addCommand("mceCodeEditor",()=>{Ae(ee)})},Q=ee=>{const He=()=>ee.execCommand("mceCodeEditor");ee.ui.registry.addButton("code",{icon:"sourcecode",tooltip:"Source code",onAction:He}),ee.ui.registry.addMenuItem("code",{icon:"sourcecode",text:"Source code",onAction:He})};var Ne=()=>{P.add("code",ee=>(ve(ee),Q(ee),{}))};Ne()}(),function(){var P=tinymce.util.Tools.resolve("tinymce.PluginManager");const ce=(je=>_t=>je===_t)(null),Ae=je=>je,ve=(je,_t)=>{const Ge=je.length,Ce=new Array(Ge);for(let fn=0;fn<Ge;fn++){const Vo=je[fn];Ce[fn]=_t(Vo,fn)}return Ce},Ne={aletter:"[A-Za-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-׳ؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆༀཀ-ཇཉ-ཬྈ-ྌႠ-Ⴥა-ჺჼᄀ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᨀ-ᨖᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᯀ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⒶ-ⓩⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⴀ-ⴥⴰ-ⵥⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〻〼ㄅ-ㄭㄱ-ㆎㆠ-ㆺꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐꞑꞠ-ꞩꟺ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]",midnumlet:"[-'\\.‘’․﹒'.]",midletter:"[:··״‧︓﹕:]",midnum:"[±+*/,;;։،؍٬߸⁄︐︔﹐﹔,;]",numeric:"[0-9٠-٩٫۰-۹߀-߉०-९০-৯੦-੯૦-૯୦-୯௦-௯౦-౯೦-೯൦-൯๐-๙໐-໙༠-༩၀-၉႐-႙០-៩᠐-᠙᥆-᥏᧐-᧙᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙꘠-꘩꣐-꣙꤀-꤉꧐-꧙꩐-꩙꯰-꯹]",cr:"\\r",lf:"\\n",newline:"[\v\f…\u2028\u2029]",extend:"[̀-ͯ҃-҉֑-ׇֽֿׁׂׅׄؐ-ًؚ-ٰٟۖ-ۜ۟-۪ۤۧۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ऀ-ःऺ-़ा-ॏ॑-ॗॢॣঁ-ঃ়া-ৄেৈো-্ৗৢৣਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑੰੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣஂா-ூெ-ைொ-்ௗఁ-ఃా-ౄె-ైొ-్ౕౖౢౣಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣംഃാ-ൄെ-ൈൊ-്ൗൢൣංඃ්ා-ුූෘ-ෟෲෳัิ-ฺ็-๎ັິ-ູົຼ່-ໍ༹༘༙༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏႚ-ႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳា-៓៝᠋-᠍ᢩᤠ-ᤫᤰ-᤻ᦰ-ᧀᧈᧉᨗ-ᨛᩕ-ᩞ᩠-᩿᩼ᬀ-ᬄ᬴-᭄᭫-᭳ᮀ-ᮂᮡ-᯦᮪-᯳ᰤ-᰷᳐-᳔᳒-᳨᳭ᳲ᷀-ᷦ᷼-᷿‌‍⃐-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꙯-꙲꙼꙽꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-꣄꣠-꣱ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀ꨩ-ꨶꩃꩌꩍꩻꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꯣ-ꯪ꯬꯭ﬞ︀-️︠-゙゚︦]",format:"[­؀-؃۝܏឴឵‎‏‪-‮⁠-⁤-\uFEFF-]",katakana:"[〱-〵゛゜゠-ヺー-ヿㇰ-ㇿ㋐-㋾㌀-㍗ヲ-ン]",extendnumlet:"[=_‿⁀⁔︳︴﹍-﹏_∀-⋿<>]",punctuation:"[~№|!-*+-\\/:;?@\\[-`{}¡«·»¿;·՚-՟։֊־׀׃׆׳״؉؊،؍؛؞؟٪-٭۔܀-܍߷-߹࠰-࠾࡞।॥॰෴๏๚๛༄-༒༺-༽྅࿐-࿔࿙࿚၊-၏჻፡-፨᐀᙭᙮᚛᚜᛫-᛭᜵᜶។-៖៘-៚᠀-᠊᥄᥅᨞᨟᪠-᪦᪨-᪭᭚-᭠᯼-᯿᰻-᰿᱾᱿᳓‐-‧‰-⁃⁅-⁑⁓-⁞⁽⁾₍₎〈〉❨-❵⟅⟆⟦-⟯⦃-⦘⧘-⧛⧼⧽⳹-⳼⳾⳿⵰⸀-⸮⸰⸱、-〃〈-】〔-〟〰〽゠・꓾꓿꘍-꘏꙳꙾꛲-꛷꡴-꡷꣎꣏꣸-꣺꤮꤯꥟꧁-꧍꧞꧟꩜-꩟꫞꫟꯫﴾﴿︐-︙︰-﹒﹔-﹡﹣﹨﹪﹫!-#%-*,-/:;?@[-]_{}⦅-・]"},ee={ALETTER:0,MIDNUMLET:1,MIDLETTER:2,MIDNUM:3,NUMERIC:4,CR:5,LF:6,NEWLINE:7,EXTEND:8,FORMAT:9,KATAKANA:10,EXTENDNUMLET:11,AT:12,OTHER:13},He=[new RegExp(Ne.aletter),new RegExp(Ne.midnumlet),new RegExp(Ne.midletter),new RegExp(Ne.midnum),new RegExp(Ne.numeric),new RegExp(Ne.cr),new RegExp(Ne.lf),new RegExp(Ne.newline),new RegExp(Ne.extend),new RegExp(Ne.format),new RegExp(Ne.katakana),new RegExp(Ne.extendnumlet),new RegExp("@")],wt="",Ut=new RegExp("^"+Ne.punctuation+"$"),yn=/^\s+$/,In=He,Lo=ee.OTHER,nr=je=>{let _t=Lo;const Ge=In.length;for(let Ce=0;Ce<Ge;++Ce){const fn=In[Ce];if(fn&&fn.test(je)){_t=Ce;break}}return _t},Ao=je=>{const _t={};return Ge=>{if(_t[Ge])return _t[Ge];{const Ce=je(Ge);return _t[Ge]=Ce,Ce}}},Nt=je=>{const _t=Ao(nr);return ve(je,_t)},or=(je,_t)=>{const Ge=je[_t],Ce=je[_t+1];if(_t<0||_t>je.length-1&&_t!==0||Ge===ee.ALETTER&&Ce===ee.ALETTER)return!1;const fn=je[_t+2];if(Ge===ee.ALETTER&&(Ce===ee.MIDLETTER||Ce===ee.MIDNUMLET||Ce===ee.AT)&&fn===ee.ALETTER)return!1;const Vo=je[_t-1];return(Ge===ee.MIDLETTER||Ge===ee.MIDNUMLET||Ce===ee.AT)&&Ce===ee.ALETTER&&Vo===ee.ALETTER||(Ge===ee.NUMERIC||Ge===ee.ALETTER)&&(Ce===ee.NUMERIC||Ce===ee.ALETTER)||(Ge===ee.MIDNUM||Ge===ee.MIDNUMLET)&&Ce===ee.NUMERIC&&Vo===ee.NUMERIC||Ge===ee.NUMERIC&&(Ce===ee.MIDNUM||Ce===ee.MIDNUMLET)&&fn===ee.NUMERIC||(Ge===ee.EXTEND||Ge===ee.FORMAT)&&(Ce===ee.ALETTER||Ce===ee.NUMERIC||Ce===ee.KATAKANA||Ce===ee.EXTEND||Ce===ee.FORMAT)||(Ce===ee.EXTEND||Ce===ee.FORMAT&&(fn===ee.ALETTER||fn===ee.NUMERIC||fn===ee.KATAKANA||fn===ee.EXTEND||fn===ee.FORMAT))&&(Ge===ee.ALETTER||Ge===ee.NUMERIC||Ge===ee.KATAKANA||Ge===ee.EXTEND||Ge===ee.FORMAT)||Ge===ee.CR&&Ce===ee.LF?!1:Ge===ee.NEWLINE||Ge===ee.CR||Ge===ee.LF||Ce===ee.NEWLINE||Ce===ee.CR||Ce===ee.LF?!0:!(Ge===ee.KATAKANA&&Ce===ee.KATAKANA||Ce===ee.EXTENDNUMLET&&(Ge===ee.ALETTER||Ge===ee.NUMERIC||Ge===ee.KATAKANA||Ge===ee.EXTENDNUMLET)||Ge===ee.EXTENDNUMLET&&(Ce===ee.ALETTER||Ce===ee.NUMERIC||Ce===ee.KATAKANA)||Ge===ee.AT)},an=wt,me=yn,Ct=Ut,va=je=>je==="http"||je==="https",jn=(je,_t)=>{let Ge;for(Ge=_t;Ge<je.length&&!me.test(je[Ge]);Ge++);return Ge},oe=(je,_t)=>{const Ge=jn(je,_t+1);return je.slice(_t+1,Ge).join(an).substr(0,3)==="://"?Ge:_t},Nn=(je,_t,Ge,Ce)=>{const fn=[],Vo=[];let Mt=[];for(let yr=0;yr<Ge.length;++yr)if(Mt.push(je[yr]),or(Ge,yr)){const Oo=_t[yr];if((Ce.includeWhitespace||!me.test(Oo))&&(Ce.includePunctuation||!Ct.test(Oo))){const Ra=yr-Mt.length+1,ls=yr+1,ur=_t.slice(Ra,ls).join(an);if(va(ur)){const ll=oe(_t,yr),dr=je.slice(ls,ll);Array.prototype.push.apply(Mt,dr),yr=ll}fn.push(Mt),Vo.push({start:Ra,end:ls})}Mt=[]}return{words:fn,indices:Vo}},Yo=()=>({includeWhitespace:!1,includePunctuation:!1}),yt=(je,_t,Ge)=>{Ge={...Yo(),...Ge};const Ce=ve(je,_t),fn=Nt(Ce);return Nn(je,Ce,fn,Ge)},ie=(je,_t,Ge)=>yt(je,_t,Ge).words,No=je=>je.replace(/\uFEFF/g,"");var Gn=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker");const Ze=(je,_t)=>{const Ge=_t.getBlockElements(),Ce=_t.getVoidElements(),fn=Ra=>Ge[Ra.nodeName]||Ce[Ra.nodeName],Vo=[];let Mt="";const yr=new Gn(je,je);let Oo;for(;Oo=yr.next();)Oo.nodeType===3?Mt+=No(Oo.data):fn(Oo)&&Mt.length&&(Vo.push(Mt),Mt="");return Mt.length&&Vo.push(Mt),Vo},N=je=>je.replace(/\u200B/g,""),qt=je=>je.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length,et=(je,_t)=>{const Ge=N(Ze(je,_t).join(`
89
89
  `));return ie(Ge.split(""),Ae).length},Do=(je,_t)=>{const Ge=Ze(je,_t).join("");return qt(Ge)},cn=(je,_t)=>{const Ge=Ze(je,_t).join("").replace(/\s/g,"");return qt(Ge)},tt=(je,_t)=>()=>_t(je.getBody(),je.schema),Fo=(je,_t)=>()=>_t(je.selection.getRng().cloneContents(),je.schema),sr=je=>tt(je,et),eo=je=>({body:{getWordCount:sr(je),getCharacterCount:tt(je,Do),getCharacterCountWithoutSpaces:tt(je,cn)},selection:{getWordCount:Fo(je,et),getCharacterCount:Fo(je,Do),getCharacterCountWithoutSpaces:Fo(je,cn)},getCount:sr(je)}),ir=(je,_t)=>{je.windowManager.open({title:"Word Count",body:{type:"panel",items:[{type:"table",header:["Count","Document","Selection"],cells:[["Words",String(_t.body.getWordCount()),String(_t.selection.getWordCount())],["Characters (no spaces)",String(_t.body.getCharacterCountWithoutSpaces()),String(_t.selection.getCharacterCountWithoutSpaces())],["Characters",String(_t.body.getCharacterCount()),String(_t.selection.getCharacterCount())]]}]},buttons:[{type:"cancel",name:"close",text:"Close",primary:!0}]})},Je=(je,_t)=>{je.addCommand("mceWordCount",()=>ir(je,_t))},mt=(je,_t)=>{let Ge=null;return{cancel:()=>{ce(Ge)||(clearTimeout(Ge),Ge=null)},throttle:(...Vo)=>{ce(Ge)&&(Ge=setTimeout(()=>{Ge=null,je.apply(null,Vo)},_t))}}};var z=tinymce.util.Tools.resolve("tinymce.util.Delay");const Za=(je,_t)=>{je.dispatch("wordCountUpdate",{wordCount:{words:_t.body.getWordCount(),characters:_t.body.getCharacterCount(),charactersWithoutSpaces:_t.body.getCharacterCountWithoutSpaces()}})},qn=(je,_t)=>{Za(je,_t)},Xo=(je,_t,Ge)=>{const Ce=mt(()=>qn(je,_t),Ge);je.on("init",()=>{qn(je,_t),z.setEditorTimeout(je,()=>{je.on("SetContent BeforeAddUndo Undo Redo ViewUpdate keyup",Ce.throttle)},0),je.on("remove",Ce.cancel)})},$o=je=>{const _t=()=>je.execCommand("mceWordCount");je.ui.registry.addButton("wordcount",{tooltip:"Word count",icon:"character-count",onAction:_t}),je.ui.registry.addMenuItem("wordcount",{text:"Word count",icon:"character-count",onAction:_t})};var $i=(je=300)=>{P.add("wordcount",_t=>{const Ge=eo(_t);return Je(_t,Ge),$o(_t),Xo(_t,Ge,je),Ge})};$i()}();const rJ={class:"font-bold ptext-lg dark:text-white"},aJ=["id"],cJ=h.createElementVNode("hr",{class:"!opacity-100 bg-gray-200 border-0 dark:bg-gray-700"},null,-1),lJ=["for"],iJ=["name","id","type"],uJ={class:"gl-span-form-error"},dJ={class:"block mt-1 text-sm font-normal leading-5 text-gray-500"},mJ={__name:"GlTinymce",props:{is_required:{type:Boolean,default:!1},show:{type:Boolean,default:!1},error_message:{type:String,default:""},model_value:{type:[String,Number],default:null},modelValue:{type:[String,Number],default:""},type:{type:String,default:"text"},field_name:{type:String,default:""},label_name:{type:String,default:""},description:{type:String,default:""}},emits:["update:modelValue","keydown"],setup(P,{expose:be,emit:ce}){const Ae=P,ve=ce,Q=h.ref(null);let Ne=null;const ee=async()=>{await h.nextTick(),Ne&&(Ne.destroy(),Ne=null),sJ.init({selector:"#"+Ae.field_name,height:300,plugins:["link","lists","image","wordcount"],toolbar:"undo redo | codesample | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | removeformat | help",skin:!1,content_css:!1,setup(wt){Ne=wt,wt.on("Change",()=>{ve("update:modelValue",wt.getContent())}),wt.on("init",()=>{wt.setContent(Ae.modelValue)})}})};h.onMounted(ee),h.onBeforeUnmount(()=>{Ne&&(Ne.destroy(),Ne=null)}),h.watch(()=>Ae.modelValue,wt=>{Ne&&Ne.getContent()!==wt&&Ne.setContent(wt)});const He=h.computed({get(){return Ae.modelValue},set(wt){ve("update:modelValue",wt)}});return be({focus:()=>Q.value.focus()}),(wt,Ut)=>(h.openBlock(),h.createElementBlock(h.Fragment,null,[P.show?(h.openBlock(),h.createElementBlock("div",{key:0,class:h.normalizeClass(P.field_name)},[h.createElementVNode("h3",rJ,h.toDisplayString(P.label_name),1),h.createElementVNode("p",{id:P.field_name,class:"mb-4 text-base text-gray-900 input_tr_show dark:text-white"},h.toDisplayString(P.model_value),9,aJ),cJ],2)):h.createCommentVNode("",!0),P.show?h.createCommentVNode("",!0):(h.openBlock(),h.createElementBlock("div",{key:1,class:h.normalizeClass(["mb-4",P.field_name])},[h.createElementVNode("label",{class:h.normalizeClass({"gl-label-form":P.error_message=="","gl-label-form-invalid":P.error_message!=="",required:P.is_required}),for:P.field_name},h.toDisplayString(P.label_name),11,lJ),h.withDirectives(h.createElementVNode("textarea",{name:P.field_name,id:P.field_name,class:h.normalizeClass(["tiny",{"gl-textarea-form mt-4":P.error_message=="","gl-textarea-form-invalid mt-4":P.error_message!==""}]),type:P.type,"onUpdate:modelValue":Ut[0]||(Ut[0]=yn=>He.value=yn),onKeydown:Ut[1]||(Ut[1]=yn=>wt.$emit("keydown",yn)),ref_key:"input",ref:Q,rows:"4"},null,42,iJ),[[h.vModelText,He.value]]),h.createElementVNode("span",uJ,h.toDisplayString(P.error_message),1),h.createElementVNode("small",dJ,h.toDisplayString(P.description),1)],2))],64))}},fJ={compatConfig:{MODE:3},inheritAttrs:!1,emits:["pagination-change-page"],components:{RenderlessPagination:{emits:["pagination-change-page"],props:{data:{type:Object,default:()=>{}},limit:{type:Number,default:0}},computed:{isApiResource(){return!!this.data.meta},currentPage(){return this.isApiResource?this.data.meta.current_page:this.data.current_page},firstPageUrl(){return this.isApiResource?this.data.links.first:null},from(){return this.isApiResource?this.data.meta.from:this.data.from},lastPage(){return this.isApiResource?this.data.meta.last_page:this.data.last_page},lastPageUrl(){return this.isApiResource?this.data.links.last:null},nextPageUrl(){return this.isApiResource?this.data.links.next:this.data.next_page_url},perPage(){return this.isApiResource?this.data.meta.per_page:this.data.per_page},prevPageUrl(){return this.isApiResource?this.data.links.prev:this.data.prev_page_url},to(){return this.isApiResource?this.data.meta.to:this.data.to},total(){return this.isApiResource?this.data.meta.total:this.data.total},pageRange(){if(this.limit===-1)return 0;if(this.limit===0)return this.lastPage;for(var P=this.currentPage,be=this.lastPage,ce=this.limit,Ae=P-ce,ve=P+ce+1,Q=[],Ne=[],ee,He=1;He<=be;He++)(He===1||He===be||He>=Ae&&He<ve)&&Q.push(He);return Q.forEach(function(wt){ee&&(wt-ee===2?Ne.push(ee+1):wt-ee!==1&&Ne.push("...")),Ne.push(wt),ee=wt}),Ne}},methods:{previousPage(){this.selectPage(this.currentPage-1)},nextPage(){this.selectPage(this.currentPage+1)},selectPage(P){P!=="..."&&this.$emit("pagination-change-page",P)}},render(){return this.$slots.default({data:this.data,limit:this.limit,computed:{isApiResource:this.isApiResource,currentPage:this.currentPage,firstPageUrl:this.firstPageUrl,from:this.from,lastPage:this.lastPage,lastPageUrl:this.lastPageUrl,nextPageUrl:this.nextPageUrl,perPage:this.perPage,prevPageUrl:this.prevPageUrl,to:this.to,total:this.total,pageRange:this.pageRange},prevButtonEvents:{click:P=>{P.preventDefault(),this.previousPage()}},nextButtonEvents:{click:P=>{P.preventDefault(),this.nextPage()}},pageButtonEvents:P=>({click:be=>{be.preventDefault(),this.selectPage(P)}})})}}},props:{data:{type:Object,default:()=>{}},limit:{type:Number,default:0},showDisabled:{type:Boolean,default:!1},size:{type:String,default:"default",validator:P=>["small","default","large"].indexOf(P)!==-1},align:{type:String,default:"left",validator:P=>["left","center","right"].indexOf(P)!==-1}},methods:{onPaginationChangePage(P){this.$emit("pagination-change-page",P)}},mounted(){}},gJ={class:"flex flex-col items-center"},hJ={key:0,class:"text-sm text-gray-700 dark:text-gray-400"},pJ={class:"font-semibold text-gray-900 dark:text-white"},bJ={class:"font-semibold text-gray-900 dark:text-white"},yJ={class:"font-semibold text-gray-900 dark:text-white"},vJ=["tabindex"],wJ=h.createElementVNode("span",{class:"sr-only"},"Previous",-1),xJ=h.createElementVNode("svg",{class:"w-2.5 h-2.5 rtl:rotate-180","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 6 10"},[h.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 1 1 5l4 4"})],-1),CJ=["aria-current"],SJ=["tabindex"],kJ=h.createElementVNode("span",{class:"sr-only"},"Next",-1),_J=h.createElementVNode("svg",{class:"w-2.5 h-2.5 rtl:rotate-180","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 6 10"},[h.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m1 9 4-4-4-4"})],-1);function EJ(P,be,ce,Ae,ve,Q){const Ne=h.resolveComponent("RenderlessPagination");return h.openBlock(),h.createBlock(Ne,{data:ce.data,limit:ce.limit,onPaginationChangePage:Q.onPaginationChangePage},{default:h.withCtx(ee=>[h.createElementVNode("div",gJ,[ee.computed.total>ee.computed.perPage?(h.openBlock(),h.createElementBlock("span",hJ,[h.createTextVNode(" Showing "),h.createElementVNode("span",pJ,h.toDisplayString(ee.computed.from),1),h.createTextVNode(" to "),h.createElementVNode("span",bJ,h.toDisplayString(ee.computed.to),1),h.createTextVNode(" of "),h.createElementVNode("span",yJ,h.toDisplayString(ee.computed.total),1),h.createTextVNode(" Entries ")])):h.createCommentVNode("",!0),ee.computed.total>ee.computed.perPage?(h.openBlock(),h.createElementBlock("ul",h.mergeProps({key:1},P.$attrs,{class:["flex items-center h-8 -space-x-px text-sm",{"pagination-sm":ce.size=="small","pagination-lg":ce.size=="large","justify-content-center":ce.align=="center","justify-content-end":ce.align=="right"}]}),[ee.computed.prevPageUrl||ce.showDisabled?(h.openBlock(),h.createElementBlock("li",{key:0,class:h.normalizeClass(["flex items-center justify-center h-8 px-3 leading-tight text-gray-500 bg-white border border-gray-300 ms-0 border-e-0 rounded-s-lg hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white",{disabled:!ee.computed.prevPageUrl}])},[h.createElementVNode("a",h.mergeProps({class:"page-link",href:"#","aria-label":"Previous",tabindex:!ee.computed.prevPageUrl&&-1},h.toHandlers(ee.prevButtonEvents,!0)),[h.renderSlot(P.$slots,"prev-nav",{},()=>[wJ,xJ])],16,vJ)],2)):h.createCommentVNode("",!0),(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(ee.computed.pageRange,(He,wt)=>(h.openBlock(),h.createElementBlock("li",{class:h.normalizeClass(["",{active:He==ee.computed.currentPage}]),key:wt},[h.createElementVNode("a",h.mergeProps({class:"",href:"#"},h.toHandlers(ee.pageButtonEvents(He),!0),{"aria-current":He==ee.computed.currentPage?"page":null,class:He==ee.computed.currentPage?"z-10 flex items-center justify-center px-3 h-8 leading-tight text-blue-600 border border-blue-300 bg-blue-50 hover:bg-blue-100 hover:text-blue-700 dark:border-gray-700 dark:bg-gray-700 dark:text-white":"flex items-center justify-center px-3 h-8 leading-tight text-gray-500 bg-white border border-gray-300 hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white"}),h.toDisplayString(He),17,CJ)],2))),128)),ee.computed.nextPageUrl||ce.showDisabled?(h.openBlock(),h.createElementBlock("li",{key:1,class:h.normalizeClass(["flex items-center justify-center h-8 px-3 leading-tight text-gray-500 bg-white border border-gray-300 rounded-e-lg hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white",{disabled:!ee.computed.nextPageUrl}])},[h.createElementVNode("a",h.mergeProps({class:"",href:"#","aria-label":"Next",tabindex:!ee.computed.nextPageUrl&&-1},h.toHandlers(ee.nextButtonEvents,!0)),[h.renderSlot(P.$slots,"next-nav",{},()=>[kJ,_J])],16,SJ)],2)):h.createCommentVNode("",!0)],16)):h.createCommentVNode("",!0)])]),_:3},8,["data","limit","onPaginationChangePage"])}const k8=Qr(fJ,[["render",EJ]]),TJ={components:{TailwindPagination:k8},props:{data:Array,columns:Array,get_item_url:String,xprops:Object,refreshData:Boolean},data(){return{isLoading:!1,isMounted:!1,limit:5,showDisabled:!1,size:"default",align:"left",search:"",isDropdownOpen:!1,itemLists:[],tableData:[],sortField:this.columns[0].field_name,sortOrder:"desc",pageOptions:[5,10,20,50],perPage:5,page:1}},emits:["editAction","generalAction"],computed:{filteredData(){const P=this.search.toLowerCase();return this.sortData(this.data).filter(ce=>Object.values(ce).some(Ae=>Ae.toString().toLowerCase().includes(P)))}},methods:{editAction(P){this.$emit("editAction",P)},generalAction(P){this.$emit("generalAction",P)},forDynCompIs(P){return typeof P=="object"?P:null},GetItemLists(P=1){this.isLoading=!0,this.page=P;const be={sort:this.sortField,order:this.sortOrder,s:this.search,limit:this.perPage,page:this.page};axios.get(this.xprops.route_get_data,{params:be}).then(ce=>{this.itemLists=ce.data,this.isLoading=!1}).catch(ce=>{console.error(ce),this.isLoading=!1})},updateSortColumn(P,be){be&&(P===this.sortField?this.sortOrder=this.sortOrder==="asc"?"desc":"asc":(this.sortField=P,this.sortOrder="asc"),this.GetItemLists(this.page))},handleSearch(){this.sortField=this.columns[0].field_name,this.sortOrder="asc",this.page=1,this.GetItemLists(this.page)}},mounted(){this.GetItemLists(),this.isMounted=!0},watch:{searchFilter(){this.filteredOptions.length===0?this.selected={}:this.selected=this.filteredOptions[0]},perPage(P){this.page=1,this.perPage=P,this.GetItemLists(this.page)},refreshData(P,be){this.isMounted&&P!==be&&this.GetItemLists()}}},AJ={class:"p-2"},NJ={class:"flex flex-col flex-wrap pb-4 gap-4 xl:flex-row xl:items-center xl:justify-between flex-column"},DJ={class:"flex items-center gap-2"},OJ=h.createElementVNode("span",{class:"font-medium"}," Show ",-1),BJ={style:{"margin-top":"3px"}},RJ=h.createElementVNode("span",{class:"font-medium"}," Entries ",-1),$J=h.createElementVNode("label",{for:"table-search",class:"sr-only"},"Search",-1),MJ={class:"relative"},PJ=h.createElementVNode("div",{class:"absolute inset-y-0 left-0 flex items-center pointer-events-none rtl:inset-r-0 rtl:right-0 ps-3"},[h.createElementVNode("svg",{class:"w-5 h-5 text-gray-500 dark:text-gray-400","aria-hidden":"true",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[h.createElementVNode("path",{"fill-rule":"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z","clip-rule":"evenodd"})])],-1),IJ={class:"overflow-auto rounded-lg dark:text-gray-400 dark:bg-gray-800"},LJ={class:"w-full h-full max-w-full overflow-hidden bg-white border-separate xl:overflow-auto lg:border-collapse border-spacing-y-5 lg:border-spacing-y-0 dark:border-strokedark dark:bg-boxdark"},FJ={class:"hidden text-sm font-normal text-center text-gray-500 lg:table-header-group dark:border-strokedark bg-gray-50 dark:bg-gray-700 dark:text-gray-400"},VJ=["onClick"],HJ={key:0,class:"ml-2"},zJ={key:0,class:"fa fa-arrow-up"},UJ={key:1,class:"fa fa-arrow-down"},WJ={key:0},ZJ=["colspan"],jJ=[h.createElementVNode("div",{role:"status",class:"p-4 space-y-4 border border-gray-200 divide-y divide-gray-200 rounded shadow animate-pulse dark:divide-gray-700 md:p-6 dark:border-gray-700"},[h.createElementVNode("div",{class:"flex items-center justify-between"},[h.createElementVNode("div",null,[h.createElementVNode("div",{class:"h-3 bg-gray-300 rounded-full dark:bg-gray-600 w-24 mb-3"}),h.createElementVNode("div",{class:"w-32 h-2 bg-gray-200 rounded-full dark:bg-gray-700"})]),h.createElementVNode("div",{class:"h-3 bg-gray-300 rounded-full dark:bg-gray-700 w-12"})]),h.createElementVNode("div",{class:"flex items-center justify-between pt-4"},[h.createElementVNode("div",null,[h.createElementVNode("div",{class:"h-3 bg-gray-300 rounded-full dark:bg-gray-600 w-24 mb-3"}),h.createElementVNode("div",{class:"w-32 h-2 bg-gray-200 rounded-full dark:bg-gray-700"})]),h.createElementVNode("div",{class:"h-3 bg-gray-300 rounded-full dark:bg-gray-700 w-12"})]),h.createElementVNode("div",{class:"flex items-center justify-between pt-4"},[h.createElementVNode("div",null,[h.createElementVNode("div",{class:"h-3 bg-gray-300 rounded-full dark:bg-gray-600 w-24 mb-3"}),h.createElementVNode("div",{class:"w-32 h-2 bg-gray-200 rounded-full dark:bg-gray-700"})]),h.createElementVNode("div",{class:"h-3 bg-gray-300 rounded-full dark:bg-gray-700 w-12"})]),h.createElementVNode("div",{class:"flex items-center justify-between pt-4"},[h.createElementVNode("div",null,[h.createElementVNode("div",{class:"h-3 bg-gray-300 rounded-full dark:bg-gray-600 w-24 mb-3"}),h.createElementVNode("div",{class:"w-32 h-2 bg-gray-200 rounded-full dark:bg-gray-700"})]),h.createElementVNode("div",{class:"h-3 bg-gray-300 rounded-full dark:bg-gray-700 w-12"})]),h.createElementVNode("div",{class:"flex items-center justify-between pt-4"},[h.createElementVNode("div",null,[h.createElementVNode("div",{class:"h-3 bg-gray-300 rounded-full dark:bg-gray-600 w-24 mb-3"}),h.createElementVNode("div",{class:"w-32 h-2 bg-gray-200 rounded-full dark:bg-gray-700"})]),h.createElementVNode("div",{class:"h-3 bg-gray-300 rounded-full dark:bg-gray-700 w-12"})]),h.createElementVNode("span",{class:"sr-only"},"Loading...")],-1)],GJ=["data-label"],qJ={class:"overflow-auto max-h-40"},KJ={class:"flex items-center justify-between px-4 py-3 bg-white border-gray-200 sm:px-6 dark:text-gray-400 dark:bg-gray-800"};function YJ(P,be,ce,Ae,ve,Q){const Ne=h.resolveComponent("dropdown"),ee=h.resolveComponent("TailwindPagination");return h.openBlock(),h.createElementBlock("div",AJ,[h.createElementVNode("div",NJ,[h.createElementVNode("div",DJ,[OJ,h.createElementVNode("div",BJ,[h.createVNode(Ne,{has_cancel:!1,options:ve.pageOptions,modelValue:ve.perPage,"onUpdate:modelValue":be[0]||(be[0]=He=>ve.perPage=He),is_required:!1,field_name:"perPage",label_name:"",default_value:5,show:!1,placeholder:"Please select an option"},null,8,["options","modelValue"])]),RJ]),$J,h.createElementVNode("div",MJ,[PJ,h.withDirectives(h.createElementVNode("input",{type:"text","onUpdate:modelValue":be[1]||(be[1]=He=>ve.search=He),onInput:be[2]||(be[2]=He=>Q.handleSearch()),class:"block w-full p-2 text-sm text-gray-900 border border-gray-300 rounded-lg ps-10 bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Search ..."},null,544),[[h.vModelText,ve.search]])])]),h.createElementVNode("div",IJ,[h.createElementVNode("table",LJ,[h.createElementVNode("thead",FJ,[h.createElementVNode("tr",null,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(ce.columns,(He,wt)=>(h.openBlock(),h.createElementBlock("th",{key:wt,onClick:Ut=>Q.updateSortColumn(He.field_name,He.sortable),class:"w-full px-4 py-2 lg:w-2/12"},[h.createTextVNode(h.toDisplayString(He.field_label)+" ",1),ve.sortField===He.field_name?(h.openBlock(),h.createElementBlock("span",HJ,[ve.sortOrder==="asc"?(h.openBlock(),h.createElementBlock("i",zJ)):(h.openBlock(),h.createElementBlock("i",UJ))])):h.createCommentVNode("",!0)],8,VJ))),128))])]),h.createElementVNode("tbody",null,[ve.isLoading?(h.openBlock(),h.createElementBlock("tr",WJ,[h.createElementVNode("td",{colspan:ce.columns.length},jJ,8,ZJ)])):h.createCommentVNode("",!0),ve.isLoading?h.createCommentVNode("",!0):(h.openBlock(!0),h.createElementBlock(h.Fragment,{key:1},h.renderList(ve.itemLists.data,(He,wt)=>(h.openBlock(),h.createElementBlock("tr",{key:wt,class:"bg-white dark:bg-gray-800 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600 hover:dark:text-gray-200 text-gray-500"},[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(ce.columns,(Ut,yn)=>(h.openBlock(),h.createElementBlock("td",{key:yn,"data-label":Ut.field_label,class:h.normalizeClass(["text-pretty before:content-[attr(data-label)] before:font-bold lg:before:content-none flex flex-col justify-between gap-2 lg:table-cell py-4 px-5 lg:py-3 lg:px-4 border-[0.3px] dark:border-gray-700",{"rounded-t-lg lg:rounded-t-none":yn===0,"rounded-b-lg lg:rounded-b-none":yn===ce.columns.length-1}])},[h.createElementVNode("div",qJ,[Ut.tdComp?(h.openBlock(),h.createBlock(h.resolveDynamicComponent(Q.forDynCompIs(Ut.tdComp)),{key:0,row:He,field:Ut.field_name,xprops:ce.xprops,tdProps:Ut.tdProps,onDeleteAction:be[3]||(be[3]=In=>Q.GetItemLists()),onEditAction:In=>Q.editAction(He),onGeneralAction:In=>Q.generalAction(He)},null,40,["row","field","xprops","tdProps","onEditAction","onGeneralAction"])):(h.openBlock(),h.createElementBlock(h.Fragment,{key:1},[h.createTextVNode(h.toDisplayString(He[Ut.field_name]),1)],64))])],10,GJ))),128))]))),128))])])]),h.createElementVNode("div",KJ,[h.createVNode(ee,{class:"mt-3 mb-0",data:ve.itemLists,limit:ve.limit,size:ve.size,align:ve.align,onPaginationChangePage:Q.GetItemLists},null,8,["data","limit","size","align","onPaginationChangePage"])])])}const XJ=Qr(TJ,[["render",YJ]]),JJ={components:{TailwindPagination:k8},props:{data:Array,columns:Array,get_item_url:String,xprops:Object,refreshData:Boolean,groupField:String},data(){return{isLoading:!1,isMounted:!1,limit:5,showDisabled:!1,size:"default",align:"left",search:"",isDropdownOpen:!1,itemLists:[],tableData:[],sortField:this.columns[0].field_name,sortOrder:"desc",pageOptions:[5,10,20,50],perPage:5,page:1}},emits:["editAction"],computed:{filteredData(){const P=this.search.toLowerCase();return this.sortData(this.data).filter(ce=>Object.values(ce).some(Ae=>Ae.toString().toLowerCase().includes(P)))},groupedItems(){return this.groupBy(this.groupField)}},methods:{groupBy(P){return this.itemLists.data?this.itemLists.data.reduce((be,ce)=>{const Ae=ce[P];be[Ae]||(be[Ae]=[]);const ve={...ce};return delete ve[P],be[Ae].push(ve),be},{}):[]},editAction(P){this.$emit("editAction",P)},forDynCompIs(P){return typeof P=="object"?P:null},GetItemLists(P=1){this.isLoading=!0,this.page=P;const be={sort:this.sortField,order:this.sortOrder,s:this.search,limit:this.perPage,page:this.page};axios.get(this.xprops.route_get_data,{params:be}).then(ce=>{this.itemLists=ce.data,this.isLoading=!1}).catch(ce=>{console.error(ce),this.isLoading=!1})},updateSortColumn(P,be){be&&(P===this.sortField?this.sortOrder=this.sortOrder==="asc"?"desc":"asc":(this.sortField=P,this.sortOrder="asc"),this.GetItemLists(this.page))},handleSearch(){this.sortField=this.columns[0].field_name,this.sortOrder="asc",this.page=1,this.GetItemLists(this.page)}},mounted(){this.GetItemLists(),this.isMounted=!0},watch:{searchFilter(){this.filteredOptions.length===0?this.selected={}:this.selected=this.filteredOptions[0]},perPage(P){this.page=1,this.perPage=P,this.GetItemLists(this.page)},refreshData(P,be){this.isMounted&&P!==be&&this.GetItemLists()}}},QJ={class:"p-2"},eQ={class:"flex flex-col flex-wrap pb-4 space-y-4 xl:flex-row xl:items-center xl:justify-between flex-column sm:space-y-0"},tQ={class:"flex items-center gap-2"},nQ=h.createElementVNode("span",{class:"font-medium"}," Show ",-1),oQ={style:{"margin-top":"9px"}},sQ=h.createElementVNode("span",{class:"font-medium"}," Entries ",-1),rQ=h.createElementVNode("label",{for:"table-search",class:"sr-only"},"Search",-1),aQ={class:"relative"},cQ=h.createElementVNode("div",{class:"absolute inset-y-0 left-0 flex items-center pointer-events-none rtl:inset-r-0 rtl:right-0 ps-3"},[h.createElementVNode("svg",{class:"w-5 h-5 text-gray-500 dark:text-gray-400","aria-hidden":"true",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[h.createElementVNode("path",{"fill-rule":"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z","clip-rule":"evenodd"})])],-1),lQ={class:"overflow-auto rounded-lg dark:text-gray-400 dark:bg-gray-800"},iQ={class:"w-full h-full max-w-full overflow-hidden bg-white border-separate xl:overflow-auto lg:border-collapse border-spacing-y-3 lg:border-spacing-y-0 dark:border-strokedark dark:bg-boxdark"},uQ={class:"hidden text-sm font-normal text-center text-gray-500 lg:table-header-group dark:border-strokedark bg-gray-50 dark:bg-gray-700 dark:text-gray-400"},dQ=["onClick"],mQ={key:0,class:"ml-2"},fQ={key:0,class:"fa fa-arrow-up"},gQ={key:1,class:"fa fa-arrow-down"},hQ={key:0},pQ=["colspan"],bQ=[h.createElementVNode("div",{role:"status",class:"p-4 space-y-4 border border-gray-200 divide-y divide-gray-200 rounded shadow animate-pulse dark:divide-gray-700 md:p-6 dark:border-gray-700"},[h.createElementVNode("div",{class:"flex items-center justify-between"},[h.createElementVNode("div",null,[h.createElementVNode("div",{class:"h-3 bg-gray-300 rounded-full dark:bg-gray-600 w-24 mb-3"}),h.createElementVNode("div",{class:"w-32 h-2 bg-gray-200 rounded-full dark:bg-gray-700"})]),h.createElementVNode("div",{class:"h-3 bg-gray-300 rounded-full dark:bg-gray-700 w-12"})]),h.createElementVNode("div",{class:"flex items-center justify-between pt-4"},[h.createElementVNode("div",null,[h.createElementVNode("div",{class:"h-3 bg-gray-300 rounded-full dark:bg-gray-600 w-24 mb-3"}),h.createElementVNode("div",{class:"w-32 h-2 bg-gray-200 rounded-full dark:bg-gray-700"})]),h.createElementVNode("div",{class:"h-3 bg-gray-300 rounded-full dark:bg-gray-700 w-12"})]),h.createElementVNode("div",{class:"flex items-center justify-between pt-4"},[h.createElementVNode("div",null,[h.createElementVNode("div",{class:"h-3 bg-gray-300 rounded-full dark:bg-gray-600 w-24 mb-3"}),h.createElementVNode("div",{class:"w-32 h-2 bg-gray-200 rounded-full dark:bg-gray-700"})]),h.createElementVNode("div",{class:"h-3 bg-gray-300 rounded-full dark:bg-gray-700 w-12"})]),h.createElementVNode("div",{class:"flex items-center justify-between pt-4"},[h.createElementVNode("div",null,[h.createElementVNode("div",{class:"h-3 bg-gray-300 rounded-full dark:bg-gray-600 w-24 mb-3"}),h.createElementVNode("div",{class:"w-32 h-2 bg-gray-200 rounded-full dark:bg-gray-700"})]),h.createElementVNode("div",{class:"h-3 bg-gray-300 rounded-full dark:bg-gray-700 w-12"})]),h.createElementVNode("div",{class:"flex items-center justify-between pt-4"},[h.createElementVNode("div",null,[h.createElementVNode("div",{class:"h-3 bg-gray-300 rounded-full dark:bg-gray-600 w-24 mb-3"}),h.createElementVNode("div",{class:"w-32 h-2 bg-gray-200 rounded-full dark:bg-gray-700"})]),h.createElementVNode("div",{class:"h-3 bg-gray-300 rounded-full dark:bg-gray-700 w-12"})]),h.createElementVNode("span",{class:"sr-only"},"Loading...")],-1)],yQ={class:"bg-white dark:bg-gray-800 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600 hover:dark:text-gray-200 text-gray-500"},vQ=["colspan"],wQ=["data-label"],xQ={class:"overflow-auto max-h-40"},CQ={class:"flex items-center justify-between px-4 py-3 bg-white border-gray-200 sm:px-6 dark:text-gray-400 dark:bg-gray-800"};function SQ(P,be,ce,Ae,ve,Q){const Ne=h.resolveComponent("dropdown"),ee=h.resolveComponent("TailwindPagination");return h.openBlock(),h.createElementBlock("div",QJ,[h.createElementVNode("div",eQ,[h.createElementVNode("div",tQ,[nQ,h.createElementVNode("div",oQ,[h.createVNode(Ne,{has_cancel:!1,options:ve.pageOptions,modelValue:ve.perPage,"onUpdate:modelValue":be[0]||(be[0]=He=>ve.perPage=He),is_required:!1,field_name:"perPage",label_name:"",default_value:5,show:!1,placeholder:"Please select an option"},null,8,["options","modelValue"])]),sQ]),rQ,h.createElementVNode("div",aQ,[cQ,h.withDirectives(h.createElementVNode("input",{type:"text","onUpdate:modelValue":be[1]||(be[1]=He=>ve.search=He),onInput:be[2]||(be[2]=He=>Q.handleSearch()),class:"block w-full p-2 text-sm text-gray-900 border border-gray-300 rounded-lg ps-10 bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Search ..."},null,544),[[h.vModelText,ve.search]])])]),h.createElementVNode("div",lQ,[h.createElementVNode("table",iQ,[h.createElementVNode("thead",uQ,[h.createElementVNode("tr",null,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(ce.columns,(He,wt)=>(h.openBlock(),h.createElementBlock("th",{key:wt,onClick:Ut=>Q.updateSortColumn(He.field_name,He.sortable),class:"w-full px-4 py-2 lg:w-2/12"},[h.createTextVNode(h.toDisplayString(He.field_label)+" ",1),ve.sortField===He.field_name?(h.openBlock(),h.createElementBlock("span",mQ,[ve.sortOrder==="asc"?(h.openBlock(),h.createElementBlock("i",fQ)):(h.openBlock(),h.createElementBlock("i",gQ))])):h.createCommentVNode("",!0)],8,dQ))),128))])]),h.createElementVNode("tbody",null,[ve.isLoading?(h.openBlock(),h.createElementBlock("tr",hQ,[h.createElementVNode("td",{colspan:ce.columns.length},bQ,8,pQ)])):h.createCommentVNode("",!0),ve.isLoading?h.createCommentVNode("",!0):(h.openBlock(!0),h.createElementBlock(h.Fragment,{key:1},h.renderList(Q.groupedItems,(He,wt)=>(h.openBlock(),h.createElementBlock(h.Fragment,null,[h.createElementVNode("tr",yQ,[h.createElementVNode("td",{colspan:ce.columns.length,class:"text-pretty before:content-[attr(data-label)] before:font-bold lg:before:content-none flex md:flex-row flex-col justify-between gap-2 lg:table-cell py-4 px-5 lg:py-3 lg:px-4 border dark:border-gray-700"},h.toDisplayString(wt),9,vQ)]),(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(He,(Ut,yn)=>(h.openBlock(),h.createElementBlock("tr",{key:yn,class:"bg-white dark:bg-gray-800 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600 hover:dark:text-gray-200 text-gray-500"},[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(ce.columns,(In,Lo)=>(h.openBlock(),h.createElementBlock("td",{key:Lo,"data-label":In.field_label,class:"text-pretty before:content-[attr(data-label)] before:font-bold lg:before:content-none flex md:flex-row flex-col justify-between gap-2 lg:table-cell py-4 px-5 lg:py-3 lg:px-4 border dark:border-gray-700"},[h.createElementVNode("div",xQ,[In.tdComp?(h.openBlock(),h.createBlock(h.resolveDynamicComponent(Q.forDynCompIs(In.tdComp)),{key:0,row:Ut,field:In.field_name,xprops:ce.xprops,tdProps:In.tdProps,onDeleteAction:be[3]||(be[3]=nr=>Q.GetItemLists()),onEditAction:nr=>Q.editAction(Ut)},null,40,["row","field","xprops","tdProps","onEditAction"])):(h.openBlock(),h.createElementBlock(h.Fragment,{key:1},[h.createTextVNode(h.toDisplayString(Ut[In.field_name]),1)],64))])],8,wQ))),128))]))),128))],64))),256))])])]),h.createElementVNode("div",CQ,[h.createVNode(ee,{class:"mt-3 mb-0",data:ve.itemLists,limit:ve.limit,size:ve.size,align:ve.align,onPaginationChangePage:Q.GetItemLists},null,8,["data","limit","size","align","onPaginationChangePage"])])])}const kQ=Qr(JJ,[["render",SQ]]),_Q={components:{},props:{data:Array,columns:Array},data(){return{showNoOfEntries:[1,2,3,10,20,30,40],search:"",sortKey:"",sortOrder:1,currentPage:1,itemsPerPage:10,jumpToPage:"",maxDisplayedPages:10}},computed:{filteredData(){const P=this.search.toLowerCase();return this.sortData(this.data).filter(ce=>Object.values(ce).some(Ae=>Ae!=null&&Ae.toString().toLowerCase().includes(P)))},totalPages(){return Math.ceil(this.filteredData.length/this.itemsPerPage)},paginatedData(){const P=(this.currentPage-1)*this.itemsPerPage,be=P+this.itemsPerPage;return this.filteredData.slice(P,be)},displayedPageNumbers(){let P=Math.max(this.currentPage-Math.floor(this.maxDisplayedPages/2),1),be=P+this.maxDisplayedPages-1;return be>this.totalPages&&(be=this.totalPages,P=Math.max(be-this.maxDisplayedPages+1,1)),Array.from({length:be-P+1},(ce,Ae)=>P+Ae)},firstItemIndex(){return this.itemsPerPage*(this.currentPage-1)+1},lastItemIndex(){const P=this.itemsPerPage*this.currentPage;return P>this.filteredData.length?this.filteredData.length:P}},methods:{handleItemsPerPageChange(P){this.itemsPerPage=P},goToPage(P){P>=1&&P<=this.totalPages&&(this.currentPage=P)},sort(P){P===this.sortKey?this.sortOrder*=-1:(this.sortKey=P,this.sortOrder=1)},sortData(P){return this.sortKey?P.slice().sort((be,ce)=>(be[this.sortKey]<ce[this.sortKey]?-1:1)*this.sortOrder):P},previousPage(){this.currentPage>1&&this.currentPage--},nextPage(){this.currentPage<this.totalPages&&this.currentPage++},firstPage(){this.currentPage=1},lastPage(){this.currentPage=this.totalPages},goToPage(P){P>=1&&P<=this.totalPages&&(this.currentPage=P)}}},EQ={class:"p-2"},TQ={class:"flex flex-wrap pb-4 space-y-4 md:items-center md:justify-between flex-column sm:flex-row sm:space-y-0"},AQ={class:"flex items-center gap-2"},NQ=h.createElementVNode("span",{class:"font-medium"}," Show ",-1),DQ={style:{"margin-top":"9px"}},OQ=h.createElementVNode("span",{class:"font-medium"}," Entries ",-1),BQ=h.createElementVNode("label",{for:"table-search",class:"sr-only"},"Search",-1),RQ={class:"relative"},$Q=h.createElementVNode("div",{class:"absolute inset-y-0 left-0 flex items-center pointer-events-none rtl:inset-r-0 rtl:right-0 ps-3"},[h.createElementVNode("svg",{class:"w-5 h-5 text-gray-500 dark:text-gray-400","aria-hidden":"true",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[h.createElementVNode("path",{"fill-rule":"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z","clip-rule":"evenodd"})])],-1),MQ={class:"overflow-auto rounded-lg dark:text-gray-400 dark:bg-gray-800"},PQ={class:"w-full h-full max-w-full overflow-hidden bg-white border-separate xl:overflow-auto lg:border-collapse border-spacing-y-3 lg:border-spacing-y-0 dark:border-strokedark dark:bg-boxdark"},IQ={class:"hidden text-sm font-normal text-center text-gray-700 lg:table-header-group dark:border-strokedark bg-gray-50 dark:bg-gray-700 dark:text-gray-400"},LQ=["onClick"],FQ={key:0,class:"ml-2"},VQ={key:0,class:"fa fa-arrow-up"},HQ={key:1,class:"fa fa-arrow-down"},zQ=["data-label"],UQ=["innerHTML"],WQ={key:0,class:"flex items-center justify-between px-4 py-3 bg-white border-gray-200 sm:px-6 dark:text-gray-400 dark:bg-gray-800"},ZQ={class:"flex justify-between flex-1 sm:hidden"},jQ=["disabled"],GQ=["disabled"],qQ={class:"hidden sm:flex sm:flex-1 sm:items-center sm:justify-between"},KQ={class:"text-sm text-gray-700 dark:text-gray-400"},YQ={class:"font-medium"},XQ={class:"font-medium"},JQ={class:"font-medium"},QQ={"aria-label":"Page navigation"},eee={class:"flex items-center h-8 -space-x-px text-sm"},tee=["disabled"],nee=[h.createElementVNode("span",{class:"sr-only"},"Previous",-1),h.createElementVNode("svg",{class:"w-2.5 h-2.5 rtl:rotate-180","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 6 10"},[h.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 1 1 5l4 4"})],-1)],oee=["onClick"],see=["onClick"],ree=["disabled"],aee=[h.createElementVNode("span",{class:"sr-only"},"Next",-1),h.createElementVNode("svg",{class:"w-2.5 h-2.5 rtl:rotate-180","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 6 10"},[h.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m1 9 4-4-4-4"})],-1)];function cee(P,be,ce,Ae,ve,Q){const Ne=h.resolveComponent("dropdown");return h.openBlock(),h.createElementBlock("div",EQ,[h.createElementVNode("div",TQ,[h.createElementVNode("div",AQ,[NQ,h.createElementVNode("div",DQ,[h.createVNode(Ne,{has_cancel:!1,options:ve.showNoOfEntries,modelValue:ve.itemsPerPage,"onUpdate:modelValue":be[0]||(be[0]=ee=>ve.itemsPerPage=ee),is_required:!1,field_name:"NoOfEntries",label_name:"",default_value:10,show:!1,placeholder:"Please select an option"},null,8,["options","modelValue"])]),OQ]),BQ,h.createElementVNode("div",RQ,[$Q,h.withDirectives(h.createElementVNode("input",{type:"text","onUpdate:modelValue":be[1]||(be[1]=ee=>ve.search=ee),class:"block p-2 text-sm text-gray-900 border border-gray-300 rounded-lg ps-10 w-80 bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Search ..."},null,512),[[h.vModelText,ve.search]])])]),h.createElementVNode("div",MQ,[h.createElementVNode("table",PQ,[h.createElementVNode("thead",IQ,[h.createElementVNode("tr",null,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(ce.columns,(ee,He)=>(h.openBlock(),h.createElementBlock("th",{key:He,onClick:h.withModifiers(wt=>Q.sort(ee),["prevent"]),class:"w-full px-4 py-2 lg:w-2/12 capitalize"},[h.createTextVNode(h.toDisplayString(ee)+" ",1),ve.sortKey===ee?(h.openBlock(),h.createElementBlock("span",FQ,[ve.sortOrder==="asc"?(h.openBlock(),h.createElementBlock("i",VQ)):(h.openBlock(),h.createElementBlock("i",HQ))])):h.createCommentVNode("",!0)],8,LQ))),128))])]),h.createElementVNode("tbody",null,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(Q.paginatedData,(ee,He)=>(h.openBlock(),h.createElementBlock("tr",{key:He,class:"bg-white dark:bg-gray-800 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600 hover:dark:text-gray-200 text-gray-500"},[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(ce.columns,(wt,Ut)=>(h.openBlock(),h.createElementBlock("td",{key:Ut,"data-label":wt,class:"text-pretty before:content-[attr(data-label)] before:font-bold lg:before:content-none flex md:flex-row flex-col justify-between gap-2 lg:table-cell py-4 px-5 lg:py-2.5 lg:px-4 border dark:border-gray-700"},[h.createElementVNode("p",{class:"text-pretty",innerHTML:ee[Ut]},null,8,UQ)],8,zQ))),128))]))),128))])])]),Q.paginatedData.length>0?(h.openBlock(),h.createElementBlock("div",WQ,[h.createElementVNode("div",ZQ,[h.createElementVNode("a",{href:"#",onClick:be[2]||(be[2]=h.withModifiers((...ee)=>Q.previousPage&&Q.previousPage(...ee),["prevent"])),disabled:ve.currentPage===1,class:"relative inline-flex items-center px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50"},"Previous",8,jQ),h.createElementVNode("a",{href:"#",onClick:be[3]||(be[3]=h.withModifiers((...ee)=>Q.nextPage&&Q.nextPage(...ee),["prevent"])),disabled:ve.currentPage===Q.totalPages,class:"relative inline-flex items-center px-4 py-2 ml-3 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50"},"Next",8,GQ)]),h.createElementVNode("div",qQ,[h.createElementVNode("div",null,[h.createElementVNode("p",KQ,[h.createTextVNode(" Showing "),h.createElementVNode("span",YQ,h.toDisplayString(Q.firstItemIndex),1),h.createTextVNode(" to "),h.createElementVNode("span",XQ,h.toDisplayString(Q.lastItemIndex),1),h.createTextVNode(" of "),h.createElementVNode("span",JQ,h.toDisplayString(Q.filteredData.length),1),h.createTextVNode(" entries ")])]),h.createElementVNode("div",null,[h.createElementVNode("nav",QQ,[h.createElementVNode("ul",eee,[h.createElementVNode("li",null,[h.createElementVNode("a",{href:"#",onClick:be[4]||(be[4]=h.withModifiers((...ee)=>Q.previousPage&&Q.previousPage(...ee),["prevent"])),disabled:ve.currentPage===1,class:"flex items-center justify-center h-8 px-3 leading-tight text-gray-500 bg-white border border-gray-300 ms-0 border-e-0 rounded-s-lg hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white"},nee,8,tee)]),(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(Q.displayedPageNumbers,ee=>(h.openBlock(),h.createElementBlock(h.Fragment,{key:ee},[h.createElementVNode("li",null,[ve.currentPage!==ee?(h.openBlock(),h.createElementBlock("a",{key:0,href:"#",onClick:h.withModifiers(He=>Q.goToPage(ee),["prevent"]),class:"flex items-center justify-center h-8 px-3 leading-tight text-gray-500 bg-white border border-gray-300 hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white"},h.toDisplayString(ee),9,oee)):h.createCommentVNode("",!0)]),h.createElementVNode("li",null,[ve.currentPage===ee?(h.openBlock(),h.createElementBlock("a",{key:0,href:"#",onClick:h.withModifiers(He=>Q.goToPage(ee),["prevent"]),"aria-current":"page",class:"z-10 flex items-center justify-center h-8 px-3 leading-tight text-blue-600 border border-blue-300 bg-blue-50 hover:bg-blue-100 hover:text-blue-700 dark:border-gray-700 dark:bg-gray-700 dark:text-white"},h.toDisplayString(ee),9,see)):h.createCommentVNode("",!0)])],64))),128)),h.createElementVNode("li",null,[h.createElementVNode("a",{href:"#",onClick:be[5]||(be[5]=h.withModifiers((...ee)=>Q.nextPage&&Q.nextPage(...ee),["prevent"])),disabled:ve.currentPage===Q.totalPages,class:"flex items-center justify-center h-8 px-3 leading-tight text-gray-500 bg-white border border-gray-300 rounded-e-lg hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white"},aee,8,ree)])])])])])])):h.createCommentVNode("",!0)])}const lee=Qr(_Q,[["render",cee]]),iee={setup(){const P=h.ref([]),be=ve=>{P.value.push(ve)},ce=ve=>{const Q=P.value.indexOf(ve);Q>-1&&P.value.splice(Q,1)},Ae=ve=>{P.value.forEach(Q=>{Q!==ve&&Q.isOpen&&Q.isOpen.value!==void 0&&(Q.isOpen.value=!1)}),ve.isOpen&&ve.isOpen.value!==void 0&&(ve.isOpen.value=!ve.isOpen.value)};return h.provide("accordionsWrapper",{registerAccordion:be,unregisterAccordion:ce,toggleAccordion:Ae,accordions:P}),{}}};function uee(P,be,ce,Ae,ve,Q){return h.openBlock(),h.createElementBlock("div",null,[h.renderSlot(P.$slots,"default")])}const dee=Qr(iee,[["render",uee]]),mee={props:{title:{type:String,required:!0}},setup(){const P=h.ref(!1),be=h.inject("accordionsWrapper"),Ae=(()=>{var wt=new Date().getTime();typeof performance<"u"&&typeof performance.now=="function"&&(wt+=performance.now());var Ut="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(yn){var In=(wt+Math.random()*16)%16|0;return wt=Math.floor(wt/16),(yn==="x"?In:In&3|8).toString(16)});return Ut})(),ve={isOpen:P,id:Ae},Q=h.computed(()=>be.accordions.value),Ne=h.computed(()=>Q.value.length>0&&Q.value[0].id===Ae),ee=h.computed(()=>Q.value.length>0&&Q.value[Q.value.length-1].id===Ae);return h.onMounted(()=>{be.registerAccordion(ve)}),h.onUnmounted(()=>{be.unregisterAccordion(ve)}),{isOpen:P,isFirstAccordion:Ne,isLastAccordion:ee,toggle:()=>{be.toggleAccordion(ve)}}}},fee={class:"flex items-center"},gee={key:0,class:"w-3 h-3 rotate-180 shrink-0","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 10 6"},hee=[h.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5 5 1 1 5"},null,-1)],pee={key:1,class:"w-3 h-3 shrink-0","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 10 6"},bee=[h.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5 5 1 1 5"},null,-1)];function yee(P,be,ce,Ae,ve,Q){return h.openBlock(),h.createElementBlock("div",null,[h.createElementVNode("h2",null,[h.createElementVNode("button",{onClick:be[0]||(be[0]=(...Ne)=>Ae.toggle&&Ae.toggle(...Ne)),type:"button",class:h.normalizeClass(["flex items-center justify-between w-full gap-3 p-5 font-medium text-gray-500 border border-gray-200 rtl:text-right dark:border-gray-700 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800",{"rounded-t-xl":Ae.isFirstAccordion,"border-b-0":!Ae.isLastAccordion,"bg-gray-100 dark:bg-gray-800":Ae.isOpen}]),"aria-expanded":"true"},[h.createElementVNode("span",fee,h.toDisplayString(ce.title),1),Ae.isOpen?h.createCommentVNode("",!0):(h.openBlock(),h.createElementBlock("svg",gee,hee)),Ae.isOpen?(h.openBlock(),h.createElementBlock("svg",pee,bee)):h.createCommentVNode("",!0)],2)]),Ae.isOpen?(h.openBlock(),h.createElementBlock("div",{key:0,class:h.normalizeClass([{"border-b-0":!Ae.isLastAccordion,"border-t-0":Ae.isLastAccordion},"p-5 border border-gray-200 dark:border-gray-700 dark:bg-gray-900"])},[h.renderSlot(P.$slots,"default")],2)):h.createCommentVNode("",!0)])}const vee=Qr(mee,[["render",yee]]),wee={class:"flex items-center p-4 text-gray-500 bg-white rounded-lg shadow dark:bg-gray-800 dark:text-gray-400",role:"alert"},xee={key:0,class:"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-green-500 bg-green-100 rounded-lg dark:bg-green-800 dark:text-green-200"},Cee=[h.createElementVNode("svg",{class:"w-5 h-5","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 20"},[h.createElementVNode("path",{d:"M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5Zm3.707 8.207-4 4a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L9 10.586l3.293-3.293a1 1 0 0 1 1.414 1.414Z"})],-1),h.createElementVNode("span",{class:"sr-only"},"Check icon",-1)],See={key:1,class:"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-red-500 bg-red-100 rounded-lg dark:bg-red-800 dark:text-red-200"},kee=[h.createElementVNode("svg",{class:"w-5 h-5","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 20"},[h.createElementVNode("path",{d:"M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5Zm3.707 11.793a1 1 0 1 1-1.414 1.414L10 11.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L8.586 10 6.293 7.707a1 1 0 0 1 1.414-1.414L10 8.586l2.293-2.293a1 1 0 0 1 1.414 1.414L11.414 10l2.293 2.293Z"})],-1),h.createElementVNode("span",{class:"sr-only"},"Error icon",-1)],_ee={key:2,class:"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-orange-500 bg-orange-100 rounded-lg dark:bg-orange-700 dark:text-orange-200"},Eee=[h.createElementVNode("svg",{class:"w-5 h-5","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 20"},[h.createElementVNode("path",{d:"M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM10 15a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm1-4a1 1 0 0 1-2 0V6a1 1 0 0 1 2 0v5Z"})],-1),h.createElementVNode("span",{class:"sr-only"},"Warning icon",-1)],Tee={class:"ml-3 text-sm font-normal"},Aee=[h.createElementVNode("span",{class:"sr-only"},"Close",-1),h.createElementVNode("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[h.createElementVNode("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1)],Nee={__name:"ToastListItem",props:{message:String,duration:{type:Number,default:2e3},type:{type:String,default:"success"}},emits:["remove"],setup(P,{emit:be}){const ce=P;h.onMounted(()=>{setTimeout(()=>Ae("remove"),ce.duration)});const Ae=be;return(ve,Q)=>(h.openBlock(),h.createElementBlock("div",wee,[ce.type==="success"?(h.openBlock(),h.createElementBlock("div",xee,Cee)):h.createCommentVNode("",!0),ce.type==="error"?(h.openBlock(),h.createElementBlock("div",See,kee)):h.createCommentVNode("",!0),ce.type==="warning"?(h.openBlock(),h.createElementBlock("div",_ee,Eee)):h.createCommentVNode("",!0),h.createElementVNode("div",Tee,h.toDisplayString(ce.message),1),h.createElementVNode("button",{onClick:Q[0]||(Q[0]=Ne=>Ae("remove")),type:"button",class:"-mx-1.5 -my-1.5 ml-auto inline-flex h-8 w-8 rounded-lg bg-white p-1.5 text-gray-400 hover:bg-gray-100 hover:text-gray-900 focus:ring-2 focus:ring-gray-300 dark:bg-gray-800 dark:text-gray-500 dark:hover:bg-gray-700 dark:hover:text-white","data-dismiss-target":"#toast-default","aria-label":"Close"},Aee)]))}},Dee={__name:"GlToastList",setup(P){function be(ce){Dx.methods.remove(ce)}return(ce,Ae)=>(h.openBlock(),h.createBlock(h.TransitionGroup,{tag:"div","enter-from-class":"translate-x-full opacity-0","enter-active-class":"duration-500","leave-active-class":"duration-500","leave-to-class":"translate-x-full opacity-0",class:"fixed z-[1060] w-full max-w-xs space-y-4 top-4 right-4"},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(h.unref(Dx).state.items,(ve,Q)=>(h.openBlock(),h.createBlock(Nee,{key:ve.key,message:ve.message,type:ve.type,duration:ve.duration,onRemove:Ne=>be(Q)},null,8,["message","type","duration","onRemove"]))),128))]),_:1}))}},Oee={key:0,class:"flex lg:justify-center"},Bee=[h.createElementVNode("svg",{class:"w-5 h-5","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 4 15"},[h.createElementVNode("path",{d:"M3.5 1.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm0 6.041a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm0 5.959a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z"})],-1)],Ree={class:"absolute z-10 mt-5 origin-top-right bg-white divide-y divide-gray-100 rounded-lg shadow w-44 dark:bg-gray-700 dark:divide-gray-600"},$ee={class:"py-2 text-sm text-gray-700 dark:text-gray-200","aria-labelledby":"dropdownDividerButton"},Mee={key:0},Pee=["href"],Iee=h.createElementVNode("i",{class:"mr-2 fa-solid fa-list-ul opacity-80"},null,-1),Lee={key:1},Fee=h.createElementVNode("i",{class:"mr-2 fa-solid fa-trash-can opacity-80"},null,-1),Vee={__name:"DatatableAction",props:{field:{type:String,default:""},route_url:{type:String,default:""},row:{type:[Array,Object],default:[]},xprops:{type:Object,default:{}},tdProps:{type:Object,default:{}}},emits:["deleteAction"],setup(P,{emit:be}){const ce=P,Ae=h.ref(!1),ve=h.ref(!1),Q=()=>{Ae.value=!1},Ne=()=>{Ae.value=!0},ee=()=>{ve.value=!1},He=()=>{ve.value=!0},wt=be,Ut=()=>{axios.delete(`${ce.xprops.route}/${ce.row.id}`).then(()=>{ee(),wt("deleteAction"),Dx.methods.add({message:"Item deleted successfully.",type:"success",duration:5e3})}).catch(yn=>{console.log(yn)})};return(yn,In)=>{const Lo=h.resolveDirective("click-outside");return h.openBlock(),h.createElementBlock(h.Fragment,null,[h.createVNode(LD,{isOpen:ve.value,onConfirmDelete:Ut,onCancelDelete:ee},null,8,["isOpen"]),P.row&&yn.can(`edit_${P.xprops.permission} || delete_${P.xprops.permission}`)?h.withDirectives((h.openBlock(),h.createElementBlock("div",Oee,[h.createElementVNode("button",{onClick:Ne,class:"inline-flex items-center p-2 text-sm font-medium text-center text-gray-900 bg-white rounded-lg hover:bg-gray-100 focus:ring-4 focus:outline-none dark:text-white focus:ring-gray-50 dark:bg-gray-800 dark:hover:bg-gray-700 dark:focus:ring-gray-600",type:"button"},Bee),h.withDirectives(h.createElementVNode("div",Ree,[h.createElementVNode("ul",$ee,[yn.can(`edit_${P.xprops.permission}`)?(h.openBlock(),h.createElementBlock("li",Mee,[h.createElementVNode("a",{href:P.xprops.route+"/"+P.row.id+"/edit",class:"block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"},[Iee,h.createTextVNode(" Edit")],8,Pee)])):h.createCommentVNode("",!0),yn.can(`delete_${P.xprops.permission}`)?(h.openBlock(),h.createElementBlock("li",Lee,[h.createElementVNode("a",{href:"#",onClick:h.withModifiers(He,["prevent"]),class:"block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"},[Fee,h.createTextVNode(" Remove")])])):h.createCommentVNode("",!0)])],512),[[h.vShow,Ae.value]])])),[[Lo,Q]]):h.createCommentVNode("",!0)],64)}}},Hee={key:0,class:"flex lg:justify-center"},zee=[h.createElementVNode("svg",{class:"w-5 h-5","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 4 15"},[h.createElementVNode("path",{d:"M3.5 1.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm0 6.041a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm0 5.959a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z"})],-1)],Uee={class:"absolute z-10 mt-5 origin-top-right bg-white divide-y divide-gray-100 rounded-lg shadow w-44 dark:bg-gray-700 dark:divide-gray-600"},Wee={class:"py-2 text-sm text-gray-700 dark:text-gray-200","aria-labelledby":"dropdownDividerButton"},Zee={key:0},jee=h.createElementVNode("i",{class:"mr-2 fa-solid fa-trash-can opacity-80"},null,-1),Gee={__name:"DatatableDeleteAction",props:{field:{type:String,default:""},route_url:{type:String,default:""},row:{type:[Array,Object],default:[]},xprops:{type:Object,default:{}},tdProps:{type:Object,default:{}}},emits:["deleteAction"],setup(P,{emit:be}){const ce=P,Ae=h.ref(!1),ve=h.ref(!1),Q=()=>{Ae.value=!1},Ne=()=>{Ae.value=!0},ee=()=>{ve.value=!1},He=()=>{ve.value=!0},wt=be,Ut=()=>{axios.delete(`${ce.xprops.route}/${ce.row.id}`).then(()=>{ee(),wt("deleteAction"),Dx.methods.add({message:"Item deleted successfully.",type:"success",duration:5e3})}).catch(yn=>{console.log(yn)})};return(yn,In)=>{const Lo=h.resolveDirective("click-outside");return h.openBlock(),h.createElementBlock(h.Fragment,null,[h.createVNode(LD,{isOpen:ve.value,onConfirmDelete:Ut,onCancelDelete:ee},null,8,["isOpen"]),P.row&&yn.can(`delete_${P.xprops.permission}`)?h.withDirectives((h.openBlock(),h.createElementBlock("div",Hee,[h.createElementVNode("button",{onClick:Ne,class:"inline-flex items-center p-2 text-sm font-medium text-center text-gray-900 bg-white rounded-lg hover:bg-gray-100 focus:ring-4 focus:outline-none dark:text-white focus:ring-gray-50 dark:bg-gray-800 dark:hover:bg-gray-700 dark:focus:ring-gray-600",type:"button"},zee),h.withDirectives(h.createElementVNode("div",Uee,[h.createElementVNode("ul",Wee,[yn.can(`delete_${P.xprops.permission}`)?(h.openBlock(),h.createElementBlock("li",Zee,[h.createElementVNode("a",{href:"#",onClick:h.withModifiers(He,["prevent"]),class:"block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"},[jee,h.createTextVNode(" Remove")])])):h.createCommentVNode("",!0)])],512),[[h.vShow,Ae.value]])])),[[Lo,Q]]):h.createCommentVNode("",!0)],64)}}},qee={props:["field","row"],computed:{isArray(){return Array.isArray(this.row)},isObject(){return typeof this.row=="object"},isString(){return typeof this.row=="string"}},mounted(){}},Kee=["href","title"],Yee=h.createElementVNode("svg",{class:"w-3 h-3 text-white me-2","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},[h.createElementVNode("path",{"fill-rule":"evenodd",d:"M13 11.15V4a1 1 0 1 0-2 0v7.15L8.78 8.374a1 1 0 1 0-1.56 1.25l4 5a1 1 0 0 0 1.56 0l4-5a1 1 0 1 0-1.56-1.25L13 11.15Z","clip-rule":"evenodd"}),h.createElementVNode("path",{"fill-rule":"evenodd",d:"M9.657 15.874 7.358 13H5a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2h-2.358l-2.3 2.874a3 3 0 0 1-4.685 0ZM17 16a1 1 0 1 0 0 2h.01a1 1 0 1 0 0-2H17Z","clip-rule":"evenodd"})],-1),Xee={key:1,class:"m-1 d-inline-block"},Jee=["href","title"],Qee=h.createElementVNode("svg",{class:"w-3 h-3 text-white me-2","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},[h.createElementVNode("path",{"fill-rule":"evenodd",d:"M13 11.15V4a1 1 0 1 0-2 0v7.15L8.78 8.374a1 1 0 1 0-1.56 1.25l4 5a1 1 0 0 0 1.56 0l4-5a1 1 0 1 0-1.56-1.25L13 11.15Z","clip-rule":"evenodd"}),h.createElementVNode("path",{"fill-rule":"evenodd",d:"M9.657 15.874 7.358 13H5a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2h-2.358l-2.3 2.874a3 3 0 0 1-4.685 0ZM17 16a1 1 0 1 0 0 2h.01a1 1 0 1 0 0-2H17Z","clip-rule":"evenodd"})],-1);function ete(P,be,ce,Ae,ve,Q){return h.openBlock(),h.createElementBlock("div",null,[Q.isArray?(h.openBlock(!0),h.createElementBlock(h.Fragment,{key:0},h.renderList(ce.row,(Ne,ee)=>(h.openBlock(),h.createElementBlock("div",{key:ee,class:"m-1 d-inline-block"},[h.createElementVNode("a",{href:Ne,title:Ne,target:"_blank",class:"inline-flex items-center px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},[Yee,h.createTextVNode(" Download ")],8,Kee)]))),128)):Q.isString?(h.openBlock(),h.createElementBlock("div",Xee,[h.createElementVNode("a",{href:ce.row,title:ce.row,target:"_blank",class:"inline-flex items-center px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},[Qee,h.createTextVNode(" Download ")],8,Jee)])):h.createCommentVNode("",!0)])}const tte=Qr(qee,[["render",ete]]),nte={props:["field","row"],computed:{isArray(){return Array.isArray(this.row[this.field])},isObject(){return typeof this.row[this.field]=="object"}}},ote=["href","title"],ste=h.createElementVNode("svg",{class:"w-3 h-3 text-white me-2","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},[h.createElementVNode("path",{"fill-rule":"evenodd",d:"M13 11.15V4a1 1 0 1 0-2 0v7.15L8.78 8.374a1 1 0 1 0-1.56 1.25l4 5a1 1 0 0 0 1.56 0l4-5a1 1 0 1 0-1.56-1.25L13 11.15Z","clip-rule":"evenodd"}),h.createElementVNode("path",{"fill-rule":"evenodd",d:"M9.657 15.874 7.358 13H5a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2h-2.358l-2.3 2.874a3 3 0 0 1-4.685 0ZM17 16a1 1 0 1 0 0 2h.01a1 1 0 1 0 0-2H17Z","clip-rule":"evenodd"})],-1),rte={key:1,class:"m-1 d-inline-block"},ate=["href","title"],cte=h.createElementVNode("svg",{class:"w-3 h-3 text-white me-2","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},[h.createElementVNode("path",{"fill-rule":"evenodd",d:"M13 11.15V4a1 1 0 1 0-2 0v7.15L8.78 8.374a1 1 0 1 0-1.56 1.25l4 5a1 1 0 0 0 1.56 0l4-5a1 1 0 1 0-1.56-1.25L13 11.15Z","clip-rule":"evenodd"}),h.createElementVNode("path",{"fill-rule":"evenodd",d:"M9.657 15.874 7.358 13H5a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2h-2.358l-2.3 2.874a3 3 0 0 1-4.685 0ZM17 16a1 1 0 1 0 0 2h.01a1 1 0 1 0 0-2H17Z","clip-rule":"evenodd"})],-1);function lte(P,be,ce,Ae,ve,Q){return h.openBlock(),h.createElementBlock("div",null,[Q.isArray?(h.openBlock(!0),h.createElementBlock(h.Fragment,{key:0},h.renderList(ce.row[ce.field],Ne=>(h.openBlock(),h.createElementBlock("div",{key:Ne.id,class:"m-1 d-inline-block"},[h.createElementVNode("a",{href:Ne.url,title:Ne.name,target:"_blank",class:"inline-flex items-center px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},[ste,h.createTextVNode(" Download ")],8,ote)]))),128)):Q.isObject?(h.openBlock(),h.createElementBlock("div",rte,[h.createElementVNode("a",{href:ce.row[ce.field].url,title:ce.row[ce.field].name,target:"_blank",class:"inline-flex items-center px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},[cte,h.createTextVNode(" Download ")],8,ate)])):h.createCommentVNode("",!0)])}const ite=Qr(nte,[["render",lte]]),ute={props:["field","row","tdProps"]},dte={key:0},mte=["innerHTML"];function fte(P,be,ce,Ae,ve,Q){return ce.row[ce.field]?(h.openBlock(),h.createElementBlock("div",dte,[h.createElementVNode("div",{class:"w-full",innerHTML:ce.row[ce.field]},null,8,mte)])):h.createCommentVNode("",!0)}const gte=Qr(ute,[["render",fte]]),hte={props:["field","row","tdProps"],computed:{entry(){const[P,be]=this.field.split(".");return h.markRaw({key:P,field:be})},isArray(){return Array.isArray(this.row[this.entry.key])},isObject(){return typeof this.row[this.entry.key]=="object"}}},pte={class:"flex flex-wrap gap-2"},bte={key:1,class:"px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded dark:bg-blue-900 dark:text-blue-300"};function yte(P,be,ce,Ae,ve,Q){return h.openBlock(),h.createElementBlock("div",pte,[Q.isArray?(h.openBlock(!0),h.createElementBlock(h.Fragment,{key:0},h.renderList(ce.row[Q.entry.key],(Ne,ee)=>(h.openBlock(),h.createElementBlock("span",{key:ee,class:"px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded dark:bg-blue-900 dark:text-blue-300"},h.toDisplayString(Ne[Q.entry.field]),1))),128)):Q.isObject?(h.openBlock(),h.createElementBlock("span",bte,h.toDisplayString(ce.row[Q.entry.key][Q.entry.field]),1)):h.createCommentVNode("",!0)])}const vte=Qr(hte,[["render",yte]]),wte={props:["field","row","tdProps"],computed:{entry(){const P=this.field.split("."),be=P.pop();return{keys:P,field:be}},isArray(){return Array.isArray(this.getNestedValue(this.row,this.entry.keys))},isObject(){return typeof this.getNestedValue(this.row,this.entry.keys)=="object"}},methods:{getNestedValue(P,be){return be.reduce((ce,Ae)=>(ce||{})[Ae],P)}}},xte={class:"flex flex-wrap gap-2"},Cte={key:1,class:"px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded dark:bg-blue-900 dark:text-blue-300"};function Ste(P,be,ce,Ae,ve,Q){return h.openBlock(),h.createElementBlock("div",xte,[Q.isArray?(h.openBlock(!0),h.createElementBlock(h.Fragment,{key:0},h.renderList(Q.getNestedValue(ce.row,Q.entry.keys),(Ne,ee)=>(h.openBlock(),h.createElementBlock("span",{key:ee,class:"px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded dark:bg-blue-900 dark:text-blue-300"},h.toDisplayString(Ne[Q.entry.field]),1))),128)):Q.isObject?(h.openBlock(),h.createElementBlock("span",Cte,h.toDisplayString(Q.getNestedValue(ce.row,Q.entry.keys)[Q.entry.field]),1)):h.createCommentVNode("",!0)])}const kte=Qr(wte,[["render",Ste]]),_te={props:["field","row","tdProps"]},Ete={key:0},Tte={class:"m-1 d-inline-block"},Ate=["href","title"],Nte=["src","alt","title"];function Dte(P,be,ce,Ae,ve,Q){return ce.row[ce.field]?(h.openBlock(),h.createElementBlock("div",Ete,[h.createElementVNode("div",Tte,[h.createElementVNode("a",{href:ce.row[ce.field].url,title:ce.row[ce.field].name,target:"_blank"},[h.createElementVNode("img",{src:ce.row[ce.field].thumbnail,alt:ce.row[ce.field].name,title:ce.row[ce.field].name},null,8,Nte)],8,Ate)])])):h.createCommentVNode("",!0)}const Ote=Qr(_te,[["render",Dte],["__scopeId","data-v-3a28c02c"]]),Bte={props:["field","row","tdProps"],computed:{isActive(){return this.row[this.field]===1}}},Rte={class:"flex flex-wrap gap-2 text-nowrap"},$te={key:0,class:"inline-flex items-center px-2 py-1 text-xs font-medium text-green-800 bg-green-100 rounded-full dark:bg-green-900 dark:text-green-300"},Mte=h.createElementVNode("span",{class:"w-2 h-2 bg-green-500 rounded-full me-1"},null,-1),Pte={key:1,class:"inline-flex items-center px-2 py-1 bg-red-100 text-red-800 text-xs font-medium rounded-full dark:bg-red-900 dark:text-red-300"},Ite=h.createElementVNode("span",{class:"w-2 h-2 bg-red-500 rounded-full me-1"},null,-1);function Lte(P,be,ce,Ae,ve,Q){return h.openBlock(),h.createElementBlock("div",Rte,[Q.isActive?(h.openBlock(),h.createElementBlock("span",$te,[Mte,h.createTextVNode(" Active ")])):Q.isActive?h.createCommentVNode("",!0):(h.openBlock(),h.createElementBlock("span",Pte,[Ite,h.createTextVNode(" Inactive ")]))])}const Fte=Qr(Bte,[["render",Lte]]),Vte={props:["field","row","tdProps"],computed:{hasLabelColor(P){const be=this.tdProps.status_general_labels_color.find(ce=>ce.label===this.row[this.field]);return be?be.class:""}}},Hte={class:"flex flex-wrap gap-2 text-nowrap"},zte={key:0,class:"inline-flex items-center px-2 py-1 text-xs font-medium text-green-800 bg-green-100 rounded-full dark:bg-green-900 dark:text-green-300"},Ute=h.createElementVNode("span",{class:"w-2 h-2 bg-green-500 rounded-full me-1"},null,-1),Wte={key:1,class:"inline-flex items-center px-2 py-1 text-xs font-medium text-red-800 bg-red-100 rounded-full dark:bg-red-900 dark:text-red-300"},Zte=h.createElementVNode("span",{class:"w-2 h-2 bg-red-500 rounded-full me-1"},null,-1),jte={key:2,class:"inline-flex items-center px-2 py-1 text-xs font-medium text-yellow-800 bg-yellow-100 rounded-full dark:bg-gray-700 dark:text-yellow-300"},Gte=h.createElementVNode("span",{class:"w-2 h-2 bg-yellow-500 rounded-full me-1"},null,-1),qte={key:3,class:"inline-flex items-center px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded-full dark:bg-gray-700 dark:text-blue-400"},Kte=h.createElementVNode("span",{class:"w-2 h-2 bg-blue-500 rounded-full me-1"},null,-1),Yte={key:4,class:"inline-flex items-center px-2 py-1 text-sm text-blue-800 bg-blue-100 rounded-full dark:bg-blue-900 dark:text-blue-300"},Xte=h.createElementVNode("span",{class:"relative flex w-2 h-2 mr-1"},[h.createElementVNode("span",{class:"absolute inline-flex w-full h-full bg-blue-500 rounded-full animate-ping"}),h.createElementVNode("span",{class:"relative inline-flex w-2 h-2 bg-blue-500 rounded-full"})],-1);function Jte(P,be,ce,Ae,ve,Q){return h.openBlock(),h.createElementBlock("div",Hte,[Q.hasLabelColor=="green"?(h.openBlock(),h.createElementBlock("span",zte,[Ute,h.createTextVNode(" "+h.toDisplayString(this.row[this.field]),1)])):h.createCommentVNode("",!0),Q.hasLabelColor=="red"?(h.openBlock(),h.createElementBlock("span",Wte,[Zte,h.createTextVNode(" "+h.toDisplayString(this.row[this.field]),1)])):h.createCommentVNode("",!0),Q.hasLabelColor=="yellow"?(h.openBlock(),h.createElementBlock("span",jte,[Gte,h.createTextVNode(" "+h.toDisplayString(this.row[this.field]),1)])):h.createCommentVNode("",!0),Q.hasLabelColor=="default"?(h.openBlock(),h.createElementBlock("span",qte,[Kte,h.createTextVNode(" "+h.toDisplayString(this.row[this.field]),1)])):h.createCommentVNode("",!0),Q.hasLabelColor=="animate"?(h.openBlock(),h.createElementBlock("span",Yte,[Xte,h.createTextVNode(" "+h.toDisplayString(this.row[this.field]),1)])):h.createCommentVNode("",!0)])}const Qte=Qr(Vte,[["render",Jte]]),ene={props:["field","row","tdProps"],computed:{hasLabelColor(){return this.tdProps.specfic_color??""},badgeType(){switch(this.tdProps.badge_type){case"Default":return"rounded text-xs";case"Large":return"rounded text-sm ";case"Bordered":return"rounded text-xs border";case"Pills":return"rounded-full text-xs";default:return""}}}},tne={class:"flex flex-wrap gap-2 text-nowrap lg:justify-center"};function nne(P,be,ce,Ae,ve,Q){return h.openBlock(),h.createElementBlock("div",tne,[Q.hasLabelColor=="Default"?(h.openBlock(),h.createElementBlock("span",{key:0,class:h.normalizeClass(["bg-blue-100 text-blue-800 font-medium me-2 px-2.5 py-0.5 dark:bg-blue-900 dark:text-blue-300 border-blue-400",Q.badgeType])},h.toDisplayString(this.row[this.field]),3)):h.createCommentVNode("",!0),Q.hasLabelColor=="Dark"?(h.openBlock(),h.createElementBlock("span",{key:1,class:h.normalizeClass(["bg-gray-100 text-gray-800 font-medium me-2 px-2.5 py-0.5 dark:bg-gray-700 dark:text-gray-300 border-gray-500",Q.badgeType])},h.toDisplayString(this.row[this.field]),3)):h.createCommentVNode("",!0),Q.hasLabelColor=="Red"?(h.openBlock(),h.createElementBlock("span",{key:2,class:h.normalizeClass(["bg-red-100 text-red-800 font-medium me-2 px-2.5 py-0.5 dark:bg-red-900 dark:text-red-300 border-red-400",Q.badgeType])},h.toDisplayString(this.row[this.field]),3)):h.createCommentVNode("",!0),Q.hasLabelColor=="Green"?(h.openBlock(),h.createElementBlock("span",{key:3,class:h.normalizeClass(["bg-green-100 text-green-800 font-medium me-2 px-2.5 py-0.5 dark:bg-green-900 dark:text-green-300 border-green-400",Q.badgeType])},h.toDisplayString(this.row[this.field]),3)):h.createCommentVNode("",!0),Q.hasLabelColor=="Yellow"?(h.openBlock(),h.createElementBlock("span",{key:4,class:h.normalizeClass(["bg-yellow-100 text-yellow-800 font-medium me-2 px-2.5 py-0.5 dark:bg-yellow-900 dark:text-yellow-300 border-yellow-300",Q.badgeType])},h.toDisplayString(this.row[this.field]),3)):h.createCommentVNode("",!0),Q.hasLabelColor=="Indigo"?(h.openBlock(),h.createElementBlock("span",{key:5,class:h.normalizeClass(["bg-indigo-100 text-indigo-800 font-medium me-2 px-2.5 py-0.5 dark:bg-indigo-900 dark:text-indigo-300 border-indigo-400",Q.badgeType])},h.toDisplayString(this.row[this.field]),3)):h.createCommentVNode("",!0),Q.hasLabelColor=="Purple"?(h.openBlock(),h.createElementBlock("span",{key:6,class:h.normalizeClass(["bg-purple-100 text-purple-800 font-medium me-2 px-2.5 py-0.5 dark:bg-purple-900 dark:text-purple-300 border-purple-400",Q.badgeType])},h.toDisplayString(this.row[this.field]),3)):h.createCommentVNode("",!0),Q.hasLabelColor=="Pink"?(h.openBlock(),h.createElementBlock("span",{key:7,class:h.normalizeClass(["bg-pink-100 text-pink-800 font-medium me-2 px-2.5 py-0.5 dark:bg-pink-900 dark:text-pink-300 border-pink-400",Q.badgeType])},h.toDisplayString(this.row[this.field]),3)):h.createCommentVNode("",!0)])}const one=Qr(ene,[["render",nne]]),sne={props:["field","row","tdProps"],computed:{hasLabelColor(P){const be=this.tdProps.status_general_labels_color.find(ce=>ce.text===this.row[this.field]);return be?be.class:""},getLabel(){const P=this.tdProps.status_general_labels_color.find(be=>be.text===this.row[this.field]);return P?P.label:""}}},rne={class:"flex flex-wrap gap-2 text-nowrap"},ane={key:0,class:"inline-flex items-center px-2 py-1 text-xs font-medium text-green-800 bg-green-100 rounded-full dark:bg-green-900 dark:text-green-300"},cne=h.createElementVNode("span",{class:"w-2 h-2 bg-green-500 rounded-full me-1"},null,-1),lne={key:1,class:"inline-flex items-center px-2 py-1 text-xs font-medium text-red-800 bg-red-100 rounded-full dark:bg-red-900 dark:text-red-300"},ine=h.createElementVNode("span",{class:"w-2 h-2 bg-red-500 rounded-full me-1"},null,-1),une={key:2,class:"inline-flex items-center px-2 py-1 text-xs font-medium text-yellow-800 bg-yellow-100 rounded-full dark:bg-gray-700 dark:text-yellow-300"},dne=h.createElementVNode("span",{class:"w-2 h-2 bg-yellow-500 rounded-full me-1"},null,-1),mne={key:3,class:"inline-flex items-center px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded-full dark:bg-gray-700 dark:text-blue-400"},fne=h.createElementVNode("span",{class:"w-2 h-2 bg-blue-500 rounded-full me-1"},null,-1),gne={key:4,class:"inline-flex items-center px-2 py-1 text-sm text-blue-800 bg-blue-100 rounded-full dark:bg-blue-900 dark:text-blue-300"},hne=h.createElementVNode("span",{class:"relative flex w-2 h-2 mr-1"},[h.createElementVNode("span",{class:"absolute inline-flex w-full h-full bg-blue-500 rounded-full animate-ping"}),h.createElementVNode("span",{class:"relative inline-flex w-2 h-2 bg-blue-500 rounded-full"})],-1);function pne(P,be,ce,Ae,ve,Q){return h.openBlock(),h.createElementBlock("div",rne,[Q.hasLabelColor=="green"?(h.openBlock(),h.createElementBlock("span",ane,[cne,h.createTextVNode(" "+h.toDisplayString(Q.getLabel),1)])):h.createCommentVNode("",!0),Q.hasLabelColor=="red"?(h.openBlock(),h.createElementBlock("span",lne,[ine,h.createTextVNode(" "+h.toDisplayString(Q.getLabel),1)])):h.createCommentVNode("",!0),Q.hasLabelColor=="yellow"?(h.openBlock(),h.createElementBlock("span",une,[dne,h.createTextVNode(" "+h.toDisplayString(Q.getLabel),1)])):h.createCommentVNode("",!0),Q.hasLabelColor=="default"?(h.openBlock(),h.createElementBlock("span",mne,[fne,h.createTextVNode(" "+h.toDisplayString(Q.getLabel),1)])):h.createCommentVNode("",!0),Q.hasLabelColor=="animate"?(h.openBlock(),h.createElementBlock("span",gne,[hne,h.createTextVNode(" "+h.toDisplayString(Q.getLabel),1)])):h.createCommentVNode("",!0)])}const bne=Qr(sne,[["render",pne]]),yne={props:["field","row","tdProps"],computed:{formattedDate(){if(!this.row[this.field])return"";const P=new Date(this.row[this.field]),be=P.getFullYear(),ce=P.toLocaleString("default",{month:"long"}),Ae=P.getDate();let ve=P.getHours();const Q=P.getMinutes(),Ne=P.getSeconds(),ee=ve>=12?"pm":"am";return ve=ve%12,ve=ve||12,`${ce} ${Ae}, ${be}, ${ve}:${Q}:${Ne} ${ee}`},isActive(){return this.row[this.field]===1}}},vne={class:"w-full"};function wne(P,be,ce,Ae,ve,Q){return h.openBlock(),h.createElementBlock("div",vne,h.toDisplayString(Q.formattedDate),1)}const xne=Qr(yne,[["render",wne]]),Cne={props:["field","row","tdProps"]},Sne={class:"flex flex-wrap gap-2 text-nowrap"},kne={key:0,class:"inline-flex items-center px-2 py-1 text-sm text-blue-800 bg-blue-100 rounded-full dark:bg-blue-900 dark:text-blue-300"},_ne=h.createElementVNode("span",{class:"relative flex w-2 h-2 mr-1"},[h.createElementVNode("span",{class:"absolute inline-flex w-full h-full bg-blue-500 rounded-full animate-ping"}),h.createElementVNode("span",{class:"relative inline-flex w-2 h-2 bg-blue-500 rounded-full"})],-1),Ene={key:1,class:"inline-flex items-center px-2 py-1 text-xs font-medium text-yellow-800 bg-yellow-100 rounded-full dark:bg-gray-700 dark:text-yellow-300"},Tne=h.createElementVNode("span",{class:"w-2 h-2 bg-yellow-500 rounded-full me-1"},null,-1),Ane={key:2,class:"inline-flex items-center px-2 py-1 text-xs font-medium text-green-800 bg-green-100 rounded-full dark:bg-green-900 dark:text-green-300"},Nne=h.createElementVNode("span",{class:"w-2 h-2 bg-green-500 rounded-full me-1"},null,-1);function Dne(P,be,ce,Ae,ve,Q){return h.openBlock(),h.createElementBlock("div",Sne,[ce.row[ce.field]===0?(h.openBlock(),h.createElementBlock("span",kne,[_ne,h.createTextVNode(" Provisioning")])):h.createCommentVNode("",!0),ce.row[ce.field]===2?(h.openBlock(),h.createElementBlock("span",Ene,[Tne,h.createTextVNode(" Paused ")])):h.createCommentVNode("",!0),ce.row[ce.field]===1?(h.openBlock(),h.createElementBlock("span",Ane,[Nne,h.createTextVNode(" Active ")])):h.createCommentVNode("",!0)])}const One=Qr(Cne,[["render",Dne]]),Bne={props:["field","row","tdProps"]},Rne={key:0,class:"text-nowrap"},$ne={style:{"max-width":"200px"},class:"w-full h-full p-3 mx-0 mt-0 overflow-auto font-mono text-left break-words rounded cursor-default whitespace-nowrap console_styles"};function Mne(P,be,ce,Ae,ve,Q){return ce.row[ce.field]?(h.openBlock(),h.createElementBlock("div",Rne,[h.createElementVNode("pre",$ne," "+h.toDisplayString(ce.row[ce.field])+`
90
- `,1)])):h.createCommentVNode("",!0)}const Pne=Qr(Bne,[["render",Mne]]),Ine={props:["isOpen","title","button_text"],methods:{confirmAction(){this.$emit("confirm-action")},cancelAction(){this.$emit("cancel-action")}}},Lne={key:0,class:"fixed inset-0 z-50 overflow-y-auto",role:"dialog","aria-modal":"true"},Fne={class:"flex items-end justify-center min-h-screen px-4 pt-4 pb-20 text-center sm:block sm:p-0"},Vne=h.createElementVNode("div",{class:"fixed inset-0 transition-opacity bg-gray-500 bg-opacity-75","aria-hidden":"true"},null,-1),Hne=h.createElementVNode("span",{class:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true"},"​",-1),zne={class:"inline-block overflow-hidden text-left align-bottom transition-all transform bg-white dark:bg-gray-800 rounded-lg shadow-xl sm:my-8 sm:align-middle sm:max-w-lg sm:w-full"},Une={class:"px-4 pt-5 pb-4 sm:p-6 sm:pb-4"},Wne={class:"sm:flex sm:items-start"},Zne={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"},jne={class:"text-lg font-medium leading-6"},Gne={class:"mt-2"},qne={class:"border-t border-gray-200 rounded-b dark:border-gray-600 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse"};function Kne(P,be,ce,Ae,ve,Q){return ce.isOpen?(h.openBlock(),h.createElementBlock("div",Lne,[h.createElementVNode("div",Fne,[Vne,Hne,h.createElementVNode("div",zne,[h.createElementVNode("div",Une,[h.createElementVNode("div",Wne,[h.createElementVNode("div",Zne,[h.createElementVNode("h3",jne,h.toDisplayString(ce.title),1),h.createElementVNode("div",Gne,[h.renderSlot(P.$slots,"default")])])])]),h.createElementVNode("div",qne,[h.createElementVNode("button",{onClick:be[0]||(be[0]=(...Ne)=>Q.confirmAction&&Q.confirmAction(...Ne)),type:"button",class:"inline-flex justify-center w-full px-4 py-2 text-base font-medium text-white bg-red-600 border border-transparent rounded-md shadow-sm hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm"},h.toDisplayString(ce.button_text),1),h.createElementVNode("button",{onClick:be[1]||(be[1]=(...Ne)=>Q.cancelAction&&Q.cancelAction(...Ne)),type:"button",class:"inline-flex justify-center w-full px-4 py-2 mt-3 text-base font-medium text-gray-700 bg-white border border-gray-300 rounded-md shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"}," Cancel ")])])])])):h.createCommentVNode("",!0)}const Yne=Qr(Ine,[["render",Kne]]),Xne={key:0,class:"fixed inset-0 z-50 overflow-y-auto",role:"dialog","aria-modal":"true"},Jne={class:"flex items-end justify-center min-h-screen px-4 pt-4 pb-20 text-center sm:block sm:p-0"},Qne=h.createElementVNode("div",{class:"fixed inset-0 transition-opacity bg-gray-500 bg-opacity-75","aria-hidden":"true"},null,-1),eoe=h.createElementVNode("span",{class:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true"},"​",-1),toe={class:"inline-block overflow-hidden text-left align-bottom transition-all transform bg-white dark:bg-gray-800 rounded-lg shadow-xl sm:my-8 sm:align-middle sm:max-w-lg sm:w-full"},noe={class:"px-4 pt-5 pb-4 sm:p-6 sm:pb-4"},ooe={class:"sm:flex sm:items-start"},soe={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"},roe={class:"text-lg font-medium leading-6"},aoe={class:"mt-2"},coe={class:"text-sm"},loe={class:"border-t border-gray-200 rounded-b dark:border-gray-600 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse"},ioe={__name:"DynamicConfirmation",props:{is_open:{type:Boolean,default:!1}},setup(P,{expose:be}){const ce=h.ref(""),Ae=h.ref(""),ve=h.ref(""),Q=h.ref("Cancel"),Ne=h.ref(!1),ee=h.ref(void 0),He=h.ref(void 0),wt=(In={})=>(ce.value=In.title,Ae.value=In.message,ve.value=In.okButton,In.cancelButton&&(Q.value=In.cancelButton),Ne.value=!0,new Promise((Lo,nr)=>{ee.value=Lo,He.value=nr})),Ut=()=>{Ne.value=!1,ee.value(!0)},yn=()=>{Ne.value=!1,ee.value(!1)};return be({show:wt}),(In,Lo)=>Ne.value?(h.openBlock(),h.createElementBlock("div",Xne,[h.createElementVNode("div",Jne,[Qne,eoe,h.createElementVNode("div",toe,[h.createElementVNode("div",noe,[h.createElementVNode("div",ooe,[h.createElementVNode("div",soe,[h.createElementVNode("h3",roe,h.toDisplayString(ce.value),1),h.createElementVNode("div",aoe,[h.createElementVNode("p",coe,h.toDisplayString(Ae.value),1)])])])]),h.createElementVNode("div",loe,[h.createElementVNode("button",{onClick:Ut,type:"button",class:"inline-flex justify-center w-full px-4 py-2 text-base font-medium text-white bg-red-600 border border-transparent rounded-md shadow-sm hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm"},h.toDisplayString(ve.value),1),h.createElementVNode("button",{onClick:yn,type:"button",class:"inline-flex justify-center w-full px-4 py-2 mt-3 text-base font-medium text-gray-700 bg-white border border-gray-300 rounded-md shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"},h.toDisplayString(Q.value),1)])])])])):h.createCommentVNode("",!0)}},uoe={class:"w-full"},doe={class:"mb-2 flex justify-between items-center"},moe={class:"text-sm font-medium text-gray-900 dark:text-white"},foe={class:"relative bg-gray-50 rounded-lg dark:bg-gray-700 p-4 h-auto"},goe={class:"overflow-auto max-h-32"},hoe={class:"text-sm text-gray-500 dark:text-gray-400"},poe={class:"absolute top-2 end-2 bg-gray-50 dark:bg-gray-700"},boe={key:0,class:"inline-flex items-center"},yoe=[h.createElementVNode("svg",{class:"w-3 h-3 me-2","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 18 20"},[h.createElementVNode("path",{d:"M16 1h-3.278A1.992 1.992 0 0 0 11 0H7a1.993 1.993 0 0 0-1.722 1H2a2 2 0 0 0-2 2v15a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2Zm-3 14H5a1 1 0 0 1 0-2h8a1 1 0 0 1 0 2Zm0-4H5a1 1 0 0 1 0-2h8a1 1 0 1 1 0 2Zm0-5H5a1 1 0 0 1 0-2h2V2h4v2h2a1 1 0 1 1 0 2Z"})],-1),h.createElementVNode("span",{class:"text-xs font-semibold"},"Copy",-1)],voe={key:1,class:"inline-flex items-center"},woe=[h.createElementVNode("svg",{class:"w-3 h-3 text-blue-700 dark:text-blue-500 me-2","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 12"},[h.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M1 5.917 5.724 10.5 15 1.5"})],-1),h.createElementVNode("span",{class:"text-xs font-semibold text-blue-700 dark:text-blue-500"},"Copied",-1)],xoe={class:"mt-2 text-sm text-gray-500 dark:text-gray-400"},Coe={__name:"GlCodeCopy",props:{label_name:{type:String,default:""},code:{type:String,default:""},description:{type:String,default:""}},setup(P){const be=P,ce=h.ref(!1),Ae=Q=>{navigator.clipboard.writeText(Q).then(function(){ce.value=!0,setTimeout(()=>{ce.value=!1},2e3)}).catch(function(Ne){console.error("Error copying to clipboard: ",Ne)})},ve=h.computed(()=>be.code);return(Q,Ne)=>(h.openBlock(),h.createElementBlock("div",uoe,[h.createElementVNode("div",doe,[h.createElementVNode("p",moe,h.toDisplayString(P.label_name),1)]),h.createElementVNode("div",foe,[h.createElementVNode("div",goe,[h.createElementVNode("code",hoe,h.toDisplayString(ve.value),1)]),h.createElementVNode("div",poe,[h.createElementVNode("button",{onClick:Ne[0]||(Ne[0]=ee=>Ae(ve.value)),class:"text-gray-900 dark:text-gray-400 m-1 hover:bg-gray-100 dark:bg-gray-800 dark:border-gray-600 dark:hover:bg-gray-700 rounded-lg py-2 px-3 inline-flex items-center justify-center bg-white border-gray-200 border"},[ce.value?h.createCommentVNode("",!0):(h.openBlock(),h.createElementBlock("span",boe,yoe)),ce.value?(h.openBlock(),h.createElementBlock("span",voe,woe)):h.createCommentVNode("",!0)])])]),h.createElementVNode("p",xoe,h.toDisplayString(P.description),1)]))}},Soe={class:"w-full"},koe={class:"flex justify-between items-center"},_oe={class:"gl-label-form"},Eoe={class:"flex items-center"},Toe={class:"flex-shrink-0 z-10 inline-flex items-center p-2 text-sm font-medium text-center text-gray-900 bg-gray-100 border border-gray-300 rounded-s-lg dark:bg-gray-600 dark:text-white dark:border-gray-600"},Aoe={class:"relative w-full"},Noe=["value"],Doe={key:0},Ooe=[h.createElementVNode("svg",{class:"w-4 h-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 18 20"},[h.createElementVNode("path",{d:"M16 1h-3.278A1.992 1.992 0 0 0 11 0H7a1.993 1.993 0 0 0-1.722 1H2a2 2 0 0 0-2 2v15a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2Zm-3 14H5a1 1 0 0 1 0-2h8a1 1 0 0 1 0 2Zm0-4H5a1 1 0 0 1 0-2h8a1 1 0 1 1 0 2Zm0-5H5a1 1 0 0 1 0-2h2V2h4v2h2a1 1 0 1 1 0 2Z"})],-1)],Boe={key:1,class:"inline-flex items-center"},Roe=[h.createElementVNode("svg",{class:"w-4 h-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 12"},[h.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M1 5.917 5.724 10.5 15 1.5"})],-1)],$oe={class:"mt-2 text-sm text-gray-500 dark:text-gray-400"},Moe={__name:"GlTextCopy",props:{label_name:{type:String,default:""},text_name:{type:String,default:""},code:{type:String,default:""},description:{type:String,default:""}},setup(P){const be=P,ce=h.ref(!1),Ae=Q=>{navigator.clipboard.writeText(Q).then(function(){ce.value=!0,setTimeout(()=>{ce.value=!1},2e3)}).catch(function(Ne){console.error("Error copying to clipboard: ",Ne)})},ve=h.computed(()=>be.code);return(Q,Ne)=>(h.openBlock(),h.createElementBlock("div",Soe,[h.createElementVNode("div",koe,[h.createElementVNode("label",_oe,h.toDisplayString(P.label_name),1)]),h.createElementVNode("div",Eoe,[h.createElementVNode("span",Toe,h.toDisplayString(P.text_name),1),h.createElementVNode("div",Aoe,[h.createElementVNode("input",{type:"text","aria-describedby":"helper-text-explanation",class:"bg-gray-50 border border-e-0 border-gray-300 text-gray-500 dark:text-gray-400 text-sm border-s-0 focus:ring-blue-500 focus:border-blue-500 block w-full p-2 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500",value:ve.value,readonly:"",disabled:""},null,8,Noe)]),h.createElementVNode("button",{style:{padding:".61rem"},onClick:Ne[0]||(Ne[0]=ee=>Ae(ve.value)),class:"flex-shrink-0 z-10 inline-flex items-center px-4 text-sm font-medium text-center text-white bg-blue-700 rounded-e-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800 border border-blue-700 dark:border-blue-600 hover:border-blue-800 dark:hover:border-blue-700",type:"button"},[ce.value?h.createCommentVNode("",!0):(h.openBlock(),h.createElementBlock("span",Doe,Ooe)),ce.value?(h.openBlock(),h.createElementBlock("span",Boe,Roe)):h.createCommentVNode("",!0)])]),h.createElementVNode("p",$oe,h.toDisplayString(P.description),1)]))}},Poe={class:"flex flex-wrap gap-2 text-nowrap"},Ioe={key:0,class:"inline-flex items-center px-2 py-1 text-sm text-blue-800 bg-blue-100 rounded-full dark:bg-blue-900 dark:text-blue-300"},Loe=h.createElementVNode("span",{class:"relative flex w-2 h-2 mr-1"},[h.createElementVNode("span",{class:"absolute inline-flex w-full h-full bg-blue-500 rounded-full animate-ping"}),h.createElementVNode("span",{class:"relative inline-flex w-2 h-2 bg-blue-500 rounded-full"})],-1),Foe={key:1,class:"inline-flex items-center px-2 py-1 text-xs font-medium text-green-800 bg-green-100 rounded-full dark:bg-green-900 dark:text-green-300"},Voe=h.createElementVNode("span",{class:"w-2 h-2 bg-green-500 rounded-full me-1"},null,-1),Hoe={key:2,class:"inline-flex items-center px-2 py-1 bg-red-100 text-red-800 text-xs font-medium rounded-full dark:bg-red-900 dark:text-red-300"},zoe=h.createElementVNode("span",{class:"w-2 h-2 bg-red-500 rounded-full me-1"},null,-1),Uoe={__name:"StatusRunningSuccessFailed",props:{status:{type:Number,default:!1}},setup(P){return(be,ce)=>(h.openBlock(),h.createElementBlock("div",Poe,[P.status===0?(h.openBlock(),h.createElementBlock("span",Ioe,[Loe,h.createTextVNode(" Running")])):h.createCommentVNode("",!0),P.status===1?(h.openBlock(),h.createElementBlock("span",Foe,[Voe,h.createTextVNode(" Success ")])):h.createCommentVNode("",!0),P.status===2?(h.openBlock(),h.createElementBlock("span",Hoe,[zoe,h.createTextVNode(" Failed ")])):h.createCommentVNode("",!0)]))}},Woe={class:"flex flex-wrap gap-2 text-nowrap"},Zoe={key:0,class:"inline-flex items-center px-2 py-1 text-sm text-blue-800 bg-blue-100 rounded-full dark:bg-blue-900 dark:text-blue-300"},joe=h.createElementVNode("span",{class:"relative flex w-2 h-2 mr-1"},[h.createElementVNode("span",{class:"absolute inline-flex w-full h-full bg-blue-500 rounded-full animate-ping"}),h.createElementVNode("span",{class:"relative inline-flex w-2 h-2 bg-blue-500 rounded-full"})],-1),Goe={key:1,class:"inline-flex items-center px-2 py-1 text-xs font-medium text-green-800 bg-green-100 rounded-full dark:bg-green-900 dark:text-green-300"},qoe=h.createElementVNode("span",{class:"w-2 h-2 bg-green-500 rounded-full me-1"},null,-1),Koe={key:2,class:"inline-flex items-center px-2 py-1 bg-red-100 text-red-800 text-xs font-medium rounded-full dark:bg-red-900 dark:text-red-300"},Yoe=h.createElementVNode("span",{class:"w-2 h-2 bg-red-500 rounded-full me-1"},null,-1),Xoe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",class:"w-5 h-5",style:{"animation-direction":"reverse"}},Joe=[h.createElementVNode("path",{"fill-rule":"evenodd",d:"M10 1.425c.002-.113-.044-.222-.125-.3L9.708.958C9.63.879 9.523.835 9.412.835s-.218.044-.296.123L6.163 3.9c-.16.165-.16.427 0 .592l2.953 2.942c.078.079.185.123.296.123s.218-.044.296-.123l.167-.167c.081-.078.127-.187.125-.3V5c2.764 0 5.005 2.239 5.005 5 0 .808-.197 1.603-.575 2.317-.086.162-.056.362.075.492l.609.608c.092.091.222.134.35.117s.241-.091.309-.2a6.66 6.66 0 0 0 .002-6.664C14.584 4.607 12.383 3.336 10 3.333V1.425zm.588 11.018c.111 0 .218.044.296.123l2.953 2.942c.16.165.16.427 0 .592l-2.953 2.942c-.078.079-.185.123-.296.123s-.218-.044-.296-.123l-.167-.167c-.082-.078-.127-.187-.125-.3v-1.908c-2.383-.002-4.584-1.274-5.774-3.336a6.66 6.66 0 0 1 .002-6.664c.064-.115.178-.195.309-.217s.258.025.35.117l.617.617c.128.131.159.329.075.492-.386.714-.587 1.513-.584 2.325 0 2.761 2.241 5 5.005 5v-1.967c-.002-.113.044-.222.125-.3l.167-.167c.078-.079.185-.123.296-.123z",fill:"currentColor"},null,-1)],Qoe={__name:"StatusConnectingConnectedDisconnected",props:{status:{type:Number,default:!1}},emits:["reconnect"],setup(P,{emit:be}){const ce=be,Ae=()=>{ce("reconnect")};return(ve,Q)=>(h.openBlock(),h.createElementBlock("div",Woe,[P.status===0?(h.openBlock(),h.createElementBlock("span",Zoe,[joe,h.createTextVNode(" Connecting")])):h.createCommentVNode("",!0),P.status===1?(h.openBlock(),h.createElementBlock("span",Goe,[qoe,h.createTextVNode(" Connected ")])):h.createCommentVNode("",!0),P.status===2?(h.openBlock(),h.createElementBlock("span",Koe,[Yoe,h.createTextVNode(" Disconnected ")])):h.createCommentVNode("",!0),h.createElementVNode("button",{onClick:Ae,class:"ml-1"},[(h.openBlock(),h.createElementBlock("svg",Xoe,Joe))])]))}};ao.DatatableStatusTextLabelGeneral=bne,ao.GLDatatableCommand=Pne,ao.GLDatatableDateTime=xne,ao.GLDatatableStatusServer=One,ao.GlAccordion=vee,ao.GlAccordionsWrapper=dee,ao.GlButton=Uq,ao.GlCard=xq,ao.GlCodeCopy=Coe,ao.GlConfirmationModal=Yne,ao.GlDataTable=lee,ao.GlDataTableServerSide=XJ,ao.GlDataTableServerSideGroupBy=kQ,ao.GlDatatableAction=Vee,ao.GlDatatableDeleteAction=Gee,ao.GlDatatableFileDownload=tte,ao.GlDatatableFiles=ite,ao.GlDatatableHtml=gte,ao.GlDatatableList=vte,ao.GlDatatableListNested=kte,ao.GlDatatablePicture=Ote,ao.GlDatatableStatus=Fte,ao.GlDatatableStatusGeneral=Qte,ao.GlDatatableStatusSpecficColor=one,ao.GlDateRangePicker=zK,ao.GlDeleteConfirmationModal=LD,ao.GlDropdown=GX,ao.GlDynamicConfirmation=ioe,ao.GlFilesUpload=dq,ao.GlLanguageSelector=bq,ao.GlModal=iX,ao.GlMultiItemSlide=nX,ao.GlMultiSelectDropdown=Fq,ao.GlStatusConnectingConnectedDisconnected=Qoe,ao.GlStatusRunningSuccessFailed=Uoe,ao.GlTab=uY,ao.GlTabsWrapper=aY,ao.GlTailwindPagination=k8,ao.GlTextCopy=Moe,ao.GlTextInput=DK,ao.GlTextInputFile=YK,ao.GlTextTranslate=CK,ao.GlTextarea=tJ,ao.GlTextareaTranslate=eK,ao.GlTinymce=mJ,ao.GlTinymceTranslate=dK,ao.GlToast=Dx,ao.GlToastList=Dee,ao.GlToggleBox=SX,Object.defineProperty(ao,Symbol.toStringTag,{value:"Module"})});
90
+ `,1)])):h.createCommentVNode("",!0)}const Pne=Qr(Bne,[["render",Mne]]),Ine={props:["isOpen","title","button_text"],methods:{confirmAction(){this.$emit("confirm-action")},cancelAction(){this.$emit("cancel-action")}}},Lne={key:0,class:"fixed inset-0 z-50 overflow-y-auto",role:"dialog","aria-modal":"true"},Fne={class:"flex items-end justify-center min-h-screen px-4 pt-4 pb-20 text-center sm:block sm:p-0"},Vne=h.createElementVNode("div",{class:"fixed inset-0 transition-opacity bg-gray-500 bg-opacity-75","aria-hidden":"true"},null,-1),Hne=h.createElementVNode("span",{class:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true"},"​",-1),zne={class:"inline-block overflow-hidden text-left align-bottom transition-all transform bg-white dark:bg-gray-800 rounded-lg shadow-xl sm:my-8 sm:align-middle sm:max-w-lg sm:w-full"},Une={class:"px-4 pt-5 pb-4 sm:p-6 sm:pb-4"},Wne={class:"sm:flex sm:items-start"},Zne={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"},jne={class:"text-lg font-medium leading-6"},Gne={class:"mt-2"},qne={class:"border-t border-gray-200 rounded-b dark:border-gray-600 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse"};function Kne(P,be,ce,Ae,ve,Q){return ce.isOpen?(h.openBlock(),h.createElementBlock("div",Lne,[h.createElementVNode("div",Fne,[Vne,Hne,h.createElementVNode("div",zne,[h.createElementVNode("div",Une,[h.createElementVNode("div",Wne,[h.createElementVNode("div",Zne,[h.createElementVNode("h3",jne,h.toDisplayString(ce.title),1),h.createElementVNode("div",Gne,[h.renderSlot(P.$slots,"default")])])])]),h.createElementVNode("div",qne,[h.createElementVNode("button",{onClick:be[0]||(be[0]=(...Ne)=>Q.confirmAction&&Q.confirmAction(...Ne)),type:"button",class:"inline-flex justify-center w-full px-4 py-2 text-base font-medium text-white bg-red-600 border border-transparent rounded-md shadow-sm hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm"},h.toDisplayString(ce.button_text),1),h.createElementVNode("button",{onClick:be[1]||(be[1]=(...Ne)=>Q.cancelAction&&Q.cancelAction(...Ne)),type:"button",class:"inline-flex justify-center w-full px-4 py-2 mt-3 text-base font-medium text-gray-700 bg-white border border-gray-300 rounded-md shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"}," Cancel ")])])])])):h.createCommentVNode("",!0)}const Yne=Qr(Ine,[["render",Kne]]),Xne={key:0,class:"fixed inset-0 z-50 overflow-y-auto",role:"dialog","aria-modal":"true"},Jne={class:"flex items-end justify-center min-h-screen px-4 pt-4 pb-20 text-center sm:block sm:p-0"},Qne=h.createElementVNode("div",{class:"fixed inset-0 transition-opacity bg-gray-500 bg-opacity-75","aria-hidden":"true"},null,-1),eoe=h.createElementVNode("span",{class:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true"},"​",-1),toe={class:"inline-block overflow-hidden text-left align-bottom transition-all transform bg-white dark:bg-gray-800 rounded-lg shadow-xl sm:my-8 sm:align-middle sm:max-w-lg sm:w-full"},noe={class:"px-4 pt-5 pb-4 sm:p-6 sm:pb-4"},ooe={class:"sm:flex sm:items-start"},soe={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"},roe={class:"text-lg font-medium leading-6"},aoe={class:"mt-2"},coe={class:"text-sm"},loe={class:"border-t border-gray-200 rounded-b dark:border-gray-600 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse"},ioe={__name:"DynamicConfirmation",props:{is_open:{type:Boolean,default:!1}},setup(P,{expose:be}){const ce=h.ref(""),Ae=h.ref(""),ve=h.ref(""),Q=h.ref("Cancel"),Ne=h.ref(!1),ee=h.ref(void 0),He=h.ref(void 0),wt=(In={})=>(ce.value=In.title,Ae.value=In.message,ve.value=In.okButton,In.cancelButton&&(Q.value=In.cancelButton),Ne.value=!0,new Promise((Lo,nr)=>{ee.value=Lo,He.value=nr})),Ut=()=>{Ne.value=!1,ee.value(!0)},yn=()=>{Ne.value=!1,ee.value(!1)};return be({show:wt}),(In,Lo)=>Ne.value?(h.openBlock(),h.createElementBlock("div",Xne,[h.createElementVNode("div",Jne,[Qne,eoe,h.createElementVNode("div",toe,[h.createElementVNode("div",noe,[h.createElementVNode("div",ooe,[h.createElementVNode("div",soe,[h.createElementVNode("h3",roe,h.toDisplayString(ce.value),1),h.createElementVNode("div",aoe,[h.createElementVNode("p",coe,h.toDisplayString(Ae.value),1)])])])]),h.createElementVNode("div",loe,[h.createElementVNode("button",{onClick:Ut,type:"button",class:"inline-flex justify-center w-full px-4 py-2 text-base font-medium text-white bg-red-600 border border-transparent rounded-md shadow-sm hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm"},h.toDisplayString(ve.value),1),h.createElementVNode("button",{onClick:yn,type:"button",class:"inline-flex justify-center w-full px-4 py-2 mt-3 text-base font-medium text-gray-700 bg-white border border-gray-300 rounded-md shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"},h.toDisplayString(Q.value),1)])])])])):h.createCommentVNode("",!0)}},uoe={class:"w-full"},doe={class:"mb-2 flex justify-between items-center"},moe={class:"text-sm font-medium text-gray-900 dark:text-white"},foe={class:"relative bg-gray-50 rounded-lg dark:bg-gray-700 p-4 h-auto"},goe={class:"overflow-auto max-h-32"},hoe={class:"text-sm text-gray-500 dark:text-gray-400"},poe={class:"absolute top-2 end-2 bg-gray-50 dark:bg-gray-700"},boe={key:0,class:"inline-flex items-center"},yoe=[h.createElementVNode("svg",{class:"w-3 h-3 me-2","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 18 20"},[h.createElementVNode("path",{d:"M16 1h-3.278A1.992 1.992 0 0 0 11 0H7a1.993 1.993 0 0 0-1.722 1H2a2 2 0 0 0-2 2v15a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2Zm-3 14H5a1 1 0 0 1 0-2h8a1 1 0 0 1 0 2Zm0-4H5a1 1 0 0 1 0-2h8a1 1 0 1 1 0 2Zm0-5H5a1 1 0 0 1 0-2h2V2h4v2h2a1 1 0 1 1 0 2Z"})],-1),h.createElementVNode("span",{class:"text-xs font-semibold"},"Copy",-1)],voe={key:1,class:"inline-flex items-center"},woe=[h.createElementVNode("svg",{class:"w-3 h-3 text-blue-700 dark:text-blue-500 me-2","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 12"},[h.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M1 5.917 5.724 10.5 15 1.5"})],-1),h.createElementVNode("span",{class:"text-xs font-semibold text-blue-700 dark:text-blue-500"},"Copied",-1)],xoe={class:"mt-2 text-sm text-gray-500 dark:text-gray-400"},Coe={__name:"GlCodeCopy",props:{label_name:{type:String,default:""},code:{type:String,default:""},description:{type:String,default:""}},setup(P){const be=P,ce=h.ref(!1),Ae=Q=>{navigator.clipboard.writeText(Q).then(function(){ce.value=!0,setTimeout(()=>{ce.value=!1},2e3)}).catch(function(Ne){console.error("Error copying to clipboard: ",Ne)})},ve=h.computed(()=>be.code);return(Q,Ne)=>(h.openBlock(),h.createElementBlock("div",uoe,[h.createElementVNode("div",doe,[h.createElementVNode("p",moe,h.toDisplayString(P.label_name),1)]),h.createElementVNode("div",foe,[h.createElementVNode("div",goe,[h.createElementVNode("code",hoe,h.toDisplayString(ve.value),1)]),h.createElementVNode("div",poe,[h.createElementVNode("button",{onClick:Ne[0]||(Ne[0]=ee=>Ae(ve.value)),class:"text-gray-900 dark:text-gray-400 m-1 hover:bg-gray-100 dark:bg-gray-800 dark:border-gray-600 dark:hover:bg-gray-700 rounded-lg py-2 px-3 inline-flex items-center justify-center bg-white border-gray-200 border"},[ce.value?h.createCommentVNode("",!0):(h.openBlock(),h.createElementBlock("span",boe,yoe)),ce.value?(h.openBlock(),h.createElementBlock("span",voe,woe)):h.createCommentVNode("",!0)])])]),h.createElementVNode("p",xoe,h.toDisplayString(P.description),1)]))}},Soe={class:"w-full"},koe={class:"flex justify-between items-center"},_oe={class:"gl-label-form"},Eoe={class:"flex items-center"},Toe={class:"flex-shrink-0 z-10 inline-flex items-center p-2 text-sm font-medium text-center text-gray-900 bg-gray-100 border border-gray-300 rounded-s-lg dark:bg-gray-600 dark:text-white dark:border-gray-600"},Aoe={class:"relative w-full"},Noe=["value"],Doe={key:0},Ooe=[h.createElementVNode("svg",{class:"w-4 h-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 18 20"},[h.createElementVNode("path",{d:"M16 1h-3.278A1.992 1.992 0 0 0 11 0H7a1.993 1.993 0 0 0-1.722 1H2a2 2 0 0 0-2 2v15a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2Zm-3 14H5a1 1 0 0 1 0-2h8a1 1 0 0 1 0 2Zm0-4H5a1 1 0 0 1 0-2h8a1 1 0 1 1 0 2Zm0-5H5a1 1 0 0 1 0-2h2V2h4v2h2a1 1 0 1 1 0 2Z"})],-1)],Boe={key:1,class:"inline-flex items-center"},Roe=[h.createElementVNode("svg",{class:"w-4 h-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 12"},[h.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M1 5.917 5.724 10.5 15 1.5"})],-1)],$oe={class:"mt-2 text-sm text-gray-500 dark:text-gray-400"},Moe={__name:"GlTextCopy",props:{label_name:{type:String,default:""},text_name:{type:String,default:""},code:{type:String,default:""},description:{type:String,default:""}},setup(P){const be=P,ce=h.ref(!1),Ae=Q=>{navigator.clipboard.writeText(Q).then(function(){ce.value=!0,setTimeout(()=>{ce.value=!1},2e3)}).catch(function(Ne){console.error("Error copying to clipboard: ",Ne)})},ve=h.computed(()=>be.code);return(Q,Ne)=>(h.openBlock(),h.createElementBlock("div",Soe,[h.createElementVNode("div",koe,[h.createElementVNode("label",_oe,h.toDisplayString(P.label_name),1)]),h.createElementVNode("div",Eoe,[h.createElementVNode("span",Toe,h.toDisplayString(P.text_name),1),h.createElementVNode("div",Aoe,[h.createElementVNode("input",{type:"text","aria-describedby":"helper-text-explanation",class:"bg-gray-50 border border-e-0 border-gray-300 text-gray-500 dark:text-gray-400 text-sm border-s-0 focus:ring-blue-500 focus:border-blue-500 block w-full p-2 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500",value:ve.value,readonly:"",disabled:""},null,8,Noe)]),h.createElementVNode("button",{style:{padding:".61rem"},onClick:Ne[0]||(Ne[0]=ee=>Ae(ve.value)),class:"flex-shrink-0 z-10 inline-flex items-center px-4 text-sm font-medium text-center text-white bg-blue-700 rounded-e-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800 border border-blue-700 dark:border-blue-600 hover:border-blue-800 dark:hover:border-blue-700",type:"button"},[ce.value?h.createCommentVNode("",!0):(h.openBlock(),h.createElementBlock("span",Doe,Ooe)),ce.value?(h.openBlock(),h.createElementBlock("span",Boe,Roe)):h.createCommentVNode("",!0)])]),h.createElementVNode("p",$oe,h.toDisplayString(P.description),1)]))}},Poe={class:"flex flex-wrap gap-2 text-nowrap"},Ioe={key:0,class:"inline-flex items-center px-2 py-1 text-sm text-blue-800 bg-blue-100 rounded-full dark:bg-blue-900 dark:text-blue-300"},Loe=h.createElementVNode("span",{class:"relative flex w-2 h-2 mr-1"},[h.createElementVNode("span",{class:"absolute inline-flex w-full h-full bg-blue-500 rounded-full animate-ping"}),h.createElementVNode("span",{class:"relative inline-flex w-2 h-2 bg-blue-500 rounded-full"})],-1),Foe={key:1,class:"inline-flex items-center px-2 py-1 text-xs font-medium text-green-800 bg-green-100 rounded-full dark:bg-green-900 dark:text-green-300"},Voe=h.createElementVNode("span",{class:"w-2 h-2 bg-green-500 rounded-full me-1"},null,-1),Hoe={key:2,class:"inline-flex items-center px-2 py-1 bg-red-100 text-red-800 text-xs font-medium rounded-full dark:bg-red-900 dark:text-red-300"},zoe=h.createElementVNode("span",{class:"w-2 h-2 bg-red-500 rounded-full me-1"},null,-1),Uoe={__name:"StatusRunningSuccessFailed",props:{status:{type:Number,default:!1}},setup(P){return(be,ce)=>(h.openBlock(),h.createElementBlock("div",Poe,[P.status===0?(h.openBlock(),h.createElementBlock("span",Ioe,[Loe,h.createTextVNode(" Running")])):h.createCommentVNode("",!0),P.status===1?(h.openBlock(),h.createElementBlock("span",Foe,[Voe,h.createTextVNode(" Success ")])):h.createCommentVNode("",!0),P.status===2?(h.openBlock(),h.createElementBlock("span",Hoe,[zoe,h.createTextVNode(" Failed ")])):h.createCommentVNode("",!0)]))}},Woe={class:"flex flex-wrap gap-2 text-nowrap"},Zoe={key:0,class:"inline-flex items-center px-2 py-1 text-sm text-blue-800 bg-blue-100 rounded-full dark:bg-blue-900 dark:text-blue-300"},joe=h.createElementVNode("span",{class:"relative flex w-2 h-2 mr-1"},[h.createElementVNode("span",{class:"absolute inline-flex w-full h-full bg-blue-500 rounded-full animate-ping"}),h.createElementVNode("span",{class:"relative inline-flex w-2 h-2 bg-blue-500 rounded-full"})],-1),Goe={key:1,class:"inline-flex items-center px-2 py-1 text-sm font-medium text-green-800 bg-green-100 rounded-full dark:bg-green-900 dark:text-green-300"},qoe=h.createElementVNode("span",{class:"w-2 h-2 bg-green-500 rounded-full me-1"},null,-1),Koe={key:2,class:"inline-flex items-center px-2 py-1 bg-red-100 text-red-800 text-sm font-medium rounded-full dark:bg-red-900 dark:text-red-300"},Yoe=h.createElementVNode("span",{class:"w-2 h-2 bg-red-500 rounded-full me-1"},null,-1),Xoe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",class:"w-5 h-5",style:{"animation-direction":"reverse"}},Joe=[h.createElementVNode("path",{"fill-rule":"evenodd",d:"M10 1.425c.002-.113-.044-.222-.125-.3L9.708.958C9.63.879 9.523.835 9.412.835s-.218.044-.296.123L6.163 3.9c-.16.165-.16.427 0 .592l2.953 2.942c.078.079.185.123.296.123s.218-.044.296-.123l.167-.167c.081-.078.127-.187.125-.3V5c2.764 0 5.005 2.239 5.005 5 0 .808-.197 1.603-.575 2.317-.086.162-.056.362.075.492l.609.608c.092.091.222.134.35.117s.241-.091.309-.2a6.66 6.66 0 0 0 .002-6.664C14.584 4.607 12.383 3.336 10 3.333V1.425zm.588 11.018c.111 0 .218.044.296.123l2.953 2.942c.16.165.16.427 0 .592l-2.953 2.942c-.078.079-.185.123-.296.123s-.218-.044-.296-.123l-.167-.167c-.082-.078-.127-.187-.125-.3v-1.908c-2.383-.002-4.584-1.274-5.774-3.336a6.66 6.66 0 0 1 .002-6.664c.064-.115.178-.195.309-.217s.258.025.35.117l.617.617c.128.131.159.329.075.492-.386.714-.587 1.513-.584 2.325 0 2.761 2.241 5 5.005 5v-1.967c-.002-.113.044-.222.125-.3l.167-.167c.078-.079.185-.123.296-.123z",fill:"currentColor"},null,-1)],Qoe={__name:"StatusConnectingConnectedDisconnected",props:{status:{type:Number,default:!1}},emits:["reconnect"],setup(P,{emit:be}){const ce=be,Ae=()=>{ce("reconnect")};return(ve,Q)=>(h.openBlock(),h.createElementBlock("div",Woe,[P.status===0?(h.openBlock(),h.createElementBlock("span",Zoe,[joe,h.createTextVNode(" Connecting")])):h.createCommentVNode("",!0),P.status===1?(h.openBlock(),h.createElementBlock("span",Goe,[qoe,h.createTextVNode(" Connected ")])):h.createCommentVNode("",!0),P.status===2?(h.openBlock(),h.createElementBlock("span",Koe,[Yoe,h.createTextVNode(" Disconnected ")])):h.createCommentVNode("",!0),h.createElementVNode("button",{onClick:Ae,class:"ml-1"},[(h.openBlock(),h.createElementBlock("svg",Xoe,Joe))])]))}};ao.DatatableStatusTextLabelGeneral=bne,ao.GLDatatableCommand=Pne,ao.GLDatatableDateTime=xne,ao.GLDatatableStatusServer=One,ao.GlAccordion=vee,ao.GlAccordionsWrapper=dee,ao.GlButton=Uq,ao.GlCard=xq,ao.GlCodeCopy=Coe,ao.GlConfirmationModal=Yne,ao.GlDataTable=lee,ao.GlDataTableServerSide=XJ,ao.GlDataTableServerSideGroupBy=kQ,ao.GlDatatableAction=Vee,ao.GlDatatableDeleteAction=Gee,ao.GlDatatableFileDownload=tte,ao.GlDatatableFiles=ite,ao.GlDatatableHtml=gte,ao.GlDatatableList=vte,ao.GlDatatableListNested=kte,ao.GlDatatablePicture=Ote,ao.GlDatatableStatus=Fte,ao.GlDatatableStatusGeneral=Qte,ao.GlDatatableStatusSpecficColor=one,ao.GlDateRangePicker=zK,ao.GlDeleteConfirmationModal=LD,ao.GlDropdown=GX,ao.GlDynamicConfirmation=ioe,ao.GlFilesUpload=dq,ao.GlLanguageSelector=bq,ao.GlModal=iX,ao.GlMultiItemSlide=nX,ao.GlMultiSelectDropdown=Fq,ao.GlStatusConnectingConnectedDisconnected=Qoe,ao.GlStatusRunningSuccessFailed=Uoe,ao.GlTab=uY,ao.GlTabsWrapper=aY,ao.GlTailwindPagination=k8,ao.GlTextCopy=Moe,ao.GlTextInput=DK,ao.GlTextInputFile=YK,ao.GlTextTranslate=CK,ao.GlTextarea=tJ,ao.GlTextareaTranslate=eK,ao.GlTinymce=mJ,ao.GlTinymceTranslate=dK,ao.GlToast=Dx,ao.GlToastList=Dee,ao.GlToggleBox=SX,Object.defineProperty(ao,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -17,7 +17,7 @@
17
17
  "./dist/style.css": "./dist/style.css"
18
18
  },
19
19
  "private": false,
20
- "version": "1.0.233",
20
+ "version": "1.0.234",
21
21
  "scripts": {
22
22
  "dev": "vite",
23
23
  "build": "vite build",