1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{3998:(e,t,a)=>{"use strict";a.d(t,{$:()=>c});var r=a(95155),s=a(12115),n=a(32467),l=a(83101),o=a(76445);let i=(0,l.F)("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),c=s.forwardRef((e,t)=>{let{className:a,variant:s,size:l,asChild:c=!1,...d}=e,h=c?n.DX:"button";return(0,r.jsx)(h,{className:(0,o.cn)(i({variant:s,size:l,className:a})),ref:t,...d})});c.displayName="Button"},13673:()=>{},20274:(e,t,a)=>{"use strict";a.d(t,{N_:()=>s.a,rd:()=>n.useRouter});var r=a(52619),s=a.n(r),n=a(20063)},23169:(e,t,a)=>{"use strict";a.d(t,{a:()=>s,c:()=>r});let r={p1:"/p1.webp",p2:"/p2.webp",p3:"/p3.webp",p4:"/p4.webp",p5:"/p5.webp",p6:"/p6.webp",p7:"/p7.webp",p8:"/p8.webp",p9:"/p9.webp",p10:"/p10.webp"};function s(e){var t;return(null==(t=e.google_info)?void 0:t.picture)?e.google_info.picture:e.profile_picture&&r[e.profile_picture]?r[e.profile_picture]:null}},38138:(e,t,a)=>{"use strict";a.d(t,{QueryProvider:()=>l});var r=a(95155),s=a(99776),n=a(94412);function l(e){let{children:t}=e;return(0,r.jsx)(s.Ht,{client:n.q,children:t})}},38147:(e,t,a)=>{"use strict";a.d(t,{ConditionalLayout:()=>R});var r=a(95155),s=a(20063),n=a(36489),l=a(12115),o=a(67909),i=a(20274),c=a(3998),d=a(18955),h=a(20508),p=a(15870),x=a(20908),u=a(84926),g=a(76445);function m(e){let{isOpen:t,onClose:a,isGuestUser:s=!1}=e,o=(0,d.c)("headerAccount"),c=(0,l.useRef)(null);if((0,l.useEffect)(()=>{let e=e=>{"Escape"===e.key&&t&&a()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[t,a]),(0,l.useEffect)(()=>{let e=e=>{c.current&&!c.current.contains(e.target)&&a()};if(t){let t=setTimeout(()=>{document.addEventListener("mousedown",e)},0);return()=>{clearTimeout(t),document.removeEventListener("mousedown",e)}}},[t,a]),!t)return null;let m=[{id:"account",label:o("account"),href:"/account",icon:h.A,variant:"default"},{id:"settings",label:o("settings"),href:"/settings",icon:p.A,variant:"default"},{id:"faq",label:o("faq"),href:"/faq",icon:x.A,variant:"default"},{id:"logout",label:o("logout"),href:"#",icon:u.A,variant:"destructive"}].filter(e=>!s||"account"!==e.id&&"settings"!==e.id);return(0,r.jsx)("div",{ref:c,className:"fixed top-[68px] lg:top-[92px] right-4 md:right-6 lg:right-[calc(max((100vw-1536px)/2,0px)+64px)] w-56 bg-white rounded-lg shadow-2xl border border-gray-100 py-2 z-50",children:m.map(e=>"logout"===e.id?(0,r.jsxs)("button",{onClick:()=>{(0,n.signOut)({callbackUrl:"/"}),a()},className:(0,g.cn)("flex items-center px-4 py-3 text-sm font-medium transition-colors w-full text-left","destructive"===e.variant?"text-red-600 hover:bg-red-50":"text-gray-700 hover:bg-gray-50"),children:[e.icon&&(0,r.jsx)(e.icon,{className:"w-4 h-4 mr-3 flex-shrink-0"}),(0,r.jsx)("span",{children:e.label})]},e.id):(0,r.jsxs)(i.N_,{href:e.href,className:(0,g.cn)("flex items-center px-4 py-3 text-sm font-medium transition-colors","destructive"===e.variant?"text-red-600 hover:bg-red-50":"text-gray-700 hover:bg-gray-50"),onClick:a,children:[e.icon&&(0,r.jsx)(e.icon,{className:"w-4 h-4 mr-3 flex-shrink-0"}),(0,r.jsx)("span",{children:e.label})]},e.id))})}var f=a(87766),b=a(24033);let w=(0,r.jsxs)("div",{className:"w-[21px] h-[15px] bg-[#012169] rounded-[3px] relative overflow-hidden",children:[(0,r.jsx)("svg",{className:"absolute inset-0",viewBox:"0 0 21 15",preserveAspectRatio:"none",children:(0,r.jsx)("path",{d:"M 0,0 L 21,15 M 21,0 L 0,15",stroke:"white",strokeWidth:"3"})}),(0,r.jsx)("svg",{className:"absolute inset-0",viewBox:"0 0 21 15",preserveAspectRatio:"none",children:(0,r.jsx)("path",{d:"M 0,0 L 21,15 M 21,0 L 0,15",stroke:"#C8102E",strokeWidth:"1.8"})}),(0,r.jsx)("div",{className:"absolute top-0 left-0 right-0 h-[5px] translate-y-[5px] bg-white"}),(0,r.jsx)("div",{className:"absolute top-0 bottom-0 left-0 w-[7px] translate-x-[7px] bg-white"}),(0,r.jsx)("div",{className:"absolute top-0 left-0 right-0 h-[3px] translate-y-[6px] bg-[#C8102E]"}),(0,r.jsx)("div",{className:"absolute top-0 bottom-0 left-0 w-[4.2px] translate-x-[8.4px] bg-[#C8102E]"})]}),v=(0,r.jsxs)("div",{className:"w-[21px] h-[15px] bg-[#E30A17] rounded-[3px] relative overflow-hidden flex items-center justify-center",children:[(0,r.jsxs)("svg",{className:"absolute",width:"21",height:"15",viewBox:"0 0 21 15",children:[(0,r.jsx)("circle",{cx:"7.5",cy:"7.5",r:"4.5",fill:"white"}),(0,r.jsx)("circle",{cx:"9",cy:"7.5",r:"3.6",fill:"#E30A17"})]}),(0,r.jsx)("svg",{className:"absolute left-[11px] top-1/2 -translate-y-1/2",width:"3.5",height:"3.5",viewBox:"0 0 10 10",children:(0,r.jsx)("polygon",{points:"5,0.5 6.18,3.82 9.76,3.82 6.79,6.09 7.97,9.41 5,7.14 2.03,9.41 3.21,6.09 0.24,3.82 3.82,3.82",fill:"white"})})]}),y=[{value:"en",label:"EN",flag:w},{value:"tr",label:"TR",flag:v}];function j(){let e=(0,f.Ym)(),t=(0,s.usePathname)(),[a,n]=(0,l.useState)(!1),o=(0,l.useRef)(null);return(0,l.useEffect)(()=>
1{if(!a)return;let e=e=>{o.current&&!o.current.contains(e.target)&&n(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[a]),(0,r.jsxs)("div",{ref:o,className:"relative",children:[(0,r.jsxs)("button",{onClick:()=>n(!a),className:"flex items-center gap-1.5 px-2 py-1.5 hover:bg-gray-100 rounded-lg transition-colors text-sm font-medium","aria-label":"Change language","aria-expanded":a,children:["tr"===e?v:w,(0,r.jsx)("span",{className:"text-xs font-semibold text-gray-700",children:e.toUpperCase()}),(0,r.jsx)(b.A,{className:(0,g.cn)("w-3.5 h-3.5 text-gray-500 transition-transform",a&&"rotate-180")})]}),a&&(0,r.jsx)("div",{className:"absolute top-full right-0 mt-1 bg-white rounded-lg shadow-lg border border-gray-200 py-1 z-[60] min-w-[100px]",children:y.map(a=>(0,r.jsxs)("button",{onClick:()=>{a.value!==e&&(e=>{document.cookie="NEXT_LOCALE=".concat(e,"; path=/; max-age=31536000; SameSite=Lax");let a=t.match(/^\/(en|tr)(\/product\/.+)$/);a?window.location.href="/".concat(e).concat(a[2]):window.location.reload()})(a.value),n(!1)},className:(0,g.cn)("flex items-center gap-2 w-full px-3 py-2 text-sm hover:bg-gray-50 transition-colors",a.value===e&&"bg-gray-50 font-semibold"),children:[a.flag,(0,r.jsx)("span",{children:a.label})]},a.value))})]})}var N=a(15239),k=a(42568),_=a(23169),A=a(62674);let E=(0,o.default)(()=>Promise.all([a.e(1205),a.e(7649),a.e(1275)]).then(a.bind(a,67649)).then(e=>e.LoginModal),{loadableGenerated:{webpack:()=>[67649]},ssr:!1});function P(){let[e,t]=(0,l.useState)(!1),[a,s]=(0,l.useState)(!1),o=(0,d.c)("header"),h=(0,f.Ym)(),{status:p}=(0,n.useSession)(),{userInfo:x,refreshUserInfo:u,setUserInfo:w}=(0,k.k)(),v=(0,A.sl)(x);return(0,l.useEffect)(()=>{"authenticated"===p?u():"unauthenticated"===p&&w(null)},[p,u,w]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("header",{className:"sticky top-0 z-50 w-full bg-white shadow-[0_2px_35px_rgba(205,211,210,0.47)]",children:(0,r.jsxs)("div",{className:"mx-auto max-w-screen-2xl flex h-16 lg:h-[88px] items-center justify-between px-4 md:px-6 lg:px-16",children:[(0,r.jsx)(i.N_,{href:"/",prefetch:!1,onClick:()=>{document.cookie="allow-home=1; path=/; max-age=5"},className:"flex items-center space-x-2",children:(0,r.jsx)(N.default,{src:"/home-page/beefair-logo.svg",alt:"Beefair",width:120,height:22,priority:!0,className:"flex-shrink-0 w-[60px] h-[11px] md:w-[120px] md:h-[22px]"})}),(0,r.jsxs)("div",{className:"hidden lg:flex items-center gap-8",children:[(0,r.jsxs)("a",{href:"https://apps.apple.com/us/app/beefair/id6738953423",target:"_blank",rel:"noopener noreferrer",className:"relative w-[144px] h-12 bg-white border border-black rounded-[6px] hover:bg-gray-50 transition-colors","aria-label":"Download on the App Store",children:[(0,r.jsx)(N.default,{src:"/home-page/apple.svg",alt:"Apple",width:24,height:29,className:"absolute left-2.5 top-2.5"}),(0,r.jsxs)("div",{className:"absolute left-10 top-1/2 -translate-y-1/2 flex flex-col items-start h-[32px]",children:[(0,r.jsx)("span",{className:"text-[11px] font-medium leading-[11px] text-black whitespace-nowrap",children:o("downloadOnThe")}),(0,r.jsx)("span",{className:"text-[22px] font-medium leading-[100%] tracking-[-0.57px] text-black whitespace-nowrap",children:o("appStore")})]})]}),(0,r.jsxs)("a",{href:"https://play.google.com/store/apps/details?id=com.beefair.ai.android",target:"_blank",rel:"noopener noreferrer",className:"relative w-[144px] h-12 bg-white border border-black rounded-[6px] hover:bg-gray-50 transition-colors","aria-label":"Get it on Google Play",children:[(0,r.jsx)(N.default,{src:"/home-page/google-play.svg",alt:"Google Play",width:25,height:29,className:"absolute left-2.5 top-2.5"}),(0,r.jsxs)("div",{className:"absolute left-10 top-1/2 -translate-y-1/2 flex flex-col items-start h-[36px]",children:[(0,r.jsx)("span",{className:"text-[12px] font-normal leading-[14px] uppercase text-black whitespace-nowrap",children:o("getItOn")}),(0,r.jsx)("span",{className:"text-[18px] font-normal leading-[18px] text-black whitespace-nowrap",children:o("googlePlay")})]})]})]}),(0,r.jsxs)("div",{className:"flex items-center gap-2 md:gap-6",children:[(0,r.jsx)(j,{}),"loading"===p?(0,r.jsx)("div",{className:"w-6 h-6 md:w-8 md:h-8 rounded-full bg-gray-100 animate-pulse"}):"authenticated"===p?(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsxs)("button",{onClick:()=>s(!a),className:"flex items-center gap-3 transition-colors hover:bg-gray-100 rounded-full px-1.5 py-1","aria-label":"Profile menu","aria-expanded":a,children:[(0,r.jsx)("div",{className:"relative w-6 h-6 md:w-8 md:h-8 flex-shrink-0",children:x&&!v&&(0,_.a)(x)?(0,r.jsx)(N.default,{src:(0,_.a)(x),alt:"User Profile",fill:!0,sizes:"(max-width: 768px) 24px, 32px",className:"rounded-full object-cover"}):(0,r.jsx)(N.default,{src:"/chat-page/unknown-user-account.svg",alt:"User Profile",fill:!0,sizes:"(max-width: 768px) 24px, 32px",className:"rounded-full"})}),!v&&(0,r.jsx)("span",{className:"hidden lg:block text-sm font-medium text-gray-700",children:x?[x.name,x.surname].filter(
1Boolean).join(" ").trim():(0,r.jsx)("span",{className:"w-16 h-3 bg-gray-200 rounded animate-pulse inline-block"})}),(0,r.jsx)(b.A,{className:(0,g.cn)("hidden lg:block w-4 h-4 text-gray-500 transition-transform duration-200",a&&"rotate-180")})]}),(0,r.jsx)(m,{isOpen:a,onClose:()=>s(!1),isGuestUser:v})]})}):(0,r.jsx)(c.$,{variant:"ghost",className:"w-auto h-auto p-0 transition-all hover:bg-transparent hover:shadow-none hover:-translate-y-1 focus-visible:ring-0",onClick:()=>t(!0),"aria-label":"Open login",children:(0,r.jsx)(N.default,{src:"tr"===h?"/home-page/login-button-tr.svg":"/home-page/log-in-button.svg",alt:"Log in",width:112,height:48,className:"w-24 h-auto md:w-32 md:h-auto"})})]})]})}),(0,r.jsx)(E,{isOpen:e,onClose:()=>t(!1)})]})}function R(e){let{children:t,footer:a}=e,l=(0,s.usePathname)(),o=null==l?void 0:l.match(/^\/(en|tr)\/product\/[^/]+$/),i=null==l?void 0:l.match(/^\/analysis\/[^/]+$/),c=((null==l?void 0:l.startsWith("/chats"))||(null==l?void 0:l.startsWith("/c/"))||(null==l?void 0:l.startsWith("/analysis"))||(null==l?void 0:l.startsWith("/explore"))||(null==l?void 0:l.startsWith("/settings"))||(null==l?void 0:l.startsWith("/account"))||"/dev-login"===l)&&!i&&!o;return(0,r.jsxs)(n.SessionProvider,{basePath:"/nextauth",refetchOnWindowFocus:!1,children:[!c&&(0,r.jsx)(P,{}),t,!c&&a]})}},41444:(e,t,a)=>{"use strict";a.d(t,{v:()=>r});let r={log:function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a]},error:function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a]},warn:function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a]},info:function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a]},debug:function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a]}}},42568:(e,t,a)=>{"use strict";a.d(t,{k:()=>l});var r=a(25959),s=a(89863),n=a(41444);let l=(0,r.v)()((0,s.Zr)((e,t)=>({userInfo:null,setUserInfo:t=>e({userInfo:t}),updateUserInfo:a=>{let r=t().userInfo;r&&e({userInfo:{...r,...a}})},refreshUserInfo:async()=>{try{let{getUserInfo:t}=await a.e(6987).then(a.bind(a,66987)),r=await t();e({userInfo:r})}catch(e){n.v.error("Failed to refresh user info:",e)}}}),{name:"beefair-user-info",partialize:e=>({userInfo:e.userInfo})}))},43395:(e,t,a)=>{"use strict";a.d(t,{Footer:()=>h});var r=a(95155),s=a(52619),n=a.n(s),l=a(73155),o=a(67161),i=a(67333),c=a(18955),d=a(15239);function h(){let e=(0,c.c)("footer"),t=(0,c.c)("header"),a=new Date().getFullYear();return(0,r.jsx)("footer",{className:"bg-black text-white font-outfit",children:(0,r.jsxs)("div",{className:"flex flex-col items-center gap-12 px-4 md:px-6 py-16 max-w-[1384px] mx-auto",children:[(0,r.jsxs)("div",{className:"flex flex-col items-center gap-6 w-full",children:[(0,r.jsx)("h2",{className:"text-[35px] font-bold leading-[120%] text-center w-full",children:e("cta.title")}),(0,r.jsx)("p",{className:"text-base font-medium leading-[140%] text-center text-white w-full",children:e("cta.subtitle")}),(0,r.jsxs)("div",{className:"flex flex-row items-start gap-8 mx-auto w-[320px] h-12",children:[(0,r.jsxs)("a",{href:"https://apps.apple.com/us/app/beefair/id6738953423",target:"_blank",rel:"noopener noreferrer",className:"relative w-[144px] h-12 bg-black border border-white rounded-md hover:bg-gray-900 transition-colors","aria-label":"Download on the App Store",children:[(0,r.jsx)(d.default,{src:"/home-page/apple.svg",alt:"Apple",width:24,height:29,className:"absolute left-2.5 top-2.5 brightness-0 invert"}),(0,r.jsxs)("div",{className:"absolute left-10 top-1/2 -translate-y-1/2 flex flex-col items-start h-[32px]",children:[(0,r.jsx)("span",{className:"text-[11px] font-medium leading-[11px] text-white whitespace-nowrap",children:t("downloadOnThe")}),(0,r.jsx)("span",{className:"text-[22px] font-medium leading-[100%] tracking-[-0.57px] text-white whitespace-nowrap",children:t("appStore")})]})]}),(0,r.jsxs)("a",{href:"https://play.google.com/store/apps/details?id=com.beefair.ai.android",target:"_blank",rel:"noopener noreferrer",className:"relative w-[144px] h-12 bg-black border border-white rounded-md hover:bg-gray-900 transition-colors","aria-label":"Get it on Google Play",children:[(0,r.jsx)(d.default,{src:"/home-page/google-play.svg",alt:"Google Play",width:25,height:29,className:"absolute left-2.5 top-2.5"}),(0,r.jsxs)("div",{className:"absolute left-10 top-1/2 -translate-y-1/2 flex flex-col items-start h-[36px]",children:[(0,r.jsx)("span",{className:"text-[12px] font-normal leading-[14px] uppercase text-white whitespace-nowrap",children:t("getItOn")}),(0,r.jsx)("span",{className:"text-[18px] font-normal leading-[18px] text-white whitespace-nowrap",children:t("googlePlay")})]})]})]})]}),(0,r.jsx)("hr",{className:"border-gray-800 w-full"}),(0,r.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-8 w-full",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-4 col-span-2 md:col-span-1",children:[(0,r.jsx)(d.default,{src:"/home-page/beefair-logo-white.svg",alt:"Beefair",width:120,height:22}),(0,r.jsx)("p",{className:"text-sm text-gray-400 leading-relaxed max-w-[200px]",children:e("nav.tagline")}),(0,r.jsxs)("div",{className:"flex items-center gap-4 mt-2",children:[(0,r.jsx)("a",{href:"https://www.facebook.com/beefairai",target:"_blank",rel:"noopener noreferrer",className:"opacity-50 hover:opacity-100 transition-opacity text-white","aria-label":"Facebook",children:(0,r.jsx)(l.A,{className:"h-5 w-5"})}),(0,r.jsx)("a",{href:"https://instagram.com/beefair.ai",target:"_blank",rel:"noopener noreferrer",className:"opacity-50 hover:opacity-100 transition-opacity text-white","aria-label":"Instagram",children:(0,r.jsx)(o.A,{className:"h-5 w-5"})}),(0,r.jsx)("a",{href:"https://www.linkedin.com/company/beefair/",target:"_blank",rel:"noopener noreferrer",className:"opacity-50 hover:opacity-100 transition-opacity text-white","aria-label":"LinkedIn",children:(0,r.jsx)(i.A,{className:"h-5 w-5"})})]})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,r.jsx)("p",{className:"text-sm font-semibold uppercase tracking-widest text-gray-400 mb-1",children:e("nav.explore")}),(0,r.jsx)(n(),{href:"/how-it-works",className:"text-sm text-gray-300 hover:text-white transition-colors",children:e("nav.howItWorks")}),(0,r.jsx)(n(),{href:"/download",className:"text-sm text-gray-300 hover:text-white transition-colors",children:e("nav.download")}),(0,r.jsx)(n(),{href:"/about",className:"text-sm text-gray-300 hover:text-white transition-colors",children:e("nav.about")})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,r.jsx)("p",{className:"text-sm font-semibold uppercase tracking-widest text-gray-400 mb-1",children:e("nav.support")}),(0,r.jsx)(n(),{href:"/faq",className:"text-sm text-gray-300 hover:text-white transition-colors",children:e("nav.faq")}),(0,r.jsx)(n(),{href:"/contact",className:"text-sm text-gray-300 hover:text-white transition-colors",children:e("nav.contact")})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,r.jsx)("p",{className:"text-sm font-semibold uppercase tracking-widest text-gray-400 mb-1",children:e("nav.legal")}),(0,r.jsx)(n(),{href:"/privacy-policy",className:"text-sm text-gray-300 hover:text-white transition-colors",children:e("nav.privacyPolicy")}),(0,r.jsx)(n(),{href:"/terms-of-use",className:"text-sm text-gray-300 hover:text-white transition-colors",children:e("nav.termsOfUse")})]})]}),(0,r.jsxs)("div",{className:"border-t border-gray-800 pt-8 w-full text-center space-y-4",children:[(0,r.jsx)("p",{className:"text-sm text-gray-400 max-w-3xl mx-auto",children:e("registeredAddress")}),(0,r.jsx)("p",{className:"text-sm text-gray-400",children:e("copyright",{year:a})})]})]})})}},62674:(e,t,a)=>{"use strict";a.d(t,{B4:()=>p,qg:()=>d,sl:()=>h,td:()=>c});var r=a(36489),s=a(41444),n=a(63119);let l="+85022224",o="beefair_guest_session",i=null;function c(){return"1"===localStorage.getItem(o)}function d(){localStorage.removeItem(o)}function h(e){var t;return(null==(t=null==e?void 0:e.email)?void 0:t.toLowerCase())==="[email protected]"}
1async function p(){return i||(i=(async()=>{try{let e="guest-bypass-".concat(Date.now(),"-").concat(Math.random().toString(36).slice(2));await (0,n.RP)(l,e);let t=await (0,r.signIn)("phone-otp",{phone_number:l,otp_code:"1234",redirect:!1,callbackUrl:"/chats"});if(!t||!t.ok||t.error)return s.v.error("[guest-signin] Guest sign-in failed:",null==t?void 0:t.error),!1;return localStorage.setItem(o,"1"),s.v.log("[guest-signin] Guest sign-in successful."),!0}catch(e){return s.v.error("[guest-signin] Guest sign-in threw error:",e),!1}finally{i=null}})())}},63119:(e,t,a)=>{"use strict";a.d(t,{RP:()=>l,bW:()=>o,lR:()=>n});var r=a(69582),s=a(41444);class n extends Error{constructor({code:e,message:t,retryable:a}){super(t),this.name="AuthError",this.code=e,this.retryable=a}}async function l(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"tr";try{let l=await fetch((0,r.e)("/login"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({login_type:"phone_number",phone_number:e,dest_lang:a,"g-recaptcha-response":t})});if(401===l.status)throw new n({code:"RECAPTCHA_FAILED",message:"Security check failed. Please retry.",retryable:!0});if(503===l.status)throw new n({code:"RECAPTCHA_UNAVAILABLE",message:"Security service unavailable. Try later.",retryable:!1});if(404===l.status)throw s.v.log("\uD83D\uDCDD [API] User not found (404), needs registration"),new n({code:"USER_NOT_FOUND",message:"User not found. Registering...",retryable:!0});if(400===l.status){let e=await l.json().catch(()=>({}));s.v.log("\uD83D\uDCDD [API] Login 400 response:",e);let t=(e.message||e.error||"").toLowerCase();if(t.includes("not found")||t.includes("does not exist")||t.includes("not exist"))throw s.v.log("\uD83D\uDCDD [API] User not found (400), needs registration"),new n({code:"USER_NOT_FOUND",message:"User not found. Registering...",retryable:!0});throw new n({code:"NETWORK_ERROR",message:e.message||e.error||"Login failed. Please try again.",retryable:!0})}if(!l.ok)throw new n({code:"NETWORK_ERROR",message:"An unexpected error occurred. Please try again.",retryable:!0});return await l.json()}catch(e){if(e instanceof n)throw e;throw new n({code:"NETWORK_ERROR",message:"Connection failed. Please check your network.",retryable:!0})}}async function o(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"tr";try{let l=await fetch((0,r.e)("/register"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({login_type:"phone_number",phone_number:e,dest_lang:a,"g-recaptcha-response":t})});if(401===l.status)throw new n({code:"RECAPTCHA_FAILED",message:"Security check failed. Please retry.",retryable:!0});if(503===l.status)throw new n({code:"RECAPTCHA_UNAVAILABLE",message:"Security service unavailable. Try later.",retryable:!1});if(409===l.status)throw s.v.log("\uD83D\uDCDD [API] User already exists (409), needs login"),new n({code:"USER_EXISTS",message:"User already exists. Logging in...",retryable:!0});if(400===l.status){let e=await l.json().catch(()=>({}));s.v.log("\uD83D\uDCDD [API] Register 400 response:",e);let t=(e.message||e.error||"").toLowerCase();if(t.includes("exist")||t.includes("already")||t.includes("registered"))throw s.v.log("\uD83D\uDCDD [API] User already exists, needs login"),new n({code:"USER_EXISTS",message:"User already exists. Logging in...",retryable:!0});throw new n({code:"NETWORK_ERROR",message:e.message||e.error||"Registration failed. Please try again.",retryable:!0})}if(!l.ok)throw new n({code:"NETWORK_ERROR",message:"An unexpected error occurred. Please try again.",retryable:!0});return await l.json()}catch(e){if(e instanceof n)throw e;throw new n({code:"NETWORK_ERROR",message:"Connection failed. Please check your network.",retryable:!0})}}},69582:(e,t,a)=>{"use strict";function r(e){let t="https://beefair.ai/api";return t.startsWith("http://")||t.startsWith("https://"),"".concat(t).concat(e)}a.d(t,{e:()=>r})},76445:(e,t,a)=>{"use strict";a.d(t,{cn:()=>n});var r=a(2821),s=a(75889);function n(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return(0,s.QP)((0,r.$)(t))}},90882:(e,t,a)=>{Promise.resolve().then(a.bind(a,3809)),Promise.resolve().then(a.t.bind(a,41402,23)),Promise.resolve().then(a.t.bind(a,67928,23)),Promise.resolve().then(a.t.bind(a,67525,23)),Promise.resolve().then(a.t.bind(a,43211,23)),Promise.resolve().then(a.bind(a,18720)),Promise.resolve().then(a.t.bind(a,13673,23)),Promise.resolve().then(a.bind(a,38147)),Promise.resolve().then(a.bind(a,43395)),Promise.resolve().then(a.bind(a,38138))},94412:(e,t,a)=>{"use strict";a.d(t,{q:()=>r});let r=new(a(43522)).E({defaultOptions:{queries:{retry:1,refetchOnWindowFocus:!1}}})}},e=>{e.O(0,[8088,1356,2619,2946,9779,4454,8208,4638,8441,1255,7358],()=>e(e.s=90882)),_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.