vuetable-next 1.0.10 → 1.0.11
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/LICENSE +20 -20
- package/README.md +365 -39
- package/dist/index.js +20 -0
- package/dist/portable/components/useVuetableField.d.ts +28 -0
- package/dist/portable/components/useVuetableFieldCheckbox.d.ts +19 -0
- package/dist/portable/components/useVuetablePagination.d.ts +34 -0
- package/dist/portable/components/useVuetablePaginationInfo.d.ts +25 -0
- package/dist/portable/helpers/toValue.d.ts +4 -0
- package/dist/portable/reactivity.d.ts +7 -0
- package/dist/public.d.ts +118 -0
- package/dist/selector.cjs +1 -0
- package/dist/style.css +3 -1
- package/dist/types/components/Vuetable.vue.d.ts +1266 -0
- package/dist/types/components/VuetableColGroup.vue.d.ts +33 -0
- package/dist/types/components/VuetableColGutter.vue.d.ts +5 -0
- package/dist/types/components/VuetableContext.d.ts +21 -0
- package/dist/types/components/VuetableCssSemanticUI.d.ts +35 -0
- package/dist/types/components/VuetableDetailHost.vue.d.ts +44 -0
- package/dist/types/components/VuetableFieldCheckbox.vue.d.ts +64 -0
- package/dist/types/components/VuetableFieldCheckboxMixin.vue.d.ts +66 -0
- package/dist/types/components/VuetableFieldHandle.vue.d.ts +31 -0
- package/dist/types/components/VuetableFieldMixin.vue.d.ts +53 -0
- package/dist/types/components/VuetableFieldSequence.vue.d.ts +42 -0
- package/dist/types/components/VuetablePagination.vue.d.ts +69 -0
- package/dist/types/components/VuetablePaginationDropdown.vue.d.ts +82 -0
- package/dist/types/components/VuetablePaginationInfo.vue.d.ts +44 -0
- package/dist/types/components/VuetablePaginationInfoMixin.vue.d.ts +47 -0
- package/dist/types/components/VuetablePaginationMixin.vue.d.ts +57 -0
- package/dist/types/components/VuetableRowHeader.vue.d.ts +182 -0
- package/dist/types/components/useVuetableField.d.ts +28 -0
- package/dist/types/components/useVuetableFieldCheckbox.d.ts +19 -0
- package/dist/types/components/useVuetablePagination.d.ts +34 -0
- package/dist/types/components/useVuetablePaginationInfo.d.ts +25 -0
- package/dist/types/helpers/toValue.d.ts +4 -0
- package/dist/types/index.d.ts +28 -0
- package/dist/vue2.cjs +18 -0
- package/dist/vue2.cjs.map +1 -0
- package/dist/vue2.js +1576 -0
- package/dist/vue2.js.map +1 -0
- package/dist/vue3.cjs +6 -0
- package/dist/vue3.cjs.map +1 -0
- package/dist/vue3.js +1723 -0
- package/dist/vue3.js.map +1 -0
- package/package.json +117 -87
- package/style.css +3 -0
- package/vue2.js +2 -0
- package/vue3.js +2 -0
- package/auto-imports.d.ts +0 -9
- package/dist/vuetable-next.d.ts +0 -728
- package/dist/vuetable-next.js +0 -3324
- package/dist/vuetable-next.js.map +0 -1
- package/dist/vuetable-next.umd.cjs +0 -11
- package/dist/vuetable-next.umd.cjs.map +0 -1
- package/src/assets/vue.svg +0 -1
- package/src/components/Demo.vue +0 -17
- package/src/components/Vuetable.vue +0 -1216
- package/src/components/VuetableColGroup.vue +0 -66
- package/src/components/VuetableColGutter.vue +0 -25
- package/src/components/VuetableCssSemanticUI.ts +0 -36
- package/src/components/VuetableFieldCheckbox.vue +0 -87
- package/src/components/VuetableFieldCheckboxMixin.vue +0 -46
- package/src/components/VuetableFieldHandle.vue +0 -41
- package/src/components/VuetableFieldMixin.vue +0 -30
- package/src/components/VuetableFieldSequence.vue +0 -43
- package/src/components/VuetablePagination.vue +0 -119
- package/src/components/VuetablePaginationDropdown.vue +0 -88
- package/src/components/VuetablePaginationInfo.vue +0 -51
- package/src/components/VuetablePaginationInfoMixin.vue +0 -64
- package/src/components/VuetablePaginationMixin.vue +0 -107
- package/src/components/VuetableRowHeader.vue +0 -195
- package/src/components/useVuetablePagination.ts +0 -57
- package/src/components/useVuetablePaginationInfo.ts +0 -41
- package/src/data/fields.ts +0 -102
- package/src/data/lang.ts +0 -4
- package/src/helpers/toValue.ts +0 -9
- package/src/index.ts +0 -57
- package/src/main.ts +0 -398
- package/src/style.css +0 -79
- package/src/vite-env.d.ts +0 -1
package/dist/vuetable-next.js
DELETED
|
@@ -1,3324 +0,0 @@
|
|
|
1
|
-
import { defineComponent as X, openBlock as S, createElementBlock as E, createElementVNode as H, normalizeStyle as G, unref as b, Fragment as $, renderList as W, createBlock as oe, resolveDynamicComponent as be, normalizeClass as F, createCommentVNode as _, useSlots as Cr, createVNode as Ut, renderSlot as Oe, Transition as Er, withCtx as Rr, withDirectives as kr, vShow as Tr, toDisplayString as qt } from "vue";
|
|
2
|
-
import { inject as ue, ref as j, getCurrentInstance as Or, reactive as dt, computed as L, nextTick as xe, onMounted as xr, onUnmounted as Ar, provide as Fr, unref as I, toRefs as Dr, watch as ee, toRef as De, defineComponent as Ne } from "vue-demi";
|
|
3
|
-
function on(e, t) {
|
|
4
|
-
return function() {
|
|
5
|
-
return e.apply(t, arguments);
|
|
6
|
-
};
|
|
7
|
-
}
|
|
8
|
-
const { toString: Br } = Object.prototype, { getPrototypeOf: ht } = Object, He = /* @__PURE__ */ ((e) => (t) => {
|
|
9
|
-
const n = Br.call(t);
|
|
10
|
-
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
11
|
-
})(/* @__PURE__ */ Object.create(null)), J = (e) => (e = e.toLowerCase(), (t) => He(t) === e), $e = (e) => (t) => typeof t === e, { isArray: ce } = Array, ge = $e("undefined");
|
|
12
|
-
function Lr(e) {
|
|
13
|
-
return e !== null && !ge(e) && e.constructor !== null && !ge(e.constructor) && V(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
14
|
-
}
|
|
15
|
-
const an = J("ArrayBuffer");
|
|
16
|
-
function Nr(e) {
|
|
17
|
-
let t;
|
|
18
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && an(e.buffer), t;
|
|
19
|
-
}
|
|
20
|
-
const Hr = $e("string"), V = $e("function"), sn = $e("number"), je = (e) => e !== null && typeof e == "object", $r = (e) => e === !0 || e === !1, Ae = (e) => {
|
|
21
|
-
if (He(e) !== "object")
|
|
22
|
-
return !1;
|
|
23
|
-
const t = ht(e);
|
|
24
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
25
|
-
}, jr = J("Date"), Mr = J("File"), Ir = J("Blob"), Ur = J("FileList"), qr = (e) => je(e) && V(e.pipe), Vr = (e) => {
|
|
26
|
-
let t;
|
|
27
|
-
return e && (typeof FormData == "function" && e instanceof FormData || V(e.append) && ((t = He(e)) === "formdata" || // detect form-data instance
|
|
28
|
-
t === "object" && V(e.toString) && e.toString() === "[object FormData]"));
|
|
29
|
-
}, zr = J("URLSearchParams"), [_r, Wr, Jr, Kr] = ["ReadableStream", "Request", "Response", "Headers"].map(J), Gr = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
30
|
-
function we(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
31
|
-
if (e === null || typeof e > "u")
|
|
32
|
-
return;
|
|
33
|
-
let r, o;
|
|
34
|
-
if (typeof e != "object" && (e = [e]), ce(e))
|
|
35
|
-
for (r = 0, o = e.length; r < o; r++)
|
|
36
|
-
t.call(null, e[r], r, e);
|
|
37
|
-
else {
|
|
38
|
-
const s = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = s.length;
|
|
39
|
-
let l;
|
|
40
|
-
for (r = 0; r < i; r++)
|
|
41
|
-
l = s[r], t.call(null, e[l], l, e);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
function ln(e, t) {
|
|
45
|
-
t = t.toLowerCase();
|
|
46
|
-
const n = Object.keys(e);
|
|
47
|
-
let r = n.length, o;
|
|
48
|
-
for (; r-- > 0; )
|
|
49
|
-
if (o = n[r], t === o.toLowerCase())
|
|
50
|
-
return o;
|
|
51
|
-
return null;
|
|
52
|
-
}
|
|
53
|
-
const ae = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, un = (e) => !ge(e) && e !== ae;
|
|
54
|
-
function rt() {
|
|
55
|
-
const { caseless: e } = un(this) && this || {}, t = {}, n = (r, o) => {
|
|
56
|
-
const s = e && ln(t, o) || o;
|
|
57
|
-
Ae(t[s]) && Ae(r) ? t[s] = rt(t[s], r) : Ae(r) ? t[s] = rt({}, r) : ce(r) ? t[s] = r.slice() : t[s] = r;
|
|
58
|
-
};
|
|
59
|
-
for (let r = 0, o = arguments.length; r < o; r++)
|
|
60
|
-
arguments[r] && we(arguments[r], n);
|
|
61
|
-
return t;
|
|
62
|
-
}
|
|
63
|
-
const Xr = (e, t, n, { allOwnKeys: r } = {}) => (we(t, (o, s) => {
|
|
64
|
-
n && V(o) ? e[s] = on(o, n) : e[s] = o;
|
|
65
|
-
}, { allOwnKeys: r }), e), Qr = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Zr = (e, t, n, r) => {
|
|
66
|
-
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
67
|
-
value: t.prototype
|
|
68
|
-
}), n && Object.assign(e.prototype, n);
|
|
69
|
-
}, Yr = (e, t, n, r) => {
|
|
70
|
-
let o, s, i;
|
|
71
|
-
const l = {};
|
|
72
|
-
if (t = t || {}, e == null) return t;
|
|
73
|
-
do {
|
|
74
|
-
for (o = Object.getOwnPropertyNames(e), s = o.length; s-- > 0; )
|
|
75
|
-
i = o[s], (!r || r(i, e, t)) && !l[i] && (t[i] = e[i], l[i] = !0);
|
|
76
|
-
e = n !== !1 && ht(e);
|
|
77
|
-
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
78
|
-
return t;
|
|
79
|
-
}, eo = (e, t, n) => {
|
|
80
|
-
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
81
|
-
const r = e.indexOf(t, n);
|
|
82
|
-
return r !== -1 && r === n;
|
|
83
|
-
}, to = (e) => {
|
|
84
|
-
if (!e) return null;
|
|
85
|
-
if (ce(e)) return e;
|
|
86
|
-
let t = e.length;
|
|
87
|
-
if (!sn(t)) return null;
|
|
88
|
-
const n = new Array(t);
|
|
89
|
-
for (; t-- > 0; )
|
|
90
|
-
n[t] = e[t];
|
|
91
|
-
return n;
|
|
92
|
-
}, no = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && ht(Uint8Array)), ro = (e, t) => {
|
|
93
|
-
const r = (e && e[Symbol.iterator]).call(e);
|
|
94
|
-
let o;
|
|
95
|
-
for (; (o = r.next()) && !o.done; ) {
|
|
96
|
-
const s = o.value;
|
|
97
|
-
t.call(e, s[0], s[1]);
|
|
98
|
-
}
|
|
99
|
-
}, oo = (e, t) => {
|
|
100
|
-
let n;
|
|
101
|
-
const r = [];
|
|
102
|
-
for (; (n = e.exec(t)) !== null; )
|
|
103
|
-
r.push(n);
|
|
104
|
-
return r;
|
|
105
|
-
}, ao = J("HTMLFormElement"), so = (e) => e.toLowerCase().replace(
|
|
106
|
-
/[-_\s]([a-z\d])(\w*)/g,
|
|
107
|
-
function(n, r, o) {
|
|
108
|
-
return r.toUpperCase() + o;
|
|
109
|
-
}
|
|
110
|
-
), Vt = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), io = J("RegExp"), cn = (e, t) => {
|
|
111
|
-
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
112
|
-
we(n, (o, s) => {
|
|
113
|
-
let i;
|
|
114
|
-
(i = t(o, s, e)) !== !1 && (r[s] = i || o);
|
|
115
|
-
}), Object.defineProperties(e, r);
|
|
116
|
-
}, lo = (e) => {
|
|
117
|
-
cn(e, (t, n) => {
|
|
118
|
-
if (V(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
119
|
-
return !1;
|
|
120
|
-
const r = e[n];
|
|
121
|
-
if (V(r)) {
|
|
122
|
-
if (t.enumerable = !1, "writable" in t) {
|
|
123
|
-
t.writable = !1;
|
|
124
|
-
return;
|
|
125
|
-
}
|
|
126
|
-
t.set || (t.set = () => {
|
|
127
|
-
throw Error("Can not rewrite read-only method '" + n + "'");
|
|
128
|
-
});
|
|
129
|
-
}
|
|
130
|
-
});
|
|
131
|
-
}, uo = (e, t) => {
|
|
132
|
-
const n = {}, r = (o) => {
|
|
133
|
-
o.forEach((s) => {
|
|
134
|
-
n[s] = !0;
|
|
135
|
-
});
|
|
136
|
-
};
|
|
137
|
-
return ce(e) ? r(e) : r(String(e).split(t)), n;
|
|
138
|
-
}, co = () => {
|
|
139
|
-
}, fo = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, Ze = "abcdefghijklmnopqrstuvwxyz", zt = "0123456789", fn = {
|
|
140
|
-
DIGIT: zt,
|
|
141
|
-
ALPHA: Ze,
|
|
142
|
-
ALPHA_DIGIT: Ze + Ze.toUpperCase() + zt
|
|
143
|
-
}, ho = (e = 16, t = fn.ALPHA_DIGIT) => {
|
|
144
|
-
let n = "";
|
|
145
|
-
const { length: r } = t;
|
|
146
|
-
for (; e--; )
|
|
147
|
-
n += t[Math.random() * r | 0];
|
|
148
|
-
return n;
|
|
149
|
-
};
|
|
150
|
-
function po(e) {
|
|
151
|
-
return !!(e && V(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
|
|
152
|
-
}
|
|
153
|
-
const mo = (e) => {
|
|
154
|
-
const t = new Array(10), n = (r, o) => {
|
|
155
|
-
if (je(r)) {
|
|
156
|
-
if (t.indexOf(r) >= 0)
|
|
157
|
-
return;
|
|
158
|
-
if (!("toJSON" in r)) {
|
|
159
|
-
t[o] = r;
|
|
160
|
-
const s = ce(r) ? [] : {};
|
|
161
|
-
return we(r, (i, l) => {
|
|
162
|
-
const f = n(i, o + 1);
|
|
163
|
-
!ge(f) && (s[l] = f);
|
|
164
|
-
}), t[o] = void 0, s;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
return r;
|
|
168
|
-
};
|
|
169
|
-
return n(e, 0);
|
|
170
|
-
}, bo = J("AsyncFunction"), go = (e) => e && (je(e) || V(e)) && V(e.then) && V(e.catch), dn = ((e, t) => e ? setImmediate : t ? ((n, r) => (ae.addEventListener("message", ({ source: o, data: s }) => {
|
|
171
|
-
o === ae && s === n && r.length && r.shift()();
|
|
172
|
-
}, !1), (o) => {
|
|
173
|
-
r.push(o), ae.postMessage(n, "*");
|
|
174
|
-
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
175
|
-
typeof setImmediate == "function",
|
|
176
|
-
V(ae.postMessage)
|
|
177
|
-
), yo = typeof queueMicrotask < "u" ? queueMicrotask.bind(ae) : typeof process < "u" && process.nextTick || dn, u = {
|
|
178
|
-
isArray: ce,
|
|
179
|
-
isArrayBuffer: an,
|
|
180
|
-
isBuffer: Lr,
|
|
181
|
-
isFormData: Vr,
|
|
182
|
-
isArrayBufferView: Nr,
|
|
183
|
-
isString: Hr,
|
|
184
|
-
isNumber: sn,
|
|
185
|
-
isBoolean: $r,
|
|
186
|
-
isObject: je,
|
|
187
|
-
isPlainObject: Ae,
|
|
188
|
-
isReadableStream: _r,
|
|
189
|
-
isRequest: Wr,
|
|
190
|
-
isResponse: Jr,
|
|
191
|
-
isHeaders: Kr,
|
|
192
|
-
isUndefined: ge,
|
|
193
|
-
isDate: jr,
|
|
194
|
-
isFile: Mr,
|
|
195
|
-
isBlob: Ir,
|
|
196
|
-
isRegExp: io,
|
|
197
|
-
isFunction: V,
|
|
198
|
-
isStream: qr,
|
|
199
|
-
isURLSearchParams: zr,
|
|
200
|
-
isTypedArray: no,
|
|
201
|
-
isFileList: Ur,
|
|
202
|
-
forEach: we,
|
|
203
|
-
merge: rt,
|
|
204
|
-
extend: Xr,
|
|
205
|
-
trim: Gr,
|
|
206
|
-
stripBOM: Qr,
|
|
207
|
-
inherits: Zr,
|
|
208
|
-
toFlatObject: Yr,
|
|
209
|
-
kindOf: He,
|
|
210
|
-
kindOfTest: J,
|
|
211
|
-
endsWith: eo,
|
|
212
|
-
toArray: to,
|
|
213
|
-
forEachEntry: ro,
|
|
214
|
-
matchAll: oo,
|
|
215
|
-
isHTMLForm: ao,
|
|
216
|
-
hasOwnProperty: Vt,
|
|
217
|
-
hasOwnProp: Vt,
|
|
218
|
-
// an alias to avoid ESLint no-prototype-builtins detection
|
|
219
|
-
reduceDescriptors: cn,
|
|
220
|
-
freezeMethods: lo,
|
|
221
|
-
toObjectSet: uo,
|
|
222
|
-
toCamelCase: so,
|
|
223
|
-
noop: co,
|
|
224
|
-
toFiniteNumber: fo,
|
|
225
|
-
findKey: ln,
|
|
226
|
-
global: ae,
|
|
227
|
-
isContextDefined: un,
|
|
228
|
-
ALPHABET: fn,
|
|
229
|
-
generateString: ho,
|
|
230
|
-
isSpecCompliantForm: po,
|
|
231
|
-
toJSONObject: mo,
|
|
232
|
-
isAsyncFn: bo,
|
|
233
|
-
isThenable: go,
|
|
234
|
-
setImmediate: dn,
|
|
235
|
-
asap: yo
|
|
236
|
-
};
|
|
237
|
-
function T(e, t, n, r, o) {
|
|
238
|
-
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), o && (this.response = o, this.status = o.status ? o.status : null);
|
|
239
|
-
}
|
|
240
|
-
u.inherits(T, Error, {
|
|
241
|
-
toJSON: function() {
|
|
242
|
-
return {
|
|
243
|
-
// Standard
|
|
244
|
-
message: this.message,
|
|
245
|
-
name: this.name,
|
|
246
|
-
// Microsoft
|
|
247
|
-
description: this.description,
|
|
248
|
-
number: this.number,
|
|
249
|
-
// Mozilla
|
|
250
|
-
fileName: this.fileName,
|
|
251
|
-
lineNumber: this.lineNumber,
|
|
252
|
-
columnNumber: this.columnNumber,
|
|
253
|
-
stack: this.stack,
|
|
254
|
-
// Axios
|
|
255
|
-
config: u.toJSONObject(this.config),
|
|
256
|
-
code: this.code,
|
|
257
|
-
status: this.status
|
|
258
|
-
};
|
|
259
|
-
}
|
|
260
|
-
});
|
|
261
|
-
const hn = T.prototype, pn = {};
|
|
262
|
-
[
|
|
263
|
-
"ERR_BAD_OPTION_VALUE",
|
|
264
|
-
"ERR_BAD_OPTION",
|
|
265
|
-
"ECONNABORTED",
|
|
266
|
-
"ETIMEDOUT",
|
|
267
|
-
"ERR_NETWORK",
|
|
268
|
-
"ERR_FR_TOO_MANY_REDIRECTS",
|
|
269
|
-
"ERR_DEPRECATED",
|
|
270
|
-
"ERR_BAD_RESPONSE",
|
|
271
|
-
"ERR_BAD_REQUEST",
|
|
272
|
-
"ERR_CANCELED",
|
|
273
|
-
"ERR_NOT_SUPPORT",
|
|
274
|
-
"ERR_INVALID_URL"
|
|
275
|
-
// eslint-disable-next-line func-names
|
|
276
|
-
].forEach((e) => {
|
|
277
|
-
pn[e] = { value: e };
|
|
278
|
-
});
|
|
279
|
-
Object.defineProperties(T, pn);
|
|
280
|
-
Object.defineProperty(hn, "isAxiosError", { value: !0 });
|
|
281
|
-
T.from = (e, t, n, r, o, s) => {
|
|
282
|
-
const i = Object.create(hn);
|
|
283
|
-
return u.toFlatObject(e, i, function(f) {
|
|
284
|
-
return f !== Error.prototype;
|
|
285
|
-
}, (l) => l !== "isAxiosError"), T.call(i, e.message, t, n, r, o), i.cause = e, i.name = e.name, s && Object.assign(i, s), i;
|
|
286
|
-
};
|
|
287
|
-
const wo = null;
|
|
288
|
-
function ot(e) {
|
|
289
|
-
return u.isPlainObject(e) || u.isArray(e);
|
|
290
|
-
}
|
|
291
|
-
function mn(e) {
|
|
292
|
-
return u.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
293
|
-
}
|
|
294
|
-
function _t(e, t, n) {
|
|
295
|
-
return e ? e.concat(t).map(function(o, s) {
|
|
296
|
-
return o = mn(o), !n && s ? "[" + o + "]" : o;
|
|
297
|
-
}).join(n ? "." : "") : t;
|
|
298
|
-
}
|
|
299
|
-
function vo(e) {
|
|
300
|
-
return u.isArray(e) && !e.some(ot);
|
|
301
|
-
}
|
|
302
|
-
const Po = u.toFlatObject(u, {}, null, function(t) {
|
|
303
|
-
return /^is[A-Z]/.test(t);
|
|
304
|
-
});
|
|
305
|
-
function Me(e, t, n) {
|
|
306
|
-
if (!u.isObject(e))
|
|
307
|
-
throw new TypeError("target must be an object");
|
|
308
|
-
t = t || new FormData(), n = u.toFlatObject(n, {
|
|
309
|
-
metaTokens: !0,
|
|
310
|
-
dots: !1,
|
|
311
|
-
indexes: !1
|
|
312
|
-
}, !1, function(R, p) {
|
|
313
|
-
return !u.isUndefined(p[R]);
|
|
314
|
-
});
|
|
315
|
-
const r = n.metaTokens, o = n.visitor || d, s = n.dots, i = n.indexes, f = (n.Blob || typeof Blob < "u" && Blob) && u.isSpecCompliantForm(t);
|
|
316
|
-
if (!u.isFunction(o))
|
|
317
|
-
throw new TypeError("visitor must be a function");
|
|
318
|
-
function c(w) {
|
|
319
|
-
if (w === null) return "";
|
|
320
|
-
if (u.isDate(w))
|
|
321
|
-
return w.toISOString();
|
|
322
|
-
if (!f && u.isBlob(w))
|
|
323
|
-
throw new T("Blob is not supported. Use a Buffer instead.");
|
|
324
|
-
return u.isArrayBuffer(w) || u.isTypedArray(w) ? f && typeof Blob == "function" ? new Blob([w]) : Buffer.from(w) : w;
|
|
325
|
-
}
|
|
326
|
-
function d(w, R, p) {
|
|
327
|
-
let m = w;
|
|
328
|
-
if (w && !p && typeof w == "object") {
|
|
329
|
-
if (u.endsWith(R, "{}"))
|
|
330
|
-
R = r ? R : R.slice(0, -2), w = JSON.stringify(w);
|
|
331
|
-
else if (u.isArray(w) && vo(w) || (u.isFileList(w) || u.endsWith(R, "[]")) && (m = u.toArray(w)))
|
|
332
|
-
return R = mn(R), m.forEach(function(P, x) {
|
|
333
|
-
!(u.isUndefined(P) || P === null) && t.append(
|
|
334
|
-
// eslint-disable-next-line no-nested-ternary
|
|
335
|
-
i === !0 ? _t([R], x, s) : i === null ? R : R + "[]",
|
|
336
|
-
c(P)
|
|
337
|
-
);
|
|
338
|
-
}), !1;
|
|
339
|
-
}
|
|
340
|
-
return ot(w) ? !0 : (t.append(_t(p, R, s), c(w)), !1);
|
|
341
|
-
}
|
|
342
|
-
const g = [], O = Object.assign(Po, {
|
|
343
|
-
defaultVisitor: d,
|
|
344
|
-
convertValue: c,
|
|
345
|
-
isVisitable: ot
|
|
346
|
-
});
|
|
347
|
-
function k(w, R) {
|
|
348
|
-
if (!u.isUndefined(w)) {
|
|
349
|
-
if (g.indexOf(w) !== -1)
|
|
350
|
-
throw Error("Circular reference detected in " + R.join("."));
|
|
351
|
-
g.push(w), u.forEach(w, function(m, y) {
|
|
352
|
-
(!(u.isUndefined(m) || m === null) && o.call(
|
|
353
|
-
t,
|
|
354
|
-
m,
|
|
355
|
-
u.isString(y) ? y.trim() : y,
|
|
356
|
-
R,
|
|
357
|
-
O
|
|
358
|
-
)) === !0 && k(m, R ? R.concat(y) : [y]);
|
|
359
|
-
}), g.pop();
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
if (!u.isObject(e))
|
|
363
|
-
throw new TypeError("data must be an object");
|
|
364
|
-
return k(e), t;
|
|
365
|
-
}
|
|
366
|
-
function Wt(e) {
|
|
367
|
-
const t = {
|
|
368
|
-
"!": "%21",
|
|
369
|
-
"'": "%27",
|
|
370
|
-
"(": "%28",
|
|
371
|
-
")": "%29",
|
|
372
|
-
"~": "%7E",
|
|
373
|
-
"%20": "+",
|
|
374
|
-
"%00": "\0"
|
|
375
|
-
};
|
|
376
|
-
return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(r) {
|
|
377
|
-
return t[r];
|
|
378
|
-
});
|
|
379
|
-
}
|
|
380
|
-
function pt(e, t) {
|
|
381
|
-
this._pairs = [], e && Me(e, this, t);
|
|
382
|
-
}
|
|
383
|
-
const bn = pt.prototype;
|
|
384
|
-
bn.append = function(t, n) {
|
|
385
|
-
this._pairs.push([t, n]);
|
|
386
|
-
};
|
|
387
|
-
bn.toString = function(t) {
|
|
388
|
-
const n = t ? function(r) {
|
|
389
|
-
return t.call(this, r, Wt);
|
|
390
|
-
} : Wt;
|
|
391
|
-
return this._pairs.map(function(o) {
|
|
392
|
-
return n(o[0]) + "=" + n(o[1]);
|
|
393
|
-
}, "").join("&");
|
|
394
|
-
};
|
|
395
|
-
function So(e) {
|
|
396
|
-
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
397
|
-
}
|
|
398
|
-
function gn(e, t, n) {
|
|
399
|
-
if (!t)
|
|
400
|
-
return e;
|
|
401
|
-
const r = n && n.encode || So, o = n && n.serialize;
|
|
402
|
-
let s;
|
|
403
|
-
if (o ? s = o(t, n) : s = u.isURLSearchParams(t) ? t.toString() : new pt(t, n).toString(r), s) {
|
|
404
|
-
const i = e.indexOf("#");
|
|
405
|
-
i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + s;
|
|
406
|
-
}
|
|
407
|
-
return e;
|
|
408
|
-
}
|
|
409
|
-
class Jt {
|
|
410
|
-
constructor() {
|
|
411
|
-
this.handlers = [];
|
|
412
|
-
}
|
|
413
|
-
/**
|
|
414
|
-
* Add a new interceptor to the stack
|
|
415
|
-
*
|
|
416
|
-
* @param {Function} fulfilled The function to handle `then` for a `Promise`
|
|
417
|
-
* @param {Function} rejected The function to handle `reject` for a `Promise`
|
|
418
|
-
*
|
|
419
|
-
* @return {Number} An ID used to remove interceptor later
|
|
420
|
-
*/
|
|
421
|
-
use(t, n, r) {
|
|
422
|
-
return this.handlers.push({
|
|
423
|
-
fulfilled: t,
|
|
424
|
-
rejected: n,
|
|
425
|
-
synchronous: r ? r.synchronous : !1,
|
|
426
|
-
runWhen: r ? r.runWhen : null
|
|
427
|
-
}), this.handlers.length - 1;
|
|
428
|
-
}
|
|
429
|
-
/**
|
|
430
|
-
* Remove an interceptor from the stack
|
|
431
|
-
*
|
|
432
|
-
* @param {Number} id The ID that was returned by `use`
|
|
433
|
-
*
|
|
434
|
-
* @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
|
|
435
|
-
*/
|
|
436
|
-
eject(t) {
|
|
437
|
-
this.handlers[t] && (this.handlers[t] = null);
|
|
438
|
-
}
|
|
439
|
-
/**
|
|
440
|
-
* Clear all interceptors from the stack
|
|
441
|
-
*
|
|
442
|
-
* @returns {void}
|
|
443
|
-
*/
|
|
444
|
-
clear() {
|
|
445
|
-
this.handlers && (this.handlers = []);
|
|
446
|
-
}
|
|
447
|
-
/**
|
|
448
|
-
* Iterate over all the registered interceptors
|
|
449
|
-
*
|
|
450
|
-
* This method is particularly useful for skipping over any
|
|
451
|
-
* interceptors that may have become `null` calling `eject`.
|
|
452
|
-
*
|
|
453
|
-
* @param {Function} fn The function to call for each interceptor
|
|
454
|
-
*
|
|
455
|
-
* @returns {void}
|
|
456
|
-
*/
|
|
457
|
-
forEach(t) {
|
|
458
|
-
u.forEach(this.handlers, function(r) {
|
|
459
|
-
r !== null && t(r);
|
|
460
|
-
});
|
|
461
|
-
}
|
|
462
|
-
}
|
|
463
|
-
const yn = {
|
|
464
|
-
silentJSONParsing: !0,
|
|
465
|
-
forcedJSONParsing: !0,
|
|
466
|
-
clarifyTimeoutError: !1
|
|
467
|
-
}, Co = typeof URLSearchParams < "u" ? URLSearchParams : pt, Eo = typeof FormData < "u" ? FormData : null, Ro = typeof Blob < "u" ? Blob : null, ko = {
|
|
468
|
-
isBrowser: !0,
|
|
469
|
-
classes: {
|
|
470
|
-
URLSearchParams: Co,
|
|
471
|
-
FormData: Eo,
|
|
472
|
-
Blob: Ro
|
|
473
|
-
},
|
|
474
|
-
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
475
|
-
}, mt = typeof window < "u" && typeof document < "u", at = typeof navigator == "object" && navigator || void 0, To = mt && (!at || ["ReactNative", "NativeScript", "NS"].indexOf(at.product) < 0), Oo = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
476
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", xo = mt && window.location.href || "http://localhost", Ao = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
477
|
-
__proto__: null,
|
|
478
|
-
hasBrowserEnv: mt,
|
|
479
|
-
hasStandardBrowserEnv: To,
|
|
480
|
-
hasStandardBrowserWebWorkerEnv: Oo,
|
|
481
|
-
navigator: at,
|
|
482
|
-
origin: xo
|
|
483
|
-
}, Symbol.toStringTag, { value: "Module" })), U = {
|
|
484
|
-
...Ao,
|
|
485
|
-
...ko
|
|
486
|
-
};
|
|
487
|
-
function Fo(e, t) {
|
|
488
|
-
return Me(e, new U.classes.URLSearchParams(), Object.assign({
|
|
489
|
-
visitor: function(n, r, o, s) {
|
|
490
|
-
return U.isNode && u.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
|
|
491
|
-
}
|
|
492
|
-
}, t));
|
|
493
|
-
}
|
|
494
|
-
function Do(e) {
|
|
495
|
-
return u.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
496
|
-
}
|
|
497
|
-
function Bo(e) {
|
|
498
|
-
const t = {}, n = Object.keys(e);
|
|
499
|
-
let r;
|
|
500
|
-
const o = n.length;
|
|
501
|
-
let s;
|
|
502
|
-
for (r = 0; r < o; r++)
|
|
503
|
-
s = n[r], t[s] = e[s];
|
|
504
|
-
return t;
|
|
505
|
-
}
|
|
506
|
-
function wn(e) {
|
|
507
|
-
function t(n, r, o, s) {
|
|
508
|
-
let i = n[s++];
|
|
509
|
-
if (i === "__proto__") return !0;
|
|
510
|
-
const l = Number.isFinite(+i), f = s >= n.length;
|
|
511
|
-
return i = !i && u.isArray(o) ? o.length : i, f ? (u.hasOwnProp(o, i) ? o[i] = [o[i], r] : o[i] = r, !l) : ((!o[i] || !u.isObject(o[i])) && (o[i] = []), t(n, r, o[i], s) && u.isArray(o[i]) && (o[i] = Bo(o[i])), !l);
|
|
512
|
-
}
|
|
513
|
-
if (u.isFormData(e) && u.isFunction(e.entries)) {
|
|
514
|
-
const n = {};
|
|
515
|
-
return u.forEachEntry(e, (r, o) => {
|
|
516
|
-
t(Do(r), o, n, 0);
|
|
517
|
-
}), n;
|
|
518
|
-
}
|
|
519
|
-
return null;
|
|
520
|
-
}
|
|
521
|
-
function Lo(e, t, n) {
|
|
522
|
-
if (u.isString(e))
|
|
523
|
-
try {
|
|
524
|
-
return (t || JSON.parse)(e), u.trim(e);
|
|
525
|
-
} catch (r) {
|
|
526
|
-
if (r.name !== "SyntaxError")
|
|
527
|
-
throw r;
|
|
528
|
-
}
|
|
529
|
-
return (n || JSON.stringify)(e);
|
|
530
|
-
}
|
|
531
|
-
const ve = {
|
|
532
|
-
transitional: yn,
|
|
533
|
-
adapter: ["xhr", "http", "fetch"],
|
|
534
|
-
transformRequest: [function(t, n) {
|
|
535
|
-
const r = n.getContentType() || "", o = r.indexOf("application/json") > -1, s = u.isObject(t);
|
|
536
|
-
if (s && u.isHTMLForm(t) && (t = new FormData(t)), u.isFormData(t))
|
|
537
|
-
return o ? JSON.stringify(wn(t)) : t;
|
|
538
|
-
if (u.isArrayBuffer(t) || u.isBuffer(t) || u.isStream(t) || u.isFile(t) || u.isBlob(t) || u.isReadableStream(t))
|
|
539
|
-
return t;
|
|
540
|
-
if (u.isArrayBufferView(t))
|
|
541
|
-
return t.buffer;
|
|
542
|
-
if (u.isURLSearchParams(t))
|
|
543
|
-
return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
|
|
544
|
-
let l;
|
|
545
|
-
if (s) {
|
|
546
|
-
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
547
|
-
return Fo(t, this.formSerializer).toString();
|
|
548
|
-
if ((l = u.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
549
|
-
const f = this.env && this.env.FormData;
|
|
550
|
-
return Me(
|
|
551
|
-
l ? { "files[]": t } : t,
|
|
552
|
-
f && new f(),
|
|
553
|
-
this.formSerializer
|
|
554
|
-
);
|
|
555
|
-
}
|
|
556
|
-
}
|
|
557
|
-
return s || o ? (n.setContentType("application/json", !1), Lo(t)) : t;
|
|
558
|
-
}],
|
|
559
|
-
transformResponse: [function(t) {
|
|
560
|
-
const n = this.transitional || ve.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json";
|
|
561
|
-
if (u.isResponse(t) || u.isReadableStream(t))
|
|
562
|
-
return t;
|
|
563
|
-
if (t && u.isString(t) && (r && !this.responseType || o)) {
|
|
564
|
-
const i = !(n && n.silentJSONParsing) && o;
|
|
565
|
-
try {
|
|
566
|
-
return JSON.parse(t);
|
|
567
|
-
} catch (l) {
|
|
568
|
-
if (i)
|
|
569
|
-
throw l.name === "SyntaxError" ? T.from(l, T.ERR_BAD_RESPONSE, this, null, this.response) : l;
|
|
570
|
-
}
|
|
571
|
-
}
|
|
572
|
-
return t;
|
|
573
|
-
}],
|
|
574
|
-
/**
|
|
575
|
-
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
|
576
|
-
* timeout is not created.
|
|
577
|
-
*/
|
|
578
|
-
timeout: 0,
|
|
579
|
-
xsrfCookieName: "XSRF-TOKEN",
|
|
580
|
-
xsrfHeaderName: "X-XSRF-TOKEN",
|
|
581
|
-
maxContentLength: -1,
|
|
582
|
-
maxBodyLength: -1,
|
|
583
|
-
env: {
|
|
584
|
-
FormData: U.classes.FormData,
|
|
585
|
-
Blob: U.classes.Blob
|
|
586
|
-
},
|
|
587
|
-
validateStatus: function(t) {
|
|
588
|
-
return t >= 200 && t < 300;
|
|
589
|
-
},
|
|
590
|
-
headers: {
|
|
591
|
-
common: {
|
|
592
|
-
Accept: "application/json, text/plain, */*",
|
|
593
|
-
"Content-Type": void 0
|
|
594
|
-
}
|
|
595
|
-
}
|
|
596
|
-
};
|
|
597
|
-
u.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
598
|
-
ve.headers[e] = {};
|
|
599
|
-
});
|
|
600
|
-
const No = u.toObjectSet([
|
|
601
|
-
"age",
|
|
602
|
-
"authorization",
|
|
603
|
-
"content-length",
|
|
604
|
-
"content-type",
|
|
605
|
-
"etag",
|
|
606
|
-
"expires",
|
|
607
|
-
"from",
|
|
608
|
-
"host",
|
|
609
|
-
"if-modified-since",
|
|
610
|
-
"if-unmodified-since",
|
|
611
|
-
"last-modified",
|
|
612
|
-
"location",
|
|
613
|
-
"max-forwards",
|
|
614
|
-
"proxy-authorization",
|
|
615
|
-
"referer",
|
|
616
|
-
"retry-after",
|
|
617
|
-
"user-agent"
|
|
618
|
-
]), Ho = (e) => {
|
|
619
|
-
const t = {};
|
|
620
|
-
let n, r, o;
|
|
621
|
-
return e && e.split(`
|
|
622
|
-
`).forEach(function(i) {
|
|
623
|
-
o = i.indexOf(":"), n = i.substring(0, o).trim().toLowerCase(), r = i.substring(o + 1).trim(), !(!n || t[n] && No[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
624
|
-
}), t;
|
|
625
|
-
}, Kt = Symbol("internals");
|
|
626
|
-
function me(e) {
|
|
627
|
-
return e && String(e).trim().toLowerCase();
|
|
628
|
-
}
|
|
629
|
-
function Fe(e) {
|
|
630
|
-
return e === !1 || e == null ? e : u.isArray(e) ? e.map(Fe) : String(e);
|
|
631
|
-
}
|
|
632
|
-
function $o(e) {
|
|
633
|
-
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
634
|
-
let r;
|
|
635
|
-
for (; r = n.exec(e); )
|
|
636
|
-
t[r[1]] = r[2];
|
|
637
|
-
return t;
|
|
638
|
-
}
|
|
639
|
-
const jo = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
640
|
-
function Ye(e, t, n, r, o) {
|
|
641
|
-
if (u.isFunction(r))
|
|
642
|
-
return r.call(this, t, n);
|
|
643
|
-
if (o && (t = n), !!u.isString(t)) {
|
|
644
|
-
if (u.isString(r))
|
|
645
|
-
return t.indexOf(r) !== -1;
|
|
646
|
-
if (u.isRegExp(r))
|
|
647
|
-
return r.test(t);
|
|
648
|
-
}
|
|
649
|
-
}
|
|
650
|
-
function Mo(e) {
|
|
651
|
-
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
|
|
652
|
-
}
|
|
653
|
-
function Io(e, t) {
|
|
654
|
-
const n = u.toCamelCase(" " + t);
|
|
655
|
-
["get", "set", "has"].forEach((r) => {
|
|
656
|
-
Object.defineProperty(e, r + n, {
|
|
657
|
-
value: function(o, s, i) {
|
|
658
|
-
return this[r].call(this, t, o, s, i);
|
|
659
|
-
},
|
|
660
|
-
configurable: !0
|
|
661
|
-
});
|
|
662
|
-
});
|
|
663
|
-
}
|
|
664
|
-
class q {
|
|
665
|
-
constructor(t) {
|
|
666
|
-
t && this.set(t);
|
|
667
|
-
}
|
|
668
|
-
set(t, n, r) {
|
|
669
|
-
const o = this;
|
|
670
|
-
function s(l, f, c) {
|
|
671
|
-
const d = me(f);
|
|
672
|
-
if (!d)
|
|
673
|
-
throw new Error("header name must be a non-empty string");
|
|
674
|
-
const g = u.findKey(o, d);
|
|
675
|
-
(!g || o[g] === void 0 || c === !0 || c === void 0 && o[g] !== !1) && (o[g || f] = Fe(l));
|
|
676
|
-
}
|
|
677
|
-
const i = (l, f) => u.forEach(l, (c, d) => s(c, d, f));
|
|
678
|
-
if (u.isPlainObject(t) || t instanceof this.constructor)
|
|
679
|
-
i(t, n);
|
|
680
|
-
else if (u.isString(t) && (t = t.trim()) && !jo(t))
|
|
681
|
-
i(Ho(t), n);
|
|
682
|
-
else if (u.isHeaders(t))
|
|
683
|
-
for (const [l, f] of t.entries())
|
|
684
|
-
s(f, l, r);
|
|
685
|
-
else
|
|
686
|
-
t != null && s(n, t, r);
|
|
687
|
-
return this;
|
|
688
|
-
}
|
|
689
|
-
get(t, n) {
|
|
690
|
-
if (t = me(t), t) {
|
|
691
|
-
const r = u.findKey(this, t);
|
|
692
|
-
if (r) {
|
|
693
|
-
const o = this[r];
|
|
694
|
-
if (!n)
|
|
695
|
-
return o;
|
|
696
|
-
if (n === !0)
|
|
697
|
-
return $o(o);
|
|
698
|
-
if (u.isFunction(n))
|
|
699
|
-
return n.call(this, o, r);
|
|
700
|
-
if (u.isRegExp(n))
|
|
701
|
-
return n.exec(o);
|
|
702
|
-
throw new TypeError("parser must be boolean|regexp|function");
|
|
703
|
-
}
|
|
704
|
-
}
|
|
705
|
-
}
|
|
706
|
-
has(t, n) {
|
|
707
|
-
if (t = me(t), t) {
|
|
708
|
-
const r = u.findKey(this, t);
|
|
709
|
-
return !!(r && this[r] !== void 0 && (!n || Ye(this, this[r], r, n)));
|
|
710
|
-
}
|
|
711
|
-
return !1;
|
|
712
|
-
}
|
|
713
|
-
delete(t, n) {
|
|
714
|
-
const r = this;
|
|
715
|
-
let o = !1;
|
|
716
|
-
function s(i) {
|
|
717
|
-
if (i = me(i), i) {
|
|
718
|
-
const l = u.findKey(r, i);
|
|
719
|
-
l && (!n || Ye(r, r[l], l, n)) && (delete r[l], o = !0);
|
|
720
|
-
}
|
|
721
|
-
}
|
|
722
|
-
return u.isArray(t) ? t.forEach(s) : s(t), o;
|
|
723
|
-
}
|
|
724
|
-
clear(t) {
|
|
725
|
-
const n = Object.keys(this);
|
|
726
|
-
let r = n.length, o = !1;
|
|
727
|
-
for (; r--; ) {
|
|
728
|
-
const s = n[r];
|
|
729
|
-
(!t || Ye(this, this[s], s, t, !0)) && (delete this[s], o = !0);
|
|
730
|
-
}
|
|
731
|
-
return o;
|
|
732
|
-
}
|
|
733
|
-
normalize(t) {
|
|
734
|
-
const n = this, r = {};
|
|
735
|
-
return u.forEach(this, (o, s) => {
|
|
736
|
-
const i = u.findKey(r, s);
|
|
737
|
-
if (i) {
|
|
738
|
-
n[i] = Fe(o), delete n[s];
|
|
739
|
-
return;
|
|
740
|
-
}
|
|
741
|
-
const l = t ? Mo(s) : String(s).trim();
|
|
742
|
-
l !== s && delete n[s], n[l] = Fe(o), r[l] = !0;
|
|
743
|
-
}), this;
|
|
744
|
-
}
|
|
745
|
-
concat(...t) {
|
|
746
|
-
return this.constructor.concat(this, ...t);
|
|
747
|
-
}
|
|
748
|
-
toJSON(t) {
|
|
749
|
-
const n = /* @__PURE__ */ Object.create(null);
|
|
750
|
-
return u.forEach(this, (r, o) => {
|
|
751
|
-
r != null && r !== !1 && (n[o] = t && u.isArray(r) ? r.join(", ") : r);
|
|
752
|
-
}), n;
|
|
753
|
-
}
|
|
754
|
-
[Symbol.iterator]() {
|
|
755
|
-
return Object.entries(this.toJSON())[Symbol.iterator]();
|
|
756
|
-
}
|
|
757
|
-
toString() {
|
|
758
|
-
return Object.entries(this.toJSON()).map(([t, n]) => t + ": " + n).join(`
|
|
759
|
-
`);
|
|
760
|
-
}
|
|
761
|
-
get [Symbol.toStringTag]() {
|
|
762
|
-
return "AxiosHeaders";
|
|
763
|
-
}
|
|
764
|
-
static from(t) {
|
|
765
|
-
return t instanceof this ? t : new this(t);
|
|
766
|
-
}
|
|
767
|
-
static concat(t, ...n) {
|
|
768
|
-
const r = new this(t);
|
|
769
|
-
return n.forEach((o) => r.set(o)), r;
|
|
770
|
-
}
|
|
771
|
-
static accessor(t) {
|
|
772
|
-
const r = (this[Kt] = this[Kt] = {
|
|
773
|
-
accessors: {}
|
|
774
|
-
}).accessors, o = this.prototype;
|
|
775
|
-
function s(i) {
|
|
776
|
-
const l = me(i);
|
|
777
|
-
r[l] || (Io(o, i), r[l] = !0);
|
|
778
|
-
}
|
|
779
|
-
return u.isArray(t) ? t.forEach(s) : s(t), this;
|
|
780
|
-
}
|
|
781
|
-
}
|
|
782
|
-
q.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
783
|
-
u.reduceDescriptors(q.prototype, ({ value: e }, t) => {
|
|
784
|
-
let n = t[0].toUpperCase() + t.slice(1);
|
|
785
|
-
return {
|
|
786
|
-
get: () => e,
|
|
787
|
-
set(r) {
|
|
788
|
-
this[n] = r;
|
|
789
|
-
}
|
|
790
|
-
};
|
|
791
|
-
});
|
|
792
|
-
u.freezeMethods(q);
|
|
793
|
-
function et(e, t) {
|
|
794
|
-
const n = this || ve, r = t || n, o = q.from(r.headers);
|
|
795
|
-
let s = r.data;
|
|
796
|
-
return u.forEach(e, function(l) {
|
|
797
|
-
s = l.call(n, s, o.normalize(), t ? t.status : void 0);
|
|
798
|
-
}), o.normalize(), s;
|
|
799
|
-
}
|
|
800
|
-
function vn(e) {
|
|
801
|
-
return !!(e && e.__CANCEL__);
|
|
802
|
-
}
|
|
803
|
-
function fe(e, t, n) {
|
|
804
|
-
T.call(this, e ?? "canceled", T.ERR_CANCELED, t, n), this.name = "CanceledError";
|
|
805
|
-
}
|
|
806
|
-
u.inherits(fe, T, {
|
|
807
|
-
__CANCEL__: !0
|
|
808
|
-
});
|
|
809
|
-
function Pn(e, t, n) {
|
|
810
|
-
const r = n.config.validateStatus;
|
|
811
|
-
!n.status || !r || r(n.status) ? e(n) : t(new T(
|
|
812
|
-
"Request failed with status code " + n.status,
|
|
813
|
-
[T.ERR_BAD_REQUEST, T.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
|
|
814
|
-
n.config,
|
|
815
|
-
n.request,
|
|
816
|
-
n
|
|
817
|
-
));
|
|
818
|
-
}
|
|
819
|
-
function Uo(e) {
|
|
820
|
-
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
821
|
-
return t && t[1] || "";
|
|
822
|
-
}
|
|
823
|
-
function qo(e, t) {
|
|
824
|
-
e = e || 10;
|
|
825
|
-
const n = new Array(e), r = new Array(e);
|
|
826
|
-
let o = 0, s = 0, i;
|
|
827
|
-
return t = t !== void 0 ? t : 1e3, function(f) {
|
|
828
|
-
const c = Date.now(), d = r[s];
|
|
829
|
-
i || (i = c), n[o] = f, r[o] = c;
|
|
830
|
-
let g = s, O = 0;
|
|
831
|
-
for (; g !== o; )
|
|
832
|
-
O += n[g++], g = g % e;
|
|
833
|
-
if (o = (o + 1) % e, o === s && (s = (s + 1) % e), c - i < t)
|
|
834
|
-
return;
|
|
835
|
-
const k = d && c - d;
|
|
836
|
-
return k ? Math.round(O * 1e3 / k) : void 0;
|
|
837
|
-
};
|
|
838
|
-
}
|
|
839
|
-
function Vo(e, t) {
|
|
840
|
-
let n = 0, r = 1e3 / t, o, s;
|
|
841
|
-
const i = (c, d = Date.now()) => {
|
|
842
|
-
n = d, o = null, s && (clearTimeout(s), s = null), e.apply(null, c);
|
|
843
|
-
};
|
|
844
|
-
return [(...c) => {
|
|
845
|
-
const d = Date.now(), g = d - n;
|
|
846
|
-
g >= r ? i(c, d) : (o = c, s || (s = setTimeout(() => {
|
|
847
|
-
s = null, i(o);
|
|
848
|
-
}, r - g)));
|
|
849
|
-
}, () => o && i(o)];
|
|
850
|
-
}
|
|
851
|
-
const Be = (e, t, n = 3) => {
|
|
852
|
-
let r = 0;
|
|
853
|
-
const o = qo(50, 250);
|
|
854
|
-
return Vo((s) => {
|
|
855
|
-
const i = s.loaded, l = s.lengthComputable ? s.total : void 0, f = i - r, c = o(f), d = i <= l;
|
|
856
|
-
r = i;
|
|
857
|
-
const g = {
|
|
858
|
-
loaded: i,
|
|
859
|
-
total: l,
|
|
860
|
-
progress: l ? i / l : void 0,
|
|
861
|
-
bytes: f,
|
|
862
|
-
rate: c || void 0,
|
|
863
|
-
estimated: c && l && d ? (l - i) / c : void 0,
|
|
864
|
-
event: s,
|
|
865
|
-
lengthComputable: l != null,
|
|
866
|
-
[t ? "download" : "upload"]: !0
|
|
867
|
-
};
|
|
868
|
-
e(g);
|
|
869
|
-
}, n);
|
|
870
|
-
}, Gt = (e, t) => {
|
|
871
|
-
const n = e != null;
|
|
872
|
-
return [(r) => t[0]({
|
|
873
|
-
lengthComputable: n,
|
|
874
|
-
total: e,
|
|
875
|
-
loaded: r
|
|
876
|
-
}), t[1]];
|
|
877
|
-
}, Xt = (e) => (...t) => u.asap(() => e(...t)), zo = U.hasStandardBrowserEnv ? (
|
|
878
|
-
// Standard browser envs have full support of the APIs needed to test
|
|
879
|
-
// whether the request URL is of the same origin as current location.
|
|
880
|
-
function() {
|
|
881
|
-
const t = U.navigator && /(msie|trident)/i.test(U.navigator.userAgent), n = document.createElement("a");
|
|
882
|
-
let r;
|
|
883
|
-
function o(s) {
|
|
884
|
-
let i = s;
|
|
885
|
-
return t && (n.setAttribute("href", i), i = n.href), n.setAttribute("href", i), {
|
|
886
|
-
href: n.href,
|
|
887
|
-
protocol: n.protocol ? n.protocol.replace(/:$/, "") : "",
|
|
888
|
-
host: n.host,
|
|
889
|
-
search: n.search ? n.search.replace(/^\?/, "") : "",
|
|
890
|
-
hash: n.hash ? n.hash.replace(/^#/, "") : "",
|
|
891
|
-
hostname: n.hostname,
|
|
892
|
-
port: n.port,
|
|
893
|
-
pathname: n.pathname.charAt(0) === "/" ? n.pathname : "/" + n.pathname
|
|
894
|
-
};
|
|
895
|
-
}
|
|
896
|
-
return r = o(window.location.href), function(i) {
|
|
897
|
-
const l = u.isString(i) ? o(i) : i;
|
|
898
|
-
return l.protocol === r.protocol && l.host === r.host;
|
|
899
|
-
};
|
|
900
|
-
}()
|
|
901
|
-
) : (
|
|
902
|
-
// Non standard browser envs (web workers, react-native) lack needed support.
|
|
903
|
-
/* @__PURE__ */ function() {
|
|
904
|
-
return function() {
|
|
905
|
-
return !0;
|
|
906
|
-
};
|
|
907
|
-
}()
|
|
908
|
-
), _o = U.hasStandardBrowserEnv ? (
|
|
909
|
-
// Standard browser envs support document.cookie
|
|
910
|
-
{
|
|
911
|
-
write(e, t, n, r, o, s) {
|
|
912
|
-
const i = [e + "=" + encodeURIComponent(t)];
|
|
913
|
-
u.isNumber(n) && i.push("expires=" + new Date(n).toGMTString()), u.isString(r) && i.push("path=" + r), u.isString(o) && i.push("domain=" + o), s === !0 && i.push("secure"), document.cookie = i.join("; ");
|
|
914
|
-
},
|
|
915
|
-
read(e) {
|
|
916
|
-
const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
|
|
917
|
-
return t ? decodeURIComponent(t[3]) : null;
|
|
918
|
-
},
|
|
919
|
-
remove(e) {
|
|
920
|
-
this.write(e, "", Date.now() - 864e5);
|
|
921
|
-
}
|
|
922
|
-
}
|
|
923
|
-
) : (
|
|
924
|
-
// Non-standard browser env (web workers, react-native) lack needed support.
|
|
925
|
-
{
|
|
926
|
-
write() {
|
|
927
|
-
},
|
|
928
|
-
read() {
|
|
929
|
-
return null;
|
|
930
|
-
},
|
|
931
|
-
remove() {
|
|
932
|
-
}
|
|
933
|
-
}
|
|
934
|
-
);
|
|
935
|
-
function Wo(e) {
|
|
936
|
-
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
937
|
-
}
|
|
938
|
-
function Jo(e, t) {
|
|
939
|
-
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
940
|
-
}
|
|
941
|
-
function Sn(e, t) {
|
|
942
|
-
return e && !Wo(t) ? Jo(e, t) : t;
|
|
943
|
-
}
|
|
944
|
-
const Qt = (e) => e instanceof q ? { ...e } : e;
|
|
945
|
-
function ie(e, t) {
|
|
946
|
-
t = t || {};
|
|
947
|
-
const n = {};
|
|
948
|
-
function r(c, d, g) {
|
|
949
|
-
return u.isPlainObject(c) && u.isPlainObject(d) ? u.merge.call({ caseless: g }, c, d) : u.isPlainObject(d) ? u.merge({}, d) : u.isArray(d) ? d.slice() : d;
|
|
950
|
-
}
|
|
951
|
-
function o(c, d, g) {
|
|
952
|
-
if (u.isUndefined(d)) {
|
|
953
|
-
if (!u.isUndefined(c))
|
|
954
|
-
return r(void 0, c, g);
|
|
955
|
-
} else return r(c, d, g);
|
|
956
|
-
}
|
|
957
|
-
function s(c, d) {
|
|
958
|
-
if (!u.isUndefined(d))
|
|
959
|
-
return r(void 0, d);
|
|
960
|
-
}
|
|
961
|
-
function i(c, d) {
|
|
962
|
-
if (u.isUndefined(d)) {
|
|
963
|
-
if (!u.isUndefined(c))
|
|
964
|
-
return r(void 0, c);
|
|
965
|
-
} else return r(void 0, d);
|
|
966
|
-
}
|
|
967
|
-
function l(c, d, g) {
|
|
968
|
-
if (g in t)
|
|
969
|
-
return r(c, d);
|
|
970
|
-
if (g in e)
|
|
971
|
-
return r(void 0, c);
|
|
972
|
-
}
|
|
973
|
-
const f = {
|
|
974
|
-
url: s,
|
|
975
|
-
method: s,
|
|
976
|
-
data: s,
|
|
977
|
-
baseURL: i,
|
|
978
|
-
transformRequest: i,
|
|
979
|
-
transformResponse: i,
|
|
980
|
-
paramsSerializer: i,
|
|
981
|
-
timeout: i,
|
|
982
|
-
timeoutMessage: i,
|
|
983
|
-
withCredentials: i,
|
|
984
|
-
withXSRFToken: i,
|
|
985
|
-
adapter: i,
|
|
986
|
-
responseType: i,
|
|
987
|
-
xsrfCookieName: i,
|
|
988
|
-
xsrfHeaderName: i,
|
|
989
|
-
onUploadProgress: i,
|
|
990
|
-
onDownloadProgress: i,
|
|
991
|
-
decompress: i,
|
|
992
|
-
maxContentLength: i,
|
|
993
|
-
maxBodyLength: i,
|
|
994
|
-
beforeRedirect: i,
|
|
995
|
-
transport: i,
|
|
996
|
-
httpAgent: i,
|
|
997
|
-
httpsAgent: i,
|
|
998
|
-
cancelToken: i,
|
|
999
|
-
socketPath: i,
|
|
1000
|
-
responseEncoding: i,
|
|
1001
|
-
validateStatus: l,
|
|
1002
|
-
headers: (c, d) => o(Qt(c), Qt(d), !0)
|
|
1003
|
-
};
|
|
1004
|
-
return u.forEach(Object.keys(Object.assign({}, e, t)), function(d) {
|
|
1005
|
-
const g = f[d] || o, O = g(e[d], t[d], d);
|
|
1006
|
-
u.isUndefined(O) && g !== l || (n[d] = O);
|
|
1007
|
-
}), n;
|
|
1008
|
-
}
|
|
1009
|
-
const Cn = (e) => {
|
|
1010
|
-
const t = ie({}, e);
|
|
1011
|
-
let { data: n, withXSRFToken: r, xsrfHeaderName: o, xsrfCookieName: s, headers: i, auth: l } = t;
|
|
1012
|
-
t.headers = i = q.from(i), t.url = gn(Sn(t.baseURL, t.url), e.params, e.paramsSerializer), l && i.set(
|
|
1013
|
-
"Authorization",
|
|
1014
|
-
"Basic " + btoa((l.username || "") + ":" + (l.password ? unescape(encodeURIComponent(l.password)) : ""))
|
|
1015
|
-
);
|
|
1016
|
-
let f;
|
|
1017
|
-
if (u.isFormData(n)) {
|
|
1018
|
-
if (U.hasStandardBrowserEnv || U.hasStandardBrowserWebWorkerEnv)
|
|
1019
|
-
i.setContentType(void 0);
|
|
1020
|
-
else if ((f = i.getContentType()) !== !1) {
|
|
1021
|
-
const [c, ...d] = f ? f.split(";").map((g) => g.trim()).filter(Boolean) : [];
|
|
1022
|
-
i.setContentType([c || "multipart/form-data", ...d].join("; "));
|
|
1023
|
-
}
|
|
1024
|
-
}
|
|
1025
|
-
if (U.hasStandardBrowserEnv && (r && u.isFunction(r) && (r = r(t)), r || r !== !1 && zo(t.url))) {
|
|
1026
|
-
const c = o && s && _o.read(s);
|
|
1027
|
-
c && i.set(o, c);
|
|
1028
|
-
}
|
|
1029
|
-
return t;
|
|
1030
|
-
}, Ko = typeof XMLHttpRequest < "u", Go = Ko && function(e) {
|
|
1031
|
-
return new Promise(function(n, r) {
|
|
1032
|
-
const o = Cn(e);
|
|
1033
|
-
let s = o.data;
|
|
1034
|
-
const i = q.from(o.headers).normalize();
|
|
1035
|
-
let { responseType: l, onUploadProgress: f, onDownloadProgress: c } = o, d, g, O, k, w;
|
|
1036
|
-
function R() {
|
|
1037
|
-
k && k(), w && w(), o.cancelToken && o.cancelToken.unsubscribe(d), o.signal && o.signal.removeEventListener("abort", d);
|
|
1038
|
-
}
|
|
1039
|
-
let p = new XMLHttpRequest();
|
|
1040
|
-
p.open(o.method.toUpperCase(), o.url, !0), p.timeout = o.timeout;
|
|
1041
|
-
function m() {
|
|
1042
|
-
if (!p)
|
|
1043
|
-
return;
|
|
1044
|
-
const P = q.from(
|
|
1045
|
-
"getAllResponseHeaders" in p && p.getAllResponseHeaders()
|
|
1046
|
-
), A = {
|
|
1047
|
-
data: !l || l === "text" || l === "json" ? p.responseText : p.response,
|
|
1048
|
-
status: p.status,
|
|
1049
|
-
statusText: p.statusText,
|
|
1050
|
-
headers: P,
|
|
1051
|
-
config: e,
|
|
1052
|
-
request: p
|
|
1053
|
-
};
|
|
1054
|
-
Pn(function(z) {
|
|
1055
|
-
n(z), R();
|
|
1056
|
-
}, function(z) {
|
|
1057
|
-
r(z), R();
|
|
1058
|
-
}, A), p = null;
|
|
1059
|
-
}
|
|
1060
|
-
"onloadend" in p ? p.onloadend = m : p.onreadystatechange = function() {
|
|
1061
|
-
!p || p.readyState !== 4 || p.status === 0 && !(p.responseURL && p.responseURL.indexOf("file:") === 0) || setTimeout(m);
|
|
1062
|
-
}, p.onabort = function() {
|
|
1063
|
-
p && (r(new T("Request aborted", T.ECONNABORTED, e, p)), p = null);
|
|
1064
|
-
}, p.onerror = function() {
|
|
1065
|
-
r(new T("Network Error", T.ERR_NETWORK, e, p)), p = null;
|
|
1066
|
-
}, p.ontimeout = function() {
|
|
1067
|
-
let x = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
|
|
1068
|
-
const A = o.transitional || yn;
|
|
1069
|
-
o.timeoutErrorMessage && (x = o.timeoutErrorMessage), r(new T(
|
|
1070
|
-
x,
|
|
1071
|
-
A.clarifyTimeoutError ? T.ETIMEDOUT : T.ECONNABORTED,
|
|
1072
|
-
e,
|
|
1073
|
-
p
|
|
1074
|
-
)), p = null;
|
|
1075
|
-
}, s === void 0 && i.setContentType(null), "setRequestHeader" in p && u.forEach(i.toJSON(), function(x, A) {
|
|
1076
|
-
p.setRequestHeader(A, x);
|
|
1077
|
-
}), u.isUndefined(o.withCredentials) || (p.withCredentials = !!o.withCredentials), l && l !== "json" && (p.responseType = o.responseType), c && ([O, w] = Be(c, !0), p.addEventListener("progress", O)), f && p.upload && ([g, k] = Be(f), p.upload.addEventListener("progress", g), p.upload.addEventListener("loadend", k)), (o.cancelToken || o.signal) && (d = (P) => {
|
|
1078
|
-
p && (r(!P || P.type ? new fe(null, e, p) : P), p.abort(), p = null);
|
|
1079
|
-
}, o.cancelToken && o.cancelToken.subscribe(d), o.signal && (o.signal.aborted ? d() : o.signal.addEventListener("abort", d)));
|
|
1080
|
-
const y = Uo(o.url);
|
|
1081
|
-
if (y && U.protocols.indexOf(y) === -1) {
|
|
1082
|
-
r(new T("Unsupported protocol " + y + ":", T.ERR_BAD_REQUEST, e));
|
|
1083
|
-
return;
|
|
1084
|
-
}
|
|
1085
|
-
p.send(s || null);
|
|
1086
|
-
});
|
|
1087
|
-
}, Xo = (e, t) => {
|
|
1088
|
-
const { length: n } = e = e ? e.filter(Boolean) : [];
|
|
1089
|
-
if (t || n) {
|
|
1090
|
-
let r = new AbortController(), o;
|
|
1091
|
-
const s = function(c) {
|
|
1092
|
-
if (!o) {
|
|
1093
|
-
o = !0, l();
|
|
1094
|
-
const d = c instanceof Error ? c : this.reason;
|
|
1095
|
-
r.abort(d instanceof T ? d : new fe(d instanceof Error ? d.message : d));
|
|
1096
|
-
}
|
|
1097
|
-
};
|
|
1098
|
-
let i = t && setTimeout(() => {
|
|
1099
|
-
i = null, s(new T(`timeout ${t} of ms exceeded`, T.ETIMEDOUT));
|
|
1100
|
-
}, t);
|
|
1101
|
-
const l = () => {
|
|
1102
|
-
e && (i && clearTimeout(i), i = null, e.forEach((c) => {
|
|
1103
|
-
c.unsubscribe ? c.unsubscribe(s) : c.removeEventListener("abort", s);
|
|
1104
|
-
}), e = null);
|
|
1105
|
-
};
|
|
1106
|
-
e.forEach((c) => c.addEventListener("abort", s));
|
|
1107
|
-
const { signal: f } = r;
|
|
1108
|
-
return f.unsubscribe = () => u.asap(l), f;
|
|
1109
|
-
}
|
|
1110
|
-
}, Qo = function* (e, t) {
|
|
1111
|
-
let n = e.byteLength;
|
|
1112
|
-
if (!t || n < t) {
|
|
1113
|
-
yield e;
|
|
1114
|
-
return;
|
|
1115
|
-
}
|
|
1116
|
-
let r = 0, o;
|
|
1117
|
-
for (; r < n; )
|
|
1118
|
-
o = r + t, yield e.slice(r, o), r = o;
|
|
1119
|
-
}, Zo = async function* (e, t) {
|
|
1120
|
-
for await (const n of Yo(e))
|
|
1121
|
-
yield* Qo(n, t);
|
|
1122
|
-
}, Yo = async function* (e) {
|
|
1123
|
-
if (e[Symbol.asyncIterator]) {
|
|
1124
|
-
yield* e;
|
|
1125
|
-
return;
|
|
1126
|
-
}
|
|
1127
|
-
const t = e.getReader();
|
|
1128
|
-
try {
|
|
1129
|
-
for (; ; ) {
|
|
1130
|
-
const { done: n, value: r } = await t.read();
|
|
1131
|
-
if (n)
|
|
1132
|
-
break;
|
|
1133
|
-
yield r;
|
|
1134
|
-
}
|
|
1135
|
-
} finally {
|
|
1136
|
-
await t.cancel();
|
|
1137
|
-
}
|
|
1138
|
-
}, Zt = (e, t, n, r) => {
|
|
1139
|
-
const o = Zo(e, t);
|
|
1140
|
-
let s = 0, i, l = (f) => {
|
|
1141
|
-
i || (i = !0, r && r(f));
|
|
1142
|
-
};
|
|
1143
|
-
return new ReadableStream({
|
|
1144
|
-
async pull(f) {
|
|
1145
|
-
try {
|
|
1146
|
-
const { done: c, value: d } = await o.next();
|
|
1147
|
-
if (c) {
|
|
1148
|
-
l(), f.close();
|
|
1149
|
-
return;
|
|
1150
|
-
}
|
|
1151
|
-
let g = d.byteLength;
|
|
1152
|
-
if (n) {
|
|
1153
|
-
let O = s += g;
|
|
1154
|
-
n(O);
|
|
1155
|
-
}
|
|
1156
|
-
f.enqueue(new Uint8Array(d));
|
|
1157
|
-
} catch (c) {
|
|
1158
|
-
throw l(c), c;
|
|
1159
|
-
}
|
|
1160
|
-
},
|
|
1161
|
-
cancel(f) {
|
|
1162
|
-
return l(f), o.return();
|
|
1163
|
-
}
|
|
1164
|
-
}, {
|
|
1165
|
-
highWaterMark: 2
|
|
1166
|
-
});
|
|
1167
|
-
}, Ie = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", En = Ie && typeof ReadableStream == "function", ea = Ie && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Rn = (e, ...t) => {
|
|
1168
|
-
try {
|
|
1169
|
-
return !!e(...t);
|
|
1170
|
-
} catch {
|
|
1171
|
-
return !1;
|
|
1172
|
-
}
|
|
1173
|
-
}, ta = En && Rn(() => {
|
|
1174
|
-
let e = !1;
|
|
1175
|
-
const t = new Request(U.origin, {
|
|
1176
|
-
body: new ReadableStream(),
|
|
1177
|
-
method: "POST",
|
|
1178
|
-
get duplex() {
|
|
1179
|
-
return e = !0, "half";
|
|
1180
|
-
}
|
|
1181
|
-
}).headers.has("Content-Type");
|
|
1182
|
-
return e && !t;
|
|
1183
|
-
}), Yt = 64 * 1024, st = En && Rn(() => u.isReadableStream(new Response("").body)), Le = {
|
|
1184
|
-
stream: st && ((e) => e.body)
|
|
1185
|
-
};
|
|
1186
|
-
Ie && ((e) => {
|
|
1187
|
-
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
|
|
1188
|
-
!Le[t] && (Le[t] = u.isFunction(e[t]) ? (n) => n[t]() : (n, r) => {
|
|
1189
|
-
throw new T(`Response type '${t}' is not supported`, T.ERR_NOT_SUPPORT, r);
|
|
1190
|
-
});
|
|
1191
|
-
});
|
|
1192
|
-
})(new Response());
|
|
1193
|
-
const na = async (e) => {
|
|
1194
|
-
if (e == null)
|
|
1195
|
-
return 0;
|
|
1196
|
-
if (u.isBlob(e))
|
|
1197
|
-
return e.size;
|
|
1198
|
-
if (u.isSpecCompliantForm(e))
|
|
1199
|
-
return (await new Request(U.origin, {
|
|
1200
|
-
method: "POST",
|
|
1201
|
-
body: e
|
|
1202
|
-
}).arrayBuffer()).byteLength;
|
|
1203
|
-
if (u.isArrayBufferView(e) || u.isArrayBuffer(e))
|
|
1204
|
-
return e.byteLength;
|
|
1205
|
-
if (u.isURLSearchParams(e) && (e = e + ""), u.isString(e))
|
|
1206
|
-
return (await ea(e)).byteLength;
|
|
1207
|
-
}, ra = async (e, t) => {
|
|
1208
|
-
const n = u.toFiniteNumber(e.getContentLength());
|
|
1209
|
-
return n ?? na(t);
|
|
1210
|
-
}, oa = Ie && (async (e) => {
|
|
1211
|
-
let {
|
|
1212
|
-
url: t,
|
|
1213
|
-
method: n,
|
|
1214
|
-
data: r,
|
|
1215
|
-
signal: o,
|
|
1216
|
-
cancelToken: s,
|
|
1217
|
-
timeout: i,
|
|
1218
|
-
onDownloadProgress: l,
|
|
1219
|
-
onUploadProgress: f,
|
|
1220
|
-
responseType: c,
|
|
1221
|
-
headers: d,
|
|
1222
|
-
withCredentials: g = "same-origin",
|
|
1223
|
-
fetchOptions: O
|
|
1224
|
-
} = Cn(e);
|
|
1225
|
-
c = c ? (c + "").toLowerCase() : "text";
|
|
1226
|
-
let k = Xo([o, s && s.toAbortSignal()], i), w;
|
|
1227
|
-
const R = k && k.unsubscribe && (() => {
|
|
1228
|
-
k.unsubscribe();
|
|
1229
|
-
});
|
|
1230
|
-
let p;
|
|
1231
|
-
try {
|
|
1232
|
-
if (f && ta && n !== "get" && n !== "head" && (p = await ra(d, r)) !== 0) {
|
|
1233
|
-
let A = new Request(t, {
|
|
1234
|
-
method: "POST",
|
|
1235
|
-
body: r,
|
|
1236
|
-
duplex: "half"
|
|
1237
|
-
}), M;
|
|
1238
|
-
if (u.isFormData(r) && (M = A.headers.get("content-type")) && d.setContentType(M), A.body) {
|
|
1239
|
-
const [z, Z] = Gt(
|
|
1240
|
-
p,
|
|
1241
|
-
Be(Xt(f))
|
|
1242
|
-
);
|
|
1243
|
-
r = Zt(A.body, Yt, z, Z);
|
|
1244
|
-
}
|
|
1245
|
-
}
|
|
1246
|
-
u.isString(g) || (g = g ? "include" : "omit");
|
|
1247
|
-
const m = "credentials" in Request.prototype;
|
|
1248
|
-
w = new Request(t, {
|
|
1249
|
-
...O,
|
|
1250
|
-
signal: k,
|
|
1251
|
-
method: n.toUpperCase(),
|
|
1252
|
-
headers: d.normalize().toJSON(),
|
|
1253
|
-
body: r,
|
|
1254
|
-
duplex: "half",
|
|
1255
|
-
credentials: m ? g : void 0
|
|
1256
|
-
});
|
|
1257
|
-
let y = await fetch(w);
|
|
1258
|
-
const P = st && (c === "stream" || c === "response");
|
|
1259
|
-
if (st && (l || P && R)) {
|
|
1260
|
-
const A = {};
|
|
1261
|
-
["status", "statusText", "headers"].forEach((le) => {
|
|
1262
|
-
A[le] = y[le];
|
|
1263
|
-
});
|
|
1264
|
-
const M = u.toFiniteNumber(y.headers.get("content-length")), [z, Z] = l && Gt(
|
|
1265
|
-
M,
|
|
1266
|
-
Be(Xt(l), !0)
|
|
1267
|
-
) || [];
|
|
1268
|
-
y = new Response(
|
|
1269
|
-
Zt(y.body, Yt, z, () => {
|
|
1270
|
-
Z && Z(), R && R();
|
|
1271
|
-
}),
|
|
1272
|
-
A
|
|
1273
|
-
);
|
|
1274
|
-
}
|
|
1275
|
-
c = c || "text";
|
|
1276
|
-
let x = await Le[u.findKey(Le, c) || "text"](y, e);
|
|
1277
|
-
return !P && R && R(), await new Promise((A, M) => {
|
|
1278
|
-
Pn(A, M, {
|
|
1279
|
-
data: x,
|
|
1280
|
-
headers: q.from(y.headers),
|
|
1281
|
-
status: y.status,
|
|
1282
|
-
statusText: y.statusText,
|
|
1283
|
-
config: e,
|
|
1284
|
-
request: w
|
|
1285
|
-
});
|
|
1286
|
-
});
|
|
1287
|
-
} catch (m) {
|
|
1288
|
-
throw R && R(), m && m.name === "TypeError" && /fetch/i.test(m.message) ? Object.assign(
|
|
1289
|
-
new T("Network Error", T.ERR_NETWORK, e, w),
|
|
1290
|
-
{
|
|
1291
|
-
cause: m.cause || m
|
|
1292
|
-
}
|
|
1293
|
-
) : T.from(m, m && m.code, e, w);
|
|
1294
|
-
}
|
|
1295
|
-
}), it = {
|
|
1296
|
-
http: wo,
|
|
1297
|
-
xhr: Go,
|
|
1298
|
-
fetch: oa
|
|
1299
|
-
};
|
|
1300
|
-
u.forEach(it, (e, t) => {
|
|
1301
|
-
if (e) {
|
|
1302
|
-
try {
|
|
1303
|
-
Object.defineProperty(e, "name", { value: t });
|
|
1304
|
-
} catch {
|
|
1305
|
-
}
|
|
1306
|
-
Object.defineProperty(e, "adapterName", { value: t });
|
|
1307
|
-
}
|
|
1308
|
-
});
|
|
1309
|
-
const en = (e) => `- ${e}`, aa = (e) => u.isFunction(e) || e === null || e === !1, kn = {
|
|
1310
|
-
getAdapter: (e) => {
|
|
1311
|
-
e = u.isArray(e) ? e : [e];
|
|
1312
|
-
const { length: t } = e;
|
|
1313
|
-
let n, r;
|
|
1314
|
-
const o = {};
|
|
1315
|
-
for (let s = 0; s < t; s++) {
|
|
1316
|
-
n = e[s];
|
|
1317
|
-
let i;
|
|
1318
|
-
if (r = n, !aa(n) && (r = it[(i = String(n)).toLowerCase()], r === void 0))
|
|
1319
|
-
throw new T(`Unknown adapter '${i}'`);
|
|
1320
|
-
if (r)
|
|
1321
|
-
break;
|
|
1322
|
-
o[i || "#" + s] = r;
|
|
1323
|
-
}
|
|
1324
|
-
if (!r) {
|
|
1325
|
-
const s = Object.entries(o).map(
|
|
1326
|
-
([l, f]) => `adapter ${l} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1327
|
-
);
|
|
1328
|
-
let i = t ? s.length > 1 ? `since :
|
|
1329
|
-
` + s.map(en).join(`
|
|
1330
|
-
`) : " " + en(s[0]) : "as no adapter specified";
|
|
1331
|
-
throw new T(
|
|
1332
|
-
"There is no suitable adapter to dispatch the request " + i,
|
|
1333
|
-
"ERR_NOT_SUPPORT"
|
|
1334
|
-
);
|
|
1335
|
-
}
|
|
1336
|
-
return r;
|
|
1337
|
-
},
|
|
1338
|
-
adapters: it
|
|
1339
|
-
};
|
|
1340
|
-
function tt(e) {
|
|
1341
|
-
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1342
|
-
throw new fe(null, e);
|
|
1343
|
-
}
|
|
1344
|
-
function tn(e) {
|
|
1345
|
-
return tt(e), e.headers = q.from(e.headers), e.data = et.call(
|
|
1346
|
-
e,
|
|
1347
|
-
e.transformRequest
|
|
1348
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), kn.getAdapter(e.adapter || ve.adapter)(e).then(function(r) {
|
|
1349
|
-
return tt(e), r.data = et.call(
|
|
1350
|
-
e,
|
|
1351
|
-
e.transformResponse,
|
|
1352
|
-
r
|
|
1353
|
-
), r.headers = q.from(r.headers), r;
|
|
1354
|
-
}, function(r) {
|
|
1355
|
-
return vn(r) || (tt(e), r && r.response && (r.response.data = et.call(
|
|
1356
|
-
e,
|
|
1357
|
-
e.transformResponse,
|
|
1358
|
-
r.response
|
|
1359
|
-
), r.response.headers = q.from(r.response.headers))), Promise.reject(r);
|
|
1360
|
-
});
|
|
1361
|
-
}
|
|
1362
|
-
const Tn = "1.7.7", bt = {};
|
|
1363
|
-
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1364
|
-
bt[e] = function(r) {
|
|
1365
|
-
return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1366
|
-
};
|
|
1367
|
-
});
|
|
1368
|
-
const nn = {};
|
|
1369
|
-
bt.transitional = function(t, n, r) {
|
|
1370
|
-
function o(s, i) {
|
|
1371
|
-
return "[Axios v" + Tn + "] Transitional option '" + s + "'" + i + (r ? ". " + r : "");
|
|
1372
|
-
}
|
|
1373
|
-
return (s, i, l) => {
|
|
1374
|
-
if (t === !1)
|
|
1375
|
-
throw new T(
|
|
1376
|
-
o(i, " has been removed" + (n ? " in " + n : "")),
|
|
1377
|
-
T.ERR_DEPRECATED
|
|
1378
|
-
);
|
|
1379
|
-
return n && !nn[i] && (nn[i] = !0, console.warn(
|
|
1380
|
-
o(
|
|
1381
|
-
i,
|
|
1382
|
-
" has been deprecated since v" + n + " and will be removed in the near future"
|
|
1383
|
-
)
|
|
1384
|
-
)), t ? t(s, i, l) : !0;
|
|
1385
|
-
};
|
|
1386
|
-
};
|
|
1387
|
-
function sa(e, t, n) {
|
|
1388
|
-
if (typeof e != "object")
|
|
1389
|
-
throw new T("options must be an object", T.ERR_BAD_OPTION_VALUE);
|
|
1390
|
-
const r = Object.keys(e);
|
|
1391
|
-
let o = r.length;
|
|
1392
|
-
for (; o-- > 0; ) {
|
|
1393
|
-
const s = r[o], i = t[s];
|
|
1394
|
-
if (i) {
|
|
1395
|
-
const l = e[s], f = l === void 0 || i(l, s, e);
|
|
1396
|
-
if (f !== !0)
|
|
1397
|
-
throw new T("option " + s + " must be " + f, T.ERR_BAD_OPTION_VALUE);
|
|
1398
|
-
continue;
|
|
1399
|
-
}
|
|
1400
|
-
if (n !== !0)
|
|
1401
|
-
throw new T("Unknown option " + s, T.ERR_BAD_OPTION);
|
|
1402
|
-
}
|
|
1403
|
-
}
|
|
1404
|
-
const lt = {
|
|
1405
|
-
assertOptions: sa,
|
|
1406
|
-
validators: bt
|
|
1407
|
-
}, te = lt.validators;
|
|
1408
|
-
class se {
|
|
1409
|
-
constructor(t) {
|
|
1410
|
-
this.defaults = t, this.interceptors = {
|
|
1411
|
-
request: new Jt(),
|
|
1412
|
-
response: new Jt()
|
|
1413
|
-
};
|
|
1414
|
-
}
|
|
1415
|
-
/**
|
|
1416
|
-
* Dispatch a request
|
|
1417
|
-
*
|
|
1418
|
-
* @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
|
|
1419
|
-
* @param {?Object} config
|
|
1420
|
-
*
|
|
1421
|
-
* @returns {Promise} The Promise to be fulfilled
|
|
1422
|
-
*/
|
|
1423
|
-
async request(t, n) {
|
|
1424
|
-
try {
|
|
1425
|
-
return await this._request(t, n);
|
|
1426
|
-
} catch (r) {
|
|
1427
|
-
if (r instanceof Error) {
|
|
1428
|
-
let o;
|
|
1429
|
-
Error.captureStackTrace ? Error.captureStackTrace(o = {}) : o = new Error();
|
|
1430
|
-
const s = o.stack ? o.stack.replace(/^.+\n/, "") : "";
|
|
1431
|
-
try {
|
|
1432
|
-
r.stack ? s && !String(r.stack).endsWith(s.replace(/^.+\n.+\n/, "")) && (r.stack += `
|
|
1433
|
-
` + s) : r.stack = s;
|
|
1434
|
-
} catch {
|
|
1435
|
-
}
|
|
1436
|
-
}
|
|
1437
|
-
throw r;
|
|
1438
|
-
}
|
|
1439
|
-
}
|
|
1440
|
-
_request(t, n) {
|
|
1441
|
-
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = ie(this.defaults, n);
|
|
1442
|
-
const { transitional: r, paramsSerializer: o, headers: s } = n;
|
|
1443
|
-
r !== void 0 && lt.assertOptions(r, {
|
|
1444
|
-
silentJSONParsing: te.transitional(te.boolean),
|
|
1445
|
-
forcedJSONParsing: te.transitional(te.boolean),
|
|
1446
|
-
clarifyTimeoutError: te.transitional(te.boolean)
|
|
1447
|
-
}, !1), o != null && (u.isFunction(o) ? n.paramsSerializer = {
|
|
1448
|
-
serialize: o
|
|
1449
|
-
} : lt.assertOptions(o, {
|
|
1450
|
-
encode: te.function,
|
|
1451
|
-
serialize: te.function
|
|
1452
|
-
}, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
1453
|
-
let i = s && u.merge(
|
|
1454
|
-
s.common,
|
|
1455
|
-
s[n.method]
|
|
1456
|
-
);
|
|
1457
|
-
s && u.forEach(
|
|
1458
|
-
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
1459
|
-
(w) => {
|
|
1460
|
-
delete s[w];
|
|
1461
|
-
}
|
|
1462
|
-
), n.headers = q.concat(i, s);
|
|
1463
|
-
const l = [];
|
|
1464
|
-
let f = !0;
|
|
1465
|
-
this.interceptors.request.forEach(function(R) {
|
|
1466
|
-
typeof R.runWhen == "function" && R.runWhen(n) === !1 || (f = f && R.synchronous, l.unshift(R.fulfilled, R.rejected));
|
|
1467
|
-
});
|
|
1468
|
-
const c = [];
|
|
1469
|
-
this.interceptors.response.forEach(function(R) {
|
|
1470
|
-
c.push(R.fulfilled, R.rejected);
|
|
1471
|
-
});
|
|
1472
|
-
let d, g = 0, O;
|
|
1473
|
-
if (!f) {
|
|
1474
|
-
const w = [tn.bind(this), void 0];
|
|
1475
|
-
for (w.unshift.apply(w, l), w.push.apply(w, c), O = w.length, d = Promise.resolve(n); g < O; )
|
|
1476
|
-
d = d.then(w[g++], w[g++]);
|
|
1477
|
-
return d;
|
|
1478
|
-
}
|
|
1479
|
-
O = l.length;
|
|
1480
|
-
let k = n;
|
|
1481
|
-
for (g = 0; g < O; ) {
|
|
1482
|
-
const w = l[g++], R = l[g++];
|
|
1483
|
-
try {
|
|
1484
|
-
k = w(k);
|
|
1485
|
-
} catch (p) {
|
|
1486
|
-
R.call(this, p);
|
|
1487
|
-
break;
|
|
1488
|
-
}
|
|
1489
|
-
}
|
|
1490
|
-
try {
|
|
1491
|
-
d = tn.call(this, k);
|
|
1492
|
-
} catch (w) {
|
|
1493
|
-
return Promise.reject(w);
|
|
1494
|
-
}
|
|
1495
|
-
for (g = 0, O = c.length; g < O; )
|
|
1496
|
-
d = d.then(c[g++], c[g++]);
|
|
1497
|
-
return d;
|
|
1498
|
-
}
|
|
1499
|
-
getUri(t) {
|
|
1500
|
-
t = ie(this.defaults, t);
|
|
1501
|
-
const n = Sn(t.baseURL, t.url);
|
|
1502
|
-
return gn(n, t.params, t.paramsSerializer);
|
|
1503
|
-
}
|
|
1504
|
-
}
|
|
1505
|
-
u.forEach(["delete", "get", "head", "options"], function(t) {
|
|
1506
|
-
se.prototype[t] = function(n, r) {
|
|
1507
|
-
return this.request(ie(r || {}, {
|
|
1508
|
-
method: t,
|
|
1509
|
-
url: n,
|
|
1510
|
-
data: (r || {}).data
|
|
1511
|
-
}));
|
|
1512
|
-
};
|
|
1513
|
-
});
|
|
1514
|
-
u.forEach(["post", "put", "patch"], function(t) {
|
|
1515
|
-
function n(r) {
|
|
1516
|
-
return function(s, i, l) {
|
|
1517
|
-
return this.request(ie(l || {}, {
|
|
1518
|
-
method: t,
|
|
1519
|
-
headers: r ? {
|
|
1520
|
-
"Content-Type": "multipart/form-data"
|
|
1521
|
-
} : {},
|
|
1522
|
-
url: s,
|
|
1523
|
-
data: i
|
|
1524
|
-
}));
|
|
1525
|
-
};
|
|
1526
|
-
}
|
|
1527
|
-
se.prototype[t] = n(), se.prototype[t + "Form"] = n(!0);
|
|
1528
|
-
});
|
|
1529
|
-
class gt {
|
|
1530
|
-
constructor(t) {
|
|
1531
|
-
if (typeof t != "function")
|
|
1532
|
-
throw new TypeError("executor must be a function.");
|
|
1533
|
-
let n;
|
|
1534
|
-
this.promise = new Promise(function(s) {
|
|
1535
|
-
n = s;
|
|
1536
|
-
});
|
|
1537
|
-
const r = this;
|
|
1538
|
-
this.promise.then((o) => {
|
|
1539
|
-
if (!r._listeners) return;
|
|
1540
|
-
let s = r._listeners.length;
|
|
1541
|
-
for (; s-- > 0; )
|
|
1542
|
-
r._listeners[s](o);
|
|
1543
|
-
r._listeners = null;
|
|
1544
|
-
}), this.promise.then = (o) => {
|
|
1545
|
-
let s;
|
|
1546
|
-
const i = new Promise((l) => {
|
|
1547
|
-
r.subscribe(l), s = l;
|
|
1548
|
-
}).then(o);
|
|
1549
|
-
return i.cancel = function() {
|
|
1550
|
-
r.unsubscribe(s);
|
|
1551
|
-
}, i;
|
|
1552
|
-
}, t(function(s, i, l) {
|
|
1553
|
-
r.reason || (r.reason = new fe(s, i, l), n(r.reason));
|
|
1554
|
-
});
|
|
1555
|
-
}
|
|
1556
|
-
/**
|
|
1557
|
-
* Throws a `CanceledError` if cancellation has been requested.
|
|
1558
|
-
*/
|
|
1559
|
-
throwIfRequested() {
|
|
1560
|
-
if (this.reason)
|
|
1561
|
-
throw this.reason;
|
|
1562
|
-
}
|
|
1563
|
-
/**
|
|
1564
|
-
* Subscribe to the cancel signal
|
|
1565
|
-
*/
|
|
1566
|
-
subscribe(t) {
|
|
1567
|
-
if (this.reason) {
|
|
1568
|
-
t(this.reason);
|
|
1569
|
-
return;
|
|
1570
|
-
}
|
|
1571
|
-
this._listeners ? this._listeners.push(t) : this._listeners = [t];
|
|
1572
|
-
}
|
|
1573
|
-
/**
|
|
1574
|
-
* Unsubscribe from the cancel signal
|
|
1575
|
-
*/
|
|
1576
|
-
unsubscribe(t) {
|
|
1577
|
-
if (!this._listeners)
|
|
1578
|
-
return;
|
|
1579
|
-
const n = this._listeners.indexOf(t);
|
|
1580
|
-
n !== -1 && this._listeners.splice(n, 1);
|
|
1581
|
-
}
|
|
1582
|
-
toAbortSignal() {
|
|
1583
|
-
const t = new AbortController(), n = (r) => {
|
|
1584
|
-
t.abort(r);
|
|
1585
|
-
};
|
|
1586
|
-
return this.subscribe(n), t.signal.unsubscribe = () => this.unsubscribe(n), t.signal;
|
|
1587
|
-
}
|
|
1588
|
-
/**
|
|
1589
|
-
* Returns an object that contains a new `CancelToken` and a function that, when called,
|
|
1590
|
-
* cancels the `CancelToken`.
|
|
1591
|
-
*/
|
|
1592
|
-
static source() {
|
|
1593
|
-
let t;
|
|
1594
|
-
return {
|
|
1595
|
-
token: new gt(function(o) {
|
|
1596
|
-
t = o;
|
|
1597
|
-
}),
|
|
1598
|
-
cancel: t
|
|
1599
|
-
};
|
|
1600
|
-
}
|
|
1601
|
-
}
|
|
1602
|
-
function ia(e) {
|
|
1603
|
-
return function(n) {
|
|
1604
|
-
return e.apply(null, n);
|
|
1605
|
-
};
|
|
1606
|
-
}
|
|
1607
|
-
function la(e) {
|
|
1608
|
-
return u.isObject(e) && e.isAxiosError === !0;
|
|
1609
|
-
}
|
|
1610
|
-
const ut = {
|
|
1611
|
-
Continue: 100,
|
|
1612
|
-
SwitchingProtocols: 101,
|
|
1613
|
-
Processing: 102,
|
|
1614
|
-
EarlyHints: 103,
|
|
1615
|
-
Ok: 200,
|
|
1616
|
-
Created: 201,
|
|
1617
|
-
Accepted: 202,
|
|
1618
|
-
NonAuthoritativeInformation: 203,
|
|
1619
|
-
NoContent: 204,
|
|
1620
|
-
ResetContent: 205,
|
|
1621
|
-
PartialContent: 206,
|
|
1622
|
-
MultiStatus: 207,
|
|
1623
|
-
AlreadyReported: 208,
|
|
1624
|
-
ImUsed: 226,
|
|
1625
|
-
MultipleChoices: 300,
|
|
1626
|
-
MovedPermanently: 301,
|
|
1627
|
-
Found: 302,
|
|
1628
|
-
SeeOther: 303,
|
|
1629
|
-
NotModified: 304,
|
|
1630
|
-
UseProxy: 305,
|
|
1631
|
-
Unused: 306,
|
|
1632
|
-
TemporaryRedirect: 307,
|
|
1633
|
-
PermanentRedirect: 308,
|
|
1634
|
-
BadRequest: 400,
|
|
1635
|
-
Unauthorized: 401,
|
|
1636
|
-
PaymentRequired: 402,
|
|
1637
|
-
Forbidden: 403,
|
|
1638
|
-
NotFound: 404,
|
|
1639
|
-
MethodNotAllowed: 405,
|
|
1640
|
-
NotAcceptable: 406,
|
|
1641
|
-
ProxyAuthenticationRequired: 407,
|
|
1642
|
-
RequestTimeout: 408,
|
|
1643
|
-
Conflict: 409,
|
|
1644
|
-
Gone: 410,
|
|
1645
|
-
LengthRequired: 411,
|
|
1646
|
-
PreconditionFailed: 412,
|
|
1647
|
-
PayloadTooLarge: 413,
|
|
1648
|
-
UriTooLong: 414,
|
|
1649
|
-
UnsupportedMediaType: 415,
|
|
1650
|
-
RangeNotSatisfiable: 416,
|
|
1651
|
-
ExpectationFailed: 417,
|
|
1652
|
-
ImATeapot: 418,
|
|
1653
|
-
MisdirectedRequest: 421,
|
|
1654
|
-
UnprocessableEntity: 422,
|
|
1655
|
-
Locked: 423,
|
|
1656
|
-
FailedDependency: 424,
|
|
1657
|
-
TooEarly: 425,
|
|
1658
|
-
UpgradeRequired: 426,
|
|
1659
|
-
PreconditionRequired: 428,
|
|
1660
|
-
TooManyRequests: 429,
|
|
1661
|
-
RequestHeaderFieldsTooLarge: 431,
|
|
1662
|
-
UnavailableForLegalReasons: 451,
|
|
1663
|
-
InternalServerError: 500,
|
|
1664
|
-
NotImplemented: 501,
|
|
1665
|
-
BadGateway: 502,
|
|
1666
|
-
ServiceUnavailable: 503,
|
|
1667
|
-
GatewayTimeout: 504,
|
|
1668
|
-
HttpVersionNotSupported: 505,
|
|
1669
|
-
VariantAlsoNegotiates: 506,
|
|
1670
|
-
InsufficientStorage: 507,
|
|
1671
|
-
LoopDetected: 508,
|
|
1672
|
-
NotExtended: 510,
|
|
1673
|
-
NetworkAuthenticationRequired: 511
|
|
1674
|
-
};
|
|
1675
|
-
Object.entries(ut).forEach(([e, t]) => {
|
|
1676
|
-
ut[t] = e;
|
|
1677
|
-
});
|
|
1678
|
-
function On(e) {
|
|
1679
|
-
const t = new se(e), n = on(se.prototype.request, t);
|
|
1680
|
-
return u.extend(n, se.prototype, t, { allOwnKeys: !0 }), u.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(o) {
|
|
1681
|
-
return On(ie(e, o));
|
|
1682
|
-
}, n;
|
|
1683
|
-
}
|
|
1684
|
-
const N = On(ve);
|
|
1685
|
-
N.Axios = se;
|
|
1686
|
-
N.CanceledError = fe;
|
|
1687
|
-
N.CancelToken = gt;
|
|
1688
|
-
N.isCancel = vn;
|
|
1689
|
-
N.VERSION = Tn;
|
|
1690
|
-
N.toFormData = Me;
|
|
1691
|
-
N.AxiosError = T;
|
|
1692
|
-
N.Cancel = N.CanceledError;
|
|
1693
|
-
N.all = function(t) {
|
|
1694
|
-
return Promise.all(t);
|
|
1695
|
-
};
|
|
1696
|
-
N.spread = ia;
|
|
1697
|
-
N.isAxiosError = la;
|
|
1698
|
-
N.mergeConfig = ie;
|
|
1699
|
-
N.AxiosHeaders = q;
|
|
1700
|
-
N.formToJSON = (e) => wn(u.isHTMLForm(e) ? new FormData(e) : e);
|
|
1701
|
-
N.getAdapter = kn.getAdapter;
|
|
1702
|
-
N.HttpStatusCode = ut;
|
|
1703
|
-
N.default = N;
|
|
1704
|
-
const ua = {
|
|
1705
|
-
key: 0,
|
|
1706
|
-
class: "vuetable-th-component-checkbox"
|
|
1707
|
-
}, ca = ["checked"], fa = {
|
|
1708
|
-
key: 1,
|
|
1709
|
-
class: "vuetable-td-component-checkbox"
|
|
1710
|
-
}, da = ["checked"], xn = /* @__PURE__ */ X({
|
|
1711
|
-
name: "vuetable-field-checkbox",
|
|
1712
|
-
__name: "VuetableFieldCheckbox",
|
|
1713
|
-
props: {
|
|
1714
|
-
rowData: {},
|
|
1715
|
-
rowIndex: {},
|
|
1716
|
-
rowField: { default: null },
|
|
1717
|
-
isHeader: { type: Boolean, default: !1 },
|
|
1718
|
-
title: {}
|
|
1719
|
-
},
|
|
1720
|
-
setup(e) {
|
|
1721
|
-
const t = ue("vuetable"), n = j(null);
|
|
1722
|
-
function r(l, f) {
|
|
1723
|
-
var c;
|
|
1724
|
-
t.onCheckboxToggled(f.target.checked, (c = e.rowField) == null ? void 0 : c.name, l);
|
|
1725
|
-
}
|
|
1726
|
-
function o(l) {
|
|
1727
|
-
t.onCheckboxToggledAll(l.target.checked);
|
|
1728
|
-
}
|
|
1729
|
-
function s(l) {
|
|
1730
|
-
return t.isSelectedRow(l[t.trackBy]);
|
|
1731
|
-
}
|
|
1732
|
-
function i() {
|
|
1733
|
-
var d;
|
|
1734
|
-
if (!t.tableData) return;
|
|
1735
|
-
const l = t.trackBy, f = (d = n.value) == null ? void 0 : d.$el.querySelector("input[type=checkbox]"), c = t.tableData.filter((g) => t.isSelectedRow(g[l]));
|
|
1736
|
-
return c.length <= 0 ? (f.indeterminate = !1, !1) : c.length < t.perPage ? (f.indeterminate = !0, !0) : (f.indeterminate = !1, !0);
|
|
1737
|
-
}
|
|
1738
|
-
return (l, f) => l.isHeader ? (S(), E("th", ua, [
|
|
1739
|
-
H("input", {
|
|
1740
|
-
checked: i(),
|
|
1741
|
-
type: "checkbox",
|
|
1742
|
-
onChange: f[0] || (f[0] = (c) => o(c))
|
|
1743
|
-
}, null, 40, ca)
|
|
1744
|
-
])) : (S(), E("td", fa, [
|
|
1745
|
-
H("input", {
|
|
1746
|
-
ref_key: "checkbox",
|
|
1747
|
-
ref: n,
|
|
1748
|
-
checked: s(l.rowData),
|
|
1749
|
-
type: "checkbox",
|
|
1750
|
-
onChange: f[1] || (f[1] = (c) => r(l.rowData, c))
|
|
1751
|
-
}, null, 40, da)
|
|
1752
|
-
]));
|
|
1753
|
-
}
|
|
1754
|
-
}), ha = ["innerHTML"], pa = ["innerHTML"], An = /* @__PURE__ */ X({
|
|
1755
|
-
name: "vuetable-field-handle",
|
|
1756
|
-
__name: "VuetableFieldHandle",
|
|
1757
|
-
props: {
|
|
1758
|
-
isHeader: { type: Boolean, default: !1 },
|
|
1759
|
-
title: { default: "" }
|
|
1760
|
-
},
|
|
1761
|
-
setup(e) {
|
|
1762
|
-
const t = ue("vuetable");
|
|
1763
|
-
function n(r, o = "") {
|
|
1764
|
-
return typeof t.css.renderIcon > "u" ? `<i class="${r.join(" ")}" ${o}></i>` : t.css.renderIcon(r, o);
|
|
1765
|
-
}
|
|
1766
|
-
return (r, o) => r.isHeader ? (S(), E("th", {
|
|
1767
|
-
key: 0,
|
|
1768
|
-
class: "vuetable-th-component-handle",
|
|
1769
|
-
innerHTML: r.title
|
|
1770
|
-
}, null, 8, ha)) : (S(), E("td", {
|
|
1771
|
-
key: 1,
|
|
1772
|
-
class: "vuetable-td-component-handle",
|
|
1773
|
-
innerHTML: n(["handle-icon", r.css.handleIcon])
|
|
1774
|
-
}, null, 8, pa));
|
|
1775
|
-
}
|
|
1776
|
-
}), ma = ["innerHTML"], ba = ["innerHTML"], Fn = /* @__PURE__ */ X({
|
|
1777
|
-
name: "vuetable-field-sequence",
|
|
1778
|
-
__name: "VuetableFieldSequence",
|
|
1779
|
-
props: {
|
|
1780
|
-
rowIndex: { default: 0 },
|
|
1781
|
-
isHeader: { type: Boolean, default: !1 },
|
|
1782
|
-
title: { default: "" }
|
|
1783
|
-
},
|
|
1784
|
-
setup(e) {
|
|
1785
|
-
const t = ue("vuetable");
|
|
1786
|
-
function n() {
|
|
1787
|
-
return t.tablePagination ? t.tablePagination.from + e.rowIndex : 1 + e.rowIndex;
|
|
1788
|
-
}
|
|
1789
|
-
return (r, o) => r.isHeader ? (S(), E("th", {
|
|
1790
|
-
key: 0,
|
|
1791
|
-
class: "vuetable-th-component-sequence",
|
|
1792
|
-
innerHTML: r.title
|
|
1793
|
-
}, null, 8, ma)) : (S(), E("td", {
|
|
1794
|
-
key: 1,
|
|
1795
|
-
class: "vuetable-td-component-sequence",
|
|
1796
|
-
innerHTML: n()
|
|
1797
|
-
}, null, 8, ba));
|
|
1798
|
-
}
|
|
1799
|
-
}), ga = /* @__PURE__ */ X({
|
|
1800
|
-
name: "vuetable-th-gutter",
|
|
1801
|
-
__name: "VuetableColGutter",
|
|
1802
|
-
setup(e) {
|
|
1803
|
-
const t = ue("vuetable");
|
|
1804
|
-
return (n, r) => (S(), E("th", {
|
|
1805
|
-
style: G({ width: b(t).scrollBarWidth }),
|
|
1806
|
-
class: "vuetable-th-gutter"
|
|
1807
|
-
}, null, 4));
|
|
1808
|
-
}
|
|
1809
|
-
}), ya = (e, t) => {
|
|
1810
|
-
const n = e.__vccOpts || e;
|
|
1811
|
-
for (const [r, o] of t)
|
|
1812
|
-
n[r] = o;
|
|
1813
|
-
return n;
|
|
1814
|
-
}, Dn = /* @__PURE__ */ ya(ga, [["__scopeId", "data-v-b704a04a"]]), wa = ["innerHTML", "onClick"], va = ["id", "innerHTML", "onClick"], Bn = /* @__PURE__ */ X({
|
|
1815
|
-
name: "vuetable-row-header",
|
|
1816
|
-
components: {
|
|
1817
|
-
"vuetable-field-checkbox": xn,
|
|
1818
|
-
"vuetable-field-handle": An,
|
|
1819
|
-
"vuetable-field-sequence": Fn
|
|
1820
|
-
},
|
|
1821
|
-
__name: "VuetableRowHeader",
|
|
1822
|
-
setup(e, { expose: t }) {
|
|
1823
|
-
const n = ue("vuetable");
|
|
1824
|
-
t({
|
|
1825
|
-
stripPrefix: r,
|
|
1826
|
-
isInCurrentSortGroup: f,
|
|
1827
|
-
hasSortableIcon: c,
|
|
1828
|
-
currentSortOrderPosition: d,
|
|
1829
|
-
fieldIsInSortOrderPosition: g
|
|
1830
|
-
});
|
|
1831
|
-
function r(m) {
|
|
1832
|
-
return m.replace(n.fieldPrefix, "");
|
|
1833
|
-
}
|
|
1834
|
-
function o(m, y) {
|
|
1835
|
-
return [
|
|
1836
|
-
`${m}-${s(y.name)}`,
|
|
1837
|
-
y.titleClass || "",
|
|
1838
|
-
i(y),
|
|
1839
|
-
{ sortable: n.isSortable(y) }
|
|
1840
|
-
];
|
|
1841
|
-
}
|
|
1842
|
-
function s(m) {
|
|
1843
|
-
return typeof m == "string" && m.replace(/([A-Z])/g, (y) => "_" + y.toLowerCase()).replace(" ", "_").replace(".", "_");
|
|
1844
|
-
}
|
|
1845
|
-
function i(m) {
|
|
1846
|
-
const y = d(m);
|
|
1847
|
-
return y ? n.sortOrder[y].direction == "asc" ? n.css.ascendingClass : n.css.descendingClass : "";
|
|
1848
|
-
}
|
|
1849
|
-
function l(m) {
|
|
1850
|
-
const y = d(m);
|
|
1851
|
-
return y ? n.css.sortableIcon : n.sortOrder[y].direction == "asc" ? n.css.ascendingIcon : n.css.descendingIcon;
|
|
1852
|
-
}
|
|
1853
|
-
function f(m) {
|
|
1854
|
-
return !!d(m);
|
|
1855
|
-
}
|
|
1856
|
-
function c(m) {
|
|
1857
|
-
return n.isSortable(m) && n.css.sortableIcon != "";
|
|
1858
|
-
}
|
|
1859
|
-
function d(m) {
|
|
1860
|
-
if (!n.isSortable(m))
|
|
1861
|
-
return 0;
|
|
1862
|
-
for (let y = 0; y < n.sortOrder.length; y++)
|
|
1863
|
-
if (g(m, y))
|
|
1864
|
-
return y;
|
|
1865
|
-
return 0;
|
|
1866
|
-
}
|
|
1867
|
-
function g(m, y) {
|
|
1868
|
-
return n.sortOrder[y].field === m.name && n.sortOrder[y].sortField === m.sortField;
|
|
1869
|
-
}
|
|
1870
|
-
function O(m) {
|
|
1871
|
-
const y = k(m);
|
|
1872
|
-
if (y.length > 0 && f(m) || c(m)) {
|
|
1873
|
-
const P = `opacity:${w(m)};position:relative;float:right`, x = n.showSortIcons ? R(["sort-icon", l(m)], `style="${P}"`) : "";
|
|
1874
|
-
return y + " " + x;
|
|
1875
|
-
}
|
|
1876
|
-
return y;
|
|
1877
|
-
}
|
|
1878
|
-
function k(m) {
|
|
1879
|
-
return typeof m.title == "function" ? m.title() : typeof m.title > "u" ? m.name.toString().replace(".", " ") : m.title;
|
|
1880
|
-
}
|
|
1881
|
-
function w(m) {
|
|
1882
|
-
let x = 0.3;
|
|
1883
|
-
const A = n.sortOrder.length, M = d(m);
|
|
1884
|
-
return 1 - A * x < 0.3 && (x = (1 - 0.3) / (A - 1)), 1 - M * x;
|
|
1885
|
-
}
|
|
1886
|
-
function R(m, y = "") {
|
|
1887
|
-
return typeof n.css.renderIcon > "u" ? `<i class="${m.join(" ")}" ${y}></i>` : n.css.renderIcon(m, y);
|
|
1888
|
-
}
|
|
1889
|
-
function p(m, y) {
|
|
1890
|
-
n.orderBy(m, y);
|
|
1891
|
-
}
|
|
1892
|
-
return (m, y) => (S(), E("tr", null, [
|
|
1893
|
-
(S(!0), E($, null, W(b(n).tableFields, (P, x) => (S(), E($, null, [
|
|
1894
|
-
P.visible ? (S(), E($, { key: 0 }, [
|
|
1895
|
-
b(n).isFieldComponent(P.name) ? (S(), oe(be(P.name), {
|
|
1896
|
-
key: x,
|
|
1897
|
-
"is-header": "",
|
|
1898
|
-
"row-field": P,
|
|
1899
|
-
title: O(P),
|
|
1900
|
-
class: F(o("vuetable-th-component", P)),
|
|
1901
|
-
style: G({ width: P.width }),
|
|
1902
|
-
"onVuetable:headerEvent": b(n).onHeaderEvent,
|
|
1903
|
-
onClick: (A) => p(P, A)
|
|
1904
|
-
}, null, 40, ["row-field", "title", "class", "style", "onVuetable:headerEvent", "onClick"])) : b(n).isFieldSlot(P.name) ? (S(), E("th", {
|
|
1905
|
-
key: x,
|
|
1906
|
-
class: F(o("vuetable-th-slot", P)),
|
|
1907
|
-
style: G({ width: P.width }),
|
|
1908
|
-
innerHTML: O(P),
|
|
1909
|
-
onClick: (A) => p(P, A)
|
|
1910
|
-
}, null, 14, wa)) : (S(), E("th", {
|
|
1911
|
-
key: x,
|
|
1912
|
-
id: "_" + P.name,
|
|
1913
|
-
class: F(o("vuetable-th", P)),
|
|
1914
|
-
style: G({ width: P.width }),
|
|
1915
|
-
innerHTML: O(P),
|
|
1916
|
-
onClick: (A) => p(P, A)
|
|
1917
|
-
}, null, 14, va))
|
|
1918
|
-
], 64)) : _("", !0)
|
|
1919
|
-
], 64))), 256)),
|
|
1920
|
-
b(n).scrollVisible ? (S(), oe(Dn, { key: 0 })) : _("", !0)
|
|
1921
|
-
]));
|
|
1922
|
-
}
|
|
1923
|
-
}), nt = /* @__PURE__ */ X({
|
|
1924
|
-
name: "vuetable-col-group",
|
|
1925
|
-
__name: "VuetableColGroup",
|
|
1926
|
-
props: {
|
|
1927
|
-
isHeader: { type: Boolean, default: !1 }
|
|
1928
|
-
},
|
|
1929
|
-
setup(e) {
|
|
1930
|
-
const t = ue("vuetable");
|
|
1931
|
-
function n(r, o) {
|
|
1932
|
-
let s = typeof r.name == "object" && r.name !== null ? r.name.name : r.name;
|
|
1933
|
-
return s = s.replace(t.fieldPrefix, ""), [`vuetable-col-${s}`, r.titleClass, `${s}-${o}`];
|
|
1934
|
-
}
|
|
1935
|
-
return (r, o) => (S(), E("colgroup", null, [
|
|
1936
|
-
(S(!0), E($, null, W(b(t).tableFields, (s, i) => (S(), E($, null, [
|
|
1937
|
-
s.visible ? (S(), E("col", {
|
|
1938
|
-
key: i,
|
|
1939
|
-
style: G({ width: s.width }),
|
|
1940
|
-
class: F(n(s, i))
|
|
1941
|
-
}, null, 6)) : _("", !0)
|
|
1942
|
-
], 64))), 256)),
|
|
1943
|
-
r.isHeader && b(t).scrollVisible ? (S(), E("col", {
|
|
1944
|
-
key: 0,
|
|
1945
|
-
style: G({ width: b(t).scrollBarWidth }),
|
|
1946
|
-
class: "vuetable-col-gutter"
|
|
1947
|
-
}, null, 4)) : _("", !0)
|
|
1948
|
-
]));
|
|
1949
|
-
}
|
|
1950
|
-
}), de = {
|
|
1951
|
-
table: {
|
|
1952
|
-
tableWrapper: "",
|
|
1953
|
-
tableHeaderClass: "fixed",
|
|
1954
|
-
tableBodyClass: "fixed",
|
|
1955
|
-
tableClass: "ui blue selectable unstackable celled table",
|
|
1956
|
-
loadingClass: "loading",
|
|
1957
|
-
ascendingIcon: "blue chevron up icon",
|
|
1958
|
-
descendingIcon: "blue chevron down icon",
|
|
1959
|
-
ascendingClass: "sorted-asc",
|
|
1960
|
-
descendingClass: "sorted-desc",
|
|
1961
|
-
sortableIcon: "grey sort icon",
|
|
1962
|
-
handleIcon: "grey sidebar icon"
|
|
1963
|
-
},
|
|
1964
|
-
pagination: {
|
|
1965
|
-
wrapperClass: "ui right floated pagination menu",
|
|
1966
|
-
activeClass: "active large",
|
|
1967
|
-
disabledClass: "disabled",
|
|
1968
|
-
pageClass: "item",
|
|
1969
|
-
linkClass: "icon item",
|
|
1970
|
-
paginationClass: "ui bottom attached segment grid",
|
|
1971
|
-
paginationInfoClass: "left floated left aligned six wide column",
|
|
1972
|
-
dropdownClass: "ui search dropdown",
|
|
1973
|
-
icons: {
|
|
1974
|
-
first: "angle double left icon",
|
|
1975
|
-
prev: "left chevron icon",
|
|
1976
|
-
next: "right chevron icon",
|
|
1977
|
-
last: "angle double right icon"
|
|
1978
|
-
}
|
|
1979
|
-
},
|
|
1980
|
-
paginationInfo: {
|
|
1981
|
-
infoClass: "left floated left aligned six wide column"
|
|
1982
|
-
}
|
|
1983
|
-
}, Pa = {
|
|
1984
|
-
key: 0,
|
|
1985
|
-
class: "vuetable-head-wrapper"
|
|
1986
|
-
}, Sa = { key: 0 }, Ca = { class: "vuetable-body" }, Ea = ["item-index", "onClick", "onDblclick", "onMouseover"], Ra = ["innerHTML", "onClick", "onDblclick", "onContextmenu"], ka = ["onClick"], Ta = ["colspan"], Oa = { key: 0 }, xa = ["colspan", "innerHTML"], Ln = /* @__PURE__ */ X({
|
|
1987
|
-
name: "Vuetable",
|
|
1988
|
-
components: {
|
|
1989
|
-
VuetableRowHeader: Bn,
|
|
1990
|
-
VuetableColGroup: nt
|
|
1991
|
-
},
|
|
1992
|
-
__name: "Vuetable",
|
|
1993
|
-
props: {
|
|
1994
|
-
fields: {},
|
|
1995
|
-
loadOnStart: { type: Boolean, default: !0 },
|
|
1996
|
-
apiUrl: { default: "" },
|
|
1997
|
-
httpMethod: { default: "get" },
|
|
1998
|
-
reactiveApiUrl: { type: Boolean, default: !0 },
|
|
1999
|
-
apiMode: { type: Boolean, default: !0 },
|
|
2000
|
-
data: { default: null },
|
|
2001
|
-
dataManager: { type: [Function, null], default: null },
|
|
2002
|
-
dataPath: { default: "data" },
|
|
2003
|
-
paginationPath: { default: "links.pagination" },
|
|
2004
|
-
queryParams: { type: [Object, Function], default: () => ({
|
|
2005
|
-
sort: "sort",
|
|
2006
|
-
page: "page",
|
|
2007
|
-
perPage: "per_page"
|
|
2008
|
-
}) },
|
|
2009
|
-
appendParams: { default: () => ({}) },
|
|
2010
|
-
httpOptions: { default: () => ({}) },
|
|
2011
|
-
httpFetch: { type: [Function, null], default: null },
|
|
2012
|
-
perPage: { default: 10 },
|
|
2013
|
-
initialPage: { default: 1 },
|
|
2014
|
-
firstPage: { default: 1 },
|
|
2015
|
-
sortOrder: { default: () => [] },
|
|
2016
|
-
multiSort: { type: Boolean, default: !1 },
|
|
2017
|
-
tableHeight: { default: null },
|
|
2018
|
-
multiSortKey: { default: "alt" },
|
|
2019
|
-
rowClass: { type: [String, Function], default: "" },
|
|
2020
|
-
detailRowComponent: { default: "" },
|
|
2021
|
-
detailRowTransition: { default: "" },
|
|
2022
|
-
detailRowClass: { type: [String, Function], default: "vuetable-detail-row" },
|
|
2023
|
-
detailRowOptions: { default: () => ({}) },
|
|
2024
|
-
trackBy: { default: "id" },
|
|
2025
|
-
css: { default: () => ({}) },
|
|
2026
|
-
minRows: { default: 0 },
|
|
2027
|
-
silent: { type: Boolean, default: !1 },
|
|
2028
|
-
noDataTemplate: { default: "No Data Available" },
|
|
2029
|
-
showSortIcons: { type: Boolean, default: !0 },
|
|
2030
|
-
headerRows: { default: () => ["VuetableRowHeader"] },
|
|
2031
|
-
transform: { type: [Function, null], default: null },
|
|
2032
|
-
sortParams: { type: [Function, null], default: null },
|
|
2033
|
-
fieldPrefix: { default: "vuetable-field-" }
|
|
2034
|
-
},
|
|
2035
|
-
emits: ["vuetable:load-error", "vuetable:load-success", "vuetable:loaded", "vuetable:loading", "vuetable:scrollbar-visible", "vuetable:pagination-data", "vuetable:row-clicked", "vuetable:row-dblclicked", "vuetable:detail-row-clicked", "vuetable:cell-clicked", "vuetable:cell-dblclicked", "vuetable:cell-rightclicked", "vuetable:row-mouseover", "vuetable:field-event", "vuetable:header-event", "vuetable:checkbox-toggled", "vuetable:checkbox-toggled-all", "vuetable:data-reset", "vuetable:initialized"],
|
|
2036
|
-
setup(e, { expose: t, emit: n }) {
|
|
2037
|
-
const r = n, o = Cr(), s = Or(), i = j(), l = j([]), f = j(null), c = j(null), d = j(e.initialPage), g = j([]), O = j([]), k = j(0), w = j("17px"), R = j(!1), p = j(e.sortOrder), m = j(e.httpOptions), y = j(), P = dt({ ...de.table, ...e.css }), x = L(() => {
|
|
2038
|
-
var a, h;
|
|
2039
|
-
return (a = f.value) != null && a.length ? ((h = f.value) == null ? void 0 : h.length) > 0 : !1;
|
|
2040
|
-
}), A = L(() => x.value && e.detailRowComponent !== ""), M = L(() => f.value && typeof f.value[0][e.trackBy] < "u"), z = L(() => l.value.filter((a) => a.visible).length), Z = L(() => {
|
|
2041
|
-
var a;
|
|
2042
|
-
return ((a = f.value) == null ? void 0 : a.length) || 0;
|
|
2043
|
-
}), le = L(() => Z.value === 0 && e.noDataTemplate.length > 0), yt = L(() => {
|
|
2044
|
-
var a;
|
|
2045
|
-
return f.value === null || ((a = f.value) == null ? void 0 : a.length) === 0;
|
|
2046
|
-
}), Ue = L(() => yt.value ? !0 : f.value.length < e.minRows), qe = L(() => yt.value ? e.minRows : f.value.length >= e.minRows ? 0 : e.minRows - f.value.length), Ve = L(() => e.apiMode), In = L(() => !e.apiMode), he = L(() => e.tableHeight != null);
|
|
2047
|
-
vt(), ir(), xe(() => {
|
|
2048
|
-
r("vuetable:initialized", l.value);
|
|
2049
|
-
}), xr(() => {
|
|
2050
|
-
if (e.loadOnStart && Q(), he) {
|
|
2051
|
-
w.value = Un() + "px";
|
|
2052
|
-
let a = i.value.getElementsByClassName("vuetable-body-wrapper")[0];
|
|
2053
|
-
a != null && a.addEventListener("scroll", wt);
|
|
2054
|
-
}
|
|
2055
|
-
}), Ar(() => {
|
|
2056
|
-
let a = i.value.getElementsByClassName("vuetable-body-wrapper")[0];
|
|
2057
|
-
a != null && a.removeEventListener("scroll", wt);
|
|
2058
|
-
}), t({
|
|
2059
|
-
apiUrl: e.apiUrl,
|
|
2060
|
-
isApiMode: Ve,
|
|
2061
|
-
tableFields: l,
|
|
2062
|
-
tableData: f,
|
|
2063
|
-
tablePagination: c,
|
|
2064
|
-
fieldPrefix: e.fieldPrefix,
|
|
2065
|
-
countVisibleFields: z,
|
|
2066
|
-
dataIsAvailable: x,
|
|
2067
|
-
countTableData: Z,
|
|
2068
|
-
displayEmptyDataRow: le,
|
|
2069
|
-
useDetailRow: A,
|
|
2070
|
-
hasRowIdentifier: M,
|
|
2071
|
-
lessThanMinRows: Ue,
|
|
2072
|
-
blankRows: qe,
|
|
2073
|
-
scrollVisible: R,
|
|
2074
|
-
scrollBarWidth: w,
|
|
2075
|
-
trackBy: e.trackBy,
|
|
2076
|
-
showSortIcons: e.showSortIcons,
|
|
2077
|
-
instanceFetch: y,
|
|
2078
|
-
isFieldSlot: _e,
|
|
2079
|
-
onHeaderEvent: Te,
|
|
2080
|
-
setData: ne,
|
|
2081
|
-
getFieldTitle: St,
|
|
2082
|
-
orderBy: kt,
|
|
2083
|
-
camelCase: Et,
|
|
2084
|
-
clearSortOrder: Ot,
|
|
2085
|
-
toggleDetailRow: Bt,
|
|
2086
|
-
clearSelectedValues: Dt,
|
|
2087
|
-
showField: Lt,
|
|
2088
|
-
hideField: Nt,
|
|
2089
|
-
toggleField: Ht,
|
|
2090
|
-
onCheckboxToggled: $t,
|
|
2091
|
-
onCheckboxToggledAll: jt,
|
|
2092
|
-
checkIfRowIdentifierExists: Se,
|
|
2093
|
-
changePage: Mt,
|
|
2094
|
-
resetData: It,
|
|
2095
|
-
refresh: Qe,
|
|
2096
|
-
isFieldComponent: Ee,
|
|
2097
|
-
makeTitle: Ce,
|
|
2098
|
-
getAllQueryParams: Ke,
|
|
2099
|
-
isSortable: Re,
|
|
2100
|
-
getDefaultSortParam: Ge,
|
|
2101
|
-
getObjectValue: Y,
|
|
2102
|
-
isSelectedRow: Xe,
|
|
2103
|
-
loadData: Q
|
|
2104
|
-
}), Fr("vuetable", {
|
|
2105
|
-
isApiMode: Ve,
|
|
2106
|
-
fieldPrefix: e.fieldPrefix,
|
|
2107
|
-
tableFields: I(l),
|
|
2108
|
-
tableData: I(f),
|
|
2109
|
-
tablePagination: I(c),
|
|
2110
|
-
countVisibleFields: I(z),
|
|
2111
|
-
dataIsAvailable: I(x),
|
|
2112
|
-
countTableData: I(Z),
|
|
2113
|
-
displayEmptyDataRow: I(le),
|
|
2114
|
-
useDetailRow: I(A),
|
|
2115
|
-
hasRowIdentifier: I(M),
|
|
2116
|
-
lessThanMinRows: I(Ue),
|
|
2117
|
-
blankRows: I(qe),
|
|
2118
|
-
scrollVisible: I(R),
|
|
2119
|
-
scrollBarWidth: I(w),
|
|
2120
|
-
sortOrder: e.sortOrder,
|
|
2121
|
-
trackBy: e.trackBy,
|
|
2122
|
-
perPage: e.perPage,
|
|
2123
|
-
showSortIcons: e.showSortIcons,
|
|
2124
|
-
css: Dr(P),
|
|
2125
|
-
isFieldSlot: _e,
|
|
2126
|
-
onHeaderEvent: Te,
|
|
2127
|
-
setData: ne,
|
|
2128
|
-
getFieldTitle: St,
|
|
2129
|
-
orderBy: kt,
|
|
2130
|
-
camelCase: Et,
|
|
2131
|
-
clearSortOrder: Ot,
|
|
2132
|
-
toggleDetailRow: Bt,
|
|
2133
|
-
clearSelectedValues: Dt,
|
|
2134
|
-
showField: Lt,
|
|
2135
|
-
hideField: Nt,
|
|
2136
|
-
toggleField: Ht,
|
|
2137
|
-
onCheckboxToggled: $t,
|
|
2138
|
-
onCheckboxToggledAll: jt,
|
|
2139
|
-
checkIfRowIdentifierExists: Se,
|
|
2140
|
-
changePage: Mt,
|
|
2141
|
-
resetData: It,
|
|
2142
|
-
refresh: Qe,
|
|
2143
|
-
isFieldComponent: Ee,
|
|
2144
|
-
makeTitle: Ce,
|
|
2145
|
-
getAllQueryParams: Ke,
|
|
2146
|
-
isSortable: Re,
|
|
2147
|
-
getDefaultSortParam: Ge,
|
|
2148
|
-
getObjectValue: Y,
|
|
2149
|
-
isSelectedRow: Xe
|
|
2150
|
-
});
|
|
2151
|
-
function Un() {
|
|
2152
|
-
const a = document.createElement("div"), h = document.createElement("div");
|
|
2153
|
-
a.style.visibility = "hidden", a.style.width = "100px", h.style.width = "100%", a.appendChild(h), document.body.appendChild(a);
|
|
2154
|
-
const v = a.offsetWidth;
|
|
2155
|
-
a.style.overflow = "scroll";
|
|
2156
|
-
const C = h.offsetWidth;
|
|
2157
|
-
return document.body.removeChild(a), v - C;
|
|
2158
|
-
}
|
|
2159
|
-
function wt(a) {
|
|
2160
|
-
var v;
|
|
2161
|
-
const h = (v = a.currentTarget) == null ? void 0 : v.scrollLeft;
|
|
2162
|
-
if (h != k.value) {
|
|
2163
|
-
let C = i.value.getElementsByClassName("vuetable-head-wrapper")[0];
|
|
2164
|
-
C != null && (C.scrollLeft = h), k.value = h;
|
|
2165
|
-
}
|
|
2166
|
-
}
|
|
2167
|
-
function Pe(a) {
|
|
2168
|
-
e.silent || console.warn(a);
|
|
2169
|
-
}
|
|
2170
|
-
function ze(a, h) {
|
|
2171
|
-
return [a, h.dataClass];
|
|
2172
|
-
}
|
|
2173
|
-
function vt() {
|
|
2174
|
-
if (typeof e.fields > "u") {
|
|
2175
|
-
Pe('You need to provide "fields" prop.');
|
|
2176
|
-
return;
|
|
2177
|
-
}
|
|
2178
|
-
l.value = [], e.fields.forEach((a, h) => {
|
|
2179
|
-
l.value.push(qn(a, h));
|
|
2180
|
-
});
|
|
2181
|
-
}
|
|
2182
|
-
function qn(a, h) {
|
|
2183
|
-
const v = {
|
|
2184
|
-
name: "",
|
|
2185
|
-
// title:
|
|
2186
|
-
// this allow the code to detect undefined title
|
|
2187
|
-
// and replace it with capitalized name instead
|
|
2188
|
-
titleClass: "",
|
|
2189
|
-
dataClass: "",
|
|
2190
|
-
sortField: null,
|
|
2191
|
-
formatter: null,
|
|
2192
|
-
visible: !0,
|
|
2193
|
-
width: null,
|
|
2194
|
-
$_index: h
|
|
2195
|
-
};
|
|
2196
|
-
if (typeof a == "string")
|
|
2197
|
-
return {
|
|
2198
|
-
...v,
|
|
2199
|
-
name: Pt(a),
|
|
2200
|
-
title: Ce(a)
|
|
2201
|
-
};
|
|
2202
|
-
const C = Object.assign({}, v, a);
|
|
2203
|
-
return C.name = Pt(C.name), C.title === void 0 && (C.title = Ce(C.name)), C.formatter !== null && typeof C.formatter != "function" && (console.error(C.name + " field formatter must be a function"), C.formatter = null), C;
|
|
2204
|
-
}
|
|
2205
|
-
function Pt(a) {
|
|
2206
|
-
return a instanceof Object ? a : a.replace("__", e.fieldPrefix);
|
|
2207
|
-
}
|
|
2208
|
-
function ne(a) {
|
|
2209
|
-
if (!(a === null || typeof a > "u")) {
|
|
2210
|
-
if (r("vuetable:loading"), Array.isArray(a)) {
|
|
2211
|
-
f.value = a, r("vuetable:loaded");
|
|
2212
|
-
return;
|
|
2213
|
-
}
|
|
2214
|
-
f.value = Y(a, e.dataPath, null), c.value = Y(a, e.paginationPath, null), xe(() => {
|
|
2215
|
-
Se(), We(), r("vuetable:pagination-data", c.value), r("vuetable:loaded");
|
|
2216
|
-
});
|
|
2217
|
-
}
|
|
2218
|
-
}
|
|
2219
|
-
function Se() {
|
|
2220
|
-
if (x.value)
|
|
2221
|
-
return M.value ? !0 : (Pe('Invalid your data! Use "track-by" prop to specify.'), !1);
|
|
2222
|
-
}
|
|
2223
|
-
function Ce(a) {
|
|
2224
|
-
return Ee(a) ? "" : Ct(a.replace(".", " "));
|
|
2225
|
-
}
|
|
2226
|
-
function St(a) {
|
|
2227
|
-
return typeof a.title == "function" ? a.title() : a.title;
|
|
2228
|
-
}
|
|
2229
|
-
function Vn(a, h) {
|
|
2230
|
-
return xt(a) ? er(a, h) : Y(h, a.name, "");
|
|
2231
|
-
}
|
|
2232
|
-
function Ee(a) {
|
|
2233
|
-
return a instanceof Object ? !0 : a.slice(0, e.fieldPrefix.length) === e.fieldPrefix || a.slice(0, 2) === "__";
|
|
2234
|
-
}
|
|
2235
|
-
function _e(a) {
|
|
2236
|
-
return typeof o[a] < "u";
|
|
2237
|
-
}
|
|
2238
|
-
function Ct(a) {
|
|
2239
|
-
return a.replace(/\w+/g, (h) => h.charAt(0).toUpperCase() + h.substring(1).toLowerCase());
|
|
2240
|
-
}
|
|
2241
|
-
function Et(a, h = "_") {
|
|
2242
|
-
return a.split(h).map((v) => Ct(v)).join("");
|
|
2243
|
-
}
|
|
2244
|
-
function Q(a = _n, h = Wn) {
|
|
2245
|
-
if (In.value) {
|
|
2246
|
-
lr();
|
|
2247
|
-
return;
|
|
2248
|
-
}
|
|
2249
|
-
return r("vuetable:loading"), m.value.params = Kn(Ke()), y.value = zn(e.apiUrl, m.value), y.value.then(
|
|
2250
|
-
a,
|
|
2251
|
-
h
|
|
2252
|
-
).catch(() => h());
|
|
2253
|
-
}
|
|
2254
|
-
async function zn(a, h) {
|
|
2255
|
-
if (e.httpFetch)
|
|
2256
|
-
return e.httpFetch(a, h);
|
|
2257
|
-
if (e.httpMethod === "get")
|
|
2258
|
-
return N.get(a, h);
|
|
2259
|
-
{
|
|
2260
|
-
const v = await m.value.params;
|
|
2261
|
-
return delete h.params, delete m.value.params, N.post(a, v, m.value);
|
|
2262
|
-
}
|
|
2263
|
-
}
|
|
2264
|
-
function _n(a) {
|
|
2265
|
-
r("vuetable:load-success", a);
|
|
2266
|
-
const h = e.transform ? e.transform(a.data) : a.data;
|
|
2267
|
-
f.value = Y(h, e.dataPath, null), c.value = Y(h, e.paginationPath, null), c.value === null && Pe(`vuetable: pagination-path ${e.paginationPath} not found.
|
|
2268
|
-
It looks like the data returned from the server does not have pagination information
|
|
2269
|
-
or you may have set it incorrectly.
|
|
2270
|
-
|
|
2271
|
-
You can explicitly suppress this warning by setting pagination-path="".`), xe(() => {
|
|
2272
|
-
Se(), We(), r("vuetable:pagination-data", c.value), r("vuetable:loaded");
|
|
2273
|
-
});
|
|
2274
|
-
}
|
|
2275
|
-
function We() {
|
|
2276
|
-
setTimeout(Je, 80);
|
|
2277
|
-
}
|
|
2278
|
-
function Je() {
|
|
2279
|
-
xe(() => {
|
|
2280
|
-
let a = i.value.getElementsByClassName("vuetable-body-wrapper")[0];
|
|
2281
|
-
a != null && (R.value = a.scrollHeight > a.clientHeight, r("vuetable:scrollbar-visible", R.value));
|
|
2282
|
-
});
|
|
2283
|
-
}
|
|
2284
|
-
function Wn(a) {
|
|
2285
|
-
console.error("load-error", a), r("vuetable:load-error", a), r("vuetable:loaded");
|
|
2286
|
-
}
|
|
2287
|
-
function Ke() {
|
|
2288
|
-
let a = {};
|
|
2289
|
-
return typeof e.queryParams == "function" ? (a = e.queryParams(p.value, d.value, e.perPage), typeof a == "object" ? a : {}) : (a[e.queryParams.sort] = Jn(), a[e.queryParams.page] = d.value, a[e.queryParams.perPage] = e.perPage, a);
|
|
2290
|
-
}
|
|
2291
|
-
function Jn() {
|
|
2292
|
-
var a;
|
|
2293
|
-
return !p.value || ((a = p.value[0]) == null ? void 0 : a.field) == "" ? "" : typeof e.sortParams == "function" ? e.sortParams(p.value) : Ge();
|
|
2294
|
-
}
|
|
2295
|
-
function Ge() {
|
|
2296
|
-
return p.value.map((a) => `${a.sortField}|${a.direction}`).join(",");
|
|
2297
|
-
}
|
|
2298
|
-
function Kn(a) {
|
|
2299
|
-
for (let h in e.appendParams)
|
|
2300
|
-
a[h] = e.appendParams[h];
|
|
2301
|
-
return a;
|
|
2302
|
-
}
|
|
2303
|
-
function Re(a) {
|
|
2304
|
-
return a.sortField !== null;
|
|
2305
|
-
}
|
|
2306
|
-
function Gn(a) {
|
|
2307
|
-
if (!Re(a))
|
|
2308
|
-
return !1;
|
|
2309
|
-
for (let h = 0; h < p.value.length; h++)
|
|
2310
|
-
if (Rt(a, h))
|
|
2311
|
-
return h;
|
|
2312
|
-
return !1;
|
|
2313
|
-
}
|
|
2314
|
-
function Rt(a, h) {
|
|
2315
|
-
return p.value[h].field === a.name && p.value[h].sortField === a.sortField;
|
|
2316
|
-
}
|
|
2317
|
-
function kt(a, h) {
|
|
2318
|
-
if (!Re(a)) return;
|
|
2319
|
-
const v = e.multiSortKey.toLowerCase() + "Key";
|
|
2320
|
-
e.multiSort && h[v] ? Zn(a) : Yn(a), d.value = e.firstPage, (Ve.value || e.dataManager) && Q();
|
|
2321
|
-
}
|
|
2322
|
-
function Tt(a, h) {
|
|
2323
|
-
p.value.push({
|
|
2324
|
-
field: a.name,
|
|
2325
|
-
sortField: a.sortField,
|
|
2326
|
-
direction: h
|
|
2327
|
-
});
|
|
2328
|
-
}
|
|
2329
|
-
function Xn(a) {
|
|
2330
|
-
p.value.splice(a, 1);
|
|
2331
|
-
}
|
|
2332
|
-
function Qn(a, h) {
|
|
2333
|
-
p.value[a].direction = h;
|
|
2334
|
-
}
|
|
2335
|
-
function Zn(a) {
|
|
2336
|
-
let h = Gn(a);
|
|
2337
|
-
h === !1 ? Tt(a, "asc") : p.value[h].direction === "asc" ? Qn(h, "desc") : Xn(h);
|
|
2338
|
-
}
|
|
2339
|
-
function Yn(a) {
|
|
2340
|
-
if (e.sortOrder.length === 0) {
|
|
2341
|
-
Tt(a, "asc");
|
|
2342
|
-
return;
|
|
2343
|
-
}
|
|
2344
|
-
p.value.splice(1), Rt(a, 0) ? p.value[0].direction = e.sortOrder[0].direction === "asc" ? "desc" : "asc" : p.value[0].direction = "asc", p.value[0].field = a.name, p.value[0].sortField = a.sortField;
|
|
2345
|
-
}
|
|
2346
|
-
function Ot() {
|
|
2347
|
-
p.value = [];
|
|
2348
|
-
}
|
|
2349
|
-
function xt(a) {
|
|
2350
|
-
return typeof a.formatter == "function";
|
|
2351
|
-
}
|
|
2352
|
-
function er(a, h) {
|
|
2353
|
-
if (xt(a) && typeof a.formatter == "function")
|
|
2354
|
-
return a.formatter(Y(h, a.name), s == null ? void 0 : s.proxy);
|
|
2355
|
-
}
|
|
2356
|
-
function Y(a, h, v) {
|
|
2357
|
-
v = typeof v > "u" ? null : v;
|
|
2358
|
-
let C = a;
|
|
2359
|
-
return h.trim() != "" && h.split(".").forEach((re) => {
|
|
2360
|
-
if (C !== null && typeof C[re] < "u" && C[re] !== null)
|
|
2361
|
-
C = C[re];
|
|
2362
|
-
else {
|
|
2363
|
-
C = v;
|
|
2364
|
-
return;
|
|
2365
|
-
}
|
|
2366
|
-
}), C;
|
|
2367
|
-
}
|
|
2368
|
-
function At(a) {
|
|
2369
|
-
Xe(a) || g.value.push(a);
|
|
2370
|
-
}
|
|
2371
|
-
function Ft(a) {
|
|
2372
|
-
g.value = g.value.filter((h) => h !== a);
|
|
2373
|
-
}
|
|
2374
|
-
function Xe(a) {
|
|
2375
|
-
return g.value.indexOf(a) >= 0;
|
|
2376
|
-
}
|
|
2377
|
-
function Dt() {
|
|
2378
|
-
g.value = [];
|
|
2379
|
-
}
|
|
2380
|
-
function tr() {
|
|
2381
|
-
d.value > e.firstPage && (d.value -= 1, Q());
|
|
2382
|
-
}
|
|
2383
|
-
function nr() {
|
|
2384
|
-
d.value < c.value.last_page && (d.value += 1, Q());
|
|
2385
|
-
}
|
|
2386
|
-
function rr(a) {
|
|
2387
|
-
a != d.value && a >= e.firstPage && a <= c.value.last_page && (d.value = a, Q());
|
|
2388
|
-
}
|
|
2389
|
-
function ke(a) {
|
|
2390
|
-
return O.value.indexOf(a) >= 0;
|
|
2391
|
-
}
|
|
2392
|
-
function or(a) {
|
|
2393
|
-
ke(a) || O.value.push(a), Je();
|
|
2394
|
-
}
|
|
2395
|
-
function ar(a) {
|
|
2396
|
-
ke(a) && (O.value.splice(
|
|
2397
|
-
O.value.indexOf(a),
|
|
2398
|
-
1
|
|
2399
|
-
), We());
|
|
2400
|
-
}
|
|
2401
|
-
function Bt(a) {
|
|
2402
|
-
ke(a) ? ar(a) : or(a);
|
|
2403
|
-
}
|
|
2404
|
-
function Lt(a) {
|
|
2405
|
-
a < 0 || a > l.value.length || (l.value[a].visible = !0);
|
|
2406
|
-
}
|
|
2407
|
-
function Nt(a) {
|
|
2408
|
-
a < 0 || a > l.value.length || (l.value[a].visible = !1);
|
|
2409
|
-
}
|
|
2410
|
-
function Ht(a) {
|
|
2411
|
-
a < 0 || a > l.value.length || (l.value[a].visible = !l.value[a].visible);
|
|
2412
|
-
}
|
|
2413
|
-
function sr(a = null, h = null, v = null) {
|
|
2414
|
-
return a = a === null ? 0 : a, h = h === null ? e.perPage : h, v = v === null ? d.value : v, {
|
|
2415
|
-
total: a,
|
|
2416
|
-
per_page: e.perPage,
|
|
2417
|
-
current_page: d.value,
|
|
2418
|
-
last_page: Math.ceil(a / e.perPage) || 0,
|
|
2419
|
-
next_page_url: "",
|
|
2420
|
-
prev_page_url: "",
|
|
2421
|
-
from: (v - 1) * h + 1,
|
|
2422
|
-
to: Math.min(v * h, a)
|
|
2423
|
-
};
|
|
2424
|
-
}
|
|
2425
|
-
function ir() {
|
|
2426
|
-
p.value.forEach((a) => {
|
|
2427
|
-
a.sortField = a.sortField || a.field;
|
|
2428
|
-
});
|
|
2429
|
-
}
|
|
2430
|
-
function lr() {
|
|
2431
|
-
if (e.data !== null && Array.isArray(e.data)) {
|
|
2432
|
-
ne(e.data);
|
|
2433
|
-
return;
|
|
2434
|
-
}
|
|
2435
|
-
e.dataManager ? ur() : ne(e.data);
|
|
2436
|
-
}
|
|
2437
|
-
function ur() {
|
|
2438
|
-
const a = e.dataManager(p.value, sr());
|
|
2439
|
-
fr(a) ? a.then((h) => ne(h)) : ne(a);
|
|
2440
|
-
}
|
|
2441
|
-
function cr(a) {
|
|
2442
|
-
return typeof a == "object" && a !== null;
|
|
2443
|
-
}
|
|
2444
|
-
function fr(a) {
|
|
2445
|
-
return cr(a) && typeof a.then == "function";
|
|
2446
|
-
}
|
|
2447
|
-
function dr(a, h) {
|
|
2448
|
-
return typeof e.rowClass == "function" ? e.rowClass(a, h) : e.rowClass;
|
|
2449
|
-
}
|
|
2450
|
-
function hr(a, h) {
|
|
2451
|
-
return typeof e.detailRowClass == "function" ? e.detailRowClass(a, h) : e.detailRowClass;
|
|
2452
|
-
}
|
|
2453
|
-
function pr(a, h, v) {
|
|
2454
|
-
return r("vuetable:row-clicked", { data: a, index: h, event: v }), !0;
|
|
2455
|
-
}
|
|
2456
|
-
function mr(a, h, v) {
|
|
2457
|
-
r("vuetable:row-dblclicked", { data: a, index: h, event: v });
|
|
2458
|
-
}
|
|
2459
|
-
function br(a, h, v) {
|
|
2460
|
-
r("vuetable:detail-row-clicked", { data: a, index: h, event: v });
|
|
2461
|
-
}
|
|
2462
|
-
function gr(a, h, v, C) {
|
|
2463
|
-
r("vuetable:cell-clicked", { data: a, index: h, field: v, event: C });
|
|
2464
|
-
}
|
|
2465
|
-
function yr(a, h, v, C) {
|
|
2466
|
-
r("vuetable:cell-dblclicked", { data: a, index: h, field: v, event: C });
|
|
2467
|
-
}
|
|
2468
|
-
function wr(a, h, v, C) {
|
|
2469
|
-
r("vuetable:cell-rightclicked", { data: a, index: h, field: v, event: C });
|
|
2470
|
-
}
|
|
2471
|
-
function vr(a, h, v) {
|
|
2472
|
-
r("vuetable:row-mouseover", { data: a, index: h, event: v });
|
|
2473
|
-
}
|
|
2474
|
-
function Pr(a, h) {
|
|
2475
|
-
r("vuetable:field-event", a, h, s == null ? void 0 : s.proxy);
|
|
2476
|
-
}
|
|
2477
|
-
function Te(a, h) {
|
|
2478
|
-
r("vuetable:header-event", a, h, s == null ? void 0 : s.proxy);
|
|
2479
|
-
}
|
|
2480
|
-
function $t(a, h, v) {
|
|
2481
|
-
if (v[e.trackBy] === void 0) {
|
|
2482
|
-
Pe(`checkbox field: The "${e.trackBy}" field does not exist! Make sure the field you specify in "track-by" prop does exist.`);
|
|
2483
|
-
return;
|
|
2484
|
-
}
|
|
2485
|
-
const C = v[e.trackBy];
|
|
2486
|
-
a ? At(C) : Ft(C), r("vuetable:checkbox-toggled", a, h);
|
|
2487
|
-
}
|
|
2488
|
-
function jt(a) {
|
|
2489
|
-
var h, v;
|
|
2490
|
-
a ? (h = f.value) == null || h.forEach((C) => {
|
|
2491
|
-
At(C[e.trackBy]);
|
|
2492
|
-
}) : (v = f.value) == null || v.forEach((C) => {
|
|
2493
|
-
Ft(C[e.trackBy]);
|
|
2494
|
-
}), r("vuetable:checkbox-toggled-all", a);
|
|
2495
|
-
}
|
|
2496
|
-
function Mt(a) {
|
|
2497
|
-
a === "prev" ? tr() : a === "next" ? nr() : rr(a);
|
|
2498
|
-
}
|
|
2499
|
-
function Sr() {
|
|
2500
|
-
return Q();
|
|
2501
|
-
}
|
|
2502
|
-
function Qe() {
|
|
2503
|
-
return d.value = e.firstPage, Q();
|
|
2504
|
-
}
|
|
2505
|
-
function It() {
|
|
2506
|
-
f.value = null, c.value = null, r("vuetable:data-reset");
|
|
2507
|
-
}
|
|
2508
|
-
return ee(() => e.multiSort, (a) => {
|
|
2509
|
-
!a && p.value.length > 1 && (p.value.splice(1), Q());
|
|
2510
|
-
}), ee(() => e.apiUrl, (a, h) => e.reactiveApiUrl && a !== h && Qe()), ee(() => e.data, ne, { immediate: !0 }), ee(() => e.tableHeight, Je), ee(() => e.fields, vt, { immediate: !0 }), ee(() => e.perPage, Sr), ee(() => e.sortOrder, (a) => {
|
|
2511
|
-
p.value = a;
|
|
2512
|
-
}, { immediate: !0 }), ee(() => e.httpOptions, (a) => {
|
|
2513
|
-
m.value = a;
|
|
2514
|
-
}, { immediate: !0 }), (a, h) => (S(), E("div", {
|
|
2515
|
-
class: F(b(P).tableWrapper)
|
|
2516
|
-
}, [
|
|
2517
|
-
b(he) ? (S(), E("div", Pa, [
|
|
2518
|
-
H("table", {
|
|
2519
|
-
class: F(["vuetable", b(P).tableClass, b(P).tableHeaderClass])
|
|
2520
|
-
}, [
|
|
2521
|
-
Ut(nt, { "is-header": "" }),
|
|
2522
|
-
H("thead", null, [
|
|
2523
|
-
Oe(a.$slots, "tableHeader", { fields: b(l) }, () => [
|
|
2524
|
-
(S(!0), E($, null, W(a.headerRows, (v, C) => (S(), oe(be(v), {
|
|
2525
|
-
key: C,
|
|
2526
|
-
index: C,
|
|
2527
|
-
"onVuetable:headerEvent": Te
|
|
2528
|
-
}, null, 40, ["index"]))), 128))
|
|
2529
|
-
])
|
|
2530
|
-
])
|
|
2531
|
-
], 2)
|
|
2532
|
-
])) : _("", !0),
|
|
2533
|
-
H("div", {
|
|
2534
|
-
ref_key: "vuetable",
|
|
2535
|
-
ref: i,
|
|
2536
|
-
class: F([{ "fixed-header": b(he) }, "vuetable-body-wrapper"]),
|
|
2537
|
-
style: G({ height: a.tableHeight })
|
|
2538
|
-
}, [
|
|
2539
|
-
H("table", {
|
|
2540
|
-
class: F(["vuetable", b(he) ? "fixed-header" : "", b(P).tableClass, b(P).tableBodyClass])
|
|
2541
|
-
}, [
|
|
2542
|
-
Ut(nt),
|
|
2543
|
-
b(he) ? _("", !0) : (S(), E("thead", Sa, [
|
|
2544
|
-
Oe(a.$slots, "tableHeader", { fields: b(l) }, () => [
|
|
2545
|
-
(S(!0), E($, null, W(a.headerRows, (v, C) => (S(), oe(be(v), {
|
|
2546
|
-
key: C,
|
|
2547
|
-
index: C,
|
|
2548
|
-
"onVuetable:headerEvent": Te
|
|
2549
|
-
}, null, 40, ["index"]))), 128))
|
|
2550
|
-
])
|
|
2551
|
-
])),
|
|
2552
|
-
H("tfoot", null, [
|
|
2553
|
-
Oe(a.$slots, "tableFooter", { fields: b(l) })
|
|
2554
|
-
]),
|
|
2555
|
-
H("tbody", Ca, [
|
|
2556
|
-
(S(!0), E($, null, W(b(f), (v, C) => (S(), E($, { key: C }, [
|
|
2557
|
-
H("tr", {
|
|
2558
|
-
"item-index": C,
|
|
2559
|
-
class: F(dr(v, C)),
|
|
2560
|
-
onClick: (D) => pr(v, C, D),
|
|
2561
|
-
onDblclick: (D) => mr(v, C, D),
|
|
2562
|
-
onMouseover: (D) => vr(v, C, D)
|
|
2563
|
-
}, [
|
|
2564
|
-
(S(!0), E($, null, W(b(l), (D, re) => (S(), E($, null, [
|
|
2565
|
-
D.visible ? (S(), E($, { key: 0 }, [
|
|
2566
|
-
Ee(D.name) ? (S(), oe(be(D.name), {
|
|
2567
|
-
key: re,
|
|
2568
|
-
"row-data": v,
|
|
2569
|
-
"row-index": C,
|
|
2570
|
-
"row-field": D,
|
|
2571
|
-
class: F(ze("vuetable-component", D)),
|
|
2572
|
-
style: G({ width: D.width }),
|
|
2573
|
-
"onVuetable:fieldEvent": Pr
|
|
2574
|
-
}, null, 40, ["row-data", "row-index", "row-field", "class", "style"])) : _e(D.name) ? (S(), E("td", {
|
|
2575
|
-
key: re,
|
|
2576
|
-
class: F(ze("vuetable-slot", D)),
|
|
2577
|
-
style: G({ width: D.width })
|
|
2578
|
-
}, [
|
|
2579
|
-
Oe(a.$slots, D.name, {
|
|
2580
|
-
rowData: v,
|
|
2581
|
-
rowIndex: C,
|
|
2582
|
-
rowField: D
|
|
2583
|
-
})
|
|
2584
|
-
], 6)) : (S(), E("td", {
|
|
2585
|
-
key: re,
|
|
2586
|
-
class: F(ze("vuetable-td-" + D.name, D)),
|
|
2587
|
-
style: G({ width: D.width }),
|
|
2588
|
-
innerHTML: Vn(D, v),
|
|
2589
|
-
onClick: (pe) => gr(v, C, D, pe),
|
|
2590
|
-
onDblclick: (pe) => yr(v, C, D, pe),
|
|
2591
|
-
onContextmenu: (pe) => wr(v, C, D, pe)
|
|
2592
|
-
}, null, 46, Ra))
|
|
2593
|
-
], 64)) : _("", !0)
|
|
2594
|
-
], 64))), 256))
|
|
2595
|
-
], 42, Ea),
|
|
2596
|
-
b(A) ? (S(), oe(Er, {
|
|
2597
|
-
key: C,
|
|
2598
|
-
name: a.detailRowTransition
|
|
2599
|
-
}, {
|
|
2600
|
-
default: Rr(() => [
|
|
2601
|
-
ke(v[a.trackBy]) ? (S(), E("tr", {
|
|
2602
|
-
key: 0,
|
|
2603
|
-
class: F(hr(v, C)),
|
|
2604
|
-
onClick: (D) => br(v, C, D)
|
|
2605
|
-
}, [
|
|
2606
|
-
H("td", { colspan: b(z) }, [
|
|
2607
|
-
(S(), oe(be(a.detailRowComponent), {
|
|
2608
|
-
"row-data": v,
|
|
2609
|
-
"row-index": C,
|
|
2610
|
-
options: a.detailRowOptions
|
|
2611
|
-
}, null, 8, ["row-data", "row-index", "options"]))
|
|
2612
|
-
], 8, Ta)
|
|
2613
|
-
], 10, ka)) : _("", !0)
|
|
2614
|
-
]),
|
|
2615
|
-
_: 2
|
|
2616
|
-
}, 1032, ["name"])) : _("", !0)
|
|
2617
|
-
], 64))), 128)),
|
|
2618
|
-
b(le) ? (S(), E("tr", Oa, [
|
|
2619
|
-
H("td", {
|
|
2620
|
-
colspan: b(z),
|
|
2621
|
-
class: "vuetable-empty-result",
|
|
2622
|
-
innerHTML: a.noDataTemplate
|
|
2623
|
-
}, null, 8, xa)
|
|
2624
|
-
])) : _("", !0),
|
|
2625
|
-
b(Ue) ? (S(!0), E($, { key: 1 }, W(b(qe), (v) => (S(), E("tr", {
|
|
2626
|
-
key: v,
|
|
2627
|
-
class: "blank-row"
|
|
2628
|
-
}, [
|
|
2629
|
-
(S(!0), E($, null, W(b(l), (C, D) => (S(), E($, null, [
|
|
2630
|
-
C.visible ? (S(), E("td", { key: D }, " ")) : _("", !0)
|
|
2631
|
-
], 64))), 256))
|
|
2632
|
-
]))), 128)) : _("", !0)
|
|
2633
|
-
])
|
|
2634
|
-
], 2)
|
|
2635
|
-
], 6)
|
|
2636
|
-
], 2));
|
|
2637
|
-
}
|
|
2638
|
-
});
|
|
2639
|
-
function K(e) {
|
|
2640
|
-
return typeof e == "function" ? e() : I(e);
|
|
2641
|
-
}
|
|
2642
|
-
function Nn(e, t) {
|
|
2643
|
-
const n = j(null), r = L(() => {
|
|
2644
|
-
var k;
|
|
2645
|
-
return ((k = n.value) == null ? void 0 : k.last_page) ?? 0;
|
|
2646
|
-
}), o = L(() => {
|
|
2647
|
-
var k;
|
|
2648
|
-
return ((k = n.value) == null ? void 0 : k.current_page) === K(t);
|
|
2649
|
-
}), s = L(() => {
|
|
2650
|
-
var k;
|
|
2651
|
-
return ((k = n.value) == null ? void 0 : k.current_page) === r.value;
|
|
2652
|
-
}), i = L(() => K(e) * 2 + 1), l = L(() => n.value ? n.value.last_page - K(t) + 1 : 0), f = L(() => l.value < K(e) * 2 + 4), c = L(() => !n.value || n.value.current_page <= K(e) ? 1 : n.value.current_page >= l.value - K(e) ? l.value - K(e) * 2 : n.value.current_page - K(e));
|
|
2653
|
-
function d(k) {
|
|
2654
|
-
n.value = k;
|
|
2655
|
-
}
|
|
2656
|
-
function g() {
|
|
2657
|
-
n.value = null;
|
|
2658
|
-
}
|
|
2659
|
-
function O(k) {
|
|
2660
|
-
var w;
|
|
2661
|
-
return k === ((w = n.value) == null ? void 0 : w.current_page);
|
|
2662
|
-
}
|
|
2663
|
-
return {
|
|
2664
|
-
tablePagination: n,
|
|
2665
|
-
lastPage: r,
|
|
2666
|
-
isOnFirstPage: o,
|
|
2667
|
-
isOnLastPage: s,
|
|
2668
|
-
notEnoughPages: f,
|
|
2669
|
-
windowSize: i,
|
|
2670
|
-
windowStart: c,
|
|
2671
|
-
totalPage: l,
|
|
2672
|
-
setPaginationData: d,
|
|
2673
|
-
resetData: g,
|
|
2674
|
-
isCurrentPage: O
|
|
2675
|
-
};
|
|
2676
|
-
}
|
|
2677
|
-
const Aa = { key: 1 }, Fa = { key: 1 }, Da = ["innerHTML", "onClick"], Ba = ["innerHTML", "onClick"], La = { key: 1 }, Na = { key: 1 }, Ha = /* @__PURE__ */ X({
|
|
2678
|
-
__name: "VuetablePagination",
|
|
2679
|
-
props: {
|
|
2680
|
-
css: { default: () => ({}) },
|
|
2681
|
-
onEachSide: { default: 2 },
|
|
2682
|
-
firstPage: { default: 1 }
|
|
2683
|
-
},
|
|
2684
|
-
emits: ["vuetable-pagination:change-page"],
|
|
2685
|
-
setup(e, { expose: t, emit: n }) {
|
|
2686
|
-
const r = n, o = dt({ ...de.pagination, ...e.css }), {
|
|
2687
|
-
tablePagination: s,
|
|
2688
|
-
totalPage: i,
|
|
2689
|
-
lastPage: l,
|
|
2690
|
-
isOnFirstPage: f,
|
|
2691
|
-
isOnLastPage: c,
|
|
2692
|
-
notEnoughPages: d,
|
|
2693
|
-
windowSize: g,
|
|
2694
|
-
windowStart: O,
|
|
2695
|
-
isCurrentPage: k,
|
|
2696
|
-
setPaginationData: w,
|
|
2697
|
-
resetData: R
|
|
2698
|
-
} = Nn(() => e.onEachSide, () => e.firstPage);
|
|
2699
|
-
t({
|
|
2700
|
-
tablePagination: s,
|
|
2701
|
-
$_css: o,
|
|
2702
|
-
totalPage: i,
|
|
2703
|
-
lastPage: l,
|
|
2704
|
-
onEachSide: De(() => e.onEachSide),
|
|
2705
|
-
firstPage: De(() => e.firstPage),
|
|
2706
|
-
isOnFirstPage: f,
|
|
2707
|
-
isOnLastPage: c,
|
|
2708
|
-
notEnoughPages: d,
|
|
2709
|
-
windowSize: g,
|
|
2710
|
-
windowStart: O,
|
|
2711
|
-
loadPage: p,
|
|
2712
|
-
isCurrentPage: k,
|
|
2713
|
-
setPaginationData: w,
|
|
2714
|
-
resetData: R
|
|
2715
|
-
});
|
|
2716
|
-
function p(m) {
|
|
2717
|
-
r("vuetable-pagination:change-page", m);
|
|
2718
|
-
}
|
|
2719
|
-
return (m, y) => kr((S(), E("div", {
|
|
2720
|
-
class: F(b(o).wrapperClass)
|
|
2721
|
-
}, [
|
|
2722
|
-
H("a", {
|
|
2723
|
-
class: F(["btn-nav", b(o).linkClass, b(f) ? b(o).disabledClass : ""]),
|
|
2724
|
-
onClick: y[0] || (y[0] = (P) => p(m.firstPage))
|
|
2725
|
-
}, [
|
|
2726
|
-
b(o).icons.first != "" ? (S(), E("i", {
|
|
2727
|
-
key: 0,
|
|
2728
|
-
class: F([b(o).icons.first])
|
|
2729
|
-
}, null, 2)) : (S(), E("span", Aa, " « "))
|
|
2730
|
-
], 2),
|
|
2731
|
-
H("a", {
|
|
2732
|
-
class: F(["btn-nav", b(o).linkClass, b(f) ? b(o).disabledClass : ""]),
|
|
2733
|
-
onClick: y[1] || (y[1] = (P) => p("prev"))
|
|
2734
|
-
}, [
|
|
2735
|
-
b(o).icons.next != "" ? (S(), E("i", {
|
|
2736
|
-
key: 0,
|
|
2737
|
-
class: F([b(o).icons.prev])
|
|
2738
|
-
}, null, 2)) : (S(), E("span", Fa, " ‹ "))
|
|
2739
|
-
], 2),
|
|
2740
|
-
b(d) ? (S(!0), E($, { key: 0 }, W(b(i), (P, x) => (S(), E("a", {
|
|
2741
|
-
key: x,
|
|
2742
|
-
class: F([b(o).pageClass, b(k)(x + m.firstPage) ? b(o).activeClass : ""]),
|
|
2743
|
-
innerHTML: P,
|
|
2744
|
-
onClick: (A) => p(x + m.firstPage)
|
|
2745
|
-
}, null, 10, Da))), 128)) : (S(!0), E($, { key: 1 }, W(b(g), (P, x) => (S(), E("a", {
|
|
2746
|
-
key: x,
|
|
2747
|
-
class: F([b(o).pageClass, b(k)(b(O) + x + m.firstPage - 1) ? b(o).activeClass : ""]),
|
|
2748
|
-
innerHTML: b(O) + P - 1,
|
|
2749
|
-
onClick: (A) => p(b(O) + x + m.firstPage - 1)
|
|
2750
|
-
}, null, 10, Ba))), 128)),
|
|
2751
|
-
H("a", {
|
|
2752
|
-
class: F(["btn-nav", b(o).linkClass, b(c) ? b(o).disabledClass : ""]),
|
|
2753
|
-
onClick: y[2] || (y[2] = (P) => p("next"))
|
|
2754
|
-
}, [
|
|
2755
|
-
b(o).icons.next != "" ? (S(), E("i", {
|
|
2756
|
-
key: 0,
|
|
2757
|
-
class: F([b(o).icons.next])
|
|
2758
|
-
}, null, 2)) : (S(), E("span", La, " › "))
|
|
2759
|
-
], 2),
|
|
2760
|
-
H("a", {
|
|
2761
|
-
class: F(["btn-nav", b(o).linkClass, b(c) ? b(o).disabledClass : ""]),
|
|
2762
|
-
onClick: y[3] || (y[3] = (P) => p(b(l)))
|
|
2763
|
-
}, [
|
|
2764
|
-
b(o).icons.last != "" ? (S(), E("i", {
|
|
2765
|
-
key: 0,
|
|
2766
|
-
class: F([b(o).icons.last])
|
|
2767
|
-
}, null, 2)) : (S(), E("span", Na, " » "))
|
|
2768
|
-
], 2)
|
|
2769
|
-
], 2)), [
|
|
2770
|
-
[Tr, b(s) && b(l) > m.firstPage]
|
|
2771
|
-
]);
|
|
2772
|
-
}
|
|
2773
|
-
});
|
|
2774
|
-
function $a(e) {
|
|
2775
|
-
return { all: e = e || /* @__PURE__ */ new Map(), on: function(t, n) {
|
|
2776
|
-
var r = e.get(t);
|
|
2777
|
-
r ? r.push(n) : e.set(t, [n]);
|
|
2778
|
-
}, off: function(t, n) {
|
|
2779
|
-
var r = e.get(t);
|
|
2780
|
-
r && (n ? r.splice(r.indexOf(n) >>> 0, 1) : e.set(t, []));
|
|
2781
|
-
}, emit: function(t, n) {
|
|
2782
|
-
var r = e.get(t);
|
|
2783
|
-
r && r.slice().map(function(o) {
|
|
2784
|
-
o(n);
|
|
2785
|
-
}), (r = e.get("*")) && r.slice().map(function(o) {
|
|
2786
|
-
o(t, n);
|
|
2787
|
-
});
|
|
2788
|
-
} };
|
|
2789
|
-
}
|
|
2790
|
-
const ja = ["value", "selected"], Ma = /* @__PURE__ */ X({
|
|
2791
|
-
__name: "VuetablePaginationDropdown",
|
|
2792
|
-
props: {
|
|
2793
|
-
css: { default: () => ({}) },
|
|
2794
|
-
pageText: { default: "Page" },
|
|
2795
|
-
onEachSide: { default: 2 },
|
|
2796
|
-
firstPage: { default: 1 }
|
|
2797
|
-
},
|
|
2798
|
-
emits: ["vuetable-pagination:change-page"],
|
|
2799
|
-
setup(e, { expose: t, emit: n }) {
|
|
2800
|
-
const r = $a(), o = n, s = dt({ ...de.pagination, ...e.css }), {
|
|
2801
|
-
tablePagination: i,
|
|
2802
|
-
totalPage: l,
|
|
2803
|
-
lastPage: f,
|
|
2804
|
-
isOnFirstPage: c,
|
|
2805
|
-
isOnLastPage: d,
|
|
2806
|
-
notEnoughPages: g,
|
|
2807
|
-
windowSize: O,
|
|
2808
|
-
windowStart: k,
|
|
2809
|
-
isCurrentPage: w,
|
|
2810
|
-
setPaginationData: R,
|
|
2811
|
-
resetData: p
|
|
2812
|
-
} = Nn(e.onEachSide, e.firstPage);
|
|
2813
|
-
t({
|
|
2814
|
-
tablePagination: i,
|
|
2815
|
-
$_css: s,
|
|
2816
|
-
firstPage: e.firstPage,
|
|
2817
|
-
lastPage: f,
|
|
2818
|
-
onEachSide: e.onEachSide,
|
|
2819
|
-
pageText: e.pageText,
|
|
2820
|
-
notEnoughPages: g,
|
|
2821
|
-
windowSize: O,
|
|
2822
|
-
windowStart: k,
|
|
2823
|
-
loadPage: m,
|
|
2824
|
-
isCurrentPage: w,
|
|
2825
|
-
setPaginationData: R,
|
|
2826
|
-
resetData: p
|
|
2827
|
-
});
|
|
2828
|
-
function m(y) {
|
|
2829
|
-
o("vuetable-pagination:change-page", y);
|
|
2830
|
-
}
|
|
2831
|
-
return r.on("vuetable:pagination-data", (y) => {
|
|
2832
|
-
R(y);
|
|
2833
|
-
}), (y, P) => (S(), E("div", {
|
|
2834
|
-
class: F([b(s).wrapperClass])
|
|
2835
|
-
}, [
|
|
2836
|
-
H("a", {
|
|
2837
|
-
class: F([b(s).linkClass, { [b(s).disabledClass]: b(c) }]),
|
|
2838
|
-
onClick: P[0] || (P[0] = (x) => m("prev"))
|
|
2839
|
-
}, [
|
|
2840
|
-
H("i", {
|
|
2841
|
-
class: F(b(s).icons.prev)
|
|
2842
|
-
}, null, 2)
|
|
2843
|
-
], 2),
|
|
2844
|
-
H("select", {
|
|
2845
|
-
class: F(["vuetable-pagination-dropdown", b(s).dropdownClass]),
|
|
2846
|
-
onChange: P[1] || (P[1] = (x) => m(x.target.selectedIndex + y.firstPage))
|
|
2847
|
-
}, [
|
|
2848
|
-
(S(!0), E($, null, W(b(l), (x, A) => (S(), E("option", {
|
|
2849
|
-
key: x,
|
|
2850
|
-
class: F([b(s).pageClass]),
|
|
2851
|
-
value: A + y.firstPage,
|
|
2852
|
-
selected: b(w)(A + y.firstPage)
|
|
2853
|
-
}, qt(y.pageText) + " " + qt(x), 11, ja))), 128))
|
|
2854
|
-
], 34),
|
|
2855
|
-
H("a", {
|
|
2856
|
-
class: F([b(s).linkClass, { [b(s).disabledClass]: b(d) }]),
|
|
2857
|
-
onClick: P[2] || (P[2] = (x) => m("next"))
|
|
2858
|
-
}, [
|
|
2859
|
-
H("i", {
|
|
2860
|
-
class: F(b(s).icons.next)
|
|
2861
|
-
}, null, 2)
|
|
2862
|
-
], 2)
|
|
2863
|
-
], 2));
|
|
2864
|
-
}
|
|
2865
|
-
});
|
|
2866
|
-
function Ia(e, t) {
|
|
2867
|
-
const n = j(null), r = L(() => n.value == null || n.value.total == 0), o = L(() => r.value ? K(e) : K(t).replace("{from}", `${n.value.from || 0}`).replace("{to}", `${n.value.to || 0}`).replace("{total}", `${n.value.total || 0}`));
|
|
2868
|
-
function s(f) {
|
|
2869
|
-
n.value = f;
|
|
2870
|
-
}
|
|
2871
|
-
function i() {
|
|
2872
|
-
n.value = null;
|
|
2873
|
-
}
|
|
2874
|
-
function l(f) {
|
|
2875
|
-
var c;
|
|
2876
|
-
return f === ((c = n.value) == null ? void 0 : c.current_page);
|
|
2877
|
-
}
|
|
2878
|
-
return {
|
|
2879
|
-
tablePagination: n,
|
|
2880
|
-
paginationInfo: o,
|
|
2881
|
-
setPaginationData: s,
|
|
2882
|
-
resetData: i,
|
|
2883
|
-
isCurrentPage: l
|
|
2884
|
-
};
|
|
2885
|
-
}
|
|
2886
|
-
const Ua = ["innerHTML"], qa = /* @__PURE__ */ X({
|
|
2887
|
-
__name: "VuetablePaginationInfo",
|
|
2888
|
-
props: {
|
|
2889
|
-
css: { default: () => ({}) },
|
|
2890
|
-
infoTemplate: { default: "Displaying {from} to {to} of {total} items" },
|
|
2891
|
-
noDataTemplate: { default: "No relevant data" }
|
|
2892
|
-
},
|
|
2893
|
-
setup(e, { expose: t }) {
|
|
2894
|
-
const {
|
|
2895
|
-
tablePagination: n,
|
|
2896
|
-
paginationInfo: r,
|
|
2897
|
-
setPaginationData: o,
|
|
2898
|
-
resetData: s
|
|
2899
|
-
} = Ia(() => e.noDataTemplate, () => e.infoTemplate), i = j({ ...de.paginationInfo, ...e.css });
|
|
2900
|
-
return t({
|
|
2901
|
-
tablePagination: n,
|
|
2902
|
-
$_css: i,
|
|
2903
|
-
infoTemplate: De(() => e.infoTemplate),
|
|
2904
|
-
noDataTemplate: De(() => e.noDataTemplate),
|
|
2905
|
-
paginationInfo: r,
|
|
2906
|
-
setPaginationData: o,
|
|
2907
|
-
resetData: s
|
|
2908
|
-
}), (l, f) => (S(), E("div", {
|
|
2909
|
-
class: F(["vuetable-pagination-info", b(i).infoClass]),
|
|
2910
|
-
innerHTML: b(r)
|
|
2911
|
-
}, null, 10, Ua));
|
|
2912
|
-
}
|
|
2913
|
-
}), Va = Ne({
|
|
2914
|
-
props: {
|
|
2915
|
-
rowData: {
|
|
2916
|
-
type: Object,
|
|
2917
|
-
default: null
|
|
2918
|
-
},
|
|
2919
|
-
rowIndex: {
|
|
2920
|
-
type: Number
|
|
2921
|
-
},
|
|
2922
|
-
rowField: {
|
|
2923
|
-
type: Object
|
|
2924
|
-
},
|
|
2925
|
-
isHeader: {
|
|
2926
|
-
type: Boolean,
|
|
2927
|
-
default: !1
|
|
2928
|
-
},
|
|
2929
|
-
title: {
|
|
2930
|
-
type: String,
|
|
2931
|
-
default: ""
|
|
2932
|
-
},
|
|
2933
|
-
vuetable: {
|
|
2934
|
-
type: Object,
|
|
2935
|
-
default: null
|
|
2936
|
-
}
|
|
2937
|
-
}
|
|
2938
|
-
}), es = Ne({
|
|
2939
|
-
mixins: [Va],
|
|
2940
|
-
methods: {
|
|
2941
|
-
toggleCheckbox(e, t) {
|
|
2942
|
-
this.vuetable.onCheckboxToggled(t.target.checked, this.rowField.name, e);
|
|
2943
|
-
},
|
|
2944
|
-
toggleAllCheckbox(e) {
|
|
2945
|
-
this.vuetable.onCheckboxToggledAll(e.target.checked);
|
|
2946
|
-
},
|
|
2947
|
-
isSelected(e) {
|
|
2948
|
-
return this.vuetable.isSelectedRow(e[this.vuetable.trackBy]);
|
|
2949
|
-
},
|
|
2950
|
-
isAllItemsInCurrentPageSelected() {
|
|
2951
|
-
if (!this.vuetable.tableData) return;
|
|
2952
|
-
let e = this.vuetable.trackBy, t = this.$el.querySelector("input[type=checkbox]"), n = this.vuetable.tableData.filter((r) => this.vuetable.isSelectedRow(r[e]));
|
|
2953
|
-
return n.length <= 0 ? (t.indeterminate = !1, !1) : n.length < this.vuetable.perPage ? (t.indeterminate = !0, !0) : (t.indeterminate = !1, !0);
|
|
2954
|
-
}
|
|
2955
|
-
}
|
|
2956
|
-
}), ts = Ne({
|
|
2957
|
-
props: {
|
|
2958
|
-
css: {
|
|
2959
|
-
type: Object,
|
|
2960
|
-
default: () => ({})
|
|
2961
|
-
},
|
|
2962
|
-
infoTemplate: {
|
|
2963
|
-
type: String,
|
|
2964
|
-
default: "Displaying {from} to {to} of {total} items"
|
|
2965
|
-
},
|
|
2966
|
-
noDataTemplate: {
|
|
2967
|
-
type: String,
|
|
2968
|
-
default: "No relevant data"
|
|
2969
|
-
}
|
|
2970
|
-
},
|
|
2971
|
-
data() {
|
|
2972
|
-
return {
|
|
2973
|
-
tablePagination: null,
|
|
2974
|
-
customCss: {}
|
|
2975
|
-
};
|
|
2976
|
-
},
|
|
2977
|
-
computed: {
|
|
2978
|
-
paginationInfo() {
|
|
2979
|
-
return this.tablePagination == null || this.tablePagination.total === 0 ? this.noDataTemplate : this.infoTemplate.replace("{from}", `${this.tablePagination.from || 0}`).replace("{to}", `${this.tablePagination.to || 0}`).replace("{total}", `${this.tablePagination.total || 0}`);
|
|
2980
|
-
}
|
|
2981
|
-
},
|
|
2982
|
-
created() {
|
|
2983
|
-
this.mergeCss();
|
|
2984
|
-
},
|
|
2985
|
-
methods: {
|
|
2986
|
-
mergeCss() {
|
|
2987
|
-
this.customCss = { ...de.paginationInfo, ...this.css };
|
|
2988
|
-
},
|
|
2989
|
-
setPaginationData(e) {
|
|
2990
|
-
this.tablePagination = e;
|
|
2991
|
-
},
|
|
2992
|
-
resetData() {
|
|
2993
|
-
this.tablePagination = null;
|
|
2994
|
-
}
|
|
2995
|
-
}
|
|
2996
|
-
}), ns = Ne({
|
|
2997
|
-
emits: [
|
|
2998
|
-
"vuetable-pagination:change-page"
|
|
2999
|
-
],
|
|
3000
|
-
props: {
|
|
3001
|
-
css: {
|
|
3002
|
-
type: Object,
|
|
3003
|
-
default() {
|
|
3004
|
-
return {};
|
|
3005
|
-
}
|
|
3006
|
-
},
|
|
3007
|
-
onEachSide: {
|
|
3008
|
-
type: Number,
|
|
3009
|
-
default() {
|
|
3010
|
-
return 2;
|
|
3011
|
-
}
|
|
3012
|
-
},
|
|
3013
|
-
firstPage: {
|
|
3014
|
-
type: Number,
|
|
3015
|
-
default: 1
|
|
3016
|
-
}
|
|
3017
|
-
},
|
|
3018
|
-
data() {
|
|
3019
|
-
return {
|
|
3020
|
-
eventPrefix: "vuetable-pagination:",
|
|
3021
|
-
tablePagination: null,
|
|
3022
|
-
customCss: {}
|
|
3023
|
-
};
|
|
3024
|
-
},
|
|
3025
|
-
created() {
|
|
3026
|
-
this.mergeCss();
|
|
3027
|
-
},
|
|
3028
|
-
computed: {
|
|
3029
|
-
totalPage() {
|
|
3030
|
-
return this.tablePagination === null ? 0 : this.tablePagination.last_page - this.firstPage + 1;
|
|
3031
|
-
},
|
|
3032
|
-
lastPage() {
|
|
3033
|
-
return this.tablePagination === null ? 0 : this.tablePagination.last_page;
|
|
3034
|
-
},
|
|
3035
|
-
isOnFirstPage() {
|
|
3036
|
-
return this.tablePagination === null ? !1 : this.tablePagination.current_page === this.firstPage;
|
|
3037
|
-
},
|
|
3038
|
-
isOnLastPage() {
|
|
3039
|
-
return this.tablePagination === null ? !1 : this.tablePagination.current_page === this.lastPage;
|
|
3040
|
-
},
|
|
3041
|
-
notEnoughPages() {
|
|
3042
|
-
return this.totalPage < this.onEachSide * 2 + 4;
|
|
3043
|
-
},
|
|
3044
|
-
windowSize() {
|
|
3045
|
-
return this.onEachSide * 2 + 1;
|
|
3046
|
-
},
|
|
3047
|
-
windowStart() {
|
|
3048
|
-
return !this.tablePagination || this.tablePagination.current_page <= this.onEachSide ? 1 : this.tablePagination.current_page >= this.totalPage - this.onEachSide ? this.totalPage - this.onEachSide * 2 : this.tablePagination.current_page - this.onEachSide;
|
|
3049
|
-
}
|
|
3050
|
-
},
|
|
3051
|
-
methods: {
|
|
3052
|
-
mergeCss() {
|
|
3053
|
-
this.customCss = { ...de.pagination, ...this.css };
|
|
3054
|
-
},
|
|
3055
|
-
loadPage(e) {
|
|
3056
|
-
this.$emit("vuetable-pagination:change-page", e);
|
|
3057
|
-
},
|
|
3058
|
-
isCurrentPage(e) {
|
|
3059
|
-
return e === this.tablePagination.current_page;
|
|
3060
|
-
},
|
|
3061
|
-
setPaginationData(e) {
|
|
3062
|
-
this.tablePagination = e;
|
|
3063
|
-
},
|
|
3064
|
-
resetData() {
|
|
3065
|
-
this.tablePagination = null;
|
|
3066
|
-
}
|
|
3067
|
-
}
|
|
3068
|
-
});
|
|
3069
|
-
function za(e) {
|
|
3070
|
-
var t = this.constructor;
|
|
3071
|
-
return this.then(
|
|
3072
|
-
function(n) {
|
|
3073
|
-
return t.resolve(e()).then(function() {
|
|
3074
|
-
return n;
|
|
3075
|
-
});
|
|
3076
|
-
},
|
|
3077
|
-
function(n) {
|
|
3078
|
-
return t.resolve(e()).then(function() {
|
|
3079
|
-
return t.reject(n);
|
|
3080
|
-
});
|
|
3081
|
-
}
|
|
3082
|
-
);
|
|
3083
|
-
}
|
|
3084
|
-
function _a(e) {
|
|
3085
|
-
var t = this;
|
|
3086
|
-
return new t(function(n, r) {
|
|
3087
|
-
if (!(e && typeof e.length < "u"))
|
|
3088
|
-
return r(
|
|
3089
|
-
new TypeError(
|
|
3090
|
-
typeof e + " " + e + " is not iterable(cannot read property Symbol(Symbol.iterator))"
|
|
3091
|
-
)
|
|
3092
|
-
);
|
|
3093
|
-
var o = Array.prototype.slice.call(e);
|
|
3094
|
-
if (o.length === 0) return n([]);
|
|
3095
|
-
var s = o.length;
|
|
3096
|
-
function i(f, c) {
|
|
3097
|
-
if (c && (typeof c == "object" || typeof c == "function")) {
|
|
3098
|
-
var d = c.then;
|
|
3099
|
-
if (typeof d == "function") {
|
|
3100
|
-
d.call(
|
|
3101
|
-
c,
|
|
3102
|
-
function(g) {
|
|
3103
|
-
i(f, g);
|
|
3104
|
-
},
|
|
3105
|
-
function(g) {
|
|
3106
|
-
o[f] = { status: "rejected", reason: g }, --s === 0 && n(o);
|
|
3107
|
-
}
|
|
3108
|
-
);
|
|
3109
|
-
return;
|
|
3110
|
-
}
|
|
3111
|
-
}
|
|
3112
|
-
o[f] = { status: "fulfilled", value: c }, --s === 0 && n(o);
|
|
3113
|
-
}
|
|
3114
|
-
for (var l = 0; l < o.length; l++)
|
|
3115
|
-
i(l, o[l]);
|
|
3116
|
-
});
|
|
3117
|
-
}
|
|
3118
|
-
function Hn(e, t) {
|
|
3119
|
-
this.name = "AggregateError", this.errors = e, this.message = t || "";
|
|
3120
|
-
}
|
|
3121
|
-
Hn.prototype = Error.prototype;
|
|
3122
|
-
function Wa(e) {
|
|
3123
|
-
var t = this;
|
|
3124
|
-
return new t(function(n, r) {
|
|
3125
|
-
if (!(e && typeof e.length < "u"))
|
|
3126
|
-
return r(new TypeError("Promise.any accepts an array"));
|
|
3127
|
-
var o = Array.prototype.slice.call(e);
|
|
3128
|
-
if (o.length === 0) return r();
|
|
3129
|
-
for (var s = [], i = 0; i < o.length; i++)
|
|
3130
|
-
try {
|
|
3131
|
-
t.resolve(o[i]).then(n).catch(function(l) {
|
|
3132
|
-
s.push(l), s.length === o.length && r(
|
|
3133
|
-
new Hn(
|
|
3134
|
-
s,
|
|
3135
|
-
"All promises were rejected"
|
|
3136
|
-
)
|
|
3137
|
-
);
|
|
3138
|
-
});
|
|
3139
|
-
} catch (l) {
|
|
3140
|
-
r(l);
|
|
3141
|
-
}
|
|
3142
|
-
});
|
|
3143
|
-
}
|
|
3144
|
-
var Ja = setTimeout;
|
|
3145
|
-
function $n(e) {
|
|
3146
|
-
return !!(e && typeof e.length < "u");
|
|
3147
|
-
}
|
|
3148
|
-
function Ka() {
|
|
3149
|
-
}
|
|
3150
|
-
function Ga(e, t) {
|
|
3151
|
-
return function() {
|
|
3152
|
-
e.apply(t, arguments);
|
|
3153
|
-
};
|
|
3154
|
-
}
|
|
3155
|
-
function B(e) {
|
|
3156
|
-
if (!(this instanceof B))
|
|
3157
|
-
throw new TypeError("Promises must be constructed via new");
|
|
3158
|
-
if (typeof e != "function") throw new TypeError("not a function");
|
|
3159
|
-
this._state = 0, this._handled = !1, this._value = void 0, this._deferreds = [], Mn(e, this);
|
|
3160
|
-
}
|
|
3161
|
-
function jn(e, t) {
|
|
3162
|
-
for (; e._state === 3; )
|
|
3163
|
-
e = e._value;
|
|
3164
|
-
if (e._state === 0) {
|
|
3165
|
-
e._deferreds.push(t);
|
|
3166
|
-
return;
|
|
3167
|
-
}
|
|
3168
|
-
e._handled = !0, B._immediateFn(function() {
|
|
3169
|
-
var n = e._state === 1 ? t.onFulfilled : t.onRejected;
|
|
3170
|
-
if (n === null) {
|
|
3171
|
-
(e._state === 1 ? ct : ye)(t.promise, e._value);
|
|
3172
|
-
return;
|
|
3173
|
-
}
|
|
3174
|
-
var r;
|
|
3175
|
-
try {
|
|
3176
|
-
r = n(e._value);
|
|
3177
|
-
} catch (o) {
|
|
3178
|
-
ye(t.promise, o);
|
|
3179
|
-
return;
|
|
3180
|
-
}
|
|
3181
|
-
ct(t.promise, r);
|
|
3182
|
-
});
|
|
3183
|
-
}
|
|
3184
|
-
function ct(e, t) {
|
|
3185
|
-
try {
|
|
3186
|
-
if (t === e)
|
|
3187
|
-
throw new TypeError("A promise cannot be resolved with itself.");
|
|
3188
|
-
if (t && (typeof t == "object" || typeof t == "function")) {
|
|
3189
|
-
var n = t.then;
|
|
3190
|
-
if (t instanceof B) {
|
|
3191
|
-
e._state = 3, e._value = t, ft(e);
|
|
3192
|
-
return;
|
|
3193
|
-
} else if (typeof n == "function") {
|
|
3194
|
-
Mn(Ga(n, t), e);
|
|
3195
|
-
return;
|
|
3196
|
-
}
|
|
3197
|
-
}
|
|
3198
|
-
e._state = 1, e._value = t, ft(e);
|
|
3199
|
-
} catch (r) {
|
|
3200
|
-
ye(e, r);
|
|
3201
|
-
}
|
|
3202
|
-
}
|
|
3203
|
-
function ye(e, t) {
|
|
3204
|
-
e._state = 2, e._value = t, ft(e);
|
|
3205
|
-
}
|
|
3206
|
-
function ft(e) {
|
|
3207
|
-
e._state === 2 && e._deferreds.length === 0 && B._immediateFn(function() {
|
|
3208
|
-
e._handled || B._unhandledRejectionFn(e._value);
|
|
3209
|
-
});
|
|
3210
|
-
for (var t = 0, n = e._deferreds.length; t < n; t++)
|
|
3211
|
-
jn(e, e._deferreds[t]);
|
|
3212
|
-
e._deferreds = null;
|
|
3213
|
-
}
|
|
3214
|
-
function Xa(e, t, n) {
|
|
3215
|
-
this.onFulfilled = typeof e == "function" ? e : null, this.onRejected = typeof t == "function" ? t : null, this.promise = n;
|
|
3216
|
-
}
|
|
3217
|
-
function Mn(e, t) {
|
|
3218
|
-
var n = !1;
|
|
3219
|
-
try {
|
|
3220
|
-
e(
|
|
3221
|
-
function(r) {
|
|
3222
|
-
n || (n = !0, ct(t, r));
|
|
3223
|
-
},
|
|
3224
|
-
function(r) {
|
|
3225
|
-
n || (n = !0, ye(t, r));
|
|
3226
|
-
}
|
|
3227
|
-
);
|
|
3228
|
-
} catch (r) {
|
|
3229
|
-
if (n) return;
|
|
3230
|
-
n = !0, ye(t, r);
|
|
3231
|
-
}
|
|
3232
|
-
}
|
|
3233
|
-
B.prototype.catch = function(e) {
|
|
3234
|
-
return this.then(null, e);
|
|
3235
|
-
};
|
|
3236
|
-
B.prototype.then = function(e, t) {
|
|
3237
|
-
var n = new this.constructor(Ka);
|
|
3238
|
-
return jn(this, new Xa(e, t, n)), n;
|
|
3239
|
-
};
|
|
3240
|
-
B.prototype.finally = za;
|
|
3241
|
-
B.all = function(e) {
|
|
3242
|
-
return new B(function(t, n) {
|
|
3243
|
-
if (!$n(e))
|
|
3244
|
-
return n(new TypeError("Promise.all accepts an array"));
|
|
3245
|
-
var r = Array.prototype.slice.call(e);
|
|
3246
|
-
if (r.length === 0) return t([]);
|
|
3247
|
-
var o = r.length;
|
|
3248
|
-
function s(l, f) {
|
|
3249
|
-
try {
|
|
3250
|
-
if (f && (typeof f == "object" || typeof f == "function")) {
|
|
3251
|
-
var c = f.then;
|
|
3252
|
-
if (typeof c == "function") {
|
|
3253
|
-
c.call(
|
|
3254
|
-
f,
|
|
3255
|
-
function(d) {
|
|
3256
|
-
s(l, d);
|
|
3257
|
-
},
|
|
3258
|
-
n
|
|
3259
|
-
);
|
|
3260
|
-
return;
|
|
3261
|
-
}
|
|
3262
|
-
}
|
|
3263
|
-
r[l] = f, --o === 0 && t(r);
|
|
3264
|
-
} catch (d) {
|
|
3265
|
-
n(d);
|
|
3266
|
-
}
|
|
3267
|
-
}
|
|
3268
|
-
for (var i = 0; i < r.length; i++)
|
|
3269
|
-
s(i, r[i]);
|
|
3270
|
-
});
|
|
3271
|
-
};
|
|
3272
|
-
B.any = Wa;
|
|
3273
|
-
B.allSettled = _a;
|
|
3274
|
-
B.resolve = function(e) {
|
|
3275
|
-
return e && typeof e == "object" && e.constructor === B ? e : new B(function(t) {
|
|
3276
|
-
t(e);
|
|
3277
|
-
});
|
|
3278
|
-
};
|
|
3279
|
-
B.reject = function(e) {
|
|
3280
|
-
return new B(function(t, n) {
|
|
3281
|
-
n(e);
|
|
3282
|
-
});
|
|
3283
|
-
};
|
|
3284
|
-
B.race = function(e) {
|
|
3285
|
-
return new B(function(t, n) {
|
|
3286
|
-
if (!$n(e))
|
|
3287
|
-
return n(new TypeError("Promise.race accepts an array"));
|
|
3288
|
-
for (var r = 0, o = e.length; r < o; r++)
|
|
3289
|
-
B.resolve(e[r]).then(t, n);
|
|
3290
|
-
});
|
|
3291
|
-
};
|
|
3292
|
-
B._immediateFn = // @ts-ignore
|
|
3293
|
-
typeof setImmediate == "function" && function(e) {
|
|
3294
|
-
setImmediate(e);
|
|
3295
|
-
} || function(e) {
|
|
3296
|
-
Ja(e, 0);
|
|
3297
|
-
};
|
|
3298
|
-
B._unhandledRejectionFn = function(t) {
|
|
3299
|
-
typeof console < "u" && console && console.warn("Possible Unhandled Promise Rejection:", t);
|
|
3300
|
-
};
|
|
3301
|
-
const rn = typeof self == "object" && self.self === self && self || typeof global == "object" && global || void 0;
|
|
3302
|
-
rn.Promise || (rn.Promise = B);
|
|
3303
|
-
function Qa(e) {
|
|
3304
|
-
e.component("vuetable", Ln), e.component("vuetable-col-gutter", Dn), e.component("vuetable-field-checkbox", xn), e.component("vuetable-field-handle", An), e.component("vuetable-field-sequence", Fn), e.component("vuetable-pagination", Ha), e.component("vuetable-pagination-dropdown", Ma), e.component("vuetable-pagination-info", qa), e.component("vuetable-row-header", Bn);
|
|
3305
|
-
}
|
|
3306
|
-
Ln.install = Qa;
|
|
3307
|
-
export {
|
|
3308
|
-
Ln as Vuetable,
|
|
3309
|
-
Dn as VuetableColGutter,
|
|
3310
|
-
xn as VuetableFieldCheckbox,
|
|
3311
|
-
es as VuetableFieldCheckboxMixin,
|
|
3312
|
-
An as VuetableFieldHandle,
|
|
3313
|
-
Va as VuetableFieldMixin,
|
|
3314
|
-
Fn as VuetableFieldSequence,
|
|
3315
|
-
Ha as VuetablePagination,
|
|
3316
|
-
Ma as VuetablePaginationDropdown,
|
|
3317
|
-
qa as VuetablePaginationInfo,
|
|
3318
|
-
ts as VuetablePaginationInfoMixin,
|
|
3319
|
-
ns as VuetablePaginationMixin,
|
|
3320
|
-
Bn as VuetableRowHeader,
|
|
3321
|
-
Ln as default,
|
|
3322
|
-
Qa as install
|
|
3323
|
-
};
|
|
3324
|
-
//# sourceMappingURL=vuetable-next.js.map
|