iking-web-ui-pro 0.1.54 → 0.1.55

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.
@@ -2795,7 +2795,7 @@ const X3 = /* @__PURE__ */ ft(J3, [["__scopeId", "data-v-b024b1a1"]]), Z3 = ["on
2795
2795
  default: !1
2796
2796
  },
2797
2797
  // 是否需要onlyoffice预览
2798
- isOnlyOfficepPreview: {
2798
+ isOnlyOfficePreview: {
2799
2799
  type: Boolean,
2800
2800
  default: !1
2801
2801
  },
@@ -2842,7 +2842,7 @@ const X3 = /* @__PURE__ */ ft(J3, [["__scopeId", "data-v-b024b1a1"]]), Z3 = ["on
2842
2842
  t.loadUrl,
2843
2843
  _[n.value.url] || ((R = (E = _ == null ? void 0 : _.response) == null ? void 0 : E.data) == null ? void 0 : R.id)
2844
2844
  )
2845
- }, t.isOnlyOfficepPreview && t.onlyOfficeAccept.includes(_.attachmentSuffix)) {
2845
+ }, t.isOnlyOfficePreview && t.onlyOfficeAccept.includes(_.attachmentSuffix)) {
2846
2846
  a.value = !0, l.value = {
2847
2847
  documentType: "word",
2848
2848
  document: {
@@ -14,4 +14,4 @@
14
14
  `),o]);else{const i=[`[Vue warn]: ${e}`,...t];o.length&&i.push(`
15
15
  `,...jo(o)),console.warn(...i)}ve()}function Ho(){let e=W[W.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const s=e.component&&e.component.parent;e=s&&s.vnode}return t}function jo(e){const t=[];return e.forEach((n,s)=>{t.push(...s===0?[]:[`
16
16
  `],...Lo(n))}),t}function Lo({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",s=e.component?e.component.parent==null:!1,o=` at <${dn(e.component,e.type,s)}`,i=">"+n;return e.props?[o,...qo(e.props),i]:[o+i]}function qo(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(s=>{t.push(...Ht(s,e[s]))}),n.length>3&&t.push(" ..."),t}function Ht(e,t,n){return R(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:z(t)?(t=Ht(e,_(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):V(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=_(t),n?t:[`${e}=`,t])}const jt={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."};function G(e,t,n,s){try{return s?e(...s):e()}catch(o){nt(o,t,n)}}function ke(e,t,n,s){if(V(e)){const o=G(e,t,n,s);return o&&eo(o)&&o.catch(i=>{nt(i,t,n)}),o}if(g(e)){const o=[];for(let i=0;i<e.length;i++)o.push(ke(e[i],t,n,s));return o}else process.env.NODE_ENV!=="production"&&v(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`)}function nt(e,t,n,s=!0){const o=t?t.vnode:null;if(t){let i=t.parent;const l=t.proxy,a=process.env.NODE_ENV!=="production"?jt[n]:`https://vuejs.org/error-reference/#runtime-${n}`;for(;i;){const c=i.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](e,l,a)===!1)return}i=i.parent}const d=t.appContext.config.errorHandler;if(d){we(),G(d,null,10,[e,l,a]),ve();return}}Uo(e,n,o,s)}function Uo(e,t,n,s=!0){if(process.env.NODE_ENV!=="production"){const o=jt[t];if(n&&Po(n),v(`Unhandled error${o?` during execution of ${o}`:""}`),n&&Ao(),s)throw e;console.error(e)}else console.error(e)}let Oe=!1,ot=!1;const D=[];let L=0;const Z=[];let T=null,q=0;const Lt=Promise.resolve();let st=null;const Ko=100;function Wo(e){const t=st||Lt;return e?t.then(this?e.bind(this):e):t}function Go(e){let t=L+1,n=D.length;for(;t<n;){const s=t+n>>>1,o=D[s],i=de(o);i<e||i===e&&o.pre?t=s+1:n=s}return t}function rt(e){(!D.length||!D.includes(e,Oe&&e.allowRecurse?L+1:L))&&(e.id==null?D.push(e):D.splice(Go(e.id),0,e),qt())}function qt(){!Oe&&!ot&&(ot=!0,st=Lt.then(Kt))}function Ut(e){g(e)?Z.push(...e):(!T||!T.includes(e,e.allowRecurse?q+1:q))&&Z.push(e),qt()}function Yo(e){if(Z.length){const t=[...new Set(Z)].sort((n,s)=>de(n)-de(s));if(Z.length=0,T){T.push(...t);return}for(T=t,process.env.NODE_ENV!=="production"&&(e=e||new Map),q=0;q<T.length;q++)process.env.NODE_ENV!=="production"&&Wt(e,T[q])||T[q]();T=null,q=0}}const de=e=>e.id==null?1/0:e.id,Jo=(e,t)=>{const n=de(e)-de(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Kt(e){ot=!1,Oe=!0,process.env.NODE_ENV!=="production"&&(e=e||new Map),D.sort(Jo);const t=process.env.NODE_ENV!=="production"?n=>Wt(e,n):Y;try{for(L=0;L<D.length;L++){const n=D[L];if(n&&n.active!==!1){if(process.env.NODE_ENV!=="production"&&t(n))continue;G(n,null,14)}}}finally{L=0,D.length=0,Yo(e),Oe=!1,st=null,(D.length||Z.length)&&Kt(e)}}function Wt(e,t){if(!e.has(t))e.set(t,1);else{const n=e.get(t);if(n>Ko){const s=t.ownerInstance,o=s&&an(s.type);return nt(`Maximum recursive updates exceeded${o?` in component <${o}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}else e.set(t,n+1)}}const ue=new Set;process.env.NODE_ENV!=="production"&&(bt().__VUE_HMR_RUNTIME__={createRecord:it(Xo),rerender:it(Zo),reload:it(Qo)});const Fe=new Map;function Xo(e,t){return Fe.has(e)?!1:(Fe.set(e,{initialDef:fe(t),instances:new Set}),!0)}function fe(e){return un(e)?e.__vccOpts:e}function Zo(e,t){const n=Fe.get(e);n&&(n.initialDef.render=t,[...n.instances].forEach(s=>{t&&(s.render=t,fe(s.type).render=t),s.renderCache=[],s.effect.dirty=!0,s.update()}))}function Qo(e,t){const n=Fe.get(e);if(!n)return;t=fe(t),Gt(n.initialDef,t);const s=[...n.instances];for(const o of s){const i=fe(o.type);ue.has(i)||(i!==n.initialDef&&Gt(i,t),ue.add(i)),o.appContext.propsCache.delete(o.type),o.appContext.emitsCache.delete(o.type),o.appContext.optionsCache.delete(o.type),o.ceReload?(ue.add(i),o.ceReload(t.styles),ue.delete(i)):o.parent?(o.parent.effect.dirty=!0,rt(o.parent.update)):o.appContext.reload?o.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}Ut(()=>{for(const o of s)ue.delete(fe(o.type))})}function Gt(e,t){B(e,t);for(const n in e)n!=="__file"&&!(n in t)&&delete e[n]}function it(e){return(t,n)=>{try{return e(t,n)}catch(s){console.error(s),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let Q,Be=[];function Yt(e,t){var n,s;Q=e,Q?(Q.enabled=!0,Be.forEach(({event:o,args:i})=>Q.emit(o,...i)),Be=[]):typeof window<"u"&&window.HTMLElement&&!((s=(n=window.navigator)==null?void 0:n.userAgent)!=null&&s.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(i=>{Yt(i,t)}),setTimeout(()=>{Q||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Be=[])},3e3)):Be=[]}let P=null,es=null;function Wr(){}const ts=Symbol.for("v-ndc"),ns=e=>e.__isSuspense;function os(e,t){t&&t.pendingBranch?g(e)?t.effects.push(...e):t.effects.push(e):Ut(e)}const ss=Symbol.for("v-scx"),rs=()=>{{const e=ms(ss);return e||process.env.NODE_ENV!=="production"&&v("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}},Re={};function is(e,t,{immediate:n,deep:s,flush:o,once:i,onTrack:l,onTrigger:a}=A){if(t&&i){const p=t;t=(...oe)=>{p(...oe),C()}}process.env.NODE_ENV!=="production"&&s!==void 0&&typeof s=="number"&&v('watch() "deep" option with number value will be used as watch depth in future versions. Please use a boolean instead to avoid potential breakage.'),process.env.NODE_ENV!=="production"&&!t&&(n!==void 0&&v('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),s!==void 0&&v('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),i!==void 0&&v('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const d=p=>{v("Invalid watch source: ",p,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},c=$e,u=p=>s===!0?p:ee(p,s===!1?1:void 0);let f,w=!1,b=!1;if(z(e)?(f=()=>e.value,w=Ze(e)):ae(e)?(f=()=>u(e),w=!0):g(e)?(b=!0,w=e.some(p=>ae(p)||Ze(p)),f=()=>e.map(p=>{if(z(p))return p.value;if(ae(p))return u(p);if(V(p))return G(p,c,2);process.env.NODE_ENV!=="production"&&d(p)})):V(e)?t?f=()=>G(e,c,2):f=()=>(m&&m(),ke(e,c,3,[h])):(f=Y,process.env.NODE_ENV!=="production"&&d(e)),t&&s){const p=f;f=()=>ee(p())}let m,h=p=>{m=x.onStop=()=>{G(p,c,4),m=x.onStop=void 0}},y;if(cn)if(h=Y,t?n&&ke(t,c,3,[f(),b?[]:void 0,h]):f(),o==="sync"){const p=rs();y=p.__watcherHandles||(p.__watcherHandles=[])}else return Y;let O=b?new Array(e.length).fill(Re):Re;const N=()=>{if(!(!x.active||!x.dirty))if(t){const p=x.run();(s||w||(b?p.some((oe,pt)=>X(oe,O[pt])):X(p,O)))&&(m&&m(),ke(t,c,3,[p,O===Re?void 0:b&&O[0]===Re?[]:O,h]),O=p)}else x.run()};N.allowRecurse=!!t;let M;o==="sync"?M=N:o==="post"?M=()=>nn(N,c&&c.suspense):(N.pre=!0,c&&(N.id=c.uid),M=()=>rt(N));const x=new fo(f,Y,M),C=()=>{x.stop()};return process.env.NODE_ENV!=="production"&&(x.onTrack=l,x.onTrigger=a),t?n?N():O=x.run():o==="post"?nn(x.run.bind(x),c&&c.suspense):x.run(),y&&y.push(C),C}function ls(e,t,n){const s=this.proxy,o=R(e)?e.includes(".")?cs(s,e):()=>s[e]:e.bind(s,s);let i;V(t)?i=t:(i=t.handler,n=t);const l=xs(this),a=is(o,i.bind(s),n);return l(),a}function cs(e,t){const n=t.split(".");return()=>{let s=e;for(let o=0;o<n.length&&s;o++)s=s[n[o]];return s}}function ee(e,t=1/0,n){if(t<=0||!F(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,z(e))ee(e.value,t,n);else if(g(e))for(let s=0;s<e.length;s++)ee(e[s],t,n);else if(Qn(e)||J(e))e.forEach(s=>{ee(s,t,n)});else if(no(e))for(const s in e)ee(e[s],t,n);return e}/*! #__NO_SIDE_EFFECTS__ */function as(e,t){return V(e)?(()=>B({name:e.name},t,{setup:e}))():e}const lt=e=>e?Cs(e)?ks(e)||e.proxy:lt(e.parent):null,pe=B(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>process.env.NODE_ENV!=="production"?xe(e.props):e.props,$attrs:e=>process.env.NODE_ENV!=="production"?xe(e.attrs):e.attrs,$slots:e=>process.env.NODE_ENV!=="production"?xe(e.slots):e.slots,$refs:e=>process.env.NODE_ENV!=="production"?xe(e.refs):e.refs,$parent:e=>lt(e.parent),$root:e=>lt(e.root),$emit:e=>e.emit,$options:e=>fs(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,rt(e.update)}),$nextTick:e=>e.n||(e.n=Wo.bind(e.proxy)),$watch:e=>ls.bind(e)}),ds=e=>e==="_"||e==="$",ct=(e,t)=>e!==A&&!e.__isScriptSetup&&E(e,t),us={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:o,props:i,accessCache:l,type:a,appContext:d}=e;if(process.env.NODE_ENV!=="production"&&t==="__isVue")return!0;let c;if(t[0]!=="$"){const b=l[t];if(b!==void 0)switch(b){case 1:return s[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(ct(s,t))return l[t]=1,s[t];if(o!==A&&E(o,t))return l[t]=2,o[t];if((c=e.propsOptions[0])&&E(c,t))return l[t]=3,i[t];if(n!==A&&E(n,t))return l[t]=4,n[t];l[t]=0}}const u=pe[t];let f,w;if(u)return t==="$attrs"?(S(e.attrs,"get",""),process.env.NODE_ENV!=="production"&&void 0):process.env.NODE_ENV!=="production"&&t==="$slots"&&S(e,"get",t),u(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(n!==A&&E(n,t))return l[t]=4,n[t];if(w=d.config.globalProperties,E(w,t))return w[t];process.env.NODE_ENV!=="production"&&P&&(!R(t)||t.indexOf("__v")!==0)&&(o!==A&&ds(t[0])&&E(o,t)?v(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===P&&v(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:e},t,n){const{data:s,setupState:o,ctx:i}=e;return ct(o,t)?(o[t]=n,!0):process.env.NODE_ENV!=="production"&&o.__isScriptSetup&&E(o,t)?(v(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):s!==A&&E(s,t)?(s[t]=n,!0):E(e.props,t)?(process.env.NODE_ENV!=="production"&&v(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in e?(process.env.NODE_ENV!=="production"&&v(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):(process.env.NODE_ENV!=="production"&&t in e.appContext.config.globalProperties?Object.defineProperty(i,t,{enumerable:!0,configurable:!0,value:n}):i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:o,propsOptions:i}},l){let a;return!!n[l]||e!==A&&E(e,l)||ct(t,l)||(a=i[0])&&E(a,l)||E(s,l)||E(pe,l)||E(o.config.globalProperties,l)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:E(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};process.env.NODE_ENV!=="production"&&(us.ownKeys=e=>(v("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e)));function Jt(e){return g(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function fs(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:l}}=e.appContext,a=i.get(t);let d;return a?d=a:!o.length&&!n&&!s?d=t:(d={},o.length&&o.forEach(c=>ze(d,c,l,!0)),ze(d,t,l)),F(t)&&i.set(t,d),d}function ze(e,t,n,s=!1){const{mixins:o,extends:i}=t;i&&ze(e,i,n,!0),o&&o.forEach(l=>ze(e,l,n,!0));for(const l in t)if(s&&l==="expose")process.env.NODE_ENV!=="production"&&v('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const a=ps[l]||n&&n[l];e[l]=a?a(e[l],t[l]):t[l]}return e}const ps={data:Xt,props:Qt,emits:Qt,methods:he,computed:he,beforeCreate:k,created:k,beforeMount:k,mounted:k,beforeUpdate:k,updated:k,beforeDestroy:k,beforeUnmount:k,destroyed:k,unmounted:k,activated:k,deactivated:k,errorCaptured:k,serverPrefetch:k,components:he,directives:he,watch:_s,provide:Xt,inject:hs};function Xt(e,t){return t?e?function(){return B(V(e)?e.call(this,this):e,V(t)?t.call(this,this):t)}:t:e}function hs(e,t){return he(Zt(e),Zt(t))}function Zt(e){if(g(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function k(e,t){return e?[...new Set([].concat(e,t))]:t}function he(e,t){return e?B(Object.create(null),e,t):t}function Qt(e,t){return e?g(e)&&g(t)?[...new Set([...e,...t])]:B(Object.create(null),Jt(e),Jt(t??{})):t}function _s(e,t){if(!e)return t;if(!t)return e;const n=B(Object.create(null),e);for(const s in t)n[s]=k(e[s],t[s]);return n}let en=null;function ms(e,t,n=!1){const s=$e||P;if(s||en){const o=s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:en._context.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&V(t)?t.call(s&&s.proxy):t;process.env.NODE_ENV!=="production"&&v(`injection "${String(e)}" not found.`)}else process.env.NODE_ENV!=="production"&&v("inject() can only be used inside setup() or functional components.")}const gs={},tn=e=>Object.getPrototypeOf(e)===gs,nn=os,ws=e=>e.__isTeleport,on=Symbol.for("v-fgt"),vs=Symbol.for("v-txt"),Es=Symbol.for("v-cmt");let te=null;function at(e){return e?e.__v_isVNode===!0:!1}const ys=(...e)=>rn(...e),sn=({key:e})=>e??null,De=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?R(e)||z(e)||V(e)?{i:P,r:e,k:t,f:!!n}:e:null);function bs(e,t=null,n=null,s=0,o=null,i=e===on?0:1,l=!1,a=!1){const d={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&sn(t),ref:t&&De(t),scopeId:es,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:s,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:P};return a?(dt(d,n),i&128&&e.normalize(d)):n&&(d.shapeFlag|=R(n)?8:16),process.env.NODE_ENV!=="production"&&d.key!==d.key&&v("VNode created with invalid key (NaN). VNode type:",d.type),!l&&te&&(d.patchFlag>0||i&6)&&d.patchFlag!==32&&te.push(d),d}const _e=process.env.NODE_ENV!=="production"?ys:rn;function rn(e,t=null,n=null,s=0,o=null,i=!1){if((!e||e===ts)&&(process.env.NODE_ENV!=="production"&&!e&&v(`Invalid vnode type when creating vnode: ${e}.`),e=Es),at(e)){const a=Ie(e,t,!0);return n&&dt(a,n),!i&&te&&(a.shapeFlag&6?te[te.indexOf(e)]=a:te.push(a)),a.patchFlag|=-2,a}if(un(e)&&(e=e.__vccOpts),t){t=Vs(t);let{class:a,style:d}=t;a&&!R(a)&&(t.class=je(a)),F(d)&&(Qe(d)&&!g(d)&&(d=B({},d)),t.style=He(d))}const l=R(e)?1:ns(e)?128:ws(e)?64:F(e)?4:V(e)?2:0;return process.env.NODE_ENV!=="production"&&l&4&&Qe(e)&&(e=_(e),v("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
17
- Component that was made reactive: `,e)),bs(e,t,n,s,o,l,i,!0)}function Vs(e){return e?Qe(e)||tn(e)?B({},e):e:null}function Ie(e,t,n=!1,s=!1){const{props:o,ref:i,patchFlag:l,children:a,transition:d}=e,c=t?Ns(o||{},t):o,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&sn(c),ref:t&&t.ref?n&&i?g(i)?i.concat(De(t)):[i,De(t)]:De(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:process.env.NODE_ENV!=="production"&&l===-1&&g(a)?a.map(ln):a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==on?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:d,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ie(e.ssContent),ssFallback:e.ssFallback&&Ie(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return d&&s&&(u.transition=d.clone(u)),u}function ln(e){const t=Ie(e);return g(e.children)&&(t.children=e.children.map(ln)),t}function Ss(e=" ",t=0){return _e(vs,null,e,t)}function dt(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(g(t))n=16;else if(typeof t=="object")if(s&65){const o=t.default;o&&(o._c&&(o._d=!1),dt(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!tn(t)?t._ctx=P:o===3&&P&&(P.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else V(t)?(t={default:t,_ctx:P},n=32):(t=String(t),s&64?(n=16,t=[Ss(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ns(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const o in s)if(o==="class")t.class!==s.class&&(t.class=je([t.class,s.class]));else if(o==="style")t.style=He([t.style,s.style]);else if(Xn(o)){const i=t[o],l=s[o];l&&i!==l&&!(g(i)&&i.includes(l))&&(t[o]=i?[].concat(i,l):l)}else o!==""&&(t[o]=s[o])}return t}let $e=null,ut;{const e=bt(),t=(n,s)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(s),i=>{o.length>1?o.forEach(l=>l(i)):o[0](i)}};ut=t("__VUE_INSTANCE_SETTERS__",n=>$e=n),t("__VUE_SSR_SETTERS__",n=>cn=n)}const xs=e=>{const t=$e;return ut(e),e.scope.on(),()=>{e.scope.off(),ut(t)}};function Cs(e){return e.vnode.shapeFlag&4}let cn=!1;process.env.NODE_ENV;function ks(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(To(Io(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in pe)return pe[n](e)},has(t,n){return n in t||n in pe}}))}const Os=/(?:^|[-_])(\w)/g,Fs=e=>e.replace(Os,t=>t.toUpperCase()).replace(/[-_]/g,"");function an(e,t=!0){return V(e)?e.displayName||e.name:e.name||t&&e.__name}function dn(e,t,n=!1){let s=an(t);if(!s&&t.__file){const o=t.__file.match(/([^/\\]+)\.\w+$/);o&&(s=o[1])}if(!s&&e&&e.parent){const o=i=>{for(const l in i)if(i[l]===t)return l};s=o(e.components||e.parent.type.components)||o(e.appContext.components)}return s?Fs(s):n?"App":"Anonymous"}function un(e){return V(e)&&"__vccOpts"in e}function Bs(e,t,n){const s=arguments.length;return s===2?F(t)&&!g(t)?at(t)?_e(e,null,[t]):_e(e,t):_e(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&at(n)&&(n=[n]),_e(e,t,n))}process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV;const Rs={class:"base-header"},zs=r.defineComponent({__name:"IkBaseDialog",props:r.mergeModels({title:{default:""},cancelText:{default:"取消"},confirmText:{default:"确认"},noHeader:{type:Boolean},noFooter:{type:Boolean},showCloseBg:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1}},{modelValue:{type:Boolean,default:!1,noHeader:!1,noFooter:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=r.useModel(e,"modelValue"),s=r.ref(t.fullscreen),o=()=>{s.value=!s.value},i=as({setup(){return console.log("props.showCloseBg",t.showCloseBg),()=>Bs(Yn,{showBg:t.showCloseBg,fullscreen:t.fullscreen})}});return(l,a)=>{const d=r.resolveComponent("IkSvgIcon"),c=r.resolveComponent("el-dialog");return r.openBlock(),r.createBlock(c,r.mergeProps({modelValue:n.value,"onUpdate:modelValue":a[0]||(a[0]=u=>n.value=u)},l.$attrs,{"close-icon":r.unref(i),class:`ik-base-dialog ${l.noHeader?"no-header":""} ${l.noFooter?"no-footer":""}`,fullscreen:s.value,"modal-class":"baseDialog"}),r.createSlots({icon:r.withCtx(()=>[r.renderSlot(l.$slots,"title",{},()=>[r.createTextVNode(r.toDisplayString(l.title),1)])]),header:r.withCtx(()=>[r.createElementVNode("div",Rs,[r.renderSlot(l.$slots,"header",{},()=>[r.createTextVNode(r.toDisplayString(l.title),1)])]),l.$attrs.showClose?(r.openBlock(),r.createBlock(d,{key:0,onClick:o,name:s.value?"iksvg_tuichuquanping":"iksvg_quanping-daohang",class:"absolute! top-[18px] right-[50px] icon-dialog-full",title:s.value?"退出全屏":"全屏"},null,8,["name","title"])):r.createCommentVNode("v-if",!0)]),default:r.withCtx(()=>[r.renderSlot(l.$slots,"default")]),_:2},[l.$slots.footer?{name:"footer",fn:r.withCtx(()=>[r.renderSlot(l.$slots,"footer")]),key:"0"}:void 0]),1040,["modelValue","close-icon","class","fullscreen"])}}}),Gr="";function Ds(e,t,n,s){function o(i){return i instanceof n?i:new n(function(l){l(i)})}return new(n||(n=Promise))(function(i,l){function a(u){try{c(s.next(u))}catch(f){l(f)}}function d(u){try{c(s.throw(u))}catch(f){l(f)}}function c(u){u.done?i(u.value):o(u.value).then(a,d)}c((s=s.apply(e,t||[])).next())})}function Is(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},s,o,i,l;return l={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function a(c){return function(u){return d([c,u])}}function d(c){if(s)throw new TypeError("Generator is already executing.");for(;l&&(l=0,c[0]&&(n=0)),n;)try{if(s=1,o&&(i=c[0]&2?o.return:c[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,c[1])).done)return i;switch(o=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,o=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){n.label=c[1];break}if(c[0]===6&&n.label<i[1]){n.label=i[1],i=c;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(c);break}i[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(u){c=[6,u],o=0}finally{s=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}typeof SuppressedError=="function"&&SuppressedError;var $s=function(e,t){return Ds(void 0,void 0,void 0,function(){return Is(this,function(n){return[2,new Promise(function(s,o){try{if(window.DocsAPI)return s(null);var i=document.getElementById(t);if(i)var l=setInterval(function(){var d=i.getAttribute("loading");if(!d){if(clearInterval(l),window.DocsAPI)return s(null);var c=fn(t,e,s,o);i.remove(),document.body.appendChild(c)}},500);else{var a=fn(t,e,s,o);document.body.appendChild(a)}}catch(d){console.error(d)}})]})})},fn=function(e,t,n,s){var o=document.createElement("script");return o.id=e,o.type="text/javascript",o.src=t,o.async=!0,o.onload=function(){o.removeAttribute("loading"),n(null)},o.onerror=function(i){o.removeAttribute("loading"),s(i)},o.setAttribute("loading",""),o},ft=r.defineComponent({name:"DocumentEditor",props:{id:{type:String,required:!0},documentServerUrl:{type:String,required:!0},config:{type:Object,required:!0},document_fileType:String,document_title:String,documentType:String,editorConfig_lang:String,height:String,type:String,width:String,onLoadComponentError:Function,events_onAppReady:Function,events_onDocumentStateChange:Function,events_onMetaChange:Function,events_onDocumentReady:Function,events_onInfo:Function,events_onWarning:Function,events_onError:Function,events_onRequestSharingSettings:Function,events_onRequestRename:Function,events_onMakeActionLink:Function,events_onRequestInsertImage:Function,events_onRequestSaveAs:Function,events_onRequestMailMergeRecipients:Function,events_onRequestCompareFile:Function,events_onRequestEditRights:Function,events_onRequestHistory:Function,events_onRequestHistoryClose:Function,events_onRequestHistoryData:Function,events_onRequestRestore:Function,events_onRequestSelectSpreadsheet:Function,events_onRequestSelectDocument:Function},mounted:function(){var e=this,t=this.documentServerUrl;t.endsWith("/")||(t+="/");var n="".concat(t,"web-apps/apps/api/documents/api.js");$s(n,"onlyoffice-api-script").then(function(){return e.onLoad()}).catch(function(){e.onError(-2)})},unmounted:function(){var e,t=this.id||"";!((e=window==null?void 0:window.DocEditor)===null||e===void 0)&&e.instances[t]&&(window.DocEditor.instances[t].destroyEditor(),window.DocEditor.instances[t]=void 0)},watch:{config:{handler:function(e,t){this.onChangeProps()},deep:!0},document_fileType:function(e,t){this.onChangeProps()},document_title:function(e,t){this.onChangeProps()},documentType:function(e,t){this.onChangeProps()},editorConfig_lang:function(e,t){this.onChangeProps()},height:function(e,t){this.onChangeProps()},type:function(e,t){this.onChangeProps()},width:function(e,t){this.onChangeProps()}},methods:{onLoad:function(){var e,t;try{var n=this.id||"";if(window.DocsAPI||this.onError(-3),!((e=window==null?void 0:window.DocEditor)===null||e===void 0)&&e.instances[n]){console.log("Skip loading. Instance already exists",n);return}!((t=window==null?void 0:window.DocEditor)===null||t===void 0)&&t.instances||(window.DocEditor={instances:{}});var s=Object.assign({document:{fileType:this.document_fileType,title:this.document_title},documentType:this.documentType,editorConfig:{lang:this.editorConfig_lang},events:{onAppReady:this.onAppReady,onDocumentStateChange:this.events_onDocumentStateChange,onMetaChange:this.events_onMetaChange,onDocumentReady:this.events_onDocumentReady,onInfo:this.events_onInfo,onWarning:this.events_onWarning,onError:this.events_onError,onRequestSharingSettings:this.events_onRequestSharingSettings,onRequestRename:this.events_onRequestRename,onMakeActionLink:this.events_onMakeActionLink,onRequestInsertImage:this.events_onRequestInsertImage,onRequestSaveAs:this.events_onRequestSaveAs,onRequestMailMergeRecipients:this.events_onRequestMailMergeRecipients,onRequestCompareFile:this.events_onRequestCompareFile,onRequestEditRights:this.events_onRequestEditRights,onRequestHistory:this.events_onRequestHistory,onRequestHistoryClose:this.events_onRequestHistoryClose,onRequestHistoryData:this.events_onRequestHistoryData,onRequestRestore:this.events_onRequestRestore,onRequestSelectSpreadsheet:this.events_onRequestSelectSpreadsheet,onRequestSelectDocument:this.events_onRequestSelectDocument},height:this.height,type:this.type,width:this.width},this.config||{}),o=window.DocsAPI.DocEditor(n,s);window.DocEditor.instances[n]=o}catch(i){console.error(i),this.onError(-1)}},onError:function(e){var t;switch(e){case-2:t="Error load DocsAPI from "+this.documentServerUrl;break;case-3:t="DocsAPI is not defined";break;default:t="Unknown error loading component",e=-1}typeof this.onLoadComponentError>"u"?console.error(t):this.onLoadComponentError(e,t)},onAppReady:function(){var e=this.id||"";this.events_onAppReady(window.DocEditor.instances[e])},onChangeProps:function(){var e,t=this.id||"";!((e=window==null?void 0:window.DocEditor)===null||e===void 0)&&e.instances[t]&&(window.DocEditor.instances[t].destroyEditor(),window.DocEditor.instances[t]=void 0,console.log("Important props have been changed. Load new Editor."),this.onLoad())}}});const Ms=["id"];function Ts(e,t,n,s,o,i){return r.openBlock(),r.createElementBlock("div",{id:e.id},null,8,Ms)}ft.render=Ts,ft.__file="src/components/DocumentEditor.vue";const Ps=r.defineComponent({__name:"IkOnlyOffice",props:{documentServerUrl:{type:String,default:""},mode:{type:String,default:""},configOptions:{type:Object,default:()=>{}},officeHeight:{type:String,default:"100%"},token:{type:String,default:""}},setup(e){var o,i,l,a;const t=e,n=r.ref({width:"100%",height:"100%",document:(o=t.configOptions)==null?void 0:o.document,documentType:(i=t.configOptions)==null?void 0:i.documentType,editorConfig:{callbackUrl:(a=(l=t.configOptions)==null?void 0:l.editorConfig)==null?void 0:a.callbackUrl,lang:"zh-CN",mode:t.mode,customization:{forcesave:!0,autosave:!0}},permissions:{comment:!0,commentGroups:{edit:["Group1"],remove:["Group1"],view:""},copy:!0,deleteCommentAuthorOnly:!0,download:!0,edit:!0,editCommentAuthorOnly:!0,fillForms:!0,modifyContentControl:!0,modifyFilter:!0,print:!0,review:!0,reviewGroups:["Group1","Group2","Group3"],userInfoGroups:["Group1"]},mode:t.mode,token:t.token}),s=()=>{console.info("文档加载中")};return(d,c)=>(r.openBlock(),r.createElementBlock("div",{style:r.normalizeStyle({height:t.officeHeight})},[r.createVNode(r.unref(ft),{id:`${new Date().getTime()}`,ref:"editorRef","document-server-url":e.documentServerUrl,config:n.value,events_onDocumentReady:s},null,8,["id","document-server-url","config"])],4))}}),Yr="",As=Te(Ps,[["__scopeId","data-v-b024b1a1"]]),Hs=["onClick"],js={class:"text"},Ls={class:"fileName"},qs={class:"size"},Us={class:"w-full h-full overflow-hidden flex-center"},Ks=["src"],Ws=r.defineComponent({__name:"IKPreviewFile",props:{list:{type:Array,default:()=>[]},kkUrl:{required:!0,type:String,default:""},url:{required:!0,type:String,default:""},loadUrl:{type:String,default:""},field:{required:!0,type:Object,default:()=>({name:"attachmentName",url:"attachmentId",suffix:"attachmentSuffix",size:"attachmentSize"})},iconSize:{type:Number,default:40},showBg:{type:Boolean,default:!0},width:{type:Number||String,default:"100%"},iconHoverShow:{type:Boolean,default:!1},isOnlyOfficepPreview:{type:Boolean,default:!1},onlyOfficeAccept:{type:String,default:".pdf,.docx,.doc.ppt,.pptx,.xlsx,.xls,"},onlyofficeServer:{type:String,default:""}},setup(e){const t=e,n=r.computed(()=>({name:"name",url:"url",suffix:"suffix",size:"size",...t.field})),s=r.ref(null),o=r.computed(()=>{var y,O,N;if(!t.kkUrl||!((y=i.data)!=null&&y[n.value.url]))return"";const h=t.loadUrl?t.loadUrl:location.href;return`${t.kkUrl}/onlinePreview?url=${encodeURIComponent(yn(`${me(h,(O=i.data)==null?void 0:O[n.value.url])}&fullfilename=${(N=i.data)==null?void 0:N[n.value.name]}`))}`}),i=r.reactive({show:!1,data:{}}),l=r.ref(null),a=r.ref(!1),d=r.ref(!1),c=r.ref(null),u=h=>{var y,O,N,M;if(l.value={...h,name:h[n.value.name],url:me(t.loadUrl,h[n.value.url]||((O=(y=h==null?void 0:h.response)==null?void 0:y.data)==null?void 0:O.id))},t.isOnlyOfficepPreview&&t.onlyOfficeAccept.includes(h.attachmentSuffix)){d.value=!0,c.value={documentType:"word",document:{key:se.buildUUID(),title:h[n.value.name],url:me(t.loadUrl,h[n.value.url]||((M=(N=h==null?void 0:h.response)==null?void 0:N.data)==null?void 0:M.id))},editorConfig:{customization:{review:{reviewDisplay:"final"}}}};return}h&&wt(h,n.value)==="image"?a.value=!0:(w.value=!0,i.data=h,i.show=!0,r.nextTick(()=>{s.value.onload=()=>{w.value=!1}}))},f=h=>{se.ikFile.downloadFile(me(t.loadUrl,h[n.value.url]),h[n.value.name])},w=r.ref(!1),b=r.computed(()=>se.paramType.isNumber(t.width)?`${t.width}px`:t.width),m=()=>{d.value=!1};return(h,y)=>{var N,M,x;const O=r.resolveComponent("el-image-viewer");return r.openBlock(),r.createElementBlock(r.Fragment,null,[(N=e.list)!=null&&N.length?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:0},r.renderList(e.list,(C,p)=>{var oe;return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["iking-privew-annex",{"is-bg":e.showBg}]),key:p,style:r.normalizeStyle({marginBottom:p==((oe=e.list)==null?void 0:oe.length)-1?"0":"10px",width:b.value})},[r.createElementVNode("div",{class:"file-card",onClick:pt=>u(C)},[r.createVNode(Kn,{file:C,style:r.normalizeStyle({height:`${e.iconSize}px`}),class:"ikui-w-auto",fields:n.value},null,8,["file","style","fields"]),r.createElementVNode("div",js,[r.createElementVNode("div",Ls,r.toDisplayString(C[n.value.name]),1),r.createElementVNode("div",qs,r.toDisplayString(r.unref(hn)(C[n.value.size])),1)]),r.createElementVNode("div",{class:r.normalizeClass(["flex flex-center",{"hover-show":e.iconHoverShow}])},[r.createVNode(r.unref(ne),{name:"iksvg_daochu",onClick:r.withModifiers(pt=>f(C),["stop"]),bg:e.showBg,size:e.showBg?"default":20},null,8,["onClick","bg","size"]),r.createVNode(r.unref(ne),{name:"iksvg_yulan",bg:e.showBg,size:e.showBg?"default":20},null,8,["bg","size"]),r.renderSlot(h.$slots,"operation",{data:{...C,findex:p}})],2)],8,Hs)],6)}),128)):r.createCommentVNode("v-if",!0),r.createVNode(r.unref(ht.ElDialog),{fullscreen:"",modelValue:i.show,"onUpdate:modelValue":y[0]||(y[0]=C=>i.show=C),"destroy-on-close":"","append-to-body":"","modal-class":"ik-file-preview-modal",onClose:y[1]||(y[1]=C=>h.$emit("update:modelValue",!1)),class:"ik-file-preview"},{default:r.withCtx(()=>[r.withDirectives((r.openBlock(),r.createElementBlock("div",Us,[i.show?(r.openBlock(),r.createElementBlock("iframe",{key:0,ref_key:"freamRef",ref:s,"cross-origin":"",src:o.value,frameborder:"0",allowfullscreen:"",seamless:""},null,8,Ks)):r.createCommentVNode("v-if",!0)])),[[r.unref(ht.vLoading),w.value]])]),_:1},8,["modelValue"]),(M=l.value)!=null&&M.url&&a.value?(r.openBlock(),r.createBlock(O,{key:1,onClose:y[2]||(y[2]=C=>(l.value=null,a.value=!1)),ref:"previewImgRef","url-list":[(x=l.value)==null?void 0:x.url]},null,8,["url-list"])):r.createCommentVNode("v-if",!0),r.createCommentVNode(" "),r.createVNode(zs,{modelValue:d.value,"onUpdate:modelValue":y[3]||(y[3]=C=>d.value=C),draggable:"","no-footer":!0,"no-header":!0,fullscreen:!0,showCloseBg:!0,"destroy-on-close":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"append-to-body":"",onClose:m,"modal-class":"preview-dialog"},{default:r.withCtx(()=>[d.value?(r.openBlock(),r.createBlock(As,{key:0,"config-options":c.value,documentServerUrl:e.onlyofficeServer,token:t.jwtToken,mode:"view"},null,8,["config-options","documentServerUrl","token"])):r.createCommentVNode("v-if",!0)]),_:1},8,["modelValue"])],64)}}}),Jr="",Gs=Me(Ws),Ys={class:"ik-svg-icon ik-icon inline-block inline-flex justify-center line-height-[0]"},Js={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},Xs=["xlink:href"],Zs=["src"],Qs={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},er=["xlink:href"],tr=["src"],ne=Me(r.defineComponent({name:"IkSvgIcon",__name:"index",props:{name:{},flip:{},rotate:{},color:{},opacity:{default:.5},size:{default:""},bg:{type:Boolean,default:!1},showBg:{type:Boolean,default:!1},padding:{default:"0"},primary:{type:Boolean},warning:{type:Boolean},notip:{type:Boolean,default:!1},title:{},type:{},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},setup(e){const t=e,n=r.computed(()=>{var o,i;return/^http?:\/\//.test(t.name)?"img":/i-[^:]+:[^:]+/.test(t.name)?"unocss":(o=t.name)!=null&&o.startsWith("iksig")?"iksig":(i=t.name)!=null&&i.includes(":")?"iconify":"svg"}),s=r.computed(()=>{const o=[];if(t.flip)switch(t.flip){case"horizontal":o.push("rotateY(180deg)");break;case"vertical":o.push("rotateX(180deg)");break;case"both":o.push("rotateX(180deg)"),o.push("rotateY(180deg)");break}return t.rotate&&o.push(`rotate(${t.rotate%360}deg)`),{...t.color&&{color:t.color},...t.size&&{fontSize:typeof t.size=="number"?`${t.size}px`:t.size},...o.length&&{transform:o.join(" ")},padding:t.padding,...t.color&&n.value!=="iksig"?{"--ik-color-icon-dark":t.color,"--ik-color-icon-light":se.ikColor.setOpacity(t.color,t.opacity||.4)}:{},...t.type==="primary"||t.primary?{"--ik-color-icon-dark":"var(--ik-theme-color)","--ik-color-icon-light":"var(--ik-color-icon-light-hover)","--ik-color-bg-icon":"var(--ik-color-bg-button-secondary)"}:t.type==="warning"?{"--ik-color-icon-dark":"var(--ik-color-error)","--ik-color-icon-light":"var(--ik-color-icon-error-light)","--ik-color-bg-icon":"var(--ik-color-icon-error-bg)"}:{}}});return(o,i)=>{const l=r.resolveComponent("el-tooltip");return r.openBlock(),r.createElementBlock("span",Ys,[o.notip||!o.title?(r.openBlock(),r.createElementBlock("i",{key:0,class:r.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[o.name]:n.value==="unocss","show-bg":o.showBg||o.bg,default:o.size==="default",small:o.size==="small",big:o.size==="big",warning:o.warning,primary:o.primary,active:o.active,disabled:o.disabled}]),style:r.normalizeStyle(s.value)},[r.createCommentVNode(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),n.value==="iksig"?(r.openBlock(),r.createElementBlock("i",{key:0,class:r.normalizeClass(`iksig ${o.name}`),style:r.normalizeStyle(s.value)},null,6)):n.value==="svg"?(r.openBlock(),r.createElementBlock("svg",Js,[r.createElementVNode("use",{"xlink:href":`#${o.name}`},null,8,Xs)])):n.value==="img"?(r.openBlock(),r.createElementBlock("img",{key:2,src:o.name,class:"h-[1em] w-[1em]"},null,8,Zs)):r.createCommentVNode("v-if",!0)],6)):(r.openBlock(),r.createBlock(l,{key:1,content:o.title,placement:"top"},{default:r.withCtx(()=>[r.createElementVNode("i",{class:r.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[o.name]:n.value==="unocss","show-bg":o.showBg||o.bg,default:o.size==="default",primary:o.primary,small:o.size==="small",big:o.size==="big",warning:o.warning,active:o.active}]),style:r.normalizeStyle(s.value)},[n.value==="iksig"?(r.openBlock(),r.createElementBlock("i",{key:0,class:r.normalizeClass(`iksig ${o.name}`),style:r.normalizeStyle(s.value)},null,6)):n.value==="svg"?(r.openBlock(),r.createElementBlock("svg",Qs,[r.createElementVNode("use",{"xlink:href":`#${o.name}`},null,8,er)])):n.value==="img"?(r.openBlock(),r.createElementBlock("img",{key:2,src:o.name,class:"h-[1em] w-[1em]"},null,8,tr)):r.createCommentVNode("v-if",!0)],6)]),_:1},8,["content"]))])}}})),nr=e=>(r.pushScopeId("data-v-170abcfc"),e=e(),r.popScopeId(),e),or={key:0,class:"preview-files"},sr={class:"flex",style:{width:"80%","align-items":"center"}},rr=["onClick"],ir=["title"],lr={style:{color:"#b8c6d9"}},cr=["onClick"],ar=nr(()=>r.createElementVNode("span",null,"预览",-1)),dr={key:1,class:"flex preview-img"},ur=r.defineComponent({__name:"IKDetailPreviewFiles",props:{fileList:{type:Array,default:()=>[]},fileType:{type:String,default:"file"},fileWidth:{type:String,default:"100%"},loadUrl:{type:String,default:""},kkUrl:{required:!0,type:String,default:""}},setup(e){const t=e,n=r.ref(t.fileList);r.watch(()=>t.fileList,c=>{c&&(n.value=c)},{immediate:!0});const s=r.ref(!1),o=r.ref({}),i=c=>{o.value={url:c.url,name:c.name},s.value=!0},l=c=>{var u,f,w,b,m;return(u=c==null?void 0:c.suffix)!=null&&u.includes("pdf")?"iksvg_pdf":(f=c==null?void 0:c.suffix)!=null&&f.includes("doc")?"iksvg_word":(w=c==null?void 0:c.suffix)!=null&&w.includes("xls")?"iksvg_excel":(b=c==null?void 0:c.suffix)!=null&&b.includes("mov")?"iksvg_mov":(m=c==null?void 0:c.suffix)!=null&&m.includes("zip")?"iksvg_zip":"icon-jpg"},a=c=>{var u,f,w,b,m;return(u=c==null?void 0:c.suffix)!=null&&u.includes("pdf")?"#FA4E4E":(f=c==null?void 0:c.suffix)!=null&&f.includes("doc")?"#2c69e0":(w=c.suffix)!=null&&w.includes("xls")?"#39BFBF":(b=c.suffix)!=null&&b.includes("txt")?"#2c69e0":(m=c.suffix)!=null&&m.includes("zip")?"#FF9000":"#32CD79"},d=c=>{const u=document.createElement("a");u.href=se.ikUrl.assembleUrl(t.loadUrl,c.url),u.download=c.name,u.click()};return(c,u)=>{var w,b;const f=r.resolveComponent("el-image");return r.openBlock(),r.createElementBlock("div",null,[t.fileType==="file"?(r.openBlock(),r.createElementBlock("div",or,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.value,(m,h)=>(r.openBlock(),r.createElementBlock("div",{key:h,class:"files-item",style:r.normalizeStyle({width:t.fileWidth,"margin-right":t.fileWidth==="100%"?"0px":""})},[r.createElementVNode("div",sr,[r.createVNode(r.unref(ne),{name:l(m),style:r.normalizeStyle(`color:${a(m)}`),size:36},null,8,["name","style"]),r.createElementVNode("div",{class:"file-name",onClick:y=>d(m)},[r.createElementVNode("p",{title:m.name},r.toDisplayString(m.name),9,ir),r.createElementVNode("p",lr,r.toDisplayString((m.size/1024).toFixed(2))+"KB",1)],8,rr)]),r.createElementVNode("div",{class:"file-preview",onClick:y=>i(m)},[r.createVNode(r.unref(ne),{name:"iksvg_yulan"}),ar],8,cr)],4))),128))])):r.createCommentVNode("v-if",!0),t.fileType==="img"?(r.openBlock(),r.createElementBlock("div",dr,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.value,(m,h)=>(r.openBlock(),r.createElementBlock("div",{key:h,class:"preview-img"},[r.createVNode(f,{class:"show-img",src:e.loadUrl+m.url,"preview-src-list":[e.loadUrl+m.url],fit:"cover"},null,8,["src","preview-src-list"])]))),128))])):r.createCommentVNode("v-if",!0),r.createVNode(r.unref(Gs),{modelValue:s.value,"onUpdate:modelValue":u[0]||(u[0]=m=>s.value=m),"load-url":t.loadUrl,url:(w=o.value)==null?void 0:w.url,"kk-url":e.kkUrl,"file-name":(b=o.value)==null?void 0:b.name},null,8,["modelValue","load-url","url","kk-url","file-name"])])}}}),Zr="",pn=Me(Te(ur,[["__scopeId","data-v-170abcfc"]]));I.IKDetailPreviewFiles=pn,I.default=pn,Object.defineProperties(I,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
17
+ Component that was made reactive: `,e)),bs(e,t,n,s,o,l,i,!0)}function Vs(e){return e?Qe(e)||tn(e)?B({},e):e:null}function Ie(e,t,n=!1,s=!1){const{props:o,ref:i,patchFlag:l,children:a,transition:d}=e,c=t?Ns(o||{},t):o,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&sn(c),ref:t&&t.ref?n&&i?g(i)?i.concat(De(t)):[i,De(t)]:De(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:process.env.NODE_ENV!=="production"&&l===-1&&g(a)?a.map(ln):a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==on?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:d,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ie(e.ssContent),ssFallback:e.ssFallback&&Ie(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return d&&s&&(u.transition=d.clone(u)),u}function ln(e){const t=Ie(e);return g(e.children)&&(t.children=e.children.map(ln)),t}function Ss(e=" ",t=0){return _e(vs,null,e,t)}function dt(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(g(t))n=16;else if(typeof t=="object")if(s&65){const o=t.default;o&&(o._c&&(o._d=!1),dt(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!tn(t)?t._ctx=P:o===3&&P&&(P.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else V(t)?(t={default:t,_ctx:P},n=32):(t=String(t),s&64?(n=16,t=[Ss(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ns(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const o in s)if(o==="class")t.class!==s.class&&(t.class=je([t.class,s.class]));else if(o==="style")t.style=He([t.style,s.style]);else if(Xn(o)){const i=t[o],l=s[o];l&&i!==l&&!(g(i)&&i.includes(l))&&(t[o]=i?[].concat(i,l):l)}else o!==""&&(t[o]=s[o])}return t}let $e=null,ut;{const e=bt(),t=(n,s)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(s),i=>{o.length>1?o.forEach(l=>l(i)):o[0](i)}};ut=t("__VUE_INSTANCE_SETTERS__",n=>$e=n),t("__VUE_SSR_SETTERS__",n=>cn=n)}const xs=e=>{const t=$e;return ut(e),e.scope.on(),()=>{e.scope.off(),ut(t)}};function Cs(e){return e.vnode.shapeFlag&4}let cn=!1;process.env.NODE_ENV;function ks(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(To(Io(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in pe)return pe[n](e)},has(t,n){return n in t||n in pe}}))}const Os=/(?:^|[-_])(\w)/g,Fs=e=>e.replace(Os,t=>t.toUpperCase()).replace(/[-_]/g,"");function an(e,t=!0){return V(e)?e.displayName||e.name:e.name||t&&e.__name}function dn(e,t,n=!1){let s=an(t);if(!s&&t.__file){const o=t.__file.match(/([^/\\]+)\.\w+$/);o&&(s=o[1])}if(!s&&e&&e.parent){const o=i=>{for(const l in i)if(i[l]===t)return l};s=o(e.components||e.parent.type.components)||o(e.appContext.components)}return s?Fs(s):n?"App":"Anonymous"}function un(e){return V(e)&&"__vccOpts"in e}function Bs(e,t,n){const s=arguments.length;return s===2?F(t)&&!g(t)?at(t)?_e(e,null,[t]):_e(e,t):_e(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&at(n)&&(n=[n]),_e(e,t,n))}process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV;const Rs={class:"base-header"},zs=r.defineComponent({__name:"IkBaseDialog",props:r.mergeModels({title:{default:""},cancelText:{default:"取消"},confirmText:{default:"确认"},noHeader:{type:Boolean},noFooter:{type:Boolean},showCloseBg:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1}},{modelValue:{type:Boolean,default:!1,noHeader:!1,noFooter:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=r.useModel(e,"modelValue"),s=r.ref(t.fullscreen),o=()=>{s.value=!s.value},i=as({setup(){return console.log("props.showCloseBg",t.showCloseBg),()=>Bs(Yn,{showBg:t.showCloseBg,fullscreen:t.fullscreen})}});return(l,a)=>{const d=r.resolveComponent("IkSvgIcon"),c=r.resolveComponent("el-dialog");return r.openBlock(),r.createBlock(c,r.mergeProps({modelValue:n.value,"onUpdate:modelValue":a[0]||(a[0]=u=>n.value=u)},l.$attrs,{"close-icon":r.unref(i),class:`ik-base-dialog ${l.noHeader?"no-header":""} ${l.noFooter?"no-footer":""}`,fullscreen:s.value,"modal-class":"baseDialog"}),r.createSlots({icon:r.withCtx(()=>[r.renderSlot(l.$slots,"title",{},()=>[r.createTextVNode(r.toDisplayString(l.title),1)])]),header:r.withCtx(()=>[r.createElementVNode("div",Rs,[r.renderSlot(l.$slots,"header",{},()=>[r.createTextVNode(r.toDisplayString(l.title),1)])]),l.$attrs.showClose?(r.openBlock(),r.createBlock(d,{key:0,onClick:o,name:s.value?"iksvg_tuichuquanping":"iksvg_quanping-daohang",class:"absolute! top-[18px] right-[50px] icon-dialog-full",title:s.value?"退出全屏":"全屏"},null,8,["name","title"])):r.createCommentVNode("v-if",!0)]),default:r.withCtx(()=>[r.renderSlot(l.$slots,"default")]),_:2},[l.$slots.footer?{name:"footer",fn:r.withCtx(()=>[r.renderSlot(l.$slots,"footer")]),key:"0"}:void 0]),1040,["modelValue","close-icon","class","fullscreen"])}}}),Gr="";function Ds(e,t,n,s){function o(i){return i instanceof n?i:new n(function(l){l(i)})}return new(n||(n=Promise))(function(i,l){function a(u){try{c(s.next(u))}catch(f){l(f)}}function d(u){try{c(s.throw(u))}catch(f){l(f)}}function c(u){u.done?i(u.value):o(u.value).then(a,d)}c((s=s.apply(e,t||[])).next())})}function Is(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},s,o,i,l;return l={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function a(c){return function(u){return d([c,u])}}function d(c){if(s)throw new TypeError("Generator is already executing.");for(;l&&(l=0,c[0]&&(n=0)),n;)try{if(s=1,o&&(i=c[0]&2?o.return:c[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,c[1])).done)return i;switch(o=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,o=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){n.label=c[1];break}if(c[0]===6&&n.label<i[1]){n.label=i[1],i=c;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(c);break}i[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(u){c=[6,u],o=0}finally{s=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}typeof SuppressedError=="function"&&SuppressedError;var $s=function(e,t){return Ds(void 0,void 0,void 0,function(){return Is(this,function(n){return[2,new Promise(function(s,o){try{if(window.DocsAPI)return s(null);var i=document.getElementById(t);if(i)var l=setInterval(function(){var d=i.getAttribute("loading");if(!d){if(clearInterval(l),window.DocsAPI)return s(null);var c=fn(t,e,s,o);i.remove(),document.body.appendChild(c)}},500);else{var a=fn(t,e,s,o);document.body.appendChild(a)}}catch(d){console.error(d)}})]})})},fn=function(e,t,n,s){var o=document.createElement("script");return o.id=e,o.type="text/javascript",o.src=t,o.async=!0,o.onload=function(){o.removeAttribute("loading"),n(null)},o.onerror=function(i){o.removeAttribute("loading"),s(i)},o.setAttribute("loading",""),o},ft=r.defineComponent({name:"DocumentEditor",props:{id:{type:String,required:!0},documentServerUrl:{type:String,required:!0},config:{type:Object,required:!0},document_fileType:String,document_title:String,documentType:String,editorConfig_lang:String,height:String,type:String,width:String,onLoadComponentError:Function,events_onAppReady:Function,events_onDocumentStateChange:Function,events_onMetaChange:Function,events_onDocumentReady:Function,events_onInfo:Function,events_onWarning:Function,events_onError:Function,events_onRequestSharingSettings:Function,events_onRequestRename:Function,events_onMakeActionLink:Function,events_onRequestInsertImage:Function,events_onRequestSaveAs:Function,events_onRequestMailMergeRecipients:Function,events_onRequestCompareFile:Function,events_onRequestEditRights:Function,events_onRequestHistory:Function,events_onRequestHistoryClose:Function,events_onRequestHistoryData:Function,events_onRequestRestore:Function,events_onRequestSelectSpreadsheet:Function,events_onRequestSelectDocument:Function},mounted:function(){var e=this,t=this.documentServerUrl;t.endsWith("/")||(t+="/");var n="".concat(t,"web-apps/apps/api/documents/api.js");$s(n,"onlyoffice-api-script").then(function(){return e.onLoad()}).catch(function(){e.onError(-2)})},unmounted:function(){var e,t=this.id||"";!((e=window==null?void 0:window.DocEditor)===null||e===void 0)&&e.instances[t]&&(window.DocEditor.instances[t].destroyEditor(),window.DocEditor.instances[t]=void 0)},watch:{config:{handler:function(e,t){this.onChangeProps()},deep:!0},document_fileType:function(e,t){this.onChangeProps()},document_title:function(e,t){this.onChangeProps()},documentType:function(e,t){this.onChangeProps()},editorConfig_lang:function(e,t){this.onChangeProps()},height:function(e,t){this.onChangeProps()},type:function(e,t){this.onChangeProps()},width:function(e,t){this.onChangeProps()}},methods:{onLoad:function(){var e,t;try{var n=this.id||"";if(window.DocsAPI||this.onError(-3),!((e=window==null?void 0:window.DocEditor)===null||e===void 0)&&e.instances[n]){console.log("Skip loading. Instance already exists",n);return}!((t=window==null?void 0:window.DocEditor)===null||t===void 0)&&t.instances||(window.DocEditor={instances:{}});var s=Object.assign({document:{fileType:this.document_fileType,title:this.document_title},documentType:this.documentType,editorConfig:{lang:this.editorConfig_lang},events:{onAppReady:this.onAppReady,onDocumentStateChange:this.events_onDocumentStateChange,onMetaChange:this.events_onMetaChange,onDocumentReady:this.events_onDocumentReady,onInfo:this.events_onInfo,onWarning:this.events_onWarning,onError:this.events_onError,onRequestSharingSettings:this.events_onRequestSharingSettings,onRequestRename:this.events_onRequestRename,onMakeActionLink:this.events_onMakeActionLink,onRequestInsertImage:this.events_onRequestInsertImage,onRequestSaveAs:this.events_onRequestSaveAs,onRequestMailMergeRecipients:this.events_onRequestMailMergeRecipients,onRequestCompareFile:this.events_onRequestCompareFile,onRequestEditRights:this.events_onRequestEditRights,onRequestHistory:this.events_onRequestHistory,onRequestHistoryClose:this.events_onRequestHistoryClose,onRequestHistoryData:this.events_onRequestHistoryData,onRequestRestore:this.events_onRequestRestore,onRequestSelectSpreadsheet:this.events_onRequestSelectSpreadsheet,onRequestSelectDocument:this.events_onRequestSelectDocument},height:this.height,type:this.type,width:this.width},this.config||{}),o=window.DocsAPI.DocEditor(n,s);window.DocEditor.instances[n]=o}catch(i){console.error(i),this.onError(-1)}},onError:function(e){var t;switch(e){case-2:t="Error load DocsAPI from "+this.documentServerUrl;break;case-3:t="DocsAPI is not defined";break;default:t="Unknown error loading component",e=-1}typeof this.onLoadComponentError>"u"?console.error(t):this.onLoadComponentError(e,t)},onAppReady:function(){var e=this.id||"";this.events_onAppReady(window.DocEditor.instances[e])},onChangeProps:function(){var e,t=this.id||"";!((e=window==null?void 0:window.DocEditor)===null||e===void 0)&&e.instances[t]&&(window.DocEditor.instances[t].destroyEditor(),window.DocEditor.instances[t]=void 0,console.log("Important props have been changed. Load new Editor."),this.onLoad())}}});const Ms=["id"];function Ts(e,t,n,s,o,i){return r.openBlock(),r.createElementBlock("div",{id:e.id},null,8,Ms)}ft.render=Ts,ft.__file="src/components/DocumentEditor.vue";const Ps=r.defineComponent({__name:"IkOnlyOffice",props:{documentServerUrl:{type:String,default:""},mode:{type:String,default:""},configOptions:{type:Object,default:()=>{}},officeHeight:{type:String,default:"100%"},token:{type:String,default:""}},setup(e){var o,i,l,a;const t=e,n=r.ref({width:"100%",height:"100%",document:(o=t.configOptions)==null?void 0:o.document,documentType:(i=t.configOptions)==null?void 0:i.documentType,editorConfig:{callbackUrl:(a=(l=t.configOptions)==null?void 0:l.editorConfig)==null?void 0:a.callbackUrl,lang:"zh-CN",mode:t.mode,customization:{forcesave:!0,autosave:!0}},permissions:{comment:!0,commentGroups:{edit:["Group1"],remove:["Group1"],view:""},copy:!0,deleteCommentAuthorOnly:!0,download:!0,edit:!0,editCommentAuthorOnly:!0,fillForms:!0,modifyContentControl:!0,modifyFilter:!0,print:!0,review:!0,reviewGroups:["Group1","Group2","Group3"],userInfoGroups:["Group1"]},mode:t.mode,token:t.token}),s=()=>{console.info("文档加载中")};return(d,c)=>(r.openBlock(),r.createElementBlock("div",{style:r.normalizeStyle({height:t.officeHeight})},[r.createVNode(r.unref(ft),{id:`${new Date().getTime()}`,ref:"editorRef","document-server-url":e.documentServerUrl,config:n.value,events_onDocumentReady:s},null,8,["id","document-server-url","config"])],4))}}),Yr="",As=Te(Ps,[["__scopeId","data-v-b024b1a1"]]),Hs=["onClick"],js={class:"text"},Ls={class:"fileName"},qs={class:"size"},Us={class:"w-full h-full overflow-hidden flex-center"},Ks=["src"],Ws=r.defineComponent({__name:"IKPreviewFile",props:{list:{type:Array,default:()=>[]},kkUrl:{required:!0,type:String,default:""},url:{required:!0,type:String,default:""},loadUrl:{type:String,default:""},field:{required:!0,type:Object,default:()=>({name:"attachmentName",url:"attachmentId",suffix:"attachmentSuffix",size:"attachmentSize"})},iconSize:{type:Number,default:40},showBg:{type:Boolean,default:!0},width:{type:Number||String,default:"100%"},iconHoverShow:{type:Boolean,default:!1},isOnlyOfficePreview:{type:Boolean,default:!1},onlyOfficeAccept:{type:String,default:".pdf,.docx,.doc.ppt,.pptx,.xlsx,.xls,"},onlyofficeServer:{type:String,default:""}},setup(e){const t=e,n=r.computed(()=>({name:"name",url:"url",suffix:"suffix",size:"size",...t.field})),s=r.ref(null),o=r.computed(()=>{var y,O,N;if(!t.kkUrl||!((y=i.data)!=null&&y[n.value.url]))return"";const h=t.loadUrl?t.loadUrl:location.href;return`${t.kkUrl}/onlinePreview?url=${encodeURIComponent(yn(`${me(h,(O=i.data)==null?void 0:O[n.value.url])}&fullfilename=${(N=i.data)==null?void 0:N[n.value.name]}`))}`}),i=r.reactive({show:!1,data:{}}),l=r.ref(null),a=r.ref(!1),d=r.ref(!1),c=r.ref(null),u=h=>{var y,O,N,M;if(l.value={...h,name:h[n.value.name],url:me(t.loadUrl,h[n.value.url]||((O=(y=h==null?void 0:h.response)==null?void 0:y.data)==null?void 0:O.id))},t.isOnlyOfficePreview&&t.onlyOfficeAccept.includes(h.attachmentSuffix)){d.value=!0,c.value={documentType:"word",document:{key:se.buildUUID(),title:h[n.value.name],url:me(t.loadUrl,h[n.value.url]||((M=(N=h==null?void 0:h.response)==null?void 0:N.data)==null?void 0:M.id))},editorConfig:{customization:{review:{reviewDisplay:"final"}}}};return}h&&wt(h,n.value)==="image"?a.value=!0:(w.value=!0,i.data=h,i.show=!0,r.nextTick(()=>{s.value.onload=()=>{w.value=!1}}))},f=h=>{se.ikFile.downloadFile(me(t.loadUrl,h[n.value.url]),h[n.value.name])},w=r.ref(!1),b=r.computed(()=>se.paramType.isNumber(t.width)?`${t.width}px`:t.width),m=()=>{d.value=!1};return(h,y)=>{var N,M,x;const O=r.resolveComponent("el-image-viewer");return r.openBlock(),r.createElementBlock(r.Fragment,null,[(N=e.list)!=null&&N.length?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:0},r.renderList(e.list,(C,p)=>{var oe;return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["iking-privew-annex",{"is-bg":e.showBg}]),key:p,style:r.normalizeStyle({marginBottom:p==((oe=e.list)==null?void 0:oe.length)-1?"0":"10px",width:b.value})},[r.createElementVNode("div",{class:"file-card",onClick:pt=>u(C)},[r.createVNode(Kn,{file:C,style:r.normalizeStyle({height:`${e.iconSize}px`}),class:"ikui-w-auto",fields:n.value},null,8,["file","style","fields"]),r.createElementVNode("div",js,[r.createElementVNode("div",Ls,r.toDisplayString(C[n.value.name]),1),r.createElementVNode("div",qs,r.toDisplayString(r.unref(hn)(C[n.value.size])),1)]),r.createElementVNode("div",{class:r.normalizeClass(["flex flex-center",{"hover-show":e.iconHoverShow}])},[r.createVNode(r.unref(ne),{name:"iksvg_daochu",onClick:r.withModifiers(pt=>f(C),["stop"]),bg:e.showBg,size:e.showBg?"default":20},null,8,["onClick","bg","size"]),r.createVNode(r.unref(ne),{name:"iksvg_yulan",bg:e.showBg,size:e.showBg?"default":20},null,8,["bg","size"]),r.renderSlot(h.$slots,"operation",{data:{...C,findex:p}})],2)],8,Hs)],6)}),128)):r.createCommentVNode("v-if",!0),r.createVNode(r.unref(ht.ElDialog),{fullscreen:"",modelValue:i.show,"onUpdate:modelValue":y[0]||(y[0]=C=>i.show=C),"destroy-on-close":"","append-to-body":"","modal-class":"ik-file-preview-modal",onClose:y[1]||(y[1]=C=>h.$emit("update:modelValue",!1)),class:"ik-file-preview"},{default:r.withCtx(()=>[r.withDirectives((r.openBlock(),r.createElementBlock("div",Us,[i.show?(r.openBlock(),r.createElementBlock("iframe",{key:0,ref_key:"freamRef",ref:s,"cross-origin":"",src:o.value,frameborder:"0",allowfullscreen:"",seamless:""},null,8,Ks)):r.createCommentVNode("v-if",!0)])),[[r.unref(ht.vLoading),w.value]])]),_:1},8,["modelValue"]),(M=l.value)!=null&&M.url&&a.value?(r.openBlock(),r.createBlock(O,{key:1,onClose:y[2]||(y[2]=C=>(l.value=null,a.value=!1)),ref:"previewImgRef","url-list":[(x=l.value)==null?void 0:x.url]},null,8,["url-list"])):r.createCommentVNode("v-if",!0),r.createCommentVNode(" "),r.createVNode(zs,{modelValue:d.value,"onUpdate:modelValue":y[3]||(y[3]=C=>d.value=C),draggable:"","no-footer":!0,"no-header":!0,fullscreen:!0,showCloseBg:!0,"destroy-on-close":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"append-to-body":"",onClose:m,"modal-class":"preview-dialog"},{default:r.withCtx(()=>[d.value?(r.openBlock(),r.createBlock(As,{key:0,"config-options":c.value,documentServerUrl:e.onlyofficeServer,token:t.jwtToken,mode:"view"},null,8,["config-options","documentServerUrl","token"])):r.createCommentVNode("v-if",!0)]),_:1},8,["modelValue"])],64)}}}),Jr="",Gs=Me(Ws),Ys={class:"ik-svg-icon ik-icon inline-block inline-flex justify-center line-height-[0]"},Js={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},Xs=["xlink:href"],Zs=["src"],Qs={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},er=["xlink:href"],tr=["src"],ne=Me(r.defineComponent({name:"IkSvgIcon",__name:"index",props:{name:{},flip:{},rotate:{},color:{},opacity:{default:.5},size:{default:""},bg:{type:Boolean,default:!1},showBg:{type:Boolean,default:!1},padding:{default:"0"},primary:{type:Boolean},warning:{type:Boolean},notip:{type:Boolean,default:!1},title:{},type:{},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},setup(e){const t=e,n=r.computed(()=>{var o,i;return/^http?:\/\//.test(t.name)?"img":/i-[^:]+:[^:]+/.test(t.name)?"unocss":(o=t.name)!=null&&o.startsWith("iksig")?"iksig":(i=t.name)!=null&&i.includes(":")?"iconify":"svg"}),s=r.computed(()=>{const o=[];if(t.flip)switch(t.flip){case"horizontal":o.push("rotateY(180deg)");break;case"vertical":o.push("rotateX(180deg)");break;case"both":o.push("rotateX(180deg)"),o.push("rotateY(180deg)");break}return t.rotate&&o.push(`rotate(${t.rotate%360}deg)`),{...t.color&&{color:t.color},...t.size&&{fontSize:typeof t.size=="number"?`${t.size}px`:t.size},...o.length&&{transform:o.join(" ")},padding:t.padding,...t.color&&n.value!=="iksig"?{"--ik-color-icon-dark":t.color,"--ik-color-icon-light":se.ikColor.setOpacity(t.color,t.opacity||.4)}:{},...t.type==="primary"||t.primary?{"--ik-color-icon-dark":"var(--ik-theme-color)","--ik-color-icon-light":"var(--ik-color-icon-light-hover)","--ik-color-bg-icon":"var(--ik-color-bg-button-secondary)"}:t.type==="warning"?{"--ik-color-icon-dark":"var(--ik-color-error)","--ik-color-icon-light":"var(--ik-color-icon-error-light)","--ik-color-bg-icon":"var(--ik-color-icon-error-bg)"}:{}}});return(o,i)=>{const l=r.resolveComponent("el-tooltip");return r.openBlock(),r.createElementBlock("span",Ys,[o.notip||!o.title?(r.openBlock(),r.createElementBlock("i",{key:0,class:r.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[o.name]:n.value==="unocss","show-bg":o.showBg||o.bg,default:o.size==="default",small:o.size==="small",big:o.size==="big",warning:o.warning,primary:o.primary,active:o.active,disabled:o.disabled}]),style:r.normalizeStyle(s.value)},[r.createCommentVNode(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),n.value==="iksig"?(r.openBlock(),r.createElementBlock("i",{key:0,class:r.normalizeClass(`iksig ${o.name}`),style:r.normalizeStyle(s.value)},null,6)):n.value==="svg"?(r.openBlock(),r.createElementBlock("svg",Js,[r.createElementVNode("use",{"xlink:href":`#${o.name}`},null,8,Xs)])):n.value==="img"?(r.openBlock(),r.createElementBlock("img",{key:2,src:o.name,class:"h-[1em] w-[1em]"},null,8,Zs)):r.createCommentVNode("v-if",!0)],6)):(r.openBlock(),r.createBlock(l,{key:1,content:o.title,placement:"top"},{default:r.withCtx(()=>[r.createElementVNode("i",{class:r.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[o.name]:n.value==="unocss","show-bg":o.showBg||o.bg,default:o.size==="default",primary:o.primary,small:o.size==="small",big:o.size==="big",warning:o.warning,active:o.active}]),style:r.normalizeStyle(s.value)},[n.value==="iksig"?(r.openBlock(),r.createElementBlock("i",{key:0,class:r.normalizeClass(`iksig ${o.name}`),style:r.normalizeStyle(s.value)},null,6)):n.value==="svg"?(r.openBlock(),r.createElementBlock("svg",Qs,[r.createElementVNode("use",{"xlink:href":`#${o.name}`},null,8,er)])):n.value==="img"?(r.openBlock(),r.createElementBlock("img",{key:2,src:o.name,class:"h-[1em] w-[1em]"},null,8,tr)):r.createCommentVNode("v-if",!0)],6)]),_:1},8,["content"]))])}}})),nr=e=>(r.pushScopeId("data-v-170abcfc"),e=e(),r.popScopeId(),e),or={key:0,class:"preview-files"},sr={class:"flex",style:{width:"80%","align-items":"center"}},rr=["onClick"],ir=["title"],lr={style:{color:"#b8c6d9"}},cr=["onClick"],ar=nr(()=>r.createElementVNode("span",null,"预览",-1)),dr={key:1,class:"flex preview-img"},ur=r.defineComponent({__name:"IKDetailPreviewFiles",props:{fileList:{type:Array,default:()=>[]},fileType:{type:String,default:"file"},fileWidth:{type:String,default:"100%"},loadUrl:{type:String,default:""},kkUrl:{required:!0,type:String,default:""}},setup(e){const t=e,n=r.ref(t.fileList);r.watch(()=>t.fileList,c=>{c&&(n.value=c)},{immediate:!0});const s=r.ref(!1),o=r.ref({}),i=c=>{o.value={url:c.url,name:c.name},s.value=!0},l=c=>{var u,f,w,b,m;return(u=c==null?void 0:c.suffix)!=null&&u.includes("pdf")?"iksvg_pdf":(f=c==null?void 0:c.suffix)!=null&&f.includes("doc")?"iksvg_word":(w=c==null?void 0:c.suffix)!=null&&w.includes("xls")?"iksvg_excel":(b=c==null?void 0:c.suffix)!=null&&b.includes("mov")?"iksvg_mov":(m=c==null?void 0:c.suffix)!=null&&m.includes("zip")?"iksvg_zip":"icon-jpg"},a=c=>{var u,f,w,b,m;return(u=c==null?void 0:c.suffix)!=null&&u.includes("pdf")?"#FA4E4E":(f=c==null?void 0:c.suffix)!=null&&f.includes("doc")?"#2c69e0":(w=c.suffix)!=null&&w.includes("xls")?"#39BFBF":(b=c.suffix)!=null&&b.includes("txt")?"#2c69e0":(m=c.suffix)!=null&&m.includes("zip")?"#FF9000":"#32CD79"},d=c=>{const u=document.createElement("a");u.href=se.ikUrl.assembleUrl(t.loadUrl,c.url),u.download=c.name,u.click()};return(c,u)=>{var w,b;const f=r.resolveComponent("el-image");return r.openBlock(),r.createElementBlock("div",null,[t.fileType==="file"?(r.openBlock(),r.createElementBlock("div",or,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.value,(m,h)=>(r.openBlock(),r.createElementBlock("div",{key:h,class:"files-item",style:r.normalizeStyle({width:t.fileWidth,"margin-right":t.fileWidth==="100%"?"0px":""})},[r.createElementVNode("div",sr,[r.createVNode(r.unref(ne),{name:l(m),style:r.normalizeStyle(`color:${a(m)}`),size:36},null,8,["name","style"]),r.createElementVNode("div",{class:"file-name",onClick:y=>d(m)},[r.createElementVNode("p",{title:m.name},r.toDisplayString(m.name),9,ir),r.createElementVNode("p",lr,r.toDisplayString((m.size/1024).toFixed(2))+"KB",1)],8,rr)]),r.createElementVNode("div",{class:"file-preview",onClick:y=>i(m)},[r.createVNode(r.unref(ne),{name:"iksvg_yulan"}),ar],8,cr)],4))),128))])):r.createCommentVNode("v-if",!0),t.fileType==="img"?(r.openBlock(),r.createElementBlock("div",dr,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.value,(m,h)=>(r.openBlock(),r.createElementBlock("div",{key:h,class:"preview-img"},[r.createVNode(f,{class:"show-img",src:e.loadUrl+m.url,"preview-src-list":[e.loadUrl+m.url],fit:"cover"},null,8,["src","preview-src-list"])]))),128))])):r.createCommentVNode("v-if",!0),r.createVNode(r.unref(Gs),{modelValue:s.value,"onUpdate:modelValue":u[0]||(u[0]=m=>s.value=m),"load-url":t.loadUrl,url:(w=o.value)==null?void 0:w.url,"kk-url":e.kkUrl,"file-name":(b=o.value)==null?void 0:b.name},null,8,["modelValue","load-url","url","kk-url","file-name"])])}}}),Zr="",pn=Me(Te(ur,[["__scopeId","data-v-170abcfc"]]));I.IKDetailPreviewFiles=pn,I.default=pn,Object.defineProperties(I,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -2957,7 +2957,7 @@ const t6 = /* @__PURE__ */ Gt(e6, [["__scopeId", "data-v-b024b1a1"]]), n6 = ["on
2957
2957
  default: !1
2958
2958
  },
2959
2959
  // 是否需要onlyoffice预览
2960
- isOnlyOfficepPreview: {
2960
+ isOnlyOfficePreview: {
2961
2961
  type: Boolean,
2962
2962
  default: !1
2963
2963
  },
@@ -3004,7 +3004,7 @@ const t6 = /* @__PURE__ */ Gt(e6, [["__scopeId", "data-v-b024b1a1"]]), n6 = ["on
3004
3004
  t.loadUrl,
3005
3005
  g[n.value.url] || ((N = (b = g == null ? void 0 : g.response) == null ? void 0 : b.data) == null ? void 0 : N.id)
3006
3006
  )
3007
- }, t.isOnlyOfficepPreview && t.onlyOfficeAccept.includes(g.attachmentSuffix)) {
3007
+ }, t.isOnlyOfficePreview && t.onlyOfficeAccept.includes(g.attachmentSuffix)) {
3008
3008
  a.value = !0, l.value = {
3009
3009
  documentType: "word",
3010
3010
  document: {
@@ -14,4 +14,4 @@
14
14
  `),o]);else{const r=[`[Vue warn]: ${e}`,...t];o.length&&r.push(`
15
15
  `,...Yo(o)),console.warn(...r)}ve()}function Go(){let e=W[W.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const s=e.component&&e.component.parent;e=s&&s.vnode}return t}function Yo(e){const t=[];return e.forEach((n,s)=>{t.push(...s===0?[]:[`
16
16
  `],...Jo(n))}),t}function Jo({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",s=e.component?e.component.parent==null:!1,o=` at <${dn(e.component,e.type,s)}`,r=">"+n;return e.props?[o,...Xo(e.props),r]:[o+r]}function Xo(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(s=>{t.push(...Ht(s,e[s]))}),n.length>3&&t.push(" ..."),t}function Ht(e,t,n){return F(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:R(t)?(t=Ht(e,p(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):E(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=p(t),n?t:[`${e}=`,t])}const jt={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."};function G(e,t,n,s){try{return s?e(...s):e()}catch(o){et(o,t,n)}}function Oe(e,t,n,s){if(E(e)){const o=G(e,t,n,s);return o&&co(o)&&o.catch(r=>{et(r,t,n)}),o}if(_(e)){const o=[];for(let r=0;r<e.length;r++)o.push(Oe(e[r],t,n,s));return o}else process.env.NODE_ENV!=="production"&&g(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`)}function et(e,t,n,s=!0){const o=t?t.vnode:null;if(t){let r=t.parent;const c=t.proxy,l=process.env.NODE_ENV!=="production"?jt[n]:`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){const a=r.ec;if(a){for(let u=0;u<a.length;u++)if(a[u](e,c,l)===!1)return}r=r.parent}const d=t.appContext.config.errorHandler;if(d){we(),G(d,null,10,[e,c,l]),ve();return}}Zo(e,n,o,s)}function Zo(e,t,n,s=!0){if(process.env.NODE_ENV!=="production"){const o=jt[t];if(n&&Ko(n),g(`Unhandled error${o?` during execution of ${o}`:""}`),n&&Wo(),s)throw e;console.error(e)}else console.error(e)}let ke=!1,tt=!1;const B=[];let j=0;const Z=[];let M=null,q=0;const qt=Promise.resolve();let nt=null;const Qo=100;function es(e){const t=nt||qt;return e?t.then(this?e.bind(this):e):t}function ts(e){let t=j+1,n=B.length;for(;t<n;){const s=t+n>>>1,o=B[s],r=le(o);r<e||r===e&&o.pre?t=s+1:n=s}return t}function ot(e){(!B.length||!B.includes(e,ke&&e.allowRecurse?j+1:j))&&(e.id==null?B.push(e):B.splice(ts(e.id),0,e),Lt())}function Lt(){!ke&&!tt&&(tt=!0,nt=qt.then(Kt))}function Ut(e){_(e)?Z.push(...e):(!M||!M.includes(e,e.allowRecurse?q+1:q))&&Z.push(e),Lt()}function ns(e){if(Z.length){const t=[...new Set(Z)].sort((n,s)=>le(n)-le(s));if(Z.length=0,M){M.push(...t);return}for(M=t,process.env.NODE_ENV!=="production"&&(e=e||new Map),q=0;q<M.length;q++)process.env.NODE_ENV!=="production"&&Wt(e,M[q])||M[q]();M=null,q=0}}const le=e=>e.id==null?1/0:e.id,os=(e,t)=>{const n=le(e)-le(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Kt(e){tt=!1,ke=!0,process.env.NODE_ENV!=="production"&&(e=e||new Map),B.sort(os);const t=process.env.NODE_ENV!=="production"?n=>Wt(e,n):Y;try{for(j=0;j<B.length;j++){const n=B[j];if(n&&n.active!==!1){if(process.env.NODE_ENV!=="production"&&t(n))continue;G(n,null,14)}}}finally{j=0,B.length=0,ns(e),ke=!1,nt=null,(B.length||Z.length)&&Kt(e)}}function Wt(e,t){if(!e.has(t))e.set(t,1);else{const n=e.get(t);if(n>Qo){const s=t.ownerInstance,o=s&&an(s.type);return et(`Maximum recursive updates exceeded${o?` in component <${o}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}else e.set(t,n+1)}}const ae=new Set;process.env.NODE_ENV!=="production"&&(bt().__VUE_HMR_RUNTIME__={createRecord:st(ss),rerender:st(rs),reload:st(is)});const Fe=new Map;function ss(e,t){return Fe.has(e)?!1:(Fe.set(e,{initialDef:de(t),instances:new Set}),!0)}function de(e){return un(e)?e.__vccOpts:e}function rs(e,t){const n=Fe.get(e);n&&(n.initialDef.render=t,[...n.instances].forEach(s=>{t&&(s.render=t,de(s.type).render=t),s.renderCache=[],s.effect.dirty=!0,s.update()}))}function is(e,t){const n=Fe.get(e);if(!n)return;t=de(t),Gt(n.initialDef,t);const s=[...n.instances];for(const o of s){const r=de(o.type);ae.has(r)||(r!==n.initialDef&&Gt(r,t),ae.add(r)),o.appContext.propsCache.delete(o.type),o.appContext.emitsCache.delete(o.type),o.appContext.optionsCache.delete(o.type),o.ceReload?(ae.add(r),o.ceReload(t.styles),ae.delete(r)):o.parent?(o.parent.effect.dirty=!0,ot(o.parent.update)):o.appContext.reload?o.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}Ut(()=>{for(const o of s)ae.delete(de(o.type))})}function Gt(e,t){k(e,t);for(const n in e)n!=="__file"&&!(n in t)&&delete e[n]}function st(e){return(t,n)=>{try{return e(t,n)}catch(s){console.error(s),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let Q,Re=[];function Yt(e,t){var n,s;Q=e,Q?(Q.enabled=!0,Re.forEach(({event:o,args:r})=>Q.emit(o,...r)),Re=[]):typeof window<"u"&&window.HTMLElement&&!((s=(n=window.navigator)==null?void 0:n.userAgent)!=null&&s.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(r=>{Yt(r,t)}),setTimeout(()=>{Q||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Re=[])},3e3)):Re=[]}let T=null,cs=null;function $3(){}const ls=Symbol.for("v-ndc"),as=e=>e.__isSuspense;function ds(e,t){t&&t.pendingBranch?_(e)?t.effects.push(...e):t.effects.push(e):Ut(e)}const us=Symbol.for("v-scx"),fs=()=>{{const e=Ss(us);return e||process.env.NODE_ENV!=="production"&&g("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}},Be={};function ps(e,t,{immediate:n,deep:s,flush:o,once:r,onTrack:c,onTrigger:l}=P){if(t&&r){const f=t;t=(...ne)=>{f(...ne),N()}}process.env.NODE_ENV!=="production"&&s!==void 0&&typeof s=="number"&&g('watch() "deep" option with number value will be used as watch depth in future versions. Please use a boolean instead to avoid potential breakage.'),process.env.NODE_ENV!=="production"&&!t&&(n!==void 0&&g('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),s!==void 0&&g('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),r!==void 0&&g('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const d=f=>{g("Invalid watch source: ",f,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},a=$e,u=f=>s===!0?f:ee(f,s===!1?1:void 0);let m,b=!1,I=!1;if(R(e)?(m=()=>e.value,b=Je(e)):ce(e)?(m=()=>u(e),b=!0):_(e)?(I=!0,b=e.some(f=>ce(f)||Je(f)),m=()=>e.map(f=>{if(R(f))return f.value;if(ce(f))return u(f);if(E(f))return G(f,a,2);process.env.NODE_ENV!=="production"&&d(f)})):E(e)?t?m=()=>G(e,a,2):m=()=>(L&&L(),Oe(e,a,3,[h])):(m=Y,process.env.NODE_ENV!=="production"&&d(e)),t&&s){const f=m;m=()=>ee(f())}let L,h=f=>{L=V.onStop=()=>{G(f,a,4),L=V.onStop=void 0}},v;if(ln)if(h=Y,t?n&&Oe(t,a,3,[m(),I?[]:void 0,h]):m(),o==="sync"){const f=fs();v=f.__watcherHandles||(f.__watcherHandles=[])}else return Y;let C=I?new Array(e.length).fill(Be):Be;const S=()=>{if(!(!V.active||!V.dirty))if(t){const f=V.run();(s||b||(I?f.some((ne,ut)=>X(ne,C[ut])):X(f,C)))&&(L&&L(),Oe(t,a,3,[f,C===Be?void 0:I&&C[0]===Be?[]:C,h]),C=f)}else V.run()};S.allowRecurse=!!t;let $;o==="sync"?$=S:o==="post"?$=()=>nn(S,a&&a.suspense):(S.pre=!0,a&&(S.id=a.uid),$=()=>ot(S));const V=new vo(m,Y,$),N=()=>{V.stop()};return process.env.NODE_ENV!=="production"&&(V.onTrack=c,V.onTrigger=l),t?n?S():C=V.run():o==="post"?nn(V.run.bind(V),a&&a.suspense):V.run(),v&&v.push(N),N}function hs(e,t,n){const s=this.proxy,o=F(e)?e.includes(".")?ms(s,e):()=>s[e]:e.bind(s,s);let r;E(t)?r=t:(r=t.handler,n=t);const c=zs(this),l=ps(o,r.bind(s),n);return c(),l}function ms(e,t){const n=t.split(".");return()=>{let s=e;for(let o=0;o<n.length&&s;o++)s=s[n[o]];return s}}function ee(e,t=1/0,n){if(t<=0||!O(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,R(e))ee(e.value,t,n);else if(_(e))for(let s=0;s<e.length;s++)ee(e[s],t,n);else if(io(e)||J(e))e.forEach(s=>{ee(s,t,n)});else if(ao(e))for(const s in e)ee(e[s],t,n);return e}/*! #__NO_SIDE_EFFECTS__ */function _s(e,t){return E(e)?(()=>k({name:e.name},t,{setup:e}))():e}const rt=e=>e?Ds(e)?Is(e)||e.proxy:rt(e.parent):null,ue=k(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>process.env.NODE_ENV!=="production"?xe(e.props):e.props,$attrs:e=>process.env.NODE_ENV!=="production"?xe(e.attrs):e.attrs,$slots:e=>process.env.NODE_ENV!=="production"?xe(e.slots):e.slots,$refs:e=>process.env.NODE_ENV!=="production"?xe(e.refs):e.refs,$parent:e=>rt(e.parent),$root:e=>rt(e.root),$emit:e=>e.emit,$options:e=>vs(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,ot(e.update)}),$nextTick:e=>e.n||(e.n=es.bind(e.proxy)),$watch:e=>hs.bind(e)}),gs=e=>e==="_"||e==="$",it=(e,t)=>e!==P&&!e.__isScriptSetup&&w(e,t),ws={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:o,props:r,accessCache:c,type:l,appContext:d}=e;if(process.env.NODE_ENV!=="production"&&t==="__isVue")return!0;let a;if(t[0]!=="$"){const I=c[t];if(I!==void 0)switch(I){case 1:return s[t];case 2:return o[t];case 4:return n[t];case 3:return r[t]}else{if(it(s,t))return c[t]=1,s[t];if(o!==P&&w(o,t))return c[t]=2,o[t];if((a=e.propsOptions[0])&&w(a,t))return c[t]=3,r[t];if(n!==P&&w(n,t))return c[t]=4,n[t];c[t]=0}}const u=ue[t];let m,b;if(u)return t==="$attrs"?(y(e.attrs,"get",""),process.env.NODE_ENV!=="production"&&void 0):process.env.NODE_ENV!=="production"&&t==="$slots"&&y(e,"get",t),u(e);if((m=l.__cssModules)&&(m=m[t]))return m;if(n!==P&&w(n,t))return c[t]=4,n[t];if(b=d.config.globalProperties,w(b,t))return b[t];process.env.NODE_ENV!=="production"&&T&&(!F(t)||t.indexOf("__v")!==0)&&(o!==P&&gs(t[0])&&w(o,t)?g(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===T&&g(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:e},t,n){const{data:s,setupState:o,ctx:r}=e;return it(o,t)?(o[t]=n,!0):process.env.NODE_ENV!=="production"&&o.__isScriptSetup&&w(o,t)?(g(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):s!==P&&w(s,t)?(s[t]=n,!0):w(e.props,t)?(process.env.NODE_ENV!=="production"&&g(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in e?(process.env.NODE_ENV!=="production"&&g(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):(process.env.NODE_ENV!=="production"&&t in e.appContext.config.globalProperties?Object.defineProperty(r,t,{enumerable:!0,configurable:!0,value:n}):r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:o,propsOptions:r}},c){let l;return!!n[c]||e!==P&&w(e,c)||it(t,c)||(l=r[0])&&w(l,c)||w(s,c)||w(ue,c)||w(o.config.globalProperties,c)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:w(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};process.env.NODE_ENV!=="production"&&(ws.ownKeys=e=>(g("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e)));function Jt(e){return _(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function vs(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:c}}=e.appContext,l=r.get(t);let d;return l?d=l:!o.length&&!n&&!s?d=t:(d={},o.length&&o.forEach(a=>ze(d,a,c,!0)),ze(d,t,c)),O(t)&&r.set(t,d),d}function ze(e,t,n,s=!1){const{mixins:o,extends:r}=t;r&&ze(e,r,n,!0),o&&o.forEach(c=>ze(e,c,n,!0));for(const c in t)if(s&&c==="expose")process.env.NODE_ENV!=="production"&&g('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const l=Es[c]||n&&n[c];e[c]=l?l(e[c],t[c]):t[c]}return e}const Es={data:Xt,props:Qt,emits:Qt,methods:fe,computed:fe,beforeCreate:x,created:x,beforeMount:x,mounted:x,beforeUpdate:x,updated:x,beforeDestroy:x,beforeUnmount:x,destroyed:x,unmounted:x,activated:x,deactivated:x,errorCaptured:x,serverPrefetch:x,components:fe,directives:fe,watch:bs,provide:Xt,inject:ys};function Xt(e,t){return t?e?function(){return k(E(e)?e.call(this,this):e,E(t)?t.call(this,this):t)}:t:e}function ys(e,t){return fe(Zt(e),Zt(t))}function Zt(e){if(_(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function x(e,t){return e?[...new Set([].concat(e,t))]:t}function fe(e,t){return e?k(Object.create(null),e,t):t}function Qt(e,t){return e?_(e)&&_(t)?[...new Set([...e,...t])]:k(Object.create(null),Jt(e),Jt(t??{})):t}function bs(e,t){if(!e)return t;if(!t)return e;const n=k(Object.create(null),e);for(const s in t)n[s]=x(e[s],t[s]);return n}let en=null;function Ss(e,t,n=!1){const s=$e||T;if(s||en){const o=s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:en._context.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&E(t)?t.call(s&&s.proxy):t;process.env.NODE_ENV!=="production"&&g(`injection "${String(e)}" not found.`)}else process.env.NODE_ENV!=="production"&&g("inject() can only be used inside setup() or functional components.")}const Vs={},tn=e=>Object.getPrototypeOf(e)===Vs,nn=ds,Ns=e=>e.__isTeleport,on=Symbol.for("v-fgt"),xs=Symbol.for("v-txt"),Cs=Symbol.for("v-cmt");let te=null;function ct(e){return e?e.__v_isVNode===!0:!1}const Os=(...e)=>rn(...e),sn=({key:e})=>e??null,De=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?F(e)||R(e)||E(e)?{i:T,r:e,k:t,f:!!n}:e:null);function ks(e,t=null,n=null,s=0,o=null,r=e===on?0:1,c=!1,l=!1){const d={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&sn(t),ref:t&&De(t),scopeId:cs,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:s,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:T};return l?(lt(d,n),r&128&&e.normalize(d)):n&&(d.shapeFlag|=F(n)?8:16),process.env.NODE_ENV!=="production"&&d.key!==d.key&&g("VNode created with invalid key (NaN). VNode type:",d.type),!c&&te&&(d.patchFlag>0||r&6)&&d.patchFlag!==32&&te.push(d),d}const pe=process.env.NODE_ENV!=="production"?Os:rn;function rn(e,t=null,n=null,s=0,o=null,r=!1){if((!e||e===ls)&&(process.env.NODE_ENV!=="production"&&!e&&g(`Invalid vnode type when creating vnode: ${e}.`),e=Cs),ct(e)){const l=Ie(e,t,!0);return n&&lt(l,n),!r&&te&&(l.shapeFlag&6?te[te.indexOf(e)]=l:te.push(l)),l.patchFlag|=-2,l}if(un(e)&&(e=e.__vccOpts),t){t=Fs(t);let{class:l,style:d}=t;l&&!F(l)&&(t.class=Ae(l)),O(d)&&(Xe(d)&&!_(d)&&(d=k({},d)),t.style=Pe(d))}const c=F(e)?1:as(e)?128:Ns(e)?64:O(e)?4:E(e)?2:0;return process.env.NODE_ENV!=="production"&&c&4&&Xe(e)&&(e=p(e),g("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
17
- Component that was made reactive: `,e)),ks(e,t,n,s,o,c,r,!0)}function Fs(e){return e?Xe(e)||tn(e)?k({},e):e:null}function Ie(e,t,n=!1,s=!1){const{props:o,ref:r,patchFlag:c,children:l,transition:d}=e,a=t?Bs(o||{},t):o,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&sn(a),ref:t&&t.ref?n&&r?_(r)?r.concat(De(t)):[r,De(t)]:De(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:process.env.NODE_ENV!=="production"&&c===-1&&_(l)?l.map(cn):l,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==on?c===-1?16:c|16:c,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:d,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ie(e.ssContent),ssFallback:e.ssFallback&&Ie(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return d&&s&&(u.transition=d.clone(u)),u}function cn(e){const t=Ie(e);return _(e.children)&&(t.children=e.children.map(cn)),t}function Rs(e=" ",t=0){return pe(xs,null,e,t)}function lt(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(_(t))n=16;else if(typeof t=="object")if(s&65){const o=t.default;o&&(o._c&&(o._d=!1),lt(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!tn(t)?t._ctx=T:o===3&&T&&(T.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else E(t)?(t={default:t,_ctx:T},n=32):(t=String(t),s&64?(n=16,t=[Rs(t)]):n=8);e.children=t,e.shapeFlag|=n}function Bs(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const o in s)if(o==="class")t.class!==s.class&&(t.class=Ae([t.class,s.class]));else if(o==="style")t.style=Pe([t.style,s.style]);else if(so(o)){const r=t[o],c=s[o];c&&r!==c&&!(_(r)&&r.includes(c))&&(t[o]=r?[].concat(r,c):c)}else o!==""&&(t[o]=s[o])}return t}let $e=null,at;{const e=bt(),t=(n,s)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(s),r=>{o.length>1?o.forEach(c=>c(r)):o[0](r)}};at=t("__VUE_INSTANCE_SETTERS__",n=>$e=n),t("__VUE_SSR_SETTERS__",n=>ln=n)}const zs=e=>{const t=$e;return at(e),e.scope.on(),()=>{e.scope.off(),at(t)}};function Ds(e){return e.vnode.shapeFlag&4}let ln=!1;process.env.NODE_ENV;function Is(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Uo(jo(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ue)return ue[n](e)},has(t,n){return n in t||n in ue}}))}const $s=/(?:^|[-_])(\w)/g,Ms=e=>e.replace($s,t=>t.toUpperCase()).replace(/[-_]/g,"");function an(e,t=!0){return E(e)?e.displayName||e.name:e.name||t&&e.__name}function dn(e,t,n=!1){let s=an(t);if(!s&&t.__file){const o=t.__file.match(/([^/\\]+)\.\w+$/);o&&(s=o[1])}if(!s&&e&&e.parent){const o=r=>{for(const c in r)if(r[c]===t)return c};s=o(e.components||e.parent.type.components)||o(e.appContext.components)}return s?Ms(s):n?"App":"Anonymous"}function un(e){return E(e)&&"__vccOpts"in e}function Ts(e,t,n){const s=arguments.length;return s===2?O(t)&&!_(t)?ct(t)?pe(e,null,[t]):pe(e,t):pe(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&ct(n)&&(n=[n]),pe(e,t,n))}process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV;const Ps={class:"base-header"},As=i.defineComponent({__name:"IkBaseDialog",props:i.mergeModels({title:{default:""},cancelText:{default:"取消"},confirmText:{default:"确认"},noHeader:{type:Boolean},noFooter:{type:Boolean},showCloseBg:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1}},{modelValue:{type:Boolean,default:!1,noHeader:!1,noFooter:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=i.useModel(e,"modelValue"),s=i.ref(t.fullscreen),o=()=>{s.value=!s.value},r=_s({setup(){return console.log("props.showCloseBg",t.showCloseBg),()=>Ts(no,{showBg:t.showCloseBg,fullscreen:t.fullscreen})}});return(c,l)=>{const d=i.resolveComponent("IkSvgIcon"),a=i.resolveComponent("el-dialog");return i.openBlock(),i.createBlock(a,i.mergeProps({modelValue:n.value,"onUpdate:modelValue":l[0]||(l[0]=u=>n.value=u)},c.$attrs,{"close-icon":i.unref(r),class:`ik-base-dialog ${c.noHeader?"no-header":""} ${c.noFooter?"no-footer":""}`,fullscreen:s.value,"modal-class":"baseDialog"}),i.createSlots({icon:i.withCtx(()=>[i.renderSlot(c.$slots,"title",{},()=>[i.createTextVNode(i.toDisplayString(c.title),1)])]),header:i.withCtx(()=>[i.createElementVNode("div",Ps,[i.renderSlot(c.$slots,"header",{},()=>[i.createTextVNode(i.toDisplayString(c.title),1)])]),c.$attrs.showClose?(i.openBlock(),i.createBlock(d,{key:0,onClick:o,name:s.value?"iksvg_tuichuquanping":"iksvg_quanping-daohang",class:"absolute! top-[18px] right-[50px] icon-dialog-full",title:s.value?"退出全屏":"全屏"},null,8,["name","title"])):i.createCommentVNode("v-if",!0)]),default:i.withCtx(()=>[i.renderSlot(c.$slots,"default")]),_:2},[c.$slots.footer?{name:"footer",fn:i.withCtx(()=>[i.renderSlot(c.$slots,"footer")]),key:"0"}:void 0]),1040,["modelValue","close-icon","class","fullscreen"])}}}),M3="";function Hs(e,t,n,s){function o(r){return r instanceof n?r:new n(function(c){c(r)})}return new(n||(n=Promise))(function(r,c){function l(u){try{a(s.next(u))}catch(m){c(m)}}function d(u){try{a(s.throw(u))}catch(m){c(m)}}function a(u){u.done?r(u.value):o(u.value).then(l,d)}a((s=s.apply(e,t||[])).next())})}function js(e,t){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},s,o,r,c;return c={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function l(a){return function(u){return d([a,u])}}function d(a){if(s)throw new TypeError("Generator is already executing.");for(;c&&(c=0,a[0]&&(n=0)),n;)try{if(s=1,o&&(r=a[0]&2?o.return:a[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,a[1])).done)return r;switch(o=0,r&&(a=[a[0]&2,r.value]),a[0]){case 0:case 1:r=a;break;case 4:return n.label++,{value:a[1],done:!1};case 5:n.label++,o=a[1],a=[0];continue;case 7:a=n.ops.pop(),n.trys.pop();continue;default:if(r=n.trys,!(r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){n.label=a[1];break}if(a[0]===6&&n.label<r[1]){n.label=r[1],r=a;break}if(r&&n.label<r[2]){n.label=r[2],n.ops.push(a);break}r[2]&&n.ops.pop(),n.trys.pop();continue}a=t.call(e,n)}catch(u){a=[6,u],o=0}finally{s=r=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}}typeof SuppressedError=="function"&&SuppressedError;var qs=function(e,t){return Hs(void 0,void 0,void 0,function(){return js(this,function(n){return[2,new Promise(function(s,o){try{if(window.DocsAPI)return s(null);var r=document.getElementById(t);if(r)var c=setInterval(function(){var d=r.getAttribute("loading");if(!d){if(clearInterval(c),window.DocsAPI)return s(null);var a=fn(t,e,s,o);r.remove(),document.body.appendChild(a)}},500);else{var l=fn(t,e,s,o);document.body.appendChild(l)}}catch(d){console.error(d)}})]})})},fn=function(e,t,n,s){var o=document.createElement("script");return o.id=e,o.type="text/javascript",o.src=t,o.async=!0,o.onload=function(){o.removeAttribute("loading"),n(null)},o.onerror=function(r){o.removeAttribute("loading"),s(r)},o.setAttribute("loading",""),o},dt=i.defineComponent({name:"DocumentEditor",props:{id:{type:String,required:!0},documentServerUrl:{type:String,required:!0},config:{type:Object,required:!0},document_fileType:String,document_title:String,documentType:String,editorConfig_lang:String,height:String,type:String,width:String,onLoadComponentError:Function,events_onAppReady:Function,events_onDocumentStateChange:Function,events_onMetaChange:Function,events_onDocumentReady:Function,events_onInfo:Function,events_onWarning:Function,events_onError:Function,events_onRequestSharingSettings:Function,events_onRequestRename:Function,events_onMakeActionLink:Function,events_onRequestInsertImage:Function,events_onRequestSaveAs:Function,events_onRequestMailMergeRecipients:Function,events_onRequestCompareFile:Function,events_onRequestEditRights:Function,events_onRequestHistory:Function,events_onRequestHistoryClose:Function,events_onRequestHistoryData:Function,events_onRequestRestore:Function,events_onRequestSelectSpreadsheet:Function,events_onRequestSelectDocument:Function},mounted:function(){var e=this,t=this.documentServerUrl;t.endsWith("/")||(t+="/");var n="".concat(t,"web-apps/apps/api/documents/api.js");qs(n,"onlyoffice-api-script").then(function(){return e.onLoad()}).catch(function(){e.onError(-2)})},unmounted:function(){var e,t=this.id||"";!((e=window==null?void 0:window.DocEditor)===null||e===void 0)&&e.instances[t]&&(window.DocEditor.instances[t].destroyEditor(),window.DocEditor.instances[t]=void 0)},watch:{config:{handler:function(e,t){this.onChangeProps()},deep:!0},document_fileType:function(e,t){this.onChangeProps()},document_title:function(e,t){this.onChangeProps()},documentType:function(e,t){this.onChangeProps()},editorConfig_lang:function(e,t){this.onChangeProps()},height:function(e,t){this.onChangeProps()},type:function(e,t){this.onChangeProps()},width:function(e,t){this.onChangeProps()}},methods:{onLoad:function(){var e,t;try{var n=this.id||"";if(window.DocsAPI||this.onError(-3),!((e=window==null?void 0:window.DocEditor)===null||e===void 0)&&e.instances[n]){console.log("Skip loading. Instance already exists",n);return}!((t=window==null?void 0:window.DocEditor)===null||t===void 0)&&t.instances||(window.DocEditor={instances:{}});var s=Object.assign({document:{fileType:this.document_fileType,title:this.document_title},documentType:this.documentType,editorConfig:{lang:this.editorConfig_lang},events:{onAppReady:this.onAppReady,onDocumentStateChange:this.events_onDocumentStateChange,onMetaChange:this.events_onMetaChange,onDocumentReady:this.events_onDocumentReady,onInfo:this.events_onInfo,onWarning:this.events_onWarning,onError:this.events_onError,onRequestSharingSettings:this.events_onRequestSharingSettings,onRequestRename:this.events_onRequestRename,onMakeActionLink:this.events_onMakeActionLink,onRequestInsertImage:this.events_onRequestInsertImage,onRequestSaveAs:this.events_onRequestSaveAs,onRequestMailMergeRecipients:this.events_onRequestMailMergeRecipients,onRequestCompareFile:this.events_onRequestCompareFile,onRequestEditRights:this.events_onRequestEditRights,onRequestHistory:this.events_onRequestHistory,onRequestHistoryClose:this.events_onRequestHistoryClose,onRequestHistoryData:this.events_onRequestHistoryData,onRequestRestore:this.events_onRequestRestore,onRequestSelectSpreadsheet:this.events_onRequestSelectSpreadsheet,onRequestSelectDocument:this.events_onRequestSelectDocument},height:this.height,type:this.type,width:this.width},this.config||{}),o=window.DocsAPI.DocEditor(n,s);window.DocEditor.instances[n]=o}catch(r){console.error(r),this.onError(-1)}},onError:function(e){var t;switch(e){case-2:t="Error load DocsAPI from "+this.documentServerUrl;break;case-3:t="DocsAPI is not defined";break;default:t="Unknown error loading component",e=-1}typeof this.onLoadComponentError>"u"?console.error(t):this.onLoadComponentError(e,t)},onAppReady:function(){var e=this.id||"";this.events_onAppReady(window.DocEditor.instances[e])},onChangeProps:function(){var e,t=this.id||"";!((e=window==null?void 0:window.DocEditor)===null||e===void 0)&&e.instances[t]&&(window.DocEditor.instances[t].destroyEditor(),window.DocEditor.instances[t]=void 0,console.log("Important props have been changed. Load new Editor."),this.onLoad())}}});const Ls=["id"];function Us(e,t,n,s,o,r){return i.openBlock(),i.createElementBlock("div",{id:e.id},null,8,Ls)}dt.render=Us,dt.__file="src/components/DocumentEditor.vue";const Ks=i.defineComponent({__name:"IkOnlyOffice",props:{documentServerUrl:{type:String,default:""},mode:{type:String,default:""},configOptions:{type:Object,default:()=>{}},officeHeight:{type:String,default:"100%"},token:{type:String,default:""}},setup(e){var o,r,c,l;const t=e,n=i.ref({width:"100%",height:"100%",document:(o=t.configOptions)==null?void 0:o.document,documentType:(r=t.configOptions)==null?void 0:r.documentType,editorConfig:{callbackUrl:(l=(c=t.configOptions)==null?void 0:c.editorConfig)==null?void 0:l.callbackUrl,lang:"zh-CN",mode:t.mode,customization:{forcesave:!0,autosave:!0}},permissions:{comment:!0,commentGroups:{edit:["Group1"],remove:["Group1"],view:""},copy:!0,deleteCommentAuthorOnly:!0,download:!0,edit:!0,editCommentAuthorOnly:!0,fillForms:!0,modifyContentControl:!0,modifyFilter:!0,print:!0,review:!0,reviewGroups:["Group1","Group2","Group3"],userInfoGroups:["Group1"]},mode:t.mode,token:t.token}),s=()=>{console.info("文档加载中")};return(d,a)=>(i.openBlock(),i.createElementBlock("div",{style:i.normalizeStyle({height:t.officeHeight})},[i.createVNode(i.unref(dt),{id:`${new Date().getTime()}`,ref:"editorRef","document-server-url":e.documentServerUrl,config:n.value,events_onDocumentReady:s},null,8,["id","document-server-url","config"])],4))}}),T3="",Ws=gt(Ks,[["__scopeId","data-v-b024b1a1"]]),Gs=["onClick"],Ys={class:"text"},Js={class:"fileName"},Xs={class:"size"},Zs={class:"w-full h-full overflow-hidden flex-center"},Qs=["src"],e3=i.defineComponent({__name:"IKPreviewFile",props:{list:{type:Array,default:()=>[]},kkUrl:{required:!0,type:String,default:""},url:{required:!0,type:String,default:""},loadUrl:{type:String,default:""},field:{required:!0,type:Object,default:()=>({name:"attachmentName",url:"attachmentId",suffix:"attachmentSuffix",size:"attachmentSize"})},iconSize:{type:Number,default:40},showBg:{type:Boolean,default:!0},width:{type:Number||String,default:"100%"},iconHoverShow:{type:Boolean,default:!1},isOnlyOfficepPreview:{type:Boolean,default:!1},onlyOfficeAccept:{type:String,default:".pdf,.docx,.doc.ppt,.pptx,.xlsx,.xls,"},onlyofficeServer:{type:String,default:""}},setup(e){const t=e,n=i.computed(()=>({name:"name",url:"url",suffix:"suffix",size:"size",...t.field})),s=i.ref(null),o=i.computed(()=>{var v,C,S;if(!t.kkUrl||!((v=r.data)!=null&&v[n.value.url]))return"";const h=t.loadUrl?t.loadUrl:location.href;return`${t.kkUrl}/onlinePreview?url=${encodeURIComponent(En(`${me(h,(C=r.data)==null?void 0:C[n.value.url])}&fullfilename=${(S=r.data)==null?void 0:S[n.value.name]}`))}`}),r=i.reactive({show:!1,data:{}}),c=i.ref(null),l=i.ref(!1),d=i.ref(!1),a=i.ref(null),u=h=>{var v,C,S,$;if(c.value={...h,name:h[n.value.name],url:me(t.loadUrl,h[n.value.url]||((C=(v=h==null?void 0:h.response)==null?void 0:v.data)==null?void 0:C.id))},t.isOnlyOfficepPreview&&t.onlyOfficeAccept.includes(h.attachmentSuffix)){d.value=!0,a.value={documentType:"word",document:{key:he.buildUUID(),title:h[n.value.name],url:me(t.loadUrl,h[n.value.url]||(($=(S=h==null?void 0:h.response)==null?void 0:S.data)==null?void 0:$.id))},editorConfig:{customization:{review:{reviewDisplay:"final"}}}};return}h&&wt(h,n.value)==="image"?l.value=!0:(b.value=!0,r.data=h,r.show=!0,i.nextTick(()=>{s.value.onload=()=>{b.value=!1}}))},m=h=>{he.ikFile.downloadFile(me(t.loadUrl,h[n.value.url]),h[n.value.name])},b=i.ref(!1),I=i.computed(()=>he.paramType.isNumber(t.width)?`${t.width}px`:t.width),L=()=>{d.value=!1};return(h,v)=>{var S,$,V;const C=i.resolveComponent("el-image-viewer");return i.openBlock(),i.createElementBlock(i.Fragment,null,[(S=e.list)!=null&&S.length?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(e.list,(N,f)=>{var ne;return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["iking-privew-annex",{"is-bg":e.showBg}]),key:f,style:i.normalizeStyle({marginBottom:f==((ne=e.list)==null?void 0:ne.length)-1?"0":"10px",width:I.value})},[i.createElementVNode("div",{class:"file-card",onClick:ut=>u(N)},[i.createVNode(Kn,{file:N,style:i.normalizeStyle({height:`${e.iconSize}px`}),class:"ikui-w-auto",fields:n.value},null,8,["file","style","fields"]),i.createElementVNode("div",Ys,[i.createElementVNode("div",Js,i.toDisplayString(N[n.value.name]),1),i.createElementVNode("div",Xs,i.toDisplayString(i.unref(yn)(N[n.value.size])),1)]),i.createElementVNode("div",{class:i.normalizeClass(["flex flex-center",{"hover-show":e.iconHoverShow}])},[i.createVNode(i.unref(_e),{name:"iksvg_daochu",onClick:i.withModifiers(ut=>m(N),["stop"]),bg:e.showBg,size:e.showBg?"default":20},null,8,["onClick","bg","size"]),i.createVNode(i.unref(_e),{name:"iksvg_yulan",bg:e.showBg,size:e.showBg?"default":20},null,8,["bg","size"]),i.renderSlot(h.$slots,"operation",{data:{...N,findex:f}})],2)],8,Gs)],6)}),128)):i.createCommentVNode("v-if",!0),i.createVNode(i.unref(ft.ElDialog),{fullscreen:"",modelValue:r.show,"onUpdate:modelValue":v[0]||(v[0]=N=>r.show=N),"destroy-on-close":"","append-to-body":"","modal-class":"ik-file-preview-modal",onClose:v[1]||(v[1]=N=>h.$emit("update:modelValue",!1)),class:"ik-file-preview"},{default:i.withCtx(()=>[i.withDirectives((i.openBlock(),i.createElementBlock("div",Zs,[r.show?(i.openBlock(),i.createElementBlock("iframe",{key:0,ref_key:"freamRef",ref:s,"cross-origin":"",src:o.value,frameborder:"0",allowfullscreen:"",seamless:""},null,8,Qs)):i.createCommentVNode("v-if",!0)])),[[i.unref(ft.vLoading),b.value]])]),_:1},8,["modelValue"]),($=c.value)!=null&&$.url&&l.value?(i.openBlock(),i.createBlock(C,{key:1,onClose:v[2]||(v[2]=N=>(c.value=null,l.value=!1)),ref:"previewImgRef","url-list":[(V=c.value)==null?void 0:V.url]},null,8,["url-list"])):i.createCommentVNode("v-if",!0),i.createCommentVNode(" "),i.createVNode(As,{modelValue:d.value,"onUpdate:modelValue":v[3]||(v[3]=N=>d.value=N),draggable:"","no-footer":!0,"no-header":!0,fullscreen:!0,showCloseBg:!0,"destroy-on-close":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"append-to-body":"",onClose:L,"modal-class":"preview-dialog"},{default:i.withCtx(()=>[d.value?(i.openBlock(),i.createBlock(Ws,{key:0,"config-options":a.value,documentServerUrl:e.onlyofficeServer,token:t.jwtToken,mode:"view"},null,8,["config-options","documentServerUrl","token"])):i.createCommentVNode("v-if",!0)]),_:1},8,["modelValue"])],64)}}}),P3="",pn=pt(e3);z.IkPreviewFile=pn,z.default=pn,Object.defineProperties(z,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
17
+ Component that was made reactive: `,e)),ks(e,t,n,s,o,c,r,!0)}function Fs(e){return e?Xe(e)||tn(e)?k({},e):e:null}function Ie(e,t,n=!1,s=!1){const{props:o,ref:r,patchFlag:c,children:l,transition:d}=e,a=t?Bs(o||{},t):o,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&sn(a),ref:t&&t.ref?n&&r?_(r)?r.concat(De(t)):[r,De(t)]:De(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:process.env.NODE_ENV!=="production"&&c===-1&&_(l)?l.map(cn):l,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==on?c===-1?16:c|16:c,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:d,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ie(e.ssContent),ssFallback:e.ssFallback&&Ie(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return d&&s&&(u.transition=d.clone(u)),u}function cn(e){const t=Ie(e);return _(e.children)&&(t.children=e.children.map(cn)),t}function Rs(e=" ",t=0){return pe(xs,null,e,t)}function lt(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(_(t))n=16;else if(typeof t=="object")if(s&65){const o=t.default;o&&(o._c&&(o._d=!1),lt(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!tn(t)?t._ctx=T:o===3&&T&&(T.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else E(t)?(t={default:t,_ctx:T},n=32):(t=String(t),s&64?(n=16,t=[Rs(t)]):n=8);e.children=t,e.shapeFlag|=n}function Bs(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const o in s)if(o==="class")t.class!==s.class&&(t.class=Ae([t.class,s.class]));else if(o==="style")t.style=Pe([t.style,s.style]);else if(so(o)){const r=t[o],c=s[o];c&&r!==c&&!(_(r)&&r.includes(c))&&(t[o]=r?[].concat(r,c):c)}else o!==""&&(t[o]=s[o])}return t}let $e=null,at;{const e=bt(),t=(n,s)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(s),r=>{o.length>1?o.forEach(c=>c(r)):o[0](r)}};at=t("__VUE_INSTANCE_SETTERS__",n=>$e=n),t("__VUE_SSR_SETTERS__",n=>ln=n)}const zs=e=>{const t=$e;return at(e),e.scope.on(),()=>{e.scope.off(),at(t)}};function Ds(e){return e.vnode.shapeFlag&4}let ln=!1;process.env.NODE_ENV;function Is(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Uo(jo(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ue)return ue[n](e)},has(t,n){return n in t||n in ue}}))}const $s=/(?:^|[-_])(\w)/g,Ms=e=>e.replace($s,t=>t.toUpperCase()).replace(/[-_]/g,"");function an(e,t=!0){return E(e)?e.displayName||e.name:e.name||t&&e.__name}function dn(e,t,n=!1){let s=an(t);if(!s&&t.__file){const o=t.__file.match(/([^/\\]+)\.\w+$/);o&&(s=o[1])}if(!s&&e&&e.parent){const o=r=>{for(const c in r)if(r[c]===t)return c};s=o(e.components||e.parent.type.components)||o(e.appContext.components)}return s?Ms(s):n?"App":"Anonymous"}function un(e){return E(e)&&"__vccOpts"in e}function Ts(e,t,n){const s=arguments.length;return s===2?O(t)&&!_(t)?ct(t)?pe(e,null,[t]):pe(e,t):pe(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&ct(n)&&(n=[n]),pe(e,t,n))}process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV;const Ps={class:"base-header"},As=i.defineComponent({__name:"IkBaseDialog",props:i.mergeModels({title:{default:""},cancelText:{default:"取消"},confirmText:{default:"确认"},noHeader:{type:Boolean},noFooter:{type:Boolean},showCloseBg:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1}},{modelValue:{type:Boolean,default:!1,noHeader:!1,noFooter:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=i.useModel(e,"modelValue"),s=i.ref(t.fullscreen),o=()=>{s.value=!s.value},r=_s({setup(){return console.log("props.showCloseBg",t.showCloseBg),()=>Ts(no,{showBg:t.showCloseBg,fullscreen:t.fullscreen})}});return(c,l)=>{const d=i.resolveComponent("IkSvgIcon"),a=i.resolveComponent("el-dialog");return i.openBlock(),i.createBlock(a,i.mergeProps({modelValue:n.value,"onUpdate:modelValue":l[0]||(l[0]=u=>n.value=u)},c.$attrs,{"close-icon":i.unref(r),class:`ik-base-dialog ${c.noHeader?"no-header":""} ${c.noFooter?"no-footer":""}`,fullscreen:s.value,"modal-class":"baseDialog"}),i.createSlots({icon:i.withCtx(()=>[i.renderSlot(c.$slots,"title",{},()=>[i.createTextVNode(i.toDisplayString(c.title),1)])]),header:i.withCtx(()=>[i.createElementVNode("div",Ps,[i.renderSlot(c.$slots,"header",{},()=>[i.createTextVNode(i.toDisplayString(c.title),1)])]),c.$attrs.showClose?(i.openBlock(),i.createBlock(d,{key:0,onClick:o,name:s.value?"iksvg_tuichuquanping":"iksvg_quanping-daohang",class:"absolute! top-[18px] right-[50px] icon-dialog-full",title:s.value?"退出全屏":"全屏"},null,8,["name","title"])):i.createCommentVNode("v-if",!0)]),default:i.withCtx(()=>[i.renderSlot(c.$slots,"default")]),_:2},[c.$slots.footer?{name:"footer",fn:i.withCtx(()=>[i.renderSlot(c.$slots,"footer")]),key:"0"}:void 0]),1040,["modelValue","close-icon","class","fullscreen"])}}}),M3="";function Hs(e,t,n,s){function o(r){return r instanceof n?r:new n(function(c){c(r)})}return new(n||(n=Promise))(function(r,c){function l(u){try{a(s.next(u))}catch(m){c(m)}}function d(u){try{a(s.throw(u))}catch(m){c(m)}}function a(u){u.done?r(u.value):o(u.value).then(l,d)}a((s=s.apply(e,t||[])).next())})}function js(e,t){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},s,o,r,c;return c={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function l(a){return function(u){return d([a,u])}}function d(a){if(s)throw new TypeError("Generator is already executing.");for(;c&&(c=0,a[0]&&(n=0)),n;)try{if(s=1,o&&(r=a[0]&2?o.return:a[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,a[1])).done)return r;switch(o=0,r&&(a=[a[0]&2,r.value]),a[0]){case 0:case 1:r=a;break;case 4:return n.label++,{value:a[1],done:!1};case 5:n.label++,o=a[1],a=[0];continue;case 7:a=n.ops.pop(),n.trys.pop();continue;default:if(r=n.trys,!(r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){n.label=a[1];break}if(a[0]===6&&n.label<r[1]){n.label=r[1],r=a;break}if(r&&n.label<r[2]){n.label=r[2],n.ops.push(a);break}r[2]&&n.ops.pop(),n.trys.pop();continue}a=t.call(e,n)}catch(u){a=[6,u],o=0}finally{s=r=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}}typeof SuppressedError=="function"&&SuppressedError;var qs=function(e,t){return Hs(void 0,void 0,void 0,function(){return js(this,function(n){return[2,new Promise(function(s,o){try{if(window.DocsAPI)return s(null);var r=document.getElementById(t);if(r)var c=setInterval(function(){var d=r.getAttribute("loading");if(!d){if(clearInterval(c),window.DocsAPI)return s(null);var a=fn(t,e,s,o);r.remove(),document.body.appendChild(a)}},500);else{var l=fn(t,e,s,o);document.body.appendChild(l)}}catch(d){console.error(d)}})]})})},fn=function(e,t,n,s){var o=document.createElement("script");return o.id=e,o.type="text/javascript",o.src=t,o.async=!0,o.onload=function(){o.removeAttribute("loading"),n(null)},o.onerror=function(r){o.removeAttribute("loading"),s(r)},o.setAttribute("loading",""),o},dt=i.defineComponent({name:"DocumentEditor",props:{id:{type:String,required:!0},documentServerUrl:{type:String,required:!0},config:{type:Object,required:!0},document_fileType:String,document_title:String,documentType:String,editorConfig_lang:String,height:String,type:String,width:String,onLoadComponentError:Function,events_onAppReady:Function,events_onDocumentStateChange:Function,events_onMetaChange:Function,events_onDocumentReady:Function,events_onInfo:Function,events_onWarning:Function,events_onError:Function,events_onRequestSharingSettings:Function,events_onRequestRename:Function,events_onMakeActionLink:Function,events_onRequestInsertImage:Function,events_onRequestSaveAs:Function,events_onRequestMailMergeRecipients:Function,events_onRequestCompareFile:Function,events_onRequestEditRights:Function,events_onRequestHistory:Function,events_onRequestHistoryClose:Function,events_onRequestHistoryData:Function,events_onRequestRestore:Function,events_onRequestSelectSpreadsheet:Function,events_onRequestSelectDocument:Function},mounted:function(){var e=this,t=this.documentServerUrl;t.endsWith("/")||(t+="/");var n="".concat(t,"web-apps/apps/api/documents/api.js");qs(n,"onlyoffice-api-script").then(function(){return e.onLoad()}).catch(function(){e.onError(-2)})},unmounted:function(){var e,t=this.id||"";!((e=window==null?void 0:window.DocEditor)===null||e===void 0)&&e.instances[t]&&(window.DocEditor.instances[t].destroyEditor(),window.DocEditor.instances[t]=void 0)},watch:{config:{handler:function(e,t){this.onChangeProps()},deep:!0},document_fileType:function(e,t){this.onChangeProps()},document_title:function(e,t){this.onChangeProps()},documentType:function(e,t){this.onChangeProps()},editorConfig_lang:function(e,t){this.onChangeProps()},height:function(e,t){this.onChangeProps()},type:function(e,t){this.onChangeProps()},width:function(e,t){this.onChangeProps()}},methods:{onLoad:function(){var e,t;try{var n=this.id||"";if(window.DocsAPI||this.onError(-3),!((e=window==null?void 0:window.DocEditor)===null||e===void 0)&&e.instances[n]){console.log("Skip loading. Instance already exists",n);return}!((t=window==null?void 0:window.DocEditor)===null||t===void 0)&&t.instances||(window.DocEditor={instances:{}});var s=Object.assign({document:{fileType:this.document_fileType,title:this.document_title},documentType:this.documentType,editorConfig:{lang:this.editorConfig_lang},events:{onAppReady:this.onAppReady,onDocumentStateChange:this.events_onDocumentStateChange,onMetaChange:this.events_onMetaChange,onDocumentReady:this.events_onDocumentReady,onInfo:this.events_onInfo,onWarning:this.events_onWarning,onError:this.events_onError,onRequestSharingSettings:this.events_onRequestSharingSettings,onRequestRename:this.events_onRequestRename,onMakeActionLink:this.events_onMakeActionLink,onRequestInsertImage:this.events_onRequestInsertImage,onRequestSaveAs:this.events_onRequestSaveAs,onRequestMailMergeRecipients:this.events_onRequestMailMergeRecipients,onRequestCompareFile:this.events_onRequestCompareFile,onRequestEditRights:this.events_onRequestEditRights,onRequestHistory:this.events_onRequestHistory,onRequestHistoryClose:this.events_onRequestHistoryClose,onRequestHistoryData:this.events_onRequestHistoryData,onRequestRestore:this.events_onRequestRestore,onRequestSelectSpreadsheet:this.events_onRequestSelectSpreadsheet,onRequestSelectDocument:this.events_onRequestSelectDocument},height:this.height,type:this.type,width:this.width},this.config||{}),o=window.DocsAPI.DocEditor(n,s);window.DocEditor.instances[n]=o}catch(r){console.error(r),this.onError(-1)}},onError:function(e){var t;switch(e){case-2:t="Error load DocsAPI from "+this.documentServerUrl;break;case-3:t="DocsAPI is not defined";break;default:t="Unknown error loading component",e=-1}typeof this.onLoadComponentError>"u"?console.error(t):this.onLoadComponentError(e,t)},onAppReady:function(){var e=this.id||"";this.events_onAppReady(window.DocEditor.instances[e])},onChangeProps:function(){var e,t=this.id||"";!((e=window==null?void 0:window.DocEditor)===null||e===void 0)&&e.instances[t]&&(window.DocEditor.instances[t].destroyEditor(),window.DocEditor.instances[t]=void 0,console.log("Important props have been changed. Load new Editor."),this.onLoad())}}});const Ls=["id"];function Us(e,t,n,s,o,r){return i.openBlock(),i.createElementBlock("div",{id:e.id},null,8,Ls)}dt.render=Us,dt.__file="src/components/DocumentEditor.vue";const Ks=i.defineComponent({__name:"IkOnlyOffice",props:{documentServerUrl:{type:String,default:""},mode:{type:String,default:""},configOptions:{type:Object,default:()=>{}},officeHeight:{type:String,default:"100%"},token:{type:String,default:""}},setup(e){var o,r,c,l;const t=e,n=i.ref({width:"100%",height:"100%",document:(o=t.configOptions)==null?void 0:o.document,documentType:(r=t.configOptions)==null?void 0:r.documentType,editorConfig:{callbackUrl:(l=(c=t.configOptions)==null?void 0:c.editorConfig)==null?void 0:l.callbackUrl,lang:"zh-CN",mode:t.mode,customization:{forcesave:!0,autosave:!0}},permissions:{comment:!0,commentGroups:{edit:["Group1"],remove:["Group1"],view:""},copy:!0,deleteCommentAuthorOnly:!0,download:!0,edit:!0,editCommentAuthorOnly:!0,fillForms:!0,modifyContentControl:!0,modifyFilter:!0,print:!0,review:!0,reviewGroups:["Group1","Group2","Group3"],userInfoGroups:["Group1"]},mode:t.mode,token:t.token}),s=()=>{console.info("文档加载中")};return(d,a)=>(i.openBlock(),i.createElementBlock("div",{style:i.normalizeStyle({height:t.officeHeight})},[i.createVNode(i.unref(dt),{id:`${new Date().getTime()}`,ref:"editorRef","document-server-url":e.documentServerUrl,config:n.value,events_onDocumentReady:s},null,8,["id","document-server-url","config"])],4))}}),T3="",Ws=gt(Ks,[["__scopeId","data-v-b024b1a1"]]),Gs=["onClick"],Ys={class:"text"},Js={class:"fileName"},Xs={class:"size"},Zs={class:"w-full h-full overflow-hidden flex-center"},Qs=["src"],e3=i.defineComponent({__name:"IKPreviewFile",props:{list:{type:Array,default:()=>[]},kkUrl:{required:!0,type:String,default:""},url:{required:!0,type:String,default:""},loadUrl:{type:String,default:""},field:{required:!0,type:Object,default:()=>({name:"attachmentName",url:"attachmentId",suffix:"attachmentSuffix",size:"attachmentSize"})},iconSize:{type:Number,default:40},showBg:{type:Boolean,default:!0},width:{type:Number||String,default:"100%"},iconHoverShow:{type:Boolean,default:!1},isOnlyOfficePreview:{type:Boolean,default:!1},onlyOfficeAccept:{type:String,default:".pdf,.docx,.doc.ppt,.pptx,.xlsx,.xls,"},onlyofficeServer:{type:String,default:""}},setup(e){const t=e,n=i.computed(()=>({name:"name",url:"url",suffix:"suffix",size:"size",...t.field})),s=i.ref(null),o=i.computed(()=>{var v,C,S;if(!t.kkUrl||!((v=r.data)!=null&&v[n.value.url]))return"";const h=t.loadUrl?t.loadUrl:location.href;return`${t.kkUrl}/onlinePreview?url=${encodeURIComponent(En(`${me(h,(C=r.data)==null?void 0:C[n.value.url])}&fullfilename=${(S=r.data)==null?void 0:S[n.value.name]}`))}`}),r=i.reactive({show:!1,data:{}}),c=i.ref(null),l=i.ref(!1),d=i.ref(!1),a=i.ref(null),u=h=>{var v,C,S,$;if(c.value={...h,name:h[n.value.name],url:me(t.loadUrl,h[n.value.url]||((C=(v=h==null?void 0:h.response)==null?void 0:v.data)==null?void 0:C.id))},t.isOnlyOfficePreview&&t.onlyOfficeAccept.includes(h.attachmentSuffix)){d.value=!0,a.value={documentType:"word",document:{key:he.buildUUID(),title:h[n.value.name],url:me(t.loadUrl,h[n.value.url]||(($=(S=h==null?void 0:h.response)==null?void 0:S.data)==null?void 0:$.id))},editorConfig:{customization:{review:{reviewDisplay:"final"}}}};return}h&&wt(h,n.value)==="image"?l.value=!0:(b.value=!0,r.data=h,r.show=!0,i.nextTick(()=>{s.value.onload=()=>{b.value=!1}}))},m=h=>{he.ikFile.downloadFile(me(t.loadUrl,h[n.value.url]),h[n.value.name])},b=i.ref(!1),I=i.computed(()=>he.paramType.isNumber(t.width)?`${t.width}px`:t.width),L=()=>{d.value=!1};return(h,v)=>{var S,$,V;const C=i.resolveComponent("el-image-viewer");return i.openBlock(),i.createElementBlock(i.Fragment,null,[(S=e.list)!=null&&S.length?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(e.list,(N,f)=>{var ne;return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["iking-privew-annex",{"is-bg":e.showBg}]),key:f,style:i.normalizeStyle({marginBottom:f==((ne=e.list)==null?void 0:ne.length)-1?"0":"10px",width:I.value})},[i.createElementVNode("div",{class:"file-card",onClick:ut=>u(N)},[i.createVNode(Kn,{file:N,style:i.normalizeStyle({height:`${e.iconSize}px`}),class:"ikui-w-auto",fields:n.value},null,8,["file","style","fields"]),i.createElementVNode("div",Ys,[i.createElementVNode("div",Js,i.toDisplayString(N[n.value.name]),1),i.createElementVNode("div",Xs,i.toDisplayString(i.unref(yn)(N[n.value.size])),1)]),i.createElementVNode("div",{class:i.normalizeClass(["flex flex-center",{"hover-show":e.iconHoverShow}])},[i.createVNode(i.unref(_e),{name:"iksvg_daochu",onClick:i.withModifiers(ut=>m(N),["stop"]),bg:e.showBg,size:e.showBg?"default":20},null,8,["onClick","bg","size"]),i.createVNode(i.unref(_e),{name:"iksvg_yulan",bg:e.showBg,size:e.showBg?"default":20},null,8,["bg","size"]),i.renderSlot(h.$slots,"operation",{data:{...N,findex:f}})],2)],8,Gs)],6)}),128)):i.createCommentVNode("v-if",!0),i.createVNode(i.unref(ft.ElDialog),{fullscreen:"",modelValue:r.show,"onUpdate:modelValue":v[0]||(v[0]=N=>r.show=N),"destroy-on-close":"","append-to-body":"","modal-class":"ik-file-preview-modal",onClose:v[1]||(v[1]=N=>h.$emit("update:modelValue",!1)),class:"ik-file-preview"},{default:i.withCtx(()=>[i.withDirectives((i.openBlock(),i.createElementBlock("div",Zs,[r.show?(i.openBlock(),i.createElementBlock("iframe",{key:0,ref_key:"freamRef",ref:s,"cross-origin":"",src:o.value,frameborder:"0",allowfullscreen:"",seamless:""},null,8,Qs)):i.createCommentVNode("v-if",!0)])),[[i.unref(ft.vLoading),b.value]])]),_:1},8,["modelValue"]),($=c.value)!=null&&$.url&&l.value?(i.openBlock(),i.createBlock(C,{key:1,onClose:v[2]||(v[2]=N=>(c.value=null,l.value=!1)),ref:"previewImgRef","url-list":[(V=c.value)==null?void 0:V.url]},null,8,["url-list"])):i.createCommentVNode("v-if",!0),i.createCommentVNode(" "),i.createVNode(As,{modelValue:d.value,"onUpdate:modelValue":v[3]||(v[3]=N=>d.value=N),draggable:"","no-footer":!0,"no-header":!0,fullscreen:!0,showCloseBg:!0,"destroy-on-close":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"append-to-body":"",onClose:L,"modal-class":"preview-dialog"},{default:i.withCtx(()=>[d.value?(i.openBlock(),i.createBlock(Ws,{key:0,"config-options":a.value,documentServerUrl:e.onlyofficeServer,token:t.jwtToken,mode:"view"},null,8,["config-options","documentServerUrl","token"])):i.createCommentVNode("v-if",!0)]),_:1},8,["modelValue"])],64)}}}),P3="",pn=pt(e3);z.IkPreviewFile=pn,z.default=pn,Object.defineProperties(z,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -2794,7 +2794,7 @@ const ni = /* @__PURE__ */ gt(ti, [["__scopeId", "data-v-b024b1a1"]]), oi = ["on
2794
2794
  default: !1
2795
2795
  },
2796
2796
  // 是否需要onlyoffice预览
2797
- isOnlyOfficepPreview: {
2797
+ isOnlyOfficePreview: {
2798
2798
  type: Boolean,
2799
2799
  default: !1
2800
2800
  },
@@ -2841,7 +2841,7 @@ const ni = /* @__PURE__ */ gt(ti, [["__scopeId", "data-v-b024b1a1"]]), oi = ["on
2841
2841
  t.loadUrl,
2842
2842
  w[n.value.url] || ((F = (E = w == null ? void 0 : w.response) == null ? void 0 : E.data) == null ? void 0 : F.id)
2843
2843
  )
2844
- }, t.isOnlyOfficepPreview && t.onlyOfficeAccept.includes(w.attachmentSuffix)) {
2844
+ }, t.isOnlyOfficePreview && t.onlyOfficeAccept.includes(w.attachmentSuffix)) {
2845
2845
  d.value = !0, c.value = {
2846
2846
  documentType: "word",
2847
2847
  document: {