1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4203],{4370:(t,e,o)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/main/[rules]",function(){return o(32376)}])},32376:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>b});var n=o(74848),i=o(47819),a=o(27116),s=o(96540),_=o(74368),r=o(86715),l=o(31083),p=o(60521),c=o(14265),d=o(97093),u=o(21335),h=o.n(u),f=o(26605),m=o.n(f),A=o(30291);class g extends s.Component{componentDidUpdate(){let{authData:t}=this.props.registration;if(t&&!this.loadAuth){this.loadAuth=!0,this.setState({isLoading:!0});let e=new URLSearchParams(window.location.search).get("type"),o=this.props.systemInformation.locale||"ru",n="&locale=".concat(o),a="&content_lang=".concat(o);fetch("".concat(this.apiUrl).concat("prime_products"===e?i.PI.primeProducts:i.PI.selection,"/").concat(encodeURI(this.props.rules)).concat(this.apiKey).concat(n).concat(a,"&profile_id=").concat(null==t?void 0:t.profile_id,"&device_type=web&for_kids=").concat(t.profile_for_child),{credentials:"include"}).then(t=>{200===t.status&&t.json().then(t=>{this.setState({content:t,isLoading:!1}),this.getBanner(t.id)}),t.status>400&&this.setState({notFound:!0})})}}render(){let{content:t,notFound:e,bannerData:o}=this.state,{asPath:i}=this.props.router,a=this.props.systemInformation.windowInnerWidth,s=this.props.profile.profileList;if(e)return(0,n.jsx)(d.A,{});if(!t||!t.items)return this.props.isLoading?(0,n.jsx)("div",{className:m().waiting_for_data,children:(0,n.jsx)("div",{className:m().spinner})}):null;{let e=[{link:"/genres",title:"ÐаÑалог",name:"ÐаÑалог"}];return e.push({title:"".concat(t.title),name:"".concat(t.title)}),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(A.A,{title:"/main/start-predstavlyaet-web"===i?"ÐкÑклÑзивнÑе ÑилÑÐ¼Ñ Ð¸ ÑеÑÐ¸Ð°Ð»Ñ Ð¾Ñ Ð¾Ð½Ð»Ð°Ð¹Ð½ киноÑеаÑÑа START":"СпиÑок лÑÑÑего конÑенÑа в HD каÑеÑÑве - Start.ru",description:"".concat(t.title," - коллекÑии и подбоÑки ÑилÑмов и ÑеÑиалов в Ñ
оÑоÑем каÑеÑÑве. ÐаÑалог онлайн-киноÑеаÑÑа start.ru"),breadCrumbs:e,canonical:"/main/".concat(t.alias)}),(0,n.jsxs)("div",{className:h().rules,children:[(0,n.jsx)(l.A,{breadcrumbs:e}),(0,p.T)({poster:o,windowInnerWidth:a,profileList:s})&&(0,n.jsx)(p.A,{poster:o,blockIdx:1,containerClass:h().banner,screenType:"rules",screenAttributesId:t.alias}),t.title?(0,n.jsx)("h1",{className:h().h1,dangerouslySetInnerHTML:{__html:t.title}}):null,(0,n.jsx)(c.A,{noJs:this.props.noJs,content:t.items,blockAlias:t.alias,videoUnitType:t.alias,canUnitPlay:!0})]})]})}}constructor(...t){super(...t),this.state={content:this.props.noJs?this.props.data:null,notFound:!1,isLoading:!1,bannerData:null},this.apiUrl=this.props.systemInformation.API_URL||a.H$,this.apiKey=this.props.systemInformation.API_KEY||a.Lq,this.loadAuth=!1,this.getBanner=async t=>{var e,o,n;let a=(null===(o=this.props)||void 0===o?void 0:null===(e=o.systemInformation)||void 0===e?void 0:e.locale)||"ru",s=this.props.registration.authData,_="".concat(this.apiUrl).concat(i.PI.postersSelection,"/").concat(t).concat(this.apiKey,"&for_kids=").concat(s.profile_for_child).concat("&locale=".concat(a)).concat("&content_lang=".concat(a),"&device_type=web"),r=await fetch(_,{credentials:"include"});if(r.ok){let t=await r.json();(null==t?void 0:null===(n=t.items)||void 0===n?void 0:n.length)&&this.setState({bannerData:null==t?void 0:t.items[0]})}}}}g.defaultProps={noJs:!1};let v=(0,r.withRouter)((0,_.Ng)(t=>({systemInformation:t.systemInformation,registration:t.registration,profile:t.profile}))(g));class b extends s.Component{static async getInitialProps(t){var e,o,n,s,_,r,l,p,c,d,u,h;let f=(null===(o=t.reduxStore.getState())||void 0===o?void 0:null===(e=o.systemInformation)||void 0===e?void 0:e.API_URL)||a.H$,m=(null===(s=t.reduxStore.getState())||void 0===s?void 0:null===(n=s.systemInformation)||void 0===n?void 0:n.API_KEY)||a.Lq,A=t.req&&t.req.headers&&t.req.headers["geoip-country-code"]?"&geoip_cc=".concat(t.req.headers["geoip-country-code"]):"",g=(null===(r=t.reduxStore.getState())||void 0===r?void 0:null===(_=r.systemInformation)||void 0===_?void 0:_.locale)||(null==t?void 0:null===(l=t.query)||void 0===l?void 0:l.locale)||"ru",v=(null===(c=t.reduxStore.getState())||void 0===c?void 0:null===(p=c.profile)||void 0===p?void 0:p.childProfile)||(null===(u=t.reduxStore.getState())||void 0===u?void 0:null===(d=u.authData)||void 0===d?void 0:d.profile_for_child)||!1,b=null==t?void 0:null===(h=t.query)||void 0===h?void 0:h.rules,y="".concat(f).concat(i.PI.main,"/").concat(b).concat(m).concat(A,"&for_kids=").concat(v).concat("&locale=".concat(g)).concat("&content_lang=".concat(g)),w=await fetch(y,{credentials:"include",method:"GET"});return{data:await w.json(),rules:b}}render(){let{data:t,rules:e}=this.props;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(v,{rules:e},e),(0,n.jsx)("noscript",{children:(0,n.jsx)(v,{data:t,noJs:!0})})]})}}},21335:t=>{t.exports={"storybook-root":"Rules_storybook-root__Naxuz",rules:"Rules_rules__Ml6SY",h1:"Rules_h1__FeSgg",banner:"Rules_banner__w5gPT"}},26605:t=>{t.exports={"storybook-root":"App_storybook-root__Ie8AG",left:"App_left__Sy736",right:"App_right__vn2fZ",clear:"App_clear__rpMqP",overflow:"App_overflow__iRfow",fullHeight:"App_fullHeight__X4L9K",hidden:"App_hidden__qlNQH",non_visible:"App_non_visible__O5cOD",visible:"App_visible__zzZyZ",non_visible_absolute:"App_non_visible_absolute__7jgLf",payment__form:"App_payment__form__5RrqG",content:"App_content___MrgL",wrapper:"App_wrapper__RyMDT",not_found_global_wrapper:"App_not_found_global_wrapper__DmELW",not_found_wrapper:"App_not_found_wrapper__4mqQL",not_found_title:"Ap
1p_not_found_title__2ciQi",not_found_main:"App_not_found_main__n6M6O",small_paragraph:"App_small_paragraph__RP6F8","padding-20":"App_padding-20__uDsKE","page-wrapper":"App_page-wrapper__AVDth",visible_menu:"App_visible_menu__XIzjI",closed_menu:"App_closed_menu__I8uAy",onoffswitch:"App_onoffswitch__lJsso","onoffswitch-checkbox":"App_onoffswitch-checkbox__x0Aa3","onoffswitch-label":"App_onoffswitch-label__C6oFO","onoffswitch-inner":"App_onoffswitch-inner___fV6a",start_checkbox:"App_start_checkbox__BuVju",start_checkbox_red:"App_start_checkbox_red__MJl4H",logout:"App_logout__7ZM2Q","vjs-big-play-button":"App_vjs-big-play-button__VIq9G",waiting_for_data:"App_waiting_for_data__vubYT",spinner:"App_spinner__2ocz8",start_originals:"App_start_originals__3TJm1",spinner_slider:"App_spinner_slider__JKL8Q",disabled_text_button:"App_disabled_text_button__yZ7yi",page_wrapper:"App_page_wrapper__xo_8G",page_title:"App_page_title__2cuEe","payment-button":"App_payment-button__frYBb",disabled:"App_disabled__WObhB","payment-text":"App_payment-text__CJi9W","payment-button_secondary":"App_payment-button_secondary__JV_Tw",resended:"App_resended__Ngu_n"}}},t=>{var e=e=>t(t.s=e);t.O(0,[4265,636,6593,8792],()=>e(4370)),_N_E=t.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.