@toife/vue 1.1.21 → 1.1.23

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.
package/dist/index.es.js CHANGED
@@ -1,25 +1,25 @@
1
- import { createElementBlock as m, openBlock as c, renderSlot as b, defineComponent as T, ref as y, computed as S, reactive as te, watch as R, onUnmounted as N, Fragment as A, withDirectives as W, createCommentVNode as z, normalizeStyle as w, normalizeClass as I, vShow as Y, createElementVNode as k, createVNode as M, createBlock as E, withCtx as B, toDisplayString as P, renderList as H, createTextVNode as X, createApp as U, h as j, unref as D, onMounted as J, resolveDynamicComponent as le, markRaw as ce, inject as ie, provide as ue } from "vue";
2
- import { gesture as V } from "@toife/gesture";
1
+ import { createElementBlock as v, openBlock as c, renderSlot as h, defineComponent as T, ref as g, computed as I, reactive as te, watch as R, onUnmounted as O, Fragment as N, withDirectives as Y, createCommentVNode as z, normalizeStyle as w, normalizeClass as x, vShow as H, createElementVNode as k, createVNode as M, createBlock as E, withCtx as B, toDisplayString as P, renderList as U, createTextVNode as L, createApp as j, h as F, unref as D, onMounted as J, resolveDynamicComponent as le, markRaw as ce, inject as ie, provide as ue } from "vue";
2
+ import { gesture as A } from "@toife/gesture";
3
3
  import { useRouter as oe, useRoute as de } from "vue-router";
4
- const O = (t) => t && (t.tagName == "INPUT" || t.tagName == "TEXTAREA" || t.isContentEditable), q = () => {
4
+ const q = (t) => t && (t.tagName == "INPUT" || t.tagName == "TEXTAREA" || t.isContentEditable), X = () => {
5
5
  const t = document.activeElement;
6
6
  t && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) && t.blur();
7
7
  }, pe = () => {
8
8
  document.addEventListener("contextmenu", (t) => t.preventDefault()), document.addEventListener("selectstart", (t) => t.preventDefault()), document.addEventListener("pointerup", (t) => {
9
- !O(t.target) && q();
9
+ !q(t.target) && X();
10
10
  });
11
- }, g = (t, n) => {
11
+ }, b = (t, n) => {
12
12
  const o = t.__vccOpts || t;
13
- for (const [e, r] of n)
14
- o[e] = r;
13
+ for (const [e, s] of n)
14
+ o[e] = s;
15
15
  return o;
16
16
  }, fe = {}, me = { class: "t-app" };
17
17
  function ve(t, n) {
18
- return c(), m("div", me, [
19
- b(t.$slots, "default")
18
+ return c(), v("div", me, [
19
+ h(t.$slots, "default")
20
20
  ]);
21
21
  }
22
- const _e = /* @__PURE__ */ g(fe, [["render", ve]]), ye = /* @__PURE__ */ T({
22
+ const _e = /* @__PURE__ */ b(fe, [["render", ve]]), ye = /* @__PURE__ */ T({
23
23
  __name: "t-present",
24
24
  props: {
25
25
  keepalive: { type: Boolean, default: !0 },
@@ -29,76 +29,76 @@ const _e = /* @__PURE__ */ g(fe, [["render", ve]]), ye = /* @__PURE__ */ T({
29
29
  },
30
30
  emits: ["dismiss"],
31
31
  setup(t, { expose: n, emit: o }) {
32
- const e = y(0), r = y(!1), a = y(), l = y(), i = t, u = o, d = S(() => r.value || i.keepalive), v = te({
32
+ const e = g(0), s = g(!1), a = g(), l = g(), i = t, u = o, p = I(() => s.value || i.keepalive), _ = te({
33
33
  "--t-present-backdrop-opacity": "0.4",
34
34
  "--t-present-transition": "0.2s",
35
35
  "--t-present-content-transform": "0px",
36
36
  "--t-present-content-opacity": "1"
37
- }), _ = (p) => {
38
- i.backdrop ? p?.backdropOpacity && (v["--t-present-backdrop-opacity"] = p.backdropOpacity) : v["--t-present-backdrop-opacity"] = "0", p?.transition && (v["--t-present-transition"] = p.transition, v["--t-present-transition"] = p.transition), p?.contentTransform && (v["--t-present-content-transform"] = p.contentTransform), p?.contentOpacity && (v["--t-present-content-opacity"] = p.contentOpacity);
39
- }, s = () => {
40
- _({
37
+ }), f = (d) => {
38
+ i.backdrop ? d?.backdropOpacity && (_["--t-present-backdrop-opacity"] = d.backdropOpacity) : _["--t-present-backdrop-opacity"] = "0", d?.transition && (_["--t-present-transition"] = d.transition, _["--t-present-transition"] = d.transition), d?.contentTransform && (_["--t-present-content-transform"] = d.contentTransform), d?.contentOpacity && (_["--t-present-content-opacity"] = d.contentOpacity);
39
+ }, r = () => {
40
+ f({
41
41
  contentTransform: "0px",
42
42
  transition: "0.2s",
43
43
  backdropOpacity: "0.4",
44
44
  contentOpacity: "1"
45
45
  });
46
- }, f = () => {
47
- let p = "0px", x = "1";
48
- i.placement == "bottom" || i.placement == "right" ? p = "100%" : i.placement == "top" || i.placement == "left" ? p = "-100%" : i.placement == "center" && (p = "0px", x = "0"), _({
49
- contentTransform: p,
46
+ }, m = () => {
47
+ let d = "0px", S = "1";
48
+ i.placement == "bottom" || i.placement == "right" ? d = "100%" : i.placement == "top" || i.placement == "left" ? d = "-100%" : i.placement == "center" && (d = "0px", S = "0"), f({
49
+ contentTransform: d,
50
50
  transition: "0.2s",
51
- contentOpacity: x,
51
+ contentOpacity: S,
52
52
  backdropOpacity: "0"
53
53
  });
54
54
  };
55
55
  R(() => i.visible, () => {
56
- i.visible ? (r.value = !0, e.value = Ee.getNewIndex(), setTimeout(() => {
57
- s();
58
- }, 50)) : (f(), setTimeout(() => {
59
- r.value = !1;
56
+ i.visible ? (s.value = !0, e.value = Ee.getNewIndex(), setTimeout(() => {
57
+ r();
58
+ }, 50)) : (m(), setTimeout(() => {
59
+ s.value = !1;
60
60
  }, 200));
61
61
  }), n({
62
- render: _,
63
- open: s,
64
- close: f
62
+ render: f,
63
+ open: r,
64
+ close: m
65
65
  });
66
- let h;
67
- return R(() => a.value, (p) => {
68
- p && (h = V(a.value, {
69
- beforeEvent(x) {
70
- return x.stopPropagation(), O(x.target) || (x.preventDefault(), q()), x.type == "pointerup";
66
+ let y;
67
+ return R(() => a.value, (d) => {
68
+ d && (y = A(a.value, {
69
+ beforeEvent(S, V) {
70
+ return V.stopPropagation(), q(V.target) || (V.preventDefault(), X()), S == "down";
71
71
  },
72
72
  up() {
73
73
  u("dismiss", "backdrop");
74
74
  }
75
75
  }));
76
- }), N(() => {
77
- h && h.destroy();
78
- }), f(), (p, x) => (c(), m(A, null, [
79
- d.value ? W((c(), m("div", {
76
+ }), O(() => {
77
+ y && y.destroy();
78
+ }), m(), (d, S) => (c(), v(N, null, [
79
+ p.value ? Y((c(), v("div", {
80
80
  key: 0,
81
- class: I(["t-present", { [p.placement]: !0 }]),
81
+ class: x(["t-present", { [d.placement]: !0 }]),
82
82
  ref_key: "present",
83
83
  ref: l,
84
- style: w({ ...v, zIndex: e.value })
84
+ style: w({ ..._, zIndex: e.value })
85
85
  }, [
86
- b(p.$slots, "default", {}, void 0, !0)
86
+ h(d.$slots, "default", {}, void 0, !0)
87
87
  ], 6)), [
88
- [Y, r.value]
88
+ [H, s.value]
89
89
  ]) : z("", !0),
90
- d.value ? W((c(), m("div", {
90
+ p.value ? Y((c(), v("div", {
91
91
  key: 1,
92
92
  class: "t-present-backdrop",
93
93
  ref_key: "backdrop",
94
94
  ref: a,
95
- style: w({ ...v, zIndex: e.value - 1 })
95
+ style: w({ ..._, zIndex: e.value - 1 })
96
96
  }, null, 4)), [
97
- [Y, r.value]
97
+ [H, s.value]
98
98
  ]) : z("", !0)
99
99
  ], 64));
100
100
  }
101
- }), L = /* @__PURE__ */ g(ye, [["__scopeId", "data-v-dc2a4bc9"]]), ge = /* @__PURE__ */ T({
101
+ }), W = /* @__PURE__ */ b(ye, [["__scopeId", "data-v-913d428f"]]), ge = /* @__PURE__ */ T({
102
102
  __name: "t-loading-icon",
103
103
  props: {
104
104
  size: {
@@ -111,7 +111,7 @@ const _e = /* @__PURE__ */ g(fe, [["render", ve]]), ye = /* @__PURE__ */ T({
111
111
  }
112
112
  },
113
113
  setup(t) {
114
- return (n, o) => (c(), m("span", {
114
+ return (n, o) => (c(), v("span", {
115
115
  class: "t-loading-icon",
116
116
  style: w({
117
117
  width: t.size,
@@ -122,7 +122,7 @@ const _e = /* @__PURE__ */ g(fe, [["render", ve]]), ye = /* @__PURE__ */ T({
122
122
  "aria-label": "Loading..."
123
123
  }, null, 4));
124
124
  }
125
- }), Q = /* @__PURE__ */ g(ge, [["__scopeId", "data-v-7c463303"]]), be = {
125
+ }), Q = /* @__PURE__ */ b(ge, [["__scopeId", "data-v-7c463303"]]), be = {
126
126
  key: 0,
127
127
  class: "loader"
128
128
  }, he = /* @__PURE__ */ T({
@@ -138,7 +138,7 @@ const _e = /* @__PURE__ */ g(fe, [["render", ve]]), ye = /* @__PURE__ */ T({
138
138
  activeBackground: { type: Boolean, default: !1 }
139
139
  },
140
140
  setup(t) {
141
- const n = t, o = S(() => {
141
+ const n = t, o = I(() => {
142
142
  let e;
143
143
  return n.variant == "default" && (n.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(n.color) ? e = {
144
144
  "--border": "none",
@@ -178,16 +178,16 @@ const _e = /* @__PURE__ */ g(fe, [["render", ve]]), ye = /* @__PURE__ */ T({
178
178
  "--background": "transparent"
179
179
  }), e;
180
180
  });
181
- return (e, r) => (c(), m("button", {
182
- class: I(["t-button", { "active-background": n.activeBackground, rounded: n.rounded, block: n.block, ["size-" + n.size]: !0 }]),
181
+ return (e, s) => (c(), v("button", {
182
+ class: x(["t-button", { "active-background": n.activeBackground, rounded: n.rounded, block: n.block, ["size-" + n.size]: !0 }]),
183
183
  style: w(o.value)
184
184
  }, [
185
- W(k("span", null, [
186
- b(e.$slots, "default", {}, void 0, !0)
185
+ Y(k("span", null, [
186
+ h(e.$slots, "default", {}, void 0, !0)
187
187
  ], 512), [
188
- [Y, !n.loading]
188
+ [H, !n.loading]
189
189
  ]),
190
- n.loading ? (c(), m("span", be, [
190
+ n.loading ? (c(), v("span", be, [
191
191
  M(Q, {
192
192
  color: "var(--color)",
193
193
  type: n.loadingType
@@ -195,7 +195,7 @@ const _e = /* @__PURE__ */ g(fe, [["render", ve]]), ye = /* @__PURE__ */ T({
195
195
  ])) : z("", !0)
196
196
  ], 6));
197
197
  }
198
- }), F = /* @__PURE__ */ g(he, [["__scopeId", "data-v-07bf1b8d"]]), ke = {
198
+ }), G = /* @__PURE__ */ b(he, [["__scopeId", "data-v-07bf1b8d"]]), ke = {
199
199
  key: 0,
200
200
  class: "t-alert-header"
201
201
  }, $e = { class: "t-alert-content" }, Te = { class: "t-alert-footer" }, we = /* @__PURE__ */ T({
@@ -208,55 +208,55 @@ const _e = /* @__PURE__ */ g(fe, [["render", ve]]), ye = /* @__PURE__ */ T({
208
208
  },
209
209
  emits: ["dismiss"],
210
210
  setup(t, { expose: n, emit: o }) {
211
- const e = t, r = y(!1), a = o, l = y();
211
+ const e = t, s = g(!1), a = o, l = g();
212
212
  let i;
213
- const u = y(!1), d = () => {
214
- r.value = !0;
215
- }, v = (s) => {
216
- r.value = !1, s.handler && s.handler(), a("dismiss", "choose", s?.data);
217
- }, _ = (s) => {
218
- e.dismiss && e.dismiss.includes(s) ? (r.value = !1, a("dismiss", s)) : s == "backdrop" && (u.value = !0, setTimeout(() => {
213
+ const u = g(!1), p = () => {
214
+ s.value = !0;
215
+ }, _ = (r) => {
216
+ s.value = !1, r.handler && r.handler(), a("dismiss", "choose", r?.data);
217
+ }, f = (r) => {
218
+ e.dismiss && e.dismiss.includes(r) ? (s.value = !1, a("dismiss", r)) : r == "backdrop" && (u.value = !0, setTimeout(() => {
219
219
  u.value = !1;
220
220
  }, 300));
221
221
  };
222
222
  return n({
223
- open: d
224
- }), R(() => l.value, (s) => {
225
- s && (i = V(l.value, {
226
- beforeEvent(f) {
227
- return f.stopPropagation(), O(f.target) || (f.preventDefault(), q()), !1;
223
+ open: p
224
+ }), R(() => l.value, (r) => {
225
+ r && (i = A(l.value, {
226
+ beforeEvent(m, y) {
227
+ return y.stopPropagation(), q(y.target) || (y.preventDefault(), X()), !1;
228
228
  }
229
229
  }));
230
- }), N(() => {
230
+ }), O(() => {
231
231
  i && i.destroy();
232
- }), (s, f) => (c(), E(L, {
232
+ }), (r, m) => (c(), E(W, {
233
233
  placement: "center",
234
234
  backdrop: !0,
235
235
  keepalive: !1,
236
- visible: r.value,
237
- onDismiss: _
236
+ visible: s.value,
237
+ onDismiss: f
238
238
  }, {
239
239
  default: B(() => [
240
240
  k("div", {
241
- class: I(["t-alert", { pop: u.value }]),
241
+ class: x(["t-alert", { pop: u.value }]),
242
242
  ref_key: "container",
243
243
  ref: l
244
244
  }, [
245
- b(s.$slots, "header", {}, () => [
246
- e.title ? (c(), m("div", ke, P(e.title), 1)) : z("", !0)
245
+ h(r.$slots, "header", {}, () => [
246
+ e.title ? (c(), v("div", ke, P(e.title), 1)) : z("", !0)
247
247
  ], !0),
248
- b(s.$slots, "content", {}, () => [
248
+ h(r.$slots, "content", {}, () => [
249
249
  k("div", $e, P(e.message), 1)
250
250
  ], !0),
251
- b(s.$slots, "footer", {}, () => [
251
+ h(r.$slots, "footer", {}, () => [
252
252
  k("div", Te, [
253
- (c(!0), m(A, null, H(e.actions, (h) => (c(), E(F, {
254
- color: h.color,
255
- variant: h.variant,
256
- onClick: (p) => v(h)
253
+ (c(!0), v(N, null, U(e.actions, (y) => (c(), E(G, {
254
+ color: y.color,
255
+ variant: y.variant,
256
+ onClick: (d) => _(y)
257
257
  }, {
258
258
  default: B(() => [
259
- X(P(h.text), 1)
259
+ L(P(y.text), 1)
260
260
  ]),
261
261
  _: 2
262
262
  }, 1032, ["color", "variant", "onClick"]))), 256))
@@ -267,18 +267,18 @@ const _e = /* @__PURE__ */ g(fe, [["render", ve]]), ye = /* @__PURE__ */ T({
267
267
  _: 3
268
268
  }, 8, ["visible"]));
269
269
  }
270
- }), ne = /* @__PURE__ */ g(we, [["__scopeId", "data-v-5cf415ec"]]), Wt = (t = {}) => ({
270
+ }), ne = /* @__PURE__ */ b(we, [["__scopeId", "data-v-ca660c5d"]]), Wt = (t = {}) => ({
271
271
  open() {
272
272
  return new Promise((n) => {
273
273
  let o = document.body.querySelector(".t-app");
274
274
  if (!o) return;
275
- const e = document.createElement("div"), r = y();
275
+ const e = document.createElement("div"), s = g();
276
276
  o.appendChild(e);
277
- const a = U({
277
+ const a = j({
278
278
  render() {
279
- return j(ne, {
279
+ return F(ne, {
280
280
  ...t,
281
- ref: r,
281
+ ref: s,
282
282
  onDismiss: (l, i) => {
283
283
  setTimeout(() => {
284
284
  a.unmount(), e.remove();
@@ -288,7 +288,7 @@ const _e = /* @__PURE__ */ g(fe, [["render", ve]]), ye = /* @__PURE__ */ T({
288
288
  }
289
289
  });
290
290
  a.mount(e), setTimeout(() => {
291
- r.value?.open?.();
291
+ s.value?.open?.();
292
292
  }, 50);
293
293
  });
294
294
  }
@@ -300,50 +300,50 @@ const _e = /* @__PURE__ */ g(fe, [["render", ve]]), ye = /* @__PURE__ */ T({
300
300
  },
301
301
  emits: ["dismiss"],
302
302
  setup(t, { expose: n, emit: o }) {
303
- const e = t, r = y(!1), a = o, l = y();
303
+ const e = t, s = g(!1), a = o, l = g();
304
304
  let i;
305
- const u = y(!1), d = () => {
306
- r.value = !0;
307
- }, v = (s) => {
308
- r.value = !1, s.handler && s.handler(), a("dismiss", "choose", s?.data);
309
- }, _ = (s) => {
310
- e.dismiss && e.dismiss.includes(s) ? (r.value = !1, a("dismiss", s)) : s == "backdrop" && (u.value = !0, setTimeout(() => {
305
+ const u = g(!1), p = () => {
306
+ s.value = !0;
307
+ }, _ = (r) => {
308
+ s.value = !1, r.handler && r.handler(), a("dismiss", "choose", r?.data);
309
+ }, f = (r) => {
310
+ e.dismiss && e.dismiss.includes(r) ? (s.value = !1, a("dismiss", r)) : r == "backdrop" && (u.value = !0, setTimeout(() => {
311
311
  u.value = !1;
312
312
  }, 300));
313
313
  };
314
314
  return n({
315
- open: d
316
- }), R(() => l.value, (s) => {
317
- s && (i = V(l.value, {
318
- beforeEvent(f) {
319
- return f.stopPropagation(), O(f.target) || (f.preventDefault(), q()), !1;
315
+ open: p
316
+ }), R(() => l.value, (r) => {
317
+ r && (i = A(l.value, {
318
+ beforeEvent(m, y) {
319
+ return y.stopPropagation(), q(y.target) || (y.preventDefault(), X()), !1;
320
320
  }
321
321
  }));
322
- }), N(() => {
322
+ }), O(() => {
323
323
  i && i.destroy();
324
- }), (s, f) => (c(), E(L, {
324
+ }), (r, m) => (c(), E(W, {
325
325
  placement: "bottom",
326
326
  backdrop: !0,
327
327
  keepalive: !1,
328
- visible: r.value,
329
- onDismiss: _
328
+ visible: s.value,
329
+ onDismiss: f
330
330
  }, {
331
331
  default: B(() => [
332
332
  k("div", {
333
- class: I(["t-action", { pop: u.value }]),
333
+ class: x(["t-action", { pop: u.value }]),
334
334
  ref_key: "container",
335
335
  ref: l
336
336
  }, [
337
- (c(!0), m(A, null, H(e.actions, (h) => (c(), m("div", null, [
338
- (c(!0), m(A, null, H(h, (p) => (c(), E(F, {
339
- color: p.color,
340
- size: p.size,
341
- variant: p.variant,
342
- onClick: (x) => v(p),
337
+ (c(!0), v(N, null, U(e.actions, (y) => (c(), v("div", null, [
338
+ (c(!0), v(N, null, U(y, (d) => (c(), E(G, {
339
+ color: d.color,
340
+ size: d.size,
341
+ variant: d.variant,
342
+ onClick: (S) => _(d),
343
343
  block: ""
344
344
  }, {
345
345
  default: B(() => [
346
- X(P(p.text), 1)
346
+ L(P(d.text), 1)
347
347
  ]),
348
348
  _: 2
349
349
  }, 1032, ["color", "size", "variant", "onClick"]))), 256))
@@ -353,18 +353,18 @@ const _e = /* @__PURE__ */ g(fe, [["render", ve]]), ye = /* @__PURE__ */ T({
353
353
  _: 1
354
354
  }, 8, ["visible"]));
355
355
  }
356
- }), Ie = /* @__PURE__ */ g(xe, [["__scopeId", "data-v-73339adc"]]), Yt = (t = {}) => ({
356
+ }), Ie = /* @__PURE__ */ b(xe, [["__scopeId", "data-v-972de12a"]]), Yt = (t = {}) => ({
357
357
  open() {
358
358
  return new Promise((n) => {
359
359
  let o = document.body.querySelector(".t-app");
360
360
  if (!o) return;
361
- const e = document.createElement("div"), r = y();
361
+ const e = document.createElement("div"), s = g();
362
362
  o.appendChild(e);
363
- const a = U({
363
+ const a = j({
364
364
  render() {
365
- return j(Ie, {
365
+ return F(Ie, {
366
366
  ...t,
367
- ref: r,
367
+ ref: s,
368
368
  onDismiss: (l, i) => {
369
369
  setTimeout(() => {
370
370
  a.unmount(), e.remove();
@@ -374,7 +374,7 @@ const _e = /* @__PURE__ */ g(fe, [["render", ve]]), ye = /* @__PURE__ */ T({
374
374
  }
375
375
  });
376
376
  a.mount(e), setTimeout(() => {
377
- r.value?.open?.();
377
+ s.value?.open?.();
378
378
  }, 50);
379
379
  });
380
380
  }
@@ -385,28 +385,28 @@ const _e = /* @__PURE__ */ g(fe, [["render", ve]]), ye = /* @__PURE__ */ T({
385
385
  },
386
386
  emits: ["dismiss"],
387
387
  setup(t, { expose: n, emit: o }) {
388
- const e = t, r = y(!1), a = y();
388
+ const e = t, s = g(!1), a = g();
389
389
  let l;
390
390
  return n({
391
391
  open: () => {
392
- r.value = !0;
392
+ s.value = !0;
393
393
  },
394
394
  close: () => {
395
- r.value = !1;
395
+ s.value = !1;
396
396
  }
397
- }), R(() => a.value, (d) => {
398
- d && (l = V(a.value, {
399
- beforeEvent(v) {
400
- return v.stopPropagation(), O(v.target) || (v.preventDefault(), q()), !1;
397
+ }), R(() => a.value, (p) => {
398
+ p && (l = A(a.value, {
399
+ beforeEvent(_, f) {
400
+ return f.stopPropagation(), q(f.target) || (f.preventDefault(), X()), !1;
401
401
  }
402
402
  }));
403
- }), N(() => {
403
+ }), O(() => {
404
404
  l && l.destroy();
405
- }), (d, v) => (c(), E(L, {
405
+ }), (p, _) => (c(), E(W, {
406
406
  placement: "center",
407
407
  backdrop: !0,
408
408
  keepalive: !1,
409
- visible: r.value
409
+ visible: s.value
410
410
  }, {
411
411
  default: B(() => [
412
412
  k("div", {
@@ -414,7 +414,7 @@ const _e = /* @__PURE__ */ g(fe, [["render", ve]]), ye = /* @__PURE__ */ T({
414
414
  ref_key: "container",
415
415
  ref: a
416
416
  }, [
417
- b(d.$slots, "default", {}, () => [
417
+ h(p.$slots, "default", {}, () => [
418
418
  M(Q, {
419
419
  type: e.type
420
420
  }, null, 8, ["type"])
@@ -424,20 +424,20 @@ const _e = /* @__PURE__ */ g(fe, [["render", ve]]), ye = /* @__PURE__ */ T({
424
424
  _: 3
425
425
  }, 8, ["visible"]));
426
426
  }
427
- }), ze = /* @__PURE__ */ g(Se, [["__scopeId", "data-v-d048a41d"]]), Ht = (t = {}) => {
428
- const n = y(), o = document.body.querySelector(".t-app");
429
- let e = null, r = null;
427
+ }), ze = /* @__PURE__ */ b(Se, [["__scopeId", "data-v-77aa517f"]]), Ht = (t = {}) => {
428
+ const n = g(), o = document.body.querySelector(".t-app");
429
+ let e = null, s = null;
430
430
  return {
431
431
  open() {
432
432
  return new Promise((a) => {
433
- o && (r = document.createElement("div"), o.appendChild(r), e = U({
433
+ o && (s = document.createElement("div"), o.appendChild(s), e = j({
434
434
  render() {
435
- return j(ze, {
435
+ return F(ze, {
436
436
  ...t,
437
437
  ref: n
438
438
  });
439
439
  }
440
- }), e.mount(r), setTimeout(() => {
440
+ }), e.mount(s), setTimeout(() => {
441
441
  n.value?.open?.(), a(!0);
442
442
  }, 50));
443
443
  });
@@ -445,12 +445,12 @@ const _e = /* @__PURE__ */ g(fe, [["render", ve]]), ye = /* @__PURE__ */ T({
445
445
  close() {
446
446
  return new Promise((a) => {
447
447
  n.value?.close?.(), setTimeout(() => {
448
- e?.unmount?.(), r?.remove?.(), a(!0);
448
+ e?.unmount?.(), s?.remove?.(), a(!0);
449
449
  }, 300);
450
450
  });
451
451
  }
452
452
  };
453
- }, Z = y(1e3), Ee = {
453
+ }, Z = g(1e3), Ee = {
454
454
  getNewIndex() {
455
455
  return Z.value += 2, Z.value;
456
456
  }
@@ -462,9 +462,9 @@ const _e = /* @__PURE__ */ g(fe, [["render", ve]]), ye = /* @__PURE__ */ T({
462
462
  screens: C,
463
463
  addScreen: Be,
464
464
  removeScreen: Ce,
465
- hasPrevious: S(() => C.length > 1),
466
- currentScreen: S(() => C[C.length - 1]),
467
- lastScreen: S(() => {
465
+ hasPrevious: I(() => C.length > 1),
466
+ currentScreen: I(() => C[C.length - 1]),
467
+ lastScreen: I(() => {
468
468
  if (!(C.length < 2))
469
469
  return C[C.length - 2];
470
470
  })
@@ -480,88 +480,88 @@ const _e = /* @__PURE__ */ g(fe, [["render", ve]]), ye = /* @__PURE__ */ T({
480
480
  },
481
481
  emits: ["dismiss"],
482
482
  setup(t, { expose: n, emit: o }) {
483
- const e = t, r = o, a = y(!1), l = y(!1), i = y(!1), u = () => {
483
+ const e = t, s = o, a = g(!1), l = g(!1), i = g(!1), u = () => {
484
484
  l.value = !0, i.value = !1, setTimeout(() => {
485
485
  a.value = !0;
486
486
  }, 10), setTimeout(() => {
487
- d();
487
+ p();
488
488
  }, e.duration + 10);
489
- }, d = () => {
489
+ }, p = () => {
490
490
  i.value = !0, setTimeout(() => {
491
- l.value = !1, a.value = !1, r("dismiss");
491
+ l.value = !1, a.value = !1, s("dismiss");
492
492
  }, 300);
493
- }, v = S(() => {
494
- let _;
495
- return e.variant == "default" && (e.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(e.color) ? _ = {
493
+ }, _ = I(() => {
494
+ let f;
495
+ return e.variant == "default" && (e.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(e.color) ? f = {
496
496
  "--border": "none",
497
497
  "--color": "var(--t-color-status-" + e.color + "-text)",
498
498
  "--background": "rgba(var(--t-color-status-" + e.color + "-rgb), 0.6)"
499
- } : _ = {
499
+ } : f = {
500
500
  "--border": "none",
501
501
  "--color": "var(--t-color-text)",
502
502
  "--background": e.color
503
- } : _ = {
503
+ } : f = {
504
504
  "--border": "none",
505
505
  "--color": "var(--t-color-text)",
506
506
  "--background": "rgba(var(--t-color-surface-rgb), 0.6)"
507
- }), e.variant == "text" && (e.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(e.color) ? _ = {
507
+ }), e.variant == "text" && (e.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(e.color) ? f = {
508
508
  "--border": "none",
509
509
  "--color": "var(--t-color-status-" + e.color + ")",
510
510
  "--background": "transparent"
511
- } : _ = {
511
+ } : f = {
512
512
  "--border": "none",
513
513
  "--color": e.color,
514
514
  "--background": "transparent"
515
- } : _ = {
515
+ } : f = {
516
516
  "--border": "none",
517
517
  "--color": "var(--t-color-text)",
518
518
  "--background": "transparent"
519
- }), e.variant == "outline" && (e.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(e.color) ? _ = {
519
+ }), e.variant == "outline" && (e.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(e.color) ? f = {
520
520
  "--border": "0.55px solid var(--t-color-status-" + e.color + ")",
521
521
  "--color": "var(--t-color-status-" + e.color + ")",
522
522
  "--background": "transparent"
523
- } : _ = {
523
+ } : f = {
524
524
  "--border": "0.55px solid " + e.color,
525
525
  "--color": e.color,
526
526
  "--background": "transparent"
527
- } : _ = {
527
+ } : f = {
528
528
  "--border": "0.55px solid var(--t-color-text)",
529
529
  "--color": "var(--t-color-text)",
530
530
  "--background": "transparent"
531
- }), _;
531
+ }), f;
532
532
  });
533
533
  return n({
534
534
  open: u
535
- }), (_, s) => l.value ? (c(), m("div", {
535
+ }), (f, r) => l.value ? (c(), v("div", {
536
536
  key: 0,
537
- class: I(["t-toast", { [e.placement]: !0, open: a.value, closing: i.value }]),
538
- style: w({ "--space": e.space, ...v.value })
537
+ class: x(["t-toast", { [e.placement]: !0, open: a.value, closing: i.value }]),
538
+ style: w({ "--space": e.space, ..._.value })
539
539
  }, P(e.message), 7)) : z("", !0);
540
540
  }
541
- }), re = /* @__PURE__ */ g(Pe, [["__scopeId", "data-v-98e8be37"]]), Ut = (t = {}) => ({
541
+ }), se = /* @__PURE__ */ b(Pe, [["__scopeId", "data-v-98e8be37"]]), Ut = (t = {}) => ({
542
542
  open() {
543
543
  let n = document.body.querySelector(".t-app");
544
544
  if (!n) return;
545
- const o = document.createElement("div"), e = y();
545
+ const o = document.createElement("div"), e = g();
546
546
  n.appendChild(o);
547
- const r = U({
547
+ const s = j({
548
548
  render() {
549
- return j(re, {
549
+ return F(se, {
550
550
  ...t,
551
551
  ref: e,
552
552
  onDismiss: () => {
553
553
  setTimeout(() => {
554
- r.unmount(), o.remove();
554
+ s.unmount(), o.remove();
555
555
  }, 300);
556
556
  }
557
557
  });
558
558
  }
559
559
  });
560
- r.mount(o), setTimeout(() => {
560
+ s.mount(o), setTimeout(() => {
561
561
  e.value?.open?.();
562
562
  }, 50);
563
563
  }
564
- }), De = y(0);
564
+ }), De = g(0);
565
565
  function Re() {
566
566
  return {
567
567
  height: De
@@ -575,20 +575,20 @@ const Ve = /* @__PURE__ */ T({
575
575
  },
576
576
  setup(t) {
577
577
  const n = t, { height: o } = Re();
578
- return (e, r) => (c(), m("div", {
579
- class: I(["t-cable", { keyboard: n.keyboard && D(o) > 0, [n.placement]: !0 }]),
578
+ return (e, s) => (c(), v("div", {
579
+ class: x(["t-cable", { keyboard: n.keyboard && D(o) > 0, [n.placement]: !0 }]),
580
580
  style: w({ "--t-keyboard-height": D(o) + "px", "--t-keyboard-transition": D(o) > 0 ? "0.3s" : "0.1s" })
581
581
  }, [
582
- b(e.$slots, "default", {}, void 0, !0)
582
+ h(e.$slots, "default", {}, void 0, !0)
583
583
  ], 6));
584
584
  }
585
- }), Ae = /* @__PURE__ */ g(Ve, [["__scopeId", "data-v-ecb72421"]]), Ne = /* @__PURE__ */ T({
585
+ }), Ae = /* @__PURE__ */ b(Ve, [["__scopeId", "data-v-ecb72421"]]), Ne = /* @__PURE__ */ T({
586
586
  __name: "t-card",
587
587
  props: {
588
588
  color: { default: null }
589
589
  },
590
590
  setup(t) {
591
- const n = t, o = S(() => {
591
+ const n = t, o = I(() => {
592
592
  let e;
593
593
  return n.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(n.color) ? e = {
594
594
  "--background": "var(--t-color-status-" + n.color + ")"
@@ -598,146 +598,146 @@ const Ve = /* @__PURE__ */ T({
598
598
  "--background": "var(--t-color-surface)"
599
599
  }, e;
600
600
  });
601
- return (e, r) => (c(), m("div", {
601
+ return (e, s) => (c(), v("div", {
602
602
  class: "t-card",
603
603
  style: w(o.value)
604
604
  }, [
605
- b(e.$slots, "default")
605
+ h(e.$slots, "default")
606
606
  ], 4));
607
607
  }
608
608
  }), Oe = {}, qe = { class: "t-content" };
609
609
  function Xe(t, n) {
610
- return c(), m("div", qe, [
611
- b(t.$slots, "default", {}, void 0, !0)
610
+ return c(), v("div", qe, [
611
+ h(t.$slots, "default", {}, void 0, !0)
612
612
  ]);
613
613
  }
614
- const Le = /* @__PURE__ */ g(Oe, [["render", Xe], ["__scopeId", "data-v-9a833657"]]), ee = 80, We = /* @__PURE__ */ T({
614
+ const Le = /* @__PURE__ */ b(Oe, [["render", Xe], ["__scopeId", "data-v-9a833657"]]), ee = 80, We = /* @__PURE__ */ T({
615
615
  __name: "t-refresher",
616
616
  emits: ["refresh"],
617
617
  setup(t, { emit: n }) {
618
- const o = n, e = y(0), r = y(!1), a = y();
618
+ const o = n, e = g(0), s = g(!1), a = g();
619
619
  let l, i = !1;
620
620
  const u = () => {
621
- r.value = !1, e.value = 0, l && l.cancel(), setTimeout(() => {
621
+ s.value = !1, e.value = 0, l && l.cancel(), setTimeout(() => {
622
622
  i = !1;
623
623
  }, 2e3);
624
- }, d = () => {
625
- i = !0, r.value = !0, e.value = ee, o("refresh", u);
624
+ }, p = () => {
625
+ i = !0, s.value = !0, e.value = ee, o("refresh", u);
626
626
  };
627
627
  return R(() => a.value, () => {
628
628
  l && l.destroy();
629
- let v = a.value.closest(".t-content");
630
- v && (l = V(v, {
629
+ let _ = a.value.closest(".t-content");
630
+ _ && (l = A(_, {
631
631
  options: {
632
632
  minDist: 60
633
633
  },
634
- move({ dy: _, e: s }) {
635
- r.value || i || _ < 0 || (_ >= 120 ? d() : e.value = _);
634
+ move({ dy: f, e: r }) {
635
+ s.value || i || f < 0 || (f > 0 && _.scrollTop == 0 && r.preventDefault(), f >= 120 ? p() : e.value = f);
636
636
  },
637
- up({ dy: _, e: s }) {
638
- r.value || i || (_ > ee ? d() : e.value = 0);
637
+ up({ dy: f, e: r }) {
638
+ s.value || i || (f > ee ? p() : e.value = 0);
639
639
  },
640
640
  cancel() {
641
- r.value = !1, e.value = 0;
641
+ s.value = !1, e.value = 0;
642
642
  }
643
643
  }, {
644
644
  passive: !1
645
645
  }));
646
- }), N(() => {
646
+ }), O(() => {
647
647
  l && l.destroy();
648
- }), (v, _) => W((c(), m("div", {
648
+ }), (_, f) => Y((c(), v("div", {
649
649
  class: "t-refresher",
650
650
  ref_key: "container",
651
651
  ref: a,
652
652
  style: w({ height: `${e.value}px` })
653
653
  }, [
654
654
  k("img", {
655
- class: I({ spiner: r.value }),
655
+ class: x({ spiner: s.value }),
656
656
  src: "https://static.toikit.com/toikit/home_2.png?v=3",
657
657
  alt: "Loading...",
658
658
  style: { width: "22px", height: "22px" }
659
659
  }, null, 2)
660
660
  ], 4)), [
661
- [Y, e.value > 0]
661
+ [H, e.value > 0]
662
662
  ]);
663
663
  }
664
- }), Ye = /* @__PURE__ */ g(We, [["__scopeId", "data-v-05d50d5b"]]), He = {}, Ue = { class: "t-screen" };
664
+ }), Ye = /* @__PURE__ */ b(We, [["__scopeId", "data-v-c7533515"]]), He = {}, Ue = { class: "t-screen" };
665
665
  function je(t, n) {
666
- return c(), m("div", Ue, [
667
- b(t.$slots, "default", {}, void 0, !0)
666
+ return c(), v("div", Ue, [
667
+ h(t.$slots, "default", {}, void 0, !0)
668
668
  ]);
669
669
  }
670
- const se = /* @__PURE__ */ g(He, [["render", je], ["__scopeId", "data-v-66ea8649"]]), Fe = /* @__PURE__ */ T({
670
+ const re = /* @__PURE__ */ b(He, [["render", je], ["__scopeId", "data-v-66ea8649"]]), Fe = /* @__PURE__ */ T({
671
671
  __name: "t-swipe-screen",
672
672
  emits: ["change"],
673
673
  setup(t, { emit: n }) {
674
674
  let o = {};
675
- const e = oe(), r = de(), a = e.getRoutes(), l = y(!1), i = n;
676
- for (let s of a)
677
- o[s.name] = s.components;
678
- const u = (s) => {
679
- s && $.addScreen({
680
- name: s,
675
+ const e = oe(), s = de(), a = e.getRoutes(), l = g(!1), i = n;
676
+ for (let r of a)
677
+ o[r.name] = r.components;
678
+ const u = (r) => {
679
+ r && $.addScreen({
680
+ name: r,
681
681
  target: null,
682
- component: ce(o[s] || null)
682
+ component: ce(o[r] || null)
683
683
  });
684
- }, d = (s, f) => {
685
- !f || $.screens[s].target || ($.screens[s].target = f.$el, s > 0 && (l.value = !0, f.$el.style.transform = "translateX(100vw)", f.$el.transitionOrigin = "center", document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0"), setTimeout(() => {
686
- f.$el.style.transition = "transform 0.35s ease", f.$el.style.transform = "translateX(0px)", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0.35s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0.5"), $.screens.length > 1 && ($.lastScreen.value.target.style.transitionOrigin = "left center", $.lastScreen.value.target.style.transition = "transform 0.35s ease", $.lastScreen.value.target.style.transform = "translateX(-30vw) scale(0.5) perspective(100vw) rotateY(30deg)"), setTimeout(() => {
684
+ }, p = (r, m) => {
685
+ !m || $.screens[r].target || ($.screens[r].target = m.$el, r > 0 && (l.value = !0, m.$el.style.transform = "translateX(100vw)", m.$el.transitionOrigin = "center", document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0"), setTimeout(() => {
686
+ m.$el.style.transition = "transform 0.35s ease", m.$el.style.transform = "translateX(0px)", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0.35s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0.5"), $.screens.length > 1 && ($.lastScreen.value.target.style.transitionOrigin = "left center", $.lastScreen.value.target.style.transition = "transform 0.35s ease", $.lastScreen.value.target.style.transform = "translateX(-30vw) scale(0.5) perspective(100vw) rotateY(30deg)"), setTimeout(() => {
687
687
  i("change"), l.value = !1;
688
688
  }, 400);
689
689
  }, 100)));
690
- }, v = () => {
690
+ }, _ = () => {
691
691
  $.currentScreen.value.target.style.transition = "transform 0.35s ease", $.currentScreen.value.target.style.transform = "translateX(100vw) scale(1)", $.lastScreen.value.target.style.transition = "transform 0.35s ease", $.lastScreen.value.target.style.transform = "translateX(0px) scale(1) perspective(100vw) rotateY(0deg)", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0.35s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0"), l.value = !0, setTimeout(() => {
692
692
  $.removeScreen(), i("change"), l.value = !1;
693
693
  }, 400);
694
694
  };
695
- u(r.name), R(() => r.name, (s, f) => {
696
- s != $.currentScreen.value.name && ($.lastScreen.value?.name == s ? v() : u(s));
695
+ u(s.name), R(() => s.name, (r, m) => {
696
+ r != $.currentScreen.value.name && ($.lastScreen.value?.name == r ? _() : u(r));
697
697
  });
698
- const _ = () => {
698
+ const f = () => {
699
699
  l.value = !0;
700
- const s = $.currentScreen.value.target, f = $.lastScreen.value.target;
701
- s.style.transition = "transform 0.35s ease", s.style.transform = "translateX(0px)", f.style.transition = "transform 0.35s ease", f.style.transform = "translateX(-30vw) scale(0.5) perspective(100vw) rotateY(30deg)", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0.35s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0.5"), setTimeout(() => {
700
+ const r = $.currentScreen.value.target, m = $.lastScreen.value.target;
701
+ r.style.transition = "transform 0.35s ease", r.style.transform = "translateX(0px)", m.style.transition = "transform 0.35s ease", m.style.transform = "translateX(-30vw) scale(0.5) perspective(100vw) rotateY(30deg)", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0.35s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0.5"), setTimeout(() => {
702
702
  l.value = !1;
703
703
  }, 400);
704
704
  };
705
705
  return J(() => {
706
- V(document.body, {
706
+ A(document, {
707
707
  pointerId: null,
708
- beforeEvent(s) {
709
- return l.value || $.screens.length < 2 ? !1 : (s.type == "pointerdown" && !this.pointerId && (this.pointerId = s.pointerId), this.pointerId == s.pointerId);
708
+ beforeEvent(r, m) {
709
+ return l.value || $.screens.length < 2 ? !1 : (r == "down" && !this.pointerId && (this.pointerId = m.pointerId), this.pointerId == m.pointerId);
710
710
  },
711
- afterEvent(s) {
712
- (s.type == "pointerup" || s.type == "pointercancel") && (this.pointerId = null);
711
+ afterEvent(r, m) {
712
+ (r == "up" || r == "cancel") && (this.pointerId = null);
713
713
  },
714
- fast({ d: s }) {
715
- s == "right" && e.back();
714
+ fast({ d: r }) {
715
+ r == "right" && e.back();
716
716
  },
717
- move({ dx: s }) {
718
- const f = window.innerWidth, h = s / f * 100, p = $.currentScreen.value.target, x = $.lastScreen?.value?.target;
719
- if (s > 0 && s <= f) {
720
- p.style.transition = "transform 0s ease", p.style.transform = `translateX(${s}px)`, x.style.transition = "transform 0s ease", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0s"), x.style.transform = `translateX(calc(-30vw + (30vw / 100 * ${h}))) scale(${0.5 + 0.5 / 100 * h}) perspective(100vw) rotateY(${30 - 30 / 100 * h}deg)`, document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", `${0.5 - 0.5 / 100 * h}`);
717
+ move({ dx: r }) {
718
+ const m = window.innerWidth, y = r / m * 100, d = $.currentScreen.value.target, S = $.lastScreen?.value?.target;
719
+ if (r > 0 && r <= m) {
720
+ d.style.transition = "transform 0s ease", d.style.transform = `translateX(${r}px)`, S.style.transition = "transform 0s ease", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0s"), S.style.transform = `translateX(calc(-30vw + (30vw / 100 * ${y}))) scale(${0.5 + 0.5 / 100 * y}) perspective(100vw) rotateY(${30 - 30 / 100 * y}deg)`, document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", `${0.5 - 0.5 / 100 * y}`);
721
721
  return;
722
722
  }
723
723
  },
724
- up({ dx: s }) {
725
- const f = window.innerWidth;
726
- s / f * 100 >= 50 ? e.back() : _();
724
+ up({ dx: r }) {
725
+ const m = window.innerWidth;
726
+ r / m * 100 >= 50 ? e.back() : f();
727
727
  },
728
728
  cancel() {
729
- _();
729
+ f();
730
730
  }
731
731
  });
732
- }), (s, f) => (c(), m(A, null, [
733
- (c(!0), m(A, null, H(D($).screens, (h, p) => (c(), E(se, {
732
+ }), (r, m) => (c(), v(N, null, [
733
+ (c(!0), v(N, null, U(D($).screens, (y, d) => (c(), E(re, {
734
734
  ref_for: !0,
735
- ref: (x) => d(p, x),
736
- style: w({ zIndex: p + (p == D($).screens.length - 1 ? 2 : 1) }),
737
- key: p
735
+ ref: (S) => p(d, S),
736
+ style: w({ zIndex: d + (d == D($).screens.length - 1 ? 2 : 1) }),
737
+ key: d
738
738
  }, {
739
739
  default: B(() => [
740
- (c(), E(le(h.component.default)))
740
+ (c(), E(le(y.component.default)))
741
741
  ]),
742
742
  _: 2
743
743
  }, 1032, ["style"]))), 128)),
@@ -747,7 +747,7 @@ const se = /* @__PURE__ */ g(He, [["render", je], ["__scopeId", "data-v-66ea8649
747
747
  }, null, 4)
748
748
  ], 64));
749
749
  }
750
- }), Ge = /* @__PURE__ */ g(Fe, [["__scopeId", "data-v-65c9c14c"]]), Ke = /* @__PURE__ */ T({
750
+ }), Ge = /* @__PURE__ */ b(Fe, [["__scopeId", "data-v-d226eac9"]]), Ke = /* @__PURE__ */ T({
751
751
  __name: "t-toolbar",
752
752
  props: {
753
753
  placement: { default: "bottom" },
@@ -755,16 +755,16 @@ const se = /* @__PURE__ */ g(He, [["render", je], ["__scopeId", "data-v-66ea8649
755
755
  },
756
756
  setup(t) {
757
757
  const n = t;
758
- return (o, e) => (c(), m("div", {
759
- class: I(["t-toolbar", { [n.placement]: !0 }]),
758
+ return (o, e) => (c(), v("div", {
759
+ class: x(["t-toolbar", { [n.placement]: !0 }]),
760
760
  style: w({ "--t-size-toolbar": n.size })
761
761
  }, [
762
762
  k("div", null, [
763
- b(o.$slots, "default", {}, void 0, !0)
763
+ h(o.$slots, "default", {}, void 0, !0)
764
764
  ])
765
765
  ], 6));
766
766
  }
767
- }), Me = /* @__PURE__ */ g(Ke, [["__scopeId", "data-v-3b3a7896"]]), Je = /* @__PURE__ */ T({
767
+ }), Me = /* @__PURE__ */ b(Ke, [["__scopeId", "data-v-3b3a7896"]]), Je = /* @__PURE__ */ T({
768
768
  __name: "t-back-button",
769
769
  props: {
770
770
  to: {}
@@ -773,48 +773,48 @@ const se = /* @__PURE__ */ g(He, [["render", je], ["__scopeId", "data-v-66ea8649
773
773
  const n = oe(), o = t, e = () => {
774
774
  $.hasPrevious.value ? n?.back?.() : o.to && n?.push?.(o.to);
775
775
  };
776
- return (r, a) => r.to || D($).hasPrevious ? (c(), m("button", {
776
+ return (s, a) => s.to || D($).hasPrevious ? (c(), v("button", {
777
777
  key: 0,
778
778
  class: "t-back-button",
779
779
  onClick: e
780
780
  }, [
781
- b(r.$slots, "default", {}, () => [
781
+ h(s.$slots, "default", {}, () => [
782
782
  a[0] || (a[0] = k("i", { class: "ri-arrow-left-s-line" }, null, -1))
783
783
  ], !0)
784
784
  ])) : z("", !0);
785
785
  }
786
- }), Qe = /* @__PURE__ */ g(Je, [["__scopeId", "data-v-ed626a3d"]]), Ze = /* @__PURE__ */ T({
786
+ }), Qe = /* @__PURE__ */ b(Je, [["__scopeId", "data-v-ed626a3d"]]), Ze = /* @__PURE__ */ T({
787
787
  __name: "t-text",
788
788
  props: {
789
789
  color: { default: "var(--t-color-text)" },
790
790
  size: { default: "standard" }
791
791
  },
792
792
  setup(t) {
793
- const n = t, o = S(() => {
794
- let e, r = n.color;
795
- return n.size == "standard" ? e = "var(--t-fs-10)" : n.size == "small" ? e = "var(--t-fs-08)" : n.size == "large" ? e = "var(--t-fs-12)" : e = n.size, ["warning", "info", "danger", "primary", "secondary", "success"].includes(n.color) && (r = `var(--t-color-status-${n.color})`), {
796
- "--color": r,
793
+ const n = t, o = I(() => {
794
+ let e, s = n.color;
795
+ return n.size == "standard" ? e = "var(--t-fs-10)" : n.size == "small" ? e = "var(--t-fs-08)" : n.size == "large" ? e = "var(--t-fs-12)" : e = n.size, ["warning", "info", "danger", "primary", "secondary", "success"].includes(n.color) && (s = `var(--t-color-status-${n.color})`), {
796
+ "--color": s,
797
797
  "--font-size": e
798
798
  };
799
799
  });
800
- return (e, r) => (c(), m("span", {
800
+ return (e, s) => (c(), v("span", {
801
801
  class: "t-text",
802
802
  style: w(o.value)
803
803
  }, [
804
- b(e.$slots, "default", {}, void 0, !0)
804
+ h(e.$slots, "default", {}, void 0, !0)
805
805
  ], 4));
806
806
  }
807
- }), K = /* @__PURE__ */ g(Ze, [["__scopeId", "data-v-f0f94f05"]]), et = /* @__PURE__ */ T({
807
+ }), K = /* @__PURE__ */ b(Ze, [["__scopeId", "data-v-f0f94f05"]]), et = /* @__PURE__ */ T({
808
808
  __name: "t-pull-signal",
809
809
  props: {
810
810
  placement: { default: "bottom" }
811
811
  },
812
812
  setup(t) {
813
- return (n, o) => (c(), m("div", {
814
- class: I(["t-pull-bar", { [n.placement]: !0 }])
813
+ return (n, o) => (c(), v("div", {
814
+ class: x(["t-pull-bar", { [n.placement]: !0 }])
815
815
  }, null, 2));
816
816
  }
817
- }), ae = /* @__PURE__ */ g(et, [["__scopeId", "data-v-daa38c85"]]), tt = /* @__PURE__ */ T({
817
+ }), ae = /* @__PURE__ */ b(et, [["__scopeId", "data-v-daa38c85"]]), tt = /* @__PURE__ */ T({
818
818
  __name: "t-sheet",
819
819
  props: {
820
820
  background: { default: "var(--t-color-surface)" },
@@ -830,94 +830,94 @@ const se = /* @__PURE__ */ g(He, [["render", je], ["__scopeId", "data-v-66ea8649
830
830
  },
831
831
  emits: ["dismiss"],
832
832
  setup(t, { emit: n }) {
833
- const o = t, e = n, r = y(), a = y(), l = y(!1);
833
+ const o = t, e = n, s = g(), a = g(), l = g(!1);
834
834
  let i = null;
835
- const u = S(() => {
835
+ const u = I(() => {
836
836
  if (o.placement == "bottom") return "down";
837
837
  if (o.placement == "top") return "up";
838
838
  if (o.placement == "left") return "left";
839
839
  if (o.placement == "right") return "right";
840
- }), d = (_) => {
841
- e("dismiss", _);
842
- }, v = () => {
840
+ }), p = (f) => {
841
+ e("dismiss", f);
842
+ }, _ = () => {
843
843
  l.value = !0, setTimeout(() => {
844
844
  l.value = !1;
845
845
  }, 300);
846
846
  };
847
- return R(() => r.value, (_) => {
848
- _ && (i = V(r.value, {
847
+ return R(() => s.value, (f) => {
848
+ f && (i = A(s.value, {
849
849
  options: {
850
850
  minDist: 30
851
851
  },
852
852
  pointerId: null,
853
- beforeEvent(s) {
854
- let f = !1, h = !1;
855
- return l.value || !o.gesture || o.placement == "center" ? f = !0 : this.pointerId ? (f = !0, h = this.pointerId == s.pointerId) : s.type == "pointerdown" && (this.pointerId = s.pointerId, f = !0, h = !0), f && (s.stopPropagation(), O(s.target) || (s.preventDefault(), q())), h;
853
+ beforeEvent(r, m) {
854
+ let y = !1, d = !1;
855
+ return l.value || !o.gesture || o.placement == "center" ? y = !0 : this.pointerId ? (y = !0, d = this.pointerId == m.pointerId) : r == "down" && (this.pointerId = m.pointerId, y = !0, d = !0), y && (m.stopPropagation(), q(m.target) || (m.preventDefault(), X())), d;
856
856
  },
857
- afterEvent(s) {
858
- (s.type == "pointerup" || s.type == "pointercancel") && (this.pointerId = null);
857
+ afterEvent(r, m) {
858
+ (r == "up" || r == "cancel") && (this.pointerId = null);
859
859
  },
860
- fast({ d: s }) {
861
- v(), s == u.value ? e("dismiss", "gesture") : a.value.open();
860
+ fast({ d: r }) {
861
+ _(), r == u.value ? e("dismiss", "gesture") : a.value.open();
862
862
  },
863
- move({ dy: s, dx: f, d: h }) {
864
- if (h != u.value) return;
865
- let p = 0;
866
- o.placement == "bottom" || o.placement == "top" ? p = s : p = f, a.value.render({
867
- contentTransform: p + "px",
863
+ move({ dy: r, dx: m, d: y }) {
864
+ if (y != u.value) return;
865
+ let d = 0;
866
+ o.placement == "bottom" || o.placement == "top" ? d = r : d = m, a.value.render({
867
+ contentTransform: d + "px",
868
868
  transition: "0s"
869
869
  });
870
870
  },
871
- up({ dy: s, dx: f, d: h }) {
872
- if (v(), h != u.value) {
871
+ up({ dy: r, dx: m, d: y }) {
872
+ if (_(), y != u.value) {
873
873
  a.value.open();
874
874
  return;
875
875
  }
876
- let p, x, G;
877
- o.placement == "bottom" || o.placement == "top" ? (p = r.value.offsetHeight, G = s) : (p = r.value.offsetWidth, G = f), x = G / p * 100, x > 50 ? e("dismiss", "gesture") : a.value.open();
876
+ let d, S, V;
877
+ o.placement == "bottom" || o.placement == "top" ? (d = s.value.offsetHeight, V = r) : (d = s.value.offsetWidth, V = m), S = V / d * 100, S > 50 ? e("dismiss", "gesture") : a.value.open();
878
878
  },
879
879
  cancel() {
880
- v(), a.value.open();
880
+ _(), a.value.open();
881
881
  }
882
882
  }));
883
- }), N(() => {
883
+ }), O(() => {
884
884
  i && i.destroy();
885
- }), (_, s) => (c(), E(L, {
885
+ }), (f, r) => (c(), E(W, {
886
886
  ref_key: "present",
887
887
  ref: a,
888
888
  placement: o.placement,
889
- backdrop: _.backdrop,
889
+ backdrop: f.backdrop,
890
890
  visible: o.visible,
891
891
  keepalive: o.keepalive,
892
- onDismiss: d
892
+ onDismiss: p
893
893
  }, {
894
894
  default: B(() => [
895
895
  o.gesture && o.placement != "center" ? (c(), E(ae, {
896
896
  key: 0,
897
897
  placement: o.placement
898
898
  }, null, 8, ["placement"])) : z("", !0),
899
- o.closeButton && o.placement == "center" ? (c(), m("button", {
899
+ o.closeButton && o.placement == "center" ? (c(), v("button", {
900
900
  key: 1,
901
901
  class: "t-sheet-close",
902
- onClick: s[0] || (s[0] = (f) => d("close-button"))
902
+ onClick: r[0] || (r[0] = (m) => p("close-button"))
903
903
  }, [
904
- b(_.$slots, "close-icon", {}, () => [
905
- s[1] || (s[1] = k("i", { class: "ri-close-large-line" }, null, -1))
904
+ h(f.$slots, "close-icon", {}, () => [
905
+ r[1] || (r[1] = k("i", { class: "ri-close-large-line" }, null, -1))
906
906
  ], !0)
907
907
  ])) : z("", !0),
908
908
  k("div", {
909
- class: I(["t-sheet", { fullscreen: o.fullscreen, [o.placement]: !0, rounded: _.rounded, radius: o.radius }]),
909
+ class: x(["t-sheet", { fullscreen: o.fullscreen, [o.placement]: !0, rounded: f.rounded, radius: o.radius }]),
910
910
  style: w({ "--background": o.background }),
911
911
  ref_key: "sheet",
912
- ref: r
912
+ ref: s
913
913
  }, [
914
- b(_.$slots, "default", {}, void 0, !0)
914
+ h(f.$slots, "default", {}, void 0, !0)
915
915
  ], 6)
916
916
  ]),
917
917
  _: 3
918
918
  }, 8, ["placement", "backdrop", "visible", "keepalive"]));
919
919
  }
920
- }), ot = /* @__PURE__ */ g(tt, [["__scopeId", "data-v-14b7fc93"]]), nt = { class: "t-input-label" }, rt = { class: "t-input-content" }, st = ["type", "placeholder", "value"], at = /* @__PURE__ */ T({
920
+ }), ot = /* @__PURE__ */ b(tt, [["__scopeId", "data-v-f44cd02e"]]), nt = { class: "t-input-label" }, st = { class: "t-input-content" }, rt = ["type", "placeholder", "value"], at = /* @__PURE__ */ T({
921
921
  __name: "t-input",
922
922
  props: {
923
923
  size: { default: "standard" },
@@ -932,23 +932,23 @@ const se = /* @__PURE__ */ g(He, [["render", je], ["__scopeId", "data-v-66ea8649
932
932
  },
933
933
  emits: ["update:modelValue"],
934
934
  setup(t, { emit: n }) {
935
- const o = t, e = n, r = (a) => {
935
+ const o = t, e = n, s = (a) => {
936
936
  e("update:modelValue", a.target.value);
937
937
  };
938
- return (a, l) => (c(), m("div", {
939
- class: I(["t-input", { rounded: o.rounded, ["size-" + o.size]: !0, ["variant-" + o.variant]: !0 }])
938
+ return (a, l) => (c(), v("div", {
939
+ class: x(["t-input", { rounded: o.rounded, ["size-" + o.size]: !0, ["variant-" + o.variant]: !0 }])
940
940
  }, [
941
941
  k("label", null, [
942
942
  k("span", nt, P(a.label), 1),
943
- k("div", rt, [
944
- b(a.$slots, "start", {}, void 0, !0),
943
+ k("div", st, [
944
+ h(a.$slots, "start", {}, void 0, !0),
945
945
  k("input", {
946
946
  type: a.type,
947
947
  placeholder: a.placeholder,
948
948
  value: a.modelValue,
949
- onInput: r
950
- }, null, 40, st),
951
- b(a.$slots, "end", {}, void 0, !0)
949
+ onInput: s
950
+ }, null, 40, rt),
951
+ h(a.$slots, "end", {}, void 0, !0)
952
952
  ])
953
953
  ]),
954
954
  o.error ? (c(), E(K, {
@@ -956,7 +956,7 @@ const se = /* @__PURE__ */ g(He, [["render", je], ["__scopeId", "data-v-66ea8649
956
956
  color: "danger"
957
957
  }, {
958
958
  default: B(() => [
959
- X(P(o.error), 1)
959
+ L(P(o.error), 1)
960
960
  ]),
961
961
  _: 1
962
962
  })) : o.help ? (c(), E(K, {
@@ -964,91 +964,91 @@ const se = /* @__PURE__ */ g(He, [["render", je], ["__scopeId", "data-v-66ea8649
964
964
  color: "secondary"
965
965
  }, {
966
966
  default: B(() => [
967
- X(P(o.help), 1)
967
+ L(P(o.help), 1)
968
968
  ]),
969
969
  _: 1
970
970
  })) : z("", !0)
971
971
  ], 2));
972
972
  }
973
- }), lt = /* @__PURE__ */ g(at, [["__scopeId", "data-v-1a9425cf"]]), ct = {};
973
+ }), lt = /* @__PURE__ */ b(at, [["__scopeId", "data-v-1a9425cf"]]), ct = {};
974
974
  function it(t, n) {
975
- return c(), m("textarea");
975
+ return c(), v("textarea");
976
976
  }
977
- const ut = /* @__PURE__ */ g(ct, [["render", it]]), dt = {};
977
+ const ut = /* @__PURE__ */ b(ct, [["render", it]]), dt = {};
978
978
  function pt(t, n) {
979
- return c(), m("div");
979
+ return c(), v("div");
980
980
  }
981
- const ft = /* @__PURE__ */ g(dt, [["render", pt]]), mt = {}, vt = { class: "t-grid" };
981
+ const ft = /* @__PURE__ */ b(dt, [["render", pt]]), mt = {}, vt = { class: "t-grid" };
982
982
  function _t(t, n) {
983
- return c(), m("div", vt);
983
+ return c(), v("div", vt);
984
984
  }
985
- const yt = /* @__PURE__ */ g(mt, [["render", _t]]), gt = {}, bt = { class: "t-grid-item" };
985
+ const yt = /* @__PURE__ */ b(mt, [["render", _t]]), gt = {}, bt = { class: "t-grid-item" };
986
986
  function ht(t, n) {
987
- return c(), m("div", bt);
987
+ return c(), v("div", bt);
988
988
  }
989
- const kt = /* @__PURE__ */ g(gt, [["render", ht]]), $t = /* @__PURE__ */ T({
989
+ const kt = /* @__PURE__ */ b(gt, [["render", ht]]), $t = /* @__PURE__ */ T({
990
990
  __name: "t-divider",
991
991
  props: {
992
992
  direction: { default: "horizontal" }
993
993
  },
994
994
  setup(t) {
995
995
  const n = t;
996
- return (o, e) => (c(), m("div", {
997
- class: I(["t-divider", { [n.direction]: !0 }])
996
+ return (o, e) => (c(), v("div", {
997
+ class: x(["t-divider", { [n.direction]: !0 }])
998
998
  }, null, 2));
999
999
  }
1000
- }), Tt = /* @__PURE__ */ g($t, [["__scopeId", "data-v-47ee8991"]]), wt = /* @__PURE__ */ T({
1000
+ }), Tt = /* @__PURE__ */ b($t, [["__scopeId", "data-v-47ee8991"]]), wt = /* @__PURE__ */ T({
1001
1001
  __name: "t-toggle-password",
1002
1002
  props: {
1003
1003
  color: { default: "warning" }
1004
1004
  },
1005
1005
  emits: ["change"],
1006
1006
  setup(t, { emit: n }) {
1007
- const o = t, e = n, r = y(!1), a = y(), l = S(() => {
1008
- let d = o.color;
1009
- return ["warning", "info", "danger", "primary", "secondary", "success"].includes(o.color) && (d = `var(--t-color-status-${o.color})`), {
1010
- "--color": d
1007
+ const o = t, e = n, s = g(!1), a = g(), l = I(() => {
1008
+ let p = o.color;
1009
+ return ["warning", "info", "danger", "primary", "secondary", "success"].includes(o.color) && (p = `var(--t-color-status-${o.color})`), {
1010
+ "--color": p
1011
1011
  };
1012
1012
  }), i = () => a.value?.parentElement?.querySelector?.("input");
1013
1013
  J(() => {
1014
- let d = i();
1015
- d && (r.value = d.type != "password", e("change", r.value));
1014
+ let p = i();
1015
+ p && (s.value = p.type != "password", e("change", s.value));
1016
1016
  });
1017
1017
  const u = () => {
1018
- let d = i();
1019
- d && (r.value = !r.value, r.value ? d.type = "text" : d.type = "password", e("change", r.value));
1018
+ let p = i();
1019
+ p && (s.value = !s.value, s.value ? p.type = "text" : p.type = "password", e("change", s.value));
1020
1020
  };
1021
- return (d, v) => (c(), m("button", {
1021
+ return (p, _) => (c(), v("button", {
1022
1022
  ref_key: "toggle",
1023
1023
  ref: a,
1024
1024
  class: "t-toggle-password",
1025
1025
  style: w(l.value),
1026
1026
  onClick: u
1027
1027
  }, [
1028
- r.value ? b(d.$slots, "on", { key: 0 }, () => [
1029
- v[0] || (v[0] = k("i", { class: "ri-eye-line" }, null, -1))
1028
+ s.value ? h(p.$slots, "on", { key: 0 }, () => [
1029
+ _[0] || (_[0] = k("i", { class: "ri-eye-line" }, null, -1))
1030
1030
  ], !0) : z("", !0),
1031
- r.value ? z("", !0) : b(d.$slots, "off", { key: 1 }, () => [
1032
- v[1] || (v[1] = k("i", { class: "ri-eye-off-line" }, null, -1))
1031
+ s.value ? z("", !0) : h(p.$slots, "off", { key: 1 }, () => [
1032
+ _[1] || (_[1] = k("i", { class: "ri-eye-off-line" }, null, -1))
1033
1033
  ], !0)
1034
1034
  ], 4));
1035
1035
  }
1036
- }), xt = /* @__PURE__ */ g(wt, [["__scopeId", "data-v-3268e9e3"]]), It = /* @__PURE__ */ T({
1036
+ }), xt = /* @__PURE__ */ b(wt, [["__scopeId", "data-v-3268e9e3"]]), It = /* @__PURE__ */ T({
1037
1037
  __name: "t-avatar",
1038
1038
  props: {
1039
1039
  square: { type: Boolean, default: !1 },
1040
1040
  size: { default: "standard" }
1041
1041
  },
1042
1042
  setup(t) {
1043
- const n = t, o = S(() => n.size == "small" ? "24px" : n.size == "standard" ? "40px" : n.size == "large" ? "60px" : n.size);
1044
- return (e, r) => (c(), m("div", {
1045
- class: I(["t-avatar", { square: e.square }]),
1043
+ const n = t, o = I(() => n.size == "small" ? "24px" : n.size == "standard" ? "40px" : n.size == "large" ? "60px" : n.size);
1044
+ return (e, s) => (c(), v("div", {
1045
+ class: x(["t-avatar", { square: e.square }]),
1046
1046
  style: w({ "--size": o.value })
1047
1047
  }, [
1048
- b(e.$slots, "default", {}, void 0, !0)
1048
+ h(e.$slots, "default", {}, void 0, !0)
1049
1049
  ], 6));
1050
1050
  }
1051
- }), St = /* @__PURE__ */ g(It, [["__scopeId", "data-v-24384c2f"]]), zt = { class: "t-collapse-title" }, Et = {
1051
+ }), St = /* @__PURE__ */ b(It, [["__scopeId", "data-v-24384c2f"]]), zt = { class: "t-collapse-title" }, Et = {
1052
1052
  key: 0,
1053
1053
  class: "icon"
1054
1054
  }, Bt = {
@@ -1061,27 +1061,27 @@ const kt = /* @__PURE__ */ g(gt, [["render", ht]]), $t = /* @__PURE__ */ T({
1061
1061
  },
1062
1062
  emits: ["change"],
1063
1063
  setup(t, { emit: n }) {
1064
- const o = t, e = n, r = y(!1), a = y(""), l = y(), i = () => {
1065
- r.value = !r.value, a.value = `calc(${l.value.offsetHeight}px + 2rem)`, e("change", r.value);
1064
+ const o = t, e = n, s = g(!1), a = g(""), l = g(), i = () => {
1065
+ s.value = !s.value, a.value = `calc(${l.value.offsetHeight}px + 2rem)`, e("change", s.value);
1066
1066
  };
1067
- return e("change", r.value), (u, d) => (c(), m("div", {
1068
- class: I(["t-collapse", { open: r.value }]),
1067
+ return e("change", s.value), (u, p) => (c(), v("div", {
1068
+ class: x(["t-collapse", { open: s.value }]),
1069
1069
  style: w({ "--height": a.value })
1070
1070
  }, [
1071
1071
  k("div", {
1072
1072
  class: "t-collapse-header",
1073
1073
  onClick: i
1074
1074
  }, [
1075
- b(u.$slots, "icon"),
1075
+ h(u.$slots, "icon"),
1076
1076
  k("div", zt, [
1077
- b(u.$slots, "title", {}, () => [
1078
- X(P(o.title), 1)
1077
+ h(u.$slots, "title", {}, () => [
1078
+ L(P(o.title), 1)
1079
1079
  ])
1080
1080
  ]),
1081
- b(u.$slots, "toggle", {}, () => [
1082
- r.value ? (c(), m("div", Et, [...d[0] || (d[0] = [
1081
+ h(u.$slots, "toggle", {}, () => [
1082
+ s.value ? (c(), v("div", Et, [...p[0] || (p[0] = [
1083
1083
  k("i", { class: "ri-arrow-up-s-line" }, null, -1)
1084
- ])])) : (c(), m("div", Bt, [...d[1] || (d[1] = [
1084
+ ])])) : (c(), v("div", Bt, [...p[1] || (p[1] = [
1085
1085
  k("i", { class: "ri-arrow-down-s-line" }, null, -1)
1086
1086
  ])]))
1087
1087
  ])
@@ -1091,8 +1091,8 @@ const kt = /* @__PURE__ */ g(gt, [["render", ht]]), $t = /* @__PURE__ */ T({
1091
1091
  ref_key: "content",
1092
1092
  ref: l
1093
1093
  }, [
1094
- b(u.$slots, "content", {}, () => [
1095
- b(u.$slots, "default")
1094
+ h(u.$slots, "content", {}, () => [
1095
+ h(u.$slots, "default")
1096
1096
  ])
1097
1097
  ], 512)
1098
1098
  ])
@@ -1106,9 +1106,9 @@ const kt = /* @__PURE__ */ g(gt, [["render", ht]]), $t = /* @__PURE__ */ T({
1106
1106
  },
1107
1107
  emits: ["update:modelValue"],
1108
1108
  setup(t, { emit: n }) {
1109
- const o = t, e = n, r = () => {
1109
+ const o = t, e = n, s = () => {
1110
1110
  e("update:modelValue", !o.modelValue);
1111
- }, a = S(() => {
1111
+ }, a = I(() => {
1112
1112
  let l = {
1113
1113
  "--background": o.color,
1114
1114
  "--color": "#ffffff"
@@ -1118,39 +1118,39 @@ const kt = /* @__PURE__ */ g(gt, [["render", ht]]), $t = /* @__PURE__ */ T({
1118
1118
  "--color": `var(--t-color-status-${o.color}-text)`
1119
1119
  }), l;
1120
1120
  });
1121
- return (l, i) => (c(), m("div", {
1122
- class: I(["t-switch", { on: o.modelValue }]),
1121
+ return (l, i) => (c(), v("div", {
1122
+ class: x(["t-switch", { on: o.modelValue }]),
1123
1123
  style: w(a.value),
1124
- onClick: r
1124
+ onClick: s
1125
1125
  }, [...i[0] || (i[0] = [
1126
1126
  k("div", { class: "t-switch-icon" }, null, -1)
1127
1127
  ])], 6));
1128
1128
  }
1129
- }), Rt = /* @__PURE__ */ g(Dt, [["__scopeId", "data-v-3616970e"]]), Vt = /* @__PURE__ */ T({
1129
+ }), Rt = /* @__PURE__ */ b(Dt, [["__scopeId", "data-v-3616970e"]]), Vt = /* @__PURE__ */ T({
1130
1130
  __name: "t-tab",
1131
1131
  props: {
1132
1132
  value: {}
1133
1133
  },
1134
1134
  setup(t) {
1135
- const n = t, o = ie("tabsState"), e = S(() => o.active.value === n.value), r = () => {
1135
+ const n = t, o = ie("tabsState"), e = I(() => o.active.value === n.value), s = () => {
1136
1136
  o.setActive(n.value);
1137
1137
  };
1138
- return (a, l) => (c(), m("li", {
1139
- class: I(["t-tab", { active: e.value }])
1138
+ return (a, l) => (c(), v("li", {
1139
+ class: x(["t-tab", { active: e.value }])
1140
1140
  }, [
1141
- M(F, {
1141
+ M(G, {
1142
1142
  variant: "text",
1143
- onClick: r,
1143
+ onClick: s,
1144
1144
  color: e.value && D(o).variant == "text" ? D(o).color : void 0
1145
1145
  }, {
1146
1146
  default: B(() => [
1147
- b(a.$slots, "default", {}, void 0, !0)
1147
+ h(a.$slots, "default", {}, void 0, !0)
1148
1148
  ]),
1149
1149
  _: 3
1150
1150
  }, 8, ["color"])
1151
1151
  ], 2));
1152
1152
  }
1153
- }), At = /* @__PURE__ */ g(Vt, [["__scopeId", "data-v-059bab6e"]]), Nt = /* @__PURE__ */ T({
1153
+ }), At = /* @__PURE__ */ b(Vt, [["__scopeId", "data-v-059bab6e"]]), Nt = /* @__PURE__ */ T({
1154
1154
  __name: "t-tabs",
1155
1155
  props: {
1156
1156
  placement: { default: "top-start" },
@@ -1161,7 +1161,7 @@ const kt = /* @__PURE__ */ g(gt, [["render", ht]]), $t = /* @__PURE__ */ T({
1161
1161
  },
1162
1162
  emits: ["update:modelValue"],
1163
1163
  setup(t, { emit: n }) {
1164
- const o = t, e = n, r = y("0px"), a = y(), l = S(() => {
1164
+ const o = t, e = n, s = g("0px"), a = g(), l = I(() => {
1165
1165
  let u = o.color;
1166
1166
  return ["warning", "info", "danger", "primary", "secondary", "success"].includes(u) && (u = `var(--t-color-status-${u})`), u;
1167
1167
  }), i = () => {
@@ -1169,20 +1169,20 @@ const kt = /* @__PURE__ */ g(gt, [["render", ht]]), $t = /* @__PURE__ */ T({
1169
1169
  if (o.placement.startsWith("top-") || o.placement.startsWith("bottom-")) {
1170
1170
  let u = a.value.querySelector(".active");
1171
1171
  if (u) {
1172
- let d = u.getBoundingClientRect().left - a.value.getBoundingClientRect().left, v = u.offsetWidth / 2;
1173
- r.value = d + v - o.border / 2 + "px";
1172
+ let p = u.getBoundingClientRect().left - a.value.getBoundingClientRect().left, _ = u.offsetWidth / 2;
1173
+ s.value = p + _ - o.border / 2 + "px";
1174
1174
  }
1175
1175
  } else if (o.placement.startsWith("left-") || o.placement.startsWith("right-")) {
1176
1176
  let u = a.value.querySelector(".active");
1177
1177
  if (u) {
1178
- let d = u.getBoundingClientRect().top - a.value.getBoundingClientRect().top, v = u.offsetHeight / 2;
1179
- r.value = d + v - o.border / 2 + "px";
1178
+ let p = u.getBoundingClientRect().top - a.value.getBoundingClientRect().top, _ = u.offsetHeight / 2;
1179
+ s.value = p + _ - o.border / 2 + "px";
1180
1180
  }
1181
1181
  }
1182
1182
  }, 50);
1183
1183
  };
1184
1184
  return ue("tabsState", {
1185
- active: S(() => o.modelValue),
1185
+ active: I(() => o.modelValue),
1186
1186
  color: l.value,
1187
1187
  variant: o.variant,
1188
1188
  setActive: (u) => {
@@ -1190,28 +1190,28 @@ const kt = /* @__PURE__ */ g(gt, [["render", ht]]), $t = /* @__PURE__ */ T({
1190
1190
  }
1191
1191
  }), J(() => {
1192
1192
  i();
1193
- }), (u, d) => (c(), m("ul", {
1193
+ }), (u, p) => (c(), v("ul", {
1194
1194
  ref_key: "container",
1195
1195
  ref: a,
1196
- class: I(["t-tabs", { [u.placement]: !0, [u.variant]: !0 }]),
1197
- style: w({ "--color": l.value, "--transform": r.value, "--border": u.border + "px" })
1196
+ class: x(["t-tabs", { [u.placement]: !0, [u.variant]: !0 }]),
1197
+ style: w({ "--color": l.value, "--transform": s.value, "--border": u.border + "px" })
1198
1198
  }, [
1199
- b(u.$slots, "default", {}, void 0, !0)
1199
+ h(u.$slots, "default", {}, void 0, !0)
1200
1200
  ], 6));
1201
1201
  }
1202
- }), Ot = /* @__PURE__ */ g(Nt, [["__scopeId", "data-v-2f040d31"]]), jt = () => ({
1202
+ }), Ot = /* @__PURE__ */ b(Nt, [["__scopeId", "data-v-2f040d31"]]), jt = () => ({
1203
1203
  install: (t) => {
1204
- pe(), t.component("t-app", _e), t.component("t-screen", se), t.component("t-swipe-screen", Ge), t.component("t-cable", Ae), t.component("t-toolbar", Me), t.component("t-content", Le), t.component("t-card", Ne), t.component("t-refresher", Ye), t.component("t-button", F), t.component("t-back-button", Qe), t.component("t-present", L), t.component("t-text", K), t.component("t-sheet", ot), t.component("t-pull-signal", ae), t.component("t-input", lt), t.component("t-textarea", ut), t.component("t-rich-text", ft), t.component("t-grid", yt), t.component("t-grid-item", kt), t.component("t-divider", Tt), t.component("t-toggle-password", xt), t.component("t-loading-icon", Q), t.component("t-alert", ne), t.component("t-avatar", St), t.component("t-collapse", Pt), t.component("t-toast", re), t.component("t-switch", Rt), t.component("t-tab", At), t.component("t-tabs", Ot);
1204
+ pe(), t.component("t-app", _e), t.component("t-screen", re), t.component("t-swipe-screen", Ge), t.component("t-cable", Ae), t.component("t-toolbar", Me), t.component("t-content", Le), t.component("t-card", Ne), t.component("t-refresher", Ye), t.component("t-button", G), t.component("t-back-button", Qe), t.component("t-present", W), t.component("t-text", K), t.component("t-sheet", ot), t.component("t-pull-signal", ae), t.component("t-input", lt), t.component("t-textarea", ut), t.component("t-rich-text", ft), t.component("t-grid", yt), t.component("t-grid-item", kt), t.component("t-divider", Tt), t.component("t-toggle-password", xt), t.component("t-loading-icon", Q), t.component("t-alert", ne), t.component("t-avatar", St), t.component("t-collapse", Pt), t.component("t-toast", se), t.component("t-switch", Rt), t.component("t-tab", At), t.component("t-tabs", Ot);
1205
1205
  }
1206
1206
  });
1207
1207
  export {
1208
- q as blurCurrentActive,
1208
+ X as blurCurrentActive,
1209
1209
  Yt as createAction,
1210
1210
  Wt as createAlert,
1211
1211
  Ht as createLoading,
1212
1212
  Ut as createToast,
1213
1213
  jt as createToife,
1214
- O as isFormElement,
1214
+ q as isFormElement,
1215
1215
  Ee as presentController,
1216
1216
  $ as screenController,
1217
1217
  Re as useKeyboard