@fox-js/navigation 4.0.1-17 → 4.0.1-18

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/CHANGELOG.md CHANGED
@@ -1,21 +1,21 @@
1
- <!--
2
- * @version: 1.0
3
- * @Author: 江成
4
- * @Date: 2024-01-08 12:18:38
5
- -->
6
-
7
- ## 版本号
8
-
9
- `时间`
10
-
11
- Features
12
-
13
- - xxx
14
-
15
- Bug Fixes
16
-
17
- - xxx
18
-
19
- Other Changes
20
-
1
+ <!--
2
+ * @version: 1.0
3
+ * @Author: 江成
4
+ * @Date: 2024-01-08 12:18:38
5
+ -->
6
+
7
+ ## 版本号
8
+
9
+ `时间`
10
+
11
+ Features
12
+
13
+ - xxx
14
+
15
+ Bug Fixes
16
+
17
+ - xxx
18
+
19
+ Other Changes
20
+
21
21
  - xxx
package/README.md CHANGED
@@ -1,294 +1,294 @@
1
- # fox-navigation
2
-
3
- 导航组件,支持动画过渡
4
-
5
- ## Install
6
-
7
- ### NPM
8
-
9
- ```shell
10
- npm i @fox-js/navigation -S
11
- ```
12
-
13
- ### YARN
14
-
15
- ```shell
16
- yarn add @fox-js/navigation
17
- ```
18
-
19
- ### PNPM
20
-
21
- ```shell
22
- pnpm add @fox-js/navigation
23
- ```
24
-
25
- ## 使用说明
26
-
27
- ### fox-root-navigator
28
-
29
- root导航组件,在入口vue文件(App.vue)上使用,支持新增页面的动画效果和拖曳关闭页面。
30
-
31
- #### 基础用法
32
-
33
- ```
34
- <script setup lang="ts">
35
- import { usePageHelper } from '@/utils/custom'
36
- // 获取page helper
37
- const pageHelper = usePageHelper()
38
- // 定义remove page函数
39
- const removePage = () => {
40
- pageHelper.remove()
41
- }
42
- </script>
43
-
44
- <template>
45
- <fox-root-navigator :remove-page="removePage"></fox-root-navigator>
46
- </template>
47
-
48
- <style lang="scss">
49
- </style>
50
-
51
- ```
52
-
53
- #### 设置页面加载动画
54
-
55
- ##### 滑入方式
56
-
57
- 通过route的params属性设置animationType:'slide'
58
-
59
- ```ts
60
- import { usePageHelper } from '@/utils/custom'
61
-
62
- pageHelper.append({
63
- path: target.route,
64
- params: {
65
- animationType:'slide'
66
- }
67
- })
68
-
69
- ```
70
-
71
- ##### 弹出方式
72
-
73
- 通过route的params属性设置animationType:'pop'
74
-
75
- ```ts
76
- import { usePageHelper } from '@/utils/custom'
77
-
78
- pageHelper.append({
79
- path: target.route,
80
- params: {
81
- animationType:'pop'
82
- }
83
- })
84
-
85
- ```
86
-
87
-
88
- #### Props
89
-
90
- | 字段 | 说明 | 类型 | 默认值 |
91
- |------------------|----------------------------------------|---------|-----------|
92
- | drag-remove | 是否支持拖曳关闭 | Boolean | true |
93
- | remove-page | 关闭顶层页面方法 | Function | |
94
- | router-view-name | router view名称 | String | `default` |
95
- | view-tag | view tag标签 | Function/String | `div` |
96
- | remove-move-ratio | 触发移除页面的移动比例(相对页面宽度) | Number | 0.5 |
97
- | momentum-reduce-ratio | 惯性削减比例 | Number | 1 |
98
-
99
-
100
-
101
- ## 插槽
102
-
103
- | 名称 | 说明 |
104
- |---------|------------------|
105
- | default | 内容 |
106
-
107
-
108
-
109
- ### fox-card-navigator
110
-
111
- 卡片导航组件,配合多标签页容器使用,具备缓存页面的能力。
112
-
113
-
114
-
115
- #### 基础用法
116
-
117
- ```
118
- <script setup lang="ts">
119
- const rootName = $ref('_tab_view')
120
- </script>
121
-
122
- <template>
123
- <fox-card-navigator
124
- :router-view-name="rootName"
125
- :transition="true"
126
- ></fox-card-navigator>
127
- </template>
128
-
129
- <style lang="scss">
130
- </style>
131
-
132
- ```
133
-
134
- #### Props
135
-
136
- | 字段 | 说明 | 类型 | 默认值 |
137
- |------------------|----------------------------------------|---------|-----------|
138
- | router-view-name | router view名称 | String | `default` |
139
- | transition | 是否支持过渡动画 | Boolean | false |
140
-
141
-
142
-
143
- ## 插槽
144
-
145
- | 名称 | 说明 |
146
- |---------|------------------|
147
- | default | 内容 |
148
-
149
-
150
- ### fox-swiper-navigator
151
-
152
- swiper导航组件,配合tab标签使用(例如手机端的主界面),支持拖曳新打开新页面/切换页面
153
-
154
- #### 基础用法
155
-
156
- ```
157
- <script lang="ts" setup>
158
- import { onMounted, ref, computed } from 'vue'
159
- import { usePageHelper } from '@/utils/custom'
160
- import store from '@/store'
161
- import tabs from './data'
162
- const contentPadding = {
163
- left: 0,
164
- top: 0,
165
- right: 0,
166
- bottom: 0
167
- }
168
- // -------------- 导航设置 ---------------
169
- // content width/height
170
- const contentWidth = ref(0)
171
- const contentHeight = ref(0)
172
- // page ref
173
- const pageRef = ref(null)
174
- // root name
175
- const rootName = ref('_tab_view')
176
- // routes
177
- const routes = computed(() => {
178
- return tabs.map(tab => {
179
- return {
180
- path: tab.route
181
- }
182
- })
183
- })
184
- // active route path
185
- const activeRoutePath = computed({
186
- set: (newVal: string) => {
187
- // 更新tab bar的index
188
- index.value = routes.value.findIndex(r => {
189
- return r.path === newVal
190
- })
191
- store.setCurrentRoutePath(newVal, rootName.value)
192
- },
193
- get: (): string => {
194
- return store.getCurrentRoutePath(rootName.value) as string
195
- }
196
- })
197
- // open page
198
- const openPage = (route: any, index: number) => {
199
- onTabChange(index)
200
- }
201
-
202
- // -------------tab bar 设置 ------------------
203
- //当前tab索引
204
- const index = ref(0)
205
- // 获取page helper
206
- const pageHelper = usePageHelper()
207
- // tab change事件
208
- const onTabChange = (index: any) => {
209
- const tab = tabs[index]
210
- // open页面
211
- pageHelper.open(tab.route)
212
- // 当前的route path到公共store中
213
- store.setCurrentRoutePath(tab.route, rootName.value)
214
- }
215
- // content应用
216
- const contentRef = ref(null)
217
- // 加载后处理
218
- onMounted(() => {
219
- if (pageRef.value) {
220
- const anyPage: any = pageRef.value
221
- contentWidth.value = anyPage.getPageContentWidth()
222
- if (contentWidth.value === 0) {
223
- const anyContent: any = contentRef.value
224
- contentWidth.value = anyContent.$el.offsetWidth
225
- }
226
- contentHeight.value = anyPage.getPageContentHeight()
227
- }
228
- // 当前选中tab index
229
- let curIndex = index.value
230
- // 获取之前保存的route path
231
- let path = store.getCurrentRoutePath(rootName.value)
232
- if (path) {
233
- let i = tabs.findIndex(tab => {
234
- return tab.route === path
235
- })
236
- curIndex = i !== -1 ? i : curIndex
237
- // 更新tab的model
238
- index.value = curIndex
239
- }
240
- // 触发页面跳转
241
- onTabChange(curIndex)
242
- })
243
- </script>
244
-
245
- <template>
246
- <fox-page :content-padding="contentPadding" ref="pageRef">
247
- <fox-footer-bar>
248
- <fox-tabbar v-model="index" @change="onTabChange">
249
- <template v-for="tab in tabs" :key="tab.title">
250
- <fox-tabbar-item :title="tab.title" :icon="tab.icon"></fox-tabbar-item>
251
- </template>
252
- </fox-tabbar>
253
- </fox-footer-bar>
254
- <fox-content ref="contentRef">
255
- <fox-swiper-navigator
256
- v-model:activePath="activeRoutePath"
257
- :router-view-name="rootName"
258
- :routes="routes"
259
- :open-page="openPage"
260
- :transition="true"
261
- :width="contentWidth"
262
- :height="contentHeight"
263
- ></fox-swiper-navigator>
264
- </fox-content>
265
- </fox-page>
266
- </template>
267
-
268
- <style lang="scss" scoped></style>
269
-
270
- ```
271
-
272
- #### Props
273
-
274
- | 字段 | 说明 | 类型 | 默认值 |
275
- |------------------|----------------------------------------|---------|-----------|
276
- | open-page | 打开页面方法 | Function | |
277
- | router-view-name | router view名称 | String | `default` |
278
- | routes | 路由列表 | Route[] | |
279
- | active-path | 激活路径 | String | |
280
- | height | 导航容器高度 | Number | |
281
- | width | 导航容器宽度 | Number | |
282
- | drag | 是否支持拖曳 | Boolean | |
283
- | swipe-duration | 滑动页面动画时间 | Number ||
284
- | scroll-time | 切换页面动画时间 | Number | |
285
- | move-ratio | 触发页面移动的比例(相对页面宽度) | Number | 0.5 |
286
- | momentum-reduce-ratio | 惯性削减比例 | Number | 1 |
287
-
288
-
289
-
290
- ## 插槽
291
-
292
- | 名称 | 说明 |
293
- |---------|------------------|
294
- | default | 内容 |
1
+ # fox-navigation
2
+
3
+ 导航组件,支持动画过渡
4
+
5
+ ## Install
6
+
7
+ ### NPM
8
+
9
+ ```shell
10
+ npm i @fox-js/navigation -S
11
+ ```
12
+
13
+ ### YARN
14
+
15
+ ```shell
16
+ yarn add @fox-js/navigation
17
+ ```
18
+
19
+ ### PNPM
20
+
21
+ ```shell
22
+ pnpm add @fox-js/navigation
23
+ ```
24
+
25
+ ## 使用说明
26
+
27
+ ### fox-root-navigator
28
+
29
+ root导航组件,在入口vue文件(App.vue)上使用,支持新增页面的动画效果和拖曳关闭页面。
30
+
31
+ #### 基础用法
32
+
33
+ ```
34
+ <script setup lang="ts">
35
+ import { usePageHelper } from '@/utils/custom'
36
+ // 获取page helper
37
+ const pageHelper = usePageHelper()
38
+ // 定义remove page函数
39
+ const removePage = () => {
40
+ pageHelper.remove()
41
+ }
42
+ </script>
43
+
44
+ <template>
45
+ <fox-root-navigator :remove-page="removePage"></fox-root-navigator>
46
+ </template>
47
+
48
+ <style lang="scss">
49
+ </style>
50
+
51
+ ```
52
+
53
+ #### 设置页面加载动画
54
+
55
+ ##### 滑入方式
56
+
57
+ 通过route的params属性设置animationType:'slide'
58
+
59
+ ```ts
60
+ import { usePageHelper } from '@/utils/custom'
61
+
62
+ pageHelper.append({
63
+ path: target.route,
64
+ params: {
65
+ animationType:'slide'
66
+ }
67
+ })
68
+
69
+ ```
70
+
71
+ ##### 弹出方式
72
+
73
+ 通过route的params属性设置animationType:'pop'
74
+
75
+ ```ts
76
+ import { usePageHelper } from '@/utils/custom'
77
+
78
+ pageHelper.append({
79
+ path: target.route,
80
+ params: {
81
+ animationType:'pop'
82
+ }
83
+ })
84
+
85
+ ```
86
+
87
+
88
+ #### Props
89
+
90
+ | 字段 | 说明 | 类型 | 默认值 |
91
+ |------------------|----------------------------------------|---------|-----------|
92
+ | drag-remove | 是否支持拖曳关闭 | Boolean | true |
93
+ | remove-page | 关闭顶层页面方法 | Function | |
94
+ | router-view-name | router view名称 | String | `default` |
95
+ | view-tag | view tag标签 | Function/String | `div` |
96
+ | remove-move-ratio | 触发移除页面的移动比例(相对页面宽度) | Number | 0.5 |
97
+ | momentum-reduce-ratio | 惯性削减比例 | Number | 1 |
98
+
99
+
100
+
101
+ ## 插槽
102
+
103
+ | 名称 | 说明 |
104
+ |---------|------------------|
105
+ | default | 内容 |
106
+
107
+
108
+
109
+ ### fox-card-navigator
110
+
111
+ 卡片导航组件,配合多标签页容器使用,具备缓存页面的能力。
112
+
113
+
114
+
115
+ #### 基础用法
116
+
117
+ ```
118
+ <script setup lang="ts">
119
+ const rootName = $ref('_tab_view')
120
+ </script>
121
+
122
+ <template>
123
+ <fox-card-navigator
124
+ :router-view-name="rootName"
125
+ :transition="true"
126
+ ></fox-card-navigator>
127
+ </template>
128
+
129
+ <style lang="scss">
130
+ </style>
131
+
132
+ ```
133
+
134
+ #### Props
135
+
136
+ | 字段 | 说明 | 类型 | 默认值 |
137
+ |------------------|----------------------------------------|---------|-----------|
138
+ | router-view-name | router view名称 | String | `default` |
139
+ | transition | 是否支持过渡动画 | Boolean | false |
140
+
141
+
142
+
143
+ ## 插槽
144
+
145
+ | 名称 | 说明 |
146
+ |---------|------------------|
147
+ | default | 内容 |
148
+
149
+
150
+ ### fox-swiper-navigator
151
+
152
+ swiper导航组件,配合tab标签使用(例如手机端的主界面),支持拖曳新打开新页面/切换页面
153
+
154
+ #### 基础用法
155
+
156
+ ```
157
+ <script lang="ts" setup>
158
+ import { onMounted, ref, computed } from 'vue'
159
+ import { usePageHelper } from '@/utils/custom'
160
+ import store from '@/store'
161
+ import tabs from './data'
162
+ const contentPadding = {
163
+ left: 0,
164
+ top: 0,
165
+ right: 0,
166
+ bottom: 0
167
+ }
168
+ // -------------- 导航设置 ---------------
169
+ // content width/height
170
+ const contentWidth = ref(0)
171
+ const contentHeight = ref(0)
172
+ // page ref
173
+ const pageRef = ref(null)
174
+ // root name
175
+ const rootName = ref('_tab_view')
176
+ // routes
177
+ const routes = computed(() => {
178
+ return tabs.map(tab => {
179
+ return {
180
+ path: tab.route
181
+ }
182
+ })
183
+ })
184
+ // active route path
185
+ const activeRoutePath = computed({
186
+ set: (newVal: string) => {
187
+ // 更新tab bar的index
188
+ index.value = routes.value.findIndex(r => {
189
+ return r.path === newVal
190
+ })
191
+ store.setCurrentRoutePath(newVal, rootName.value)
192
+ },
193
+ get: (): string => {
194
+ return store.getCurrentRoutePath(rootName.value) as string
195
+ }
196
+ })
197
+ // open page
198
+ const openPage = (route: any, index: number) => {
199
+ onTabChange(index)
200
+ }
201
+
202
+ // -------------tab bar 设置 ------------------
203
+ //当前tab索引
204
+ const index = ref(0)
205
+ // 获取page helper
206
+ const pageHelper = usePageHelper()
207
+ // tab change事件
208
+ const onTabChange = (index: any) => {
209
+ const tab = tabs[index]
210
+ // open页面
211
+ pageHelper.open(tab.route)
212
+ // 当前的route path到公共store中
213
+ store.setCurrentRoutePath(tab.route, rootName.value)
214
+ }
215
+ // content应用
216
+ const contentRef = ref(null)
217
+ // 加载后处理
218
+ onMounted(() => {
219
+ if (pageRef.value) {
220
+ const anyPage: any = pageRef.value
221
+ contentWidth.value = anyPage.getPageContentWidth()
222
+ if (contentWidth.value === 0) {
223
+ const anyContent: any = contentRef.value
224
+ contentWidth.value = anyContent.$el.offsetWidth
225
+ }
226
+ contentHeight.value = anyPage.getPageContentHeight()
227
+ }
228
+ // 当前选中tab index
229
+ let curIndex = index.value
230
+ // 获取之前保存的route path
231
+ let path = store.getCurrentRoutePath(rootName.value)
232
+ if (path) {
233
+ let i = tabs.findIndex(tab => {
234
+ return tab.route === path
235
+ })
236
+ curIndex = i !== -1 ? i : curIndex
237
+ // 更新tab的model
238
+ index.value = curIndex
239
+ }
240
+ // 触发页面跳转
241
+ onTabChange(curIndex)
242
+ })
243
+ </script>
244
+
245
+ <template>
246
+ <fox-page :content-padding="contentPadding" ref="pageRef">
247
+ <fox-footer-bar>
248
+ <fox-tabbar v-model="index" @change="onTabChange">
249
+ <template v-for="tab in tabs" :key="tab.title">
250
+ <fox-tabbar-item :title="tab.title" :icon="tab.icon"></fox-tabbar-item>
251
+ </template>
252
+ </fox-tabbar>
253
+ </fox-footer-bar>
254
+ <fox-content ref="contentRef">
255
+ <fox-swiper-navigator
256
+ v-model:activePath="activeRoutePath"
257
+ :router-view-name="rootName"
258
+ :routes="routes"
259
+ :open-page="openPage"
260
+ :transition="true"
261
+ :width="contentWidth"
262
+ :height="contentHeight"
263
+ ></fox-swiper-navigator>
264
+ </fox-content>
265
+ </fox-page>
266
+ </template>
267
+
268
+ <style lang="scss" scoped></style>
269
+
270
+ ```
271
+
272
+ #### Props
273
+
274
+ | 字段 | 说明 | 类型 | 默认值 |
275
+ |------------------|----------------------------------------|---------|-----------|
276
+ | open-page | 打开页面方法 | Function | |
277
+ | router-view-name | router view名称 | String | `default` |
278
+ | routes | 路由列表 | Route[] | |
279
+ | active-path | 激活路径 | String | |
280
+ | height | 导航容器高度 | Number | |
281
+ | width | 导航容器宽度 | Number | |
282
+ | drag | 是否支持拖曳 | Boolean | |
283
+ | swipe-duration | 滑动页面动画时间 | Number ||
284
+ | scroll-time | 切换页面动画时间 | Number | |
285
+ | move-ratio | 触发页面移动的比例(相对页面宽度) | Number | 0.5 |
286
+ | momentum-reduce-ratio | 惯性削减比例 | Number | 1 |
287
+
288
+
289
+
290
+ ## 插槽
291
+
292
+ | 名称 | 说明 |
293
+ |---------|------------------|
294
+ | default | 内容 |
package/dist/index.cjs.js CHANGED
@@ -1,3 +1,3 @@
1
1
  "use strict";/*!
2
- * @fox-js/navigation v4.0.1-16 Sat Sep 28 2024 19:51:20 GMT+0800 (中国标准时间)
3
- */const r=require("vue"),L=require("@fox-js/fox"),k=r.defineComponent({__name:"index",props:{routerViewName:{},transition:{type:[Function,Boolean],default:!1}},setup(t){return(e,n)=>{const o=r.resolveComponent("fox-router-view");return r.openBlock(),r.createBlock(o,{class:"fox-card-navigator","view-class":"fox-card-navigator__item","view-active-class":"fox-card-navigator__item-active","view-inactive-class":"fox-card-navigator__item-inactive","transition-name":"fox-card-navigator__trans",transition:e.transition,multi:!0,name:e.routerViewName},null,8,["transition","name"])}}}),F=Object.freeze(Object.defineProperty({__proto__:null,default:k},Symbol.toStringTag,{value:"Module"})),U=r.defineComponent({__name:"index",props:{routerViewName:{},transition:{type:[Function,Boolean],default:!0}},setup(t){return(e,n)=>{const o=r.resolveComponent("fox-router-view");return r.openBlock(),r.createBlock(o,{transition:!1,multi:!1,name:e.routerViewName},{default:r.withCtx(({Component:i})=>[r.createVNode(r.Transition,{name:"fox-default-navigator__trans"},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(i)))]),_:2},1024)]),_:1},8,["name"])}}}),j=Object.freeze(Object.defineProperty({__proto__:null,default:U},Symbol.toStringTag,{value:"Module"})),X=10;function q(t,e){return t>e&&t>X?"horizontal":e>t&&e>X?"vertical":""}function B(){const t={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},e=()=>t.direction==="vertical",n=()=>t.direction==="horizontal",o=()=>{t.deltaX=0,t.deltaY=0,t.offsetX=0,t.offsetY=0,t.direction="",t.startTime=0};return{move:p=>{if(p.touches){const m=p.touches[0];t.deltaX=m.clientX-t.startX,t.deltaY=m.clientY-t.startY,t.moveX=m.clientX,t.moveY=m.clientY}else t.deltaX=p.clientX-t.startX,t.deltaY=p.clientY-t.startY,t.moveX=p.clientX,t.moveY=p.clientY;t.offsetX=Math.abs(t.deltaX),t.offsetY=Math.abs(t.deltaY),t.duration=Date.now()-t.startTime,t.direction||(t.direction=q(t.offsetX,t.offsetY))},start:p=>{if(o(),p.touches){const m=p.touches[0];t.startX=m.clientX,t.startY=m.clientY}else t.startX=p.clientX,t.startY=p.clientY;t.startTime=Date.now()},reset:o,isVertical:e,isHorizontal:n,state:t}}function H(t){return t===window}const G=t=>{const e=r.unref(t);if(H(e)){const n=e.innerWidth,o=e.innerHeight;return{top:0,left:0,right:n,bottom:o,width:n,height:o}}return e&&e.getBoundingClientRect?e.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},J=(t,e,n)=>{e=e??{bubbles:!1,cancelable:!1,detail:void 0};const o=document.createEvent("Events");let i=!0,h=!0;for(let m in e)m==="bubbles"?i=!!e[m]:m==="cancelable"?h=!!e[m]:o[m]=e[m];o.initEvent(t,i,h),(n??document).dispatchEvent(o)},K=15,Q=300,Z=200;function tt(t){t.stopPropagation()}function et(t,e,n=1){return t=Math.abs(t/e)/.003*(t<0?-1:1),t*n}function C(t,e=0,n,o=Z){n==="end"?t.style.transition=`transform ${o}ms linear`:t.style.transition="transform 0ms linear",t.style.transform=`translate3d(${e}px, 0, 0)`}function S(t){t.style.transition="",t.style.transform=""}const nt=/^matrix\((.+)\)$/;function A(t){let e=0;const n=t,{transform:o}=window.getComputedStyle(n);if(o){const i=nt.exec(o);i&&(e=+i[1].split(/,\s*/)[4])}return e}const P=new WeakMap;function ot(t,e,n,o,i,h=600,p=60,m=null){const l={active:!0,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,dragging:!1,transitionEndTrigger:null},_=t.previousSibling,u=B(),y=(d,a,v,E)=>{let w=a+l.startDistance;if(v==="end"){const c=G(d);let T=c.width*e;w<T?w=0:w=c.width,l.transitionEndTrigger=()=>{l.moving=!1,d.classList.remove(i),setTimeout(()=>{_&&S(_),w==0?S(d):J(L.FoxLeaveEnd,{},d),l.moving=!1},p)},_&&C(_,0,"",0),w>0&&typeof o=="function"&&o(),C(d,w,"end",E)}else w<0&&(w=0),C(d,w,"",0)},s=()=>{l.transitionEndTrigger&&(l.transitionEndTrigger(),l.transitionEndTrigger=null)},g=d=>{if(u.start(d),l.draging=m?m(t,u.state.startX,u.state.startY):!0,!l.draging){u.reset();return}l.scrollDistance=0,l.moving&&(l.scrollDistance=A(t)),t.classList.add(i),l.transitionEndTrigger=null,l.moving=!0},f=d=>{!l.draging||(l.moving=!0,u.move(d),u.isVertical())||A(t)===0&&u.state.deltaX<0||(tt(d),y(t,u.state.deltaX,"",0))},b=()=>{if(!l.draging||(l.draging=!1,u.isVertical())||A(t)===0&&u.state.deltaX<0)return;const a=u.state.deltaX;if(a===0){t.classList.remove(i),l.moving=!1;return}const v=u.state.duration;if(v<Q&&Math.abs(a)>K){const w=et(a,v,n);y(t,w,"end",h)}else y(t,a,"end",h)};t.addEventListener("transitionend",s),t.addEventListener("transitioncancel",s),t.addEventListener("touchstart",g),t.addEventListener("touchmove",f),t.addEventListener("touchend",b),t.addEventListener("touchcancel",b),P.set(t,{state:l,transitionend:s,transitioncancel:s,touchstart:g,touchmove:f,touchend:b,touchcancel:b})}function it(t){const e=P.get(t);e&&(P.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))}const st=r.defineComponent({__name:"index",props:{dragRemove:{type:Boolean,default:!0},removeViewPage:{},removeMoveRatio:{default:.5},momentumReduceRatio:{default:1},resetDelay:{default:120},swipeDuration:{default:60},draggableArea:{},routerViewName:{},viewTag:{type:[Function,String],default:"div"},transition:{type:[Function,Boolean],default:!0},viewClass:{type:[Function,String],default:"fox-root-navigator__item"}},setup(t){const e=t;let n=null,o=null;function i(s){return(s.params&&s.params.animationType)??"slide"}function h(s){return(s.params&&s.params.dragRemove)??e.dragRemove}const p=(s,g,f,b)=>{if(f.opsType===L.OperationType.Append||g){const d=i(f),a=g?"show":"enter";if(a==="show"&&(d==="pop"||o!=="leave"||(n?i(n):"")==="pop"))return;a==="enter"&&(n=f,o="enter");const v=`fox-root-navigator__${d}-${a}-from`,E=`fox-root-navigator__${d}-${a}-active`;s.classList.add(v),s.classList.add(E)}},m=(s,g,f,b)=>{if(f.opsType===L.OperationType.Append||g){const d=i(f),a=g?"show":"enter";if(a==="show"&&(d==="pop"||o!=="leave"||(n?i(n):"")==="pop"))return;const v=`fox-root-navigator__${d}-${a}-from`,E=`fox-root-navigator__${d}-${a}-to`;s.classList.remove(v),s.classList.add(E)}},l=(s,g,f,b)=>{if(f.opsType===L.OperationType.Append||g){const a=i(f),v=g?"show":"enter";if(v==="enter"&&(n=null,o=null),a!=="pop"){const E=`fox-root-navigator__${a}-${v}-active`,w=`fox-root-navigator__${a}-${v}-to`;s.classList.remove(E),s.classList.remove(w)}}if(h(f)===!0&&!g&&f.opsType===L.OperationType.Append){let a=null;e.draggableArea&&(a=function(v,E,w){const c=E-v.offsetLeft,T=w-v.offsetTop;return!(e.draggableArea?.left&&c<e.draggableArea?.left||e.draggableArea?.right&&c>e.draggableArea?.right||e.draggableArea?.top&&T<e.draggableArea?.top||e.draggableArea?.bottom&&T>e.draggableArea?.bottom)}),ot(s,e.removeMoveRatio,e.momentumReduceRatio,e.removeViewPage,"fox-root-navigator__item-moving",e.swipeDuration,e.resetDelay,a)}},_=(s,g,f,b)=>{if(f.opsType===L.OperationType.Append||g){const d=i(f),a=g?"hide":"leave";if(a==="hide"&&(d==="pop"||o!=="enter"||(n?i(n):"")==="pop"))return;a==="leave"&&(n=f,o="leave");const v=`fox-root-navigator__${d}-${a}-from`,E=`fox-root-navigator__${d}-${a}-active`;s.classList.add(v),s.classList.add(E)}},u=(s,g,f,b)=>{if(f.opsType===L.OperationType.Append||g){const d=i(f),a=g?"hide":"leave";if(a==="hide"&&(d==="pop"||o!=="enter"||(n?i(n):"")==="pop"))return;const v=`fox-root-navigator__${d}-${a}-from`,E=`fox-root-navigator__${d}-${a}-to`;s.classList.remove(v),s.classList.add(E)}},y=(s,g,f,b)=>{if(f.opsType===L.OperationType.Append||g){const a=i(f),v=g?"hide":"leave";if(v==="leave"&&(n=null,o=null),a!=="pop"){const E=`fox-root-navigator__${a}-${v}-active`,w=`fox-root-navigator__${a}-${v}-to`;s.classList.remove(E),s.classList.remove(w)}}h(f)&&!g&&it(s)};return(s,g)=>{const f=r.resolveComponent("fox-router-view");return r.openBlock(),r.createBlock(f,{class:"fox-root-navigator","view-class":s.viewClass,"before-enter":p,enter:m,"after-enter":l,"before-leave":_,leave:u,"after-leave":y,multi:!0,name:s.routerViewName,"view-tag":s.viewTag,transition:s.transition},null,8,["view-class","name","view-tag","transition"])}}}),at=Object.freeze(Object.defineProperty({__proto__:null,default:st},Symbol.toStringTag,{value:"Module"})),rt={class:"fox-swiper-navigator"},ct=r.defineComponent({__name:"swiper",props:{width:{},scrollDistance:{},scrollDuration:{},direction:{}},setup(t){const e=t,n=r.computed(()=>{const o={transform:`translate3d(${e.scrollDistance}px, 0, 0)`,width:`${e.width}`};return e.scrollDuration>0&&(o["transition-duration"]=`${e.scrollDuration}ms`),o});return(o,i)=>(r.openBlock(),r.createElementBlock("div",rt,[r.createElementVNode("div",{class:"fox-swiper-navigator__inner",style:r.normalizeStyle(n.value)},[r.renderSlot(o.$slots,"default")],4)]))}});let lt=0;function ut(){return++lt}const dt=15,ft=300,ht=200;function mt(t){t.stopPropagation()}function pt(t,e,n=1){return t=Math.abs(t/e)/.003*(t<0?-1:1),t*n}function I(t,e=0,n,o=ht){n==="end"?t.style.transition=`transform ${o}ms linear`:t.style.transition="transform 0ms linear",t.style.transform=`translate3d(${e}px, 0, 0)`}class gt{width=0;columnWidth=0;max=0;min=0;el=null;swipeDuration=360;transitionEndTrigger=null;moving=!1;startDistance=0;scrollDistance=0;getStartDistance;openPage;isPageOpened;pageOpened;moveRatio=.5;momentumReduceRatio=1;transitionend=null;touchstart=null;touchmove=null;touchend=null;touchcancel=null;constructor(e,n,o,i,h,p){this.getStartDistance=e,this.openPage=n,this.isPageOpened=o,this.pageOpened=i,this.moveRatio=h,this.momentumReduceRatio=p}open(){const e=this.el,n=B(),o=(i,h,p,m)=>{let l=h+this.startDistance;const _=this.columnWidth*this.moveRatio;if(p==="end"){if(h==0){this.moving=!1;return}Math.abs(h)>_?h>0?l=this.startDistance+this.columnWidth:l=this.startDistance-this.columnWidth:l=this.startDistance;let u=-l;u<0?u=0:u>this.width-this.columnWidth&&(u=this.width-this.columnWidth);const y=Math.floor(u/this.columnWidth);this.isPageOpened(y)||this.openPage(y),l=-y*this.columnWidth,m&&m>0&&(this.transitionEndTrigger=()=>{this.moving=!1,this.pageOpened(y)}),I(i,l,"end",m),this.scrollDistance=l}else{if(Math.abs(h)>_){let y=0;if(h>0?y=Math.abs(this.startDistance+this.columnWidth):y=Math.abs(this.startDistance-this.columnWidth),y>=0&&y<this.width){const s=Math.floor(y/this.columnWidth);this.isPageOpened(s)||this.openPage(s)}}let u=-l;u<this.min?u=this.min:u>this.max&&(u=this.max),I(i,-u,"",0)}};this.transitionend=()=>{e.style.transition="",this.transitionEndTrigger&&(this.transitionEndTrigger(),this.transitionEndTrigger=null)},this.touchstart=i=>{this.moving||(n.start(i),this.startDistance=this.getStartDistance(),this.transitionEndTrigger=null,this.moving=!0)},this.touchmove=i=>{n.move(i),!n.isVertical()&&(mt(i),o(e,n.state.deltaX,"",0))},this.touchend=()=>{if(n.isVertical())return;const i=n.state.deltaX;if(i==0)return;const h=n.state.duration;if(h<ft&&Math.abs(i)>dt){const m=pt(i,h,this.momentumReduceRatio);o(e,m,"end",this.swipeDuration)}else o(e,i,"end",this.swipeDuration)},e.addEventListener("transitionend",this.transitionend),e.addEventListener("touchstart",this.touchstart),e.addEventListener("touchmove",this.touchmove),e.addEventListener("touchend",this.touchend),e.addEventListener("touchcancel",this.touchend)}close(){const e=this.el;this.transitionend&&e.addEventListener("transitionend",this.transitionend),this.touchstart&&e.addEventListener("touchstart",this.touchstart),this.touchmove&&e.addEventListener("touchmove",this.touchmove),this.touchend&&e.addEventListener("touchend",this.touchend),this.touchcancel&&e.addEventListener("touchcancel",this.touchcancel),this.el=null}}function vt(t,e,n,o,i,h){return new gt(t,e,n,o,i,h)}function _t(t){const e=r.unref(t),n=window.getComputedStyle(e,null),o=parseFloat(n.getPropertyValue("padding-left")),i=parseFloat(n.getPropertyValue("padding-right")),h=parseFloat(n.getPropertyValue("padding-top")),p=parseFloat(n.getPropertyValue("padding-bottom"));return{width:e.clientWidth-o-i,height:e.clientHeight-h-p}}const wt=r.defineComponent({__name:"index",props:{activePath:{},routes:{},height:{default:-1},width:{default:-1},draggable:{type:Boolean,default:!0},openViewPage:{},routerViewName:{},moveRatio:{default:.5},momentumReduceRatio:{default:1},direction:{default:"horizontal"},transition:{type:[Function,Boolean],default:!0},swipeDuration:{default:360},scrollDuration:{},customClass:{},customStyle:{}},emits:["update:activePath"],setup(t,{emit:e}){const n=t,o=r.reactive({scrollDistance:0,index:-1,openedIndexList:[],width:n.width,height:n.height}),i=e,h=()=>o.scrollDistance,p=c=>{if(o.openedIndexList.indexOf(c)===-1){o.openedIndexList.push(c);const T=n.routes[c];try{n.openViewPage(T,c)}catch(x){console.error(x)}}},m=c=>o.openedIndexList.indexOf(c)!==-1,l=c=>{o.index=c,o.width>0?o.scrollDistance=-o.index*o.width:o.scrollDistance=0;const T=n.routes[c];i("update:activePath",T.path)};let _=null;n.draggable&&(_=vt(h,p,m,l,n.moveRatio,n.momentumReduceRatio));let u=null;r.onMounted(()=>{const c=d(),T=()=>{const x=_t(c);y(n.activePath,n.routes,x.width,x.height,n.swipeDuration,n.direction)};if(window.ResizeObserver&&(u=new window.ResizeObserver(T),u.observe(c)),T(),_){const x=v();_.el=x,_.open()}}),r.onBeforeUnmount(()=>{u&&(u.disconnect(),u=null),_&&_.close()}),r.watch([()=>n.activePath,()=>n.routes,()=>n.width,()=>n.height,()=>n.swipeDuration,()=>n.direction],([c,T,x,$,M,R])=>{const O=x<=0?o.width:x,D=$<=0?o.height:$;y(c,T,O,D,M,R)});const y=(c,T,x,$,M,R="horizontal")=>{const O=c;if(o.index=T.findIndex(D=>D.path===O),R==="horizontal"){const D=x;if(D>0){o.width=x;const z=D*n.routes.length,N=-D/3,W=D*(T.length-1)+D/3;_&&(_.columnWidth=D,_.width=z,_.min=N,_.max=W),o.index!==-1&&(o.openedIndexList.push(o.index),o.scrollDistance=-D*o.index)}}_&&(_.swipeDuration=M)},s=`fox-swiper-navigator-${ut()}`,g=r.computed(()=>{const c=[s];return n.customClass&&c.push(n.customClass),c}),f=r.computed(()=>{const c={},T=o.width>0?o.width:n.width;T>0&&(c.width=`${T}px`);const x=o.height>0?o.height:n.height;return x>0&&(c.height=`${x}px`),n.customStyle&&Object.assign(c,n.customStyle),c});let b=null;function d(){return b||(b=document.querySelector(`.${s}`),b)}let a=null;function v(){return a||(a=document.querySelector(`.${s}>.fox-swiper-navigator__inner`),a)}const E=r.computed(()=>o.width>0?`${o.width*n.routes.length}px`:"100%"),w=(c,T)=>{const x=n.routes.findIndex($=>{const M=c.path??c.name??"";return $.path==M});return o.width<=0?{}:{style:{left:`${x*o.width}px`,width:`${o.width}px`}}};return(c,T)=>{const x=r.resolveComponent("fox-router-view");return r.openBlock(),r.createBlock(x,{class:r.normalizeClass(g.value),style:r.normalizeStyle(f.value),"view-class":"fox-swiper-navigator__item",tag:ct,"view-tag-props":w,multi:!0,name:c.routerViewName,transition:c.transition,"scroll-distance":o.scrollDistance,"scroll-duration":c.scrollDuration,direction:c.direction,width:E.value},null,8,["class","style","name","transition","scroll-distance","scroll-duration","direction","width"])}}}),Tt=Object.freeze(Object.defineProperty({__proto__:null,default:wt},Symbol.toStringTag,{value:"Module"}));let yt="fox-";const xt=[],Y=Object.assign({"/src/components/card-navigator/index.vue":F,"/src/components/default-navigator/index.vue":j,"/src/components/root-navigator/index.vue":at,"/src/components/swiper-navigator/index.vue":Tt}),V=[];for(const t in Y){let e=/src\/components\/(.*)\/index.vue/.exec(t)[1];xt.indexOf(e)===-1&&V.push({name:e,component:Y[t].default})}const Et={install(t){V.forEach(e=>{t.component(`${yt}${e.name}`,e.component)})}};module.exports=Et;
2
+ * @fox-js/navigation v4.0.1-17 Fri May 23 2025 21:30:15 GMT+0800 (中国标准时间)
3
+ */const r=require("vue"),L=require("@fox-js/fox"),k=r.defineComponent({__name:"index",props:{routerViewName:{},transition:{type:[Function,Boolean],default:!1}},setup(t){return(e,n)=>{const o=r.resolveComponent("fox-router-view");return r.openBlock(),r.createBlock(o,{class:"fox-card-navigator","view-class":"fox-card-navigator__item","view-active-class":"fox-card-navigator__item-active","view-inactive-class":"fox-card-navigator__item-inactive","transition-name":"fox-card-navigator__trans",transition:e.transition,multi:!0,name:e.routerViewName},null,8,["transition","name"])}}}),F=Object.freeze(Object.defineProperty({__proto__:null,default:k},Symbol.toStringTag,{value:"Module"})),U=r.defineComponent({__name:"index",props:{routerViewName:{},transition:{type:[Function,Boolean],default:!0}},setup(t){return(e,n)=>{const o=r.resolveComponent("fox-router-view");return r.openBlock(),r.createBlock(o,{transition:!1,multi:!1,name:e.routerViewName},{default:r.withCtx(({Component:i})=>[r.createVNode(r.Transition,{name:"fox-default-navigator__trans"},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(i)))]),_:2},1024)]),_:1},8,["name"])}}}),j=Object.freeze(Object.defineProperty({__proto__:null,default:U},Symbol.toStringTag,{value:"Module"})),X=10;function q(t,e){return t>e&&t>X?"horizontal":e>t&&e>X?"vertical":""}function B(){const t={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},e=()=>t.direction==="vertical",n=()=>t.direction==="horizontal",o=()=>{t.deltaX=0,t.deltaY=0,t.offsetX=0,t.offsetY=0,t.direction="",t.startTime=0};return{move:p=>{if(p.touches){const m=p.touches[0];t.deltaX=m.clientX-t.startX,t.deltaY=m.clientY-t.startY,t.moveX=m.clientX,t.moveY=m.clientY}else t.deltaX=p.clientX-t.startX,t.deltaY=p.clientY-t.startY,t.moveX=p.clientX,t.moveY=p.clientY;t.offsetX=Math.abs(t.deltaX),t.offsetY=Math.abs(t.deltaY),t.duration=Date.now()-t.startTime,t.direction||(t.direction=q(t.offsetX,t.offsetY))},start:p=>{if(o(),p.touches){const m=p.touches[0];t.startX=m.clientX,t.startY=m.clientY}else t.startX=p.clientX,t.startY=p.clientY;t.startTime=Date.now()},reset:o,isVertical:e,isHorizontal:n,state:t}}function H(t){return t===window}const G=t=>{const e=r.unref(t);if(H(e)){const n=e.innerWidth,o=e.innerHeight;return{top:0,left:0,right:n,bottom:o,width:n,height:o}}return e&&e.getBoundingClientRect?e.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},J=(t,e,n)=>{e=e??{bubbles:!1,cancelable:!1,detail:void 0};const o=document.createEvent("Events");let i=!0,h=!0;for(let m in e)m==="bubbles"?i=!!e[m]:m==="cancelable"?h=!!e[m]:o[m]=e[m];o.initEvent(t,i,h),(n??document).dispatchEvent(o)},K=15,Q=300,Z=200;function tt(t){t.stopPropagation()}function et(t,e,n=1){return t=Math.abs(t/e)/.003*(t<0?-1:1),t*n}function C(t,e=0,n,o=Z){n==="end"?t.style.transition=`transform ${o}ms linear`:t.style.transition="transform 0ms linear",t.style.transform=`translate3d(${e}px, 0, 0)`}function S(t){t.style.transition="",t.style.transform=""}const nt=/^matrix\((.+)\)$/;function A(t){let e=0;const n=t,{transform:o}=window.getComputedStyle(n);if(o){const i=nt.exec(o);i&&(e=+i[1].split(/,\s*/)[4])}return e}const P=new WeakMap;function ot(t,e,n,o,i,h=600,p=60,m=null){const l={active:!0,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,dragging:!1,transitionEndTrigger:null},_=t.previousSibling,u=B(),y=(d,a,v,E)=>{let w=a+l.startDistance;if(v==="end"){const c=G(d);let T=c.width*e;w<T?w=0:w=c.width,l.transitionEndTrigger=()=>{l.moving=!1,d.classList.remove(i),setTimeout(()=>{_&&S(_),w==0?S(d):J(L.FoxLeaveEnd,{},d),l.moving=!1},p)},_&&C(_,0,"",0),w>0&&typeof o=="function"&&o(),C(d,w,"end",E)}else w<0&&(w=0),C(d,w,"",0)},s=()=>{l.transitionEndTrigger&&(l.transitionEndTrigger(),l.transitionEndTrigger=null)},g=d=>{if(u.start(d),l.draging=m?m(t,u.state.startX,u.state.startY):!0,!l.draging){u.reset();return}l.scrollDistance=0,l.moving&&(l.scrollDistance=A(t)),t.classList.add(i),l.transitionEndTrigger=null,l.moving=!0},f=d=>{!l.draging||(l.moving=!0,u.move(d),u.isVertical())||A(t)===0&&u.state.deltaX<0||(tt(d),y(t,u.state.deltaX,"",0))},b=()=>{if(!l.draging||(l.draging=!1,u.isVertical())||A(t)===0&&u.state.deltaX<0)return;const a=u.state.deltaX;if(a===0){t.classList.remove(i),l.moving=!1;return}const v=u.state.duration;if(v<Q&&Math.abs(a)>K){const w=et(a,v,n);y(t,w,"end",h)}else y(t,a,"end",h)};t.addEventListener("transitionend",s),t.addEventListener("transitioncancel",s),t.addEventListener("touchstart",g),t.addEventListener("touchmove",f),t.addEventListener("touchend",b),t.addEventListener("touchcancel",b),P.set(t,{state:l,transitionend:s,transitioncancel:s,touchstart:g,touchmove:f,touchend:b,touchcancel:b})}function it(t){const e=P.get(t);e&&(P.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))}const st=r.defineComponent({__name:"index",props:{dragRemove:{type:Boolean,default:!0},removeViewPage:{},removeMoveRatio:{default:.5},momentumReduceRatio:{default:1},resetDelay:{default:120},swipeDuration:{default:60},draggableArea:{},routerViewName:{},viewTag:{type:[Function,String],default:"div"},transition:{type:[Function,Boolean],default:!0},transitionDuration:{},viewClass:{type:[Function,String],default:"fox-root-navigator__item"}},setup(t){const e=t;let n=null,o=null;function i(s){return(s.params&&s.params.animationType)??"slide"}function h(s){return(s.params&&s.params.dragRemove)??e.dragRemove}const p=(s,g,f,b)=>{if(f.opsType===L.OperationType.Append||g){const d=i(f),a=g?"show":"enter";if(a==="show"&&(d==="pop"||o!=="leave"||(n?i(n):"")==="pop"))return;a==="enter"&&(n=f,o="enter");const v=`fox-root-navigator__${d}-${a}-from`,E=`fox-root-navigator__${d}-${a}-active`;s.classList.add(v),s.classList.add(E)}},m=(s,g,f,b)=>{if(f.opsType===L.OperationType.Append||g){const d=i(f),a=g?"show":"enter";if(a==="show"&&(d==="pop"||o!=="leave"||(n?i(n):"")==="pop"))return;const v=`fox-root-navigator__${d}-${a}-from`,E=`fox-root-navigator__${d}-${a}-to`;s.classList.remove(v),s.classList.add(E)}},l=(s,g,f,b)=>{if(f.opsType===L.OperationType.Append||g){const a=i(f),v=g?"show":"enter";if(v==="enter"&&(n=null,o=null),a!=="pop"){const E=`fox-root-navigator__${a}-${v}-active`,w=`fox-root-navigator__${a}-${v}-to`;s.classList.remove(E),s.classList.remove(w)}}if(h(f)===!0&&!g&&f.opsType===L.OperationType.Append){let a=null;e.draggableArea&&(a=function(v,E,w){const c=E-v.offsetLeft,T=w-v.offsetTop;return!(e.draggableArea?.left&&c<e.draggableArea?.left||e.draggableArea?.right&&c>e.draggableArea?.right||e.draggableArea?.top&&T<e.draggableArea?.top||e.draggableArea?.bottom&&T>e.draggableArea?.bottom)}),ot(s,e.removeMoveRatio,e.momentumReduceRatio,e.removeViewPage,"fox-root-navigator__item-moving",e.swipeDuration,e.resetDelay,a)}},_=(s,g,f,b)=>{if(f.opsType===L.OperationType.Append||g){const d=i(f),a=g?"hide":"leave";if(a==="hide"&&(d==="pop"||o!=="enter"||(n?i(n):"")==="pop"))return;a==="leave"&&(n=f,o="leave");const v=`fox-root-navigator__${d}-${a}-from`,E=`fox-root-navigator__${d}-${a}-active`;s.classList.add(v),s.classList.add(E)}},u=(s,g,f,b)=>{if(f.opsType===L.OperationType.Append||g){const d=i(f),a=g?"hide":"leave";if(a==="hide"&&(d==="pop"||o!=="enter"||(n?i(n):"")==="pop"))return;const v=`fox-root-navigator__${d}-${a}-from`,E=`fox-root-navigator__${d}-${a}-to`;s.classList.remove(v),s.classList.add(E)}},y=(s,g,f,b)=>{if(f.opsType===L.OperationType.Append||g){const a=i(f),v=g?"hide":"leave";if(v==="leave"&&(n=null,o=null),a!=="pop"){const E=`fox-root-navigator__${a}-${v}-active`,w=`fox-root-navigator__${a}-${v}-to`;s.classList.remove(E),s.classList.remove(w)}}h(f)&&!g&&it(s)};return(s,g)=>{const f=r.resolveComponent("fox-router-view");return r.openBlock(),r.createBlock(f,{class:"fox-root-navigator","view-class":s.viewClass,"before-enter":p,enter:m,"after-enter":l,"before-leave":_,leave:u,"after-leave":y,multi:!0,name:s.routerViewName,"view-tag":s.viewTag,transition:s.transition,"transition-duration":s.transitionDuration},null,8,["view-class","name","view-tag","transition","transition-duration"])}}}),at=Object.freeze(Object.defineProperty({__proto__:null,default:st},Symbol.toStringTag,{value:"Module"})),rt={class:"fox-swiper-navigator"},ct=r.defineComponent({__name:"swiper",props:{width:{},scrollDistance:{},scrollDuration:{},direction:{}},setup(t){const e=t,n=r.computed(()=>{const o={transform:`translate3d(${e.scrollDistance}px, 0, 0)`,width:`${e.width}`};return e.scrollDuration>0&&(o["transition-duration"]=`${e.scrollDuration}ms`),o});return(o,i)=>(r.openBlock(),r.createElementBlock("div",rt,[r.createElementVNode("div",{class:"fox-swiper-navigator__inner",style:r.normalizeStyle(n.value)},[r.renderSlot(o.$slots,"default")],4)]))}});let lt=0;function ut(){return++lt}const dt=15,ft=300,ht=200;function mt(t){t.stopPropagation()}function pt(t,e,n=1){return t=Math.abs(t/e)/.003*(t<0?-1:1),t*n}function I(t,e=0,n,o=ht){n==="end"?t.style.transition=`transform ${o}ms linear`:t.style.transition="transform 0ms linear",t.style.transform=`translate3d(${e}px, 0, 0)`}class gt{width=0;columnWidth=0;max=0;min=0;el=null;swipeDuration=360;transitionEndTrigger=null;moving=!1;startDistance=0;scrollDistance=0;getStartDistance;openPage;isPageOpened;pageOpened;moveRatio=.5;momentumReduceRatio=1;transitionend=null;touchstart=null;touchmove=null;touchend=null;touchcancel=null;constructor(e,n,o,i,h,p){this.getStartDistance=e,this.openPage=n,this.isPageOpened=o,this.pageOpened=i,this.moveRatio=h,this.momentumReduceRatio=p}open(){const e=this.el,n=B(),o=(i,h,p,m)=>{let l=h+this.startDistance;const _=this.columnWidth*this.moveRatio;if(p==="end"){if(h==0){this.moving=!1;return}Math.abs(h)>_?h>0?l=this.startDistance+this.columnWidth:l=this.startDistance-this.columnWidth:l=this.startDistance;let u=-l;u<0?u=0:u>this.width-this.columnWidth&&(u=this.width-this.columnWidth);const y=Math.floor(u/this.columnWidth);this.isPageOpened(y)||this.openPage(y),l=-y*this.columnWidth,m&&m>0&&(this.transitionEndTrigger=()=>{this.moving=!1,this.pageOpened(y)}),I(i,l,"end",m),this.scrollDistance=l}else{if(Math.abs(h)>_){let y=0;if(h>0?y=Math.abs(this.startDistance+this.columnWidth):y=Math.abs(this.startDistance-this.columnWidth),y>=0&&y<this.width){const s=Math.floor(y/this.columnWidth);this.isPageOpened(s)||this.openPage(s)}}let u=-l;u<this.min?u=this.min:u>this.max&&(u=this.max),I(i,-u,"",0)}};this.transitionend=()=>{e.style.transition="",this.transitionEndTrigger&&(this.transitionEndTrigger(),this.transitionEndTrigger=null)},this.touchstart=i=>{this.moving||(n.start(i),this.startDistance=this.getStartDistance(),this.transitionEndTrigger=null,this.moving=!0)},this.touchmove=i=>{n.move(i),!n.isVertical()&&(mt(i),o(e,n.state.deltaX,"",0))},this.touchend=()=>{if(n.isVertical())return;const i=n.state.deltaX;if(i==0)return;const h=n.state.duration;if(h<ft&&Math.abs(i)>dt){const m=pt(i,h,this.momentumReduceRatio);o(e,m,"end",this.swipeDuration)}else o(e,i,"end",this.swipeDuration)},e.addEventListener("transitionend",this.transitionend),e.addEventListener("touchstart",this.touchstart),e.addEventListener("touchmove",this.touchmove),e.addEventListener("touchend",this.touchend),e.addEventListener("touchcancel",this.touchend)}close(){const e=this.el;this.transitionend&&e.addEventListener("transitionend",this.transitionend),this.touchstart&&e.addEventListener("touchstart",this.touchstart),this.touchmove&&e.addEventListener("touchmove",this.touchmove),this.touchend&&e.addEventListener("touchend",this.touchend),this.touchcancel&&e.addEventListener("touchcancel",this.touchcancel),this.el=null}}function vt(t,e,n,o,i,h){return new gt(t,e,n,o,i,h)}function _t(t){const e=r.unref(t),n=window.getComputedStyle(e,null),o=parseFloat(n.getPropertyValue("padding-left")),i=parseFloat(n.getPropertyValue("padding-right")),h=parseFloat(n.getPropertyValue("padding-top")),p=parseFloat(n.getPropertyValue("padding-bottom"));return{width:e.clientWidth-o-i,height:e.clientHeight-h-p}}const wt=r.defineComponent({__name:"index",props:{activePath:{},routes:{},height:{default:-1},width:{default:-1},draggable:{type:Boolean,default:!0},openViewPage:{},routerViewName:{},moveRatio:{default:.5},momentumReduceRatio:{default:1},direction:{default:"horizontal"},transition:{type:[Function,Boolean],default:!0},swipeDuration:{default:360},scrollDuration:{},customClass:{},customStyle:{}},emits:["update:activePath"],setup(t,{emit:e}){const n=t,o=r.reactive({scrollDistance:0,index:-1,openedIndexList:[],width:n.width,height:n.height}),i=e,h=()=>o.scrollDistance,p=c=>{if(o.openedIndexList.indexOf(c)===-1){o.openedIndexList.push(c);const T=n.routes[c];try{n.openViewPage(T,c)}catch(x){console.error(x)}}},m=c=>o.openedIndexList.indexOf(c)!==-1,l=c=>{o.index=c,o.width>0?o.scrollDistance=-o.index*o.width:o.scrollDistance=0;const T=n.routes[c];i("update:activePath",T.path)};let _=null;n.draggable&&(_=vt(h,p,m,l,n.moveRatio,n.momentumReduceRatio));let u=null;r.onMounted(()=>{const c=d(),T=()=>{const x=_t(c);y(n.activePath,n.routes,x.width,x.height,n.swipeDuration,n.direction)};if(window.ResizeObserver&&(u=new window.ResizeObserver(T),u.observe(c)),T(),_){const x=v();_.el=x,_.open()}}),r.onBeforeUnmount(()=>{u&&(u.disconnect(),u=null),_&&_.close()}),r.watch([()=>n.activePath,()=>n.routes,()=>n.width,()=>n.height,()=>n.swipeDuration,()=>n.direction],([c,T,x,$,M,R])=>{const O=x<=0?o.width:x,D=$<=0?o.height:$;y(c,T,O,D,M,R)});const y=(c,T,x,$,M,R="horizontal")=>{const O=c;if(o.index=T.findIndex(D=>D.path===O),R==="horizontal"){const D=x;if(D>0){o.width=x;const z=D*n.routes.length,N=-D/3,W=D*(T.length-1)+D/3;_&&(_.columnWidth=D,_.width=z,_.min=N,_.max=W),o.index!==-1&&(o.openedIndexList.push(o.index),o.scrollDistance=-D*o.index)}}_&&(_.swipeDuration=M)},s=`fox-swiper-navigator-${ut()}`,g=r.computed(()=>{const c=[s];return n.customClass&&c.push(n.customClass),c}),f=r.computed(()=>{const c={},T=o.width>0?o.width:n.width;T>0&&(c.width=`${T}px`);const x=o.height>0?o.height:n.height;return x>0&&(c.height=`${x}px`),n.customStyle&&Object.assign(c,n.customStyle),c});let b=null;function d(){return b||(b=document.querySelector(`.${s}`),b)}let a=null;function v(){return a||(a=document.querySelector(`.${s}>.fox-swiper-navigator__inner`),a)}const E=r.computed(()=>o.width>0?`${o.width*n.routes.length}px`:"100%"),w=(c,T)=>{const x=n.routes.findIndex($=>{const M=c.path??c.name??"";return $.path==M});return o.width<=0?{}:{style:{left:`${x*o.width}px`,width:`${o.width}px`}}};return(c,T)=>{const x=r.resolveComponent("fox-router-view");return r.openBlock(),r.createBlock(x,{class:r.normalizeClass(g.value),style:r.normalizeStyle(f.value),"view-class":"fox-swiper-navigator__item",tag:ct,"view-tag-props":w,multi:!0,name:c.routerViewName,transition:c.transition,"scroll-distance":o.scrollDistance,"scroll-duration":c.scrollDuration,direction:c.direction,width:E.value},null,8,["class","style","name","transition","scroll-distance","scroll-duration","direction","width"])}}}),Tt=Object.freeze(Object.defineProperty({__proto__:null,default:wt},Symbol.toStringTag,{value:"Module"}));let yt="fox-";const xt=[],Y=Object.assign({"/src/components/card-navigator/index.vue":F,"/src/components/default-navigator/index.vue":j,"/src/components/root-navigator/index.vue":at,"/src/components/swiper-navigator/index.vue":Tt}),V=[];for(const t in Y){let e=/src\/components\/(.*)\/index.vue/.exec(t)[1];xt.indexOf(e)===-1&&V.push({name:e,component:Y[t].default})}const Et={install(t){V.forEach(e=>{t.component(`${yt}${e.name}`,e.component)})}};module.exports=Et;
package/dist/index.esm.js CHANGED
@@ -1,7 +1,7 @@
1
- import { defineComponent as A, resolveComponent as X, openBlock as L, createBlock as R, withCtx as V, createVNode as J, Transition as K, resolveDynamicComponent as Q, unref as F, computed as P, createElementBlock as Z, createElementVNode as tt, normalizeStyle as U, renderSlot as et, reactive as nt, onMounted as ot, onBeforeUnmount as it, watch as st, normalizeClass as at } from "vue";
1
+ import { defineComponent as A, resolveComponent as X, createBlock as R, openBlock as L, withCtx as V, createVNode as J, Transition as K, resolveDynamicComponent as Q, unref as F, computed as P, createElementBlock as Z, createElementVNode as tt, normalizeStyle as U, renderSlot as et, reactive as nt, onMounted as ot, onBeforeUnmount as it, watch as st, normalizeClass as at } from "vue";
2
2
  import { FoxLeaveEnd as rt, OperationType as D } from "@fox-js/fox";
3
3
  /*!
4
- * @fox-js/navigation v4.0.1-16 Sat Sep 28 2024 19:51:20 GMT+0800 (中国标准时间)
4
+ * @fox-js/navigation v4.0.1-17 Fri May 23 2025 21:30:15 GMT+0800 (中国标准时间)
5
5
  */
6
6
  const ct = /* @__PURE__ */ A({
7
7
  __name: "index",
@@ -27,7 +27,7 @@ const ct = /* @__PURE__ */ A({
27
27
  }), lt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
28
28
  __proto__: null,
29
29
  default: ct
30
- }, Symbol.toStringTag, { value: "Module" })), dt = /* @__PURE__ */ A({
30
+ }, Symbol.toStringTag, { value: "Module" })), ut = /* @__PURE__ */ A({
31
31
  __name: "index",
32
32
  props: {
33
33
  routerViewName: {},
@@ -53,9 +53,9 @@ const ct = /* @__PURE__ */ A({
53
53
  }, 8, ["name"]);
54
54
  };
55
55
  }
56
- }), ut = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
56
+ }), dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
57
57
  __proto__: null,
58
- default: dt
58
+ default: ut
59
59
  }, Symbol.toStringTag, { value: "Module" })), N = 10;
60
60
  function ft(t, e) {
61
61
  return t > e && t > N ? "horizontal" : e > t && e > N ? "vertical" : "";
@@ -167,28 +167,28 @@ function yt(t, e, n, o, i, f = 600, m = 60, h = null) {
167
167
  moving: !1,
168
168
  dragging: !1,
169
169
  transitionEndTrigger: null
170
- }, v = t.previousSibling, l = j(), T = (d, a, g, y) => {
170
+ }, v = t.previousSibling, l = j(), T = (u, a, g, y) => {
171
171
  let _ = a + c.startDistance;
172
172
  if (g === "end") {
173
- const r = mt(d);
173
+ const r = mt(u);
174
174
  let w = r.width * e;
175
175
  _ < w ? _ = 0 : _ = r.width, c.transitionEndTrigger = () => {
176
- c.moving = !1, d.classList.remove(i), setTimeout(() => {
177
- v && W(v), _ == 0 ? W(d) : pt(rt, {}, d), c.moving = !1;
176
+ c.moving = !1, u.classList.remove(i), setTimeout(() => {
177
+ v && W(v), _ == 0 ? W(u) : pt(rt, {}, u), c.moving = !1;
178
178
  }, m);
179
- }, v && C(v, 0, "", 0), _ > 0 && typeof o == "function" && o(), C(d, _, "end", y);
179
+ }, v && C(v, 0, "", 0), _ > 0 && typeof o == "function" && o(), C(u, _, "end", y);
180
180
  } else
181
- _ < 0 && (_ = 0), C(d, _, "", 0);
181
+ _ < 0 && (_ = 0), C(u, _, "", 0);
182
182
  }, s = () => {
183
183
  c.transitionEndTrigger && (c.transitionEndTrigger(), c.transitionEndTrigger = null);
184
- }, p = (d) => {
185
- if (l.start(d), c.draging = h ? h(t, l.state.startX, l.state.startY) : !0, !c.draging) {
184
+ }, p = (u) => {
185
+ if (l.start(u), c.draging = h ? h(t, l.state.startX, l.state.startY) : !0, !c.draging) {
186
186
  l.reset();
187
187
  return;
188
188
  }
189
189
  c.scrollDistance = 0, c.moving && (c.scrollDistance = I(t)), t.classList.add(i), c.transitionEndTrigger = null, c.moving = !0;
190
- }, u = (d) => {
191
- !c.draging || (c.moving = !0, l.move(d), l.isVertical()) || I(t) === 0 && l.state.deltaX < 0 || (wt(d), T(t, l.state.deltaX, "", 0));
190
+ }, d = (u) => {
191
+ !c.draging || (c.moving = !0, l.move(u), l.isVertical()) || I(t) === 0 && l.state.deltaX < 0 || (wt(u), T(t, l.state.deltaX, "", 0));
192
192
  }, E = () => {
193
193
  if (!c.draging || (c.draging = !1, l.isVertical()) || I(t) === 0 && l.state.deltaX < 0)
194
194
  return;
@@ -204,12 +204,12 @@ function yt(t, e, n, o, i, f = 600, m = 60, h = null) {
204
204
  } else
205
205
  T(t, a, "end", f);
206
206
  };
207
- t.addEventListener("transitionend", s), t.addEventListener("transitioncancel", s), t.addEventListener("touchstart", p), t.addEventListener("touchmove", u), t.addEventListener("touchend", E), t.addEventListener("touchcancel", E), Y.set(t, {
207
+ t.addEventListener("transitionend", s), t.addEventListener("transitioncancel", s), t.addEventListener("touchstart", p), t.addEventListener("touchmove", d), t.addEventListener("touchend", E), t.addEventListener("touchcancel", E), Y.set(t, {
208
208
  state: c,
209
209
  transitionend: s,
210
210
  transitioncancel: s,
211
211
  touchstart: p,
212
- touchmove: u,
212
+ touchmove: d,
213
213
  touchend: E,
214
214
  touchcancel: E
215
215
  });
@@ -231,6 +231,7 @@ const bt = /* @__PURE__ */ A({
231
231
  routerViewName: {},
232
232
  viewTag: { type: [Function, String], default: "div" },
233
233
  transition: { type: [Function, Boolean], default: !0 },
234
+ transitionDuration: {},
234
235
  viewClass: { type: [Function, String], default: "fox-root-navigator__item" }
235
236
  },
236
237
  setup(t) {
@@ -242,32 +243,32 @@ const bt = /* @__PURE__ */ A({
242
243
  function f(s) {
243
244
  return (s.params && s.params.dragRemove) ?? e.dragRemove;
244
245
  }
245
- const m = (s, p, u, E) => {
246
- if (u.opsType === D.Append || p) {
247
- const d = i(u), a = p ? "show" : "enter";
248
- if (a === "show" && (d === "pop" || o !== "leave" || (n ? i(n) : "") === "pop"))
246
+ const m = (s, p, d, E) => {
247
+ if (d.opsType === D.Append || p) {
248
+ const u = i(d), a = p ? "show" : "enter";
249
+ if (a === "show" && (u === "pop" || o !== "leave" || (n ? i(n) : "") === "pop"))
249
250
  return;
250
- a === "enter" && (n = u, o = "enter");
251
- const g = `fox-root-navigator__${d}-${a}-from`, y = `fox-root-navigator__${d}-${a}-active`;
251
+ a === "enter" && (n = d, o = "enter");
252
+ const g = `fox-root-navigator__${u}-${a}-from`, y = `fox-root-navigator__${u}-${a}-active`;
252
253
  s.classList.add(g), s.classList.add(y);
253
254
  }
254
- }, h = (s, p, u, E) => {
255
- if (u.opsType === D.Append || p) {
256
- const d = i(u), a = p ? "show" : "enter";
257
- if (a === "show" && (d === "pop" || o !== "leave" || (n ? i(n) : "") === "pop"))
255
+ }, h = (s, p, d, E) => {
256
+ if (d.opsType === D.Append || p) {
257
+ const u = i(d), a = p ? "show" : "enter";
258
+ if (a === "show" && (u === "pop" || o !== "leave" || (n ? i(n) : "") === "pop"))
258
259
  return;
259
- const g = `fox-root-navigator__${d}-${a}-from`, y = `fox-root-navigator__${d}-${a}-to`;
260
+ const g = `fox-root-navigator__${u}-${a}-from`, y = `fox-root-navigator__${u}-${a}-to`;
260
261
  s.classList.remove(g), s.classList.add(y);
261
262
  }
262
- }, c = (s, p, u, E) => {
263
- if (u.opsType === D.Append || p) {
264
- const a = i(u), g = p ? "show" : "enter";
263
+ }, c = (s, p, d, E) => {
264
+ if (d.opsType === D.Append || p) {
265
+ const a = i(d), g = p ? "show" : "enter";
265
266
  if (g === "enter" && (n = null, o = null), a !== "pop") {
266
267
  const y = `fox-root-navigator__${a}-${g}-active`, _ = `fox-root-navigator__${a}-${g}-to`;
267
268
  s.classList.remove(y), s.classList.remove(_);
268
269
  }
269
270
  }
270
- if (f(u) === !0 && !p && u.opsType === D.Append) {
271
+ if (f(d) === !0 && !p && d.opsType === D.Append) {
271
272
  let a = null;
272
273
  e.draggableArea && (a = function(g, y, _) {
273
274
  const r = y - g.offsetLeft, w = _ - g.offsetTop;
@@ -283,36 +284,36 @@ const bt = /* @__PURE__ */ A({
283
284
  a
284
285
  );
285
286
  }
286
- }, v = (s, p, u, E) => {
287
- if (u.opsType === D.Append || p) {
288
- const d = i(u), a = p ? "hide" : "leave";
289
- if (a === "hide" && (d === "pop" || o !== "enter" || (n ? i(n) : "") === "pop"))
287
+ }, v = (s, p, d, E) => {
288
+ if (d.opsType === D.Append || p) {
289
+ const u = i(d), a = p ? "hide" : "leave";
290
+ if (a === "hide" && (u === "pop" || o !== "enter" || (n ? i(n) : "") === "pop"))
290
291
  return;
291
- a === "leave" && (n = u, o = "leave");
292
- const g = `fox-root-navigator__${d}-${a}-from`, y = `fox-root-navigator__${d}-${a}-active`;
292
+ a === "leave" && (n = d, o = "leave");
293
+ const g = `fox-root-navigator__${u}-${a}-from`, y = `fox-root-navigator__${u}-${a}-active`;
293
294
  s.classList.add(g), s.classList.add(y);
294
295
  }
295
- }, l = (s, p, u, E) => {
296
- if (u.opsType === D.Append || p) {
297
- const d = i(u), a = p ? "hide" : "leave";
298
- if (a === "hide" && (d === "pop" || o !== "enter" || (n ? i(n) : "") === "pop"))
296
+ }, l = (s, p, d, E) => {
297
+ if (d.opsType === D.Append || p) {
298
+ const u = i(d), a = p ? "hide" : "leave";
299
+ if (a === "hide" && (u === "pop" || o !== "enter" || (n ? i(n) : "") === "pop"))
299
300
  return;
300
- const g = `fox-root-navigator__${d}-${a}-from`, y = `fox-root-navigator__${d}-${a}-to`;
301
+ const g = `fox-root-navigator__${u}-${a}-from`, y = `fox-root-navigator__${u}-${a}-to`;
301
302
  s.classList.remove(g), s.classList.add(y);
302
303
  }
303
- }, T = (s, p, u, E) => {
304
- if (u.opsType === D.Append || p) {
305
- const a = i(u), g = p ? "hide" : "leave";
304
+ }, T = (s, p, d, E) => {
305
+ if (d.opsType === D.Append || p) {
306
+ const a = i(d), g = p ? "hide" : "leave";
306
307
  if (g === "leave" && (n = null, o = null), a !== "pop") {
307
308
  const y = `fox-root-navigator__${a}-${g}-active`, _ = `fox-root-navigator__${a}-${g}-to`;
308
309
  s.classList.remove(y), s.classList.remove(_);
309
310
  }
310
311
  }
311
- f(u) && !p && Et(s);
312
+ f(d) && !p && Et(s);
312
313
  };
313
314
  return (s, p) => {
314
- const u = X("fox-router-view");
315
- return L(), R(u, {
315
+ const d = X("fox-router-view");
316
+ return L(), R(d, {
316
317
  class: "fox-root-navigator",
317
318
  "view-class": s.viewClass,
318
319
  "before-enter": m,
@@ -324,8 +325,9 @@ const bt = /* @__PURE__ */ A({
324
325
  multi: !0,
325
326
  name: s.routerViewName,
326
327
  "view-tag": s.viewTag,
327
- transition: s.transition
328
- }, null, 8, ["view-class", "name", "view-tag", "transition"]);
328
+ transition: s.transition,
329
+ "transition-duration": s.transitionDuration
330
+ }, null, 8, ["view-class", "name", "view-tag", "transition", "transition-duration"]);
329
331
  };
330
332
  }
331
333
  }), Dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
@@ -591,7 +593,7 @@ const Vt = /* @__PURE__ */ A({
591
593
  ));
592
594
  let l = null;
593
595
  ot(() => {
594
- const r = d(), w = () => {
596
+ const r = u(), w = () => {
595
597
  const x = Yt(r);
596
598
  T(n.activePath, n.routes, x.width, x.height, n.swipeDuration, n.direction);
597
599
  };
@@ -629,14 +631,14 @@ const Vt = /* @__PURE__ */ A({
629
631
  }, s = `fox-swiper-navigator-${Rt()}`, p = P(() => {
630
632
  const r = [s];
631
633
  return n.customClass && r.push(n.customClass), r;
632
- }), u = P(() => {
634
+ }), d = P(() => {
633
635
  const r = {}, w = o.width > 0 ? o.width : n.width;
634
636
  w > 0 && (r.width = `${w}px`);
635
637
  const x = o.height > 0 ? o.height : n.height;
636
638
  return x > 0 && (r.height = `${x}px`), n.customStyle && Object.assign(r, n.customStyle), r;
637
639
  });
638
640
  let E = null;
639
- function d() {
641
+ function u() {
640
642
  return E || (E = document.querySelector(`.${s}`), E);
641
643
  }
642
644
  let a = null;
@@ -659,7 +661,7 @@ const Vt = /* @__PURE__ */ A({
659
661
  const x = X("fox-router-view");
660
662
  return L(), R(x, {
661
663
  class: at(p.value),
662
- style: U(u.value),
664
+ style: U(d.value),
663
665
  "view-class": "fox-swiper-navigator__item",
664
666
  tag: $t,
665
667
  "view-tag-props": _,
@@ -678,7 +680,7 @@ const Vt = /* @__PURE__ */ A({
678
680
  default: Vt
679
681
  }, Symbol.toStringTag, { value: "Module" }));
680
682
  let Wt = "fox-";
681
- const zt = [], B = /* @__PURE__ */ Object.assign({ "/src/components/card-navigator/index.vue": lt, "/src/components/default-navigator/index.vue": ut, "/src/components/root-navigator/index.vue": Dt, "/src/components/swiper-navigator/index.vue": Nt }), k = [];
683
+ const zt = [], B = /* @__PURE__ */ Object.assign({ "/src/components/card-navigator/index.vue": lt, "/src/components/default-navigator/index.vue": dt, "/src/components/root-navigator/index.vue": Dt, "/src/components/swiper-navigator/index.vue": Nt }), k = [];
682
684
  for (const t in B) {
683
685
  let e = /src\/components\/(.*)\/index.vue/.exec(t)[1];
684
686
  zt.indexOf(e) === -1 && k.push({
package/dist/index.umd.js CHANGED
@@ -1,3 +1,3 @@
1
1
  (function(i,D){typeof exports=="object"&&typeof module<"u"?module.exports=D(require("vue"),require("@fox-js/fox")):typeof define=="function"&&define.amd?define(["vue","@fox-js/fox"],D):(i=typeof globalThis<"u"?globalThis:i||self,i.FoxNavigation=D(i.Vue,i.Fox))})(this,function(i,D){"use strict";/*!
2
- * @fox-js/navigation v4.0.1-16 Sat Sep 28 2024 19:51:20 GMT+0800 (中国标准时间)
3
- */const N=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"index",props:{routerViewName:{},transition:{type:[Function,Boolean],default:!1}},setup(t){return(e,n)=>{const o=i.resolveComponent("fox-router-view");return i.openBlock(),i.createBlock(o,{class:"fox-card-navigator","view-class":"fox-card-navigator__item","view-active-class":"fox-card-navigator__item-active","view-inactive-class":"fox-card-navigator__item-inactive","transition-name":"fox-card-navigator__trans",transition:e.transition,multi:!0,name:e.routerViewName},null,8,["transition","name"])}}})},Symbol.toStringTag,{value:"Module"})),z=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"index",props:{routerViewName:{},transition:{type:[Function,Boolean],default:!0}},setup(t){return(e,n)=>{const o=i.resolveComponent("fox-router-view");return i.openBlock(),i.createBlock(o,{transition:!1,multi:!1,name:e.routerViewName},{default:i.withCtx(({Component:s})=>[i.createVNode(i.Transition,{name:"fox-default-navigator__trans"},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(s)))]),_:2},1024)]),_:1},8,["name"])}}})},Symbol.toStringTag,{value:"Module"})),X=10;function W(t,e){return t>e&&t>X?"horizontal":e>t&&e>X?"vertical":""}function S(){const t={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},e=()=>t.direction==="vertical",n=()=>t.direction==="horizontal",o=()=>{t.deltaX=0,t.deltaY=0,t.offsetX=0,t.offsetY=0,t.direction="",t.startTime=0};return{move:p=>{if(p.touches){const h=p.touches[0];t.deltaX=h.clientX-t.startX,t.deltaY=h.clientY-t.startY,t.moveX=h.clientX,t.moveY=h.clientY}else t.deltaX=p.clientX-t.startX,t.deltaY=p.clientY-t.startY,t.moveX=p.clientX,t.moveY=p.clientY;t.offsetX=Math.abs(t.deltaX),t.offsetY=Math.abs(t.deltaY),t.duration=Date.now()-t.startTime,t.direction||(t.direction=W(t.offsetX,t.offsetY))},start:p=>{if(o(),p.touches){const h=p.touches[0];t.startX=h.clientX,t.startY=h.clientY}else t.startX=p.clientX,t.startY=p.clientY;t.startTime=Date.now()},reset:o,isVertical:e,isHorizontal:n,state:t}}function F(t){return t===window}const k=t=>{const e=i.unref(t);if(F(e)){const n=e.innerWidth,o=e.innerHeight;return{top:0,left:0,right:n,bottom:o,width:n,height:o}}return e&&e.getBoundingClientRect?e.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},j=(t,e,n)=>{e=e??{bubbles:!1,cancelable:!1,detail:void 0};const o=document.createEvent("Events");let s=!0,m=!0;for(let h in e)h==="bubbles"?s=!!e[h]:h==="cancelable"?m=!!e[h]:o[h]=e[h];o.initEvent(t,s,m),(n??document).dispatchEvent(o)},U=15,q=300,H=200;function G(t){t.stopPropagation()}function J(t,e,n=1){return t=Math.abs(t/e)/.003*(t<0?-1:1),t*n}function R(t,e=0,n,o=H){n==="end"?t.style.transition=`transform ${o}ms linear`:t.style.transition="transform 0ms linear",t.style.transform=`translate3d(${e}px, 0, 0)`}function I(t){t.style.transition="",t.style.transform=""}const K=/^matrix\((.+)\)$/;function O(t){let e=0;const n=t,{transform:o}=window.getComputedStyle(n);if(o){const s=K.exec(o);s&&(e=+s[1].split(/,\s*/)[4])}return e}const C=new WeakMap;function Q(t,e,n,o,s,m=600,p=60,h=null){const l={active:!0,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,dragging:!1,transitionEndTrigger:null},_=t.previousSibling,d=S(),y=(u,r,v,E)=>{let w=r+l.startDistance;if(v==="end"){const c=k(u);let T=c.width*e;w<T?w=0:w=c.width,l.transitionEndTrigger=()=>{l.moving=!1,u.classList.remove(s),setTimeout(()=>{_&&I(_),w==0?I(u):j(D.FoxLeaveEnd,{},u),l.moving=!1},p)},_&&R(_,0,"",0),w>0&&typeof o=="function"&&o(),R(u,w,"end",E)}else w<0&&(w=0),R(u,w,"",0)},a=()=>{l.transitionEndTrigger&&(l.transitionEndTrigger(),l.transitionEndTrigger=null)},g=u=>{if(d.start(u),l.draging=h?h(t,d.state.startX,d.state.startY):!0,!l.draging){d.reset();return}l.scrollDistance=0,l.moving&&(l.scrollDistance=O(t)),t.classList.add(s),l.transitionEndTrigger=null,l.moving=!0},f=u=>{!l.draging||(l.moving=!0,d.move(u),d.isVertical())||O(t)===0&&d.state.deltaX<0||(G(u),y(t,d.state.deltaX,"",0))},b=()=>{if(!l.draging||(l.draging=!1,d.isVertical())||O(t)===0&&d.state.deltaX<0)return;const r=d.state.deltaX;if(r===0){t.classList.remove(s),l.moving=!1;return}const v=d.state.duration;if(v<q&&Math.abs(r)>U){const w=J(r,v,n);y(t,w,"end",m)}else y(t,r,"end",m)};t.addEventListener("transitionend",a),t.addEventListener("transitioncancel",a),t.addEventListener("touchstart",g),t.addEventListener("touchmove",f),t.addEventListener("touchend",b),t.addEventListener("touchcancel",b),C.set(t,{state:l,transitionend:a,transitioncancel:a,touchstart:g,touchmove:f,touchend:b,touchcancel:b})}function Z(t){const e=C.get(t);e&&(C.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))}const tt=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"index",props:{dragRemove:{type:Boolean,default:!0},removeViewPage:{},removeMoveRatio:{default:.5},momentumReduceRatio:{default:1},resetDelay:{default:120},swipeDuration:{default:60},draggableArea:{},routerViewName:{},viewTag:{type:[Function,String],default:"div"},transition:{type:[Function,Boolean],default:!0},viewClass:{type:[Function,String],default:"fox-root-navigator__item"}},setup(t){const e=t;let n=null,o=null;function s(a){return(a.params&&a.params.animationType)??"slide"}function m(a){return(a.params&&a.params.dragRemove)??e.dragRemove}const p=(a,g,f,b)=>{if(f.opsType===D.OperationType.Append||g){const u=s(f),r=g?"show":"enter";if(r==="show"&&(u==="pop"||o!=="leave"||(n?s(n):"")==="pop"))return;r==="enter"&&(n=f,o="enter");const v=`fox-root-navigator__${u}-${r}-from`,E=`fox-root-navigator__${u}-${r}-active`;a.classList.add(v),a.classList.add(E)}},h=(a,g,f,b)=>{if(f.opsType===D.OperationType.Append||g){const u=s(f),r=g?"show":"enter";if(r==="show"&&(u==="pop"||o!=="leave"||(n?s(n):"")==="pop"))return;const v=`fox-root-navigator__${u}-${r}-from`,E=`fox-root-navigator__${u}-${r}-to`;a.classList.remove(v),a.classList.add(E)}},l=(a,g,f,b)=>{if(f.opsType===D.OperationType.Append||g){const r=s(f),v=g?"show":"enter";if(v==="enter"&&(n=null,o=null),r!=="pop"){const E=`fox-root-navigator__${r}-${v}-active`,w=`fox-root-navigator__${r}-${v}-to`;a.classList.remove(E),a.classList.remove(w)}}if(m(f)===!0&&!g&&f.opsType===D.OperationType.Append){let r=null;e.draggableArea&&(r=function(v,E,w){const c=E-v.offsetLeft,T=w-v.offsetTop;return!(e.draggableArea?.left&&c<e.draggableArea?.left||e.draggableArea?.right&&c>e.draggableArea?.right||e.draggableArea?.top&&T<e.draggableArea?.top||e.draggableArea?.bottom&&T>e.draggableArea?.bottom)}),Q(a,e.removeMoveRatio,e.momentumReduceRatio,e.removeViewPage,"fox-root-navigator__item-moving",e.swipeDuration,e.resetDelay,r)}},_=(a,g,f,b)=>{if(f.opsType===D.OperationType.Append||g){const u=s(f),r=g?"hide":"leave";if(r==="hide"&&(u==="pop"||o!=="enter"||(n?s(n):"")==="pop"))return;r==="leave"&&(n=f,o="leave");const v=`fox-root-navigator__${u}-${r}-from`,E=`fox-root-navigator__${u}-${r}-active`;a.classList.add(v),a.classList.add(E)}},d=(a,g,f,b)=>{if(f.opsType===D.OperationType.Append||g){const u=s(f),r=g?"hide":"leave";if(r==="hide"&&(u==="pop"||o!=="enter"||(n?s(n):"")==="pop"))return;const v=`fox-root-navigator__${u}-${r}-from`,E=`fox-root-navigator__${u}-${r}-to`;a.classList.remove(v),a.classList.add(E)}},y=(a,g,f,b)=>{if(f.opsType===D.OperationType.Append||g){const r=s(f),v=g?"hide":"leave";if(v==="leave"&&(n=null,o=null),r!=="pop"){const E=`fox-root-navigator__${r}-${v}-active`,w=`fox-root-navigator__${r}-${v}-to`;a.classList.remove(E),a.classList.remove(w)}}m(f)&&!g&&Z(a)};return(a,g)=>{const f=i.resolveComponent("fox-router-view");return i.openBlock(),i.createBlock(f,{class:"fox-root-navigator","view-class":a.viewClass,"before-enter":p,enter:h,"after-enter":l,"before-leave":_,leave:d,"after-leave":y,multi:!0,name:a.routerViewName,"view-tag":a.viewTag,transition:a.transition},null,8,["view-class","name","view-tag","transition"])}}})},Symbol.toStringTag,{value:"Module"})),et={class:"fox-swiper-navigator"},nt=i.defineComponent({__name:"swiper",props:{width:{},scrollDistance:{},scrollDuration:{},direction:{}},setup(t){const e=t,n=i.computed(()=>{const o={transform:`translate3d(${e.scrollDistance}px, 0, 0)`,width:`${e.width}`};return e.scrollDuration>0&&(o["transition-duration"]=`${e.scrollDuration}ms`),o});return(o,s)=>(i.openBlock(),i.createElementBlock("div",et,[i.createElementVNode("div",{class:"fox-swiper-navigator__inner",style:i.normalizeStyle(n.value)},[i.renderSlot(o.$slots,"default")],4)]))}});let ot=0;function it(){return++ot}const st=15,at=300,rt=200;function ct(t){t.stopPropagation()}function lt(t,e,n=1){return t=Math.abs(t/e)/.003*(t<0?-1:1),t*n}function V(t,e=0,n,o=rt){n==="end"?t.style.transition=`transform ${o}ms linear`:t.style.transition="transform 0ms linear",t.style.transform=`translate3d(${e}px, 0, 0)`}class dt{width=0;columnWidth=0;max=0;min=0;el=null;swipeDuration=360;transitionEndTrigger=null;moving=!1;startDistance=0;scrollDistance=0;getStartDistance;openPage;isPageOpened;pageOpened;moveRatio=.5;momentumReduceRatio=1;transitionend=null;touchstart=null;touchmove=null;touchend=null;touchcancel=null;constructor(e,n,o,s,m,p){this.getStartDistance=e,this.openPage=n,this.isPageOpened=o,this.pageOpened=s,this.moveRatio=m,this.momentumReduceRatio=p}open(){const e=this.el,n=S(),o=(s,m,p,h)=>{let l=m+this.startDistance;const _=this.columnWidth*this.moveRatio;if(p==="end"){if(m==0){this.moving=!1;return}Math.abs(m)>_?m>0?l=this.startDistance+this.columnWidth:l=this.startDistance-this.columnWidth:l=this.startDistance;let d=-l;d<0?d=0:d>this.width-this.columnWidth&&(d=this.width-this.columnWidth);const y=Math.floor(d/this.columnWidth);this.isPageOpened(y)||this.openPage(y),l=-y*this.columnWidth,h&&h>0&&(this.transitionEndTrigger=()=>{this.moving=!1,this.pageOpened(y)}),V(s,l,"end",h),this.scrollDistance=l}else{if(Math.abs(m)>_){let y=0;if(m>0?y=Math.abs(this.startDistance+this.columnWidth):y=Math.abs(this.startDistance-this.columnWidth),y>=0&&y<this.width){const a=Math.floor(y/this.columnWidth);this.isPageOpened(a)||this.openPage(a)}}let d=-l;d<this.min?d=this.min:d>this.max&&(d=this.max),V(s,-d,"",0)}};this.transitionend=()=>{e.style.transition="",this.transitionEndTrigger&&(this.transitionEndTrigger(),this.transitionEndTrigger=null)},this.touchstart=s=>{this.moving||(n.start(s),this.startDistance=this.getStartDistance(),this.transitionEndTrigger=null,this.moving=!0)},this.touchmove=s=>{n.move(s),!n.isVertical()&&(ct(s),o(e,n.state.deltaX,"",0))},this.touchend=()=>{if(n.isVertical())return;const s=n.state.deltaX;if(s==0)return;const m=n.state.duration;if(m<at&&Math.abs(s)>st){const h=lt(s,m,this.momentumReduceRatio);o(e,h,"end",this.swipeDuration)}else o(e,s,"end",this.swipeDuration)},e.addEventListener("transitionend",this.transitionend),e.addEventListener("touchstart",this.touchstart),e.addEventListener("touchmove",this.touchmove),e.addEventListener("touchend",this.touchend),e.addEventListener("touchcancel",this.touchend)}close(){const e=this.el;this.transitionend&&e.addEventListener("transitionend",this.transitionend),this.touchstart&&e.addEventListener("touchstart",this.touchstart),this.touchmove&&e.addEventListener("touchmove",this.touchmove),this.touchend&&e.addEventListener("touchend",this.touchend),this.touchcancel&&e.addEventListener("touchcancel",this.touchcancel),this.el=null}}function ut(t,e,n,o,s,m){return new dt(t,e,n,o,s,m)}function ft(t){const e=i.unref(t),n=window.getComputedStyle(e,null),o=parseFloat(n.getPropertyValue("padding-left")),s=parseFloat(n.getPropertyValue("padding-right")),m=parseFloat(n.getPropertyValue("padding-top")),p=parseFloat(n.getPropertyValue("padding-bottom"));return{width:e.clientWidth-o-s,height:e.clientHeight-m-p}}const mt=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"index",props:{activePath:{},routes:{},height:{default:-1},width:{default:-1},draggable:{type:Boolean,default:!0},openViewPage:{},routerViewName:{},moveRatio:{default:.5},momentumReduceRatio:{default:1},direction:{default:"horizontal"},transition:{type:[Function,Boolean],default:!0},swipeDuration:{default:360},scrollDuration:{},customClass:{},customStyle:{}},emits:["update:activePath"],setup(t,{emit:e}){const n=t,o=i.reactive({scrollDistance:0,index:-1,openedIndexList:[],width:n.width,height:n.height}),s=e,m=()=>o.scrollDistance,p=c=>{if(o.openedIndexList.indexOf(c)===-1){o.openedIndexList.push(c);const T=n.routes[c];try{n.openViewPage(T,c)}catch(x){console.error(x)}}},h=c=>o.openedIndexList.indexOf(c)!==-1,l=c=>{o.index=c,o.width>0?o.scrollDistance=-o.index*o.width:o.scrollDistance=0;const T=n.routes[c];s("update:activePath",T.path)};let _=null;n.draggable&&(_=ut(m,p,h,l,n.moveRatio,n.momentumReduceRatio));let d=null;i.onMounted(()=>{const c=u(),T=()=>{const x=ft(c);y(n.activePath,n.routes,x.width,x.height,n.swipeDuration,n.direction)};if(window.ResizeObserver&&(d=new window.ResizeObserver(T),d.observe(c)),T(),_){const x=v();_.el=x,_.open()}}),i.onBeforeUnmount(()=>{d&&(d.disconnect(),d=null),_&&_.close()}),i.watch([()=>n.activePath,()=>n.routes,()=>n.width,()=>n.height,()=>n.swipeDuration,()=>n.direction],([c,T,x,$,M,A])=>{const P=x<=0?o.width:x,L=$<=0?o.height:$;y(c,T,P,L,M,A)});const y=(c,T,x,$,M,A="horizontal")=>{const P=c;if(o.index=T.findIndex(L=>L.path===P),A==="horizontal"){const L=x;if(L>0){o.width=x;const gt=L*n.routes.length,vt=-L/3,_t=L*(T.length-1)+L/3;_&&(_.columnWidth=L,_.width=gt,_.min=vt,_.max=_t),o.index!==-1&&(o.openedIndexList.push(o.index),o.scrollDistance=-L*o.index)}}_&&(_.swipeDuration=M)},a=`fox-swiper-navigator-${it()}`,g=i.computed(()=>{const c=[a];return n.customClass&&c.push(n.customClass),c}),f=i.computed(()=>{const c={},T=o.width>0?o.width:n.width;T>0&&(c.width=`${T}px`);const x=o.height>0?o.height:n.height;return x>0&&(c.height=`${x}px`),n.customStyle&&Object.assign(c,n.customStyle),c});let b=null;function u(){return b||(b=document.querySelector(`.${a}`),b)}let r=null;function v(){return r||(r=document.querySelector(`.${a}>.fox-swiper-navigator__inner`),r)}const E=i.computed(()=>o.width>0?`${o.width*n.routes.length}px`:"100%"),w=(c,T)=>{const x=n.routes.findIndex($=>{const M=c.path??c.name??"";return $.path==M});return o.width<=0?{}:{style:{left:`${x*o.width}px`,width:`${o.width}px`}}};return(c,T)=>{const x=i.resolveComponent("fox-router-view");return i.openBlock(),i.createBlock(x,{class:i.normalizeClass(g.value),style:i.normalizeStyle(f.value),"view-class":"fox-swiper-navigator__item",tag:nt,"view-tag-props":w,multi:!0,name:c.routerViewName,transition:c.transition,"scroll-distance":o.scrollDistance,"scroll-duration":c.scrollDuration,direction:c.direction,width:E.value},null,8,["class","style","name","transition","scroll-distance","scroll-duration","direction","width"])}}})},Symbol.toStringTag,{value:"Module"}));let ht="fox-";const pt=[],Y=Object.assign({"/src/components/card-navigator/index.vue":N,"/src/components/default-navigator/index.vue":z,"/src/components/root-navigator/index.vue":tt,"/src/components/swiper-navigator/index.vue":mt}),B=[];for(const t in Y){let e=/src\/components\/(.*)\/index.vue/.exec(t)[1];pt.indexOf(e)===-1&&B.push({name:e,component:Y[t].default})}return{install(t){B.forEach(e=>{t.component(`${ht}${e.name}`,e.component)})}}});
2
+ * @fox-js/navigation v4.0.1-17 Fri May 23 2025 21:30:15 GMT+0800 (中国标准时间)
3
+ */const N=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"index",props:{routerViewName:{},transition:{type:[Function,Boolean],default:!1}},setup(t){return(e,n)=>{const o=i.resolveComponent("fox-router-view");return i.openBlock(),i.createBlock(o,{class:"fox-card-navigator","view-class":"fox-card-navigator__item","view-active-class":"fox-card-navigator__item-active","view-inactive-class":"fox-card-navigator__item-inactive","transition-name":"fox-card-navigator__trans",transition:e.transition,multi:!0,name:e.routerViewName},null,8,["transition","name"])}}})},Symbol.toStringTag,{value:"Module"})),z=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"index",props:{routerViewName:{},transition:{type:[Function,Boolean],default:!0}},setup(t){return(e,n)=>{const o=i.resolveComponent("fox-router-view");return i.openBlock(),i.createBlock(o,{transition:!1,multi:!1,name:e.routerViewName},{default:i.withCtx(({Component:s})=>[i.createVNode(i.Transition,{name:"fox-default-navigator__trans"},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(s)))]),_:2},1024)]),_:1},8,["name"])}}})},Symbol.toStringTag,{value:"Module"})),X=10;function W(t,e){return t>e&&t>X?"horizontal":e>t&&e>X?"vertical":""}function S(){const t={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},e=()=>t.direction==="vertical",n=()=>t.direction==="horizontal",o=()=>{t.deltaX=0,t.deltaY=0,t.offsetX=0,t.offsetY=0,t.direction="",t.startTime=0};return{move:p=>{if(p.touches){const h=p.touches[0];t.deltaX=h.clientX-t.startX,t.deltaY=h.clientY-t.startY,t.moveX=h.clientX,t.moveY=h.clientY}else t.deltaX=p.clientX-t.startX,t.deltaY=p.clientY-t.startY,t.moveX=p.clientX,t.moveY=p.clientY;t.offsetX=Math.abs(t.deltaX),t.offsetY=Math.abs(t.deltaY),t.duration=Date.now()-t.startTime,t.direction||(t.direction=W(t.offsetX,t.offsetY))},start:p=>{if(o(),p.touches){const h=p.touches[0];t.startX=h.clientX,t.startY=h.clientY}else t.startX=p.clientX,t.startY=p.clientY;t.startTime=Date.now()},reset:o,isVertical:e,isHorizontal:n,state:t}}function F(t){return t===window}const k=t=>{const e=i.unref(t);if(F(e)){const n=e.innerWidth,o=e.innerHeight;return{top:0,left:0,right:n,bottom:o,width:n,height:o}}return e&&e.getBoundingClientRect?e.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},j=(t,e,n)=>{e=e??{bubbles:!1,cancelable:!1,detail:void 0};const o=document.createEvent("Events");let s=!0,m=!0;for(let h in e)h==="bubbles"?s=!!e[h]:h==="cancelable"?m=!!e[h]:o[h]=e[h];o.initEvent(t,s,m),(n??document).dispatchEvent(o)},U=15,q=300,H=200;function G(t){t.stopPropagation()}function J(t,e,n=1){return t=Math.abs(t/e)/.003*(t<0?-1:1),t*n}function R(t,e=0,n,o=H){n==="end"?t.style.transition=`transform ${o}ms linear`:t.style.transition="transform 0ms linear",t.style.transform=`translate3d(${e}px, 0, 0)`}function I(t){t.style.transition="",t.style.transform=""}const K=/^matrix\((.+)\)$/;function O(t){let e=0;const n=t,{transform:o}=window.getComputedStyle(n);if(o){const s=K.exec(o);s&&(e=+s[1].split(/,\s*/)[4])}return e}const C=new WeakMap;function Q(t,e,n,o,s,m=600,p=60,h=null){const l={active:!0,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,dragging:!1,transitionEndTrigger:null},_=t.previousSibling,d=S(),y=(u,r,v,E)=>{let w=r+l.startDistance;if(v==="end"){const c=k(u);let T=c.width*e;w<T?w=0:w=c.width,l.transitionEndTrigger=()=>{l.moving=!1,u.classList.remove(s),setTimeout(()=>{_&&I(_),w==0?I(u):j(D.FoxLeaveEnd,{},u),l.moving=!1},p)},_&&R(_,0,"",0),w>0&&typeof o=="function"&&o(),R(u,w,"end",E)}else w<0&&(w=0),R(u,w,"",0)},a=()=>{l.transitionEndTrigger&&(l.transitionEndTrigger(),l.transitionEndTrigger=null)},g=u=>{if(d.start(u),l.draging=h?h(t,d.state.startX,d.state.startY):!0,!l.draging){d.reset();return}l.scrollDistance=0,l.moving&&(l.scrollDistance=O(t)),t.classList.add(s),l.transitionEndTrigger=null,l.moving=!0},f=u=>{!l.draging||(l.moving=!0,d.move(u),d.isVertical())||O(t)===0&&d.state.deltaX<0||(G(u),y(t,d.state.deltaX,"",0))},b=()=>{if(!l.draging||(l.draging=!1,d.isVertical())||O(t)===0&&d.state.deltaX<0)return;const r=d.state.deltaX;if(r===0){t.classList.remove(s),l.moving=!1;return}const v=d.state.duration;if(v<q&&Math.abs(r)>U){const w=J(r,v,n);y(t,w,"end",m)}else y(t,r,"end",m)};t.addEventListener("transitionend",a),t.addEventListener("transitioncancel",a),t.addEventListener("touchstart",g),t.addEventListener("touchmove",f),t.addEventListener("touchend",b),t.addEventListener("touchcancel",b),C.set(t,{state:l,transitionend:a,transitioncancel:a,touchstart:g,touchmove:f,touchend:b,touchcancel:b})}function Z(t){const e=C.get(t);e&&(C.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))}const tt=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"index",props:{dragRemove:{type:Boolean,default:!0},removeViewPage:{},removeMoveRatio:{default:.5},momentumReduceRatio:{default:1},resetDelay:{default:120},swipeDuration:{default:60},draggableArea:{},routerViewName:{},viewTag:{type:[Function,String],default:"div"},transition:{type:[Function,Boolean],default:!0},transitionDuration:{},viewClass:{type:[Function,String],default:"fox-root-navigator__item"}},setup(t){const e=t;let n=null,o=null;function s(a){return(a.params&&a.params.animationType)??"slide"}function m(a){return(a.params&&a.params.dragRemove)??e.dragRemove}const p=(a,g,f,b)=>{if(f.opsType===D.OperationType.Append||g){const u=s(f),r=g?"show":"enter";if(r==="show"&&(u==="pop"||o!=="leave"||(n?s(n):"")==="pop"))return;r==="enter"&&(n=f,o="enter");const v=`fox-root-navigator__${u}-${r}-from`,E=`fox-root-navigator__${u}-${r}-active`;a.classList.add(v),a.classList.add(E)}},h=(a,g,f,b)=>{if(f.opsType===D.OperationType.Append||g){const u=s(f),r=g?"show":"enter";if(r==="show"&&(u==="pop"||o!=="leave"||(n?s(n):"")==="pop"))return;const v=`fox-root-navigator__${u}-${r}-from`,E=`fox-root-navigator__${u}-${r}-to`;a.classList.remove(v),a.classList.add(E)}},l=(a,g,f,b)=>{if(f.opsType===D.OperationType.Append||g){const r=s(f),v=g?"show":"enter";if(v==="enter"&&(n=null,o=null),r!=="pop"){const E=`fox-root-navigator__${r}-${v}-active`,w=`fox-root-navigator__${r}-${v}-to`;a.classList.remove(E),a.classList.remove(w)}}if(m(f)===!0&&!g&&f.opsType===D.OperationType.Append){let r=null;e.draggableArea&&(r=function(v,E,w){const c=E-v.offsetLeft,T=w-v.offsetTop;return!(e.draggableArea?.left&&c<e.draggableArea?.left||e.draggableArea?.right&&c>e.draggableArea?.right||e.draggableArea?.top&&T<e.draggableArea?.top||e.draggableArea?.bottom&&T>e.draggableArea?.bottom)}),Q(a,e.removeMoveRatio,e.momentumReduceRatio,e.removeViewPage,"fox-root-navigator__item-moving",e.swipeDuration,e.resetDelay,r)}},_=(a,g,f,b)=>{if(f.opsType===D.OperationType.Append||g){const u=s(f),r=g?"hide":"leave";if(r==="hide"&&(u==="pop"||o!=="enter"||(n?s(n):"")==="pop"))return;r==="leave"&&(n=f,o="leave");const v=`fox-root-navigator__${u}-${r}-from`,E=`fox-root-navigator__${u}-${r}-active`;a.classList.add(v),a.classList.add(E)}},d=(a,g,f,b)=>{if(f.opsType===D.OperationType.Append||g){const u=s(f),r=g?"hide":"leave";if(r==="hide"&&(u==="pop"||o!=="enter"||(n?s(n):"")==="pop"))return;const v=`fox-root-navigator__${u}-${r}-from`,E=`fox-root-navigator__${u}-${r}-to`;a.classList.remove(v),a.classList.add(E)}},y=(a,g,f,b)=>{if(f.opsType===D.OperationType.Append||g){const r=s(f),v=g?"hide":"leave";if(v==="leave"&&(n=null,o=null),r!=="pop"){const E=`fox-root-navigator__${r}-${v}-active`,w=`fox-root-navigator__${r}-${v}-to`;a.classList.remove(E),a.classList.remove(w)}}m(f)&&!g&&Z(a)};return(a,g)=>{const f=i.resolveComponent("fox-router-view");return i.openBlock(),i.createBlock(f,{class:"fox-root-navigator","view-class":a.viewClass,"before-enter":p,enter:h,"after-enter":l,"before-leave":_,leave:d,"after-leave":y,multi:!0,name:a.routerViewName,"view-tag":a.viewTag,transition:a.transition,"transition-duration":a.transitionDuration},null,8,["view-class","name","view-tag","transition","transition-duration"])}}})},Symbol.toStringTag,{value:"Module"})),et={class:"fox-swiper-navigator"},nt=i.defineComponent({__name:"swiper",props:{width:{},scrollDistance:{},scrollDuration:{},direction:{}},setup(t){const e=t,n=i.computed(()=>{const o={transform:`translate3d(${e.scrollDistance}px, 0, 0)`,width:`${e.width}`};return e.scrollDuration>0&&(o["transition-duration"]=`${e.scrollDuration}ms`),o});return(o,s)=>(i.openBlock(),i.createElementBlock("div",et,[i.createElementVNode("div",{class:"fox-swiper-navigator__inner",style:i.normalizeStyle(n.value)},[i.renderSlot(o.$slots,"default")],4)]))}});let ot=0;function it(){return++ot}const st=15,at=300,rt=200;function ct(t){t.stopPropagation()}function lt(t,e,n=1){return t=Math.abs(t/e)/.003*(t<0?-1:1),t*n}function V(t,e=0,n,o=rt){n==="end"?t.style.transition=`transform ${o}ms linear`:t.style.transition="transform 0ms linear",t.style.transform=`translate3d(${e}px, 0, 0)`}class dt{width=0;columnWidth=0;max=0;min=0;el=null;swipeDuration=360;transitionEndTrigger=null;moving=!1;startDistance=0;scrollDistance=0;getStartDistance;openPage;isPageOpened;pageOpened;moveRatio=.5;momentumReduceRatio=1;transitionend=null;touchstart=null;touchmove=null;touchend=null;touchcancel=null;constructor(e,n,o,s,m,p){this.getStartDistance=e,this.openPage=n,this.isPageOpened=o,this.pageOpened=s,this.moveRatio=m,this.momentumReduceRatio=p}open(){const e=this.el,n=S(),o=(s,m,p,h)=>{let l=m+this.startDistance;const _=this.columnWidth*this.moveRatio;if(p==="end"){if(m==0){this.moving=!1;return}Math.abs(m)>_?m>0?l=this.startDistance+this.columnWidth:l=this.startDistance-this.columnWidth:l=this.startDistance;let d=-l;d<0?d=0:d>this.width-this.columnWidth&&(d=this.width-this.columnWidth);const y=Math.floor(d/this.columnWidth);this.isPageOpened(y)||this.openPage(y),l=-y*this.columnWidth,h&&h>0&&(this.transitionEndTrigger=()=>{this.moving=!1,this.pageOpened(y)}),V(s,l,"end",h),this.scrollDistance=l}else{if(Math.abs(m)>_){let y=0;if(m>0?y=Math.abs(this.startDistance+this.columnWidth):y=Math.abs(this.startDistance-this.columnWidth),y>=0&&y<this.width){const a=Math.floor(y/this.columnWidth);this.isPageOpened(a)||this.openPage(a)}}let d=-l;d<this.min?d=this.min:d>this.max&&(d=this.max),V(s,-d,"",0)}};this.transitionend=()=>{e.style.transition="",this.transitionEndTrigger&&(this.transitionEndTrigger(),this.transitionEndTrigger=null)},this.touchstart=s=>{this.moving||(n.start(s),this.startDistance=this.getStartDistance(),this.transitionEndTrigger=null,this.moving=!0)},this.touchmove=s=>{n.move(s),!n.isVertical()&&(ct(s),o(e,n.state.deltaX,"",0))},this.touchend=()=>{if(n.isVertical())return;const s=n.state.deltaX;if(s==0)return;const m=n.state.duration;if(m<at&&Math.abs(s)>st){const h=lt(s,m,this.momentumReduceRatio);o(e,h,"end",this.swipeDuration)}else o(e,s,"end",this.swipeDuration)},e.addEventListener("transitionend",this.transitionend),e.addEventListener("touchstart",this.touchstart),e.addEventListener("touchmove",this.touchmove),e.addEventListener("touchend",this.touchend),e.addEventListener("touchcancel",this.touchend)}close(){const e=this.el;this.transitionend&&e.addEventListener("transitionend",this.transitionend),this.touchstart&&e.addEventListener("touchstart",this.touchstart),this.touchmove&&e.addEventListener("touchmove",this.touchmove),this.touchend&&e.addEventListener("touchend",this.touchend),this.touchcancel&&e.addEventListener("touchcancel",this.touchcancel),this.el=null}}function ut(t,e,n,o,s,m){return new dt(t,e,n,o,s,m)}function ft(t){const e=i.unref(t),n=window.getComputedStyle(e,null),o=parseFloat(n.getPropertyValue("padding-left")),s=parseFloat(n.getPropertyValue("padding-right")),m=parseFloat(n.getPropertyValue("padding-top")),p=parseFloat(n.getPropertyValue("padding-bottom"));return{width:e.clientWidth-o-s,height:e.clientHeight-m-p}}const mt=Object.freeze(Object.defineProperty({__proto__:null,default:i.defineComponent({__name:"index",props:{activePath:{},routes:{},height:{default:-1},width:{default:-1},draggable:{type:Boolean,default:!0},openViewPage:{},routerViewName:{},moveRatio:{default:.5},momentumReduceRatio:{default:1},direction:{default:"horizontal"},transition:{type:[Function,Boolean],default:!0},swipeDuration:{default:360},scrollDuration:{},customClass:{},customStyle:{}},emits:["update:activePath"],setup(t,{emit:e}){const n=t,o=i.reactive({scrollDistance:0,index:-1,openedIndexList:[],width:n.width,height:n.height}),s=e,m=()=>o.scrollDistance,p=c=>{if(o.openedIndexList.indexOf(c)===-1){o.openedIndexList.push(c);const T=n.routes[c];try{n.openViewPage(T,c)}catch(x){console.error(x)}}},h=c=>o.openedIndexList.indexOf(c)!==-1,l=c=>{o.index=c,o.width>0?o.scrollDistance=-o.index*o.width:o.scrollDistance=0;const T=n.routes[c];s("update:activePath",T.path)};let _=null;n.draggable&&(_=ut(m,p,h,l,n.moveRatio,n.momentumReduceRatio));let d=null;i.onMounted(()=>{const c=u(),T=()=>{const x=ft(c);y(n.activePath,n.routes,x.width,x.height,n.swipeDuration,n.direction)};if(window.ResizeObserver&&(d=new window.ResizeObserver(T),d.observe(c)),T(),_){const x=v();_.el=x,_.open()}}),i.onBeforeUnmount(()=>{d&&(d.disconnect(),d=null),_&&_.close()}),i.watch([()=>n.activePath,()=>n.routes,()=>n.width,()=>n.height,()=>n.swipeDuration,()=>n.direction],([c,T,x,$,M,A])=>{const P=x<=0?o.width:x,L=$<=0?o.height:$;y(c,T,P,L,M,A)});const y=(c,T,x,$,M,A="horizontal")=>{const P=c;if(o.index=T.findIndex(L=>L.path===P),A==="horizontal"){const L=x;if(L>0){o.width=x;const gt=L*n.routes.length,vt=-L/3,_t=L*(T.length-1)+L/3;_&&(_.columnWidth=L,_.width=gt,_.min=vt,_.max=_t),o.index!==-1&&(o.openedIndexList.push(o.index),o.scrollDistance=-L*o.index)}}_&&(_.swipeDuration=M)},a=`fox-swiper-navigator-${it()}`,g=i.computed(()=>{const c=[a];return n.customClass&&c.push(n.customClass),c}),f=i.computed(()=>{const c={},T=o.width>0?o.width:n.width;T>0&&(c.width=`${T}px`);const x=o.height>0?o.height:n.height;return x>0&&(c.height=`${x}px`),n.customStyle&&Object.assign(c,n.customStyle),c});let b=null;function u(){return b||(b=document.querySelector(`.${a}`),b)}let r=null;function v(){return r||(r=document.querySelector(`.${a}>.fox-swiper-navigator__inner`),r)}const E=i.computed(()=>o.width>0?`${o.width*n.routes.length}px`:"100%"),w=(c,T)=>{const x=n.routes.findIndex($=>{const M=c.path??c.name??"";return $.path==M});return o.width<=0?{}:{style:{left:`${x*o.width}px`,width:`${o.width}px`}}};return(c,T)=>{const x=i.resolveComponent("fox-router-view");return i.openBlock(),i.createBlock(x,{class:i.normalizeClass(g.value),style:i.normalizeStyle(f.value),"view-class":"fox-swiper-navigator__item",tag:nt,"view-tag-props":w,multi:!0,name:c.routerViewName,transition:c.transition,"scroll-distance":o.scrollDistance,"scroll-duration":c.scrollDuration,direction:c.direction,width:E.value},null,8,["class","style","name","transition","scroll-distance","scroll-duration","direction","width"])}}})},Symbol.toStringTag,{value:"Module"}));let ht="fox-";const pt=[],Y=Object.assign({"/src/components/card-navigator/index.vue":N,"/src/components/default-navigator/index.vue":z,"/src/components/root-navigator/index.vue":tt,"/src/components/swiper-navigator/index.vue":mt}),B=[];for(const t in Y){let e=/src\/components\/(.*)\/index.vue/.exec(t)[1];pt.indexOf(e)===-1&&B.push({name:e,component:Y[t].default})}return{install(t){B.forEach(e=>{t.component(`${ht}${e.name}`,e.component)})}}});
package/package.json CHANGED
@@ -1,34 +1,34 @@
1
- {
2
- "name": "@fox-js/navigation",
3
- "type": "module",
4
- "version": "4.0.1-17",
5
- "description": "fox navigation",
6
- "author": "jiangcheng",
7
- "keywords": [
8
- "fox",
9
- "navigation"
10
- ],
11
- "main": "./dist/index.umd.js",
12
- "module": "./dist/index.esm.js",
13
- "types": "./dist/index.d.ts",
14
- "style": "./dist/style.css",
15
- "exports": {
16
- ".": {
17
- "types": "./dist/index.d.ts",
18
- "require": "./dist/index.umd.js",
19
- "import": "./dist/index.esm.js"
20
- },
21
- "./style.css": "./dist/style.css",
22
- "./*": "./*"
23
- },
24
- "license": "",
25
- "publishConfig": {
26
- "access": "public"
27
- },
28
- "scripts": {
29
- "publish:next": "npm version prerelease && npm publish --tag next",
30
- "build:dev": "vue-tsc --noEmit && vite build --config scripts/vite.config.ts --mode development",
31
- "build:prod": "vue-tsc --noEmit && vite build --config scripts/vite.config.ts --mode production"
32
- },
33
- "dependencies": {}
34
- }
1
+ {
2
+ "name": "@fox-js/navigation",
3
+ "type": "module",
4
+ "version": "4.0.1-18",
5
+ "description": "fox navigation",
6
+ "author": "jiangcheng",
7
+ "keywords": [
8
+ "fox",
9
+ "navigation"
10
+ ],
11
+ "main": "./dist/index.umd.js",
12
+ "module": "./dist/index.esm.js",
13
+ "types": "./dist/index.d.ts",
14
+ "style": "./dist/style.css",
15
+ "exports": {
16
+ ".": {
17
+ "types": "./dist/index.d.ts",
18
+ "require": "./dist/index.umd.js",
19
+ "import": "./dist/index.esm.js"
20
+ },
21
+ "./style.css": "./dist/style.css",
22
+ "./*": "./*"
23
+ },
24
+ "license": "",
25
+ "publishConfig": {
26
+ "access": "public"
27
+ },
28
+ "scripts": {
29
+ "publish:next": "npm version prerelease && npm publish --tag next",
30
+ "build:dev": "vue-tsc --noEmit && vite build --config scripts/vite.config.ts --mode development",
31
+ "build:prod": "vue-tsc --noEmit && vite build --config scripts/vite.config.ts --mode production"
32
+ },
33
+ "dependencies": {}
34
+ }
@@ -1 +1 @@
1
- {"program":{"fileNames":["../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2019.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2020.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2021.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2022.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2023.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.esnext.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.dom.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.dom.iterable.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.dom.asynciterable.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.scripthost.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2017.date.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2019.array.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2019.object.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2019.string.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2020.date.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2020.string.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2020.number.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2021.string.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2022.array.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2022.error.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2022.object.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2022.string.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2023.array.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2023.collection.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2023.intl.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.esnext.array.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.esnext.collection.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.esnext.disposable.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.esnext.string.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.esnext.promise.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.esnext.decorators.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.esnext.object.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.esnext.regexp.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.decorators.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.esnext.full.d.ts","../../node_modules/.pnpm/vite@5.4.4_@types+node@20.5.0_less@4.1.3_sass@1.65.1_stylus@0.55.0_sugarss@1.0.1_terser@5.29.2/node_modules/vite/types/hmrpayload.d.ts","../../node_modules/.pnpm/vite@5.4.4_@types+node@20.5.0_less@4.1.3_sass@1.65.1_stylus@0.55.0_sugarss@1.0.1_terser@5.29.2/node_modules/vite/types/customevent.d.ts","../../node_modules/.pnpm/vite@5.4.4_@types+node@20.5.0_less@4.1.3_sass@1.65.1_stylus@0.55.0_sugarss@1.0.1_terser@5.29.2/node_modules/vite/types/hot.d.ts","../../node_modules/.pnpm/vite@5.4.4_@types+node@20.5.0_less@4.1.3_sass@1.65.1_stylus@0.55.0_sugarss@1.0.1_terser@5.29.2/node_modules/vite/types/importglob.d.ts","../../node_modules/.pnpm/vite@5.4.4_@types+node@20.5.0_less@4.1.3_sass@1.65.1_stylus@0.55.0_sugarss@1.0.1_terser@5.29.2/node_modules/vite/types/importmeta.d.ts","../../node_modules/.pnpm/vite@5.4.4_@types+node@20.5.0_less@4.1.3_sass@1.65.1_stylus@0.55.0_sugarss@1.0.1_terser@5.29.2/node_modules/vite/client.d.ts","../../node_modules/.pnpm/@vue+shared@3.4.35/node_modules/@vue/shared/dist/shared.d.ts","../../node_modules/.pnpm/@babel+types@7.22.10/node_modules/@babel/types/lib/index.d.ts","../../node_modules/.pnpm/@babel+types@7.24.7/node_modules/@babel/types/lib/index.d.ts","../../node_modules/.pnpm/@babel+parser@7.24.7/node_modules/@babel/parser/typings/babel-parser.d.ts","../../node_modules/.pnpm/@vue+compiler-core@3.4.35/node_modules/@vue/compiler-core/dist/compiler-core.d.ts","../../node_modules/.pnpm/@vue+compiler-dom@3.4.35/node_modules/@vue/compiler-dom/dist/compiler-dom.d.ts","../../node_modules/.pnpm/@vue+reactivity@3.4.35/node_modules/@vue/reactivity/dist/reactivity.d.ts","../../node_modules/.pnpm/@vue+runtime-core@3.4.35/node_modules/@vue/runtime-core/dist/runtime-core.d.ts","../../node_modules/.pnpm/csstype@3.1.3/node_modules/csstype/index.d.ts","../../node_modules/.pnpm/@vue+runtime-dom@3.4.35/node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts","../../node_modules/.pnpm/vue@3.4.35_typescript@5.5.2/node_modules/vue/dist/vue.d.mts","./src/env.d.ts","./src/index.ts","../fox/libs/index.esm.d.ts","../../node_modules/.pnpm/vue@3.4.35_typescript@5.5.2/node_modules/vue/jsx-runtime/index.d.ts","./src/components/card-navigator/index.vue","./src/components/default-navigator/types.ts","./src/components/default-navigator/index.vue","./src/utils/use-touch/index.ts","./src/utils/use-rect/index.ts","./src/utils/use-event/index.ts","./src/components/root-navigator/drag.ts","./src/components/root-navigator/types.ts","./src/components/root-navigator/index.vue","./src/components/swiper-navigator/drag.ts","./src/components/swiper-navigator/swiper.vue","./src/components/swiper-navigator/unique.ts","./src/utils/use-size/index.ts","./src/components/swiper-navigator/index.vue"],"fileInfos":[{"version":"44e584d4f6444f58791784f1d530875970993129442a847597db702a073ca68c","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","5514e54f17d6d74ecefedc73c504eadffdeda79c7ea205cf9febead32d45c4bc","27bdc30a0e32783366a5abeda841bc22757c1797de8681bbe81fbc735eeb1c10","17edc026abf73c5c2dd508652d63f68ec4efd9d4856e3469890d27598209feb5",{"version":"4af6b0c727b7a2896463d512fafd23634229adf69ac7c00e2ae15a09cb084fad","affectsGlobalScope":true},{"version":"9c00a480825408b6a24c63c1b71362232927247595d7c97659bc24dc68ae0757","affectsGlobalScope":true},{"version":"0c9e4447ddca10e8097a736ce41bb37ac3389ede46e419ee78c1161a14e9e8ba","affectsGlobalScope":true},{"version":"80e18897e5884b6723488d4f5652167e7bb5024f946743134ecc4aa4ee731f89","affectsGlobalScope":true},{"version":"cd034f499c6cdca722b60c04b5b1b78e058487a7085a8e0d6fb50809947ee573","affectsGlobalScope":true},{"version":"6920e1448680767498a0b77c6a00a8e77d14d62c3da8967b171f1ddffa3c18e4","affectsGlobalScope":true},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"bc47685641087c015972a3f072480889f0d6c65515f12bd85222f49a98952ed7","affectsGlobalScope":true},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true},{"version":"93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","affectsGlobalScope":true},{"version":"6fc23bb8c3965964be8c597310a2878b53a0306edb71d4b5a4dfe760186bcc01","affectsGlobalScope":true},{"version":"ea011c76963fb15ef1cdd7ce6a6808b46322c527de2077b6cfdf23ae6f5f9ec7","affectsGlobalScope":true},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true},{"version":"bb42a7797d996412ecdc5b2787720de477103a0b2e53058569069a0e2bae6c7e","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"b541a838a13f9234aba650a825393ffc2292dc0fc87681a5d81ef0c96d281e7a","affectsGlobalScope":true},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true},{"version":"ae37d6ccd1560b0203ab88d46987393adaaa78c919e51acf32fb82c86502e98c","affectsGlobalScope":true},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true},{"version":"5e07ed3809d48205d5b985642a59f2eba47c402374a7cf8006b686f79efadcbd","affectsGlobalScope":true},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true},{"version":"479553e3779be7d4f68e9f40cdb82d038e5ef7592010100410723ceced22a0f7","affectsGlobalScope":true},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true},{"version":"d3d7b04b45033f57351c8434f60b6be1ea71a2dfec2d0a0c3c83badbb0e3e693","affectsGlobalScope":true},{"version":"956d27abdea9652e8368ce029bb1e0b9174e9678a273529f426df4b3d90abd60","affectsGlobalScope":true},{"version":"4fa6ed14e98aa80b91f61b9805c653ee82af3502dc21c9da5268d3857772ca05","affectsGlobalScope":true},{"version":"e6633e05da3ff36e6da2ec170d0d03ccf33de50ca4dc6f5aeecb572cedd162fb","affectsGlobalScope":true},{"version":"d8670852241d4c6e03f2b89d67497a4bbefe29ecaa5a444e2c11a9b05e6fccc6","affectsGlobalScope":true},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true},{"version":"caccc56c72713969e1cfe5c3d44e5bab151544d9d2b373d7dbe5a1e4166652be","affectsGlobalScope":true},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true},{"version":"08a58483392df5fcc1db57d782e87734f77ae9eab42516028acbfe46f29a3ef7","affectsGlobalScope":true},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true},{"version":"8e3c06ea092138bf9fa5e874a1fdbc9d54805d074bee1de31b99a11e2fec239d","affectsGlobalScope":true},{"version":"0b11f3ca66aa33124202c80b70cd203219c3d4460cfc165e0707aa9ec710fc53","affectsGlobalScope":true},{"version":"6a3f5a0129cc80cf439ab71164334d649b47059a4f5afca90282362407d0c87f","affectsGlobalScope":true},{"version":"811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","affectsGlobalScope":true},{"version":"15b98a533864d324e5f57cd3cfc0579b231df58c1c0f6063ea0fcb13c3c74ff9","affectsGlobalScope":true},{"version":"0a6282c8827e4b9a95f4bf4f5c205673ada31b982f50572d27103df8ceb8013c","affectsGlobalScope":true},{"version":"ac77cb3e8c6d3565793eb90a8373ee8033146315a3dbead3bde8db5eaf5e5ec6","affectsGlobalScope":true},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true},{"version":"2fef54945a13095fdb9b84f705f2b5994597640c46afeb2ce78352fab4cb3279","affectsGlobalScope":true},{"version":"56e4ed5aab5f5920980066a9409bfaf53e6d21d3f8d020c17e4de584d29600ad","affectsGlobalScope":true},{"version":"33358442698bb565130f52ba79bfd3d4d484ac85fe33f3cb1759c54d18201393","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},"bde31fd423cd93b0eff97197a3f66df7c93e8c0c335cbeb113b7ff1ac35c23f4","282f98006ed7fa9bb2cd9bdbe2524595cfc4bcd58a0bb3232e4519f2138df811","6222e987b58abfe92597e1273ad7233626285bc2d78409d4a7b113d81a83496b","cbe726263ae9a7bf32352380f7e8ab66ee25b3457137e316929269c19e18a2be","7f698624bbbb060ece7c0e51b7236520ebada74b747d7523c7df376453ed6fea",{"version":"4025a454b1ca489b179ee8c684bdd70ff8c1967e382076ade53e7e4653e1daec","affectsGlobalScope":true},{"version":"984c09345059b76fc4221c2c54e53511f4c27a0794dfd6e9f81dc60f0b564e05","affectsGlobalScope":true},"6dcb89623cc070c3b2a29218f99a3501041b3ac3fc4c80ee7083b99ba320a694","1905eab6570faf3010802b4c00196eda6285b028f0b41bdfa7f7a29427502b62","55584873eae27c5607725f0a9b2123cdea9100fd47cd4bfd582b567a7c363877","5f02abbb1b17e3d1e68c5eea14adf4705696e6255e2982b010c0dc2a5417b606","6ae8ca5acefa9ca063c4f293fb53fc2cba63e4a464131ef15f2ae1e2254cc210","cf76e2f59b26aea7c923015783083b4820d6c0d85cda2fec3a0f232aabfc56c3","ceed99ce18e780db176ddec5cfc2d67727cbdfcc8126e9aec66699680691d725",{"version":"6cf42e5f3f2066319457fc41743e3b5fd668fc7b8cabbdee94438112d1e0d7a6","affectsGlobalScope":true},"8a8eb4ebffd85e589a1cc7c178e291626c359543403d58c9cd22b81fab5b1fb9","151cfb303a9c1805f414d8d448183edaa616474da7523023d4048ed4a3d5f91d","c0191592be8eb7906f99ac4b8798d80a585b94001ea1a5f50d6ce5b0d13a5c62","e2e79582afba310e739de56d91b5d5622b6a72a5e486a776c109ffbe1b8540f5",{"version":"cbc20a45313186b54a8594e3ad42b325b352cd68688939387245a1de63353c05","signature":"e6097edbb5226653f7b11c2d66d822787b3dd14a150721270cfb1a896bf5282a"},"fe56e9bb7d357afe22cad2b088c8f6b78086b6f47b6f3e9aafa61a417f62b896","9c077ba346f2891d1725d6cbf1ff8bc7ca075ccff10d1ea38eda571245df0eeb",{"version":"48c091157aaf999d53754860781fdb4f2e4665aec005487d5cf7a63ab15e7a7e","signature":"297abb3f27464fb88954b62da12f73449b8f3cf00170ec02577b3eae001333e2","affectsGlobalScope":true},{"version":"5684753694cab4d72cd00129709ed9d3881b105c39df8b60e0e9206c343bfd1c","signature":"0c4b6944c567fafcecbbb2b30e6361dd915c786c0fc24abe2fc3e64c1a809403"},{"version":"aa7575739bac1400780028e4bc62fe879d68d0eaf277980237b7a3387bd20c0f","signature":"4bb451a4406d71c0bbf5b3a71e3cf53932280644c69f09356e856dbd0ce2886b"},{"version":"6815bbd0d7488a5b7804575e7a7e50e0881ccd791626560742016da4095c9130","signature":"33a33488b6bd8359f4a2ea29fb4a58eb506cd218db38f975492a90468574a3ea"},{"version":"78c1b60ad63f8332fb965d262cbde5897c73a5c9f48d7645c17ef6df1e5b396a","signature":"e840c68b70813de1ce4a5f8ecf87463e24fc898e6b5ee64f4cb12d2cea16e1a1"},{"version":"ad68c8415377734c7c222b1b1ea27371e4c6cc9e93c46ab6767f84348ce3b7fd","signature":"142ca91da067540271e2b2f0f28cfa79d962927331945897ca70df8c1aa1f9be"},{"version":"f55eb79ea0eae578ebd880ce409e6d621871dff1ce64827b49c6e417a44e5b45","signature":"36d3b8a80d2fecdf5969daf0b7de45fb5031c51f5b89439942fc711b9a04974b"},{"version":"15338500a4939aa9db644a0137731a3435703bd2b90b843a9609ef6570323cb9","signature":"41284a6642115ed6fbfcec92af075425c98dffd9cda44782131103376982e394"},{"version":"44dae8bfdb1c7bc263de13bd4bfa7ab6e979ffd7f42f2b76c0c7fa2311c75fab","signature":"4833498384c35e91907227347691225fe703099a531038d013052d5305baa5ae"},{"version":"2c4f39e6d1654629a69db8989a8057a1da51dd6bbf788d4e840ea72dc46bdb3c","signature":"1e68fbe276bccf285a0052565ba6e3e8a25c0369d70284813bc07ad83cee7f0d"},{"version":"f6bcf7953ead863e4369dd0559de84b07592cff3cc21f11f36d49f50735ecd1c","signature":"eaf7fcd3c6180b976b008709e1d86a45d01e4402117192aaf0b36821a533fe0b"},{"version":"dd8cc110f510d5bd908dcdc0e633f2b11c8779e60a26f84bc2e5664cd0ab1272","signature":"ec8b3f6e6d88957e222b3759090ea6e960975cb0c8ed6a9342d00ee7e3a43eb3"},{"version":"e0fbf8299431ed4a4d434885951b19656bf804e4a52a6c46dbe3d37065067992","signature":"2937cccac86b2e61d7cbc0aa0e580a164df07e63374798c906b6d5edfdddbee2"},{"version":"20cd72ec0ff5f26ab7dbd29884d11965fa14b1a75569cd54767409d1e1203945","signature":"3a689d29563432ccefa1852584ec722fc9a9a6766f59e6b5874c90ddc1be9bfa"}],"root":[95,96,[99,112]],"options":{"allowImportingTsExtensions":true,"composite":true,"esModuleInterop":true,"jsx":1,"module":99,"skipLibCheck":true,"sourceMap":true,"strict":false,"target":99,"useDefineForClassFields":true},"fileIdsList":[[86],[84,85,87],[88],[84],[84,90,91,93],[90,91,92],[82],[78],[79],[80,81],[89,93],[93],[94,97,98,99],[94,99,100],[97,102,103,104],[94,97,99,105,106],[102],[94,97,99,108,109,110,111],[94,99],[83,94,99]],"referencedMap":[[87,1],[88,2],[89,3],[90,4],[91,5],[93,6],[83,7],[79,8],[80,9],[82,10],[94,11],[98,12],[99,13],[101,14],[105,15],[107,16],[108,17],[112,18],[109,19],[95,20],[96,19],[103,19],[111,19],[97,19]],"affectedFilesPendingEmit":[99,101,100,105,107,106,108,112,109,110,96,104,103,111,102],"emitSignatures":[96,99,100,101,102,103,104,105,106,107,108,109,110,111,112]},"version":"5.5.2"}
1
+ {"fileNames":["../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2021.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2022.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2024.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.esnext.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.dom.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.dom.iterable.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.dom.asynciterable.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.scripthost.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2021.string.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2022.array.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2022.error.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2022.object.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2022.string.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.collection.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.intl.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2024.collection.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2024.object.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2024.promise.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2024.regexp.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2024.string.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.esnext.array.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.esnext.collection.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.esnext.disposable.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.esnext.decorators.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.esnext.iterator.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.decorators.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.esnext.full.d.ts","../../node_modules/.pnpm/vite@6.3.0_@types+node@22.1_77f7d2c55b39e5dca11aff99371375b9/node_modules/vite/types/hmrpayload.d.ts","../../node_modules/.pnpm/vite@6.3.0_@types+node@22.1_77f7d2c55b39e5dca11aff99371375b9/node_modules/vite/types/customevent.d.ts","../../node_modules/.pnpm/vite@6.3.0_@types+node@22.1_77f7d2c55b39e5dca11aff99371375b9/node_modules/vite/types/hot.d.ts","../../node_modules/.pnpm/vite@6.3.0_@types+node@22.1_77f7d2c55b39e5dca11aff99371375b9/node_modules/vite/types/importglob.d.ts","../../node_modules/.pnpm/vite@6.3.0_@types+node@22.1_77f7d2c55b39e5dca11aff99371375b9/node_modules/vite/types/importmeta.d.ts","../../node_modules/.pnpm/vite@6.3.0_@types+node@22.1_77f7d2c55b39e5dca11aff99371375b9/node_modules/vite/client.d.ts","../../node_modules/.pnpm/@vue+shared@3.5.13/node_modules/@vue/shared/dist/shared.d.ts","../../node_modules/.pnpm/@babel+types@7.22.10/node_modules/@babel/types/lib/index.d.ts","../../node_modules/.pnpm/@babel+types@7.26.5/node_modules/@babel/types/lib/index.d.ts","../../node_modules/.pnpm/@babel+parser@7.26.5/node_modules/@babel/parser/typings/babel-parser.d.ts","../../node_modules/.pnpm/@vue+compiler-core@3.5.13/node_modules/@vue/compiler-core/dist/compiler-core.d.ts","../../node_modules/.pnpm/@vue+compiler-dom@3.5.13/node_modules/@vue/compiler-dom/dist/compiler-dom.d.ts","../../node_modules/.pnpm/@vue+reactivity@3.5.13/node_modules/@vue/reactivity/dist/reactivity.d.ts","../../node_modules/.pnpm/@vue+runtime-core@3.5.13/node_modules/@vue/runtime-core/dist/runtime-core.d.ts","../../node_modules/.pnpm/csstype@3.1.3/node_modules/csstype/index.d.ts","../../node_modules/.pnpm/@vue+runtime-dom@3.5.13/node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts","../../node_modules/.pnpm/vue@3.5.13_typescript@5.7.3/node_modules/vue/dist/vue.d.mts","./src/env.d.ts","./src/index.ts","../../node_modules/.pnpm/vue@3.5.13_typescript@5.7.3/node_modules/vue/jsx-runtime/index.d.ts","../../node_modules/.vue-global-types/vue_3.5_false.d.ts","../fox/libs/index.esm.d.ts","./src/components/card-navigator/index.vue","./src/components/default-navigator/types.ts","./src/components/default-navigator/index.vue","./src/utils/use-touch/index.ts","./src/utils/use-rect/index.ts","./src/utils/use-event/index.ts","./src/components/root-navigator/drag.ts","./src/components/root-navigator/types.ts","./src/components/root-navigator/index.vue","./src/components/swiper-navigator/drag.ts","./src/components/swiper-navigator/swiper.vue","./src/components/swiper-navigator/unique.ts","./src/utils/use-size/index.ts","./src/components/swiper-navigator/index.vue"],"fileIdsList":[[91],[89,90,92],[93],[89],[89,95,96,98],[95,96,97,98],[87],[83],[84],[85,86],[94,98],[98],[99,102],[99,103,104],[99,103,106],[104,108,109,110],[99,103,104,111,112],[108],[99,103,104,114,115,116,117],[99,103],[88,99],[99]],"fileInfos":[{"version":"e41c290ef7dd7dab3493e6cbe5909e0148edf4a8dad0271be08edec368a0f7b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"27bdc30a0e32783366a5abeda841bc22757c1797de8681bbe81fbc735eeb1c10","impliedFormat":1},{"version":"8fd575e12870e9944c7e1d62e1f5a73fcf23dd8d3a321f2a2c74c20d022283fe","impliedFormat":1},{"version":"e12a46ce14b817d4c9e6b2b478956452330bf00c9801b79de46f7a1815b5bd40","impliedFormat":1},{"version":"4fd3f3422b2d2a3dfd5cdd0f387b3a8ec45f006c6ea896a4cb41264c2100bb2c","affectsGlobalScope":true,"impliedFormat":1},{"version":"69e65d976bf166ce4a9e6f6c18f94d2424bf116e90837ace179610dbccad9b42","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7a3c8b952931daebdfc7a2897c53c0a1c73624593fa070e46bd537e64dcd20a","affectsGlobalScope":true,"impliedFormat":1},{"version":"80e18897e5884b6723488d4f5652167e7bb5024f946743134ecc4aa4ee731f89","affectsGlobalScope":true,"impliedFormat":1},{"version":"cd034f499c6cdca722b60c04b5b1b78e058487a7085a8e0d6fb50809947ee573","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"62bb211266ee48b2d0edf0d8d1b191f0c24fc379a82bd4c1692a082c540bc6b1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"936e80ad36a2ee83fc3caf008e7c4c5afe45b3cf3d5c24408f039c1d47bdc1df","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"fef8cfad2e2dc5f5b3d97a6f4f2e92848eb1b88e897bb7318cef0e2820bceaab","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"f1e2a172204962276504466a6393426d2ca9c54894b1ad0a6c9dad867a65f876","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"b5ce7a470bc3628408429040c4e3a53a27755022a32fd05e2cb694e7015386c7","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"bab26767638ab3557de12c900f0b91f710c7dc40ee9793d5a27d32c04f0bf646","affectsGlobalScope":true,"impliedFormat":1},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e3c06ea092138bf9fa5e874a1fdbc9d54805d074bee1de31b99a11e2fec239d","affectsGlobalScope":true,"impliedFormat":1},{"version":"87dc0f382502f5bbce5129bdc0aea21e19a3abbc19259e0b43ae038a9fc4e326","affectsGlobalScope":true,"impliedFormat":1},{"version":"b1cb28af0c891c8c96b2d6b7be76bd394fddcfdb4709a20ba05a7c1605eea0f9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2fef54945a13095fdb9b84f705f2b5994597640c46afeb2ce78352fab4cb3279","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac77cb3e8c6d3565793eb90a8373ee8033146315a3dbead3bde8db5eaf5e5ec6","affectsGlobalScope":true,"impliedFormat":1},{"version":"56e4ed5aab5f5920980066a9409bfaf53e6d21d3f8d020c17e4de584d29600ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ece9f17b3866cc077099c73f4983bddbcb1dc7ddb943227f1ec070f529dedd1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a6282c8827e4b9a95f4bf4f5c205673ada31b982f50572d27103df8ceb8013c","affectsGlobalScope":true,"impliedFormat":1},{"version":"1c9319a09485199c1f7b0498f2988d6d2249793ef67edda49d1e584746be9032","affectsGlobalScope":true,"impliedFormat":1},{"version":"e3a2a0cee0f03ffdde24d89660eba2685bfbdeae955a6c67e8c4c9fd28928eeb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","affectsGlobalScope":true,"impliedFormat":1},{"version":"51ad4c928303041605b4d7ae32e0c1ee387d43a24cd6f1ebf4a2699e1076d4fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true,"impliedFormat":1},{"version":"61d6a2092f48af66dbfb220e31eea8b10bc02b6932d6e529005fd2d7b3281290","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"bde31fd423cd93b0eff97197a3f66df7c93e8c0c335cbeb113b7ff1ac35c23f4","impliedFormat":1},{"version":"a7ca8df4f2931bef2aa4118078584d84a0b16539598eaadf7dce9104dfaa381c","impliedFormat":1},{"version":"11443a1dcfaaa404c68d53368b5b818712b95dd19f188cab1669c39bee8b84b3","impliedFormat":1},{"version":"36977c14a7f7bfc8c0426ae4343875689949fb699f3f84ecbe5b300ebf9a2c55","impliedFormat":1},{"version":"7f698624bbbb060ece7c0e51b7236520ebada74b747d7523c7df376453ed6fea","impliedFormat":1},{"version":"19efad8495a7a6b064483fccd1d2b427403dd84e67819f86d1c6ee3d7abf749c","affectsGlobalScope":true,"impliedFormat":1},{"version":"1eef826bc4a19de22155487984e345a34c9cd511dd1170edc7a447cb8231dd4a","affectsGlobalScope":true,"impliedFormat":99},{"version":"a7e9e5bb507146e1c06aae94b548c9227d41f2c773da5fbb152388558710bae2","impliedFormat":1},{"version":"1905eab6570faf3010802b4c00196eda6285b028f0b41bdfa7f7a29427502b62","impliedFormat":1},{"version":"24c7a9a510502af1de311e9a5a7253b60a560ae6306631198c5fe8469df1369e","impliedFormat":1},{"version":"3a9313fe5ace558b8b18e85f931da10b259e738775f411c061e5f15787b138eb","impliedFormat":1},{"version":"ed5b366679b223fe16e583b32d4a724dcea8a70f378ecc9268d472c1f95b3580","impliedFormat":1},{"version":"cf76e2f59b26aea7c923015783083b4820d6c0d85cda2fec3a0f232aabfc56c3","impliedFormat":1},{"version":"ae4b6f723332eb8a17ae180b46c94779969a8f4851607601137c2cc511799d1c","impliedFormat":1},{"version":"6d19d47905686f2c495288607a50d5167db44eb23bb71fbeffeba48aead5531b","affectsGlobalScope":true,"impliedFormat":1},{"version":"8a8eb4ebffd85e589a1cc7c178e291626c359543403d58c9cd22b81fab5b1fb9","impliedFormat":1},{"version":"a9b8b44f5fc33c3590dbd01e3523cc150e53fb4785e5523707c82fd745000cdb","impliedFormat":1},{"version":"c0191592be8eb7906f99ac4b8798d80a585b94001ea1a5f50d6ce5b0d13a5c62","impliedFormat":99},"7a76d6c275da973d6a492f53eb4310fc8cf8af4f5c0726000b29e27fd9d111aa","a8731719baa1f25b0bc11e0fc9ce59eebcc1a955469d5fb01060f3d9acd5e2c0",{"version":"9c077ba346f2891d1725d6cbf1ff8bc7ca075ccff10d1ea38eda571245df0eeb","impliedFormat":1},{"version":"f12cf57799d1450d1caa99b237b105ece8785ef59baa6c2574f29239a024709f","affectsGlobalScope":true,"impliedFormat":99},"c1034c7b14129365a333ae6afaf7313b893d8473b2d38ca03a0fe87a62b65e00","f2a3878afbbf724ace964cb9762f4d9a93c5bdce54a4d40c91d27e8384dc43a0","45124245b9f33a653f000434f11e90834d99b5defd8a150875d005e5452af668","322a2dc1bb209a3668fc6a93b5744ed159059474e503bdf83b79cfc611b0ea61","23259eb19cbc779bf4f6c7ced8dfa90e77f5d54af623a79bbbfc4790555a88d3","0955acfc20d47d00f906ee770c9b95bbb896d4093e751be6af4d5870e4e876f5","d78dec6a3262f7159c3975e13d279e2cd0c42bf795948a7f358a4101e2d29964","6208cc6b3bbe4cd927e7b8365553b169ca99bae873a0cbc3b0a2536acb1537e4","01eadd4f18bc690b0555190aa8669922b48bd2833b154f01afcc48136cc23eec",{"version":"7988dceb68aa7b13881c82f53040c06da25f5c52154876b8c2d1999759d2153c","signature":"fa144b91784c67f4b02cb8aa57f6dab733e1c8d57d7b636f07f5d6b30f5aa5b6"},"58e7beb899bef2ac1b585bd1514a2b06e83a89a18119d0affa7aa0f0b76e9c3d","cd00d9c4b6e13e0bc25e763ffed25e505d7ce298f5eb2c6214da53d0b5bc0fda","6a7ca2c5e0ae19eb5054483d03bf93cec5ecbfa2274e69996a74f27d73f2f3de","bfd79fd69cc9b30eccda4c5cbbaaecb666a9740ed8f64630c6f05ee90ef55122","3850925508b419bb15c23a228e7aa38f134b201819357b52ffb1e037b8d3d8f0"],"root":[100,101,[105,118]],"options":{"allowImportingTsExtensions":true,"composite":true,"esModuleInterop":true,"jsx":1,"module":99,"skipLibCheck":true,"sourceMap":true,"strict":false,"target":99,"useDefineForClassFields":true},"referencedMap":[[92,1],[93,2],[94,3],[95,4],[96,5],[98,6],[88,7],[84,8],[85,9],[87,10],[99,11],[102,12],[103,13],[105,14],[107,15],[111,16],[113,17],[114,18],[118,19],[115,20],[100,21],[101,22],[109,22],[117,22],[104,22]],"affectedFilesPendingEmit":[[105,19],[107,19],[106,19],[111,19],[113,19],[112,19],[114,19],[118,19],[115,19],[116,19],[101,19],[110,19],[109,19],[117,19],[108,19]],"emitSignatures":[101,105,106,107,108,109,110,111,112,113,114,115,116,117,118],"version":"5.7.3"}