@useinsider/ab-components 0.0.26 → 0.0.28

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.
@@ -1,9 +1,9 @@
1
- import { defineComponent as T, computed as C, openBlock as p, createElementBlock as f, normalizeClass as s, unref as o, createBlock as q, createCommentVNode as x, toDisplayString as I, ref as v, reactive as ve, onMounted as ce, watch as oe, Fragment as pe, createElementVNode as y, withDirectives as ge, normalizeStyle as U, withModifiers as Te, vModelText as He, renderList as we, vShow as Ve, createVNode as ye, onBeforeUnmount as Le, renderSlot as D, withCtx as xe, nextTick as he, resolveDynamicComponent as Oe } from "vue";
2
- const Ne = "_button__size_default_vssfh_1", Ee = "_button__size_small_vssfh_8", We = "_button_vssfh_1", De = "_button__label_vssfh_60", Ae = "_button__solid_vssfh_72", Re = "_fill_vssfh_992", Y = {
3
- button__size_default: Ne,
4
- button__size_small: Ee,
5
- button: We,
6
- button__label: De,
1
+ import { defineComponent as Q, computed as V, createElementBlock as $, openBlock as y, normalizeClass as h, unref as d, createBlock as ge, createCommentVNode as L, toDisplayString as P, ref as A, reactive as Ye, onMounted as Pe, watch as te, Fragment as Ce, createElementVNode as B, withDirectives as qe, withModifiers as mt, normalizeStyle as Te, vModelText as ht, renderList as nt, vShow as gt, createVNode as wt, shallowRef as vt, getCurrentScope as bt, onScopeDispose as yt, shallowReadonly as ae, onBeforeMount as xt, nextTick as kt, onBeforeUnmount as Ct, Teleport as Tt, renderSlot as Ue } from "vue";
2
+ const $t = "_button__size_default_vssfh_1", St = "_button__size_small_vssfh_8", Ot = "_button_vssfh_1", Rt = "_button__label_vssfh_60", At = "_button__solid_vssfh_72", Et = "_fill_vssfh_992", ue = {
3
+ button__size_default: $t,
4
+ button__size_small: St,
5
+ button: Ot,
6
+ button__label: Rt,
7
7
  "button__solid-primary": "_button__solid-primary_vssfh_72",
8
8
  "no-hover-effect": "_no-hover-effect_vssfh_79",
9
9
  "button--selected": "_button--selected_vssfh_101",
@@ -31,9 +31,9 @@ const Ne = "_button__size_default_vssfh_1", Ee = "_button__size_small_vssfh_8",
31
31
  "button__outline-danger": "_button__outline-danger_vssfh_867",
32
32
  "button__outline-warning": "_button__outline-warning_vssfh_904",
33
33
  "button__outline-smart": "_button__outline-smart_vssfh_941",
34
- button__solid: Ae,
35
- fill: Re
36
- }, Ge = ["disabled"], fo = /* @__PURE__ */ T({
34
+ button__solid: At,
35
+ fill: Et
36
+ }, Lt = ["disabled"], Fo = /* @__PURE__ */ Q({
37
37
  __name: "Button",
38
38
  props: {
39
39
  variant: {},
@@ -48,82 +48,82 @@ const Ne = "_button__size_default_vssfh_1", Ee = "_button__size_small_vssfh_8",
48
48
  fill: { type: Boolean, default: !1 }
49
49
  },
50
50
  emits: ["click"],
51
- setup(u, { emit: n }) {
52
- const r = u, t = n, a = (d) => {
53
- r.disabled || t("click", d);
54
- }, _ = C(() => r.loadingStatus ? "loading-circle" : r.successStatus ? "line-check-natural" : r.leftIconName);
55
- return (d, e) => (p(), f("button", {
56
- class: s([
57
- o(Y).button,
58
- o(Y)[`button__${d.variant}`],
59
- o(Y)[`button__${d.variant}-${d.color}`],
60
- o(Y)[`button__size_${d.size}`],
61
- { [o(Y).fill]: d.fill }
51
+ setup(e, { emit: t }) {
52
+ const o = e, n = t, s = (i) => {
53
+ o.disabled || n("click", i);
54
+ }, l = V(() => o.loadingStatus ? "loading-circle" : o.successStatus ? "line-check-natural" : o.leftIconName);
55
+ return (i, r) => (y(), $("button", {
56
+ class: h([
57
+ d(ue).button,
58
+ d(ue)[`button__${i.variant}`],
59
+ d(ue)[`button__${i.variant}-${i.color}`],
60
+ d(ue)[`button__size_${i.size}`],
61
+ { [d(ue).fill]: i.fill }
62
62
  ]),
63
- disabled: r.disabled,
64
- onClick: a
63
+ disabled: o.disabled,
64
+ onClick: s
65
65
  }, [
66
- _.value ? (p(), q(o(Q), {
66
+ l.value ? (y(), ge(d(we), {
67
67
  key: 0,
68
- name: _.value
69
- }, null, 8, ["name"])) : x("", !0),
70
- d.label ? (p(), f("span", {
68
+ name: l.value
69
+ }, null, 8, ["name"])) : L("", !0),
70
+ i.label ? (y(), $("span", {
71
71
  key: 1,
72
- class: s(o(Y).button__label)
73
- }, I(d.label), 3)) : x("", !0),
74
- d.rightIconName ? (p(), q(o(Q), {
72
+ class: h(d(ue).button__label)
73
+ }, P(i.label), 3)) : L("", !0),
74
+ i.rightIconName ? (y(), ge(d(we), {
75
75
  key: 2,
76
- name: d.rightIconName
77
- }, null, 8, ["name"])) : x("", !0)
78
- ], 10, Ge));
76
+ name: i.rightIconName
77
+ }, null, 8, ["name"])) : L("", !0)
78
+ ], 10, Lt));
79
79
  }
80
- }), Ye = {
81
- mounted(u, n) {
82
- u.clickOutsideEvent = (r) => {
83
- const t = (n.value.exclude || []).filter((_) => _.value).map((_) => _.value);
84
- [u, ...t].some((_) => _ && (_ === r.target || _.contains(r.target))) || n.value.handler();
85
- }, document.addEventListener("click", u.clickOutsideEvent);
80
+ }), It = {
81
+ mounted(e, t) {
82
+ e.clickOutsideEvent = (o) => {
83
+ const n = (t.value.exclude || []).filter((l) => l.value).map((l) => l.value);
84
+ [e, ...n].some((l) => l && (l === o.target || l.contains(o.target))) || t.value.handler();
85
+ }, document.addEventListener("click", e.clickOutsideEvent);
86
86
  },
87
- unmounted(u) {
88
- u.clickOutsideEvent && document.removeEventListener("click", u.clickOutsideEvent);
87
+ unmounted(e) {
88
+ e.clickOutsideEvent && document.removeEventListener("click", e.clickOutsideEvent);
89
89
  }
90
- }, je = (u, n) => {
91
- var t;
92
- let r = 0;
93
- for (const a of u)
94
- if (a.toLowerCase() === ((t = n[r]) == null ? void 0 : t.toLowerCase()) && r++, r === n.length)
90
+ }, Mt = (e, t) => {
91
+ var n;
92
+ let o = 0;
93
+ for (const s of e)
94
+ if (s.toLowerCase() === ((n = t[o]) == null ? void 0 : n.toLowerCase()) && o++, o === t.length)
95
95
  return !0;
96
96
  return !1;
97
- }, Xe = (u, n, r) => {
98
- if (!r.trim())
99
- return u;
100
- const t = r.toLowerCase();
101
- return u.filter((a) => {
102
- const _ = String(a[n]);
103
- return je(_.toLowerCase(), t);
104
- }).sort((a, _) => {
105
- const d = String(a[n]).toLowerCase(), e = String(_[n]).toLowerCase();
106
- return d === t ? -1 : e === t ? 1 : d.startsWith(t) && !e.startsWith(t) ? -1 : !d.startsWith(t) && e.startsWith(t) ? 1 : d.length - e.length;
97
+ }, Vt = (e, t, o) => {
98
+ if (!o.trim())
99
+ return e;
100
+ const n = o.toLowerCase();
101
+ return e.filter((s) => {
102
+ const l = String(s[t]);
103
+ return Mt(l.toLowerCase(), n);
104
+ }).sort((s, l) => {
105
+ const i = String(s[t]).toLowerCase(), r = String(l[t]).toLowerCase();
106
+ return i === n ? -1 : r === n ? 1 : i.startsWith(n) && !r.startsWith(n) ? -1 : !i.startsWith(n) && r.startsWith(n) ? 1 : i.length - r.length;
107
107
  });
108
- }, Fe = "_menu_1krpz_1", Ue = "_dropdown_1krpz_1", qe = "_dropdown__valueContent_1krpz_50", Qe = "_dropdown__label_1krpz_61", Ze = "_dropdown__value_1krpz_50", Je = "_dropdown__placeholder_1krpz_69", Ke = "_dropdown__arrowIcon_1krpz_77", et = "_menu__searchContainer_1krpz_92", tt = "_menu__searchInputWrap_1krpz_96", ot = "_menu__searchInput_1krpz_96", nt = "_menu__errorMessage_1krpz_118", rt = "_menu__addButton_1krpz_125", at = "_menu__itemContainer_1krpz_133", lt = "_menu__item_1krpz_133", k = {
109
- menu: Fe,
110
- dropdown: Ue,
111
- dropdown__valueContent: qe,
112
- "dropdown__valueContent--open": "_dropdown__valueContent--open_1krpz_58",
113
- dropdown__label: Qe,
114
- dropdown__value: Ze,
115
- dropdown__placeholder: Je,
116
- dropdown__arrowIcon: Ke,
117
- menu__searchContainer: et,
118
- menu__searchInputWrap: tt,
119
- menu__searchInput: ot,
120
- "menu__searchInput--error": "_menu__searchInput--error_1krpz_115",
121
- menu__errorMessage: nt,
122
- menu__addButton: rt,
123
- menu__itemContainer: at,
124
- menu__item: lt,
125
- "menu__item--active": "_menu__item--active_1krpz_171"
126
- }, st = ["for"], _t = ["placeholder"], it = ["onClick"], mo = /* @__PURE__ */ T({
108
+ }, Bt = "_menu_1sfnf_1", zt = "_dropdown_1sfnf_1", Pt = "_dropdown__valueContent_1sfnf_50", Dt = "_dropdown__label_1sfnf_61", Ft = "_dropdown__value_1sfnf_50", Ht = "_dropdown__placeholder_1sfnf_69", Nt = "_dropdown__arrowIcon_1sfnf_77", Wt = "_menu__searchContainer_1sfnf_92", jt = "_menu__searchInputWrap_1sfnf_96", Gt = "_menu__searchInput_1sfnf_96", Yt = "_menu__errorMessage_1sfnf_115", qt = "_menu__addButton_1sfnf_122", Ut = "_menu__itemContainer_1sfnf_130", Xt = "_menu__item_1sfnf_130", M = {
109
+ menu: Bt,
110
+ dropdown: zt,
111
+ dropdown__valueContent: Pt,
112
+ "dropdown__valueContent--open": "_dropdown__valueContent--open_1sfnf_58",
113
+ dropdown__label: Dt,
114
+ dropdown__value: Ft,
115
+ dropdown__placeholder: Ht,
116
+ dropdown__arrowIcon: Nt,
117
+ menu__searchContainer: Wt,
118
+ menu__searchInputWrap: jt,
119
+ menu__searchInput: Gt,
120
+ "menu__searchInput--error": "_menu__searchInput--error_1sfnf_112",
121
+ menu__errorMessage: Yt,
122
+ menu__addButton: qt,
123
+ menu__itemContainer: Ut,
124
+ menu__item: Xt,
125
+ "menu__item--active": "_menu__item--active_1sfnf_169"
126
+ }, Kt = ["for"], Qt = ["placeholder"], Zt = ["onClick"], Ho = /* @__PURE__ */ Q({
127
127
  __name: "DropdownMenu",
128
128
  props: {
129
129
  id: {},
@@ -139,213 +139,213 @@ const Ne = "_button__size_default_vssfh_1", Ee = "_button__size_small_vssfh_8",
139
139
  validateAddItem: { type: Function, default: () => null }
140
140
  },
141
141
  emits: ["update:modelValue", "add-error", "item-added", "select-item"],
142
- setup(u, { emit: n }) {
143
- const r = Ye, t = u, a = n, _ = v(), d = v(), e = v(!1), l = v(null), b = v(""), c = v(null), P = v({ x: 0, y: 0, width: 0, shouldOpenUp: !1, height: t.menuHeight }), H = ve([...t.items]), B = ve([...t.items]), G = () => {
144
- if (!_.value)
142
+ setup(e, { emit: t }) {
143
+ const o = It, n = e, s = t, l = A(), i = A(), r = A(!1), a = A(null), u = A(""), c = A(null), _ = A({ x: 0, y: 0, width: 0, shouldOpenUp: !1, height: n.menuHeight }), p = Ye([...n.items]), f = Ye([...n.items]), m = () => {
144
+ if (!l.value)
145
145
  return;
146
- const { offsetTop: m, offsetLeft: g, offsetWidth: z } = _.value, N = window.innerHeight, j = m + _.value.offsetHeight, ee = j + t.menuHeight > N;
147
- P.value = {
148
- x: g + window.scrollX,
149
- y: ee ? m + window.scrollY : j + window.scrollY,
150
- width: z,
151
- shouldOpenUp: ee,
152
- height: t.menuHeight
146
+ const { offsetTop: w, offsetLeft: S, offsetWidth: R } = l.value, D = window.innerHeight, q = w + l.value.offsetHeight, E = q + n.menuHeight > D;
147
+ _.value = {
148
+ x: S + window.scrollX,
149
+ y: E ? w + window.scrollY : q + window.scrollY,
150
+ width: R,
151
+ shouldOpenUp: E,
152
+ height: n.menuHeight
153
153
  };
154
- }, S = () => {
155
- G(), e.value = !e.value;
156
- }, O = () => {
157
- c.value = null, b.value = "", H.splice(0, H.length, ...B);
158
- }, Z = () => {
159
- e.value = !1, O();
160
- }, re = (m) => {
161
- l.value = m, a("select-item", m), a("update:modelValue", m.value), Z();
162
- }, A = () => {
163
- const m = b.value.trim(), g = t.validateAddItem(m, B);
164
- if (g) {
165
- c.value = g, a("add-error", g);
154
+ }, v = () => {
155
+ m(), r.value = !r.value;
156
+ }, b = () => {
157
+ c.value = null, u.value = "", p.splice(0, p.length, ...f);
158
+ }, g = () => {
159
+ r.value = !1, b();
160
+ }, k = (w) => {
161
+ a.value = w, s("select-item", w), s("update:modelValue", w.value), g();
162
+ }, C = () => {
163
+ const w = u.value.trim(), S = n.validateAddItem(w, f);
164
+ if (S) {
165
+ c.value = S, s("add-error", S);
166
166
  return;
167
167
  }
168
- const z = {
169
- text: m,
170
- value: m
168
+ const R = {
169
+ text: w,
170
+ value: w
171
171
  };
172
- B.push(z), O(), a("item-added", z);
173
- }, ae = () => {
174
- const m = Xe(B, "text", b.value);
175
- H.splice(0, H.length, ...m);
176
- }, J = () => {
172
+ f.push(R), b(), s("item-added", R);
173
+ }, O = () => {
174
+ const w = Vt(f, "text", u.value);
175
+ p.splice(0, p.length, ...w);
176
+ }, x = () => {
177
177
  c.value = "";
178
- }, le = C(() => ({
179
- top: P.value.shouldOpenUp ? `${P.value.y - 10}px` : `${P.value.y}px`,
180
- left: `${P.value.x}px`,
181
- width: `${P.value.width}px`,
182
- height: `${t.menuHeight}px`
178
+ }, I = V(() => ({
179
+ top: _.value.shouldOpenUp ? `${_.value.y - 10}px` : `${_.value.y}px`,
180
+ left: `${_.value.x}px`,
181
+ width: `${_.value.width}px`,
182
+ height: `${n.menuHeight}px`
183
183
  }));
184
- ce(() => {
185
- if (G(), t.modelValue) {
186
- const m = B.find((g) => g.value === t.modelValue);
187
- m && (l.value = m);
184
+ Pe(() => {
185
+ if (m(), n.modelValue) {
186
+ const w = f.find((S) => S.value === n.modelValue);
187
+ w && (a.value = w);
188
188
  }
189
189
  });
190
- const K = C(() => l.value ? l.value.text : "");
191
- oe(() => t.modelValue, (m) => {
192
- var g;
193
- if (((g = l.value) == null ? void 0 : g.value) !== m) {
194
- const z = B.find((N) => N.value === m);
195
- z && (l.value = z);
190
+ const T = V(() => a.value ? a.value.text : "");
191
+ te(() => n.modelValue, (w) => {
192
+ var S;
193
+ if (((S = a.value) == null ? void 0 : S.value) !== w) {
194
+ const R = f.find((D) => D.value === w);
195
+ R && (a.value = R);
196
196
  }
197
- }), oe(
198
- () => t.items,
199
- (m) => {
200
- B.splice(0, B.length, ...m), H.splice(0, H.length, ...m);
197
+ }), te(
198
+ () => n.items,
199
+ (w) => {
200
+ f.splice(0, f.length, ...w), p.splice(0, p.length, ...w);
201
201
  },
202
202
  { deep: !0 }
203
203
  );
204
- const se = v({ handler: Z, exclude: [_, d] });
205
- return (m, g) => (p(), f(pe, null, [
206
- y("div", {
204
+ const z = A({ handler: g, exclude: [l, i] });
205
+ return (w, S) => (y(), $(Ce, null, [
206
+ B("div", {
207
207
  ref_key: "dropdownRef",
208
- ref: _,
209
- class: s(o(k).dropdown)
208
+ ref: l,
209
+ class: h(d(M).dropdown)
210
210
  }, [
211
- m.label ? (p(), f("label", {
211
+ w.label ? (y(), $("label", {
212
212
  key: 0,
213
- class: s(o(k).dropdown__label),
214
- for: m.id
215
- }, I(m.label), 11, st)) : x("", !0),
216
- y("button", {
217
- class: s([
218
- o(k).dropdown__valueContent,
213
+ class: h(d(M).dropdown__label),
214
+ for: w.id
215
+ }, P(w.label), 11, Kt)) : L("", !0),
216
+ B("button", {
217
+ class: h([
218
+ d(M).dropdown__valueContent,
219
219
  {
220
- [o(k)["dropdown__valueContent--open"]]: e.value
220
+ [d(M)["dropdown__valueContent--open"]]: r.value
221
221
  }
222
222
  ]),
223
- onClick: S
223
+ onClick: v
224
224
  }, [
225
- y("span", {
226
- class: s(o(k).dropdown__value)
227
- }, I(K.value), 3),
228
- m.placeholder && !K.value ? (p(), f("span", {
225
+ B("span", {
226
+ class: h(d(M).dropdown__value)
227
+ }, P(T.value), 3),
228
+ w.placeholder && !T.value ? (y(), $("span", {
229
229
  key: 0,
230
- class: s(o(k).dropdown__placeholder)
231
- }, I(m.placeholder), 3)) : x("", !0),
232
- (p(), f("svg", {
230
+ class: h(d(M).dropdown__placeholder)
231
+ }, P(w.placeholder), 3)) : L("", !0),
232
+ (y(), $("svg", {
233
233
  fill: "none",
234
234
  height: "17",
235
235
  viewBox: "0 0 16 17",
236
236
  width: "16",
237
237
  xmlns: "http://www.w3.org/2000/svg",
238
- class: s(o(k).dropdown__arrowIcon)
239
- }, g[2] || (g[2] = [
240
- y("path", {
238
+ class: h(d(M).dropdown__arrowIcon)
239
+ }, S[2] || (S[2] = [
240
+ B("path", {
241
241
  d: "M8 11.2021L4.5359 6.70215L11.4641 6.70215L8 11.2021Z",
242
242
  fill: "#91949F"
243
243
  }, null, -1)
244
244
  ]), 2))
245
245
  ], 2)
246
246
  ], 2),
247
- ge((p(), f("div", {
247
+ qe((y(), $("div", {
248
248
  ref_key: "menuRef",
249
- ref: d,
250
- class: s(o(k).menu),
251
- style: U(le.value),
252
- onClick: g[1] || (g[1] = Te(() => {
249
+ ref: i,
250
+ class: h(d(M).menu),
251
+ style: Te(I.value),
252
+ onClick: S[1] || (S[1] = mt(() => {
253
253
  }, ["prevent"]))
254
254
  }, [
255
- t.searchable ? (p(), f("div", {
255
+ n.searchable ? (y(), $("div", {
256
256
  key: 0,
257
- class: s(o(k).menu__searchContainer)
257
+ class: h(d(M).menu__searchContainer)
258
258
  }, [
259
- y("div", {
260
- class: s(o(k).menu__searchInputWrap)
259
+ B("div", {
260
+ class: h(d(M).menu__searchInputWrap)
261
261
  }, [
262
- ge(y("input", {
262
+ qe(B("input", {
263
263
  type: "text",
264
- class: s([
265
- o(k).menu__searchInput,
264
+ class: h([
265
+ d(M).menu__searchInput,
266
266
  {
267
- [o(k)["menu__searchInput--error"]]: c.value
267
+ [d(M)["menu__searchInput--error"]]: c.value
268
268
  }
269
269
  ]),
270
- placeholder: m.searchPlaceHolder,
271
- "onUpdate:modelValue": g[0] || (g[0] = (z) => b.value = z),
272
- onFocus: J,
273
- onInput: ae
274
- }, null, 42, _t), [
275
- [He, b.value]
270
+ placeholder: w.searchPlaceHolder,
271
+ "onUpdate:modelValue": S[0] || (S[0] = (R) => u.value = R),
272
+ onFocus: x,
273
+ onInput: O
274
+ }, null, 42, Qt), [
275
+ [ht, u.value]
276
276
  ]),
277
- c.value ? (p(), f("p", {
277
+ c.value ? (y(), $("p", {
278
278
  key: 0,
279
- class: s(o(k).menu__errorMessage)
280
- }, I(c.value), 3)) : x("", !0)
279
+ class: h(d(M).menu__errorMessage)
280
+ }, P(c.value), 3)) : L("", !0)
281
281
  ], 2),
282
- t.addable ? (p(), f("button", {
282
+ n.addable ? (y(), $("button", {
283
283
  key: 0,
284
- class: s(o(k).menu__addButton),
285
- onClick: A
286
- }, I(m.addButtonText), 3)) : x("", !0)
287
- ], 2)) : x("", !0),
288
- y("ul", {
289
- class: s(o(k).menu__itemContainer)
284
+ class: h(d(M).menu__addButton),
285
+ onClick: C
286
+ }, P(w.addButtonText), 3)) : L("", !0)
287
+ ], 2)) : L("", !0),
288
+ B("ul", {
289
+ class: h(d(M).menu__itemContainer)
290
290
  }, [
291
- (p(!0), f(pe, null, we(H, (z, N) => (p(), f("li", {
292
- key: `${z.value}-${N}`,
293
- class: s([
294
- o(k).menu__item,
291
+ (y(!0), $(Ce, null, nt(p, (R, D) => (y(), $("li", {
292
+ key: `${R.value}-${D}`,
293
+ class: h([
294
+ d(M).menu__item,
295
295
  {
296
- [o(k)["menu__item--active"]]: l.value && z.value === l.value.value
296
+ [d(M)["menu__item--active"]]: a.value && R.value === a.value.value
297
297
  }
298
298
  ]),
299
- onClick: (j) => re(z)
300
- }, I(z.text), 11, it))), 128))
299
+ onClick: (q) => k(R)
300
+ }, P(R.text), 11, Zt))), 128))
301
301
  ], 2)
302
302
  ], 6)), [
303
- [Ve, e.value],
304
- [o(r), se.value]
303
+ [gt, r.value],
304
+ [d(o), z.value]
305
305
  ])
306
306
  ], 64));
307
307
  }
308
- }), ut = ["fill", "height", "width"], pt = ["xlink:href"], ct = /* @__PURE__ */ T({
308
+ }), Jt = ["fill", "height", "width"], en = ["xlink:href"], tn = /* @__PURE__ */ Q({
309
309
  __name: "Icon",
310
310
  props: {
311
311
  name: {},
312
312
  size: { default: 16 },
313
313
  color: {}
314
314
  },
315
- setup(u) {
316
- const n = u, r = C(() => typeof n.size == "number" ? `${n.size}px` : n.size);
317
- return (t, a) => (p(), f("svg", {
315
+ setup(e) {
316
+ const t = e, o = V(() => typeof t.size == "number" ? `${t.size}px` : t.size);
317
+ return (n, s) => (y(), $("svg", {
318
318
  class: "icon",
319
- fill: t.color || "currentColor",
320
- height: r.value,
321
- width: r.value
319
+ fill: n.color || "currentColor",
320
+ height: o.value,
321
+ width: o.value
322
322
  }, [
323
- y("use", {
324
- "xlink:href": `#${t.name}`
325
- }, null, 8, pt)
326
- ], 8, ut));
323
+ B("use", {
324
+ "xlink:href": `#${n.name}`
325
+ }, null, 8, en)
326
+ ], 8, Jt));
327
327
  }
328
- }), dt = (u, n) => {
329
- const r = u.__vccOpts || u;
330
- for (const [t, a] of n)
331
- r[t] = a;
332
- return r;
333
- }, Q = /* @__PURE__ */ dt(ct, [["__scopeId", "data-v-f04c8857"]]), ft = "_container_sgker_1", mt = "_container__text_sgker_52", bt = "_container__default_sgker_56", vt = "_container__warning_sgker_64", gt = "_container__alert_sgker_72", ht = "_container__success_sgker_80", ue = {
334
- container: ft,
335
- container__text: mt,
336
- container__default: bt,
337
- container__warning: vt,
338
- container__alert: gt,
339
- container__success: ht
340
- }, bo = /* @__PURE__ */ T({
328
+ }), nn = (e, t) => {
329
+ const o = e.__vccOpts || e;
330
+ for (const [n, s] of t)
331
+ o[n] = s;
332
+ return o;
333
+ }, we = /* @__PURE__ */ nn(tn, [["__scopeId", "data-v-f04c8857"]]), on = "_container_sgker_1", rn = "_container__text_sgker_52", sn = "_container__default_sgker_56", ln = "_container__warning_sgker_64", an = "_container__alert_sgker_72", un = "_container__success_sgker_80", Le = {
334
+ container: on,
335
+ container__text: rn,
336
+ container__default: sn,
337
+ container__warning: ln,
338
+ container__alert: an,
339
+ container__success: un
340
+ }, No = /* @__PURE__ */ Q({
341
341
  __name: "OnPageMessage",
342
342
  props: {
343
343
  variant: { default: "default" },
344
344
  text: {}
345
345
  },
346
- setup(u) {
347
- const n = u, r = C(() => {
348
- switch (n.variant) {
346
+ setup(e) {
347
+ const t = e, o = V(() => {
348
+ switch (t.variant) {
349
349
  case "alert":
350
350
  return "icon-info-box-error";
351
351
  case "warning":
@@ -356,38 +356,38 @@ const Ne = "_button__size_default_vssfh_1", Ee = "_button__size_small_vssfh_8",
356
356
  return "filled-info-circle";
357
357
  }
358
358
  });
359
- return (t, a) => (p(), f("div", {
360
- class: s([
361
- o(ue).container,
362
- o(ue)[`container__${t.variant}`]
359
+ return (n, s) => (y(), $("div", {
360
+ class: h([
361
+ d(Le).container,
362
+ d(Le)[`container__${n.variant}`]
363
363
  ])
364
364
  }, [
365
- ye(Q, {
366
- name: r.value,
365
+ wt(we, {
366
+ name: o.value,
367
367
  size: 24
368
368
  }, null, 8, ["name"]),
369
- y("span", {
370
- class: s(o(ue).container__text)
371
- }, I(t.text), 3)
369
+ B("span", {
370
+ class: h(d(Le).container__text)
371
+ }, P(n.text), 3)
372
372
  ], 2));
373
373
  }
374
- }), wt = "_button__size_default_1663t_1", yt = "_button__size_small_1663t_8", xt = "_button_1663t_1", kt = "_button__label_1663t_58", zt = "_button__solid_1663t_197", $t = "_segmentGroup_1663t_204", St = "_fill_1663t_226", V = {
375
- button__size_default: wt,
376
- button__size_small: yt,
377
- button: xt,
378
- button__label: kt,
374
+ }), cn = "_button__size_default_1663t_1", fn = "_button__size_small_1663t_8", dn = "_button_1663t_1", _n = "_button__label_1663t_58", pn = "_button__solid_1663t_197", mn = "_segmentGroup_1663t_204", hn = "_fill_1663t_226", X = {
375
+ button__size_default: cn,
376
+ button__size_small: fn,
377
+ button: dn,
378
+ button__label: _n,
379
379
  "button--primary": "_button--primary_1663t_75",
380
380
  "button--selected": "_button--selected_1663t_85",
381
381
  "button--secondary": "_button--secondary_1663t_98",
382
382
  "button--danger": "_button--danger_1663t_121",
383
383
  "button--warning": "_button--warning_1663t_144",
384
384
  "button--smart": "_button--smart_1663t_167",
385
- button__solid: zt,
386
- segmentGroup: $t,
385
+ button__solid: pn,
386
+ segmentGroup: mn,
387
387
  "segmentGroup--vertical": "_segmentGroup--vertical_1663t_207",
388
388
  "segmentGroup--horizontal": "_segmentGroup--horizontal_1663t_216",
389
- fill: St
390
- }, Ct = ["disabled", "onClick"], vo = /* @__PURE__ */ T({
389
+ fill: hn
390
+ }, gn = ["disabled", "onClick"], Wo = /* @__PURE__ */ Q({
391
391
  __name: "SegmentButton",
392
392
  props: {
393
393
  color: {},
@@ -399,57 +399,57 @@ const Ne = "_button__size_default_vssfh_1", Ee = "_button__size_small_vssfh_8",
399
399
  modelValue: {}
400
400
  },
401
401
  emits: ["update:modelValue", "click"],
402
- setup(u, { emit: n }) {
403
- const r = u, t = n, a = v(r.modelValue || ""), _ = (e) => {
404
- r.disabled || e.disabled || (a.value = e.value, t("update:modelValue", e.value), t("click", e.value));
402
+ setup(e, { emit: t }) {
403
+ const o = e, n = t, s = A(o.modelValue || ""), l = (r) => {
404
+ o.disabled || r.disabled || (s.value = r.value, n("update:modelValue", r.value), n("click", r.value));
405
405
  };
406
- oe(() => r.modelValue, (e) => {
407
- a.value !== e && (a.value = e || "");
406
+ te(() => o.modelValue, (r) => {
407
+ s.value !== r && (s.value = r || "");
408
408
  });
409
- const d = v([...r.segments]);
410
- return oe(() => r.segments, (e) => {
411
- d.value = [...e], e.some((l) => l.value === a.value) || (a.value = "", t("update:modelValue", ""));
412
- }, { deep: !0 }), (e, l) => (p(), f("div", {
413
- class: s([
414
- o(V).segmentGroup,
415
- o(V)[`segmentGroup--${e.align}`],
416
- { [o(V).fill]: e.fill }
409
+ const i = A([...o.segments]);
410
+ return te(() => o.segments, (r) => {
411
+ i.value = [...r], r.some((a) => a.value === s.value) || (s.value = "", n("update:modelValue", ""));
412
+ }, { deep: !0 }), (r, a) => (y(), $("div", {
413
+ class: h([
414
+ d(X).segmentGroup,
415
+ d(X)[`segmentGroup--${r.align}`],
416
+ { [d(X).fill]: r.fill }
417
417
  ])
418
418
  }, [
419
- (p(!0), f(pe, null, we(d.value, (b, c) => (p(), f("button", {
420
- key: `${b.value}-${c}`,
421
- class: s([
422
- o(V).button,
423
- o(V)[`button--${e.color}`],
424
- o(V)[`button__size_${e.size}`],
425
- o(V).fill,
419
+ (y(!0), $(Ce, null, nt(i.value, (u, c) => (y(), $("button", {
420
+ key: `${u.value}-${c}`,
421
+ class: h([
422
+ d(X).button,
423
+ d(X)[`button--${r.color}`],
424
+ d(X)[`button__size_${r.size}`],
425
+ d(X).fill,
426
426
  {
427
- [o(V)["button--selected"]]: b.value === a.value
427
+ [d(X)["button--selected"]]: u.value === s.value
428
428
  }
429
429
  ]),
430
- disabled: b.disabled || r.disabled,
431
- onClick: (P) => _(b)
430
+ disabled: u.disabled || o.disabled,
431
+ onClick: (_) => l(u)
432
432
  }, [
433
- b.icon ? (p(), q(o(Q), {
433
+ u.icon ? (y(), ge(d(we), {
434
434
  key: 0,
435
- name: b.icon
436
- }, null, 8, ["name"])) : x("", !0),
437
- b.label ? (p(), f("span", {
435
+ name: u.icon
436
+ }, null, 8, ["name"])) : L("", !0),
437
+ u.label ? (y(), $("span", {
438
438
  key: 1,
439
- class: s(o(V).button__label)
440
- }, I(b.label), 3)) : x("", !0)
441
- ], 10, Ct))), 128))
439
+ class: h(d(X).button__label)
440
+ }, P(u.label), 3)) : L("", !0)
441
+ ], 10, gn))), 128))
442
442
  ], 2));
443
443
  }
444
- }), It = "_wrapper__counter_1iczg_1", Bt = "_wrapper__errorMessage_1iczg_1", Pt = "_wrapper__label_1iczg_1", Mt = "_wrapper__field_1iczg_1", Tt = "_wrapper_1iczg_1", Ht = "_wrapper__bottom_1iczg_88", L = {
445
- wrapper__counter: It,
446
- wrapper__errorMessage: Bt,
447
- wrapper__label: Pt,
448
- wrapper__field: Mt,
449
- wrapper: Tt,
450
- wrapper__bottom: Ht,
451
- "wrapper--error": "_wrapper--error_1iczg_101"
452
- }, Vt = ["for"], Lt = ["id", "maxlength", "name", "placeholder", "value"], Ot = ["id", "maxlength", "name", "placeholder", "value"], go = /* @__PURE__ */ T({
444
+ }), wn = "_wrapper__counter_rlffg_1", vn = "_wrapper__errorMessage_rlffg_1", bn = "_wrapper__label_rlffg_1", yn = "_wrapper__field_rlffg_1", xn = "_wrapper_rlffg_1", kn = "_wrapper__bottom_rlffg_92", K = {
445
+ wrapper__counter: wn,
446
+ wrapper__errorMessage: vn,
447
+ wrapper__label: bn,
448
+ wrapper__field: yn,
449
+ wrapper: xn,
450
+ wrapper__bottom: kn,
451
+ "wrapper--error": "_wrapper--error_rlffg_105"
452
+ }, Cn = ["for"], Tn = ["id", "maxlength", "name", "placeholder", "value"], $n = ["id", "maxlength", "name", "placeholder", "value"], jo = /* @__PURE__ */ Q({
453
453
  __name: "TextInput",
454
454
  props: {
455
455
  id: {},
@@ -465,96 +465,96 @@ const Ne = "_button__size_default_vssfh_1", Ee = "_button__size_small_vssfh_8",
465
465
  counter: { type: Boolean }
466
466
  },
467
467
  emits: ["update:modelValue", "input", "change", "paste", "focus", "blur"],
468
- setup(u, { emit: n }) {
469
- const r = u, t = n, a = v(null), _ = () => {
470
- if (r.autoGrow && a.value) {
471
- a.value.style.height = "";
472
- const e = Math.min(a.value.scrollHeight, r.maxHeight || a.value.scrollHeight);
473
- a.value.style.height = `${e}px`;
468
+ setup(e, { emit: t }) {
469
+ const o = e, n = t, s = A(null), l = () => {
470
+ if (o.autoGrow && s.value) {
471
+ s.value.style.height = "";
472
+ const r = Math.min(s.value.scrollHeight, o.maxHeight || s.value.scrollHeight);
473
+ s.value.style.height = `${r}px`;
474
474
  }
475
- }, d = (e) => {
476
- const l = e.target;
477
- t("input", e), t("update:modelValue", l.value), _();
475
+ }, i = (r) => {
476
+ const a = r.target;
477
+ n("input", r), n("update:modelValue", a.value), l();
478
478
  };
479
- return ce(() => {
480
- _();
481
- }), (e, l) => {
482
- var b;
483
- return p(), f("div", {
484
- class: s(o(L).wrapper)
479
+ return Pe(() => {
480
+ l();
481
+ }), (r, a) => {
482
+ var u;
483
+ return y(), $("div", {
484
+ class: h(d(K).wrapper)
485
485
  }, [
486
- e.label ? (p(), f("label", {
486
+ r.label ? (y(), $("label", {
487
487
  key: 0,
488
- class: s(o(L).wrapper__label),
489
- for: e.id
490
- }, I(e.label), 11, Vt)) : x("", !0),
491
- e.multiline ? (p(), f("textarea", {
488
+ class: h(d(K).wrapper__label),
489
+ for: r.id
490
+ }, P(r.label), 11, Cn)) : L("", !0),
491
+ r.multiline ? (y(), $("textarea", {
492
492
  key: 1,
493
- id: e.id,
493
+ id: r.id,
494
494
  ref_key: "textareaRef",
495
- ref: a,
496
- class: s([
497
- o(L).wrapper__field,
495
+ ref: s,
496
+ class: h([
497
+ d(K).wrapper__field,
498
498
  {
499
- [o(L)["wrapper--error"]]: e.error
499
+ [d(K)["wrapper--error"]]: r.error
500
500
  }
501
501
  ]),
502
- maxlength: e.maxLength,
503
- name: e.name,
504
- placeholder: e.placeholder,
505
- style: U(e.maxHeight ? { maxHeight: `${e.maxHeight}px` } : void 0),
506
- value: e.modelValue,
507
- onBlur: l[0] || (l[0] = (c) => t("blur", c)),
508
- onChange: l[1] || (l[1] = (c) => e.$emit("change", c)),
509
- onFocus: l[2] || (l[2] = (c) => t("focus", c)),
510
- onInput: d,
511
- onPaste: l[3] || (l[3] = (c) => t("paste", c))
512
- }, null, 46, Lt)) : (p(), f("input", {
502
+ maxlength: r.maxLength,
503
+ name: r.name,
504
+ placeholder: r.placeholder,
505
+ style: Te(r.maxHeight ? { maxHeight: `${r.maxHeight}px` } : void 0),
506
+ value: r.modelValue,
507
+ onBlur: a[0] || (a[0] = (c) => n("blur", c)),
508
+ onChange: a[1] || (a[1] = (c) => r.$emit("change", c)),
509
+ onFocus: a[2] || (a[2] = (c) => n("focus", c)),
510
+ onInput: i,
511
+ onPaste: a[3] || (a[3] = (c) => n("paste", c))
512
+ }, null, 46, Tn)) : (y(), $("input", {
513
513
  key: 2,
514
- id: e.id,
514
+ id: r.id,
515
515
  type: "text",
516
- class: s([
517
- o(L).wrapper__field,
516
+ class: h([
517
+ d(K).wrapper__field,
518
518
  {
519
- [o(L)["wrapper--error"]]: e.error
519
+ [d(K)["wrapper--error"]]: r.error
520
520
  }
521
521
  ]),
522
- maxlength: e.maxLength,
523
- name: e.name,
524
- placeholder: e.placeholder,
525
- value: e.modelValue,
526
- onBlur: l[4] || (l[4] = (c) => t("blur", c)),
527
- onChange: l[5] || (l[5] = (c) => e.$emit("change", c)),
528
- onFocus: l[6] || (l[6] = (c) => t("focus", c)),
529
- onInput: d,
530
- onPaste: l[7] || (l[7] = (c) => t("paste", c))
531
- }, null, 42, Ot)),
532
- y("div", {
533
- class: s(o(L).wrapper__bottom)
522
+ maxlength: r.maxLength,
523
+ name: r.name,
524
+ placeholder: r.placeholder,
525
+ value: r.modelValue,
526
+ onBlur: a[4] || (a[4] = (c) => n("blur", c)),
527
+ onChange: a[5] || (a[5] = (c) => r.$emit("change", c)),
528
+ onFocus: a[6] || (a[6] = (c) => n("focus", c)),
529
+ onInput: i,
530
+ onPaste: a[7] || (a[7] = (c) => n("paste", c))
531
+ }, null, 42, $n)),
532
+ B("div", {
533
+ class: h(d(K).wrapper__bottom)
534
534
  }, [
535
- e.error ? (p(), f("div", {
535
+ r.error ? (y(), $("div", {
536
536
  key: 0,
537
- class: s(o(L).wrapper__errorMessage)
538
- }, I(e.error), 3)) : x("", !0),
539
- e.counter ? (p(), f("div", {
537
+ class: h(d(K).wrapper__errorMessage)
538
+ }, P(r.error), 3)) : L("", !0),
539
+ r.counter ? (y(), $("div", {
540
540
  key: 1,
541
- class: s(o(L).wrapper__counter)
542
- }, I(((b = e.modelValue) == null ? void 0 : b.toString().length) || 0), 3)) : x("", !0)
541
+ class: h(d(K).wrapper__counter)
542
+ }, P(((u = r.modelValue) == null ? void 0 : u.toString().length) || 0), 3)) : L("", !0)
543
543
  ], 2)
544
544
  ], 2);
545
545
  };
546
546
  }
547
- }), Nt = "_wrapper__counter_86wjx_1", Et = "_wrapper__errorMessage_86wjx_1", Wt = "_wrapper__label_86wjx_1", Dt = "_wrapper__field_86wjx_8", At = "_wrapper_86wjx_1", Rt = "_wrapper__size_default_86wjx_52", Gt = "_wrapper__size_small_86wjx_55", Yt = "_wrapper__bottom_86wjx_92", E = {
548
- wrapper__counter: Nt,
549
- wrapper__errorMessage: Et,
550
- wrapper__label: Wt,
551
- wrapper__field: Dt,
552
- wrapper: At,
553
- wrapper__size_default: Rt,
554
- wrapper__size_small: Gt,
555
- wrapper__bottom: Yt,
547
+ }), Sn = "_wrapper__counter_86wjx_1", On = "_wrapper__errorMessage_86wjx_1", Rn = "_wrapper__label_86wjx_1", An = "_wrapper__field_86wjx_8", En = "_wrapper_86wjx_1", Ln = "_wrapper__size_default_86wjx_52", In = "_wrapper__size_small_86wjx_55", Mn = "_wrapper__bottom_86wjx_92", ee = {
548
+ wrapper__counter: Sn,
549
+ wrapper__errorMessage: On,
550
+ wrapper__label: Rn,
551
+ wrapper__field: An,
552
+ wrapper: En,
553
+ wrapper__size_default: Ln,
554
+ wrapper__size_small: In,
555
+ wrapper__bottom: Mn,
556
556
  "wrapper--error": "_wrapper--error_86wjx_105"
557
- }, jt = ["for"], Xt = ["id", "max", "maxlength", "min", "name", "placeholder", "value"], ho = /* @__PURE__ */ T({
557
+ }, Vn = ["for"], Bn = ["id", "max", "maxlength", "min", "name", "placeholder", "value"], Go = /* @__PURE__ */ Q({
558
558
  __name: "NumberInput",
559
559
  props: {
560
560
  id: {},
@@ -571,73 +571,73 @@ const Ne = "_button__size_default_vssfh_1", Ee = "_button__size_small_vssfh_8",
571
571
  size: { default: "default" }
572
572
  },
573
573
  emits: ["update:modelValue", "input", "change", "paste", "focus", "blur"],
574
- setup(u, { emit: n }) {
575
- const r = u, t = n, a = (e) => {
576
- if (e === "")
577
- return e;
578
- const l = Number(e);
579
- return typeof r.min == "number" && l < r.min ? r.min.toString() : typeof r.max == "number" && l > r.max ? r.max.toString() : l.toString();
580
- }, _ = (e) => {
581
- const l = e.target, b = a(l.value);
582
- l.value = b, t("input", e), t("update:modelValue", Number(b));
583
- }, d = (e) => {
584
- const l = e.target, b = l.value, c = a(l.value === "" ? String(r.min || 0) : l.value);
585
- l.value = c, t("blur", e), b !== c && t("update:modelValue", Number(c));
574
+ setup(e, { emit: t }) {
575
+ const o = e, n = t, s = (r) => {
576
+ if (r === "")
577
+ return r;
578
+ const a = Number(r);
579
+ return typeof o.min == "number" && a < o.min ? o.min.toString() : typeof o.max == "number" && a > o.max ? o.max.toString() : a.toString();
580
+ }, l = (r) => {
581
+ const a = r.target, u = s(a.value);
582
+ a.value = u, n("input", r), n("update:modelValue", Number(u));
583
+ }, i = (r) => {
584
+ const a = r.target, u = a.value, c = s(a.value === "" ? String(o.min || 0) : a.value);
585
+ a.value = c, n("blur", r), u !== c && n("update:modelValue", Number(c));
586
586
  };
587
- return (e, l) => {
588
- var b;
589
- return p(), f("div", {
590
- class: s([o(E).wrapper, o(E)[`wrapper__size_${e.size}`]])
587
+ return (r, a) => {
588
+ var u;
589
+ return y(), $("div", {
590
+ class: h([d(ee).wrapper, d(ee)[`wrapper__size_${r.size}`]])
591
591
  }, [
592
- e.label ? (p(), f("label", {
592
+ r.label ? (y(), $("label", {
593
593
  key: 0,
594
- class: s(o(E).wrapper__label),
595
- for: e.id
596
- }, I(e.label), 11, jt)) : x("", !0),
597
- y("input", {
598
- id: e.id,
594
+ class: h(d(ee).wrapper__label),
595
+ for: r.id
596
+ }, P(r.label), 11, Vn)) : L("", !0),
597
+ B("input", {
598
+ id: r.id,
599
599
  type: "number",
600
- class: s([
601
- o(E).wrapper__field,
600
+ class: h([
601
+ d(ee).wrapper__field,
602
602
  {
603
- [o(E)["wrapper--error"]]: e.error || e.errorStatus
603
+ [d(ee)["wrapper--error"]]: r.error || r.errorStatus
604
604
  }
605
605
  ]),
606
- max: e.max,
607
- maxlength: e.maxLength,
608
- min: e.min,
609
- name: e.name,
610
- placeholder: e.placeholder,
611
- value: e.modelValue,
612
- onBlur: d,
613
- onChange: l[0] || (l[0] = (c) => e.$emit("change", c)),
614
- onFocus: l[1] || (l[1] = (c) => t("focus", c)),
615
- onInput: _,
616
- onPaste: l[2] || (l[2] = (c) => t("paste", c))
617
- }, null, 42, Xt),
618
- e.counter || e.error ? (p(), f("div", {
606
+ max: r.max,
607
+ maxlength: r.maxLength,
608
+ min: r.min,
609
+ name: r.name,
610
+ placeholder: r.placeholder,
611
+ value: r.modelValue,
612
+ onBlur: i,
613
+ onChange: a[0] || (a[0] = (c) => r.$emit("change", c)),
614
+ onFocus: a[1] || (a[1] = (c) => n("focus", c)),
615
+ onInput: l,
616
+ onPaste: a[2] || (a[2] = (c) => n("paste", c))
617
+ }, null, 42, Bn),
618
+ r.counter || r.error ? (y(), $("div", {
619
619
  key: 1,
620
- class: s(o(E).wrapper__bottom)
620
+ class: h(d(ee).wrapper__bottom)
621
621
  }, [
622
- e.error ? (p(), f("div", {
622
+ r.error ? (y(), $("div", {
623
623
  key: 0,
624
- class: s(o(E).wrapper__errorMessage)
625
- }, I(e.error), 3)) : x("", !0),
626
- e.counter ? (p(), f("div", {
624
+ class: h(d(ee).wrapper__errorMessage)
625
+ }, P(r.error), 3)) : L("", !0),
626
+ r.counter ? (y(), $("div", {
627
627
  key: 1,
628
- class: s(o(E).wrapper__counter)
629
- }, I(((b = e.modelValue) == null ? void 0 : b.toString().length) || 0), 3)) : x("", !0)
630
- ], 2)) : x("", !0)
628
+ class: h(d(ee).wrapper__counter)
629
+ }, P(((u = r.modelValue) == null ? void 0 : u.toString().length) || 0), 3)) : L("", !0)
630
+ ], 2)) : L("", !0)
631
631
  ], 2);
632
632
  };
633
633
  }
634
- }), Ft = "_wrapper_1hnht_36", Ut = "_wrapper__label_1hnht_43", qt = "_wrapper__input_1hnht_67", Qt = "_wrapper_checked_1hnht_77", Zt = "_wrapper_disabled_1hnht_84", F = {
635
- wrapper: Ft,
636
- wrapper__label: Ut,
637
- wrapper__input: qt,
638
- wrapper_checked: Qt,
639
- wrapper_disabled: Zt
640
- }, Jt = ["id", "checked", "disabled", "name"], Kt = ["for"], wo = /* @__PURE__ */ T({
634
+ }), zn = "_wrapper_1hnht_36", Pn = "_wrapper__label_1hnht_43", Dn = "_wrapper__input_1hnht_67", Fn = "_wrapper_checked_1hnht_77", Hn = "_wrapper_disabled_1hnht_84", me = {
635
+ wrapper: zn,
636
+ wrapper__label: Pn,
637
+ wrapper__input: Dn,
638
+ wrapper_checked: Fn,
639
+ wrapper_disabled: Hn
640
+ }, Nn = ["id", "checked", "disabled", "name"], Wn = ["for"], Yo = /* @__PURE__ */ Q({
641
641
  __name: "Toggle",
642
642
  props: {
643
643
  id: {},
@@ -646,350 +646,1262 @@ const Ne = "_button__size_default_vssfh_1", Ee = "_button__size_small_vssfh_8",
646
646
  disabled: { type: Boolean, default: !1 }
647
647
  },
648
648
  emits: ["click"],
649
- setup(u, { emit: n }) {
650
- const r = u, t = n, a = () => {
651
- t("click", !r.checked);
649
+ setup(e, { emit: t }) {
650
+ const o = e, n = t, s = () => {
651
+ n("click", !o.checked);
652
652
  };
653
- return (_, d) => (p(), f("fieldset", {
654
- class: s([
655
- o(F).wrapper,
653
+ return (l, i) => (y(), $("fieldset", {
654
+ class: h([
655
+ d(me).wrapper,
656
656
  {
657
- [o(F).wrapper_checked]: _.checked,
658
- [o(F).wrapper_disabled]: _.disabled
657
+ [d(me).wrapper_checked]: l.checked,
658
+ [d(me).wrapper_disabled]: l.disabled
659
659
  }
660
660
  ])
661
661
  }, [
662
- y("input", {
663
- id: _.id,
662
+ B("input", {
663
+ id: l.id,
664
664
  type: "checkbox",
665
- checked: _.checked,
666
- class: s(o(F).wrapper__input),
667
- disabled: _.disabled,
668
- name: _.name,
669
- onClick: a
670
- }, null, 10, Jt),
671
- y("label", {
672
- class: s(o(F).wrapper__label),
673
- for: _.id
674
- }, null, 10, Kt)
665
+ checked: l.checked,
666
+ class: h(d(me).wrapper__input),
667
+ disabled: l.disabled,
668
+ name: l.name,
669
+ onClick: s
670
+ }, null, 10, Nn),
671
+ B("label", {
672
+ class: h(d(me).wrapper__label),
673
+ for: l.id
674
+ }, null, 10, Wn)
675
675
  ], 2));
676
676
  }
677
- });
678
- function eo(u = "") {
679
- return typeof u == "string" ? u.replace(/<\/style>/gi, "").replace(/<(.*?) on(.*?)=['"](.*?)>/gi, "").replace(/(<meta |<style|<\/*script)(.*?)>/gi, "").replace(/(<([^>]+)>)/ig, "").replace(/<(.*?) (href|src)="j(.*)a(.*)v(.*)a(.*)s(.*)c(.*)r(.*)i(.*)p(.*)t(.*):(.*?)>/gi, "") : u;
680
- }
681
- const to = "_wrapper__box_lzkx4_1", oo = "_wrapper_lzkx4_1", no = "_wrapper__icon_lzkx4_51", ro = "_wrapper__text_lzkx4_134", W = {
682
- wrapper__box: to,
683
- wrapper: oo,
684
- wrapper__icon: no,
685
- "wrapper__box_bottom-start": "_wrapper__box_bottom-start_lzkx4_66",
686
- "wrapper__box_bottom-center": "_wrapper__box_bottom-center_lzkx4_72",
687
- "wrapper__box_bottom-end": "_wrapper__box_bottom-end_lzkx4_78",
688
- "wrapper__box_top-start": "_wrapper__box_top-start_lzkx4_84",
689
- "wrapper__box_top-center": "_wrapper__box_top-center_lzkx4_90",
690
- "wrapper__box_top-end": "_wrapper__box_top-end_lzkx4_96",
691
- "wrapper__box_right-start": "_wrapper__box_right-start_lzkx4_102",
692
- "wrapper__box_right-center": "_wrapper__box_right-center_lzkx4_108",
693
- "wrapper__box_right-end": "_wrapper__box_right-end_lzkx4_114",
694
- "wrapper__box_left-start": "_wrapper__box_left-start_lzkx4_119",
695
- "wrapper__box_left-center": "_wrapper__box_left-center_lzkx4_124",
696
- "wrapper__box_left-end": "_wrapper__box_left-end_lzkx4_129",
697
- wrapper__text: ro,
698
- "wrapper__box-content": "_wrapper__box-content_lzkx4_163",
699
- "bottom-entrance": "_bottom-entrance_lzkx4_176",
700
- "top-entrance": "_top-entrance_lzkx4_179",
701
- "left-entrance": "_left-entrance_lzkx4_182",
702
- "right-entrance": "_right-entrance_lzkx4_185",
703
- "bottom-leave": "_bottom-leave_lzkx4_188",
704
- "top-leave": "_top-leave_lzkx4_191",
705
- "right-leave": "_right-leave_lzkx4_194",
706
- "left-leave": "_left-leave_lzkx4_197"
707
- }, ao = ["id"], lo = ["innerHTML"], yo = /* @__PURE__ */ T({
708
- __name: "Tooltip",
709
- props: {
710
- id: {},
711
- text: {},
712
- staticPosition: { default: "top center" },
713
- dynamicPosition: { type: Boolean },
714
- absolutePositionStatus: { type: Boolean, default: !1 },
715
- offsetX: { default: 4 },
716
- offsetY: { default: 4 },
717
- maxHeight: { default: 320 },
718
- status: { type: Boolean, default: !0 },
719
- preventXss: { type: Boolean },
720
- iconName: { default: void 0 },
721
- absoluteTriangleAlignment: { default: "center" },
722
- absoluteTrianglePosition: { default: "top" },
723
- absolutePosition: { type: [Boolean, null, String, Object, Array] }
724
- },
725
- setup(u) {
726
- const n = u, r = v(null), t = v("center"), a = v("bottom"), _ = v("center"), d = v(!1), e = v(""), l = v(!1), b = v(!1), c = v(""), P = v("d-n"), H = v(null), B = v(null), G = v(null), S = C(() => n.staticPosition.split(" ")[0]), O = C(() => n.staticPosition.split(" ")[1]), Z = C(() => n.iconName ? "mt-1" : "mt-0"), re = C(() => n.preventXss ? eo(n.text) : n.text), A = C(() => n.absolutePositionStatus ? n.absoluteTrianglePosition : n.dynamicPosition && d.value ? a.value === "bottom" ? "top" : "bottom" : S.value === "top" ? "bottom" : S.value === "bottom" ? "top" : S.value === "left" ? "right" : S.value === "right" ? "left" : "bottom"), ae = C(() => n.absolutePositionStatus ? "" : l.value && b.value || c.value === "icon" && l.value ? "opa-1" : "opa-0"), J = C(() => n.absolutePositionStatus ? n.absoluteTriangleAlignment : n.dynamicPosition && d.value ? t.value === "center" ? "center" : t.value === "end" ? "end" : t.value === "start" ? "start" : _.value : O.value === "center" ? "center" : O.value === "left" || O.value === "top" ? "start" : O.value === "right" || O.value === "bottom" ? "end" : "center"), le = C(() => n.absolutePositionStatus ? "" : n.dynamicPosition && d.value ? W[`wrapper__box_${a.value}-${t.value}`] : W[`wrapper__box_${S.value}-${J.value}`]), K = C(() => n.offsetX === 0 && n.offsetY === 0 ? {} : n.dynamicPosition ? {
727
- [`margin-${a.value === "bottom" ? "top" : "bottom"}`]: `${n.offsetY}px`
728
- } : A.value === "top" || A.value === "bottom" ? {
729
- [`margin-${A.value}`]: `${n.offsetY}px`
730
- } : { [`margin-${A.value}`]: `${n.offsetX}px` }), se = (i) => {
731
- const { offsetTop: h, offsetLeft: w, offsetWidth: M, offsetHeight: X } = i, R = h + X, ie = w + M;
732
- return {
733
- top: h,
734
- left: w,
735
- width: M,
736
- bottom: R,
737
- right: ie
677
+ }), de = Math.min, oe = Math.max, $e = Math.round, ke = Math.floor, j = (e) => ({
678
+ x: e,
679
+ y: e
680
+ }), jn = {
681
+ left: "right",
682
+ right: "left",
683
+ bottom: "top",
684
+ top: "bottom"
685
+ }, Gn = {
686
+ start: "end",
687
+ end: "start"
688
+ };
689
+ function Me(e, t, o) {
690
+ return oe(e, de(t, o));
691
+ }
692
+ function be(e, t) {
693
+ return typeof e == "function" ? e(t) : e;
694
+ }
695
+ function re(e) {
696
+ return e.split("-")[0];
697
+ }
698
+ function ye(e) {
699
+ return e.split("-")[1];
700
+ }
701
+ function ot(e) {
702
+ return e === "x" ? "y" : "x";
703
+ }
704
+ function De(e) {
705
+ return e === "y" ? "height" : "width";
706
+ }
707
+ function _e(e) {
708
+ return ["top", "bottom"].includes(re(e)) ? "y" : "x";
709
+ }
710
+ function Fe(e) {
711
+ return ot(_e(e));
712
+ }
713
+ function Yn(e, t, o) {
714
+ o === void 0 && (o = !1);
715
+ const n = ye(e), s = Fe(e), l = De(s);
716
+ let i = s === "x" ? n === (o ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
717
+ return t.reference[l] > t.floating[l] && (i = Se(i)), [i, Se(i)];
718
+ }
719
+ function qn(e) {
720
+ const t = Se(e);
721
+ return [Ve(e), t, Ve(t)];
722
+ }
723
+ function Ve(e) {
724
+ return e.replace(/start|end/g, (t) => Gn[t]);
725
+ }
726
+ function Un(e, t, o) {
727
+ const n = ["left", "right"], s = ["right", "left"], l = ["top", "bottom"], i = ["bottom", "top"];
728
+ switch (e) {
729
+ case "top":
730
+ case "bottom":
731
+ return o ? t ? s : n : t ? n : s;
732
+ case "left":
733
+ case "right":
734
+ return t ? l : i;
735
+ default:
736
+ return [];
737
+ }
738
+ }
739
+ function Xn(e, t, o, n) {
740
+ const s = ye(e);
741
+ let l = Un(re(e), o === "start", n);
742
+ return s && (l = l.map((i) => i + "-" + s), t && (l = l.concat(l.map(Ve)))), l;
743
+ }
744
+ function Se(e) {
745
+ return e.replace(/left|right|bottom|top/g, (t) => jn[t]);
746
+ }
747
+ function Kn(e) {
748
+ return {
749
+ top: 0,
750
+ right: 0,
751
+ bottom: 0,
752
+ left: 0,
753
+ ...e
754
+ };
755
+ }
756
+ function rt(e) {
757
+ return typeof e != "number" ? Kn(e) : {
758
+ top: e,
759
+ right: e,
760
+ bottom: e,
761
+ left: e
762
+ };
763
+ }
764
+ function Oe(e) {
765
+ const {
766
+ x: t,
767
+ y: o,
768
+ width: n,
769
+ height: s
770
+ } = e;
771
+ return {
772
+ width: n,
773
+ height: s,
774
+ top: o,
775
+ left: t,
776
+ right: t + n,
777
+ bottom: o + s,
778
+ x: t,
779
+ y: o
780
+ };
781
+ }
782
+ function Xe(e, t, o) {
783
+ let {
784
+ reference: n,
785
+ floating: s
786
+ } = e;
787
+ const l = _e(t), i = Fe(t), r = De(i), a = re(t), u = l === "y", c = n.x + n.width / 2 - s.width / 2, _ = n.y + n.height / 2 - s.height / 2, p = n[r] / 2 - s[r] / 2;
788
+ let f;
789
+ switch (a) {
790
+ case "top":
791
+ f = {
792
+ x: c,
793
+ y: n.y - s.height
738
794
  };
739
- }, m = (i, h, w = !1) => {
740
- if (!i || !B.value)
741
- return { left: !1, right: !1, top: !1, bottom: !1, center: !1 };
742
- const M = { left: 0, right: 0, top: 0, bottom: 0, width: 0, height: 0 }, X = B.value.offsetHeight, R = window.innerWidth, ie = window.innerHeight, de = i.offsetHeight, te = i.offsetWidth || 264, $ = h && se(h) || M, fe = w ? $ == null ? void 0 : $.right : $ == null ? void 0 : $.left, me = w ? $ == null ? void 0 : $.top : $ == null ? void 0 : $.bottom, Ie = fe + $.width + te + n.offsetX < R, Be = fe + $.width / 2 - (te + n.offsetX) > 10, Pe = me + de < ie - n.offsetY, Me = me - (de + X + n.offsetY) > 0;
743
- let be = !1;
744
- return n.iconName && (be = $.right + te / 2 < R && $.left - (te + n.offsetX) / 2 >= 10), {
745
- left: Be,
746
- right: Ie,
747
- bottom: Pe,
748
- top: Me,
749
- center: be
795
+ break;
796
+ case "bottom":
797
+ f = {
798
+ x: c,
799
+ y: n.y + n.height
750
800
  };
751
- }, g = () => {
752
- he(() => {
753
- var R;
754
- d.value = !0;
755
- const { bottom: i, left: h, right: w, top: M, center: X } = m(
756
- G.value,
757
- (R = G.value) == null ? void 0 : R.parentNode
758
- );
759
- if (X) {
760
- t.value = "center", a.value = i && !M ? "bottom" : "top";
761
- return;
762
- }
763
- if (i && h && w && M) {
764
- t.value = "center", a.value = "top";
765
- return;
766
- }
767
- if (M && !i) {
768
- if (w && h) {
769
- t.value = "center", a.value = "top";
770
- return;
771
- }
772
- if (w && !h) {
773
- t.value = "start", a.value = "top";
774
- return;
775
- }
776
- if (!w && h) {
777
- t.value = "end", a.value = "top";
778
- return;
779
- }
801
+ break;
802
+ case "right":
803
+ f = {
804
+ x: n.x + n.width,
805
+ y: _
806
+ };
807
+ break;
808
+ case "left":
809
+ f = {
810
+ x: n.x - s.width,
811
+ y: _
812
+ };
813
+ break;
814
+ default:
815
+ f = {
816
+ x: n.x,
817
+ y: n.y
818
+ };
819
+ }
820
+ switch (ye(t)) {
821
+ case "start":
822
+ f[i] -= p * (o && u ? -1 : 1);
823
+ break;
824
+ case "end":
825
+ f[i] += p * (o && u ? -1 : 1);
826
+ break;
827
+ }
828
+ return f;
829
+ }
830
+ const Qn = async (e, t, o) => {
831
+ const {
832
+ placement: n = "bottom",
833
+ strategy: s = "absolute",
834
+ middleware: l = [],
835
+ platform: i
836
+ } = o, r = l.filter(Boolean), a = await (i.isRTL == null ? void 0 : i.isRTL(t));
837
+ let u = await i.getElementRects({
838
+ reference: e,
839
+ floating: t,
840
+ strategy: s
841
+ }), {
842
+ x: c,
843
+ y: _
844
+ } = Xe(u, n, a), p = n, f = {}, m = 0;
845
+ for (let v = 0; v < r.length; v++) {
846
+ const {
847
+ name: b,
848
+ fn: g
849
+ } = r[v], {
850
+ x: k,
851
+ y: C,
852
+ data: O,
853
+ reset: x
854
+ } = await g({
855
+ x: c,
856
+ y: _,
857
+ initialPlacement: n,
858
+ placement: p,
859
+ strategy: s,
860
+ middlewareData: f,
861
+ rects: u,
862
+ platform: i,
863
+ elements: {
864
+ reference: e,
865
+ floating: t
866
+ }
867
+ });
868
+ c = k ?? c, _ = C ?? _, f = {
869
+ ...f,
870
+ [b]: {
871
+ ...f[b],
872
+ ...O
873
+ }
874
+ }, x && m <= 50 && (m++, typeof x == "object" && (x.placement && (p = x.placement), x.rects && (u = x.rects === !0 ? await i.getElementRects({
875
+ reference: e,
876
+ floating: t,
877
+ strategy: s
878
+ }) : x.rects), {
879
+ x: c,
880
+ y: _
881
+ } = Xe(u, p, a)), v = -1);
882
+ }
883
+ return {
884
+ x: c,
885
+ y: _,
886
+ placement: p,
887
+ strategy: s,
888
+ middlewareData: f
889
+ };
890
+ };
891
+ async function st(e, t) {
892
+ var o;
893
+ t === void 0 && (t = {});
894
+ const {
895
+ x: n,
896
+ y: s,
897
+ platform: l,
898
+ rects: i,
899
+ elements: r,
900
+ strategy: a
901
+ } = e, {
902
+ boundary: u = "clippingAncestors",
903
+ rootBoundary: c = "viewport",
904
+ elementContext: _ = "floating",
905
+ altBoundary: p = !1,
906
+ padding: f = 0
907
+ } = be(t, e), m = rt(f), b = r[p ? _ === "floating" ? "reference" : "floating" : _], g = Oe(await l.getClippingRect({
908
+ element: (o = await (l.isElement == null ? void 0 : l.isElement(b))) == null || o ? b : b.contextElement || await (l.getDocumentElement == null ? void 0 : l.getDocumentElement(r.floating)),
909
+ boundary: u,
910
+ rootBoundary: c,
911
+ strategy: a
912
+ })), k = _ === "floating" ? {
913
+ x: n,
914
+ y: s,
915
+ width: i.floating.width,
916
+ height: i.floating.height
917
+ } : i.reference, C = await (l.getOffsetParent == null ? void 0 : l.getOffsetParent(r.floating)), O = await (l.isElement == null ? void 0 : l.isElement(C)) ? await (l.getScale == null ? void 0 : l.getScale(C)) || {
918
+ x: 1,
919
+ y: 1
920
+ } : {
921
+ x: 1,
922
+ y: 1
923
+ }, x = Oe(l.convertOffsetParentRelativeRectToViewportRelativeRect ? await l.convertOffsetParentRelativeRectToViewportRelativeRect({
924
+ elements: r,
925
+ rect: k,
926
+ offsetParent: C,
927
+ strategy: a
928
+ }) : k);
929
+ return {
930
+ top: (g.top - x.top + m.top) / O.y,
931
+ bottom: (x.bottom - g.bottom + m.bottom) / O.y,
932
+ left: (g.left - x.left + m.left) / O.x,
933
+ right: (x.right - g.right + m.right) / O.x
934
+ };
935
+ }
936
+ const Zn = (e) => ({
937
+ name: "arrow",
938
+ options: e,
939
+ async fn(t) {
940
+ const {
941
+ x: o,
942
+ y: n,
943
+ placement: s,
944
+ rects: l,
945
+ platform: i,
946
+ elements: r,
947
+ middlewareData: a
948
+ } = t, {
949
+ element: u,
950
+ padding: c = 0
951
+ } = be(e, t) || {};
952
+ if (u == null)
953
+ return {};
954
+ const _ = rt(c), p = {
955
+ x: o,
956
+ y: n
957
+ }, f = Fe(s), m = De(f), v = await i.getDimensions(u), b = f === "y", g = b ? "top" : "left", k = b ? "bottom" : "right", C = b ? "clientHeight" : "clientWidth", O = l.reference[m] + l.reference[f] - p[f] - l.floating[m], x = p[f] - l.reference[f], I = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(u));
958
+ let T = I ? I[C] : 0;
959
+ (!T || !await (i.isElement == null ? void 0 : i.isElement(I))) && (T = r.floating[C] || l.floating[m]);
960
+ const z = O / 2 - x / 2, w = T / 2 - v[m] / 2 - 1, S = de(_[g], w), R = de(_[k], w), D = S, q = T - v[m] - R, E = T / 2 - v[m] / 2 + z, ie = Me(D, E, q), U = !a.arrow && ye(s) != null && E !== ie && l.reference[m] / 2 - (E < D ? S : R) - v[m] / 2 < 0, W = U ? E < D ? E - D : E - q : 0;
961
+ return {
962
+ [f]: p[f] + W,
963
+ data: {
964
+ [f]: ie,
965
+ centerOffset: E - ie - W,
966
+ ...U && {
967
+ alignmentOffset: W
780
968
  }
781
- if (i && M) {
782
- if (!w && h) {
783
- t.value = "end", a.value = "top", _.value = "end";
784
- return;
785
- }
786
- if (w && !h) {
787
- t.value = "start", a.value = "top", _.value = "start";
788
- return;
969
+ },
970
+ reset: U
971
+ };
972
+ }
973
+ }), Jn = function(e) {
974
+ return e === void 0 && (e = {}), {
975
+ name: "flip",
976
+ options: e,
977
+ async fn(t) {
978
+ var o, n;
979
+ const {
980
+ placement: s,
981
+ middlewareData: l,
982
+ rects: i,
983
+ initialPlacement: r,
984
+ platform: a,
985
+ elements: u
986
+ } = t, {
987
+ mainAxis: c = !0,
988
+ crossAxis: _ = !0,
989
+ fallbackPlacements: p,
990
+ fallbackStrategy: f = "bestFit",
991
+ fallbackAxisSideDirection: m = "none",
992
+ flipAlignment: v = !0,
993
+ ...b
994
+ } = be(e, t);
995
+ if ((o = l.arrow) != null && o.alignmentOffset)
996
+ return {};
997
+ const g = re(s), k = _e(r), C = re(r) === r, O = await (a.isRTL == null ? void 0 : a.isRTL(u.floating)), x = p || (C || !v ? [Se(r)] : qn(r)), I = m !== "none";
998
+ !p && I && x.push(...Xn(r, v, m, O));
999
+ const T = [r, ...x], z = await st(t, b), w = [];
1000
+ let S = ((n = l.flip) == null ? void 0 : n.overflows) || [];
1001
+ if (c && w.push(z[g]), _) {
1002
+ const E = Yn(s, i, O);
1003
+ w.push(z[E[0]], z[E[1]]);
1004
+ }
1005
+ if (S = [...S, {
1006
+ placement: s,
1007
+ overflows: w
1008
+ }], !w.every((E) => E <= 0)) {
1009
+ var R, D;
1010
+ const E = (((R = l.flip) == null ? void 0 : R.index) || 0) + 1, ie = T[E];
1011
+ if (ie)
1012
+ return {
1013
+ data: {
1014
+ index: E,
1015
+ overflows: S
1016
+ },
1017
+ reset: {
1018
+ placement: ie
1019
+ }
1020
+ };
1021
+ let U = (D = S.filter((W) => W.overflows[0] <= 0).sort((W, Z) => W.overflows[1] - Z.overflows[1])[0]) == null ? void 0 : D.placement;
1022
+ if (!U)
1023
+ switch (f) {
1024
+ case "bestFit": {
1025
+ var q;
1026
+ const W = (q = S.filter((Z) => {
1027
+ if (I) {
1028
+ const J = _e(Z.placement);
1029
+ return J === k || // Create a bias to the `y` side axis due to horizontal
1030
+ // reading directions favoring greater width.
1031
+ J === "y";
1032
+ }
1033
+ return !0;
1034
+ }).map((Z) => [Z.placement, Z.overflows.filter((J) => J > 0).reduce((J, pt) => J + pt, 0)]).sort((Z, J) => Z[1] - J[1])[0]) == null ? void 0 : q[0];
1035
+ W && (U = W);
1036
+ break;
1037
+ }
1038
+ case "initialPlacement":
1039
+ U = r;
1040
+ break;
789
1041
  }
1042
+ if (s !== U)
1043
+ return {
1044
+ reset: {
1045
+ placement: U
1046
+ }
1047
+ };
1048
+ }
1049
+ return {};
1050
+ }
1051
+ };
1052
+ };
1053
+ async function eo(e, t) {
1054
+ const {
1055
+ placement: o,
1056
+ platform: n,
1057
+ elements: s
1058
+ } = e, l = await (n.isRTL == null ? void 0 : n.isRTL(s.floating)), i = re(o), r = ye(o), a = _e(o) === "y", u = ["left", "top"].includes(i) ? -1 : 1, c = l && a ? -1 : 1, _ = be(t, e);
1059
+ let {
1060
+ mainAxis: p,
1061
+ crossAxis: f,
1062
+ alignmentAxis: m
1063
+ } = typeof _ == "number" ? {
1064
+ mainAxis: _,
1065
+ crossAxis: 0,
1066
+ alignmentAxis: null
1067
+ } : {
1068
+ mainAxis: _.mainAxis || 0,
1069
+ crossAxis: _.crossAxis || 0,
1070
+ alignmentAxis: _.alignmentAxis
1071
+ };
1072
+ return r && typeof m == "number" && (f = r === "end" ? m * -1 : m), a ? {
1073
+ x: f * c,
1074
+ y: p * u
1075
+ } : {
1076
+ x: p * u,
1077
+ y: f * c
1078
+ };
1079
+ }
1080
+ const to = function(e) {
1081
+ return e === void 0 && (e = 0), {
1082
+ name: "offset",
1083
+ options: e,
1084
+ async fn(t) {
1085
+ var o, n;
1086
+ const {
1087
+ x: s,
1088
+ y: l,
1089
+ placement: i,
1090
+ middlewareData: r
1091
+ } = t, a = await eo(t, e);
1092
+ return i === ((o = r.offset) == null ? void 0 : o.placement) && (n = r.arrow) != null && n.alignmentOffset ? {} : {
1093
+ x: s + a.x,
1094
+ y: l + a.y,
1095
+ data: {
1096
+ ...a,
1097
+ placement: i
790
1098
  }
791
- if (i && !M) {
792
- if (w && h) {
793
- t.value = "center", a.value = "bottom", _.value = "top";
794
- return;
1099
+ };
1100
+ }
1101
+ };
1102
+ }, no = function(e) {
1103
+ return e === void 0 && (e = {}), {
1104
+ name: "shift",
1105
+ options: e,
1106
+ async fn(t) {
1107
+ const {
1108
+ x: o,
1109
+ y: n,
1110
+ placement: s
1111
+ } = t, {
1112
+ mainAxis: l = !0,
1113
+ crossAxis: i = !1,
1114
+ limiter: r = {
1115
+ fn: (b) => {
1116
+ let {
1117
+ x: g,
1118
+ y: k
1119
+ } = b;
1120
+ return {
1121
+ x: g,
1122
+ y: k
1123
+ };
795
1124
  }
796
- if (!w && h) {
797
- t.value = "end", a.value = "bottom", _.value = "top";
798
- return;
1125
+ },
1126
+ ...a
1127
+ } = be(e, t), u = {
1128
+ x: o,
1129
+ y: n
1130
+ }, c = await st(t, a), _ = _e(re(s)), p = ot(_);
1131
+ let f = u[p], m = u[_];
1132
+ if (l) {
1133
+ const b = p === "y" ? "top" : "left", g = p === "y" ? "bottom" : "right", k = f + c[b], C = f - c[g];
1134
+ f = Me(k, f, C);
1135
+ }
1136
+ if (i) {
1137
+ const b = _ === "y" ? "top" : "left", g = _ === "y" ? "bottom" : "right", k = m + c[b], C = m - c[g];
1138
+ m = Me(k, m, C);
1139
+ }
1140
+ const v = r.fn({
1141
+ ...t,
1142
+ [p]: f,
1143
+ [_]: m
1144
+ });
1145
+ return {
1146
+ ...v,
1147
+ data: {
1148
+ x: v.x - o,
1149
+ y: v.y - n,
1150
+ enabled: {
1151
+ [p]: l,
1152
+ [_]: i
799
1153
  }
800
- w && !h && (t.value = "start", a.value = "bottom", _.value = "top");
801
1154
  }
1155
+ };
1156
+ }
1157
+ };
1158
+ };
1159
+ function Re() {
1160
+ return typeof window < "u";
1161
+ }
1162
+ function le(e) {
1163
+ return He(e) ? (e.nodeName || "").toLowerCase() : "#document";
1164
+ }
1165
+ function F(e) {
1166
+ var t;
1167
+ return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
1168
+ }
1169
+ function Y(e) {
1170
+ var t;
1171
+ return (t = (He(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
1172
+ }
1173
+ function He(e) {
1174
+ return Re() ? e instanceof Node || e instanceof F(e).Node : !1;
1175
+ }
1176
+ function H(e) {
1177
+ return Re() ? e instanceof Element || e instanceof F(e).Element : !1;
1178
+ }
1179
+ function G(e) {
1180
+ return Re() ? e instanceof HTMLElement || e instanceof F(e).HTMLElement : !1;
1181
+ }
1182
+ function Ke(e) {
1183
+ return !Re() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof F(e).ShadowRoot;
1184
+ }
1185
+ function xe(e) {
1186
+ const {
1187
+ overflow: t,
1188
+ overflowX: o,
1189
+ overflowY: n,
1190
+ display: s
1191
+ } = N(e);
1192
+ return /auto|scroll|overlay|hidden|clip/.test(t + n + o) && !["inline", "contents"].includes(s);
1193
+ }
1194
+ function oo(e) {
1195
+ return ["table", "td", "th"].includes(le(e));
1196
+ }
1197
+ function Ae(e) {
1198
+ return [":popover-open", ":modal"].some((t) => {
1199
+ try {
1200
+ return e.matches(t);
1201
+ } catch {
1202
+ return !1;
1203
+ }
1204
+ });
1205
+ }
1206
+ function Ne(e) {
1207
+ const t = We(), o = H(e) ? N(e) : e;
1208
+ return ["transform", "translate", "scale", "rotate", "perspective"].some((n) => o[n] ? o[n] !== "none" : !1) || (o.containerType ? o.containerType !== "normal" : !1) || !t && (o.backdropFilter ? o.backdropFilter !== "none" : !1) || !t && (o.filter ? o.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((n) => (o.willChange || "").includes(n)) || ["paint", "layout", "strict", "content"].some((n) => (o.contain || "").includes(n));
1209
+ }
1210
+ function ro(e) {
1211
+ let t = ne(e);
1212
+ for (; G(t) && !pe(t); ) {
1213
+ if (Ne(t))
1214
+ return t;
1215
+ if (Ae(t))
1216
+ return null;
1217
+ t = ne(t);
1218
+ }
1219
+ return null;
1220
+ }
1221
+ function We() {
1222
+ return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
1223
+ }
1224
+ function pe(e) {
1225
+ return ["html", "body", "#document"].includes(le(e));
1226
+ }
1227
+ function N(e) {
1228
+ return F(e).getComputedStyle(e);
1229
+ }
1230
+ function Ee(e) {
1231
+ return H(e) ? {
1232
+ scrollLeft: e.scrollLeft,
1233
+ scrollTop: e.scrollTop
1234
+ } : {
1235
+ scrollLeft: e.scrollX,
1236
+ scrollTop: e.scrollY
1237
+ };
1238
+ }
1239
+ function ne(e) {
1240
+ if (le(e) === "html")
1241
+ return e;
1242
+ const t = (
1243
+ // Step into the shadow DOM of the parent of a slotted node.
1244
+ e.assignedSlot || // DOM Element detected.
1245
+ e.parentNode || // ShadowRoot detected.
1246
+ Ke(e) && e.host || // Fallback.
1247
+ Y(e)
1248
+ );
1249
+ return Ke(t) ? t.host : t;
1250
+ }
1251
+ function lt(e) {
1252
+ const t = ne(e);
1253
+ return pe(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : G(t) && xe(t) ? t : lt(t);
1254
+ }
1255
+ function ve(e, t, o) {
1256
+ var n;
1257
+ t === void 0 && (t = []), o === void 0 && (o = !0);
1258
+ const s = lt(e), l = s === ((n = e.ownerDocument) == null ? void 0 : n.body), i = F(s);
1259
+ if (l) {
1260
+ const r = Be(i);
1261
+ return t.concat(i, i.visualViewport || [], xe(s) ? s : [], r && o ? ve(r) : []);
1262
+ }
1263
+ return t.concat(s, ve(s, [], o));
1264
+ }
1265
+ function Be(e) {
1266
+ return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
1267
+ }
1268
+ function it(e) {
1269
+ const t = N(e);
1270
+ let o = parseFloat(t.width) || 0, n = parseFloat(t.height) || 0;
1271
+ const s = G(e), l = s ? e.offsetWidth : o, i = s ? e.offsetHeight : n, r = $e(o) !== l || $e(n) !== i;
1272
+ return r && (o = l, n = i), {
1273
+ width: o,
1274
+ height: n,
1275
+ $: r
1276
+ };
1277
+ }
1278
+ function je(e) {
1279
+ return H(e) ? e : e.contextElement;
1280
+ }
1281
+ function fe(e) {
1282
+ const t = je(e);
1283
+ if (!G(t))
1284
+ return j(1);
1285
+ const o = t.getBoundingClientRect(), {
1286
+ width: n,
1287
+ height: s,
1288
+ $: l
1289
+ } = it(t);
1290
+ let i = (l ? $e(o.width) : o.width) / n, r = (l ? $e(o.height) : o.height) / s;
1291
+ return (!i || !Number.isFinite(i)) && (i = 1), (!r || !Number.isFinite(r)) && (r = 1), {
1292
+ x: i,
1293
+ y: r
1294
+ };
1295
+ }
1296
+ const so = /* @__PURE__ */ j(0);
1297
+ function at(e) {
1298
+ const t = F(e);
1299
+ return !We() || !t.visualViewport ? so : {
1300
+ x: t.visualViewport.offsetLeft,
1301
+ y: t.visualViewport.offsetTop
1302
+ };
1303
+ }
1304
+ function lo(e, t, o) {
1305
+ return t === void 0 && (t = !1), !o || t && o !== F(e) ? !1 : t;
1306
+ }
1307
+ function se(e, t, o, n) {
1308
+ t === void 0 && (t = !1), o === void 0 && (o = !1);
1309
+ const s = e.getBoundingClientRect(), l = je(e);
1310
+ let i = j(1);
1311
+ t && (n ? H(n) && (i = fe(n)) : i = fe(e));
1312
+ const r = lo(l, o, n) ? at(l) : j(0);
1313
+ let a = (s.left + r.x) / i.x, u = (s.top + r.y) / i.y, c = s.width / i.x, _ = s.height / i.y;
1314
+ if (l) {
1315
+ const p = F(l), f = n && H(n) ? F(n) : n;
1316
+ let m = p, v = Be(m);
1317
+ for (; v && n && f !== m; ) {
1318
+ const b = fe(v), g = v.getBoundingClientRect(), k = N(v), C = g.left + (v.clientLeft + parseFloat(k.paddingLeft)) * b.x, O = g.top + (v.clientTop + parseFloat(k.paddingTop)) * b.y;
1319
+ a *= b.x, u *= b.y, c *= b.x, _ *= b.y, a += C, u += O, m = F(v), v = Be(m);
1320
+ }
1321
+ }
1322
+ return Oe({
1323
+ width: c,
1324
+ height: _,
1325
+ x: a,
1326
+ y: u
1327
+ });
1328
+ }
1329
+ function Ge(e, t) {
1330
+ const o = Ee(e).scrollLeft;
1331
+ return t ? t.left + o : se(Y(e)).left + o;
1332
+ }
1333
+ function ut(e, t, o) {
1334
+ o === void 0 && (o = !1);
1335
+ const n = e.getBoundingClientRect(), s = n.left + t.scrollLeft - (o ? 0 : (
1336
+ // RTL <body> scrollbar.
1337
+ Ge(e, n)
1338
+ )), l = n.top + t.scrollTop;
1339
+ return {
1340
+ x: s,
1341
+ y: l
1342
+ };
1343
+ }
1344
+ function io(e) {
1345
+ let {
1346
+ elements: t,
1347
+ rect: o,
1348
+ offsetParent: n,
1349
+ strategy: s
1350
+ } = e;
1351
+ const l = s === "fixed", i = Y(n), r = t ? Ae(t.floating) : !1;
1352
+ if (n === i || r && l)
1353
+ return o;
1354
+ let a = {
1355
+ scrollLeft: 0,
1356
+ scrollTop: 0
1357
+ }, u = j(1);
1358
+ const c = j(0), _ = G(n);
1359
+ if ((_ || !_ && !l) && ((le(n) !== "body" || xe(i)) && (a = Ee(n)), G(n))) {
1360
+ const f = se(n);
1361
+ u = fe(n), c.x = f.x + n.clientLeft, c.y = f.y + n.clientTop;
1362
+ }
1363
+ const p = i && !_ && !l ? ut(i, a, !0) : j(0);
1364
+ return {
1365
+ width: o.width * u.x,
1366
+ height: o.height * u.y,
1367
+ x: o.x * u.x - a.scrollLeft * u.x + c.x + p.x,
1368
+ y: o.y * u.y - a.scrollTop * u.y + c.y + p.y
1369
+ };
1370
+ }
1371
+ function ao(e) {
1372
+ return Array.from(e.getClientRects());
1373
+ }
1374
+ function uo(e) {
1375
+ const t = Y(e), o = Ee(e), n = e.ownerDocument.body, s = oe(t.scrollWidth, t.clientWidth, n.scrollWidth, n.clientWidth), l = oe(t.scrollHeight, t.clientHeight, n.scrollHeight, n.clientHeight);
1376
+ let i = -o.scrollLeft + Ge(e);
1377
+ const r = -o.scrollTop;
1378
+ return N(n).direction === "rtl" && (i += oe(t.clientWidth, n.clientWidth) - s), {
1379
+ width: s,
1380
+ height: l,
1381
+ x: i,
1382
+ y: r
1383
+ };
1384
+ }
1385
+ function co(e, t) {
1386
+ const o = F(e), n = Y(e), s = o.visualViewport;
1387
+ let l = n.clientWidth, i = n.clientHeight, r = 0, a = 0;
1388
+ if (s) {
1389
+ l = s.width, i = s.height;
1390
+ const u = We();
1391
+ (!u || u && t === "fixed") && (r = s.offsetLeft, a = s.offsetTop);
1392
+ }
1393
+ return {
1394
+ width: l,
1395
+ height: i,
1396
+ x: r,
1397
+ y: a
1398
+ };
1399
+ }
1400
+ function fo(e, t) {
1401
+ const o = se(e, !0, t === "fixed"), n = o.top + e.clientTop, s = o.left + e.clientLeft, l = G(e) ? fe(e) : j(1), i = e.clientWidth * l.x, r = e.clientHeight * l.y, a = s * l.x, u = n * l.y;
1402
+ return {
1403
+ width: i,
1404
+ height: r,
1405
+ x: a,
1406
+ y: u
1407
+ };
1408
+ }
1409
+ function Qe(e, t, o) {
1410
+ let n;
1411
+ if (t === "viewport")
1412
+ n = co(e, o);
1413
+ else if (t === "document")
1414
+ n = uo(Y(e));
1415
+ else if (H(t))
1416
+ n = fo(t, o);
1417
+ else {
1418
+ const s = at(e);
1419
+ n = {
1420
+ x: t.x - s.x,
1421
+ y: t.y - s.y,
1422
+ width: t.width,
1423
+ height: t.height
1424
+ };
1425
+ }
1426
+ return Oe(n);
1427
+ }
1428
+ function ct(e, t) {
1429
+ const o = ne(e);
1430
+ return o === t || !H(o) || pe(o) ? !1 : N(o).position === "fixed" || ct(o, t);
1431
+ }
1432
+ function _o(e, t) {
1433
+ const o = t.get(e);
1434
+ if (o)
1435
+ return o;
1436
+ let n = ve(e, [], !1).filter((r) => H(r) && le(r) !== "body"), s = null;
1437
+ const l = N(e).position === "fixed";
1438
+ let i = l ? ne(e) : e;
1439
+ for (; H(i) && !pe(i); ) {
1440
+ const r = N(i), a = Ne(i);
1441
+ !a && r.position === "fixed" && (s = null), (l ? !a && !s : !a && r.position === "static" && !!s && ["absolute", "fixed"].includes(s.position) || xe(i) && !a && ct(e, i)) ? n = n.filter((c) => c !== i) : s = r, i = ne(i);
1442
+ }
1443
+ return t.set(e, n), n;
1444
+ }
1445
+ function po(e) {
1446
+ let {
1447
+ element: t,
1448
+ boundary: o,
1449
+ rootBoundary: n,
1450
+ strategy: s
1451
+ } = e;
1452
+ const i = [...o === "clippingAncestors" ? Ae(t) ? [] : _o(t, this._c) : [].concat(o), n], r = i[0], a = i.reduce((u, c) => {
1453
+ const _ = Qe(t, c, s);
1454
+ return u.top = oe(_.top, u.top), u.right = de(_.right, u.right), u.bottom = de(_.bottom, u.bottom), u.left = oe(_.left, u.left), u;
1455
+ }, Qe(t, r, s));
1456
+ return {
1457
+ width: a.right - a.left,
1458
+ height: a.bottom - a.top,
1459
+ x: a.left,
1460
+ y: a.top
1461
+ };
1462
+ }
1463
+ function mo(e) {
1464
+ const {
1465
+ width: t,
1466
+ height: o
1467
+ } = it(e);
1468
+ return {
1469
+ width: t,
1470
+ height: o
1471
+ };
1472
+ }
1473
+ function ho(e, t, o) {
1474
+ const n = G(t), s = Y(t), l = o === "fixed", i = se(e, !0, l, t);
1475
+ let r = {
1476
+ scrollLeft: 0,
1477
+ scrollTop: 0
1478
+ };
1479
+ const a = j(0);
1480
+ if (n || !n && !l)
1481
+ if ((le(t) !== "body" || xe(s)) && (r = Ee(t)), n) {
1482
+ const p = se(t, !0, l, t);
1483
+ a.x = p.x + t.clientLeft, a.y = p.y + t.clientTop;
1484
+ } else s && (a.x = Ge(s));
1485
+ const u = s && !n && !l ? ut(s, r) : j(0), c = i.left + r.scrollLeft - a.x - u.x, _ = i.top + r.scrollTop - a.y - u.y;
1486
+ return {
1487
+ x: c,
1488
+ y: _,
1489
+ width: i.width,
1490
+ height: i.height
1491
+ };
1492
+ }
1493
+ function Ie(e) {
1494
+ return N(e).position === "static";
1495
+ }
1496
+ function Ze(e, t) {
1497
+ if (!G(e) || N(e).position === "fixed")
1498
+ return null;
1499
+ if (t)
1500
+ return t(e);
1501
+ let o = e.offsetParent;
1502
+ return Y(e) === o && (o = o.ownerDocument.body), o;
1503
+ }
1504
+ function ft(e, t) {
1505
+ const o = F(e);
1506
+ if (Ae(e))
1507
+ return o;
1508
+ if (!G(e)) {
1509
+ let s = ne(e);
1510
+ for (; s && !pe(s); ) {
1511
+ if (H(s) && !Ie(s))
1512
+ return s;
1513
+ s = ne(s);
1514
+ }
1515
+ return o;
1516
+ }
1517
+ let n = Ze(e, t);
1518
+ for (; n && oo(n) && Ie(n); )
1519
+ n = Ze(n, t);
1520
+ return n && pe(n) && Ie(n) && !Ne(n) ? o : n || ro(e) || o;
1521
+ }
1522
+ const go = async function(e) {
1523
+ const t = this.getOffsetParent || ft, o = this.getDimensions, n = await o(e.floating);
1524
+ return {
1525
+ reference: ho(e.reference, await t(e.floating), e.strategy),
1526
+ floating: {
1527
+ x: 0,
1528
+ y: 0,
1529
+ width: n.width,
1530
+ height: n.height
1531
+ }
1532
+ };
1533
+ };
1534
+ function wo(e) {
1535
+ return N(e).direction === "rtl";
1536
+ }
1537
+ const vo = {
1538
+ convertOffsetParentRelativeRectToViewportRelativeRect: io,
1539
+ getDocumentElement: Y,
1540
+ getClippingRect: po,
1541
+ getOffsetParent: ft,
1542
+ getElementRects: go,
1543
+ getClientRects: ao,
1544
+ getDimensions: mo,
1545
+ getScale: fe,
1546
+ isElement: H,
1547
+ isRTL: wo
1548
+ };
1549
+ function dt(e, t) {
1550
+ return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
1551
+ }
1552
+ function bo(e, t) {
1553
+ let o = null, n;
1554
+ const s = Y(e);
1555
+ function l() {
1556
+ var r;
1557
+ clearTimeout(n), (r = o) == null || r.disconnect(), o = null;
1558
+ }
1559
+ function i(r, a) {
1560
+ r === void 0 && (r = !1), a === void 0 && (a = 1), l();
1561
+ const u = e.getBoundingClientRect(), {
1562
+ left: c,
1563
+ top: _,
1564
+ width: p,
1565
+ height: f
1566
+ } = u;
1567
+ if (r || t(), !p || !f)
1568
+ return;
1569
+ const m = ke(_), v = ke(s.clientWidth - (c + p)), b = ke(s.clientHeight - (_ + f)), g = ke(c), C = {
1570
+ rootMargin: -m + "px " + -v + "px " + -b + "px " + -g + "px",
1571
+ threshold: oe(0, de(1, a)) || 1
1572
+ };
1573
+ let O = !0;
1574
+ function x(I) {
1575
+ const T = I[0].intersectionRatio;
1576
+ if (T !== a) {
1577
+ if (!O)
1578
+ return i();
1579
+ T ? i(!1, T) : n = setTimeout(() => {
1580
+ i(!1, 1e-7);
1581
+ }, 1e3);
1582
+ }
1583
+ T === 1 && !dt(u, e.getBoundingClientRect()) && i(), O = !1;
1584
+ }
1585
+ try {
1586
+ o = new IntersectionObserver(x, {
1587
+ ...C,
1588
+ // Handle <iframe>s
1589
+ root: s.ownerDocument
802
1590
  });
803
- }, z = (i) => {
804
- if (!(i instanceof HTMLElement))
805
- return !1;
806
- const h = i.scrollHeight > i.offsetHeight, w = window.getComputedStyle(i).overflowY, M = ["auto", "scroll"].includes(w);
807
- return h && M;
808
- }, N = (i) => {
809
- const h = (i == null ? void 0 : i.nodeType) === Node.COMMENT_NODE, w = (i == null ? void 0 : i.nodeType) === Node.DOCUMENT_NODE;
810
- return !i || h || w ? document : z(i) ? i : N(i.parentNode);
811
- }, j = () => {
812
- var i;
813
- (i = H.value) == null || i.removeEventListener("scroll", g), window == null || window.removeEventListener("resize", g);
814
- }, ee = () => {
815
- he(() => {
816
- var i;
817
- H.value = N(B.value), (i = H.value) == null || i.addEventListener("scroll", g), window == null || window.addEventListener("resize", g);
818
- });
819
- }, ke = () => {
820
- c.value = "wrapper", P.value = "d-b", l.value = !0;
821
- }, _e = () => {
822
- c.value = "icon", P.value = "d-b", b.value = !0;
823
- }, ze = () => {
824
- b.value = !1;
825
- }, $e = () => {
826
- c.value = "", l.value = !1, b.value = !1;
827
- }, Se = () => {
828
- $e(), n.dynamicPosition ? a.value === "bottom" ? e.value = "bottom-leave" : a.value === "top" && (e.value = "top-leave") : S.value === "top" ? e.value = "top-leave" : S.value === "bottom" ? e.value = "bottom-leave" : S.value === "left" ? e.value = "left-leave" : S.value === "right" && (e.value = "right-leave"), setTimeout(() => {
829
- e.value = "", P.value = "d-n";
830
- }, n.absolutePositionStatus ? 0 : 250);
831
- }, Ce = () => {
832
- ke(), g(), n.dynamicPosition ? a.value === "bottom" ? e.value = "top-entrance" : a.value === "top" && (e.value = "bottom-entrance") : S.value === "top" ? e.value = "bottom-entrance" : S.value === "bottom" ? e.value = "top-entrance" : S.value === "left" ? e.value = "right-entrance" : S.value === "right" && (e.value = "left-entrance"), setTimeout(() => {
833
- e.value = "";
834
- }, 250);
1591
+ } catch {
1592
+ o = new IntersectionObserver(x, C);
1593
+ }
1594
+ o.observe(e);
1595
+ }
1596
+ return i(!0), l;
1597
+ }
1598
+ function yo(e, t, o, n) {
1599
+ n === void 0 && (n = {});
1600
+ const {
1601
+ ancestorScroll: s = !0,
1602
+ ancestorResize: l = !0,
1603
+ elementResize: i = typeof ResizeObserver == "function",
1604
+ layoutShift: r = typeof IntersectionObserver == "function",
1605
+ animationFrame: a = !1
1606
+ } = n, u = je(e), c = s || l ? [...u ? ve(u) : [], ...ve(t)] : [];
1607
+ c.forEach((g) => {
1608
+ s && g.addEventListener("scroll", o, {
1609
+ passive: !0
1610
+ }), l && g.addEventListener("resize", o);
1611
+ });
1612
+ const _ = u && r ? bo(u, o) : null;
1613
+ let p = -1, f = null;
1614
+ i && (f = new ResizeObserver((g) => {
1615
+ let [k] = g;
1616
+ k && k.target === u && f && (f.unobserve(t), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
1617
+ var C;
1618
+ (C = f) == null || C.observe(t);
1619
+ })), o();
1620
+ }), u && !a && f.observe(u), f.observe(t));
1621
+ let m, v = a ? se(e) : null;
1622
+ a && b();
1623
+ function b() {
1624
+ const g = se(e);
1625
+ v && !dt(v, g) && o(), v = g, m = requestAnimationFrame(b);
1626
+ }
1627
+ return o(), () => {
1628
+ var g;
1629
+ c.forEach((k) => {
1630
+ s && k.removeEventListener("scroll", o), l && k.removeEventListener("resize", o);
1631
+ }), _ == null || _(), (g = f) == null || g.disconnect(), f = null, a && cancelAnimationFrame(m);
1632
+ };
1633
+ }
1634
+ const xo = to, ko = no, Co = Jn, To = Zn, $o = (e, t, o) => {
1635
+ const n = /* @__PURE__ */ new Map(), s = {
1636
+ platform: vo,
1637
+ ...o
1638
+ }, l = {
1639
+ ...s.platform,
1640
+ _c: n
1641
+ };
1642
+ return Qn(e, t, {
1643
+ ...s,
1644
+ platform: l
1645
+ });
1646
+ };
1647
+ function So(e) {
1648
+ return e != null && typeof e == "object" && "$el" in e;
1649
+ }
1650
+ function ze(e) {
1651
+ if (So(e)) {
1652
+ const t = e.$el;
1653
+ return He(t) && le(t) === "#comment" ? null : t;
1654
+ }
1655
+ return e;
1656
+ }
1657
+ function ce(e) {
1658
+ return typeof e == "function" ? e() : d(e);
1659
+ }
1660
+ function Oo(e) {
1661
+ return {
1662
+ name: "arrow",
1663
+ options: e,
1664
+ fn(t) {
1665
+ const o = ze(ce(e.element));
1666
+ return o == null ? {} : To({
1667
+ element: o,
1668
+ padding: e.padding
1669
+ }).fn(t);
1670
+ }
1671
+ };
1672
+ }
1673
+ function _t(e) {
1674
+ return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
1675
+ }
1676
+ function Je(e, t) {
1677
+ const o = _t(e);
1678
+ return Math.round(t * o) / o;
1679
+ }
1680
+ function Ro(e, t, o) {
1681
+ o === void 0 && (o = {});
1682
+ const n = o.whileElementsMounted, s = V(() => {
1683
+ var T;
1684
+ return (T = ce(o.open)) != null ? T : !0;
1685
+ }), l = V(() => ce(o.middleware)), i = V(() => {
1686
+ var T;
1687
+ return (T = ce(o.placement)) != null ? T : "bottom";
1688
+ }), r = V(() => {
1689
+ var T;
1690
+ return (T = ce(o.strategy)) != null ? T : "absolute";
1691
+ }), a = V(() => {
1692
+ var T;
1693
+ return (T = ce(o.transform)) != null ? T : !0;
1694
+ }), u = V(() => ze(e.value)), c = V(() => ze(t.value)), _ = A(0), p = A(0), f = A(r.value), m = A(i.value), v = vt({}), b = A(!1), g = V(() => {
1695
+ const T = {
1696
+ position: f.value,
1697
+ left: "0",
1698
+ top: "0"
835
1699
  };
836
- return ce(() => {
837
- n.dynamicPosition && ee();
838
- }), Le(() => {
839
- j();
840
- }), (i, h) => (p(), f("div", {
841
- id: i.id,
842
- ref_key: "tooltipRootRef",
843
- ref: B,
844
- class: s(o(W).wrapper),
845
- onMouseenter: Ce,
846
- onMouseleave: Se
847
- }, [
848
- i.iconName ? (p(), q(o(Q), {
849
- key: 0,
850
- ref_key: "tooltipIconRef",
851
- ref: r,
852
- class: s(o(W).wrapper__icon),
853
- name: i.iconName,
854
- onMouseenter: _e,
855
- onMouseleave: ze
856
- }, null, 8, ["class", "name"])) : (p(), f("div", {
857
- key: 1,
858
- class: s(o(W).wrapper__icon),
859
- onMouseenter: _e,
860
- onMouseleave: _e
861
- }, [
862
- D(i.$slots, "triggerElement")
863
- ], 34)),
864
- i.status ? (p(), f("div", {
865
- key: 2,
866
- ref_key: "tooltipPopupRef",
867
- ref: G,
868
- class: s([o(W).wrapper__box, le.value, ae.value, P.value]),
869
- style: U(i.absolutePosition)
870
- }, [
871
- ye(o(po), {
872
- "border-triangle": "",
873
- "border-triangle-align": J.value,
874
- "border-triangle-position": A.value,
875
- class: s([o(W)["wrapper__box-content"], Z.value, e.value]),
876
- style: U(K.value)
877
- }, {
878
- default: xe(() => [
879
- y("div", {
880
- class: s(o(W).wrapper__text),
881
- style: U({ maxHeight: `${i.maxHeight}px`, overflowY: "auto" })
882
- }, [
883
- y("div", { innerHTML: re.value }, null, 8, lo),
884
- D(i.$slots, "contentSlot")
885
- ], 6)
886
- ]),
887
- _: 3
888
- }, 8, ["border-triangle-align", "border-triangle-position", "class", "style"])
889
- ], 6)) : x("", !0)
890
- ], 42, ao));
1700
+ if (!c.value)
1701
+ return T;
1702
+ const z = Je(c.value, _.value), w = Je(c.value, p.value);
1703
+ return a.value ? {
1704
+ ...T,
1705
+ transform: "translate(" + z + "px, " + w + "px)",
1706
+ ..._t(c.value) >= 1.5 && {
1707
+ willChange: "transform"
1708
+ }
1709
+ } : {
1710
+ position: f.value,
1711
+ left: z + "px",
1712
+ top: w + "px"
1713
+ };
1714
+ });
1715
+ let k;
1716
+ function C() {
1717
+ if (u.value == null || c.value == null)
1718
+ return;
1719
+ const T = s.value;
1720
+ $o(u.value, c.value, {
1721
+ middleware: l.value,
1722
+ placement: i.value,
1723
+ strategy: r.value
1724
+ }).then((z) => {
1725
+ _.value = z.x, p.value = z.y, f.value = z.strategy, m.value = z.placement, v.value = z.middlewareData, b.value = T !== !1;
1726
+ });
891
1727
  }
892
- }), so = "_box_167wr_36", _o = "_flipBox_167wr_124", ne = {
893
- box: so,
894
- "box_top-start": "_box_top-start_167wr_40",
895
- "box_top-center": "_box_top-center_167wr_40",
896
- "box_top-end": "_box_top-end_167wr_40",
897
- "box_right-start": "_box_right-start_167wr_40",
898
- "box_right-center": "_box_right-center_167wr_40",
899
- "box_right-end": "_box_right-end_167wr_40",
900
- "box_bottom-start": "_box_bottom-start_167wr_40",
901
- "box_bottom-center": "_box_bottom-center_167wr_40",
902
- "box_bottom-end": "_box_bottom-end_167wr_40",
903
- "box_left-start": "_box_left-start_167wr_40",
904
- "box_left-center": "_box_left-center_167wr_40",
905
- "box_left-end": "_box_left-end_167wr_40",
906
- flipBox: _o
907
- }, io = /* @__PURE__ */ T({
908
- __name: "DefaultBox",
909
- props: {
910
- border: {},
911
- borderRadius: { default: "bor-r-1" },
912
- borderTriangle: { type: Boolean, default: !1 },
913
- borderTriangleAlign: { default: "center" },
914
- borderTrianglePosition: { default: "top" }
915
- },
916
- emits: ["click"],
917
- setup(u, { emit: n }) {
918
- const r = u, t = n, a = C(
919
- () => r.borderTriangle ? ne[`box_${r.borderTrianglePosition}-${r.borderTriangleAlign}`] : ""
920
- );
921
- function _() {
922
- t("click");
1728
+ function O() {
1729
+ typeof k == "function" && (k(), k = void 0);
1730
+ }
1731
+ function x() {
1732
+ if (O(), n === void 0) {
1733
+ C();
1734
+ return;
1735
+ }
1736
+ if (u.value != null && c.value != null) {
1737
+ k = n(u.value, c.value, C);
1738
+ return;
923
1739
  }
924
- return (d, e) => (p(), f("div", {
925
- class: s([o(ne).box, a.value, d.border, d.borderRadius]),
926
- onClick: _
927
- }, [
928
- D(d.$slots, "default")
929
- ], 2));
930
1740
  }
931
- }), uo = /* @__PURE__ */ T({
932
- __name: "FlipBox",
933
- props: {
934
- boxSpacing: { default: "" }
935
- },
936
- setup(u) {
937
- return (n, r) => (p(), f("div", {
938
- class: s([o(ne).flipBox, n.boxSpacing])
939
- }, [
940
- y("div", null, [
941
- y("div", {
942
- class: s([o(ne).box, n.boxSpacing])
943
- }, [
944
- D(n.$slots, "front")
945
- ], 2),
946
- y("div", {
947
- class: s([n.boxSpacing])
948
- }, [
949
- D(n.$slots, "reverse")
950
- ], 2)
951
- ])
952
- ], 2));
1741
+ function I() {
1742
+ s.value || (b.value = !1);
953
1743
  }
954
- }), po = /* @__PURE__ */ T({
955
- __name: "Box",
1744
+ return te([l, i, r, s], C, {
1745
+ flush: "sync"
1746
+ }), te([u, c], x, {
1747
+ flush: "sync"
1748
+ }), te(s, I, {
1749
+ flush: "sync"
1750
+ }), bt() && yt(O), {
1751
+ x: ae(_),
1752
+ y: ae(p),
1753
+ strategy: ae(f),
1754
+ placement: ae(m),
1755
+ middlewareData: ae(v),
1756
+ isPositioned: ae(b),
1757
+ floatingStyles: g,
1758
+ update: C
1759
+ };
1760
+ }
1761
+ let et = !1;
1762
+ const Ao = () => {
1763
+ if (et)
1764
+ return;
1765
+ et = !0;
1766
+ let e;
1767
+ Object.defineProperty(window, "wasTooltipShown", {
1768
+ get() {
1769
+ return clearTimeout(window.wasTooltipTimeout), window.wasTooltipTimeout = setTimeout(() => {
1770
+ e = !1;
1771
+ }, 2e3), e;
1772
+ },
1773
+ set(t) {
1774
+ e = t, clearTimeout(window.wasTooltipTimeout), t && (window.wasTooltipTimeout = setTimeout(() => {
1775
+ e = !1;
1776
+ }, 2e3));
1777
+ },
1778
+ configurable: !0
1779
+ });
1780
+ };
1781
+ function Eo(e = "") {
1782
+ return typeof e == "string" ? e.replace(/<\/style>/gi, "").replace(/<(.*?) on(.*?)=['"](.*?)>/gi, "").replace(/(<meta |<style|<\/*script)(.*?)>/gi, "").replace(/(<([^>]+)>)/ig, "").replace(/<(.*?) (href|src)="j(.*)a(.*)v(.*)a(.*)s(.*)c(.*)r(.*)i(.*)p(.*)t(.*):(.*?)>/gi, "") : e;
1783
+ }
1784
+ const Lo = "_bubble_1qdad_1", Io = "_trigger_1qdad_43", Mo = "_trigger__icon_1qdad_51", Vo = "_arrow_1qdad_57", Bo = "_bubble__content_1qdad_79", he = {
1785
+ bubble: Lo,
1786
+ trigger: Io,
1787
+ trigger__icon: Mo,
1788
+ arrow: Vo,
1789
+ bubble__content: Bo
1790
+ }, zo = ["innerHTML"], Po = ["id"], tt = 1e3, qo = /* @__PURE__ */ Q({
1791
+ __name: "Tooltip",
956
1792
  props: {
957
- type: { default: "default" },
958
- borderTriangle: { type: Boolean, default: !1 },
959
- borderTriangleAlign: {},
960
- borderTrianglePosition: {},
961
- boxSpacing: { default: "" }
1793
+ id: {},
1794
+ text: {},
1795
+ placement: {},
1796
+ status: { type: Boolean },
1797
+ preventXss: { type: Boolean },
1798
+ iconName: {}
962
1799
  },
963
- setup(u) {
964
- const n = {
965
- default: io,
966
- flip: uo
1800
+ setup(e) {
1801
+ const t = {
1802
+ top: "bottom",
1803
+ right: "left",
1804
+ bottom: "top",
1805
+ left: "right"
967
1806
  };
968
- return (r, t) => (p(), q(Oe(n[r.type]), {
969
- "border-triangle": r.borderTriangle,
970
- "border-triangle-align": r.borderTriangleAlign,
971
- "border-triangle-position": r.borderTrianglePosition,
972
- "box-spacing": r.boxSpacing
973
- }, {
974
- default: xe(() => [
975
- D(r.$slots, "default"),
976
- D(r.$slots, "front"),
977
- D(r.$slots, "reverse")
978
- ]),
979
- _: 3
980
- }, 8, ["border-triangle", "border-triangle-align", "border-triangle-position", "box-spacing"]));
1807
+ let o = null, n = null;
1808
+ typeof window < "u" && window.wasTooltipShown === void 0 && (window.wasTooltipShown = !1);
1809
+ const s = e, l = A(null), i = A(null), r = A(null), a = A(!1), u = V(() => s.preventXss ? Eo(s.text) : s.text), { floatingStyles: c, update: _, middlewareData: p, placement: f } = Ro(i, l, {
1810
+ placement: V(() => s.placement || "bottom"),
1811
+ strategy: "fixed",
1812
+ whileElementsMounted: yo,
1813
+ middleware: [
1814
+ xo(10),
1815
+ Co(),
1816
+ ko(),
1817
+ Oo({ element: r, padding: 8 })
1818
+ ]
1819
+ }), m = () => {
1820
+ o && clearTimeout(o), n && clearTimeout(n), window.wasTooltipShown ? a.value = !0 : o = setTimeout(() => {
1821
+ a.value = !0, window.wasTooltipShown = !0;
1822
+ }, tt);
1823
+ }, v = () => {
1824
+ n && clearTimeout(n), n = setTimeout(() => {
1825
+ a.value = !1, window.wasTooltipShown = !0;
1826
+ }, tt);
1827
+ }, b = () => {
1828
+ n && clearTimeout(n);
1829
+ }, g = () => {
1830
+ b(), m();
1831
+ }, k = () => {
1832
+ v();
1833
+ };
1834
+ te(() => s.placement, _), xt(Ao), Pe(() => {
1835
+ kt(_), window.addEventListener("resize", _);
1836
+ }), Ct(() => {
1837
+ window.removeEventListener("resize", _);
1838
+ });
1839
+ const C = V(() => {
1840
+ const [x] = f.value.split("-");
1841
+ return {
1842
+ [t[x]]: "-4px"
1843
+ };
1844
+ }), O = V(() => {
1845
+ var x, I;
1846
+ return r.value ? {
1847
+ left: ((x = p.value.arrow) == null ? void 0 : x.x) != null ? `${p.value.arrow.x}px` : "",
1848
+ top: ((I = p.value.arrow) == null ? void 0 : I.y) != null ? `${p.value.arrow.y}px` : "",
1849
+ right: "",
1850
+ bottom: "",
1851
+ ...C.value
1852
+ } : {};
1853
+ });
1854
+ return (x, I) => (y(), $(Ce, null, [
1855
+ (y(), ge(Tt, { to: "body" }, [
1856
+ x.status || a.value ? (y(), $("div", {
1857
+ key: 0,
1858
+ ref_key: "tooltipRef",
1859
+ ref: l,
1860
+ class: h(d(he).bubble),
1861
+ style: Te(d(c)),
1862
+ onMouseenter: g,
1863
+ onMouseleave: k
1864
+ }, [
1865
+ B("div", {
1866
+ class: h(d(he).bubble__content)
1867
+ }, [
1868
+ B("div", { innerHTML: u.value }, null, 8, zo),
1869
+ Ue(x.$slots, "contentSlot")
1870
+ ], 2),
1871
+ B("div", {
1872
+ ref_key: "floatingArrowRef",
1873
+ ref: r,
1874
+ class: h(d(he).arrow),
1875
+ style: Te(O.value)
1876
+ }, null, 6)
1877
+ ], 38)) : L("", !0)
1878
+ ])),
1879
+ B("div", {
1880
+ id: x.id,
1881
+ ref_key: "triggerRef",
1882
+ ref: i,
1883
+ class: h(d(he).trigger),
1884
+ onMouseenter: g,
1885
+ onMouseleave: k
1886
+ }, [
1887
+ x.iconName ? (y(), ge(d(we), {
1888
+ key: 0,
1889
+ color: d(he).trigger__icon,
1890
+ name: x.iconName
1891
+ }, null, 8, ["color", "name"])) : Ue(x.$slots, "default", { key: 1 })
1892
+ ], 42, Po)
1893
+ ], 64));
981
1894
  }
982
1895
  });
983
1896
  export {
984
- po as Box,
985
- fo as Button,
986
- mo as DropdownMenu,
987
- Q as Icon,
988
- ho as NumberInput,
989
- bo as OnPageMessage,
990
- vo as SegmentButton,
991
- go as TextInput,
992
- wo as Toggle,
993
- yo as Tooltip
1897
+ Fo as Button,
1898
+ Ho as DropdownMenu,
1899
+ we as Icon,
1900
+ Go as NumberInput,
1901
+ No as OnPageMessage,
1902
+ Wo as SegmentButton,
1903
+ jo as TextInput,
1904
+ Yo as Toggle,
1905
+ qo as Tooltip
994
1906
  };
995
1907
  //# sourceMappingURL=ab-components.es.js.map