@toife/vue 1.2.63 → 1.2.65

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 p, openBlock as i, renderSlot as g, defineComponent as b, ref as m, computed as w, reactive as ce, watch as O, Fragment as X, withDirectives as W, createCommentVNode as E, normalizeStyle as k, normalizeClass as x, vShow as H, createElementVNode as h, 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 ie, unref as V, onUnmounted as oe, onMounted as se, resolveDynamicComponent as be, markRaw as he, inject as ue, useAttrs as ke } from "vue";
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
2
  import { gesture as ne } from "@toife/gesture";
3
- import { useRouter as de, useRoute as $e } from "vue-router";
4
- const we = (e) => e && (e.tagName == "INPUT" || e.tagName == "TEXTAREA" || e.isContentEditable), Te = () => {
3
+ import { useRouter as ue, useRoute as ke } from "vue-router";
4
+ const $e = (e) => e && (e.tagName == "INPUT" || e.tagName == "TEXTAREA" || e.isContentEditable), we = () => {
5
5
  const e = document.activeElement;
6
6
  e && (e.tagName === "INPUT" || e.tagName === "TEXTAREA" || e.isContentEditable) && e.blur();
7
- }, xe = () => {
7
+ }, Te = () => {
8
8
  document.addEventListener("contextmenu", (e) => e.preventDefault()), document.addEventListener("selectstart", (e) => e.preventDefault()), document.addEventListener("pointerup", (e) => {
9
- !we(e.target) && Te();
9
+ !$e(e.target) && we();
10
10
  });
11
11
  }, _ = (e, t) => {
12
12
  const o = e.__vccOpts || e;
13
13
  for (const [s, n] of t)
14
14
  o[s] = n;
15
15
  return o;
16
- }, Se = {}, ze = { class: "t-app" };
17
- function Ie(e, t) {
18
- return i(), p("div", ze, [
16
+ }, xe = {}, Se = { class: "t-app" };
17
+ function ze(e, t) {
18
+ return i(), p("div", Se, [
19
19
  g(e.$slots, "default")
20
20
  ]);
21
21
  }
22
- const Ee = /* @__PURE__ */ _(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
22
+ const Ie = /* @__PURE__ */ _(xe, [["render", ze]]), Ee = /* @__PURE__ */ b({
23
23
  __name: "t-present",
24
24
  props: {
25
25
  keepalive: { type: Boolean, default: !0 },
@@ -31,21 +31,21 @@ const Ee = /* @__PURE__ */ _(Se, [["render", Ie]]), Be = /* @__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 = w(() => n.value || a.keepalive), v = ce({
34
+ const s = m(0), n = m(!1), l = m(), d = m(), a = e, u = o, c = $(() => n.value || a.keepalive), y = 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
39
  }), r = (f) => {
40
- a.backdrop ? f?.backdropOpacity && (v["--t-present-backdrop-opacity"] = f.backdropOpacity) : v["--t-present-backdrop-opacity"] = "0", f?.transition && (v["--t-present-transition"] = f.transition, v["--t-present-transition"] = f.transition), f?.contentTransform && (v["--t-present-content-transform"] = f.contentTransform), f?.contentOpacity && (v["--t-present-content-opacity"] = f.contentOpacity);
41
- }, y = () => {
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
42
  r({
43
43
  contentTransform: "0px",
44
44
  transition: "0.2s",
45
45
  backdropOpacity: "0.4",
46
46
  contentOpacity: "1"
47
47
  });
48
- }, $ = () => {
48
+ }, h = () => {
49
49
  let f = "0px", D = "1";
50
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({
51
51
  contentTransform: f,
@@ -55,26 +55,26 @@ const Ee = /* @__PURE__ */ _(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
55
55
  });
56
56
  };
57
57
  O(() => a.visible, () => {
58
- a.visible ? (n.value = !0, s.value = He.getNewIndex(), setTimeout(() => {
59
- y();
60
- }, 50)) : ($(), setTimeout(() => {
58
+ a.visible ? (n.value = !0, s.value = We.getNewIndex(), setTimeout(() => {
59
+ v();
60
+ }, 50)) : (h(), setTimeout(() => {
61
61
  n.value = !1;
62
62
  }, 200));
63
63
  }), t({
64
64
  render: r,
65
- open: y,
66
- close: $
65
+ open: v,
66
+ close: h
67
67
  });
68
68
  const S = (f) => {
69
69
  f.preventDefault(), u("dismiss", "backdrop");
70
70
  };
71
- return $(), (f, D) => (i(), p(X, null, [
71
+ return h(), (f, D) => (i(), p(X, null, [
72
72
  c.value ? W((i(), p("div", {
73
73
  key: 0,
74
74
  class: x(["t-present", [{ [f.placement]: !0 }, a.class]]),
75
75
  ref_key: "present",
76
76
  ref: d,
77
- style: k([v, { zIndex: s.value }, a.style])
77
+ style: w([y, { zIndex: s.value }, a.style])
78
78
  }, [
79
79
  g(f.$slots, "default", {}, void 0, !0)
80
80
  ], 6)), [
@@ -86,13 +86,13 @@ const Ee = /* @__PURE__ */ _(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
86
86
  onClick: S,
87
87
  ref_key: "backdrop",
88
88
  ref: l,
89
- style: k([v, { zIndex: s.value - 1 }, a.style])
89
+ style: w([y, { zIndex: s.value - 1 }, a.style])
90
90
  }, null, 4)), [
91
91
  [H, n.value]
92
92
  ]) : E("", !0)
93
93
  ], 64));
94
94
  }
95
- }), L = /* @__PURE__ */ _(Be, [["__scopeId", "data-v-8eb6e6e4"]]), Ce = /* @__PURE__ */ b({
95
+ }), L = /* @__PURE__ */ _(Ee, [["__scopeId", "data-v-8eb6e6e4"]]), Be = /* @__PURE__ */ b({
96
96
  __name: "t-loading-icon",
97
97
  props: {
98
98
  size: {
@@ -107,7 +107,7 @@ const Ee = /* @__PURE__ */ _(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
107
107
  setup(e) {
108
108
  return (t, o) => (i(), p("span", {
109
109
  class: "t-loading-icon",
110
- style: k({
110
+ style: w({
111
111
  width: e.size,
112
112
  height: e.size,
113
113
  borderTopColor: e.color
@@ -116,10 +116,10 @@ const Ee = /* @__PURE__ */ _(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
116
116
  "aria-label": "Loading..."
117
117
  }, null, 4));
118
118
  }
119
- }), K = /* @__PURE__ */ _(Ce, [["__scopeId", "data-v-7c463303"]]), Ve = { class: "t-button-content" }, Pe = {
119
+ }), K = /* @__PURE__ */ _(Be, [["__scopeId", "data-v-7c463303"]]), Ce = { class: "t-button-content" }, Ve = {
120
120
  key: 0,
121
121
  class: "loader"
122
- }, Ae = /* @__PURE__ */ b({
122
+ }, Pe = /* @__PURE__ */ b({
123
123
  __name: "t-button",
124
124
  props: {
125
125
  color: { default: null },
@@ -132,7 +132,7 @@ const Ee = /* @__PURE__ */ _(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
132
132
  activeBackground: { type: Boolean, default: !1 }
133
133
  },
134
134
  setup(e) {
135
- const t = e, o = w(() => {
135
+ const t = e, o = $(() => {
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",
@@ -174,14 +174,14 @@ const Ee = /* @__PURE__ */ _(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
174
174
  });
175
175
  return (s, n) => (i(), p("button", {
176
176
  class: x(["t-button", { "active-background": t.activeBackground, rounded: t.rounded, block: t.block, ["size-" + t.size]: !0 }]),
177
- style: k(o.value)
177
+ style: w(o.value)
178
178
  }, [
179
- W(h("span", Ve, [
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", Pe, [
184
+ t.loading ? (i(), p("span", Ve, [
185
185
  G(K, {
186
186
  color: "var(--color)",
187
187
  type: t.loadingType
@@ -189,10 +189,10 @@ const Ee = /* @__PURE__ */ _(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
189
189
  ])) : E("", !0)
190
190
  ], 6));
191
191
  }
192
- }), J = /* @__PURE__ */ _(Ae, [["__scopeId", "data-v-185a9e49"]]), Re = {
192
+ }), J = /* @__PURE__ */ _(Pe, [["__scopeId", "data-v-185a9e49"]]), Ae = {
193
193
  key: 0,
194
194
  class: "t-alert-header"
195
- }, Me = { class: "t-alert-content" }, De = { class: "t-alert-footer" }, Xe = /* @__PURE__ */ b({
195
+ }, Re = { class: "t-alert-content" }, Me = { class: "t-alert-footer" }, De = /* @__PURE__ */ b({
196
196
  __name: "t-alert",
197
197
  props: {
198
198
  title: {},
@@ -206,41 +206,41 @@ const Ee = /* @__PURE__ */ _(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
206
206
  n.value = !0;
207
207
  }, c = (r) => {
208
208
  n.value = !1, r.handler && r.handler(), l("dismiss", "choose", r?.data);
209
- }, v = (r) => {
209
+ }, y = (r) => {
210
210
  s.dismiss && s.dismiss.includes(r) ? (n.value = !1, l("dismiss", r)) : r == "backdrop" && (a.value = !0, setTimeout(() => {
211
211
  a.value = !1;
212
212
  }, 300));
213
213
  };
214
214
  return t({
215
215
  open: u
216
- }), (r, y) => (i(), C(L, {
216
+ }), (r, v) => (i(), C(L, {
217
217
  placement: "center",
218
218
  backdrop: !0,
219
219
  keepalive: !1,
220
220
  visible: n.value,
221
- onDismiss: v
221
+ onDismiss: y
222
222
  }, {
223
223
  default: P(() => [
224
- h("div", {
224
+ k("div", {
225
225
  class: x(["t-alert", { pop: a.value }]),
226
226
  ref_key: "container",
227
227
  ref: d
228
228
  }, [
229
229
  g(r.$slots, "header", {}, () => [
230
- s.title ? (i(), p("div", Re, R(s.title), 1)) : E("", !0)
230
+ s.title ? (i(), p("div", Ae, R(s.title), 1)) : E("", !0)
231
231
  ], !0),
232
232
  g(r.$slots, "content", {}, () => [
233
- h("div", Me, R(s.message), 1)
233
+ k("div", Re, R(s.message), 1)
234
234
  ], !0),
235
235
  g(r.$slots, "footer", {}, () => [
236
- h("div", De, [
237
- (i(!0), p(X, null, F(s.actions, ($) => (i(), C(J, {
238
- color: $.color,
239
- variant: $.variant,
240
- onClick: (S) => c($)
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)
241
241
  }, {
242
242
  default: P(() => [
243
- N(R($.text), 1)
243
+ N(R(h.text), 1)
244
244
  ]),
245
245
  _: 2
246
246
  }, 1032, ["color", "variant", "onClick"]))), 256))
@@ -251,7 +251,7 @@ const Ee = /* @__PURE__ */ _(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
251
251
  _: 3
252
252
  }, 8, ["visible"]));
253
253
  }
254
- }), pe = /* @__PURE__ */ _(Xe, [["__scopeId", "data-v-05d0c578"]]), $o = (e = {}) => ({
254
+ }), de = /* @__PURE__ */ _(De, [["__scopeId", "data-v-05d0c578"]]), ko = (e = {}) => ({
255
255
  open() {
256
256
  return new Promise((t) => {
257
257
  let o = document.body.querySelector(".t-app");
@@ -260,7 +260,7 @@ const Ee = /* @__PURE__ */ _(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
260
260
  o.appendChild(s);
261
261
  const l = U({
262
262
  render() {
263
- return j(pe, {
263
+ return j(de, {
264
264
  ...e,
265
265
  ref: n,
266
266
  onDismiss: (d, a) => {
@@ -276,7 +276,7 @@ const Ee = /* @__PURE__ */ _(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
276
276
  }, 50);
277
277
  });
278
278
  }
279
- }), Oe = /* @__PURE__ */ b({
279
+ }), Xe = /* @__PURE__ */ b({
280
280
  __name: "t-action",
281
281
  props: {
282
282
  actions: {},
@@ -289,7 +289,7 @@ const Ee = /* @__PURE__ */ _(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
289
289
  n.value = !0;
290
290
  }, c = (r) => {
291
291
  n.value = !1, r.handler && r.handler(), l("dismiss", "choose", r?.data);
292
- }, v = (r) => {
292
+ }, y = (r) => {
293
293
  s.dismiss && s.dismiss.includes(r) ? (n.value = !1, l("dismiss", r)) : r == "backdrop" && (a.value = !0, setTimeout(() => {
294
294
  a.value = !1;
295
295
  }, 300));
@@ -299,21 +299,21 @@ const Ee = /* @__PURE__ */ _(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
299
299
  }), t({
300
300
  open: u,
301
301
  close
302
- }), (r, y) => (i(), C(L, {
302
+ }), (r, v) => (i(), C(L, {
303
303
  placement: "bottom",
304
304
  backdrop: !0,
305
305
  keepalive: !1,
306
306
  visible: n.value,
307
- onDismiss: v
307
+ onDismiss: y
308
308
  }, {
309
309
  default: P(() => [
310
- h("div", {
310
+ k("div", {
311
311
  class: x(["t-action", { pop: a.value }]),
312
312
  ref_key: "container",
313
313
  ref: d
314
314
  }, [
315
- (i(!0), p(X, null, F(s.actions, ($) => (i(), p("div", null, [
316
- (i(!0), p(X, null, F($, (S) => (i(), C(J, {
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
317
  color: S.color,
318
318
  size: S.size,
319
319
  variant: S.variant,
@@ -331,7 +331,7 @@ const Ee = /* @__PURE__ */ _(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
331
331
  _: 1
332
332
  }, 8, ["visible"]));
333
333
  }
334
- }), Ne = /* @__PURE__ */ _(Oe, [["__scopeId", "data-v-e693a02a"]]), wo = (e = {}) => ({
334
+ }), Oe = /* @__PURE__ */ _(Xe, [["__scopeId", "data-v-e693a02a"]]), $o = (e = {}) => ({
335
335
  open() {
336
336
  return new Promise((t) => {
337
337
  let o = document.body.querySelector(".t-app");
@@ -340,7 +340,7 @@ const Ee = /* @__PURE__ */ _(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
340
340
  o.appendChild(s);
341
341
  const l = U({
342
342
  render() {
343
- return j(Ne, {
343
+ return j(Oe, {
344
344
  ...e,
345
345
  ref: n,
346
346
  onDismiss: (d, a) => {
@@ -356,7 +356,7 @@ const Ee = /* @__PURE__ */ _(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
356
356
  }, 50);
357
357
  });
358
358
  }
359
- }), qe = { class: "t-loading" }, Le = /* @__PURE__ */ b({
359
+ }), Ne = { class: "t-loading" }, qe = /* @__PURE__ */ b({
360
360
  __name: "t-loading",
361
361
  props: {
362
362
  type: { default: "spinner" }
@@ -378,7 +378,7 @@ const Ee = /* @__PURE__ */ _(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
378
378
  visible: n.value
379
379
  }, {
380
380
  default: P(() => [
381
- h("div", qe, [
381
+ k("div", Ne, [
382
382
  g(a.$slots, "default", {}, () => [
383
383
  G(K, {
384
384
  type: s.type
@@ -389,7 +389,7 @@ const Ee = /* @__PURE__ */ _(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
389
389
  _: 3
390
390
  }, 8, ["visible"]));
391
391
  }
392
- }), We = /* @__PURE__ */ _(Le, [["__scopeId", "data-v-8f84c14e"]]), To = (e = {}) => {
392
+ }), Le = /* @__PURE__ */ _(qe, [["__scopeId", "data-v-8f84c14e"]]), wo = (e = {}) => {
393
393
  const t = m(), o = document.body.querySelector(".t-app");
394
394
  let s = null, n = null;
395
395
  return {
@@ -397,7 +397,7 @@ const Ee = /* @__PURE__ */ _(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
397
397
  return new Promise((l) => {
398
398
  o && (n = document.createElement("div"), o.appendChild(n), s = U({
399
399
  render() {
400
- return j(We, {
400
+ return j(Le, {
401
401
  ...e,
402
402
  ref: t
403
403
  });
@@ -415,11 +415,11 @@ const Ee = /* @__PURE__ */ _(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
415
415
  });
416
416
  }
417
417
  };
418
- }, ae = m(1e3), He = {
418
+ }, ae = m(1e3), We = {
419
419
  getNewIndex() {
420
420
  return ae.value += 2, ae.value;
421
421
  }
422
- }, M = ce([]), Q = m(!0), I = m(!1), A = m(-1), z = w(() => M[A.value]), q = w(() => M[A.value + 1] || void 0), B = w(() => M[M.length - 2]), fe = w(() => !I.value && Q.value && B.value), Z = {
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 = {
423
423
  reset() {
424
424
  I.value = !0;
425
425
  const e = z.value.target, t = B.value.target;
@@ -428,7 +428,7 @@ const Ee = /* @__PURE__ */ _(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
428
428
  }, 400);
429
429
  },
430
430
  move(e) {
431
- if (!fe.value) return;
431
+ if (!pe.value) return;
432
432
  const t = window.innerWidth, o = e / t * 100, s = z.value.target, n = B.value.target;
433
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}`));
434
434
  },
@@ -482,45 +482,45 @@ const Ee = /* @__PURE__ */ _(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
482
482
  }, 400);
483
483
  }, 100);
484
484
  }
485
- }, Fe = (e) => {
485
+ }, He = (e) => {
486
486
  M.push(e);
487
- }, Ge = (e, t) => {
487
+ }, Fe = (e, t) => {
488
488
  M[e].target = t;
489
489
  }, re = (e) => {
490
490
  e || M.pop();
491
- }, Ue = () => {
491
+ }, Ge = () => {
492
492
  M.splice(0, M.length);
493
- }, je = () => {
493
+ }, Ue = () => {
494
494
  Q.value = !1;
495
- }, Ke = () => {
495
+ }, je = () => {
496
496
  Q.value = !0;
497
- }, Je = (e, t) => {
497
+ }, Ke = (e, t) => {
498
498
  e == "scale" && Z.next(t), e == "transform" && Y.next(t);
499
- }, Qe = (e, t) => {
499
+ }, Je = (e, t) => {
500
500
  e == "scale" && Z.back(t), e == "transform" && Y.back(t);
501
- }, Ze = (e, t) => {
501
+ }, Qe = (e, t) => {
502
502
  e == "scale" && Z.move(t), e == "transform" && Y.move(t);
503
- }, Ye = (e) => {
503
+ }, Ze = (e) => {
504
504
  e == "scale" && Z.reset(), e == "transform" && Y.reset();
505
505
  }, T = {
506
506
  isBusy: I,
507
- isSwipeable: fe,
508
- reset: Ye,
509
- next: Je,
510
- back: Qe,
511
- move: Ze,
507
+ isSwipeable: pe,
508
+ reset: Ze,
509
+ next: Ke,
510
+ back: Je,
511
+ move: Qe,
512
512
  screens: M,
513
- addScreen: Fe,
514
- addScreenEl: Ge,
513
+ addScreen: He,
514
+ addScreenEl: Fe,
515
515
  removeScreen: re,
516
- removeAllScreen: Ue,
517
- lockSwipe: je,
518
- unlockSwipe: Ke,
516
+ removeAllScreen: Ge,
517
+ lockSwipe: Ue,
518
+ unlockSwipe: je,
519
519
  swipeable: Q,
520
520
  currentScreen: z,
521
521
  lastScreen: B,
522
522
  nextScreen: q
523
- }, et = { class: "t-toast-content" }, tt = /* @__PURE__ */ b({
523
+ }, Ye = { class: "t-toast-content" }, et = /* @__PURE__ */ b({
524
524
  __name: "t-toast",
525
525
  props: {
526
526
  message: {},
@@ -544,7 +544,7 @@ const Ee = /* @__PURE__ */ _(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
544
544
  O(() => s.visible, (r) => {
545
545
  r ? u() : c();
546
546
  });
547
- const v = w(() => {
547
+ const y = $(() => {
548
548
  let r;
549
549
  return s.variant == "default" && (s.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(s.color) ? r = {
550
550
  "--border": "none",
@@ -587,17 +587,17 @@ const Ee = /* @__PURE__ */ _(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
587
587
  return t({
588
588
  open: u,
589
589
  close: c
590
- }), (r, y) => d.value ? (i(), p("div", {
590
+ }), (r, v) => d.value ? (i(), p("div", {
591
591
  key: 0,
592
592
  class: x(["t-toast", { [s.placement]: !0, open: l.value, closing: a.value }]),
593
- style: k({ "--space": s.space, ...v.value })
593
+ style: w({ "--space": s.space, ...y.value })
594
594
  }, [
595
595
  g(r.$slots, "content", {}, () => [
596
- h("div", et, R(s.message), 1)
596
+ k("div", Ye, R(s.message), 1)
597
597
  ], !0)
598
598
  ], 6)) : E("", !0);
599
599
  }
600
- }), me = /* @__PURE__ */ _(tt, [["__scopeId", "data-v-7011351e"]]), xo = (e = {}) => ({
600
+ }), fe = /* @__PURE__ */ _(et, [["__scopeId", "data-v-7011351e"]]), To = (e = {}) => ({
601
601
  open() {
602
602
  let t = document.body.querySelector(".t-app");
603
603
  if (!t) return;
@@ -605,7 +605,7 @@ const Ee = /* @__PURE__ */ _(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
605
605
  t.appendChild(o);
606
606
  const n = U({
607
607
  render() {
608
- return j(me, {
608
+ return j(fe, {
609
609
  ...e,
610
610
  ref: s,
611
611
  onDismiss: () => {
@@ -622,36 +622,36 @@ const Ee = /* @__PURE__ */ _(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
622
622
  }, e.duration + 10);
623
623
  }, 50);
624
624
  }
625
- }), ot = m(0);
626
- function ve() {
625
+ }), tt = m(0);
626
+ function me() {
627
627
  return {
628
- height: ot
628
+ height: tt
629
629
  };
630
630
  }
631
- const st = /* @__PURE__ */ b({
631
+ const ot = /* @__PURE__ */ b({
632
632
  __name: "t-cable",
633
633
  props: {
634
634
  keyboard: { type: Boolean, default: !1 },
635
635
  placement: { default: "bottom" }
636
636
  },
637
637
  setup(e) {
638
- const t = e, { height: o } = ve();
639
- return ie("cableState", {
638
+ const t = e, { height: o } = me();
639
+ return ce("cableState", {
640
640
  placement: t.placement
641
641
  }), (s, n) => (i(), p("div", {
642
642
  class: x(["t-cable", { keyboard: t.keyboard && V(o) > 0, [t.placement]: !0 }]),
643
- style: k({ "--t-keyboard-height": V(o) + "px", "--t-keyboard-transition": V(o) > 0 ? "0.3s" : "0.1s" })
643
+ style: w({ "--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
- }), nt = /* @__PURE__ */ _(st, [["__scopeId", "data-v-6cae224b"]]), rt = /* @__PURE__ */ b({
648
+ }), st = /* @__PURE__ */ _(ot, [["__scopeId", "data-v-6cae224b"]]), nt = /* @__PURE__ */ b({
649
649
  __name: "t-card",
650
650
  props: {
651
651
  color: { default: null }
652
652
  },
653
653
  setup(e) {
654
- const t = e, o = w(() => {
654
+ const t = e, o = $(() => {
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 + ")"
@@ -663,34 +663,38 @@ const st = /* @__PURE__ */ b({
663
663
  });
664
664
  return (s, n) => (i(), p("div", {
665
665
  class: "t-card",
666
- style: k(o.value)
666
+ style: w(o.value)
667
667
  }, [
668
668
  g(s.$slots, "default")
669
669
  ], 4));
670
670
  }
671
- }), at = {}, lt = { class: "t-content" };
672
- function ct(e, t) {
673
- return i(), p("div", lt, [
671
+ }), rt = {}, at = { class: "t-content" };
672
+ function lt(e, t) {
673
+ return i(), p("div", at, [
674
674
  g(e.$slots, "default", {}, void 0, !0)
675
675
  ]);
676
676
  }
677
- const _e = /* @__PURE__ */ _(at, [["render", ct], ["__scopeId", "data-v-af750e89"]]), le = 80, it = /* @__PURE__ */ b({
677
+ const ve = /* @__PURE__ */ _(rt, [["render", lt], ["__scopeId", "data-v-af750e89"]]), ct = /* @__PURE__ */ b({
678
678
  __name: "t-refresher",
679
+ props: {
680
+ threshold: { default: 80 },
681
+ safe: { type: Boolean, default: !1 }
682
+ },
679
683
  emits: ["refresh", "move", "cancel", "start"],
680
684
  setup(e, { emit: t }) {
681
- const o = t, s = m(0), n = m(!1), l = m();
682
- let d, a = !1;
683
- const u = () => {
684
- n.value = !1, s.value = 0, d && d.cancel(), setTimeout(() => {
685
- a = !1;
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
690
  }, 2e3);
687
- }, c = () => {
688
- a = !0, n.value = !0, s.value = le, o("refresh", u);
691
+ }, y = () => {
692
+ u = !0, l.value = !0, n.value = s.threshold, o("refresh", c);
689
693
  };
690
- return O(() => l.value, () => {
691
- d && d.destroy();
692
- let v = l.value.closest(".t-content");
693
- v && (d = ne(v, {
694
+ return O(() => d.value, () => {
695
+ a && a.destroy();
696
+ let r = d.value.closest(".t-content");
697
+ r && (a = ne(r, {
694
698
  isMoving: !1,
695
699
  options: {
696
700
  minDist: 60
@@ -698,43 +702,40 @@ const _e = /* @__PURE__ */ _(at, [["render", ct], ["__scopeId", "data-v-af750e89
698
702
  down() {
699
703
  this.isMoving = !1, o("start");
700
704
  },
701
- move({ deltaY: r, initialDirection: y }) {
702
- n.value || a || y != "down" || (r >= 120 ? (this.isMoving = !1, c()) : (r > 10 || this.isMoving) && (this.isMoving = !0, s.value = r > 0 ? r : 0, o("move", r)));
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)));
703
707
  },
704
- up({ deltaY: r, initialDirection: y }) {
705
- this.isMoving = !1, !(n.value || a) && (r > le && y == "down" ? c() : (s.value = 0, o("cancel")));
708
+ up({ deltaY: v, initialDirection: h }) {
709
+ this.isMoving = !1, !(l.value || u) && (v > s.threshold && h == "down" ? y() : (n.value = 0, o("cancel")));
706
710
  },
707
711
  cancel() {
708
- this.isMoving = !1, !(n.value || a) && (n.value = !1, s.value = 0, o("cancel"));
712
+ this.isMoving = !1, !(l.value || u) && (l.value = !1, n.value = 0, o("cancel"));
709
713
  }
710
714
  }, {
711
715
  passive: !1
712
716
  }));
713
717
  }), oe(() => {
714
- d && d.destroy();
715
- }), (v, r) => W((i(), p("div", {
716
- class: "t-refresher",
718
+ a && a.destroy();
719
+ }), (r, v) => W((i(), p("div", {
720
+ class: x(["t-refresher", { safe: r.safe }]),
717
721
  ref_key: "container",
718
- ref: l,
719
- style: k({ height: `${s.value}px` })
722
+ ref: d
720
723
  }, [
721
- h("img", {
722
- class: x({ spiner: n.value }),
723
- src: "https://static.toikit.com/toikit/home_2.png?v=3",
724
- alt: "Loading...",
725
- style: { width: "22px", height: "22px" }
726
- }, null, 2)
727
- ], 4)), [
728
- [H, s.value > 0]
724
+ g(r.$slots, "default", {
725
+ offset: n.value,
726
+ refreshing: l.value
727
+ }, void 0, !0)
728
+ ], 2)), [
729
+ [H, n.value > 0]
729
730
  ]);
730
731
  }
731
- }), ut = /* @__PURE__ */ _(it, [["__scopeId", "data-v-64d0d3b0"]]), dt = {}, pt = { class: "t-screen" };
732
- function ft(e, t) {
733
- return i(), p("div", pt, [
732
+ }), it = /* @__PURE__ */ _(ct, [["__scopeId", "data-v-c435c611"]]), ut = {}, dt = { class: "t-screen" };
733
+ function pt(e, t) {
734
+ return i(), p("div", dt, [
734
735
  g(e.$slots, "default", {}, void 0, !0)
735
736
  ]);
736
737
  }
737
- const ye = /* @__PURE__ */ _(dt, [["render", ft], ["__scopeId", "data-v-c2a3436c"]]), mt = /* @__PURE__ */ b({
738
+ const _e = /* @__PURE__ */ _(ut, [["render", pt], ["__scopeId", "data-v-c2a3436c"]]), ft = /* @__PURE__ */ b({
738
739
  __name: "t-swipe-screen",
739
740
  props: {
740
741
  variant: { default: "scale" },
@@ -746,21 +747,21 @@ const ye = /* @__PURE__ */ _(dt, [["render", ft], ["__scopeId", "data-v-c2a3436c
746
747
  let o = {};
747
748
  const s = t, n = e;
748
749
  let l;
749
- const d = n.router || de(), a = n.route || $e(), u = d.getRoutes();
750
+ const d = n.router || ue(), a = n.route || ke(), u = d.getRoutes();
750
751
  for (let r of u)
751
752
  o[r.name] = r.component || r.components;
752
753
  const c = (r) => {
753
754
  r && T.addScreen({
754
755
  name: r,
755
756
  target: null,
756
- component: he(o[r] || null)
757
+ component: be(o[r] || null)
757
758
  });
758
- }, v = (r, y) => {
759
- !y || T.screens[r].target || (T.addScreenEl(r, y.$el), T.nextScreen && T.next(n.variant, () => {
759
+ }, y = (r, v) => {
760
+ !v || T.screens[r].target || (T.addScreenEl(r, v.$el), T.nextScreen && T.next(n.variant, () => {
760
761
  s("change");
761
762
  }));
762
763
  };
763
- return O(() => a.name, (r, y) => {
764
+ return O(() => a.name, (r, v) => {
764
765
  r != T.currentScreen.value?.name && (T.lastScreen.value?.name == r ? T.back(n.variant, () => {
765
766
  s("change");
766
767
  }) : c(a.name));
@@ -772,16 +773,16 @@ const ye = /* @__PURE__ */ _(dt, [["render", ft], ["__scopeId", "data-v-c2a3436c
772
773
  fast({ initialDirection: r }) {
773
774
  T.lastScreen.value && r == "right" && d.back();
774
775
  },
775
- move({ deltaX: r, initialDirection: y }) {
776
- y == "right" && T.move(n.variant, r);
776
+ move({ deltaX: r, initialDirection: v }) {
777
+ v == "right" && T.move(n.variant, r);
777
778
  },
778
- up({ deltaX: r, initialDirection: y }) {
779
- if (y != "right") {
779
+ up({ deltaX: r, initialDirection: v }) {
780
+ if (v != "right") {
780
781
  T.reset(n.variant);
781
782
  return;
782
783
  }
783
- const $ = window.innerWidth;
784
- r / $ * 100 >= 50 ? d.back() : T.reset(n.variant);
784
+ const h = window.innerWidth;
785
+ r / h * 100 >= 50 ? d.back() : T.reset(n.variant);
785
786
  },
786
787
  cancel() {
787
788
  T.reset(n.variant);
@@ -789,25 +790,25 @@ const ye = /* @__PURE__ */ _(dt, [["render", ft], ["__scopeId", "data-v-c2a3436c
789
790
  });
790
791
  }), oe(() => {
791
792
  l && l.destroy(), T.removeAllScreen();
792
- }), (r, y) => (i(), p(X, null, [
793
- (i(!0), p(X, null, F(V(T).screens, ($, S) => (i(), C(ye, {
793
+ }), (r, v) => (i(), p(X, null, [
794
+ (i(!0), p(X, null, F(V(T).screens, (h, S) => (i(), C(_e, {
794
795
  ref_for: !0,
795
- ref: (f) => v(S, f),
796
- style: k({ zIndex: S + (S == V(T).screens.length - 1 ? 2 : 1) }),
796
+ ref: (f) => y(S, f),
797
+ style: w({ zIndex: S + (S == V(T).screens.length - 1 ? 2 : 1) }),
797
798
  key: S
798
799
  }, {
799
800
  default: P(() => [
800
- (i(), C(be($.component.default)))
801
+ (i(), C(ge(h.component.default)))
801
802
  ]),
802
803
  _: 2
803
804
  }, 1032, ["style"]))), 128)),
804
- h("div", {
805
+ k("div", {
805
806
  class: "t-swipe-backdrop",
806
- style: k({ zIndex: V(T).screens.length })
807
+ style: w({ zIndex: V(T).screens.length })
807
808
  }, null, 4)
808
809
  ], 64));
809
810
  }
810
- }), vt = /* @__PURE__ */ _(mt, [["__scopeId", "data-v-23e0cfda"]]), _t = /* @__PURE__ */ b({
811
+ }), mt = /* @__PURE__ */ _(ft, [["__scopeId", "data-v-23e0cfda"]]), vt = /* @__PURE__ */ b({
811
812
  __name: "t-toolbar",
812
813
  props: {
813
814
  placement: { default: null },
@@ -815,24 +816,24 @@ const ye = /* @__PURE__ */ _(dt, [["render", ft], ["__scopeId", "data-v-c2a3436c
815
816
  size: { default: "50px" }
816
817
  },
817
818
  setup(e) {
818
- const t = e, o = ue("cableState"), s = w(() => t?.placement || o?.placement);
819
+ const t = e, o = ie("cableState"), s = $(() => t?.placement || o?.placement);
819
820
  return (n, l) => (i(), p("div", {
820
821
  class: x(["t-toolbar", { [s.value]: !0, safe: t.safe }]),
821
- style: k({ "--t-size-toolbar": t.size })
822
+ style: w({ "--t-size-toolbar": t.size })
822
823
  }, [
823
- h("div", null, [
824
+ k("div", null, [
824
825
  g(n.$slots, "default", {}, void 0, !0)
825
826
  ])
826
827
  ], 6));
827
828
  }
828
- }), yt = /* @__PURE__ */ _(_t, [["__scopeId", "data-v-1ee9866d"]]), gt = /* @__PURE__ */ b({
829
+ }), _t = /* @__PURE__ */ _(vt, [["__scopeId", "data-v-1ee9866d"]]), yt = /* @__PURE__ */ b({
829
830
  __name: "t-back-button",
830
831
  props: {
831
832
  to: {},
832
833
  router: {}
833
834
  },
834
835
  setup(e) {
835
- const t = e, o = ke(), s = t.router || de(), n = (l) => {
836
+ const t = e, o = he(), s = t.router || ue(), n = (l) => {
836
837
  if (o.onBack) {
837
838
  o.onBack(l);
838
839
  return;
@@ -845,18 +846,18 @@ const ye = /* @__PURE__ */ _(dt, [["render", ft], ["__scopeId", "data-v-c2a3436c
845
846
  onClick: n
846
847
  }, [
847
848
  g(l.$slots, "default", {}, () => [
848
- d[0] || (d[0] = h("i", { class: "ri-arrow-left-s-line" }, null, -1))
849
+ d[0] || (d[0] = k("i", { class: "ri-arrow-left-s-line" }, null, -1))
849
850
  ], !0)
850
851
  ])) : E("", !0);
851
852
  }
852
- }), bt = /* @__PURE__ */ _(gt, [["__scopeId", "data-v-dcf9d363"]]), ht = /* @__PURE__ */ b({
853
+ }), gt = /* @__PURE__ */ _(yt, [["__scopeId", "data-v-dcf9d363"]]), bt = /* @__PURE__ */ b({
853
854
  __name: "t-text",
854
855
  props: {
855
856
  color: { default: "var(--t-color-text)" },
856
857
  size: { default: "standard" }
857
858
  },
858
859
  setup(e) {
859
- const t = e, o = w(() => {
860
+ const t = e, o = $(() => {
860
861
  let s, n = t.color;
861
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})`), {
862
863
  "--color": n,
@@ -865,12 +866,12 @@ const ye = /* @__PURE__ */ _(dt, [["render", ft], ["__scopeId", "data-v-c2a3436c
865
866
  });
866
867
  return (s, n) => (i(), p("span", {
867
868
  class: "t-text",
868
- style: k(o.value)
869
+ style: w(o.value)
869
870
  }, [
870
871
  g(s.$slots, "default", {}, void 0, !0)
871
872
  ], 4));
872
873
  }
873
- }), te = /* @__PURE__ */ _(ht, [["__scopeId", "data-v-f0f94f05"]]), kt = /* @__PURE__ */ b({
874
+ }), te = /* @__PURE__ */ _(bt, [["__scopeId", "data-v-f0f94f05"]]), ht = /* @__PURE__ */ b({
874
875
  __name: "t-gesture-indicator",
875
876
  props: {
876
877
  placement: { default: "bottom" }
@@ -880,7 +881,7 @@ const ye = /* @__PURE__ */ _(dt, [["render", ft], ["__scopeId", "data-v-c2a3436c
880
881
  class: x(["t-gesture-indicator", { [t.placement]: !0 }])
881
882
  }, null, 2));
882
883
  }
883
- }), ge = /* @__PURE__ */ _(kt, [["__scopeId", "data-v-ed8f7308"]]), $t = /* @__PURE__ */ b({
884
+ }), ye = /* @__PURE__ */ _(ht, [["__scopeId", "data-v-ed8f7308"]]), kt = /* @__PURE__ */ b({
884
885
  __name: "t-sheet",
885
886
  props: {
886
887
  background: { default: "var(--t-color-surface)" },
@@ -900,14 +901,14 @@ const ye = /* @__PURE__ */ _(dt, [["render", ft], ["__scopeId", "data-v-c2a3436c
900
901
  setup(e, { emit: t }) {
901
902
  const o = e, s = t, n = m(), l = m(), d = m(!1);
902
903
  let a = null;
903
- const u = w(() => {
904
+ const u = $(() => {
904
905
  if (o.placement == "bottom") return "down";
905
906
  if (o.placement == "top") return "up";
906
907
  if (o.placement == "left") return "left";
907
908
  if (o.placement == "right") return "right";
908
909
  }), c = (r) => {
909
910
  s("dismiss", r);
910
- }, v = () => {
911
+ }, y = () => {
911
912
  d.value = !0, setTimeout(() => {
912
913
  d.value = !1;
913
914
  }, 300);
@@ -918,38 +919,38 @@ const ye = /* @__PURE__ */ _(dt, [["render", ft], ["__scopeId", "data-v-c2a3436c
918
919
  options: {
919
920
  minDist: 30
920
921
  },
921
- beforeEvent(y) {
922
+ beforeEvent(v) {
922
923
  return !(d.value || !o.gesture || o.placement == "center");
923
924
  },
924
925
  down() {
925
926
  this.isMoving = !1;
926
927
  },
927
- fast({ initialDirection: y }) {
928
- v(), y == u.value ? s("dismiss", "gesture") : l.value.open();
928
+ fast({ initialDirection: v }) {
929
+ y(), v == u.value ? s("dismiss", "gesture") : l.value.open();
929
930
  },
930
- move({ deltaY: y, deltaX: $, initialDirection: S }) {
931
+ move({ deltaY: v, deltaX: h, initialDirection: S }) {
931
932
  if (S != u.value) return;
932
933
  let f = 0;
933
- o.placement == "bottom" || o.placement == "top" ? f = y : f = $, o.placement == "bottom" && (f = y > 0 ? y : 0), o.placement == "top" && (f = y < 0 ? y : 0), o.placement == "left" && (f = $ < 0 ? $ : 0), o.placement == "right" && (f = $ > 0 ? $ : 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({
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({
934
935
  contentTransform: f + "px",
935
936
  transition: "0s"
936
937
  }));
937
938
  },
938
- up({ deltaY: y, deltaX: $, initialDirection: S }) {
939
- if (this.isMoving = !1, v(), S != u.value) {
939
+ up({ deltaY: v, deltaX: h, initialDirection: S }) {
940
+ if (this.isMoving = !1, y(), S != u.value) {
940
941
  l.value.open();
941
942
  return;
942
943
  }
943
944
  let f, D, ee;
944
- o.placement == "bottom" || o.placement == "top" ? (f = n.value.offsetHeight, ee = y) : (f = n.value.offsetWidth, ee = $), D = ee / f * 100, D > 50 ? s("dismiss", "gesture") : l.value.open();
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();
945
946
  },
946
947
  cancel() {
947
- this.isMoving = !1, v(), l.value.open();
948
+ this.isMoving = !1, y(), l.value.open();
948
949
  }
949
950
  }));
950
951
  }), oe(() => {
951
952
  a && a.destroy();
952
- }), (r, y) => (i(), C(L, {
953
+ }), (r, v) => (i(), C(L, {
953
954
  ref_key: "present",
954
955
  ref: l,
955
956
  class: x(o.class),
@@ -958,16 +959,16 @@ const ye = /* @__PURE__ */ _(dt, [["render", ft], ["__scopeId", "data-v-c2a3436c
958
959
  visible: o.visible,
959
960
  keepalive: o.keepalive,
960
961
  onDismiss: c,
961
- style: k(o.style)
962
+ style: w(o.style)
962
963
  }, {
963
964
  default: P(() => [
964
- o.gesture && o.indicator && o.placement != "center" ? (i(), C(ge, {
965
+ o.gesture && o.indicator && o.placement != "center" ? (i(), C(ye, {
965
966
  key: 0,
966
967
  placement: o.placement
967
968
  }, null, 8, ["placement"])) : E("", !0),
968
- h("div", {
969
+ k("div", {
969
970
  class: x(["t-sheet", { fullscreen: o.fullscreen, [o.placement]: !0, rounded: r.rounded, radius: o.radius }]),
970
- style: k({ "--background": o.background }),
971
+ style: w({ "--background": o.background }),
971
972
  ref_key: "sheet",
972
973
  ref: n
973
974
  }, [
@@ -977,7 +978,7 @@ const ye = /* @__PURE__ */ _(dt, [["render", ft], ["__scopeId", "data-v-c2a3436c
977
978
  _: 3
978
979
  }, 8, ["class", "placement", "backdrop", "visible", "keepalive", "style"]));
979
980
  }
980
- }), wt = /* @__PURE__ */ _($t, [["__scopeId", "data-v-71a5b877"]]), Tt = { class: "t-input-label" }, xt = { class: "t-input-content" }, St = ["type", "placeholder", "value"], zt = /* @__PURE__ */ b({
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({
981
982
  __name: "t-input",
982
983
  props: {
983
984
  size: { default: "standard" },
@@ -992,28 +993,28 @@ const ye = /* @__PURE__ */ _(dt, [["render", ft], ["__scopeId", "data-v-c2a3436c
992
993
  },
993
994
  emits: ["update:modelValue"],
994
995
  setup(e, { emit: t }) {
995
- const o = e, s = t, n = m(!1), l = w(() => !(o.modelValue === "" || o.modelValue === null || o.modelValue === void 0)), d = (c) => {
996
+ const o = e, s = t, n = m(!1), l = $(() => !(o.modelValue === "" || o.modelValue === null || o.modelValue === void 0)), d = (c) => {
996
997
  s("update:modelValue", c.target.value);
997
998
  }, a = () => {
998
999
  n.value = !0;
999
1000
  }, u = () => {
1000
1001
  n.value = !1;
1001
1002
  };
1002
- return (c, v) => (i(), p("div", {
1003
+ return (c, y) => (i(), p("div", {
1003
1004
  class: x(["t-input", { rounded: c.rounded, ["size-" + c.size]: !0, ["variant-" + c.variant]: !0, focus: n.value, "has-value": l.value }])
1004
1005
  }, [
1005
- h("label", null, [
1006
- h("span", Tt, R(c.label), 1),
1007
- h("div", xt, [
1006
+ k("label", null, [
1007
+ k("span", wt, R(c.label), 1),
1008
+ k("div", Tt, [
1008
1009
  g(c.$slots, "start", {}, void 0, !0),
1009
- h("input", {
1010
+ k("input", {
1010
1011
  type: c.type,
1011
1012
  placeholder: c.variant == "default" ? c.placeholder : "",
1012
1013
  value: c.modelValue,
1013
1014
  onInput: d,
1014
1015
  onFocus: a,
1015
1016
  onBlur: u
1016
- }, null, 40, St),
1017
+ }, null, 40, xt),
1017
1018
  g(c.$slots, "end", {}, void 0, !0)
1018
1019
  ])
1019
1020
  ]),
@@ -1036,23 +1037,23 @@ const ye = /* @__PURE__ */ _(dt, [["render", ft], ["__scopeId", "data-v-c2a3436c
1036
1037
  })) : E("", !0)
1037
1038
  ], 2));
1038
1039
  }
1039
- }), It = /* @__PURE__ */ _(zt, [["__scopeId", "data-v-fffdda84"]]), Et = {};
1040
- function Bt(e, t) {
1040
+ }), zt = /* @__PURE__ */ _(St, [["__scopeId", "data-v-fffdda84"]]), It = {};
1041
+ function Et(e, t) {
1041
1042
  return i(), p("textarea");
1042
1043
  }
1043
- const Ct = /* @__PURE__ */ _(Et, [["render", Bt]]), Vt = {};
1044
- function Pt(e, t) {
1044
+ const Bt = /* @__PURE__ */ _(It, [["render", Et]]), Ct = {};
1045
+ function Vt(e, t) {
1045
1046
  return i(), p("div");
1046
1047
  }
1047
- const At = /* @__PURE__ */ _(Vt, [["render", Pt]]), Rt = {}, Mt = { class: "t-grid" };
1048
- function Dt(e, t) {
1049
- return i(), p("div", Mt);
1048
+ const Pt = /* @__PURE__ */ _(Ct, [["render", Vt]]), At = {}, Rt = { class: "t-grid" };
1049
+ function Mt(e, t) {
1050
+ return i(), p("div", Rt);
1050
1051
  }
1051
- const Xt = /* @__PURE__ */ _(Rt, [["render", Dt]]), Ot = {}, Nt = { class: "t-grid-item" };
1052
- function qt(e, t) {
1053
- return i(), p("div", Nt);
1052
+ const Dt = /* @__PURE__ */ _(At, [["render", Mt]]), Xt = {}, Ot = { class: "t-grid-item" };
1053
+ function Nt(e, t) {
1054
+ return i(), p("div", Ot);
1054
1055
  }
1055
- const Lt = /* @__PURE__ */ _(Ot, [["render", qt]]), Wt = /* @__PURE__ */ b({
1056
+ const qt = /* @__PURE__ */ _(Xt, [["render", Nt]]), Lt = /* @__PURE__ */ b({
1056
1057
  __name: "t-divider",
1057
1058
  props: {
1058
1059
  direction: { default: "horizontal" }
@@ -1063,14 +1064,14 @@ const Lt = /* @__PURE__ */ _(Ot, [["render", qt]]), Wt = /* @__PURE__ */ b({
1063
1064
  class: x(["t-divider", { [t.direction]: !0 }])
1064
1065
  }, null, 2));
1065
1066
  }
1066
- }), Ht = /* @__PURE__ */ _(Wt, [["__scopeId", "data-v-47ee8991"]]), Ft = /* @__PURE__ */ b({
1067
+ }), Wt = /* @__PURE__ */ _(Lt, [["__scopeId", "data-v-47ee8991"]]), Ht = /* @__PURE__ */ b({
1067
1068
  __name: "t-toggle-password",
1068
1069
  props: {
1069
1070
  color: { default: "warning" }
1070
1071
  },
1071
1072
  emits: ["change"],
1072
1073
  setup(e, { emit: t }) {
1073
- const o = e, s = t, n = m(!1), l = m(), d = w(() => {
1074
+ const o = e, s = t, n = m(!1), l = m(), d = $(() => {
1074
1075
  let c = o.color;
1075
1076
  return ["warning", "info", "danger", "primary", "secondary", "success"].includes(o.color) && (c = `var(--t-color-status-${o.color})`), {
1076
1077
  "--color": c
@@ -1084,43 +1085,43 @@ const Lt = /* @__PURE__ */ _(Ot, [["render", qt]]), Wt = /* @__PURE__ */ b({
1084
1085
  let c = a();
1085
1086
  c && (n.value = !n.value, n.value ? c.type = "text" : c.type = "password", s("change", n.value));
1086
1087
  };
1087
- return (c, v) => (i(), p("button", {
1088
+ return (c, y) => (i(), p("button", {
1088
1089
  ref_key: "toggle",
1089
1090
  ref: l,
1090
1091
  class: "t-toggle-password",
1091
- style: k(d.value),
1092
+ style: w(d.value),
1092
1093
  onClick: u
1093
1094
  }, [
1094
1095
  n.value ? g(c.$slots, "on", { key: 0 }, () => [
1095
- v[0] || (v[0] = h("i", { class: "ri-eye-line" }, null, -1))
1096
+ y[0] || (y[0] = k("i", { class: "ri-eye-line" }, null, -1))
1096
1097
  ], !0) : E("", !0),
1097
1098
  n.value ? E("", !0) : g(c.$slots, "off", { key: 1 }, () => [
1098
- v[1] || (v[1] = h("i", { class: "ri-eye-off-line" }, null, -1))
1099
+ y[1] || (y[1] = k("i", { class: "ri-eye-off-line" }, null, -1))
1099
1100
  ], !0)
1100
1101
  ], 4));
1101
1102
  }
1102
- }), Gt = /* @__PURE__ */ _(Ft, [["__scopeId", "data-v-3268e9e3"]]), Ut = /* @__PURE__ */ b({
1103
+ }), Ft = /* @__PURE__ */ _(Ht, [["__scopeId", "data-v-3268e9e3"]]), Gt = /* @__PURE__ */ b({
1103
1104
  __name: "t-avatar",
1104
1105
  props: {
1105
1106
  square: { type: Boolean, default: !1 },
1106
1107
  size: { default: "standard" }
1107
1108
  },
1108
1109
  setup(e) {
1109
- const t = e, o = w(() => t.size == "small" ? "24px" : t.size == "standard" ? "40px" : t.size == "large" ? "60px" : t.size);
1110
+ const t = e, o = $(() => t.size == "small" ? "24px" : t.size == "standard" ? "40px" : t.size == "large" ? "60px" : t.size);
1110
1111
  return (s, n) => (i(), p("div", {
1111
1112
  class: x(["t-avatar", { square: s.square }]),
1112
- style: k({ "--size": o.value })
1113
+ style: w({ "--size": o.value })
1113
1114
  }, [
1114
1115
  g(s.$slots, "default", {}, void 0, !0)
1115
1116
  ], 6));
1116
1117
  }
1117
- }), jt = /* @__PURE__ */ _(Ut, [["__scopeId", "data-v-24384c2f"]]), Kt = { class: "t-collapse-title" }, Jt = {
1118
+ }), Ut = /* @__PURE__ */ _(Gt, [["__scopeId", "data-v-24384c2f"]]), jt = { class: "t-collapse-title" }, Kt = {
1118
1119
  key: 0,
1119
1120
  class: "icon"
1120
- }, Qt = {
1121
+ }, Jt = {
1121
1122
  key: 1,
1122
1123
  class: "icon"
1123
- }, Zt = { class: "t-collapse-content" }, Yt = /* @__PURE__ */ b({
1124
+ }, Qt = { class: "t-collapse-content" }, Zt = /* @__PURE__ */ b({
1124
1125
  __name: "t-collapse",
1125
1126
  props: {
1126
1127
  title: {}
@@ -1132,28 +1133,28 @@ const Lt = /* @__PURE__ */ _(Ot, [["render", qt]]), Wt = /* @__PURE__ */ b({
1132
1133
  };
1133
1134
  return s("change", n.value), (u, c) => (i(), p("div", {
1134
1135
  class: x(["t-collapse", { open: n.value }]),
1135
- style: k({ "--height": l.value })
1136
+ style: w({ "--height": l.value })
1136
1137
  }, [
1137
- h("div", {
1138
+ k("div", {
1138
1139
  class: "t-collapse-header",
1139
1140
  onClick: a
1140
1141
  }, [
1141
1142
  g(u.$slots, "icon"),
1142
- h("div", Kt, [
1143
+ k("div", jt, [
1143
1144
  g(u.$slots, "title", {}, () => [
1144
1145
  N(R(o.title), 1)
1145
1146
  ])
1146
1147
  ]),
1147
1148
  g(u.$slots, "toggle", {}, () => [
1148
- n.value ? (i(), p("div", Jt, [...c[0] || (c[0] = [
1149
- h("i", { class: "ri-arrow-up-s-line" }, null, -1)
1150
- ])])) : (i(), p("div", Qt, [...c[1] || (c[1] = [
1151
- h("i", { class: "ri-arrow-down-s-line" }, null, -1)
1149
+ n.value ? (i(), p("div", Kt, [...c[0] || (c[0] = [
1150
+ k("i", { class: "ri-arrow-up-s-line" }, null, -1)
1151
+ ])])) : (i(), p("div", Jt, [...c[1] || (c[1] = [
1152
+ k("i", { class: "ri-arrow-down-s-line" }, null, -1)
1152
1153
  ])]))
1153
1154
  ])
1154
1155
  ]),
1155
- h("div", Zt, [
1156
- h("div", {
1156
+ k("div", Qt, [
1157
+ k("div", {
1157
1158
  ref_key: "content",
1158
1159
  ref: d
1159
1160
  }, [
@@ -1164,7 +1165,7 @@ const Lt = /* @__PURE__ */ _(Ot, [["render", qt]]), Wt = /* @__PURE__ */ b({
1164
1165
  ])
1165
1166
  ], 6));
1166
1167
  }
1167
- }), eo = /* @__PURE__ */ b({
1168
+ }), Yt = /* @__PURE__ */ b({
1168
1169
  __name: "t-switch",
1169
1170
  props: {
1170
1171
  modelValue: { type: Boolean },
@@ -1174,7 +1175,7 @@ const Lt = /* @__PURE__ */ _(Ot, [["render", qt]]), Wt = /* @__PURE__ */ b({
1174
1175
  setup(e, { emit: t }) {
1175
1176
  const o = e, s = t, n = () => {
1176
1177
  s("update:modelValue", !o.modelValue);
1177
- }, l = w(() => {
1178
+ }, l = $(() => {
1178
1179
  let d = {
1179
1180
  "--background": o.color,
1180
1181
  "--color": "#ffffff"
@@ -1186,19 +1187,19 @@ const Lt = /* @__PURE__ */ _(Ot, [["render", qt]]), Wt = /* @__PURE__ */ b({
1186
1187
  });
1187
1188
  return (d, a) => (i(), p("div", {
1188
1189
  class: x(["t-switch", { on: o.modelValue }]),
1189
- style: k(l.value),
1190
+ style: w(l.value),
1190
1191
  onClick: n
1191
1192
  }, [...a[0] || (a[0] = [
1192
- h("div", { class: "t-switch-icon" }, null, -1)
1193
+ k("div", { class: "t-switch-icon" }, null, -1)
1193
1194
  ])], 6));
1194
1195
  }
1195
- }), to = /* @__PURE__ */ _(eo, [["__scopeId", "data-v-3616970e"]]), oo = /* @__PURE__ */ b({
1196
+ }), eo = /* @__PURE__ */ _(Yt, [["__scopeId", "data-v-3616970e"]]), to = /* @__PURE__ */ b({
1196
1197
  __name: "t-tab",
1197
1198
  props: {
1198
1199
  value: {}
1199
1200
  },
1200
1201
  setup(e) {
1201
- const t = e, o = ue("tabsState"), s = w(() => o.active.value === t.value), n = () => {
1202
+ const t = e, o = ie("tabsState"), s = $(() => o.active.value === t.value), n = () => {
1202
1203
  o.setActive(t.value);
1203
1204
  };
1204
1205
  return (l, d) => (i(), p("li", {
@@ -1217,7 +1218,7 @@ const Lt = /* @__PURE__ */ _(Ot, [["render", qt]]), Wt = /* @__PURE__ */ b({
1217
1218
  }, 8, ["size", "color"])
1218
1219
  ], 2));
1219
1220
  }
1220
- }), so = /* @__PURE__ */ _(oo, [["__scopeId", "data-v-f810d905"]]), no = /* @__PURE__ */ b({
1221
+ }), oo = /* @__PURE__ */ _(to, [["__scopeId", "data-v-f810d905"]]), so = /* @__PURE__ */ b({
1221
1222
  __name: "t-tabs",
1222
1223
  props: {
1223
1224
  placement: { default: "top-start" },
@@ -1229,7 +1230,7 @@ const Lt = /* @__PURE__ */ _(Ot, [["render", qt]]), Wt = /* @__PURE__ */ b({
1229
1230
  },
1230
1231
  emits: ["update:modelValue"],
1231
1232
  setup(e, { emit: t }) {
1232
- const o = e, s = t, n = m("0px"), l = m(), d = w(() => {
1233
+ const o = e, s = t, n = m("0px"), l = m(), d = $(() => {
1233
1234
  let u = o.color;
1234
1235
  return ["warning", "info", "danger", "primary", "secondary", "success"].includes(u) && (u = `var(--t-color-status-${u})`), u;
1235
1236
  }), a = () => {
@@ -1237,20 +1238,20 @@ const Lt = /* @__PURE__ */ _(Ot, [["render", qt]]), Wt = /* @__PURE__ */ b({
1237
1238
  if (o.placement.startsWith("top-") || o.placement.startsWith("bottom-")) {
1238
1239
  let u = l.value.querySelector(".active");
1239
1240
  if (u) {
1240
- let c = u.getBoundingClientRect().left - l.value.getBoundingClientRect().left + l.value.scrollLeft, v = u.offsetWidth / 2;
1241
- n.value = c + v - o.border / 2 + "px";
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";
1242
1243
  }
1243
1244
  } else if (o.placement.startsWith("left-") || o.placement.startsWith("right-")) {
1244
1245
  let u = l.value.querySelector(".active");
1245
1246
  if (u) {
1246
- let c = u.getBoundingClientRect().top - l.value.getBoundingClientRect().top + l.value.scrollTop, v = u.offsetHeight / 2;
1247
- n.value = c + v - o.border / 2 + "px";
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";
1248
1249
  }
1249
1250
  }
1250
1251
  }, 50);
1251
1252
  };
1252
- return ie("tabsState", {
1253
- active: w(() => o.modelValue),
1253
+ return ce("tabsState", {
1254
+ active: $(() => o.modelValue),
1254
1255
  color: d.value,
1255
1256
  size: o.size,
1256
1257
  variant: o.variant,
@@ -1263,25 +1264,25 @@ const Lt = /* @__PURE__ */ _(Ot, [["render", qt]]), Wt = /* @__PURE__ */ b({
1263
1264
  ref_key: "container",
1264
1265
  ref: l,
1265
1266
  class: x(["t-tabs", { [u.placement]: !0, [u.variant]: !0 }]),
1266
- style: k({ "--color": d.value, "--transform": n.value, "--border": u.border + "px" })
1267
+ style: w({ "--color": d.value, "--transform": n.value, "--border": u.border + "px" })
1267
1268
  }, [
1268
1269
  g(u.$slots, "default", {}, void 0, !0)
1269
1270
  ], 6));
1270
1271
  }
1271
- }), ro = /* @__PURE__ */ _(no, [["__scopeId", "data-v-3a46d2df"]]), ao = /* @__PURE__ */ b({
1272
+ }), no = /* @__PURE__ */ _(so, [["__scopeId", "data-v-3a46d2df"]]), ro = /* @__PURE__ */ b({
1272
1273
  __name: "t-loading-app",
1273
1274
  setup(e) {
1274
- return (t, o) => (i(), C(_e, null, {
1275
+ return (t, o) => (i(), C(ve, null, {
1275
1276
  default: P(() => [
1276
1277
  G(K, { type: "spinner" })
1277
1278
  ]),
1278
1279
  _: 1
1279
1280
  }));
1280
1281
  }
1281
- }), lo = /* @__PURE__ */ _(ao, [["__scopeId", "data-v-1436aa9f"]]), co = { key: 0 }, io = {
1282
+ }), ao = /* @__PURE__ */ _(ro, [["__scopeId", "data-v-1436aa9f"]]), lo = { key: 0 }, co = {
1282
1283
  key: 0,
1283
1284
  class: "t-checkbox-label"
1284
- }, uo = /* @__PURE__ */ b({
1285
+ }, io = /* @__PURE__ */ b({
1285
1286
  __name: "t-checkbox",
1286
1287
  props: {
1287
1288
  label: { default: "" },
@@ -1294,7 +1295,7 @@ const Lt = /* @__PURE__ */ _(Ot, [["render", qt]]), Wt = /* @__PURE__ */ b({
1294
1295
  },
1295
1296
  emits: ["update:modelValue"],
1296
1297
  setup(e, { emit: t }) {
1297
- const o = e, s = t, n = w(() => {
1298
+ const o = e, s = t, n = $(() => {
1298
1299
  let a = {
1299
1300
  "--background": o.color,
1300
1301
  "--color": "#ffffff"
@@ -1303,7 +1304,7 @@ const Lt = /* @__PURE__ */ _(Ot, [["render", qt]]), Wt = /* @__PURE__ */ b({
1303
1304
  "--background": `var(--t-color-status-${o.color})`,
1304
1305
  "--color": `var(--t-color-status-${o.color}-text)`
1305
1306
  }), a;
1306
- }), l = w(() => o.multiple ? o.modelValue.includes(o.value) : o.value === void 0 ? o.modelValue : o.modelValue == o.value), d = () => {
1307
+ }), l = $(() => o.multiple ? o.modelValue.includes(o.value) : o.value === void 0 ? o.modelValue : o.modelValue == o.value), d = () => {
1307
1308
  if (o.multiple) {
1308
1309
  let a = o.modelValue;
1309
1310
  o.modelValue.includes(o.value) ? a.splice(a.indexOf(o.value), 1) : a.push(o.value), s("update:modelValue", a);
@@ -1311,32 +1312,32 @@ const Lt = /* @__PURE__ */ _(Ot, [["render", qt]]), Wt = /* @__PURE__ */ b({
1311
1312
  };
1312
1313
  return (a, u) => (i(), p("div", {
1313
1314
  class: x(["t-checkbox", { active: l.value }]),
1314
- style: k(n.value),
1315
+ style: w(n.value),
1315
1316
  onClick: d
1316
1317
  }, [
1317
- h("div", {
1318
+ k("div", {
1318
1319
  class: x(`t-checkbox-${a.type}`)
1319
1320
  }, [
1320
- a.type == "radio" ? (i(), p("div", co)) : E("", !0),
1321
+ a.type == "radio" ? (i(), p("div", lo)) : E("", !0),
1321
1322
  a.type == "check" ? g(a.$slots, "icon", { key: 1 }, () => [
1322
- u[0] || (u[0] = h("i", { class: "ri-check-line" }, null, -1))
1323
+ u[0] || (u[0] = k("i", { class: "ri-check-line" }, null, -1))
1323
1324
  ], !0) : E("", !0)
1324
1325
  ], 2),
1325
1326
  g(a.$slots, "label", {}, () => [
1326
- a.label ? (i(), p("span", io, R(o.label), 1)) : E("", !0)
1327
+ a.label ? (i(), p("span", co, R(o.label), 1)) : E("", !0)
1327
1328
  ], !0)
1328
1329
  ], 6));
1329
1330
  }
1330
- }), po = /* @__PURE__ */ _(uo, [["__scopeId", "data-v-0e13abc3"]]), fo = /* @__PURE__ */ b({
1331
+ }), uo = /* @__PURE__ */ _(io, [["__scopeId", "data-v-0e13abc3"]]), po = /* @__PURE__ */ b({
1331
1332
  __name: "t-keyboard",
1332
1333
  setup(e) {
1333
- const { height: t } = ve();
1334
+ const { height: t } = me();
1334
1335
  return (o, s) => (i(), p("div", {
1335
1336
  class: "t-keyboard",
1336
- style: k({ "--height": V(t) + "px" })
1337
+ style: w({ "--height": V(t) + "px" })
1337
1338
  }, null, 4));
1338
1339
  }
1339
- }), mo = /* @__PURE__ */ _(fo, [["__scopeId", "data-v-5d3fa1da"]]), vo = /* @__PURE__ */ b({
1340
+ }), fo = /* @__PURE__ */ _(po, [["__scopeId", "data-v-5d3fa1da"]]), mo = /* @__PURE__ */ b({
1340
1341
  __name: "t-skeleton",
1341
1342
  props: {
1342
1343
  width: { default: "100%" },
@@ -1345,23 +1346,23 @@ const Lt = /* @__PURE__ */ _(Ot, [["render", qt]]), Wt = /* @__PURE__ */ b({
1345
1346
  color: { default: null }
1346
1347
  },
1347
1348
  setup(e) {
1348
- const t = e, o = w(() => ({
1349
+ const t = e, o = $(() => ({
1349
1350
  "--width": t.width,
1350
1351
  "--height": t.height,
1351
1352
  "--radius": t.radius
1352
1353
  }));
1353
1354
  return (s, n) => (i(), p("div", {
1354
1355
  class: "t-skeleton",
1355
- style: k(o.value)
1356
+ style: w(o.value)
1356
1357
  }, null, 4));
1357
1358
  }
1358
- }), _o = /* @__PURE__ */ _(vo, [["__scopeId", "data-v-877bbdb5"]]), yo = /* @__PURE__ */ b({
1359
+ }), vo = /* @__PURE__ */ _(mo, [["__scopeId", "data-v-877bbdb5"]]), _o = /* @__PURE__ */ b({
1359
1360
  __name: "t-ripple",
1360
1361
  props: {
1361
1362
  color: { default: "primary" }
1362
1363
  },
1363
1364
  setup(e) {
1364
- const t = e, o = w(() => {
1365
+ const t = e, o = $(() => {
1365
1366
  let s = {};
1366
1367
  return t.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(t.color) ? s = {
1367
1368
  "--color": "var(--t-color-status-" + t.color + ")"
@@ -1373,23 +1374,23 @@ const Lt = /* @__PURE__ */ _(Ot, [["render", qt]]), Wt = /* @__PURE__ */ b({
1373
1374
  });
1374
1375
  return (s, n) => (i(), p("div", {
1375
1376
  class: "t-ripple",
1376
- style: k(o.value)
1377
+ style: w(o.value)
1377
1378
  }, null, 4));
1378
1379
  }
1379
- }), go = /* @__PURE__ */ _(yo, [["__scopeId", "data-v-42cb3d71"]]), So = () => ({
1380
+ }), yo = /* @__PURE__ */ _(_o, [["__scopeId", "data-v-42cb3d71"]]), xo = () => ({
1380
1381
  install: (e) => {
1381
- xe(), e.component("t-app", Ee), e.component("t-screen", ye), e.component("t-swipe-screen", vt), e.component("t-cable", nt), e.component("t-toolbar", yt), e.component("t-content", _e), e.component("t-card", rt), e.component("t-refresher", ut), e.component("t-button", J), e.component("t-back-button", bt), e.component("t-present", L), e.component("t-text", te), e.component("t-sheet", wt), e.component("t-gesture-indicator", ge), e.component("t-input", It), e.component("t-textarea", Ct), e.component("t-rich-text", At), e.component("t-grid", Xt), e.component("t-grid-item", Lt), e.component("t-divider", Ht), e.component("t-toggle-password", Gt), e.component("t-loading-icon", K), e.component("t-alert", pe), e.component("t-avatar", jt), e.component("t-collapse", Yt), e.component("t-toast", me), e.component("t-switch", to), e.component("t-tab", so), e.component("t-tabs", ro), e.component("t-loading-app", lo), e.component("t-checkbox", po), e.component("t-keyboard", mo), e.component("t-skeleton", _o), e.component("t-ripple", go);
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);
1382
1383
  }
1383
1384
  });
1384
1385
  export {
1385
- Te as blurCurrentActive,
1386
- wo as createAction,
1387
- $o as createAlert,
1388
- To as createLoading,
1389
- xo as createToast,
1390
- So as createToife,
1391
- we as isFormElement,
1392
- He as presentController,
1386
+ we as blurCurrentActive,
1387
+ $o as createAction,
1388
+ ko as createAlert,
1389
+ wo as createLoading,
1390
+ To as createToast,
1391
+ xo as createToife,
1392
+ $e as isFormElement,
1393
+ We as presentController,
1393
1394
  T as screenController,
1394
- ve as useKeyboard
1395
+ me as useKeyboard
1395
1396
  };