iking-web-ui-pro 0.0.2 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/dist/IKApprovalProcess/index.es.js +1 -1
  2. package/dist/IKApprovalProcess/index.umd.js +1 -1
  3. package/dist/IKApprovalProcess/style.css +1 -1
  4. package/dist/IKApprovalProcessDetail/style.css +1 -1
  5. package/dist/IKCalendar/index.es.js +1 -1
  6. package/dist/IKCalendar/index.umd.js +1 -1
  7. package/dist/IKCalendar/style.css +1 -1
  8. package/dist/IKDetailPreviewFiles/index.es.js +244 -1424
  9. package/dist/IKDetailPreviewFiles/index.umd.js +1 -1
  10. package/dist/IKDetailPreviewFiles/style.css +1 -1
  11. package/dist/IKExpandCollapse/index.es.js +143 -1323
  12. package/dist/IKExpandCollapse/index.umd.js +1 -1
  13. package/dist/IKExpandCollapse/style.css +1 -1
  14. package/dist/IKSearch/index.es.js +1 -1
  15. package/dist/IKSearch/index.umd.js +1 -1
  16. package/dist/IKSearch/style.css +1 -1
  17. package/dist/IKVerticalStepBar/index.es.js +190 -1370
  18. package/dist/IKVerticalStepBar/index.umd.js +3 -3
  19. package/dist/IKVerticalStepBar/style.css +1 -1
  20. package/dist/IkBaseDialog/index.es.js +234 -0
  21. package/dist/IkBaseDialog/index.umd.js +1 -0
  22. package/dist/IkBaseDialog/style.css +1 -0
  23. package/dist/IkBtnSetting/index.es.js +336 -1517
  24. package/dist/IkBtnSetting/index.umd.js +1 -1
  25. package/dist/IkBtnSetting/style.css +1 -1
  26. package/dist/IkIconPicker/index.es.js +2885 -1449
  27. package/dist/IkIconPicker/index.umd.js +5 -1
  28. package/dist/IkIconPicker/style.css +1 -1
  29. package/dist/IkPageFull/index.es.js +1678 -2859
  30. package/dist/IkPageFull/index.umd.js +3 -3
  31. package/dist/IkPageFull/style.css +1 -1
  32. package/dist/IkPicker/index.es.js +1 -1
  33. package/dist/IkPicker/index.umd.js +1 -1
  34. package/dist/IkPicker/style.css +1 -1
  35. package/dist/IkPickerUser/index.es.js +255 -237
  36. package/dist/IkPickerUser/index.umd.js +1 -1
  37. package/dist/IkPickerUser/style.css +1 -1
  38. package/dist/IkSchedule/index.es.js +2181 -3362
  39. package/dist/IkSchedule/index.umd.js +1 -1
  40. package/dist/IkSchedule/style.css +1 -1
  41. package/dist/IkSvgIcon/index.es.js +125 -1310
  42. package/dist/IkSvgIcon/index.umd.js +1 -1
  43. package/dist/IkUploadFile/index.es.js +955 -596
  44. package/dist/IkUploadFile/index.umd.js +1 -1
  45. package/dist/IkUploadFile/style.css +1 -1
  46. package/dist/IkUploadImage/index.es.js +113 -110
  47. package/dist/IkUploadImage/index.umd.js +1 -1
  48. package/dist/IkUploadImage/style.css +1 -1
  49. package/dist/index.es.js +12914 -11169
  50. package/dist/index.umd.js +10 -6
  51. package/dist/style.css +1 -1
  52. package/package.json +3 -3
  53. package/dist/IkSvgIcon/style.css +0 -1
@@ -1,51 +1,52 @@
1
- import { defineComponent as W, ref as A, computed as B, watch as De, openBlock as v, createBlock as U, unref as T, withCtx as ze, createElementVNode as S, h as ge, resolveComponent as Be, createElementBlock as I, normalizeClass as rt, normalizeStyle as Z, createCommentVNode as H, mergeProps as it, Fragment as me, renderList as ye, createVNode as D, toDisplayString as ve, pushScopeId as st, popScopeId as lt } from "vue";
2
- import { ElDialog as ct } from "element-plus";
3
- const le = (e, t) => {
4
- if (e.install = (n) => {
5
- for (const r of [e, ...Object.values(t ?? {})])
6
- n.component(r.name, r);
7
- }, t)
8
- for (const [n, r] of Object.entries(t))
9
- e[n] = r;
10
- return e;
11
- }, Ue = (e, t) => {
12
- const n = e.__vccOpts || e;
13
- for (const [r, o] of t)
14
- n[r] = o;
15
- return n;
1
+ import { defineComponent as S, ref as _, computed as F, watch as P, openBlock as i, createBlock as T, unref as x, withCtx as j, createElementVNode as p, resolveComponent as N, createElementBlock as a, normalizeClass as w, normalizeStyle as h, createCommentVNode as $, Fragment as B, renderList as I, createVNode as b, toDisplayString as A, pushScopeId as W, popScopeId as q } from "vue";
2
+ import { ElDialog as R } from "element-plus";
3
+ import { ikColor as G } from "iking-utils";
4
+ const U = (l, e) => {
5
+ if (l.install = (s) => {
6
+ for (const o of [l, ...Object.values(e ?? {})])
7
+ s.component(o.name, o);
8
+ }, e)
9
+ for (const [s, o] of Object.entries(e))
10
+ l[s] = o;
11
+ return l;
12
+ }, X = (l, e) => {
13
+ const s = l.__vccOpts || l;
14
+ for (const [o, t] of e)
15
+ s[o] = t;
16
+ return s;
16
17
  };
17
- const at = typeof btoa == "function", ce = typeof Buffer == "function";
18
+ const Y = typeof btoa == "function", z = typeof Buffer == "function";
18
19
  typeof TextDecoder == "function" && new TextDecoder();
19
- const be = typeof TextEncoder == "function" ? new TextEncoder() : void 0, ft = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", E = Array.prototype.slice.call(ft);
20
- ((e) => {
21
- let t = {};
22
- return e.forEach((n, r) => t[n] = r), t;
23
- })(E);
24
- const k = String.fromCharCode.bind(String);
20
+ const D = typeof TextEncoder == "function" ? new TextEncoder() : void 0, H = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", k = Array.prototype.slice.call(H);
21
+ ((l) => {
22
+ let e = {};
23
+ return l.forEach((s, o) => e[s] = o), e;
24
+ })(k);
25
+ const d = String.fromCharCode.bind(String);
25
26
  typeof Uint8Array.from == "function" && Uint8Array.from.bind(Uint8Array);
26
- const ut = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (t) => t == "+" ? "-" : "_"), dt = (e) => {
27
- let t, n, r, o, i = "";
28
- const s = e.length % 3;
29
- for (let c = 0; c < e.length; ) {
30
- if ((n = e.charCodeAt(c++)) > 255 || (r = e.charCodeAt(c++)) > 255 || (o = e.charCodeAt(c++)) > 255)
27
+ const J = (l) => l.replace(/=/g, "").replace(/[+\/]/g, (e) => e == "+" ? "-" : "_"), M = (l) => {
28
+ let e, s, o, t, c = "";
29
+ const u = l.length % 3;
30
+ for (let g = 0; g < l.length; ) {
31
+ if ((s = l.charCodeAt(g++)) > 255 || (o = l.charCodeAt(g++)) > 255 || (t = l.charCodeAt(g++)) > 255)
31
32
  throw new TypeError("invalid character found");
32
- t = n << 16 | r << 8 | o, i += E[t >> 18 & 63] + E[t >> 12 & 63] + E[t >> 6 & 63] + E[t & 63];
33
- }
34
- return s ? i.slice(0, s - 3) + "===".substring(s) : i;
35
- }, Ne = at ? (e) => btoa(e) : ce ? (e) => Buffer.from(e, "binary").toString("base64") : dt, pt = ce ? (e) => Buffer.from(e).toString("base64") : (e) => {
36
- let n = [];
37
- for (let r = 0, o = e.length; r < o; r += 4096)
38
- n.push(k.apply(null, e.subarray(r, r + 4096)));
39
- return Ne(n.join(""));
40
- }, ht = (e) => {
41
- if (e.length < 2) {
42
- var t = e.charCodeAt(0);
43
- return t < 128 ? e : t < 2048 ? k(192 | t >>> 6) + k(128 | t & 63) : k(224 | t >>> 12 & 15) + k(128 | t >>> 6 & 63) + k(128 | t & 63);
33
+ e = s << 16 | o << 8 | t, c += k[e >> 18 & 63] + k[e >> 12 & 63] + k[e >> 6 & 63] + k[e & 63];
34
+ }
35
+ return u ? c.slice(0, u - 3) + "===".substring(u) : c;
36
+ }, K = Y ? (l) => btoa(l) : z ? (l) => Buffer.from(l, "binary").toString("base64") : M, Q = z ? (l) => Buffer.from(l).toString("base64") : (l) => {
37
+ let s = [];
38
+ for (let o = 0, t = l.length; o < t; o += 4096)
39
+ s.push(d.apply(null, l.subarray(o, o + 4096)));
40
+ return K(s.join(""));
41
+ }, Z = (l) => {
42
+ if (l.length < 2) {
43
+ var e = l.charCodeAt(0);
44
+ return e < 128 ? l : e < 2048 ? d(192 | e >>> 6) + d(128 | e & 63) : d(224 | e >>> 12 & 15) + d(128 | e >>> 6 & 63) + d(128 | e & 63);
44
45
  } else {
45
- var t = 65536 + (e.charCodeAt(0) - 55296) * 1024 + (e.charCodeAt(1) - 56320);
46
- return k(240 | t >>> 18 & 7) + k(128 | t >>> 12 & 63) + k(128 | t >>> 6 & 63) + k(128 | t & 63);
46
+ var e = 65536 + (l.charCodeAt(0) - 55296) * 1024 + (l.charCodeAt(1) - 56320);
47
+ return d(240 | e >>> 18 & 7) + d(128 | e >>> 12 & 63) + d(128 | e >>> 6 & 63) + d(128 | e & 63);
47
48
  }
48
- }, gt = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, mt = (e) => e.replace(gt, ht), we = ce ? (e) => Buffer.from(e, "utf8").toString("base64") : be ? (e) => pt(be.encode(e)) : (e) => Ne(mt(e)), yt = (e, t = !1) => t ? ut(we(e)) : we(e), vt = ["src"], bt = /* @__PURE__ */ W({
49
+ }, ee = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, le = (l) => l.replace(ee, Z), V = z ? (l) => Buffer.from(l, "utf8").toString("base64") : D ? (l) => Q(D.encode(l)) : (l) => K(le(l)), te = (l, e = !1) => e ? J(V(l)) : V(l), ne = ["src"], se = /* @__PURE__ */ S({
49
50
  __name: "IKPreviewFile",
50
51
  props: {
51
52
  modelValue: {
@@ -75,1243 +76,47 @@ const ut = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (t) => t == "+" ? "-" :
75
76
  default: ""
76
77
  }
77
78
  },
78
- setup(e) {
79
- const t = e, n = A(null), r = B(() => !t.kkUrl || !t.url ? "" : `${t.kkUrl}${encodeURIComponent(
80
- yt(`${t.loadUrl}${t.url}${t.fileName ? `&fullfilename=${t.fileName}` : ""}`)
81
- )}`), o = A(t.modelValue);
82
- return De(() => t.modelValue, (i) => {
83
- o.value = i;
84
- }), (i, s) => (v(), U(T(ct), {
79
+ setup(l) {
80
+ const e = l, s = _(null), o = F(() => !e.kkUrl || !e.url ? "" : `${e.kkUrl}${encodeURIComponent(
81
+ te(`${e.loadUrl}${e.url}${e.fileName ? `&fullfilename=${e.fileName}` : ""}`)
82
+ )}`), t = _(e.modelValue);
83
+ return P(() => e.modelValue, (c) => {
84
+ t.value = c;
85
+ }), (c, u) => (i(), T(x(R), {
85
86
  fullscreen: "",
86
- modelValue: o.value,
87
- "onUpdate:modelValue": s[0] || (s[0] = (c) => o.value = c),
87
+ modelValue: t.value,
88
+ "onUpdate:modelValue": u[0] || (u[0] = (g) => t.value = g),
88
89
  "destroy-on-close": "",
89
90
  "append-to-body": "",
90
91
  "modal-class": "ik-file-preview-modal",
91
- onClose: s[1] || (s[1] = (c) => i.$emit("update:modelValue", !1)),
92
+ onClose: u[1] || (u[1] = (g) => c.$emit("update:modelValue", !1)),
92
93
  class: "ik-file-preview"
93
94
  }, {
94
- default: ze(() => [
95
- S("iframe", {
95
+ default: j(() => [
96
+ p("iframe", {
96
97
  ref_key: "freamRef",
97
- ref: n,
98
+ ref: s,
98
99
  "cross-origin": "",
99
- src: r.value,
100
+ src: o.value,
100
101
  frameborder: "0",
101
102
  allowfullscreen: "",
102
103
  seamless: ""
103
- }, null, 8, vt)
104
+ }, null, 8, ne)
104
105
  ]),
105
106
  _: 1
106
107
  /* STABLE */
107
108
  }, 8, ["modelValue"]));
108
109
  }
109
110
  });
110
- const wt = le(bt), L = /^[a-z0-9]+(-[a-z0-9]+)*$/, K = (e, t, n, r = "") => {
111
- const o = e.split(":");
112
- if (e.slice(0, 1) === "@") {
113
- if (o.length < 2 || o.length > 3)
114
- return null;
115
- r = o.shift().slice(1);
116
- }
117
- if (o.length > 3 || !o.length)
118
- return null;
119
- if (o.length > 1) {
120
- const c = o.pop(), a = o.pop(), l = {
121
- // Allow provider without '@': "provider:prefix:name"
122
- provider: o.length > 0 ? o[0] : r,
123
- prefix: a,
124
- name: c
125
- };
126
- return t && !N(l) ? null : l;
127
- }
128
- const i = o[0], s = i.split("-");
129
- if (s.length > 1) {
130
- const c = {
131
- provider: r,
132
- prefix: s.shift(),
133
- name: s.join("-")
134
- };
135
- return t && !N(c) ? null : c;
136
- }
137
- if (n && r === "") {
138
- const c = {
139
- provider: r,
140
- prefix: "",
141
- name: i
142
- };
143
- return t && !N(c, n) ? null : c;
144
- }
145
- return null;
146
- }, N = (e, t) => e ? !!((e.provider === "" || e.provider.match(L)) && (t && e.prefix === "" || e.prefix.match(L)) && e.name.match(L)) : !1, Ve = Object.freeze(
147
- {
148
- left: 0,
149
- top: 0,
150
- width: 16,
151
- height: 16
152
- }
153
- ), q = Object.freeze({
154
- rotate: 0,
155
- vFlip: !1,
156
- hFlip: !1
157
- }), Q = Object.freeze({
158
- ...Ve,
159
- ...q
160
- }), ee = Object.freeze({
161
- ...Q,
162
- body: "",
163
- hidden: !1
164
- });
165
- function xt(e, t) {
166
- const n = {};
167
- !e.hFlip != !t.hFlip && (n.hFlip = !0), !e.vFlip != !t.vFlip && (n.vFlip = !0);
168
- const r = ((e.rotate || 0) + (t.rotate || 0)) % 4;
169
- return r && (n.rotate = r), n;
170
- }
171
- function xe(e, t) {
172
- const n = xt(e, t);
173
- for (const r in ee)
174
- r in q ? r in e && !(r in n) && (n[r] = q[r]) : r in t ? n[r] = t[r] : r in e && (n[r] = e[r]);
175
- return n;
176
- }
177
- function It(e, t) {
178
- const n = e.icons, r = e.aliases || /* @__PURE__ */ Object.create(null), o = /* @__PURE__ */ Object.create(null);
179
- function i(s) {
180
- if (n[s])
181
- return o[s] = [];
182
- if (!(s in o)) {
183
- o[s] = null;
184
- const c = r[s] && r[s].parent, a = c && i(c);
185
- a && (o[s] = [c].concat(a));
186
- }
187
- return o[s];
188
- }
189
- return (t || Object.keys(n).concat(Object.keys(r))).forEach(i), o;
190
- }
191
- function kt(e, t, n) {
192
- const r = e.icons, o = e.aliases || /* @__PURE__ */ Object.create(null);
193
- let i = {};
194
- function s(c) {
195
- i = xe(
196
- r[c] || o[c],
197
- i
198
- );
199
- }
200
- return s(t), n.forEach(s), xe(e, i);
201
- }
202
- function Re(e, t) {
203
- const n = [];
204
- if (typeof e != "object" || typeof e.icons != "object")
205
- return n;
206
- e.not_found instanceof Array && e.not_found.forEach((o) => {
207
- t(o, null), n.push(o);
208
- });
209
- const r = It(e);
210
- for (const o in r) {
211
- const i = r[o];
212
- i && (t(o, kt(e, o, i)), n.push(o));
213
- }
214
- return n;
215
- }
216
- const St = {
217
- provider: "",
218
- aliases: {},
219
- not_found: {},
220
- ...Ve
221
- };
222
- function X(e, t) {
223
- for (const n in t)
224
- if (n in e && typeof e[n] != typeof t[n])
225
- return !1;
226
- return !0;
227
- }
228
- function He(e) {
229
- if (typeof e != "object" || e === null)
230
- return null;
231
- const t = e;
232
- if (typeof t.prefix != "string" || !e.icons || typeof e.icons != "object" || !X(e, St))
233
- return null;
234
- const n = t.icons;
235
- for (const o in n) {
236
- const i = n[o];
237
- if (!o.match(L) || typeof i.body != "string" || !X(
238
- i,
239
- ee
240
- ))
241
- return null;
242
- }
243
- const r = t.aliases || /* @__PURE__ */ Object.create(null);
244
- for (const o in r) {
245
- const i = r[o], s = i.parent;
246
- if (!o.match(L) || typeof s != "string" || !n[s] && !r[s] || !X(
247
- i,
248
- ee
249
- ))
250
- return null;
251
- }
252
- return t;
253
- }
254
- const Ie = /* @__PURE__ */ Object.create(null);
255
- function _t(e, t) {
256
- return {
257
- provider: e,
258
- prefix: t,
259
- icons: /* @__PURE__ */ Object.create(null),
260
- missing: /* @__PURE__ */ new Set()
261
- };
262
- }
263
- function F(e, t) {
264
- const n = Ie[e] || (Ie[e] = /* @__PURE__ */ Object.create(null));
265
- return n[t] || (n[t] = _t(e, t));
266
- }
267
- function ae(e, t) {
268
- return He(t) ? Re(t, (n, r) => {
269
- r ? e.icons[n] = r : e.missing.add(n);
270
- }) : [];
271
- }
272
- function Ct(e, t, n) {
273
- try {
274
- if (typeof n.body == "string")
275
- return e.icons[t] = { ...n }, !0;
276
- } catch {
277
- }
278
- return !1;
279
- }
280
- let $ = !1;
281
- function qe(e) {
282
- return typeof e == "boolean" && ($ = e), $;
283
- }
284
- function Ft(e) {
285
- const t = typeof e == "string" ? K(e, !0, $) : e;
286
- if (t) {
287
- const n = F(t.provider, t.prefix), r = t.name;
288
- return n.icons[r] || (n.missing.has(r) ? null : void 0);
289
- }
290
- }
291
- function Tt(e, t) {
292
- const n = K(e, !0, $);
293
- if (!n)
294
- return !1;
295
- const r = F(n.provider, n.prefix);
296
- return Ct(r, n.name, t);
297
- }
298
- function Pt(e, t) {
299
- if (typeof e != "object")
300
- return !1;
301
- if (typeof t != "string" && (t = e.provider || ""), $ && !t && !e.prefix) {
302
- let o = !1;
303
- return He(e) && (e.prefix = "", Re(e, (i, s) => {
304
- s && Tt(i, s) && (o = !0);
305
- })), o;
306
- }
307
- const n = e.prefix;
308
- if (!N({
309
- provider: t,
310
- prefix: n,
311
- name: "a"
312
- }))
313
- return !1;
314
- const r = F(t, n);
315
- return !!ae(r, e);
316
- }
317
- const We = Object.freeze({
318
- width: null,
319
- height: null
320
- }), Ke = Object.freeze({
321
- // Dimensions
322
- ...We,
323
- // Transformations
324
- ...q
325
- }), jt = /(-?[0-9.]*[0-9]+[0-9.]*)/g, Et = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
326
- function ke(e, t, n) {
327
- if (t === 1)
328
- return e;
329
- if (n = n || 100, typeof e == "number")
330
- return Math.ceil(e * t * n) / n;
331
- if (typeof e != "string")
332
- return e;
333
- const r = e.split(jt);
334
- if (r === null || !r.length)
335
- return e;
336
- const o = [];
337
- let i = r.shift(), s = Et.test(i);
338
- for (; ; ) {
339
- if (s) {
340
- const c = parseFloat(i);
341
- isNaN(c) ? o.push(i) : o.push(Math.ceil(c * t * n) / n);
342
- } else
343
- o.push(i);
344
- if (i = r.shift(), i === void 0)
345
- return o.join("");
346
- s = !s;
347
- }
348
- }
349
- const At = (e) => e === "unset" || e === "undefined" || e === "none";
350
- function Lt(e, t) {
351
- const n = {
352
- ...Q,
353
- ...e
354
- }, r = {
355
- ...Ke,
356
- ...t
357
- }, o = {
358
- left: n.left,
359
- top: n.top,
360
- width: n.width,
361
- height: n.height
362
- };
363
- let i = n.body;
364
- [n, r].forEach((d) => {
365
- const h = [], g = d.hFlip, _ = d.vFlip;
366
- let b = d.rotate;
367
- g ? _ ? b += 2 : (h.push(
368
- "translate(" + (o.width + o.left).toString() + " " + (0 - o.top).toString() + ")"
369
- ), h.push("scale(-1 1)"), o.top = o.left = 0) : _ && (h.push(
370
- "translate(" + (0 - o.left).toString() + " " + (o.height + o.top).toString() + ")"
371
- ), h.push("scale(1 -1)"), o.top = o.left = 0);
372
- let w;
373
- switch (b < 0 && (b -= Math.floor(b / 4) * 4), b = b % 4, b) {
374
- case 1:
375
- w = o.height / 2 + o.top, h.unshift(
376
- "rotate(90 " + w.toString() + " " + w.toString() + ")"
377
- );
378
- break;
379
- case 2:
380
- h.unshift(
381
- "rotate(180 " + (o.width / 2 + o.left).toString() + " " + (o.height / 2 + o.top).toString() + ")"
382
- );
383
- break;
384
- case 3:
385
- w = o.width / 2 + o.left, h.unshift(
386
- "rotate(-90 " + w.toString() + " " + w.toString() + ")"
387
- );
388
- break;
389
- }
390
- b % 2 === 1 && (o.left !== o.top && (w = o.left, o.left = o.top, o.top = w), o.width !== o.height && (w = o.width, o.width = o.height, o.height = w)), h.length && (i = '<g transform="' + h.join(" ") + '">' + i + "</g>");
391
- });
392
- const s = r.width, c = r.height, a = o.width, l = o.height;
393
- let f, u;
394
- s === null ? (u = c === null ? "1em" : c === "auto" ? l : c, f = ke(u, a / l)) : (f = s === "auto" ? a : s, u = c === null ? ke(f, l / a) : c === "auto" ? l : c);
395
- const p = {}, y = (d, h) => {
396
- At(h) || (p[d] = h.toString());
397
- };
398
- return y("width", f), y("height", u), p.viewBox = o.left.toString() + " " + o.top.toString() + " " + a.toString() + " " + l.toString(), {
399
- attributes: p,
400
- body: i
401
- };
402
- }
403
- const $t = /\sid="(\S+)"/g, Mt = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
404
- let Ot = 0;
405
- function Dt(e, t = Mt) {
406
- const n = [];
407
- let r;
408
- for (; r = $t.exec(e); )
409
- n.push(r[1]);
410
- if (!n.length)
411
- return e;
412
- const o = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
413
- return n.forEach((i) => {
414
- const s = typeof t == "function" ? t(i) : t + (Ot++).toString(), c = i.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
415
- e = e.replace(
416
- // Allowed characters before id: [#;"]
417
- // Allowed characters after id: [)"], .[a-z]
418
- new RegExp('([#;"])(' + c + ')([")]|\\.[a-z])', "g"),
419
- "$1" + s + o + "$3"
420
- );
421
- }), e = e.replace(new RegExp(o, "g"), ""), e;
422
- }
423
- const te = /* @__PURE__ */ Object.create(null);
424
- function zt(e, t) {
425
- te[e] = t;
426
- }
427
- function ne(e) {
428
- return te[e] || te[""];
429
- }
430
- function fe(e) {
431
- let t;
432
- if (typeof e.resources == "string")
433
- t = [e.resources];
434
- else if (t = e.resources, !(t instanceof Array) || !t.length)
435
- return null;
436
- return {
437
- // API hosts
438
- resources: t,
439
- // Root path
440
- path: e.path || "/",
441
- // URL length limit
442
- maxURL: e.maxURL || 500,
443
- // Timeout before next host is used.
444
- rotate: e.rotate || 750,
445
- // Timeout before failing query.
446
- timeout: e.timeout || 5e3,
447
- // Randomise default API end point.
448
- random: e.random === !0,
449
- // Start index
450
- index: e.index || 0,
451
- // Receive data after time out (used if time out kicks in first, then API module sends data anyway).
452
- dataAfterTimeout: e.dataAfterTimeout !== !1
453
- };
454
- }
455
- const ue = /* @__PURE__ */ Object.create(null), j = [
456
- "https://api.simplesvg.com",
457
- "https://api.unisvg.com"
458
- ], V = [];
459
- for (; j.length > 0; )
460
- j.length === 1 || Math.random() > 0.5 ? V.push(j.shift()) : V.push(j.pop());
461
- ue[""] = fe({
462
- resources: ["https://api.iconify.design"].concat(V)
463
- });
464
- function Bt(e, t) {
465
- const n = fe(t);
466
- return n === null ? !1 : (ue[e] = n, !0);
467
- }
468
- function de(e) {
469
- return ue[e];
470
- }
471
- const Ut = () => {
472
- let e;
473
- try {
474
- if (e = fetch, typeof e == "function")
475
- return e;
476
- } catch {
477
- }
478
- };
479
- let Se = Ut();
480
- function Nt(e, t) {
481
- const n = de(e);
482
- if (!n)
483
- return 0;
484
- let r;
485
- if (!n.maxURL)
486
- r = 0;
487
- else {
488
- let o = 0;
489
- n.resources.forEach((s) => {
490
- o = Math.max(o, s.length);
491
- });
492
- const i = t + ".json?icons=";
493
- r = n.maxURL - o - n.path.length - i.length;
494
- }
495
- return r;
496
- }
497
- function Vt(e) {
498
- return e === 404;
499
- }
500
- const Rt = (e, t, n) => {
501
- const r = [], o = Nt(e, t), i = "icons";
502
- let s = {
503
- type: i,
504
- provider: e,
505
- prefix: t,
506
- icons: []
507
- }, c = 0;
508
- return n.forEach((a, l) => {
509
- c += a.length + 1, c >= o && l > 0 && (r.push(s), s = {
510
- type: i,
511
- provider: e,
512
- prefix: t,
513
- icons: []
514
- }, c = a.length), s.icons.push(a);
515
- }), r.push(s), r;
516
- };
517
- function Ht(e) {
518
- if (typeof e == "string") {
519
- const t = de(e);
520
- if (t)
521
- return t.path;
522
- }
523
- return "/";
524
- }
525
- const qt = (e, t, n) => {
526
- if (!Se) {
527
- n("abort", 424);
528
- return;
529
- }
530
- let r = Ht(t.provider);
531
- switch (t.type) {
532
- case "icons": {
533
- const i = t.prefix, c = t.icons.join(","), a = new URLSearchParams({
534
- icons: c
535
- });
536
- r += i + ".json?" + a.toString();
537
- break;
538
- }
539
- case "custom": {
540
- const i = t.uri;
541
- r += i.slice(0, 1) === "/" ? i.slice(1) : i;
542
- break;
543
- }
544
- default:
545
- n("abort", 400);
546
- return;
547
- }
548
- let o = 503;
549
- Se(e + r).then((i) => {
550
- const s = i.status;
551
- if (s !== 200) {
552
- setTimeout(() => {
553
- n(Vt(s) ? "abort" : "next", s);
554
- });
555
- return;
556
- }
557
- return o = 501, i.json();
558
- }).then((i) => {
559
- if (typeof i != "object" || i === null) {
560
- setTimeout(() => {
561
- i === 404 ? n("abort", i) : n("next", o);
562
- });
563
- return;
564
- }
565
- setTimeout(() => {
566
- n("success", i);
567
- });
568
- }).catch(() => {
569
- n("next", o);
570
- });
571
- }, Wt = {
572
- prepare: Rt,
573
- send: qt
574
- };
575
- function Kt(e) {
576
- const t = {
577
- loaded: [],
578
- missing: [],
579
- pending: []
580
- }, n = /* @__PURE__ */ Object.create(null);
581
- e.sort((o, i) => o.provider !== i.provider ? o.provider.localeCompare(i.provider) : o.prefix !== i.prefix ? o.prefix.localeCompare(i.prefix) : o.name.localeCompare(i.name));
582
- let r = {
583
- provider: "",
584
- prefix: "",
585
- name: ""
586
- };
587
- return e.forEach((o) => {
588
- if (r.name === o.name && r.prefix === o.prefix && r.provider === o.provider)
589
- return;
590
- r = o;
591
- const i = o.provider, s = o.prefix, c = o.name, a = n[i] || (n[i] = /* @__PURE__ */ Object.create(null)), l = a[s] || (a[s] = F(i, s));
592
- let f;
593
- c in l.icons ? f = t.loaded : s === "" || l.missing.has(c) ? f = t.missing : f = t.pending;
594
- const u = {
595
- provider: i,
596
- prefix: s,
597
- name: c
598
- };
599
- f.push(u);
600
- }), t;
601
- }
602
- function Qe(e, t) {
603
- e.forEach((n) => {
604
- const r = n.loaderCallbacks;
605
- r && (n.loaderCallbacks = r.filter((o) => o.id !== t));
606
- });
607
- }
608
- function Qt(e) {
609
- e.pendingCallbacksFlag || (e.pendingCallbacksFlag = !0, setTimeout(() => {
610
- e.pendingCallbacksFlag = !1;
611
- const t = e.loaderCallbacks ? e.loaderCallbacks.slice(0) : [];
612
- if (!t.length)
613
- return;
614
- let n = !1;
615
- const r = e.provider, o = e.prefix;
616
- t.forEach((i) => {
617
- const s = i.icons, c = s.pending.length;
618
- s.pending = s.pending.filter((a) => {
619
- if (a.prefix !== o)
620
- return !0;
621
- const l = a.name;
622
- if (e.icons[l])
623
- s.loaded.push({
624
- provider: r,
625
- prefix: o,
626
- name: l
627
- });
628
- else if (e.missing.has(l))
629
- s.missing.push({
630
- provider: r,
631
- prefix: o,
632
- name: l
633
- });
634
- else
635
- return n = !0, !0;
636
- return !1;
637
- }), s.pending.length !== c && (n || Qe([e], i.id), i.callback(
638
- s.loaded.slice(0),
639
- s.missing.slice(0),
640
- s.pending.slice(0),
641
- i.abort
642
- ));
643
- });
644
- }));
645
- }
646
- let Gt = 0;
647
- function Jt(e, t, n) {
648
- const r = Gt++, o = Qe.bind(null, n, r);
649
- if (!t.pending.length)
650
- return o;
651
- const i = {
652
- id: r,
653
- icons: t,
654
- callback: e,
655
- abort: o
656
- };
657
- return n.forEach((s) => {
658
- (s.loaderCallbacks || (s.loaderCallbacks = [])).push(i);
659
- }), o;
660
- }
661
- function Xt(e, t = !0, n = !1) {
662
- const r = [];
663
- return e.forEach((o) => {
664
- const i = typeof o == "string" ? K(o, t, n) : o;
665
- i && r.push(i);
666
- }), r;
667
- }
668
- var Yt = {
669
- resources: [],
670
- index: 0,
671
- timeout: 2e3,
672
- rotate: 750,
673
- random: !1,
674
- dataAfterTimeout: !1
675
- };
676
- function Zt(e, t, n, r) {
677
- const o = e.resources.length, i = e.random ? Math.floor(Math.random() * o) : e.index;
678
- let s;
679
- if (e.random) {
680
- let m = e.resources.slice(0);
681
- for (s = []; m.length > 1; ) {
682
- const x = Math.floor(Math.random() * m.length);
683
- s.push(m[x]), m = m.slice(0, x).concat(m.slice(x + 1));
684
- }
685
- s = s.concat(m);
686
- } else
687
- s = e.resources.slice(i).concat(e.resources.slice(0, i));
688
- const c = Date.now();
689
- let a = "pending", l = 0, f, u = null, p = [], y = [];
690
- typeof r == "function" && y.push(r);
691
- function d() {
692
- u && (clearTimeout(u), u = null);
693
- }
694
- function h() {
695
- a === "pending" && (a = "aborted"), d(), p.forEach((m) => {
696
- m.status === "pending" && (m.status = "aborted");
697
- }), p = [];
698
- }
699
- function g(m, x) {
700
- x && (y = []), typeof m == "function" && y.push(m);
701
- }
702
- function _() {
703
- return {
704
- startTime: c,
705
- payload: t,
706
- status: a,
707
- queriesSent: l,
708
- queriesPending: p.length,
709
- subscribe: g,
710
- abort: h
711
- };
712
- }
713
- function b() {
714
- a = "failed", y.forEach((m) => {
715
- m(void 0, f);
716
- });
717
- }
718
- function w() {
719
- p.forEach((m) => {
720
- m.status === "pending" && (m.status = "aborted");
721
- }), p = [];
722
- }
723
- function ot(m, x, P) {
724
- const O = x !== "success";
725
- switch (p = p.filter((C) => C !== m), a) {
726
- case "pending":
727
- break;
728
- case "failed":
729
- if (O || !e.dataAfterTimeout)
730
- return;
731
- break;
732
- default:
733
- return;
734
- }
735
- if (x === "abort") {
736
- f = P, b();
737
- return;
738
- }
739
- if (O) {
740
- f = P, p.length || (s.length ? J() : b());
741
- return;
742
- }
743
- if (d(), w(), !e.random) {
744
- const C = e.resources.indexOf(m.resource);
745
- C !== -1 && C !== e.index && (e.index = C);
746
- }
747
- a = "completed", y.forEach((C) => {
748
- C(P);
749
- });
750
- }
751
- function J() {
752
- if (a !== "pending")
753
- return;
754
- d();
755
- const m = s.shift();
756
- if (m === void 0) {
757
- if (p.length) {
758
- u = setTimeout(() => {
759
- d(), a === "pending" && (w(), b());
760
- }, e.timeout);
761
- return;
762
- }
763
- b();
764
- return;
765
- }
766
- const x = {
767
- status: "pending",
768
- resource: m,
769
- callback: (P, O) => {
770
- ot(x, P, O);
771
- }
772
- };
773
- p.push(x), l++, u = setTimeout(J, e.rotate), n(m, t, x.callback);
774
- }
775
- return setTimeout(J), _;
776
- }
777
- function Ge(e) {
778
- const t = {
779
- ...Yt,
780
- ...e
781
- };
782
- let n = [];
783
- function r() {
784
- n = n.filter((c) => c().status === "pending");
785
- }
786
- function o(c, a, l) {
787
- const f = Zt(
788
- t,
789
- c,
790
- a,
791
- (u, p) => {
792
- r(), l && l(u, p);
793
- }
794
- );
795
- return n.push(f), f;
796
- }
797
- function i(c) {
798
- return n.find((a) => c(a)) || null;
799
- }
800
- return {
801
- query: o,
802
- find: i,
803
- setIndex: (c) => {
804
- t.index = c;
805
- },
806
- getIndex: () => t.index,
807
- cleanup: r
808
- };
809
- }
810
- function _e() {
811
- }
812
- const Y = /* @__PURE__ */ Object.create(null);
813
- function en(e) {
814
- if (!Y[e]) {
815
- const t = de(e);
816
- if (!t)
817
- return;
818
- const n = Ge(t), r = {
819
- config: t,
820
- redundancy: n
821
- };
822
- Y[e] = r;
823
- }
824
- return Y[e];
825
- }
826
- function tn(e, t, n) {
827
- let r, o;
828
- if (typeof e == "string") {
829
- const i = ne(e);
830
- if (!i)
831
- return n(void 0, 424), _e;
832
- o = i.send;
833
- const s = en(e);
834
- s && (r = s.redundancy);
835
- } else {
836
- const i = fe(e);
837
- if (i) {
838
- r = Ge(i);
839
- const s = e.resources ? e.resources[0] : "", c = ne(s);
840
- c && (o = c.send);
841
- }
842
- }
843
- return !r || !o ? (n(void 0, 424), _e) : r.query(t, o, n)().abort;
844
- }
845
- const Ce = "iconify2", M = "iconify", Je = M + "-count", Fe = M + "-version", Xe = 36e5, nn = 168;
846
- function oe(e, t) {
847
- try {
848
- return e.getItem(t);
849
- } catch {
850
- }
851
- }
852
- function pe(e, t, n) {
853
- try {
854
- return e.setItem(t, n), !0;
855
- } catch {
856
- }
857
- }
858
- function Te(e, t) {
859
- try {
860
- e.removeItem(t);
861
- } catch {
862
- }
863
- }
864
- function re(e, t) {
865
- return pe(e, Je, t.toString());
866
- }
867
- function ie(e) {
868
- return parseInt(oe(e, Je)) || 0;
869
- }
870
- const G = {
871
- local: !0,
872
- session: !0
873
- }, Ye = {
874
- local: /* @__PURE__ */ new Set(),
875
- session: /* @__PURE__ */ new Set()
876
- };
877
- let he = !1;
878
- function on(e) {
879
- he = e;
880
- }
881
- let z = typeof window > "u" ? {} : window;
882
- function Ze(e) {
883
- const t = e + "Storage";
884
- try {
885
- if (z && z[t] && typeof z[t].length == "number")
886
- return z[t];
887
- } catch {
888
- }
889
- G[e] = !1;
890
- }
891
- function et(e, t) {
892
- const n = Ze(e);
893
- if (!n)
894
- return;
895
- const r = oe(n, Fe);
896
- if (r !== Ce) {
897
- if (r) {
898
- const c = ie(n);
899
- for (let a = 0; a < c; a++)
900
- Te(n, M + a.toString());
901
- }
902
- pe(n, Fe, Ce), re(n, 0);
903
- return;
904
- }
905
- const o = Math.floor(Date.now() / Xe) - nn, i = (c) => {
906
- const a = M + c.toString(), l = oe(n, a);
907
- if (typeof l == "string") {
908
- try {
909
- const f = JSON.parse(l);
910
- if (typeof f == "object" && typeof f.cached == "number" && f.cached > o && typeof f.provider == "string" && typeof f.data == "object" && typeof f.data.prefix == "string" && // Valid item: run callback
911
- t(f, c))
912
- return !0;
913
- } catch {
914
- }
915
- Te(n, a);
916
- }
917
- };
918
- let s = ie(n);
919
- for (let c = s - 1; c >= 0; c--)
920
- i(c) || (c === s - 1 ? (s--, re(n, s)) : Ye[e].add(c));
921
- }
922
- function tt() {
923
- if (!he) {
924
- on(!0);
925
- for (const e in G)
926
- et(e, (t) => {
927
- const n = t.data, r = t.provider, o = n.prefix, i = F(
928
- r,
929
- o
930
- );
931
- if (!ae(i, n).length)
932
- return !1;
933
- const s = n.lastModified || -1;
934
- return i.lastModifiedCached = i.lastModifiedCached ? Math.min(i.lastModifiedCached, s) : s, !0;
935
- });
936
- }
937
- }
938
- function rn(e, t) {
939
- const n = e.lastModifiedCached;
940
- if (
941
- // Matches or newer
942
- n && n >= t
943
- )
944
- return n === t;
945
- if (e.lastModifiedCached = t, n)
946
- for (const r in G)
947
- et(r, (o) => {
948
- const i = o.data;
949
- return o.provider !== e.provider || i.prefix !== e.prefix || i.lastModified === t;
950
- });
951
- return !0;
952
- }
953
- function sn(e, t) {
954
- he || tt();
955
- function n(r) {
956
- let o;
957
- if (!G[r] || !(o = Ze(r)))
958
- return;
959
- const i = Ye[r];
960
- let s;
961
- if (i.size)
962
- i.delete(s = Array.from(i).shift());
963
- else if (s = ie(o), !re(o, s + 1))
964
- return;
965
- const c = {
966
- cached: Math.floor(Date.now() / Xe),
967
- provider: e.provider,
968
- data: t
969
- };
970
- return pe(
971
- o,
972
- M + s.toString(),
973
- JSON.stringify(c)
974
- );
975
- }
976
- t.lastModified && !rn(e, t.lastModified) || Object.keys(t.icons).length && (t.not_found && (t = Object.assign({}, t), delete t.not_found), n("local") || n("session"));
977
- }
978
- function Pe() {
979
- }
980
- function ln(e) {
981
- e.iconsLoaderFlag || (e.iconsLoaderFlag = !0, setTimeout(() => {
982
- e.iconsLoaderFlag = !1, Qt(e);
983
- }));
984
- }
985
- function cn(e, t) {
986
- e.iconsToLoad ? e.iconsToLoad = e.iconsToLoad.concat(t).sort() : e.iconsToLoad = t, e.iconsQueueFlag || (e.iconsQueueFlag = !0, setTimeout(() => {
987
- e.iconsQueueFlag = !1;
988
- const { provider: n, prefix: r } = e, o = e.iconsToLoad;
989
- delete e.iconsToLoad;
990
- let i;
991
- if (!o || !(i = ne(n)))
992
- return;
993
- i.prepare(n, r, o).forEach((c) => {
994
- tn(n, c, (a) => {
995
- if (typeof a != "object")
996
- c.icons.forEach((l) => {
997
- e.missing.add(l);
998
- });
999
- else
1000
- try {
1001
- const l = ae(
1002
- e,
1003
- a
1004
- );
1005
- if (!l.length)
1006
- return;
1007
- const f = e.pendingIcons;
1008
- f && l.forEach((u) => {
1009
- f.delete(u);
1010
- }), sn(e, a);
1011
- } catch (l) {
1012
- console.error(l);
1013
- }
1014
- ln(e);
1015
- });
1016
- });
1017
- }));
1018
- }
1019
- const an = (e, t) => {
1020
- const n = Xt(e, !0, qe()), r = Kt(n);
1021
- if (!r.pending.length) {
1022
- let a = !0;
1023
- return t && setTimeout(() => {
1024
- a && t(
1025
- r.loaded,
1026
- r.missing,
1027
- r.pending,
1028
- Pe
1029
- );
1030
- }), () => {
1031
- a = !1;
1032
- };
1033
- }
1034
- const o = /* @__PURE__ */ Object.create(null), i = [];
1035
- let s, c;
1036
- return r.pending.forEach((a) => {
1037
- const { provider: l, prefix: f } = a;
1038
- if (f === c && l === s)
1039
- return;
1040
- s = l, c = f, i.push(F(l, f));
1041
- const u = o[l] || (o[l] = /* @__PURE__ */ Object.create(null));
1042
- u[f] || (u[f] = []);
1043
- }), r.pending.forEach((a) => {
1044
- const { provider: l, prefix: f, name: u } = a, p = F(l, f), y = p.pendingIcons || (p.pendingIcons = /* @__PURE__ */ new Set());
1045
- y.has(u) || (y.add(u), o[l][f].push(u));
1046
- }), i.forEach((a) => {
1047
- const { provider: l, prefix: f } = a;
1048
- o[l][f].length && cn(a, o[l][f]);
1049
- }), t ? Jt(t, r, i) : Pe;
1050
- };
1051
- function fn(e, t) {
1052
- const n = {
1053
- ...e
1054
- };
1055
- for (const r in t) {
1056
- const o = t[r], i = typeof o;
1057
- r in We ? (o === null || o && (i === "string" || i === "number")) && (n[r] = o) : i === typeof n[r] && (n[r] = r === "rotate" ? o % 4 : o);
1058
- }
1059
- return n;
1060
- }
1061
- const un = /[\s,]+/;
1062
- function dn(e, t) {
1063
- t.split(un).forEach((n) => {
1064
- switch (n.trim()) {
1065
- case "horizontal":
1066
- e.hFlip = !0;
1067
- break;
1068
- case "vertical":
1069
- e.vFlip = !0;
1070
- break;
1071
- }
1072
- });
1073
- }
1074
- function pn(e, t = 0) {
1075
- const n = e.replace(/^-?[0-9.]*/, "");
1076
- function r(o) {
1077
- for (; o < 0; )
1078
- o += 4;
1079
- return o % 4;
1080
- }
1081
- if (n === "") {
1082
- const o = parseInt(e);
1083
- return isNaN(o) ? 0 : r(o);
1084
- } else if (n !== e) {
1085
- let o = 0;
1086
- switch (n) {
1087
- case "%":
1088
- o = 25;
1089
- break;
1090
- case "deg":
1091
- o = 90;
1092
- }
1093
- if (o) {
1094
- let i = parseFloat(e.slice(0, e.length - n.length));
1095
- return isNaN(i) ? 0 : (i = i / o, i % 1 === 0 ? r(i) : 0);
1096
- }
1097
- }
1098
- return t;
1099
- }
1100
- function hn(e, t) {
1101
- let n = e.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
1102
- for (const r in t)
1103
- n += " " + r + '="' + t[r] + '"';
1104
- return '<svg xmlns="http://www.w3.org/2000/svg"' + n + ">" + e + "</svg>";
1105
- }
1106
- function gn(e) {
1107
- return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
1108
- }
1109
- function mn(e) {
1110
- return "data:image/svg+xml," + gn(e);
1111
- }
1112
- function yn(e) {
1113
- return 'url("' + mn(e) + '")';
1114
- }
1115
- const je = {
1116
- ...Ke,
1117
- inline: !1
1118
- }, vn = {
1119
- xmlns: "http://www.w3.org/2000/svg",
1120
- "xmlns:xlink": "http://www.w3.org/1999/xlink",
1121
- "aria-hidden": !0,
1122
- role: "img"
1123
- }, bn = {
1124
- display: "inline-block"
1125
- }, se = {
1126
- backgroundColor: "currentColor"
1127
- }, nt = {
1128
- backgroundColor: "transparent"
1129
- }, Ee = {
1130
- Image: "var(--svg)",
1131
- Repeat: "no-repeat",
1132
- Size: "100% 100%"
1133
- }, Ae = {
1134
- webkitMask: se,
1135
- mask: se,
1136
- background: nt
1137
- };
1138
- for (const e in Ae) {
1139
- const t = Ae[e];
1140
- for (const n in Ee)
1141
- t[e + n] = Ee[n];
1142
- }
1143
- const R = {};
1144
- ["horizontal", "vertical"].forEach((e) => {
1145
- const t = e.slice(0, 1) + "Flip";
1146
- R[e + "-flip"] = t, R[e.slice(0, 1) + "-flip"] = t, R[e + "Flip"] = t;
1147
- });
1148
- function Le(e) {
1149
- return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
1150
- }
1151
- const $e = (e, t) => {
1152
- const n = fn(je, t), r = { ...vn }, o = t.mode || "svg", i = {}, s = t.style, c = typeof s == "object" && !(s instanceof Array) ? s : {};
1153
- for (let h in t) {
1154
- const g = t[h];
1155
- if (g !== void 0)
1156
- switch (h) {
1157
- case "icon":
1158
- case "style":
1159
- case "onLoad":
1160
- case "mode":
1161
- break;
1162
- case "inline":
1163
- case "hFlip":
1164
- case "vFlip":
1165
- n[h] = g === !0 || g === "true" || g === 1;
1166
- break;
1167
- case "flip":
1168
- typeof g == "string" && dn(n, g);
1169
- break;
1170
- case "color":
1171
- i.color = g;
1172
- break;
1173
- case "rotate":
1174
- typeof g == "string" ? n[h] = pn(g) : typeof g == "number" && (n[h] = g);
1175
- break;
1176
- case "ariaHidden":
1177
- case "aria-hidden":
1178
- g !== !0 && g !== "true" && delete r["aria-hidden"];
1179
- break;
1180
- default: {
1181
- const _ = R[h];
1182
- _ ? (g === !0 || g === "true" || g === 1) && (n[_] = !0) : je[h] === void 0 && (r[h] = g);
1183
- }
1184
- }
1185
- }
1186
- const a = Lt(e, n), l = a.attributes;
1187
- if (n.inline && (i.verticalAlign = "-0.125em"), o === "svg") {
1188
- r.style = {
1189
- ...i,
1190
- ...c
1191
- }, Object.assign(r, l);
1192
- let h = 0, g = t.id;
1193
- return typeof g == "string" && (g = g.replace(/-/g, "_")), r.innerHTML = Dt(a.body, g ? () => g + "ID" + h++ : "iconifyVue"), ge("svg", r);
1194
- }
1195
- const { body: f, width: u, height: p } = e, y = o === "mask" || (o === "bg" ? !1 : f.indexOf("currentColor") !== -1), d = hn(f, {
1196
- ...l,
1197
- width: u + "",
1198
- height: p + ""
1199
- });
1200
- return r.style = {
1201
- ...i,
1202
- "--svg": yn(d),
1203
- width: Le(l.width),
1204
- height: Le(l.height),
1205
- ...bn,
1206
- ...y ? se : nt,
1207
- ...c
1208
- }, ge("span", r);
1209
- };
1210
- qe(!0);
1211
- zt("", Wt);
1212
- if (typeof document < "u" && typeof window < "u") {
1213
- tt();
1214
- const e = window;
1215
- if (e.IconifyPreload !== void 0) {
1216
- const t = e.IconifyPreload, n = "Invalid IconifyPreload syntax.";
1217
- typeof t == "object" && t !== null && (t instanceof Array ? t : [t]).forEach((r) => {
1218
- try {
1219
- // Check if item is an object and not null/array
1220
- (typeof r != "object" || r === null || r instanceof Array || // Check for 'icons' and 'prefix'
1221
- typeof r.icons != "object" || typeof r.prefix != "string" || // Add icon set
1222
- !Pt(r)) && console.error(n);
1223
- } catch {
1224
- console.error(n);
1225
- }
1226
- });
1227
- }
1228
- if (e.IconifyProviders !== void 0) {
1229
- const t = e.IconifyProviders;
1230
- if (typeof t == "object" && t !== null)
1231
- for (let n in t) {
1232
- const r = "IconifyProviders[" + n + "] is invalid.";
1233
- try {
1234
- const o = t[n];
1235
- if (typeof o != "object" || !o || o.resources === void 0)
1236
- continue;
1237
- Bt(n, o) || console.error(r);
1238
- } catch {
1239
- console.error(r);
1240
- }
1241
- }
1242
- }
1243
- }
1244
- const wn = {
1245
- ...Q,
1246
- body: ""
1247
- }, Me = W({
1248
- // Do not inherit other attributes: it is handled by render()
1249
- inheritAttrs: !1,
1250
- // Set initial data
1251
- data() {
1252
- return {
1253
- // Mounted status
1254
- iconMounted: !1,
1255
- // Callback counter to trigger re-render
1256
- counter: 0
1257
- };
1258
- },
1259
- mounted() {
1260
- this._name = "", this._loadingIcon = null, this.iconMounted = !0;
1261
- },
1262
- unmounted() {
1263
- this.abortLoading();
1264
- },
1265
- methods: {
1266
- abortLoading() {
1267
- this._loadingIcon && (this._loadingIcon.abort(), this._loadingIcon = null);
1268
- },
1269
- // Get data for icon to render or null
1270
- getIcon(e, t) {
1271
- if (typeof e == "object" && e !== null && typeof e.body == "string")
1272
- return this._name = "", this.abortLoading(), {
1273
- data: e
1274
- };
1275
- let n;
1276
- if (typeof e != "string" || (n = K(e, !1, !0)) === null)
1277
- return this.abortLoading(), null;
1278
- const r = Ft(n);
1279
- if (!r)
1280
- return (!this._loadingIcon || this._loadingIcon.name !== e) && (this.abortLoading(), this._name = "", r !== null && (this._loadingIcon = {
1281
- name: e,
1282
- abort: an([n], () => {
1283
- this.counter++;
1284
- })
1285
- })), null;
1286
- this.abortLoading(), this._name !== e && (this._name = e, t && t(e));
1287
- const o = ["iconify"];
1288
- return n.prefix !== "" && o.push("iconify--" + n.prefix), n.provider !== "" && o.push("iconify--" + n.provider), { data: r, classes: o };
1289
- }
1290
- },
1291
- // Render icon
1292
- render() {
1293
- this.counter;
1294
- const e = this.$attrs, t = this.iconMounted ? this.getIcon(e.icon, e.onLoad) : null;
1295
- if (!t)
1296
- return $e(wn, e);
1297
- let n = e;
1298
- return t.classes && (n = {
1299
- ...e,
1300
- class: (typeof e.class == "string" ? e.class + " " : "") + t.classes.join(" ")
1301
- }), $e({
1302
- ...Q,
1303
- ...t.data
1304
- }, n);
1305
- }
1306
- }), xn = {
111
+ const oe = U(se), re = { class: "inline-block ik-svg-icon ik-icon line-height-[0] inline-flex justify-center" }, ie = {
1307
112
  key: 1,
1308
- class: "basicHeight basicWidth",
113
+ class: "h-[1em] w-[1em]",
1309
114
  "aria-hidden": "true"
1310
- }, In = ["xlink:href"], kn = ["src"], Sn = {
115
+ }, ae = ["xlink:href"], ue = ["src"], fe = {
1311
116
  key: 1,
1312
- class: "basicHeight basicWidth",
117
+ class: "h-[1em] w-[1em]",
1313
118
  "aria-hidden": "true"
1314
- }, _n = ["xlink:href"], Cn = ["src"], Fn = /* @__PURE__ */ W({
119
+ }, ce = ["xlink:href"], de = ["src"], pe = /* @__PURE__ */ S({
1315
120
  name: "IkSvgIcon",
1316
121
  __name: "index",
1317
122
  props: {
@@ -1319,6 +124,7 @@ const wn = {
1319
124
  flip: {},
1320
125
  rotate: {},
1321
126
  color: {},
127
+ opacity: { default: 0.5 },
1322
128
  size: { default: "" },
1323
129
  bg: { type: Boolean, default: !1 },
1324
130
  showBg: { type: Boolean, default: !1 },
@@ -1327,126 +133,140 @@ const wn = {
1327
133
  notip: { type: Boolean, default: !1 },
1328
134
  title: {}
1329
135
  },
1330
- setup(e) {
1331
- const t = e, n = B(() => {
1332
- var i;
1333
- return /^http?:\/\//.test(t.name) ? "img" : /i-[^:]+:[^:]+/.test(t.name) ? "unocss" : (i = t.name) != null && i.includes(":") ? "iconify" : "svg";
1334
- }), r = B(() => {
1335
- const i = [];
1336
- if (t.flip)
1337
- switch (t.flip) {
136
+ setup(l) {
137
+ const e = l, s = F(() => {
138
+ var t;
139
+ return /^http?:\/\//.test(e.name) ? "img" : /i-[^:]+:[^:]+/.test(e.name) ? "unocss" : e.name.startsWith("iksig") ? "iksig" : (t = e.name) != null && t.includes(":") ? "iconify" : "svg";
140
+ }), o = F(() => {
141
+ const t = [];
142
+ if (e.flip)
143
+ switch (e.flip) {
1338
144
  case "horizontal":
1339
- i.push("rotateY(180deg)");
145
+ t.push("rotateY(180deg)");
1340
146
  break;
1341
147
  case "vertical":
1342
- i.push("rotateX(180deg)");
148
+ t.push("rotateX(180deg)");
1343
149
  break;
1344
150
  case "both":
1345
- i.push("rotateX(180deg)"), i.push("rotateY(180deg)");
151
+ t.push("rotateX(180deg)"), t.push("rotateY(180deg)");
1346
152
  break;
1347
153
  }
1348
- return t.rotate && i.push(`rotate(${t.rotate % 360}deg)`), {
1349
- ...t.color && { color: t.color },
1350
- ...t.size && {
1351
- fontSize: typeof t.size == "number" ? `${t.size}px` : t.size
1352
- },
1353
- ...i.length && { transform: i.join(" ") },
1354
- padding: t.padding
154
+ return e.rotate && t.push(`rotate(${e.rotate % 360}deg)`), {
155
+ ...e.color && { color: e.color },
156
+ ...e.size && { fontSize: typeof e.size == "number" ? `${e.size}px` : e.size },
157
+ ...t.length && { transform: t.join(" ") },
158
+ padding: e.padding,
159
+ ...e.color && s.value !== "iksig" ? {
160
+ "--ik-color-icon-dark": e.color,
161
+ "--ik-color-icon-light": G.setOpacity(e.color, e.opacity || 0.4)
162
+ } : {}
1355
163
  };
1356
- }), o = B(
1357
- () => document.body.getAttribute("data-theme") === "dark"
1358
- );
1359
- return (i, s) => {
1360
- const c = Be("el-tooltip");
1361
- return i.notip || !i.title ? (v(), I(
1362
- "i",
1363
- {
1364
- key: 0,
1365
- class: rt(["ik-svg-icon ik-icon relative basicHeight basicWidth flex-inline items-center justify-center fill-current leading-[1em] transition", {
1366
- [i.name]: n.value === "unocss",
1367
- "show-bg": i.showBg || i.bg,
1368
- default: i.size === "default",
1369
- small: i.size === "small",
1370
- big: i.size === "big",
1371
- warning: i.warning
1372
- }]),
1373
- style: Z(r.value)
1374
- },
1375
- [
1376
- n.value === "iconify" ? (v(), U(T(Me), {
164
+ });
165
+ return (t, c) => {
166
+ const u = N("el-tooltip");
167
+ return i(), a("span", re, [
168
+ t.notip || !t.title ? (i(), a(
169
+ "i",
170
+ {
1377
171
  key: 0,
1378
- icon: i.name
1379
- }, null, 8, ["icon"])) : n.value === "svg" ? (v(), I("svg", xn, [
1380
- S("use", {
1381
- "xlink:href": `#${i.name}`
1382
- }, null, 8, In)
1383
- ])) : n.value === "img" ? (v(), I("img", {
1384
- key: 2,
1385
- src: i.name,
1386
- class: "basicHeight basicWidth"
1387
- }, null, 8, kn)) : H("v-if", !0)
1388
- ],
1389
- 6
1390
- /* CLASS, STYLE */
1391
- )) : (v(), U(c, {
1392
- key: 1,
1393
- effect: o.value ? "dark" : "light",
1394
- content: i.title
1395
- }, {
1396
- default: ze(() => [
1397
- S(
1398
- "i",
1399
- it({
1400
- class: ["ik-svg-icon ik-icon relative basicHeight basicWidth flex-inline items-center justify-center fill-current leading-[1em] transition", {
1401
- [i.name]: n.value === "unocss",
1402
- "show-bg": i.showBg || i.bg,
1403
- default: i.size === "default",
1404
- small: i.size === "small",
1405
- big: i.size === "big",
1406
- warning: i.warning
1407
- }],
1408
- style: r.value
1409
- }, i.$attrs),
1410
- [
1411
- n.value === "iconify" ? (v(), U(T(Me), {
172
+ class: w(["relative h-[1em] w-[1em] flex-inline items-center justify-center fill-current leading-[1em] transition", {
173
+ [t.name]: s.value === "unocss",
174
+ "show-bg": t.showBg || t.bg,
175
+ default: t.size === "default",
176
+ small: t.size === "small",
177
+ big: t.size === "big",
178
+ warning: t.warning
179
+ }]),
180
+ style: h(o.value)
181
+ },
182
+ [
183
+ s.value === "iksig" ? (i(), a(
184
+ "i",
185
+ {
1412
186
  key: 0,
1413
- icon: i.name
1414
- }, null, 8, ["icon"])) : n.value === "svg" ? (v(), I("svg", Sn, [
1415
- S("use", {
1416
- "xlink:href": `#${i.name}`
1417
- }, null, 8, _n)
1418
- ])) : n.value === "img" ? (v(), I("img", {
1419
- key: 2,
1420
- src: i.name,
1421
- class: "basicHeight basicWidth"
1422
- }, null, 8, Cn)) : H("v-if", !0)
1423
- ],
1424
- 16
1425
- /* FULL_PROPS */
1426
- )
1427
- ]),
1428
- _: 1
1429
- /* STABLE */
1430
- }, 8, ["effect", "content"]));
187
+ class: w(`iksig ${t.name}`),
188
+ style: h(o.value)
189
+ },
190
+ null,
191
+ 6
192
+ /* CLASS, STYLE */
193
+ )) : s.value === "svg" ? (i(), a("svg", ie, [
194
+ p("use", {
195
+ "xlink:href": `#${t.name}`
196
+ }, null, 8, ae)
197
+ ])) : s.value === "img" ? (i(), a("img", {
198
+ key: 2,
199
+ src: t.name,
200
+ class: "h-[1em] w-[1em]"
201
+ }, null, 8, ue)) : $("v-if", !0)
202
+ ],
203
+ 6
204
+ /* CLASS, STYLE */
205
+ )) : (i(), T(u, {
206
+ key: 1,
207
+ content: t.title
208
+ }, {
209
+ default: j(() => [
210
+ p(
211
+ "i",
212
+ {
213
+ class: w(["ik-svg-icon ik-icon relative h-[1em] w-[1em] flex-inline items-center justify-center fill-current leading-[1em] transition", {
214
+ [t.name]: s.value === "unocss",
215
+ "show-bg": t.showBg || t.bg,
216
+ default: t.size === "default",
217
+ small: t.size === "small",
218
+ big: t.size === "big",
219
+ warning: t.warning
220
+ }]),
221
+ style: h(o.value)
222
+ },
223
+ [
224
+ s.value === "iksig" ? (i(), a(
225
+ "i",
226
+ {
227
+ key: 0,
228
+ class: w(`iksig ${t.name}`),
229
+ style: h(o.value)
230
+ },
231
+ null,
232
+ 6
233
+ /* CLASS, STYLE */
234
+ )) : s.value === "svg" ? (i(), a("svg", fe, [
235
+ p("use", {
236
+ "xlink:href": `#${t.name}`
237
+ }, null, 8, ce)
238
+ ])) : s.value === "img" ? (i(), a("img", {
239
+ key: 2,
240
+ src: t.name,
241
+ class: "h-[1em] w-[1em]"
242
+ }, null, 8, de)) : $("v-if", !0)
243
+ ],
244
+ 6
245
+ /* CLASS, STYLE */
246
+ )
247
+ ]),
248
+ _: 1
249
+ /* STABLE */
250
+ }, 8, ["content"]))
251
+ ]);
1431
252
  };
1432
253
  }
1433
- });
1434
- const Tn = /* @__PURE__ */ Ue(Fn, [["__scopeId", "data-v-1957ff53"]]), Oe = le(Tn), Pn = (e) => (st("data-v-bbc42bc9"), e = e(), lt(), e), jn = {
254
+ }), E = U(pe), ge = (l) => (W("data-v-bbc42bc9"), l = l(), q(), l), ve = {
1435
255
  key: 0,
1436
256
  class: "preview-files"
1437
- }, En = {
257
+ }, me = {
1438
258
  class: "flex",
1439
259
  style: { width: "80%", "align-items": "center" }
1440
- }, An = ["onClick"], Ln = ["title"], $n = { style: { color: "#b8c6d9" } }, Mn = ["onClick"], On = /* @__PURE__ */ Pn(() => /* @__PURE__ */ S(
260
+ }, ye = ["onClick"], he = ["title"], ke = { style: { color: "#b8c6d9" } }, _e = ["onClick"], we = /* @__PURE__ */ ge(() => /* @__PURE__ */ p(
1441
261
  "span",
1442
262
  null,
1443
263
  "预览",
1444
264
  -1
1445
265
  /* HOISTED */
1446
- )), Dn = {
266
+ )), be = {
1447
267
  key: 1,
1448
268
  class: "flex preview-img"
1449
- }, zn = /* @__PURE__ */ W({
269
+ }, xe = /* @__PURE__ */ S({
1450
270
  __name: "IKDetailPreviewFiles",
1451
271
  props: {
1452
272
  // 文件列表 [{originName:'',path:'',fileSize:''}] //文件大小
@@ -1480,79 +300,79 @@ const Tn = /* @__PURE__ */ Ue(Fn, [["__scopeId", "data-v-1957ff53"]]), Oe = le(T
1480
300
  default: `"${window.location.origin}/server/oss/download?fileUrl="`
1481
301
  }
1482
302
  },
1483
- setup(e) {
1484
- const t = e, n = A(t.fileList);
1485
- De(
1486
- () => t.fileList,
1487
- (l) => {
1488
- l && (n.value = l);
303
+ setup(l) {
304
+ const e = l, s = _(e.fileList);
305
+ P(
306
+ () => e.fileList,
307
+ (n) => {
308
+ n && (s.value = n);
1489
309
  },
1490
310
  { immediate: !0 }
1491
311
  );
1492
- const r = A(!1), o = A({}), i = (l) => {
1493
- o.value = {
1494
- id: l.ossFileId || l.url,
1495
- name: `${l.id}.${l.suffix}`
312
+ const o = _(!1), t = _({}), c = (n) => {
313
+ t.value = {
314
+ id: n.ossFileId || n.url,
315
+ name: `${n.id}.${n.suffix}`
1496
316
  // row.originName
1497
- }, r.value = !0;
1498
- }, s = (l) => {
1499
- var f, u, p, y, d;
1500
- return (f = l == null ? void 0 : l.suffix) != null && f.includes("pdf") ? "iksvg_pdf" : (u = l == null ? void 0 : l.suffix) != null && u.includes("doc") ? "iksvg_word" : (p = l == null ? void 0 : l.suffix) != null && p.includes("xls") ? "iksvg_excel" : (y = l == null ? void 0 : l.suffix) != null && y.includes("mov") ? "iksvg_mov" : (d = l == null ? void 0 : l.suffix) != null && d.includes("zip") ? "iksvg_zip" : "icon-jpg";
1501
- }, c = (l) => {
1502
- var f, u, p, y, d;
1503
- return (f = l == null ? void 0 : l.suffix) != null && f.includes("pdf") ? "#FA4E4E" : (u = l == null ? void 0 : l.suffix) != null && u.includes("doc") ? "#2c69e0" : (p = l.suffix) != null && p.includes("xls") ? "#39BFBF" : (y = l.suffix) != null && y.includes("txt") ? "#2c69e0" : (d = l.suffix) != null && d.includes("zip") ? "#FF9000" : "#32CD79";
1504
- }, a = (l) => {
317
+ }, o.value = !0;
318
+ }, u = (n) => {
319
+ var f, y, v, m, r;
320
+ return (f = n == null ? void 0 : n.suffix) != null && f.includes("pdf") ? "iksvg_pdf" : (y = n == null ? void 0 : n.suffix) != null && y.includes("doc") ? "iksvg_word" : (v = n == null ? void 0 : n.suffix) != null && v.includes("xls") ? "iksvg_excel" : (m = n == null ? void 0 : n.suffix) != null && m.includes("mov") ? "iksvg_mov" : (r = n == null ? void 0 : n.suffix) != null && r.includes("zip") ? "iksvg_zip" : "icon-jpg";
321
+ }, g = (n) => {
322
+ var f, y, v, m, r;
323
+ return (f = n == null ? void 0 : n.suffix) != null && f.includes("pdf") ? "#FA4E4E" : (y = n == null ? void 0 : n.suffix) != null && y.includes("doc") ? "#2c69e0" : (v = n.suffix) != null && v.includes("xls") ? "#39BFBF" : (m = n.suffix) != null && m.includes("txt") ? "#2c69e0" : (r = n.suffix) != null && r.includes("zip") ? "#FF9000" : "#32CD79";
324
+ }, L = (n) => {
1505
325
  const f = document.createElement("a");
1506
- f.href = loadUrl + l.ossFileId, f.download = l.originName, f.click();
326
+ f.href = loadUrl + n.ossFileId, f.download = n.originName, f.click();
1507
327
  };
1508
- return (l, f) => {
1509
- var p, y;
1510
- const u = Be("el-image");
1511
- return v(), I("div", null, [
1512
- t.fileType === "file" ? (v(), I("div", jn, [
1513
- (v(!0), I(
1514
- me,
328
+ return (n, f) => {
329
+ var v, m;
330
+ const y = N("el-image");
331
+ return i(), a("div", null, [
332
+ e.fileType === "file" ? (i(), a("div", ve, [
333
+ (i(!0), a(
334
+ B,
1515
335
  null,
1516
- ye(n.value, (d, h) => (v(), I(
336
+ I(s.value, (r, C) => (i(), a(
1517
337
  "div",
1518
338
  {
1519
- key: h,
339
+ key: C,
1520
340
  class: "files-item",
1521
- style: Z({
1522
- width: t.fileWidth,
1523
- "margin-right": t.fileWidth === "100%" ? "0px" : ""
341
+ style: h({
342
+ width: e.fileWidth,
343
+ "margin-right": e.fileWidth === "100%" ? "0px" : ""
1524
344
  })
1525
345
  },
1526
346
  [
1527
- S("div", En, [
1528
- D(T(Oe), {
1529
- name: s(d),
1530
- style: Z(`color:${c(d)}`),
347
+ p("div", me, [
348
+ b(x(E), {
349
+ name: u(r),
350
+ style: h(`color:${g(r)}`),
1531
351
  size: 36
1532
352
  }, null, 8, ["name", "style"]),
1533
- S("div", {
353
+ p("div", {
1534
354
  class: "file-name",
1535
- onClick: (g) => a(d)
355
+ onClick: (O) => L(r)
1536
356
  }, [
1537
- S("p", {
1538
- title: d.originName
1539
- }, ve(d.originName), 9, Ln),
1540
- S(
357
+ p("p", {
358
+ title: r.originName
359
+ }, A(r.originName), 9, he),
360
+ p(
1541
361
  "p",
1542
- $n,
1543
- ve((d.fileSize / 1024).toFixed(2)) + "KB",
362
+ ke,
363
+ A((r.fileSize / 1024).toFixed(2)) + "KB",
1544
364
  1
1545
365
  /* TEXT */
1546
366
  )
1547
- ], 8, An)
367
+ ], 8, ye)
1548
368
  ]),
1549
- S("div", {
369
+ p("div", {
1550
370
  class: "file-preview",
1551
- onClick: (g) => i(d)
371
+ onClick: (O) => c(r)
1552
372
  }, [
1553
- D(T(Oe), { name: "iksvg_yulan" }),
1554
- On
1555
- ], 8, Mn)
373
+ b(x(E), { name: "iksvg_yulan" }),
374
+ we
375
+ ], 8, _e)
1556
376
  ],
1557
377
  4
1558
378
  /* STYLE */
@@ -1560,40 +380,40 @@ const Tn = /* @__PURE__ */ Ue(Fn, [["__scopeId", "data-v-1957ff53"]]), Oe = le(T
1560
380
  128
1561
381
  /* KEYED_FRAGMENT */
1562
382
  ))
1563
- ])) : H("v-if", !0),
1564
- t.fileType === "img" ? (v(), I("div", Dn, [
1565
- (v(!0), I(
1566
- me,
383
+ ])) : $("v-if", !0),
384
+ e.fileType === "img" ? (i(), a("div", be, [
385
+ (i(!0), a(
386
+ B,
1567
387
  null,
1568
- ye(n.value, (d, h) => (v(), I("div", {
1569
- key: h,
388
+ I(s.value, (r, C) => (i(), a("div", {
389
+ key: C,
1570
390
  class: "preview-img"
1571
391
  }, [
1572
- D(u, {
392
+ b(y, {
1573
393
  class: "show-img",
1574
- src: e.loadUrl + d.url,
1575
- "preview-src-list": [e.loadUrl + d.url],
394
+ src: l.loadUrl + r.url,
395
+ "preview-src-list": [l.loadUrl + r.url],
1576
396
  fit: "cover"
1577
397
  }, null, 8, ["src", "preview-src-list"])
1578
398
  ]))),
1579
399
  128
1580
400
  /* KEYED_FRAGMENT */
1581
401
  ))
1582
- ])) : H("v-if", !0),
1583
- D(T(wt), {
1584
- modelValue: r.value,
1585
- "onUpdate:modelValue": f[0] || (f[0] = (d) => r.value = d),
1586
- "load-url": t.urlPreview,
1587
- url: (p = o.value) == null ? void 0 : p.id,
1588
- "kk-url": e.previewUrl,
1589
- "file-name": (y = o.value) == null ? void 0 : y.name
402
+ ])) : $("v-if", !0),
403
+ b(x(oe), {
404
+ modelValue: o.value,
405
+ "onUpdate:modelValue": f[0] || (f[0] = (r) => o.value = r),
406
+ "load-url": e.urlPreview,
407
+ url: (v = t.value) == null ? void 0 : v.id,
408
+ "kk-url": l.previewUrl,
409
+ "file-name": (m = t.value) == null ? void 0 : m.name
1590
410
  }, null, 8, ["modelValue", "load-url", "url", "kk-url", "file-name"])
1591
411
  ]);
1592
412
  };
1593
413
  }
1594
414
  });
1595
- const Bn = /* @__PURE__ */ Ue(zn, [["__scopeId", "data-v-bbc42bc9"]]), Vn = le(Bn);
415
+ const $e = /* @__PURE__ */ X(xe, [["__scopeId", "data-v-bbc42bc9"]]), Ue = U($e);
1596
416
  export {
1597
- Vn as IKDetailPreviewFiles,
1598
- Vn as default
417
+ Ue as IKDetailPreviewFiles,
418
+ Ue as default
1599
419
  };