PageSourceSearch

https://myka.ng/assets/GadgetPolicyActivationSuccessPage-DjxxtOgD.js

js myka.ng collected 2026-10-09 22:42:36 UTC 4,627 bytes, 1 lines download raw bytes

1import{p as w,r as k,j as e}from"./vendor-react-DfYGAhtm.js";import{D as v,br as z,ae as W,p as P}from"./vendor-icons-1odZwi-b.js";import{x as T,m as t,y as D,g,t as A}from"./index-DsBgCU7r.js";import{s as B}from"./success-C0L8gZxS.js";import{g as L}from"./green_strip-C4meNRuY.js";import{S as F}from"./StepPageLayout-DdZUweau.js";import{a as i,V as s,T as o,H as l,n as H}from"./vendor-ui-DA_r9yXk.js";import"./vendor-state-BsBVN-fX.js";import"./vendor-forms-BP-7CbAP.js";const M=()=>{const[a]=w(),{navigate:c}=T(),[d,p]=k.useState(!1),m=a.get("policyId")??"",n=a.get("policyNumber")??"—",b=a.get("vehicleTitle")??"Your Gadget",u=a.get("mykaCertificate")??"",h=a.get("certificateUrl")??"",x=u||h,y=x?[{title:b,certLabel:`Policy No: ${n}`,url:x}]:[],f=(()=>{const r=new Date,C=r.toLocaleDateString("en-GB",{day:"numeric",month:"short",year:"numeric"}),S=r.toLocaleTimeString("en-GB",{hour:"2-digit",minute:"2-digit",hour12:!1});return`Today, ${C} • ${S}`})(),j=async()=>{!n||n==="—"||(await navigator.clipboard.writeText(n),p(!0),A.success("Policy number copied"),window.setTimeout(()=>p(!1),1400))};return e.jsxs(F,{items:[],hideGoBack:!0,onGoBack:()=>c("/home"),contentMaxW:"500px",mobileContentOnly:!0,children:[e.jsx(i,{backgroundImage:`linear-gradient(139.29deg, #F8FCF4 50%, #F2F8EC 100%), url(${L})`,backgroundSize:"cover",backgroundPosition:"top center",border:"1px solid",borderColor:"rgba(120, 53, 13, 0.11)",borderRadius:"33px",boxShadow:"0px 13px 74.8px 0px rgba(0, 0, 0, 0.01)",p:{base:4,md:"32px 28px"},children:e.jsxs(s,{gap:3,align:"stretch",children:[e.jsxs(s,{bg:"white",borderRadius:"2xl",border:"1px solid",borderColor:t.border.primary,py:{base:6,md:8},px:{base:4,md:6},gap:3,align:"center",children:[e.jsx(D,{data:B,autoplay:!0,loop:!1}),e.jsxs(s,{gap:1,align:"center",children:[e.jsx(o,{fontWeight:"bold",fontSize:{base:"2xl",md:"3xl"},color:t.navy[500],textAlign:"center",lineHeight:"1.2",children:"You're All Set!"}),e.jsx(o,{textAlign:"center",color:t.text.gray,fontSize:"sm",lineHeight:"1.6",maxW:"360px",children:"Your gadget policy has been activated and successfully issued. Download your documents below."})]}),e.jsx(i,{border:"1px solid",borderColor:t.border.primary,borderRadius:"xl",px:5,py:4,w:"full",children:e.jsxs(s,{gap:1,align:"center",children:[e.jsx(o,{fontSize:"xs",color:t.text.gray,fontWeight:"semibold",textTransform:"uppercase",letterSpacing:"0.1em",children:"Your Policy Number"}),e.jsxs(l,{gap:1,align:"center",children:[e.jsx(o,{fontSize:{base:"xl",md:"2xl"},fontWeight:"bold",color:t.navy[500],fontFamily:"mono",letterSpacing:"0.02em",children:n}),e.jsx(H,{"aria-label":d?"Copied!":"Copy policy number",variant:"ghost",size:"sm",color:d?t.success[600]:t.text.gray,onClick:()=>void j(),children:e.jsx(v,{size:18})})]})]})})]}),y.map(r=>e.jsxs(l,{justify:"space-between",align:"center",border:"1px solid",borderColor:t.border.primary,borderRadius:"2xl",p:4,bg:"white",gap:3,flexWrap:"wrap",children:[e.jsxs(l,{gap:3,align:"center",flex:1,minW:0,children:[e.jsx(i,{w:"40px",h:"40px",borderRadius:"lg",bg:t.orange[50],border:"1px solid",borderColor:t.orange[200],display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,children:e.jsx(z,{size:20,color:t.text.orange})}),e.jsxs(s,{align:"start",gap:0,minW:0,children:[e.jsx(o,{fontWeight:"bold",color:t.navy[500],fontSize:"sm",overflow:"hidden",style:{display:"-webkit-box",WebkitLineClamp:1,WebkitBoxOrient:"vertical"},children:r.title}),e.jsx(o,{fontSize:"xs",color:t.text.gray,children:r.certLabel})]})]}),e.jsx("a",{href:r.url,target:"_blank",rel:"noopener noreferrer",children:e.jsx(g,{buttonType:"outline",text:"Download PDF",icon:e.jsx(W,{}),iconPosition:"left",size:"sm"})})]},r.url)),e.jsxs(i,{bg:"white",border:"1px solid",borderColor:t.border.primary,borderRadius:"2xl",p:5,children:[e.jsx(o,{fontWeight:"bold",color:t.navy[500],fontSize:"md",mb:4,children:"Purchase Timeline"}),e.jsxs(s,{align:"stretch",gap:0,position:"relative",children:[e.jsx(i,{position:"absolute",left:"11px",top:"22px",bottom:"22px",w:"2px",bg:t.success[300]}),["Certificate sent to WhatsApp","Certificate sent to Email"].map(r=>e.jsxs(l,{align:"center",gap:3,py:3,position:"relative",children:[e.jsx(i,{flexShrink:0,color:t.success[500],children:e.jsx(P,{size:24})}
1),e.jsxs(s,{align:"start",gap:0,children:[e.jsx(o,{fontWeight:"semibold",color:t.text.primary,fontSize:"sm",children:r}),e.jsx(o,{fontSize:"xs",color:t.text.gray,children:f})]})]},r))]})]})]})}),e.jsx(i,{mt:4,children:e.jsx(g,{buttonType:"primary",text:"View Policy Details",fullWidth:!0,size:"lg",onClick:()=>c(`/policies/${m}`)})})]})};export{M 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.