PageSourceSearch

https://www.gotransit.com/_next/static/chunks/pages/unsubscribe-bcc5740e8d5cea3f.js

js gotransit.com collected 2026-09-24 08:44:16 UTC 3,087 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5785],{66266:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/unsubscribe",function(){return s(77100)}])},96307:function(e,t,s){"use strict";s.d(t,{e:function(){return n}});let n="/"},77100:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSG:function(){return _},default:function(){return N}});var n=s(85893),r=s(9008),a=s.n(r),i=s(11163),l=s(67294),o=s(50899),c=s(34153),u=s(16678),d=s(47153),b=s(42739),m=s(77078),x=s(75362),f=s(57293);let h=async e=>{let t=(0,f.l)("/otg/customers/alerts/unsubscribe"),s=await fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:e})});if(!s.ok)throw Error(s.statusText);return s.json()},g=()=>["unsubscribe-otg-alerts"],p=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,x.Z)(g(),(e,t)=>{let{arg:s}=t;return h(s)},e)};var y=s(78351);let T=e=>{let{onNavigateToHomePage:t,id:s,children:n}=e,{t:r}=(0,o.$G)(),{trigger:a,isMutating:i}=p();return n({isMutating:i,onUnsubscribe:async()=>{try{if(!s)throw Error("Id is missing");await a(s),t(),setTimeout(()=>{m.Toast.success(r("TRM677"))},200)}catch(e){y.Z.error(e),m.Toast.failure(r("TRM678"))}}})};var j=s(96307);let w=()=>{let{t:e}=(0,o.$G)(),t=(0,i.useRouter)(),[s,r]=(0,l.useState)(!0),b=(0,l.useCallback)(()=>t.push(j.e),[t]),m=t.query;return(0,l.useEffect)(()=>{if(!t.isReady)return;let{id:e}=m;e||(r(!1),b())},[b,m,t]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(a(),{children:[(0,n.jsx)("title",{children:"".concat(e("TRM679")," | GO Transit")}),(0,n.jsx)("meta",{name:"robots",content:"noindex"})]}),(0,n.jsx)("div",{className:"bg-global-white mx-24 my-56 flex sm:mx-auto sm:my-[176px] sm:max-w-[704px]","data-ga-component-id":"unsubscribe-otg-alerts",children:(0,n.jsxs)("div",{className:"flex flex-col justify-center mx-auto w-full sm:w-[544px]",children:[(0,n.jsx)("h1",{className:"cx-headline-200 lg:cx-headline-100 text-global-black mb-24",children:e("TRM675.heading")}),(0,n.jsx)("p",{className:"lg:text-neutral-700 cx-body-text-large mb-24 last:mb-0 whitespace-pre-line",children:e("TRM675.description")}),(0,n.jsxs)("div",{className:"flex flex-col gap-16 md:flex-row",children:[(0,n.jsx)(T,{id:m.id,onNavigateToHomePage:b,children:r=>{let{onUnsubscribe:a,isMutating:i}=r;return(0,n.jsx)(c.Button,{type:"button",mode:"primary",disabled:!t.isReady||i||!s,label:e("TRM676.1"),onClick:a,customClasses:"inline-flex justify-center items-center gap-x-8 disabled:pointer-events-none disabled:text-common-disabled disabled:bg-neutral-300","aria-label":e("TRM676.1"),"data-testid":"unsubscribe-otg-alerts-btn",children:i&&(0,n.jsx)(d.Loader,{className:"animate-spin fill-global-white group-disabled:fill-common-disabled"})})}}),(0,n.jsx)(u.LinkButton,{href:j.e,mode:"secondary",label:e("TRM676.0"),"aria-label":e("TRM676.0"),customClasses:"inline-flex justify-center items-center gap-x-8 border border-go-primary-base"})]})]})})]})};w.Layout=b.A;var _=!0,N=w}},function(e){e.O(0,[9774,8362,9423,2739,2888,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.