\n
\n
/div>\n
\n '),trigger:r}),"click"===r&&d.addEventListener("click",l)})(),()=>{t&&("click"===r&&d.removeEventListener("click",l),t.dispose())}},[s,d,r]),t({setRef:c})}},3282:function(e,t,n){"use strict";n.d(t,{$T:function(){return s},aB:function(){return o},SF:function(){return f},vo:function(){return v},BZ:function(){return p},zb:function(){return y}});var l=n(67294),s=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:400,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:50,[i,a]=(0,l.useState)([!1,!e,!1,{abSteps:[],forceRequiredSteps:[],exitIntentRange:[],jsonString:""}]);return(0,l.useEffect)(()=>{(async()=>{let e=Date.now();for(;Date.now()-e<=n;){await new Promise(e=>setTimeout(e,s));let e=window.document.querySelector("script#script-ab-test");if(e){var t,l,i,o,r,d,c;let n=!!e.getAttribute("data-split"),s=n?"data-split":"data-steps";a([!0,!0,n,{abSteps:(null!==(o=null===(t=e.getAttribute(s))||void 0===t?void 0:t.split(","))&&void 0!==o?o:[]).map(e=>"step-".concat(e)),forceRequiredSteps:(null!==(r=null===(l=e.getAttribute("data-force-required"))||void 0===l?void 0:l.split(","))&&void 0!==r?r:[]).map(e=>"step-".concat(e)),exitIntentRange:(null!==(d=null===(i=e.getAttribute("data-exit-intent-range"))||void 0===i?void 0:i.split(","))&&void 0!==d?d:[]).map(e=>Number(e)),jsonString:null!==(c=e.innerHTML)&&void 0!==c?c:""}]);break}}a(e=>[e[0],!0,e[2],e[3]])})()},[s,n,t]),i},i=n(26),a=n(81286),o=e=>{let{optional:t,fields:n,autoAdvance:s,handleNext:o,nextButtonRef:r}=e,{edited:d,formValues:c,isLoading:u,showError:m}=(0,i.B)(["edited","formValues","isLoading","showError"]);(0,l.useEffect)(()=>{let e=setTimeout(async()=>{var e,l,i,u,h;let f=!t,v=(0,a.Qk)(c,f,n),p=r.current&&"autoadvanceoff"===r.current.getAttribute("id"),x=(null===(l=n[0])||void 0===l?void 0:null===(e=l.fields)||void 0===e?void 0:e.key)==="insurance"&&"y"===c.insurance&&c.life_current_amount;!d||v||(null===(h=n[0])||void 0===h?void 0:null===(u=h.fields)||void 0===u?void 0:null===(i=u.type)||void 0===i?void 0:i.includes("Multiple Choice (Multiple)"))||x||!s||p||!f||m||o(!1)},1e3);return u&&clearTimeout(e),()=>clearTimeout(e)},[c,u])},r=n(80008),d=n.n(r),c=n(85518),u=n(82264),m=n(22677),h=n(18038),f=e=>{let{delay:t=3e5,formType:n=h.d.QUOTE,isLastPage:s,storageKey:a,handleNext:o,newData:r,pageData:{pageNum:f,step:v,slug:p}}=e,x=!!p&&["step-15b","step-16b"].includes(p);(0,l.useEffect)(()=>{let e;let l=!1;s&&a===n&&(e=setTimeout(()=>o(!0,!0),t));let h=()=>{l=!0},g=async e=>{var t,n,a;if(!((null===(t=document.activeElement)||void 0===t?void 0:t.tagName)==="A"&&((null===(n=document.activeElement)||void 0===n?void 0:n.classList.contains("scode-phone-number"))||(null===(a=document.activeElement)||void 0===a?void 0:a.classList.contains("phone-number"))))){if(x&&!l){let e=i.V.getState().formValues;(0,u.bp)({eventType:"handoff",formData:e,handOffSuccess:!1,pageData:{pageNum:f,step:v,slug:p}})}if(s&&r){e.preventDefault();let t={...r.sessionData,...(0,m.AF)(r.formValues)};t.site_current_page="".concat(t.site_current_page||window.location.href,"?SID=").concat(t.site_session_id),t.sq_time=d()().tz("America/Chicago").format("YYYY-MM-DD HH:mm:ss z");let n=new Blob([JSON.stringify(t)],{type:"application/json"});navigator.sendBeacon("/api/postQuoteForm",n),await o(!0,!0,!0)}}};return window.addEventListener("beforeunload",g),window.addEventListener("popstate",h),"navigation"in window&&window.navigation.addEventListener("navigate",h),c.tq&&window.addEventListener("visibilitychange",g),()=>{e&&clearTimeout(e),window.removeEventListener("beforeunload",g),window.removeEventListener("popstate",h),"navigation"in window&&window.navigation.removeEventListener("navigate",h),c.tq&&window.removeEventListener("visibilitychange",g)}},[s,a,n,x])},v=(e,t,n)=>{(0,l.useEffect)(()=>{e.current.focus()},[t,e,n])},p=e=>{let{formRef:t,handleNext:n}=e,s=(0,i.V)(e=>e.formValues),[a,o]=(0,l.useState)(!1);(0,l.useEffect)(()=>{let e=document.querySelector('[id^="react-select-"][id$="-input"]'),t=()=>{e&&o("true"===e.getAttribute("aria-expanded"))};if(t(),e){let n=new MutationObserver(t);return n.observe(e,{attributes:!0,attributeFilter:["aria-expanded"]}),()=>n.disconnect()}},[]),(0,l.useEffect)(()=>{let e=t.current,l=e=>{"Enter"!==e.key||a||(e.preventDefault(),n(!0))};return e&&s&&e.addEventListener("keydown",l),()=>{e&&e.removeEventListener("keydown",l)}},[a,t,s,n])},x=n(19692),g=n(92742),j=n.n(g),b=n(11163),N=n(21384),w=n(90337),y=e=>{let{storageKey:t,fields:n,pageNum:s}=e,a=(0,b.useRouter)(),[o,r]=(0,l.useState)({}),{setFormValues:d,setIsLoading:c,setEdited:u,setShowError:m,setShowTooltip:h,setShowAbandonModal:f}=(0,i.B)(["setFormValues","setIsLoading","setEdited","setShowError","setShowTooltip","setShowAbandonModal"]),v=()=>{let e=w.Z.get(t)||{};n&&n.length>0&&n.forEach(t=>{let{key:n}=t.fields;e[n]=e[n]||"","zip"===n&&(e.state=e.state||"")}),d(e),c(!1),u(!1),m(!1)},p=()=>{h(!0)},g=()=>{1===s&&(0,x.sendGTMEvent)((0,N.KR)("quoteFormStart")),f(s>10)};return(0,l.useEffect)(()=>{v(),g();let e=document.getElementsByClassName("more-info")[0];if(e)return e.addEventListener("click",p),r(t=>({...t,classNames:e.className.split(" ").map(e=>j()(e)).filter(e=>"more-info"!==e)})),()=>{e.removeEventListener("click",p)}},[a,n,s]),o}},7165:function(e,t,n){"use strict";var l=n(67294);t.Z=()=>{let[e,t]=(0,l.useState)(null),s=(0,l.useCallback)(async()=>{try{let e=(await Promise.all([n.e(1626),n.e(5956)]).then(n.bind(n,65956))).validatePhone;t(e)}catch(e){console.error("Failed to load validatePhone",e)}},[]);return(0,l.useEffect)(()=>{s()},[s]),e}},2198:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var l=n(87633),s=n(70545);let i=(e,t)=>(0,l.a)({queryKey:["monetizationStrategy"],queryFn:n=>{let{signal:l}=n;return(0,s.cs)({signal:l,formType:e,preview:t})},staleTime:3e5})},50770:function(e,t,n){"use strict";var l,s,i=n(67294),a=n(87633),o=n(11163),r=n(78812),d=n(70562),c=n(70545),u=n(78851),m=n(90337),h=n(18038);(l=s||(s={})).BPQ="BPQ",l.CONFIRMATION="CONFIRMATION",t.Z=function(){let{defaultPhoneNumber:e="",override:t=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=m.Z.get("site_session_data"),l=m.Z.get(h.d.QUOTE),s=(0,o.useRouter)(),f=s.asPath,v=f.includes("bpq")?"BPQ":"CONFIRMATION",[p,x]=(0,d.CB)(),[g,j]=(0,i.useState)(e),{data:b,isLoading:N,isError:w}=(0,a.a)({queryKey:["lifeTiers",x],queryFn:e=>{let{signal:t}=e;return(0,c._T)({signal:t})},enabled:p&&!t}),y=(0,i.useCallback)((e,t)=>{var n,i;let a="/quote-form/confirmation-bpq"!==s.asPath&&(null!==(i=null==l?void 0:l.age)&&void 0!==i?i:0)>=40&&75e3>=Number(null==l?void 0:l.amount)&&((null==l?void 0:l.smoke)==="c"||(null===(n=l.conditions)||void 0===n?void 0:n.includes("he")))&&!t;if(a||e){let t=document.querySelectorAll(".phone-number, .scode-phone-number");if(t){let n=a?"1-855-561-9171":e;t.forEach(e=>{var t;e.setAttribute("href","tel:".concat(n)),(null==e?void 0:null===(t=e.classList)||void 0===t?void 0:t.contains("skip-text-override"))||(e.textContent=n)})}}},[null==l?void 0:l.age,null==l?void 0:l.amount,null==l?void 0:l.smoke,null==l?void 0:l.conditions,s.asPath]);return(0,i.useEffect)(()=>{let t;if(!N&&!w&&b)return(async()=>{let l=await (0,u._w)(f),s=l?await (0,u.l)(l,f):void 0,i=("BPQ"===v?r.a:r.o).find(e=>e.value===b.tier_value);i&&(t=setTimeout(()=>{var t,l;let a=null!==m.Z.getRaw("life_platinum_exp"),o=s||(a?null!==(t=null==n?void 0:n.site_campaign_phone)&&void 0!==t?t:e:null!==(l=null==i?void 0:i.phone)&&void 0!==l?l:e);j(o),y(o,a),m.Z.set("site_session_data",{...n,lead_tier:i.tier,lead_value:i.value,refid:b.refid})},300))})(),()=>{clearTimeout(t)}},[f,v,b,N,w,e,n,y]),{phoneTier:g,sessionData:n,isLoading:N,isError:w}}},36225:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var l=n(67294);function s(){let[e,t]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{t(!0)},[]),e}},53966:function(e,t,n){"use strict";var l=n(14293),s=n.n(l);t.Z=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n={};return t.forEach(t=>{let l="".concat(e,"-").concat(t.fields.device.toLowerCase());s()(t.fields.fontSize)||(n["--".concat(l,"-font-size")]=t.fields.fontSize),s()(t.fields.fontStyle)||(n["--".concat(l,"-font-style")]=t.fields.fontStyle),s()(t.fields.fontWeight)||(n["--".concat(l,"-font-weight")]=t.fields.fontWeight),s()(t.fields.color)||(n["--".concat(l,"-color")]=t.fields.color)}),{style:n}}},54565:function(e,t,n){"use strict";n.d(t,{N:function(){return m}});var l=n(85893);n(67294);var s=n(74129),i=n(86437),a=n(90512),o=n(41664),r=n(9760),d=n(56333),c=n(21384),u=n(90337);let m=e=>{let t={renderNode:{[i.BLOCKS.PARAGRAPH]:(e,t)=>e.content.filter(e=>{var t,n,l,s,i;return"embedded-entry-inline"===e.nodeType&&(null===(i=e.data)||void 0===i?void 0:null===(s=i.target)||void 0===s?void 0:null===(l=s.sys)||void 0===l?void 0:null===(n=l.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","inputContentSeparated","richtextContent","cardItemContent","bpqTableContent"].includes(e.data.target.sys.contentType.sys.id))?t:(0,l.jsx)("p",{className:"richtext-paragraph",children:t}),[i.BLOCKS.TABLE]:(e,t)=>{let n="table-header-cell"===e.content[0].content[0].nodeType;return(0,l.jsx)("table",{className:n?"w-100 table table-bordered":"w-100",children:(0,l.jsx)("tbody",{children:t})})},[i.BLOCKS.TABLE_ROW]:(e,t)=>(0,l.jsx)("tr",{children:t}),[i.BLOCKS.TABLE_CELL]:(e,t)=>(0,l.jsx)("td",{children:t}),[i.BLOCKS.EMBEDDED_ASSET]:(e,t)=>(0,l.jsx)("img",{src:"https:".concat(e.data.target.fields.file.url),style:{maxWidth:"100%"}}),[i.BLOCKS.EMBEDDED_ENTRY]:(e,t)=>(0,l.jsx)(r.Z,{data:e.data.target}),[i.INLINES.EMBEDDED_ENTRY]:(e,t)=>(0,l.jsx)(r.Z,{data:e.data.target}),[i.INLINES.HYPERLINK]:(e,t)=>{var n,s,i,r,m,h,f;let v=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),p=e.data.uri.match(v)?"_blank":"_self",x=null!==(i=e.data.uri)&&void 0!==i?i:"";return"
"===e.content[0].value?(0,l.jsx)("span",{className:"user-email",suppressHydrationWarning:!0,children:null!==(m=null===(r=u.Z.get("quote_form"))||void 0===r?void 0:r.email)&&void 0!==m?m:""}):""===e.content[0].value?(0,l.jsx)("span",{className:"user-fname",children:null!==(f=null===(h=u.Z.get("quote_form"))||void 0===h?void 0:h.fname)&&void 0!==f?f:""}):(0,l.jsx)(o,{href:x,target:p,onClick:()=>(0,c.qF)(x),className:(0,a.Z)((null==t?void 0:null===(s=t[0])||void 0===s?void 0:null===(n=s.toLowerCase)||void 0===n?void 0:n.call(s))!=="click here"&&"phone-number",{"scode-phone-number":e.content[0].value===d.P.DEFAULT_PHONE}),children:t})}}};return(0,l.jsx)(l.Fragment,{children:(0,s.h)(e,t)})}}}]);