PageSourceSearch

https://www.ringleplus.com/_next/static/chunks/pages/[lang]/b2b/email/unsubscribe-dd150e55169976b3.js

js ringleplus.com collected 2026-09-24 10:25:04 UTC 5,370 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="38b1d69b-24ed-4272-b810-0f5bdcc42cbd",e._sentryDebugIdIdentifier="sentry-dbid-38b1d69b-24ed-4272-b810-0f5bdcc42cbd")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[31956],{61339:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>f});var s=l(80263),i=l(53239),n=l(64432),d=l(16266),a=l(13590),c=l(11669),r=l(32363);let o={title:"수신거부",loading:"확인 중입니다...",invalidTitle:"유효하지 않은 링크입니다",invalidBody:"링크가 만료되었거나 잘못되었습니다. 메일에 포함된 링크를 다시 눌러주세요.",confirmBody:"아래 주소로 발송되는 링글 기업교육 광고성 메일을 더 이상 받지 않습니다.",confirmNote:"신청하신 자료\xb7행사 안내 메일은 수신거부와 무관하게 계속 발송됩니다.",submit:"수신거부",submitting:"처리 중...",doneTitle:"수신거부가 완료되었습니다",doneBody:"앞으로 광고성 메일이 발송되지 않습니다. 처리에 최대 24시간이 걸릴 수 있습니다.",failed:"처리에 실패했습니다. 잠시 후 다시 시도해주세요."},x=()=>{let e=(0,a.Ay)(),{t}=(0,r.Ay)(),l="string"==typeof e.query.t?e.query.t:void 0,[x,f]=(0,i.useState)("loading"),[u,p]=(0,i.useState)(""),[h,b]=(0,i.useState)(""),[m,y]=(0,i.useState)(!1),w=(0,i.useRef)(!1),g="".concat((0,d._)("CONF_SERVER_URL"),"/api/v5/student/email_unsubscribes");(0,i.useEffect)(()=>{if(!e.isReady)return;if(!l)return void f("invalid");let t=!0;return fetch("".concat(g,"?t=").concat(encodeURIComponent(l))).then(e=>e.ok?e.json():null).then(e=>{var l;if(t){if(!(null==e?void 0:e.success))return void f("invalid");p(null!=(l=e.masked_email)?l:""),f("confirm")}}).catch(()=>{t&&f("invalid")}),()=>{t=!1}},[e.isReady,l,g]);let j=(0,i.useCallback)(async()=>{if(l&&!w.current){w.current=!0,y(!0),b("");try{if(!(await fetch(g,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({t:l})})).ok)throw Error("failed");f("done")}catch(e){b(o.failed)}finally{w.current=!1,y(!1)}}},[g,l]);return(0,s.jsx)(n.A,{children:(0,s.jsxs)("div",{className:"flex min-h-screen flex-col bg-white",children:[(0,s.jsxs)("header",{className:"flex h-[58px] shrink-0 items-center gap-[6px] border-b border-[#e4e7f4] bg-white px-[20px] md:px-[32px]",children:[(0,s.jsx)("div",{className:"relative h-[29px] w-[83px] shrink-0",children:(0,s.jsx)("img",{src:"/assets/img/logo/logo_text_primary.svg",alt:"Ringle",className:"absolute inset-0 block h-full w-full object-contain object-left",loading:"eager"})}),(0,s.jsx)("p",{className:"Title2-18Bd whitespace-nowrap text-black",children:t(c.UPb.footer_button.b2b.desktop)})]}),(0,s.jsxs)("main",{className:"mx-auto flex w-full max-w-[640px] flex-col items-center gap-[24px] px-[16px] py-[96px] md:px-[32px]",children:["loading"===x&&(0,s.jsx)("p",{className:"Body1-16Md text-[#80839e]",children:o.loading}),"invalid"===x&&(0,s.jsxs)("div",{className:"flex w-full flex-col items-center gap-[8px] text-center",children:[(0,s.jsx)("p",{className:"w-full text-[22px] font-bold leading-[1.4] text-[#140f33]",children:o.invalidTitle}),(0,s.jsx)("p",{className:"Body1-16Md w-full text-[#80839e]",children:o.invalidBody})]}),"confirm"===x&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex w-full flex-col items-center gap-[8px] text-center",children:[(0,s.jsx)("p",{className:"w-full text-[22px] font-bold leading-[1.4] text-[#140f33]",children:o.title}),(0,s.jsx)("p",{className:"Body1-16Bd w-full text-[#140f33]",children:u}),(0,s.jsx)("p",{className:"Body1-16Md w-full text-[#80839e]",children:o.confirmBody}),(0,s.jsx)("p",{className:"Body2-14Md w-full text-[#80839e]",children:o.confirmNote})]}),(0,s.jsx)("button",{type:"button",onClick:j,disabled:m,className:"Body1-16Bd flex w-[222px] items-center justify-center rounded-[8px] bg-[#3c2bac] px-[24px] py-[16px] text-white disabled:opacity-60",children:m?o.submitting:o.submit}),h&&(0,s.jsx)("p",{className:"Body2-14Md text-[#e5484d]",children:h})]}),"done"===x&&(0,s.jsxs)("div",{className:"flex w-full flex-col items-center gap-[16px] text-center",children:[(0,s.jsxs)("div",{className:"relative h-[72px] w-[72px] shrink-0 overflow-hidden",children:[(0,s.jsx)("div",{className:"absolute inset-[8.33%] rounded-full bg-[#22c55e]"}),(0,s.jsx)("svg",{className:"absolute inset-0 h-full w-full",viewBox:"0 0 72 72",fill:"none","aria-hidden":"true",children:(0,s.jsx)("path",{d:"M24 37.5L31 44.5L48 27.5",stroke:"white",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})})]}),(0,s.jsxs)("div",{className:"flex w-full flex-col items-center gap-[8px]",children:[(0,s.jsx)("p",{className:"w-full text-[22px] font-bold leading-[1.4] text-[#140f33]",children:o.doneTitle}),(0,s.jsx)("p",{className:"Body1-16Md w-full text-[#80839e]",children:o.doneBody})]})]})]})]})})};x.getInitialProps=()=>({});let f=x},64432:(e,t,l)=>{"use strict";l.d(t,{A:()=>i});var s=l(80263);
1l(53239);let i=e=>{let{children:t}=e;return(0,s.jsx)("div",{children:t})}},72327:(e,t,l)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/[lang]/b2b/email/unsubscribe",function(){return l(61339)}])}},e=>{e.O(0,[90636,46593,38792],()=>e(e.s=72327)),_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.