1import{u as b,j as s,N as f}from"./vendor-react-DfYGAhtm.js";import{k as R}from"./index-DsBgCU7r.js";import{u as S,I as k,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 w}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 r=b(),{videoUrl:a}=r.state??{},{phase:t,progressPercent:l,errorMessage:p,isRetaking:o,uploadedKey:u,shouldRedirectToRecording:m,isResultPhase:e,isInsurable:n,isPassed:c,screenHealthNote:d,categoryRows:g,heading:x,subtitle:y,onSubmit:j,onRetake:i,onClose:h,onRetry:I}=S({videoUrl:a,preAnalysisStep:null});return m?s.jsx(f,{to:w.recording,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(R,{variant:"light",alt:"Myka",h:"36px"})}),t==="uploading"?s.jsx(v,{percent:l}):null,t==="analyzing"?s.jsx(N,{}):null,t==="error"?s.jsx(k,{errorMessage:p,isRetaking:o,onRetry:I,onRetake:i}):null,e&&!n?s.jsx(A,{screenHealthNote:d,onClose:h}):null,e&&n?s.jsx(P,{heading:x,subtitle:y,categoryRows:g,isPassed:c,isSubmitting:t==="submitting",canSubmit:!!u,isRetaking:o,onSubmit:j,onRetake:i}):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.