PageSourceSearch

https://myka.ng/assets/BusinessProtectionPage-CbJM60qM.js

js myka.ng collected 2026-10-09 22:43:52 UTC 4,652 bytes, 1 lines download raw bytes

1import{j as e,d as C,r as m}from"./vendor-react-DfYGAhtm.js";import{bY as E,bZ as R}from"./vendor-icons-1odZwi-b.js";import{u as P,e as k}from"./vendor-state-BsBVN-fX.js";import{m as r,g as I,br as w}from"./index-DsBgCU7r.js";import{u as T}from"./useSmeStepBreadcrumbs-eAyE9Kbh.js";import{S as B}from"./StepPageLayout-DdZUweau.js";import{a as i,H as c,v as b,T as s,o as O,V as h,i as z,F}from"./vendor-ui-DA_r9yXk.js";import{f as W}from"./fire-BtgY-J44.js";import{C as v}from"./Checkbox-DwOz6egu.js";import{g as N,S as _}from"./flowGuard-BNgCH5A1.js";import{S as u}from"./protections-CyJ9pxcP.js";import{S as M}from"./routes-alBnq1HL.js";import"./vendor-forms-BP-7CbAP.js";import"./stepBreadcrumbs-FCtSk5Kj.js";const L=()=>e.jsx(i,{borderLeft:"6px solid",borderColor:r.success[700],bg:r.white.DEFAULT,borderRadius:"lg",p:4,children:e.jsxs(c,{align:"flex-start",gap:2,children:[e.jsx(i,{flexShrink:0,bg:r.success[50],border:".5px solid",borderColor:r.success[200],borderRadius:"xl",p:2,display:"flex",alignItems:"center",justifyContent:"center",children:e.jsx(b,{as:E,boxSize:5,color:r.success[700]})}),e.jsxs(i,{children:[e.jsx(s,{fontWeight:"semibold",fontSize:"sm",color:r.text.label,mb:1,children:"Mandatory coverages"}),e.jsx(s,{fontSize:"xs",color:r.text.gray,lineHeight:"1.6",children:"Group Life Insurance is required by law for businesses with 3+ employees. Occupiers Liability is mandatory for premises with 2 or more floors. Our team will c
1onfirm applicability during the consultation."})]})]})}),H="/assets/group-Beol2nvW.png",G="/assets/indemnity-BblmLyPp.png",q="/assets/occupy-BC-KZmV4.png",A={"fire-special-perils":W,"group-life":H,"occupiers-liability":q,"professional-indemnity":G},D={"fire-special-perils":"#FEE2E2","group-life":"#DCFCE7","occupiers-liability":"#FEE2E2","professional-indemnity":"#E0E7FF"},V=({option:n,isSelected:o,onToggle:d})=>{const l=A[n.id];return e.jsx(i,{border:"1px solid",borderColor:o?r.orange[400]:r.border.primary,borderRadius:"xl",p:6,bg:o?r.orange[50]:"white",cursor:"pointer",transition:"all 0.15s",onClick:()=>d(n.id),_hover:{borderColor:o?r.orange[400]:r.orange[200]},children:e.jsxs(c,{gap:3,align:"flex-start",children:[e.jsx(i,{bg:D[n.id],borderRadius:"xl",p:3,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,children:l&&e.jsx(O,{src:l,w:"56px",h:"56px",objectFit:"contain"})}),e.jsxs(i,{flex:1,children:[e.jsx(c,{gap:2,mb:1,flexWrap:"wrap",children:e.jsx(s,{fontWeight:"semibold",fontSize:{base:"xl",md:"2xl"},color:o?r.orange[600]:r.text.label,children:n.label})}),e.jsx(s,{fontSize:"md",color:r.text.gray,lineHeight:"1.5",children:n.description})]}),e.jsx(i,{flexShrink:0,mt:.5,onClick:x=>x.stopPropagation(),borderRadius:"lg",children:e.jsx(v,{borderRadius:"lg",checked:o,colorPalette:"orange",onCheckedChange:()=>d(n.id)})})]})})},ne=()=>{const{items:n}=T(),o=C(),d=P(),{company:l,representative:x}=k(t=>t.sme),[a,f]=m.useState([u[0].id]),p=N(_.BusinessProtection,l,x,[],null);if(m.useEffect(()=>{p&&o(p,{replace:!0})},[p,o]),p||!x)return null;const j=t=>{f(g=>g.includes(t)?g.filter(S=>S!==t):[...g,t])},y=()=>{d(w(a)),o(`/${M.ReviewSubmit}`)};return e.jsx(B,{items:n,contentMaxW:"700px",children:e.jsx(i,{bg:"white",borderRadius:"2xl",background:`linear-gradient(145deg, white 55%, ${r.orange[50]} 100%)`,border:"1px solid",borderColor:r.border.secondary,p:{base:5,md:8},children:e.jsxs(h,{gap:5,align:"stretch",children:[e.jsxs(i,{children:[e.jsxs(z,{fontSize:{base:"3xl",md:"4xl"},fontWeight:"semibold",mb:5,children:[e.jsxs(s,{as:"span",color:r.orange[500],fontWeight:"bold",children:["Business"," "]}),e.jsx(s,{as:"span",color:r.text.label,fontWeight:"bold",children:"Protection"})]}),e.jsxs(s,{fontSize:"md",color:r.text.gray,mb:.5,children:["What else does"," ",e.jsx(s,{as:"span",fontWeight:"bold",color:r.orange[500],children:l?.name??"your company"})," ","need to protect?"]}),e.jsx(s,{fontSize:"sm",color:r.text.gray,children:"Select all that apply. You can choose more than one."})]}),e.jsx(h,{gap:3,align:"stretch",children:u.map(t=>e.jsx(V,{option:t,isSelected:a.includes(t.id),onToggle:j},t.id))}),a.length>0&&e.jsx(c,{justify:"flex-start",children:e.jsxs(c,{gap:1.5,bg:r.orange[50],border:"1px solid",borderColor:r.orange[200],borderRadius:"full",px:3,py:1.5,children:[e.jsx(b,{as:R,boxSize:3.5,color:r.orange[500]}),e.jsxs(s,{fontSize:"xs",fontWeight:"semibold",color:r.orange[600],children:[a.length," protection",a.length>1?"s":""," ","selected"]})]})}),e.jsx(L,{}),e.jsx(F,{justify:"flex-end",children:e.jsx(I,{buttonType:"primary",text:"Review Request",size:"lg",type:"button",disabled:a.length===0,onClick:y})})]})})})};export{ne 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.