PageSourceSearch

https://myka.ng/assets/AccidentDetailsPage-De7ZoMf4.js

js myka.ng collected 2026-10-09 22:42:39 UTC 1,831 bytes, 1 lines download raw bytes

1import{u as y,j as r}from"./vendor-react-DfYGAhtm.js";import{x as F,t as n}from"./index-DsBgCU7r.js";import{u as v,p as x,t as A}from"./parseFnolIncidentDateTime-CKHWIQeQ.js";import{g as D}from"./errors-BYKXB8DF.js";import"./fnolAccidentDetailsSchema-J33INL6o.js";import{F as S}from"./FnolAccidentDetailsStep-DvNdoEaO.js";import{G as s}from"./routes-CNOe4p0Z.js";import"./ocrConfig-B-KSx9JM.js";import"./gadgetPostPaymentFlowConfig-ChCU4qBA.js";import{S as b}from"./StepPageLayout-DdZUweau.js";import"./vendor-icons-1odZwi-b.js";import"./vendor-ui-DA_r9yXk.js";import"./vendor-state-BsBVN-fX.js";import"./vendor-forms-BP-7CbAP.js";import"./time-CKDfeoln.js";import"./Modal-DS-VW05m.js";import"./cancelled-Dfzba4Al.js";import"./LinkPaymentMethodOption-CuZHpNDU.js";import"./checkoutSessionStore-BRM5sYZN.js";const q=()=>{const{navigate:a}=F(),{state:c}=y(),{policy:i,incidentTypes:o=[]}=c??{},{createFnolClaimAsync:m,isLoading:p}=v("gadget"),l=async(e,d)=>{if(!i?.id){n.error("Policy information is missing. Please go back and try again.");return}if(d==="uploadFirst"){a(`/${s.ClaimsFnolUploadEvidence}`,{state:{policy:i,incidentTypes:o,pendingAccident:e}});return}try{const{incidentDate:t,incidentTime:u}=x(e),g=await m({policyId:i.id,incidentNarrative:e.incidentNarrative,incidentDate:t,incidentLocation:e.incidentLocation,incidentTypes:o,incidentTime:u}),f=A(g.data);a(`/${s.ClaimsFnolSuccess}`,{state:{policy:i,claimData:f}})}catch(t){if(t instanceof Error&&t.message.includes("Invalid incident")){n.error("Invalid date or time. Please select the incident date and time again.");return}n.error(D(t)??"Failed to submit your claim. Please try again.")}};return r.jsx(b,{items:[{labelKey:"Accident Details",isActive:!0}],onGoBack:()=>a(-1),contentMaxW:"800px",children:r.jsx(S,{isSubmitting:p,onSubmit:l})})};export{q 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.