1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8863],{19694:(e,l,s)=>{"use strict";s.d(l,{A:()=>o});var a=s(6029),t=s(55729),i=s(26613),n=s(56352);let r=(0,t.memo)(e=>{let{content:l,className:s}=e;return l?(l.forEach((e,l)=>{var s,t;if("embed"==e.type&&(null==e||null==(s=e.oembed)?void 0:s.type)=="video"&&(null==e||null==(t=e.oembed)?void 0:t.provider_name)=="YouTube"){let l=new URLSearchParams(new URL(e.oembed.embed_url).search).get("v");void 0==l&&(l=e.oembed.embed_url.match(/(?:https:\/\/youtu.be\/)(\w+)/)[1]);let s="https://www.youtube.com/embed/".concat(l,"?feature=oembed");e.oembed.html=(0,i.F0)((0,a.jsx)(c,{src:s}))}}),(0,a.jsx)("div",{className:"rich-text ".concat(s||""),children:(0,a.jsx)(n.$,{field:l})})):null});function c(e){var l;return(0,a.jsx)("div",{className:"mx-auto video-container",children:(0,a.jsx)("iframe",{src:null!=(l=null==e?void 0:e.src)?l:"",allow:"clipboard-write; encrypted-media; fullscreen;",className:"aspect-video max-w-full",title:"YouTube video player",frameBorder:"0",loading:"lazy"})})}r.displayName="RichText";let o=r},61959:(e,l,s)=>{"use strict";s.r(l),s.d(l,{__N_SSG:()=>m,default:()=>b});var a=s(6029),t=s(51652),i=s(19694),n=s(1909),r=s(55729),c=s(79188),o=s(81278),d=s(71434),u=s.n(d),m=!0;function b(e){var l,s,d,m,b;let{page:x}=e,{register:h,handleSubmit:f}=(0,n.mN)(),[p,v]=(0,r.useState)(!1),[w,N]=(0,r.useState)(!1),[j,y]=(0,r.useState)(!1),_=(0,o.useRouter)(),g=async e=>{if((null==e?void 0:e.email)&&u().isString(null==e?void 0:e.email)){v(!0);let l=null==e?void 0:e.email.trim();await c.A.post("/api/mail/unsubscribe",{email:l}).catch(e=>{console.error("onSubmit error",{error:e}),N(!1),y(!0),v(!1)}).then(e=>{v(!1),N(!0)}).then(()=>{_.push("/mail/unsubscribe/success")})}};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(t.bV,{title:"".concat((null==x||null==(s=x.title)||null==(l=s[0])?void 0:l.text)?"".concat(null==(d=x.title[0])?void 0:d.text," | GoHealth Urgent Care"):null),noindex:!0}),(0,a.jsx)("header",{className:"hero compact-hero theme-white pb-16",children:(0,a.jsx)("div",{className:"container",children:(0,a.jsx)("header",{className:"items-center justify-center md:flex",children:(0,a.jsx)("h1",{className:"title",children:null==x||null==(b=x.title)||null==(m=b[0])?void 0:m.text})})})}),(0,a.jsxs)("section",{className:"section theme-white !py-0 xl:!pb-8 space-y-3",children:[(0,a.jsx)("div",{className:"container max-w-screen-lg flex flex-col space-y-2",children:(0,a.jsx)(i.A,{className:"prose max-w-none",content:x.body})}),(0,a.jsx)("div",{className:"container max-w-screen-lg flex flex-col space-y-2",children:(0,a.jsxs)("form",{id:"unsubscribe",className:"pt-5 lg:grid grid-cols-2 py-5",onSubmit:f(g),children:[(0,a.jsx)("label",{htmlFor:"email",className:"sr-only",children:"Email"}),(0,a.jsx)("input",{id:"email",className:"min-w-1/2 rounded-full",type:"email",placeholder:"Email Address",...h("email",{required:!0})}),(0,a.jsxs)("button",{type:"submit",disabled:p||w||j,"aria-label":"Submit email to unsubscribe",className:"\n px-8 py-2\n w-full\n m-auto\n rounded-full\n border-1 border-gray-300\n text-white text-base\n text-center\n transition-colors ".concat(j?"bg-red-500 cursor-default":w?"bg-success cursor-default":p?"bg-blue-gohealth cursor-not-allowed":"bg-blue-400 hover:bg-blue-500"),children:["Unsubscribe\xa0",(0,a.jsx)("i",{className:"".concat(j?"fa-solid fa-times":w?"fa-solid fa-check":p?"fa-solid fa-redo animate-spin":"fa-solid"," tracking-[0.01em] text-white text-base px-3")})]})]})}),(0,a.jsx)("div",{className:"container max-w-screen-lg flex flex-col space-y-2",children:(0,a.jsx)(i.A,{className:"prose max-w-none",content:null==x?void 0:x.below_form_body})})]})]})}},81130:(e,l,s)=>{"use strict";s.d(l,{A:()=>a});let a=!1},96892:(e,l,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/mail/unsubscribe",function(){return s(61959)}])}},e=>{e.O(0,[6593,6352,9188,1909,636,8792],()=>e(e.s=96892)),_N_E=e.O()}]);
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.