"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[331],{4181:function(e,t,n){n.d(t,{Z:function(){return R}});var a=n(5893),s=n(7294),l=n(7361),i=n.n(l),o=n(1163),r=n(9732),c=n(9008),d=n.n(c),m=n(512),u=n(1977),h=n(4293),x=n.n(h);let f=(e,t)=>{switch(e){case"desktop":return"@media screen and (min-width: 1366px){".concat(t,"}");case"tablet":return"@media screen and (min-width: 768px){".concat(t,"}");default:return t}},p=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"~",a=!(arguments.length>3)||void 0===arguments[3]||arguments[3],s=[];return(null!=t?t:[]).forEach(t=>{var l;let i=[],o=t.fields.device.toLowerCase(),r="html>body>div#__next>main ".concat(e);(null!==(l=t.fields.targetElements)&&void 0!==l?l:[]).forEach(e=>{let a=e.toLowerCase(),s=[];x()(t.fields.fontSize)||s.push("font-size:".concat(t.fields.fontSize,";")),x()(t.fields.fontStyle)||s.push("font-style:".concat(t.fields.fontStyle,";")),x()(t.fields.fontWeight)||s.push("font-weight:".concat(t.fields.fontWeight,";")),x()(t.fields.color)||s.push("color:".concat(t.fields.color,";")),x()(t.fields.textAlign)||s.push("text-align:".concat(t.fields.textAlign,";")),x()(t.fields.margin)||s.push("margin:".concat(t.fields.margin,";")),x()(t.fields.padding)||s.push("padding:".concat(t.fields.padding,";")),"li"===a?(i.push("".concat(r).concat(n,"*>li{").concat(s.join(""),"}")),i.push("".concat(r).concat(n,"*>li>p{").concat(["font-size","font-style","font-weight","color","text-align"].map(e=>"".concat(e,":inherit")).join(";"),";}"))):i.push("".concat(r).concat(n).concat(a,"{").concat(s.join(""),"}"))}),a&&i.unshift("".concat(r,"{display:none;}")),s.push(f(o,i.join("")))}),s.join("")};var g=n(4450);function j(e){let{data:t}=e,{imageName:n,image:s,width:l,height:i,imageUrl:o,target:r}=t.fields,c=s.fields.title.toLowerCase().replaceAll(" ","-");return o&&""!==o?(0,a.jsx)("a",{href:o,target:"new tab"===r?"_blank":"_self",children:(0,a.jsx)("img",{src:"https:".concat(s.fields.file.url),alt:n,style:{width:l,height:i,maxWidth:"100%"},className:"".concat(c)})}):(0,a.jsx)("img",{src:"https:".concat(s.fields.file.url),alt:n,style:{width:l,height:i,maxWidth:"100%"},className:"".concat(c)})}var v=n(6109),b=n(7204),y=n.n(b),N=n(2353),w=n.n(N),k=n(1804),C=n.n(k),S=n(4555),F=n(1793),E=n(7198),L=n(2142),_=n(1609),Z=n.n(_);let A=e=>{let t=e.indexOf("?"),n=t>=0;return{url:e.substring(0,n?t:void 0),query:Object.fromEntries(new URLSearchParams(n?e.substring(t+1):""))}},q=e=>{let t=new URLSearchParams;return Object.keys(e).forEach(n=>{t.append(n,e[n])}),t.toString()};var T=e=>{var t;let n=A(e),{query:a}=A(window.location.href),s={...null!==(t=L.Z.get("site_session_data"))&&void 0!==t?t:{},...a},l=y()(Object.keys(s).filter(e=>e.startsWith("utm_")&&!!s[e]).map(e=>[e,s[e]])),i={...n.query,...l};return"".concat(n.url).concat(Z()(i)?"":"?".concat(q(i)))};let D=e=>{let{text:t}=e;return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"page-loader d-flex justify-content-center align-items-center",children:(0,a.jsxs)("div",{className:"loader-container text-center",children:[(0,a.jsx)("img",{src:"/images/SelectQuote_Horiz_Logo-Tagline-Color700-05-2020.png",className:"mb-4 img-fluid logo",alt:"loader imager"}),(0,a.jsx)("br",{}),(0,a.jsx)("img",{src:"/images/Ripple-1.8s-143px.svg",className:"my-5 img-fluid",alt:"loader gif"}),(0,a.jsx)("h5",{children:t})]})})})};var O=n(2080),z=n(5121),P=n(8929),H=n.n(P);let M=[],I=async()=>{try{if(!M.length){let{data:e}=await z.Z.get("/api/getFacilityAssignment");M.push(...e.map(e=>{let t=y()(Object.keys(e).map(t=>[H()(t.toLowerCase()),e[t]]));return t.key=C()(t.state),t}).filter(e=>"NA"!==e.facility.trim().toUpperCase()))}return M}catch(e){return console.error(e),[]}};function B(e){let{data:t,noButton:n=!1,onClose:l}=e,[i,o]=(0,s.useState)(),[r,c]=(0,s.useState)([]),d=(0,s.useMemo)(()=>{var e;return null!==(e=r.find(e=>e.key===i))&&void 0!==e?e:{}},[r,i]),m=(0,s.useMemo)(()=>{let e=r.find(e=>C()(e.state)===i);return{pdfLink:()=>{var n;let s=e?(null!==(n=t.fields.documents)&&void 0!==n?n:[]).find(t=>{var n;return(null!==(n=t.fields.title)&&void 0!==n?n:"").includes(e.pharmacyName)}):void 0;return s?(0,a.jsx)("a",{href:s.fields.file.url,download:s.fields.title,target:"_blank",children:s.fields.title}):(0,a.jsx)(a.Fragment,{})},phoneLink:()=>e?(0,a.jsx)("a",{href:"tel:".concat(e.phone),target:"_blank",children:e.phone}):(0,a.jsx)(a.Fragment,{}),selectState:()=>(0,a.jsx)("select",{value:i,onChange:e=>{o(e.target.value)},children:r.map(e=>(0,a.jsx)("option",{value:C()(e.state),children:e.state},e.state))})}},[t,r,i]);return(0,s.useEffect)(()=>{I().then(e=>{var t;o(null==e?void 0:null===(t=e[0])||void 0===t?void 0:t.key),c(e)})},[]),(0,a.jsxs)("div",{className:"modal-component-facility-assignment",children:[!n&&(0,a.jsx)("button",{className:"modal-component-close",onClick:l,children:(0,a.jsx)("img",{src:"/images/modal-close.svg"})}),!!t.fields.heading&&(0,a.jsx)("h2",{children:t.fields.heading}),!!t.fields.content&&(0,a.jsx)("div",{className:"modal-component-facility-assignment-content",children:(0,u.N)(t.fields.content,d,{},m)})]})}function R(e){let{data:t,inline:n=!1}=e,s=U[i()(t,"sys.contentType.sys.id")];return(0,a.jsx)(s,{data:t,inline:n})}let U={linkContent:function(e){let{data:t,inline:n=!1}=e,{linkText:l,altText:i,linkUrl:c,style:d,linkColor:m,position:u,target:h,showEnrollText:x,linkTextColor:f}=t.fields,p="new tab"===h?"_blank":"_self",g=i||"",j=(0,o.useRouter)().asPath,v=j.includes("schedule-appointment")||j.includes("care-appointment")||j.includes("time-for-medicare")||j.includes("agefriendly")||j.includes("retirementjobs"),b={filledNormal:{background:m,color:void 0===f?"#fff":f,borderColor:m,borderWidth:"2px"},filledHover:{background:"transparent",color:m},outlinedNormal:{background:"#fff",color:m,border:"2px solid ".concat(m),fontWeight:"400"},outlinedHover:{background:m,color:"#ffffff"===m?"#591C99":"#FFFFFF"},textWithArrow:{color:m},default:{color:m}},[y,N]=(0,s.useState)(!1);switch(d){case"filled":return(0,a.jsx)("a",{href:c,type:"button",className:"btn link-content btn-".concat(u," ").concat(x?"underlabel":""," ").concat(l===r.d.DEFAULT_PHONE||c==="tel:".concat(r.d.DEFAULT_PHONE)?"phone-button-link":""),target:p,title:g,onClick:e=>{if(v){let t=document.getElementById("scrollToForm");t&&(e.preventDefault(),t.scrollIntoView({behavior:"smooth"}))}},onMouseEnter:()=>{N(!0)},onMouseLeave:()=>{N(!1)},style:{...b.filledNormal,...y?b.filledHover:null},children:l});case"outlined":case"outlined plain":return(0,a.jsx)("a",{href:c,type:"button",className:"btn link-content btn-".concat(u," ").concat(x?"underlabel":""),target:p,title:g,onMouseEnter:()=>{N(!0)},onMouseLeave:()=>{N(!1)},style:{...b.outlinedNormal,..."outlined plain"!==d&&y?b.outlinedHover:null},children:l});case"text with arrow":return(0,a.jsxs)("a",{href:c,type:"button",className:"btn link-content btn-link btn-".concat(u," ").concat(x?"underlabel":""),target:p,title:g,style:{...b.textWithArrow},children:[l," ",(0,a.jsx)("span",{className:"material-symbols-rounded",children:"chevron_right"})]});default:return(0,a.jsx)("a",{href:c,type:"button",className:"link-content btn-link btn-".concat(u," ").concat(l===r.d.DEFAULT_PHONE?"scode-phone-number":""," ").concat(x?"underlabel":""," "),target:p,style:{...b.default,...n?{display:"inline"}:null},children:l})}},richtextContent:function(e){let{data:t}=e,{width:n,textColor:l,content:i,styleOverrides:o}=t.fields,[{dynamicTexts:r,dynamicZeroPremiumTexts:c}]=(0,g.l)(),h=t.sys.id,x="richtext-with-overrides-".concat(h),f=(0,s.useMemo)(()=>p(".".concat(x),o,">",!1),[x,o]);return(0,a.jsxs)("div",{style:{width:n,color:l},className:(0,m.Z)("richtext",!!f&&x),children:[!!f&&(0,a.jsx)(d(),{children:(0,a.jsx)("style",{type:"text/css",children:f},h)}),(0,u.N)(i,r,c)]})},imageContent:j,cardItemContent:function(e){let t,n,s,{data:l}=e,{contentName:i,itemCopy:o,image:r,imagePosition:c,gap:d,url:m,alignment:h,textAlignment:x,textColor:f,target:p,className:b,backgroundColor:y,styleOverrides:N}=l.fields,w=i.replaceAll(" ","-").toLocaleLowerCase(),[{dynamicTexts:k}]=(0,g.l)();switch(c){case"top":t="flex-column";break;case"right":t="flex-xl-row-reverse flex-column";break;case"bottom":t="flex-column-reverse";break;default:t="flex-lg-row flex-column"}switch(h){case"center":n="align-items-center";break;case"end":n="align-items-end";break;default:n="align-items-start"}switch(x){case"center":s="text-center";break;case"right":s="text-right";break;default:s="text-left"}return(0,a.jsx)(a.Fragment,{children:m?(0,a.jsxs)("a",{href:m,target:"new tab"===p?"_blank":"_self",className:"card-item ".concat(b," d-flex gap-").concat(d," ").concat(t," ").concat(n," ").concat(w),style:{backgroundColor:y,...(0,v.Z)("crdi",N).style},children:[r&&(0,a.jsx)(j,{data:r}),(0,a.jsx)("div",{className:"richtext w-100 ".concat(s),style:{color:f},children:(0,u.N)(o,k)})]}):(0,a.jsxs)("div",{className:"card-item ".concat(b," d-flex gap-").concat(d," ").concat(t," ").concat(n," ").concat(w),style:{backgroundColor:y,...(0,v.Z)("crdi",N).style},children:[(0,a.jsx)("div",{className:"card-image-container",children:r&&(0,a.jsx)(j,{data:r})}),(0,a.jsx)("div",{className:"richtext w-100 ".concat(s),style:{color:f},children:(0,u.N)(o,k)})]})})},inputContent:function(e){let{data:t}=e,{inputPlaceholder:n,buttonAltText:l,submitText:i,buttonColor:r,options:c=[]}=t.fields,{dynamicStates:d=[]}=t.fields,[m,u]=(0,s.useState)(""),[h,x]=(0,s.useState)(""),[f,p]=(0,s.useState)(""),[j,v]=(0,s.useState)(!1),[b,N]=(0,s.useState)(!1),[k,_]=(0,s.useState)(!1),Z=(0,o.useRouter)(),[,A]=(0,g.l)(),q={filledNormal:{background:r,color:"#FFFFFF",borderColor:r,borderWidth:"2px"},filledHover:{borderColor:r,background:"transparent",color:r}};(0,s.useEffect)(()=>{let e=async()=>{let e=L.Z.get("quote_form"),t=await (0,F.mA)(Z);if((null==e?void 0:e.zip)||(null==t?void 0:t.zip))u((null==e?void 0:e.zip)||(null==t?void 0:t.zip)),v(!1);else try{let t=await (0,F.Vn)();t&&(u(t),L.Z.set("quote_form",{...e,zip:t}),(0,E.OT)(t).then(e=>{let{numberOfPlans:t=null,numberOfCarriers:n=null}=e||{};t&&n&&A(e=>({...e,tpmoData:{numberOfPlans:t,numberOfCarriers:n}}))}))}catch(e){console.error(e),u("")}};p(window.location.href),e()},[Z,A]),(0,s.useEffect)(()=>{document.getElementById("zip-input").value=m,v(!1);let e=document.getElementById("submit-button");m&&5===m.length&&e.focus()},[m]),(0,s.useEffect)(()=>{if(!d.length)return;let e=y()(d.map(e=>{let t=e.indexOf(": ");return[t>=0?e.substring(0,t):e,t>=0?e.substring(t+2):""]})),t={zeroPremiumState:"Low or $0 monthly premium Medicare Advantage plans",lowercaseZeroPremiumState:"low or $0 monthly premium Medicare Advantage plans",h2ZeroPremiumState:"low or $0 monthly premium Medicare Advantage plans",deductibleZeroPremiumState:"low or $0 monthly plan premiums or $0 deductibles"},n=t=>{A(n=>({...n,dynamicTexts:{...n.dynamicTexts||{},...y()(Object.keys(e).map(n=>[n,w()(t)?e[n]:t]))}}))},a=e=>{A(n=>({...n,dynamicZeroPremiumTexts:{...n.dynamicZeroPremiumTexts||{},...y()(Object.keys(t).map(n=>[n,1===e?t[n]:"zeroPremiumState"===n?"Low monthly plan premiums":"low monthly plan premiums"]))}}))};5===m.length?((0,E.NP)(m).then(e=>{let{ZeroPremiumFlag:t}=e||{};e&&a(Number(t))}),(0,F.a9)(m).then(e=>{var t;let{states:a=[]}=e||{},s=null===(t=a[0])||void 0===t?void 0:t.state;s&&n(s)}),(0,E.OT)(m).then(e=>{let{numberOfPlans:t=null,numberOfCarriers:n=null}=e||{};t&&n&&A(e=>({...e,tpmoData:{numberOfPlans:t,numberOfCarriers:n}}))})):(n(),a(),A(e=>({...e,tpmoData:null})))},[d,A,m]),(0,s.useEffect)(()=>{let e=m&&5===m.length,t=j||!e;document.getElementById("submit-button").disabled=t},[m,j]);let D=async()=>{let e=L.Z.get("quote_form");if(m&&""!==m){v(!0);let a=await (0,F.a9)(m);if(a){var n;let{states:s}=a,l={...e,zip:(null==a?void 0:a.zipResponse)||m};1===s.length&&(l.state=s[0].abbreviation,l.stateFull=s[0].state,l.city=s[0].city,1===s[0].counties.length&&(l.county=s[0].counties[0]));let i=(null===(n=t.fields)||void 0===n?void 0:n.redirectTarget)?t.fields.redirectTarget.fields.slug:"quote-form";L.Z.set("quote_form",l),f.includes("/quotes")?Z.push("/quotes/quote-form"):Z.push(T("/".concat(i,"?zip=").concat(encodeURIComponent(m))))}a||(v(!1),x("Please provide a valid zipcode"))}else x("This field cannot be blank.")};return(0,a.jsxs)("form",{onSubmit:e=>{e.preventDefault(),D()},className:["input-content",...(null!=c?c:[]).map(e=>"option-".concat(C()(e)))].join(" ").trim(),children:[(0,a.jsxs)("label",{children:[(0,a.jsx)("input",{id:"zip-input",type:"text",placeholder:n,value:m,pattern:"[0-9]",inputMode:"numeric",maxLength:5,onChange:e=>{let t=e.target.value;if(!/^[0-9]+$/.test(t)&&""!==t){e.preventDefault();return}u(t)},disabled:j}),(0,a.jsx)("div",{className:"error-message",children:h}),(0,a.jsx)("button",{id:"submit-button",className:"btn btn-primary input-content-button",title:l,type:"submit",onClick:D,onMouseEnter:()=>{N(!0)},onMouseLeave:()=>{N(!1)},onMouseDown:()=>{_(!0)},onMouseUp:()=>{_(!1)},style:{...q.filledNormal,...b?q.filledHover:null,...k?q.filledHover:null},children:j?(0,a.jsx)(S.U,{}):(0,a.jsx)("span",{className:"",children:i})})]}),(0,a.jsx)("input",{type:"submit"})]})},divider:function(e){let{data:t}=e,{width:n,height:s,color:l,orientation:i}=t.fields;return(0,a.jsx)("div",{className:"divider ".concat(i),style:{background:l,width:n,height:s}})},bpqTableContent:function(e){let{data:t}=e,{contentName:n,contactNumber:l}=t.fields,[i,r]=(0,s.useState)(),[c,d]=(0,s.useState)(!0),m=(0,o.useRouter)();return(0,s.useEffect)(()=>{(async()=>{let e=L.Z.get("quote_form"),t=await (0,E.Rp)(e);t?(r(t),d(!1)):m.push("/quote-form/confirmation-bpq-error")})()},[]),(0,a.jsx)(a.Fragment,{children:c?(0,a.jsx)(D,{text:"Loading result, please wait."}):(0,a.jsxs)("div",{className:"bpq-table-content",children:[null==i?void 0:i.terms.map((e,t)=>(0,a.jsx)("div",{children:0===t?(0,a.jsxs)("div",{children:[(0,a.jsx)("table",{className:"bpq-table bpq-table-select",children:(0,a.jsx)("tbody",{children:(0,a.jsxs)("tr",{children:[(0,a.jsxs)("td",{children:[(0,a.jsx)("sup",{children:"1. "}),(0,a.jsxs)("span",{className:"term",children:[e," years "]}),(0,a.jsx)("br",{}),(0,a.jsxs)("span",{className:"amount",children:["$",parseInt(null==i?void 0:i.premium).toLocaleString()]})]}),(0,a.jsxs)("td",{children:[(0,a.jsx)("span",{className:"bpq-rate bpq-rate-select",children:(0,a.jsx)("img",{src:"/images/corner-star-triangle.png",width:"42",height:"82",alt:"",className:"star-icon"})}),(0,a.jsxs)("span",{className:"rate",children:["$",(null==i?void 0:i.amounts)&&i.amounts[e]&&i.amounts[e][0]&&parseFloat(i.amounts[e][0]["monthly-bank-draft"]).toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})]}),(0,a.jsx)("br",{}),(0,a.jsx)("span",{className:"payment",children:"/month"})]}),(0,a.jsx)("td",{className:"bpq-call-m blankcell",children:(null==i?void 0:i.amounts)&&i.amounts[e]&&i.amounts[e][1]?"":(0,a.jsxs)("div",{className:"tablephone",children:[(0,a.jsx)("span",{children:"Call to get started"}),(0,a.jsx)("br",{}),(0,a.jsxs)("span",{children:[(0,a.jsx)("img",{src:"/images/phone-icon-orange.png",className:"img-fluid",alt:"bpq phone"}),(0,a.jsx)("a",{href:"tel:".concat(l),children:l})]})]})})]})})}),(0,a.jsx)("table",{className:"bpq-table bpq-table-primary",children:(0,a.jsxs)("tbody",{children:[(null==i?void 0:i.amounts)&&i.amounts[e]&&i.amounts[e][1]?(0,a.jsxs)("tr",{className:"bpq-row-2",children:[(0,a.jsxs)("td",{children:[(0,a.jsx)("sup",{children:"2."}),(0,a.jsxs)("span",{className:"term",children:[e," years "]}),(0,a.jsx)("br",{}),(0,a.jsxs)("span",{className:"amount",children:["$",parseInt(null==i?void 0:i.premium).toLocaleString()]})]}),(0,a.jsxs)("td",{children:[(0,a.jsxs)("span",{className:"rate",children:["$",(null==i?void 0:i.amounts)&&i.amounts[e]&&i.amounts[e][1]&&parseFloat(i.amounts[e][1]["monthly-bank-draft"]).toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})]}),(0,a.jsx)("br",{}),(0,a.jsx)("span",{className:"payment",children:"/month"})]}),(0,a.jsx)("td",{className:"bpq-call-m",children:(0,a.jsxs)("div",{className:"tablephone",children:[(0,a.jsx)("span",{children:"Call to get started"}),(0,a.jsx)("br",{}),(0,a.jsxs)("span",{children:[(0,a.jsx)("img",{src:"/images/phone-icon-orange.png",className:"img-fluid",alt:"bpq phone"}),(0,a.jsx)("a",{href:"tel:".concat(l),children:l})]})]})})]}):"",(null==i?void 0:i.amounts)&&i.amounts[e]&&i.amounts[e][2]?(0,a.jsxs)("tr",{className:"bpq-row-3",children:[(0,a.jsxs)("td",{children:[(0,a.jsx)("sup",{children:"3."}),(0,a.jsxs)("span",{className:"term",children:[e," years "]}),(0,a.jsx)("br",{}),(0,a.jsxs)("span",{className:"amount",children:["$",parseInt(null==i?void 0:i.premium).toLocaleString()]})]}),(0,a.jsxs)("td",{children:[(0,a.jsxs)("span",{className:"rate",children:["$",(null==i?void 0:i.amounts)&&i.amounts[e]&&i.amounts[e][2]&&parseFloat(i.amounts[e][2]["monthly-bank-draft"]).toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})]}),(0,a.jsx)("br",{}),(0,a.jsx)("span",{className:"payment",children:"/month"})]}),(0,a.jsx)("td",{})]}):""]})})]}):""},t)),(0,a.jsxs)("div",{className:"bpq-arrow-container",children:[(0,a.jsx)("div",{className:"rates-border",children:(0,a.jsx)("p",{className:"rates-text",children:"Interested in comparing similar options? See rates below."})}),(0,a.jsx)("div",{className:"rates-down-arrow"})]}),null==i?void 0:i.terms.map((e,t)=>(0,a.jsx)("div",{children:t>0?(0,a.jsx)("table",{className:"bpq-table bpq-table-other mb-4",children:(0,a.jsxs)("tbody",{children:[(0,a.jsxs)("tr",{className:"bpq-row-1",children:[(0,a.jsxs)("td",{children:[(0,a.jsx)("sup",{children:"1."}),(0,a.jsxs)("span",{className:"term",children:[e," years "]}),(0,a.jsx)("br",{}),(0,a.jsxs)("span",{className:"amount",children:["$",parseInt(null==i?void 0:i.premium).toLocaleString()]})]}),(0,a.jsxs)("td",{children:[(0,a.jsxs)("span",{className:"rate",children:["$",(null==i?void 0:i.amounts)&&i.amounts[e]&&i.amounts[e][0]&&parseFloat(i.amounts[e][0]["monthly-bank-draft"]).toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})]}),(0,a.jsx)("br",{}),(0,a.jsx)("span",{className:"payment",children:"/month"})]}),(0,a.jsx)("td",{className:"bpq-call-m blankcell",children:(null==i?void 0:i.amounts)&&i.amounts[e]&&i.amounts[e][1]?"":(0,a.jsxs)("div",{className:"tablephone",children:[(0,a.jsx)("span",{children:"Call to get started"}),(0,a.jsx)("br",{}),(0,a.jsxs)("span",{children:[(0,a.jsx)("img",{src:"/images/phone-icon-orange.png",className:"img-fluid",alt:"bpq phone"}),(0,a.jsx)("a",{href:"tel:".concat(l),children:l})]})]})})]}),(null==i?void 0:i.amounts)&&i.amounts[e]&&i.amounts[e][1]?(0,a.jsxs)("tr",{className:"bpq-row-2",children:[(0,a.jsxs)("td",{children:[(0,a.jsx)("sup",{children:"2."}),(0,a.jsxs)("span",{className:"term",children:[e," years "]}),(0,a.jsx)("br",{}),(0,a.jsxs)("span",{className:"amount",children:["$",parseInt(null==i?void 0:i.premium).toLocaleString()]})]}),(0,a.jsxs)("td",{children:[(0,a.jsxs)("span",{className:"rate",children:["$",(null==i?void 0:i.amounts)&&i.amounts[e]&&i.amounts[e][1]&&parseFloat(i.amounts[e][1]["monthly-bank-draft"]).toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})]}),(0,a.jsx)("br",{}),(0,a.jsx)("span",{className:"payment",children:"/month"})]}),(0,a.jsx)("td",{className:"bpq-call-m",children:(0,a.jsxs)("div",{className:"tablephone",children:[(0,a.jsx)("span",{children:"Call to get started"}),(0,a.jsx)("br",{}),(0,a.jsxs)("span",{children:[(0,a.jsx)("img",{src:"/images/phone-icon-orange.png",className:"img-fluid",alt:"bpq phone"}),(0,a.jsx)("a",{href:"tel:".concat(l),children:l})]})]})})]}):"",(null==i?void 0:i.amounts)&&i.amounts[e]&&i.amounts[e][2]&&i.amounts[e][2]["monthly-bank-draft"]?(0,a.jsxs)("tr",{className:"bpq-row-3",children:[(0,a.jsxs)("td",{children:[(0,a.jsx)("sup",{children:"3."}),(0,a.jsxs)("span",{className:"term",children:[e," years "]}),(0,a.jsx)("br",{}),(0,a.jsxs)("span",{className:"amount",children:["$",parseInt(null==i?void 0:i.premium).toLocaleString()]})]}),(0,a.jsxs)("td",{children:[(0,a.jsxs)("span",{className:"rate",children:["$",(null==i?void 0:i.amounts)&&i.amounts[e]&&i.amounts[e][2]&&parseFloat(i.amounts[e][2]["monthly-bank-draft"]).toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})]}),(0,a.jsx)("br",{}),(0,a.jsx)("span",{className:"payment",children:"/month"})]}),(0,a.jsx)("td",{})]}):""]})}):""},t))]})})},videoEmbed:function(e){let{data:t}=e,{embedUrl:n,alignment:s,height:l,width:i}=t.fields,o=/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/.exec(n),r=o&&11===o[7].length?o[7]:null;return r?(0,a.jsx)("div",{className:"video-container ".concat("Center"===s?"justify-content-center":"Left"===s?"justify-content-start":"Right"===s?"justify-content-end":""),children:(0,a.jsx)("iframe",{className:"video",title:"https://youtube.com/embed/".concat(r),src:"https://youtube.com/embed/".concat(r),width:i,height:l,allow:"accelerometer; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}):(0,a.jsx)(a.Fragment,{})},pageSpecificBusinessHour:function(e){let{data:t}=e,{startDay:n,startHour:l,endDay:i,endHour:o,timezone:r}=t.fields;return(0,s.useEffect)(()=>{let e="".concat(n,"-").concat(i," | ").concat(l,"-").concat(o," | ").concat(r);sessionStorage.setItem("businessHours",JSON.stringify(e))},[n,i,l,o,r]),(0,a.jsxs)("div",{className:"businessHours d-inline",children:[(0,a.jsxs)("span",{className:"day-range",children:[(0,a.jsx)("span",{className:"startDay",children:n}),"-",(0,a.jsxs)("span",{className:"endDay",children:[i," "]})]}),(0,a.jsxs)("span",{className:"time-range",children:[(0,a.jsx)("span",{className:"startDay",children:l}),"-",(0,a.jsxs)("span",{className:"endDay",children:[o," "]})]}),(0,a.jsx)("span",{className:"timeZone",children:r})]})},styleOverride:e=>{let{data:t}=e,{css:n,className:l}=(0,s.useMemo)(()=>{let e="style-override-".concat(t.sys.id);return{css:p("br.".concat(e),[t],"~"),className:e}},[t]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d(),{children:(0,a.jsx)("style",{type:"text/css",children:n},t.sys.id)}),(0,a.jsx)("br",{className:l})]})},modalComponent:function(e){let{data:t}=e,[n,l]=(0,s.useState)(!1),i=!t.fields.buttonCaption,o=()=>"Facility Assignment"===t.fields.component?(0,a.jsx)(B,{data:t,noButton:i,onClose:r}):(0,a.jsx)(a.Fragment,{}),r=()=>{l(!1)};return i?o():(0,a.jsxs)("div",{children:[(0,a.jsx)(O.Z,{show:n,onHide:r,centered:!0,keyboard:!1,className:"modal-component",size:"lg",children:(0,a.jsx)(O.Z.Body,{children:o()})}),(0,a.jsx)("button",{className:"modal-component-button",type:"button",onClick:()=>l(!0),children:t.fields.buttonCaption})]})}}},4450:function(e,t,n){n.d(t,{l:function(){return d}});var a=n(5893),s=n(7294),l=n(308),i=n.n(l),o=n(2142);let r={dynamicTexts:{},dynamicZeroPremiumTexts:{},tpmoData:null},c=(0,s.createContext)([r,i()]),d=()=>(0,s.useContext)(c);t.Z=e=>{let{children:t,value:n=r}=e,[l,i]=(0,s.useState)(n),d=(0,s.useMemo)(()=>[l,i],[l]);return(0,s.useEffect)(()=>{var e;let t=null!==(e=o.Z.get("quote_form"))&&void 0!==e?e:{};i(e=>{var n;return{...e,dynamicTexts:{...null!==(n=e.dynamicTexts)&&void 0!==n?n:{},...t}}})},[]),(0,a.jsx)(c.Provider,{value:d,children:t})}},8331:function(e,t,n){n.d(t,{Z:function(){return j}});var a=n(5893),s=n(7294),l=n(9008),i=n.n(l);function o(e){var t,n,s;let{seo:l,pageUrl:o,pageName:r}=e,c=window.location.origin,{shareCardImage:d,canonicalUrl:m,description:u,keywords:h,index:x,follow:f}=null!==(s=null==l?void 0:l.fields)&&void 0!==s?s:{},p=[{name:"title",content:r},{name:"description",content:null!=u?u:""},{property:"og:title",content:r},{property:"og:description",content:null!=u?u:""},{property:"og:image",content:d?"https:".concat(null==l?void 0:null===(n=l.fields)||void 0===n?void 0:null===(t=n.shareCardImage)||void 0===t?void 0:t.fields.image.fields.file.url):""},{property:"og:url",content:"https://selectquoteventures.com/".concat(o)},{name:"twitter:title",content:r},{name:"twitter:description",content:null!=u?u:""}];h&&p.push({name:"keywords",content:h});let g=m?(0,a.jsx)("link",{rel:"canonical",href:"".concat(c).concat(m)}):(0,a.jsx)(a.Fragment,{});return(0,a.jsxs)(i(),{children:[(0,a.jsx)("link",{rel:"icon",href:"/favicon.ico"}),(0,a.jsx)("title",{children:r}),p.map((e,t)=>{if(null==e?void 0:e.content)return(0,a.jsx)("meta",{...e},t)}),(0,a.jsx)("meta",{property:"og:locale",content:"en_US"}),(0,a.jsx)("meta",{property:"og:type",content:"website"}),(0,a.jsx)("meta",{property:"og:site_name",content:"SelectQuote Ventures"}),(0,a.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,a.jsx)("meta",{name:"twitter:label1",content:"Est. reading time"}),(0,a.jsx)("meta",{name:"twitter:data1",content:"9 minutes"}),g,x||f?!x&&f?(0,a.jsx)("meta",{name:"robots",content:"noindex"}):!f&&x?(0,a.jsx)("meta",{name:"robots",content:"nofollow"}):(0,a.jsx)(a.Fragment,{}):(0,a.jsx)("meta",{name:"robots",content:"noindex, nofollow"})]})}var r=n(1163),c=n(4181);function d(e){let{href:t,exact:n=!1,className:s="",...l}=e,{asPath:i}=(0,r.useRouter)();return(n?i===t:i.startsWith(t))&&(s+=" active"),(0,a.jsx)("a",{href:t,className:s,...l,children:l.children})}var m=n(1977),u=n(2142),h=n(9732);function x(e){var t,n,l,i,o,x,f,p,g;let{data:j,displayProgress:v=!1,progress:b=0}=e,{bannerText:y,bannerBg:N,logo:w,cta:k,layout:C,menu:S=[],bannerMenu:F=[]}=j.fields,[E,L]=(0,s.useState)(0),[_,Z]=(0,s.useState)(!1),[A,q]=(0,s.useState)(!1),[T,D]=(0,s.useState)(h.d.DEFAULT_PHONE),O=u.Z.get("site_session_data"),z=(e,t,n)=>{let{linkText:s,linkUrl:l,childLinks:i}=e.fields,{asPath:o}=(0,r.useRouter)();return i?(0,a.jsxs)("div",{className:"dropdown "+(n?"main-drop position-relative":""),children:[n?"/"===l?(0,a.jsx)("div",{className:"dropdown-toggle nav-link",children:s}):(0,a.jsx)(d,{href:l,exact:!0,className:"dropdown-toggle nav-link",children:s}):(0,a.jsx)(d,{href:l,exact:!0,className:"nav-link w-100 nav-child-carret",children:s}),(0,a.jsx)("ul",{className:"dropdown-menu "+(i.length>7?"two-column":""),children:i.map((e,n)=>(0,a.jsx)("li",{className:"child-link"+(l===o?"active":""),children:z(e,"".concat(t).concat(n),!1)},"childNav".concat(t).concat(n)))})]},"navLink".concat(t)):(0,a.jsx)(d,{href:l,exact:!0,className:"nav-link w-100 single",children:s},"navLink".concat(t))},P=(e,t,n)=>{let{linkText:s,linkUrl:l,childLinks:i}=e.fields;return i?(0,a.jsx)("li",{className:"d-flex flex-column",children:(0,a.jsx)("div",{className:"accordion accordion-flush",id:"mAccordionContainer".concat(t),children:(0,a.jsxs)("div",{className:"accordion-item",children:[(0,a.jsx)("div",{className:"accordion-header d-flex align-items-center justify-content-between",id:"mAccordionHeading".concat(t),children:n&&"/"===l?(0,a.jsx)("button",{className:"accordion-button collapsed flush w-100",type:"button","data-bs-toggle":"collapse","data-bs-target":"#mAccordionContent".concat(t),"aria-expanded":"false","aria-controls":"mAccordionContent".concat(t),children:s}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d,{href:l,exact:!0,className:"w-100",children:s}),(0,a.jsx)("button",{className:"accordion-button collapsed flush icon",type:"button","data-bs-toggle":"collapse","data-bs-target":"#mAccordionContent".concat(t),"aria-expanded":"false","aria-controls":"mAccordionContent".concat(t)})]})}),(0,a.jsx)("div",{id:"mAccordionContent".concat(t),className:"accordion-collapse collapse","aria-labelledby":"mAccordionHeading".concat(t),"data-bs-parent":"#mAccordionContainer".concat(t),children:(0,a.jsx)("div",{className:"accordion-body d-flex flex-column sub-child",children:(0,a.jsx)("ul",{className:"",children:i.map((e,n)=>P(e,"".concat(n).concat(t,"child"),!1))})})})]})})},t):(0,a.jsx)("li",{className:"d-flex flex-column",children:(0,a.jsx)(d,{href:l,exact:!0,className:"mobile-nav-link w-100",children:s})},t)},H=()=>{Z(!_),q(!1)};return(0,s.useEffect)(()=>{L(window.innerWidth);let e=()=>{L(window.innerWidth)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),(0,s.useEffect)(()=>{(null==O?void 0:O.site_campaign_phone)&&D(O.site_campaign_phone)},[null==O?void 0:O.site_campaign_phone]),(0,a.jsxs)("header",{className:"".concat("logo phone cta"===C?"logo-phone-cta":""," ").concat((null===(t=j.fields)||void 0===t?void 0:t.announcement)?"border-bottom-0":""," "),children:["logo phone cta"!==C&&"simplified"!==C&&"full"!==C&&(0,a.jsx)("div",{className:"banner d-flex flex-md-row flex-column align-items-center justify-content-center gap-1",style:{backgroundColor:N},children:(0,a.jsx)("div",{className:"text-container d-flex flex-column flex-lg-row align-items-center py-2 py-lg-0",children:(0,m.N)(y)})}),"logo phone cta"===C&&(0,a.jsxs)("div",{className:"navigation-bar logo-phone-cta container wp-container d-flex flex-lg-row flex-column align-items-center justify-content-between gap-2 gap-lg-4 ".concat(k?"":"custom-none-cta-spacing"),children:[(0,a.jsx)(c.Z,{data:w}),E>0&&E>991&&(0,a.jsx)("div",{className:"banner-phone ".concat(k?"":"border-end-0 border-start-0 padding-right-15"),children:(0,m.N)(y)}),k&&(0,a.jsxs)("div",{className:"d-flex flex-row position-relative text-center justify-content-center mobile-cta-container position-relative",children:[(0,a.jsxs)("div",{className:"d-flex text-center flex-column mt-1 mt-lg-0",children:[(0,a.jsx)(c.Z,{data:k}),(0,a.jsx)("span",{className:"d-block d-lg-none",children:"No obligation to enroll "})]}),(0,a.jsx)("div",{className:"mobile-phone-container d-block d-lg-none",children:(0,a.jsxs)("a",{href:"tel:".concat(T),children:[(0,a.jsx)("img",{src:"/images/phone-icon-white.svg",alt:"white-phone",className:"phone-icon-orange"}),(0,a.jsx)("p",{className:"text-uppercase",children:"Call"})]})})]})]}),"banner and logo"===C&&(0,a.jsx)("div",{className:"navigation-bar container wp-container d-flex align-items-center justify-content-center",children:(0,a.jsx)(c.Z,{data:w})}),"full"===C&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{style:{backgroundColor:N},children:(0,a.jsxs)("div",{className:"navigation-bar container wp-container d-flex align-items-center ".concat(k?"justify-content-between":"justify-content-between gap-5"),style:{backgroundColor:N},children:[(0,a.jsx)(c.Z,{data:w}),(0,a.jsx)("nav",{className:"fullNav-lg-flex flex-lg-row flex-row-reverse gap-4 ms-3",children:S.map((e,t)=>z(e,t,!0))}),(0,a.jsx)("div",{className:"mobile-nav-utilities fullNav-mobile-block align-items-center",children:(0,a.jsx)("div",{className:"burger-logo ".concat(_?"open":""),onClick:()=>H(),children:(0,a.jsx)("div",{})})})]})}),E>0&&E<=1067&&(0,a.jsxs)("div",{className:"mobile-menu "+(_?"show":""),children:[(0,a.jsx)("ul",{className:"mobile-nav-lists",children:S.map((e,t)=>P(e,t,!0))}),(0,a.jsx)("div",{className:"d-flex flex-row align-items-center justify-content-center my-5",children:k&&(0,a.jsx)(c.Z,{data:k})})]})]}),"simplified"===C&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"banner-simplified container d-flex flex-lg-row flex-column align-items-center justify-content-between gap-1",style:{backgroundColor:N},children:[(0,a.jsx)("div",{className:"logo-container",children:(0,a.jsx)(c.Z,{data:w})}),(0,a.jsx)("div",{className:"text-container d-none d-lg-flex flex-row align-items-center",children:(0,m.N)(y)})]}),(0,a.jsxs)("div",{className:"d-lg-none d-flex simplified-mobile justify-content-center align-items-center",children:[(0,a.jsx)("img",{src:"/images/FramePhone-White.png",alt:""}),(0,a.jsx)("a",{target:"_self",className:"scode-phone-number",href:"tel:1-855-2413666",children:(0,a.jsx)("b",{children:"1-855-241-3666"})})]})]}),(null===(n=j.fields)||void 0===n?void 0:n.announcement)&&(0,a.jsx)("div",{className:"announcement d-flex justify-content-center p-3",style:{color:null!==(p=null===(l=j.fields)||void 0===l?void 0:l.announcementColor)&&void 0!==p?p:"inherit",backgroundColor:null!==(g=null===(i=j.fields)||void 0===i?void 0:i.announcementBackground)&&void 0!==g?g:"#FFFFFF"},children:(0,a.jsx)("div",{className:"d-inline flex-column align-items-center text-lg-".concat((null===(o=j.fields)||void 0===o?void 0:o.announcementAlignment)||"center"," text-").concat((null===(x=j.fields)||void 0===x?void 0:x.mobileAlignment)||"center"),children:(0,m.N)(null===(f=j.fields)||void 0===f?void 0:f.announcement)})}),v&&(0,a.jsx)("div",{className:"progress-bar",children:(0,a.jsx)("div",{className:"progress-bar-filled",style:{width:"".concat(b,"%")}})})]})}var f=n(7198),p=n(4450);function g(e){let{data:t}=e,{logo:n,socialMedia:l,footerColumns:i,bottomLeftLinks:o,bottomCenterLinks:d,bottomRightLinks:h,copyRightText:x,footerDisclaimer:g,footerTpmo:j,footerBannerCopy:v,footerBannerBg:b,className:y}=t.fields,[{tpmoData:N},w]=(0,p.l)(),k=u.Z.get("quote_form"),C=(0,r.useRouter)();return(0,s.useEffect)(()=>{((null==k?void 0:k.zip)||C.query.zip)&&(0,f.OT)(null==k?void 0:k.zip).then(e=>{let{numberOfPlans:t=null,numberOfCarriers:n=null}=e||{};t&&n&&w(e=>({...e,tpmoData:{numberOfPlans:t,numberOfCarriers:n}}))})},[null==k?void 0:k.zip,C.query.zip]),(0,s.useEffect)(()=>{if(N&&j){let e=document.querySelector(".footer-bottom");e&&(e.innerHTML=e.innerHTML.replace(/{numberOfCarriers}/g,String(null==N?void 0:N.numberOfCarriers)),e.innerHTML=e.innerHTML.replace(/{numberOfPlans}/g,String(null==N?void 0:N.numberOfPlans)))}},[N]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("footer",{className:y,children:[(0,a.jsxs)("div",{className:"container app-container d-flex flex-md-row flex-column align-items-center justify-content-between gap-4",children:[o&&(0,a.jsx)("div",{className:"footer-sublinks mb-3 flex-wrap d-flex flex-row align-items-center justify-content-start w-100",children:null==o?void 0:o.map((e,t)=>(0,a.jsxs)(s.Fragment,{children:[0!==t&&(0,a.jsx)("div",{className:"footer-divider"}),(0,a.jsx)(c.Z,{data:e})]},"bottomLinkLeft".concat(t)))}),d&&(0,a.jsx)("div",{className:"footer-sublinks flex-wrap d-flex flex-row align-items-center justify-content-center gap-2",children:null==d?void 0:d.map((e,t)=>(0,a.jsxs)(s.Fragment,{children:[0!==t&&(0,a.jsx)("div",{className:"footer-divider"}),(0,a.jsx)(c.Z,{data:e})]},"bottomLinkCenter".concat(t)))}),h&&(0,a.jsx)("div",{className:"d-flex flex-row align-items-center justify-content-center gap-2",children:null==h?void 0:h.map((e,t)=>(0,a.jsx)(c.Z,{data:e},"bottomLinkRight".concat(t)))})]}),(0,a.jsxs)("div",{className:"container app-container d-flex flex-column align-items-center justify-content-center gap-4",children:[(i||l)&&(0,a.jsxs)("div",{className:"container d-flex flex-md-row flex-column align-items-center align-items-md-start justify-content-start p-0",children:[(0,a.jsxs)("div",{className:"d-flex flex-column gap-4",children:[n&&(0,a.jsx)(c.Z,{data:n}),i&&l&&(0,a.jsx)("div",{className:"d-flex flex-row justify-content-center justify-content-md-start gap-2",children:l.map((e,t)=>(0,a.jsx)(c.Z,{data:e},"socialMedia".concat(t)))})]}),(0,a.jsxs)("div",{className:"footer-links d-flex flex-column flex-sm-row gap-4",children:[i&&i.map((e,t)=>(0,a.jsx)("div",{className:"d-flex flex-column gap-2",children:(0,a.jsx)(c.Z,{data:e})},"footerColumn".concat(t))),!i&&l&&(0,a.jsx)("div",{className:"d-flex flex-row justify-content-center justify-content-md-start gap-2",children:l.map((e,t)=>(0,a.jsx)(c.Z,{data:e},"socialMedia".concat(t)))})]})]}),(0,a.jsxs)("div",{id:"dynamic-footer",className:"container footer-bottom",children:[(0,a.jsx)("p",{children:x}),N&&j?(0,m.N)(j):g&&(0,m.N)(g)]})]})]}),v&&(0,a.jsx)("div",{className:"footer-banner w-100 d-flex align-items-center justify-content-center gap-3 btn-hover-white",style:{backgroundColor:b},children:(0,m.N)(v)})]})}function j(e){let{page:t,pageUrl:n,children:s,className:l="",displayProgress:i=!1,progress:r=0}=e,{pageName:c,seo:d,header:m,footer:u}=t.fields;return(0,a.jsxs)(p.Z,{children:[(0,a.jsx)(o,{seo:d,pageUrl:n,pageName:c}),(0,a.jsx)(x,{data:m,displayProgress:i,progress:r}),(0,a.jsx)("main",{className:l,children:s}),u&&(0,a.jsx)(g,{data:u})]})}},4555:function(e,t,n){n.d(t,{U:function(){return l}});var a=n(5893);n(7294);var s=n(1505);let l=()=>(0,a.jsx)(s.iT,{height:20,width:20,color:"#fff",wrapperStyle:{},wrapperClass:"p-0",visible:!0,ariaLabel:"oval-loading",secondaryColor:"#fff",strokeWidth:2,strokeWidthSecondary:2})},6109:function(e,t,n){var a=n(4293),s=n.n(a);t.Z=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n={};return t.forEach(t=>{let a="".concat(e,"-").concat(t.fields.device.toLowerCase());s()(t.fields.fontSize)||(n["--".concat(a,"-font-size")]=t.fields.fontSize),s()(t.fields.fontStyle)||(n["--".concat(a,"-font-style")]=t.fields.fontStyle),s()(t.fields.fontWeight)||(n["--".concat(a,"-font-weight")]=t.fields.fontWeight),s()(t.fields.color)||(n["--".concat(a,"-color")]=t.fields.color),s()(t.fields.textAlign)||(n["--".concat(a,"-text-align")]=t.fields.textAlign)}),{style:n}}},1977:function(e,t,n){n.d(t,{N:function(){return m}});var a=n(5893),s=n(7294),l=n(3560),i=n.n(l),o=n(4129),r=n(6437),c=n(4181),d=n(9732);let m=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},m=Object.keys(t),u=Object.keys(n),h=Object.keys(l),x={renderNode:{[r.BLOCKS.PARAGRAPH]:(e,t)=>{var n,s,l,i;return e.content.filter(e=>{var t,n,a,s,l;return"embedded-entry-inline"===e.nodeType&&(null===(l=e.data)||void 0===l?void 0:null===(s=l.target)||void 0===s?void 0:null===(a=s.sys)||void 0===a?void 0:null===(n=a.contentType)||void 0===n?void 0:null===(t=n.sys)||void 0===t?void 0:t.id)==="styleOverride"||"text"===e.nodeType&&""===e.value}).length===e.content.length?t:e.content.filter(e=>"embedded-entry-inline"===e.nodeType).find(e=>["inputContent","richtextContent","cardItemContent","bpqTableContent","videoEmbed","pageSpecificBusinessHour"].includes(e.data.target.sys.contentType.sys.id))?t:1===t.length&&"paragraph"===e.nodeType&&(null===(s=e.content)||void 0===s?void 0:null===(n=s[0])||void 0===n?void 0:n.nodeType)==="text"&&(null===(i=e.content)||void 0===i?void 0:null===(l=i[0])||void 0===l?void 0:l.value)===""?(0,a.jsx)(a.Fragment,{}):(0,a.jsx)("p",{children:t})},[r.BLOCKS.TABLE]:(e,t)=>{let n="table-header-cell"===e.content[0].content[0].nodeType;return(0,a.jsx)("div",{className:"table-responsive",children:(0,a.jsx)("table",{className:n?"w-100 table table-bordered":"w-100",children:(0,a.jsx)("tbody",{children:t})})})},[r.BLOCKS.TABLE_ROW]:(e,t)=>(0,a.jsx)("tr",{children:t}),[r.BLOCKS.TABLE_CELL]:(e,t)=>(0,a.jsx)("td",{children:t}),[r.BLOCKS.EMBEDDED_ASSET]:(e,t)=>(0,a.jsx)("img",{src:"https:".concat(e.data.target.fields.file.url),style:{maxWidth:"100%"}}),[r.BLOCKS.EMBEDDED_ENTRY]:(e,t)=>(0,a.jsx)(c.Z,{data:e.data.target}),[r.INLINES.EMBEDDED_ENTRY]:(e,t)=>(0,a.jsx)(c.Z,{data:e.data.target,inline:!0}),[r.INLINES.HYPERLINK]:(e,t)=>{let n=new RegExp(/(https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|www\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9]+\.[^\s]{2,}|www\.[a-zA-Z0-9]+\.[^\s]{2,})/gi),s=e.data.uri.match(n)?"_blank":"_self";return""===e.content[0].value?(0,a.jsx)("span",{className:"user-email",children:t}):""===e.content[0].value?(0,a.jsx)("span",{className:"user-fname",children:t}):(0,a.jsx)("a",{href:e.data.uri,target:s,className:e.content[0].value===d.d.DEFAULT_PHONE?"scode-phone-number":"",children:t})}},renderText:e=>{(m.length>0||u.length>0)&&e.length>0&&(m.forEach(n=>{e=e.replace("{{".concat(n,"}}"),t[n]).replace("{".concat(n,"}"),t[n])}),u.forEach(t=>{e=e.replace("{{".concat(t,"}}"),n[t]).replace("{".concat(t,"}"),n[t])}));let o=e.split("\n"),r=e=>{let t;if(!h.length)return e;let n=0,o=[];for(;t=/\[\[(.*?)\]\]/g.exec(e.substring(n));)i()(l[t[1]])&&(t.index>0&&o.push(e.substring(n,n+t.index)),o.push(l[t[1]]())),n+=t.index+t[0].length;return o.length?(0,a.jsx)(a.Fragment,{children:o.map((e,t)=>(0,a.jsx)(s.Fragment,{children:e},t))}):e};return(0,a.jsx)(a.Fragment,{children:o.map((e,t)=>(0,a.jsxs)(s.Fragment,{children:[r(e),o.length-1===t?(0,a.jsx)(a.Fragment,{}):(0,a.jsx)("br",{})]},t))})}};return(0,a.jsx)(a.Fragment,{children:(0,o.h)(e,x)})}}}]);