1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[25],{60025:(t,p,_)=>{"use strict";_.d(p,{A:()=>P,k:()=>m});var e=_(74848),r=_(96540),o=_(74368),s=_(98047),a=_(97461),i=_(92849),u=_.n(i),n=_(27116),l=_(86715),c=_.n(l),d=_(55700);let h={toggleSomethingWrongPopup:s.AW},m={TV:"TV",DEFAULT:"DEFAULT"};class S extends r.Component{componentDidMount(){let t={action_id:"popupview",block_type:"popup",block_attributes_id:"video_error",event_time:new Date().getTime()};this.props.somethingWrongShoot(t)}render(){let t=this.questionList[this.props.type],{submited:p,selectedPoints:_,error:r,textValue:o}=this.state,{player:s}=this.props.player,{playerMovie:i,movie:l}=this.props,h=(0,n.Ih)(c()),{router:m}=this.props,{windowInnerWidth:S}=this.props.systemInformation,P=i?i._cls:l?l._cls:null;i?i.items&&i.items.map(t=>{t.items&&t.items.length&&t.items.map(t=>{t.uid===s.uid&&(P=t._cls)})}):l&&l.items&&l.items.map(t=>{t.items&&t.items.length&&t.items.map(t=>{t.uid===s.uid&&(P=t._cls)})});let b=s&&(s.isTrailer||s.additional_content&&s.additional_content.length)?"Additional":P,g="";switch(h.screenType){case"category":g=m.asPath.replace("/","");break;case"product":g=m.asPath.replace("/watch/","")||"";break;default:g=h.screenAttributesId}return this.blockInfo={block_type:"popup",block_attributes_id:"video_error",screen_type:"player",screen_attributes_id:null==s?void 0:s.uid,product_id:i&&i._id,content_id:null==s?void 0:s.uid,content_type:b,referer_screen_type:null==h?void 0:h.screenType,referer_screen_attributes_id:g},(0,e.jsx)("div",{className:"".concat(u()["start-popup"]," ").concat(u()["start-popup__wrong"]),onMouseDown:this.handleClickOutside,onKeyDown:this.handleKeyDown,children:(0,e.jsxs)("div",{className:"".concat(u()["start-popup__wrapper"]," ").concat(u()["start-popup__wrapper__wrong"]),ref:t=>{this.popupWrapper=t},children:[(0,e.jsx)("div",{className:u()["start-popup__close"],onClick:()=>this.closeHandler("button","cross"),children:(0,e.jsx)("img",{src:"/static/images/popups/cross-white.svg"})}),(0,e.jsxs)("div",{className:u()["start-popup__content"],children:[(0,e.jsx)("div",{className:u()["start-popup__title"],children:"ЧÑо ÑлÑÑилоÑÑ"}),(0,e.jsxs)("div",{className:u()["start-popup__items"],children:[t.map((t,p)=>(0,e.jsx)("div",{className:u()["start-popup__item"],children:(0,e.jsx)(d.S,{checked:-1!==_.indexOf(t.reason_id),onChange:p=>this.handleSelect(p,t),name:"".concat(t.reason_id),label:t.reason_title,blockInfo:this.blockInfo,id:"".concat(t.reason_id),dontShoot:!0,isError:r})},"".concat(t.reason_id,"-").concat(p))),(0,e.jsx)("div",{className:u()["start-popup__item"],children:(0,e.jsx)(d.S,{checked:-1!==_.indexOf("other"),onChange:t=>this.handleSelect(t,{reason_id:"other",reason_title:"ÐÑÑÐ³Ð°Ñ Ð¿Ñоблема?"}),name:"other",label:"ÐÑÑÐ³Ð°Ñ Ð¿Ñоблема?",blockInfo:this.blockInfo,id:"other",dontShoot:!0,isError:r})},"other-".concat(t.length))]}),-1!==_.indexOf("other")?(0,e.jsx)("div",{className:u()["start-popup__area__wrapper"],children:(0,e.jsx)("textarea",{rows:"4",className:u()["start-popup__area"],placeholder:"РаÑÑкажиÑе подÑобнее",value:o,autoFocus:!0,onChange:this.handleTextareaChange,onFocus:this.handleTextareaFocus,onBlur:this.handleTextareaBlur,ref:t=>{this.textareaRef=t}})}):null,r?(0,e.jsx)("div",{className:u()["start-popup__error"],children:r}):null,(0,e.jsx)(a.$n,{onClick:()=>
1this.submitHandler("ÐÑпÑавиÑÑ","send"),title:"ÐÑпÑавиÑÑ",isLoading:!!p,fullWidth:!0})]})]})})}constructor(...t){super(...t),this.state={submited:!1,selectedPoints:[],textValue:"",error:null},this.questionList={[m.TV]:[{reason_title:'Ðидео "ÑоÑмозиÑ"',reason_id:"freeze"},{reason_title:"ÐÐµÑ ÑаÑпиÑÐ°Ð½Ð¸Ñ Ñелеканала",reason_id:"no_programm"},{reason_title:"Ðизкое каÑеÑÑво звÑка/изобÑажениÑ",reason_id:"quality"},{reason_title:"ÐвÑк еÑÑÑ, а изобÑÐ°Ð¶ÐµÐ½Ð¸Ñ Ð½ÐµÑ",reason_id:"no_video"},{reason_title:"Ðе полÑÑаеÑÑÑ Ð¿ÐµÑеклÑÑиÑÑ Ñелеканал",reason_id:"switch_problem"},{reason_title:"ЧеÑнÑй ÑкÑан вмеÑÑо ÑÑиÑа",reason_id:"black_screen"}],[m.DEFAULT]:[{reason_title:"Ðидео \xabÑоÑмозиÑ\xbb",reason_id:"freeze"},{reason_title:"ÐвÑк оÑÑÑÐ°ÐµÑ Ð¾Ñ Ð¸Ð·Ð¾Ð±ÑажениÑ",reason_id:"delay"},{reason_title:"ÐвÑк еÑÑÑ, а изобÑÐ°Ð¶ÐµÐ½Ð¸Ñ Ð½ÐµÑ",reason_id:"no_video"},{reason_title:"РекламнÑй Ð±Ð°Ð½Ð½ÐµÑ Ð¼ÐµÑÐ°ÐµÑ Ð¿ÑоÑмоÑÑÑ",reason_id:"ads"},{reason_title:"ÐзобÑажение или звÑк низкого каÑеÑÑва",reason_id:"low_quality"},{reason_title:"ÐекоÑÑекÑнÑе ÑÑбÑиÑÑÑ",reason_id:"incorrect_subtitles"}]},this.textareaRef=null,this.blockInfo=null,this.apiUrl=this.props.systemInformation.API_URL||n.H$,this.sendEvents=(t,p,_,e,r)=>{let{player:o}=this.props.player,s=(0,n.Ih)(c()),{router:a}=this.props,i="";switch(s.screenType){case"category":i=a.asPath.replace("/","");break;case"product":i=a.asPath.replace("/watch/","")||"";break;default:i=s.screenAttributesId}let u={...this.blockInfo,action_id:e||"click",action_result:r||"",block_type:"popup",block_attributes_id:"video_error",element_type:t||"",element_attributes_id:p||"video_error",element_attributes_text:_,event_time:new Date().getTime(),screen_type:"player",screen_attributes_id:null==o?void 0:o.uid,referer_screen_type:null==s?void 0:s.screenType,referer_screen_attributes_id:i};this.props.somethingWrongShoot(u)},this.closeHandler=(t,p,_)=>{this.props.toggleSomethingWrongPopup(!1),_||this.sendEvents(t,p)},this.submitHandler=(t,p)=>{let{submited:_,selectedPoints:e,textValue:r}=this.state,{submitShootData:o}=this.props;!_&&e.length?-1===e.indexOf("other")||r.length?this.setState({submited:!0},()=>{let t={...this.blockInfo,...o,action_id:"send_form",action_result:e.join(", "),action_attributes_str:"video_error",block_type:"popup",block_attributes_id:"video_error",custom_field_str1:r,event_time:new Date().getTime()};this.props.somethingWrongShoot(t),this.props.onSubmit(),this.closeHandler(null,null,!0)}):this.setState({error:"ÐеобÑ
одимо ÑказаÑÑ Ð¿ÑиÑинÑ, либо вÑбÑаÑÑ Ð´ÑÑгой пÑнкÑ"}):this.setState({error:"ÐеобÑ
одимо вÑбÑаÑÑ Ñ
оÑÑ Ð±Ñ Ð¾Ð´Ð¸Ð½ ваÑианÑ"})},this.handleKeyDown=t=>{27===t.keyCode&&this.closeHandler()},this.handleClickOutside=t=>{this.popupWrapper&&!this.popupWrapper.contains(t.target)&&this.closeHandler()},this.handleSelect=(t,p)=>{let{name:_}=t.target,{selectedPoints:e}=this.state,{authData:r}=this.props.registration,o={...this.blockInfo,action_id:"click",action_result:-1===e.indexOf(p.reason_id),element_type:"checkbox",screen_attributes_ab_tag:r&&r.tags||"",event_version:"1.0",element_attributes_id:p.reason_id,element_attributes_text:p.reason_title,event_time:Date.now()};if(this.props.somethingWrongShoot(o),-1===e.indexOf(_))this.setState(t=>({selectedPoints:[...t.selectedPoints,_],error:null}),()=>{"other"==_&&this.textareaRef&&this.textareaRef.focus()});else{let t=[...e],p=t.indexOf(_);t.splice(p,1),this.setState({selectedPoints:t,error:null},()=>{"other"==_&&this.textareaRef&&this.textareaRef.focus()})}},this.handleTextareaChange=t=>{t.preventDefault(),t.stopPropagation(),this.setState({textValue:t.target.value.length<=1e3?t.target.value:this.state.textValue,error:t.target.value.length>1e3?"ÐоÑÑаÑайÑеÑÑ ÑложиÑÑÑÑ Ð² 1000 Ñимволов":null})},this.handleTextareaFocus=()=>{this.sendEvents("input","video_error","РаÑÑкажиÑе подÑобнее","text_input_start","manual")},this.handleTextareaBlur=t=>{this.sendEvents("input","video_error","РаÑÑкажиÑе подÑобнее","text_input",t.target.value)},this.getCurrentEpisode=t=>{let p="";return t.items&&t.items.map(t=>{t.items&&t.items.length&&t.items.map(t=>{t.uid===player.uid&&(p=t._cls)})}),p}}}S.defaultProps={submitShootData:{}
1,type:m.DEFAULT};let P=(0,l.withRouter)((0,o.Ng)(t=>({toggle:t.toggle,systemInformation:t.systemInformation,registration:t.registration,movie:t.movie,player:t.player}),h)(S))},92849:t=>{t.exports={"storybook-root":"StartPopups_storybook-root__ubyPk","start-popup":"StartPopups_start-popup__ZMdZm","start-popup__wrapper":"StartPopups_start-popup__wrapper__fW8u6","start-popup__wrapper__wrong":"StartPopups_start-popup__wrapper__wrong__jtXzl","start-popup__wrapper__wrong__center":"StartPopups_start-popup__wrapper__wrong__center__KFRVp","start-popup__title":"StartPopups_start-popup__title__h1fbr","start-popup__content":"StartPopups_start-popup__content__beyCq","start-popup__item":"StartPopups_start-popup__item__TU6kw","start-popup__close":"StartPopups_start-popup__close__iH60f","start-popup__wrapper-mini":"StartPopups_start-popup__wrapper-mini__R8SBw","start-popup__wrapper__freeze":"StartPopups_start-popup__wrapper__freeze__nDn_w","start-popup__delete":"StartPopups_start-popup__delete__9sj2A","start-popup__back":"StartPopups_start-popup__back__CalmI","start-popup__back-visible":"StartPopups_start-popup__back-visible__2Kfb_","start-popup__title-profile":"StartPopups_start-popup__title-profile__eUz4o","start-popup__phoneConfirm":"StartPopups_start-popup__phoneConfirm__44xmp","start-popup__subtitle":"StartPopups_start-popup__subtitle__CM3Oi","start-popup__phone":"StartPopups_start-popup__phone___BVVV","start-popup__info":"StartPopups_start-popup__info__Oi58I","start-popup__info__total":"StartPopups_start-popup__info__total__Jh1QI","start-popup__email":"StartPopups_start-popup__email__fB2ny","start-popup__inputsWrapper":"StartPopups_start-popup__inputsWrapper__IJmiu","start-popup__inputs":"StartPopups_start-popup__inputs__j1ftM","start-popup__input":"StartPopups_start-popup__input__cl5k4","start-popup__input-error":"StartPopups_start-popup__input-error__o7EJX","start-popup__input-label":"StartPopups_start-popup__input-label__7_nYw","start-popup__input-text":"StartPopups_start-popup__input-text__vVaub","start-popup__content-lang-text":"StartPopups_start-popup__content-lang-text__LfXKZ","start-popup__text":"StartPopups_start-popup__text__bFDpD","start-popup__desc":"StartPopups_start-popup__desc__ae2my","start-popup__mail":"StartPopups_start-popup__mail__ATAH_","start-popup__resend":"StartPopups_start-popup__resend__RD9q6","start-popup__more":"StartPopups_start-popup__more__S7R8J","start-popup__link":"StartPopups_start-popup__link__Mqlxs","start-popup__description":"StartPopups_start-popup__description___UZeq","start-popup__button":"StartPopups_start-popup__button__yyeDi",submited:"StartPopups_submited__kJYWA",spinner:"StartPopups_spinner__CHpQr","start-popup__marginTop":"StartPopups_start-popup__marginTop__3qMq6","start-popup__button__add__email":"StartPopups_start-popup__button__add__email__RJ_oZ","start-popup__button-red":"StartPopups_start-popup__button-red__XlOF9","start-popup__button-stroke":"StartPopups_start-popup__button-stroke__wI__9","start-popup__button-stroke-delete":"StartPopups_start-popup__button-stroke-delete__oWiiM","start-popup__button-unstroke":"StartPopups_start-popup__button-unstroke__FUfgt","start-popup__spinner":"StartPopups_start-popup__spinner__2DB_O","start-popup__profile-wrapper":"StartPopups_start-popup__profile-wrapper__aHMc_","start-popup__profile":"StartPopups_start-popup__profile__VpD7W","start-popup__profile-avatar":"StartPopups_start-popup__profile-avatar__HHETe","start-popup__profile-checkbox-wrapper":"StartPopups_start-popup__profile-checkbox-wrapper__XsVPH","start-popup__profile-delete":"StartPopups_start-popup__profile-delete__tN628","start-popup__delete-name":"StartPopups_start-popup__delete-name__FEabt","start-popup__avatars-wrapper":"StartPopups_start-popup__avatars-wrapper__wzF1Q","start-popup__avatars-item":"StartPopups_start-popup__avatars-item__U5AVN","start-popup__input-wrapper":"StartPopups_start-popup__input-wrapper__BaBMy","start-popup__error":"StartPopups_start-popup__error__V26eD","start-popup__area__wrapper":"StartPopups_start-popup__area__wrapper__H8oZY","start-popup__radioWrapper":"StartPopups_start-popup__radioWra
1pper__2ZKqP","start-popup__radioWrapper-error":"StartPopups_start-popup__radioWrapper-error__F9Lg_","start-popup__radioButton":"StartPopups_start-popup__radioButton__tV3Ma","start-popup__freeze":"StartPopups_start-popup__freeze__M5Cno","start-popup__check":"StartPopups_start-popup__check__JzN9R",normal:"StartPopups_normal__6H2NA","start-popup__marginBottom__large":"StartPopups_start-popup__marginBottom__large__k8LSw","start-popup__codeField":"StartPopups_start-popup__codeField__rpbDO","start-popup__resultWrapper":"StartPopups_start-popup__resultWrapper__ikX4v","start-popup__resultIcon":"StartPopups_start-popup__resultIcon__RqDkJ","start-popup__marginBottom__zero":"StartPopups_start-popup__marginBottom__zero__CHP_U","start-popup__marginBottom__small":"StartPopups_start-popup__marginBottom__small__dJFPd","start-popup__miniMargin":"StartPopups_start-popup__miniMargin__tofGY","start-popup__resultPopup":"StartPopups_start-popup__resultPopup__pCLpo","start-popup__field":"StartPopups_start-popup__field__LRMf7",containerCaptcha:"StartPopups_containerCaptcha__ynlCv","mt-8":"StartPopups_mt-8__GFM_A","account-popup__date":"StartPopups_account-popup__date__3WjcO","account-popup__error":"StartPopups_account-popup__error__8_Ulj",limitsWrapper:"StartPopups_limitsWrapper__5S2ip",countdown:"StartPopups_countdown__WF0f_","language-popup":"StartPopups_language-popup__xGQYa","input-select-container":"StartPopups_input-select-container__M70JK","input-select":"StartPopups_input-select__l4oB3","input-select-options":"StartPopups_input-select-options__EgeeB","input-select-item":"StartPopups_input-select-item__d2_zW","start-popup__items":"StartPopups_start-popup__items__zN0mG","start-popup__info__sub":"StartPopups_start-popup__info__sub__KQSSZ","start-popup__title-sure-delete":"StartPopups_start-popup__title-sure-delete__8QqwY","start-popup__title-wrap":"StartPopups_start-popup__title-wrap__YnjZO"}}}]);
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.