@toife/vue 1.2.65 → 1.2.67

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