@wikicasa-dev/components 1.2.11 → 1.2.13

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 (76) hide show
  1. package/README.md +46 -46
  2. package/dist/UIKit/AccessibleSelect.vue.d.ts +73 -0
  3. package/dist/UIKit/Accordion/BaseAccordion.vue.d.ts +45 -0
  4. package/dist/UIKit/Accordion/BaseAccordionBtn.vue.d.ts +59 -0
  5. package/dist/UIKit/Accordion/BaseAccordionContent.vue.d.ts +29 -0
  6. package/dist/UIKit/Accordion/BaseAccordionItem.vue.d.ts +71 -0
  7. package/dist/UIKit/BaseAlert.vue.d.ts +41 -0
  8. package/dist/UIKit/BaseAutocomplete.vue.d.ts +110 -0
  9. package/dist/UIKit/BaseBadge.vue.d.ts +36 -0
  10. package/dist/UIKit/BaseBtModal.vue.d.ts +172 -0
  11. package/dist/UIKit/BaseButton.vue.d.ts +16 -16
  12. package/dist/UIKit/BaseCard.vue.d.ts +41 -0
  13. package/dist/UIKit/BaseComplexToggle.vue.d.ts +83 -0
  14. package/dist/UIKit/BaseDropDown.vue.d.ts +123 -0
  15. package/dist/UIKit/BaseFloatingLabel.vue.d.ts +44 -0
  16. package/dist/UIKit/BaseIcon.vue.d.ts +2 -2
  17. package/dist/UIKit/BaseInput.vue.d.ts +143 -0
  18. package/dist/UIKit/BaseNavItem.vue.d.ts +43 -0
  19. package/dist/UIKit/BasePagination.vue.d.ts +65 -0
  20. package/dist/UIKit/BasePaper.vue.d.ts +2 -0
  21. package/dist/UIKit/BaseSelect/SelectItem.vue.d.ts +54 -0
  22. package/dist/UIKit/BaseSlider.vue.d.ts +42 -0
  23. package/dist/UIKit/BaseSnackbar.vue.d.ts +56 -0
  24. package/dist/UIKit/BaseTab.vue.d.ts +60 -0
  25. package/dist/UIKit/BaseTextarea.vue.d.ts +82 -0
  26. package/dist/UIKit/BaseToggle.vue.d.ts +36 -0
  27. package/dist/UIKit/BaseTooltip.vue.d.ts +56 -0
  28. package/dist/UIKit/BaseUploadFile.vue.d.ts +37 -0
  29. package/dist/UIKit/Checkbox/CheckboxBtn.vue.d.ts +92 -0
  30. package/dist/UIKit/Checkbox/CheckboxGroup.vue.d.ts +78 -0
  31. package/dist/UIKit/Radio/RadioButton.vue.d.ts +26 -0
  32. package/dist/UIKit/Radio/RadioGroup.vue.d.ts +37 -0
  33. package/dist/UIKit/StaticSpinner.vue.d.ts +12 -12
  34. package/dist/Views/AccordionSection.vue.d.ts +2 -0
  35. package/dist/Views/AlertSection.vue.d.ts +2 -0
  36. package/dist/Views/AutocompleteSection.vue.d.ts +2 -0
  37. package/dist/Views/BadgeSection.vue.d.ts +2 -0
  38. package/dist/Views/ButtonsSection.vue.d.ts +2 -0
  39. package/dist/Views/CardSection.vue.d.ts +2 -0
  40. package/dist/Views/CheckboxSection.vue.d.ts +6 -0
  41. package/dist/Views/DropdownSection.vue.d.ts +35 -0
  42. package/dist/Views/ModalSection.vue.d.ts +4 -0
  43. package/dist/Views/PaginationSection.vue.d.ts +2 -0
  44. package/dist/Views/PaperSection.vue.d.ts +2 -0
  45. package/dist/Views/RadioSection.vue.d.ts +9 -0
  46. package/dist/Views/SliderSection.vue.d.ts +9 -0
  47. package/dist/Views/SnackbarSection.vue.d.ts +2 -0
  48. package/dist/Views/TabSection.vue.d.ts +2 -0
  49. package/dist/Views/TextInputSection.vue.d.ts +2 -0
  50. package/dist/Views/TextareaSection.vue.d.ts +6 -0
  51. package/dist/Views/ToggleSection.vue.d.ts +2 -0
  52. package/dist/Views/TooltipSection.vue.d.ts +2 -0
  53. package/dist/Views/UiKitSidebar.vue.d.ts +18 -0
  54. package/dist/Views/UploadBtnSection.vue.d.ts +2 -0
  55. package/dist/Views/WikicasaUiKit.vue.d.ts +19 -0
  56. package/dist/components/HelloWorld.vue.d.ts +2 -0
  57. package/dist/components/IntersectionObserver/IntersectionObservable.vue.d.ts +8 -8
  58. package/dist/components/IntersectionObserver/IntersectionObserver.vue.d.ts +11 -11
  59. package/dist/components/Pera.vue.d.ts +14 -0
  60. package/dist/components/base/BaseEmptyButton.vue.d.ts +35 -0
  61. package/dist/components/base/StaticSpinner.vue.d.ts +23 -0
  62. package/dist/components/carousel/SwiperCarousel.vue.d.ts +13 -13
  63. package/dist/components/input/TripleSelect.vue.d.ts +26 -0
  64. package/dist/components/insert/QualityScore.vue.d.ts +16 -0
  65. package/dist/components.js +33 -5
  66. package/dist/components.umd.cjs +13 -6
  67. package/dist/{index-Brcl3KsS.js → index-1oh628Cu.js} +2 -2
  68. package/dist/index-BYiujdKM.js +4872 -0
  69. package/dist/index.d.ts +34 -5
  70. package/dist/stories/Button.stories.d.ts +6 -6
  71. package/dist/stories/Button.vue.d.ts +64 -0
  72. package/dist/stories/Header.vue.d.ts +28 -0
  73. package/dist/stories/Page.vue.d.ts +3 -0
  74. package/dist/style.css +1 -1
  75. package/package.json +2 -1
  76. package/dist/index-4TomfCph.js +0 -2444
@@ -0,0 +1,4872 @@
1
+ import { defineComponent as L, ref as F, renderSlot as S, h as ke, openBlock as b, createElementBlock as g, normalizeClass as v, createElementVNode as $, withModifiers as B, createVNode as K, unref as x, watch as ie, createBlock as J, withCtx as _, createCommentVNode as T, nextTick as Yt, toDisplayString as de, useAttrs as gi, reactive as lt, computed as W, onBeforeMount as Se, Fragment as q, renderList as ee, createTextVNode as xt, resolveComponent as ce, onMounted as ze, onUnmounted as ut, withKeys as vi, normalizeStyle as qt, resolveDynamicComponent as yi, mergeModels as St, useModel as wi, pushScopeId as $i, popScopeId as Ci, onBeforeUnmount as Ei, mergeProps as Tt } from "vue";
2
+ import { Swiper as Ot } from "swiper";
3
+ const Ar = /* @__PURE__ */ L({
4
+ __name: "BaseAccordion",
5
+ props: {
6
+ autoClose: { type: Boolean, default: !0 }
7
+ },
8
+ setup(e) {
9
+ const t = e, n = F(null), i = (a, r) => {
10
+ n.value && r && t.autoClose && (r[n.value.id].active = !1), n.value = a, r && (r[a.id].active = !0);
11
+ };
12
+ return (a, r) => S(a.$slots, "default", {
13
+ updatePrev: i,
14
+ prev: n.value
15
+ });
16
+ }
17
+ }), Kt = () => ({
18
+ width: 20,
19
+ height: 20,
20
+ strokeColor: "#222",
21
+ fillColor: "none"
22
+ }), Ne = (e, { attrs: t }) => {
23
+ e = { ...Kt(), ...e };
24
+ const { width: n, height: i } = e;
25
+ return ke(
26
+ "svg",
27
+ {
28
+ xmlns: "http://www.w3.org/2000/svg",
29
+ viewBox: "0 0 20.243 11.621",
30
+ width: `${n}`,
31
+ height: `${i}`,
32
+ class: e.class ?? "",
33
+ "aria-hidden": t["aria-hidden"] ?? "true"
34
+ },
35
+ ke("path", {
36
+ fill: "none",
37
+ stroke: `${t["stroke-color"] ?? "#222"}`,
38
+ "stroke-linecap": "round",
39
+ "stroke-linejoin": "round",
40
+ "stroke-width": `${t["stroke-width"] ?? "3"}`,
41
+ d: "m18.121 2.121-8 8-8-8"
42
+ })
43
+ );
44
+ }, Si = ["id"], Ti = ["aria-expanded", "aria-controls"], Oi = /* @__PURE__ */ L({
45
+ inheritAttrs: !1,
46
+ __name: "BaseAccordionBtn",
47
+ props: {
48
+ id: {},
49
+ arrowWidth: { default: 12 },
50
+ onContainerClickExpand: { type: Boolean, default: !1 },
51
+ accordionOpen: { type: Boolean, default: !1 },
52
+ toggleAccordion: {}
53
+ },
54
+ emits: ["click"],
55
+ setup(e, { emit: t }) {
56
+ const n = t;
57
+ return (i, a) => (b(), g("div", {
58
+ id: `${i.id}`,
59
+ class: v(["uikit-flex uikit-items-center uikit-justify-around", [
60
+ i.$attrs["btn-wrapper-classes"],
61
+ i.onContainerClickExpand && "uikit-cursor-pointer"
62
+ ]]),
63
+ onClick: a[1] || (a[1] = (r) => i.onContainerClickExpand && i.toggleAccordion())
64
+ }, [
65
+ S(i.$slots, "custom_content"),
66
+ S(i.$slots, "custom_btn", {
67
+ btnId: `btn-${i.id}`,
68
+ isOpen: i.accordionOpen,
69
+ toggleAccordion: i.toggleAccordion
70
+ }, () => [
71
+ $("button", {
72
+ type: "button",
73
+ class: v(["uikit-bg-transparent", i.$attrs["btn-classes"]]),
74
+ "aria-expanded": i.accordionOpen,
75
+ "aria-controls": `accordion-text-${i.id}`,
76
+ onClick: a[0] || (a[0] = B((r) => {
77
+ i.toggleAccordion(), n("click");
78
+ }, ["prevent", "stop"]))
79
+ }, [
80
+ K(x(Ne), {
81
+ class: v(["uikit-transition-transform motion-reduce:uikit-transition-none", [
82
+ i.accordionOpen && "uikit-rotate-180",
83
+ i.$attrs["arrow-classes"]
84
+ ]]),
85
+ width: i.arrowWidth,
86
+ height: i.arrowWidth
87
+ }, null, 8, ["class", "width", "height"])
88
+ ], 10, Ti)
89
+ ])
90
+ ], 10, Si));
91
+ }
92
+ }), Li = ["id", "aria-labelledby"], Vi = { class: "uikit-overflow-hidden" }, Bi = { class: "uikit-mb-0" }, Ai = /* @__PURE__ */ L({
93
+ inheritAttrs: !1,
94
+ __name: "BaseAccordionContent",
95
+ props: {
96
+ id: {},
97
+ accordionOpen: { type: Boolean }
98
+ },
99
+ setup(e) {
100
+ return (t, n) => (b(), g("div", {
101
+ id: `accordion-text-${t.id}`,
102
+ role: "region",
103
+ "aria-labelledby": `accordion-title-${t.id}`,
104
+ class: v(["uikit-grid uikit-overflow-hidden uikit-px-5 uikit-text-sm uikit-text-w-black uikit-transition-[grid-template-rows,opacity,padding,margin] uikit-duration-300 uikit-ease-in-out", [
105
+ t.accordionOpen ? t.$attrs["accordion-open-classes"] : t.$attrs["accordion-close-classes"],
106
+ t.accordionOpen ? "uikit-grid-rows-[1fr] uikit-opacity-100" : "uikit-grid-rows-[0fr] uikit-opacity-0",
107
+ t.$attrs["accordion-classes"]
108
+ ]])
109
+ }, [
110
+ S(t.$slots, "custom_accordion_content", { isOpen: t.accordionOpen }, () => [
111
+ $("div", Vi, [
112
+ $("p", Bi, [
113
+ S(t.$slots, "default", { isOpen: t.accordionOpen })
114
+ ])
115
+ ])
116
+ ])
117
+ ], 10, Li));
118
+ }
119
+ }), Ii = { key: 0 }, Pi = ["id", "data-cy", "aria-expanded", "aria-controls"], Mi = ["itemprop", "innerHTML"], Ir = /* @__PURE__ */ L({
120
+ inheritAttrs: !1,
121
+ __name: "BaseAccordionItem",
122
+ props: {
123
+ title: {},
124
+ id: {},
125
+ active: { type: Boolean, default: !1 },
126
+ arrowWidth: { default: 12 },
127
+ onContainerClickExpand: { type: Boolean, default: !1 }
128
+ },
129
+ emits: ["click", "accordionOpened", "accordionClosed", "update:accordionState"],
130
+ setup(e, { emit: t }) {
131
+ const n = t, i = F(!1), a = e;
132
+ ie(i, (s) => {
133
+ n(s ? "accordionOpened" : "accordionClosed", a), n("update:accordionState", s), i.value = s;
134
+ }), ie(
135
+ () => a.active,
136
+ (s) => {
137
+ i.value = s;
138
+ },
139
+ { immediate: !0 }
140
+ );
141
+ const r = () => {
142
+ i.value = !i.value;
143
+ };
144
+ return (s, o) => (b(), g("div", {
145
+ class: v(s.$attrs["root-classes"])
146
+ }, [
147
+ !s.$slots.custom_content && !s.$slots.custom_btn && !s.$slots.custom_accordion ? (b(), g("h2", Ii, [
148
+ $("button", {
149
+ id: `accordion-title-${s.id}`,
150
+ type: "button",
151
+ class: v(["uikit-flex uikit-w-full uikit-items-center uikit-justify-between uikit-bg-white uikit-px-5 uikit-py-4 uikit-text-left uikit-font-semibold uikit-transition-colors active:max-sm:uikit-bg-w-cultured hover:sm:uikit-bg-w-cultured", s.$attrs["btn-classes"]]),
152
+ "data-cy": s.$attrs["data-cy"],
153
+ "aria-expanded": i.value,
154
+ "aria-controls": `accordion-text-${s.id}`,
155
+ onClick: o[0] || (o[0] = B((d) => {
156
+ r(), n("click");
157
+ }, ["prevent", "stop"]))
158
+ }, [
159
+ $("span", {
160
+ itemprop: s.$attrs.itemprop,
161
+ innerHTML: s.title
162
+ }, null, 8, Mi),
163
+ K(x(Ne), {
164
+ class: v(["uikit-flex-shrink-0 uikit-transition-transform motion-reduce:uikit-transition-none", [
165
+ i.value && "uikit-rotate-180",
166
+ s.$attrs["arrow-classes"]
167
+ ]]),
168
+ "arrow-classes": s.$attrs["arrow-classes"],
169
+ width: s.arrowWidth,
170
+ height: s.arrowWidth
171
+ }, null, 8, ["class", "arrow-classes", "width", "height"])
172
+ ], 10, Pi)
173
+ ])) : (s.$slots.custom_content || s.$slots.custom_btn) && !s.$slots.custom_accordion ? (b(), J(Oi, {
174
+ key: 1,
175
+ id: s.id,
176
+ "btn-wrapper-classes": s.$attrs["btn-wrapper-classes"],
177
+ "btn-classes": s.$attrs["btn-classes"],
178
+ "arrow-classes": s.$attrs["arrow-classes"],
179
+ "toggle-accordion": r,
180
+ "on-container-click-expand": s.onContainerClickExpand
181
+ }, {
182
+ custom_content: _(() => [
183
+ S(s.$slots, "custom_content")
184
+ ]),
185
+ custom_btn: _(() => [
186
+ S(s.$slots, "custom_btn", {
187
+ btnId: `btn-${s.id}`,
188
+ isOpen: i.value,
189
+ toggleAccordion: r
190
+ })
191
+ ]),
192
+ _: 3
193
+ }, 8, ["id", "btn-wrapper-classes", "btn-classes", "arrow-classes", "on-container-click-expand"])) : T("", !0),
194
+ S(s.$slots, "custom_accordion", {
195
+ id: s.id,
196
+ isOpen: i.value,
197
+ toggleAccordion: r
198
+ }, () => [
199
+ K(Ai, {
200
+ id: s.id,
201
+ "accordion-open": i.value,
202
+ "accordion-open-classes": s.$attrs["accordion-open-classes"],
203
+ "accordion-close-classes": s.$attrs["accordion-close-classes"],
204
+ "accordion-classes": s.$attrs["accordion-classes"]
205
+ }, {
206
+ custom_accordion_content: _(() => [
207
+ S(s.$slots, "custom_accordion_content", { isOpen: i.value })
208
+ ]),
209
+ default: _(() => [
210
+ S(s.$slots, "default", { isOpen: i.value })
211
+ ]),
212
+ _: 3
213
+ }, 8, ["id", "accordion-open", "accordion-open-classes", "accordion-close-classes", "accordion-classes"])
214
+ ])
215
+ ], 2));
216
+ }
217
+ }), Ri = ["tabindex"], ji = ["innerHTML"], Fi = /* @__PURE__ */ L({
218
+ __name: "SelectItem",
219
+ props: {
220
+ label: { default: "" },
221
+ active: { type: Boolean, default: !1 },
222
+ idx: { default: -1 }
223
+ },
224
+ emits: ["click", "mouseover"],
225
+ setup(e, { emit: t }) {
226
+ const n = t, i = e, a = F(null);
227
+ return ie(
228
+ () => i.active,
229
+ (r) => {
230
+ r && Yt(() => {
231
+ var s;
232
+ (s = a.value) == null || s.focus();
233
+ });
234
+ },
235
+ { immediate: !0 }
236
+ ), (r, s) => (b(), g("li", {
237
+ ref_key: "liItem",
238
+ ref: a,
239
+ class: v(["uikit-text-w-black", [
240
+ { "active uikit-bg-w-cultured": r.active },
241
+ "uikit-outline-none",
242
+ r.$attrs.class
243
+ ]]),
244
+ tabindex: r.$attrs.tabindex ?? -1,
245
+ onClick: s[0] || (s[0] = (o) => n("click", i.idx)),
246
+ onMouseover: s[1] || (s[1] = (o) => n("mouseover", i.idx))
247
+ }, [
248
+ S(r.$slots, "default", { itemIdx: r.idx }, () => [
249
+ $("span", {
250
+ innerHTML: i.label
251
+ }, null, 8, ji)
252
+ ])
253
+ ], 42, Ri));
254
+ }
255
+ }), Di = ["id"], zi = ["id", "data-cy", "checked", "disabled"], Ni = ["for"], Hi = /* @__PURE__ */ L({
256
+ __name: "CheckboxBtn",
257
+ props: {
258
+ id: {},
259
+ inputClass: { default: "" },
260
+ inline: { type: Boolean, default: !1 },
261
+ label: { default: "" },
262
+ labelClass: { default: "" },
263
+ isValid: { default: null },
264
+ modelValue: { type: Boolean, default: !1 },
265
+ containerId: { default: "" },
266
+ containerClass: { default: "" },
267
+ handleLabelClick: { type: Boolean, default: !0 }
268
+ },
269
+ emits: ["click", "change", "update:modelValue"],
270
+ setup(e, { emit: t }) {
271
+ const n = e, i = t, a = () => {
272
+ i("change", {
273
+ id: n.id,
274
+ label: n.label,
275
+ checked: !n.modelValue
276
+ }), i("update:modelValue", !n.modelValue);
277
+ }, r = () => {
278
+ i("click"), n.handleLabelClick && (i("change", {
279
+ id: n.id,
280
+ label: n.label,
281
+ checked: !n.modelValue
282
+ }), i("update:modelValue", !n.modelValue));
283
+ };
284
+ return (s, o) => (b(), g("div", {
285
+ id: s.containerId,
286
+ class: v(["uikit-group uikit-relative uikit-block uikit-pl-25px hover:uikit-cursor-pointer", [
287
+ { "uikit-mr-4 uikit-inline-flex uikit-items-center": s.inline },
288
+ { "uikit-py-10px": !s.inline && !s.$attrs["wrapper-margin-y"] },
289
+ s.$attrs["wrapper-margin-y"],
290
+ s.containerClass
291
+ ]]),
292
+ onClick: B(r, ["stop", "prevent"])
293
+ }, [
294
+ $("input", {
295
+ id: `${s.id}`,
296
+ ref: "checkbox",
297
+ "data-cy": s.$attrs["data-cy"],
298
+ class: v(["uikit-absolute uikit-left-0 uikit-h-4 uikit-w-4 uikit-appearance-none uikit-rounded-3xs uikit-border uikit-border-solid uikit-border-w-secondary uikit-bg-white checked:uikit-bg-center checked:uikit-bg-no-repeat group-hover:uikit-cursor-pointer", [
299
+ { "!uikit-border-w-danger": s.isValid === !1 },
300
+ s.inputClass,
301
+ s.isValid === !1 ? "checked-bg-invalid" : "checked-bg"
302
+ ]]),
303
+ type: "checkbox",
304
+ checked: s.$attrs.checked || s.modelValue,
305
+ disabled: s.$attrs.disabled,
306
+ onChange: o[0] || (o[0] = B((d) => a(), ["stop", "prevent"])),
307
+ onClick: o[1] || (o[1] = B((d) => i("click"), ["stop"]))
308
+ }, null, 42, zi),
309
+ S(s.$slots, "label", {}, () => [
310
+ $("label", {
311
+ class: v(["uikit-pl-10px group-hover:uikit-cursor-pointer", [s.labelClass, { "uikit-text-w-danger": s.isValid === !1 }]]),
312
+ for: `${s.id}`
313
+ }, de(s.label), 11, Ni),
314
+ s.$attrs.required ? (b(), g("span", {
315
+ key: 0,
316
+ class: v(["required after:uikit-content-['*']", [
317
+ s.isValid !== !1 ? "after:uikit-text-w-primary" : "after:uikit-text-w-danger"
318
+ ]])
319
+ }, null, 2)) : T("", !0)
320
+ ], !0)
321
+ ], 10, Di));
322
+ }
323
+ }), D = (e, t) => {
324
+ const n = e.__vccOpts || e;
325
+ for (const [i, a] of t)
326
+ n[i] = a;
327
+ return n;
328
+ }, Ui = /* @__PURE__ */ D(Hi, [["__scopeId", "data-v-b923a7c2"]]);
329
+ function Gt(e, t) {
330
+ return function() {
331
+ return e.apply(t, arguments);
332
+ };
333
+ }
334
+ const { toString: Wi } = Object.prototype, { getPrototypeOf: dt } = Object, He = /* @__PURE__ */ ((e) => (t) => {
335
+ const n = Wi.call(t);
336
+ return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
337
+ })(/* @__PURE__ */ Object.create(null)), ne = (e) => (e = e.toLowerCase(), (t) => He(t) === e), Ue = (e) => (t) => typeof t === e, { isArray: ve } = Array, Ee = Ue("undefined");
338
+ function Xi(e) {
339
+ return e !== null && !Ee(e) && e.constructor !== null && !Ee(e.constructor) && Z(e.constructor.isBuffer) && e.constructor.isBuffer(e);
340
+ }
341
+ const Jt = ne("ArrayBuffer");
342
+ function Yi(e) {
343
+ let t;
344
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Jt(e.buffer), t;
345
+ }
346
+ const xi = Ue("string"), Z = Ue("function"), Zt = Ue("number"), We = (e) => e !== null && typeof e == "object", qi = (e) => e === !0 || e === !1, Me = (e) => {
347
+ if (He(e) !== "object")
348
+ return !1;
349
+ const t = dt(e);
350
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
351
+ }, Ki = ne("Date"), Gi = ne("File"), Ji = ne("Blob"), Zi = ne("FileList"), Qi = (e) => We(e) && Z(e.pipe), _i = (e) => {
352
+ let t;
353
+ return e && (typeof FormData == "function" && e instanceof FormData || Z(e.append) && ((t = He(e)) === "formdata" || // detect form-data instance
354
+ t === "object" && Z(e.toString) && e.toString() === "[object FormData]"));
355
+ }, en = ne("URLSearchParams"), tn = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
356
+ function Te(e, t, { allOwnKeys: n = !1 } = {}) {
357
+ if (e === null || typeof e > "u")
358
+ return;
359
+ let i, a;
360
+ if (typeof e != "object" && (e = [e]), ve(e))
361
+ for (i = 0, a = e.length; i < a; i++)
362
+ t.call(null, e[i], i, e);
363
+ else {
364
+ const r = n ? Object.getOwnPropertyNames(e) : Object.keys(e), s = r.length;
365
+ let o;
366
+ for (i = 0; i < s; i++)
367
+ o = r[i], t.call(null, e[o], o, e);
368
+ }
369
+ }
370
+ function Qt(e, t) {
371
+ t = t.toLowerCase();
372
+ const n = Object.keys(e);
373
+ let i = n.length, a;
374
+ for (; i-- > 0; )
375
+ if (a = n[i], t === a.toLowerCase())
376
+ return a;
377
+ return null;
378
+ }
379
+ const _t = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, ei = (e) => !Ee(e) && e !== _t;
380
+ function nt() {
381
+ const { caseless: e } = ei(this) && this || {}, t = {}, n = (i, a) => {
382
+ const r = e && Qt(t, a) || a;
383
+ Me(t[r]) && Me(i) ? t[r] = nt(t[r], i) : Me(i) ? t[r] = nt({}, i) : ve(i) ? t[r] = i.slice() : t[r] = i;
384
+ };
385
+ for (let i = 0, a = arguments.length; i < a; i++)
386
+ arguments[i] && Te(arguments[i], n);
387
+ return t;
388
+ }
389
+ const nn = (e, t, n, { allOwnKeys: i } = {}) => (Te(t, (a, r) => {
390
+ n && Z(a) ? e[r] = Gt(a, n) : e[r] = a;
391
+ }, { allOwnKeys: i }), e), sn = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), an = (e, t, n, i) => {
392
+ e.prototype = Object.create(t.prototype, i), e.prototype.constructor = e, Object.defineProperty(e, "super", {
393
+ value: t.prototype
394
+ }), n && Object.assign(e.prototype, n);
395
+ }, rn = (e, t, n, i) => {
396
+ let a, r, s;
397
+ const o = {};
398
+ if (t = t || {}, e == null)
399
+ return t;
400
+ do {
401
+ for (a = Object.getOwnPropertyNames(e), r = a.length; r-- > 0; )
402
+ s = a[r], (!i || i(s, e, t)) && !o[s] && (t[s] = e[s], o[s] = !0);
403
+ e = n !== !1 && dt(e);
404
+ } while (e && (!n || n(e, t)) && e !== Object.prototype);
405
+ return t;
406
+ }, on = (e, t, n) => {
407
+ e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
408
+ const i = e.indexOf(t, n);
409
+ return i !== -1 && i === n;
410
+ }, ln = (e) => {
411
+ if (!e)
412
+ return null;
413
+ if (ve(e))
414
+ return e;
415
+ let t = e.length;
416
+ if (!Zt(t))
417
+ return null;
418
+ const n = new Array(t);
419
+ for (; t-- > 0; )
420
+ n[t] = e[t];
421
+ return n;
422
+ }, un = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && dt(Uint8Array)), dn = (e, t) => {
423
+ const n = (e && e[Symbol.iterator]).call(e);
424
+ let i;
425
+ for (; (i = n.next()) && !i.done; ) {
426
+ const a = i.value;
427
+ t.call(e, a[0], a[1]);
428
+ }
429
+ }, cn = (e, t) => {
430
+ let n;
431
+ const i = [];
432
+ for (; (n = e.exec(t)) !== null; )
433
+ i.push(n);
434
+ return i;
435
+ }, pn = ne("HTMLFormElement"), fn = (e) => e.toLowerCase().replace(
436
+ /[-_\s]([a-z\d])(\w*)/g,
437
+ function(t, n, i) {
438
+ return n.toUpperCase() + i;
439
+ }
440
+ ), Lt = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), mn = ne("RegExp"), ti = (e, t) => {
441
+ const n = Object.getOwnPropertyDescriptors(e), i = {};
442
+ Te(n, (a, r) => {
443
+ t(a, r, e) !== !1 && (i[r] = a);
444
+ }), Object.defineProperties(e, i);
445
+ }, hn = (e) => {
446
+ ti(e, (t, n) => {
447
+ if (Z(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
448
+ return !1;
449
+ const i = e[n];
450
+ if (Z(i)) {
451
+ if (t.enumerable = !1, "writable" in t) {
452
+ t.writable = !1;
453
+ return;
454
+ }
455
+ t.set || (t.set = () => {
456
+ throw Error("Can not rewrite read-only method '" + n + "'");
457
+ });
458
+ }
459
+ });
460
+ }, bn = (e, t) => {
461
+ const n = {}, i = (a) => {
462
+ a.forEach((r) => {
463
+ n[r] = !0;
464
+ });
465
+ };
466
+ return ve(e) ? i(e) : i(String(e).split(t)), n;
467
+ }, kn = () => {
468
+ }, gn = (e, t) => (e = +e, Number.isFinite(e) ? e : t), Ze = "abcdefghijklmnopqrstuvwxyz", Vt = "0123456789", ii = {
469
+ DIGIT: Vt,
470
+ ALPHA: Ze,
471
+ ALPHA_DIGIT: Ze + Ze.toUpperCase() + Vt
472
+ }, vn = (e = 16, t = ii.ALPHA_DIGIT) => {
473
+ let n = "";
474
+ const { length: i } = t;
475
+ for (; e--; )
476
+ n += t[Math.random() * i | 0];
477
+ return n;
478
+ };
479
+ function yn(e) {
480
+ return !!(e && Z(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
481
+ }
482
+ const wn = (e) => {
483
+ const t = new Array(10), n = (i, a) => {
484
+ if (We(i)) {
485
+ if (t.indexOf(i) >= 0)
486
+ return;
487
+ if (!("toJSON" in i)) {
488
+ t[a] = i;
489
+ const r = ve(i) ? [] : {};
490
+ return Te(i, (s, o) => {
491
+ const d = n(s, a + 1);
492
+ !Ee(d) && (r[o] = d);
493
+ }), t[a] = void 0, r;
494
+ }
495
+ }
496
+ return i;
497
+ };
498
+ return n(e, 0);
499
+ }, $n = ne("AsyncFunction"), Cn = (e) => e && (We(e) || Z(e)) && Z(e.then) && Z(e.catch), c = {
500
+ isArray: ve,
501
+ isArrayBuffer: Jt,
502
+ isBuffer: Xi,
503
+ isFormData: _i,
504
+ isArrayBufferView: Yi,
505
+ isString: xi,
506
+ isNumber: Zt,
507
+ isBoolean: qi,
508
+ isObject: We,
509
+ isPlainObject: Me,
510
+ isUndefined: Ee,
511
+ isDate: Ki,
512
+ isFile: Gi,
513
+ isBlob: Ji,
514
+ isRegExp: mn,
515
+ isFunction: Z,
516
+ isStream: Qi,
517
+ isURLSearchParams: en,
518
+ isTypedArray: un,
519
+ isFileList: Zi,
520
+ forEach: Te,
521
+ merge: nt,
522
+ extend: nn,
523
+ trim: tn,
524
+ stripBOM: sn,
525
+ inherits: an,
526
+ toFlatObject: rn,
527
+ kindOf: He,
528
+ kindOfTest: ne,
529
+ endsWith: on,
530
+ toArray: ln,
531
+ forEachEntry: dn,
532
+ matchAll: cn,
533
+ isHTMLForm: pn,
534
+ hasOwnProperty: Lt,
535
+ hasOwnProp: Lt,
536
+ // an alias to avoid ESLint no-prototype-builtins detection
537
+ reduceDescriptors: ti,
538
+ freezeMethods: hn,
539
+ toObjectSet: bn,
540
+ toCamelCase: fn,
541
+ noop: kn,
542
+ toFiniteNumber: gn,
543
+ findKey: Qt,
544
+ global: _t,
545
+ isContextDefined: ei,
546
+ ALPHABET: ii,
547
+ generateString: vn,
548
+ isSpecCompliantForm: yn,
549
+ toJSONObject: wn,
550
+ isAsyncFn: $n,
551
+ isThenable: Cn
552
+ };
553
+ function O(e, t, n, i, a) {
554
+ 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), i && (this.request = i), a && (this.response = a);
555
+ }
556
+ c.inherits(O, Error, {
557
+ toJSON: function() {
558
+ return {
559
+ // Standard
560
+ message: this.message,
561
+ name: this.name,
562
+ // Microsoft
563
+ description: this.description,
564
+ number: this.number,
565
+ // Mozilla
566
+ fileName: this.fileName,
567
+ lineNumber: this.lineNumber,
568
+ columnNumber: this.columnNumber,
569
+ stack: this.stack,
570
+ // Axios
571
+ config: c.toJSONObject(this.config),
572
+ code: this.code,
573
+ status: this.response && this.response.status ? this.response.status : null
574
+ };
575
+ }
576
+ });
577
+ const ni = O.prototype, si = {};
578
+ [
579
+ "ERR_BAD_OPTION_VALUE",
580
+ "ERR_BAD_OPTION",
581
+ "ECONNABORTED",
582
+ "ETIMEDOUT",
583
+ "ERR_NETWORK",
584
+ "ERR_FR_TOO_MANY_REDIRECTS",
585
+ "ERR_DEPRECATED",
586
+ "ERR_BAD_RESPONSE",
587
+ "ERR_BAD_REQUEST",
588
+ "ERR_CANCELED",
589
+ "ERR_NOT_SUPPORT",
590
+ "ERR_INVALID_URL"
591
+ // eslint-disable-next-line func-names
592
+ ].forEach((e) => {
593
+ si[e] = { value: e };
594
+ });
595
+ Object.defineProperties(O, si);
596
+ Object.defineProperty(ni, "isAxiosError", { value: !0 });
597
+ O.from = (e, t, n, i, a, r) => {
598
+ const s = Object.create(ni);
599
+ return c.toFlatObject(e, s, function(o) {
600
+ return o !== Error.prototype;
601
+ }, (o) => o !== "isAxiosError"), O.call(s, e.message, t, n, i, a), s.cause = e, s.name = e.name, r && Object.assign(s, r), s;
602
+ };
603
+ const En = null;
604
+ function st(e) {
605
+ return c.isPlainObject(e) || c.isArray(e);
606
+ }
607
+ function ai(e) {
608
+ return c.endsWith(e, "[]") ? e.slice(0, -2) : e;
609
+ }
610
+ function Bt(e, t, n) {
611
+ return e ? e.concat(t).map(function(i, a) {
612
+ return i = ai(i), !n && a ? "[" + i + "]" : i;
613
+ }).join(n ? "." : "") : t;
614
+ }
615
+ function Sn(e) {
616
+ return c.isArray(e) && !e.some(st);
617
+ }
618
+ const Tn = c.toFlatObject(c, {}, null, function(e) {
619
+ return /^is[A-Z]/.test(e);
620
+ });
621
+ function Xe(e, t, n) {
622
+ if (!c.isObject(e))
623
+ throw new TypeError("target must be an object");
624
+ t = t || new FormData(), n = c.toFlatObject(n, {
625
+ metaTokens: !0,
626
+ dots: !1,
627
+ indexes: !1
628
+ }, !1, function(p, k) {
629
+ return !c.isUndefined(k[p]);
630
+ });
631
+ const i = n.metaTokens, a = n.visitor || m, r = n.dots, s = n.indexes, o = (n.Blob || typeof Blob < "u" && Blob) && c.isSpecCompliantForm(t);
632
+ if (!c.isFunction(a))
633
+ throw new TypeError("visitor must be a function");
634
+ function d(p) {
635
+ if (p === null)
636
+ return "";
637
+ if (c.isDate(p))
638
+ return p.toISOString();
639
+ if (!o && c.isBlob(p))
640
+ throw new O("Blob is not supported. Use a Buffer instead.");
641
+ return c.isArrayBuffer(p) || c.isTypedArray(p) ? o && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
642
+ }
643
+ function m(p, k, I) {
644
+ let P = p;
645
+ if (p && !I && typeof p == "object") {
646
+ if (c.endsWith(k, "{}"))
647
+ k = i ? k : k.slice(0, -2), p = JSON.stringify(p);
648
+ else if (c.isArray(p) && Sn(p) || (c.isFileList(p) || c.endsWith(k, "[]")) && (P = c.toArray(p)))
649
+ return k = ai(k), P.forEach(function(Q, oe) {
650
+ !(c.isUndefined(Q) || Q === null) && t.append(
651
+ // eslint-disable-next-line no-nested-ternary
652
+ s === !0 ? Bt([k], oe, r) : s === null ? k : k + "[]",
653
+ d(Q)
654
+ );
655
+ }), !1;
656
+ }
657
+ return st(p) ? !0 : (t.append(Bt(I, k, r), d(p)), !1);
658
+ }
659
+ const f = [], l = Object.assign(Tn, {
660
+ defaultVisitor: m,
661
+ convertValue: d,
662
+ isVisitable: st
663
+ });
664
+ function u(p, k) {
665
+ if (!c.isUndefined(p)) {
666
+ if (f.indexOf(p) !== -1)
667
+ throw Error("Circular reference detected in " + k.join("."));
668
+ f.push(p), c.forEach(p, function(I, P) {
669
+ (!(c.isUndefined(I) || I === null) && a.call(
670
+ t,
671
+ I,
672
+ c.isString(P) ? P.trim() : P,
673
+ k,
674
+ l
675
+ )) === !0 && u(I, k ? k.concat(P) : [P]);
676
+ }), f.pop();
677
+ }
678
+ }
679
+ if (!c.isObject(e))
680
+ throw new TypeError("data must be an object");
681
+ return u(e), t;
682
+ }
683
+ function At(e) {
684
+ const t = {
685
+ "!": "%21",
686
+ "'": "%27",
687
+ "(": "%28",
688
+ ")": "%29",
689
+ "~": "%7E",
690
+ "%20": "+",
691
+ "%00": "\0"
692
+ };
693
+ return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(n) {
694
+ return t[n];
695
+ });
696
+ }
697
+ function ct(e, t) {
698
+ this._pairs = [], e && Xe(e, this, t);
699
+ }
700
+ const ri = ct.prototype;
701
+ ri.append = function(e, t) {
702
+ this._pairs.push([e, t]);
703
+ };
704
+ ri.toString = function(e) {
705
+ const t = e ? function(n) {
706
+ return e.call(this, n, At);
707
+ } : At;
708
+ return this._pairs.map(function(n) {
709
+ return t(n[0]) + "=" + t(n[1]);
710
+ }, "").join("&");
711
+ };
712
+ function On(e) {
713
+ return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
714
+ }
715
+ function oi(e, t, n) {
716
+ if (!t)
717
+ return e;
718
+ const i = n && n.encode || On, a = n && n.serialize;
719
+ let r;
720
+ if (a ? r = a(t, n) : r = c.isURLSearchParams(t) ? t.toString() : new ct(t, n).toString(i), r) {
721
+ const s = e.indexOf("#");
722
+ s !== -1 && (e = e.slice(0, s)), e += (e.indexOf("?") === -1 ? "?" : "&") + r;
723
+ }
724
+ return e;
725
+ }
726
+ class It {
727
+ constructor() {
728
+ this.handlers = [];
729
+ }
730
+ /**
731
+ * Add a new interceptor to the stack
732
+ *
733
+ * @param {Function} fulfilled The function to handle `then` for a `Promise`
734
+ * @param {Function} rejected The function to handle `reject` for a `Promise`
735
+ *
736
+ * @return {Number} An ID used to remove interceptor later
737
+ */
738
+ use(t, n, i) {
739
+ return this.handlers.push({
740
+ fulfilled: t,
741
+ rejected: n,
742
+ synchronous: i ? i.synchronous : !1,
743
+ runWhen: i ? i.runWhen : null
744
+ }), this.handlers.length - 1;
745
+ }
746
+ /**
747
+ * Remove an interceptor from the stack
748
+ *
749
+ * @param {Number} id The ID that was returned by `use`
750
+ *
751
+ * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
752
+ */
753
+ eject(t) {
754
+ this.handlers[t] && (this.handlers[t] = null);
755
+ }
756
+ /**
757
+ * Clear all interceptors from the stack
758
+ *
759
+ * @returns {void}
760
+ */
761
+ clear() {
762
+ this.handlers && (this.handlers = []);
763
+ }
764
+ /**
765
+ * Iterate over all the registered interceptors
766
+ *
767
+ * This method is particularly useful for skipping over any
768
+ * interceptors that may have become `null` calling `eject`.
769
+ *
770
+ * @param {Function} fn The function to call for each interceptor
771
+ *
772
+ * @returns {void}
773
+ */
774
+ forEach(t) {
775
+ c.forEach(this.handlers, function(n) {
776
+ n !== null && t(n);
777
+ });
778
+ }
779
+ }
780
+ const li = {
781
+ silentJSONParsing: !0,
782
+ forcedJSONParsing: !0,
783
+ clarifyTimeoutError: !1
784
+ }, Ln = typeof URLSearchParams < "u" ? URLSearchParams : ct, Vn = typeof FormData < "u" ? FormData : null, Bn = typeof Blob < "u" ? Blob : null, An = (() => {
785
+ let e;
786
+ return typeof navigator < "u" && ((e = navigator.product) === "ReactNative" || e === "NativeScript" || e === "NS") ? !1 : typeof window < "u" && typeof document < "u";
787
+ })(), In = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
788
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", te = {
789
+ isBrowser: !0,
790
+ classes: {
791
+ URLSearchParams: Ln,
792
+ FormData: Vn,
793
+ Blob: Bn
794
+ },
795
+ isStandardBrowserEnv: An,
796
+ isStandardBrowserWebWorkerEnv: In,
797
+ protocols: ["http", "https", "file", "blob", "url", "data"]
798
+ };
799
+ function Pn(e, t) {
800
+ return Xe(e, new te.classes.URLSearchParams(), Object.assign({
801
+ visitor: function(n, i, a, r) {
802
+ return te.isNode && c.isBuffer(n) ? (this.append(i, n.toString("base64")), !1) : r.defaultVisitor.apply(this, arguments);
803
+ }
804
+ }, t));
805
+ }
806
+ function Mn(e) {
807
+ return c.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
808
+ }
809
+ function Rn(e) {
810
+ const t = {}, n = Object.keys(e);
811
+ let i;
812
+ const a = n.length;
813
+ let r;
814
+ for (i = 0; i < a; i++)
815
+ r = n[i], t[r] = e[r];
816
+ return t;
817
+ }
818
+ function ui(e) {
819
+ function t(n, i, a, r) {
820
+ let s = n[r++];
821
+ const o = Number.isFinite(+s), d = r >= n.length;
822
+ return s = !s && c.isArray(a) ? a.length : s, d ? (c.hasOwnProp(a, s) ? a[s] = [a[s], i] : a[s] = i, !o) : ((!a[s] || !c.isObject(a[s])) && (a[s] = []), t(n, i, a[s], r) && c.isArray(a[s]) && (a[s] = Rn(a[s])), !o);
823
+ }
824
+ if (c.isFormData(e) && c.isFunction(e.entries)) {
825
+ const n = {};
826
+ return c.forEachEntry(e, (i, a) => {
827
+ t(Mn(i), a, n, 0);
828
+ }), n;
829
+ }
830
+ return null;
831
+ }
832
+ const jn = {
833
+ "Content-Type": void 0
834
+ };
835
+ function Fn(e, t, n) {
836
+ if (c.isString(e))
837
+ try {
838
+ return (t || JSON.parse)(e), c.trim(e);
839
+ } catch (i) {
840
+ if (i.name !== "SyntaxError")
841
+ throw i;
842
+ }
843
+ return (n || JSON.stringify)(e);
844
+ }
845
+ const Ye = {
846
+ transitional: li,
847
+ adapter: ["xhr", "http"],
848
+ transformRequest: [function(e, t) {
849
+ const n = t.getContentType() || "", i = n.indexOf("application/json") > -1, a = c.isObject(e);
850
+ if (a && c.isHTMLForm(e) && (e = new FormData(e)), c.isFormData(e))
851
+ return i && i ? JSON.stringify(ui(e)) : e;
852
+ if (c.isArrayBuffer(e) || c.isBuffer(e) || c.isStream(e) || c.isFile(e) || c.isBlob(e))
853
+ return e;
854
+ if (c.isArrayBufferView(e))
855
+ return e.buffer;
856
+ if (c.isURLSearchParams(e))
857
+ return t.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
858
+ let r;
859
+ if (a) {
860
+ if (n.indexOf("application/x-www-form-urlencoded") > -1)
861
+ return Pn(e, this.formSerializer).toString();
862
+ if ((r = c.isFileList(e)) || n.indexOf("multipart/form-data") > -1) {
863
+ const s = this.env && this.env.FormData;
864
+ return Xe(
865
+ r ? { "files[]": e } : e,
866
+ s && new s(),
867
+ this.formSerializer
868
+ );
869
+ }
870
+ }
871
+ return a || i ? (t.setContentType("application/json", !1), Fn(e)) : e;
872
+ }],
873
+ transformResponse: [function(e) {
874
+ const t = this.transitional || Ye.transitional, n = t && t.forcedJSONParsing, i = this.responseType === "json";
875
+ if (e && c.isString(e) && (n && !this.responseType || i)) {
876
+ const a = !(t && t.silentJSONParsing) && i;
877
+ try {
878
+ return JSON.parse(e);
879
+ } catch (r) {
880
+ if (a)
881
+ throw r.name === "SyntaxError" ? O.from(r, O.ERR_BAD_RESPONSE, this, null, this.response) : r;
882
+ }
883
+ }
884
+ return e;
885
+ }],
886
+ /**
887
+ * A timeout in milliseconds to abort a request. If set to 0 (default) a
888
+ * timeout is not created.
889
+ */
890
+ timeout: 0,
891
+ xsrfCookieName: "XSRF-TOKEN",
892
+ xsrfHeaderName: "X-XSRF-TOKEN",
893
+ maxContentLength: -1,
894
+ maxBodyLength: -1,
895
+ env: {
896
+ FormData: te.classes.FormData,
897
+ Blob: te.classes.Blob
898
+ },
899
+ validateStatus: function(e) {
900
+ return e >= 200 && e < 300;
901
+ },
902
+ headers: {
903
+ common: {
904
+ Accept: "application/json, text/plain, */*"
905
+ }
906
+ }
907
+ };
908
+ c.forEach(["delete", "get", "head"], function(e) {
909
+ Ye.headers[e] = {};
910
+ });
911
+ c.forEach(["post", "put", "patch"], function(e) {
912
+ Ye.headers[e] = c.merge(jn);
913
+ });
914
+ const pt = Ye, Dn = c.toObjectSet([
915
+ "age",
916
+ "authorization",
917
+ "content-length",
918
+ "content-type",
919
+ "etag",
920
+ "expires",
921
+ "from",
922
+ "host",
923
+ "if-modified-since",
924
+ "if-unmodified-since",
925
+ "last-modified",
926
+ "location",
927
+ "max-forwards",
928
+ "proxy-authorization",
929
+ "referer",
930
+ "retry-after",
931
+ "user-agent"
932
+ ]), zn = (e) => {
933
+ const t = {};
934
+ let n, i, a;
935
+ return e && e.split(`
936
+ `).forEach(function(r) {
937
+ a = r.indexOf(":"), n = r.substring(0, a).trim().toLowerCase(), i = r.substring(a + 1).trim(), !(!n || t[n] && Dn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(i) : t[n] = [i] : t[n] = t[n] ? t[n] + ", " + i : i);
938
+ }), t;
939
+ }, Pt = Symbol("internals");
940
+ function $e(e) {
941
+ return e && String(e).trim().toLowerCase();
942
+ }
943
+ function Re(e) {
944
+ return e === !1 || e == null ? e : c.isArray(e) ? e.map(Re) : String(e);
945
+ }
946
+ function Nn(e) {
947
+ const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
948
+ let i;
949
+ for (; i = n.exec(e); )
950
+ t[i[1]] = i[2];
951
+ return t;
952
+ }
953
+ const Hn = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
954
+ function Qe(e, t, n, i, a) {
955
+ if (c.isFunction(i))
956
+ return i.call(this, t, n);
957
+ if (a && (t = n), !!c.isString(t)) {
958
+ if (c.isString(i))
959
+ return t.indexOf(i) !== -1;
960
+ if (c.isRegExp(i))
961
+ return i.test(t);
962
+ }
963
+ }
964
+ function Un(e) {
965
+ return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, i) => n.toUpperCase() + i);
966
+ }
967
+ function Wn(e, t) {
968
+ const n = c.toCamelCase(" " + t);
969
+ ["get", "set", "has"].forEach((i) => {
970
+ Object.defineProperty(e, i + n, {
971
+ value: function(a, r, s) {
972
+ return this[i].call(this, t, a, r, s);
973
+ },
974
+ configurable: !0
975
+ });
976
+ });
977
+ }
978
+ class xe {
979
+ constructor(t) {
980
+ t && this.set(t);
981
+ }
982
+ set(t, n, i) {
983
+ const a = this;
984
+ function r(o, d, m) {
985
+ const f = $e(d);
986
+ if (!f)
987
+ throw new Error("header name must be a non-empty string");
988
+ const l = c.findKey(a, f);
989
+ (!l || a[l] === void 0 || m === !0 || m === void 0 && a[l] !== !1) && (a[l || d] = Re(o));
990
+ }
991
+ const s = (o, d) => c.forEach(o, (m, f) => r(m, f, d));
992
+ return c.isPlainObject(t) || t instanceof this.constructor ? s(t, n) : c.isString(t) && (t = t.trim()) && !Hn(t) ? s(zn(t), n) : t != null && r(n, t, i), this;
993
+ }
994
+ get(t, n) {
995
+ if (t = $e(t), t) {
996
+ const i = c.findKey(this, t);
997
+ if (i) {
998
+ const a = this[i];
999
+ if (!n)
1000
+ return a;
1001
+ if (n === !0)
1002
+ return Nn(a);
1003
+ if (c.isFunction(n))
1004
+ return n.call(this, a, i);
1005
+ if (c.isRegExp(n))
1006
+ return n.exec(a);
1007
+ throw new TypeError("parser must be boolean|regexp|function");
1008
+ }
1009
+ }
1010
+ }
1011
+ has(t, n) {
1012
+ if (t = $e(t), t) {
1013
+ const i = c.findKey(this, t);
1014
+ return !!(i && this[i] !== void 0 && (!n || Qe(this, this[i], i, n)));
1015
+ }
1016
+ return !1;
1017
+ }
1018
+ delete(t, n) {
1019
+ const i = this;
1020
+ let a = !1;
1021
+ function r(s) {
1022
+ if (s = $e(s), s) {
1023
+ const o = c.findKey(i, s);
1024
+ o && (!n || Qe(i, i[o], o, n)) && (delete i[o], a = !0);
1025
+ }
1026
+ }
1027
+ return c.isArray(t) ? t.forEach(r) : r(t), a;
1028
+ }
1029
+ clear(t) {
1030
+ const n = Object.keys(this);
1031
+ let i = n.length, a = !1;
1032
+ for (; i--; ) {
1033
+ const r = n[i];
1034
+ (!t || Qe(this, this[r], r, t, !0)) && (delete this[r], a = !0);
1035
+ }
1036
+ return a;
1037
+ }
1038
+ normalize(t) {
1039
+ const n = this, i = {};
1040
+ return c.forEach(this, (a, r) => {
1041
+ const s = c.findKey(i, r);
1042
+ if (s) {
1043
+ n[s] = Re(a), delete n[r];
1044
+ return;
1045
+ }
1046
+ const o = t ? Un(r) : String(r).trim();
1047
+ o !== r && delete n[r], n[o] = Re(a), i[o] = !0;
1048
+ }), this;
1049
+ }
1050
+ concat(...t) {
1051
+ return this.constructor.concat(this, ...t);
1052
+ }
1053
+ toJSON(t) {
1054
+ const n = /* @__PURE__ */ Object.create(null);
1055
+ return c.forEach(this, (i, a) => {
1056
+ i != null && i !== !1 && (n[a] = t && c.isArray(i) ? i.join(", ") : i);
1057
+ }), n;
1058
+ }
1059
+ [Symbol.iterator]() {
1060
+ return Object.entries(this.toJSON())[Symbol.iterator]();
1061
+ }
1062
+ toString() {
1063
+ return Object.entries(this.toJSON()).map(([t, n]) => t + ": " + n).join(`
1064
+ `);
1065
+ }
1066
+ get [Symbol.toStringTag]() {
1067
+ return "AxiosHeaders";
1068
+ }
1069
+ static from(t) {
1070
+ return t instanceof this ? t : new this(t);
1071
+ }
1072
+ static concat(t, ...n) {
1073
+ const i = new this(t);
1074
+ return n.forEach((a) => i.set(a)), i;
1075
+ }
1076
+ static accessor(t) {
1077
+ const n = (this[Pt] = this[Pt] = {
1078
+ accessors: {}
1079
+ }).accessors, i = this.prototype;
1080
+ function a(r) {
1081
+ const s = $e(r);
1082
+ n[s] || (Wn(i, r), n[s] = !0);
1083
+ }
1084
+ return c.isArray(t) ? t.forEach(a) : a(t), this;
1085
+ }
1086
+ }
1087
+ xe.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
1088
+ c.freezeMethods(xe.prototype);
1089
+ c.freezeMethods(xe);
1090
+ const re = xe;
1091
+ function _e(e, t) {
1092
+ const n = this || pt, i = t || n, a = re.from(i.headers);
1093
+ let r = i.data;
1094
+ return c.forEach(e, function(s) {
1095
+ r = s.call(n, r, a.normalize(), t ? t.status : void 0);
1096
+ }), a.normalize(), r;
1097
+ }
1098
+ function di(e) {
1099
+ return !!(e && e.__CANCEL__);
1100
+ }
1101
+ function Oe(e, t, n) {
1102
+ O.call(this, e ?? "canceled", O.ERR_CANCELED, t, n), this.name = "CanceledError";
1103
+ }
1104
+ c.inherits(Oe, O, {
1105
+ __CANCEL__: !0
1106
+ });
1107
+ function Xn(e, t, n) {
1108
+ const i = n.config.validateStatus;
1109
+ !n.status || !i || i(n.status) ? e(n) : t(new O(
1110
+ "Request failed with status code " + n.status,
1111
+ [O.ERR_BAD_REQUEST, O.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
1112
+ n.config,
1113
+ n.request,
1114
+ n
1115
+ ));
1116
+ }
1117
+ const Yn = te.isStandardBrowserEnv ? (
1118
+ // Standard browser envs support document.cookie
1119
+ /* @__PURE__ */ function() {
1120
+ return {
1121
+ write: function(e, t, n, i, a, r) {
1122
+ const s = [];
1123
+ s.push(e + "=" + encodeURIComponent(t)), c.isNumber(n) && s.push("expires=" + new Date(n).toGMTString()), c.isString(i) && s.push("path=" + i), c.isString(a) && s.push("domain=" + a), r === !0 && s.push("secure"), document.cookie = s.join("; ");
1124
+ },
1125
+ read: function(e) {
1126
+ const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
1127
+ return t ? decodeURIComponent(t[3]) : null;
1128
+ },
1129
+ remove: function(e) {
1130
+ this.write(e, "", Date.now() - 864e5);
1131
+ }
1132
+ };
1133
+ }()
1134
+ ) : (
1135
+ // Non standard browser env (web workers, react-native) lack needed support.
1136
+ /* @__PURE__ */ function() {
1137
+ return {
1138
+ write: function() {
1139
+ },
1140
+ read: function() {
1141
+ return null;
1142
+ },
1143
+ remove: function() {
1144
+ }
1145
+ };
1146
+ }()
1147
+ );
1148
+ function xn(e) {
1149
+ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
1150
+ }
1151
+ function qn(e, t) {
1152
+ return t ? e.replace(/\/+$/, "") + "/" + t.replace(/^\/+/, "") : e;
1153
+ }
1154
+ function ci(e, t) {
1155
+ return e && !xn(t) ? qn(e, t) : t;
1156
+ }
1157
+ const Kn = te.isStandardBrowserEnv ? (
1158
+ // Standard browser envs have full support of the APIs needed to test
1159
+ // whether the request URL is of the same origin as current location.
1160
+ function() {
1161
+ const e = /(msie|trident)/i.test(navigator.userAgent), t = document.createElement("a");
1162
+ let n;
1163
+ function i(a) {
1164
+ let r = a;
1165
+ return e && (t.setAttribute("href", r), r = t.href), t.setAttribute("href", r), {
1166
+ href: t.href,
1167
+ protocol: t.protocol ? t.protocol.replace(/:$/, "") : "",
1168
+ host: t.host,
1169
+ search: t.search ? t.search.replace(/^\?/, "") : "",
1170
+ hash: t.hash ? t.hash.replace(/^#/, "") : "",
1171
+ hostname: t.hostname,
1172
+ port: t.port,
1173
+ pathname: t.pathname.charAt(0) === "/" ? t.pathname : "/" + t.pathname
1174
+ };
1175
+ }
1176
+ return n = i(window.location.href), function(a) {
1177
+ const r = c.isString(a) ? i(a) : a;
1178
+ return r.protocol === n.protocol && r.host === n.host;
1179
+ };
1180
+ }()
1181
+ ) : (
1182
+ // Non standard browser envs (web workers, react-native) lack needed support.
1183
+ /* @__PURE__ */ function() {
1184
+ return function() {
1185
+ return !0;
1186
+ };
1187
+ }()
1188
+ );
1189
+ function Gn(e) {
1190
+ const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
1191
+ return t && t[1] || "";
1192
+ }
1193
+ function Jn(e, t) {
1194
+ e = e || 10;
1195
+ const n = new Array(e), i = new Array(e);
1196
+ let a = 0, r = 0, s;
1197
+ return t = t !== void 0 ? t : 1e3, function(o) {
1198
+ const d = Date.now(), m = i[r];
1199
+ s || (s = d), n[a] = o, i[a] = d;
1200
+ let f = r, l = 0;
1201
+ for (; f !== a; )
1202
+ l += n[f++], f = f % e;
1203
+ if (a = (a + 1) % e, a === r && (r = (r + 1) % e), d - s < t)
1204
+ return;
1205
+ const u = m && d - m;
1206
+ return u ? Math.round(l * 1e3 / u) : void 0;
1207
+ };
1208
+ }
1209
+ function Mt(e, t) {
1210
+ let n = 0;
1211
+ const i = Jn(50, 250);
1212
+ return (a) => {
1213
+ const r = a.loaded, s = a.lengthComputable ? a.total : void 0, o = r - n, d = i(o), m = r <= s;
1214
+ n = r;
1215
+ const f = {
1216
+ loaded: r,
1217
+ total: s,
1218
+ progress: s ? r / s : void 0,
1219
+ bytes: o,
1220
+ rate: d || void 0,
1221
+ estimated: d && s && m ? (s - r) / d : void 0,
1222
+ event: a
1223
+ };
1224
+ f[t ? "download" : "upload"] = !0, e(f);
1225
+ };
1226
+ }
1227
+ const Zn = typeof XMLHttpRequest < "u", Qn = Zn && function(e) {
1228
+ return new Promise(function(t, n) {
1229
+ let i = e.data;
1230
+ const a = re.from(e.headers).normalize(), r = e.responseType;
1231
+ let s;
1232
+ function o() {
1233
+ e.cancelToken && e.cancelToken.unsubscribe(s), e.signal && e.signal.removeEventListener("abort", s);
1234
+ }
1235
+ c.isFormData(i) && (te.isStandardBrowserEnv || te.isStandardBrowserWebWorkerEnv ? a.setContentType(!1) : a.setContentType("multipart/form-data;", !1));
1236
+ let d = new XMLHttpRequest();
1237
+ if (e.auth) {
1238
+ const u = e.auth.username || "", p = e.auth.password ? unescape(encodeURIComponent(e.auth.password)) : "";
1239
+ a.set("Authorization", "Basic " + btoa(u + ":" + p));
1240
+ }
1241
+ const m = ci(e.baseURL, e.url);
1242
+ d.open(e.method.toUpperCase(), oi(m, e.params, e.paramsSerializer), !0), d.timeout = e.timeout;
1243
+ function f() {
1244
+ if (!d)
1245
+ return;
1246
+ const u = re.from(
1247
+ "getAllResponseHeaders" in d && d.getAllResponseHeaders()
1248
+ ), p = {
1249
+ data: !r || r === "text" || r === "json" ? d.responseText : d.response,
1250
+ status: d.status,
1251
+ statusText: d.statusText,
1252
+ headers: u,
1253
+ config: e,
1254
+ request: d
1255
+ };
1256
+ Xn(function(k) {
1257
+ t(k), o();
1258
+ }, function(k) {
1259
+ n(k), o();
1260
+ }, p), d = null;
1261
+ }
1262
+ if ("onloadend" in d ? d.onloadend = f : d.onreadystatechange = function() {
1263
+ !d || d.readyState !== 4 || d.status === 0 && !(d.responseURL && d.responseURL.indexOf("file:") === 0) || setTimeout(f);
1264
+ }, d.onabort = function() {
1265
+ d && (n(new O("Request aborted", O.ECONNABORTED, e, d)), d = null);
1266
+ }, d.onerror = function() {
1267
+ n(new O("Network Error", O.ERR_NETWORK, e, d)), d = null;
1268
+ }, d.ontimeout = function() {
1269
+ let u = e.timeout ? "timeout of " + e.timeout + "ms exceeded" : "timeout exceeded";
1270
+ const p = e.transitional || li;
1271
+ e.timeoutErrorMessage && (u = e.timeoutErrorMessage), n(new O(
1272
+ u,
1273
+ p.clarifyTimeoutError ? O.ETIMEDOUT : O.ECONNABORTED,
1274
+ e,
1275
+ d
1276
+ )), d = null;
1277
+ }, te.isStandardBrowserEnv) {
1278
+ const u = (e.withCredentials || Kn(m)) && e.xsrfCookieName && Yn.read(e.xsrfCookieName);
1279
+ u && a.set(e.xsrfHeaderName, u);
1280
+ }
1281
+ i === void 0 && a.setContentType(null), "setRequestHeader" in d && c.forEach(a.toJSON(), function(u, p) {
1282
+ d.setRequestHeader(p, u);
1283
+ }), c.isUndefined(e.withCredentials) || (d.withCredentials = !!e.withCredentials), r && r !== "json" && (d.responseType = e.responseType), typeof e.onDownloadProgress == "function" && d.addEventListener("progress", Mt(e.onDownloadProgress, !0)), typeof e.onUploadProgress == "function" && d.upload && d.upload.addEventListener("progress", Mt(e.onUploadProgress)), (e.cancelToken || e.signal) && (s = (u) => {
1284
+ d && (n(!u || u.type ? new Oe(null, e, d) : u), d.abort(), d = null);
1285
+ }, e.cancelToken && e.cancelToken.subscribe(s), e.signal && (e.signal.aborted ? s() : e.signal.addEventListener("abort", s)));
1286
+ const l = Gn(m);
1287
+ if (l && te.protocols.indexOf(l) === -1) {
1288
+ n(new O("Unsupported protocol " + l + ":", O.ERR_BAD_REQUEST, e));
1289
+ return;
1290
+ }
1291
+ d.send(i || null);
1292
+ });
1293
+ }, je = {
1294
+ http: En,
1295
+ xhr: Qn
1296
+ };
1297
+ c.forEach(je, (e, t) => {
1298
+ if (e) {
1299
+ try {
1300
+ Object.defineProperty(e, "name", { value: t });
1301
+ } catch {
1302
+ }
1303
+ Object.defineProperty(e, "adapterName", { value: t });
1304
+ }
1305
+ });
1306
+ const _n = {
1307
+ getAdapter: (e) => {
1308
+ e = c.isArray(e) ? e : [e];
1309
+ const { length: t } = e;
1310
+ let n, i;
1311
+ for (let a = 0; a < t && (n = e[a], !(i = c.isString(n) ? je[n.toLowerCase()] : n)); a++)
1312
+ ;
1313
+ if (!i)
1314
+ throw i === !1 ? new O(
1315
+ `Adapter ${n} is not supported by the environment`,
1316
+ "ERR_NOT_SUPPORT"
1317
+ ) : new Error(
1318
+ c.hasOwnProp(je, n) ? `Adapter '${n}' is not available in the build` : `Unknown adapter '${n}'`
1319
+ );
1320
+ if (!c.isFunction(i))
1321
+ throw new TypeError("adapter is not a function");
1322
+ return i;
1323
+ },
1324
+ adapters: je
1325
+ };
1326
+ function et(e) {
1327
+ if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
1328
+ throw new Oe(null, e);
1329
+ }
1330
+ function Rt(e) {
1331
+ return et(e), e.headers = re.from(e.headers), e.data = _e.call(
1332
+ e,
1333
+ e.transformRequest
1334
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), _n.getAdapter(e.adapter || pt.adapter)(e).then(function(t) {
1335
+ return et(e), t.data = _e.call(
1336
+ e,
1337
+ e.transformResponse,
1338
+ t
1339
+ ), t.headers = re.from(t.headers), t;
1340
+ }, function(t) {
1341
+ return di(t) || (et(e), t && t.response && (t.response.data = _e.call(
1342
+ e,
1343
+ e.transformResponse,
1344
+ t.response
1345
+ ), t.response.headers = re.from(t.response.headers))), Promise.reject(t);
1346
+ });
1347
+ }
1348
+ const jt = (e) => e instanceof re ? e.toJSON() : e;
1349
+ function ge(e, t) {
1350
+ t = t || {};
1351
+ const n = {};
1352
+ function i(m, f, l) {
1353
+ return c.isPlainObject(m) && c.isPlainObject(f) ? c.merge.call({ caseless: l }, m, f) : c.isPlainObject(f) ? c.merge({}, f) : c.isArray(f) ? f.slice() : f;
1354
+ }
1355
+ function a(m, f, l) {
1356
+ if (c.isUndefined(f)) {
1357
+ if (!c.isUndefined(m))
1358
+ return i(void 0, m, l);
1359
+ } else
1360
+ return i(m, f, l);
1361
+ }
1362
+ function r(m, f) {
1363
+ if (!c.isUndefined(f))
1364
+ return i(void 0, f);
1365
+ }
1366
+ function s(m, f) {
1367
+ if (c.isUndefined(f)) {
1368
+ if (!c.isUndefined(m))
1369
+ return i(void 0, m);
1370
+ } else
1371
+ return i(void 0, f);
1372
+ }
1373
+ function o(m, f, l) {
1374
+ if (l in t)
1375
+ return i(m, f);
1376
+ if (l in e)
1377
+ return i(void 0, m);
1378
+ }
1379
+ const d = {
1380
+ url: r,
1381
+ method: r,
1382
+ data: r,
1383
+ baseURL: s,
1384
+ transformRequest: s,
1385
+ transformResponse: s,
1386
+ paramsSerializer: s,
1387
+ timeout: s,
1388
+ timeoutMessage: s,
1389
+ withCredentials: s,
1390
+ adapter: s,
1391
+ responseType: s,
1392
+ xsrfCookieName: s,
1393
+ xsrfHeaderName: s,
1394
+ onUploadProgress: s,
1395
+ onDownloadProgress: s,
1396
+ decompress: s,
1397
+ maxContentLength: s,
1398
+ maxBodyLength: s,
1399
+ beforeRedirect: s,
1400
+ transport: s,
1401
+ httpAgent: s,
1402
+ httpsAgent: s,
1403
+ cancelToken: s,
1404
+ socketPath: s,
1405
+ responseEncoding: s,
1406
+ validateStatus: o,
1407
+ headers: (m, f) => a(jt(m), jt(f), !0)
1408
+ };
1409
+ return c.forEach(Object.keys(Object.assign({}, e, t)), function(m) {
1410
+ const f = d[m] || a, l = f(e[m], t[m], m);
1411
+ c.isUndefined(l) && f !== o || (n[m] = l);
1412
+ }), n;
1413
+ }
1414
+ const pi = "1.4.0", ft = {};
1415
+ ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
1416
+ ft[e] = function(n) {
1417
+ return typeof n === e || "a" + (t < 1 ? "n " : " ") + e;
1418
+ };
1419
+ });
1420
+ const Ft = {};
1421
+ ft.transitional = function(e, t, n) {
1422
+ function i(a, r) {
1423
+ return "[Axios v" + pi + "] Transitional option '" + a + "'" + r + (n ? ". " + n : "");
1424
+ }
1425
+ return (a, r, s) => {
1426
+ if (e === !1)
1427
+ throw new O(
1428
+ i(r, " has been removed" + (t ? " in " + t : "")),
1429
+ O.ERR_DEPRECATED
1430
+ );
1431
+ return t && !Ft[r] && (Ft[r] = !0, console.warn(
1432
+ i(
1433
+ r,
1434
+ " has been deprecated since v" + t + " and will be removed in the near future"
1435
+ )
1436
+ )), e ? e(a, r, s) : !0;
1437
+ };
1438
+ };
1439
+ function es(e, t, n) {
1440
+ if (typeof e != "object")
1441
+ throw new O("options must be an object", O.ERR_BAD_OPTION_VALUE);
1442
+ const i = Object.keys(e);
1443
+ let a = i.length;
1444
+ for (; a-- > 0; ) {
1445
+ const r = i[a], s = t[r];
1446
+ if (s) {
1447
+ const o = e[r], d = o === void 0 || s(o, r, e);
1448
+ if (d !== !0)
1449
+ throw new O("option " + r + " must be " + d, O.ERR_BAD_OPTION_VALUE);
1450
+ continue;
1451
+ }
1452
+ if (n !== !0)
1453
+ throw new O("Unknown option " + r, O.ERR_BAD_OPTION);
1454
+ }
1455
+ }
1456
+ const at = {
1457
+ assertOptions: es,
1458
+ validators: ft
1459
+ }, ue = at.validators;
1460
+ class De {
1461
+ constructor(t) {
1462
+ this.defaults = t, this.interceptors = {
1463
+ request: new It(),
1464
+ response: new It()
1465
+ };
1466
+ }
1467
+ /**
1468
+ * Dispatch a request
1469
+ *
1470
+ * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
1471
+ * @param {?Object} config
1472
+ *
1473
+ * @returns {Promise} The Promise to be fulfilled
1474
+ */
1475
+ request(t, n) {
1476
+ typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = ge(this.defaults, n);
1477
+ const { transitional: i, paramsSerializer: a, headers: r } = n;
1478
+ i !== void 0 && at.assertOptions(i, {
1479
+ silentJSONParsing: ue.transitional(ue.boolean),
1480
+ forcedJSONParsing: ue.transitional(ue.boolean),
1481
+ clarifyTimeoutError: ue.transitional(ue.boolean)
1482
+ }, !1), a != null && (c.isFunction(a) ? n.paramsSerializer = {
1483
+ serialize: a
1484
+ } : at.assertOptions(a, {
1485
+ encode: ue.function,
1486
+ serialize: ue.function
1487
+ }, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase();
1488
+ let s;
1489
+ s = r && c.merge(
1490
+ r.common,
1491
+ r[n.method]
1492
+ ), s && c.forEach(
1493
+ ["delete", "get", "head", "post", "put", "patch", "common"],
1494
+ (k) => {
1495
+ delete r[k];
1496
+ }
1497
+ ), n.headers = re.concat(s, r);
1498
+ const o = [];
1499
+ let d = !0;
1500
+ this.interceptors.request.forEach(function(k) {
1501
+ typeof k.runWhen == "function" && k.runWhen(n) === !1 || (d = d && k.synchronous, o.unshift(k.fulfilled, k.rejected));
1502
+ });
1503
+ const m = [];
1504
+ this.interceptors.response.forEach(function(k) {
1505
+ m.push(k.fulfilled, k.rejected);
1506
+ });
1507
+ let f, l = 0, u;
1508
+ if (!d) {
1509
+ const k = [Rt.bind(this), void 0];
1510
+ for (k.unshift.apply(k, o), k.push.apply(k, m), u = k.length, f = Promise.resolve(n); l < u; )
1511
+ f = f.then(k[l++], k[l++]);
1512
+ return f;
1513
+ }
1514
+ u = o.length;
1515
+ let p = n;
1516
+ for (l = 0; l < u; ) {
1517
+ const k = o[l++], I = o[l++];
1518
+ try {
1519
+ p = k(p);
1520
+ } catch (P) {
1521
+ I.call(this, P);
1522
+ break;
1523
+ }
1524
+ }
1525
+ try {
1526
+ f = Rt.call(this, p);
1527
+ } catch (k) {
1528
+ return Promise.reject(k);
1529
+ }
1530
+ for (l = 0, u = m.length; l < u; )
1531
+ f = f.then(m[l++], m[l++]);
1532
+ return f;
1533
+ }
1534
+ getUri(t) {
1535
+ t = ge(this.defaults, t);
1536
+ const n = ci(t.baseURL, t.url);
1537
+ return oi(n, t.params, t.paramsSerializer);
1538
+ }
1539
+ }
1540
+ c.forEach(["delete", "get", "head", "options"], function(e) {
1541
+ De.prototype[e] = function(t, n) {
1542
+ return this.request(ge(n || {}, {
1543
+ method: e,
1544
+ url: t,
1545
+ data: (n || {}).data
1546
+ }));
1547
+ };
1548
+ });
1549
+ c.forEach(["post", "put", "patch"], function(e) {
1550
+ function t(n) {
1551
+ return function(i, a, r) {
1552
+ return this.request(ge(r || {}, {
1553
+ method: e,
1554
+ headers: n ? {
1555
+ "Content-Type": "multipart/form-data"
1556
+ } : {},
1557
+ url: i,
1558
+ data: a
1559
+ }));
1560
+ };
1561
+ }
1562
+ De.prototype[e] = t(), De.prototype[e + "Form"] = t(!0);
1563
+ });
1564
+ const Fe = De;
1565
+ class mt {
1566
+ constructor(t) {
1567
+ if (typeof t != "function")
1568
+ throw new TypeError("executor must be a function.");
1569
+ let n;
1570
+ this.promise = new Promise(function(a) {
1571
+ n = a;
1572
+ });
1573
+ const i = this;
1574
+ this.promise.then((a) => {
1575
+ if (!i._listeners)
1576
+ return;
1577
+ let r = i._listeners.length;
1578
+ for (; r-- > 0; )
1579
+ i._listeners[r](a);
1580
+ i._listeners = null;
1581
+ }), this.promise.then = (a) => {
1582
+ let r;
1583
+ const s = new Promise((o) => {
1584
+ i.subscribe(o), r = o;
1585
+ }).then(a);
1586
+ return s.cancel = function() {
1587
+ i.unsubscribe(r);
1588
+ }, s;
1589
+ }, t(function(a, r, s) {
1590
+ i.reason || (i.reason = new Oe(a, r, s), n(i.reason));
1591
+ });
1592
+ }
1593
+ /**
1594
+ * Throws a `CanceledError` if cancellation has been requested.
1595
+ */
1596
+ throwIfRequested() {
1597
+ if (this.reason)
1598
+ throw this.reason;
1599
+ }
1600
+ /**
1601
+ * Subscribe to the cancel signal
1602
+ */
1603
+ subscribe(t) {
1604
+ if (this.reason) {
1605
+ t(this.reason);
1606
+ return;
1607
+ }
1608
+ this._listeners ? this._listeners.push(t) : this._listeners = [t];
1609
+ }
1610
+ /**
1611
+ * Unsubscribe from the cancel signal
1612
+ */
1613
+ unsubscribe(t) {
1614
+ if (!this._listeners)
1615
+ return;
1616
+ const n = this._listeners.indexOf(t);
1617
+ n !== -1 && this._listeners.splice(n, 1);
1618
+ }
1619
+ /**
1620
+ * Returns an object that contains a new `CancelToken` and a function that, when called,
1621
+ * cancels the `CancelToken`.
1622
+ */
1623
+ static source() {
1624
+ let t;
1625
+ return {
1626
+ token: new mt(function(n) {
1627
+ t = n;
1628
+ }),
1629
+ cancel: t
1630
+ };
1631
+ }
1632
+ }
1633
+ const ts = mt;
1634
+ function is(e) {
1635
+ return function(t) {
1636
+ return e.apply(null, t);
1637
+ };
1638
+ }
1639
+ function ns(e) {
1640
+ return c.isObject(e) && e.isAxiosError === !0;
1641
+ }
1642
+ const rt = {
1643
+ Continue: 100,
1644
+ SwitchingProtocols: 101,
1645
+ Processing: 102,
1646
+ EarlyHints: 103,
1647
+ Ok: 200,
1648
+ Created: 201,
1649
+ Accepted: 202,
1650
+ NonAuthoritativeInformation: 203,
1651
+ NoContent: 204,
1652
+ ResetContent: 205,
1653
+ PartialContent: 206,
1654
+ MultiStatus: 207,
1655
+ AlreadyReported: 208,
1656
+ ImUsed: 226,
1657
+ MultipleChoices: 300,
1658
+ MovedPermanently: 301,
1659
+ Found: 302,
1660
+ SeeOther: 303,
1661
+ NotModified: 304,
1662
+ UseProxy: 305,
1663
+ Unused: 306,
1664
+ TemporaryRedirect: 307,
1665
+ PermanentRedirect: 308,
1666
+ BadRequest: 400,
1667
+ Unauthorized: 401,
1668
+ PaymentRequired: 402,
1669
+ Forbidden: 403,
1670
+ NotFound: 404,
1671
+ MethodNotAllowed: 405,
1672
+ NotAcceptable: 406,
1673
+ ProxyAuthenticationRequired: 407,
1674
+ RequestTimeout: 408,
1675
+ Conflict: 409,
1676
+ Gone: 410,
1677
+ LengthRequired: 411,
1678
+ PreconditionFailed: 412,
1679
+ PayloadTooLarge: 413,
1680
+ UriTooLong: 414,
1681
+ UnsupportedMediaType: 415,
1682
+ RangeNotSatisfiable: 416,
1683
+ ExpectationFailed: 417,
1684
+ ImATeapot: 418,
1685
+ MisdirectedRequest: 421,
1686
+ UnprocessableEntity: 422,
1687
+ Locked: 423,
1688
+ FailedDependency: 424,
1689
+ TooEarly: 425,
1690
+ UpgradeRequired: 426,
1691
+ PreconditionRequired: 428,
1692
+ TooManyRequests: 429,
1693
+ RequestHeaderFieldsTooLarge: 431,
1694
+ UnavailableForLegalReasons: 451,
1695
+ InternalServerError: 500,
1696
+ NotImplemented: 501,
1697
+ BadGateway: 502,
1698
+ ServiceUnavailable: 503,
1699
+ GatewayTimeout: 504,
1700
+ HttpVersionNotSupported: 505,
1701
+ VariantAlsoNegotiates: 506,
1702
+ InsufficientStorage: 507,
1703
+ LoopDetected: 508,
1704
+ NotExtended: 510,
1705
+ NetworkAuthenticationRequired: 511
1706
+ };
1707
+ Object.entries(rt).forEach(([e, t]) => {
1708
+ rt[t] = e;
1709
+ });
1710
+ const ss = rt;
1711
+ function fi(e) {
1712
+ const t = new Fe(e), n = Gt(Fe.prototype.request, t);
1713
+ return c.extend(n, Fe.prototype, t, { allOwnKeys: !0 }), c.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(i) {
1714
+ return fi(ge(e, i));
1715
+ }, n;
1716
+ }
1717
+ const z = fi(pt);
1718
+ z.Axios = Fe;
1719
+ z.CanceledError = Oe;
1720
+ z.CancelToken = ts;
1721
+ z.isCancel = di;
1722
+ z.VERSION = pi;
1723
+ z.toFormData = Xe;
1724
+ z.AxiosError = O;
1725
+ z.Cancel = z.CanceledError;
1726
+ z.all = function(e) {
1727
+ return Promise.all(e);
1728
+ };
1729
+ z.spread = is;
1730
+ z.isAxiosError = ns;
1731
+ z.mergeConfig = ge;
1732
+ z.AxiosHeaders = re;
1733
+ z.formToJSON = (e) => ui(c.isHTMLForm(e) ? new FormData(e) : e);
1734
+ z.HttpStatusCode = ss;
1735
+ z.default = z;
1736
+ function as(e, t) {
1737
+ if (e)
1738
+ for (const n in e)
1739
+ t[n] = e[n];
1740
+ }
1741
+ function rs(e) {
1742
+ return !e || !Object.keys(e).length;
1743
+ }
1744
+ let Ie;
1745
+ const os = new Uint8Array(16);
1746
+ function ls() {
1747
+ if (!Ie && (Ie = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !Ie))
1748
+ throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
1749
+ return Ie(os);
1750
+ }
1751
+ const U = [];
1752
+ for (let e = 0; e < 256; ++e)
1753
+ U.push((e + 256).toString(16).slice(1));
1754
+ function us(e, t = 0) {
1755
+ return (U[e[t + 0]] + U[e[t + 1]] + U[e[t + 2]] + U[e[t + 3]] + "-" + U[e[t + 4]] + U[e[t + 5]] + "-" + U[e[t + 6]] + U[e[t + 7]] + "-" + U[e[t + 8]] + U[e[t + 9]] + "-" + U[e[t + 10]] + U[e[t + 11]] + U[e[t + 12]] + U[e[t + 13]] + U[e[t + 14]] + U[e[t + 15]]).toLowerCase();
1756
+ }
1757
+ const ds = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Dt = {
1758
+ randomUUID: ds
1759
+ };
1760
+ function cs(e, t, n) {
1761
+ if (Dt.randomUUID && !t && !e)
1762
+ return Dt.randomUUID();
1763
+ e = e || {};
1764
+ const i = e.random || (e.rng || ls)();
1765
+ if (i[6] = i[6] & 15 | 64, i[8] = i[8] & 63 | 128, t) {
1766
+ n = n || 0;
1767
+ for (let a = 0; a < 16; ++a)
1768
+ t[n + a] = i[a];
1769
+ return t;
1770
+ }
1771
+ return us(i);
1772
+ }
1773
+ cs();
1774
+ /*! js-cookie v3.0.5 | MIT */
1775
+ function Pe(e) {
1776
+ for (var t = 1; t < arguments.length; t++) {
1777
+ var n = arguments[t];
1778
+ for (var i in n)
1779
+ e[i] = n[i];
1780
+ }
1781
+ return e;
1782
+ }
1783
+ var ps = {
1784
+ read: function(e) {
1785
+ return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
1786
+ },
1787
+ write: function(e) {
1788
+ return encodeURIComponent(e).replace(
1789
+ /%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
1790
+ decodeURIComponent
1791
+ );
1792
+ }
1793
+ };
1794
+ function ot(e, t) {
1795
+ function n(a, r, s) {
1796
+ if (!(typeof document > "u")) {
1797
+ s = Pe({}, t, s), typeof s.expires == "number" && (s.expires = new Date(Date.now() + s.expires * 864e5)), s.expires && (s.expires = s.expires.toUTCString()), a = encodeURIComponent(a).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
1798
+ var o = "";
1799
+ for (var d in s)
1800
+ s[d] && (o += "; " + d, s[d] !== !0 && (o += "=" + s[d].split(";")[0]));
1801
+ return document.cookie = a + "=" + e.write(r, a) + o;
1802
+ }
1803
+ }
1804
+ function i(a) {
1805
+ if (!(typeof document > "u" || arguments.length && !a)) {
1806
+ for (var r = document.cookie ? document.cookie.split("; ") : [], s = {}, o = 0; o < r.length; o++) {
1807
+ var d = r[o].split("="), m = d.slice(1).join("=");
1808
+ try {
1809
+ var f = decodeURIComponent(d[0]);
1810
+ if (s[f] = e.read(m, f), a === f)
1811
+ break;
1812
+ } catch {
1813
+ }
1814
+ }
1815
+ return a ? s[a] : s;
1816
+ }
1817
+ }
1818
+ return Object.create(
1819
+ {
1820
+ set: n,
1821
+ get: i,
1822
+ remove: function(a, r) {
1823
+ n(
1824
+ a,
1825
+ "",
1826
+ Pe({}, r, {
1827
+ expires: -1
1828
+ })
1829
+ );
1830
+ },
1831
+ withAttributes: function(a) {
1832
+ return ot(this.converter, Pe({}, this.attributes, a));
1833
+ },
1834
+ withConverter: function(a) {
1835
+ return ot(Pe({}, this.converter, a), this.attributes);
1836
+ }
1837
+ },
1838
+ {
1839
+ attributes: { value: Object.freeze(t) },
1840
+ converter: { value: Object.freeze(e) }
1841
+ }
1842
+ );
1843
+ }
1844
+ ot(ps, { path: "/" });
1845
+ function fs(e, t) {
1846
+ return (...n) => new Promise((i, a) => {
1847
+ e.id && clearTimeout(e.id), e.id = setTimeout(() => {
1848
+ try {
1849
+ const r = t(...n);
1850
+ i(r);
1851
+ } catch (r) {
1852
+ a(r);
1853
+ }
1854
+ }, e.delay);
1855
+ });
1856
+ }
1857
+ const ms = (e = "") => !e || !e.trim() ? "" : (e = e.trim(), e.replace(" ", "-").toLowerCase());
1858
+ function zt(e, t = !1) {
1859
+ return e == null ? "" : hs(t ? Math.round(e) : Math.floor(e), 0);
1860
+ }
1861
+ function hs(e, t) {
1862
+ return !e && e !== 0 ? "" : e.toLocaleString(
1863
+ "it-IT",
1864
+ // usare una stringa tipo 'en-US' per sovrascrivere la lingua del browser
1865
+ {
1866
+ minimumFractionDigits: t,
1867
+ maximumFractionDigits: t
1868
+ }
1869
+ );
1870
+ }
1871
+ const bs = ["id", "data-cy"], Pr = /* @__PURE__ */ L({
1872
+ inheritAttrs: !1,
1873
+ __name: "CheckboxGroup",
1874
+ props: {
1875
+ valuesObj: { default() {
1876
+ return {};
1877
+ } },
1878
+ formCheckInline: { type: Boolean, default: !1 },
1879
+ customClass: { default: "" },
1880
+ reset: { type: Boolean, default: !1 },
1881
+ autoCheckResetAll: { type: Boolean, default: !1 },
1882
+ autoCheckResetEmpty: { type: Boolean, default: !1 },
1883
+ getKey: { default() {
1884
+ return (e) => e.id;
1885
+ } }
1886
+ },
1887
+ emits: ["resetted", "update:modelValue", "checkedGroup"],
1888
+ setup(e, { emit: t }) {
1889
+ const n = gi(), i = e, a = t, r = lt({
1890
+ checkedValuesObj: {}
1891
+ }), s = W(() => {
1892
+ for (const p in i.valuesObj) {
1893
+ const k = i.valuesObj[p];
1894
+ if (k.reset)
1895
+ return k;
1896
+ }
1897
+ return null;
1898
+ }), o = W(
1899
+ () => Object.keys(i.valuesObj).length
1900
+ ), d = W(
1901
+ () => Object.values(r.checkedValuesObj).reduce(
1902
+ (p, k) => k.checked ? p + 1 : p,
1903
+ 0
1904
+ )
1905
+ );
1906
+ ie(
1907
+ () => i.reset,
1908
+ (p) => {
1909
+ p && (m(), a("resetted"));
1910
+ }
1911
+ ), Se(() => {
1912
+ for (const p in i.valuesObj) {
1913
+ const k = i.valuesObj[p];
1914
+ k.checked = !!k.checked, r.checkedValuesObj[p] = k;
1915
+ }
1916
+ });
1917
+ const m = () => {
1918
+ for (const p in r.checkedValuesObj)
1919
+ r.checkedValuesObj[p].checked = !1;
1920
+ }, f = (p) => r.checkedValuesObj[i.getKey(p)].checked, l = (p) => {
1921
+ r.checkedValuesObj[p.id].checked = !f(p);
1922
+ }, u = (p) => {
1923
+ if (!(!i.valuesObj || rs(i.valuesObj))) {
1924
+ if (i.valuesObj[p.id].reset && p.checked ? m() : s.value && !i.valuesObj[p.id].reset && (r.checkedValuesObj[i.getKey(s.value)].checked = !1), r.checkedValuesObj[p.id].checked = !!p.checked, i.autoCheckResetAll && s.value && d.value === o.value - 1)
1925
+ for (const k in r.checkedValuesObj)
1926
+ r.checkedValuesObj[k].checked = !!r.checkedValuesObj[k].reset;
1927
+ i.autoCheckResetEmpty && s.value && !d.value && (r.checkedValuesObj[i.getKey(s.value)].checked = !0), a(
1928
+ "update:modelValue",
1929
+ Object.values(r.checkedValuesObj).filter(
1930
+ (k) => k.checked
1931
+ )
1932
+ ), a("checkedGroup", n["group-id"] || "");
1933
+ }
1934
+ };
1935
+ return (p, k) => (b(), g("div", {
1936
+ id: p.$attrs["group-id"] || "",
1937
+ class: v(["checkbox-group-container", p.$attrs.class || ""]),
1938
+ "data-cy": p.$attrs["data-cy"] || ""
1939
+ }, [
1940
+ S(p.$slots, "checkboxElement", {
1941
+ isActive: f,
1942
+ handleChange: l
1943
+ }, () => [
1944
+ p.valuesObj ? (b(!0), g(q, { key: 0 }, ee(p.valuesObj, (I, P, Q) => (b(), J(Ui, {
1945
+ id: p.getKey(I),
1946
+ key: Q,
1947
+ "data-cy": `checkbox_${x(ms)(`${I.label}`)}`,
1948
+ label: I.label,
1949
+ inline: p.formCheckInline,
1950
+ "wrapper-margin-y": p.$attrs["checkbox-padding-y"],
1951
+ "model-value": f(I),
1952
+ onChange: u
1953
+ }, null, 8, ["id", "data-cy", "label", "inline", "wrapper-margin-y", "model-value"]))), 128)) : T("", !0)
1954
+ ])
1955
+ ], 10, bs));
1956
+ }
1957
+ }), ks = L({
1958
+ name: "RadioButton",
1959
+ inheritAttrs: !1,
1960
+ props: {
1961
+ label: { type: [String, Boolean], required: !0 },
1962
+ isChecked: { type: Boolean }
1963
+ },
1964
+ emits: ["change"],
1965
+ methods: {
1966
+ emitChange() {
1967
+ this.$emit("change", {
1968
+ id: this.$attrs.id,
1969
+ label: this.label,
1970
+ name: this.$attrs.name
1971
+ });
1972
+ },
1973
+ handleClick() {
1974
+ const e = this.$refs.checkbox;
1975
+ e.checked = !e.checked, this.emitChange();
1976
+ },
1977
+ handleOnInput() {
1978
+ this.emitChange();
1979
+ }
1980
+ }
1981
+ }), gs = ["id", "value", "name", "checked"], vs = ["for"];
1982
+ function ys(e, t, n, i, a, r) {
1983
+ return b(), g("div", {
1984
+ class: v([e.$attrs.class, "uikit-mb-4 uikit-mr-4 uikit-inline-block"]),
1985
+ onClick: t[1] || (t[1] = B((...s) => e.handleClick && e.handleClick(...s), ["stop"]))
1986
+ }, [
1987
+ $("input", {
1988
+ id: e.$attrs.id,
1989
+ ref: "checkbox",
1990
+ type: "radio",
1991
+ class: "uikit-hidden",
1992
+ value: e.label,
1993
+ name: e.$attrs.name,
1994
+ checked: e.isChecked,
1995
+ onChange: t[0] || (t[0] = B((...s) => e.handleOnInput && e.handleOnInput(...s), ["stop"]))
1996
+ }, null, 40, gs),
1997
+ $("label", {
1998
+ class: v([e.$attrs["label-classes"], "uikit-flex uikit-cursor-pointer uikit-items-center"]),
1999
+ for: e.$attrs.id
2000
+ }, [
2001
+ $("span", {
2002
+ class: v(["uikit-flex-no-shrink uikit-mr-2 uikit-inline-block uikit-h-4 uikit-w-4 uikit-transform uikit-rounded-full uikit-border uikit-border-solid uikit-border-w-secondary uikit-transition-colors uikit-duration-200", {
2003
+ "uikit-border-w-primary uikit-bg-w-primary uikit-shadow-[0_0_0_2px_white_inset]": e.isChecked
2004
+ }])
2005
+ }, null, 2),
2006
+ xt(" " + de(e.label), 1)
2007
+ ], 10, vs)
2008
+ ], 2);
2009
+ }
2010
+ const ws = /* @__PURE__ */ D(ks, [["render", ys]]), $s = L({
2011
+ name: "RadioGroup",
2012
+ components: { RadioButton: ws },
2013
+ inheritAttrs: !1,
2014
+ props: {
2015
+ initialValue: { type: Object },
2016
+ radioValues: {
2017
+ type: Array
2018
+ },
2019
+ resetRadio: { type: Boolean, default: !1 }
2020
+ },
2021
+ emits: ["resetted", "update:modelValue"],
2022
+ data() {
2023
+ return {
2024
+ selectedValue: null
2025
+ };
2026
+ },
2027
+ watch: {
2028
+ resetRadio(e) {
2029
+ e && (this.reset(), this.$emit("resetted"));
2030
+ }
2031
+ },
2032
+ created() {
2033
+ this.initialValue && this.handleChange(this.initialValue);
2034
+ },
2035
+ methods: {
2036
+ handleChange(e) {
2037
+ this.selectedValue = e, this.$emit("update:modelValue", e);
2038
+ },
2039
+ reset() {
2040
+ this.selectedValue = null;
2041
+ },
2042
+ isActive(e) {
2043
+ return this.selectedValue ? this.selectedValue.id === e.id : !1;
2044
+ }
2045
+ }
2046
+ }), Cs = ["data-cy"];
2047
+ function Es(e, t, n, i, a, r) {
2048
+ const s = ce("radio-button");
2049
+ return b(), g("div", {
2050
+ class: v(["radio-group-container", e.$attrs.class || ""]),
2051
+ "data-cy": e.$attrs["data-cy"] || ""
2052
+ }, [
2053
+ S(e.$slots, "radio_element", {
2054
+ handleClick: e.handleChange,
2055
+ activeValue: e.selectedValue,
2056
+ reset: e.reset,
2057
+ isActive: e.isActive
2058
+ }, () => [
2059
+ (b(!0), g(q, null, ee(e.radioValues, (o, d) => {
2060
+ var m;
2061
+ return b(), J(s, {
2062
+ id: o.id,
2063
+ key: d,
2064
+ label: `${o.label}`,
2065
+ "is-checked": o.label === ((m = e.selectedValue) == null ? void 0 : m.label),
2066
+ onChange: e.handleChange
2067
+ }, null, 8, ["id", "label", "is-checked", "onChange"]);
2068
+ }), 128))
2069
+ ])
2070
+ ], 10, Cs);
2071
+ }
2072
+ const Mr = /* @__PURE__ */ D($s, [["render", Es]]), mi = (e) => {
2073
+ const { isDropdownOpen: t, disableSpaceHandler: n } = e, i = F(-1), a = F(-1), r = (s) => {
2074
+ const o = "ArrowUp", d = "ArrowDown", m = "Enter", f = "Escape", l = " ", u = "PageUp", p = "Home", k = "PageDown", I = "End";
2075
+ if (!t.value || ![
2076
+ o,
2077
+ d,
2078
+ m,
2079
+ f,
2080
+ l,
2081
+ u,
2082
+ p,
2083
+ k,
2084
+ I
2085
+ ].includes(s.key))
2086
+ return;
2087
+ const P = x(e.optionsLength);
2088
+ if (s.key === o)
2089
+ i.value = i.value === 0 ? P - 1 : i.value - 1;
2090
+ else if (s.key === d)
2091
+ i.value = (i.value + 1) % P;
2092
+ else if (s.key === m || s.key === l) {
2093
+ if (s.key === l && n)
2094
+ return;
2095
+ a.value = i.value, t.value = !1;
2096
+ } else
2097
+ s.key === f ? (i.value = a.value, t.value = !1) : s.key === u || s.key === p ? i.value = 0 : (s.key === k || s.key === I) && (i.value = P - 1);
2098
+ s.stopPropagation(), s.preventDefault();
2099
+ };
2100
+ return ze(() => {
2101
+ document && document.addEventListener("keydown", r);
2102
+ }), ut(() => {
2103
+ document && document.removeEventListener("keydown", r);
2104
+ }), {
2105
+ activeIdx: i,
2106
+ selectedIdx: a
2107
+ };
2108
+ }, Ss = (e, { attrs: t }) => {
2109
+ e = { ...Kt(), ...e };
2110
+ const { width: n, height: i } = e;
2111
+ return ke(
2112
+ "svg",
2113
+ {
2114
+ xmlns: "http://www.w3.org/2000/svg",
2115
+ viewBox: "0 0 11.175 13.409",
2116
+ width: `${n}`,
2117
+ height: `${i}`,
2118
+ class: e.class ?? "",
2119
+ "aria-hidden": t["aria-hidden"] ?? "true",
2120
+ fill: "none",
2121
+ stroke: t["stroke-color"] ?? "#FA4F64"
2122
+ },
2123
+ [
2124
+ ke("circle", {
2125
+ cx: 6,
2126
+ cy: 6,
2127
+ r: 4.5
2128
+ }),
2129
+ ke("path", {
2130
+ "stroke-linejoin": "round",
2131
+ d: "M5.8 3.6h.4L6 6.5z"
2132
+ }),
2133
+ ke("circle", {
2134
+ cx: 6,
2135
+ cy: 8.2,
2136
+ r: 0.6,
2137
+ fill: t["stroke-color"] ?? "#FA4F64",
2138
+ stroke: "none"
2139
+ })
2140
+ ]
2141
+ );
2142
+ }, Ts = ["id", "innerHTML"], Os = ["id", "data-cy", "aria-required", "aria-controls", "aria-labelledby", "aria-expanded", "aria-activedescendant", "aria-invalid", "aria-describedby"], Ls = ["innerHTML"], Vs = { class: "uikit-inline-flex" }, Bs = ["innerHTML"], As = ["data-cy"], Is = ["id", "aria-selected", "onClick", "onMouseover"], Ps = { class: "uikit-inline-block uikit-cursor-pointer" }, Ms = ["name", "checked", "onInput"], Rs = ["innerHTML"], js = ["id", "arial-live", "innerHTML"], Fs = ["id", "arial-live", "innerHTML"], Rr = /* @__PURE__ */ L({
2143
+ inheritAttrs: !1,
2144
+ __name: "AccessibleSelect",
2145
+ props: {
2146
+ label: { default: "" },
2147
+ dropdownPosition: { default: "bottom" },
2148
+ namespace: {},
2149
+ options: {},
2150
+ modelValue: { default: () => ({
2151
+ id: "",
2152
+ label: ""
2153
+ }) },
2154
+ isValid: { type: [Boolean, null], default: null },
2155
+ feedback: {}
2156
+ },
2157
+ emits: ["update:modelValue"],
2158
+ setup(e, { emit: t }) {
2159
+ const n = e, i = F(!1), a = F(null), r = W(() => !!n.modelValue.label), s = t, { activeIdx: o, selectedIdx: d } = mi({
2160
+ optionsLength: n.options.length,
2161
+ isDropdownOpen: i
2162
+ }), m = (l) => {
2163
+ i.value = !1, s("update:modelValue", l);
2164
+ };
2165
+ ie(d, (l) => {
2166
+ m(n.options[l]), i.value = !1;
2167
+ });
2168
+ const f = () => {
2169
+ i.value = !1;
2170
+ };
2171
+ return ze(() => {
2172
+ document && document.addEventListener("click", f);
2173
+ }), ut(() => {
2174
+ document && document.removeEventListener("click", f);
2175
+ }), (l, u) => (b(), g(q, null, [
2176
+ $("div", {
2177
+ class: v(["uikit-relative uikit-flex uikit-items-center", [l.label ? "uikit-h-[52px]" : "uikit-h-[42px]", l.$attrs.class]])
2178
+ }, [
2179
+ l.label ? (b(), g("label", {
2180
+ key: 0,
2181
+ id: `${l.namespace}_label`,
2182
+ class: v(["uikit-absolute uikit-font-medium uikit-transition-all uikit-ease-in-out", [
2183
+ r.value ? "as-floating -uikit-top-1 uikit-left-[22px] uikit-text-w-black" : "as-inline uikit-left-4 uikit-top-4 uikit-text-w-gray",
2184
+ l.$attrs["label-classes"]
2185
+ ]]),
2186
+ innerHTML: l.label
2187
+ }, null, 10, Ts)) : T("", !0),
2188
+ S(l.$slots, "lefticon"),
2189
+ $("button", {
2190
+ id: `${l.namespace}_btn`,
2191
+ ref_key: "btnEl",
2192
+ ref: a,
2193
+ type: "button",
2194
+ "data-cy": l.$attrs["data-cy"],
2195
+ class: v(["uikit-peer uikit-flex uikit-h-full uikit-w-full uikit-items-center uikit-justify-between uikit-truncate uikit-bg-white uikit-px-4 uikit-text-left focus-visible:uikit-outline-0", l.$attrs["btn-classes"]]),
2196
+ "aria-required": !!l.$attrs.required,
2197
+ role: "combobox",
2198
+ "aria-haspopup": "listbox",
2199
+ "aria-controls": `${l.namespace}_dropdown`,
2200
+ "aria-labelledby": `${l.namespace}_label ${l.namespace}_btn`,
2201
+ "aria-expanded": i.value,
2202
+ "aria-activedescendant": x(o) >= 0 && i.value ? `${l.namespace}_element_${l.options[x(o)].label}` : "",
2203
+ "aria-invalid": n.isValid === !1,
2204
+ "aria-describedby": n.isValid === !1 ? `${l.namespace}_invalid_msg` : void 0,
2205
+ onClick: u[0] || (u[0] = B((p) => i.value = !i.value, ["stop"]))
2206
+ }, [
2207
+ $("span", {
2208
+ class: v(l.$attrs["btn-text-classes"]),
2209
+ innerHTML: l.modelValue.visibleLabel || l.modelValue.label
2210
+ }, null, 10, Ls),
2211
+ $("span", Vs, [
2212
+ n.isValid == !1 ? (b(), J(x(Ss), {
2213
+ key: 0,
2214
+ class: "uikit-mr-1",
2215
+ width: 20,
2216
+ height: 20
2217
+ })) : T("", !0),
2218
+ K(x(Ne), {
2219
+ class: v(["uikit-transition-transform motion-reduce:uikit-transition-none", i.value && "uikit-rotate-180"]),
2220
+ width: 18,
2221
+ height: 18,
2222
+ "stroke-color": l.isValid ? "#2B5DFF" : l.isValid === !1 ? "#FA4F64" : "#222"
2223
+ }, null, 8, ["class", "stroke-color"])
2224
+ ])
2225
+ ], 10, Os),
2226
+ $("fieldset", {
2227
+ "aria-hidden": "true",
2228
+ class: v(["uikit-pointer-events-none uikit-absolute -uikit-top-[1px] uikit-bottom-0 uikit-left-0 uikit-right-0 uikit-cursor-pointer uikit-rounded-xs uikit-border uikit-border-solid uikit-px-2 peer-focus:uikit-border-2 peer-focus:uikit-border-w-primary peer-focus-visible:uikit-border-2 peer-focus-visible:uikit-border-w-primary peer-aria-invalid:uikit-border-w-danger", [
2229
+ l.label ? "uikit-h-12" : "uikit-h-[42px]",
2230
+ l.$attrs["fieldset-classes"],
2231
+ l.isValid ? "uikit-border-w-primary" : l.isValid === !1 ? "uikit-border-w-danger" : "uikit-border-w-secondary"
2232
+ ]])
2233
+ }, [
2234
+ l.label ? (b(), g("legend", {
2235
+ key: 0,
2236
+ class: v([l.$attrs["legend-classes"], "uikit-ml-2 uikit-h-3"])
2237
+ }, [
2238
+ $("span", {
2239
+ class: v(["uikit-mx-5px", l.modelValue.label ? "uikit-invisible" : "uikit-hidden"]),
2240
+ innerHTML: l.label
2241
+ }, null, 10, Bs)
2242
+ ], 2)) : T("", !0)
2243
+ ], 2),
2244
+ $("ul", {
2245
+ "data-cy": l.$attrs["data-cy"] && `${l.$attrs["data-cy"]}_dropdown`,
2246
+ role: "listbox",
2247
+ tabindex: -1,
2248
+ "aria-multiselectable": !1,
2249
+ class: v(["uikit-absolute uikit-z-10 uikit-max-h-[225px] uikit-w-full uikit-min-w-full uikit-overflow-y-auto uikit-no-scrollbar", [
2250
+ { "uikit-h-0 uikit-w-0 uikit-overflow-hidden": !i.value },
2251
+ {
2252
+ "uikit-rounded-xs uikit-border uikit-border-solid uikit-border-w-secondary uikit-bg-white": i.value
2253
+ },
2254
+ { "uikit-bottom-[55px]": l.dropdownPosition === "top" },
2255
+ { "uikit-top-[55px]": l.dropdownPosition === "bottom" },
2256
+ l.$attrs["dropdown-classes"]
2257
+ ]]),
2258
+ onClick: u[1] || (u[1] = B(() => {
2259
+ }, ["stop"]))
2260
+ }, [
2261
+ (b(!0), g(q, null, ee(l.options, (p, k) => (b(), g("li", {
2262
+ id: `${l.namespace}_element_${l.options[k].label}`,
2263
+ key: `${p.label}_${k}`,
2264
+ role: "option",
2265
+ "aria-selected": x(o) === k,
2266
+ class: v(["uikit-m-1 uikit-cursor-pointer uikit-px-20px uikit-py-10px aria-selected:uikit-rounded-xs aria-selected:uikit-bg-w-cultured", l.$attrs["dropdown-item-classes"]]),
2267
+ onClick: B((I) => m(p), ["stop"]),
2268
+ onMouseover: B((I) => o.value = k, ["stop"])
2269
+ }, [
2270
+ $("label", Ps, [
2271
+ $("input", {
2272
+ tabindex: "-1",
2273
+ class: "uikit-appearance-none",
2274
+ name: `${l.namespace}_radio`,
2275
+ type: "radio",
2276
+ checked: p.label === l.modelValue.label,
2277
+ onInput: B((I) => m(p), ["stop"])
2278
+ }, null, 40, Ms),
2279
+ $("span", {
2280
+ innerHTML: p.label
2281
+ }, null, 8, Rs)
2282
+ ])
2283
+ ], 42, Is))), 128))
2284
+ ], 10, As)
2285
+ ], 2),
2286
+ l.feedback ? (b(), g(q, { key: 0 }, [
2287
+ l.feedback.valid ? (b(), g("span", {
2288
+ key: 0,
2289
+ id: `${l.namespace}_valid_msg`,
2290
+ "arial-live": l.$attrs["aria-live"],
2291
+ class: "uikit-mb-2 uikit-text-sm",
2292
+ innerHTML: l.isValid ? l.feedback.valid : ""
2293
+ }, null, 8, js)) : T("", !0),
2294
+ l.feedback.invalid ? (b(), g("span", {
2295
+ key: 1,
2296
+ id: `${l.namespace}_invalid_msg`,
2297
+ "arial-live": l.$attrs["aria-live"],
2298
+ class: "uikit-mb-2 uikit-text-sm uikit-text-w-danger",
2299
+ innerHTML: l.isValid === !1 ? l.feedback.invalid : ""
2300
+ }, null, 8, Fs)) : T("", !0)
2301
+ ], 64)) : T("", !0)
2302
+ ], 64));
2303
+ }
2304
+ }), Ds = ["id"], zs = /* @__PURE__ */ L({
2305
+ __name: "BaseAlert",
2306
+ props: {
2307
+ text: { default: "" },
2308
+ alrtClass: { default: "" }
2309
+ },
2310
+ setup(e) {
2311
+ return (t, n) => (b(), g("div", {
2312
+ id: t.$attrs.id,
2313
+ class: v(["uikit-alert", t.alrtClass]),
2314
+ role: "alert"
2315
+ }, [
2316
+ S(t.$slots, "default", {}, () => [
2317
+ xt(de(t.text), 1)
2318
+ ], !0)
2319
+ ], 10, Ds));
2320
+ }
2321
+ }), jr = /* @__PURE__ */ D(zs, [["__scopeId", "data-v-82501fde"]]), Ns = L({
2322
+ name: "BaseFloatingLabel",
2323
+ props: {
2324
+ labelState: {
2325
+ type: String,
2326
+ default: () => "inline-label"
2327
+ },
2328
+ isValid: {
2329
+ type: Boolean,
2330
+ default: () => null
2331
+ },
2332
+ labelText: {
2333
+ type: String,
2334
+ required: !0
2335
+ },
2336
+ disabled: {
2337
+ type: [String, Boolean],
2338
+ default: !1
2339
+ }
2340
+ },
2341
+ emits: ["click"]
2342
+ }), Hs = ["for"], Us = ["innerHTML"];
2343
+ function Ws(e, t, n, i, a, r) {
2344
+ return b(), g("label", {
2345
+ for: e.$attrs.for,
2346
+ class: v(["uikit-absolute uikit-left-15px uikit-h-5", [
2347
+ e.labelState,
2348
+ { "uikit-text-w-secondary": e.disabled },
2349
+ e.$attrs["label-classes"]
2350
+ ]]),
2351
+ onClick: t[0] || (t[0] = B((s) => e.$emit("click"), ["stop"]))
2352
+ }, [
2353
+ $("span", {
2354
+ class: v(["uikit-text uikit-font-medium uikit-text-w-black", { "!uikit-text-w-secondary": e.disabled }]),
2355
+ innerHTML: e.labelText
2356
+ }, null, 10, Us),
2357
+ e.$attrs.required ? (b(), g("sup", {
2358
+ key: 0,
2359
+ class: v(["-uikit-top-[0.3rem] uikit-text uikit-text-w-primary", { "uikit-text-w-secondary": e.disabled }])
2360
+ }, " *", 2)) : T("", !0)
2361
+ ], 10, Hs);
2362
+ }
2363
+ const ht = /* @__PURE__ */ D(Ns, [["render", Ws], ["__scopeId", "data-v-778ca2a7"]]);
2364
+ function hi(e) {
2365
+ const t = F("inline-label");
2366
+ function n(o) {
2367
+ o != null && `${o}`.length > 0 && (t.value = "floating-label");
2368
+ }
2369
+ const i = (o = !0) => {
2370
+ t.value !== "floating-label" && o && (t.value = "floating-label"), e("focusin");
2371
+ };
2372
+ function a(o, d = !1, m = !0) {
2373
+ if (o != null && `${o}`.trim().length > 0 || !d && !m) {
2374
+ s(), e("focusout");
2375
+ return;
2376
+ }
2377
+ r();
2378
+ }
2379
+ const r = () => {
2380
+ t.value = "inline-label";
2381
+ }, s = () => {
2382
+ t.value = "floating-label";
2383
+ };
2384
+ return {
2385
+ labelState: t,
2386
+ setInitialLabelState: n,
2387
+ handleFocusIn: i,
2388
+ handleFocusOut: a,
2389
+ setInlineLabel: r,
2390
+ setFloatingLabel: s
2391
+ };
2392
+ }
2393
+ const Xs = L({
2394
+ name: "BaseInput",
2395
+ components: { BaseFloatingLabel: ht },
2396
+ inheritAttrs: !1,
2397
+ props: {
2398
+ inputClass: { type: [String, Array], required: !1, default: "" },
2399
+ inputType: {
2400
+ type: String,
2401
+ default: "text-input"
2402
+ },
2403
+ labelText: { type: String, default: "" },
2404
+ border: { type: Boolean, default: !0 },
2405
+ radius: { type: Boolean, default: !0 },
2406
+ modelValue: { type: [String, Number] },
2407
+ feedback: { type: Object },
2408
+ isValid: { type: Boolean, default: null },
2409
+ auto: { type: Boolean, default: !0 },
2410
+ keepFloatingLabel: { type: Boolean, default: !1 },
2411
+ formatter: {
2412
+ type: Object,
2413
+ default: null
2414
+ }
2415
+ },
2416
+ emits: [
2417
+ "update:modelValue",
2418
+ "click",
2419
+ "keydown-enter-pressed",
2420
+ "focusin",
2421
+ "focusout",
2422
+ "keydown"
2423
+ ],
2424
+ setup(e, t) {
2425
+ const {
2426
+ labelState: n,
2427
+ setInitialLabelState: i,
2428
+ handleFocusIn: a,
2429
+ handleFocusOut: r,
2430
+ setInlineLabel: s,
2431
+ setFloatingLabel: o
2432
+ } = hi(t.emit);
2433
+ return {
2434
+ labelState: n,
2435
+ setInitialLabelState: i,
2436
+ handleFocusIn: a,
2437
+ handleFocusOut: r,
2438
+ setInlineLabel: s,
2439
+ setFloatingLabel: o
2440
+ };
2441
+ },
2442
+ data() {
2443
+ return {
2444
+ type: "",
2445
+ //a valid input type
2446
+ feedbackObj: {},
2447
+ pointerDownListener: (e) => {
2448
+ e.preventDefault();
2449
+ }
2450
+ };
2451
+ },
2452
+ computed: {
2453
+ passwordIcon() {
2454
+ return document ? document.querySelector("[data-type='password-icon']") : null;
2455
+ }
2456
+ },
2457
+ watch: {
2458
+ feedback() {
2459
+ this.normalizeFeedbackProp();
2460
+ },
2461
+ modelValue(e) {
2462
+ if (e) {
2463
+ const t = this.$refs.baseInput;
2464
+ if (!t)
2465
+ return;
2466
+ !t.value && this.formatter && (e = t.value);
2467
+ const n = this.updateInputValue(t, e);
2468
+ this.$emit("update:modelValue", n);
2469
+ } else
2470
+ this.$refs.baseInput.value = "";
2471
+ e != null && `${e}`.length > 0 && this.auto && this.labelState !== "floating-label" ? this.labelState = "floating-label" : (e == null || e == null) && (this.labelState = "inline-label");
2472
+ },
2473
+ //Manually moving the floating label
2474
+ keepFloatingLabel(e) {
2475
+ e ? this.setFloatingLabel() : this.handleFocusOut(this.modelValue, !0, this.auto);
2476
+ }
2477
+ },
2478
+ created() {
2479
+ this.type = this.$attrs.type, this.normalizeFeedbackProp(), this.setInitialLabelState(this.modelValue);
2480
+ },
2481
+ mounted() {
2482
+ if ((this.modelValue != null || this.modelValue != null) && (this.$refs.baseInput.value = `${this.modelValue}`), this.formatter) {
2483
+ const e = this.updateInputValue(
2484
+ this.$refs.baseInput,
2485
+ `${this.modelValue}`
2486
+ );
2487
+ this.$emit("update:modelValue", e);
2488
+ }
2489
+ this.setPointerOutListener();
2490
+ },
2491
+ unmounted() {
2492
+ var e;
2493
+ (e = this.passwordIcon) == null || e.removeEventListener(
2494
+ "pointerdown",
2495
+ this.pointerDownListener
2496
+ );
2497
+ },
2498
+ methods: {
2499
+ select() {
2500
+ this.$refs.baseInput.select();
2501
+ },
2502
+ /**
2503
+ * Prevents the default behaviour of pointerout so the clicked element won't make lose the focus to the input element
2504
+ * */
2505
+ setPointerOutListener() {
2506
+ if (this.$attrs.type !== "password")
2507
+ return;
2508
+ const e = this.passwordIcon;
2509
+ e && e.addEventListener("pointerdown", this.pointerDownListener);
2510
+ },
2511
+ handleFloatingLabelClick() {
2512
+ this.$refs.baseInput.focus();
2513
+ },
2514
+ normalizeFeedbackProp() {
2515
+ this.feedback && (this.feedbackObj = this.feedback, this.feedback.valid && typeof this.feedback.valid == "string" && (this.feedbackObj.valid = [this.feedback.valid]), this.feedback.invalid && typeof this.feedback.invalid == "string" && (this.feedbackObj.invalid = [this.feedback.invalid]));
2516
+ },
2517
+ updateInputValue(e, t) {
2518
+ if (!t)
2519
+ return e.value = "", "";
2520
+ let n = "";
2521
+ return this.formatter && this.formatter.unFormatFn ? n = `${this.formatter.unFormatFn(t)}` : n = t, this.formatter ? e.value = this.formatter.formatFn(n) : e.value = n, n;
2522
+ },
2523
+ handleInputChange({ target: e }) {
2524
+ if (this.inputType === "select")
2525
+ return;
2526
+ const t = e, n = this.updateInputValue(t, t.value);
2527
+ this.$emit("update:modelValue", n);
2528
+ },
2529
+ handleClick(e) {
2530
+ this.$emit("click", e);
2531
+ },
2532
+ handleClean() {
2533
+ this.$emit("update:modelValue", ""), this.setInlineLabel();
2534
+ },
2535
+ handleShowPasswd() {
2536
+ this.type === "password" ? this.type = "text" : this.type === "text" && (this.type = "password");
2537
+ }
2538
+ }
2539
+ }), Ys = ["id", "data-cy", "name", "autocomplete", "disabled", "aria-labelledby", "readonly", "type", "pattern", "min", "max", "maxlength", "inputmode", "placeholder"], xs = {
2540
+ key: 0,
2541
+ class: "uikit-invisible uikit-float-none uikit-mb-2 uikit-ml-2 uikit-block uikit-h-3 uikit-w-auto uikit-max-w-full uikit-overflow-hidden uikit-whitespace-nowrap uikit-p-0 uikit-text uikit-transition-[max-width] uikit-duration-[50ms] uikit-ease-out"
2542
+ }, qs = ["innerHTML"], Ks = ["innerHTML"], Gs = ["innerHTML"], Js = { class: "under-label uikit-absolute uikit-text-12" };
2543
+ function Zs(e, t, n, i, a, r) {
2544
+ const s = ce("base-floating-label");
2545
+ return b(), g("div", {
2546
+ class: v(["input-wrapper uikit-relative uikit-inline-block uikit-w-full [&.has-right-icon.is-invalid_.text-input-icon]:uikit-mr-25px [&.has-right-icon.is-valid_.text-input-icon]:uikit-mr-25px", [
2547
+ e.$attrs.class,
2548
+ { "uikit-mt-10px": e.labelText },
2549
+ { "floating-label": e.labelText },
2550
+ e.labelState === "floating-label" ? "floating-state" : "inline-state",
2551
+ {
2552
+ "has-right-icon": e.$attrs["with-right-icon"] !== void 0 ? e.$attrs["with-right-icon"] : !!e.$slots.righticon
2553
+ },
2554
+ {
2555
+ "has-left-icon": e.$attrs["with-left-icon"] !== void 0 ? e.$attrs["with-left-icon"] : !!e.$slots.leftIcon
2556
+ },
2557
+ { "is-invalid": e.isValid === !1, "is-valid": e.isValid }
2558
+ ]])
2559
+ }, [
2560
+ S(e.$slots, "leftIcon", {}, void 0, !0),
2561
+ S(e.$slots, "righticon", {
2562
+ handleClean: e.handleClean,
2563
+ handleShowPasswd: e.handleShowPasswd,
2564
+ curType: e.type
2565
+ }, void 0, !0),
2566
+ $("input", {
2567
+ id: e.$attrs.id,
2568
+ ref: "baseInput",
2569
+ "data-cy": e.$attrs["data-cy"],
2570
+ name: e.$attrs.name,
2571
+ class: v(["uikit-peer uikit-h-[42px] uikit-truncate !uikit-border-none uikit-bg-no-repeat focus:uikit-shadow-none focus:uikit-outline-none", [
2572
+ { "uikit-rounded-xs": e.radius },
2573
+ {
2574
+ "input-element uikit-block uikit-h-12 uikit-w-full uikit-appearance-none uikit-px-4 uikit-py-2 uikit-outline-0": e.inputType === "text-input"
2575
+ },
2576
+ { "uikit-text-w-secondary": e.$attrs.disabled },
2577
+ {
2578
+ "is-invalid invalid-bg !uikit-pr-9": e.isValid === !1,
2579
+ "is-valid valid-bg !uikit-pr-9": e.isValid
2580
+ },
2581
+ {
2582
+ "uikit-pr-[42px]": e.$attrs["with-right-icon"] !== void 0 ? e.$attrs["with-right-icon"] : !!e.$slots.righticon
2583
+ },
2584
+ {
2585
+ "uikit-pl-[42px]": e.$attrs["with-left-icon"] !== void 0 ? e.$attrs["with-left-icon"] : !!e.$slots.leftIcon
2586
+ },
2587
+ e.inputClass
2588
+ ]]),
2589
+ autocomplete: e.$attrs.autocomplete === "on" ? "on" : "off",
2590
+ disabled: e.$attrs.disabled,
2591
+ "aria-labelledby": e.$attrs.id,
2592
+ readonly: e.$attrs.readonly,
2593
+ type: e.type,
2594
+ pattern: e.$attrs.pattern,
2595
+ min: e.$attrs.min,
2596
+ max: e.$attrs.max,
2597
+ maxlength: e.$attrs.maxlength,
2598
+ inputmode: e.$attrs.inputmode,
2599
+ placeholder: e.$attrs.placeholder,
2600
+ onClick: t[0] || (t[0] = (...o) => e.handleClick && e.handleClick(...o)),
2601
+ onFocusin: t[1] || (t[1] = B(() => e.handleFocusIn(), ["stop"])),
2602
+ onFocusout: t[2] || (t[2] = B((o) => !e.keepFloatingLabel && e.handleFocusOut(e.modelValue, !1, e.auto), ["stop"])),
2603
+ onInput: t[3] || (t[3] = B((...o) => e.handleInputChange && e.handleInputChange(...o), ["stop"])),
2604
+ onKeydown: [
2605
+ t[4] || (t[4] = vi((o) => e.$emit("keydown-enter-pressed"), ["enter"])),
2606
+ t[5] || (t[5] = (o) => e.$emit("keydown", o))
2607
+ ]
2608
+ }, null, 42, Ys),
2609
+ $("fieldset", {
2610
+ class: v(["uikit-pointer-events-none uikit-absolute -uikit-top-[5px] uikit-bottom-0 uikit-left-0 uikit-right-0 uikit-m-0 uikit-h-12 uikit-overflow-hidden uikit-px-2 uikit-py-0 uikit-text-left", [
2611
+ {
2612
+ "uikit-border uikit-border-solid uikit-transition-[border] uikit-duration-100 uikit-ease-out peer-focus:uikit-border-2 peer-focus:uikit-border-w-primary peer-focus:[&.is-invalid]:uikit-border-w-danger": e.border,
2613
+ "uikit-rounded-xs": e.radius,
2614
+ "is-invalid uikit-border-w-danger": e.isValid === !1,
2615
+ "is-valid uikit-border-w-primary": e.isValid,
2616
+ "uikit-border-w-secondary": e.isValid === null && e.border
2617
+ },
2618
+ { "no-floating-label uikit-top-0": !e.labelText },
2619
+ e.$attrs["fieldset-classes"]
2620
+ ]])
2621
+ }, [
2622
+ e.labelText ? (b(), g("legend", xs, [
2623
+ $("span", {
2624
+ class: v(["visible-label uikit-opacity-0", [
2625
+ { "uikit-mx-5px": e.labelText },
2626
+ {
2627
+ "uikit-visible uikit-inline-block": e.labelState === "floating-label"
2628
+ },
2629
+ {
2630
+ "uikit-invisible uikit-hidden": e.labelState === "inline-label"
2631
+ }
2632
+ ]]),
2633
+ innerHTML: e.labelText
2634
+ }, null, 10, qs)
2635
+ ])) : T("", !0)
2636
+ ], 2),
2637
+ e.labelText ? (b(), J(s, {
2638
+ key: 0,
2639
+ for: e.$attrs.id,
2640
+ "label-text": e.labelText,
2641
+ "label-state": e.labelState,
2642
+ "is-valid": e.isValid,
2643
+ required: e.$attrs.required,
2644
+ disabled: e.$attrs.disabled,
2645
+ "label-classes": e.$attrs["label-classes"],
2646
+ onClick: e.handleFloatingLabelClick
2647
+ }, null, 8, ["for", "label-text", "label-state", "is-valid", "required", "disabled", "label-classes", "onClick"])) : T("", !0),
2648
+ e.isValid === !1 ? (b(!0), g(q, { key: 1 }, ee(e.feedbackObj.invalid, (o, d) => (b(), g("div", {
2649
+ key: `${e.$attrs.id}_invalid_${d}`,
2650
+ class: "uikit-mt-1 uikit-text-12 uikit-text-w-danger",
2651
+ innerHTML: o
2652
+ }, null, 8, Ks))), 128)) : e.isValid === !0 ? (b(!0), g(q, { key: 2 }, ee(e.feedbackObj.valid, (o, d) => (b(), g("div", {
2653
+ key: `${e.$attrs.id}_valid_${d}`,
2654
+ class: "uikit-mt-1 uikit-text-12 uikit-text-w-primary",
2655
+ innerHTML: o
2656
+ }, null, 8, Gs))), 128)) : T("", !0),
2657
+ $("div", Js, [
2658
+ S(e.$slots, "under-label", {}, void 0, !0)
2659
+ ])
2660
+ ], 2);
2661
+ }
2662
+ const bi = /* @__PURE__ */ D(Xs, [["render", Zs], ["__scopeId", "data-v-90ceb1a9"]]), Qs = L({
2663
+ name: "BaseIcon",
2664
+ props: {
2665
+ lazyLoading: { type: Boolean, default: !1 },
2666
+ altAttribute: {
2667
+ type: String,
2668
+ default: ""
2669
+ },
2670
+ iconName: {
2671
+ type: String,
2672
+ default: ""
2673
+ },
2674
+ iconType: {
2675
+ type: String,
2676
+ default: "icon-md"
2677
+ },
2678
+ iconClass: {
2679
+ type: String,
2680
+ default: "uikit-mr-5px"
2681
+ }
2682
+ }
2683
+ }), _s = ["id", "alt", "src", "width", "height", "loading"];
2684
+ function ea(e, t, n, i, a, r) {
2685
+ return b(), g("img", {
2686
+ id: e.$attrs.id,
2687
+ class: v(["uikit-inline-block", e.iconType, e.iconClass]),
2688
+ alt: e.altAttribute || e.$attrs.alt,
2689
+ style: qt(e.$attrs.style),
2690
+ src: e.$attrs.src ? e.$attrs.src : "",
2691
+ width: e.$attrs.width,
2692
+ height: e.$attrs.height,
2693
+ loading: e.lazyLoading ? "lazy" : "eager"
2694
+ }, null, 14, _s);
2695
+ }
2696
+ const bt = /* @__PURE__ */ D(Qs, [["render", ea], ["__scopeId", "data-v-b74f68b2"]]), ta = {
2697
+ viewBox: "0 0 128 128",
2698
+ class: "icon-spin uikit-h-6 uikit-w-6"
2699
+ }, ia = ["stroke-width"], na = /* @__PURE__ */ L({
2700
+ __name: "StaticSpinner",
2701
+ props: {
2702
+ thickness: { default: 9 },
2703
+ color: { default: "uikit-stroke-white" }
2704
+ },
2705
+ setup(e) {
2706
+ return (t, n) => (b(), g("div", {
2707
+ class: v(["uikit-m-auto uikit-flex uikit-items-center uikit-justify-center", t.color])
2708
+ }, [
2709
+ (b(), g("svg", ta, [
2710
+ $("circle", {
2711
+ class: "path",
2712
+ cx: "64",
2713
+ cy: "64",
2714
+ r: "42",
2715
+ fill: "none",
2716
+ "stroke-width": t.thickness
2717
+ }, null, 8, ia)
2718
+ ]))
2719
+ ], 2));
2720
+ }
2721
+ }), sa = /* @__PURE__ */ D(na, [["__scopeId", "data-v-8a111551"]]), aa = ["id", "data-cy", "type", "data-active", "disabled", "aria-labelledby"], ra = /* @__PURE__ */ L({
2722
+ __name: "BaseButton",
2723
+ props: {
2724
+ lazyLoadIcon: { type: Boolean, default: !0 },
2725
+ btnClass: { default: "" },
2726
+ iconName: { default: "" },
2727
+ iconNameHovering: { default: "" },
2728
+ iconClass: { default: "uikit-mr-[5px]" },
2729
+ isEmpty: { type: Boolean, default: !1 },
2730
+ keepActive: { type: Boolean, default: !1 },
2731
+ isLoading: { type: Boolean, default: !1 },
2732
+ disabled: { type: Boolean, default: !1 }
2733
+ },
2734
+ emits: ["mouseover", "mouseout", "click"],
2735
+ setup(e) {
2736
+ const t = e, n = F(!1), i = F("");
2737
+ Se(() => {
2738
+ i.value = t.iconName ?? "";
2739
+ });
2740
+ const a = () => {
2741
+ n.value = !0, t.iconNameHovering && s(t.iconNameHovering);
2742
+ }, r = () => {
2743
+ n.value = !1, t.iconNameHovering && s(t.iconName);
2744
+ }, s = (o) => {
2745
+ i.value = o;
2746
+ };
2747
+ return (o, d) => (b(), g("button", {
2748
+ id: o.$attrs.id,
2749
+ "data-cy": o.$attrs["data-cy"],
2750
+ type: o.$attrs.type,
2751
+ class: v([
2752
+ {
2753
+ "uikit-btn": !o.isEmpty,
2754
+ "uikit-btn-empty": o.isEmpty,
2755
+ "active uikit-font-medium": o.keepActive,
2756
+ "uikit-flex uikit-items-center uikit-justify-center": o.iconName || o.isLoading
2757
+ },
2758
+ o.btnClass
2759
+ ]),
2760
+ style: qt(o.$attrs.style),
2761
+ "data-active": o.keepActive,
2762
+ disabled: o.isLoading || o.disabled,
2763
+ "aria-labelledby": o.$attrs.id,
2764
+ onMouseover: d[0] || (d[0] = B((m) => {
2765
+ a(), o.$emit("mouseover", m);
2766
+ }, ["stop"])),
2767
+ onMouseout: d[1] || (d[1] = B((m) => {
2768
+ r(), o.$emit("mouseout", m);
2769
+ }, ["stop"])),
2770
+ onClick: d[2] || (d[2] = (m) => o.$emit("click", m))
2771
+ }, [
2772
+ o.iconName && !o.isLoading ? (b(), J(bt, {
2773
+ key: o.$attrs.id ? o.$attrs.id : `btn-${o.iconName}`,
2774
+ "icon-name": i.value,
2775
+ "icon-class": o.iconClass,
2776
+ "alt-attribute": "button icon",
2777
+ "lazy-loading": o.lazyLoadIcon
2778
+ }, null, 8, ["icon-name", "icon-class", "lazy-loading"])) : T("", !0),
2779
+ o.isLoading ? S(o.$slots, "spinner", { key: 2 }, () => [
2780
+ K(sa, {
2781
+ color: o.btnClass.includes("uikit-btn-light") ? "uikit-stroke-black" : "uikit-stroke-white"
2782
+ }, null, 8, ["color"])
2783
+ ]) : S(o.$slots, "default", {
2784
+ key: 1,
2785
+ hover: n.value
2786
+ })
2787
+ ], 46, aa));
2788
+ }
2789
+ }), oa = ["innerHTML"], la = /* @__PURE__ */ L({
2790
+ inheritAttrs: !1,
2791
+ __name: "BaseDropDown",
2792
+ props: {
2793
+ id: { default: "" },
2794
+ dropdownClasses: { default: "" },
2795
+ containerDropdownClasses: { default: "" },
2796
+ iconName: { default: "" },
2797
+ iconClasses: { default: "" },
2798
+ btnClasses: { default: "" },
2799
+ withArrowIcon: { type: Boolean, default: !1 },
2800
+ btnLabel: { default: "" },
2801
+ labelClasses: { default: "" },
2802
+ direction: { default: "down" },
2803
+ arrowWidth: { default: 12 },
2804
+ isAbsolute: { type: Boolean, default: !0 },
2805
+ openDropdown: { type: Boolean, default: !1 },
2806
+ closeWhenClickedOutside: { type: Boolean, default: !0 },
2807
+ dropdownElement: { default: "div" },
2808
+ keepState: { default: "" }
2809
+ },
2810
+ emits: ["click", "update:dropdownState"],
2811
+ setup(e, { emit: t }) {
2812
+ const n = e, i = t, a = F(!1);
2813
+ ie(
2814
+ () => n.openDropdown,
2815
+ (o) => {
2816
+ a.value = o;
2817
+ },
2818
+ {
2819
+ immediate: !0
2820
+ }
2821
+ ), ie(a, (o) => {
2822
+ i("update:dropdownState", o);
2823
+ });
2824
+ const r = () => {
2825
+ a.value = !1;
2826
+ }, s = () => {
2827
+ n.keepState === "closed" && !a.value || n.keepState === "opened" && a.value || (a.value = !a.value);
2828
+ };
2829
+ return Se(() => {
2830
+ n.closeWhenClickedOutside && document && document.body.addEventListener("click", r);
2831
+ }), ut(() => {
2832
+ n.closeWhenClickedOutside && document && document.body.removeEventListener("click", r);
2833
+ }), (o, d) => (b(), g("div", {
2834
+ class: v(["uikit-relative uikit-block", o.$attrs.class]),
2835
+ onClick: d[1] || (d[1] = B((m) => {
2836
+ i("click"), s();
2837
+ }, ["stop"]))
2838
+ }, [
2839
+ S(o.$slots, "btn_slot", {
2840
+ toggleDropdown: s,
2841
+ isOpen: a.value
2842
+ }, () => [
2843
+ K(ra, {
2844
+ id: o.id,
2845
+ type: "button",
2846
+ "data-cy": o.$attrs["data-cy"],
2847
+ class: v([
2848
+ "!uikit-flex uikit-w-full uikit-items-center uikit-truncate",
2849
+ o.btnClasses
2850
+ ]),
2851
+ "aria-expanded": a.value,
2852
+ "btn-class": "uikit-btn-single-selection",
2853
+ "icon-class": o.iconClasses,
2854
+ "icon-name": o.iconName
2855
+ }, {
2856
+ default: _(() => [
2857
+ $("span", {
2858
+ class: v(["uikit-mr-5px", o.labelClasses]),
2859
+ innerHTML: o.btnLabel
2860
+ }, null, 10, oa),
2861
+ o.withArrowIcon ? (b(), J(x(Ne), {
2862
+ key: 0,
2863
+ class: v(["uikit-shrink-0 uikit-transition-transform motion-reduce:uikit-transition-none", a.value && "uikit-rotate-180"]),
2864
+ width: o.arrowWidth,
2865
+ height: o.arrowWidth,
2866
+ "stroke-color": o.$attrs["arrow-stroke-color"]
2867
+ }, null, 8, ["class", "width", "height", "stroke-color"])) : T("", !0)
2868
+ ]),
2869
+ _: 1
2870
+ }, 8, ["id", "data-cy", "class", "aria-expanded", "icon-class", "icon-name"])
2871
+ ]),
2872
+ (b(), J(yi(o.dropdownElement), {
2873
+ id: "dropdown_" + o.id,
2874
+ ref: "dropdown",
2875
+ "data-cy": o.$attrs["data-cy"] && `${o.$attrs["data-cy"]}_dropdown`,
2876
+ class: v(["uikit-max-h-[220px] uikit-w-full uikit-min-w-[90px] uikit-flex-col uikit-overflow-y-auto uikit-border uikit-border-solid uikit-border-w-lavender uikit-bg-white uikit-opacity-100 uikit-shadow uikit-no-scrollbar", [
2877
+ o.dropdownClasses,
2878
+ a.value ? "uikit-flex" : "uikit-hidden",
2879
+ { "uikit-bottom-[55px] uikit-rounded-xs": o.direction === "up" },
2880
+ { "uikit-rounded-b uikit-border-t-0": o.direction === "down" },
2881
+ { "uikit-absolute": o.isAbsolute }
2882
+ ]]),
2883
+ onClick: d[0] || (d[0] = B(() => {
2884
+ }, ["stop"]))
2885
+ }, {
2886
+ default: _(() => [
2887
+ S(o.$slots, "default", { isOpen: a.value })
2888
+ ]),
2889
+ _: 3
2890
+ }, 8, ["id", "data-cy", "class"]))
2891
+ ], 2));
2892
+ }
2893
+ }), ua = ["innerHTML"], Fr = /* @__PURE__ */ L({
2894
+ __name: "BaseAutocomplete",
2895
+ props: /* @__PURE__ */ St({
2896
+ border: { type: Boolean, default: !0 },
2897
+ isValid: { default: null },
2898
+ theme: { default: "" },
2899
+ label: { default: "" },
2900
+ disableCb: { type: Boolean, default: !1 },
2901
+ onInputChangeCb: {},
2902
+ onOptionSelectedCb: { default: null },
2903
+ manualClose: { type: Boolean, default: !1 },
2904
+ keepState: { default: null }
2905
+ }, {
2906
+ modelValue: {
2907
+ default() {
2908
+ return { id: "", label: "" };
2909
+ }
2910
+ },
2911
+ modelModifiers: {}
2912
+ }),
2913
+ emits: /* @__PURE__ */ St(["dropdownClosed", "changedValue", "click"], ["update:modelValue"]),
2914
+ setup(e, { expose: t, emit: n }) {
2915
+ const i = e, a = wi(e, "modelValue"), r = n, s = F(""), o = F([]), d = F(null), m = F(!1), f = F(!1), l = F(null), u = W(() => o.value.length);
2916
+ Se(() => {
2917
+ var h;
2918
+ s.value = ((h = a.value) == null ? void 0 : h.label) || "", d.value = fs({ delay: 300 }, i.onInputChangeCb);
2919
+ });
2920
+ const { activeIdx: p, selectedIdx: k } = mi({
2921
+ optionsLength: u,
2922
+ isDropdownOpen: f,
2923
+ disableSpaceHandler: !0
2924
+ }), I = W(() => {
2925
+ switch (i.theme) {
2926
+ case "bordered":
2927
+ return "";
2928
+ case "all-bordered":
2929
+ return "uikit-rounded " + (f.value && "uikit-rounded-b-none");
2930
+ case "all-bordered-thick":
2931
+ return "uikit-rounded-xl !uikit-h-[60px] " + (f.value && "uikit-rounded-b-none");
2932
+ default:
2933
+ return "";
2934
+ }
2935
+ }), P = W(() => {
2936
+ switch (i.theme) {
2937
+ case "bordered":
2938
+ return "";
2939
+ case "all-bordered":
2940
+ return "uikit-border uikit-border-w-lavender uikit-border-solid uikit-rounded " + (f.value ? "uikit-border-b-0 uikit-rounded-b-none" : "");
2941
+ case "all-bordered-thick":
2942
+ return "uikit-rounded-xl !uikit-h-[60px]" + (f.value && "uikit-rounded-b-none");
2943
+ default:
2944
+ return "";
2945
+ }
2946
+ }), Q = W(() => {
2947
+ let h = "uikit-rounded-b-xl uikit-shadow uikit-rounded-t-none uikit-mb-0 !uikit-mt-0 uikit-text-w-black !uikit-rounded-b-xl !uikit-rounded-t-none";
2948
+ switch (i.theme) {
2949
+ case "bordered":
2950
+ return "before:uikit-content-[''] before:uikit-absolute before:uikit-w-1/2 before:uikit-border-b before:uikit-border-b-w-lavender before:[border-bottom-style:solid] before:uikit-right-1/4 uikit-rounded-b-xl uikit-shadow uikit-rounded-t-none uikit-mt-5px uikit-mb-0";
2951
+ case "all-bordered":
2952
+ return h;
2953
+ case "all-bordered-thick":
2954
+ return h;
2955
+ default:
2956
+ return "";
2957
+ }
2958
+ }), oe = async (h) => {
2959
+ if (s.value !== h && (r("changedValue", h), s.value = h, !!i.onInputChangeCb)) {
2960
+ if (a.value && !h && (a.value.label = "", f.value = !1), !h || m.value) {
2961
+ o.value = [], m.value = !1, k.value = -1, p.value = -1, await d.value(null);
2962
+ return;
2963
+ }
2964
+ i.disableCb || (o.value = await d.value(h), o.value.length && (f.value = !0));
2965
+ }
2966
+ }, se = (h, V) => {
2967
+ i.onOptionSelectedCb && i.onOptionSelectedCb(h), m.value = !0, s.value = h.label, a.value = h, f.value = !1, k.value = V;
2968
+ }, w = () => {
2969
+ o.value.length && i.keepState !== "closed" && (f.value = !0);
2970
+ };
2971
+ return ie(a, (h, V) => {
2972
+ h !== V && (s.value = (h == null ? void 0 : h.label) || "");
2973
+ }), ie(k, (h) => {
2974
+ var M;
2975
+ if (h === -1)
2976
+ return;
2977
+ const V = o.value[h];
2978
+ m.value && V.label === ((M = a.value) == null ? void 0 : M.label) || se(V, h);
2979
+ }), ie(
2980
+ () => i.manualClose,
2981
+ (h) => {
2982
+ h && (m.value && (o.value = []), r("dropdownClosed"));
2983
+ }
2984
+ ), t({
2985
+ select: () => {
2986
+ var h;
2987
+ (h = l.value) == null || h.select();
2988
+ }
2989
+ }), (h, V) => (b(), J(la, {
2990
+ class: v(h.$attrs["root-classes"]),
2991
+ "data-cy": `ac_${h.$attrs.id}`,
2992
+ "dropdown-element": "ul",
2993
+ "dropdown-classes": [
2994
+ { "bordered-dropdown": h.theme === "bordered" },
2995
+ { "all-bordered-dropdown": h.theme === "all-bordered" },
2996
+ { "all-bordered-dropdown thick": h.theme === "all-bordered-thick" },
2997
+ {
2998
+ "uikit-mt-10px !uikit-border !uikit-border-w-secondary !uikit-rounded-xs": !h.theme
2999
+ },
3000
+ Q.value,
3001
+ "!uikit-max-h-[210px] uikit-z-10",
3002
+ h.$attrs["dropdown-classes"]
3003
+ ],
3004
+ "open-dropdown": f.value,
3005
+ "keep-state": o.value.length ? "" : "closed",
3006
+ "onUpdate:dropdownState": V[0] || (V[0] = (M) => f.value = M),
3007
+ onClick: V[1] || (V[1] = (M) => {
3008
+ r("click"), w();
3009
+ })
3010
+ }, {
3011
+ btn_slot: _(() => {
3012
+ var M;
3013
+ return [
3014
+ K(bi, {
3015
+ id: `ac_input_${h.$attrs.id}`,
3016
+ ref_key: "baseInput",
3017
+ ref: l,
3018
+ "data-cy": `ac_input_${h.$attrs.id}`,
3019
+ "label-text": h.label,
3020
+ "model-value": ((M = a.value) == null ? void 0 : M.label) || "",
3021
+ "is-valid": h.isValid,
3022
+ disabled: h.$attrs.disabled,
3023
+ placeholder: h.$attrs.placeholder,
3024
+ "with-left-icon": !!h.$slots.lefticon,
3025
+ "with-right-icon": !!h.$slots.righticon,
3026
+ border: !h.theme,
3027
+ radius: !h.theme || h.theme === "bordered",
3028
+ "input-class": [I.value, h.$attrs["input-classes"]],
3029
+ "fieldset-classes": [P.value, h.$attrs["fieldset-classes"]],
3030
+ "keep-floating-label": !!s.value,
3031
+ "onUpdate:modelValue": oe
3032
+ }, {
3033
+ leftIcon: _(() => [
3034
+ S(h.$slots, "lefticon")
3035
+ ]),
3036
+ righticon: _(({ handleClean: X }) => [
3037
+ S(h.$slots, "righticon", { handleClean: X })
3038
+ ]),
3039
+ _: 3
3040
+ }, 8, ["id", "data-cy", "label-text", "model-value", "is-valid", "disabled", "placeholder", "with-left-icon", "with-right-icon", "border", "radius", "input-class", "fieldset-classes", "keep-floating-label"])
3041
+ ];
3042
+ }),
3043
+ default: _(() => [
3044
+ (b(!0), g(q, null, ee(o.value, (M, X) => (b(), J(Fi, {
3045
+ key: X,
3046
+ active: x(p) === X,
3047
+ class: "uikit-m-1 uikit-rounded-[5px] uikit-px-5 uikit-py-10px hover:uikit-cursor-pointer",
3048
+ onClick: (le) => se(M, X),
3049
+ onMouseover: (le) => p.value = X
3050
+ }, {
3051
+ default: _(() => [
3052
+ $("span", {
3053
+ innerHTML: M.label
3054
+ }, null, 8, ua)
3055
+ ]),
3056
+ _: 2
3057
+ }, 1032, ["active", "onClick", "onMouseover"]))), 128))
3058
+ ]),
3059
+ _: 3
3060
+ }, 8, ["class", "data-cy", "dropdown-classes", "open-dropdown", "keep-state"]));
3061
+ }
3062
+ }), da = ["id"], ca = /* @__PURE__ */ L({
3063
+ inheritAttrs: !1,
3064
+ __name: "BaseBadge",
3065
+ props: {
3066
+ badgeClass: { default: "uikit-badge-w-primary-sm" }
3067
+ },
3068
+ setup(e) {
3069
+ return (t, n) => (b(), g("span", {
3070
+ id: t.$attrs.id,
3071
+ class: v(["uikit-badge uikit-shadow-sm", t.badgeClass, t.$attrs.class])
3072
+ }, [
3073
+ S(t.$slots, "default", {}, void 0, !0)
3074
+ ], 10, da));
3075
+ }
3076
+ }), Dr = /* @__PURE__ */ D(ca, [["__scopeId", "data-v-76913a36"]]), pa = /* @__PURE__ */ L({
3077
+ inheritAttrs: !1,
3078
+ __name: "BaseCard",
3079
+ props: {
3080
+ type: { default: "" }
3081
+ },
3082
+ emits: ["click"],
3083
+ setup(e, { emit: t }) {
3084
+ const n = t, i = e, a = W(
3085
+ () => i.type === "news" ? "news-card" : i.type
3086
+ ), r = W(() => i.type ? `${i.type}-img` : "");
3087
+ return (s, o) => (b(), g("div", {
3088
+ class: v(["card", [a.value, s.$attrs.class]]),
3089
+ onClick: o[0] || (o[0] = (d) => n("click"))
3090
+ }, [
3091
+ $("div", {
3092
+ class: v(["card-img", [r.value, s.$attrs["card-img-classes"]]])
3093
+ }, [
3094
+ S(s.$slots, "card-image", {}, void 0, !0)
3095
+ ], 2),
3096
+ $("div", {
3097
+ class: v(["card-body", [s.$attrs["card-body-classes"]]])
3098
+ }, [
3099
+ S(s.$slots, "card-description", {}, void 0, !0)
3100
+ ], 2)
3101
+ ], 2));
3102
+ }
3103
+ }), zr = /* @__PURE__ */ D(pa, [["__scopeId", "data-v-14528c55"]]), fa = L({
3104
+ name: "BaseComplexToggle",
3105
+ props: {
3106
+ labels: {
3107
+ type: Object,
3108
+ required: !0
3109
+ },
3110
+ modelValue: { type: String, default: "" },
3111
+ type: { type: String, default: "full" },
3112
+ mode: { type: String, default: "" },
3113
+ btnBgColor: {
3114
+ type: String,
3115
+ default: "uikit-bg-w-lavender-bordered"
3116
+ },
3117
+ borderContainerColor: {
3118
+ type: String || "uikit-border-w-secondary",
3119
+ default: "uikit-border-w-secondary"
3120
+ }
3121
+ },
3122
+ emits: ["update:modelValue"],
3123
+ data() {
3124
+ return {
3125
+ texActiveToggleColor: "uikit-text-white"
3126
+ };
3127
+ },
3128
+ computed: {
3129
+ leftBtn() {
3130
+ return this.$refs.leftBtn;
3131
+ },
3132
+ rightBtn() {
3133
+ return this.$refs.rightBtn;
3134
+ },
3135
+ dynamicBg() {
3136
+ return this.$refs.dynamicBg;
3137
+ }
3138
+ },
3139
+ created() {
3140
+ [
3141
+ "uikit-bg-w-cultured-bordered",
3142
+ "uikit-bg-w-gray",
3143
+ "uikit-bg-w-warning",
3144
+ "uikit-bg-w-lavender-bordered"
3145
+ ].includes(this.btnBgColor) && (this.texActiveToggleColor = "uikit-text-w-black");
3146
+ },
3147
+ mounted() {
3148
+ this.btnBgColor && (this.labels.leftToggle.checked ? (this.moveDynamicBgToLeft(), this.emitLeftLabel()) : this.labels.rightToggle.checked && (this.moveDynamicBgToRight(), this.emitRightLabel()));
3149
+ },
3150
+ methods: {
3151
+ handleToggle(e) {
3152
+ !this.leftBtn || !this.rightBtn || (e === "left-btn" ? (this.moveDynamicBgToLeft(), this.$emit("update:modelValue", this.labels.leftToggle.label)) : (this.moveDynamicBgToRight(), this.$emit("update:modelValue", this.labels.rightToggle.label)));
3153
+ },
3154
+ moveDynamicBgToLeft() {
3155
+ var e, t, n, i;
3156
+ (e = this.dynamicBg) == null || e.classList.remove("translateX-right"), (t = this.dynamicBg) == null || t.classList.add("translateX-left"), (n = this.leftBtn) == null || n.classList.add(
3157
+ "base-complex-toggle-active",
3158
+ this.texActiveToggleColor
3159
+ ), (i = this.rightBtn) == null || i.classList.remove(
3160
+ "base-complex-toggle-active",
3161
+ this.texActiveToggleColor
3162
+ );
3163
+ },
3164
+ moveDynamicBgToRight() {
3165
+ var e, t, n, i;
3166
+ (e = this.dynamicBg) == null || e.classList.remove("translateX-left"), (t = this.dynamicBg) == null || t.classList.add("translateX-right"), (n = this.rightBtn) == null || n.classList.add(
3167
+ "base-complex-toggle-active",
3168
+ this.texActiveToggleColor
3169
+ ), (i = this.leftBtn) == null || i.classList.remove(
3170
+ "base-complex-toggle-active",
3171
+ this.texActiveToggleColor
3172
+ );
3173
+ },
3174
+ emitLeftLabel() {
3175
+ this.$emit("update:modelValue", this.labels.leftToggle.label);
3176
+ },
3177
+ emitRightLabel() {
3178
+ this.$emit("update:modelValue", this.labels.rightToggle.label);
3179
+ }
3180
+ }
3181
+ }), ma = ["id", "data-cy"], ha = ["data-cy"], ba = ["src", "alt"], ka = ["innerHTML"], ga = ["data-cy"], va = ["src", "alt"], ya = ["innerHTML"];
3182
+ function wa(e, t, n, i, a, r) {
3183
+ return b(), g("div", {
3184
+ id: e.$attrs.id || "",
3185
+ "data-cy": e.$attrs["data-cy"] || "",
3186
+ class: v(["base-complex-toggle uikit-relative uikit-flex uikit-justify-center uikit-p-0", [e.mode, e.borderContainerColor]])
3187
+ }, [
3188
+ $("div", {
3189
+ ref: "leftBtn",
3190
+ "data-cy": `bct-left-btn${e.labels.leftToggle.label ? `-${e.labels.leftToggle.label}` : ""}`,
3191
+ class: "left-button uikit-flex uikit-flex-1 uikit-items-center uikit-justify-center hover:uikit-cursor-pointer",
3192
+ onClick: t[0] || (t[0] = B((s) => e.handleToggle("left-btn"), ["stop"]))
3193
+ }, [
3194
+ e.labels.leftToggle.icon ? (b(), g("img", {
3195
+ key: 0,
3196
+ class: "base-complex-toggle-icon uikit-relative uikit-z-10 uikit-mr-10px",
3197
+ src: e.labels.leftToggle.icon.src,
3198
+ alt: e.labels.leftToggle.icon.alt,
3199
+ width: "15",
3200
+ height: "15"
3201
+ }, null, 8, ba)) : T("", !0),
3202
+ $("span", {
3203
+ ref: "leftToggleLabel",
3204
+ class: "base-complex-toggle-label uikit-relative uikit-z-10",
3205
+ innerHTML: e.labels.leftToggle.label
3206
+ }, null, 8, ka)
3207
+ ], 8, ha),
3208
+ $("div", {
3209
+ ref: "rightBtn",
3210
+ "data-cy": `bct-right-btn${e.labels.rightToggle.label ? `-${e.labels.rightToggle.label}` : ""}`,
3211
+ class: "right-button uikit-flex uikit-flex-1 uikit-items-center uikit-justify-center hover:uikit-cursor-pointer",
3212
+ onClick: t[1] || (t[1] = B((s) => e.handleToggle("right-btn"), ["stop"]))
3213
+ }, [
3214
+ e.labels.rightToggle.icon ? (b(), g("img", {
3215
+ key: 0,
3216
+ class: "base-complex-toggle-icon uikit-relative uikit-z-10 uikit-mr-10px",
3217
+ src: e.labels.rightToggle.icon.src,
3218
+ alt: e.labels.rightToggle.icon.alt,
3219
+ width: "15",
3220
+ height: "15"
3221
+ }, null, 8, va)) : T("", !0),
3222
+ $("span", {
3223
+ ref: "rightToggleLabel",
3224
+ class: "base-complex-toggle-label uikit-relative uikit-z-10",
3225
+ innerHTML: e.labels.rightToggle.label
3226
+ }, null, 8, ya)
3227
+ ], 8, ga),
3228
+ $("div", {
3229
+ ref: "dynamicBg",
3230
+ class: v(["uikit-absolute uikit-transition-all uikit-duration-200 uikit-ease-out", [
3231
+ e.type === "full" ? "base-complex-toggle-active-bg" : "base-complex-toggle-active-padded-bg",
3232
+ e.btnBgColor,
3233
+ e.mode
3234
+ ]])
3235
+ }, null, 2)
3236
+ ], 10, ma);
3237
+ }
3238
+ const Nr = /* @__PURE__ */ D(fa, [["render", wa], ["__scopeId", "data-v-33d27f1d"]]), $a = L({
3239
+ name: "BaseNavItem",
3240
+ components: { BaseIcon: bt },
3241
+ props: {
3242
+ text: {
3243
+ type: String
3244
+ },
3245
+ iconName: {
3246
+ type: String
3247
+ },
3248
+ iconClass: {
3249
+ type: String,
3250
+ default: "uikit-mr-5px"
3251
+ },
3252
+ navItemCustomClass: {
3253
+ type: String
3254
+ },
3255
+ isActive: {
3256
+ type: Boolean,
3257
+ default: !1
3258
+ }
3259
+ },
3260
+ emits: ["click"],
3261
+ watch: {
3262
+ isActive(e) {
3263
+ const t = this.$refs["base-nav-item"];
3264
+ e ? t.classList.add("active") : t.classList.remove("active");
3265
+ }
3266
+ }
3267
+ }), Ca = ["id"];
3268
+ function Ea(e, t, n, i, a, r) {
3269
+ const s = ce("base-icon");
3270
+ return b(), g("li", {
3271
+ id: `${e.$attrs.id}`,
3272
+ class: v(["uikit-group/tabs uikit-relative uikit-flex uikit-cursor-pointer uikit-items-center uikit-pb-5px disabled:uikit-border-transparent disabled:uikit-bg-transparent disabled:uikit-text-gray-600", [e.navItemCustomClass]]),
3273
+ onClick: t[0] || (t[0] = (o) => e.$emit("click", o))
3274
+ }, [
3275
+ e.iconName ? (b(), J(s, {
3276
+ key: 0,
3277
+ "alt-attribute": "icon",
3278
+ "icon-name": e.iconName,
3279
+ "icon-class": e.iconClass
3280
+ }, null, 8, ["icon-name", "icon-class"])) : T("", !0),
3281
+ S(e.$slots, "default", {}, () => [
3282
+ $("a", {
3283
+ ref: "base-nav-item",
3284
+ class: "after:uikit-absolute after:uikit-bottom-0 after:uikit-left-0 after:uikit-w-full after:uikit-content-[''] group-hover/tabs:after:uikit-border-b-2 group-hover/tabs:after:uikit-border-b-w-primary group-hover/tabs:after:[border-bottom-style:solid]"
3285
+ }, de(e.text), 513)
3286
+ ], !0)
3287
+ ], 10, Ca);
3288
+ }
3289
+ const Sa = /* @__PURE__ */ D($a, [["render", Ea], ["__scopeId", "data-v-4e340740"]]), Ta = L({
3290
+ name: "BasePagination",
3291
+ components: { BaseIcon: bt },
3292
+ props: {
3293
+ offset: {
3294
+ type: Number,
3295
+ default: 0
3296
+ },
3297
+ count: {
3298
+ type: Number,
3299
+ default: 0
3300
+ },
3301
+ limit: {
3302
+ type: Number,
3303
+ default: 25
3304
+ },
3305
+ siblings: {
3306
+ type: Number,
3307
+ default: 3
3308
+ },
3309
+ additionalCount: {
3310
+ type: Number,
3311
+ default: 0
3312
+ }
3313
+ },
3314
+ emits: ["new-pagination-offset"],
3315
+ data() {
3316
+ return {
3317
+ activeHoverOnLeftIcon: !1,
3318
+ activeHoverOnRightIcon: !1
3319
+ };
3320
+ },
3321
+ methods: {
3322
+ handleHoverIcon(e, t) {
3323
+ e ? t === "LeftArrow" ? this.activeHoverOnLeftIcon = !0 : this.activeHoverOnRightIcon = !0 : (this.activeHoverOnLeftIcon = !1, this.activeHoverOnRightIcon = !1);
3324
+ },
3325
+ getPages() {
3326
+ return Math.ceil((this.count + this.additionalCount) / this.limit);
3327
+ },
3328
+ getFormattedPages() {
3329
+ return zt(
3330
+ Math.ceil((this.count + this.additionalCount) / this.limit)
3331
+ );
3332
+ },
3333
+ getCurrentPage() {
3334
+ return Math.round(this.offset / this.limit) + 1;
3335
+ },
3336
+ getPreviousPages() {
3337
+ const e = Math.max(2, this.getCurrentPage() - this.siblings);
3338
+ let t = [];
3339
+ for (let n = e; n < this.getCurrentPage(); n++)
3340
+ t.push(n);
3341
+ return t;
3342
+ },
3343
+ getNextPages() {
3344
+ const e = Math.min(
3345
+ this.getPages() - 1,
3346
+ this.getCurrentPage() + this.siblings
3347
+ );
3348
+ let t = [];
3349
+ for (let n = this.getCurrentPage() + 1; n <= e; n++)
3350
+ t.push(n);
3351
+ return t;
3352
+ },
3353
+ formatInteger(e) {
3354
+ return zt(e);
3355
+ },
3356
+ selectPage(e) {
3357
+ this.$emit(
3358
+ "new-pagination-offset",
3359
+ Math.round((e - 1) * this.limit - this.additionalCount)
3360
+ );
3361
+ },
3362
+ getCount() {
3363
+ return this.count;
3364
+ }
3365
+ }
3366
+ }), Oa = { "aria-label": "Page navigation" }, La = {
3367
+ key: 0,
3368
+ class: "uikit-text-14 uikit-flex uikit-list-none uikit-content-center uikit-gap-4 uikit-pl-0 uikit-font-semibold sm:uikit-gap-5"
3369
+ }, Va = {
3370
+ key: 2,
3371
+ class: "font-weight-bold uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-cursor-pointer uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px hover:uikit-bg-w-primary hover:uikit-text-white"
3372
+ }, Ba = ["onClick"], Aa = { class: "selected uikit-pointer-events-none uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-items-center uikit-justify-center uikit-rounded-circle uikit-bg-w-primary uikit-p-5px uikit-text-white hover:uikit-bg-w-primary hover:uikit-text-white" }, Ia = ["onClick"], Pa = {
3373
+ key: 3,
3374
+ class: "uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-cursor-pointer uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px hover:uikit-bg-w-primary hover:uikit-text-white"
3375
+ };
3376
+ function Ma(e, t, n, i, a, r) {
3377
+ const s = ce("baseIcon");
3378
+ return b(), g("nav", Oa, [
3379
+ e.getCount() > 0 ? (b(), g("ul", La, [
3380
+ e.getCurrentPage() > 1 ? (b(), g("li", {
3381
+ key: 0,
3382
+ class: "arrow-button prev-page uikit-h-30x uikit-flex uikit-min-w-[30px] uikit-cursor-pointer uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px hover:uikit-bg-w-primary md:uikit-mr-5 [&_>_img]:hover:uikit-brightness-0 [&_>_img]:hover:uikit-invert",
3383
+ onClick: t[0] || (t[0] = (o) => e.selectPage(e.getCurrentPage() - 1)),
3384
+ onMouseover: t[1] || (t[1] = (o) => e.handleHoverIcon(!0, "LeftArrow")),
3385
+ onMouseout: t[2] || (t[2] = (o) => e.handleHoverIcon(!1, "LeftArrow"))
3386
+ }, [
3387
+ K(s, {
3388
+ "icon-name": "arrow-sx-blue.svg",
3389
+ "alt-attribute": "icona pagina successiva",
3390
+ "icon-class": "uikit-mr-0"
3391
+ })
3392
+ ], 32)) : T("", !0),
3393
+ e.getCurrentPage() > 1 ? (b(), g("li", {
3394
+ key: 1,
3395
+ class: "page uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-cursor-pointer uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px hover:uikit-bg-w-primary hover:uikit-text-white",
3396
+ onClick: t[3] || (t[3] = (o) => e.selectPage(1))
3397
+ }, " 1 ")) : T("", !0),
3398
+ e.getCurrentPage() > e.siblings + 2 ? (b(), g("li", Va, " ... ")) : T("", !0),
3399
+ (b(!0), g(q, null, ee(e.getPreviousPages(), (o) => (b(), g("li", {
3400
+ key: o,
3401
+ class: "uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-cursor-pointer uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px hover:uikit-bg-w-primary hover:uikit-text-white",
3402
+ onClick: (d) => e.selectPage(o)
3403
+ }, de(e.formatInteger(o)), 9, Ba))), 128)),
3404
+ $("li", Aa, de(e.getCurrentPage()), 1),
3405
+ (b(!0), g(q, null, ee(e.getNextPages(), (o) => (b(), g("li", {
3406
+ key: o,
3407
+ class: "uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-cursor-pointer uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px hover:uikit-bg-w-primary hover:uikit-text-white",
3408
+ onClick: (d) => e.selectPage(o)
3409
+ }, de(e.formatInteger(o)), 9, Ia))), 128)),
3410
+ e.getCurrentPage() < e.getPages() - e.siblings - 1 ? (b(), g("li", Pa, " ... ")) : T("", !0),
3411
+ e.getCurrentPage() < e.getPages() ? (b(), g("li", {
3412
+ key: 4,
3413
+ class: "uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-cursor-pointer uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px hover:uikit-bg-w-primary hover:uikit-text-white",
3414
+ onClick: t[4] || (t[4] = (o) => e.selectPage(e.getPages()))
3415
+ }, de(e.getFormattedPages()), 1)) : T("", !0),
3416
+ e.getCurrentPage() < e.getPages() ? (b(), g("li", {
3417
+ key: 5,
3418
+ class: "arrow-button next-page uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-cursor-pointer uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px hover:uikit-bg-w-primary md:uikit-ml-5 [&_>_img]:hover:uikit-brightness-0 [&_>_img]:hover:uikit-invert",
3419
+ onClick: t[5] || (t[5] = (o) => e.selectPage(e.getCurrentPage() + 1)),
3420
+ onMouseover: t[6] || (t[6] = (o) => e.handleHoverIcon(!0, "RightArrow")),
3421
+ onMouseout: t[7] || (t[7] = (o) => e.handleHoverIcon(!1, "RightArrow"))
3422
+ }, [
3423
+ K(s, {
3424
+ "icon-name": "arrow-dx-blue.svg",
3425
+ "alt-attribute": "icona pagina successiva",
3426
+ "icon-class": "uikit-mr-0"
3427
+ })
3428
+ ], 32)) : T("", !0)
3429
+ ])) : T("", !0)
3430
+ ]);
3431
+ }
3432
+ const Hr = /* @__PURE__ */ D(Ta, [["render", Ma]]), Ra = L({
3433
+ name: "BasePaper"
3434
+ }), ja = { class: "base-paper" };
3435
+ function Fa(e, t, n, i, a, r) {
3436
+ return b(), g("div", ja, [
3437
+ S(e.$slots, "content", {}, void 0, !0)
3438
+ ]);
3439
+ }
3440
+ const Ur = /* @__PURE__ */ D(Ra, [["render", Fa], ["__scopeId", "data-v-7f4a78ca"]]);
3441
+ function Nt(e, t) {
3442
+ const n = parseInt(e.value, 10), i = parseInt(t.value, 10);
3443
+ return [n, i];
3444
+ }
3445
+ const Da = (e) => e.minPos + (Math.log(e.value) - e.minlval) / e.scale, za = (e) => Math.exp(
3446
+ (e.position - e.minPos) * e.scale + e.minlval
3447
+ );
3448
+ function Ce(e, t, n, i, a) {
3449
+ const r = t.max - t.min, s = e - t.min, o = t.value - t.min;
3450
+ a.style.background = `linear-gradient(
3451
+ to right,
3452
+ ${n} 0%,
3453
+ ${n} ${s / r * 100}%,
3454
+ ${i} ${s / r * 100}%,
3455
+ ${i} ${o / r * 100}%,
3456
+ ${n} ${o / r * 100}%,
3457
+ ${n} 100%)`;
3458
+ }
3459
+ function tt(e, t) {
3460
+ e <= 0 ? t.style.zIndex = "2" : t.style.zIndex = "0";
3461
+ }
3462
+ const Na = L({
3463
+ name: "BaseSlider",
3464
+ components: { BaseInput: bi },
3465
+ props: {
3466
+ type: {
3467
+ type: String,
3468
+ default: "linear"
3469
+ }
3470
+ },
3471
+ emits: ["minChanged", "maxChanged"],
3472
+ data() {
3473
+ return {
3474
+ leftSliderLimit: 0,
3475
+ rightSliderLimit: 100,
3476
+ minValue: 0,
3477
+ maxValue: 0,
3478
+ sliderMinValue: 10,
3479
+ sliderMaxValue: 40,
3480
+ /* Logaritmic values */
3481
+ minlval: 0,
3482
+ maxlval: 0,
3483
+ scale: 0
3484
+ };
3485
+ },
3486
+ computed: {
3487
+ fromSlider() {
3488
+ return this.$refs.fromSlider;
3489
+ },
3490
+ toSlider() {
3491
+ return this.$refs.toSlider;
3492
+ },
3493
+ fromInput() {
3494
+ return this.$refs.fromInput;
3495
+ },
3496
+ toInput() {
3497
+ return this.$refs.toInput;
3498
+ }
3499
+ },
3500
+ watch: {
3501
+ minValue(e) {
3502
+ this.$emit("minChanged", e);
3503
+ },
3504
+ maxValue(e) {
3505
+ this.$emit("maxChanged", e);
3506
+ }
3507
+ },
3508
+ created() {
3509
+ this.leftSliderLimit = parseInt(`${this.$attrs.min || 0}`, 10), this.rightSliderLimit = parseInt(`${this.$attrs.max || 100}`, 10), this.sliderMinValue = this.leftSliderLimit, this.sliderMaxValue = this.rightSliderLimit, this.minValue = parseInt(
3510
+ `${this.$attrs.minValue || this.leftSliderLimit}`,
3511
+ 10
3512
+ ), this.maxValue = parseInt(
3513
+ `${this.$attrs.maxValue || this.rightSliderLimit}`,
3514
+ 10
3515
+ ), this.minlval = Math.log(this.minValue || 1), this.maxlval = Math.log(this.maxValue), this.scale = (this.maxlval - this.minlval) / (this.rightSliderLimit - this.leftSliderLimit);
3516
+ },
3517
+ mounted() {
3518
+ !this.fromSlider || !this.toSlider || (Ce(
3519
+ this.sliderMinValue,
3520
+ {
3521
+ min: this.leftSliderLimit,
3522
+ max: this.rightSliderLimit,
3523
+ value: this.sliderMaxValue
3524
+ },
3525
+ "#B4C2F0",
3526
+ "#2B5DFF",
3527
+ this.toSlider
3528
+ ), tt(this.sliderMaxValue, this.toSlider));
3529
+ },
3530
+ methods: {
3531
+ handleInputChange(e, t) {
3532
+ if (!this.fromSlider || !this.toSlider)
3533
+ return;
3534
+ t || (t = "0");
3535
+ const n = parseInt(t, 10);
3536
+ if (e == "min-input") {
3537
+ if (n >= this.maxValue)
3538
+ return;
3539
+ this.minValue = n, this.controlFromInput(this.toSlider);
3540
+ return;
3541
+ }
3542
+ n < this.minValue || (this.maxValue = n, this.controlToInput(this.toSlider, this.toSlider));
3543
+ },
3544
+ getCurrentPosition(e) {
3545
+ if (this.type === "logarithmic")
3546
+ return e = e || 1, parseInt(
3547
+ Da({
3548
+ value: e,
3549
+ minPos: this.leftSliderLimit,
3550
+ minlval: this.minlval,
3551
+ scale: this.scale
3552
+ }).toFixed(0),
3553
+ 10
3554
+ );
3555
+ if (this.type === "linear")
3556
+ return e;
3557
+ throw new Error("The slider type has not been implemented");
3558
+ },
3559
+ getCurrentValue(e) {
3560
+ if (this.type === "logarithmic")
3561
+ return e = e || 1, parseInt(
3562
+ za({
3563
+ position: e,
3564
+ scale: this.scale,
3565
+ minlval: this.minlval,
3566
+ minPos: this.leftSliderLimit
3567
+ }).toFixed(0),
3568
+ 10
3569
+ );
3570
+ if (this.type === "linear")
3571
+ return e;
3572
+ throw new Error("The slider type has not been implemented");
3573
+ },
3574
+ controlFromInput(e) {
3575
+ const t = this.getCurrentPosition(this.minValue), n = this.getCurrentPosition(this.maxValue);
3576
+ Ce(
3577
+ t,
3578
+ {
3579
+ min: this.leftSliderLimit,
3580
+ max: this.rightSliderLimit,
3581
+ value: n
3582
+ },
3583
+ "#B4C2F0",
3584
+ "#2B5DFF",
3585
+ e
3586
+ );
3587
+ const i = t, a = this.maxValue;
3588
+ i > a ? this.sliderMinValue = a : this.sliderMinValue = i;
3589
+ },
3590
+ controlToInput(e, t) {
3591
+ const n = this.getCurrentPosition(this.minValue), i = this.getCurrentPosition(this.maxValue);
3592
+ Ce(
3593
+ n,
3594
+ {
3595
+ min: this.leftSliderLimit,
3596
+ max: this.rightSliderLimit,
3597
+ value: i
3598
+ },
3599
+ "#B4C2F0",
3600
+ "#2B5DFF",
3601
+ t
3602
+ );
3603
+ const a = this.minValue, r = i;
3604
+ tt(this.maxValue, e), a <= r ? this.sliderMaxValue = r : this.sliderMaxValue = a;
3605
+ },
3606
+ controlFromSlider(e, t) {
3607
+ if (!this.toSlider)
3608
+ return;
3609
+ const [n, i] = Nt(e, t), a = this.getCurrentValue(n);
3610
+ Ce(
3611
+ n,
3612
+ {
3613
+ min: this.leftSliderLimit,
3614
+ max: this.rightSliderLimit,
3615
+ value: i
3616
+ },
3617
+ "#B4C2F0",
3618
+ "#2B5DFF",
3619
+ t
3620
+ ), n > i ? (e.value = `${i}`, this.sliderMinValue = i, this.minValue = i) : (this.sliderMinValue = n, this.minValue = a);
3621
+ },
3622
+ controlToSlider(e, t) {
3623
+ if (!this.toSlider)
3624
+ return;
3625
+ const [n, i] = Nt(e, t), a = this.getCurrentValue(i);
3626
+ Ce(
3627
+ this.sliderMinValue,
3628
+ {
3629
+ min: this.leftSliderLimit,
3630
+ max: this.rightSliderLimit,
3631
+ value: i
3632
+ },
3633
+ "#B4C2F0",
3634
+ "#2B5DFF",
3635
+ t
3636
+ ), tt(parseInt(this.toSlider.value, 10), t), n <= i ? (this.sliderMaxValue = i, this.maxValue = a) : (t.value = `${n}`, this.sliderMaxValue = n, this.maxValue = n);
3637
+ }
3638
+ }
3639
+ }), Ha = { class: "range_container" }, Ua = { class: "sliders_control" }, Wa = ["value", "min", "max", "step"], Xa = ["value", "min", "max", "step"], Ya = { class: "form_control row" }, xa = { class: "pb-15 pb-sm-0 col-sm-6 col-xl-4" }, qa = { class: "col-sm-6 col-xl-4" };
3640
+ function Ka(e, t, n, i, a, r) {
3641
+ const s = ce("base-input");
3642
+ return b(), g("div", Ha, [
3643
+ $("div", Ua, [
3644
+ $("input", {
3645
+ ref: "fromSlider",
3646
+ class: "fromSlider",
3647
+ type: "range",
3648
+ value: e.sliderMinValue,
3649
+ min: e.leftSliderLimit,
3650
+ max: e.rightSliderLimit,
3651
+ step: e.$attrs.step,
3652
+ onInput: t[0] || (t[0] = B((o) => e.controlFromSlider(
3653
+ e.fromSlider,
3654
+ e.toSlider
3655
+ ), ["stop"]))
3656
+ }, null, 40, Wa),
3657
+ $("input", {
3658
+ ref: "toSlider",
3659
+ class: "toSlider",
3660
+ type: "range",
3661
+ value: e.sliderMaxValue,
3662
+ min: e.leftSliderLimit,
3663
+ max: e.rightSliderLimit,
3664
+ step: e.$attrs.step,
3665
+ onInput: t[1] || (t[1] = B((o) => e.controlToSlider(
3666
+ e.fromSlider,
3667
+ e.toSlider
3668
+ ), ["stop"]))
3669
+ }, null, 40, Xa)
3670
+ ]),
3671
+ $("div", Ya, [
3672
+ $("div", xa, [
3673
+ K(s, {
3674
+ "label-text": "Min",
3675
+ type: "text",
3676
+ pattern: "[0-9]*",
3677
+ inputmode: "numeric",
3678
+ "model-value": e.minValue,
3679
+ "onUpdate:modelValue": t[2] || (t[2] = (o) => e.handleInputChange("min-input", o))
3680
+ }, null, 8, ["model-value"])
3681
+ ]),
3682
+ $("div", qa, [
3683
+ K(s, {
3684
+ "label-text": "Max",
3685
+ type: "text",
3686
+ pattern: "[0-9]*",
3687
+ inputmode: "numeric",
3688
+ "model-value": e.maxValue,
3689
+ "onUpdate:modelValue": t[3] || (t[3] = (o) => e.handleInputChange("max-input", o))
3690
+ }, null, 8, ["model-value"])
3691
+ ])
3692
+ ])
3693
+ ]);
3694
+ }
3695
+ const Wr = /* @__PURE__ */ D(Na, [["render", Ka], ["__scopeId", "data-v-66326ce0"]]), Ga = L({
3696
+ name: "BaseTab",
3697
+ components: { BaseNavItem: Sa },
3698
+ props: {
3699
+ navTabsCustomClass: {
3700
+ type: String
3701
+ },
3702
+ firstLabel: {
3703
+ type: String,
3704
+ default: "Tab1"
3705
+ },
3706
+ firstIconName: {
3707
+ type: String
3708
+ },
3709
+ secondLabel: {
3710
+ type: String,
3711
+ default: "Tab2"
3712
+ },
3713
+ secondIconName: {
3714
+ type: String
3715
+ },
3716
+ tabs: {
3717
+ type: Array
3718
+ }
3719
+ },
3720
+ emits: ["clickedTab"],
3721
+ data() {
3722
+ return {
3723
+ selectedId: ""
3724
+ };
3725
+ },
3726
+ methods: {
3727
+ handleClick(e) {
3728
+ this.clickTab(e), this.$emit("clickedTab", e);
3729
+ },
3730
+ clickTab(e) {
3731
+ this.selectedId = e;
3732
+ }
3733
+ }
3734
+ });
3735
+ function Ja(e, t, n, i, a, r) {
3736
+ const s = ce("base-nav-item");
3737
+ return b(), g("ul", {
3738
+ class: v(["uikit-inline-flex uikit-flex-wrap uikit-gap-5", [e.navTabsCustomClass]])
3739
+ }, [
3740
+ e.tabs ? (b(!0), g(q, { key: 1 }, ee(e.tabs, (o, d) => (b(), J(s, {
3741
+ id: o.id + "_" + d,
3742
+ key: d,
3743
+ text: o.label,
3744
+ "is-active": e.selectedId === o.id + "_" + d,
3745
+ "icon-name": o.iconName,
3746
+ onClick: (m) => e.handleClick(`${o.id + "_" + d}`)
3747
+ }, null, 8, ["id", "text", "is-active", "icon-name", "onClick"]))), 128)) : S(e.$slots, "custom", { key: 0 }, () => [
3748
+ K(s, {
3749
+ id: "tab1",
3750
+ "is-active": e.selectedId === "tab1",
3751
+ "icon-name": e.firstIconName,
3752
+ text: e.firstLabel,
3753
+ onClick: t[0] || (t[0] = (o) => e.handleClick("tab1"))
3754
+ }, null, 8, ["is-active", "icon-name", "text"]),
3755
+ K(s, {
3756
+ id: "tab2",
3757
+ ref: "tab2",
3758
+ "is-active": e.selectedId === "tab2",
3759
+ "icon-name": e.secondIconName,
3760
+ text: e.secondLabel,
3761
+ onClick: t[1] || (t[1] = (o) => e.handleClick("tab2"))
3762
+ }, null, 8, ["is-active", "icon-name", "text"])
3763
+ ])
3764
+ ], 2);
3765
+ }
3766
+ const Xr = /* @__PURE__ */ D(Ga, [["render", Ja]]), Za = L({
3767
+ name: "BaseTextarea",
3768
+ components: { BaseFloatingLabel: ht },
3769
+ inheritAttrs: !1,
3770
+ props: {
3771
+ labelText: { type: String, default: "" },
3772
+ modelValue: { type: [String, Number] },
3773
+ feedback: { type: Object },
3774
+ isValid: { type: Boolean, default: null },
3775
+ textAreaStyle: { type: String, default: "" },
3776
+ isDisabled: { type: Boolean, default: !1 },
3777
+ resize: { type: Boolean, default: !1 }
3778
+ },
3779
+ emits: ["update:modelValue", "focusin", "focusout"],
3780
+ setup(e, t) {
3781
+ const { labelState: n, setInitialLabelState: i, handleFocusIn: a, handleFocusOut: r } = hi(t.emit);
3782
+ return {
3783
+ labelState: n,
3784
+ setInitialLabelState: i,
3785
+ handleFocusIn: a,
3786
+ handleFocusOut: r
3787
+ };
3788
+ },
3789
+ data() {
3790
+ return {
3791
+ //This inner value is useful in case the inner value of the textarea do not match with the modelValue
3792
+ value: ""
3793
+ };
3794
+ },
3795
+ computed: {
3796
+ textareaElem() {
3797
+ return this.$refs.textarea;
3798
+ }
3799
+ },
3800
+ watch: {
3801
+ modelValue(e) {
3802
+ `${e}`.length > 0 && this.labelState !== "floating-label" && (this.labelState = "floating-label");
3803
+ }
3804
+ },
3805
+ created() {
3806
+ this.setInitialLabelState(this.modelValue);
3807
+ },
3808
+ methods: {
3809
+ handleOnChange({ target: e }) {
3810
+ this.value = e.value, this.$emit("update:modelValue", e.value);
3811
+ },
3812
+ handleFloatingLabelClick() {
3813
+ this.$refs.textarea.focus();
3814
+ },
3815
+ /* Favorite scenario: multiple baseTextarea */
3816
+ disableTextarea() {
3817
+ this.textareaElem.setAttribute("readonly", "readonly"), this.textareaElem.classList.add("disabled");
3818
+ },
3819
+ clearTextareaElem() {
3820
+ this.textareaElem.value = "", console.log(this.textareaElem.value);
3821
+ },
3822
+ disableAndFocusTextarea() {
3823
+ this.textareaElem.removeAttribute("readonly"), this.textareaElem.classList.remove("disabled"), this.$nextTick(() => {
3824
+ this.textareaElem.focus();
3825
+ });
3826
+ }
3827
+ }
3828
+ }), Qa = ["id", "data-cy", "rows", "disabled", "aria-labelledby", "innerHTML"], _a = {
3829
+ key: 0,
3830
+ class: "uikit-visible uikit-float-none uikit-ml-2 uikit-block uikit-h-3 uikit-w-auto uikit-max-w-full uikit-overflow-hidden uikit-whitespace-nowrap uikit-p-0 uikit-text uikit-duration-[50s] uikit-ease-out"
3831
+ }, er = ["innerHTML"], tr = ["innerHTML"];
3832
+ function ir(e, t, n, i, a, r) {
3833
+ const s = ce("base-floating-label");
3834
+ return b(), g("div", {
3835
+ class: v(e.$attrs["wrapper-classes"])
3836
+ }, [
3837
+ $("div", {
3838
+ class: v(["input-wrapper uikit-relative uikit-mt-15px uikit-rounded-xs uikit-px-0", [
3839
+ e.labelState === "floating-label" ? "floating-state" : "inline-state"
3840
+ ]])
3841
+ }, [
3842
+ $("textarea", {
3843
+ id: e.$attrs.id,
3844
+ ref: "textarea",
3845
+ "data-cy": e.$attrs["data-cy"],
3846
+ class: v(["textarea-scrollbar uikit-peer/fieldset uikit-w-full uikit-overflow-y-auto uikit-whitespace-pre-wrap uikit-rounded-xs uikit-border-0 uikit-bg-white uikit-bg-no-repeat uikit-px-15px uikit-pb-[8px] uikit-pt-15px uikit-outline-none", [
3847
+ { "uikit-bg-w-cultured": e.$attrs.disabled || e.isDisabled },
3848
+ { "is-invalid invalid-bg !uikit-pr-10": e.isValid === !1 },
3849
+ { "is-valid valid-bg !uikit-pr-10": e.isValid },
3850
+ { "uikit-resize-none": !e.resize }
3851
+ ]]),
3852
+ rows: e.$attrs.rows,
3853
+ disabled: e.$attrs.disabled,
3854
+ "aria-labelledby": e.$attrs.id,
3855
+ onFocusin: t[0] || (t[0] = B(() => e.handleFocusIn(), ["stop"])),
3856
+ onFocusout: t[1] || (t[1] = B((o) => e.handleFocusOut(`${e.modelValue}`.trim() || e.value), ["stop"])),
3857
+ onInput: t[2] || (t[2] = B((...o) => e.handleOnChange && e.handleOnChange(...o), ["stop"])),
3858
+ innerHTML: e.modelValue
3859
+ }, null, 42, Qa),
3860
+ $("fieldset", {
3861
+ class: v(["uikit-pointer-events-none uikit-absolute -uikit-top-5px uikit-bottom-5px uikit-left-0 uikit-right-0 uikit-m-0 uikit-min-w-0 uikit-overflow-hidden uikit-rounded-xs uikit-border uikit-border-solid uikit-px-2 uikit-text-start uikit-transition-[border] uikit-duration-100 uikit-ease-out peer-focus/fieldset:uikit-border-2 peer-focus/fieldset:uikit-border-w-primary", [
3862
+ { "is-invalid": e.isValid === !1, "is-valid": e.isValid },
3863
+ { "uikit-border-w-danger": e.isValid === !1 },
3864
+ { "uikit-border-w-primary": e.isValid },
3865
+ { "uikit-border-w-secondary": e.isValid === null }
3866
+ ]])
3867
+ }, [
3868
+ e.labelText ? (b(), g("legend", _a, [
3869
+ $("span", {
3870
+ class: v(["uikit-px-5px uikit-opacity-0", [
3871
+ {
3872
+ "uikit-visible uikit-inline-block": e.labelState === "floating-label"
3873
+ },
3874
+ {
3875
+ "uikit-invisible uikit-hidden": e.labelState === "inline-label"
3876
+ }
3877
+ ]]),
3878
+ innerHTML: e.labelText
3879
+ }, null, 10, er)
3880
+ ])) : T("", !0)
3881
+ ], 2),
3882
+ K(s, {
3883
+ for: e.$attrs.id,
3884
+ "label-text": e.labelText,
3885
+ "label-state": e.labelState,
3886
+ required: e.$attrs.required,
3887
+ "is-valid": e.isValid,
3888
+ onClick: e.handleFloatingLabelClick
3889
+ }, null, 8, ["for", "label-text", "label-state", "required", "is-valid", "onClick"])
3890
+ ], 2),
3891
+ (e.isValid || e.isValid === !1) && e.feedback ? (b(), g("div", {
3892
+ key: 0,
3893
+ class: v(
3894
+ e.isValid === !1 ? "uikit-mt-1 uikit-text-12 uikit-text-w-danger" : "uikit-mt-1 uikit-text-12 uikit-text-w-primary"
3895
+ ),
3896
+ innerHTML: e.isValid === !1 ? e.feedback.invalid : e.feedback.valid
3897
+ }, null, 10, tr)) : T("", !0)
3898
+ ], 2);
3899
+ }
3900
+ const Yr = /* @__PURE__ */ D(Za, [["render", ir], ["__scopeId", "data-v-f2936c06"]]), nr = L({
3901
+ name: "BaseToggle",
3902
+ inheritAttrs: !1,
3903
+ props: {
3904
+ withRightLabel: { type: Boolean, default: !0 },
3905
+ label: { type: String, default: "" },
3906
+ modelValue: { type: Boolean, default: !1 }
3907
+ },
3908
+ emits: ["update:modelValue"],
3909
+ methods: {
3910
+ handleToggle({ target: e }) {
3911
+ this.$emit("update:modelValue", e.checked);
3912
+ }
3913
+ }
3914
+ }), sr = (e) => ($i("data-v-42a43348"), e = e(), Ci(), e), ar = { class: "switch uikit-relative uikit-inline-block uikit-min-w-[40px]" }, rr = ["data-cy", "checked"], or = /* @__PURE__ */ sr(() => /* @__PURE__ */ $("span", { class: "slider round uikit-absolute uikit-bottom-0 uikit-left-0 uikit-right-0 uikit-top-0 uikit-cursor-pointer uikit-bg-w-lavender uikit-duration-300 before:uikit-absolute before:uikit-bottom-0 before:uikit-left-0 before:uikit-h-[22px] before:uikit-w-[22px] before:uikit-rounded-circle before:uikit-border before:uikit-border-solid before:uikit-border-w-secondary before:uikit-bg-white before:uikit-shadow-sm before:uikit-duration-300 before:uikit-content-[''] peer-checked/toggle:uikit-bg-w-primary" }, null, -1)), lr = ["innerHTML"];
3915
+ function ur(e, t, n, i, a, r) {
3916
+ return b(), g("div", {
3917
+ class: v(["switch-container uikit-inline-block uikit-items-center", e.$attrs.class])
3918
+ }, [
3919
+ S(e.$slots, "leftLabel", {}, void 0, !0),
3920
+ $("label", ar, [
3921
+ $("input", {
3922
+ "data-cy": e.$attrs["data-cy"] ?? "",
3923
+ class: "uikit-peer/toggle uikit-h-0 uikit-w-0 uikit-opacity-0",
3924
+ type: "checkbox",
3925
+ checked: e.modelValue,
3926
+ onInput: t[0] || (t[0] = B((s) => e.handleToggle(s), ["stop"]))
3927
+ }, null, 40, rr),
3928
+ or
3929
+ ]),
3930
+ e.withRightLabel ? S(e.$slots, "rightLabel", { key: 0 }, () => [
3931
+ $("span", {
3932
+ class: "uikit-ml-10px",
3933
+ innerHTML: e.label
3934
+ }, null, 8, lr)
3935
+ ], !0) : T("", !0)
3936
+ ], 2);
3937
+ }
3938
+ const xr = /* @__PURE__ */ D(nr, [["render", ur], ["__scopeId", "data-v-42a43348"]]), dr = L({
3939
+ name: "BaseTooltip",
3940
+ inheritAttrs: !1,
3941
+ props: {
3942
+ theme: {
3943
+ type: Object,
3944
+ default() {
3945
+ return {
3946
+ color: "blue",
3947
+ size: "sm"
3948
+ };
3949
+ }
3950
+ },
3951
+ direction: {
3952
+ type: String,
3953
+ default: "top"
3954
+ },
3955
+ customTooltipClass: {
3956
+ type: String,
3957
+ default: ""
3958
+ },
3959
+ showTooltipContentManually: {
3960
+ type: Boolean,
3961
+ default: !0
3962
+ }
3963
+ }
3964
+ });
3965
+ function cr(e, t, n, i, a, r) {
3966
+ return b(), g("div", {
3967
+ class: v(["base-tooltip", e.$attrs.class])
3968
+ }, [
3969
+ S(e.$slots, "trigger", {}, void 0, !0),
3970
+ $("div", {
3971
+ class: v(["bg-transparent", [
3972
+ e.theme.size,
3973
+ `${e.customTooltipClass ? e.customTooltipClass : "tooltip-content-wrapper"}`
3974
+ ]])
3975
+ }, [
3976
+ e.showTooltipContentManually ? (b(), g("div", {
3977
+ key: 0,
3978
+ class: v(["tooltip-content uikit-shadow-lg uikit-shadow-w-primary/10", ["base-tooltip-arrow", e.direction, e.theme.color, e.theme.size]])
3979
+ }, [
3980
+ S(e.$slots, "content", {}, void 0, !0)
3981
+ ], 2)) : T("", !0)
3982
+ ], 2)
3983
+ ], 2);
3984
+ }
3985
+ const qr = /* @__PURE__ */ D(dr, [["render", cr], ["__scopeId", "data-v-bf60f4f9"]]), pr = L({
3986
+ name: "BaseUploadFile",
3987
+ components: {
3988
+ BaseFloatingLabel: ht
3989
+ },
3990
+ inheritAttrs: !1,
3991
+ props: {
3992
+ withMargin: { type: Boolean, default: !0 },
3993
+ labelText: { type: String, default: "" },
3994
+ clear: { type: Boolean, default: !1 }
3995
+ },
3996
+ emits: ["cleared", "uploaded"],
3997
+ data() {
3998
+ return {
3999
+ filename: ""
4000
+ };
4001
+ },
4002
+ watch: {
4003
+ clear(e) {
4004
+ e && (this.filename = "", this.$emit("cleared"));
4005
+ }
4006
+ },
4007
+ methods: {
4008
+ handleInput({ target: e }) {
4009
+ if (!e)
4010
+ return;
4011
+ const t = e.files;
4012
+ t != null && t.length && (this.filename = t[0].name, this.$emit("uploaded", t[0]));
4013
+ }
4014
+ }
4015
+ }), fr = { class: "uikit-pointer-events-none uikit-absolute -uikit-top-5px uikit-bottom-0 uikit-left-0 uikit-right-0 uikit-m-0 uikit-h-[47px] uikit-overflow-hidden uikit-rounded-xs uikit-border uikit-border-dashed uikit-border-w-secondary uikit-px-2 uikit-py-0 uikit-text-start" }, mr = { class: "uikit-invisible uikit-float-none uikit-ml-2 uikit-block uikit-h-3 uikit-w-auto uikit-max-w-full uikit-overflow-hidden uikit-whitespace-nowrap uikit-p-0 uikit-text" }, hr = ["innerHTML"], br = { class: "upload-file-input uikit-flex uikit-h-[42px] uikit-w-full uikit-cursor-pointer uikit-items-center uikit-justify-center uikit-rounded-xs uikit-bg-w-lavender" }, kr = ["id", "multiple", "accept"];
4016
+ function gr(e, t, n, i, a, r) {
4017
+ const s = ce("BaseFloatingLabel");
4018
+ return b(), g("div", {
4019
+ class: v(["base-upload-file-wrapper uikit-relative", [{ "mt-10": e.withMargin }, e.$attrs.class]])
4020
+ }, [
4021
+ $("fieldset", fr, [
4022
+ $("legend", mr, [
4023
+ $("span", {
4024
+ class: "uikit-visible uikit-inline-block uikit-px-5px uikit-opacity-0",
4025
+ innerHTML: e.labelText
4026
+ }, null, 8, hr)
4027
+ ])
4028
+ ]),
4029
+ e.labelText ? (b(), J(s, {
4030
+ key: 0,
4031
+ class: v(e.$attrs["floating-label-classes"]),
4032
+ "label-text": e.labelText,
4033
+ "label-state": "floating-label"
4034
+ }, null, 8, ["class", "label-text"])) : T("", !0),
4035
+ $("label", br, [
4036
+ $("input", {
4037
+ id: e.$attrs.id,
4038
+ multiple: e.$attrs.multiple,
4039
+ type: "file",
4040
+ class: "uikit-hidden",
4041
+ accept: e.$attrs.accept,
4042
+ onInput: t[0] || (t[0] = (...o) => e.handleInput && e.handleInput(...o))
4043
+ }, null, 40, kr),
4044
+ S(e.$slots, "label", { filename: e.filename })
4045
+ ])
4046
+ ], 2);
4047
+ }
4048
+ const Kr = /* @__PURE__ */ D(pr, [["render", gr]]), Gr = /* @__PURE__ */ L({
4049
+ __name: "IntersectionObservable",
4050
+ props: {
4051
+ observer: {},
4052
+ isVisible: { type: Boolean }
4053
+ },
4054
+ setup(e) {
4055
+ const t = e, n = F(null);
4056
+ return ze(() => {
4057
+ !t.observer || !n.value || t.observer.observe(n.value);
4058
+ }), (i, a) => i.isVisible ? S(i.$slots, "observable", { key: 1 }) : (b(), g("div", {
4059
+ key: 0,
4060
+ ref_key: "root",
4061
+ ref: n,
4062
+ class: v(i.$attrs["root-classes"])
4063
+ }, [
4064
+ S(i.$slots, "observable")
4065
+ ], 2));
4066
+ }
4067
+ }), Jr = /* @__PURE__ */ L({
4068
+ __name: "IntersectionObserver",
4069
+ props: {
4070
+ observeOnce: { type: Boolean, default: !0 },
4071
+ skip: { type: Boolean, default: !1 },
4072
+ threshold: { default: 0 }
4073
+ },
4074
+ emits: ["intersection"],
4075
+ setup(e, { emit: t }) {
4076
+ const n = t, i = e;
4077
+ let a = lt({ root: null, isVisible: !1 });
4078
+ const r = F(null), s = (m) => {
4079
+ m.forEach(({ target: f, isIntersecting: l }) => {
4080
+ l && (a.isVisible = !0, n("intersection")), i.observeOnce && l && o(f);
4081
+ });
4082
+ }, o = (m) => {
4083
+ r.value && r.value.unobserve(m);
4084
+ }, d = () => {
4085
+ r.value && r.value.disconnect();
4086
+ };
4087
+ return Se(() => {
4088
+ if (i.skip) {
4089
+ a.isVisible = !0;
4090
+ return;
4091
+ }
4092
+ r.value = new IntersectionObserver(s, {
4093
+ root: null,
4094
+ //if the root is null, then we will check if the target is visible in the doc root!
4095
+ threshold: i.threshold
4096
+ });
4097
+ }), Ei(() => {
4098
+ d();
4099
+ }), (m, f) => x(a).isVisible ? S(m.$slots, "observer", {
4100
+ key: 1,
4101
+ observer: r.value,
4102
+ isVisible: x(a).isVisible
4103
+ }) : (b(), g("div", {
4104
+ key: 0,
4105
+ ref: "root",
4106
+ class: v(m.$attrs["root-classes"])
4107
+ }, [
4108
+ S(m.$slots, "observer", {
4109
+ observer: r.value,
4110
+ isVisible: x(a).isVisible
4111
+ })
4112
+ ], 2));
4113
+ }
4114
+ });
4115
+ function Ht(e) {
4116
+ return e !== null && typeof e == "object" && "constructor" in e && e.constructor === Object;
4117
+ }
4118
+ function kt(e, t) {
4119
+ e === void 0 && (e = {}), t === void 0 && (t = {}), Object.keys(t).forEach((n) => {
4120
+ typeof e[n] > "u" ? e[n] = t[n] : Ht(t[n]) && Ht(e[n]) && Object.keys(t[n]).length > 0 && kt(e[n], t[n]);
4121
+ });
4122
+ }
4123
+ const ki = {
4124
+ body: {},
4125
+ addEventListener() {
4126
+ },
4127
+ removeEventListener() {
4128
+ },
4129
+ activeElement: {
4130
+ blur() {
4131
+ },
4132
+ nodeName: ""
4133
+ },
4134
+ querySelector() {
4135
+ return null;
4136
+ },
4137
+ querySelectorAll() {
4138
+ return [];
4139
+ },
4140
+ getElementById() {
4141
+ return null;
4142
+ },
4143
+ createEvent() {
4144
+ return {
4145
+ initEvent() {
4146
+ }
4147
+ };
4148
+ },
4149
+ createElement() {
4150
+ return {
4151
+ children: [],
4152
+ childNodes: [],
4153
+ style: {},
4154
+ setAttribute() {
4155
+ },
4156
+ getElementsByTagName() {
4157
+ return [];
4158
+ }
4159
+ };
4160
+ },
4161
+ createElementNS() {
4162
+ return {};
4163
+ },
4164
+ importNode() {
4165
+ return null;
4166
+ },
4167
+ location: {
4168
+ hash: "",
4169
+ host: "",
4170
+ hostname: "",
4171
+ href: "",
4172
+ origin: "",
4173
+ pathname: "",
4174
+ protocol: "",
4175
+ search: ""
4176
+ }
4177
+ };
4178
+ function vr() {
4179
+ const e = typeof document < "u" ? document : {};
4180
+ return kt(e, ki), e;
4181
+ }
4182
+ const yr = {
4183
+ document: ki,
4184
+ navigator: {
4185
+ userAgent: ""
4186
+ },
4187
+ location: {
4188
+ hash: "",
4189
+ host: "",
4190
+ hostname: "",
4191
+ href: "",
4192
+ origin: "",
4193
+ pathname: "",
4194
+ protocol: "",
4195
+ search: ""
4196
+ },
4197
+ history: {
4198
+ replaceState() {
4199
+ },
4200
+ pushState() {
4201
+ },
4202
+ go() {
4203
+ },
4204
+ back() {
4205
+ }
4206
+ },
4207
+ CustomEvent: function() {
4208
+ return this;
4209
+ },
4210
+ addEventListener() {
4211
+ },
4212
+ removeEventListener() {
4213
+ },
4214
+ getComputedStyle() {
4215
+ return {
4216
+ getPropertyValue() {
4217
+ return "";
4218
+ }
4219
+ };
4220
+ },
4221
+ Image() {
4222
+ },
4223
+ Date() {
4224
+ },
4225
+ screen: {},
4226
+ setTimeout() {
4227
+ },
4228
+ clearTimeout() {
4229
+ },
4230
+ matchMedia() {
4231
+ return {};
4232
+ },
4233
+ requestAnimationFrame(e) {
4234
+ return typeof setTimeout > "u" ? (e(), null) : setTimeout(e, 0);
4235
+ },
4236
+ cancelAnimationFrame(e) {
4237
+ typeof setTimeout > "u" || clearTimeout(e);
4238
+ }
4239
+ };
4240
+ function Le() {
4241
+ const e = typeof window < "u" ? window : {};
4242
+ return kt(e, yr), e;
4243
+ }
4244
+ function wr(e) {
4245
+ return e === void 0 && (e = ""), e.trim().split(" ").filter((t) => !!t.trim());
4246
+ }
4247
+ function Zr(e, t) {
4248
+ return t === void 0 && (t = 0), setTimeout(e, t);
4249
+ }
4250
+ function Qr() {
4251
+ return Date.now();
4252
+ }
4253
+ function $r(e) {
4254
+ const t = Le();
4255
+ let n;
4256
+ return t.getComputedStyle && (n = t.getComputedStyle(e, null)), !n && e.currentStyle && (n = e.currentStyle), n || (n = e.style), n;
4257
+ }
4258
+ function Ut(e, t) {
4259
+ t === void 0 && (t = "x");
4260
+ const n = Le();
4261
+ let i, a, r;
4262
+ const s = $r(e);
4263
+ return n.WebKitCSSMatrix ? (a = s.transform || s.webkitTransform, a.split(",").length > 6 && (a = a.split(", ").map((o) => o.replace(",", ".")).join(", ")), r = new n.WebKitCSSMatrix(a === "none" ? "" : a)) : (r = s.MozTransform || s.OTransform || s.MsTransform || s.msTransform || s.transform || s.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), i = r.toString().split(",")), t === "x" && (n.WebKitCSSMatrix ? a = r.m41 : i.length === 16 ? a = parseFloat(i[12]) : a = parseFloat(i[4])), t === "y" && (n.WebKitCSSMatrix ? a = r.m42 : i.length === 16 ? a = parseFloat(i[13]) : a = parseFloat(i[5])), a || 0;
4264
+ }
4265
+ function _r(e) {
4266
+ return typeof e == "object" && e !== null && e.constructor && Object.prototype.toString.call(e).slice(8, -1) === "Object";
4267
+ }
4268
+ function Wt(e, t) {
4269
+ return t === void 0 && (t = ""), [...e.children].filter((n) => n.matches(t));
4270
+ }
4271
+ function eo(e, t) {
4272
+ t === void 0 && (t = []);
4273
+ const n = document.createElement(e);
4274
+ return n.classList.add(...Array.isArray(t) ? t : wr(t)), n;
4275
+ }
4276
+ function Xt(e) {
4277
+ const t = Le(), n = vr(), i = e.getBoundingClientRect(), a = n.body, r = e.clientTop || a.clientTop || 0, s = e.clientLeft || a.clientLeft || 0, o = e === t ? t.scrollY : e.scrollTop, d = e === t ? t.scrollX : e.scrollLeft;
4278
+ return {
4279
+ top: i.top + o - r,
4280
+ left: i.left + d - s
4281
+ };
4282
+ }
4283
+ function to(e) {
4284
+ let t = e, n;
4285
+ if (t) {
4286
+ for (n = 0; (t = t.previousSibling) !== null; )
4287
+ t.nodeType === 1 && (n += 1);
4288
+ return n;
4289
+ }
4290
+ }
4291
+ function it(e, t) {
4292
+ const n = [];
4293
+ let i = e.parentElement;
4294
+ for (; i; )
4295
+ t ? i.matches(t) && n.push(i) : n.push(i), i = i.parentElement;
4296
+ return n;
4297
+ }
4298
+ function io(e, t) {
4299
+ function n(i) {
4300
+ i.target === e && (t.call(e, i), e.removeEventListener("transitionend", n));
4301
+ }
4302
+ t && e.addEventListener("transitionend", n);
4303
+ }
4304
+ function no(e, t, n) {
4305
+ const i = Le();
4306
+ return n ? e[t === "width" ? "offsetWidth" : "offsetHeight"] + parseFloat(i.getComputedStyle(e, null).getPropertyValue(t === "width" ? "margin-right" : "margin-top")) + parseFloat(i.getComputedStyle(e, null).getPropertyValue(t === "width" ? "margin-left" : "margin-bottom")) : e.offsetWidth;
4307
+ }
4308
+ function so(e) {
4309
+ return (Array.isArray(e) ? e : [e]).filter((t) => !!t);
4310
+ }
4311
+ function Cr(e) {
4312
+ let {
4313
+ swiper: t,
4314
+ extendParams: n,
4315
+ on: i,
4316
+ emit: a
4317
+ } = e;
4318
+ const r = Le();
4319
+ n({
4320
+ zoom: {
4321
+ enabled: !1,
4322
+ limitToOriginalSize: !1,
4323
+ maxRatio: 3,
4324
+ minRatio: 1,
4325
+ toggle: !0,
4326
+ containerClass: "swiper-zoom-container",
4327
+ zoomedSlideClass: "swiper-slide-zoomed"
4328
+ }
4329
+ }), t.zoom = {
4330
+ enabled: !1
4331
+ };
4332
+ let s = 1, o = !1, d, m;
4333
+ const f = [], l = {
4334
+ originX: 0,
4335
+ originY: 0,
4336
+ slideEl: void 0,
4337
+ slideWidth: void 0,
4338
+ slideHeight: void 0,
4339
+ imageEl: void 0,
4340
+ imageWrapEl: void 0,
4341
+ maxRatio: 3
4342
+ }, u = {
4343
+ isTouched: void 0,
4344
+ isMoved: void 0,
4345
+ currentX: void 0,
4346
+ currentY: void 0,
4347
+ minX: void 0,
4348
+ minY: void 0,
4349
+ maxX: void 0,
4350
+ maxY: void 0,
4351
+ width: void 0,
4352
+ height: void 0,
4353
+ startX: void 0,
4354
+ startY: void 0,
4355
+ touchesStart: {},
4356
+ touchesCurrent: {}
4357
+ }, p = {
4358
+ x: void 0,
4359
+ y: void 0,
4360
+ prevPositionX: void 0,
4361
+ prevPositionY: void 0,
4362
+ prevTime: void 0
4363
+ };
4364
+ let k = 1;
4365
+ Object.defineProperty(t.zoom, "scale", {
4366
+ get() {
4367
+ return k;
4368
+ },
4369
+ set(y) {
4370
+ if (k !== y) {
4371
+ const C = l.imageEl, E = l.slideEl;
4372
+ a("zoomChange", y, C, E);
4373
+ }
4374
+ k = y;
4375
+ }
4376
+ });
4377
+ function I() {
4378
+ if (f.length < 2)
4379
+ return 1;
4380
+ const y = f[0].pageX, C = f[0].pageY, E = f[1].pageX, j = f[1].pageY;
4381
+ return Math.sqrt((E - y) ** 2 + (j - C) ** 2);
4382
+ }
4383
+ function P() {
4384
+ const y = t.params.zoom, C = l.imageWrapEl.getAttribute("data-swiper-zoom") || y.maxRatio;
4385
+ if (y.limitToOriginalSize && l.imageEl && l.imageEl.naturalWidth) {
4386
+ const E = l.imageEl.naturalWidth / l.imageEl.offsetWidth;
4387
+ return Math.min(E, C);
4388
+ }
4389
+ return C;
4390
+ }
4391
+ function Q() {
4392
+ if (f.length < 2)
4393
+ return {
4394
+ x: null,
4395
+ y: null
4396
+ };
4397
+ const y = l.imageEl.getBoundingClientRect();
4398
+ return [(f[0].pageX + (f[1].pageX - f[0].pageX) / 2 - y.x - r.scrollX) / s, (f[0].pageY + (f[1].pageY - f[0].pageY) / 2 - y.y - r.scrollY) / s];
4399
+ }
4400
+ function oe() {
4401
+ return t.isElement ? "swiper-slide" : `.${t.params.slideClass}`;
4402
+ }
4403
+ function se(y) {
4404
+ const C = oe();
4405
+ return !!(y.target.matches(C) || t.slides.filter((E) => E.contains(y.target)).length > 0);
4406
+ }
4407
+ function w(y) {
4408
+ const C = `.${t.params.zoom.containerClass}`;
4409
+ return !!(y.target.matches(C) || [...t.hostEl.querySelectorAll(C)].filter((E) => E.contains(y.target)).length > 0);
4410
+ }
4411
+ function A(y) {
4412
+ if (y.pointerType === "mouse" && f.splice(0, f.length), !se(y))
4413
+ return;
4414
+ const C = t.params.zoom;
4415
+ if (d = !1, m = !1, f.push(y), !(f.length < 2)) {
4416
+ if (d = !0, l.scaleStart = I(), !l.slideEl) {
4417
+ l.slideEl = y.target.closest(`.${t.params.slideClass}, swiper-slide`), l.slideEl || (l.slideEl = t.slides[t.activeIndex]);
4418
+ let E = l.slideEl.querySelector(`.${C.containerClass}`);
4419
+ if (E && (E = E.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), l.imageEl = E, E ? l.imageWrapEl = it(l.imageEl, `.${C.containerClass}`)[0] : l.imageWrapEl = void 0, !l.imageWrapEl) {
4420
+ l.imageEl = void 0;
4421
+ return;
4422
+ }
4423
+ l.maxRatio = P();
4424
+ }
4425
+ if (l.imageEl) {
4426
+ const [E, j] = Q();
4427
+ l.originX = E, l.originY = j, l.imageEl.style.transitionDuration = "0ms";
4428
+ }
4429
+ o = !0;
4430
+ }
4431
+ }
4432
+ function h(y) {
4433
+ if (!se(y))
4434
+ return;
4435
+ const C = t.params.zoom, E = t.zoom, j = f.findIndex((G) => G.pointerId === y.pointerId);
4436
+ j >= 0 && (f[j] = y), !(f.length < 2) && (m = !0, l.scaleMove = I(), l.imageEl && (E.scale = l.scaleMove / l.scaleStart * s, E.scale > l.maxRatio && (E.scale = l.maxRatio - 1 + (E.scale - l.maxRatio + 1) ** 0.5), E.scale < C.minRatio && (E.scale = C.minRatio + 1 - (C.minRatio - E.scale + 1) ** 0.5), l.imageEl.style.transform = `translate3d(0,0,0) scale(${E.scale})`));
4437
+ }
4438
+ function V(y) {
4439
+ if (!se(y) || y.pointerType === "mouse" && y.type === "pointerout")
4440
+ return;
4441
+ const C = t.params.zoom, E = t.zoom, j = f.findIndex((G) => G.pointerId === y.pointerId);
4442
+ j >= 0 && f.splice(j, 1), !(!d || !m) && (d = !1, m = !1, l.imageEl && (E.scale = Math.max(Math.min(E.scale, l.maxRatio), C.minRatio), l.imageEl.style.transitionDuration = `${t.params.speed}ms`, l.imageEl.style.transform = `translate3d(0,0,0) scale(${E.scale})`, s = E.scale, o = !1, E.scale > 1 && l.slideEl ? l.slideEl.classList.add(`${C.zoomedSlideClass}`) : E.scale <= 1 && l.slideEl && l.slideEl.classList.remove(`${C.zoomedSlideClass}`), E.scale === 1 && (l.originX = 0, l.originY = 0, l.slideEl = void 0)));
4443
+ }
4444
+ function M(y) {
4445
+ const C = t.device;
4446
+ if (!l.imageEl || u.isTouched)
4447
+ return;
4448
+ C.android && y.cancelable && y.preventDefault(), u.isTouched = !0;
4449
+ const E = f.length > 0 ? f[0] : y;
4450
+ u.touchesStart.x = E.pageX, u.touchesStart.y = E.pageY;
4451
+ }
4452
+ function X(y) {
4453
+ if (!se(y) || !w(y))
4454
+ return;
4455
+ const C = t.zoom;
4456
+ if (!l.imageEl || !u.isTouched || !l.slideEl)
4457
+ return;
4458
+ u.isMoved || (u.width = l.imageEl.offsetWidth, u.height = l.imageEl.offsetHeight, u.startX = Ut(l.imageWrapEl, "x") || 0, u.startY = Ut(l.imageWrapEl, "y") || 0, l.slideWidth = l.slideEl.offsetWidth, l.slideHeight = l.slideEl.offsetHeight, l.imageWrapEl.style.transitionDuration = "0ms");
4459
+ const E = u.width * C.scale, j = u.height * C.scale;
4460
+ if (E < l.slideWidth && j < l.slideHeight)
4461
+ return;
4462
+ if (u.minX = Math.min(l.slideWidth / 2 - E / 2, 0), u.maxX = -u.minX, u.minY = Math.min(l.slideHeight / 2 - j / 2, 0), u.maxY = -u.minY, u.touchesCurrent.x = f.length > 0 ? f[0].pageX : y.pageX, u.touchesCurrent.y = f.length > 0 ? f[0].pageY : y.pageY, Math.max(Math.abs(u.touchesCurrent.x - u.touchesStart.x), Math.abs(u.touchesCurrent.y - u.touchesStart.y)) > 5 && (t.allowClick = !1), !u.isMoved && !o) {
4463
+ if (t.isHorizontal() && (Math.floor(u.minX) === Math.floor(u.startX) && u.touchesCurrent.x < u.touchesStart.x || Math.floor(u.maxX) === Math.floor(u.startX) && u.touchesCurrent.x > u.touchesStart.x)) {
4464
+ u.isTouched = !1;
4465
+ return;
4466
+ }
4467
+ if (!t.isHorizontal() && (Math.floor(u.minY) === Math.floor(u.startY) && u.touchesCurrent.y < u.touchesStart.y || Math.floor(u.maxY) === Math.floor(u.startY) && u.touchesCurrent.y > u.touchesStart.y)) {
4468
+ u.isTouched = !1;
4469
+ return;
4470
+ }
4471
+ }
4472
+ y.cancelable && y.preventDefault(), y.stopPropagation(), u.isMoved = !0;
4473
+ const pe = (C.scale - s) / (l.maxRatio - t.params.zoom.minRatio), {
4474
+ originX: fe,
4475
+ originY: be
4476
+ } = l;
4477
+ u.currentX = u.touchesCurrent.x - u.touchesStart.x + u.startX + pe * (u.width - fe * 2), u.currentY = u.touchesCurrent.y - u.touchesStart.y + u.startY + pe * (u.height - be * 2), u.currentX < u.minX && (u.currentX = u.minX + 1 - (u.minX - u.currentX + 1) ** 0.8), u.currentX > u.maxX && (u.currentX = u.maxX - 1 + (u.currentX - u.maxX + 1) ** 0.8), u.currentY < u.minY && (u.currentY = u.minY + 1 - (u.minY - u.currentY + 1) ** 0.8), u.currentY > u.maxY && (u.currentY = u.maxY - 1 + (u.currentY - u.maxY + 1) ** 0.8), p.prevPositionX || (p.prevPositionX = u.touchesCurrent.x), p.prevPositionY || (p.prevPositionY = u.touchesCurrent.y), p.prevTime || (p.prevTime = Date.now()), p.x = (u.touchesCurrent.x - p.prevPositionX) / (Date.now() - p.prevTime) / 2, p.y = (u.touchesCurrent.y - p.prevPositionY) / (Date.now() - p.prevTime) / 2, Math.abs(u.touchesCurrent.x - p.prevPositionX) < 2 && (p.x = 0), Math.abs(u.touchesCurrent.y - p.prevPositionY) < 2 && (p.y = 0), p.prevPositionX = u.touchesCurrent.x, p.prevPositionY = u.touchesCurrent.y, p.prevTime = Date.now(), l.imageWrapEl.style.transform = `translate3d(${u.currentX}px, ${u.currentY}px,0)`;
4478
+ }
4479
+ function le() {
4480
+ const y = t.zoom;
4481
+ if (!l.imageEl)
4482
+ return;
4483
+ if (!u.isTouched || !u.isMoved) {
4484
+ u.isTouched = !1, u.isMoved = !1;
4485
+ return;
4486
+ }
4487
+ u.isTouched = !1, u.isMoved = !1;
4488
+ let C = 300, E = 300;
4489
+ const j = p.x * C, G = u.currentX + j, pe = p.y * E, fe = u.currentY + pe;
4490
+ p.x !== 0 && (C = Math.abs((G - u.currentX) / p.x)), p.y !== 0 && (E = Math.abs((fe - u.currentY) / p.y));
4491
+ const be = Math.max(C, E);
4492
+ u.currentX = G, u.currentY = fe;
4493
+ const Ve = u.width * y.scale, ae = u.height * y.scale;
4494
+ u.minX = Math.min(l.slideWidth / 2 - Ve / 2, 0), u.maxX = -u.minX, u.minY = Math.min(l.slideHeight / 2 - ae / 2, 0), u.maxY = -u.minY, u.currentX = Math.max(Math.min(u.currentX, u.maxX), u.minX), u.currentY = Math.max(Math.min(u.currentY, u.maxY), u.minY), l.imageWrapEl.style.transitionDuration = `${be}ms`, l.imageWrapEl.style.transform = `translate3d(${u.currentX}px, ${u.currentY}px,0)`;
4495
+ }
4496
+ function N() {
4497
+ const y = t.zoom;
4498
+ l.slideEl && t.activeIndex !== t.slides.indexOf(l.slideEl) && (l.imageEl && (l.imageEl.style.transform = "translate3d(0,0,0) scale(1)"), l.imageWrapEl && (l.imageWrapEl.style.transform = "translate3d(0,0,0)"), l.slideEl.classList.remove(`${t.params.zoom.zoomedSlideClass}`), y.scale = 1, s = 1, l.slideEl = void 0, l.imageEl = void 0, l.imageWrapEl = void 0, l.originX = 0, l.originY = 0);
4499
+ }
4500
+ function Y(y) {
4501
+ const C = t.zoom, E = t.params.zoom;
4502
+ if (!l.slideEl) {
4503
+ y && y.target && (l.slideEl = y.target.closest(`.${t.params.slideClass}, swiper-slide`)), l.slideEl || (t.params.virtual && t.params.virtual.enabled && t.virtual ? l.slideEl = Wt(t.slidesEl, `.${t.params.slideActiveClass}`)[0] : l.slideEl = t.slides[t.activeIndex]);
4504
+ let we = l.slideEl.querySelector(`.${E.containerClass}`);
4505
+ we && (we = we.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), l.imageEl = we, we ? l.imageWrapEl = it(l.imageEl, `.${E.containerClass}`)[0] : l.imageWrapEl = void 0;
4506
+ }
4507
+ if (!l.imageEl || !l.imageWrapEl)
4508
+ return;
4509
+ t.params.cssMode && (t.wrapperEl.style.overflow = "hidden", t.wrapperEl.style.touchAction = "none"), l.slideEl.classList.add(`${E.zoomedSlideClass}`);
4510
+ let j, G, pe, fe, be, Ve, ae, me, yt, wt, $t, Ct, Be, Ae, qe, Ke, Ge, Je;
4511
+ typeof u.touchesStart.x > "u" && y ? (j = y.pageX, G = y.pageY) : (j = u.touchesStart.x, G = u.touchesStart.y);
4512
+ const ye = typeof y == "number" ? y : null;
4513
+ s === 1 && ye && (j = void 0, G = void 0);
4514
+ const Et = P();
4515
+ C.scale = ye || Et, s = ye || Et, y && !(s === 1 && ye) ? (Ge = l.slideEl.offsetWidth, Je = l.slideEl.offsetHeight, pe = Xt(l.slideEl).left + r.scrollX, fe = Xt(l.slideEl).top + r.scrollY, be = pe + Ge / 2 - j, Ve = fe + Je / 2 - G, yt = l.imageEl.offsetWidth, wt = l.imageEl.offsetHeight, $t = yt * C.scale, Ct = wt * C.scale, Be = Math.min(Ge / 2 - $t / 2, 0), Ae = Math.min(Je / 2 - Ct / 2, 0), qe = -Be, Ke = -Ae, ae = be * C.scale, me = Ve * C.scale, ae < Be && (ae = Be), ae > qe && (ae = qe), me < Ae && (me = Ae), me > Ke && (me = Ke)) : (ae = 0, me = 0), ye && C.scale === 1 && (l.originX = 0, l.originY = 0), l.imageWrapEl.style.transitionDuration = "300ms", l.imageWrapEl.style.transform = `translate3d(${ae}px, ${me}px,0)`, l.imageEl.style.transitionDuration = "300ms", l.imageEl.style.transform = `translate3d(0,0,0) scale(${C.scale})`;
4516
+ }
4517
+ function R() {
4518
+ const y = t.zoom, C = t.params.zoom;
4519
+ if (!l.slideEl) {
4520
+ t.params.virtual && t.params.virtual.enabled && t.virtual ? l.slideEl = Wt(t.slidesEl, `.${t.params.slideActiveClass}`)[0] : l.slideEl = t.slides[t.activeIndex];
4521
+ let E = l.slideEl.querySelector(`.${C.containerClass}`);
4522
+ E && (E = E.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), l.imageEl = E, E ? l.imageWrapEl = it(l.imageEl, `.${C.containerClass}`)[0] : l.imageWrapEl = void 0;
4523
+ }
4524
+ !l.imageEl || !l.imageWrapEl || (t.params.cssMode && (t.wrapperEl.style.overflow = "", t.wrapperEl.style.touchAction = ""), y.scale = 1, s = 1, l.imageWrapEl.style.transitionDuration = "300ms", l.imageWrapEl.style.transform = "translate3d(0,0,0)", l.imageEl.style.transitionDuration = "300ms", l.imageEl.style.transform = "translate3d(0,0,0) scale(1)", l.slideEl.classList.remove(`${C.zoomedSlideClass}`), l.slideEl = void 0, l.originX = 0, l.originY = 0);
4525
+ }
4526
+ function H(y) {
4527
+ const C = t.zoom;
4528
+ C.scale && C.scale !== 1 ? R() : Y(y);
4529
+ }
4530
+ function he() {
4531
+ const y = t.params.passiveListeners ? {
4532
+ passive: !0,
4533
+ capture: !1
4534
+ } : !1, C = t.params.passiveListeners ? {
4535
+ passive: !1,
4536
+ capture: !0
4537
+ } : !0;
4538
+ return {
4539
+ passiveListener: y,
4540
+ activeListenerWithCapture: C
4541
+ };
4542
+ }
4543
+ function gt() {
4544
+ const y = t.zoom;
4545
+ if (y.enabled)
4546
+ return;
4547
+ y.enabled = !0;
4548
+ const {
4549
+ passiveListener: C,
4550
+ activeListenerWithCapture: E
4551
+ } = he();
4552
+ t.wrapperEl.addEventListener("pointerdown", A, C), t.wrapperEl.addEventListener("pointermove", h, E), ["pointerup", "pointercancel", "pointerout"].forEach((j) => {
4553
+ t.wrapperEl.addEventListener(j, V, C);
4554
+ }), t.wrapperEl.addEventListener("pointermove", X, E);
4555
+ }
4556
+ function vt() {
4557
+ const y = t.zoom;
4558
+ if (!y.enabled)
4559
+ return;
4560
+ y.enabled = !1;
4561
+ const {
4562
+ passiveListener: C,
4563
+ activeListenerWithCapture: E
4564
+ } = he();
4565
+ t.wrapperEl.removeEventListener("pointerdown", A, C), t.wrapperEl.removeEventListener("pointermove", h, E), ["pointerup", "pointercancel", "pointerout"].forEach((j) => {
4566
+ t.wrapperEl.removeEventListener(j, V, C);
4567
+ }), t.wrapperEl.removeEventListener("pointermove", X, E);
4568
+ }
4569
+ i("init", () => {
4570
+ t.params.zoom.enabled && gt();
4571
+ }), i("destroy", () => {
4572
+ vt();
4573
+ }), i("touchStart", (y, C) => {
4574
+ t.zoom.enabled && M(C);
4575
+ }), i("touchEnd", (y, C) => {
4576
+ t.zoom.enabled && le();
4577
+ }), i("doubleTap", (y, C) => {
4578
+ !t.animating && t.params.zoom.enabled && t.zoom.enabled && t.params.zoom.toggle && H(C);
4579
+ }), i("transitionEnd", () => {
4580
+ t.zoom.enabled && t.params.zoom.enabled && N();
4581
+ }), i("slideChange", () => {
4582
+ t.zoom.enabled && t.params.zoom.enabled && t.params.cssMode && N();
4583
+ }), Object.assign(t.zoom, {
4584
+ enable: gt,
4585
+ disable: vt,
4586
+ in: Y,
4587
+ out: R,
4588
+ toggle: H
4589
+ });
4590
+ }
4591
+ const Er = ["id"], Sr = ["id", "data-cy"], Tr = ["data-idx", "loading", "alt", "width", "height", "onLoad"], Or = ["id"], Lr = ["loading", "alt"], ao = /* @__PURE__ */ L({
4592
+ inheritAttrs: !1,
4593
+ __name: "SwiperCarousel",
4594
+ props: {
4595
+ id: {},
4596
+ swiperOptions: {},
4597
+ thumbSwiperOptions: {},
4598
+ lazyLoadImages: { type: Boolean, default: !0 },
4599
+ backgroundImage: { type: Boolean, default: !1 },
4600
+ images: {},
4601
+ artDirection: {},
4602
+ shiftFirstImage: { type: Boolean, default: !1 }
4603
+ },
4604
+ emits: ["moved", "click", "firstSlideLoaded"],
4605
+ setup(e, { expose: t, emit: n }) {
4606
+ const i = e, a = n, r = lt({
4607
+ swiperParams: { modules: [Cr] },
4608
+ swiper: null,
4609
+ initCarousel: !1
4610
+ }), s = F(), o = W(() => {
4611
+ var w;
4612
+ return ((w = i.swiperOptions) == null ? void 0 : w.slidesPerView) || 1;
4613
+ }), d = W(() => {
4614
+ var w;
4615
+ return ((w = i.thumbSwiperOptions) == null ? void 0 : w.slidesPerView) || 1;
4616
+ }), m = W(() => {
4617
+ var w;
4618
+ return !!((w = i.swiperOptions) != null && w.keyboard);
4619
+ }), f = W(() => {
4620
+ const w = i.swiperOptions;
4621
+ return w ? !!w.navigation : !1;
4622
+ }), l = W(() => {
4623
+ const w = i.swiperOptions;
4624
+ return w ? !!w.pagination : !1;
4625
+ }), u = W(() => {
4626
+ const w = i.swiperOptions;
4627
+ return w ? !!w.autoplay : !1;
4628
+ }), p = W(
4629
+ () => {
4630
+ var w;
4631
+ return ((w = i.swiperOptions) == null ? void 0 : w.effect) || "slider";
4632
+ }
4633
+ ), k = () => {
4634
+ i.swiperOptions && as(i.swiperOptions, r.swiperParams);
4635
+ }, I = (w, A = -1) => {
4636
+ if (!w.images)
4637
+ return { src: w.src || "" };
4638
+ let h = "", V = "", M = "";
4639
+ if (i.artDirection) {
4640
+ for (const N in i.artDirection) {
4641
+ const { mq: Y, width: R } = i.artDirection[N];
4642
+ R && (M += M ? `,${Y} ${parseInt(R)}px` : `${Y} ${parseInt(R)}px`);
4643
+ }
4644
+ V = w.images.reduce((N, Y, R) => {
4645
+ const H = Object.values(i.artDirection)[R];
4646
+ return !H || !H.width || (N += N ? `, ${Y.storagePath} ${H.width}` : `${Y.storagePath} ${H.width}`), N;
4647
+ }, ""), h = w.images[0].storagePath;
4648
+ } else {
4649
+ let N = w.images;
4650
+ w.images.length > 3 ? N = w.images.slice(2, 5) : i.shiftFirstImage && (N[0] = N[1]), V = N.reduce((Y, R, H) => (H === 0 && (h = `${R.storagePath}`), H > 0 && (Y += ", "), `${Y}${R.storagePath} ${H + 1}x`), "");
4651
+ }
4652
+ const X = h, le = V;
4653
+ return typeof o.value == "number" && A > o.value ? (h = "", V = "", { sizes: M, "data-src": X, "data-srcset": le }) : { src: h, srcset: V, sizes: M };
4654
+ }, P = [], Q = (w) => {
4655
+ if (typeof o.value == "string")
4656
+ return;
4657
+ const A = P[w];
4658
+ if (A && !A.src && (A.src = A.dataset.src || "", A.srcset = A.dataset.srcset || ""), w < o.value || w + 1 >= (i.images ?? []).length)
4659
+ return;
4660
+ const h = P[w + 1];
4661
+ h && !h.src && (h.src = (h == null ? void 0 : h.dataset.src) || "", h.srcset = (h == null ? void 0 : h.dataset.srcset) || "");
4662
+ };
4663
+ t({
4664
+ moveTo(w, A = 0, h = !0) {
4665
+ r.swiper && r.swiper.slideTo(w, A, h);
4666
+ }
4667
+ });
4668
+ const oe = F(null), se = (w) => {
4669
+ w === 0 && P && P[w] && Yt(() => {
4670
+ var A;
4671
+ (A = oe.value) == null || A.setAttribute("data-first-slide-loaded", "true"), a("firstSlideLoaded");
4672
+ });
4673
+ };
4674
+ return ze(async () => {
4675
+ var h, V, M, X, le, N, Y;
4676
+ if (k(), m.value) {
4677
+ const { Keyboard: R } = await import("./index-1oh628Cu.js");
4678
+ (h = r.swiperParams.modules) == null || h.push(R), r.swiperParams.keyboard = i.swiperOptions.keyboard;
4679
+ }
4680
+ if (l.value) {
4681
+ const { Pagination: R } = await import("./index-1oh628Cu.js");
4682
+ (V = r.swiperParams.modules) == null || V.push(R), await import("./pagination-l0sNRNKZ.js"), r.swiperParams.pagination = {
4683
+ el: ".swiper-pagination",
4684
+ renderFraction: (H, he) => `<div class="tw-rounded-xs tw-border-w-black tw-border tw-border-solid tw-px-3 tw-bg-white tw-pt-[3px] tw-pb-[3px]">
4685
+ <span data-cy="swiper-pagination-current" class="${H}"></span>
4686
+ /
4687
+ <span data-cy="swiper-pagination-total" class="${he}"></span>
4688
+ </div>`,
4689
+ ...typeof r.swiperParams.pagination == "boolean" ? {} : r.swiperParams.pagination
4690
+ };
4691
+ }
4692
+ if (f.value) {
4693
+ const { Navigation: R } = await import("./index-1oh628Cu.js");
4694
+ (M = r.swiperParams.modules) == null || M.push(R), await import("./navigation-l0sNRNKZ.js");
4695
+ const H = {
4696
+ ...i.swiperOptions.navigation.nextEl ?? {
4697
+ nextEl: ".swiper-button-next"
4698
+ },
4699
+ ...i.swiperOptions.navigation.prevEl ?? {
4700
+ prevEl: ".swiper-button-prev"
4701
+ }
4702
+ };
4703
+ r.swiperParams.navigation = {
4704
+ ...typeof i.swiperOptions.navigation == "object" ? i.swiperOptions.navigation : {},
4705
+ ...H
4706
+ };
4707
+ }
4708
+ if (u.value) {
4709
+ const { Autoplay: R } = await import("./index-1oh628Cu.js");
4710
+ (X = r.swiperParams.modules) == null || X.push(R), await import("./autoplay-l0sNRNKZ.js"), r.swiperParams.autoplay = i.swiperOptions.autoplay;
4711
+ }
4712
+ const w = {
4713
+ ...r.swiperParams,
4714
+ on: {
4715
+ slideChange: (R) => {
4716
+ Q(R.activeIndex), a("moved", { activeIndex: R.activeIndex });
4717
+ }
4718
+ }
4719
+ };
4720
+ let A = null;
4721
+ if (i.thumbSwiperOptions) {
4722
+ const { Thumbs: R, FreeMode: H, Controller: he } = await import("./index-1oh628Cu.js");
4723
+ (le = r.swiperParams.modules) == null || le.push(R), (N = r.swiperParams.modules) == null || N.push(he), await import("./thumbs-l0sNRNKZ.js"), await import("./free-mode-l0sNRNKZ.js"), await import("./controller-l0sNRNKZ.js"), A = new Ot(`#thumb_${i.id}`, {
4724
+ ...i.thumbSwiperOptions,
4725
+ modules: [H]
4726
+ }), w.thumbs = {
4727
+ swiper: A
4728
+ };
4729
+ }
4730
+ w.lazyPreloadPrevNext = 1, r.swiper = new Ot(`#${i.id}`, w), (Y = s.value) == null || Y.classList.remove("tw-hidden");
4731
+ }), (w, A) => (b(), g("div", {
4732
+ id: `root-${w.id}`,
4733
+ ref_key: "root",
4734
+ ref: oe,
4735
+ class: v(["swiper-carousel-root", w.$attrs["root-classes"]])
4736
+ }, [
4737
+ $("div", {
4738
+ id: w.id,
4739
+ "data-cy": w.$attrs["data-cy"],
4740
+ class: v(["swiper", w.$attrs["swiper-classes"]])
4741
+ }, [
4742
+ $("div", {
4743
+ ref_key: "swiperWrapper",
4744
+ ref: s,
4745
+ class: v(["swiper-wrapper", [
4746
+ w.$attrs["swiper-wrapper-classes"],
4747
+ p.value === "none" && "no-transition"
4748
+ ]]),
4749
+ onClick: A[0] || (A[0] = (h) => a("click"))
4750
+ }, [
4751
+ S(w.$slots, "swiper_slide", {}, () => [
4752
+ (b(!0), g(q, null, ee(w.images, (h, V) => (b(), g("div", {
4753
+ key: `swiper_${w.id}_${V}`,
4754
+ class: v(["swiper-slide", w.$attrs["swiper-slide-classes"]])
4755
+ }, [
4756
+ $("div", {
4757
+ class: v(["swiper-zoom-container", w.$attrs["swiper-zoom-container-classes"]])
4758
+ }, [
4759
+ w.backgroundImage ? T("", !0) : (b(), g("img", Tt({
4760
+ key: 0,
4761
+ ref_for: !0,
4762
+ ref: (M) => {
4763
+ P.push(M);
4764
+ },
4765
+ class: ["disable-select", [w.$attrs["slide-img-classes"] || h.classes]],
4766
+ "data-idx": `${w.id}-slide-img-${V}`
4767
+ }, I(h, V), {
4768
+ loading: w.lazyLoadImages || V >= o.value ? "lazy" : void 0,
4769
+ alt: h.alt,
4770
+ itemprop: "image",
4771
+ width: h.width,
4772
+ height: h.height,
4773
+ onLoad: (M) => se(V)
4774
+ }), null, 16, Tr))
4775
+ ], 2)
4776
+ ], 2))), 128))
4777
+ ])
4778
+ ], 2),
4779
+ l.value ? (b(), g("div", {
4780
+ key: 0,
4781
+ class: v([w.$attrs["swiper-pagination-classes"], "swiper-pagination [&.swiper-pagination-fraction]:tw-flex [&.swiper-pagination-fraction]:tw-justify-center"]),
4782
+ onClick: A[1] || (A[1] = B(() => {
4783
+ }, ["stop"]))
4784
+ }, null, 2)) : T("", !0),
4785
+ f.value ? (b(), g(q, { key: 1 }, [
4786
+ $("div", {
4787
+ class: "swiper-button-prev",
4788
+ "data-cy": "swiper-button-prev",
4789
+ onClick: A[2] || (A[2] = B(() => {
4790
+ }, ["stop"]))
4791
+ }),
4792
+ $("div", {
4793
+ class: "swiper-button-next",
4794
+ "data-cy": "swiper-button-next",
4795
+ onClick: A[3] || (A[3] = B(() => {
4796
+ }, ["stop"]))
4797
+ })
4798
+ ], 64)) : T("", !0)
4799
+ ], 10, Sr),
4800
+ w.thumbSwiperOptions ? (b(), g("div", {
4801
+ key: 0,
4802
+ id: `thumb_${w.id}`,
4803
+ thumbsSlider: "",
4804
+ class: v(["swiper", w.$attrs["thumb-swiper-classes"]])
4805
+ }, [
4806
+ $("div", {
4807
+ class: v(["swiper-wrapper", w.$attrs["thumb-swiper-wrapper-classes"]])
4808
+ }, [
4809
+ (b(!0), g(q, null, ee(w.images, (h, V) => (b(), g("div", {
4810
+ key: `thumb_${w.id}_${V}`,
4811
+ class: v(["swiper-slide", w.$attrs["thumb-img-wrapper-classes"]])
4812
+ }, [
4813
+ $("img", Tt({
4814
+ class: w.$attrs["thumb-img-classes"]
4815
+ }, I(h), {
4816
+ loading: V >= d.value ? "lazy" : void 0,
4817
+ alt: h.alt
4818
+ }), null, 16, Lr)
4819
+ ], 2))), 128))
4820
+ ], 2)
4821
+ ], 10, Or)) : T("", !0)
4822
+ ], 10, Er));
4823
+ }
4824
+ });
4825
+ export {
4826
+ bi as A,
4827
+ jr as B,
4828
+ Sa as C,
4829
+ Hr as D,
4830
+ Ur as E,
4831
+ Wr as F,
4832
+ Xr as G,
4833
+ Yr as H,
4834
+ xr as I,
4835
+ qr as J,
4836
+ Kr as K,
4837
+ Ui as L,
4838
+ Pr as M,
4839
+ Mr as N,
4840
+ ao as O,
4841
+ Gr as P,
4842
+ Jr as Q,
4843
+ ws as R,
4844
+ Cr as Z,
4845
+ Ar as _,
4846
+ Le as a,
4847
+ Xt as b,
4848
+ Wt as c,
4849
+ eo as d,
4850
+ it as e,
4851
+ no as f,
4852
+ vr as g,
4853
+ to as h,
4854
+ io as i,
4855
+ _r as j,
4856
+ Qr as k,
4857
+ Oi as l,
4858
+ so as m,
4859
+ Zr as n,
4860
+ Ai as o,
4861
+ Ir as p,
4862
+ Fi as q,
4863
+ Fr as r,
4864
+ Dr as s,
4865
+ ra as t,
4866
+ Rr as u,
4867
+ Nr as v,
4868
+ la as w,
4869
+ ht as x,
4870
+ zr as y,
4871
+ bt as z
4872
+ };