PageSourceSearch

https://www.infrasquad.ai/assets/StepLocationScreen-BJNojzeO.js

js infrasquad.ai collected 2026-10-05 15:22:30 UTC 1,977 bytes, 3 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]="01a10856-008c-7350-96fd-a8053fe6a5e8")}catch(e){}}();import{j as c}from"./flow-vendor-CumVsJQ6.js";import{u as g,r as l}from"./react-vendor-CfRIAywc.js";import{K as S,p as y}from"./index-CCucE9GQ.js";import{O as _}from"./OnboardingShell-B21IDOf-.js";import{S as v}from"./StepLocation-Qjla3g3N.js";import{l as p}from"./schemas-B-abl7qF.js";import{u as x}from"./i18n-j5-ApgEN.js";import{v as m}from"./validation-1IMa4Nqb.js";import"./analytics-D7QLstay.js";import"./supabase-BxX1FzgX.js";import"./styles-DubWT2-l.js";import"./compat-JqdN5lyr.js";function z(){const i=g(),{t:n}=x("onboarding"),{profile:e,updateProfile:u}=S(),[f,a]=l.useState({}),d={city:n("location.city_label"),state:n("location.state_label"),zipCode:n("location.zip_label")},s=l.useMemo(()=>{if(!e)return[];try{const o=m(p,e);return o?Object.keys(o).map(t=>d[t]||t):[]}catch{return[]}},[e]),h=s.length>0?n("location.please_fill_in",{fields:s.join(", ")}):null;function b(){const o=m(p,e);if(o){console.warn("[onboarding] location validation failed",o),a(o);try{y("onboarding_step_validation_failed",{step_name:"location",missing_fields:Object.keys(o)})}catch(t){console.warn("[StepLocationScreen] phCapture failed:",t)}try{const t=Object.keys(o)[0],r=t?document.getElementById(t):null;r&&typeof r.focus=="function"?(r.scrollIntoView({behavior:"smooth",block:"center"}),r.focus({preventScroll:!0})):window.scrollTo({top:0,behavior:"smooth"})}catch{window.scrollTo({top:0,behavior:"smooth"})}return}a({}),i("/onboarding/pay")}return c.jsx(_,{currentStep:1,onBack:()=>i("/onboarding/basic"),onNext:b,requiredNote:!0,nextDisabledReason:h,children:c.jsx(v,{data:e,onChange:u,errors:f})})}export{z as default};
2
3//# chunkId=01a10856-008c-7350-96fd-a8053fe6a5e8

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.