@fox-js/navigation 4.0.1-24 → 4.0.1-25

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.esm.js CHANGED
@@ -1,5 +1,5 @@
1
- import { Transition as et, computed as X, createBlock as b, createElementBlock as nt, createElementVNode as it, createVNode as at, defineComponent as M, normalizeClass as ot, normalizeStyle as q, onBeforeUnmount as rt, onMounted as st, openBlock as D, reactive as ct, renderSlot as lt, resolveComponent as C, resolveDynamicComponent as dt, unref as H, watch as ut, withCtx as F } from "vue";
2
- import { FoxLeaveEnd as j, OperationType as $ } from "@fox-js/fox";
1
+ import { Transition as et, computed as X, createBlock as b, createElementBlock as nt, createElementVNode as it, createVNode as ot, defineComponent as M, normalizeClass as at, normalizeStyle as H, onBeforeUnmount as rt, onMounted as st, openBlock as D, reactive as ct, renderSlot as lt, resolveComponent as C, resolveDynamicComponent as ut, unref as j, watch as dt, withCtx as W } from "vue";
2
+ import { FoxLeaveEnd as G, OperationType as $ } from "@fox-js/fox";
3
3
  var ft = /* @__PURE__ */ M({
4
4
  __name: "index",
5
5
  props: {
@@ -17,19 +17,19 @@ var ft = /* @__PURE__ */ M({
17
17
  multi: !1,
18
18
  name: t.routerViewName
19
19
  }, {
20
- default: F(({ Component: l }) => [at(et, { name: "fox-default-navigator__trans" }, {
21
- default: F(() => [(D(), b(dt(l)))]),
20
+ default: W(({ Component: l }) => [ot(et, { name: "fox-default-navigator__trans" }, {
21
+ default: W(() => [(D(), b(ut(l)))]),
22
22
  _: 2
23
23
  }, 1024)]),
24
24
  _: 1
25
25
  }, 8, ["name"]);
26
26
  };
27
27
  }
28
- }), vt = ft, W = 10;
28
+ }), vt = ft, B = 10;
29
29
  function gt(t, e) {
30
- return t > e && t > W ? "horizontal" : e > t && e > W ? "vertical" : "";
30
+ return t > e && t > B ? "horizontal" : e > t && e > B ? "vertical" : "";
31
31
  }
32
- function N() {
32
+ function F() {
33
33
  const t = {
34
34
  startX: 0,
35
35
  startY: 0,
@@ -46,20 +46,20 @@ function N() {
46
46
  t.deltaX = 0, t.deltaY = 0, t.offsetX = 0, t.offsetY = 0, t.direction = "", t.startTime = 0;
47
47
  };
48
48
  return {
49
- move: ((v) => {
50
- if (v.touches) {
51
- const w = v.touches[0];
49
+ move: ((g) => {
50
+ if (g.touches) {
51
+ const w = g.touches[0];
52
52
  t.deltaX = w.clientX - t.startX, t.deltaY = w.clientY - t.startY, t.moveX = w.clientX, t.moveY = w.clientY;
53
53
  } else
54
- t.deltaX = v.clientX - t.startX, t.deltaY = v.clientY - t.startY, t.moveX = v.clientX, t.moveY = v.clientY;
54
+ t.deltaX = g.clientX - t.startX, t.deltaY = g.clientY - t.startY, t.moveX = g.clientX, t.moveY = g.clientY;
55
55
  t.offsetX = Math.abs(t.deltaX), t.offsetY = Math.abs(t.deltaY), t.duration = Date.now() - t.startTime, t.direction || (t.direction = gt(t.offsetX, t.offsetY));
56
56
  }),
57
- start: ((v) => {
58
- if (n(), v.touches) {
59
- const w = v.touches[0];
57
+ start: ((g) => {
58
+ if (n(), g.touches) {
59
+ const w = g.touches[0];
60
60
  t.startX = w.clientX, t.startY = w.clientY;
61
61
  } else
62
- t.startX = v.clientX, t.startY = v.clientY;
62
+ t.startX = g.clientX, t.startY = g.clientY;
63
63
  t.startTime = Date.now();
64
64
  }),
65
65
  reset: n,
@@ -68,12 +68,12 @@ function N() {
68
68
  state: t
69
69
  };
70
70
  }
71
- function ht(t) {
71
+ function mt(t) {
72
72
  return t === window;
73
73
  }
74
- var G = (t) => {
75
- const e = H(t);
76
- if (ht(e)) {
74
+ var J = (t) => {
75
+ const e = j(t);
76
+ if (mt(e)) {
77
77
  const i = e.innerWidth, n = e.innerHeight;
78
78
  return {
79
79
  top: 0,
@@ -92,31 +92,31 @@ var G = (t) => {
92
92
  width: 0,
93
93
  height: 0
94
94
  };
95
- }, J = (t, e, i) => {
95
+ }, K = (t, e, i) => {
96
96
  e = e ?? {
97
97
  bubbles: !1,
98
98
  cancelable: !1,
99
99
  detail: void 0
100
100
  };
101
101
  const n = document.createEvent("Events");
102
- let l = !0, h = !0;
103
- for (let v in e) v === "bubbles" ? l = !!e[v] : v === "cancelable" ? h = !!e[v] : n[v] = e[v];
104
- n.initEvent(t, l, h), (i ?? document).dispatchEvent(n);
105
- }, mt = 15, pt = 300, wt = 200;
102
+ let l = !0, m = !0;
103
+ for (let g in e) g === "bubbles" ? l = !!e[g] : g === "cancelable" ? m = !!e[g] : n[g] = e[g];
104
+ n.initEvent(t, l, m), (i ?? document).dispatchEvent(n);
105
+ }, ht = 15, pt = 300, wt = 200;
106
106
  function xt(t) {
107
107
  t.stopPropagation();
108
108
  }
109
109
  function Tt(t, e, i = 1) {
110
110
  return t = Math.abs(t / e) / 3e-3 * (t < 0 ? -1 : 1), t * i;
111
111
  }
112
- function I(t, e = 0, i, n = wt) {
112
+ function S(t, e = 0, i, n = wt) {
113
113
  i === "end" ? t.style.transition = `transform ${n}ms linear` : t.style.transition = "transform 0ms linear", t.style.transform = `translate3d(${e}px, 0, 0)`;
114
114
  }
115
- function B(t) {
115
+ function U(t) {
116
116
  t.style.transition = "", t.style.transform = "";
117
117
  }
118
118
  var _t = /^matrix\((.+)\)$/;
119
- function S(t) {
119
+ function V(t) {
120
120
  let e = 0;
121
121
  const i = t, { transform: n } = window.getComputedStyle(i);
122
122
  if (n) {
@@ -125,9 +125,9 @@ function S(t) {
125
125
  }
126
126
  return e;
127
127
  }
128
- var O = /* @__PURE__ */ new WeakMap();
129
- function yt(t, e, i, n, l, h, v = 600, w = 60, y = null) {
130
- const o = {
128
+ var k = /* @__PURE__ */ new WeakMap();
129
+ function yt(t, e, i, n, l, m, g = 600, w = 60, y = null) {
130
+ const a = {
131
131
  active: !0,
132
132
  startDistance: 0,
133
133
  scrollDistance: 0,
@@ -135,42 +135,45 @@ function yt(t, e, i, n, l, h, v = 600, w = 60, y = null) {
135
135
  moving: !1,
136
136
  dragging: !1,
137
137
  transitionEndTrigger: null
138
- }, p = t.previousSibling, g = N(), r = (a, f, m, E) => {
139
- let d = f + o.startDistance;
140
- if (m === "end") {
141
- const _ = G(a);
138
+ }, p = t.previousSibling, h = F(), r = (o, f, v, E) => {
139
+ let u = f + a.startDistance;
140
+ if (v === "end") {
141
+ const _ = J(o);
142
142
  let x = _.width * e;
143
- d < x ? d = 0 : d = _.width, o.transitionEndTrigger = () => {
144
- o.moving = !1, h && a.classList.remove(h), setTimeout(() => {
145
- p && B(p), d == 0 ? B(a) : J(j, {}, a), o.moving = !1;
143
+ u < x ? u = 0 : u = _.width, a.transitionEndTrigger = () => {
144
+ a.moving = !1, m && o.classList.remove(m), setTimeout(() => {
145
+ p && U(p), u == 0 ? U(o) : K(G, {}, o), a.moving = !1;
146
146
  }, w);
147
- }, p && I(p, 0, "", 0), d > 0 && typeof n == "function" && n(l), I(a, d, "end", E);
147
+ }, p && S(p, 0, "", 0), u > 0 && typeof n == "function" && n(l), S(o, u, "end", E);
148
148
  } else
149
- d < 0 && (d = 0), I(a, d, "", 0);
150
- }, u = () => {
151
- o.transitionEndTrigger && (o.transitionEndTrigger(), o.transitionEndTrigger = null);
152
- }, c = (a) => {
153
- if (g.start(a), o.draging = y ? y(t, g.state.startX, g.state.startY) : !0, !o.draging) {
154
- g.reset();
149
+ u < 0 && (u = 0), S(o, u, "", 0);
150
+ }, d = () => {
151
+ a.transitionEndTrigger && (a.transitionEndTrigger(), a.transitionEndTrigger = null);
152
+ }, c = (o) => {
153
+ if (h.start(o), a.draging = y ? y(t, h.state.startX, h.state.startY) : !0, !a.draging) {
154
+ h.reset();
155
155
  return;
156
156
  }
157
- o.scrollDistance = 0, o.moving && (o.scrollDistance = S(t)), h && t.classList.add(h), o.transitionEndTrigger = null, o.moving = !0;
158
- }, T = (a) => {
159
- o.draging && (o.moving = !0, g.move(a), !g.isVertical() && (S(t) === 0 && g.state.deltaX < 0 || (xt(a), r(t, g.state.deltaX, "", 0))));
157
+ a.scrollDistance = 0, a.moving && (a.scrollDistance = V(t)), m && t.classList.add(m), a.transitionEndTrigger = null, a.moving = !0;
158
+ }, T = (o) => {
159
+ a.draging && (a.moving = !0, h.move(o), !h.isVertical() && (V(t) === 0 && h.state.deltaX < 0 || (xt(o), r(t, h.state.deltaX, "", 0))));
160
160
  }, s = () => {
161
- if (!o.draging || (o.draging = !1, g.isVertical()) || S(t) === 0 && g.state.deltaX < 0) return;
162
- const a = g.state.deltaX;
163
- if (a === 0) {
164
- h && t.classList.remove(h), o.moving = !1;
161
+ if (!a.draging || (a.draging = !1, h.isVertical()) || V(t) === 0 && h.state.deltaX < 0) return;
162
+ const o = h.state.deltaX;
163
+ if (o === 0) {
164
+ m && t.classList.remove(m), a.moving = !1;
165
165
  return;
166
166
  }
167
- const f = g.state.duration;
168
- f < pt && Math.abs(a) > mt ? r(t, Tt(a, f, i), "end", v) : r(t, a, "end", v);
167
+ const f = h.state.duration;
168
+ if (f < pt && Math.abs(o) > ht) {
169
+ const v = Tt(o, f, i);
170
+ r(t, v, "end", g);
171
+ } else r(t, o, "end", g);
169
172
  };
170
- t.addEventListener("transitionend", u), t.addEventListener("transitioncancel", u), t.addEventListener("touchstart", c), t.addEventListener("touchmove", T), t.addEventListener("touchend", s), t.addEventListener("touchcancel", s), O.set(t, {
171
- state: o,
172
- transitionend: u,
173
- transitioncancel: u,
173
+ t.addEventListener("transitionend", d), t.addEventListener("transitioncancel", d), t.addEventListener("touchstart", c), t.addEventListener("touchmove", T), t.addEventListener("touchend", s), t.addEventListener("touchcancel", s), k.set(t, {
174
+ state: a,
175
+ transitionend: d,
176
+ transitioncancel: d,
174
177
  touchstart: c,
175
178
  touchmove: T,
176
179
  touchend: s,
@@ -178,8 +181,8 @@ function yt(t, e, i, n, l, h, v = 600, w = 60, y = null) {
178
181
  });
179
182
  }
180
183
  function $t(t) {
181
- const e = O.get(t);
182
- e && (O.delete(t), t.addEventListener("transitionend", e.transitionend), t.addEventListener("transitioncancel", e.transitioncancel), t.addEventListener("touchstart", e.touchstart), t.addEventListener("touchmove", e.touchmove), t.addEventListener("touchend", e.touchend), t.addEventListener("touchcancel", e.touchcancel));
184
+ const e = k.get(t);
185
+ e && (k.delete(t), t.removeEventListener("transitionend", e.transitionend), t.removeEventListener("transitioncancel", e.transitioncancel), t.removeEventListener("touchstart", e.touchstart), t.removeEventListener("touchmove", e.touchmove), t.removeEventListener("touchend", e.touchend), t.removeEventListener("touchcancel", e.touchcancel));
183
186
  }
184
187
  var Et = /* @__PURE__ */ M({
185
188
  __name: "index",
@@ -215,79 +218,79 @@ var Et = /* @__PURE__ */ M({
215
218
  function l(r) {
216
219
  return (r && r.params && r.params.animationType) ?? "slide";
217
220
  }
218
- function h(r) {
221
+ function m(r) {
219
222
  return (r && r.params && r.params.dragRemove) ?? e.dragRemove;
220
223
  }
221
- const v = (r, u, c, T) => {
222
- if (c?.opsType === $.Append || u) {
223
- const s = l(c), a = u ? "show" : "enter";
224
- if (a === "show" && (s === "pop" || n !== "leave" || (i ? l(i) : "") === "pop"))
224
+ const g = (r, d, c, T) => {
225
+ if (c?.opsType === $.Append || d) {
226
+ const s = l(c), o = d ? "show" : "enter";
227
+ if (o === "show" && (s === "pop" || n !== "leave" || (i ? l(i) : "") === "pop"))
225
228
  return;
226
- a === "enter" && (i = c, n = "enter");
227
- const f = `fox-root-navigator--${s}-${a}-from`, m = `fox-root-navigator--${s}-${a}-active`;
228
- r.classList.add(f), r.classList.add(m);
229
+ o === "enter" && (i = c, n = "enter");
230
+ const f = `fox-root-navigator--${s}-${o}-from`, v = `fox-root-navigator--${s}-${o}-active`;
231
+ r.classList.add(f), r.classList.add(v);
229
232
  }
230
- }, w = (r, u, c, T) => {
231
- if (c?.opsType === $.Append || u) {
232
- const s = l(c), a = u ? "show" : "enter";
233
- if (a === "show" && (s === "pop" || n !== "leave" || (i ? l(i) : "") === "pop"))
233
+ }, w = (r, d, c, T) => {
234
+ if (c?.opsType === $.Append || d) {
235
+ const s = l(c), o = d ? "show" : "enter";
236
+ if (o === "show" && (s === "pop" || n !== "leave" || (i ? l(i) : "") === "pop"))
234
237
  return;
235
- const f = `fox-root-navigator--${s}-${a}-from`, m = `fox-root-navigator--${s}-${a}-to`;
236
- r.classList.remove(f), r.classList.add(m);
238
+ const f = `fox-root-navigator--${s}-${o}-from`, v = `fox-root-navigator--${s}-${o}-to`;
239
+ r.classList.remove(f), r.classList.add(v);
237
240
  }
238
- }, y = (r, u, c, T) => {
239
- if (c?.opsType === $.Append || u) {
240
- const s = l(c), a = u ? "show" : "enter";
241
- if (a === "enter" && (i = null, n = null), s !== "pop") {
242
- const f = `fox-root-navigator--${s}-${a}-active`, m = `fox-root-navigator--${s}-${a}-to`;
243
- r.classList.remove(f), r.classList.remove(m);
241
+ }, y = (r, d, c, T) => {
242
+ if (c?.opsType === $.Append || d) {
243
+ const s = l(c), o = d ? "show" : "enter";
244
+ if (o === "enter" && (i = null, n = null), s !== "pop") {
245
+ const f = `fox-root-navigator--${s}-${o}-active`, v = `fox-root-navigator--${s}-${o}-to`;
246
+ r.classList.remove(f), r.classList.remove(v);
244
247
  }
245
248
  }
246
- if (h(c) === !0 && !u && c?.opsType === $.Append) {
249
+ if (m(c) === !0 && !d && c?.opsType === $.Append) {
247
250
  let s = null;
248
- e.draggableArea && (s = function(a, f, m) {
249
- const E = f - a.offsetLeft, d = m - a.offsetTop;
250
- return !(e.draggableArea?.left && E < e.draggableArea?.left || e.draggableArea?.right && E > e.draggableArea?.right || e.draggableArea?.top && d < e.draggableArea?.top || e.draggableArea?.bottom && d > e.draggableArea?.bottom);
251
+ e.draggableArea && (s = function(o, f, v) {
252
+ const E = f - o.offsetLeft, u = v - o.offsetTop;
253
+ return !(e.draggableArea?.left && E < e.draggableArea?.left || e.draggableArea?.right && E > e.draggableArea?.right || e.draggableArea?.top && u < e.draggableArea?.top || e.draggableArea?.bottom && u > e.draggableArea?.bottom);
251
254
  }), yt(r, e.removeMoveRatio, e.momentumReduceRatio, e.removeViewPage, c, "fox-root-navigator__item--moving", e.swipeDuration, e.resetDelay, s);
252
255
  }
253
- }, o = (r, u, c, T) => {
254
- if (c?.opsType === $.Append || u) {
255
- const s = l(c), a = u ? "hide" : "leave";
256
- if (a === "hide" && (s === "pop" || n !== "enter" || (i ? l(i) : "") === "pop"))
256
+ }, a = (r, d, c, T) => {
257
+ if (c?.opsType === $.Append || d) {
258
+ const s = l(c), o = d ? "hide" : "leave";
259
+ if (o === "hide" && (s === "pop" || n !== "enter" || (i ? l(i) : "") === "pop"))
257
260
  return;
258
- a === "leave" && (i = c, n = "leave");
259
- const f = `fox-root-navigator--${s}-${a}-from`, m = `fox-root-navigator--${s}-${a}-active`;
260
- r.classList.add(f), r.classList.add(m);
261
+ o === "leave" && (i = c, n = "leave");
262
+ const f = `fox-root-navigator--${s}-${o}-from`, v = `fox-root-navigator--${s}-${o}-active`;
263
+ r.classList.add(f), r.classList.add(v);
261
264
  }
262
- }, p = (r, u, c, T) => {
263
- if (c?.opsType === $.Append || u) {
264
- const s = l(c), a = u ? "hide" : "leave";
265
- if (a === "hide" && (s === "pop" || n !== "enter" || (i ? l(i) : "") === "pop"))
265
+ }, p = (r, d, c, T) => {
266
+ if (c?.opsType === $.Append || d) {
267
+ const s = l(c), o = d ? "hide" : "leave";
268
+ if (o === "hide" && (s === "pop" || n !== "enter" || (i ? l(i) : "") === "pop"))
266
269
  return;
267
- const f = `fox-root-navigator--${s}-${a}-from`, m = `fox-root-navigator--${s}-${a}-to`;
268
- r.classList.remove(f), r.classList.add(m);
270
+ const f = `fox-root-navigator--${s}-${o}-from`, v = `fox-root-navigator--${s}-${o}-to`;
271
+ r.classList.remove(f), r.classList.add(v);
269
272
  }
270
- }, g = (r, u, c, T) => {
271
- if (c?.opsType === $.Append || u) {
272
- const s = l(c), a = u ? "hide" : "leave";
273
- if (a === "leave" && (i = null, n = null), s !== "pop") {
274
- const f = `fox-root-navigator--${s}-${a}-active`, m = `fox-root-navigator--${s}-${a}-to`;
275
- r.classList.remove(f), r.classList.remove(m);
273
+ }, h = (r, d, c, T) => {
274
+ if (c?.opsType === $.Append || d) {
275
+ const s = l(c), o = d ? "hide" : "leave";
276
+ if (o === "leave" && (i = null, n = null), s !== "pop") {
277
+ const f = `fox-root-navigator--${s}-${o}-active`, v = `fox-root-navigator--${s}-${o}-to`;
278
+ r.classList.remove(f), r.classList.remove(v);
276
279
  }
277
280
  }
278
- h(c) && !u && $t(r);
281
+ m(c) && !d && $t(r);
279
282
  };
280
- return (r, u) => {
283
+ return (r, d) => {
281
284
  const c = C("fox-router-view");
282
285
  return D(), b(c, {
283
286
  class: "fox-root-navigator",
284
287
  "view-class": t.viewClass,
285
- "before-enter": v,
288
+ "before-enter": g,
286
289
  enter: w,
287
290
  "after-enter": y,
288
- "before-leave": o,
291
+ "before-leave": a,
289
292
  leave: p,
290
- "after-leave": g,
293
+ "after-leave": h,
291
294
  multi: !0,
292
295
  name: t.routerViewName,
293
296
  "view-tag": t.viewTag,
@@ -333,14 +336,14 @@ function Ct(t) {
333
336
  function Xt(t, e, i = 1) {
334
337
  return t = Math.abs(t / e) / 3e-3 * (t < 0 ? -1 : 1), t * i;
335
338
  }
336
- function V(t, e = 0, i, n = Rt) {
339
+ function Y(t, e = 0, i, n = Rt) {
337
340
  i === "end" ? t.style.transition = `transform ${n}ms linear` : t.style.transition = "transform 0ms linear", t.style.transform = `translate3d(${e}px, 0, 0)`;
338
341
  }
339
- function U(t) {
342
+ function z(t) {
340
343
  t.style.transition = "", t.style.transform = "";
341
344
  }
342
345
  var Pt = /^matrix\((.+)\)$/;
343
- function Y(t) {
346
+ function O(t) {
344
347
  let e = 0;
345
348
  const i = t, { transform: n } = window.getComputedStyle(i);
346
349
  if (n) {
@@ -349,9 +352,9 @@ function Y(t) {
349
352
  }
350
353
  return e;
351
354
  }
352
- var k = /* @__PURE__ */ new WeakMap();
353
- function It(t, e, i, n, l, h, v = 600, w = 60, y = null) {
354
- const o = {
355
+ var N = /* @__PURE__ */ new WeakMap();
356
+ function It(t, e, i, n, l, m, g = 600, w = 60, y = null) {
357
+ const a = {
355
358
  active: !0,
356
359
  startDistance: 0,
357
360
  scrollDistance: 0,
@@ -359,42 +362,45 @@ function It(t, e, i, n, l, h, v = 600, w = 60, y = null) {
359
362
  moving: !1,
360
363
  dragging: !1,
361
364
  transitionEndTrigger: null
362
- }, p = t.previousSibling, g = N(), r = (a, f, m, E) => {
363
- let d = f + o.startDistance;
364
- if (m === "end") {
365
- const _ = G(a);
365
+ }, p = t.previousSibling, h = F(), r = (o, f, v, E) => {
366
+ let u = f + a.startDistance;
367
+ if (v === "end") {
368
+ const _ = J(o);
366
369
  let x = _.width * e;
367
- d < x ? d = 0 : d = _.width, o.transitionEndTrigger = () => {
368
- o.moving = !1, h && a.classList.remove(h), setTimeout(() => {
369
- p && U(p), d == 0 ? U(a) : J(j, {}, a), o.moving = !1;
370
+ u < x ? u = 0 : u = _.width, a.transitionEndTrigger = () => {
371
+ a.moving = !1, m && o.classList.remove(m), setTimeout(() => {
372
+ p && z(p), u == 0 ? z(o) : K(G, {}, o), a.moving = !1;
370
373
  }, w);
371
- }, p && V(p, 0, "", 0), d > 0 && typeof n == "function" && n(l), V(a, d, "end", E);
374
+ }, p && Y(p, 0, "", 0), u > 0 && typeof n == "function" && n(l), Y(o, u, "end", E);
372
375
  } else
373
- d < 0 && (d = 0), V(a, d, "", 0);
374
- }, u = () => {
375
- o.transitionEndTrigger && (o.transitionEndTrigger(), o.transitionEndTrigger = null);
376
- }, c = (a) => {
377
- if (g.start(a), o.draging = y ? y(t, g.state.startX, g.state.startY) : !0, !o.draging) {
378
- g.reset();
376
+ u < 0 && (u = 0), Y(o, u, "", 0);
377
+ }, d = () => {
378
+ a.transitionEndTrigger && (a.transitionEndTrigger(), a.transitionEndTrigger = null);
379
+ }, c = (o) => {
380
+ if (h.start(o), a.draging = y ? y(t, h.state.startX, h.state.startY) : !0, !a.draging) {
381
+ h.reset();
379
382
  return;
380
383
  }
381
- o.scrollDistance = 0, o.moving && (o.scrollDistance = Y(t)), h && t.classList.add(h), o.transitionEndTrigger = null, o.moving = !0;
382
- }, T = (a) => {
383
- o.draging && (o.moving = !0, g.move(a), !g.isVertical() && (Y(t) === 0 && g.state.deltaX < 0 || (Ct(a), r(t, g.state.deltaX, "", 0))));
384
+ a.scrollDistance = 0, a.moving && (a.scrollDistance = O(t)), m && t.classList.add(m), a.transitionEndTrigger = null, a.moving = !0;
385
+ }, T = (o) => {
386
+ a.draging && (a.moving = !0, h.move(o), !h.isVertical() && (O(t) === 0 && h.state.deltaX < 0 || (Ct(o), r(t, h.state.deltaX, "", 0))));
384
387
  }, s = () => {
385
- if (!o.draging || (o.draging = !1, g.isVertical()) || Y(t) === 0 && g.state.deltaX < 0) return;
386
- const a = g.state.deltaX;
387
- if (a === 0) {
388
- h && t.classList.remove(h), o.moving = !1;
388
+ if (!a.draging || (a.draging = !1, h.isVertical()) || O(t) === 0 && h.state.deltaX < 0) return;
389
+ const o = h.state.deltaX;
390
+ if (o === 0) {
391
+ m && t.classList.remove(m), a.moving = !1;
389
392
  return;
390
393
  }
391
- const f = g.state.duration;
392
- f < At && Math.abs(a) > Mt ? r(t, Xt(a, f, i), "end", v) : r(t, a, "end", v);
394
+ const f = h.state.duration;
395
+ if (f < At && Math.abs(o) > Mt) {
396
+ const v = Xt(o, f, i);
397
+ r(t, v, "end", g);
398
+ } else r(t, o, "end", g);
393
399
  };
394
- t.addEventListener("transitionend", u), t.addEventListener("transitioncancel", u), t.addEventListener("touchstart", c), t.addEventListener("touchmove", T), t.addEventListener("touchend", s), t.addEventListener("touchcancel", s), k.set(t, {
395
- state: o,
396
- transitionend: u,
397
- transitioncancel: u,
400
+ t.addEventListener("transitionend", d), t.addEventListener("transitioncancel", d), t.addEventListener("touchstart", c), t.addEventListener("touchmove", T), t.addEventListener("touchend", s), t.addEventListener("touchcancel", s), N.set(t, {
401
+ state: a,
402
+ transitionend: d,
403
+ transitioncancel: d,
398
404
  touchstart: c,
399
405
  touchmove: T,
400
406
  touchend: s,
@@ -402,8 +408,8 @@ function It(t, e, i, n, l, h, v = 600, w = 60, y = null) {
402
408
  });
403
409
  }
404
410
  function St(t) {
405
- const e = k.get(t);
406
- e && (k.delete(t), t.addEventListener("transitionend", e.transitionend), t.addEventListener("transitioncancel", e.transitioncancel), t.addEventListener("touchstart", e.touchstart), t.addEventListener("touchmove", e.touchmove), t.addEventListener("touchend", e.touchend), t.addEventListener("touchcancel", e.touchcancel));
411
+ const e = N.get(t);
412
+ e && (N.delete(t), t.removeEventListener("transitionend", e.transitionend), t.removeEventListener("transitioncancel", e.transitioncancel), t.removeEventListener("touchstart", e.touchstart), t.removeEventListener("touchmove", e.touchmove), t.removeEventListener("touchend", e.touchend), t.removeEventListener("touchcancel", e.touchcancel));
407
413
  }
408
414
  var Vt = /* @__PURE__ */ M({
409
415
  __name: "index",
@@ -439,79 +445,79 @@ var Vt = /* @__PURE__ */ M({
439
445
  function l(r) {
440
446
  return (r && r.params && r.params.animationType) ?? "slide";
441
447
  }
442
- function h(r) {
448
+ function m(r) {
443
449
  return (r && r.params && r.params.dragRemove) ?? e.dragRemove;
444
450
  }
445
- const v = (r, u, c, T) => {
446
- if (c?.opsType === $.Append || u) {
447
- const s = l(c), a = u ? "show" : "enter";
448
- if (a === "show" && (s === "pop" || n !== "leave" || (i ? l(i) : "") === "pop"))
451
+ const g = (r, d, c, T) => {
452
+ if (c?.opsType === $.Append || d) {
453
+ const s = l(c), o = d ? "show" : "enter";
454
+ if (o === "show" && (s === "pop" || n !== "leave" || (i ? l(i) : "") === "pop"))
449
455
  return;
450
- a === "enter" && (i = c, n = "enter");
451
- const f = `fox-stack-navigator--${s}-${a}-from`, m = `fox-stack-navigator--${s}-${a}-active`;
452
- r.classList.add(f), r.classList.add(m);
456
+ o === "enter" && (i = c, n = "enter");
457
+ const f = `fox-stack-navigator--${s}-${o}-from`, v = `fox-stack-navigator--${s}-${o}-active`;
458
+ r.classList.add(f), r.classList.add(v);
453
459
  }
454
- }, w = (r, u, c, T) => {
455
- if (c?.opsType === $.Append || u) {
456
- const s = l(c), a = u ? "show" : "enter";
457
- if (a === "show" && (s === "pop" || n !== "leave" || (i ? l(i) : "") === "pop"))
460
+ }, w = (r, d, c, T) => {
461
+ if (c?.opsType === $.Append || d) {
462
+ const s = l(c), o = d ? "show" : "enter";
463
+ if (o === "show" && (s === "pop" || n !== "leave" || (i ? l(i) : "") === "pop"))
458
464
  return;
459
- const f = `fox-stack-navigator--${s}-${a}-from`, m = `fox-stack-navigator--${s}-${a}-to`;
460
- r.classList.remove(f), r.classList.add(m);
465
+ const f = `fox-stack-navigator--${s}-${o}-from`, v = `fox-stack-navigator--${s}-${o}-to`;
466
+ r.classList.remove(f), r.classList.add(v);
461
467
  }
462
- }, y = (r, u, c, T) => {
463
- if (c?.opsType === $.Append || u) {
464
- const s = l(c), a = u ? "show" : "enter";
465
- if (a === "enter" && (i = null, n = null), s !== "pop") {
466
- const f = `fox-stack-navigator--${s}-${a}-active`, m = `fox-stack-navigator--${s}-${a}-to`;
467
- r.classList.remove(f), r.classList.remove(m);
468
+ }, y = (r, d, c, T) => {
469
+ if (c?.opsType === $.Append || d) {
470
+ const s = l(c), o = d ? "show" : "enter";
471
+ if (o === "enter" && (i = null, n = null), s !== "pop") {
472
+ const f = `fox-stack-navigator--${s}-${o}-active`, v = `fox-stack-navigator--${s}-${o}-to`;
473
+ r.classList.remove(f), r.classList.remove(v);
468
474
  }
469
475
  }
470
- if (h(c) === !0 && !u && c?.opsType === $.Append) {
476
+ if (m(c) === !0 && !d && c?.opsType === $.Append) {
471
477
  let s = null;
472
- e.draggableArea && (s = function(a, f, m) {
473
- const E = f - a.offsetLeft, d = m - a.offsetTop;
474
- return !(e.draggableArea?.left && E < e.draggableArea?.left || e.draggableArea?.right && E > e.draggableArea?.right || e.draggableArea?.top && d < e.draggableArea?.top || e.draggableArea?.bottom && d > e.draggableArea?.bottom);
478
+ e.draggableArea && (s = function(o, f, v) {
479
+ const E = f - o.offsetLeft, u = v - o.offsetTop;
480
+ return !(e.draggableArea?.left && E < e.draggableArea?.left || e.draggableArea?.right && E > e.draggableArea?.right || e.draggableArea?.top && u < e.draggableArea?.top || e.draggableArea?.bottom && u > e.draggableArea?.bottom);
475
481
  }), It(r, e.removeMoveRatio, e.momentumReduceRatio, e.removeViewPage, c, "fox-stack-navigator__item--moving", e.swipeDuration, e.resetDelay, s);
476
482
  }
477
- }, o = (r, u, c, T) => {
478
- if (c?.opsType === $.Append || u) {
479
- const s = l(c), a = u ? "hide" : "leave";
480
- if (a === "hide" && (s === "pop" || n !== "enter" || (i ? l(i) : "") === "pop"))
483
+ }, a = (r, d, c, T) => {
484
+ if (c?.opsType === $.Append || d) {
485
+ const s = l(c), o = d ? "hide" : "leave";
486
+ if (o === "hide" && (s === "pop" || n !== "enter" || (i ? l(i) : "") === "pop"))
481
487
  return;
482
- a === "leave" && (i = c, n = "leave");
483
- const f = `fox-stack-navigator--${s}-${a}-from`, m = `fox-stack-navigator--${s}-${a}-active`;
484
- r.classList.add(f), r.classList.add(m);
488
+ o === "leave" && (i = c, n = "leave");
489
+ const f = `fox-stack-navigator--${s}-${o}-from`, v = `fox-stack-navigator--${s}-${o}-active`;
490
+ r.classList.add(f), r.classList.add(v);
485
491
  }
486
- }, p = (r, u, c, T) => {
487
- if (c?.opsType === $.Append || u) {
488
- const s = l(c), a = u ? "hide" : "leave";
489
- if (a === "hide" && (s === "pop" || n !== "enter" || (i ? l(i) : "") === "pop"))
492
+ }, p = (r, d, c, T) => {
493
+ if (c?.opsType === $.Append || d) {
494
+ const s = l(c), o = d ? "hide" : "leave";
495
+ if (o === "hide" && (s === "pop" || n !== "enter" || (i ? l(i) : "") === "pop"))
490
496
  return;
491
- const f = `fox-stack-navigator--${s}-${a}-from`, m = `fox-stack-navigator--${s}-${a}-to`;
492
- r.classList.remove(f), r.classList.add(m);
497
+ const f = `fox-stack-navigator--${s}-${o}-from`, v = `fox-stack-navigator--${s}-${o}-to`;
498
+ r.classList.remove(f), r.classList.add(v);
493
499
  }
494
- }, g = (r, u, c, T) => {
495
- if (c?.opsType === $.Append || u) {
496
- const s = l(c), a = u ? "hide" : "leave";
497
- if (a === "leave" && (i = null, n = null), s !== "pop") {
498
- const f = `fox-stack-navigator--${s}-${a}-active`, m = `fox-stack-navigator--${s}-${a}-to`;
499
- r.classList.remove(f), r.classList.remove(m);
500
+ }, h = (r, d, c, T) => {
501
+ if (c?.opsType === $.Append || d) {
502
+ const s = l(c), o = d ? "hide" : "leave";
503
+ if (o === "leave" && (i = null, n = null), s !== "pop") {
504
+ const f = `fox-stack-navigator--${s}-${o}-active`, v = `fox-stack-navigator--${s}-${o}-to`;
505
+ r.classList.remove(f), r.classList.remove(v);
500
506
  }
501
507
  }
502
- h(c) && !u && St(r);
508
+ m(c) && !d && St(r);
503
509
  };
504
- return (r, u) => {
510
+ return (r, d) => {
505
511
  const c = C("fox-router-view");
506
512
  return D(), b(c, {
507
513
  class: "fox-stack-navigator",
508
514
  "view-class": t.viewClass,
509
- "before-enter": v,
515
+ "before-enter": g,
510
516
  enter: w,
511
517
  "after-enter": y,
512
- "before-leave": o,
518
+ "before-leave": a,
513
519
  leave: p,
514
- "after-leave": g,
520
+ "after-leave": h,
515
521
  multi: !0,
516
522
  name: t.routerViewName,
517
523
  "view-tag": t.viewTag,
@@ -544,7 +550,7 @@ var Vt = /* @__PURE__ */ M({
544
550
  });
545
551
  return (n, l) => (D(), nt("div", Ot, [it("div", {
546
552
  class: "fox-swiper-navigator__inner",
547
- style: q(i.value)
553
+ style: H(i.value)
548
554
  }, [lt(n.$slots, "default")], 4)]));
549
555
  }
550
556
  }), Nt = kt, Ft = 0;
@@ -558,7 +564,7 @@ function qt(t) {
558
564
  function Ht(t, e, i = 1) {
559
565
  return t = Math.abs(t / e) / 3e-3 * (t < 0 ? -1 : 1), t * i;
560
566
  }
561
- function z(t, e = 0, i, n = zt) {
567
+ function q(t, e = 0, i, n = zt) {
562
568
  i === "end" ? t.style.transition = `transform ${n}ms linear` : t.style.transition = "transform 0ms linear", t.style.transform = `translate3d(${e}px, 0, 0)`;
563
569
  }
564
570
  var jt = class {
@@ -583,35 +589,35 @@ var jt = class {
583
589
  touchmove = null;
584
590
  touchend = null;
585
591
  touchcancel = null;
586
- constructor(t, e, i, n, l, h) {
587
- this.getStartDistance = t, this.openPage = e, this.isPageOpened = i, this.pageOpened = n, this.moveRatio = l, this.momentumReduceRatio = h;
592
+ constructor(t, e, i, n, l, m) {
593
+ this.getStartDistance = t, this.openPage = e, this.isPageOpened = i, this.pageOpened = n, this.moveRatio = l, this.momentumReduceRatio = m;
588
594
  }
589
595
  open() {
590
- const t = this.el, e = N(), i = (n, l, h, v) => {
596
+ const t = this.el, e = F(), i = (n, l, m, g) => {
591
597
  let w = l + this.startDistance;
592
598
  const y = this.columnWidth * this.moveRatio;
593
- if (h === "end") {
599
+ if (m === "end") {
594
600
  if (l == 0) {
595
601
  this.moving = !1;
596
602
  return;
597
603
  }
598
604
  Math.abs(l) > y ? l > 0 ? w = this.startDistance + this.columnWidth : w = this.startDistance - this.columnWidth : w = this.startDistance;
599
- let o = -w;
600
- o < 0 ? o = 0 : o > this.width - this.columnWidth && (o = this.width - this.columnWidth);
601
- const p = Math.floor(o / this.columnWidth);
602
- this.isPageOpened(p) || this.openPage(p), w = -p * this.columnWidth, v && v > 0 && (this.transitionEndTrigger = () => {
605
+ let a = -w;
606
+ a < 0 ? a = 0 : a > this.width - this.columnWidth && (a = this.width - this.columnWidth);
607
+ const p = Math.floor(a / this.columnWidth);
608
+ this.isPageOpened(p) || this.openPage(p), w = -p * this.columnWidth, g && g > 0 && (this.transitionEndTrigger = () => {
603
609
  this.moving = !1, this.pageOpened(p);
604
- }), z(n, w, "end", v), this.scrollDistance = w;
610
+ }), q(n, w, "end", g), this.scrollDistance = w;
605
611
  } else {
606
612
  if (Math.abs(l) > y) {
607
613
  let p = 0;
608
614
  if (l > 0 ? p = Math.abs(this.startDistance + this.columnWidth) : p = Math.abs(this.startDistance - this.columnWidth), p >= 0 && p < this.width) {
609
- const g = Math.floor(p / this.columnWidth);
610
- this.isPageOpened(g) || this.openPage(g);
615
+ const h = Math.floor(p / this.columnWidth);
616
+ this.isPageOpened(h) || this.openPage(h);
611
617
  }
612
618
  }
613
- let o = -w;
614
- o < this.min ? o = this.min : o > this.max && (o = this.max), z(n, -o, "", 0);
619
+ let a = -w;
620
+ a < this.min ? a = this.min : a > this.max && (a = this.max), q(n, -a, "", 0);
615
621
  }
616
622
  };
617
623
  this.transitionend = () => {
@@ -625,22 +631,25 @@ var jt = class {
625
631
  const n = e.state.deltaX;
626
632
  if (n == 0) return;
627
633
  const l = e.state.duration;
628
- l < Ut && Math.abs(n) > Bt ? i(t, Ht(n, l, this.momentumReduceRatio), "end", this.swipeDuration) : i(t, n, "end", this.swipeDuration);
634
+ if (l < Ut && Math.abs(n) > Bt) {
635
+ const m = Ht(n, l, this.momentumReduceRatio);
636
+ i(t, m, "end", this.swipeDuration);
637
+ } else i(t, n, "end", this.swipeDuration);
629
638
  }, t.addEventListener("transitionend", this.transitionend), t.addEventListener("touchstart", this.touchstart), t.addEventListener("touchmove", this.touchmove), t.addEventListener("touchend", this.touchend), t.addEventListener("touchcancel", this.touchend);
630
639
  }
631
640
  close() {
632
641
  const t = this.el;
633
- this.transitionend && t.addEventListener("transitionend", this.transitionend), this.touchstart && t.addEventListener("touchstart", this.touchstart), this.touchmove && t.addEventListener("touchmove", this.touchmove), this.touchend && t.addEventListener("touchend", this.touchend), this.touchcancel && t.addEventListener("touchcancel", this.touchcancel), this.el = null;
642
+ this.transitionend && t.removeEventListener("transitionend", this.transitionend), this.touchstart && t.removeEventListener("touchstart", this.touchstart), this.touchmove && t.removeEventListener("touchmove", this.touchmove), this.touchend && t.removeEventListener("touchend", this.touchend), this.touchcancel && t.removeEventListener("touchcancel", this.touchcancel), this.el = null;
634
643
  }
635
644
  };
636
- function Gt(t, e, i, n, l, h) {
637
- return new jt(t, e, i, n, l, h);
645
+ function Gt(t, e, i, n, l, m) {
646
+ return new jt(t, e, i, n, l, m);
638
647
  }
639
648
  function Jt(t) {
640
- const e = H(t), i = window.getComputedStyle(e, null), n = parseFloat(i.getPropertyValue("padding-left")), l = parseFloat(i.getPropertyValue("padding-right")), h = parseFloat(i.getPropertyValue("padding-top")), v = parseFloat(i.getPropertyValue("padding-bottom"));
649
+ const e = j(t), i = window.getComputedStyle(e, null), n = parseFloat(i.getPropertyValue("padding-left")), l = parseFloat(i.getPropertyValue("padding-right")), m = parseFloat(i.getPropertyValue("padding-top")), g = parseFloat(i.getPropertyValue("padding-bottom"));
641
650
  return {
642
651
  width: e.clientWidth - n - l,
643
- height: e.clientHeight - h - v
652
+ height: e.clientHeight - m - g
644
653
  };
645
654
  }
646
655
  var Kt = /* @__PURE__ */ M({
@@ -676,76 +685,77 @@ var Kt = /* @__PURE__ */ M({
676
685
  openedIndexList: [],
677
686
  width: i.width,
678
687
  height: i.height
679
- }), l = e, h = () => n.scrollDistance, v = (d) => {
680
- if (n.openedIndexList.indexOf(d) === -1) {
681
- n.openedIndexList.push(d);
682
- const _ = i.routes[d];
688
+ }), l = e, m = () => n.scrollDistance, g = (u) => {
689
+ if (n.openedIndexList.indexOf(u) === -1) {
690
+ n.openedIndexList.push(u);
691
+ const _ = i.routes[u];
683
692
  try {
684
- i.openViewPage(_, d);
693
+ i.openViewPage(_, u);
685
694
  } catch (x) {
686
695
  console.error(x);
687
696
  }
688
697
  }
689
- }, w = (d) => n.openedIndexList.indexOf(d) !== -1, y = (d) => {
690
- n.index = d, n.width > 0 ? n.scrollDistance = -n.index * n.width : n.scrollDistance = 0;
691
- const _ = i.routes[d];
698
+ }, w = (u) => n.openedIndexList.indexOf(u) !== -1, y = (u) => {
699
+ n.index = u, n.width > 0 ? n.scrollDistance = -n.index * n.width : n.scrollDistance = 0;
700
+ const _ = i.routes[u];
692
701
  l("update:activePath", _.path);
693
702
  };
694
- let o = null;
695
- i.draggable && (o = Gt(h, v, w, y, i.moveRatio, i.momentumReduceRatio));
703
+ let a = null;
704
+ i.draggable && (a = Gt(m, g, w, y, i.moveRatio, i.momentumReduceRatio));
696
705
  let p = null;
697
706
  st(() => {
698
- const d = s(), _ = () => {
699
- const x = Jt(d);
700
- g(i.activePath, i.routes, x.width, x.height, i.swipeDuration, i.direction);
707
+ const u = s(), _ = () => {
708
+ const x = Jt(u);
709
+ h(i.activePath, i.routes, x.width, x.height, i.swipeDuration, i.direction);
701
710
  };
702
- if (window.ResizeObserver && (p = new window.ResizeObserver(_), p.observe(d)), _(), o) {
711
+ if (window.ResizeObserver && (p = new window.ResizeObserver(_), p.observe(u)), _(), a) {
703
712
  const x = f();
704
- o.el = x, o.open();
713
+ a.el = x, a.open();
705
714
  }
706
715
  }), rt(() => {
707
- p && (p.disconnect(), p = null), o && o.close();
708
- }), ut([
716
+ p && (p.disconnect(), p = null), a && a.close();
717
+ }), dt([
709
718
  () => i.activePath,
710
719
  () => i.routes,
711
720
  () => i.width,
712
721
  () => i.height,
713
722
  () => i.swipeDuration,
714
723
  () => i.direction
715
- ], ([d, _, x, A, R, P]) => {
716
- g(d, _, x <= 0 ? n.width : x, A <= 0 ? n.height : A, R, P);
724
+ ], ([u, _, x, A, R, P]) => {
725
+ const I = x <= 0 ? n.width : x, L = A <= 0 ? n.height : A;
726
+ h(u, _, I, L, R, P);
717
727
  });
718
- const g = (d, _, x, A, R, P = "horizontal") => {
719
- const K = d;
720
- if (n.index = _.findIndex((L) => L.path === K), P === "horizontal") {
728
+ const h = (u, _, x, A, R, P = "horizontal") => {
729
+ const I = u;
730
+ if (n.index = _.findIndex((L) => L.path === I), P === "horizontal") {
721
731
  const L = x;
722
732
  if (L > 0) {
723
733
  n.width = x;
724
734
  const Q = L * i.routes.length, Z = -L / 3, tt = L * (_.length - 1) + L / 3;
725
- o && (o.columnWidth = L, o.width = Q, o.min = Z, o.max = tt), n.index !== -1 && (n.openedIndexList.push(n.index), n.scrollDistance = -L * n.index);
735
+ a && (a.columnWidth = L, a.width = Q, a.min = Z, a.max = tt), n.index !== -1 && (n.openedIndexList.push(n.index), n.scrollDistance = -L * n.index);
726
736
  }
727
737
  }
728
- o && (o.swipeDuration = R);
729
- }, r = `fox-swiper-navigator-${Wt()}`, u = X(() => {
730
- const d = [r];
731
- return i.customClass && d.push(i.customClass), d;
738
+ a && (a.swipeDuration = R);
739
+ }, r = `fox-swiper-navigator-${Wt()}`, d = X(() => {
740
+ const u = [r];
741
+ return i.customClass && u.push(i.customClass), u;
732
742
  }), c = X(() => {
733
- const d = {}, _ = n.width > 0 ? n.width : i.width;
734
- _ > 0 && (d.width = `${_}px`);
743
+ const u = {}, _ = n.width > 0 ? n.width : i.width;
744
+ _ > 0 && (u.width = `${_}px`);
735
745
  const x = n.height > 0 ? n.height : i.height;
736
- return x > 0 && (d.height = `${x}px`), i.customStyle && Object.assign(d, i.customStyle), d;
746
+ return x > 0 && (u.height = `${x}px`), i.customStyle && Object.assign(u, i.customStyle), u;
737
747
  });
738
748
  let T = null;
739
749
  function s() {
740
750
  return T || (T = document.querySelector(`.${r}`), T);
741
751
  }
742
- let a = null;
752
+ let o = null;
743
753
  function f() {
744
- return a || (a = document.querySelector(`.${r}>.fox-swiper-navigator__inner`), a);
754
+ return o || (o = document.querySelector(`.${r}>.fox-swiper-navigator__inner`), o);
745
755
  }
746
- const m = X(() => n.width > 0 ? `${n.width * i.routes.length}px` : "100%"), E = (d, _) => {
756
+ const v = X(() => n.width > 0 ? `${n.width * i.routes.length}px` : "100%"), E = (u, _) => {
747
757
  const x = i.routes.findIndex((A) => {
748
- const R = d.path ?? d.name ?? "";
758
+ const R = u.path ?? u.name ?? "";
749
759
  return A.path == R;
750
760
  });
751
761
  return n.width <= 0 ? {} : { style: {
@@ -753,11 +763,11 @@ var Kt = /* @__PURE__ */ M({
753
763
  width: `${n.width}px`
754
764
  } };
755
765
  };
756
- return (d, _) => {
766
+ return (u, _) => {
757
767
  const x = C("fox-router-view");
758
768
  return D(), b(x, {
759
- class: ot(u.value),
760
- style: q(c.value),
769
+ class: at(d.value),
770
+ style: H(c.value),
761
771
  "view-class": "fox-swiper-navigator__item",
762
772
  tag: Nt,
763
773
  "view-tag-props": E,
@@ -767,7 +777,7 @@ var Kt = /* @__PURE__ */ M({
767
777
  "scroll-distance": n.scrollDistance,
768
778
  "scroll-duration": t.scrollDuration,
769
779
  direction: t.direction,
770
- width: m.value
780
+ width: v.value
771
781
  }, null, 8, [
772
782
  "class",
773
783
  "style",