one 1.1.298 → 1.1.300
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/cleanUrl.js +1 -1
- package/dist/cjs/cleanUrl.js.map +1 -1
- package/dist/cjs/cleanUrl.native.js +1 -1
- package/dist/cjs/cleanUrl.native.js.map +1 -1
- package/dist/cjs/cli/runAndroid.js +34 -0
- package/dist/cjs/cli/runAndroid.js.map +6 -0
- package/dist/cjs/cli/runAndroid.native.js +39 -0
- package/dist/cjs/cli/runAndroid.native.js.map +6 -0
- package/dist/cjs/cli/runIos.js +34 -0
- package/dist/cjs/cli/runIos.js.map +6 -0
- package/dist/cjs/cli/runIos.native.js +39 -0
- package/dist/cjs/cli/runIos.native.js.map +6 -0
- package/dist/cjs/cli.js +23 -1
- package/dist/cjs/cli.js.map +1 -1
- package/dist/cjs/cli.native.js +25 -1
- package/dist/cjs/cli.native.js.map +2 -2
- package/dist/cjs/createHandleRequest.js +2 -2
- package/dist/cjs/createHandleRequest.js.map +1 -1
- package/dist/cjs/createHandleRequest.native.js +2 -2
- package/dist/cjs/createHandleRequest.native.js.map +2 -2
- package/dist/cjs/vite/createFileSystemRouter.js +1 -1
- package/dist/cjs/vite/createFileSystemRouter.js.map +1 -1
- package/dist/cjs/vite/createFileSystemRouter.native.js +1 -1
- package/dist/cjs/vite/createFileSystemRouter.native.js.map +1 -1
- package/dist/cjs/vite/replaceLoader.js +7 -1
- package/dist/cjs/vite/replaceLoader.js.map +1 -1
- package/dist/cjs/vite/replaceLoader.native.js +7 -1
- package/dist/cjs/vite/replaceLoader.native.js.map +1 -1
- package/dist/esm/Root.native.js +110 -104
- package/dist/esm/Root.native.js.map +6 -1
- package/dist/esm/Route.native.js +12 -10
- package/dist/esm/Route.native.js.map +6 -1
- package/dist/esm/cleanUrl.js +1 -1
- package/dist/esm/cleanUrl.js.map +1 -1
- package/dist/esm/cleanUrl.mjs +1 -1
- package/dist/esm/cleanUrl.mjs.map +1 -1
- package/dist/esm/cleanUrl.native.js +13 -14
- package/dist/esm/cleanUrl.native.js.map +6 -1
- package/dist/esm/cli/label-process.native.js +5 -4
- package/dist/esm/cli/label-process.native.js.map +6 -1
- package/dist/esm/cli/main.native.js +8 -13
- package/dist/esm/cli/main.native.js.map +6 -1
- package/dist/esm/cli/prebuild.native.js +5 -5
- package/dist/esm/cli/prebuild.native.js.map +6 -1
- package/dist/esm/cli/run.native.js +21 -28
- package/dist/esm/cli/run.native.js.map +6 -1
- package/dist/esm/cli/runAndroid.js +10 -0
- package/dist/esm/cli/runAndroid.js.map +6 -0
- package/dist/esm/cli/runAndroid.mjs +10 -0
- package/dist/esm/cli/runAndroid.mjs.map +1 -0
- package/dist/esm/cli/runAndroid.native.js +10 -0
- package/dist/esm/cli/runAndroid.native.js.map +6 -0
- package/dist/esm/cli/runIos.js +10 -0
- package/dist/esm/cli/runIos.js.map +6 -0
- package/dist/esm/cli/runIos.mjs +10 -0
- package/dist/esm/cli/runIos.mjs.map +1 -0
- package/dist/esm/cli/runIos.native.js +10 -0
- package/dist/esm/cli/runIos.native.js.map +6 -0
- package/dist/esm/cli.js +23 -1
- package/dist/esm/cli.js.map +1 -1
- package/dist/esm/cli.mjs +33 -1
- package/dist/esm/cli.mjs.map +1 -1
- package/dist/esm/cli.native.js +143 -148
- package/dist/esm/cli.native.js.map +6 -1
- package/dist/esm/clientLoaderResolver.native.js +9 -6
- package/dist/esm/clientLoaderResolver.native.js.map +6 -1
- package/dist/esm/config.native.js +12 -11
- package/dist/esm/config.native.js.map +6 -1
- package/dist/esm/constants.native.js +7 -5
- package/dist/esm/constants.native.js.map +6 -1
- package/dist/esm/createApp.native.js +13 -9
- package/dist/esm/createApp.native.js.map +6 -1
- package/dist/esm/createHandleRequest.js +2 -2
- package/dist/esm/createHandleRequest.js.map +1 -1
- package/dist/esm/createHandleRequest.mjs +2 -2
- package/dist/esm/createHandleRequest.mjs.map +1 -1
- package/dist/esm/createHandleRequest.native.js +57 -66
- package/dist/esm/createHandleRequest.native.js.map +6 -1
- package/dist/esm/createRoute.native.js +16 -16
- package/dist/esm/createRoute.native.js.map +6 -1
- package/dist/esm/fallbackViews/Sitemap.native.js +6 -3
- package/dist/esm/fallbackViews/Sitemap.native.js.map +6 -1
- package/dist/esm/fallbackViews/Unmatched.native.js +5 -3
- package/dist/esm/fallbackViews/Unmatched.native.js.map +6 -1
- package/dist/esm/fork/NavigationContainer.native.js +24 -31
- package/dist/esm/fork/NavigationContainer.native.js.map +6 -1
- package/dist/esm/fork/createMemoryHistory.native.js +99 -115
- package/dist/esm/fork/createMemoryHistory.native.js.map +6 -1
- package/dist/esm/fork/extractPathFromURL.native.js +16 -15
- package/dist/esm/fork/extractPathFromURL.native.js.map +6 -1
- package/dist/esm/fork/findFocusedRoute.native.js +6 -5
- package/dist/esm/fork/findFocusedRoute.native.js.map +6 -1
- package/dist/esm/fork/getPathFromState.native.js +127 -140
- package/dist/esm/fork/getPathFromState.native.js.map +6 -1
- package/dist/esm/fork/getStateFromPath.native.js +292 -288
- package/dist/esm/fork/getStateFromPath.native.js.map +6 -1
- package/dist/esm/fork/useLinking.native.js +70 -61
- package/dist/esm/fork/useLinking.native.js.map +6 -1
- package/dist/esm/fork/validatePathConfig.native.js +15 -9
- package/dist/esm/fork/validatePathConfig.native.js.map +6 -1
- package/dist/esm/getLinkingConfig.native.js +11 -6
- package/dist/esm/getLinkingConfig.native.js.map +6 -1
- package/dist/esm/getReactNavigationConfig.native.js +28 -20
- package/dist/esm/getReactNavigationConfig.native.js.map +6 -1
- package/dist/esm/getRoutes.native.js +249 -229
- package/dist/esm/getRoutes.native.js.map +6 -1
- package/dist/esm/getURL.native.js +4 -4
- package/dist/esm/getURL.native.js.map +6 -1
- package/dist/esm/head/Head.android.js +5 -3
- package/dist/esm/head/Head.android.js.map +6 -1
- package/dist/esm/head/Head.ios.js +144 -132
- package/dist/esm/head/Head.ios.js.map +6 -1
- package/dist/esm/head/Head.native.js +7 -7
- package/dist/esm/head/Head.native.js.map +6 -1
- package/dist/esm/head/HeadModule.native.js +6 -6
- package/dist/esm/head/HeadModule.native.js.map +6 -1
- package/dist/esm/head/index.native.js +2 -2
- package/dist/esm/head/index.native.js.map +6 -1
- package/dist/esm/head/types.native.js +1 -2
- package/dist/esm/head/types.native.js.map +6 -1
- package/dist/esm/head/url.native.js +10 -8
- package/dist/esm/head/url.native.js.map +6 -1
- package/dist/esm/hooks.native.js +53 -34
- package/dist/esm/hooks.native.js.map +6 -1
- package/dist/esm/imperative-api.native.js +9 -6
- package/dist/esm/imperative-api.native.js.map +6 -1
- package/dist/esm/import-mode/index.android.js +4 -3
- package/dist/esm/import-mode/index.android.js.map +6 -1
- package/dist/esm/import-mode/index.ios.js +4 -3
- package/dist/esm/import-mode/index.ios.js.map +6 -1
- package/dist/esm/import-mode/index.native.js +3 -1
- package/dist/esm/import-mode/index.native.js.map +6 -1
- package/dist/esm/index.native.js +65 -27
- package/dist/esm/index.native.js.map +6 -1
- package/dist/esm/interfaces/router.native.js +4 -2
- package/dist/esm/interfaces/router.native.js.map +6 -1
- package/dist/esm/layouts/Drawer.native.js +7 -6
- package/dist/esm/layouts/Drawer.native.js.map +6 -1
- package/dist/esm/layouts/Stack.native.js +7 -6
- package/dist/esm/layouts/Stack.native.js.map +6 -1
- package/dist/esm/layouts/Tabs.native.js +42 -39
- package/dist/esm/layouts/Tabs.native.js.map +6 -1
- package/dist/esm/layouts/withLayoutContext.native.js +51 -48
- package/dist/esm/layouts/withLayoutContext.native.js.map +6 -1
- package/dist/esm/link/Link.native.js +62 -53
- package/dist/esm/link/Link.native.js.map +6 -1
- package/dist/esm/link/Redirect.native.js +8 -9
- package/dist/esm/link/Redirect.native.js.map +6 -1
- package/dist/esm/link/href.native.js +28 -27
- package/dist/esm/link/href.native.js.map +6 -1
- package/dist/esm/link/linking.native.js +51 -40
- package/dist/esm/link/linking.native.js.map +6 -1
- package/dist/esm/link/path.native.js +28 -19
- package/dist/esm/link/path.native.js.map +6 -1
- package/dist/esm/link/useLinkTo.native.js +22 -20
- package/dist/esm/link/useLinkTo.native.js.map +6 -1
- package/dist/esm/link/useLoadedNavigation.native.js +30 -23
- package/dist/esm/link/useLoadedNavigation.native.js.map +6 -1
- package/dist/esm/matchers.native.js +16 -3
- package/dist/esm/matchers.native.js.map +6 -1
- package/dist/esm/platform.native.js +4 -2
- package/dist/esm/platform.native.js.map +6 -1
- package/dist/esm/polyfills-mobile.native.js +4 -5
- package/dist/esm/polyfills-mobile.native.js.map +6 -1
- package/dist/esm/polyfills-server.native.js +1 -1
- package/dist/esm/polyfills-server.native.js.map +6 -1
- package/dist/esm/render.native.js +3 -1
- package/dist/esm/render.native.js.map +6 -1
- package/dist/esm/router/RouterStore.native.js +1 -2
- package/dist/esm/router/RouterStore.native.js.map +6 -1
- package/dist/esm/router/constants.native.js +4 -2
- package/dist/esm/router/constants.native.js.map +6 -1
- package/dist/esm/router/getNormalizedStatePath.native.js +18 -17
- package/dist/esm/router/getNormalizedStatePath.native.js.map +6 -1
- package/dist/esm/router/lastAction.native.js +10 -9
- package/dist/esm/router/lastAction.native.js.map +6 -1
- package/dist/esm/router/router.native.js +135 -114
- package/dist/esm/router/router.native.js.map +6 -1
- package/dist/esm/router/serverLocationContext.native.js +4 -2
- package/dist/esm/router/serverLocationContext.native.js.map +6 -1
- package/dist/esm/router/useInitializeOneRouter.native.js +8 -5
- package/dist/esm/router/useInitializeOneRouter.native.js.map +6 -1
- package/dist/esm/serve.native.js +77 -104
- package/dist/esm/serve.native.js.map +6 -1
- package/dist/esm/server/createRoutesManifest.native.js +14 -11
- package/dist/esm/server/createRoutesManifest.native.js.map +6 -1
- package/dist/esm/server/getServerManifest.native.js +61 -67
- package/dist/esm/server/getServerManifest.native.js.map +6 -1
- package/dist/esm/server-render.native.js +9 -10
- package/dist/esm/server-render.native.js.map +6 -1
- package/dist/esm/sortRoutes.native.js +27 -17
- package/dist/esm/sortRoutes.native.js.map +6 -1
- package/dist/esm/typed-routes/generateRouteTypes.native.js +10 -11
- package/dist/esm/typed-routes/generateRouteTypes.native.js.map +6 -1
- package/dist/esm/typed-routes/getTypedRoutesDeclarationFile.native.js +38 -37
- package/dist/esm/typed-routes/getTypedRoutesDeclarationFile.native.js.map +6 -1
- package/dist/esm/types.native.js +1 -2
- package/dist/esm/types.native.js.map +6 -1
- package/dist/esm/useFocusEffect.native.js +25 -22
- package/dist/esm/useFocusEffect.native.js.map +6 -1
- package/dist/esm/useLoader.native.js +50 -50
- package/dist/esm/useLoader.native.js.map +6 -1
- package/dist/esm/useNavigation.native.js +23 -19
- package/dist/esm/useNavigation.native.js.map +6 -1
- package/dist/esm/useScreens.native.js +143 -160
- package/dist/esm/useScreens.native.js.map +6 -1
- package/dist/esm/useViteRoutes.native.js +25 -28
- package/dist/esm/useViteRoutes.native.js.map +6 -1
- package/dist/esm/utils/assertIsReady.native.js +6 -3
- package/dist/esm/utils/assertIsReady.native.js.map +6 -1
- package/dist/esm/utils/dynamicImport.native.js +5 -3
- package/dist/esm/utils/dynamicImport.native.js.map +6 -1
- package/dist/esm/utils/existsAsync.native.js +6 -4
- package/dist/esm/utils/existsAsync.native.js.map +6 -1
- package/dist/esm/utils/getPageExport.native.js +12 -11
- package/dist/esm/utils/getPageExport.native.js.map +6 -1
- package/dist/esm/utils/globDir.native.js +5 -3
- package/dist/esm/utils/globDir.native.js.map +6 -1
- package/dist/esm/utils/hashString.native.js +4 -2
- package/dist/esm/utils/hashString.native.js.map +6 -1
- package/dist/esm/utils/isResponse.native.js +4 -2
- package/dist/esm/utils/isResponse.native.js.map +6 -1
- package/dist/esm/utils/isStatus.native.js +4 -2
- package/dist/esm/utils/isStatus.native.js.map +6 -1
- package/dist/esm/utils/promiseWithResolvers.native.js +7 -7
- package/dist/esm/utils/promiseWithResolvers.native.js.map +6 -1
- package/dist/esm/utils/rand.native.js +5 -3
- package/dist/esm/utils/rand.native.js.map +6 -1
- package/dist/esm/utils/redirect.native.js +7 -5
- package/dist/esm/utils/redirect.native.js.map +6 -1
- package/dist/esm/utils/removeSearch.native.js +4 -2
- package/dist/esm/utils/removeSearch.native.js.map +6 -1
- package/dist/esm/utils/removeUndefined.native.js +6 -3
- package/dist/esm/utils/removeUndefined.native.js.map +6 -1
- package/dist/esm/utils/requireResolve.native.js +4 -2
- package/dist/esm/utils/requireResolve.native.js.map +6 -1
- package/dist/esm/utils/url.native.js +6 -2
- package/dist/esm/utils/url.native.js.map +6 -1
- package/dist/esm/utils/weakKey.native.js +11 -10
- package/dist/esm/utils/weakKey.native.js.map +6 -1
- package/dist/esm/utils/weakMemo.native.js +8 -8
- package/dist/esm/utils/weakMemo.native.js.map +6 -1
- package/dist/esm/views/EmptyRoute.native.js +5 -3
- package/dist/esm/views/EmptyRoute.native.js.map +6 -1
- package/dist/esm/views/ErrorBoundary.native.js +5 -8
- package/dist/esm/views/ErrorBoundary.native.js.map +6 -1
- package/dist/esm/views/LoadProgressBar.native.js +58 -57
- package/dist/esm/views/LoadProgressBar.native.js.map +6 -1
- package/dist/esm/views/Navigator.native.js +54 -71
- package/dist/esm/views/Navigator.native.js.map +6 -1
- package/dist/esm/views/PreloadLinks.native.js +3 -1
- package/dist/esm/views/PreloadLinks.native.js.map +6 -1
- package/dist/esm/views/RootErrorBoundary.native.js +39 -29
- package/dist/esm/views/RootErrorBoundary.native.js.map +6 -1
- package/dist/esm/views/Screen.native.js +12 -12
- package/dist/esm/views/Screen.native.js.map +6 -1
- package/dist/esm/views/ScrollRestoration.native.js +27 -27
- package/dist/esm/views/ScrollRestoration.native.js.map +6 -1
- package/dist/esm/views/Try.native.js +40 -37
- package/dist/esm/views/Try.native.js.map +6 -1
- package/dist/esm/vite/build.native.js +260 -295
- package/dist/esm/vite/build.native.js.map +6 -1
- package/dist/esm/vite/clientTreeShakePlugin.native.js +34 -33
- package/dist/esm/vite/clientTreeShakePlugin.native.js.map +6 -1
- package/dist/esm/vite/constants.native.js +6 -4
- package/dist/esm/vite/constants.native.js.map +6 -1
- package/dist/esm/vite/createFileSystemRouter.js +1 -1
- package/dist/esm/vite/createFileSystemRouter.js.map +1 -1
- package/dist/esm/vite/createFileSystemRouter.mjs +1 -1
- package/dist/esm/vite/createFileSystemRouter.mjs.map +1 -1
- package/dist/esm/vite/createFileSystemRouter.native.js +100 -131
- package/dist/esm/vite/createFileSystemRouter.native.js.map +6 -1
- package/dist/esm/vite/customNodeExternals.native.js +9 -10
- package/dist/esm/vite/customNodeExternals.native.js.map +6 -1
- package/dist/esm/vite/ensureTsConfig.native.js +7 -5
- package/dist/esm/vite/ensureTsConfig.native.js.map +6 -1
- package/dist/esm/vite/findDepsToOptimize.native.js +27 -19
- package/dist/esm/vite/findDepsToOptimize.native.js.map +6 -1
- package/dist/esm/vite/fixDependenciesPlugin.native.js +5 -3
- package/dist/esm/vite/fixDependenciesPlugin.native.js.map +6 -1
- package/dist/esm/vite/generateTypesForRoutes.native.js +9 -9
- package/dist/esm/vite/generateTypesForRoutes.native.js.map +6 -1
- package/dist/esm/vite/getManifest.native.js +6 -4
- package/dist/esm/vite/getManifest.native.js.map +6 -1
- package/dist/esm/vite/headers.native.js +11 -5
- package/dist/esm/vite/headers.native.js.map +6 -1
- package/dist/esm/vite/loadEnv.native.js +7 -6
- package/dist/esm/vite/loadEnv.native.js.map +6 -1
- package/dist/esm/vite/makePluginWebOnly.native.js +9 -5
- package/dist/esm/vite/makePluginWebOnly.native.js.map +6 -1
- package/dist/esm/vite/one.native.js +142 -127
- package/dist/esm/vite/one.native.js.map +6 -1
- package/dist/esm/vite/removeReactNativeWebAnimatedPlugin.native.js +14 -11
- package/dist/esm/vite/removeReactNativeWebAnimatedPlugin.native.js.map +6 -1
- package/dist/esm/vite/replaceLoader.js +7 -1
- package/dist/esm/vite/replaceLoader.js.map +1 -1
- package/dist/esm/vite/replaceLoader.mjs +5 -1
- package/dist/esm/vite/replaceLoader.mjs.map +1 -1
- package/dist/esm/vite/replaceLoader.native.js +13 -10
- package/dist/esm/vite/replaceLoader.native.js.map +6 -1
- package/dist/esm/vite/resolveAPIRequest.native.js +44 -47
- package/dist/esm/vite/resolveAPIRequest.native.js.map +6 -1
- package/dist/esm/vite/server.native.js +5 -4
- package/dist/esm/vite/server.native.js.map +6 -1
- package/dist/esm/vite/types.native.js +1 -2
- package/dist/esm/vite/types.native.js.map +6 -1
- package/dist/esm/vite/virtualEntryPlugin.native.js +21 -16
- package/dist/esm/vite/virtualEntryPlugin.native.js.map +6 -1
- package/dist/esm/vite/vitePluginSsrCss.native.js +61 -50
- package/dist/esm/vite/vitePluginSsrCss.native.js.map +6 -1
- package/dist/esm/vite.native.js +19 -10
- package/dist/esm/vite.native.js.map +6 -1
- package/dist/esm/zero/getQueryKey.native.js +5 -3
- package/dist/esm/zero/getQueryKey.native.js.map +6 -1
- package/dist/esm/zero/isZeroQuery.native.js +4 -2
- package/dist/esm/zero/isZeroQuery.native.js.map +6 -1
- package/dist/esm/zero/resolveQuery.native.js +9 -8
- package/dist/esm/zero/resolveQuery.native.js.map +6 -1
- package/dist/esm/zero/subscribeToQuery.native.js +5 -3
- package/dist/esm/zero/subscribeToQuery.native.js.map +6 -1
- package/dist/esm/zero/types.native.js +1 -2
- package/dist/esm/zero/types.native.js.map +6 -1
- package/dist/esm/zero/useQuery.native.js +12 -12
- package/dist/esm/zero/useQuery.native.js.map +6 -1
- package/dist/esm/zero/useQueryZero.native.js +24 -20
- package/dist/esm/zero/useQueryZero.native.js.map +6 -1
- package/dist/esm/zero.native.js +9 -5
- package/dist/esm/zero.native.js.map +6 -1
- package/package.json +7 -7
- package/src/cleanUrl.ts +1 -1
- package/src/cli/runAndroid.ts +6 -0
- package/src/cli/runIos.ts +6 -0
- package/src/cli.ts +27 -1
- package/src/createHandleRequest.ts +7 -0
- package/src/vite/createFileSystemRouter.tsx +1 -2
- package/src/vite/replaceLoader.ts +7 -1
- package/types/cli/runAndroid.d.ts +2 -0
- package/types/cli/runAndroid.d.ts.map +1 -0
- package/types/cli/runIos.d.ts +2 -0
- package/types/cli/runIos.d.ts.map +1 -0
- package/types/createHandleRequest.d.ts.map +1 -1
- package/types/vite/createFileSystemRouter.d.ts.map +1 -1
- package/types/vite/replaceLoader.d.ts.map +1 -1
@@ -1,14 +1,15 @@
|
|
1
|
-
var getPageExport = function
|
2
|
-
return exported.default ||
|
3
|
-
// because HMR fails with default exports, allow exporting something else
|
1
|
+
var getPageExport = function(exported) {
|
2
|
+
return exported.default || // because HMR fails with default exports, allow exporting something else
|
4
3
|
// we just find the first non-loader export for now...
|
5
|
-
function
|
6
|
-
var keys = Object.keys(exported),
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
4
|
+
function() {
|
5
|
+
var keys = Object.keys(exported), nonLoader = keys.find(function(x) {
|
6
|
+
return x !== "loader" && x[0].toUpperCase() === x[0];
|
7
|
+
});
|
8
|
+
if (nonLoader)
|
9
|
+
return exported[nonLoader];
|
11
10
|
}();
|
12
11
|
};
|
13
|
-
export {
|
14
|
-
|
12
|
+
export {
|
13
|
+
getPageExport
|
14
|
+
};
|
15
|
+
//# sourceMappingURL=getPageExport.js.map
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../../src/utils/Users/n8/one/packages/one/src/utils/getPageExport.ts"],
|
4
|
+
"mappings": "AAAO,IAAMA,gBAAgB,SAACC,UAAAA;AAC5B,SACEA,SAASC;;EAGR,WAAA;AACC,QAAMC,OAAOC,OAAOD,KAAKF,QAAAA,GACnBI,YAAYF,KAAKG,KAAK,SAACC,GAAAA;aAAMA,MAAM,YAAYA,EAAE,CAAA,EAAGC,YAAW,MAAOD,EAAE,CAAA;;AAC9E,QAAIF;AACF,aAAOJ,SAASI,SAAAA;EAEpB,EAAA;AAEJ;",
|
5
|
+
"names": ["getPageExport", "exported", "default", "keys", "Object", "nonLoader", "find", "x", "toUpperCase"]
|
6
|
+
}
|
@@ -2,12 +2,14 @@ import Glob from "fast-glob";
|
|
2
2
|
function globDir(cwd) {
|
3
3
|
return Glob.sync("**/*.@(ts|tsx|js|jsx)", {
|
4
4
|
cwd
|
5
|
-
}).map(function
|
5
|
+
}).map(function(p) {
|
6
6
|
return "./" + normalizePaths(p);
|
7
7
|
});
|
8
8
|
}
|
9
9
|
function normalizePaths(p) {
|
10
10
|
return p.replace(/\\/g, "/");
|
11
11
|
}
|
12
|
-
export {
|
13
|
-
|
12
|
+
export {
|
13
|
+
globDir
|
14
|
+
};
|
15
|
+
//# sourceMappingURL=globDir.js.map
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../../src/utils/Users/n8/one/packages/one/src/utils/globDir.ts"],
|
4
|
+
"mappings": "AAAA,OAAOA,UAAU;AAGV,SAASC,QAAQC,KAAW;AACjC,SAAOF,KAAKG,KAAK,yBAAyB;IACxCD;EACF,CAAA,EAAGE,IAAI,SAACC,GAAAA;WAAM,OAAOC,eAAeD,CAAAA;;AACtC;AAEA,SAASC,eAAeD,GAAS;AAC/B,SAAOA,EAAEE,QAAQ,OAAO,GAAA;AAC1B;",
|
5
|
+
"names": ["Glob", "globDir", "cwd", "sync", "map", "p", "normalizePaths", "replace"]
|
6
|
+
}
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../../src/utils/Users/n8/one/packages/one/src/utils/hashString.ts"],
|
4
|
+
"mappings": "AAAA,OAAOA,SAAS;AAET,SAASC,WAAWC,KAAW;AACpC,SAAOF,IAAIG,IAAI,CAAA,EAAGC,OAAOF,GAAAA,EAAKG,OAAM,EAAGC,SAAS,EAAA;AAClD;",
|
5
|
+
"names": ["xxh", "hashString", "str", "h64", "update", "digest", "toString"]
|
6
|
+
}
|
@@ -1,5 +1,7 @@
|
|
1
1
|
function isResponse(res) {
|
2
2
|
return res instanceof Response || typeof res.status == "number" && "body" in res && typeof res.ok == "boolean";
|
3
3
|
}
|
4
|
-
export {
|
5
|
-
|
4
|
+
export {
|
5
|
+
isResponse
|
6
|
+
};
|
7
|
+
//# sourceMappingURL=isResponse.js.map
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../../src/utils/Users/n8/one/packages/one/src/utils/isResponse.ts"],
|
4
|
+
"mappings": "AACO,SAASA,WAAWC,KAAQ;AACjC,SACEA,eAAeC,YACd,OAAOD,IAAIE,UAAW,YAAY,UAAUF,OAAO,OAAOA,IAAIG,MAAO;AAE1E;",
|
5
|
+
"names": ["isResponse", "res", "Response", "status", "ok"]
|
6
|
+
}
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../../src/utils/Users/n8/one/packages/one/src/utils/isStatus.ts"],
|
4
|
+
"mappings": "AAEO,SAASA,iBAAiBC,QAAc;AAC7C,SAAOA,SAAS,OAAOA,SAAS;AAClC;",
|
5
|
+
"names": ["isStatusRedirect", "status"]
|
6
|
+
}
|
@@ -1,14 +1,14 @@
|
|
1
1
|
function promiseWithResolvers() {
|
2
|
-
var a,
|
3
|
-
b
|
4
|
-
|
5
|
-
a = resolve, b = reject;
|
6
|
-
});
|
2
|
+
var a, b, c = new Promise(function(resolve, reject) {
|
3
|
+
a = resolve, b = reject;
|
4
|
+
});
|
7
5
|
return {
|
8
6
|
resolve: a,
|
9
7
|
reject: b,
|
10
8
|
promise: c
|
11
9
|
};
|
12
10
|
}
|
13
|
-
export {
|
14
|
-
|
11
|
+
export {
|
12
|
+
promiseWithResolvers
|
13
|
+
};
|
14
|
+
//# sourceMappingURL=promiseWithResolvers.js.map
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../../src/utils/Users/n8/one/packages/one/src/utils/promiseWithResolvers.ts"],
|
4
|
+
"mappings": "AAAO,SAASA,uBAAAA;AACd,MAAIC,GACAC,GACAC,IAAI,IAAIC,QAAW,SAACC,SAASC,QAAAA;AAC/BL,QAAII,SACJH,IAAII;EACN,CAAA;AACA,SAAO;IAAED,SAASJ;IAAGK,QAAQJ;IAAGK,SAASJ;EAAE;AAC7C;",
|
5
|
+
"names": ["promiseWithResolvers", "a", "b", "c", "Promise", "resolve", "reject", "promise"]
|
6
|
+
}
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../../src/utils/Users/n8/one/packages/one/src/utils/rand.ts"],
|
4
|
+
"mappings": "AAAO,IAAMA,OAAO,WAAA;SAAM,GAAGC,KAAKC,MAAMD,KAAKE,OAAM,IAAK,GAAA,CAAA;;",
|
5
|
+
"names": ["rand", "Math", "round", "random"]
|
6
|
+
}
|
@@ -1,11 +1,13 @@
|
|
1
|
-
import { getURL } from "../getURL
|
2
|
-
import { router } from "../imperative-api
|
3
|
-
var redirect = function
|
1
|
+
import { getURL } from "../getURL";
|
2
|
+
import { router } from "../imperative-api";
|
3
|
+
var redirect = function(path, status) {
|
4
4
|
if (process.env.VITE_ENVIRONMENT === "client") {
|
5
5
|
router.navigate(path);
|
6
6
|
return;
|
7
7
|
}
|
8
8
|
return Response.redirect(path[0] === "/" ? `${getURL()}${path}` : path, status);
|
9
9
|
};
|
10
|
-
export {
|
11
|
-
|
10
|
+
export {
|
11
|
+
redirect
|
12
|
+
};
|
13
|
+
//# sourceMappingURL=redirect.js.map
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../../src/utils/Users/n8/one/packages/one/src/utils/redirect.ts"],
|
4
|
+
"mappings": "AAAA,SAASA,cAAc;AACvB,SAASC,cAAc;AAEhB,IAAMC,WAAW,SAACC,MAAcC,QAAAA;AACrC,MAAIC,QAAQC,IAAIC,qBAAqB,UAAU;AAC7CN,WAAOO,SAASL,IAAAA;AAChB;EACF;AAEA,SAAOM,SAASP,SAASC,KAAK,CAAA,MAAO,MAAM,GAAGH,OAAAA,CAAAA,GAAWG,IAAAA,KAASA,MAAMC,MAAAA;AAC1E;",
|
5
|
+
"names": ["getURL", "router", "redirect", "path", "status", "process", "env", "VITE_ENVIRONMENT", "navigate", "Response"]
|
6
|
+
}
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../../src/utils/Users/n8/one/packages/one/src/utils/removeSearch.ts"],
|
4
|
+
"mappings": "AAAO,SAASA,aAAaC,KAAW;AACtC,SAAOA,IAAIC,QAAQ,QAAQ,EAAA;AAC7B;",
|
5
|
+
"names": ["removeSearch", "url", "replace"]
|
6
|
+
}
|
@@ -1,7 +1,10 @@
|
|
1
1
|
function removeUndefined(obj) {
|
2
2
|
var result = {};
|
3
|
-
for (var key in obj)
|
3
|
+
for (var key in obj)
|
4
|
+
obj[key] !== void 0 && (result[key] = obj[key]);
|
4
5
|
return result;
|
5
6
|
}
|
6
|
-
export {
|
7
|
-
|
7
|
+
export {
|
8
|
+
removeUndefined
|
9
|
+
};
|
10
|
+
//# sourceMappingURL=removeUndefined.js.map
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../../src/utils/Users/n8/one/packages/one/src/utils/removeUndefined.ts"],
|
4
|
+
"mappings": "AAIO,SAASA,gBAAkCC,KAAM;AACtD,MAAMC,SAAS,CAAC;AAEhB,WAAWC,OAAOF;AAChB,IAAIA,IAAIE,GAAAA,MAASC,WAEfF,OAAOC,GAAAA,IAAOF,IAAIE,GAAAA;AAItB,SAAOD;AACT;",
|
5
|
+
"names": ["removeUndefined", "obj", "result", "key", "undefined"]
|
6
|
+
}
|
@@ -3,5 +3,7 @@ var require2 = createRequire(import.meta.url);
|
|
3
3
|
function requireResolve(name) {
|
4
4
|
return typeof import.meta.resolve > "u" ? require2.resolve(name) : import.meta.resolve(name).replace("file://", "");
|
5
5
|
}
|
6
|
-
export {
|
7
|
-
|
6
|
+
export {
|
7
|
+
requireResolve
|
8
|
+
};
|
9
|
+
//# sourceMappingURL=requireResolve.js.map
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../../src/utils/Users/n8/one/packages/one/src/utils/requireResolve.ts"],
|
4
|
+
"mappings": "AAAA,SAASA,qBAAqB;AAE9B,IAAMC,WAAUD,cAAc,YAAYE,GAAG;AAEtC,SAASC,eAAeC,MAAY;AACzC,SAAI,OAAO,YAAYC,UAAY,MAC1BJ,SAAQI,QAAQD,IAAAA,IAElB,YAAYC,QAAQD,IAAAA,EAAME,QAAQ,WAAW,EAAA;AACtD;",
|
5
|
+
"names": ["createRequire", "require", "url", "requireResolve", "name", "resolve", "replace"]
|
6
|
+
}
|
@@ -7,5 +7,9 @@ function isWellKnownUri(href) {
|
|
7
7
|
function shouldLinkExternally(href) {
|
8
8
|
return !/^[./]/.test(href) && (hasUrlProtocolPrefix(href) || isWellKnownUri(href));
|
9
9
|
}
|
10
|
-
export {
|
11
|
-
|
10
|
+
export {
|
11
|
+
hasUrlProtocolPrefix,
|
12
|
+
isWellKnownUri,
|
13
|
+
shouldLinkExternally
|
14
|
+
};
|
15
|
+
//# sourceMappingURL=url.js.map
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../../src/utils/Users/n8/one/packages/one/src/utils/url.ts"],
|
4
|
+
"mappings": "AAIO,SAASA,qBAAqBC,MAAY;AAC/C,SAAO,oBAAoBC,KAAKD,IAAAA;AAClC;AAEO,SAASE,eAAeF,MAAY;AAIzC,SAAO,0EAA0EC,KAAKD,IAAAA;AACxF;AAEO,SAASG,qBAAqBH,MAAY;AAE/C,SAAO,CAAC,QAAQC,KAAKD,IAAAA,MAAUD,qBAAqBC,IAAAA,KAASE,eAAeF,IAAAA;AAC9E;",
|
5
|
+
"names": ["hasUrlProtocolPrefix", "href", "test", "isWellKnownUri", "shouldLinkExternally"]
|
6
|
+
}
|
@@ -1,10 +1,11 @@
|
|
1
|
-
var w = /* @__PURE__ */new WeakMap(),
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
1
|
+
var w = /* @__PURE__ */ new WeakMap(), weakKey = function(item) {
|
2
|
+
var _w_get;
|
3
|
+
return (_w_get = w.get(item)) !== null && _w_get !== void 0 ? _w_get : function() {
|
4
|
+
var k = `${Math.random()}`;
|
5
|
+
return w.set(item, k), k;
|
6
|
+
}();
|
7
|
+
};
|
8
|
+
export {
|
9
|
+
weakKey
|
10
|
+
};
|
11
|
+
//# sourceMappingURL=weakKey.js.map
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../../src/utils/Users/n8/one/packages/one/src/utils/weakKey.ts"],
|
4
|
+
"mappings": "AAAA,IAAMA,IAAI,oBAAIC,QAAAA,GACDC,UAAU,SAACC,MAAAA;MAEpBH;AADF,UACEA,SAAAA,EAAEI,IAAID,IAAAA,OAAAA,QAANH,WAAAA,SAAAA,SACC,WAAA;AACC,QAAMK,IAAI,GAAGC,KAAKC,OAAM,CAAA;AACxBP,aAAEQ,IAAIL,MAAME,CAAAA,GACLA;EACT,EAAA;AAEJ;",
|
5
|
+
"names": ["w", "WeakMap", "weakKey", "item", "get", "k", "Math", "random", "set"]
|
6
|
+
}
|
@@ -1,10 +1,7 @@
|
|
1
|
-
var cache = /* @__PURE__ */new WeakMap();
|
1
|
+
var cache = /* @__PURE__ */ new WeakMap();
|
2
2
|
function weakMemoObject(obj) {
|
3
3
|
if (!cache.has(obj)) {
|
4
|
-
var memoizedObj = {},
|
5
|
-
_iteratorNormalCompletion = !0,
|
6
|
-
_didIteratorError = !1,
|
7
|
-
_iteratorError = void 0;
|
4
|
+
var memoizedObj = {}, _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
8
5
|
try {
|
9
6
|
for (var _iterator = Object.keys(obj)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
|
10
7
|
var key = _step.value;
|
@@ -16,12 +13,15 @@ function weakMemoObject(obj) {
|
|
16
13
|
try {
|
17
14
|
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
18
15
|
} finally {
|
19
|
-
if (_didIteratorError)
|
16
|
+
if (_didIteratorError)
|
17
|
+
throw _iteratorError;
|
20
18
|
}
|
21
19
|
}
|
22
20
|
cache.set(obj, memoizedObj);
|
23
21
|
}
|
24
22
|
return cache.get(obj);
|
25
23
|
}
|
26
|
-
export {
|
27
|
-
|
24
|
+
export {
|
25
|
+
weakMemoObject
|
26
|
+
};
|
27
|
+
//# sourceMappingURL=weakMemo.js.map
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../../src/utils/Users/n8/one/packages/one/src/utils/weakMemo.ts"],
|
4
|
+
"mappings": "AAAA,IAAMA,QAAQ,oBAAIC,QAAAA;AAEX,SAASC,eAAeC,KAAQ;AACrC,MAAI,CAACH,MAAMI,IAAID,GAAAA,GAAM;AACnB,QAAME,cAAc,CAAC,GAChB,4BAAA,IAAA,oBAAA,IAAA,iBAAA;;AAAL,eAAK,YAAaC,OAAOC,KAAKJ,GAAAA,EAAAA,OAAAA,QAAAA,EAAAA,GAAzB,OAAA,EAAA,6BAAA,QAAA,UAAA,KAAA,GAAA,OAAA,4BAAA,IAA+B;AAA/B,YAAMK,MAAN,MAAA;AACH,QAAKR,MAAMI,IAAID,IAAIK,GAAAA,CAAI,KACrBR,MAAMS,IAAIN,IAAIK,GAAAA,GAAML,IAAIK,GAAAA,CAAI,GAE9BH,YAAYG,GAAAA,IAAOR,MAAMU,IAAIP,IAAIK,GAAAA,CAAI;MACvC;;AALK,0BAAA,IAAA,iBAAA;;;SAAA,6BAAA,UAAA,UAAA,QAAA,UAAA,OAAA;;YAAA;gBAAA;;;AAMLR,UAAMS,IAAIN,KAAKE,WAAAA;EACjB;AACA,SAAOL,MAAMU,IAAIP,GAAAA;AACnB;",
|
5
|
+
"names": ["cache", "WeakMap", "weakMemoObject", "obj", "has", "memoizedObj", "Object", "keys", "key", "set", "get"]
|
6
|
+
}
|
@@ -1,8 +1,10 @@
|
|
1
1
|
import "react";
|
2
|
-
import { useRouteNode } from "../Route
|
2
|
+
import { useRouteNode } from "../Route";
|
3
3
|
function EmptyRoute() {
|
4
4
|
var route = useRouteNode();
|
5
5
|
return null;
|
6
6
|
}
|
7
|
-
export {
|
8
|
-
|
7
|
+
export {
|
8
|
+
EmptyRoute
|
9
|
+
};
|
10
|
+
//# sourceMappingURL=EmptyRoute.js.map
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../../src/views/Users/n8/one/packages/one/src/views/EmptyRoute.tsx"],
|
4
|
+
"mappings": "AAAA,OAAkB;AAElB,SAASA,oBAAoB;AAItB,SAASC,aAAAA;AACd,MAAMC,QAAQF,aAAAA;AAEd,SAAO;AAQT;",
|
5
|
+
"names": ["useRouteNode", "EmptyRoute", "route"]
|
6
|
+
}
|
@@ -3,13 +3,10 @@ import React from "react";
|
|
3
3
|
import { View } from "react-native";
|
4
4
|
import { SafeAreaView } from "react-native-safe-area-context";
|
5
5
|
function ErrorBoundary(param) {
|
6
|
-
var {
|
7
|
-
error,
|
8
|
-
retry
|
9
|
-
} = param,
|
10
|
-
inTabBar = React.useContext(BottomTabBarHeightContext),
|
11
|
-
Wrapper = inTabBar ? View : SafeAreaView;
|
6
|
+
var { error, retry } = param, inTabBar = React.useContext(BottomTabBarHeightContext), Wrapper = inTabBar ? View : SafeAreaView;
|
12
7
|
return console.error("error", error), null;
|
13
8
|
}
|
14
|
-
export {
|
15
|
-
|
9
|
+
export {
|
10
|
+
ErrorBoundary
|
11
|
+
};
|
12
|
+
//# sourceMappingURL=ErrorBoundary.js.map
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../../src/views/Users/n8/one/packages/one/src/views/ErrorBoundary.tsx"],
|
4
|
+
"mappings": "AAGA,SAASA,iCAAiC;AAC1C,OAAOC,WAAW;AAClB,SAASC,YAAY;AACrB,SAASC,oBAAoB;AAqCtB,SAASC,cAAc,OAAoC;MAApC,EAAEC,OAAOC,MAAK,IAAd,OAEtBC,WAAWN,MAAMO,WAAWR,yBAAAA,GAC5BS,UAAUF,WAAWL,OAAOC;AAElCO,iBAAQL,MAAM,SAASA,KAAAA,GAEhB;AAkDT;",
|
5
|
+
"names": ["BottomTabBarHeightContext", "React", "View", "SafeAreaView", "ErrorBoundary", "error", "retry", "inTabBar", "useContext", "Wrapper", "console"]
|
6
|
+
}
|
@@ -1,69 +1,70 @@
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
2
2
|
import { useEffect, useState } from "react";
|
3
3
|
import { View } from "react-native";
|
4
|
-
import { router } from "../imperative-api
|
5
|
-
var LoadProgressBar = function
|
6
|
-
var {
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
loadInterval = setTimeout(function () {
|
23
|
-
setLoaded(initialPercent);
|
24
|
-
var intervalCount = 0;
|
25
|
-
loadInterval = setInterval(function () {
|
26
|
-
intervalCount++, intervalCount % sporadicness !== 0 && setLoaded(function (prev) {
|
27
|
-
var increment = (100 - prev) * (prev > 80 ? 0.05 : 0.1) * Math.random();
|
28
|
-
return Math.min(prev + increment, 100);
|
29
|
-
});
|
30
|
-
}, updateInterval);
|
31
|
-
}, startDelay);
|
32
|
-
break;
|
33
|
-
}
|
34
|
-
case "loaded":
|
35
|
-
{
|
36
|
-
setLoaded(100), clearInterval(loadInterval), setTimeout(function () {
|
37
|
-
setLoaded(0);
|
38
|
-
}, finishDelay);
|
39
|
-
break;
|
40
|
-
}
|
4
|
+
import { router } from "../imperative-api";
|
5
|
+
var LoadProgressBar = function(param) {
|
6
|
+
var { startDelay = 500, finishDelay = 50, initialPercent = 20, updateInterval = 300, sporadicness = 3, ...props } = param, [loaded, setLoaded] = useState(0), [width, setWidth] = useState(0);
|
7
|
+
return useEffect(function() {
|
8
|
+
var loadInterval, dispose = router.onLoadState(function(state) {
|
9
|
+
switch (clearTimeout(loadInterval), state) {
|
10
|
+
case "loading": {
|
11
|
+
loadInterval = setTimeout(function() {
|
12
|
+
setLoaded(initialPercent);
|
13
|
+
var intervalCount = 0;
|
14
|
+
loadInterval = setInterval(function() {
|
15
|
+
intervalCount++, intervalCount % sporadicness !== 0 && setLoaded(function(prev) {
|
16
|
+
var increment = (100 - prev) * (prev > 80 ? 0.05 : 0.1) * Math.random();
|
17
|
+
return Math.min(prev + increment, 100);
|
18
|
+
});
|
19
|
+
}, updateInterval);
|
20
|
+
}, startDelay);
|
21
|
+
break;
|
41
22
|
}
|
42
|
-
|
43
|
-
|
23
|
+
case "loaded": {
|
24
|
+
setLoaded(100), clearInterval(loadInterval), setTimeout(function() {
|
25
|
+
setLoaded(0);
|
26
|
+
}, finishDelay);
|
27
|
+
break;
|
28
|
+
}
|
29
|
+
}
|
30
|
+
});
|
31
|
+
return function() {
|
44
32
|
dispose(), clearInterval(loadInterval);
|
45
33
|
};
|
46
|
-
}, [
|
34
|
+
}, [
|
35
|
+
finishDelay,
|
36
|
+
initialPercent,
|
37
|
+
sporadicness,
|
38
|
+
startDelay,
|
39
|
+
updateInterval
|
40
|
+
]), /* @__PURE__ */ _jsx(View, {
|
47
41
|
...props,
|
48
|
-
onLayout: function
|
42
|
+
onLayout: function(e) {
|
49
43
|
var _props_onLayout;
|
50
44
|
setWidth(e.nativeEvent.layout.width), (_props_onLayout = props.onLayout) === null || _props_onLayout === void 0 || _props_onLayout.call(props, e);
|
51
45
|
},
|
52
|
-
style: [
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
46
|
+
style: [
|
47
|
+
{
|
48
|
+
display: loaded === 0 ? "none" : "flex",
|
49
|
+
height: 1,
|
50
|
+
position: "absolute",
|
51
|
+
top: 0,
|
52
|
+
left: 0,
|
53
|
+
right: 0,
|
54
|
+
backgroundColor: "rgba(60, 100, 200, 0.65)",
|
55
|
+
width: "100%",
|
56
|
+
transform: [
|
57
|
+
{
|
58
|
+
translateX: -(1 - loaded * 0.01) * width
|
59
|
+
}
|
60
|
+
],
|
61
|
+
zIndex: Number.MAX_SAFE_INTEGER
|
62
|
+
},
|
63
|
+
props.style
|
64
|
+
]
|
66
65
|
});
|
67
66
|
};
|
68
|
-
export {
|
69
|
-
|
67
|
+
export {
|
68
|
+
LoadProgressBar
|
69
|
+
};
|
70
|
+
//# sourceMappingURL=LoadProgressBar.js.map
|
@@ -1 +1,6 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../../../src/views/Users/n8/one/packages/one/src/views/LoadProgressBar.tsx"],
|
4
|
+
"mappings": ";AAAA,SAASA,WAAWC,gBAAgB;AACpC,SAASC,YAA4B;AACrC,SAASC,cAAc;AAqBhB,IAAMC,kBAAkB,SAAA,OAAA;MAAC,EAC9BC,aAAa,KACbC,cAAc,IACdC,iBAAiB,IACjBC,iBAAiB,KACjBC,eAAe,GACf,GAAGC,MAAAA,IACkB,OACf,CAACC,QAAQC,SAAAA,IAAaX,SAAS,CAAA,GAC/B,CAACY,OAAOC,QAAAA,IAAYb,SAAS,CAAA;AAEnCD,mBAAU,WAAA;AACR,QAAIe,cAEEC,UAAUb,OAAOc,YAAY,SAACC,OAAAA;AAGlC,cAFAC,aAAaJ,YAAAA,GAELG,OAAAA;QACN,KAAK,WAAW;AACdH,yBAAeK,WAAW,WAAA;AACxBR,sBAAUL,cAAAA;AAGV,gBAAIc,gBAAgB;AAEpBN,2BAAeO,YAAY,WAAA;AAGzB,cAFAD,iBAEIA,gBAAgBZ,iBAAiB,KAIrCG,UAAU,SAACW,MAAAA;AACT,oBAAMC,aAAa,MAAMD,SAASA,OAAO,KAAK,OAAO,OAAOE,KAAKC,OAAM;AACvE,uBAAOD,KAAKE,IAAIJ,OAAOC,WAAW,GAAA;cACpC,CAAA;YACF,GAAGhB,cAAAA;UACL,GAAGH,UAAAA;AACH;QACF;QAEA,KAAK,UAAU;AACbO,oBAAU,GAAA,GACVgB,cAAcb,YAAAA,GACdK,WAAW,WAAA;AACTR,sBAAU,CAAA;UACZ,GAAGN,WAAAA;AACH;QACF;MACF;IACF,CAAA;AAEA,WAAO,WAAA;AACLU,cAAAA,GACAY,cAAcb,YAAAA;IAChB;EACF,GAAG;IAACT;IAAaC;IAAgBE;IAAcJ;IAAYG;GAAe,GAGxE,qBAACN,MAAAA;IACE,GAAGQ;IACJmB,UAAU,SAACC,GAAAA;UAETpB;AADAI,eAASgB,EAAEC,YAAYC,OAAOnB,KAAK,IACnCH,kBAAAA,MAAMmB,cAAQ,QAAdnB,oBAAAA,UAAAA,gBAAAA,KAAAA,OAAiBoB,CAAAA;IACnB;IACAG,OAAO;MACL;QACEC,SAASvB,WAAW,IAAI,SAAS;QACjCwB,QAAQ;QACRC,UAAU;QACVC,KAAK;QACLC,MAAM;QACNC,OAAO;QACPC,iBAAiB;QACjB3B,OAAO;QACP4B,WAAW;UAAC;YAAEC,YAAY,EAAE,IAAI/B,SAAS,QAAQE;UAAM;;QACvD8B,QAAQC,OAAOC;MACjB;MACAnC,MAAMuB;;;AAId;",
|
5
|
+
"names": ["useEffect", "useState", "View", "router", "LoadProgressBar", "startDelay", "finishDelay", "initialPercent", "updateInterval", "sporadicness", "props", "loaded", "setLoaded", "width", "setWidth", "loadInterval", "dispose", "onLoadState", "state", "clearTimeout", "setTimeout", "intervalCount", "setInterval", "prev", "increment", "Math", "random", "min", "clearInterval", "onLayout", "e", "nativeEvent", "layout", "style", "display", "height", "position", "top", "left", "right", "backgroundColor", "transform", "translateX", "zIndex", "Number", "MAX_SAFE_INTEGER"]
|
6
|
+
}
|