PageSourceSearch

https://nintendosupply.com/_next/static/chunks/pages/unsubscribe-1ed119823bff9254.js

js nintendosupply.com collected 2026-10-03 00:57:44 UTC 5,037 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[785],{1142:function(n,e,i){"use strict";i.d(e,{p:function(){return u}});var t=i(29),o=i(2777),r=i(2262),s=i(9499),a=i(7794),c=i.n(a),u=function(){var n,e;function ApiEmailSubscriptionRepository(n){(0,o.Z)(this,ApiEmailSubscriptionRepository),(0,s.Z)(this,"baseUrl",void 0),this.baseUrl=n}return(0,r.Z)(ApiEmailSubscriptionRepository,[{key:"createSubscription",value:(n=(0,t.Z)(c().mark(function _callee(n){return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("".concat(this.baseUrl,"/v1/email-subscriptions"),{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({emailSubscription:{email:n}})});case 2:case"end":return e.stop()}},_callee,this)})),function(e){return n.apply(this,arguments)})},{key:"deleteEmailSubscription",value:(e=(0,t.Z)(c().mark(function _callee2(n){return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("".concat(this.baseUrl,"/v1/email-subscriptions/").concat(n),{method:"DELETE",headers:{Accept:"application/json"}});case 2:case"end":return e.stop()}},_callee2,this)})),function(n){return e.apply(this,arguments)})}]),ApiEmailSubscriptionRepository}()},457:function(n,e,i){"use strict";i.r(e),i.d(e,{__N_SSG:function(){return w}});var t=i(29),o=i(7794),r=i.n(o),s=i(1142),a=i(4759),c=i(1163),u=i(7294),p=i(9521),l=i(5893),f=p.ZP.div.withConfig({displayName:"unsubscribe__Wrapper",componentId:"sc-4b48po-0"})(["display:flex;flex-direction:column;align-items:center;width:100%;padding:16px;"]),d=p.ZP.h1.withConfig({displayName:"unsubscribe__H1",componentId:"sc-4b48po-1"})(["font-size:var(--h1-font-size-s);font-weight:var(--h1-font-weight);color:var(--primary-font-color);@media only screen and (min-width:1024px){font-size:var(--h1-font-size-l);}"]),b=p.ZP.img.withConfig({displayName:"unsubscribe__Img",componentId:"sc-4b48po-2"})(["margin-top:8px;"]),h=p.ZP.p.withConfig({displayName:"unsubscribe__P",componentId:"sc-4b48po-3"})(["margin-top:8px;color:var(--article-body-color);font-size:var(--p-font-size);font-weight:var(--p-font-weight);line-height:var(--p-line-height);"]),m=p.ZP.button.withConfig({displayName:"unsubscribe__UnsubscribeButton",componentId:"sc-4b48po-4"})(["width:100%;max-width:256px;min-height:32px;display:flex;justify-content:center;align-items:center;margin-top:8px;font-size:16px;font-weight:500;line-height:1;border:none;background-color:var(--secondary-color);color:#FFFFFF;padding:8px;&:hover{background-color:rgb(172,0,13);cursor:pointer;}"]),g=p.ZP.div.withConfig({displayName:"unsubscribe__UnsubscribeButtonContent",componentId:"sc-4b48po-5"})(["text-align:center;"]),x=(0,p.F4)(["0%{background-color:#FFFFFF;}50%,100%{background-color:rgba(256,256,256,0.2);}"]),_=p.ZP.div.withConfig({displayName:"unsubscribe__DotsFlashing",componentId:"sc-4b48po-6"})(["position:relative;width:10px;height:10px;border-radius:5px;background-color:#ffffff;color:#ffffff;animation:",' 1s infinite linear alternate;animation-delay:0.5s;&::before,&::after{content:"";display:inline-block;position:absolute;top:0;}&::before{left:-15px;width:10px;height:10px;border-radius:5px;background-color:#ffffff;color:#ffffff;animation:'," 1s infinite alternate;animation-delay:0s;}&::after{left:15px;width:10px;height:10px;border-radius:5px;background-color:#ffffff;color:#ffffff;animation:"," 1s infinite alternate;animation-delay:1s;}"],x,x,x),y=new s.p("https://api.nintendosupply.com"),w=!0;e.default=function(n){var e=(0,c.useRouter)(),i=e.query.code,o=(0,u.useState)("initial"),s=o[0],p=o[1];function _handleUnsubscribeButtonClick(){return(_handleUnsubscribeButtonClick=(0,t.Z)(r().mark(function _callee(){return r().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if("unsubscribeSuccess"!==s){n.next=3;break}return e.push("".concat("https://nintendosupply.com")),n.abrupt("return");case 3:return p("loading"),n.prev=4,n.next=7,y.deleteEmailSubscription(i);case 7:n.next=11;break;case 9:n.prev=9,n.t0=n.catch(4);case 11:p("unsubscribeSuccess");case 12:case"end":return n.stop()}},_callee,null,[[4,9]])}
1))).apply(this,arguments)}return(0,l.jsx)(a.Z,{children:(0,l.jsxs)(f,{children:[(0,l.jsx)(d,{children:"Unsubscribe"}),(0,l.jsx)(b,{alt:"Mario mailman",width:256,height:256,src:"https://images.ctfassets.net/adm95tf39lbj/12PBQopJL2UG8bmTu80eRB/81043a0d0495fc3722cd9580af5da2a9/mario-mail.png"}),(0,l.jsx)(h,{children:"unsubscribeSuccess"===s?"You've unsubscribed.":"Mamma mia! It's sad to see you go!"}),(0,l.jsxs)(m,{disabled:"loading"===s,onClick:function(){return function(){return _handleUnsubscribeButtonClick.apply(this,arguments)}()},children:["loading"===s&&(0,l.jsx)(_,{}),"loading"!==s&&(0,l.jsx)(g,{children:"unsubscribeSuccess"===s?"Go to Homepage":"Unsubscribe"})]})]})})}},6266:function(n,e,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/unsubscribe",function(){return i(457)}])},1163:function(n,e,i){n.exports=i(7985)}},function(n){n.O(0,[675,759,774,888,179],function(){return n(n.s=6266)}),_N_E=n.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.