PageSourceSearch

https://www.pricerite.com.hk/_next/static/chunks/pages/test-login-e830445853ca7eaa.js

js pricerite.com.hk collected 2026-09-25 19:01:34 UTC 3,258 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3896],{14859:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>x});var s=r(50979),n=r(25963),i=r(47051),l=r.n(i),a=r(3080),c=r(28393),o=r(44134);function x(){let e=(0,a.useRouter)(),t=(0,n.useRef)(!1),[r,i]=(0,n.useState)(""),[x,d]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{var r;if(!e.isReady||t.current)return;t.current=!0;let s=((function(){let e=window.location.hash.replace(/^#/,"");return e&&new URLSearchParams(e).get("key")||""})()||(Array.isArray(r=e.query.key)?r[0]||"":r||"")).trim();if(!s)return void i("測試登入連結無效或已停用");(async()=>{try{var e;let t=await c.xh.services.testLogin({key:s});if((null==t?void 0:t.code)!==200)return void i("測試登入連結無效或已停用");let r=function(e){let t=String(e||"").trim()||"/";return!t.startsWith("/")||t.startsWith("//")?"/":t}((null==t?void 0:t.redirectPath)||(null==t||null==(e=t.result)?void 0:e.redirectPath));d(!0),window.setTimeout(()=>{window.location.replace(r)},1200)}catch(e){i("測試登入連結無效或已停用")}})()},[e.isReady,e.query.key]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(l(),{children:[(0,s.jsx)("title",{children:"Test Login"}),(0,s.jsx)("meta",{name:"robots",content:"noindex,nofollow"})]}),(0,s.jsx)("main",{className:"min-h-screen bg-gray-50 flex items-center justify-center p-4",children:(0,s.jsx)("div",{className:"w-full max-w-sm rounded-lg border border-gray-200 bg-white p-6 text-center shadow-sm",children:r?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("h1",{className:"text-lg font-semibold text-gray-900",children:"測試登入不可用"}),(0,s.jsx)("p",{className:"mt-3 text-sm text-gray-600",children:r})]}):x?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("h1",{className:"text-lg font-semibold text-gray-900",children:"登入成功"}),(0,s.jsx)("p",{className:"mt-3 text-sm text-gray-600",children:"正在跳轉"})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.A,{size:"lg",className:"mx-auto"}),(0,s.jsx)("h1",{className:"mt-4 text-lg font-semibold text-gray-900",children:"正在登入"})]})})})]})}},44134:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var s=r(50979),n=r(4577),i=r.n(n),l=r(54509);let a={[l.IS.xs]:"h-4 w-4 ring-2",[l.IS.sm]:"h-5 w-5 ring-2",[l.IS.base]:"h-6 w-6 ring-2",[l.IS.lg]:"h-8 w-8 ring-2",[l.IS.xl]:"h-10 w-10 ring-2",[l.IS["2xl"]]:"h-14 w-14 ring-[3px]",[l.IS["3xl"]]:"h-24 w-24 ring-4",[l.IS["4xl"]]:"h-48 w-48 ring-8"},c={[l.IS.xs]:"stroke-[10px]",[l.IS.sm]:"stroke-[8px]",[l.IS.base]:"stroke-[6px]",[l.IS.lg]:"stroke-[4px]",[l.IS.xl]:"stroke-[3px]",[l.IS["2xl"]]:"stroke-[3px]",[l.IS["3xl"]]:"stroke-2",[l.IS["4xl"]]:"stroke-2"};function o(e){let{size:t=l.IS.base,ariaLabel:r="loading",className:n,...o}=e;return(0,s.jsx)("svg",{className:i()("inline-block ring-inset ring-neutral-300 text-primary-700 rounded-full animate-spin-slow",a[t],n),viewBox:"25 25 50 50","aria-live":"polite","aria-label":r,"data-testid":"loader-circular",...o,children:(0,s.jsx)("circle",{className:i()("fill-none stroke-2 stroke-current animate-stroke-loader-circular",c[t]),cx:"50",cy:"50",r:"24"})})}},77327:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/test-login",function(){return r(14859)}])}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=77327)),_N_E=e.O()}]);

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.