PageSourceSearch

https://home.co.uk/build/assets/AmlChecks-Ci1rJ0Uz.js

js home.co.uk collected 2026-09-24 18:55:31 UTC 23,098 bytes, 1 lines download raw bytes

1import{_ as ie,r as c,l as re,m as Z,o as n,f as i,b as e,t as u,B as ae,D as B,c as le,d as a,u as r,p as de,w as H,n as R,g as p,$ as G,x as ue,h as d,F as V,j as me,a as b,e as pe,C as ce,L as E,aa as U,s as xe,v as fe}from"./LoginModal-v__rASBc.js";import{_ as ve}from"./ConsumerLayout-BPOXeIqe.js";import{_ as ge,M as ye}from"./app-in6zgkpf.js";import be from"./ProofOfAddressSection-BD-P4n-s.js";import{E as we}from"./external-link-CNPA8rPE.js";import{S as X}from"./shield-check-CFd5CxF0.js";import{D as J}from"./download-COPaeks4.js";import{C as _e}from"./credit-card-B1Wt0z13.js";import{C as M}from"./circle-check-big-DcrUJU7S.js";import{C as q}from"./clock-K9AzH3c2.js";import{C as K}from"./circle-x-DOwGs1ae.js";import{S as Q}from"./send-CTLrmgRn.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./AnimatedLogoMini-DZn7kfml.js";/* empty css                                                                         */import"./house-heart-BrGKS1y4.js";import"./clipboard-check-n91rIOkt.js";import"./arrow-left-right-BtnEndCR.js";import"./calendar-clock-BLDAA8z4.js";import"./bell-QWpbCkhl.js";import"./file-key-B17JaJ5S.js";import"./chevron-right-B8FiHy9A.js";import"./arrow-left-BemsaVrn.js";import"./menu-db6Mjw9T.js";import"./settings-DV5FRVHl.js";import"./log-out-BgFW5TTa.js";import"./ellipsis-C27HxRzs.js";/* empty css            */import"./echo-fvvHJG-1.js";import"./listingImageRemint-DdzXd0Qc.js";import"./AddressAutocomplete-C8jYkxUM.js";import"./corner-down-left-BEHoJvwQ.js";import"./paperclip-BlkA30ee.js";import"./plus-BpFzpmw4.js";const he={class:"onfido-container h-full w-full flex-1"},ke={key:0,class:"flex items-center justify-center py-16"},Ce={key:1,class:"flex items-center justify-center p-8"},ze={class:"w-full max-w-md rounded-2xl border border-red-100 bg-red-50 p-6 text-center"},Ie={class:"text-sm font-medium text-red-800"},je={key:2,class:"flex items-center justify-center p-8"},Pe={key:3,class:"w-full"},Se={__name:"OnfidoVerification",props:{checkId:{type:String,required:!0}},emits:["complete","error"],setup(I,{emit:$}){const k=I,C=$,w=c(!0),m=c(null),_=c(!1),D=c(null);let h=null;const z=async()=>{var j,f;try{w.value=!0,m.value=null;const x=await B.post("/account/aml-checks/onfido/token",{check_id:k.checkId});if(!x.data.success||!x.data.sdkToken)throw new Error(x.data.message||"Failed to obtain verification token.");const{sdkToken:T,workflowRunId:S,applicantId:l}=x.data,{Onfido:P}=await ge(async()=>{const{Onfido:v}=await import("./Onfido-C-K9uCuf.js");return{Onfido:v}},[]);h=P.init({token:T,containerId:"onfido-mount",workflowRunId:S,onComplete:async v=>{try{await B.post("/account/aml-checks/onfido/complete",{check_id:k.checkId,applicantId:l,workflowRunId:S,data:v}),_.value=!0,C("complete",v)}catch(Y){console.error("Error saving verification status:",Y),m.value="Verification completed but failed to save. Please contact support."}},onError:v=>{console.error("Onfido error:",v),m.value=v.message||"Verification failed. Please try again.",C("error",v)},theme:{name:"light",config:{colorBackgroundSurfaceModal:"white",colorContentButtonPrimaryText:"rgb(255,255,255)",colorBackgroundButtonPrimary:"rgb(15,23,42)",colorBackgroundButtonPrimaryHover:"rgb(30,41,59)",colorBackgroundButtonPrimaryActive:"rgb(30,41,59)",borderRadiusButton:"8px",colorContentBody:"rgb(15,23,42)",colorContentTitle:"rgb(15,23,42)",colorContentSubtitle:"rgb(71,85,105)",colorBorderSurfaceModal:"transparent"}},language:{locale:"en_GB"}}),w.value=!1}catch(x){console.error("Error initializing Onfido:",x),w.value=!1,m.value=((f=(j=x.response)==null?void 0:j.data)==null?void 0:f.message)||x.message||"Failed to initialise verification. Please try again.",C("error",x)}},A=()=>{m.value=null,_.value=!1,z()};return re(()=>{z()}),Z(()=>{h&&h.tearDown()}),(j,f)=>(n(),i("div",he,[w.value?(n(),i("div",ke,[...f[0]||(f[0]=[e("div",{class:"text-center"},[e("div",{class:"loader mx-auto mb-4"}),e("p",{class:"text-sm text-gray-500"},"Preparing your verification...")],-1)])])):m.value?(n(),i("div",Ce,[e("div",ze,[e("p",Ie,u(m.value),1),e("button",{onClick:A,class:"mt-4 rounded-lg bg-red-100 px-5 py-2 text-sm font-medium text-red-900 hover:bg-red-200"}," Try Again ")])])):_.value?(n(),i("div",je,[...f[1]||(f[1]=[ae('<div class="w-full max-w-md rounded-2xl border border-green-100 bg-green-50 p-8 text-center" data-v-51d116e1><div class="mb-4 flex justify-center" data-v-51d116e1><div class="rounded-full bg-green-100 p-3" data-v-51d116e1><svg class="size-8 text-green-600" fill="none" viewBox="0 0 24 24" stroke="currentColor" data-v-51d116e1><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" data-v-51d116e1></path></svg></div></div><h3 class="text-lg font-semibold text-green-900" data-v-51d116e1>Verification Submitted</h3><p class="mt-2 text-sm text-green-700" data-v-51d116e1> Thank you. Your verification has been submitted and is being reviewed. You will receive an email with your result shortly. </p></div>',1)])])):(n(),i("div",Pe,[e("div",{id:"onfido-mount",ref_key:"onfidoMount",ref:D,class:"mx-auto max-w-lg"},null,512)]))]))}},qe=ie(Se,[["__scopeId","data-v-51d116e1"]]),Be={class:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8 py-6 sm:py-8 overflow-x-hidden"},$e={class:"space-y-6 sm:space-y-8"},De={key:0,class:"flex items-start gap-3 rounded-2xl border border-stone-100 bg-stone-50 px-3 py-2.5 sm:px-4 sm:py-3"},Ae={key:1,class:"bg-white border border-stone-100 rounded-2xl p-6 sm:p-8 text-center"},Oe={class:"mx-auto mb-3 flex size-12 items-center justify-center rounded-2xl bg-gradient-to-br from-pink-500 via-rose-500 to-orange-500 shadow-lg shadow-pink-500/20"},Re={key:2,class:"space-y-8"},Ve={class:"flex flex-wrap items-center gap-x-3 gap-y-1"},Ee={class:"text-sm font-medium text-stone-700"},Te={class:"flex items-center gap-1.5 text-xs text-stone-400"},Ye={key:0,class:"flex items-start gap-3 rounded-2xl border border-stone-100 bg-white px-4 py-3.5"},Le={class:"mt-0.5 flex size-6 shrink-0 items-center justify-center rounded-full border border-emerald-100 bg-emerald-50 text-emerald-600"},Me={class:"min-w-0 flex-1"},Ne={class:"text-sm font-medium text-stone-700"},Fe={class:"mt-0.5 text-xs text-stone-500"},We=["onClick"],He={key:1,class:"inline-flex shrink-0 items-center gap-1.5 text-xs text-stone-400"},Ge={key:1,class:"rounded-3xl border border-pink-100/60 bg-gradient-to-br from-pink-50/60 via-white to-orange-50/40 p-5 sm:p-6 lg:p-8"},Ue={class:"lg:grid lg:grid-cols-[17rem_minmax(0,1fr)] lg:gap-10 lg:items-center"},Xe={class:"flex h-10 w-10 items-center justify-center rounded-xl bg-gradient-to-br from-pink-500 via-rose-500 to-orange-500 shadow-lg shadow-pink-500/20"},Je={class:"mt-6 rounded-2xl border border-stone-100 bg-white p-4 sm:p-5 lg:mt-0"},Ke={class:"flex items-baseline justify-between gap-3"},Qe={class:"text-xl font-semibold text-stone-800"},Ze={key:0,class:"mt-2 text-xs text-stone-500"},et=["onClick","disabled"],tt={key:2,class:"rounded-3xl border border-pink-100/60 bg-gradient-to-br from-pink-50/60 via-white to-orange-50/40 p-5 sm:p-6 lg:p-8"},st={class:"lg:grid lg:grid-cols-[17rem_minmax(0,1fr)] lg:gap-10 lg:items-start"},ot={class:"flex h-10 w-10 items-center justify-center rounded-xl bg-gradient-to-br from-pink-500 via-rose-500 to-orange-500 shadow-lg shadow-pink-500/20"},nt={key:0,class:"mt-4 text-xs text-stone-400"},it={class:"mt-6 lg:mt-0"},rt={key:0,class:"rounded-2xl border border-stone-100 bg-white p-5 text-center sm:p-6"},at=["onClick"],lt={key:1,class:"rounded-2xl border border-stone-100 bg-white p-3 sm:p-4"},dt={class:"flex items-center justify-between gap-3 border-b border-stone-100 pb-1 pl-1"},ut=["onClick"],mt={key:3,class:"rounded-3xl border border-stone-100 bg-white p-5 sm:p-6 lg:p-8"},pt={class:"sm:flex sm:items-center sm:justify-between sm:gap-8"},ct={class:"flex items-start gap-4"},xt={class:"flex h-10 w-10 shrink-0 items-center justify-center rounded-xl border border-emerald-100 bg-emerald-50"},ft={class:"min-w-0"},vt={class:"mt-1 text-sm text-stone-500"},gt={class:"mt-5 shrink-0 sm:mt-0"},yt=["onClick"],bt={key:1,class:"inline-flex items-center gap-2 text-xs text-stone-500"},wt={key:2,class:"text-xs text-stone-400"},_t={key:4,class:"rounded-3xl border border-stone-100 bg-white p-5 sm:p-6 lg:p-8"},ht={class:"flex items-start gap-4"},kt={class:"min-w-0"},Ct={class:"text-lg font-semibold text-stone-800 sm:text-xl"},zt={class:"mt-1 text-sm text-stone-500"},It={key:5,class:"rounded-3xl border border-stone-100 bg-white p-5 sm:p-6 lg:p-8"},jt={class:"sm:flex sm:items-start sm:justify-between sm:gap-8"},Pt={class:"flex items-start gap-4"},St={class:"flex h-10 w-10 shrink-0 items-center justify-center rounded-xl border border-red-100 bg-red-50"},qt={class:"min-w-0"},Bt={class:"text-lg font-semibold text-stone-800 sm:text-xl"},$t={class:"mt-1 text-sm text-stone-500"},Dt={class:"mt-5 shrink-0 sm:mt-0"},At={key:0,class:"inline-flex items-center gap-1.5 text-xs font-medium text-emerald-600"},Ot=["onClick"],Rt={key:0,class:"mt-5 border-t border-stone-100 pt-5"},Vt={class:"flex items-start gap-3"},Et={class:"flex-1 space-y-3"},Tt={class:"flex flex-wrap gap-2"},Yt=["onClick","disabled"],_s={__name:"AmlChecks",props:{checks:{type:Array,default:()=>[]},hasPassword:{type:Boolean,default:!0}},setup(I){const $=I,k=c(null),C=c(null),w=c(null),m=c(""),_=c(null),D=c(null),h=c({}),z=c(null),A=le(()=>$.checks.find(s=>f(s)));A.value&&(k.value=A.value.id);function j(s){k.value=k.value===s?null:s}
1function f(s){return["pending","sent","in_progress"].includes(s.status)&&!s.requires_payment}function x(s){return s.requires_payment&&!s.is_paid}function T(s){return["expired","declined"].includes(s.status)}function S(s){return s.requires_proof_of_address&&(s.poa_submitted_at||["complete","approved","review_needed"].includes(s.status))}function l(s){return x(s)?"pay":f(s)?"verify":S(s)&&!s.poa_submitted_at?"poa":T(s)?s.status==="expired"?"expired":"declined":s.status==="approved"?"approved":s.status==="review_needed"?"review":s.status==="complete"?"submitted":"none"}function P(s){return F(s.verified_at||s.completed_at)}function v(s){switch(s){case"approved":return M;case"declined":return K;case"review_needed":return U;case"expired":return q;case"complete":return q;default:return q}}function Y(s){switch(s){case"approved":return"text-emerald-700 bg-emerald-50 border-emerald-100";case"declined":return"text-red-700 bg-red-50 border-red-100";case"review_needed":return"text-amber-700 bg-amber-50 border-amber-100";case"expired":return"text-red-700 bg-red-50 border-red-100";case"complete":return"text-blue-700 bg-blue-50 border-blue-100";default:return"text-stone-600 bg-stone-50 border-stone-100"}}function ee(s){return{pending:"Pending",sent:"Sent",in_progress:"In Progress",complete:"Submitted",approved:"Approved",declined:"Declined",review_needed:"Needs Review",expired:"Expired"}[s]??s}async function te(s){var t,o;C.value=s.id;try{const{data:g}=await B.post(route("account.aml.pay",{check:s.id}));g.checkout_url&&(window.location.href=g.checkout_url)}catch(g){console.error("Payment session failed",g),L(((o=(t=g.response)==null?void 0:t.data)==null?void 0:o.message)||"Failed to start payment. Please try again.","error")}finally{C.value=null}}async function se(s){var t,o;w.value=s.id;try{await B.post(route("account.aml.request-new",{check:s.id}),{message:m.value||null}),D.value=s.id,_.value=null,m.value="",L("Your request has been sent to the agent.")}catch(g){console.error("Re-request failed",g),L(((o=(t=g.response)==null?void 0:t.data)==null?void 0:o.message)||"Failed to send request.","error")}finally{w.value=null}}function N(s){window.open(route("account.aml.certificate",{check:s}),"_blank")}function F(s){return s?new Date(s).toLocaleDateString("en-GB",{day:"numeric",month:"short",year:"numeric"}):null}function oe(s){k.value=null,window.location.reload()}function L(s,t="success"){z.value={message:s,type:t},setTimeout(()=>{z.value=null},4e3)}const O={};function ne(s){if(s.status!=="approved"||s.has_certificate)return;h.value[s.id]=!0;const t=Date.now();O[s.id]=setInterval(async()=>{if(Date.now()-t>300*1e3){h.value[s.id]=!1,clearInterval(O[s.id]);return}try{const{data:o}=await B.get(route("account.aml.certificate-status",{check:s.id}));o.ready&&(h.value[s.id]=!1,clearInterval(O[s.id]),window.location.reload())}catch{}},1e4)}return $.checks.forEach(s=>{s.status==="approved"&&!s.has_certificate&&ne(s)}),Z(()=>{Object.values(O).forEach(s=>clearInterval(s))}),(s,t)=>(n(),i(V,null,[a(r(de),{title:"ID Verification"}),a(ve,null,{default:H(()=>[e("div",Be,[z.value?(n(),i("div",{key:0,class:R(["fixed top-4 right-4 z-50 rounded-xl px-4 py-3 text-sm font-medium shadow-lg",z.value.type==="error"?"bg-red-600 text-white":"bg-emerald-600 text-white"])},u(z.value.message),3)):p("",!0),e("div",$e,[t[29]||(t[29]=e("div",null,[e("h1",{class:"text-xl sm:text-3xl font-bold tracking-tight text-stone-800"},"ID verification"),e("p",{class:"mt-1 text-sm sm:text-base text-stone-500"}," A quick identity check so your estate agent can get on with your move. ")],-1)),I.hasPassword?p("",!0):(n(),i("div",De,[a(r(G),{class:"size-4 text-stone-400 mt-0.5 shrink-0"}),e("div",null,[t[3]||(t[3]=e("p",{class:"text-sm font-medium text-stone-700"},"Set a password for your account",-1)),t[4]||(t[4]=e("p",{class:"mt-0.5 text-xs text-stone-500"}," Your account was created automatically. Set a password so you can log back in to view your verification status at any time. ",-1)),a(r(ue),{href:"/forgot-password",class:"mt-2 inline-flex items-center gap-1 text-xs font-medium text-pink-600 hover:text-pink-700"},{default:H(()=>[t[2]||(t[2]=d(" Set password via email ",-1)),a(r(we),{class:"size-3"})]),_:1})])])),I.checks.length===0?(n(),i("div",Ae,[e("div",Oe,[a(r(X),{class:"size-6 text-white"})]),t[5]||(t[5]=e("h3",{class:"text-sm font-semibold text-stone-800"},"No ID checks yet",-1)),t[6]||(t[6]=e("p",{class:"mx-auto mt-1 max-w-sm text-sm text-stone-500"}," When your estate agent requests an identity verification, it will appear here for you to complete. ",-1))])):(n(),i("div",Re,[(n(!0),i(V,null,me(I.checks,(o,g)=>{var W;return n(),i("section",{key:o.id,class:R(["space-y-3",g>0?"border-t border-stone-100 pt-8":""])},[e("div",Ve,[e("span",Ee,u(((W=o.agent_branch)==null?void 0:W.name)??"Estate Agent"),1),e("span",{class:R(["inline-flex items-center gap-1 rounded-full border px-2 py-0.5 text-xs font-medium",Y(o.status)])},[(n(),b(pe(v(o.status)),{class:"size-3"})),d(" "+u(o.status_label??ee(o.status)),1)],2),e("span",Te,[o.reference?(n(),i(V,{key:0}
1,[e("span",null,"Ref "+u(o.reference),1),t[7]||(t[7]=e("span",{class:"text-stone-300"},"·",-1))],64)):p("",!0),e("span",null,"Requested "+u(F(o.created_at)),1)])]),l(o)==="poa"?(n(),i("div",Ye,[e("div",Le,[a(r(ce),{class:"size-3.5"})]),e("div",Me,[e("p",Ne,u(o.status==="approved"?"Identity verified":"Identity check submitted"),1),e("p",Fe,u(o.status==="approved"?P(o)?`Approved ${P(o)}`:"Approved":"We'll email you the result — nothing more to do on that part."),1)]),o.status==="approved"&&o.has_certificate?(n(),i("button",{key:0,onClick:y=>N(o.id),class:"inline-flex min-h-[44px] shrink-0 items-center gap-1.5 rounded-xl border border-stone-200 bg-white px-3 text-xs font-medium text-stone-700 hover:bg-stone-50"},[a(r(J),{class:"size-3.5"}),t[8]||(t[8]=d(" Certificate ",-1))],8,We)):o.status==="approved"&&h.value[o.id]?(n(),i("span",He,[a(r(E),{class:"size-3.5 animate-spin"}),t[9]||(t[9]=d(" Certificate ",-1))])):p("",!0)])):p("",!0),l(o)==="pay"?(n(),i("div",Ge,[e("div",Ue,[e("div",null,[e("div",Xe,[a(r(G),{class:"size-5 text-white"})]),t[10]||(t[10]=e("h2",{class:"mt-3 text-lg font-semibold text-stone-800 sm:text-xl"},"Pay to start your check",-1)),t[11]||(t[11]=e("p",{class:"mt-2 text-sm text-stone-500"}," Your agent has asked you to cover the cost of this identity check. Once it's paid you can start straight away — it only takes about five minutes. ",-1))]),e("div",Je,[e("div",Ke,[t[12]||(t[12]=e("span",{class:"text-sm text-stone-500"},"Amount due",-1)),e("span",Qe,u(o.payment_amount_display),1)]),o.includes_title?(n(),i("p",Ze," Includes your official HM Land Registry title document — itemised at checkout. ")):p("",!0),e("button",{onClick:y=>te(o),disabled:C.value===o.id,class:"mt-4 inline-flex w-full min-h-[44px] items-center justify-center gap-2 rounded-xl bg-[#635BFF] px-5 py-3 text-sm font-semibold text-white shadow-sm hover:bg-[#5851ea] disabled:opacity-70"},[C.value===o.id?(n(),b(r(E),{key:0,class:"size-4 animate-spin"})):(n(),b(r(_e),{key:1,class:"size-4"})),d(" Pay "+u(o.payment_amount_display),1)],8,et),t[13]||(t[13]=e("p",{class:"mt-2 text-center text-[11px] text-stone-400"},"Secure payment handled by Stripe",-1))])])])):l(o)==="verify"?(n(),i("div",tt,[e("div",st,[e("div",null,[e("div",ot,[a(r(X),{class:"size-5 text-white"})]),t[14]||(t[14]=e("h2",{class:"mt-3 text-lg font-semibold text-stone-800 sm:text-xl"},"Verify your identity",-1)),t[15]||(t[15]=e("p",{class:"mt-2 text-sm text-stone-500"}," Photograph your ID, then take a quick selfie. About five minutes, on your phone or computer. ",-1)),t[16]||(t[16]=e("ul",{class:"mt-4 space-y-2"},[e("li",{class:"flex items-center gap-2.5 text-xs text-stone-600"},[e("span",{class:"flex size-5 shrink-0 items-center justify-center rounded-full bg-white text-[10px] font-bold text-stone-400 ring-1 ring-stone-100"},"1"),d(" A valid photo ID (passport or driving licence) ")]),e("li",{class:"flex items-center gap-2.5 text-xs text-stone-600"},[e("span",{class:"flex size-5 shrink-0 items-center justify-center rounded-full bg-white text-[10px] font-bold text-stone-400 ring-1 ring-stone-100"},"2"),d(" A camera or smartphone for a selfie ")]),e("li",{class:"flex items-center gap-2.5 text-xs text-stone-600"},[e("span",{class:"flex size-5 shrink-0 items-center justify-center rounded-full bg-white text-[10px] font-bold text-stone-400 ring-1 ring-stone-100"},"3"),d(" Around 5 minutes to complete ")])],-1)),o.requires_proof_of_address?(n(),i("p",nt," Once this is done, we'll ask you to confirm your address. ")):p("",!0),t[17]||(t[17]=e("p",{class:"mt-2 text-[11px] text-stone-400"}," Handled securely by Onfido, the identity provider used by leading banks. ",-1))]),e("div",it,[k.value!==o.id?(n(),i("div",rt,[e("button",{onClick:y=>j(o.id),class:"inline-flex w-full min-h-[44px] items-center justify-center gap-2 rounded-xl bg-gradient-to-r from-pink-500 via-rose-500 to-orange-500 px-5 py-3 text-sm font-medium text-white transition-all hover:shadow-lg hover:shadow-pink-500/25"}," Start verification ",8,at),t[18]||(t[18]=e("p",{class:"mt-2 text-xs text-stone-400"},"Have your passport or driving licence to hand",-1))])):(n(),i("div",lt,[e("div",dt,[t[19]||(t[19]=e("p",{class:"text-xs font-medium text-stone-500"},"Identity check",-1)),e("button",{onClick:y=>j(o.id),class:"min-h-[44px] px-2 text-xs font-medium text-stone-400 hover:text-stone-600"}," Hide ",8,ut)]),a(qe,{"check-id":o.id,onComplete:y=>oe(o.id)}
1,null,8,["check-id","onComplete"])]))])])])):l(o)==="approved"?(n(),i("div",mt,[e("div",pt,[e("div",ct,[e("div",xt,[a(r(M),{class:"size-5 text-emerald-600"})]),e("div",ft,[t[22]||(t[22]=e("h2",{class:"text-lg font-semibold text-stone-800 sm:text-xl"},"Identity verified",-1)),e("p",vt,[t[20]||(t[20]=d(" Your check was approved",-1)),P(o)?(n(),i(V,{key:0},[d(" on "+u(P(o)),1)],64)):p("",!0),t[21]||(t[21]=d(". Your agent has been notified — there's nothing else for you to do. ",-1))])])]),e("div",gt,[o.has_certificate?(n(),i("button",{key:0,onClick:y=>N(o.id),class:"inline-flex w-full min-h-[44px] items-center justify-center gap-2 rounded-xl bg-gradient-to-r from-pink-500 via-rose-500 to-orange-500 px-5 py-3 text-sm font-medium text-white transition-all hover:shadow-lg hover:shadow-pink-500/25 sm:w-auto"},[a(r(J),{class:"size-4"}),t[23]||(t[23]=d(" Download certificate ",-1))],8,yt)):h.value[o.id]?(n(),i("span",bt,[a(r(E),{class:"size-3.5 animate-spin"}),t[24]||(t[24]=d(" Preparing your certificate... ",-1))])):(n(),i("span",wt," Your certificate will appear here shortly. "))])])])):l(o)==="submitted"||l(o)==="review"?(n(),i("div",_t,[e("div",ht,[e("div",{class:R(["flex h-10 w-10 shrink-0 items-center justify-center rounded-xl border",l(o)==="review"?"border-amber-100 bg-amber-50":"border-stone-100 bg-stone-50"])},[l(o)==="review"?(n(),b(r(U),{key:0,class:"size-5 text-amber-600"})):(n(),b(r(q),{key:1,class:"size-5 text-stone-400"}))],2),e("div",kt,[e("h2",Ct,u(l(o)==="review"?"We're taking a closer look":"Check submitted"),1),e("p",zt,u(l(o)==="review"?"Your check has gone to a person for review. We'll email you as soon as there's an outcome — you don't need to do anything.":"Thanks — everything's with our verification team. We'll email you as soon as your check is confirmed. Nothing further is needed from you."),1)])])])):l(o)==="expired"||l(o)==="declined"?(n(),i("div",It,[e("div",jt,[e("div",Pt,[e("div",St,[l(o)==="expired"?(n(),b(r(q),{key:0,class:"size-5 text-red-500"})):(n(),b(r(K),{key:1,class:"size-5 text-red-500"}))]),e("div",qt,[e("h2",Bt,u(l(o)==="expired"?"This check has expired":"Your check wasn't approved"),1),e("p",$t,u(l(o)==="expired"?"Checks expire after a while for security. Ask your agent for a new one and you can start again in a few minutes.":"We couldn't confirm your identity from what was provided. Your agent can send you a new check so you can try again."),1)])]),e("div",Dt,[D.value===o.id?(n(),i("span",At,[a(r(M),{class:"size-3.5"}),t[25]||(t[25]=d(" Request sent ",-1))])):_.value!==o.id?(n(),i("button",{key:1,onClick:y=>_.value=o.id,class:"inline-flex w-full min-h-[44px] items-center justify-center gap-2 rounded-xl bg-stone-800 px-5 py-3 text-sm font-medium text-white transition-colors hover:bg-stone-900 sm:w-auto"},[a(r(Q),{class:"size-4"}),t[26]||(t[26]=d(" Request a new check ",-1))],8,Ot)):p("",!0)])]),_.value===o.id?(n(),i("div",Rt,[e("div",Vt,[a(r(ye),{class:"mt-0.5 size-4 shrink-0 text-stone-400"}),e("div",Et,[t[28]||(t[28]=e("p",{class:"text-sm text-stone-600"}," Send a request to your agent for a new identity check. You can optionally include a message. ",-1)),xe(e("textarea",{"onUpdate:modelValue":t[0]||(t[0]=y=>m.value=y),rows:"2",maxlength:"500",placeholder:"Optional message to your agent...",class:"w-full rounded-xl border border-stone-200 p-3 text-sm focus:border-stone-400 focus:outline-none"},null,512),[[fe,m.value]]),e("div",Tt,[e("button",{onClick:y=>se(o),disabled:w.value===o.id,class:"inline-flex min-h-[44px] items-center gap-1.5 rounded-xl bg-stone-800 px-4 py-2 text-xs font-medium text-white hover:bg-stone-900 disabled:opacity-50"},[w.value===o.id?(n(),b(r(E),{key:0,class:"size-3.5 animate-spin"})):(n(),b(r(Q),{key:1,class:"size-3.5"})),t[27]||(t[27]=d(" Send Request ",-1))],8,Yt),e("button",{onClick:t[1]||(t[1]=y=>{_.value=null,m.value=""}),class:"min-h-[44px] rounded-xl border border-stone-200 px-4 py-2 text-xs font-medium text-stone-600 hover:bg-stone-50"}," Cancel ")])])])])):p("",!0)])):p("",!0),S(o)?(n(),b(be,{key:6,check:o},null,8,["check"])):p("",!0)],2)}),128))]))])])]),_:1})],64))}};export{_s 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.