@squirrel-cloud/ui-vue 0.4.30 → 0.4.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
- import { defineComponent as L, computed as b, createBlock as S, openBlock as v, unref as c, normalizeClass as V, withCtx as I, createCommentVNode as M, createTextVNode as Te, resolveDynamicComponent as ce, toDisplayString as X, h as Oe, ref as R, watch as oe, createElementBlock as $, normalizeStyle as K, onMounted as ie, onBeforeUnmount as he, Transition as be, withDirectives as ae, createElementVNode as E, renderSlot as U, vShow as ve, useSlots as Re, createVNode as T, inject as pe, provide as qe, toRef as ne, mergeModels as G, useModel as le, vModelCheckbox as Qe, toRaw as ke, Fragment as ee, renderList as de, useAttrs as Ne, Teleport as et, mergeProps as fe, shallowRef as ue, withModifiers as me, nextTick as Le, vModelDynamic as yt, vModelText as xt, render as Ie, cloneVNode as _t, Text as $t, Comment as kt, vModelRadio as tt } from "vue";
2
- import { WarningFilled as st, CloseFilled as nt, InfoFilled as Xe, CheckFilled as ot, JumpTo as wt, CaretUp as qt, Loading as Me, Check as at, Close as Ue, Bold as Ct, Italic as St, Underline as Bt, Strikethrough as zt, Hide as lt, ListUl as Tt, ListOl as Rt, View as it, ArrowLeft as rt, ArrowRight as ut, ZoomIn as Lt, ZoomOut as It, FlipHorizontal as Mt, FlipVertical as Et, Clockwise as At, Couterclockwise as Dt, FitSize as Ot, Fullscreen as Pt, Ellipsis as Nt, ArrowDown as Ut } from "@squirrel-cloud/icons-vue";
1
+ import { defineComponent as L, computed as b, createBlock as C, openBlock as v, unref as c, normalizeClass as V, withCtx as A, createCommentVNode as D, createTextVNode as Re, resolveDynamicComponent as ce, toDisplayString as X, h as Te, ref as R, watch as oe, createElementBlock as _, normalizeStyle as K, onMounted as ie, onBeforeUnmount as he, Transition as be, withDirectives as ae, createElementVNode as O, renderSlot as F, vShow as ve, useSlots as Le, createVNode as T, inject as pe, provide as qe, toRef as ne, mergeModels as G, useModel as le, vModelCheckbox as Qe, toRaw as ke, Fragment as te, renderList as de, useAttrs as Ne, Teleport as et, mergeProps as fe, shallowRef as ue, withModifiers as me, nextTick as Ie, vModelDynamic as yt, vModelText as xt, render as Me, cloneVNode as _t, Text as $t, Comment as kt, vModelRadio as tt } from "vue";
2
+ import { WarningFilled as st, CloseFilled as nt, InfoFilled as Xe, CheckFilled as ot, JumpTo as wt, CaretUp as qt, Loading as Ee, Check as at, Close as Ue, Bold as Ct, Italic as St, Underline as Bt, Strikethrough as zt, Hide as lt, ListUl as Tt, ListOl as Rt, View as it, ArrowLeft as rt, ArrowRight as ut, ZoomIn as Lt, ZoomOut as It, FlipHorizontal as Mt, FlipVertical as Et, Clockwise as At, Couterclockwise as Dt, FitSize as Ot, Fullscreen as Pt, Ellipsis as Nt, ArrowDown as Ut } from "@squirrel-cloud/icons-vue";
3
3
  import Ft from "markdown-it";
4
4
  import { createHighlighter as Vt } from "shiki";
5
5
  import { RouterLink as Ht } from "vue-router";
6
- import { autoUpdate as Wt, computePosition as jt, offset as Xt, flip as Yt, shift as Kt } from "@floating-ui/dom";
6
+ import { autoUpdate as jt, computePosition as Wt, offset as Xt, flip as Yt, shift as Kt } from "@floating-ui/dom";
7
7
  const Fe = {
8
8
  primary: Xe,
9
9
  success: ot,
@@ -24,19 +24,19 @@ const Fe = {
24
24
  const t = [];
25
25
  return o.type && t.push(`is-${o.type}`), t;
26
26
  }), e = b(() => o.icon ? o.icon : o.showIcon && o.type ? Fe[o.type] : void 0);
27
- return (t, s) => (v(), S(c(ge), {
27
+ return (t, s) => (v(), C(c(ge), {
28
28
  class: V(["sq-alert", n.value])
29
29
  }, {
30
- default: I(() => [
31
- e.value ? (v(), S(ce(e.value), { key: 0 })) : M("", !0),
32
- Te(" " + X(o.text), 1)
30
+ default: A(() => [
31
+ e.value ? (v(), C(ce(e.value), { key: 0 })) : D("", !0),
32
+ Re(" " + X(o.text), 1)
33
33
  ]),
34
34
  _: 1
35
35
  }, 8, ["class"]));
36
36
  }
37
37
  });
38
38
  let Ye = 0;
39
- const Ee = () => ({
39
+ const Ae = () => ({
40
40
  /**
41
41
  * 获取下一个ID
42
42
  * @returns 下一个ID
@@ -145,16 +145,16 @@ function Qt(d) {
145
145
  if (l.type === "list_item_open") {
146
146
  const u = n[s + 2];
147
147
  if (u && u.type === "inline") {
148
- const i = u.content;
149
- if (/^\[[ xX]\]/.test(i.trim())) {
148
+ const r = u.content;
149
+ if (/^\[[ xX]\]/.test(r.trim())) {
150
150
  l.attrSet("class", "sq-article-task-list-item");
151
151
  const a = (e = u.children) == null ? void 0 : e[0];
152
152
  a && (a.content = a.content.replace(/^\[[ xX]\]/, ""));
153
- const r = /^\[[xX]\]/.test(i), f = [
153
+ const i = /^\[[xX]\]/.test(r), f = [
154
154
  ["type", "checkbox"],
155
155
  ["disabled", ""]
156
156
  ];
157
- r && f.push(["checked", ""]);
157
+ i && f.push(["checked", ""]);
158
158
  const g = new Se("input", "input", 0);
159
159
  g.attrs = f, (t = u.children) == null || t.unshift(g);
160
160
  }
@@ -170,11 +170,19 @@ function es() {
170
170
  html: !0,
171
171
  typographer: !0
172
172
  });
173
- return u.use(Qt), l && l.forEach((i) => u.use(i)), u.parse(s, "");
173
+ return u.use(Qt), l && l.forEach((r) => u.use(r)), u.parse(s, "");
174
174
  }
175
175
  function o(s, l) {
176
176
  const u = e(s, l) ?? [];
177
- return Oe("article", { class: "sq-article" }, n(u));
177
+ return Te("article", { class: "sq-article" }, [
178
+ Te(
179
+ "div",
180
+ {
181
+ class: "sq-article-content"
182
+ },
183
+ n(u)
184
+ )
185
+ ]);
178
186
  }
179
187
  function n(s) {
180
188
  if (!s) return;
@@ -182,22 +190,22 @@ function es() {
182
190
  if (typeof u == "string")
183
191
  return u;
184
192
  {
185
- const i = n(u.children);
186
- return Oe(
193
+ const r = n(u.children);
194
+ return Te(
187
195
  u.tag,
188
196
  u.attrs,
189
- typeof u.tag != "string" ? t(i) : i
197
+ typeof u.tag != "string" ? t(r) : r
190
198
  );
191
199
  }
192
200
  });
193
201
  return l.length > 1 ? l : l[0];
194
202
  }
195
203
  function e(s, l) {
196
- const u = [], i = { children: [] };
197
- let a = i;
198
- return s.forEach((r) => {
199
- var P, N, H, J, Q, te, Z, w, y, m, k, _;
200
- const { type: f, children: g, content: h, attrs: p, tag: x, hidden: q, info: z } = r;
204
+ const u = [], r = { children: [] };
205
+ let a = r;
206
+ return s.forEach((i) => {
207
+ var M, I, j, J, ee, se, Z, w, y, m, k, x;
208
+ const { type: f, children: g, content: h, attrs: p, tag: $, hidden: z, info: B } = i;
201
209
  switch (f) {
202
210
  case "heading_open":
203
211
  case "paragraph_open":
@@ -215,25 +223,25 @@ function es() {
215
223
  case "em_open":
216
224
  case "s_open":
217
225
  case "link_open": {
218
- if (q) break;
219
- const B = {
220
- tag: (l == null ? void 0 : l[x]) ?? x,
226
+ if (z) break;
227
+ const S = {
228
+ tag: (l == null ? void 0 : l[$]) ?? $,
221
229
  children: [],
222
230
  attrs: p ? Object.fromEntries(p) : {}
223
231
  };
224
232
  if (f === "link_open") {
225
- const O = r.attrGet("href") ?? "", W = document.location.origin;
226
- O != null && O.startsWith("http") && !O.includes(W) && (B.attrs.target = "_blank", B.attrs.rel = "noopener noreferrer", B.attrs.dataOuter = "", (P = B.children) == null || P.push({ tag: wt }));
233
+ const N = i.attrGet("href") ?? "", H = document.location.origin;
234
+ N != null && N.startsWith("http") && !N.includes(H) && (S.attrs.target = "_blank", S.attrs.rel = "noopener noreferrer", S.attrs.dataOuter = "", (M = S.children) == null || M.push({ tag: wt }));
227
235
  }
228
236
  if (f === "table_open") {
229
- const O = {
237
+ const N = {
230
238
  tag: "div",
231
239
  children: [],
232
240
  attrs: { class: "sq-article-table" }
233
241
  };
234
- (N = a.children) == null || N.push(O), u.push(a), a = O;
242
+ (I = a.children) == null || I.push(N), u.push(a), a = N;
235
243
  }
236
- (H = a.children) == null || H.push(B), u.push(a), a = B;
244
+ (j = a.children) == null || j.push(S), u.push(a), a = S;
237
245
  break;
238
246
  }
239
247
  case "heading_close":
@@ -252,13 +260,13 @@ function es() {
252
260
  case "em_close":
253
261
  case "s_close":
254
262
  case "link_close": {
255
- if (q) break;
263
+ if (z) break;
256
264
  a = u.pop();
257
265
  break;
258
266
  }
259
267
  case "code_inline": {
260
268
  (J = a.children) == null || J.push({
261
- tag: (l == null ? void 0 : l[x]) ?? x,
269
+ tag: (l == null ? void 0 : l[$]) ?? $,
262
270
  children: [h],
263
271
  attrs: p ? Object.fromEntries(p) : {}
264
272
  });
@@ -266,10 +274,10 @@ function es() {
266
274
  }
267
275
  case "inline": {
268
276
  if (g) {
269
- const B = e(g, l);
270
- (Q = a.children) == null || Q.push(...B ?? []);
277
+ const S = e(g, l);
278
+ (ee = a.children) == null || ee.push(...S ?? []);
271
279
  } else
272
- (te = a.children) == null || te.push(h);
280
+ (se = a.children) == null || se.push(h);
273
281
  break;
274
282
  }
275
283
  case "text": {
@@ -278,7 +286,7 @@ function es() {
278
286
  }
279
287
  case "image": {
280
288
  (w = a.children) == null || w.push({
281
- tag: (l == null ? void 0 : l[x]) ?? x,
289
+ tag: (l == null ? void 0 : l[$]) ?? $,
282
290
  children: [],
283
291
  attrs: p ? Object.fromEntries(p) : {}
284
292
  });
@@ -289,40 +297,46 @@ function es() {
289
297
  tag: (l == null ? void 0 : l.fence) ?? "pre",
290
298
  attrs: p ? Object.fromEntries(p) : {
291
299
  code: h,
292
- lang: (z ?? "").trim()
300
+ lang: (B ?? "").trim()
293
301
  }
294
302
  });
295
303
  break;
296
304
  }
297
305
  case "hr": {
298
306
  (m = a.children) == null || m.push({
299
- tag: (l == null ? void 0 : l[x]) ?? x
307
+ tag: (l == null ? void 0 : l[$]) ?? $
300
308
  });
301
309
  break;
302
310
  }
303
311
  case "input": {
304
- const B = p ? Object.fromEntries(p) : {}, O = B.type ?? "text", W = `${x}-${O}`, A = {
305
- tag: (l == null ? void 0 : l[W]) ?? x,
312
+ const S = p ? Object.fromEntries(p) : {}, N = S.type ?? "text", H = `${$}-${N}`, E = {
313
+ tag: (l == null ? void 0 : l[H]) ?? $,
306
314
  children: [],
307
- attrs: B
315
+ attrs: S
308
316
  };
309
- O === "checkbox" && (A.attrs.value = `task-list-${Ge}`, Ge++), (k = a.children) == null || k.push(A);
317
+ N === "checkbox" && (E.attrs.value = `task-list-${Ge}`, Ge++), (k = a.children) == null || k.push(E);
310
318
  break;
311
319
  }
312
320
  case "html_inline": {
313
321
  if (h.startsWith("</"))
314
322
  a = u.pop();
315
323
  else {
316
- const B = h.replace("<", "").replace(">", ""), O = {
317
- tag: (l == null ? void 0 : l[B]) ?? B,
324
+ const S = h.match(/^<(\w+)/);
325
+ if (!S) return;
326
+ const N = S[1], H = {
327
+ tag: (l == null ? void 0 : l[N]) ?? N,
318
328
  children: []
319
- };
320
- (_ = a.children) == null || _.push(O), u.push(a), a = O;
329
+ }, E = h.match(/<[^>]+>/);
330
+ if (E) {
331
+ const U = E[0], q = {};
332
+ U.replace(/(\w+)=["']?([^"'\s>]+)["']?/g, (P, W, Q) => (q[W] = Q, "")), Object.keys(q).length > 0 && (H.attrs = q);
333
+ }
334
+ (x = a.children) == null || x.push(H), u.push(a), a = H;
321
335
  }
322
336
  break;
323
337
  }
324
338
  }
325
- }), i.children;
339
+ }), r.children;
326
340
  }
327
341
  function t(s) {
328
342
  return s === void 0 ? void 0 : { default: () => s };
@@ -417,10 +431,18 @@ const { md2tokens: ns, tokens2vueh: os } = es(), as = "sq-article", ls = L({
417
431
  }));
418
432
  return () => {
419
433
  if (!d.md)
420
- return Oe("article", {
421
- class: "sq-article",
422
- innerHTML: d.text
423
- });
434
+ return Te(
435
+ "article",
436
+ {
437
+ class: "sq-article"
438
+ },
439
+ [
440
+ Te("div", {
441
+ class: "sq-article-content",
442
+ innerHTML: d.text
443
+ })
444
+ ]
445
+ );
424
446
  const n = ns(d.text, d.plugins);
425
447
  return os(n, o.value);
426
448
  };
@@ -455,16 +477,16 @@ const { md2tokens: ns, tokens2vueh: os } = es(), as = "sq-article", ls = L({
455
477
  function l() {
456
478
  n.value = !1;
457
479
  }
458
- return (u, i) => (v(), $("div", {
480
+ return (u, r) => (v(), _("div", {
459
481
  class: V(["sq-avatar", e.value]),
460
482
  style: K(t.value)
461
483
  }, [
462
- o.img && n.value ? (v(), $("img", {
484
+ o.img && n.value ? (v(), _("img", {
463
485
  key: 0,
464
486
  src: o.img,
465
487
  alt: o.alt,
466
488
  onError: l
467
- }, null, 40, is)) : (v(), $("span", {
489
+ }, null, 40, is)) : (v(), _("span", {
468
490
  key: 1,
469
491
  textContent: X(s.value)
470
492
  }, null, 8, rs))
@@ -482,7 +504,7 @@ const { md2tokens: ns, tokens2vueh: os } = es(), as = "sq-article", ls = L({
482
504
  progressProps: {}
483
505
  },
484
506
  setup(d) {
485
- const { throttle: o } = ts(), n = o(i), e = new ResizeObserver(a), t = d, s = R(100), l = R(0), u = b(() => l.value > t.visibilityHeight);
507
+ const { throttle: o } = ts(), n = o(r), e = new ResizeObserver(a), t = d, s = R(100), l = R(0), u = b(() => l.value > t.visibilityHeight);
486
508
  ie(() => {
487
509
  var g;
488
510
  a(), n(), window.addEventListener("scroll", n);
@@ -492,28 +514,28 @@ const { md2tokens: ns, tokens2vueh: os } = es(), as = "sq-article", ls = L({
492
514
  var f;
493
515
  window.removeEventListener("scroll", n), e.disconnect(), (f = window.visualViewport) == null || f.removeEventListener("resize", a);
494
516
  });
495
- function i() {
517
+ function r() {
496
518
  l.value = window.scrollY;
497
519
  }
498
520
  function a() {
499
521
  const f = (document.scrollingElement ?? document.body).scrollHeight, g = window.innerHeight;
500
522
  s.value = f - g;
501
523
  }
502
- function r() {
524
+ function i() {
503
525
  window.scrollTo({ top: 0, behavior: "smooth" });
504
526
  }
505
- return (f, g) => (v(), S(be, {
527
+ return (f, g) => (v(), C(be, {
506
528
  name: t.transition
507
529
  }, {
508
- default: I(() => {
509
- var h, p, x;
530
+ default: A(() => {
531
+ var h, p, $;
510
532
  return [
511
- ae(E("div", cs, [
512
- E("div", {
533
+ ae(O("div", cs, [
534
+ O("div", {
513
535
  class: "sq-backtop-wrap",
514
- onClick: r
536
+ onClick: i
515
537
  }, [
516
- t.progress ? (v(), S(c(go), {
538
+ t.progress ? (v(), C(c(go), {
517
539
  key: 0,
518
540
  variant: "circle",
519
541
  label: !1,
@@ -521,10 +543,10 @@ const { md2tokens: ns, tokens2vueh: os } = es(), as = "sq-article", ls = L({
521
543
  max: s.value,
522
544
  type: (h = t.progressProps) == null ? void 0 : h.type,
523
545
  stroke: (p = t.progressProps) == null ? void 0 : p.stroke,
524
- color: (x = t.progressProps) == null ? void 0 : x.color
525
- }, null, 8, ["value", "max", "type", "stroke", "color"])) : M("", !0),
526
- U(f.$slots, "default", {}, () => [
527
- (v(), S(ce(t.icon)))
546
+ color: ($ = t.progressProps) == null ? void 0 : $.color
547
+ }, null, 8, ["value", "max", "type", "stroke", "color"])) : D("", !0),
548
+ F(f.$slots, "default", {}, () => [
549
+ (v(), C(ce(t.icon)))
528
550
  ])
529
551
  ])
530
552
  ], 512), [
@@ -548,36 +570,36 @@ const { md2tokens: ns, tokens2vueh: os } = es(), as = "sq-article", ls = L({
548
570
  dot: { type: Boolean }
549
571
  },
550
572
  setup(d) {
551
- const o = Re(), n = d, e = b(() => {
573
+ const o = Le(), n = d, e = b(() => {
552
574
  const u = [`is-${n.type}`];
553
575
  return n.dot && u.push("is-dot"), u;
554
576
  }), t = b(() => o.default ? "sup" : "div"), s = b(() => !n.dot && n.text || n.showZero ? !0 : n.count > 0), l = b(() => n.dot ? "" : n.text ? n.text : n.max && n.count > n.max ? `${n.max}+` : `${n.count}`);
555
- return (u, i) => (v(), S(be, { name: "sq-zoom" }, {
556
- default: I(() => [
557
- c(o).default || s.value ? (v(), $("span", {
577
+ return (u, r) => (v(), C(be, { name: "sq-zoom" }, {
578
+ default: A(() => [
579
+ c(o).default || s.value ? (v(), _("span", {
558
580
  key: 0,
559
581
  class: V(["sq-badge", e.value]),
560
582
  style: K({ "--badge-color": n.color })
561
583
  }, [
562
- U(u.$slots, "default"),
563
- (v(), S(ce(t.value), { class: "sq-badge-label" }, {
564
- default: I(() => [
584
+ F(u.$slots, "default"),
585
+ (v(), C(ce(t.value), { class: "sq-badge-label" }, {
586
+ default: A(() => [
565
587
  T(be, {
566
588
  name: c(o).default ? "sq-zoom" : ""
567
589
  }, {
568
- default: I(() => [
569
- s.value ? (v(), $("span", {
590
+ default: A(() => [
591
+ s.value ? (v(), _("span", {
570
592
  key: 0,
571
593
  class: "sq-badge-label-inner",
572
594
  textContent: X(l.value)
573
- }, null, 8, fs)) : M("", !0)
595
+ }, null, 8, fs)) : D("", !0)
574
596
  ]),
575
597
  _: 1
576
598
  }, 8, ["name"])
577
599
  ]),
578
600
  _: 1
579
601
  }))
580
- ], 6)) : M("", !0)
602
+ ], 6)) : D("", !0)
581
603
  ]),
582
604
  _: 3
583
605
  }));
@@ -586,9 +608,9 @@ const { md2tokens: ns, tokens2vueh: os } = es(), as = "sq-article", ls = L({
586
608
  name: vs,
587
609
  __name: "blur",
588
610
  setup(d) {
589
- return (o, n) => (v(), S(c(ge), { class: "sq-blur" }, {
590
- default: I(() => [
591
- U(o.$slots, "default")
611
+ return (o, n) => (v(), C(c(ge), { class: "sq-blur" }, {
612
+ default: A(() => [
613
+ F(o.$slots, "default")
592
614
  ]),
593
615
  _: 3
594
616
  }));
@@ -599,11 +621,11 @@ function hs(d) {
599
621
  () => c(e) ? void 0 : d.text
600
622
  ), s = b(
601
623
  () => {
602
- var a, r;
624
+ var a, i;
603
625
  return o(
604
626
  (a = c(e)) == null ? void 0 : a.size,
605
627
  d.size,
606
- (r = c(n)) == null ? void 0 : r.size,
628
+ (i = c(n)) == null ? void 0 : i.size,
607
629
  "md"
608
630
  );
609
631
  }
@@ -614,34 +636,34 @@ function hs(d) {
614
636
  }
615
637
  ), u = b(
616
638
  () => {
617
- var a, r;
639
+ var a, i;
618
640
  return o(
619
641
  (a = c(e)) == null ? void 0 : a.round,
620
642
  d.round,
621
- (r = c(n)) == null ? void 0 : r.round
643
+ (i = c(n)) == null ? void 0 : i.round
622
644
  );
623
645
  }
624
- ), i = b(
646
+ ), r = b(
625
647
  () => {
626
- var a, r, f;
648
+ var a, i, f;
627
649
  return o(
628
650
  (a = c(n)) == null ? void 0 : a.disabled,
629
- (r = c(n)) == null ? void 0 : r.readonly,
651
+ (i = c(n)) == null ? void 0 : i.readonly,
630
652
  (f = c(e)) == null ? void 0 : f.disabled,
631
653
  d.disabled
632
654
  );
633
655
  }
634
656
  );
635
- return { btnTextType: t, btnSize: s, btnType: l, btnRound: u, btnDisabled: i };
657
+ return { btnTextType: t, btnSize: s, btnType: l, btnRound: u, btnDisabled: r };
636
658
  }
637
659
  function gs(d) {
638
660
  const { getOption: o } = Ce(), n = pe(Be, void 0), e = pe(ft, void 0), t = b(
639
661
  () => {
640
- var a, r;
662
+ var a, i;
641
663
  return o(
642
664
  (a = c(e)) == null ? void 0 : a.size,
643
665
  d.size,
644
- (r = c(n)) == null ? void 0 : r.size,
666
+ (i = c(n)) == null ? void 0 : i.size,
645
667
  "md"
646
668
  );
647
669
  }
@@ -660,12 +682,12 @@ function gs(d) {
660
682
  var a;
661
683
  return o((a = c(e)) == null ? void 0 : a.variant, d.variant);
662
684
  }
663
- ), i = b(
685
+ ), r = b(
664
686
  () => {
665
- var a, r, f;
687
+ var a, i, f;
666
688
  return o(
667
689
  (a = c(n)) == null ? void 0 : a.disabled,
668
- (r = c(n)) == null ? void 0 : r.readonly,
690
+ (i = c(n)) == null ? void 0 : i.readonly,
669
691
  (f = c(e)) == null ? void 0 : f.disabled,
670
692
  d.disabled
671
693
  );
@@ -676,30 +698,30 @@ function gs(d) {
676
698
  checkboxForm: s,
677
699
  checkboxName: l,
678
700
  checkboxVariant: u,
679
- checkboxDisabled: i,
701
+ checkboxDisabled: r,
680
702
  groupContext: e
681
703
  };
682
704
  }
683
705
  function bs(d) {
684
- const { getOption: o } = Ce(), n = pe(Be, void 0), e = pe(We, void 0), t = b(
706
+ const { getOption: o } = Ce(), n = pe(Be, void 0), e = pe(je, void 0), t = b(
685
707
  () => {
686
- var i;
687
- return o(d.size, (i = c(n)) == null ? void 0 : i.size, "md");
708
+ var r;
709
+ return o(d.size, (r = c(n)) == null ? void 0 : r.size, "md");
688
710
  }
689
711
  ), s = b(
690
712
  () => {
691
- var i;
692
- return o(d.round, (i = c(n)) == null ? void 0 : i.round);
713
+ var r;
714
+ return o(d.round, (r = c(n)) == null ? void 0 : r.round);
693
715
  }
694
716
  ), l = b(
695
717
  () => {
696
- var i;
697
- return o((i = c(n)) == null ? void 0 : i.disabled, d.disabled);
718
+ var r;
719
+ return o((r = c(n)) == null ? void 0 : r.disabled, d.disabled);
698
720
  }
699
721
  ), u = b(
700
722
  () => {
701
- var i;
702
- return o((i = c(n)) == null ? void 0 : i.readonly, d.readonly);
723
+ var r;
724
+ return o((r = c(n)) == null ? void 0 : r.readonly, d.readonly);
703
725
  }
704
726
  );
705
727
  return { inputSize: t, inputRound: s, inputDisabled: l, inputReadonly: u, id: e };
@@ -707,11 +729,11 @@ function bs(d) {
707
729
  function ys(d) {
708
730
  const { getOption: o } = Ce(), n = pe(Be, void 0), e = pe(ht, void 0), t = b(
709
731
  () => {
710
- var a, r;
732
+ var a, i;
711
733
  return o(
712
734
  (a = c(e)) == null ? void 0 : a.size,
713
735
  d.size,
714
- (r = c(n)) == null ? void 0 : r.size,
736
+ (i = c(n)) == null ? void 0 : i.size,
715
737
  "md"
716
738
  );
717
739
  }
@@ -730,12 +752,12 @@ function ys(d) {
730
752
  var a;
731
753
  return o((a = c(e)) == null ? void 0 : a.variant, d.variant);
732
754
  }
733
- ), i = b(
755
+ ), r = b(
734
756
  () => {
735
- var a, r, f;
757
+ var a, i, f;
736
758
  return o(
737
759
  (a = c(n)) == null ? void 0 : a.disabled,
738
- (r = c(n)) == null ? void 0 : r.readonly,
760
+ (i = c(n)) == null ? void 0 : i.readonly,
739
761
  (f = c(e)) == null ? void 0 : f.disabled,
740
762
  d.disabled
741
763
  );
@@ -746,7 +768,7 @@ function ys(d) {
746
768
  radioForm: s,
747
769
  radioName: l,
748
770
  radioVariant: u,
749
- radioDisabled: i,
771
+ radioDisabled: r,
750
772
  groupContext: e
751
773
  };
752
774
  }
@@ -763,7 +785,7 @@ function xs(d) {
763
785
  };
764
786
  }
765
787
  function _s(d) {
766
- const { getOption: o } = Ce(), n = pe(Be, void 0), e = pe(We, void 0), t = b(
788
+ const { getOption: o } = Ce(), n = pe(Be, void 0), e = pe(je, void 0), t = b(
767
789
  () => {
768
790
  var l;
769
791
  return o(d.size, (l = c(n)) == null ? void 0 : l.size, "md");
@@ -797,11 +819,11 @@ const $s = ["disabled", "form", "type"], ks = "sq-button", Y = /* @__PURE__ */ L
797
819
  },
798
820
  emits: ["click"],
799
821
  setup(d, { emit: o }) {
800
- const n = o, e = d, { btnTextType: t, btnSize: s, btnType: l, btnRound: u, btnDisabled: i } = hs(e), a = b(() => {
801
- const g = [], h = c(s), p = c(l), x = c(u), q = c(t);
802
- return h !== "md" && g.push(`sq-button--${h}`), p && g.push(`is-${p}`), x && g.push("is-round"), q && g.push("is-text"), q && e.bg && g.push("has-bg"), g;
803
- }), r = b(() => e.loading ? Me : e.icon), f = b(() => e.loading || c(i));
804
- return (g, h) => (v(), $("button", {
822
+ const n = o, e = d, { btnTextType: t, btnSize: s, btnType: l, btnRound: u, btnDisabled: r } = hs(e), a = b(() => {
823
+ const g = [], h = c(s), p = c(l), $ = c(u), z = c(t);
824
+ return h !== "md" && g.push(`sq-button--${h}`), p && g.push(`is-${p}`), $ && g.push("is-round"), z && g.push("is-text"), z && e.bg && g.push("has-bg"), g;
825
+ }), i = b(() => e.loading ? Ee : e.icon), f = b(() => e.loading || c(r));
826
+ return (g, h) => (v(), _("button", {
805
827
  class: V(["sq-button", a.value]),
806
828
  disabled: f.value,
807
829
  form: e.form,
@@ -811,9 +833,9 @@ const $s = ["disabled", "form", "type"], ks = "sq-button", Y = /* @__PURE__ */ L
811
833
  T(c(ge), {
812
834
  size: c(s) === "lg" ? "md" : c(s)
813
835
  }, {
814
- default: I(() => [
815
- r.value ? (v(), S(ce(r.value), { key: 0 })) : M("", !0),
816
- U(g.$slots, "default")
836
+ default: A(() => [
837
+ i.value ? (v(), C(ce(i.value), { key: 0 })) : D("", !0),
838
+ F(g.$slots, "default")
817
839
  ]),
818
840
  _: 3
819
841
  }, 8, ["size"])
@@ -838,8 +860,8 @@ const $s = ["disabled", "form", "type"], ks = "sq-button", Y = /* @__PURE__ */ L
838
860
  round: ne(o, "round"),
839
861
  disabled: ne(o, "disabled")
840
862
  })
841
- ), (n, e) => (v(), $("div", ws, [
842
- U(n.$slots, "default")
863
+ ), (n, e) => (v(), _("div", ws, [
864
+ F(n.$slots, "default")
843
865
  ]));
844
866
  }
845
867
  }), ct = Symbol("button-group-context-keys"), Cs = { class: "sq-card" }, Ss = {
@@ -856,19 +878,19 @@ const $s = ["disabled", "form", "type"], ks = "sq-button", Y = /* @__PURE__ */ L
856
878
  decorative: { type: Boolean, default: !1 }
857
879
  },
858
880
  setup(d) {
859
- const o = Re(), n = d;
860
- return (e, t) => (v(), $("section", Cs, [
861
- n.title || c(o).title ? (v(), $("div", Ss, [
862
- E("h2", {
881
+ const o = Le(), n = d;
882
+ return (e, t) => (v(), _("section", Cs, [
883
+ n.title || c(o).title ? (v(), _("div", Ss, [
884
+ O("h2", {
863
885
  class: V({ "has-decorative": n.decorative }),
864
886
  textContent: X(n.title)
865
887
  }, null, 10, Bs),
866
- U(e.$slots, "title")
867
- ])) : M("", !0),
868
- U(e.$slots, "default"),
869
- c(o).footer ? (v(), $("div", zs, [
870
- U(e.$slots, "footer")
871
- ])) : M("", !0)
888
+ F(e.$slots, "title")
889
+ ])) : D("", !0),
890
+ F(e.$slots, "default"),
891
+ c(o).footer ? (v(), _("div", zs, [
892
+ F(e.$slots, "footer")
893
+ ])) : D("", !0)
872
894
  ]));
873
895
  }
874
896
  }), Rs = ["autofocus", "name", "form", "value", "disabled"], Ls = ["textContent"], Is = "sq-checkbox", dt = /* @__PURE__ */ L({
@@ -895,50 +917,50 @@ const $s = ["disabled", "form", "type"], ks = "sq-button", Y = /* @__PURE__ */ L
895
917
  checkboxDisabled: s,
896
918
  checkboxForm: l,
897
919
  checkboxName: u,
898
- checkboxVariant: i,
920
+ checkboxVariant: r,
899
921
  groupContext: a
900
- } = gs(e), r = le(d, "checked"), f = b(() => {
901
- const h = [], p = c(t), x = c(s), q = c(i);
902
- return p !== "md" && h.push(`sq-selection--${p}`), g.value && h.push("is-checked"), x && h.push("is-disabled"), q && h.push(`is-${q}`), h;
903
- }), g = b(() => a ? c(a).list.includes(e.value) : r.value);
922
+ } = gs(e), i = le(d, "checked"), f = b(() => {
923
+ const h = [], p = c(t), $ = c(s), z = c(r);
924
+ return p !== "md" && h.push(`sq-selection--${p}`), g.value && h.push("is-checked"), $ && h.push("is-disabled"), z && h.push(`is-${z}`), h;
925
+ }), g = b(() => a ? c(a).list.includes(e.value) : i.value);
904
926
  return oe(g, (h) => {
905
- if (r.value !== h) {
906
- r.value = h;
927
+ if (i.value !== h) {
928
+ i.value = h;
907
929
  return;
908
930
  }
909
- }), oe(r, (h) => {
931
+ }), oe(i, (h) => {
910
932
  g.value !== h && a && a.value.toggleItem(e.value);
911
933
  }), ie(() => {
912
- r.value = g.value;
913
- }), (h, p) => (v(), $("label", {
934
+ i.value = g.value;
935
+ }), (h, p) => (v(), _("label", {
914
936
  class: V(["sq-selection sq-checkbox", f.value])
915
937
  }, [
916
- ae(E("input", {
938
+ ae(O("input", {
917
939
  type: "checkbox",
918
940
  autofocus: e.autofocus,
919
941
  name: c(u),
920
942
  form: c(l),
921
943
  value: e.value,
922
944
  disabled: c(s),
923
- "onUpdate:modelValue": p[0] || (p[0] = (x) => r.value = x),
924
- onChange: p[1] || (p[1] = (x) => n("change", r.value))
945
+ "onUpdate:modelValue": p[0] || (p[0] = ($) => i.value = $),
946
+ onChange: p[1] || (p[1] = ($) => n("change", i.value))
925
947
  }, null, 40, Rs), [
926
- [Qe, r.value]
948
+ [Qe, i.value]
927
949
  ]),
928
- c(i) !== "solid" ? (v(), $("span", {
950
+ c(r) !== "solid" ? (v(), _("span", {
929
951
  key: 0,
930
952
  class: V(["sq-checkbox-box", { "is-indeterminate": e.indeterminate && !g.value }])
931
953
  }, [
932
- g.value ? (v(), S(c(at), {
954
+ g.value ? (v(), C(c(at), {
933
955
  key: 0,
934
956
  class: "sq-checkbox-inner"
935
- })) : M("", !0)
936
- ], 2)) : M("", !0),
937
- e.label ? (v(), $("span", {
957
+ })) : D("", !0)
958
+ ], 2)) : D("", !0),
959
+ e.label ? (v(), _("span", {
938
960
  key: 1,
939
961
  class: "sq-selection-label",
940
962
  textContent: X(e.label)
941
- }, null, 8, Ls)) : M("", !0)
963
+ }, null, 8, Ls)) : D("", !0)
942
964
  ], 2));
943
965
  }
944
966
  }), Ms = { class: "sq-checkbox-group sq-selection-group" }, Es = "sq-checkbox-group", As = /* @__PURE__ */ L({
@@ -955,7 +977,7 @@ const $s = ["disabled", "form", "type"], ks = "sq-button", Y = /* @__PURE__ */ L
955
977
  },
956
978
  emits: ["change", "update:value"],
957
979
  setup(d, { emit: o }) {
958
- const { nextId: n } = Ee(), e = o, t = d, s = R(t.value ?? []), l = b(() => t.name ?? `sq-checkbox-${n()}`);
980
+ const { nextId: n } = Ae(), e = o, t = d, s = R(t.value ?? []), l = b(() => t.name ?? `sq-checkbox-${n()}`);
959
981
  qe(
960
982
  ft,
961
983
  R({
@@ -969,20 +991,20 @@ const $s = ["disabled", "form", "type"], ks = "sq-button", Y = /* @__PURE__ */ L
969
991
  })
970
992
  ), oe(
971
993
  () => t.value,
972
- (i) => {
973
- const a = i || [], r = [.../* @__PURE__ */ new Set([...a, s.value])];
974
- r.length === a.length && r.length === s.value.length || (s.value = a);
994
+ (r) => {
995
+ const a = r || [], i = [.../* @__PURE__ */ new Set([...a, s.value])];
996
+ i.length === a.length && i.length === s.value.length || (s.value = a);
975
997
  }
976
998
  );
977
- function u(i) {
978
- s.value.includes(i) ? s.value = s.value.filter((a) => a !== i) : s.value.push(i), e("change", ke(s.value)), e("update:value", ke(s.value));
999
+ function u(r) {
1000
+ s.value.includes(r) ? s.value = s.value.filter((a) => a !== r) : s.value.push(r), e("change", ke(s.value)), e("update:value", ke(s.value));
979
1001
  }
980
- return (i, a) => (v(), $("div", Ms, [
981
- U(i.$slots, "default", {}, () => [
982
- (v(!0), $(ee, null, de(t.items, (r, f) => (v(), S(c(dt), {
1002
+ return (r, a) => (v(), _("div", Ms, [
1003
+ F(r.$slots, "default", {}, () => [
1004
+ (v(!0), _(te, null, de(t.items, (i, f) => (v(), C(c(dt), {
983
1005
  key: f,
984
- label: r.toString(),
985
- value: r
1006
+ label: i.toString(),
1007
+ value: i
986
1008
  }, null, 8, ["label", "value"]))), 128))
987
1009
  ])
988
1010
  ]));
@@ -1005,7 +1027,7 @@ const $s = ["disabled", "form", "type"], ks = "sq-button", Y = /* @__PURE__ */ L
1005
1027
  });
1006
1028
  }), he(() => {
1007
1029
  n();
1008
- }), (s, l) => (v(), $("div", {
1030
+ }), (s, l) => (v(), _("div", {
1009
1031
  class: "sq-code",
1010
1032
  innerHTML: t.value
1011
1033
  }, null, 8, Ds));
@@ -1026,14 +1048,14 @@ const $s = ["disabled", "form", "type"], ks = "sq-button", Y = /* @__PURE__ */ L
1026
1048
  setup(d, { emit: o }) {
1027
1049
  const { nextZIndex: n } = He(), e = Ne();
1028
1050
  let t;
1029
- const s = o, l = d, u = R(0), i = R(!1), a = le(d, "visible");
1030
- i.value = a.value, oe(a, (h) => {
1051
+ const s = o, l = d, u = R(0), r = R(!1), a = le(d, "visible");
1052
+ r.value = a.value, oe(a, (h) => {
1031
1053
  const p = document.scrollingElement;
1032
- h ? (t = p.style.overflow, p.style.overflow = "hidden", u.value = n(), i.value = !0, document.addEventListener("keydown", r)) : (p.style.overflow = t, document.removeEventListener("keydown", r));
1054
+ h ? (t = p.style.overflow, p.style.overflow = "hidden", u.value = n(), r.value = !0, document.addEventListener("keydown", i)) : (p.style.overflow = t, document.removeEventListener("keydown", i));
1033
1055
  }), he(() => {
1034
- document.removeEventListener("keydown", r);
1056
+ document.removeEventListener("keydown", i);
1035
1057
  });
1036
- function r(h) {
1058
+ function i(h) {
1037
1059
  h.key === "Escape" && l.keyboard && g();
1038
1060
  }
1039
1061
  function f() {
@@ -1050,24 +1072,24 @@ const $s = ["disabled", "form", "type"], ks = "sq-button", Y = /* @__PURE__ */ L
1050
1072
  }).catch(() => {
1051
1073
  }) : h && (a.value = !1);
1052
1074
  }
1053
- return (h, p) => (v(), S(et, { to: "body" }, [
1075
+ return (h, p) => (v(), C(et, { to: "body" }, [
1054
1076
  T(be, {
1055
1077
  name: "sq-fade",
1056
- onBeforeEnter: p[0] || (p[0] = (x) => s("open")),
1057
- onAfterEnter: p[1] || (p[1] = (x) => s("opened")),
1058
- onBeforeLeave: p[2] || (p[2] = (x) => s("close")),
1059
- onAfterLeave: p[3] || (p[3] = (x) => s("closed"))
1078
+ onBeforeEnter: p[0] || (p[0] = ($) => s("open")),
1079
+ onAfterEnter: p[1] || (p[1] = ($) => s("opened")),
1080
+ onBeforeLeave: p[2] || (p[2] = ($) => s("close")),
1081
+ onAfterLeave: p[3] || (p[3] = ($) => s("closed"))
1060
1082
  }, {
1061
- default: I(() => [
1062
- i.value ? ae((v(), $("div", fe({
1083
+ default: A(() => [
1084
+ r.value ? ae((v(), _("div", fe({
1063
1085
  key: 0,
1064
1086
  class: "sq-mask",
1065
1087
  style: { zIndex: u.value }
1066
1088
  }, c(e), { onClick: f }), [
1067
- U(h.$slots, "default")
1089
+ F(h.$slots, "default")
1068
1090
  ], 16)), [
1069
1091
  [ve, a.value]
1070
- ]) : M("", !0)
1092
+ ]) : D("", !0)
1071
1093
  ]),
1072
1094
  _: 3
1073
1095
  })
@@ -1079,8 +1101,8 @@ const $s = ["disabled", "form", "type"], ks = "sq-button", Y = /* @__PURE__ */ L
1079
1101
  }, Fs = ["textContent"], Vs = { class: "sq-dialog-body" }, Hs = {
1080
1102
  key: 1,
1081
1103
  class: "sq-dialog-footer"
1082
- }, Ws = "sq-dialog", js = /* @__PURE__ */ L({
1083
- name: Ws,
1104
+ }, js = "sq-dialog", Ws = /* @__PURE__ */ L({
1105
+ name: js,
1084
1106
  inheritAttrs: !1,
1085
1107
  __name: "dialog",
1086
1108
  props: /* @__PURE__ */ G({
@@ -1102,9 +1124,9 @@ const $s = ["disabled", "form", "type"], ks = "sq-button", Y = /* @__PURE__ */ L
1102
1124
  }),
1103
1125
  emits: /* @__PURE__ */ G(["open", "opened", "close", "closed"], ["update:visible"]),
1104
1126
  setup(d, { emit: o }) {
1105
- const n = Re(), e = Ne(), t = o, s = d, l = R(!1), u = R(!1), i = le(d, "visible"), a = b(() => !!s.title || !!n.header), r = b(() => {
1106
- const P = [];
1107
- return s.type && P.push(`is-${s.type}`), a.value && P.push("has-header"), [P];
1127
+ const n = Le(), e = Ne(), t = o, s = d, l = R(!1), u = R(!1), r = le(d, "visible"), a = b(() => !!s.title || !!n.header), i = b(() => {
1128
+ const M = [];
1129
+ return s.type && M.push(`is-${s.type}`), a.value && M.push("has-header"), [M];
1108
1130
  }), f = b(() => s.type ? Fe[s.type] : void 0), g = b(() => ({
1109
1131
  type: s.type ?? "primary",
1110
1132
  loading: l.value && u.value,
@@ -1117,74 +1139,74 @@ const $s = ["disabled", "form", "type"], ks = "sq-button", Y = /* @__PURE__ */ L
1117
1139
  disabled: l.value && u.value,
1118
1140
  ...s.cancelButtonProps
1119
1141
  })), p = b(
1120
- () => g.value.loading || h.value.loading || !i.value
1142
+ () => g.value.loading || h.value.loading || !r.value
1121
1143
  );
1122
- function x(P) {
1144
+ function $(M) {
1123
1145
  if (p.value) return !1;
1124
- if (typeof P != "function") return !0;
1125
- const N = P();
1126
- return N instanceof Promise ? (l.value = !0, N.finally(() => {
1146
+ if (typeof M != "function") return !0;
1147
+ const I = M();
1148
+ return I instanceof Promise ? (l.value = !0, I.finally(() => {
1127
1149
  l.value = !1;
1128
- })) : N;
1150
+ })) : I;
1129
1151
  }
1130
- async function q() {
1152
+ async function z() {
1131
1153
  if (p.value) return !1;
1132
- u.value = !1, await x(s.beforeClose) && (i.value = !1);
1154
+ u.value = !1, await $(s.beforeClose) && (r.value = !1);
1133
1155
  }
1134
- async function z() {
1135
- u.value = !0, await x(s.onOk) && (i.value = !1);
1156
+ async function B() {
1157
+ u.value = !0, await $(s.onOk) && (r.value = !1);
1136
1158
  }
1137
- return (P, N) => (v(), S(c(pt), {
1138
- visible: i.value,
1139
- "onUpdate:visible": N[0] || (N[0] = (H) => i.value = H),
1159
+ return (M, I) => (v(), C(c(pt), {
1160
+ visible: r.value,
1161
+ "onUpdate:visible": I[0] || (I[0] = (j) => r.value = j),
1140
1162
  "mask-closeable": s.maskCloseable,
1141
1163
  keyboard: s.keyboard,
1142
- "before-close": () => x(s.beforeClose),
1143
- onOpen: N[1] || (N[1] = (H) => t("open")),
1144
- onOpened: N[2] || (N[2] = (H) => t("opened")),
1145
- onClose: N[3] || (N[3] = (H) => t("close")),
1146
- onClosed: N[4] || (N[4] = (H) => t("closed"))
1164
+ "before-close": () => $(s.beforeClose),
1165
+ onOpen: I[1] || (I[1] = (j) => t("open")),
1166
+ onOpened: I[2] || (I[2] = (j) => t("opened")),
1167
+ onClose: I[3] || (I[3] = (j) => t("close")),
1168
+ onClosed: I[4] || (I[4] = (j) => t("closed"))
1147
1169
  }, {
1148
- default: I(() => [
1149
- E("div", {
1150
- class: V(["sq-dialog", [r.value, c(e).class]]),
1170
+ default: A(() => [
1171
+ O("div", {
1172
+ class: V(["sq-dialog", [i.value, c(e).class]]),
1151
1173
  style: K(c(e).style)
1152
1174
  }, [
1153
- a.value ? (v(), $("div", Us, [
1154
- f.value ? (v(), S(ce(f.value), {
1175
+ a.value ? (v(), _("div", Us, [
1176
+ f.value ? (v(), C(ce(f.value), {
1155
1177
  key: 0,
1156
1178
  class: "sq-dialog-header-icon"
1157
- })) : M("", !0),
1158
- U(P.$slots, "header", {}, () => [
1159
- E("span", {
1179
+ })) : D("", !0),
1180
+ F(M.$slots, "header", {}, () => [
1181
+ O("span", {
1160
1182
  class: "sq-dialog-header-title",
1161
1183
  textContent: X(s.title)
1162
1184
  }, null, 8, Fs)
1163
1185
  ]),
1164
1186
  T(c(Ue), {
1165
1187
  class: "sq-dialog-close",
1166
- onClick: q
1188
+ onClick: z
1167
1189
  })
1168
- ])) : M("", !0),
1169
- E("div", Vs, [
1170
- U(P.$slots, "default")
1190
+ ])) : D("", !0),
1191
+ O("div", Vs, [
1192
+ F(M.$slots, "default")
1171
1193
  ]),
1172
- s.footer ? (v(), $("div", Hs, [
1173
- U(P.$slots, "footer", {}, () => [
1174
- T(c(Y), fe(h.value, { onClick: q }), {
1175
- default: I(() => [
1176
- Te(X(s.cancelText), 1)
1194
+ s.footer ? (v(), _("div", Hs, [
1195
+ F(M.$slots, "footer", {}, () => [
1196
+ T(c(Y), fe(h.value, { onClick: z }), {
1197
+ default: A(() => [
1198
+ Re(X(s.cancelText), 1)
1177
1199
  ]),
1178
1200
  _: 1
1179
1201
  }, 16),
1180
- T(c(Y), fe(g.value, { onClick: z }), {
1181
- default: I(() => [
1182
- Te(X(s.okText), 1)
1202
+ T(c(Y), fe(g.value, { onClick: B }), {
1203
+ default: A(() => [
1204
+ Re(X(s.okText), 1)
1183
1205
  ]),
1184
1206
  _: 1
1185
1207
  }, 16)
1186
1208
  ])
1187
- ])) : M("", !0)
1209
+ ])) : D("", !0)
1188
1210
  ], 6)
1189
1211
  ]),
1190
1212
  _: 3
@@ -1201,24 +1223,24 @@ const $s = ["disabled", "form", "type"], ks = "sq-button", Y = /* @__PURE__ */ L
1201
1223
  size: {}
1202
1224
  },
1203
1225
  setup(d) {
1204
- const o = Re(), n = d, e = b(() => {
1226
+ const o = Le(), n = d, e = b(() => {
1205
1227
  const t = [`sq-divider--${n.direction}`];
1206
1228
  return ["none", "solid", "dotted", "dashed"].includes(n.variant) && t.push("is-thin"), o.default && n.direction !== "vertical" && t.push(`text-${n.orientation}`), t;
1207
1229
  });
1208
- return (t, s) => (v(), $("div", {
1230
+ return (t, s) => (v(), _("div", {
1209
1231
  class: V(["sq-divider", e.value]),
1210
1232
  style: K({ "--divider-line-type": n.variant })
1211
1233
  }, [
1212
- c(o).default && n.direction !== "vertical" ? (v(), S(c(ge), {
1234
+ c(o).default && n.direction !== "vertical" ? (v(), C(c(ge), {
1213
1235
  key: 0,
1214
1236
  ellipsis: n.ellipsis,
1215
1237
  size: n.size
1216
1238
  }, {
1217
- default: I(() => [
1218
- U(t.$slots, "default")
1239
+ default: A(() => [
1240
+ F(t.$slots, "default")
1219
1241
  ]),
1220
1242
  _: 3
1221
- }, 8, ["ellipsis", "size"])) : M("", !0)
1243
+ }, 8, ["ellipsis", "size"])) : D("", !0)
1222
1244
  ], 6));
1223
1245
  }
1224
1246
  }), Ys = "sq-editor-bold", Ks = /* @__PURE__ */ L({
@@ -1236,23 +1258,23 @@ const $s = ["disabled", "form", "type"], ks = "sq-button", Y = /* @__PURE__ */ L
1236
1258
  const e = n, t = d;
1237
1259
  function s() {
1238
1260
  if (t.disabled) return;
1239
- const l = [...t.rows], u = l[t.selectedRow], i = u.substring(0, t.selectInfo.startOfRow), a = u.substring(t.selectInfo.endOfRow);
1240
- let r = t.selectedVal ?? "";
1241
- if (r.match(/\*\*\*.*?\*\*\*/)) {
1242
- r = r.replaceAll("***", "*"), l[t.selectedRow] = `${i}${r}${a}`, e("updateText", l, 0, -4);
1261
+ const l = [...t.rows], u = l[t.selectedRow], r = u.substring(0, t.selectInfo.startOfRow), a = u.substring(t.selectInfo.endOfRow);
1262
+ let i = t.selectedVal ?? "";
1263
+ if (i.match(/\*\*\*.*?\*\*\*/)) {
1264
+ i = i.replaceAll("***", "*"), l[t.selectedRow] = `${r}${i}${a}`, e("updateText", l, 0, -4);
1243
1265
  return;
1244
1266
  }
1245
- if (r.match(/\*\*.*?\*\*/)) {
1246
- r = r.replaceAll("**", ""), l[t.selectedRow] = `${i}${r}${a}`, e("updateText", l, 0, -4);
1267
+ if (i.match(/\*\*.*?\*\*/)) {
1268
+ i = i.replaceAll("**", ""), l[t.selectedRow] = `${r}${i}${a}`, e("updateText", l, 0, -4);
1247
1269
  return;
1248
1270
  }
1249
- r = `**${r}**`, l[t.selectedRow] = `${i}${r}${a}`, e("updateText", l, 0, 4);
1271
+ i = `**${i}**`, l[t.selectedRow] = `${r}${i}${a}`, e("updateText", l, 0, 4);
1250
1272
  }
1251
- return o({ setBold: s }), (l, u) => (v(), S(c(re), {
1273
+ return o({ setBold: s }), (l, u) => (v(), C(c(re), {
1252
1274
  tip: "加粗 ( Ctrl + B )",
1253
1275
  disabled: t.disabled
1254
1276
  }, {
1255
- default: I(() => [
1277
+ default: A(() => [
1256
1278
  T(c(Y), {
1257
1279
  text: "",
1258
1280
  icon: c(Ct),
@@ -1278,31 +1300,31 @@ const $s = ["disabled", "form", "type"], ks = "sq-button", Y = /* @__PURE__ */ L
1278
1300
  const e = n, t = d;
1279
1301
  function s() {
1280
1302
  if (t.disabled) return;
1281
- const l = [...t.rows], u = l[t.selectedRow], i = u.substring(0, t.selectInfo.startOfRow), a = u.substring(t.selectInfo.endOfRow);
1282
- let r = t.selectedVal ?? "";
1283
- if (r.match(/\*\*\*.*?\*\*\*/)) {
1284
- r = r.replaceAll("***", "**"), l[t.selectedRow] = `${i}${r}${a}`, e("updateText", l, 0, -2);
1303
+ const l = [...t.rows], u = l[t.selectedRow], r = u.substring(0, t.selectInfo.startOfRow), a = u.substring(t.selectInfo.endOfRow);
1304
+ let i = t.selectedVal ?? "";
1305
+ if (i.match(/\*\*\*.*?\*\*\*/)) {
1306
+ i = i.replaceAll("***", "**"), l[t.selectedRow] = `${r}${i}${a}`, e("updateText", l, 0, -2);
1285
1307
  return;
1286
1308
  }
1287
- const g = r.match(/\*\*.*?\*\*/), p = ((g == null ? void 0 : g[0]) ?? "").replaceAll("**", "").match(/\*.*?\*/);
1309
+ const g = i.match(/\*\*.*?\*\*/), p = ((g == null ? void 0 : g[0]) ?? "").replaceAll("**", "").match(/\*.*?\*/);
1288
1310
  if (g && !p) {
1289
- r = `*${r}*`, l[t.selectedRow] = `${i}${r}${a}`, e("updateText", l, 0, 2);
1311
+ i = `*${i}*`, l[t.selectedRow] = `${r}${i}${a}`, e("updateText", l, 0, 2);
1290
1312
  return;
1291
1313
  } else if (p) {
1292
- r = r.replaceAll("**", "[B]").replaceAll("*", "").replaceAll("[B]", "**"), l[t.selectedRow] = `${i}${r}${a}`, e("updateText", l, 0, -2);
1314
+ i = i.replaceAll("**", "[B]").replaceAll("*", "").replaceAll("[B]", "**"), l[t.selectedRow] = `${r}${i}${a}`, e("updateText", l, 0, -2);
1293
1315
  return;
1294
1316
  }
1295
- if (r.match(/\*.*?\*/)) {
1296
- r = r.replaceAll("*", ""), l[t.selectedRow] = `${i}${r}${a}`, e("updateText", l, 0, -2);
1317
+ if (i.match(/\*.*?\*/)) {
1318
+ i = i.replaceAll("*", ""), l[t.selectedRow] = `${r}${i}${a}`, e("updateText", l, 0, -2);
1297
1319
  return;
1298
1320
  }
1299
- r = `*${r}*`, l[t.selectedRow] = `${i}${r}${a}`, e("updateText", l, 0, 2);
1321
+ i = `*${i}*`, l[t.selectedRow] = `${r}${i}${a}`, e("updateText", l, 0, 2);
1300
1322
  }
1301
- return o({ setItalic: s }), (l, u) => (v(), S(c(re), {
1323
+ return o({ setItalic: s }), (l, u) => (v(), C(c(re), {
1302
1324
  tip: "斜体 ( Ctrl + I )",
1303
1325
  disabled: t.disabled
1304
1326
  }, {
1305
- default: I(() => [
1327
+ default: A(() => [
1306
1328
  T(c(Y), {
1307
1329
  text: "",
1308
1330
  icon: c(St),
@@ -1329,22 +1351,22 @@ const $s = ["disabled", "form", "type"], ks = "sq-button", Y = /* @__PURE__ */ L
1329
1351
  function s() {
1330
1352
  var p;
1331
1353
  if (t.disabled) return;
1332
- const l = [...t.rows], u = l[t.selectedRow], i = u.substring(0, t.selectInfo.startOfRow), a = u.substring(t.selectInfo.endOfRow), r = /<u\b.*?>/;
1354
+ const l = [...t.rows], u = l[t.selectedRow], r = u.substring(0, t.selectInfo.startOfRow), a = u.substring(t.selectInfo.endOfRow), i = /<u\b.*?>/;
1333
1355
  let f = t.selectedVal ?? "";
1334
- const g = ((p = f.match(r)) == null ? void 0 : p[0]) ?? "";
1356
+ const g = ((p = f.match(i)) == null ? void 0 : p[0]) ?? "";
1335
1357
  if (f.match(/<u\b.*?>.*?<\/u>/)) {
1336
1358
  f = f.replace(g, "").replace("</u>", "");
1337
- const x = g.length + 4;
1338
- l[t.selectedRow] = `${i}${f}${a}`, e("updateText", l, 0, -x);
1359
+ const $ = g.length + 4;
1360
+ l[t.selectedRow] = `${r}${f}${a}`, e("updateText", l, 0, -$);
1339
1361
  return;
1340
1362
  }
1341
- f = `<u>${f}</u>`, l[t.selectedRow] = `${i}${f}${a}`, e("updateText", l, 0, 7);
1363
+ f = `<u>${f}</u>`, l[t.selectedRow] = `${r}${f}${a}`, e("updateText", l, 0, 7);
1342
1364
  }
1343
- return o({ setUnderline: s }), (l, u) => (v(), S(c(re), {
1365
+ return o({ setUnderline: s }), (l, u) => (v(), C(c(re), {
1344
1366
  tip: "下划线 ( Ctrl + U )",
1345
1367
  disabled: t.disabled
1346
1368
  }, {
1347
- default: I(() => [
1369
+ default: A(() => [
1348
1370
  T(c(Y), {
1349
1371
  text: "",
1350
1372
  icon: c(Bt),
@@ -1370,19 +1392,19 @@ const $s = ["disabled", "form", "type"], ks = "sq-button", Y = /* @__PURE__ */ L
1370
1392
  const n = o, e = d;
1371
1393
  function t() {
1372
1394
  if (e.disabled) return;
1373
- const s = [...e.rows], l = s[e.selectedRow], u = l.substring(0, e.selectInfo.startOfRow), i = l.substring(e.selectInfo.endOfRow);
1395
+ const s = [...e.rows], l = s[e.selectedRow], u = l.substring(0, e.selectInfo.startOfRow), r = l.substring(e.selectInfo.endOfRow);
1374
1396
  let a = e.selectedVal ?? "";
1375
1397
  if (a.match(/\~\~.*?\~\~/)) {
1376
- a = a.replaceAll("~~", ""), s[e.selectedRow] = `${u}${a}${i}`, n("updateText", s, 0, -4);
1398
+ a = a.replaceAll("~~", ""), s[e.selectedRow] = `${u}${a}${r}`, n("updateText", s, 0, -4);
1377
1399
  return;
1378
1400
  }
1379
- a = `~~${a}~~`, s[e.selectedRow] = `${u}${a}${i}`, n("updateText", s, 0, 4);
1401
+ a = `~~${a}~~`, s[e.selectedRow] = `${u}${a}${r}`, n("updateText", s, 0, 4);
1380
1402
  }
1381
- return (s, l) => (v(), S(c(re), {
1403
+ return (s, l) => (v(), C(c(re), {
1382
1404
  tip: "删除线",
1383
1405
  disabled: e.disabled
1384
1406
  }, {
1385
- default: I(() => [
1407
+ default: A(() => [
1386
1408
  T(c(Y), {
1387
1409
  text: "",
1388
1410
  icon: c(zt),
@@ -1409,22 +1431,22 @@ const $s = ["disabled", "form", "type"], ks = "sq-button", Y = /* @__PURE__ */ L
1409
1431
  function t() {
1410
1432
  var h;
1411
1433
  if (e.disabled) return;
1412
- const s = [...e.rows], l = s[e.selectedRow], u = l.substring(0, e.selectInfo.startOfRow), i = l.substring(e.selectInfo.endOfRow), a = /<blur\b.*?>/;
1413
- let r = e.selectedVal ?? "";
1414
- const f = ((h = r.match(a)) == null ? void 0 : h[0]) ?? "";
1415
- if (r.match(/<blur\b.*?>.*?<\/blur>/)) {
1416
- r = r.replace(f, "").replace("</blur>", "");
1434
+ const s = [...e.rows], l = s[e.selectedRow], u = l.substring(0, e.selectInfo.startOfRow), r = l.substring(e.selectInfo.endOfRow), a = /<blur\b.*?>/;
1435
+ let i = e.selectedVal ?? "";
1436
+ const f = ((h = i.match(a)) == null ? void 0 : h[0]) ?? "";
1437
+ if (i.match(/<blur\b.*?>.*?<\/blur>/)) {
1438
+ i = i.replace(f, "").replace("</blur>", "");
1417
1439
  const p = f.length + 7;
1418
- s[e.selectedRow] = `${u}${r}${i}`, n("updateText", s, 0, -p);
1440
+ s[e.selectedRow] = `${u}${i}${r}`, n("updateText", s, 0, -p);
1419
1441
  return;
1420
1442
  }
1421
- r = `<blur>${r}</blur>`, s[e.selectedRow] = `${u}${r}${i}`, n("updateText", s, 0, 13);
1443
+ i = `<blur>${i}</blur>`, s[e.selectedRow] = `${u}${i}${r}`, n("updateText", s, 0, 13);
1422
1444
  }
1423
- return (s, l) => (v(), S(c(re), {
1445
+ return (s, l) => (v(), C(c(re), {
1424
1446
  tip: "模糊块",
1425
1447
  disabled: e.disabled
1426
1448
  }, {
1427
- default: I(() => [
1449
+ default: A(() => [
1428
1450
  T(c(Y), {
1429
1451
  text: "",
1430
1452
  icon: c(lt),
@@ -1449,32 +1471,32 @@ const $s = ["disabled", "form", "type"], ks = "sq-button", Y = /* @__PURE__ */ L
1449
1471
  setup(d, { emit: o }) {
1450
1472
  const n = o, e = d;
1451
1473
  function t() {
1452
- const i = e.selectedRow, a = [...e.rows], r = a[i];
1453
- if (s(r)) {
1454
- a[i] = r.replace("- ", ""), n("updateText", a, -2, -2);
1474
+ const r = e.selectedRow, a = [...e.rows], i = a[r];
1475
+ if (s(i)) {
1476
+ a[r] = i.replace("- ", ""), n("updateText", a, -2, -2);
1455
1477
  return;
1456
1478
  }
1457
- if (l(r)) {
1458
- const f = u(r), g = 2 - f.length;
1459
- a[i] = r.replace(f, "- "), n("updateText", a, g, g);
1479
+ if (l(i)) {
1480
+ const f = u(i), g = 2 - f.length;
1481
+ a[r] = i.replace(f, "- "), n("updateText", a, g, g);
1460
1482
  return;
1461
1483
  }
1462
- a[i] = `- ${r}`, n("updateText", a, 2, 2);
1484
+ a[r] = `- ${i}`, n("updateText", a, 2, 2);
1463
1485
  }
1464
- function s(i) {
1465
- return i.replace(" ", "").startsWith("- ");
1486
+ function s(r) {
1487
+ return r.replace(" ", "").startsWith("- ");
1466
1488
  }
1467
- function l(i) {
1468
- return /^\d+\.\s+/.test(i.replace(" ", ""));
1489
+ function l(r) {
1490
+ return /^\d+\.\s+/.test(r.replace(" ", ""));
1469
1491
  }
1470
- function u(i) {
1471
- return i.replace(" ", "").match(/^\d+\.\s/)[0];
1492
+ function u(r) {
1493
+ return r.replace(" ", "").match(/^\d+\.\s/)[0];
1472
1494
  }
1473
- return (i, a) => (v(), S(c(re), {
1495
+ return (r, a) => (v(), C(c(re), {
1474
1496
  tip: "无序列表",
1475
1497
  disabled: e.disabled
1476
1498
  }, {
1477
- default: I(() => [
1499
+ default: A(() => [
1478
1500
  T(c(Y), {
1479
1501
  text: "",
1480
1502
  icon: c(Tt),
@@ -1499,37 +1521,37 @@ const $s = ["disabled", "form", "type"], ks = "sq-button", Y = /* @__PURE__ */ L
1499
1521
  setup(d, { emit: o }) {
1500
1522
  const n = o, e = d;
1501
1523
  function t() {
1502
- const i = e.selectedRow, a = [...e.rows], r = a[i], f = i > 0 ? a[i - 1] : "";
1524
+ const r = e.selectedRow, a = [...e.rows], i = a[r], f = r > 0 ? a[r - 1] : "";
1503
1525
  let g = 1;
1504
- if (s(r)) {
1526
+ if (s(i)) {
1505
1527
  f && l(f) && (g = parseInt(u(f)) + 1);
1506
- const x = `${g}. `, q = x.length - 2;
1507
- a[i] = r.replace("- ", x), n("updateText", a, q, q);
1528
+ const $ = `${g}. `, z = $.length - 2;
1529
+ a[r] = i.replace("- ", $), n("updateText", a, z, z);
1508
1530
  return;
1509
1531
  }
1510
- if (l(r)) {
1511
- const x = u(r), q = -x.length;
1512
- a[i] = r.replace(x, ""), n("updateText", a, q, q);
1532
+ if (l(i)) {
1533
+ const $ = u(i), z = -$.length;
1534
+ a[r] = i.replace($, ""), n("updateText", a, z, z);
1513
1535
  return;
1514
1536
  }
1515
1537
  f && l(f) && (g = parseInt(u(f)) + 1);
1516
1538
  const h = `${g}. `, p = h.length;
1517
- a[i] = `${h}${r}`, n("updateText", a, p, p);
1539
+ a[r] = `${h}${i}`, n("updateText", a, p, p);
1518
1540
  }
1519
- function s(i) {
1520
- return i.replace(" ", "").startsWith("- ");
1541
+ function s(r) {
1542
+ return r.replace(" ", "").startsWith("- ");
1521
1543
  }
1522
- function l(i) {
1523
- return /^\d+\.\s+/.test(i.replace(" ", ""));
1544
+ function l(r) {
1545
+ return /^\d+\.\s+/.test(r.replace(" ", ""));
1524
1546
  }
1525
- function u(i) {
1526
- return i.replace(" ", "").match(/^\d+\.\s/)[0];
1547
+ function u(r) {
1548
+ return r.replace(" ", "").match(/^\d+\.\s/)[0];
1527
1549
  }
1528
- return (i, a) => (v(), S(c(re), {
1550
+ return (r, a) => (v(), C(c(re), {
1529
1551
  tip: "有序列表",
1530
1552
  disabled: e.disabled
1531
1553
  }, {
1532
- default: I(() => [
1554
+ default: A(() => [
1533
1555
  T(c(Y), {
1534
1556
  text: "",
1535
1557
  icon: c(Rt),
@@ -1569,105 +1591,105 @@ const $s = ["disabled", "form", "type"], ks = "sq-button", Y = /* @__PURE__ */ L
1569
1591
  }
1570
1592
  ];
1571
1593
  let n;
1572
- const e = d, t = R("edit"), s = R([]), l = R(!1), u = R(""), i = R(), a = R({}), r = ue(null), f = ue(null), g = ue(null), h = ue(
1594
+ const e = d, t = R("edit"), s = R([]), l = R(!1), u = R(""), r = R(), a = R({}), i = ue(null), f = ue(null), g = ue(null), h = ue(
1573
1595
  null
1574
- ), p = le(d, "value"), x = b(() => {
1596
+ ), p = le(d, "value"), $ = b(() => {
1575
1597
  const k = [];
1576
1598
  return e.size !== "md" && k.push(`sq-editor--${e.size}`), e.round && k.push("is-round"), k;
1577
- }), q = b(
1599
+ }), z = b(
1578
1600
  () => u.value.length && !u.value.includes(`
1579
1601
  `) && u.value !== " " && !e.disabled
1580
- ), z = b(
1581
- () => i.value !== void 0 && !u.value.length && !e.disabled
1582
- ), P = b(
1602
+ ), B = b(
1603
+ () => r.value !== void 0 && !u.value.length && !e.disabled
1604
+ ), M = b(
1583
1605
  () => typeof e.beforePreview == "function" ? e.beforePreview(p.value) : p.value
1584
1606
  );
1585
1607
  ie(() => {
1586
- document.addEventListener("selectionchange", J), document.addEventListener("click", Q);
1608
+ document.addEventListener("selectionchange", J), document.addEventListener("click", ee);
1587
1609
  }), he(() => {
1588
- document.removeEventListener("selectionchange", J), document.removeEventListener("click", Q);
1610
+ document.removeEventListener("selectionchange", J), document.removeEventListener("click", ee);
1589
1611
  });
1590
- function N(k) {
1591
- k === "edit" && Le(() => {
1592
- var _;
1593
- (_ = r.value) == null || _.focus();
1612
+ function I(k) {
1613
+ k === "edit" && Ie(() => {
1614
+ var x;
1615
+ (x = i.value) == null || x.focus();
1594
1616
  });
1595
1617
  }
1596
- function H(k) {
1597
- var O, W, A;
1598
- const _ = s.value[i.value], B = (_ == null ? void 0 : _.replace(" ", "")) ?? "";
1618
+ function j(k) {
1619
+ var N, H, E;
1620
+ const x = s.value[r.value], S = (x == null ? void 0 : x.replace(" ", "")) ?? "";
1599
1621
  if (k.key === "Tab") {
1600
1622
  k.preventDefault();
1601
- const F = _.substring(0, a.value.startOfRow), C = _.substring(a.value.endOfRow);
1602
- s.value[i.value] = `${F} ${C}`, m(s.value, 1, 1);
1623
+ const U = x.substring(0, a.value.startOfRow), q = x.substring(a.value.endOfRow);
1624
+ s.value[r.value] = `${U} ${q}`, m(s.value, 1, 1);
1603
1625
  return;
1604
1626
  }
1605
1627
  if (k.ctrlKey)
1606
1628
  switch (k.key.toUpperCase()) {
1607
1629
  case "B":
1608
- (O = f.value) == null || O.setBold();
1630
+ (N = f.value) == null || N.setBold();
1609
1631
  return;
1610
1632
  case "I":
1611
- (W = g.value) == null || W.setItalic();
1633
+ (H = g.value) == null || H.setItalic();
1612
1634
  return;
1613
1635
  case "U":
1614
- k.preventDefault(), (A = h.value) == null || A.setUnderline();
1636
+ k.preventDefault(), (E = h.value) == null || E.setUnderline();
1615
1637
  return;
1616
1638
  }
1617
1639
  if (k.key === "Enter") {
1618
- if (w(_)) {
1640
+ if (w(x)) {
1619
1641
  k.preventDefault();
1620
- const F = _.substring(0, _.indexOf("- "));
1621
- if (B !== "- ") {
1622
- const D = 3 + F.length;
1623
- s.value[i.value] = `${_}
1624
- ${F}- `, te(k.target), m(s.value, D, D);
1642
+ const U = x.substring(0, x.indexOf("- "));
1643
+ if (S !== "- ") {
1644
+ const P = 3 + U.length;
1645
+ s.value[r.value] = `${x}
1646
+ ${U}- `, se(k.target), m(s.value, P, P);
1625
1647
  return;
1626
1648
  }
1627
- const C = 2 + F.length;
1628
- s.value[i.value] = _.substring(C), m(s.value, -C, -C);
1649
+ const q = 2 + U.length;
1650
+ s.value[r.value] = x.substring(q), m(s.value, -q, -q);
1629
1651
  return;
1630
1652
  }
1631
- if (y(_)) {
1653
+ if (y(x)) {
1632
1654
  k.preventDefault();
1633
- const F = B.match(/^\d+\.\s/)[0], D = `${parseInt(F) + 1}. `, j = _.substring(0, _.indexOf(F));
1634
- if (B !== F) {
1635
- const ye = D.length + j.length + 1;
1636
- s.value[i.value] = `${_}
1637
- ${j}${D}`, te(k.target), m(s.value, ye, ye);
1655
+ const U = S.match(/^\d+\.\s/)[0], P = `${parseInt(U) + 1}. `, W = x.substring(0, x.indexOf(U));
1656
+ if (S !== U) {
1657
+ const ye = P.length + W.length + 1;
1658
+ s.value[r.value] = `${x}
1659
+ ${W}${P}`, se(k.target), m(s.value, ye, ye);
1638
1660
  return;
1639
1661
  }
1640
- const se = F.length + j.length;
1641
- s.value[i.value] = _.substring(se), m(s.value, -se, -se);
1662
+ const Q = U.length + W.length;
1663
+ s.value[r.value] = x.substring(Q), m(s.value, -Q, -Q);
1642
1664
  return;
1643
1665
  }
1644
1666
  }
1645
1667
  }
1646
1668
  function J(k) {
1647
- var B;
1648
- const _ = window.getSelection();
1649
- (_ == null ? void 0 : _.focusNode) === ((B = r.value) == null ? void 0 : B.$el) && (n = k.target, !((n == null ? void 0 : n.selectionStart) === void 0 || (n == null ? void 0 : n.selectionEnd) === void 0) && (a.value.start = (n == null ? void 0 : n.selectionStart) ?? 0, a.value.end = (n == null ? void 0 : n.selectionEnd) ?? 0, u.value = p.value.substring(
1669
+ var S;
1670
+ const x = window.getSelection();
1671
+ (x == null ? void 0 : x.focusNode) === ((S = i.value) == null ? void 0 : S.$el) && (n = k.target, !((n == null ? void 0 : n.selectionStart) === void 0 || (n == null ? void 0 : n.selectionEnd) === void 0) && (a.value.start = (n == null ? void 0 : n.selectionStart) ?? 0, a.value.end = (n == null ? void 0 : n.selectionEnd) ?? 0, u.value = p.value.substring(
1650
1672
  a.value.start,
1651
1673
  a.value.end
1652
1674
  ), Z()));
1653
1675
  }
1654
- function Q() {
1655
- u.value = "", i.value = void 0;
1676
+ function ee() {
1677
+ u.value = "", r.value = void 0;
1656
1678
  }
1657
- function te(k) {
1658
- const _ = k.selectionStart, O = p.value.substring(0, _ ?? 0).split(`
1659
- `).length + 1, W = k.scrollTop, A = window.getComputedStyle(k), F = parseFloat(A.lineHeight), C = parseFloat(A.height), j = parseFloat(A.paddingBlockStart) + F * O;
1660
- C + W > j || requestAnimationFrame(() => {
1661
- k.scrollTo({ top: j - C });
1679
+ function se(k) {
1680
+ const x = k.selectionStart, N = p.value.substring(0, x ?? 0).split(`
1681
+ `).length + 1, H = k.scrollTop, E = window.getComputedStyle(k), U = parseFloat(E.lineHeight), q = parseFloat(E.height), W = parseFloat(E.paddingBlockStart) + U * N;
1682
+ q + H > W || requestAnimationFrame(() => {
1683
+ k.scrollTo({ top: W - q });
1662
1684
  });
1663
1685
  }
1664
1686
  function Z() {
1665
- const k = n.selectionStart, _ = p.value.substring(0, k ?? 0);
1666
- i.value = _.split(`
1687
+ const k = n.selectionStart, x = p.value.substring(0, k ?? 0);
1688
+ r.value = x.split(`
1667
1689
  `).length - 1;
1668
- const B = Math.max(_.lastIndexOf(`
1690
+ const S = Math.max(x.lastIndexOf(`
1669
1691
  `) + 1, 0);
1670
- a.value.startOfRow = a.value.start - B, a.value.endOfRow = a.value.startOfRow + u.value.length, s.value = p.value.split(`
1692
+ a.value.startOfRow = a.value.start - S, a.value.endOfRow = a.value.startOfRow + u.value.length, s.value = p.value.split(`
1671
1693
  `);
1672
1694
  }
1673
1695
  function w(k) {
@@ -1676,92 +1698,92 @@ ${j}${D}`, te(k.target), m(s.value, ye, ye);
1676
1698
  function y(k) {
1677
1699
  return /^\d+\.\s+/.test(k.replace(" ", ""));
1678
1700
  }
1679
- function m(k, _ = 0, B = 0) {
1701
+ function m(k, x = 0, S = 0) {
1680
1702
  l.value || (s.value = [...k], p.value = s.value.join(`
1681
- `), a.value.start += _, a.value.end += B, a.value.startOfRow += _, a.value.endOfRow += B, n == null || n.focus(), l.value = !0, Le(() => {
1703
+ `), a.value.start += x, a.value.end += S, a.value.startOfRow += x, a.value.endOfRow += S, n == null || n.focus(), l.value = !0, Ie(() => {
1682
1704
  n == null || n.setSelectionRange(a.value.start, a.value.end), setTimeout(() => {
1683
1705
  l.value = !1;
1684
1706
  }, 100);
1685
1707
  }));
1686
1708
  }
1687
- return (k, _) => (v(), $("div", {
1688
- class: V(["sq-editor", x.value]),
1689
- onClick: _[2] || (_[2] = me(() => {
1709
+ return (k, x) => (v(), _("div", {
1710
+ class: V(["sq-editor", $.value]),
1711
+ onClick: x[2] || (x[2] = me(() => {
1690
1712
  }, ["stop"]))
1691
1713
  }, [
1692
- ae(E("div", un, [
1693
- e.md ? (v(), $(ee, { key: 0 }, [
1694
- E("div", cn, [
1714
+ ae(O("div", un, [
1715
+ e.md ? (v(), _(te, { key: 0 }, [
1716
+ O("div", cn, [
1695
1717
  T(Ks, {
1696
1718
  ref_key: "boldRef",
1697
1719
  ref: f,
1698
- disabled: !q.value,
1720
+ disabled: !z.value,
1699
1721
  rows: s.value,
1700
1722
  "selected-val": u.value,
1701
- "selected-row": i.value,
1723
+ "selected-row": r.value,
1702
1724
  "select-info": a.value,
1703
1725
  onUpdateText: m
1704
1726
  }, null, 8, ["disabled", "rows", "selected-val", "selected-row", "select-info"]),
1705
1727
  T(Zs, {
1706
1728
  ref_key: "italicRef",
1707
1729
  ref: g,
1708
- disabled: !q.value,
1730
+ disabled: !z.value,
1709
1731
  rows: s.value,
1710
1732
  "selected-val": u.value,
1711
- "selected-row": i.value,
1733
+ "selected-row": r.value,
1712
1734
  "select-info": a.value,
1713
1735
  onUpdateText: m
1714
1736
  }, null, 8, ["disabled", "rows", "selected-val", "selected-row", "select-info"]),
1715
1737
  T(Qs, {
1716
1738
  ref_key: "underlineRef",
1717
1739
  ref: h,
1718
- disabled: !q.value,
1740
+ disabled: !z.value,
1719
1741
  rows: s.value,
1720
1742
  "selected-val": u.value,
1721
- "selected-row": i.value,
1743
+ "selected-row": r.value,
1722
1744
  "select-info": a.value,
1723
1745
  onUpdateText: m
1724
1746
  }, null, 8, ["disabled", "rows", "selected-val", "selected-row", "select-info"]),
1725
1747
  T(tn, {
1726
- disabled: !q.value,
1748
+ disabled: !z.value,
1727
1749
  rows: s.value,
1728
1750
  "selected-val": u.value,
1729
- "selected-row": i.value,
1751
+ "selected-row": r.value,
1730
1752
  "select-info": a.value,
1731
1753
  onUpdateText: m
1732
1754
  }, null, 8, ["disabled", "rows", "selected-val", "selected-row", "select-info"]),
1733
1755
  T(nn, {
1734
- disabled: !q.value,
1756
+ disabled: !z.value,
1735
1757
  rows: s.value,
1736
1758
  "selected-val": u.value,
1737
- "selected-row": i.value,
1759
+ "selected-row": r.value,
1738
1760
  "select-info": a.value,
1739
1761
  onUpdateText: m
1740
1762
  }, null, 8, ["disabled", "rows", "selected-val", "selected-row", "select-info"]),
1741
1763
  T(c(we), { direction: "vertical" }),
1742
1764
  T(an, {
1743
- disabled: !z.value,
1765
+ disabled: !B.value,
1744
1766
  rows: s.value,
1745
1767
  "selected-val": u.value,
1746
- "selected-row": i.value,
1768
+ "selected-row": r.value,
1747
1769
  "select-info": a.value,
1748
1770
  onUpdateText: m
1749
1771
  }, null, 8, ["disabled", "rows", "selected-val", "selected-row", "select-info"]),
1750
1772
  T(rn, {
1751
- disabled: !z.value,
1773
+ disabled: !B.value,
1752
1774
  rows: s.value,
1753
1775
  "selected-val": u.value,
1754
- "selected-row": i.value,
1776
+ "selected-row": r.value,
1755
1777
  "select-info": a.value,
1756
1778
  onUpdateText: m
1757
1779
  }, null, 8, ["disabled", "rows", "selected-val", "selected-row", "select-info"])
1758
1780
  ]),
1759
1781
  T(c(we))
1760
- ], 64)) : M("", !0),
1761
- T(c(je), {
1782
+ ], 64)) : D("", !0),
1783
+ T(c(We), {
1762
1784
  class: V({ "has-shadow": !e.md }),
1763
1785
  ref_key: "inputRef",
1764
- ref: r,
1786
+ ref: i,
1765
1787
  type: "textarea",
1766
1788
  resize: "none",
1767
1789
  size: e.size,
@@ -1771,28 +1793,28 @@ ${j}${D}`, te(k.target), m(s.value, ye, ye);
1771
1793
  maxlength: e.maxlength,
1772
1794
  minlength: e.minlength,
1773
1795
  value: p.value,
1774
- "onUpdate:value": _[0] || (_[0] = (B) => p.value = B),
1775
- onKeydown: H
1796
+ "onUpdate:value": x[0] || (x[0] = (S) => p.value = S),
1797
+ onKeydown: j
1776
1798
  }, null, 8, ["class", "size", "round", "disabled", "placeholder", "maxlength", "minlength", "value"])
1777
1799
  ], 512), [
1778
1800
  [ve, t.value === "edit"]
1779
1801
  ]),
1780
- t.value === "preview" ? (v(), S(c(ls), {
1802
+ t.value === "preview" ? (v(), C(c(ls), {
1781
1803
  key: 0,
1782
- text: P.value,
1804
+ text: M.value,
1783
1805
  md: e.md
1784
- }, null, 8, ["text", "md"])) : M("", !0),
1785
- E("div", dn, [
1806
+ }, null, 8, ["text", "md"])) : D("", !0),
1807
+ O("div", dn, [
1786
1808
  T(c(So), {
1787
1809
  size: e.size,
1788
1810
  round: e.round,
1789
1811
  disabled: e.disabled,
1790
1812
  items: o,
1791
1813
  value: t.value,
1792
- "onUpdate:value": _[1] || (_[1] = (B) => t.value = B),
1793
- onChange: N
1814
+ "onUpdate:value": x[1] || (x[1] = (S) => t.value = S),
1815
+ onChange: I
1794
1816
  }, null, 8, ["size", "round", "disabled", "value"]),
1795
- U(k.$slots, "control")
1817
+ F(k.$slots, "control")
1796
1818
  ])
1797
1819
  ], 2));
1798
1820
  }
@@ -1808,16 +1830,16 @@ ${j}${D}`, te(k.target), m(s.value, ye, ye);
1808
1830
  errorMsg: {}
1809
1831
  },
1810
1832
  setup(d) {
1811
- const { nextId: o } = Ee(), n = d, e = R(""), t = R("");
1812
- qe(We, e);
1833
+ const { nextId: o } = Ae(), n = d, e = R(""), t = R("");
1834
+ qe(je, e);
1813
1835
  const s = b(() => {
1814
- const i = [];
1815
- return n.isRequired && i.push("is-required"), i;
1836
+ const r = [];
1837
+ return n.isRequired && r.push("is-required"), r;
1816
1838
  }), l = b(() => ["input", "switch", "select"].includes(n.type));
1817
1839
  oe(
1818
1840
  () => n.errorMsg,
1819
- (i) => {
1820
- i && (t.value = i);
1841
+ (r) => {
1842
+ r && (t.value = r);
1821
1843
  }
1822
1844
  ), ie(() => {
1823
1845
  l.value && (e.value = `sq-form-item-${o()}`);
@@ -1825,25 +1847,25 @@ ${j}${D}`, te(k.target), m(s.value, ye, ye);
1825
1847
  function u() {
1826
1848
  t.value = "";
1827
1849
  }
1828
- return (i, a) => (v(), $("div", {
1850
+ return (r, a) => (v(), _("div", {
1829
1851
  class: "sq-form-item",
1830
1852
  style: K({ "--form-label-width": n.labelWidth })
1831
1853
  }, [
1832
- n.label || n.showLabel ? (v(), $("label", {
1854
+ n.label || n.showLabel ? (v(), _("label", {
1833
1855
  key: 0,
1834
1856
  class: V(["sq-form-item-label", s.value]),
1835
1857
  textContent: X(n.label),
1836
1858
  for: n.type !== "custom" ? e.value : void 0
1837
- }, null, 10, pn)) : M("", !0),
1838
- E("div", vn, [
1839
- U(i.$slots, "default"),
1859
+ }, null, 10, pn)) : D("", !0),
1860
+ O("div", vn, [
1861
+ F(r.$slots, "default"),
1840
1862
  T(be, {
1841
1863
  appear: "",
1842
1864
  name: "sq-zoom-top",
1843
1865
  onAfterLeave: u
1844
1866
  }, {
1845
- default: I(() => [
1846
- ae(E("span", {
1867
+ default: A(() => [
1868
+ ae(O("span", {
1847
1869
  class: "sq-form-item-check",
1848
1870
  textContent: X(t.value)
1849
1871
  }, null, 8, mn), [
@@ -1886,10 +1908,10 @@ ${j}${D}`, te(k.target), m(s.value, ye, ye);
1886
1908
  readonly: ne(s, "readonly")
1887
1909
  })
1888
1910
  );
1889
- const l = R({}), u = R([]), i = R({}), a = b(() => {
1911
+ const l = R({}), u = R([]), r = R({}), a = b(() => {
1890
1912
  const w = [`is-${s.layout}`];
1891
1913
  return s.size !== "md" && w.push(`sq-form--${s.size}`), s.requiredMark !== "hidden" && w.push(`required-${s.requiredMark}`), w;
1892
- }), r = b(() => ({
1914
+ }), i = b(() => ({
1893
1915
  "--form-label-width": s.labelWidth
1894
1916
  })), f = b(() => {
1895
1917
  const w = s.step;
@@ -1903,73 +1925,73 @@ ${j}${D}`, te(k.target), m(s.value, ye, ye);
1903
1925
  return (y = w.rule) == null ? void 0 : y.required;
1904
1926
  }
1905
1927
  function h(w) {
1906
- if (i.value[w]) return Me;
1928
+ if (r.value[w]) return Ee;
1907
1929
  if (u.value.includes(w)) return ot;
1908
1930
  if (l.value[w])
1909
1931
  return s.invalidStatus === "error" ? nt : st;
1910
1932
  }
1911
1933
  async function p(w, y, m, k = !0) {
1912
1934
  if (!m) return;
1913
- const _ = m.trigger ?? "change", B = Array.isArray(_) ? "array" : "string";
1935
+ const x = m.trigger ?? "change", S = Array.isArray(x) ? "array" : "string";
1914
1936
  if (y) {
1915
- if (B === "array" && !_.includes(y)) return;
1916
- if (B === "string" && _ !== y) return;
1937
+ if (S === "array" && !x.includes(y)) return;
1938
+ if (S === "string" && x !== y) return;
1917
1939
  }
1918
- u.value = u.value.filter((F) => F !== w), Q(w), i.value[w] = new AbortController(), await Le();
1919
- const O = s.formData[w];
1920
- let W = !1;
1921
- const A = m.validateType ?? "string";
1922
- return m.validateFunc ? W = await q(w, O, m, y) : A === "string" ? W = z(w, O, m) : A === "boolean" ? W = P(w, O, m) : A === "list" && (W = N(w, O, m)), k && t("validate", w, W, ke(u.value)), i.value[w].signal.aborted || Q(w), W;
1940
+ u.value = u.value.filter((U) => U !== w), ee(w), r.value[w] = new AbortController(), await Ie();
1941
+ const N = s.formData[w];
1942
+ let H = !1;
1943
+ const E = m.validateType ?? "string";
1944
+ return m.validateFunc ? H = await z(w, N, m, y) : E === "string" ? H = B(w, N, m) : E === "boolean" ? H = M(w, N, m) : E === "list" && (H = I(w, N, m)), k && t("validate", w, H, ke(u.value)), r.value[w].signal.aborted || ee(w), H;
1923
1945
  }
1924
- function x(w) {
1946
+ function $(w) {
1925
1947
  if (l.value[w]) return s.invalidStatus;
1926
1948
  }
1927
- async function q(w, y, m, k) {
1928
- const _ = i.value[w].signal, B = await m.validateFunc(y, _, k);
1929
- if (B === void 0) {
1930
- u.value = u.value.filter((O) => O !== w), delete l.value[w];
1949
+ async function z(w, y, m, k) {
1950
+ const x = r.value[w].signal, S = await m.validateFunc(y, x, k);
1951
+ if (S === void 0) {
1952
+ u.value = u.value.filter((N) => N !== w), delete l.value[w];
1931
1953
  return;
1932
1954
  }
1933
- return B === !0 ? J(w) : B === !1 ? H(w, "字段验证失败") : B ? H(w, B) : J(w), B === !0 || typeof B == "string" && !B;
1955
+ return S === !0 ? J(w) : S === !1 ? j(w, "字段验证失败") : S ? j(w, S) : J(w), S === !0 || typeof S == "string" && !S;
1934
1956
  }
1935
- function z(w, y, m) {
1936
- return m.required && !y ? (H(w, m.requiredText ?? "字段必填"), !1) : m.pattern && y && !m.pattern.test(y) ? (H(w, m.patternText ?? "字段验证失败"), !1) : (J(w), !0);
1957
+ function B(w, y, m) {
1958
+ return m.required && !y ? (j(w, m.requiredText ?? "字段必填"), !1) : m.pattern && y && !m.pattern.test(y) ? (j(w, m.patternText ?? "字段验证失败"), !1) : (J(w), !0);
1937
1959
  }
1938
- function P(w, y, m) {
1939
- return m.required && y === void 0 ? (H(w, m.requiredText ?? "字段必填"), !1) : (J(w), !0);
1960
+ function M(w, y, m) {
1961
+ return m.required && y === void 0 ? (j(w, m.requiredText ?? "字段必填"), !1) : (J(w), !0);
1940
1962
  }
1941
- function N(w, y, m) {
1942
- return m.required && (!y || !y.length) ? (H(w, m.requiredText ?? "字段必填"), !1) : m.pattern && y && y.map((B) => B.toString()).map((B) => m.pattern.test(B)).includes(!1) ? (H(w, m.patternText ?? "字段验证失败"), !1) : (J(w), !0);
1963
+ function I(w, y, m) {
1964
+ return m.required && (!y || !y.length) ? (j(w, m.requiredText ?? "字段必填"), !1) : m.pattern && y && y.map((S) => S.toString()).map((S) => m.pattern.test(S)).includes(!1) ? (j(w, m.patternText ?? "字段验证失败"), !1) : (J(w), !0);
1943
1965
  }
1944
- function H(w, y) {
1966
+ function j(w, y) {
1945
1967
  u.value = u.value.filter((m) => m !== w), l.value[w] = y;
1946
1968
  }
1947
1969
  function J(w) {
1948
1970
  u.value.push(w), delete l.value[w];
1949
1971
  }
1950
- function Q(w) {
1972
+ function ee(w) {
1951
1973
  var y;
1952
- (y = i.value[w]) == null || y.abort(), delete i.value[w];
1974
+ (y = r.value[w]) == null || y.abort(), delete r.value[w];
1953
1975
  }
1954
- function te() {
1976
+ function se() {
1955
1977
  t("update:formData", structuredClone(e)), l.value = {}, u.value = [], t("validate", "SQFORM", !1, ke(u.value));
1956
1978
  }
1957
1979
  function Z(w = !0) {
1958
1980
  const m = (w ? s.items : f.value).filter(
1959
1981
  (k) => k.type !== "custom" && k.rule && !u.value.includes(k.binding)
1960
1982
  ).map((k) => {
1961
- const _ = k;
1962
- return p(_.binding, void 0, _.rule, !1);
1983
+ const x = k;
1984
+ return p(x.binding, void 0, x.rule, !1);
1963
1985
  });
1964
1986
  return Promise.all(m).then((k) => (t("validate", "SQFORM", !k.includes(!1), ke(u.value)), k));
1965
1987
  }
1966
- return o({ resetFields: te, validate: Z }), (w, y) => (v(), $("form", {
1988
+ return o({ resetFields: se, validate: Z }), (w, y) => (v(), _("form", {
1967
1989
  class: V(["sq-form", a.value]),
1968
- style: K(r.value),
1990
+ style: K(i.value),
1969
1991
  onSubmit: y[0] || (y[0] = me(() => {
1970
1992
  }, ["prevent"]))
1971
1993
  }, [
1972
- (v(!0), $(ee, null, de(f.value, (m, k) => (v(), S(gn, {
1994
+ (v(!0), _(te, null, de(f.value, (m, k) => (v(), C(gn, {
1973
1995
  class: V(m.itemClass),
1974
1996
  type: m.type,
1975
1997
  key: k,
@@ -1979,59 +2001,59 @@ ${j}${D}`, te(k.target), m(s.value, ye, ye);
1979
2001
  "is-required": g(m),
1980
2002
  "error-msg": s.hasFeedback ? l.value[m.binding] : ""
1981
2003
  }, {
1982
- default: I(() => [
1983
- m.type === "input" ? (v(), S(c(je), fe({
2004
+ default: A(() => [
2005
+ m.type === "input" ? (v(), C(c(We), fe({
1984
2006
  key: 0,
1985
2007
  ref_for: !0
1986
2008
  }, m.props, {
1987
2009
  name: m.name,
1988
- status: x(m.binding),
2010
+ status: $(m.binding),
1989
2011
  "suffix-icon": h(m.binding),
1990
2012
  value: s.formData[m.binding],
1991
- "onUpdate:value": (_) => s.formData[m.binding] = _,
1992
- onChange: (_) => p(m.binding, "change", m.rule),
1993
- onInput: (_) => p(m.binding, "input", m.rule),
1994
- onBlur: (_) => p(m.binding, "blur", m.rule)
1995
- }), null, 16, ["name", "status", "suffix-icon", "value", "onUpdate:value", "onChange", "onInput", "onBlur"])) : m.type === "checkbox" ? (v(), S(c(As), fe({
2013
+ "onUpdate:value": (x) => s.formData[m.binding] = x,
2014
+ onChange: (x) => p(m.binding, "change", m.rule),
2015
+ onInput: (x) => p(m.binding, "input", m.rule),
2016
+ onBlur: (x) => p(m.binding, "blur", m.rule)
2017
+ }), null, 16, ["name", "status", "suffix-icon", "value", "onUpdate:value", "onChange", "onInput", "onBlur"])) : m.type === "checkbox" ? (v(), C(c(As), fe({
1996
2018
  key: 1,
1997
2019
  ref_for: !0
1998
2020
  }, m.props, {
1999
2021
  name: m.name,
2000
2022
  value: s.formData[m.binding],
2001
- "onUpdate:value": (_) => s.formData[m.binding] = _,
2002
- onChange: (_) => p(m.binding, "change", m.rule)
2003
- }), null, 16, ["name", "value", "onUpdate:value", "onChange"])) : m.type === "radio" ? (v(), S(c(qo), fe({
2023
+ "onUpdate:value": (x) => s.formData[m.binding] = x,
2024
+ onChange: (x) => p(m.binding, "change", m.rule)
2025
+ }), null, 16, ["name", "value", "onUpdate:value", "onChange"])) : m.type === "radio" ? (v(), C(c(qo), fe({
2004
2026
  key: 2,
2005
2027
  ref_for: !0
2006
2028
  }, m.props, {
2007
2029
  name: m.name,
2008
2030
  value: s.formData[m.binding],
2009
- "onUpdate:value": (_) => s.formData[m.binding] = _,
2010
- onChange: (_) => p(m.binding, "change", m.rule)
2011
- }), null, 16, ["name", "value", "onUpdate:value", "onChange"])) : m.type === "switch" ? (v(), S(c(Uo), fe({
2031
+ "onUpdate:value": (x) => s.formData[m.binding] = x,
2032
+ onChange: (x) => p(m.binding, "change", m.rule)
2033
+ }), null, 16, ["name", "value", "onUpdate:value", "onChange"])) : m.type === "switch" ? (v(), C(c(Uo), fe({
2012
2034
  key: 3,
2013
2035
  ref_for: !0
2014
2036
  }, m.props, {
2015
2037
  name: m.name,
2016
- loading: i.value[m.binding] !== void 0,
2038
+ loading: r.value[m.binding] !== void 0,
2017
2039
  checked: s.formData[m.binding],
2018
- "onUpdate:checked": (_) => s.formData[m.binding] = _,
2019
- onChange: (_) => p(m.binding, "change", m.rule)
2020
- }), null, 16, ["name", "loading", "checked", "onUpdate:checked", "onChange"])) : m.type === "select" ? (v(), S(c(Ao), fe({
2040
+ "onUpdate:checked": (x) => s.formData[m.binding] = x,
2041
+ onChange: (x) => p(m.binding, "change", m.rule)
2042
+ }), null, 16, ["name", "loading", "checked", "onUpdate:checked", "onChange"])) : m.type === "select" ? (v(), C(c(Ao), fe({
2021
2043
  key: 4,
2022
2044
  ref_for: !0
2023
2045
  }, m.props, {
2024
2046
  name: m.name,
2025
2047
  value: s.formData[m.binding],
2026
- "onUpdate:value": (_) => s.formData[m.binding] = _,
2027
- onChange: (_) => p(m.binding, "change", m.rule)
2028
- }), null, 16, ["name", "value", "onUpdate:value", "onChange"])) : U(w.$slots, m.slot, { key: 5 })
2048
+ "onUpdate:value": (x) => s.formData[m.binding] = x,
2049
+ onChange: (x) => p(m.binding, "change", m.rule)
2050
+ }), null, 16, ["name", "value", "onUpdate:value", "onChange"])) : F(w.$slots, m.slot, { key: 5 })
2029
2051
  ]),
2030
2052
  _: 2
2031
2053
  }, 1032, ["class", "type", "label-width", "label", "show-label", "is-required", "error-msg"]))), 128))
2032
2054
  ], 38));
2033
2055
  }
2034
- }), Be = Symbol("form-context-keys"), We = Symbol("form-item-id-keys"), yn = {
2056
+ }), Be = Symbol("form-context-keys"), je = Symbol("form-item-id-keys"), yn = {
2035
2057
  key: 0,
2036
2058
  class: "sq-image-mask"
2037
2059
  }, xn = {
@@ -2056,51 +2078,51 @@ ${j}${D}`, te(k.target), m(s.value, ye, ye);
2056
2078
  },
2057
2079
  emits: ["load", "error"],
2058
2080
  setup(d, { emit: o }) {
2059
- const n = new IntersectionObserver(x), e = o, t = d, s = R(!1), l = R(t.src), u = R(!1), i = R(!1), a = R(!1), r = ue(null), f = b(() => s.value && !u.value), g = b(() => ({
2081
+ const n = new IntersectionObserver($), e = o, t = d, s = R(!1), l = R(t.src), u = R(!1), r = R(!1), a = R(!1), i = ue(null), f = b(() => s.value && !u.value), g = b(() => ({
2060
2082
  height: f.value ? void 0 : "var(--image-placeholder-height)",
2061
2083
  aspectRatio: f.value ? void 0 : t.aspectRatio
2062
2084
  }));
2063
2085
  ie(() => {
2064
- n.observe(r.value);
2086
+ n.observe(i.value);
2065
2087
  }), he(() => {
2066
2088
  n.disconnect();
2067
2089
  });
2068
- function h(z) {
2069
- s.value = !0, e("load", z);
2090
+ function h(B) {
2091
+ s.value = !0, e("load", B);
2070
2092
  }
2071
- function p(z) {
2093
+ function p(B) {
2072
2094
  if (l.value !== t.fallback && t.fallback) {
2073
2095
  l.value = t.fallback;
2074
2096
  return;
2075
2097
  }
2076
- u.value = !0, s.value = !0, e("error", z);
2098
+ u.value = !0, s.value = !0, e("error", B);
2077
2099
  }
2078
- function x(z) {
2079
- z[0].isIntersecting && (i.value = !0, n.disconnect());
2100
+ function $(B) {
2101
+ B[0].isIntersecting && (r.value = !0, n.disconnect());
2080
2102
  }
2081
- function q() {
2103
+ function z() {
2082
2104
  a.value = !0;
2083
2105
  }
2084
- return (z, P) => (v(), $("div", {
2106
+ return (B, M) => (v(), _("div", {
2085
2107
  class: "sq-image",
2086
2108
  style: K(g.value),
2087
2109
  ref_key: "imgRef",
2088
- ref: r
2110
+ ref: i
2089
2111
  }, [
2090
2112
  T(be, { name: "sq-fade" }, {
2091
- default: I(() => [
2092
- s.value ? M("", !0) : (v(), $("div", yn))
2113
+ default: A(() => [
2114
+ s.value ? D("", !0) : (v(), _("div", yn))
2093
2115
  ]),
2094
2116
  _: 1
2095
2117
  }),
2096
- !u.value && i.value ? (v(), $("picture", xn, [
2097
- (v(!0), $(ee, null, de(t.source, (N, H) => (v(), $("source", {
2098
- key: H,
2099
- srcset: N.src,
2100
- media: N.media,
2101
- type: N.type
2118
+ !u.value && r.value ? (v(), _("picture", xn, [
2119
+ (v(!0), _(te, null, de(t.source, (I, j) => (v(), _("source", {
2120
+ key: j,
2121
+ srcset: I.src,
2122
+ media: I.media,
2123
+ type: I.type
2102
2124
  }, null, 8, _n))), 128)),
2103
- E("img", {
2125
+ O("img", {
2104
2126
  style: K({ objectFit: t.objectFit }),
2105
2127
  crossorigin: t.crossorigin,
2106
2128
  alt: t.alt,
@@ -2108,25 +2130,25 @@ ${j}${D}`, te(k.target), m(s.value, ye, ye);
2108
2130
  onLoad: h,
2109
2131
  onError: p
2110
2132
  }, null, 44, $n)
2111
- ])) : M("", !0),
2112
- !u.value && i.value && t.preview ? (v(), $("div", {
2133
+ ])) : D("", !0),
2134
+ !u.value && r.value && t.preview ? (v(), _("div", {
2113
2135
  key: 1,
2114
2136
  class: "sq-image-control",
2115
- onClick: q
2137
+ onClick: z
2116
2138
  }, [
2117
2139
  T(c(it))
2118
- ])) : M("", !0),
2119
- u.value ? (v(), $("div", kn, [
2120
- U(z.$slots, "error", {}, () => [
2121
- P[1] || (P[1] = E("span", null, "图片加载失败", -1))
2140
+ ])) : D("", !0),
2141
+ u.value ? (v(), _("div", kn, [
2142
+ F(B.$slots, "error", {}, () => [
2143
+ M[1] || (M[1] = O("span", null, "图片加载失败", -1))
2122
2144
  ])
2123
- ])) : M("", !0),
2124
- t.preview ? (v(), S(c(Bn), {
2145
+ ])) : D("", !0),
2146
+ t.preview ? (v(), C(c(Bn), {
2125
2147
  key: 3,
2126
2148
  "src-list": [l.value],
2127
2149
  visible: a.value,
2128
- "onUpdate:visible": P[0] || (P[0] = (N) => a.value = N)
2129
- }, null, 8, ["src-list", "visible"])) : M("", !0)
2150
+ "onUpdate:visible": M[0] || (M[0] = (I) => a.value = I)
2151
+ }, null, 8, ["src-list", "visible"])) : D("", !0)
2130
2152
  ], 4));
2131
2153
  }
2132
2154
  }), Cn = ["src"], Sn = "sq-image-viewer", Bn = /* @__PURE__ */ L({
@@ -2150,11 +2172,11 @@ ${j}${D}`, te(k.target), m(s.value, ye, ye);
2150
2172
  setup(d) {
2151
2173
  const o = {}, n = {};
2152
2174
  let e = !1, t;
2153
- const s = d, l = R(1), u = R(!1), i = R(!1), a = R(0), r = R(0), f = R(!0), g = R({ x: 0, y: 0 }), h = le(d, "visible"), p = b(() => s.srcList[r.value]), x = b(() => {
2154
- const C = u.value ? -1 : 1, D = i.value ? -1 : 1;
2175
+ const s = d, l = R(1), u = R(!1), r = R(!1), a = R(0), i = R(0), f = R(!0), g = R({ x: 0, y: 0 }), h = le(d, "visible"), p = b(() => s.srcList[i.value]), $ = b(() => {
2176
+ const q = u.value ? -1 : 1, P = r.value ? -1 : 1;
2155
2177
  return {
2156
2178
  transform: [
2157
- `scale(${l.value * C}, ${l.value * D})`,
2179
+ `scale(${l.value * q}, ${l.value * P})`,
2158
2180
  `rotate(${a.value}deg)`
2159
2181
  ].join(" "),
2160
2182
  marginInlineStart: `${g.value.x}px`,
@@ -2162,48 +2184,48 @@ ${j}${D}`, te(k.target), m(s.value, ye, ye);
2162
2184
  transition: f.value ? void 0 : "none"
2163
2185
  };
2164
2186
  });
2165
- function q(C) {
2166
- C.deltaY < 0 ? y() : m();
2187
+ function z(q) {
2188
+ q.deltaY < 0 ? y() : m();
2167
2189
  }
2168
- function z(C) {
2169
- e = !0, o.x = C.x, o.y = C.y;
2190
+ function B(q) {
2191
+ e = !0, o.x = q.x, o.y = q.y;
2170
2192
  }
2171
- function P() {
2193
+ function M() {
2172
2194
  e = !1;
2173
2195
  }
2174
- function N(C) {
2196
+ function I(q) {
2175
2197
  if (!e || !s.moveable) return;
2176
- const D = C.x - o.x, j = C.y - o.y;
2177
- g.value.x += D * 2, g.value.y += j * 2, o.x = C.x, o.y = C.y;
2198
+ const P = q.x - o.x, W = q.y - o.y;
2199
+ g.value.x += P * 2, g.value.y += W * 2, o.x = q.x, o.y = q.y;
2178
2200
  }
2179
- function H(C) {
2180
- C.touches.length === 1 ? (e = !0, o.x = C.touches[0].screenX, o.y = C.touches[0].screenY) : C.touches.length === 2 && (t = w(C.touches[0], C.touches[1]));
2201
+ function j(q) {
2202
+ q.touches.length === 1 ? (e = !0, o.x = q.touches[0].screenX, o.y = q.touches[0].screenY) : q.touches.length === 2 && (t = w(q.touches[0], q.touches[1]));
2181
2203
  }
2182
2204
  function J() {
2183
2205
  e = !1, t = void 0, f.value = !0;
2184
2206
  }
2185
- function Q(C) {
2186
- if (C.touches.length === 1) {
2207
+ function ee(q) {
2208
+ if (q.touches.length === 1) {
2187
2209
  if (!e || !s.moveable) return;
2188
- const D = C.touches[0], j = D.screenX - o.x, se = D.screenY - o.y;
2189
- g.value.x += j * 2, g.value.y += se * 2, o.x = D.screenX, o.y = D.screenY;
2190
- } else if (C.touches.length === 2) {
2210
+ const P = q.touches[0], W = P.screenX - o.x, Q = P.screenY - o.y;
2211
+ g.value.x += W * 2, g.value.y += Q * 2, o.x = P.screenX, o.y = P.screenY;
2212
+ } else if (q.touches.length === 2) {
2191
2213
  if (!t) return;
2192
2214
  f.value = !1;
2193
- const D = w(C.touches[0], C.touches[1]), j = D / t;
2194
- let se = l.value * j;
2195
- se = Math.min(s.maxScale, se), se = Math.max(s.minScale, se), l.value = se, t = D;
2215
+ const P = w(q.touches[0], q.touches[1]), W = P / t;
2216
+ let Q = l.value * W;
2217
+ Q = Math.min(s.maxScale, Q), Q = Math.max(s.minScale, Q), l.value = Q, t = P;
2196
2218
  }
2197
2219
  }
2198
- function te() {
2199
- l.value = Math.min(n.x, n.y, 1), u.value = !1, i.value = !1, a.value = 0, g.value = { x: 0, y: 0 };
2220
+ function se() {
2221
+ l.value = Math.min(n.x, n.y, 1), u.value = !1, r.value = !1, a.value = 0, g.value = { x: 0, y: 0 };
2200
2222
  }
2201
- function Z(C) {
2202
- r.value += C;
2223
+ function Z(q) {
2224
+ i.value += q;
2203
2225
  }
2204
- function w(C, D) {
2205
- const j = D.clientX - C.clientX, se = D.clientY - C.clientY;
2206
- return Math.sqrt(j * j + se * se);
2226
+ function w(q, P) {
2227
+ const W = P.clientX - q.clientX, Q = P.clientY - q.clientY;
2228
+ return Math.sqrt(W * W + Q * Q);
2207
2229
  }
2208
2230
  function y() {
2209
2231
  l.value >= s.maxScale || (l.value = Math.min(s.maxScale, l.value * (1 + s.scaleStep)));
@@ -2214,81 +2236,81 @@ ${j}${D}`, te(k.target), m(s.value, ye, ye);
2214
2236
  function k() {
2215
2237
  l.value = Math.min(n.x, n.y), g.value = { x: 0, y: 0 };
2216
2238
  }
2217
- function _() {
2239
+ function x() {
2218
2240
  l.value = 1, g.value = { x: 0, y: 0 };
2219
2241
  }
2220
- function B() {
2242
+ function S() {
2221
2243
  u.value = !u.value;
2222
2244
  }
2223
- function O() {
2224
- i.value = !i.value;
2245
+ function N() {
2246
+ r.value = !r.value;
2225
2247
  }
2226
- function W(C) {
2227
- a.value += C;
2248
+ function H(q) {
2249
+ a.value += q;
2228
2250
  }
2229
- function A() {
2251
+ function E() {
2230
2252
  h.value = !1;
2231
2253
  }
2232
- function F(C) {
2233
- const j = C.target.getBoundingClientRect(), se = window.innerWidth, ye = window.innerHeight;
2234
- n.x = se / j.width, n.y = ye / j.height, l.value = Math.min(n.x, n.y, 1);
2254
+ function U(q) {
2255
+ const W = q.target.getBoundingClientRect(), Q = window.innerWidth, ye = window.innerHeight;
2256
+ n.x = Q / W.width, n.y = ye / W.height, l.value = Math.min(n.x, n.y, 1);
2235
2257
  }
2236
- return (C, D) => (v(), S(c(pt), {
2258
+ return (q, P) => (v(), C(c(pt), {
2237
2259
  class: "sq-image-viewer-mask",
2238
2260
  visible: h.value,
2239
- "onUpdate:visible": D[6] || (D[6] = (j) => h.value = j),
2261
+ "onUpdate:visible": P[6] || (P[6] = (W) => h.value = W),
2240
2262
  keyboard: s.keyboard,
2241
2263
  "mask-closeable": s.maskCloseable,
2242
- onWheelPassive: q,
2243
- onMousemove: N,
2244
- onMouseup: P,
2245
- onTouchmovePassive: Q,
2264
+ onWheelPassive: z,
2265
+ onMousemove: I,
2266
+ onMouseup: M,
2267
+ onTouchmovePassive: ee,
2246
2268
  onTouchend: J,
2247
- onClosed: te
2269
+ onClosed: se
2248
2270
  }, {
2249
- default: I(() => [
2250
- E("img", {
2251
- style: K(x.value),
2271
+ default: A(() => [
2272
+ O("img", {
2273
+ style: K($.value),
2252
2274
  src: p.value,
2253
- onClick: D[0] || (D[0] = me(() => {
2275
+ onClick: P[0] || (P[0] = me(() => {
2254
2276
  }, ["stop"])),
2255
- onLoad: F,
2256
- onMousedown: me(z, ["prevent"]),
2257
- onTouchstartPassive: H
2277
+ onLoad: U,
2278
+ onMousedown: me(B, ["prevent"]),
2279
+ onTouchstartPassive: j
2258
2280
  }, null, 44, Cn),
2259
2281
  T(c(Y), {
2260
2282
  class: "sq-image-viewer-close",
2261
2283
  round: "",
2262
2284
  icon: c(Ue),
2263
- onClick: me(A, ["stop"])
2285
+ onClick: me(E, ["stop"])
2264
2286
  }, null, 8, ["icon"]),
2265
- s.srcList.length > 1 ? (v(), $(ee, { key: 0 }, [
2287
+ s.srcList.length > 1 ? (v(), _(te, { key: 0 }, [
2266
2288
  T(c(Y), {
2267
2289
  class: "sq-image-viewer-prev",
2268
2290
  round: "",
2269
2291
  icon: c(rt),
2270
- disabled: r.value === 0,
2271
- onClick: D[1] || (D[1] = (j) => Z(-1))
2292
+ disabled: i.value === 0,
2293
+ onClick: P[1] || (P[1] = (W) => Z(-1))
2272
2294
  }, null, 8, ["icon", "disabled"]),
2273
2295
  T(c(Y), {
2274
2296
  class: "sq-image-viewer-next",
2275
2297
  round: "",
2276
2298
  icon: c(ut),
2277
- disabled: r.value === s.srcList.length - 1,
2278
- onClick: D[2] || (D[2] = (j) => Z(1))
2299
+ disabled: i.value === s.srcList.length - 1,
2300
+ onClick: P[2] || (P[2] = (W) => Z(1))
2279
2301
  }, null, 8, ["icon", "disabled"])
2280
- ], 64)) : M("", !0),
2281
- s.toolbar ? (v(), $("div", {
2302
+ ], 64)) : D("", !0),
2303
+ s.toolbar ? (v(), _("div", {
2282
2304
  key: 1,
2283
2305
  class: "sq-image-viewer-toolbar",
2284
- onClick: D[5] || (D[5] = me(() => {
2306
+ onClick: P[5] || (P[5] = me(() => {
2285
2307
  }, ["stop"]))
2286
2308
  }, [
2287
2309
  T(c(re), {
2288
2310
  tip: "放大",
2289
2311
  shadow: !1
2290
2312
  }, {
2291
- default: I(() => [
2313
+ default: A(() => [
2292
2314
  T(c(Y), {
2293
2315
  text: "",
2294
2316
  icon: c(Lt),
@@ -2302,7 +2324,7 @@ ${j}${D}`, te(k.target), m(s.value, ye, ye);
2302
2324
  tip: "缩小",
2303
2325
  shadow: !1
2304
2326
  }, {
2305
- default: I(() => [
2327
+ default: A(() => [
2306
2328
  T(c(Y), {
2307
2329
  text: "",
2308
2330
  icon: c(It),
@@ -2317,11 +2339,11 @@ ${j}${D}`, te(k.target), m(s.value, ye, ye);
2317
2339
  tip: "水平翻转",
2318
2340
  shadow: !1
2319
2341
  }, {
2320
- default: I(() => [
2342
+ default: A(() => [
2321
2343
  T(c(Y), {
2322
2344
  text: "",
2323
2345
  icon: c(Mt),
2324
- onClick: B
2346
+ onClick: S
2325
2347
  }, null, 8, ["icon"])
2326
2348
  ]),
2327
2349
  _: 1
@@ -2330,11 +2352,11 @@ ${j}${D}`, te(k.target), m(s.value, ye, ye);
2330
2352
  tip: "垂直翻转",
2331
2353
  shadow: !1
2332
2354
  }, {
2333
- default: I(() => [
2355
+ default: A(() => [
2334
2356
  T(c(Y), {
2335
2357
  text: "",
2336
2358
  icon: c(Et),
2337
- onClick: O
2359
+ onClick: N
2338
2360
  }, null, 8, ["icon"])
2339
2361
  ]),
2340
2362
  _: 1
@@ -2344,11 +2366,11 @@ ${j}${D}`, te(k.target), m(s.value, ye, ye);
2344
2366
  tip: "顺时针旋转",
2345
2367
  shadow: !1
2346
2368
  }, {
2347
- default: I(() => [
2369
+ default: A(() => [
2348
2370
  T(c(Y), {
2349
2371
  text: "",
2350
2372
  icon: c(At),
2351
- onClick: D[3] || (D[3] = (j) => W(90))
2373
+ onClick: P[3] || (P[3] = (W) => H(90))
2352
2374
  }, null, 8, ["icon"])
2353
2375
  ]),
2354
2376
  _: 1
@@ -2357,11 +2379,11 @@ ${j}${D}`, te(k.target), m(s.value, ye, ye);
2357
2379
  tip: "逆时针旋转",
2358
2380
  shadow: !1
2359
2381
  }, {
2360
- default: I(() => [
2382
+ default: A(() => [
2361
2383
  T(c(Y), {
2362
2384
  text: "",
2363
2385
  icon: c(Dt),
2364
- onClick: D[4] || (D[4] = (j) => W(-90))
2386
+ onClick: P[4] || (P[4] = (W) => H(-90))
2365
2387
  }, null, 8, ["icon"])
2366
2388
  ]),
2367
2389
  _: 1
@@ -2371,11 +2393,11 @@ ${j}${D}`, te(k.target), m(s.value, ye, ye);
2371
2393
  tip: "原始大小",
2372
2394
  shadow: !1
2373
2395
  }, {
2374
- default: I(() => [
2396
+ default: A(() => [
2375
2397
  T(c(Y), {
2376
2398
  text: "",
2377
2399
  icon: c(Ot),
2378
- onClick: _
2400
+ onClick: x
2379
2401
  }, null, 8, ["icon"])
2380
2402
  ]),
2381
2403
  _: 1
@@ -2384,7 +2406,7 @@ ${j}${D}`, te(k.target), m(s.value, ye, ye);
2384
2406
  tip: "全屏",
2385
2407
  shadow: !1
2386
2408
  }, {
2387
- default: I(() => [
2409
+ default: A(() => [
2388
2410
  T(c(Y), {
2389
2411
  text: "",
2390
2412
  icon: c(Pt),
@@ -2393,12 +2415,12 @@ ${j}${D}`, te(k.target), m(s.value, ye, ye);
2393
2415
  ]),
2394
2416
  _: 1
2395
2417
  })
2396
- ])) : M("", !0)
2418
+ ])) : D("", !0)
2397
2419
  ]),
2398
2420
  _: 1
2399
2421
  }, 8, ["visible", "keyboard", "mask-closeable"]));
2400
2422
  }
2401
- }), zn = ["src"], Tn = "sq-image-crop", Ae = 5, ka = /* @__PURE__ */ L({
2423
+ }), zn = ["src"], Tn = "sq-image-crop", De = 5, ka = /* @__PURE__ */ L({
2402
2424
  name: Tn,
2403
2425
  __name: "image-crop",
2404
2426
  props: {
@@ -2408,125 +2430,125 @@ ${j}${D}`, te(k.target), m(s.value, ye, ye);
2408
2430
  setup(d, { expose: o }) {
2409
2431
  const n = {};
2410
2432
  let e = 0, t, s = !1, l;
2411
- const u = d, i = R(1), a = R({ x: 0, y: 0 }), r = ue(null), f = ue(null), g = b(() => ({
2412
- transform: `scale(${i.value})`,
2433
+ const u = d, r = R(1), a = R({ x: 0, y: 0 }), i = ue(null), f = ue(null), g = b(() => ({
2434
+ transform: `scale(${r.value})`,
2413
2435
  marginInlineStart: `${a.value.x}px`,
2414
2436
  marginBlockStart: `${a.value.y}px`
2415
2437
  }));
2416
2438
  ie(() => {
2417
- document.addEventListener("mousemove", z), document.addEventListener("mouseup", q);
2439
+ document.addEventListener("mousemove", B), document.addEventListener("mouseup", z);
2418
2440
  }), he(() => {
2419
- document.removeEventListener("mousemove", z), document.removeEventListener("mouseup", q);
2441
+ document.removeEventListener("mousemove", B), document.removeEventListener("mouseup", z);
2420
2442
  });
2421
2443
  function h(y) {
2422
- a.value = { x: 0, y: 0 }, t = r.value.getBoundingClientRect();
2423
- const m = y.target, k = m.naturalWidth, _ = m.naturalHeight, B = t.width / k, O = t.height / _;
2424
- e = Math.max(B, O), i.value = e;
2444
+ a.value = { x: 0, y: 0 }, t = i.value.getBoundingClientRect();
2445
+ const m = y.target, k = m.naturalWidth, x = m.naturalHeight, S = t.width / k, N = t.height / x;
2446
+ e = Math.max(S, N), r.value = e;
2425
2447
  }
2426
2448
  function p(y) {
2427
- y.deltaY < 0 ? Q() : te();
2449
+ y.deltaY < 0 ? ee() : se();
2428
2450
  }
2429
- function x(y) {
2451
+ function $(y) {
2430
2452
  s = !0, n.x = y.x, n.y = y.y;
2431
2453
  }
2432
- function q() {
2454
+ function z() {
2433
2455
  s = !1;
2434
2456
  }
2435
- function z(y) {
2457
+ function B(y) {
2436
2458
  if (!s) return;
2437
2459
  const m = y.x - n.x, k = y.y - n.y;
2438
2460
  n.x = y.x, n.y = y.y;
2439
- const _ = a.value.x + m * 2, B = a.value.y + k * 2;
2440
- a.value.x = _, a.value.y = B, Z();
2461
+ const x = a.value.x + m * 2, S = a.value.y + k * 2;
2462
+ a.value.x = x, a.value.y = S, Z();
2441
2463
  }
2442
- function P(y) {
2464
+ function M(y) {
2443
2465
  y.touches.length === 1 ? (s = !0, n.x = y.touches[0].screenX, n.y = y.touches[0].screenY) : y.touches.length === 2 && (l = J(y.touches[0], y.touches[1]));
2444
2466
  }
2445
- function N() {
2467
+ function I() {
2446
2468
  s = !1, l = void 0;
2447
2469
  }
2448
- function H(y) {
2470
+ function j(y) {
2449
2471
  if (y.touches.length === 1) {
2450
2472
  if (!s) return;
2451
- const m = y.touches[0], k = m.screenX - n.x, _ = m.screenY - n.y;
2452
- a.value.x += k * 2, a.value.y += _ * 2, n.x = m.screenX, n.y = m.screenY;
2473
+ const m = y.touches[0], k = m.screenX - n.x, x = m.screenY - n.y;
2474
+ a.value.x += k * 2, a.value.y += x * 2, n.x = m.screenX, n.y = m.screenY;
2453
2475
  } else if (y.touches.length === 2) {
2454
2476
  if (!l) return;
2455
2477
  const m = J(y.touches[0], y.touches[1]), k = m / l;
2456
- let _ = i.value * k;
2457
- _ = Math.min(Ae, _), _ = Math.max(e, _), i.value = _, l = m;
2478
+ let x = r.value * k;
2479
+ x = Math.min(De, x), x = Math.max(e, x), r.value = x, l = m;
2458
2480
  }
2459
2481
  Z();
2460
2482
  }
2461
2483
  function J(y, m) {
2462
- const k = m.clientX - y.clientX, _ = m.clientY - y.clientY;
2463
- return Math.sqrt(k * k + _ * _);
2484
+ const k = m.clientX - y.clientX, x = m.clientY - y.clientY;
2485
+ return Math.sqrt(k * k + x * x);
2464
2486
  }
2465
- function Q() {
2466
- i.value >= Ae || (i.value = Math.min(Ae, i.value * (1 + 0.1)));
2487
+ function ee() {
2488
+ r.value >= De || (r.value = Math.min(De, r.value * (1 + 0.1)));
2467
2489
  }
2468
- function te() {
2469
- i.value <= e || (i.value = Math.max(e, i.value / (1 + 0.1)), Z());
2490
+ function se() {
2491
+ r.value <= e || (r.value = Math.max(e, r.value / (1 + 0.1)), Z());
2470
2492
  }
2471
2493
  function Z() {
2472
2494
  requestAnimationFrame(() => {
2473
2495
  const y = f.value.getBoundingClientRect(), m = y.left >= t.left, k = y.right <= t.right;
2474
2496
  m ? a.value.x -= (y.left - t.left) * 2 : k && (a.value.x += (t.right - y.right) * 2);
2475
- const _ = y.top >= t.top, B = y.bottom <= t.bottom;
2476
- _ ? a.value.y -= (y.top - t.top) * 2 : B && (a.value.y += (t.bottom - y.bottom) * 2);
2497
+ const x = y.top >= t.top, S = y.bottom <= t.bottom;
2498
+ x ? a.value.y -= (y.top - t.top) * 2 : S && (a.value.y += (t.bottom - y.bottom) * 2);
2477
2499
  });
2478
2500
  }
2479
2501
  async function w(y = "base64") {
2480
2502
  if (!u.src) return;
2481
- const m = f.value.naturalWidth, k = f.value.naturalHeight, _ = m / k, O = m > k && _ < u.aspectRatio || m < k && _ > u.aspectRatio ? m / k : 1, W = i.value / e / O;
2482
- let A = document.createElement("canvas");
2483
- const F = Math.min(m, k);
2484
- A.width = F, A.height = F / u.aspectRatio;
2485
- let C = A.getContext("2d");
2486
- const D = f.value.getBoundingClientRect(), j = (D.left - t.left) / i.value, se = (D.top - t.top) / i.value;
2487
- return C == null || C.drawImage(
2503
+ const m = f.value.naturalWidth, k = f.value.naturalHeight, x = m / k, N = m > k && x < u.aspectRatio || m < k && x > u.aspectRatio ? m / k : 1, H = r.value / e / N;
2504
+ let E = document.createElement("canvas");
2505
+ const U = Math.min(m, k);
2506
+ E.width = U, E.height = U / u.aspectRatio;
2507
+ let q = E.getContext("2d");
2508
+ const P = f.value.getBoundingClientRect(), W = (P.left - t.left) / r.value, Q = (P.top - t.top) / r.value;
2509
+ return q == null || q.drawImage(
2488
2510
  f.value,
2489
- j * W,
2490
- se * W,
2491
- m * W,
2492
- k * W
2511
+ W * H,
2512
+ Q * H,
2513
+ m * H,
2514
+ k * H
2493
2515
  ), new Promise((ye) => {
2494
- y === "base64" ? ye(A.toDataURL("image/png")) : A == null || A.toBlob((bt) => {
2516
+ y === "base64" ? ye(E.toDataURL("image/png")) : E == null || E.toBlob((bt) => {
2495
2517
  ye(bt ?? void 0);
2496
2518
  }, "image/png");
2497
2519
  }).finally(() => {
2498
- C = void 0, A = void 0;
2520
+ q = void 0, E = void 0;
2499
2521
  });
2500
2522
  }
2501
- return o({ cropImageAsync: w }), (y, m) => (v(), $("div", {
2523
+ return o({ cropImageAsync: w }), (y, m) => (v(), _("div", {
2502
2524
  class: "sq-image-crop",
2503
2525
  style: K({ "--image-crop-ratio": u.aspectRatio }),
2504
2526
  onWheelPassive: p,
2505
- onMousedown: me(x, ["prevent"]),
2506
- onTouchstartPassive: P,
2507
- onTouchmovePassive: H,
2508
- onTouchend: N
2527
+ onMousedown: me($, ["prevent"]),
2528
+ onTouchstartPassive: M,
2529
+ onTouchmovePassive: j,
2530
+ onTouchend: I
2509
2531
  }, [
2510
- E("div", {
2532
+ O("div", {
2511
2533
  class: "sq-image-crop-cropper",
2512
2534
  style: K(`${u.aspectRatio > 1 ? "width" : "height"}: 100%`),
2513
2535
  ref_key: "cropperRef",
2514
- ref: r
2536
+ ref: i
2515
2537
  }, null, 4),
2516
- u.src ? (v(), $("img", {
2538
+ u.src ? (v(), _("img", {
2517
2539
  key: 0,
2518
2540
  style: K(g.value),
2519
2541
  ref_key: "imgRef",
2520
2542
  ref: f,
2521
2543
  src: u.src,
2522
2544
  onLoad: h
2523
- }, null, 44, zn)) : M("", !0)
2545
+ }, null, 44, zn)) : D("", !0)
2524
2546
  ], 36));
2525
2547
  }
2526
2548
  }), Rn = {
2527
2549
  key: 0,
2528
2550
  class: "sq-input-prefix"
2529
- }, Ln = ["id", "disabled", "readonly", "placeholder", "type", "maxlength", "minlength", "autocomplete", "name", "autofocus", "form", "inputmode"], In = ["id", "disabled", "readonly", "placeholder", "type", "maxlength", "minlength", "autocomplete", "name", "autofocus", "form", "inputmode", "rows", "cols"], Mn = { class: "sq-input-suffix" }, En = "sq-input", je = /* @__PURE__ */ L({
2551
+ }, Ln = ["id", "disabled", "readonly", "placeholder", "type", "maxlength", "minlength", "autocomplete", "name", "autofocus", "form", "inputmode"], In = ["id", "disabled", "readonly", "placeholder", "type", "maxlength", "minlength", "autocomplete", "name", "autofocus", "form", "inputmode", "rows", "cols"], Mn = { class: "sq-input-suffix" }, En = "sq-input", We = /* @__PURE__ */ L({
2530
2552
  name: En,
2531
2553
  __name: "input",
2532
2554
  props: /* @__PURE__ */ G({
@@ -2557,58 +2579,58 @@ ${j}${D}`, te(k.target), m(s.value, ye, ye);
2557
2579
  }),
2558
2580
  emits: /* @__PURE__ */ G(["focus", "blur", "input", "change", "clear"], ["update:value"]),
2559
2581
  setup(d, { expose: o, emit: n }) {
2560
- const e = Re(), t = n, s = d, { inputSize: l, inputRound: u, inputDisabled: i, inputReadonly: a, id: r } = bs(s), f = le(d, "value"), g = R(!1), h = R(!1), p = ue(null), x = b(() => {
2561
- const A = [], F = c(l), C = c(u), D = c(Z);
2562
- return F !== "md" && A.push(`sq-input--${F}`), s.status && A.push(`is-${s.status}`), C && A.push("is-round"), D && A.push("is-disabled"), A;
2563
- }), q = b(() => c(h) ? lt : it), z = b(() => c(h) ? "text" : s.type), P = b(() => e.prefix || s.prefixIcon), N = b(() => c(g) && c(f).length), H = b(
2564
- () => s.type === "password" && c(N)
2565
- ), J = b(() => s.clearable && c(N)), Q = b(() => s.loading ? Me : s.suffixIcon), te = b(
2566
- () => c(H) || c(J) || c(Q) || e.suffix
2567
- ), Z = b(() => s.loading || c(i)), w = b(() => {
2582
+ const e = Le(), t = n, s = d, { inputSize: l, inputRound: u, inputDisabled: r, inputReadonly: a, id: i } = bs(s), f = le(d, "value"), g = R(!1), h = R(!1), p = ue(null), $ = b(() => {
2583
+ const E = [], U = c(l), q = c(u), P = c(Z);
2584
+ return U !== "md" && E.push(`sq-input--${U}`), s.status && E.push(`is-${s.status}`), q && E.push("is-round"), P && E.push("is-disabled"), E;
2585
+ }), z = b(() => c(h) ? lt : it), B = b(() => c(h) ? "text" : s.type), M = b(() => e.prefix || s.prefixIcon), I = b(() => c(g) && c(f).length), j = b(
2586
+ () => s.type === "password" && c(I)
2587
+ ), J = b(() => s.clearable && c(I)), ee = b(() => s.loading ? Ee : s.suffixIcon), se = b(
2588
+ () => c(j) || c(J) || c(ee) || e.suffix
2589
+ ), Z = b(() => s.loading || c(r)), w = b(() => {
2568
2590
  if (s.type === "textarea")
2569
2591
  return c(Z) || c(a) ? "none" : s.resize;
2570
2592
  });
2571
- function y(A) {
2572
- t("focus", A), !c(a) && (g.value = !0);
2593
+ function y(E) {
2594
+ t("focus", E), !c(a) && (g.value = !0);
2573
2595
  }
2574
- function m(A) {
2575
- t("blur", A), !c(a) && (g.value = !1);
2596
+ function m(E) {
2597
+ t("blur", E), !c(a) && (g.value = !1);
2576
2598
  }
2577
2599
  function k() {
2578
- setTimeout(O);
2600
+ setTimeout(N);
2579
2601
  }
2580
- function _() {
2602
+ function x() {
2581
2603
  f.value = "", t("clear");
2582
2604
  }
2583
- function B() {
2605
+ function S() {
2584
2606
  h.value = !h.value;
2585
2607
  }
2586
- function O() {
2587
- var A;
2588
- (A = p.value) == null || A.focus();
2608
+ function N() {
2609
+ var E;
2610
+ (E = p.value) == null || E.focus();
2589
2611
  }
2590
- function W() {
2591
- var A;
2592
- g.value = !1, (A = p.value) == null || A.blur();
2612
+ function H() {
2613
+ var E;
2614
+ g.value = !1, (E = p.value) == null || E.blur();
2593
2615
  }
2594
- return o({ focus: O, blur: W }), (A, F) => (v(), $("div", {
2595
- class: V(["sq-input", x.value]),
2616
+ return o({ focus: N, blur: H }), (E, U) => (v(), _("div", {
2617
+ class: V(["sq-input", $.value]),
2596
2618
  onMousedown: k
2597
2619
  }, [
2598
- P.value ? (v(), $("span", Rn, [
2599
- U(A.$slots, "prefix", {}, () => [
2600
- (v(), S(ce(s.prefixIcon)))
2620
+ M.value ? (v(), _("span", Rn, [
2621
+ F(E.$slots, "prefix", {}, () => [
2622
+ (v(), C(ce(s.prefixIcon)))
2601
2623
  ])
2602
- ])) : M("", !0),
2603
- s.type !== "textarea" ? ae((v(), $("input", {
2624
+ ])) : D("", !0),
2625
+ s.type !== "textarea" ? ae((v(), _("input", {
2604
2626
  key: 1,
2605
2627
  class: "sq-input-inner",
2606
- "onUpdate:modelValue": F[0] || (F[0] = (C) => f.value = C),
2607
- id: c(r),
2628
+ "onUpdate:modelValue": U[0] || (U[0] = (q) => f.value = q),
2629
+ id: c(i),
2608
2630
  disabled: Z.value,
2609
2631
  readonly: c(a),
2610
2632
  placeholder: s.placeholder,
2611
- type: z.value,
2633
+ type: B.value,
2612
2634
  maxlength: s.maxlength,
2613
2635
  minlength: s.minlength,
2614
2636
  autocomplete: s.autocomplete,
@@ -2620,20 +2642,20 @@ ${j}${D}`, te(k.target), m(s.value, ye, ye);
2620
2642
  ref: p,
2621
2643
  onFocus: y,
2622
2644
  onBlur: m,
2623
- onInput: F[1] || (F[1] = (C) => t("input", C)),
2624
- onChange: F[2] || (F[2] = (C) => t("change", C))
2645
+ onInput: U[1] || (U[1] = (q) => t("input", q)),
2646
+ onChange: U[2] || (U[2] = (q) => t("change", q))
2625
2647
  }, null, 40, Ln)), [
2626
2648
  [yt, f.value]
2627
- ]) : ae((v(), $("textarea", {
2649
+ ]) : ae((v(), _("textarea", {
2628
2650
  key: 2,
2629
2651
  class: "sq-input-inner",
2630
2652
  style: K({ resize: w.value }),
2631
- "onUpdate:modelValue": F[3] || (F[3] = (C) => f.value = C),
2632
- id: c(r),
2653
+ "onUpdate:modelValue": U[3] || (U[3] = (q) => f.value = q),
2654
+ id: c(i),
2633
2655
  disabled: Z.value,
2634
2656
  readonly: c(a),
2635
2657
  placeholder: s.placeholder,
2636
- type: z.value,
2658
+ type: B.value,
2637
2659
  maxlength: s.maxlength,
2638
2660
  minlength: s.minlength,
2639
2661
  autocomplete: s.autocomplete,
@@ -2647,27 +2669,27 @@ ${j}${D}`, te(k.target), m(s.value, ye, ye);
2647
2669
  ref: p,
2648
2670
  onFocus: y,
2649
2671
  onBlur: m,
2650
- onInput: F[4] || (F[4] = (C) => t("input", C)),
2651
- onChange: F[5] || (F[5] = (C) => t("change", C))
2672
+ onInput: U[4] || (U[4] = (q) => t("input", q)),
2673
+ onChange: U[5] || (U[5] = (q) => t("change", q))
2652
2674
  }, null, 44, In)), [
2653
2675
  [xt, f.value]
2654
2676
  ]),
2655
- ae(E("span", Mn, [
2656
- H.value ? (v(), S(ce(q.value), {
2677
+ ae(O("span", Mn, [
2678
+ j.value ? (v(), C(ce(z.value), {
2657
2679
  key: 0,
2658
2680
  class: "sq-input-suffix-pwd",
2659
- onMousedown: B
2660
- }, null, 32)) : M("", !0),
2661
- J.value ? (v(), S(c(Ue), {
2681
+ onMousedown: S
2682
+ }, null, 32)) : D("", !0),
2683
+ J.value ? (v(), C(c(Ue), {
2662
2684
  key: 1,
2663
2685
  class: "sq-input-suffix-clear",
2664
- onMousedown: _
2665
- })) : M("", !0),
2666
- U(A.$slots, "suffix", {}, () => [
2667
- Q.value ? (v(), S(ce(Q.value), { key: 0 })) : M("", !0)
2686
+ onMousedown: x
2687
+ })) : D("", !0),
2688
+ F(E.$slots, "suffix", {}, () => [
2689
+ ee.value ? (v(), C(ce(ee.value), { key: 0 })) : D("", !0)
2668
2690
  ])
2669
2691
  ], 512), [
2670
- [ve, te.value]
2692
+ [ve, se.value]
2671
2693
  ])
2672
2694
  ], 34));
2673
2695
  }
@@ -2685,63 +2707,63 @@ ${j}${D}`, te(k.target), m(s.value, ye, ye);
2685
2707
  emits: /* @__PURE__ */ G(["click", "change"], ["update:active"]),
2686
2708
  setup(d, { emit: o }) {
2687
2709
  const n = o, e = d, t = le(d, "active"), s = b(() => [`sq-menu--${e.direction}`]);
2688
- function l(i, a) {
2689
- i.disabled || a();
2710
+ function l(r, a) {
2711
+ r.disabled || a();
2690
2712
  }
2691
- function u(i, a) {
2692
- n("click", i.value, a), !(i.disabled || i.value === t.value) && (n("change", i.value), t.value = i.value);
2713
+ function u(r, a) {
2714
+ n("click", r.value, a), !(r.disabled || r.value === t.value) && (n("change", r.value), t.value = r.value);
2693
2715
  }
2694
- return (i, a) => (v(), $("menu", {
2716
+ return (r, a) => (v(), _("menu", {
2695
2717
  class: V(["sq-menu", s.value])
2696
2718
  }, [
2697
- e.router ? (v(!0), $(ee, { key: 0 }, de(e.items, (r) => (v(), S(c(Ht), {
2719
+ e.router ? (v(!0), _(te, { key: 0 }, de(e.items, (i) => (v(), C(c(Ht), {
2698
2720
  custom: "",
2699
- to: { name: r.value },
2700
- key: r.value
2721
+ to: { name: i.value },
2722
+ key: i.value
2701
2723
  }, {
2702
- default: I(({ navigate: f, isActive: g }) => [
2703
- E("li", {
2704
- class: V(["sq-menu-item", { "is-active": g, "is-disabled": r.disabled }]),
2705
- onClick: (h) => l(r, f)
2724
+ default: A(({ navigate: f, isActive: g }) => [
2725
+ O("li", {
2726
+ class: V(["sq-menu-item", { "is-active": g, "is-disabled": i.disabled }]),
2727
+ onClick: (h) => l(i, f)
2706
2728
  }, [
2707
- U(i.$slots, "default", fe({ ref_for: !0 }, r), () => [
2708
- r.icon ? (v(), S(ce(r.icon), { key: 0 })) : M("", !0),
2709
- E("span", {
2710
- textContent: X(r.text)
2729
+ F(r.$slots, "default", fe({ ref_for: !0 }, i), () => [
2730
+ i.icon ? (v(), C(ce(i.icon), { key: 0 })) : D("", !0),
2731
+ O("span", {
2732
+ textContent: X(i.text)
2711
2733
  }, null, 8, Dn),
2712
- e.direction === "vertical" ? ae((v(), S(c(Ze), {
2734
+ e.direction === "vertical" ? ae((v(), C(c(Ze), {
2713
2735
  key: 1,
2714
2736
  dot: "",
2715
2737
  "show-zero": "",
2716
2738
  type: "primary"
2717
2739
  }, null, 512)), [
2718
2740
  [ve, g]
2719
- ]) : M("", !0)
2741
+ ]) : D("", !0)
2720
2742
  ])
2721
2743
  ], 10, An)
2722
2744
  ]),
2723
2745
  _: 2
2724
- }, 1032, ["to"]))), 128)) : (v(!0), $(ee, { key: 1 }, de(e.items, (r) => (v(), $("li", {
2746
+ }, 1032, ["to"]))), 128)) : (v(!0), _(te, { key: 1 }, de(e.items, (i) => (v(), _("li", {
2725
2747
  class: V(["sq-menu-item", {
2726
- "is-active": t.value === r.value,
2727
- "is-disabled": r.disabled
2748
+ "is-active": t.value === i.value,
2749
+ "is-disabled": i.disabled
2728
2750
  }]),
2729
- key: r.value,
2730
- onClick: (f) => u(r, f)
2751
+ key: i.value,
2752
+ onClick: (f) => u(i, f)
2731
2753
  }, [
2732
- U(i.$slots, "default", fe({ ref_for: !0 }, r), () => [
2733
- r.icon ? (v(), S(ce(r.icon), { key: 0 })) : M("", !0),
2734
- E("span", {
2735
- textContent: X(r.text)
2754
+ F(r.$slots, "default", fe({ ref_for: !0 }, i), () => [
2755
+ i.icon ? (v(), C(ce(i.icon), { key: 0 })) : D("", !0),
2756
+ O("span", {
2757
+ textContent: X(i.text)
2736
2758
  }, null, 8, Pn),
2737
- e.direction === "vertical" ? ae((v(), S(c(Ze), {
2759
+ e.direction === "vertical" ? ae((v(), C(c(Ze), {
2738
2760
  key: 1,
2739
2761
  dot: "",
2740
2762
  "show-zero": "",
2741
2763
  type: "primary"
2742
2764
  }, null, 512)), [
2743
- [ve, t.value === r.value]
2744
- ]) : M("", !0)
2765
+ [ve, t.value === i.value]
2766
+ ]) : D("", !0)
2745
2767
  ])
2746
2768
  ], 10, On))), 128))
2747
2769
  ], 2));
@@ -2766,25 +2788,25 @@ ${j}${D}`, te(k.target), m(s.value, ye, ye);
2766
2788
  function s() {
2767
2789
  e.value = !1;
2768
2790
  }
2769
- return o({ close: s }), (l, u) => (v(), S(be, {
2791
+ return o({ close: s }), (l, u) => (v(), C(be, {
2770
2792
  appear: "",
2771
2793
  name: "sq-zoom-top",
2772
2794
  onBeforeLeave: n.onClose,
2773
2795
  onAfterLeave: n.onDestroy
2774
2796
  }, {
2775
- default: I(() => [
2776
- ae(E("div", {
2797
+ default: A(() => [
2798
+ ae(O("div", {
2777
2799
  class: V(["sq-message", `is-${n.type}`]),
2778
2800
  id: n.id,
2779
2801
  style: K({ top: `${n.offsetTop}px` })
2780
2802
  }, [
2781
2803
  T(c(ge), { class: "sq-message-inner" }, {
2782
- default: I(() => [
2783
- n.type && t.value ? (v(), S(ce(t.value), {
2804
+ default: A(() => [
2805
+ n.type && t.value ? (v(), C(ce(t.value), {
2784
2806
  key: 0,
2785
2807
  class: "sq-message-icon"
2786
- })) : M("", !0),
2787
- E("div", {
2808
+ })) : D("", !0),
2809
+ O("div", {
2788
2810
  class: "sq-message-content",
2789
2811
  textContent: X(n.message)
2790
2812
  }, null, 8, Fn)
@@ -2798,16 +2820,16 @@ ${j}${D}`, te(k.target), m(s.value, ye, ye);
2798
2820
  _: 1
2799
2821
  }, 8, ["onBeforeLeave", "onAfterLeave"]));
2800
2822
  }
2801
- }), { getCssVar: Wn } = Ve(), { nextZIndex: jn } = He(), $e = [], Xn = ["primary", "success", "info", "warn", "error"], De = parseInt(Wn("--sq-padding-md"));
2823
+ }), { getCssVar: jn } = Ve(), { nextZIndex: Wn } = He(), $e = [], Xn = ["primary", "success", "info", "warn", "error"], Oe = parseInt(jn("--sq-padding-md"));
2802
2824
  let Yn = 0;
2803
2825
  const Pe = (d = {}) => {
2804
2826
  const o = `sq-message-${Yn++}`;
2805
2827
  let n = document.querySelector(".sq-message-wrap");
2806
- n || (n = document.createElement("div"), n.classList.add("sq-message-wrap"), document.body.appendChild(n)), n.style.zIndex = jn().toString();
2807
- let e = De;
2828
+ n || (n = document.createElement("div"), n.classList.add("sq-message-wrap"), document.body.appendChild(n)), n.style.zIndex = Wn().toString();
2829
+ let e = Oe;
2808
2830
  $e.forEach((a) => {
2809
- var r;
2810
- e += (((r = a.vm.el) == null ? void 0 : r.offsetHeight) || 0) + De;
2831
+ var i;
2832
+ e += (((i = a.vm.el) == null ? void 0 : i.offsetHeight) || 0) + Oe;
2811
2833
  });
2812
2834
  const t = {
2813
2835
  type: "info",
@@ -2822,23 +2844,23 @@ const Pe = (d = {}) => {
2822
2844
  t.onClose = () => {
2823
2845
  l == null || l();
2824
2846
  const a = $e.findIndex(
2825
- (h) => h.vm.component.props.id === i.component.props.id
2847
+ (h) => h.vm.component.props.id === r.component.props.id
2826
2848
  ), f = $e.splice(a, 1)[0].vm.el.offsetHeight;
2827
2849
  if (!($e.length < 1))
2828
2850
  for (const h of $e) {
2829
2851
  let p = Number(parseInt(h.vm.el.style.top));
2830
- p -= f, p -= De, h.vm.component.props.offsetTop = p;
2852
+ p -= f, p -= Oe, h.vm.component.props.offsetTop = p;
2831
2853
  }
2832
2854
  };
2833
2855
  const u = t.onDestroy;
2834
2856
  t.onDestroy = () => {
2835
- u == null || u(), Ie(null, s), s.remove(), s = null;
2857
+ u == null || u(), Me(null, s), s.remove(), s = null;
2836
2858
  };
2837
- const i = T(Hn, t);
2838
- return Ie(i, s), $e.push({ vm: i }), n.appendChild(s.firstElementChild), {
2859
+ const r = T(Hn, t);
2860
+ return Me(r, s), $e.push({ vm: r }), n.appendChild(s.firstElementChild), {
2839
2861
  close: () => {
2840
- var a, r;
2841
- (r = (a = i.component) == null ? void 0 : a.exposed) == null || r.close();
2862
+ var a, i;
2863
+ (i = (a = r.component) == null ? void 0 : a.exposed) == null || i.close();
2842
2864
  }
2843
2865
  };
2844
2866
  };
@@ -2870,7 +2892,7 @@ const qa = Pe, Kn = ["textContent"], Gn = "sq-message-box", Zn = /* @__PURE__ */
2870
2892
  function t() {
2871
2893
  e.value = !1;
2872
2894
  }
2873
- return o({ close: t }), (s, l) => (v(), S(c(js), {
2895
+ return o({ close: t }), (s, l) => (v(), C(c(Ws), {
2874
2896
  visible: e.value,
2875
2897
  "onUpdate:visible": l[0] || (l[0] = (u) => e.value = u),
2876
2898
  type: n.type,
@@ -2883,8 +2905,8 @@ const qa = Pe, Kn = ["textContent"], Gn = "sq-message-box", Zn = /* @__PURE__ */
2883
2905
  onOk: n.onOk,
2884
2906
  onClosed: n.onDestroy
2885
2907
  }, {
2886
- default: I(() => [
2887
- E("span", {
2908
+ default: A(() => [
2909
+ O("span", {
2888
2910
  textContent: X(n.message)
2889
2911
  }, null, 8, Kn)
2890
2912
  ]),
@@ -2899,11 +2921,11 @@ const qa = Pe, Kn = ["textContent"], Gn = "sq-message-box", Zn = /* @__PURE__ */
2899
2921
  ...o
2900
2922
  }, e = n.onDestroy;
2901
2923
  n.onDestroy = () => {
2902
- e == null || e(), Ie(null, t), t.remove(), t = null;
2924
+ e == null || e(), Me(null, t), t.remove(), t = null;
2903
2925
  };
2904
2926
  let t = document.createElement("div");
2905
2927
  const s = T(Zn, n);
2906
- return Ie(s, t), {
2928
+ return Me(s, t), {
2907
2929
  close: () => {
2908
2930
  var l, u;
2909
2931
  (u = (l = s.component) == null ? void 0 : l.exposed) == null || u.close();
@@ -2927,7 +2949,7 @@ const qa = Pe, Kn = ["textContent"], Gn = "sq-message-box", Zn = /* @__PURE__ */
2927
2949
  const o = d, n = le(d, "current"), e = (t) => {
2928
2950
  n.value += t;
2929
2951
  };
2930
- return (t, s) => (v(), S(c(Y), {
2952
+ return (t, s) => (v(), C(c(Y), {
2931
2953
  icon: c(rt),
2932
2954
  size: o.size,
2933
2955
  disabled: n.value === 1 || o.disabled,
@@ -2950,7 +2972,7 @@ const qa = Pe, Kn = ["textContent"], Gn = "sq-message-box", Zn = /* @__PURE__ */
2950
2972
  const o = d, n = le(d, "current"), e = (t) => {
2951
2973
  n.value += t;
2952
2974
  };
2953
- return (t, s) => (v(), S(c(Y), {
2975
+ return (t, s) => (v(), C(c(Y), {
2954
2976
  icon: c(ut),
2955
2977
  size: o.size,
2956
2978
  disabled: n.value === o.maxPage || o.disabled,
@@ -2973,20 +2995,20 @@ const qa = Pe, Kn = ["textContent"], Gn = "sq-message-box", Zn = /* @__PURE__ */
2973
2995
  const o = d, n = le(d, "current"), e = (t) => {
2974
2996
  n.value = t;
2975
2997
  };
2976
- return (t, s) => (v(), $("div", no, [
2977
- (v(!0), $(ee, null, de(o.list, (l) => (v(), $(ee, { key: l }, [
2978
- l ? (v(), S(c(Y), {
2998
+ return (t, s) => (v(), _("div", no, [
2999
+ (v(!0), _(te, null, de(o.list, (l) => (v(), _(te, { key: l }, [
3000
+ l ? (v(), C(c(Y), {
2979
3001
  key: 0,
2980
3002
  type: n.value === l ? "primary" : void 0,
2981
3003
  size: o.size,
2982
3004
  disabled: o.disabled,
2983
3005
  onClick: (u) => e(l)
2984
3006
  }, {
2985
- default: I(() => [
2986
- Te(X(l), 1)
3007
+ default: A(() => [
3008
+ Re(X(l), 1)
2987
3009
  ]),
2988
3010
  _: 2
2989
- }, 1032, ["type", "size", "disabled", "onClick"])) : (v(), S(c(Y), {
3011
+ }, 1032, ["type", "size", "disabled", "onClick"])) : (v(), C(c(Y), {
2990
3012
  key: 1,
2991
3013
  icon: c(Nt),
2992
3014
  size: o.size,
@@ -3004,11 +3026,11 @@ const qa = Pe, Kn = ["textContent"], Gn = "sq-message-box", Zn = /* @__PURE__ */
3004
3026
  },
3005
3027
  setup(d) {
3006
3028
  const o = d;
3007
- return (n, e) => (v(), S(c(ge), {
3029
+ return (n, e) => (v(), C(c(ge), {
3008
3030
  size: o.size === "sm" ? "sm" : "md"
3009
3031
  }, {
3010
- default: I(() => [
3011
- E("span", null, "共 " + X(o.total) + " 条", 1)
3032
+ default: A(() => [
3033
+ O("span", null, "共 " + X(o.total) + " 条", 1)
3012
3034
  ]),
3013
3035
  _: 1
3014
3036
  }, 8, ["size"]));
@@ -3031,41 +3053,41 @@ const qa = Pe, Kn = ["textContent"], Gn = "sq-message-box", Zn = /* @__PURE__ */
3031
3053
  emits: ["update:current", "update:pageSize"],
3032
3054
  setup(d) {
3033
3055
  const o = d, n = le(d, "current"), e = le(d, "pageSize"), t = b(() => Math.ceil(o.total / e.value) || 1), s = b(() => {
3034
- const u = [], i = Math.floor(o.pagerCount / 2) - 1;
3035
- let a = n.value - i, r = n.value + i;
3036
- a < 2 && (a = 2, r = a + i * 2), r > t.value - 1 && (r = t.value - 1, a = r - i * 2);
3056
+ const u = [], r = Math.floor(o.pagerCount / 2) - 1;
3057
+ let a = n.value - r, i = n.value + r;
3058
+ a < 2 && (a = 2, i = a + r * 2), i > t.value - 1 && (i = t.value - 1, a = i - r * 2);
3037
3059
  for (let f = 1; f <= t.value; f++)
3038
- f === 1 || f === t.value || f >= a && f <= r ? u.push(f) : (f === a - 1 || f === r + 1) && u.push(0);
3060
+ f === 1 || f === t.value || f >= a && f <= i ? u.push(f) : (f === a - 1 || f === i + 1) && u.push(0);
3039
3061
  return u;
3040
3062
  }), l = b(() => {
3041
- const u = o.layout ?? ["prev", "pager", "next"], i = [];
3063
+ const u = o.layout ?? ["prev", "pager", "next"], r = [];
3042
3064
  for (const a of u)
3043
3065
  switch (a) {
3044
3066
  case "prev":
3045
- i.push(eo);
3067
+ r.push(eo);
3046
3068
  break;
3047
3069
  case "pager":
3048
- i.push(ao);
3070
+ r.push(ao);
3049
3071
  break;
3050
3072
  case "next":
3051
- i.push(so);
3073
+ r.push(so);
3052
3074
  break;
3053
3075
  case "total":
3054
- i.push(io);
3076
+ r.push(io);
3055
3077
  break;
3056
3078
  }
3057
- return i;
3079
+ return r;
3058
3080
  });
3059
- return (u, i) => (v(), $("div", ro, [
3060
- (v(!0), $(ee, null, de(l.value, (a, r) => (v(), S(ce(a), {
3061
- key: r,
3081
+ return (u, r) => (v(), _("div", ro, [
3082
+ (v(!0), _(te, null, de(l.value, (a, i) => (v(), C(ce(a), {
3083
+ key: i,
3062
3084
  size: o.size,
3063
3085
  disabled: o.disabled,
3064
3086
  list: s.value,
3065
3087
  "max-page": t.value,
3066
3088
  total: o.total,
3067
3089
  current: n.value,
3068
- "onUpdate:current": i[0] || (i[0] = (f) => n.value = f)
3090
+ "onUpdate:current": r[0] || (r[0] = (f) => n.value = f)
3069
3091
  }, null, 40, ["size", "disabled", "list", "max-page", "total", "current"]))), 128))
3070
3092
  ]));
3071
3093
  }
@@ -3094,7 +3116,7 @@ function vt(d) {
3094
3116
  case $t:
3095
3117
  case "svg":
3096
3118
  return Je(o);
3097
- case ee:
3119
+ case te:
3098
3120
  return vt(o.children);
3099
3121
  default:
3100
3122
  return o;
@@ -3127,8 +3149,8 @@ const po = "sq-popover", mt = /* @__PURE__ */ L({
3127
3149
  emits: /* @__PURE__ */ G(["openChange"], ["update:visible"]),
3128
3150
  setup(d, { emit: o }) {
3129
3151
  const { getCssVar: n } = Ve(), { nextZIndex: e } = He(), t = Ne(), s = parseInt(n("--sq-padding-sm")), l = parseInt(n("--sq-padding-md"));
3130
- let u, i, a = !1;
3131
- const r = o, f = d, g = le(d, "visible"), h = R(0), p = R({}), x = R(!1), q = ue(null), z = ue(null), P = b(() => {
3152
+ let u, r, a = !1;
3153
+ const i = o, f = d, g = le(d, "visible"), h = R(0), p = R({}), $ = R(!1), z = ue(null), B = ue(null), M = b(() => {
3132
3154
  const y = [];
3133
3155
  return f.shadow && y.push("has-shadow"), [y];
3134
3156
  });
@@ -3137,88 +3159,88 @@ const po = "sq-popover", mt = /* @__PURE__ */ L({
3137
3159
  a = y, w();
3138
3160
  const m = y ? f.showAfter : f.hideAfter;
3139
3161
  u = setTimeout(() => {
3140
- x.value = y;
3162
+ $.value = y;
3141
3163
  }, m);
3142
- }), oe(x, (y) => {
3143
- y ? (h.value = e(), Z(), i = Wt(
3144
- q.value.$el,
3145
- z.value,
3164
+ }), oe($, (y) => {
3165
+ y ? (h.value = e(), Z(), r = jt(
3166
+ z.value.$el,
3167
+ B.value,
3146
3168
  Z
3147
- )) : i == null || i(), r("openChange", y);
3169
+ )) : r == null || r(), i("openChange", y);
3148
3170
  }), ie(() => {
3149
3171
  Z();
3150
3172
  }), he(() => {
3151
- w(), document.removeEventListener("click", te);
3173
+ w(), document.removeEventListener("click", se);
3152
3174
  });
3153
- function N() {
3154
- f.trigger !== "hover" || f.disabled || Q(!1);
3175
+ function I() {
3176
+ f.trigger !== "hover" || f.disabled || ee(!1);
3155
3177
  }
3156
- function H() {
3157
- f.trigger === "hover" && te();
3178
+ function j() {
3179
+ f.trigger === "hover" && se();
3158
3180
  }
3159
3181
  function J(y) {
3160
- f.trigger === "click" && !f.disabled && !g.value && (y.stopPropagation(), Q());
3182
+ f.trigger === "click" && !f.disabled && !g.value && (y.stopPropagation(), ee());
3161
3183
  }
3162
- function Q(y = !0) {
3163
- g.value = !0, y && document.addEventListener("click", te);
3184
+ function ee(y = !0) {
3185
+ g.value = !0, y && document.addEventListener("click", se);
3164
3186
  }
3165
- function te() {
3166
- g.value = !1, document.removeEventListener("click", te);
3187
+ function se() {
3188
+ g.value = !1, document.removeEventListener("click", se);
3167
3189
  }
3168
3190
  async function Z() {
3169
- var O, W;
3170
- const y = typeof ((O = q.value) == null ? void 0 : O.$el.getBoundingClientRect), m = typeof ((W = z.value) == null ? void 0 : W.getBoundingClientRect);
3191
+ var N, H;
3192
+ const y = typeof ((N = z.value) == null ? void 0 : N.$el.getBoundingClientRect), m = typeof ((H = B.value) == null ? void 0 : H.getBoundingClientRect);
3171
3193
  if (y !== "function" || m !== "function") return;
3172
- const k = await jt(q.value.$el, z.value, {
3194
+ const k = await Wt(z.value.$el, B.value, {
3173
3195
  placement: f.placement,
3174
3196
  middleware: [
3175
3197
  Xt(f.offset ?? s),
3176
3198
  Yt(),
3177
3199
  Kt({ padding: l })
3178
3200
  ]
3179
- }), { x: _, y: B } = k;
3201
+ }), { x, y: S } = k;
3180
3202
  p.value = {
3181
- left: `${_}px`,
3182
- top: `${B}px`
3203
+ left: `${x}px`,
3204
+ top: `${S}px`
3183
3205
  };
3184
3206
  }
3185
3207
  function w() {
3186
3208
  u && (clearTimeout(u), u = void 0);
3187
3209
  }
3188
- return (y, m) => (v(), $(ee, null, [
3210
+ return (y, m) => (v(), _(te, null, [
3189
3211
  T(c(fo), {
3190
3212
  class: V(["sq-popover-trigger", c(t).class]),
3191
3213
  style: K(c(t).style),
3192
3214
  ref_key: "triggerRef",
3193
- ref: q,
3194
- onMouseenter: N,
3195
- onMouseleave: H,
3215
+ ref: z,
3216
+ onMouseenter: I,
3217
+ onMouseleave: j,
3196
3218
  onClick: J
3197
3219
  }, {
3198
- default: I(() => [
3199
- U(y.$slots, "reference")
3220
+ default: A(() => [
3221
+ F(y.$slots, "reference")
3200
3222
  ]),
3201
3223
  _: 3
3202
3224
  }, 8, ["class", "style"]),
3203
- (v(), S(et, {
3225
+ (v(), C(et, {
3204
3226
  to: "body",
3205
3227
  disabled: !f.teleported
3206
3228
  }, [
3207
3229
  T(be, {
3208
3230
  name: f.transition
3209
3231
  }, {
3210
- default: I(() => [
3211
- ae(E("div", {
3212
- class: V(["sq-popover", [P.value, f.popoverClass]]),
3232
+ default: A(() => [
3233
+ ae(O("div", {
3234
+ class: V(["sq-popover", [M.value, f.popoverClass]]),
3213
3235
  style: K([{ ...p.value, zIndex: h.value }, f.popoverStyle]),
3214
3236
  ref_key: "popverRef",
3215
- ref: z,
3237
+ ref: B,
3216
3238
  onClick: m[0] || (m[0] = me(() => {
3217
3239
  }, ["stop"]))
3218
3240
  }, [
3219
- U(y.$slots, "default")
3241
+ F(y.$slots, "default")
3220
3242
  ], 6), [
3221
- [ve, x.value]
3243
+ [ve, $.value]
3222
3244
  ])
3223
3245
  ]),
3224
3246
  _: 3
@@ -3244,24 +3266,24 @@ const po = "sq-popover", mt = /* @__PURE__ */ L({
3244
3266
  },
3245
3267
  setup(d) {
3246
3268
  const o = new ResizeObserver(a), n = d, e = R(100), t = ue(null), s = b(() => {
3247
- const r = [];
3248
- return n.color || r.push(`is-${n.type}`), n.variant && r.push(`is-${n.variant}`), r;
3269
+ const i = [];
3270
+ return n.color || i.push(`is-${n.type}`), n.variant && i.push(`is-${n.variant}`), i;
3249
3271
  }), l = b(() => {
3250
- const r = n.max - n.min;
3251
- return (n.value - n.min) * 100 / r;
3252
- }), u = b(() => `${Math.round(l.value * 10) / 10} %`), i = b(() => {
3253
- const r = {};
3254
- if (r["--progress-stroke"] = `${n.stroke}px`, !n.variant)
3255
- r["--progress-value"] = `${l.value}%`;
3272
+ const i = n.max - n.min;
3273
+ return (n.value - n.min) * 100 / i;
3274
+ }), u = b(() => `${Math.round(l.value * 10) / 10} %`), r = b(() => {
3275
+ const i = {};
3276
+ if (i["--progress-stroke"] = `${n.stroke}px`, !n.variant)
3277
+ i["--progress-value"] = `${l.value}%`;
3256
3278
  else if (t.value) {
3257
3279
  const f = 100 / e.value * n.stroke, g = (100 - f) / 2, h = Math.PI * g * 2, p = l.value / 100;
3258
- r["--progress-circle-r"] = `${g}px`, r["--progress-circle-l"] = `${h}px`, r["--progress-circle-stroke"] = `${f}px`, r["--progress-value"] = `${h * p}`, l.value === 0 && (r["--progress-circle-opaciry"] = "0");
3280
+ i["--progress-circle-r"] = `${g}px`, i["--progress-circle-l"] = `${h}px`, i["--progress-circle-stroke"] = `${f}px`, i["--progress-value"] = `${h * p}`, l.value === 0 && (i["--progress-circle-opaciry"] = "0");
3259
3281
  }
3260
3282
  if (n.color) {
3261
3283
  const g = typeof n.color == "string" ? n.color : n.color(l.value);
3262
- r["--progress-color"] = g;
3284
+ i["--progress-color"] = g;
3263
3285
  }
3264
- return r;
3286
+ return i;
3265
3287
  });
3266
3288
  ie(() => {
3267
3289
  o.observe(t.value);
@@ -3271,37 +3293,37 @@ const po = "sq-popover", mt = /* @__PURE__ */ L({
3271
3293
  function a() {
3272
3294
  e.value = t.value.getBoundingClientRect().width;
3273
3295
  }
3274
- return (r, f) => (v(), $("div", {
3296
+ return (i, f) => (v(), _("div", {
3275
3297
  class: V(["sq-progress", s.value]),
3276
3298
  ref_key: "progressRef",
3277
3299
  ref: t,
3278
- style: K(i.value)
3300
+ style: K(r.value)
3279
3301
  }, [
3280
- n.variant === "circle" ? (v(), $(ee, { key: 0 }, [
3281
- f[0] || (f[0] = E("svg", {
3302
+ n.variant === "circle" ? (v(), _(te, { key: 0 }, [
3303
+ f[0] || (f[0] = O("svg", {
3282
3304
  viewBox: "0 0 100 100",
3283
3305
  version: "1.1",
3284
3306
  xmlns: "http://www.w3.org/2000/svg"
3285
3307
  }, [
3286
- E("circle", {
3308
+ O("circle", {
3287
3309
  class: "sq-progress-track",
3288
3310
  cx: "50",
3289
3311
  cy: "50"
3290
3312
  }),
3291
- E("circle", {
3313
+ O("circle", {
3292
3314
  class: "sq-progress-path",
3293
3315
  cx: "50",
3294
3316
  cy: "50"
3295
3317
  })
3296
3318
  ], -1)),
3297
- n.label ? (v(), $("div", vo, [
3298
- U(r.$slots, "default", { percentage: l.value }, () => [
3299
- E("span", {
3319
+ n.label ? (v(), _("div", vo, [
3320
+ F(i.$slots, "default", { percentage: l.value }, () => [
3321
+ O("span", {
3300
3322
  textContent: X(u.value)
3301
3323
  }, null, 8, mo)
3302
3324
  ])
3303
- ])) : M("", !0)
3304
- ], 64)) : M("", !0)
3325
+ ])) : D("", !0)
3326
+ ], 64)) : D("", !0)
3305
3327
  ], 6));
3306
3328
  }
3307
3329
  }), bo = ["autofocus", "name", "form", "value", "disabled"], yo = {
@@ -3330,44 +3352,44 @@ const po = "sq-popover", mt = /* @__PURE__ */ L({
3330
3352
  radioDisabled: s,
3331
3353
  radioForm: l,
3332
3354
  radioName: u,
3333
- radioVariant: i,
3355
+ radioVariant: r,
3334
3356
  groupContext: a
3335
- } = ys(e), r = R(), f = le(d, "checked"), g = b(() => {
3336
- const p = [], x = c(t), q = c(s), z = c(i);
3337
- return x !== "md" && p.push(`sq-selection--${x}`), h.value && p.push("is-checked"), q && p.push("is-disabled"), z && p.push(`is-${z}`), p;
3357
+ } = ys(e), i = R(), f = le(d, "checked"), g = b(() => {
3358
+ const p = [], $ = c(t), z = c(s), B = c(r);
3359
+ return $ !== "md" && p.push(`sq-selection--${$}`), h.value && p.push("is-checked"), z && p.push("is-disabled"), B && p.push(`is-${B}`), p;
3338
3360
  }), h = b(() => a ? c(a).checked === e.value : f.value);
3339
- return oe(r, (p) => {
3361
+ return oe(i, (p) => {
3340
3362
  f.value = p === e.value;
3341
3363
  }), oe(h, (p) => {
3342
- if (p ? r.value = e.value ?? "on" : r.value = void 0, f.value !== p) {
3364
+ if (p ? i.value = e.value ?? "on" : i.value = void 0, f.value !== p) {
3343
3365
  f.value = p;
3344
3366
  return;
3345
3367
  }
3346
3368
  }), oe(f, (p) => {
3347
3369
  h.value !== p && a && a.value.toggleItem(e.value);
3348
3370
  }), ie(() => {
3349
- f.value = h.value, r.value = f.value ? e.value ?? "on" : void 0;
3350
- }), (p, x) => (v(), $("label", {
3371
+ f.value = h.value, i.value = f.value ? e.value ?? "on" : void 0;
3372
+ }), (p, $) => (v(), _("label", {
3351
3373
  class: V(["sq-selection sq-radio", g.value])
3352
3374
  }, [
3353
- ae(E("input", {
3375
+ ae(O("input", {
3354
3376
  type: "radio",
3355
3377
  autofocus: e.autofocus,
3356
3378
  name: c(u),
3357
3379
  form: c(l),
3358
3380
  value: e.value,
3359
3381
  disabled: c(s),
3360
- "onUpdate:modelValue": x[0] || (x[0] = (q) => r.value = q),
3361
- onChange: x[1] || (x[1] = (q) => n("change", h.value))
3382
+ "onUpdate:modelValue": $[0] || ($[0] = (z) => i.value = z),
3383
+ onChange: $[1] || ($[1] = (z) => n("change", h.value))
3362
3384
  }, null, 40, bo), [
3363
- [tt, r.value]
3385
+ [tt, i.value]
3364
3386
  ]),
3365
- c(i) !== "solid" ? (v(), $("span", yo)) : M("", !0),
3366
- e.label ? (v(), $("span", {
3387
+ c(r) !== "solid" ? (v(), _("span", yo)) : D("", !0),
3388
+ e.label ? (v(), _("span", {
3367
3389
  key: 1,
3368
3390
  class: "sq-selection-label",
3369
3391
  textContent: X(e.label)
3370
- }, null, 8, xo)) : M("", !0)
3392
+ }, null, 8, xo)) : D("", !0)
3371
3393
  ], 2));
3372
3394
  }
3373
3395
  }), ko = { class: "sq-radio-group sq-selection-group" }, wo = "sq-radio-group", qo = /* @__PURE__ */ L({
@@ -3384,7 +3406,7 @@ const po = "sq-popover", mt = /* @__PURE__ */ L({
3384
3406
  },
3385
3407
  emits: ["change", "update:value"],
3386
3408
  setup(d, { emit: o }) {
3387
- const { nextId: n } = Ee(), e = o, t = d, s = R(t.value), l = b(() => t.name ?? `sq-radio-${n()}`);
3409
+ const { nextId: n } = Ae(), e = o, t = d, s = R(t.value), l = b(() => t.name ?? `sq-radio-${n()}`);
3388
3410
  qe(
3389
3411
  ht,
3390
3412
  R({
@@ -3398,19 +3420,19 @@ const po = "sq-popover", mt = /* @__PURE__ */ L({
3398
3420
  })
3399
3421
  ), oe(
3400
3422
  () => t.value,
3401
- (i) => {
3402
- i !== s.value && (s.value = i);
3423
+ (r) => {
3424
+ r !== s.value && (s.value = r);
3403
3425
  }
3404
3426
  );
3405
- function u(i) {
3406
- s.value = i, e("change", s.value), e("update:value", s.value);
3427
+ function u(r) {
3428
+ s.value = r, e("change", s.value), e("update:value", s.value);
3407
3429
  }
3408
- return (i, a) => (v(), $("div", ko, [
3409
- U(i.$slots, "default", {}, () => [
3410
- (v(!0), $(ee, null, de(t.items, (r, f) => (v(), S(c($o), {
3430
+ return (r, a) => (v(), _("div", ko, [
3431
+ F(r.$slots, "default", {}, () => [
3432
+ (v(!0), _(te, null, de(t.items, (i, f) => (v(), C(c($o), {
3411
3433
  key: f,
3412
- label: r.toString(),
3413
- value: r
3434
+ label: i.toString(),
3435
+ value: i
3414
3436
  }, null, 8, ["label", "value"]))), 128))
3415
3437
  ])
3416
3438
  ]));
@@ -3428,13 +3450,13 @@ const po = "sq-popover", mt = /* @__PURE__ */ L({
3428
3450
  },
3429
3451
  emits: ["change", "update:value"],
3430
3452
  setup(d, { emit: o }) {
3431
- const { nextId: n } = Ee(), e = o, t = d, s = R(t.value), l = R(), u = R(), i = b(() => t.items.length && typeof t.items[0] == "string" ? t.items.map((p) => ({
3453
+ const { nextId: n } = Ae(), e = o, t = d, s = R(t.value), l = R(), u = R(), r = b(() => t.items.length && typeof t.items[0] == "string" ? t.items.map((p) => ({
3432
3454
  text: p,
3433
3455
  value: p
3434
3456
  })) : t.items), a = b(() => {
3435
3457
  const p = [];
3436
3458
  return t.size !== "md" && p.push(`sq-segmented--${t.size}`), t.round && p.push("is-round"), p;
3437
- }), r = b(() => {
3459
+ }), i = b(() => {
3438
3460
  const p = {};
3439
3461
  return l.value && (p.width = `${l.value}px`), u.value && (p.left = `${u.value}px`), p;
3440
3462
  }), f = b(() => t.name ?? `sq-segmented-${n()}`);
@@ -3457,7 +3479,7 @@ const po = "sq-popover", mt = /* @__PURE__ */ L({
3457
3479
  }
3458
3480
  ), ie(() => {
3459
3481
  var p;
3460
- s.value || (s.value = (p = i.value[0]) == null ? void 0 : p.value);
3482
+ s.value || (s.value = (p = r.value[0]) == null ? void 0 : p.value);
3461
3483
  });
3462
3484
  function g(p) {
3463
3485
  s.value = p;
@@ -3465,17 +3487,17 @@ const po = "sq-popover", mt = /* @__PURE__ */ L({
3465
3487
  function h(p) {
3466
3488
  u.value = p == null ? void 0 : p.offsetLeft, l.value = p == null ? void 0 : p.clientWidth;
3467
3489
  }
3468
- return (p, x) => (v(), $("div", {
3490
+ return (p, $) => (v(), _("div", {
3469
3491
  class: V(["sq-segmented", a.value])
3470
3492
  }, [
3471
- E("div", {
3493
+ O("div", {
3472
3494
  class: "sq-segmented-thumb",
3473
- style: K(r.value)
3495
+ style: K(i.value)
3474
3496
  }, null, 4),
3475
- U(p.$slots, "default", {}, () => [
3476
- (v(!0), $(ee, null, de(i.value, (q) => (v(), S(c(To), fe({
3477
- key: q.value
3478
- }, { ref_for: !0 }, q), null, 16))), 128))
3497
+ F(p.$slots, "default", {}, () => [
3498
+ (v(!0), _(te, null, de(r.value, (z) => (v(), C(c(To), fe({
3499
+ key: z.value
3500
+ }, { ref_for: !0 }, z), null, 16))), 128))
3479
3501
  ])
3480
3502
  ], 2));
3481
3503
  }
@@ -3490,11 +3512,11 @@ const po = "sq-popover", mt = /* @__PURE__ */ L({
3490
3512
  },
3491
3513
  setup(d) {
3492
3514
  const o = d, { segmentedDisabled: n, parentContext: e } = xs(o), t = R(), s = ue(null), l = b(() => {
3493
- const r = [], f = c(n);
3494
- return u.value && r.push("is-active"), f && r.push("is-disabled"), r;
3495
- }), u = b(() => c(e).active === o.value), i = b(() => c(e).size !== "sm" ? "md" : "sm");
3496
- oe(u, (r) => {
3497
- if (r) {
3515
+ const i = [], f = c(n);
3516
+ return u.value && i.push("is-active"), f && i.push("is-disabled"), i;
3517
+ }), u = b(() => c(e).active === o.value), r = b(() => c(e).size !== "sm" ? "md" : "sm");
3518
+ oe(u, (i) => {
3519
+ if (i) {
3498
3520
  if (t.value = o.value ?? "on", !e) return;
3499
3521
  e.value.updateThumb(s.value);
3500
3522
  } else t.value = void 0;
@@ -3504,14 +3526,14 @@ const po = "sq-popover", mt = /* @__PURE__ */ L({
3504
3526
  function a() {
3505
3527
  e && e.value.toggleItem(o.value);
3506
3528
  }
3507
- return (r, f) => {
3529
+ return (i, f) => {
3508
3530
  var g;
3509
- return v(), $("label", {
3531
+ return v(), _("label", {
3510
3532
  class: V(["sq-segmented-item", l.value]),
3511
3533
  ref_key: "itemRef",
3512
3534
  ref: s
3513
3535
  }, [
3514
- ae(E("input", {
3536
+ ae(O("input", {
3515
3537
  type: "radio",
3516
3538
  name: (g = c(e)) == null ? void 0 : g.name,
3517
3539
  value: o.value,
@@ -3521,11 +3543,11 @@ const po = "sq-popover", mt = /* @__PURE__ */ L({
3521
3543
  }, null, 40, Bo), [
3522
3544
  [tt, t.value]
3523
3545
  ]),
3524
- U(r.$slots, "default", {}, () => [
3525
- T(c(ge), { size: i.value }, {
3526
- default: I(() => [
3527
- o.icon ? (v(), S(ce(o.icon), { key: 0 })) : M("", !0),
3528
- Te(" " + X(o.text), 1)
3546
+ F(i.$slots, "default", {}, () => [
3547
+ T(c(ge), { size: r.value }, {
3548
+ default: A(() => [
3549
+ o.icon ? (v(), C(ce(o.icon), { key: 0 })) : D("", !0),
3550
+ Re(" " + X(o.text), 1)
3529
3551
  ]),
3530
3552
  _: 1
3531
3553
  }, 8, ["size"])
@@ -3557,85 +3579,90 @@ const po = "sq-popover", mt = /* @__PURE__ */ L({
3557
3579
  }),
3558
3580
  emits: /* @__PURE__ */ G(["focus", "blur", "select", "clear"], ["update:value"]),
3559
3581
  setup(d, { emit: o }) {
3560
- const n = o, e = d, t = R(!1), s = R(), l = R(""), u = ue(null), i = le(d, "value"), a = b(() => e.items.length && typeof e.items[0] == "string" ? e.items.map((x) => ({
3561
- text: x,
3562
- value: x
3563
- })) : e.items);
3564
- oe(i, (x) => {
3565
- x || (l.value = "");
3566
- const q = a.value.find((z) => z.value === x);
3567
- l.value = (q == null ? void 0 : q.text) ?? "";
3582
+ let n = "";
3583
+ const e = o, t = d, s = R(!1), l = R(), u = R(""), r = ue(null), a = le(d, "value"), i = b(() => t.items.length && typeof t.items[0] == "string" ? t.items.map((B) => ({
3584
+ text: B,
3585
+ value: B
3586
+ })) : t.items);
3587
+ oe(a, (B) => {
3588
+ B || (u.value = "");
3589
+ const M = i.value.find((I) => I.value === B);
3590
+ u.value = (M == null ? void 0 : M.text) ?? "";
3568
3591
  });
3569
- function r(x) {
3570
- var z;
3571
- if (!x || typeof s.value < "u") return;
3572
- const q = (z = u.value) == null ? void 0 : z.$el;
3573
- s.value = q.getBoundingClientRect().width;
3592
+ function f(B) {
3593
+ var I;
3594
+ if (!B || typeof l.value < "u") return;
3595
+ const M = (I = r.value) == null ? void 0 : I.$el;
3596
+ l.value = M.getBoundingClientRect().width;
3597
+ }
3598
+ function g(B) {
3599
+ a.value = B.value, u.value = B.text ?? "", e("select", B.value);
3574
3600
  }
3575
- function f(x) {
3576
- i.value = x.value, l.value = x.text ?? "", n("select", x.value);
3601
+ function h(B) {
3602
+ s.value = !0, n = u.value, e("focus", B);
3577
3603
  }
3578
- function g(x) {
3579
- t.value = !0, n("focus", x);
3604
+ function p(B) {
3605
+ s.value = !1, e("blur", B);
3580
3606
  }
3581
- function h(x) {
3582
- t.value = !1, n("blur", x);
3607
+ function $() {
3608
+ a.value = "", e("clear");
3583
3609
  }
3584
- function p() {
3585
- i.value = "", n("clear");
3610
+ function z() {
3611
+ u.value = n;
3586
3612
  }
3587
- return (x, q) => (v(), S(c(mt), {
3588
- class: V(["sq-select", { "dropdown-opened": t.value }]),
3613
+ return (B, M) => (v(), C(c(mt), {
3614
+ class: V(["sq-select", { "dropdown-opened": s.value }]),
3589
3615
  placement: "bottom-start",
3590
3616
  trigger: "manual",
3591
3617
  "popover-class": "sq-select-dropdown",
3592
- disabled: e.disabled,
3618
+ disabled: t.disabled,
3593
3619
  "hide-after": 100,
3594
- "popover-style": { width: `${s.value}px` },
3595
- visible: t.value,
3596
- "onUpdate:visible": q[2] || (q[2] = (z) => t.value = z),
3597
- onOpenChange: r
3620
+ "popover-style": { width: `${l.value}px` },
3621
+ visible: s.value,
3622
+ "onUpdate:visible": M[2] || (M[2] = (I) => s.value = I),
3623
+ onOpenChange: f
3598
3624
  }, {
3599
- reference: I(() => [
3600
- T(c(je), {
3601
- value: l.value,
3602
- "onUpdate:value": q[0] || (q[0] = (z) => l.value = z),
3603
- disabled: e.disabled,
3604
- placeholder: e.placeholder,
3605
- "prefix-icon": e.prefixIcon,
3625
+ reference: A(() => [
3626
+ T(c(We), {
3627
+ value: u.value,
3628
+ "onUpdate:value": M[0] || (M[0] = (I) => u.value = I),
3629
+ disabled: t.disabled,
3630
+ placeholder: t.placeholder,
3631
+ "prefix-icon": t.prefixIcon,
3606
3632
  "suffix-icon": c(Ut),
3607
- size: e.size,
3608
- round: e.round,
3609
- status: e.status,
3610
- autofocus: e.autofocus,
3611
- clearable: e.clearable,
3612
- name: e.name,
3613
- form: e.form,
3633
+ size: t.size,
3634
+ round: t.round,
3635
+ status: t.status,
3636
+ autofocus: t.autofocus,
3637
+ clearable: t.clearable,
3638
+ name: t.name,
3639
+ form: t.form,
3614
3640
  ref_key: "inputRef",
3615
- ref: u,
3616
- onFocus: g,
3617
- onBlur: h,
3618
- onClear: p
3641
+ ref: r,
3642
+ onFocus: h,
3643
+ onBlur: p,
3644
+ onClear: $,
3645
+ onInput: z
3619
3646
  }, null, 8, ["value", "disabled", "placeholder", "prefix-icon", "suffix-icon", "size", "round", "status", "autofocus", "clearable", "name", "form"])
3620
3647
  ]),
3621
- default: I(() => [
3622
- a.value.length ? (v(), $("menu", Lo, [
3623
- (v(!0), $(ee, null, de(a.value, (z) => (v(), $("li", fe({
3624
- class: { "is-active": i.value === z.value },
3625
- key: z.value
3626
- }, { ref_for: !0 }, z, {
3627
- onClick: (P) => f(z)
3648
+ default: A(() => [
3649
+ i.value.length ? (v(), _("menu", Lo, [
3650
+ (v(!0), _(te, null, de(i.value, (I) => (v(), _("li", fe({
3651
+ class: { "is-active": a.value === I.value },
3652
+ key: I.value
3653
+ }, { ref_for: !0 }, I, {
3654
+ onClick: (j) => g(I)
3628
3655
  }), [
3629
- E("span", {
3630
- textContent: X(z.text)
3656
+ O("span", {
3657
+ textContent: X(I.text)
3631
3658
  }, null, 8, Mo),
3632
- i.value === z.value ? (v(), S(c(at), { key: 0 })) : M("", !0)
3659
+ a.value === I.value ? (v(), C(c(at), { key: 0 })) : D("", !0)
3633
3660
  ], 16, Io))), 128))
3634
- ])) : (v(), $("div", {
3661
+ ])) : (v(), _("div", {
3635
3662
  key: 0,
3636
3663
  class: "sq-select-dropdown-empty",
3637
- textContent: X(e.emptyText),
3638
- onMousedown: q[1] || (q[1] = me(() => {
3664
+ textContent: X(t.emptyText),
3665
+ onMousedown: M[1] || (M[1] = me(() => {
3639
3666
  }, ["prevent", "stop"]))
3640
3667
  }, null, 40, Ro))
3641
3668
  ]),
@@ -3659,29 +3686,29 @@ const po = "sq-popover", mt = /* @__PURE__ */ L({
3659
3686
  }),
3660
3687
  emits: /* @__PURE__ */ G(["change", "click"], ["update:checked"]),
3661
3688
  setup(d, { emit: o }) {
3662
- const n = o, e = d, { switchSize: t, switchDisabled: s, id: l } = _s(e), u = le(d, "checked"), i = b(() => {
3663
- const a = [], r = c(t), f = c(s);
3664
- return r !== "md" && a.push(`sq-switch--${r}`), u.value && a.push("is-checked"), (f || e.loading) && a.push("is-disabled"), e.variant && a.push(`is-${e.variant}`), a;
3689
+ const n = o, e = d, { switchSize: t, switchDisabled: s, id: l } = _s(e), u = le(d, "checked"), r = b(() => {
3690
+ const a = [], i = c(t), f = c(s);
3691
+ return i !== "md" && a.push(`sq-switch--${i}`), u.value && a.push("is-checked"), (f || e.loading) && a.push("is-disabled"), e.variant && a.push(`is-${e.variant}`), a;
3665
3692
  });
3666
- return (a, r) => (v(), $("label", {
3667
- class: V(["sq-switch", i.value])
3693
+ return (a, i) => (v(), _("label", {
3694
+ class: V(["sq-switch", r.value])
3668
3695
  }, [
3669
- ae(E("input", {
3696
+ ae(O("input", {
3670
3697
  type: "checkbox",
3671
- "onUpdate:modelValue": r[0] || (r[0] = (f) => u.value = f),
3698
+ "onUpdate:modelValue": i[0] || (i[0] = (f) => u.value = f),
3672
3699
  id: c(l),
3673
3700
  autofocus: e.autofocus,
3674
3701
  name: e.name,
3675
3702
  form: e.form,
3676
3703
  disabled: c(s) || e.loading,
3677
- onChange: r[1] || (r[1] = (f) => n("change", u.value, f)),
3678
- onClick: r[2] || (r[2] = (f) => n("click", u.value, f))
3704
+ onChange: i[1] || (i[1] = (f) => n("change", u.value, f)),
3705
+ onClick: i[2] || (i[2] = (f) => n("click", u.value, f))
3679
3706
  }, null, 40, Do), [
3680
3707
  [Qe, u.value]
3681
3708
  ]),
3682
- E("span", Oo, [
3683
- E("span", Po, [
3684
- e.loading ? (v(), S(c(Me), { key: 0 })) : M("", !0)
3709
+ O("span", Oo, [
3710
+ O("span", Po, [
3711
+ e.loading ? (v(), C(c(Ee), { key: 0 })) : D("", !0)
3685
3712
  ])
3686
3713
  ])
3687
3714
  ], 2));
@@ -3696,7 +3723,7 @@ const po = "sq-popover", mt = /* @__PURE__ */ L({
3696
3723
  render() {
3697
3724
  return this.content;
3698
3725
  }
3699
- }), Ho = { class: "sq-table-wrap" }, Wo = ["textContent"], jo = ["textContent"], Xo = {
3726
+ }), Ho = { class: "sq-table-wrap" }, jo = ["textContent"], Wo = ["textContent"], Xo = {
3700
3727
  key: 0,
3701
3728
  class: "sq-table-empty"
3702
3729
  }, Yo = ["textContent"], Ko = "sq-table", Ba = /* @__PURE__ */ L({
@@ -3717,7 +3744,7 @@ const po = "sq-popover", mt = /* @__PURE__ */ L({
3717
3744
  return e.stripe && h.push("is-striped"), e.border && h.push("has-border"), h;
3718
3745
  }), u = b(() => ({
3719
3746
  gridTemplateColumns: e.cols.map((h) => h.width ? o(h.width) : "1fr").join(" ")
3720
- })), i = b(() => ({
3747
+ })), r = b(() => ({
3721
3748
  ...u.value,
3722
3749
  paddingInlineEnd: t.value ? "6px" : "0"
3723
3750
  }));
@@ -3731,13 +3758,13 @@ const po = "sq-popover", mt = /* @__PURE__ */ L({
3731
3758
  t.value = !1;
3732
3759
  return;
3733
3760
  }
3734
- Le(() => {
3735
- var x, q;
3736
- const h = ((x = s.value) == null ? void 0 : x.clientHeight) ?? 0, p = ((q = s.value) == null ? void 0 : q.scrollHeight) ?? 0;
3761
+ Ie(() => {
3762
+ var $, z;
3763
+ const h = (($ = s.value) == null ? void 0 : $.clientHeight) ?? 0, p = ((z = s.value) == null ? void 0 : z.scrollHeight) ?? 0;
3737
3764
  t.value = p > h;
3738
3765
  });
3739
3766
  }
3740
- function r(h, p) {
3767
+ function i(h, p) {
3741
3768
  return e.rowKey && h.hasOwnProperty(e.rowKey) ? h[e.rowKey] : p;
3742
3769
  }
3743
3770
  function f(h) {
@@ -3755,54 +3782,54 @@ const po = "sq-popover", mt = /* @__PURE__ */ L({
3755
3782
  function g(h, p) {
3756
3783
  return typeof p.formatter == "function" ? p.formatter(h, h[p.binding]) : typeof h[p.binding] > "u" ? "" : h[p.binding];
3757
3784
  }
3758
- return (h, p) => (v(), $("div", {
3785
+ return (h, p) => (v(), _("div", {
3759
3786
  class: V(["sq-table", l.value])
3760
3787
  }, [
3761
- E("div", Ho, [
3762
- E("div", {
3788
+ O("div", Ho, [
3789
+ O("div", {
3763
3790
  class: "sq-table-header",
3764
- style: K(i.value)
3791
+ style: K(r.value)
3765
3792
  }, [
3766
- (v(!0), $(ee, null, de(e.cols, (x) => (v(), $("div", {
3793
+ (v(!0), _(te, null, de(e.cols, ($) => (v(), _("div", {
3767
3794
  class: "sq-table-cell",
3768
- style: K({ "justify-content": f(x.align) }),
3769
- key: x.binding
3795
+ style: K({ "justify-content": f($.align) }),
3796
+ key: $.binding
3770
3797
  }, [
3771
- E("span", {
3772
- textContent: X(x.title)
3773
- }, null, 8, Wo)
3798
+ O("span", {
3799
+ textContent: X($.title)
3800
+ }, null, 8, jo)
3774
3801
  ], 4))), 128))
3775
3802
  ], 4),
3776
- ae(E("div", {
3803
+ ae(O("div", {
3777
3804
  class: "sq-table-body",
3778
3805
  ref_key: "bodyRef",
3779
3806
  ref: s
3780
3807
  }, [
3781
- (v(!0), $(ee, null, de(e.data, (x, q) => (v(), $("div", {
3808
+ (v(!0), _(te, null, de(e.data, ($, z) => (v(), _("div", {
3782
3809
  class: "sq-table-row",
3783
3810
  style: K(u.value),
3784
- key: r(x, q)
3811
+ key: i($, z)
3785
3812
  }, [
3786
- (v(!0), $(ee, null, de(e.cols, (z, P) => (v(), $("div", {
3787
- class: V(["sq-table-cell", z.columnClass]),
3788
- style: K({ "justify-content": f(z.align) }),
3789
- key: `${z.binding}-${r(x, P)}`
3813
+ (v(!0), _(te, null, de(e.cols, (B, M) => (v(), _("div", {
3814
+ class: V(["sq-table-cell", B.columnClass]),
3815
+ style: K({ "justify-content": f(B.align) }),
3816
+ key: `${B.binding}-${i($, M)}`
3790
3817
  }, [
3791
- typeof z.cellRender == "function" ? (v(), S(c(Vo), {
3818
+ typeof B.cellRender == "function" ? (v(), C(c(Vo), {
3792
3819
  key: 0,
3793
- content: z.cellRender(x, x[z.binding])
3794
- }, null, 8, ["content"])) : (v(), $("span", {
3820
+ content: B.cellRender($, $[B.binding])
3821
+ }, null, 8, ["content"])) : (v(), _("span", {
3795
3822
  key: 1,
3796
- textContent: X(g(x, z))
3797
- }, null, 8, jo))
3823
+ textContent: X(g($, B))
3824
+ }, null, 8, Wo))
3798
3825
  ], 6))), 128))
3799
3826
  ], 4))), 128))
3800
3827
  ], 512), [
3801
3828
  [ve, e.data.length]
3802
3829
  ]),
3803
- e.data.length ? M("", !0) : (v(), $("div", Xo, [
3804
- U(h.$slots, "empty", {}, () => [
3805
- E("span", {
3830
+ e.data.length ? D("", !0) : (v(), _("div", Xo, [
3831
+ F(h.$slots, "empty", {}, () => [
3832
+ O("span", {
3806
3833
  textContent: X(e.emptyText)
3807
3834
  }, null, 8, Yo)
3808
3835
  ])
@@ -3824,12 +3851,12 @@ const po = "sq-popover", mt = /* @__PURE__ */ L({
3824
3851
  const t = [];
3825
3852
  return o.size !== "md" && t.push(`sq-tag--${o.size}`), o.variant && o.type && t.push(`is-${o.variant}`), o.type && t.push(`is-${o.type}`), o.round && t.push("is-round"), t;
3826
3853
  }), e = b(() => o.size === "lg" ? "md" : "sm");
3827
- return (t, s) => (v(), S(c(ge), {
3854
+ return (t, s) => (v(), C(c(ge), {
3828
3855
  class: V(["sq-tag", n.value]),
3829
3856
  size: e.value
3830
3857
  }, {
3831
- default: I(() => [
3832
- U(t.$slots, "default")
3858
+ default: A(() => [
3859
+ F(t.$slots, "default")
3833
3860
  ]),
3834
3861
  _: 3
3835
3862
  }, 8, ["class", "size"]));
@@ -3849,13 +3876,13 @@ const po = "sq-popover", mt = /* @__PURE__ */ L({
3849
3876
  const l = [];
3850
3877
  return e.size !== "md" && l.push(`sq-tag--${e.size}`), e.type && l.push(`is-${e.type}`), e.round && l.push("is-round"), e.checked && l.push("is-checked"), l;
3851
3878
  }), s = b(() => e.size === "lg" ? "md" : "sm");
3852
- return (l, u) => (v(), S(c(ge), {
3879
+ return (l, u) => (v(), C(c(ge), {
3853
3880
  class: V(["sq-check-tag", t.value]),
3854
3881
  size: s.value,
3855
- onClick: u[0] || (u[0] = (i) => n("change", !e.checked))
3882
+ onClick: u[0] || (u[0] = (r) => n("change", !e.checked))
3856
3883
  }, {
3857
- default: I(() => [
3858
- U(l.$slots, "default")
3884
+ default: A(() => [
3885
+ F(l.$slots, "default")
3859
3886
  ]),
3860
3887
  _: 3
3861
3888
  }, 8, ["class", "size"]));
@@ -3874,11 +3901,11 @@ const po = "sq-popover", mt = /* @__PURE__ */ L({
3874
3901
  }), e = b(() => typeof o.ellipsis == "number" ? Number(Math.max(o.ellipsis, 1).toFixed(0)) : 1), t = b(
3875
3902
  () => o.ellipsis ? `--row-num: ${e.value}` : ""
3876
3903
  );
3877
- return (s, l) => (v(), $("span", {
3904
+ return (s, l) => (v(), _("span", {
3878
3905
  class: V(["sq-text", n.value]),
3879
3906
  style: K(t.value)
3880
3907
  }, [
3881
- U(s.$slots, "default")
3908
+ F(s.$slots, "default")
3882
3909
  ], 6));
3883
3910
  }
3884
3911
  }), Qo = "sq-timeline", Ra = /* @__PURE__ */ L({
@@ -3893,10 +3920,10 @@ const po = "sq-popover", mt = /* @__PURE__ */ L({
3893
3920
  const e = [`align-${o.align}`];
3894
3921
  return o.variant && e.push(`is-${o.variant}`), e;
3895
3922
  });
3896
- return (e, t) => (v(), $("div", {
3923
+ return (e, t) => (v(), _("div", {
3897
3924
  class: V(["sq-timeline", n.value])
3898
3925
  }, [
3899
- U(e.$slots, "default")
3926
+ F(e.$slots, "default")
3900
3927
  ], 2));
3901
3928
  }
3902
3929
  }), ea = { class: "sq-timeline-dot" }, ta = { class: "sq-timeline-content" }, sa = ["textContent"], na = ["textContent"], oa = { class: "content-info" }, aa = "sq-timeline-item", La = /* @__PURE__ */ L({
@@ -3918,26 +3945,26 @@ const po = "sq-popover", mt = /* @__PURE__ */ L({
3918
3945
  const t = {};
3919
3946
  return o.color && (t["--timeline-dot-color"] = o.color), t;
3920
3947
  });
3921
- return (t, s) => (v(), $("div", {
3948
+ return (t, s) => (v(), _("div", {
3922
3949
  class: V(["sq-timeline-item", n.value]),
3923
3950
  style: K(e.value)
3924
3951
  }, [
3925
- E("span", ea, [
3926
- o.icon ? (v(), S(ce(o.icon), { key: 0 })) : M("", !0)
3952
+ O("span", ea, [
3953
+ o.icon ? (v(), C(ce(o.icon), { key: 0 })) : D("", !0)
3927
3954
  ]),
3928
- E("div", ta, [
3929
- o.title ? (v(), $("h2", {
3955
+ O("div", ta, [
3956
+ o.title ? (v(), _("h2", {
3930
3957
  key: 0,
3931
3958
  class: "content-title",
3932
3959
  textContent: X(o.title)
3933
- }, null, 8, sa)) : M("", !0),
3934
- o.timestamp ? (v(), $("span", {
3960
+ }, null, 8, sa)) : D("", !0),
3961
+ o.timestamp ? (v(), _("span", {
3935
3962
  key: 1,
3936
3963
  class: "content-time",
3937
3964
  textContent: X(o.timestamp)
3938
- }, null, 8, na)) : M("", !0),
3939
- E("div", oa, [
3940
- U(t.$slots, "default")
3965
+ }, null, 8, na)) : D("", !0),
3966
+ O("div", oa, [
3967
+ F(t.$slots, "default")
3941
3968
  ])
3942
3969
  ])
3943
3970
  ], 6));
@@ -3959,7 +3986,7 @@ const po = "sq-popover", mt = /* @__PURE__ */ L({
3959
3986
  const e = ["sq-tooltip"], t = o.popoverClass;
3960
3987
  return Array.isArray(t) ? e.push(...t) : typeof t == "string" && e.push(t), e;
3961
3988
  });
3962
- return (e, t) => (v(), S(c(mt), {
3989
+ return (e, t) => (v(), C(c(mt), {
3963
3990
  placement: o.placement,
3964
3991
  disabled: o.disabled,
3965
3992
  "show-after": 300,
@@ -3969,11 +3996,11 @@ const po = "sq-popover", mt = /* @__PURE__ */ L({
3969
3996
  transition: o.transition,
3970
3997
  shadow: o.shadow
3971
3998
  }, {
3972
- reference: I(() => [
3973
- U(e.$slots, "default")
3999
+ reference: A(() => [
4000
+ F(e.$slots, "default")
3974
4001
  ]),
3975
- default: I(() => [
3976
- E("span", {
4002
+ default: A(() => [
4003
+ O("span", {
3977
4004
  textContent: X(o.tip)
3978
4005
  }, null, 8, la)
3979
4006
  ]),
@@ -3997,37 +4024,37 @@ const po = "sq-popover", mt = /* @__PURE__ */ L({
3997
4024
  const e = n, t = d, s = ue(null);
3998
4025
  function l() {
3999
4026
  var g;
4000
- r(((g = s.value) == null ? void 0 : g.files) ?? void 0);
4027
+ i(((g = s.value) == null ? void 0 : g.files) ?? void 0);
4001
4028
  }
4002
4029
  function u(g) {
4003
4030
  var h;
4004
4031
  g.target === s.value || t.disabled || (h = s.value) == null || h.click();
4005
4032
  }
4006
- function i(g) {
4033
+ function r(g) {
4007
4034
  t.allowDrop && g.preventDefault();
4008
4035
  }
4009
4036
  function a(g) {
4010
4037
  var h;
4011
- t.disabled || (t.allowDrop && g.preventDefault(), r(((h = g.dataTransfer) == null ? void 0 : h.files) ?? void 0));
4038
+ t.disabled || (t.allowDrop && g.preventDefault(), i(((h = g.dataTransfer) == null ? void 0 : h.files) ?? void 0));
4012
4039
  }
4013
- function r(g) {
4014
- const h = g ?? new FileList(), p = [], x = t.max ? Math.min(h.length, t.max) : h.length;
4015
- for (let q = 0; q < x; q++) {
4016
- const z = h[q];
4017
- p.push(z);
4040
+ function i(g) {
4041
+ const h = g ?? new FileList(), p = [], $ = t.max ? Math.min(h.length, t.max) : h.length;
4042
+ for (let z = 0; z < $; z++) {
4043
+ const B = h[z];
4044
+ p.push(B);
4018
4045
  }
4019
4046
  e("change", p);
4020
4047
  }
4021
4048
  function f() {
4022
4049
  s.value.value = "", s.value.files = null, e("change", []);
4023
4050
  }
4024
- return o({ clearFiles: f }), (g, h) => (v(), $("div", {
4051
+ return o({ clearFiles: f }), (g, h) => (v(), _("div", {
4025
4052
  class: "sq-upload",
4026
4053
  onClick: u,
4027
- onDragover: i,
4054
+ onDragover: r,
4028
4055
  onDrop: a
4029
4056
  }, [
4030
- E("input", {
4057
+ O("input", {
4031
4058
  type: "file",
4032
4059
  ref_key: "inputRef",
4033
4060
  ref: s,
@@ -4038,7 +4065,7 @@ const po = "sq-popover", mt = /* @__PURE__ */ L({
4038
4065
  multiple: t.multiple,
4039
4066
  onChange: l
4040
4067
  }, null, 40, ra),
4041
- U(g.$slots, "default")
4068
+ F(g.$slots, "default")
4042
4069
  ], 32));
4043
4070
  }
4044
4071
  });
@@ -4046,7 +4073,7 @@ export {
4046
4073
  ct as ButtonGroupContextKeys,
4047
4074
  ft as CheckboxGroupContextKeys,
4048
4075
  Be as FormContextKeys,
4049
- We as FormItemIdKeys,
4076
+ je as FormItemIdKeys,
4050
4077
  ht as RadioGroupContextKeys,
4051
4078
  gt as SegmentedContextKeys,
4052
4079
  ha as SqAlert,
@@ -4062,14 +4089,14 @@ export {
4062
4089
  dt as SqCheckbox,
4063
4090
  As as SqCheckboxGroup,
4064
4091
  Ps as SqCode,
4065
- js as SqDialog,
4092
+ Ws as SqDialog,
4066
4093
  we as SqDivider,
4067
4094
  _a as SqEditor,
4068
4095
  $a as SqForm,
4069
4096
  qn as SqImage,
4070
4097
  ka as SqImageCrop,
4071
4098
  Bn as SqImageViewer,
4072
- je as SqInput,
4099
+ We as SqInput,
4073
4100
  wa as SqMenu,
4074
4101
  qa as SqMessage,
4075
4102
  Ca as SqMessageBox,