PageSourceSearch

https://rss.app/_next/static/chunks/pages/email-unsubscribe/[id]-ae3920a5406b81a4.js

js rss.app collected 2026-09-24 08:26:00 UTC 3,433 bytes, 4 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="c61543ed-0768-5a2b-a4e2-8efc46aef160")}catch(e){}}();
3(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[86410],{70441:(e,i,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/email-unsubscribe/[id]",function(){return r(72181)}])},72181:(e,i,r)=>{"use strict";r.r(i),r.d(i,{default:()=>y});var s=r(94285),n=r(67505),t=r(55646),a=r(10488),l=r(7531),o=r(60034),c=r(70597),u=r(33457),d=r(7178),m=r(18574),p=r(23650),h=r(5306),g=r(64331),b=r(1211),x=r(27128),f=r(23422),j=r(22324);let v=(0,d.n9)()(e=>({root:{display:"flex",flexDirection:"column",alignItems:"center",width:610,marginTop:60,padding:16,gap:24},buttons:{display:"flex",gap:16,[e.breakpoints.down("sm")]:{flexDirection:"column"}},errorText:{color:e.palette.error.main}})),y=function(){let e=(0,t.useRouter)(),{user:i,loading:r}=(0,h.A)(),{mutateAsync:d,isPending:y}=(0,p.uq)("post","/api/site/v1/email-preferences/unsubscribe"),[A,w]=n.useState(!1),[S,_]=n.useState(""),[k,E]=n.useState(""),[N,P]=n.useState(""),C=e.query.id,T={digests:"Email digests",reports:"Reports",alerts:"Alerts",product_news:"Product news"},R=e.query.category,O="string"==typeof R&&Object.prototype.hasOwnProperty.call(T,R)?R:void 0,U=void 0!==R&&!O,{classes:W}=v(),Y=async()=>{if(U)return void P("This unsubscribe link is invalid.");if(!O&&!i&&!S.trim())return void E("Please enter your email");if(!O&&!i&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(S.trim()))return void E("Please enter a valid email address");try{await d({body:{token:C,category:O,email:O||i?void 0:S.trim()}}),w(!0)}catch(e){f.default.captureException(e),P("Something went wrong. Please check your email and try again.")}};return A?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(g.A,{title:"Unsubscribe from RSS.app Emails"}),(0,s.jsx)(m.A,{theme:j.W.light,children:(0,s.jsx)(b.A,{disableBackground:!0,children:(0,s.jsx)(x.A,{text:O?`You successfully unsubscribed from ${T[O]}`:"You successfully unsubscribed from mailing"})})})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(g.A,{title:"Unsubscribe from RSS.app Emails"}),(0,s.jsx)(m.A,{theme:j.W.light,children:(0,s.jsx)(b.A,{disableBackground:!0,children:(0,s.jsxs)("div",{className:W.root,children:[(0,s.jsx)(c.A,{variant:"h3",fontWeight:600,align:"center",children:O?`Unsubscribe from ${T[O]}`:"Unsubscribe from RSS.app emails"}),(0,s.jsx)(c.A,{align:"center",children:O?`You will no longer receive ${T[O]} emails.`:"You will no longer receive product updates, tips, and announcements from RSS.app."}),!O&&i&&(0,s.jsx)(c.A,{align:"center",fontWeight:600,children:i.email}),!O&&!i&&!r&&(0,s.jsx)(u.A,{sx:{width:"240px"},type:"email",variant:"outlined",value:S,onChange:e=>{_(e.target.value),E(""),P("")},error:!!k,helperText:k}),N&&(0,s.jsx)(c.A,{align:"center",className:W.errorText,children:N}),(0,s.jsxs)(a.A,{className:W.buttons,children:[(0,s.jsx)(l.A,{variant:"contained",color:"primary",size:"40",onClick:Y,disabled:y||r,children:"Confirm"}),(0,s.jsx)(o.A,{variant:"outlined",size:"40",onClick:()=>{e.push("/")},disabled:y,children:"Cancel"})]})]})})})]})}}},e=>{e.O(0,[86265,21275,66311,31066,6014,37002,75315,71535,64870,75326,70545,95353,38424,23422,1211,83253,90636,46593,38792],()=>e(e.s=70441)),_N_E=e.O()}]);
4//# debugId=c61543ed-0768-5a2b-a4e2-8efc46aef160

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.