golden-logic-ui 1.2.289 → 1.2.290

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.
@@ -91789,8 +91789,11 @@ class n5e {
91789
91789
  };
91790
91790
  }
91791
91791
  iframeBox(t, s) {
91792
- let a = document.createElement("iframe");
91793
- 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), s ? a.setAttribute("src", s) : a.setAttribute("srcdoc", "<!DOCTYPE html><html><head></head><body></body></html>"), a;
91792
+ let a = document.createElement("iframe"), c = navigator.userAgent;
91793
+ return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(c) || /Android/i.test(c) && !/Mobile/i.test(c) ? a.setAttribute(
91794
+ "style",
91795
+ "width:1px;height:100px;position:fixed;left:0;top:0;opacity:0;border:0;margin:0;padding:0;"
91796
+ ) : (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), s ? a.setAttribute("src", s) : a.setAttribute("srcdoc", "<!DOCTYPE html><html><head></head><body></body></html>"), a;
91794
91797
  }
91795
91798
  Iframe(t) {
91796
91799
  let s = this.settings.id, a = this, c = this.iframeBox(s, t);
@@ -209,7 +209,7 @@ Required: `+Z.join(", "));return Fo[mn].apply(null,eo)},log:Fo=>{console.log(Fo,
209
209
  `),w.push(` </office:body>
210
210
  `),y.bookType=="fods"?w.push("</office:document>"):w.push("</office:document-content>"),w.join("")}})();function Wue(r,t){if(t.bookType=="fods")return Uue(r,t);var o=EU(),a="",c=[],f=[];return a="mimetype",Ar(o,a,"application/vnd.oasis.opendocument.spreadsheet"),a="content.xml",Ar(o,a,Uue(r,t)),c.push([a,"text/xml"]),f.push([a,"ContentFile"]),a="styles.xml",Ar(o,a,F3e(r,t)),c.push([a,"text/xml"]),f.push([a,"StylesFile"]),a="meta.xml",Ar(o,a,wc+Wce()),c.push([a,"text/xml"]),f.push([a,"MetadataFile"]),a="manifest.rdf",Ar(o,a,jke(f)),c.push([a,"application/rdf+xml"]),a="META-INF/manifest.xml",Ar(o,a,Xke(c)),o}function GB(r){return new DataView(r.buffer,r.byteOffset,r.byteLength)}function L3e(r){return typeof TextEncoder<"u"?new TextEncoder().encode(r):ep(GA(r))}function I3e(r,t){e:for(var o=0;o<=r.length-t.length;++o){for(var a=0;a<t.length;++a)if(r[o+a]!=t[a])continue e;return!0}return!1}function MO(r){var t=r.reduce(function(c,f){return c+f.length},0),o=new Uint8Array(t),a=0;return r.forEach(function(c){o.set(c,a),a+=c.length}),o}function V3e(r,t,o){var a=Math.floor(o==0?0:Math.LOG10E*Math.log(Math.abs(o)))+6176-20,c=o/Math.pow(10,a-6176);r[t+15]|=a>>7,r[t+14]|=(a&127)<<1;for(var f=0;c>=1;++f,c/=256)r[t+f]=c&255;r[t+15]|=o>=0?0:128}function l5(r,t){var o=t?t[0]:0,a=r[o]&127;e:if(r[o++]>=128&&(a|=(r[o]&127)<<7,r[o++]<128||(a|=(r[o]&127)<<14,r[o++]<128)||(a|=(r[o]&127)<<21,r[o++]<128)||(a+=(r[o]&127)*Math.pow(2,28),++o,r[o++]<128)||(a+=(r[o]&127)*Math.pow(2,35),++o,r[o++]<128)||(a+=(r[o]&127)*Math.pow(2,42),++o,r[o++]<128)))break e;return t&&(t[0]=o),a}function ca(r){var t=new Uint8Array(7);t[0]=r&127;var o=1;e:if(r>127){if(t[o-1]|=128,t[o]=r>>7&127,++o,r<=16383||(t[o-1]|=128,t[o]=r>>14&127,++o,r<=2097151)||(t[o-1]|=128,t[o]=r>>21&127,++o,r<=268435455)||(t[o-1]|=128,t[o]=r/256>>>21&127,++o,r<=34359738367)||(t[o-1]|=128,t[o]=r/65536>>>21&127,++o,r<=4398046511103))break e;t[o-1]|=128,t[o]=r/16777216>>>21&127,++o}return t.slice(0,o)}function mE(r){var t=0,o=r[t]&127;e:if(r[t++]>=128){if(o|=(r[t]&127)<<7,r[t++]<128||(o|=(r[t]&127)<<14,r[t++]<128)||(o|=(r[t]&127)<<21,r[t++]<128))break e;o|=(r[t]&127)<<28}return o}function Wc(r){for(var t=[],o=[0];o[0]<r.length;){var a=o[0],c=l5(r,o),f=c&7;c=Math.floor(c/8);var h=0,y;if(c==0)break;switch(f){case 0:{for(var w=o[0];r[o[0]++]>=128;);y=r.slice(w,o[0])}break;case 5:h=4,y=r.slice(o[0],o[0]+h),o[0]+=h;break;case 1:h=8,y=r.slice(o[0],o[0]+h),o[0]+=h;break;case 2:h=l5(r,o),y=r.slice(o[0],o[0]+h),o[0]+=h;break;default:throw new Error("PB Type ".concat(f," for Field ").concat(c," at offset ").concat(a))}var C={data:y,type:f};t[c]==null?t[c]=[C]:t[c].push(C)}return t}function sd(r){var t=[];return r.forEach(function(o,a){o.forEach(function(c){c.data&&(t.push(ca(a*8+c.type)),c.type==2&&t.push(ca(c.data.length)),t.push(c.data))})}),MO(t)}function op(r){for(var t,o=[],a=[0];a[0]<r.length;){var c=l5(r,a),f=Wc(r.slice(a[0],a[0]+c));a[0]+=c;var h={id:mE(f[1][0].data),messages:[]};f[2].forEach(function(y){var w=Wc(y.data),C=mE(w[3][0].data);h.messages.push({meta:w,data:r.slice(a[0],a[0]+C)}),a[0]+=C}),(t=f[3])!=null&&t[0]&&(h.merge=mE(f[3][0].data)>>>0>0),o.push(h)}return o}function gE(r){var t=[];return r.forEach(function(o){var a=[];a[1]=[{data:ca(o.id),type:0}],a[2]=[],o.merge!=null&&(a[3]=[{data:ca(+!!o.merge),type:0}]);var c=[];o.messages.forEach(function(h){c.push(h.data),h.meta[3]=[{type:0,data:ca(h.data.length)}],a[2].push({data:sd(h.meta),type:2})});var f=sd(a);t.push(ca(f.length)),t.push(f),c.forEach(function(h){return t.push(h)})}),MO(t)}function Q3e(r,t){if(r!=0)throw new Error("Unexpected Snappy chunk type ".concat(r));for(var o=[0],a=l5(t,o),c=[];o[0]<t.length;){var f=t[o[0]]&3;if(f==0){var h=t[o[0]++]>>2;if(h<60)++h;else{var y=h-59;h=t[o[0]],y>1&&(h|=t[o[0]+1]<<8),y>2&&(h|=t[o[0]+2]<<16),y>3&&(h|=t[o[0]+3]<<24),h>>>=0,h++,o[0]+=y}c.push(t.slice(o[0],o[0]+h)),o[0]+=h;continue}else{var w=0,C=0;if(f==1?(C=(t[o[0]]>>2&7)+4,w=(t[o[0]++]&224)<<3,w|=t[o[0]++]):(C=(t[o[0]++]>>2)+1,f==2?(w=t[o[0]]|t[o[0]+1]<<8,o[0]+=2):(w=(t[o[0]]|t[o[0]+1]<<8|t[o[0]+2]<<16|t[o[0]+3]<<24)>>>0,o[0]+=4)),c=[MO(c)],w==0)throw new Error("Invalid offset 0");if(w>c[0].length)throw new Error("Invalid offset beyond length");if(C>=w)for(c.push(c[0].slice(-w)),C-=w;C>=c[c.length-1].length;)c.push(c[c.length-1]),C-=c[c.length-1].length;c.push(c[0].slice(-w,-w+C))}}var T=MO(c);if(T.length!=a)throw new Error("Unexpected length: ".concat(T.length," != ").concat(a));return T}function sp(r){for(var t=[],o=0;o<r.length;){var a=r[o++],c=r[o]|r[o+1]<<8|r[o+2]<<16;o+=3,t.push(Q3e(a,r.slice(o,o+c))),o+=c}if(o!==r.length)throw new Error("data is not a valid framed stream!");return MO(t)}function pE(r){for(var t=[],o=0;o<r.length;){var a=Math.min(r.length-o,268435455),c=new Uint8Array(4);t.push(c);var f=ca(a),h=f.length;t.push(f),a<=60?(h++,t.push(new Uint8Array([a-1<<2]))):a<=256?(h+=2,t.push(new Uint8Array([240,a-1&255]))):a<=65536?(h+=3,t.push(new Uint8Array([244,a-1&255,a-1>>8&255]))):a<=16777216?(h+=4,t.push(new Uint8Array([248,a-1&255,a-1>>8&255,a-1>>16&255]))):a<=4294967296&&(h+=5,t.push(new Uint8Array([252,a-1&255,a-1>>8&255,a-1>>16&255,a-1>>>24&255]))),t.push(r.slice(o,o+a)),h+=a,c[0]=0,c[1]=h&255,c[2]=h>>8&255,c[3]=h>>16&255,o+=a}return MO(t)}function GU(r,t){var o=new Uint8Array(32),a=GB(o),c=12,f=0;switch(o[0]=5,r.t){case"n":o[1]=2,V3e(o,c,r.v),f|=1,c+=16;break;case"b":o[1]=6,a.setFloat64(c,r.v?1:0,!0),f|=2,c+=8;break;case"s":if(t.indexOf(r.v)==-1)throw new Error("Value ".concat(r.v," missing from SST!"));o[1]=3,a.setUint32(c,t.indexOf(r.v),!0),f|=8,c+=4;break;default:throw"unsupported cell type "+r.t}return a.setUint32(8,f,!0),o.slice(0,c)}function YU(r,t){var o=new Uint8Array(32),a=GB(o),c=12,f=0;switch(o[0]=3,r.t){case"n":o[2]=2,a.setFloat64(c,r.v,!0),f|=32,c+=8;break;case"b":o[2]=6,a.setFloat64(c,r.v?1:0,!0),f|=32,c+=8;break;case"s":if(t.indexOf(r.v)==-1)throw new Error("Value ".concat(r.v," missing from SST!"));o[2]=3,a.setUint32(c,t.indexOf(r.v),!0),f|=16,c+=4;break;default:throw"unsupported cell type "+r.t}return a.setUint32(4,f,!0),o.slice(0,c)}function FO(r){var t=Wc(r);return l5(t[1][0].data)}function z3e(r,t,o){var a,c,f,h;if(!((a=r[6])!=null&&a[0])||!((c=r[7])!=null&&c[0]))throw"Mutation only works on post-BNC storages!";var y=((h=(f=r[8])==null?void 0:f[0])==null?void 0:h.data)&&mE(r[8][0].data)>0||!1;if(y)throw"Math only works with normal offsets";for(var w=0,C=GB(r[7][0].data),T=0,R=[],B=GB(r[4][0].data),V=0,q=[],U=0;U<t.length;++U){if(t[U]==null){C.setUint16(U*2,65535,!0),B.setUint16(U*2,65535);continue}C.setUint16(U*2,T,!0),B.setUint16(U*2,V,!0);var Y,ue;switch(typeof t[U]){case"string":Y=GU({t:"s",v:t[U]},o),ue=YU({t:"s",v:t[U]},o);break;case"number":Y=GU({t:"n",v:t[U]},o),ue=YU({t:"n",v:t[U]},o);break;case"boolean":Y=GU({t:"b",v:t[U]},o),ue=YU({t:"b",v:t[U]},o);break;default:throw new Error("Unsupported value "+t[U])}R.push(Y),T+=Y.length,q.push(ue),V+=ue.length,++w}for(r[2][0].data=ca(w);U<r[7][0].data.length/2;++U)C.setUint16(U*2,65535,!0),B.setUint16(U*2,65535,!0);return r[6][0].data=MO(R),r[3][0].data=MO(q),w}function H3e(r,t){if(!t||!t.numbers)throw new Error("Must pass a `numbers` option -- check the README");var o=r.Sheets[r.SheetNames[0]];r.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var a=Yh(o["!ref"]);a.s.r=a.s.c=0;var c=!1;a.e.c>9&&(c=!0,a.e.c=9),a.e.r>49&&(c=!0,a.e.r=49),c&&console.error("The Numbers writer is currently limited to ".concat(Sc(a)));var f=KB(o,{range:a,header:1}),h=["~Sh33tJ5~"];f.forEach(function(He){return He.forEach(function(Oe){typeof Oe=="string"&&h.push(Oe)})});var y={},w=[],C=ga.read(t.numbers,{type:"base64"});C.FileIndex.map(function(He,Oe){return[He,C.FullPaths[Oe]]}).forEach(function(He){var Oe=He[0],Ie=He[1];if(Oe.type==2&&Oe.name.match(/\.iwa/)){var $e=Oe.content,pt=sp($e),ne=op(pt);ne.forEach(function(_n){w.push(_n.id),y[_n.id]={deps:[],location:Ie,type:mE(_n.messages[0].meta[1][0].data)}})}}),w.sort(function(He,Oe){return He-Oe});var T=w.filter(function(He){return He>1}).map(function(He){return[He,ca(He)]});C.FileIndex.map(function(He,Oe){return[He,C.FullPaths[Oe]]}).forEach(function(He){var Oe=He[0];if(He[1],!!Oe.name.match(/\.iwa/)){var Ie=op(sp(Oe.content));Ie.forEach(function($e){$e.messages.forEach(function(pt){T.forEach(function(ne){$e.messages.some(function(_n){return mE(_n.meta[1][0].data)!=11006&&I3e(_n.data,ne[1])})&&y[ne[0]].deps.push($e.id)})})})}});for(var R=ga.find(C,y[1].location),B=op(sp(R.content)),V,q=0;q<B.length;++q){var U=B[q];U.id==1&&(V=U)}var Y=FO(Wc(V.messages[0].data)[1][0].data);for(R=ga.find(C,y[Y].location),B=op(sp(R.content)),q=0;q<B.length;++q)U=B[q],U.id==Y&&(V=U);for(Y=FO(Wc(V.messages[0].data)[2][0].data),R=ga.find(C,y[Y].location),B=op(sp(R.content)),q=0;q<B.length;++q)U=B[q],U.id==Y&&(V=U);for(Y=FO(Wc(V.messages[0].data)[2][0].data),R=ga.find(C,y[Y].location),B=op(sp(R.content)),q=0;q<B.length;++q)U=B[q],U.id==Y&&(V=U);var ue=Wc(V.messages[0].data);{ue[6][0].data=ca(a.e.r+1),ue[7][0].data=ca(a.e.c+1);var ke=FO(ue[46][0].data),te=ga.find(C,y[ke].location),De=op(sp(te.content));{for(var wt=0;wt<De.length&&De[wt].id!=ke;++wt);if(De[wt].id!=ke)throw"Bad ColumnRowUIDMapArchive";var nt=Wc(De[wt].messages[0].data);nt[1]=[],nt[2]=[],nt[3]=[];for(var G=0;G<=a.e.c;++G){var ot=[];ot[1]=ot[2]=[{type:0,data:ca(G+420690)}],nt[1].push({type:2,data:sd(ot)}),nt[2].push({type:0,data:ca(G)}),nt[3].push({type:0,data:ca(G)})}nt[4]=[],nt[5]=[],nt[6]=[];for(var rt=0;rt<=a.e.r;++rt)ot=[],ot[1]=ot[2]=[{type:0,data:ca(rt+726270)}],nt[4].push({type:2,data:sd(ot)}),nt[5].push({type:0,data:ca(rt)}),nt[6].push({type:0,data:ca(rt)});De[wt].messages[0].data=sd(nt)}te.content=pE(gE(De)),te.size=te.content.length,delete ue[46];var xt=Wc(ue[4][0].data);{xt[7][0].data=ca(a.e.r+1);var Re=Wc(xt[1][0].data),fe=FO(Re[2][0].data);te=ga.find(C,y[fe].location),De=op(sp(te.content));{if(De[0].id!=fe)throw"Bad HeaderStorageBucket";var qt=Wc(De[0].messages[0].data);for(rt=0;rt<f.length;++rt){var Ot=Wc(qt[2][0].data);Ot[1][0].data=ca(rt),Ot[4][0].data=ca(f[rt].length),qt[2][rt]={type:qt[2][0].type,data:sd(Ot)}}De[0].messages[0].data=sd(qt)}te.content=pE(gE(De)),te.size=te.content.length;var vt=FO(xt[2][0].data);te=ga.find(C,y[vt].location),De=op(sp(te.content));{if(De[0].id!=vt)throw"Bad HeaderStorageBucket";for(qt=Wc(De[0].messages[0].data),G=0;G<=a.e.c;++G)Ot=Wc(qt[2][0].data),Ot[1][0].data=ca(G),Ot[4][0].data=ca(a.e.r+1),qt[2][G]={type:qt[2][0].type,data:sd(Ot)};De[0].messages[0].data=sd(qt)}te.content=pE(gE(De)),te.size=te.content.length;var L=FO(xt[4][0].data);(function(){for(var He=ga.find(C,y[L].location),Oe=op(sp(He.content)),Ie,$e=0;$e<Oe.length;++$e){var pt=Oe[$e];pt.id==L&&(Ie=pt)}var ne=Wc(Ie.messages[0].data);{ne[3]=[];var _n=[];h.forEach(function(so,Ks){_n[1]=[{type:0,data:ca(Ks)}],_n[2]=[{type:0,data:ca(1)}],_n[3]=[{type:2,data:L3e(so)}],ne[3].push({type:2,data:sd(_n)})})}Ie.messages[0].data=sd(ne);var nn=gE(Oe),Kn=pE(nn);He.content=Kn,He.size=He.content.length})();var Yt=Wc(xt[3][0].data);{var ut=Yt[1][0];delete Yt[2];var Vt=Wc(ut.data);{var Ht=FO(Vt[2][0].data);(function(){for(var He=ga.find(C,y[Ht].location),Oe=op(sp(He.content)),Ie,$e=0;$e<Oe.length;++$e){var pt=Oe[$e];pt.id==Ht&&(Ie=pt)}var ne=Wc(Ie.messages[0].data);{delete ne[6],delete Yt[7];var _n=new Uint8Array(ne[5][0].data);ne[5]=[];for(var nn=0,Kn=0;Kn<=a.e.r;++Kn){var so=Wc(_n);nn+=z3e(so,f[Kn],h),so[1][0].data=ca(Kn),ne[5].push({data:sd(so),type:2})}ne[1]=[{type:0,data:ca(a.e.c+1)}],ne[2]=[{type:0,data:ca(a.e.r+1)}],ne[3]=[{type:0,data:ca(nn)}],ne[4]=[{type:0,data:ca(a.e.r+1)}]}Ie.messages[0].data=sd(ne);var Ks=gE(Oe),Ze=pE(Ks);He.content=Ze,He.size=He.content.length})()}ut.data=sd(Vt)}xt[3][0].data=sd(Yt)}ue[4][0].data=sd(xt)}V.messages[0].data=sd(ue);var ze=gE(B),ce=pE(ze);return R.content=ce,R.size=R.content.length,C}function Z3e(r){return function(o){for(var a=0;a!=r.length;++a){var c=r[a];o[c[0]]===void 0&&(o[c[0]]=c[1]),c[2]==="n"&&(o[c[0]]=Number(o[c[0]]))}}}function KU(r){Z3e([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(r)}function U3e(r,t){return t.bookType=="ods"?Wue(r,t):t.bookType=="numbers"?H3e(r,t):t.bookType=="xlsb"?W3e(r,t):X3e(r,t)}function W3e(r,t){fE=1024,r&&!r.SSF&&(r.SSF=jf(zl)),r&&r.SSF&&(NB(),DB(r.SSF),t.revssf=$B(r.SSF),t.revssf[r.SSF[65535]]=0,t.ssf=r.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,i5?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var o=t.bookType=="xlsb"?"bin":"xml",a=Sue.indexOf(t.bookType)>-1,c=zce();KU(t=t||{});var f=EU(),h="",y=0;if(t.cellXfs=[],BO(t.cellXfs,{},{revssf:{General:0}}),r.Props||(r.Props={}),h="docProps/core.xml",Ar(f,h,Xce(r.Props,t)),c.coreprops.push(h),la(t.rels,2,h,wi.CORE_PROPS),h="docProps/app.xml",!(r.Props&&r.Props.SheetNames))if(!r.Workbook||!r.Workbook.Sheets)r.Props.SheetNames=r.SheetNames;else{for(var w=[],C=0;C<r.SheetNames.length;++C)(r.Workbook.Sheets[C]||{}).Hidden!=2&&w.push(r.SheetNames[C]);r.Props.SheetNames=w}for(r.Props.Worksheets=r.Props.SheetNames.length,Ar(f,h,jce(r.Props)),c.extprops.push(h),la(t.rels,3,h,wi.EXT_PROPS),r.Custprops!==r.Props&&ed(r.Custprops||{}).length>0&&(h="docProps/custom.xml",Ar(f,h,Gce(r.Custprops)),c.custprops.push(h),la(t.rels,4,h,wi.CUST_PROPS)),y=1;y<=r.SheetNames.length;++y){var T={"!id":{}},R=r.Sheets[r.SheetNames[y-1]],B=(R||{})["!type"]||"sheet";if(h="xl/worksheets/sheet"+y+"."+o,Ar(f,h,j4e(y-1,h,t,r,T)),c.sheets.push(h),la(t.wbrels,-1,"worksheets/sheet"+y+"."+o,wi.WS[0]),R){var V=R["!comments"],q=!1,U="";V&&V.length>0&&(U="xl/comments"+y+"."+o,Ar(f,U,K4e(V,U)),c.comments.push(U),la(T,-1,"../comments"+y+"."+o,wi.CMNT),q=!0),R["!legacy"]&&q&&Ar(f,"xl/drawings/vmlDrawing"+y+".vml",vue(y,R["!comments"])),delete R["!comments"],delete R["!legacy"]}T["!id"].rId1&&Ar(f,Zce(h),uE(T))}return t.Strings!=null&&t.Strings.length>0&&(h="xl/sharedStrings."+o,Ar(f,h,Y4e(t.Strings,h,t)),c.strs.push(h),la(t.wbrels,-1,"sharedStrings."+o,wi.SST)),h="xl/workbook."+o,Ar(f,h,q4e(r,h)),c.workbooks.push(h),la(t.rels,1,h,wi.WB),h="xl/theme/theme1.xml",Ar(f,h,Oue(r.Themes,t)),c.themes.push(h),la(t.wbrels,-1,"theme/theme1.xml",wi.THEME),h="xl/styles."+o,Ar(f,h,G4e(r,h,t)),c.styles.push(h),la(t.wbrels,-1,"styles."+o,wi.STY),r.vbaraw&&a&&(h="xl/vbaProject.bin",Ar(f,h,r.vbaraw),c.vba.push(h),la(t.wbrels,-1,"vbaProject.bin",wi.VBA)),h="xl/metadata."+o,Ar(f,h,J4e(h)),c.metadata.push(h),la(t.wbrels,-1,"metadata."+o,wi.XLMETA),Ar(f,"[Content_Types].xml",Hce(c,t)),Ar(f,"_rels/.rels",uE(t.rels)),Ar(f,"xl/_rels/workbook."+o+".rels",uE(t.wbrels)),delete t.revssf,delete t.ssf,f}function X3e(r,t){fE=1024,r&&!r.SSF&&(r.SSF=jf(zl)),r&&r.SSF&&(NB(),DB(r.SSF),t.revssf=$B(r.SSF),t.revssf[r.SSF[65535]]=0,t.ssf=r.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,i5?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var o="xml",a=Sue.indexOf(t.bookType)>-1,c=zce();KU(t=t||{});var f=EU(),h="",y=0;if(t.cellXfs=[],BO(t.cellXfs,{},{revssf:{General:0}}),r.Props||(r.Props={}),h="docProps/core.xml",Ar(f,h,Xce(r.Props,t)),c.coreprops.push(h),la(t.rels,2,h,wi.CORE_PROPS),h="docProps/app.xml",!(r.Props&&r.Props.SheetNames))if(!r.Workbook||!r.Workbook.Sheets)r.Props.SheetNames=r.SheetNames;else{for(var w=[],C=0;C<r.SheetNames.length;++C)(r.Workbook.Sheets[C]||{}).Hidden!=2&&w.push(r.SheetNames[C]);r.Props.SheetNames=w}r.Props.Worksheets=r.Props.SheetNames.length,Ar(f,h,jce(r.Props)),c.extprops.push(h),la(t.rels,3,h,wi.EXT_PROPS),r.Custprops!==r.Props&&ed(r.Custprops||{}).length>0&&(h="docProps/custom.xml",Ar(f,h,Gce(r.Custprops)),c.custprops.push(h),la(t.rels,4,h,wi.CUST_PROPS));var T=["SheetJ5"];for(t.tcid=0,y=1;y<=r.SheetNames.length;++y){var R={"!id":{}},B=r.Sheets[r.SheetNames[y-1]],V=(B||{})["!type"]||"sheet";if(h="xl/worksheets/sheet"+y+"."+o,Ar(f,h,Bue(y-1,t,r,R)),c.sheets.push(h),la(t.wbrels,-1,"worksheets/sheet"+y+"."+o,wi.WS[0]),B){var q=B["!comments"],U=!1,Y="";if(q&&q.length>0){var ue=!1;q.forEach(function(ke){ke[1].forEach(function(te){te.T==!0&&(ue=!0)})}),ue&&(Y="xl/threadedComments/threadedComment"+y+"."+o,Ar(f,Y,kEe(q,T,t)),c.threadedcomments.push(Y),la(R,-1,"../threadedComments/threadedComment"+y+"."+o,wi.TCMNT)),Y="xl/comments"+y+"."+o,Ar(f,Y,wue(q)),c.comments.push(Y),la(R,-1,"../comments"+y+"."+o,wi.CMNT),U=!0}B["!legacy"]&&U&&Ar(f,"xl/drawings/vmlDrawing"+y+".vml",vue(y,B["!comments"])),delete B["!comments"],delete B["!legacy"]}R["!id"].rId1&&Ar(f,Zce(h),uE(R))}return t.Strings!=null&&t.Strings.length>0&&(h="xl/sharedStrings."+o,Ar(f,h,due(t.Strings,t)),c.strs.push(h),la(t.wbrels,-1,"sharedStrings."+o,wi.SST)),h="xl/workbook."+o,Ar(f,h,Lue(r)),c.workbooks.push(h),la(t.rels,1,h,wi.WB),h="xl/theme/theme1.xml",Ar(f,h,Oue(r.Themes,t)),c.themes.push(h),la(t.wbrels,-1,"theme/theme1.xml",wi.THEME),h="xl/styles."+o,Ar(f,h,pue(r,t)),c.styles.push(h),la(t.wbrels,-1,"styles."+o,wi.STY),r.vbaraw&&a&&(h="xl/vbaProject.bin",Ar(f,h,r.vbaraw),c.vba.push(h),la(t.wbrels,-1,"vbaProject.bin",wi.VBA)),h="xl/metadata."+o,Ar(f,h,xue()),c.metadata.push(h),la(t.wbrels,-1,"metadata."+o,wi.XLMETA),T.length>1&&(h="xl/persons/person.xml",Ar(f,h,CEe(T)),c.people.push(h),la(t.wbrels,-1,"persons/person.xml",wi.PEOPLE)),Ar(f,"[Content_Types].xml",Hce(c,t)),Ar(f,"_rels/.rels",uE(t.rels)),Ar(f,"xl/_rels/workbook."+o+".rels",uE(t.wbrels)),delete t.revssf,delete t.ssf,f}function q3e(r,t){var o="";switch((t||{}).type||"base64"){case"buffer":return[r[0],r[1],r[2],r[3],r[4],r[5],r[6],r[7]];case"base64":o=gb(r.slice(0,12));break;case"binary":o=r;break;case"array":return[r[0],r[1],r[2],r[3],r[4],r[5],r[6],r[7]];default:throw new Error("Unrecognized type "+(t&&t.type||"undefined"))}return[o.charCodeAt(0),o.charCodeAt(1),o.charCodeAt(2),o.charCodeAt(3),o.charCodeAt(4),o.charCodeAt(5),o.charCodeAt(6),o.charCodeAt(7)]}function Xue(r,t){switch(t.type){case"base64":case"binary":break;case"buffer":case"array":t.type="";break;case"file":return XA(t.file,ga.write(r,{type:Di?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");default:throw new Error("Unrecognized type "+t.type)}return ga.write(r,t)}function j3e(r,t){var o=jf(t||{}),a=U3e(r,o);return G3e(a,o)}function G3e(r,t){var o={},a=Di?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(t.compression&&(o.compression="DEFLATE"),t.password)o.type=a;else switch(t.type){case"base64":o.type="base64";break;case"binary":o.type="string";break;case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");case"buffer":case"file":o.type=a;break;default:throw new Error("Unrecognized type "+t.type)}var c=r.FullPaths?ga.write(r,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[o.type]||o.type,compression:!!t.compression}):r.generate(o);if(typeof Deno<"u"&&typeof c=="string"){if(t.type=="binary"||t.type=="base64")return c;c=new Uint8Array(CB(c))}return t.password&&typeof encrypt_agile<"u"?Xue(encrypt_agile(c,t.password),t):t.type==="file"?XA(t.file,c):t.type=="string"?jA(c):c}function Y3e(r,t){var o=t||{},a=h3e(r,o);return Xue(a,o)}function v0(r,t,o){o||(o="");var a=o+r;switch(t.type){case"base64":return ZA(GA(a));case"binary":return GA(a);case"string":return r;case"file":return XA(t.file,a,"utf8");case"buffer":return Di?pb(a,"utf8"):typeof TextEncoder<"u"?new TextEncoder().encode(a):v0(a,{type:"binary"}).split("").map(function(c){return c.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function K3e(r,t){switch(t.type){case"base64":return ZA(r);case"binary":return r;case"string":return r;case"file":return XA(t.file,r,"binary");case"buffer":return Di?pb(r,"binary"):r.split("").map(function(o){return o.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function YB(r,t){switch(t.type){case"string":case"base64":case"binary":for(var o="",a=0;a<r.length;++a)o+=String.fromCharCode(r[a]);return t.type=="base64"?ZA(o):t.type=="string"?jA(o):o;case"file":return XA(t.file,r);case"buffer":return r;default:throw new Error("Unrecognized type "+t.type)}}function que(r,t){ESe(),F4e(r);var o=jf(t||{});if(o.cellStyles&&(o.cellNF=!0,o.sheetStubs=!0),o.type=="array"){o.type="binary";var a=que(r,o);return o.type="array",CB(a)}var c=0;if(o.sheet&&(typeof o.sheet=="number"?c=o.sheet:c=r.SheetNames.indexOf(o.sheet),!r.SheetNames[c]))throw new Error("Sheet not found: "+o.sheet+" : "+typeof o.sheet);switch(o.bookType||"xlsb"){case"xml":case"xlml":return v0(d3e(r,o),o);case"slk":case"sylk":return v0(RCe.from_sheet(r.Sheets[r.SheetNames[c]],o),o);case"htm":case"html":return v0(Que(r.Sheets[r.SheetNames[c]],o),o);case"txt":return K3e(Gue(r.Sheets[r.SheetNames[c]],o),o);case"csv":return v0(eW(r.Sheets[r.SheetNames[c]],o),o,"\uFEFF");case"dif":return v0(BCe.from_sheet(r.Sheets[r.SheetNames[c]],o),o);case"dbf":return YB($Ce.from_sheet(r.Sheets[r.SheetNames[c]],o),o);case"prn":return v0(MCe.from_sheet(r.Sheets[r.SheetNames[c]],o),o);case"rtf":return v0(HCe.from_sheet(r.Sheets[r.SheetNames[c]],o),o);case"eth":return v0(cue.from_sheet(r.Sheets[r.SheetNames[c]],o),o);case"fods":return v0(Wue(r,o),o);case"wk1":return YB(uue.sheet_to_wk1(r.Sheets[r.SheetNames[c]],o),o);case"wk3":return YB(uue.book_to_wk3(r,o),o);case"biff2":o.biff||(o.biff=2);case"biff3":o.biff||(o.biff=3);case"biff4":return o.biff||(o.biff=4),YB(Vue(r,o),o);case"biff5":o.biff||(o.biff=5);case"biff8":case"xla":case"xls":return o.biff||(o.biff=8),Y3e(r,o);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return j3e(r,o);default:throw new Error("Unrecognized bookType |"+o.bookType+"|")}}function J3e(r){if(!r.bookType){var t={xls:"biff8",htm:"html",slk:"sylk",socialcalc:"eth",Sh33tJS:"WTF"},o=r.file.slice(r.file.lastIndexOf(".")).toLowerCase();o.match(/^\.[a-z]+$/)&&(r.bookType=o.slice(1)),r.bookType=t[r.bookType]||r.bookType}}function JU(r,t,o){var a={};return a.type="file",a.file=t,J3e(a),que(r,a)}function eAe(r,t,o,a,c,f,h,y){var w=nd(o),C=y.defval,T=y.raw||!Object.prototype.hasOwnProperty.call(y,"raw"),R=!0,B=c===1?[]:{};if(c!==1)if(Object.defineProperty)try{Object.defineProperty(B,"__rowNum__",{value:o,enumerable:!1})}catch{B.__rowNum__=o}else B.__rowNum__=o;if(!h||r[o])for(var V=t.s.c;V<=t.e.c;++V){var q=h?r[o][V]:r[a[V]+w];if(q===void 0||q.t===void 0){if(C===void 0)continue;f[V]!=null&&(B[f[V]]=C);continue}var U=q.v;switch(q.t){case"z":if(U==null)break;continue;case"e":U=U==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+q.t)}if(f[V]!=null){if(U==null)if(q.t=="e"&&U===null)B[f[V]]=null;else if(C!==void 0)B[f[V]]=C;else if(T&&U===null)B[f[V]]=null;else continue;else B[f[V]]=T&&(q.t!=="n"||q.t==="n"&&y.rawNumbers!==!1)?U:Ob(q,U,y);U!=null&&(R=!1)}}return{row:B,isempty:R}}function KB(r,t){if(r==null||r["!ref"]==null)return[];var o={t:"n",v:0},a=0,c=1,f=[],h=0,y="",w={s:{r:0,c:0},e:{r:0,c:0}},C=t||{},T=C.range!=null?C.range:r["!ref"];switch(C.header===1?a=1:C.header==="A"?a=2:Array.isArray(C.header)?a=3:C.header==null&&(a=0),typeof T){case"string":w=Ya(T);break;case"number":w=Ya(r["!ref"]),w.s.r=T;break;default:w=T}a>0&&(c=0);var R=nd(w.s.r),B=[],V=[],q=0,U=0,Y=Array.isArray(r),ue=w.s.r,ke=0,te={};Y&&!r[ue]&&(r[ue]=[]);var De=C.skipHidden&&r["!cols"]||[],wt=C.skipHidden&&r["!rows"]||[];for(ke=w.s.c;ke<=w.e.c;++ke)if(!(De[ke]||{}).hidden)switch(B[ke]=Ad(ke),o=Y?r[ue][ke]:r[B[ke]+R],a){case 1:f[ke]=ke-w.s.c;break;case 2:f[ke]=B[ke];break;case 3:f[ke]=C.header[ke-w.s.c];break;default:if(o==null&&(o={w:"__EMPTY",t:"s"}),y=h=Ob(o,null,C),U=te[h]||0,!U)te[h]=1;else{do y=h+"_"+U++;while(te[y]);te[h]=U,te[y]=1}f[ke]=y}for(ue=w.s.r+c;ue<=w.e.r;++ue)if(!(wt[ue]||{}).hidden){var nt=eAe(r,w,ue,B,a,f,Y,C);(nt.isempty===!1||(a===1?C.blankrows!==!1:C.blankrows))&&(V[q++]=nt.row)}return V.length=q,V}var jue=/"/g;function tAe(r,t,o,a,c,f,h,y){for(var w=!0,C=[],T="",R=nd(o),B=t.s.c;B<=t.e.c;++B)if(a[B]){var V=y.dense?(r[o]||[])[B]:r[a[B]+R];if(V==null)T="";else if(V.v!=null){w=!1,T=""+(y.rawNumbers&&V.t=="n"?V.v:Ob(V,null,y));for(var q=0,U=0;q!==T.length;++q)if((U=T.charCodeAt(q))===c||U===f||U===34||y.forceQuotes){T='"'+T.replace(jue,'""')+'"';break}T=="ID"&&(T='"ID"')}else V.f!=null&&!V.F?(w=!1,T="="+V.f,T.indexOf(",")>=0&&(T='"'+T.replace(jue,'""')+'"')):T="";C.push(T)}return y.blankrows===!1&&w?null:C.join(h)}function eW(r,t){var o=[],a=t??{};if(r==null||r["!ref"]==null)return"";var c=Ya(r["!ref"]),f=a.FS!==void 0?a.FS:",",h=f.charCodeAt(0),y=a.RS!==void 0?a.RS:`
211
211
  `,w=y.charCodeAt(0),C=new RegExp((f=="|"?"\\|":f)+"+$"),T="",R=[];a.dense=Array.isArray(r);for(var B=a.skipHidden&&r["!cols"]||[],V=a.skipHidden&&r["!rows"]||[],q=c.s.c;q<=c.e.c;++q)(B[q]||{}).hidden||(R[q]=Ad(q));for(var U=0,Y=c.s.r;Y<=c.e.r;++Y)(V[Y]||{}).hidden||(T=tAe(r,c,Y,R,h,w,f,a),T!=null&&(a.strip&&(T=T.replace(C,"")),(T||a.blankrows!==!1)&&o.push((U++?y:"")+T)));return delete a.dense,o.join("")}function Gue(r,t){t||(t={}),t.FS=" ",t.RS=`
212
- `;var o=eW(r,t);return o}function nAe(r){var t="",o,a="";if(r==null||r["!ref"]==null)return[];var c=Ya(r["!ref"]),f="",h=[],y,w=[],C=Array.isArray(r);for(y=c.s.c;y<=c.e.c;++y)h[y]=Ad(y);for(var T=c.s.r;T<=c.e.r;++T)for(f=nd(T),y=c.s.c;y<=c.e.c;++y)if(t=h[y]+f,o=C?(r[T]||[])[y]:r[t],a="",o!==void 0){if(o.F!=null){if(t=o.F,!o.f)continue;a=o.f,t.indexOf(":")==-1&&(t=t+":"+t)}if(o.f!=null)a=o.f;else{if(o.t=="z")continue;if(o.t=="n"&&o.v!=null)a=""+o.v;else if(o.t=="b")a=o.v?"TRUE":"FALSE";else if(o.w!==void 0)a="'"+o.w;else{if(o.v===void 0)continue;o.t=="s"?a="'"+o.v:a=""+o.v}}w[w.length]=t+"="+a}return w}function Yue(r,t,o){var a=o||{},c=+!a.skipHeader,f=r||{},h=0,y=0;if(f&&a.origin!=null)if(typeof a.origin=="number")h=a.origin;else{var w=typeof a.origin=="string"?vu(a.origin):a.origin;h=w.r,y=w.c}var C,T={s:{c:0,r:0},e:{c:y,r:h+t.length-1+c}};if(f["!ref"]){var R=Ya(f["!ref"]);T.e.c=Math.max(T.e.c,R.e.c),T.e.r=Math.max(T.e.r,R.e.r),h==-1&&(h=R.e.r+1,T.e.r=h+t.length-1+c)}else h==-1&&(h=0,T.e.r=t.length-1+c);var B=a.header||[],V=0;t.forEach(function(U,Y){ed(U).forEach(function(ue){(V=B.indexOf(ue))==-1&&(B[V=B.length]=ue);var ke=U[ue],te="z",De="",wt=aa({c:y+V,r:h+Y+c});C=c5(f,wt),ke&&typeof ke=="object"&&!(ke instanceof Date)?f[wt]=ke:(typeof ke=="number"?te="n":typeof ke=="boolean"?te="b":typeof ke=="string"?te="s":ke instanceof Date?(te="d",a.cellDates||(te="n",ke=qf(ke)),De=a.dateNF||zl[14]):ke===null&&a.nullError&&(te="e",ke=0),C?(C.t=te,C.v=ke,delete C.w,delete C.R,De&&(C.z=De)):f[wt]=C={t:te,v:ke},De&&(C.z=De))})}),T.e.c=Math.max(T.e.c,y+B.length-1);var q=nd(h);if(c)for(V=0;V<B.length;++V)f[Ad(V+y)+q]={t:"s",v:B[V]};return f["!ref"]=Sc(T),f}function oAe(r,t){return Yue(null,r,t)}function c5(r,t,o){if(typeof t=="string"){if(Array.isArray(r)){var a=vu(t);return r[a.r]||(r[a.r]=[]),r[a.r][a.c]||(r[a.r][a.c]={t:"z"})}return r[t]||(r[t]={t:"z"})}return typeof t!="number"?c5(r,aa(t)):c5(r,aa({r:t,c:o||0}))}function sAe(r,t){if(typeof t=="number"){if(t>=0&&r.SheetNames.length>t)return t;throw new Error("Cannot find sheet # "+t)}else if(typeof t=="string"){var o=r.SheetNames.indexOf(t);if(o>-1)return o;throw new Error("Cannot find sheet name |"+t+"|")}else throw new Error("Cannot find sheet |"+t+"|")}function rAe(){return{SheetNames:[],Sheets:{}}}function iAe(r,t,o,a){var c=1;if(!o)for(;c<=65535&&r.SheetNames.indexOf(o="Sheet"+c)!=-1;++c,o=void 0);if(!o||r.SheetNames.length>=65535)throw new Error("Too many worksheets");if(a&&r.SheetNames.indexOf(o)>=0){var f=o.match(/(^.*?)(\d+)$/);c=f&&+f[2]||0;var h=f&&f[1]||o;for(++c;c<=65535&&r.SheetNames.indexOf(o=h+c)!=-1;++c);}if(Fue(o),r.SheetNames.indexOf(o)>=0)throw new Error("Worksheet with name |"+o+"| already exists!");return r.SheetNames.push(o),r.Sheets[o]=t,o}function aAe(r,t,o){r.Workbook||(r.Workbook={}),r.Workbook.Sheets||(r.Workbook.Sheets=[]);var a=sAe(r,t);switch(r.Workbook.Sheets[a]||(r.Workbook.Sheets[a]={}),o){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+o)}r.Workbook.Sheets[a].Hidden=o}function lAe(r,t){return r.z=t,r}function Kue(r,t,o){return t?(r.l={Target:t},o&&(r.l.Tooltip=o)):delete r.l,r}function cAe(r,t,o){return Kue(r,"#"+t,o)}function uAe(r,t,o){r.c||(r.c=[]),r.c.push({t,a:o||"SheetJS"})}function dAe(r,t,o,a){for(var c=typeof t!="string"?t:Ya(t),f=typeof t=="string"?t:Sc(t),h=c.s.r;h<=c.e.r;++h)for(var y=c.s.c;y<=c.e.c;++y){var w=c5(r,h,y);w.t="n",w.F=f,delete w.v,h==c.s.r&&y==c.s.c&&(w.f=o,a&&(w.D=!0))}return r}var vb={encode_col:Ad,encode_row:nd,encode_cell:aa,encode_range:Sc,decode_col:BU,decode_row:RU,split_cell:Eke,decode_cell:vu,decode_range:Yh,format_cell:Ob,sheet_add_aoa:Rce,sheet_add_json:Yue,sheet_add_dom:zue,aoa_to_sheet:aE,json_to_sheet:oAe,table_to_sheet:Hue,table_to_book:B3e,sheet_to_csv:eW,sheet_to_txt:Gue,sheet_to_json:KB,sheet_to_html:Que,sheet_to_formulae:nAe,sheet_to_row_object_array:KB,sheet_get_cell:c5,book_new:rAe,book_append_sheet:iAe,book_set_sheet_visibility:aAe,cell_set_number_format:lAe,cell_set_hyperlink:Kue,cell_set_internal_link:cAe,cell_add_comment:uAe,sheet_set_array_formula:dAe,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};class fAe{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){o.settings.asyncUrl(function(c){let f=o.getPrintWindow(c);o.settings.preview?o.previewIfrmaeLoad():o.print(f)},o.settings.vue);return}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,a=document.getElementById(this.settings.id)||t.f,c=!1,f=function(){if(c)return;c=!0,o.settings.openCallback();var h=a.contentWindow,y=!1;function w(){if(!y){y=!0,clearTimeout(T),h.removeEventListener("afterprint",w),window.removeEventListener("focus",C),o.settings.closeCallback();try{a.remove()}catch{}o.removeCanvasImg()}}h.addEventListener("afterprint",w);function C(){setTimeout(w,300)}window.addEventListener("focus",C);var T=setTimeout(w,6e4);try{a.focus(),setTimeout(function(){h.print()},1e3)}catch(R){console.error("Print error:",R),w()}};o.settings.beforeOpenCallback(),o.addEvent(a,"load",function(){f()})}print1(t){var o=this;let a=document.getElementById(this.settings.id)||t.f,c=document.getElementById(this.settings.id).contentWindow||t.f.contentWindow;var f=function(){c.focus(),o.settings.openCallback(),c.print(),a.remove(),o.settings.closeCallback(),o.removeCanvasImg()};o.settings.beforeOpenCallback(),o.addEvent(a,"load",function(){f()})}write(t){t.open(),t.write(`${this.docType()}<html>${this.getHead()}${this.getBody()}</html>`),t.close()}docType(){if(this.settings.standard===this.standards.html5)return"<!DOCTYPE html>";var t=this.settings.standard===this.standards.loose?" Transitional":"",o=this.settings.standard===this.standards.loose?"loose":"strict";return`<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01${t}//EN" "http://www.w3.org/TR/html4/${o}.dtd">`}getHead(){let t="",o="",a="";return this.settings.extraHead&&this.settings.extraHead.replace(/([^,]+)/g,c=>{t+=c}),document.querySelectorAll('link[rel="stylesheet"]').forEach(function(c){c.href&&(o+=`<link type="text/css" rel="stylesheet" href="${c.href}">`)}),document.querySelectorAll("style").forEach(function(c){a+=c.textContent||""}),this.settings.extraCss&&this.settings.extraCss.replace(/([^,\s]+)/g,c=>{o+=`<link type="text/css" rel="stylesheet" href="${c}">`}),`<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(`.${o}`)};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),o?a.setAttribute("src",o):a.setAttribute("srcdoc","<!DOCTYPE html><html><head></head><body></body></html>"),a}Iframe(t){let o=this.settings.id,a=this,c=this.iframeBox(o,t);try{if(!this.settings.preview)document.body.appendChild(c);else{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()})}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}}const hAe=(r,t,o)=>{r.addEventListener?r.addEventListener(t,o,!1):r.attachEvent?r.attachEvent("on"+t,o):r["on"+t]=o},mAe={components:{TailwindPagination:xU,GlTextInput:Xne,GlDropdown:jne,GlDateRangePicker:qne,GlButton:s6,DynamicConfirmation:Nle},props:{columns:{type:Array,required:!1,default:()=>[]},language:{type:Object,required:!1,default:()=>{}},enable_select_deselect_delete:{type:Boolean,required:!1,default:!0},enable_delete:{type:Boolean,required:!1,default:!0},data:Array,get_item_url:String,xprops:Object,refreshData:Boolean},data(){const r=this.generateRandomString(6);return{Random_string:r,printObj:{id:"print_"+r,popTitle:"",extraHead:'<meta charset="UTF-8">,<meta name="viewport"content="width=device-width">,<meta http-equiv="X-UA-Compatible" content="ie=edge">',beforeOpenCallback(t){},openCallback(t){t.isLoadinPrint=!1},closeCallback(t){t.columnVisibility.action=!0,t.isLoadinPrint=!1}},checkedIds:[],dynamicFilters:{},dynamicQueryString:{},isLoading:!1,isLoadinPrint:!1,isOpenColumnVisibility:!1,isMounted:!1,limit:5,showDisabled:!1,size:"default",align:"left",search:"",isDropdownOpen:!1,itemLists:[],columnVisibility:[],tableData:[],sortField:this.xprops.defaultSortField?this.xprops.defaultSortField:this.columns&&this.columns.length>0?this.columns[0].field_name:"",sortOrder:"desc",pageOptions:[5,10,20,50,100,200,300,400,500,600,700,800,900,1e3],perPage:5,page:1}},emits:["editAction","generalAction","generalAction1","generalAction2","checkedIdsAction"],computed:{columns1(){return this.columns},filteredData(){const r=this.search.toLowerCase();return this.sortData(this.data).filter(o=>Object.values(o).some(a=>a.toString().toLowerCase().includes(r)))},customFilters(){return this.xprops.customFilters},visibleColumns(){return this.columns.filter(r=>this.columnVisibility[r.field_name])}},methods:{closeColumnVisibilityDropdown(){this.isOpenColumnVisibility=!1},toggleColumnVisibilityDropdown(){this.isOpenColumnVisibility=!this.isOpenColumnVisibility},delayedPrint(){this.columnVisibility.action=!1,this.isLoadinPrint=!0,this.$nextTick(()=>{this.$refs.hiddenPrintBtn?.click(),this.isLoadinPrint=!1})},setDynamicQueryString(r){this.dynamicQueryString=r},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},async deleteSelected(){if(this.checkedIds.length<=0){rb.methods.add({message:this.language?.please_select_at_least_one_item_to_delete??"Please select at least one item to delete",type:"error",duration:5e3});return}if(await this.$refs.ConfirmationDelete.show({title:this.language?.title_delete_confirmation??"Delete Confirmation",message:this.language?.message_delete_confirmation??"Are you sure you want to delete the selected items?",okButton:this.language?.okbutton_delete_confirmation??"Yes, delete it",cancelButton:this.language?.cancelbutton_delete_confirmation??"Cancel",hasLoading:!0}))this.$refs.ConfirmationDelete.showLoading(),this.isLoading=!0,(await Promise.allSettled(this.checkedIds.map(o=>axios.delete(`${this.xprops.route}/${o}`)))).forEach((o,a)=>{o.status==="rejected"&&console.log(`Error deleting ID ${this.checkedIds[a]}:`,o.reason)}),this.checkedIds=[],this.$refs.ConfirmationDelete.hideLoading(),rb.methods.add({message:this.language?.selected_items_deleted_successfully??"Selected items deleted successfully.",type:"success",duration:5e3}),this.GetItemLists();else return},toggleSelectAll(){this.checkedIds=this.itemLists.data.map(r=>r.id),this.$emit("checkedIdsAction",this.checkedIds)},toggleDeselectAll(){this.checkedIds=[],this.$emit("checkedIdsAction",this.checkedIds)},toggleCheck(r){this.checkedIds.includes(r)?this.checkedIds=this.checkedIds.filter(t=>t!==r):this.checkedIds.push(r),this.$emit("checkedIdsAction",this.checkedIds)},editAction(r){this.$emit("editAction",r)},generalAction(r){this.$emit("generalAction",r)},generalAction1(r){this.$emit("generalAction1",r)},generalAction2(r){this.$emit("generalAction2",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,...this.dynamicFilters,...this.dynamicQueryString};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&&this.columns.length>0?this.columns[0].field_name:"",this.sortOrder="asc",this.page=1,this.GetItemLists(this.page)},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")}},mounted(){this.columns.forEach(r=>{this.columnVisibility[r.field_name]=!0}),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()},dynamicFilters:{handler(r){this.GetItemLists()},deep:!0}},directives:{print:{directiveName:"print",mounted(r,t,o){let a=t.instance,c="";hAe(r,"click",()=>{if(typeof t.value=="string")c=t.value;else if(typeof t.value=="object"&&t.value.id){c=t.value.id;let h=c.replace(new RegExp("#","g"),"");document.getElementById(h)||(console.log("id in Error"),c="")}else{window.print();return}f()});const f=()=>{new fAe({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)}})}}}}},gAe={ref:"hiddenPrintBtn",style:{display:"none"}},pAe={class:"p-0"},bAe={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"},OAe={class:"font-medium"},xAe={class:"mt-[3px]"},vAe={class:"font-medium"},wAe={class:"relative"},SAe=["placeholder"],kAe={class:"flex flex-wrap mb-3 gap-1 lg:gap-0!"},CAe=["id"],EAe=["aria-labelledby"],_Ae={class:"flex items-center p-2 rounded-sm hover:bg-gray-100 dark:hover:bg-gray-600"},TAe=["id","onUpdate:modelValue"],AAe=["for"],PAe=["id"],DAe=["id"],NAe={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]!"},$Ae={key:0,class:"w-full px-4 py-2 lg:w-[3%]! print:hidden!"},RAe=["onClick"],BAe={class:"inline-flex items-center justify-center gap-1"},MAe={key:0,class:"print:hidden!"},FAe={class:"bg-white dark:bg-gray-900"},LAe={key:0},IAe=["colspan"],VAe={key:0,class:"print:hidden! text-center rounded-t-lg lg:rounded-t-none! print:rounded-t-none! 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 py-4 px-5 lg:py-3 lg:px-4 print:py-3! print:px-4! border! dark:border-gray-700","data-label":""},QAe=["checked","onChange"],zAe=["data-label"],HAe={class:"flex items-center justify-between bg-white border-gray-200 dark:text-gray-400 dark:bg-gray-800"};function ZAe(r,t,o,a,c,f){const h=b.resolveComponent("DynamicConfirmation"),y=b.resolveComponent("dropdown"),w=b.resolveComponent("GlDropdown"),C=b.resolveComponent("GlTextInput"),T=b.resolveComponent("GlDateRangePicker"),R=b.resolveComponent("gl-button"),B=b.resolveComponent("TailwindPagination"),V=b.resolveDirective("print"),q=b.resolveDirective("click-outside");return b.openBlock(),b.createElementBlock(b.Fragment,null,[b.createVNode(h,{ref:"ConfirmationDelete"},null,512),b.withDirectives(b.createElementVNode("button",gAe,null,512),[[V,c.printObj]]),b.createElementVNode("div",pAe,[b.createElementVNode("div",bAe,[b.createElementVNode("div",yAe,[b.createElementVNode("span",OAe,b.toDisplayString(o.language?.show??"Show"),1),b.createElementVNode("div",xAe,[b.createVNode(y,{options_top_size:0,has_cancel:!1,options:c.pageOptions,modelValue:c.perPage,"onUpdate:modelValue":t[0]||(t[0]=U=>c.perPage=U),is_required:!1,field_name:"perPage",label_name:"",default_value:5,show:!1,placeholder:"Please select an option"},null,8,["options","modelValue"])]),b.createElementVNode("span",vAe,b.toDisplayString(o.language?.entries??"Entries"),1)]),t[6]||(t[6]=b.createElementVNode("label",{for:"table-search",class:"sr-only"},"Search",-1)),b.createElementVNode("div",wAe,[t[5]||(t[5]=b.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)),b.withDirectives(b.createElementVNode("input",{type:"text","onUpdate:modelValue":t[1]||(t[1]=U=>c.search=U),onInput:t[2]||(t[2]=U=>f.handleSearch()),class:"gl-input-form",placeholder:o.language?.search?o.language?.search+" ...":"Search ..."},null,40,SAe),[[b.vModelText,c.search]])])]),b.createElementVNode("div",{class:b.normalizeClass(["grid gap-4 mb-3 xs:grid-cols-1 xl:grid-cols-2",o.xprops?.customFiltersMainClass])},[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(f.customFilters,(U,Y)=>(b.openBlock(),b.createElementBlock(b.Fragment,{key:Y},[U.type=="dropdown"?(b.openBlock(),b.createBlock(w,{key:0,has_cancel:!0,options:U.options,modelValue:c.dynamicFilters[U.field_name],"onUpdate:modelValue":ue=>c.dynamicFilters[U.field_name]=ue,is_required:!1,field_name:U.field_name,label_name:U.field_label,show:!1,placeholder:o.language?.please_select_an_option??"Please select an option"},null,8,["options","modelValue","onUpdate:modelValue","field_name","label_name","placeholder"])):b.createCommentVNode("",!0),U.type=="text"?(b.openBlock(),b.createBlock(C,{key:1,type:"text",is_required:!1,show:!1,modelValue:c.dynamicFilters[U.field_name],"onUpdate:modelValue":ue=>c.dynamicFilters[U.field_name]=ue,field_name:U.field_name,label_name:U.field_label},null,8,["modelValue","onUpdate:modelValue","field_name","label_name"])):b.createCommentVNode("",!0),U.type=="date"?(b.openBlock(),b.createBlock(C,{key:2,type:"date",is_required:!1,show:!1,modelValue:c.dynamicFilters[U.field_name],"onUpdate:modelValue":ue=>c.dynamicFilters[U.field_name]=ue,field_name:U.field_name,label_name:U.field_label},null,8,["modelValue","onUpdate:modelValue","field_name","label_name"])):b.createCommentVNode("",!0),U.type=="date_range"?(b.openBlock(),b.createBlock(T,{key:3,is_required:!1,show:!1,modelValue:c.dynamicFilters[U.field_name],"onUpdate:modelValue":ue=>c.dynamicFilters[U.field_name]=ue,field_name:U.field_name,label_name:U.field_label},null,8,["modelValue","onUpdate:modelValue","field_name","label_name"])):b.createCommentVNode("",!0)],64))),128)),(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(o.columns,(U,Y)=>(b.openBlock(),b.createElementBlock(b.Fragment,{key:Y},[U.hasOwnFilter&&Object.keys(U.hasOwnFilter).length>0?(b.openBlock(),b.createElementBlock(b.Fragment,{key:0},[U.hasOwnFilter.type=="dropdown"?(b.openBlock(),b.createBlock(w,{key:0,has_cancel:!0,options:U.hasOwnFilter.options,modelValue:c.dynamicFilters[U.field_name],"onUpdate:modelValue":ue=>c.dynamicFilters[U.field_name]=ue,is_required:!1,field_name:U.field_name,label_name:U.field_label,show:!1,placeholder:o.language?.please_select_an_option??"Please select an option"},null,8,["options","modelValue","onUpdate:modelValue","field_name","label_name","placeholder"])):b.createCommentVNode("",!0),U.hasOwnFilter.type=="text"?(b.openBlock(),b.createBlock(C,{key:1,type:"text",is_required:!1,show:!1,modelValue:c.dynamicFilters[U.field_name],"onUpdate:modelValue":ue=>c.dynamicFilters[U.field_name]=ue,field_name:U.field_name,label_name:U.field_label},null,8,["modelValue","onUpdate:modelValue","field_name","label_name"])):b.createCommentVNode("",!0),U.hasOwnFilter.type=="date"?(b.openBlock(),b.createBlock(C,{key:2,type:"date",is_required:!1,show:!1,modelValue:c.dynamicFilters[U.field_name],"onUpdate:modelValue":ue=>c.dynamicFilters[U.field_name]=ue,field_name:U.field_name,label_name:U.field_label},null,8,["modelValue","onUpdate:modelValue","field_name","label_name"])):b.createCommentVNode("",!0)],64)):b.createCommentVNode("",!0)],64))),128))],2),b.createElementVNode("div",kAe,[b.createVNode(R,{onClick:f.delayedPrint,tag:"button",is_loading:c.isLoadinPrint,button_type:"light",has_border_reduced:!1,classes:"rounded-lg lg:rounded-none lg:rounded-s-lg!",svg_icon:`<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">\r
212
+ `;var o=eW(r,t);return o}function nAe(r){var t="",o,a="";if(r==null||r["!ref"]==null)return[];var c=Ya(r["!ref"]),f="",h=[],y,w=[],C=Array.isArray(r);for(y=c.s.c;y<=c.e.c;++y)h[y]=Ad(y);for(var T=c.s.r;T<=c.e.r;++T)for(f=nd(T),y=c.s.c;y<=c.e.c;++y)if(t=h[y]+f,o=C?(r[T]||[])[y]:r[t],a="",o!==void 0){if(o.F!=null){if(t=o.F,!o.f)continue;a=o.f,t.indexOf(":")==-1&&(t=t+":"+t)}if(o.f!=null)a=o.f;else{if(o.t=="z")continue;if(o.t=="n"&&o.v!=null)a=""+o.v;else if(o.t=="b")a=o.v?"TRUE":"FALSE";else if(o.w!==void 0)a="'"+o.w;else{if(o.v===void 0)continue;o.t=="s"?a="'"+o.v:a=""+o.v}}w[w.length]=t+"="+a}return w}function Yue(r,t,o){var a=o||{},c=+!a.skipHeader,f=r||{},h=0,y=0;if(f&&a.origin!=null)if(typeof a.origin=="number")h=a.origin;else{var w=typeof a.origin=="string"?vu(a.origin):a.origin;h=w.r,y=w.c}var C,T={s:{c:0,r:0},e:{c:y,r:h+t.length-1+c}};if(f["!ref"]){var R=Ya(f["!ref"]);T.e.c=Math.max(T.e.c,R.e.c),T.e.r=Math.max(T.e.r,R.e.r),h==-1&&(h=R.e.r+1,T.e.r=h+t.length-1+c)}else h==-1&&(h=0,T.e.r=t.length-1+c);var B=a.header||[],V=0;t.forEach(function(U,Y){ed(U).forEach(function(ue){(V=B.indexOf(ue))==-1&&(B[V=B.length]=ue);var ke=U[ue],te="z",De="",wt=aa({c:y+V,r:h+Y+c});C=c5(f,wt),ke&&typeof ke=="object"&&!(ke instanceof Date)?f[wt]=ke:(typeof ke=="number"?te="n":typeof ke=="boolean"?te="b":typeof ke=="string"?te="s":ke instanceof Date?(te="d",a.cellDates||(te="n",ke=qf(ke)),De=a.dateNF||zl[14]):ke===null&&a.nullError&&(te="e",ke=0),C?(C.t=te,C.v=ke,delete C.w,delete C.R,De&&(C.z=De)):f[wt]=C={t:te,v:ke},De&&(C.z=De))})}),T.e.c=Math.max(T.e.c,y+B.length-1);var q=nd(h);if(c)for(V=0;V<B.length;++V)f[Ad(V+y)+q]={t:"s",v:B[V]};return f["!ref"]=Sc(T),f}function oAe(r,t){return Yue(null,r,t)}function c5(r,t,o){if(typeof t=="string"){if(Array.isArray(r)){var a=vu(t);return r[a.r]||(r[a.r]=[]),r[a.r][a.c]||(r[a.r][a.c]={t:"z"})}return r[t]||(r[t]={t:"z"})}return typeof t!="number"?c5(r,aa(t)):c5(r,aa({r:t,c:o||0}))}function sAe(r,t){if(typeof t=="number"){if(t>=0&&r.SheetNames.length>t)return t;throw new Error("Cannot find sheet # "+t)}else if(typeof t=="string"){var o=r.SheetNames.indexOf(t);if(o>-1)return o;throw new Error("Cannot find sheet name |"+t+"|")}else throw new Error("Cannot find sheet |"+t+"|")}function rAe(){return{SheetNames:[],Sheets:{}}}function iAe(r,t,o,a){var c=1;if(!o)for(;c<=65535&&r.SheetNames.indexOf(o="Sheet"+c)!=-1;++c,o=void 0);if(!o||r.SheetNames.length>=65535)throw new Error("Too many worksheets");if(a&&r.SheetNames.indexOf(o)>=0){var f=o.match(/(^.*?)(\d+)$/);c=f&&+f[2]||0;var h=f&&f[1]||o;for(++c;c<=65535&&r.SheetNames.indexOf(o=h+c)!=-1;++c);}if(Fue(o),r.SheetNames.indexOf(o)>=0)throw new Error("Worksheet with name |"+o+"| already exists!");return r.SheetNames.push(o),r.Sheets[o]=t,o}function aAe(r,t,o){r.Workbook||(r.Workbook={}),r.Workbook.Sheets||(r.Workbook.Sheets=[]);var a=sAe(r,t);switch(r.Workbook.Sheets[a]||(r.Workbook.Sheets[a]={}),o){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+o)}r.Workbook.Sheets[a].Hidden=o}function lAe(r,t){return r.z=t,r}function Kue(r,t,o){return t?(r.l={Target:t},o&&(r.l.Tooltip=o)):delete r.l,r}function cAe(r,t,o){return Kue(r,"#"+t,o)}function uAe(r,t,o){r.c||(r.c=[]),r.c.push({t,a:o||"SheetJS"})}function dAe(r,t,o,a){for(var c=typeof t!="string"?t:Ya(t),f=typeof t=="string"?t:Sc(t),h=c.s.r;h<=c.e.r;++h)for(var y=c.s.c;y<=c.e.c;++y){var w=c5(r,h,y);w.t="n",w.F=f,delete w.v,h==c.s.r&&y==c.s.c&&(w.f=o,a&&(w.D=!0))}return r}var vb={encode_col:Ad,encode_row:nd,encode_cell:aa,encode_range:Sc,decode_col:BU,decode_row:RU,split_cell:Eke,decode_cell:vu,decode_range:Yh,format_cell:Ob,sheet_add_aoa:Rce,sheet_add_json:Yue,sheet_add_dom:zue,aoa_to_sheet:aE,json_to_sheet:oAe,table_to_sheet:Hue,table_to_book:B3e,sheet_to_csv:eW,sheet_to_txt:Gue,sheet_to_json:KB,sheet_to_html:Que,sheet_to_formulae:nAe,sheet_to_row_object_array:KB,sheet_get_cell:c5,book_new:rAe,book_append_sheet:iAe,book_set_sheet_visibility:aAe,cell_set_number_format:lAe,cell_set_hyperlink:Kue,cell_set_internal_link:cAe,cell_add_comment:uAe,sheet_set_array_formula:dAe,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};class fAe{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){o.settings.asyncUrl(function(c){let f=o.getPrintWindow(c);o.settings.preview?o.previewIfrmaeLoad():o.print(f)},o.settings.vue);return}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,a=document.getElementById(this.settings.id)||t.f,c=!1,f=function(){if(c)return;c=!0,o.settings.openCallback();var h=a.contentWindow,y=!1;function w(){if(!y){y=!0,clearTimeout(T),h.removeEventListener("afterprint",w),window.removeEventListener("focus",C),o.settings.closeCallback();try{a.remove()}catch{}o.removeCanvasImg()}}h.addEventListener("afterprint",w);function C(){setTimeout(w,300)}window.addEventListener("focus",C);var T=setTimeout(w,6e4);try{a.focus(),setTimeout(function(){h.print()},1e3)}catch(R){console.error("Print error:",R),w()}};o.settings.beforeOpenCallback(),o.addEvent(a,"load",function(){f()})}print1(t){var o=this;let a=document.getElementById(this.settings.id)||t.f,c=document.getElementById(this.settings.id).contentWindow||t.f.contentWindow;var f=function(){c.focus(),o.settings.openCallback(),c.print(),a.remove(),o.settings.closeCallback(),o.removeCanvasImg()};o.settings.beforeOpenCallback(),o.addEvent(a,"load",function(){f()})}write(t){t.open(),t.write(`${this.docType()}<html>${this.getHead()}${this.getBody()}</html>`),t.close()}docType(){if(this.settings.standard===this.standards.html5)return"<!DOCTYPE html>";var t=this.settings.standard===this.standards.loose?" Transitional":"",o=this.settings.standard===this.standards.loose?"loose":"strict";return`<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01${t}//EN" "http://www.w3.org/TR/html4/${o}.dtd">`}getHead(){let t="",o="",a="";return this.settings.extraHead&&this.settings.extraHead.replace(/([^,]+)/g,c=>{t+=c}),document.querySelectorAll('link[rel="stylesheet"]').forEach(function(c){c.href&&(o+=`<link type="text/css" rel="stylesheet" href="${c.href}">`)}),document.querySelectorAll("style").forEach(function(c){a+=c.textContent||""}),this.settings.extraCss&&this.settings.extraCss.replace(/([^,\s]+)/g,c=>{o+=`<link type="text/css" rel="stylesheet" href="${c}">`}),`<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(`.${o}`)};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"),c=navigator.userAgent;return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(c)||/Android/i.test(c)&&!/Mobile/i.test(c)?a.setAttribute("style","width:1px;height:100px;position:fixed;left:0;top:0;opacity:0;border:0;margin:0;padding:0;"):(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),o?a.setAttribute("src",o):a.setAttribute("srcdoc","<!DOCTYPE html><html><head></head><body></body></html>"),a}Iframe(t){let o=this.settings.id,a=this,c=this.iframeBox(o,t);try{if(!this.settings.preview)document.body.appendChild(c);else{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()})}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}}const hAe=(r,t,o)=>{r.addEventListener?r.addEventListener(t,o,!1):r.attachEvent?r.attachEvent("on"+t,o):r["on"+t]=o},mAe={components:{TailwindPagination:xU,GlTextInput:Xne,GlDropdown:jne,GlDateRangePicker:qne,GlButton:s6,DynamicConfirmation:Nle},props:{columns:{type:Array,required:!1,default:()=>[]},language:{type:Object,required:!1,default:()=>{}},enable_select_deselect_delete:{type:Boolean,required:!1,default:!0},enable_delete:{type:Boolean,required:!1,default:!0},data:Array,get_item_url:String,xprops:Object,refreshData:Boolean},data(){const r=this.generateRandomString(6);return{Random_string:r,printObj:{id:"print_"+r,popTitle:"",extraHead:'<meta charset="UTF-8">,<meta name="viewport"content="width=device-width">,<meta http-equiv="X-UA-Compatible" content="ie=edge">',beforeOpenCallback(t){},openCallback(t){t.isLoadinPrint=!1},closeCallback(t){t.columnVisibility.action=!0,t.isLoadinPrint=!1}},checkedIds:[],dynamicFilters:{},dynamicQueryString:{},isLoading:!1,isLoadinPrint:!1,isOpenColumnVisibility:!1,isMounted:!1,limit:5,showDisabled:!1,size:"default",align:"left",search:"",isDropdownOpen:!1,itemLists:[],columnVisibility:[],tableData:[],sortField:this.xprops.defaultSortField?this.xprops.defaultSortField:this.columns&&this.columns.length>0?this.columns[0].field_name:"",sortOrder:"desc",pageOptions:[5,10,20,50,100,200,300,400,500,600,700,800,900,1e3],perPage:5,page:1}},emits:["editAction","generalAction","generalAction1","generalAction2","checkedIdsAction"],computed:{columns1(){return this.columns},filteredData(){const r=this.search.toLowerCase();return this.sortData(this.data).filter(o=>Object.values(o).some(a=>a.toString().toLowerCase().includes(r)))},customFilters(){return this.xprops.customFilters},visibleColumns(){return this.columns.filter(r=>this.columnVisibility[r.field_name])}},methods:{closeColumnVisibilityDropdown(){this.isOpenColumnVisibility=!1},toggleColumnVisibilityDropdown(){this.isOpenColumnVisibility=!this.isOpenColumnVisibility},delayedPrint(){this.columnVisibility.action=!1,this.isLoadinPrint=!0,this.$nextTick(()=>{this.$refs.hiddenPrintBtn?.click(),this.isLoadinPrint=!1})},setDynamicQueryString(r){this.dynamicQueryString=r},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},async deleteSelected(){if(this.checkedIds.length<=0){rb.methods.add({message:this.language?.please_select_at_least_one_item_to_delete??"Please select at least one item to delete",type:"error",duration:5e3});return}if(await this.$refs.ConfirmationDelete.show({title:this.language?.title_delete_confirmation??"Delete Confirmation",message:this.language?.message_delete_confirmation??"Are you sure you want to delete the selected items?",okButton:this.language?.okbutton_delete_confirmation??"Yes, delete it",cancelButton:this.language?.cancelbutton_delete_confirmation??"Cancel",hasLoading:!0}))this.$refs.ConfirmationDelete.showLoading(),this.isLoading=!0,(await Promise.allSettled(this.checkedIds.map(o=>axios.delete(`${this.xprops.route}/${o}`)))).forEach((o,a)=>{o.status==="rejected"&&console.log(`Error deleting ID ${this.checkedIds[a]}:`,o.reason)}),this.checkedIds=[],this.$refs.ConfirmationDelete.hideLoading(),rb.methods.add({message:this.language?.selected_items_deleted_successfully??"Selected items deleted successfully.",type:"success",duration:5e3}),this.GetItemLists();else return},toggleSelectAll(){this.checkedIds=this.itemLists.data.map(r=>r.id),this.$emit("checkedIdsAction",this.checkedIds)},toggleDeselectAll(){this.checkedIds=[],this.$emit("checkedIdsAction",this.checkedIds)},toggleCheck(r){this.checkedIds.includes(r)?this.checkedIds=this.checkedIds.filter(t=>t!==r):this.checkedIds.push(r),this.$emit("checkedIdsAction",this.checkedIds)},editAction(r){this.$emit("editAction",r)},generalAction(r){this.$emit("generalAction",r)},generalAction1(r){this.$emit("generalAction1",r)},generalAction2(r){this.$emit("generalAction2",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,...this.dynamicFilters,...this.dynamicQueryString};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&&this.columns.length>0?this.columns[0].field_name:"",this.sortOrder="asc",this.page=1,this.GetItemLists(this.page)},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")}},mounted(){this.columns.forEach(r=>{this.columnVisibility[r.field_name]=!0}),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()},dynamicFilters:{handler(r){this.GetItemLists()},deep:!0}},directives:{print:{directiveName:"print",mounted(r,t,o){let a=t.instance,c="";hAe(r,"click",()=>{if(typeof t.value=="string")c=t.value;else if(typeof t.value=="object"&&t.value.id){c=t.value.id;let h=c.replace(new RegExp("#","g"),"");document.getElementById(h)||(console.log("id in Error"),c="")}else{window.print();return}f()});const f=()=>{new fAe({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)}})}}}}},gAe={ref:"hiddenPrintBtn",style:{display:"none"}},pAe={class:"p-0"},bAe={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"},OAe={class:"font-medium"},xAe={class:"mt-[3px]"},vAe={class:"font-medium"},wAe={class:"relative"},SAe=["placeholder"],kAe={class:"flex flex-wrap mb-3 gap-1 lg:gap-0!"},CAe=["id"],EAe=["aria-labelledby"],_Ae={class:"flex items-center p-2 rounded-sm hover:bg-gray-100 dark:hover:bg-gray-600"},TAe=["id","onUpdate:modelValue"],AAe=["for"],PAe=["id"],DAe=["id"],NAe={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]!"},$Ae={key:0,class:"w-full px-4 py-2 lg:w-[3%]! print:hidden!"},RAe=["onClick"],BAe={class:"inline-flex items-center justify-center gap-1"},MAe={key:0,class:"print:hidden!"},FAe={class:"bg-white dark:bg-gray-900"},LAe={key:0},IAe=["colspan"],VAe={key:0,class:"print:hidden! text-center rounded-t-lg lg:rounded-t-none! print:rounded-t-none! 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 py-4 px-5 lg:py-3 lg:px-4 print:py-3! print:px-4! border! dark:border-gray-700","data-label":""},QAe=["checked","onChange"],zAe=["data-label"],HAe={class:"flex items-center justify-between bg-white border-gray-200 dark:text-gray-400 dark:bg-gray-800"};function ZAe(r,t,o,a,c,f){const h=b.resolveComponent("DynamicConfirmation"),y=b.resolveComponent("dropdown"),w=b.resolveComponent("GlDropdown"),C=b.resolveComponent("GlTextInput"),T=b.resolveComponent("GlDateRangePicker"),R=b.resolveComponent("gl-button"),B=b.resolveComponent("TailwindPagination"),V=b.resolveDirective("print"),q=b.resolveDirective("click-outside");return b.openBlock(),b.createElementBlock(b.Fragment,null,[b.createVNode(h,{ref:"ConfirmationDelete"},null,512),b.withDirectives(b.createElementVNode("button",gAe,null,512),[[V,c.printObj]]),b.createElementVNode("div",pAe,[b.createElementVNode("div",bAe,[b.createElementVNode("div",yAe,[b.createElementVNode("span",OAe,b.toDisplayString(o.language?.show??"Show"),1),b.createElementVNode("div",xAe,[b.createVNode(y,{options_top_size:0,has_cancel:!1,options:c.pageOptions,modelValue:c.perPage,"onUpdate:modelValue":t[0]||(t[0]=U=>c.perPage=U),is_required:!1,field_name:"perPage",label_name:"",default_value:5,show:!1,placeholder:"Please select an option"},null,8,["options","modelValue"])]),b.createElementVNode("span",vAe,b.toDisplayString(o.language?.entries??"Entries"),1)]),t[6]||(t[6]=b.createElementVNode("label",{for:"table-search",class:"sr-only"},"Search",-1)),b.createElementVNode("div",wAe,[t[5]||(t[5]=b.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)),b.withDirectives(b.createElementVNode("input",{type:"text","onUpdate:modelValue":t[1]||(t[1]=U=>c.search=U),onInput:t[2]||(t[2]=U=>f.handleSearch()),class:"gl-input-form",placeholder:o.language?.search?o.language?.search+" ...":"Search ..."},null,40,SAe),[[b.vModelText,c.search]])])]),b.createElementVNode("div",{class:b.normalizeClass(["grid gap-4 mb-3 xs:grid-cols-1 xl:grid-cols-2",o.xprops?.customFiltersMainClass])},[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(f.customFilters,(U,Y)=>(b.openBlock(),b.createElementBlock(b.Fragment,{key:Y},[U.type=="dropdown"?(b.openBlock(),b.createBlock(w,{key:0,has_cancel:!0,options:U.options,modelValue:c.dynamicFilters[U.field_name],"onUpdate:modelValue":ue=>c.dynamicFilters[U.field_name]=ue,is_required:!1,field_name:U.field_name,label_name:U.field_label,show:!1,placeholder:o.language?.please_select_an_option??"Please select an option"},null,8,["options","modelValue","onUpdate:modelValue","field_name","label_name","placeholder"])):b.createCommentVNode("",!0),U.type=="text"?(b.openBlock(),b.createBlock(C,{key:1,type:"text",is_required:!1,show:!1,modelValue:c.dynamicFilters[U.field_name],"onUpdate:modelValue":ue=>c.dynamicFilters[U.field_name]=ue,field_name:U.field_name,label_name:U.field_label},null,8,["modelValue","onUpdate:modelValue","field_name","label_name"])):b.createCommentVNode("",!0),U.type=="date"?(b.openBlock(),b.createBlock(C,{key:2,type:"date",is_required:!1,show:!1,modelValue:c.dynamicFilters[U.field_name],"onUpdate:modelValue":ue=>c.dynamicFilters[U.field_name]=ue,field_name:U.field_name,label_name:U.field_label},null,8,["modelValue","onUpdate:modelValue","field_name","label_name"])):b.createCommentVNode("",!0),U.type=="date_range"?(b.openBlock(),b.createBlock(T,{key:3,is_required:!1,show:!1,modelValue:c.dynamicFilters[U.field_name],"onUpdate:modelValue":ue=>c.dynamicFilters[U.field_name]=ue,field_name:U.field_name,label_name:U.field_label},null,8,["modelValue","onUpdate:modelValue","field_name","label_name"])):b.createCommentVNode("",!0)],64))),128)),(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(o.columns,(U,Y)=>(b.openBlock(),b.createElementBlock(b.Fragment,{key:Y},[U.hasOwnFilter&&Object.keys(U.hasOwnFilter).length>0?(b.openBlock(),b.createElementBlock(b.Fragment,{key:0},[U.hasOwnFilter.type=="dropdown"?(b.openBlock(),b.createBlock(w,{key:0,has_cancel:!0,options:U.hasOwnFilter.options,modelValue:c.dynamicFilters[U.field_name],"onUpdate:modelValue":ue=>c.dynamicFilters[U.field_name]=ue,is_required:!1,field_name:U.field_name,label_name:U.field_label,show:!1,placeholder:o.language?.please_select_an_option??"Please select an option"},null,8,["options","modelValue","onUpdate:modelValue","field_name","label_name","placeholder"])):b.createCommentVNode("",!0),U.hasOwnFilter.type=="text"?(b.openBlock(),b.createBlock(C,{key:1,type:"text",is_required:!1,show:!1,modelValue:c.dynamicFilters[U.field_name],"onUpdate:modelValue":ue=>c.dynamicFilters[U.field_name]=ue,field_name:U.field_name,label_name:U.field_label},null,8,["modelValue","onUpdate:modelValue","field_name","label_name"])):b.createCommentVNode("",!0),U.hasOwnFilter.type=="date"?(b.openBlock(),b.createBlock(C,{key:2,type:"date",is_required:!1,show:!1,modelValue:c.dynamicFilters[U.field_name],"onUpdate:modelValue":ue=>c.dynamicFilters[U.field_name]=ue,field_name:U.field_name,label_name:U.field_label},null,8,["modelValue","onUpdate:modelValue","field_name","label_name"])):b.createCommentVNode("",!0)],64)):b.createCommentVNode("",!0)],64))),128))],2),b.createElementVNode("div",kAe,[b.createVNode(R,{onClick:f.delayedPrint,tag:"button",is_loading:c.isLoadinPrint,button_type:"light",has_border_reduced:!1,classes:"rounded-lg lg:rounded-none lg:rounded-s-lg!",svg_icon:`<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">\r
213
213
  <path stroke="currentColor" stroke-linejoin="round" stroke-width="2" d="M16.444 18H19a1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h2.556M17 11V5a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v6h10ZM7 15h10v4a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1v-4Z"/>\r
214
214
  </svg>`},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(o.language?.print??"Print"),1)]),_:1},8,["onClick","is_loading"]),b.createVNode(R,{onClick:f.exportToExcel,tag:"button",button_type:"light",has_border_reduced:!1,svg_icon:`<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">\r
215
215
  <path stroke="currentColor" stroke-linejoin="round" stroke-width="2" d="M10 3v4a1 1 0 0 1-1 1H5m14-4v16a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V7.914a1 1 0 0 1 .293-.707l3.914-3.914A1 1 0 0 1 9.914 3H18a1 1 0 0 1 1 1Z"/>\r
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.289",
6
+ "version": "1.2.290",
7
7
  "repository": {
8
8
  "type": "git",
9
9
  "url": "git+https://github.com/mrgiant/GoldenLogicUi.git"