@quoreadmin/ui 1.10.20 → 1.10.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -1
- package/dist/index131.js +168 -147
- package/dist/index149.js +78 -68
- package/dist/index157.js +30 -29
- package/dist/index198.js +17 -17
- package/dist/index212.js +4 -4
- package/dist/index216.js +2 -2
- package/dist/index217.js +1 -1
- package/dist/index219.js +4 -4
- package/dist/index221.js +1 -1
- package/dist/index222.js +1 -1
- package/dist/index223.js +1 -1
- package/dist/index224.js +4 -4
- package/dist/index226.js +1 -1
- package/dist/index227.js +2 -2
- package/dist/index228.js +2 -2
- package/dist/index229.js +1 -1
- package/dist/index230.js +2 -2
- package/dist/index232.js +1 -1
- package/dist/index233.js +1 -1
- package/dist/index234.js +1 -1
- package/dist/index235.js +1 -1
- package/dist/index236.js +1 -1
- package/dist/index237.js +1 -1
- package/dist/index242.js +1 -1
- package/dist/index243.js +1 -1
- package/dist/index244.js +1 -1
- package/dist/index245.js +4 -4
- package/dist/index246.js +1 -1
- package/dist/index247.js +1 -1
- package/dist/index248.js +1 -1
- package/dist/index249.js +1 -1
- package/dist/index250.js +1 -1
- package/dist/index251.js +1 -1
- package/dist/index252.js +6 -6
- package/dist/index253.js +1 -1
- package/dist/index254.js +1 -1
- package/dist/index255.js +1 -1
- package/dist/index256.js +1 -1
- package/dist/index257.js +1 -1
- package/dist/index259.js +1 -1
- package/dist/index260.js +1 -1
- package/dist/index261.js +3 -3
- package/dist/index262.js +1 -1
- package/dist/index263.js +1 -1
- package/dist/index264.js +1 -1
- package/dist/index265.js +1 -1
- package/dist/index266.js +1 -1
- package/dist/index267.js +1 -1
- package/dist/index270.js +6 -6
- package/dist/index271.js +1 -1
- package/dist/index272.js +1 -1
- package/dist/index285.js +2 -2
- package/dist/index286.js +253 -3
- package/dist/index287.js +8 -27
- package/dist/index288.js +104 -219
- package/dist/index289.js +83 -8
- package/dist/index290.js +2 -138
- package/dist/index291.js +59 -63
- package/dist/index292.js +48 -256
- package/dist/index293.js +25 -5
- package/dist/index294.js +21 -139
- package/dist/index295.js +21 -72
- package/dist/index296.js +14 -85
- package/dist/index297.js +17 -29
- package/dist/index298.js +22 -15
- package/dist/index299.js +3 -75
- package/dist/index300.js +26 -3
- package/dist/index301.js +79 -2
- package/dist/index302.js +21 -82
- package/dist/index303.js +929 -47
- package/dist/index304.js +21 -5
- package/dist/index305.js +19 -4
- package/dist/index306.js +19 -178
- package/dist/index307.js +67 -61
- package/dist/index308.js +18 -74
- package/dist/index309.js +19 -2
- package/dist/index310.js +21 -78
- package/dist/index311.js +21 -53
- package/dist/index312.js +63 -26
- package/dist/index313.js +261 -21
- package/dist/index314.js +5 -21
- package/dist/index315.js +139 -15
- package/dist/index316.js +73 -17
- package/dist/index317.js +85 -21
- package/dist/index318.js +26 -1531
- package/dist/index319.js +14 -384
- package/dist/index320.js +60 -2716
- package/dist/index321.js +3 -85
- package/dist/index322.js +2 -3792
- package/dist/index323.js +77 -54
- package/dist/index324.js +53 -15
- package/dist/index325.js +5 -83
- package/dist/index326.js +4 -201
- package/dist/index327.js +164 -231
- package/dist/index328.js +61 -77
- package/dist/index329.js +75 -22
- package/dist/index330.js +1507 -908
- package/dist/index331.js +386 -22
- package/dist/index332.js +2731 -20
- package/dist/index333.js +85 -19
- package/dist/index334.js +3781 -58
- package/dist/index335.js +60 -19
- package/dist/index336.js +15 -19
- package/dist/index337.js +83 -21
- package/dist/index338.js +202 -22
- package/dist/index339.js +246 -63
- package/dist/index340.js +36 -9
- package/dist/index341.js +9 -10
- package/dist/index342.js +13 -14
- package/dist/index343.js +55 -10
- package/dist/index344.js +11 -16
- package/dist/index345.js +13 -8
- package/dist/index346.js +57 -12
- package/dist/index347.js +48 -51
- package/dist/index348.js +28 -9
- package/dist/index349.js +2 -14
- package/dist/index350.js +5 -58
- package/dist/index351.js +2 -52
- package/dist/index352.js +22 -30
- package/dist/index353.js +41 -2
- package/dist/index354.js +2 -5
- package/dist/index355.js +11 -2
- package/dist/index356.js +19 -22
- package/dist/index357.js +9 -40
- package/dist/index358.js +10 -2
- package/dist/index359.js +16 -10
- package/dist/index360.js +2 -20
- package/dist/index361.js +9 -2
- package/dist/index362.js +10 -9
- package/dist/index363.js +14 -19
- package/dist/index364.js +19 -56
- package/dist/index365.js +19 -28
- package/dist/index366.js +63 -6
- package/dist/index367.js +36 -51
- package/dist/index368.js +19 -7
- package/dist/index369.js +56 -11
- package/dist/index370.js +29 -7
- package/dist/index371.js +6 -27
- package/dist/index372.js +52 -2
- package/dist/index373.js +6 -69
- package/dist/index374.js +11 -166
- package/dist/index375.js +7 -37
- package/dist/index376.js +28 -20
- package/dist/index377.js +2 -20
- package/dist/index378.js +67 -61
- package/dist/index379.js +166 -36
- package/dist/index38.js +2 -2
- package/dist/index380.js +17 -31
- package/dist/index381.js +30 -10
- package/dist/index382.js +10 -3
- package/dist/index383.js +3 -3
- package/dist/index384.js +4 -13
- package/dist/index385.js +13 -7
- package/dist/index386.js +7 -12
- package/dist/index387.js +11 -4
- package/dist/index388.js +5 -33
- package/dist/index389.js +33 -31
- package/dist/index390.js +29 -26
- package/dist/index391.js +26 -59
- package/dist/index392.js +59 -99
- package/dist/index393.js +98 -91
- package/dist/index394.js +98 -95
- package/dist/index395.js +91 -17
- package/dist/index396.js +1 -1
- package/dist/index401.js +1 -1
- package/dist/index402.js +2 -2
- package/dist/index46.js +6 -3
- package/dist/index50.js +1 -1
- package/dist/src/components/grid/grid.stories.d.ts +2 -0
- package/dist/src/components/list/list.stories.d.ts +1 -0
- package/dist/src/components/modal/modal.stories.d.ts +1 -0
- package/dist/src/components/page-layout/page-layout.vue.d.ts +4 -0
- package/dist/src/components/room-details-popover/room-details-popover.d.ts +3 -0
- package/dist/src/components/select/select.d.ts +1 -0
- package/dist/src/components/select/select.stories.d.ts +3 -0
- package/dist/src/components/time-picker/time-picker.vue.d.ts +3 -0
- package/package.json +1 -1
package/dist/index311.js
CHANGED
|
@@ -1,56 +1,24 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import C from "./index291.js";
|
|
2
|
+
import { openBlock as r, createElementBlock as t, mergeProps as o, createElementVNode as n } from "vue";
|
|
3
|
+
var l = {
|
|
4
|
+
name: "SearchIcon",
|
|
5
|
+
extends: C
|
|
6
|
+
}, i = /* @__PURE__ */ n("path", {
|
|
7
|
+
"fill-rule": "evenodd",
|
|
8
|
+
"clip-rule": "evenodd",
|
|
9
|
+
d: "M2.67602 11.0265C3.6661 11.688 4.83011 12.0411 6.02086 12.0411C6.81149 12.0411 7.59438 11.8854 8.32483 11.5828C8.87005 11.357 9.37808 11.0526 9.83317 10.6803L12.9769 13.8241C13.0323 13.8801 13.0983 13.9245 13.171 13.9548C13.2438 13.985 13.3219 14.0003 13.4007 14C13.4795 14.0003 13.5575 13.985 13.6303 13.9548C13.7031 13.9245 13.7691 13.8801 13.8244 13.8241C13.9367 13.7116 13.9998 13.5592 13.9998 13.4003C13.9998 13.2414 13.9367 13.089 13.8244 12.9765L10.6807 9.8328C11.053 9.37773 11.3573 8.86972 11.5831 8.32452C11.8857 7.59408 12.0414 6.81119 12.0414 6.02056C12.0414 4.8298 11.6883 3.66579 11.0268 2.67572C10.3652 1.68564 9.42494 0.913972 8.32483 0.45829C7.22472 0.00260857 6.01418 -0.116618 4.84631 0.115686C3.67844 0.34799 2.60568 0.921393 1.76369 1.76338C0.921698 2.60537 0.348296 3.67813 0.115991 4.84601C-0.116313 6.01388 0.00291375 7.22441 0.458595 8.32452C0.914277 9.42464 1.68595 10.3649 2.67602 11.0265ZM3.35565 2.0158C4.14456 1.48867 5.07206 1.20731 6.02086 1.20731C7.29317 1.20731 8.51338 1.71274 9.41304 2.6124C10.3127 3.51206 10.8181 4.73226 10.8181 6.00457C10.8181 6.95337 10.5368 7.88088 10.0096 8.66978C9.48251 9.45868 8.73328 10.0736 7.85669 10.4367C6.98011 10.7997 6.01554 10.8947 5.08496 10.7096C4.15439 10.5245 3.2996 10.0676 2.62869 9.39674C1.95778 8.72583 1.50089 7.87104 1.31579 6.94046C1.13068 6.00989 1.22568 5.04532 1.58878 4.16874C1.95187 3.29215 2.56675 2.54292 3.35565 2.0158Z",
|
|
10
|
+
fill: "currentColor"
|
|
11
|
+
}, null, -1), p = [i];
|
|
12
|
+
function d(e, a, c, s, h, m) {
|
|
13
|
+
return r(), t("svg", o({
|
|
14
|
+
width: "14",
|
|
15
|
+
height: "14",
|
|
16
|
+
viewBox: "0 0 14 14",
|
|
17
|
+
fill: "none",
|
|
18
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
19
|
+
}, e.pti()), p, 16);
|
|
9
20
|
}
|
|
10
|
-
|
|
11
|
-
return t = u(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
12
|
-
}
|
|
13
|
-
function u(e) {
|
|
14
|
-
var t = a(e, "string");
|
|
15
|
-
return r(t) == "symbol" ? t : String(t);
|
|
16
|
-
}
|
|
17
|
-
function a(e, t) {
|
|
18
|
-
if (r(e) != "object" || !e) return e;
|
|
19
|
-
var n = e[Symbol.toPrimitive];
|
|
20
|
-
if (n !== void 0) {
|
|
21
|
-
var o = n.call(e, t);
|
|
22
|
-
if (r(o) != "object") return o;
|
|
23
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
24
|
-
}
|
|
25
|
-
return (t === "string" ? String : Number)(e);
|
|
26
|
-
}
|
|
27
|
-
var p = {
|
|
28
|
-
root: function(t) {
|
|
29
|
-
var n = t.instance, o = t.props;
|
|
30
|
-
return ["p-button p-component", i(i(i(i(i(i(i(i({
|
|
31
|
-
"p-button-icon-only": n.hasIcon && !o.label && !o.badge,
|
|
32
|
-
"p-button-vertical": (o.iconPos === "top" || o.iconPos === "bottom") && o.label,
|
|
33
|
-
"p-disabled": n.$attrs.disabled || n.$attrs.disabled === "" || o.loading,
|
|
34
|
-
"p-button-loading": o.loading,
|
|
35
|
-
"p-button-loading-label-only": o.loading && !n.hasIcon && o.label,
|
|
36
|
-
"p-button-link": o.link
|
|
37
|
-
}, "p-button-".concat(o.severity), o.severity), "p-button-raised", o.raised), "p-button-rounded", o.rounded), "p-button-text", o.text), "p-button-outlined", o.outlined), "p-button-sm", o.size === "small"), "p-button-lg", o.size === "large"), "p-button-plain", o.plain)];
|
|
38
|
-
},
|
|
39
|
-
loadingIcon: "p-button-loading-icon pi-spin",
|
|
40
|
-
icon: function(t) {
|
|
41
|
-
var n = t.props;
|
|
42
|
-
return ["p-button-icon", {
|
|
43
|
-
"p-button-icon-left": n.iconPos === "left" && n.label,
|
|
44
|
-
"p-button-icon-right": n.iconPos === "right" && n.label,
|
|
45
|
-
"p-button-icon-top": n.iconPos === "top" && n.label,
|
|
46
|
-
"p-button-icon-bottom": n.iconPos === "bottom" && n.label
|
|
47
|
-
}];
|
|
48
|
-
},
|
|
49
|
-
label: "p-button-label"
|
|
50
|
-
}, s = l.extend({
|
|
51
|
-
name: "button",
|
|
52
|
-
classes: p
|
|
53
|
-
});
|
|
21
|
+
l.render = d;
|
|
54
22
|
export {
|
|
55
|
-
|
|
23
|
+
l as default
|
|
56
24
|
};
|
package/dist/index312.js
CHANGED
|
@@ -1,28 +1,65 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
},
|
|
16
|
-
function
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
1
|
+
import a from "./index288.js";
|
|
2
|
+
var l = {
|
|
3
|
+
root: function(e) {
|
|
4
|
+
var p = e.instance, n = e.props, o = e.state;
|
|
5
|
+
return ["p-dropdown p-component p-inputwrapper", {
|
|
6
|
+
"p-disabled": n.disabled,
|
|
7
|
+
"p-invalid": n.invalid,
|
|
8
|
+
"p-variant-filled": n.variant ? n.variant === "filled" : p.$primevue.config.inputStyle === "filled",
|
|
9
|
+
"p-dropdown-clearable": n.showClear,
|
|
10
|
+
"p-focus": o.focused,
|
|
11
|
+
"p-inputwrapper-filled": p.hasSelectedOption,
|
|
12
|
+
"p-inputwrapper-focus": o.focused || o.overlayVisible,
|
|
13
|
+
"p-overlay-open": o.overlayVisible
|
|
14
|
+
}];
|
|
15
|
+
},
|
|
16
|
+
input: function(e) {
|
|
17
|
+
var p, n = e.instance, o = e.props;
|
|
18
|
+
return ["p-dropdown-label p-inputtext", {
|
|
19
|
+
"p-placeholder": !o.editable && n.label === o.placeholder,
|
|
20
|
+
"p-dropdown-label-empty": !o.editable && !n.$slots.value && (n.label === "p-emptylabel" || ((p = n.label) === null || p === void 0 ? void 0 : p.length) === 0)
|
|
21
|
+
}];
|
|
22
|
+
},
|
|
23
|
+
clearIcon: "p-dropdown-clear-icon",
|
|
24
|
+
trigger: "p-dropdown-trigger",
|
|
25
|
+
loadingicon: "p-dropdown-trigger-icon",
|
|
26
|
+
dropdownIcon: "p-dropdown-trigger-icon",
|
|
27
|
+
panel: function(e) {
|
|
28
|
+
e.props;
|
|
29
|
+
var p = e.instance;
|
|
30
|
+
return ["p-dropdown-panel p-component", {
|
|
31
|
+
"p-ripple-disabled": p.$primevue.config.ripple === !1
|
|
32
|
+
}];
|
|
33
|
+
},
|
|
34
|
+
header: "p-dropdown-header",
|
|
35
|
+
filterContainer: "p-dropdown-filter-container",
|
|
36
|
+
filterInput: function(e) {
|
|
37
|
+
var p = e.props, n = e.instance;
|
|
38
|
+
return ["p-dropdown-filter p-inputtext p-component", {
|
|
39
|
+
"p-variant-filled": p.variant ? p.variant === "filled" : n.$primevue.config.inputStyle === "filled"
|
|
40
|
+
}];
|
|
41
|
+
},
|
|
42
|
+
filterIcon: "p-dropdown-filter-icon",
|
|
43
|
+
wrapper: "p-dropdown-items-wrapper",
|
|
44
|
+
list: "p-dropdown-items",
|
|
45
|
+
itemGroup: "p-dropdown-item-group",
|
|
46
|
+
itemGroupLabel: "p-dropdown-item-group-label",
|
|
47
|
+
item: function(e) {
|
|
48
|
+
var p = e.instance, n = e.props, o = e.state, t = e.option, r = e.focusedOption;
|
|
49
|
+
return ["p-dropdown-item", {
|
|
50
|
+
"p-highlight": p.isSelected(t) && n.highlightOnSelect,
|
|
51
|
+
"p-focus": o.focusedOptionIndex === r,
|
|
52
|
+
"p-disabled": p.isOptionDisabled(t)
|
|
53
|
+
}];
|
|
54
|
+
},
|
|
55
|
+
itemLabel: "p-dropdown-item-label",
|
|
56
|
+
checkIcon: "p-dropdown-check-icon",
|
|
57
|
+
blankIcon: "p-dropdown-blank-icon",
|
|
58
|
+
emptyMessage: "p-dropdown-empty-message"
|
|
59
|
+
}, s = a.extend({
|
|
60
|
+
name: "dropdown",
|
|
61
|
+
classes: l
|
|
62
|
+
});
|
|
26
63
|
export {
|
|
27
|
-
|
|
64
|
+
s as default
|
|
28
65
|
};
|
package/dist/index313.js
CHANGED
|
@@ -1,24 +1,264 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
"clip-rule": "evenodd",
|
|
9
|
-
d: "M3.11101 12.8203C4.26215 13.5895 5.61553 14 7 14C8.85652 14 10.637 13.2625 11.9497 11.9497C13.2625 10.637 14 8.85652 14 7C14 5.61553 13.5895 4.26215 12.8203 3.11101C12.0511 1.95987 10.9579 1.06266 9.67879 0.532846C8.3997 0.00303296 6.99224 -0.13559 5.63437 0.134506C4.2765 0.404603 3.02922 1.07129 2.05026 2.05026C1.07129 3.02922 0.404603 4.2765 0.134506 5.63437C-0.13559 6.99224 0.00303296 8.3997 0.532846 9.67879C1.06266 10.9579 1.95987 12.0511 3.11101 12.8203ZM3.75918 2.14976C4.71846 1.50879 5.84628 1.16667 7 1.16667C8.5471 1.16667 10.0308 1.78125 11.1248 2.87521C12.2188 3.96918 12.8333 5.45291 12.8333 7C12.8333 8.15373 12.4912 9.28154 11.8502 10.2408C11.2093 11.2001 10.2982 11.9478 9.23232 12.3893C8.16642 12.8308 6.99353 12.9463 5.86198 12.7212C4.73042 12.4962 3.69102 11.9406 2.87521 11.1248C2.05941 10.309 1.50384 9.26958 1.27876 8.13803C1.05367 7.00647 1.16919 5.83358 1.61071 4.76768C2.05222 3.70178 2.79989 2.79074 3.75918 2.14976ZM7.00002 4.8611C6.84594 4.85908 6.69873 4.79698 6.58977 4.68801C6.48081 4.57905 6.4187 4.43185 6.41669 4.27776V3.88888C6.41669 3.73417 6.47815 3.58579 6.58754 3.4764C6.69694 3.367 6.84531 3.30554 7.00002 3.30554C7.15473 3.30554 7.3031 3.367 7.4125 3.4764C7.52189 3.58579 7.58335 3.73417 7.58335 3.88888V4.27776C7.58134 4.43185 7.51923 4.57905 7.41027 4.68801C7.30131 4.79698 7.1541 4.85908 7.00002 4.8611ZM7.00002 10.6945C6.84594 10.6925 6.69873 10.6304 6.58977 10.5214C6.48081 10.4124 6.4187 10.2652 6.41669 10.1111V6.22225C6.41669 6.06754 6.47815 5.91917 6.58754 5.80977C6.69694 5.70037 6.84531 5.63892 7.00002 5.63892C7.15473 5.63892 7.3031 5.70037 7.4125 5.80977C7.52189 5.91917 7.58335 6.06754 7.58335 6.22225V10.1111C7.58134 10.2652 7.51923 10.4124 7.41027 10.5214C7.30131 10.6304 7.1541 10.6925 7.00002 10.6945Z",
|
|
10
|
-
fill: "currentColor"
|
|
11
|
-
}, null, -1), p = [i];
|
|
12
|
-
function d(C, c, s, a, m, f) {
|
|
13
|
-
return r(), o("svg", t({
|
|
14
|
-
width: "14",
|
|
15
|
-
height: "14",
|
|
16
|
-
viewBox: "0 0 14 14",
|
|
17
|
-
fill: "none",
|
|
18
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
19
|
-
}, C.pti()), p, 16);
|
|
1
|
+
import R from "./index314.js";
|
|
2
|
+
const { toString: T } = Object.prototype, { getPrototypeOf: h } = Object, { iterator: g, toStringTag: x } = Symbol, b = /* @__PURE__ */ ((e) => (t) => {
|
|
3
|
+
const r = T.call(t);
|
|
4
|
+
return e[r] || (e[r] = r.slice(8, -1).toLowerCase());
|
|
5
|
+
})(/* @__PURE__ */ Object.create(null)), f = (e) => (e = e.toLowerCase(), (t) => b(t) === e), O = (e) => (t) => typeof t === e, { isArray: p } = Array, a = O("undefined");
|
|
6
|
+
function d(e) {
|
|
7
|
+
return e !== null && !a(e) && e.constructor !== null && !a(e.constructor) && c(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
20
8
|
}
|
|
21
|
-
|
|
9
|
+
const S = f("ArrayBuffer");
|
|
10
|
+
function M(e) {
|
|
11
|
+
let t;
|
|
12
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && S(e.buffer), t;
|
|
13
|
+
}
|
|
14
|
+
const _ = O("string"), c = O("function"), B = O("number"), y = (e) => e !== null && typeof e == "object", N = (e) => e === !0 || e === !1, w = (e) => {
|
|
15
|
+
if (b(e) !== "object")
|
|
16
|
+
return !1;
|
|
17
|
+
const t = h(e);
|
|
18
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(x in e) && !(g in e);
|
|
19
|
+
}, U = (e) => {
|
|
20
|
+
if (!y(e) || d(e))
|
|
21
|
+
return !1;
|
|
22
|
+
try {
|
|
23
|
+
return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
|
|
24
|
+
} catch {
|
|
25
|
+
return !1;
|
|
26
|
+
}
|
|
27
|
+
}, I = f("Date"), k = f("File"), V = f("Blob"), q = f("FileList"), H = (e) => y(e) && c(e.pipe), z = (e) => {
|
|
28
|
+
let t;
|
|
29
|
+
return e && (typeof FormData == "function" && e instanceof FormData || c(e.append) && ((t = b(e)) === "formdata" || // detect form-data instance
|
|
30
|
+
t === "object" && c(e.toString) && e.toString() === "[object FormData]"));
|
|
31
|
+
}, J = f("URLSearchParams"), [K, $, W, G] = [
|
|
32
|
+
"ReadableStream",
|
|
33
|
+
"Request",
|
|
34
|
+
"Response",
|
|
35
|
+
"Headers"
|
|
36
|
+
].map(f), Q = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
37
|
+
function m(e, t, { allOwnKeys: r = !1 } = {}) {
|
|
38
|
+
if (e === null || typeof e > "u")
|
|
39
|
+
return;
|
|
40
|
+
let n, s;
|
|
41
|
+
if (typeof e != "object" && (e = [e]), p(e))
|
|
42
|
+
for (n = 0, s = e.length; n < s; n++)
|
|
43
|
+
t.call(null, e[n], n, e);
|
|
44
|
+
else {
|
|
45
|
+
if (d(e))
|
|
46
|
+
return;
|
|
47
|
+
const o = r ? Object.getOwnPropertyNames(e) : Object.keys(e), i = o.length;
|
|
48
|
+
let l;
|
|
49
|
+
for (n = 0; n < i; n++)
|
|
50
|
+
l = o[n], t.call(null, e[l], l, e);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
function E(e, t) {
|
|
54
|
+
if (d(e))
|
|
55
|
+
return null;
|
|
56
|
+
t = t.toLowerCase();
|
|
57
|
+
const r = Object.keys(e);
|
|
58
|
+
let n = r.length, s;
|
|
59
|
+
for (; n-- > 0; )
|
|
60
|
+
if (s = r[n], t === s.toLowerCase())
|
|
61
|
+
return s;
|
|
62
|
+
return null;
|
|
63
|
+
}
|
|
64
|
+
const u = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, L = (e) => !a(e) && e !== u;
|
|
65
|
+
function F() {
|
|
66
|
+
const { caseless: e, skipUndefined: t } = L(this) && this || {}, r = {}, n = (s, o) => {
|
|
67
|
+
if (o === "__proto__" || o === "constructor" || o === "prototype")
|
|
68
|
+
return;
|
|
69
|
+
const i = e && E(r, o) || o;
|
|
70
|
+
w(r[i]) && w(s) ? r[i] = F(r[i], s) : w(s) ? r[i] = F({}, s) : p(s) ? r[i] = s.slice() : (!t || !a(s)) && (r[i] = s);
|
|
71
|
+
};
|
|
72
|
+
for (let s = 0, o = arguments.length; s < o; s++)
|
|
73
|
+
arguments[s] && m(arguments[s], n);
|
|
74
|
+
return r;
|
|
75
|
+
}
|
|
76
|
+
const X = (e, t, r, { allOwnKeys: n } = {}) => (m(
|
|
77
|
+
t,
|
|
78
|
+
(s, o) => {
|
|
79
|
+
r && c(s) ? Object.defineProperty(e, o, {
|
|
80
|
+
value: R(s, r),
|
|
81
|
+
writable: !0,
|
|
82
|
+
enumerable: !0,
|
|
83
|
+
configurable: !0
|
|
84
|
+
}) : Object.defineProperty(e, o, {
|
|
85
|
+
value: s,
|
|
86
|
+
writable: !0,
|
|
87
|
+
enumerable: !0,
|
|
88
|
+
configurable: !0
|
|
89
|
+
});
|
|
90
|
+
},
|
|
91
|
+
{ allOwnKeys: n }
|
|
92
|
+
), e), Y = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Z = (e, t, r, n) => {
|
|
93
|
+
e.prototype = Object.create(
|
|
94
|
+
t.prototype,
|
|
95
|
+
n
|
|
96
|
+
), Object.defineProperty(e.prototype, "constructor", {
|
|
97
|
+
value: e,
|
|
98
|
+
writable: !0,
|
|
99
|
+
enumerable: !1,
|
|
100
|
+
configurable: !0
|
|
101
|
+
}), Object.defineProperty(e, "super", {
|
|
102
|
+
value: t.prototype
|
|
103
|
+
}), r && Object.assign(e.prototype, r);
|
|
104
|
+
}, j = (e, t, r, n) => {
|
|
105
|
+
let s, o, i;
|
|
106
|
+
const l = {};
|
|
107
|
+
if (t = t || {}, e == null) return t;
|
|
108
|
+
do {
|
|
109
|
+
for (s = Object.getOwnPropertyNames(e), o = s.length; o-- > 0; )
|
|
110
|
+
i = s[o], (!n || n(i, e, t)) && !l[i] && (t[i] = e[i], l[i] = !0);
|
|
111
|
+
e = r !== !1 && h(e);
|
|
112
|
+
} while (e && (!r || r(e, t)) && e !== Object.prototype);
|
|
113
|
+
return t;
|
|
114
|
+
}, v = (e, t, r) => {
|
|
115
|
+
e = String(e), (r === void 0 || r > e.length) && (r = e.length), r -= t.length;
|
|
116
|
+
const n = e.indexOf(t, r);
|
|
117
|
+
return n !== -1 && n === r;
|
|
118
|
+
}, ee = (e) => {
|
|
119
|
+
if (!e) return null;
|
|
120
|
+
if (p(e)) return e;
|
|
121
|
+
let t = e.length;
|
|
122
|
+
if (!B(t)) return null;
|
|
123
|
+
const r = new Array(t);
|
|
124
|
+
for (; t-- > 0; )
|
|
125
|
+
r[t] = e[t];
|
|
126
|
+
return r;
|
|
127
|
+
}, te = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && h(Uint8Array)), re = (e, t) => {
|
|
128
|
+
const n = (e && e[g]).call(e);
|
|
129
|
+
let s;
|
|
130
|
+
for (; (s = n.next()) && !s.done; ) {
|
|
131
|
+
const o = s.value;
|
|
132
|
+
t.call(e, o[0], o[1]);
|
|
133
|
+
}
|
|
134
|
+
}, ne = (e, t) => {
|
|
135
|
+
let r;
|
|
136
|
+
const n = [];
|
|
137
|
+
for (; (r = e.exec(t)) !== null; )
|
|
138
|
+
n.push(r);
|
|
139
|
+
return n;
|
|
140
|
+
}, se = f("HTMLFormElement"), oe = (e) => e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(r, n, s) {
|
|
141
|
+
return n.toUpperCase() + s;
|
|
142
|
+
}), P = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype), ie = f("RegExp"), C = (e, t) => {
|
|
143
|
+
const r = Object.getOwnPropertyDescriptors(e), n = {};
|
|
144
|
+
m(r, (s, o) => {
|
|
145
|
+
let i;
|
|
146
|
+
(i = t(s, o, e)) !== !1 && (n[o] = i || s);
|
|
147
|
+
}), Object.defineProperties(e, n);
|
|
148
|
+
}, ce = (e) => {
|
|
149
|
+
C(e, (t, r) => {
|
|
150
|
+
if (c(e) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
|
|
151
|
+
return !1;
|
|
152
|
+
const n = e[r];
|
|
153
|
+
if (c(n)) {
|
|
154
|
+
if (t.enumerable = !1, "writable" in t) {
|
|
155
|
+
t.writable = !1;
|
|
156
|
+
return;
|
|
157
|
+
}
|
|
158
|
+
t.set || (t.set = () => {
|
|
159
|
+
throw Error("Can not rewrite read-only method '" + r + "'");
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
}, fe = (e, t) => {
|
|
164
|
+
const r = {}, n = (s) => {
|
|
165
|
+
s.forEach((o) => {
|
|
166
|
+
r[o] = !0;
|
|
167
|
+
});
|
|
168
|
+
};
|
|
169
|
+
return p(e) ? n(e) : n(String(e).split(t)), r;
|
|
170
|
+
}, le = () => {
|
|
171
|
+
}, ue = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
172
|
+
function ae(e) {
|
|
173
|
+
return !!(e && c(e.append) && e[x] === "FormData" && e[g]);
|
|
174
|
+
}
|
|
175
|
+
const pe = (e) => {
|
|
176
|
+
const t = new Array(10), r = (n, s) => {
|
|
177
|
+
if (y(n)) {
|
|
178
|
+
if (t.indexOf(n) >= 0)
|
|
179
|
+
return;
|
|
180
|
+
if (d(n))
|
|
181
|
+
return n;
|
|
182
|
+
if (!("toJSON" in n)) {
|
|
183
|
+
t[s] = n;
|
|
184
|
+
const o = p(n) ? [] : {};
|
|
185
|
+
return m(n, (i, l) => {
|
|
186
|
+
const A = r(i, s + 1);
|
|
187
|
+
!a(A) && (o[l] = A);
|
|
188
|
+
}), t[s] = void 0, o;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
return n;
|
|
192
|
+
};
|
|
193
|
+
return r(e, 0);
|
|
194
|
+
}, de = f("AsyncFunction"), ye = (e) => e && (y(e) || c(e)) && c(e.then) && c(e.catch), D = ((e, t) => e ? setImmediate : t ? ((r, n) => (u.addEventListener(
|
|
195
|
+
"message",
|
|
196
|
+
({ source: s, data: o }) => {
|
|
197
|
+
s === u && o === r && n.length && n.shift()();
|
|
198
|
+
},
|
|
199
|
+
!1
|
|
200
|
+
), (s) => {
|
|
201
|
+
n.push(s), u.postMessage(r, "*");
|
|
202
|
+
}))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(typeof setImmediate == "function", c(u.postMessage)), me = typeof queueMicrotask < "u" ? queueMicrotask.bind(u) : typeof process < "u" && process.nextTick || D, we = (e) => e != null && c(e[g]), be = {
|
|
203
|
+
isArray: p,
|
|
204
|
+
isArrayBuffer: S,
|
|
205
|
+
isBuffer: d,
|
|
206
|
+
isFormData: z,
|
|
207
|
+
isArrayBufferView: M,
|
|
208
|
+
isString: _,
|
|
209
|
+
isNumber: B,
|
|
210
|
+
isBoolean: N,
|
|
211
|
+
isObject: y,
|
|
212
|
+
isPlainObject: w,
|
|
213
|
+
isEmptyObject: U,
|
|
214
|
+
isReadableStream: K,
|
|
215
|
+
isRequest: $,
|
|
216
|
+
isResponse: W,
|
|
217
|
+
isHeaders: G,
|
|
218
|
+
isUndefined: a,
|
|
219
|
+
isDate: I,
|
|
220
|
+
isFile: k,
|
|
221
|
+
isBlob: V,
|
|
222
|
+
isRegExp: ie,
|
|
223
|
+
isFunction: c,
|
|
224
|
+
isStream: H,
|
|
225
|
+
isURLSearchParams: J,
|
|
226
|
+
isTypedArray: te,
|
|
227
|
+
isFileList: q,
|
|
228
|
+
forEach: m,
|
|
229
|
+
merge: F,
|
|
230
|
+
extend: X,
|
|
231
|
+
trim: Q,
|
|
232
|
+
stripBOM: Y,
|
|
233
|
+
inherits: Z,
|
|
234
|
+
toFlatObject: j,
|
|
235
|
+
kindOf: b,
|
|
236
|
+
kindOfTest: f,
|
|
237
|
+
endsWith: v,
|
|
238
|
+
toArray: ee,
|
|
239
|
+
forEachEntry: re,
|
|
240
|
+
matchAll: ne,
|
|
241
|
+
isHTMLForm: se,
|
|
242
|
+
hasOwnProperty: P,
|
|
243
|
+
hasOwnProp: P,
|
|
244
|
+
// an alias to avoid ESLint no-prototype-builtins detection
|
|
245
|
+
reduceDescriptors: C,
|
|
246
|
+
freezeMethods: ce,
|
|
247
|
+
toObjectSet: fe,
|
|
248
|
+
toCamelCase: oe,
|
|
249
|
+
noop: le,
|
|
250
|
+
toFiniteNumber: ue,
|
|
251
|
+
findKey: E,
|
|
252
|
+
global: u,
|
|
253
|
+
isContextDefined: L,
|
|
254
|
+
isSpecCompliantForm: ae,
|
|
255
|
+
toJSONObject: pe,
|
|
256
|
+
isAsyncFn: de,
|
|
257
|
+
isThenable: ye,
|
|
258
|
+
setImmediate: D,
|
|
259
|
+
asap: me,
|
|
260
|
+
isIterable: we
|
|
261
|
+
};
|
|
22
262
|
export {
|
|
23
|
-
|
|
263
|
+
be as default
|
|
24
264
|
};
|
package/dist/index314.js
CHANGED
|
@@ -1,24 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
extends: e
|
|
6
|
-
}, i = /* @__PURE__ */ l("path", {
|
|
7
|
-
"fill-rule": "evenodd",
|
|
8
|
-
"clip-rule": "evenodd",
|
|
9
|
-
d: "M7 14C5.61553 14 4.26215 13.5895 3.11101 12.8203C1.95987 12.0511 1.06266 10.9579 0.532846 9.67879C0.00303296 8.3997 -0.13559 6.99224 0.134506 5.63437C0.404603 4.2765 1.07129 3.02922 2.05026 2.05026C3.02922 1.07129 4.2765 0.404603 5.63437 0.134506C6.99224 -0.13559 8.3997 0.00303296 9.67879 0.532846C10.9579 1.06266 12.0511 1.95987 12.8203 3.11101C13.5895 4.26215 14 5.61553 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM7 1.16667C5.84628 1.16667 4.71846 1.50879 3.75918 2.14976C2.79989 2.79074 2.05222 3.70178 1.61071 4.76768C1.16919 5.83358 1.05367 7.00647 1.27876 8.13803C1.50384 9.26958 2.05941 10.309 2.87521 11.1248C3.69102 11.9406 4.73042 12.4962 5.86198 12.7212C6.99353 12.9463 8.16642 12.8308 9.23232 12.3893C10.2982 11.9478 11.2093 11.2001 11.8502 10.2408C12.4912 9.28154 12.8333 8.15373 12.8333 7C12.8333 5.45291 12.2188 3.96918 11.1248 2.87521C10.0308 1.78125 8.5471 1.16667 7 1.16667ZM4.66662 9.91668C4.58998 9.91704 4.51404 9.90209 4.44325 9.87271C4.37246 9.84333 4.30826 9.8001 4.2544 9.74557C4.14516 9.6362 4.0838 9.48793 4.0838 9.33335C4.0838 9.17876 4.14516 9.0305 4.2544 8.92113L6.17553 7L4.25443 5.07891C4.15139 4.96832 4.09529 4.82207 4.09796 4.67094C4.10063 4.51982 4.16185 4.37563 4.26872 4.26876C4.3756 4.16188 4.51979 4.10066 4.67091 4.09799C4.82204 4.09532 4.96829 4.15142 5.07887 4.25446L6.99997 6.17556L8.92106 4.25446C9.03164 4.15142 9.1779 4.09532 9.32903 4.09799C9.48015 4.10066 9.62434 4.16188 9.73121 4.26876C9.83809 4.37563 9.89931 4.51982 9.90198 4.67094C9.90464 4.82207 9.84855 4.96832 9.74551 5.07891L7.82441 7L9.74554 8.92113C9.85478 9.0305 9.91614 9.17876 9.91614 9.33335C9.91614 9.48793 9.85478 9.6362 9.74554 9.74557C9.69168 9.8001 9.62748 9.84333 9.55669 9.87271C9.4859 9.90209 9.40996 9.91704 9.33332 9.91668C9.25668 9.91704 9.18073 9.90209 9.10995 9.87271C9.03916 9.84333 8.97495 9.8001 8.9211 9.74557L6.99997 7.82444L5.07884 9.74557C5.02499 9.8001 4.96078 9.84333 4.88999 9.87271C4.81921 9.90209 4.74326 9.91704 4.66662 9.91668Z",
|
|
10
|
-
fill: "currentColor"
|
|
11
|
-
}, null, -1), p = [i];
|
|
12
|
-
function d(C, s, c, a, m, h) {
|
|
13
|
-
return r(), t("svg", o({
|
|
14
|
-
width: "14",
|
|
15
|
-
height: "14",
|
|
16
|
-
viewBox: "0 0 14 14",
|
|
17
|
-
fill: "none",
|
|
18
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
19
|
-
}, C.pti()), p, 16);
|
|
1
|
+
function u(n, r) {
|
|
2
|
+
return function() {
|
|
3
|
+
return n.apply(r, arguments);
|
|
4
|
+
};
|
|
20
5
|
}
|
|
21
|
-
n.render = d;
|
|
22
6
|
export {
|
|
23
|
-
|
|
7
|
+
u as default
|
|
24
8
|
};
|
package/dist/index315.js
CHANGED
|
@@ -1,18 +1,142 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import d from "./index313.js";
|
|
2
|
+
import S from "./index368.js";
|
|
3
|
+
import E from "./index369.js";
|
|
4
|
+
import I from "./index370.js";
|
|
5
|
+
import w from "./index316.js";
|
|
6
|
+
import U from "./index371.js";
|
|
7
|
+
import y from "./index372.js";
|
|
8
|
+
import A from "./index327.js";
|
|
9
|
+
import T from "./index373.js";
|
|
10
|
+
const l = y.validators;
|
|
11
|
+
class q {
|
|
12
|
+
constructor(t) {
|
|
13
|
+
this.defaults = t || {}, this.interceptors = {
|
|
14
|
+
request: new E(),
|
|
15
|
+
response: new E()
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Dispatch a request
|
|
20
|
+
*
|
|
21
|
+
* @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
|
|
22
|
+
* @param {?Object} config
|
|
23
|
+
*
|
|
24
|
+
* @returns {Promise} The Promise to be fulfilled
|
|
25
|
+
*/
|
|
26
|
+
async request(t, e) {
|
|
27
|
+
try {
|
|
28
|
+
return await this._request(t, e);
|
|
29
|
+
} catch (r) {
|
|
30
|
+
if (r instanceof Error) {
|
|
31
|
+
let n = {};
|
|
32
|
+
Error.captureStackTrace ? Error.captureStackTrace(n) : n = new Error();
|
|
33
|
+
const s = n.stack ? n.stack.replace(/^.+\n/, "") : "";
|
|
34
|
+
try {
|
|
35
|
+
r.stack ? s && !String(r.stack).endsWith(s.replace(/^.+\n.+\n/, "")) && (r.stack += `
|
|
36
|
+
` + s) : r.stack = s;
|
|
37
|
+
} catch {
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
throw r;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
_request(t, e) {
|
|
44
|
+
typeof t == "string" ? (e = e || {}, e.url = t) : e = t || {}, e = w(this.defaults, e);
|
|
45
|
+
const { transitional: r, paramsSerializer: n, headers: s } = e;
|
|
46
|
+
r !== void 0 && y.assertOptions(r, {
|
|
47
|
+
silentJSONParsing: l.transitional(l.boolean),
|
|
48
|
+
forcedJSONParsing: l.transitional(l.boolean),
|
|
49
|
+
clarifyTimeoutError: l.transitional(l.boolean),
|
|
50
|
+
legacyInterceptorReqResOrdering: l.transitional(l.boolean)
|
|
51
|
+
}, !1), n != null && (d.isFunction(n) ? e.paramsSerializer = {
|
|
52
|
+
serialize: n
|
|
53
|
+
} : y.assertOptions(n, {
|
|
54
|
+
encode: l.function,
|
|
55
|
+
serialize: l.function
|
|
56
|
+
}, !0)), e.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? e.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : e.allowAbsoluteUrls = !0), y.assertOptions(e, {
|
|
57
|
+
baseUrl: l.spelling("baseURL"),
|
|
58
|
+
withXsrfToken: l.spelling("withXSRFToken")
|
|
59
|
+
}, !0), e.method = (e.method || this.defaults.method || "get").toLowerCase();
|
|
60
|
+
let f = s && d.merge(
|
|
61
|
+
s.common,
|
|
62
|
+
s[e.method]
|
|
63
|
+
);
|
|
64
|
+
s && d.forEach(
|
|
65
|
+
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
66
|
+
(a) => {
|
|
67
|
+
delete s[a];
|
|
68
|
+
}
|
|
69
|
+
), e.headers = A.concat(f, s);
|
|
70
|
+
const u = [];
|
|
71
|
+
let b = !0;
|
|
72
|
+
this.interceptors.request.forEach(function(o) {
|
|
73
|
+
if (typeof o.runWhen == "function" && o.runWhen(e) === !1)
|
|
74
|
+
return;
|
|
75
|
+
b = b && o.synchronous;
|
|
76
|
+
const m = e.transitional || T;
|
|
77
|
+
m && m.legacyInterceptorReqResOrdering ? u.unshift(o.fulfilled, o.rejected) : u.push(o.fulfilled, o.rejected);
|
|
78
|
+
});
|
|
79
|
+
const p = [];
|
|
80
|
+
this.interceptors.response.forEach(function(o) {
|
|
81
|
+
p.push(o.fulfilled, o.rejected);
|
|
82
|
+
});
|
|
83
|
+
let h, i = 0, c;
|
|
84
|
+
if (!b) {
|
|
85
|
+
const a = [I.bind(this), void 0];
|
|
86
|
+
for (a.unshift(...u), a.push(...p), c = a.length, h = Promise.resolve(e); i < c; )
|
|
87
|
+
h = h.then(a[i++], a[i++]);
|
|
88
|
+
return h;
|
|
89
|
+
}
|
|
90
|
+
c = u.length;
|
|
91
|
+
let R = e;
|
|
92
|
+
for (; i < c; ) {
|
|
93
|
+
const a = u[i++], o = u[i++];
|
|
94
|
+
try {
|
|
95
|
+
R = a(R);
|
|
96
|
+
} catch (m) {
|
|
97
|
+
o.call(this, m);
|
|
98
|
+
break;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
try {
|
|
102
|
+
h = I.call(this, R);
|
|
103
|
+
} catch (a) {
|
|
104
|
+
return Promise.reject(a);
|
|
105
|
+
}
|
|
106
|
+
for (i = 0, c = p.length; i < c; )
|
|
107
|
+
h = h.then(p[i++], p[i++]);
|
|
108
|
+
return h;
|
|
109
|
+
}
|
|
110
|
+
getUri(t) {
|
|
111
|
+
t = w(this.defaults, t);
|
|
112
|
+
const e = U(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
113
|
+
return S(e, t.params, t.paramsSerializer);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
d.forEach(["delete", "get", "head", "options"], function(t) {
|
|
117
|
+
q.prototype[t] = function(e, r) {
|
|
118
|
+
return this.request(w(r || {}, {
|
|
119
|
+
method: t,
|
|
120
|
+
url: e,
|
|
121
|
+
data: (r || {}).data
|
|
122
|
+
}));
|
|
123
|
+
};
|
|
124
|
+
});
|
|
125
|
+
d.forEach(["post", "put", "patch"], function(t) {
|
|
126
|
+
function e(r) {
|
|
127
|
+
return function(s, f, u) {
|
|
128
|
+
return this.request(w(u || {}, {
|
|
129
|
+
method: t,
|
|
130
|
+
headers: r ? {
|
|
131
|
+
"Content-Type": "multipart/form-data"
|
|
132
|
+
} : {},
|
|
133
|
+
url: s,
|
|
134
|
+
data: f
|
|
135
|
+
}));
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
q.prototype[t] = e(), q.prototype[t + "Form"] = e(!0);
|
|
15
139
|
});
|
|
16
140
|
export {
|
|
17
|
-
|
|
141
|
+
q as default
|
|
18
142
|
};
|