| Server IP : 14.225.204.176 / Your IP : 216.73.216.252 Web Server : nginx/1.24.0 System : Linux nodejs-ybgk 6.8.0-40-generic #40-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 5 10:34:03 UTC 2024 x86_64 User : root ( 0) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/html/php/zinisoft.net-react/.next/cache/webpack/client-production/ |
Upload File : |
wpc %B�webpack/lib/cache/PackFileCacheStrategy�PackContentItems�`"� Compilation/modules|javascript/auto|G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\build\webpack\loaders\next-flight-client-entry-loader.js?modules=G%3A%5Czinisoft%5Czinisoft_beta%5Czinisoft.net%5Cfrontend-v3%5Ccomponents%5Cfooter%5CFooterSection.jsx&modules=G%3A%5Czinisoft%5Czinisoft_beta%5Czinisoft.net%5Cfrontend-v3%5Ccomponents%5Cheader%5CHeader.jsx&modules=G%3A%5Czinisoft%5Czinisoft_beta%5Czinisoft.net%5Cfrontend-v3%5Ccomponents%5Cjarallax%5CContactJarallax.jsx&modules=G%3A%5Czinisoft%5Czinisoft_beta%5Czinisoft.net%5Cfrontend-v3%5Ccomponents%5CStickyWrapper.jsx&modules=G%3A%5Czinisoft%5Czinisoft_beta%5Czinisoft.net%5Cfrontend-v3%5Cnode_modules%5Cnext%5Cdist%5Cclient%5Clink.js&server=false!|app-pages-browserr ResolverCachePlugin|normal|default|alias=[|server-only$=|next/dist/compiled/server-only/index|client-only$=|next/dist/compiled/client-only/index|next/dist/compiled/client-only$=|next/dist/compiled/client-only/index|next/dist/compiled/server-only=|next/dist/compiled/server-only/index|G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\head.js=|next/dist/client/components/noop-head|G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\image.js=|next/dist/api/image|G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\constants.js=|next/dist/api/constants|G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\router.js=|next/dist/api/router|G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dynamic.js=|next/dist/api/app-dynamic|G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\script.js=|next/dist/api/script|G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\link.js=|next/dist/api/link|G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\navigation.js=|next/dist/api/navigation|G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\headers.js=|next/dist/api/headers|G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\og.js=|next/dist/api/og|G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\document.js=|next/dist/api/document|G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\app.js=|next/dist/api/app|]|fallback=[|assert=|G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\compiled\assert\assert.js|buffer=|G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\compiled\buffer\index.js|constants=|G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\compiled\constants-browserify\constants.json|crypto=|G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\compiled\crypto-browserify\index.js|domain=|G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\compiled\domain-browser\index.js|http=|G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\compiled\stream-http\index.js|https=|G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\compiled\https-browserify\index.js|os=|G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\compiled\os-browserify\browser.js|path=|G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\compiled\path-browserify\index.js|punycode=|G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\compiled\punycode\punycode.js|process=|G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\build\polyfills\process.js|querystring=|G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\compiled\querystring-es3\index.js|stream=|G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\compiled\stream-browserify\index.js|string_decoder=|G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\compiled\string_decoder\string_decoder.js|sys=|G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\compiled\util\util.js|timers=|G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\compiled\timers-browserify\main.js|tty=|G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\compiled\tty-browserify\index.js|util=|G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\compiled\util\util.js|vm=|G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\compiled\vm-browserify\index.js|zlib=|G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\compiled\browserify-zlib\index.js|events=|G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\compiled\events\events.js|setImmediate=|G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\compiled\setimmediate\setImmediate.js|]|dependencyType=|esm|path=|G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3|request=|G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\components\ContactForm.jsx Compilation/modules|G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\build\webpack\loaders\next-swc-loader.js??ruleSet[1].rules[13].oneOf[6].use[0]!G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\shared\lib\router\router.js� Compilation/modules|javascript/auto|G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\build\webpack\loaders\next-flight-client-module-loader.js!G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\build\webpack\loaders\next-swc-loader.js??ruleSet[1].rules[13].oneOf[4].use[1]!G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\components\ContactForm.jsx|app-pages-browser4 Compilation/modules|javascript/auto|G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\build\webpack\loaders\next-flight-css-loader.js??ruleSet[1].rules[11].oneOf[13].use[0]!G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\compiled\mini-css-extract-plugin\loader.js??ruleSet[1].rules[11].oneOf[13].use[1]!G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\build\webpack\loaders\css-loader\src\index.js??ruleSet[1].rules[11].oneOf[13].use[2]!G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\build\webpack\loaders\postcss-loader\src\index.js??ruleSet[1].rules[11].oneOf[13].use[3]!G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\build\webpack\loaders\resolve-url-loader\index.js??ruleSet[1].rules[11].oneOf[13].use[4]!G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\compiled\sass-loader\cjs.js??ruleSet[1].rules[11].oneOf[13].use[5]!G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\public\assets\scss\main.scss|app-pages-browser� Compilation/modules|css|G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\build\webpack\loaders\css-loader\src\index.js??ruleSet[1].rules[11].oneOf[13].use[2]!G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\build\webpack\loaders\postcss-loader\src\index.js??ruleSet[1].rules[11].oneOf[13].use[3]!G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\build\webpack\loaders\resolve-url-loader\index.js??ruleSet[1].rules[11].oneOf[13].use[4]!G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\compiled\sass-loader\cjs.js??ruleSet[1].rules[11].oneOf[13].use[5]!G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\public\assets\fonts\CerebriSans\style.css|0 Compilation/modules|css|G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\build\webpack\loaders\css-loader\src\index.js??ruleSet[1].rules[11].oneOf[13].use[2]!G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\build\webpack\loaders\postcss-loader\src\index.js??ruleSet[1].rules[11].oneOf[13].use[3]!G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\build\webpack\loaders\resolve-url-loader\index.js??ruleSet[1].rules[11].oneOf[13].use[4]!G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\compiled\sass-loader\cjs.js??ruleSet[1].rules[11].oneOf[13].use[5]!G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\public\assets\fonts\LineIcons-PRO\WebFonts\Pro-Light\font-css\LinIconsPro-Light.css|0 Compilation/modules|css|G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\build\webpack\loaders\css-loader\src\index.js??ruleSet[1].rules[11].oneOf[13].use[2]!G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\build\webpack\loaders\postcss-loader\src\index.js??ruleSet[1].rules[11].oneOf[13].use[3]!G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\build\webpack\loaders\resolve-url-loader\index.js??ruleSet[1].rules[11].oneOf[13].use[4]!G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\compiled\sass-loader\cjs.js??ruleSet[1].rules[11].oneOf[13].use[5]!G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\public\assets\fonts\LineIcons-PRO\WebFonts\Pro-Regular\font-css\LineIcons.css|0� Compilation/modules|css|G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\build\webpack\loaders\css-loader\src\index.js??ruleSet[1].rules[11].oneOf[13].use[2]!G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\build\webpack\loaders\postcss-loader\src\index.js??ruleSet[1].rules[11].oneOf[13].use[3]!G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\build\webpack\loaders\resolve-url-loader\index.js??ruleSet[1].rules[11].oneOf[13].use[4]!G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\compiled\sass-loader\cjs.js??ruleSet[1].rules[11].oneOf[13].use[5]!G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\public\assets\fonts\Socicons\socicon.css|0� Compilation/modules|css|G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\build\webpack\loaders\css-loader\src\index.js??ruleSet[1].rules[11].oneOf[13].use[2]!G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\build\webpack\loaders\postcss-loader\src\index.js??ruleSet[1].rules[11].oneOf[13].use[3]!G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\build\webpack\loaders\resolve-url-loader\index.js??ruleSet[1].rules[11].oneOf[13].use[4]!G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\compiled\sass-loader\cjs.js??ruleSet[1].rules[11].oneOf[13].use[5]!G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\public\assets\scss\main.scss|0� FlagDependencyExportsPlugin|javascript/auto|G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\build\webpack\loaders\next-flight-client-module-loader.js!G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\build\webpack\loaders\next-swc-loader.js??ruleSet[1].rules[13].oneOf[4].use[1]!G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\components\ContactForm.jsx|app-pages-browser� Compilation/codeGeneration|javascript/auto|G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\build\webpack\loaders\next-flight-client-entry-loader.js?modules=G%3A%5Czinisoft%5Czinisoft_beta%5Czinisoft.net%5Cfrontend-v3%5Ccomponents%5Cfooter%5CFooterSection.jsx&modules=G%3A%5Czinisoft%5Czinisoft_beta%5Czinisoft.net%5Cfrontend-v3%5Ccomponents%5Cheader%5CHeader.jsx&modules=G%3A%5Czinisoft%5Czinisoft_beta%5Czinisoft.net%5Cfrontend-v3%5Ccomponents%5Cjarallax%5CContactJarallax.jsx&modules=G%3A%5Czinisoft%5Czinisoft_beta%5Czinisoft.net%5Cfrontend-v3%5Ccomponents%5CStickyWrapper.jsx&modules=G%3A%5Czinisoft%5Czinisoft_beta%5Czinisoft.net%5Cfrontend-v3%5Cnode_modules%5Cnext%5Cdist%5Cclient%5Clink.js&server=false!|app-pages-browser|webpack! Compilation/codeGeneration|G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\build\webpack\loaders\next-swc-loader.js??ruleSet[1].rules[13].oneOf[6].use[0]!G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\shared\lib\router\router.js|webpack� Compilation/codeGeneration|javascript/auto|G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\build\webpack\loaders\next-flight-client-module-loader.js!G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\build\webpack\loaders\next-swc-loader.js??ruleSet[1].rules[13].oneOf[4].use[1]!G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\components\ContactForm.jsx|app-pages-browser|webpack� Compilation/codeGeneration|css|G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\build\webpack\loaders\css-loader\src\index.js??ruleSet[1].rules[11].oneOf[13].use[2]!G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\build\webpack\loaders\postcss-loader\src\index.js??ruleSet[1].rules[11].oneOf[13].use[3]!G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\build\webpack\loaders\resolve-url-loader\index.js??ruleSet[1].rules[11].oneOf[13].use[4]!G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\compiled\sass-loader\cjs.js??ruleSet[1].rules[11].oneOf[13].use[5]!G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\public\assets\scss\main.scss|0|webpack�Compilation/codeGeneration|webpack/runtime/get mini-css chunk filename|webpack�Compilation/assets|chunk179�Compilation/assets|mini-css-extract-plugin.185�Compilation/assets|chunk570�Compilation/assets|chunk319�Compilation/assets|chunk535�TerserWebpackPlugin|static/chunks/main-f7e16395ad08b11e.js�TerserWebpackPlugin|static/chunks/app/layout-338571ad50854a7a.js�TerserWebpackPlugin|static/chunks/app/(others-pages)/contact/page-f4b896243a732385.js�TerserWebpackPlugin|static/chunks/app/(service)/services/page-950a443e8e83fb21.js�TerserWebpackPlugin|static/chunks/webpack-013b0348772e421d.js�CssMinimizerPlugin|static/css/aaa219804a2f64d3.css�RealContentHashPlugin|analyse|static/chunks/main-f7e16395ad08b11e.js�RealContentHashPlugin|analyse|static/css/aaa219804a2f64d3.css�RealContentHashPlugin|analyse|static/chunks/app/layout-338571ad50854a7a.js�RealContentHashPlugin|analyse|static/chunks/app/(others-pages)/contact/page-f4b896243a732385.js�RealContentHashPlugin|analyse|static/chunks/app/(service)/services/page-950a443e8e83fb21.js�RealContentHashPlugin|analyse|static/chunks/webpack-013b0348772e421d.js�RealContentHashPlugin|generate|static/chunks/webpack-013b0348772e421d.js�webpack/lib/NormalModule�webpack/lib/util/registerExternalSerializer�webpack-sources/RawSource� import(/* webpackMode: "eager" */ "G:\\zinisoft\\zinisoft_beta\\zinisoft.net\\frontend-v3\\components\\footer\\FooterSection.jsx");
import(/* webpackMode: "eager" */ "G:\\zinisoft\\zinisoft_beta\\zinisoft.net\\frontend-v3\\components\\header\\Header.jsx");
import(/* webpackMode: "eager" */ "G:\\zinisoft\\zinisoft_beta\\zinisoft.net\\frontend-v3\\components\\jarallax\\ContactJarallax.jsx");
import(/* webpackMode: "eager" */ "G:\\zinisoft\\zinisoft_beta\\zinisoft.net\\frontend-v3\\components\\StickyWrapper.jsx");
import(/* webpackMode: "eager" */ "G:\\zinisoft\\zinisoft_beta\\zinisoft.net\\frontend-v3\\node_modules\\next\\dist\\client\\link.js")�
�javascript/auto�app-pages-browser���alias�fallback`�server-only$�client-only$�next/dist/compiled/client-only$�next/dist/compiled/server-only�G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\head.js�G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\image.js�G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\constants.js�G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\router.js�G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dynamic.js�G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\script.js�G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\link.js�G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\navigation.js�G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\headers.js�G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\og.js�G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\document.js�G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\app.js�next/dist/compiled/server-only/index�next/dist/compiled/client-only/index���next/dist/client/components/noop-head�next/dist/api/image�next/dist/api/constants�next/dist/api/router�next/dist/api/app-dynamic�next/dist/api/script�next/dist/api/link�next/dist/api/navigation�next/dist/api/headers�next/dist/api/og�next/dist/api/document�next/dist/api/app`�assert�buffer�constants�crypto�domain�http�https�os�path�punycode�process�querystring�stream�string_decoder�sys�timers�tty�util�vm�zlib�events�setImmediate�G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\compiled\assert\assert.js�G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\compiled\buffer\index.js�G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\compiled\constants-browserify\constants.json�G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\compiled\crypto-browserify\index.js�G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\compiled\domain-browser\index.js�G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\compiled\stream-http\index.js�G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\compiled\https-browserify\index.js�G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\compiled\os-browserify\browser.js�G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\compiled\path-browserify\index.js�G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\compiled\punycode\punycode.js�G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\build\polyfills\process.js�G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\compiled\querystring-es3\index.js�G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\compiled\stream-browserify\index.js�G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\compiled\string_decoder\string_decoder.js�G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\compiled\util\util.js�G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\compiled\timers-browserify\main.js�G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\compiled\tty-browserify\index.js��G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\compiled\vm-browserify\index.js�G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\compiled\browserify-zlib\index.js�G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\compiled\events\events.js�G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\compiled\setimmediate\setImmediate.js
�`
�cacheable�parsed�fileDependencies�contextDependencies�missingDependencies�buildDependencies�valueDependencies�hash�assets�assetsInfo�rsc�topLevelDeclarations�snapshot�webpack/lib/util/LazySet� G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\build\webpack\loaders\next-flight-client-entry-loader.js�webpack/DefinePlugin_hash�9119f935�893823965d9bac5a�type�client� �webpack/lib/FileSystemInfo�Snapshot �
�|�yB�webpack/lib/dependencies/ImportEagerDependency @� �G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\components\footer\FooterSection.jsx��
A� � �G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\components\header\Header.jsx��
A � �G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\components\jarallax\ContactJarallax.jsx��
A� �G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\components\StickyWrapper.jsx��
A � �G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\client\link.js��
�webpack/lib/cache/ResolverCachePlugin`�_ResolverCachePluginCacheMiss�context��request�query�fragment�module�directory�file�internal�fullySpecified�descriptionFilePath�descriptionFileData�descriptionFileRoot�relativePath�__innerRequest_request�__innerRequest_relativePath�__innerRequest�issuer�issuerLayer�compiler�l�����G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\components\ContactForm.jsx�� �G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\package.json�name�version�private�scripts�dependencies�zinisoft-frontend�1.3.0�dev�build�start�lint�start http://localhost:3000 && next dev�next build�next start�next lint`�@hookform/resolvers�aos�bootstrap�eslint-config-next�jarallax�next�photoswipe�react�react-accessible-accordion�react-animated-cursor�react-countup�react-dom�react-hook-form�react-modal-video�react-photoswipe-gallery�react-pro-sidebar�react-slick�react-tooltip�react-transition-group�react-visibility-sensor�sass�slick-carouselv����yup�^2.9.11�^2.3.4�^5.1.3�^14.1.0�^1.12.8��^5.3.7�^18.2.0�^5.0.0�^2.7.0�^6.4.2��^7.44.3�^2.0.2�^2.2.7�^0.7.1�^0.29.0�^4.5.1�^4.4.5�^5.1.1�^1.62.1�^1.8.1�^0.12.5�^0.32.11�G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3�./components/ContactForm.jsx��@� pp�|�yB
��G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\components�safeTime�timestampz���! �<�{�yB �<�{�yB�d12f743d4671b34c� �
�G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\components\package.json
�
�|�yB
�G:\zinisoft\zinisoft_beta\zinisoft.net�G:\zinisoft\zinisoft_beta�G:\zinisoft�G:\�� �� �� �� �� ��! �8�yB �8�yB�9ee201e165a02c33 9A // tslint:disable:no-console
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
0 && (module.exports = {
default: null,
matchesMiddleware: null,
createKey: null
});
function _export(target, all) {
for(var name in all)Object.defineProperty(target, name, {
enumerable: true,
get: all[name]
});
}
_export(exports, {
default: function() {
return Router;
},
matchesMiddleware: function() {
return matchesMiddleware;
},
createKey: function() {
return createKey;
}
});
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
const _removetrailingslash = require("./utils/remove-trailing-slash");
const _routeloader = require("../../../client/route-loader");
const _script = require("../../../client/script");
const _iserror = /*#__PURE__*/ _interop_require_wildcard._(require("../../../lib/is-error"));
const _denormalizepagepath = require("../page-path/denormalize-page-path");
const _normalizelocalepath = require("../i18n/normalize-locale-path");
const _mitt = /*#__PURE__*/ _interop_require_default._(require("../mitt"));
const _utils = require("../utils");
const _isdynamic = require("./utils/is-dynamic");
const _parserelativeurl = require("./utils/parse-relative-url");
const _resolverewrites = /*#__PURE__*/ _interop_require_default._(require("./utils/resolve-rewrites"));
const _routematcher = require("./utils/route-matcher");
const _routeregex = require("./utils/route-regex");
const _formaturl = require("./utils/format-url");
const _detectdomainlocale = require("../../../client/detect-domain-locale");
const _parsepath = require("./utils/parse-path");
const _addlocale = require("../../../client/add-locale");
const _removelocale = require("../../../client/remove-locale");
const _removebasepath = require("../../../client/remove-base-path");
const _addbasepath = require("../../../client/add-base-path");
const _hasbasepath = require("../../../client/has-base-path");
const _resolvehref = require("../../../client/resolve-href");
const _isapiroute = require("../../../lib/is-api-route");
const _getnextpathnameinfo = require("./utils/get-next-pathname-info");
const _formatnextpathnameinfo = require("./utils/format-next-pathname-info");
const _comparestates = require("./utils/compare-states");
const _islocalurl = require("./utils/is-local-url");
const _isbot = require("./utils/is-bot");
const _omit = require("./utils/omit");
const _interpolateas = require("./utils/interpolate-as");
const _handlesmoothscroll = require("./utils/handle-smooth-scroll");
function buildCancellationError() {
return Object.assign(new Error("Route Cancelled"), {
cancelled: true
});
}
async function matchesMiddleware(options) {
const matchers = await Promise.resolve(options.router.pageLoader.getMiddleware());
if (!matchers) return false;
const { pathname: asPathname } = (0, _parsepath.parsePath)(options.asPath);
// remove basePath first since path prefix has to be in the order of `/${basePath}/${locale}`
const cleanedAs = (0, _hasbasepath.hasBasePath)(asPathname) ? (0, _removebasepath.removeBasePath)(asPathname) : asPathname;
const asWithBasePathAndLocale = (0, _addbasepath.addBasePath)((0, _addlocale.addLocale)(cleanedAs, options.locale));
// Check only path match on client. Matching "has" should be done on server
// where we can access more info such as headers, HttpOnly cookie, etc.
return matchers.some((m)=>new RegExp(m.regexp).test(asWithBasePathAndLocale));
}
function stripOrigin(url) {
const origin = (0, _utils.getLocationOrigin)();
return url.startsWith(origin) ? url.substring(origin.length) : url;
}
function prepareUrlAs(router, url, as) {
// If url and as provided as an object representation,
// we'll format them into the string version here.
let [resolvedHref, resolvedAs] = (0, _resolvehref.resolveHref)(router, url, true);
const origin = (0, _utils.getLocationOrigin)();
const hrefWasAbsolute = resolvedHref.startsWith(origin);
const asWasAbsolute = resolvedAs && resolvedAs.startsWith(origin);
resolvedHref = stripOrigin(resolvedHref);
resolvedAs = resolvedAs ? stripOrigin(resolvedAs) : resolvedAs;
const preparedUrl = hrefWasAbsolute ? resolvedHref : (0, _addbasepath.addBasePath)(resolvedHref);
const preparedAs = as ? stripOrigin((0, _resolvehref.resolveHref)(router, as)) : resolvedAs || resolvedHref;
return {
url: preparedUrl,
as: asWasAbsolute ? preparedAs : (0, _addbasepath.addBasePath)(preparedAs)
};
}
function resolveDynamicRoute(pathname, pages) {
const cleanPathname = (0, _removetrailingslash.removeTrailingSlash)((0, _denormalizepagepath.denormalizePagePath)(pathname));
if (cleanPathname === "/404" || cleanPathname === "/_error") {
return pathname;
}
// handle resolving href for dynamic routes
if (!pages.includes(cleanPathname)) {
// eslint-disable-next-line array-callback-return
pages.some((page)=>{
if ((0, _isdynamic.isDynamicRoute)(page) && (0, _routeregex.getRouteRegex)(page).re.test(cleanPathname)) {
pathname = page;
return true;
}
});
}
return (0, _removetrailingslash.removeTrailingSlash)(pathname);
}
function getMiddlewareData(source, response, options) {
const nextConfig = {
basePath: options.router.basePath,
i18n: {
locales: options.router.locales
},
trailingSlash: Boolean(process.env.__NEXT_TRAILING_SLASH)
};
const rewriteHeader = response.headers.get("x-nextjs-rewrite");
let rewriteTarget = rewriteHeader || response.headers.get("x-nextjs-matched-path");
const matchedPath = response.headers.get("x-matched-path");
if (matchedPath && !rewriteTarget && !matchedPath.includes("__next_data_catchall") && !matchedPath.includes("/_error") && !matchedPath.includes("/404")) {
// leverage x-matched-path to detect next.config.js rewrites
rewriteTarget = matchedPath;
}
if (rewriteTarget) {
if (rewriteTarget.startsWith("/") || process.env.__NEXT_EXTERNAL_MIDDLEWARE_REWRITE_RESOLVE) {
const parsedRewriteTarget = (0, _parserelativeurl.parseRelativeUrl)(rewriteTarget);
const pathnameInfo = (0, _getnextpathnameinfo.getNextPathnameInfo)(parsedRewriteTarget.pathname, {
nextConfig,
parseData: true
});
let fsPathname = (0, _removetrailingslash.removeTrailingSlash)(pathnameInfo.pathname);
return Promise.all([
options.router.pageLoader.getPageList(),
(0, _routeloader.getClientBuildManifest)()
]).then((param)=>{
let [pages, { __rewrites: rewrites }] = param;
let as = (0, _addlocale.addLocale)(pathnameInfo.pathname, pathnameInfo.locale);
if ((0, _isdynamic.isDynamicRoute)(as) || !rewriteHeader && pages.includes((0, _normalizelocalepath.normalizeLocalePath)((0, _removebasepath.removeBasePath)(as), options.router.locales).pathname)) {
const parsedSource = (0, _getnextpathnameinfo.getNextPathnameInfo)((0, _parserelativeurl.parseRelativeUrl)(source).pathname, {
nextConfig: process.env.__NEXT_HAS_REWRITES ? undefined : nextConfig,
parseData: true
});
as = (0, _addbasepath.addBasePath)(parsedSource.pathname);
parsedRewriteTarget.pathname = as;
}
if (process.env.__NEXT_HAS_REWRITES) {
const result = (0, _resolverewrites.default)(as, pages, rewrites, parsedRewriteTarget.query, (path)=>resolveDynamicRoute(path, pages), options.router.locales);
if (result.matchedPage) {
parsedRewriteTarget.pathname = result.parsedAs.pathname;
as = parsedRewriteTarget.pathname;
Object.assign(parsedRewriteTarget.query, result.parsedAs.query);
}
} else if (!pages.includes(fsPathname)) {
const resolvedPathname = resolveDynamicRoute(fsPathname, pages);
if (resolvedPathname !== fsPathname) {
fsPathname = resolvedPathname;
}
}
const resolvedHref = !pages.includes(fsPathname) ? resolveDynamicRoute((0, _normalizelocalepath.normalizeLocalePath)((0, _removebasepath.removeBasePath)(parsedRewriteTarget.pathname), options.router.locales).pathname, pages) : fsPathname;
if ((0, _isdynamic.isDynamicRoute)(resolvedHref)) {
const matches = (0, _routematcher.getRouteMatcher)((0, _routeregex.getRouteRegex)(resolvedHref))(as);
Object.assign(parsedRewriteTarget.query, matches || {});
}
return {
type: "rewrite",
parsedAs: parsedRewriteTarget,
resolvedHref
};
});
}
const src = (0, _parsepath.parsePath)(source);
const pathname = (0, _formatnextpathnameinfo.formatNextPathnameInfo)({
...(0, _getnextpathnameinfo.getNextPathnameInfo)(src.pathname, {
nextConfig,
parseData: true
}),
defaultLocale: options.router.defaultLocale,
buildId: ""
});
return Promise.resolve({
type: "redirect-external",
destination: "" + pathname + src.query + src.hash
});
}
const redirectTarget = response.headers.get("x-nextjs-redirect");
if (redirectTarget) {
if (redirectTarget.startsWith("/")) {
const src = (0, _parsepath.parsePath)(redirectTarget);
const pathname = (0, _formatnextpathnameinfo.formatNextPathnameInfo)({
...(0, _getnextpathnameinfo.getNextPathnameInfo)(src.pathname, {
nextConfig,
parseData: true
}),
defaultLocale: options.router.defaultLocale,
buildId: ""
});
return Promise.resolve({
type: "redirect-internal",
newAs: "" + pathname + src.query + src.hash,
newUrl: "" + pathname + src.query + src.hash
});
}
return Promise.resolve({
type: "redirect-external",
destination: redirectTarget
});
}
return Promise.resolve({
type: "next"
});
}
async function withMiddlewareEffects(options) {
const matches = await matchesMiddleware(options);
if (!matches || !options.fetchData) {
return null;
}
try {
const data = await options.fetchData();
const effect = await getMiddlewareData(data.dataHref, data.response, options);
return {
dataHref: data.dataHref,
json: data.json,
response: data.response,
text: data.text,
cacheKey: data.cacheKey,
effect
};
} catch (e) {
/**
* TODO: Revisit this in the future.
* For now we will not consider middleware data errors to be fatal.
* maybe we should revisit in the future.
*/ return null;
}
}
const manualScrollRestoration = process.env.__NEXT_SCROLL_RESTORATION && "object" !== "undefined" && "scrollRestoration" in window.history && !!function() {
try {
let v = "__next";
// eslint-disable-next-line no-sequences
return sessionStorage.setItem(v, v), sessionStorage.removeItem(v), true;
} catch (n) {}
}();
const SSG_DATA_NOT_FOUND = Symbol("SSG_DATA_NOT_FOUND");
function fetchRetry(url, attempts, options) {
return fetch(url, {
// Cookies are required to be present for Next.js' SSG "Preview Mode".
// Cookies may also be required for `getServerSideProps`.
//
// > `fetch` won’t send cookies, unless you set the credentials init
// > option.
// https://developer.mozilla.org/docs/Web/API/Fetch_API/Using_Fetch
//
// > For maximum browser compatibility when it comes to sending &
// > receiving cookies, always supply the `credentials: 'same-origin'`
// > option instead of relying on the default.
// https://github.com/github/fetch#caveats
credentials: "same-origin",
method: options.method || "GET",
headers: Object.assign({}, options.headers, {
"x-nextjs-data": "1"
})
}).then((response)=>{
return !response.ok && attempts > 1 && response.status >= 500 ? fetchRetry(url, attempts - 1, options) : response;
});
}
function tryToParseAsJSON(text) {
try {
return JSON.parse(text);
} catch (error) {
return null;
}
}
function fetchNextData(param) {
let { dataHref, inflightCache, isPrefetch, hasMiddleware, isServerRender, parseJSON, persistCache, isBackground, unstable_skipClientCache } = param;
const { href: cacheKey } = new URL(dataHref, window.location.href);
var _params_method;
const getData = (params)=>fetchRetry(dataHref, isServerRender ? 3 : 1, {
headers: Object.assign({}, isPrefetch ? {
purpose: "prefetch"
} : {}, isPrefetch && hasMiddleware ? {
"x-middleware-prefetch": "1"
} : {}),
method: (_params_method = params == null ? void 0 : params.method) != null ? _params_method : "GET"
}).then((response)=>{
if (response.ok && (params == null ? void 0 : params.method) === "HEAD") {
return {
dataHref,
response,
text: "",
json: {},
cacheKey
};
}
return response.text().then((text)=>{
if (!response.ok) {
/**
* When the data response is a redirect because of a middleware
* we do not consider it an error. The headers must bring the
* mapped location.
* TODO: Change the status code in the handler.
*/ if (hasMiddleware && [
301,
302,
307,
308
].includes(response.status)) {
return {
dataHref,
response,
text,
json: {},
cacheKey
};
}
if (response.status === 404) {
var _tryToParseAsJSON;
if ((_tryToParseAsJSON = tryToParseAsJSON(text)) == null ? void 0 : _tryToParseAsJSON.notFound) {
return {
dataHref,
json: {
notFound: SSG_DATA_NOT_FOUND
},
response,
text,
cacheKey
};
}
}
const error = new Error("Failed to load static props");
/**
* We should only trigger a server-side transition if this was
* caused on a client-side transition. Otherwise, we'd get into
* an infinite loop.
*/ if (!isServerRender) {
(0, _routeloader.markAssetError)(error);
}
throw error;
}
return {
dataHref,
json: parseJSON ? tryToParseAsJSON(text) : null,
response,
text,
cacheKey
};
});
}).then((data)=>{
if (!persistCache || "production" !== "production" || data.response.headers.get("x-middleware-cache") === "no-cache") {
delete inflightCache[cacheKey];
}
return data;
}).catch((err)=>{
if (!unstable_skipClientCache) {
delete inflightCache[cacheKey];
}
if (err.message === "Failed to fetch" || // firefox
err.message === "NetworkError when attempting to fetch resource." || // safari
err.message === "Load failed") {
(0, _routeloader.markAssetError)(err);
}
throw err;
});
// when skipping client cache we wait to update
// inflight cache until successful data response
// this allows racing click event with fetching newer data
// without blocking navigation when stale data is available
if (unstable_skipClientCache && persistCache) {
return getData({}).then((data)=>{
inflightCache[cacheKey] = Promise.resolve(data);
return data;
});
}
if (inflightCache[cacheKey] !== undefined) {
return inflightCache[cacheKey];
}
return inflightCache[cacheKey] = getData(isBackground ? {
method: "HEAD"
} : {});
}
function createKey() {
return Math.random().toString(36).slice(2, 10);
}
function handleHardNavigation(param) {
let { url, router } = param;
// ensure we don't trigger a hard navigation to the same
// URL as this can end up with an infinite refresh
if (url === (0, _addbasepath.addBasePath)((0, _addlocale.addLocale)(router.asPath, router.locale))) {
throw new Error("Invariant: attempted to hard navigate to the same URL " + url + " " + location.href);
}
window.location.href = url;
}
const getCancelledHandler = (param)=>{
let { route, router } = param;
let cancelled = false;
const cancel = router.clc = ()=>{
cancelled = true;
};
const handleCancelled = ()=>{
if (cancelled) {
const error = new Error('Abort fetching component for route: "' + route + '"');
error.cancelled = true;
throw error;
}
if (cancel === router.clc) {
router.clc = null;
}
};
return handleCancelled;
};
class Router {
reload() {
window.location.reload();
}
/**
* Go back in history
*/ back() {
window.history.back();
}
/**
* Go forward in history
*/ forward() {
window.history.forward();
}
/**
* Performs a `pushState` with arguments
* @param url of the route
* @param as masks `url` for the browser
* @param options object you can define `shallow` and other options
*/ push(url, as, options) {
if (options === void 0) options = {};
if (process.env.__NEXT_SCROLL_RESTORATION) {
// TODO: remove in the future when we update history before route change
// is complete, as the popstate event should handle this capture.
if (manualScrollRestoration) {
try {
// Snapshot scroll position right before navigating to a new page:
sessionStorage.setItem("__next_scroll_" + this._key, JSON.stringify({
x: self.pageXOffset,
y: self.pageYOffset
}));
} catch (e) {}
}
}
({ url, as } = prepareUrlAs(this, url, as));
return this.change("pushState", url, as, options);
}
/**
* Performs a `replaceState` with arguments
* @param url of the route
* @param as masks `url` for the browser
* @param options object you can define `shallow` and other options
*/ replace(url, as, options) {
if (options === void 0) options = {};
({ url, as } = prepareUrlAs(this, url, as));
return this.change("replaceState", url, as, options);
}
async _bfl(as, resolvedAs, locale, skipNavigate) {
if (process.env.__NEXT_CLIENT_ROUTER_FILTER_ENABLED) {
let matchesBflStatic = false;
let matchesBflDynamic = false;
for (const curAs of [
as,
resolvedAs
]){
if (curAs) {
const asNoSlash = (0, _removetrailingslash.removeTrailingSlash)(new URL(curAs, "http://n").pathname);
const asNoSlashLocale = (0, _addbasepath.addBasePath)((0, _addlocale.addLocale)(asNoSlash, locale || this.locale));
if (asNoSlash !== (0, _removetrailingslash.removeTrailingSlash)(new URL(this.asPath, "http://n").pathname)) {
var _this__bfl_s, _this__bfl_s1;
matchesBflStatic = matchesBflStatic || !!((_this__bfl_s = this._bfl_s) == null ? void 0 : _this__bfl_s.contains(asNoSlash)) || !!((_this__bfl_s1 = this._bfl_s) == null ? void 0 : _this__bfl_s1.contains(asNoSlashLocale));
for (const normalizedAS of [
asNoSlash,
asNoSlashLocale
]){
// if any sub-path of as matches a dynamic filter path
// it should be hard navigated
const curAsParts = normalizedAS.split("/");
for(let i = 0; !matchesBflDynamic && i < curAsParts.length + 1; i++){
var _this__bfl_d;
const currentPart = curAsParts.slice(0, i).join("/");
if (currentPart && ((_this__bfl_d = this._bfl_d) == null ? void 0 : _this__bfl_d.contains(currentPart))) {
matchesBflDynamic = true;
break;
}
}
}
// if the client router filter is matched then we trigger
// a hard navigation
if (matchesBflStatic || matchesBflDynamic) {
if (skipNavigate) {
return true;
}
handleHardNavigation({
url: (0, _addbasepath.addBasePath)((0, _addlocale.addLocale)(as, locale || this.locale, this.defaultLocale)),
router: this
});
return new Promise(()=>{});
}
}
}
}
}
return false;
}
async change(method, url, as, options, forcedScroll) {
var _this_components_pathname;
if (!(0, _islocalurl.isLocalURL)(url)) {
handleHardNavigation({
url,
router: this
});
return false;
}
// WARNING: `_h` is an internal option for handing Next.js client-side
// hydration. Your app should _never_ use this property. It may change at
// any time without notice.
const isQueryUpdating = options._h === 1;
if (!isQueryUpdating && !options.shallow) {
await this._bfl(as, undefined, options.locale);
}
let shouldResolveHref = isQueryUpdating || options._shouldResolveHref || (0, _parsepath.parsePath)(url).pathname === (0, _parsepath.parsePath)(as).pathname;
const nextState = {
...this.state
};
// for static pages with query params in the URL we delay
// marking the router ready until after the query is updated
// or a navigation has occurred
const readyStateChange = this.isReady !== true;
this.isReady = true;
const isSsr = this.isSsr;
if (!isQueryUpdating) {
this.isSsr = false;
}
// if a route transition is already in progress before
// the query updating is triggered ignore query updating
if (isQueryUpdating && this.clc) {
return false;
}
const prevLocale = nextState.locale;
if (process.env.__NEXT_I18N_SUPPORT) {
nextState.locale = options.locale === false ? this.defaultLocale : options.locale || nextState.locale;
if (typeof options.locale === "undefined") {
options.locale = nextState.locale;
}
const parsedAs = (0, _parserelativeurl.parseRelativeUrl)((0, _hasbasepath.hasBasePath)(as) ? (0, _removebasepath.removeBasePath)(as) : as);
const localePathResult = (0, _normalizelocalepath.normalizeLocalePath)(parsedAs.pathname, this.locales);
if (localePathResult.detectedLocale) {
nextState.locale = localePathResult.detectedLocale;
parsedAs.pathname = (0, _addbasepath.addBasePath)(parsedAs.pathname);
as = (0, _formaturl.formatWithValidation)(parsedAs);
url = (0, _addbasepath.addBasePath)((0, _normalizelocalepath.normalizeLocalePath)((0, _hasbasepath.hasBasePath)(url) ? (0, _removebasepath.removeBasePath)(url) : url, this.locales).pathname);
}
let didNavigate = false;
// we need to wrap this in the env check again since regenerator runtime
// moves this on its own due to the return
if (process.env.__NEXT_I18N_SUPPORT) {
var _this_locales;
// if the locale isn't configured hard navigate to show 404 page
if (!((_this_locales = this.locales) == null ? void 0 : _this_locales.includes(nextState.locale))) {
parsedAs.pathname = (0, _addlocale.addLocale)(parsedAs.pathname, nextState.locale);
handleHardNavigation({
url: (0, _formaturl.formatWithValidation)(parsedAs),
router: this
});
// this was previously a return but was removed in favor
// of better dead code elimination with regenerator runtime
didNavigate = true;
}
}
const detectedDomain = (0, _detectdomainlocale.detectDomainLocale)(this.domainLocales, undefined, nextState.locale);
// we need to wrap this in the env check again since regenerator runtime
// moves this on its own due to the return
if (process.env.__NEXT_I18N_SUPPORT) {
// if we are navigating to a domain locale ensure we redirect to the
// correct domain
if (!didNavigate && detectedDomain && this.isLocaleDomain && self.location.hostname !== detectedDomain.domain) {
const asNoBasePath = (0, _removebasepath.removeBasePath)(as);
handleHardNavigation({
url: "http" + (detectedDomain.http ? "" : "s") + "://" + detectedDomain.domain + (0, _addbasepath.addBasePath)("" + (nextState.locale === detectedDomain.defaultLocale ? "" : "/" + nextState.locale) + (asNoBasePath === "/" ? "" : asNoBasePath) || "/"),
router: this
});
// this was previously a return but was removed in favor
// of better dead code elimination with regenerator runtime
didNavigate = true;
}
}
if (didNavigate) {
return new Promise(()=>{});
}
}
// marking route changes as a navigation start entry
if (_utils.ST) {
performance.mark("routeChange");
}
const { shallow = false, scroll = true } = options;
const routeProps = {
shallow
};
if (this._inFlightRoute && this.clc) {
if (!isSsr) {
Router.events.emit("routeChangeError", buildCancellationError(), this._inFlightRoute, routeProps);
}
this.clc();
this.clc = null;
}
as = (0, _addbasepath.addBasePath)((0, _addlocale.addLocale)((0, _hasbasepath.hasBasePath)(as) ? (0, _removebasepath.removeBasePath)(as) : as, options.locale, this.defaultLocale));
const cleanedAs = (0, _removelocale.removeLocale)((0, _hasbasepath.hasBasePath)(as) ? (0, _removebasepath.removeBasePath)(as) : as, nextState.locale);
this._inFlightRoute = as;
const localeChange = prevLocale !== nextState.locale;
// If the url change is only related to a hash change
// We should not proceed. We should only change the state.
if (!isQueryUpdating && this.onlyAHashChange(cleanedAs) && !localeChange) {
nextState.asPath = cleanedAs;
Router.events.emit("hashChangeStart", as, routeProps);
// TODO: do we need the resolved href when only a hash change?
this.changeState(method, url, as, {
...options,
scroll: false
});
if (scroll) {
this.scrollToHash(cleanedAs);
}
try {
await this.set(nextState, this.components[nextState.route], null);
} catch (err) {
if ((0, _iserror.default)(err) && err.cancelled) {
Router.events.emit("routeChangeError", err, cleanedAs, routeProps);
}
throw err;
}
Router.events.emit("hashChangeComplete", as, routeProps);
return true;
}
let parsed = (0, _parserelativeurl.parseRelativeUrl)(url);
let { pathname, query } = parsed;
// The build manifest needs to be loaded before auto-static dynamic pages
// get their query parameters to allow ensuring they can be parsed properly
// when rewritten to
let pages, rewrites;
try {
[pages, { __rewrites: rewrites }] = await Promise.all([
this.pageLoader.getPageList(),
(0, _routeloader.getClientBuildManifest)(),
this.pageLoader.getMiddleware()
]);
} catch (err) {
// If we fail to resolve the page list or client-build manifest, we must
// do a server-side transition:
handleHardNavigation({
url: as,
router: this
});
return false;
}
// If asked to change the current URL we should reload the current page
// (not location.reload() but reload getInitialProps and other Next.js stuffs)
// We also need to set the method = replaceState always
// as this should not go into the history (That's how browsers work)
// We should compare the new asPath to the current asPath, not the url
if (!this.urlIsNew(cleanedAs) && !localeChange) {
method = "replaceState";
}
// we need to resolve the as value using rewrites for dynamic SSG
// pages to allow building the data URL correctly
let resolvedAs = as;
// url and as should always be prefixed with basePath by this
// point by either next/link or router.push/replace so strip the
// basePath from the pathname to match the pages dir 1-to-1
pathname = pathname ? (0, _removetrailingslash.removeTrailingSlash)((0, _removebasepath.removeBasePath)(pathname)) : pathname;
let route = (0, _removetrailingslash.removeTrailingSlash)(pathname);
const parsedAsPathname = as.startsWith("/") && (0, _parserelativeurl.parseRelativeUrl)(as).pathname;
// if we detected the path as app route during prefetching
// trigger hard navigation
if ((_this_components_pathname = this.components[pathname]) == null ? void 0 : _this_components_pathname.__appRouter) {
handleHardNavigation({
url: as,
router: this
});
return new Promise(()=>{});
}
const isMiddlewareRewrite = !!(parsedAsPathname && route !== parsedAsPathname && (!(0, _isdynamic.isDynamicRoute)(route) || !(0, _routematcher.getRouteMatcher)((0, _routeregex.getRouteRegex)(route))(parsedAsPathname)));
// we don't attempt resolve asPath when we need to execute
// middleware as the resolving will occur server-side
const isMiddlewareMatch = !options.shallow && await matchesMiddleware({
asPath: as,
locale: nextState.locale,
router: this
});
if (isQueryUpdating && isMiddlewareMatch) {
shouldResolveHref = false;
}
if (shouldResolveHref && pathname !== "/_error") {
options._shouldResolveHref = true;
if (process.env.__NEXT_HAS_REWRITES && as.startsWith("/")) {
const rewritesResult = (0, _resolverewrites.default)((0, _addbasepath.addBasePath)((0, _addlocale.addLocale)(cleanedAs, nextState.locale), true), pages, rewrites, query, (p)=>resolveDynamicRoute(p, pages), this.locales);
if (rewritesResult.externalDest) {
handleHardNavigation({
url: as,
router: this
});
return true;
}
if (!isMiddlewareMatch) {
resolvedAs = rewritesResult.asPath;
}
if (rewritesResult.matchedPage && rewritesResult.resolvedHref) {
// if this directly matches a page we need to update the href to
// allow the correct page chunk to be loaded
pathname = rewritesResult.resolvedHref;
parsed.pathname = (0, _addbasepath.addBasePath)(pathname);
if (!isMiddlewareMatch) {
url = (0, _formaturl.formatWithValidation)(parsed);
}
}
} else {
parsed.pathname = resolveDynamicRoute(pathname, pages);
if (parsed.pathname !== pathname) {
pathname = parsed.pathname;
parsed.pathname = (0, _addbasepath.addBasePath)(pathname);
if (!isMiddlewareMatch) {
url = (0, _formaturl.formatWithValidation)(parsed);
}
}
}
}
if (!(0, _islocalurl.isLocalURL)(as)) {
if ("production" !== "production") {
throw new Error('Invalid href: "' + url + '" and as: "' + as + '", received relative href and external as' + "\nSee more info: https://nextjs.org/docs/messages/invalid-relative-url-external-as");
}
handleHardNavigation({
url: as,
router: this
});
return false;
}
resolvedAs = (0, _removelocale.removeLocale)((0, _removebasepath.removeBasePath)(resolvedAs), nextState.locale);
route = (0, _removetrailingslash.removeTrailingSlash)(pathname);
let routeMatch = false;
if ((0, _isdynamic.isDynamicRoute)(route)) {
const parsedAs = (0, _parserelativeurl.parseRelativeUrl)(resolvedAs);
const asPathname = parsedAs.pathname;
const routeRegex = (0, _routeregex.getRouteRegex)(route);
routeMatch = (0, _routematcher.getRouteMatcher)(routeRegex)(asPathname);
const shouldInterpolate = route === asPathname;
const interpolatedAs = shouldInterpolate ? (0, _interpolateas.interpolateAs)(route, asPathname, query) : {};
if (!routeMatch || shouldInterpolate && !interpolatedAs.result) {
const missingParams = Object.keys(routeRegex.groups).filter((param)=>!query[param] && !routeRegex.groups[param].optional);
if (missingParams.length > 0 && !isMiddlewareMatch) {
if ("production" !== "production") {
console.warn("" + (shouldInterpolate ? "Interpolating href" : "Mismatching `as` and `href`") + " failed to manually provide " + ("the params: " + missingParams.join(", ") + " in the `href`'s `query`"));
}
throw new Error((shouldInterpolate ? "The provided `href` (" + url + ") value is missing query values (" + missingParams.join(", ") + ") to be interpolated properly. " : "The provided `as` value (" + asPathname + ") is incompatible with the `href` value (" + route + "). ") + ("Read more: https://nextjs.org/docs/messages/" + (shouldInterpolate ? "href-interpolation-failed" : "incompatible-href-as")));
}
} else if (shouldInterpolate) {
as = (0, _formaturl.formatWithValidation)(Object.assign({}, parsedAs, {
pathname: interpolatedAs.result,
query: (0, _omit.omit)(query, interpolatedAs.params)
}));
} else {
// Merge params into `query`, overwriting any specified in search
Object.assign(query, routeMatch);
}
}
if (!isQueryUpdating) {
Router.events.emit("routeChangeStart", as, routeProps);
}
const isErrorRoute = this.pathname === "/404" || this.pathname === "/_error";
try {
var _self___NEXT_DATA___props_pageProps, _self___NEXT_DATA___props, _routeInfo_props;
let routeInfo = await this.getRouteInfo({
route,
pathname,
query,
as,
resolvedAs,
routeProps,
locale: nextState.locale,
isPreview: nextState.isPreview,
hasMiddleware: isMiddlewareMatch,
unstable_skipClientCache: options.unstable_skipClientCache,
isQueryUpdating: isQueryUpdating && !this.isFallback,
isMiddlewareRewrite
});
if (!isQueryUpdating && !options.shallow) {
await this._bfl(as, "resolvedAs" in routeInfo ? routeInfo.resolvedAs : undefined, nextState.locale);
}
if ("route" in routeInfo && isMiddlewareMatch) {
pathname = routeInfo.route || route;
route = pathname;
if (!routeProps.shallow) {
query = Object.assign({}, routeInfo.query || {}, query);
}
const cleanedParsedPathname = (0, _hasbasepath.hasBasePath)(parsed.pathname) ? (0, _removebasepath.removeBasePath)(parsed.pathname) : parsed.pathname;
if (routeMatch && pathname !== cleanedParsedPathname) {
Object.keys(routeMatch).forEach((key)=>{
if (routeMatch && query[key] === routeMatch[key]) {
delete query[key];
}
});
}
if ((0, _isdynamic.isDynamicRoute)(pathname)) {
const prefixedAs = !routeProps.shallow && routeInfo.resolvedAs ? routeInfo.resolvedAs : (0, _addbasepath.addBasePath)((0, _addlocale.addLocale)(new URL(as, location.href).pathname, nextState.locale), true);
let rewriteAs = prefixedAs;
if ((0, _hasbasepath.hasBasePath)(rewriteAs)) {
rewriteAs = (0, _removebasepath.removeBasePath)(rewriteAs);
}
if (process.env.__NEXT_I18N_SUPPORT) {
const localeResult = (0, _normalizelocalepath.normalizeLocalePath)(rewriteAs, this.locales);
nextState.locale = localeResult.detectedLocale || nextState.locale;
rewriteAs = localeResult.pathname;
}
const routeRegex = (0, _routeregex.getRouteRegex)(pathname);
const curRouteMatch = (0, _routematcher.getRouteMatcher)(routeRegex)(new URL(rewriteAs, location.href).pathname);
if (curRouteMatch) {
Object.assign(query, curRouteMatch);
}
}
}
// If the routeInfo brings a redirect we simply apply it.
if ("type" in routeInfo) {
if (routeInfo.type === "redirect-internal") {
return this.change(method, routeInfo.newUrl, routeInfo.newAs, options);
} else {
handleHardNavigation({
url: routeInfo.destination,
router: this
});
return new Promise(()=>{});
}
}
const component = routeInfo.Component;
if (component && component.unstable_scriptLoader) {
const scripts = [].concat(component.unstable_scriptLoader());
scripts.forEach((script)=>{
(0, _script.handleClientScriptLoad)(script.props);
});
}
// handle redirect on client-transition
if ((routeInfo.__N_SSG || routeInfo.__N_SSP) && routeInfo.props) {
if (routeInfo.props.pageProps && routeInfo.props.pageProps.__N_REDIRECT) {
// Use the destination from redirect without adding locale
options.locale = false;
const destination = routeInfo.props.pageProps.__N_REDIRECT;
// check if destination is internal (resolves to a page) and attempt
// client-navigation if it is falling back to hard navigation if
// it's not
if (destination.startsWith("/") && routeInfo.props.pageProps.__N_REDIRECT_BASE_PATH !== false) {
const parsedHref = (0, _parserelativeurl.parseRelativeUrl)(destination);
parsedHref.pathname = resolveDynamicRoute(parsedHref.pathname, pages);
const { url: newUrl, as: newAs } = prepareUrlAs(this, destination, destination);
return this.change(method, newUrl, newAs, options);
}
handleHardNavigation({
url: destination,
router: this
});
return new Promise(()=>{});
}
nextState.isPreview = !!routeInfo.props.__N_PREVIEW;
// handle SSG data 404
if (routeInfo.props.notFound === SSG_DATA_NOT_FOUND) {
let notFoundRoute;
try {
await this.fetchComponent("/404");
notFoundRoute = "/404";
} catch (_) {
notFoundRoute = "/_error";
}
routeInfo = await this.getRouteInfo({
route: notFoundRoute,
pathname: notFoundRoute,
query,
as,
resolvedAs,
routeProps: {
shallow: false
},
locale: nextState.locale,
isPreview: nextState.isPreview,
isNotFound: true
});
if ("type" in routeInfo) {
throw new Error("Unexpected middleware effect on /404");
}
}
}
if (isQueryUpdating && this.pathname === "/_error" && ((_self___NEXT_DATA___props = self.__NEXT_DATA__.props) == null ? void 0 : (_self___NEXT_DATA___props_pageProps = _self___NEXT_DATA___props.pageProps) == null ? void 0 : _self___NEXT_DATA___props_pageProps.statusCode) === 500 && ((_routeInfo_props = routeInfo.props) == null ? void 0 : _routeInfo_props.pageProps)) {
// ensure statusCode is still correct for static 500 page
// when updating query information
routeInfo.props.pageProps.statusCode = 500;
}
var _routeInfo_route;
// shallow routing is only allowed for same page URL changes.
const isValidShallowRoute = options.shallow && nextState.route === ((_routeInfo_route = routeInfo.route) != null ? _routeInfo_route : route);
var _options_scroll;
const shouldScroll = (_options_scroll = options.scroll) != null ? _options_scroll : !isQueryUpdating && !isValidShallowRoute;
const resetScroll = shouldScroll ? {
x: 0,
y: 0
} : null;
const upcomingScrollState = forcedScroll != null ? forcedScroll : resetScroll;
// the new state that the router gonna set
const upcomingRouterState = {
...nextState,
route,
pathname,
query,
asPath: cleanedAs,
isFallback: false
};
// When the page being rendered is the 404 page, we should only update the
// query parameters. Route changes here might add the basePath when it
// wasn't originally present. This is also why this block is before the
// below `changeState` call which updates the browser's history (changing
// the URL).
if (isQueryUpdating && isErrorRoute) {
var _self___NEXT_DATA___props_pageProps1, _self___NEXT_DATA___props1, _routeInfo_props1;
routeInfo = await this.getRouteInfo({
route: this.pathname,
pathname: this.pathname,
query,
as,
resolvedAs,
routeProps: {
shallow: false
},
locale: nextState.locale,
isPreview: nextState.isPreview,
isQueryUpdating: isQueryUpdating && !this.isFallback
});
if ("type" in routeInfo) {
throw new Error("Unexpected middleware effect on " + this.pathname);
}
if (this.pathname === "/_error" && ((_self___NEXT_DATA___props1 = self.__NEXT_DATA__.props) == null ? void 0 : (_self___NEXT_DATA___props_pageProps1 = _self___NEXT_DATA___props1.pageProps) == null ? void 0 : _self___NEXT_DATA___props_pageProps1.statusCode) === 500 && ((_routeInfo_props1 = routeInfo.props) == null ? void 0 : _routeInfo_props1.pageProps)) {
// ensure statusCode is still correct for static 500 page
// when updating query information
routeInfo.props.pageProps.statusCode = 500;
}
try {
await this.set(upcomingRouterState, routeInfo, upcomingScrollState);
} catch (err) {
if ((0, _iserror.default)(err) && err.cancelled) {
Router.events.emit("routeChangeError", err, cleanedAs, routeProps);
}
throw err;
}
return true;
}
Router.events.emit("beforeHistoryChange", as, routeProps);
this.changeState(method, url, as, options);
// for query updates we can skip it if the state is unchanged and we don't
// need to scroll
// https://github.com/vercel/next.js/issues/37139
const canSkipUpdating = isQueryUpdating && !upcomingScrollState && !readyStateChange && !localeChange && (0, _comparestates.compareRouterStates)(upcomingRouterState, this.state);
if (!canSkipUpdating) {
try {
await this.set(upcomingRouterState, routeInfo, upcomingScrollState);
} catch (e) {
if (e.cancelled) routeInfo.error = routeInfo.error || e;
else throw e;
}
if (routeInfo.error) {
if (!isQueryUpdating) {
Router.events.emit("routeChangeError", routeInfo.error, cleanedAs, routeProps);
}
throw routeInfo.error;
}
if (process.env.__NEXT_I18N_SUPPORT) {
if (nextState.locale) {
document.documentElement.lang = nextState.locale;
}
}
if (!isQueryUpdating) {
Router.events.emit("routeChangeComplete", as, routeProps);
}
// A hash mark # is the optional last part of a URL
const hashRegex = /#.+$/;
if (shouldScroll && hashRegex.test(as)) {
this.scrollToHash(as);
}
}
return true;
} catch (err) {
if ((0, _iserror.default)(err) && err.cancelled) {
return false;
}
throw err;
}
}
changeState(method, url, as, options) {
if (options === void 0) options = {};
if ("production" !== "production") {
if (typeof window.history === "undefined") {
console.error("Warning: window.history is not available.");
return;
}
if (typeof window.history[method] === "undefined") {
console.error("Warning: window.history." + method + " is not available");
return;
}
}
if (method !== "pushState" || (0, _utils.getURL)() !== as) {
this._shallow = options.shallow;
window.history[method]({
url,
as,
options,
__N: true,
key: this._key = method !== "pushState" ? this._key : createKey()
}, // Passing the empty string here should be safe against future changes to the method.
// https://developer.mozilla.org/docs/Web/API/History/replaceState
"", as);
}
}
async handleRouteInfoError(err, pathname, query, as, routeProps, loadErrorFail) {
console.error(err);
if (err.cancelled) {
// bubble up cancellation errors
throw err;
}
if ((0, _routeloader.isAssetError)(err) || loadErrorFail) {
Router.events.emit("routeChangeError", err, as, routeProps);
// If we can't load the page it could be one of following reasons
// 1. Page doesn't exists
// 2. Page does exist in a different zone
// 3. Internal error while loading the page
// So, doing a hard reload is the proper way to deal with this.
handleHardNavigation({
url: as,
router: this
});
// Changing the URL doesn't block executing the current code path.
// So let's throw a cancellation error stop the routing logic.
throw buildCancellationError();
}
try {
let props;
const { page: Component, styleSheets } = await this.fetchComponent("/_error");
const routeInfo = {
props,
Component,
styleSheets,
err,
error: err
};
if (!routeInfo.props) {
try {
routeInfo.props = await this.getInitialProps(Component, {
err,
pathname,
query
});
} catch (gipErr) {
console.error("Error in error page `getInitialProps`: ", gipErr);
routeInfo.props = {};
}
}
return routeInfo;
} catch (routeInfoErr) {
return this.handleRouteInfoError((0, _iserror.default)(routeInfoErr) ? routeInfoErr : new Error(routeInfoErr + ""), pathname, query, as, routeProps, true);
}
}
async getRouteInfo(param) {
let { route: requestedRoute, pathname, query, as, resolvedAs, routeProps, locale, hasMiddleware, isPreview, unstable_skipClientCache, isQueryUpdating, isMiddlewareRewrite, isNotFound } = param;
/**
* This `route` binding can change if there's a rewrite
* so we keep a reference to the original requested route
* so we can store the cache for it and avoid re-requesting every time
* for shallow routing purposes.
*/ let route = requestedRoute;
try {
var _data_effect, _data_effect1, _data_effect2, _data_response;
const handleCancelled = getCancelledHandler({
route,
router: this
});
let existingInfo = this.components[route];
if (routeProps.shallow && existingInfo && this.route === route) {
return existingInfo;
}
if (hasMiddleware) {
existingInfo = undefined;
}
let cachedRouteInfo = existingInfo && !("initial" in existingInfo) && "production" !== "development" ? existingInfo : undefined;
const isBackground = isQueryUpdating;
const fetchNextDataParams = {
dataHref: this.pageLoader.getDataHref({
href: (0, _formaturl.formatWithValidation)({
pathname,
query
}),
skipInterpolation: true,
asPath: isNotFound ? "/404" : resolvedAs,
locale
}),
hasMiddleware: true,
isServerRender: this.isSsr,
parseJSON: true,
inflightCache: isBackground ? this.sbc : this.sdc,
persistCache: !isPreview,
isPrefetch: false,
unstable_skipClientCache,
isBackground
};
let data = isQueryUpdating && !isMiddlewareRewrite ? null : await withMiddlewareEffects({
fetchData: ()=>fetchNextData(fetchNextDataParams),
asPath: isNotFound ? "/404" : resolvedAs,
locale: locale,
router: this
}).catch((err)=>{
// we don't hard error during query updating
// as it's un-necessary and doesn't need to be fatal
// unless it is a fallback route and the props can't
// be loaded
if (isQueryUpdating) {
return null;
}
throw err;
});
// when rendering error routes we don't apply middleware
// effects
if (data && (pathname === "/_error" || pathname === "/404")) {
data.effect = undefined;
}
if (isQueryUpdating) {
if (!data) {
data = {
json: self.__NEXT_DATA__.props
};
} else {
data.json = self.__NEXT_DATA__.props;
}
}
handleCancelled();
if ((data == null ? void 0 : (_data_effect = data.effect) == null ? void 0 : _data_effect.type) === "redirect-internal" || (data == null ? void 0 : (_data_effect1 = data.effect) == null ? void 0 : _data_effect1.type) === "redirect-external") {
return data.effect;
}
if ((data == null ? void 0 : (_data_effect2 = data.effect) == null ? void 0 : _data_effect2.type) === "rewrite") {
const resolvedRoute = (0, _removetrailingslash.removeTrailingSlash)(data.effect.resolvedHref);
const pages = await this.pageLoader.getPageList();
// during query updating the page must match although during
// client-transition a redirect that doesn't match a page
// can be returned and this should trigger a hard navigation
// which is valid for incremental migration
if (!isQueryUpdating || pages.includes(resolvedRoute)) {
route = resolvedRoute;
pathname = data.effect.resolvedHref;
query = {
...query,
...data.effect.parsedAs.query
};
resolvedAs = (0, _removebasepath.removeBasePath)((0, _normalizelocalepath.normalizeLocalePath)(data.effect.parsedAs.pathname, this.locales).pathname);
// Check again the cache with the new destination.
existingInfo = this.components[route];
if (routeProps.shallow && existingInfo && this.route === route && !hasMiddleware) {
// If we have a match with the current route due to rewrite,
// we can copy the existing information to the rewritten one.
// Then, we return the information along with the matched route.
return {
...existingInfo,
route
};
}
}
}
if ((0, _isapiroute.isAPIRoute)(route)) {
handleHardNavigation({
url: as,
router: this
});
return new Promise(()=>{});
}
const routeInfo = cachedRouteInfo || await this.fetchComponent(route).then((res)=>({
Component: res.page,
styleSheets: res.styleSheets,
__N_SSG: res.mod.__N_SSG,
__N_SSP: res.mod.__N_SSP
}));
if ("production" !== "production") {
const { isValidElementType } = require("next/dist/compiled/react-is");
if (!isValidElementType(routeInfo.Component)) {
throw new Error('The default export is not a React Component in page: "' + pathname + '"');
}
}
const wasBailedPrefetch = data == null ? void 0 : (_data_response = data.response) == null ? void 0 : _data_response.headers.get("x-middleware-skip");
const shouldFetchData = routeInfo.__N_SSG || routeInfo.__N_SSP;
// For non-SSG prefetches that bailed before sending data
// we clear the cache to fetch full response
if (wasBailedPrefetch && (data == null ? void 0 : data.dataHref)) {
delete this.sdc[data.dataHref];
}
const { props, cacheKey } = await this._getData(async ()=>{
if (shouldFetchData) {
if ((data == null ? void 0 : data.json) && !wasBailedPrefetch) {
return {
cacheKey: data.cacheKey,
props: data.json
};
}
const dataHref = (data == null ? void 0 : data.dataHref) ? data.dataHref : this.pageLoader.getDataHref({
href: (0, _formaturl.formatWithValidation)({
pathname,
query
}),
asPath: resolvedAs,
locale
});
const fetched = await fetchNextData({
dataHref,
isServerRender: this.isSsr,
parseJSON: true,
inflightCache: wasBailedPrefetch ? {} : this.sdc,
persistCache: !isPreview,
isPrefetch: false,
unstable_skipClientCache
});
return {
cacheKey: fetched.cacheKey,
props: fetched.json || {}
};
}
return {
headers: {},
props: await this.getInitialProps(routeInfo.Component, {
pathname,
query,
asPath: as,
locale,
locales: this.locales,
defaultLocale: this.defaultLocale
})
};
});
// Only bust the data cache for SSP routes although
// middleware can skip cache per request with
// x-middleware-cache: no-cache as well
if (routeInfo.__N_SSP && fetchNextDataParams.dataHref && cacheKey) {
delete this.sdc[cacheKey];
}
// we kick off a HEAD request in the background
// when a non-prefetch request is made to signal revalidation
if (!this.isPreview && routeInfo.__N_SSG && "production" !== "development" && !isQueryUpdating) {
fetchNextData(Object.assign({}, fetchNextDataParams, {
isBackground: true,
persistCache: false,
inflightCache: this.sbc
})).catch(()=>{});
}
props.pageProps = Object.assign({}, props.pageProps);
routeInfo.props = props;
routeInfo.route = route;
routeInfo.query = query;
routeInfo.resolvedAs = resolvedAs;
this.components[route] = routeInfo;
return routeInfo;
} catch (err) {
return this.handleRouteInfoError((0, _iserror.getProperError)(err), pathname, query, as, routeProps);
}
}
set(state, data, resetScroll) {
this.state = state;
return this.sub(data, this.components["/_app"].Component, resetScroll);
}
/**
* Callback to execute before replacing router state
* @param cb callback to be executed
*/ beforePopState(cb) {
this._bps = cb;
}
onlyAHashChange(as) {
if (!this.asPath) return false;
const [oldUrlNoHash, oldHash] = this.asPath.split("#", 2);
const [newUrlNoHash, newHash] = as.split("#", 2);
// Makes sure we scroll to the provided hash if the url/hash are the same
if (newHash && oldUrlNoHash === newUrlNoHash && oldHash === newHash) {
return true;
}
// If the urls are change, there's more than a hash change
if (oldUrlNoHash !== newUrlNoHash) {
return false;
}
// If the hash has changed, then it's a hash only change.
// This check is necessary to handle both the enter and
// leave hash === '' cases. The identity case falls through
// and is treated as a next reload.
return oldHash !== newHash;
}
scrollToHash(as) {
const [, hash = ""] = as.split("#", 2);
(0, _handlesmoothscroll.handleSmoothScroll)(()=>{
// Scroll to top if the hash is just `#` with no value or `#top`
// To mirror browsers
if (hash === "" || hash === "top") {
window.scrollTo(0, 0);
return;
}
// Decode hash to make non-latin anchor works.
const rawHash = decodeURIComponent(hash);
// First we check if the element by id is found
const idEl = document.getElementById(rawHash);
if (idEl) {
idEl.scrollIntoView();
return;
}
// If there's no element with the id, we check the `name` property
// To mirror browsers
const nameEl = document.getElementsByName(rawHash)[0];
if (nameEl) {
nameEl.scrollIntoView();
}
}, {
onlyHashChange: this.onlyAHashChange(as)
});
}
urlIsNew(asPath) {
return this.asPath !== asPath;
}
/**
* Prefetch page code, you may wait for the data during page rendering.
* This feature only works in production!
* @param url the href of prefetched page
* @param asPath the as path of the prefetched page
*/ async prefetch(url, asPath, options) {
if (asPath === void 0) asPath = url;
if (options === void 0) options = {};
// Prefetch is not supported in development mode because it would trigger on-demand-entries
if ("production" !== "production") {
return;
}
if ("object" !== "undefined" && (0, _isbot.isBot)(window.navigator.userAgent)) {
// No prefetches for bots that render the link since they are typically navigating
// links via the equivalent of a hard navigation and hence never utilize these
// prefetches.
return;
}
let parsed = (0, _parserelativeurl.parseRelativeUrl)(url);
const urlPathname = parsed.pathname;
let { pathname, query } = parsed;
const originalPathname = pathname;
if (process.env.__NEXT_I18N_SUPPORT) {
if (options.locale === false) {
pathname = (0, _normalizelocalepath.normalizeLocalePath)(pathname, this.locales).pathname;
parsed.pathname = pathname;
url = (0, _formaturl.formatWithValidation)(parsed);
let parsedAs = (0, _parserelativeurl.parseRelativeUrl)(asPath);
const localePathResult = (0, _normalizelocalepath.normalizeLocalePath)(parsedAs.pathname, this.locales);
parsedAs.pathname = localePathResult.pathname;
options.locale = localePathResult.detectedLocale || this.defaultLocale;
asPath = (0, _formaturl.formatWithValidation)(parsedAs);
}
}
const pages = await this.pageLoader.getPageList();
let resolvedAs = asPath;
const locale = typeof options.locale !== "undefined" ? options.locale || undefined : this.locale;
const isMiddlewareMatch = await matchesMiddleware({
asPath: asPath,
locale: locale,
router: this
});
if (process.env.__NEXT_HAS_REWRITES && asPath.startsWith("/")) {
let rewrites;
({ __rewrites: rewrites } = await (0, _routeloader.getClientBuildManifest)());
const rewritesResult = (0, _resolverewrites.default)((0, _addbasepath.addBasePath)((0, _addlocale.addLocale)(asPath, this.locale), true), pages, rewrites, parsed.query, (p)=>resolveDynamicRoute(p, pages), this.locales);
if (rewritesResult.externalDest) {
return;
}
if (!isMiddlewareMatch) {
resolvedAs = (0, _removelocale.removeLocale)((0, _removebasepath.removeBasePath)(rewritesResult.asPath), this.locale);
}
if (rewritesResult.matchedPage && rewritesResult.resolvedHref) {
// if this directly matches a page we need to update the href to
// allow the correct page chunk to be loaded
pathname = rewritesResult.resolvedHref;
parsed.pathname = pathname;
if (!isMiddlewareMatch) {
url = (0, _formaturl.formatWithValidation)(parsed);
}
}
}
parsed.pathname = resolveDynamicRoute(parsed.pathname, pages);
if ((0, _isdynamic.isDynamicRoute)(parsed.pathname)) {
pathname = parsed.pathname;
parsed.pathname = pathname;
Object.assign(query, (0, _routematcher.getRouteMatcher)((0, _routeregex.getRouteRegex)(parsed.pathname))((0, _parsepath.parsePath)(asPath).pathname) || {});
if (!isMiddlewareMatch) {
url = (0, _formaturl.formatWithValidation)(parsed);
}
}
const data = process.env.__NEXT_MIDDLEWARE_PREFETCH === "strict" ? null : await withMiddlewareEffects({
fetchData: ()=>fetchNextData({
dataHref: this.pageLoader.getDataHref({
href: (0, _formaturl.formatWithValidation)({
pathname: originalPathname,
query
}),
skipInterpolation: true,
asPath: resolvedAs,
locale
}),
hasMiddleware: true,
isServerRender: this.isSsr,
parseJSON: true,
inflightCache: this.sdc,
persistCache: !this.isPreview,
isPrefetch: true
}),
asPath: asPath,
locale: locale,
router: this
});
/**
* If there was a rewrite we apply the effects of the rewrite on the
* current parameters for the prefetch.
*/ if ((data == null ? void 0 : data.effect.type) === "rewrite") {
parsed.pathname = data.effect.resolvedHref;
pathname = data.effect.resolvedHref;
query = {
...query,
...data.effect.parsedAs.query
};
resolvedAs = data.effect.parsedAs.pathname;
url = (0, _formaturl.formatWithValidation)(parsed);
}
/**
* If there is a redirect to an external destination then we don't have
* to prefetch content as it will be unused.
*/ if ((data == null ? void 0 : data.effect.type) === "redirect-external") {
return;
}
const route = (0, _removetrailingslash.removeTrailingSlash)(pathname);
if (await this._bfl(asPath, resolvedAs, options.locale, true)) {
this.components[urlPathname] = {
__appRouter: true
};
}
await Promise.all([
this.pageLoader._isSsg(route).then((isSsg)=>{
return isSsg ? fetchNextData({
dataHref: (data == null ? void 0 : data.json) ? data == null ? void 0 : data.dataHref : this.pageLoader.getDataHref({
href: url,
asPath: resolvedAs,
locale: locale
}),
isServerRender: false,
parseJSON: true,
inflightCache: this.sdc,
persistCache: !this.isPreview,
isPrefetch: true,
unstable_skipClientCache: options.unstable_skipClientCache || options.priority && !!process.env.__NEXT_OPTIMISTIC_CLIENT_CACHE
}).then(()=>false).catch(()=>false) : false;
}),
this.pageLoader[options.priority ? "loadPage" : "prefetch"](route)
]);
}
async fetchComponent(route) {
const handleCancelled = getCancelledHandler({
route,
router: this
});
try {
const componentResult = await this.pageLoader.loadPage(route);
handleCancelled();
return componentResult;
} catch (err) {
handleCancelled();
throw err;
}
}
_getData(fn) {
let cancelled = false;
const cancel = ()=>{
cancelled = true;
};
this.clc = cancel;
return fn().then((data)=>{
if (cancel === this.clc) {
this.clc = null;
}
if (cancelled) {
const err = new Error("Loading initial props cancelled");
err.cancelled = true;
throw err;
}
return data;
});
}
_getFlightData(dataHref) {
// Do not cache RSC flight response since it's not a static resource
return fetchNextData({
dataHref,
isServerRender: true,
parseJSON: false,
inflightCache: this.sdc,
persistCache: false,
isPrefetch: false
}).then((param)=>{
let { text } = param;
return {
data: text
};
});
}
getInitialProps(Component, ctx) {
const { Component: App } = this.components["/_app"];
const AppTree = this._wrapApp(App);
ctx.AppTree = AppTree;
return (0, _utils.loadGetInitialProps)(App, {
AppTree,
Component,
router: this,
ctx
});
}
get route() {
return this.state.route;
}
get pathname() {
return this.state.pathname;
}
get query() {
return this.state.query;
}
get asPath() {
return this.state.asPath;
}
get locale() {
return this.state.locale;
}
get isFallback() {
return this.state.isFallback;
}
get isPreview() {
return this.state.isPreview;
}
constructor(pathname, query, as, { initialProps, pageLoader, App, wrapApp, Component, err, subscription, isFallback, locale, locales, defaultLocale, domainLocales, isPreview }){
// Server Data Cache (full data requests)
this.sdc = {};
// Server Background Cache (HEAD requests)
this.sbc = {};
this.isFirstPopStateEvent = true;
this._key = createKey();
this.onPopState = (e)=>{
const { isFirstPopStateEvent } = this;
this.isFirstPopStateEvent = false;
const state = e.state;
if (!state) {
// We get state as undefined for two reasons.
// 1. With older safari (< 8) and older chrome (< 34)
// 2. When the URL changed with #
//
// In the both cases, we don't need to proceed and change the route.
// (as it's already changed)
// But we can simply replace the state with the new changes.
// Actually, for (1) we don't need to nothing. But it's hard to detect that event.
// So, doing the following for (1) does no harm.
const { pathname, query } = this;
this.changeState("replaceState", (0, _formaturl.formatWithValidation)({
pathname: (0, _addbasepath.addBasePath)(pathname),
query
}), (0, _utils.getURL)());
return;
}
// __NA is used to identify if the history entry can be handled by the app-router.
if (state.__NA) {
window.location.reload();
return;
}
if (!state.__N) {
return;
}
// Safari fires popstateevent when reopening the browser.
if (isFirstPopStateEvent && this.locale === state.options.locale && state.as === this.asPath) {
return;
}
let forcedScroll;
const { url, as, options, key } = state;
if (process.env.__NEXT_SCROLL_RESTORATION) {
if (manualScrollRestoration) {
if (this._key !== key) {
// Snapshot current scroll position:
try {
sessionStorage.setItem("__next_scroll_" + this._key, JSON.stringify({
x: self.pageXOffset,
y: self.pageYOffset
}));
} catch (e) {}
// Restore old scroll position:
try {
const v = sessionStorage.getItem("__next_scroll_" + key);
forcedScroll = JSON.parse(v);
} catch (e) {
forcedScroll = {
x: 0,
y: 0
};
}
}
}
}
this._key = key;
const { pathname } = (0, _parserelativeurl.parseRelativeUrl)(url);
// Make sure we don't re-render on initial load,
// can be caused by navigating back from an external site
if (this.isSsr && as === (0, _addbasepath.addBasePath)(this.asPath) && pathname === (0, _addbasepath.addBasePath)(this.pathname)) {
return;
}
// If the downstream application returns falsy, return.
// They will then be responsible for handling the event.
if (this._bps && !this._bps(state)) {
return;
}
this.change("replaceState", url, as, Object.assign({}, options, {
shallow: options.shallow && this._shallow,
locale: options.locale || this.defaultLocale,
// @ts-ignore internal value not exposed on types
_h: 0
}), forcedScroll);
};
// represents the current component key
const route = (0, _removetrailingslash.removeTrailingSlash)(pathname);
// set up the component cache (by route keys)
this.components = {};
// We should not keep the cache, if there's an error
// Otherwise, this cause issues when when going back and
// come again to the errored page.
if (pathname !== "/_error") {
this.components[route] = {
Component,
initial: true,
props: initialProps,
err,
__N_SSG: initialProps && initialProps.__N_SSG,
__N_SSP: initialProps && initialProps.__N_SSP
};
}
this.components["/_app"] = {
Component: App,
styleSheets: []
};
if (process.env.__NEXT_CLIENT_ROUTER_FILTER_ENABLED) {
const { BloomFilter } = require("../../lib/bloom-filter");
const staticFilterData = process.env.__NEXT_CLIENT_ROUTER_S_FILTER;
const dynamicFilterData = process.env.__NEXT_CLIENT_ROUTER_D_FILTER;
if (staticFilterData == null ? void 0 : staticFilterData.numHashes) {
this._bfl_s = new BloomFilter(staticFilterData.numItems, staticFilterData.errorRate);
this._bfl_s.import(staticFilterData);
}
if (dynamicFilterData == null ? void 0 : dynamicFilterData.numHashes) {
this._bfl_d = new BloomFilter(dynamicFilterData.numItems, dynamicFilterData.errorRate);
this._bfl_d.import(dynamicFilterData);
}
}
// Backwards compat for Router.router.events
// TODO: Should be remove the following major version as it was never documented
this.events = Router.events;
this.pageLoader = pageLoader;
// if auto prerendered and dynamic route wait to update asPath
// until after mount to prevent hydration mismatch
const autoExportDynamic = (0, _isdynamic.isDynamicRoute)(pathname) && self.__NEXT_DATA__.autoExport;
this.basePath = process.env.__NEXT_ROUTER_BASEPATH || "";
this.sub = subscription;
this.clc = null;
this._wrapApp = wrapApp;
// make sure to ignore extra popState in safari on navigating
// back from external site
this.isSsr = true;
this.isLocaleDomain = false;
this.isReady = !!(self.__NEXT_DATA__.gssp || self.__NEXT_DATA__.gip || self.__NEXT_DATA__.isExperimentalCompile || self.__NEXT_DATA__.appGip && !self.__NEXT_DATA__.gsp || !autoExportDynamic && !self.location.search && !process.env.__NEXT_HAS_REWRITES);
if (process.env.__NEXT_I18N_SUPPORT) {
this.locales = locales;
this.defaultLocale = defaultLocale;
this.domainLocales = domainLocales;
this.isLocaleDomain = !!(0, _detectdomainlocale.detectDomainLocale)(domainLocales, self.location.hostname);
}
this.state = {
route,
pathname,
query,
asPath: autoExportDynamic ? pathname : as,
isPreview: !!isPreview,
locale: process.env.__NEXT_I18N_SUPPORT ? locale : undefined,
isFallback
};
this._initialMatchesMiddlewarePromise = Promise.resolve(false);
if ("object" !== "undefined") {
// make sure "as" doesn't start with double slashes or else it can
// throw an error as it's considered invalid
if (!as.startsWith("//")) {
// in order for `e.state` to work on the `onpopstate` event
// we have to register the initial route upon initialization
const options = {
locale
};
const asPath = (0, _utils.getURL)();
this._initialMatchesMiddlewarePromise = matchesMiddleware({
router: this,
locale,
asPath
}).then((matches)=>{
options._shouldResolveHref = as !== pathname;
this.changeState("replaceState", matches ? asPath : (0, _formaturl.formatWithValidation)({
pathname: (0, _addbasepath.addBasePath)(pathname),
query
}), asPath, options);
return matches;
});
}
window.addEventListener("popstate", this.onPopState);
// enable custom scroll restoration handling when available
// otherwise fallback to browser's default handling
if (process.env.__NEXT_SCROLL_RESTORATION) {
if (manualScrollRestoration) {
window.history.scrollRestoration = "manual";
}
}
}
}
}
Router.events = (0, _mitt.default)(); //# sourceMappingURL=router.js.map
�exportsType�defaultObject
����G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\shared\lib\router�������������������������������
O���
�`
P���Q���R���S���T���U���V���W���X���Y����strictZ���[����G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\build\webpack\loaders\next-swc-loader.js
`\����webpack/DefinePlugin process.env.__NEXT_SCROLL_RESTORATION�webpack/DefinePlugin process.env.__NEXT_TRAILING_SLASH�webpack/DefinePlugin process.env.__NEXT_EXTERNAL_MIDDLEWARE_REWRITE_RESOLVE�webpack/DefinePlugin process.env.__NEXT_HAS_REWRITES�webpack/DefinePlugin process.env.__NEXT_CLIENT_ROUTER_FILTER_ENABLED�webpack/DefinePlugin process.env.__NEXT_I18N_SUPPORT�webpack/DefinePlugin process.env.__NEXT_MIDDLEWARE_PREFETCH�webpack/DefinePlugin process.env.__NEXT_OPTIMISTIC_CLIENT_CACHE�webpack/DefinePlugin process.env.__NEXT_CLIENT_ROUTER_S_FILTER�webpack/DefinePlugin process.env.__NEXT_CLIENT_ROUTER_D_FILTER�webpack/DefinePlugin process.env.__NEXT_ROUTER_BASEPATHR����false��undefined��true��"flexible"�� {"numItems":17,"errorRate":0.0001,"numBits":326,"numHashes":14,"bitArray":[0,0,0,1,0,0,0,0,1,1,1,0,0,1,1,1,1,1,1,1,1,0,1,0,0,0,1,0,1,1,1,1,0,1,0,1,0,1,1,0,0,0,0,1,1,0,1,0,0,1,1,0,0,0,1,0,0,1,0,0,0,1,0,1,1,1,1,1,1,0,0,1,1,0,1,0,0,0,1,1,0,1,1,0,0,1,1,0,1,0,0,1,0,1,0,0,0,1,1,1,1,1,0,0,0,0,1,0,1,1,0,1,0,1,1,0,1,0,1,1,0,1,1,1,1,0,1,0,1,1,1,0,1,1,0,1,0,0,0,0,1,1,1,0,1,1,0,0,0,1,0,1,0,0,1,1,1,1,1,0,1,1,0,1,0,1,0,0,1,1,0,0,1,0,0,0,1,1,0,0,0,1,0,0,1,1,1,1,1,0,0,0,1,1,1,0,1,1,0,0,1,1,1,0,1,1,1,0,0,0,0,1,0,1,1,0,0,0,1,0,1,1,1,0,1,0,1,1,0,1,0,0,1,1,1,1,0,0,1,1,1,0,0,0,0,1,1,1,0,0,1,0,1,1,1,0,1,1,1,0,0,0,0,1,1,1,0,1,1,0,1,0,0,0,1,1,0,1,1,0,1,0,0,1,1,1,0,0,1,1,0,0,1,1,0,0,0,0,1,0,0,0,1,0,0,0,1,1,1,0,0,1,0,0,0,0,1,1,0,0,1,1,0,1,1,1]}� {"numItems":3,"errorRate":0.0001,"numBits":58,"numHashes":14,"bitArray":[1,0,0,1,0,1,1,0,1,0,0,0,1,1,1,0,1,0,0,1,0,1,0,0,1,1,0,1,1,0,1,1,1,0,0,1,1,1,1,1,1,1,1,1,0,0,0,0,1,1,1,1,1,0,0,0,0,0]}�""�340bf366773a6493`2�_export�buildCancellationError�matchesMiddleware�stripOrigin�prepareUrlAs�resolveDynamicRoute�getMiddlewareData�withMiddlewareEffects�fetchRetry�tryToParseAsJSON�fetchNextData�createKey�handleHardNavigation�_interop_require_default�_interop_require_wildcard�_removetrailingslash�_routeloader�_script�_iserror�_denormalizepagepath�_normalizelocalepath�_mitt�_utils�_isdynamic�_parserelativeurl�_resolverewrites�_routematcher�_routeregex�_formaturl�_detectdomainlocale�_parsepath�_addlocale�_removelocale�_removebasepath�_addbasepath�_hasbasepath�_resolvehref�_isapiroute�_getnextpathnameinfo�_formatnextpathnameinfo�_comparestates�_islocalurl�_isbot�_omit�_interpolateas�_handlesmoothscroll�manualScrollRestoration�SSG_DATA_NOT_FOUND�getCancelledHandler�Router@ �
�|�yB
�G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next�next@14.1.0�G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\shared\lib\router\router.js�G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\package.json`W�webpack/lib/dependencies/ConstDependency�a*
`
�0`t@�
�webpack/lib/dependencies/RequireHeaderDependencyAa h
c!SA� �
c"UA
cEAH O
c<A� �
c 1A� �
c!;![A &
c""JAk r
c##EA� �
c$7$IA� �
c%%"A
c&&0AQ X
c''?A� �
c(B(eA� �
c))6A, 3
c**2A_ f
c++0A� �
c,,KA� �
c--0A
c..8AM T
c//>A� �
c00CA� �
c11=A
c22=AO V
c33<A� �
c448A� �
c55FA !
c6 6LA_ f
c778A� �
c883A� �
c99(A� �
c::%A
&
c;;8A^
e
c<<Cv���A 9
cxx@u���As �
@� `-@� `c� falseA +
@� `$@� `\�0A. 7
@� `F@� `Om���A2 Q
@� `@� `�{}AS C
@� `5@� `�A0- �-
@� ` @� �0A�- i.
@� ` @� d���A�J �J
@� @� �A�J M
@� `3@� b���ASO �O
@� @� ^���A�_ �_
@! @S �{ var _this_locales; }A�_ �l
@! `-@S Y���A=� r�
@� `@� `
�At� �
@� `G@� `
U���A� �
@� `@� `
�A� �
@� `/@� `
Q���A�� ��
@� `@� `�A�� ��
@� `7@� `M���A_� ~�
@, `@0 `�A�� ��
@, `9@0 `I���A� %�
@� `@� `�A'� ƾ
@� `5@� `E���Al� ��
@� @� �A�� �
@� `+@� A���Ar� ��
@� `@� `
�A�� ��
@� `/@� `
=���A<� Y�
@4 @6 �A[� z�
@4 `+@6 � trueA�� ��
@7 `@7 `U6���A�� ��
@A @L �A�� �
@A `-@L 2���A� '
@U @h �A) r
@U `G@h �A�
�
@r `@�
�0A�
�
@r `K@r `O,���A -
@� `hA� � (���A7& \&
@. `@D `
�A^& *
@. `7@D `
&���A31 b1
@m @y A�1 �1
@n `$@n `E$���A�1 �1
@o `%@o `N#���A#2 L2
@p `&@p `O�A56 W6
@� `@� `@���AF8 e8
C� � � ���At8 �8
@� @� �A�8 �9
@� `-@� �A_: ~:
@� `@� `H�0A�: �:
@� `6@� `<���A; #;
@� @� ���A#@ H@
@� `@� `
�AJ@ �@
@� `7@� `
`$�webpack/lib/dependencies/CommonJsExportsDependency a+l aXk�Object.defineProperty(exports) �__esModule
�webpack/lib/dependencies/CommonJsSelfReferenceDependency
Ap w �exports
c�webpack/lib/dependencies/CommonJsRequireDependency�@swc/helpers/_/_interop_require_default�Ai �
c!S�@swc/helpers/_/_interop_require_wildcard�A� �
c"U�./utils/remove-trailing-slash�A 0
cE�../../../client/route-loader�AP n
c<�../../../client/script�A� �
c 1�../../../lib/is-error�A� �
c!;![�../page-path/denormalize-page-path�A' K
c""J�../i18n/normalize-locale-path�As �
c##E�../mitt�A� �
c$7$I�../utils�A�
c%%"�./utils/is-dynamic�A 4
c&&0�./utils/parse-relative-url�AY u
c''?�./utils/resolve-rewrites�A� �
c(B(e�./utils/route-matcher�A�
c))6�./utils/route-regex�A4 I
c**2�./utils/format-url�Ag {
c++0�../../../client/detect-domain-locale�A� �
c,,K�./utils/parse-path�A� �
c--0�../../../client/add-locale�A 4
c..8�../../../client/remove-locale�AU t
c//>�../../../client/remove-base-path�A� �
c00C�../../../client/add-base-path�A� �
c11=�../../../client/has-base-path�A 7
c22=�../../../client/resolve-href�AW u
c33<�../../../lib/is-api-route�A� �
c448�./utils/get-next-pathname-info�A� �
c55F�./utils/format-next-pathname-info�A" E
c6 6L�./utils/compare-states�Ag
c778�./utils/is-local-url�A� �
c883�./utils/is-bot�A� �
c99(�./utils/omit�A�
c::%�./utils/interpolate-as�A'
?
c;;8�./utils/handle-smooth-scroll�Af
�
c<<C�../../lib/bloom-filter�A�1 �1
@n `$@n `E
�i /* __next_internal_client_entry_do_not_use__ default auto */ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import React from "react";
import { useForm } from "react-hook-form";
import { yupResolver } from "@hookform/resolvers/yup";
import * as Yup from "yup";
import { contactPage } from "../data/contact";
const ContactForm = ()=>{
var _form_fields_projectClassification_options_find, _form_fields_infrastructureEnvironment_options_find, _form_fields_timeline_options_find, _form_fields_budget_options_find, _errors_name, _errors_organization, _errors_email, _form_fields_projectClassification_options_find1, _errors_projectClassification, _errors_infrastructureEnvironment, _errors_projectGoal, _errors_timeline, _form_fields_budget_options_find1, _errors_budget, _errors_acceptTerms;
const { form } = contactPage;
// for validation
const validationSchema = Yup.object().shape({
name: Yup.string().required(form.validation.nameRequired),
organization: Yup.string().required(form.validation.organizationRequired),
email: Yup.string().required(form.validation.emailRequired).email(form.validation.emailInvalid),
projectClassification: Yup.string().required(form.validation.projectClassificationRequired),
infrastructureEnvironment: Yup.string().required(form.validation.infrastructureEnvironmentRequired),
projectGoal: Yup.string().required(form.validation.projectGoalRequired),
timeline: Yup.string().required(form.validation.timelineRequired),
budget: Yup.string().required(form.validation.budgetRequired),
acceptTerms: Yup.bool().oneOf([
true
], form.validation.termsRequired)
});
const defaultProjectClassification = ((_form_fields_projectClassification_options_find = form.fields.projectClassification.options.find((o)=>o.value !== "")) === null || _form_fields_projectClassification_options_find === void 0 ? void 0 : _form_fields_projectClassification_options_find.value) || "";
const defaultInfrastructure = ((_form_fields_infrastructureEnvironment_options_find = form.fields.infrastructureEnvironment.options.find((o)=>o.value !== "")) === null || _form_fields_infrastructureEnvironment_options_find === void 0 ? void 0 : _form_fields_infrastructureEnvironment_options_find.value) || "";
const defaultTimeline = ((_form_fields_timeline_options_find = form.fields.timeline.options.find((o)=>o.value !== "")) === null || _form_fields_timeline_options_find === void 0 ? void 0 : _form_fields_timeline_options_find.value) || "";
const defaultBudget = ((_form_fields_budget_options_find = form.fields.budget.options.find((o)=>o.value !== "")) === null || _form_fields_budget_options_find === void 0 ? void 0 : _form_fields_budget_options_find.value) || "";
const formOptions = {
resolver: yupResolver(validationSchema),
defaultValues: {
projectClassification: defaultProjectClassification,
infrastructureEnvironment: defaultInfrastructure,
timeline: defaultTimeline,
budget: defaultBudget
}
};
// get functions to build form with useForm() hook
const { register, handleSubmit, formState, reset, watch, setValue } = useForm(formOptions);
const { errors } = formState;
const selectedBudget = watch("budget");
const selectedBudgetOption = form.fields.budget.options.find((opt)=>opt.value === selectedBudget);
const selectedInfrastructure = watch("infrastructureEnvironment");
const selectedTimeline = watch("timeline");
const [submitStatus, setSubmitStatus] = React.useState(null); // 'loading' | 'success' | 'error'
const [submitMessage, setSubmitMessage] = React.useState("");
const [openDropdown, setOpenDropdown] = React.useState(null); // 'classification' | 'budget' | null
const dropdownRef = React.useRef(null);
React.useEffect(()=>{
const handleOutsideClick = (e)=>{
if (dropdownRef.current && !dropdownRef.current.contains(e.target)) {
setOpenDropdown(null);
}
};
document.addEventListener("mousedown", handleOutsideClick);
return ()=>document.removeEventListener("mousedown", handleOutsideClick);
}, []);
async function onSubmit(data, e) {
setSubmitStatus("loading");
setSubmitMessage("");
try {
const res = await fetch("https://admin.zinisoft.net/wp-json/zinisoft/v1/contact", {
method: "POST",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify(data)
});
const result = await res.json();
if (res.ok) {
setSubmitStatus("success");
setSubmitMessage(result.message || "Your message has been sent successfully!");
reset();
} else {
setSubmitStatus("error");
setSubmitMessage(result.message || "Something went wrong. Please try again.");
}
} catch (err) {
setSubmitStatus("error");
setSubmitMessage("Network error. Please check your connection and try again.");
}
}
return /*#__PURE__*/ _jsxs("form", {
onSubmit: handleSubmit(onSubmit),
className: "contact_form",
children: [
/*#__PURE__*/ _jsxs("div", {
className: "ptf-form-group",
children: [
/*#__PURE__*/ _jsxs("label", {
"data-number": form.fields.name.number,
children: [
/*#__PURE__*/ _jsx("span", {
style: {
color: "red"
},
children: "* "
}),
form.fields.name.label
]
}),
/*#__PURE__*/ _jsx("input", {
type: "text",
name: "name",
...register("name"),
className: "".concat(errors.name ? "is-invalid" : "")
}),
errors.name && /*#__PURE__*/ _jsx("div", {
className: "invalid-feedback",
children: (_errors_name = errors.name) === null || _errors_name === void 0 ? void 0 : _errors_name.message
})
]
}),
/*#__PURE__*/ _jsxs("div", {
className: "ptf-form-group",
children: [
/*#__PURE__*/ _jsxs("label", {
"data-number": form.fields.organization.number,
children: [
/*#__PURE__*/ _jsx("span", {
style: {
color: "red"
},
children: "* "
}),
form.fields.organization.label
]
}),
/*#__PURE__*/ _jsx("input", {
type: "text",
name: "organization",
...register("organization"),
className: "".concat(errors.organization ? "is-invalid" : "")
}),
errors.organization && /*#__PURE__*/ _jsx("div", {
className: "invalid-feedback",
children: (_errors_organization = errors.organization) === null || _errors_organization === void 0 ? void 0 : _errors_organization.message
})
]
}),
/*#__PURE__*/ _jsxs("div", {
className: "ptf-form-group",
children: [
/*#__PURE__*/ _jsxs("label", {
"data-number": form.fields.email.number,
children: [
/*#__PURE__*/ _jsx("span", {
style: {
color: "red"
},
children: "* "
}),
form.fields.email.label
]
}),
/*#__PURE__*/ _jsx("input", {
name: "email",
type: "text",
...register("email"),
className: " ".concat(errors.email ? "is-invalid" : "")
}),
errors.email && /*#__PURE__*/ _jsx("div", {
className: "invalid-feedback",
children: (_errors_email = errors.email) === null || _errors_email === void 0 ? void 0 : _errors_email.message
})
]
}),
/*#__PURE__*/ _jsxs("div", {
className: "ptf-form-group",
ref: openDropdown === "classification" ? dropdownRef : null,
children: [
/*#__PURE__*/ _jsxs("label", {
"data-number": form.fields.projectClassification.number,
children: [
/*#__PURE__*/ _jsx("span", {
style: {
color: "red"
},
children: "* "
}),
form.fields.projectClassification.label
]
}),
/*#__PURE__*/ _jsxs("div", {
className: "ptf-custom-select",
children: [
/*#__PURE__*/ _jsx("input", {
type: "hidden",
name: "projectClassification",
...register("projectClassification")
}),
/*#__PURE__*/ _jsxs("div", {
className: "ptf-custom-select-trigger ".concat(openDropdown === "classification" ? "is-open" : "", " ").concat(errors.projectClassification ? "is-invalid" : ""),
onClick: ()=>setOpenDropdown(openDropdown === "classification" ? null : "classification"),
children: [
/*#__PURE__*/ _jsx("span", {
children: watch("projectClassification") ? (_form_fields_projectClassification_options_find1 = form.fields.projectClassification.options.find((o)=>o.value === watch("projectClassification"))) === null || _form_fields_projectClassification_options_find1 === void 0 ? void 0 : _form_fields_projectClassification_options_find1.label : "Select classification..."
}),
/*#__PURE__*/ _jsx("svg", {
width: "12",
height: "8",
viewBox: "0 0 12 8",
fill: "none",
xmlns: "http://www.w3.org/2000/svg",
style: {
transform: openDropdown === "classification" ? "rotate(180deg)" : "rotate(0deg)",
transition: "transform 0.2s"
},
children: /*#__PURE__*/ _jsx("path", {
d: "M1 1.5L6 6.5L11 1.5",
stroke: "currentColor",
strokeWidth: "1.5"
})
})
]
}),
openDropdown === "classification" && /*#__PURE__*/ _jsx("div", {
className: "ptf-custom-select-options",
children: form.fields.projectClassification.options.map((option)=>/*#__PURE__*/ _jsx("div", {
className: "ptf-custom-select-option ".concat(watch("projectClassification") === option.value ? "is-selected" : ""),
onClick: ()=>{
setValue("projectClassification", option.value, {
shouldValidate: true
});
setOpenDropdown(null);
},
children: option.label
}, option.label))
})
]
}),
errors.projectClassification && /*#__PURE__*/ _jsx("div", {
className: "invalid-feedback",
style: {
display: "block",
marginTop: "0.5rem"
},
children: (_errors_projectClassification = errors.projectClassification) === null || _errors_projectClassification === void 0 ? void 0 : _errors_projectClassification.message
})
]
}),
/*#__PURE__*/ _jsxs("div", {
className: "ptf-form-group",
children: [
/*#__PURE__*/ _jsxs("label", {
"data-number": form.fields.infrastructureEnvironment.number,
children: [
/*#__PURE__*/ _jsx("span", {
style: {
color: "red"
},
children: "* "
}),
form.fields.infrastructureEnvironment.label
]
}),
/*#__PURE__*/ _jsx("div", {
className: "ptf-custom-radio-group",
children: form.fields.infrastructureEnvironment.options.filter((option)=>option.value !== "").map((option)=>{
const isActive = selectedInfrastructure === option.value;
const isInvalid = !!errors.infrastructureEnvironment;
return /*#__PURE__*/ _jsxs("label", {
className: "ptf-custom-radio-option ".concat(isActive ? "is-active" : "", " ").concat(isInvalid ? "is-invalid-option" : ""),
children: [
/*#__PURE__*/ _jsx("input", {
type: "radio",
name: "infrastructureEnvironment",
value: option.value,
...register("infrastructureEnvironment")
}),
option.label
]
}, option.value);
})
}),
errors.infrastructureEnvironment && /*#__PURE__*/ _jsx("div", {
className: "invalid-feedback",
style: {
display: "block",
marginTop: "0.5rem"
},
children: (_errors_infrastructureEnvironment = errors.infrastructureEnvironment) === null || _errors_infrastructureEnvironment === void 0 ? void 0 : _errors_infrastructureEnvironment.message
})
]
}),
/*#__PURE__*/ _jsxs("div", {
className: "ptf-form-group",
children: [
/*#__PURE__*/ _jsxs("label", {
"data-number": form.fields.projectGoal.number,
children: [
/*#__PURE__*/ _jsx("span", {
style: {
color: "red"
},
children: "* "
}),
form.fields.projectGoal.label
]
}),
/*#__PURE__*/ _jsx("textarea", {
type: "text",
name: "projectGoal",
...register("projectGoal"),
className: "".concat(errors.projectGoal ? "is-invalid" : "")
}),
errors.projectGoal && /*#__PURE__*/ _jsx("div", {
className: "invalid-feedback",
children: (_errors_projectGoal = errors.projectGoal) === null || _errors_projectGoal === void 0 ? void 0 : _errors_projectGoal.message
})
]
}),
/*#__PURE__*/ _jsxs("div", {
className: "ptf-form-group",
children: [
/*#__PURE__*/ _jsxs("label", {
"data-number": form.fields.timeline.number,
children: [
/*#__PURE__*/ _jsx("span", {
style: {
color: "red"
},
children: "* "
}),
form.fields.timeline.label
]
}),
/*#__PURE__*/ _jsx("div", {
className: "ptf-custom-radio-group three-cols",
children: form.fields.timeline.options.filter((option)=>option.value !== "").map((option)=>{
const isActive = selectedTimeline === option.value;
const isInvalid = !!errors.timeline;
return /*#__PURE__*/ _jsxs("label", {
className: "ptf-custom-radio-option ".concat(isActive ? "is-active" : "", " ").concat(isInvalid ? "is-invalid-option" : ""),
children: [
/*#__PURE__*/ _jsx("input", {
type: "radio",
name: "timeline",
value: option.value,
...register("timeline")
}),
option.label
]
}, option.value);
})
}),
errors.timeline && /*#__PURE__*/ _jsx("div", {
className: "invalid-feedback",
style: {
display: "block",
marginTop: "0.5rem"
},
children: (_errors_timeline = errors.timeline) === null || _errors_timeline === void 0 ? void 0 : _errors_timeline.message
})
]
}),
/*#__PURE__*/ _jsxs("div", {
className: "ptf-form-group",
ref: openDropdown === "budget" ? dropdownRef : null,
children: [
/*#__PURE__*/ _jsxs("label", {
"data-number": form.fields.budget.number,
children: [
/*#__PURE__*/ _jsx("span", {
style: {
color: "red"
},
children: "* "
}),
form.fields.budget.label
]
}),
/*#__PURE__*/ _jsxs("div", {
className: "ptf-custom-select",
children: [
/*#__PURE__*/ _jsx("input", {
type: "hidden",
name: "budget",
...register("budget")
}),
/*#__PURE__*/ _jsxs("div", {
className: "ptf-custom-select-trigger ".concat(openDropdown === "budget" ? "is-open" : "", " ").concat(errors.budget ? "is-invalid" : ""),
onClick: ()=>setOpenDropdown(openDropdown === "budget" ? null : "budget"),
children: [
/*#__PURE__*/ _jsx("span", {
children: watch("budget") ? (_form_fields_budget_options_find1 = form.fields.budget.options.find((o)=>o.value === watch("budget"))) === null || _form_fields_budget_options_find1 === void 0 ? void 0 : _form_fields_budget_options_find1.label : "Select your budget..."
}),
/*#__PURE__*/ _jsx("svg", {
width: "12",
height: "8",
viewBox: "0 0 12 8",
fill: "none",
xmlns: "http://www.w3.org/2000/svg",
style: {
transform: openDropdown === "budget" ? "rotate(180deg)" : "rotate(0deg)",
transition: "transform 0.2s"
},
children: /*#__PURE__*/ _jsx("path", {
d: "M1 1.5L6 6.5L11 1.5",
stroke: "currentColor",
strokeWidth: "1.5"
})
})
]
}),
openDropdown === "budget" && /*#__PURE__*/ _jsx("div", {
className: "ptf-custom-select-options",
children: form.fields.budget.options.map((option)=>/*#__PURE__*/ _jsx("div", {
className: "ptf-custom-select-option ".concat(watch("budget") === option.value ? "is-selected" : ""),
onClick: ()=>{
setValue("budget", option.value, {
shouldValidate: true
});
setOpenDropdown(null);
},
children: option.label
}, option.label))
})
]
}),
errors.budget && /*#__PURE__*/ _jsx("div", {
className: "invalid-feedback",
style: {
display: "block",
marginTop: "0.5rem"
},
children: (_errors_budget = errors.budget) === null || _errors_budget === void 0 ? void 0 : _errors_budget.message
})
]
}),
/*#__PURE__*/ _jsx("div", {
className: "ptf-spacer",
style: {
"--ptf-xxl": "2.5rem"
}
}),
/*#__PURE__*/ _jsxs("div", {
className: "ptf-form-group agreement-checkbox ",
children: [
/*#__PURE__*/ _jsx("input", {
name: "acceptTerms",
type: "checkbox",
id: "acceptTerms",
...register("acceptTerms"),
className: " ".concat(errors.acceptTerms ? "is-invalid" : "")
}),
/*#__PURE__*/ _jsxs("label", {
className: "ptf-checkbox",
htmlFor: "acceptTerms",
children: [
/*#__PURE__*/ _jsx("span", {
className: "ptf-checkbox__checkmark"
}),
form.terms
]
}),
errors.acceptTerms && /*#__PURE__*/ _jsx("div", {
className: "invalid-feedback",
children: (_errors_acceptTerms = errors.acceptTerms) === null || _errors_acceptTerms === void 0 ? void 0 : _errors_acceptTerms.message
})
]
}),
/*#__PURE__*/ _jsx("div", {
className: "ptf-spacer",
style: {
"--ptf-xxl": "5.625rem"
}
}),
/*#__PURE__*/ _jsxs("button", {
className: "ptf-submit-button",
disabled: submitStatus === "loading",
children: [
submitStatus === "loading" ? "Sending..." : form.submitLabel,
/*#__PURE__*/ _jsx("svg", {
xmlns: "http://www.w3.org/2000/svg",
fill: "currentColor",
viewBox: "0 0 17 17",
children: /*#__PURE__*/ _jsx("path", {
d: "M16 .997V10h-1V2.703L4.683 13l-.707-.708L14.291 1.997H6.975v-1H16z"
})
})
]
}),
submitStatus && /*#__PURE__*/ _jsx("div", {
style: {
marginTop: "1.5rem",
padding: "1rem",
borderRadius: "0.5rem",
color: submitStatus === "success" ? "#155724" : "#721c24",
backgroundColor: submitStatus === "success" ? "#d4edda" : "#f8d7da"
},
children: submitMessage
})
]
});
};
export default ContactForm;
`{����sideEffectFree�namespace
}���~���Z����������mainFields���` �����������������������������������������������������������������react$�react-dom$�react/jsx-runtime$�react/jsx-dev-runtime$�react-dom/client$�react-dom/server$�react-dom/static$�react-dom/static.edge$�react-dom/static.browser$�react-dom/server.edge$�react-dom/server.browser$�react-server-dom-webpack/client$�react-server-dom-webpack/client.edge$�react-server-dom-webpack/server.edge$�react-server-dom-webpack/server.node$�@vercel/turbopack-ecmascript-runtime/dev/client/hmr-client.ts�����������������������������������������������������������������next/dist/compiled/react�next/dist/compiled/react-dom�next/dist/compiled/react/jsx-runtime�next/dist/compiled/react/jsx-dev-runtime�next/dist/compiled/react-dom/client�next/dist/compiled/react-dom/server�next/dist/compiled/react-dom-experimental/static�next/dist/compiled/react-dom-experimental/static.edge�next/dist/compiled/react-dom-experimental/static.browser�next/dist/build/webpack/alias/react-dom-server-edge.js�next/dist/build/webpack/alias/react-dom-server-browser.js�next/dist/compiled/react-server-dom-webpack/client�next/dist/compiled/react-server-dom-webpack/client.edge�next/dist/compiled/react-server-dom-webpack/server.edge�next/dist/compiled/react-server-dom-webpack/server.node�next/dist/client/dev/noop-turbopack-hmr
�browser����main����
�`��������������������������������������������X����exportsArgument��������
� G:\zinisoft\zinisoft_beta\zinisoft.net\frontend-v3\node_modules\next\dist\build\webpack\loaders\next-flight-client-module-loader.jsW������������d4fa070475831f85�����actions�isClientRef�����__webpack_exports__ �ContactForm�*default* �
�|�yB���)����webpack/lib/dependencies/HarmonyCompatibilityDependency
d� � ��a=|
b=|�`}@�
`�A� �
`*�A� �
`6�A�
`�A D
`.�webpack/lib/dependencies/HarmonyExportHeaderDependencya
A�i �i
A�i �i
@� @� `
``�webpack/lib/dependencies/HarmonyImportSideEffectDependency�react/jsx-runtime�
b=|����
`����
`*�@hookform/resolvers/yup�
`6����
`�../data/contact�
`.�webpack/lib/dependencies/HarmonyImportSpecifierDependencya�contactPage�A> I
�default
�form���
b �object�YupA~ � A~ �
��������
c'�string�A� � A� �
��������
c��A� � A� �
��������
c
��A8 B A8 ;
��������
c��A� � A� �
��������
c)��A $ A
����������
c#-��Ay � Ay |
����������
c��A� � A� �
����������
c��A A
����������
c�bool�A\ d A\ _
����������
c�yupResolver�A# . ����
c�useForm�A� � ����������
c&J&Q��useState�ReactA# 1 A# (
����������
c,,,:���A� � A� �
����������
c-.-<���A� � A� �
����������
c.,.:��useRef�A * A #
�|���|����
c//$��useEffect�A6 E A6 ;
�v���v����
c00�jsxs�_jsxsA� � ����
cRR��A' , ����
cVV��A� � ����
cY"Y'�jsx�_jsxA@ D �~���~����
c\*\.��A� � �z���z����
ce"e&��A� � �v���v����
ck1k5��A� � �r���r����
cqq��AW \ |���n���n����
ct"t'��A� x���j���j����
cw*w.��Ah l t���f���f����
@� `"@� `&��A� � p���b���b����
@� `9@� `=��A� � l���^���^����
@� `@� `��A] b h���Z���Z����
@� `"@� `'��A� d���V���V����
@� `*@� `.��A`! d! `���R���R����
@� `"@� `&��A�"