import{bY as e,q as t,dm as a,a0 as l,aM as o,a$ as n,bs as s,dn as i,c7 as r,cg as u,c9 as c,cl as d,ce as p,cw as f,cf as v,ch as m,M as g,bd as y,bi as h,b$ as b,cu as x,dp as w,dq as S,ct as k,an as $,ax as I,b7 as B,bz as C,bp as z,aE as _,u as T,t as E,F as H,ao as F,bc as P,aQ as M,v as N,s as V,bx as j,aT as R,cb as q,am as W,cx as O,I as D,bC as A,c5 as L,b3 as K,aq as Y,cc as U,cs as G,cd as Q,cD as X,al as Z,bg as J,dr as ee,aC as te,aS as ae,g as le,ds as oe,H as ne,cE as se,cK as ie}from"./index-H1gHScdk.js";import{a as re,d as ue,u as ce,b as de,i as pe}from"./use-form-item-LN35a4U9.js";import{d as fe,E as ve}from"./oss-service-i56iqe3y.js";/* empty css             */import{v as me}from"./el-loading-BMCK-0qT.js";import{_ as ge}from"./icon-close-IHa1HKOl.js";import{f as ye,c as he}from"./index-AYdyW-i7.js";const be="update:modelValue",xe="change",we="input",Se=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),ke=["class","style"],$e=/^on[A-Z]/;function Ie(e,{afterFocus:t,beforeBlur:a,afterBlur:u}={}){const c=l(),{emit:d}=c,p=n(),f=o(!1);return s(p,(e=>{e&&e.setAttribute("tabindex","-1")})),i(p,"click",(()=>{var t;null==(t=e.value)||t.focus()})),{wrapperRef:p,isFocused:f,handleFocus:e=>{f.value||(f.value=!0,d("focus",e),null==t||t())},handleBlur:e=>{var t;r(a)&&a(e)||e.relatedTarget&&(null==(t=p.value)?void 0:t.contains(e.relatedTarget))||(f.value=!1,d("blur",e),null==u||u())}}}let Be;const Ce=`\n  height:0 !important;\n  visibility:hidden !important;\n  ${e&&/firefox/i.test(window.navigator.userAgent)?"":"overflow:hidden !important;"}\n  position:absolute !important;\n  z-index:-1000 !important;\n  top:0 !important;\n  right:0 !important;\n`,ze=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function _e(e,t=1,a){var l;Be||(Be=document.createElement("textarea"),document.body.appendChild(Be));const{paddingSize:o,borderSize:n,boxSizing:s,contextStyle:i}=function(e){const t=window.getComputedStyle(e),a=t.getPropertyValue("box-sizing"),l=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),o=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:ze.map((e=>`${e}:${t.getPropertyValue(e)}`)).join(";"),paddingSize:l,borderSize:o,boxSizing:a}}(e);Be.setAttribute("style",`${i};${Ce}`),Be.value=e.value||e.placeholder||"";let r=Be.scrollHeight;const c={};"border-box"===s?r+=n:"content-box"===s&&(r-=o),Be.value="";const d=Be.scrollHeight-o;if(u(t)){let e=d*t;"border-box"===s&&(e=e+o+n),r=Math.max(e,r),c.minHeight=`${e}px`}if(u(a)){let e=d*a;"border-box"===s&&(e=e+o+n),r=Math.min(e,r)}return c.height=`${r}px`,null==(l=Be.parentNode)||l.removeChild(Be),Be=void 0,c}const Te=c({id:{type:String,default:void 0},size:d,disabled:Boolean,modelValue:{type:p([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:p([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:f},prefixIcon:{type:f},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:p([Object,Array,String]),default:()=>v({})},autofocus:{type:Boolean,default:!1}}),Ee={[be]:e=>m(e),input:e=>m(e),change:e=>m(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},He=["role"],Fe=["id","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],Pe=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"],Me=g({name:"ElInput",inheritAttrs:!1}),Ne=Q(U(g({...Me,props:Te,emits:Ee,setup(i,{expose:r,emit:u}){const c=i,d=y(),p=h(),f=t((()=>{const e={};return"combobox"===c.containerRole&&(e["aria-haspopup"]=d["aria-haspopup"],e["aria-owns"]=d["aria-owns"],e["aria-expanded"]=d["aria-expanded"]),e})),v=t((()=>["textarea"===c.type?te.b():ee.b(),ee.m(Z.value),ee.is("disabled",J.value),ee.is("exceed",qe.value),{[ee.b("group")]:p.prepend||p.append,[ee.bm("group","append")]:p.append,[ee.bm("group","prepend")]:p.prepend,[ee.m("prefix")]:p.prefix||c.prefixIcon,[ee.m("suffix")]:p.suffix||c.suffixIcon||c.clearable||c.showPassword,[ee.bm("suffix","password-clear")]:Ne.value&&Ve.value},d.class])),m=t((()=>[ee.e("wrapper"),ee.is("focus",ye.value)])),g=((e={})=>{const{excludeListeners:o=!1,excludeKeys:n}=e,s=t((()=>((null==n?void 0:n.value)||[]).concat(ke))),i=l();return t(i?()=>{var e;return a(Object.entries(null==(e=i.proxy)?void 0:e.$attrs).filter((([e])=>!(s.value.includes(e)||o&&$e.test(e)))))}:()=>({}))})({excludeKeys:t((()=>Object.keys(f.value)))}),{form:U,formItem:Q}=re(),{inputId:X}=ue(c,{formItemContext:Q}),Z=ce(),J=de(),ee=b("input"),te=b("textarea"),ae=n(),le=n(),oe=o(!1),ne=o(!1),se=o(!1),ie=o(),ve=n(c.inputStyle),me=t((()=>ae.value||le.value)),{wrapperRef:ge,isFocused:ye,handleFocus:he,handleBlur:xe}=Ie(me,{afterBlur(){var e;c.validateEvent&&(null==(e=null==Q?void 0:Q.validate)||e.call(Q,"blur").catch((e=>fe())))}}),we=t((()=>{var e;return null!=(e=null==U?void 0:U.statusIcon)&&e})),Be=t((()=>(null==Q?void 0:Q.validateState)||"")),Ce=t((()=>Be.value&&x[Be.value])),ze=t((()=>se.value?w:S)),Te=t((()=>[d.style])),Ee=t((()=>[c.inputStyle,ve.value,{resize:c.resize}])),Me=t((()=>pe(c.modelValue)?"":String(c.modelValue))),Ne=t((()=>c.clearable&&!J.value&&!c.readonly&&!!Me.value&&(ye.value||oe.value))),Ve=t((()=>c.showPassword&&!J.value&&!c.readonly&&!!Me.value&&(!!Me.value||ye.value))),je=t((()=>c.showWordLimit&&!!c.maxlength&&("text"===c.type||"textarea"===c.type)&&!J.value&&!c.readonly&&!c.showPassword)),Re=t((()=>Me.value.length)),qe=t((()=>!!je.value&&Re.value>Number(c.maxlength))),We=t((()=>!!p.suffix||!!c.suffixIcon||Ne.value||c.showPassword||je.value||!!Be.value&&we.value)),[Oe,De]=function(e){const t=o();return[function(){if(null==e.value)return;const{selectionStart:a,selectionEnd:l,value:o}=e.value;if(null==a||null==l)return;const n=o.slice(0,Math.max(0,a)),s=o.slice(Math.max(0,l));t.value={selectionStart:a,selectionEnd:l,value:o,beforeTxt:n,afterTxt:s}},function(){if(null==e.value||null==t.value)return;const{value:a}=e.value,{beforeTxt:l,afterTxt:o,selectionStart:n}=t.value;if(null==l||null==o||null==n)return;let s=a.length;if(a.endsWith(o))s=a.length-o.length;else if(a.startsWith(l))s=l.length;else{const e=l[n-1],t=a.indexOf(e,n-1);-1!==t&&(s=t+1)}e.value.setSelectionRange(s,s)}]}(ae);k(le,(e=>{if(Le(),!je.value||"both"!==c.resize)return;const t=e[0],{width:a}=t.contentRect;ie.value={right:`calc(100% - ${a+15+6}px)`}}));const Ae=()=>{const{type:t,autosize:a}=c;if(e&&"textarea"===t&&le.value)if(a){const e=G(a)?a.minRows:void 0,t=G(a)?a.maxRows:void 0,l=_e(le.value,e,t);ve.value={overflowY:"hidden",...l},$((()=>{le.value.offsetHeight,ve.value=l}))}else ve.value={minHeight:_e(le.value).minHeight}},Le=(e=>{let t=!1;return()=>{var a;!t&&c.autosize&&(null===(null==(a=le.value)?void 0:a.offsetParent)||(e(),t=!0))}})(Ae),Ke=()=>{const e=me.value,t=c.formatter?c.formatter(Me.value):Me.value;e&&e.value!==t&&(e.value=t)},Ye=async e=>{Oe();let{value:t}=e.target;c.formatter&&(t=c.parser?c.parser(t):t),ne.value||(t!==Me.value?(u(be,t),u("input",t),await $(),Ke(),De()):Ke())},Ue=e=>{u("change",e.target.value)},Ge=e=>{u("compositionstart",e),ne.value=!0},Qe=e=>{var t;u("compositionupdate",e);const a=null==(t=e.target)?void 0:t.value,l=a[a.length-1]||"";ne.value=!Se(l)},Xe=e=>{u("compositionend",e),ne.value&&(ne.value=!1,Ye(e))},Ze=()=>{se.value=!se.value,Je()},Je=async()=>{var e;await $(),null==(e=me.value)||e.focus()},et=e=>{oe.value=!1,u("mouseleave",e)},tt=e=>{oe.value=!0,u("mouseenter",e)},at=e=>{u("keydown",e)},lt=()=>{u(be,""),u("change",""),u("clear"),u("input","")};return s((()=>c.modelValue),(()=>{var e;$((()=>Ae())),c.validateEvent&&(null==(e=null==Q?void 0:Q.validate)||e.call(Q,"change").catch((e=>fe())))})),s(Me,(()=>Ke())),s((()=>c.type),(async()=>{await $(),Ke(),Ae()})),I((()=>{!c.formatter&&c.parser,Ke(),$(Ae)})),r({input:ae,textarea:le,ref:me,textareaStyle:Ee,autosize:B(c,"autosize"),focus:Je,blur:()=>{var e;return null==(e=me.value)?void 0:e.blur()},select:()=>{var e;null==(e=me.value)||e.select()},clear:lt,resizeTextarea:Ae}),(e,t)=>C((_(),T("div",W(P(f),{class:P(v),style:P(Te),role:e.containerRole,onMouseenter:tt,onMouseleave:et}),[E(" input "),"textarea"!==e.type?(_(),T(H,{key:0},[E(" prepend slot "),e.$slots.prepend?(_(),T("div",{key:0,class:F(P(ee).be("group","prepend"))},[M(e.$slots,"prepend")],2)):E("v-if",!0),N("div",{ref_key:"wrapperRef",ref:ge,class:F(P(m))},[E(" prefix slot "),e.$slots.prefix||e.prefixIcon?(_(),T("span",{key:0,class:F(P(ee).e("prefix"))},[N("span",{class:F(P(ee).e("prefix-inner"))},[M(e.$slots,"prefix"),e.prefixIcon?(_(),V(P(q),{key:0,class:F(P(ee).e("icon"))},{default:j((()=>[(_(),V(R(e.prefixIcon)))])),_:1},8,["class"])):E("v-if",!0)],2)],2)):E("v-if",!0),N("input",W({id:P(X),ref_key:"input",ref:ae,class:P(ee).e("inner")},P(g),{minlength:e.minlength,maxlength:e.maxlength,type:e.showPassword?se.value?"text":"password":e.type,disabled:P(J),readonly:e.readonly,autocomplete:e.autocomplete,tabindex:e.tabindex,"aria-label":e.label,placeholder:e.placeholder,style:e.inputStyle,form:e.form,autofocus:e.autofocus,onCompositionstart:Ge,onCompositionupdate:Qe,onCompositionend:Xe,onInput:Ye,onFocus:t[0]||(t[0]=(...e)=>P(he)&&P(he)(...e)),onBlur:t[1]||(t[1]=(...e)=>P(xe)&&P(xe)(...e)),onChange:Ue,onKeydown:at}),null,16,Fe),E(" suffix slot "),P(We)?(_(),T("span",{key:1,class:F(P(ee).e("suffix"))},[N("span",{class:F(P(ee).e("suffix-inner"))},[P(Ne)&&P(Ve)&&P(je)?E("v-if",!0):(_(),T(H,{key:0},[M(e.$slots,"suffix"),e.suffixIcon?(_(),V(P(q),{key:0,class:F(P(ee).e("icon"))},{default:j((()=>[(_(),V(R(e.suffixIcon)))])),_:1},8,["class"])):E("v-if",!0)],64)),P(Ne)?(_(),V(P(q),{key:1,class:F([P(ee).e("icon"),P(ee).e("clear")]),onMousedown:A(P(L),["prevent"]),onClick:lt},{default:j((()=>[D(P(O))])),_:1},8,["class","onMousedown"])):E("v-if",!0),P(Ve)?(_(),V(P(q),{key:2,class:F([P(ee).e("icon"),P(ee).e("password")]),onClick:Ze},{default:j((()=>[(_(),V(R(P(ze))))])),_:1},8,["class"])):E("v-if",!0),P(je)?(_(),T("span",{key:3,class:F(P(ee).e("count"))},[N("span",{class:F(P(ee).e("count-inner"))},K(P(Re))+" / "+K(e.maxlength),3)],2)):E("v-if",!0),P(Be)&&P(Ce)&&P(we)?(_(),V(P(q),{key:4,class:F([P(ee).e("icon"),P(ee).e("validateIcon"),P(ee).is("loading","validating"===P(Be))])},{default:j((()=>[(_(),V(R(P(Ce))))])),_:1},8,["class"])):E("v-if",!0)],2)],2)):E("v-if",!0)],2),E(" append slot "),e.$slots.append?(_(),T("div",{key:1,class:F(P(ee).be("group","append"))},[M(e.$slots,"append")],2)):E("v-if",!0)],64)):(_(),T(H,{key:1},[E(" textarea "),N("textarea",W({id:P(X),ref_key:"textarea",ref:le,class:P(te).e("inner")},P(g),{tabindex:e.tabindex,disabled:P(J),readonly:e.readonly,autocomplete:e.autocomplete,style:P(Ee),"aria-label":e.label,placeholder:e.placeholder,form:e.form,autofocus:e.autofocus,onCompositionstart:Ge,onCompositionupdate:Qe,onCompositionend:Xe,onInput:Ye,onFocus:t[2]||(t[2]=(...e)=>P(he)&&P(he)(...e)),onBlur:t[3]||(t[3]=(...e)=>P(xe)&&P(xe)(...e)),onChange:Ue,onKeydown:at}),null,16,Pe),P(je)?(_(),T("span",{key:0,style:Y(ie.value),class:F(P(ee).e("count"))},K(P(Re))+" / "+K(e.maxlength),7)):E("v-if",!0)],64))],16,He)),[[z,"hidden"!==e.type]])}}),[["__file","input.vue"]])),Ve={key:0,class:"header"},je={class:"title"},Re={src:ge},qe={key:0,class:"header"},We={class:"title"},Oe={src:ge},De=X({__name:"prompt",props:Z({position:{type:String,default:"top"},showHeader:{type:Boolean,default:!1},title:{type:Boolean,default:""},autoSetPosition:{type:Boolean,default:!1},clickOutsideHidden:{type:Boolean,default:!1},closeBtn:{type:Boolean,default:!0},cache:{type:Boolean,default:!1},teleported:{type:Boolean,default:!1},transitionName:{type:String,default:"fade"}},{modelValue:{},modelModifiers:{}}),emits:Z(["on-close"],["update:modelValue"]),setup(e,{emit:t}){const a=e,l=t,n=J(e,"modelValue"),i=o("top"),r="prompt-"+(new Date).getTime()+"-"+ee(1,1e4);let u=0;const c=()=>{a.clickOutsideHidden&&n.value&&(new Date).getTime()-u>100&&(n.value=!1)};let d=null;const p=()=>{d=new IntersectionObserver((e=>{e.forEach((e=>{if(e.intersectionRatio<1){let t=i.value;const{x:a,y:l}=e.intersectionRect,{clientWidth:o,clientHeight:n}=e.target,{clientWidth:s,clientHeight:r}=document.body;t.includes("left")&&a+o>s?t=t.replace("left","right"):t.includes("right")&&a<0&&(t=t.replace("right","left")),t.includes("bottom")&&l+n>r?t=t.replace("bottom","top"):t.includes("top")&&l<0&&(t=t.replace("top","bottom")),i.value=t}f()}))})),$((()=>{const e=document.querySelector(`.${r}`);e&&d.observe(e)}))},f=()=>{d&&(d.disconnect(),d=null)};return s((()=>n.value),(e=>{e?u=(new Date).getTime():l("on-close"),a.autoSetPosition&&(e?p():(f(),setTimeout((()=>{i.value=a.position}),50)))})),I((()=>{p(),i.value=a.position})),te((()=>{f()})),(e,t)=>{const l=ae("svg-inline"),o=ae("click-outside");return _(),V(le,{name:a.transitionName},{default:j((()=>[a.cache?C((_(),T("div",{key:0,class:F(`prompt ${r} ${i.value}`)},[a.showHeader?(_(),T("div",Ve,[N("span",je,K(a.title),1)])):E("",!0),a.closeBtn?(_(),T("button",{key:1,class:"close",onClick:t[0]||(t[0]=e=>n.value=!1)},[C(N("img",Re,null,512),[[l]])])):E("",!0),M(e.$slots,"default",{},void 0,!0)],2)),[[z,n.value],[o,c]]):(_(),T(H,{key:1},[n.value?C((_(),T("div",{key:0,class:F(`prompt ${r} ${i.value}`)},[a.showHeader?(_(),T("div",qe,[N("span",We,K(a.title),1)])):E("",!0),a.closeBtn?(_(),T("button",{key:1,class:"close",onClick:t[1]||(t[1]=e=>n.value=!1)},[C(N("img",Oe,null,512),[[l]])])):E("",!0),M(e.$slots,"default",{},void 0,!0)],2)),[[o,c]]):E("",!0)],64))])),_:3},8,["name"])}}},[["__scopeId","data-v-75769323"]]),Ae=X({__name:"scroll",props:{},emits:["on-scroll","on-scroll-top","on-scroll-bottom","on-refresh"],setup(e,{expose:t,emit:a}){const l=(new Date).getTime(),s=ee(1,1e3),i=`scroll-wrapper-${l}-${s}`,r=`scroll-view-${l}-${s}`,u=n(null),c=n(null),d=o(null),p=a;let f=0,v=0,m=0,g=0,y=0,h=0;const b=e=>{f=e.scrollLeft,v=e.scrollTop,h=c.value.clientHeight,g=u.value.clientHeight,v<=0?p("on-scroll-top"):v>=h-g-20&&p("on-scroll-bottom"),p("on-scroll",f,v)};let x=null,w=0,S=0,k=0,B=0,C=-1,z=-1;const T=(e,t,a=0)=>{if(z===e&&C===t)return!1;C=t,z=e,a?(x&&clearInterval(x),k=Math.ceil(a/16),B>=k&&(B=0),w=Math.ceil((e-f)/k),S=Math.ceil((t-v)/k),x=setInterval((()=>{if(B>=k)return clearInterval(x),x=null,k=0,B=0,z=-1,C=-1,!1;B++;let a=f+w,l=v+S;a=a>e?e:a,l=l>t?t:l,d.value.scrollTo(a,l)}),16)):d.value.scrollTo(e,t)};let E=null,H=null;return t({wrapEl:u,viewEl:c,getScrollData:()=>({wrapEl:u,viewEl:c,currentX:f,currentY:v,wrapWidth:m,wrapHeight:g,viewWidth:y,viewHeight:h}),stopScroll:()=>{x&&(clearInterval(x),x=null)},scrollTo:T,scrollToTop:(e=0)=>{T(f,0,e)},scrollToBottom:(e=0)=>{var t,a;if(h=(null==(t=document.querySelector(`.${r}`))?void 0:t.clientHeight)||0,g=(null==(a=document.querySelector(`.${i}`))?void 0:a.clientHeight)||0,v>=h-g)return!1;T(f,h-g,e)},scrollToLeft:(e=0)=>{T(0,f,e)},scrollToRight:(e=0)=>{var t,a;if(y=(null==(t=document.querySelector(`.${r}`))?void 0:t.clientWidth)||0,m=(null==(a=document.querySelector(`.${i}`))?void 0:a.clientWidth)||0,f>=y-m)return!1;T(y-m,v,e)}}),I((()=>{u.value=document.querySelector(`.${i}`),c.value=document.querySelector(`.${r}`),(()=>{const e=document.querySelector(`.${i}`),t=document.querySelector(`.${r}`);function a(){if(!e)return!1;m=e.clientWidth,g=e.clientHeight,y=t.clientWidth,h=t.clientHeight}if(t){E=new MutationObserver((function(e,t){for(let l of e)"childList"===l.type&&(a(),p("on-refresh"))}));const l={childList:!0,attributes:!0};E.observe(t,l),H=new ResizeObserver((e=>{$((()=>{d.value.update(),a()}))})),H.observe(e)}a()})()})),te((()=>{E&&E.disconnect(),H&&H.disconnect()})),(e,t)=>{const a=ve;return _(),V(a,{ref_key:"refElScroll",ref:d,"wrap-class":`scroll-wrap ${i}`,"view-class":`scroll-view ${r}`,noresize:!0,always:!1,onScroll:b},{default:j((()=>[M(e.$slots,"default",{},void 0,!0)])),_:3},8,["wrap-class","view-class"])}}},[["__scopeId","data-v-661c10fd"]]),Le={key:0,class:"file-thumb"},Ke=["src"],Ye={key:1,class:"file-index"},Ue={class:"file-info"},Ge=["title"],Qe={class:"file-name"},Xe={key:0,class:"upload-progress"},Ze={class:"file-size"},Je={src:"/assets/icon-more-32-ImGHW91Y.svg"},et=X({__name:"file-item",props:{id:{type:String,default:""},loading:{type:Boolean,default:!1},showIndex:{type:Boolean,default:!1},logo:{type:String,default:"/images/file/pdf-logo-list.png"},showName:{type:String,default:""},progress:{type:Number,default:0},size:{type:Number,default:0},totalPage:{type:Number,default:0},showControl:{type:Boolean,default:!1}},emits:["on-open","on-deleted"],setup(e,{emit:t}){const a=e,{$t:n}=l().proxy,i=t,r=o(!1),u=()=>{const e=r.value;ye.fileListMoreToolsIndex++,setTimeout((()=>{r.value=!e}),10)};s((()=>ye.fileListMoreToolsIndex),(e=>{r.value=!1}));const c=()=>{i("on-open",a.id)},d=()=>{if(he.chatFileId===a.id)return ie.error(n("This file cannot be deleted because it is currently open.")),u(),!1;var e;(e={file_ids:[a.id]},oe.request({url:"/v1/drive/recycle",data:e,method:"post"})).then((e=>{i("on-deleted",a.id)}))};return(e,t)=>{const l=me,o=ae("svg-inline");return _(),T("div",{class:F(["file-item",{loading:a.loading,"control-active":r.value}])},[a.logo?C((_(),T("div",Le,[N("img",{class:"file-logo",src:a.logo},null,8,Ke)])),[[l,a.loading]]):E("",!0),a.showIndex?(_(),T("div",Ye)):E("",!0),N("div",Ue,[N("p",{class:"file-name-wrapper",title:a.showName},[N("span",Qe,K(a.showName),1),a.loading?(_(),T("span",Xe,K(a.progress)+"%",1)):E("",!0)],8,Ge),N("p",Ze,[ne("PDF · "+K(P(se)(a.size)),1),a.totalPage?(_(),T(H,{key:0},[ne(" · "+K(a.totalPage)+" "+K(a.totalPage>1?P(n)("pages"):P(n)("page")),1)],64)):E("",!0)])]),a.showControl?(_(),T("button",{key:2,class:F(["file-control",{active:r.value}]),onClick:A(u,["stop"])},[C(N("img",Je,null,512),[[o]])],2)):E("",!0),a.showControl?(_(),V(De,{key:3,position:"bottom",class:"more-control",modelValue:r.value,"onUpdate:modelValue":t[0]||(t[0]=e=>r.value=e),"auto-set-position":!0,"click-outside-hidden":!0,"close-btn":!1},{default:j((()=>[N("ul",null,[N("li",{onClick:A(c,["stop"])},K(P(n)("Ask PDF")),1),N("li",{onClick:A(d,["stop"]),class:"red"},K(P(n)("Delete")),1)])])),_:1},8,["modelValue"])):E("",!0)],2)}}},[["__scopeId","data-v-25ae710a"]]);export{xe as C,Ne as E,et as F,we as I,De as P,Ae as S,be as U,Se as i,Ie as u};