PageSourceSearch

https://myka.ng/assets/W2WStartPage-DzjwPC8p.js

js myka.ng collected 2026-10-09 22:44:12 UTC 2,658 bytes, 1 lines download raw bytes

1import{d as S,r as s,j as e}from"./vendor-react-DfYGAhtm.js";import{c4 as C,bn as b,c5 as I,bp as W}from"./vendor-icons-1odZwi-b.js";import{t as o,k as v,m as d,g as R}from"./index-DsBgCU7r.js";import{w as A,I as E}from"./InspectionCard-Bk79W97B.js";import{g as f}from"./errors-BYKXB8DF.js";import{u as T}from"./useWitnessFlowDeviceB-BXT16w5i.js";import{WitnessFlowRoutes as F}from"./index-CX6eACXF.js";import{h as g,a as x,V as L,T as h,o as M}from"./vendor-ui-DA_r9yXk.js";import"./vendor-state-BsBVN-fX.js";import"./vendor-forms-BP-7CbAP.js";import"./inspectionAnalysis.runtime-CbjBTDqp.js";import"./sseStream-C28FcIBw.js";import"./WitnessFlowLayout-sXdBrCkv.js";import"./device-DbCxnG1h.js";const D=[{icon:e.jsx(C,{}),text:"Make sure the phone you are inspecting has internet access (Wi-Fi or mobile data)."},{icon:e.jsx(b,{}),text:"Keep your camera focused on the phone you are inspecting"},{icon:e.jsx(I,{}),text:"Do not stop recording or switch apps until the inspection is complete."},{icon:e.jsx(W,{}),text:"We will let you know 
1when the inspection is completed"}],X=()=>{const y=S(),[j,u]=s.useState(!1),{error:n,isJoining:i,isSocketConnected:r,session:a,startSession:B,isStarting:w,witnessToken:c}=T(),p=s.useRef(!1);s.useEffect(()=>{n.trim()&&o.error(f(new Error(n))??n)},[n]),s.useEffect(()=>{if(i){p.current=!1,o.message("Joining inspection session...");return}!(a&&c&&r)||p.current||(o.success("Connected successfully. You can begin inspection."),p.current=!0)},[i,r,a,c]);const m=!!a&&!!c&&r,l=i||w||j,k=async()=>{if(!l){if(!m){o.error(n.trim()||"Session is not ready yet. Open the inspection link again and retry.");return}u(!0);try{await B(),y(F.w2wRecording)}catch(t){o.error(f(t)??"Failed to start inspection. Please try again.")}finally{u(!1)}}};return e.jsxs(g,{gap:0,minH:"100dvh",pb:8,children:[e.jsx(x,{display:"flex",justifyContent:"center",pt:8,pb:8,children:e.jsx(v,{variant:"light",alt:"Myka",h:"36px"})}),e.jsxs(L,{gap:2,px:6,pb:6,align:"center",children:[e.jsxs(x,{display:"flex",alignItems:"center",gap:2,children:[e.jsx(h,{fontSize:{base:"2xl",md:"3xl"},fontWeight:"bold",color:d.text.primary,textAlign:"center",children:"Hello Inspector"}),e.jsx(M,{src:A,alt:"wave",h:"40px",w:"40px",objectFit:"contain"})]}),e.jsx(h,{fontSize:"sm",color:d.text.info,textAlign:"center",lineHeight:"1.6",maxW:"300px",children:"You'll record a short video of the phone to complete the inspection."})]}),e.jsx(g,{gap:3,px:5,flex:1,children:D.map(t=>e.jsx(E,{icon:t.icon,text:t.text},t.text))}),e.jsx(x,{px:5,pt:8,children:e.jsx(R,{text:"Begin Inspection",fullWidth:!0,onClick:()=>void k(),loading:l,disabled:l||!m})})]})};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.