PageSourceSearch

https://fatebook.io/_next/static/chunks/pages/unsubscribe-98c66524d5aa77f3.js

js fatebook.io collected 2026-09-25 20:23:08 UTC 2,139 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5785],{66266:function(e,n,u){(window.__NEXT_P=window.__NEXT_P||[]).push(["/unsubscribe",function(){return u(47088)}])},47088:function(e,n,u){"use strict";u.r(n),u.d(n,{default:function(){return d},getUnsubscribeUrl:function(){return c}});var s=u(85893),i=u(90512),o=u(11163),r=u(67294),t=u(34512),l=u(36014),a=u(2962);function c(e,n){return"".concat((0,t.$)(n),"/unsubscribe?u=").concat(encodeURIComponent(null!=e?e:""))}function d(){var e,n,u;let c=(0,o.useRouter)(),d=t.h.unsubscribe.useMutation(),[b,f]=(0,r.useState)("string"==typeof(null===(e=c.query)||void 0===e?void 0:e.u)&&(null===(n=c.query)||void 0===n?void 0:n.u)||""),[v,m]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{var e,n,u;"string"==typeof(null===(e=c.query)||void 0===e?void 0:e.u)&&(null===(n=c.query)||void 0===n?void 0:n.u)&&f(null===(u=c.query)||void 0===u?void 0:u.u)},[null===(u=c.query)||void 0===u?void 0:u.u]),(0,s.jsxs)("div",{className:"px-4 pt-12 lg:pt-16 mx-auto max-w-6xl",children:[(0,s.jsx)(a.PB,{noindex:!0,nofollow:!0}),(0,s.jsxs)("div",{className:"prose mx-auto",children:[(0,s.jsx)("p",{children:v?"You have unsubscribed from Fatebook emails. Click below to resubscribe.":"Unsubscribe below to stop receiving emails from Fatebook."}),(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsx)("input",{placeholder:"Your email",disabled:d.isLoading,className:(0,i.Z)("text-md border-2 border-neutral-300 rounded-md p-2 resize-none focus:outline-indigo-700"),value:b,onChange:e=>f(e.target.value)}),(0,s.jsx)("button",{onClick:e=>{e.preventDefault(),b&&(d.mutate({userEmail:b,setUnsubscribed:!v}),m(!v))},className:"btn btn-primary",disabled:!!d.isLoading,children:v?"Resubscribe":"Unsubscribe"})]}),d.isSuccess&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("h3",{className:"text-neutral-600",children:v?"You have been unsubscribed from all emails.":"You have been resubscribed to all emails."}),(0,s.jsx)("p",{children:(0,s.jsx)("a",{href:l.I0,children:"Want to give us some feedback?"})})]})]})]})}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=66266)}),_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.