@toife/vue 1.2.44 → 1.2.45

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