golden-logic-ui 1.2.236 → 1.2.237

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.
@@ -94702,7 +94702,7 @@ const YRe = /* @__PURE__ */ Ii($$e, [["render", B$e]]), F$e = {
94702
94702
  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"
94703
94703
  }, z$e = {
94704
94704
  key: 4,
94705
- 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"
94705
+ class: "inline-flex items-center px-2 py-1 text-xs text-blue-800 bg-blue-100 rounded-full dark:bg-blue-900 dark:text-blue-300"
94706
94706
  };
94707
94707
  function Z$e(r, t, s, a, c, f) {
94708
94708
  return Be(), He("div", I$e, [
@@ -94837,7 +94837,7 @@ const JRe = /* @__PURE__ */ Ii(U$e, [["render", X$e]]), q$e = {
94837
94837
  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"
94838
94838
  }, e8e = {
94839
94839
  key: 4,
94840
- 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"
94840
+ class: "inline-flex items-center px-2 py-1 text-xs text-blue-800 bg-blue-100 rounded-full dark:bg-blue-900 dark:text-blue-300"
94841
94841
  };
94842
94842
  function t8e(r, t, s, a, c, f) {
94843
94843
  return Be(), He("div", j$e, [
@@ -94902,7 +94902,7 @@ const n6e = /* @__PURE__ */ Ii(r8e, [["render", a8e]]), l8e = {
94902
94902
  props: ["field", "row", "tdProps"]
94903
94903
  }, c8e = { class: "flex flex-wrap gap-2 text-nowrap" }, u8e = {
94904
94904
  key: 0,
94905
- 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"
94905
+ class: "inline-flex items-center px-2 py-1 text-xs text-blue-800 bg-blue-100 rounded-full dark:bg-blue-900 dark:text-blue-300"
94906
94906
  }, d8e = {
94907
94907
  key: 1,
94908
94908
  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"
@@ -95191,7 +95191,7 @@ const r6e = /* @__PURE__ */ Ii(v8e, [["render", E8e]]), A8e = { class: "w-full"
95191
95191
  }
95192
95192
  }, G8e = { class: "flex flex-wrap gap-2 text-nowrap" }, Y8e = {
95193
95193
  key: 0,
95194
- 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"
95194
+ class: "inline-flex items-center px-2 py-1 text-xs text-blue-800 bg-blue-100 rounded-full dark:bg-blue-900 dark:text-blue-300"
95195
95195
  }, K8e = {
95196
95196
  key: 1,
95197
95197
  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"
@@ -95227,10 +95227,10 @@ const r6e = /* @__PURE__ */ Ii(v8e, [["render", E8e]]), A8e = { class: "w-full"
95227
95227
  }
95228
95228
  }, eRe = { class: "flex flex-wrap text-nowrap" }, tRe = {
95229
95229
  key: 0,
95230
- 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"
95230
+ class: "inline-flex items-center px-2 py-1 text-xs text-blue-800 bg-blue-100 rounded-full dark:bg-blue-900 dark:text-blue-300"
95231
95231
  }, nRe = {
95232
95232
  key: 1,
95233
- 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"
95233
+ 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"
95234
95234
  }, sRe = {
95235
95235
  key: 2,
95236
95236
  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"
@@ -216,5 +216,5 @@ Required: `+Z.join(", "));return Fo[mn].apply(null,eo)},log:Fo=>{console.log(Fo,
216
216
  </svg>\r
217
217
  `},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(o.language?.excel??"Excel"),1)]),_:1},8,["onClick","classes"]),o.enable_select_deselect_delete?(p.openBlock(),p.createBlock(R,{key:0,onClick:f.toggleSelectAll,tag:"button",button_type:"light",has_border_reduced:!1,classes:"rounded-lg lg:rounded-none!"},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(o.language?.select_all??"Select all"),1)]),_:1},8,["onClick"])):p.createCommentVNode("",!0),o.enable_select_deselect_delete?(p.openBlock(),p.createBlock(R,{key:1,onClick:f.toggleDeselectAll,tag:"button",button_type:"light",has_border_reduced:!1,classes:"rounded-lg lg:rounded-none!"},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(o.language?.deselect_all??"Deselect all"),1)]),_:1},8,["onClick"])):p.createCommentVNode("",!0),p.withDirectives((p.openBlock(),p.createElementBlock("div",null,[p.createElementVNode("button",{onClick:t[3]||(t[3]=(...U)=>f.toggleColumnVisibilityDropdown&&f.toggleColumnVisibilityDropdown(...U)),class:"h-[2.5rem] text-gray-900 bg-white border border-gray-300 hover:bg-gray-100 focus:ring-4 focus:ring-gray-100 dark:bg-gray-800 dark:text-white dark:border-gray-600 dark:hover:bg-gray-700 dark:hover:border-gray-600 dark:focus:ring-gray-700 focus:outline-none font-medium text-sm px-3 py-2 text-center inline-flex items-center rounded-lg lg:rounded-none!",type:"button"},t[7]||(t[7]=[p.createStaticVNode('<svg class="w-4 h-4 me-3" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" data-v-a51321e7><path stroke="currentColor" stroke-width="2" d="M21 12c0 1.2-4.03 6-9 6s-9-4.8-9-6c0-1.2 4.03-6 9-6s9 4.8 9 6Z" data-v-a51321e7></path><path stroke="currentColor" stroke-width="2" d="M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z" data-v-a51321e7></path></svg> Column visibility <svg class="w-2.5 h-2.5 ms-3" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 10 6" data-v-a51321e7><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m1 1 4 4 4-4" data-v-a51321e7></path></svg>',3)])),p.withDirectives(p.createElementVNode("div",{id:"db_"+c.Random_string,class:"z-10 absolute w-42 bg-white rounded-lg shadow-sm dark:bg-gray-700"},[p.createElementVNode("ul",{class:"p-3 space-y-1 text-sm text-gray-700 dark:text-gray-200","aria-labelledby":"db_"+c.Random_string},[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(o.columns,(U,K)=>(p.openBlock(),p.createElementBlock("li",null,[p.createElementVNode("div",_Ae,[p.withDirectives(p.createElementVNode("input",{id:"cb_"+U.field_name,type:"checkbox","onUpdate:modelValue":ce=>c.columnVisibility[U.field_name]=ce,class:"w-4 h-4 rounded-sm"},null,8,TAe),[[p.vModelCheckbox,c.columnVisibility[U.field_name]]]),p.createElementVNode("label",{for:"cb_"+U.field_name,class:"w-full ms-2 text-sm font-medium text-gray-900 rounded-sm dark:text-gray-300"},p.toDisplayString(U.field_name),9,AAe)])]))),256))],8,EAe)],8,CAe),[[p.vShow,c.isOpenColumnVisibility]])])),[[q,f.closeColumnVisibilityDropdown]]),o.enable_select_deselect_delete?(p.openBlock(),p.createBlock(R,{key:2,tag:"button",onClick:f.deleteSelected,button_type:"red",has_border_reduced:!1,classes:"rounded-lg lg:rounded-none lg:rounded-e-lg!",is_disabled:c.checkedIds.length<=0,svg_icon:`<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">\r
218
218
  <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 7h14m-9 3v8m4-8v8M10 3h4a1 1 0 0 1 1 1v3H9V4a1 1 0 0 1 1-1ZM6 7h12v13a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V7Z"/>\r
219
- </svg>`},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(o.language?.delete_selected??"Delete selected")+" "+p.toDisplayString(c.checkedIds.length>0?`(${c.checkedIds.length})`:""),1)]),_:1},8,["onClick","is_disabled"])):p.createCommentVNode("",!0)]),p.createElementVNode("div",{id:"print_"+c.Random_string,class:"overflow-auto rounded-lg dark:text-gray-400 dark:bg-gray-800"},[p.createElementVNode("table",{id:"table"+c.Random_string,class:"w-full h-full max-w-full overflow-hidden bg-white border-separate xl:overflow-auto lg:border-collapse print:border-collapse! border-spacing-y-5 lg:border-spacing-y-0 print:border-spacing-y-0! dark:border-gray-800 dark:bg-gray-900"},[p.createElementVNode("thead",NAe,[p.createElementVNode("tr",null,[o.enable_select_deselect_delete?(p.openBlock(),p.createElementBlock("th",$Ae)):p.createCommentVNode("",!0),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(f.visibleColumns,(U,K)=>(p.openBlock(),p.createElementBlock("th",{key:K,onClick:ce=>f.updateSortColumn(U.field_name,U.sortable),class:"w-full px-4 py-2 lg:w-2/12 print:w-2/12! print:border-[1px]!"},[p.createElementVNode("div",BAe,[p.createElementVNode("span",null,p.toDisplayString(U.field_label),1),c.sortField===U.field_name?(p.openBlock(),p.createElementBlock("span",MAe,t[8]||(t[8]=[p.createElementVNode("svg",{class:"w-4 h-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[p.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 20V7m0 13-4-4m4 4 4-4m4-12v13m0-13 4 4m-4-4-4 4"})],-1)]))):p.createCommentVNode("",!0)])],8,RAe))),128))])]),p.createElementVNode("tbody",FAe,[c.isLoading?(p.openBlock(),p.createElementBlock("tr",LAe,[p.createElementVNode("td",{colspan:o.columns.length+(o.enable_select_deselect_delete?1:0)},t[9]||(t[9]=[p.createElementVNode("div",{role:"status",class:"w-full p-4 space-y-4 border border-gray-200 divide-y divide-gray-200 rounded-sm shadow-sm animate-pulse dark:divide-gray-700 md:p-6 dark:border-gray-700"},[p.createElementVNode("div",{class:"flex items-center justify-between"},[p.createElementVNode("div",null,[p.createElementVNode("div",{class:"w-24 h-3 mb-3 bg-gray-300 rounded-full dark:bg-gray-600"}),p.createElementVNode("div",{class:"w-32 h-2 bg-gray-200 rounded-full dark:bg-gray-700"})]),p.createElementVNode("div",{class:"w-12 h-3 bg-gray-300 rounded-full dark:bg-gray-700"})]),p.createElementVNode("div",{class:"flex items-center justify-between pt-4"},[p.createElementVNode("div",null,[p.createElementVNode("div",{class:"w-24 h-3 mb-3 bg-gray-300 rounded-full dark:bg-gray-600"}),p.createElementVNode("div",{class:"w-32 h-2 bg-gray-200 rounded-full dark:bg-gray-700"})]),p.createElementVNode("div",{class:"w-12 h-3 bg-gray-300 rounded-full dark:bg-gray-700"})]),p.createElementVNode("div",{class:"flex items-center justify-between pt-4"},[p.createElementVNode("div",null,[p.createElementVNode("div",{class:"w-24 h-3 mb-3 bg-gray-300 rounded-full dark:bg-gray-600"}),p.createElementVNode("div",{class:"w-32 h-2 bg-gray-200 rounded-full dark:bg-gray-700"})]),p.createElementVNode("div",{class:"w-12 h-3 bg-gray-300 rounded-full dark:bg-gray-700"})]),p.createElementVNode("div",{class:"flex items-center justify-between pt-4"},[p.createElementVNode("div",null,[p.createElementVNode("div",{class:"w-24 h-3 mb-3 bg-gray-300 rounded-full dark:bg-gray-600"}),p.createElementVNode("div",{class:"w-32 h-2 bg-gray-200 rounded-full dark:bg-gray-700"})]),p.createElementVNode("div",{class:"w-12 h-3 bg-gray-300 rounded-full dark:bg-gray-700"})]),p.createElementVNode("div",{class:"flex items-center justify-between pt-4"},[p.createElementVNode("div",null,[p.createElementVNode("div",{class:"w-24 h-3 mb-3 bg-gray-300 rounded-full dark:bg-gray-600"}),p.createElementVNode("div",{class:"w-32 h-2 bg-gray-200 rounded-full dark:bg-gray-700"})]),p.createElementVNode("div",{class:"w-12 h-3 bg-gray-300 rounded-full dark:bg-gray-700"})]),p.createElementVNode("span",{class:"sr-only"},"Loading...")],-1)]),8,IAe)])):p.createCommentVNode("",!0),c.isLoading?p.createCommentVNode("",!0):(p.openBlock(!0),p.createElementBlock(p.Fragment,{key:1},p.renderList(c.itemLists.data,(U,K)=>(p.openBlock(),p.createElementBlock("tr",{key:K,class:"text-gray-500 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-800 dark:hover:text-gray-200"},[o.enable_select_deselect_delete?(p.openBlock(),p.createElementBlock("td",VAe,[p.createElementVNode("input",{checked:c.checkedIds.includes(U.id),onChange:ce=>f.toggleCheck(U.id),type:"checkbox",value:"",class:"w-4 h-4 rounded-sm"},null,40,QAe)])):p.createCommentVNode("",!0),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(f.visibleColumns,(ce,we)=>(p.openBlock(),p.createElementBlock("td",{style:p.normalizeStyle(ce?.style),key:we,"data-label":ce.field_label,class:p.normalizeClass(["text-pretty before:content-[attr(data-label)] before:font-bold lg:before:content-none print:before:content-none! flex flex-col justify-between gap-2 lg:table-cell print:table-cell! py-4 px-5 lg:py-3 lg:px-4 print:py-3! print:px-4! border-[1px]! dark:border-gray-700",{"rounded-b-lg lg:rounded-b-none!":we===o.columns.length-1}])},[p.createElementVNode("div",{class:p.normalizeClass([ce.field_name==="action"?"":"overflow-auto","td_overflow_auto max-h-40 max-w-100"])},[ce.tdComp?(p.openBlock(),p.createBlock(p.resolveDynamicComponent(f.forDynCompIs(ce.tdComp)),{key:0,language:o.language,row:U,field:ce.field_name,xprops:o.xprops,tdProps:ce.tdProps,onDeleteAction:t[4]||(t[4]=te=>f.GetItemLists()),onEditAction:te=>f.editAction(U),onGeneralAction:te=>f.generalAction(U)},null,40,["language","row","field","xprops","tdProps","onEditAction","onGeneralAction"])):(p.openBlock(),p.createElementBlock(p.Fragment,{key:1},[p.createTextVNode(p.toDisplayString(U[ce.field_name]),1)],64))],2)],14,zAe))),128))]))),128))])],8,DAe)],8,PAe),p.createElementVNode("div",HAe,[p.createVNode(B,{class:"mt-3 mb-0",classes:"px-4 py-3 sm:px-6",data:c.itemLists,limit:c.limit,size:c.size,align:c.align,onPaginationChangePage:f.GetItemLists},null,8,["data","limit","size","align","onPaginationChangePage"])])])],64)}const UAe=vi(mAe,[["render",ZAe],["__scopeId","data-v-a51321e7"]]);class WAe{constructor(t){this.standards={strict:"strict",loose:"loose",html5:"html5"},this.previewBody=null,this.close=null,this.previewBodyUtilPrintBtn=null,this.selectArray=[],this.counter=0,this.settings={standard:this.standards.html5},Object.assign(this.settings,t),this.init()}init(){this.counter++,this.settings.id=`printArea_${this.counter}`;let t="";this.settings.url&&!this.settings.asyncUrl&&(t=this.settings.url);let o=this;if(this.settings.asyncUrl)return void o.settings.asyncUrl((function(c){let f=o.getPrintWindow(c);o.settings.preview?o.previewIfrmaeLoad():o.print(f)}),o.settings.vue);let a=this.getPrintWindow(t);this.settings.url||this.write(a.doc),this.settings.preview?this.previewIfrmaeLoad():this.print(a)}addEvent(t,o,a){t.addEventListener?t.addEventListener(o,a,!1):t.attachEvent?t.attachEvent("on"+o,a):t["on"+o]=a}previewIfrmaeLoad(){let t=document.getElementById("vue-pirnt-nb-previewBox");if(t){let o=this,a=t.querySelector("iframe");this.settings.previewBeforeOpenCallback(),this.addEvent(a,"load",(function(){o.previewBoxShow(),o.removeCanvasImg(),o.settings.previewOpenCallback()})),this.addEvent(t.querySelector(".previewBodyUtilPrintBtn"),"click",(function(){o.settings.beforeOpenCallback(),o.settings.openCallback(),a.contentWindow.print(),o.settings.closeCallback()}))}}removeCanvasImg(){let t=this;try{if(t.elsdom){let o=t.elsdom.querySelectorAll(".canvasImg");for(let a=0;a<o.length;a++)o[a].remove()}}catch(o){console.log(o)}}print(t){var o=this;let a=document.getElementById(this.settings.id)||t.f,c=document.getElementById(this.settings.id).contentWindow||t.f.contentWindow;o.settings.beforeOpenCallback(),o.addEvent(a,"load",(function(){c.focus(),o.settings.openCallback(),c.print(),a.remove(),o.settings.closeCallback(),o.removeCanvasImg()}))}write(t){t.open(),t.write(`${this.docType()}<html>${this.getHead()}${this.getBody()}</html>`),t.close()}docType(){return this.settings.standard===this.standards.html5?"<!DOCTYPE html>":`<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01${this.settings.standard===this.standards.loose?" Transitional":""}//EN" "http://www.w3.org/TR/html4/${this.settings.standard===this.standards.loose?"loose":"strict"}.dtd">`}getHead(){let t="",o="",a="";this.settings.extraHead&&this.settings.extraHead.replace(/([^,]+)/g,(f=>{t+=f})),[].forEach.call(document.querySelectorAll("link"),(function(f){f.href.indexOf(".css")>=0&&(o+=`<link type="text/css" rel="stylesheet" href="${f.href}" >`)}));let c=document.styleSheets;if(c&&c.length>0)for(let f=0;f<c.length;f++)try{if(c[f].cssRules||c[f].rules){let h=c[f].cssRules||c[f].rules;for(let y=0;y<h.length;y++)a+=h[y].cssText}}catch(h){console.log(c[f].href+h)}return this.settings.extraCss&&this.settings.extraCss.replace(/([^,\s]+)/g,(f=>{o+=`<link type="text/css" rel="stylesheet" href="${f}">`})),`<head><title>${this.settings.popTitle}</title>${t}${o}<style type="text/css">${a}</style></head>`}getBody(){let t=this.settings.ids;return t=t.replace(new RegExp("#","g"),""),this.elsdom=this.beforeHanler(document.getElementById(t)),"<body>"+this.getFormData(this.elsdom).outerHTML+"</body>"}beforeHanler(t){let o=t.querySelectorAll("canvas");for(let a=0;a<o.length;a++)if(!o[a].style.display){let c=o[a].parentNode,f=o[a].toDataURL("image/png"),h=new Image;h.className="canvasImg",h.style.display="none",h.src=f,c.appendChild(h)}return t}getFormData(t){let o=t.cloneNode(!0),a=o.querySelectorAll("input,select,textarea"),c=o.querySelectorAll(".canvasImg,canvas"),f=-1;for(let h=0;h<c.length;h++){let y=c[h].parentNode,w=c[h];w.tagName.toLowerCase()==="canvas"?y.removeChild(w):w.style.display="block"}for(let h=0;h<a.length;h++){let y=a[h],w=y.getAttribute("type"),C=a[h];if(w||(w=y.tagName==="SELECT"?"select":y.tagName==="TEXTAREA"?"textarea":""),y.tagName==="INPUT")w==="radio"||w==="checkbox"?y.checked&&C.setAttribute("checked",y.checked):(C.value=y.value,C.setAttribute("value",y.value));else if(w==="select"){f++;for(let T=0;T<t.querySelectorAll("select").length;T++){let R=t.querySelectorAll("select")[T];if(!R.getAttribute("newbs")&&R.setAttribute("newbs",T),R.getAttribute("newbs")==f){let B=t.querySelectorAll("select")[f].selectedIndex;y.options[B].setAttribute("selected",!0)}}}else C.innerHTML=y.value,C.setAttribute("html",y.value)}return o}getPrintWindow(t){var o=this.Iframe(t);return{f:o,win:o.contentWindow||o,doc:o.doc}}previewBoxShow(){let t=document.getElementById("vue-pirnt-nb-previewBox");t&&(document.querySelector("html").setAttribute("style","overflow: hidden"),t.style.display="block")}previewBoxHide(){let t=document.getElementById("vue-pirnt-nb-previewBox");t&&(document.querySelector("html").setAttribute("style","overflow: visible;"),t.querySelector("iframe")&&t.querySelector("iframe").remove(),t.style.display="none")}previewBox(){let t=document.getElementById("vue-pirnt-nb-previewBox"),o="previewBody";if(t)return t.querySelector("iframe")&&t.querySelector("iframe").remove(),{close:t.querySelector(".previewClose"),previewBody:t.querySelector(".previewBody")};let a=document.createElement("div");a.setAttribute("id","vue-pirnt-nb-previewBox"),a.setAttribute("style","position: fixed;top: 0px;left: 0px;width: 100%;height: 100%;background: white;display:none"),a.style.zIndex=this.settings.zIndex;let c=document.createElement("div");c.setAttribute("class","previewHeader"),c.setAttribute("style","padding: 5px 20px;"),c.innerHTML=this.settings.previewTitle,a.appendChild(c),this.close=document.createElement("div");let f=this.close;f.setAttribute("class","previewClose"),f.setAttribute("style","position: absolute;top: 5px;right: 20px;width: 25px;height: 20px;cursor: pointer;");let h=document.createElement("div"),y=document.createElement("div");h.setAttribute("class","closeBefore"),h.setAttribute("style","position: absolute;width: 3px;height: 100%;background: #040404;transform: rotate(45deg); top: 0px;left: 50%;"),y.setAttribute("class","closeAfter"),y.setAttribute("style","position: absolute;width: 3px;height: 100%;background: #040404;transform: rotate(-45deg); top: 0px;left: 50%;"),f.appendChild(h),f.appendChild(y),c.appendChild(f),this.previewBody=document.createElement("div");let w=this.previewBody;w.setAttribute("class",o),w.setAttribute("style","display: flex;flex-direction: column; height: 100%;"),a.appendChild(w);let C=document.createElement("div");C.setAttribute("class","previewBodyUtil"),C.setAttribute("style","height: 32px;background: #474747;position: relative;"),w.appendChild(C),this.previewBodyUtilPrintBtn=document.createElement("div");let T=this.previewBodyUtilPrintBtn;return T.setAttribute("class","previewBodyUtilPrintBtn"),T.innerHTML=this.settings.previewPrintBtnLabel,T.setAttribute("style","position: absolute;padding: 2px 10px;margin-top: 3px;left: 24px;font-size: 14px;color: white;cursor: pointer;background-color: rgba(0,0,0,.12);background-image: linear-gradient(hsla(0,0%,100%,.05),hsla(0,0%,100%,0));background-clip: padding-box;border: 1px solid rgba(0,0,0,.35);border-color: rgba(0,0,0,.32) rgba(0,0,0,.38) rgba(0,0,0,.42);box-shadow: inset 0 1px 0 hsla(0,0%,100%,.05), inset 0 0 1px hsla(0,0%,100%,.15), 0 1px 0 hsla(0,0%,100%,.05);"),C.appendChild(T),document.body.appendChild(a),{close:this.close,previewBody:this.previewBody}}iframeBox(t,o){let a=document.createElement("iframe");return a.style.border="0px",a.style.position="absolute",a.style.width="0px",a.style.height="0px",a.style.right="0px",a.style.top="0px",a.setAttribute("id",t),a.setAttribute("src",o),a}Iframe(t){let o=this.settings.id;t=t||new Date().getTime();let a=this,c=this.iframeBox(o,t);try{if(this.settings.preview){c.setAttribute("style","border: 0px;flex: 1;");let f=this.previewBox(),h=f.previewBody,y=f.close;h.appendChild(c),this.addEvent(y,"click",(function(){a.previewBoxHide()}))}else document.body.appendChild(c);c.doc=null,c.doc=c.contentDocument?c.contentDocument:c.contentWindow?c.contentWindow.document:c.document}catch(f){throw new Error(f+". iframes may not be supported in this browser.")}if(c.doc==null)throw new Error("Cannot find document.");return c}}var tW={directiveName:"print",mounted(r,t,o){let a=t.instance,c="";var f,h,y;h="click",y=()=>{if(typeof t.value=="string")c=t.value;else{if(typeof t.value!="object"||!t.value.id)return void window.print();{c=t.value.id;let C=c.replace(new RegExp("#","g"),"");document.getElementById(C)||(console.log("id in Error"),c="")}}w()},(f=r).addEventListener?f.addEventListener(h,y,!1):f.attachEvent?f.attachEvent("on"+h,y):f["on"+h]=y;const w=()=>{new WAe({ids:c,vue:a,url:t.value.url,standard:"",extraHead:t.value.extraHead,extraCss:t.value.extraCss,zIndex:t.value.zIndex||20002,previewTitle:t.value.previewTitle||"打印预览",previewPrintBtnLabel:t.value.previewPrintBtnLabel||"打印",popTitle:t.value.popTitle,preview:t.value.preview||!1,asyncUrl:t.value.asyncUrl,previewBeforeOpenCallback(){t.value.previewBeforeOpenCallback&&t.value.previewBeforeOpenCallback(a)},previewOpenCallback(){t.value.previewOpenCallback&&t.value.previewOpenCallback(a)},openCallback(){t.value.openCallback&&t.value.openCallback(a)},closeCallback(){t.value.closeCallback&&t.value.closeCallback(a)},beforeOpenCallback(){t.value.beforeOpenCallback&&t.value.beforeOpenCallback(a)}})}},install:function(r){r.directive("print",tW)}};const XAe={components:{},props:{data:Array,columns:Array,get_item_url:String,xprops:Object,language:{type:Object,required:!1,default:()=>{}}},data(){const r=this.generateRandomString(6);return{isLoadinPrint:!1,Random_string:r,printObj:{id:"print_"+r,popTitle:"",beforeOpenCallback(t){},openCallback(t){t.isLoadinPrint=!1},closeCallback(t){t.isLoadinPrint=!1}},isLoading:!1,showNoOfEntries:[5,10,20,50,100,200,300,400,500,600,700,800,900,1e3,2e3,3e3,4e3,5e3,6e3,7e3,8e3,9e3,1e4,11e3,12e3,13e3,14e3,15e3,16e3,17e3,18e3,19e3,2e4],search:"",sortKey:"",sortOrder:1,currentPage:1,itemsPerPage:10,jumpToPage:"",maxDisplayedPages:10}},emits:["editAction","generalAction","deleteAction"],computed:{itemLists(){return this.data},filteredData(){const r=this.search.toLowerCase(),t=this.sortData(this.itemLists);return r?t.filter(o=>this.columns.some(a=>{const c=o[a.field_name];return c!=null&&String(c).toLowerCase().includes(r)})):t},totalPages(){return Math.ceil(this.filteredData.length/this.itemsPerPage)},paginatedData(){const r=(this.currentPage-1)*this.itemsPerPage,t=r+this.itemsPerPage;return this.filteredData.slice(r,t)},displayedPageNumbers(){let r=Math.max(this.currentPage-Math.floor(this.maxDisplayedPages/2),1),t=r+this.maxDisplayedPages-1;return t>this.totalPages&&(t=this.totalPages,r=Math.max(t-this.maxDisplayedPages+1,1)),Array.from({length:t-r+1},(o,a)=>r+a)},firstItemIndex(){return this.itemsPerPage*(this.currentPage-1)+1},lastItemIndex(){const r=this.itemsPerPage*this.currentPage;return r>this.filteredData.length?this.filteredData.length:r}},methods:{exportToExcel(){const r=document.querySelector("#table"+this.Random_string),t=Array.from(r.querySelectorAll("thead th")).map(R=>R.innerText),a=["",...["action"]],c=t.map((R,B)=>a.includes(R)?B:-1).filter(R=>R!==-1),f=Array.from(r.querySelectorAll("tbody tr")).map(R=>Array.from(R.querySelectorAll("td")).map(V=>V.innerText).filter((V,q)=>!c.includes(q))),y=[t.filter((R,B)=>!c.includes(B)),...f],w=vb.aoa_to_sheet(y),C=vb.book_new();vb.book_append_sheet(C,w,"Sheet1"),JU(C,"exported-file.xlsx")},generateRandomString(r){let t="";const o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=o.length;for(let c=0;c<r;c++)t+=o.charAt(Math.floor(Math.random()*a));return t},delayedPrint(){this.isLoadinPrint=!0,this.$nextTick(()=>{this.$refs.hiddenPrintBtn?.click(),this.isLoadinPrint=!1})},editAction(r){this.$emit("editAction",r)},deleteAction(){this.$emit("deleteAction")},generalAction(r){this.$emit("generalAction",r)},forDynCompIs(r){return typeof r=="object"?r:null},handleItemsPerPageChange(r){this.itemsPerPage=r},goToPage(r){r>=1&&r<=this.totalPages&&(this.currentPage=r)},sort(r){r===this.sortKey?this.sortOrder*=-1:(this.sortKey=r,this.sortOrder=1)},sortData(r){return this.sortKey?r.slice().sort((t,o)=>(t[this.sortKey]<o[this.sortKey]?-1:1)*this.sortOrder):r},previousPage(){this.currentPage>1&&this.currentPage--},nextPage(){this.currentPage<this.totalPages&&this.currentPage++},firstPage(){this.currentPage=1},lastPage(){this.currentPage=this.totalPages},goToPage(r){r>=1&&r<=this.totalPages&&(this.currentPage=r)},GetItemLists(){this.isLoading=!0,axios.get(this.xprops.route_get_data).then(r=>{this.itemLists=r.data,this.isLoading=!1}).catch(r=>{console.error(r),this.isLoading=!1})}},mounted(){},directives:{print:tW}},qAe={class:"p-0"},jAe={ref:"hiddenPrintBtn",style:{display:"none"}},GAe={class:"flex flex-col flex-wrap gap-4 pb-4 xl:flex-row xl:items-center xl:justify-between"},YAe={class:"flex items-center gap-2"},KAe={class:"mt-[9px]"},JAe={class:"relative"},e5e={class:"flex flex-wrap mb-3"},t5e=["id"],n5e=["id"],o5e={class:"hidden text-sm font-normal text-center text-gray-600 print:table-header-group! lg:table-header-group dark:border-gray-600 bg-gray-50 dark:bg-gray-800 dark:text-gray-400 print:border-[1px]!"},s5e=["onClick"],r5e={class:"inline-flex items-center justify-center gap-1"},i5e={key:0,class:"print:hidden!"},a5e={class:"bg-white dark:bg-gray-900"},l5e={key:0},c5e=["colspan"],u5e=["data-label"],d5e=["innerHTML"],f5e={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"},h5e={class:"flex justify-between flex-1 sm:hidden"},m5e=["disabled"],g5e=["disabled"],p5e={class:"hidden sm:flex sm:flex-1 sm:items-center sm:justify-between"},b5e={class:"text-sm text-gray-700 dark:text-gray-400"},y5e={class:"font-medium"},O5e={class:"font-medium"},x5e={class:"font-medium"},v5e={"aria-label":"Page navigation"},w5e={class:"flex items-center h-8 -space-x-px text-sm"},S5e=["disabled"],k5e=["onClick"],C5e=["onClick"],E5e=["disabled"];function _5e(r,t,o,a,c,f){const h=p.resolveComponent("dropdown"),y=p.resolveComponent("gl-button"),w=p.resolveDirective("print");return p.openBlock(),p.createElementBlock("div",qAe,[p.withDirectives(p.createElementVNode("button",jAe,null,512),[[w,c.printObj]]),p.createElementVNode("div",GAe,[p.createElementVNode("div",YAe,[t[6]||(t[6]=p.createElementVNode("span",{class:"font-medium"}," Show ",-1)),p.createElementVNode("div",KAe,[p.createVNode(h,{has_cancel:!1,options:c.showNoOfEntries,modelValue:c.itemsPerPage,"onUpdate:modelValue":t[0]||(t[0]=C=>c.itemsPerPage=C),is_required:!1,field_name:"NoOfEntries",label_name:"",default_value:10,show:!1,placeholder:"Please select an option"},null,8,["options","modelValue"])]),t[7]||(t[7]=p.createElementVNode("span",{class:"font-medium"}," Entries ",-1))]),t[9]||(t[9]=p.createElementVNode("label",{for:"table-search",class:"sr-only"},"Search",-1)),p.createElementVNode("div",JAe,[t[8]||(t[8]=p.createElementVNode("div",{class:"absolute inset-y-0 left-0 flex items-center pointer-events-none rtl:inset-r-0 rtl:right-0 ps-3"},null,-1)),p.withDirectives(p.createElementVNode("input",{type:"text","onUpdate:modelValue":t[1]||(t[1]=C=>c.search=C),class:"gl-input-form",placeholder:"Search ..."},null,512),[[p.vModelText,c.search]])])]),p.createElementVNode("div",e5e,[p.createVNode(y,{onClick:f.delayedPrint,tag:"button",is_loading:c.isLoadinPrint,button_type:"default",has_border_reduced:!1,classes:"rounded-s-lg"},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(o.language?.print??"Print"),1)]),_:1},8,["onClick","is_loading"]),p.createVNode(y,{onClick:f.exportToExcel,tag:"button",button_type:"default",has_border_reduced:!1,classes:"rounded-e-lg"},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(o.language?.excel??"Excel"),1)]),_:1},8,["onClick"])]),p.createElementVNode("div",{id:"print_"+c.Random_string,class:"overflow-auto rounded-lg dark:text-gray-400 dark:bg-gray-800"},[p.createElementVNode("table",{id:"table"+c.Random_string,class:"w-full h-full max-w-full overflow-hidden bg-white border-separate xl:overflow-auto lg:border-collapse print:border-collapse! border-spacing-y-5 lg:border-spacing-y-0 print:border-spacing-y-0! dark:border-gray-800 dark:bg-gray-900"},[p.createElementVNode("thead",o5e,[p.createElementVNode("tr",null,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(o.columns,(C,T)=>(p.openBlock(),p.createElementBlock("th",{key:T,onClick:R=>f.sort(C.field_name,C.sortable),class:"w-full px-4 py-2 lg:w-2/12 print:w-2/12! print:border-[1px]!"},[p.createElementVNode("div",r5e,[p.createElementVNode("span",null,p.toDisplayString(C.field_label),1),c.sortKey===C.field_name?(p.openBlock(),p.createElementBlock("span",i5e,t[10]||(t[10]=[p.createElementVNode("svg",{class:"w-4 h-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[p.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 20V7m0 13-4-4m4 4 4-4m4-12v13m0-13 4 4m-4-4-4 4"})],-1)]))):p.createCommentVNode("",!0)])],8,s5e))),128))])]),p.createElementVNode("tbody",a5e,[c.isLoading?(p.openBlock(),p.createElementBlock("tr",l5e,[p.createElementVNode("td",{colspan:o.columns.length},t[11]||(t[11]=[p.createElementVNode("div",{role:"status",class:"p-4 space-y-4 border border-gray-200 divide-y divide-gray-200 rounded-sm shadow-sm animate-pulse dark:divide-gray-700 md:p-6 dark:border-gray-700"},[p.createElementVNode("div",{class:"flex items-center justify-between"},[p.createElementVNode("div",null,[p.createElementVNode("div",{class:"h-3 bg-gray-300 rounded-full dark:bg-gray-600 w-24 mb-3"}),p.createElementVNode("div",{class:"w-32 h-2 bg-gray-200 rounded-full dark:bg-gray-700"})]),p.createElementVNode("div",{class:"h-3 bg-gray-300 rounded-full dark:bg-gray-700 w-12"})]),p.createElementVNode("div",{class:"flex items-center justify-between pt-4"},[p.createElementVNode("div",null,[p.createElementVNode("div",{class:"h-3 bg-gray-300 rounded-full dark:bg-gray-600 w-24 mb-3"}),p.createElementVNode("div",{class:"w-32 h-2 bg-gray-200 rounded-full dark:bg-gray-700"})]),p.createElementVNode("div",{class:"h-3 bg-gray-300 rounded-full dark:bg-gray-700 w-12"})]),p.createElementVNode("div",{class:"flex items-center justify-between pt-4"},[p.createElementVNode("div",null,[p.createElementVNode("div",{class:"h-3 bg-gray-300 rounded-full dark:bg-gray-600 w-24 mb-3"}),p.createElementVNode("div",{class:"w-32 h-2 bg-gray-200 rounded-full dark:bg-gray-700"})]),p.createElementVNode("div",{class:"h-3 bg-gray-300 rounded-full dark:bg-gray-700 w-12"})]),p.createElementVNode("div",{class:"flex items-center justify-between pt-4"},[p.createElementVNode("div",null,[p.createElementVNode("div",{class:"h-3 bg-gray-300 rounded-full dark:bg-gray-600 w-24 mb-3"}),p.createElementVNode("div",{class:"w-32 h-2 bg-gray-200 rounded-full dark:bg-gray-700"})]),p.createElementVNode("div",{class:"h-3 bg-gray-300 rounded-full dark:bg-gray-700 w-12"})]),p.createElementVNode("div",{class:"flex items-center justify-between pt-4"},[p.createElementVNode("div",null,[p.createElementVNode("div",{class:"h-3 bg-gray-300 rounded-full dark:bg-gray-600 w-24 mb-3"}),p.createElementVNode("div",{class:"w-32 h-2 bg-gray-200 rounded-full dark:bg-gray-700"})]),p.createElementVNode("div",{class:"h-3 bg-gray-300 rounded-full dark:bg-gray-700 w-12"})]),p.createElementVNode("span",{class:"sr-only"},"Loading...")],-1)]),8,c5e)])):p.createCommentVNode("",!0),c.isLoading?p.createCommentVNode("",!0):(p.openBlock(!0),p.createElementBlock(p.Fragment,{key:1},p.renderList(f.paginatedData,(C,T)=>(p.openBlock(),p.createElementBlock("tr",{key:T,class:"text-gray-500 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-800 dark:hover:text-gray-200"},[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(o.columns,(R,B)=>(p.openBlock(),p.createElementBlock("td",{key:B,"data-label":R.field_label,class:p.normalizeClass(["text-pretty before:content-[attr(data-label)] before:font-bold dark:before:text-gray-400 lg:before:content-[''] print:before:content-['']! flex flex-col justify-between gap-2 lg:table-cell print:table-cell! py-4 px-5 lg:py-3 lg:px-4 print:py-3! print:px-4! border-[1px]! dark:border-gray-700",{"rounded-t-lg lg:rounded-t-none!":B===0,"rounded-b-lg lg:rounded-b-none!":B===o.columns.length-1}])},[p.createElementVNode("div",{class:p.normalizeClass([R.field_name==="action"?"":"overflow-auto","td_overflow_auto max-h-40 max-w-100"])},[R.tdComp?(p.openBlock(),p.createBlock(p.resolveDynamicComponent(f.forDynCompIs(R.tdComp)),{key:0,row:C,field:R.field_name,xprops:o.xprops,tdProps:R.tdProps,onEditAction:V=>f.editAction(C),onGeneralAction:V=>f.generalAction(C)},null,40,["row","field","xprops","tdProps","onEditAction","onGeneralAction"])):(p.openBlock(),p.createElementBlock("p",{key:1,class:"text-pretty",innerHTML:C[R.field_name]},null,8,d5e))],2)],10,u5e))),128))]))),128))])],8,n5e)],8,t5e),f.paginatedData.length>0?(p.openBlock(),p.createElementBlock("div",f5e,[p.createElementVNode("div",h5e,[p.createElementVNode("a",{href:"#",onClick:t[2]||(t[2]=p.withModifiers((...C)=>f.previousPage&&f.previousPage(...C),["prevent"])),disabled:c.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,m5e),p.createElementVNode("a",{href:"#",onClick:t[3]||(t[3]=p.withModifiers((...C)=>f.nextPage&&f.nextPage(...C),["prevent"])),disabled:c.currentPage===f.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,g5e)]),p.createElementVNode("div",p5e,[p.createElementVNode("div",null,[p.createElementVNode("p",b5e,[t[12]||(t[12]=p.createTextVNode(" Showing ")),p.createElementVNode("span",y5e,p.toDisplayString(f.firstItemIndex),1),t[13]||(t[13]=p.createTextVNode(" to ")),p.createElementVNode("span",O5e,p.toDisplayString(f.lastItemIndex),1),t[14]||(t[14]=p.createTextVNode(" of ")),p.createElementVNode("span",x5e,p.toDisplayString(f.filteredData.length),1),t[15]||(t[15]=p.createTextVNode(" entries "))])]),p.createElementVNode("div",null,[p.createElementVNode("nav",v5e,[p.createElementVNode("ul",w5e,[p.createElementVNode("li",null,[p.createElementVNode("a",{href:"#",onClick:t[4]||(t[4]=p.withModifiers((...C)=>f.previousPage&&f.previousPage(...C),["prevent"])),disabled:c.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"},t[16]||(t[16]=[p.createElementVNode("span",{class:"sr-only"},"Previous",-1),p.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"},[p.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 1 1 5l4 4"})],-1)]),8,S5e)]),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(f.displayedPageNumbers,C=>(p.openBlock(),p.createElementBlock(p.Fragment,{key:C},[p.createElementVNode("li",null,[c.currentPage!==C?(p.openBlock(),p.createElementBlock("a",{key:0,href:"#",onClick:p.withModifiers(T=>f.goToPage(C),["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"},p.toDisplayString(C),9,k5e)):p.createCommentVNode("",!0)]),p.createElementVNode("li",null,[c.currentPage===C?(p.openBlock(),p.createElementBlock("a",{key:0,href:"#",onClick:p.withModifiers(T=>f.goToPage(C),["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"},p.toDisplayString(C),9,C5e)):p.createCommentVNode("",!0)])],64))),128)),p.createElementVNode("li",null,[p.createElementVNode("a",{href:"#",onClick:t[5]||(t[5]=p.withModifiers((...C)=>f.nextPage&&f.nextPage(...C),["prevent"])),disabled:c.currentPage===f.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"},t[17]||(t[17]=[p.createElementVNode("span",{class:"sr-only"},"Next",-1),p.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"},[p.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m1 9 4-4-4-4"})],-1)]),8,E5e)])])])])])])):p.createCommentVNode("",!0)])}const T5e=vi(XAe,[["render",_5e],["__scopeId","data-v-6d5541af"]]),A5e={components:{TailwindPagination:xU},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 r=this.search.toLowerCase();return this.sortData(this.data).filter(o=>Object.values(o).some(a=>a.toString().toLowerCase().includes(r)))},groupedItems(){return this.groupBy(this.groupField)}},methods:{groupBy(r){return this.itemLists.data?this.itemLists.data.reduce((t,o)=>{const a=o[r];t[a]||(t[a]=[]);const c={...o};return delete c[r],t[a].push(c),t},{}):[]},editAction(r){this.$emit("editAction",r)},forDynCompIs(r){return typeof r=="object"?r:null},GetItemLists(r=1){this.isLoading=!0,this.page=r;const t={sort:this.sortField,order:this.sortOrder,s:this.search,limit:this.perPage,page:this.page};axios.get(this.xprops.route_get_data,{params:t}).then(o=>{this.itemLists=o.data,this.isLoading=!1}).catch(o=>{console.error(o),this.isLoading=!1})},updateSortColumn(r,t){t&&(r===this.sortField?this.sortOrder=this.sortOrder==="asc"?"desc":"asc":(this.sortField=r,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(r){this.page=1,this.perPage=r,this.GetItemLists(this.page)},refreshData(r,t){this.isMounted&&r!==t&&this.GetItemLists()}}},P5e={class:"p-0"},D5e={class:"flex flex-col flex-wrap gap-4 pb-4 xl:flex-row xl:items-center xl:justify-between"},N5e={class:"flex items-center gap-2"},$5e={class:"font-medium"},R5e={class:"mt-[3px]"},B5e={class:"font-medium"},M5e={class:"relative"},F5e=["placeholder"],L5e={class:"overflow-auto rounded-lg dark:text-gray-400 dark:bg-gray-800"},I5e={class:"w-full h-full max-w-full overflow-hidden bg-white border-separate xl:overflow-auto lg:border-collapse print:border-collapse! border-spacing-y-5 lg:border-spacing-y-0 print:border-spacing-y-0! dark:border-gray-800 dark:bg-gray-900"},V5e={class:"hidden text-sm font-normal text-center text-gray-600 print:table-header-group! lg:table-header-group dark:border-gray-600 bg-gray-50 dark:bg-gray-800 dark:text-gray-400 print:border-[1px]!"},Q5e=["onClick"],z5e={class:"inline-flex items-center justify-center gap-1"},H5e={key:0,class:"print:hidden!"},Z5e={class:"bg-white dark:bg-gray-900"},U5e={key:0},W5e=["colspan"],X5e={class:"text-gray-500 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-800 dark:hover:text-gray-200"},q5e=["colspan"],j5e=["data-label"],G5e={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 Y5e(r,t,o,a,c,f){const h=p.resolveComponent("dropdown"),y=p.resolveComponent("TailwindPagination");return p.openBlock(),p.createElementBlock("div",P5e,[p.createElementVNode("div",D5e,[p.createElementVNode("div",N5e,[p.createElementVNode("span",$5e,p.toDisplayString(r.language?.show??"Show"),1),p.createElementVNode("div",R5e,[p.createVNode(h,{options_top_size:0,has_cancel:!1,options:c.pageOptions,modelValue:c.perPage,"onUpdate:modelValue":t[0]||(t[0]=w=>c.perPage=w),is_required:!1,field_name:"perPage",label_name:"",default_value:5,show:!1,placeholder:"Please select an option"},null,8,["options","modelValue"])]),p.createElementVNode("span",B5e,p.toDisplayString(r.language?.entries??"Entries"),1)]),t[5]||(t[5]=p.createElementVNode("label",{for:"table-search",class:"sr-only"},"Search",-1)),p.createElementVNode("div",M5e,[t[4]||(t[4]=p.createElementVNode("div",{class:"absolute inset-y-0 left-0 flex items-center pointer-events-none rtl:inset-r-0 rtl:right-0 ps-3"},null,-1)),p.withDirectives(p.createElementVNode("input",{type:"text","onUpdate:modelValue":t[1]||(t[1]=w=>c.search=w),onInput:t[2]||(t[2]=w=>f.handleSearch()),class:"gl-input-form",placeholder:r.language?.search?r.language?.search+" ...":"Search ..."},null,40,F5e),[[p.vModelText,c.search]])])]),p.createElementVNode("div",L5e,[p.createElementVNode("table",I5e,[p.createElementVNode("thead",V5e,[p.createElementVNode("tr",null,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(o.columns,(w,C)=>(p.openBlock(),p.createElementBlock("th",{key:C,onClick:T=>f.updateSortColumn(w.field_name,w.sortable),class:"w-full px-4 py-2 lg:w-2/12"},[p.createElementVNode("div",z5e,[p.createElementVNode("span",null,p.toDisplayString(w.field_label),1),c.sortField===w.field_name?(p.openBlock(),p.createElementBlock("span",H5e,t[6]||(t[6]=[p.createElementVNode("svg",{class:"w-4 h-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[p.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 20V7m0 13-4-4m4 4 4-4m4-12v13m0-13 4 4m-4-4-4 4"})],-1)]))):p.createCommentVNode("",!0)])],8,Q5e))),128))])]),p.createElementVNode("tbody",Z5e,[c.isLoading?(p.openBlock(),p.createElementBlock("tr",U5e,[p.createElementVNode("td",{colspan:o.columns.length},t[7]||(t[7]=[p.createElementVNode("div",{role:"status",class:"p-4 space-y-4 border border-gray-200 divide-y divide-gray-200 rounded-sm shadow-sm animate-pulse dark:divide-gray-700 md:p-6 dark:border-gray-700"},[p.createElementVNode("div",{class:"flex items-center justify-between"},[p.createElementVNode("div",null,[p.createElementVNode("div",{class:"w-24 h-3 mb-3 bg-gray-300 rounded-full dark:bg-gray-600"}),p.createElementVNode("div",{class:"w-32 h-2 bg-gray-200 rounded-full dark:bg-gray-700"})]),p.createElementVNode("div",{class:"w-12 h-3 bg-gray-300 rounded-full dark:bg-gray-700"})]),p.createElementVNode("div",{class:"flex items-center justify-between pt-4"},[p.createElementVNode("div",null,[p.createElementVNode("div",{class:"w-24 h-3 mb-3 bg-gray-300 rounded-full dark:bg-gray-600"}),p.createElementVNode("div",{class:"w-32 h-2 bg-gray-200 rounded-full dark:bg-gray-700"})]),p.createElementVNode("div",{class:"w-12 h-3 bg-gray-300 rounded-full dark:bg-gray-700"})]),p.createElementVNode("div",{class:"flex items-center justify-between pt-4"},[p.createElementVNode("div",null,[p.createElementVNode("div",{class:"w-24 h-3 mb-3 bg-gray-300 rounded-full dark:bg-gray-600"}),p.createElementVNode("div",{class:"w-32 h-2 bg-gray-200 rounded-full dark:bg-gray-700"})]),p.createElementVNode("div",{class:"w-12 h-3 bg-gray-300 rounded-full dark:bg-gray-700"})]),p.createElementVNode("div",{class:"flex items-center justify-between pt-4"},[p.createElementVNode("div",null,[p.createElementVNode("div",{class:"w-24 h-3 mb-3 bg-gray-300 rounded-full dark:bg-gray-600"}),p.createElementVNode("div",{class:"w-32 h-2 bg-gray-200 rounded-full dark:bg-gray-700"})]),p.createElementVNode("div",{class:"w-12 h-3 bg-gray-300 rounded-full dark:bg-gray-700"})]),p.createElementVNode("div",{class:"flex items-center justify-between pt-4"},[p.createElementVNode("div",null,[p.createElementVNode("div",{class:"w-24 h-3 mb-3 bg-gray-300 rounded-full dark:bg-gray-600"}),p.createElementVNode("div",{class:"w-32 h-2 bg-gray-200 rounded-full dark:bg-gray-700"})]),p.createElementVNode("div",{class:"w-12 h-3 bg-gray-300 rounded-full dark:bg-gray-700"})]),p.createElementVNode("span",{class:"sr-only"},"Loading...")],-1)]),8,W5e)])):p.createCommentVNode("",!0),c.isLoading?p.createCommentVNode("",!0):(p.openBlock(!0),p.createElementBlock(p.Fragment,{key:1},p.renderList(f.groupedItems,(w,C)=>(p.openBlock(),p.createElementBlock(p.Fragment,null,[p.createElementVNode("tr",X5e,[p.createElementVNode("td",{colspan:o.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"},p.toDisplayString(C),9,q5e)]),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(w,(T,R)=>(p.openBlock(),p.createElementBlock("tr",{key:R,class:"text-gray-500 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-800 dark:hover:text-gray-200"},[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(o.columns,(B,V)=>(p.openBlock(),p.createElementBlock("td",{key:V,"data-label":B.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-[1px]! dark:border-gray-700"},[p.createElementVNode("div",{class:p.normalizeClass([B.field_name==="action"?"":"overflow-auto","td_overflow_auto max-h-40 max-w-100"])},[B.tdComp?(p.openBlock(),p.createBlock(p.resolveDynamicComponent(f.forDynCompIs(B.tdComp)),{key:0,row:T,field:B.field_name,xprops:o.xprops,tdProps:B.tdProps,onDeleteAction:t[3]||(t[3]=q=>f.GetItemLists()),onEditAction:q=>f.editAction(T)},null,40,["row","field","xprops","tdProps","onEditAction"])):(p.openBlock(),p.createElementBlock(p.Fragment,{key:1},[p.createTextVNode(p.toDisplayString(T[B.field_name]),1)],64))],2)],8,j5e))),128))]))),128))],64))),256))])])]),p.createElementVNode("div",G5e,[p.createVNode(y,{class:"mt-3 mb-0",data:c.itemLists,limit:c.limit,size:c.size,align:c.align,onPaginationChangePage:f.GetItemLists},null,8,["data","limit","size","align","onPaginationChangePage"])])])}const K5e=vi(A5e,[["render",Y5e],["__scopeId","data-v-1995ac95"]]),J5e={components:{},props:{data:Array,columns:Array,language:{type:Object,required:!1,default:()=>{}}},data(){const r=this.generateRandomString(6);return{isLoadinPrint:!1,Random_string:r,printObj:{id:"print_"+r,popTitle:"",beforeOpenCallback(t){},openCallback(t){t.isLoadinPrint=!1},closeCallback(t){t.isLoadinPrint=!1}},showNoOfEntries:[5,10,20,50,100,200,300,400,500,600,700,800,900,1e3,2e3,3e3,4e3,5e3,6e3,7e3,8e3,9e3,1e4,11e3,12e3,13e3,14e3,15e3,16e3,17e3,18e3,19e3,2e4],search:"",sortKey:"",sortOrder:1,currentPage:1,itemsPerPage:10,jumpToPage:"",maxDisplayedPages:10}},computed:{filteredData(){const r=this.search.toLowerCase();return this.sortData(this.data).filter(o=>Object.values(o).some(a=>a!=null&&a.toString().toLowerCase().includes(r)))},totalPages(){return Math.ceil(this.filteredData.length/this.itemsPerPage)},paginatedData(){const r=(this.currentPage-1)*this.itemsPerPage,t=r+this.itemsPerPage;return this.filteredData.slice(r,t)},displayedPageNumbers(){let r=Math.max(this.currentPage-Math.floor(this.maxDisplayedPages/2),1),t=r+this.maxDisplayedPages-1;return t>this.totalPages&&(t=this.totalPages,r=Math.max(t-this.maxDisplayedPages+1,1)),Array.from({length:t-r+1},(o,a)=>r+a)},firstItemIndex(){return this.itemsPerPage*(this.currentPage-1)+1},lastItemIndex(){const r=this.itemsPerPage*this.currentPage;return r>this.filteredData.length?this.filteredData.length:r}},methods:{exportToExcel(){const r=document.querySelector("#table"+this.Random_string),t=Array.from(r.querySelectorAll("thead th")).map(R=>R.innerText),a=["",...["action"]],c=t.map((R,B)=>a.includes(R)?B:-1).filter(R=>R!==-1),f=Array.from(r.querySelectorAll("tbody tr")).map(R=>Array.from(R.querySelectorAll("td")).map(V=>V.innerText).filter((V,q)=>!c.includes(q))),y=[t.filter((R,B)=>!c.includes(B)),...f],w=vb.aoa_to_sheet(y),C=vb.book_new();vb.book_append_sheet(C,w,"Sheet1"),JU(C,"exported-file.xlsx")},generateRandomString(r){let t="";const o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=o.length;for(let c=0;c<r;c++)t+=o.charAt(Math.floor(Math.random()*a));return t},delayedPrint(){this.isLoadinPrint=!0,this.$nextTick(()=>{this.$refs.hiddenPrintBtn?.click(),this.isLoadinPrint=!1})},handleItemsPerPageChange(r){this.itemsPerPage=r},goToPage(r){r>=1&&r<=this.totalPages&&(this.currentPage=r)},sort(r){r===this.sortKey?this.sortOrder*=-1:(this.sortKey=r,this.sortOrder=1)},sortData(r){return this.sortKey?r.slice().sort((t,o)=>(t[this.sortKey]<o[this.sortKey]?-1:1)*this.sortOrder):r},previousPage(){this.currentPage>1&&this.currentPage--},nextPage(){this.currentPage<this.totalPages&&this.currentPage++},firstPage(){this.currentPage=1},lastPage(){this.currentPage=this.totalPages},goToPage(r){r>=1&&r<=this.totalPages&&(this.currentPage=r)}},directives:{print:tW}},ePe={class:"p-0"},tPe={ref:"hiddenPrintBtn",style:{display:"none"}},nPe={class:"flex flex-col flex-wrap gap-4 pb-4 xl:flex-row xl:items-center xl:justify-between"},oPe={class:"flex items-center gap-2"},sPe={class:"mt-[9px]"},rPe={class:"relative"},iPe={class:"flex flex-wrap mb-3"},aPe=["id"],lPe=["id"],cPe={class:"hidden text-sm font-normal text-center text-gray-600 print:table-header-group! lg:table-header-group dark:border-gray-600 bg-gray-50 dark:bg-gray-800 dark:text-gray-400 print:border-[1px]!"},uPe=["onClick"],dPe={class:"inline-flex items-center justify-center gap-1"},fPe={key:0,class:"print:hidden!"},hPe={class:"bg-white dark:bg-gray-900"},mPe=["data-label"],gPe=["innerHTML"],pPe={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"},bPe={class:"flex justify-between flex-1 sm:hidden"},yPe=["disabled"],OPe=["disabled"],xPe={class:"hidden sm:flex sm:flex-1 sm:items-center sm:justify-between"},vPe={class:"text-sm text-gray-700 dark:text-gray-400"},wPe={class:"font-medium"},SPe={class:"font-medium"},kPe={class:"font-medium"},CPe={"aria-label":"Page navigation"},EPe={class:"flex items-center h-8 -space-x-px text-sm"},_Pe=["disabled"],TPe=["onClick"],APe=["onClick"],PPe=["disabled"];function DPe(r,t,o,a,c,f){const h=p.resolveComponent("dropdown"),y=p.resolveComponent("gl-button"),w=p.resolveDirective("print");return p.openBlock(),p.createElementBlock("div",ePe,[p.withDirectives(p.createElementVNode("button",tPe,null,512),[[w,c.printObj]]),p.createElementVNode("div",nPe,[p.createElementVNode("div",oPe,[t[6]||(t[6]=p.createElementVNode("span",{class:"font-medium"}," Show ",-1)),p.createElementVNode("div",sPe,[p.createVNode(h,{has_cancel:!1,options:c.showNoOfEntries,modelValue:c.itemsPerPage,"onUpdate:modelValue":t[0]||(t[0]=C=>c.itemsPerPage=C),is_required:!1,field_name:"NoOfEntries",label_name:"",default_value:10,show:!1,placeholder:"Please select an option"},null,8,["options","modelValue"])]),t[7]||(t[7]=p.createElementVNode("span",{class:"font-medium"}," Entries ",-1))]),t[9]||(t[9]=p.createElementVNode("label",{for:"table-search",class:"sr-only"},"Search",-1)),p.createElementVNode("div",rPe,[t[8]||(t[8]=p.createElementVNode("div",{class:"absolute inset-y-0 left-0 flex items-center pointer-events-none rtl:inset-r-0 rtl:right-0 ps-3"},null,-1)),p.withDirectives(p.createElementVNode("input",{type:"text","onUpdate:modelValue":t[1]||(t[1]=C=>c.search=C),class:"gl-input-form",placeholder:"Search ..."},null,512),[[p.vModelText,c.search]])])]),p.createElementVNode("div",iPe,[p.createVNode(y,{onClick:f.delayedPrint,tag:"button",is_loading:c.isLoadinPrint,button_type:"default",has_border_reduced:!1,classes:"rounded-s-lg"},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(o.language?.print??"Print"),1)]),_:1},8,["onClick","is_loading"]),p.createVNode(y,{onClick:f.exportToExcel,tag:"button",button_type:"default",has_border_reduced:!1,classes:"rounded-e-lg"},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(o.language?.excel??"Excel"),1)]),_:1},8,["onClick"])]),p.createElementVNode("div",{id:"print_"+c.Random_string,class:"overflow-auto rounded-lg dark:text-gray-400 dark:bg-gray-800"},[p.createElementVNode("table",{id:"table"+c.Random_string,class:"w-full h-full max-w-full overflow-hidden bg-white border-separate xl:overflow-auto lg:border-collapse print:border-collapse! border-spacing-y-5 lg:border-spacing-y-0 print:border-spacing-y-0! dark:border-gray-800 dark:bg-gray-900"},[p.createElementVNode("thead",cPe,[p.createElementVNode("tr",null,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(o.columns,(C,T)=>(p.openBlock(),p.createElementBlock("th",{key:T,onClick:p.withModifiers(R=>f.sort(C),["prevent"]),class:"w-full px-4 py-2 lg:w-2/12 print:w-2/12! print:border-[1px]!"},[p.createElementVNode("div",dPe,[p.createElementVNode("span",null,p.toDisplayString(C),1),c.sortKey===C?(p.openBlock(),p.createElementBlock("span",fPe,t[10]||(t[10]=[p.createElementVNode("svg",{class:"w-4 h-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[p.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 20V7m0 13-4-4m4 4 4-4m4-12v13m0-13 4 4m-4-4-4 4"})],-1)]))):p.createCommentVNode("",!0)])],8,uPe))),128))])]),p.createElementVNode("tbody",hPe,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(f.paginatedData,(C,T)=>(p.openBlock(),p.createElementBlock("tr",{key:T,class:"text-gray-500 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-800 dark:hover:text-gray-200"},[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(o.columns,(R,B)=>(p.openBlock(),p.createElementBlock("td",{key:B,"data-label":R,class:p.normalizeClass(["text-pretty before:content-[attr(data-label)] before:font-bold dark:before:text-gray-400 lg:before:content-[''] print:before:content-['']! flex flex-col justify-between gap-2 lg:table-cell print:table-cell! py-4 px-5 lg:py-3 lg:px-4 print:py-3! print:px-4! border-[1px]! dark:border-gray-700",{"rounded-t-lg lg:rounded-t-none!":B===0,"rounded-b-lg lg:rounded-b-none!":B===o.columns.length-1}])},[p.createElementVNode("p",{class:"text-pretty",innerHTML:C[B]},null,8,gPe)],10,mPe))),128))]))),128))])],8,lPe)],8,aPe),f.paginatedData.length>0?(p.openBlock(),p.createElementBlock("div",pPe,[p.createElementVNode("div",bPe,[p.createElementVNode("a",{href:"#",onClick:t[2]||(t[2]=p.withModifiers((...C)=>f.previousPage&&f.previousPage(...C),["prevent"])),disabled:c.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,yPe),p.createElementVNode("a",{href:"#",onClick:t[3]||(t[3]=p.withModifiers((...C)=>f.nextPage&&f.nextPage(...C),["prevent"])),disabled:c.currentPage===f.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,OPe)]),p.createElementVNode("div",xPe,[p.createElementVNode("div",null,[p.createElementVNode("p",vPe,[t[11]||(t[11]=p.createTextVNode(" Showing ")),p.createElementVNode("span",wPe,p.toDisplayString(f.firstItemIndex),1),t[12]||(t[12]=p.createTextVNode(" to ")),p.createElementVNode("span",SPe,p.toDisplayString(f.lastItemIndex),1),t[13]||(t[13]=p.createTextVNode(" of ")),p.createElementVNode("span",kPe,p.toDisplayString(f.filteredData.length),1),t[14]||(t[14]=p.createTextVNode(" entries "))])]),p.createElementVNode("div",null,[p.createElementVNode("nav",CPe,[p.createElementVNode("ul",EPe,[p.createElementVNode("li",null,[p.createElementVNode("a",{href:"#",onClick:t[4]||(t[4]=p.withModifiers((...C)=>f.previousPage&&f.previousPage(...C),["prevent"])),disabled:c.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"},t[15]||(t[15]=[p.createElementVNode("span",{class:"sr-only"},"Previous",-1),p.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"},[p.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 1 1 5l4 4"})],-1)]),8,_Pe)]),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(f.displayedPageNumbers,C=>(p.openBlock(),p.createElementBlock(p.Fragment,{key:C},[p.createElementVNode("li",null,[c.currentPage!==C?(p.openBlock(),p.createElementBlock("a",{key:0,href:"#",onClick:p.withModifiers(T=>f.goToPage(C),["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"},p.toDisplayString(C),9,TPe)):p.createCommentVNode("",!0)]),p.createElementVNode("li",null,[c.currentPage===C?(p.openBlock(),p.createElementBlock("a",{key:0,href:"#",onClick:p.withModifiers(T=>f.goToPage(C),["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"},p.toDisplayString(C),9,APe)):p.createCommentVNode("",!0)])],64))),128)),p.createElementVNode("li",null,[p.createElementVNode("a",{href:"#",onClick:t[5]||(t[5]=p.withModifiers((...C)=>f.nextPage&&f.nextPage(...C),["prevent"])),disabled:c.currentPage===f.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"},t[16]||(t[16]=[p.createElementVNode("span",{class:"sr-only"},"Next",-1),p.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"},[p.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m1 9 4-4-4-4"})],-1)]),8,PPe)])])])])])])):p.createCommentVNode("",!0)])}const NPe=vi(J5e,[["render",DPe],["__scopeId","data-v-c18f6d65"]]),$Pe={props:["field","row","tdProps"],methods:{convertCronToHuman(r){const[t,o,a,c,f]=r.split(" ");if(t==="*"&&o==="*"&&a==="*"&&c==="*"&&f==="*")return"Runs every minute.";if(t==="0"&&o==="0"&&a==="*"&&c==="*"&&f!=="*")return`Runs at 12:00 AM every ${this.convertDayOfWeek(f)}.`;const h={0:"Sunday",1:"Monday",2:"Tuesday",3:"Wednesday",4:"Thursday",5:"Friday",6:"Saturday","*":"every day"},y={1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December","*":"every month"},w=this.convertField(t,"minute",59),C=this.convertField(o,"hour",23),T=this.convertField(a,"day of the month",31),R=this.convertField(c,"month",12,y),B=this.convertField(f,"day",6,h);return`Runs ${w} ${C} ${T} ${R} on ${B}.`},convertField(r,t,o,a={}){if(r==="*")return`every ${t}`;if(r.includes("/")){const[c,f]=r.split("/");return`every ${f} ${t}${f>1?"s":""} starting at ${c}`}if(r.includes("-")){const[c,f]=r.split("-");return`${t}s from ${c} to ${f}`}if(r.includes(",")){const c=r.split(",").map(f=>a[f]||f);return`${t}s on ${c.join(", ")}`}return a[r]||`${t} ${r}`},convertDayOfWeek(r){return{0:"Sunday",1:"Monday",2:"Tuesday",3:"Wednesday",4:"Thursday",5:"Friday",6:"Saturday"}[r]||"Invalid day"},formatHour(r){const t=parseInt(r,10),o=t>=12?"PM":"AM";return`${(t%12||12).toString().padStart(2,"0")}:00 ${o}`}}},RPe={key:0,class:"flex flex-wrap gap-2"},BPe={class:"px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded-sm dark:bg-blue-900 dark:text-blue-300"};function MPe(r,t,o,a,c,f){return o.row[o.field]?(p.openBlock(),p.createElementBlock("div",RPe,[p.createElementVNode("span",BPe,p.toDisplayString(f.convertCronToHuman(o.row[o.field])),1)])):p.createCommentVNode("",!0)}const FPe=vi($Pe,[["render",MPe]]),LPe={setup(){const r=p.ref([]),t=c=>{r.value.push(c)},o=c=>{const f=r.value.indexOf(c);f>-1&&r.value.splice(f,1)},a=c=>{r.value.forEach(f=>{f!==c&&f.isOpen&&f.isOpen.value!==void 0&&(f.isOpen.value=!1)}),c.isOpen&&c.isOpen.value!==void 0&&(c.isOpen.value=!c.isOpen.value)};return p.provide("accordionsWrapper",{registerAccordion:t,unregisterAccordion:o,toggleAccordion:a,accordions:r}),{}}};function IPe(r,t,o,a,c,f){return p.openBlock(),p.createElementBlock("div",null,[p.renderSlot(r.$slots,"default")])}const VPe=vi(LPe,[["render",IPe]]),QPe={props:{title:{type:String,required:!0}},setup(){const r=p.ref(!1),t=p.inject("accordionsWrapper"),a=(()=>{var C=new Date().getTime();typeof performance<"u"&&typeof performance.now=="function"&&(C+=performance.now());var T="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(R){var B=(C+Math.random()*16)%16|0;return C=Math.floor(C/16),(R==="x"?B:B&3|8).toString(16)});return T})(),c={isOpen:r,id:a},f=p.computed(()=>t.accordions.value),h=p.computed(()=>f.value.length>0&&f.value[0].id===a),y=p.computed(()=>f.value.length>0&&f.value[f.value.length-1].id===a);return p.onMounted(()=>{t.registerAccordion(c)}),p.onUnmounted(()=>{t.unregisterAccordion(c)}),{isOpen:r,isFirstAccordion:h,isLastAccordion:y,toggle:()=>{t.toggleAccordion(c)}}}},zPe={class:"flex items-center"},HPe={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"},ZPe={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"};function UPe(r,t,o,a,c,f){return p.openBlock(),p.createElementBlock("div",null,[p.createElementVNode("h2",null,[p.createElementVNode("button",{onClick:t[0]||(t[0]=(...h)=>a.toggle&&a.toggle(...h)),type:"button",class:p.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":a.isFirstAccordion,"border-b-0":!a.isLastAccordion,"bg-gray-100 dark:bg-gray-800":a.isOpen}]),"aria-expanded":"true"},[p.createElementVNode("span",zPe,p.toDisplayString(o.title),1),a.isOpen?p.createCommentVNode("",!0):(p.openBlock(),p.createElementBlock("svg",HPe,t[1]||(t[1]=[p.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5 5 1 1 5"},null,-1)]))),a.isOpen?(p.openBlock(),p.createElementBlock("svg",ZPe,t[2]||(t[2]=[p.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5 5 1 1 5"},null,-1)]))):p.createCommentVNode("",!0)],2)]),a.isOpen?(p.openBlock(),p.createElementBlock("div",{key:0,class:p.normalizeClass([{"border-b-0":!a.isLastAccordion,"border-t-0":a.isLastAccordion},"p-5 border border-gray-200 dark:border-gray-700 dark:bg-gray-900"])},[p.renderSlot(r.$slots,"default")],2)):p.createCommentVNode("",!0)])}const WPe=vi(QPe,[["render",UPe]]),XPe={class:"flex items-center p-4 text-gray-500 bg-white rounded-lg shadow-sm dark:bg-gray-800 dark:text-gray-400",role:"alert"},qPe={key:0,class:"inline-flex items-center justify-center shrink-0 w-8 h-8 text-blue-500 bg-blue-100 rounded-lg dark:bg-blue-800 dark:text-blue-200"},jPe={key:1,class:"inline-flex items-center justify-center shrink-0 w-8 h-8 text-green-500 bg-green-100 rounded-lg dark:bg-green-800 dark:text-green-200"},GPe={key:2,class:"inline-flex items-center justify-center shrink-0 w-8 h-8 text-red-500 bg-red-100 rounded-lg dark:bg-red-800 dark:text-red-200"},YPe={key:3,class:"inline-flex items-center justify-center shrink-0 w-8 h-8 text-orange-500 bg-orange-100 rounded-lg dark:bg-orange-700 dark:text-orange-200"},KPe={class:"ml-3 text-sm font-normal"},JPe={__name:"ToastListItem",props:{message:String,duration:{type:Number,default:2e3},type:{type:String,default:"success"}},emits:["remove"],setup(r,{emit:t}){const o=r;p.onMounted(()=>{setTimeout(()=>a("remove"),o.duration)});const a=t;return(c,f)=>(p.openBlock(),p.createElementBlock("div",XPe,[o.type==="info"?(p.openBlock(),p.createElementBlock("div",qPe,f[1]||(f[1]=[p.createElementVNode("svg",{class:"w-5 h-5","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 20"},[p.createElementVNode("path",{d:"M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"})],-1),p.createElementVNode("span",{class:"sr-only"},"info icon",-1)]))):p.createCommentVNode("",!0),o.type==="success"?(p.openBlock(),p.createElementBlock("div",jPe,f[2]||(f[2]=[p.createElementVNode("svg",{class:"w-5 h-5","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 20"},[p.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),p.createElementVNode("span",{class:"sr-only"},"success icon",-1)]))):p.createCommentVNode("",!0),o.type==="error"?(p.openBlock(),p.createElementBlock("div",GPe,f[3]||(f[3]=[p.createElementVNode("svg",{class:"w-5 h-5","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 20"},[p.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),p.createElementVNode("span",{class:"sr-only"},"Error icon",-1)]))):p.createCommentVNode("",!0),o.type==="warning"?(p.openBlock(),p.createElementBlock("div",YPe,f[4]||(f[4]=[p.createElementVNode("svg",{class:"w-5 h-5","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 20"},[p.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),p.createElementVNode("span",{class:"sr-only"},"Warning icon",-1)]))):p.createCommentVNode("",!0),p.createElementVNode("div",KPe,p.toDisplayString(o.message),1),p.createElementVNode("button",{onClick:f[0]||(f[0]=h=>a("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"},f[5]||(f[5]=[p.createElementVNode("span",{class:"sr-only"},"Close",-1),p.createElementVNode("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[p.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)]))]))}},eDe={__name:"GlToastList",setup(r){function t(o){rb.methods.remove(o)}return(o,a)=>(p.openBlock(),p.createBlock(p.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:p.withCtx(()=>[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(p.unref(rb).state.items,(c,f)=>(p.openBlock(),p.createBlock(JPe,{key:c.key,message:c.message,type:c.type,duration:c.duration,onRemove:h=>t(f)},null,8,["message","type","duration","onRemove"]))),128))]),_:1}))}},tDe={key:0,class:"flex lg:justify-center"},nDe={class:"xs:right-[unset] ltr:lg:right-[30px] rtl:lg:left-[30px] absolute z-10 mt-11 origin-top-right bg-white rounded-lg w-44 dark:bg-gray-800 shadow-lg border dark:border-gray-700"},oDe={class:"py-2 text-sm text-gray-700 dark:text-gray-200","aria-labelledby":"dropdownDividerButton"},sDe={key:0},rDe=["href"],iDe={key:1},aDe={__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(r,{emit:t}){const o=r,a=p.ref(!1),c=p.ref(!1),f=()=>{a.value=!1},h=()=>{a.value=!0},y=()=>{c.value=!1},w=()=>{c.value=!0},C=t,T=()=>{axios.delete(`${o.xprops.route}/${o.row.id}`).then(()=>{y(),C("deleteAction"),rb.methods.add({message:"Item deleted successfully.",type:"success",duration:5e3})}).catch(R=>{console.log(R)})};return(R,B)=>{const V=p.resolveDirective("click-outside");return p.openBlock(),p.createElementBlock(p.Fragment,null,[p.createVNode(cA,{isOpen:c.value,onConfirmDelete:T,onCancelDelete:y},null,8,["isOpen"]),r.row&&R.can(`edit_${r.xprops.permission} || delete_${r.xprops.permission}`)?p.withDirectives((p.openBlock(),p.createElementBlock("div",tDe,[p.createElementVNode("button",{onClick:h,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-hidden dark:text-white focus:ring-gray-50 dark:bg-gray-800 dark:hover:bg-gray-700 dark:focus:ring-gray-600",type:"button"},B[0]||(B[0]=[p.createElementVNode("svg",{class:"w-5 h-5","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 4 15"},[p.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)])),p.withDirectives(p.createElementVNode("div",nDe,[p.createElementVNode("ul",oDe,[R.can(`edit_${r.xprops.permission}`)?(p.openBlock(),p.createElementBlock("li",sDe,[p.createElementVNode("a",{href:r.xprops.route+"/"+r.row.id+"/edit",class:"block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"},B[1]||(B[1]=[p.createElementVNode("i",{class:"mr-2 fa-solid fa-list-ul opacity-80"},null,-1),p.createTextVNode(" Edit")]),8,rDe)])):p.createCommentVNode("",!0),R.can(`delete_${r.xprops.permission}`)?(p.openBlock(),p.createElementBlock("li",iDe,[p.createElementVNode("a",{href:"#",onClick:p.withModifiers(w,["prevent"]),class:"block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"},B[2]||(B[2]=[p.createElementVNode("i",{class:"mr-2 fa-solid fa-trash-can opacity-80"},null,-1),p.createTextVNode(" Remove")]))])):p.createCommentVNode("",!0)])],512),[[p.vShow,a.value]])])),[[V,f]]):p.createCommentVNode("",!0)],64)}}},lDe={key:0,class:"flex lg:justify-center"},cDe={class:"absolute z-10 mt-5 origin-top-right bg-white divide-y divide-gray-100 rounded-lg shadow-sm w-44 dark:bg-gray-700 dark:divide-gray-600"},uDe={class:"py-2 text-sm text-gray-700 dark:text-gray-200","aria-labelledby":"dropdownDividerButton"},dDe={key:0},fDe={__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(r,{emit:t}){const o=r,a=p.ref(!1),c=p.ref(!1),f=()=>{a.value=!1},h=()=>{a.value=!0},y=()=>{c.value=!1},w=()=>{c.value=!0},C=t,T=()=>{axios.delete(`${o.xprops.route}/${o.row.id}`).then(()=>{y(),C("deleteAction"),rb.methods.add({message:"Item deleted successfully.",type:"success",duration:5e3})}).catch(R=>{console.log(R)})};return(R,B)=>{const V=p.resolveDirective("click-outside");return p.openBlock(),p.createElementBlock(p.Fragment,null,[p.createVNode(cA,{isOpen:c.value,onConfirmDelete:T,onCancelDelete:y},null,8,["isOpen"]),r.row&&R.can(`delete_${r.xprops.permission}`)?p.withDirectives((p.openBlock(),p.createElementBlock("div",lDe,[p.createElementVNode("button",{onClick:h,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-hidden dark:text-white focus:ring-gray-50 dark:bg-gray-800 dark:hover:bg-gray-700 dark:focus:ring-gray-600",type:"button"},B[0]||(B[0]=[p.createElementVNode("svg",{class:"w-5 h-5","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 4 15"},[p.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)])),p.withDirectives(p.createElementVNode("div",cDe,[p.createElementVNode("ul",uDe,[R.can(`delete_${r.xprops.permission}`)?(p.openBlock(),p.createElementBlock("li",dDe,[p.createElementVNode("a",{href:"#",onClick:p.withModifiers(w,["prevent"]),class:"block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"},B[1]||(B[1]=[p.createElementVNode("i",{class:"mr-2 fa-solid fa-trash-can opacity-80"},null,-1),p.createTextVNode(" Remove")]))])):p.createCommentVNode("",!0)])],512),[[p.vShow,a.value]])])),[[V,f]]):p.createCommentVNode("",!0)],64)}}},hDe={key:0,class:"flex lg:justify-center"},mDe={class:"xs:right-[unset] ltr:lg:right-[30px] rtl:lg:left-[30px] absolute z-10 mt-11 origin-top-right bg-white divide-y divide-gray-100 rounded-lg shadow-sm w-44 dark:bg-gray-700 dark:divide-gray-600"},gDe={class:"py-2 text-sm text-gray-700 dark:text-gray-200","aria-labelledby":"dropdownDividerButton"},pDe={key:0},bDe={key:1},yDe={__name:"DatatableDeleteEditAction",props:{language:{type:Object,required:!1,default:()=>{}},field:{type:String,default:""},route_url:{type:String,default:""},row:{type:[Array,Object],default:()=>({})},xprops:{type:Object,default:()=>({})},tdProps:{type:Object,default:()=>({})}},emits:["deleteAction","editAction"],setup(r,{emit:t}){const o=r,a=p.ref(!1),c=p.ref(!1),f=()=>{c.value=!1},h=()=>{c.value=!0},y=()=>{a.value=!1},w=()=>{a.value=!0},C=t,T=B=>{C("editAction",B)},R=()=>{axios.delete(`${o.xprops.route}/${o.row.id}`).then(()=>{f(),C("deleteAction"),rb.methods.add({message:o.language?.item_deleted_successfully??"Item deleted successfully.",type:"success",duration:5e3})}).catch(B=>{console.log(B)})};return(B,V)=>{const q=p.resolveDirective("click-outside");return p.openBlock(),p.createElementBlock(p.Fragment,null,[p.createVNode(cA,{language:r.language,isOpen:c.value,onConfirmDelete:R,onCancelDelete:f},null,8,["language","isOpen"]),r.row&&(B.can(`delete_${r.xprops.permission}`)||B.can(`access_${r.xprops.permission}`))?p.withDirectives((p.openBlock(),p.createElementBlock("div",hDe,[p.createElementVNode("button",{onClick:w,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-hidden dark:text-white focus:ring-gray-50 dark:bg-gray-800 dark:hover:bg-gray-700 dark:focus:ring-gray-600",type:"button"},V[1]||(V[1]=[p.createElementVNode("svg",{class:"w-5 h-5","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 4 15"},[p.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)])),p.withDirectives(p.createElementVNode("div",mDe,[p.createElementVNode("ul",gDe,[B.can(`access_${r.xprops.permission}`)?(p.openBlock(),p.createElementBlock("li",pDe,[p.createElementVNode("a",{href:"#",onClick:V[0]||(V[0]=p.withModifiers(U=>T(r.row),["prevent"])),class:"block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"},[V[2]||(V[2]=p.createElementVNode("i",{class:"mr-1 fa-solid fa-pen-to-square opacity-80"},null,-1)),p.createTextVNode(" "+p.toDisplayString(r.language?.edit??"Edit"),1)])])):p.createCommentVNode("",!0),B.can(`delete_${r.xprops.permission}`)?(p.openBlock(),p.createElementBlock("li",bDe,[p.createElementVNode("a",{href:"#",onClick:p.withModifiers(h,["prevent"]),class:"block px-4 py-2 text-red-600 hover:text-white hover:bg-red-600 dark:text-red-500 dark:hover:text-white dark:hover:bg-red-600"},[V[3]||(V[3]=p.createElementVNode("i",{class:"mr-1 fa-solid fa-trash-can opacity-80"},null,-1)),p.createTextVNode(" "+p.toDisplayString(r.language?.remove??"Remove"),1)])])):p.createCommentVNode("",!0)])],512),[[p.vShow,a.value]])])),[[q,y]]):p.createCommentVNode("",!0)],64)}}},ODe={props:["field","row"],computed:{isArray(){return Array.isArray(this.row)},isObject(){return typeof this.row=="object"},isString(){return typeof this.row=="string"}},mounted(){}},xDe=["href","title"],vDe={key:1,class:"m-1 d-inline-block"},wDe=["href","title"];function SDe(r,t,o,a,c,f){return p.openBlock(),p.createElementBlock("div",null,[f.isArray?(p.openBlock(!0),p.createElementBlock(p.Fragment,{key:0},p.renderList(o.row,(h,y)=>(p.openBlock(),p.createElementBlock("div",{key:y,class:"m-1 d-inline-block"},[p.createElementVNode("a",{href:h,title:h,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-hidden focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},t[0]||(t[0]=[p.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"},[p.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"}),p.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),p.createTextVNode(" Download ")]),8,xDe)]))),128)):f.isString?(p.openBlock(),p.createElementBlock("div",vDe,[p.createElementVNode("a",{href:o.row,title:o.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-hidden focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},t[1]||(t[1]=[p.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"},[p.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"}),p.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),p.createTextVNode(" Download ")]),8,wDe)])):p.createCommentVNode("",!0)])}const kDe=vi(ODe,[["render",SDe]]),CDe={props:["field","row"],computed:{isArray(){return Array.isArray(this.row[this.field])},isObject(){return typeof this.row[this.field]=="object"}}},EDe=["href","title"],_De={key:1,class:"m-1 d-inline-block"},TDe=["href","title"];function ADe(r,t,o,a,c,f){return f.isArray?(p.openBlock(!0),p.createElementBlock(p.Fragment,{key:0},p.renderList(o.row[o.field],h=>(p.openBlock(),p.createElementBlock("div",{key:h.id,class:"m-1 d-inline-block"},[p.createElementVNode("a",{href:h.url,title:h.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-hidden focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},t[0]||(t[0]=[p.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"},[p.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"}),p.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),p.createTextVNode(" Download ")]),8,EDe)]))),128)):f.isObject?(p.openBlock(),p.createElementBlock("div",_De,[p.createElementVNode("a",{href:o.row[o.field].url,title:o.row[o.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-hidden focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},t[1]||(t[1]=[p.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"},[p.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"}),p.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),p.createTextVNode(" Download ")]),8,TDe)])):p.createCommentVNode("",!0)}const PDe=vi(CDe,[["render",ADe]]),DDe={props:["field","row","tdProps"]},NDe={key:0},$De=["innerHTML"];function RDe(r,t,o,a,c,f){return o.row[o.field]?(p.openBlock(),p.createElementBlock("div",NDe,[p.createElementVNode("div",{class:"w-full",innerHTML:o.row[o.field]},null,8,$De)])):p.createCommentVNode("",!0)}const BDe=vi(DDe,[["render",RDe]]),MDe={props:["field","row","tdProps"],computed:{entry(){const[r,t]=this.field.split(".");return p.markRaw({key:r,field:t})},isArray(){return Array.isArray(this.row[this.entry.key])},isObject(){return typeof this.row[this.entry.key]=="object"}}},FDe={key:0,class:"flex flex-wrap gap-2"},LDe={key:1,class:"px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded-sm dark:bg-blue-900 dark:text-blue-300"};function IDe(r,t,o,a,c,f){return this.row[this.entry.key]?(p.openBlock(),p.createElementBlock("div",FDe,[f.isArray?(p.openBlock(!0),p.createElementBlock(p.Fragment,{key:0},p.renderList(o.row[f.entry.key],(h,y)=>(p.openBlock(),p.createElementBlock("span",{key:y,class:"px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded-sm dark:bg-blue-900 dark:text-blue-300"},p.toDisplayString(h[f.entry.field]),1))),128)):f.isObject?(p.openBlock(),p.createElementBlock("span",LDe,p.toDisplayString(o.row[f.entry.key][f.entry.field]),1)):p.createCommentVNode("",!0)])):p.createCommentVNode("",!0)}const VDe=vi(MDe,[["render",IDe]]),QDe={props:["field","row","tdProps"],computed:{entry(){const r=this.field.split("."),t=r.pop();return{keys:r,field:t}},isArray(){return Array.isArray(this.getNestedValue(this.row,this.entry.keys))},isObject(){return typeof this.getNestedValue(this.row,this.entry.keys)=="object"}},methods:{getNestedValue(r,t){return t.reduce((o,a)=>(o||{})[a],r)}}},zDe={class:"flex flex-wrap gap-2"},HDe={key:1,class:"px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded-sm dark:bg-blue-900 dark:text-blue-300"};function ZDe(r,t,o,a,c,f){return p.openBlock(),p.createElementBlock("div",zDe,[f.isArray?(p.openBlock(!0),p.createElementBlock(p.Fragment,{key:0},p.renderList(f.getNestedValue(o.row,f.entry.keys),(h,y)=>(p.openBlock(),p.createElementBlock("span",{key:y,class:"px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded-sm dark:bg-blue-900 dark:text-blue-300"},p.toDisplayString(h[f.entry.field]),1))),128)):f.isObject?(p.openBlock(),p.createElementBlock("span",HDe,p.toDisplayString(f.getNestedValue(o.row,f.entry.keys)[f.entry.field]),1)):p.createCommentVNode("",!0)])}const UDe=vi(QDe,[["render",ZDe]]),WDe={props:["field","row","tdProps"]},XDe={key:0},qDe={class:"m-1 d-inline-block"},jDe=["href","title"],GDe=["src","alt","title"];function YDe(r,t,o,a,c,f){return o.row[o.field]?(p.openBlock(),p.createElementBlock("div",XDe,[p.createElementVNode("div",qDe,[p.createElementVNode("a",{href:o.row[o.field].url,title:o.row[o.field].name,target:"_blank"},[p.createElementVNode("img",{src:o.row[o.field].thumbnail,alt:o.row[o.field].name,title:o.row[o.field].name},null,8,GDe)],8,jDe)])])):p.createCommentVNode("",!0)}const KDe=vi(WDe,[["render",YDe],["__scopeId","data-v-18c4893e"]]),JDe={props:["field","row","tdProps"],computed:{isArray(){return Array.isArray(this.row[this.field])},isObject(){return typeof this.row[this.field]=="object"}}},eNe={key:0,class:"grid grid-cols-2 gap-4"},tNe=["src","alt"],nNe={key:1},oNe=["src","alt"];function sNe(r,t,o,a,c,f){return f.isArray?(p.openBlock(),p.createElementBlock("div",eNe,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(o.row[o.field],h=>(p.openBlock(),p.createElementBlock("div",{key:h.id},[p.createElementVNode("img",{class:"h-auto max-w-full rounded-lg",src:h.thumbnail,alt:h.file_name},null,8,tNe)]))),128))])):f.isObject?(p.openBlock(),p.createElementBlock("div",nNe,[p.createElementVNode("img",{class:"h-auto max-w-full rounded-lg",src:o.row[o.field].thumbnail,alt:o.row[o.field].file_name},null,8,oNe)])):p.createCommentVNode("",!0)}const rNe=vi(JDe,[["render",sNe]]),iNe={props:["field","row","tdProps"],computed:{isActive(){return this.row[this.field]===1}}},aNe={class:"flex flex-wrap gap-2 text-nowrap"},lNe={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={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"};function uNe(r,t,o,a,c,f){return p.openBlock(),p.createElementBlock("div",aNe,[f.isActive?(p.openBlock(),p.createElementBlock("span",lNe,t[0]||(t[0]=[p.createElementVNode("span",{class:"w-2 h-2 bg-green-500 rounded-full me-1"},null,-1),p.createTextVNode(" Active ")]))):f.isActive?p.createCommentVNode("",!0):(p.openBlock(),p.createElementBlock("span",cNe,t[1]||(t[1]=[p.createElementVNode("span",{class:"w-2 h-2 bg-red-500 rounded-full me-1"},null,-1),p.createTextVNode(" Inactive ")])))])}const dNe=vi(iNe,[["render",uNe]]),fNe={props:["field","row","tdProps"],computed:{hasLabelColor(r){const t=this.tdProps.status_general_labels_color.find(o=>o.label===this.row[this.field]);return t?t.class:""}}},hNe={class:"flex flex-wrap gap-2 text-nowrap"},mNe={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"},gNe={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"},pNe={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"},bNe={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"},yNe={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"};function ONe(r,t,o,a,c,f){return p.openBlock(),p.createElementBlock("div",hNe,[f.hasLabelColor=="green"?(p.openBlock(),p.createElementBlock("span",mNe,[t[0]||(t[0]=p.createElementVNode("span",{class:"w-2 h-2 bg-green-500 rounded-full me-1"},null,-1)),p.createTextVNode(" "+p.toDisplayString(this.row[this.field]),1)])):p.createCommentVNode("",!0),f.hasLabelColor=="red"?(p.openBlock(),p.createElementBlock("span",gNe,[t[1]||(t[1]=p.createElementVNode("span",{class:"w-2 h-2 bg-red-500 rounded-full me-1"},null,-1)),p.createTextVNode(" "+p.toDisplayString(this.row[this.field]),1)])):p.createCommentVNode("",!0),f.hasLabelColor=="yellow"?(p.openBlock(),p.createElementBlock("span",pNe,[t[2]||(t[2]=p.createElementVNode("span",{class:"w-2 h-2 bg-yellow-500 rounded-full me-1"},null,-1)),p.createTextVNode(" "+p.toDisplayString(this.row[this.field]),1)])):p.createCommentVNode("",!0),f.hasLabelColor=="default"?(p.openBlock(),p.createElementBlock("span",bNe,[t[3]||(t[3]=p.createElementVNode("span",{class:"w-2 h-2 bg-blue-500 rounded-full me-1"},null,-1)),p.createTextVNode(" "+p.toDisplayString(this.row[this.field]),1)])):p.createCommentVNode("",!0),f.hasLabelColor=="animate"?(p.openBlock(),p.createElementBlock("span",yNe,[t[4]||(t[4]=p.createElementVNode("span",{class:"relative flex w-2 h-2 mr-1"},[p.createElementVNode("span",{class:"absolute inline-flex w-full h-full bg-blue-500 rounded-full animate-ping"}),p.createElementVNode("span",{class:"relative inline-flex w-2 h-2 bg-blue-500 rounded-full"})],-1)),p.createTextVNode(" "+p.toDisplayString(this.row[this.field]),1)])):p.createCommentVNode("",!0)])}const xNe=vi(fNe,[["render",ONe]]),vNe={props:["field","row","tdProps"],computed:{hasLabelColor(){return this.tdProps.specfic_color??""},badgeType(){switch(this.tdProps.badge_type){case"Default":return"rounded-sm text-xs";case"Large":return"rounded-sm text-sm ";case"Bordered":return"rounded-sm text-xs border";case"Pills":return"rounded-full text-xs";default:return""}}}},wNe={class:"flex flex-wrap gap-2 text-nowrap lg:justify-center"};function SNe(r,t,o,a,c,f){return p.openBlock(),p.createElementBlock("div",wNe,[f.hasLabelColor=="Default"?(p.openBlock(),p.createElementBlock("span",{key:0,class:p.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",f.badgeType])},p.toDisplayString(this.row[this.field]),3)):p.createCommentVNode("",!0),f.hasLabelColor=="Dark"?(p.openBlock(),p.createElementBlock("span",{key:1,class:p.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",f.badgeType])},p.toDisplayString(this.row[this.field]),3)):p.createCommentVNode("",!0),f.hasLabelColor=="Red"?(p.openBlock(),p.createElementBlock("span",{key:2,class:p.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",f.badgeType])},p.toDisplayString(this.row[this.field]),3)):p.createCommentVNode("",!0),f.hasLabelColor=="Green"?(p.openBlock(),p.createElementBlock("span",{key:3,class:p.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",f.badgeType])},p.toDisplayString(this.row[this.field]),3)):p.createCommentVNode("",!0),f.hasLabelColor=="Yellow"?(p.openBlock(),p.createElementBlock("span",{key:4,class:p.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",f.badgeType])},p.toDisplayString(this.row[this.field]),3)):p.createCommentVNode("",!0),f.hasLabelColor=="Indigo"?(p.openBlock(),p.createElementBlock("span",{key:5,class:p.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",f.badgeType])},p.toDisplayString(this.row[this.field]),3)):p.createCommentVNode("",!0),f.hasLabelColor=="Purple"?(p.openBlock(),p.createElementBlock("span",{key:6,class:p.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",f.badgeType])},p.toDisplayString(this.row[this.field]),3)):p.createCommentVNode("",!0),f.hasLabelColor=="Pink"?(p.openBlock(),p.createElementBlock("span",{key:7,class:p.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",f.badgeType])},p.toDisplayString(this.row[this.field]),3)):p.createCommentVNode("",!0)])}const kNe=vi(vNe,[["render",SNe]]),CNe={props:["field","row","tdProps"],computed:{entry(){const r=this.field.split("."),t=r.pop();return{keys:r,field:t}},isArray(){return Array.isArray(this.getNestedValue(this.row,this.entry.keys))},isObject(){return typeof this.getNestedValue(this.row,this.entry.keys)=="object"},hasLabelColor(r){const t=this.tdProps.status_general_labels_color.find(o=>o.text===this.getValue());return t?t.class:""},getLabel(){const r=this.tdProps.status_general_labels_color.find(t=>t.text===this.getValue());return r?r.label:""}},methods:{getValue(){return this.isObject?this.getNestedValue(this.row,this.entry.keys)[this.entry.field]:this.row[this.field]},getNestedValue(r,t){return t.reduce((o,a)=>(o||{})[a],r)}}},ENe={class:"flex flex-wrap gap-2 text-nowrap"},_Ne={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"},TNe={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"},ANe={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"},PNe={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"},DNe={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"};function NNe(r,t,o,a,c,f){return p.openBlock(),p.createElementBlock("div",ENe,[f.hasLabelColor=="green"?(p.openBlock(),p.createElementBlock("span",_Ne,[t[0]||(t[0]=p.createElementVNode("span",{class:"w-2 h-2 bg-green-500 rounded-full me-1"},null,-1)),p.createTextVNode(" "+p.toDisplayString(f.getLabel),1)])):p.createCommentVNode("",!0),f.hasLabelColor=="red"?(p.openBlock(),p.createElementBlock("span",TNe,[t[1]||(t[1]=p.createElementVNode("span",{class:"w-2 h-2 bg-red-500 rounded-full me-1"},null,-1)),p.createTextVNode(" "+p.toDisplayString(f.getLabel),1)])):p.createCommentVNode("",!0),f.hasLabelColor=="yellow"?(p.openBlock(),p.createElementBlock("span",ANe,[t[2]||(t[2]=p.createElementVNode("span",{class:"w-2 h-2 bg-yellow-500 rounded-full me-1"},null,-1)),p.createTextVNode(" "+p.toDisplayString(f.getLabel),1)])):p.createCommentVNode("",!0),f.hasLabelColor=="default"?(p.openBlock(),p.createElementBlock("span",PNe,[t[3]||(t[3]=p.createElementVNode("span",{class:"w-2 h-2 bg-blue-500 rounded-full me-1"},null,-1)),p.createTextVNode(" "+p.toDisplayString(f.getLabel),1)])):p.createCommentVNode("",!0),f.hasLabelColor=="animate"?(p.openBlock(),p.createElementBlock("span",DNe,[t[4]||(t[4]=p.createElementVNode("span",{class:"relative flex w-2 h-2 mr-1"},[p.createElementVNode("span",{class:"absolute inline-flex w-full h-full bg-blue-500 rounded-full animate-ping"}),p.createElementVNode("span",{class:"relative inline-flex w-2 h-2 bg-blue-500 rounded-full"})],-1)),p.createTextVNode(" "+p.toDisplayString(f.getLabel),1)])):p.createCommentVNode("",!0)])}const $Ne=vi(CNe,[["render",NNe]]),RNe={props:["field","row","tdProps"],computed:{formattedDate(){if(!this.row[this.field])return"";const r=new Date(this.row[this.field]),t=r.getFullYear(),o=String(r.getMonth()+1).padStart(2,"0"),a=String(r.getDate()).padStart(2,"0");let c=r.getHours();const f=String(r.getMinutes()).padStart(2,"0"),h=String(r.getSeconds()).padStart(2,"0"),y=c>=12?"PM":"AM";c=c%12,c=c||12;const w=String(c).padStart(2,"0");return`${a}-${o}-${t}, ${w}:${f}:${h} ${y}`}}},BNe={class:"w-full"};function MNe(r,t,o,a,c,f){return p.openBlock(),p.createElementBlock("div",BNe,p.toDisplayString(f.formattedDate),1)}const FNe=vi(RNe,[["render",MNe]]),LNe={props:["field","row","tdProps"],computed:{formattedDate(){if(!this.row[this.field])return"";const r=new Date(this.row[this.field]),t=r.getFullYear(),o=r.toLocaleString("default",{month:"long"}),a=r.getDate();return`${o} ${a}, ${t}`}}},INe={class:"w-full"};function VNe(r,t,o,a,c,f){return p.openBlock(),p.createElementBlock("div",INe,p.toDisplayString(f.formattedDate),1)}const QNe=vi(LNe,[["render",VNe]]),zNe={props:["field","row","tdProps"]},HNe={class:"flex flex-wrap gap-2 text-nowrap"},ZNe={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"},UNe={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"},WNe={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"};function XNe(r,t,o,a,c,f){return p.openBlock(),p.createElementBlock("div",HNe,[o.row[o.field]===0?(p.openBlock(),p.createElementBlock("span",ZNe,t[0]||(t[0]=[p.createElementVNode("span",{class:"relative flex w-2 h-2 mr-1"},[p.createElementVNode("span",{class:"absolute inline-flex w-full h-full bg-blue-500 rounded-full animate-ping"}),p.createElementVNode("span",{class:"relative inline-flex w-2 h-2 bg-blue-500 rounded-full"})],-1),p.createTextVNode(" Provisioning")]))):p.createCommentVNode("",!0),o.row[o.field]===2?(p.openBlock(),p.createElementBlock("span",UNe,t[1]||(t[1]=[p.createElementVNode("span",{class:"w-2 h-2 bg-yellow-500 rounded-full me-1"},null,-1),p.createTextVNode(" Paused ")]))):p.createCommentVNode("",!0),o.row[o.field]===1?(p.openBlock(),p.createElementBlock("span",WNe,t[2]||(t[2]=[p.createElementVNode("span",{class:"w-2 h-2 bg-green-500 rounded-full me-1"},null,-1),p.createTextVNode(" Active ")]))):p.createCommentVNode("",!0)])}const qNe=vi(zNe,[["render",XNe]]),jNe={props:["field","row","tdProps"]},GNe={key:0,class:"text-nowrap w-full"},YNe={class:"w-full h-full p-3 mx-0 mt-0 overflow-auto font-mono text-left break-words rounded-sm cursor-default whitespace-nowrap console_styles"};function KNe(r,t,o,a,c,f){return o.row[o.field]?(p.openBlock(),p.createElementBlock("div",GNe,[p.createElementVNode("pre",YNe," "+p.toDisplayString(o.row[o.field])+`
220
- `,1)])):p.createCommentVNode("",!0)}const JNe=vi(jNe,[["render",KNe]]),e$e={components:{GlButton:s6},props:["isOpen","title","button_text"],methods:{confirmAction(){this.$emit("confirm-action")},cancelAction(){this.$emit("cancel-action")}}},t$e={key:0,class:"fixed inset-0 z-50 overflow-y-auto",role:"dialog","aria-modal":"true"},n$e={class:"flex items-center justify-center min-h-screen px-4 pt-4 pb-20 text-center sm:p-0"},o$e={class:"inline-block relative 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"},s$e={class:"px-4 pt-5 pb-4 sm:p-6 sm:pb-4"},r$e={class:"sm:flex sm:items-start"},i$e={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"},a$e={class:"text-lg font-medium leading-6"},l$e={class:"mt-2"},c$e={class:"border-t border-gray-200 rounded-b dark:border-gray-600 px-4 py-3 sm:px-6 flex gap-2"};function u$e(r,t,o,a,c,f){const h=p.resolveComponent("gl-button");return o.isOpen?(p.openBlock(),p.createElementBlock("div",t$e,[p.createElementVNode("div",n$e,[t[1]||(t[1]=p.createElementVNode("div",{class:"fixed inset-0 transition-opacity bg-gray-500/75","aria-hidden":"true"},null,-1)),t[2]||(t[2]=p.createElementVNode("span",{class:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true"},"​",-1)),p.createElementVNode("div",o$e,[p.createElementVNode("div",s$e,[p.createElementVNode("div",r$e,[p.createElementVNode("div",i$e,[p.createElementVNode("h3",a$e,p.toDisplayString(o.title),1),p.createElementVNode("div",l$e,[p.renderSlot(r.$slots,"default")])])])]),p.createElementVNode("div",c$e,[p.createVNode(h,{onClick:f.confirmAction,tag:"button",button_type:"red"},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(o.button_text),1)]),_:1},8,["onClick"]),p.createVNode(h,{onClick:f.cancelAction,tag:"button",button_type:"light"},{default:p.withCtx(()=>t[0]||(t[0]=[p.createTextVNode(" Cancel ")])),_:1},8,["onClick"])])])])])):p.createCommentVNode("",!0)}const d$e=vi(e$e,[["render",u$e]]),f$e={class:"w-full"},h$e={class:"mb-2 flex justify-between items-center"},m$e={class:"text-sm font-medium text-gray-900 dark:text-white"},g$e={class:"relative bg-gray-50 rounded-lg dark:bg-gray-700 p-4 h-auto"},p$e={class:"overflow-auto max-h-32"},b$e=["innerHTML"],y$e={key:1,class:"text-sm text-gray-500 dark:text-gray-400"},O$e={class:"absolute top-2 end-2 bg-gray-50 dark:bg-gray-700"},x$e={key:0,class:"inline-flex items-center"},v$e={key:1,class:"inline-flex items-center"},w$e={class:"mt-2 text-sm text-gray-500 dark:text-gray-400"},S$e={__name:"GlCodeCopy",props:{label_name:{type:String,default:""},code:{type:String,default:""},description:{type:String,default:""},isPre:{type:Boolean,default:!1}},setup(r){const t=r,o=p.ref(!1),a=f=>{navigator.clipboard.writeText(f).then(function(){o.value=!0,setTimeout(()=>{o.value=!1},2e3)}).catch(function(h){console.error("Error copying to clipboard: ",h)})},c=p.computed(()=>t.code);return(f,h)=>(p.openBlock(),p.createElementBlock("div",f$e,[p.createElementVNode("div",h$e,[p.createElementVNode("p",m$e,p.toDisplayString(r.label_name),1)]),p.createElementVNode("div",g$e,[p.createElementVNode("div",p$e,[r.isPre?(p.openBlock(),p.createElementBlock("pre",{key:0,class:"text-sm text-gray-500 dark:text-gray-400",innerHTML:c.value},null,8,b$e)):(p.openBlock(),p.createElementBlock("code",y$e,p.toDisplayString(c.value),1))]),p.createElementVNode("div",O$e,[p.createElementVNode("button",{onClick:h[0]||(h[0]=y=>a(c.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"},[o.value?p.createCommentVNode("",!0):(p.openBlock(),p.createElementBlock("span",x$e,h[1]||(h[1]=[p.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"},[p.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),p.createElementVNode("span",{class:"text-xs font-semibold"},"Copy",-1)]))),o.value?(p.openBlock(),p.createElementBlock("span",v$e,h[2]||(h[2]=[p.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"},[p.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),p.createElementVNode("span",{class:"text-xs font-semibold text-blue-700 dark:text-blue-500"},"Copied",-1)]))):p.createCommentVNode("",!0)])])]),p.createElementVNode("p",w$e,p.toDisplayString(r.description),1)]))}},k$e={class:"w-full"},C$e={class:"flex justify-between items-center"},E$e={class:"gl-label-form"},_$e={class:"flex items-center"},T$e={class:"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"},A$e={class:"relative w-full"},P$e=["value"],D$e={key:0},N$e={key:1,class:"inline-flex items-center"},$$e={class:"mt-2 text-sm text-gray-500 dark:text-gray-400"},R$e={__name:"GlTextCopy",props:{label_name:{type:String,default:""},text_name:{type:String,default:""},code:{type:String,default:""},description:{type:String,default:""}},setup(r){const t=r,o=p.ref(!1),a=f=>{navigator.clipboard.writeText(f).then(function(){o.value=!0,setTimeout(()=>{o.value=!1},2e3)}).catch(function(h){console.error("Error copying to clipboard: ",h)})},c=p.computed(()=>t.code);return(f,h)=>(p.openBlock(),p.createElementBlock("div",k$e,[p.createElementVNode("div",C$e,[p.createElementVNode("label",E$e,p.toDisplayString(r.label_name),1)]),p.createElementVNode("div",_$e,[p.createElementVNode("span",T$e,p.toDisplayString(r.text_name),1),p.createElementVNode("div",A$e,[p.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:c.value,readonly:"",disabled:""},null,8,P$e)]),p.createElementVNode("button",{style:{padding:".61rem"},onClick:h[0]||(h[0]=y=>a(c.value)),class:"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-hidden 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"},[o.value?p.createCommentVNode("",!0):(p.openBlock(),p.createElementBlock("span",D$e,h[1]||(h[1]=[p.createElementVNode("svg",{class:"w-4 h-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 18 20"},[p.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)]))),o.value?(p.openBlock(),p.createElementBlock("span",N$e,h[2]||(h[2]=[p.createElementVNode("svg",{class:"w-4 h-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 12"},[p.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)]))):p.createCommentVNode("",!0)])]),p.createElementVNode("p",$$e,p.toDisplayString(r.description),1)]))}},B$e={class:"flex flex-wrap gap-2 text-nowrap"},M$e={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"},F$e={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"},L$e={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"},I$e={__name:"StatusRunningSuccessFailed",props:{status:{type:Number,default:!1}},setup(r){return(t,o)=>(p.openBlock(),p.createElementBlock("div",B$e,[r.status===0?(p.openBlock(),p.createElementBlock("span",M$e,o[0]||(o[0]=[p.createElementVNode("span",{class:"relative flex w-2 h-2 mr-1"},[p.createElementVNode("span",{class:"absolute inline-flex w-full h-full bg-blue-500 rounded-full animate-ping"}),p.createElementVNode("span",{class:"relative inline-flex w-2 h-2 bg-blue-500 rounded-full"})],-1),p.createTextVNode(" Running")]))):p.createCommentVNode("",!0),r.status===1?(p.openBlock(),p.createElementBlock("span",F$e,o[1]||(o[1]=[p.createElementVNode("span",{class:"w-2 h-2 bg-green-500 rounded-full me-1"},null,-1),p.createTextVNode(" Success ")]))):p.createCommentVNode("",!0),r.status===2?(p.openBlock(),p.createElementBlock("span",L$e,o[2]||(o[2]=[p.createElementVNode("span",{class:"w-2 h-2 bg-red-500 rounded-full me-1"},null,-1),p.createTextVNode(" Failed ")]))):p.createCommentVNode("",!0)]))}},V$e={class:"flex flex-wrap text-nowrap"},Q$e={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"},z$e={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"},H$e={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"},Z$e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",class:"w-5 h-5",style:{"animation-direction":"reverse"}},U$e={__name:"StatusConnectingConnectedDisconnected",props:{status:{type:Number,default:!1}},emits:["reconnect"],setup(r,{emit:t}){const o=t,a=()=>{o("reconnect")};return(c,f)=>(p.openBlock(),p.createElementBlock("div",V$e,[r.status===0?(p.openBlock(),p.createElementBlock("span",Q$e,f[0]||(f[0]=[p.createElementVNode("span",{class:"relative flex w-2 h-2 mr-1"},[p.createElementVNode("span",{class:"absolute inline-flex w-full h-full bg-blue-500 rounded-full animate-ping"}),p.createElementVNode("span",{class:"relative inline-flex w-2 h-2 bg-blue-500 rounded-full"})],-1),p.createTextVNode(" Connecting")]))):p.createCommentVNode("",!0),r.status===1?(p.openBlock(),p.createElementBlock("span",z$e,f[1]||(f[1]=[p.createElementVNode("span",{class:"w-2 h-2 bg-green-500 rounded-full me-1"},null,-1),p.createTextVNode(" Connected ")]))):p.createCommentVNode("",!0),r.status===2?(p.openBlock(),p.createElementBlock("span",H$e,f[2]||(f[2]=[p.createElementVNode("span",{class:"w-2 h-2 bg-red-500 rounded-full me-1"},null,-1),p.createTextVNode(" Disconnected ")]))):p.createCommentVNode("",!0),p.createElementVNode("button",{onClick:a,class:"ml-1"},[(p.openBlock(),p.createElementBlock("svg",Z$e,f[3]||(f[3]=[p.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)])))])]))}},W$e={beforeMount:(r,t)=>{r.clickOutsideEvent=o=>{r==o.target||r.contains(o.target)||t.value(o,r)},document.addEventListener("click",r.clickOutsideEvent)},unmounted:r=>{document.removeEventListener("click",r.clickOutsideEvent)}};class X$e{constructor(){this.errors={}}all(){return this.errors}has(t){return this.errors.hasOwnProperty(t)}any(){return Object.keys(this.errors).length>0}get(t){if(this.errors[t])return this.errors[t][0]}record(t){this.errors=t}clear(t){if(t){delete this.errors[t];return}this.errors={}}}class q$e{constructor(t){this.originalData=t;for(let o in t)this[o]=t[o];this.errors=new X$e}data(){let t={};for(let o in this.originalData)t[o]=this[o];return t}reset(){for(let t in this.originalData)this[t]="";this.errors.clear()}post(t){return this.submit("post",t)}put(t){return this.submit("put",t)}patch(t){return this.submit("patch",t)}delete(t){return this.submit("delete",t)}submit(t,o){return new Promise((a,c)=>{axios[t](o,this.data()).then(f=>{this.onSuccess(f.data),a(f.data)}).catch(f=>{this.onFail(f.response.data),c(f.response.data)})})}onSuccess(t){alert(t.message),this.reset()}onFail(t){this.errors.record(t)}}(function(r,t){var o="multilingual",a={type:"normal",editing:!1,transInputs:"input[data-i18n=true]",trans_selector_name:"i18n_selector",langSelectors:".language-selector"};function c(f,h){this.container=f,this.element=t.querySelector(f),this.settings=Object.assign({},a,h),this._defaults=a,this._name=o,this.init()}Object.assign(c.prototype,{init:function(){var f=this.element.querySelector(this.settings.langSelectors);if(this.transInputs=this.element.querySelectorAll(this.settings.transInputs),this.langSelectors=f.querySelectorAll("input"),this.transInputs.length===0||this.langSelectors.length===0)return!1;this.setup(),this.refresh()},setup:function(){var f=this;this.locale=this.returnLocale(),this._languageChangeHandler=this.selectLanguage.bind(this);var h=this.element.querySelectorAll(".js-language-label");h&&h.forEach(function(y){y.textContent=this.locale},this),this.langSelectors.forEach(function(y){y.addEventListener("change",f._languageChangeHandler)})},destroy:function(){this.langSelectors&&this._languageChangeHandler&&this.langSelectors.forEach(function(f){f.removeEventListener("change",this._languageChangeHandler)},this),this._languageChangeHandler=null,this.element=null,this.container=null,this.transInputs=null,this.langSelectors=null,this.settings=Object.assign({},this._defaults)},refresh:function(){var f=this;this.transInputs.forEach(function(h){var y=h,w=y.nextElementSibling.classList.contains(f.settings.editing?"form-input-translation":"input_tr_show")?y.nextElementSibling:null;w&&(w.dataset.inp=y.id,y.dataset.inpUsr=w.id);var C=f.loadJsonField(y.value);f.settings.editing&&(y.value=JSON.stringify(C)),f.langSelectors.forEach(function(T){y.dataset[T.value]=C[T.value],T.value===f.locale&&f.loadLang(y,T.value)})})},findNextSibling:function(f,h){for(var y=f.nextElementSibling;y&&!y.matches(h);)y=y.nextElementSibling;return y},loadJsonField:function(f){var h={};return this.isJsonValid(f)?(h=JSON.parse(f),this.langSelectors.forEach(function(y){h[y.value]=h[y.value]||""}),h):(this.langSelectors.forEach(function(y){h[y.value]=""}),h)},isJsonValid:function(f){try{JSON.parse(f)}catch{return!1}return!0},returnLocale:function(){var f=this.element.querySelector('input[name="'+this.settings.trans_selector_name+'"]:checked');return f?f.value:""},selectLanguage:function(f){var h=this,y=f.target.value;this.transInputs.forEach(function(C){if(h.settings.editing){h.updateInputCache(C);var T=new Event("change");C.dispatchEvent(T)}h.loadLang(C,y)}),this.locale=y;var w=this.element.querySelectorAll(".js-language-label");w&&w.forEach(function(C){C.textContent=y},this)},prepareData:function(){var f=this;this.transInputs.forEach(function(h){f.updateInputCache(h);var y=new Event("change");h.dispatchEvent(y)})},updateInputCache:function(f){var h=this,y=f.dataset.inpUsr,w=t.getElementById(y).value,C={};if(t.getElementById(y).classList.contains("tiny")){var T=tinymce.get(t.getElementById(y).name);w=T.getContent()}t.getElementById(y).classList.contains("CodeEditor")&&(w=t.getElementById(y).querySelector(".cm-content").cmView.view.state.doc.toString()),h.langSelectors.forEach(function(R){var B=R.value;C[B]=h.locale==B?w:f.dataset[B]}),f.value=JSON.stringify(C),f.dataset[h.locale]=w},loadLang:function(f,h){var y=f.dataset.inpUsr,w=f.dataset[h];if(!this.settings.editing)this.settings.type==="tiny"?t.getElementById(y).innerHTML=w:t.getElementById(y).textContent=w;else{var C=tinymce.get(y);if(t.getElementById(y).classList.contains("tiny")&&C&&C.initialized)C.setContent(w);else if(t.getElementById(y).classList.contains("CodeEditor")){let R=t.getElementById(y).querySelector(".cm-content").cmView.view;R.dispatch({changes:{from:0,to:R.state.doc.length,insert:w}})}else t.getElementById(y).value=w}}}),r.multilingual=c})(window,document);const j$e=window.multilingual;qo.ClickOutsideDirective=W$e,qo.DatatableStatusTextLabelGeneral=$Ne,qo.Form=q$e,qo.GLDatatableCommand=JNe,qo.GLDatatableDate=QNe,qo.GLDatatableDateTime=FNe,qo.GLDatatableStatusServer=qNe,qo.GlAccordion=WPe,qo.GlAccordionsWrapper=VPe,qo.GlButton=s6,qo.GlCard=Dhe,qo.GlCodeCopy=S$e,qo.GlCodeMirror=x2e,qo.GlCodeMirrorTranslate=jwe,qo.GlConfirmationModal=d$e,qo.GlDataTable=NPe,qo.GlDataTableComponent=T5e,qo.GlDataTableServerSide=UAe,qo.GlDataTableServerSideGroupBy=K5e,qo.GlDatatableAction=aDe,qo.GlDatatableConvertCronToHuman=FPe,qo.GlDatatableDeleteAction=fDe,qo.GlDatatableDeleteEditAction=yDe,qo.GlDatatableFileDownload=kDe,qo.GlDatatableFiles=PDe,qo.GlDatatableHtml=BDe,qo.GlDatatableList=VDe,qo.GlDatatableListNested=UDe,qo.GlDatatablePicture=KDe,qo.GlDatatablePictures=rNe,qo.GlDatatableStatus=dNe,qo.GlDatatableStatusGeneral=xNe,qo.GlDatatableStatusSpecficColor=kNe,qo.GlDatePicker=yH,qo.GlDateRangePicker=qne,qo.GlDeleteConfirmationModal=cA,qo.GlDropdown=jne,qo.GlDynamicConfirmation=Nle,qo.GlFilesUpload=vhe,qo.GlLanguageSelector=_he,qo.GlModal=Fpe,qo.GlModalShow=Ype,qo.GlModalWithoutOverflow=Zpe,qo.GlMultiItemSlide=Kge,qo.GlMultiItemSlideDynamic=Ppe,qo.GlMultiSelectDropdown=jhe,qo.GlStatusConnectingConnectedDisconnected=U$e,qo.GlStatusRunningSuccessFailed=I$e,qo.GlTab=pge,qo.GlTabShow=xge,qo.GlTabsWrapper=fge,qo.GlTailwindPagination=xU,qo.GlTextCopy=R$e,qo.GlTextInput=Xne,qo.GlTextInputFile=age,qo.GlTextTranslate=hme,qo.GlTextarea=W0e,qo.GlTextareaTranslate=sme,qo.GlTinymce=x1e,qo.GlTinymceTranslate=sSe,qo.GlToast=rb,qo.GlToastList=eDe,qo.GlToggleBox=l0e,qo.GlToggleBoxTrueFalse=O0e,qo.multilingual=j$e,Object.defineProperty(qo,Symbol.toStringTag,{value:"Module"})}));
219
+ </svg>`},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(o.language?.delete_selected??"Delete selected")+" "+p.toDisplayString(c.checkedIds.length>0?`(${c.checkedIds.length})`:""),1)]),_:1},8,["onClick","is_disabled"])):p.createCommentVNode("",!0)]),p.createElementVNode("div",{id:"print_"+c.Random_string,class:"overflow-auto rounded-lg dark:text-gray-400 dark:bg-gray-800"},[p.createElementVNode("table",{id:"table"+c.Random_string,class:"w-full h-full max-w-full overflow-hidden bg-white border-separate xl:overflow-auto lg:border-collapse print:border-collapse! border-spacing-y-5 lg:border-spacing-y-0 print:border-spacing-y-0! dark:border-gray-800 dark:bg-gray-900"},[p.createElementVNode("thead",NAe,[p.createElementVNode("tr",null,[o.enable_select_deselect_delete?(p.openBlock(),p.createElementBlock("th",$Ae)):p.createCommentVNode("",!0),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(f.visibleColumns,(U,K)=>(p.openBlock(),p.createElementBlock("th",{key:K,onClick:ce=>f.updateSortColumn(U.field_name,U.sortable),class:"w-full px-4 py-2 lg:w-2/12 print:w-2/12! print:border-[1px]!"},[p.createElementVNode("div",BAe,[p.createElementVNode("span",null,p.toDisplayString(U.field_label),1),c.sortField===U.field_name?(p.openBlock(),p.createElementBlock("span",MAe,t[8]||(t[8]=[p.createElementVNode("svg",{class:"w-4 h-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[p.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 20V7m0 13-4-4m4 4 4-4m4-12v13m0-13 4 4m-4-4-4 4"})],-1)]))):p.createCommentVNode("",!0)])],8,RAe))),128))])]),p.createElementVNode("tbody",FAe,[c.isLoading?(p.openBlock(),p.createElementBlock("tr",LAe,[p.createElementVNode("td",{colspan:o.columns.length+(o.enable_select_deselect_delete?1:0)},t[9]||(t[9]=[p.createElementVNode("div",{role:"status",class:"w-full p-4 space-y-4 border border-gray-200 divide-y divide-gray-200 rounded-sm shadow-sm animate-pulse dark:divide-gray-700 md:p-6 dark:border-gray-700"},[p.createElementVNode("div",{class:"flex items-center justify-between"},[p.createElementVNode("div",null,[p.createElementVNode("div",{class:"w-24 h-3 mb-3 bg-gray-300 rounded-full dark:bg-gray-600"}),p.createElementVNode("div",{class:"w-32 h-2 bg-gray-200 rounded-full dark:bg-gray-700"})]),p.createElementVNode("div",{class:"w-12 h-3 bg-gray-300 rounded-full dark:bg-gray-700"})]),p.createElementVNode("div",{class:"flex items-center justify-between pt-4"},[p.createElementVNode("div",null,[p.createElementVNode("div",{class:"w-24 h-3 mb-3 bg-gray-300 rounded-full dark:bg-gray-600"}),p.createElementVNode("div",{class:"w-32 h-2 bg-gray-200 rounded-full dark:bg-gray-700"})]),p.createElementVNode("div",{class:"w-12 h-3 bg-gray-300 rounded-full dark:bg-gray-700"})]),p.createElementVNode("div",{class:"flex items-center justify-between pt-4"},[p.createElementVNode("div",null,[p.createElementVNode("div",{class:"w-24 h-3 mb-3 bg-gray-300 rounded-full dark:bg-gray-600"}),p.createElementVNode("div",{class:"w-32 h-2 bg-gray-200 rounded-full dark:bg-gray-700"})]),p.createElementVNode("div",{class:"w-12 h-3 bg-gray-300 rounded-full dark:bg-gray-700"})]),p.createElementVNode("div",{class:"flex items-center justify-between pt-4"},[p.createElementVNode("div",null,[p.createElementVNode("div",{class:"w-24 h-3 mb-3 bg-gray-300 rounded-full dark:bg-gray-600"}),p.createElementVNode("div",{class:"w-32 h-2 bg-gray-200 rounded-full dark:bg-gray-700"})]),p.createElementVNode("div",{class:"w-12 h-3 bg-gray-300 rounded-full dark:bg-gray-700"})]),p.createElementVNode("div",{class:"flex items-center justify-between pt-4"},[p.createElementVNode("div",null,[p.createElementVNode("div",{class:"w-24 h-3 mb-3 bg-gray-300 rounded-full dark:bg-gray-600"}),p.createElementVNode("div",{class:"w-32 h-2 bg-gray-200 rounded-full dark:bg-gray-700"})]),p.createElementVNode("div",{class:"w-12 h-3 bg-gray-300 rounded-full dark:bg-gray-700"})]),p.createElementVNode("span",{class:"sr-only"},"Loading...")],-1)]),8,IAe)])):p.createCommentVNode("",!0),c.isLoading?p.createCommentVNode("",!0):(p.openBlock(!0),p.createElementBlock(p.Fragment,{key:1},p.renderList(c.itemLists.data,(U,K)=>(p.openBlock(),p.createElementBlock("tr",{key:K,class:"text-gray-500 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-800 dark:hover:text-gray-200"},[o.enable_select_deselect_delete?(p.openBlock(),p.createElementBlock("td",VAe,[p.createElementVNode("input",{checked:c.checkedIds.includes(U.id),onChange:ce=>f.toggleCheck(U.id),type:"checkbox",value:"",class:"w-4 h-4 rounded-sm"},null,40,QAe)])):p.createCommentVNode("",!0),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(f.visibleColumns,(ce,we)=>(p.openBlock(),p.createElementBlock("td",{style:p.normalizeStyle(ce?.style),key:we,"data-label":ce.field_label,class:p.normalizeClass(["text-pretty before:content-[attr(data-label)] before:font-bold lg:before:content-none print:before:content-none! flex flex-col justify-between gap-2 lg:table-cell print:table-cell! py-4 px-5 lg:py-3 lg:px-4 print:py-3! print:px-4! border-[1px]! dark:border-gray-700",{"rounded-b-lg lg:rounded-b-none!":we===o.columns.length-1}])},[p.createElementVNode("div",{class:p.normalizeClass([ce.field_name==="action"?"":"overflow-auto","td_overflow_auto max-h-40 max-w-100"])},[ce.tdComp?(p.openBlock(),p.createBlock(p.resolveDynamicComponent(f.forDynCompIs(ce.tdComp)),{key:0,language:o.language,row:U,field:ce.field_name,xprops:o.xprops,tdProps:ce.tdProps,onDeleteAction:t[4]||(t[4]=te=>f.GetItemLists()),onEditAction:te=>f.editAction(U),onGeneralAction:te=>f.generalAction(U)},null,40,["language","row","field","xprops","tdProps","onEditAction","onGeneralAction"])):(p.openBlock(),p.createElementBlock(p.Fragment,{key:1},[p.createTextVNode(p.toDisplayString(U[ce.field_name]),1)],64))],2)],14,zAe))),128))]))),128))])],8,DAe)],8,PAe),p.createElementVNode("div",HAe,[p.createVNode(B,{class:"mt-3 mb-0",classes:"px-4 py-3 sm:px-6",data:c.itemLists,limit:c.limit,size:c.size,align:c.align,onPaginationChangePage:f.GetItemLists},null,8,["data","limit","size","align","onPaginationChangePage"])])])],64)}const UAe=vi(mAe,[["render",ZAe],["__scopeId","data-v-a51321e7"]]);class WAe{constructor(t){this.standards={strict:"strict",loose:"loose",html5:"html5"},this.previewBody=null,this.close=null,this.previewBodyUtilPrintBtn=null,this.selectArray=[],this.counter=0,this.settings={standard:this.standards.html5},Object.assign(this.settings,t),this.init()}init(){this.counter++,this.settings.id=`printArea_${this.counter}`;let t="";this.settings.url&&!this.settings.asyncUrl&&(t=this.settings.url);let o=this;if(this.settings.asyncUrl)return void o.settings.asyncUrl((function(c){let f=o.getPrintWindow(c);o.settings.preview?o.previewIfrmaeLoad():o.print(f)}),o.settings.vue);let a=this.getPrintWindow(t);this.settings.url||this.write(a.doc),this.settings.preview?this.previewIfrmaeLoad():this.print(a)}addEvent(t,o,a){t.addEventListener?t.addEventListener(o,a,!1):t.attachEvent?t.attachEvent("on"+o,a):t["on"+o]=a}previewIfrmaeLoad(){let t=document.getElementById("vue-pirnt-nb-previewBox");if(t){let o=this,a=t.querySelector("iframe");this.settings.previewBeforeOpenCallback(),this.addEvent(a,"load",(function(){o.previewBoxShow(),o.removeCanvasImg(),o.settings.previewOpenCallback()})),this.addEvent(t.querySelector(".previewBodyUtilPrintBtn"),"click",(function(){o.settings.beforeOpenCallback(),o.settings.openCallback(),a.contentWindow.print(),o.settings.closeCallback()}))}}removeCanvasImg(){let t=this;try{if(t.elsdom){let o=t.elsdom.querySelectorAll(".canvasImg");for(let a=0;a<o.length;a++)o[a].remove()}}catch(o){console.log(o)}}print(t){var o=this;let a=document.getElementById(this.settings.id)||t.f,c=document.getElementById(this.settings.id).contentWindow||t.f.contentWindow;o.settings.beforeOpenCallback(),o.addEvent(a,"load",(function(){c.focus(),o.settings.openCallback(),c.print(),a.remove(),o.settings.closeCallback(),o.removeCanvasImg()}))}write(t){t.open(),t.write(`${this.docType()}<html>${this.getHead()}${this.getBody()}</html>`),t.close()}docType(){return this.settings.standard===this.standards.html5?"<!DOCTYPE html>":`<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01${this.settings.standard===this.standards.loose?" Transitional":""}//EN" "http://www.w3.org/TR/html4/${this.settings.standard===this.standards.loose?"loose":"strict"}.dtd">`}getHead(){let t="",o="",a="";this.settings.extraHead&&this.settings.extraHead.replace(/([^,]+)/g,(f=>{t+=f})),[].forEach.call(document.querySelectorAll("link"),(function(f){f.href.indexOf(".css")>=0&&(o+=`<link type="text/css" rel="stylesheet" href="${f.href}" >`)}));let c=document.styleSheets;if(c&&c.length>0)for(let f=0;f<c.length;f++)try{if(c[f].cssRules||c[f].rules){let h=c[f].cssRules||c[f].rules;for(let y=0;y<h.length;y++)a+=h[y].cssText}}catch(h){console.log(c[f].href+h)}return this.settings.extraCss&&this.settings.extraCss.replace(/([^,\s]+)/g,(f=>{o+=`<link type="text/css" rel="stylesheet" href="${f}">`})),`<head><title>${this.settings.popTitle}</title>${t}${o}<style type="text/css">${a}</style></head>`}getBody(){let t=this.settings.ids;return t=t.replace(new RegExp("#","g"),""),this.elsdom=this.beforeHanler(document.getElementById(t)),"<body>"+this.getFormData(this.elsdom).outerHTML+"</body>"}beforeHanler(t){let o=t.querySelectorAll("canvas");for(let a=0;a<o.length;a++)if(!o[a].style.display){let c=o[a].parentNode,f=o[a].toDataURL("image/png"),h=new Image;h.className="canvasImg",h.style.display="none",h.src=f,c.appendChild(h)}return t}getFormData(t){let o=t.cloneNode(!0),a=o.querySelectorAll("input,select,textarea"),c=o.querySelectorAll(".canvasImg,canvas"),f=-1;for(let h=0;h<c.length;h++){let y=c[h].parentNode,w=c[h];w.tagName.toLowerCase()==="canvas"?y.removeChild(w):w.style.display="block"}for(let h=0;h<a.length;h++){let y=a[h],w=y.getAttribute("type"),C=a[h];if(w||(w=y.tagName==="SELECT"?"select":y.tagName==="TEXTAREA"?"textarea":""),y.tagName==="INPUT")w==="radio"||w==="checkbox"?y.checked&&C.setAttribute("checked",y.checked):(C.value=y.value,C.setAttribute("value",y.value));else if(w==="select"){f++;for(let T=0;T<t.querySelectorAll("select").length;T++){let R=t.querySelectorAll("select")[T];if(!R.getAttribute("newbs")&&R.setAttribute("newbs",T),R.getAttribute("newbs")==f){let B=t.querySelectorAll("select")[f].selectedIndex;y.options[B].setAttribute("selected",!0)}}}else C.innerHTML=y.value,C.setAttribute("html",y.value)}return o}getPrintWindow(t){var o=this.Iframe(t);return{f:o,win:o.contentWindow||o,doc:o.doc}}previewBoxShow(){let t=document.getElementById("vue-pirnt-nb-previewBox");t&&(document.querySelector("html").setAttribute("style","overflow: hidden"),t.style.display="block")}previewBoxHide(){let t=document.getElementById("vue-pirnt-nb-previewBox");t&&(document.querySelector("html").setAttribute("style","overflow: visible;"),t.querySelector("iframe")&&t.querySelector("iframe").remove(),t.style.display="none")}previewBox(){let t=document.getElementById("vue-pirnt-nb-previewBox"),o="previewBody";if(t)return t.querySelector("iframe")&&t.querySelector("iframe").remove(),{close:t.querySelector(".previewClose"),previewBody:t.querySelector(".previewBody")};let a=document.createElement("div");a.setAttribute("id","vue-pirnt-nb-previewBox"),a.setAttribute("style","position: fixed;top: 0px;left: 0px;width: 100%;height: 100%;background: white;display:none"),a.style.zIndex=this.settings.zIndex;let c=document.createElement("div");c.setAttribute("class","previewHeader"),c.setAttribute("style","padding: 5px 20px;"),c.innerHTML=this.settings.previewTitle,a.appendChild(c),this.close=document.createElement("div");let f=this.close;f.setAttribute("class","previewClose"),f.setAttribute("style","position: absolute;top: 5px;right: 20px;width: 25px;height: 20px;cursor: pointer;");let h=document.createElement("div"),y=document.createElement("div");h.setAttribute("class","closeBefore"),h.setAttribute("style","position: absolute;width: 3px;height: 100%;background: #040404;transform: rotate(45deg); top: 0px;left: 50%;"),y.setAttribute("class","closeAfter"),y.setAttribute("style","position: absolute;width: 3px;height: 100%;background: #040404;transform: rotate(-45deg); top: 0px;left: 50%;"),f.appendChild(h),f.appendChild(y),c.appendChild(f),this.previewBody=document.createElement("div");let w=this.previewBody;w.setAttribute("class",o),w.setAttribute("style","display: flex;flex-direction: column; height: 100%;"),a.appendChild(w);let C=document.createElement("div");C.setAttribute("class","previewBodyUtil"),C.setAttribute("style","height: 32px;background: #474747;position: relative;"),w.appendChild(C),this.previewBodyUtilPrintBtn=document.createElement("div");let T=this.previewBodyUtilPrintBtn;return T.setAttribute("class","previewBodyUtilPrintBtn"),T.innerHTML=this.settings.previewPrintBtnLabel,T.setAttribute("style","position: absolute;padding: 2px 10px;margin-top: 3px;left: 24px;font-size: 14px;color: white;cursor: pointer;background-color: rgba(0,0,0,.12);background-image: linear-gradient(hsla(0,0%,100%,.05),hsla(0,0%,100%,0));background-clip: padding-box;border: 1px solid rgba(0,0,0,.35);border-color: rgba(0,0,0,.32) rgba(0,0,0,.38) rgba(0,0,0,.42);box-shadow: inset 0 1px 0 hsla(0,0%,100%,.05), inset 0 0 1px hsla(0,0%,100%,.15), 0 1px 0 hsla(0,0%,100%,.05);"),C.appendChild(T),document.body.appendChild(a),{close:this.close,previewBody:this.previewBody}}iframeBox(t,o){let a=document.createElement("iframe");return a.style.border="0px",a.style.position="absolute",a.style.width="0px",a.style.height="0px",a.style.right="0px",a.style.top="0px",a.setAttribute("id",t),a.setAttribute("src",o),a}Iframe(t){let o=this.settings.id;t=t||new Date().getTime();let a=this,c=this.iframeBox(o,t);try{if(this.settings.preview){c.setAttribute("style","border: 0px;flex: 1;");let f=this.previewBox(),h=f.previewBody,y=f.close;h.appendChild(c),this.addEvent(y,"click",(function(){a.previewBoxHide()}))}else document.body.appendChild(c);c.doc=null,c.doc=c.contentDocument?c.contentDocument:c.contentWindow?c.contentWindow.document:c.document}catch(f){throw new Error(f+". iframes may not be supported in this browser.")}if(c.doc==null)throw new Error("Cannot find document.");return c}}var tW={directiveName:"print",mounted(r,t,o){let a=t.instance,c="";var f,h,y;h="click",y=()=>{if(typeof t.value=="string")c=t.value;else{if(typeof t.value!="object"||!t.value.id)return void window.print();{c=t.value.id;let C=c.replace(new RegExp("#","g"),"");document.getElementById(C)||(console.log("id in Error"),c="")}}w()},(f=r).addEventListener?f.addEventListener(h,y,!1):f.attachEvent?f.attachEvent("on"+h,y):f["on"+h]=y;const w=()=>{new WAe({ids:c,vue:a,url:t.value.url,standard:"",extraHead:t.value.extraHead,extraCss:t.value.extraCss,zIndex:t.value.zIndex||20002,previewTitle:t.value.previewTitle||"打印预览",previewPrintBtnLabel:t.value.previewPrintBtnLabel||"打印",popTitle:t.value.popTitle,preview:t.value.preview||!1,asyncUrl:t.value.asyncUrl,previewBeforeOpenCallback(){t.value.previewBeforeOpenCallback&&t.value.previewBeforeOpenCallback(a)},previewOpenCallback(){t.value.previewOpenCallback&&t.value.previewOpenCallback(a)},openCallback(){t.value.openCallback&&t.value.openCallback(a)},closeCallback(){t.value.closeCallback&&t.value.closeCallback(a)},beforeOpenCallback(){t.value.beforeOpenCallback&&t.value.beforeOpenCallback(a)}})}},install:function(r){r.directive("print",tW)}};const XAe={components:{},props:{data:Array,columns:Array,get_item_url:String,xprops:Object,language:{type:Object,required:!1,default:()=>{}}},data(){const r=this.generateRandomString(6);return{isLoadinPrint:!1,Random_string:r,printObj:{id:"print_"+r,popTitle:"",beforeOpenCallback(t){},openCallback(t){t.isLoadinPrint=!1},closeCallback(t){t.isLoadinPrint=!1}},isLoading:!1,showNoOfEntries:[5,10,20,50,100,200,300,400,500,600,700,800,900,1e3,2e3,3e3,4e3,5e3,6e3,7e3,8e3,9e3,1e4,11e3,12e3,13e3,14e3,15e3,16e3,17e3,18e3,19e3,2e4],search:"",sortKey:"",sortOrder:1,currentPage:1,itemsPerPage:10,jumpToPage:"",maxDisplayedPages:10}},emits:["editAction","generalAction","deleteAction"],computed:{itemLists(){return this.data},filteredData(){const r=this.search.toLowerCase(),t=this.sortData(this.itemLists);return r?t.filter(o=>this.columns.some(a=>{const c=o[a.field_name];return c!=null&&String(c).toLowerCase().includes(r)})):t},totalPages(){return Math.ceil(this.filteredData.length/this.itemsPerPage)},paginatedData(){const r=(this.currentPage-1)*this.itemsPerPage,t=r+this.itemsPerPage;return this.filteredData.slice(r,t)},displayedPageNumbers(){let r=Math.max(this.currentPage-Math.floor(this.maxDisplayedPages/2),1),t=r+this.maxDisplayedPages-1;return t>this.totalPages&&(t=this.totalPages,r=Math.max(t-this.maxDisplayedPages+1,1)),Array.from({length:t-r+1},(o,a)=>r+a)},firstItemIndex(){return this.itemsPerPage*(this.currentPage-1)+1},lastItemIndex(){const r=this.itemsPerPage*this.currentPage;return r>this.filteredData.length?this.filteredData.length:r}},methods:{exportToExcel(){const r=document.querySelector("#table"+this.Random_string),t=Array.from(r.querySelectorAll("thead th")).map(R=>R.innerText),a=["",...["action"]],c=t.map((R,B)=>a.includes(R)?B:-1).filter(R=>R!==-1),f=Array.from(r.querySelectorAll("tbody tr")).map(R=>Array.from(R.querySelectorAll("td")).map(V=>V.innerText).filter((V,q)=>!c.includes(q))),y=[t.filter((R,B)=>!c.includes(B)),...f],w=vb.aoa_to_sheet(y),C=vb.book_new();vb.book_append_sheet(C,w,"Sheet1"),JU(C,"exported-file.xlsx")},generateRandomString(r){let t="";const o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=o.length;for(let c=0;c<r;c++)t+=o.charAt(Math.floor(Math.random()*a));return t},delayedPrint(){this.isLoadinPrint=!0,this.$nextTick(()=>{this.$refs.hiddenPrintBtn?.click(),this.isLoadinPrint=!1})},editAction(r){this.$emit("editAction",r)},deleteAction(){this.$emit("deleteAction")},generalAction(r){this.$emit("generalAction",r)},forDynCompIs(r){return typeof r=="object"?r:null},handleItemsPerPageChange(r){this.itemsPerPage=r},goToPage(r){r>=1&&r<=this.totalPages&&(this.currentPage=r)},sort(r){r===this.sortKey?this.sortOrder*=-1:(this.sortKey=r,this.sortOrder=1)},sortData(r){return this.sortKey?r.slice().sort((t,o)=>(t[this.sortKey]<o[this.sortKey]?-1:1)*this.sortOrder):r},previousPage(){this.currentPage>1&&this.currentPage--},nextPage(){this.currentPage<this.totalPages&&this.currentPage++},firstPage(){this.currentPage=1},lastPage(){this.currentPage=this.totalPages},goToPage(r){r>=1&&r<=this.totalPages&&(this.currentPage=r)},GetItemLists(){this.isLoading=!0,axios.get(this.xprops.route_get_data).then(r=>{this.itemLists=r.data,this.isLoading=!1}).catch(r=>{console.error(r),this.isLoading=!1})}},mounted(){},directives:{print:tW}},qAe={class:"p-0"},jAe={ref:"hiddenPrintBtn",style:{display:"none"}},GAe={class:"flex flex-col flex-wrap gap-4 pb-4 xl:flex-row xl:items-center xl:justify-between"},YAe={class:"flex items-center gap-2"},KAe={class:"mt-[9px]"},JAe={class:"relative"},e5e={class:"flex flex-wrap mb-3"},t5e=["id"],n5e=["id"],o5e={class:"hidden text-sm font-normal text-center text-gray-600 print:table-header-group! lg:table-header-group dark:border-gray-600 bg-gray-50 dark:bg-gray-800 dark:text-gray-400 print:border-[1px]!"},s5e=["onClick"],r5e={class:"inline-flex items-center justify-center gap-1"},i5e={key:0,class:"print:hidden!"},a5e={class:"bg-white dark:bg-gray-900"},l5e={key:0},c5e=["colspan"],u5e=["data-label"],d5e=["innerHTML"],f5e={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"},h5e={class:"flex justify-between flex-1 sm:hidden"},m5e=["disabled"],g5e=["disabled"],p5e={class:"hidden sm:flex sm:flex-1 sm:items-center sm:justify-between"},b5e={class:"text-sm text-gray-700 dark:text-gray-400"},y5e={class:"font-medium"},O5e={class:"font-medium"},x5e={class:"font-medium"},v5e={"aria-label":"Page navigation"},w5e={class:"flex items-center h-8 -space-x-px text-sm"},S5e=["disabled"],k5e=["onClick"],C5e=["onClick"],E5e=["disabled"];function _5e(r,t,o,a,c,f){const h=p.resolveComponent("dropdown"),y=p.resolveComponent("gl-button"),w=p.resolveDirective("print");return p.openBlock(),p.createElementBlock("div",qAe,[p.withDirectives(p.createElementVNode("button",jAe,null,512),[[w,c.printObj]]),p.createElementVNode("div",GAe,[p.createElementVNode("div",YAe,[t[6]||(t[6]=p.createElementVNode("span",{class:"font-medium"}," Show ",-1)),p.createElementVNode("div",KAe,[p.createVNode(h,{has_cancel:!1,options:c.showNoOfEntries,modelValue:c.itemsPerPage,"onUpdate:modelValue":t[0]||(t[0]=C=>c.itemsPerPage=C),is_required:!1,field_name:"NoOfEntries",label_name:"",default_value:10,show:!1,placeholder:"Please select an option"},null,8,["options","modelValue"])]),t[7]||(t[7]=p.createElementVNode("span",{class:"font-medium"}," Entries ",-1))]),t[9]||(t[9]=p.createElementVNode("label",{for:"table-search",class:"sr-only"},"Search",-1)),p.createElementVNode("div",JAe,[t[8]||(t[8]=p.createElementVNode("div",{class:"absolute inset-y-0 left-0 flex items-center pointer-events-none rtl:inset-r-0 rtl:right-0 ps-3"},null,-1)),p.withDirectives(p.createElementVNode("input",{type:"text","onUpdate:modelValue":t[1]||(t[1]=C=>c.search=C),class:"gl-input-form",placeholder:"Search ..."},null,512),[[p.vModelText,c.search]])])]),p.createElementVNode("div",e5e,[p.createVNode(y,{onClick:f.delayedPrint,tag:"button",is_loading:c.isLoadinPrint,button_type:"default",has_border_reduced:!1,classes:"rounded-s-lg"},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(o.language?.print??"Print"),1)]),_:1},8,["onClick","is_loading"]),p.createVNode(y,{onClick:f.exportToExcel,tag:"button",button_type:"default",has_border_reduced:!1,classes:"rounded-e-lg"},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(o.language?.excel??"Excel"),1)]),_:1},8,["onClick"])]),p.createElementVNode("div",{id:"print_"+c.Random_string,class:"overflow-auto rounded-lg dark:text-gray-400 dark:bg-gray-800"},[p.createElementVNode("table",{id:"table"+c.Random_string,class:"w-full h-full max-w-full overflow-hidden bg-white border-separate xl:overflow-auto lg:border-collapse print:border-collapse! border-spacing-y-5 lg:border-spacing-y-0 print:border-spacing-y-0! dark:border-gray-800 dark:bg-gray-900"},[p.createElementVNode("thead",o5e,[p.createElementVNode("tr",null,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(o.columns,(C,T)=>(p.openBlock(),p.createElementBlock("th",{key:T,onClick:R=>f.sort(C.field_name,C.sortable),class:"w-full px-4 py-2 lg:w-2/12 print:w-2/12! print:border-[1px]!"},[p.createElementVNode("div",r5e,[p.createElementVNode("span",null,p.toDisplayString(C.field_label),1),c.sortKey===C.field_name?(p.openBlock(),p.createElementBlock("span",i5e,t[10]||(t[10]=[p.createElementVNode("svg",{class:"w-4 h-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[p.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 20V7m0 13-4-4m4 4 4-4m4-12v13m0-13 4 4m-4-4-4 4"})],-1)]))):p.createCommentVNode("",!0)])],8,s5e))),128))])]),p.createElementVNode("tbody",a5e,[c.isLoading?(p.openBlock(),p.createElementBlock("tr",l5e,[p.createElementVNode("td",{colspan:o.columns.length},t[11]||(t[11]=[p.createElementVNode("div",{role:"status",class:"p-4 space-y-4 border border-gray-200 divide-y divide-gray-200 rounded-sm shadow-sm animate-pulse dark:divide-gray-700 md:p-6 dark:border-gray-700"},[p.createElementVNode("div",{class:"flex items-center justify-between"},[p.createElementVNode("div",null,[p.createElementVNode("div",{class:"h-3 bg-gray-300 rounded-full dark:bg-gray-600 w-24 mb-3"}),p.createElementVNode("div",{class:"w-32 h-2 bg-gray-200 rounded-full dark:bg-gray-700"})]),p.createElementVNode("div",{class:"h-3 bg-gray-300 rounded-full dark:bg-gray-700 w-12"})]),p.createElementVNode("div",{class:"flex items-center justify-between pt-4"},[p.createElementVNode("div",null,[p.createElementVNode("div",{class:"h-3 bg-gray-300 rounded-full dark:bg-gray-600 w-24 mb-3"}),p.createElementVNode("div",{class:"w-32 h-2 bg-gray-200 rounded-full dark:bg-gray-700"})]),p.createElementVNode("div",{class:"h-3 bg-gray-300 rounded-full dark:bg-gray-700 w-12"})]),p.createElementVNode("div",{class:"flex items-center justify-between pt-4"},[p.createElementVNode("div",null,[p.createElementVNode("div",{class:"h-3 bg-gray-300 rounded-full dark:bg-gray-600 w-24 mb-3"}),p.createElementVNode("div",{class:"w-32 h-2 bg-gray-200 rounded-full dark:bg-gray-700"})]),p.createElementVNode("div",{class:"h-3 bg-gray-300 rounded-full dark:bg-gray-700 w-12"})]),p.createElementVNode("div",{class:"flex items-center justify-between pt-4"},[p.createElementVNode("div",null,[p.createElementVNode("div",{class:"h-3 bg-gray-300 rounded-full dark:bg-gray-600 w-24 mb-3"}),p.createElementVNode("div",{class:"w-32 h-2 bg-gray-200 rounded-full dark:bg-gray-700"})]),p.createElementVNode("div",{class:"h-3 bg-gray-300 rounded-full dark:bg-gray-700 w-12"})]),p.createElementVNode("div",{class:"flex items-center justify-between pt-4"},[p.createElementVNode("div",null,[p.createElementVNode("div",{class:"h-3 bg-gray-300 rounded-full dark:bg-gray-600 w-24 mb-3"}),p.createElementVNode("div",{class:"w-32 h-2 bg-gray-200 rounded-full dark:bg-gray-700"})]),p.createElementVNode("div",{class:"h-3 bg-gray-300 rounded-full dark:bg-gray-700 w-12"})]),p.createElementVNode("span",{class:"sr-only"},"Loading...")],-1)]),8,c5e)])):p.createCommentVNode("",!0),c.isLoading?p.createCommentVNode("",!0):(p.openBlock(!0),p.createElementBlock(p.Fragment,{key:1},p.renderList(f.paginatedData,(C,T)=>(p.openBlock(),p.createElementBlock("tr",{key:T,class:"text-gray-500 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-800 dark:hover:text-gray-200"},[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(o.columns,(R,B)=>(p.openBlock(),p.createElementBlock("td",{key:B,"data-label":R.field_label,class:p.normalizeClass(["text-pretty before:content-[attr(data-label)] before:font-bold dark:before:text-gray-400 lg:before:content-[''] print:before:content-['']! flex flex-col justify-between gap-2 lg:table-cell print:table-cell! py-4 px-5 lg:py-3 lg:px-4 print:py-3! print:px-4! border-[1px]! dark:border-gray-700",{"rounded-t-lg lg:rounded-t-none!":B===0,"rounded-b-lg lg:rounded-b-none!":B===o.columns.length-1}])},[p.createElementVNode("div",{class:p.normalizeClass([R.field_name==="action"?"":"overflow-auto","td_overflow_auto max-h-40 max-w-100"])},[R.tdComp?(p.openBlock(),p.createBlock(p.resolveDynamicComponent(f.forDynCompIs(R.tdComp)),{key:0,row:C,field:R.field_name,xprops:o.xprops,tdProps:R.tdProps,onEditAction:V=>f.editAction(C),onGeneralAction:V=>f.generalAction(C)},null,40,["row","field","xprops","tdProps","onEditAction","onGeneralAction"])):(p.openBlock(),p.createElementBlock("p",{key:1,class:"text-pretty",innerHTML:C[R.field_name]},null,8,d5e))],2)],10,u5e))),128))]))),128))])],8,n5e)],8,t5e),f.paginatedData.length>0?(p.openBlock(),p.createElementBlock("div",f5e,[p.createElementVNode("div",h5e,[p.createElementVNode("a",{href:"#",onClick:t[2]||(t[2]=p.withModifiers((...C)=>f.previousPage&&f.previousPage(...C),["prevent"])),disabled:c.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,m5e),p.createElementVNode("a",{href:"#",onClick:t[3]||(t[3]=p.withModifiers((...C)=>f.nextPage&&f.nextPage(...C),["prevent"])),disabled:c.currentPage===f.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,g5e)]),p.createElementVNode("div",p5e,[p.createElementVNode("div",null,[p.createElementVNode("p",b5e,[t[12]||(t[12]=p.createTextVNode(" Showing ")),p.createElementVNode("span",y5e,p.toDisplayString(f.firstItemIndex),1),t[13]||(t[13]=p.createTextVNode(" to ")),p.createElementVNode("span",O5e,p.toDisplayString(f.lastItemIndex),1),t[14]||(t[14]=p.createTextVNode(" of ")),p.createElementVNode("span",x5e,p.toDisplayString(f.filteredData.length),1),t[15]||(t[15]=p.createTextVNode(" entries "))])]),p.createElementVNode("div",null,[p.createElementVNode("nav",v5e,[p.createElementVNode("ul",w5e,[p.createElementVNode("li",null,[p.createElementVNode("a",{href:"#",onClick:t[4]||(t[4]=p.withModifiers((...C)=>f.previousPage&&f.previousPage(...C),["prevent"])),disabled:c.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"},t[16]||(t[16]=[p.createElementVNode("span",{class:"sr-only"},"Previous",-1),p.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"},[p.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 1 1 5l4 4"})],-1)]),8,S5e)]),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(f.displayedPageNumbers,C=>(p.openBlock(),p.createElementBlock(p.Fragment,{key:C},[p.createElementVNode("li",null,[c.currentPage!==C?(p.openBlock(),p.createElementBlock("a",{key:0,href:"#",onClick:p.withModifiers(T=>f.goToPage(C),["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"},p.toDisplayString(C),9,k5e)):p.createCommentVNode("",!0)]),p.createElementVNode("li",null,[c.currentPage===C?(p.openBlock(),p.createElementBlock("a",{key:0,href:"#",onClick:p.withModifiers(T=>f.goToPage(C),["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"},p.toDisplayString(C),9,C5e)):p.createCommentVNode("",!0)])],64))),128)),p.createElementVNode("li",null,[p.createElementVNode("a",{href:"#",onClick:t[5]||(t[5]=p.withModifiers((...C)=>f.nextPage&&f.nextPage(...C),["prevent"])),disabled:c.currentPage===f.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"},t[17]||(t[17]=[p.createElementVNode("span",{class:"sr-only"},"Next",-1),p.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"},[p.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m1 9 4-4-4-4"})],-1)]),8,E5e)])])])])])])):p.createCommentVNode("",!0)])}const T5e=vi(XAe,[["render",_5e],["__scopeId","data-v-6d5541af"]]),A5e={components:{TailwindPagination:xU},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 r=this.search.toLowerCase();return this.sortData(this.data).filter(o=>Object.values(o).some(a=>a.toString().toLowerCase().includes(r)))},groupedItems(){return this.groupBy(this.groupField)}},methods:{groupBy(r){return this.itemLists.data?this.itemLists.data.reduce((t,o)=>{const a=o[r];t[a]||(t[a]=[]);const c={...o};return delete c[r],t[a].push(c),t},{}):[]},editAction(r){this.$emit("editAction",r)},forDynCompIs(r){return typeof r=="object"?r:null},GetItemLists(r=1){this.isLoading=!0,this.page=r;const t={sort:this.sortField,order:this.sortOrder,s:this.search,limit:this.perPage,page:this.page};axios.get(this.xprops.route_get_data,{params:t}).then(o=>{this.itemLists=o.data,this.isLoading=!1}).catch(o=>{console.error(o),this.isLoading=!1})},updateSortColumn(r,t){t&&(r===this.sortField?this.sortOrder=this.sortOrder==="asc"?"desc":"asc":(this.sortField=r,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(r){this.page=1,this.perPage=r,this.GetItemLists(this.page)},refreshData(r,t){this.isMounted&&r!==t&&this.GetItemLists()}}},P5e={class:"p-0"},D5e={class:"flex flex-col flex-wrap gap-4 pb-4 xl:flex-row xl:items-center xl:justify-between"},N5e={class:"flex items-center gap-2"},$5e={class:"font-medium"},R5e={class:"mt-[3px]"},B5e={class:"font-medium"},M5e={class:"relative"},F5e=["placeholder"],L5e={class:"overflow-auto rounded-lg dark:text-gray-400 dark:bg-gray-800"},I5e={class:"w-full h-full max-w-full overflow-hidden bg-white border-separate xl:overflow-auto lg:border-collapse print:border-collapse! border-spacing-y-5 lg:border-spacing-y-0 print:border-spacing-y-0! dark:border-gray-800 dark:bg-gray-900"},V5e={class:"hidden text-sm font-normal text-center text-gray-600 print:table-header-group! lg:table-header-group dark:border-gray-600 bg-gray-50 dark:bg-gray-800 dark:text-gray-400 print:border-[1px]!"},Q5e=["onClick"],z5e={class:"inline-flex items-center justify-center gap-1"},H5e={key:0,class:"print:hidden!"},Z5e={class:"bg-white dark:bg-gray-900"},U5e={key:0},W5e=["colspan"],X5e={class:"text-gray-500 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-800 dark:hover:text-gray-200"},q5e=["colspan"],j5e=["data-label"],G5e={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 Y5e(r,t,o,a,c,f){const h=p.resolveComponent("dropdown"),y=p.resolveComponent("TailwindPagination");return p.openBlock(),p.createElementBlock("div",P5e,[p.createElementVNode("div",D5e,[p.createElementVNode("div",N5e,[p.createElementVNode("span",$5e,p.toDisplayString(r.language?.show??"Show"),1),p.createElementVNode("div",R5e,[p.createVNode(h,{options_top_size:0,has_cancel:!1,options:c.pageOptions,modelValue:c.perPage,"onUpdate:modelValue":t[0]||(t[0]=w=>c.perPage=w),is_required:!1,field_name:"perPage",label_name:"",default_value:5,show:!1,placeholder:"Please select an option"},null,8,["options","modelValue"])]),p.createElementVNode("span",B5e,p.toDisplayString(r.language?.entries??"Entries"),1)]),t[5]||(t[5]=p.createElementVNode("label",{for:"table-search",class:"sr-only"},"Search",-1)),p.createElementVNode("div",M5e,[t[4]||(t[4]=p.createElementVNode("div",{class:"absolute inset-y-0 left-0 flex items-center pointer-events-none rtl:inset-r-0 rtl:right-0 ps-3"},null,-1)),p.withDirectives(p.createElementVNode("input",{type:"text","onUpdate:modelValue":t[1]||(t[1]=w=>c.search=w),onInput:t[2]||(t[2]=w=>f.handleSearch()),class:"gl-input-form",placeholder:r.language?.search?r.language?.search+" ...":"Search ..."},null,40,F5e),[[p.vModelText,c.search]])])]),p.createElementVNode("div",L5e,[p.createElementVNode("table",I5e,[p.createElementVNode("thead",V5e,[p.createElementVNode("tr",null,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(o.columns,(w,C)=>(p.openBlock(),p.createElementBlock("th",{key:C,onClick:T=>f.updateSortColumn(w.field_name,w.sortable),class:"w-full px-4 py-2 lg:w-2/12"},[p.createElementVNode("div",z5e,[p.createElementVNode("span",null,p.toDisplayString(w.field_label),1),c.sortField===w.field_name?(p.openBlock(),p.createElementBlock("span",H5e,t[6]||(t[6]=[p.createElementVNode("svg",{class:"w-4 h-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[p.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 20V7m0 13-4-4m4 4 4-4m4-12v13m0-13 4 4m-4-4-4 4"})],-1)]))):p.createCommentVNode("",!0)])],8,Q5e))),128))])]),p.createElementVNode("tbody",Z5e,[c.isLoading?(p.openBlock(),p.createElementBlock("tr",U5e,[p.createElementVNode("td",{colspan:o.columns.length},t[7]||(t[7]=[p.createElementVNode("div",{role:"status",class:"p-4 space-y-4 border border-gray-200 divide-y divide-gray-200 rounded-sm shadow-sm animate-pulse dark:divide-gray-700 md:p-6 dark:border-gray-700"},[p.createElementVNode("div",{class:"flex items-center justify-between"},[p.createElementVNode("div",null,[p.createElementVNode("div",{class:"w-24 h-3 mb-3 bg-gray-300 rounded-full dark:bg-gray-600"}),p.createElementVNode("div",{class:"w-32 h-2 bg-gray-200 rounded-full dark:bg-gray-700"})]),p.createElementVNode("div",{class:"w-12 h-3 bg-gray-300 rounded-full dark:bg-gray-700"})]),p.createElementVNode("div",{class:"flex items-center justify-between pt-4"},[p.createElementVNode("div",null,[p.createElementVNode("div",{class:"w-24 h-3 mb-3 bg-gray-300 rounded-full dark:bg-gray-600"}),p.createElementVNode("div",{class:"w-32 h-2 bg-gray-200 rounded-full dark:bg-gray-700"})]),p.createElementVNode("div",{class:"w-12 h-3 bg-gray-300 rounded-full dark:bg-gray-700"})]),p.createElementVNode("div",{class:"flex items-center justify-between pt-4"},[p.createElementVNode("div",null,[p.createElementVNode("div",{class:"w-24 h-3 mb-3 bg-gray-300 rounded-full dark:bg-gray-600"}),p.createElementVNode("div",{class:"w-32 h-2 bg-gray-200 rounded-full dark:bg-gray-700"})]),p.createElementVNode("div",{class:"w-12 h-3 bg-gray-300 rounded-full dark:bg-gray-700"})]),p.createElementVNode("div",{class:"flex items-center justify-between pt-4"},[p.createElementVNode("div",null,[p.createElementVNode("div",{class:"w-24 h-3 mb-3 bg-gray-300 rounded-full dark:bg-gray-600"}),p.createElementVNode("div",{class:"w-32 h-2 bg-gray-200 rounded-full dark:bg-gray-700"})]),p.createElementVNode("div",{class:"w-12 h-3 bg-gray-300 rounded-full dark:bg-gray-700"})]),p.createElementVNode("div",{class:"flex items-center justify-between pt-4"},[p.createElementVNode("div",null,[p.createElementVNode("div",{class:"w-24 h-3 mb-3 bg-gray-300 rounded-full dark:bg-gray-600"}),p.createElementVNode("div",{class:"w-32 h-2 bg-gray-200 rounded-full dark:bg-gray-700"})]),p.createElementVNode("div",{class:"w-12 h-3 bg-gray-300 rounded-full dark:bg-gray-700"})]),p.createElementVNode("span",{class:"sr-only"},"Loading...")],-1)]),8,W5e)])):p.createCommentVNode("",!0),c.isLoading?p.createCommentVNode("",!0):(p.openBlock(!0),p.createElementBlock(p.Fragment,{key:1},p.renderList(f.groupedItems,(w,C)=>(p.openBlock(),p.createElementBlock(p.Fragment,null,[p.createElementVNode("tr",X5e,[p.createElementVNode("td",{colspan:o.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"},p.toDisplayString(C),9,q5e)]),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(w,(T,R)=>(p.openBlock(),p.createElementBlock("tr",{key:R,class:"text-gray-500 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-800 dark:hover:text-gray-200"},[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(o.columns,(B,V)=>(p.openBlock(),p.createElementBlock("td",{key:V,"data-label":B.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-[1px]! dark:border-gray-700"},[p.createElementVNode("div",{class:p.normalizeClass([B.field_name==="action"?"":"overflow-auto","td_overflow_auto max-h-40 max-w-100"])},[B.tdComp?(p.openBlock(),p.createBlock(p.resolveDynamicComponent(f.forDynCompIs(B.tdComp)),{key:0,row:T,field:B.field_name,xprops:o.xprops,tdProps:B.tdProps,onDeleteAction:t[3]||(t[3]=q=>f.GetItemLists()),onEditAction:q=>f.editAction(T)},null,40,["row","field","xprops","tdProps","onEditAction"])):(p.openBlock(),p.createElementBlock(p.Fragment,{key:1},[p.createTextVNode(p.toDisplayString(T[B.field_name]),1)],64))],2)],8,j5e))),128))]))),128))],64))),256))])])]),p.createElementVNode("div",G5e,[p.createVNode(y,{class:"mt-3 mb-0",data:c.itemLists,limit:c.limit,size:c.size,align:c.align,onPaginationChangePage:f.GetItemLists},null,8,["data","limit","size","align","onPaginationChangePage"])])])}const K5e=vi(A5e,[["render",Y5e],["__scopeId","data-v-1995ac95"]]),J5e={components:{},props:{data:Array,columns:Array,language:{type:Object,required:!1,default:()=>{}}},data(){const r=this.generateRandomString(6);return{isLoadinPrint:!1,Random_string:r,printObj:{id:"print_"+r,popTitle:"",beforeOpenCallback(t){},openCallback(t){t.isLoadinPrint=!1},closeCallback(t){t.isLoadinPrint=!1}},showNoOfEntries:[5,10,20,50,100,200,300,400,500,600,700,800,900,1e3,2e3,3e3,4e3,5e3,6e3,7e3,8e3,9e3,1e4,11e3,12e3,13e3,14e3,15e3,16e3,17e3,18e3,19e3,2e4],search:"",sortKey:"",sortOrder:1,currentPage:1,itemsPerPage:10,jumpToPage:"",maxDisplayedPages:10}},computed:{filteredData(){const r=this.search.toLowerCase();return this.sortData(this.data).filter(o=>Object.values(o).some(a=>a!=null&&a.toString().toLowerCase().includes(r)))},totalPages(){return Math.ceil(this.filteredData.length/this.itemsPerPage)},paginatedData(){const r=(this.currentPage-1)*this.itemsPerPage,t=r+this.itemsPerPage;return this.filteredData.slice(r,t)},displayedPageNumbers(){let r=Math.max(this.currentPage-Math.floor(this.maxDisplayedPages/2),1),t=r+this.maxDisplayedPages-1;return t>this.totalPages&&(t=this.totalPages,r=Math.max(t-this.maxDisplayedPages+1,1)),Array.from({length:t-r+1},(o,a)=>r+a)},firstItemIndex(){return this.itemsPerPage*(this.currentPage-1)+1},lastItemIndex(){const r=this.itemsPerPage*this.currentPage;return r>this.filteredData.length?this.filteredData.length:r}},methods:{exportToExcel(){const r=document.querySelector("#table"+this.Random_string),t=Array.from(r.querySelectorAll("thead th")).map(R=>R.innerText),a=["",...["action"]],c=t.map((R,B)=>a.includes(R)?B:-1).filter(R=>R!==-1),f=Array.from(r.querySelectorAll("tbody tr")).map(R=>Array.from(R.querySelectorAll("td")).map(V=>V.innerText).filter((V,q)=>!c.includes(q))),y=[t.filter((R,B)=>!c.includes(B)),...f],w=vb.aoa_to_sheet(y),C=vb.book_new();vb.book_append_sheet(C,w,"Sheet1"),JU(C,"exported-file.xlsx")},generateRandomString(r){let t="";const o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=o.length;for(let c=0;c<r;c++)t+=o.charAt(Math.floor(Math.random()*a));return t},delayedPrint(){this.isLoadinPrint=!0,this.$nextTick(()=>{this.$refs.hiddenPrintBtn?.click(),this.isLoadinPrint=!1})},handleItemsPerPageChange(r){this.itemsPerPage=r},goToPage(r){r>=1&&r<=this.totalPages&&(this.currentPage=r)},sort(r){r===this.sortKey?this.sortOrder*=-1:(this.sortKey=r,this.sortOrder=1)},sortData(r){return this.sortKey?r.slice().sort((t,o)=>(t[this.sortKey]<o[this.sortKey]?-1:1)*this.sortOrder):r},previousPage(){this.currentPage>1&&this.currentPage--},nextPage(){this.currentPage<this.totalPages&&this.currentPage++},firstPage(){this.currentPage=1},lastPage(){this.currentPage=this.totalPages},goToPage(r){r>=1&&r<=this.totalPages&&(this.currentPage=r)}},directives:{print:tW}},ePe={class:"p-0"},tPe={ref:"hiddenPrintBtn",style:{display:"none"}},nPe={class:"flex flex-col flex-wrap gap-4 pb-4 xl:flex-row xl:items-center xl:justify-between"},oPe={class:"flex items-center gap-2"},sPe={class:"mt-[9px]"},rPe={class:"relative"},iPe={class:"flex flex-wrap mb-3"},aPe=["id"],lPe=["id"],cPe={class:"hidden text-sm font-normal text-center text-gray-600 print:table-header-group! lg:table-header-group dark:border-gray-600 bg-gray-50 dark:bg-gray-800 dark:text-gray-400 print:border-[1px]!"},uPe=["onClick"],dPe={class:"inline-flex items-center justify-center gap-1"},fPe={key:0,class:"print:hidden!"},hPe={class:"bg-white dark:bg-gray-900"},mPe=["data-label"],gPe=["innerHTML"],pPe={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"},bPe={class:"flex justify-between flex-1 sm:hidden"},yPe=["disabled"],OPe=["disabled"],xPe={class:"hidden sm:flex sm:flex-1 sm:items-center sm:justify-between"},vPe={class:"text-sm text-gray-700 dark:text-gray-400"},wPe={class:"font-medium"},SPe={class:"font-medium"},kPe={class:"font-medium"},CPe={"aria-label":"Page navigation"},EPe={class:"flex items-center h-8 -space-x-px text-sm"},_Pe=["disabled"],TPe=["onClick"],APe=["onClick"],PPe=["disabled"];function DPe(r,t,o,a,c,f){const h=p.resolveComponent("dropdown"),y=p.resolveComponent("gl-button"),w=p.resolveDirective("print");return p.openBlock(),p.createElementBlock("div",ePe,[p.withDirectives(p.createElementVNode("button",tPe,null,512),[[w,c.printObj]]),p.createElementVNode("div",nPe,[p.createElementVNode("div",oPe,[t[6]||(t[6]=p.createElementVNode("span",{class:"font-medium"}," Show ",-1)),p.createElementVNode("div",sPe,[p.createVNode(h,{has_cancel:!1,options:c.showNoOfEntries,modelValue:c.itemsPerPage,"onUpdate:modelValue":t[0]||(t[0]=C=>c.itemsPerPage=C),is_required:!1,field_name:"NoOfEntries",label_name:"",default_value:10,show:!1,placeholder:"Please select an option"},null,8,["options","modelValue"])]),t[7]||(t[7]=p.createElementVNode("span",{class:"font-medium"}," Entries ",-1))]),t[9]||(t[9]=p.createElementVNode("label",{for:"table-search",class:"sr-only"},"Search",-1)),p.createElementVNode("div",rPe,[t[8]||(t[8]=p.createElementVNode("div",{class:"absolute inset-y-0 left-0 flex items-center pointer-events-none rtl:inset-r-0 rtl:right-0 ps-3"},null,-1)),p.withDirectives(p.createElementVNode("input",{type:"text","onUpdate:modelValue":t[1]||(t[1]=C=>c.search=C),class:"gl-input-form",placeholder:"Search ..."},null,512),[[p.vModelText,c.search]])])]),p.createElementVNode("div",iPe,[p.createVNode(y,{onClick:f.delayedPrint,tag:"button",is_loading:c.isLoadinPrint,button_type:"default",has_border_reduced:!1,classes:"rounded-s-lg"},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(o.language?.print??"Print"),1)]),_:1},8,["onClick","is_loading"]),p.createVNode(y,{onClick:f.exportToExcel,tag:"button",button_type:"default",has_border_reduced:!1,classes:"rounded-e-lg"},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(o.language?.excel??"Excel"),1)]),_:1},8,["onClick"])]),p.createElementVNode("div",{id:"print_"+c.Random_string,class:"overflow-auto rounded-lg dark:text-gray-400 dark:bg-gray-800"},[p.createElementVNode("table",{id:"table"+c.Random_string,class:"w-full h-full max-w-full overflow-hidden bg-white border-separate xl:overflow-auto lg:border-collapse print:border-collapse! border-spacing-y-5 lg:border-spacing-y-0 print:border-spacing-y-0! dark:border-gray-800 dark:bg-gray-900"},[p.createElementVNode("thead",cPe,[p.createElementVNode("tr",null,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(o.columns,(C,T)=>(p.openBlock(),p.createElementBlock("th",{key:T,onClick:p.withModifiers(R=>f.sort(C),["prevent"]),class:"w-full px-4 py-2 lg:w-2/12 print:w-2/12! print:border-[1px]!"},[p.createElementVNode("div",dPe,[p.createElementVNode("span",null,p.toDisplayString(C),1),c.sortKey===C?(p.openBlock(),p.createElementBlock("span",fPe,t[10]||(t[10]=[p.createElementVNode("svg",{class:"w-4 h-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[p.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 20V7m0 13-4-4m4 4 4-4m4-12v13m0-13 4 4m-4-4-4 4"})],-1)]))):p.createCommentVNode("",!0)])],8,uPe))),128))])]),p.createElementVNode("tbody",hPe,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(f.paginatedData,(C,T)=>(p.openBlock(),p.createElementBlock("tr",{key:T,class:"text-gray-500 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-800 dark:hover:text-gray-200"},[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(o.columns,(R,B)=>(p.openBlock(),p.createElementBlock("td",{key:B,"data-label":R,class:p.normalizeClass(["text-pretty before:content-[attr(data-label)] before:font-bold dark:before:text-gray-400 lg:before:content-[''] print:before:content-['']! flex flex-col justify-between gap-2 lg:table-cell print:table-cell! py-4 px-5 lg:py-3 lg:px-4 print:py-3! print:px-4! border-[1px]! dark:border-gray-700",{"rounded-t-lg lg:rounded-t-none!":B===0,"rounded-b-lg lg:rounded-b-none!":B===o.columns.length-1}])},[p.createElementVNode("p",{class:"text-pretty",innerHTML:C[B]},null,8,gPe)],10,mPe))),128))]))),128))])],8,lPe)],8,aPe),f.paginatedData.length>0?(p.openBlock(),p.createElementBlock("div",pPe,[p.createElementVNode("div",bPe,[p.createElementVNode("a",{href:"#",onClick:t[2]||(t[2]=p.withModifiers((...C)=>f.previousPage&&f.previousPage(...C),["prevent"])),disabled:c.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,yPe),p.createElementVNode("a",{href:"#",onClick:t[3]||(t[3]=p.withModifiers((...C)=>f.nextPage&&f.nextPage(...C),["prevent"])),disabled:c.currentPage===f.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,OPe)]),p.createElementVNode("div",xPe,[p.createElementVNode("div",null,[p.createElementVNode("p",vPe,[t[11]||(t[11]=p.createTextVNode(" Showing ")),p.createElementVNode("span",wPe,p.toDisplayString(f.firstItemIndex),1),t[12]||(t[12]=p.createTextVNode(" to ")),p.createElementVNode("span",SPe,p.toDisplayString(f.lastItemIndex),1),t[13]||(t[13]=p.createTextVNode(" of ")),p.createElementVNode("span",kPe,p.toDisplayString(f.filteredData.length),1),t[14]||(t[14]=p.createTextVNode(" entries "))])]),p.createElementVNode("div",null,[p.createElementVNode("nav",CPe,[p.createElementVNode("ul",EPe,[p.createElementVNode("li",null,[p.createElementVNode("a",{href:"#",onClick:t[4]||(t[4]=p.withModifiers((...C)=>f.previousPage&&f.previousPage(...C),["prevent"])),disabled:c.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"},t[15]||(t[15]=[p.createElementVNode("span",{class:"sr-only"},"Previous",-1),p.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"},[p.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 1 1 5l4 4"})],-1)]),8,_Pe)]),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(f.displayedPageNumbers,C=>(p.openBlock(),p.createElementBlock(p.Fragment,{key:C},[p.createElementVNode("li",null,[c.currentPage!==C?(p.openBlock(),p.createElementBlock("a",{key:0,href:"#",onClick:p.withModifiers(T=>f.goToPage(C),["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"},p.toDisplayString(C),9,TPe)):p.createCommentVNode("",!0)]),p.createElementVNode("li",null,[c.currentPage===C?(p.openBlock(),p.createElementBlock("a",{key:0,href:"#",onClick:p.withModifiers(T=>f.goToPage(C),["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"},p.toDisplayString(C),9,APe)):p.createCommentVNode("",!0)])],64))),128)),p.createElementVNode("li",null,[p.createElementVNode("a",{href:"#",onClick:t[5]||(t[5]=p.withModifiers((...C)=>f.nextPage&&f.nextPage(...C),["prevent"])),disabled:c.currentPage===f.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"},t[16]||(t[16]=[p.createElementVNode("span",{class:"sr-only"},"Next",-1),p.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"},[p.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m1 9 4-4-4-4"})],-1)]),8,PPe)])])])])])])):p.createCommentVNode("",!0)])}const NPe=vi(J5e,[["render",DPe],["__scopeId","data-v-c18f6d65"]]),$Pe={props:["field","row","tdProps"],methods:{convertCronToHuman(r){const[t,o,a,c,f]=r.split(" ");if(t==="*"&&o==="*"&&a==="*"&&c==="*"&&f==="*")return"Runs every minute.";if(t==="0"&&o==="0"&&a==="*"&&c==="*"&&f!=="*")return`Runs at 12:00 AM every ${this.convertDayOfWeek(f)}.`;const h={0:"Sunday",1:"Monday",2:"Tuesday",3:"Wednesday",4:"Thursday",5:"Friday",6:"Saturday","*":"every day"},y={1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December","*":"every month"},w=this.convertField(t,"minute",59),C=this.convertField(o,"hour",23),T=this.convertField(a,"day of the month",31),R=this.convertField(c,"month",12,y),B=this.convertField(f,"day",6,h);return`Runs ${w} ${C} ${T} ${R} on ${B}.`},convertField(r,t,o,a={}){if(r==="*")return`every ${t}`;if(r.includes("/")){const[c,f]=r.split("/");return`every ${f} ${t}${f>1?"s":""} starting at ${c}`}if(r.includes("-")){const[c,f]=r.split("-");return`${t}s from ${c} to ${f}`}if(r.includes(",")){const c=r.split(",").map(f=>a[f]||f);return`${t}s on ${c.join(", ")}`}return a[r]||`${t} ${r}`},convertDayOfWeek(r){return{0:"Sunday",1:"Monday",2:"Tuesday",3:"Wednesday",4:"Thursday",5:"Friday",6:"Saturday"}[r]||"Invalid day"},formatHour(r){const t=parseInt(r,10),o=t>=12?"PM":"AM";return`${(t%12||12).toString().padStart(2,"0")}:00 ${o}`}}},RPe={key:0,class:"flex flex-wrap gap-2"},BPe={class:"px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded-sm dark:bg-blue-900 dark:text-blue-300"};function MPe(r,t,o,a,c,f){return o.row[o.field]?(p.openBlock(),p.createElementBlock("div",RPe,[p.createElementVNode("span",BPe,p.toDisplayString(f.convertCronToHuman(o.row[o.field])),1)])):p.createCommentVNode("",!0)}const FPe=vi($Pe,[["render",MPe]]),LPe={setup(){const r=p.ref([]),t=c=>{r.value.push(c)},o=c=>{const f=r.value.indexOf(c);f>-1&&r.value.splice(f,1)},a=c=>{r.value.forEach(f=>{f!==c&&f.isOpen&&f.isOpen.value!==void 0&&(f.isOpen.value=!1)}),c.isOpen&&c.isOpen.value!==void 0&&(c.isOpen.value=!c.isOpen.value)};return p.provide("accordionsWrapper",{registerAccordion:t,unregisterAccordion:o,toggleAccordion:a,accordions:r}),{}}};function IPe(r,t,o,a,c,f){return p.openBlock(),p.createElementBlock("div",null,[p.renderSlot(r.$slots,"default")])}const VPe=vi(LPe,[["render",IPe]]),QPe={props:{title:{type:String,required:!0}},setup(){const r=p.ref(!1),t=p.inject("accordionsWrapper"),a=(()=>{var C=new Date().getTime();typeof performance<"u"&&typeof performance.now=="function"&&(C+=performance.now());var T="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(R){var B=(C+Math.random()*16)%16|0;return C=Math.floor(C/16),(R==="x"?B:B&3|8).toString(16)});return T})(),c={isOpen:r,id:a},f=p.computed(()=>t.accordions.value),h=p.computed(()=>f.value.length>0&&f.value[0].id===a),y=p.computed(()=>f.value.length>0&&f.value[f.value.length-1].id===a);return p.onMounted(()=>{t.registerAccordion(c)}),p.onUnmounted(()=>{t.unregisterAccordion(c)}),{isOpen:r,isFirstAccordion:h,isLastAccordion:y,toggle:()=>{t.toggleAccordion(c)}}}},zPe={class:"flex items-center"},HPe={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"},ZPe={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"};function UPe(r,t,o,a,c,f){return p.openBlock(),p.createElementBlock("div",null,[p.createElementVNode("h2",null,[p.createElementVNode("button",{onClick:t[0]||(t[0]=(...h)=>a.toggle&&a.toggle(...h)),type:"button",class:p.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":a.isFirstAccordion,"border-b-0":!a.isLastAccordion,"bg-gray-100 dark:bg-gray-800":a.isOpen}]),"aria-expanded":"true"},[p.createElementVNode("span",zPe,p.toDisplayString(o.title),1),a.isOpen?p.createCommentVNode("",!0):(p.openBlock(),p.createElementBlock("svg",HPe,t[1]||(t[1]=[p.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5 5 1 1 5"},null,-1)]))),a.isOpen?(p.openBlock(),p.createElementBlock("svg",ZPe,t[2]||(t[2]=[p.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5 5 1 1 5"},null,-1)]))):p.createCommentVNode("",!0)],2)]),a.isOpen?(p.openBlock(),p.createElementBlock("div",{key:0,class:p.normalizeClass([{"border-b-0":!a.isLastAccordion,"border-t-0":a.isLastAccordion},"p-5 border border-gray-200 dark:border-gray-700 dark:bg-gray-900"])},[p.renderSlot(r.$slots,"default")],2)):p.createCommentVNode("",!0)])}const WPe=vi(QPe,[["render",UPe]]),XPe={class:"flex items-center p-4 text-gray-500 bg-white rounded-lg shadow-sm dark:bg-gray-800 dark:text-gray-400",role:"alert"},qPe={key:0,class:"inline-flex items-center justify-center shrink-0 w-8 h-8 text-blue-500 bg-blue-100 rounded-lg dark:bg-blue-800 dark:text-blue-200"},jPe={key:1,class:"inline-flex items-center justify-center shrink-0 w-8 h-8 text-green-500 bg-green-100 rounded-lg dark:bg-green-800 dark:text-green-200"},GPe={key:2,class:"inline-flex items-center justify-center shrink-0 w-8 h-8 text-red-500 bg-red-100 rounded-lg dark:bg-red-800 dark:text-red-200"},YPe={key:3,class:"inline-flex items-center justify-center shrink-0 w-8 h-8 text-orange-500 bg-orange-100 rounded-lg dark:bg-orange-700 dark:text-orange-200"},KPe={class:"ml-3 text-sm font-normal"},JPe={__name:"ToastListItem",props:{message:String,duration:{type:Number,default:2e3},type:{type:String,default:"success"}},emits:["remove"],setup(r,{emit:t}){const o=r;p.onMounted(()=>{setTimeout(()=>a("remove"),o.duration)});const a=t;return(c,f)=>(p.openBlock(),p.createElementBlock("div",XPe,[o.type==="info"?(p.openBlock(),p.createElementBlock("div",qPe,f[1]||(f[1]=[p.createElementVNode("svg",{class:"w-5 h-5","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 20"},[p.createElementVNode("path",{d:"M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"})],-1),p.createElementVNode("span",{class:"sr-only"},"info icon",-1)]))):p.createCommentVNode("",!0),o.type==="success"?(p.openBlock(),p.createElementBlock("div",jPe,f[2]||(f[2]=[p.createElementVNode("svg",{class:"w-5 h-5","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 20"},[p.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),p.createElementVNode("span",{class:"sr-only"},"success icon",-1)]))):p.createCommentVNode("",!0),o.type==="error"?(p.openBlock(),p.createElementBlock("div",GPe,f[3]||(f[3]=[p.createElementVNode("svg",{class:"w-5 h-5","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 20"},[p.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),p.createElementVNode("span",{class:"sr-only"},"Error icon",-1)]))):p.createCommentVNode("",!0),o.type==="warning"?(p.openBlock(),p.createElementBlock("div",YPe,f[4]||(f[4]=[p.createElementVNode("svg",{class:"w-5 h-5","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 20"},[p.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),p.createElementVNode("span",{class:"sr-only"},"Warning icon",-1)]))):p.createCommentVNode("",!0),p.createElementVNode("div",KPe,p.toDisplayString(o.message),1),p.createElementVNode("button",{onClick:f[0]||(f[0]=h=>a("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"},f[5]||(f[5]=[p.createElementVNode("span",{class:"sr-only"},"Close",-1),p.createElementVNode("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[p.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)]))]))}},eDe={__name:"GlToastList",setup(r){function t(o){rb.methods.remove(o)}return(o,a)=>(p.openBlock(),p.createBlock(p.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:p.withCtx(()=>[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(p.unref(rb).state.items,(c,f)=>(p.openBlock(),p.createBlock(JPe,{key:c.key,message:c.message,type:c.type,duration:c.duration,onRemove:h=>t(f)},null,8,["message","type","duration","onRemove"]))),128))]),_:1}))}},tDe={key:0,class:"flex lg:justify-center"},nDe={class:"xs:right-[unset] ltr:lg:right-[30px] rtl:lg:left-[30px] absolute z-10 mt-11 origin-top-right bg-white rounded-lg w-44 dark:bg-gray-800 shadow-lg border dark:border-gray-700"},oDe={class:"py-2 text-sm text-gray-700 dark:text-gray-200","aria-labelledby":"dropdownDividerButton"},sDe={key:0},rDe=["href"],iDe={key:1},aDe={__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(r,{emit:t}){const o=r,a=p.ref(!1),c=p.ref(!1),f=()=>{a.value=!1},h=()=>{a.value=!0},y=()=>{c.value=!1},w=()=>{c.value=!0},C=t,T=()=>{axios.delete(`${o.xprops.route}/${o.row.id}`).then(()=>{y(),C("deleteAction"),rb.methods.add({message:"Item deleted successfully.",type:"success",duration:5e3})}).catch(R=>{console.log(R)})};return(R,B)=>{const V=p.resolveDirective("click-outside");return p.openBlock(),p.createElementBlock(p.Fragment,null,[p.createVNode(cA,{isOpen:c.value,onConfirmDelete:T,onCancelDelete:y},null,8,["isOpen"]),r.row&&R.can(`edit_${r.xprops.permission} || delete_${r.xprops.permission}`)?p.withDirectives((p.openBlock(),p.createElementBlock("div",tDe,[p.createElementVNode("button",{onClick:h,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-hidden dark:text-white focus:ring-gray-50 dark:bg-gray-800 dark:hover:bg-gray-700 dark:focus:ring-gray-600",type:"button"},B[0]||(B[0]=[p.createElementVNode("svg",{class:"w-5 h-5","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 4 15"},[p.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)])),p.withDirectives(p.createElementVNode("div",nDe,[p.createElementVNode("ul",oDe,[R.can(`edit_${r.xprops.permission}`)?(p.openBlock(),p.createElementBlock("li",sDe,[p.createElementVNode("a",{href:r.xprops.route+"/"+r.row.id+"/edit",class:"block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"},B[1]||(B[1]=[p.createElementVNode("i",{class:"mr-2 fa-solid fa-list-ul opacity-80"},null,-1),p.createTextVNode(" Edit")]),8,rDe)])):p.createCommentVNode("",!0),R.can(`delete_${r.xprops.permission}`)?(p.openBlock(),p.createElementBlock("li",iDe,[p.createElementVNode("a",{href:"#",onClick:p.withModifiers(w,["prevent"]),class:"block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"},B[2]||(B[2]=[p.createElementVNode("i",{class:"mr-2 fa-solid fa-trash-can opacity-80"},null,-1),p.createTextVNode(" Remove")]))])):p.createCommentVNode("",!0)])],512),[[p.vShow,a.value]])])),[[V,f]]):p.createCommentVNode("",!0)],64)}}},lDe={key:0,class:"flex lg:justify-center"},cDe={class:"absolute z-10 mt-5 origin-top-right bg-white divide-y divide-gray-100 rounded-lg shadow-sm w-44 dark:bg-gray-700 dark:divide-gray-600"},uDe={class:"py-2 text-sm text-gray-700 dark:text-gray-200","aria-labelledby":"dropdownDividerButton"},dDe={key:0},fDe={__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(r,{emit:t}){const o=r,a=p.ref(!1),c=p.ref(!1),f=()=>{a.value=!1},h=()=>{a.value=!0},y=()=>{c.value=!1},w=()=>{c.value=!0},C=t,T=()=>{axios.delete(`${o.xprops.route}/${o.row.id}`).then(()=>{y(),C("deleteAction"),rb.methods.add({message:"Item deleted successfully.",type:"success",duration:5e3})}).catch(R=>{console.log(R)})};return(R,B)=>{const V=p.resolveDirective("click-outside");return p.openBlock(),p.createElementBlock(p.Fragment,null,[p.createVNode(cA,{isOpen:c.value,onConfirmDelete:T,onCancelDelete:y},null,8,["isOpen"]),r.row&&R.can(`delete_${r.xprops.permission}`)?p.withDirectives((p.openBlock(),p.createElementBlock("div",lDe,[p.createElementVNode("button",{onClick:h,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-hidden dark:text-white focus:ring-gray-50 dark:bg-gray-800 dark:hover:bg-gray-700 dark:focus:ring-gray-600",type:"button"},B[0]||(B[0]=[p.createElementVNode("svg",{class:"w-5 h-5","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 4 15"},[p.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)])),p.withDirectives(p.createElementVNode("div",cDe,[p.createElementVNode("ul",uDe,[R.can(`delete_${r.xprops.permission}`)?(p.openBlock(),p.createElementBlock("li",dDe,[p.createElementVNode("a",{href:"#",onClick:p.withModifiers(w,["prevent"]),class:"block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"},B[1]||(B[1]=[p.createElementVNode("i",{class:"mr-2 fa-solid fa-trash-can opacity-80"},null,-1),p.createTextVNode(" Remove")]))])):p.createCommentVNode("",!0)])],512),[[p.vShow,a.value]])])),[[V,f]]):p.createCommentVNode("",!0)],64)}}},hDe={key:0,class:"flex lg:justify-center"},mDe={class:"xs:right-[unset] ltr:lg:right-[30px] rtl:lg:left-[30px] absolute z-10 mt-11 origin-top-right bg-white divide-y divide-gray-100 rounded-lg shadow-sm w-44 dark:bg-gray-700 dark:divide-gray-600"},gDe={class:"py-2 text-sm text-gray-700 dark:text-gray-200","aria-labelledby":"dropdownDividerButton"},pDe={key:0},bDe={key:1},yDe={__name:"DatatableDeleteEditAction",props:{language:{type:Object,required:!1,default:()=>{}},field:{type:String,default:""},route_url:{type:String,default:""},row:{type:[Array,Object],default:()=>({})},xprops:{type:Object,default:()=>({})},tdProps:{type:Object,default:()=>({})}},emits:["deleteAction","editAction"],setup(r,{emit:t}){const o=r,a=p.ref(!1),c=p.ref(!1),f=()=>{c.value=!1},h=()=>{c.value=!0},y=()=>{a.value=!1},w=()=>{a.value=!0},C=t,T=B=>{C("editAction",B)},R=()=>{axios.delete(`${o.xprops.route}/${o.row.id}`).then(()=>{f(),C("deleteAction"),rb.methods.add({message:o.language?.item_deleted_successfully??"Item deleted successfully.",type:"success",duration:5e3})}).catch(B=>{console.log(B)})};return(B,V)=>{const q=p.resolveDirective("click-outside");return p.openBlock(),p.createElementBlock(p.Fragment,null,[p.createVNode(cA,{language:r.language,isOpen:c.value,onConfirmDelete:R,onCancelDelete:f},null,8,["language","isOpen"]),r.row&&(B.can(`delete_${r.xprops.permission}`)||B.can(`access_${r.xprops.permission}`))?p.withDirectives((p.openBlock(),p.createElementBlock("div",hDe,[p.createElementVNode("button",{onClick:w,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-hidden dark:text-white focus:ring-gray-50 dark:bg-gray-800 dark:hover:bg-gray-700 dark:focus:ring-gray-600",type:"button"},V[1]||(V[1]=[p.createElementVNode("svg",{class:"w-5 h-5","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 4 15"},[p.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)])),p.withDirectives(p.createElementVNode("div",mDe,[p.createElementVNode("ul",gDe,[B.can(`access_${r.xprops.permission}`)?(p.openBlock(),p.createElementBlock("li",pDe,[p.createElementVNode("a",{href:"#",onClick:V[0]||(V[0]=p.withModifiers(U=>T(r.row),["prevent"])),class:"block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"},[V[2]||(V[2]=p.createElementVNode("i",{class:"mr-1 fa-solid fa-pen-to-square opacity-80"},null,-1)),p.createTextVNode(" "+p.toDisplayString(r.language?.edit??"Edit"),1)])])):p.createCommentVNode("",!0),B.can(`delete_${r.xprops.permission}`)?(p.openBlock(),p.createElementBlock("li",bDe,[p.createElementVNode("a",{href:"#",onClick:p.withModifiers(h,["prevent"]),class:"block px-4 py-2 text-red-600 hover:text-white hover:bg-red-600 dark:text-red-500 dark:hover:text-white dark:hover:bg-red-600"},[V[3]||(V[3]=p.createElementVNode("i",{class:"mr-1 fa-solid fa-trash-can opacity-80"},null,-1)),p.createTextVNode(" "+p.toDisplayString(r.language?.remove??"Remove"),1)])])):p.createCommentVNode("",!0)])],512),[[p.vShow,a.value]])])),[[q,y]]):p.createCommentVNode("",!0)],64)}}},ODe={props:["field","row"],computed:{isArray(){return Array.isArray(this.row)},isObject(){return typeof this.row=="object"},isString(){return typeof this.row=="string"}},mounted(){}},xDe=["href","title"],vDe={key:1,class:"m-1 d-inline-block"},wDe=["href","title"];function SDe(r,t,o,a,c,f){return p.openBlock(),p.createElementBlock("div",null,[f.isArray?(p.openBlock(!0),p.createElementBlock(p.Fragment,{key:0},p.renderList(o.row,(h,y)=>(p.openBlock(),p.createElementBlock("div",{key:y,class:"m-1 d-inline-block"},[p.createElementVNode("a",{href:h,title:h,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-hidden focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},t[0]||(t[0]=[p.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"},[p.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"}),p.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),p.createTextVNode(" Download ")]),8,xDe)]))),128)):f.isString?(p.openBlock(),p.createElementBlock("div",vDe,[p.createElementVNode("a",{href:o.row,title:o.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-hidden focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},t[1]||(t[1]=[p.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"},[p.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"}),p.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),p.createTextVNode(" Download ")]),8,wDe)])):p.createCommentVNode("",!0)])}const kDe=vi(ODe,[["render",SDe]]),CDe={props:["field","row"],computed:{isArray(){return Array.isArray(this.row[this.field])},isObject(){return typeof this.row[this.field]=="object"}}},EDe=["href","title"],_De={key:1,class:"m-1 d-inline-block"},TDe=["href","title"];function ADe(r,t,o,a,c,f){return f.isArray?(p.openBlock(!0),p.createElementBlock(p.Fragment,{key:0},p.renderList(o.row[o.field],h=>(p.openBlock(),p.createElementBlock("div",{key:h.id,class:"m-1 d-inline-block"},[p.createElementVNode("a",{href:h.url,title:h.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-hidden focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},t[0]||(t[0]=[p.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"},[p.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"}),p.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),p.createTextVNode(" Download ")]),8,EDe)]))),128)):f.isObject?(p.openBlock(),p.createElementBlock("div",_De,[p.createElementVNode("a",{href:o.row[o.field].url,title:o.row[o.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-hidden focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},t[1]||(t[1]=[p.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"},[p.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"}),p.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),p.createTextVNode(" Download ")]),8,TDe)])):p.createCommentVNode("",!0)}const PDe=vi(CDe,[["render",ADe]]),DDe={props:["field","row","tdProps"]},NDe={key:0},$De=["innerHTML"];function RDe(r,t,o,a,c,f){return o.row[o.field]?(p.openBlock(),p.createElementBlock("div",NDe,[p.createElementVNode("div",{class:"w-full",innerHTML:o.row[o.field]},null,8,$De)])):p.createCommentVNode("",!0)}const BDe=vi(DDe,[["render",RDe]]),MDe={props:["field","row","tdProps"],computed:{entry(){const[r,t]=this.field.split(".");return p.markRaw({key:r,field:t})},isArray(){return Array.isArray(this.row[this.entry.key])},isObject(){return typeof this.row[this.entry.key]=="object"}}},FDe={key:0,class:"flex flex-wrap gap-2"},LDe={key:1,class:"px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded-sm dark:bg-blue-900 dark:text-blue-300"};function IDe(r,t,o,a,c,f){return this.row[this.entry.key]?(p.openBlock(),p.createElementBlock("div",FDe,[f.isArray?(p.openBlock(!0),p.createElementBlock(p.Fragment,{key:0},p.renderList(o.row[f.entry.key],(h,y)=>(p.openBlock(),p.createElementBlock("span",{key:y,class:"px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded-sm dark:bg-blue-900 dark:text-blue-300"},p.toDisplayString(h[f.entry.field]),1))),128)):f.isObject?(p.openBlock(),p.createElementBlock("span",LDe,p.toDisplayString(o.row[f.entry.key][f.entry.field]),1)):p.createCommentVNode("",!0)])):p.createCommentVNode("",!0)}const VDe=vi(MDe,[["render",IDe]]),QDe={props:["field","row","tdProps"],computed:{entry(){const r=this.field.split("."),t=r.pop();return{keys:r,field:t}},isArray(){return Array.isArray(this.getNestedValue(this.row,this.entry.keys))},isObject(){return typeof this.getNestedValue(this.row,this.entry.keys)=="object"}},methods:{getNestedValue(r,t){return t.reduce((o,a)=>(o||{})[a],r)}}},zDe={class:"flex flex-wrap gap-2"},HDe={key:1,class:"px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded-sm dark:bg-blue-900 dark:text-blue-300"};function ZDe(r,t,o,a,c,f){return p.openBlock(),p.createElementBlock("div",zDe,[f.isArray?(p.openBlock(!0),p.createElementBlock(p.Fragment,{key:0},p.renderList(f.getNestedValue(o.row,f.entry.keys),(h,y)=>(p.openBlock(),p.createElementBlock("span",{key:y,class:"px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded-sm dark:bg-blue-900 dark:text-blue-300"},p.toDisplayString(h[f.entry.field]),1))),128)):f.isObject?(p.openBlock(),p.createElementBlock("span",HDe,p.toDisplayString(f.getNestedValue(o.row,f.entry.keys)[f.entry.field]),1)):p.createCommentVNode("",!0)])}const UDe=vi(QDe,[["render",ZDe]]),WDe={props:["field","row","tdProps"]},XDe={key:0},qDe={class:"m-1 d-inline-block"},jDe=["href","title"],GDe=["src","alt","title"];function YDe(r,t,o,a,c,f){return o.row[o.field]?(p.openBlock(),p.createElementBlock("div",XDe,[p.createElementVNode("div",qDe,[p.createElementVNode("a",{href:o.row[o.field].url,title:o.row[o.field].name,target:"_blank"},[p.createElementVNode("img",{src:o.row[o.field].thumbnail,alt:o.row[o.field].name,title:o.row[o.field].name},null,8,GDe)],8,jDe)])])):p.createCommentVNode("",!0)}const KDe=vi(WDe,[["render",YDe],["__scopeId","data-v-18c4893e"]]),JDe={props:["field","row","tdProps"],computed:{isArray(){return Array.isArray(this.row[this.field])},isObject(){return typeof this.row[this.field]=="object"}}},eNe={key:0,class:"grid grid-cols-2 gap-4"},tNe=["src","alt"],nNe={key:1},oNe=["src","alt"];function sNe(r,t,o,a,c,f){return f.isArray?(p.openBlock(),p.createElementBlock("div",eNe,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(o.row[o.field],h=>(p.openBlock(),p.createElementBlock("div",{key:h.id},[p.createElementVNode("img",{class:"h-auto max-w-full rounded-lg",src:h.thumbnail,alt:h.file_name},null,8,tNe)]))),128))])):f.isObject?(p.openBlock(),p.createElementBlock("div",nNe,[p.createElementVNode("img",{class:"h-auto max-w-full rounded-lg",src:o.row[o.field].thumbnail,alt:o.row[o.field].file_name},null,8,oNe)])):p.createCommentVNode("",!0)}const rNe=vi(JDe,[["render",sNe]]),iNe={props:["field","row","tdProps"],computed:{isActive(){return this.row[this.field]===1}}},aNe={class:"flex flex-wrap gap-2 text-nowrap"},lNe={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={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"};function uNe(r,t,o,a,c,f){return p.openBlock(),p.createElementBlock("div",aNe,[f.isActive?(p.openBlock(),p.createElementBlock("span",lNe,t[0]||(t[0]=[p.createElementVNode("span",{class:"w-2 h-2 bg-green-500 rounded-full me-1"},null,-1),p.createTextVNode(" Active ")]))):f.isActive?p.createCommentVNode("",!0):(p.openBlock(),p.createElementBlock("span",cNe,t[1]||(t[1]=[p.createElementVNode("span",{class:"w-2 h-2 bg-red-500 rounded-full me-1"},null,-1),p.createTextVNode(" Inactive ")])))])}const dNe=vi(iNe,[["render",uNe]]),fNe={props:["field","row","tdProps"],computed:{hasLabelColor(r){const t=this.tdProps.status_general_labels_color.find(o=>o.label===this.row[this.field]);return t?t.class:""}}},hNe={class:"flex flex-wrap gap-2 text-nowrap"},mNe={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"},gNe={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"},pNe={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"},bNe={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"},yNe={key:4,class:"inline-flex items-center px-2 py-1 text-xs text-blue-800 bg-blue-100 rounded-full dark:bg-blue-900 dark:text-blue-300"};function ONe(r,t,o,a,c,f){return p.openBlock(),p.createElementBlock("div",hNe,[f.hasLabelColor=="green"?(p.openBlock(),p.createElementBlock("span",mNe,[t[0]||(t[0]=p.createElementVNode("span",{class:"w-2 h-2 bg-green-500 rounded-full me-1"},null,-1)),p.createTextVNode(" "+p.toDisplayString(this.row[this.field]),1)])):p.createCommentVNode("",!0),f.hasLabelColor=="red"?(p.openBlock(),p.createElementBlock("span",gNe,[t[1]||(t[1]=p.createElementVNode("span",{class:"w-2 h-2 bg-red-500 rounded-full me-1"},null,-1)),p.createTextVNode(" "+p.toDisplayString(this.row[this.field]),1)])):p.createCommentVNode("",!0),f.hasLabelColor=="yellow"?(p.openBlock(),p.createElementBlock("span",pNe,[t[2]||(t[2]=p.createElementVNode("span",{class:"w-2 h-2 bg-yellow-500 rounded-full me-1"},null,-1)),p.createTextVNode(" "+p.toDisplayString(this.row[this.field]),1)])):p.createCommentVNode("",!0),f.hasLabelColor=="default"?(p.openBlock(),p.createElementBlock("span",bNe,[t[3]||(t[3]=p.createElementVNode("span",{class:"w-2 h-2 bg-blue-500 rounded-full me-1"},null,-1)),p.createTextVNode(" "+p.toDisplayString(this.row[this.field]),1)])):p.createCommentVNode("",!0),f.hasLabelColor=="animate"?(p.openBlock(),p.createElementBlock("span",yNe,[t[4]||(t[4]=p.createElementVNode("span",{class:"relative flex w-2 h-2 mr-1"},[p.createElementVNode("span",{class:"absolute inline-flex w-full h-full bg-blue-500 rounded-full animate-ping"}),p.createElementVNode("span",{class:"relative inline-flex w-2 h-2 bg-blue-500 rounded-full"})],-1)),p.createTextVNode(" "+p.toDisplayString(this.row[this.field]),1)])):p.createCommentVNode("",!0)])}const xNe=vi(fNe,[["render",ONe]]),vNe={props:["field","row","tdProps"],computed:{hasLabelColor(){return this.tdProps.specfic_color??""},badgeType(){switch(this.tdProps.badge_type){case"Default":return"rounded-sm text-xs";case"Large":return"rounded-sm text-sm ";case"Bordered":return"rounded-sm text-xs border";case"Pills":return"rounded-full text-xs";default:return""}}}},wNe={class:"flex flex-wrap gap-2 text-nowrap lg:justify-center"};function SNe(r,t,o,a,c,f){return p.openBlock(),p.createElementBlock("div",wNe,[f.hasLabelColor=="Default"?(p.openBlock(),p.createElementBlock("span",{key:0,class:p.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",f.badgeType])},p.toDisplayString(this.row[this.field]),3)):p.createCommentVNode("",!0),f.hasLabelColor=="Dark"?(p.openBlock(),p.createElementBlock("span",{key:1,class:p.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",f.badgeType])},p.toDisplayString(this.row[this.field]),3)):p.createCommentVNode("",!0),f.hasLabelColor=="Red"?(p.openBlock(),p.createElementBlock("span",{key:2,class:p.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",f.badgeType])},p.toDisplayString(this.row[this.field]),3)):p.createCommentVNode("",!0),f.hasLabelColor=="Green"?(p.openBlock(),p.createElementBlock("span",{key:3,class:p.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",f.badgeType])},p.toDisplayString(this.row[this.field]),3)):p.createCommentVNode("",!0),f.hasLabelColor=="Yellow"?(p.openBlock(),p.createElementBlock("span",{key:4,class:p.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",f.badgeType])},p.toDisplayString(this.row[this.field]),3)):p.createCommentVNode("",!0),f.hasLabelColor=="Indigo"?(p.openBlock(),p.createElementBlock("span",{key:5,class:p.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",f.badgeType])},p.toDisplayString(this.row[this.field]),3)):p.createCommentVNode("",!0),f.hasLabelColor=="Purple"?(p.openBlock(),p.createElementBlock("span",{key:6,class:p.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",f.badgeType])},p.toDisplayString(this.row[this.field]),3)):p.createCommentVNode("",!0),f.hasLabelColor=="Pink"?(p.openBlock(),p.createElementBlock("span",{key:7,class:p.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",f.badgeType])},p.toDisplayString(this.row[this.field]),3)):p.createCommentVNode("",!0)])}const kNe=vi(vNe,[["render",SNe]]),CNe={props:["field","row","tdProps"],computed:{entry(){const r=this.field.split("."),t=r.pop();return{keys:r,field:t}},isArray(){return Array.isArray(this.getNestedValue(this.row,this.entry.keys))},isObject(){return typeof this.getNestedValue(this.row,this.entry.keys)=="object"},hasLabelColor(r){const t=this.tdProps.status_general_labels_color.find(o=>o.text===this.getValue());return t?t.class:""},getLabel(){const r=this.tdProps.status_general_labels_color.find(t=>t.text===this.getValue());return r?r.label:""}},methods:{getValue(){return this.isObject?this.getNestedValue(this.row,this.entry.keys)[this.entry.field]:this.row[this.field]},getNestedValue(r,t){return t.reduce((o,a)=>(o||{})[a],r)}}},ENe={class:"flex flex-wrap gap-2 text-nowrap"},_Ne={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"},TNe={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"},ANe={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"},PNe={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"},DNe={key:4,class:"inline-flex items-center px-2 py-1 text-xs text-blue-800 bg-blue-100 rounded-full dark:bg-blue-900 dark:text-blue-300"};function NNe(r,t,o,a,c,f){return p.openBlock(),p.createElementBlock("div",ENe,[f.hasLabelColor=="green"?(p.openBlock(),p.createElementBlock("span",_Ne,[t[0]||(t[0]=p.createElementVNode("span",{class:"w-2 h-2 bg-green-500 rounded-full me-1"},null,-1)),p.createTextVNode(" "+p.toDisplayString(f.getLabel),1)])):p.createCommentVNode("",!0),f.hasLabelColor=="red"?(p.openBlock(),p.createElementBlock("span",TNe,[t[1]||(t[1]=p.createElementVNode("span",{class:"w-2 h-2 bg-red-500 rounded-full me-1"},null,-1)),p.createTextVNode(" "+p.toDisplayString(f.getLabel),1)])):p.createCommentVNode("",!0),f.hasLabelColor=="yellow"?(p.openBlock(),p.createElementBlock("span",ANe,[t[2]||(t[2]=p.createElementVNode("span",{class:"w-2 h-2 bg-yellow-500 rounded-full me-1"},null,-1)),p.createTextVNode(" "+p.toDisplayString(f.getLabel),1)])):p.createCommentVNode("",!0),f.hasLabelColor=="default"?(p.openBlock(),p.createElementBlock("span",PNe,[t[3]||(t[3]=p.createElementVNode("span",{class:"w-2 h-2 bg-blue-500 rounded-full me-1"},null,-1)),p.createTextVNode(" "+p.toDisplayString(f.getLabel),1)])):p.createCommentVNode("",!0),f.hasLabelColor=="animate"?(p.openBlock(),p.createElementBlock("span",DNe,[t[4]||(t[4]=p.createElementVNode("span",{class:"relative flex w-2 h-2 mr-1"},[p.createElementVNode("span",{class:"absolute inline-flex w-full h-full bg-blue-500 rounded-full animate-ping"}),p.createElementVNode("span",{class:"relative inline-flex w-2 h-2 bg-blue-500 rounded-full"})],-1)),p.createTextVNode(" "+p.toDisplayString(f.getLabel),1)])):p.createCommentVNode("",!0)])}const $Ne=vi(CNe,[["render",NNe]]),RNe={props:["field","row","tdProps"],computed:{formattedDate(){if(!this.row[this.field])return"";const r=new Date(this.row[this.field]),t=r.getFullYear(),o=String(r.getMonth()+1).padStart(2,"0"),a=String(r.getDate()).padStart(2,"0");let c=r.getHours();const f=String(r.getMinutes()).padStart(2,"0"),h=String(r.getSeconds()).padStart(2,"0"),y=c>=12?"PM":"AM";c=c%12,c=c||12;const w=String(c).padStart(2,"0");return`${a}-${o}-${t}, ${w}:${f}:${h} ${y}`}}},BNe={class:"w-full"};function MNe(r,t,o,a,c,f){return p.openBlock(),p.createElementBlock("div",BNe,p.toDisplayString(f.formattedDate),1)}const FNe=vi(RNe,[["render",MNe]]),LNe={props:["field","row","tdProps"],computed:{formattedDate(){if(!this.row[this.field])return"";const r=new Date(this.row[this.field]),t=r.getFullYear(),o=r.toLocaleString("default",{month:"long"}),a=r.getDate();return`${o} ${a}, ${t}`}}},INe={class:"w-full"};function VNe(r,t,o,a,c,f){return p.openBlock(),p.createElementBlock("div",INe,p.toDisplayString(f.formattedDate),1)}const QNe=vi(LNe,[["render",VNe]]),zNe={props:["field","row","tdProps"]},HNe={class:"flex flex-wrap gap-2 text-nowrap"},ZNe={key:0,class:"inline-flex items-center px-2 py-1 text-xs text-blue-800 bg-blue-100 rounded-full dark:bg-blue-900 dark:text-blue-300"},UNe={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"},WNe={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"};function XNe(r,t,o,a,c,f){return p.openBlock(),p.createElementBlock("div",HNe,[o.row[o.field]===0?(p.openBlock(),p.createElementBlock("span",ZNe,t[0]||(t[0]=[p.createElementVNode("span",{class:"relative flex w-2 h-2 mr-1"},[p.createElementVNode("span",{class:"absolute inline-flex w-full h-full bg-blue-500 rounded-full animate-ping"}),p.createElementVNode("span",{class:"relative inline-flex w-2 h-2 bg-blue-500 rounded-full"})],-1),p.createTextVNode(" Provisioning")]))):p.createCommentVNode("",!0),o.row[o.field]===2?(p.openBlock(),p.createElementBlock("span",UNe,t[1]||(t[1]=[p.createElementVNode("span",{class:"w-2 h-2 bg-yellow-500 rounded-full me-1"},null,-1),p.createTextVNode(" Paused ")]))):p.createCommentVNode("",!0),o.row[o.field]===1?(p.openBlock(),p.createElementBlock("span",WNe,t[2]||(t[2]=[p.createElementVNode("span",{class:"w-2 h-2 bg-green-500 rounded-full me-1"},null,-1),p.createTextVNode(" Active ")]))):p.createCommentVNode("",!0)])}const qNe=vi(zNe,[["render",XNe]]),jNe={props:["field","row","tdProps"]},GNe={key:0,class:"text-nowrap w-full"},YNe={class:"w-full h-full p-3 mx-0 mt-0 overflow-auto font-mono text-left break-words rounded-sm cursor-default whitespace-nowrap console_styles"};function KNe(r,t,o,a,c,f){return o.row[o.field]?(p.openBlock(),p.createElementBlock("div",GNe,[p.createElementVNode("pre",YNe," "+p.toDisplayString(o.row[o.field])+`
220
+ `,1)])):p.createCommentVNode("",!0)}const JNe=vi(jNe,[["render",KNe]]),e$e={components:{GlButton:s6},props:["isOpen","title","button_text"],methods:{confirmAction(){this.$emit("confirm-action")},cancelAction(){this.$emit("cancel-action")}}},t$e={key:0,class:"fixed inset-0 z-50 overflow-y-auto",role:"dialog","aria-modal":"true"},n$e={class:"flex items-center justify-center min-h-screen px-4 pt-4 pb-20 text-center sm:p-0"},o$e={class:"inline-block relative 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"},s$e={class:"px-4 pt-5 pb-4 sm:p-6 sm:pb-4"},r$e={class:"sm:flex sm:items-start"},i$e={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"},a$e={class:"text-lg font-medium leading-6"},l$e={class:"mt-2"},c$e={class:"border-t border-gray-200 rounded-b dark:border-gray-600 px-4 py-3 sm:px-6 flex gap-2"};function u$e(r,t,o,a,c,f){const h=p.resolveComponent("gl-button");return o.isOpen?(p.openBlock(),p.createElementBlock("div",t$e,[p.createElementVNode("div",n$e,[t[1]||(t[1]=p.createElementVNode("div",{class:"fixed inset-0 transition-opacity bg-gray-500/75","aria-hidden":"true"},null,-1)),t[2]||(t[2]=p.createElementVNode("span",{class:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true"},"​",-1)),p.createElementVNode("div",o$e,[p.createElementVNode("div",s$e,[p.createElementVNode("div",r$e,[p.createElementVNode("div",i$e,[p.createElementVNode("h3",a$e,p.toDisplayString(o.title),1),p.createElementVNode("div",l$e,[p.renderSlot(r.$slots,"default")])])])]),p.createElementVNode("div",c$e,[p.createVNode(h,{onClick:f.confirmAction,tag:"button",button_type:"red"},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(o.button_text),1)]),_:1},8,["onClick"]),p.createVNode(h,{onClick:f.cancelAction,tag:"button",button_type:"light"},{default:p.withCtx(()=>t[0]||(t[0]=[p.createTextVNode(" Cancel ")])),_:1},8,["onClick"])])])])])):p.createCommentVNode("",!0)}const d$e=vi(e$e,[["render",u$e]]),f$e={class:"w-full"},h$e={class:"mb-2 flex justify-between items-center"},m$e={class:"text-sm font-medium text-gray-900 dark:text-white"},g$e={class:"relative bg-gray-50 rounded-lg dark:bg-gray-700 p-4 h-auto"},p$e={class:"overflow-auto max-h-32"},b$e=["innerHTML"],y$e={key:1,class:"text-sm text-gray-500 dark:text-gray-400"},O$e={class:"absolute top-2 end-2 bg-gray-50 dark:bg-gray-700"},x$e={key:0,class:"inline-flex items-center"},v$e={key:1,class:"inline-flex items-center"},w$e={class:"mt-2 text-sm text-gray-500 dark:text-gray-400"},S$e={__name:"GlCodeCopy",props:{label_name:{type:String,default:""},code:{type:String,default:""},description:{type:String,default:""},isPre:{type:Boolean,default:!1}},setup(r){const t=r,o=p.ref(!1),a=f=>{navigator.clipboard.writeText(f).then(function(){o.value=!0,setTimeout(()=>{o.value=!1},2e3)}).catch(function(h){console.error("Error copying to clipboard: ",h)})},c=p.computed(()=>t.code);return(f,h)=>(p.openBlock(),p.createElementBlock("div",f$e,[p.createElementVNode("div",h$e,[p.createElementVNode("p",m$e,p.toDisplayString(r.label_name),1)]),p.createElementVNode("div",g$e,[p.createElementVNode("div",p$e,[r.isPre?(p.openBlock(),p.createElementBlock("pre",{key:0,class:"text-sm text-gray-500 dark:text-gray-400",innerHTML:c.value},null,8,b$e)):(p.openBlock(),p.createElementBlock("code",y$e,p.toDisplayString(c.value),1))]),p.createElementVNode("div",O$e,[p.createElementVNode("button",{onClick:h[0]||(h[0]=y=>a(c.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"},[o.value?p.createCommentVNode("",!0):(p.openBlock(),p.createElementBlock("span",x$e,h[1]||(h[1]=[p.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"},[p.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),p.createElementVNode("span",{class:"text-xs font-semibold"},"Copy",-1)]))),o.value?(p.openBlock(),p.createElementBlock("span",v$e,h[2]||(h[2]=[p.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"},[p.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),p.createElementVNode("span",{class:"text-xs font-semibold text-blue-700 dark:text-blue-500"},"Copied",-1)]))):p.createCommentVNode("",!0)])])]),p.createElementVNode("p",w$e,p.toDisplayString(r.description),1)]))}},k$e={class:"w-full"},C$e={class:"flex justify-between items-center"},E$e={class:"gl-label-form"},_$e={class:"flex items-center"},T$e={class:"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"},A$e={class:"relative w-full"},P$e=["value"],D$e={key:0},N$e={key:1,class:"inline-flex items-center"},$$e={class:"mt-2 text-sm text-gray-500 dark:text-gray-400"},R$e={__name:"GlTextCopy",props:{label_name:{type:String,default:""},text_name:{type:String,default:""},code:{type:String,default:""},description:{type:String,default:""}},setup(r){const t=r,o=p.ref(!1),a=f=>{navigator.clipboard.writeText(f).then(function(){o.value=!0,setTimeout(()=>{o.value=!1},2e3)}).catch(function(h){console.error("Error copying to clipboard: ",h)})},c=p.computed(()=>t.code);return(f,h)=>(p.openBlock(),p.createElementBlock("div",k$e,[p.createElementVNode("div",C$e,[p.createElementVNode("label",E$e,p.toDisplayString(r.label_name),1)]),p.createElementVNode("div",_$e,[p.createElementVNode("span",T$e,p.toDisplayString(r.text_name),1),p.createElementVNode("div",A$e,[p.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:c.value,readonly:"",disabled:""},null,8,P$e)]),p.createElementVNode("button",{style:{padding:".61rem"},onClick:h[0]||(h[0]=y=>a(c.value)),class:"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-hidden 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"},[o.value?p.createCommentVNode("",!0):(p.openBlock(),p.createElementBlock("span",D$e,h[1]||(h[1]=[p.createElementVNode("svg",{class:"w-4 h-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 18 20"},[p.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)]))),o.value?(p.openBlock(),p.createElementBlock("span",N$e,h[2]||(h[2]=[p.createElementVNode("svg",{class:"w-4 h-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 12"},[p.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)]))):p.createCommentVNode("",!0)])]),p.createElementVNode("p",$$e,p.toDisplayString(r.description),1)]))}},B$e={class:"flex flex-wrap gap-2 text-nowrap"},M$e={key:0,class:"inline-flex items-center px-2 py-1 text-xs text-blue-800 bg-blue-100 rounded-full dark:bg-blue-900 dark:text-blue-300"},F$e={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"},L$e={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"},I$e={__name:"StatusRunningSuccessFailed",props:{status:{type:Number,default:!1}},setup(r){return(t,o)=>(p.openBlock(),p.createElementBlock("div",B$e,[r.status===0?(p.openBlock(),p.createElementBlock("span",M$e,o[0]||(o[0]=[p.createElementVNode("span",{class:"relative flex w-2 h-2 mr-1"},[p.createElementVNode("span",{class:"absolute inline-flex w-full h-full bg-blue-500 rounded-full animate-ping"}),p.createElementVNode("span",{class:"relative inline-flex w-2 h-2 bg-blue-500 rounded-full"})],-1),p.createTextVNode(" Running")]))):p.createCommentVNode("",!0),r.status===1?(p.openBlock(),p.createElementBlock("span",F$e,o[1]||(o[1]=[p.createElementVNode("span",{class:"w-2 h-2 bg-green-500 rounded-full me-1"},null,-1),p.createTextVNode(" Success ")]))):p.createCommentVNode("",!0),r.status===2?(p.openBlock(),p.createElementBlock("span",L$e,o[2]||(o[2]=[p.createElementVNode("span",{class:"w-2 h-2 bg-red-500 rounded-full me-1"},null,-1),p.createTextVNode(" Failed ")]))):p.createCommentVNode("",!0)]))}},V$e={class:"flex flex-wrap text-nowrap"},Q$e={key:0,class:"inline-flex items-center px-2 py-1 text-xs text-blue-800 bg-blue-100 rounded-full dark:bg-blue-900 dark:text-blue-300"},z$e={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"},H$e={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"},Z$e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",class:"w-5 h-5",style:{"animation-direction":"reverse"}},U$e={__name:"StatusConnectingConnectedDisconnected",props:{status:{type:Number,default:!1}},emits:["reconnect"],setup(r,{emit:t}){const o=t,a=()=>{o("reconnect")};return(c,f)=>(p.openBlock(),p.createElementBlock("div",V$e,[r.status===0?(p.openBlock(),p.createElementBlock("span",Q$e,f[0]||(f[0]=[p.createElementVNode("span",{class:"relative flex w-2 h-2 mr-1"},[p.createElementVNode("span",{class:"absolute inline-flex w-full h-full bg-blue-500 rounded-full animate-ping"}),p.createElementVNode("span",{class:"relative inline-flex w-2 h-2 bg-blue-500 rounded-full"})],-1),p.createTextVNode(" Connecting")]))):p.createCommentVNode("",!0),r.status===1?(p.openBlock(),p.createElementBlock("span",z$e,f[1]||(f[1]=[p.createElementVNode("span",{class:"w-2 h-2 bg-green-500 rounded-full me-1"},null,-1),p.createTextVNode(" Connected ")]))):p.createCommentVNode("",!0),r.status===2?(p.openBlock(),p.createElementBlock("span",H$e,f[2]||(f[2]=[p.createElementVNode("span",{class:"w-2 h-2 bg-red-500 rounded-full me-1"},null,-1),p.createTextVNode(" Disconnected ")]))):p.createCommentVNode("",!0),p.createElementVNode("button",{onClick:a,class:"ml-1"},[(p.openBlock(),p.createElementBlock("svg",Z$e,f[3]||(f[3]=[p.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)])))])]))}},W$e={beforeMount:(r,t)=>{r.clickOutsideEvent=o=>{r==o.target||r.contains(o.target)||t.value(o,r)},document.addEventListener("click",r.clickOutsideEvent)},unmounted:r=>{document.removeEventListener("click",r.clickOutsideEvent)}};class X$e{constructor(){this.errors={}}all(){return this.errors}has(t){return this.errors.hasOwnProperty(t)}any(){return Object.keys(this.errors).length>0}get(t){if(this.errors[t])return this.errors[t][0]}record(t){this.errors=t}clear(t){if(t){delete this.errors[t];return}this.errors={}}}class q$e{constructor(t){this.originalData=t;for(let o in t)this[o]=t[o];this.errors=new X$e}data(){let t={};for(let o in this.originalData)t[o]=this[o];return t}reset(){for(let t in this.originalData)this[t]="";this.errors.clear()}post(t){return this.submit("post",t)}put(t){return this.submit("put",t)}patch(t){return this.submit("patch",t)}delete(t){return this.submit("delete",t)}submit(t,o){return new Promise((a,c)=>{axios[t](o,this.data()).then(f=>{this.onSuccess(f.data),a(f.data)}).catch(f=>{this.onFail(f.response.data),c(f.response.data)})})}onSuccess(t){alert(t.message),this.reset()}onFail(t){this.errors.record(t)}}(function(r,t){var o="multilingual",a={type:"normal",editing:!1,transInputs:"input[data-i18n=true]",trans_selector_name:"i18n_selector",langSelectors:".language-selector"};function c(f,h){this.container=f,this.element=t.querySelector(f),this.settings=Object.assign({},a,h),this._defaults=a,this._name=o,this.init()}Object.assign(c.prototype,{init:function(){var f=this.element.querySelector(this.settings.langSelectors);if(this.transInputs=this.element.querySelectorAll(this.settings.transInputs),this.langSelectors=f.querySelectorAll("input"),this.transInputs.length===0||this.langSelectors.length===0)return!1;this.setup(),this.refresh()},setup:function(){var f=this;this.locale=this.returnLocale(),this._languageChangeHandler=this.selectLanguage.bind(this);var h=this.element.querySelectorAll(".js-language-label");h&&h.forEach(function(y){y.textContent=this.locale},this),this.langSelectors.forEach(function(y){y.addEventListener("change",f._languageChangeHandler)})},destroy:function(){this.langSelectors&&this._languageChangeHandler&&this.langSelectors.forEach(function(f){f.removeEventListener("change",this._languageChangeHandler)},this),this._languageChangeHandler=null,this.element=null,this.container=null,this.transInputs=null,this.langSelectors=null,this.settings=Object.assign({},this._defaults)},refresh:function(){var f=this;this.transInputs.forEach(function(h){var y=h,w=y.nextElementSibling.classList.contains(f.settings.editing?"form-input-translation":"input_tr_show")?y.nextElementSibling:null;w&&(w.dataset.inp=y.id,y.dataset.inpUsr=w.id);var C=f.loadJsonField(y.value);f.settings.editing&&(y.value=JSON.stringify(C)),f.langSelectors.forEach(function(T){y.dataset[T.value]=C[T.value],T.value===f.locale&&f.loadLang(y,T.value)})})},findNextSibling:function(f,h){for(var y=f.nextElementSibling;y&&!y.matches(h);)y=y.nextElementSibling;return y},loadJsonField:function(f){var h={};return this.isJsonValid(f)?(h=JSON.parse(f),this.langSelectors.forEach(function(y){h[y.value]=h[y.value]||""}),h):(this.langSelectors.forEach(function(y){h[y.value]=""}),h)},isJsonValid:function(f){try{JSON.parse(f)}catch{return!1}return!0},returnLocale:function(){var f=this.element.querySelector('input[name="'+this.settings.trans_selector_name+'"]:checked');return f?f.value:""},selectLanguage:function(f){var h=this,y=f.target.value;this.transInputs.forEach(function(C){if(h.settings.editing){h.updateInputCache(C);var T=new Event("change");C.dispatchEvent(T)}h.loadLang(C,y)}),this.locale=y;var w=this.element.querySelectorAll(".js-language-label");w&&w.forEach(function(C){C.textContent=y},this)},prepareData:function(){var f=this;this.transInputs.forEach(function(h){f.updateInputCache(h);var y=new Event("change");h.dispatchEvent(y)})},updateInputCache:function(f){var h=this,y=f.dataset.inpUsr,w=t.getElementById(y).value,C={};if(t.getElementById(y).classList.contains("tiny")){var T=tinymce.get(t.getElementById(y).name);w=T.getContent()}t.getElementById(y).classList.contains("CodeEditor")&&(w=t.getElementById(y).querySelector(".cm-content").cmView.view.state.doc.toString()),h.langSelectors.forEach(function(R){var B=R.value;C[B]=h.locale==B?w:f.dataset[B]}),f.value=JSON.stringify(C),f.dataset[h.locale]=w},loadLang:function(f,h){var y=f.dataset.inpUsr,w=f.dataset[h];if(!this.settings.editing)this.settings.type==="tiny"?t.getElementById(y).innerHTML=w:t.getElementById(y).textContent=w;else{var C=tinymce.get(y);if(t.getElementById(y).classList.contains("tiny")&&C&&C.initialized)C.setContent(w);else if(t.getElementById(y).classList.contains("CodeEditor")){let R=t.getElementById(y).querySelector(".cm-content").cmView.view;R.dispatch({changes:{from:0,to:R.state.doc.length,insert:w}})}else t.getElementById(y).value=w}}}),r.multilingual=c})(window,document);const j$e=window.multilingual;qo.ClickOutsideDirective=W$e,qo.DatatableStatusTextLabelGeneral=$Ne,qo.Form=q$e,qo.GLDatatableCommand=JNe,qo.GLDatatableDate=QNe,qo.GLDatatableDateTime=FNe,qo.GLDatatableStatusServer=qNe,qo.GlAccordion=WPe,qo.GlAccordionsWrapper=VPe,qo.GlButton=s6,qo.GlCard=Dhe,qo.GlCodeCopy=S$e,qo.GlCodeMirror=x2e,qo.GlCodeMirrorTranslate=jwe,qo.GlConfirmationModal=d$e,qo.GlDataTable=NPe,qo.GlDataTableComponent=T5e,qo.GlDataTableServerSide=UAe,qo.GlDataTableServerSideGroupBy=K5e,qo.GlDatatableAction=aDe,qo.GlDatatableConvertCronToHuman=FPe,qo.GlDatatableDeleteAction=fDe,qo.GlDatatableDeleteEditAction=yDe,qo.GlDatatableFileDownload=kDe,qo.GlDatatableFiles=PDe,qo.GlDatatableHtml=BDe,qo.GlDatatableList=VDe,qo.GlDatatableListNested=UDe,qo.GlDatatablePicture=KDe,qo.GlDatatablePictures=rNe,qo.GlDatatableStatus=dNe,qo.GlDatatableStatusGeneral=xNe,qo.GlDatatableStatusSpecficColor=kNe,qo.GlDatePicker=yH,qo.GlDateRangePicker=qne,qo.GlDeleteConfirmationModal=cA,qo.GlDropdown=jne,qo.GlDynamicConfirmation=Nle,qo.GlFilesUpload=vhe,qo.GlLanguageSelector=_he,qo.GlModal=Fpe,qo.GlModalShow=Ype,qo.GlModalWithoutOverflow=Zpe,qo.GlMultiItemSlide=Kge,qo.GlMultiItemSlideDynamic=Ppe,qo.GlMultiSelectDropdown=jhe,qo.GlStatusConnectingConnectedDisconnected=U$e,qo.GlStatusRunningSuccessFailed=I$e,qo.GlTab=pge,qo.GlTabShow=xge,qo.GlTabsWrapper=fge,qo.GlTailwindPagination=xU,qo.GlTextCopy=R$e,qo.GlTextInput=Xne,qo.GlTextInputFile=age,qo.GlTextTranslate=hme,qo.GlTextarea=W0e,qo.GlTextareaTranslate=sme,qo.GlTinymce=x1e,qo.GlTinymceTranslate=sSe,qo.GlToast=rb,qo.GlToastList=eDe,qo.GlToggleBox=l0e,qo.GlToggleBoxTrueFalse=O0e,qo.multilingual=j$e,Object.defineProperty(qo,Symbol.toStringTag,{value:"Module"})}));
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "The most popular library of interactive components built with Vuejs && Tailwind CSS",
4
4
  "type": "module",
5
5
  "private": false,
6
- "version": "1.2.236",
6
+ "version": "1.2.237",
7
7
  "repository": {
8
8
  "type": "git",
9
9
  "url": "git+https://github.com/mrgiant/GoldenLogicUi.git"