1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[785],{2557:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/unsubscribe",function(){return r(3205)}])},3205:function(e,n,r){"use strict";r.r(n),r.d(n,{__N_SSG:function(){return m},default:function(){return v}});var s=r(7568),t=r(92),u=r(5893),i=r(7294),c=r(5553),a=r.n(c),o=r(3419),l=r(1163),f=r(6026),_=r(584),b=r(6276),d=function(){var e=(0,s.Z)((function(e){var n;return(0,t.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,_.$.post("/v1/email-unsubscribe?business=".concat(f.kR),e)];case 1:return[2,{error:!1,data:r.sent().data}];case 2:return n=r.sent(),[2,{error:!0,message:(0,b.e)(n),data:null}];case 3:return[2]}}))}));return function(n){return e.apply(this,arguments)}}(),h=r(2159),p={"cart-reminder":"Cart Reminders",marketing:"Marketing Emails"},m=!0,v=function(){var e=(0,l.useRouter)(),n=e.query,r=n.messageType,c=n.token,f=(r||"").split(",").filter(Boolean),_=(0,i.useState)(!1),b=_[0],m=_[1],v=(0,i.useContext)(h.Z).notify,g=function(){var n=(0,s.Z)((function(){var n,r,s;return(0,t.__generator)(this,(function(t){switch(t.label){case 0:return m(!0),[4,d({token:c,unsubscribeMessageTypes:f})];case 1:return n=t.sent(),r=n.error,s=n.message,r?v("error",s):(v("success","Unsubscribed successfully"),e.push("/")),m(!1),[2]}}))}));return function(){return n.apply(this,arguments)}}();return(0,u.jsx)("div",{className:a().container,children:(0,u.jsxs)("div",{className:a().card,children:[(0,u.jsx)("h1",{className:"title",children:"Unsubscribe"}),(0,u.jsxs)("p",{children:["Please confirm you want to unsubscribe from"," ",(0,u.jsx)("strong",{children:r?p[r]:"these"})," ","emails.",(0,u.jsx)("br",{})]}),(0,u.jsx)(o.Z,{onClick:g,loading:b,children:"Confirm"})]})})}},5553:function(e){e.exports={container:"unsubscribe_container__CsSev",card:"unsubscribe_card__HMyPw"}}},function(e){e.O(0,[774,888,179],(function(){return n=2557,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
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.