1import{v as Me,u as ne,r as Te,p as Ae}from"./xlsx-DnheWHQK.js";import{A as Pe}from"./AgGridVue-Cy4TAouY.js";import{_ as Re,c as D,o as V,h as l,x as re,a as oe,r as ce,w as N,a7 as le,F as J,i as Q,a2 as de,q as B,m as Ce,n as $,G as he,t as S,u as ue,j as ke}from"./index-dkMxEnBR.js";/*! 2 * FilePondPluginImagePreview 4.6.12 3 * Licensed under MIT, https://opensource.org/licenses/MIT/ 4 * Please visit https://pqina.nl/filepond/ for details. 5 */const Se=t=>/^image/.test(t.type),pe=(t,e)=>z(t.x*e,t.y*e),ge=(t,e)=>z(t.x+e.x,t.y+e.y),De=t=>{const e=Math.sqrt(t.x*t.x+t.y*t.y);return e===0?{x:0,y:0}:z(t.x/e,t.y/e)},j=(t,e,s)=>{const i=Math.cos(e),a=Math.sin(e),o=z(t.x-s.x,t.y-s.y);return z(s.x+i*o.x-a*o.y,s.y+a*o.x+i*o.y)},z=(t=0,e=0)=>({x:t,y:e}),R=(t,e,s=1,i)=>{if(typeof t=="string")return parseFloat(t)*s;if(typeof t=="number")return t*(i?e[i]:Math.min(e.width,e.height))},Ve=(t,e,s)=>{const i=t.borderStyle||t.lineStyle||"solid",a=t.backgroundColor||t.fontColor||"transparent",o=t.borderColor||t.lineColor||"transparent",d=R(t.borderWidth||t.lineWidth,e,s),h=t.lineCap||"round",n=t.lineJoin||"round",m=typeof i=="string"?"":i.map(g=>R(g,e,s)).join(","),f=t.opacity||1;return{"stroke-linecap":h,"stroke-linejoin":n,"stroke-width":d||0,"stroke-dasharray":m,stroke:o,fill:a,opacity:f}},G=t=>t!=null,Ge=(t,e,s=1)=>{let i=R(t.x,e,s,"width")||R(t.left,e,s,"width"),a=R(t.y,e,s,"height")||R(t.top,e,s,"height"),o=R(t.width,e,s,"width"),d=R(t.height,e,s,"height"),h=R(t.right,e,s,"width"),n=R(t.bottom,e,s,"height");return G(a)||(G(d)&&G(n)?a=e.height-d-n:a=n),G(i)||(G(o)&&G(h)?i=e.width-o-h:i=h),G(o)||(G(i)&&G(h)?o=e.width-i-h:o=0),G(d)||(G(a)&&G(n)?d=e.height-a-n:d=0),{x:i||
50,y:a||0,width:o||0,height:d||0}},Ue=t=>t.map((e,s)=>`${s===0?"M":"L"} ${e.x} ${e.y}`).join(" "),O=(t,e)=>Object.keys(e).forEach(s=>t.setAttribute(s,e[s])),Oe="http://www.w3.org/2000/svg",F=(t,e)=>{const s=document.createElementNS(Oe,t);return e&&O(s,e),s},Le=t=>O(t,{...t.rect,...t.styles}),Ne=t=>{const e=t.rect.x+t.rect.width*.5,s=t.rect.y+t.rect.height*.5,i=t.rect.width*.5,a=t.rect.height*.5;return O(t,{cx:e,cy:s,rx:i,ry:a,...t.styles})},Fe={contain:"xMidYMid meet",cover:"xMidYMid slice"},We=(t,e)=>{O(t,{...t.rect,...t.styles,preserveAspectRatio:Fe[e.fit]||"none"})},He={left:"start",center:"middle",right:"end"},Be=(t,e,s,i)=>{const a=R(e.fontSize,s,i),o=e.fontFamily||"sans-serif",d=e.fontWeight||"normal",h=He[e.textAlign]||"start";O(t,{...t.rect,...t.styles,"stroke-width":0,"font-weight":d,"font-size":a,"font-family":o,"text-anchor":h}),t.text!==e.text&&(t.text=e.text,t.textContent=e.text.length?e.text:" ")},qe=(t,e,s,i)=>{O(t,{...t.rect,...t.styles,fill:"none"});const a=t.childNodes[0],o=t.childNodes[1],d=t.childNodes[2],h=t.rect,n={x:t.rect.x+t.rect.width,y:t.rect.y+t.rect.height};if(O(a,{x1:h.x,y1:h.y,x2:n.x,y2:n.y}),!e.lineDecoration)return;o.style.display="none",d.style.display="none";const m=De({x:n.x-h.x,y:n.y-h.y}),f=R(.05,s,i);if(e.lineDecoration.indexOf("arrow-begin")!==-1){const g=pe(m,f),_=ge(h,g),b=j(h,2,_),w=j(h,-2,_);O(o,{style:"display:block;",d:`M${b.x},${b.y} L${h.x},${h.y} L${w.x},${w.y}`})}if(e.lineDecoration.indexOf("arrow-end")!==-1){const g=pe(m,-f),_=ge(n,g),b=j(n,2,_),w=j(n,-2,_);O(d,{style:"display:block;",d:`M${b.x},${b.y} L${n.x},${n.y} L${w.x},${w.y}`})}},ze=(t,e,s,i)=>{O(t,{...t.styles,fill:"none",d:Ue(e.points.map(a=>({x:R(a.x,s,i,"width"),y:R(a.y,s,i,"height")})))})},Z=t=>e=>F(t,{id:e.id}),Ye=t=>{const e=F("image",{id:t.id,"stroke-linecap":"round","stroke-linejoin":"round",opacity:"0"});return e.onload=()=>{e.setAttribute("opacity",t.opacity||1)},e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.src),e},Xe=t=>{const e=F("g",{id:t.id,"stroke-linecap":"round","stroke-linejoin":"round"}),s=F("line");e.appendChild(s);const i=F("path");e.appendChild(i);const a=F("path");return e.appendChild(a),e},je={image:Ye,rect:Z("rect"),ellipse:Z("ellipse"),text:Z("text"),path:Z("path"),line:Xe},Ze={rect:Le,ellipse:Ne,image:We,text:Be,path:ze,line:qe},Ke=(t,e)=>je[t](e),Je=(t,e,s,i,a)=>{e!=="path"&&(t.rect=Ge(s,i,a)),t.styles=Ve(s,i,a),Ze[e](t,s,i,a)},Qe=["x","y","left","top","right","bottom","width","height"],$e=t=>typeof t=="string"&&/%/.test(t)?parseFloat(t)/100:t,et=t=>{const[e,s]=t,i=s.points?{}:Qe.reduce((a,o)=>(a[o]=$e(s[o]),a),{});return[e,{zIndex:0,...s,...i}]},tt=(t,e)=>t[1].zIndex>e[1].zIndex?1:t[1].zIndex<e[1].zIndex?-1:0,st=t=>t.utils.createView({name:"image-preview-markup",tag:"svg",ignoreRect:!0,mixins:{apis:["width","height","crop","markup","resize","dirty"]},write:({root:e,props:s})=>{if(!s.dirty)return;const{crop:i,resize:a,markup:o}=s,d=s.width,h=s.height;let n=i.width,m=i.height;if(a){const{size:b}=a;let w=b&&b.width,M=b&&b.height;const u=a.mode,I=a.upscale;w&&!M&&(M=w),M&&!w&&(w=M);const r=n<w&&m<M;if(!r||r&&I){let c=w/n,p=M/m;if(u==="force")n=w,m=M;else{let y;u==="cover"?y=Math.max(c,p):u==="contain"&&(y=Math.min(c,p)),n=n*y,m=m*y}}}const f={width:d,height:h};e.element.setAttribute("width",f.width),e.element.setAttribute("height",f.height);const g=Math.min(d/n,h/m);e.element.innerHTML="";const _=e.query("GET_IMAGE_PREVIEW_MARKUP_FILTER");o.filter(_).map(et).sort(tt).forEach(b=>{const[w,M]=b,u=Ke(w,M);Je(u,w,M,f,g),e.element.appendChild(u)})}}),q=(t,e)=>({x:t,y:e}),it=(t,e)=>t.x*e.x+t.y*e.y,me=(t,e)=>q(t.x-e.x,t.y-e.y),at=(t,e)=>it(me(t,e),me(t,e)),fe=(t,e)=>Math.sqrt(at(t,e)),ye=(t,e)=>{const s=t,i=1.5707963267948966,a=e,o=1.5707963267948966-e,d=Math.sin(i),h=Math.sin(a),n=Math.sin(o),m=Math.cos(o),f=s/d,g=f*h,_=f*n;return q(m*g,m*_)},nt=(t,e)=>{const s=t.width,i=t.height,a=ye(s,e),o=ye(i,e),d=q(t.x+Math.abs(a.x),t.y-Math.abs(a.y)),h=q(t.x+t.width+Math.abs(o.y),t.y+Math.abs(o.x)),n=q(t.x-Math.abs(o.y),t.y+t.height-Math.abs(o.x));return{width:fe(d,h),height:fe(d,n)}},rt=(t,e,s=1)=>{const i=t.height/t.width;let a=1,o=e,d=1,h=i;h>o&&(h=o,d=h/i);const n=Math.max(a/d,o/h),m=t.width/(s*n*d),f=m*e;return{width:m,height:f}},_e=(t,e,s,i)=>{const a=i.x>.5?1-i.x:i.x,o=i.y>.5?1-i.y:i.y,d=a*2*t.width,h=o*2*t.height,n=nt(e,s);return Math.max(n.width/d,n.height/h)},be=(t,e)=>{let s=t.width,i=s*e;i>t.height&&(i=t.height,s=i/e);const a=(t.width-s)*.5,o=(t.height-i)*.5;return{x:a,y:o,width:s,height:i}},ot=(t,e={})=>{let{zoom:s,rotation:i,center:a,aspectRatio:o}=e;o||(o=t.height/t.width);const d=rt(t,o,s),h={width:d.width,height:d.height},n=typeof e.scaleToFit>"u"||e.scaleToFit,m=_e(t,be(h,o),i,n?a:{x:.5,y:.5}),f=s*m;return{widthFloat:d.width/f,heightFloat:d.height/f,width:Math.round(d.width/f),height:Math.round(d.height/f)}},U={type:"spring",stiffness:.5,damping:.45,mass:10},ct=t=>t.utils.createView({name:"image-bitmap",ignoreRect:!0,mixins:{styles:["scaleX","scaleY"]},create:({root:e,props:s})=>{e.appendChild(s.image)}}),lt=t=>t.utils.createView({name:"image-canvas-wrapper",tag:"div",ignoreRect:!0,mixins:{apis:["crop","width","height"],styles:["originX","originY","translateX","translateY","scaleX","scaleY","rotateZ"],animations:{originX:U,originY:U,scaleX:U,scaleY:U,translateX:U,translateY:U,rotateZ:U}},create:({root:e,props:s})=>{s.width=s.image.width,s.height=s.image.height,e.ref.bitmap=e.appendChildView(e.createChildView(ct(t),{image:s.image}))},write:({root:e,props:s})=>{const{flip:i}=s.crop,{bitmap:a}=e.ref;a.scaleX=i.horizontal?-1:1,a.scaleY=i.vertical?-1:1}}),dt=t=>t.utils.createView({name:"image-clip",tag:"div",ignoreRect:!0,mixins:{apis:["crop","markup","resize","width","height","dirty","background"],styles:["width","height","o
5pacity"],animations:{opacity:{type:"tween",duration:250}}},didWriteView:function({root:e,props:s}){s.background&&(e.element.style.backgroundColor=s.background)},create:({root:e,props:s})=>{e.ref.image=e.appendChildView(e.createChildView(lt(t),Object.assign({},s))),e.ref.createMarkup=()=>{e.ref.markup||(e.ref.markup=e.appendChildView(e.createChildView(st(t),Object.assign({},s))))},e.ref.destroyMarkup=()=>{e.ref.markup&&(e.removeChildView(e.ref.markup),e.ref.markup=null)};const i=e.query("GET_IMAGE_PREVIEW_TRANSPARENCY_INDICATOR");i!==null&&(i==="grid"?e.element.dataset.transparencyIndicator=i:e.element.dataset.transparencyIndicator="color")},write:({root:e,props:s,shouldOptimize:i})=>{const{crop:a,markup:o,resize:d,dirty:h,width:n,height:m}=s;e.ref.image.crop=a;const f={width:n,height:m,center:{x:n*.5,y:m*.5}},g={width:e.ref.image.width,height:e.ref.image.height},_={x:a.center.x*g.width,y:a.center.y*g.height},b={x:f.center.x-g.width*a.center.x,y:f.center.y-g.height*a.center.y},w=Math.PI*2+a.rotation%(Math.PI*2),M=a.aspectRatio||g.height/g.width,u=typeof a.scaleToFit>"u"||a.scaleToFit,I=_e(g,be(f,M),w,u?a.center:{x:.5,y:.5}),r=a.zoom*I;o&&o.length?(e.ref.createMarkup(),e.ref.markup.width=n,e.ref.markup.height=m,e.ref.markup.resize=d,e.ref.markup.dirty=h,e.ref.markup.markup=o,e.ref.markup.crop=ot(g,a)):e.ref.markup&&e.ref.destroyMarkup();const c=e.ref.image;if(i){c.originX=null,c.originY=null,c.translateX=null,c.translateY=null,c.rotateZ=null,c.scaleX=null,c.scaleY=null;return}c.originX=_.x,c.originY=_.y,c.translateX=b.x,c.translateY=b.y,c.rotateZ=w,c.scaleX=r,c.scaleY=r}}),ht=t=>t.utils.createView({name:"image-preview",tag:"div",ignoreRect:!0,mixins:{apis:["image","crop","markup","resize","dirty","background"],styles:["translateY","scaleX","scaleY","opacity"],animations:{scaleX:U,scaleY:U,translateY:U,opacity:{type:"tween",duration:400}}},create:({root:e,props:s})=>{e.ref.clip=e.appendChildView(e.createChildView(dt(t),{id:s.id,image:s.image,crop:s.crop,markup:s.markup,resize:s.resize,dirty:s.dirty,background:s.background}))},write:({root:e,props:s,shouldOptimize:i})=>{const{clip:a}=e.ref,{image:o,crop:d,markup:h,resize:n,dirty:m}=s;if(a.crop=d,a.markup=h,a.resize=n,a.dirty=m,a.opacity=i?0:1,i||e.rect.element.hidden)return;const f=o.height/o.width;let g=d.aspectRatio||f;const _=e.rect.inner.width,b=e.rect.inner.height;let w=e.query("GET_IMAGE_PREVIEW_HEIGHT");const M=e.query("GET_IMAGE_PREVIEW_MIN_HEIGHT"),u=e.query("GET_IMAGE_PREVIEW_MAX_HEIGHT"),I=e.query("GET_PANEL_ASPECT_RATIO"),r=e.query("GET_ALLOW_MULTIPLE");I&&!r&&(w=_*I,g=I);let c=w!==null?w:Math.max(M,Math.min(_*g,u)),p=c/g;p>_&&(p=_,c=p*g),c>b&&(c=b,p=b/g),a.width=p,a.height=c}});let ut=`<svg width="500" height="200" viewBox="0 0 500 200" preserveAspectRatio="none"> 6 <defs> 7 <radialGradient id="gradient-__UID__" cx=".5" cy="1.25" r="1.15"> 8 <stop offset='50%' stop-color='#000000'/> 9 <stop offset='56%' stop-color='#0a0a0a'/> 10 <stop offset='63%' stop-color='#262626'/> 11 <stop offset='69%' stop-color='#4f4f4f'/> 12 <stop offset='75%' stop-color='#808080'/> 13 <stop offset='81%' stop-color='#b1b1b1'/> 14 <stop offset='88%' stop-color='#dadada'/> 15 <stop offset='94%' stop-color='#f6f6f6'/> 16 <stop offset='100%' stop-color='#ffffff'/> 17 </radialGradient> 18 <mask id="mask-__UID__"> 19 <rect x="0" y="0" width="500" height="200" fill="url(#gradient-__UID__)"></rect> 20 </mask> 21 </defs> 22 <rect x="0" width="500" height="200" fill="currentColor" mask="url(#mask-__UID__)"></rect> 23</svg>`,we=0;const pt=t=>t.utils.createView({name:"image-preview-overlay",tag:"div",ignoreRect:!0,create:({root:e,props:s})=>{let i=ut;if(document.querySelector("base")){const a=new URL(window.location.href.replace(window.location.hash,"")).href;i=i.replace(/url\(\#/g,"url("+a+"#")}we++,e.element.classList.add(`filepond--image-preview-overlay-${s.status}`),e.element.innerHTML=i.replace(/__UID__/g,we)},mixins:{styles:["opacity"],animations:{opacity:{type:"spring",mass:25}}}}),gt=function(){self.onmessage=t=>{createImageBitmap(t.data.message.file).then(e=>{self.postMessage({id:t.data.id,message:e},[e])})}},mt=function(){self.onmessage=t=>{const e=t.data.message.imageData,s=t.data.message.colorMatrix,i=e.data,a=i.length,o=s[0],d=s[1],h=s[2],n=s[3],m=s[4],f=s[5],g=s[6],_=s[7],b=s[8],w=s[9],M=s[10],u=s[11],I=s[12],r=s[13],c=s[14],p=s[15],y=s[16],x=s[17],E=s[18],T=s[19];let v=0,P=0,C=0,A=0,k=0;for(;v<a;v+=4)P=i[v]/255,C=i[v+1]/255,A=i[v+2]/255,k=i[v+3]/255,i[v]=Math.max(0,Math.min((P*o+C*d+A*h+k*n+m)*255,255)),i[v+1]=Math.max(0,Math.min((P*f+C*g+A*_+k*b+w)*255,255)),i[v+2]=Math.max(0,Math.min((P*M+C*u+A*I+k*r+c)*255,255)),i[v+3]=Math.max(0,Math.min((P*p+C*y+A*x+k*E+T)*255,255));self.postMessage({id:t.data.id,message:e},[e.data.buffer])}},ft=(t,e)=>{let s=new Image;s.onload=()=>
23{const i=s.naturalWidth,a=s.naturalHeight;s=null,e(i,a)},s.src=t},yt={1:()=>[1,0,0,1,0,0],2:t=>[-1,0,0,1,t,0],3:(t,e)=>[-1,0,0,-1,t,e],4:(t,e)=>[1,0,0,-1,0,e],5:()=>[0,1,1,0,0,0],6:(t,e)=>[0,1,-1,0,e,0],7:(t,e)=>[0,-1,-1,0,e,t],8:t=>[0,-1,1,0,0,t]},wt=(t,e,s,i)=>{i!==-1&&t.transform.apply(t,yt[i](e,s))},_t=(t,e,s,i)=>{e=Math.round(e),s=Math.round(s);const a=document.createElement("canvas");a.width=e,a.height=s;const o=a.getContext("2d");return i>=5&&i<=8&&([e,s]=[s,e]),wt(o,e,s,i),o.drawImage(t,0,0,e,s),a},xe=t=>/^image/.test(t.type)&&!/svg/.test(t.type),bt=10,xt=10,Et=t=>{const e=Math.min(bt/t.width,xt/t.height),s=document.createElement("canvas"),i=s.getContext("2d"),a=s.width=Math.ceil(t.width*e),o=s.height=Math.ceil(t.height*e);i.drawImage(t,0,0,a,o);let d=null;try{d=i.getImageData(0,0,a,o).data}catch{return null}const h=d.length;let n=0,m=0,f=0,g=0;for(;g<h;g+=4)n+=d[g]*d[g],m+=d[g+1]*d[g+1],f+=d[g+2]*d[g+2];return n=ee(n,h),m=ee(m,h),f=ee(f,h),{r:n,g:m,b:f}},ee=(t,e)=>Math.floor(Math.sqrt(t/(e/4))),It=(t,e)=>(e=e||document.createElement("canvas"),e.width=t.width,e.height=t.height,e.getContext("2d").drawImage(t,0,0),e),vt=t=>{let e;try{e=new ImageData(t.width,t.height)}catch{e=document.createElement("canvas").getContext("2d").createImageData(t.width,t.height)}return e.data.set(new Uint8ClampedArray(t.data)),e},Mt=t=>new Promise((e,s)=>{const i=new Image;i.crossOrigin="Anonymous",i.onload=()=>{e(i)},i.onerror=a=>{s(a)},i.src=t}),Tt=t=>{const e=pt(t),s=ht(t),{createWorker:i}=t.utils,a=(r,c,p)=>new Promise(y=>{r.ref.imageData||(r.ref.imageData=p.getContext("2d").getImageData(0,0,p.width,p.height));const x=vt(r.ref.imageData);if(!c||c.length!==20)return p.getContext("2d").putImageData(x,0,0),y();const E=i(mt);E.post({imageData:x,colorMatrix:c},T=>{p.getContext("2d").putImageData(T,0,0),E.terminate(),y()},[x.data.buffer])}),o=(r,c)=>{r.removeChildView(c),c.image.width=1,c.image.height=1,c._destroy()},d=({root:r})=>{const c=r.ref.images.shift();return c.opacity=0,c.translateY=-15,r.ref.imageViewBin.push(c),c},h=({root:r,props:c,image:p})=>{const y=c.id,x=r.query("GET_ITEM",{id:y});if(!x)return;const E=x.getMetadata("crop")||{center:{x:.5,y:.5},flip:{horizontal:!1,vertical:!1},zoom:1,rotation:0,aspectRatio:null},T=r.query("GET_IMAGE_TRANSFORM_CANVAS_BACKGROUND_COLOR");let v,P,C=!1;r.query("GET_IMAGE_PREVIEW_MARKUP_SHOW")&&(v=x.getMetadata("markup")||[],P=x.getMetadata("resize"),C=!0);const A=r.appendChildView(r.createChildView(s,{id:y,image:p,crop:E,resize:P,markup:v,dirty:C,background:T,opacity:0,scaleX:1.15,scaleY:1.15,translateY:15}),r.childViews.length);r.ref.images.push(A),A.opacity=1,A.scaleX=1,A.scaleY=1,A.translateY=0,setTimeout(()=>{r.dispatch("DID_IMAGE_PREVIEW_SHOW",{id:y})},250)},n=({root:r,props:c})=>{const p=r.query("GET_ITEM",{id:c.id});if(!p)return;const y=r.ref.images[r.ref.images.length-1];y.crop=p.getMetadata("crop"),y.background=r.query("GET_IMAGE_TRANSFORM_CANVAS_BACKGROUND_COLOR"),r.query("GET_IMAGE_PREVIEW_MARKUP_SHOW")&&(y.dirty=!0,y.resize=p.getMetadata("resize"),y.markup=p.getMetadata("markup"))},m=({root:r,props:c,action:p})=>{if(!/crop|filter|markup|resize/.test(p.change.key)||!r.ref.images.length)return;const y=r.query("GET_ITEM",{id:c.id});if(y){if(/filter/.test(p.change.key)){const x=r.ref.images[r.ref.images.length-1];a(r,p.change.value,x.image);return}if(/crop|markup|resize/.test(p.change.key)){const x=y.getMetadata("crop"),E=r.ref.images[r.ref.images.length-1];if(x&&x.aspectRatio&&E.crop&&E.crop.aspectRatio&&Math.abs(x.aspectRatio-E.crop.aspectRatio)>1e-5){const T=d({root:r});h({root:r,props:c,image:It(T.image)})}else n({root:r,props:c})}}},f=r=>{const p=window.navigator.userAgent.match(/Firefox\/([0-9]+)\./),y=p?parseInt(p[1]):null;return y!==null&&y<=58?!1:"createImageBitmap"in window&&xe(r)},g=({root:r,props:c})=>{const{id:p}=c,y=r.query("GET_ITEM",p);if(!y)return;const x=URL.createObjectURL(y.file);ft(x,(E,T)=>{r.dispatch("DID_IMAGE_PREVIEW_CALCULATE_SIZE",{id:p,width:E,height:T})})},_=({root:r,props:c})=>{const{id:p}=c,y=r.query("GET_ITEM",p);if(!y)return;const x=URL.createObjectURL(y.file),E=()=>{Mt(x).then(T)},T=v=>{URL.revokeObjectURL(x);const C=(y.getMetadata("exif")||{}).orientation||-1;let{width:A,height:k}=v;if(!A||!k)return;C>=5&&C<=8&&([A,k]=[k,A]);const K=Math.max(1,window.devicePixelRatio*.75),Y=r.query("GET_IMAGE_PREVIEW_ZOOM_FACTOR")*K,L=k/A,W=r.rect.element.width,Ie=r.rect.element.height;let H=W,X=H*L;L>1?(H=Math.min(A,W*Y),X=H*L):(X=Math.min(k,Ie*Y),H=X/L);const se=_t(v,H,X,C),ie=()=>{const ve=r.query("GET_IMAGE_PREVIEW_CALCULATE_AVERAGE_IMAGE_COLOR")?Et(data):null;y.setMetadata("color",ve,!0),"close"in v&&v.close(),r.ref.overlaySha
23dow.opacity=1,h({root:r,props:c,image:se})},ae=y.getMetadata("filter");ae?a(r,ae,se).then(ie):ie()};if(f(y.file)){const v=i(gt);v.post({file:y.file},P=>{if(v.terminate(),!P){E();return}T(P)})}else E()},b=({root:r})=>{const c=r.ref.images[r.ref.images.length-1];c.translateY=0,c.scaleX=1,c.scaleY=1,c.opacity=1},w=({root:r})=>{r.ref.overlayShadow.opacity=1,r.ref.overlayError.opacity=0,r.ref.overlaySuccess.opacity=0},M=({root:r})=>{r.ref.overlayShadow.opacity=.25,r.ref.overlayError.opacity=1},u=({root:r})=>{r.ref.overlayShadow.opacity=.25,r.ref.overlaySuccess.opacity=1},I=({root:r})=>{r.ref.images=[],r.ref.imageData=null,r.ref.imageViewBin=[],r.ref.overlayShadow=r.appendChildView(r.createChildView(e,{opacity:0,status:"idle"})),r.ref.overlaySuccess=r.appendChildView(r.createChildView(e,{opacity:0,status:"success"})),r.ref.overlayError=r.appendChildView(r.createChildView(e,{opacity:0,status:"failure"}))};return t.utils.createView({name:"image-preview-wrapper",create:I,styles:["height"],apis:["height"],destroy:({root:r})=>{r.ref.images.forEach(c=>{c.image.width=1,c.image.height=1})},didWriteView:({root:r})=>{r.ref.images.forEach(c=>{c.dirty=!1})},write:t.utils.createRoute({DID_IMAGE_PREVIEW_DRAW:b,DID_IMAGE_PREVIEW_CONTAINER_CREATE:g,DID_FINISH_CALCULATE_PREVIEWSIZE:_,DID_UPDATE_ITEM_METADATA:m,DID_THROW_ITEM_LOAD_ERROR:M,DID_THROW_ITEM_PROCESSING_ERROR:M,DID_THROW_ITEM_INVALID:M,DID_COMPLETE_ITEM_PROCESSING:u,DID_START_ITEM_PROCESSING:w,DID_REVERT_ITEM_PROCESSING:w},({root:r})=>{const c=r.ref.imageViewBin.filter(p=>p.opacity===0);r.ref.imageViewBin=r.ref.imageViewBin.filter(p=>p.opacity>0),c.forEach(p=>o(r,p)),c.length=0})})},Ee=t=>{const{addFilter:e,utils:s}=t,{Type:i,createRoute:a,isFile:o}=s,d=Tt(t);return e("CREATE_VIEW",h=>{const{is:n,view:m,query:f}=h;if(!n("file")||!f("GET_ALLOW_IMAGE_PREVIEW"))return;const g=({root:u,props:I})=>{const{id:r}=I,c=f("GET_ITEM",r);if(!c||!o(c.file)||c.archived)return;const p=c.file;if(!Se(p)||!f("GET_IMAGE_PREVIEW_FILTER_ITEM")(c))return;const y="createImageBitmap"in(window||{}),x=f("GET_IMAGE_PREVIEW_MAX_FILE_SIZE");if(!y&&x&&p.size>x)return;u.ref.imagePreview=m.appendChildView(m.createChildView(d,{id:r}));const E=u.query("GET_IMAGE_PREVIEW_HEIGHT");E&&u.dispatch("DID_UPDATE_PANEL_HEIGHT",{id:c.id,height:E});const T=!y&&p.size>f("GET_IMAGE_PREVIEW_MAX_INSTANT_PREVIEW_FILE_SIZE");u.dispatch("DID_IMAGE_PREVIEW_CONTAINER_CREATE",{id:r},T)},_=(u,I)=>{if(!u.ref.imagePreview)return;let{id:r}=I;const c=u.query("GET_ITEM",{id:r});if(!c)return;const p=u.query("GET_PANEL_ASPECT_RATIO"),y=u.query("GET_ITEM_PANEL_ASPECT_RATIO"),x=u.query("GET_IMAGE_PREVIEW_HEIGHT");if(p||y||x)return;let{imageWidth:E,imageHeight:T}=u.ref;if(!E||!T)return;const v=u.query("GET_IMAGE_PREVIEW_MIN_HEIGHT"),P=u.query("GET_IMAGE_PREVIEW_MAX_HEIGHT"),A=(c.getMetadata("exif")||{}).orientation||-1;if(A>=5&&A<=8&&([E,T]=[T,E]),!xe(c.file)||u.query("GET_IMAGE_PREVIEW_UPSCALE")){const W=2048/E;E*=W,T*=W}const k=T/E,K=(c.getMetadata("crop")||{}).aspectRatio||k;let te=Math.max(v,Math.min(T,P));const Y=u.rect.element.width,L=Math.min(Y*K,te);u.dispatch("DID_UPDATE_PANEL_HEIGHT",{id:c.id,height:L})},b=({root:u})=>{u.ref.shouldRescale=!0},w=({root:u,action:I})=>{I.change.key==="crop"&&(u.ref.shouldRescale=!0)},M=({root:u,action:I})=>{u.ref.imageWidth=I.width,u.ref.imageHeight=I.height,u.ref.shouldRescale=!0,u.ref.shouldDrawPreview=!0,u.dispatch("KICK")};m.registerWriter(a({DID_RESIZE_ROOT:b,DID_STOP_RESIZE:b,DID_LOAD_ITEM:g,DID_IMAGE_PREVIEW_CALCULATE_SIZE:M,DID_UPDATE_ITEM_METADATA:w},({root:u,props:I})=>{u.ref.imagePreview&&(u.rect.element.hidden||(u.ref.shouldRescale&&(_(u,I),u.ref.shouldRescale=!1),u.ref.shouldDrawPreview&&(requestAnimationFrame(()=>{requestAnimationFrame(()=>{u.dispatch("DID_FINISH_CALCULATE_PREVIEWSIZE",{id:I.id})})}),u.ref.shouldDrawPreview=!1)))}))}),{options:{allowImagePreview:[!0,i.BOOLEAN],imagePreviewFilterItem:[()=>!0,i.FUNCTION],imagePreviewHeight:[null,i.INT],imagePreviewMinHeight:[44,i.INT],imagePreviewMaxHeight:[256,i.INT],imagePreviewMaxFileSize:[null,i.INT],imagePreviewZoomFactor:[2,i.INT],imagePreviewUpscale:[!1,i.BOOLEAN],imagePreviewMaxInstantPreviewFileSize:[1e6,i.INT],imagePreviewTransparencyIndicator:[null,i.STRING],imagePreviewCalculateAverageImageColor:[!1,i.BOOLEAN],imagePreviewMarkupShow:[!0,i.BOOLEAN],imagePreviewMarkupFilter:[()=>!0,i.FUNCTION]}}},At=typeof window<"u"&&typeof window.document<"u";At&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:Ee}));const Pt=Me(Ae,Ee),Rt={components:{AgGridVue:Pe,FilePond:Pt},data(){return{excelFiles:[],file:null,selectedSheet:null,sheetNames:null,sheets:null,currSheet:null,rowData:[],columnDefs:[],syncParams:{},syncProcess:{total:0,finished:0,taskCount:0,msg:[],begin:-1,end:0,taskFinished:0},syncButtonDisabled:!1,processCode:"-",selectedRoutine:"",routineList:[{name:"R1",path:"/aixin832/publicapi/batchUpdateTrackId"},{name:"R2",path:"/zhongchen/publicapi/batchUpdateTrackId"},{name:"R3",path:"/shizhou/publicapi/batchUpdateTrackId"}],allowedPhones:["13810221505","18827417676"],allowedGPTUID:["6640e6cf1211c6324ee4d4ec","653b572f1211c6324e11689f"],hasPermission:!1,gptAuthInfo:null,batchMode:!1,sheetList:[],selectAll:!1}},watch:{selectedSheet(){this.updateTable()},sheets:{handler(t){t&&(this.sheetList=Object.keys(t).map((e,s)=>{const i=t[e],a=ne.sheet_to_json(i);return{name:e,sheet:i,totalRows:a.length,validTrackIds:this.countValidTrackIds(a),selected:s!==0}}
23))},immediate:!0}},created(){document.title="è¥ä¿¡é - ç©æµåæ¹éä¸ä¼ ",setInterval(()=>this.checkAuth(),1e3)},computed:{selectedSheets(){return this.sheetList.filter(t=>t.selected)},isUploadDisabled(){return!this.sheets||!this.selectedRoutine||this.batchMode||this.syncProcess.taskFinished!==this.syncProcess.taskCount&&this.syncButtonDisabled}},methods:{handleFileRead(t){if(t)try{const e=t.file||t,s=new FileReader;s.onload=i=>{try{const a=new Uint8Array(i.target.result),o=Te(a,{type:"array"});o&&(this.sheets=o.Sheets,this.sheetNames=o.SheetNames,this.sheetNames&&(this.selectedSheet={name:this.sheetNames[0],sheet:this.sheets[this.sheetNames[0]]}))}catch(a){console.error("Error parsing Excel:",a)}},s.onerror=i=>{console.error("Error reading file:",i)},s.readAsArrayBuffer(e)}catch(e){console.error("Error handling file:",e)}},activateFile(t){console.log("clicked file:",t),t&&(this.file=t,this.handleFileRead(t))},handleFilePondInit:function(){console.log("FilePond has initialized!!")},cellDoubleClicked(t){var s,i;const e=(s=this.$route.query.processUrl)==null?void 0:s.split("/")[1];switch(console.log("clicked: ",t,this.$route.query.processUrl+"["+e+"]"),(i=t.colDef)==null?void 0:i.headerName){case"订åå·":window.open("https://api.zhycit.com/"+e+"/order/orderDetail?orderId="+(t==null?void 0:t.data.订åå·));break;case"ç¨æ·ææºå·":window.open("https://api.zhycit.com/"+e+"/web/user/searchUser?info="+(t==null?void 0:t.data.ç¨æ·ææºå·));break;case"ç©æµåå·":window.open("https://api.zhycit.com/"+e+"/anon/trackInfoPage?com=&num="+(t==null?void 0:t.data.ç©æµåå·));break}},async uploadExcelTrackId(){var e,s,i;if(!((e=this.gptAuthInfo)!=null&&e.gptUid)||!this.hasPermission)return;console.log("uploadExcelTrackId:",this.syncParams);const t=this.syncParams.updateTrackIds;if(t&&t.length>0){const a=t.length;this.syncProcess={total:a,finished:0,taskCount:0,taskFinished:0,begin:0,end:0,msg:[]};let o=0;const d={supplier:(s=this.syncParams)==null?void 0:s.supplier,password:this.syncParams.password,username:this.syncParams.username},h=10;this.syncButtonDisabled=!0;do try{this.syncProcess.begin=o,this.syncProcess.end=Math.min(o+h,a);const n=t.slice(this.syncProcess.begin,this.syncProcess.end);d.updateTrackIds=JSON.stringify(n);try{const m=this.selectedRoutine.path,g=await(await fetch(m,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(d)})).json(),_=(g==null?void 0:g.total)||((i=g==null?void 0:g.data)==null?void 0:i.total)||0;_&&(this.syncProcess.finished+=_);const b=`æ¹æ¬¡ ${this.syncProcess.taskCount+1}: ${this.syncProcess.begin+1} - ${this.syncProcess.end}, æå: ${_}`;this.syncProcess.msg.push(b),this.syncProcess.taskFinished++}catch(m){console.error("Upload error:",m),this.syncProcess.msg.push(`Error: ${this.syncProcess.begin+1} - ${this.syncProcess.end}: ${m.message}`)}this.syncProcess.taskCount++,o+=h}catch(n){console.error(n),o+=h}while(o<a);setTimeout(()=>{this.syncButtonDisabled=!1},5e3)}},onCreated(t){console.log(t)},updateTable(){var t;try{if(this.rowData=ne.sheet_to_json(this.selectedSheet.sheet),this.rowData&&0<this.rowData.length){let e=[];for(const i of Object.keys(this.rowData[0]))e.push({headerName:i,field:i,resizable:!0,filter:!0});let s=[];for(let i=0;i<this.rowData.length;i++)s.push({orderId:this.rowData[i].订åå·,trackId:this.rowData[i].ç©æµåå·,spuName:this.rowData[i].åååç§°});this.syncParams.updateTrackIds=[...s],this.syncParams.supplier=this.selectedSheet.name,this.columnDefs=[...e]}console.log("selectSheet: ",(t=this.selectedSheet)==null?void 0:t.name)}catch(e){console.error(e)}},onChange(t){console.log("files changed:",t);const e=t==null?void 0:t[0];e&&(this.file=e,this.handleFileRead(e))},checkAuth(){var t;if((t=window.jyiaiSDK)!=null&&t.store)try{const e=this;window.jyiaiSDK.store.getItem("session.user").then(s=>{var a;if(e.gptAuthInfo=s,!(s!=null&&s.gptUid)){this.$router.push("/desktop/auth?backUrl=/apps/ginkgoto&nobreadcrumb=true");return}const i=(a=s.wxAuthInfo)==null?void 0:a.phone;e.hasPermission=e.allowedPhones.includes(i)||e.allowedGPTUID.includes(s.gptUid),e.gptAuthInfo=s})}catch(e){console.error("Error getting auth info from store:",e)}},handleUpload(){console.log("handleUpload",this.isUploadDisabled),!this.isUploadDisabled&&this.uploadExcelTrackId()},countValidTrackIds(t){return t.filter(e=>e.ç©æµåå·&&e.订åå·).length},handleSelectAll(){this.sheetList.forEach((t,e)=>{e!==0&&(t.selected=this.selectAll)})},async handleSingleUpload(t){t.status="uploading",t.successCount=0,console.log("handleSingleUpload: ",t);try{this.selectedSheet={name:t.name,sheet:t.sheet},await this.updateTable(),await this.uploadExcelTrackId(),t.successCount=this.syncProcess.finished,t.status=t.successCount>0?"completed":"failed"}catch(e){console.error("Upload failed:",e),t.status="failed",t.successCount=0}},async handleBatchUpload(){for(const t of this.selectedSheets)try{await this.handleSingleUpload(t),await new Promise(e=>setTimeout(e,500))}catch(e){console.error(`Failed to upload ${t.name}:`,e)}},getProgressBarClass(t){switch(t){case"uploading":return"bg-primary progress-bar-striped progress-bar-animated";case"completed":return"bg-success";case"failed":return"bg-danger";default:return"bg-secondary"}},getStatusBadgeClass(t){switch(t){case"uploading":return"bg-primary-subtle text-primary";case"completed":return"bg-success-subtle text-success";case"failed":return"bg-danger-subtle text-danger";default:return"bg-secondary-subtle text-secondary"}},getStatusText(t){switch(t){case"uploading":return"ä¸ä¼ ä¸";case"completed":return"已宿";case"failed":return"失败";default:return"å¾ ä¸ä¼ "}}}},Ct={key:0,class:"vh-100 d-flex flex-column bg-body-tertiary"},kt={class:"flex-grow-1 d-flex p-3 gap-3"},St={class:"h-100 bg-body d-flex flex-column py-2 rounded-2 shadow-sm border",style:{width:"20rem"}},Dt={class:"p-4"},Vt={class:"position-relative"},Gt={class:"h-100 flex-grow-1 d-flex flex-column"},Ut={class:"d-flex align-items-center mb-3 bg-body rounded-2 p-3 shadow-sm border"},Ot={class:"d-flex align-items-center"},Lt=["disabled"],Nt=["value"],Ft={key:1,value:"",disabled:""},Wt=["value"],Ht={class:"d-flex align-items-center border-start ps-3"},Bt={class:"btn-group",role:"group"},qt={class:"ms-auto"},zt=["disabled"],Yt={key:0,class:"flex-grow-1 bg-body rounded-2 shadow-sm mb-3 overflow-hidden border"},Xt={key:1,class:"flex-grow-1 bg-body rounded-2 shadow-sm mb-3 overflow-hidden border"},jt={class:"table-responsive"},Zt={class:"table table-sm align-middle mb-0"},Kt={class:"table-light"},Jt={class:"border-0 px-3",style:{width:"40px"}},Qt={class:"form-check"},$t={class:"border-top-0"},es={class:"px-3"},ts={class:"form-check"},ss=["onUpdate:modelValue","disabled"],is={class:"px-3"},as={class:"d-flex align-items-center"},ns=["title"],rs={class:"px-3 text-center"},os={class:"badge bg-secondary-subtle text-secondary"},cs={class:"px-3 text-center"},ls={class:"badge bg-primary-subtle text-primary"},ds={class:"px-3"},hs={class:"d-flex flex-column gap-1"},us={class:"progress",style:{height:"6px"}},ps={class:"d-flex align-items-center justify-content-between small"},gs={key:0,class:"badge bg-primary-subtle text-primary"},ms={class:"px-3 text-end"},fs=["onClick","disabled"],ys={class:"p-3 border-top bg-light"},ws={class:"d-flex align-items-center justify-content-between"},_s={class:"d-flex align-items-center text-body-secondary small"},bs={class:"fw-semibold text-primary mx-1"},xs=["disabled"],Es={class:"bg-body rounded-2 shadow-sm border"},Is={class:"p-3"},vs={class:"d-flex align-items-center mb-3"},Ms={class:"progress flex-grow-1 me-3",style:{height:"6px"}},Ts={class:"badge bg-primary-subtle text-primary"},As={class:"d-flex align-items-center text-body-secondary small"},Ps={key:1,class:"vh-100 d-flex align-items-center justify-content-center bg-body-tertiary"};function Rs(t,e,s,i,a,o){const d=ce("file-pond"),h=ce("ag-grid-vue");return a.hasPermission?(V(),D("div",Ct,[l("div",kt,[l("section",St,[l("div",Dt,[e[8]||(e[8]=re('<div class="d-flex align-items-center mb-4"><div class="rounded-2 bg-primary bg-opacity-10 p-2 me-3"><i class="bi bi-file-earmark-excel text-primary fs-4"></i></div><div><h6 class="fw-semibold mb-1">Excelæä»¶å¤ç</h6><p class="text-body-secondary small mb-0">æ¯æ .xlsx å .xls æ ¼å¼</p></div></div>',1)),l("div",Vt,[oe(d,{name:"test",ref:"pond","label-idle":`<div class="upload-placeholder"> 24 <i class="bi bi-cloud-arrow-up display-4 text-primary mb-2"></i> 25 <p class="mb-1">ææ¾æä»¶å°è¿é</p> 26 <div class="upload-btn"> 27 <i class="bi bi-plus-lg me-1"></i>éæ©æä»¶ 28 </div> 29 </div>`,"allow-multiple":!0,"accepted-file-types":"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel",files:a.excelFiles,onInit:o.handleFilePondInit,onActivatefile:o.activateFile,onChange:o.onChange,class:"filepond-custom"},null,8,["files","onInit","onActivatefile","onChange"])])])]),l("div",Gt,[l("div",Ut,[l("div",Ot,[N(l("select",{"onUpdate:modelValue":e[0]||(e[0]=n=>a.selectedSheet=n),class:"form-select form-select-sm me-2",style:{width:"14rem"},disabled:a.batchMode},[a.sheets?(V(!0),D(J,{key:0},Q(Object.keys(a.sheets),n=>(V(),D("option",{key:n,value:{name:n,sheet:a.sheets[n]}},S(n),9,Nt))),128)):(V(),D("option",Ft,"è¯·éæ©å·¥ä½è¡¨"))],8,Lt),[[le,a.selectedSheet]]),N(l("select",{"onUpdate:modelValue":e[1]||(e[1]=n=>a.selectedRoutine=n),class:"form-select form-select-sm me-3",style:{width:"8rem"}},[e[9]||(e[9]=l("option",{value:"",disabled:""},"éæ©å°ç¨åº",-1)),(V(!0),D(J,null,Q(a.routineList,n=>(V(),D("option",{key:n.name,value:n},S(n.name),9,Wt))),128))],512),[[le,a.selectedRoutine]])]),l("div",Ht,[l("div",Bt,[N(l("input",{type:"radio",class:"btn-check",name:"uploadMode",id:"singleMode",value:!1,"onUpdate:modelValue":e[2]||(e[2]=n=>a.batchMode=n)},null,512),[[de,a.batchMode]]),e[10]||(e[10]=l("label",{class:"btn btn-sm btn-outline-secondary",for:"singleMode"},[l("i",{class:"bi bi-file me-1"}),B("å个ä¸ä¼ ")],-1)),N(l("input",{type:"radio",class:"btn-check",name:"uploadMode",id:"batchMode",value:!0,"onUpdate:modelValue":e[3]||(e[3]=n=>a.batchMode=n)},null,512),[[de,a.batchMode]]),e[11]||(e[11]=l("label",{class:"btn btn-sm btn-outline-secondary",for:"batchMode"},[l("i",{class:"bi bi-files me-1"}),B("æ¹éä¸ä¼ ")],-1))])]),l("div",qt,[l("a",{href:"#",class:$(["btn btn-sm btn-primary-soft d-inline-flex align-items-center px-3",{disabled:o.isUploadDisabled}]),onClick:e[4]||(e[4]=Ce((...n)=>o.handleUpload&&o.handleUpload(...n),["prevent"])),disabled:a.batchMode},e[12]||(e[12]=[l("i",{class:"bi bi-cloud-arrow-up me-2"},null,-1),l("span",null,"ä¸ä¼ æ°æ®",-1)]),10,zt)])]),a.batchMode?(V(),D("div",Xt,[l("div",jt,[l("table",Zt,[l("thead",null,[l("tr",Kt,[l("th",Jt,[l
29("div",Qt,[N(l("input",{class:"form-check-input",type:"checkbox","onUpdate:modelValue":e[5]||(e[5]=n=>a.selectAll=n),onChange:e[6]||(e[6]=(...n)=>o.handleSelectAll&&o.handleSelectAll(...n))},null,544),[[he,a.selectAll]])])]),e[13]||(e[13]=l("th",{class:"border-0 px-3",style:{width:"180px"}},"ä¾åºå",-1)),e[14]||(e[14]=l("th",{class:"border-0 px-3 text-center",style:{width:"100px"}},"è®¢åæ°",-1)),e[15]||(e[15]=l("th",{class:"border-0 px-3 text-center",style:{width:"100px"}},"ç©æµåæ°",-1)),e[16]||(e[16]=l("th",{class:"border-0 px-3",style:{width:"200px"}},"ä¸ä¼ è¿åº¦",-1)),e[17]||(e[17]=l("th",{class:"border-0 px-3",style:{width:"120px"}},"ä¸ä¼ ç»æ",-1)),e[18]||(e[18]=l("th",{class:"border-0 px-3 text-end",style:{width:"80px"}},"æä½",-1))])]),l("tbody",$t,[(V(!0),D(J,null,Q(a.sheetList,(n,m)=>(V(),D("tr",{key:n.name},[l("td",es,[l("div",ts,[N(l("input",{class:"form-check-input",type:"checkbox","onUpdate:modelValue":f=>n.selected=f,disabled:m===0},null,8,ss),[[he,n.selected]])])]),l("td",is,[l("div",as,[e[19]||(e[19]=l("i",{class:"bi bi-shop text-primary me-2"},null,-1)),l("span",{class:"small text-truncate",style:{"max-width":"140px"},title:n.name},S(n.name),9,ns)])]),l("td",rs,[l("span",os,S(n.totalRows),1)]),l("td",cs,[l("span",ls,S(n.validTrackIds),1)]),l("td",ds,[l("div",hs,[l("div",us,[l("div",{class:$(["progress-bar",o.getProgressBarClass(n.status)]),style:ue({width:`${n.successCount/n.totalRows*100}%`})},null,6)]),l("div",ps,[l("span",{class:$({"text-success":n.status==="completed","text-danger":n.status==="failed","text-primary":n.status==="uploading"})},S(n.successCount||0)+"/"+S(n.totalRows),3),n.status==="uploading"?(V(),D("span",gs," ä¸ä¼ ä¸... ")):ke("",!0)])])]),l("td",ms,[l("button",{class:"btn btn-xs btn-primary-soft",onClick:f=>o.handleSingleUpload(n),disabled:!a.selectedRoutine||n.status==="uploading"},e[20]||(e[20]=[l("i",{class:"bi bi-upload"},null,-1)]),8,fs)])]))),128))])])]),l("div",ys,[l("div",ws,[l("div",_s,[e[21]||(e[21]=l("i",{class:"bi bi-check2-square me-2"},null,-1)),e[22]||(e[22]=B(" 已鿩 ")),l("span",bs,S(o.selectedSheets.length),1),e[23]||(e[23]=B(" 个工ä½è¡¨ "))]),l("button",{class:"btn btn-primary btn-sm px-4",onClick:e[7]||(e[7]=(...n)=>o.handleBatchUpload&&o.handleBatchUpload(...n)),disabled:!a.selectedRoutine||o.selectedSheets.length===0},e[24]||(e[24]=[l("i",{class:"bi bi-cloud-arrow-up-fill me-2"},null,-1),B(" æ¹éä¸ä¼ ")]),8,xs)])])])):(V(),D("div",Yt,[oe(h,{class:"ag-theme-alpine w-100 h-100",columnDefs:a.columnDefs,rowData:a.rowData,enableCellTextSelection:!0,sideBar:!0,onCellDoubleClicked:o.cellDoubleClicked,defaultColDef:{sortable:!0,resizable:!0,filter:!0}},null,8,["columnDefs","rowData","onCellDoubleClicked"])])),l("div",Es,[l("div",Is,[l("div",vs,[l("div",Ms,[l("div",{class:"progress-bar bg-primary",style:ue({width:`${a.syncProcess.finished/a.syncProcess.total*100}%`})},null,4)]),l("span",Ts,S(a.syncProcess.finished)+"/"+S(a.syncProcess.total),1)]),l("div",As,[e[25]||(e[25]=l("i",{class:"bi bi-clock-history me-2"},null,-1)),l("span",null,"å½åå¤ç: "+S(a.syncProcess.begin+1)+" - "+S(a.syncProcess.end)+" / "+S(a.syncProcess.total),1)])])])])])])):(V(),D("div",Ps,e[26]||(e[26]=[re('<div class="text-center"><div class="rounded-circle bg-danger bg-opacity-10 p-3 mb-3 mx-auto" style="width:fit-content;"><i class="bi bi-shield-lock text-danger fs-1"></i></div><h5 class="mb-2">å³å°å¼é</h5><p class="text-body-secondary mb-0">æ±æï¼è¯¥åè½å³å°å
è´¹å¼æ¾ï¼</p></div>',1)])))}const Ds=Re(Rt,[["render",Rs]]);export{Ds as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.