iking-web-ui-pro 0.1.55 → 0.1.56

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.
Files changed (53) hide show
  1. package/dist/{IkDescription → IKDescription}/ik.index.es.js +5 -5
  2. package/dist/IKDescription/ik.index.umd.js +1 -0
  3. package/dist/IKDescription/style.css +1 -0
  4. package/dist/IKDetailPreviewFiles/ik.index.es.js +1 -1
  5. package/dist/IKDetailPreviewFiles/ik.index.umd.js +1 -1
  6. package/dist/IKPreviewFile/ik.index.es.js +1 -1
  7. package/dist/IKPreviewFile/ik.index.umd.js +4 -4
  8. package/dist/IkApprovalProcessDetail/ik.index.es.js +1 -1
  9. package/dist/IkApprovalProcessDetail/ik.index.umd.js +1 -1
  10. package/dist/IkAutoCard/ik.index.es.js +6 -6
  11. package/dist/IkAutoCard/ik.index.umd.js +1 -1
  12. package/dist/IkAutoCard/style.css +1 -1
  13. package/dist/index.es.js +4 -4
  14. package/dist/index.umd.js +2 -2
  15. package/dist/src/components/IKDetailPreviewFiles/index.d.ts +2 -2
  16. package/dist/src/components/IKDetailPreviewFiles/src/IKDetailPreviewFiles.vue.d.ts +2 -2
  17. package/dist/src/components/IKHorizontalStepBar/index.d.ts +3 -3
  18. package/dist/src/components/IKPreviewFile/index.d.ts +21 -21
  19. package/dist/src/components/IKPreviewFile/src/IkPreviewFile.vue.d.ts +7 -7
  20. package/dist/src/components/IKPreviewFileDialog/index.d.ts +2 -2
  21. package/dist/src/components/IKPreviewFileDialog/src/IkPreviewFileDialog.vue.d.ts +2 -2
  22. package/dist/src/components/IKSearch/index.d.ts +3 -3
  23. package/dist/src/components/IKSearch/src/IKSearch.vue.d.ts +1 -1
  24. package/dist/src/components/IkApprovalProcess/index.d.ts +1 -1
  25. package/dist/src/components/IkApprovalProcess/src/IKApprovalProcess.vue.d.ts +1 -1
  26. package/dist/src/components/IkApprovalProcessDetail/index.d.ts +1 -1
  27. package/dist/src/components/IkApprovalProcessDetail/src/IKApprovalProcessDetail.vue.d.ts +1 -1
  28. package/dist/src/components/IkBtnSetting/index.d.ts +1 -1
  29. package/dist/src/components/IkBtnSetting/src/IkBtnSetting.vue.d.ts +1 -1
  30. package/dist/src/components/IkDescription/index.d.ts +18 -18
  31. package/dist/src/components/IkDragList/index.d.ts +3 -3
  32. package/dist/src/components/IkDragList/src/IkDragList.vue.d.ts +1 -1
  33. package/dist/src/components/IkPageFull/index.d.ts +3 -3
  34. package/dist/src/components/IkPageFull/src/IkPageTable.vue.d.ts +1 -1
  35. package/dist/src/components/IkPageFull/src/IkSearchAuto copy.d.ts +1 -1
  36. package/dist/src/components/IkPageFull/src/IkSearchAuto.d.ts +1 -1
  37. package/dist/src/components/IkPageFull/src/index.vue.d.ts +1 -1
  38. package/dist/src/components/IkPickerUser/index.d.ts +1 -1
  39. package/dist/src/components/IkPickerUser/src/picker.vue.d.ts +1 -1
  40. package/dist/src/components/IkSideText/IkSideText.vue.d.ts +2 -2
  41. package/dist/src/components/IkSideText/index.d.ts +2 -2
  42. package/dist/src/components/IkSvgIcon/index.d.ts +24 -24
  43. package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +2 -2
  44. package/dist/src/components/IkTinymce/index.d.ts +2 -2
  45. package/dist/src/components/IkTinymce/src/index.vue.d.ts +2 -2
  46. package/dist/src/components/IkUploadFile/src/index.vue.d.ts +3 -3
  47. package/dist/src/components/IkUploadImage/index.d.ts +6 -6
  48. package/dist/src/components/IkUploadImage/src/index.vue.d.ts +2 -2
  49. package/dist/style.css +1 -1
  50. package/package.json +1 -1
  51. package/dist/IkDescription/ik.index.umd.js +0 -1
  52. package/dist/IkDescription/style.css +0 -1
  53. package/dist/src/components/IkDescription/src/{IkDescription.vue.d.ts → IKDescription.vue.d.ts} +6 -6
@@ -62,7 +62,7 @@ const P = (e, l) => {
62
62
  },
63
63
  setup(e) {
64
64
  k((n) => ({
65
- ee15feea: r.value
65
+ "5e8fb1df": r.value
66
66
  }));
67
67
  const l = e, t = {
68
68
  id: "id",
@@ -74,9 +74,9 @@ const P = (e, l) => {
74
74
  ...l.fileField
75
75
  }, r = g(() => typeof l.labelWidth == "number" ? `${l.labelWidth}px` : l.labelWidth);
76
76
  return (n, j) => {
77
- const y = c("el-tag"), v = c("IkPreviewFile"), _ = c("el-descriptions-item"), b = c("el-descriptions");
77
+ const y = c("el-tag"), v = c("IkPreviewFile"), b = c("el-descriptions-item"), _ = c("el-descriptions");
78
78
  return s(), a(
79
- b,
79
+ _,
80
80
  u({ class: "margin-top" }, { ...e.titleProps, ...l }),
81
81
  {
82
82
  extra: i(() => [
@@ -87,7 +87,7 @@ const P = (e, l) => {
87
87
  x,
88
88
  null,
89
89
  S(e.listData, (o) => (s(), a(
90
- _,
90
+ b,
91
91
  u({
92
92
  key: o[t.id],
93
93
  ref_for: !0
@@ -165,7 +165,7 @@ const D = (e, l) => {
165
165
  for (const [r, n] of l)
166
166
  t[r] = n;
167
167
  return t;
168
- }, F = /* @__PURE__ */ D(I, [["__scopeId", "data-v-c20d8602"]]), B = P(F);
168
+ }, F = /* @__PURE__ */ D(I, [["__scopeId", "data-v-f0be0ec8"]]), B = P(F);
169
169
  export {
170
170
  B as IkDescriptions,
171
171
  B as default
@@ -0,0 +1 @@
1
+ (function(r,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(r=typeof globalThis<"u"?globalThis:r||self,e(r.index={},r.Vue))})(this,function(r,e){"use strict";const f=(t,o)=>{if(t.install=l=>{for(const i of[t,...Object.values(o??{})])l.component(i.name,i)},o)for(const[l,i]of Object.entries(o))t[l]=i;return t},a=e.defineComponent({__name:"IKDescription",props:{showIcon:{type:Boolean,default:!1},listData:{type:Array,default:()=>[]},props:{type:Object,default:()=>({})},titleProps:{type:Object,default:()=>({})},fileField:{type:Object,default:()=>({})},loadUrl:{type:String,default:""},kkUrl:{type:String,default:""},labelWidth:{type:String||Number,default:"150px"},isOnlyOfficePreview:{type:Boolean,default:!1},onlyOfficeAccept:{type:String,default:".pdf,.docx,.doc.ppt,.pptx,.xlsx,.xls,"},onlyofficeServer:{type:String,default:""}},setup(t){e.useCssVars(s=>({"5e8fb1df":i.value}));const o=t,l={id:"id",value:"value",props:"props",label:"label",tag:"tag",fileList:"fileList",...o.fileField},i=e.computed(()=>typeof o.labelWidth=="number"?`${o.labelWidth}px`:o.labelWidth);return(s,g)=>{const d=e.resolveComponent("el-tag"),p=e.resolveComponent("IkPreviewFile"),y=e.resolveComponent("el-descriptions-item"),u=e.resolveComponent("el-descriptions");return e.openBlock(),e.createBlock(u,e.mergeProps({class:"margin-top"},{...t.titleProps,...o}),{extra:e.withCtx(()=>[e.renderSlot(s.$slots,"extra",{},void 0,!0)]),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.listData,n=>(e.openBlock(),e.createBlock(y,e.mergeProps({key:n[l.id],ref_for:!0},n[l.props]),{label:e.withCtx(()=>[e.renderSlot(s.$slots,n[l.label],{},()=>[e.createTextVNode(e.toDisplayString(n[l.label]),1)],!0)]),default:e.withCtx(()=>[e.renderSlot(s.$slots,`${n[l.label]}_value`,{},()=>[e.createTextVNode(e.toDisplayString(n[l.value])+" ",1),n[l.tag]?(e.openBlock(),e.createBlock(d,{key:0,size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n[l.value].value),1)]),_:2},1024)):e.createCommentVNode("v-if",!0),e.createVNode(p,{list:n[l.fileList],field:t.fileField,"load-url":t.loadUrl,"kk-url":t.kkUrl,"show-bg":!1,isOnlyOfficePreview:t.isOnlyOfficePreview,onlyOfficeAccept:t.onlyOfficeAccept,onlyofficeServer:t.onlyofficeServer},null,8,["list","field","load-url","kk-url","isOnlyOfficePreview","onlyOfficeAccept","onlyofficeServer"])],!0)]),_:2},1040))),128))]),_:3},16)}}}),b="",c=f(((t,o)=>{const l=t.__vccOpts||t;for(const[i,s]of o)l[i]=s;return l})(a,[["__scopeId","data-v-f0be0ec8"]]));r.IkDescriptions=c,r.default=c,Object.defineProperties(r,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -0,0 +1 @@
1
+ [data-v-f0be0ec8] .el-descriptions__body .el-descriptions__label{font-weight:500!important;width:var(--5e8fb1df)!important;background:var(--ik-table-header-bg)!important;color:var(--ik-color-font-secondary)!important}[data-v-f0be0ec8] .el-descriptions__body .el-descriptions__content{color:var(--ik-color-font-title)!important}
@@ -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.isOnlyOfficePreview && t.onlyOfficeAccept.includes(_.attachmentSuffix)) {
2845
+ }, t.isOnlyOfficePreview && t.onlyOfficeAccept.includes(_[n.value.suffix])) {
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},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"}})});
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[n.value.suffix])){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"}})});
@@ -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.isOnlyOfficePreview && t.onlyOfficeAccept.includes(g.attachmentSuffix)) {
3007
+ }, t.isOnlyOfficePreview && t.onlyOfficeAccept.includes(g[n.value.suffix])) {
3008
3008
  a.value = !0, l.value = {
3009
3009
  documentType: "word",
3010
3010
  document: {