PageSourceSearch

https://rewardflightfinder.com/_next/static/chunks/43zp6i4jknogv.js

js rewardflightfinder.com collected 2026-09-29 17:31:41 UTC 22,601 bytes, 5 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0eccc-6d0a-7f11-96aa-d98d628e87ab")}catch(e){}}();;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="c654f53c-5c52-ba55-b2ae-0e8c141a27b4")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,871689,e=>{"use strict";var t=e.i(180127);e.s(["ArrowLeft",()=>t.default])},972520,e=>{"use strict";let t=(0,e.i(475254).default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);e.s(["ArrowRight",0,t],972520)},63209,e=>{"use strict";var t=e.i(361653);e.s(["AlertCircle",()=>t.default])},350029,196288,e=>{"use strict";var t=e.i(843476),n=e.i(271645),a=e.i(664659),o=e.i(769086);e.i(355049);var r=e.i(147895),i=e.i(179212),s=e.i(905545),l=e.i(643394),c=e.i(61171);e.s(["PhoneInput",0,function({value:e,country:d=c.DEFAULT_PHONE_COUNTRY,onChange:u,onBlur:p,label:h,required:m=!1,placeholder:g="Phone number",destructive:f=!1,hintText:b,disabled:x=!1,autoFocus:y=!1,id:_,name:z,className:j,boxClassName:v}){let C=n.useId(),N=_??C,[w,E]=n.useState(!1),P=(0,c.getPhoneCountry)(d),A=x?"disabled":f?"destructive":"default";function S(e,t){let{isValid:n,e164:a}=(0,c.validatePhone)(e,t);u({value:e,country:t,e164:a,isValid:n})}return(0,t.jsxs)("div",{className:(0,r.cn)("flex w-full flex-col gap-1.5",j),children:[h&&(0,t.jsxs)("label",{htmlFor:N,className:(0,r.cn)((0,i.labelVariants)({labelVariant:x?"disabled":"subtle"})),children:[h,m&&(0,t.jsx)("span",{className:"text-error-600",children:" *"})]}),(0,t.jsxs)("div",{className:(0,r.cn)((0,i.inputWrapperVariants)({inputVariant:A}),v),children:[(0,t.jsxs)(l.Popover,{open:w,onOpenChange:x?void 0:E,children:[(0,t.jsxs)(l.PopoverTrigger,{type:"button",disabled:x,"aria-label":`Country code: ${P.name} (${P.dialCode})`,className:"-ml-1 flex shrink-0 cursor-pointer items-center gap-1.5 rounded-md px-1 py-0.5 outline-none focus-visible:ring-2 focus-visible:ring-primary-200 disabled:cursor-not-allowed",children:[(0,t.jsx)(o.default,{countryCode:P.code,size:20,alt:`${P.name} flag`}),(0,t.jsx)("span",{className:"text-base font-bold text-neutral-900",children:P.dialCode}),(0,t.jsx)(a.ChevronDown,{className:"size-3.5 text-gray-400"})]}),(0,t.jsx)(l.PopoverContent,{align:"start",className:"w-[var(--radix-popover-trigger-width)] min-w-72 p-0",children:(0,t.jsxs)(s.Command,{filter:(e,t)=>+!!e.toLowerCase().includes(t.toLowerCase()),children:[(0,t.jsx)(s.CommandInput,{placeholder:"Search country"}),(0,t.jsxs)(s.CommandList,{children:[(0,t.jsx)(s.CommandEmpty,{children:"No country found."}),(0,t.jsx)(s.CommandGroup,{children:c.PHONE_COUNTRIES.map(n=>(0,t.jsxs)(s.CommandItem,{value:`${n.name} ${n.dialCode} ${n.code}`,onSelect:()=>{var t;return t=n.code,void(E(!1),S((0,c.formatAsYouType)(e,t),t))},className:"gap-2",children:[(0,t.jsx)(o.default,{countryCode:n.code,size:20,alt:`${n.name} flag`}),(0,t.jsx)("span",{className:"flex-1 truncate",children:n.name}),(0,t.jsx)("span",{className:"text-gray-500",children:n.code}),(0,t.jsx)("span",{className:"text-gray-500",children:n.dialCode})]},n.code))})]})]})})]}),(0,t.jsx)("span",{"aria-hidden":"true",className:(0,r.cn)("h-6 w-px shrink-0",x?"bg-gray-100":"bg-gray-200")}),(0,t.jsx)("input",{id:N,name:z,type:"tel",inputMode:"tel",autoComplete:"tel-national",disabled:x,autoFocus:y,placeholder:g,value:e,"aria-invalid":f,onChange:function(e){S((0,c.formatAsYouType)(e.target.value,d),d)},onBlur:p,className:(0,r.cn)("min-w-0 flex-1 bg-transparent text-base font-normal outline-none","placeholder:font-normal placeholder:text-gray-500",x?"text-gray-400":"text-neutral-900")})]}),b&&(0,t.jsx)("p",{className:(0,r.cn)("text-sm font-normal",f?"text-error-500":"text-gray-500"),children:b})]})}],350029);var d=e.i(802026),u=e.i(397580);e.s(["SmsConsentCheckbox",0,function({checked:e,onCheckedChange:n,disabled:a,className:o,id:i}){let s="cursor-pointer font-semibold text-primary-900 underline";return(0,t.jsxs)("label",{className:(0,r.cn)("flex items-start gap-2.5",o),children:[(0,t.jsx)(u.Checkbox,{id:i,size:"sm",className:"mt-0.5",checked:e,disabled:a,onCheckedChange:e=>n(!0===e)}),(0,t.jsxs)("span",{className:"text-xs leading-[19px] text-secondary-900/80",children:["You agree to re
2ceive SMS messages for account login and reward flight alerts. View our"," ",(0,t.jsx)(d.HoverPrefetchLink,{href:"/terms-of-use",target:"_blank",rel:"noopener noreferrer",className:s,"data-testid":"sms-consent-terms-link",children:"Terms"})," ","and"," ",(0,t.jsx)(d.HoverPrefetchLink,{href:"/privacy-policy",target:"_blank",rel:"noopener noreferrer",className:s,"data-testid":"sms-consent-privacy-link",children:"Privacy Policy"}),"."]})]})}],196288)},542561,e=>{"use strict";var t=e.i(843476),n=e.i(271645),a=e.i(871689),o=e.i(972520),r=e.i(743155),i=e.i(350029);e.i(355049);var s=e.i(147895),l=e.i(61171),c=e.i(888386),d=e.i(938018),u=e.i(853027),p=e.i(196288);e.i(926422);var h=e.i(136999),m=e.i(797420),g=e.i(608777),f=e.i(212203),b=e.i(495822),x=e.i(423359),y=e.i(592694);e.s(["PhoneCaptureLookupStep",0,function({flow:e,heading:_="Add your phone number",subtitle:z,onLinked:j,onAlreadyVerified:v,onBack:C}){let N=(0,b.useAnalyticsUserContext)(),{consentGiven:w}=(0,x.useConsent)(),[E,P]=(0,n.useState)(""),[A,S]=(0,n.useState)(l.DEFAULT_PHONE_COUNTRY),[T,O]=(0,n.useState)(""),[k,I]=(0,n.useState)(!1),[U,R]=(0,n.useState)(!1),[D,L]=(0,n.useState)(!1),[B,H]=(0,n.useState)("entering"),[F,$]=(0,n.useState)(!1),[M,V]=(0,n.useState)(null),[W,Y]=(0,n.use
2State)(null),G=(0,n.useRef)(!1),J=(0,n.useRef)(!1);(0,n.useEffect)(()=>{!0!==w||J.current||(J.current=!0,(0,g.captureEvent)(f.default.AUTH_STEP_VIEWED,{step:"Phone Capture",flow:e},N.current))},[w,e,N]);let q=U&&!k,K=q?0===E.trim().length?"Phone number is required":"Enter a valid phone number":void 0,X="checking"===B||F,Q=k&&D&&!X,Z=X||k&&!Q;function ee(){H("entering"),$(!1),V(null),Y(null)}async function et(){$(!0);try{await (0,m.updatePhoneAndSendOtp)({user:{country_code:(0,l.getPhoneCountry)(A).dialCode,phone_number:E.replace(/\D/g,""),iso_country_code:A,send_otp_on_whatsapp:!0,transactional_sms_consent:D,context:"registration",is_phone_attached_forcefully:!0,skip_otp:!0}})}catch(n){var t;if(v&&(t=n)instanceof c.ApiError&&/already verified/i.test(t.message)){(0,g.captureEvent)(f.default.PHONE_OTP_VERIFIED,{flow:e,verificationMethod:"Already Verified"},N.current),v();return}Y(n instanceof c.ApiError?n.message:"Could not save this phone number. Please try again."),$(!1),H(M?"transfer-offer":"entering");return}j({e164:T||E.trim(),phoneNumber:E.replace(/\D/g,""),countryCode:Number((0,l.getPhoneCountry)(A).dialCode.replace(/\D/g,"")),isoCountry:A,consentGiven:!0})}async function en(e){let t;if(e.preventDefault(),X)return;if(!k)return void R(!0);H("checking"),Y(null);try{t=await (0,h.getPhoneNumberStatus)({country_code:(0,l.getPhoneCountry)(A).dialCode.replace(/\D/g,""),phone_number:E.replace(/\D/g,"")})}catch(e){Y(e instanceof c.ApiError?e.message:"Could not check this phone number. Please try again."),H("entering");return}let n=t.currentAccount?.isYourAccount===!0,a=!t.currentAccount;n||a&&t.canBeAdded?await et():(V(t),H(t.accountCount<t.maxAccountTransfers?"transfer-offer":"cap-reached"))}if("transfer-offer"===B||"cap-reached"===B){let e=M?.currentAccount?.email??"another account";return(0,t.jsxs)("div",{className:"flex flex-col gap-7.5",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-6.25",children:[(0,t.jsx)(r.Button,{type:"button",variant:"ghost-gray",size:"icon-sm",radius:"full",onClick:ee,disabled:F,"aria-label":"Back",className:"-ml-1.5",children:(0,t.jsx)(a.ArrowLeft,{className:"size-7",strokeWidth:2.5})}),(0,t.jsxs)("div",{className:"flex flex-col gap-2.5",children:[(0,t.jsx)("h1",{className:"text-3xl font-bold leading-[42px] text-secondary-900",children:"transfer-offer"===B?"This number is already in use":"This number can't be moved"}),(0,t.jsx)("p",{className:"text-sm leading-[22px] text-secondary-500",children:"transfer-offer"===B?`This number is already on the account ${e}. Would you like to move it to this account instead?`:`${e} has already transferred this number the maximum number of times allowed. Please use a different number, sign in to that account, or contact support.`})]})]}),W?(0,t.jsx)(u.AuthErrorNotice,{message:W}):null,"transfer-offer"===B?(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(r.Button,{type:"button",width:"full",size:"xl",radius:"lg",weight:"bold",onClick:()=>void et(),disabled:F,className:"bg-primary-900 hover:bg-primary-950 active:bg-primary-975",children:F?"Moving…":"Move it here"}),(0,t.jsx)(r.Button,{type:"button",variant:"secondary-primary",width:"full",size:"xl",radius:"lg",weight:"bold",onClick:ee,disabled:F,children:"Use a different number"})]}):(0,t.jsx)(r.Button,{type:"button",width:"full",size:"xl",radius:"lg",weight:"bold",onClick:ee,className:"bg-primary-900 hover:bg-primary-950 active:bg-primary-975",children:"Try a different number"})]})}return(0,t.jsxs)("div",{className:"flex flex-col gap-7.5",children:["checking"===B&&(0,t.jsx)(y.SpinnerIcon,{}),(0,t.jsxs)("div",{className:"flex flex-col gap-6.25",children:[C&&(0,t.jsx)(r.Button,{type:"button",variant:"ghost-gray",size:"icon-sm",radius:"full",onClick:C,disabled:X,"aria-label":"Back to email",className:"-ml-1.5",children:(0,t.jsx)(a.ArrowLeft,{className:"size-7",strokeWidth:2.5})}),(0,t.jsxs)("div",{className:"flex flex-col gap-2.5",children:[(0,t.jsx)("h1",{className:"text-3xl font-bold leading-[42px] text-secondary-900",children:_}),(0,t.jsx)("p",{className:"text-sm leading-[22px] text-secondary-500",children:z})]})]}),(0,t.jsxs)("form",{onSubmit:en,className:"flex flex-col gap-7.5",noValidate:!0,children:[(0,t.jsx)(i.PhoneInput,{autoFocus:!0,placeholder:"Phone number",value:E,country:A,destructive:q,onChange:function(e){e.value!==E&&(G.current=!0),P(e.value),S(e.country),O(e.e164),I(e.isValid),Y(null)},onBlur:()=>{G.current&&R(!0)},boxClassName:(0,s.cn)("h-16",d.FIELD_BOX,!q&&d.FIELD_ACCENT_BAR)}),K?(0,t.jsx)(u.AuthErrorNotice,{message:K}):null,W?(0,t.jsx)(u.AuthErrorNotice,{message:W}):null,(0,t.jsx)(p.SmsConsentCheckbox,{checked:D,onCheckedChange:L,disabled:X}),(0,t.jsx)(r.Button,{type:"submit",width:"full",size:"xl",radiu
2s:"lg",weight:"bold",disabled:Z,icon:(0,t.jsx)(o.ArrowRight,{}),iconPosition:"right",className:(0,s.cn)("h-[54.5px] text-lg leading-[30px] bg-primary-900 hover:bg-primary-950 active:bg-primary-975",Z&&"disabled:bg-primary-200 disabled:text-white disabled:opacity-100"),children:"checking"===B?"Checking…":"Continue"})]})]})}])},696876,e=>{"use strict";var t=e.i(843476),n=e.i(271645),a=e.i(565365),o=e.i(743155),r=e.i(888386),i=e.i(853027),s=e.i(168916),l=e.i(496411),c=e.i(244389),d=e.i(592694),u=e.i(61171);e.i(926422);var p=e.i(797420),h=e.i(608777),m=e.i(212203),g=e.i(862046),f=e.i(495822);e.s(["PrelinkedPhoneSendStep",0,function({display:e,countryCode:b,phoneNumber:x,isoCountry:y,consentGiven:_,flow:z,onSent:j,onFallback:v}){let C=(0,f.useAnalyticsUserContext)(),[N,w]=(0,n.useState)(null),[E,P]=(0,n.useState)(null),[A,S]=(0,n.useState)(!1),T=`${z} Phone`;async function O(t,n){S(!0);try{await (0,p.updatePhoneAndSendOtp)({user:{country_code:`+${b}`,phone_number:x,...y?{iso_country_code:y}:{},send_otp_on_whatsapp:t,transactional_sms_consent:_,context:"registration",is_phone_attached_forcefully:!0}})}catch(t){let e=t instanceof r.ApiError?t.message:"Could not send a verification code. Please try again.";w(e),(0,h.captureEvent)(m.default.OTP_SEND_FAILED,{method:"Phone",Channel:(0,g.toAnalyticsChannel)(n),errorReason:e,flow:z,Screen:T},C.current),S(!1);return}(0,h.captureEvent)(m.default.VERIFICATION_SENT,{Channel:(0,g.toAnalyticsChannel)(n),Screen:T,flow:z,verificationMethod:"OTP"},C.current),j({display:e,channel:n,phoneNumber:x,countryCode:b})}function k(e){P(e),w(null),(0,h.captureEvent)(m.default.PHONE_CHANNEL_SELECTED,{Channel:(0,g.toAnalyticsChannel)(e),Screen:T,flow:z,verificationMethod:"OTP"},C.current)}return(0,t.jsxs)("div",{className:"flex flex-col gap-7.5",children:[A&&(0,t.jsx)(d.SpinnerIcon,{}),(0,t.jsxs)("div",{className:"flex flex-col gap-2.5",children:[(0,t.jsx)("h1",{className:"text-3xl font-bold leading-[42px] text-secondary-900",children:"Verify your phone number"}),(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,t.jsxs)("span",{className:"truncate text-sm leading-[22px] text-secondary-500",children:["Sending a code to"," ",(0,u.formatPhoneForDisplay)(e)||"your phone number"]}),(0,t.jsx)("button",{type:"button",onClick:v,disabled:A,className:"shrink-0 cursor-pointer text-sm font-semibold text-primary-900 underline hover:no-underline disabled:cursor-not-allowed disabled:opacity-50",children:"Edit"})]})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-3.75",children:[(0,t.jsx)("p",{className:"text-sm font-semibold leading-6 text-secondary-700",children:"How should we send your code?"}),(0,t.jsxs)("div",{className:"flex gap-3",children:[c.ENABLE_SMS_FLOW&&(0,t.jsx)(l.ChannelButton,{label:"SMS",icon:(0,t.jsx)(a.MessageSquareText,{}),selected:"sms"===E,disabled:A,onSelect:()=>k("sms")}),(0,t.jsx)(l.ChannelButton,{label:"WhatsApp",icon:(0,t.jsx)(s.WhatsAppColorIcon,{}),accent:"whatsapp",selected:"whatsapp"===E,disabled:A,onSelect:()=>k("whatsapp")})]}),N?(0,t.jsx)(i.AuthErrorNotice,{message:N}):null]}),(0,t.jsx)(o.Button,{type:"button",width:"full",size:"xl",radius:"lg",weight:"bold",disabled:null===E||A,onClick:()=>E&&void O("whatsapp"===E,E),className:"bg-primary-900 hover:bg-primary-950 active:bg-primary-975",children:A?"Sending…":"Send code"})]})}])},853027,e=>{"use strict";var t=e.i(843476),n=e.i(63209);e.i(355049);var a=e.i(147895);e.s(["AuthErrorNotice",0,function({message:e,className:o}){return(0,t.jsxs)("div",{role:"alert",className:(0,a.cn)("flex items-center gap-2 rounded-auth-error bg-error-notice px-4 py-3",o),children:[(0,t.jsx)(n.AlertCircle,{className:"h-[15px] w-3 shrink-0 text-error-600","aria-hidden":"true"}),(0,t.jsx)("p",{className:"min-w-0 text-auth-error font-semibold text-error-600",children:e})]})}])},938018,e=>{"use strict";e.s(["FIELD_ACCENT_BAR",0,"border-gray-300 focus-within:border-gray-300 before:pointer-events-none before:absolute before:inset-y-0 before:left-0 before:w-[1.625px] before:content-[''] before:bg-gradient-to-b before:from-field-accent-top before:to-field-accent-bottom","FIELD_BOX",0,"overflow-hidden rounded-2xl px-4 shadow-md focus-within:ring-0","FIELD_TEXT",0,"text-base font-normal placeholder:text-gray-400"])},495822,e=>{"use strict";var t=e.i(271645),n=e.i(814567),a=e.i(554624);e.s(["useAnalyticsUserContext",0,function(){let{isLoggedIn:e,userId:o,userDetails:r}=(0,n.useAuth)(),i=(0,t.useRef)({userType:"Guest user",userId:null,email:null});return i.current=(0,a.deriveUserContext)({isLoggedIn:e,userId:o,userDetails:r}),i}])},926422,721985,715753,582370,332208,235255,950012,797420,389150,136999,974255,e=>{"use strict";var t=e.i(127907),n=e.i(888386),a=e.i(681307);let o=a.z.object({referrer:a.z.string(),conversion_page:a.z.string(),platform:a.z.string(),platform_version:a.z.string(),os:a.z.string(),os_version:a.z.string(),browser:a.z.string(),browser_version:a.z.string(),ip_address:a.z.string().nullable()}),r=a.z.object({user:a.z.object({email:a.z.email(),stopOtp:a.z.boolean().optional(),selected_plan:a.z.string().optional(),membership_type:a.z.string().optional(),currency:a.z.string().optional(),referralCoupon:a.z.string().nullable().optional(),coupon:a.z.string().optional(),campaign:a.z.string().optional(),campaignName:a.z.string().optional(),job_role:a.z.string().optional(),ba_staff_opt_in:a.z.boolean().optional(),no_trial:a.z.boolean().optional(),utm_medium:a.z.string().optional(),utm_source:a.z.string().optional(),platform:a.z.string().optional(),affiliate_id:a.z.string().optional(),awin_awc:a.z.string().optional(),awin_publisher_id:a.z.string().optional(),awin_channel:a.z.string().optional(),sv1:a.z.string().optional(),sn:a.z.string().optional()}),meta_data:o.optional()}),i=a.z.object({success:a.z.boolean().optional(),message:a.z.string().optional(),emailExists:a.z.boolean(),isPhoneNumberExist:a.z.boolean(),hasPassword:a.z.boolean(),loginRequestId:a.z.string().optional(),trialDays:a.z.number().optional()});async function s(e,a){let o=await fetch(t.API_ROUTES.AUTH.SEND_OTP,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({...e,turnstileToken:a})}),r=await o.json().catch(()=>({}));if(!o.ok){let e=r?.error||"Could not send a verification code. Please try again.";throw new n.ApiError(e,o.status)}return i.parse(r)}e.s(["sendEmailOtpRequestSchema",0,r,"sendEmailOtpResponseSchema",0,i],721985),e.s(["sendEmailOtp",0,s],715753),a.z.object({user:a.z.object({email:a.z.email(),provider:a.z.string().optional(),auth_uid:a.z.string().optional(),stopOtp:a.z.boolean().optional()})});let l=a.z.object({emailExists:a.z.boolean()});async function c(e){let a=await fetch(t.API_ROUTES.AUTH.EMAIL_CHECK,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify(e)}),o=await a.json().catch(()=>({}));if(!a.ok)throw new n.ApiError(o.error??"Could not check this email address. Please try again.",a.status);return l.parse(o)}e.s(["checkEmail",0,c],582370),a.z.object({email:a.z.string()});let d=a.z.object({success:a.z.boolean().optional(),message:a.z.string().optional(),hasPassword:a.z.boolean()});async function u(e){let a=await fetch(t.API_ROUTES.AUTH.DELETE_ACCOUNT_SEND_OTP,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify(e)}),o=await a.json().catch(()=>({}));if(!a.ok){let e=o?.error||"Could not send a verification code. Please try again.";throw new n.ApiError(e,a.status)}return d.parse(o)}e.s(["sendDeleteAccountOtp",0,u],332208),a.z.object({email:a.z.email()});let p=a.z.object({email:a.z.string().optional(),signup_step:a.z.string().optional()}).passthrough();
2async function h(e,a){let o=`${t.API_ROUTES.AUTH.SIGNUP_STEP}?email=${encodeURIComponent(e)}`,r=await fetch(o,{method:"GET",credentials:"include",signal:a?.signal}),i=await r.json().catch(()=>({}));if(!r.ok){let e=i?.error||"Could not check the sign-up status.";throw new n.ApiError(e,r.status)}return p.parse(i)}e.s(["EMAIL_VERIFIED_STEP",0,"email_verified","signupStepResponseSchema",0,p],235255),e.s(["getSignupStep",0,h],950012),a.z.object({user:a.z.object({email:a.z.email(),otp:a.z.string()})});let m=a.z.object({chargebee_plan_id:a.z.string().optional(),name:a.z.string().optional(),currency_code:a.z.string().optional(),price:a.z.number().optional(),period_unit:a.z.string().optional(),on_trial:a.z.boolean().optional()}).nullable().optional(),g=a.z.object({accesstoken:a.z.string(),user_id:a.z.number().int(),user_data:a.z.object({id:a.z.number().int().optional(),email:a.z.string().optional(),is_ba_staff:a.z.boolean().optional(),chargebee_id:a.z.string().optional(),token:a.z.string().optional()}).passthrough(),current_plan:m,is_phone_verified:a.z.boolean()}),f=a.z.object({accesstoken:a.z.string(),user_id:a.z.number().int(),user_data:a.z.object({id:a.z.number().int().optional(),email:a.z.string().optional(),encrypted_password:a.z.string().optional(),is_ba_staff:a.z.boolean().optional(),chargebee_id:a.z.string().optional()}).passthrough(),current_plan:m,is_phone_verified:a.z.boolean()});a.z.union([g,f]),a.z.object({user:a.z.object({country_code:a.z.string(),phone_number:a.z.string(),iso_country_code:a.z.string().optional(),send_otp_on_whatsapp:a.z.boolean(),transactional_sms_consent:a.z.boolean(),context:a.z.string().optional(),is_phone_attached_forcefully:a.z.boolean().optional(),skip_otp:a.z.boolean().optional()})});let b=a.z.object({message:a.z.string().optional()});async function x(e){let a=await fetch(t.API_ROUTES.AUTH.UPDATE_PHONE_OTP,{method:"PUT",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify(e)}),o=await a.json().catch(()=>({}));if(!a.ok){let e=o?.error||"Could not send a verification code. Please try again.";throw new n.ApiError(e,a.status)}return b.parse(o)}e.s(["updatePhoneAndSendOtp",0,x],797420),a.z.object({user_phone_number:a.z.object({code:a.z.string()})});let y=a.z.object({message:a.z.string().optional()}).passthrough();async function _(e){let a=await fetch(t.API_ROUTES.AUTH.VERIFY_PHONE_OTP,{method:"PUT",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({user_phone_number:{code:e}})}),o=await a.json().catch(()=>({}));if(!a.ok){let e=o?.error||"That code isn’t right. Please try again.";throw new n.ApiError(e,a.status)}return y.parse(o)}e.s(["verifyPhoneOtp",0,_],389150),a.z.object({country_code:a.z.string(),phone_number:a.z.string()});let z=a.z.object({country_code:a.z.string(),phone_number:a.z.string(),currentAccount:a.z.object({email:a.z.string(),isYourAccount:a.z.boolean()}).nullable().optional(),accountCount:a.z.number(),maxAccountTransfers:a.z.number(),canBeAdded:a.z.boolean(),reason:a.z.string().optional()});async function j(e){let a=new URLSearchParams({country_code:e.country_code,phone_number:e.phone_number}),o=await fetch(`${t.API_ROUTES.AUTH.PHONE_NUMBER_STATUS}?${a.toString()}`,{credentials:"include"}),r=await o.json().catch(()=>({}));if(!o.ok){let e=r?.error||"Could not check this phone number. Please try again.";throw new n.ApiError(e,o.status)}return z.parse(r)}e.s(["getPhoneNumberStatus",0,j],136999),a.z.object({email:a.z.string(),send_otp_on_whatsapp:a.z.boolean(),context:a.z.string().optional()});let v=a.z.object({message:a.z.string().optional(),phoneNumber:a.z.string().optional()});async function C(e){let a=await fetch(t.API_ROUTES.AUTH.PHONE_LOGIN_SEND_OTP,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({email:e.email,send_otp_on_whatsapp:e.sendOnWhatsapp,context:e.context??"login"})}),o=await a.json().catch(()=>({}));if(!a.ok){let e=o?.error||"Could not send a verification code. Please try again.";throw new n.ApiError(e,a.status)}return v.parse(o)}e.s(["sendPhoneLoginOtp",0,C],974255),e.s([],926422)}]);
3
4//# debugId=c654f53c-5c52-ba55-b2ae-0e8c141a27b4
5//# chunkId=01a0eccc-6d0a-7f11-96aa-d98d628e87ab

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.