@toife/vue 1.3.4 → 1.3.6

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