"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9456],{89456:function(e,t,n){n.d(t,{Z:function(){return U}});var a,i,l=n(85893),o=n(67294),s=n(27361),r=n.n(s),c=n(87066),d=n(90512),u=n(52353),m=n.n(u),p=n(39332),h=n(9760),f=n(69545),g=n(80230),v=n(90337),x=n(24391),j=n(89088),y=n(19101),b=n(43940),N=n(36225);let _={"#f47b20":"primary","#00aec7":"secondary","#198754":"success","#0dcaf0":"info","#ffc107":"warning","#dc3545":"danger","#f8f9fa":"light","#212529":"dark","#fdf1e8":"tertiary","#0d6efd":"blue","#6610f2":"indigo","#6f42c1":"purple","#d63384":"pink","#fd7e14":"orange","#3d9305":"green","#20c997":"teal","#000000":"jet-black","#2b2b2b":"black","#ffffff":"white","#6c757d":"gray","#343a40":"gray-dark","#efefef":"gray-100","#b4b4b4":"gray-200","#e9ecef":"gray-300","#cccccc":"gray-400","#646464":"gray-500","#d3d3d3":"gray-600","#495057":"gray-700","#343a41":"gray-800","#212528":"gray-900","#efefed":"brown-100"};(a=i||(i={})).LEFT="left",a.RIGHT="right",a.CENTER="center";var w=n(74129),S=n(25307);let E=e=>(0,w.h)(e);var Z=n(11163),C=n(45948),k=()=>{let e=v.Z.get("site_session_data"),t=v.Z.get("quote_form");return(0,o.useEffect)(()=>{var n,a,i,l;let o=document.createElement("script");o.async=!0,o.src="/insuranceClicks.js";let s=(null==e?void 0:e.site_campaign_category)||"Default",r=C.go.find(e=>{var t;return null===(t=e.category)||void 0===t?void 0:t.includes(s)}),c=window.location.pathname.includes("options-term-ic"),d=c?C.OO.publisherId:(null==r?void 0:r.publisherId)||"1252",u=c?C.OO.token:(null==r?void 0:r.token)||"8d33e945aedce211f85280449b499387";window.cInsstate=(null==t?void 0:t.state)||"",window.cInszip=(null==t?void 0:t.zip)||"",window.cInsmaxads="5",window.cInspublisher_id=d,window.cInssub_id="",window.cInsinsurancetype="life",window.cToken=u;let m=null;if(t){let n="Term ".concat(t.duration," Years"),o=(t.insurance_type||["term"]).map(e=>"term"===e||"dk"===e?n:"perm"===e?"Whole Life":"fe"===e?"Final Expense":e);m=(null==o?void 0:o.length)?o.join(","):n,window.cInsextraData={age:t.age||"",coverage_type:m,coverage_amount:t.amount||"",currently_insured:t.insurance||"",gender:"f"===t.gender?"Female":"Male",bmi:t.bmi||"",tobacco:"n"===t.smoke?"No":"Yes",major_condition_alcohol_drug_abuse:(null===(a=t.conditions)||void 0===a?void 0:a.includes("al"))?"Yes":"No",major_condition_cancer:(null===(i=t.conditions)||void 0===i?void 0:i.includes("ca"))?"Yes":"No",major_condition_diabetes:(null===(l=t.conditions)||void 0===l?void 0:l.includes("di"))?"Yes":"No",height:t.height||"",weight:t.weight||"",high_risk:"n"===t.engage_sports?"No":"Yes",fname:t.fname||"",lname:t.lname||"",email:t.email||"",city:t.city||"",phone:t.phone||"",state:t.state||"",dob:t.dob||"",address:t.address||"",pub_id:(null==e?void 0:e.site_source_code)||"",sub_id:(null==e?void 0:e.site_session_id)||"",sub_id2:(null==e?void 0:e.site_first_page)||"",sub_id3:m,"tcpa.url":"life.selectquote.com"}}let p=null==t?void 0:null===(n=t.height)||void 0===n?void 0:n.split("'");return v.Z.set("site_session_data",{...e,life_coverage_type:m,life_height_total_inches:p?12*parseInt(p[0])+parseInt(p[1]):null}),document.head.appendChild(o),()=>{document.head.removeChild(o)}},[e,t]),(0,l.jsx)("div",{id:"iClickContainer",className:"insurance-clicks my-2 my-md-5"})},T=n(19692),q=n(21384),L=e=>{let{placementId:t="",formType:n="quote_form"}=e,[a,i]=(0,o.useState)(1),s=v.Z.get(n),r=v.Z.get("site_session_data"),c={...s,...r},d=(0,Z.useRouter)(),u=(0,o.useMemo)(()=>{if(c){var e,t,n,a,i;let l={zip:null==c?void 0:c.zip,birth_date:null==c?void 0:c.dob,coverage_amount:(null===(e=d.query)||void 0===e?void 0:e.coverage_amount)||(null==c?void 0:c.life_desired_amount)||(null==c?void 0:c.amount)};if((null==c?void 0:c.type_of_form)!=="SF"){if((null===(t=d.query)||void 0===t?void 0:t.height)||c.height){let e,t,n;if(null===(a=d.query)||void 0===a?void 0:a.height){let a=Number(d.query.height);if(isNaN(a)||(t=Math.floor(a/12),n=a%12,e=a,t<4||t>7))return;c.height="".concat(t,"'").concat(n,'"')}else{[t,n]=c.height.split("'");let a=Number(t),i=Number(n);if(isNaN(a)||isNaN(i))return;e=12*a+i}l={...l,height:e}}if((null===(n=d.query)||void 0===n?void 0:n.weight)||c.weight){let e=Number((null===(i=d.query)||void 0===i?void 0:i.weight)||c.weight);if(isNaN(e))return;l={...l,weight:e}}}return l}return{}},[c]),m=e=>{null!==e.target.closest(".mav-partner")&&(i(a+1),(0,T.sendGTMEvent)((0,q.KR)("clickAds",{adsCount:a})))};return(0,o.useEffect)(()=>(document.addEventListener("click",m),()=>{document.removeEventListener("click",m)})),(0,o.useEffect)(()=>{var e,a,i,l,o;s||d.push("quote_form"===n?"/quote-form":"/final-expenses/quote-form");let r=null!==(l=null==c?void 0:c.site_session_id)&&void 0!==l?l:"",m=null!==(o=null==c?void 0:c.site_source_code)&&void 0!==o?o:"",p=(null===(e=d.query)||void 0===e?void 0:e.clicks_acct_id)||(null==c?void 0:c.clicks_account_id)||"",h=document.createElement("script");(null===(a=d.query)||void 0===a?void 0:a.slug)==="more-options-term"||(null===(i=d.query)||void 0===i?void 0:i.slug)==="more-options-final-expense"?h.innerHTML="\n var MediaAlphaExchange = {\n data: ".concat(JSON.stringify(u).replace(/\\/g,""),',\n placement_id: "').concat(t,'",\n sub_1: "').concat(r,'",\n sub_2: "').concat(m,'",\n sub_3: "').concat(p,'",\n type: "ad_unit",\n version: 17,\n };\n\n MediaAlphaExchange__load(\'mediaalpha_placeholder\');\n '):h.innerHTML="\n var MediaAlphaExchange = {\n data: ".concat(JSON.stringify(u).replace(/\\/g,""),',\n placement_id: "').concat(t,'",\n sub_1: "').concat(r,'",\n sub_2: "').concat(m,'",\n type: "ad_unit",\n version: 17,\n };\n\n MediaAlphaExchange__load(\'mediaalpha_placeholder\');\n ');let f=document.createElement("script");f.type="text/javascript",f.src="//insurance.mediaalpha.com/js/serve.js",f.async=!1,document.head.appendChild(f),f.onload=function(){document.head.appendChild(h)}},[]),(0,l.jsx)("div",{id:"mediaalpha_placeholder",className:"w-100 my-2 my-md-5"})},A=n(48740),F=n(56333),I=n(45074),M=n(46066),z=n(53966),H=n(41664),P=n.n(H),R=n(73489),D=e=>{let{businessUnitId:t="5400958400006400057a03de"}=e;return(0,o.useEffect)(()=>{let e=document.createElement("script");e.type="text/javascript",e.src="//widget.trustpilot.com/bootstrap/v5/tp.widget.bootstrap.min.js",e.async=!1,document.head.appendChild(e),e.onload=function(){var e=document.getElementById("trustbox");window.Trustpilot.loadFromElement(e,!0)}},[]),(0,l.jsx)("div",{id:"trustbox",className:"trustpilot-widget w-100","data-locale":"en-US","data-template-id":"54ad5defc6454f065c28af8b","data-businessunit-id":t,"data-style-height":"240px","data-style-width":"100%","data-theme":"light","data-stars":"4,5","data-review-languages":"en",children:(0,l.jsx)(P(),{href:"https://www.trustpilot.com/review/selectquote.com?utm_medium=trustbox&utm_source=Slider",target:"_blank",rel:"noopener",children:"Trustpilot"})})};let O={defaultSection:function(e){let{data:t}=e,{setLoader:n,setPartnerImg:a}=(0,g.U)(),i=(0,p.useSearchParams)(),s=(0,p.useRouter)(),r=(0,p.usePathname)(),{width:u,backgroundColor:j,backgroundImage:y,mobileBackgroundImage:b,backgroundFit:N,backgroundImagePosition:_="right",backgroundImageClass:w,layoutDirection:S,maxColumn:E,alignment:Z,contents:C,className:k="",dynamicContentList:T}=t.fields,q="/compare-carrier-rates"===r,L=m()(y)||m()(b)?y||b:[{...y,deviceType:x.S.DESKTOP},{...b,deviceType:x.S.MOBILE}],A=v.Z.get("site_session_data"),F=null==A?void 0:A.site_source_code;(0,o.useEffect)(()=>{T&&(async()=>{try{if(T){if(T.filter(e=>"sCode"===e.fields.reference).length>0){let e=T.find(e=>e.fields.referenceValue===sessionStorage.getItem("site_source_code"));if(e){let{headline:t,ctaCopy:n,phoneNumber:a,heroImage:i,subheadline:l}=e.fields,o=document.querySelector(".coverage-review .richtext"),s=null==o?void 0:o.querySelector("h2"),r=document.querySelector(".btn"),c=null==o?void 0:o.querySelectorAll("p"),d=document.querySelector(".bg-container .imgBackground"),u=document.querySelector(".coverage-review-cta a");if(s&&(s.textContent=t),r){if(r.textContent=n,"Call Now"===n){let e=document.createElement("a");e.target="_self",e.classList.add("btn","btn-left","dynamic-btn-coverage-review"),e.href="tel:".concat(a),e.textContent=n,r.replaceWith(e)}else r.href="/quote-form"}if(u){if(u.textContent=n,"Call Now"===n){let e=document.createElement("a");e.target="_self",e.classList.add("btn","btn-left","dynamic-btn-coverage-review"),e.href="tel:".concat(a),e.textContent=n,u.replaceWith(e)}else u.href="/quote-form"}d&&(d.src=i.fields.file.url),null==c||c.forEach(e=>{var t;(null===(t=e.textContent)||void 0===t?void 0:t.trim())&&(e.textContent=l)})}}if(T.filter(e=>"utm_creative_format"===e.fields.reference).length>0){n(!0);let o="utm_creative_format",d=i.get(o);if(!d){d=q?"ban":"fa";let e="".concat(r,"?").concat(o,"=").concat(String(d).toLowerCase());s.replace(e)}let u=await c.Z.get("/api/getUtmCreativeFormat",{params:{utm_creative_format:d.replace(/[^a-z0-9-_]/g,"")}});if(u.data||(a(null),n(!1)),u.data){var e,t,l;let i=document.querySelector(".carrier-hero .richtext"),o=null==i?void 0:i.querySelector("h1"),s=document.querySelector(".icon-column-paragraph"),r=document.querySelectorAll(".icon-card-paragraph p");a(null==u?void 0:null===(e=u.data)||void 0===e?void 0:e.logo),o&&(o.textContent=(null===(t=o.textContent)||void 0===t?void 0:t.replace(/{carrier}/g,u.data.heroContent))||""),s&&(s.textContent=(null===(l=s.textContent)||void 0===l?void 0:l.replace(/{carrier}/g,u.data.whyContent))||""),r&&r.forEach(e=>{var t;e.innerHTML=e.innerHTML.replace("{carrier}",null!==(t=u.data.trustedContent)&&void 0!==t?t:"")}),n(!1)}}}}catch(e){console.error("Error fetching data:",e)}})()},[F,T,s,r,i]);let I=(()=>{switch(u){case"full":return"container-fluid";case"full-no-padding":return"container-fluid px-0";case"narrow":return"container container-narrow wp-feature-container";default:return"container"}})(),M=(null!=E?E:0)<(null==C?void 0:C.length),z=/(img-gradient-bg|img-no-gradient-bg)/.test(k),H=(0,d.Z)("w-100 p-0 m-0 z-n1",w,{"img-gradient-bg-handler":z,"img-no-gradient-bg-handler":!z}),P=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:(0,d.Z)(I,"d-flex gap-5 flex-column","align-items-".concat(null!=Z?Z:"center"),{"flex-wrap":M,"justify-content-center flex-lg-row":"horizontal"===S}),children:null==C?void 0:C.map((e,t)=>(0,l.jsx)(h.Z,{data:e,index:t},"sectionContent".concat(t)))}),z&&(0,l.jsx)("div",{className:"img-gradient-bg-handler",children:(0,l.jsx)("div",{className:"bg-container",children:(0,l.jsx)(f.Z,{className:"imgBackground",imageData:y,alt:"background"})})})]});return L&&!z?(0,l.jsx)(f.Z,{tag:"section",fit:N,className:(0,d.Z)("w-100 p-0 m-0 z-n1",H),imageData:L,style:{backgroundColor:j||"inherit",backgroundRepeat:"no-repeat",backgroundPosition:_,objectPosition:_,backgroundSize:z?"contain":"cover"},position:_,children:P}):(0,l.jsx)("section",{className:(0,d.Z)("default-section position-relative",k),style:{backgroundColor:j||"inherit",backgroundSize:z?"contain":"cover"},children:P})},faqSection:function(e){let{data:t}=e,{headerText:n,questions:a,background:i,ctaButton:o}=t.fields;return(0,l.jsx)("section",{className:"faqs",style:{background:i},children:(0,l.jsxs)("div",{className:"faqs-container container app-container d-flex flex-column align-items-center justify-content-center",children:[(0,l.jsxs)("div",{className:"accordion",children:[(0,l.jsx)("h2",{className:"text-center mb-5",children:n}),a.map((e,t)=>(0,l.jsxs)("div",{className:"card",children:[(0,l.jsx)("h6",{className:"card-header",children:(0,l.jsx)("button",{className:"accordion-button collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#accordion".concat(t),"aria-expanded":"true",children:e.fields.question})}),(0,l.jsx)("div",{id:"accordion".concat(t),className:"accordion-collapse collapse ",children:(0,l.jsx)("div",{className:"accordion-body",children:(0,j.N)(e.fields.answer)})})]},"question-".concat(t)))]}),(0,l.jsx)("div",{className:"mt-5",children:(0,l.jsx)(h.Z,{data:o})})]})})},heroSection:e=>{let{data:t}=e,n=(0,N.Z)(),{alignment:a,backgroundColor:o,backgroundImage:s,mobileBackgroundImage:r,backgroundImagePosition:c,className:u="",contents:m,imagePosition:p,layoutDirection:g,maxColumn:v,gradient:x=!0,gradientOverride:j=!1}=t.fields,w=Math.floor(12/v),{isMobile:S}=(0,b.i)(),E=S&&r?r:s,Z=p?p[0]:void 0,C=function(e){let t=_[e.toLowerCase()];return t?"bg-".concat(t):(console.error("Color ".concat(e," not found in color map")),"bg-white")}(o),k=o&&C?"to-".concat(C.replace("bg-","")):"",T=S?Z===i.LEFT?"top":"bottom":Z,q=(e,t)=>(0,l.jsx)("div",{className:(0,d.Z)("col-12",{["col-lg-".concat(w)]:12!==w,"mx-4":S},"d-flex justify-content-center z-1"),children:(0,l.jsx)(h.Z,{data:e})},"sectionContent".concat(t)),L=(e,t,n)=>(0,l.jsx)(f.Z,{fit:"cover",className:(0,d.Z)("w-100 h-100 p-0 m-0 z-n1",t),imageData:n,position:e}),A=()=>(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{className:(0,d.Z)("d-flex justify-content-center g-6 pb-0 px-0 mx-0 overflow-hidden",{["align-items-".concat(a)]:a,row:"horizontal"===g&&!j,"flex-column":"vertical"===g||j}),children:[Z===i.LEFT&&!j&&(0,l.jsxs)("div",{className:(0,d.Z)("col-12 m-0 p-0",k),children:[L(T,j?"gradient-overlay-image-".concat(Z):(0,d.Z)(k,"object-fit-fill position-absolute top-0"),E),x&&(0,l.jsx)("div",{className:(0,d.Z)("position-absolute w-100 h-100 p-0 mx-auto top-0 left-0",{["bg-gradient-to-bottom from-pos-0 via-pos-100 to-pos-100 ".concat(k)]:!j})})]}),m.map(q),Z!==i.LEFT&&!j&&(0,l.jsxs)("div",{className:(0,d.Z)("col-12 position-relative m-0 p-0"),children:[x&&(0,l.jsx)("div",{className:(0,d.Z)("position-absolute z-1 w-100 h-100 p-0 mx-auto top-0 left-0",{["bg-gradient-to-top from-pos-80 via-pos-95 to-pos-100 ".concat(k)]:!j})}),L(T,j?"gradient-overlay-image-".concat(Z):"",E)]})]})});return n?(0,l.jsx)("section",{className:(0,d.Z)(u,C,{"p-0":S&&Z!==i.LEFT,["gradient-overlay-image-".concat(Z)]:j},"container-fluid position-relative z-0 d-flex flex-row align-items-center justify-content-center px-0 mx-0"),style:{minHeight:"500px"},children:S?j?(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:(0,d.Z)("d-flex justify-content-center p-0 m-0 overflow-hidden h-100",{["align-items-".concat(a)]:a,row:"horizontal"===g&&!j,"flex-column":"vertical"===g||j,["gradient-overlay-image-".concat(Z)]:j}),children:(0,l.jsx)(f.Z,{tag:"div",fit:"cover",className:(0,d.Z)("h-100 vw-100 p-0 m-0 hero-section"),tagClassName:"w-100 h-100",childrenClassName:"gradient-overlay-image-".concat(Z),imageData:E,position:c,children:A()})})}):A():(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:(0,d.Z)("container-4xl d-flex position-absolute z-n1 left-0 w-100 h-100 m-0 p-0 aspect-auto overflow-hidden",{"top-0 justify-content-start":Z===i.LEFT,"bottom-0 justify-content-end align-items-end":Z!==i.LEFT,["gradient-overlay-image-".concat(Z)]:j}),children:L(Z,(0,d.Z)(k,"h-100",Z===i.CENTER?"w-100":"w-3/4 object-fit-cover"),E)}),x&&(0,l.jsx)("div",{className:(0,d.Z)("position-absolute z-n1 w-100 h-100 p-0 mx-auto bottom-0 left-0",k,{"bg-gradient-lg-to-right from-pos-30 via-pos-50 to-pos-100":Z===i.LEFT&&!j,"bg-gradient-lg-to-left from-pos-30 via-pos-50 to-pos-100":!S&&Z===i.RIGHT&&!j,["gradient-overlay-image-".concat(Z)]:j})}),(0,l.jsx)(y.Z,{className:(0,d.Z)("container-4xl position-relative justify-content-center g-6 g-lg-4 z-1",{["align-items-".concat(a)]:a,["flex-".concat("horizontal"===g?"row":"column")]:g}),children:m.map(q)})]})}):null},reviewsSection:function(e){let{data:t}=e,{reviews:n,styleOverrides:a}=t.fields;return(0,l.jsx)("section",{className:"px-3",style:(0,z.Z)("rvws",a).style,children:(0,l.jsx)("div",{className:"trustpilot-slider mt-0",children:(0,l.jsx)("div",{className:"row g-0 align-items-center justify-content-center",children:(0,l.jsxs)("div",{className:"col-12 col-lg-6 mx-auto text-center trust-container",children:[(0,l.jsx)("div",{className:"w-100 text-center trustpilot-image-container",children:(0,l.jsx)("img",{src:"/images/trustpilot.svg",alt:"Trust Pilot"})}),(0,l.jsx)("h3",{children:"What our customers say"}),(0,l.jsx)(M.Z,{arrows:!1,dots:!0,infinite:!0,autoplay:!0,speed:1e3,slidesToShow:1,slidesToScroll:1,children:n.map((e,t)=>(0,l.jsx)("div",{children:(0,l.jsx)("div",{className:"text-center",style:(0,z.Z)("rvwi",e.fields.styleOverrides).style,children:(0,l.jsxs)("p",{children:[(0,l.jsx)("span",{children:"“"}),e.fields.review,(0,l.jsx)("span",{children:"”"})]})})},"review".concat(t)))})]})})})})},servicesSection:function(e){let{data:t}=e,{backgroundColor:n="",headerText:a,description:i,items:o,cta:s,styleOverrides:r}=t.fields;return(0,l.jsx)("section",{className:"features d-flex flex-column align-items-center justify-content-center gap-4",style:{backgroundColor:n,...(0,z.Z)("svcs",r).style},children:(0,l.jsxs)("div",{className:"app-container",children:[(0,l.jsx)("h2",{children:a}),(0,l.jsx)("p",{className:"sub-title",children:i}),(0,l.jsx)("div",{className:"cards-list d-flex flex-wrap align-items-stretch justify-content-center gap-4",children:o.map((e,t)=>{var n,a;return(0,l.jsxs)(P(),{href:(null==e?void 0:null===(n=e.fields)||void 0===n?void 0:n.url)?null==e?void 0:null===(a=e.fields)||void 0===a?void 0:a.url:"",className:"feature-card d-flex flex-column align-items-center justify-content-lg-start justify-content-center gap-2 mx-auto mx-md-0",children:[(0,l.jsx)(h.Z,{data:e}),(0,l.jsx)("div",{className:"learn-more align-items-center justify-content-center",children:(0,l.jsxs)("div",{className:"learn-more-text",children:["Learn More",(0,l.jsx)("img",{src:"/images/arrow-up.svg",alt:"Up Arrow"})]})})]},"feature".concat(t))})}),s&&(0,l.jsx)("div",{className:"mt-5",children:(0,l.jsx)(h.Z,{data:s})})]})})},sliderSection:function(e){let{data:t}=e,{items:n,background:a,slidesToShow:i,enableInteractiveMode:s,topCopy:r,topBackground:c,topCopyColor:u}=t.fields,m=(0,p.usePathname)(),[f,g]=(0,o.useState)(!0),v=(0,o.useRef)(null),x="/compare-carrier-rates"===m||"/compare-rates"===m,y=()=>{let e=v.current;e&&(f?e.slickPause():e.slickPlay(),g(!f))},b="All"===i?n.length:parseInt(i,10);return(0,l.jsxs)("section",{className:"company h-100 align-items-center",style:{background:a},children:[r&&(0,l.jsxs)("div",{className:"top d-flex align-items-center justify-content-center",style:{backgroundColor:c,color:u},children:[(0,j.N)(r),!x&&(0,l.jsx)("div",{className:"arrow",style:{borderTopColor:c}})]}),(0,l.jsx)("div",{className:"bottom",style:{backgroundColor:a,...x&&{paddingTop:"unset"}},children:(0,l.jsx)("div",{className:"px-2 px-md-5",children:(0,l.jsx)(M.Z,{arrows:!1,dots:s,infinite:!0,speed:1e3,autoplay:!0,autoplaySpeed:5e3,slidesToShow:b,slidesToScroll:1,centerPadding:"30px",cssEase:"linear",pauseOnHover:!1,ref:v,appendDots:e=>(0,l.jsx)("div",{children:(0,l.jsxs)("ul",{className:"m-0 p-0",children:[" ",e,s&&(0,l.jsx)("div",{onClick:y,className:"d-inline interactive-button",children:f?(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("span",{className:"material-symbols-rounded",children:"stop"})}):(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("span",{className:"material-symbols-rounded",children:"play_arrow"})})})]})}),responsive:[{breakpoint:1200,settings:{slidesToShow:"All"===i?4:1,dots:!0,slidesToScroll:1}},{breakpoint:850,settings:{dots:!0,slidesToShow:"All"===i?3:1,slidesToScroll:"All"===i?3:1}},{breakpoint:650,settings:{dots:!0,slidesToShow:"All"===i?2:1,slidesToScroll:"All"===i?2:1}},{breakpoint:450,settings:{dots:!0,slidesToShow:1,slidesToScroll:1}}],className:"slider",children:n.map((e,t)=>(0,l.jsx)("div",{className:(0,d.Z)("slider-container","d-flex","align-items-center",{"all-center":s&&"All"!==i}),children:(0,l.jsx)(h.Z,{data:e})},"slide".concat(t)))})})})]})},mediaAlphaSection:function(e){let{data:t}=e,{topCopy:n,bottomCopy:a,backgroundColor:i,placementId:s,utmPlacementId:r,formType:c,className:u}=t.fields,[m,p]=(0,o.useState)(!0),[h,f]=(0,o.useState)(""),[g,x]=(0,o.useState)(!1),y=(0,Z.useRouter)(),b=(e,t)=>t[e]||F.P.DEFAULT_UTM_PLACEMENT_ID;return(0,o.useEffect)(()=>{setTimeout(function(){if(r){var e;let t=v.Z.get("site_session_data"),n=(null==t?void 0:t.utm_medium)||(null===(e=y.query)||void 0===e?void 0:e.utm_medium);if(n){let e=b(n,"quote_form"===c?I.iZ.TERM:I.iZ.FINAL_EXPENSE);e?f(e):y.push("/quote-form")}}r||f(s),A.MS.includes(window.location.pathname)&&x(!0),p(!1)},3e3)},[]),(0,l.jsx)("section",{className:(0,d.Z)("media-alpha-section px-3",u),style:{backgroundColor:i},children:m?(0,l.jsx)("div",{className:"d-flex align-items-center justify-content-center text-center loader-container",children:(0,l.jsx)("img",{src:"/images/Spin-1.1s-137px.svg",className:"img-fluid",alt:"loader gif"})}):(0,l.jsxs)("div",{className:"d-flex flex-column align-items-center text-center",children:[n&&(0,l.jsx)("div",{className:"copy",children:(0,j.N)(n)}),g?(0,l.jsx)(k,{}):(0,l.jsx)(L,{placementId:h,formType:c}),a&&(0,l.jsx)("div",{className:"copy",children:(0,j.N)(a)})]})})},trustpilotSection:function(e){let{data:t}=e,{headingText:n,backgroundColor:a,businessUnitId:i}=t.fields;return(0,l.jsx)("section",{className:"trustpilot-section px-3",style:{backgroundColor:a},children:(0,l.jsxs)("div",{className:"container app-container",children:[(0,l.jsx)("h2",{className:"mb-3",children:n}),(0,l.jsx)(D,{businessUnitId:i})]})})},shortFormSection:R.Z,iconColumn:e=>{let{data:t}=e,{backgroundColor:n,heading:a,paragraph:i,iconCards:o,greyBorder:s,className:r}=t.fields,c={backgroundColor:s?"#ffffff":n};return(0,l.jsx)("div",{style:c,children:(0,l.jsx)("section",{className:(0,d.Z)("section-icon-column container p-0",r),style:c,children:(0,l.jsxs)("div",{className:"".concat(s?"bordered-section":"no-bordered-section"),children:[(0,l.jsx)("div",{className:"icon-column-heading",children:E(a)}),(0,l.jsx)("div",{className:"icon-column-paragraph",children:E(i)}),(0,l.jsx)("div",{className:"d-flex justify-content-between p-0 images-container",children:o.map((e,t)=>(0,l.jsx)(S.Z,{data:e},t))})]})})})},templateParagraphAndHeading:function(e){let{data:t}=e,{content:n,backgroundColor:a,textAlign:i,alignItems:s,linkColor:r,fontColor:c}=t.fields,d=(0,o.useRef)(null);(0,o.useEffect)(()=>{let e=d.current;if(e){let t=e.parentElement;for(;t;){if(t.classList.contains("container")){t.classList.remove("container");break}t=t.parentElement}let n=["H1","H2","H3","H4","H5","H6"],a=!1;for(let t=0;te.getElementsByTagName("section").length>0,m=a?"#ffffff":"#646464";return(0,l.jsxs)("div",{className:"paragraph-and-heading",style:{backgroundColor:null!=a?a:"#ffffff",textAlign:i||"left",alignItems:s||"start"},ref:d,children:[(0,l.jsx)("style",{children:"\n .paragraph-and-heading, .paragraph-and-heading h1, .paragraph-and-heading h2, .paragraph-and-heading h3, \n .paragraph-and-heading h4, .paragraph-and-heading h5, .paragraph-and-heading h6, \n .paragraph-and-heading p, .paragraph-and-heading span {\n color: ".concat(null!=c?c:m," !important;\n }\n .paragraph-and-heading p a {\n color: ").concat(r||"inherit"," !important;\n }\n .paragraph-and-heading a {\n margin: auto 0;\n text-align: ").concat(i||"left"," !important;\n align-items: ").concat(s||"start"," !important;\n }\n ")}),(0,j.N)(n)]})}};function U(e){let{data:t}=e,n=r()(t,"sys.contentType.sys.id");if(n&&O[n]){let e=O[n];return(0,l.jsx)(e,{data:t})}return console.error("No Section found for content type: ".concat(n)),null}}}]);