@squirrel-cloud/ui-vue 0.2.0 → 0.2.2

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,21 +1,21 @@
1
- import { createElementBlock as N, openBlock as C, createElementVNode as nt, defineComponent as J, computed as b, normalizeClass as Q, createVNode as Xt, unref as it, withCtx as ut, createBlock as Y, createCommentVNode as yt, renderSlot as D, resolveDynamicComponent as xt, mergeModels as bt, useSlots as re, useModel as jt, useTemplateRef as St, withDirectives as Ut, vModelText as le, ref as tt, shallowRef as ce, watch as vt, getCurrentScope as ae, onScopeDispose as ue, shallowReadonly as X, onBeforeUnmount as fe, Fragment as de, withModifiers as $t, Teleport as pe, Transition as me, normalizeStyle as Yt, vShow as he } from "vue";
2
- const ge = (t, e) => {
1
+ import { createElementBlock as _, openBlock as C, createElementVNode as J, defineComponent as z, computed as w, normalizeClass as M, createVNode as Xt, unref as H, withCtx as ft, createBlock as Q, createCommentVNode as st, renderSlot as T, resolveDynamicComponent as xt, useSlots as Ut, toDisplayString as le, mergeModels as bt, useModel as Yt, useTemplateRef as St, withDirectives as Kt, vModelText as ce, ref as nt, shallowRef as ae, watch as yt, getCurrentScope as ue, onScopeDispose as fe, shallowReadonly as Y, onBeforeUnmount as de, Fragment as pe, withModifiers as qt, Teleport as me, Transition as he, normalizeStyle as At, vShow as ge } from "vue";
2
+ const ve = (t, e) => {
3
3
  const n = t.__vccOpts || t;
4
- for (const [o, i] of e)
5
- n[o] = i;
4
+ for (const [o, s] of e)
5
+ n[o] = s;
6
6
  return n;
7
- }, ve = {}, we = {
7
+ }, ye = {}, we = {
8
8
  class: "sq-icon is-loading",
9
9
  "data-icon": "loading"
10
10
  };
11
- function ye(t, e) {
12
- return C(), N("span", we, e[0] || (e[0] = [
13
- nt("svg", {
11
+ function xe(t, e) {
12
+ return C(), _("span", we, e[0] || (e[0] = [
13
+ J("svg", {
14
14
  viewBox: "0 0 48 48",
15
15
  version: "1.1",
16
16
  xmlns: "http://www.w3.org/2000/svg"
17
17
  }, [
18
- nt("circle", {
18
+ J("circle", {
19
19
  cx: "24",
20
20
  cy: "24",
21
21
  r: "20"
@@ -23,7 +23,7 @@ function ye(t, e) {
23
23
  ], -1)
24
24
  ]));
25
25
  }
26
- const xe = /* @__PURE__ */ ge(ve, [["render", ye]]), be = ["disabled"], Sn = /* @__PURE__ */ J({
26
+ const be = /* @__PURE__ */ ve(ye, [["render", xe]]), Se = ["disabled"], On = /* @__PURE__ */ z({
27
27
  __name: "SqButton",
28
28
  props: {
29
29
  type: {},
@@ -35,32 +35,60 @@ const xe = /* @__PURE__ */ ge(ve, [["render", ye]]), be = ["disabled"], Sn = /*
35
35
  size: { default: "md" }
36
36
  },
37
37
  setup(t) {
38
- const e = t, n = b(() => {
39
- const s = [];
40
- return e.size !== "md" && s.push(`sq-button--${e.size}`), e.type && s.push(`is-${e.type}`), e.round && s.push("is-round"), e.text && s.push("is-text"), s;
41
- }), o = b(() => e.loading ? xe : e.icon), i = b(() => e.loading || e.disabled);
42
- return (s, r) => (C(), N("button", {
43
- class: Q(["sq-button", n.value]),
44
- disabled: i.value
38
+ const e = t, n = w(() => {
39
+ const i = [];
40
+ return e.size !== "md" && i.push(`sq-button--${e.size}`), e.type && i.push(`is-${e.type}`), e.round && i.push("is-round"), e.text && i.push("is-text"), i;
41
+ }), o = w(() => e.loading ? be : e.icon), s = w(() => e.loading || e.disabled);
42
+ return (i, r) => (C(), _("button", {
43
+ class: M(["sq-button", n.value]),
44
+ disabled: s.value
45
45
  }, [
46
- Xt(it(Bt), {
46
+ Xt(H(kt), {
47
47
  size: e.size
48
48
  }, {
49
- default: ut(() => [
50
- o.value ? (C(), Y(xt(o.value), { key: 0 })) : yt("", !0),
51
- D(s.$slots, "default")
49
+ default: ft(() => [
50
+ o.value ? (C(), Q(xt(o.value), { key: 0 })) : st("", !0),
51
+ T(i.$slots, "default")
52
52
  ]),
53
53
  _: 3
54
54
  }, 8, ["size"])
55
- ], 10, be));
55
+ ], 10, Se));
56
+ }
57
+ }), Re = { class: "sq-card" }, Ce = {
58
+ key: 0,
59
+ class: "sq-card-header"
60
+ }, Le = ["textContent"], Ae = {
61
+ key: 1,
62
+ class: "sq-card-footer"
63
+ }, _n = /* @__PURE__ */ z({
64
+ __name: "SqCard",
65
+ props: {
66
+ title: {},
67
+ decorative: { type: Boolean, default: !1 }
68
+ },
69
+ setup(t) {
70
+ const e = Ut(), n = t;
71
+ return (o, s) => (C(), _("div", Re, [
72
+ n.title || H(e).title ? (C(), _("div", Ce, [
73
+ J("h2", {
74
+ class: M({ "has-decorative": n.decorative }),
75
+ textContent: le(n.title)
76
+ }, null, 10, Le),
77
+ T(o.$slots, "title")
78
+ ])) : st("", !0),
79
+ T(o.$slots, "default"),
80
+ H(e).footer ? (C(), _("div", Ae, [
81
+ T(o.$slots, "footer")
82
+ ])) : st("", !0)
83
+ ]));
56
84
  }
57
- }), Se = {
85
+ }), Oe = {
58
86
  key: 0,
59
87
  class: "sq-input-prefix"
60
- }, Re = ["disabled", "readonly"], Ce = {
88
+ }, _e = ["disabled", "readonly"], Te = {
61
89
  key: 1,
62
90
  class: "sq-input-suffix"
63
- }, Rn = /* @__PURE__ */ J({
91
+ }, Tn = /* @__PURE__ */ z({
64
92
  __name: "SqInput",
65
93
  props: /* @__PURE__ */ bt({
66
94
  status: {},
@@ -77,13 +105,13 @@ const xe = /* @__PURE__ */ ge(ve, [["render", ye]]), be = ["disabled"], Sn = /*
77
105
  }),
78
106
  emits: /* @__PURE__ */ bt(["focus", "blur", "input", "change"], ["update:value"]),
79
107
  setup(t, { expose: e, emit: n }) {
80
- const o = re(), i = n, s = t, r = jt(t, "value"), l = St("inputRef"), a = b(() => {
108
+ const o = Ut(), s = n, i = t, r = Yt(t, "value"), l = St("inputRef"), a = w(() => {
81
109
  const p = [];
82
- return s.size !== "md" && p.push(`sq-input--${s.size}`), s.status && p.push(`is-${s.status}`), s.round && p.push("is-round"), s.disabled && p.push("is-disabled"), p;
83
- }), c = b(() => o.prefix || s.prefixIcon), u = b(() => {
84
- const p = s.showStatusIcon && s.status;
85
- return o.suffix || p || s.suffixIcon;
86
- }), f = b(() => s.suffixIcon);
110
+ return i.size !== "md" && p.push(`sq-input--${i.size}`), i.status && p.push(`is-${i.status}`), i.round && p.push("is-round"), i.disabled && p.push("is-disabled"), p;
111
+ }), c = w(() => o.prefix || i.prefixIcon), u = w(() => {
112
+ const p = i.showStatusIcon && i.status;
113
+ return o.suffix || p || i.suffixIcon;
114
+ }), f = w(() => i.suffixIcon);
87
115
  function m() {
88
116
  var p;
89
117
  (p = l.value) == null || p.focus();
@@ -92,104 +120,104 @@ const xe = /* @__PURE__ */ ge(ve, [["render", ye]]), be = ["disabled"], Sn = /*
92
120
  var p;
93
121
  (p = l.value) == null || p.blur();
94
122
  }
95
- return e({ focus: m, blur: d }), (p, h) => (C(), N("section", {
96
- class: Q(["sq-input", a.value])
123
+ return e({ focus: m, blur: d }), (p, h) => (C(), _("section", {
124
+ class: M(["sq-input", a.value])
97
125
  }, [
98
- c.value ? (C(), N("span", Se, [
99
- D(p.$slots, "prefix", {}, () => [
100
- (C(), Y(xt(s.prefixIcon)))
126
+ c.value ? (C(), _("span", Oe, [
127
+ T(p.$slots, "prefix", {}, () => [
128
+ (C(), Q(xt(i.prefixIcon)))
101
129
  ])
102
- ])) : yt("", !0),
103
- Ut(nt("input", {
130
+ ])) : st("", !0),
131
+ Kt(J("input", {
104
132
  "onUpdate:modelValue": h[0] || (h[0] = (g) => r.value = g),
105
133
  class: "sq-input-inner",
106
- disabled: s.disabled,
107
- readonly: s.readonly,
134
+ disabled: i.disabled,
135
+ readonly: i.readonly,
108
136
  ref_key: "inputRef",
109
137
  ref: l,
110
- onFocus: h[1] || (h[1] = (g) => i("focus", g)),
111
- onBlur: h[2] || (h[2] = (g) => i("blur", g)),
112
- onInput: h[3] || (h[3] = (g) => i("input", g)),
113
- onChange: h[4] || (h[4] = (g) => i("change", g))
114
- }, null, 40, Re), [
115
- [le, r.value]
138
+ onFocus: h[1] || (h[1] = (g) => s("focus", g)),
139
+ onBlur: h[2] || (h[2] = (g) => s("blur", g)),
140
+ onInput: h[3] || (h[3] = (g) => s("input", g)),
141
+ onChange: h[4] || (h[4] = (g) => s("change", g))
142
+ }, null, 40, _e), [
143
+ [ce, r.value]
116
144
  ]),
117
- u.value ? (C(), N("span", Ce, [
118
- D(p.$slots, "suffix", {}, () => [
119
- (C(), Y(xt(f.value)))
145
+ u.value ? (C(), _("span", Te, [
146
+ T(p.$slots, "suffix", {}, () => [
147
+ (C(), Q(xt(f.value)))
120
148
  ])
121
- ])) : yt("", !0)
149
+ ])) : st("", !0)
122
150
  ], 2));
123
151
  }
124
- }), Rt = Math.min, j = Math.max, lt = Math.round, rt = Math.floor, k = (t) => ({
152
+ }), Rt = Math.min, K = Math.max, ct = Math.round, lt = Math.floor, k = (t) => ({
125
153
  x: t,
126
154
  y: t
127
- }), Ae = {
155
+ }), Ee = {
128
156
  left: "right",
129
157
  right: "left",
130
158
  bottom: "top",
131
159
  top: "bottom"
132
- }, Le = {
160
+ }, $e = {
133
161
  start: "end",
134
162
  end: "start"
135
163
  };
136
- function Lt(t, e) {
164
+ function Ot(t, e) {
137
165
  return typeof t == "function" ? t(e) : t;
138
166
  }
139
- function K(t) {
167
+ function Z(t) {
140
168
  return t.split("-")[0];
141
169
  }
142
- function ft(t) {
170
+ function dt(t) {
143
171
  return t.split("-")[1];
144
172
  }
145
- function Oe(t) {
173
+ function ke(t) {
146
174
  return t === "x" ? "y" : "x";
147
175
  }
148
- function Kt(t) {
176
+ function Gt(t) {
149
177
  return t === "y" ? "height" : "width";
150
178
  }
151
- const Te = /* @__PURE__ */ new Set(["top", "bottom"]);
152
- function q(t) {
153
- return Te.has(K(t)) ? "y" : "x";
179
+ const Be = /* @__PURE__ */ new Set(["top", "bottom"]);
180
+ function W(t) {
181
+ return Be.has(Z(t)) ? "y" : "x";
154
182
  }
155
- function Gt(t) {
156
- return Oe(q(t));
183
+ function Jt(t) {
184
+ return ke(W(t));
157
185
  }
158
- function Ee(t, e, n) {
186
+ function Pe(t, e, n) {
159
187
  n === void 0 && (n = !1);
160
- const o = ft(t), i = Gt(t), s = Kt(i);
161
- let r = i === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
162
- return e.reference[s] > e.floating[s] && (r = ct(r)), [r, ct(r)];
188
+ const o = dt(t), s = Jt(t), i = Gt(s);
189
+ let r = s === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
190
+ return e.reference[i] > e.floating[i] && (r = at(r)), [r, at(r)];
163
191
  }
164
- function ke(t) {
165
- const e = ct(t);
192
+ function De(t) {
193
+ const e = at(t);
166
194
  return [Ct(t), e, Ct(e)];
167
195
  }
168
196
  function Ct(t) {
169
- return t.replace(/start|end/g, (e) => Le[e]);
197
+ return t.replace(/start|end/g, (e) => $e[e]);
170
198
  }
171
- const zt = ["left", "right"], Mt = ["right", "left"], Be = ["top", "bottom"], _e = ["bottom", "top"];
172
- function Pe(t, e, n) {
199
+ const zt = ["left", "right"], Mt = ["right", "left"], qe = ["top", "bottom"], ze = ["bottom", "top"];
200
+ function Me(t, e, n) {
173
201
  switch (t) {
174
202
  case "top":
175
203
  case "bottom":
176
204
  return n ? e ? Mt : zt : e ? zt : Mt;
177
205
  case "left":
178
206
  case "right":
179
- return e ? Be : _e;
207
+ return e ? qe : ze;
180
208
  default:
181
209
  return [];
182
210
  }
183
211
  }
184
- function De(t, e, n, o) {
185
- const i = ft(t);
186
- let s = Pe(K(t), n === "start", o);
187
- return i && (s = s.map((r) => r + "-" + i), e && (s = s.concat(s.map(Ct)))), s;
212
+ function Ve(t, e, n, o) {
213
+ const s = dt(t);
214
+ let i = Me(Z(t), n === "start", o);
215
+ return s && (i = i.map((r) => r + "-" + s), e && (i = i.concat(i.map(Ct)))), i;
188
216
  }
189
- function ct(t) {
190
- return t.replace(/left|right|bottom|top/g, (e) => Ae[e]);
217
+ function at(t) {
218
+ return t.replace(/left|right|bottom|top/g, (e) => Ee[e]);
191
219
  }
192
- function $e(t) {
220
+ function Fe(t) {
193
221
  return {
194
222
  top: 0,
195
223
  right: 0,
@@ -198,28 +226,28 @@ function $e(t) {
198
226
  ...t
199
227
  };
200
228
  }
201
- function ze(t) {
202
- return typeof t != "number" ? $e(t) : {
229
+ function Ne(t) {
230
+ return typeof t != "number" ? Fe(t) : {
203
231
  top: t,
204
232
  right: t,
205
233
  bottom: t,
206
234
  left: t
207
235
  };
208
236
  }
209
- function at(t) {
237
+ function ut(t) {
210
238
  const {
211
239
  x: e,
212
240
  y: n,
213
241
  width: o,
214
- height: i
242
+ height: s
215
243
  } = t;
216
244
  return {
217
245
  width: o,
218
- height: i,
246
+ height: s,
219
247
  top: n,
220
248
  left: e,
221
249
  right: e + o,
222
- bottom: n + i,
250
+ bottom: n + s,
223
251
  x: e,
224
252
  y: n
225
253
  };
@@ -227,15 +255,15 @@ function at(t) {
227
255
  function Vt(t, e, n) {
228
256
  let {
229
257
  reference: o,
230
- floating: i
258
+ floating: s
231
259
  } = t;
232
- const s = q(e), r = Gt(e), l = Kt(r), a = K(e), c = s === "y", u = o.x + o.width / 2 - i.width / 2, f = o.y + o.height / 2 - i.height / 2, m = o[l] / 2 - i[l] / 2;
260
+ const i = W(e), r = Jt(e), l = Gt(r), a = Z(e), c = i === "y", u = o.x + o.width / 2 - s.width / 2, f = o.y + o.height / 2 - s.height / 2, m = o[l] / 2 - s[l] / 2;
233
261
  let d;
234
262
  switch (a) {
235
263
  case "top":
236
264
  d = {
237
265
  x: u,
238
- y: o.y - i.height
266
+ y: o.y - s.height
239
267
  };
240
268
  break;
241
269
  case "bottom":
@@ -252,7 +280,7 @@ function Vt(t, e, n) {
252
280
  break;
253
281
  case "left":
254
282
  d = {
255
- x: o.x - i.width,
283
+ x: o.x - s.width,
256
284
  y: f
257
285
  };
258
286
  break;
@@ -262,7 +290,7 @@ function Vt(t, e, n) {
262
290
  y: o.y
263
291
  };
264
292
  }
265
- switch (ft(e)) {
293
+ switch (dt(e)) {
266
294
  case "start":
267
295
  d[r] -= m * (n && c ? -1 : 1);
268
296
  break;
@@ -272,17 +300,17 @@ function Vt(t, e, n) {
272
300
  }
273
301
  return d;
274
302
  }
275
- const Me = async (t, e, n) => {
303
+ const Ie = async (t, e, n) => {
276
304
  const {
277
305
  placement: o = "bottom",
278
- strategy: i = "absolute",
279
- middleware: s = [],
306
+ strategy: s = "absolute",
307
+ middleware: i = [],
280
308
  platform: r
281
- } = n, l = s.filter(Boolean), a = await (r.isRTL == null ? void 0 : r.isRTL(e));
309
+ } = n, l = i.filter(Boolean), a = await (r.isRTL == null ? void 0 : r.isRTL(e));
282
310
  let c = await r.getElementRects({
283
311
  reference: t,
284
312
  floating: e,
285
- strategy: i
313
+ strategy: s
286
314
  }), {
287
315
  x: u,
288
316
  y: f
@@ -292,8 +320,8 @@ const Me = async (t, e, n) => {
292
320
  name: g,
293
321
  fn: v
294
322
  } = l[h], {
295
- x: w,
296
- y: x,
323
+ x: y,
324
+ y: b,
297
325
  data: R,
298
326
  reset: S
299
327
  } = await v({
@@ -301,7 +329,7 @@ const Me = async (t, e, n) => {
301
329
  y: f,
302
330
  initialPlacement: o,
303
331
  placement: m,
304
- strategy: i,
332
+ strategy: s,
305
333
  middlewareData: d,
306
334
  rects: c,
307
335
  platform: r,
@@ -310,7 +338,7 @@ const Me = async (t, e, n) => {
310
338
  floating: e
311
339
  }
312
340
  });
313
- u = w ?? u, f = x ?? f, d = {
341
+ u = y ?? u, f = b ?? f, d = {
314
342
  ...d,
315
343
  [g]: {
316
344
  ...d[g],
@@ -319,7 +347,7 @@ const Me = async (t, e, n) => {
319
347
  }, S && p <= 50 && (p++, typeof S == "object" && (S.placement && (m = S.placement), S.rects && (c = S.rects === !0 ? await r.getElementRects({
320
348
  reference: t,
321
349
  floating: e,
322
- strategy: i
350
+ strategy: s
323
351
  }) : S.rects), {
324
352
  x: u,
325
353
  y: f
@@ -329,17 +357,17 @@ const Me = async (t, e, n) => {
329
357
  x: u,
330
358
  y: f,
331
359
  placement: m,
332
- strategy: i,
360
+ strategy: s,
333
361
  middlewareData: d
334
362
  };
335
363
  };
336
- async function Ve(t, e) {
364
+ async function We(t, e) {
337
365
  var n;
338
366
  e === void 0 && (e = {});
339
367
  const {
340
368
  x: o,
341
- y: i,
342
- platform: s,
369
+ y: s,
370
+ platform: i,
343
371
  rects: r,
344
372
  elements: l,
345
373
  strategy: a
@@ -349,28 +377,28 @@ async function Ve(t, e) {
349
377
  elementContext: f = "floating",
350
378
  altBoundary: m = !1,
351
379
  padding: d = 0
352
- } = Lt(e, t), p = ze(d), g = l[m ? f === "floating" ? "reference" : "floating" : f], v = at(await s.getClippingRect({
353
- element: (n = await (s.isElement == null ? void 0 : s.isElement(g))) == null || n ? g : g.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(l.floating)),
380
+ } = Ot(e, t), p = Ne(d), g = l[m ? f === "floating" ? "reference" : "floating" : f], v = ut(await i.getClippingRect({
381
+ element: (n = await (i.isElement == null ? void 0 : i.isElement(g))) == null || n ? g : g.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(l.floating)),
354
382
  boundary: c,
355
383
  rootBoundary: u,
356
384
  strategy: a
357
- })), w = f === "floating" ? {
385
+ })), y = f === "floating" ? {
358
386
  x: o,
359
- y: i,
387
+ y: s,
360
388
  width: r.floating.width,
361
389
  height: r.floating.height
362
- } : r.reference, x = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l.floating)), R = await (s.isElement == null ? void 0 : s.isElement(x)) ? await (s.getScale == null ? void 0 : s.getScale(x)) || {
390
+ } : r.reference, b = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(l.floating)), R = await (i.isElement == null ? void 0 : i.isElement(b)) ? await (i.getScale == null ? void 0 : i.getScale(b)) || {
363
391
  x: 1,
364
392
  y: 1
365
393
  } : {
366
394
  x: 1,
367
395
  y: 1
368
- }, S = at(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
396
+ }, S = ut(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
369
397
  elements: l,
370
- rect: w,
371
- offsetParent: x,
398
+ rect: y,
399
+ offsetParent: b,
372
400
  strategy: a
373
- }) : w);
401
+ }) : y);
374
402
  return {
375
403
  top: (v.top - S.top + p.top) / R.y,
376
404
  bottom: (S.bottom - v.bottom + p.bottom) / R.y,
@@ -378,15 +406,15 @@ async function Ve(t, e) {
378
406
  right: (S.right - v.right + p.right) / R.x
379
407
  };
380
408
  }
381
- const Fe = function(t) {
409
+ const He = function(t) {
382
410
  return t === void 0 && (t = {}), {
383
411
  name: "flip",
384
412
  options: t,
385
413
  async fn(e) {
386
414
  var n, o;
387
415
  const {
388
- placement: i,
389
- middlewareData: s,
416
+ placement: s,
417
+ middlewareData: i,
390
418
  rects: r,
391
419
  initialPlacement: l,
392
420
  platform: a,
@@ -399,73 +427,73 @@ const Fe = function(t) {
399
427
  fallbackAxisSideDirection: p = "none",
400
428
  flipAlignment: h = !0,
401
429
  ...g
402
- } = Lt(t, e);
403
- if ((n = s.arrow) != null && n.alignmentOffset)
430
+ } = Ot(t, e);
431
+ if ((n = i.arrow) != null && n.alignmentOffset)
404
432
  return {};
405
- const v = K(i), w = q(l), x = K(l) === l, R = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), S = m || (x || !h ? [ct(l)] : ke(l)), z = p !== "none";
406
- !m && z && S.push(...De(l, h, p, R));
407
- const y = [l, ...S], L = await Ve(e, g), M = [];
408
- let H = ((o = s.flip) == null ? void 0 : o.overflows) || [];
409
- if (u && M.push(L[v]), f) {
410
- const V = Ee(i, r, R);
411
- M.push(L[V[0]], L[V[1]]);
433
+ const v = Z(s), y = W(l), b = Z(l) === l, R = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), S = m || (b || !h ? [at(l)] : De(l)), V = p !== "none";
434
+ !m && V && S.push(...Ve(l, h, p, R));
435
+ const x = [l, ...S], A = await We(e, g), F = [];
436
+ let U = ((o = i.flip) == null ? void 0 : o.overflows) || [];
437
+ if (u && F.push(A[v]), f) {
438
+ const N = Pe(s, r, R);
439
+ F.push(A[N[0]], A[N[1]]);
412
440
  }
413
- if (H = [...H, {
414
- placement: i,
415
- overflows: M
416
- }], !M.every((V) => V <= 0)) {
417
- var _t, Pt;
418
- const V = (((_t = s.flip) == null ? void 0 : _t.index) || 0) + 1, gt = y[V];
419
- if (gt && (!(f === "alignment" ? w !== q(gt) : !1) || // We leave the current main axis only if every placement on that axis
441
+ if (U = [...U, {
442
+ placement: s,
443
+ overflows: F
444
+ }], !F.every((N) => N <= 0)) {
445
+ var Bt, Pt;
446
+ const N = (((Bt = i.flip) == null ? void 0 : Bt.index) || 0) + 1, vt = x[N];
447
+ if (vt && (!(f === "alignment" ? y !== W(vt) : !1) || // We leave the current main axis only if every placement on that axis
420
448
  // overflows the main axis.
421
- H.every((O) => q(O.placement) === w ? O.overflows[0] > 0 : !0)))
449
+ U.every((O) => W(O.placement) === y ? O.overflows[0] > 0 : !0)))
422
450
  return {
423
451
  data: {
424
- index: V,
425
- overflows: H
452
+ index: N,
453
+ overflows: U
426
454
  },
427
455
  reset: {
428
- placement: gt
456
+ placement: vt
429
457
  }
430
458
  };
431
- let Z = (Pt = H.filter((F) => F.overflows[0] <= 0).sort((F, O) => F.overflows[1] - O.overflows[1])[0]) == null ? void 0 : Pt.placement;
432
- if (!Z)
459
+ let et = (Pt = U.filter((I) => I.overflows[0] <= 0).sort((I, O) => I.overflows[1] - O.overflows[1])[0]) == null ? void 0 : Pt.placement;
460
+ if (!et)
433
461
  switch (d) {
434
462
  case "bestFit": {
435
463
  var Dt;
436
- const F = (Dt = H.filter((O) => {
437
- if (z) {
438
- const P = q(O.placement);
439
- return P === w || // Create a bias to the `y` side axis due to horizontal
464
+ const I = (Dt = U.filter((O) => {
465
+ if (V) {
466
+ const D = W(O.placement);
467
+ return D === y || // Create a bias to the `y` side axis due to horizontal
440
468
  // reading directions favoring greater width.
441
- P === "y";
469
+ D === "y";
442
470
  }
443
471
  return !0;
444
- }).map((O) => [O.placement, O.overflows.filter((P) => P > 0).reduce((P, se) => P + se, 0)]).sort((O, P) => O[1] - P[1])[0]) == null ? void 0 : Dt[0];
445
- F && (Z = F);
472
+ }).map((O) => [O.placement, O.overflows.filter((D) => D > 0).reduce((D, re) => D + re, 0)]).sort((O, D) => O[1] - D[1])[0]) == null ? void 0 : Dt[0];
473
+ I && (et = I);
446
474
  break;
447
475
  }
448
476
  case "initialPlacement":
449
- Z = l;
477
+ et = l;
450
478
  break;
451
479
  }
452
- if (i !== Z)
480
+ if (s !== et)
453
481
  return {
454
482
  reset: {
455
- placement: Z
483
+ placement: et
456
484
  }
457
485
  };
458
486
  }
459
487
  return {};
460
488
  }
461
489
  };
462
- }, qe = /* @__PURE__ */ new Set(["left", "top"]);
463
- async function Ne(t, e) {
490
+ }, je = /* @__PURE__ */ new Set(["left", "top"]);
491
+ async function Xe(t, e) {
464
492
  const {
465
493
  placement: n,
466
494
  platform: o,
467
- elements: i
468
- } = t, s = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), r = K(n), l = ft(n), a = q(n) === "y", c = qe.has(r) ? -1 : 1, u = s && a ? -1 : 1, f = Lt(e, t);
495
+ elements: s
496
+ } = t, i = await (o.isRTL == null ? void 0 : o.isRTL(s.floating)), r = Z(n), l = dt(n), a = W(n) === "y", c = je.has(r) ? -1 : 1, u = i && a ? -1 : 1, f = Ot(e, t);
469
497
  let {
470
498
  mainAxis: m,
471
499
  crossAxis: d,
@@ -487,21 +515,21 @@ async function Ne(t, e) {
487
515
  y: d * u
488
516
  };
489
517
  }
490
- const Ie = function(t) {
518
+ const Ue = function(t) {
491
519
  return t === void 0 && (t = 0), {
492
520
  name: "offset",
493
521
  options: t,
494
522
  async fn(e) {
495
523
  var n, o;
496
524
  const {
497
- x: i,
498
- y: s,
525
+ x: s,
526
+ y: i,
499
527
  placement: r,
500
528
  middlewareData: l
501
- } = e, a = await Ne(e, t);
529
+ } = e, a = await Xe(e, t);
502
530
  return r === ((n = l.offset) == null ? void 0 : n.placement) && (o = l.arrow) != null && o.alignmentOffset ? {} : {
503
- x: i + a.x,
504
- y: s + a.y,
531
+ x: s + a.x,
532
+ y: i + a.y,
505
533
  data: {
506
534
  ...a,
507
535
  placement: r
@@ -510,49 +538,49 @@ const Ie = function(t) {
510
538
  }
511
539
  };
512
540
  };
513
- function dt() {
541
+ function pt() {
514
542
  return typeof window < "u";
515
543
  }
516
- function W(t) {
517
- return Ot(t) ? (t.nodeName || "").toLowerCase() : "#document";
544
+ function X(t) {
545
+ return _t(t) ? (t.nodeName || "").toLowerCase() : "#document";
518
546
  }
519
- function A(t) {
547
+ function L(t) {
520
548
  var e;
521
549
  return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
522
550
  }
523
- function _(t) {
551
+ function P(t) {
524
552
  var e;
525
- return (e = (Ot(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
553
+ return (e = (_t(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
526
554
  }
527
- function Ot(t) {
528
- return dt() ? t instanceof Node || t instanceof A(t).Node : !1;
555
+ function _t(t) {
556
+ return pt() ? t instanceof Node || t instanceof L(t).Node : !1;
529
557
  }
530
- function T(t) {
531
- return dt() ? t instanceof Element || t instanceof A(t).Element : !1;
558
+ function E(t) {
559
+ return pt() ? t instanceof Element || t instanceof L(t).Element : !1;
532
560
  }
533
561
  function B(t) {
534
- return dt() ? t instanceof HTMLElement || t instanceof A(t).HTMLElement : !1;
562
+ return pt() ? t instanceof HTMLElement || t instanceof L(t).HTMLElement : !1;
535
563
  }
536
564
  function Ft(t) {
537
- return !dt() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof A(t).ShadowRoot;
565
+ return !pt() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof L(t).ShadowRoot;
538
566
  }
539
- const We = /* @__PURE__ */ new Set(["inline", "contents"]);
540
- function st(t) {
567
+ const Ye = /* @__PURE__ */ new Set(["inline", "contents"]);
568
+ function rt(t) {
541
569
  const {
542
570
  overflow: e,
543
571
  overflowX: n,
544
572
  overflowY: o,
545
- display: i
546
- } = E(t);
547
- return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !We.has(i);
573
+ display: s
574
+ } = $(t);
575
+ return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !Ye.has(s);
548
576
  }
549
- const He = /* @__PURE__ */ new Set(["table", "td", "th"]);
550
- function Xe(t) {
551
- return He.has(W(t));
577
+ const Ke = /* @__PURE__ */ new Set(["table", "td", "th"]);
578
+ function Ge(t) {
579
+ return Ke.has(X(t));
552
580
  }
553
- const je = [":popover-open", ":modal"];
554
- function pt(t) {
555
- return je.some((e) => {
581
+ const Je = [":popover-open", ":modal"];
582
+ function mt(t) {
583
+ return Je.some((e) => {
556
584
  try {
557
585
  return t.matches(e);
558
586
  } catch {
@@ -560,34 +588,34 @@ function pt(t) {
560
588
  }
561
589
  });
562
590
  }
563
- const Ue = ["transform", "translate", "scale", "rotate", "perspective"], Ye = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Ke = ["paint", "layout", "strict", "content"];
591
+ const Qe = ["transform", "translate", "scale", "rotate", "perspective"], Ze = ["transform", "translate", "scale", "rotate", "perspective", "filter"], tn = ["paint", "layout", "strict", "content"];
564
592
  function Tt(t) {
565
- const e = Et(), n = T(t) ? E(t) : t;
566
- return Ue.some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !e && (n.filter ? n.filter !== "none" : !1) || Ye.some((o) => (n.willChange || "").includes(o)) || Ke.some((o) => (n.contain || "").includes(o));
593
+ const e = Et(), n = E(t) ? $(t) : t;
594
+ return Qe.some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !e && (n.filter ? n.filter !== "none" : !1) || Ze.some((o) => (n.willChange || "").includes(o)) || tn.some((o) => (n.contain || "").includes(o));
567
595
  }
568
- function Ge(t) {
569
- let e = $(t);
570
- for (; B(e) && !G(e); ) {
596
+ function en(t) {
597
+ let e = q(t);
598
+ for (; B(e) && !tt(e); ) {
571
599
  if (Tt(e))
572
600
  return e;
573
- if (pt(e))
601
+ if (mt(e))
574
602
  return null;
575
- e = $(e);
603
+ e = q(e);
576
604
  }
577
605
  return null;
578
606
  }
579
607
  function Et() {
580
608
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
581
609
  }
582
- const Je = /* @__PURE__ */ new Set(["html", "body", "#document"]);
583
- function G(t) {
584
- return Je.has(W(t));
610
+ const nn = /* @__PURE__ */ new Set(["html", "body", "#document"]);
611
+ function tt(t) {
612
+ return nn.has(X(t));
585
613
  }
586
- function E(t) {
587
- return A(t).getComputedStyle(t);
614
+ function $(t) {
615
+ return L(t).getComputedStyle(t);
588
616
  }
589
- function mt(t) {
590
- return T(t) ? {
617
+ function ht(t) {
618
+ return E(t) ? {
591
619
  scrollLeft: t.scrollLeft,
592
620
  scrollTop: t.scrollTop
593
621
  } : {
@@ -595,127 +623,127 @@ function mt(t) {
595
623
  scrollTop: t.scrollY
596
624
  };
597
625
  }
598
- function $(t) {
599
- if (W(t) === "html")
626
+ function q(t) {
627
+ if (X(t) === "html")
600
628
  return t;
601
629
  const e = (
602
630
  // Step into the shadow DOM of the parent of a slotted node.
603
631
  t.assignedSlot || // DOM Element detected.
604
632
  t.parentNode || // ShadowRoot detected.
605
633
  Ft(t) && t.host || // Fallback.
606
- _(t)
634
+ P(t)
607
635
  );
608
636
  return Ft(e) ? e.host : e;
609
637
  }
610
- function Jt(t) {
611
- const e = $(t);
612
- return G(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : B(e) && st(e) ? e : Jt(e);
638
+ function Qt(t) {
639
+ const e = q(t);
640
+ return tt(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : B(e) && rt(e) ? e : Qt(e);
613
641
  }
614
- function ot(t, e, n) {
642
+ function it(t, e, n) {
615
643
  var o;
616
644
  e === void 0 && (e = []), n === void 0 && (n = !0);
617
- const i = Jt(t), s = i === ((o = t.ownerDocument) == null ? void 0 : o.body), r = A(i);
618
- if (s) {
619
- const l = At(r);
620
- return e.concat(r, r.visualViewport || [], st(i) ? i : [], l && n ? ot(l) : []);
645
+ const s = Qt(t), i = s === ((o = t.ownerDocument) == null ? void 0 : o.body), r = L(s);
646
+ if (i) {
647
+ const l = Lt(r);
648
+ return e.concat(r, r.visualViewport || [], rt(s) ? s : [], l && n ? it(l) : []);
621
649
  }
622
- return e.concat(i, ot(i, [], n));
650
+ return e.concat(s, it(s, [], n));
623
651
  }
624
- function At(t) {
652
+ function Lt(t) {
625
653
  return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
626
654
  }
627
- function Qt(t) {
628
- const e = E(t);
655
+ function Zt(t) {
656
+ const e = $(t);
629
657
  let n = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
630
- const i = B(t), s = i ? t.offsetWidth : n, r = i ? t.offsetHeight : o, l = lt(n) !== s || lt(o) !== r;
631
- return l && (n = s, o = r), {
658
+ const s = B(t), i = s ? t.offsetWidth : n, r = s ? t.offsetHeight : o, l = ct(n) !== i || ct(o) !== r;
659
+ return l && (n = i, o = r), {
632
660
  width: n,
633
661
  height: o,
634
662
  $: l
635
663
  };
636
664
  }
637
- function kt(t) {
638
- return T(t) ? t : t.contextElement;
665
+ function $t(t) {
666
+ return E(t) ? t : t.contextElement;
639
667
  }
640
- function U(t) {
641
- const e = kt(t);
668
+ function G(t) {
669
+ const e = $t(t);
642
670
  if (!B(e))
643
671
  return k(1);
644
672
  const n = e.getBoundingClientRect(), {
645
673
  width: o,
646
- height: i,
647
- $: s
648
- } = Qt(e);
649
- let r = (s ? lt(n.width) : n.width) / o, l = (s ? lt(n.height) : n.height) / i;
674
+ height: s,
675
+ $: i
676
+ } = Zt(e);
677
+ let r = (i ? ct(n.width) : n.width) / o, l = (i ? ct(n.height) : n.height) / s;
650
678
  return (!r || !Number.isFinite(r)) && (r = 1), (!l || !Number.isFinite(l)) && (l = 1), {
651
679
  x: r,
652
680
  y: l
653
681
  };
654
682
  }
655
- const Qe = /* @__PURE__ */ k(0);
656
- function Zt(t) {
657
- const e = A(t);
658
- return !Et() || !e.visualViewport ? Qe : {
683
+ const on = /* @__PURE__ */ k(0);
684
+ function te(t) {
685
+ const e = L(t);
686
+ return !Et() || !e.visualViewport ? on : {
659
687
  x: e.visualViewport.offsetLeft,
660
688
  y: e.visualViewport.offsetTop
661
689
  };
662
690
  }
663
- function Ze(t, e, n) {
664
- return e === void 0 && (e = !1), !n || e && n !== A(t) ? !1 : e;
691
+ function sn(t, e, n) {
692
+ return e === void 0 && (e = !1), !n || e && n !== L(t) ? !1 : e;
665
693
  }
666
- function I(t, e, n, o) {
694
+ function j(t, e, n, o) {
667
695
  e === void 0 && (e = !1), n === void 0 && (n = !1);
668
- const i = t.getBoundingClientRect(), s = kt(t);
696
+ const s = t.getBoundingClientRect(), i = $t(t);
669
697
  let r = k(1);
670
- e && (o ? T(o) && (r = U(o)) : r = U(t));
671
- const l = Ze(s, n, o) ? Zt(s) : k(0);
672
- let a = (i.left + l.x) / r.x, c = (i.top + l.y) / r.y, u = i.width / r.x, f = i.height / r.y;
673
- if (s) {
674
- const m = A(s), d = o && T(o) ? A(o) : o;
675
- let p = m, h = At(p);
698
+ e && (o ? E(o) && (r = G(o)) : r = G(t));
699
+ const l = sn(i, n, o) ? te(i) : k(0);
700
+ let a = (s.left + l.x) / r.x, c = (s.top + l.y) / r.y, u = s.width / r.x, f = s.height / r.y;
701
+ if (i) {
702
+ const m = L(i), d = o && E(o) ? L(o) : o;
703
+ let p = m, h = Lt(p);
676
704
  for (; h && o && d !== p; ) {
677
- const g = U(h), v = h.getBoundingClientRect(), w = E(h), x = v.left + (h.clientLeft + parseFloat(w.paddingLeft)) * g.x, R = v.top + (h.clientTop + parseFloat(w.paddingTop)) * g.y;
678
- a *= g.x, c *= g.y, u *= g.x, f *= g.y, a += x, c += R, p = A(h), h = At(p);
705
+ const g = G(h), v = h.getBoundingClientRect(), y = $(h), b = v.left + (h.clientLeft + parseFloat(y.paddingLeft)) * g.x, R = v.top + (h.clientTop + parseFloat(y.paddingTop)) * g.y;
706
+ a *= g.x, c *= g.y, u *= g.x, f *= g.y, a += b, c += R, p = L(h), h = Lt(p);
679
707
  }
680
708
  }
681
- return at({
709
+ return ut({
682
710
  width: u,
683
711
  height: f,
684
712
  x: a,
685
713
  y: c
686
714
  });
687
715
  }
688
- function ht(t, e) {
689
- const n = mt(t).scrollLeft;
690
- return e ? e.left + n : I(_(t)).left + n;
716
+ function gt(t, e) {
717
+ const n = ht(t).scrollLeft;
718
+ return e ? e.left + n : j(P(t)).left + n;
691
719
  }
692
- function te(t, e) {
693
- const n = t.getBoundingClientRect(), o = n.left + e.scrollLeft - ht(t, n), i = n.top + e.scrollTop;
720
+ function ee(t, e) {
721
+ const n = t.getBoundingClientRect(), o = n.left + e.scrollLeft - gt(t, n), s = n.top + e.scrollTop;
694
722
  return {
695
723
  x: o,
696
- y: i
724
+ y: s
697
725
  };
698
726
  }
699
- function tn(t) {
727
+ function rn(t) {
700
728
  let {
701
729
  elements: e,
702
730
  rect: n,
703
731
  offsetParent: o,
704
- strategy: i
732
+ strategy: s
705
733
  } = t;
706
- const s = i === "fixed", r = _(o), l = e ? pt(e.floating) : !1;
707
- if (o === r || l && s)
734
+ const i = s === "fixed", r = P(o), l = e ? mt(e.floating) : !1;
735
+ if (o === r || l && i)
708
736
  return n;
709
737
  let a = {
710
738
  scrollLeft: 0,
711
739
  scrollTop: 0
712
740
  }, c = k(1);
713
741
  const u = k(0), f = B(o);
714
- if ((f || !f && !s) && ((W(o) !== "body" || st(r)) && (a = mt(o)), B(o))) {
715
- const d = I(o);
716
- c = U(o), u.x = d.x + o.clientLeft, u.y = d.y + o.clientTop;
742
+ if ((f || !f && !i) && ((X(o) !== "body" || rt(r)) && (a = ht(o)), B(o))) {
743
+ const d = j(o);
744
+ c = G(o), u.x = d.x + o.clientLeft, u.y = d.y + o.clientTop;
717
745
  }
718
- const m = r && !f && !s ? te(r, a) : k(0);
746
+ const m = r && !f && !i ? ee(r, a) : k(0);
719
747
  return {
720
748
  width: n.width * c.x,
721
749
  height: n.height * c.y,
@@ -723,44 +751,44 @@ function tn(t) {
723
751
  y: n.y * c.y - a.scrollTop * c.y + u.y + m.y
724
752
  };
725
753
  }
726
- function en(t) {
754
+ function ln(t) {
727
755
  return Array.from(t.getClientRects());
728
756
  }
729
- function nn(t) {
730
- const e = _(t), n = mt(t), o = t.ownerDocument.body, i = j(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), s = j(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
731
- let r = -n.scrollLeft + ht(t);
757
+ function cn(t) {
758
+ const e = P(t), n = ht(t), o = t.ownerDocument.body, s = K(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), i = K(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
759
+ let r = -n.scrollLeft + gt(t);
732
760
  const l = -n.scrollTop;
733
- return E(o).direction === "rtl" && (r += j(e.clientWidth, o.clientWidth) - i), {
734
- width: i,
735
- height: s,
761
+ return $(o).direction === "rtl" && (r += K(e.clientWidth, o.clientWidth) - s), {
762
+ width: s,
763
+ height: i,
736
764
  x: r,
737
765
  y: l
738
766
  };
739
767
  }
740
- const qt = 25;
741
- function on(t, e) {
742
- const n = A(t), o = _(t), i = n.visualViewport;
743
- let s = o.clientWidth, r = o.clientHeight, l = 0, a = 0;
744
- if (i) {
745
- s = i.width, r = i.height;
768
+ const Nt = 25;
769
+ function an(t, e) {
770
+ const n = L(t), o = P(t), s = n.visualViewport;
771
+ let i = o.clientWidth, r = o.clientHeight, l = 0, a = 0;
772
+ if (s) {
773
+ i = s.width, r = s.height;
746
774
  const u = Et();
747
- (!u || u && e === "fixed") && (l = i.offsetLeft, a = i.offsetTop);
775
+ (!u || u && e === "fixed") && (l = s.offsetLeft, a = s.offsetTop);
748
776
  }
749
- const c = ht(o);
777
+ const c = gt(o);
750
778
  if (c <= 0) {
751
779
  const u = o.ownerDocument, f = u.body, m = getComputedStyle(f), d = u.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, p = Math.abs(o.clientWidth - f.clientWidth - d);
752
- p <= qt && (s -= p);
753
- } else c <= qt && (s += c);
780
+ p <= Nt && (i -= p);
781
+ } else c <= Nt && (i += c);
754
782
  return {
755
- width: s,
783
+ width: i,
756
784
  height: r,
757
785
  x: l,
758
786
  y: a
759
787
  };
760
788
  }
761
- const sn = /* @__PURE__ */ new Set(["absolute", "fixed"]);
762
- function rn(t, e) {
763
- const n = I(t, !0, e === "fixed"), o = n.top + t.clientTop, i = n.left + t.clientLeft, s = B(t) ? U(t) : k(1), r = t.clientWidth * s.x, l = t.clientHeight * s.y, a = i * s.x, c = o * s.y;
789
+ const un = /* @__PURE__ */ new Set(["absolute", "fixed"]);
790
+ function fn(t, e) {
791
+ const n = j(t, !0, e === "fixed"), o = n.top + t.clientTop, s = n.left + t.clientLeft, i = B(t) ? G(t) : k(1), r = t.clientWidth * i.x, l = t.clientHeight * i.y, a = s * i.x, c = o * i.y;
764
792
  return {
765
793
  width: r,
766
794
  height: l,
@@ -768,53 +796,53 @@ function rn(t, e) {
768
796
  y: c
769
797
  };
770
798
  }
771
- function Nt(t, e, n) {
799
+ function It(t, e, n) {
772
800
  let o;
773
801
  if (e === "viewport")
774
- o = on(t, n);
802
+ o = an(t, n);
775
803
  else if (e === "document")
776
- o = nn(_(t));
777
- else if (T(e))
778
- o = rn(e, n);
804
+ o = cn(P(t));
805
+ else if (E(e))
806
+ o = fn(e, n);
779
807
  else {
780
- const i = Zt(t);
808
+ const s = te(t);
781
809
  o = {
782
- x: e.x - i.x,
783
- y: e.y - i.y,
810
+ x: e.x - s.x,
811
+ y: e.y - s.y,
784
812
  width: e.width,
785
813
  height: e.height
786
814
  };
787
815
  }
788
- return at(o);
816
+ return ut(o);
789
817
  }
790
- function ee(t, e) {
791
- const n = $(t);
792
- return n === e || !T(n) || G(n) ? !1 : E(n).position === "fixed" || ee(n, e);
818
+ function ne(t, e) {
819
+ const n = q(t);
820
+ return n === e || !E(n) || tt(n) ? !1 : $(n).position === "fixed" || ne(n, e);
793
821
  }
794
- function ln(t, e) {
822
+ function dn(t, e) {
795
823
  const n = e.get(t);
796
824
  if (n)
797
825
  return n;
798
- let o = ot(t, [], !1).filter((l) => T(l) && W(l) !== "body"), i = null;
799
- const s = E(t).position === "fixed";
800
- let r = s ? $(t) : t;
801
- for (; T(r) && !G(r); ) {
802
- const l = E(r), a = Tt(r);
803
- !a && l.position === "fixed" && (i = null), (s ? !a && !i : !a && l.position === "static" && !!i && sn.has(i.position) || st(r) && !a && ee(t, r)) ? o = o.filter((u) => u !== r) : i = l, r = $(r);
826
+ let o = it(t, [], !1).filter((l) => E(l) && X(l) !== "body"), s = null;
827
+ const i = $(t).position === "fixed";
828
+ let r = i ? q(t) : t;
829
+ for (; E(r) && !tt(r); ) {
830
+ const l = $(r), a = Tt(r);
831
+ !a && l.position === "fixed" && (s = null), (i ? !a && !s : !a && l.position === "static" && !!s && un.has(s.position) || rt(r) && !a && ne(t, r)) ? o = o.filter((u) => u !== r) : s = l, r = q(r);
804
832
  }
805
833
  return e.set(t, o), o;
806
834
  }
807
- function cn(t) {
835
+ function pn(t) {
808
836
  let {
809
837
  element: e,
810
838
  boundary: n,
811
839
  rootBoundary: o,
812
- strategy: i
840
+ strategy: s
813
841
  } = t;
814
- const r = [...n === "clippingAncestors" ? pt(e) ? [] : ln(e, this._c) : [].concat(n), o], l = r[0], a = r.reduce((c, u) => {
815
- const f = Nt(e, u, i);
816
- return c.top = j(f.top, c.top), c.right = Rt(f.right, c.right), c.bottom = Rt(f.bottom, c.bottom), c.left = j(f.left, c.left), c;
817
- }, Nt(e, l, i));
842
+ const r = [...n === "clippingAncestors" ? mt(e) ? [] : dn(e, this._c) : [].concat(n), o], l = r[0], a = r.reduce((c, u) => {
843
+ const f = It(e, u, s);
844
+ return c.top = K(f.top, c.top), c.right = Rt(f.right, c.right), c.bottom = Rt(f.bottom, c.bottom), c.left = K(f.left, c.left), c;
845
+ }, It(e, l, s));
818
846
  return {
819
847
  width: a.right - a.left,
820
848
  height: a.bottom - a.top,
@@ -822,33 +850,33 @@ function cn(t) {
822
850
  y: a.top
823
851
  };
824
852
  }
825
- function an(t) {
853
+ function mn(t) {
826
854
  const {
827
855
  width: e,
828
856
  height: n
829
- } = Qt(t);
857
+ } = Zt(t);
830
858
  return {
831
859
  width: e,
832
860
  height: n
833
861
  };
834
862
  }
835
- function un(t, e, n) {
836
- const o = B(e), i = _(e), s = n === "fixed", r = I(t, !0, s, e);
863
+ function hn(t, e, n) {
864
+ const o = B(e), s = P(e), i = n === "fixed", r = j(t, !0, i, e);
837
865
  let l = {
838
866
  scrollLeft: 0,
839
867
  scrollTop: 0
840
868
  };
841
869
  const a = k(0);
842
870
  function c() {
843
- a.x = ht(i);
871
+ a.x = gt(s);
844
872
  }
845
- if (o || !o && !s)
846
- if ((W(e) !== "body" || st(i)) && (l = mt(e)), o) {
847
- const d = I(e, !0, s, e);
873
+ if (o || !o && !i)
874
+ if ((X(e) !== "body" || rt(s)) && (l = ht(e)), o) {
875
+ const d = j(e, !0, i, e);
848
876
  a.x = d.x + e.clientLeft, a.y = d.y + e.clientTop;
849
- } else i && c();
850
- s && !o && i && c();
851
- const u = i && !o && !s ? te(i, l) : k(0), f = r.left + l.scrollLeft - a.x - u.x, m = r.top + l.scrollTop - a.y - u.y;
877
+ } else s && c();
878
+ i && !o && s && c();
879
+ const u = s && !o && !i ? ee(s, l) : k(0), f = r.left + l.scrollLeft - a.x - u.x, m = r.top + l.scrollTop - a.y - u.y;
852
880
  return {
853
881
  x: f,
854
882
  y: m,
@@ -857,38 +885,38 @@ function un(t, e, n) {
857
885
  };
858
886
  }
859
887
  function wt(t) {
860
- return E(t).position === "static";
888
+ return $(t).position === "static";
861
889
  }
862
- function It(t, e) {
863
- if (!B(t) || E(t).position === "fixed")
890
+ function Wt(t, e) {
891
+ if (!B(t) || $(t).position === "fixed")
864
892
  return null;
865
893
  if (e)
866
894
  return e(t);
867
895
  let n = t.offsetParent;
868
- return _(t) === n && (n = n.ownerDocument.body), n;
896
+ return P(t) === n && (n = n.ownerDocument.body), n;
869
897
  }
870
- function ne(t, e) {
871
- const n = A(t);
872
- if (pt(t))
898
+ function oe(t, e) {
899
+ const n = L(t);
900
+ if (mt(t))
873
901
  return n;
874
902
  if (!B(t)) {
875
- let i = $(t);
876
- for (; i && !G(i); ) {
877
- if (T(i) && !wt(i))
878
- return i;
879
- i = $(i);
903
+ let s = q(t);
904
+ for (; s && !tt(s); ) {
905
+ if (E(s) && !wt(s))
906
+ return s;
907
+ s = q(s);
880
908
  }
881
909
  return n;
882
910
  }
883
- let o = It(t, e);
884
- for (; o && Xe(o) && wt(o); )
885
- o = It(o, e);
886
- return o && G(o) && wt(o) && !Tt(o) ? n : o || Ge(t) || n;
911
+ let o = Wt(t, e);
912
+ for (; o && Ge(o) && wt(o); )
913
+ o = Wt(o, e);
914
+ return o && tt(o) && wt(o) && !Tt(o) ? n : o || en(t) || n;
887
915
  }
888
- const fn = async function(t) {
889
- const e = this.getOffsetParent || ne, n = this.getDimensions, o = await n(t.floating);
916
+ const gn = async function(t) {
917
+ const e = this.getOffsetParent || oe, n = this.getDimensions, o = await n(t.floating);
890
918
  return {
891
- reference: un(t.reference, await e(t.floating), t.strategy),
919
+ reference: hn(t.reference, await e(t.floating), t.strategy),
892
920
  floating: {
893
921
  x: 0,
894
922
  y: 0,
@@ -897,33 +925,33 @@ const fn = async function(t) {
897
925
  }
898
926
  };
899
927
  };
900
- function dn(t) {
901
- return E(t).direction === "rtl";
902
- }
903
- const pn = {
904
- convertOffsetParentRelativeRectToViewportRelativeRect: tn,
905
- getDocumentElement: _,
906
- getClippingRect: cn,
907
- getOffsetParent: ne,
908
- getElementRects: fn,
909
- getClientRects: en,
910
- getDimensions: an,
911
- getScale: U,
912
- isElement: T,
913
- isRTL: dn
928
+ function vn(t) {
929
+ return $(t).direction === "rtl";
930
+ }
931
+ const yn = {
932
+ convertOffsetParentRelativeRectToViewportRelativeRect: rn,
933
+ getDocumentElement: P,
934
+ getClippingRect: pn,
935
+ getOffsetParent: oe,
936
+ getElementRects: gn,
937
+ getClientRects: ln,
938
+ getDimensions: mn,
939
+ getScale: G,
940
+ isElement: E,
941
+ isRTL: vn
914
942
  };
915
- function oe(t, e) {
943
+ function se(t, e) {
916
944
  return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
917
945
  }
918
- function mn(t, e) {
946
+ function wn(t, e) {
919
947
  let n = null, o;
920
- const i = _(t);
921
- function s() {
948
+ const s = P(t);
949
+ function i() {
922
950
  var l;
923
951
  clearTimeout(o), (l = n) == null || l.disconnect(), n = null;
924
952
  }
925
953
  function r(l, a) {
926
- l === void 0 && (l = !1), a === void 0 && (a = 1), s();
954
+ l === void 0 && (l = !1), a === void 0 && (a = 1), i();
927
955
  const c = t.getBoundingClientRect(), {
928
956
  left: u,
929
957
  top: f,
@@ -932,186 +960,186 @@ function mn(t, e) {
932
960
  } = c;
933
961
  if (l || e(), !m || !d)
934
962
  return;
935
- const p = rt(f), h = rt(i.clientWidth - (u + m)), g = rt(i.clientHeight - (f + d)), v = rt(u), x = {
963
+ const p = lt(f), h = lt(s.clientWidth - (u + m)), g = lt(s.clientHeight - (f + d)), v = lt(u), b = {
936
964
  rootMargin: -p + "px " + -h + "px " + -g + "px " + -v + "px",
937
- threshold: j(0, Rt(1, a)) || 1
965
+ threshold: K(0, Rt(1, a)) || 1
938
966
  };
939
967
  let R = !0;
940
- function S(z) {
941
- const y = z[0].intersectionRatio;
942
- if (y !== a) {
968
+ function S(V) {
969
+ const x = V[0].intersectionRatio;
970
+ if (x !== a) {
943
971
  if (!R)
944
972
  return r();
945
- y ? r(!1, y) : o = setTimeout(() => {
973
+ x ? r(!1, x) : o = setTimeout(() => {
946
974
  r(!1, 1e-7);
947
975
  }, 1e3);
948
976
  }
949
- y === 1 && !oe(c, t.getBoundingClientRect()) && r(), R = !1;
977
+ x === 1 && !se(c, t.getBoundingClientRect()) && r(), R = !1;
950
978
  }
951
979
  try {
952
980
  n = new IntersectionObserver(S, {
953
- ...x,
981
+ ...b,
954
982
  // Handle <iframe>s
955
- root: i.ownerDocument
983
+ root: s.ownerDocument
956
984
  });
957
985
  } catch {
958
- n = new IntersectionObserver(S, x);
986
+ n = new IntersectionObserver(S, b);
959
987
  }
960
988
  n.observe(t);
961
989
  }
962
- return r(!0), s;
990
+ return r(!0), i;
963
991
  }
964
- function hn(t, e, n, o) {
992
+ function xn(t, e, n, o) {
965
993
  o === void 0 && (o = {});
966
994
  const {
967
- ancestorScroll: i = !0,
968
- ancestorResize: s = !0,
995
+ ancestorScroll: s = !0,
996
+ ancestorResize: i = !0,
969
997
  elementResize: r = typeof ResizeObserver == "function",
970
998
  layoutShift: l = typeof IntersectionObserver == "function",
971
999
  animationFrame: a = !1
972
- } = o, c = kt(t), u = i || s ? [...c ? ot(c) : [], ...ot(e)] : [];
1000
+ } = o, c = $t(t), u = s || i ? [...c ? it(c) : [], ...it(e)] : [];
973
1001
  u.forEach((v) => {
974
- i && v.addEventListener("scroll", n, {
1002
+ s && v.addEventListener("scroll", n, {
975
1003
  passive: !0
976
- }), s && v.addEventListener("resize", n);
1004
+ }), i && v.addEventListener("resize", n);
977
1005
  });
978
- const f = c && l ? mn(c, n) : null;
1006
+ const f = c && l ? wn(c, n) : null;
979
1007
  let m = -1, d = null;
980
1008
  r && (d = new ResizeObserver((v) => {
981
- let [w] = v;
982
- w && w.target === c && d && (d.unobserve(e), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
983
- var x;
984
- (x = d) == null || x.observe(e);
1009
+ let [y] = v;
1010
+ y && y.target === c && d && (d.unobserve(e), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
1011
+ var b;
1012
+ (b = d) == null || b.observe(e);
985
1013
  })), n();
986
1014
  }), c && !a && d.observe(c), d.observe(e));
987
- let p, h = a ? I(t) : null;
1015
+ let p, h = a ? j(t) : null;
988
1016
  a && g();
989
1017
  function g() {
990
- const v = I(t);
991
- h && !oe(h, v) && n(), h = v, p = requestAnimationFrame(g);
1018
+ const v = j(t);
1019
+ h && !se(h, v) && n(), h = v, p = requestAnimationFrame(g);
992
1020
  }
993
1021
  return n(), () => {
994
1022
  var v;
995
- u.forEach((w) => {
996
- i && w.removeEventListener("scroll", n), s && w.removeEventListener("resize", n);
1023
+ u.forEach((y) => {
1024
+ s && y.removeEventListener("scroll", n), i && y.removeEventListener("resize", n);
997
1025
  }), f == null || f(), (v = d) == null || v.disconnect(), d = null, a && cancelAnimationFrame(p);
998
1026
  };
999
1027
  }
1000
- const gn = Ie, vn = Fe, wn = (t, e, n) => {
1001
- const o = /* @__PURE__ */ new Map(), i = {
1002
- platform: pn,
1028
+ const bn = Ue, Sn = He, Rn = (t, e, n) => {
1029
+ const o = /* @__PURE__ */ new Map(), s = {
1030
+ platform: yn,
1003
1031
  ...n
1004
- }, s = {
1005
- ...i.platform,
1032
+ }, i = {
1033
+ ...s.platform,
1006
1034
  _c: o
1007
1035
  };
1008
- return Me(t, e, {
1009
- ...i,
1010
- platform: s
1036
+ return Ie(t, e, {
1037
+ ...s,
1038
+ platform: i
1011
1039
  });
1012
1040
  };
1013
- function yn(t) {
1041
+ function Cn(t) {
1014
1042
  return t != null && typeof t == "object" && "$el" in t;
1015
1043
  }
1016
- function Wt(t) {
1017
- if (yn(t)) {
1044
+ function Ht(t) {
1045
+ if (Cn(t)) {
1018
1046
  const e = t.$el;
1019
- return Ot(e) && W(e) === "#comment" ? null : e;
1047
+ return _t(e) && X(e) === "#comment" ? null : e;
1020
1048
  }
1021
1049
  return t;
1022
1050
  }
1023
- function et(t) {
1024
- return typeof t == "function" ? t() : it(t);
1051
+ function ot(t) {
1052
+ return typeof t == "function" ? t() : H(t);
1025
1053
  }
1026
1054
  function ie(t) {
1027
1055
  return typeof window > "u" ? 1 : (t.ownerDocument.defaultView || window).devicePixelRatio || 1;
1028
1056
  }
1029
- function Ht(t, e) {
1057
+ function jt(t, e) {
1030
1058
  const n = ie(t);
1031
1059
  return Math.round(e * n) / n;
1032
1060
  }
1033
- function xn(t, e, n) {
1061
+ function Ln(t, e, n) {
1034
1062
  n === void 0 && (n = {});
1035
- const o = n.whileElementsMounted, i = b(() => {
1036
- var y;
1037
- return (y = et(n.open)) != null ? y : !0;
1038
- }), s = b(() => et(n.middleware)), r = b(() => {
1039
- var y;
1040
- return (y = et(n.placement)) != null ? y : "bottom";
1041
- }), l = b(() => {
1042
- var y;
1043
- return (y = et(n.strategy)) != null ? y : "absolute";
1044
- }), a = b(() => {
1045
- var y;
1046
- return (y = et(n.transform)) != null ? y : !0;
1047
- }), c = b(() => Wt(t.value)), u = b(() => Wt(e.value)), f = tt(0), m = tt(0), d = tt(l.value), p = tt(r.value), h = ce({}), g = tt(!1), v = b(() => {
1048
- const y = {
1063
+ const o = n.whileElementsMounted, s = w(() => {
1064
+ var x;
1065
+ return (x = ot(n.open)) != null ? x : !0;
1066
+ }), i = w(() => ot(n.middleware)), r = w(() => {
1067
+ var x;
1068
+ return (x = ot(n.placement)) != null ? x : "bottom";
1069
+ }), l = w(() => {
1070
+ var x;
1071
+ return (x = ot(n.strategy)) != null ? x : "absolute";
1072
+ }), a = w(() => {
1073
+ var x;
1074
+ return (x = ot(n.transform)) != null ? x : !0;
1075
+ }), c = w(() => Ht(t.value)), u = w(() => Ht(e.value)), f = nt(0), m = nt(0), d = nt(l.value), p = nt(r.value), h = ae({}), g = nt(!1), v = w(() => {
1076
+ const x = {
1049
1077
  position: d.value,
1050
1078
  left: "0",
1051
1079
  top: "0"
1052
1080
  };
1053
1081
  if (!u.value)
1054
- return y;
1055
- const L = Ht(u.value, f.value), M = Ht(u.value, m.value);
1082
+ return x;
1083
+ const A = jt(u.value, f.value), F = jt(u.value, m.value);
1056
1084
  return a.value ? {
1057
- ...y,
1058
- transform: "translate(" + L + "px, " + M + "px)",
1085
+ ...x,
1086
+ transform: "translate(" + A + "px, " + F + "px)",
1059
1087
  ...ie(u.value) >= 1.5 && {
1060
1088
  willChange: "transform"
1061
1089
  }
1062
1090
  } : {
1063
1091
  position: d.value,
1064
- left: L + "px",
1065
- top: M + "px"
1092
+ left: A + "px",
1093
+ top: F + "px"
1066
1094
  };
1067
1095
  });
1068
- let w;
1069
- function x() {
1096
+ let y;
1097
+ function b() {
1070
1098
  if (c.value == null || u.value == null)
1071
1099
  return;
1072
- const y = i.value;
1073
- wn(c.value, u.value, {
1074
- middleware: s.value,
1100
+ const x = s.value;
1101
+ Rn(c.value, u.value, {
1102
+ middleware: i.value,
1075
1103
  placement: r.value,
1076
1104
  strategy: l.value
1077
- }).then((L) => {
1078
- f.value = L.x, m.value = L.y, d.value = L.strategy, p.value = L.placement, h.value = L.middlewareData, g.value = y !== !1;
1105
+ }).then((A) => {
1106
+ f.value = A.x, m.value = A.y, d.value = A.strategy, p.value = A.placement, h.value = A.middlewareData, g.value = x !== !1;
1079
1107
  });
1080
1108
  }
1081
1109
  function R() {
1082
- typeof w == "function" && (w(), w = void 0);
1110
+ typeof y == "function" && (y(), y = void 0);
1083
1111
  }
1084
1112
  function S() {
1085
1113
  if (R(), o === void 0) {
1086
- x();
1114
+ b();
1087
1115
  return;
1088
1116
  }
1089
1117
  if (c.value != null && u.value != null) {
1090
- w = o(c.value, u.value, x);
1118
+ y = o(c.value, u.value, b);
1091
1119
  return;
1092
1120
  }
1093
1121
  }
1094
- function z() {
1095
- i.value || (g.value = !1);
1122
+ function V() {
1123
+ s.value || (g.value = !1);
1096
1124
  }
1097
- return vt([s, r, l, i], x, {
1125
+ return yt([i, r, l, s], b, {
1098
1126
  flush: "sync"
1099
- }), vt([c, u], S, {
1127
+ }), yt([c, u], S, {
1100
1128
  flush: "sync"
1101
- }), vt(i, z, {
1129
+ }), yt(s, V, {
1102
1130
  flush: "sync"
1103
- }), ae() && ue(R), {
1104
- x: X(f),
1105
- y: X(m),
1106
- strategy: X(d),
1107
- placement: X(p),
1108
- middlewareData: X(h),
1109
- isPositioned: X(g),
1131
+ }), ue() && fe(R), {
1132
+ x: Y(f),
1133
+ y: Y(m),
1134
+ strategy: Y(d),
1135
+ placement: Y(p),
1136
+ middlewareData: Y(h),
1137
+ isPositioned: Y(g),
1110
1138
  floatingStyles: v,
1111
- update: x
1139
+ update: b
1112
1140
  };
1113
1141
  }
1114
- const Cn = /* @__PURE__ */ J({
1142
+ const En = /* @__PURE__ */ z({
1115
1143
  __name: "SqPopover",
1116
1144
  props: /* @__PURE__ */ bt({
1117
1145
  placement: { default: "top" },
@@ -1129,12 +1157,13 @@ const Cn = /* @__PURE__ */ J({
1129
1157
  emits: ["update:visible"],
1130
1158
  setup(t) {
1131
1159
  let e;
1132
- const n = t, o = St("triggerRef"), i = St("popverRef"), s = jt(t, "visible"), { floatingStyles: r } = xn(o, i, {
1160
+ const n = t, o = St("triggerRef"), s = St("popverRef"), i = Yt(t, "visible"), { floatingStyles: r } = Ln(o, s, {
1133
1161
  placement: n.placement,
1134
- whileElementsMounted: hn,
1135
- middleware: [gn(n.offset), vn()]
1162
+ whileElementsMounted: xn,
1163
+ transform: !1,
1164
+ middleware: [bn(n.offset), Sn()]
1136
1165
  });
1137
- fe(() => {
1166
+ de(() => {
1138
1167
  m(), document.removeEventListener("click", f);
1139
1168
  });
1140
1169
  function l() {
@@ -1148,45 +1177,45 @@ const Cn = /* @__PURE__ */ J({
1148
1177
  }, n.hideAfter));
1149
1178
  }
1150
1179
  function c() {
1151
- n.trigger === "click" && (s.value ? f() : n.disabled || u());
1180
+ n.trigger === "click" && (i.value ? f() : n.disabled || u());
1152
1181
  }
1153
1182
  function u() {
1154
- s.value = !0, document.addEventListener("click", f);
1183
+ i.value = !0, document.addEventListener("click", f);
1155
1184
  }
1156
1185
  function f() {
1157
- s.value = !1, document.removeEventListener("click", f);
1186
+ i.value = !1, document.removeEventListener("click", f);
1158
1187
  }
1159
1188
  function m() {
1160
1189
  e && (clearTimeout(e), e = void 0);
1161
1190
  }
1162
- return (d, p) => (C(), N(de, null, [
1163
- nt("span", {
1191
+ return (d, p) => (C(), _(pe, null, [
1192
+ J("span", {
1164
1193
  class: "sq-popover-trigger",
1165
1194
  ref_key: "triggerRef",
1166
1195
  ref: o,
1167
1196
  onMouseenter: l,
1168
1197
  onMouseleave: a,
1169
- onClick: $t(c, ["stop"])
1198
+ onClick: qt(c, ["stop"])
1170
1199
  }, [
1171
- D(d.$slots, "reference")
1200
+ T(d.$slots, "reference")
1172
1201
  ], 544),
1173
- (C(), Y(pe, {
1202
+ (C(), Q(me, {
1174
1203
  to: "body",
1175
1204
  disabled: !n.teleported
1176
1205
  }, [
1177
- Xt(me, { name: "sq-fade" }, {
1178
- default: ut(() => [
1179
- Ut(nt("div", {
1180
- class: Q(["sq-popover", d.popoverClass]),
1206
+ Xt(he, { name: "sq-fade" }, {
1207
+ default: ft(() => [
1208
+ Kt(J("div", {
1209
+ class: M(["sq-popover", d.popoverClass]),
1181
1210
  ref_key: "popverRef",
1182
- ref: i,
1183
- style: Yt(it(r)),
1184
- onClick: p[0] || (p[0] = $t(() => {
1211
+ ref: s,
1212
+ style: At(H(r)),
1213
+ onClick: p[0] || (p[0] = qt(() => {
1185
1214
  }, ["stop"]))
1186
1215
  }, [
1187
- D(d.$slots, "default")
1216
+ T(d.$slots, "default")
1188
1217
  ], 6), [
1189
- [he, s.value]
1218
+ [ge, i.value]
1190
1219
  ])
1191
1220
  ]),
1192
1221
  _: 3
@@ -1194,7 +1223,33 @@ const Cn = /* @__PURE__ */ J({
1194
1223
  ], 8, ["disabled"]))
1195
1224
  ], 64));
1196
1225
  }
1197
- }), An = /* @__PURE__ */ J({
1226
+ }), $n = /* @__PURE__ */ z({
1227
+ __name: "SqProgress",
1228
+ props: {
1229
+ value: {},
1230
+ min: { default: 0 },
1231
+ max: { default: 100 },
1232
+ color: {},
1233
+ type: { default: "primary" }
1234
+ },
1235
+ setup(t) {
1236
+ const e = t, n = w(() => e.color ? [] : [`is-${e.type}`]), o = w(() => {
1237
+ const i = e.max - e.min;
1238
+ return (e.value - e.min) * 100 / i;
1239
+ }), s = w(() => {
1240
+ const i = {};
1241
+ if (i["--progress-value"] = `${o.value}%`, e.color) {
1242
+ const l = typeof e.color == "string" ? e.color : e.color(o.value);
1243
+ i["--progress-color"] = l;
1244
+ }
1245
+ return i;
1246
+ });
1247
+ return (i, r) => (C(), _("div", {
1248
+ class: M(["sq-progress", n.value]),
1249
+ style: At(s.value)
1250
+ }, null, 6));
1251
+ }
1252
+ }), kn = /* @__PURE__ */ z({
1198
1253
  __name: "SqTag",
1199
1254
  props: {
1200
1255
  type: {},
@@ -1203,21 +1258,21 @@ const Cn = /* @__PURE__ */ J({
1203
1258
  size: { default: "md" }
1204
1259
  },
1205
1260
  setup(t) {
1206
- const e = t, n = b(() => {
1207
- const i = [];
1208
- return e.size !== "md" && i.push(`sq-tag--${e.size}`), e.theme !== "materialize" && e.type && i.push(`is-${e.theme}`), e.type && i.push(`is-${e.type}`), e.round && i.push("is-round"), i;
1209
- }), o = b(() => e.size === "lg" ? "md" : "sm");
1210
- return (i, s) => (C(), Y(it(Bt), {
1211
- class: Q(["sq-tag", n.value]),
1261
+ const e = t, n = w(() => {
1262
+ const s = [];
1263
+ return e.size !== "md" && s.push(`sq-tag--${e.size}`), e.theme !== "materialize" && e.type && s.push(`is-${e.theme}`), e.type && s.push(`is-${e.type}`), e.round && s.push("is-round"), s;
1264
+ }), o = w(() => e.size === "lg" ? "md" : "sm");
1265
+ return (s, i) => (C(), Q(H(kt), {
1266
+ class: M(["sq-tag", n.value]),
1212
1267
  size: o.value
1213
1268
  }, {
1214
- default: ut(() => [
1215
- D(i.$slots, "default")
1269
+ default: ft(() => [
1270
+ T(s.$slots, "default")
1216
1271
  ]),
1217
1272
  _: 3
1218
1273
  }, 8, ["class", "size"]));
1219
1274
  }
1220
- }), Ln = /* @__PURE__ */ J({
1275
+ }), Bn = /* @__PURE__ */ z({
1221
1276
  __name: "SqCheckTag",
1222
1277
  props: {
1223
1278
  checked: { type: Boolean, default: !1 },
@@ -1227,22 +1282,22 @@ const Cn = /* @__PURE__ */ J({
1227
1282
  },
1228
1283
  emits: ["change"],
1229
1284
  setup(t, { emit: e }) {
1230
- const n = e, o = t, i = b(() => {
1285
+ const n = e, o = t, s = w(() => {
1231
1286
  const r = [];
1232
1287
  return o.size !== "md" && r.push(`sq-tag--${o.size}`), o.type && r.push(`is-${o.type}`), o.round && r.push("is-round"), o.checked && r.push("is-checked"), r;
1233
- }), s = b(() => o.size === "lg" ? "md" : "sm");
1234
- return (r, l) => (C(), Y(it(Bt), {
1235
- class: Q(["sq-check-tag", i.value]),
1236
- size: s.value,
1288
+ }), i = w(() => o.size === "lg" ? "md" : "sm");
1289
+ return (r, l) => (C(), Q(H(kt), {
1290
+ class: M(["sq-check-tag", s.value]),
1291
+ size: i.value,
1237
1292
  onClick: l[0] || (l[0] = (a) => n("change", !o.checked))
1238
1293
  }, {
1239
- default: ut(() => [
1240
- D(r.$slots, "default")
1294
+ default: ft(() => [
1295
+ T(r.$slots, "default")
1241
1296
  ]),
1242
1297
  _: 3
1243
1298
  }, 8, ["class", "size"]));
1244
1299
  }
1245
- }), Bt = /* @__PURE__ */ J({
1300
+ }), kt = /* @__PURE__ */ z({
1246
1301
  __name: "SqText",
1247
1302
  props: {
1248
1303
  rowNum: { default: 1 },
@@ -1250,25 +1305,27 @@ const Cn = /* @__PURE__ */ J({
1250
1305
  size: { default: "md" }
1251
1306
  },
1252
1307
  setup(t) {
1253
- const e = t, n = b(() => {
1254
- const i = [];
1255
- return e.size !== "md" && i.push(`s-text--${e.size}`), e.ellipsis && i.push(e.rowNum > 1 ? "multi-line" : "single-line"), i;
1256
- }), o = b(
1308
+ const e = t, n = w(() => {
1309
+ const s = [];
1310
+ return e.size !== "md" && s.push(`s-text--${e.size}`), e.ellipsis && s.push(e.rowNum > 1 ? "multi-line" : "single-line"), s;
1311
+ }), o = w(
1257
1312
  () => e.ellipsis ? `--row-num: ${e.rowNum}` : ""
1258
1313
  );
1259
- return (i, s) => (C(), N("span", {
1260
- class: Q(["sq-text", n.value]),
1261
- style: Yt(o.value)
1314
+ return (s, i) => (C(), _("span", {
1315
+ class: M(["sq-text", n.value]),
1316
+ style: At(o.value)
1262
1317
  }, [
1263
- D(i.$slots, "default")
1318
+ T(s.$slots, "default")
1264
1319
  ], 6));
1265
1320
  }
1266
1321
  });
1267
1322
  export {
1268
- Sn as SqButton,
1269
- Ln as SqCheckTag,
1270
- Rn as SqInput,
1271
- Cn as SqPopover,
1272
- An as SqTag,
1273
- Bt as SqText
1323
+ On as SqButton,
1324
+ _n as SqCard,
1325
+ Bn as SqCheckTag,
1326
+ Tn as SqInput,
1327
+ En as SqPopover,
1328
+ $n as SqProgress,
1329
+ kn as SqTag,
1330
+ kt as SqText
1274
1331
  };