PageSourceSearch

https://www.gipnews.site/_next/static/chunks/pages/newsletter-cbd15d999d15d400.js

js gipnews.site collected 2026-10-09 22:05:52 UTC 3,098 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[533],{1910:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/newsletter",function(){return t(3994)}])},3994:function(e,s,t){"use strict";t.r(s);var r=t(5893),n=t(7294),l=t(1163),i=t(5434),a=t(3750),c=t(2585),o=t(7516),u=t(6154),x=t(1828),d=t(1142),p=t(6501);s.default=()=>{let e=(0,l.useRouter)(),{uid:s}=e.query,t=new x.hJ,[h,m]=(0,n.useState)(""),[b,f]=(0,n.useState)(""),j=e=>{if(!b){(0,x.rh)(d.I,t).then(e=>{let t=e.user;localStorage.setItem("user",JSON.stringify(t)),r(t.uid,t.email),f(t.email),s=t.uid,document.querySelector("#su").style.transform="translate(-200px, 200px)"}).catch(()=>p.Am.error("An error occurred"));return}function r(s,t){p.Am.promise(u.Z.put("/api/signup?uid=".concat(s,"&email=").concat(t,"&status=").concat(e)).then(()=>m("".concat(e))),{loading:"Switching...",success:"Success",error:"Try again later"})}r(s,b)};return(0,n.useEffect)(()=>{s&&(p.Am.dismiss(),u.Z.get("/api/signup?uid=".concat(s)).then(e=>{m(e.data.status),f(e.data.email)}).catch(e=>console.log(e)))},[s]),(0,r.jsxs)("main",{className:"flex flex-col w-full justify-center items-center pb-24 bg-gradient-to-b from-blue-50 to-gray-100 border-b",children:[(0,r.jsx)("div",{onClick:()=>e.back(),className:"border-b-2 text-3xl p-8 mb-8 w-full transition-colors hover:text-blue-400 cursor-pointer",children:(0,r.jsx)("span",{children:(0,r.jsx)(o.YiX,{})})}),(0,r.jsxs)("div",{className:"border rounded-lg",children:[(0,r.jsx)("h1",{className:"text-2xl font-semibold p-8 text-center",children:"Subscribe to Newsletters"}),(0,r.jsxs)("p",{onClick:()=>j(2),className:"flex relative items-center justify-center border-t text-xl font-semibold text-green-400 py-8 cursor-pointer hover:bg-blue-100 transition-opacity",children:[(0,r.jsx)("span",{className:"pr-4",children:(0,r.jsx)(i.Ztx,{})}),(0,r.jsx)("span",{children:"Daily"}),"2"==h?(0,r.jsx)("span",{className:"absolute right-2 top-2",children:(0,r.jsx)(c.pkh,{})}):""]}),(0,r.jsxs)("p",{onClick:()=>j(1),className:"flex relative items-center justify-center border-t text-xl font-semibold text-blue-400 py-8 cursor-pointer hover:bg-blue-100 transition-opacity",children:[(0,r.jsx)("span",{className:"pr-4",children:(0,r.jsx)(i.xRv,{})}),(0,r.jsx)("span",{children:"Weekly"}),"1"==h?(0,r.jsx)("span",{className:"absolute right-2 top-2",children:(0,r.jsx)(c.pkh,{})}):""]}),(0,r.jsxs)("p",{onClick:()=>j(0),className:"flex relative items-center justify-center border-t text-xl font-semibold text-orange-400 py-8 cursor-pointer hover:bg-blue-100 transition-opacity",children:[(0,r.jsx)("span",{className:"pr-4",children:(0,r.jsx)(i.sGZ,{})}),(0,r.jsx)("span",{children:"Opt-out"}),"0"==h?(0,r.jsx)("span",{className:"absolute right-2 top-2",children:(0,r.jsx)(i.lTq,{})}):""]})]}),(0,r.jsxs)("p",{className:"flex items-center pt-8",children:[(0,r.jsx)("span",{className:"pr-3",children:(0,r.jsx)(a.Hfo,{})}),(0,r.jsx)("small",{children:"Get daily/weely headlines directly in your mail box!"})]})]})}}},function(e){e.O(0,[228,980,874,774,888,179],function(){return e(e.s=1910)}),_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.