(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8820],{64119:(e,a,t)=>{Promise.resolve().then(t.bind(t,36006))},36006:(e,a,t)=>{"use strict";t.r(a),t.d(a,{default:()=>o});var s=t(95155),r=t(92501),n=t(96499),l=t(6471),i=t(76046),c=t(12115),m=t(83391);function o(){let e=(0,i.useParams)(),a=(0,m.wA)(),{data:t,loading:o,error:d}=(0,m.d4)(e=>e.api.singlePlan),{planOrServices:u}=(0,m.d4)(e=>e.api),h=e.slug.split("-")[0],g=e.slug.split("-")[1];(0,c.useEffect)(()=>{if(h&&g){var e;let t=null==u?void 0:null===(e=u.data)||void 0===e?void 0:e.find(e=>e.id===Number(h));t&&a((0,l.aY)(t.id))}},[a,h,g,null==u?void 0:u.data]);let v=(0,c.useMemo)(()=>{var e;if(!(null==t?void 0:null===(e=t.plan_terms)||void 0===e?void 0:e[0])||!(null==t?void 0:t.rate_chart))return[];let a=t.plan_terms[0],s=t.rate_chart,r={label:"Option",values:["Plan-".concat(a.term1),"Plan-".concat(a.term2),"Plan-".concat(a.term3),"0"!==a.term4?"Plan-".concat(a.term4):null,"0"!==a.term5?"Plan-".concat(a.term5):null].filter(Boolean)};r.values.map(()=>"1,000");let n={label:"Age",values:r.values.map(()=>"Premium")};return[r,n,...s.map(e=>({label:e.age,values:[e.term1,e.term2,e.term3,e.term4,e.term5].filter(e=>null!==e)}))]},[t]);return o?(0,s.jsx)(r.R,{}):d?(0,s.jsxs)("div",{children:["Error: ",d]}):t?(0,s.jsxs)("div",{className:"container mx-auto px-4 py-16",children:[(0,s.jsx)("img",{className:"object-cover rounded-md mb-8",width:1920,height:1080,src:null==t?void 0:t.image,alt:"banner"}),(0,s.jsx)("h1",{className:"text-4xl font-bold mb-8",children:t.name}),(0,s.jsx)("div",{className:"prose max-w-none",dangerouslySetInnerHTML:{__html:t.description}}),v.length>0&&(0,s.jsx)(n.D,{data:v,title:t.rate_chart_caption})]}):null}},92501:(e,a,t)=>{"use strict";t.d(a,{R:()=>r});var s=t(95155);function r(){return(0,s.jsx)("div",{className:"flex items-center justify-center min-h-[700px]",children:(0,s.jsx)("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-gray-900"})})}},96499:(e,a,t)=>{"use strict";t.d(a,{D:()=>r});var s=t(95155);function r(e){let{data:a,title:t}=e;return(0,s.jsxs)("div",{className:"my-10",children:[(0,s.jsx)("h3",{className:"text-xl font-semibold text-primary mb-4",children:t}),(0,s.jsx)("div",{className:"overflow-x-auto",children:(0,s.jsx)("table",{className:"w-full md:w-[55%] border",children:(0,s.jsx)("tbody",{children:a.map((e,t)=>(0,s.jsxs)("tr",{className:"".concat(t%2==0?"bg-white":"bg-gray-100"," ").concat(t+1===a.length?"border-b-0":"border-b border-gray-200"),children:[(0,s.jsx)("td",{className:"p-4 font-medium",children:e.label}),e.values.map((a,t)=>(0,s.jsx)("td",{className:"p-4 text-center",children:"Age Limit"===e.label?(0,s.jsx)("span",{className:"text-primary",children:a}):"Coverage"===e.label?(0,s.jsx)("span",{className:"font-semibold",children:a}):a},t))]},t))})})})]})}},6471:(e,a,t)=>{"use strict";t.d(a,{Tu:()=>m,aY:()=>l,fR:()=>n,hr:()=>i,n1:()=>o,rR:()=>c});var s=t(37397),r=t(14474);let n=()=>async(e,a)=>{try{let{contentVersion:t,lastUpdated:n}=a().api,l=Date.now();if(e((0,r.sd)()),t&&n&&l-n<864e5){let{data:{version:e}}=await s.F.checkContentVersion();if(e===t)return}e((0,r.r1)(!0));let[i,c,{data:{version:m}},o,d,u,h,g,v,b,x,p,f,y]=await Promise.all([s.F.getHeroSection(),s.F.getFAQ(),s.F.checkContentVersion(),s.F.getStatistics(),s.F.getAboutUs(),s.F.getPlanOrServices(),s.F.getWhyChooseUs(),s.F.getInsuranceProcess(),s.F.getTestimonials(),s.F.getPartners(),s.F.getEvents(),s.F.getContactUs(),s.F.getBoardMembers(),s.F.getCompanySettings()]);e((0,r.ex)(i)),e((0,r.pM)(c)),e((0,r.MR)(o)),e((0,r.SO)(d)),e((0,r.zB)(u)),e((0,r._N)(h)),e((0,r.u$)(g)),e((0,r.Vf)(v)),e((0,r.k3)(b)),e((0,r.oU)(x)),e((0,r.BW)(p)),e((0,r.iY)(f)),e((0,r.jU)(y)),e((0,r.q8)(m))}catch(a){e((0,r.Nh)(a.message))}},l=e=>async a=>{try{a((0,r.g3)(!0));let t=await s.F.getSinglePlan(e);a((0,r.WA)(t.data))}catch(e){a((0,r.I_)(e.message))}},i=e=>async a=>{try{a((0,r.r1)(!0));let t=await s.F.getBoardMemberDetails(e);a((0,r.bA)(t.data)),a((0,r.r1)(!1))}catch(e){a((0,r.Nh)(e.message))}},c=()=>async e=>{try{e((0,r.vU)(!0));let a=await s.F.getManagementTeamMembers();e((0,r.Hd)(a.data))}catch(a){e((0,r.Pj)(a.message))}},m=e=>async a=>{try{a((0,r.No)(!0));let t=await s.F.getManagementTeamMemberDetails(e);a((0,r.lh)(t.data))}catch(e){a((0,r.Bx)(e.message))}},o=e=>async a=>{try{a((0,r.JL)(!0));let t=await s.F.getEventDetails(e);a((0,r.de)(t.data))}catch(e){a((0,r.VK)(e.message))}}},76046:(e,a,t)=>{"use strict";var s=t(66658);t.o(s,"useParams")&&t.d(a,{useParams:function(){return s.useParams}}),t.o(s,"usePathname")&&t.d(a,{usePathname:function(){return s.usePathname}}),t.o(s,"useRouter")&&t.d(a,{useRouter:function(){return s.useRouter}}),t.o(s,"useSearchParams")&&t.d(a,{useSearchParams:function(){return s.useSearchParams}})}},e=>{var a=a=>e(e.s=a);e.O(0,[3391,8405,4980,8441,1517,7358],()=>a(64119)),_N_E=e.O()}]);