PageSourceSearch

https://shoppyhub.mn/_next/static/chunks/app/%5Blocale%5D/turnstile/page-55582a210f17fed7.js

js shoppyhub.mn collected 2026-10-02 02:00:41 UTC 7,612 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7034],{20063:(e,t,r)=>{"use strict";var n=r(47260);r.o(n,"useParams")&&r.d(t,{useParams:function(){return n.useParams}}),r.o(n,"usePathname")&&r.d(t,{usePathname:function(){return n.usePathname}}),r.o(n,"useRouter")&&r.d(t,{useRouter:function(){return n.useRouter}}),r.o(n,"useSearchParams")&&r.d(t,{useSearchParams:function(){return n.useSearchParams}}),r.o(n,"useSelectedLayoutSegments")&&r.d(t,{useSelectedLayoutSegments:function(){return n.useSelectedLayoutSegments}})},21796:(e,t,r)=>{"use strict";r.d(t,{default:()=>d});var n=r(95155),s=r(12115),a=r(20063),o=r(24274),i=r(97953);async function l(e){return i.u.post("/api/turnstile/verify",{token:e},{headers:{"Content-Type":"application/json"}})}async function c(){return i.u.post("/api/turnstile/failopen",{},{headers:{"Content-Type":"application/json"}})}let u="cf-turnstile-script";function d(){let{t:e}=(0,o.Bd)(),t=(0,a.useParams)(),r=(0,a.useSearchParams)(),i=((null==t?void 0:t.locale)||"mn").toString(),d="0x4AAAAAACMa-qlxQSFJxUU3",f=(0,s.useMemo)(()=>{var e;return e=r.get("returnTo"),!e||!e.startsWith("/")||e.startsWith("//")?"/".concat(i):e},[r,i]),m=(0,s.useRef)(null),p=(0,s.useRef)(null),h=(0,s.useRef)(!1),[g,x]=(0,s.use
1State)(!1),[y,b]=(0,s.useState)(!1),[v,w]=(0,s.useState)(null),S=(0,s.useCallback)(async()=>{if(!h.current){h.current=!0;try{await c()}catch(e){}window.location.replace(f)}},[f]);return(0,s.useEffect)(()=>{let e=document.getElementById(u);if(e)return void(window.turnstile?x(!0):e.addEventListener("load",()=>x(!0),{once:!0}));let t=document.createElement("script");t.id=u,t.src="https://challenges.cloudflare.com/turnstile/v0/api.js",t.async=!0,t.defer=!0,t.onload=()=>x(!0),t.onerror=()=>{S()},document.head.appendChild(t)},[S]),(0,s.useEffect)(()=>{let e=setTimeout(()=>{S()},1e4);return()=>clearTimeout(e)},[S]),(0,s.useEffect)(()=>{if(!g||!d||!m.current)return;let e=window.turnstile;e&&(p.current||(w(null),p.current=e.render(m.current,{sitekey:d,callback:async e=>{b(!0),w(null);try{await l(e),h.current=!0,window.location.replace(f);return}catch(e){await S()}finally{b(!1)}},"error-callback":()=>{S()},"expired-callback":()=>{S()}})))},[g,f,d,e,S]),(0,n.jsxs)("div",{className:"fixed inset-0 z-[1100] flex items-center justify-center px-4 py-10",children:[(0,n.jsx)("div",{className:"absolute inset-0 bg-black/50 backdrop-blur-sm"}),(0,n.jsxs)("div",{className:"absolute inset-0 pointer-events-none",children:[(0,n.jsx)("span",{className:"absolute -top-12 left-8 h-40 w-40 rounded-full bg-orange-400/30 blur-3xl"}),(0,n.jsx)("span",{className:"absolute bottom-10 right-10 h-56 w-56 rounded-full bg-amber-300/25 blur-[140px]"})]}),(0,n.jsxs)("div",{className:"relative w-full max-w-md rounded-2xl border border-white/50 bg-white/85 p-6 shadow-[0_25px_60px_rgba(15,23,42,0.2)] backdrop-blur-xl",children:[(0,n.jsx)("div",{className:"text-lg font-semibold text-gray-900",children:e("turnstile.title")}),(0,n.jsx)("p",{className:"mt-1 text-sm text-gray-600",children:e("turnstile.description")}),!d&&(0,n.jsx)("div",{className:"mt-4 rounded-lg border border-red-200 bg-red-50 px-3 py-2 text-sm text-red-700",children:e("turnstile.missingSiteKey")}),(0,n.jsx)("div",{className:"mt-4",children:(0,n.jsx)("div",{ref:m})}),y&&(0,n.jsx)("div",{className:"mt-3 text-xs text-gray-500",children:e("turnstile.verifying")}),v&&(0,n.jsx)("div",{className:"mt-3 text-xs text-red-600",children:v})]})]})}},44013:(e,t,r)=>{"use strict";r.d(t,{_:()=>n,u:()=>s});class n extends Error{static fromUnknown(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e instanceof n){var r,s,a,o,i,l;return new n(e.message,{code:null!=(r=e.code)?r:t.code,status:null!=(s=e.status)?s:t.status,details:null!=(a=e.details)?a:t.details,cause:null!=(o=e.cause)?o:t.cause,operation:null!=(i=e.operation)?i:t.operation,transient:null!=(l=e.transient)?l:t.transient})}if(e instanceof Error){let r="AbortError"===e.name||e.message.toLowerCase().includes("aborted");return new n(e.message,{...t,code:r?"REQUEST_ABORTED":t.code,cause:e,transient:r||t.transient})}return"string"==typeof e&&e.trim()?new n(e,t):new n("Unexpected service error",{...t,details:null!=e?e:t.details})}constructor(e,t={}){super(e),this.name="ServiceError",this.code=t.code,this.status=t.status,this.details=t.details,this.operation=t.operation,this.transient=t.transient,void 0!==t.cause&&(this.cause=t.cause)}}function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Unexpected service error";return e instanceof n||e instanceof Error?e.message||t:"string"==typeof e&&e.trim()?e:t}},69615:(e,t,r)=>
1{Promise.resolve().then(r.bind(r,21796))},97953:(e,t,r)=>{"use strict";r.d(t,{u:()=>i});var n=r(44013);async function s(e){let t=(e.headers.get("content-type")||"").toLowerCase(),r=await e.text().catch(()=>"");if(!r)return{message:"HTTP ".concat(e.status)};if(t.includes("application/json"))try{return JSON.parse(r)}catch(e){}return{message:r}}async function a(e,t){if("response"===t)return e;if("blob"===t)return await e.blob();if("text"===t)return await e.text();let r=await e.text().catch(()=>"");if(!r)return{};try{return JSON.parse(r)}catch(e){return{message:r}}}async function o(e){var t,r,o;let i,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{body:c,query:u,parseAs:d="json",throwOnError:f=!0,headers:m,...p}=l,h=function(e){let t=new Headers(e);return t.has("Accept")||t.set("Accept","application/json"),t}(m);null!=c&&(c instanceof FormData||c instanceof URLSearchParams||c instanceof Blob?(i=c,c instanceof FormData&&h.delete("Content-Type")):"string"==typeof c?i=c:!(!c||"object"!=typeof c||c instanceof FormData||c instanceof URLSearchParams||c instanceof Blob||c instanceof ArrayBuffer||ArrayBuffer.isView(c))&&1||Array.isArray(c)?(h.has("Content-Type")||h.set("Content-Type","application/json"),i=JSON.stringify(c)):i=c);let g=function(e,t){if(!t||0===Object.keys(t).length)return e;let[r,n=""]=e.split("#",2),[s,a=""]=r.split("?",2),o=new URLSearchParams(a);for(let[e,r]of Object.entries(t)){let t=Array.isArray(r)?r:[r];for(let r of(o.delete(e),t))null!=r&&""!==r&&o.append(e,String(r))}let i=o.toString(),l=i?"".concat(s,"?").concat(i):s;return n?"".concat(l,"#").concat(n):l}(e,u);try{let e=await fetch(g,{...p,headers:h,body:i});if(!e.ok&&f){let a=await s(e);throw new n._((t=e.status,(null==a?void 0:a.message)||(null==a||null==(r=a.error)?void 0:r.message)||(null==a?void 0:a.error)||"HTTP ".concat(t)),{code:"string"==typeof(null==a?void 0:a.code)&&a.code?a.code:"string"==typeof(null==a||null==(o=a.error)?void 0:o.code)&&a.error.code?a.error.code:void 0,status:e.status,details:a,operation:"".concat(p.method||"GET"," ").concat(g),transient:429===e.status||e.status>=500})}return a(e,d)}catch(e){throw n._.fromUnknown(e,{operation:"".concat(p.method||"GET"," ").concat(g)})}}let i={request:o,get(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o(e,{...t,method:"GET"})},post(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return o(e,{...r,method:"POST",body:t})},put(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return o(e,{...r,method:"PUT",body:t})},delete(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o(e,{...t,method:"DELETE"})},getBlob(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o(e,{...t,method:"GET",parseAs:"blob"})},getText(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o(e,{...t,method:"GET",parseAs:"text"})}}}},e=>{e.O(0,[4274,8441,1255,7358],()=>e(e.s=69615)),_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.