PageSourceSearch

https://ripplemind.com/_next/static/chunks/pages/email/unsubscribe/[emailUnsubscribeToken]-395eb31a30d09a34.js

js ripplemind.com collected 2026-10-06 13:16:09 UTC 2,961 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7557],{48037:function(e,s,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/email/unsubscribe/[emailUnsubscribeToken]",function(){return a(17546)}])},17546:function(e,s,a){"use strict";a.r(s),a.d(s,{default:function(){return o}});var r=a(85893),t=a(11163),n=a(67294),l=a(88446),c=a(29552),i=a(86501),u=e=>{let{emailToken:s}=e,a=(0,t.useRouter)(),[u,o]=(0,n.useState)(""),[m,d]=(0,n.useState)(""),h=async()=>{try{let e="Other"===u?m:u;if(!e){i.ZP.error("Please select or provide a reason for unsubscribing.");return}let r=await l.Z.post("".concat(c.Z.BACKEND_URL_SERVER,"/email-unsubscribe/unsubscribe-mail-by-id?unsubscribe_email_random_number=").concat(s),{email_unsubscribe_reason:e});200===r.status&&(a.push("/"),i.ZP.success("You have successfully unsubscribed from our emails."))}catch(e){i.ZP.error("An error occurred while processing your request. Please try again later.")}};return(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center mt-5 bg-gray-50 p-4",children:[(0,r.jsx)("h1",{className:"text-2xl font-bold text-gray-800 mb-4",children:"Unsubscribe"}),(0,r.jsx)("p",{className:"text-gray-600 mb-6",children:"Please tell us the reason for unsubscribing:"}),(0,r.jsxs)("div",{className:"w-full max-w-md mb-6",children:[(0,r.jsx)("label",{className:"block mb-2 text-gray-700 font-medium",children:"Reason:"}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsxs)("label",{className:"flex items-center",children:[(0,r.jsx)("input",{type:"radio",value:"I receive too many emails",checked:"I receive too many emails"===u,onChange:e=>o(e.target.value),className:"mr-2"}),"Too many emails: I receive too many emails."]}),(0,r.jsxs)("label",{className:"flex items-center",children:[(0,r.jsx)("input",{type:"radio",value:"The content is not relevant to me",checked:"The content is not relevant to me"===u,onChange:e=>o(e.target.value),className:"mr-2"}),"Not relevant: The content is not relevant to me."]}),(0,r.jsxs)("label",{className:"flex items-center",children:[(0,r.jsx)("input",{type:"radio",value:"Prefer different channel",checked:"Prefer different channel"===u,onChange:e=>o(e.target.value),className:"mr-2"}),"Prefer different channel: WhatsApp, Social Media, etc."]}),(0,r.jsxs)("label",{className:"flex items-center",children:[(0,r.jsx)("input",{type:"radio",value:"Other",checked:"Other"===u,onChange:e=>o(e.target.value),className:"mr-2"}),"Other:"]}),"Other"===u&&(0,r.jsx)("textarea",{value:m,onChange:e=>d(e.target.value),placeholder:"Please specify...",className:"w-full mt-2 p-2 border border-gray-300 rounded-md"})]})]}),(0,r.jsx)("button",{onClick:h,className:"px-6 py-3 text-white bg-red-500 rounded-lg shadow-md hover:bg-red-600 transition",children:"Unsubscribe"})]})},o=()=>{let e=(0,t.useRouter)(),{emailUnsubscribeToken:s}=e.query;return(0,r.jsx)(u,{emailToken:s})}}},function(e){e.O(0,[9774,2888,179],function(){return e(e.s=48037)}),_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.