PageSourceSearch

https://www.nailishen.com/_next/static/chunks/8192.710174220ba60abc.js

js nailishen.com collected 2026-10-09 23:30:10 UTC 4,939 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8192],{48192:(e,t,r)=>{r.r(t),r.d(t,{LoadingAnimation:()=>u,PageTransitionLoader:()=>a});var n=r(41733),l=r(8641),s=r(39407),i=r(50707);function a(e){let{logo:t=null}=e,r=(0,s.usePathname)(),[a,u]=(0,l.useState)(!1),[o,d]=(0,l.useState)(!1),m=(0,l.useRef)(null),f=(0,l.useRef)(null),p=(0,l.useRef)(!0),h=(0,l.useRef)(0),g=(0,l.useRef)(null),v=(0,l.useRef)(null),x=e=>{if(!e||"string"!=typeof e)return"/";let t=e.trim().replace(/\/+/g,"/"),r="/"===t||""===t?"/":t.replace(/\/+$/,"");for(let e of i.sM||[]){let t="/".concat(e);if(r===t||r==="".concat(t,"/"))return"/";if(r.startsWith("".concat(t,"/"))){let e=r.slice(t.length)||"/";return e.startsWith("//")?e.replace(/^\/+/,"/"):e}}return r},j=e=>{if(!e||"string"!=typeof e)return null;let t=e.trim().replace(/\/+/g,"/").split("/");return t.length>1&&(null===i.sM||void 0===i.sM?void 0:i.sM.includes(t[1]))?t[1]:null};if((0,l.useEffect)(()=>()=>{g.current&&clearTimeout(g.current),v.current&&clearTimeout(v.current)},[]),(0,l.useEffect)(()=>{m.current=null!=t?t:null},[t]),(0,l.useEffect)(()=>{let e=e=>{var n,l,s;if(e.defaultPrevented)return;let i=e.target,a=null==i||null==(n=i.closest)?void 0:n.call(i,"a[href]");if(!a)return;let c=a.getAttribute("href");if(!c||a.hasAttribute("download"))return;let o=null!=(s=null==(l=a.getAttribute("target"))?void 0:l.trim().toLowerCase())?s:"";if(o&&"_self"!==o||c.startsWith("#")||c.startsWith("mailto:")||c.startsWith("tel:"))return;let p=c.startsWith("http://")||c.startsWith("https://");(c.startsWith("/")||p)&&(0!==e.button||e.ctrlKey||e.metaKey||e.shiftKey||e.altKey||(e=>{let n=e?e.startsWith("/")?new URL(e,window.location.origin).pathname:e.startsWith(window.location.origin)?new URL(e).pathname:null:null;if(!n)return;let l=r||"/",s=j(l),i=j(n);(x(n)!==x(l)||s!==i)&&(m.current=null!=t?t:null,f.current=n,h.current="undefined"!=typeof performance?performance.now():Date.now(),g.current&&(clearTimeout(g.current),g.current=null),v.current&&(clearTimeout(v.current),v.current=null),u(!0),d(!0))})(c))};return document.addEventListener("click",e,!0),()=>{document.removeEventListener("click",e,!0)}},[r]),(0,l.useEffect)(()=>{if(p.current){p.current=!1;return}f.current&&x(r)===x(f.current)&&(()=>{let e=Math.max(0,450-Math.max(0,("undefined"!=typeof performance?performance.now():Date.now())-h.current));g.current&&clearTimeout(g.current),v.current&&(clearTimeout(v.current),v.current=null),g.current=setTimeout(()=>{g.current=null,u(!1),v.current=setTimeout(()=>{v.current=null,d(!1),f.current=null},200)},e)})()},[r]),!o)return null;let y=m.current;return(0,n.jsx)("div",{className:"fixed inset-0 z-[9999] flex flex-col items-center justify-center transition-opacity duration-200 ".concat(a?"opacity-100":"opacity-0"),style:{pointerEvents:"none"},"aria-hidden":"true",children:(0,n.jsx)(c,{logo:y})})}function c(e){let{logo:t}=e;return(0,n.jsx)("div",{className:"enterprise-loader-container",children:(0,n.jsxs)("div",{className:"enterprise-loader-unit",children:[(0,n.jsx)("div",{className:"loader-background-circle"}),(0,n.jsx)("div",{className:"enterprise-spinner-wrapper",children:(0,n.jsxs)("div",{className:"enterprise-spinner",children:[(0,n.jsx)("div",{className:"spinner-segment"}),(0,n.jsx)("div",{className:"spinner-segment"}),(0,n.jsx)("div",{className:"spinner-segment"}),(0,n.jsx)("div",{className:"spinner-segment"}),(0,n.jsx)("div",{className:"spinner-segment"}),(0,n.jsx)("div",{className:"spinner-segment"}),(0,n.jsx)("div",{className:"spinner-segment"}),(0,n.jsx)("div",{className:"spinner-segment"})]})}),(0,n.jsx)("div",{className:"enterprise-logo-wrapper",children:t?(0,n.jsx)("img",{src:t,alt:"Logo",className:"enterprise-logo-img",style:{display:"block"}}):(0,n.jsx)("div",{className:"enterprise-logo-placeholder",children:(0,n.jsx)("span",{children:"N"})})})]})})}function u(e){var t;let{isLoading:r=!0,logo:s=null,message:i="",dict:a,className:u=""}=e;i||null==a||null==(t=a.common)||t.loading;let[o,d]=(0,l.useState)(s),[m,f]=(0,l.useState)(r),[p,h]=(0,l.useState)(r);return((0,l.useEffect)(()=>{if(s)s&&d(s);else{let e=(()=>{let e=document.querySelector('header img[alt*="品牌"], header img[alt*="logo"], header img');if(e&&e instanceof HTMLImageElement){let t=e.src;if(t.includes("/_next/image?url="))try{let e=new URL(t,window.location.origin).searchParams.get("url");e&&(t=decodeURIComponent(e))}catch(e){console.warn("[LoadingAnimation] 无法解析优化后的图片 URL:",e)}return t}return null})();e&&d(e)}},[s]),(0,l.useEffect)(()=>
1{if(r)f(!0),requestAnimationFrame(()=>{h(!0)});else{h(!1);let e=setTimeout(()=>{f(!1)},200);return()=>clearTimeout(e)}},[r]),m)?(0,n.jsx)("div",{className:"fixed inset-0 z-[9999] flex flex-col items-center justify-center transition-opacity duration-200 ".concat(u," ").concat(p?"opacity-100":"opacity-0"),style:{pointerEvents:"none"},"aria-hidden":"true",children:(0,n.jsx)(c,{logo:o})}):null}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.