PageSourceSearch

https://www.sqlnoir.com/_next/static/chunks/app/%5Blocale%5D/layou…?dpl=dpl_G8NiyT6cfGABQ3NPQ8RnAsK8MXFV

js sqlnoir.com collected 2026-10-04 00:05:47 UTC 7,076 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1203],{9058:function(e,t,n){Promise.resolve().then(n.bind(n,8291)),Promise.resolve().then(n.bind(n,9441)),Promise.resolve().then(n.t.bind(n,7978,23)),Promise.resolve().then(n.bind(n,6922)),Promise.resolve().then(n.bind(n,9732)),Promise.resolve().then(n.bind(n,2047))},6922:function(e,t,n){"use strict";n.d(t,{CookieConsent:function(){return a}});var r=n(7437),c=n(2265),o=n(8706),i=n(5221);function a(){let[e,t]=(0,c.useState)(!1),n=(0,o.T)("cookieConsent");return((0,c.useEffect)(()=>{localStorage.getItem("cookie-consent")||t(!0)},[]),e)?(0,r.jsx)("div",{className:"fixed bottom-0 left-0 right-0 z-50 bg-amber-900 text-amber-50",style:{paddingBottom:"max(0.625rem, env(safe-area-inset-bottom))"},children:(0,r.jsxs)("div",{className:"mx-auto flex max-w-3xl flex-col gap-2.5 px-4 pt-2.5 sm:flex-row sm:items-center sm:justify-center sm:gap-3 sm:pt-2.5",children:[(0,r.jsxs)("p",{className:"text-pretty text-sm leading-snug",children:[n("message")," ",(0,r.jsx)(i.rU,{href:"/privacy",className:"underline underline-offset-2 hover:text-amber-200",children:n("privacyLink")})]}),(0,r.jsx)("button",{type:"button",onClick:()=>{localStorage.setItem("cookie-consent","true"),t(!1),window.dispatchEvent(new Event("cookie-consent-granted"))},className:"w-full shrink-0 rounded bg-amber-50 px-4 py-2 text-sm font-medium text-amber-900 transition-[background-color,transform] hover:bg-amber-200 active:scale-[0.96] sm:w-auto sm:py-1.5",children:n("accept")})]})}):null}},9732:function(e,t,n){"use strict";n.d(t,{LicenseSync:function(){return i}});var r=n(2265),c=n(5526),o=n(7098);function i(){let e=(0,r.useRef)(null);return(0,r.useEffect)(()=>{if(!c.O)return;let t=e=>{if(window.location.pathname.includes("/checkout/success"))return;let t=null;try{t=localStorage.getItem(o.Lc)}catch(e){}let n=window.location.pathname.split("/")[1],r=t?(0,o.ck)(t):"pt-br"===n||"zh-CN"===n?"/".concat(n):"";window.location.assign("".concat(r,"/checkout/success").concat(e))},n=async(e,n)=>{for(let r=1;r<=7;r++){try{let r=await fetch("/api/claim-license",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(e)},body:JSON.stringify({stripeSessionId:n})}),c=await r.json().catch(()=>({}));if(r.ok&&c.success)return localStorage.removeItem(o.T2),t("?claimed=1"),!0;if(403===r.status){localStorage.removeItem(o.T2);break}}catch(e){}r<7&&await new Promise(e=>setTimeout(e,2e3))}return!1},{data:{subscription:r}}=c.O.auth.onAuthStateChange((r,c)=>{var i,a;if("SIGNED_OUT"===r){e.current=null;return}let u=null!==(a=null==c?void 0:null===(i=c.user)||void 0===i?void 0:i.id)&&void 0!==a?a:null;if(!u||e.current===u)return;e.current=u;let s=null==c?void 0:c.access_token;s&&(async()=>{let e=localStorage.getItem(o.T2);if(e){if(await n(s,e))return;t("");return}fetch("/api/claim-license",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(s)},body:JSON.stringify({})}).catch(()=>{})})()});return()=>r.unsubscribe()},[]),null}},2047:function(e,t,n){"use strict";n.d(t,{PostHogProvider:function(){return l}});var r=n(7437),c=n(2265),o=n(9376),i=n(3664),a=n(38),u=n(5526),s=n(4371);function l(e){let{children:t}=e;(0,c.useEffect)(()=>{(0,a.IR)();let e=()=>(0,a.IR)();return window.addEventListener("cookie-consent-granted",e),()=>window.removeEventListener("cookie-consent-granted",e)},[]);let n=(0,o.usePathname)();(0,c.useEffect)(()=>{a.Sm&&"1"!==navigator.doNotTrack&&a.LJ.capture("$pageview",{$current_url:window.location.href})},[n]);let l=(0,c.useRef)(null);return((0,c.useEffect)(()=>{if(!u.O)return;let{data:{subscription:e}}=u.O.auth.onAuthStateChange(async(e,t)=>{if(a.Sm){if("SIGNED_IN"===e&&(null==t?void 0:t.user)){var n;let e=t.user,r=l.current!==e.id;l.current=e.id;let c=null===(n=e.app_metadata)||void 0===n?void 0:n.provider;r&&c&&"email"!==c&&(0,s.IE)("login",{method:"oauth"});let o=0,{data:i}=await u.O.from("user_info").select("completed_cases").eq("id",e.id).single();(null==i?void 0:i.completed_cases)&&(o=Array.isArray(i.completed_cases)?i.completed_cases.length:0),(0,s.$A)(e.id,{email:e.email,sign_up_date:e.created_at,cases_completed_count:o})}else"SIGNED_OUT"===e&&(l.current=null,(0,s.zb)())}});return()=>e.unsubscribe()},[]),a.Sm)?(0,r.jsx)(i.zf,{client:a.LJ,children:t}):(0,r.jsx)(r.Fragment,{children:t})}},5221:function(e,t,n){"use strict";n.d(t,{rU:function(){return o},jD:function(){return a},tv:function(){return u}});var r=n(9198);let c=(0,n(5426).Z)({locales:["en","pt-br","zh-CN"],defaultLocale:"en",localePrefix:"as-needed"}),{Link:o,redirect:i,usePathname:a,useRouter:u,getPathname:s}=(0,r.Z)(c)},4371:function(e,t,n){"use strict";n.d(t,{$A:function(){return o},IE:function(){return c},zb:function(){return i}});var r=n(38);function c(e,t){r.Sm&&"1"!==navigator.doNotTrack&&r.LJ.capture(e,t)}function o(e,t){r.Sm&&"1"!==navigator.doNotTrack&&r.LJ.identify(e,t)}function i(){r.Sm&&r.LJ.reset()}},7098:function(e,t,n){"use strict";n.d(t,{Dw:function(){return h},Fq:function(){return a},Lc:function(){return c},T2:function(){return r},U$:function(){return p},WW:function(){return u},_R:function(){return m},c4:function(){return d},ck:function(){return o},vI:function(){return s}});let r="sqlnoir_pending_claim_session",c="sqlnoir_pending_claim_locale";function o(e){return"pt-br"===e||"zh-CN"===e?"/".concat(e):""}let i="sqlnoir_has_license";function a(){try{return"1"===localStorage.getItem(i)}catch(e){return!1}}function u(e){try{e?localStorage.setItem(i,"1"):localStorage.removeItem(i)}catch(e){}}function s(){try{localStorage.removeItem(i)}catch(e){}}let l=new Set(["case-001","case-002","case-003"]),f=new Set(["beginner"]);function d(e){return l.has(e.id)||f.has(e.category)}function m(e){return d(e)}function p(e,t){return!d(e)&&!t}function h(e){return!!e&&!!e.has_license}},38:function(e,t,n){"use strict";n.d(t,{Ev:function(){return u},IR:function(){return i},LJ:function(){return r.ZP},Sm:function(){return c},Uz:function(){return l},jt:function(){return s}});var r=n(6214);let c="phc_C9evTEmJ8kVCqV0JMxU8A0sL3PdbBxmG0f3usUq4X5x",o=!1;function i(){!o&&c&&"true"===localStorage.getItem("cookie-consent")&&(r.ZP.init(c,{api_host:"https://us.i.posthog.com",capture_pageview:!0,capture_pageleave:!0,persistence:"localStorage+cookie",respect_dnt:!0}),o=!0)}function a(){let e=navigator.doNotTrack;return"1"===e||"true"===e}function u(e,t){!c||a()||r.ZP.capture("paywall_shown",{case_id:e,trigger_location:t})}
1function s(e,t){!c||a()||r.ZP.capture("paywall_cta_clicked",{case_id:e,...t})}function l(e){!c||a()||r.ZP.capture("paywall_dismissed",{case_id:e})}},5526:function(e,t,n){"use strict";n.d(t,{O:function(){return i}});var r=n(3777);n(257);let c="https://tbdhpragufbflkufbvsy.supabase.co",o="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InRiZGhwcmFndWZiZmxrdWZidnN5Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3Mzg2MjA1NjIsImV4cCI6MjA1NDE5NjU2Mn0.bqmg9DTQy2pZZvMBK0lx8rUfjs-Or-MNKSaRjZI84f8",i=c&&o?(0,r.eI)(c,o):null}},function(e){e.O(0,[6382,5878,5389,2024,2971,2117,1744],function(){return e(e.s=9058)}),_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.