1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8265],{20150:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/newsletter",function(){return s(24470)}])},24470:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>y});var n=s(74848),a=s(96540),r=s(3575),i=s.n(r),c=s(30291),l=s(46942),o=s.n(l),_=s(31083),d=s(97461),u=s(74368),m=s(47819),p=s(41364),h=s(98047),b=s(35296),N=s(86715),x=s(75756),j=s(91106),v=s.n(j);let w=e=>{var t,s;let{isAuthenticated:r}=e,l=(0,N.useRouter)(),j=p.Ay.useApiUrl(),w=p.Ay.useApiKey(),y=(0,u.wA)(),g=(0,u.d4)(e=>null==e?void 0:e.registration),[A,f]=(0,a.useState)(!1),L=null==g?void 0:g.emailSubscribed,T=A||L,k=null==g?void 0:g.authData,R=null==k?void 0:k.email,W=null==k?!0===r:(null==k?void 0:k.virtual)===!0,C=null==k?void 0:null===(t=k.contact_info)||void 0===t?void 0:t.email_is_confirmed,E=(null==k?void 0:null===(s=k.email)||void 0===s?void 0:s.length)>3,S=[{link:"/newsletter",title:"РаÑÑÑлка",name:"РаÑÑÑлка"}],I=(0,u.d4)(e=>{var t;return null==e?void 0:null===(t=e.toggle)||void 0===t?void 0:t.emailAlreadyInUseError}),[P,V]=(0,a.useState)(!1),D=p.Ay.useClickHouseShoot();(0,u.d4)(e=>e.systemInformation.clickHouseData);let Y=async()=>{try{let e=await fetch("".concat(j).concat(m.PI.subscribeEmail).concat(w),{method:"GET",credentials:"include"}).then(e=>e.json());f(!0===e)}catch(e){console.error("ÐÑибка пÑи полÑÑении подпиÑок на оповеÑениÑ",e)}},X=async()=>{let e="".concat(j).concat(m.PI.subscribeEmail).concat(w);try{let t=await fetch(e,{method:"POST",credentials:"include"});t.ok?(y((0,x.TD)(!0)),(0,b.Yj)("fromNewsLetter")):console.error("ÐÑибка ".concat(t.status," пÑи вклÑÑении Ñведомлений на поÑÑÑ"))}catch(e){V(!0),console.error("ÐÑибка пÑи обновлении подпиÑки на оповеÑÐµÐ½Ð¸Ñ ".concat(type,":"),e)}},M=()=>{if(D({screen_type:"newsletter",screen_attributes_id:"newsletter",action_id:"click",element_type:"button",element_attributes_id:"subscribe",element_attributes_text:"ÐодпиÑаÑÑÑÑ"}),V(!1),C){X();return}y((0,h.y3)(!0))};return((0,a.useEffect)(()=>{W||Y()},[W,C,R]),(0,a.useEffect)(()=>{T?(0,b.Yj)("fromNewsLetter"):(0,b.TV)("fromNewsLetter","/newsletter")},[T]),(0,a.useEffect)(()=>("true"===(0,b.Ri)("forceLoginFromNewsLetter")&&(l.push("/auth"),(0,b.Yj)("forceLoginFromNewsLetter")),()=>{y((0,h.v1)(!1))}),[]),P)?(D({screen_type:"newsletter",screen_attributes_id:"error",action_id:"screenview"}),(0,n.jsxs)("main",{className:o()(i().container),children:[(0,n.jsx)(c.A,{title:"ÐодпиÑка на ÑаÑÑÑÐ»ÐºÑ â START",canonical:"/newsletter",description:"ÐодпиÑка на ÑаÑÑÑлкÑ: Ðнлайн-киноÑеаÑÑ START.ru â ÑÑо пÑемÑеÑÑ ÑилÑмов и ÑеÑиалов в Ñ
оÑоÑем каÑеÑÑве каÑеÑÑве по подпиÑке."}),(0,n.jsxs)("div",{className:i().content,children:[(0,n.jsx)("div",{className:i().breadcrumbs,children:(0,n.jsx)(_.A,{breadcrumbs:S})}),(0,n.jsxs)("h1",{className:o()(i().caption,i().caption_secondary),children:["ТеÑ
ниÑеÑкаÑ",(0,n.jsx)("br",{}),"неполадка"]}),(0,n.jsx)("p",{className:i().description,children:"СкоÑо вÑÑ Ð¿Ð¾Ñиним. ÐопÑобÑйÑе позже"}),(0,n.jsx)("div",{className:i().buttonWrapper,children:(0,n.jsx)(d.$n,{className:i().button,variant:d.Vt.PRIMARY,title:"ÐопÑобоваÑÑ Ñнова",onClick:M})})]})]})):I?(D({screen_type:"newsletter",screen_attributes_id:"error_email_exists",action_id:"screenview"}),(0,n.jsxs)("main",{className:o()(i().container),children:[(0,n.jsx)(c.A,{title:"ÐодпиÑка на ÑаÑÑÑÐ»ÐºÑ â START",canonical:"/newsletter",description:"ÐодпиÑка на ÑаÑÑÑлкÑ: Ðнлайн-киноÑеаÑÑ START.ru â ÑÑо пÑемÑеÑÑ ÑилÑмов и ÑеÑиалов в Ñ
оÑоÑем каÑеÑÑве каÑеÑÑве по подпиÑке."}),(0,n.jsxs)("div",{className:i().content,children:[(0,n.jsx)("div",{className:i().breadcrumbs,children:(0,n.jsx)(_.A,{breadcrumbs:S})}),(0,n.jsxs)("h1",{className:o()(i().caption,i().caption_secondary),children:["ÐоÑÑа Ñже пÑивÑзана",(0,n.jsx)("br",{}),"к дÑÑÐ³Ð¾Ð¼Ñ Ð¿Ð¾Ð»ÑзоваÑелÑ"]}),(0,n.jsx)("p",{className:i().description,children:"ÐÑли ÑÑо ваÑа поÑÑа, возможно, Ñ Ð²Ð°Ñ ÐµÑÑÑ Ð²ÑоÑой аккаÑнÑ"}),(0,n.jsxs)("div",{className:i().buttonsWrapper,children:[(0,n.jsx)("div",{className:i().buttonWrapper,children:(0,n.jsx)(d.$n,{className:o()(i().button,i().button_top),variant:d.Vt.PRIMARY,title:"ÐойÑи в дÑÑгой аккаÑнÑ",onClick:()=>{D({screen_type:"newsletter",screen_attributes_id:"error_email_exists",action_id:"click",element_type:"button",element_attributes_id:"auth_another_method",element_attributes_text:"ÐойÑи в дÑÑгой аккаÑнÑ"}),l.push("/logout"),y((0,h.v1)(!1)),(0,b.TV)("forceLoginFromNewsLetter","true")},fullWidth:!0})}),(0,n.jsx)("div",{className:i().buttonWrapper,children:(0,n.jsx)(d.$n,{className:i().button,variant:d.Vt.OUTLINE,title:"ÐопÑобоваÑÑ Ñнова",onClick:()=>{D({screen_type:"newsletter",screen_attributes_id:"error",action_id:"click",element_type:"button",element_attributes_id:"try_again",element_attributes_text:"ÐопÑобоваÑÑ Ñнова"}),y((0,h.y3)(!0)),y((0,h.v1)(!1))},fullWidth:!0})})]})]})]})):!W&&C&&T&&R?(0,n.jsxs)("main",{className:o()(i().container),children:[(0,n.jsx)(c.A,{title:"ÐодпиÑка на ÑаÑÑÑÐ»ÐºÑ â START",canonical:"/newsletter",description:"ÐодпиÑка на ÑаÑÑÑлкÑ: Ðнлайн-киноÑеаÑÑ START.ru â ÑÑо пÑемÑеÑÑ ÑилÑмов и ÑеÑиалов в Ñ
оÑоÑем каÑеÑÑве каÑеÑÑве по подпиÑке."}),(0,n.jsxs)("div",{className:i().content,children:[(0,n.jsx)("div",{className:i().breadcrumbs,children:(0,n.jsx)(_.A,{breadcrumbs:S})}),(0,n.jsxs)("h1",{className:o()(i().caption,i().caption_secondary),children:["Ð²Ñ Ð¿Ð¾Ð´Ð¿Ð¸ÑанÑ",(0,n.jsx)("br",{}),"на ÑаÑÑÑлкÑ"]}),(0,n.jsx)("p",{className:i().description,children:"ÐÑпиÑаÑÑÑÑ Ð¼Ð¾Ð¶Ð½Ð¾ по ÑÑÑлке в пиÑÑмаÑ
"}),(0,n.jsx)("div",{className:i().buttonWrapper,children:(0,n.jsx)(d.$n,{className:i().button,variant:d.Vt.PRIMARY,title:"ÐÐ ÐÐÐÐÐУЮ",onClick:()=>{l.push("/"),D({screen_type:"newsletter",screen_attributes_id:"newsletter",action_id:"click",element_type:"button",element_attributes_id:"to_main",element_attributes_text:"Ðа главнÑÑ"})}})})]})]}):(0,n.jsxs)("main",{className:o()(i().container),children:[(0,n.jsx)(c.A,{title:"ÐодпиÑка на ÑаÑÑÑÐ»ÐºÑ â START",canonical:"/newsletter",description:"ÐодпиÑка на ÑаÑÑÑлкÑ: Ðнлайн-киноÑеаÑÑ START.ru â ÑÑо пÑемÑеÑÑ ÑилÑмов и ÑеÑиалов в Ñ
оÑоÑем каÑеÑÑве каÑеÑÑве по подпиÑке."}),(0,n.jsxs)("div",{className:i().content,children:[(0,n.jsx)("div",{className:i().breadcrumbs,children:(0,n.jsx)(_.A,{breadcrumbs:S})}),(0,n.jsx)("h1",{className:i().caption,children:"ÐТРÐÐШРÐÐÐÐÐÐÐЯ Ð ÐССЫÐÐÐ START"}),W&&(0,n.jsx)("p",{className:i().description,children:"ÐойдиÑе, ÑÑÐ¾Ð±Ñ Ð¿Ð¾Ð´Ð¿Ð¸ÑаÑÑÑÑ"}),!W&&E&&(0,n.jsxs)("p",{className:i().description,children:["ÐÑ Ð½Ðµ Ñпамим. ÐбÑÑно пÑиÑÑлаем 2 пиÑÑма в\xa0неделÑ.",(0,n.jsx)("br",{})," Ðни бÑдÑÑ Ð¿ÑиÑ
одиÑÑ Ð½Ð° поÑÑÑ ",(0,n.jsx)("strong",{children:null==k?void 0:k.email})]}),!W&&!E&&(0,n.jsx)("p",{className:i().description,children:"ÐÑ Ð½Ðµ Ñпамим. ÐбÑÑно пÑиÑÑлаем 2 пиÑÑма в\xa0неделÑ."}),(0,n.jsxs)("div",{className:i().buttonWrapper,children:[W&&(0,n.jsx)(d.$n,{className:i().button,variant:d.Vt.PRIMARY,title:"ÐÐÐТÐ",onClick:()=>{l.push("/auth"),D({screen_type:"newsletter",screen_attributes_id:"newsletter",action_id:"click",element_type:"button",element_attributes_id:"sign_in",element_attributes_text:"ÐойÑи"})}}),!W&&(0,n.jsxs)("div",{className:i().buttonWithConsentWrapper,children:[(0,n.jsx)(d.$n,{className:i().buttonWithConsent,variant:d.Vt.PRIMARY,title:"ÐÐÐÐÐСÐТЬСЯ",onClick:M}),(0,n.jsxs)("span",{className:i().consent,children:["ÐÐ°Ð¶Ð¸Ð¼Ð°Ñ \xabÐодпиÑаÑÑÑÑ\xbb, вÑ\xa0ÑоглаÑаеÑеÑÑ Ð¿Ð¾Ð»ÑÑаÑÑ ÑаÑÑÑлки и\xa0ÑпеÑиалÑнÑе пÑедложениÑ, а\xa0Ñакже на\xa0",(0,n.jsx)(v(),{className:i().consent_link,prefetch:!1,href:"/legal/consent",target:"_blank",rel:"noopener noreferrer",children:"обÑабоÑÐºÑ Ð¿ÐµÑÑоналÑнÑÑ
даннÑÑ
"})," ","длÑ\xa0иÑ
\xa0оÑпÑавки",E?"":", а Ñакже пÑивÑзаÑÑ Ð¿Ð¾ÑÑÑ Ðº аккаÑнÑÑ","`"]})]})]}),(0,n.jsxs)("section",{className:i().advantages,children:[(0,n.jsxs)("article",{className:i().advantage,children:[(0,n.jsx)("h3",{className:i().advantage__caption,children:"Скидки и\xa0закÑÑÑÑе акÑии"}),(0,n.jsx)("p",{className:i().advantage__text,children:"ÐелимÑÑ Ð¿Ñомокодами"})]}),(0,n.jsxs)("article",{className:i().advantage,children:[(0,n.jsx)("h3",{className:i().advantage__caption,children:"ÐовоÑÑи о\xa0ÑеÑиалаÑ
и\xa0ÑилÑмаÑ
"}),(0,n.jsx)("p",{className:i().advantage__text,children:"РеÑÑ Ð¿Ð¾Ð´Ð±Ð¾Ñки ÑекомендаÑий"})]}),(0,n.jsxs)("article",{className:i().advantage,children:[(0,n.jsxs)("h3",{className:i().advantage__caption,children:["ÐнонÑÑ",(0,n.jsx)("br",{}),"пÑемÑеÑ"]}),(0,n.jsx)("p",{className:i().advantage__text,children:"Ð ÑÐ²ÐµÐ´Ð¾Ð¼Ð»ÐµÐ½Ð¸Ñ Ð¾ новÑÑ
ÑеÑиÑÑ
"})]})]})]})]})};class y extends a.Component{static async getInitialProps(){return{isAuthenticated:!0}}render(){let{isAuthenticated:e}=this.props;return(0,n.jsx)(w,{isAuthenticated:e})}}},3575:e=>{e.exports={"storybook-root":"NewsLetter_storybook-root__hL8qD",container:"NewsLetter_container__2pd2D",content:"NewsLetter_content__twbLD",breadcrumbs:"NewsLetter_breadcrumbs__o0O3N",caption:"NewsLetter_caption__jCGNG",caption_secondary:"NewsLetter_caption_secondary__eEKRm",description:"NewsLetter_description__p2bZm",buttonWrapper:"NewsLetter_buttonWrapper__KKAPT",button:"NewsLetter_button__yDXhl",button_top:"NewsLetter_button_top__AV_1O",buttonWithConsentWrapper:"NewsLetter_buttonWithConsentWrapper__yLaTU",consent:"NewsLetter_consent__pWsJV",consent_link:"NewsLetter_consent_link__sQc9f",advantages:"NewsLetter_advantages__fGVuX",advantage:"NewsLetter_advantage__boC1D",advantage__caption:"NewsLetter_advantage__caption__pfIh7",advantage__text:"NewsLetter_advantage__text__3wgyM",form:"NewsLetter_form__X4kaX",inputWrapper:"NewsLetter_inputWrapper__3aXDp"}}},e=>{var t=t=>e(e.s=t);e.O(0,[636,6593,8792],()=>t(20150)),_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.