1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9930],{10802:(e,t,_)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/auth/unsubscribe/[account_id]",function(){return _(77396)}])},77396:(e,t,_)=>{"use strict";_.r(t),_.d(t,{default:()=>f});var n=_(74848),c=_(96540),a=_(74368),i=_(86715),s=_(98126),r=_(27116),o=_(97093),l=_(24527),p=_.n(l),h=_(30291),u=_(35296);let m={setSourceData:s.iF,clickHouseShoot:s.Y3},b=()=>(0,n.jsxs)("div",{className:p().unsubscribe_wrapper,children:[(0,n.jsx)(h.A,{title:"ÐÑпиÑаÑÑÑÑ Ð¾Ñ ÑаÑÑÑлки"}),(0,n.jsx)("h1",{children:"ÐÑ Ð¾ÑпиÑалиÑÑ Ð¾Ñ Ð¿Ð¾Ð»ÑÑÐµÐ½Ð¸Ñ email пиÑем Ð¾Ñ START.RU"})]});class d extends c.Component{componentDidMount(){this.setState({unsubscribe_token:(0,u.Ri)("unsubscribe_token")})}render(){let{token:e}=this.props.router.query,{unsubscribe_error_message:t,unsubscribe_token:_,form_disabled:c,reason:a}=this.state;return e?!1===_?null:_==e?(0,n.jsx)(b,{}):(0,n.jsxs)("div",{className:p().unsubscribe_wrapper,children:[(0,n.jsx)(h.A,{title:"ÐÑпиÑаÑÑÑÑ Ð¾Ñ ÑаÑÑÑлки",breadCrumbs:breadcrumbs}),(0,n.jsx)("h1",{children:"ÐожалÑйÑÑа, ÑкажиÑе пÑиÑÐ¸Ð½Ñ Ð¾ÑпиÑки"}),t&&(0,n.jsx)("div",{className:p()["unsubscribe-input__error-text"],children:t}),(0,n.jsxs)("form",{onSubmit:this.handleFormSubmit,id:"unsubscribeForm",children:[(0,n.jsx)("div",{className:p()["form-check"],children:(0,n.jsxs)("label",{className:p()["form-check-label"],children:[(0,n.jsx)("input",{type:"radio",value:r.g5.manyLetters,checked:a===r.g5.manyLetters,onChange:e=>this.handleOptionChange(e,1)}),r.g5.manyLetters,(0,n.jsx)("i",{className:p()["input-helper"]})]})}),(0,n.jsx)("div",{className:p()["form-check"],children:(0,n.jsxs)("label",{className:p()["form-check-label"],children:[(0,n.jsx)("input",{type:"radio",value:r.g5.didNotSubscribe,checked:a===r.g5.didNotSubscribe,onChange:e=>this.handleOptionChange(e,2)}),r.g5.didNotSubscribe,(0,n.jsx)("i",{className:p()["input-helper"]})]})}),(0,n.jsx)("div",{className:p()["form-check"],children:(0,n.jsxs)("label",{className:p()["form-check-label"],children:[(0,n.jsx)("input",{type:"radio",value:r.g5.iAmFed,checked:a===r.g5.iAmFed,onChange:e=>this.handleOptionChange(e,3)}),r.g5.iAmFed,(0,n.jsx)("i",{className:p()["input-helper"]})]})}),(0,n.jsx)("div",{className:p()["form-check"],children:(0,n.jsxs)("label",{className:p()["form-check-label"],children:[(0,n.jsx)("input",{type:"radio",value:r.g5.finishedWatching,checked:a===r.g5.finishedWatching,onChange:e=>this.handleOptionChange(e,4)}),r.g5.finishedWatching,(0,n.jsx)("i",{className:p()["input-helper"]})]})}),(0,n.jsx)("div",{className:p()["form-check"],children:(0,n.jsxs)("label",{className:p()["form-check-label"],children:[(0,n.jsx)("input",{type:"radio",value:r.g5.withoutAnyReasons,checked:a===r.g5.withoutAnyReasons,onChange:e=>this.handleOptionChange(e,5)}),r.g5.withoutAnyReasons,(0,n.jsx)("i",{className:p()["input-helper"]})]})}),(0,n.jsxs)("div",{className:p()["from-input"],children:[(0,n.jsx)("label",{className:p()["form-input-label"],htmlFor:"otherReasonField",children:r.g5.otherReason}),(0,n.jsx)("input",{type:"text",id:"otherReasonField",onChange:this.handleTextChange,onFocus:this.handleTextFocus,onBlur:this.handleTextBlur})]}),(0,n.jsx)("div",{className:p().unsubscribeButton,children:(0,n.jsx)("button",{className:"".concat(p().btn," ").concat(p()["btn-default"]),type:"submit",disabled:c,children:"ÐÑпиÑаÑÑÑÑ"})})]})]}):(0,n.jsx)(o.A,{})}constructor(e){super(e),this.handleOptionChange=(e,t)=>
1{let{value:_}=e.target,{clickHouseData:n}=this.props.systemInformation,{account_id:c,campaign_id:a}=this.props.router.query;this.setState({reason:_});let i={...n,account_id:c,custom_field_str2:a||"",action_id:"click",screen_type:"unsubscribe_form",screen_attributes_id:"unsubscribe_form",event_time:new Date().getTime(),element_type:"radio_button",element_attributes_text:_,element_attributes_index:t};this.props.clickHouseShoot(this.apiUrl,this.apiKey,i)},this.handleTextFocus=()=>{let{clickHouseData:e}=this.props.systemInformation,{account_id:t,campaign_id:_}=this.props.router.query;this.setState({reason:null});let n={...e,account_id:t,custom_field_str2:_||"",action_id:"text_input_start",screen_type:"unsubscribe_form",screen_attributes_id:"unsubscribe_form",event_time:new Date().getTime(),element_type:"input",element_attributes_text:"ÐÑÑÐ³Ð°Ñ Ð¿ÑиÑина",element_attributes_id:"unsubscribe_reason",action_attributes_ab_tag:"manual"};this.props.clickHouseShoot(this.apiUrl,this.apiKey,n)},this.handleTextChange=e=>{let{value:t}=e.target;this.setState({reason:t})},this.handleTextBlur=e=>{let{clickHouseData:t}=this.props.systemInformation,{account_id:_,campaign_id:n}=this.props.router.query,{value:c}=e.target,a={...t,account_id:_,custom_field_str2:n||"",screen_type:"unsubscribe_form",screen_attributes_id:"unsubscribe_form",event_time:new Date().getTime(),element_type:"input",element_attributes_text:"ÐÑÑÐ³Ð°Ñ Ð¿ÑиÑина",element_attributes_id:"unsubscribe_reason",action_id:"text_input",action_result:c};this.props.clickHouseShoot(this.apiUrl,this.apiKey,a)},this.handleFormSubmit=e=>{e.preventDefault();let{clickHouseData:t}=this.props.systemInformation,{account_id:_,token:n,campaign_id:c}=this.props.router.query;if(this.state.reason){this.setState({form_disabled:!0});let e={...t,account_id:_,custom_field_str2:c||"",screen_type:"unsubscribe_form",screen_attributes_id:"unsubscribe_form",event_time:new Date().getTime(),element_type:"button",element_attributes_text:"ÐÑпиÑаÑÑÑÑ",element_attributes_id:"unsubscribe",action_id:"click"};this.props.clickHouseShoot(this.apiUrl,this.apiKey,e),fetch(r.Xe.concat("/",n),{method:"POST",headers:{"Content-Type":"application/json"}}).then(e=>{if(e.ok){let e=new Date;e.setDate(e.getDate()+60),(0,u.TV)("unsubscribe_token",n,{expires:e}),this.setState({unsubscribe_token:n})}else this.setState({unsubscribe_error_message:"Ðе ÑдалоÑÑ Ð¾ÑпÑавиÑÑ Ð·Ð°Ð¿ÑоÑ. ÐопÑобÑйÑе еÑÑ Ñаз позднее"})}).catch(e=>{this.setState({unsubscribe_error_message:"ÐапÑÐ¾Ñ Ð·Ð°Ð²ÐµÑÑилÑÑ Ð¾Ñибкой"}),console.error(e)})}else this.setState({unsubscribe_error_message:"ÐÑ Ð½Ðµ Ñможем Ð²Ð°Ñ Ð¾ÑпиÑаÑÑ, еÑли Ð²Ñ Ð½Ðµ ÑкажиÑе пÑиÑинÑ",form_disabled:!1})},this.state={reason:null,unsubscribe_error_message:null,unsubscribe_token:!1,form_disabled:!1},this.apiUrl=e.systemInformation.API_URL||r.H$,this.apiKey=e.systemInformation.API_KEY||r.Lq}}let T=(0,i.withRouter)((0,a.Ng)(e=>({registration:e.registration,systemInformation:e.systemInformation}),m)(d));class f extends c.Component{render(){return(0,n.jsx)(T,{})}}},24527:e=>{e.exports={"storybook-root":"Technical_storybook-root__fyueo",content:"Technical_content__vd338",contacts__wrapper:"Technical_contacts__wrapper__4C_Mj",child:"Technical_child__qVlJT",contacts__rights:"Technical_contacts__rights__TwSWF",contacts__items:"Technical_contacts__items__u1KbJ",contacts__support:"Technical_contacts__support__fpxKY","contacts__support-inner":"Technical_contacts__support-inner__hwQTJ",no__support:"Technical_no__support__h1fY0","contacts__emails-content-title":"Technical_contacts__emails-content-title__es4rc","contacts__support-content":"Technical_contacts__support-content__kQi2P","contacts__emails-content":"Technical_contacts__emails-content__Yk890","contacts__item-title":"Technical_contacts__item-title__5f7QM",contacts__links:"Technical_contacts__links__0TOzb",contacts__phone:"Technical_contacts__phone__ob0_1","contacts__legal-adress":"Technical_contacts__legal-adress__H7KAi","contacts__legal-adress-title":"Technical_contacts__legal-adress-title__fx5k_","contacts__legal-adress-item":"Technical_contacts__legal-adress-item__edbXO","contacts__mailing-adress-title":"Technical_contacts__mailing-adress-title__NCSPR","contacts__mailing-adress-item":"Technical_contacts__mailing-adress-item__p9i_R","contacts__email-content":"Technical_contacts__email-content__FH5Bb","contacts__emails-press-title":"Technical_contacts__emails-press-title__Hhw2H","contacts__email-press":"Technical_contacts__email-press__Yugy7",privacy_block:"Technical_privacy_block__uPq9c",term_of_use_block:"Technical_term_of_use_block__1ALAv",unsubscribe_wrapper:"Technical_unsubscribe_wrapper__jiWwO",unsubscribeForm:"Technical_unsubscribeForm__1Finj","form-check":"Technical_form-check__8_FrZ","form-check-label":"Technical_form-check-label__rGJj_","input-helper":"Technical_input-helper__Ol0gQ","from-input":"Technical_from-input__FObNa","unsubscribe-input__error-text":"Technical_unsubscribe-input__error-text__k_WTc",unsubscribeButton:"Technical_unsubscribeButton__w0dI7",term_of_use_wrapper:"Technical_term_of_use_wrapper__JafOn",term_of_use_ru:"Technical_term_of_use_ru__CJllc",person_data_wrapper:"Technical_person_data_wrapper__cVn9f",legal_block:"Technical_legal_block__EaP02",privacy_wrapper:"Technical_privacy_wrapper___nOYa",privacy_title:"Technical_privacy_title__bkLBO",person_data:"Technical_person_data__T_wvS",faq_content_wrapper:"Technical_faq_content_wrapper__O1064",promo:"Technical_promo__GJ8nj",title__main:"Technical_title__main__HGw8j",faq_content:"Technical_faq_content__Q7rcR",subtitle:"Technical_subtitle__IG5Ag","faq_content-item":"Technical_faq_content-item__PHcFk",text:"Technical_text__qscd9",text__more:"Technical_text__more__xOTBd",subscription__payment:"Technical_subscription__payment__GyEyJ",faq_content_item:"Technical_faq_content_item__k3cnp",faq_content_item_title:"Technical_faq_content_item_title__DgYzi",faq_content_item_title_text:"Technical_faq_content_item_title_text__jGudM",faq_content_item_title_text_ico:"Technical_faq_content_item_title_text_ico__HdrBv",faq_content_item_content:"Technical_faq_content_item_content__biT5G",faq_content_item_content_text:"Technical_faq_content_item_content_text__vpUTa",visible:"Technical_visible__baBUg",link:"Technical_link__jxw8k",about_company_wrapper:"Technical_about_company_wrapper__wVdLZ",about_company_link:"Technical_about_company_link__DNka6","about_company_wrapper-benefit":"Technical_about_company_wrapper-benefit__DXrDC","about_company_wrapper-title-list":"Technical_about_company_wrapper-title-list__e88Nw","about_company_wrapper-oval":"Technical_about_company_wrapper-oval__cUQaN",technical_page_wrapper:"Technical_technical_page_wrapper__iDnDE",technical_page_logo:"Technical_technical_page_logo__FE50_",technical_page_content_wrapper:"Technical_technical_page_content_wrapper__4iTsb",technical_page_content:"Technical_technical_page_content__WwxS1",technical_page_content_title:"Technical_technical_page_content_title__oarrk",technical_page_content_text:"Technical_technical_page_content_text__hCuFh",technical_page_content_button:"Technical_technical_page_content_button__MW5Hy",info_page_wrapper:"Technical_info_page_wrapper__fd7EQ",info_page_logo:"Technical_info_page_logo__sAGZy",info_page_content_wrapper:"Technical_info_page_content_wrapper__f3iT2",info_page_content:"Technical_info_page_content__6doF6",w_500:"Technical_w_500__QUCdk",info_popup_button_wrapper:"Technical_info_popup_button_wrapper__dyDkb",spinner:"Technical_spinner__4V7K5",info_popup_t
1itle:"Technical_info_popup_title__YguYg",info_popup_content:"Technical_info_popup_content__i3jGp",info_popup_input_wrapper:"Technical_info_popup_input_wrapper__S4HQ8",receiving_wrapper:"Technical_receiving_wrapper__w4gE9",cookie_declaration_wrapper:"Technical_cookie_declaration_wrapper__S7YeM",cookie_declaration_wrapper_hide:"Technical_cookie_declaration_wrapper_hide__fNbmb",info_block:"Technical_info_block__NFylM",docs_style:"Technical_docs_style__TOkK8",internal_server_global_wrapper:"Technical_internal_server_global_wrapper__bLgbp",internal_server_wrapper:"Technical_internal_server_wrapper__LQ4F_",internal_server_title:"Technical_internal_server_title__LxcPT",internal_server_message:"Technical_internal_server_message__UEHaW",internal_server_main:"Technical_internal_server_main__RrZDv",internal_server_message_list:"Technical_internal_server_message_list__esmV9",w_600:"Technical_w_600__QCphN","contacts__mailing-adress":"Technical_contacts__mailing-adress__p7KTO","form-input-label":"Technical_form-input-label__QiYA8",payment__right:"Technical_payment__right__F73eB",payment__header:"Technical_payment__header__3q06K",payment__footer:"Technical_payment__footer__xGvqZ",payment__left:"Technical_payment__left__tJeEU"}}},e=>{var t=t=>e(e.s=t);e.O(0,[8931,636,6593,8792],()=>t(10802)),_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.