admins-components 9.0.9 → 9.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.
Files changed (92) hide show
  1. package/dist/admins-components.js +18 -17
  2. package/dist/admins-components100.js +250 -25
  3. package/dist/admins-components101.js +26 -27
  4. package/dist/admins-components102.js +25 -169
  5. package/dist/admins-components103.js +165 -61
  6. package/dist/admins-components104.js +61 -60
  7. package/dist/admins-components105.js +65 -28
  8. package/dist/admins-components106.js +28 -14
  9. package/dist/admins-components107.js +15 -26
  10. package/dist/admins-components108.js +26 -8
  11. package/dist/admins-components109.js +9 -4
  12. package/dist/admins-components110.js +4 -3
  13. package/dist/admins-components111.js +2 -2
  14. package/dist/admins-components112.js +3 -21
  15. package/dist/admins-components113.js +21 -14
  16. package/dist/admins-components114.js +14 -8
  17. package/dist/admins-components115.js +8 -13
  18. package/dist/admins-components116.js +11 -24
  19. package/dist/admins-components117.js +24 -81
  20. package/dist/admins-components118.js +82 -10
  21. package/dist/admins-components119.js +10 -4
  22. package/dist/admins-components120.js +5 -8
  23. package/dist/admins-components121.js +7 -6
  24. package/dist/admins-components122.js +6 -5
  25. package/dist/admins-components123.js +4 -13
  26. package/dist/admins-components124.js +11 -9
  27. package/dist/admins-components125.js +13 -30
  28. package/dist/admins-components126.js +30 -4
  29. package/dist/admins-components127.js +4 -29
  30. package/dist/admins-components128.js +29 -5
  31. package/dist/admins-components129.js +3 -3
  32. package/dist/admins-components13.js +1 -1
  33. package/dist/admins-components130.js +4 -7
  34. package/dist/admins-components131.js +7 -73
  35. package/dist/admins-components132.js +71 -26
  36. package/dist/admins-components133.js +27 -57
  37. package/dist/admins-components134.js +57 -22
  38. package/dist/admins-components135.js +21 -47
  39. package/dist/admins-components136.js +48 -29
  40. package/dist/admins-components137.js +31 -3
  41. package/dist/admins-components138.js +3 -179
  42. package/dist/admins-components139.js +176 -43
  43. package/dist/admins-components140.js +44 -35
  44. package/dist/admins-components141.js +34 -43
  45. package/dist/admins-components142.js +42 -137
  46. package/dist/admins-components143.js +134 -51
  47. package/dist/admins-components144.js +58 -7
  48. package/dist/admins-components145.js +6 -5
  49. package/dist/admins-components146.js +6 -76
  50. package/dist/admins-components147.js +76 -29
  51. package/dist/admins-components148.js +29 -1931
  52. package/dist/admins-components149.js +1748 -24628
  53. package/dist/admins-components15.js +9 -10
  54. package/dist/admins-components150.js +24810 -8
  55. package/dist/admins-components151.js +9 -7
  56. package/dist/admins-components152.js +7 -142
  57. package/dist/admins-components153.js +141 -8
  58. package/dist/admins-components154.js +3 -3
  59. package/dist/admins-components155.js +10 -0
  60. package/dist/admins-components157.js +161 -44
  61. package/dist/admins-components158.js +50 -8
  62. package/dist/admins-components159.js +8 -49
  63. package/dist/admins-components160.js +50 -6
  64. package/dist/admins-components161.js +6 -80
  65. package/dist/admins-components162.js +70 -48
  66. package/dist/admins-components163.js +30 -31
  67. package/dist/admins-components164.js +58 -8
  68. package/dist/admins-components165.js +8 -51
  69. package/dist/admins-components166.js +51 -8
  70. package/dist/admins-components167.js +10 -0
  71. package/dist/{admins-components168.js → admins-components169.js} +3 -3
  72. package/dist/admins-components18.js +90 -91
  73. package/dist/admins-components20.js +40 -40
  74. package/dist/admins-components46.js +1 -1
  75. package/dist/admins-components57.js +33 -26
  76. package/dist/admins-components59.js +44 -32
  77. package/dist/admins-components62.js +61 -43
  78. package/dist/admins-components66.js +32 -21
  79. package/dist/admins-components69.js +25 -17
  80. package/dist/admins-components77.js +4 -2
  81. package/dist/admins-components78.js +2 -2
  82. package/dist/admins-components87.js +126 -131
  83. package/dist/admins-components95.js +3 -3
  84. package/dist/admins-components98.js +19 -6
  85. package/dist/admins-components99.js +5 -250
  86. package/dist/base.css +1 -1
  87. package/dist/src/index.d.ts +1 -0
  88. package/dist/src/styles/components/data-table/data-cards.scss_vue_type_style_index_0_src_true_lang.css +1 -1
  89. package/dist/src/styles/components/data-table/data-list.scss_vue_type_style_index_0_src_true_lang.css +1 -1
  90. package/dist/src/styles/components/data-table/data-table.scss_vue_type_style_index_0_src_true_lang.css +1 -1
  91. package/package.json +1 -1
  92. package/dist/admins-components156.js +0 -169
@@ -1,28 +1,24 @@
1
1
  import e from "./admins-components6.js";
2
- import t from "./admins-components48.js";
3
- import n from "./admins-components61.js";
4
- import r from "./admins-components64.js";
5
- import i from "./admins-components68.js";
2
+ import t from "./admins-components61.js";
3
+ import n from "./admins-components64.js";
4
+ import r from "./admins-components68.js";
6
5
  import "./admins-components69.js";
7
- import a from "./admins-components71.js";
8
- import { getFilterParams as o } from "./admins-components77.js";
9
- import s from "./admins-components80.js";
10
- import c from "./admins-components83.js";
11
- import l from "./admins-components86.js";
12
- import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createVNode as g, defineComponent as _, mergeDefaults as v, onBeforeUnmount as y, onMounted as b, openBlock as x, ref as S } from "vue";
6
+ import i from "./admins-components71.js";
7
+ import { getFilterParams as a } from "./admins-components77.js";
8
+ import o from "./admins-components80.js";
9
+ import s from "./admins-components83.js";
10
+ import c from "./admins-components86.js";
11
+ import { Fragment as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createVNode as h, defineComponent as g, mergeDefaults as _, onBeforeUnmount as v, onMounted as y, openBlock as b, ref as x } from "vue";
13
12
  //#region src/components/data-table/DataList.vue?vue&type=script&setup=true&lang.ts
14
- var C = { class: "flex-center gap-2 mb-3 wrap-on-small" }, w = { class: "flex-center gap-1" }, T = {
15
- key: 1,
16
- class: "list-loader my-5"
17
- }, E = { class: "c-data-list__toolbar" }, D = {
13
+ var S = { class: "flex-center gap-2 mb-3 wrap-on-small" }, C = { class: "flex-center gap-1" }, w = { class: "c-data-list__toolbar" }, T = {
18
14
  layoutBreakpoint: 768,
19
15
  orderable: !0,
20
16
  historyEnabled: !0,
21
17
  loading: !1,
22
18
  handleUrl: !1
23
- }, O = /* @__PURE__ */ _({
19
+ }, E = /* @__PURE__ */ g({
24
20
  __name: "DataList",
25
- props: /* @__PURE__ */ v({
21
+ props: /* @__PURE__ */ _({
26
22
  config: {},
27
23
  items: {},
28
24
  settings: {},
@@ -34,7 +30,7 @@ var C = { class: "flex-center gap-2 mb-3 wrap-on-small" }, w = { class: "flex-ce
34
30
  historyEnabled: { type: Boolean },
35
31
  loading: { type: Boolean },
36
32
  handleUrl: { type: Boolean }
37
- }, { ...D }),
33
+ }, { ...T }),
38
34
  emits: [
39
35
  "filter-change",
40
36
  "selection-change",
@@ -42,8 +38,8 @@ var C = { class: "flex-center gap-2 mb-3 wrap-on-small" }, w = { class: "flex-ce
42
38
  "pagination-change",
43
39
  "sort-change"
44
40
  ],
45
- setup(_, { expose: v, emit: D }) {
46
- let O = S(null), k = _, A = D, j = S(!1), M = S(!1), N = S(null), P = S(!1), F = S(null), I = S(!1), L = d(() => k.filters?.some((e) => e.type === "text" || e.type === "textarea")), R = {
41
+ setup(g, { expose: _, emit: T }) {
42
+ let E = x(null), D = g, O = T, k = x(!1), A = x(!1), j = x(null), M = x(!1), N = x(null), P = x(!1), F = u(() => D.filters?.some((e) => e.type === "text" || e.type === "textarea")), I = {
47
43
  type: "checkbox",
48
44
  key: "exactMatch",
49
45
  label: "Pontos egyezés",
@@ -51,145 +47,144 @@ var C = { class: "flex-center gap-2 mb-3 wrap-on-small" }, w = { class: "flex-ce
51
47
  config: { labelAlignmentFix: !0 },
52
48
  displayClass: "highlight-chip"
53
49
  };
54
- function z(e) {
55
- return !L.value || e.some((e) => e.key === "exactMatch") ? e : [R, ...e];
50
+ function L(e) {
51
+ return !F.value || e.some((e) => e.key === "exactMatch") ? e : [I, ...e];
56
52
  }
57
- let B = d(() => z(k.filters ?? [])), V = S(k.filters ? o(B.value) : {}), H = null;
58
- b(() => {
59
- H = new ResizeObserver((e) => {
60
- P.value = (e[0]?.contentRect.width ?? 0) < k.layoutBreakpoint;
61
- }), F.value && H.observe(F.value);
62
- }), y(() => H?.disconnect());
63
- let U = d(() => {
64
- let e = N.value?.layout;
65
- return e === "table" || e === "cards" ? e : P.value ? "cards" : "table";
66
- }), W = d(() => {
67
- if (!N.value) return k.config;
68
- let e = N.value.columnOrder, t = k.config.columns.map((e) => ({
53
+ let R = u(() => L(D.filters ?? [])), z = x(D.filters ? a(R.value) ?? {} : {}), B = null;
54
+ y(() => {
55
+ B = new ResizeObserver((e) => {
56
+ M.value = (e[0]?.contentRect.width ?? 0) < D.layoutBreakpoint;
57
+ }), N.value && B.observe(N.value);
58
+ }), v(() => B?.disconnect());
59
+ let V = u(() => {
60
+ let e = j.value?.layout;
61
+ return e === "table" || e === "cards" ? e : M.value ? "cards" : "table";
62
+ }), H = u(() => {
63
+ if (!j.value) return D.config;
64
+ let e = j.value.columnOrder, t = D.config.columns.map((e) => ({
69
65
  ...e,
70
- visible: N.value.columns[e.property] ?? e.visible !== !1
66
+ visible: j.value.columns[e.property] ?? e.visible !== !1
71
67
  }));
72
68
  return e?.length && t.sort((t, n) => {
73
69
  let r = e.indexOf(t.property), i = e.indexOf(n.property);
74
70
  return (r === -1 ? 999 : r) - (i === -1 ? 999 : i);
75
71
  }), {
76
- ...k.config,
72
+ ...D.config,
77
73
  columns: t
78
74
  };
79
75
  });
80
- function G(e) {
81
- N.value = e, A("settings-change", e);
76
+ function U(e) {
77
+ j.value = e, O("settings-change", e);
82
78
  }
83
- v({
84
- openOptions: () => j.value = !0,
85
- closeOptions: () => j.value = !1,
86
- openFilters: () => I.value = !0,
87
- closeFilters: () => I.value = !1
79
+ _({
80
+ openOptions: () => k.value = !0,
81
+ closeOptions: () => k.value = !1,
82
+ openFilters: () => P.value = !0,
83
+ closeFilters: () => P.value = !1
88
84
  });
89
- async function K(e) {
90
- I.value = !0, setTimeout(() => {
91
- O.value?.focusFilter(e);
85
+ async function W(e) {
86
+ P.value = !0, setTimeout(() => {
87
+ E.value?.focusFilter(e);
92
88
  }, 300);
93
89
  }
94
- function q(e) {
95
- V.value = e, A("filter-change", e);
90
+ function G(e) {
91
+ z.value = e, O("filter-change", e);
96
92
  }
97
- let J = d(() => Object.values(V.value).filter((e) => e != null && e !== "").length);
98
- return (o, d) => (x(), m("div", {
93
+ let K = u(() => Object.values(z.value).filter((e) => e != null && e !== "").length), q = u(() => !!D.pagination && (D.items.length > 0 || !D.loading));
94
+ return (a, u) => (b(), p("div", {
99
95
  ref_key: "root",
100
- ref: F,
96
+ ref: N,
101
97
  class: "c-data-list ac-component"
102
98
  }, [
103
- B.value && B.value.length > 0 ? (x(), m(u, { key: 0 }, [h("div", C, [g(e, {
99
+ R.value && R.value.length > 0 ? (b(), p(l, { key: 0 }, [m("div", S, [h(e, {
104
100
  label: "Szűrők megnyitása",
105
101
  icon: "fa-solid fa-filter",
106
- onClick: d[0] ||= (e) => I.value = !0,
102
+ onClick: u[0] ||= (e) => P.value = !0,
107
103
  style: { "flex-shrink": "0" },
108
- type: J.value > 0 ? "info" : "normal",
109
- indicator: J.value > 0 ? J.value : void 0
110
- }, null, 8, ["type", "indicator"]), h("div", w, [g(c, {
111
- filters: V.value,
112
- items: B.value,
113
- onRemove: d[1] ||= (e) => O.value?.clearFilter(e),
114
- onOpenFilter: K
115
- }, null, 8, ["filters", "items"])])]), g(s, {
104
+ type: K.value > 0 ? "info" : "normal",
105
+ indicator: K.value > 0 ? K.value : void 0
106
+ }, null, 8, ["type", "indicator"]), m("div", C, [h(s, {
107
+ filters: z.value,
108
+ items: R.value,
109
+ onRemove: u[1] ||= (e) => E.value?.clearFilter(e),
110
+ onOpenFilter: W
111
+ }, null, 8, ["filters", "items"])])]), h(o, {
116
112
  ref_key: "dataFiltersRef",
117
- ref: O,
118
- open: I.value,
119
- items: B.value,
113
+ ref: E,
114
+ open: P.value,
115
+ items: R.value,
120
116
  lazy: "",
121
- "handle-url": _.handleUrl,
122
- "storage-key": _.id,
123
- onClose: d[2] ||= (e) => I.value = !1,
124
- onChange: q
117
+ "handle-url": g.handleUrl,
118
+ "storage-key": g.id,
119
+ onClose: u[2] ||= (e) => P.value = !1,
120
+ onChange: G
125
121
  }, null, 8, [
126
122
  "open",
127
123
  "items",
128
124
  "handle-url",
129
125
  "storage-key"
130
- ])], 64)) : p("", !0),
131
- _.loading ? (x(), m("div", T, [g(t, {
132
- loading: !0,
133
- size: "2.8125rem"
134
- })])) : (x(), m(u, { key: 2 }, [
135
- h("div", E, [g(e, {
136
- label: "Beállítások",
137
- icon: "fa-solid fa-gear",
138
- class: "c-data-list__toolbar__item",
139
- "label-alignment-fix": "",
140
- size: "small",
141
- onClick: d[3] ||= (e) => j.value = !0
142
- }), g(e, {
143
- label: "Súgó",
144
- icon: "fa-solid fa-question",
145
- "icon-position": "right",
146
- class: "c-data-list__toolbar__item ml-auto",
147
- "label-alignment-fix": "",
148
- size: "small",
149
- onClick: d[4] ||= (e) => M.value = !0
150
- })]),
151
- g(l, {
152
- open: M.value,
153
- onClose: d[5] ||= (e) => M.value = !1
154
- }, null, 8, ["open"]),
155
- U.value === "table" ? (x(), f(n, {
156
- key: 0,
157
- config: W.value,
158
- items: _.items,
159
- settings: N.value ?? void 0,
160
- onFilterChange: d[6] ||= (e) => A("filter-change", e),
161
- onSelectionChange: d[7] ||= (e) => A("selection-change", e),
162
- onSortChange: d[8] ||= (e) => A("sort-change", e)
163
- }, null, 8, [
164
- "config",
165
- "items",
166
- "settings"
167
- ])) : (x(), f(r, {
168
- key: 1,
169
- config: W.value,
170
- items: _.items,
171
- settings: N.value ?? void 0,
172
- onSelectionChange: d[9] ||= (e) => A("selection-change", e)
173
- }, null, 8, [
174
- "config",
175
- "items",
176
- "settings"
177
- ])),
178
- _.pagination ? (x(), f(a, {
179
- key: 2,
180
- settings: _.pagination,
181
- "storage-key": _.id,
182
- "onUpdate:pagination": d[10] ||= (e) => A("pagination-change", e)
183
- }, null, 8, ["settings", "storage-key"])) : p("", !0)
184
- ], 64)),
185
- g(i, {
186
- open: j.value,
187
- columns: _.config.columns,
188
- settings: _.settings ?? {},
189
- "storage-key": _.id,
190
- orderable: _.orderable,
191
- onClose: d[11] ||= (e) => j.value = !1,
192
- onChange: G
126
+ ])], 64)) : f("", !0),
127
+ m("div", w, [h(e, {
128
+ label: "Beállítások",
129
+ icon: "fa-solid fa-gear",
130
+ class: "c-data-list__toolbar__item",
131
+ "label-alignment-fix": "",
132
+ size: "small",
133
+ onClick: u[3] ||= (e) => k.value = !0
134
+ }), h(e, {
135
+ label: "Súgó",
136
+ icon: "fa-solid fa-question",
137
+ "icon-position": "right",
138
+ class: "c-data-list__toolbar__item ml-auto",
139
+ "label-alignment-fix": "",
140
+ size: "small",
141
+ onClick: u[4] ||= (e) => A.value = !0
142
+ })]),
143
+ h(c, {
144
+ open: A.value,
145
+ onClose: u[5] ||= (e) => A.value = !1
146
+ }, null, 8, ["open"]),
147
+ V.value === "table" ? (b(), d(t, {
148
+ key: 1,
149
+ config: H.value,
150
+ loading: g.loading,
151
+ items: g.items,
152
+ settings: j.value ?? void 0,
153
+ onFilterChange: u[6] ||= (e) => O("filter-change", e),
154
+ onSelectionChange: u[7] ||= (e) => O("selection-change", e),
155
+ onSortChange: u[8] ||= (e) => O("sort-change", e)
156
+ }, null, 8, [
157
+ "config",
158
+ "loading",
159
+ "items",
160
+ "settings"
161
+ ])) : (b(), d(n, {
162
+ key: 2,
163
+ config: H.value,
164
+ loading: g.loading,
165
+ items: g.items,
166
+ settings: j.value ?? void 0,
167
+ onSelectionChange: u[9] ||= (e) => O("selection-change", e)
168
+ }, null, 8, [
169
+ "config",
170
+ "loading",
171
+ "items",
172
+ "settings"
173
+ ])),
174
+ g.pagination && q.value ? (b(), d(i, {
175
+ key: 3,
176
+ settings: g.pagination,
177
+ "storage-key": g.id,
178
+ "onUpdate:pagination": u[10] ||= (e) => O("pagination-change", e)
179
+ }, null, 8, ["settings", "storage-key"])) : f("", !0),
180
+ h(r, {
181
+ open: k.value,
182
+ columns: g.config.columns,
183
+ settings: g.settings ?? {},
184
+ "storage-key": g.id,
185
+ orderable: g.orderable,
186
+ onClose: u[11] ||= (e) => k.value = !1,
187
+ onChange: U
193
188
  }, null, 8, [
194
189
  "open",
195
190
  "columns",
@@ -201,4 +196,4 @@ var C = { class: "flex-center gap-2 mb-3 wrap-on-small" }, w = { class: "flex-ce
201
196
  }
202
197
  });
203
198
  //#endregion
204
- export { D as dataListDefaults, O as default };
199
+ export { T as dataListDefaults, E as default };
@@ -15,9 +15,9 @@ var a = class {
15
15
  }({}), s = class {
16
16
  relativeUrl;
17
17
  method;
18
- fetchMethode;
18
+ fetchMethod;
19
19
  constructor(r, i, a, s, c = "application/json", l) {
20
- this.relativeUrl = i, this.method = a, this.fetchMethode = n({
20
+ this.relativeUrl = i, this.method = a, this.fetchMethod = n({
21
21
  baseUrl: r,
22
22
  fetchOptions: { credentials: r.indexOf("localhost") != -1 || t(r) ? "omit" : "include" },
23
23
  options: {
@@ -44,7 +44,7 @@ function c(e, t, n, o) {
44
44
  let c = null, l = null;
45
45
  return s.execute = () => {
46
46
  c &&= (c(), null), l &&= (l(), null), s.fetch && s.fetch.canAbort.value && s.fetch.abort();
47
- let t = `${u(e.relativeUrl, s.routeParams.value, s.queryParams.value)}`, n = e.fetchMethode(t), r, o = n.isFetching;
47
+ let t = `${u(e.relativeUrl, s.routeParams.value, s.queryParams.value)}`, n = e.fetchMethod(t), r, o = n.isFetching;
48
48
  async function d() {
49
49
  if (f() && s.successCallback) s.successCallback(s.data.value);
50
50
  else if (!f() && s.errorCallback) {
@@ -1,8 +1,21 @@
1
- //#region node_modules/axios/lib/helpers/bind.js
2
- function e(e, t) {
3
- return function() {
4
- return e.apply(t, arguments);
5
- };
1
+ import { FetchDetails as e, Methods as t, initRequest as n } from "./admins-components95.js";
2
+ //#region src/services/backendService.ts
3
+ function r(e) {
4
+ return new i(e);
5
+ }
6
+ var i = class {
7
+ backendUrl;
8
+ endpoints;
9
+ constructor({ backendUrl: e, endpoints: t }) {
10
+ this.backendUrl = e, this.endpoints = Object.fromEntries(Object.entries(t).filter(([, e]) => e.url).map(([t, n]) => [t, a(e, n, n.entityName ?? t)]));
11
+ }
12
+ };
13
+ function a(r, i, a) {
14
+ let s = i.method ?? t.POST, c = i.operationName ?? String(s);
15
+ return n(new e(r, i.url, s, o(a, c)), i.payloadType, i.routeParamsType, i.queryParamsType);
16
+ }
17
+ function o(e, t) {
18
+ return new Map([[400, `${e} ${t} során 400-as hiba történt!`], [500, `${e} ${t} során 500-as hiba történt!`]]);
6
19
  }
7
20
  //#endregion
8
- export { e as default };
21
+ export { i as BackendService, r as useBackendService };
@@ -1,253 +1,8 @@
1
- import e from "./admins-components98.js";
2
- //#region node_modules/axios/lib/utils.js
3
- var { toString: t } = Object.prototype, { getPrototypeOf: n } = Object, { iterator: r, toStringTag: i } = Symbol, a = ((e) => (n) => {
4
- let r = t.call(n);
5
- return e[r] || (e[r] = r.slice(8, -1).toLowerCase());
6
- })(Object.create(null)), o = (e) => (e = e.toLowerCase(), (t) => a(t) === e), s = (e) => (t) => typeof t === e, { isArray: c } = Array, l = s("undefined");
7
- function u(e) {
8
- return e !== null && !l(e) && e.constructor !== null && !l(e.constructor) && m(e.constructor.isBuffer) && e.constructor.isBuffer(e);
9
- }
10
- var d = o("ArrayBuffer");
11
- function f(e) {
12
- let t;
13
- return t = typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(e) : e && e.buffer && d(e.buffer), t;
14
- }
15
- var p = s("string"), m = s("function"), h = s("number"), g = (e) => typeof e == "object" && !!e, _ = (e) => e === !0 || e === !1, v = (e) => {
16
- if (a(e) !== "object") return !1;
17
- let t = n(e);
18
- return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(i in e) && !(r in e);
19
- }, y = (e) => {
20
- if (!g(e) || u(e)) return !1;
21
- try {
22
- return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
23
- } catch {
24
- return !1;
25
- }
26
- }, b = o("Date"), x = o("File"), S = (e) => !!(e && e.uri !== void 0), C = (e) => e && e.getParts !== void 0, ee = o("Blob"), te = o("FileList"), ne = (e) => g(e) && m(e.pipe);
27
- function w() {
28
- return typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {};
29
- }
30
- var T = w(), E = T.FormData === void 0 ? void 0 : T.FormData, D = (e) => {
31
- if (!e) return !1;
32
- if (E && e instanceof E) return !0;
33
- let t = n(e);
34
- if (!t || t === Object.prototype || !m(e.append)) return !1;
35
- let r = a(e);
36
- return r === "formdata" || r === "object" && m(e.toString) && e.toString() === "[object FormData]";
37
- }, O = o("URLSearchParams"), [k, A, j, M] = [
38
- "ReadableStream",
39
- "Request",
40
- "Response",
41
- "Headers"
42
- ].map(o), N = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
43
- function P(e, t, { allOwnKeys: n = !1 } = {}) {
44
- if (e == null) return;
45
- let r, i;
46
- if (typeof e != "object" && (e = [e]), c(e)) for (r = 0, i = e.length; r < i; r++) t.call(null, e[r], r, e);
47
- else {
48
- if (u(e)) return;
49
- let i = n ? Object.getOwnPropertyNames(e) : Object.keys(e), a = i.length, o;
50
- for (r = 0; r < a; r++) o = i[r], t.call(null, e[o], o, e);
51
- }
52
- }
53
- function F(e, t) {
54
- if (u(e)) return null;
55
- t = t.toLowerCase();
56
- let n = Object.keys(e), r = n.length, i;
57
- for (; r-- > 0;) if (i = n[r], t === i.toLowerCase()) return i;
58
- return null;
59
- }
60
- var I = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, L = (e) => !l(e) && e !== I;
61
- function R(...e) {
62
- let { caseless: t, skipUndefined: n } = L(this) && this || {}, r = {}, i = (e, i) => {
63
- if (i === "__proto__" || i === "constructor" || i === "prototype") return;
64
- let a = t && typeof i == "string" && F(r, i) || i, o = Y(r, a) ? r[a] : void 0;
65
- v(o) && v(e) ? r[a] = R(o, e) : v(e) ? r[a] = R({}, e) : c(e) ? r[a] = e.slice() : (!n || !l(e)) && (r[a] = e);
66
- };
67
- for (let t = 0, n = e.length; t < n; t++) {
68
- let n = e[t];
69
- if (!n || u(n) || (P(n, i), typeof n != "object" || c(n))) continue;
70
- let r = Object.getOwnPropertySymbols(n);
71
- for (let e = 0; e < r.length; e++) {
72
- let t = r[e];
73
- X.call(n, t) && i(n[t], t);
74
- }
75
- }
76
- return r;
77
- }
78
- var z = (t, n, r, { allOwnKeys: i } = {}) => (P(n, (n, i) => {
79
- r && m(n) ? Object.defineProperty(t, i, {
80
- __proto__: null,
81
- value: e(n, r),
82
- writable: !0,
83
- enumerable: !0,
84
- configurable: !0
85
- }) : Object.defineProperty(t, i, {
86
- __proto__: null,
87
- value: n,
88
- writable: !0,
89
- enumerable: !0,
90
- configurable: !0
91
- });
92
- }, { allOwnKeys: i }), t), B = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), V = (e, t, n, r) => {
93
- e.prototype = Object.create(t.prototype, r), Object.defineProperty(e.prototype, "constructor", {
94
- __proto__: null,
95
- value: e,
96
- writable: !0,
97
- enumerable: !1,
98
- configurable: !0
99
- }), Object.defineProperty(e, "super", {
100
- __proto__: null,
101
- value: t.prototype
102
- }), n && Object.assign(e.prototype, n);
103
- }, H = (e, t, r, i) => {
104
- let a, o, s, c = {};
105
- if (t ||= {}, e == null) return t;
106
- do {
107
- for (a = Object.getOwnPropertyNames(e), o = a.length; o-- > 0;) s = a[o], (!i || i(s, e, t)) && !c[s] && (t[s] = e[s], c[s] = !0);
108
- e = r !== !1 && n(e);
109
- } while (e && (!r || r(e, t)) && e !== Object.prototype);
110
- return t;
111
- }, U = (e, t, n) => {
112
- e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
113
- let r = e.indexOf(t, n);
114
- return r !== -1 && r === n;
115
- }, re = (e) => {
116
- if (!e) return null;
117
- if (c(e)) return e;
118
- let t = e.length;
119
- if (!h(t)) return null;
120
- let n = Array(t);
121
- for (; t-- > 0;) n[t] = e[t];
122
- return n;
123
- }, W = ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && n(Uint8Array)), G = (e, t) => {
124
- let n = (e && e[r]).call(e), i;
125
- for (; (i = n.next()) && !i.done;) {
126
- let n = i.value;
127
- t.call(e, n[0], n[1]);
128
- }
129
- }, K = (e, t) => {
130
- let n, r = [];
131
- for (; (n = e.exec(t)) !== null;) r.push(n);
132
- return r;
133
- }, q = o("HTMLFormElement"), J = (e) => e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(e, t, n) {
134
- return t.toUpperCase() + n;
135
- }), Y = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), { propertyIsEnumerable: X } = Object.prototype, ie = o("RegExp"), Z = (e, t) => {
136
- let n = Object.getOwnPropertyDescriptors(e), r = {};
137
- P(n, (n, i) => {
138
- let a;
139
- (a = t(n, i, e)) !== !1 && (r[i] = a || n);
140
- }), Object.defineProperties(e, r);
141
- }, ae = (e) => {
142
- Z(e, (t, n) => {
143
- if (m(e) && [
144
- "arguments",
145
- "caller",
146
- "callee"
147
- ].includes(n)) return !1;
148
- let r = e[n];
149
- if (m(r)) {
150
- if (t.enumerable = !1, "writable" in t) {
151
- t.writable = !1;
152
- return;
153
- }
154
- t.set ||= () => {
155
- throw Error("Can not rewrite read-only method '" + n + "'");
156
- };
157
- }
158
- });
159
- }, oe = (e, t) => {
160
- let n = {}, r = (e) => {
161
- e.forEach((e) => {
162
- n[e] = !0;
163
- });
1
+ //#region node_modules/axios/lib/helpers/bind.js
2
+ function e(e, t) {
3
+ return function() {
4
+ return e.apply(t, arguments);
164
5
  };
165
- return c(e) ? r(e) : r(String(e).split(t)), n;
166
- }, se = () => {}, ce = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
167
- function le(e) {
168
- return !!(e && m(e.append) && e[i] === "FormData" && e[r]);
169
6
  }
170
- var ue = (e) => {
171
- let t = /* @__PURE__ */ new WeakSet(), n = (e) => {
172
- if (g(e)) {
173
- if (t.has(e)) return;
174
- if (u(e)) return e;
175
- if (!("toJSON" in e)) {
176
- t.add(e);
177
- let r = c(e) ? [] : {};
178
- return P(e, (e, t) => {
179
- let i = n(e);
180
- !l(i) && (r[t] = i);
181
- }), t.delete(e), r;
182
- }
183
- }
184
- return e;
185
- };
186
- return n(e);
187
- }, Q = o("AsyncFunction"), de = (e) => e && (g(e) || m(e)) && m(e.then) && m(e.catch), $ = ((e, t) => e ? setImmediate : t ? ((e, t) => (I.addEventListener("message", ({ source: n, data: r }) => {
188
- n === I && r === e && t.length && t.shift()();
189
- }, !1), (n) => {
190
- t.push(n), I.postMessage(e, "*");
191
- }))(`axios@${Math.random()}`, []) : (e) => setTimeout(e))(typeof setImmediate == "function", m(I.postMessage)), fe = {
192
- isArray: c,
193
- isArrayBuffer: d,
194
- isBuffer: u,
195
- isFormData: D,
196
- isArrayBufferView: f,
197
- isString: p,
198
- isNumber: h,
199
- isBoolean: _,
200
- isObject: g,
201
- isPlainObject: v,
202
- isEmptyObject: y,
203
- isReadableStream: k,
204
- isRequest: A,
205
- isResponse: j,
206
- isHeaders: M,
207
- isUndefined: l,
208
- isDate: b,
209
- isFile: x,
210
- isReactNativeBlob: S,
211
- isReactNative: C,
212
- isBlob: ee,
213
- isRegExp: ie,
214
- isFunction: m,
215
- isStream: ne,
216
- isURLSearchParams: O,
217
- isTypedArray: W,
218
- isFileList: te,
219
- forEach: P,
220
- merge: R,
221
- extend: z,
222
- trim: N,
223
- stripBOM: B,
224
- inherits: V,
225
- toFlatObject: H,
226
- kindOf: a,
227
- kindOfTest: o,
228
- endsWith: U,
229
- toArray: re,
230
- forEachEntry: G,
231
- matchAll: K,
232
- isHTMLForm: q,
233
- hasOwnProperty: Y,
234
- hasOwnProp: Y,
235
- reduceDescriptors: Z,
236
- freezeMethods: ae,
237
- toObjectSet: oe,
238
- toCamelCase: J,
239
- noop: se,
240
- toFiniteNumber: ce,
241
- findKey: F,
242
- global: I,
243
- isContextDefined: L,
244
- isSpecCompliantForm: le,
245
- toJSONObject: ue,
246
- isAsyncFn: Q,
247
- isThenable: de,
248
- setImmediate: $,
249
- asap: typeof queueMicrotask < "u" ? queueMicrotask.bind(I) : typeof process < "u" && process.nextTick || $,
250
- isIterable: (e) => e != null && m(e[r])
251
- };
252
7
  //#endregion
253
- export { fe as default };
8
+ export { e as default };