1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8926],{78932:function(t,e,n){"use strict";n.d(e,{H2:function(){return f},Sh:function(){return d},bU:function(){return p},h4:function(){return l},sw:function(){return s}});var r,i,o,a,c=n(7328),u=n(75545),s=u.default.div.withConfig({componentId:"sc-dkweym-0"})(["",""],(function(t){var e=t.theme;return(0,u.css)(["min-height:inherit;display:flex;padding:"," 0 ",";background-color:",";",""],e.grid._10ako,e.grid._15ako,e.color.gray150,e.device.lt.tablet(r||(r=(0,c.Z)(["\n min-height: unset;\n padding: 0;\n "]))))})),d=u.default.div.withConfig({componentId:"sc-dkweym-1"})(["",""],(function(t){var e=t.theme;return(0,u.css)(["width:",";margin:auto;padding:"," ",";border-radius:",";background-color:",";",""],e.grid._49ako,e.grid._5ako,e.grid._4ako,e.grid._2ako,e.color.white,e.device.lt.tablet(i||(i=(0,c.Z)(["\n width: 100%;\n padding: "," "," ",";\n border-radius: 0;\n "])),e.grid._4ako,e.grid._2ako,e.grid._10ako))})),l=u.default.div.withConfig({componentId:"sc-dkweym-2"})(["",""],(function(t){var e=t.theme;return(0,u.css)(["margin-bottom:",";text-transform:capitalize;",""],e.grid._5ako,e.device.lt.tablet(o||(o=(0,c.Z)(["\n margin-bottom: ",";\n text-align: center;\n "])),e.grid._4ako))})),p=u.default.div.withConfig({componentId:"sc-dkweym-3"})(["",""],(function(t){var e=t.theme;return(0,u.css)(["margin-bottom:",";",""],e.grid._2ako,e.device.lt.tablet(a||(a=(0,c.Z)(["\n margin: "," 0;\n "])),e.grid._1ako))})),f=u.default.div.withConfig({componentId:"sc-dkweym-4"})(["",""],(function(t){var e=t.isCenter;return(0,u.css)(["text-align:",";"],e?"center":"left")}))},13017:function(t,e,n){"use strict";n.d(e,{M:function(){return s},Z:function(){return c}});var r=n(20406),i=n(28526),o=n.n(i),a=n(27357);function c(t){return u.apply(this,arguments)}function u(){return(u=(0,r.Z)(o().mark((function t(e){var n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e;case 3:return n=t.sent,t.abrupt("return",[null,n]);case 7:return t.prev=7,t.t0=t.catch(0),t.abrupt("return",[t.t0,void 0]);case 10:case"end":return t.stop()}}),t,null,[[0,7]])})))).apply(this,arguments)}var s=function(){var t=(0,r.Z)(o().mark((function t(e){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!a.sk){t.next=4;break}return t.next=3,e;case 3:return t.abrupt("return",t.sent);case 4:return t.abrupt("return");case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},56205:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return G}});var r,i,o,a,c=n(20406),u=n(28526),s=n.n(u),d=n(55452),l=n(59234),p=n(91124),f=n(81890),h=n(7328),g=n(75545),v=g.default.div.withConfig({componentId:"sc-1xae9wj-0"})(["",""],(function(t){var e=t.theme;return(0,g.css)(["display:flex;justify-content:space-between;align-items:center;padding-bottom:",";"],e.grid._2ako)})),m=g.default.div.withConfig({componentId:"sc-1xae9wj-1"})(["position:relative;"]),k=g.default.div.withConfig({componentId:"sc-1xae9wj-2"})(["position:absolute;width:100%;height:100%;top:0;> div{width:",";height:",";padding:0;}"],(function(t){return t.theme.grid._5nko}),(function(t){return t.theme.grid._5nko})),b=g.default.div.withConfig({componentId:"sc-1xae9wj-3"})(["",""],(function(t){var e=t.theme;return(0,g.css)(["margin-bottom:",";",""],e.grid._5ako,e.device.lt.tablet(r||(r=(0,h.Z)(["\n margin-top: ",";\n "])),e.grid._1ako))})),y=n(52322),w=(0,f.observer)((function(t){var e,n=t.onChange,r=t.getApiStatus,i=t.patchApiStatus;return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(b,{children:(0,y.jsx)(l.Typography,{variant:"section",bold:!0,children:r.error?(0,y.jsx)(d.cC,{id:"nwtY4N"}):(0,y.jsx)(d.cC,{id:"SMaFdc"})})}),!r.error&&(0,y.jsxs)(v,{children:[(0,y.jsx)(l.Typography,{variant:"button",bold:!0,as:"label",children:(0,y.jsx)(d.cC,{id:"A9vKIK"})}),(0,y.jsxs)(m,{children:[(0,y.jsx)(l.Toggle,{size:"large",checked:null==(e=r.data)?void 0:e.marketing,disabled:i.loading,onChange:n}
1),r.loading&&(0,y.jsx)(k,{children:(0,y.jsx)(l.Loader,{variant:"circle",color:"white",size:20})})]})]}),(0,y.jsx)(l.Typography,{variant:"caption",color:"gray500",children:r.error?(0,y.jsx)(d.cC,{id:"vbeb72",components:{0:(0,y.jsx)(l.Link,{href:p.zx.MAIN,target:"_blank",rel:"noopener",variant:"caption"})}}):(0,y.jsx)(d.cC,{id:"/o++y3"})})]})})),x=n(34828),_=n(78932),C=n(13017),S=n(63155),j=n(2737),Z=n(96412),N=n(13089),T=n(41701),I=n(80304),E=n(29017),A=n(48200),P=n(49507),B=n(32050),O=n(73818);function R(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=(0,A.Z)(t);if(e){var i=(0,A.Z)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return(0,E.Z)(this,n)}}var z=(i=O.action.bound,o=function(t){(0,I.Z)(n,t);var e=R(n);function n(t,r){var i;return(0,Z.Z)(this,n),i=e.call(this,"emailSubscription",t,r),(0,j.Z)(i,"token",a,(0,T.Z)(i)),i.token=r,i}return(0,N.Z)(n,[{key:"prepare",value:function(){var t=(0,c.Z)(s().mark((function t(){return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.store.user.emailSubscription.GET.request({key:this.token});case 2:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"data",get:function(){var t=this.store.user.emailSubscription.GET.getCurrentNodeSafe().get(),e=this.store.user.emailSubscription.PATCH.getCurrentNodeSafe().get();return t&&e?{getStatus:{loading:t.fetch.loading,success:t.fetch.success,error:t.fetch.error,data:t.data},patchStatus:{loading:e.fetch.loading,success:e.fetch.success,error:e.fetch.error}}:{}}},{key:"handleNotificationChange",value:function(){var t=(0,c.Z)(s().mark((function t(){var e,n,r,i;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this.store.user.emailSubscription.PATCH,t.next=3,r.request({key:this.token,marketing:!(null!=(e=this.data.getStatus)&&null!=(n=e.data)&&n.marketing)});case 3:if(null==(i=r.getCurrentNodeSafe().get())||!i.fetch.success){t.next=8;break}return this.store.user.emailSubscription.GET.reset(),t.next=8,this.store.user.emailSubscription.GET.request({key:this.token},{successTTL:0});case 8:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()}],[{key:"getByStore",value:function(t,e){var r=(0,B.ME)("emailSubscription",t)||new n(t,e);return r.token!==e&&(r.token=e),r}}]),n}(B.xU),a=(0,P.Z)(o.prototype,"token",[O.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),(0,P.Z)(o.prototype,"data",[O.computed],Object.getOwnPropertyDescriptor(o.prototype,"data"),o.prototype),(0,P.Z)(o.prototype,"handleNotificationChange",[i],Object.getOwnPropertyDescriptor(o.prototype,"handleNotificationChange"),o.prototype),o),M=n(76688),q=(0,f.observer)((function(t){var e=t.token,n=(0,S.oR)(),r=M.e.getByStore(n),i=z.getByStore(n,e),o=i.data,a=o.getStatus,c=o.patchStatus,u=i.handleNotificationChange;return(0,y.jsx)(x.HQ,{gnbVm:r,hasSimpleFooter:!0,children:(0,y.jsx)(_.sw,{children:(0,y.jsx)(_.Sh,{children:(0,y.jsx)(w,{onChange:u,getApiStatus:a,patchApiStatus:c})})})})}));q.getInitialProps=function(){var t=(0,c.Z)(s().mark((function t(e){var n,r,i,o,a;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.query,r=e.store,i=n.token,o=M.e.getByStore(r),t.next=5,o.prepare();case 5:return a=z.getByStore(r,i),t.next=8,(0,C.M)(a.prepare());case 8:return t.abrupt("return",{token:i});case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();var G=q},65338:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/email_subscription",function(){return n(56205)}])}},function(t){t.O(0,[9774,2888,179],(function(){return e=65338,t(t.s=e);var e}));var e=t.O();_N_E=e}]);
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.