1import{j as e,d as j,u as y,r as s}from"./vendor-react-DfYGAhtm.js";import{u as E,e as R}from"./vendor-state-BsBVN-fX.js";import{g as W}from"./green_strip-C4meNRuY.js";import{u as k}from"./useSmeStepBreadcrumbs-eAyE9Kbh.js";import{S as F}from"./StepPageLayout-DdZUweau.js";import{d as C,I as v}from"./vendor-icons-1odZwi-b.js";import{m as o,y as w,bt as z,bu as H,bv as d}from"./index-DsBgCU7r.js";import{F as u,T as r,v as m,V as b,a as l,H as P}from"./vendor-ui-DA_r9yXk.js";import{s as A}from"./success-C0L8gZxS.js";import{g as B,S as T}from"./flowGuard-BNgCH5A1.js";import"./stepBreadcrumbs-FCtSk5Kj.js";import"./vendor-forms-BP-7CbAP.js";import"./routes-alBnq1HL.js";const I=({onGoToDashboard:c})=>e.jsx(u,{justify:"center",children:e.jsxs(u,{as:"button",onClick:c,align:"center",gap:2,px:8,py:3,bg:"white",border:"1px solid",borderColor:o.border.primary,borderRadius:"full",cursor:"pointer",_hover:{bg:o.gray[50],borderColor:o.gray[300]},transition:"all 0.15s",children:[e.jsx(r,{fontWeight:"semibold",fontSize:"sm",color:o.text.label,children:"Back to Dashboard"}),e.jsx(m,{as:C,boxSize:4,color:o.orange[500]})]})}),D=()=>e.jsxs(u,{direction:"column",align:"center",w:"full",maxW:"448px",children:[e.jsx(w,{data:A,autoplay:!0}),e.jsxs(b,{gap:4,textAlign:"center",children:[e.jsx(r,{fontSize:{base:"30px",md:"34px"},lineHeight:{base:"38px",md:"42px"},fontWeight:"600",color:"#5E7297",letterSpacing:"-2px",children:"Request Submitted"}),e.jsx(r,{fontSize:"14px",color:"#5E7297",maxW:"351.77px",lineHeight:"22px",textAlign:"center",children:"Thank you for completing your SME insurance review, please check back soon"})]})]}),G=()=>e.jsx(l,{bg:"white",border:"0.5px solid rgba(0, 0, 0, 0.07)",borderRadius:"12px",h:{base:"auto",md:"72px"},w:"full",maxW:"399px",px:{base:3,md:"16.5px"},py:{base:3,md:"0.5px"},display:"flex",alignItems:"center",children:e.jsxs(P,{align:"center",gap:"12px",children:[e.jsx(l,{flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",w:"30.43px",h:"30.43px",children:e.jsx(m,{as:v,boxSize:7,color:"#5FB939"})}),e.jsxs(l,{children:[e.jsx(r,{fontWeight:"500",fontSize:"13px",lineHeight:"19.5px",color:"#5E7297",mb:"2px",children:"Watch out for your WhatsApp!"}),e.jsx(r,{fontSize:"11px",lineHeight:"14px",color:"rgba(31, 54, 95, 0.59)",maxW:"324px",children:"We'll send your personalized qoute via Whatsapp once it's ready. Please allow up to 24 hours for processing."})]})]})}),Y=()=>{const{items:c}=k(),p=j(),h=y(),g=s.useRef(!1),t=E(),x=R(S=>S.sme.submissionResult),a=h.state?.submissionResult,i=x??a;s.useEffect(()=>{a&&!x&&t(z(a))},[a,x,t]),s.useEffect(()=>{i&&t(H())},[i,t]);const n=B(T.Submitted,null,null,[],i??null);if(s.useEffect(()=>{n&&p(n,{replace:!0})},[n,p]),s.useEffect(()=>()=>{t(d())},[t]),n||!i)return null;const f=()=>{g.current=!0,t(d()),p("/home",{replace:!0})};return e.jsx(F,{items:c,hideGoBack:!0,contentMaxW:"500px",mobileContentOnly:!0,children:e.jsx(l,{borderRadius:"33px",p:{base:6,md:"47px 39px"},backgroundImage:`linear-gradient(139.29deg, #F8FCF4 50%, #F2F8EC 100%), url(${W})`,backgroundSize:"cover",backgroundPosition:"top center",border:"1px solid",borderColor:"rgba(120, 53, 13, 0.11)",boxShadow:"0px 13px 74.8px 0px rgba(0, 0, 0, 0.01)",children:e.jsxs(b,{gap:4,align:"stretch",children:[e.jsx(D,{}),e.jsx(G,{}),e.jsx(I,{onGoToDashboard:f})]})})})};export{Y 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.