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.
- package/dist/Demo/index.es.js +13 -0
- package/dist/Demo/index.umd.js +1 -0
- package/dist/Demo/package.json +7 -0
- package/dist/IKApprovalProcess/index.es.js +13026 -0
- package/dist/IKApprovalProcess/index.umd.js +32 -0
- package/dist/IKApprovalProcess/package.json +7 -0
- package/dist/IKApprovalProcess/style.css +7 -0
- package/dist/IKApprovalProcessDetail/index.es.js +630 -0
- package/dist/IKApprovalProcessDetail/index.umd.js +1 -0
- package/dist/IKApprovalProcessDetail/package.json +7 -0
- package/dist/IKApprovalProcessDetail/style.css +1 -0
- package/dist/IKCalendar/index.es.js +22495 -0
- package/dist/IKCalendar/index.umd.js +32 -0
- package/dist/IKCalendar/package.json +7 -0
- package/dist/IKCalendar/style.css +7 -0
- package/dist/IKDescription/index.es.js +105 -0
- package/dist/IKDescription/index.umd.js +1 -0
- package/dist/IKDescription/style.css +1 -0
- package/dist/IKDetailPreviewFiles/index.es.js +1599 -0
- package/dist/IKDetailPreviewFiles/index.umd.js +1 -0
- package/dist/IKDetailPreviewFiles/style.css +1 -0
- package/dist/IKExpandCollapse/index.es.js +1388 -0
- package/dist/IKExpandCollapse/index.umd.js +1 -0
- package/dist/IKExpandCollapse/style.css +1 -0
- package/dist/IKHorizontalStepBar/index.es.js +251 -0
- package/dist/IKHorizontalStepBar/index.umd.js +1 -0
- package/dist/IKHorizontalStepBar/package.json +7 -0
- package/dist/IKHorizontalStepBar/style.css +1 -0
- package/dist/IKPreviewFile/index.es.js +108 -0
- package/dist/IKPreviewFile/index.umd.js +1 -0
- package/dist/IKPreviewFile/style.css +1 -0
- package/dist/IKSearch/index.es.js +13406 -0
- package/dist/IKSearch/index.umd.js +57 -0
- package/dist/IKSearch/package.json +7 -0
- package/dist/IKSearch/style.css +7 -0
- package/dist/IKSearchHead/index.es.js +116 -0
- package/dist/IKSearchHead/index.umd.js +1 -0
- package/dist/IKSearchHead/package.json +7 -0
- package/dist/IKSearchHead/style.css +1 -0
- package/dist/IKVerticalStepBar/index.es.js +1481 -0
- package/dist/IKVerticalStepBar/index.umd.js +9 -0
- package/dist/IKVerticalStepBar/package.json +7 -0
- package/dist/IKVerticalStepBar/style.css +1 -0
- package/dist/IkBottomOperate/index.es.js +210 -0
- package/dist/IkBottomOperate/index.umd.js +1 -0
- package/dist/IkBottomOperate/style.css +1 -0
- package/dist/IkBtnContent/index.es.js +101 -0
- package/dist/IkBtnContent/index.umd.js +1 -0
- package/dist/IkBtnContent/style.css +1 -0
- package/dist/IkBtnSetting/index.es.js +12854 -0
- package/dist/IkBtnSetting/index.umd.js +32 -0
- package/dist/IkBtnSetting/style.css +7 -0
- package/dist/IkDragList/index.es.js +11071 -0
- package/dist/IkDragList/index.umd.js +32 -0
- package/dist/IkDragList/style.css +7 -0
- package/dist/IkFullCalendar/index.es.js +20327 -0
- package/dist/IkFullCalendar/index.umd.js +32 -0
- package/dist/IkFullCalendar/style.css +7 -0
- package/dist/IkIconPicker/index.es.js +13693 -0
- package/dist/IkIconPicker/index.umd.js +32 -0
- package/dist/IkIconPicker/style.css +7 -0
- package/dist/IkOnlyOffice/index.es.js +393 -0
- package/dist/IkOnlyOffice/index.umd.js +1 -0
- package/dist/IkOnlyOffice/style.css +0 -0
- package/dist/IkPageFull/index.es.js +15725 -0
- package/dist/IkPageFull/index.umd.js +48 -0
- package/dist/IkPageFull/style.css +7 -0
- package/dist/IkPageTabs/index.es.js +135 -0
- package/dist/IkPageTabs/index.umd.js +1 -0
- package/dist/IkPageTabs/style.css +1 -0
- package/dist/IkPicker/index.es.js +12629 -0
- package/dist/IkPicker/index.umd.js +32 -0
- package/dist/IkPicker/style.css +7 -0
- package/dist/IkPickerUser/index.es.js +12508 -0
- package/dist/IkPickerUser/index.umd.js +32 -0
- package/dist/IkPickerUser/style.css +7 -0
- package/dist/IkPrintConfig/index.es.js +62 -0
- package/dist/IkPrintConfig/index.umd.js +1 -0
- package/dist/IkPrintView/index.es.js +79 -0
- package/dist/IkPrintView/index.umd.js +1 -0
- package/dist/IkRadioGroup/index.es.js +75 -0
- package/dist/IkRadioGroup/index.umd.js +1 -0
- package/dist/IkRadioGroup/style.css +1 -0
- package/dist/IkSchedule/index.es.js +22228 -0
- package/dist/IkSchedule/index.umd.js +32 -0
- package/dist/IkSchedule/style.css +7 -0
- package/dist/IkStatu/index.es.js +119 -0
- package/dist/IkStatu/index.umd.js +1 -0
- package/dist/IkStatu/style.css +1 -0
- package/dist/IkSvgIcon/index.es.js +1343 -0
- package/dist/IkSvgIcon/index.umd.js +1 -0
- package/dist/IkSvgIcon/style.css +1 -0
- package/dist/IkTemplateOfficeConfig/index.es.js +805 -0
- package/dist/IkTemplateOfficeConfig/index.umd.js +1 -0
- package/dist/IkTemplateOfficeConfig/style.css +1 -0
- package/dist/IkTooltip/index.es.js +49 -0
- package/dist/IkTooltip/index.umd.js +1 -0
- package/dist/IkUploadFile/index.es.js +12098 -0
- package/dist/IkUploadFile/index.umd.js +32 -0
- package/dist/IkUploadFile/style.css +7 -0
- package/dist/IkUploadImage/index.es.js +11442 -0
- package/dist/IkUploadImage/index.umd.js +32 -0
- package/dist/IkUploadImage/style.css +7 -0
- package/dist/index.es.js +33843 -0
- package/dist/index.umd.js +81 -0
- package/dist/style.css +7 -0
- package/package.json +66 -0
|
@@ -0,0 +1,1599 @@
|
|
|
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;
|
|
16
|
+
};
|
|
17
|
+
const at = typeof btoa == "function", ce = typeof Buffer == "function";
|
|
18
|
+
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);
|
|
25
|
+
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)
|
|
31
|
+
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);
|
|
44
|
+
} 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);
|
|
47
|
+
}
|
|
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
|
+
__name: "IKPreviewFile",
|
|
50
|
+
props: {
|
|
51
|
+
modelValue: {
|
|
52
|
+
type: Boolean,
|
|
53
|
+
default: !1
|
|
54
|
+
},
|
|
55
|
+
// KKfile服务地址
|
|
56
|
+
kkUrl: {
|
|
57
|
+
required: !0,
|
|
58
|
+
type: String,
|
|
59
|
+
default: ""
|
|
60
|
+
},
|
|
61
|
+
// 文件地址 http://192.168.2.171/api/server/oss/download?fileUrl=
|
|
62
|
+
url: {
|
|
63
|
+
required: !0,
|
|
64
|
+
type: String,
|
|
65
|
+
default: ""
|
|
66
|
+
},
|
|
67
|
+
// url为文件全路径(以http开头)时,不需要传递
|
|
68
|
+
loadUrl: {
|
|
69
|
+
type: String,
|
|
70
|
+
default: ""
|
|
71
|
+
},
|
|
72
|
+
// 当预览的文件是通过请求id等获取时,需要指定文件名
|
|
73
|
+
fileName: {
|
|
74
|
+
type: String,
|
|
75
|
+
default: ""
|
|
76
|
+
}
|
|
77
|
+
},
|
|
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), {
|
|
85
|
+
fullscreen: "",
|
|
86
|
+
modelValue: o.value,
|
|
87
|
+
"onUpdate:modelValue": s[0] || (s[0] = (c) => o.value = c),
|
|
88
|
+
"destroy-on-close": "",
|
|
89
|
+
"append-to-body": "",
|
|
90
|
+
"modal-class": "ik-file-preview-modal",
|
|
91
|
+
onClose: s[1] || (s[1] = (c) => i.$emit("update:modelValue", !1)),
|
|
92
|
+
class: "ik-file-preview"
|
|
93
|
+
}, {
|
|
94
|
+
default: ze(() => [
|
|
95
|
+
S("iframe", {
|
|
96
|
+
ref_key: "freamRef",
|
|
97
|
+
ref: n,
|
|
98
|
+
"cross-origin": "",
|
|
99
|
+
src: r.value,
|
|
100
|
+
frameborder: "0",
|
|
101
|
+
allowfullscreen: "",
|
|
102
|
+
seamless: ""
|
|
103
|
+
}, null, 8, vt)
|
|
104
|
+
]),
|
|
105
|
+
_: 1
|
|
106
|
+
/* STABLE */
|
|
107
|
+
}, 8, ["modelValue"]));
|
|
108
|
+
}
|
|
109
|
+
});
|
|
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 = {
|
|
1307
|
+
key: 1,
|
|
1308
|
+
class: "basicHeight basicWidth",
|
|
1309
|
+
"aria-hidden": "true"
|
|
1310
|
+
}, In = ["xlink:href"], kn = ["src"], Sn = {
|
|
1311
|
+
key: 1,
|
|
1312
|
+
class: "basicHeight basicWidth",
|
|
1313
|
+
"aria-hidden": "true"
|
|
1314
|
+
}, _n = ["xlink:href"], Cn = ["src"], Fn = /* @__PURE__ */ W({
|
|
1315
|
+
name: "IkSvgIcon",
|
|
1316
|
+
__name: "index",
|
|
1317
|
+
props: {
|
|
1318
|
+
name: {},
|
|
1319
|
+
flip: {},
|
|
1320
|
+
rotate: {},
|
|
1321
|
+
color: {},
|
|
1322
|
+
size: { default: "" },
|
|
1323
|
+
bg: { type: Boolean, default: !1 },
|
|
1324
|
+
showBg: { type: Boolean, default: !1 },
|
|
1325
|
+
padding: { default: "0" },
|
|
1326
|
+
warning: { type: Boolean },
|
|
1327
|
+
notip: { type: Boolean, default: !1 },
|
|
1328
|
+
title: {}
|
|
1329
|
+
},
|
|
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) {
|
|
1338
|
+
case "horizontal":
|
|
1339
|
+
i.push("rotateY(180deg)");
|
|
1340
|
+
break;
|
|
1341
|
+
case "vertical":
|
|
1342
|
+
i.push("rotateX(180deg)");
|
|
1343
|
+
break;
|
|
1344
|
+
case "both":
|
|
1345
|
+
i.push("rotateX(180deg)"), i.push("rotateY(180deg)");
|
|
1346
|
+
break;
|
|
1347
|
+
}
|
|
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
|
|
1355
|
+
};
|
|
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), {
|
|
1377
|
+
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), {
|
|
1412
|
+
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"]));
|
|
1431
|
+
};
|
|
1432
|
+
}
|
|
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 = {
|
|
1435
|
+
key: 0,
|
|
1436
|
+
class: "preview-files"
|
|
1437
|
+
}, En = {
|
|
1438
|
+
class: "flex",
|
|
1439
|
+
style: { width: "80%", "align-items": "center" }
|
|
1440
|
+
}, An = ["onClick"], Ln = ["title"], $n = { style: { color: "#b8c6d9" } }, Mn = ["onClick"], On = /* @__PURE__ */ Pn(() => /* @__PURE__ */ S(
|
|
1441
|
+
"span",
|
|
1442
|
+
null,
|
|
1443
|
+
"预览",
|
|
1444
|
+
-1
|
|
1445
|
+
/* HOISTED */
|
|
1446
|
+
)), Dn = {
|
|
1447
|
+
key: 1,
|
|
1448
|
+
class: "flex preview-img"
|
|
1449
|
+
}, zn = /* @__PURE__ */ W({
|
|
1450
|
+
__name: "IKDetailPreviewFiles",
|
|
1451
|
+
props: {
|
|
1452
|
+
// 文件列表 [{originName:'',path:'',fileSize:''}] //文件大小
|
|
1453
|
+
fileList: {
|
|
1454
|
+
type: Array,
|
|
1455
|
+
default: () => []
|
|
1456
|
+
},
|
|
1457
|
+
// 文件类型 (文件--file 还是图片---img)
|
|
1458
|
+
fileType: {
|
|
1459
|
+
type: String,
|
|
1460
|
+
default: "file"
|
|
1461
|
+
},
|
|
1462
|
+
fileWidth: {
|
|
1463
|
+
type: String,
|
|
1464
|
+
default: "100%"
|
|
1465
|
+
},
|
|
1466
|
+
// url为文件全路径(以http开头)时,不需要传递
|
|
1467
|
+
loadUrl: {
|
|
1468
|
+
type: String,
|
|
1469
|
+
default: ""
|
|
1470
|
+
},
|
|
1471
|
+
// kkFile的地址 预览地址
|
|
1472
|
+
previewUrl: {
|
|
1473
|
+
required: !0,
|
|
1474
|
+
type: String,
|
|
1475
|
+
default: ""
|
|
1476
|
+
},
|
|
1477
|
+
// 文件服务器下载地址
|
|
1478
|
+
urlPreview: {
|
|
1479
|
+
type: String,
|
|
1480
|
+
default: `"${window.location.origin}/server/oss/download?fileUrl="`
|
|
1481
|
+
}
|
|
1482
|
+
},
|
|
1483
|
+
setup(e) {
|
|
1484
|
+
const t = e, n = A(t.fileList);
|
|
1485
|
+
De(
|
|
1486
|
+
() => t.fileList,
|
|
1487
|
+
(l) => {
|
|
1488
|
+
l && (n.value = l);
|
|
1489
|
+
},
|
|
1490
|
+
{ immediate: !0 }
|
|
1491
|
+
);
|
|
1492
|
+
const r = A(!1), o = A({}), i = (l) => {
|
|
1493
|
+
o.value = {
|
|
1494
|
+
id: l.ossFileId || l.url,
|
|
1495
|
+
name: `${l.id}.${l.suffix}`
|
|
1496
|
+
// 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) => {
|
|
1505
|
+
const f = document.createElement("a");
|
|
1506
|
+
f.href = loadUrl + l.ossFileId, f.download = l.originName, f.click();
|
|
1507
|
+
};
|
|
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,
|
|
1515
|
+
null,
|
|
1516
|
+
ye(n.value, (d, h) => (v(), I(
|
|
1517
|
+
"div",
|
|
1518
|
+
{
|
|
1519
|
+
key: h,
|
|
1520
|
+
class: "files-item",
|
|
1521
|
+
style: Z({
|
|
1522
|
+
width: t.fileWidth,
|
|
1523
|
+
"margin-right": t.fileWidth === "100%" ? "0px" : ""
|
|
1524
|
+
})
|
|
1525
|
+
},
|
|
1526
|
+
[
|
|
1527
|
+
S("div", En, [
|
|
1528
|
+
D(T(Oe), {
|
|
1529
|
+
name: s(d),
|
|
1530
|
+
style: Z(`color:${c(d)}`),
|
|
1531
|
+
size: 36
|
|
1532
|
+
}, null, 8, ["name", "style"]),
|
|
1533
|
+
S("div", {
|
|
1534
|
+
class: "file-name",
|
|
1535
|
+
onClick: (g) => a(d)
|
|
1536
|
+
}, [
|
|
1537
|
+
S("p", {
|
|
1538
|
+
title: d.originName
|
|
1539
|
+
}, ve(d.originName), 9, Ln),
|
|
1540
|
+
S(
|
|
1541
|
+
"p",
|
|
1542
|
+
$n,
|
|
1543
|
+
ve((d.fileSize / 1024).toFixed(2)) + "KB",
|
|
1544
|
+
1
|
|
1545
|
+
/* TEXT */
|
|
1546
|
+
)
|
|
1547
|
+
], 8, An)
|
|
1548
|
+
]),
|
|
1549
|
+
S("div", {
|
|
1550
|
+
class: "file-preview",
|
|
1551
|
+
onClick: (g) => i(d)
|
|
1552
|
+
}, [
|
|
1553
|
+
D(T(Oe), { name: "iksvg_yulan" }),
|
|
1554
|
+
On
|
|
1555
|
+
], 8, Mn)
|
|
1556
|
+
],
|
|
1557
|
+
4
|
|
1558
|
+
/* STYLE */
|
|
1559
|
+
))),
|
|
1560
|
+
128
|
|
1561
|
+
/* KEYED_FRAGMENT */
|
|
1562
|
+
))
|
|
1563
|
+
])) : H("v-if", !0),
|
|
1564
|
+
t.fileType === "img" ? (v(), I("div", Dn, [
|
|
1565
|
+
(v(!0), I(
|
|
1566
|
+
me,
|
|
1567
|
+
null,
|
|
1568
|
+
ye(n.value, (d, h) => (v(), I("div", {
|
|
1569
|
+
key: h,
|
|
1570
|
+
class: "preview-img"
|
|
1571
|
+
}, [
|
|
1572
|
+
D(u, {
|
|
1573
|
+
class: "show-img",
|
|
1574
|
+
src: e.loadUrl + d.url,
|
|
1575
|
+
"preview-src-list": [e.loadUrl + d.url],
|
|
1576
|
+
fit: "cover"
|
|
1577
|
+
}, null, 8, ["src", "preview-src-list"])
|
|
1578
|
+
]))),
|
|
1579
|
+
128
|
|
1580
|
+
/* KEYED_FRAGMENT */
|
|
1581
|
+
))
|
|
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
|
|
1590
|
+
}, null, 8, ["modelValue", "load-url", "url", "kk-url", "file-name"])
|
|
1591
|
+
]);
|
|
1592
|
+
};
|
|
1593
|
+
}
|
|
1594
|
+
});
|
|
1595
|
+
const Bn = /* @__PURE__ */ Ue(zn, [["__scopeId", "data-v-bbc42bc9"]]), Vn = le(Bn);
|
|
1596
|
+
export {
|
|
1597
|
+
Vn as IKDetailPreviewFiles,
|
|
1598
|
+
Vn as default
|
|
1599
|
+
};
|