1import{u as f,j as s,N as I}from"./vendor-react-DfYGAhtm.js";import{k as S}from"./index-DsBgCU7r.js";import{u as k,I as w,a as A,b as P}from"./useInspectionAnalysisFlow-BSM1lNH2.js";import{I as v,a as N}from"./InspectionUploadProgress-C_qrTx_q.js";import{WitnessFlowRoutes as r}from"./index-CX6eACXF.js";import{h as B,a as L}from"./vendor-ui-DA_r9yXk.js";import"./vendor-icons-1odZwi-b.js";import"./vendor-state-BsBVN-fX.js";import"./vendor-forms-BP-7CbAP.js";import"./recording.constants-Cr2cQllO.js";import"./useUploader-CBNPOY8T.js";import"./errors-BYKXB8DF.js";import"./inspectionAnalysis.runtime-CbjBTDqp.js";import"./sseStream-C28FcIBw.js";import"./useWitnessFlowDeviceB-BXT16w5i.js";import"./WitnessFlowLayout-sXdBrCkv.js";import"./device-DbCxnG1h.js";const X=()=>{const a=f(),{videoUrl:l}=a.state??{},{phase:t,progressPercent:p,errorMessage:u,isRetaking:o,uploadedKey:m,shouldRedirectToRecording:c,isResultPhase:e,isInsurable:i,isPassed:d,screenHealthNote:g,categoryRows:x,heading:y,subtitle:R,onSubmit:j,onRetake:n,onClose:h,onRetry:b}=k({videoUrl:l,preAnalysisStep:null,recordingRoute:r.w2wRecording});return c?s.jsx(I,{to:r.w2wRecording,replace:!0}):s.jsxs(B,{gap:0,minH:"100dvh",pb:8,children:[s.jsx(L,{display:"flex",justifyContent:"center",pt:8,pb:4,children:s.jsx(S,{variant:"light",alt:"Myka",h:"36px"})}),t==="uploading"?s.jsx(v,{percent:p}):null,t==="analyzing"?s.jsx(N,{}):null,t==="error"?s.jsx(w,{errorMessage:u,isRetaking:o,onRetry:b,onRetake:n}):null,e&&!i?s.jsx(A,{screenHealthNote:g,onClose:h}):null,e&&i?s.jsx(P,{heading:y,subtitle:R,categoryRows:x,isPassed:d,isSubmitting:t==="submitting",canSubmit:!!m,isRetaking:o,onSubmit:j,onRetake:n}):null]})};export{X as default};
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.