iking-web-ui-pro 0.0.1

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 (107) hide show
  1. package/dist/Demo/index.es.js +13 -0
  2. package/dist/Demo/index.umd.js +1 -0
  3. package/dist/Demo/package.json +7 -0
  4. package/dist/IKApprovalProcess/index.es.js +13026 -0
  5. package/dist/IKApprovalProcess/index.umd.js +32 -0
  6. package/dist/IKApprovalProcess/package.json +7 -0
  7. package/dist/IKApprovalProcess/style.css +7 -0
  8. package/dist/IKApprovalProcessDetail/index.es.js +630 -0
  9. package/dist/IKApprovalProcessDetail/index.umd.js +1 -0
  10. package/dist/IKApprovalProcessDetail/package.json +7 -0
  11. package/dist/IKApprovalProcessDetail/style.css +1 -0
  12. package/dist/IKCalendar/index.es.js +22495 -0
  13. package/dist/IKCalendar/index.umd.js +32 -0
  14. package/dist/IKCalendar/package.json +7 -0
  15. package/dist/IKCalendar/style.css +7 -0
  16. package/dist/IKDescription/index.es.js +105 -0
  17. package/dist/IKDescription/index.umd.js +1 -0
  18. package/dist/IKDescription/style.css +1 -0
  19. package/dist/IKDetailPreviewFiles/index.es.js +1599 -0
  20. package/dist/IKDetailPreviewFiles/index.umd.js +1 -0
  21. package/dist/IKDetailPreviewFiles/style.css +1 -0
  22. package/dist/IKExpandCollapse/index.es.js +1388 -0
  23. package/dist/IKExpandCollapse/index.umd.js +1 -0
  24. package/dist/IKExpandCollapse/style.css +1 -0
  25. package/dist/IKHorizontalStepBar/index.es.js +251 -0
  26. package/dist/IKHorizontalStepBar/index.umd.js +1 -0
  27. package/dist/IKHorizontalStepBar/package.json +7 -0
  28. package/dist/IKHorizontalStepBar/style.css +1 -0
  29. package/dist/IKPreviewFile/index.es.js +108 -0
  30. package/dist/IKPreviewFile/index.umd.js +1 -0
  31. package/dist/IKPreviewFile/style.css +1 -0
  32. package/dist/IKSearch/index.es.js +13406 -0
  33. package/dist/IKSearch/index.umd.js +57 -0
  34. package/dist/IKSearch/package.json +7 -0
  35. package/dist/IKSearch/style.css +7 -0
  36. package/dist/IKSearchHead/index.es.js +116 -0
  37. package/dist/IKSearchHead/index.umd.js +1 -0
  38. package/dist/IKSearchHead/package.json +7 -0
  39. package/dist/IKSearchHead/style.css +1 -0
  40. package/dist/IKVerticalStepBar/index.es.js +1481 -0
  41. package/dist/IKVerticalStepBar/index.umd.js +9 -0
  42. package/dist/IKVerticalStepBar/package.json +7 -0
  43. package/dist/IKVerticalStepBar/style.css +1 -0
  44. package/dist/IkBottomOperate/index.es.js +210 -0
  45. package/dist/IkBottomOperate/index.umd.js +1 -0
  46. package/dist/IkBottomOperate/style.css +1 -0
  47. package/dist/IkBtnContent/index.es.js +101 -0
  48. package/dist/IkBtnContent/index.umd.js +1 -0
  49. package/dist/IkBtnContent/style.css +1 -0
  50. package/dist/IkBtnSetting/index.es.js +12854 -0
  51. package/dist/IkBtnSetting/index.umd.js +32 -0
  52. package/dist/IkBtnSetting/style.css +7 -0
  53. package/dist/IkDragList/index.es.js +11071 -0
  54. package/dist/IkDragList/index.umd.js +32 -0
  55. package/dist/IkDragList/style.css +7 -0
  56. package/dist/IkFullCalendar/index.es.js +20327 -0
  57. package/dist/IkFullCalendar/index.umd.js +32 -0
  58. package/dist/IkFullCalendar/style.css +7 -0
  59. package/dist/IkIconPicker/index.es.js +13693 -0
  60. package/dist/IkIconPicker/index.umd.js +32 -0
  61. package/dist/IkIconPicker/style.css +7 -0
  62. package/dist/IkOnlyOffice/index.es.js +393 -0
  63. package/dist/IkOnlyOffice/index.umd.js +1 -0
  64. package/dist/IkOnlyOffice/style.css +0 -0
  65. package/dist/IkPageFull/index.es.js +15725 -0
  66. package/dist/IkPageFull/index.umd.js +48 -0
  67. package/dist/IkPageFull/style.css +7 -0
  68. package/dist/IkPageTabs/index.es.js +135 -0
  69. package/dist/IkPageTabs/index.umd.js +1 -0
  70. package/dist/IkPageTabs/style.css +1 -0
  71. package/dist/IkPicker/index.es.js +12629 -0
  72. package/dist/IkPicker/index.umd.js +32 -0
  73. package/dist/IkPicker/style.css +7 -0
  74. package/dist/IkPickerUser/index.es.js +12508 -0
  75. package/dist/IkPickerUser/index.umd.js +32 -0
  76. package/dist/IkPickerUser/style.css +7 -0
  77. package/dist/IkPrintConfig/index.es.js +62 -0
  78. package/dist/IkPrintConfig/index.umd.js +1 -0
  79. package/dist/IkPrintView/index.es.js +79 -0
  80. package/dist/IkPrintView/index.umd.js +1 -0
  81. package/dist/IkRadioGroup/index.es.js +75 -0
  82. package/dist/IkRadioGroup/index.umd.js +1 -0
  83. package/dist/IkRadioGroup/style.css +1 -0
  84. package/dist/IkSchedule/index.es.js +22228 -0
  85. package/dist/IkSchedule/index.umd.js +32 -0
  86. package/dist/IkSchedule/style.css +7 -0
  87. package/dist/IkStatu/index.es.js +119 -0
  88. package/dist/IkStatu/index.umd.js +1 -0
  89. package/dist/IkStatu/style.css +1 -0
  90. package/dist/IkSvgIcon/index.es.js +1343 -0
  91. package/dist/IkSvgIcon/index.umd.js +1 -0
  92. package/dist/IkSvgIcon/style.css +1 -0
  93. package/dist/IkTemplateOfficeConfig/index.es.js +805 -0
  94. package/dist/IkTemplateOfficeConfig/index.umd.js +1 -0
  95. package/dist/IkTemplateOfficeConfig/style.css +1 -0
  96. package/dist/IkTooltip/index.es.js +49 -0
  97. package/dist/IkTooltip/index.umd.js +1 -0
  98. package/dist/IkUploadFile/index.es.js +12098 -0
  99. package/dist/IkUploadFile/index.umd.js +32 -0
  100. package/dist/IkUploadFile/style.css +7 -0
  101. package/dist/IkUploadImage/index.es.js +11442 -0
  102. package/dist/IkUploadImage/index.umd.js +32 -0
  103. package/dist/IkUploadImage/style.css +7 -0
  104. package/dist/index.es.js +33843 -0
  105. package/dist/index.umd.js +81 -0
  106. package/dist/style.css +7 -0
  107. package/package.json +66 -0
@@ -0,0 +1,1343 @@
1
+ import { defineComponent as xe, h as ie, computed as R, resolveComponent as He, openBlock as I, createElementBlock as j, normalizeClass as Re, normalizeStyle as $e, createBlock as $, unref as se, createElementVNode as V, createCommentVNode as ce, withCtx as Ve, mergeProps as Qe } from "vue";
2
+ const qe = (e, t) => {
3
+ if (e.install = (n) => {
4
+ for (const r of [e, ...Object.values(t ?? {})])
5
+ n.component(r.name, r);
6
+ }, t)
7
+ for (const [n, r] of Object.entries(t))
8
+ e[n] = r;
9
+ return e;
10
+ }, P = /^[a-z0-9]+(-[a-z0-9]+)*$/, B = (e, t, n, r = "") => {
11
+ const o = e.split(":");
12
+ if (e.slice(0, 1) === "@") {
13
+ if (o.length < 2 || o.length > 3)
14
+ return null;
15
+ r = o.shift().slice(1);
16
+ }
17
+ if (o.length > 3 || !o.length)
18
+ return null;
19
+ if (o.length > 1) {
20
+ const c = o.pop(), l = o.pop(), a = {
21
+ // Allow provider without '@': "provider:prefix:name"
22
+ provider: o.length > 0 ? o[0] : r,
23
+ prefix: l,
24
+ name: c
25
+ };
26
+ return t && !_(a) ? null : a;
27
+ }
28
+ const i = o[0], s = i.split("-");
29
+ if (s.length > 1) {
30
+ const c = {
31
+ provider: r,
32
+ prefix: s.shift(),
33
+ name: s.join("-")
34
+ };
35
+ return t && !_(c) ? null : c;
36
+ }
37
+ if (n && r === "") {
38
+ const c = {
39
+ provider: r,
40
+ prefix: "",
41
+ name: i
42
+ };
43
+ return t && !_(c, n) ? null : c;
44
+ }
45
+ return null;
46
+ }, _ = (e, t) => e ? !!((e.provider === "" || e.provider.match(P)) && (t && e.prefix === "" || e.prefix.match(P)) && e.name.match(P)) : !1, ke = Object.freeze(
47
+ {
48
+ left: 0,
49
+ top: 0,
50
+ width: 16,
51
+ height: 16
52
+ }
53
+ ), z = Object.freeze({
54
+ rotate: 0,
55
+ vFlip: !1,
56
+ hFlip: !1
57
+ }), N = Object.freeze({
58
+ ...ke,
59
+ ...z
60
+ }), U = Object.freeze({
61
+ ...N,
62
+ body: "",
63
+ hidden: !1
64
+ });
65
+ function Ue(e, t) {
66
+ const n = {};
67
+ !e.hFlip != !t.hFlip && (n.hFlip = !0), !e.vFlip != !t.vFlip && (n.vFlip = !0);
68
+ const r = ((e.rotate || 0) + (t.rotate || 0)) % 4;
69
+ return r && (n.rotate = r), n;
70
+ }
71
+ function le(e, t) {
72
+ const n = Ue(e, t);
73
+ for (const r in U)
74
+ r in z ? r in e && !(r in n) && (n[r] = z[r]) : r in t ? n[r] = t[r] : r in e && (n[r] = e[r]);
75
+ return n;
76
+ }
77
+ function We(e, t) {
78
+ const n = e.icons, r = e.aliases || /* @__PURE__ */ Object.create(null), o = /* @__PURE__ */ Object.create(null);
79
+ function i(s) {
80
+ if (n[s])
81
+ return o[s] = [];
82
+ if (!(s in o)) {
83
+ o[s] = null;
84
+ const c = r[s] && r[s].parent, l = c && i(c);
85
+ l && (o[s] = [c].concat(l));
86
+ }
87
+ return o[s];
88
+ }
89
+ return (t || Object.keys(n).concat(Object.keys(r))).forEach(i), o;
90
+ }
91
+ function Ke(e, t, n) {
92
+ const r = e.icons, o = e.aliases || /* @__PURE__ */ Object.create(null);
93
+ let i = {};
94
+ function s(c) {
95
+ i = le(
96
+ r[c] || o[c],
97
+ i
98
+ );
99
+ }
100
+ return s(t), n.forEach(s), le(e, i);
101
+ }
102
+ function Ce(e, t) {
103
+ const n = [];
104
+ if (typeof e != "object" || typeof e.icons != "object")
105
+ return n;
106
+ e.not_found instanceof Array && e.not_found.forEach((o) => {
107
+ t(o, null), n.push(o);
108
+ });
109
+ const r = We(e);
110
+ for (const o in r) {
111
+ const i = r[o];
112
+ i && (t(o, Ke(e, o, i)), n.push(o));
113
+ }
114
+ return n;
115
+ }
116
+ const Ge = {
117
+ provider: "",
118
+ aliases: {},
119
+ not_found: {},
120
+ ...ke
121
+ };
122
+ function Q(e, t) {
123
+ for (const n in t)
124
+ if (n in e && typeof e[n] != typeof t[n])
125
+ return !1;
126
+ return !0;
127
+ }
128
+ function je(e) {
129
+ if (typeof e != "object" || e === null)
130
+ return null;
131
+ const t = e;
132
+ if (typeof t.prefix != "string" || !e.icons || typeof e.icons != "object" || !Q(e, Ge))
133
+ return null;
134
+ const n = t.icons;
135
+ for (const o in n) {
136
+ const i = n[o];
137
+ if (!o.match(P) || typeof i.body != "string" || !Q(
138
+ i,
139
+ U
140
+ ))
141
+ return null;
142
+ }
143
+ const r = t.aliases || /* @__PURE__ */ Object.create(null);
144
+ for (const o in r) {
145
+ const i = r[o], s = i.parent;
146
+ if (!o.match(P) || typeof s != "string" || !n[s] && !r[s] || !Q(
147
+ i,
148
+ U
149
+ ))
150
+ return null;
151
+ }
152
+ return t;
153
+ }
154
+ const ae = /* @__PURE__ */ Object.create(null);
155
+ function Je(e, t) {
156
+ return {
157
+ provider: e,
158
+ prefix: t,
159
+ icons: /* @__PURE__ */ Object.create(null),
160
+ missing: /* @__PURE__ */ new Set()
161
+ };
162
+ }
163
+ function k(e, t) {
164
+ const n = ae[e] || (ae[e] = /* @__PURE__ */ Object.create(null));
165
+ return n[t] || (n[t] = Je(e, t));
166
+ }
167
+ function Z(e, t) {
168
+ return je(t) ? Ce(t, (n, r) => {
169
+ r ? e.icons[n] = r : e.missing.add(n);
170
+ }) : [];
171
+ }
172
+ function Xe(e, t, n) {
173
+ try {
174
+ if (typeof n.body == "string")
175
+ return e.icons[t] = { ...n }, !0;
176
+ } catch {
177
+ }
178
+ return !1;
179
+ }
180
+ let E = !1;
181
+ function Te(e) {
182
+ return typeof e == "boolean" && (E = e), E;
183
+ }
184
+ function Ye(e) {
185
+ const t = typeof e == "string" ? B(e, !0, E) : e;
186
+ if (t) {
187
+ const n = k(t.provider, t.prefix), r = t.name;
188
+ return n.icons[r] || (n.missing.has(r) ? null : void 0);
189
+ }
190
+ }
191
+ function Ze(e, t) {
192
+ const n = B(e, !0, E);
193
+ if (!n)
194
+ return !1;
195
+ const r = k(n.provider, n.prefix);
196
+ return Xe(r, n.name, t);
197
+ }
198
+ function et(e, t) {
199
+ if (typeof e != "object")
200
+ return !1;
201
+ if (typeof t != "string" && (t = e.provider || ""), E && !t && !e.prefix) {
202
+ let o = !1;
203
+ return je(e) && (e.prefix = "", Ce(e, (i, s) => {
204
+ s && Ze(i, s) && (o = !0);
205
+ })), o;
206
+ }
207
+ const n = e.prefix;
208
+ if (!_({
209
+ provider: t,
210
+ prefix: n,
211
+ name: "a"
212
+ }))
213
+ return !1;
214
+ const r = k(t, n);
215
+ return !!Z(r, e);
216
+ }
217
+ const Pe = Object.freeze({
218
+ width: null,
219
+ height: null
220
+ }), Ee = Object.freeze({
221
+ // Dimensions
222
+ ...Pe,
223
+ // Transformations
224
+ ...z
225
+ }), tt = /(-?[0-9.]*[0-9]+[0-9.]*)/g, nt = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
226
+ function fe(e, t, n) {
227
+ if (t === 1)
228
+ return e;
229
+ if (n = n || 100, typeof e == "number")
230
+ return Math.ceil(e * t * n) / n;
231
+ if (typeof e != "string")
232
+ return e;
233
+ const r = e.split(tt);
234
+ if (r === null || !r.length)
235
+ return e;
236
+ const o = [];
237
+ let i = r.shift(), s = nt.test(i);
238
+ for (; ; ) {
239
+ if (s) {
240
+ const c = parseFloat(i);
241
+ isNaN(c) ? o.push(i) : o.push(Math.ceil(c * t * n) / n);
242
+ } else
243
+ o.push(i);
244
+ if (i = r.shift(), i === void 0)
245
+ return o.join("");
246
+ s = !s;
247
+ }
248
+ }
249
+ const ot = (e) => e === "unset" || e === "undefined" || e === "none";
250
+ function rt(e, t) {
251
+ const n = {
252
+ ...N,
253
+ ...e
254
+ }, r = {
255
+ ...Ee,
256
+ ...t
257
+ }, o = {
258
+ left: n.left,
259
+ top: n.top,
260
+ width: n.width,
261
+ height: n.height
262
+ };
263
+ let i = n.body;
264
+ [n, r].forEach((w) => {
265
+ const h = [], u = w.hFlip, S = w.vFlip;
266
+ let y = w.rotate;
267
+ u ? S ? y += 2 : (h.push(
268
+ "translate(" + (o.width + o.left).toString() + " " + (0 - o.top).toString() + ")"
269
+ ), h.push("scale(-1 1)"), o.top = o.left = 0) : S && (h.push(
270
+ "translate(" + (0 - o.left).toString() + " " + (o.height + o.top).toString() + ")"
271
+ ), h.push("scale(1 -1)"), o.top = o.left = 0);
272
+ let b;
273
+ switch (y < 0 && (y -= Math.floor(y / 4) * 4), y = y % 4, y) {
274
+ case 1:
275
+ b = o.height / 2 + o.top, h.unshift(
276
+ "rotate(90 " + b.toString() + " " + b.toString() + ")"
277
+ );
278
+ break;
279
+ case 2:
280
+ h.unshift(
281
+ "rotate(180 " + (o.width / 2 + o.left).toString() + " " + (o.height / 2 + o.top).toString() + ")"
282
+ );
283
+ break;
284
+ case 3:
285
+ b = o.width / 2 + o.left, h.unshift(
286
+ "rotate(-90 " + b.toString() + " " + b.toString() + ")"
287
+ );
288
+ break;
289
+ }
290
+ y % 2 === 1 && (o.left !== o.top && (b = o.left, o.left = o.top, o.top = b), o.width !== o.height && (b = o.width, o.width = o.height, o.height = b)), h.length && (i = '<g transform="' + h.join(" ") + '">' + i + "</g>");
291
+ });
292
+ const s = r.width, c = r.height, l = o.width, a = o.height;
293
+ let f, d;
294
+ s === null ? (d = c === null ? "1em" : c === "auto" ? a : c, f = fe(d, l / a)) : (f = s === "auto" ? l : s, d = c === null ? fe(f, a / l) : c === "auto" ? a : c);
295
+ const g = {}, m = (w, h) => {
296
+ ot(h) || (g[w] = h.toString());
297
+ };
298
+ return m("width", f), m("height", d), g.viewBox = o.left.toString() + " " + o.top.toString() + " " + l.toString() + " " + a.toString(), {
299
+ attributes: g,
300
+ body: i
301
+ };
302
+ }
303
+ const it = /\sid="(\S+)"/g, st = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
304
+ let ct = 0;
305
+ function lt(e, t = st) {
306
+ const n = [];
307
+ let r;
308
+ for (; r = it.exec(e); )
309
+ n.push(r[1]);
310
+ if (!n.length)
311
+ return e;
312
+ const o = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
313
+ return n.forEach((i) => {
314
+ const s = typeof t == "function" ? t(i) : t + (ct++).toString(), c = i.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
315
+ e = e.replace(
316
+ // Allowed characters before id: [#;"]
317
+ // Allowed characters after id: [)"], .[a-z]
318
+ new RegExp('([#;"])(' + c + ')([")]|\\.[a-z])', "g"),
319
+ "$1" + s + o + "$3"
320
+ );
321
+ }), e = e.replace(new RegExp(o, "g"), ""), e;
322
+ }
323
+ const W = /* @__PURE__ */ Object.create(null);
324
+ function at(e, t) {
325
+ W[e] = t;
326
+ }
327
+ function K(e) {
328
+ return W[e] || W[""];
329
+ }
330
+ function ee(e) {
331
+ let t;
332
+ if (typeof e.resources == "string")
333
+ t = [e.resources];
334
+ else if (t = e.resources, !(t instanceof Array) || !t.length)
335
+ return null;
336
+ return {
337
+ // API hosts
338
+ resources: t,
339
+ // Root path
340
+ path: e.path || "/",
341
+ // URL length limit
342
+ maxURL: e.maxURL || 500,
343
+ // Timeout before next host is used.
344
+ rotate: e.rotate || 750,
345
+ // Timeout before failing query.
346
+ timeout: e.timeout || 5e3,
347
+ // Randomise default API end point.
348
+ random: e.random === !0,
349
+ // Start index
350
+ index: e.index || 0,
351
+ // Receive data after time out (used if time out kicks in first, then API module sends data anyway).
352
+ dataAfterTimeout: e.dataAfterTimeout !== !1
353
+ };
354
+ }
355
+ const te = /* @__PURE__ */ Object.create(null), T = [
356
+ "https://api.simplesvg.com",
357
+ "https://api.unisvg.com"
358
+ ], F = [];
359
+ for (; T.length > 0; )
360
+ T.length === 1 || Math.random() > 0.5 ? F.push(T.shift()) : F.push(T.pop());
361
+ te[""] = ee({
362
+ resources: ["https://api.iconify.design"].concat(F)
363
+ });
364
+ function ft(e, t) {
365
+ const n = ee(t);
366
+ return n === null ? !1 : (te[e] = n, !0);
367
+ }
368
+ function ne(e) {
369
+ return te[e];
370
+ }
371
+ const ut = () => {
372
+ let e;
373
+ try {
374
+ if (e = fetch, typeof e == "function")
375
+ return e;
376
+ } catch {
377
+ }
378
+ };
379
+ let ue = ut();
380
+ function dt(e, t) {
381
+ const n = ne(e);
382
+ if (!n)
383
+ return 0;
384
+ let r;
385
+ if (!n.maxURL)
386
+ r = 0;
387
+ else {
388
+ let o = 0;
389
+ n.resources.forEach((s) => {
390
+ o = Math.max(o, s.length);
391
+ });
392
+ const i = t + ".json?icons=";
393
+ r = n.maxURL - o - n.path.length - i.length;
394
+ }
395
+ return r;
396
+ }
397
+ function ht(e) {
398
+ return e === 404;
399
+ }
400
+ const pt = (e, t, n) => {
401
+ const r = [], o = dt(e, t), i = "icons";
402
+ let s = {
403
+ type: i,
404
+ provider: e,
405
+ prefix: t,
406
+ icons: []
407
+ }, c = 0;
408
+ return n.forEach((l, a) => {
409
+ c += l.length + 1, c >= o && a > 0 && (r.push(s), s = {
410
+ type: i,
411
+ provider: e,
412
+ prefix: t,
413
+ icons: []
414
+ }, c = l.length), s.icons.push(l);
415
+ }), r.push(s), r;
416
+ };
417
+ function gt(e) {
418
+ if (typeof e == "string") {
419
+ const t = ne(e);
420
+ if (t)
421
+ return t.path;
422
+ }
423
+ return "/";
424
+ }
425
+ const mt = (e, t, n) => {
426
+ if (!ue) {
427
+ n("abort", 424);
428
+ return;
429
+ }
430
+ let r = gt(t.provider);
431
+ switch (t.type) {
432
+ case "icons": {
433
+ const i = t.prefix, c = t.icons.join(","), l = new URLSearchParams({
434
+ icons: c
435
+ });
436
+ r += i + ".json?" + l.toString();
437
+ break;
438
+ }
439
+ case "custom": {
440
+ const i = t.uri;
441
+ r += i.slice(0, 1) === "/" ? i.slice(1) : i;
442
+ break;
443
+ }
444
+ default:
445
+ n("abort", 400);
446
+ return;
447
+ }
448
+ let o = 503;
449
+ ue(e + r).then((i) => {
450
+ const s = i.status;
451
+ if (s !== 200) {
452
+ setTimeout(() => {
453
+ n(ht(s) ? "abort" : "next", s);
454
+ });
455
+ return;
456
+ }
457
+ return o = 501, i.json();
458
+ }).then((i) => {
459
+ if (typeof i != "object" || i === null) {
460
+ setTimeout(() => {
461
+ i === 404 ? n("abort", i) : n("next", o);
462
+ });
463
+ return;
464
+ }
465
+ setTimeout(() => {
466
+ n("success", i);
467
+ });
468
+ }).catch(() => {
469
+ n("next", o);
470
+ });
471
+ }, yt = {
472
+ prepare: pt,
473
+ send: mt
474
+ };
475
+ function bt(e) {
476
+ const t = {
477
+ loaded: [],
478
+ missing: [],
479
+ pending: []
480
+ }, n = /* @__PURE__ */ Object.create(null);
481
+ 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));
482
+ let r = {
483
+ provider: "",
484
+ prefix: "",
485
+ name: ""
486
+ };
487
+ return e.forEach((o) => {
488
+ if (r.name === o.name && r.prefix === o.prefix && r.provider === o.provider)
489
+ return;
490
+ r = o;
491
+ const i = o.provider, s = o.prefix, c = o.name, l = n[i] || (n[i] = /* @__PURE__ */ Object.create(null)), a = l[s] || (l[s] = k(i, s));
492
+ let f;
493
+ c in a.icons ? f = t.loaded : s === "" || a.missing.has(c) ? f = t.missing : f = t.pending;
494
+ const d = {
495
+ provider: i,
496
+ prefix: s,
497
+ name: c
498
+ };
499
+ f.push(d);
500
+ }), t;
501
+ }
502
+ function Me(e, t) {
503
+ e.forEach((n) => {
504
+ const r = n.loaderCallbacks;
505
+ r && (n.loaderCallbacks = r.filter((o) => o.id !== t));
506
+ });
507
+ }
508
+ function wt(e) {
509
+ e.pendingCallbacksFlag || (e.pendingCallbacksFlag = !0, setTimeout(() => {
510
+ e.pendingCallbacksFlag = !1;
511
+ const t = e.loaderCallbacks ? e.loaderCallbacks.slice(0) : [];
512
+ if (!t.length)
513
+ return;
514
+ let n = !1;
515
+ const r = e.provider, o = e.prefix;
516
+ t.forEach((i) => {
517
+ const s = i.icons, c = s.pending.length;
518
+ s.pending = s.pending.filter((l) => {
519
+ if (l.prefix !== o)
520
+ return !0;
521
+ const a = l.name;
522
+ if (e.icons[a])
523
+ s.loaded.push({
524
+ provider: r,
525
+ prefix: o,
526
+ name: a
527
+ });
528
+ else if (e.missing.has(a))
529
+ s.missing.push({
530
+ provider: r,
531
+ prefix: o,
532
+ name: a
533
+ });
534
+ else
535
+ return n = !0, !0;
536
+ return !1;
537
+ }), s.pending.length !== c && (n || Me([e], i.id), i.callback(
538
+ s.loaded.slice(0),
539
+ s.missing.slice(0),
540
+ s.pending.slice(0),
541
+ i.abort
542
+ ));
543
+ });
544
+ }));
545
+ }
546
+ let vt = 0;
547
+ function It(e, t, n) {
548
+ const r = vt++, o = Me.bind(null, n, r);
549
+ if (!t.pending.length)
550
+ return o;
551
+ const i = {
552
+ id: r,
553
+ icons: t,
554
+ callback: e,
555
+ abort: o
556
+ };
557
+ return n.forEach((s) => {
558
+ (s.loaderCallbacks || (s.loaderCallbacks = [])).push(i);
559
+ }), o;
560
+ }
561
+ function St(e, t = !0, n = !1) {
562
+ const r = [];
563
+ return e.forEach((o) => {
564
+ const i = typeof o == "string" ? B(o, t, n) : o;
565
+ i && r.push(i);
566
+ }), r;
567
+ }
568
+ var xt = {
569
+ resources: [],
570
+ index: 0,
571
+ timeout: 2e3,
572
+ rotate: 750,
573
+ random: !1,
574
+ dataAfterTimeout: !1
575
+ };
576
+ function kt(e, t, n, r) {
577
+ const o = e.resources.length, i = e.random ? Math.floor(Math.random() * o) : e.index;
578
+ let s;
579
+ if (e.random) {
580
+ let p = e.resources.slice(0);
581
+ for (s = []; p.length > 1; ) {
582
+ const v = Math.floor(Math.random() * p.length);
583
+ s.push(p[v]), p = p.slice(0, v).concat(p.slice(v + 1));
584
+ }
585
+ s = s.concat(p);
586
+ } else
587
+ s = e.resources.slice(i).concat(e.resources.slice(0, i));
588
+ const c = Date.now();
589
+ let l = "pending", a = 0, f, d = null, g = [], m = [];
590
+ typeof r == "function" && m.push(r);
591
+ function w() {
592
+ d && (clearTimeout(d), d = null);
593
+ }
594
+ function h() {
595
+ l === "pending" && (l = "aborted"), w(), g.forEach((p) => {
596
+ p.status === "pending" && (p.status = "aborted");
597
+ }), g = [];
598
+ }
599
+ function u(p, v) {
600
+ v && (m = []), typeof p == "function" && m.push(p);
601
+ }
602
+ function S() {
603
+ return {
604
+ startTime: c,
605
+ payload: t,
606
+ status: l,
607
+ queriesSent: a,
608
+ queriesPending: g.length,
609
+ subscribe: u,
610
+ abort: h
611
+ };
612
+ }
613
+ function y() {
614
+ l = "failed", m.forEach((p) => {
615
+ p(void 0, f);
616
+ });
617
+ }
618
+ function b() {
619
+ g.forEach((p) => {
620
+ p.status === "pending" && (p.status = "aborted");
621
+ }), g = [];
622
+ }
623
+ function De(p, v, C) {
624
+ const O = v !== "success";
625
+ switch (g = g.filter((x) => x !== p), l) {
626
+ case "pending":
627
+ break;
628
+ case "failed":
629
+ if (O || !e.dataAfterTimeout)
630
+ return;
631
+ break;
632
+ default:
633
+ return;
634
+ }
635
+ if (v === "abort") {
636
+ f = C, y();
637
+ return;
638
+ }
639
+ if (O) {
640
+ f = C, g.length || (s.length ? H() : y());
641
+ return;
642
+ }
643
+ if (w(), b(), !e.random) {
644
+ const x = e.resources.indexOf(p.resource);
645
+ x !== -1 && x !== e.index && (e.index = x);
646
+ }
647
+ l = "completed", m.forEach((x) => {
648
+ x(C);
649
+ });
650
+ }
651
+ function H() {
652
+ if (l !== "pending")
653
+ return;
654
+ w();
655
+ const p = s.shift();
656
+ if (p === void 0) {
657
+ if (g.length) {
658
+ d = setTimeout(() => {
659
+ w(), l === "pending" && (b(), y());
660
+ }, e.timeout);
661
+ return;
662
+ }
663
+ y();
664
+ return;
665
+ }
666
+ const v = {
667
+ status: "pending",
668
+ resource: p,
669
+ callback: (C, O) => {
670
+ De(v, C, O);
671
+ }
672
+ };
673
+ g.push(v), a++, d = setTimeout(H, e.rotate), n(p, t, v.callback);
674
+ }
675
+ return setTimeout(H), S;
676
+ }
677
+ function Oe(e) {
678
+ const t = {
679
+ ...xt,
680
+ ...e
681
+ };
682
+ let n = [];
683
+ function r() {
684
+ n = n.filter((c) => c().status === "pending");
685
+ }
686
+ function o(c, l, a) {
687
+ const f = kt(
688
+ t,
689
+ c,
690
+ l,
691
+ (d, g) => {
692
+ r(), a && a(d, g);
693
+ }
694
+ );
695
+ return n.push(f), f;
696
+ }
697
+ function i(c) {
698
+ return n.find((l) => c(l)) || null;
699
+ }
700
+ return {
701
+ query: o,
702
+ find: i,
703
+ setIndex: (c) => {
704
+ t.index = c;
705
+ },
706
+ getIndex: () => t.index,
707
+ cleanup: r
708
+ };
709
+ }
710
+ function de() {
711
+ }
712
+ const q = /* @__PURE__ */ Object.create(null);
713
+ function Ct(e) {
714
+ if (!q[e]) {
715
+ const t = ne(e);
716
+ if (!t)
717
+ return;
718
+ const n = Oe(t), r = {
719
+ config: t,
720
+ redundancy: n
721
+ };
722
+ q[e] = r;
723
+ }
724
+ return q[e];
725
+ }
726
+ function jt(e, t, n) {
727
+ let r, o;
728
+ if (typeof e == "string") {
729
+ const i = K(e);
730
+ if (!i)
731
+ return n(void 0, 424), de;
732
+ o = i.send;
733
+ const s = Ct(e);
734
+ s && (r = s.redundancy);
735
+ } else {
736
+ const i = ee(e);
737
+ if (i) {
738
+ r = Oe(i);
739
+ const s = e.resources ? e.resources[0] : "", c = K(s);
740
+ c && (o = c.send);
741
+ }
742
+ }
743
+ return !r || !o ? (n(void 0, 424), de) : r.query(t, o, n)().abort;
744
+ }
745
+ const he = "iconify2", M = "iconify", Le = M + "-count", pe = M + "-version", _e = 36e5, Tt = 168;
746
+ function G(e, t) {
747
+ try {
748
+ return e.getItem(t);
749
+ } catch {
750
+ }
751
+ }
752
+ function oe(e, t, n) {
753
+ try {
754
+ return e.setItem(t, n), !0;
755
+ } catch {
756
+ }
757
+ }
758
+ function ge(e, t) {
759
+ try {
760
+ e.removeItem(t);
761
+ } catch {
762
+ }
763
+ }
764
+ function J(e, t) {
765
+ return oe(e, Le, t.toString());
766
+ }
767
+ function X(e) {
768
+ return parseInt(G(e, Le)) || 0;
769
+ }
770
+ const D = {
771
+ local: !0,
772
+ session: !0
773
+ }, Fe = {
774
+ local: /* @__PURE__ */ new Set(),
775
+ session: /* @__PURE__ */ new Set()
776
+ };
777
+ let re = !1;
778
+ function Pt(e) {
779
+ re = e;
780
+ }
781
+ let L = typeof window > "u" ? {} : window;
782
+ function Ae(e) {
783
+ const t = e + "Storage";
784
+ try {
785
+ if (L && L[t] && typeof L[t].length == "number")
786
+ return L[t];
787
+ } catch {
788
+ }
789
+ D[e] = !1;
790
+ }
791
+ function ze(e, t) {
792
+ const n = Ae(e);
793
+ if (!n)
794
+ return;
795
+ const r = G(n, pe);
796
+ if (r !== he) {
797
+ if (r) {
798
+ const c = X(n);
799
+ for (let l = 0; l < c; l++)
800
+ ge(n, M + l.toString());
801
+ }
802
+ oe(n, pe, he), J(n, 0);
803
+ return;
804
+ }
805
+ const o = Math.floor(Date.now() / _e) - Tt, i = (c) => {
806
+ const l = M + c.toString(), a = G(n, l);
807
+ if (typeof a == "string") {
808
+ try {
809
+ const f = JSON.parse(a);
810
+ 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
811
+ t(f, c))
812
+ return !0;
813
+ } catch {
814
+ }
815
+ ge(n, l);
816
+ }
817
+ };
818
+ let s = X(n);
819
+ for (let c = s - 1; c >= 0; c--)
820
+ i(c) || (c === s - 1 ? (s--, J(n, s)) : Fe[e].add(c));
821
+ }
822
+ function Be() {
823
+ if (!re) {
824
+ Pt(!0);
825
+ for (const e in D)
826
+ ze(e, (t) => {
827
+ const n = t.data, r = t.provider, o = n.prefix, i = k(
828
+ r,
829
+ o
830
+ );
831
+ if (!Z(i, n).length)
832
+ return !1;
833
+ const s = n.lastModified || -1;
834
+ return i.lastModifiedCached = i.lastModifiedCached ? Math.min(i.lastModifiedCached, s) : s, !0;
835
+ });
836
+ }
837
+ }
838
+ function Et(e, t) {
839
+ const n = e.lastModifiedCached;
840
+ if (
841
+ // Matches or newer
842
+ n && n >= t
843
+ )
844
+ return n === t;
845
+ if (e.lastModifiedCached = t, n)
846
+ for (const r in D)
847
+ ze(r, (o) => {
848
+ const i = o.data;
849
+ return o.provider !== e.provider || i.prefix !== e.prefix || i.lastModified === t;
850
+ });
851
+ return !0;
852
+ }
853
+ function Mt(e, t) {
854
+ re || Be();
855
+ function n(r) {
856
+ let o;
857
+ if (!D[r] || !(o = Ae(r)))
858
+ return;
859
+ const i = Fe[r];
860
+ let s;
861
+ if (i.size)
862
+ i.delete(s = Array.from(i).shift());
863
+ else if (s = X(o), !J(o, s + 1))
864
+ return;
865
+ const c = {
866
+ cached: Math.floor(Date.now() / _e),
867
+ provider: e.provider,
868
+ data: t
869
+ };
870
+ return oe(
871
+ o,
872
+ M + s.toString(),
873
+ JSON.stringify(c)
874
+ );
875
+ }
876
+ t.lastModified && !Et(e, t.lastModified) || Object.keys(t.icons).length && (t.not_found && (t = Object.assign({}, t), delete t.not_found), n("local") || n("session"));
877
+ }
878
+ function me() {
879
+ }
880
+ function Ot(e) {
881
+ e.iconsLoaderFlag || (e.iconsLoaderFlag = !0, setTimeout(() => {
882
+ e.iconsLoaderFlag = !1, wt(e);
883
+ }));
884
+ }
885
+ function Lt(e, t) {
886
+ e.iconsToLoad ? e.iconsToLoad = e.iconsToLoad.concat(t).sort() : e.iconsToLoad = t, e.iconsQueueFlag || (e.iconsQueueFlag = !0, setTimeout(() => {
887
+ e.iconsQueueFlag = !1;
888
+ const { provider: n, prefix: r } = e, o = e.iconsToLoad;
889
+ delete e.iconsToLoad;
890
+ let i;
891
+ if (!o || !(i = K(n)))
892
+ return;
893
+ i.prepare(n, r, o).forEach((c) => {
894
+ jt(n, c, (l) => {
895
+ if (typeof l != "object")
896
+ c.icons.forEach((a) => {
897
+ e.missing.add(a);
898
+ });
899
+ else
900
+ try {
901
+ const a = Z(
902
+ e,
903
+ l
904
+ );
905
+ if (!a.length)
906
+ return;
907
+ const f = e.pendingIcons;
908
+ f && a.forEach((d) => {
909
+ f.delete(d);
910
+ }), Mt(e, l);
911
+ } catch (a) {
912
+ console.error(a);
913
+ }
914
+ Ot(e);
915
+ });
916
+ });
917
+ }));
918
+ }
919
+ const _t = (e, t) => {
920
+ const n = St(e, !0, Te()), r = bt(n);
921
+ if (!r.pending.length) {
922
+ let l = !0;
923
+ return t && setTimeout(() => {
924
+ l && t(
925
+ r.loaded,
926
+ r.missing,
927
+ r.pending,
928
+ me
929
+ );
930
+ }), () => {
931
+ l = !1;
932
+ };
933
+ }
934
+ const o = /* @__PURE__ */ Object.create(null), i = [];
935
+ let s, c;
936
+ return r.pending.forEach((l) => {
937
+ const { provider: a, prefix: f } = l;
938
+ if (f === c && a === s)
939
+ return;
940
+ s = a, c = f, i.push(k(a, f));
941
+ const d = o[a] || (o[a] = /* @__PURE__ */ Object.create(null));
942
+ d[f] || (d[f] = []);
943
+ }), r.pending.forEach((l) => {
944
+ const { provider: a, prefix: f, name: d } = l, g = k(a, f), m = g.pendingIcons || (g.pendingIcons = /* @__PURE__ */ new Set());
945
+ m.has(d) || (m.add(d), o[a][f].push(d));
946
+ }), i.forEach((l) => {
947
+ const { provider: a, prefix: f } = l;
948
+ o[a][f].length && Lt(l, o[a][f]);
949
+ }), t ? It(t, r, i) : me;
950
+ };
951
+ function Ft(e, t) {
952
+ const n = {
953
+ ...e
954
+ };
955
+ for (const r in t) {
956
+ const o = t[r], i = typeof o;
957
+ r in Pe ? (o === null || o && (i === "string" || i === "number")) && (n[r] = o) : i === typeof n[r] && (n[r] = r === "rotate" ? o % 4 : o);
958
+ }
959
+ return n;
960
+ }
961
+ const At = /[\s,]+/;
962
+ function zt(e, t) {
963
+ t.split(At).forEach((n) => {
964
+ switch (n.trim()) {
965
+ case "horizontal":
966
+ e.hFlip = !0;
967
+ break;
968
+ case "vertical":
969
+ e.vFlip = !0;
970
+ break;
971
+ }
972
+ });
973
+ }
974
+ function Bt(e, t = 0) {
975
+ const n = e.replace(/^-?[0-9.]*/, "");
976
+ function r(o) {
977
+ for (; o < 0; )
978
+ o += 4;
979
+ return o % 4;
980
+ }
981
+ if (n === "") {
982
+ const o = parseInt(e);
983
+ return isNaN(o) ? 0 : r(o);
984
+ } else if (n !== e) {
985
+ let o = 0;
986
+ switch (n) {
987
+ case "%":
988
+ o = 25;
989
+ break;
990
+ case "deg":
991
+ o = 90;
992
+ }
993
+ if (o) {
994
+ let i = parseFloat(e.slice(0, e.length - n.length));
995
+ return isNaN(i) ? 0 : (i = i / o, i % 1 === 0 ? r(i) : 0);
996
+ }
997
+ }
998
+ return t;
999
+ }
1000
+ function Nt(e, t) {
1001
+ let n = e.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
1002
+ for (const r in t)
1003
+ n += " " + r + '="' + t[r] + '"';
1004
+ return '<svg xmlns="http://www.w3.org/2000/svg"' + n + ">" + e + "</svg>";
1005
+ }
1006
+ function Dt(e) {
1007
+ return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
1008
+ }
1009
+ function Ht(e) {
1010
+ return "data:image/svg+xml," + Dt(e);
1011
+ }
1012
+ function Rt(e) {
1013
+ return 'url("' + Ht(e) + '")';
1014
+ }
1015
+ const ye = {
1016
+ ...Ee,
1017
+ inline: !1
1018
+ }, $t = {
1019
+ xmlns: "http://www.w3.org/2000/svg",
1020
+ "xmlns:xlink": "http://www.w3.org/1999/xlink",
1021
+ "aria-hidden": !0,
1022
+ role: "img"
1023
+ }, Vt = {
1024
+ display: "inline-block"
1025
+ }, Y = {
1026
+ backgroundColor: "currentColor"
1027
+ }, Ne = {
1028
+ backgroundColor: "transparent"
1029
+ }, be = {
1030
+ Image: "var(--svg)",
1031
+ Repeat: "no-repeat",
1032
+ Size: "100% 100%"
1033
+ }, we = {
1034
+ webkitMask: Y,
1035
+ mask: Y,
1036
+ background: Ne
1037
+ };
1038
+ for (const e in we) {
1039
+ const t = we[e];
1040
+ for (const n in be)
1041
+ t[e + n] = be[n];
1042
+ }
1043
+ const A = {};
1044
+ ["horizontal", "vertical"].forEach((e) => {
1045
+ const t = e.slice(0, 1) + "Flip";
1046
+ A[e + "-flip"] = t, A[e.slice(0, 1) + "-flip"] = t, A[e + "Flip"] = t;
1047
+ });
1048
+ function ve(e) {
1049
+ return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
1050
+ }
1051
+ const Ie = (e, t) => {
1052
+ const n = Ft(ye, t), r = { ...$t }, o = t.mode || "svg", i = {}, s = t.style, c = typeof s == "object" && !(s instanceof Array) ? s : {};
1053
+ for (let h in t) {
1054
+ const u = t[h];
1055
+ if (u !== void 0)
1056
+ switch (h) {
1057
+ case "icon":
1058
+ case "style":
1059
+ case "onLoad":
1060
+ case "mode":
1061
+ break;
1062
+ case "inline":
1063
+ case "hFlip":
1064
+ case "vFlip":
1065
+ n[h] = u === !0 || u === "true" || u === 1;
1066
+ break;
1067
+ case "flip":
1068
+ typeof u == "string" && zt(n, u);
1069
+ break;
1070
+ case "color":
1071
+ i.color = u;
1072
+ break;
1073
+ case "rotate":
1074
+ typeof u == "string" ? n[h] = Bt(u) : typeof u == "number" && (n[h] = u);
1075
+ break;
1076
+ case "ariaHidden":
1077
+ case "aria-hidden":
1078
+ u !== !0 && u !== "true" && delete r["aria-hidden"];
1079
+ break;
1080
+ default: {
1081
+ const S = A[h];
1082
+ S ? (u === !0 || u === "true" || u === 1) && (n[S] = !0) : ye[h] === void 0 && (r[h] = u);
1083
+ }
1084
+ }
1085
+ }
1086
+ const l = rt(e, n), a = l.attributes;
1087
+ if (n.inline && (i.verticalAlign = "-0.125em"), o === "svg") {
1088
+ r.style = {
1089
+ ...i,
1090
+ ...c
1091
+ }, Object.assign(r, a);
1092
+ let h = 0, u = t.id;
1093
+ return typeof u == "string" && (u = u.replace(/-/g, "_")), r.innerHTML = lt(l.body, u ? () => u + "ID" + h++ : "iconifyVue"), ie("svg", r);
1094
+ }
1095
+ const { body: f, width: d, height: g } = e, m = o === "mask" || (o === "bg" ? !1 : f.indexOf("currentColor") !== -1), w = Nt(f, {
1096
+ ...a,
1097
+ width: d + "",
1098
+ height: g + ""
1099
+ });
1100
+ return r.style = {
1101
+ ...i,
1102
+ "--svg": Rt(w),
1103
+ width: ve(a.width),
1104
+ height: ve(a.height),
1105
+ ...Vt,
1106
+ ...m ? Y : Ne,
1107
+ ...c
1108
+ }, ie("span", r);
1109
+ };
1110
+ Te(!0);
1111
+ at("", yt);
1112
+ if (typeof document < "u" && typeof window < "u") {
1113
+ Be();
1114
+ const e = window;
1115
+ if (e.IconifyPreload !== void 0) {
1116
+ const t = e.IconifyPreload, n = "Invalid IconifyPreload syntax.";
1117
+ typeof t == "object" && t !== null && (t instanceof Array ? t : [t]).forEach((r) => {
1118
+ try {
1119
+ // Check if item is an object and not null/array
1120
+ (typeof r != "object" || r === null || r instanceof Array || // Check for 'icons' and 'prefix'
1121
+ typeof r.icons != "object" || typeof r.prefix != "string" || // Add icon set
1122
+ !et(r)) && console.error(n);
1123
+ } catch {
1124
+ console.error(n);
1125
+ }
1126
+ });
1127
+ }
1128
+ if (e.IconifyProviders !== void 0) {
1129
+ const t = e.IconifyProviders;
1130
+ if (typeof t == "object" && t !== null)
1131
+ for (let n in t) {
1132
+ const r = "IconifyProviders[" + n + "] is invalid.";
1133
+ try {
1134
+ const o = t[n];
1135
+ if (typeof o != "object" || !o || o.resources === void 0)
1136
+ continue;
1137
+ ft(n, o) || console.error(r);
1138
+ } catch {
1139
+ console.error(r);
1140
+ }
1141
+ }
1142
+ }
1143
+ }
1144
+ const Qt = {
1145
+ ...N,
1146
+ body: ""
1147
+ }, Se = xe({
1148
+ // Do not inherit other attributes: it is handled by render()
1149
+ inheritAttrs: !1,
1150
+ // Set initial data
1151
+ data() {
1152
+ return {
1153
+ // Mounted status
1154
+ iconMounted: !1,
1155
+ // Callback counter to trigger re-render
1156
+ counter: 0
1157
+ };
1158
+ },
1159
+ mounted() {
1160
+ this._name = "", this._loadingIcon = null, this.iconMounted = !0;
1161
+ },
1162
+ unmounted() {
1163
+ this.abortLoading();
1164
+ },
1165
+ methods: {
1166
+ abortLoading() {
1167
+ this._loadingIcon && (this._loadingIcon.abort(), this._loadingIcon = null);
1168
+ },
1169
+ // Get data for icon to render or null
1170
+ getIcon(e, t) {
1171
+ if (typeof e == "object" && e !== null && typeof e.body == "string")
1172
+ return this._name = "", this.abortLoading(), {
1173
+ data: e
1174
+ };
1175
+ let n;
1176
+ if (typeof e != "string" || (n = B(e, !1, !0)) === null)
1177
+ return this.abortLoading(), null;
1178
+ const r = Ye(n);
1179
+ if (!r)
1180
+ return (!this._loadingIcon || this._loadingIcon.name !== e) && (this.abortLoading(), this._name = "", r !== null && (this._loadingIcon = {
1181
+ name: e,
1182
+ abort: _t([n], () => {
1183
+ this.counter++;
1184
+ })
1185
+ })), null;
1186
+ this.abortLoading(), this._name !== e && (this._name = e, t && t(e));
1187
+ const o = ["iconify"];
1188
+ return n.prefix !== "" && o.push("iconify--" + n.prefix), n.provider !== "" && o.push("iconify--" + n.provider), { data: r, classes: o };
1189
+ }
1190
+ },
1191
+ // Render icon
1192
+ render() {
1193
+ this.counter;
1194
+ const e = this.$attrs, t = this.iconMounted ? this.getIcon(e.icon, e.onLoad) : null;
1195
+ if (!t)
1196
+ return Ie(Qt, e);
1197
+ let n = e;
1198
+ return t.classes && (n = {
1199
+ ...e,
1200
+ class: (typeof e.class == "string" ? e.class + " " : "") + t.classes.join(" ")
1201
+ }), Ie({
1202
+ ...N,
1203
+ ...t.data
1204
+ }, n);
1205
+ }
1206
+ }), qt = {
1207
+ key: 1,
1208
+ class: "basicHeight basicWidth",
1209
+ "aria-hidden": "true"
1210
+ }, Ut = ["xlink:href"], Wt = ["src"], Kt = {
1211
+ key: 1,
1212
+ class: "basicHeight basicWidth",
1213
+ "aria-hidden": "true"
1214
+ }, Gt = ["xlink:href"], Jt = ["src"], Xt = /* @__PURE__ */ xe({
1215
+ name: "IkSvgIcon",
1216
+ __name: "index",
1217
+ props: {
1218
+ name: {},
1219
+ flip: {},
1220
+ rotate: {},
1221
+ color: {},
1222
+ size: { default: "" },
1223
+ bg: { type: Boolean, default: !1 },
1224
+ showBg: { type: Boolean, default: !1 },
1225
+ padding: { default: "0" },
1226
+ warning: { type: Boolean },
1227
+ notip: { type: Boolean, default: !1 },
1228
+ title: {}
1229
+ },
1230
+ setup(e) {
1231
+ const t = e, n = R(() => {
1232
+ var i;
1233
+ return /^http?:\/\//.test(t.name) ? "img" : /i-[^:]+:[^:]+/.test(t.name) ? "unocss" : (i = t.name) != null && i.includes(":") ? "iconify" : "svg";
1234
+ }), r = R(() => {
1235
+ const i = [];
1236
+ if (t.flip)
1237
+ switch (t.flip) {
1238
+ case "horizontal":
1239
+ i.push("rotateY(180deg)");
1240
+ break;
1241
+ case "vertical":
1242
+ i.push("rotateX(180deg)");
1243
+ break;
1244
+ case "both":
1245
+ i.push("rotateX(180deg)"), i.push("rotateY(180deg)");
1246
+ break;
1247
+ }
1248
+ return t.rotate && i.push(`rotate(${t.rotate % 360}deg)`), {
1249
+ ...t.color && { color: t.color },
1250
+ ...t.size && {
1251
+ fontSize: typeof t.size == "number" ? `${t.size}px` : t.size
1252
+ },
1253
+ ...i.length && { transform: i.join(" ") },
1254
+ padding: t.padding
1255
+ };
1256
+ }), o = R(
1257
+ () => document.body.getAttribute("data-theme") === "dark"
1258
+ );
1259
+ return (i, s) => {
1260
+ const c = He("el-tooltip");
1261
+ return i.notip || !i.title ? (I(), j(
1262
+ "i",
1263
+ {
1264
+ key: 0,
1265
+ class: Re(["ik-svg-icon ik-icon relative basicHeight basicWidth flex-inline items-center justify-center fill-current leading-[1em] transition", {
1266
+ [i.name]: n.value === "unocss",
1267
+ "show-bg": i.showBg || i.bg,
1268
+ default: i.size === "default",
1269
+ small: i.size === "small",
1270
+ big: i.size === "big",
1271
+ warning: i.warning
1272
+ }]),
1273
+ style: $e(r.value)
1274
+ },
1275
+ [
1276
+ n.value === "iconify" ? (I(), $(se(Se), {
1277
+ key: 0,
1278
+ icon: i.name
1279
+ }, null, 8, ["icon"])) : n.value === "svg" ? (I(), j("svg", qt, [
1280
+ V("use", {
1281
+ "xlink:href": `#${i.name}`
1282
+ }, null, 8, Ut)
1283
+ ])) : n.value === "img" ? (I(), j("img", {
1284
+ key: 2,
1285
+ src: i.name,
1286
+ class: "basicHeight basicWidth"
1287
+ }, null, 8, Wt)) : ce("v-if", !0)
1288
+ ],
1289
+ 6
1290
+ /* CLASS, STYLE */
1291
+ )) : (I(), $(c, {
1292
+ key: 1,
1293
+ effect: o.value ? "dark" : "light",
1294
+ content: i.title
1295
+ }, {
1296
+ default: Ve(() => [
1297
+ V(
1298
+ "i",
1299
+ Qe({
1300
+ class: ["ik-svg-icon ik-icon relative basicHeight basicWidth flex-inline items-center justify-center fill-current leading-[1em] transition", {
1301
+ [i.name]: n.value === "unocss",
1302
+ "show-bg": i.showBg || i.bg,
1303
+ default: i.size === "default",
1304
+ small: i.size === "small",
1305
+ big: i.size === "big",
1306
+ warning: i.warning
1307
+ }],
1308
+ style: r.value
1309
+ }, i.$attrs),
1310
+ [
1311
+ n.value === "iconify" ? (I(), $(se(Se), {
1312
+ key: 0,
1313
+ icon: i.name
1314
+ }, null, 8, ["icon"])) : n.value === "svg" ? (I(), j("svg", Kt, [
1315
+ V("use", {
1316
+ "xlink:href": `#${i.name}`
1317
+ }, null, 8, Gt)
1318
+ ])) : n.value === "img" ? (I(), j("img", {
1319
+ key: 2,
1320
+ src: i.name,
1321
+ class: "basicHeight basicWidth"
1322
+ }, null, 8, Jt)) : ce("v-if", !0)
1323
+ ],
1324
+ 16
1325
+ /* FULL_PROPS */
1326
+ )
1327
+ ]),
1328
+ _: 1
1329
+ /* STABLE */
1330
+ }, 8, ["effect", "content"]));
1331
+ };
1332
+ }
1333
+ });
1334
+ const Yt = (e, t) => {
1335
+ const n = e.__vccOpts || e;
1336
+ for (const [r, o] of t)
1337
+ n[r] = o;
1338
+ return n;
1339
+ }, Zt = /* @__PURE__ */ Yt(Xt, [["__scopeId", "data-v-1957ff53"]]), tn = qe(Zt);
1340
+ export {
1341
+ tn as IkSvgIcon,
1342
+ tn as default
1343
+ };