@useinsider/ab-components 0.0.20 → 0.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,39 +1,41 @@
1
- import { defineComponent as T, computed as C, openBlock as p, createElementBlock as f, normalizeClass as s, unref as o, createBlock as U, createCommentVNode as z, 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 F, withModifiers as Te, vModelText as He, renderList as he, vShow as Ve, createVNode as ye, onBeforeUnmount as Le, renderSlot as D, withCtx as ze, nextTick as we, resolveDynamicComponent as Oe } from "vue";
2
- const Ne = "_button__size_default_16zzc_1", Ee = "_button__size_small_16zzc_8", We = "_button_16zzc_1", De = "_button__label_16zzc_193", je = "_button__solid_16zzc_205", qe = "_fill_16zzc_1125", R = {
3
- button__size_default: Ne,
4
- button__size_small: Ee,
5
- button: We,
6
- button__label: De,
7
- "button__solid-primary": "_button__solid-primary_16zzc_205",
8
- "no-hover-effect": "_no-hover-effect_16zzc_212",
9
- "button--selected": "_button--selected_16zzc_234",
10
- "button__solid-subtle-primary": "_button__solid-subtle-primary_16zzc_241",
11
- "button__solid-secondary": "_button__solid-secondary_16zzc_277",
12
- "button__solid-danger": "_button__solid-danger_16zzc_313",
13
- "button__solid-warning": "_button__solid-warning_16zzc_349",
14
- "button__solid-smart": "_button__solid-smart_16zzc_385",
15
- "button__ghost-primary": "_button__ghost-primary_16zzc_421",
16
- "button__ghost-subtle-primary": "_button__ghost-subtle-primary_16zzc_457",
17
- "button__ghost-secondary": "_button__ghost-secondary_16zzc_493",
18
- "button__ghost-danger": "_button__ghost-danger_16zzc_529",
19
- "button__ghost-warning": "_button__ghost-warning_16zzc_565",
20
- "button__ghost-smart": "_button__ghost-smart_16zzc_601",
21
- "button__text-primary": "_button__text-primary_16zzc_637",
22
- "button__text-text": "_button__text-text_16zzc_673",
23
- "button__text-subtle-primary": "_button__text-subtle-primary_16zzc_709",
24
- "button__text-secondary": "_button__text-secondary_16zzc_745",
25
- "button__text-danger": "_button__text-danger_16zzc_781",
26
- "button__text-warning": "_button__text-warning_16zzc_817",
27
- "button__text-smart": "_button__text-smart_16zzc_853",
28
- "button__outline-primary": "_button__outline-primary_16zzc_889",
29
- "button__outline-subtle-primary": "_button__outline-subtle-primary_16zzc_926",
30
- "button__outline-secondary": "_button__outline-secondary_16zzc_963",
31
- "button__outline-danger": "_button__outline-danger_16zzc_1000",
32
- "button__outline-warning": "_button__outline-warning_16zzc_1037",
33
- "button__outline-smart": "_button__outline-smart_16zzc_1074",
34
- button__solid: je,
35
- fill: qe
36
- }, Ae = ["disabled"], fo = /* @__PURE__ */ T({
1
+ import { defineComponent as T, computed as C, openBlock as p, createElementBlock as m, normalizeClass as s, unref as o, createBlock as j, createCommentVNode as k, 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 qe, renderList as he, vShow as He, createVNode as ye, onBeforeUnmount as Ve, renderSlot as W, withCtx as ke, nextTick as we, resolveDynamicComponent as Le } from "vue";
2
+ const Oe = "_button__size_default_1vdmr_1", Ne = "_button__size_small_1vdmr_8", Ee = "_icon_1vdmr_136", We = "_spinner_1vdmr_1", De = "_button_1vdmr_1", Ae = "_button__label_1vdmr_212", Re = "_button__solid_1vdmr_224", Ge = "_fill_1vdmr_1144", G = {
3
+ button__size_default: Oe,
4
+ button__size_small: Ne,
5
+ icon: Ee,
6
+ spinner: We,
7
+ button: De,
8
+ button__label: Ae,
9
+ "button__solid-primary": "_button__solid-primary_1vdmr_224",
10
+ "no-hover-effect": "_no-hover-effect_1vdmr_231",
11
+ "button--selected": "_button--selected_1vdmr_253",
12
+ "button__solid-subtle-primary": "_button__solid-subtle-primary_1vdmr_260",
13
+ "button__solid-secondary": "_button__solid-secondary_1vdmr_296",
14
+ "button__solid-danger": "_button__solid-danger_1vdmr_332",
15
+ "button__solid-warning": "_button__solid-warning_1vdmr_368",
16
+ "button__solid-smart": "_button__solid-smart_1vdmr_404",
17
+ "button__ghost-primary": "_button__ghost-primary_1vdmr_440",
18
+ "button__ghost-subtle-primary": "_button__ghost-subtle-primary_1vdmr_476",
19
+ "button__ghost-secondary": "_button__ghost-secondary_1vdmr_512",
20
+ "button__ghost-danger": "_button__ghost-danger_1vdmr_548",
21
+ "button__ghost-warning": "_button__ghost-warning_1vdmr_584",
22
+ "button__ghost-smart": "_button__ghost-smart_1vdmr_620",
23
+ "button__text-primary": "_button__text-primary_1vdmr_656",
24
+ "button__text-text": "_button__text-text_1vdmr_692",
25
+ "button__text-subtle-primary": "_button__text-subtle-primary_1vdmr_728",
26
+ "button__text-secondary": "_button__text-secondary_1vdmr_764",
27
+ "button__text-danger": "_button__text-danger_1vdmr_800",
28
+ "button__text-warning": "_button__text-warning_1vdmr_836",
29
+ "button__text-smart": "_button__text-smart_1vdmr_872",
30
+ "button__outline-primary": "_button__outline-primary_1vdmr_908",
31
+ "button__outline-subtle-primary": "_button__outline-subtle-primary_1vdmr_945",
32
+ "button__outline-secondary": "_button__outline-secondary_1vdmr_982",
33
+ "button__outline-danger": "_button__outline-danger_1vdmr_1019",
34
+ "button__outline-warning": "_button__outline-warning_1vdmr_1056",
35
+ "button__outline-smart": "_button__outline-smart_1vdmr_1093",
36
+ button__solid: Re,
37
+ fill: Ge
38
+ }, Ye = ["disabled"], To = /* @__PURE__ */ T({
37
39
  __name: "Button",
38
40
  props: {
39
41
  variant: {},
@@ -52,32 +54,32 @@ const Ne = "_button__size_default_16zzc_1", Ee = "_button__size_small_16zzc_8",
52
54
  const r = u, t = n, a = (d) => {
53
55
  r.disabled || t("click", d);
54
56
  }, _ = C(() => r.loadingStatus ? "loading-circle" : r.successStatus ? "line-check-natural" : r.leftIconName);
55
- return (d, e) => (p(), f("button", {
57
+ return (d, e) => (p(), m("button", {
56
58
  class: s([
57
- o(R).button,
58
- o(R)[`button__${d.variant}`],
59
- o(R)[`button__${d.variant}-${d.color}`],
60
- o(R)[`button__size_${d.size}`],
61
- { [o(R).fill]: d.fill }
59
+ o(G).button,
60
+ o(G)[`button__${d.variant}`],
61
+ o(G)[`button__${d.variant}-${d.color}`],
62
+ o(G)[`button__size_${d.size}`],
63
+ { [o(G).fill]: d.fill }
62
64
  ]),
63
65
  disabled: r.disabled,
64
66
  onClick: a
65
67
  }, [
66
- _.value ? (p(), U(o(Q), {
68
+ _.value ? (p(), j(o(Q), {
67
69
  key: 0,
68
70
  name: _.value
69
- }, null, 8, ["name"])) : z("", !0),
70
- d.label ? (p(), f("span", {
71
+ }, null, 8, ["name"])) : k("", !0),
72
+ d.label ? (p(), m("span", {
71
73
  key: 1,
72
- class: s(o(R).button__label)
73
- }, I(d.label), 3)) : z("", !0),
74
- d.rightIconName ? (p(), U(o(Q), {
74
+ class: s(o(G).button__label)
75
+ }, I(d.label), 3)) : k("", !0),
76
+ d.rightIconName ? (p(), j(o(Q), {
75
77
  key: 2,
76
78
  name: d.rightIconName
77
- }, null, 8, ["name"])) : z("", !0)
78
- ], 10, Ae));
79
+ }, null, 8, ["name"])) : k("", !0)
80
+ ], 10, Ye));
79
81
  }
80
- }), Re = {
82
+ }), Xe = {
81
83
  mounted(u, n) {
82
84
  u.clickOutsideEvent = (r) => {
83
85
  const t = (n.value.exclude || []).filter((_) => _.value).map((_) => _.value);
@@ -87,43 +89,45 @@ const Ne = "_button__size_default_16zzc_1", Ee = "_button__size_small_16zzc_8",
87
89
  unmounted(u) {
88
90
  u.clickOutsideEvent && document.removeEventListener("click", u.clickOutsideEvent);
89
91
  }
90
- }, Ge = (u, n) => {
92
+ }, Fe = (u, n) => {
91
93
  var t;
92
94
  let r = 0;
93
95
  for (const a of u)
94
96
  if (a.toLowerCase() === ((t = n[r]) == null ? void 0 : t.toLowerCase()) && r++, r === n.length)
95
97
  return !0;
96
98
  return !1;
97
- }, Ye = (u, n, r) => {
99
+ }, Ue = (u, n, r) => {
98
100
  if (!r.trim())
99
101
  return u;
100
102
  const t = r.toLowerCase();
101
103
  return u.filter((a) => {
102
104
  const _ = String(a[n]);
103
- return Ge(_.toLowerCase(), t);
105
+ return Fe(_.toLowerCase(), t);
104
106
  }).sort((a, _) => {
105
107
  const d = String(a[n]).toLowerCase(), e = String(_[n]).toLowerCase();
106
108
  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;
107
109
  });
108
- }, Xe = "_dropdown_c02u6_1", Fe = "_menu_c02u6_1", Ue = "_dropdown__valueContent_c02u6_183", Qe = "_dropdown__label_c02u6_194", Ze = "_dropdown__value_c02u6_183", Je = "_dropdown__placeholder_c02u6_202", Ke = "_dropdown__arrowIcon_c02u6_210", et = "_menu__searchContainer_c02u6_225", tt = "_menu__searchInputWrap_c02u6_229", ot = "_menu__searchInput_c02u6_229", nt = "_menu__errorMessage_c02u6_251", rt = "_menu__addButton_c02u6_258", at = "_menu__itemContainer_c02u6_266", lt = "_menu__item_c02u6_266", $ = {
109
- dropdown: Xe,
110
- menu: Fe,
111
- dropdown__valueContent: Ue,
112
- "dropdown__valueContent--open": "_dropdown__valueContent--open_c02u6_191",
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_c02u6_248",
121
- menu__errorMessage: nt,
122
- menu__addButton: rt,
123
- menu__itemContainer: at,
124
- menu__item: lt,
125
- "menu__item--active": "_menu__item--active_c02u6_304"
126
- }, st = ["for"], _t = ["placeholder"], it = ["onClick"], mo = /* @__PURE__ */ T({
110
+ }, je = "_dropdown_18zqi_1", Qe = "_menu_18zqi_1", Ze = "_icon_18zqi_129", Je = "_spinner_18zqi_1", Ke = "_dropdown__valueContent_18zqi_202", et = "_dropdown__label_18zqi_213", tt = "_dropdown__value_18zqi_202", ot = "_dropdown__placeholder_18zqi_221", nt = "_dropdown__arrowIcon_18zqi_229", rt = "_menu__searchContainer_18zqi_244", at = "_menu__searchInputWrap_18zqi_248", lt = "_menu__searchInput_18zqi_248", st = "_menu__errorMessage_18zqi_270", _t = "_menu__addButton_18zqi_277", it = "_menu__itemContainer_18zqi_285", ut = "_menu__item_18zqi_285", $ = {
111
+ dropdown: je,
112
+ menu: Qe,
113
+ icon: Ze,
114
+ spinner: Je,
115
+ dropdown__valueContent: Ke,
116
+ "dropdown__valueContent--open": "_dropdown__valueContent--open_18zqi_210",
117
+ dropdown__label: et,
118
+ dropdown__value: tt,
119
+ dropdown__placeholder: ot,
120
+ dropdown__arrowIcon: nt,
121
+ menu__searchContainer: rt,
122
+ menu__searchInputWrap: at,
123
+ menu__searchInput: lt,
124
+ "menu__searchInput--error": "_menu__searchInput--error_18zqi_267",
125
+ menu__errorMessage: st,
126
+ menu__addButton: _t,
127
+ menu__itemContainer: it,
128
+ menu__item: ut,
129
+ "menu__item--active": "_menu__item--active_18zqi_323"
130
+ }, pt = ["for"], ct = ["placeholder"], dt = ["onClick"], qo = /* @__PURE__ */ T({
127
131
  __name: "DropdownMenu",
128
132
  props: {
129
133
  id: {},
@@ -140,39 +144,39 @@ const Ne = "_button__size_default_16zzc_1", Ee = "_button__size_small_16zzc_8",
140
144
  },
141
145
  emits: ["update:modelValue", "add-error", "item-added", "select-item"],
142
146
  setup(u, { emit: n }) {
143
- const r = Re, 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]), A = () => {
147
+ const r = Xe, 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 }), q = ve([...t.items]), B = ve([...t.items]), R = () => {
144
148
  if (!_.value)
145
149
  return;
146
- const { offsetTop: m, offsetLeft: g, offsetWidth: x } = _.value, N = window.innerHeight, G = m + _.value.offsetHeight, ee = G + t.menuHeight > N;
150
+ const { offsetTop: f, offsetLeft: g, offsetWidth: x } = _.value, O = window.innerHeight, Y = f + _.value.offsetHeight, ee = Y + t.menuHeight > O;
147
151
  P.value = {
148
152
  x: g + window.scrollX,
149
- y: ee ? m + window.scrollY : G + window.scrollY,
153
+ y: ee ? f + window.scrollY : Y + window.scrollY,
150
154
  width: x,
151
155
  shouldOpenUp: ee,
152
156
  height: t.menuHeight
153
157
  };
154
158
  }, S = () => {
155
- A(), e.value = !e.value;
156
- }, O = () => {
157
- c.value = null, b.value = "", H.splice(0, H.length, ...B);
159
+ R(), e.value = !e.value;
160
+ }, L = () => {
161
+ c.value = null, b.value = "", q.splice(0, q.length, ...B);
158
162
  }, Z = () => {
159
- e.value = !1, O();
160
- }, re = (m) => {
161
- l.value = m, a("select-item", m), a("update:modelValue", m.value), Z();
162
- }, j = () => {
163
- const m = b.value.trim(), g = t.validateAddItem(m, B);
163
+ e.value = !1, L();
164
+ }, re = (f) => {
165
+ l.value = f, a("select-item", f), a("update:modelValue", f.value), Z();
166
+ }, D = () => {
167
+ const f = b.value.trim(), g = t.validateAddItem(f, B);
164
168
  if (g) {
165
169
  c.value = g, a("add-error", g);
166
170
  return;
167
171
  }
168
172
  const x = {
169
- text: m,
170
- value: m
173
+ text: f,
174
+ value: f
171
175
  };
172
- B.push(x), O(), a("item-added", x);
176
+ B.push(x), L(), a("item-added", x);
173
177
  }, ae = () => {
174
- const m = Ye(B, "text", b.value);
175
- H.splice(0, H.length, ...m);
178
+ const f = Ue(B, "text", b.value);
179
+ q.splice(0, q.length, ...f);
176
180
  }, J = () => {
177
181
  c.value = "";
178
182
  }, le = C(() => ({
@@ -182,37 +186,37 @@ const Ne = "_button__size_default_16zzc_1", Ee = "_button__size_small_16zzc_8",
182
186
  height: `${t.menuHeight}px`
183
187
  }));
184
188
  ce(() => {
185
- if (A(), t.modelValue) {
186
- const m = B.find((g) => g.value === t.modelValue);
187
- m && (l.value = m);
189
+ if (R(), t.modelValue) {
190
+ const f = B.find((g) => g.value === t.modelValue);
191
+ f && (l.value = f);
188
192
  }
189
193
  });
190
194
  const K = C(() => l.value ? l.value.text : "");
191
- oe(() => t.modelValue, (m) => {
195
+ oe(() => t.modelValue, (f) => {
192
196
  var g;
193
- if (((g = l.value) == null ? void 0 : g.value) !== m) {
194
- const x = B.find((N) => N.value === m);
197
+ if (((g = l.value) == null ? void 0 : g.value) !== f) {
198
+ const x = B.find((O) => O.value === f);
195
199
  x && (l.value = x);
196
200
  }
197
201
  }), oe(
198
202
  () => t.items,
199
- (m) => {
200
- B.splice(0, B.length, ...m), H.splice(0, H.length, ...m);
203
+ (f) => {
204
+ B.splice(0, B.length, ...f), q.splice(0, q.length, ...f);
201
205
  },
202
206
  { deep: !0 }
203
207
  );
204
208
  const se = v({ handler: Z, exclude: [_, d] });
205
- return (m, g) => (p(), f(pe, null, [
209
+ return (f, g) => (p(), m(pe, null, [
206
210
  y("div", {
207
211
  ref_key: "dropdownRef",
208
212
  ref: _,
209
213
  class: s(o($).dropdown)
210
214
  }, [
211
- m.label ? (p(), f("label", {
215
+ f.label ? (p(), m("label", {
212
216
  key: 0,
213
217
  class: s(o($).dropdown__label),
214
- for: m.id
215
- }, I(m.label), 11, st)) : z("", !0),
218
+ for: f.id
219
+ }, I(f.label), 11, pt)) : k("", !0),
216
220
  y("button", {
217
221
  class: s([
218
222
  o($).dropdown__valueContent,
@@ -225,11 +229,11 @@ const Ne = "_button__size_default_16zzc_1", Ee = "_button__size_small_16zzc_8",
225
229
  y("span", {
226
230
  class: s(o($).dropdown__value)
227
231
  }, I(K.value), 3),
228
- m.placeholder && !K.value ? (p(), f("span", {
232
+ f.placeholder && !K.value ? (p(), m("span", {
229
233
  key: 0,
230
234
  class: s(o($).dropdown__placeholder)
231
- }, I(m.placeholder), 3)) : z("", !0),
232
- (p(), f("svg", {
235
+ }, I(f.placeholder), 3)) : k("", !0),
236
+ (p(), m("svg", {
233
237
  fill: "none",
234
238
  height: "17",
235
239
  viewBox: "0 0 16 17",
@@ -244,15 +248,15 @@ const Ne = "_button__size_default_16zzc_1", Ee = "_button__size_small_16zzc_8",
244
248
  ]), 2))
245
249
  ], 2)
246
250
  ], 2),
247
- ge((p(), f("div", {
251
+ ge((p(), m("div", {
248
252
  ref_key: "menuRef",
249
253
  ref: d,
250
254
  class: s(o($).menu),
251
- style: F(le.value),
255
+ style: U(le.value),
252
256
  onClick: g[1] || (g[1] = Te(() => {
253
257
  }, ["prevent"]))
254
258
  }, [
255
- t.searchable ? (p(), f("div", {
259
+ t.searchable ? (p(), m("div", {
256
260
  key: 0,
257
261
  class: s(o($).menu__searchContainer)
258
262
  }, [
@@ -267,45 +271,45 @@ const Ne = "_button__size_default_16zzc_1", Ee = "_button__size_small_16zzc_8",
267
271
  [o($)["menu__searchInput--error"]]: c.value
268
272
  }
269
273
  ]),
270
- placeholder: m.searchPlaceHolder,
274
+ placeholder: f.searchPlaceHolder,
271
275
  "onUpdate:modelValue": g[0] || (g[0] = (x) => b.value = x),
272
276
  onFocus: J,
273
277
  onInput: ae
274
- }, null, 42, _t), [
275
- [He, b.value]
278
+ }, null, 42, ct), [
279
+ [qe, b.value]
276
280
  ]),
277
- c.value ? (p(), f("p", {
281
+ c.value ? (p(), m("p", {
278
282
  key: 0,
279
283
  class: s(o($).menu__errorMessage)
280
- }, I(c.value), 3)) : z("", !0)
284
+ }, I(c.value), 3)) : k("", !0)
281
285
  ], 2),
282
- t.addable ? (p(), f("button", {
286
+ t.addable ? (p(), m("button", {
283
287
  key: 0,
284
288
  class: s(o($).menu__addButton),
285
- onClick: j
286
- }, I(m.addButtonText), 3)) : z("", !0)
287
- ], 2)) : z("", !0),
289
+ onClick: D
290
+ }, I(f.addButtonText), 3)) : k("", !0)
291
+ ], 2)) : k("", !0),
288
292
  y("ul", {
289
293
  class: s(o($).menu__itemContainer)
290
294
  }, [
291
- (p(!0), f(pe, null, he(H, (x, N) => (p(), f("li", {
292
- key: `${x.value}-${N}`,
295
+ (p(!0), m(pe, null, he(q, (x, O) => (p(), m("li", {
296
+ key: `${x.value}-${O}`,
293
297
  class: s([
294
298
  o($).menu__item,
295
299
  {
296
300
  [o($)["menu__item--active"]]: l.value && x.value === l.value.value
297
301
  }
298
302
  ]),
299
- onClick: (G) => re(x)
300
- }, I(x.text), 11, it))), 128))
303
+ onClick: (Y) => re(x)
304
+ }, I(x.text), 11, dt))), 128))
301
305
  ], 2)
302
306
  ], 6)), [
303
- [Ve, e.value],
307
+ [He, e.value],
304
308
  [o(r), se.value]
305
309
  ])
306
310
  ], 64));
307
311
  }
308
- }), ut = ["fill", "height", "width"], pt = ["xlink:href"], ct = /* @__PURE__ */ T({
312
+ }), mt = ["fill", "height", "width"], ft = ["xlink:href"], bt = /* @__PURE__ */ T({
309
313
  __name: "Icon",
310
314
  props: {
311
315
  name: {},
@@ -314,7 +318,7 @@ const Ne = "_button__size_default_16zzc_1", Ee = "_button__size_small_16zzc_8",
314
318
  },
315
319
  setup(u) {
316
320
  const n = u, r = C(() => typeof n.size == "number" ? `${n.size}px` : n.size);
317
- return (t, a) => (p(), f("svg", {
321
+ return (t, a) => (p(), m("svg", {
318
322
  class: "icon",
319
323
  fill: t.color || "currentColor",
320
324
  height: r.value,
@@ -322,22 +326,24 @@ const Ne = "_button__size_default_16zzc_1", Ee = "_button__size_small_16zzc_8",
322
326
  }, [
323
327
  y("use", {
324
328
  "xlink:href": `#${t.name}`
325
- }, null, 8, pt)
326
- ], 8, ut));
329
+ }, null, 8, ft)
330
+ ], 8, mt));
327
331
  }
328
- }), dt = (u, n) => {
332
+ }), vt = (u, n) => {
329
333
  const r = u.__vccOpts || u;
330
334
  for (const [t, a] of n)
331
335
  r[t] = a;
332
336
  return r;
333
- }, Q = /* @__PURE__ */ dt(ct, [["__scopeId", "data-v-f04c8857"]]), ft = "_container_pab2j_1", mt = "_container__text_pab2j_185", bt = "_container__default_pab2j_189", vt = "_container__warning_pab2j_197", gt = "_container__alert_pab2j_205", wt = "_container__success_pab2j_213", ue = {
334
- container: ft,
335
- container__text: mt,
336
- container__default: bt,
337
- container__warning: vt,
338
- container__alert: gt,
339
- container__success: wt
340
- }, bo = /* @__PURE__ */ T({
337
+ }, Q = /* @__PURE__ */ vt(bt, [["__scopeId", "data-v-f04c8857"]]), gt = "_container_wovmm_1", wt = "_icon_wovmm_127", ht = "_spinner_wovmm_1", yt = "_container__text_wovmm_204", kt = "_container__default_wovmm_208", $t = "_container__warning_wovmm_216", xt = "_container__alert_wovmm_224", zt = "_container__success_wovmm_232", ue = {
338
+ container: gt,
339
+ icon: wt,
340
+ spinner: ht,
341
+ container__text: yt,
342
+ container__default: kt,
343
+ container__warning: $t,
344
+ container__alert: xt,
345
+ container__success: zt
346
+ }, Ho = /* @__PURE__ */ T({
341
347
  __name: "OnPageMessage",
342
348
  props: {
343
349
  variant: { default: "default" },
@@ -356,7 +362,7 @@ const Ne = "_button__size_default_16zzc_1", Ee = "_button__size_small_16zzc_8",
356
362
  return "filled-info-circle";
357
363
  }
358
364
  });
359
- return (t, a) => (p(), f("div", {
365
+ return (t, a) => (p(), m("div", {
360
366
  class: s([
361
367
  o(ue).container,
362
368
  o(ue)[`container__${t.variant}`]
@@ -371,23 +377,25 @@ const Ne = "_button__size_default_16zzc_1", Ee = "_button__size_small_16zzc_8",
371
377
  }, I(t.text), 3)
372
378
  ], 2));
373
379
  }
374
- }), ht = "_button__size_default_4wo1i_1", yt = "_button__size_small_4wo1i_8", zt = "_button_4wo1i_1", $t = "_button__label_4wo1i_191", xt = "_button__solid_4wo1i_330", kt = "_segmentGroup_4wo1i_337", St = "_fill_4wo1i_359", V = {
375
- button__size_default: ht,
376
- button__size_small: yt,
377
- button: zt,
378
- button__label: $t,
379
- "button--primary": "_button--primary_4wo1i_208",
380
- "button--selected": "_button--selected_4wo1i_218",
381
- "button--secondary": "_button--secondary_4wo1i_231",
382
- "button--danger": "_button--danger_4wo1i_254",
383
- "button--warning": "_button--warning_4wo1i_277",
384
- "button--smart": "_button--smart_4wo1i_300",
385
- button__solid: xt,
386
- segmentGroup: kt,
387
- "segmentGroup--vertical": "_segmentGroup--vertical_4wo1i_340",
388
- "segmentGroup--horizontal": "_segmentGroup--horizontal_4wo1i_349",
389
- fill: St
390
- }, Ct = ["disabled", "onClick"], vo = /* @__PURE__ */ T({
380
+ }), St = "_button__size_default_1r6q6_1", Ct = "_button__size_small_1r6q6_8", It = "_icon_1r6q6_136", Bt = "_spinner_1r6q6_1", Pt = "_button_1r6q6_1", Mt = "_button__label_1r6q6_210", Tt = "_button__solid_1r6q6_349", qt = "_segmentGroup_1r6q6_356", Ht = "_fill_1r6q6_378", H = {
381
+ button__size_default: St,
382
+ button__size_small: Ct,
383
+ icon: It,
384
+ spinner: Bt,
385
+ button: Pt,
386
+ button__label: Mt,
387
+ "button--primary": "_button--primary_1r6q6_227",
388
+ "button--selected": "_button--selected_1r6q6_237",
389
+ "button--secondary": "_button--secondary_1r6q6_250",
390
+ "button--danger": "_button--danger_1r6q6_273",
391
+ "button--warning": "_button--warning_1r6q6_296",
392
+ "button--smart": "_button--smart_1r6q6_319",
393
+ button__solid: Tt,
394
+ segmentGroup: qt,
395
+ "segmentGroup--vertical": "_segmentGroup--vertical_1r6q6_359",
396
+ "segmentGroup--horizontal": "_segmentGroup--horizontal_1r6q6_368",
397
+ fill: Ht
398
+ }, Vt = ["disabled", "onClick"], Vo = /* @__PURE__ */ T({
391
399
  __name: "SegmentButton",
392
400
  props: {
393
401
  color: {},
@@ -409,47 +417,49 @@ const Ne = "_button__size_default_16zzc_1", Ee = "_button__size_small_16zzc_8",
409
417
  const d = v([...r.segments]);
410
418
  return oe(() => r.segments, (e) => {
411
419
  d.value = [...e], e.some((l) => l.value === a.value) || (a.value = "", t("update:modelValue", ""));
412
- }, { deep: !0 }), (e, l) => (p(), f("div", {
420
+ }, { deep: !0 }), (e, l) => (p(), m("div", {
413
421
  class: s([
414
- o(V).segmentGroup,
415
- o(V)[`segmentGroup--${e.align}`],
416
- { [o(V).fill]: e.fill }
422
+ o(H).segmentGroup,
423
+ o(H)[`segmentGroup--${e.align}`],
424
+ { [o(H).fill]: e.fill }
417
425
  ])
418
426
  }, [
419
- (p(!0), f(pe, null, he(d.value, (b, c) => (p(), f("button", {
427
+ (p(!0), m(pe, null, he(d.value, (b, c) => (p(), m("button", {
420
428
  key: `${b.value}-${c}`,
421
429
  class: s([
422
- o(V).button,
423
- o(V)[`button--${e.color}`],
424
- o(V)[`button__size_${e.size}`],
425
- o(V).fill,
430
+ o(H).button,
431
+ o(H)[`button--${e.color}`],
432
+ o(H)[`button__size_${e.size}`],
433
+ o(H).fill,
426
434
  {
427
- [o(V)["button--selected"]]: b.value === a.value
435
+ [o(H)["button--selected"]]: b.value === a.value
428
436
  }
429
437
  ]),
430
438
  disabled: b.disabled || r.disabled,
431
439
  onClick: (P) => _(b)
432
440
  }, [
433
- b.icon ? (p(), U(o(Q), {
441
+ b.icon ? (p(), j(o(Q), {
434
442
  key: 0,
435
443
  name: b.icon
436
- }, null, 8, ["name"])) : z("", !0),
437
- b.label ? (p(), f("span", {
444
+ }, null, 8, ["name"])) : k("", !0),
445
+ b.label ? (p(), m("span", {
438
446
  key: 1,
439
- class: s(o(V).button__label)
440
- }, I(b.label), 3)) : z("", !0)
441
- ], 10, Ct))), 128))
447
+ class: s(o(H).button__label)
448
+ }, I(b.label), 3)) : k("", !0)
449
+ ], 10, Vt))), 128))
442
450
  ], 2));
443
451
  }
444
- }), It = "_wrapper__field_1fjsl_1", Bt = "_wrapper__label_1fjsl_1", Pt = "_wrapper__errorMessage_1fjsl_1", Mt = "_wrapper__counter_1fjsl_1", Tt = "_wrapper_1fjsl_1", Ht = "_wrapper__bottom_1fjsl_221", L = {
445
- wrapper__field: It,
446
- wrapper__label: Bt,
447
- wrapper__errorMessage: Pt,
448
- wrapper__counter: Mt,
449
- wrapper: Tt,
450
- wrapper__bottom: Ht,
451
- "wrapper--error": "_wrapper--error_1fjsl_234"
452
- }, Vt = ["for"], Lt = ["id", "maxlength", "name", "placeholder", "value"], Ot = ["id", "maxlength", "name", "placeholder", "value"], go = /* @__PURE__ */ T({
452
+ }), Lt = "_wrapper__field_l1d3k_1", Ot = "_wrapper__label_l1d3k_1", Nt = "_wrapper__errorMessage_l1d3k_1", Et = "_wrapper__counter_l1d3k_1", Wt = "_icon_l1d3k_129", Dt = "_spinner_l1d3k_1", At = "_wrapper_l1d3k_1", Rt = "_wrapper__bottom_l1d3k_240", V = {
453
+ wrapper__field: Lt,
454
+ wrapper__label: Ot,
455
+ wrapper__errorMessage: Nt,
456
+ wrapper__counter: Et,
457
+ icon: Wt,
458
+ spinner: Dt,
459
+ wrapper: At,
460
+ wrapper__bottom: Rt,
461
+ "wrapper--error": "_wrapper--error_l1d3k_253"
462
+ }, Gt = ["for"], Yt = ["id", "maxlength", "name", "placeholder", "value"], Xt = ["id", "maxlength", "name", "placeholder", "value"], Lo = /* @__PURE__ */ T({
453
463
  __name: "TextInput",
454
464
  props: {
455
465
  id: {},
@@ -480,43 +490,43 @@ const Ne = "_button__size_default_16zzc_1", Ee = "_button__size_small_16zzc_8",
480
490
  _();
481
491
  }), (e, l) => {
482
492
  var b;
483
- return p(), f("div", {
484
- class: s(o(L).wrapper)
493
+ return p(), m("div", {
494
+ class: s(o(V).wrapper)
485
495
  }, [
486
- e.label ? (p(), f("label", {
496
+ e.label ? (p(), m("label", {
487
497
  key: 0,
488
- class: s(o(L).wrapper__label),
498
+ class: s(o(V).wrapper__label),
489
499
  for: e.id
490
- }, I(e.label), 11, Vt)) : z("", !0),
491
- e.multiline ? (p(), f("textarea", {
500
+ }, I(e.label), 11, Gt)) : k("", !0),
501
+ e.multiline ? (p(), m("textarea", {
492
502
  key: 1,
493
503
  id: e.id,
494
504
  ref_key: "textareaRef",
495
505
  ref: a,
496
506
  class: s([
497
- o(L).wrapper__field,
507
+ o(V).wrapper__field,
498
508
  {
499
- [o(L)["wrapper--error"]]: e.error
509
+ [o(V)["wrapper--error"]]: e.error
500
510
  }
501
511
  ]),
502
512
  maxlength: e.maxLength,
503
513
  name: e.name,
504
514
  placeholder: e.placeholder,
505
- style: F(e.maxHeight ? { maxHeight: `${e.maxHeight}px` } : void 0),
515
+ style: U(e.maxHeight ? { maxHeight: `${e.maxHeight}px` } : void 0),
506
516
  value: e.modelValue,
507
517
  onBlur: l[0] || (l[0] = (c) => t("blur", c)),
508
518
  onChange: l[1] || (l[1] = (c) => e.$emit("change", c)),
509
519
  onFocus: l[2] || (l[2] = (c) => t("focus", c)),
510
520
  onInput: d,
511
521
  onPaste: l[3] || (l[3] = (c) => t("paste", c))
512
- }, null, 46, Lt)) : (p(), f("input", {
522
+ }, null, 46, Yt)) : (p(), m("input", {
513
523
  key: 2,
514
524
  id: e.id,
515
525
  type: "text",
516
526
  class: s([
517
- o(L).wrapper__field,
527
+ o(V).wrapper__field,
518
528
  {
519
- [o(L)["wrapper--error"]]: e.error
529
+ [o(V)["wrapper--error"]]: e.error
520
530
  }
521
531
  ]),
522
532
  maxlength: e.maxLength,
@@ -528,33 +538,35 @@ const Ne = "_button__size_default_16zzc_1", Ee = "_button__size_small_16zzc_8",
528
538
  onFocus: l[6] || (l[6] = (c) => t("focus", c)),
529
539
  onInput: d,
530
540
  onPaste: l[7] || (l[7] = (c) => t("paste", c))
531
- }, null, 42, Ot)),
541
+ }, null, 42, Xt)),
532
542
  y("div", {
533
- class: s(o(L).wrapper__bottom)
543
+ class: s(o(V).wrapper__bottom)
534
544
  }, [
535
- e.error ? (p(), f("div", {
545
+ e.error ? (p(), m("div", {
536
546
  key: 0,
537
- class: s(o(L).wrapper__errorMessage)
538
- }, I(e.error), 3)) : z("", !0),
539
- e.counter ? (p(), f("div", {
547
+ class: s(o(V).wrapper__errorMessage)
548
+ }, I(e.error), 3)) : k("", !0),
549
+ e.counter ? (p(), m("div", {
540
550
  key: 1,
541
- class: s(o(L).wrapper__counter)
542
- }, I(((b = e.modelValue) == null ? void 0 : b.toString().length) || 0), 3)) : z("", !0)
551
+ class: s(o(V).wrapper__counter)
552
+ }, I(((b = e.modelValue) == null ? void 0 : b.toString().length) || 0), 3)) : k("", !0)
543
553
  ], 2)
544
554
  ], 2);
545
555
  };
546
556
  }
547
- }), Nt = "_wrapper__label_3sncs_1", Et = "_wrapper__errorMessage_3sncs_1", Wt = "_wrapper__counter_3sncs_1", Dt = "_wrapper_3sncs_1", jt = "_wrapper__field_3sncs_8", qt = "_wrapper__size_default_3sncs_185", At = "_wrapper__size_small_3sncs_188", Rt = "_wrapper__bottom_3sncs_225", E = {
548
- wrapper__label: Nt,
549
- wrapper__errorMessage: Et,
550
- wrapper__counter: Wt,
551
- wrapper: Dt,
552
- wrapper__field: jt,
553
- wrapper__size_default: qt,
554
- wrapper__size_small: At,
555
- wrapper__bottom: Rt,
556
- "wrapper--error": "_wrapper--error_3sncs_238"
557
- }, Gt = ["for"], Yt = ["id", "max", "maxlength", "min", "name", "placeholder", "value"], wo = /* @__PURE__ */ T({
557
+ }), Ft = "_wrapper__label_k2iss_1", Ut = "_wrapper__errorMessage_k2iss_1", jt = "_wrapper__counter_k2iss_1", Qt = "_wrapper_k2iss_1", Zt = "_wrapper__field_k2iss_8", Jt = "_icon_k2iss_134", Kt = "_spinner_k2iss_1", eo = "_wrapper__size_default_k2iss_204", to = "_wrapper__size_small_k2iss_207", oo = "_wrapper__bottom_k2iss_244", N = {
558
+ wrapper__label: Ft,
559
+ wrapper__errorMessage: Ut,
560
+ wrapper__counter: jt,
561
+ wrapper: Qt,
562
+ wrapper__field: Zt,
563
+ icon: Jt,
564
+ spinner: Kt,
565
+ wrapper__size_default: eo,
566
+ wrapper__size_small: to,
567
+ wrapper__bottom: oo,
568
+ "wrapper--error": "_wrapper--error_k2iss_257"
569
+ }, no = ["for"], ro = ["id", "max", "maxlength", "min", "name", "placeholder", "value"], Oo = /* @__PURE__ */ T({
558
570
  __name: "NumberInput",
559
571
  props: {
560
572
  id: {},
@@ -586,21 +598,21 @@ const Ne = "_button__size_default_16zzc_1", Ee = "_button__size_small_16zzc_8",
586
598
  };
587
599
  return (e, l) => {
588
600
  var b;
589
- return p(), f("div", {
590
- class: s([o(E).wrapper, o(E)[`wrapper__size_${e.size}`]])
601
+ return p(), m("div", {
602
+ class: s([o(N).wrapper, o(N)[`wrapper__size_${e.size}`]])
591
603
  }, [
592
- e.label ? (p(), f("label", {
604
+ e.label ? (p(), m("label", {
593
605
  key: 0,
594
- class: s(o(E).wrapper__label),
606
+ class: s(o(N).wrapper__label),
595
607
  for: e.id
596
- }, I(e.label), 11, Gt)) : z("", !0),
608
+ }, I(e.label), 11, no)) : k("", !0),
597
609
  y("input", {
598
610
  id: e.id,
599
611
  type: "number",
600
612
  class: s([
601
- o(E).wrapper__field,
613
+ o(N).wrapper__field,
602
614
  {
603
- [o(E)["wrapper--error"]]: e.error || e.errorStatus
615
+ [o(N)["wrapper--error"]]: e.error || e.errorStatus
604
616
  }
605
617
  ]),
606
618
  max: e.max,
@@ -614,30 +626,32 @@ const Ne = "_button__size_default_16zzc_1", Ee = "_button__size_small_16zzc_8",
614
626
  onFocus: l[1] || (l[1] = (c) => t("focus", c)),
615
627
  onInput: _,
616
628
  onPaste: l[2] || (l[2] = (c) => t("paste", c))
617
- }, null, 42, Yt),
618
- e.counter || e.error ? (p(), f("div", {
629
+ }, null, 42, ro),
630
+ e.counter || e.error ? (p(), m("div", {
619
631
  key: 1,
620
- class: s(o(E).wrapper__bottom)
632
+ class: s(o(N).wrapper__bottom)
621
633
  }, [
622
- e.error ? (p(), f("div", {
634
+ e.error ? (p(), m("div", {
623
635
  key: 0,
624
- class: s(o(E).wrapper__errorMessage)
625
- }, I(e.error), 3)) : z("", !0),
626
- e.counter ? (p(), f("div", {
636
+ class: s(o(N).wrapper__errorMessage)
637
+ }, I(e.error), 3)) : k("", !0),
638
+ e.counter ? (p(), m("div", {
627
639
  key: 1,
628
- class: s(o(E).wrapper__counter)
629
- }, I(((b = e.modelValue) == null ? void 0 : b.toString().length) || 0), 3)) : z("", !0)
630
- ], 2)) : z("", !0)
640
+ class: s(o(N).wrapper__counter)
641
+ }, I(((b = e.modelValue) == null ? void 0 : b.toString().length) || 0), 3)) : k("", !0)
642
+ ], 2)) : k("", !0)
631
643
  ], 2);
632
644
  };
633
645
  }
634
- }), Xt = "_wrapper_d1zlt_169", Ft = "_wrapper__label_d1zlt_176", Ut = "_wrapper__input_d1zlt_200", Qt = "_wrapper_checked_d1zlt_210", Zt = "_wrapper_disabled_d1zlt_217", X = {
635
- wrapper: Xt,
636
- wrapper__label: Ft,
637
- wrapper__input: Ut,
638
- wrapper_checked: Qt,
639
- wrapper_disabled: Zt
640
- }, Jt = ["id", "checked", "disabled", "name"], Kt = ["for"], ho = /* @__PURE__ */ T({
646
+ }), ao = "_icon_15ntm_122", lo = "_spinner_15ntm_1", so = "_wrapper_15ntm_188", _o = "_wrapper__label_15ntm_195", io = "_wrapper__input_15ntm_219", uo = "_wrapper_checked_15ntm_229", po = "_wrapper_disabled_15ntm_236", F = {
647
+ icon: ao,
648
+ spinner: lo,
649
+ wrapper: so,
650
+ wrapper__label: _o,
651
+ wrapper__input: io,
652
+ wrapper_checked: uo,
653
+ wrapper_disabled: po
654
+ }, co = ["id", "checked", "disabled", "name"], mo = ["for"], No = /* @__PURE__ */ T({
641
655
  __name: "Toggle",
642
656
  props: {
643
657
  id: {},
@@ -650,12 +664,12 @@ const Ne = "_button__size_default_16zzc_1", Ee = "_button__size_small_16zzc_8",
650
664
  const r = u, t = n, a = () => {
651
665
  t("click", !r.checked);
652
666
  };
653
- return (_, d) => (p(), f("fieldset", {
667
+ return (_, d) => (p(), m("fieldset", {
654
668
  class: s([
655
- o(X).wrapper,
669
+ o(F).wrapper,
656
670
  {
657
- [o(X).wrapper_checked]: _.checked,
658
- [o(X).wrapper_disabled]: _.disabled
671
+ [o(F).wrapper_checked]: _.checked,
672
+ [o(F).wrapper_disabled]: _.disabled
659
673
  }
660
674
  ])
661
675
  }, [
@@ -663,48 +677,50 @@ const Ne = "_button__size_default_16zzc_1", Ee = "_button__size_small_16zzc_8",
663
677
  id: _.id,
664
678
  type: "checkbox",
665
679
  checked: _.checked,
666
- class: s(o(X).wrapper__input),
680
+ class: s(o(F).wrapper__input),
667
681
  disabled: _.disabled,
668
682
  name: _.name,
669
683
  onClick: a
670
- }, null, 10, Jt),
684
+ }, null, 10, co),
671
685
  y("label", {
672
- class: s(o(X).wrapper__label),
686
+ class: s(o(F).wrapper__label),
673
687
  for: _.id
674
- }, null, 10, Kt)
688
+ }, null, 10, mo)
675
689
  ], 2));
676
690
  }
677
691
  });
678
- function eo(u = "") {
692
+ function fo(u = "") {
679
693
  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
694
  }
681
- const to = "_wrapper__box_1avga_1", oo = "_wrapper_1avga_1", no = "_wrapper__icon_1avga_184", ro = "_wrapper__text_1avga_267", W = {
682
- wrapper__box: to,
683
- wrapper: oo,
684
- wrapper__icon: no,
685
- "wrapper__box_bottom-start": "_wrapper__box_bottom-start_1avga_199",
686
- "wrapper__box_bottom-center": "_wrapper__box_bottom-center_1avga_205",
687
- "wrapper__box_bottom-end": "_wrapper__box_bottom-end_1avga_211",
688
- "wrapper__box_top-start": "_wrapper__box_top-start_1avga_217",
689
- "wrapper__box_top-center": "_wrapper__box_top-center_1avga_223",
690
- "wrapper__box_top-end": "_wrapper__box_top-end_1avga_229",
691
- "wrapper__box_right-start": "_wrapper__box_right-start_1avga_235",
692
- "wrapper__box_right-center": "_wrapper__box_right-center_1avga_241",
693
- "wrapper__box_right-end": "_wrapper__box_right-end_1avga_247",
694
- "wrapper__box_left-start": "_wrapper__box_left-start_1avga_252",
695
- "wrapper__box_left-center": "_wrapper__box_left-center_1avga_257",
696
- "wrapper__box_left-end": "_wrapper__box_left-end_1avga_262",
697
- wrapper__text: ro,
698
- "wrapper__box-content": "_wrapper__box-content_1avga_296",
699
- "bottom-entrance": "_bottom-entrance_1avga_309",
700
- "top-entrance": "_top-entrance_1avga_312",
701
- "left-entrance": "_left-entrance_1avga_315",
702
- "right-entrance": "_right-entrance_1avga_318",
703
- "bottom-leave": "_bottom-leave_1avga_321",
704
- "top-leave": "_top-leave_1avga_324",
705
- "right-leave": "_right-leave_1avga_327",
706
- "left-leave": "_left-leave_1avga_330"
707
- }, ao = ["id"], lo = ["innerHTML"], yo = /* @__PURE__ */ T({
695
+ const bo = "_wrapper__box_49orz_1", vo = "_icon_49orz_129", go = "_spinner_49orz_1", wo = "_wrapper_49orz_1", ho = "_wrapper__icon_49orz_203", yo = "_wrapper__text_49orz_286", E = {
696
+ wrapper__box: bo,
697
+ icon: vo,
698
+ spinner: go,
699
+ wrapper: wo,
700
+ wrapper__icon: ho,
701
+ "wrapper__box_bottom-start": "_wrapper__box_bottom-start_49orz_218",
702
+ "wrapper__box_bottom-center": "_wrapper__box_bottom-center_49orz_224",
703
+ "wrapper__box_bottom-end": "_wrapper__box_bottom-end_49orz_230",
704
+ "wrapper__box_top-start": "_wrapper__box_top-start_49orz_236",
705
+ "wrapper__box_top-center": "_wrapper__box_top-center_49orz_242",
706
+ "wrapper__box_top-end": "_wrapper__box_top-end_49orz_248",
707
+ "wrapper__box_right-start": "_wrapper__box_right-start_49orz_254",
708
+ "wrapper__box_right-center": "_wrapper__box_right-center_49orz_260",
709
+ "wrapper__box_right-end": "_wrapper__box_right-end_49orz_266",
710
+ "wrapper__box_left-start": "_wrapper__box_left-start_49orz_271",
711
+ "wrapper__box_left-center": "_wrapper__box_left-center_49orz_276",
712
+ "wrapper__box_left-end": "_wrapper__box_left-end_49orz_281",
713
+ wrapper__text: yo,
714
+ "wrapper__box-content": "_wrapper__box-content_49orz_315",
715
+ "bottom-entrance": "_bottom-entrance_49orz_328",
716
+ "top-entrance": "_top-entrance_49orz_331",
717
+ "left-entrance": "_left-entrance_49orz_334",
718
+ "right-entrance": "_right-entrance_49orz_337",
719
+ "bottom-leave": "_bottom-leave_49orz_340",
720
+ "top-leave": "_top-leave_49orz_343",
721
+ "right-leave": "_right-leave_49orz_346",
722
+ "left-leave": "_left-leave_49orz_349"
723
+ }, ko = ["id"], $o = ["innerHTML"], Eo = /* @__PURE__ */ T({
708
724
  __name: "Tooltip",
709
725
  props: {
710
726
  id: {},
@@ -723,25 +739,25 @@ const to = "_wrapper__box_1avga_1", oo = "_wrapper_1avga_1", no = "_wrapper__ico
723
739
  absolutePosition: { type: [Boolean, null, String, Object, Array] }
724
740
  },
725
741
  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), A = 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), j = 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 ? {
742
+ 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"), q = v(null), B = v(null), R = v(null), S = C(() => n.staticPosition.split(" ")[0]), L = C(() => n.staticPosition.split(" ")[1]), Z = C(() => n.iconName ? "mt-1" : "mt-0"), re = C(() => n.preventXss ? fo(n.text) : n.text), D = 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 : L.value === "center" ? "center" : L.value === "left" || L.value === "top" ? "start" : L.value === "right" || L.value === "bottom" ? "end" : "center"), le = C(() => n.absolutePositionStatus ? "" : n.dynamicPosition && d.value ? E[`wrapper__box_${a.value}-${t.value}`] : E[`wrapper__box_${S.value}-${J.value}`]), K = C(() => n.offsetX === 0 && n.offsetY === 0 ? {} : n.dynamicPosition ? {
727
743
  [`margin-${a.value === "bottom" ? "top" : "bottom"}`]: `${n.offsetY}px`
728
- } : j.value === "top" || j.value === "bottom" ? {
729
- [`margin-${j.value}`]: `${n.offsetY}px`
730
- } : { [`margin-${j.value}`]: `${n.offsetX}px` }), se = (i) => {
731
- const { offsetTop: w, offsetLeft: h, offsetWidth: M, offsetHeight: Y } = i, q = w + Y, ie = h + M;
744
+ } : D.value === "top" || D.value === "bottom" ? {
745
+ [`margin-${D.value}`]: `${n.offsetY}px`
746
+ } : { [`margin-${D.value}`]: `${n.offsetX}px` }), se = (i) => {
747
+ const { offsetTop: w, offsetLeft: h, offsetWidth: M, offsetHeight: X } = i, A = w + X, ie = h + M;
732
748
  return {
733
749
  top: w,
734
750
  left: h,
735
751
  width: M,
736
- bottom: q,
752
+ bottom: A,
737
753
  right: ie
738
754
  };
739
- }, m = (i, w, h = !1) => {
755
+ }, f = (i, w, h = !1) => {
740
756
  if (!i || !B.value)
741
757
  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 }, Y = B.value.offsetHeight, q = window.innerWidth, ie = window.innerHeight, de = i.offsetHeight, te = i.offsetWidth || 264, k = w && se(w) || M, fe = h ? k == null ? void 0 : k.right : k == null ? void 0 : k.left, me = h ? k == null ? void 0 : k.top : k == null ? void 0 : k.bottom, Ie = fe + k.width + te + n.offsetX < q, Be = fe + k.width / 2 - (te + n.offsetX) > 10, Pe = me + de < ie - n.offsetY, Me = me - (de + Y + n.offsetY) > 0;
758
+ const M = { left: 0, right: 0, top: 0, bottom: 0, width: 0, height: 0 }, X = B.value.offsetHeight, A = window.innerWidth, ie = window.innerHeight, de = i.offsetHeight, te = i.offsetWidth || 264, z = w && se(w) || M, me = h ? z == null ? void 0 : z.right : z == null ? void 0 : z.left, fe = h ? z == null ? void 0 : z.top : z == null ? void 0 : z.bottom, Ie = me + z.width + te + n.offsetX < A, Be = me + z.width / 2 - (te + n.offsetX) > 10, Pe = fe + de < ie - n.offsetY, Me = fe - (de + X + n.offsetY) > 0;
743
759
  let be = !1;
744
- return n.iconName && (be = k.right + te / 2 < q && k.left - (te + n.offsetX) / 2 >= 10), {
760
+ return n.iconName && (be = z.right + te / 2 < A && z.left - (te + n.offsetX) / 2 >= 10), {
745
761
  left: Be,
746
762
  right: Ie,
747
763
  bottom: Pe,
@@ -750,13 +766,13 @@ const to = "_wrapper__box_1avga_1", oo = "_wrapper_1avga_1", no = "_wrapper__ico
750
766
  };
751
767
  }, g = () => {
752
768
  we(() => {
753
- var q;
769
+ var A;
754
770
  d.value = !0;
755
- const { bottom: i, left: w, right: h, top: M, center: Y } = m(
756
- A.value,
757
- (q = A.value) == null ? void 0 : q.parentNode
771
+ const { bottom: i, left: w, right: h, top: M, center: X } = f(
772
+ R.value,
773
+ (A = R.value) == null ? void 0 : A.parentNode
758
774
  );
759
- if (Y) {
775
+ if (X) {
760
776
  t.value = "center", a.value = i && !M ? "bottom" : "top";
761
777
  return;
762
778
  }
@@ -805,16 +821,16 @@ const to = "_wrapper__box_1avga_1", oo = "_wrapper_1avga_1", no = "_wrapper__ico
805
821
  return !1;
806
822
  const w = i.scrollHeight > i.offsetHeight, h = window.getComputedStyle(i).overflowY, M = ["auto", "scroll"].includes(h);
807
823
  return w && M;
808
- }, N = (i) => {
824
+ }, O = (i) => {
809
825
  const w = (i == null ? void 0 : i.nodeType) === Node.COMMENT_NODE, h = (i == null ? void 0 : i.nodeType) === Node.DOCUMENT_NODE;
810
- return !i || w || h ? document : x(i) ? i : N(i.parentNode);
811
- }, G = () => {
826
+ return !i || w || h ? document : x(i) ? i : O(i.parentNode);
827
+ }, Y = () => {
812
828
  var i;
813
- (i = H.value) == null || i.removeEventListener("scroll", g), window == null || window.removeEventListener("resize", g);
829
+ (i = q.value) == null || i.removeEventListener("scroll", g), window == null || window.removeEventListener("resize", g);
814
830
  }, ee = () => {
815
831
  we(() => {
816
832
  var i;
817
- H.value = N(B.value), (i = H.value) == null || i.addEventListener("scroll", g), window == null || window.addEventListener("resize", g);
833
+ q.value = O(B.value), (i = q.value) == null || i.addEventListener("scroll", g), window == null || window.addEventListener("resize", g);
818
834
  });
819
835
  }, $e = () => {
820
836
  c.value = "wrapper", P.value = "d-b", l.value = !0;
@@ -822,10 +838,10 @@ const to = "_wrapper__box_1avga_1", oo = "_wrapper_1avga_1", no = "_wrapper__ico
822
838
  c.value = "icon", P.value = "d-b", b.value = !0;
823
839
  }, xe = () => {
824
840
  b.value = !1;
825
- }, ke = () => {
841
+ }, ze = () => {
826
842
  c.value = "", l.value = !1, b.value = !1;
827
843
  }, Se = () => {
828
- ke(), 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(() => {
844
+ ze(), 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
845
  e.value = "", P.value = "d-n";
830
846
  }, n.absolutePositionStatus ? 0 : 250);
831
847
  }, Ce = () => {
@@ -835,76 +851,78 @@ const to = "_wrapper__box_1avga_1", oo = "_wrapper_1avga_1", no = "_wrapper__ico
835
851
  };
836
852
  return ce(() => {
837
853
  n.dynamicPosition && ee();
838
- }), Le(() => {
839
- G();
840
- }), (i, w) => (p(), f("div", {
854
+ }), Ve(() => {
855
+ Y();
856
+ }), (i, w) => (p(), m("div", {
841
857
  id: i.id,
842
858
  ref_key: "tooltipRootRef",
843
859
  ref: B,
844
- class: s(o(W).wrapper),
860
+ class: s(o(E).wrapper),
845
861
  onMouseenter: Ce,
846
862
  onMouseleave: Se
847
863
  }, [
848
- i.iconName ? (p(), U(o(Q), {
864
+ i.iconName ? (p(), j(o(Q), {
849
865
  key: 0,
850
866
  ref_key: "tooltipIconRef",
851
867
  ref: r,
852
- class: s(o(W).wrapper__icon),
868
+ class: s(o(E).wrapper__icon),
853
869
  name: i.iconName,
854
870
  onMouseenter: _e,
855
871
  onMouseleave: xe
856
- }, null, 8, ["class", "name"])) : (p(), f("div", {
872
+ }, null, 8, ["class", "name"])) : (p(), m("div", {
857
873
  key: 1,
858
- class: s(o(W).wrapper__icon),
874
+ class: s(o(E).wrapper__icon),
859
875
  onMouseenter: _e,
860
876
  onMouseleave: _e
861
877
  }, [
862
- D(i.$slots, "triggerElement")
878
+ W(i.$slots, "triggerElement")
863
879
  ], 34)),
864
- i.status ? (p(), f("div", {
880
+ i.status ? (p(), m("div", {
865
881
  key: 2,
866
882
  ref_key: "tooltipPopupRef",
867
- ref: A,
868
- class: s([o(W).wrapper__box, le.value, ae.value, P.value]),
869
- style: F(i.absolutePosition)
883
+ ref: R,
884
+ class: s([o(E).wrapper__box, le.value, ae.value, P.value]),
885
+ style: U(i.absolutePosition)
870
886
  }, [
871
- ye(o(po), {
887
+ ye(o(Po), {
872
888
  "border-triangle": "",
873
889
  "border-triangle-align": J.value,
874
- "border-triangle-position": j.value,
875
- class: s([o(W)["wrapper__box-content"], Z.value, e.value]),
876
- style: F(K.value)
890
+ "border-triangle-position": D.value,
891
+ class: s([o(E)["wrapper__box-content"], Z.value, e.value]),
892
+ style: U(K.value)
877
893
  }, {
878
- default: ze(() => [
894
+ default: ke(() => [
879
895
  y("div", {
880
- class: s(o(W).wrapper__text),
881
- style: F({ maxHeight: `${i.maxHeight}px`, overflowY: "auto" })
896
+ class: s(o(E).wrapper__text),
897
+ style: U({ maxHeight: `${i.maxHeight}px`, overflowY: "auto" })
882
898
  }, [
883
- y("div", { innerHTML: re.value }, null, 8, lo),
884
- D(i.$slots, "contentSlot")
899
+ y("div", { innerHTML: re.value }, null, 8, $o),
900
+ W(i.$slots, "contentSlot")
885
901
  ], 6)
886
902
  ]),
887
903
  _: 3
888
904
  }, 8, ["border-triangle-align", "border-triangle-position", "class", "style"])
889
- ], 6)) : z("", !0)
890
- ], 42, ao));
905
+ ], 6)) : k("", !0)
906
+ ], 42, ko));
891
907
  }
892
- }), so = "_box_14qkh_169", _o = "_flipBox_14qkh_257", ne = {
893
- box: so,
894
- "box_top-start": "_box_top-start_14qkh_173",
895
- "box_top-center": "_box_top-center_14qkh_173",
896
- "box_top-end": "_box_top-end_14qkh_173",
897
- "box_right-start": "_box_right-start_14qkh_173",
898
- "box_right-center": "_box_right-center_14qkh_173",
899
- "box_right-end": "_box_right-end_14qkh_173",
900
- "box_bottom-start": "_box_bottom-start_14qkh_173",
901
- "box_bottom-center": "_box_bottom-center_14qkh_173",
902
- "box_bottom-end": "_box_bottom-end_14qkh_173",
903
- "box_left-start": "_box_left-start_14qkh_173",
904
- "box_left-center": "_box_left-center_14qkh_173",
905
- "box_left-end": "_box_left-end_14qkh_173",
906
- flipBox: _o
907
- }, io = /* @__PURE__ */ T({
908
+ }), xo = "_icon_1sx9k_122", zo = "_spinner_1sx9k_1", So = "_box_1sx9k_188", Co = "_flipBox_1sx9k_276", ne = {
909
+ icon: xo,
910
+ spinner: zo,
911
+ box: So,
912
+ "box_top-start": "_box_top-start_1sx9k_192",
913
+ "box_top-center": "_box_top-center_1sx9k_192",
914
+ "box_top-end": "_box_top-end_1sx9k_192",
915
+ "box_right-start": "_box_right-start_1sx9k_192",
916
+ "box_right-center": "_box_right-center_1sx9k_192",
917
+ "box_right-end": "_box_right-end_1sx9k_192",
918
+ "box_bottom-start": "_box_bottom-start_1sx9k_192",
919
+ "box_bottom-center": "_box_bottom-center_1sx9k_192",
920
+ "box_bottom-end": "_box_bottom-end_1sx9k_192",
921
+ "box_left-start": "_box_left-start_1sx9k_192",
922
+ "box_left-center": "_box_left-center_1sx9k_192",
923
+ "box_left-end": "_box_left-end_1sx9k_192",
924
+ flipBox: Co
925
+ }, Io = /* @__PURE__ */ T({
908
926
  __name: "DefaultBox",
909
927
  props: {
910
928
  border: {},
@@ -921,37 +939,37 @@ const to = "_wrapper__box_1avga_1", oo = "_wrapper_1avga_1", no = "_wrapper__ico
921
939
  function _() {
922
940
  t("click");
923
941
  }
924
- return (d, e) => (p(), f("div", {
942
+ return (d, e) => (p(), m("div", {
925
943
  class: s([o(ne).box, a.value, d.border, d.borderRadius]),
926
944
  onClick: _
927
945
  }, [
928
- D(d.$slots, "default")
946
+ W(d.$slots, "default")
929
947
  ], 2));
930
948
  }
931
- }), uo = /* @__PURE__ */ T({
949
+ }), Bo = /* @__PURE__ */ T({
932
950
  __name: "FlipBox",
933
951
  props: {
934
952
  boxSpacing: { default: "" }
935
953
  },
936
954
  setup(u) {
937
- return (n, r) => (p(), f("div", {
955
+ return (n, r) => (p(), m("div", {
938
956
  class: s([o(ne).flipBox, n.boxSpacing])
939
957
  }, [
940
958
  y("div", null, [
941
959
  y("div", {
942
960
  class: s([o(ne).box, n.boxSpacing])
943
961
  }, [
944
- D(n.$slots, "front")
962
+ W(n.$slots, "front")
945
963
  ], 2),
946
964
  y("div", {
947
965
  class: s([n.boxSpacing])
948
966
  }, [
949
- D(n.$slots, "reverse")
967
+ W(n.$slots, "reverse")
950
968
  ], 2)
951
969
  ])
952
970
  ], 2));
953
971
  }
954
- }), po = /* @__PURE__ */ T({
972
+ }), Po = /* @__PURE__ */ T({
955
973
  __name: "Box",
956
974
  props: {
957
975
  type: { default: "default" },
@@ -962,34 +980,34 @@ const to = "_wrapper__box_1avga_1", oo = "_wrapper_1avga_1", no = "_wrapper__ico
962
980
  },
963
981
  setup(u) {
964
982
  const n = {
965
- default: io,
966
- flip: uo
983
+ default: Io,
984
+ flip: Bo
967
985
  };
968
- return (r, t) => (p(), U(Oe(n[r.type]), {
986
+ return (r, t) => (p(), j(Le(n[r.type]), {
969
987
  "border-triangle": r.borderTriangle,
970
988
  "border-triangle-align": r.borderTriangleAlign,
971
989
  "border-triangle-position": r.borderTrianglePosition,
972
990
  "box-spacing": r.boxSpacing
973
991
  }, {
974
- default: ze(() => [
975
- D(r.$slots, "default"),
976
- D(r.$slots, "front"),
977
- D(r.$slots, "reverse")
992
+ default: ke(() => [
993
+ W(r.$slots, "default"),
994
+ W(r.$slots, "front"),
995
+ W(r.$slots, "reverse")
978
996
  ]),
979
997
  _: 3
980
998
  }, 8, ["border-triangle", "border-triangle-align", "border-triangle-position", "box-spacing"]));
981
999
  }
982
1000
  });
983
1001
  export {
984
- po as Box,
985
- fo as Button,
986
- mo as DropdownMenu,
1002
+ Po as Box,
1003
+ To as Button,
1004
+ qo as DropdownMenu,
987
1005
  Q as Icon,
988
- wo as NumberInput,
989
- bo as OnPageMessage,
990
- vo as SegmentButton,
991
- go as TextInput,
992
- ho as Toggle,
993
- yo as Tooltip
1006
+ Oo as NumberInput,
1007
+ Ho as OnPageMessage,
1008
+ Vo as SegmentButton,
1009
+ Lo as TextInput,
1010
+ No as Toggle,
1011
+ Eo as Tooltip
994
1012
  };
995
1013
  //# sourceMappingURL=ab-components.es.js.map