@toife/vue 1.2.5 → 1.2.6

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