@toife/vue 2.1.5 → 2.1.7

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,18 @@
1
- import { createElementBlock as f, openBlock as i, renderSlot as _, defineComponent as h, ref as m, computed as x, reactive as ie, watch as W, onMounted as H, Fragment as q, withDirectives as U, createCommentVNode as I, normalizeStyle as T, vShow as j, normalizeClass as B, createElementVNode as $, createVNode as ue, createBlock as C, withCtx as N, toDisplayString as A, renderList as G, createTextVNode as M, createApp as J, h as Q, provide as de, unref as O, onUnmounted as se, resolveDynamicComponent as ke, markRaw as $e, inject as pe, useAttrs as xe, nextTick as le } from "vue";
1
+ import { createElementBlock as f, openBlock as i, renderSlot as _, defineComponent as h, ref as m, computed as x, reactive as ie, watch as W, onMounted as L, Fragment as q, withDirectives as j, createCommentVNode as E, normalizeStyle as T, vShow as G, normalizeClass as B, createElementVNode as $, createVNode as ue, createBlock as C, withCtx as N, toDisplayString as A, renderList as K, createTextVNode as M, createApp as J, h as Q, provide as de, unref as O, onUnmounted as se, resolveDynamicComponent as ke, markRaw as $e, inject as pe, useAttrs as xe, nextTick as le } from "vue";
2
2
  import { gesture as re } from "@toife/gesture";
3
3
  import { useRouter as fe, useRoute as Te } from "vue-router";
4
- const we = (t) => t && (t.tagName == "INPUT" || t.tagName == "TEXTAREA" || t.isContentEditable), Se = () => {
5
- const t = document.activeElement;
6
- t && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) && t.blur();
7
- }, Be = () => {
8
- document.addEventListener("contextmenu", (t) => t.preventDefault()), document.addEventListener("pointerup", (t) => {
9
- !we(t.target) && Se();
10
- }), "virtualKeyboard" in navigator && (navigator.virtualKeyboard.overlaysContent = !0);
11
- }, g = (t, o) => {
4
+ const g = (t, o) => {
12
5
  const e = t.__vccOpts || t;
13
6
  for (const [s, r] of o)
14
7
  e[s] = r;
15
8
  return e;
16
- }, ze = {}, Ee = { class: "t-app" };
17
- function Ie(t, o) {
18
- return i(), f("div", Ee, [
9
+ }, we = {}, Se = { class: "t-app" };
10
+ function Be(t, o) {
11
+ return i(), f("div", Se, [
19
12
  _(t.$slots, "default")
20
13
  ]);
21
14
  }
22
- const Pe = /* @__PURE__ */ g(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
15
+ const ze = /* @__PURE__ */ g(we, [["render", Be]]), Ie = /* @__PURE__ */ h({
23
16
  __name: "t-present",
24
17
  props: {
25
18
  keepalive: { type: Boolean, default: !0 },
@@ -62,16 +55,16 @@ const Pe = /* @__PURE__ */ g(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
62
55
  contentOpacity: "1"
63
56
  });
64
57
  }, b = () => {
65
- let k = "0px", K = "1";
66
- n.placement == "bottom" || n.placement == "right" ? k = "100%" : n.placement == "top" || n.placement == "left" ? k = "-100%" : n.placement == "center" && (k = "0px", K = "0"), y({
58
+ let k = "0px", U = "1";
59
+ n.placement == "bottom" || n.placement == "right" ? k = "100%" : n.placement == "top" || n.placement == "left" ? k = "-100%" : n.placement == "center" && (k = "0px", U = "0"), y({
67
60
  contentTransform: k,
68
61
  transition: c.value,
69
- contentOpacity: K,
62
+ contentOpacity: U,
70
63
  backdropOpacity: "0"
71
64
  });
72
65
  };
73
66
  W(() => n.visible, () => {
74
- n.visible ? (d.value = !1, r.value = !0, s.value = Fe.getNewIndex(), setTimeout(() => {
67
+ n.visible ? (d.value = !1, r.value = !0, s.value = Me.getNewIndex(), setTimeout(() => {
75
68
  w();
76
69
  }, 50)) : (b(), setTimeout(() => {
77
70
  r.value = !1;
@@ -84,10 +77,10 @@ const Pe = /* @__PURE__ */ g(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
84
77
  const P = (k) => {
85
78
  k.preventDefault(), p("dismiss", "backdrop");
86
79
  };
87
- return H(() => {
80
+ return L(() => {
88
81
  n.visible ? w() : b();
89
- }), (k, K) => (i(), f(q, null, [
90
- v.value ? U((i(), f("div", {
82
+ }), (k, U) => (i(), f(q, null, [
83
+ v.value ? j((i(), f("div", {
91
84
  key: 0,
92
85
  class: "t-present-backdrop",
93
86
  onPointerup: P,
@@ -95,9 +88,9 @@ const Pe = /* @__PURE__ */ g(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
95
88
  ref: l,
96
89
  style: T([a, { zIndex: s.value - 1 }, n.style])
97
90
  }, null, 36)), [
98
- [j, r.value]
99
- ]) : I("", !0),
100
- v.value ? U((i(), f("div", {
91
+ [G, r.value]
92
+ ]) : E("", !0),
93
+ v.value ? j((i(), f("div", {
101
94
  key: 1,
102
95
  class: B(["t-present", [{ [k.placement]: !0 }, n.class]]),
103
96
  ref_key: "present",
@@ -106,11 +99,11 @@ const Pe = /* @__PURE__ */ g(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
106
99
  }, [
107
100
  _(k.$slots, "default", {}, void 0, !0)
108
101
  ], 6)), [
109
- [j, r.value]
110
- ]) : I("", !0)
102
+ [G, r.value]
103
+ ]) : E("", !0)
111
104
  ], 64));
112
105
  }
113
- }), F = /* @__PURE__ */ g(Ve, [["__scopeId", "data-v-b910ec38"]]), Ce = /* @__PURE__ */ h({
106
+ }), F = /* @__PURE__ */ g(Ie, [["__scopeId", "data-v-b910ec38"]]), Ee = /* @__PURE__ */ h({
114
107
  __name: "t-icon-spinner",
115
108
  props: {
116
109
  size: {
@@ -134,10 +127,10 @@ const Pe = /* @__PURE__ */ g(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
134
127
  "aria-label": "Loading..."
135
128
  }, null, 4));
136
129
  }
137
- }), ne = /* @__PURE__ */ g(Ce, [["__scopeId", "data-v-6192deb4"]]), Re = { class: "t-button-content" }, Ae = {
130
+ }), ne = /* @__PURE__ */ g(Ee, [["__scopeId", "data-v-6192deb4"]]), Pe = { class: "t-button-content" }, Ve = {
138
131
  key: 0,
139
132
  class: "loader"
140
- }, Oe = /* @__PURE__ */ h({
133
+ }, Ce = /* @__PURE__ */ h({
141
134
  __name: "t-button",
142
135
  props: {
143
136
  color: { default: null },
@@ -194,23 +187,23 @@ const Pe = /* @__PURE__ */ g(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
194
187
  class: B(["t-button", { "active-background": o.activeBackground, rounded: o.rounded, block: o.block, ["size-" + o.size]: !0 }]),
195
188
  style: T(e.value)
196
189
  }, [
197
- U($("span", Re, [
190
+ j($("span", Pe, [
198
191
  _(s.$slots, "default", {}, void 0, !0)
199
192
  ], 512), [
200
- [j, !o.loading]
193
+ [G, !o.loading]
201
194
  ]),
202
- o.loading ? (i(), f("span", Ae, [
195
+ o.loading ? (i(), f("span", Ve, [
203
196
  ue(ne, {
204
197
  color: "var(--color)",
205
198
  type: o.loadingType
206
199
  }, null, 8, ["type"])
207
- ])) : I("", !0)
200
+ ])) : E("", !0)
208
201
  ], 6));
209
202
  }
210
- }), Z = /* @__PURE__ */ g(Oe, [["__scopeId", "data-v-f1db05a6"]]), Ne = {
203
+ }), Z = /* @__PURE__ */ g(Ce, [["__scopeId", "data-v-f1db05a6"]]), Re = {
211
204
  key: 0,
212
205
  class: "t-alert-header"
213
- }, Xe = { class: "t-alert-content" }, De = { class: "t-alert-footer" }, We = /* @__PURE__ */ h({
206
+ }, Ae = { class: "t-alert-content" }, Oe = { class: "t-alert-footer" }, Ne = /* @__PURE__ */ h({
214
207
  __name: "t-alert",
215
208
  props: {
216
209
  title: {},
@@ -245,14 +238,14 @@ const Pe = /* @__PURE__ */ g(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
245
238
  ref: u
246
239
  }, [
247
240
  _(a.$slots, "header", {}, () => [
248
- s.title ? (i(), f("div", Ne, A(s.title), 1)) : I("", !0)
241
+ s.title ? (i(), f("div", Re, A(s.title), 1)) : E("", !0)
249
242
  ], !0),
250
243
  _(a.$slots, "content", {}, () => [
251
- $("div", Xe, A(s.message), 1)
244
+ $("div", Ae, A(s.message), 1)
252
245
  ], !0),
253
246
  _(a.$slots, "footer", {}, () => [
254
- $("div", De, [
255
- (i(!0), f(q, null, G(s.actions, (y) => (i(), C(Z, {
247
+ $("div", Oe, [
248
+ (i(!0), f(q, null, K(s.actions, (y) => (i(), C(Z, {
256
249
  color: y.color,
257
250
  variant: y.variant,
258
251
  onPointerup: (w) => v(y)
@@ -269,7 +262,7 @@ const Pe = /* @__PURE__ */ g(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
269
262
  _: 3
270
263
  }, 8, ["visible"]));
271
264
  }
272
- }), me = /* @__PURE__ */ g(We, [["__scopeId", "data-v-9786ec4e"]]), ho = (t = {}) => ({
265
+ }), me = /* @__PURE__ */ g(Ne, [["__scopeId", "data-v-9786ec4e"]]), _o = (t = {}) => ({
273
266
  open() {
274
267
  return new Promise((o) => {
275
268
  let e = document.body.querySelector(".t-app");
@@ -294,7 +287,7 @@ const Pe = /* @__PURE__ */ g(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
294
287
  }, 50);
295
288
  });
296
289
  }
297
- }), qe = /* @__PURE__ */ h({
290
+ }), Xe = /* @__PURE__ */ h({
298
291
  __name: "t-action",
299
292
  props: {
300
293
  actions: { default: () => [] },
@@ -332,13 +325,13 @@ const Pe = /* @__PURE__ */ g(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
332
325
  ref_key: "container",
333
326
  ref: u
334
327
  }, [
335
- (i(!0), f(q, null, G(s.actions, (w, b) => (i(), f("div", { key: b }, [
336
- (i(!0), f(q, null, G(w, (P, k) => (i(), C(Z, {
328
+ (i(!0), f(q, null, K(s.actions, (w, b) => (i(), f("div", { key: b }, [
329
+ (i(!0), f(q, null, K(w, (P, k) => (i(), C(Z, {
337
330
  key: P.key ?? `${b}-${k}`,
338
331
  color: P.color,
339
332
  size: P.size,
340
333
  variant: P.variant,
341
- onPointerup: (K) => d(P),
334
+ onPointerup: (U) => d(P),
342
335
  block: ""
343
336
  }, {
344
337
  default: N(() => [
@@ -352,7 +345,7 @@ const Pe = /* @__PURE__ */ g(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
352
345
  _: 1
353
346
  }, 8, ["visible"]));
354
347
  }
355
- }), Me = /* @__PURE__ */ g(qe, [["__scopeId", "data-v-c3900ce1"]]), ko = (t = {}) => ({
348
+ }), De = /* @__PURE__ */ g(Xe, [["__scopeId", "data-v-b089000d"]]), go = (t = {}) => ({
356
349
  open() {
357
350
  return new Promise((o) => {
358
351
  let e = document.body.querySelector(".t-app");
@@ -361,7 +354,7 @@ const Pe = /* @__PURE__ */ g(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
361
354
  e.appendChild(s);
362
355
  const l = J({
363
356
  render() {
364
- return Q(Me, {
357
+ return Q(De, {
365
358
  ...t,
366
359
  ref: r,
367
360
  onDismiss: (u, n) => {
@@ -377,7 +370,7 @@ const Pe = /* @__PURE__ */ g(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
377
370
  }, 50);
378
371
  });
379
372
  }
380
- }), Le = { class: "t-loading" }, He = /* @__PURE__ */ h({
373
+ }), We = { class: "t-loading" }, qe = /* @__PURE__ */ h({
381
374
  __name: "t-loading",
382
375
  props: {
383
376
  type: { default: "spinner" }
@@ -399,16 +392,16 @@ const Pe = /* @__PURE__ */ g(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
399
392
  visible: s.value
400
393
  }, {
401
394
  default: N(() => [
402
- $("div", Le, [
395
+ $("div", We, [
403
396
  _(u.$slots, "default", {}, () => [
404
- u.type === "spinner" ? (i(), C(ne, { key: 0 })) : I("", !0)
397
+ u.type === "spinner" ? (i(), C(ne, { key: 0 })) : E("", !0)
405
398
  ], !0)
406
399
  ])
407
400
  ]),
408
401
  _: 3
409
402
  }, 8, ["visible"]));
410
403
  }
411
- }), ve = /* @__PURE__ */ g(He, [["__scopeId", "data-v-598c3462"]]), $o = (t = {}) => {
404
+ }), ve = /* @__PURE__ */ g(qe, [["__scopeId", "data-v-598c3462"]]), bo = (t = {}) => {
412
405
  const o = m(), e = document.body.querySelector(".t-app");
413
406
  let s = null, r = null;
414
407
  return {
@@ -434,19 +427,19 @@ const Pe = /* @__PURE__ */ g(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
434
427
  });
435
428
  }
436
429
  };
437
- }, ce = m(1e3), Fe = {
430
+ }, ce = m(1e3), Me = {
438
431
  getNewIndex() {
439
432
  return ce.value += 2, ce.value;
440
433
  }
441
- }, X = ie([]), Y = m(!0), E = m(!1), R = m(-1), z = x(() => X[R.value]), L = x(() => X[R.value + 1] || void 0), V = x(() => X[X.length - 2]), ye = x(() => !E.value && Y.value && V.value), D = (t = !0) => {
434
+ }, X = ie([]), Y = m(!0), I = m(!1), R = m(-1), z = x(() => X[R.value]), H = x(() => X[R.value + 1] || void 0), V = x(() => X[X.length - 2]), ye = x(() => !I.value && Y.value && V.value), D = (t = !0) => {
442
435
  let e = z.value.target.closest(".t-app").offsetWidth;
443
436
  return t ? e + "px" : e;
444
437
  }, ee = {
445
438
  reset() {
446
- E.value = !0;
439
+ I.value = !0;
447
440
  const t = D(), o = z.value.target, e = V.value.target;
448
441
  o.style.transition = "transform 0.35s ease", o.style.transform = "translateX(0px)", e.style.transition = "transform 0.35s ease", e.style.transform = `translateX(calc(${t} / 100 * 30 * -1)) scale(0.5) perspective(${t}) rotateY(30deg)`, document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0.35s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0.5"), setTimeout(() => {
449
- E.value = !1;
442
+ I.value = !1;
450
443
  }, 400);
451
444
  },
452
445
  move(t) {
@@ -457,30 +450,30 @@ const Pe = /* @__PURE__ */ g(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
457
450
  back(t) {
458
451
  if (!V.value) return;
459
452
  const o = D();
460
- z.value.target.style.transition = "transform 0.35s ease", z.value.target.style.transform = `translateX(${o}) scale(1)`, V.value.target.style.transition = "transform 0.35s ease", V.value.target.style.transform = `translateX(0px) scale(1) perspective(${o}) rotateY(0deg)`, document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0.35s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0"), E.value = !0, setTimeout(() => {
461
- ae(), E.value = !1, R.value -= 1, t && t();
453
+ z.value.target.style.transition = "transform 0.35s ease", z.value.target.style.transform = `translateX(${o}) scale(1)`, V.value.target.style.transition = "transform 0.35s ease", V.value.target.style.transform = `translateX(0px) scale(1) perspective(${o}) 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(() => {
454
+ ae(), I.value = !1, R.value -= 1, t && t();
462
455
  }, 400);
463
456
  },
464
457
  next(t) {
465
- if (!L.value) return;
458
+ if (!H.value) return;
466
459
  if (R.value == -1) {
467
460
  R.value += 1, t && t();
468
461
  return;
469
462
  }
470
- E.value = !0;
471
- const o = L.value.target, e = D();
463
+ I.value = !0;
464
+ const o = H.value.target, e = D();
472
465
  o.style.transform = `translateX(${e})`, o.transitionOrigin = "center", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0"), setTimeout(() => {
473
466
  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"), 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(${e} / 100 * 30 * -1)) scale(0.5) perspective(${e}) rotateY(30deg)`), setTimeout(() => {
474
- E.value = !1, R.value += 1, t && t();
467
+ I.value = !1, R.value += 1, t && t();
475
468
  }, 400);
476
469
  }, 100);
477
470
  }
478
471
  }, te = {
479
472
  reset() {
480
- E.value = !0;
473
+ I.value = !0;
481
474
  const t = D(), o = z.value.target, e = V.value.target;
482
475
  o.style.transition = "transform 0.35s ease", o.style.transform = "translateX(0px)", e.style.transition = "transform 0.35s ease", e.style.transform = `translateX(calc(${t} / 100 * 30 * -1))`, document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0.35s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0.5"), setTimeout(() => {
483
- E.value = !1;
476
+ I.value = !1;
484
477
  }, 400);
485
478
  },
486
479
  move(t) {
@@ -490,63 +483,63 @@ const Pe = /* @__PURE__ */ g(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
490
483
  back(t) {
491
484
  if (!V.value) return;
492
485
  const o = D();
493
- z.value.target.style.transition = "transform 0.35s ease", z.value.target.style.transform = `translateX(${o}) scale(1)`, V.value.target.style.transition = "transform 0.35s ease", V.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"), E.value = !0, setTimeout(() => {
494
- ae(), E.value = !1, R.value -= 1, t && t();
486
+ z.value.target.style.transition = "transform 0.35s ease", z.value.target.style.transform = `translateX(${o}) scale(1)`, V.value.target.style.transition = "transform 0.35s ease", V.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(() => {
487
+ ae(), I.value = !1, R.value -= 1, t && t();
495
488
  }, 400);
496
489
  },
497
490
  next(t) {
498
- if (!L.value) return;
491
+ if (!H.value) return;
499
492
  if (R.value == -1) {
500
493
  R.value += 1, t && t();
501
494
  return;
502
495
  }
503
- E.value = !0;
504
- const o = L.value.target, e = D();
496
+ I.value = !0;
497
+ const o = H.value.target, e = D();
505
498
  o.style.transform = `translateX(${e})`, o.transitionOrigin = "center", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0"), setTimeout(() => {
506
499
  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"), 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(${e} / 100 * 30 * -1))`), setTimeout(() => {
507
- E.value = !1, R.value += 1, t && t();
500
+ I.value = !1, R.value += 1, t && t();
508
501
  }, 400);
509
502
  }, 100);
510
503
  }
511
- }, Ke = (t) => {
504
+ }, He = (t) => {
512
505
  X.push(t);
513
- }, Ue = (t, o) => {
506
+ }, Le = (t, o) => {
514
507
  X[t].target = o;
515
508
  }, ae = (t) => {
516
509
  t || X.pop();
517
- }, je = () => {
510
+ }, Fe = () => {
518
511
  X.splice(0, X.length);
519
- }, Ge = () => {
512
+ }, Ue = () => {
520
513
  Y.value = !1;
521
- }, Je = () => {
514
+ }, je = () => {
522
515
  Y.value = !0;
523
- }, Qe = (t, o) => {
516
+ }, Ge = (t, o) => {
524
517
  t == "scale" && ee.next(o), t == "transform" && te.next(o);
525
- }, Ze = (t, o) => {
518
+ }, Ke = (t, o) => {
526
519
  t == "scale" && ee.back(o), t == "transform" && te.back(o);
527
- }, Ye = (t, o) => {
520
+ }, Je = (t, o) => {
528
521
  t == "scale" && ee.move(o), t == "transform" && te.move(o);
529
- }, et = (t) => {
522
+ }, Qe = (t) => {
530
523
  t == "scale" && ee.reset(), t == "transform" && te.reset();
531
524
  }, S = {
532
- isBusy: E,
525
+ isBusy: I,
533
526
  isSwipeable: ye,
534
- reset: et,
535
- next: Qe,
536
- back: Ze,
537
- move: Ye,
527
+ reset: Qe,
528
+ next: Ge,
529
+ back: Ke,
530
+ move: Je,
538
531
  screens: X,
539
- addScreen: Ke,
540
- addScreenEl: Ue,
532
+ addScreen: He,
533
+ addScreenEl: Le,
541
534
  removeScreen: ae,
542
- removeAllScreen: je,
543
- lockSwipe: Ge,
544
- unlockSwipe: Je,
535
+ removeAllScreen: Fe,
536
+ lockSwipe: Ue,
537
+ unlockSwipe: je,
545
538
  swipeable: Y,
546
539
  currentScreen: z,
547
540
  lastScreen: V,
548
- nextScreen: L
549
- }, tt = { class: "t-toast-content" }, ot = /* @__PURE__ */ h({
541
+ nextScreen: H
542
+ }, Ze = { class: "t-toast-content" }, Ye = /* @__PURE__ */ h({
550
543
  __name: "t-toast",
551
544
  props: {
552
545
  message: {},
@@ -619,11 +612,11 @@ const Pe = /* @__PURE__ */ g(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
619
612
  style: T({ "--space": s.space, ...d.value })
620
613
  }, [
621
614
  _(a.$slots, "content", {}, () => [
622
- $("div", tt, A(s.message), 1)
615
+ $("div", Ze, A(s.message), 1)
623
616
  ], !0)
624
- ], 6)) : I("", !0);
617
+ ], 6)) : E("", !0);
625
618
  }
626
- }), _e = /* @__PURE__ */ g(ot, [["__scopeId", "data-v-bac1506b"]]), xo = (t = {}) => ({
619
+ }), _e = /* @__PURE__ */ g(Ye, [["__scopeId", "data-v-bac1506b"]]), ho = (t = {}) => ({
627
620
  open() {
628
621
  let o = document.body.querySelector(".t-app");
629
622
  if (!o) return;
@@ -648,13 +641,13 @@ const Pe = /* @__PURE__ */ g(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
648
641
  }, t.duration + 10);
649
642
  }, 50);
650
643
  }
651
- }), st = m(0);
644
+ }), et = m(0);
652
645
  function ge() {
653
646
  return {
654
- height: st
647
+ height: et
655
648
  };
656
649
  }
657
- const rt = /* @__PURE__ */ h({
650
+ const tt = /* @__PURE__ */ h({
658
651
  __name: "t-cable",
659
652
  props: {
660
653
  keyboard: { type: Boolean, default: !1 },
@@ -671,7 +664,7 @@ const rt = /* @__PURE__ */ h({
671
664
  _(s.$slots, "default", {}, void 0, !0)
672
665
  ], 6));
673
666
  }
674
- }), nt = /* @__PURE__ */ g(rt, [["__scopeId", "data-v-27e0d794"]]), at = /* @__PURE__ */ h({
667
+ }), ot = /* @__PURE__ */ g(tt, [["__scopeId", "data-v-27e0d794"]]), st = /* @__PURE__ */ h({
675
668
  __name: "t-card",
676
669
  props: {
677
670
  color: { default: null }
@@ -694,13 +687,13 @@ const rt = /* @__PURE__ */ h({
694
687
  _(s.$slots, "default")
695
688
  ], 4));
696
689
  }
697
- }), lt = {}, ct = { class: "t-content" };
698
- function it(t, o) {
699
- return i(), f("div", ct, [
690
+ }), rt = {}, nt = { class: "t-content" };
691
+ function at(t, o) {
692
+ return i(), f("div", nt, [
700
693
  _(t.$slots, "default", {}, void 0, !0)
701
694
  ]);
702
695
  }
703
- const ut = /* @__PURE__ */ g(lt, [["render", it], ["__scopeId", "data-v-ce0031a0"]]), dt = /* @__PURE__ */ h({
696
+ const lt = /* @__PURE__ */ g(rt, [["render", at], ["__scopeId", "data-v-ce0031a0"]]), ct = /* @__PURE__ */ h({
704
697
  __name: "t-refresher",
705
698
  props: {
706
699
  threshold: { default: 120 },
@@ -751,7 +744,7 @@ const ut = /* @__PURE__ */ g(lt, [["render", it], ["__scopeId", "data-v-ce0031a0
751
744
  }));
752
745
  }), se(() => {
753
746
  n && n.destroy();
754
- }), (c, y) => U((i(), f("div", {
747
+ }), (c, y) => j((i(), f("div", {
755
748
  class: B(["t-refresher", { safe: c.safe }]),
756
749
  ref_key: "container",
757
750
  ref: u
@@ -761,16 +754,16 @@ const ut = /* @__PURE__ */ g(lt, [["render", it], ["__scopeId", "data-v-ce0031a0
761
754
  refreshing: l.value
762
755
  }, void 0, !0)
763
756
  ], 2)), [
764
- [j, r.value > 0]
757
+ [G, r.value > 0]
765
758
  ]);
766
759
  }
767
- }), pt = /* @__PURE__ */ g(dt, [["__scopeId", "data-v-c77146a5"]]), ft = {}, mt = { class: "t-screen" };
768
- function vt(t, o) {
769
- return i(), f("div", mt, [
760
+ }), it = /* @__PURE__ */ g(ct, [["__scopeId", "data-v-c77146a5"]]), ut = {}, dt = { class: "t-screen" };
761
+ function pt(t, o) {
762
+ return i(), f("div", dt, [
770
763
  _(t.$slots, "default", {}, void 0, !0)
771
764
  ]);
772
765
  }
773
- const be = /* @__PURE__ */ g(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c"]]), yt = /* @__PURE__ */ h({
766
+ const be = /* @__PURE__ */ g(ut, [["render", pt], ["__scopeId", "data-v-c2a3436c"]]), ft = /* @__PURE__ */ h({
774
767
  __name: "t-screen-router",
775
768
  props: {
776
769
  variant: { default: "scale" },
@@ -800,7 +793,7 @@ const be = /* @__PURE__ */ g(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
800
793
  c != S.currentScreen.value?.name && (S.lastScreen.value?.name == c ? S.back(r.variant, () => {
801
794
  s("change");
802
795
  }) : d(n.name));
803
- }), H(() => {
796
+ }), L(() => {
804
797
  d(n.name), l = re(document.body, {
805
798
  beforeEvent(c) {
806
799
  return !!S.isSwipeable.value;
@@ -826,7 +819,7 @@ const be = /* @__PURE__ */ g(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
826
819
  }), se(() => {
827
820
  l && l.destroy(), S.removeAllScreen();
828
821
  }), (c, y) => (i(), f(q, null, [
829
- (i(!0), f(q, null, G(O(S).screens, (w, b) => (i(), C(be, {
822
+ (i(!0), f(q, null, K(O(S).screens, (w, b) => (i(), C(be, {
830
823
  ref_for: !0,
831
824
  ref: (P) => a(b, P),
832
825
  style: T({ zIndex: b + (b == O(S).screens.length - 1 ? 2 : 1) }),
@@ -845,7 +838,7 @@ const be = /* @__PURE__ */ g(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
845
838
  }, null, 4)
846
839
  ], 64));
847
840
  }
848
- }), _t = /* @__PURE__ */ g(yt, [["__scopeId", "data-v-2d6fbfe1"]]), gt = /* @__PURE__ */ h({
841
+ }), mt = /* @__PURE__ */ g(ft, [["__scopeId", "data-v-2d6fbfe1"]]), vt = /* @__PURE__ */ h({
849
842
  __name: "t-toolbar",
850
843
  props: {
851
844
  placement: { default: null },
@@ -863,7 +856,7 @@ const be = /* @__PURE__ */ g(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
863
856
  ])
864
857
  ], 6));
865
858
  }
866
- }), bt = /* @__PURE__ */ g(gt, [["__scopeId", "data-v-1ee9866d"]]), ht = /* @__PURE__ */ h({
859
+ }), yt = /* @__PURE__ */ g(vt, [["__scopeId", "data-v-1ee9866d"]]), _t = /* @__PURE__ */ h({
867
860
  __name: "t-back-button",
868
861
  props: {
869
862
  to: {},
@@ -885,9 +878,9 @@ const be = /* @__PURE__ */ g(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
885
878
  _(l.$slots, "default", {}, () => [
886
879
  u[0] || (u[0] = $("i", { class: "ri-arrow-left-s-line" }, null, -1))
887
880
  ], !0)
888
- ], 32)) : I("", !0);
881
+ ], 32)) : E("", !0);
889
882
  }
890
- }), kt = /* @__PURE__ */ g(ht, [["__scopeId", "data-v-eb92b1fe"]]), $t = /* @__PURE__ */ h({
883
+ }), gt = /* @__PURE__ */ g(_t, [["__scopeId", "data-v-eb92b1fe"]]), bt = /* @__PURE__ */ h({
891
884
  __name: "t-text",
892
885
  props: {
893
886
  color: { default: "var(--t-color-text)" },
@@ -908,7 +901,7 @@ const be = /* @__PURE__ */ g(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
908
901
  _(s.$slots, "default", {}, void 0, !0)
909
902
  ], 4));
910
903
  }
911
- }), oe = /* @__PURE__ */ g($t, [["__scopeId", "data-v-f0f94f05"]]), xt = /* @__PURE__ */ h({
904
+ }), oe = /* @__PURE__ */ g(bt, [["__scopeId", "data-v-f0f94f05"]]), ht = /* @__PURE__ */ h({
912
905
  __name: "t-gesture-indicator",
913
906
  props: {
914
907
  placement: { default: "bottom" }
@@ -918,7 +911,7 @@ const be = /* @__PURE__ */ g(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
918
911
  class: B(["t-gesture-indicator", { [o.placement]: !0 }])
919
912
  }, null, 2));
920
913
  }
921
- }), he = /* @__PURE__ */ g(xt, [["__scopeId", "data-v-ed8f7308"]]), Tt = /* @__PURE__ */ h({
914
+ }), he = /* @__PURE__ */ g(ht, [["__scopeId", "data-v-ed8f7308"]]), kt = /* @__PURE__ */ h({
922
915
  __name: "t-sheet",
923
916
  props: {
924
917
  background: { default: "var(--t-color-surface)" },
@@ -1005,7 +998,7 @@ const be = /* @__PURE__ */ g(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
1005
998
  e.gesture && e.indicator && e.placement != "center" ? (i(), C(he, {
1006
999
  key: 0,
1007
1000
  placement: e.placement
1008
- }, null, 8, ["placement"])) : I("", !0),
1001
+ }, null, 8, ["placement"])) : E("", !0),
1009
1002
  $("div", {
1010
1003
  class: B(["t-sheet", { fullscreen: e.fullscreen, [e.placement]: !0, rounded: a.rounded }]),
1011
1004
  style: T({ "--background": e.background }),
@@ -1018,7 +1011,7 @@ const be = /* @__PURE__ */ g(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
1018
1011
  _: 3
1019
1012
  }, 8, ["duration", "bounce", "class", "placement", "backdrop", "visible", "keepalive", "style"]));
1020
1013
  }
1021
- }), wt = /* @__PURE__ */ g(Tt, [["__scopeId", "data-v-dcfbb6a3"]]), St = { class: "t-input-label" }, Bt = { class: "t-input-content" }, zt = ["placeholder", "value", "type", "readonly"], Et = /* @__PURE__ */ h({
1014
+ }), $t = /* @__PURE__ */ g(kt, [["__scopeId", "data-v-dcfbb6a3"]]), xt = { class: "t-input-label" }, Tt = { class: "t-input-content" }, wt = ["placeholder", "value", "type", "readonly"], St = /* @__PURE__ */ h({
1022
1015
  __name: "t-input",
1023
1016
  props: {
1024
1017
  size: { default: "standard" },
@@ -1054,8 +1047,8 @@ const be = /* @__PURE__ */ g(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
1054
1047
  }])
1055
1048
  }, [
1056
1049
  $("label", null, [
1057
- $("span", St, A(d.label), 1),
1058
- $("div", Bt, [
1050
+ $("span", xt, A(d.label), 1),
1051
+ $("div", Tt, [
1059
1052
  _(d.$slots, "start", {}, void 0, !0),
1060
1053
  $("input", {
1061
1054
  ref_key: "editable",
@@ -1068,7 +1061,7 @@ const be = /* @__PURE__ */ g(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
1068
1061
  onFocus: p,
1069
1062
  onBlur: v,
1070
1063
  readonly: d.readonly
1071
- }, null, 40, zt),
1064
+ }, null, 40, wt),
1072
1065
  _(d.$slots, "end", {}, void 0, !0)
1073
1066
  ])
1074
1067
  ]),
@@ -1088,18 +1081,18 @@ const be = /* @__PURE__ */ g(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
1088
1081
  M(A(d.help), 1)
1089
1082
  ]),
1090
1083
  _: 1
1091
- })) : I("", !0)
1084
+ })) : E("", !0)
1092
1085
  ], 2));
1093
1086
  }
1094
- }), It = /* @__PURE__ */ g(Et, [["__scopeId", "data-v-11ddaa71"]]), Pt = {};
1095
- function Vt(t, o) {
1087
+ }), Bt = /* @__PURE__ */ g(St, [["__scopeId", "data-v-11ddaa71"]]), zt = {};
1088
+ function It(t, o) {
1096
1089
  return i(), f("textarea");
1097
1090
  }
1098
- const Ct = /* @__PURE__ */ g(Pt, [["render", Vt]]), Rt = {};
1099
- function At(t, o) {
1091
+ const Et = /* @__PURE__ */ g(zt, [["render", It]]), Pt = {};
1092
+ function Vt(t, o) {
1100
1093
  return i(), f("div");
1101
1094
  }
1102
- const Ot = /* @__PURE__ */ g(Rt, [["render", At]]), Nt = /* @__PURE__ */ h({
1095
+ const Ct = /* @__PURE__ */ g(Pt, [["render", Vt]]), Rt = /* @__PURE__ */ h({
1103
1096
  __name: "t-grid",
1104
1097
  props: {
1105
1098
  gap: { default: 0 },
@@ -1114,7 +1107,7 @@ const Ot = /* @__PURE__ */ g(Rt, [["render", At]]), Nt = /* @__PURE__ */ h({
1114
1107
  _(s.$slots, "default", {}, void 0, !0)
1115
1108
  ], 4));
1116
1109
  }
1117
- }), Xt = /* @__PURE__ */ g(Nt, [["__scopeId", "data-v-eeba6473"]]), Dt = /* @__PURE__ */ h({
1110
+ }), At = /* @__PURE__ */ g(Rt, [["__scopeId", "data-v-eeba6473"]]), Ot = /* @__PURE__ */ h({
1118
1111
  __name: "t-divider",
1119
1112
  props: {
1120
1113
  direction: { default: "horizontal" }
@@ -1125,7 +1118,7 @@ const Ot = /* @__PURE__ */ g(Rt, [["render", At]]), Nt = /* @__PURE__ */ h({
1125
1118
  class: B(["t-divider", { [o.direction]: !0 }])
1126
1119
  }, null, 2));
1127
1120
  }
1128
- }), Wt = /* @__PURE__ */ g(Dt, [["__scopeId", "data-v-47ee8991"]]), qt = /* @__PURE__ */ h({
1121
+ }), Nt = /* @__PURE__ */ g(Ot, [["__scopeId", "data-v-47ee8991"]]), Xt = /* @__PURE__ */ h({
1129
1122
  __name: "t-toggle-password",
1130
1123
  props: {
1131
1124
  color: { default: "warning" }
@@ -1138,7 +1131,7 @@ const Ot = /* @__PURE__ */ g(Rt, [["render", At]]), Nt = /* @__PURE__ */ h({
1138
1131
  "--color": v
1139
1132
  };
1140
1133
  }), n = () => l.value?.parentElement?.querySelector?.("input");
1141
- H(() => {
1134
+ L(() => {
1142
1135
  let v = n();
1143
1136
  v && (r.value = v.type != "password", s("change", r.value));
1144
1137
  });
@@ -1155,13 +1148,13 @@ const Ot = /* @__PURE__ */ g(Rt, [["render", At]]), Nt = /* @__PURE__ */ h({
1155
1148
  }, [
1156
1149
  r.value ? _(v.$slots, "on", { key: 0 }, () => [
1157
1150
  d[0] || (d[0] = $("i", { class: "ri-eye-line" }, null, -1))
1158
- ], !0) : I("", !0),
1159
- r.value ? I("", !0) : _(v.$slots, "off", { key: 1 }, () => [
1151
+ ], !0) : E("", !0),
1152
+ r.value ? E("", !0) : _(v.$slots, "off", { key: 1 }, () => [
1160
1153
  d[1] || (d[1] = $("i", { class: "ri-eye-off-line" }, null, -1))
1161
1154
  ], !0)
1162
1155
  ], 36));
1163
1156
  }
1164
- }), Mt = /* @__PURE__ */ g(qt, [["__scopeId", "data-v-e5aa6028"]]), Lt = /* @__PURE__ */ h({
1157
+ }), Dt = /* @__PURE__ */ g(Xt, [["__scopeId", "data-v-e5aa6028"]]), Wt = /* @__PURE__ */ h({
1165
1158
  __name: "t-avatar",
1166
1159
  props: {
1167
1160
  square: { type: Boolean, default: !1 },
@@ -1176,13 +1169,13 @@ const Ot = /* @__PURE__ */ g(Rt, [["render", At]]), Nt = /* @__PURE__ */ h({
1176
1169
  _(s.$slots, "default", {}, void 0, !0)
1177
1170
  ], 6));
1178
1171
  }
1179
- }), Ht = /* @__PURE__ */ g(Lt, [["__scopeId", "data-v-1d223827"]]), Ft = { class: "t-collapse-title" }, Kt = {
1172
+ }), qt = /* @__PURE__ */ g(Wt, [["__scopeId", "data-v-1d223827"]]), Mt = { class: "t-collapse-title" }, Ht = {
1180
1173
  key: 0,
1181
1174
  class: "icon"
1182
- }, Ut = {
1175
+ }, Lt = {
1183
1176
  key: 1,
1184
1177
  class: "icon"
1185
- }, jt = { class: "t-collapse-content" }, Gt = /* @__PURE__ */ h({
1178
+ }, Ft = { class: "t-collapse-content" }, Ut = /* @__PURE__ */ h({
1186
1179
  __name: "t-collapse",
1187
1180
  props: {
1188
1181
  title: {}
@@ -1201,20 +1194,20 @@ const Ot = /* @__PURE__ */ g(Rt, [["render", At]]), Nt = /* @__PURE__ */ h({
1201
1194
  onPointerup: n
1202
1195
  }, [
1203
1196
  _(p.$slots, "icon"),
1204
- $("div", Ft, [
1197
+ $("div", Mt, [
1205
1198
  _(p.$slots, "title", {}, () => [
1206
1199
  M(A(e.title), 1)
1207
1200
  ])
1208
1201
  ]),
1209
1202
  _(p.$slots, "toggle", {}, () => [
1210
- r.value ? (i(), f("div", Kt, [...v[0] || (v[0] = [
1203
+ r.value ? (i(), f("div", Ht, [...v[0] || (v[0] = [
1211
1204
  $("i", { class: "ri-arrow-up-s-line" }, null, -1)
1212
- ])])) : (i(), f("div", Ut, [...v[1] || (v[1] = [
1205
+ ])])) : (i(), f("div", Lt, [...v[1] || (v[1] = [
1213
1206
  $("i", { class: "ri-arrow-down-s-line" }, null, -1)
1214
1207
  ])]))
1215
1208
  ])
1216
1209
  ], 32),
1217
- $("div", jt, [
1210
+ $("div", Ft, [
1218
1211
  $("div", {
1219
1212
  ref_key: "content",
1220
1213
  ref: u
@@ -1226,7 +1219,7 @@ const Ot = /* @__PURE__ */ g(Rt, [["render", At]]), Nt = /* @__PURE__ */ h({
1226
1219
  ])
1227
1220
  ], 6));
1228
1221
  }
1229
- }), Jt = /* @__PURE__ */ h({
1222
+ }), jt = /* @__PURE__ */ h({
1230
1223
  __name: "t-switch",
1231
1224
  props: {
1232
1225
  modelValue: { type: Boolean },
@@ -1254,7 +1247,7 @@ const Ot = /* @__PURE__ */ g(Rt, [["render", At]]), Nt = /* @__PURE__ */ h({
1254
1247
  $("div", { class: "t-switch-icon" }, null, -1)
1255
1248
  ])], 38));
1256
1249
  }
1257
- }), Qt = /* @__PURE__ */ g(Jt, [["__scopeId", "data-v-ac24f5cf"]]), Zt = /* @__PURE__ */ h({
1250
+ }), Gt = /* @__PURE__ */ g(jt, [["__scopeId", "data-v-ac24f5cf"]]), Kt = /* @__PURE__ */ h({
1258
1251
  __name: "t-tab",
1259
1252
  props: {
1260
1253
  value: {},
@@ -1280,7 +1273,7 @@ const Ot = /* @__PURE__ */ g(Rt, [["render", At]]), Nt = /* @__PURE__ */ h({
1280
1273
  }, 8, ["size", "color"])
1281
1274
  ], 2));
1282
1275
  }
1283
- }), Yt = /* @__PURE__ */ g(Zt, [["__scopeId", "data-v-d25a3a3e"]]), eo = /* @__PURE__ */ h({
1276
+ }), Jt = /* @__PURE__ */ g(Kt, [["__scopeId", "data-v-d25a3a3e"]]), Qt = /* @__PURE__ */ h({
1284
1277
  __name: "t-tabs",
1285
1278
  props: {
1286
1279
  placement: { default: "top-start" },
@@ -1345,7 +1338,7 @@ const Ot = /* @__PURE__ */ g(Rt, [["render", At]]), Nt = /* @__PURE__ */ h({
1345
1338
  }
1346
1339
  }), W(() => e.modelValue, async () => {
1347
1340
  await le(), d();
1348
- }), H(async () => {
1341
+ }), L(async () => {
1349
1342
  await le(), d();
1350
1343
  }), (a, c) => (i(), f("ul", {
1351
1344
  ref_key: "container",
@@ -1356,10 +1349,10 @@ const Ot = /* @__PURE__ */ g(Rt, [["render", At]]), Nt = /* @__PURE__ */ h({
1356
1349
  _(a.$slots, "default", {}, void 0, !0)
1357
1350
  ], 6));
1358
1351
  }
1359
- }), to = /* @__PURE__ */ g(eo, [["__scopeId", "data-v-b512ed8e"]]), oo = { key: 0 }, so = {
1352
+ }), Zt = /* @__PURE__ */ g(Qt, [["__scopeId", "data-v-b512ed8e"]]), Yt = { key: 0 }, eo = {
1360
1353
  key: 0,
1361
1354
  class: "t-checkbox-label"
1362
- }, ro = /* @__PURE__ */ h({
1355
+ }, to = /* @__PURE__ */ h({
1363
1356
  __name: "t-checkbox",
1364
1357
  props: {
1365
1358
  label: { default: "" },
@@ -1395,17 +1388,17 @@ const Ot = /* @__PURE__ */ g(Rt, [["render", At]]), Nt = /* @__PURE__ */ h({
1395
1388
  $("div", {
1396
1389
  class: B(`t-checkbox-${n.type}`)
1397
1390
  }, [
1398
- n.type == "radio" ? (i(), f("div", oo)) : I("", !0),
1391
+ n.type == "radio" ? (i(), f("div", Yt)) : E("", !0),
1399
1392
  n.type == "check" ? _(n.$slots, "icon", { key: 1 }, () => [
1400
1393
  p[0] || (p[0] = $("i", { class: "ri-check-line" }, null, -1))
1401
- ], !0) : I("", !0)
1394
+ ], !0) : E("", !0)
1402
1395
  ], 2),
1403
1396
  _(n.$slots, "label", {}, () => [
1404
- n.label ? (i(), f("span", so, A(e.label), 1)) : I("", !0)
1397
+ n.label ? (i(), f("span", eo, A(e.label), 1)) : E("", !0)
1405
1398
  ], !0)
1406
1399
  ], 38));
1407
1400
  }
1408
- }), no = /* @__PURE__ */ g(ro, [["__scopeId", "data-v-b1f8b112"]]), ao = /* @__PURE__ */ h({
1401
+ }), oo = /* @__PURE__ */ g(to, [["__scopeId", "data-v-b1f8b112"]]), so = /* @__PURE__ */ h({
1409
1402
  __name: "t-keyboard-space",
1410
1403
  setup(t) {
1411
1404
  const { height: o } = ge();
@@ -1414,7 +1407,7 @@ const Ot = /* @__PURE__ */ g(Rt, [["render", At]]), Nt = /* @__PURE__ */ h({
1414
1407
  style: T({ "--height": O(o) + "px" })
1415
1408
  }, null, 4));
1416
1409
  }
1417
- }), lo = /* @__PURE__ */ g(ao, [["__scopeId", "data-v-4b06018d"]]), co = /* @__PURE__ */ h({
1410
+ }), ro = /* @__PURE__ */ g(so, [["__scopeId", "data-v-4b06018d"]]), no = /* @__PURE__ */ h({
1418
1411
  __name: "t-skeleton",
1419
1412
  props: {
1420
1413
  width: { default: "100%" },
@@ -1433,7 +1426,7 @@ const Ot = /* @__PURE__ */ g(Rt, [["render", At]]), Nt = /* @__PURE__ */ h({
1433
1426
  style: T(e.value)
1434
1427
  }, null, 4));
1435
1428
  }
1436
- }), io = /* @__PURE__ */ g(co, [["__scopeId", "data-v-877bbdb5"]]), uo = /* @__PURE__ */ h({
1429
+ }), ao = /* @__PURE__ */ g(no, [["__scopeId", "data-v-877bbdb5"]]), lo = /* @__PURE__ */ h({
1437
1430
  __name: "t-ripple",
1438
1431
  props: {
1439
1432
  color: { default: "primary" }
@@ -1454,7 +1447,7 @@ const Ot = /* @__PURE__ */ g(Rt, [["render", At]]), Nt = /* @__PURE__ */ h({
1454
1447
  style: T(e.value)
1455
1448
  }, null, 4));
1456
1449
  }
1457
- }), po = /* @__PURE__ */ g(uo, [["__scopeId", "data-v-42cb3d71"]]), fo = /* @__PURE__ */ h({
1450
+ }), co = /* @__PURE__ */ g(lo, [["__scopeId", "data-v-42cb3d71"]]), io = /* @__PURE__ */ h({
1458
1451
  __name: "t-flex",
1459
1452
  props: {
1460
1453
  gap: { default: 0 },
@@ -1469,7 +1462,7 @@ const Ot = /* @__PURE__ */ g(Rt, [["render", At]]), Nt = /* @__PURE__ */ h({
1469
1462
  _(s.$slots, "default", {}, void 0, !0)
1470
1463
  ], 4));
1471
1464
  }
1472
- }), mo = /* @__PURE__ */ g(fo, [["__scopeId", "data-v-e83facf5"]]), vo = ["src"], yo = /* @__PURE__ */ h({
1465
+ }), uo = /* @__PURE__ */ g(io, [["__scopeId", "data-v-e83facf5"]]), po = ["src"], fo = /* @__PURE__ */ h({
1473
1466
  __name: "t-image",
1474
1467
  props: {
1475
1468
  defaultSrc: {},
@@ -1479,27 +1472,30 @@ const Ot = /* @__PURE__ */ g(Rt, [["render", At]]), Nt = /* @__PURE__ */ h({
1479
1472
  const o = m(""), e = () => {
1480
1473
  t.defaultSrc && (o.value = t.defaultSrc);
1481
1474
  };
1482
- return H(() => {
1475
+ return L(() => {
1483
1476
  o.value = t.src;
1484
1477
  }), (s, r) => (i(), f("img", {
1485
1478
  onError: e,
1486
1479
  src: o.value
1487
- }, null, 40, vo));
1480
+ }, null, 40, po));
1488
1481
  }
1489
- }), To = () => ({
1482
+ }), ko = (t) => t && (t.tagName == "INPUT" || t.tagName == "TEXTAREA" || t.isContentEditable), $o = () => {
1483
+ const t = document.activeElement;
1484
+ t && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) && t.blur();
1485
+ }, xo = () => ({
1490
1486
  install: (t) => {
1491
- Be(), t.component("t-app", Pe), t.component("t-screen", be), t.component("t-screen-router", _t), t.component("t-cable", nt), t.component("t-toolbar", bt), t.component("t-content", ut), t.component("t-card", at), t.component("t-refresher", pt), t.component("t-button", Z), t.component("t-back-button", kt), t.component("t-present", F), t.component("t-text", oe), t.component("t-sheet", wt), t.component("t-gesture-indicator", he), t.component("t-input", It), t.component("t-textarea", Ct), t.component("t-rich-text", Ot), t.component("t-grid", Xt), t.component("t-divider", Wt), t.component("t-toggle-password", Mt), t.component("t-icon-spinner", ne), t.component("t-alert", me), t.component("t-avatar", Ht), t.component("t-collapse", Gt), t.component("t-toast", _e), t.component("t-switch", Qt), t.component("t-tab", Yt), t.component("t-tabs", to), t.component("t-checkbox", no), t.component("t-keyboard-space", lo), t.component("t-skeleton", io), t.component("t-ripple", po), t.component("t-loading", ve), t.component("t-flex", mo), t.component("t-image", yo);
1487
+ t.component("t-app", ze), t.component("t-screen", be), t.component("t-screen-router", mt), t.component("t-cable", ot), t.component("t-toolbar", yt), t.component("t-content", lt), t.component("t-card", st), t.component("t-refresher", it), t.component("t-button", Z), t.component("t-back-button", gt), t.component("t-present", F), t.component("t-text", oe), t.component("t-sheet", $t), t.component("t-gesture-indicator", he), t.component("t-input", Bt), t.component("t-textarea", Et), t.component("t-rich-text", Ct), t.component("t-grid", At), t.component("t-divider", Nt), t.component("t-toggle-password", Dt), t.component("t-icon-spinner", ne), t.component("t-alert", me), t.component("t-avatar", qt), t.component("t-collapse", Ut), t.component("t-toast", _e), t.component("t-switch", Gt), t.component("t-tab", Jt), t.component("t-tabs", Zt), t.component("t-checkbox", oo), t.component("t-keyboard-space", ro), t.component("t-skeleton", ao), t.component("t-ripple", co), t.component("t-loading", ve), t.component("t-flex", uo), t.component("t-image", fo);
1492
1488
  }
1493
1489
  });
1494
1490
  export {
1495
- Se as blurCurrentActive,
1496
- ko as createAction,
1497
- ho as createAlert,
1498
- $o as createLoading,
1499
- xo as createToast,
1500
- To as createToife,
1501
- we as isFormElement,
1502
- Fe as presentController,
1491
+ $o as blurCurrentActive,
1492
+ go as createAction,
1493
+ _o as createAlert,
1494
+ bo as createLoading,
1495
+ ho as createToast,
1496
+ xo as createToife,
1497
+ ko as isFormElement,
1498
+ Me as presentController,
1503
1499
  S as screenController,
1504
1500
  ge as useKeyboard
1505
1501
  };