PageSourceSearch

https://spotpet.com/_next/static/chunks/349-37f2ecb736f3f117.js

js spotpet.com collected 2026-10-02 04:58:51 UTC 65,326 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[349],{452:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a={src:"/_next/static/media/favicon.d2d69cf9.ico",height:16,width:16,blurWidth:0,blurHeight:0}},45972:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a={src:"/_next/static/media/icon.555bae2e.svg",height:500,width:500,blurWidth:0,blurHeight:0}},48942:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a={src:"/_next/static/media/chevron-down-solid.a6ecfb0c.svg",height:512,width:512,blurWidth:0,blurHeight:0}},79184:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a={src:"/_next/static/media/chevron-down.1fa07040.svg",height:32,width:32,blurWidth:0,blurHeight:0}},4982:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});let a={src:"/_next/static/media/logo-white.88561ed0.svg",height:53,width:116,blurWidth:0,blurHeight:0}},2565:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a={src:"/_next/static/media/facebook.e810a02d.svg",height:32,width:32,blurWidth:0,blurHeight:0}},67643:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a={src:"/_next/static/media/linkedin.c7130d25.svg",height:32,width:32,blurWidth:0,blurHeight:0}},39813:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a={src:"/_next/static/media/reddit.0de49278.svg",height:32,width:32,blurWidth:0,blurHeight:0}},23335:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a={src:"/_next/static/media/tiktok.8ed84cdc.svg",height:32,width:32,blurWidth:0,blurHeight:0}},25617:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a={src:"/_next/static/media/x-twitter.f65a4548.svg",height:24,width:24,blurWidth:0,blurHeight:0}},23656:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a={src:"/_next/static/media/youtube.103e9a99.svg",height:32,width:32,blurWidth:0,blurHeight:0}},10349:(e,t,r)=>{"use strict";r.d(t,{Z:()=>eR});var a=r(74848),n=r(96540),s=r(22725),l=r(13368),i=r.n(l),o=r(86715),c=r(46637),d=r(62465),u=r(29965),m=r.n(u),g=r(20053),h=r(19791);let x={src:"/_next/static/media/user.c84677e2.svg"},p={src:"/_next/static/media/phone.67e13c62.svg"};var f=r(90938),b=r(48942),v=r(86031);let y={src:"/_next/static/media/yellow-dog.be67fc54.svg"},w={src:"/_next/static/media/blue-cat.a55af2e9.svg"},j={src:"/_next/static/media/coverage-icon.d7c24ccb.svg"},k={src:"/_next/static/media/compare-icon.efaf3dbb.svg"},N={src:"/_next/static/media/employers-icon.6b452db9.svg"},A=s.j.getCurrentBrandContent().menus.siteHeader,S=e=>{let{onNavigate:t,breakpoint:r,isMobileMenuOpen:s,isdefaultBrand:l}
1=e,[i,o]=(0,n.useState)(-1),[c,u]=(0,n.useState)([]),m=(0,n.useRef)(null),h=["base","sm","md"].includes(r),x=["lg","xl","2xl"].includes(r),p=(0,n.useCallback)(()=>{o(-1),u([])},[]);(0,n.useEffect)(()=>{let e="overflow-hidden";return i>-1&&h?document.body.classList.add(e):document.body.classList.remove(e),()=>{document.body.classList.remove(e)}},[i,r,h]),(0,n.useEffect)(()=>{let e=m.current;(!e||["base","sm","md"].includes(e))!==h&&(p(),null==t||t()),m.current=r},[r,h,t,p]),(0,n.useEffect)(()=>{!s&&h&&p()},[s,r,h,p]);let f=()=>{p(),t&&t()},S=(0,n.useCallback)(e=>{e===i?p():(o(e),u([]))},[i,p]),I=(0,n.useCallback)(()=>{x&&p()},[x,p]),P=(0,n.useCallback)(()=>{x&&p()},[x,p]),C=(0,n.useCallback)((e,t)=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),S(t)),"Escape"===e.key&&(e.preventDefault(),p())},[S,p]),_=(0,n.useCallback)(e=>{"Escape"===e.key&&(e.preventDefault(),p())},[p]);function E(e){var t;let r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s={"text-body2 ml-6 lg:ml-2":r&&!e.isHeader,"text-body2 ml-6 lg:ml-4":n},i=l&&"Dog Insurance"===e.title,o=l&&"Cat Insurance"===e.title,m=l&&"What Does Pet Insurance Cover?"===e.title,h=l&&"Compare Pet Insurance Plans"===e.title,p=l&&"HR Professionals & Brokers"===e.title;if(e.isHeader)return(0,a.jsx)("span",{className:"cursor-text select-text p-2 text-body2 font-semibold uppercase text-text-primary hover:bg-transparent lg:pl-0",children:e.title});if(i||o){let t={icon:y.src,title:"Dog Insurance",href:"/dog-insurance",price:(0,a.jsxs)(a.Fragment,{children:["Starting from $15/mo",(0,a.jsx)("sup",{children:"^"})]})},r={icon:w.src,title:"Cat Insurance",href:"/cat-insurance",price:(0,a.jsxs)(a.Fragment,{children:["Starting from $9/mo",(0,a.jsx)("sup",{children:"^^"})]})};return"Cat Insurance"===e.title?null:(0,a.jsx)("div",{"data-testid":"dog-cat-cards",className:"mb-1 mt-4 flex w-full flex-col gap-5 sm:flex-row lg:mb-4 lg:mt-4 lg:flex-col",children:[t,r].map(e=>{let{icon:t,title:r,href:n,price:s}=e;return(0,a.jsx)(d.i,{href:n,tabIndex:0,className:"border-accent-secondary-weak relative w-full flex-1 rounded-xl border-2 border-border-dark bg-background-surface hover:border-background-secondary hover:bg-accent-secondary-background",onClick:f,onKeyDown:_,children:(0,a.jsxs)("div",{className:"flex items-center py-5 pl-5",children:[(0,a.jsx)("div",{className:"absolute left-2 -mt-1",children:(0,a.jsx)(v.A,{src:t,className:"h-[93px] w-24"})}),(0,a.jsxs)("div",{className:"ml-[92px] flex flex-col text-left",children:[(0,a.jsx)("span",{className:"text-base font-bold text-text-primary",children:r}),(0,a.jsx)("span",{className:"text-body2 text-text-gray",children:s})]})]})},r)})})}if(m||h){let t={icon:j.src,title:"What Does Pet Insurance Cover?",href:"/what-does-pet-insurance-cover",price:null},r={icon:k.src,title:"Compare Pet Insurance Plans",href:"/compare-pet-insurance",price:null};return"Compare Pet Insurance Plans"===e.title?null:(0,a.jsx)("div",{"data-testid":"coverage-compare-cards",className:"mb-1 mt-4 flex w-full flex-col gap-5 sm:flex-row lg:mb-6 lg:mt-4 lg:flex-col",children:[t,r].map(e=>{let{icon:t,title:r,href:n}=e;return(0,a.jsx)(d.i,{href:n,tabIndex:0,className:"border-accent-secondary-weak relative w-full flex-1 rounded-xl border-2 border-border-dark bg-background-surface hover:border-background-secondary hover:bg-accent-secondary-background",onClick:f,onKeyDown:_,children:(0,a.jsxs)("div",{className:"flex items-center py-4 pl-5 md:py-4",children:[(0,a.jsx)("div",{className:"absolute left-2",children:(0,a.jsx)(v.A,{src:t,className:"h-auto w-24"})}),(0,a.jsx)("div",{className:"ml-[92px] flex flex-col text-left",children:(0,a.jsx)("span",{className:"mr-6 py-0 text-base font-bold text-text-primary md:mr-10 md:py-3 lg:mr-3 lg:py-0",children:r})})]})},r)})})}if(p){let e={icon:N.src,title:"HR Professionals & Brokers",href:"/employers",price:(0,a.jsx)(a.Fragment,{children:"20% employee discount\xb0"})};return(0,a.jsx)("div",{"data-testid":"Employers-card",className:"mb-1 mt-4 flex w-full",children:[e].map(e=>{let{icon:t,title:r,href:n,price:s}=e;return(0,a.jsx)(d.i,{href:n,tabIndex:0,className:"border-accent-secondary-weak relative w-full flex-1 rounded-xl border-2 border-border-dark bg-background-surface py-0 hover:border-background-secondary hover:bg-accent-secondary-background sm:py-3 lg:w-[340px] lg:py-0",onClick:f,onKeyDown:_,children:(0,a.jsxs)("div",{className:"flex items-center py-2 pl-5",children:[(0,a.jsx)("div",{className:"absolute left-3 -mt-2 lg:-mt-1",children:(0,a.jsx)(v.A,{src:t,className:"h-[95px] w-24"})}),(0,a.jsxs)("div",{className:"ml-[100px] flex flex-col text-left",children:[(0,a.jsx)("span",{className:"mr-16 text-base font-bold text-text-primary",children:r}),(0,a.jsx)("span",{className:"text-body2 text-text-gray",children:s})]})]})},r)})})}let A=(0,g.A)("text-body1 font-medium",l?"text-text-primary":"text-text-secondary"),S=(0,g.A)("p-2",l&&"py-3 lg:py-1"),I=l?"hover:bg-accent-secondary-background":"hover:bg-background-medium",P=(0,g.A)("w-full rounded-lg",S,A,I,s);if(null===(t=e.submenu)||void 0===t?void 0:t.length){let t=c.includes(e.url),r="nested-submenu-".concat(e.url.replace(/\W+/g,"-")),n=()=>{x&&u(t=>t.includes(e.url)?t:[...t,e.url])};return(0,a.jsxs)("div",{className:"flex w-full flex-col",onMouseEnter:n,children:[(0,a.jsxs)("div",{className:(0,g.A)("flex w-full items-stretch rounded-lg",A,I,s),children:[(0,a.jsx)(d.i,{tabIndex:0,href:e.url,className:(0,g.A)(S,"max-lg:w-full lg:block"),onClick:f,onKeyDown:_,onFocus:n,children:e.title}),(0,a.jsx)("button",{type:"button",tabIndex:-1,"aria-label":"".concat(t?"Collapse":"Expand"," ").concat(e.title),"aria-expanded":t,"aria-controls":r,onClick:()=>{u(t=>t.includes(e.url)?t.filter(t=>t!==e.url):[...t,e.url])},onKeyDown:_,className:"flex flex-1 items-center pr-2 max-lg:hidden",children:(0,a.jsx)(v.A,{src:b.A.src,width:12,height:12,className:(0,g.A)("transition-transform ease-linear",t&&"rotate-180")}
1)})]}),(0,a.jsx)("ul",{id:r,role:"group",className:(0,g.A)("flex-col gap-1 max-lg:flex lg:mt-1",t?"lg:flex":"lg:hidden"),children:e.submenu.map((e,t)=>(0,a.jsx)("li",{role:"none",className:"flex",children:E(e,!1,!0)},e.url+t.toString()))})]})}return(0,a.jsx)(d.i,{tabIndex:0,href:e.url,className:(0,g.A)(P,"lg:block"),onClick:f,onKeyDown:_,children:e.title},e.url)}return(0,a.jsx)("ul",{"data-testid":"header-nav-menu",className:(0,g.A)("max-lg:max-h-[90vh] max-lg:p-[1px] lg:flex lg:w-max lg:flex-row",{"max-lg:overflow-y-scroll":h&&s&&i>-1}),role:"menubar",children:A.map((e,t)=>(function(e,t,r,n){let s=!!n,o=e===i,c=(0,g.A)("flex cursor-pointer flex-row items-center gap-2 rounded-lg p-4 text-button-md font-semibold text-accent-secondary-ada hover:bg-background-medium max-lg:text-subheadline1 lg:p-3",l&&"p-5 "),u=r?(0,a.jsx)(a.Fragment,{children:t}):(0,a.jsxs)("button",{role:"menuitem",tabIndex:0,onClick:()=>S(e),className:(0,g.A)("text-left max-lg:w-full",c),onKeyDown:t=>C(t,e),"aria-haspopup":s?"true":void 0,"aria-expanded":s?o:void 0,"aria-controls":s?"submenu-".concat(e):void 0,children:[(0,a.jsx)("div",{className:"flex-1",children:t}),n&&(0,a.jsx)(v.A,{src:b.A.src,width:h?16:12,height:h?16:12,className:"transition-transform ease-linear ".concat(o?"max-lg:rotate-180":"")})]});return r&&(u=(0,a.jsx)(d.i,{href:r,className:c,onClick:f,role:"menuitem",onFocus:P,tabIndex:0,children:u})),(0,a.jsxs)("li",{className:(0,g.A)("group relative"),role:"none",onMouseLeave:I,children:[u,(()=>{if(!s)return;let t=Array.isArray(n[0]),r=!t&&n.some(e=>{var t;return!!(null===(t=e.submenu)||void 0===t?void 0:t.length)}),i=!1;if(t&&l){let e=["Dog Insurance","Cat Insurance","What Does Pet Insurance Cover?","Compare Pet Insurance Plans","HR Professionals & Brokers"];i=n.some(t=>t.some(t=>e.includes(t.title)))}let c=(0,g.A)("".concat(i?"lg:w-[582px] lg:max-w-[582px] lg:py-1 lg:rounded-2xl lg:px-4":"lg:py-6 lg:rounded-lg lg:min-w-max lg:px-10"," lg:absolute lg:left-0 lg:top-full lg:z-50 lg:bg-background-surface lg:drop-shadow-lg"),{"lg:max-h-[calc(100vh-8rem)] lg:overflow-y-auto":r,"lg:flex":o,"lg:hidden lg:group-hover:flex":!o}),d="submenu-".concat(e);return(0,a.jsx)("ul",{role:"menu",id:d,"data-testid":d,className:(0,g.A)("".concat(l?"bg-background-light-gray px-5 pb-3 max-lg:border-y-2 max-lg:border-background-medium lg:px-4":"max-lg:ml-4 max-lg:border-l max-lg:px-2"," max-lg:border-accent-background"),{"max-lg:block":o,"max-lg:hidden":!o},c,{"lg:flex-row":t,"lg:flex-col lg:gap-2":!t}),children:t?n.map((e,t)=>{let r=e.some(e=>e.isHeader);if(l){let n=["Dog Insurance","Cat Insurance","What Does Pet Insurance Cover?","Compare Pet Insurance Plans","HR Professionals & Brokers"],s=e.filter(e=>n.includes(e.title)),i=e.filter(e=>!n.includes(e.title));return(0,a.jsxs)("li",{className:"lg:flex lg:gap-4",children:[s.length>0&&(0,a.jsx)("ul",{className:"lg:w-[300px] lg:flex-shrink-0",children:s.map((e,t)=>(0,a.jsx)("li",{className:"flex",children:E(e,r)},e.url+t.toString()))}),(0,a.jsx)("ul",{className:"".concat(r?"gap-1":"gap-2"," ").concat(l?"mt-4":" "," lg:flex lg:flex-col"),children:i.map((e,t)=>(0,a.jsx)("li",{className:"flex",children:E(e,r)},e.url+t.toString()))})]},"submenu_root_li_".concat(t))}return(0,a.jsx)("li",{children:(0,a.jsx)("ul",{className:"".concat(r?"gap-1":"gap-2"),children:e.map((e,t)=>(0,a.jsx)("li",{className:"flex",children:E(e,r)},e.url+t.toString()))})},"submenu_root_li_".concat(t))}):n.map((e,t)=>(0,a.jsx)("li",{className:"flex",children:E(e)},e.url+t.toString()))})})()]},"root_li_".concat(e))})(t,e.title,e.href,null==e?void 0:e.submenu))})};var I=r(93504),P=r(51245),C=r(6351);let _={src:"/_next/static/media/cart-solid-navy.42d06e9b.svg"};var E=r(24416),R=r(63790);let D=e=>{let{id:t,cartTitle:r,ctaLink:n}=e,{quoteId:s,quotePetCount:l=0}=(0,E.o)();return(0,a.jsxs)(d.i,{tabIndex:0,target:"_self",href:n||"/quote",id:t,onClick:()=>{R.F.sendDataDogAction("cart_click",{id:t,petCount:l,quoteId:s})},"aria-label":r,title:r,className:"relative flex items-center text-button-md hover:bg-background-medium",children:[(0,a.jsx)(v.A,{src:_.src}),l>0&&(0,a.jsx)("div",{className:"absolute -right-1 -top-1 flex h-5 w-5 items-center justify-center rounded-full bg-accent-primary-ada text-xs text-text-contrast",children:l})]})};
1var T=r(5996),L=r(52302),O=r.n(L),U=r(94708),M=r(33263);let W={sams:()=>"https://scis.spotpet.com","quote-ptz-us":()=>"/quote"};function B(e){let t=Array.isArray(e.returnFormId)?e.returnFormId[0]:e.returnFormId;return t&&W[t]?W[t]():e.customCtaLink||e.fallback||"/quote"}let F=s.j.getCurrentBrandData(),z=e=>{let{employerPhoneNumber:t=!1,...r}=e,[s,l]=(0,n.useState)(!1),[i,u]=(0,n.useState)(!1),{breakpoint:b}=r,{formatPhone:y}=M.A,w="default"===F.id,j=r.customPhoneNumber||(t?c.r.CS_EMPLOYER_PHONE_NUMBER:c.r.CS_PHONE_NUMBER),k=y(j.replace(/\D+/g,"")),N=(0,o.useRouter)(),A=B({customCtaLink:r.customCtaLink,returnFormId:N.query.returnFormId}),_=(0,T.S)(r.customCtaText);(0,n.useEffect)(()=>{l(!0)},[]);let E=e=>{i&&"Escape"===e.key&&u(!1)},R=(0,P.Mq)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("header",{id:"spotSiteHeader",className:(0,g.A)("active sticky top-0 z-50 border-b bg-background-surface",R>0?"border-border-light":"border-transparent"),children:(0,a.jsx)(U.FocusTrap,{active:i,focusTrapOptions:{clickOutsideDeactivates:!0,escapeDeactivates:!0},children:(0,a.jsxs)("nav",{"aria-label":"Main menu",children:[w&&(0,a.jsx)("div",{"data-testid":"pre-navbar",className:"bg-background-secondary py-1 ",children:(0,a.jsxs)(h.A,{className:"flex w-full flex-row items-center justify-between gap-4 text-body2",children:[(0,a.jsx)(d.i,{href:"tel:".concat(j),children:(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,a.jsx)(v.A,{src:p.src,className:"h-5 w-5"}),(0,a.jsx)("span",{className:"font-semibold text-content-brand-b hover:underline",children:k})]})}),(0,a.jsxs)("div",{className:"flex items-center gap-4",children:[(0,a.jsx)(d.i,{href:O().underwritingLink,className:"font-medium text-content-secondary hover:underline",children:"Underwriting"}),(0,a.jsx)(d.i,{href:c.r.MEMBER_CENTER_URL_ROOT,target:"_self",className:"hidden md:flex",children:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(v.A,{src:x.src,className:"h-5 w-5"}),(0,a.jsx)("span",{className:"font-semibold text-content-brand-b hover:underline",children:"Sign in to Member Center"})]})})]})]})}),(0,a.jsxs)(h.A,{className:"relative flex flex-row items-center gap-1 px-4 py-3 lg:px-9 lg:py-4",children:[!r.displayLogoOnly&&(0,a.jsx)("button",{tabIndex:0,className:"z-50 mr-6 md:mr-2 lg:hidden",onClick:()=>{u(!i)},onKeyDown:e=>E(e),"aria-expanded":i,"aria-label":i?"Close menu":"Open menu",children:(0,a.jsx)("span",{className:"btn btn-circle border-accent-secondary bg-accent-secondary hover:bg-background-contrast",children:i?(0,a.jsx)("svg",{className:"swap-on fill-accent-contrast",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 512 512",children:(0,a.jsx)("polygon",{points:"400 145.49 366.51 112 256 222.51 145.49 112 112 145.49 222.51 256 112 366.51 145.49 400 256 289.49 366.51 400 400 366.51 289.49 256 400 145.49"})}):(0,a.jsx)("svg",{className:"swap-off fill-accent-contrast",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 512 512",children:(0,a.jsx)("path",{d:"M64,384H448V341.33H64Zm0-106.67H448V234.67H64ZM64,128v42.67H448V128Z"})})})}),(0,a.jsx)("div",{className:"left-0 top-0 mt-1 flex h-full items-center lg:relative ".concat(r.displayLogoOnly?"w-auto min-w-[116px] justify-start md:w-full":"w-full justify-center md:justify-start"," lg:w-auto"),children:(0,a.jsx)(d.i,{href:"/",className:"block","data-testid":"header-logo-link",tabIndex:0,children:(0,a.jsx)(m(),{className:"block",src:f.A,width:116,height:53,alt:F.name,style:{maxWidth:"100%",height:"auto"}})})}),!r.displayLogoOnly&&(0,a.jsx)("div",{className:"flex-1",children:(0,a.jsxs)("div",{className:"absolute left-0 top-full z-50 w-full bg-background-surface drop-shadow-lg lg:relative lg:left-auto lg:top-auto lg:w-auto lg:bg-auto lg:drop-shadow-none ".concat(i?"":"hidden"," lg:block"),children:[w&&(0,a.jsx)("div",{className:"border-t-2 border-t-background-medium py-4 md:hidden",children:(0,a.jsx)(h.A,{children:(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)(C.$,{href:"/quote",title:"Click For Price",style:"Primary",className:"font-semibold"}),(0,a.jsx)(C.$,{href:c.r.MEMBER_CENTER_URL_ROOT,target:"_self",title:"Sign in to Member Center",style:"outline-secondary",className:"font-medium hover:bg-background-medium"})]})})}),(0,a.jsx)(S,{onNavigate:()=>{u(!1)},breakpoint:b,isMobileMenuOpen:i,isdefaultBrand:w},N.asPath)]})}),(0,a.jsxs)("div",{className:"flex items-center justify-end gap-2 ".concat(r.displayLogoOnly?"w-full":""),children:[!r.displayLogoOnly&&!w&&(0,a.jsx)(d.i,{title:"Sign in to the Member Center",target:"_self",href:c.r.MEMBER_CENTER_URL_ROOT,tabIndex:0,children:(0,a.jsxs)("div",{className:"flex items-center rounded-lg p-0 text-button-md hover:bg-background-medium sm:p-2",children:[(0,a.jsx)(v.A,{src:x.src}),(0,a.jsx)("span",{className:"hidden font-bold text-accent-secondary-ada min-[1084px]:inline",children:"Sign In"})]})}),!w&&(0,a.jsx)(d.i,{title:k,href:"tel:".concat(j),target:"_self",tabIndex:0,children:(0,a.jsxs)("div",{className:"flex items-center rounded-lg p-0 text-button-md hover:bg-background-medium sm:p-2",children:[(0,a.jsx)(v.A,{src:p.src}),(0,a.jsx)("span",{className:"hidden font-bold text-accent-secondary-ada xl:inline",children:k})]})}),(0,a.jsxs)("div",{className:(0,g.A)("flex items-center gap-2",!s&&"invisible"),children:[(0,a.jsx)("div",{className:"h-10 w-10",children:s&&(0,a.jsx)(D,{id:"cart-quote",cartTitle:_,ctaLink:A})}),(0,a.jsx)("div",{className:"hidden md:block",children:(0,a.jsx)(C.$,{href:A,id:"cta-quote",title:s?_:r.customCtaText||"Click For Price",style:"Primary",className:"text-button-sm font-semibold xl:text-button-md"})})]})]}),!w&&(0,a.jsx)(d.i,{href:O().underwritingLink,className:"absolute right-5 top-0 rounded-b-lg bg-text-hint px-1 text-xs text-text-primary hover:bg-background-medium  md:right-9",children:"Underwriting"})]})]})})}),r.breadcrumbs&&(0,a.jsx)("div",{className:"bg-accent-secondary-background",children:(0,a.jsx)(h.A,{children:(0,a.jsx)(I.A,{crumbs:r.breadcrumbs})})})]})},q={src:"/_next/static/media/Instagram.1d2bd3b5.svg"};var H=r(2565),V=r(67643),G=r(23335),K=r(25617),$=r(39813),Y=r(23656);let J=()=>{let e=[{url:"https://www.instagram.com/getspotcovered",title:"Instagram",logo:q.src},{url:"https://www.facebook.com/getspotcovered",title:"Facebook",logo:H.A.src},{url:"https://www.linkedin.com/company/spot-pet-insurance/",title:"LinkedIn",logo:V.A.src},{url:"https://www.tiktok.com/@getspotcovered?lang=en",title:"TikTok",logo:G.A.src},{url:"https://twitter.com/getspotcovered",title:"X",logo:K.A.src},{url:"https://www.reddit.com/r/SpotPetInsurance/",title:"Reddit",logo:$.A.src},{url:"https://www.youtube.com/@getspotcovered",title:"YouTube",logo:Y.A.src}];return(0,a.jsx)("div",{className:"flex items-center gap-2 text-accent-contrast",children:e.map(e=>(0,a.jsx)(d.i,{href:e.url,title:"Spot on ".concat(e.title),className:"h-6 w-6",children:(0,a.jsx)(v.A,{src:e.logo})},e.title))})},Q=()=>{let e=s.j.getCurrentBrandData();return(0,a.jsxs)("div",{className:"flex flex-col gap-5 text-xs text-text-contrast",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2 md:flex-row",children:[(0,a.jsx)(d.i,{href:"/ca-notice",className:"underline",children:"NOTICE TO CALIFORNIA RESIDENTS"}),(0,a.jsx)(d.i,{href:"/important-policy-provisions",className:"underline",children:"Insurer Disclosure of Important Policy Provisions"})]}),(0,a.jsxs)("p",{children:["Waiting periods, annual deductible, co-insurance, benefit limits and exclusions may apply. For all terms visit\xa0",(0,a.jsxs)("a",{href:"/sample-policy",target:"_blank",rel:"noopener noreferrer",children:[c.r.CANONICAL_URL_ROOT,"/sample-policy"]}),". Products, schedules, discounts, and rates may vary and are subject to change. 10% multi-pet discount is available on all pets after the first. More information available at checkout.",(0,a.jsx)("br",{}),"Insurance plans are underwritten by either Independence American Insurance Company (NAIC #26581. A Delaware insurance company located at 11333 N. Scottsdale Rd, Ste. 160, Scottsdale, AZ 85254) or United States Fire Insurance Company (NAIC #21113. Morristown, NJ), and are produced by Spot Pet Insurance Services, LLC. (NPN # 19246385. ",e.streetAddress,", ",e.addressLocality,", ",e.addressRegion," ",e.postalCode,". CA License #6000188)."]}),(0,a.jsx)("p",{children:"Premiums are based on the current age of your pet. Premium may increase due to the age of your pet at renewal. Initial premiums may be impacted by the species or breed of your pet. Premium may change based on your home address."}),(0,a.jsx)("p",{children:"^ Advertised premium is based on an accident and illness plan with an 80% reimbursement rate, $500 annual deductible, and a $2,500 annual limit for a 2-year-old small mixed dog (11-25lbs) in 32009. Plan costs vary."}),(0,a.jsx)("p",{children:"^^ Advertised premium is based on an accident and illness plan with an 80% reimbursement rate, $750 annual deductible, and a $2,500 annual limit for a 2-year-old mixed cat in 33801. Plan costs vary."}),(0,a.jsx)("p",{children:"\xb0 Includes up to 10% group discount plus up to 10% multi-pet discount on 2nd+ pets. Discounts vary by state and are subject to change. Not available in all states."}),(0,a.jsxs)("div",{className:"",children:["\xa9 ",new Date().getFullYear()," Spot Pet Insurance Services, LLC. All Rights Reserved."]}),(0,a.jsxs)("div",{className:"flex flex-row flex-wrap gap-4",children:[(0,a.jsx)(d.i,{href:"/terms-conditions",className:"underline",children:"Terms & Conditions"}),(0,a.jsx)(d.i,{href:"/privacy",className:"underline",children:"Privacy Policy"}),(0,a.jsx)("button",{type:"button",onClick:e=>{var t,r;e.preventDefault(),null===(r=window.Osano)||void 0===r||null===(t=r.cm)||void 0===t||t.showDoNotSell()},className:"cursor-pointer text-left underline",children:"Do Not Sell or Share My Personal Information"})]})]})};var X=r(53723),Z=r(79184);let ee=e=>{let{title:t,links:r,className:s=""}
1=e,[l,i]=(0,n.useState)(!1),o="footer-section-".concat(t.replace(/\s+/g,"-").toLowerCase());return(0,a.jsxs)("nav",{"aria-label":"".concat(t," links"),className:"flex flex-col gap-4 text-xs text-text-contrast md:gap-6",children:[(0,a.jsxs)("button",{type:"button",className:"flex w-full items-center justify-between sm:pointer-events-none sm:focus:outline-none","aria-expanded":l,"aria-controls":o,onClick:()=>i(!l),onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),i(e=>!e))},children:[(0,a.jsx)("h4",{className:"collapse-title !font-bold",children:t}),(0,a.jsx)("div",{className:"transform-y h-6 w-6 brightness-0 invert sm:hidden",children:(0,a.jsx)(X.p,{image:Z.A,objectFit:"scale-down",className:(0,g.A)("transition-transform",l?"-rotate-180":"")})})]}),(0,a.jsx)("ul",{id:o,className:(0,g.A)("grid-columns-1 grid gap-x-1 gap-y-4 underline md:gap-x-8",l?"":"max-sm:hidden",s),children:r.map(e=>(0,a.jsx)("li",{children:(0,a.jsx)(d.i,{href:e.url,target:e.target,rel:e.rel,children:e.title})},e.url))})]})},et=s.j.getCurrentBrandData(),er=s.j.getCurrentBrandContent().menus.siteFooter,ea=e=>{let{customCtaLink:t}
1=e,[s,l]=(0,n.useState)(!1),{name:i,countryCode:c,alternateLanguageSites:u}=et,m="US"===c?"en-CA":"en-US",g=null==u?void 0:u.filter(e=>e.locales.includes(m))[0],x="".concat("en-US"===m?"the ":""," ").concat(null==g?void 0:g.country),p=(0,T.S)(),f=B({customCtaLink:t,returnFormId:(0,o.useRouter)().query.returnFormId});return(0,n.useEffect)(()=>{l(!0)},[]),(0,a.jsxs)(a.Fragment,{children:[s&&(0,a.jsx)("div",{className:"footer-sticky-cta fixed bottom-0 z-[10] w-full md:hidden",children:(0,a.jsx)(C.$,{title:p,className:"mx-auto block cursor-pointer !rounded-none font-semibold",style:"Primary",href:f,id:"cta-quote",addArrow:!0})}),(0,a.jsx)("footer",{className:"mt-6 max-md:pb-12","data-testid":"siteFooter",children:(0,a.jsx)(h.A,{children:(0,a.jsxs)("div",{className:"flex flex-col gap-8 rounded-t-[2rem] bg-background-contrast px-6 py-8 md:gap-10 md:py-10 lg:px-10 xl:gap-20 xl:px-[7.25rem] xl:py-20 2xl:px-[8rem]",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-8 md:gap-10 xl:justify-between",children:[(0,a.jsxs)("div",{className:"flex flex-col justify-between gap-6 sm:flex-row",children:[(0,a.jsx)("div",{className:"h-10 w-[89px]",children:(0,a.jsx)(d.i,{href:"/","aria-label":i,children:(0,a.jsx)(X.p,{image:r(4982),alt:"",objectFit:"scale-down"})})}),(0,a.jsx)(J,{})]}),(0,a.jsx)("div",{className:"flex flex-col gap-4 sm:flex-row md:gap-12 xl:gap-20","data-testid":"siteFooterMenus",children:er.map((e,t)=>(0,a.jsx)(ee,{title:e.title,links:e.links,className:e.className},t))})]}),(0,a.jsxs)("div",{className:"border-b border-t border-border-light-transparent py-4 text-center text-caption font-normal text-text-contrast",children:["Are you looking for"," ",(0,a.jsxs)("a",{href:null==g?void 0:g.origin,className:"underline",children:["Pet Insurance in ",x]}),"?"]}),(0,a.jsx)(Q,{})]})})})]})};var en=r(28133),es=r.n(en);let el=e=>{if(void 0===e)return;let t="string"==typeof e?parseFloat(e):e;return isNaN(t)?void 0:t},ei=e=>{let t=0,r=()=>{window.DD_RUM?window.DD_RUM.onReady(()=>{var t;null===(t=window.DD_RUM)||void 0===t||t.init(e)}):t<50&&(t++,setTimeout(r,100))};r()},eo=e=>{var t,r,n;let{replaySampleRate:s}=e;if(!c.r.DATADOG_CLIENT_TOKEN||!c.r.DATADOG_APPLICATION_ID)return null;let l=null!==(t=null!=s?s:el(c.r.DATADOG_SESSION_RECORD_RATE))&&void 0!==t?t:0,i={clientToken:c.r.DATADOG_CLIENT_TOKEN,applicationId:c.r.DATADOG_APPLICATION_ID,site:"datadoghq.com",service:c.r.DATADOG_SITE_NAME,env:c.r.ENVIRONMENT,version:null!==(r=c.r.DATADOG_APPLICATION_VERSION)&&void 0!==r?r:"unknown",sessionSampleRate:null!==(n=el(c.r.DATADOG_SESSION_SAMPLE_RATE))&&void 0!==n?n:0,sessionReplaySampleRate:l,trackUserInteractions:!0,trackResources:!0,trackLongTasks:!0,defaultPrivacyLevel:"mask-user-input",trackSessionAcrossSubdomains:!0,beforeSend:e=>{if(e.error){let t=e.error;if(/Object Not Found Matching Id:\d+, MethodName:\w+, ParamCount:\d+/.test(t.message))return!1}return!0}};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(es(),{id:"datadog-loader",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:"(function(h,o,u,n,d) {\n    h=h[d]=h[d]||{q:[],onReady:function(c){h.q.push(c)}}\n    d=o.createElement(u);d.async=1;d.src=n\n    n=o.getElementsByTagName(u)[0];n.parentNode.insertBefore(d,n)\n  })(window,document,'script','https://www.datadoghq-browser-agent.com/us1/v5/datadog-rum.js','DD_RUM')"}}),(0,a.jsx)(es(),{id:"datadog-init",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:"(".concat(ei.toString(),")(").concat(JSON.stringify(i),")")}})]})};var ec=r(38221),ed=r.n(ec);let eu=[{name:"2xl",minWidth:1536},{name:"xl",minWidth:1280},{name:"lg",minWidth:1024},{name:"md",minWidth:768},{name:"sm",minWidth:640},{name:"base",minWidth:0}];function em(e){var t,r;return null!==(r=null===(t=eu.find(t=>e>=t.minWidth))||void 0===t?void 0:t.name)&&void 0!==r?r:"base"}let eg=e=>(0,a.jsx)(es(),{id:"segment-script",dangerouslySetInnerHTML:{__html:'!function(){var analytics=window.analytics=window.analytics||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","screen","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware","register"];analytics.factory=function(e){return function(){if(window.analytics.initialized)return window.analytics[e].apply(window.analytics,arguments);var i=Array.prototype.slice.call(arguments);if(["track","screen","alias","group","page","identify"].indexOf(e)>-1){var c=document.querySelector("link[rel=\'canonical\']");i.push({__t:"bpc",c:c&&c.getAttribute("href")||void 0,p:location.pathname,u:location.href,s:location.search,t:document.title,r:document.referrer})}i.unshift(e);analytics.push(i);return analytics}};for(var i=0;i<analytics.methods.length;i++){var key=analytics.methods[i];analytics[key]=analytics.factory(key)}analytics.load=function(key,i){var t=document.createElement("script");t.type="text/javascript";t.async=!0;t.src="https://'.concat(c.r.SEGMENT_CDN_URL,'/analytics.js/v1/" + key + "/analytics.min.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(t,n);analytics._loadOptions=i};
1analytics._writeKey="').concat(c.r.SEGMENT_WEB_WRITE_KEY,'";;analytics.SNIPPET_VERSION="5.2.0";\nanalytics.load("').concat(c.r.SEGMENT_WEB_WRITE_KEY,'",{\n    obfuscate: true,\n    integrations: {\n        "All": ').concat(e.enableAdPixels?"true":"false",',\n        "Segment.io": { apiHost: "').concat(c.r.SEGMENT_API_URL,'" }\n    }\n});\nanalytics.page();\n}}();')}}),eh={default:"68e6c615a0f1b1cbc8734281",canada:"69df9e67f096ab00566bfbe9"},ex="https://seo-fixer.writesonic.com",ep=()=>{let e=eh[s.j.getCurrentBrandData().id];return e?(0,a.jsx)(es(),{id:"wsAiSeoMb",src:"".concat(ex,"/site-audit/fixer-script/index.js"),strategy:"afterInteractive",onLoad:()=>{var t;null===(t=window.wsSEOfixer)||void 0===t||t.configure({hostURL:ex,siteID:e})}}):null};var ef=r(94335);class eb{static async setAuthStatus(e,t){try{let r=await ef.A.post("/api/set-auth",{secret:e,accessLevel:t},{withCredentials:!0});return 200===r.status}catch(e){var r,a;return ef.A.isAxiosError(e)&&(null===(r=e.response)||void 0===r?void 0:r.data)&&console.log(null===(a=e.response)||void 0===a?void 0:a.data),!1}}static async verifyAuthStatus(e){try{let t=await ef.A.post("/api/verify-auth",{accessLevel:e},{withCredentials:!0});return 200===t.status}catch(e){var t,r;return ef.A.isAxiosError(e)&&(null===(t=e.response)||void 0===t?void 0:t.data)&&console.log(null===(r=e.response)||void 0===r?void 0:r.data),!1}}static extractAccountNumber(e){if(!e)return null;let t=e.replace(/^#/,"").match(this.accountNumberRegex);if(t){let e=t[0];return e.toUpperCase().startsWith("SP")||(e="SP"+e),e.toUpperCase()}return null}static isValidEmail(e){return/^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i.test(e)}}eb.accountNumberRegex=/^#?(SP)?\d+(?:-\d+)?$/i;var ev=r(452),ey=r(45972);let ew={src:"/_next/static/media/apple-touch-icon.506c23e2.png"};var ej=r(75823);let ek=e=>{let{accessLevel:t,isAuthenticating:r,onSuccess:l}
1=e,[i,o]=(0,n.useState)(""),[c,u]=(0,n.useState)(!1),[m,g]=(0,n.useState)(r),x=(0,n.useRef)(!1),{useEmailForValidation:p,validationMessages:f}=s.j.getCurrentBrandData(),b="AccountAccessPreferred"===t?"accountAccessPreferred":"default",v=f.labelText[b]||"Please enter your information*",y=f.errorText[b]||"Please check your information again.",w=e=>eb.accountNumberRegex.test(e),j=async e=>{e.preventDefault(),x.current||(x.current=!0,g(!0),(i.toLowerCase().includes("welovepets")||(p?i.includes("@"):w(i)))&&await eb.setAuthStatus(i,t)?null==l||l():u(!0),g(!1),x.current=!1)};return(0,a.jsx)("section",{children:(0,a.jsx)(h.A,{children:(0,a.jsx)("div",{className:"mt-12 flex flex-col justify-center md:min-h-[320px] xl:min-h-[480px]",children:(0,a.jsxs)("div",{className:"m-auto max-w-2xl xl:max-w-3xl",children:[(0,a.jsx)("h1",{className:"text-md font-bold md:text-center md:text-lg",children:"Get Access with your Spot\xa0Account"}),(0,a.jsxs)("form",{noValidate:!0,className:"mt-4 w-full md:mt-8",onSubmit:j,children:[(0,a.jsx)("label",{className:"mb-2 ml-1 text-button-md font-medium",htmlFor:"perks-login",children:v}),(0,a.jsxs)("div",{className:"flex w-full flex-col items-center gap-12 whitespace-nowrap md:flex-row md:gap-8",children:[(0,a.jsx)("div",{className:"form-control relative w-full",children:(0,a.jsx)(ej.A,{type:p?"email":"text",value:i,onChange:e=>{e.preventDefault(),c&&u(!1),o(e.target.value.trim())},error:c?y:void 0,placeholder:p?"[email protected]":"Account ID",id:"perks-login"})}),(0,a.jsx)("div",{children:(0,a.jsx)(C.$,{title:"Get Access",type:"submit",disabled:r||m,loading:m})})]})]}),(0,a.jsx)("div",{className:"mt-8 flex flex-col gap-2 text-[8px]",children:(0,a.jsxs)("p",{children:["By entering your ",p?"‘Email Address’":"‘Account ID’"," above or emailing"," ",(0,a.jsx)("a",{href:"mailto:[email protected]",className:"underline",children:"[email protected]"})," ","you agree that Spot Pet Insurance and its affiliates may communicate with you via email, through the email provided to Spot. Your information is collected and used in accordance with Spot Pet Insurance ",(0,a.jsx)(d.i,{href:"/privacy",children:"Privacy Policy"}),". Purchase of pet insurance is not a condition of being able to access Perks. This page is bound to official ",(0,a.jsx)(d.i,{href:"/perks-terms",children:"terms"}),"."]})})]})})})})};var eN=r(84470),eA=r(18987);let eS=e=>{let{isBuilderPage:t}
1=e,r=(0,o.useRouter)(),a=eN.j.builder,[s,l]=(0,n.useState)(void 0),[i,d]=(0,n.useState)(void 0),u="cta-click-utility",m=(0,n.useCallback)(e=>["/employers","/agency-info","/about-us","/careers","/member-center",c.r.MEMBER_CENTER_URL_ROOT,"/contact","/claims-form","/newsroom","/news","https://help.spotpet.com/","https://www.linkedin.com/","tel:"].some(t=>e.startsWith(t)),[]);(0,n.useEffect)(()=>{if(t){let e=a.getVisitorId();e&&eA.A.set("builderVisitorId",e)}},[a,t]),(0,n.useEffect)(()=>{let e=async()=>{try{let e=await a.getContent(c.r.BUILDER_IO_PAGE_MODEL).promise();if(e.length){let t=e[0];l(t.id),(null==t?void 0:t.testVariationId)&&d(t.testVariationId)}}catch(e){console.error("Error fetching content: ",e)}};t&&e()},[a,t]),(0,n.useEffect)(()=>{let e=e=>{let t=e.getAttribute("href");if(!t)return;let r=!t.startsWith("/")&&!t.startsWith("#")&&!t.startsWith("".concat(window.location.origin))&&!t.startsWith("tel:")&&!t.startsWith("mailto:");if(m(t)&&!t.startsWith("/")&&(t.startsWith("tel:")||!t.startsWith("".concat(window.location.origin))))try{a.track(u)}catch(e){console.error("Error tracking external utility link click:",e)}else if(r)try{a.track("cta-click-outbound")}catch(e){console.error("Error tracking external link click:",e)}},n=t=>{let r=t.target.closest("a");r&&e(r)},l=e=>{try{let t="/quote"===e||e.startsWith("/quote?")?"cta-click-check-price":"cta-click-subpage";m(e)&&(t=u),a.track(t),s&&a.trackInteraction(s,i)}catch(e){console.error("Error tracking route change:",e)}};if(t)return document.addEventListener("click",n),r.events.on("routeChangeStart",l),()=>{document.removeEventListener("click",n),r.events.off("routeChangeStart",l)}},[a,s,t,r,i,m])};var eI=r(2600);let eP="production"===c.r.ENVIRONMENT,eC=c.r.DISABLE_SEARCH_ENGINE_INDEXING,e_=s.j.getCurrentBrandData(),eE=c.r.CANONICAL_URL_ROOT+"/_next/static/media/social-card.efb7e14d.png",eR=e=>{var t,r,s;let{displayLogoOnly:l=!1,displayPhone:u=!0,accessLevel:m,isBuilderPage:h,datadogReplaySampleRate:x,employerPhoneNumber:p=!1,dataDogViewName:f,customCtaText:b,customCtaLink:v,customPhoneNumber:y,mainWrapperClass:w}=e,[j,k]=(0,n.useState)(!1),N=e_.name,A=e.description,S=(0,P.tN)(),I=null!==(t=e.canonicalURL)&&void 0!==t?t:S,C=null!==(r=e.featuredImageURL)&&void 0!==r?r:eE,_=(0,o.useRouter)(),{isAuthenticated:E,isAuthenticating:D,shouldVerify:T,setShouldVerify:L,setLastValidationTime:O}=function(e){let{accessLevel:t}=e,{replace:r,isReady:a,query:s}=(0,o.useRouter)(),l=s.accountNumber,i=Array.isArray(l)?l[0]:l,c=!t||"PublicAccess"===t,d=(0,n.useRef)(!1),u=(0,n.useRef)(!1),[m,g]=(0,n.useState)("AccountAccessOnly"===t||"AccountAccessPreferred"===t),[h,x]=(0,n.useState)(null),[p,f]=(0,n.useState)(c),[b,v]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{"PublicAccess"!==t&&(g(!0),x(Date.now()))},[t,p]),(0,n.useEffect)(()=>{let e=async e=>{if(u.current=!0,v(!0),!e){let{accountNumber:e,...t}=s;await r({query:{...t}},void 0,{shallow:!0}),u.current=!1;return}if(await eb.setAuthStatus(e,t)){g(!0),x(Date.now());let{accountNumber:e,...t}=s;await r({query:{...t}},void 0,{shallow:!0})}v(!1),u.current=!1};i&&!u.current&&a&&e(eb.extractAccountNumber(i))},[t,i,p,c,a,s,r]),(0,n.useEffect)(()=>{if(c){f(!0);return}let e=async()=>{d.current=!0,f(await eb.verifyAuthStatus(t)),v(!1),d.current=!1};m&&h&&!d.current&&(v(!0),e())},[t,c,h,m]),{isAuthenticated:p,shouldVerify:m,setShouldVerify:g,setLastValidationTime:x,isAuthenticating:b}}({accessLevel:m}),{breakpoint:U}=function(){let[e,t]=(0,n.useState)(window.innerWidth),[r,a]=(0,n.useState)(()=>em(e));return(0,n.useEffect)(()=>{let e=ed()(()=>{let e=window.innerWidth;t(e),a(em(e))},50);return e(),window.addEventListener("resize",e),()=>{e.cancel(),window.removeEventListener("resize",e)}},[]),{breakpoint:r}}();if((0,n.useEffect)(()=>{R.F.initializeTrackingParams()},[]),eS({isBuilderPage:!!h}),e.title){if(!1===(null!==(s=e.appendBrandToTitle)&&void 0!==s?s:e_.appendBrandToTitle))N=e.title;else{let t=" | ".concat(e_.name);N=(e.title.endsWith(t)?e.title.slice(0,-t.length):e.title)+t}}return(0,eI.G)(f),!function(e){let{pollingDurationMs:t,pollingIntervalMs:r,ddActionName:a,onPollingEnd:s,isEnabled:l=!0,debugMode:i=!1,routeChangeDelayMs:c=1e3}=e,d=(0,o.useRouter)(),{asPath:u}
1=d,[m,g]=(0,n.useState)(null),[h,x]=(0,n.useState)(!1),[p,f]=(0,n.useState)(!1),[b,v]=(0,n.useState)(u),[y,w]=(0,n.useState)({}),[j,k]=(0,n.useState)(0),[N,A]=(0,n.useState)(null),S=(0,n.useRef)(new Set),I=(0,n.useRef)(new Set),P=(0,n.useRef)(s),C=(0,n.useRef)(a),_=(0,n.useRef)(null),E=(0,n.useRef)(null),D=(0,n.useRef)(null),T=(0,n.useRef)(null);(0,n.useEffect)(()=>{P.current=s},[s]),(0,n.useEffect)(()=>{C.current=a},[a]);let L=(0,n.useCallback)(function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),a=1;a<t;a++)r[a-1]=arguments[a];i&&console.log("[PollBuilderCookie] ".concat(e),...r)},[i]);(0,n.useEffect)(()=>{let e=e=>{L("Route change started to: ".concat(e))},t=e=>{L("Route change completed to: ".concat(e)),D.current&&clearTimeout(D.current),v(e),D.current=setTimeout(()=>{L("Processing delayed route change to: ".concat(e)),A(e),D.current=null},c)};return d.events.on("routeChangeStart",e),d.events.on("routeChangeComplete",t),()=>{d.events.off("routeChangeStart",e),d.events.off("routeChangeComplete",t),D.current&&clearTimeout(D.current)}},[d.events,L,c]),(0,n.useEffect)(()=>{null!==N&&(L("Resetting state for path: ".concat(N)),_.current&&(clearInterval(_.current),_.current=null),E.current&&(clearTimeout(E.current),E.current=null),x(!1),g(null),f(!1),L("Forcing new polling cycle for path: ".concat(N)),k(e=>e+1),A(null))},[N,L]);let O=(0,n.useCallback)(()=>{var e;let t=null!==(e=eA.A.get("builderSessionId"))&&void 0!==e?e:"",r=eA.A.get(),a={},n=0;for(let e in r)if(e.startsWith("builder.tests.")){let t=e.replace("builder.tests.",""),s=r[e];s&&(a[t]=s,n++,L("Found builder test cookie: ".concat(e,"=").concat(s)))}return L("Total builder tests found: ".concat(n)),{sessionId:t,tests:a}},[L]),U=(0,n.useCallback)(async()=>{if(S.current.has(b))return L("Already processing ".concat(b,", skipping duplicate check")),!1;S.current.add(b),L("Checking for Builder cookies on path: ".concat(b));let e=O(),t=Object.keys(e.tests).length;if(0===t)return L("No builder test cookies found on path: ".concat(b)),g(null),f(!1),x(!1),S.current.delete(b),P.current&&P.current(!1),!1;L("Processing ".concat(t," builder test cookies on path: ").concat(b)),g(e),f(!0),x(!1);let r=y[b];if(I.current.has(b)||r&&r.hasReported)L("DataDog action already sent for path ".concat(b,", skipping duplicate send"));else{L("No previous report for path ".concat(b,", sending DataDog action")),I.current.add(b),w(e=>({...e,[b]:{hasReported:!0,lastReportTime:Date.now()}}));try{await R.F.setDataDogUser({builder:e}),L("Set DataDog user with builder data for path: ".concat(b)),R.F.sendDataDogAction(C.current,{builder:e}),L("Sent DataDog action: ".concat(C.current," for path: ").concat(b))}catch(e){L("Error in DataDog reporting: ".concat(e))}}return P.current&&P.current(!0,e),S.current.delete(b),!0},[O,L,b,y]);(0,n.useEffect)(()=>l?(L("Starting polling cycle #".concat(j," on path: ").concat(b)),x(!0),T.current=setTimeout(async()=>{await U()?L("Builder cookies found for path: ".concat(b)):(L("Starting interval polling for path ".concat(b,". Duration: ").concat(t,"ms, Interval: ").concat(r,"ms")),_.current=setInterval(async()=>{await U()&&(_.current&&(clearInterval(_.current),_.current=null),E.current&&(clearTimeout(E.current),E.current=null))},r),E.current=setTimeout(async()=>{L("Polling timeout reached for path: ".concat(b)),_.current&&(clearInterval(_.current),_.current=null),!await U()&&(L("Polling ended for path ".concat(b,". No builder test cookies found within duration.")),x(!1),P.current&&P.current(!1))},t))},250),()=>{T.current&&(clearTimeout(T.current),T.current=null),_.current&&(clearInterval(_.current),_.current=null),E.current&&(clearTimeout(E.current),E.current=null),L("Cleaning up polling effect for path: ".concat(b))}):void 0,[l,t,r,L,U,b,j])}({isEnabled:h&&j,pollingDurationMs:5e3,pollingIntervalMs:500,ddActionName:"Builder Test ID Added",debugMode:!1}),(0,n.useEffect)(()=>{k(!0)},[]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(i(),{children:[(0,a.jsx)("title",{children:N}),(0,a.jsx)("link",{rel:"icon",href:ev.A.src,sizes:"any"}),(0,a.jsx)("link",{rel:"icon",href:ey.A.src,type:"image/svg+xml"}),(0,a.jsx)("link",{rel:"apple-touch-icon",href:ew.src}),(0,a.jsx)("link",{rel:"manifest",href:"/manifest.webmanifest"}
1),(0,a.jsx)("link",{rel:"preconnect",href:"https://images.ctfassets.net"}),e.description&&(0,a.jsx)("meta",{name:"description",content:A}),(0,a.jsx)("link",{rel:"canonical",href:I}),function(){var t;if(e.removeHreflang)return null;let r=null===(t=e_.alternateLanguageSites)||void 0===t?void 0:t.map((e,t)=>e.locales.map(r=>(0,a.jsx)("link",{rel:"alternate",hrefLang:r,href:M.A.getCurrentCanonicalURL(_,e.origin)},e.origin+t))).flat();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("link",{rel:"alternate",hrefLang:"x-default",href:"".concat(c.r.HREFLANG_DEFAULT_URL).concat(M.A.getCurrentPath(_))}),(0,a.jsx)("link",{rel:"alternate",hrefLang:_.locale,href:I}),r]})}(),e.noIndex||!eP||eC?(0,a.jsx)("meta",{name:"robots",content:"noindex"}):null,(0,a.jsx)("meta",{property:"og:locale",content:_.locale}),(0,a.jsx)("meta",{property:"og:type",content:"website"}),(0,a.jsx)("meta",{property:"og:title",content:N}),e.description&&(0,a.jsx)("meta",{property:"og:description",content:A}),(0,a.jsx)("meta",{property:"og:url",content:I}),(0,a.jsx)("meta",{property:"og:site_name",content:e_.name}),(0,a.jsx)("meta",{property:"og:image",content:C}),(0,a.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,a.jsx)("meta",{property:"twitter:url",content:I}),(0,a.jsx)("meta",{name:"twitter:title",content:N}),e.description&&(0,a.jsx)("meta",{name:"twitter:description",content:A}),(0,a.jsx)("meta",{name:"twitter:site",content:e_.twitterHandle}),(0,a.jsx)("meta",{name:"twitter:creator",content:e_.twitterHandle}),(0,a.jsx)("meta",{name:"twitter:image",content:C}),(0,a.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),(0,a.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:""})]}),(0,a.jsxs)("div",{className:"SiteContainer flex min-h-screen flex-col",children:[(0,a.jsx)(z,{displayCTA:e.displayHeaderCTA,displayLogoOnly:l,displayPhone:u,employerPhoneNumber:p,breadcrumbs:e.breadcrumbs,isBuilderPage:!!h,breakpoint:U,customCtaText:b,customCtaLink:v,customPhoneNumber:y}),(0,a.jsx)("main",{className:(0,g.A)("flex flex-1 flex-col gap-12 md:gap-18",w),children:E?e.children:(0,a.jsx)(ek,{accessLevel:m,onSuccess:()=>{T||L(!0),O(Date.now())},isAuthenticating:D})}),(0,a.jsx)(ea,{customCtaLink:v}),_.isPreview?(0,a.jsxs)("div",{className:"fixed inset-x-0 bottom-0 z-50 flex items-center bg-accent-primary px-3 py-1 text-accent-contrast",children:[(0,a.jsx)("div",{className:"flex-1",children:"Preview"}),(0,a.jsx)("div",{className:"text-xs",children:(0,a.jsx)(d.i,{href:"/api/leave-preview",children:"Leave"})})]}):null]}),(0,a.jsx)(eg,{enableAdPixels:e.enableTracking}),(0,a.jsx)(eo,{replaySampleRate:x}),(0,a.jsx)(ep,{})]})}},19791:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var a=r(74848);r(96540);var n=r(65314),s=r.n(n);let l=e=>{let{children:t,disablePadding:r=!1,className:n="",...l}=e;return(0,a.jsx)("div",{className:"".concat(s().Container," ").concat(r?"":s().WithPadding," ").concat(n),...l,children:t})}},75823:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var a=r(74848),n=r(96540);let s=e=>{let{inputSize:t,onChange:r,onBlur:s,value:l="",icon:i,label:o,...c}=e,d=()=>String(l),[u,m]=(0,n.useState)(null),[g]=(0,n.useState)(d()),[h,x]=(0,n.useState)(d()),p=(0,n.useRef)(null);(0,n.useEffect)(()=>{let e=p.current;e&&["text","search","password","tel","url"].includes(e.type)&&l!==g&&e.setSelectionRange(u,u)},[p,u,l,g]);let f=!!i,b=f?"pl-9":"",v=f?"left-9":"left-3";return(0,a.jsxs)("div",{className:"Input-wrapper relative w-full",children:[f&&(0,a.jsx)("div",{className:"Input-icon absolute top-[50%] left-3 -translate-y-1/2",children:i}),(0,a.jsx)("input",{ref:p,id:e.name,value:h,onChange:e=>{e.target.selectionStart&&m(e.target.selectionStart),x(e.target.value.replace(/(\r\n|\n|\r)/gm,"")),r&&r(e)},onBlur:e=>{s&&s(e)},...c,className:"Input z-10 h-10 w-full rounded-lg border  border-border-light px-3 text-base text-text-primary shadow-sm ".concat(b," placeholder-shown:bg-white placeholder:text-white")}),o&&(0,a.jsx)("label",{htmlFor:e.name,className:"Input-label pointer-events-none absolute top-3 -mt-1 origin-center cursor-text select-none text-body2 font-bold text-text-disabled transition-all duration-100 ease-in-out ".concat(v," ").concat(e.value&&"pointer-events-none opacity-0"),children:o}
1),!!c.error&&(0,a.jsxs)(a.Fragment,{children:["hidden"!==c.error&&(0,a.jsx)("p",{className:"pl-0.5 absolute left-1 -bottom-5 w-full text-xs text-accent-primary",children:c.error}),(0,a.jsx)("div",{className:"absolute right-4 top-3 h-4 w-4 origin-center animate-ping rounded-full  bg-accent-primary"})]})]})}},93504:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var a=r(74848),n=r(13368),s=r.n(n),l=r(62465),i=r(33263);let o=e=>{let{crumb:t}=e,{text:r,url:n,isActive:s}=t;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("li",{className:"Breadcrumb text-accent-secondary-ada last:text-text-primary-ada",children:(0,a.jsx)(l.i,{href:n,className:"no-underline",children:(0,a.jsx)("span",{children:r})})}),!s&&(0,a.jsx)("li",{className:"Breadcrumb text-accent-secondary-ada last:text-text-primary-ada",children:"/"})]})},c=e=>{let{crumbs:t}=e,r={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:t.map((e,t)=>({"@type":"ListItem",position:t+1,name:e.text,item:i.A.normalizeURL(e.url,!0).normalizedURL}))};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s(),{children:(0,a.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(r)}})}),(0,a.jsx)("nav",{"aria-label":"Breadcrumb",className:"Breadcrumbs flex flex-wrap gap-2 py-3 text-body2 font-bold tracking-body2 text-accent-contrast",children:(0,a.jsx)("ul",{className:"flex flex-wrap gap-2 text-body2 font-bold tracking-body2",children:t.map((e,t)=>(0,a.jsx)(o,{crumb:e},"".concat(e.text,"-").concat(t)))})})]})}},6351:(e,t,r)=>{"use strict";r.d(t,{$:()=>l});var a=r(74848),n=r(62465),s=r(20053);let l=e=>{let{style:t,title:r,href:l,target:o,rel:c,addArrow:d,inline:u,className:m,disabled:g,loading:h=!1,type:x="button",onClick:p,id:f,linkWrapperClass:b,textWrapperClass:v,buttonAnimation:y}=e,w="shimmer"===y&&(0,a.jsx)("div",{className:"pointer-events-none absolute left-0 top-1/2 z-20 h-[200%] w-[57px] animate-shimmer-button-loop",style:{background:"linear-gradient(270deg, rgba(255, 255, 255, 0.00) 0%, rgba(255, 255, 255, 0.75) 50%, rgba(255, 255, 255, 0.00) 100%)",transform:"translateY(-50%) rotate(15deg)",mixBlendMode:"color-dodge"}}),j=(0,a.jsxs)("span",{className:(0,s.A)("button w-full ".concat("Link"!==t&&"shadow-xs"," md:w-auto ").concat(null!=t?t:"Primary"," ").concat((null!=t?t:"Surface")?"bg-background-surface":""," \n            ").concat(null!=t?t:"outline-secondary"," cursor-pointer\n            ").concat(u?"inline-flex":"flex md:inline-flex"," items-center justify-center py-3 ").concat(null!=m?m:"font-semibold"),"relative z-10","shimmer"===y&&"overflow-hidden"),children:[w,(0,a.jsx)("span",{className:"flex-1 px-10 text-center ".concat(d?"pl-16 pr-6":h?"pl-10 pr-3":""," ").concat(null!=v?v:""),children:r}),h?(0,a.jsx)(i,{}):d?(0,a.jsx)("span",{className:"pr-4",children:(0,a.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M11.2927 5.45964C11.6833 5.06912 12.3164 5.06912 12.7069 5.45964L18.5403 11.293C18.7278 11.4805 18.8332 11.7349 18.8332 12.0001C18.8332 12.2653 18.7278 12.5197 18.5403 12.7072L12.7069 18.5405C12.3164 18.931 11.6833 18.931 11.2927 18.5405C10.9022 18.15 10.9022 17.5168 11.2927 17.1263L15.419 13.0001H6.1665C5.61422 13.0001 5.1665 12.5524 5.1665 12.0001C5.1665 11.4478 5.61422 11.0001 6.1665 11.0001H15.419L11.2927 6.87385C10.9022 6.48333 10.9022 5.85017 11.2927 5.45964Z",fill:"currentColor"})})}):null]}),k=j,N="bg-accent-primary absolute rounded-full";return("heartbeat"===y?k=(0,a.jsxs)("div",{className:"group relative inline-flex w-full justify-center md:w-auto",children:[(0,a.jsx)("div",{className:(0,s.A)("z-30 animate-heartbeat-sm",N)}),(0,a.jsx)("div",{className:(0,s.A)("z-20 animate-heartbeat-md",N)}),(0,a.jsx)("div",{className:(0,s.A)("z-10 animate-heartbeat-lg",N)}),(0,a.jsx)("div",{className:"relative z-40",children:j})]}):"shimmer"===y&&(k=(0,a.jsxs)("div",{className:"group relative inline-flex w-full justify-center md:w-auto",children:[(0,a.jsx)("div",{className:(0,s.A)("absolute -inset-[2px] z-0 overflow-hidden rounded-full bg-[#A8280A]"),children:(0,a.jsx)("div",{className:"pointer-events-none absolute top-1/2 h-[200%] w-[57px] animate-shimmer-border-loop",style:{background:"linear-gradient(270deg, rgba(255, 255, 255, 0.00) 0%, rgba(255, 255, 255, 0.85) 50%, rgba(255, 255, 255, 0.00) 100%)",transform:"translateY(-50%) rotate(-15deg)"}})}),j]})),l)?(0,a.jsx)(n.i,{href:l,target:o,rel:c,className:(0,s.A)("button-link",b),children:k}):(0,a.jsx)("button",{type:x,onClick:p,className:"button ".concat(null!=m?m:""),disabled:g,id:f,children:k})};function i(){return(0,a.jsxs)("svg",{className:"text-white -ml-1 mr-3 h-5 w-5 animate-spin",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,a.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,a.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}},53723:(e,t,r)=>{"use strict";r.d(t,{p:()=>c});var a=r(74848);r(96540);var n=r(29965),s=r.n(n),l=r(85015),i=r.n(l),o=r(33263);let c=e=>{var t,r,n,l,c,d,u,m,g;if(!e.image)return null;let h=function(e,t){var r,a,n,s;let l,c,d,u,m,g,h;
1if(i()(e)){let t=o.A.normalizeURL(e);l=t.normalizedURL,c=e,d=o.A.extractFileExtension(e),t.isExternal&&(u=o.A.getPlaceholderImageURL(t.normalizedURL))}else if(null===(a=e.fields)||void 0===a?void 0:null===(r=a.file)||void 0===r?void 0:r.url)(l=e.fields.file.url).startsWith("http")||(l="https:"+l),c=l,u=o.A.getPlaceholderImageURL(l),m=e.fields.description,g=null===(n=e.fields.file.details.image)||void 0===n?void 0:n.width,h=null===(s=e.fields.file.details.image)||void 0===s?void 0:s.height,d=e.fields.file.contentType;else{let t=e.default?e.default:e;l=t,c=t.src,g=t.width,h=t.height,d=o.A.extractFileExtension(t.src)}return{image:l,type:d,key:c,blurDataURL:u,alt:null!=t?t:m,width:g,height:h}}(e.image,e.alt),x=null!==(t=e.isDecorative)&&void 0!==t?t:!h.alt;x||h.alt||console.warn("Non-decorative images require a valid alt tag.");let p=null!==(r=e.fill)&&void 0!==r&&r,f=p?void 0:null!==(n=e.width)&&void 0!==n?n:h.width,b=p?void 0:null!==(l=e.height)&&void 0!==l?l:h.height,v={...e.style,maxWidth:"100%",...p?{}:{height:"auto"}};p&&(v.position="absolute",v.top=0,v.left=0,v.bottom=0,v.right=0,v.objectFit=null!==(c=e.objectFit)&&void 0!==c?c:"cover",v.objectPosition=null!==(d=e.objectPosition)&&void 0!==d?d:"center"),h.width&&h.height&&([h.width,h.height]=function(e,t){let r=e/t;if(e>2048&&(t=(e=2048)/r),t>2048){let r=e/t;e=(t=2048)*r}return[e,t]}(h.width,h.height));let y=!!h.type&&(h.type.includes("gif")||h.type.includes("svg")),w=!!h.type&&!h.type.includes("svg");return(0,a.jsx)(s(),{className:e.className,src:h.image,priority:e.priority,fetchPriority:e.priority?"high":void 0,width:f,height:b,title:e.title,alt:x?"":null!==(u=h.alt)&&void 0!==u?u:"",fill:p||void 0,blurDataURL:w?h.blurDataURL:void 0,placeholder:w?"blur":void 0,unoptimized:y,sizes:w?"(max-width: 768px) ".concat(null!==(m=e.mobileViewWidthPercent)&&void 0!==m?m:75,"vw, ").concat(null!==(g=e.desktopViewWidthPercent)&&void 0!==g?g:75,"vw"):void 0,style:v,itemProp:e.itemProp},h.key)}},62465:(e,t,r)=>{"use strict";r.d(t,{i:()=>d});var a=r(74848),n=r(96540),s=r(91106),l=r.n(s),i=r(46637),o=r(33263),c=r(26135);let d=e=>{var t;let{href:r,className:s,title:d,target:u,rel:m,id:g,children:h,...x}=e,p=o.A.normalizeURL(e.href),f=i.r.LINK_FOLLOW_DOMAIN_WHITELIST.some(e=>e&&-1!==p.normalizedURL.indexOf(e)),b=/\.[^\/\s]+$/.test(p.normalizedURL),v=null!=u?u:b||p.isExternal&&p.isWebURL?"_blank":void 0,y=null!=m?m:p.isExternal&&!f?"nofollow noopener":void 0,w=null!==(t=e["aria-label"])&&void 0!==t?t:d,j=1===n.Children.count(h)?h:(0,a.jsx)("span",{children:h}),k=()=>null;c.l4&&(k=()=>{if(g&&g in c.l4.idMappings)return c.l4.idMappings[g];for(let[e,t]of Object.entries(c.l4.pathMappings))if(p.normalizedURL.includes(e))return t;for(let{pattern:e,name:t}of c.l4.patternMappings)if(e.test(p.normalizedURL))return t;return null});let N=k(),A={id:g,href:p.normalizedURL,target:v,rel:y,className:s,title:d,"aria-label":w,...N?{"data-dd-action-name":N}:{},...x};return"/quote"===o.A.extractPathname(p.normalizedURL)?(0,a.jsx)("a",{...A,children:j}):(0,a.jsx)(l(),{...A,children:j})}},51245:(e,t,r)=>{"use strict";r.d(t,{tN:()=>u,Wr:()=>n,Mq:()=>i});var a=r(96540);let n=(e,t)=>{(0,a.useEffect)(()=>{let r=r=>{!e.current||e.current.contains(r.target)||t(r)};return document.addEventListener("mousedown",r),document.addEventListener("touchstart",r),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("touchstart",r)}},[e,t])};var s=r(38221),l=r.n(s);let i=()=>{let[e,t]=(0,a.useState)(0);return(0,a.useEffect)(()=>{let e=l()(()=>{t(window.pageYOffset)},150,{leading:!0});return window.addEventListener("scroll",e),e(),()=>window.removeEventListener("scroll",e)},[]),e};var o=r(86715),c=r(46637),d=r(33263);let u=()=>{let e=(0,o.useRouter)();return d.A.getCurrentCanonicalURL(e,c.r.CANONICAL_URL_ROOT)}},5996:(e,t,r)=>{"use strict";r.d(t,{S:()=>s});var a=r(96540),n=r(24416);let s=e=>{let{quoteId:t,quotePetCount:r=0}=(0,n.o)();return(0,a.useMemo)(()=>t&&r>0?"Finish My Plan":e||"Click For Price",[r,e,t])}},2600:(e,t,r)=>{"use strict";r.d(t,{G:()=>n});var a=r(96540);function n(e){let t=(0,a.useRef)(void 0);(0,a.useEffect)(()=>
1{if(e&&e&&e!==t.current){var r;t.current=e,null===(r=window.DD_RUM)||void 0===r||r.onReady(()=>{var t;null===(t=window.DD_RUM)||void 0===t||t.setViewName(e)})}},[e])}},84470:(e,t,r)=>{"use strict";r.d(t,{j:()=>i});var a=r(19293),n=r(14953),s=r.n(n),l=r(46637);a.cL.init(l.r.BUILDER_IO_PUBLIC_API_KEY);class i{static async getPage(e){let{slug:t,locale:r,preview:a=!1}=e,n=await i.builder.get(l.r.BUILDER_IO_PAGE_MODEL,{userAttributes:{urlPath:t,locale:r},options:{locale:r},prerender:!1,staleCacheSeconds:a?1:void 0,preview:a,cachebust:a}).toPromise();return i.optimizeContentPayload(n)}static optimizeContentPayload(e){if(!e)return e;let t=i.resolveWonABTest(e);return i.optimizeImagesForSeo(t)}static resolveWonABTest(e){if(!(null==e?void 0:e.variations)||"object"!=typeof e.variations)return e;let t=Object.values(e.variations).find(e=>(null==e?void 0:e.testRatio)===1);if(!(null==t?void 0:t.data))return e;let r={...e,data:t.data,variationId:t.id,testVariationId:t.id,testVariationName:t.name||""};return delete r.variations,r}static optimizeImagesForSeo(e){var t;if(!(null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.blocks))return e;let r=!1,a=e=>{var t,n;if(Array.isArray(e)){e.forEach(a);return}e&&"object"==typeof e&&((null===(t=e.component)||void 0===t?void 0:t.name)!=="Image"||(e.component.options=null!==(n=e.component.options)&&void 0!==n?n:{},r||(r=!0,e.component.options.highPriority=!0,e.component.options.lazy=!1),e.component.options.altText||(e.component.options.altText="")),Object.values(e).forEach(a))};return a(e.data.blocks),e}static async getAllPageSlugs(e){let{locale:t,preview:r=!1}=e;return await i.builder.getAll(l.r.BUILDER_IO_PAGE_MODEL,{fields:"data.url",locale:t,options:{noTargeting:!0}})}}i.builder=a.cL,a.M$.registerComponent(s()(()=>Promise.all([r.e(8475),r.e(5234)]).then(r.bind(r,65234)),{loadableGenerated:{webpack:()=>[65234]}}),{name:"Spot Quote Widget",description:"Embeddable quote widget that shows a pet insurance quote form. Includes fallback image support and conditional rendering based on existing quotes.",image:"https://tabler-icons.io/static/tabler-icons/icons-png/forms.png",inputs:[{name:"baseUrl",type:"string",defaultValue:"https://quote.spotpet.com",helperText:"Base URL for the quote widget (e.g., https://quote.spotpet.com or https://quote.spotpet.dev)",required:!1},{name:"redirectUrl",type:"string",defaultValue:"/quote",helperText:"Redirect URL after quote completion. Defaults to /quote which preserves tracking params.",required:!1},{name:"containerClassName",type:"string",defaultValue:"bg-background-surface/90 backdrop-blur-[6px] max-w-full rounded-xl md:min-h-[680px] lg:min-h-[660px]",helperText:"Tailwind CSS classes for styling the widget container",required:!1},{name:"fallbackImageUrl",type:"file",allowedFileTypes:["jpeg","jpg","png","webp","svg"],helperText:"Image to display when user already has a quote (optional - if not provided, nothing will show)",required:!1},{name:"fallbackImageAlt",type:"string",defaultValue:"",helperText:'Alt text for the fallback image. Leave empty for decorative images (renders alt="" with role="presentation" so screen readers skip it)',required:!1},{name:"fallbackImageClassName",type:"string",defaultValue:"w-full h-auto",helperText:"CSS classes for the fallback image container",required:!1},{name:"welcomeBackCtaUrl",type:"string",defaultValue:"https://quote.spotpet.com/forms/quote-ptz-us",helperText:"Welcome Back variant: entry URL for the quote app. quoteId is appended automatically; spot-quote-next reads quote.lastStepID and resumes the user at their last step (with a billing-step freshness override after MAX_RETURN_TO_QUOTE_MINUTES).",required:!1}]})},63790:(e,t,r)=>{"use strict";r.d(t,{F:()=>o});var a=r(18987),n=r(33263),s=r(46637);class l{static getBuilderTests(){let e=a.A.get(),t=[];for(let r in e)if(r.startsWith("builder.tests.")){let a=r.replace("builder.tests.",""),n=e[r];a&&n&&t.push({testId:a,variantId:n})}return t}static formatBuilderTestsAsParams(e){let t={};for(let r of e)t["builderVariant.".concat(r.testId)]=r.variantId;return t}
1static getBuilderTestParams(){let e=l.getBuilderTests();return l.formatBuilderTestsAsParams(e)}static getBuilderTestsFromCookieString(e){let t=[];if(!e)return t;let r=e.split(";").reduce((e,t)=>{let[r,a]=t.trim().split("=").map(e=>{try{return decodeURIComponent(e)}catch(t){return e}});return r&&(e[r]=a||""),e},{});for(let e in r)if(e.startsWith("builder.tests.")){let a=e.replace("builder.tests.",""),n=r[e];a&&n&&t.push({testId:a,variantId:n})}return t}static parseBuilderTestQueryParams(e){let t=[];for(let[r,a]of Object.entries(e))if(r.startsWith("builderVariant.")){let e=r.replace("builderVariant.","");t.push({testId:e,variantId:a})}return t}}let i=["pcode","PCODE","pCode","adref","clickref","aff_id","rsCode","rsEngagementMedium","rsShareMedium"];class o{static getCookieDomain(){if(!window.location.hostname.includes(".amplifyapp.com"))return s.r.COOKIE_DOMAIN}static isSecureContext(){let e=window.location.hostname;return!e.includes("localhost")&&"127.0.0.1"!==e}static initializeTrackingParams(){let e=n.A.getQueryParameters();o.setSessionTrackingParams(e);let t=o.getPersistentTrackingParams();for(let r of i)r in e&&(t[r]=e[r]);o.setPersistentTrackingParams(t)}static setPersistentTrackingParams(e){let t=JSON.stringify(e);try{localStorage.setItem("trackingParams",t)}catch(e){console.log("Unable to setPersistentTrackingParams in localstorage",e)}try{let e={path:"/",secure:o.isSecureContext(),expires:365,sameSite:"Lax"},r=o.getCookieDomain();r&&(e.domain=r),a.A.set("trackingParams",t,e)}catch(e){console.log("Unable to setPersistentTrackingParams in cookie",e)}}static getPersistentTrackingParams(){var e,t;let r={},n={};try{r=JSON.parse(null!==(e=localStorage.getItem("trackingParams"))&&void 0!==e?e:"{}")}catch(e){console.log("Unable to getPersistentTrackingParams in localStorage",e)}try{n=JSON.parse(null!==(t=a.A.get("trackingParams"))&&void 0!==t?t:"{}")}catch(e){console.log("Unable to getPersistentTrackingParams in cookie",e)}return{...n,...r}}static setSessionTrackingParams(e){let t=JSON.stringify(e);try{sessionStorage.setItem("sessionTrackingParams",t)}catch(e){console.log("Unable to setSessionTrackingParams in sessionStorage",e)}try{let e={path:"/",secure:o.isSecureContext(),sameSite:"Lax"},r=o.getCookieDomain();r&&(e.domain=r),a.A.set("sessionTrackingParams",t,e)}catch(e){console.log("Unable to setSessionTrackingParams in cookie",e)}}static getSessionTrackingParams(){var e,t;let r={},n={};try{r=JSON.parse(null!==(e=sessionStorage.getItem("sessionTrackingParams"))&&void 0!==e?e:"{}")}catch(e){console.log("Unable to getSessionTrackingParams in sessionStorage",e)}try{n=JSON.parse(null!==(t=a.A.get("sessionTrackingParams"))&&void 0!==t?t:"{}")}catch(e){console.log("Unable to getSessionTrackingParams in cookie",e)}return{...n,...r}}static combineQueryParams(){let e=n.A.getQueryParameters(),t=o.getSessionTrackingParams();return{...o.getPersistentTrackingParams(),...t,...e}}static collectQuoteTrackingParams(){let e={},t=o.getSessionTrackingParams();Object.assign(e,o.getPersistentTrackingParams(),t),new URLSearchParams(window.location.search).forEach((t,r)=>{e[r]=t});let r=a.A.get("quoteIdPtzUs"),n=a.A.get("quoteIdPtzCa"),s=r||n;s&&(e.quoteId=s);let i=a.A.get("builderSessionId");i&&(e.builderSessionId=i);let c=a.A.get("builderVisitorId");c&&(e.builderVisitorId=c),Object.assign(e,l.getBuilderTestParams());let d={};for(let[t,r]of Object.entries(e))""!==r&&"tuid"!==t&&(d[t]=String(r));return d}static sendDataDogAction(e,t){var r=this;let a=function(){var n,s;let l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(null===(n=window.DD_RUM)||void 0===n?void 0:n.addAction){try{window.DD_RUM.addAction(e,t)}catch(t){console.warn("TrackingUtils: Failed to send DataDog action:",{actionName:e,error:t})}return}l<r.MAX_RETRIES?setTimeout(()=>a(l+1),r.RETRY_DELAY):console.warn("TrackingUtils: Failed to send DataDog action after max retries",{actionName:e,maxRetries:r.MAX_RETRIES,hasDD_RUM:!!window.DD_RUM,hasAddActionMethod:!!(null===(s=window.DD_RUM)||void 0===s?void 0:s.addAction),properties:t})};a()}static getSegmentAnonymousId(){return this.segmentIdRetryPromise||(this.segmentIdRetryPromise=new Promise(e=>{var t=this;let r=function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,s=a.A.get("ajs_anonymous_id");if(s){e(s),t.segmentIdRetryPromise=null;return}n<t.MAX_RETRIES?setTimeout(()=>r(n+1),t.RETRY_DELAY):(console.warn("TrackingUtils: Failed to get segment anonymous ID after max retries"),e("anon_".concat(Date.now())),t.segmentIdRetryPromise=null)};r()})),this.segmentIdRetryPromise}
1static async setDataDogUser(e){try{let t={id:await this.getSegmentAnonymousId(),spotWebAttributes:{...e}};try{let e=JSON.stringify(t),r={path:"/",secure:o.isSecureContext(),sameSite:"Lax"},n=o.getCookieDomain();n&&(r.domain=n),a.A.set("spotWebDataDogUser",e,r)}catch(e){console.log("Unable to set spotWebDataDogUser in cookie",e)}window.DD_RUM&&window.DD_RUM.onReady(()=>{var e;null===(e=window.DD_RUM)||void 0===e||e.setUser(t)})}catch(e){console.warn("TrackingUtils: Error setting DataDog user:",e)}}}o.MAX_RETRIES=5,o.RETRY_DELAY=1e3,o.segmentIdRetryPromise=null},65314:e=>{e.exports={Container:"styles_Container__MQ8ru",WithPadding:"styles_WithPadding__5ELKj"}}}]);
2//# sourceMappingURL=349-37f2ecb736f3f117.js.map

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.