iking-web-ui-pro 0.2.4 → 0.2.6

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 (80) hide show
  1. package/dist/IKDetailPreviewFiles/ik.index.es.js +586 -571
  2. package/dist/IKDetailPreviewFiles/ik.index.umd.js +1 -1
  3. package/dist/IKDetailPreviewFiles/style.css +1 -1
  4. package/dist/IKExpandCollapse/ik.index.es.js +123 -120
  5. package/dist/IKExpandCollapse/ik.index.umd.js +1 -1
  6. package/dist/IKExpandCollapse/style.css +1 -1
  7. package/dist/IKPreviewFile/ik.index.es.js +491 -476
  8. package/dist/IKPreviewFile/ik.index.umd.js +1 -1
  9. package/dist/IKPreviewFile/style.css +1 -1
  10. package/dist/IKVerticalStepBar/ik.index.es.js +142 -139
  11. package/dist/IKVerticalStepBar/ik.index.umd.js +3 -3
  12. package/dist/IKVerticalStepBar/style.css +1 -1
  13. package/dist/IkApprovalProcessDetail/ik.index.es.js +756 -741
  14. package/dist/IkApprovalProcessDetail/ik.index.umd.js +1 -1
  15. package/dist/IkApprovalProcessDetail/style.css +1 -1
  16. package/dist/IkBaseDialog/ik.index.es.js +125 -122
  17. package/dist/IkBaseDialog/ik.index.umd.js +1 -1
  18. package/dist/IkBaseDialog/style.css +1 -1
  19. package/dist/IkBtnSetting/ik.index.es.js +252 -249
  20. package/dist/IkBtnSetting/ik.index.umd.js +1 -1
  21. package/dist/IkBtnSetting/style.css +1 -1
  22. package/dist/IkCollapseCard/ik.index.es.js +129 -126
  23. package/dist/IkCollapseCard/ik.index.umd.js +1 -1
  24. package/dist/IkCollapseCard/style.css +1 -1
  25. package/dist/IkDescription/ik.index.es.js +530 -515
  26. package/dist/IkDescription/ik.index.umd.js +1 -1
  27. package/dist/IkDescription/style.css +1 -1
  28. package/dist/IkIconPicker/ik.index.es.js +196 -193
  29. package/dist/IkIconPicker/ik.index.umd.js +1 -1
  30. package/dist/IkIconPicker/style.css +1 -1
  31. package/dist/IkMonacoEditor/ik.index.es.js +397 -394
  32. package/dist/IkMonacoEditor/ik.index.umd.js +3 -3
  33. package/dist/IkMonacoEditor/style.css +1 -1
  34. package/dist/IkPageFull/ik.index.es.js +1122 -1119
  35. package/dist/IkPageFull/ik.index.umd.js +2 -2
  36. package/dist/IkPageFull/style.css +1 -1
  37. package/dist/IkPreviewFileDialog/ik.index.es.js +314 -308
  38. package/dist/IkPreviewFileDialog/ik.index.umd.js +1 -1
  39. package/dist/IkPreviewFileDialog/style.css +1 -1
  40. package/dist/IkSchedule/ik.index.es.js +968 -965
  41. package/dist/IkSchedule/ik.index.umd.js +1 -1
  42. package/dist/IkSchedule/style.css +1 -1
  43. package/dist/IkSideText/ik.index.es.js +148 -145
  44. package/dist/IkSideText/ik.index.umd.js +1 -1
  45. package/dist/IkSideText/style.css +1 -1
  46. package/dist/IkSvgIcon/ik.index.es.js +106 -103
  47. package/dist/IkSvgIcon/ik.index.umd.js +1 -1
  48. package/dist/IkSvgIcon/style.css +1 -1
  49. package/dist/IkUploadFile/ik.index.es.js +963 -944
  50. package/dist/IkUploadFile/ik.index.umd.js +1 -1
  51. package/dist/IkUploadFile/style.css +1 -1
  52. package/dist/IkUploadImage/ik.index.es.js +265 -253
  53. package/dist/IkUploadImage/ik.index.umd.js +1 -1
  54. package/dist/IkUploadImage/style.css +1 -1
  55. package/dist/Provider/ik.index.es.js +1611 -0
  56. package/dist/Provider/ik.index.umd.js +17 -0
  57. package/dist/index.es.js +38689 -37072
  58. package/dist/index.umd.js +95 -79
  59. package/dist/src/components/IKDetailPreviewFiles/index.d.ts +1 -1
  60. package/dist/src/components/IKDetailPreviewFiles/src/IKDetailPreviewFiles.vue.d.ts +1 -1
  61. package/dist/src/components/IKPreviewFile/index.d.ts +3 -3
  62. package/dist/src/components/IKPreviewFile/src/IkPreviewFile.vue.d.ts +1 -1
  63. package/dist/src/components/IkApprovalProcess/index.d.ts +1 -1
  64. package/dist/src/components/IkApprovalProcess/src/IKApprovalProcess.vue.d.ts +1 -1
  65. package/dist/src/components/IkDescription/index.d.ts +3 -3
  66. package/dist/src/components/IkDescription/src/IkDescription.vue.d.ts +1 -1
  67. package/dist/src/components/IkPreviewFileDialog/index.d.ts +1 -1
  68. package/dist/src/components/IkPreviewFileDialog/src/IkPreviewFileDialog.vue.d.ts +1 -1
  69. package/dist/src/components/IkTinymce/index.d.ts +1 -1
  70. package/dist/src/components/IkTinymce/src/index.vue.d.ts +1 -1
  71. package/dist/src/components/IkUploadFile/index.d.ts +3 -3
  72. package/dist/src/components/IkUploadFile/src/index.vue.d.ts +1 -1
  73. package/dist/src/components/IkUploadImage/index.d.ts +3 -3
  74. package/dist/src/components/IkUploadImage/src/index.vue.d.ts +1 -1
  75. package/dist/src/components/Provider/ProviderConfig.vue.d.ts +66 -0
  76. package/dist/src/components/Provider/index.d.ts +139 -0
  77. package/dist/src/components/index.d.ts +1 -0
  78. package/dist/src/utils/use-provider.d.ts +8 -0
  79. package/dist/style.css +1 -1
  80. package/package.json +1 -1
@@ -1,104 +1,104 @@
1
- import { defineComponent as F, openBlock as s, createElementBlock as h, createElementVNode as c, computed as L, mergeModels as Q, useModel as i3, ref as R, reactive as A3, watch as g3, nextTick as t3, resolveComponent as J, Fragment as O, createBlock as z, createCommentVNode as k, createVNode as A, unref as u, withCtx as y, normalizeClass as $, normalizeStyle as U, createTextVNode as q, toDisplayString as C, h as y3, mergeProps as n3, createSlots as v3, renderSlot as M, renderList as w3, withDirectives as _3, vShow as k3, pushScopeId as z3, popScopeId as b3 } from "vue";
2
- import { ElUpload as c3, ElButton as F3, ElProgress as r3, ElTooltip as d3, ElIcon as H, ElMessage as Y } from "element-plus";
3
- import { buildUUID as C3, ikColor as x3, ikFile as B3 } from "iking-utils-pro";
4
- const P = (e, t) => {
1
+ import { defineComponent as C, openBlock as s, createElementBlock as p, createElementVNode as d, computed as D, inject as T, mergeModels as G, useModel as c3, ref as M, reactive as w3, watch as k3, nextTick as s3, resolveComponent as X, Fragment as U, createBlock as z, createCommentVNode as b, createVNode as m, unref as u, withCtx as _, normalizeClass as R, normalizeStyle as O, createTextVNode as q, toDisplayString as I, h as b3, mergeProps as l3, createSlots as A3, renderSlot as E, renderList as z3, withDirectives as x3, vShow as F3, pushScopeId as C3, popScopeId as I3 } from "vue";
2
+ import { ElUpload as u3, ElButton as B3, ElProgress as d3, ElTooltip as v3, ElIcon as H, ElMessage as o3 } from "element-plus";
3
+ import { buildUUID as S3, ikColor as D3, ikFile as V3 } from "iking-utils-pro";
4
+ const N = (e, n) => {
5
5
  if (e.install = (o) => {
6
- for (const r of [e, ...Object.values(t ?? {})])
7
- o.component(r.name, r);
8
- }, t)
9
- for (const [o, r] of Object.entries(t))
10
- e[o] = r;
6
+ for (const t of [e, ...Object.values(n ?? {})])
7
+ o.component(t.name, t);
8
+ }, n)
9
+ for (const [o, t] of Object.entries(n))
10
+ e[o] = t;
11
11
  return e;
12
- }, I3 = "data:image/webp;base64,UklGRnoEAABXRUJQVlA4WAoAAAAwAAAALwAALwAASUNDUMgBAAAAAAHIAAAAAAQwAABtbnRyUkdCIFhZWiAH4AABAAEAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAACRyWFlaAAABFAAAABRnWFlaAAABKAAAABRiWFlaAAABPAAAABR3dHB0AAABUAAAABRyVFJDAAABZAAAAChnVFJDAAABZAAAAChiVFJDAAABZAAAAChjcHJ0AAABjAAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAAgAAAAcAHMAUgBHAEJYWVogAAAAAAAAb6IAADj1AAADkFhZWiAAAAAAAABimQAAt4UAABjaWFlaIAAAAAAAACSgAAAPhAAAts9YWVogAAAAAAAA9tYAAQAAAADTLXBhcmEAAAAAAAQAAAACZmYAAPKnAAANWQAAE9AAAApbAAAAAAAAAABtbHVjAAAAAAAAAAEAAAAMZW5VUwAAACAAAAAcAEcAbwBvAGcAbABlACAASQBuAGMALgAgADIAMAAxADZBTFBImAAAAA2AYm3bsuhFm7u72wZoTrbGIcoKaKyAROJQbQmW2IVb/WkW3ZmPd3ymRMQEwJfV56QRo5pHErkUkFdQWRJpeGW6SoL9EvaWxAdbAeiVd5gyAK5NAdOtv4uNfsT21TUukBVjgFubBOQS+Ip7G/k2LpatkF2hAuBI5siAdsL2j3DHQrJ7NKDbUIyOj3bhqADBsgNPUqUlgncLVlA4IOwBAABwDQCdASowADAAPm0yk0ckIyGhJzgMkIANiWwArDM9tzexcZ3vwYZdKHIB749Ap5gP1E/YD34/QB6AH+A9F//S+w1z2/sz/5DzdDABM7ldHg1iMkeWX8LH9T1VzicAWGJgnNq4e/5P/NObJOBUhFC8dPnhmAD+9wGzP9Zfeg5ENi90xn4awZvrlCLnfwvZX//s4u6n2Pa2TF/r8wh0GtdNNJIBMRbrMaCBwyl6z86DqQgvpixbIdOVbwZFf/7KjC+uzJ5nNRyJ1Rpab8pIf2m1+SBOfX9w7EFXUErK8NSCsePMPazMXKH5y9Wl+nfiSrmsv079Fk6NkDF3Dxr+C+Rp4UdG/f3kP8PZfd/FyRupWURiDOrAjLamuF4OPo2BylwD7ulmdgDn4BEMXuvpYCACy4yCVjgsOzqToG2rSfJOtxy6Hh1/B2gu7X1MdJpHsdHdUrlRzTLKyV3wZG5a64SKKB2/QGk8IRZT0veUdDeo579/WyTU3ujQZeKNBS9ANlv1muyN9Kf5bm1f3UoPm/KnDkqf/1f2jf6aQJ7IYNod25fVfhRX+l1u9qBzs/bVezF7ZgC2LOuuJl1Tvwgeujpg9Uc/m0A9X878DzEkgxP/sPGviOfCElM1J/Kr3TTCwCkfW+K3oZuMB7HAAAA=";
12
+ }, $3 = "data:image/webp;base64,UklGRnoEAABXRUJQVlA4WAoAAAAwAAAALwAALwAASUNDUMgBAAAAAAHIAAAAAAQwAABtbnRyUkdCIFhZWiAH4AABAAEAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAACRyWFlaAAABFAAAABRnWFlaAAABKAAAABRiWFlaAAABPAAAABR3dHB0AAABUAAAABRyVFJDAAABZAAAAChnVFJDAAABZAAAAChiVFJDAAABZAAAAChjcHJ0AAABjAAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAAgAAAAcAHMAUgBHAEJYWVogAAAAAAAAb6IAADj1AAADkFhZWiAAAAAAAABimQAAt4UAABjaWFlaIAAAAAAAACSgAAAPhAAAts9YWVogAAAAAAAA9tYAAQAAAADTLXBhcmEAAAAAAAQAAAACZmYAAPKnAAANWQAAE9AAAApbAAAAAAAAAABtbHVjAAAAAAAAAAEAAAAMZW5VUwAAACAAAAAcAEcAbwBvAGcAbABlACAASQBuAGMALgAgADIAMAAxADZBTFBImAAAAA2AYm3bsuhFm7u72wZoTrbGIcoKaKyAROJQbQmW2IVb/WkW3ZmPd3ymRMQEwJfV56QRo5pHErkUkFdQWRJpeGW6SoL9EvaWxAdbAeiVd5gyAK5NAdOtv4uNfsT21TUukBVjgFubBOQS+Ip7G/k2LpatkF2hAuBI5siAdsL2j3DHQrJ7NKDbUIyOj3bhqADBsgNPUqUlgncLVlA4IOwBAABwDQCdASowADAAPm0yk0ckIyGhJzgMkIANiWwArDM9tzexcZ3vwYZdKHIB749Ap5gP1E/YD34/QB6AH+A9F//S+w1z2/sz/5DzdDABM7ldHg1iMkeWX8LH9T1VzicAWGJgnNq4e/5P/NObJOBUhFC8dPnhmAD+9wGzP9Zfeg5ENi90xn4awZvrlCLnfwvZX//s4u6n2Pa2TF/r8wh0GtdNNJIBMRbrMaCBwyl6z86DqQgvpixbIdOVbwZFf/7KjC+uzJ5nNRyJ1Rpab8pIf2m1+SBOfX9w7EFXUErK8NSCsePMPazMXKH5y9Wl+nfiSrmsv079Fk6NkDF3Dxr+C+Rp4UdG/f3kP8PZfd/FyRupWURiDOrAjLamuF4OPo2BylwD7ulmdgDn4BEMXuvpYCACy4yCVjgsOzqToG2rSfJOtxy6Hh1/B2gu7X1MdJpHsdHdUrlRzTLKyV3wZG5a64SKKB2/QGk8IRZT0veUdDeo579/WyTU3ujQZeKNBS9ANlv1muyN9Kf5bm1f3UoPm/KnDkqf/1f2jf6aQJ7IYNod25fVfhRX+l1u9qBzs/bVezF7ZgC2LOuuJl1Tvwgeujpg9Uc/m0A9X878DzEkgxP/sPGviOfCElM1J/Kr3TTCwCkfW+K3oZuMB7HAAAA=";
13
13
  /*! Element Plus Icons Vue v2.3.1 */
14
- var S3 = /* @__PURE__ */ F({
14
+ var R3 = /* @__PURE__ */ C({
15
15
  name: "Delete",
16
16
  __name: "delete",
17
17
  setup(e) {
18
- return (t, o) => (s(), h("svg", {
18
+ return (n, o) => (s(), p("svg", {
19
19
  xmlns: "http://www.w3.org/2000/svg",
20
20
  viewBox: "0 0 1024 1024"
21
21
  }, [
22
- c("path", {
22
+ d("path", {
23
23
  fill: "currentColor",
24
24
  d: "M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"
25
25
  })
26
26
  ]));
27
27
  }
28
- }), D3 = S3, V3 = /* @__PURE__ */ F({
28
+ }), M3 = R3, E3 = /* @__PURE__ */ C({
29
29
  name: "Download",
30
30
  __name: "download",
31
31
  setup(e) {
32
- return (t, o) => (s(), h("svg", {
32
+ return (n, o) => (s(), p("svg", {
33
33
  xmlns: "http://www.w3.org/2000/svg",
34
34
  viewBox: "0 0 1024 1024"
35
35
  }, [
36
- c("path", {
36
+ d("path", {
37
37
  fill: "currentColor",
38
38
  d: "M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64z"
39
39
  })
40
40
  ]));
41
41
  }
42
- }), $3 = V3, R3 = /* @__PURE__ */ F({
42
+ }), H3 = E3, U3 = /* @__PURE__ */ C({
43
43
  name: "QuestionFilled",
44
44
  __name: "question-filled",
45
45
  setup(e) {
46
- return (t, o) => (s(), h("svg", {
46
+ return (n, o) => (s(), p("svg", {
47
47
  xmlns: "http://www.w3.org/2000/svg",
48
48
  viewBox: "0 0 1024 1024"
49
49
  }, [
50
- c("path", {
50
+ d("path", {
51
51
  fill: "currentColor",
52
52
  d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"
53
53
  })
54
54
  ]));
55
55
  }
56
- }), u3 = R3, M3 = /* @__PURE__ */ F({
56
+ }), p3 = U3, O3 = /* @__PURE__ */ C({
57
57
  name: "Refresh",
58
58
  __name: "refresh",
59
59
  setup(e) {
60
- return (t, o) => (s(), h("svg", {
60
+ return (n, o) => (s(), p("svg", {
61
61
  xmlns: "http://www.w3.org/2000/svg",
62
62
  viewBox: "0 0 1024 1024"
63
63
  }, [
64
- c("path", {
64
+ d("path", {
65
65
  fill: "currentColor",
66
66
  d: "M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"
67
67
  })
68
68
  ]));
69
69
  }
70
- }), E3 = M3, H3 = /* @__PURE__ */ F({
70
+ }), q3 = O3, L3 = /* @__PURE__ */ C({
71
71
  name: "View",
72
72
  __name: "view",
73
73
  setup(e) {
74
- return (t, o) => (s(), h("svg", {
74
+ return (n, o) => (s(), p("svg", {
75
75
  xmlns: "http://www.w3.org/2000/svg",
76
76
  viewBox: "0 0 1024 1024"
77
77
  }, [
78
- c("path", {
78
+ d("path", {
79
79
  fill: "currentColor",
80
80
  d: "M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"
81
81
  })
82
82
  ]));
83
83
  }
84
- }), O3 = H3, U3 = /* @__PURE__ */ F({
84
+ }), T3 = L3, j3 = /* @__PURE__ */ C({
85
85
  name: "WarningFilled",
86
86
  __name: "warning-filled",
87
87
  setup(e) {
88
- return (t, o) => (s(), h("svg", {
88
+ return (n, o) => (s(), p("svg", {
89
89
  xmlns: "http://www.w3.org/2000/svg",
90
90
  viewBox: "0 0 1024 1024"
91
91
  }, [
92
- c("path", {
92
+ d("path", {
93
93
  fill: "currentColor",
94
94
  d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"
95
95
  })
96
96
  ]));
97
97
  }
98
- }), q3 = U3;
99
- const b = (e, t) => {
100
- var a, l, w, m;
101
- const o = (a = e == null ? void 0 : e.response) != null && a.data ? p3((w = (l = e == null ? void 0 : e.response) == null ? void 0 : l.data) == null ? void 0 : w.suffix) : ((m = e.raw) == null ? void 0 : m.type) || p3(e[t.suffix]), r = o == null ? void 0 : o.toLowerCase(), n = {
98
+ }), P3 = j3;
99
+ const F = (e, n) => {
100
+ var c, i, f, w;
101
+ const o = (c = e == null ? void 0 : e.response) != null && c.data ? h3((f = (i = e == null ? void 0 : e.response) == null ? void 0 : i.data) == null ? void 0 : f.suffix) : ((w = e.raw) == null ? void 0 : w.type) || h3(e[n.suffix]), t = o == null ? void 0 : o.toLowerCase(), a = {
102
102
  sheet: "excel",
103
103
  excel: "excel",
104
104
  zip: "zip",
@@ -114,11 +114,11 @@ const b = (e, t) => {
114
114
  exe: "exe",
115
115
  json: "json"
116
116
  };
117
- for (let d in n)
118
- if (typeof r == "string" && (r.includes(d) || r === d))
119
- return n[d];
117
+ for (let r in a)
118
+ if (typeof t == "string" && (t.includes(r) || t === r))
119
+ return a[r];
120
120
  return "unknown";
121
- }, L3 = {
121
+ }, W3 = {
122
122
  ".doc": "word",
123
123
  ".docx": "word",
124
124
  ".docxf": "word",
@@ -203,13 +203,13 @@ const b = (e, t) => {
203
203
  ".vob": "video",
204
204
  ".txt": "txt",
205
205
  ".pdf": "pdf"
206
- }, p3 = (e) => {
207
- const t = e == null ? void 0 : e.toLocaleLowerCase(), o = t != null && t.startsWith(".") ? t : `.${t}`;
208
- return o && L3[o] || "unknow";
209
- }, T3 = (e) => {
210
- let t = "", o = ["doc", "docx"], r = ["xls", "xlsx"], n = ["ppt", "pptx"], a = ["pdf"];
211
- return o.includes(e) && (t = "word"), r.includes(e) && (t = "cell"), n.includes(e) && (t = "slide"), a.includes(e) && (t = "text-pdf"), t;
212
- }, j3 = {
206
+ }, h3 = (e) => {
207
+ const n = e == null ? void 0 : e.toLocaleLowerCase(), o = n != null && n.startsWith(".") ? n : `.${n}`;
208
+ return o && W3[o] || "unknow";
209
+ }, N3 = (e) => {
210
+ let n = "", o = ["doc", "docx"], t = ["xls", "xlsx"], a = ["ppt", "pptx"], c = ["pdf"];
211
+ return o.includes(e) && (n = "word"), t.includes(e) && (n = "cell"), a.includes(e) && (n = "slide"), c.includes(e) && (n = "text-pdf"), n;
212
+ }, Z3 = {
213
213
  key: 0,
214
214
  t: "1686300059786",
215
215
  class: "icon",
@@ -219,7 +219,7 @@ const b = (e, t) => {
219
219
  "p-id": "7671",
220
220
  width: "200",
221
221
  height: "200"
222
- }, P3 = /* @__PURE__ */ c(
222
+ }, Q3 = /* @__PURE__ */ d(
223
223
  "path",
224
224
  {
225
225
  d: "M160 0h512l256 256v704c0 35.3472-28.6528 64-64 64H160c-35.3472 0-64-28.6528-64-64V64c0-35.3472 28.6528-64 64-64z",
@@ -229,7 +229,7 @@ const b = (e, t) => {
229
229
  null,
230
230
  -1
231
231
  /* HOISTED */
232
- ), W3 = /* @__PURE__ */ c(
232
+ ), J3 = /* @__PURE__ */ d(
233
233
  "path",
234
234
  {
235
235
  d: "M258.528 742.0672L351.8336 604.928a14.5024 14.5024 0 0 1 22.1696-2.1824l61.664 60.416 135.296-212.064a14.5024 14.5024 0 0 1 24.8064 0.5568l168.1024 291.328a14.5024 14.5024 0 0 1-12.5696 21.7664H270.528a14.5024 14.5024 0 0 1-12.0064-22.6816z",
@@ -239,7 +239,7 @@ const b = (e, t) => {
239
239
  null,
240
240
  -1
241
241
  /* HOISTED */
242
- ), N3 = /* @__PURE__ */ c(
242
+ ), K3 = /* @__PURE__ */ d(
243
243
  "path",
244
244
  {
245
245
  d: "M359.616 431.5456m-73.1456 0a73.1456 73.1456 0 1 0 146.2912 0 73.1456 73.1456 0 1 0-146.2912 0Z",
@@ -249,7 +249,7 @@ const b = (e, t) => {
249
249
  null,
250
250
  -1
251
251
  /* HOISTED */
252
- ), Z3 = /* @__PURE__ */ c(
252
+ ), G3 = /* @__PURE__ */ d(
253
253
  "path",
254
254
  {
255
255
  d: "M672 0l256 256h-192c-35.3472 0-64-28.6528-64-64V0z",
@@ -259,12 +259,12 @@ const b = (e, t) => {
259
259
  null,
260
260
  -1
261
261
  /* HOISTED */
262
- ), Q3 = [
263
- P3,
264
- W3,
265
- N3,
266
- Z3
267
- ], J3 = {
262
+ ), X3 = [
263
+ Q3,
264
+ J3,
265
+ K3,
266
+ G3
267
+ ], Y3 = {
268
268
  key: 1,
269
269
  t: "1686301531714",
270
270
  class: "icon",
@@ -274,7 +274,7 @@ const b = (e, t) => {
274
274
  "p-id": "9067",
275
275
  width: "200",
276
276
  height: "200"
277
- }, K3 = /* @__PURE__ */ c(
277
+ }, e6 = /* @__PURE__ */ d(
278
278
  "path",
279
279
  {
280
280
  d: "M409.6 0v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133333H409.6v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133334H409.6v68.266666h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133334s13.653333 34.133333 34.133334 34.133333H409.6v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133333h68.266666c20.48 0 34.133333-13.653333 34.133334-34.133333V477.866667h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133334S532.48 409.6 512 409.6H477.866667V341.333333h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133333S532.48 273.066667 512 273.066667H477.866667V204.8h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133333S532.48 136.533333 512 136.533333H477.866667V0h204.8l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0h204.8z m0 682.666667h68.266667v68.266666H409.6v-68.266666z m-34.133333-68.266667c-20.48 0-34.133333 13.653333-34.133334 34.133333v136.533334c0 20.48 13.653333 34.133333 34.133334 34.133333h136.533333c20.48 0 34.133333-13.653333 34.133333-34.133333v-136.533334c0-20.48-13.653333-34.133333-34.133333-34.133333h-136.533333z",
@@ -284,7 +284,7 @@ const b = (e, t) => {
284
284
  null,
285
285
  -1
286
286
  /* HOISTED */
287
- ), G3 = /* @__PURE__ */ c(
287
+ ), t6 = /* @__PURE__ */ d(
288
288
  "path",
289
289
  {
290
290
  d: "M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",
@@ -294,10 +294,10 @@ const b = (e, t) => {
294
294
  null,
295
295
  -1
296
296
  /* HOISTED */
297
- ), X3 = [
298
- K3,
299
- G3
300
- ], Y3 = {
297
+ ), n6 = [
298
+ e6,
299
+ t6
300
+ ], o6 = {
301
301
  key: 2,
302
302
  t: "1686300141125",
303
303
  class: "icon",
@@ -307,7 +307,7 @@ const b = (e, t) => {
307
307
  "p-id": "8137",
308
308
  width: "200",
309
309
  height: "200"
310
- }, e6 = /* @__PURE__ */ c(
310
+ }, i6 = /* @__PURE__ */ d(
311
311
  "path",
312
312
  {
313
313
  d: "M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m204.8 546.133333V443.733333h204.8v136.533334H409.6V546.133333z m0 102.4h204.8c40.96 0 68.266667-27.306667 68.266667-68.266666v-136.533334c0-40.96-27.306667-68.266667-68.266667-68.266666H409.6c-40.96 0-68.266667 27.306667-68.266667 68.266666V819.2c0 20.48 13.653333 34.133333 34.133334 34.133333s34.133333-13.653333 34.133333-34.133333V648.533333z",
@@ -317,7 +317,7 @@ const b = (e, t) => {
317
317
  null,
318
318
  -1
319
319
  /* HOISTED */
320
- ), t6 = /* @__PURE__ */ c(
320
+ ), s6 = /* @__PURE__ */ d(
321
321
  "path",
322
322
  {
323
323
  d: "M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",
@@ -327,10 +327,10 @@ const b = (e, t) => {
327
327
  null,
328
328
  -1
329
329
  /* HOISTED */
330
- ), n6 = [
331
- e6,
332
- t6
333
- ], o6 = {
330
+ ), l6 = [
331
+ i6,
332
+ s6
333
+ ], a6 = {
334
334
  key: 3,
335
335
  t: "1686300157181",
336
336
  class: "icon",
@@ -340,7 +340,7 @@ const b = (e, t) => {
340
340
  "p-id": "8292",
341
341
  width: "200",
342
342
  height: "200"
343
- }, i6 = /* @__PURE__ */ c(
343
+ }, c6 = /* @__PURE__ */ d(
344
344
  "path",
345
345
  {
346
346
  d: "M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m307.2 607.573333l68.266667 191.146667c13.653333 27.306667 54.613333 27.306667 61.44 0l102.4-273.066667c6.826667-20.48 0-34.133333-20.48-40.96s-34.133333 0-40.96 13.653334l-68.266667 191.146666-68.266667-191.146666c-13.653333-27.306667-54.613333-27.306667-68.266666 0l-68.266667 191.146666-68.266667-191.146666c-6.826667-13.653333-27.306667-27.306667-47.786666-20.48s-27.306667 27.306667-20.48 47.786666l102.4 273.066667c13.653333 27.306667 54.613333 27.306667 61.44 0l75.093333-191.146667z",
@@ -350,7 +350,7 @@ const b = (e, t) => {
350
350
  null,
351
351
  -1
352
352
  /* HOISTED */
353
- ), s6 = /* @__PURE__ */ c(
353
+ ), r6 = /* @__PURE__ */ d(
354
354
  "path",
355
355
  {
356
356
  d: "M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",
@@ -360,10 +360,10 @@ const b = (e, t) => {
360
360
  null,
361
361
  -1
362
362
  /* HOISTED */
363
- ), l6 = [
364
- i6,
365
- s6
366
- ], a6 = {
363
+ ), u6 = [
364
+ c6,
365
+ r6
366
+ ], d6 = {
367
367
  key: 4,
368
368
  t: "1686300180947",
369
369
  class: "icon",
@@ -373,7 +373,7 @@ const b = (e, t) => {
373
373
  "p-id": "8447",
374
374
  width: "200",
375
375
  height: "200"
376
- }, c6 = /* @__PURE__ */ c(
376
+ }, v6 = /* @__PURE__ */ d(
377
377
  "path",
378
378
  {
379
379
  d: "M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m477.866667 730.453333c20.48 0 68.266667 0 68.266666-47.786666 0-20.48-6.826667-47.786667-68.266666-47.786667-27.306667 0-54.613333 6.826667-81.92 6.826667-34.133333-27.306667-68.266667-61.44-88.746667-102.4 20.48-75.093333 20.48-122.88 6.826667-150.186667-6.826667-6.826667-20.48-13.653333-34.133334-13.653333-20.48 0-34.133333 6.826667-40.96 20.48-20.48 40.96 13.653333 116.053333 27.306667 150.186666-20.48 54.613333-40.96 109.226667-68.266667 163.84C273.066667 764.586667 273.066667 798.72 273.066667 812.373333c0 13.653333 6.826667 27.306667 20.48 34.133334 6.826667 6.826667 13.653333 6.826667 20.48 6.826666 34.133333 0 68.266667-34.133333 116.053333-109.226666 54.613333-20.48 102.4-40.96 157.013333-47.786667 27.306667 20.48 61.44 34.133333 95.573334 34.133333zM491.52 416.426667c6.826667 20.48 6.826667 47.786667 0 68.266666-13.653333-20.48-13.653333-40.96-13.653333-68.266666h13.653333z m-177.493333 395.946666c13.653333-20.48 27.306667-27.306667 47.786666-40.96-13.653333 20.48-27.306667 34.133333-47.786666 40.96z m184.32-204.8c13.653333 20.48 34.133333 47.786667 54.613333 68.266667H546.133333c-27.306667 6.826667-61.44 13.653333-88.746666 27.306667 13.653333-34.133333 27.306667-61.44 40.96-95.573334z m177.493333 68.266667c27.306667 0 34.133333 6.826667 34.133333 13.653333-6.826667 0-20.48 6.826667-27.306666 0-13.653333 0-27.306667-6.826667-40.96-13.653333h34.133333z",
@@ -383,7 +383,7 @@ const b = (e, t) => {
383
383
  null,
384
384
  -1
385
385
  /* HOISTED */
386
- ), r6 = /* @__PURE__ */ c(
386
+ ), p6 = /* @__PURE__ */ d(
387
387
  "path",
388
388
  {
389
389
  d: "M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",
@@ -393,10 +393,10 @@ const b = (e, t) => {
393
393
  null,
394
394
  -1
395
395
  /* HOISTED */
396
- ), d6 = [
397
- c6,
398
- r6
399
- ], u6 = {
396
+ ), h6 = [
397
+ v6,
398
+ p6
399
+ ], f6 = {
400
400
  key: 5,
401
401
  t: "1686300195363",
402
402
  class: "icon",
@@ -406,7 +406,7 @@ const b = (e, t) => {
406
406
  "p-id": "8602",
407
407
  width: "200",
408
408
  height: "200"
409
- }, p6 = /* @__PURE__ */ c(
409
+ }, g6 = /* @__PURE__ */ d(
410
410
  "path",
411
411
  {
412
412
  d: "M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m341.333333 512h136.533334c20.48 0 34.133333-13.653333 34.133333-34.133333s-13.653333-34.133333-34.133333-34.133334H341.333333c-20.48 0-34.133333 13.653333-34.133333 34.133334s13.653333 34.133333 34.133333 34.133333h136.533334V819.2c0 20.48 13.653333 34.133333 34.133333 34.133333s34.133333-13.653333 34.133333-34.133333V512z",
@@ -416,7 +416,7 @@ const b = (e, t) => {
416
416
  null,
417
417
  -1
418
418
  /* HOISTED */
419
- ), h6 = /* @__PURE__ */ c(
419
+ ), A6 = /* @__PURE__ */ d(
420
420
  "path",
421
421
  {
422
422
  d: "M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",
@@ -426,10 +426,10 @@ const b = (e, t) => {
426
426
  null,
427
427
  -1
428
428
  /* HOISTED */
429
- ), f6 = [
430
- p6,
431
- h6
432
- ], v6 = {
429
+ ), m6 = [
430
+ g6,
431
+ A6
432
+ ], _6 = {
433
433
  key: 6,
434
434
  t: "1686300209288",
435
435
  class: "icon",
@@ -439,7 +439,7 @@ const b = (e, t) => {
439
439
  "p-id": "8757",
440
440
  width: "200",
441
441
  height: "200"
442
- }, m6 = /* @__PURE__ */ c(
442
+ }, y6 = /* @__PURE__ */ d(
443
443
  "path",
444
444
  {
445
445
  d: "M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m464.213333 375.466667l-232.106666 61.44c-27.306667 13.653333-47.786667 34.133333-47.786667 61.44v218.453333s-20.48-13.653333-54.613333-6.826667c-47.786667 6.826667-95.573333 47.786667-95.573334 88.746667 0 40.96 47.786667 61.44 95.573334 54.613333 54.613333-6.826667 95.573333-40.96 95.573333-81.92V559.786667c0-13.653333 27.306667-27.306667 27.306667-27.306667L655.36 477.866667s20.48-6.826667 20.48 13.653333v170.666667s-20.48-13.653333-54.613333-6.826667c-54.613333 6.826667-95.573333 40.96-95.573334 81.92s47.786667 68.266667 95.573334 61.44 95.573333-40.96 95.573333-81.92V409.6c0-27.306667-27.306667-40.96-47.786667-34.133333z",
@@ -449,7 +449,7 @@ const b = (e, t) => {
449
449
  null,
450
450
  -1
451
451
  /* HOISTED */
452
- ), A6 = /* @__PURE__ */ c(
452
+ ), w6 = /* @__PURE__ */ d(
453
453
  "path",
454
454
  {
455
455
  d: "M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",
@@ -459,10 +459,10 @@ const b = (e, t) => {
459
459
  null,
460
460
  -1
461
461
  /* HOISTED */
462
- ), g6 = [
463
- m6,
464
- A6
465
- ], y6 = {
462
+ ), k6 = [
463
+ y6,
464
+ w6
465
+ ], b6 = {
466
466
  key: 7,
467
467
  t: "1686300225262",
468
468
  class: "icon",
@@ -472,7 +472,7 @@ const b = (e, t) => {
472
472
  "p-id": "8912",
473
473
  width: "200",
474
474
  height: "200"
475
- }, w6 = /* @__PURE__ */ c(
475
+ }, z6 = /* @__PURE__ */ d(
476
476
  "path",
477
477
  {
478
478
  d: "M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m307.2 853.333333c150.186667 0 273.066667-122.88 273.066667-273.066666s-122.88-273.066667-273.066667-273.066667-273.066667 122.88-273.066667 273.066667 122.88 273.066667 273.066667 273.066666z m0-68.266666c-116.053333 0-204.8-88.746667-204.8-204.8s88.746667-204.8 204.8-204.8 204.8 88.746667 204.8 204.8-88.746667 204.8-204.8 204.8zM614.4 600.746667l6.826667-6.826667c6.826667-13.653333 6.826667-27.306667-6.826667-34.133333L484.693333 471.04s-6.826667-6.826667-13.653333-6.826667c-13.653333 0-27.306667 13.653333-27.306667 27.306667v170.666667c0 6.826667 0 13.653333 6.826667 13.653333 6.826667 13.653333 27.306667 13.653333 40.96 6.826667L614.4 600.746667z",
@@ -482,7 +482,7 @@ const b = (e, t) => {
482
482
  null,
483
483
  -1
484
484
  /* HOISTED */
485
- ), _6 = /* @__PURE__ */ c(
485
+ ), x6 = /* @__PURE__ */ d(
486
486
  "path",
487
487
  {
488
488
  d: "M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",
@@ -492,10 +492,10 @@ const b = (e, t) => {
492
492
  null,
493
493
  -1
494
494
  /* HOISTED */
495
- ), k6 = [
496
- w6,
497
- _6
498
- ], z6 = {
495
+ ), F6 = [
496
+ z6,
497
+ x6
498
+ ], C6 = {
499
499
  key: 8,
500
500
  t: "1692251753690",
501
501
  class: "icon",
@@ -505,7 +505,7 @@ const b = (e, t) => {
505
505
  "p-id": "4336",
506
506
  width: "200",
507
507
  height: "200"
508
- }, b6 = /* @__PURE__ */ c(
508
+ }, I6 = /* @__PURE__ */ d(
509
509
  "path",
510
510
  {
511
511
  d: "M192 0h448.170667l319.829333 320V896a128 128 0 0 1-128 128H192a128 128 0 0 1-128-128V128A128 128 0 0 1 192 0z",
@@ -515,7 +515,7 @@ const b = (e, t) => {
515
515
  null,
516
516
  -1
517
517
  /* HOISTED */
518
- ), F6 = /* @__PURE__ */ c(
518
+ ), B6 = /* @__PURE__ */ d(
519
519
  "path",
520
520
  {
521
521
  d: "M388.5056 631.261867H307.541333v54.852266h95.095467v33.8944H265.3184v-204.765866h136.977067v34.167466H307.5072v48.810667h80.9984v33.041067z m112.093867-45.397334l38.4-70.621866h48.503466l-59.630933 101.546666 61.201067 103.2192h-49.117867l-39.355733-71.714133-39.389867 71.68h-49.0496l61.166933-103.185067-59.630933-101.546666h48.503467l38.4 70.587733z m266.922666 65.9456c-0.648533 9.898667-3.037867 19.592533-7.0656 28.672-3.7888 8.533333-9.352533 16.1792-16.315733 22.4256-6.929067 6.2464-15.36 11.127467-25.258667 14.6432-9.864533 3.4816-21.128533 5.256533-33.792 5.256534-13.1072 0-24.917333-2.286933-35.362133-6.826667a72.260267 72.260267 0 0 1-26.555733-19.626667 89.019733 89.019733 0 0 1-16.725334-30.993066 133.597867 133.597867 0 0 1-5.870933-40.8576v-13.482667c0-15.121067 2.048-28.740267 6.0416-40.925867 4.061867-12.1856 9.728-22.528 17.1008-31.061333 7.338667-8.533333 16.4864-15.2576 26.794667-19.694933 10.478933-4.608 22.186667-6.894933 35.157333-6.894934 12.731733 0 24.029867 1.809067 33.792 5.393067 9.8304 3.618133 18.1248 8.635733 24.9856 15.0528 6.826667 6.485333 12.288 14.267733 16.042667 22.9376 3.822933 8.874667 6.2464 18.466133 7.304533 28.8768h-42.1888a63.829333 63.829333 0 0 0-3.1744-16.145067 31.744 31.744 0 0 0-7.099733-11.810133 29.354667 29.354667 0 0 0-11.946667-7.2704 55.944533 55.944533 0 0 0-17.749333-2.4576c-14.2336 0-24.849067 5.188267-31.812267 15.5648-6.997333 10.3424-10.478933 26.385067-10.478933 48.128v13.789867c0 10.581333 0.750933 19.899733 2.321066 27.8528 1.536 7.953067 3.959467 14.609067 7.304534 19.968a32.221867 32.221867 0 0 0 12.970666 12.014933c5.256533 2.696533 11.639467 4.027733 19.182934 4.027733 6.656 0 12.3904-0.750933 17.2032-2.2528a30.549333 30.549333 0 0 0 12.0832-6.826666 30.685867 30.685867 0 0 0 7.509333-11.4688c1.809067-4.573867 2.935467-9.898667 3.413333-16.042667h42.154667z",
@@ -526,7 +526,7 @@ const b = (e, t) => {
526
526
  null,
527
527
  -1
528
528
  /* HOISTED */
529
- ), C6 = /* @__PURE__ */ c(
529
+ ), S6 = /* @__PURE__ */ d(
530
530
  "path",
531
531
  {
532
532
  d: "M640 0l320 320H768a128 128 0 0 1-128-128V0z",
@@ -536,11 +536,11 @@ const b = (e, t) => {
536
536
  null,
537
537
  -1
538
538
  /* HOISTED */
539
- ), x6 = [
540
- b6,
541
- F6,
542
- C6
543
- ], B6 = {
539
+ ), D6 = [
540
+ I6,
541
+ B6,
542
+ S6
543
+ ], V6 = {
544
544
  key: 9,
545
545
  t: "1692251753690",
546
546
  class: "icon",
@@ -550,7 +550,7 @@ const b = (e, t) => {
550
550
  "p-id": "4336",
551
551
  width: "200",
552
552
  height: "200"
553
- }, I6 = /* @__PURE__ */ c(
553
+ }, $6 = /* @__PURE__ */ d(
554
554
  "path",
555
555
  {
556
556
  d: "M145.6 0C100.8 0 64 36.8 64 81.6v860.8C64 987.2 100.8 1024 145.6 1024h732.8c44.8 0 81.6-36.8 81.6-81.6V324.8L657.6 0h-512z",
@@ -560,7 +560,7 @@ const b = (e, t) => {
560
560
  null,
561
561
  -1
562
562
  /* HOISTED */
563
- ), S6 = /* @__PURE__ */ c(
563
+ ), R6 = /* @__PURE__ */ d(
564
564
  "path",
565
565
  {
566
566
  d: "M960 326.4v16H755.2s-100.8-20.8-99.2-107.2c0 0 3.2 91.2 96 91.2h208z",
@@ -570,7 +570,7 @@ const b = (e, t) => {
570
570
  null,
571
571
  -1
572
572
  /* HOISTED */
573
- ), D6 = /* @__PURE__ */ c(
573
+ ), M6 = /* @__PURE__ */ d(
574
574
  "path",
575
575
  {
576
576
  d: "M657.6 0v233.6c0 25.6 17.6 92.8 97.6 92.8H960L657.6 0z",
@@ -581,7 +581,7 @@ const b = (e, t) => {
581
581
  null,
582
582
  -1
583
583
  /* HOISTED */
584
- ), V6 = /* @__PURE__ */ c(
584
+ ), E6 = /* @__PURE__ */ d(
585
585
  "path",
586
586
  {
587
587
  d: "M344 862.4h-100.8c-9.6 0-17.6-8-17.6-17.6V688c0-9.6 8-17.6 17.6-17.6h100.8c4.8 0 9.6 4.8 9.6 11.2 0 6.4-4.8 9.6-9.6 9.6h-94.4v62.4h91.2c6.4 0 11.2 4.8 11.2 11.2 0 6.4-4.8 9.6-11.2 9.6h-91.2v67.2h94.4c4.8 0 9.6 4.8 9.6 9.6 0 6.4-4.8 11.2-9.6 11.2z m193.6 1.6c-4.8 0-8 0-9.6-3.2l-59.2-80-60.8 80c-1.6 3.2-4.8 3.2-8 3.2-6.4 0-11.2-4.8-11.2-11.2 0-1.6 0-4.8 1.6-6.4l62.4-81.6-57.6-78.4c-1.6-1.6-3.2-3.2-3.2-6.4 0-4.8 4.8-11.2 12.8-11.2 3.2 0 6.4 1.6 8 4.8l56 73.6 54.4-73.6c1.6-3.2 4.8-4.8 9.6-4.8s11.2 4.8 11.2 11.2c0 3.2 0 4.8-1.6 6.4l-57.6 76.8 60.8 83.2c1.6 1.6 3.2 4.8 3.2 6.4 0 6.4-6.4 11.2-11.2 11.2z m171.2-1.6h-99.2c-9.6 0-17.6-8-17.6-17.6V688c0-9.6 8-17.6 17.6-17.6h99.2c6.4 0 11.2 4.8 11.2 11.2 0 6.4-4.8 9.6-11.2 9.6h-92.8v62.4h91.2c6.4 0 11.2 4.8 11.2 11.2 0 6.4-4.8 9.6-11.2 9.6h-91.2v67.2h92.8c6.4 0 11.2 4.8 11.2 9.6 0 6.4-4.8 11.2-11.2 11.2z",
@@ -591,12 +591,12 @@ const b = (e, t) => {
591
591
  null,
592
592
  -1
593
593
  /* HOISTED */
594
- ), $6 = [
595
- I6,
596
- S6,
597
- D6,
598
- V6
599
- ], R6 = {
594
+ ), H6 = [
595
+ $6,
596
+ R6,
597
+ M6,
598
+ E6
599
+ ], U6 = {
600
600
  key: 10,
601
601
  t: "1714099890925",
602
602
  class: "icon",
@@ -606,7 +606,7 @@ const b = (e, t) => {
606
606
  "p-id": "2271",
607
607
  width: "200",
608
608
  height: "200"
609
- }, M6 = /* @__PURE__ */ c(
609
+ }, O6 = /* @__PURE__ */ d(
610
610
  "path",
611
611
  {
612
612
  d: "M227.555556 28.444444h389.404444a19.911111 19.911111 0 0 1 14.734222 6.542223l271.132445 298.211555a28.444444 28.444444 0 0 1 7.395555 19.143111V938.666667a56.888889 56.888889 0 0 1-56.888889 56.888889H227.555556a56.888889 56.888889 0 0 1-56.888889-56.888889V85.333333a56.888889 56.888889 0 0 1 56.888889-56.888889z",
@@ -616,7 +616,7 @@ const b = (e, t) => {
616
616
  null,
617
617
  -1
618
618
  /* HOISTED */
619
- ), E6 = /* @__PURE__ */ c(
619
+ ), q6 = /* @__PURE__ */ d(
620
620
  "path",
621
621
  {
622
622
  d: "M625.777778 30.492444a19.911111 19.911111 0 0 1 5.916444 4.465778l271.132445 298.24a28.444444 28.444444 0 0 1 5.176889 8.135111H682.666667a56.888889 56.888889 0 0 1-56.888889-56.888889V30.492444z",
@@ -627,7 +627,7 @@ const b = (e, t) => {
627
627
  null,
628
628
  -1
629
629
  /* HOISTED */
630
- ), H6 = /* @__PURE__ */ c(
630
+ ), L6 = /* @__PURE__ */ d(
631
631
  "path",
632
632
  {
633
633
  d: "M396.288 645.176889c0 5.461333-0.796444 10.865778-2.389333 16.156444-1.592889 5.319111-4.266667 10.069333-7.964445 14.222223-3.697778 4.181333-8.647111 7.509333-14.791111 10.012444a60.871111 60.871111 0 0 1-22.869333 3.754667c-15.160889 0-26.851556-3.982222-35.043556-11.946667-8.192-7.964444-12.288-19.683556-12.288-35.157333v-10.012445h21.617778v6.826667c0 4.721778 0.369778 9.045333 1.137778 12.970667a28.074667 28.074667 0 0 0 3.982222 10.24 18.773333 18.773333 0 0 0 7.964444 6.712888c3.413333 1.592889 7.765333 2.389333 13.084445 2.389334 9.870222 0 16.64-2.645333 20.366222-7.964445 3.697778-5.290667 5.575111-12.430222 5.575111-21.390222v-118.784h21.617778v121.969778z m44.145778 3.413333c0.142222 4.266667 1.137778 7.850667 2.958222 10.808889a20.593778 20.593778 0 0 0 7.168 7.054222c2.958222 1.763556 6.286222 3.015111 10.012444 3.754667 3.697778 0.768 7.537778 1.137778 11.491556 1.137778 3.043556 0 6.229333-0.227556 9.557333-0.682667 3.328-0.455111 6.4-1.28 9.216-2.503111a17.294222 17.294222 0 0 0 6.940445-5.347556 14.250667 14.250667 0 0 0 2.730666-8.988444 12.885333 12.885333 0 0 0-5.688888-11.377778c-3.783111-2.56-8.533333-4.664889-14.222223-6.257778a232.561778 232.561778 0 0 0-18.545777-4.323555 96.227556 96.227556 0 0 1-18.545778-5.461333 38.4 38.4 0 0 1-14.222222-9.898667c-3.783111-4.266667-5.688889-10.154667-5.688889-17.749333a28.16 28.16 0 0 1 3.982222-15.246223c2.645333-4.266667 6.058667-7.68 10.24-10.353777 4.181333-2.645333 8.874667-4.608 14.108444-5.916445 5.233778-1.28 10.439111-1.934222 15.587556-1.934222 6.684444 0 12.8 0.568889 18.432 1.706667 5.603556 1.137778 10.581333 3.128889 14.904889 5.916444 4.323556 2.816 7.765333 6.599111 10.353778 11.377778 2.56 4.778667 4.096 10.752 4.551111 17.863111h-19.342223a19.569778 19.569778 0 0 0-2.958222-9.443556 19.370667 19.370667 0 0 0-6.371555-6.030222 28.956444 28.956444 0 0 0-8.533334-3.299555 43.918222 43.918222 0 0 0-9.443555-1.024c-2.872889 0-5.802667 0.227556-8.760889 0.682666a29.496889 29.496889 0 0 0-8.078222 2.389334 16.270222 16.270222 0 0 0-5.916445 4.551111 11.463111 11.463111 0 0 0-2.275555 7.395555c0 3.356444 1.166222 6.115556 3.527111 8.305778a28.16 28.16 0 0 0 8.988444 5.461333c3.640889 1.422222 7.736889 2.673778 12.288 3.640889 4.551111 0.995556 9.102222 1.991111 13.653334 3.072 4.835556 1.080889 9.585778 2.360889 14.222222 3.868445 4.636444 1.536 8.732444 3.527111 12.288 6.030222s6.456889 5.660444 8.647111 9.443555a27.733333 27.733333 0 0 1 3.299555 14.108445c0 7.111111-1.479111 13.056-4.437333 17.749333a34.702222 34.702222 0 0 1-11.605333 11.377778 48.497778 48.497778 0 0 1-16.156445 6.030222c-5.973333 1.137778-11.946667 1.706667-17.863111 1.706667a82.773333 82.773333 0 0 1-18.659555-2.048 45.795556 45.795556 0 0 1-15.701334-6.712889 34.218667 34.218667 0 0 1-10.922666-12.288 42.581333 42.581333 0 0 1-4.551111-18.545778h19.342222z m116.053333-21.617778c0 7.111111 0.938667 13.482667 2.844445 19.000889 1.905778 5.546667 4.522667 10.183111 7.850666 13.880889a34.076444 34.076444 0 0 0 25.941334 11.491556 34.076444 34.076444 0 0 0 25.941333-11.491556c3.328-3.697778 5.973333-8.334222 7.850667-13.880889 1.905778-5.518222 2.844444-11.861333 2.844444-19.000889 0-7.111111-0.938667-13.454222-2.844444-19.000888a41.016889 41.016889 0 0 0-7.850667-13.994667 33.422222 33.422222 0 0 0-11.719111-8.647111 34.872889 34.872889 0 0 0-14.222222-2.958222c-5.006222 0-9.756444 0.995556-14.222223 2.958222-4.465778 1.991111-8.391111 4.835556-11.719111 8.647111-3.328 3.811556-5.973333 8.476444-7.850666 13.994667-1.905778 5.546667-2.844444 11.889778-2.844445 19.000888z m-20.48 0c0-8.647111 1.223111-16.725333 3.640889-24.234666a54.897778 54.897778 0 0 1 10.922667-19.569778c4.835556-5.518222 10.837333-9.898667 17.976889-13.084444 7.111111-3.185778 15.331556-4.778667 24.576-4.778667 9.386667 0 17.635556 1.592889 24.689777 4.778667 7.054222 3.185778 12.999111 7.566222 17.863111 13.084444 4.835556 5.546667 8.504889 12.060444 10.922667 19.569778 2.417778 7.509333 3.640889 15.587556 3.640889 24.234666 0 8.647111-1.223111 16.696889-3.640889 24.120889-2.417778 7.452444-6.058667 13.937778-10.922667 19.456-4.835556 5.546667-10.808889 9.870222-17.863111 12.970667-7.054222 3.128889-15.274667 4.664889-24.689777 4.664889-9.244444 0-17.436444-1.536-24.576-4.664889a50.261333 50.261333 0 0 1-17.976889-12.970667 55.068444 55.068444 0 0 1-10.922667-19.456 77.283556 77.283556 0 0 1-3.640889-24.120889z m136.988445-58.936888h18.204444v18.659555h0.455111c8.049778-14.250667 20.764444-21.390222 38.229333-21.390222 7.736889 0 14.193778 1.080889 19.342223 3.185778 5.148444 2.133333 9.329778 5.091556 12.515555 8.874666 3.185778 3.811556 5.404444 8.305778 6.712889 13.539556 1.28 5.233778 1.934222 11.036444 1.934222 17.408v77.368889h-19.342222v-79.644445c0-7.281778-2.133333-13.027556-6.371555-17.294222-4.266667-4.266667-10.097778-6.371556-17.521778-6.371555-5.916444 0-11.036444 0.910222-15.36 2.730666a28.814222 28.814222 0 0 0-10.808889 7.736889 33.336889 33.336889 0 0 0-6.485333 11.719111c-1.422222 4.494222-2.161778 9.386667-2.161778 14.677334v66.446222h-19.342222V568.035556z",
@@ -637,11 +637,11 @@ const b = (e, t) => {
637
637
  null,
638
638
  -1
639
639
  /* HOISTED */
640
- ), O6 = [
641
- M6,
642
- E6,
643
- H6
644
- ], U6 = {
640
+ ), T6 = [
641
+ O6,
642
+ q6,
643
+ L6
644
+ ], j6 = {
645
645
  key: 11,
646
646
  t: "1686300037564",
647
647
  class: "icon",
@@ -651,7 +651,7 @@ const b = (e, t) => {
651
651
  "p-id": "7515",
652
652
  width: "200",
653
653
  height: "200"
654
- }, q6 = /* @__PURE__ */ c(
654
+ }, P6 = /* @__PURE__ */ d(
655
655
  "path",
656
656
  {
657
657
  d: "M160 0h512l256 256v704c0 35.3472-28.6528 64-64 64H160c-35.3472 0-64-28.6528-64-64V64c0-35.3472 28.6528-64 64-64z",
@@ -661,7 +661,7 @@ const b = (e, t) => {
661
661
  null,
662
662
  -1
663
663
  /* HOISTED */
664
- ), L6 = /* @__PURE__ */ c(
664
+ ), W6 = /* @__PURE__ */ d(
665
665
  "path",
666
666
  {
667
667
  d: "M672 0l256 256h-192c-35.3472 0-64-28.6528-64-64V0z",
@@ -671,7 +671,7 @@ const b = (e, t) => {
671
671
  null,
672
672
  -1
673
673
  /* HOISTED */
674
- ), T6 = /* @__PURE__ */ c(
674
+ ), N6 = /* @__PURE__ */ d(
675
675
  "path",
676
676
  {
677
677
  d: "M384 499.2c0-25.6 5.12-46.08 10.24-58.88 5.12-12.8 15.36-25.6 28.16-35.84 12.8-12.8 25.6-20.48 43.52-25.6 15.36-5.12 30.72-7.68 48.64-7.68 35.84 0 64 10.24 89.6 30.72C627.2 422.4 640 448 640 481.28c0 15.36-5.12 28.16-10.24 40.96s-17.92 28.16-38.4 46.08-28.16 30.72-35.84 38.4c-7.68 7.68-10.24 17.92-15.36 28.16-5.12 10.24-2.56 17.92-2.56 43.52h-51.2c0-25.6 2.56-38.4 5.12-51.2s7.68-23.04 15.36-33.28 15.36-23.04 33.28-40.96c17.92-17.92 30.72-30.72 35.84-38.4 5.12-7.68 10.24-20.48 10.24-38.4s-7.68-30.72-20.48-43.52-30.72-20.48-53.76-20.48c-51.2 0-76.8 35.84-76.8 87.04h-51.2z m153.6 281.6h-51.2v-51.2h51.2v51.2z",
@@ -681,11 +681,11 @@ const b = (e, t) => {
681
681
  null,
682
682
  -1
683
683
  /* HOISTED */
684
- ), j6 = [
685
- q6,
686
- L6,
687
- T6
688
- ], h3 = /* @__PURE__ */ F({
684
+ ), Z6 = [
685
+ P6,
686
+ W6,
687
+ N6
688
+ ], f3 = /* @__PURE__ */ C({
689
689
  __name: "FileIcon",
690
690
  props: {
691
691
  type: {
@@ -706,17 +706,26 @@ const b = (e, t) => {
706
706
  }
707
707
  },
708
708
  setup(e) {
709
- const t = e, o = L(() => t.file ? b(t.file, t.fields) : t.type);
710
- return (r, n) => o.value === "image" ? (s(), h("svg", j3, Q3)) : o.value === "zip" ? (s(), h("svg", J3, X3)) : o.value === "ppt" ? (s(), h("svg", Y3, n6)) : o.value === "word" ? (s(), h("svg", o6, l6)) : o.value === "pdf" ? (s(), h("svg", a6, d6)) : o.value === "txt" ? (s(), h("svg", u6, f6)) : o.value === "audio" ? (s(), h("svg", v6, g6)) : o.value === "video" ? (s(), h("svg", y6, k6)) : o.value === "excel" ? (s(), h("svg", z6, x6)) : o.value === "exe" ? (s(), h("svg", B6, $6)) : o.value === "json" ? (s(), h("svg", R6, O6)) : (s(), h("svg", U6, j6));
709
+ const n = e, o = D(() => n.file ? F(n.file, n.fields) : n.type);
710
+ return (t, a) => o.value === "image" ? (s(), p("svg", Z3, X3)) : o.value === "zip" ? (s(), p("svg", Y3, n6)) : o.value === "ppt" ? (s(), p("svg", o6, l6)) : o.value === "word" ? (s(), p("svg", a6, u6)) : o.value === "pdf" ? (s(), p("svg", d6, h6)) : o.value === "txt" ? (s(), p("svg", f6, m6)) : o.value === "audio" ? (s(), p("svg", _6, k6)) : o.value === "video" ? (s(), p("svg", b6, F6)) : o.value === "excel" ? (s(), p("svg", C6, D6)) : o.value === "exe" ? (s(), p("svg", V6, H6)) : o.value === "json" ? (s(), p("svg", U6, T6)) : (s(), p("svg", j6, Z6));
711
711
  }
712
- }), K = (e, t) => {
712
+ }), Y = (e, n) => {
713
713
  const o = e.__vccOpts || e;
714
- for (const [r, n] of t)
715
- o[r] = n;
714
+ for (const [t, a] of n)
715
+ o[t] = a;
716
716
  return o;
717
- }, e3 = (e) => e % 1 === 0 ? e.toString() : e.toFixed(2), o3 = (e, t) => t ? t.startsWith("http") ? t : `${e || location.origin}${t}` : "", P6 = /* @__PURE__ */ F({
717
+ }, i3 = (e) => e % 1 === 0 ? e.toString() : e.toFixed(2), a3 = (e, n) => n ? n.startsWith("http") ? n : `${e || location.origin}${n}` : "", Q6 = (e) => {
718
+ const n = T("loadUrl"), o = D(() => e.loadUrl || (n == null ? void 0 : n.value)), t = T("uploadUrl"), a = D(() => e.action || e.uploadUrl || (t == null ? void 0 : t.value)), c = T("token"), i = D(() => e.token || (c == null ? void 0 : c.value)), f = T("onlyofficeConfig"), w = D(() => e.onlyofficeConfig || (f == null ? void 0 : f.value)), r = T("userInfo"), A = D(() => e.userInfo || (r == null ? void 0 : r.value));
719
+ return {
720
+ cLoadUrl: o,
721
+ cUploadUrl: a,
722
+ cToken: i,
723
+ cOnlyofficeConfig: w,
724
+ cUserInfo: A
725
+ };
726
+ }, J6 = Q6, K6 = /* @__PURE__ */ C({
718
727
  __name: "IkPreviewFileDialog",
719
- props: /* @__PURE__ */ Q({
728
+ props: /* @__PURE__ */ G({
720
729
  file: {
721
730
  type: Object,
722
731
  default: () => []
@@ -751,81 +760,81 @@ const b = (e, t) => {
751
760
  }),
752
761
  emits: ["update:show"],
753
762
  setup(e) {
754
- const t = e, o = i3(e, "show"), r = L(() => ({
763
+ const n = e, o = c3(e, "show"), t = D(() => ({
755
764
  name: "name",
756
765
  url: "url",
757
766
  suffix: "suffix",
758
767
  size: "fileSize",
759
- ...t.field
760
- })), n = R(null), a = R(null), l = A3({
768
+ ...n.field
769
+ })), a = M(null), c = M(null), i = w3({
761
770
  image: !1,
762
771
  office: !1,
763
772
  video: !1
764
- }), w = (d) => {
765
- var g, x, S, D, V, W, T;
773
+ }), f = (r) => {
774
+ var A, x, V, $, B, j, P;
766
775
  try {
767
- const _ = ((g = d == null ? void 0 : d.response) == null ? void 0 : g.data) || d, j = _[r.value.url] || (_ == null ? void 0 : _.id) || _.attachmentId, E = (x = _[r.value.suffix] || _.attachmentSuffix) == null ? void 0 : x.toLowerCase(), G = _[r.value.name] || (_ == null ? void 0 : _.attachmentName) || (_ == null ? void 0 : _.originName);
768
- if (a.value = {
769
- ...d,
770
- name: d[r.value.name],
771
- url: o3(t.loadUrl, j)
772
- }, d && b(d, r.value) === "image") {
773
- l.image = !0;
776
+ const k = ((A = r == null ? void 0 : r.response) == null ? void 0 : A.data) || r, Z = k[t.value.url] || (k == null ? void 0 : k.id) || k.attachmentId, L = (x = k[t.value.suffix] || k.attachmentSuffix) == null ? void 0 : x.toLowerCase(), Q = k[t.value.name] || (k == null ? void 0 : k.attachmentName) || (k == null ? void 0 : k.originName);
777
+ if (c.value = {
778
+ ...r,
779
+ name: r[t.value.name],
780
+ url: a3(n.loadUrl, Z)
781
+ }, r && F(r, t.value) === "image") {
782
+ i.image = !0;
774
783
  return;
775
- } else if ((((S = t.onlyOfficeConfig) == null ? void 0 : S.accept) || t.onlyOfficeAccept).includes(E)) {
776
- l.office = !0, n.value = {
777
- ...t.onlyOfficeConfig,
784
+ } else if ((((V = n.onlyOfficeConfig) == null ? void 0 : V.accept) || n.onlyOfficeAccept).includes(L)) {
785
+ i.office = !0, a.value = {
786
+ ...n.onlyOfficeConfig,
778
787
  editorConfig: {
779
- ...((D = t.onlyOfficeConfig) == null ? void 0 : D.editorConfig) || {},
788
+ ...(($ = n.onlyOfficeConfig) == null ? void 0 : $.editorConfig) || {},
780
789
  customization: {
781
- ...((W = (V = t.onlyOfficeConfig) == null ? void 0 : V.editorConfig) == null ? void 0 : W.customization) || {},
790
+ ...((j = (B = n.onlyOfficeConfig) == null ? void 0 : B.editorConfig) == null ? void 0 : j.customization) || {},
782
791
  review: {
783
792
  reviewDisplay: "final"
784
793
  }
785
794
  }
786
795
  },
787
796
  document: {
788
- key: C3(),
789
- title: G,
790
- url: o3(t.loadUrl, j),
791
- fileType: E,
792
- ...((T = t.onlyOfficeConfig) == null ? void 0 : T.document) || {}
797
+ key: S3(),
798
+ title: Q,
799
+ url: a3(n.loadUrl, Z),
800
+ fileType: L,
801
+ ...((P = n.onlyOfficeConfig) == null ? void 0 : P.document) || {}
793
802
  },
794
- documentType: T3(E)
803
+ documentType: N3(L)
795
804
  };
796
805
  return;
797
806
  }
798
- } catch (_) {
799
- console.info("预览错误: ", _);
807
+ } catch (k) {
808
+ console.info("预览错误: ", k);
800
809
  }
801
810
  };
802
- g3([o, t.file], ([d, g]) => {
803
- d && t3(() => {
804
- w(t.file);
811
+ k3([o, n.file], ([r, A]) => {
812
+ r && s3(() => {
813
+ f(n.file);
805
814
  });
806
815
  });
807
- const m = () => {
808
- o.value = !1, l.office = !1, l.image = !1, l.video = !1;
816
+ const w = () => {
817
+ o.value = !1, i.office = !1, i.image = !1, i.video = !1;
809
818
  };
810
- return (d, g) => {
811
- var S, D;
812
- const x = J("el-image-viewer");
813
- return o.value ? (s(), h(
814
- O,
819
+ return (r, A) => {
820
+ var V, $;
821
+ const x = X("el-image-viewer");
822
+ return o.value ? (s(), p(
823
+ U,
815
824
  { key: 0 },
816
825
  [
817
- (S = a.value) != null && S.url && l.image ? (s(), z(x, {
826
+ (V = c.value) != null && V.url && i.image ? (s(), z(x, {
818
827
  key: 0,
819
- onClose: g[0] || (g[0] = (V) => {
820
- a.value = null, l.image = !1;
828
+ onClose: A[0] || (A[0] = (B) => {
829
+ c.value = null, i.image = !1;
821
830
  }),
822
831
  ref: "previewImgRef",
823
- "url-list": [(D = a.value) == null ? void 0 : D.url]
824
- }, null, 8, ["url-list"])) : k("v-if", !0),
825
- k(" 文档类 "),
826
- A(u(le), {
827
- modelValue: l.office,
828
- "onUpdate:modelValue": g[1] || (g[1] = (V) => l.office = V),
832
+ "url-list": [($ = c.value) == null ? void 0 : $.url]
833
+ }, null, 8, ["url-list"])) : b("v-if", !0),
834
+ b(" 文档类 "),
835
+ m(u(ve), {
836
+ modelValue: i.office,
837
+ "onUpdate:modelValue": A[1] || (A[1] = (B) => i.office = B),
829
838
  draggable: "",
830
839
  "no-footer": "",
831
840
  "no-header": "",
@@ -835,37 +844,40 @@ const b = (e, t) => {
835
844
  "close-on-click-modal": "",
836
845
  "close-on-press-escape": !1,
837
846
  "append-to-body": "",
838
- onClose: m,
847
+ onClose: w,
839
848
  "modal-class": "ik-only-preview-dialog"
840
849
  }, {
841
- default: y(() => [
842
- A(u(fe), {
843
- "config-options": n.value,
844
- "document-server-url": e.onlyOfficeConfig.serverUrl || e.onlyofficeServer
845
- }, null, 8, ["config-options", "document-server-url"])
846
- ]),
850
+ default: _(() => {
851
+ var B;
852
+ return [
853
+ m(u(ye), {
854
+ "config-options": a.value,
855
+ "document-server-url": ((B = e.onlyOfficeConfig) == null ? void 0 : B.serverUrl) || e.onlyofficeServer
856
+ }, null, 8, ["config-options", "document-server-url"])
857
+ ];
858
+ }),
847
859
  _: 1
848
860
  /* STABLE */
849
861
  }, 8, ["modelValue"])
850
862
  ],
851
863
  64
852
864
  /* STABLE_FRAGMENT */
853
- )) : k("v-if", !0);
865
+ )) : b("v-if", !0);
854
866
  };
855
867
  }
856
868
  });
857
- const W6 = P(P6), N6 = {
869
+ const G6 = N(K6), X6 = {
858
870
  key: 0,
859
871
  class: "ik-svg-icon ik-icon inline-block inline-flex justify-center box-content line-height-[0]"
860
- }, Z6 = {
872
+ }, Y6 = {
861
873
  key: 1,
862
874
  class: "h-[1em] w-[1em]",
863
875
  "aria-hidden": "true"
864
- }, Q6 = ["xlink:href"], J6 = ["src"], K6 = {
876
+ }, ee = ["xlink:href"], te = ["src"], ne = {
865
877
  key: 1,
866
878
  class: "h-[1em] w-[1em]",
867
879
  "aria-hidden": "true"
868
- }, G6 = ["xlink:href"], X6 = ["src"], Y6 = /* @__PURE__ */ F({
880
+ }, oe = ["xlink:href"], ie = ["src"], se = /* @__PURE__ */ C({
869
881
  name: "IkSvgIcon",
870
882
  __name: "index",
871
883
  props: {
@@ -892,84 +904,87 @@ const W6 = P(P6), N6 = {
892
904
  tableIconType: { default: "icon" }
893
905
  },
894
906
  setup(e) {
895
- const t = e, o = L(() => {
896
- var n, a, l;
897
- return /^http?:\/\//.test(t.name) ? "img" : /i-[^:]+:[^:]+/.test(t.name) ? "unocss" : (n = t.name) != null && n.startsWith("iksig") ? "iksig" : (a = t.name) != null && a.includes(":") ? "iconify" : (l = t.name) != null && l.startsWith("iksvg") ? "svg" : "i";
898
- }), r = L(() => {
899
- const n = [];
900
- if (t.flip)
901
- switch (t.flip) {
907
+ const n = e, o = T("iconConfig"), t = D(() => ({
908
+ ...(o == null ? void 0 : o.value) || {},
909
+ ...n
910
+ })), a = D(() => {
911
+ const { name: i } = t.value;
912
+ return /^http?:\/\//.test(i) ? "img" : /i-[^:]+:[^:]+/.test(i) ? "unocss" : i != null && i.startsWith("iksig") ? "iksig" : i != null && i.includes(":") ? "iconify" : i != null && i.startsWith("iksvg") ? "svg" : "i";
913
+ }), c = D(() => {
914
+ const i = [];
915
+ if (t.value.flip)
916
+ switch (t.value.flip) {
902
917
  case "horizontal":
903
- n.push("rotateY(180deg)");
918
+ i.push("rotateY(180deg)");
904
919
  break;
905
920
  case "vertical":
906
- n.push("rotateX(180deg)");
921
+ i.push("rotateX(180deg)");
907
922
  break;
908
923
  case "both":
909
- n.push("rotateX(180deg)"), n.push("rotateY(180deg)");
924
+ i.push("rotateX(180deg)"), i.push("rotateY(180deg)");
910
925
  break;
911
926
  }
912
- t.rotate && n.push(`rotate(${t.rotate % 360}deg)`);
913
- const a = {
914
- ...t.color && { color: t.color },
915
- ...t.size && { fontSize: typeof t.size == "number" ? `${t.size}px` : t.size },
916
- ...n.length && { transform: n.join(" ") },
917
- padding: t.showBg || t.bg ? t.padding : 0,
918
- ...t.color && o.value !== "iksig" ? {
919
- "--ik-color-icon-dark": t.color,
920
- "--ik-color-icon-light": t.colorLight || x3.setOpacity(t.color, t.opacity)
927
+ t.value.rotate && i.push(`rotate(${t.value.rotate % 360}deg)`);
928
+ const f = {
929
+ ...t.value.color && { color: t.value.color },
930
+ ...t.value.size && { fontSize: typeof t.value.size == "number" ? `${t.value.size}px` : t.value.size },
931
+ ...i.length && { transform: i.join(" ") },
932
+ padding: t.value.showBg || t.value.bg ? t.value.padding : 0,
933
+ ...t.value.color && a.value !== "iksig" ? {
934
+ "--ik-color-icon-dark": t.value.color,
935
+ "--ik-color-icon-light": t.value.colorLight || D3.setOpacity(t.value.color, t.value.opacity)
921
936
  } : {}
922
937
  };
923
- return t.width && (a.width = a.height = typeof t.width == "number" ? `${t.width}px` : t.width), a;
938
+ return t.value.width && (f.width = f.height = typeof t.value.width == "number" ? `${t.value.width}px` : t.value.width), f;
924
939
  });
925
- return (n, a) => {
926
- const l = J("el-tooltip"), w = J("el-button");
927
- return n.tableIconType === "icon" ? (s(), h("span", N6, [
928
- n.notip || !n.title ? (s(), h(
940
+ return (i, f) => {
941
+ const w = X("el-tooltip"), r = X("el-button");
942
+ return t.value.tableIconType === "icon" ? (s(), p("span", X6, [
943
+ t.value.notip || !t.value.title ? (s(), p(
929
944
  "i",
930
945
  {
931
946
  key: 0,
932
- class: $(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
933
- [n.name]: o.value === "unocss",
934
- "show-bg": n.showBg || n.bg,
935
- default: n.size === "default",
936
- small: n.size === "small",
937
- big: n.size === "big",
938
- warning: n.warning || t.type === "warning",
939
- primary: n.primary || t.type === "primary",
940
- success: n.success || t.type === "success",
941
- error: n.error || t.type === "error",
942
- active: n.active,
943
- disabled: n.disabled
947
+ class: R(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
948
+ [i.name]: a.value === "unocss",
949
+ "show-bg": t.value.showBg || t.value.bg,
950
+ default: t.value.size === "default",
951
+ small: t.value.size === "small",
952
+ big: t.value.size === "big",
953
+ warning: t.value.warning || t.value.type === "warning",
954
+ primary: t.value.primary || t.value.type === "primary",
955
+ success: i.success || t.value.type === "success",
956
+ error: t.value.error || t.value.type === "error",
957
+ active: t.value.active,
958
+ disabled: t.value.disabled
944
959
  }]),
945
- style: U(r.value)
960
+ style: O(c.value)
946
961
  },
947
962
  [
948
- k(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
949
- o.value === "iksig" ? (s(), h(
963
+ b(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
964
+ a.value === "iksig" ? (s(), p(
950
965
  "i",
951
966
  {
952
967
  key: 0,
953
- class: $(`iksig ${n.name}`),
954
- style: U(r.value)
968
+ class: R(`iksig ${t.value.name}`),
969
+ style: O(c.value)
955
970
  },
956
971
  null,
957
972
  6
958
973
  /* CLASS, STYLE */
959
- )) : o.value === "svg" ? (s(), h("svg", Z6, [
960
- c("use", {
961
- "xlink:href": `#${n.name}`
962
- }, null, 8, Q6)
963
- ])) : o.value === "img" ? (s(), h("img", {
974
+ )) : a.value === "svg" ? (s(), p("svg", Y6, [
975
+ d("use", {
976
+ "xlink:href": `#${t.value.name}`
977
+ }, null, 8, ee)
978
+ ])) : a.value === "img" ? (s(), p("img", {
964
979
  key: 2,
965
- src: n.name,
980
+ src: t.value.name,
966
981
  class: "h-[1em] w-[1em]"
967
- }, null, 8, J6)) : (s(), h(
982
+ }, null, 8, te)) : (s(), p(
968
983
  "i",
969
984
  {
970
985
  key: 3,
971
- class: $(n.name),
972
- style: U(r.value)
986
+ class: R(t.value.name),
987
+ style: O(c.value)
973
988
  },
974
989
  null,
975
990
  6
@@ -978,54 +993,54 @@ const W6 = P(P6), N6 = {
978
993
  ],
979
994
  6
980
995
  /* CLASS, STYLE */
981
- )) : (s(), z(l, {
996
+ )) : (s(), z(w, {
982
997
  key: 1,
983
- content: n.title,
998
+ content: t.value.title,
984
999
  placement: "top"
985
1000
  }, {
986
- default: y(() => [
987
- c(
1001
+ default: _(() => [
1002
+ d(
988
1003
  "i",
989
1004
  {
990
- class: $(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
991
- [n.name]: o.value === "unocss",
992
- "show-bg": n.showBg || n.bg,
993
- default: n.size === "default",
994
- small: n.size === "small",
995
- big: n.size === "big",
996
- warning: n.warning || t.type === "warning",
997
- primary: n.primary || t.type === "primary",
998
- success: n.success || t.type === "success",
999
- error: n.error || t.type === "error",
1000
- active: n.active
1005
+ class: R(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
1006
+ [i.name]: a.value === "unocss",
1007
+ "show-bg": t.value.showBg || t.value.bg,
1008
+ default: t.value.size === "default",
1009
+ small: t.value.size === "small",
1010
+ big: t.value.size === "big",
1011
+ warning: t.value.warning || t.value.type === "warning",
1012
+ primary: i.primary || t.value.type === "primary",
1013
+ success: i.success || t.value.type === "success",
1014
+ error: t.value.error || t.value.type === "error",
1015
+ active: t.value.active
1001
1016
  }]),
1002
- style: U(r.value)
1017
+ style: O(c.value)
1003
1018
  },
1004
1019
  [
1005
- o.value === "iksig" ? (s(), h(
1020
+ a.value === "iksig" ? (s(), p(
1006
1021
  "i",
1007
1022
  {
1008
1023
  key: 0,
1009
- class: $(`iksig ${n.name}`),
1010
- style: U(r.value)
1024
+ class: R(`iksig ${t.value.name}`),
1025
+ style: O(c.value)
1011
1026
  },
1012
1027
  null,
1013
1028
  6
1014
1029
  /* CLASS, STYLE */
1015
- )) : o.value === "svg" ? (s(), h("svg", K6, [
1016
- c("use", {
1017
- "xlink:href": `#${n.name}`
1018
- }, null, 8, G6)
1019
- ])) : o.value === "img" ? (s(), h("img", {
1030
+ )) : a.value === "svg" ? (s(), p("svg", ne, [
1031
+ d("use", {
1032
+ "xlink:href": `#${t.value.name}`
1033
+ }, null, 8, oe)
1034
+ ])) : a.value === "img" ? (s(), p("img", {
1020
1035
  key: 2,
1021
- src: n.name,
1036
+ src: t.value.name,
1022
1037
  class: "h-[1em] w-[1em]"
1023
- }, null, 8, X6)) : (s(), h(
1038
+ }, null, 8, ie)) : (s(), p(
1024
1039
  "i",
1025
1040
  {
1026
1041
  key: 3,
1027
- class: $(n.name),
1028
- style: U(r.value)
1042
+ class: R(t.value.name),
1043
+ style: O(c.value)
1029
1044
  },
1030
1045
  null,
1031
1046
  6
@@ -1039,13 +1054,13 @@ const W6 = P(P6), N6 = {
1039
1054
  _: 1
1040
1055
  /* STABLE */
1041
1056
  }, 8, ["content"]))
1042
- ])) : (s(), z(w, {
1057
+ ])) : (s(), z(r, {
1043
1058
  key: 1,
1044
- type: ["warning", "error"].includes(n.type) ? "danger" : ""
1059
+ type: ["warning", "error"].includes(t.value.type) ? "danger" : ""
1045
1060
  }, {
1046
- default: y(() => [
1061
+ default: _(() => [
1047
1062
  q(
1048
- C(n.title),
1063
+ I(t.value.title),
1049
1064
  1
1050
1065
  /* TEXT */
1051
1066
  )
@@ -1056,10 +1071,10 @@ const W6 = P(P6), N6 = {
1056
1071
  };
1057
1072
  }
1058
1073
  });
1059
- const ee = /* @__PURE__ */ K(Y6, [["__scopeId", "data-v-7d95dbf5"]]), I = P(ee), te = {
1074
+ const le = /* @__PURE__ */ Y(se, [["__scopeId", "data-v-1be337e4"]]), S = N(le), ae = {
1060
1075
  key: 0,
1061
1076
  class: "exit-main-page-maximize"
1062
- }, ne = /* @__PURE__ */ F({
1077
+ }, ce = /* @__PURE__ */ C({
1063
1078
  __name: "CloseIcon",
1064
1079
  props: {
1065
1080
  showBg: {
@@ -1072,15 +1087,15 @@ const ee = /* @__PURE__ */ K(Y6, [["__scopeId", "data-v-7d95dbf5"]]), I = P(ee),
1072
1087
  }
1073
1088
  },
1074
1089
  setup(e) {
1075
- return (t, o) => (s(), h("div", null, [
1076
- e.showBg && e.fullscreen ? (s(), h("div", te, [
1077
- A(u(I), {
1090
+ return (n, o) => (s(), p("div", null, [
1091
+ e.showBg && e.fullscreen ? (s(), p("div", ae, [
1092
+ m(u(S), {
1078
1093
  name: "iksvg_guanbidanchuang",
1079
1094
  title: "关闭",
1080
1095
  size: 20,
1081
1096
  error: ""
1082
1097
  })
1083
- ])) : (s(), z(u(I), {
1098
+ ])) : (s(), z(u(S), {
1084
1099
  key: 1,
1085
1100
  error: "",
1086
1101
  name: "iksvg_guanbidanchuang",
@@ -1090,9 +1105,9 @@ const ee = /* @__PURE__ */ K(Y6, [["__scopeId", "data-v-7d95dbf5"]]), I = P(ee),
1090
1105
  ]));
1091
1106
  }
1092
1107
  });
1093
- const oe = /* @__PURE__ */ K(ne, [["__scopeId", "data-v-79f49df8"]]), ie = { class: "base-header" }, se = /* @__PURE__ */ F({
1108
+ const re = /* @__PURE__ */ Y(ce, [["__scopeId", "data-v-79f49df8"]]), ue = { class: "base-header" }, de = /* @__PURE__ */ C({
1094
1109
  __name: "IkBaseDialog",
1095
- props: /* @__PURE__ */ Q({
1110
+ props: /* @__PURE__ */ G({
1096
1111
  title: { default: "" },
1097
1112
  cancelText: { default: "取消" },
1098
1113
  confirmText: { default: "确认" },
@@ -1111,64 +1126,64 @@ const oe = /* @__PURE__ */ K(ne, [["__scopeId", "data-v-79f49df8"]]), ie = { cla
1111
1126
  }),
1112
1127
  emits: ["update:modelValue"],
1113
1128
  setup(e) {
1114
- const t = e, o = i3(e, "modelValue"), r = R(t.fullscreen), n = () => {
1115
- r.value = !r.value;
1116
- }, a = F({
1129
+ const n = e, o = c3(e, "modelValue"), t = M(n.fullscreen), a = () => {
1130
+ t.value = !t.value;
1131
+ }, c = C({
1117
1132
  setup() {
1118
- return () => y3(oe, {
1119
- showBg: t.showCloseBg,
1120
- fullscreen: t.fullscreen
1133
+ return () => b3(re, {
1134
+ showBg: n.showCloseBg,
1135
+ fullscreen: n.fullscreen
1121
1136
  });
1122
1137
  }
1123
1138
  });
1124
- return (l, w) => {
1125
- const m = J("el-dialog");
1126
- return s(), z(m, n3({
1139
+ return (i, f) => {
1140
+ const w = X("el-dialog");
1141
+ return s(), z(w, l3({
1127
1142
  modelValue: o.value,
1128
- "onUpdate:modelValue": w[0] || (w[0] = (d) => o.value = d)
1129
- }, l.$attrs, {
1130
- "close-icon": u(a),
1131
- class: `ik-base-dialog ${l.noHeader ? "no-header" : ""} ${l.noFooter ? "no-footer" : ""}`,
1132
- fullscreen: r.value,
1143
+ "onUpdate:modelValue": f[0] || (f[0] = (r) => o.value = r)
1144
+ }, i.$attrs, {
1145
+ "close-icon": u(c),
1146
+ class: `ik-base-dialog ${i.noHeader ? "no-header" : ""} ${i.noFooter ? "no-footer" : ""}`,
1147
+ fullscreen: t.value,
1133
1148
  "modal-class": "baseDialog"
1134
- }), v3({
1135
- icon: y(() => [
1136
- M(l.$slots, "title", {}, () => [
1149
+ }), A3({
1150
+ icon: _(() => [
1151
+ E(i.$slots, "title", {}, () => [
1137
1152
  q(
1138
- C(l.title),
1153
+ I(i.title),
1139
1154
  1
1140
1155
  /* TEXT */
1141
1156
  )
1142
1157
  ])
1143
1158
  ]),
1144
- header: y(() => [
1145
- c("div", ie, [
1146
- M(l.$slots, "header", {}, () => [
1159
+ header: _(() => [
1160
+ d("div", ue, [
1161
+ E(i.$slots, "header", {}, () => [
1147
1162
  q(
1148
- C(l.title),
1163
+ I(i.title),
1149
1164
  1
1150
1165
  /* TEXT */
1151
1166
  )
1152
1167
  ])
1153
1168
  ]),
1154
- l.$attrs.showClose ? (s(), z(u(I), {
1169
+ i.$attrs.showClose ? (s(), z(u(S), {
1155
1170
  key: 0,
1156
- onClick: n,
1157
- name: r.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
1171
+ onClick: a,
1172
+ name: t.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
1158
1173
  class: "absolute! top-[18px] right-[50px] icon-dialog-full",
1159
- title: r.value ? "退出全屏" : "全屏"
1160
- }, null, 8, ["name", "title"])) : k("v-if", !0)
1174
+ title: t.value ? "退出全屏" : "全屏"
1175
+ }, null, 8, ["name", "title"])) : b("v-if", !0)
1161
1176
  ]),
1162
- default: y(() => [
1163
- M(l.$slots, "default")
1177
+ default: _(() => [
1178
+ E(i.$slots, "default")
1164
1179
  ]),
1165
1180
  _: 2
1166
1181
  /* DYNAMIC */
1167
1182
  }, [
1168
- l.$slots.footer ? {
1183
+ i.$slots.footer ? {
1169
1184
  name: "footer",
1170
- fn: y(() => [
1171
- M(l.$slots, "footer")
1185
+ fn: _(() => [
1186
+ E(i.$slots, "footer")
1172
1187
  ]),
1173
1188
  key: "0"
1174
1189
  } : void 0
@@ -1176,135 +1191,135 @@ const oe = /* @__PURE__ */ K(ne, [["__scopeId", "data-v-79f49df8"]]), ie = { cla
1176
1191
  };
1177
1192
  }
1178
1193
  });
1179
- const le = P(se);
1180
- function ae(e, t, o, r) {
1181
- function n(a) {
1182
- return a instanceof o ? a : new o(function(l) {
1183
- l(a);
1194
+ const ve = N(de);
1195
+ function pe(e, n, o, t) {
1196
+ function a(c) {
1197
+ return c instanceof o ? c : new o(function(i) {
1198
+ i(c);
1184
1199
  });
1185
1200
  }
1186
- return new (o || (o = Promise))(function(a, l) {
1187
- function w(g) {
1201
+ return new (o || (o = Promise))(function(c, i) {
1202
+ function f(A) {
1188
1203
  try {
1189
- d(r.next(g));
1204
+ r(t.next(A));
1190
1205
  } catch (x) {
1191
- l(x);
1206
+ i(x);
1192
1207
  }
1193
1208
  }
1194
- function m(g) {
1209
+ function w(A) {
1195
1210
  try {
1196
- d(r.throw(g));
1211
+ r(t.throw(A));
1197
1212
  } catch (x) {
1198
- l(x);
1213
+ i(x);
1199
1214
  }
1200
1215
  }
1201
- function d(g) {
1202
- g.done ? a(g.value) : n(g.value).then(w, m);
1216
+ function r(A) {
1217
+ A.done ? c(A.value) : a(A.value).then(f, w);
1203
1218
  }
1204
- d((r = r.apply(e, t || [])).next());
1219
+ r((t = t.apply(e, n || [])).next());
1205
1220
  });
1206
1221
  }
1207
- function ce(e, t) {
1222
+ function he(e, n) {
1208
1223
  var o = { label: 0, sent: function() {
1209
- if (a[0] & 1)
1210
- throw a[1];
1211
- return a[1];
1212
- }, trys: [], ops: [] }, r, n, a, l;
1213
- return l = { next: w(0), throw: w(1), return: w(2) }, typeof Symbol == "function" && (l[Symbol.iterator] = function() {
1224
+ if (c[0] & 1)
1225
+ throw c[1];
1226
+ return c[1];
1227
+ }, trys: [], ops: [] }, t, a, c, i;
1228
+ return i = { next: f(0), throw: f(1), return: f(2) }, typeof Symbol == "function" && (i[Symbol.iterator] = function() {
1214
1229
  return this;
1215
- }), l;
1216
- function w(d) {
1217
- return function(g) {
1218
- return m([d, g]);
1230
+ }), i;
1231
+ function f(r) {
1232
+ return function(A) {
1233
+ return w([r, A]);
1219
1234
  };
1220
1235
  }
1221
- function m(d) {
1222
- if (r)
1236
+ function w(r) {
1237
+ if (t)
1223
1238
  throw new TypeError("Generator is already executing.");
1224
- for (; l && (l = 0, d[0] && (o = 0)), o; )
1239
+ for (; i && (i = 0, r[0] && (o = 0)), o; )
1225
1240
  try {
1226
- if (r = 1, n && (a = d[0] & 2 ? n.return : d[0] ? n.throw || ((a = n.return) && a.call(n), 0) : n.next) && !(a = a.call(n, d[1])).done)
1227
- return a;
1228
- switch (n = 0, a && (d = [d[0] & 2, a.value]), d[0]) {
1241
+ if (t = 1, a && (c = r[0] & 2 ? a.return : r[0] ? a.throw || ((c = a.return) && c.call(a), 0) : a.next) && !(c = c.call(a, r[1])).done)
1242
+ return c;
1243
+ switch (a = 0, c && (r = [r[0] & 2, c.value]), r[0]) {
1229
1244
  case 0:
1230
1245
  case 1:
1231
- a = d;
1246
+ c = r;
1232
1247
  break;
1233
1248
  case 4:
1234
- return o.label++, { value: d[1], done: !1 };
1249
+ return o.label++, { value: r[1], done: !1 };
1235
1250
  case 5:
1236
- o.label++, n = d[1], d = [0];
1251
+ o.label++, a = r[1], r = [0];
1237
1252
  continue;
1238
1253
  case 7:
1239
- d = o.ops.pop(), o.trys.pop();
1254
+ r = o.ops.pop(), o.trys.pop();
1240
1255
  continue;
1241
1256
  default:
1242
- if (a = o.trys, !(a = a.length > 0 && a[a.length - 1]) && (d[0] === 6 || d[0] === 2)) {
1257
+ if (c = o.trys, !(c = c.length > 0 && c[c.length - 1]) && (r[0] === 6 || r[0] === 2)) {
1243
1258
  o = 0;
1244
1259
  continue;
1245
1260
  }
1246
- if (d[0] === 3 && (!a || d[1] > a[0] && d[1] < a[3])) {
1247
- o.label = d[1];
1261
+ if (r[0] === 3 && (!c || r[1] > c[0] && r[1] < c[3])) {
1262
+ o.label = r[1];
1248
1263
  break;
1249
1264
  }
1250
- if (d[0] === 6 && o.label < a[1]) {
1251
- o.label = a[1], a = d;
1265
+ if (r[0] === 6 && o.label < c[1]) {
1266
+ o.label = c[1], c = r;
1252
1267
  break;
1253
1268
  }
1254
- if (a && o.label < a[2]) {
1255
- o.label = a[2], o.ops.push(d);
1269
+ if (c && o.label < c[2]) {
1270
+ o.label = c[2], o.ops.push(r);
1256
1271
  break;
1257
1272
  }
1258
- a[2] && o.ops.pop(), o.trys.pop();
1273
+ c[2] && o.ops.pop(), o.trys.pop();
1259
1274
  continue;
1260
1275
  }
1261
- d = t.call(e, o);
1262
- } catch (g) {
1263
- d = [6, g], n = 0;
1276
+ r = n.call(e, o);
1277
+ } catch (A) {
1278
+ r = [6, A], a = 0;
1264
1279
  } finally {
1265
- r = a = 0;
1280
+ t = c = 0;
1266
1281
  }
1267
- if (d[0] & 5)
1268
- throw d[1];
1269
- return { value: d[0] ? d[1] : void 0, done: !0 };
1282
+ if (r[0] & 5)
1283
+ throw r[1];
1284
+ return { value: r[0] ? r[1] : void 0, done: !0 };
1270
1285
  }
1271
1286
  }
1272
- var re = function(e, t) {
1273
- return ae(void 0, void 0, void 0, function() {
1274
- return ce(this, function(o) {
1275
- return [2, new Promise(function(r, n) {
1287
+ var fe = function(e, n) {
1288
+ return pe(void 0, void 0, void 0, function() {
1289
+ return he(this, function(o) {
1290
+ return [2, new Promise(function(t, a) {
1276
1291
  try {
1277
1292
  if (window.DocsAPI)
1278
- return r(null);
1279
- var a = document.getElementById(t);
1280
- if (a)
1281
- var l = setInterval(function() {
1282
- var m = a.getAttribute("loading");
1283
- if (!m) {
1284
- if (clearInterval(l), window.DocsAPI)
1285
- return r(null);
1286
- var d = f3(t, e, r, n);
1287
- a.remove(), document.body.appendChild(d);
1293
+ return t(null);
1294
+ var c = document.getElementById(n);
1295
+ if (c)
1296
+ var i = setInterval(function() {
1297
+ var w = c.getAttribute("loading");
1298
+ if (!w) {
1299
+ if (clearInterval(i), window.DocsAPI)
1300
+ return t(null);
1301
+ var r = g3(n, e, t, a);
1302
+ c.remove(), document.body.appendChild(r);
1288
1303
  }
1289
1304
  }, 500);
1290
1305
  else {
1291
- var w = f3(t, e, r, n);
1292
- document.body.appendChild(w);
1306
+ var f = g3(n, e, t, a);
1307
+ document.body.appendChild(f);
1293
1308
  }
1294
- } catch (m) {
1295
- console.error(m);
1309
+ } catch (w) {
1310
+ console.error(w);
1296
1311
  }
1297
1312
  })];
1298
1313
  });
1299
1314
  });
1300
- }, f3 = function(e, t, o, r) {
1301
- var n = document.createElement("script");
1302
- return n.id = e, n.type = "text/javascript", n.src = t, n.async = !0, n.onload = function() {
1303
- n.removeAttribute("loading"), o(null);
1304
- }, n.onerror = function(a) {
1305
- n.removeAttribute("loading"), r(a);
1306
- }, n.setAttribute("loading", ""), n;
1307
- }, s3 = F({
1315
+ }, g3 = function(e, n, o, t) {
1316
+ var a = document.createElement("script");
1317
+ return a.id = e, a.type = "text/javascript", a.src = n, a.async = !0, a.onload = function() {
1318
+ a.removeAttribute("loading"), o(null);
1319
+ }, a.onerror = function(c) {
1320
+ a.removeAttribute("loading"), t(c);
1321
+ }, a.setAttribute("loading", ""), a;
1322
+ }, r3 = C({
1308
1323
  name: "DocumentEditor",
1309
1324
  props: {
1310
1325
  id: {
@@ -1356,59 +1371,59 @@ var re = function(e, t) {
1356
1371
  events_onRequestSelectDocument: Function
1357
1372
  },
1358
1373
  mounted: function() {
1359
- var e = this, t = this.documentServerUrl;
1360
- t.endsWith("/") || (t += "/");
1361
- var o = "".concat(t, "web-apps/apps/api/documents/api.js");
1362
- re(o, "onlyoffice-api-script").then(function() {
1374
+ var e = this, n = this.documentServerUrl;
1375
+ n.endsWith("/") || (n += "/");
1376
+ var o = "".concat(n, "web-apps/apps/api/documents/api.js");
1377
+ fe(o, "onlyoffice-api-script").then(function() {
1363
1378
  return e.onLoad();
1364
1379
  }).catch(function() {
1365
1380
  e.onError(-2);
1366
1381
  });
1367
1382
  },
1368
1383
  unmounted: function() {
1369
- var e, t = this.id || "";
1370
- !((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);
1384
+ var e, n = this.id || "";
1385
+ !((e = window == null ? void 0 : window.DocEditor) === null || e === void 0) && e.instances[n] && (window.DocEditor.instances[n].destroyEditor(), window.DocEditor.instances[n] = void 0);
1371
1386
  },
1372
1387
  watch: {
1373
1388
  config: {
1374
- handler: function(e, t) {
1389
+ handler: function(e, n) {
1375
1390
  this.onChangeProps();
1376
1391
  },
1377
1392
  deep: !0
1378
1393
  },
1379
- document_fileType: function(e, t) {
1394
+ document_fileType: function(e, n) {
1380
1395
  this.onChangeProps();
1381
1396
  },
1382
- document_title: function(e, t) {
1397
+ document_title: function(e, n) {
1383
1398
  this.onChangeProps();
1384
1399
  },
1385
- documentType: function(e, t) {
1400
+ documentType: function(e, n) {
1386
1401
  this.onChangeProps();
1387
1402
  },
1388
- editorConfig_lang: function(e, t) {
1403
+ editorConfig_lang: function(e, n) {
1389
1404
  this.onChangeProps();
1390
1405
  },
1391
- height: function(e, t) {
1406
+ height: function(e, n) {
1392
1407
  this.onChangeProps();
1393
1408
  },
1394
- type: function(e, t) {
1409
+ type: function(e, n) {
1395
1410
  this.onChangeProps();
1396
1411
  },
1397
- width: function(e, t) {
1412
+ width: function(e, n) {
1398
1413
  this.onChangeProps();
1399
1414
  }
1400
1415
  },
1401
1416
  methods: {
1402
1417
  onLoad: function() {
1403
- var e, t;
1418
+ var e, n;
1404
1419
  try {
1405
1420
  var o = this.id || "";
1406
1421
  if (window.DocsAPI || this.onError(-3), !((e = window == null ? void 0 : window.DocEditor) === null || e === void 0) && e.instances[o]) {
1407
1422
  console.log("Skip loading. Instance already exists", o);
1408
1423
  return;
1409
1424
  }
1410
- !((t = window == null ? void 0 : window.DocEditor) === null || t === void 0) && t.instances || (window.DocEditor = { instances: {} });
1411
- var r = Object.assign({
1425
+ !((n = window == null ? void 0 : window.DocEditor) === null || n === void 0) && n.instances || (window.DocEditor = { instances: {} });
1426
+ var t = Object.assign({
1412
1427
  document: {
1413
1428
  fileType: this.document_fileType,
1414
1429
  title: this.document_title
@@ -1443,43 +1458,43 @@ var re = function(e, t) {
1443
1458
  height: this.height,
1444
1459
  type: this.type,
1445
1460
  width: this.width
1446
- }, this.config || {}), n = window.DocsAPI.DocEditor(o, r);
1447
- window.DocEditor.instances[o] = n;
1448
- } catch (a) {
1449
- console.error(a), this.onError(-1);
1461
+ }, this.config || {}), a = window.DocsAPI.DocEditor(o, t);
1462
+ window.DocEditor.instances[o] = a;
1463
+ } catch (c) {
1464
+ console.error(c), this.onError(-1);
1450
1465
  }
1451
1466
  },
1452
1467
  onError: function(e) {
1453
- var t;
1468
+ var n;
1454
1469
  switch (e) {
1455
1470
  case -2:
1456
- t = "Error load DocsAPI from " + this.documentServerUrl;
1471
+ n = "Error load DocsAPI from " + this.documentServerUrl;
1457
1472
  break;
1458
1473
  case -3:
1459
- t = "DocsAPI is not defined";
1474
+ n = "DocsAPI is not defined";
1460
1475
  break;
1461
1476
  default:
1462
- t = "Unknown error loading component", e = -1;
1477
+ n = "Unknown error loading component", e = -1;
1463
1478
  }
1464
- typeof this.onLoadComponentError > "u" ? console.error(t) : this.onLoadComponentError(e, t);
1479
+ typeof this.onLoadComponentError > "u" ? console.error(n) : this.onLoadComponentError(e, n);
1465
1480
  },
1466
1481
  onAppReady: function() {
1467
1482
  var e = this.id || "";
1468
1483
  this.events_onAppReady(window.DocEditor.instances[e]);
1469
1484
  },
1470
1485
  onChangeProps: function() {
1471
- var e, t = this.id || "";
1472
- !((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());
1486
+ var e, n = this.id || "";
1487
+ !((e = window == null ? void 0 : window.DocEditor) === null || e === void 0) && e.instances[n] && (window.DocEditor.instances[n].destroyEditor(), window.DocEditor.instances[n] = void 0, console.log("Important props have been changed. Load new Editor."), this.onLoad());
1473
1488
  }
1474
1489
  }
1475
1490
  });
1476
- const de = ["id"];
1477
- function ue(e, t, o, r, n, a) {
1478
- return s(), h("div", { id: e.id }, null, 8, de);
1491
+ const ge = ["id"];
1492
+ function Ae(e, n, o, t, a, c) {
1493
+ return s(), p("div", { id: e.id }, null, 8, ge);
1479
1494
  }
1480
- s3.render = ue;
1481
- s3.__file = "src/components/DocumentEditor.vue";
1482
- const pe = /* @__PURE__ */ F({
1495
+ r3.render = Ae;
1496
+ r3.__file = "src/components/DocumentEditor.vue";
1497
+ const me = /* @__PURE__ */ C({
1483
1498
  __name: "IkOnlyOffice",
1484
1499
  props: {
1485
1500
  // 文件服务器的服务的地址
@@ -1500,26 +1515,26 @@ const pe = /* @__PURE__ */ F({
1500
1515
  }
1501
1516
  },
1502
1517
  setup(e) {
1503
- const t = e, o = R({
1518
+ const n = e, o = M({
1504
1519
  width: "100%",
1505
1520
  height: "100%",
1506
- ...t.configOptions || {},
1507
- ...t.configOptions
1508
- }), r = () => {
1509
- console.info("文档加载完成", t.configOptions);
1521
+ ...n.configOptions || {},
1522
+ ...n.configOptions
1523
+ }), t = () => {
1524
+ console.info("文档加载完成", n.configOptions);
1510
1525
  };
1511
- return (n, a) => (s(), h(
1526
+ return (a, c) => (s(), p(
1512
1527
  "div",
1513
1528
  {
1514
- style: U({ height: t.officeHeight })
1529
+ style: O({ height: n.officeHeight })
1515
1530
  },
1516
1531
  [
1517
- A(u(s3), {
1532
+ m(u(r3), {
1518
1533
  id: `${(/* @__PURE__ */ new Date()).getTime()}`,
1519
1534
  ref: "editorRef",
1520
1535
  "document-server-url": e.documentServerUrl,
1521
1536
  config: o.value,
1522
- events_onDocumentReady: r
1537
+ events_onDocumentReady: t
1523
1538
  }, null, 8, ["id", "document-server-url", "config"])
1524
1539
  ],
1525
1540
  4
@@ -1527,24 +1542,24 @@ const pe = /* @__PURE__ */ F({
1527
1542
  ));
1528
1543
  }
1529
1544
  });
1530
- const he = /* @__PURE__ */ K(pe, [["__scopeId", "data-v-98d51ef9"]]), fe = P(he), ve = (e) => (z3("data-v-10a62ee9"), e = e(), b3(), e), me = { class: "ik-flie-list" }, Ae = { class: "name" }, ge = { key: 1 }, ye = ["src"], we = { class: "file-icon" }, _e = { class: "file-name-loading" }, ke = { class: "file-name" }, ze = { key: 0 }, be = {
1545
+ const _e = /* @__PURE__ */ Y(me, [["__scopeId", "data-v-98d51ef9"]]), ye = N(_e), we = (e) => (C3("data-v-cbfa5eb9"), e = e(), I3(), e), ke = { class: "ik-flie-list" }, be = { class: "name" }, ze = { key: 1 }, xe = ["src"], Fe = { class: "file-icon" }, Ce = { class: "file-name-loading" }, Ie = { class: "file-name" }, Be = { key: 0 }, Se = {
1531
1546
  key: 0,
1532
1547
  class: "file-size"
1533
- }, Fe = { class: "name" }, Ce = { class: "file-name-loading" }, xe = { class: "file-name" }, Be = { class: "file-size" }, Ie = { class: "operate-btn" }, Se = { class: "card" }, De = { class: "title" }, Ve = /* @__PURE__ */ ve(() => /* @__PURE__ */ c(
1548
+ }, De = { class: "name" }, Ve = { class: "file-name-loading" }, $e = { class: "file-name" }, Re = { class: "file-size" }, Me = { class: "operate-btn" }, Ee = { class: "card" }, He = { class: "title" }, Ue = /* @__PURE__ */ we(() => /* @__PURE__ */ d(
1534
1549
  "img",
1535
1550
  {
1536
- src: I3,
1551
+ src: $3,
1537
1552
  class: "w-[48px] h-[48px]"
1538
1553
  },
1539
1554
  null,
1540
1555
  -1
1541
1556
  /* HOISTED */
1542
- )), $e = { class: "ik-flie-list" }, Re = { class: "name" }, Me = { key: 1 }, Ee = ["src"], He = { class: "file-icon" }, Oe = { class: "file-name-loading" }, Ue = { class: "file-name" }, qe = { key: 0 }, Le = {
1557
+ )), Oe = { class: "ik-flie-list" }, qe = { class: "name" }, Le = { key: 1 }, Te = ["src"], je = { class: "file-icon" }, Pe = { class: "file-name-loading" }, We = { class: "file-name" }, Ne = { key: 0 }, Ze = {
1543
1558
  key: 0,
1544
1559
  class: "file-size"
1545
- }, Te = { key: 0 }, je = /* @__PURE__ */ F({
1560
+ }, Qe = { key: 0 }, Je = /* @__PURE__ */ C({
1546
1561
  __name: "index",
1547
- props: /* @__PURE__ */ Q({
1562
+ props: /* @__PURE__ */ G({
1548
1563
  // 显示图标
1549
1564
  showIcon: {
1550
1565
  type: Boolean,
@@ -1684,9 +1699,9 @@ const he = /* @__PURE__ */ K(pe, [["__scopeId", "data-v-98d51ef9"]]), fe = P(he)
1684
1699
  },
1685
1700
  modelModifiers: {}
1686
1701
  }),
1687
- emits: /* @__PURE__ */ Q(["delete", "exceed", "success", "error", "outSize"], ["update:modelValue"]),
1688
- setup(e, { emit: t }) {
1689
- const o = e, r = t, n = i3(e, "modelValue"), l = {
1702
+ emits: /* @__PURE__ */ G(["delete", "exceed", "success", "error", "outSize"], ["update:modelValue"]),
1703
+ setup(e, { emit: n }) {
1704
+ const o = e, t = n, a = c3(e, "modelValue"), i = {
1690
1705
  ...{
1691
1706
  name: "name",
1692
1707
  url: "url",
@@ -1694,558 +1709,562 @@ const he = /* @__PURE__ */ K(pe, [["__scopeId", "data-v-98d51ef9"]]), fe = P(he)
1694
1709
  size: "size"
1695
1710
  },
1696
1711
  ...o.defaultFileds
1697
- }, w = L(() => o.size), m = R(null), d = R([]), g = R({}), x = R(!1), S = (p) => {
1698
- const f = p.size / 1024 / 1024;
1699
- return f < w.value ? !0 : (r("outSize"), Y({
1700
- message: `上传文件大小(${f.toFixed(4)}MB)超出允许最大值(${o.size}MB),请重新选择`,
1712
+ }, { cLoadUrl: f, cUploadUrl: w, cOnlyofficeConfig: r } = J6(o), A = D(() => o.size), x = M(null), V = M([]), $ = M({}), B = M(!1), j = (v) => {
1713
+ const h = v.size / 1024 / 1024;
1714
+ return h < A.value ? !0 : (t("outSize"), o3({
1715
+ message: `上传文件大小(${h.toFixed(4)}MB)超出允许最大值(${o.size}MB),请重新选择`,
1701
1716
  type: "warning",
1702
1717
  showClose: !0,
1703
1718
  duration: 5e3
1704
1719
  }), !1);
1705
- }, D = (p, f) => {
1706
- var B;
1707
- p.size / 1024 / 1024 < w.value || t3(() => {
1708
- n.value.pop();
1709
- }), o.accept !== "*" && !o.accept.split(",").includes((B = p == null ? void 0 : p.raw) == null ? void 0 : B.type) && !o.accept.split(",").includes(`.${p.name.split(".").pop()}`) && (Y({
1710
- message: `不允许的上传文件格式(${p.name}),请重新选择`,
1720
+ }, P = (v, h) => {
1721
+ var g;
1722
+ v.size / 1024 / 1024 < A.value || s3(() => {
1723
+ a.value.pop();
1724
+ }), o.accept !== "*" && !o.accept.split(",").includes((g = v == null ? void 0 : v.raw) == null ? void 0 : g.type) && !o.accept.split(",").includes(`.${v.name.split(".").pop()}`) && (o3({
1725
+ message: `不允许的上传文件格式(${v.name}),请重新选择`,
1711
1726
  type: "warning",
1712
1727
  showClose: !0,
1713
1728
  duration: 5e3
1714
- }), t3(() => {
1715
- n.value.pop();
1729
+ }), s3(() => {
1730
+ a.value.pop();
1716
1731
  }));
1717
- }, V = () => !1, W = (p, f) => {
1718
- var i, v;
1719
- p.status = "ready", f !== void 0 && d.value.splice(f, 1), (i = m.value) == null || i.handleStart(p.raw), (v = m.value) == null || v.submit();
1720
- }, T = (p, f) => {
1721
- var Z, a3;
1722
- const i = n.value.length, v = o.limit - i;
1723
- let B = 0;
1724
- for (; B < v && B < p.length; )
1725
- (Z = m.value) == null || Z.handleStart(p[B]), (a3 = m.value) == null || a3.submit(), B++;
1726
- Y({
1732
+ }, k = () => !1, Z = (v, h) => {
1733
+ var y, l;
1734
+ v.status = "ready", h !== void 0 && V.value.splice(h, 1), (y = x.value) == null || y.handleStart(v.raw), (l = x.value) == null || l.submit();
1735
+ }, L = (v, h) => {
1736
+ var W, K;
1737
+ const y = a.value.length, l = o.limit - y;
1738
+ let g = 0;
1739
+ for (; g < l && g < v.length; )
1740
+ (W = x.value) == null || W.handleStart(v[g]), (K = x.value) == null || K.submit(), g++;
1741
+ o3({
1727
1742
  message: (o == null ? void 0 : o.limitText) || `最大可上传${o.limit}个文件,已忽略超出文件`,
1728
1743
  type: "warning",
1729
1744
  showClose: !0,
1730
1745
  duration: 5e3
1731
- }), r("exceed", p);
1732
- }, _ = (p, f, i) => {
1733
- r("success", p, f, i);
1734
- }, j = (p, f, i) => {
1735
- d.value.push(f), r("error", p, f, i);
1736
- }, E = (p) => {
1737
- var f, i;
1738
- g.value = {
1739
- ...p,
1740
- name: p[l.name],
1741
- url: o3(
1742
- o.loadUrl,
1743
- p[l.url] || ((i = (f = p == null ? void 0 : p.response) == null ? void 0 : f.data) == null ? void 0 : i.id)
1746
+ }), t("exceed", v);
1747
+ }, Q = (v, h, y) => {
1748
+ t("success", v, h, y);
1749
+ }, e3 = (v, h, y) => {
1750
+ V.value.push(h), t("error", v, h, y);
1751
+ }, t3 = (v) => {
1752
+ var h, y;
1753
+ $.value = {
1754
+ ...v,
1755
+ name: v[i.name],
1756
+ url: a3(
1757
+ f.value,
1758
+ v[i.url] || ((y = (h = v == null ? void 0 : v.response) == null ? void 0 : h.data) == null ? void 0 : y.id)
1744
1759
  )
1745
- }, x.value = !0;
1746
- }, G = (p) => {
1747
- B3.downloadByOnlineUrl(
1748
- p[l.url],
1749
- p[l.name]
1760
+ }, B.value = !0;
1761
+ }, m3 = (v) => {
1762
+ V3.downloadByOnlineUrl(
1763
+ v[i.url],
1764
+ v[i.name]
1750
1765
  );
1751
- }, l3 = (p, f = !1) => {
1752
- var i;
1753
- (i = m.value) == null || i.abort(p);
1754
- }, N = (p) => {
1755
- var f, i;
1766
+ }, _3 = (v, h = !1) => {
1767
+ var y;
1768
+ (y = x.value) == null || y.abort(v);
1769
+ }, J = (v) => {
1770
+ var h, y;
1756
1771
  try {
1757
- p.status !== "success" && l3(p), (f = m.value) == null || f.handleRemove(p), n.value = n.value.filter((v) => v.uid !== p.uid), r("delete", p);
1758
- } catch (v) {
1759
- (i = m.value) == null || i.handleRemove(p), n.value = n.value.filter((B) => B.uid !== p.uid), r("delete", p), console.error(v);
1772
+ v.status !== "success" && _3(v), (h = x.value) == null || h.handleRemove(v), a.value = a.value.filter((l) => l.uid !== v.uid), t("delete", v);
1773
+ } catch (l) {
1774
+ (y = x.value) == null || y.handleRemove(v), a.value = a.value.filter((g) => g.uid !== v.uid), t("delete", v), console.error(l);
1760
1775
  }
1761
- }, m3 = (p, f) => {
1762
- d.value.splice(f, 1);
1763
- }, X = L(
1764
- () => n.value.length >= o.limit || o.disabled
1776
+ }, y3 = (v, h) => {
1777
+ V.value.splice(h, 1);
1778
+ }, n3 = D(
1779
+ () => a.value.length >= o.limit || o.disabled
1765
1780
  );
1766
- return (p, f) => (s(), h(
1767
- O,
1768
- null,
1769
- [
1770
- e.preview ? k("v-if", !0) : (s(), h(
1771
- O,
1772
- { key: 0 },
1773
- [
1774
- e.type === "button" ? (s(), z(u(c3), n3({
1775
- key: 0,
1776
- class: "ik-file-upload"
1777
- }, p.$attrs, {
1778
- accept: e.accept,
1779
- action: e.action,
1780
- "file-list": n.value,
1781
- "onUpdate:fileList": f[0] || (f[0] = (i) => n.value = i),
1782
- ref_key: "refUpload",
1783
- ref: m,
1784
- "before-upload": S,
1785
- "before-remove": V,
1786
- "on-exceed": T,
1787
- "on-change": D,
1788
- multiple: e.multiple,
1789
- headers: e.headers,
1790
- limit: e.limit,
1791
- "on-success": _,
1792
- "on-error": j
1793
- }), {
1794
- trigger: y(() => [
1795
- p.$slots.trigger ? M(p.$slots, "trigger", { key: 0 }, void 0, !0) : (s(), z(u(F3), {
1796
- key: 1,
1797
- disabled: X.value
1798
- }, v3({
1799
- default: y(() => [
1800
- q(
1801
- " " + C(e.title),
1802
- 1
1803
- /* TEXT */
1804
- )
1805
- ]),
1806
- _: 2
1807
- /* DYNAMIC */
1808
- }, [
1809
- e.showIcon ? {
1810
- name: "icon",
1811
- fn: y(() => [
1812
- A(u(I), {
1813
- name: "iksvg_daoru",
1814
- disabled: X.value
1815
- }, null, 8, ["disabled"])
1781
+ return (v, h) => {
1782
+ var y;
1783
+ return s(), p(
1784
+ U,
1785
+ null,
1786
+ [
1787
+ e.preview ? b("v-if", !0) : (s(), p(
1788
+ U,
1789
+ { key: 0 },
1790
+ [
1791
+ e.type === "button" ? (s(), z(u(u3), l3({
1792
+ key: 0,
1793
+ class: "ik-file-upload"
1794
+ }, v.$attrs, {
1795
+ accept: e.accept,
1796
+ action: u(w),
1797
+ "file-list": a.value,
1798
+ "onUpdate:fileList": h[0] || (h[0] = (l) => a.value = l),
1799
+ ref_key: "refUpload",
1800
+ ref: x,
1801
+ "before-upload": j,
1802
+ "before-remove": k,
1803
+ "on-exceed": L,
1804
+ "on-change": P,
1805
+ multiple: e.multiple,
1806
+ headers: e.headers,
1807
+ limit: e.limit,
1808
+ "on-success": Q,
1809
+ "on-error": e3
1810
+ }), {
1811
+ trigger: _(() => [
1812
+ v.$slots.trigger ? E(v.$slots, "trigger", { key: 0 }, void 0, !0) : (s(), z(u(B3), {
1813
+ key: 1,
1814
+ disabled: n3.value
1815
+ }, A3({
1816
+ default: _(() => [
1817
+ q(
1818
+ " " + I(e.title),
1819
+ 1
1820
+ /* TEXT */
1821
+ )
1816
1822
  ]),
1817
- key: "0"
1818
- } : void 0
1819
- ]), 1032, ["disabled"]))
1820
- ]),
1821
- file: y(({ file: i }) => [
1822
- c("div", me, [
1823
- c("div", Ae, [
1824
- !p.$slots.fileIcon && (!e.customIconData[u(b)(i, l)] || !e.customIconData[u(b)(i, l)][e.customIconFields.icon]) ? (s(), z(h3, {
1825
- key: 0,
1826
- type: u(b)(i, l)
1827
- }, null, 8, ["type"])) : !p.$slots.fileIcon && e.customIconData[u(b)(i, l)] && e.customIconData[u(b)(i, l)][e.customIconFields.icon] ? (s(), h("div", ge, [
1828
- e.customIconData[u(b)(i, l)][e.customIconFields.type] === "img" ? (s(), h("img", {
1823
+ _: 2
1824
+ /* DYNAMIC */
1825
+ }, [
1826
+ e.showIcon ? {
1827
+ name: "icon",
1828
+ fn: _(() => [
1829
+ m(u(S), {
1830
+ name: "iksvg_daoru",
1831
+ disabled: n3.value
1832
+ }, null, 8, ["disabled"])
1833
+ ]),
1834
+ key: "0"
1835
+ } : void 0
1836
+ ]), 1032, ["disabled"]))
1837
+ ]),
1838
+ file: _(({ file: l }) => [
1839
+ d("div", ke, [
1840
+ d("div", be, [
1841
+ !v.$slots.fileIcon && (!e.customIconData[u(F)(l, i)] || !e.customIconData[u(F)(l, i)][e.customIconFields.icon]) ? (s(), z(f3, {
1829
1842
  key: 0,
1830
- src: e.customIconData[u(b)(i, l)][e.customIconFields.icon],
1831
- alt: "",
1832
- class: "file-img-icon"
1833
- }, null, 8, ye)) : (s(), h(
1834
- "span",
1835
- {
1836
- key: 1,
1837
- class: $([
1838
- e.customIconData[u(b)(i, l)][e.customIconFields.icon],
1839
- "file-icon-size"
1840
- ])
1841
- },
1842
- null,
1843
- 2
1844
- /* CLASS */
1845
- ))
1846
- ])) : k("v-if", !0),
1847
- c("div", we, [
1848
- M(p.$slots, "fileIcon", { file: i }, void 0, !0)
1849
- ]),
1850
- c("div", _e, [
1851
- c("p", ke, [
1852
- q(
1853
- C(i[l.name] || i.name) + " ",
1854
- 1
1855
- /* TEXT */
1856
- ),
1857
- i.percentage && i.status === "uploading" ? (s(), h(
1843
+ type: u(F)(l, i)
1844
+ }, null, 8, ["type"])) : !v.$slots.fileIcon && e.customIconData[u(F)(l, i)] && e.customIconData[u(F)(l, i)][e.customIconFields.icon] ? (s(), p("div", ze, [
1845
+ e.customIconData[u(F)(l, i)][e.customIconFields.type] === "img" ? (s(), p("img", {
1846
+ key: 0,
1847
+ src: e.customIconData[u(F)(l, i)][e.customIconFields.icon],
1848
+ alt: "",
1849
+ class: "file-img-icon"
1850
+ }, null, 8, xe)) : (s(), p(
1858
1851
  "span",
1859
- ze,
1860
- "(" + C(i.percentage) + "%)",
1852
+ {
1853
+ key: 1,
1854
+ class: R([
1855
+ e.customIconData[u(F)(l, i)][e.customIconFields.icon],
1856
+ "file-icon-size"
1857
+ ])
1858
+ },
1859
+ null,
1860
+ 2
1861
+ /* CLASS */
1862
+ ))
1863
+ ])) : b("v-if", !0),
1864
+ d("div", Fe, [
1865
+ E(v.$slots, "fileIcon", { file: l }, void 0, !0)
1866
+ ]),
1867
+ d("div", Ce, [
1868
+ d("p", Ie, [
1869
+ q(
1870
+ I(l[i.name] || l.name) + " ",
1871
+ 1
1872
+ /* TEXT */
1873
+ ),
1874
+ l.percentage && l.status === "uploading" ? (s(), p(
1875
+ "span",
1876
+ Be,
1877
+ "(" + I(l.percentage) + "%)",
1878
+ 1
1879
+ /* TEXT */
1880
+ )) : b("v-if", !0)
1881
+ ]),
1882
+ l.status === "success" ? (s(), p(
1883
+ "p",
1884
+ Se,
1885
+ I(u(i3)(l.size / 1024 / 1024)) + "MB ",
1861
1886
  1
1862
1887
  /* TEXT */
1863
- )) : k("v-if", !0)
1864
- ]),
1865
- i.status === "success" ? (s(), h(
1866
- "p",
1867
- be,
1868
- C(u(e3)(i.size / 1024 / 1024)) + "MB ",
1869
- 1
1870
- /* TEXT */
1871
- )) : k("v-if", !0),
1872
- i.percentage && i.status === "uploading" ? (s(), z(u(r3), {
1888
+ )) : b("v-if", !0),
1889
+ l.percentage && l.status === "uploading" ? (s(), z(u(d3), {
1890
+ key: 1,
1891
+ "text-inside": "",
1892
+ percentage: l.percentage,
1893
+ color: "var(--el-color-primary)",
1894
+ "show-text": !1
1895
+ }, null, 8, ["percentage"])) : b("v-if", !0)
1896
+ ])
1897
+ ]),
1898
+ d("div", null, [
1899
+ l.status === "success" ? (s(), p(
1900
+ U,
1901
+ { key: 0 },
1902
+ [
1903
+ m(u(S), {
1904
+ onClick: (g) => t3(l),
1905
+ name: "iksvg_yulan",
1906
+ title: "预览",
1907
+ bg: "",
1908
+ size: "default"
1909
+ }, null, 8, ["onClick"]),
1910
+ m(u(S), {
1911
+ onClick: (g) => J(l),
1912
+ error: "",
1913
+ name: "iksvg_shanchu",
1914
+ title: "删除",
1915
+ bg: "",
1916
+ size: "default"
1917
+ }, null, 8, ["onClick"])
1918
+ ],
1919
+ 64
1920
+ /* STABLE_FRAGMENT */
1921
+ )) : (s(), z(u(S), {
1873
1922
  key: 1,
1874
- "text-inside": "",
1875
- percentage: i.percentage,
1876
- color: "var(--el-color-primary)",
1877
- "show-text": !1
1878
- }, null, 8, ["percentage"])) : k("v-if", !0)
1923
+ onClick: (g) => J(l),
1924
+ error: "",
1925
+ name: "iksvg_guanbi",
1926
+ size: "default",
1927
+ bg: "",
1928
+ title: "取消上传"
1929
+ }, null, 8, ["onClick"]))
1879
1930
  ])
1880
- ]),
1881
- c("div", null, [
1882
- i.status === "success" ? (s(), h(
1883
- O,
1884
- { key: 0 },
1885
- [
1886
- A(u(I), {
1887
- onClick: (v) => E(i),
1888
- name: "iksvg_yulan",
1889
- title: "预览",
1890
- bg: "",
1891
- size: "default"
1892
- }, null, 8, ["onClick"]),
1893
- A(u(I), {
1894
- onClick: (v) => N(i),
1895
- error: "",
1896
- name: "iksvg_shanchu",
1897
- title: "删除",
1898
- bg: "",
1899
- size: "default"
1900
- }, null, 8, ["onClick"])
1901
- ],
1902
- 64
1903
- /* STABLE_FRAGMENT */
1904
- )) : (s(), z(u(I), {
1905
- key: 1,
1906
- onClick: (v) => N(i),
1907
- error: "",
1908
- name: "iksvg_guanbi",
1909
- size: "default",
1910
- bg: "",
1911
- title: "取消上传"
1912
- }, null, 8, ["onClick"]))
1913
1931
  ])
1914
- ])
1915
- ]),
1916
- default: y(() => {
1917
- var i;
1918
- return [
1919
- !e.preview && e.tip ? (s(), z(u(d3), {
1920
- key: 0,
1921
- effect: "dark",
1922
- content: o.tipText || "",
1923
- "popper-class": "_ik_web_ui_file-help-tooltip"
1924
- }, {
1925
- default: y(() => [
1926
- A(u(H), {
1927
- size: 23,
1928
- class: "_ik_web_ui_file_help_icon"
1929
- }, {
1930
- default: y(() => [
1931
- A(u(u3))
1932
- ]),
1933
- _: 1
1934
- /* STABLE */
1935
- })
1936
- ]),
1937
- _: 1
1938
- /* STABLE */
1939
- }, 8, ["content"])) : k("v-if", !0),
1940
- (i = d.value) != null && i.length ? (s(!0), h(
1941
- O,
1942
- { key: 1 },
1943
- w3(d.value, (v, B) => (s(), h("div", {
1944
- class: "ik-error-flie-list",
1945
- key: v.uid
1946
- }, [
1947
- c("div", Fe, [
1948
- A(u(H), {
1949
- size: 32,
1950
- class: "info",
1951
- style: { "vertical-align": "middle" }
1932
+ ]),
1933
+ default: _(() => {
1934
+ var l;
1935
+ return [
1936
+ !e.preview && e.tip ? (s(), z(u(v3), {
1937
+ key: 0,
1938
+ effect: "dark",
1939
+ content: o.tipText || "",
1940
+ "popper-class": "_ik_web_ui_file-help-tooltip"
1941
+ }, {
1942
+ default: _(() => [
1943
+ m(u(H), {
1944
+ size: 23,
1945
+ class: "_ik_web_ui_file_help_icon"
1952
1946
  }, {
1953
- default: y(() => [
1954
- A(u(q3))
1947
+ default: _(() => [
1948
+ m(u(p3))
1955
1949
  ]),
1956
1950
  _: 1
1957
1951
  /* STABLE */
1958
- }),
1959
- c("div", Ce, [
1960
- c(
1961
- "p",
1962
- xe,
1963
- C(v[l.name] || v.name),
1952
+ })
1953
+ ]),
1954
+ _: 1
1955
+ /* STABLE */
1956
+ }, 8, ["content"])) : b("v-if", !0),
1957
+ (l = V.value) != null && l.length ? (s(!0), p(
1958
+ U,
1959
+ { key: 1 },
1960
+ z3(V.value, (g, W) => (s(), p("div", {
1961
+ class: "ik-error-flie-list",
1962
+ key: g.uid
1963
+ }, [
1964
+ d("div", De, [
1965
+ m(u(H), {
1966
+ size: 32,
1967
+ class: "info",
1968
+ style: { "vertical-align": "middle" }
1969
+ }, {
1970
+ default: _(() => [
1971
+ m(u(P3))
1972
+ ]),
1973
+ _: 1
1974
+ /* STABLE */
1975
+ }),
1976
+ d("div", Ve, [
1977
+ d(
1978
+ "p",
1979
+ $e,
1980
+ I(g[i.name] || g.name),
1981
+ 1
1982
+ /* TEXT */
1983
+ ),
1984
+ d(
1985
+ "p",
1986
+ Re,
1987
+ I(u(i3)(g.size / 1024 / 1024)) + "MB ",
1988
+ 1
1989
+ /* TEXT */
1990
+ )
1991
+ ])
1992
+ ]),
1993
+ x3(d(
1994
+ "div",
1995
+ Me,
1996
+ [
1997
+ m(u(H), {
1998
+ style: { "vertical-align": "middle" },
1999
+ onClick: (K) => Z(g, W),
2000
+ title: "重新上传",
2001
+ class: "primary"
2002
+ }, {
2003
+ default: _(() => [
2004
+ m(u(q3))
2005
+ ]),
2006
+ _: 2
2007
+ /* DYNAMIC */
2008
+ }, 1032, ["onClick"]),
2009
+ m(u(H), {
2010
+ class: "error",
2011
+ onClick: (K) => y3(g, W),
2012
+ title: "删除"
2013
+ }, {
2014
+ default: _(() => [
2015
+ m(u(M3))
2016
+ ]),
2017
+ _: 2
2018
+ /* DYNAMIC */
2019
+ }, 1032, ["onClick"])
2020
+ ],
2021
+ 512
2022
+ /* NEED_PATCH */
2023
+ ), [
2024
+ [F3, (g == null ? void 0 : g.status) === "fail"]
2025
+ ])
2026
+ ]))),
2027
+ 128
2028
+ /* KEYED_FRAGMENT */
2029
+ )) : b("v-if", !0)
2030
+ ];
2031
+ }),
2032
+ _: 3
2033
+ /* FORWARDED */
2034
+ }, 16, ["accept", "action", "file-list", "multiple", "headers", "limit"])) : (s(), z(u(u3), l3({
2035
+ key: 1,
2036
+ "file-list": a.value,
2037
+ "onUpdate:fileList": h[1] || (h[1] = (l) => a.value = l),
2038
+ class: ["ik-file-pload-card", { plain: e.plain }]
2039
+ }, v.$attrs, {
2040
+ accept: e.accept,
2041
+ action: u(w),
2042
+ disabled: n3.value,
2043
+ ref_key: "refUpload",
2044
+ ref: x,
2045
+ "before-upload": j,
2046
+ "before-remove": k,
2047
+ "on-exceed": L,
2048
+ multiple: e.multiple,
2049
+ headers: e.headers,
2050
+ limit: e.limit,
2051
+ "on-success": Q,
2052
+ "on-error": e3,
2053
+ "on-change": P
2054
+ }), {
2055
+ file: _(({ file: l }) => [
2056
+ d("div", Oe, [
2057
+ d("div", qe, [
2058
+ !v.$slots.fileIcon && (!e.customIconData[u(F)(l, i)] || !e.customIconData[u(F)(l, i)][e.customIconFields.icon]) ? (s(), z(f3, {
2059
+ key: 0,
2060
+ type: u(F)(l, i)
2061
+ }, null, 8, ["type"])) : !v.$slots.fileIcon && e.customIconData[u(F)(l, i)] && e.customIconData[u(F)(l, i)][e.customIconFields.icon] ? (s(), p("div", Le, [
2062
+ e.customIconData[u(F)(l, i)][e.customIconFields.type] === "img" ? (s(), p("img", {
2063
+ key: 0,
2064
+ src: e.customIconData[u(F)(l, i)][e.customIconFields.icon],
2065
+ alt: "",
2066
+ class: "file-img-icon"
2067
+ }, null, 8, Te)) : (s(), p(
2068
+ "span",
2069
+ {
2070
+ key: 1,
2071
+ class: R([
2072
+ e.customIconData[u(F)(l, i)][e.customIconFields.icon],
2073
+ "file-icon-size"
2074
+ ])
2075
+ },
2076
+ null,
2077
+ 2
2078
+ /* CLASS */
2079
+ ))
2080
+ ])) : b("v-if", !0),
2081
+ d("div", je, [
2082
+ E(v.$slots, "fileIcon", { file: l }, void 0, !0)
2083
+ ]),
2084
+ d("div", Pe, [
2085
+ d("p", We, [
2086
+ q(
2087
+ I(l[i.name] || l.name) + " ",
1964
2088
  1
1965
2089
  /* TEXT */
1966
2090
  ),
1967
- c(
1968
- "p",
1969
- Be,
1970
- C(u(e3)(v.size / 1024 / 1024)) + "MB ",
2091
+ l.percentage && l.status === "uploading" ? (s(), p(
2092
+ "span",
2093
+ Ne,
2094
+ "(" + I(l.percentage) + "%)",
1971
2095
  1
1972
2096
  /* TEXT */
1973
- )
1974
- ])
1975
- ]),
1976
- _3(c(
1977
- "div",
1978
- Ie,
1979
- [
1980
- A(u(H), {
1981
- style: { "vertical-align": "middle" },
1982
- onClick: (Z) => W(v, B),
1983
- title: "重新上传",
2097
+ )) : b("v-if", !0)
2098
+ ]),
2099
+ l.status === "success" ? (s(), p(
2100
+ "p",
2101
+ Ze,
2102
+ I(u(i3)(l.size / 1024 / 1024)) + "MB ",
2103
+ 1
2104
+ /* TEXT */
2105
+ )) : b("v-if", !0),
2106
+ l.percentage && l.status === "uploading" ? (s(), z(u(d3), {
2107
+ key: 1,
2108
+ "text-inside": "",
2109
+ percentage: l.percentage,
2110
+ color: "var(--el-color-primary)",
2111
+ "show-text": !1
2112
+ }, null, 8, ["percentage"])) : b("v-if", !0)
2113
+ ])
2114
+ ]),
2115
+ e.preview ? (s(), p(
2116
+ U,
2117
+ { key: 1 },
2118
+ [
2119
+ e.preview || l.percentage === 100 ? (s(), z(
2120
+ u(H),
2121
+ {
2122
+ key: 0,
2123
+ title: "预览",
1984
2124
  class: "primary"
1985
- }, {
1986
- default: y(() => [
1987
- A(u(E3))
2125
+ },
2126
+ {
2127
+ default: _(() => [
2128
+ m(u(T3), {
2129
+ onClick: (g) => t3(l)
2130
+ }, null, 8, ["onClick"])
1988
2131
  ]),
1989
2132
  _: 2
1990
2133
  /* DYNAMIC */
1991
- }, 1032, ["onClick"]),
1992
- A(u(H), {
1993
- class: "error",
1994
- onClick: (Z) => m3(v, B),
1995
- title: "删除"
1996
- }, {
1997
- default: y(() => [
1998
- A(u(D3))
2134
+ },
2135
+ 1024
2136
+ /* DYNAMIC_SLOTS */
2137
+ )) : b("v-if", !0),
2138
+ m(
2139
+ u(H),
2140
+ {
2141
+ title: "下载",
2142
+ class: "primary"
2143
+ },
2144
+ {
2145
+ default: _(() => [
2146
+ m(u(H3), {
2147
+ onClick: (g) => m3(l)
2148
+ }, null, 8, ["onClick"])
1999
2149
  ]),
2000
2150
  _: 2
2001
2151
  /* DYNAMIC */
2002
- }, 1032, ["onClick"])
2152
+ },
2153
+ 1024
2154
+ /* DYNAMIC_SLOTS */
2155
+ )
2156
+ ],
2157
+ 64
2158
+ /* STABLE_FRAGMENT */
2159
+ )) : (s(), p("div", Qe, [
2160
+ l.status === "success" ? (s(), p(
2161
+ U,
2162
+ { key: 0 },
2163
+ [
2164
+ m(u(S), {
2165
+ onClick: (g) => t3(l),
2166
+ name: "iksvg_yulan",
2167
+ title: "预览",
2168
+ bg: "",
2169
+ size: "default"
2170
+ }, null, 8, ["onClick"]),
2171
+ m(u(S), {
2172
+ onClick: (g) => J(l),
2173
+ error: "",
2174
+ name: "iksvg_shanchu",
2175
+ title: "删除",
2176
+ bg: "",
2177
+ size: "default"
2178
+ }, null, 8, ["onClick"])
2003
2179
  ],
2004
- 512
2005
- /* NEED_PATCH */
2006
- ), [
2007
- [k3, (v == null ? void 0 : v.status) === "fail"]
2008
- ])
2009
- ]))),
2010
- 128
2011
- /* KEYED_FRAGMENT */
2012
- )) : k("v-if", !0)
2013
- ];
2014
- }),
2015
- _: 3
2016
- /* FORWARDED */
2017
- }, 16, ["accept", "action", "file-list", "multiple", "headers", "limit"])) : (s(), z(u(c3), n3({
2018
- key: 1,
2019
- "file-list": n.value,
2020
- "onUpdate:fileList": f[1] || (f[1] = (i) => n.value = i),
2021
- class: ["ik-file-pload-card", { plain: e.plain }]
2022
- }, p.$attrs, {
2023
- accept: e.accept,
2024
- action: e.action,
2025
- disabled: X.value,
2026
- ref_key: "refUpload",
2027
- ref: m,
2028
- "before-upload": S,
2029
- "before-remove": V,
2030
- "on-exceed": T,
2031
- multiple: e.multiple,
2032
- headers: e.headers,
2033
- limit: e.limit,
2034
- "on-success": _,
2035
- "on-error": j,
2036
- "on-change": D
2037
- }), {
2038
- file: y(({ file: i }) => [
2039
- c("div", $e, [
2040
- c("div", Re, [
2041
- !p.$slots.fileIcon && (!e.customIconData[u(b)(i, l)] || !e.customIconData[u(b)(i, l)][e.customIconFields.icon]) ? (s(), z(h3, {
2042
- key: 0,
2043
- type: u(b)(i, l)
2044
- }, null, 8, ["type"])) : !p.$slots.fileIcon && e.customIconData[u(b)(i, l)] && e.customIconData[u(b)(i, l)][e.customIconFields.icon] ? (s(), h("div", Me, [
2045
- e.customIconData[u(b)(i, l)][e.customIconFields.type] === "img" ? (s(), h("img", {
2046
- key: 0,
2047
- src: e.customIconData[u(b)(i, l)][e.customIconFields.icon],
2048
- alt: "",
2049
- class: "file-img-icon"
2050
- }, null, 8, Ee)) : (s(), h(
2051
- "span",
2052
- {
2053
- key: 1,
2054
- class: $([
2055
- e.customIconData[u(b)(i, l)][e.customIconFields.icon],
2056
- "file-icon-size"
2057
- ])
2058
- },
2059
- null,
2060
- 2
2061
- /* CLASS */
2062
- ))
2063
- ])) : k("v-if", !0),
2064
- c("div", He, [
2065
- M(p.$slots, "fileIcon", { file: i }, void 0, !0)
2066
- ]),
2067
- c("div", Oe, [
2068
- c("p", Ue, [
2180
+ 64
2181
+ /* STABLE_FRAGMENT */
2182
+ )) : (s(), z(u(S), {
2183
+ key: 1,
2184
+ onClick: (g) => J(l),
2185
+ error: "",
2186
+ name: "iksvg_guanbi",
2187
+ size: "default",
2188
+ bg: "",
2189
+ title: "取消上传"
2190
+ }, null, 8, ["onClick"]))
2191
+ ]))
2192
+ ])
2193
+ ]),
2194
+ default: _(() => [
2195
+ d("div", Ee, [
2196
+ d("div", He, [
2197
+ e.imageMode ? E(v.$slots, "image", { key: 0 }, () => [
2198
+ Ue
2199
+ ], !0) : e.showIcon ? (s(), z(u(S), {
2200
+ key: 1,
2201
+ name: "iksvg_img_shangchuanhetongfujianbeifen",
2202
+ type: "primary",
2203
+ bg: "",
2204
+ size: 40
2205
+ })) : b("v-if", !0),
2206
+ d("span", null, [
2069
2207
  q(
2070
- C(i[l.name] || i.name) + " ",
2208
+ I(e.title) + " ",
2071
2209
  1
2072
2210
  /* TEXT */
2073
2211
  ),
2074
- i.percentage && i.status === "uploading" ? (s(), h(
2075
- "span",
2076
- qe,
2077
- "(" + C(i.percentage) + "%)",
2078
- 1
2079
- /* TEXT */
2080
- )) : k("v-if", !0)
2081
- ]),
2082
- i.status === "success" ? (s(), h(
2083
- "p",
2084
- Le,
2085
- C(u(e3)(i.size / 1024 / 1024)) + "MB ",
2086
- 1
2087
- /* TEXT */
2088
- )) : k("v-if", !0),
2089
- i.percentage && i.status === "uploading" ? (s(), z(u(r3), {
2090
- key: 1,
2091
- "text-inside": "",
2092
- percentage: i.percentage,
2093
- color: "var(--el-color-primary)",
2094
- "show-text": !1
2095
- }, null, 8, ["percentage"])) : k("v-if", !0)
2096
- ])
2097
- ]),
2098
- e.preview ? (s(), h(
2099
- O,
2100
- { key: 1 },
2101
- [
2102
- e.preview || i.percentage === 100 ? (s(), z(
2103
- u(H),
2104
- {
2212
+ !e.preview && e.tip ? (s(), z(u(v3), {
2105
2213
  key: 0,
2106
- title: "预览",
2107
- class: "primary"
2108
- },
2109
- {
2110
- default: y(() => [
2111
- A(u(O3), {
2112
- onClick: (v) => E(i)
2113
- }, null, 8, ["onClick"])
2114
- ]),
2115
- _: 2
2116
- /* DYNAMIC */
2117
- },
2118
- 1024
2119
- /* DYNAMIC_SLOTS */
2120
- )) : k("v-if", !0),
2121
- A(
2122
- u(H),
2123
- {
2124
- title: "下载",
2125
- class: "primary"
2126
- },
2127
- {
2128
- default: y(() => [
2129
- A(u($3), {
2130
- onClick: (v) => G(i)
2131
- }, null, 8, ["onClick"])
2214
+ effect: "dark",
2215
+ content: o.tipText || "",
2216
+ "popper-class": "_ik_web_ui_file-help-tooltip"
2217
+ }, {
2218
+ default: _(() => [
2219
+ m(u(H), {
2220
+ size: 23,
2221
+ class: "_ik_web_ui_file_help_icon"
2222
+ }, {
2223
+ default: _(() => [
2224
+ m(u(p3))
2225
+ ]),
2226
+ _: 1
2227
+ /* STABLE */
2228
+ })
2132
2229
  ]),
2133
- _: 2
2134
- /* DYNAMIC */
2135
- },
2136
- 1024
2137
- /* DYNAMIC_SLOTS */
2138
- )
2139
- ],
2140
- 64
2141
- /* STABLE_FRAGMENT */
2142
- )) : (s(), h("div", Te, [
2143
- i.status === "success" ? (s(), h(
2144
- O,
2145
- { key: 0 },
2146
- [
2147
- A(u(I), {
2148
- onClick: (v) => E(i),
2149
- name: "iksvg_yulan",
2150
- title: "预览",
2151
- bg: "",
2152
- size: "default"
2153
- }, null, 8, ["onClick"]),
2154
- A(u(I), {
2155
- onClick: (v) => N(i),
2156
- error: "",
2157
- name: "iksvg_shanchu",
2158
- title: "删除",
2159
- bg: "",
2160
- size: "default"
2161
- }, null, 8, ["onClick"])
2162
- ],
2163
- 64
2164
- /* STABLE_FRAGMENT */
2165
- )) : (s(), z(u(I), {
2166
- key: 1,
2167
- onClick: (v) => N(i),
2168
- error: "",
2169
- name: "iksvg_guanbi",
2170
- size: "default",
2171
- bg: "",
2172
- title: "取消上传"
2173
- }, null, 8, ["onClick"]))
2174
- ]))
2175
- ])
2176
- ]),
2177
- default: y(() => [
2178
- c("div", Se, [
2179
- c("div", De, [
2180
- e.imageMode ? M(p.$slots, "image", { key: 0 }, () => [
2181
- Ve
2182
- ], !0) : e.showIcon ? (s(), z(u(I), {
2183
- key: 1,
2184
- name: "iksvg_img_shangchuanhetongfujianbeifen",
2185
- type: "primary",
2230
+ _: 1
2231
+ /* STABLE */
2232
+ }, 8, ["content"])) : b("v-if", !0)
2233
+ ])
2234
+ ]),
2235
+ m(u(S), {
2236
+ name: "iksvg_daoru",
2186
2237
  bg: "",
2187
- size: 40
2188
- })) : k("v-if", !0),
2189
- c("span", null, [
2190
- q(
2191
- C(e.title) + " ",
2192
- 1
2193
- /* TEXT */
2194
- ),
2195
- !e.preview && e.tip ? (s(), z(u(d3), {
2196
- key: 0,
2197
- effect: "dark",
2198
- content: o.tipText || "",
2199
- "popper-class": "_ik_web_ui_file-help-tooltip"
2200
- }, {
2201
- default: y(() => [
2202
- A(u(H), {
2203
- size: 23,
2204
- class: "_ik_web_ui_file_help_icon"
2205
- }, {
2206
- default: y(() => [
2207
- A(u(u3))
2208
- ]),
2209
- _: 1
2210
- /* STABLE */
2211
- })
2212
- ]),
2213
- _: 1
2214
- /* STABLE */
2215
- }, 8, ["content"])) : k("v-if", !0)
2216
- ])
2217
- ]),
2218
- A(u(I), {
2219
- name: "iksvg_daoru",
2220
- bg: "",
2221
- size: 40,
2222
- padding: "8px"
2223
- })
2224
- ])
2225
- ]),
2226
- _: 3
2227
- /* FORWARDED */
2228
- }, 16, ["file-list", "class", "accept", "action", "disabled", "multiple", "headers", "limit"]))
2229
- ],
2230
- 64
2231
- /* STABLE_FRAGMENT */
2232
- )),
2233
- A(u(W6), {
2234
- show: x.value,
2235
- "onUpdate:show": f[2] || (f[2] = (i) => x.value = i),
2236
- loadUrl: e.loadUrl,
2237
- file: g.value,
2238
- onlyofficeServer: e.onlyofficeServer,
2239
- onlyOfficeConfig: e.onlyOfficeConfig
2240
- }, null, 8, ["show", "loadUrl", "file", "onlyofficeServer", "onlyOfficeConfig"])
2241
- ],
2242
- 64
2243
- /* STABLE_FRAGMENT */
2244
- ));
2238
+ size: 24,
2239
+ width: 40,
2240
+ padding: "0"
2241
+ })
2242
+ ])
2243
+ ]),
2244
+ _: 3
2245
+ /* FORWARDED */
2246
+ }, 16, ["file-list", "class", "accept", "action", "disabled", "multiple", "headers", "limit"]))
2247
+ ],
2248
+ 64
2249
+ /* STABLE_FRAGMENT */
2250
+ )),
2251
+ m(u(G6), {
2252
+ show: B.value,
2253
+ "onUpdate:show": h[2] || (h[2] = (l) => B.value = l),
2254
+ loadUrl: u(f),
2255
+ file: $.value,
2256
+ onlyofficeServer: ((y = u(r)) == null ? void 0 : y.serverUrl) || e.onlyofficeServer,
2257
+ onlyOfficeConfig: u(r)
2258
+ }, null, 8, ["show", "loadUrl", "file", "onlyofficeServer", "onlyOfficeConfig"])
2259
+ ],
2260
+ 64
2261
+ /* STABLE_FRAGMENT */
2262
+ );
2263
+ };
2245
2264
  }
2246
2265
  });
2247
- const Pe = /* @__PURE__ */ K(je, [["__scopeId", "data-v-10a62ee9"]]), Qe = P(Pe);
2266
+ const Ke = /* @__PURE__ */ Y(Je, [["__scopeId", "data-v-cbfa5eb9"]]), et = N(Ke);
2248
2267
  export {
2249
- Qe as IkUploadFile,
2250
- Qe as default
2268
+ et as IkUploadFile,
2269
+ et as default
2251
2270
  };