PageSourceSearch

https://start.ru/_next/static/chunks/8047-24166daa30a5cf41.js

js start.ru collected 2026-10-02 07:49:05 UTC 163,209 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8047],{52477:(e,t,i)=>{"use strict";i.d(t,{A:()=>d});var _=i(74848),n=i(96540),s=i(74368),o=i(98126),r=i(92849),a=i.n(r),l=i(27116),c=i(35296);let p={clickHouseShoot:o.Y3};class u extends n.Component{componentDidMount(){let{clickHouseData:e}=this.props.systemInformation,t={...e,action_id:"popupview",block_type:"popup",screen_attributes_id:"payment_method",block_attributes_id:"add_payment_card",event_time:new Date().getTime()};this.props.clickHouseShoot(this.apiUrl,this.apiKey,t)}render(){let{month:e,subscriptionExpire:t,total:i,currency:n}=this.props,{authData:s}=this.props.registration,o=l.UM[n],r=(null==s?void 0:s.type)==="TRIAL"&&(null==s?void 0:s.subscriptions.length)===1?"Бесплатный период закончится":"Ранее оплаченный период закончится",c=new Date().getFullYear(),p=null==t?void 0:t.replace("\xa0".concat(c),"");return(0,_.jsx)("div",{className:"".concat(a()["start-popup"]," ").concat(a()["start-popup__wrong"]),onMouseDown:this.handleClickOutside,onKeyDown:this.handleKeyDown,children:(0,_.jsxs)("div",{className:"".concat(a()["start-popup__wrapper"]," ").concat(a()["start-popup__wrapper__wrong"]," ").concat(a()["start-popup__wrapper__wrong__center"]),ref:e=>{this.popupWrapper=e},children:[(0,_.jsx)("div",{className:a()["start-popup__close"],onClick:()=>this.closeHandler("button","cross"),children:(0,_.jsx)("img",{src:"/static/images/popups/dismiss-white.svg"})}),(0,_.jsxs)("div",{className:a()["start-popup__content"],children:[(0,_.jsx)("div",{className:"".concat(a()["start-popup__title"]," ").concat(a()["start-popup__title-sure-delete"]),children:"Добавьте банковскую карту"}),(0,_.jsxs)("div",{className:"".concat(a()["start-popup__info"]),children:[r," ",p,i?", далее спишем\xa0с карты ":"",i?(0,_.jsxs)("span",{className:a()["start-popup__info__total"],children:[i,"\xa0",o," за\xa0",(0,_.jsx)("span",{dangerouslySetInnerHTML:{__html:e}})]}):null]})]}),(0,_.jsx)("div",{className:"".concat(a()["start-popup__button"]," ").concat(a()["start-popup__button-red"]),onClick:this.handleSubmit,children:(0,_.jsx)("span",{className:a()["start-popup__delete"],children:"Добавить карту"})})]})})}constructor(...e){super(...e),this.apiUrl=this.props.systemInformation.API_URL||l.H$,this.apiKey=this.props.systemInformation.API_KEY||l.Lq,this.sendEvents=(e,t,i)=>{let{clickHouseData:_}=this.props.systemInformation,n={..._,action_id:"click",block_type:"popup",block_attributes_id:"add_payment_card",element_type:e||"",element_attributes_id:t||"",element_attributes_text:i||"",event_time:new Date().getTime()};this.props.clickHouseShoot(this.apiUrl,this.apiKey,n)},this.closeHandler=(e,t,i)=>{this.sendEvents(e,t,i),this.props.closeHandler()},this.handleKeyDown=e=>{27===e.keyCode&&this.closeHandler(),13===e.keyCode&&this.handleSubmitClick()},this.handleClickOutside=e=>{this.popupWrapper&&!this.popupWrapper.contains(e.target)&&this.closeHandler()},this.handleSubmit=()=>{this.props.submitHandler(),this.closeHandler("button","add_payment_card","Добавить карту"),(0,c.TV)("addCardAndRecurrentOn",!0)}}}let d=(0,s.Ng)(e=>({payments:e.payments,systemInformation:e.systemInformation,registration:e.registration,profile:e.profile}),p)(u)},86017:(e,t,i)=>{"use strict";i.d(t,{A:()=>d});var _=i(74848),n=i(96540),s=i(74368),o=i(98126),r=i(92849),a=i.n(r),l=i(27116),c=i(67265);i(47819);let p={clickHouseShoot:o.Y3,pushStackAddItem:c.nD};class u extends n.Component{componentDidMount(){let{clickHouseData:e}=this.props.systemInformation,t={...e,action_id:"popupview",block_type:"popup",screen_attributes_id:"settings",block_attributes_id:"renew_subscription",event_time:new Date().getTime()};this.props.clickHouseShoot(this.apiUrl,this.apiKey,t)}render(){let{subscriptionExpire:e,total:t,futureExpire:i,currency:n}=this.props,{authData:s}=this.props.registration,o=l.UM[n],r=(null==s?void 0:s.type)==="TRIAL"&&(null==s?void 0:s.subscriptions.length)===1?"Бесплатный период закончится":"Ранее оплаченный период закончится",c=new Date().getFullYear(),p=e?e.replace("\xa0".concat(c),""):"",u=i?i.replace("\xa0".concat(c),""):"";return(0,_.jsx)("div",{className:"".concat(a()["start-popup"]," ").concat(a()["start-popup__wrong"]),onMouseDown:this.handleClickOutside,onKeyDown:this.handleKeyDown,children:(0,_.jsxs)("div",{className:"".concat(a()["start-popup__wrapper"]," ").concat(a()["start-popup__wrapper__wrong"]," ").concat(a()["start-popup__wrapper__wrong__center"]),ref:e=>{this.popupWrapper=e},children:[(0,_.jsx)("div",{className:a()["start-popup__close"],onClick:()=>this.closeHandler("button","cross"),children:(0,_.jsx)("img",{src:"/static/images/popups/dismiss-white.svg"})}
1),(0,_.jsxs)("div",{className:a()["start-popup__content"],children:[(0,_.jsx)("div",{className:"".concat(a()["start-popup__title"]," ").concat(a()["start-popup__title-sure-delete"]),children:"Возобновить подписку?"}),(0,_.jsxs)("div",{className:"".concat(a()["start-popup__info"]),children:[r," ",p,", далее спишем\xa0",(0,_.jsxs)("span",{className:a()["start-popup__info__total"],children:[t,"\xa0",o," за\xa0",(0,_.jsx)("span",{children:this.handlePeriodTitle()})]})]})]}),(0,_.jsx)("div",{className:"".concat(a()["start-popup__button"]," ").concat(a()["start-popup__button-red"]),onClick:()=>this.handleSubmit(r,p,u),children:(0,_.jsx)("span",{className:a()["start-popup__delete"],children:"Возобновить"})})]})})}constructor(...e){super(...e),this.apiUrl=this.props.systemInformation.API_URL||l.H$,this.apiKey=this.props.systemInformation.API_KEY||l.Lq,this.sendEvents=(e,t,i)=>{let{clickHouseData:_}=this.props.systemInformation,n={..._,action_id:"click",block_type:"popup",block_attributes_id:"renew_subscription",element_type:e||"",element_attributes_id:t||"",element_attributes_text:i||"",event_time:new Date().getTime()};this.props.clickHouseShoot(this.apiUrl,this.apiKey,n)},this.closeHandler=(e,t,i)=>{this.sendEvents(e,t,i),this.props.closeHandler()},this.handleKeyDown=e=>{27===e.keyCode&&this.closeHandler(),13===e.keyCode&&this.handleSubmitClick()},this.handleClickOutside=e=>{this.popupWrapper&&!this.popupWrapper.contains(e.target)&&this.closeHandler()},this.handleSubmit=(e,t,i)=>{let{clickHouseData:_}=this.props.systemInformation;this.props.submitHandler(),this.closeHandler("button","renew_subscription","Возобновить"),this.props.pushStackAddItem({text:"<span>Подписка возобновлена</span>\n                        ".concat(e," ").concat(t,", далее продлим подписку до ").concat(i),withTitle:!0,closeIn:3e4});let n={..._,action_id:"popupview",block_type:"popup",screen_attributes_id:"settings",block_attributes_id:"notification_success_renew_subscription",event_time:new Date().getTime()};this.props.clickHouseShoot(this.apiUrl,this.apiKey,n)},this.handlePeriodTitle=()=>{let e=this.props.month%30!=0,t=(this.props.month||30)/30;return 1===t?"".concat(this.declension(["месяц","месяца","месяцев"],t)):e?"".concat(this.props.month," ").concat(this.declension(["день","дня","дней"],this.props.month)):"".concat(t,"\xa0").concat(this.declension(["месяц","месяца","месяцев"],t))},this.declension=(e,t)=>e[t%100>4&&t%100<20?2:[2,0,1,1,1,2][t%10<5?t%10:5]]}}let d=(0,s.Ng)(e=>({payments:e.payments,systemInformation:e.systemInformation,registration:e.registration,profile:e.profile}),p)(u)},39075:(e,t,i)=>{"use strict";i.d(t,{A:()=>m});var _=i(74848),n=i(96540),s=i(74368),o=i(98126),r=i(92849),a=i.n(r),l=i(98047),c=i(27116),p=i(35296);let u={clickHouseShoot:o.Y3,toggleCancelSubscriptionActive:l.iy};class d extends n.Component{componentDidMount(){let{clickHouseData:e}=this.props.systemInformation,t={...e,action_id:"popupview",screen_attributes_id:"payment_method",block_type:"popup",block_attributes_id:"delete_payment_card_recurrent_off",event_time:new Date().getTime()};this.props.clickHouseShoot(this.apiUrl,this.apiKey,t)}render(){return(0,_.jsx)("div",{className:"".concat(a()["start-popup"]," ").concat(a()["start-popup__wrong"]),onMouseDown:this.handleClickOutside,onKeyDown:this.handleKeyDown,children:(0,_.jsxs)("div",{className:"".concat(a()["start-popup__wrapper"]," ").concat(a()["start-popup__wrapper__wrong__center"]),ref:e=>{this.popupWrapper=e},children:[(0,_.jsx)("div",{className:a()["start-popup__close"],onClick:()=>this.closeHandler("button","cross"),children:(0,_.jsx)("img",{src:"/static/images/popups/dismiss-white.svg"})}),(0,_.jsxs)("div",{className:a()["start-popup__content"],children:[(0,_.jsx)("div",{className:"".concat(a()["start-popup__title"]," ").concat(a()["start-popup__title-sure-delete"]),children:"Удалить карту?"}),(0,_.jsx)("div",{className:"".concat(a()["start-popup__info"]),children:"Отключим автопродление. Продлевать подписку\xa0нужно будет вручную"})]}),(0,_.jsx)("div",{className:"".concat(a()["start-popup__button"]," ").concat(a()["start-popup__button-red"]),onClick:()=>this.closeHandler("button","keep","Оставить"),"data-testid":"popup_delete_cancel",children:(0,_.jsx)("span",{className:a()["start-popup__delete"],children:"Оставить"})}),(0,_.jsx)("div",{className:"".concat(a()["start-popup__button"]," ").concat(a()["start-popup__button-stroke"]," ").concat(a()["start-popup__button-stroke-delete"]),onClick:this.handleCardRemove,"data-testid":"popup_delete_yes",children:(0,_.jsx)("span",{children:"Удалить"})})]})})}constructor(...e){super(...e),this.apiUrl=this.props.systemInformation.API_URL||c.H$,this.apiKey=this.props.systemInformation.API_KEY||c.Lq,this.sendEvents=(e,t,i)=>{let{clickHouseData:_}=this.props.systemInformation,n={..._,action_id:"click",block_type:"popup",block_attributes_id:"delete_payment_card_recurrent_off",element_type:e||"",element_attributes_id:t||"",element_attributes_text:i||"",event_time:new Date().getTime()};this.props.clickHouseShoot(this.apiUrl,this.apiKey,n)},this.closeHandler=(e,t,i)=>{"delete"!==t&&(0,p.Yj)("removePaymentMethodClick"),this.sendEvents(e,t,i),this.props.closeHandler()},this.handleKeyDown=e=>
1{27===e.keyCode&&this.closeHandler(),13===e.keyCode&&this.handleSubmitClick()},this.handleClickOutside=e=>{this.popupWrapper&&!this.popupWrapper.contains(e.target)&&this.closeHandler()},this.handleCardRemove=()=>{(0,p.TV)("removeOneCard",!0),this.props.toggleCancelSubscriptionActive(!0),this.closeHandler("button","delete")}}}let m=(0,s.Ng)(e=>({payments:e.payments,systemInformation:e.systemInformation,registration:e.registration}),u)(d)},78566:(e,t,i)=>{"use strict";i.d(t,{A:()=>g});var _=i(74848),n=i(96540),s=i(74368),o=i(45322),r=i.n(o),a=i(27116),l=i(47819),c=i(19116),p=i(71635),u=i(68818),d=i(98126),m=i(67265),b=i(35296);let h={fetchPaymentsLoad:u.K6,clickHouseShoot:d.Y3,pushStackAddItem:m.nD};class v extends n.Component{componentDidMount(){let{clickHouseData:e}=this.props.systemInformation,t={...e,action_id:"screenview",screen_attributes_id:"payment_method",event_time:new Date().getTime()};this.props.clickHouseShoot(this.apiUrl,this.apiKey,t)}render(){var e,t;let{acitveMethod:i,currentSubscription:n}=this.props,{payments:s}=this.props.payments,{paymentNumberRemove:o,mobileRemoving:l,mobileRemovingId:u}=this.state,{deviceData:d,config:m}=this.props.systemInformation,b=(null==m?void 0:null===(e=m.delete_last_ps)||void 0===e?void 0:e.mode)==="on",{authData:h}=this.props.registration,v=s&&s.length?s.filter(e=>"itunes_receipt"!==e.type&&"google_token"!==e.type&&"huawei_token"!==e.type):[],g=v.filter(e=>e.is_active).length>1,f=v.length?v[0]:null,y=(null==n?void 0:n.recurrent)&&1===v.length,k=-1!==a.PY.indexOf((null==i?void 0:i.type)||(null==i?void 0:null===(t=i.bank_)||void 0===t?void 0:t.type)),x=i?new c.A(i):null;return(0,_.jsxs)("div",{className:"".concat(r()["start-popup"]," ").concat(r().dark),children:[(0,_.jsx)("div",{className:r()["start-popup__close"],onClick:this.closeHandler,children:(0,_.jsx)("img",{src:"/static/images/card-types/close.svg"})}),"mobile_web"===d?(0,_.jsxs)("div",{className:"".concat(r()["start-popup__wrapper"]," ").concat(r().mobile),children:[i&&!g?(0,_.jsxs)("div",{className:r().mobile__active__block,children:[(0,_.jsxs)("div",{className:r().mobile__active,children:[(0,_.jsx)("div",{className:r()["mobile__active-data"],children:(0,_.jsx)(p.A,{geo:null==h?void 0:h.current_country_code,card:i,phone:h&&h.phone,ignore_expire:null==f?void 0:f.ignore_expire,payment:f})}),(0,_.jsx)("div",{className:r()["mobile__active-wrapper"],children:(0,_.jsxs)("div",{className:r()["mobile__active-current"],children:[(0,_.jsx)("img",{src:"/static/images/card-types/active.svg"}),(0,_.jsx)("div",{children:"Текущий способ"})]})})]}),g||k&&"megafon_payment"!==x.getType()?null:(0,_.jsx)("div",{className:r()["mobile__cards-item_remove"],onClick:()=>{var e;return this.handleMobileRemove(null==i?void 0:null===(e=i.cardInfo_)||void 0===e?void 0:e.id,0,y)},children:(0,_.jsx)("img",{src:"/static/images/card-types/trashbin.svg"})})]}):null,(0,_.jsxs)("div",{className:r().mobile__cards,children:[s.map((e,t)=>{var n,s,o;if(e.id===(null==i?void 0:null===(n=i.cardInfo_)||void 0===n?void 0:n.id))return;let l=-1!==a.PY.indexOf(e.type),u=new c.A(e),d=new Date(null===(o=u.cardInfo_)||void 0===o?void 0:null===(s=o.card_expire)||void 0===s?void 0:s.replace(/-/g,"/"))<new Date&&-1===a.bd.indexOf(u.getType()),m="invalid"===u.getCardState()?u.getCardNumber():null;if(!g&&(null==h?void 0:h.subscriptions.length)>0)return(0,_.jsxs)("div",{className:r()["mobile__cards-item"],children:[(0,_.jsx)("div",{onClick:()=>this.selectionPaymet(e.id,l,d,null==e?void 0:e.ignore_expire,m),children:(0,_.jsx)(p.A,{geo:null==h?void 0:h.current_country_code,card:u,small:!0,phone:h&&h.phone,ignore_expire:null==e?void 0:e.ignore_expire,payment:e})}),g||l&&"megafon_payment"!==u.getType()?null:(0,_.jsx)("div",{className:r()["mobile__cards-item_remove"],onClick:()=>this.handleMobileRemove(e.id,t),children:(0,_.jsx)("img",{src:"/static/images/card-types/trashbin.svg"})})]},e.id)}),v.length>=5?null:(0,_.jsxs)("div",{className:r().mobile__add,onClick:this.redirectAddPayment,children:[(0,_.jsx)("span",{className:r()["payments-new__icon"],children:(0,_.jsx)("img",{src:"/static/images/card-types/new.svg"})}),(0,_.jsx)("span",{children:"Добавить"})]})]})]}):(0,_.jsxs)("div",{className:r()["start-popup__wrapper"],children:[s.length>=5?null:(0,_.jsxs)("div",{className:r()["payments-new"],onClick:this.redirectAddPayment,children:[(0,_.jsx)("span",{className:r()["payments-new__icon"],children:(0,_.jsx)("img",{src:"/static/images/card-types/new.svg"})}),(0,_.jsx)("a",{children:"Добавить"})]}),s.map((e,t)=>{var i,n;let{id:s,is_active:l,ignore_expire:u}=e,d=new c.A(e),m=-1!==a.PY.indexOf(d.getType()),f="invalid"===d.getCardState()?d.getCardNumber():null,y=new Date(null===(n=d.cardInfo_)||void 0===n?void 0:null===(i=n.card_expire)||void 0===i?void 0:i.replace(/-/g,"/"))<new Date&&-1===a.bd.indexOf(d.getType())&&-1===a.qP.indexOf(h.current_country_code);return l&&!m&&!g&&(null==h?void 0:h.subscriptions.length)>0?(0,_.jsxs)("div",{className:r()["payments-item--active--wrapper"],children:[(0,_.jsxs)("div",{className:r()["payments-item--active"],children:[(0,_.jsx)(p.A,{geo:null==h?void 0:h.current_country_code,card:d,phone:null==h?void 0:h.phone,ignore_expire:null==e?void 0:e.ignore_expire,payment:e}),(0,_.jsx)("span",{className:r()["current-payment"],children:"Текущий способ"})]},"".concat(s,"-").concat(t)),b?(0,_.jsx)("div",{children:g||m&&"megafon_payment"!==d.getType()?null:o===t?(0,_.jsxs)("div",{className:r()["popup-remove-card"],children:[(0,_.jsx)("div",{className:r()["popup-remove-card__text"],children:"Удалить карту?"}),(0,_.jsxs)("div",{className:r()["popup-remove-card__control"],children:[(0,_.jsxs)("div",{onClick:()=>this.handleCardRemove(s,(null==v?void 0:v.length)===1),className:r()["popup-remove-card__button-control"],children:[(0,_.jsx)("img",{src:"/static/images/card-types/payment-remove-ok.svg"}),(0,_.jsx)("span",{children:"Да"})]}),(0,_.jsxs)("div",{onClick:this.cancelPaymentRemove,className:r()["popup-remove-card__button-control"],children:[(0,_.jsx)("img",{src:"/static/images/card-types/payment-remove.svg"}),(0,_.jsx)("span",{children:"Нет"})]})]})]}):(0,_.jsx)("span",{className:r()["payments-item__btn-remove"],onClick:()=>this.paymentRemove(t)})}):null]}):(0,_.jsxs)("div",{className:r()["payments-item"],style:{backgroundColor:d.getBackgroun
1dColor()},children:[(0,_.jsx)("div",{onClick:()=>this.selectionPaymet(s,m,y,u,f),children:(0,_.jsx)(p.A,{className:r()["popup__payments-item"],geo:null==h?void 0:h.current_country_code,card:d,small:!0,phone:h&&h.phone,is_active:l,ignore_expire:u,payment:e})}),g||m&&"megafon_payment"!==d.getType()?null:o===t?(0,_.jsxs)("div",{className:r()["popup-remove-card"],children:[(0,_.jsx)("div",{className:r()["popup-remove-card__text"],children:"Удалить карту?"}),(0,_.jsxs)("div",{className:r()["popup-remove-card__control"],children:[(0,_.jsxs)("div",{onClick:()=>this.handleCardRemove(s,(null==v?void 0:v.length)===1),className:r()["popup-remove-card__button-control"],children:[(0,_.jsx)("img",{src:"/static/images/card-types/payment-remove-ok.svg"}),(0,_.jsx)("span",{children:"Да"})]}),(0,_.jsxs)("div",{onClick:this.cancelPaymentRemove,className:r()["popup-remove-card__button-control"],children:[(0,_.jsx)("img",{src:"/static/images/card-types/payment-remove.svg"}),(0,_.jsx)("span",{children:"Нет"})]})]})]}):(0,_.jsx)("span",{className:r()["payments-item__btn-remove"],onClick:()=>this.paymentRemove(t)})]},"".concat(s,"-").concat(t))})]}),l?(0,_.jsxs)("div",{className:r().remove,children:[(0,_.jsx)("div",{className:r().remove__title,children:"Удалить карту?"}),(0,_.jsxs)("div",{className:r().remove__buttons,children:[(0,_.jsxs)("div",{className:r().remove__button,onClick:()=>this.handleCardRemove(u,1===s.length),children:[(0,_.jsx)("img",{src:"/static/images/card-types/confirm.svg"}),(0,_.jsx)("span",{children:"Да"})]}),(0,_.jsxs)("div",{className:r().remove__button,onClick:this.cancelPaymentRemove,children:[(0,_.jsx)("img",{src:"/static/images/card-types/payment-remove.svg"}),(0,_.jsx)("span",{children:"Нет"})]})]})]}):null]})}constructor(...e){var t;super(...e),t=this,this.state={paymentNumberRemove:-1,mobileRemoving:!1,mobileRemovingId:null},this.apiUrl=this.props.systemInformation.API_URL||a.H$,this.apiKey=this.props.systemInformation.API_KEY||a.Lq,this.paymentRemove=async e=>{this.sendLogs("button","delete","","",e);let{clickHouseData:t}=this.props.systemInformation,i={...t,action_id:"popupview",block_type:"popup",block_attributes_id:"delete_payment_card_confirm",screen_attributes_id:"payment_method",event_time:new Date().getTime()};this.props.clickHouseShoot(this.apiUrl,this.apiKey,i),this.setState({paymentNumberRemove:e})},this.handleCardRemove=function(e){let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{pendingSubscription:_}=t.props.profile,n=_.filter(e=>"lite"!==e.tariff_type);if(i&&(null==n?void 0:n.length)&&n[0].recurrent){(0,b.TV)("removePaymentMethodClick",!0),t.props.onePaymentPsDeleteHandler(),t.props.closeHandler();return}let{clickHouseData:s}=t.props.systemInformation,o={...s,action_id:"click",block_type:"popup",block_attributes_id:"delete_payment_card_confirm",element_type:"button",element_attributes_id:"ok",element_attributes_text:"да",event_time:new Date().getTime()};t.props.clickHouseShoot(t.apiUrl,t.apiKey,o),fetch("".concat(t.apiUrl).concat(l.PI.paymentMethods,"/").concat(e).concat(t.apiKey),{credentials:"include",method:"DELETE"}).then(_=>{_.status<400?_.json().then(_=>{t.props.fetchPaymentsLoad(_),t.setState({mobileRemoving:!1,mobileRemovingId:null,paymentNumberRemove:-1}),i?t.props.pushStackAddItem({text:"Удалили карту. Добавьте новую"}):t.props.pushStackAddItem({text:"Удалили карту"});let n={...s,action_id:"payment_method_edit",action_result:"delete",action_attributes_str:e,event_time:new Date().getTime()};t.props.clickHouseShoot(t.apiUrl,t.apiKey,n)}):(t.setState({mobileRemoving:!1,paymentNumberRemove:-1}),t.props.pushStackAddItem({text:"<span>Удаление платежного средства недоступно</span>",withError:!0,withTitle:!0}))})},this.cancelPaymentRemove=()=>{(0,b.Yj)("removePaymentMethodClick");let{clickHouseData:e}=this.props.systemInformation,t={...e,action_id:"click",block_type:"popup",block_attributes_id:"delete_payment_card_confirm",element_type:"button",element_attributes_id:"no",element_attributes_text:"нет",event_time:new Date().getTime()};this.props.clickHouseShoot(this.apiUrl,this.apiKey,t),this.setState({paymentNumberRemove:-1,mobileRemoving:!1,mobileRemovingId:null})},this.redirectAddPayment=()=>{this.sendLogs("button","add_payment_card","Добавить"),this.props.addCard()},this.selectionPaymet=(e,t,i,_,n)=>{n&&!t?this.props.pushStackAddItem({text:"<span>Карта ".concat(n.replace("••••","****")," неисправна</span> Удалите карту и&nbsp;выберите другую или&nbsp;добавьте новую"),withTitle:!0,withError:!0,onView:()=>{let{clickHouseData:e}=this.props.systemInformation,t={...e,action_id:"screenview",element_attributes_id:"error_popup",action_parameter:"payment",screen_type:"settings",screen_attributes_id:"subscriptions",event_time:Date.now()};this.props.clickHouseShoot(this.apiUrl,this.apiKey,t)}}):(t||i)&&!_?this.props.pushStackAddItem({text:"Это платёжное средство нельзя выбрать текущим способом оплаты",withError:!0}):fetch("".concat(this.apiUrl).concat(l.PI.paymentMethods,"/").concat(e,"/activate").concat(this.apiKey),{credentials:"include",method:"POST"}).then(e=>{e.status<400?e.json().then(e=>{this.props.fetchPaymentsLoad(e),this.props.pushStackAddItem({text:"Способ оплаты изменён"}),this.sendLogs()}):(this.props.pushStackAddItem({text:"Это платёжное средство нельзя выбрать текущим способом оплаты",withError:!0}),this.props.closeHandler())})},this.handleMobileRemove=function(e,i){let _=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t.sendLogs("button","delete","","",i),(0,b.TV)("removePaymentMethodClick",!0),_){t.props.closeHandler(),t.props.onePaymentPsDeleteHandler();return}t.setState({mobileRemoving:!0,mobileRemovingId:e});let{clickHouseData:n}=t.props.systemInformation,s={...n,action_id:"popupview",block_type:"popup",block_attributes_id:"delete_payment_card_confirm",screen_attributes_id:"payment_method",event_time:new Date().getTime()};t.props.clickHouseShoot(t.apiUrl,t.apiKey,s)},this.sendLogs=(e,t,i,_,n)=>{let{clickHouseData:s}=this.props.systemInformation,o={...s,action_id:"click",action_result:"undefined"!==_?_:"",element_type:e||"",element_attributes_id:t||"",element_attributes_text:i||"",element_attributes_index:n||"",screen_attributes_id:"payment_method",event_time:new Date().getTime()};this.props.clickHouseShoot(this.apiUrl,this.apiKey,o)},this.closeHandler=()=>{(0,b.Yj)("removePaymentMethodClick"),this.sendLogs("button","cross"),this.props.closeHandler()}}}let g=(0,s.Ng)(e=>({profile:e.profile,payments:e.payments,systemInformation:e.systemInformation,registration:e.registration}),h)(v)},5818:(e,t,i)=>{"use strict";i.d(t,{A:()=>ef});var _=i(74848),n=i(96540);let s={DISABLERECURRENTQUESTIONS:"DISABLERECURRENTQUESTIONS",DISABLERECURRENTSTEPS:"DISABLERECURRENTSTEPS",SUBSCRIPTIONSDISCOUNT:"SUBSCRIPTIONSDISCOUNT",NOTIFYTRIALOFFPOPUP:"NOTIFYTRIALOFFPOPUP",FREEZESUBSCRIPTION:"FREEZESUBSCRIPTION"};var o=i(74368),r=i(47819),a=i(27116),l=i(35296),c=i(68818),p=i(72202),u=i(67265),d=i(75756),m=i(98126),b=i(98047);let h=e=>{let{placeholder:t,value:i,onInput:s,onChange:o,onFocus:r,onBlur:a}=e,l=(0,n.useRef)(null);return(0,_.jsx)("textarea",{id:"reason",name:"reason",ref:l,placeholder:t,onInput:e=>{l.current.style.height="1px",l.current.style.height=l.current.scrollHeight+"px",s(e)},value:i,onChange:o,onFocus:r,onBlur:a})};var v=i(97461),g=i(55700),f=i(29691),y=i(30291),k=i(34299),x=i.n(k);let S={authRefresh:d.w4,clickHouseShoot:m.Y3,toggleafterSubscribeActionPopup:b.t_,pushStackAddItem:u.nD,fetchPaymentsLoad:c.K6,fetchPendingSubscriptions:p.UP,toggleCancelSubscriptionActive:b.iy};class w extends n.Component{componentDidMount(){let{clickHouseData:e}=this.props.systemInformation;this.props.authRefresh(this.apiUrl);let t={action_id:"popupview",block_type:"popup",block_attributes_id:"cancel_subscription",...e,event_time:new Date().getTime()};this.props.clickHouseShoot(this.apiUrl,this.apiKey,t)}render(){let{selectedPoints:e,textValue:t,disableRecurrent:i,error:s,reasons:o}=this.state,{deviceData:r}=this.props.systemInformation,a="desktop_web"===r?v.GO.REGULAR:v.GO.MEDIUM,l={block_type:"popup",block_attributes_id:"cancel_subscription",action_attributes_str:"cancel_subscription",action_result:e.length?e.join(", "):" ",custom_field_str1:-1!==e.indexOf("other")?t:""},c={block_type:"popup",block_attributes_id:"cancel_subscription"};return o&&o.length?(0,_.jsxs)(n.Fragment,{children:[(0,_.jsx)(y.A,{title:"История платежей"}),(0,_.jsxs)("div",{className:x().drq,ref:this.wrapRef,children:[(0,_.jsx)("div",{className:x().trial__info__close,onClick:this.handleCrossClose,children:(0,_.jsx)("img",{src:"/static/images/popups/cross-white.svg",alt:"close"})}),(0,_.jsx)("div",{className:x().blur_top}),(0,_.jsxs)("div",{className:x().drq__wrap,children:[(0,_.jsx)("div",{className:x().drq__title,children:"Почему вы решили отменить подписку?"}),o.map((t,i)=>(0,_.jsx)("div",{className:x().drq__item,children:(0,_.jsx)(g.S,{checked:-1!==e.indexOf(t.reason_
1id),onChange:this.handleSelect,name:t.reason_id,label:t.reason_title,blockInfo:{block_type:"popup",block_attributes_id:"cancel_subscription"},id:t.reason_id})},"".concat(t.reason_id,"-").concat(i))),(0,_.jsxs)("div",{className:"".concat(x().drq__item," ").concat(s?x().drq__item__error:""),children:[(0,_.jsx)(g.S,{checked:-1!==e.indexOf("other"),onChange:this.handleSelect,name:"other",label:"Другое",blockInfo:{block_type:"popup",block_attributes_id:"cancel_subscription"},id:"other"}),-1!==e.indexOf("other")?(0,_.jsx)(h,{value:t,placeholder:"Расскажите подробнее",onChange:this.handleTextareaChange,onInput:this.handleTextareaInput,onFocus:this.handleTextareaFocus,onBlur:this.handleTextareaBlur}):null]},"other-".concat(o.length)),s?(0,_.jsx)("div",{className:x().drq__error,children:s}):null]}),(0,_.jsx)("div",{className:x().drq__inner,children:(0,_.jsxs)("div",{className:x().drq__buttons,children:[(0,_.jsx)(v.$n,{size:a,variant:v.Vt.SECONDARY,title:"Отменить подписку",className:"".concat(x().button),onClick:()=>this.handleSend("Отменить подписку","send",l),isLoading:i,fullWidth:!0,needResponsive:!0}),(0,_.jsx)(v.$n,{title:"Остаться",onClick:()=>this.handleClose("Остаться","dont_cancel_subscription",c),fullWidth:!0,size:a,className:x().button,needResponsive:!0}),(0,_.jsx)("div",{className:x().blur_bottom})]})})]})]}):null}constructor(...e){super(...e),this.state={selectedPoints:[],textValue:"",disableRecurrent:!1,error:null,reasons:(0,r.k4)(a.TG)},this.apiUrl=this.props.systemInformation.API_URL||a.H$,this.apiKey=this.props.systemInformation.API_KEY||a.Lq,this.wrapRef=n.createRef(),this.handleClose=(e,t,i)=>{let{authData:_}=this.props.registration,{clickHouseData:n}=this.props.systemInformation,s={...n,...i,screen_attributes_ab_tag:_&&_.tags?_.tags:"",element_type:"button",action_id:"click",element_attributes_id:t,element_attributes_text:e,event_time:new Date().getTime()};this.props.clickHouseShoot(this.apiUrl,this.apiKey,s),this.props.toggleCancelSubscriptionActive(!1)},this.handleCrossClose=()=>{this.props.sendEvents("button","cross","cancel_subscription","","popup"),this.props.toggleCancelSubscriptionActive(!1)},this.recurrentOffSuccess=()=>{this.props.authRefresh(this.apiUrl),this.props.fetchPendingSubscriptions().then(()=>{this.props.toggleCancelSubscriptionActive(!1),this.props.toggleafterSubscribeActionPopup({visible:!0,type:f.j.UNSUBSCRIBE})}).catch(e=>console.error(e))},this.handleCardRemove=()=>{var e;let t=this.props.onePaymentPsId,{payments:i}=this.props.payments,{clickHouseData:_}=this.props.systemInformation,n={..._,action_id:"click",block_type:"popup",block_attributes_id:"change_payment_method",element_type:"button",element_attributes_id:"yes",element_attributes_text:"да",event_time:new Date().getTime()};this.props.clickHouseShoot(this.apiUrl,this.apiKey,n),fetch("".concat(this.apiUrl).concat(r.PI.paymentMethods,"/").concat(t||(null===(e=i[0])||void 0===e?void 0:e.id)).concat(this.apiKey),{credentials:"include",method:"DELETE"}).then(e=>{e.status<400&&e.json().then(e=>{this.props.fetchPaymentsLoad(e),(0,l.Yj)("removeOneCard");let t={..._,action_id:"payment_method_edit",action_result:"delete",screen_type:"settings",screen_attributes_id:"payment_method",event_time:new Date().getTime()};this.props.clickHouseShoot(this.apiUrl,this.apiKey,t)})})},this.cancelSubscription=()=>{let{selectedPoints:e}=this.state,{clickHouseData:t}=this.props.systemInformation,i=e.includes("temporary_cancellation"),_={...t,action_id:"send_form",block_type:"popup",block_attributes_id:"cancel_subscription",action_attributes_id:"cancel_subscription",action_result:e.length?e.join(", "):" ",event_time:new Date().getTime()};this.props.clickHouseShoot(this.apiUrl,this.apiKey,_),i&&this.props.freezeAvailable?(this.props.setTemporaryCancellation(!0),this.props.viewFreeze(),this.props.setScreen({current:s.FREEZESUBSCRIPTION})):this.props.setScreen({current:s.DISABLERECURRENTSTEPS})},this.handleRecurrentOff=()=>{var e;let{promoFreeExperiment:t}=this.props,{authData:i}=this.props.registration,{pendingSubscription:_}=this.props.profile,n=null==_?void 0:_.filter(e=>e.manageable),s=null==i?void 0:null===(e=i.subscriptions)||void 0===e?void 0:e.filter(e=>e.manageable),o=(0,l.sk)(s)||(0,l.sk)(n),a=(0,r.zN)(n);this.setState({disableRecurrent:!0},()=>{let e=(0,l.CI)(o||a),_="".concat(this.apiUrl).concat(r.PI.recurrent,"/").concat(e).concat(this.apiKey),n={auth_token:i.authentication_token,experiment:"REVOKE_ACCESS_TRIAL"};t&&(n.exp_group_name="Test_unsub_promo_free_period"),o?fetch(_,{method:"PUT",credentials:"include",headers:{"Content-type":"application/json; charset=UTF-8"},body:JSON.stringify(n)}).then(e=>{e.status<400&&((this.props.onePaymentPsId||(0,l.Ri)("removePaymentMethodClick"))&&this.handleCardRemove(),this.recurrentOffSuccess(),this.props.pushStackAddItem({text:"Подписка отменена. С вами было хорошо!"}))}).catch(e=>console.error(e)):((this.props.onePaymentPsId||(0,l.Ri)("removePaymentMethodClick"))&&this.handleCardRemove(),this.recurrentOffSuccess()),this.props.sendEvents("button","send","cancel_subscription","Отправить","popup")})},this.handleSend=(e,t,i)=>{let{selectedPoints:_,textValue:n}=this.state,{authData:s}=this.props.registration,{clickHouseData:o}=this.props.systemInformation;-1===_.indexOf("other")||n.length?this.cancelSubscription():this.setState({error:"Пожалуйста, опишите причину"});let r={...o,...i,screen_attributes_ab_tag:s&&s.tags?s.tags:"",element_type:"button",action_id:"click",element_attributes_id:t,element_attributes_text:e,event_time:new Date().getTime()};this.props.clickHouseShoot(this.apiUrl,this.apiKey,r)},this.handleSelect=e=>{let{name:t}=e.target,{selectedPoints:i}=this.state;if(-1===i.indexOf(t))this.setState(e=>({selectedPoints:[...e.selectedPoints,t],error:null}));else{let e=[...i],_=e.indexOf(t);e.splice(_,1),this.setState({selectedPoints:e,error:null})}},this.handleTextareaChange=e=>{this.setState({textValue:e.target.value,error:null})},this.handleTextareaInput=()=>{this.wrapRef.current.scrollTop=this.wrapRef.current.scrollHeight-this.wrapRef.current.clientHeight},this.handleTextareaFocus=()=>{this.props.sendEvents("input","unsubscribe_reason","cancel_subscription","Расскажите подробнее","popup","text_input_start","manual")},this.handleTextareaBlur=e=>{this.props.sendEvents("input","unsubscribe_reason","cancel_subscription","Расскажите подробнее","popup","text_input",e.target.value)}}}let P=(0,o.Ng)(e=>({systemInformation:e.systemInformation,registration:e.registration,toggle:e.toggle,profile:e.profile,payments:e.payments}),S)(w);var j=i(46942),N=i.n(j),A=i(41364),C=i(48398),I=i(86715),D=i.n(I),R=i(96927),T=i(29965),U=i.n(T),E=i(60963);let L=(e,t)=>Math.floor(e*t/1440),V={DESKTOP:"desktop_web",TABLET:"tablet_web",MOBILE:"mobile_web"},O={[V.DESKTOP]:{width:253,height:142},[V.TABLET]:{width:165,height:247}
1,[V.MOBILE]:{width:95,height:142}},M=e=>{var t,i;let{loadedCards:m,currentStep:h,setScreen:v}=e,[g,y]=(0,n.useState)([]),[k,S]=(0,n.useState)(a.M1.IDLE),w=(0,o.wA)(),P=(0,A.rD)(),j=(0,A.RP)(),C=(0,o.d4)(e=>e.systemInformation.deviceSize),I=(0,o.d4)(e=>e.registration.authData),T=(0,o.d4)(e=>{var t;return null===(t=e.profile)||void 0===t?void 0:t.pendingSubscription}),M=(0,o.d4)(e=>e.payments),H=(null==I?void 0:null===(t=I.subscriptions)||void 0===t?void 0:t.length)?I.subscriptions:T,F=null==H?void 0:H.filter(e=>e.manageable),B=(0,l.sk)(F),z=(0,r.zN)(F),{buildUrl:Q}=(0,A.gf)(),Y=(0,A.jo)(),K=O[C].width,W=O[C].height,q=Array.from(Array(C===V.DESKTOP?24:9).keys()),G=e=>{let{clientWidth:t}=document.documentElement,i=2*K,_=2*W,n=t>a.xW.DESKTOP?L(i,t):i,s=t>a.xW.DESKTOP?L(_,t):_,o="".concat(n,"x").concat(s),r=C===V.DESKTOP?e.horizontal.image_15x:e.vertical.image_15x;return Q({path:(0,l.bZ)(r,o),apiKeySkip:!0})},Z=async(e,t,i)=>{e.stopPropagation(),Y({action_id:"click",event_version:"1.0",screen_type:"payments",screen_attributes_id:"payment_history",content_id:"".concat(t.uid),content_type:"".concat(t._cls),product_id:null==t?void 0:t.uid,element_type:"product",element_attributes_id:"".concat(t.alias),element_attributes_index:i+1,block_type:"popup",block_attributes_id:h.id_for_shoot}),await D().push("/watch/".concat(t.alias)),w((0,b.iy)(!1))};(0,n.useEffect)(()=>{(async()=>{try{S(a.M1.FETCHING);let e=Q({path:r.PI.skoro,query:"&limit=24"}),t=await fetch(e,{credentials:"include"});if(!t.ok)throw"RU"===I.current_country_code?v({current:s.SUBSCRIPTIONSDISCOUNT}):J(),Error("Api Error in ".concat(t.url,":").concat(t.status));let i=await t.json();y(i),S(a.M1.FETCHED),m(),Y({action_id:"collection_view",action_result:null==i?void 0:i.items.map((e,t)=>t+1),action_attributes_str:null==i?void 0:i.items.map(e=>e.uid),screen_type:"payments",screen_attributes_id:"payment_history",block_type:"popup",block_attributes_id:"unsub_annonce"})}catch(e){console.error(e)}})()},[]);let J=()=>{var e,t;let i=(null==M?void 0:null===(e=M.payments)||void 0===e?void 0:e.length)===1?null==M?void 0:null===(t=M.payments[0])||void 0===t?void 0:t.id:null,_=(0,l.CI)(B||z),n="".concat(P).concat(r.PI.recurrent,"/").concat(_).concat(j),s={auth_token:I.authentication_token};B?fetch(n,{method:"PUT",credentials:"include",headers:{"Content-type":"application/json; charset=UTF-8"},body:JSON.stringify(s)}).then(e=>{e.status<400&&(i&&(0,l.Ri)("removePaymentMethodClick")&&$(i),X(),w((0,b.iy)(!1)),w((0,u.nD)({text:"Подписка отменена. С вами было хорошо!"})))}).catch(e=>console.error(e)):(i&&(0,l.Ri)("removePaymentMethodClick")&&$(i),X(),w((0,b.iy)(!1)))},X=()=>{w((0,d.w4)(P)),w((0,p.UP)()),w((0,b.t_)({visible:!0,type:f.j.UNSUBSCRIBE}))},$=e=>{fetch("".concat(P).concat(r.PI.paymentMethods,"/").concat(e).concat(j),{credentials:"include",method:"DELETE"}).then(e=>{e.status<400&&e.json().then(e=>{w((0,c.K6)(e)),(0,l.Yj)("removePaymentMethodClick")})})};return k===a.M1.FETCHING||k===a.M1.IDLE?(0,_.jsx)("div",{className:x().announcementsGrid,children:q.map((e,t)=>(0,_.jsxs)("div",{className:x().announcementsItem__skeleton_wrap,children:[(0,_.jsx)(R.A,{className:N()(x().announcementsItem__skeleton,x().announcementsItem__skeleton_announce)}),(0,_.jsxs)("div",{className:x().announcementsItem__skeleton_wrap_2,children:[(0,_.jsx)(R.A,{className:x().announcementsItem__skeleton_title}),(0,_.jsx)(R.A,{className:x().announcementsItem__skeleton_description})]})]},"".concat(e,"_").concat(t)))}):(0,_.jsx)("div",{className:x().announcementsGrid,children:null==g?void 0:null===(i=g.items)||void 0===i?void 0:i.map((e,t)=>{var i,n,s;let o=null===(i=e.badges)||void 0===i?void 0:i.filter(e=>"badge"===e.type&&!e.under_logo_position);return(0,_.jsxs)("div",{className:N()(x().announcementsItem,x().announcementsItem),onClick:i=>Z(i,e,t),children:[(0,_.jsx)(U(),{className:x().announcementsItem__image,src:G(e),loader:l.R2,width:K,height:W,alt:"",placeholder:"blur",blurDataURL:C===V.DESKTOP?"/static/images/Null-horizontal-SVG.svg":"/static/images/Null-vertical-SVG.svg"}),(0,_.jsxs)("div",{className:x().announcementsItem__info,children:[(0,_.jsx)("p",{className:x().announcementsItem__title,children:e.title}),(null==o?void 0:o.length)?(0,_.jsxs)("div",{className:x().announcementsBadge,children:["double"===o[0].structure?(0,_.jsx)(E.L$,{className:x().announcementsBadge__double,text:o[0].text,textRight:o[0].text_right,textColor:o[0].text_color,textColorRight:o[0].text_color_right,bgColor:o[0].background_color,bgColorRight:o[0].background_color_right}):"single"===o[0].structure?(0,_.jsx)(E.Ex,{className:x().announcementsBadge__single,textColor:o[0].text_color,bgColor:o[0].background_color,text:o[0].text}
1):null,"single"===o[0].structure&&(null===(n=o[1])||void 0===n?void 0:n.structure)==="single"&&"desktop_web"===C?(0,_.jsx)(E.Ex,{className:x().announcementsBadge__single,textColor:o[1].text_color,bgColor:o[1].background_color,text:o[1].text}):null]}):null,!(null==o?void 0:o.length)&&(null==e?void 0:null===(s=e.genres)||void 0===s?void 0:s.length)?(0,_.jsx)("p",{className:x().announcementsItem__genre,children:e.genres.map(e=>e.title).join(", ")}):null,(null==e?void 0:e.rating_start)?(0,_.jsx)("div",{className:N()(x().announcementsItem__rating,{[x().announcementsItem__rating_high]:e.rating_start>=7}),children:(0,l.bH)(e.rating_start)}):null]})]},e.uid)})})},H={toggleafterSubscribeActionPopup:b.t_,pushStackAddItem:u.nD,fetchPaymentsLoad:c.K6,authRefresh:d.w4,fetchPendingSubscriptions:p.UP,toggleCancelSubscriptionActive:b.iy},F={ANNOUNCEMENTS:{title:"Скоро на START ",subtitle:"Премьеры и\xa0новые\xa0сезоны любимых сериалов. Оставайтесь с\xa0нами",type:"rule",id_for_shoot:"unsub_annonce"}},B={DESKTOP:"desktop_web",TABLET:"tablet_web",MOBILE:"mobile_web"};B.DESKTOP,B.TABLET,B.MOBILE;let z=(0,o.Ng)(null,H)(e=>{var t;let i=(0,o.wA)(),{authData:c}=(0,o.d4)(e=>e.registration),p=(0,o.d4)(e=>{var t;return null===(t=e.profile)||void 0===t?void 0:t.pendingSubscription}),u=(0,o.d4)(e=>e.payments),d=(0,A.jO)({mobile:v.GO.MEDIUM,desktop:v.GO.REGULAR}),m=parseInt((Date.now()/1e3).toFixed()),h=(null==c?void 0:c.subscriptions.filter(e=>null===a._K||void 0===a._K?void 0:a._K.includes(null==e?void 0:e._id)).length)>0,g=null==p?void 0:p.find(e=>{var t,i,_,n,s;return(null==e?void 0:null===(_=e.tariff_info)||void 0===_?void 0:null===(i=_.price)||void 0===i?void 0:null===(t=i.paid_period_duration)||void 0===t?void 0:t.days)===30||(null==e?void 0:e.acl_type)==="premium"&&(null==e?void 0:e.tariff_type)==="premium"&&(null==e?void 0:e.billing_type)==="start"&&(null==e?void 0:null===(s=e.payments)||void 0===s?void 0:null===(n=s.find(e=>"current"===e.type))||void 0===n?void 0:n.period)===30}),y=null==p?void 0:p.find(e=>null==e?void 0:e.is_trial),k=(0,r.zN)(p),S=k&&k.manageable&&k.is_grace&&m>k.start,w=g&&!y&&((null==c?void 0:c.type)==="PAID"||S),P=null==p?void 0:p.filter(e=>e.manageable),j=null==c?void 0:null===(t=c.subscriptions)||void 0===t?void 0:t.filter(e=>e.manageable),I=(0,l.sk)(j)||(0,l.sk)(P),T=(0,r.zN)(P),[U,E]=(0,n.useState)(!1),[L,V]=(0,n.useState)(!1),O=(0,A.jo)(),H=(0,A.rD)(),B=(0,C.A)(),z=F.ANNOUNCEMENTS,Q=z.id_for_shoot,Y=()=>{w?h||"RU"!==c.current_country_code?K():e.setScreen({current:s.SUBSCRIPTIONSDISCOUNT}):"RU"===c.current_country_code?e.setScreen({current:s.SUBSCRIPTIONSDISCOUNT}):K()},K=()=>{var t,_;if(L)return;V(!0);let n=(null==u?void 0:null===(t=u.payments)||void 0===t?void 0:t.length)===1?null==u?void 0:null===(_=u.payments[0])||void 0===_?void 0:_.id:null,s=(0,l.CI)(I||T),o="".concat(H).concat(r.PI.recurrent,"/").concat(s).concat(B),a={auth_token:c.authentication_token};e.promoFreeExperiment&&(a.exp_group_name="Test_unsub_promo_free_period"),I?fetch(o,{method:"PUT",credentials:"include",headers:{"Content-type":"application/json; charset=UTF-8"},body:JSON.stringify(a)}).then(t=>{t.status<400?(n&&(0,l.Ri)("removePaymentMethodClick")&&W(n),q(),i((0,b.iy)(!1)),e.pushStackAddItem({text:"Подписка отменена. С вами было хорошо!"})):V(!1)}).catch(e=>{console.error(e),V(!1)}):(n&&(0,l.Ri)("removePaymentMethodClick")&&W(n),q(),i((0,b.iy)(!1)))},W=t=>{fetch("".concat(H).concat(r.PI.paymentMethods,"/").concat(t).concat(B),{credentials:"include",method:"DELETE"}).then(t=>{t.status<400&&t.json().then(t=>{e.fetchPaymentsLoad(t).onClickHouseShoot({action_id:"payment_method_edit",action_result:"delete",screen_type:"settings",screen_attributes_id:"payment_method"}),(0,l.Yj)("removePaymentMethodClick")})})},q=()=>{e.authRefresh(H),e.fetchPendingSubscriptions().then(()=>{e.toggleafterSubscribeActionPopup({visible:!0,type:f.j.UNSUBSCRIBE})}).catch(e=>console.error(e))};return(0,n.useEffect)(()=>{O({screen_type:"payments",screen_attributes_id:"payment_history",action_id:"popupview",block_type:"popup",block_attributes_id:Q})},[]),(0,_.jsxs)("div",{className:N()(x().trial,x().announcements,x().drq),children:[(0,_.jsx)("div",{className:x().trial__info__close,onClick:()=>
1{(0,l.Yj)("removePaymentMethodClick"),O({action_id:"click",screen_type:"payments",screen_attributes_id:"payment_history",block_type:"popup",block_attributes_id:Q,element_type:"button",element_attributes_id:"cross"}),e.toggleCancelSubscriptionActive(!1)},children:(0,_.jsx)("img",{src:"/static/images/popups/cross-white.svg",alt:"close"})}),(0,_.jsx)("div",{className:x().blur_top}),(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)("div",{className:N()(x().trial__wrapper,x()[z.type]),children:[U?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("div",{className:N()(x().trial__title,x().announcements_title),dangerouslySetInnerHTML:{__html:z.title}}),(0,_.jsx)("div",{className:x().trial__subtitle,dangerouslySetInnerHTML:{__html:z.subtitle}})]}):(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(R.A,{className:x().trialTitle__skeleton}),(0,_.jsx)(R.A,{className:x().trialSubTitle__skeleton})]}),(0,_.jsx)("div",{className:N()(x().trial__content,x()["recommendation-content"]),children:(0,_.jsx)(M,{loadedCards:()=>{E(!0)},currentStep:z,setScreen:e.setScreen})})]}),U?(0,_.jsx)("div",{className:x().drq__inner,children:(0,_.jsxs)("div",{className:x().drq__buttons,children:[(0,_.jsx)(v.$n,{title:"Отменить подписку",variant:v.Vt.SECONDARY,onClick:()=>{O({action_id:"click",screen_type:"payments",screen_attributes_id:"payment_history",block_type:"popup",block_attributes_id:Q,element_type:"button",element_attributes_id:"cancel_subscription",element_attributes_text:"Отменить подписку"}),Y()},isDisabled:L,fullWidth:!0,size:d,needResponsive:!0}),(0,_.jsx)(v.$n,{title:"Остаться",onClick:()=>{(0,l.Yj)("removePaymentMethodClick"),O({action_id:"click",screen_type:"payments",screen_attributes_id:"payment_history",block_type:"popup",block_attributes_id:Q,element_type:"button",element_attributes_id:"dont_cancel_subscription",element_attributes_text:"Остаться"}),e.toggleCancelSubscriptionActive(!1),D().push("/")},fullWidth:!0,size:d,needResponsive:!0}),(0,_.jsx)("div",{className:x().blur_bottom})]})}):null]})]})});
1var Q=i(71402),Y=i.n(Q);let K=e=>e?Math.ceil(e/30):0,W=e=>"".concat(e,"\xa0").concat((0,l.jQ)(["месяц","месяца","месяцев"],e)),q=(0,n.memo)(e=>{var t;let{index:i,data:n,firstSubscriptionPrice:s,isActive:o,onCardClick:r}=e;"RUB"===n.currency?a.WU:parseFloat(s).toFixed(2);let c="RUB"===n.currency?"₽":n.currency,p=K(n.paid_period_duration.days),u=((e,t,i)=>e&&t?e/t:null)(n.price,p,0);return(0,_.jsx)("div",{className:N()(Y().card,{[Y().card_active]:o}),onClick:()=>r(i,n._id),children:(0,_.jsxs)("div",{className:Y().info,children:[u&&(0,_.jsx)("div",{className:Y().discount,children:(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("span",{className:Y().discount__month,children:p?W(p):null}),(0,_.jsxs)("span",{className:Y().discount__price,children:[(0,l.$g)(null==n?void 0:n.price,n.currency)," ",c]})]})}),(0,_.jsx)("div",{className:Y().price,children:(0,_.jsxs)("span",{className:Y().price__amount,children:[(0,l.$g)((null==n?void 0:null===(t=n.rate_steps[0])||void 0===t?void 0:t.price)||(null==n?void 0:n.price),n.currency),"\xa0",c]})})]})})});var G=i(69505),Z=i.n(G),J=i(19116);let X=e=>{var t,i,h;let{tariffs:g,apiKey:y,onHighligthTariff:k,apiUrl:S,discountType:w,discountPercent:P,setScreen:j,freezeAvailable:C,viewedFreeze:I,promoFreeExperiment:D}=e,R=(0,o.wA)(),T=(0,A.jo)(),U=(0,o.d4)(e=>e.systemInformation.clickHouseData),E=(0,o.d4)(e=>e.payments),L=(0,o.d4)(e=>e.registration.authData),V=(0,o.d4)(e=>e.profile.pendingSubscription),[O,M]=(0,n.useState)(1),[H,F]=(0,n.useState)(null),[B,z]=(0,n.useState)(!1),[Q,Y]=(0,n.useState)(!1),G=g[O],X=null==V?void 0:V.filter(e=>"upsale"===e.tariff_type),$=null==V?void 0:V.filter(e=>"lite"===e.tariff_type),ee=null==L?void 0:null===(t=L.subscriptions)||void 0===t?void 0:t.filter(e=>e.manageable),et=null==V?void 0:V.filter(e=>e.manageable),ei=(0,l.sk)(ee)||(0,l.sk)(et),e_=K(null==G?void 0:null===(i=G.paid_period_duration)||void 0===i?void 0:i.days),en=(0,A.jO)({mobile:v.GO.MEDIUM,desktop:v.GO.REGULAR});(0,n.useEffect)(()=>{var e,t,i,_;let n=parseInt((Date.now()/1e3).toFixed()),s=null==V?void 0:V.filter(e=>"upsale"===e.tariff_type&&n<e.end),o=null==V?void 0:V.filter(e=>"premium"===e.tariff_type&&n<e.end),r=(null==o?void 0:o.length)?o:(null==s?void 0:s.length)?s:null;if(null==r?void 0:r.length){let _=r[0],n=new Date((null==_?void 0:null===(e=_.transition)||void 0===e?void 0:e.last_tariff_end)?null==_?void 0:null===(t=_.transition)||void 0===t?void 0:t.last_tariff_end:1e3*_.end);n.setDate(n.getDate()+(null==G?void 0:null===(i=G.paid_period_duration)||void 0===i?void 0:i.days)),F(n)}else{let e=new Date;e.setDate(e.getDate()+(null==G?void 0:null===(_=G.paid_period_duration)||void 0===_?void 0:_.days)),F(e)}},[G,V]);let es="offer"===w?"Дарим вам скидку 50%":"Ваш выигрыш — скидка\xa0".concat(P),eo="Сейчас спишем ".concat((0,l.$g)((null==G?void 0:null===(h=G.rate_steps[0])||void 0===h?void 0:h.price)||(null==G?void 0:G.price)),"\xa0₽ за ").concat(W(e_),".\n        Следующее списание ").concat(null==H?void 0:H.getDate(),"\xa0").concat(a.wp[null==H?void 0:H.getMonth()]).concat(new Date().getFullYear()!==(null==H?void 0:H.getFullYear())?"\xa0".concat(null==H?void 0:H.getFullYear()):""," — ").concat((0,l.$g)(null==G?void 0:G.price),"\xa0₽ за ").concat(W(e_)),er=(0,n.useCallback)((e,t)=>{M(e),k(g[e]);let i={...U,action_id:"click",screen_type:"payments",screen_attributes_id:"payment_history",block_type:"popup",block_attributes_id:"unsub_prevention_tariff_choice",element_type:"tariff_item",element_attributes_id:t,action_result:"".concat(w).concat(P.replace("%","")),event_time:new Date().getTime()};R((0,m.Y3)(S,y,i))},[]),ea=()=>{if(!Q){if(C&&!I)j({current:s.FREEZESUBSCRIPTION});else{var e,t;Y(!0);let i=E&&(null===(e=E.payments)||void 0===e?void 0:e.length)?E.payments.filter(e=>"itunes_receipt"!==e.type&&"google_token"!==e.type&&"huawei_token"!==e.type):[],_=(null==i?void 0:i.length)===1?null===(t=i[0])||void 0===t?void 0:t.id:null,n=(0,l.CI)(ei),s="".concat(S).concat(r.PI.recurrent,"/").concat(n).concat(y),o={...U,action_id:"click",
1screen_type:"payments",screen_attributes_id:"payment_history",block_type:"popup",block_attributes_id:"unsub_prevention_tariff_choice",element_type:"button",element_attributes_id:"cancel_subscription",element_attributes_text:"Отменить подписку",action_result:"".concat(w).concat(P.replace("%","")),event_time:new Date().getTime()};R((0,m.Y3)(S,y,o));let a={auth_token:L.authentication_token};D&&(a.exp_group_name="Test_unsub_promo_free_period"),ei?fetch(s,{method:"PUT",credentials:"include",headers:{"Content-type":"application/json; charset=UTF-8"},body:JSON.stringify(a)}).then(e=>{e.status<400&&(_&&(0,l.Ri)("removePaymentMethodClick")&&el(_),ec(),R((0,u.nD)({text:"Подписка отменена. С вами было хорошо!"})))}).catch(e=>console.error(e)):(_&&(0,l.Ri)("removePaymentMethodClick")&&el(_),ec())}}},el=e=>{fetch("".concat(S).concat(r.PI.paymentMethods,"/").concat(e).concat(y),{credentials:"include",method:"DELETE"}).then(e=>{e.status<400&&e.json().then(e=>{R((0,c.K6)(e)),(0,l.Yj)("removePaymentMethodClick");let t={...U,action_id:"payment_method_edit",action_result:"delete",screen_type:"settings",screen_attributes_id:"payment_method",event_time:new Date().getTime()};R((0,m.Y3)(S,y,t))})})},ec=()=>{R((0,d.w4)(S)),R((0,p.UP)()).then(()=>{R((0,b.iy)(!1)),R((0,b.t_)({visible:!0,type:f.j.UNSUBSCRIBE}))}).catch(e=>console.error(e))},ep=()=>{var e,t,i;let{acitveMethod:_}=E,n=(null==_?void 0:null===(e=_.bank_)||void 0===e?void 0:e.type)==="google_token"||(null==_?void 0:null===(t=_.bank_)||void 0===t?void 0:t.type)==="itunes_receipt"||(null==_?void 0:null===(i=_.cardInfo_)||void 0===i?void 0:i.type)==="huawei_token";if(n&&L.subscriptions.length){let e=L.subscriptions.filter(e=>e.googleplay_id||e.itunes_product_id||e.huawei_id);if(null==e?void 0:e.length)return _;let t=E.payments.find(e=>e.is_active&&"itunes_receipt"!==e.type&&"google_token"!==e.type&&"huawei_token"!==e.type);return t?new J.A(t):null}if(n&&!L.subscriptions.length){let e=E.payments.find(e=>e.is_active&&"itunes_receipt"!==e.type&&"google_token"!==e.type&&"huawei_token"!==e.type);return e?new J.A(e):null}return _},eu=async()=>{if((0,l.Yj)("removePaymentMethodClick"),B)return;z(!0);let e={...U,action_id:"click",screen_type:"payments",screen_attributes_id:"payment_history",block_type:"popup",block_attributes_id:"unsub_prevention_tariff_choice",element_type:"button",element_attributes_id:"subscribe",element_attributes_text:"Оплатить подписку",action_result:"".concat(w).concat(P.replace("%","")),event_time:new Date().getTime()};R((0,m.Y3)(S,y,e));let t=ep();if(!t){localStorage.removeItem("url");let e="".concat(w).concat(P.replace("%","")),t="".concat(S).concat(r.PI.setTariff).concat(null==G?void 0:G._id).concat(y);(0,l.TV)("channel",e),(0,l.TV)("selectedTariff",null==G?void 0:G._id),(0,r.BA)({url:t,errorCallback:()=>{R((0,b.NI)(!0))}});return}let i="".concat(S).concat(r.PI.billingBuyCard).concat(null==G?void 0:G._id).concat(y),_={payment_method_id:null==t?void 0:t.cardInfo_.id};try{let e=await fetch(i,{credentials:"include",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(_)});if(e.status<400){var n,s;let t=await e.json();(null===(n=t.data)||void 0===n?void 0:n.status)==="Failed"?((null===(s=t.data)||void 0===s?void 0:s.code)==="INSUFFICIENT_FUNDS"?R((0,u.nD)({text:"Не удалось совершить платеж. Проверьте баланс карты",withError:!0,withoutAutoClosing:!0})):R((0,u.nD)({text:"Не удалось совершить платеж. Проверьте данные карты, достаточность средств и повторите оплату",withError:!0,withoutAutoClosing:!0})),z(!1)):R((0,p.UP)()).then(()=>{var e,t;R((0,b.iy)(!1)),R((0,b.t_)({visible:!0,type:f.j.DISCOUNT,endDate:H,tariffData:G,reccurentPrice:null==G?void 0:G.price,duration_days:null==G?void 0:null===(t=G.rate_steps[0])||void 0===t?void 0:null===(e=t.duration)||void 0===e?void 0:e.days}))}).catch(e=>console.error(e))}else R((0,u.nD)({text:"Не удалось совершить платеж. Проверьте баланс карты",withError:!0,withoutAutoClosing:!0})),z(!1)}catch(e){console.error(e),z(!1)}};return(0,n.useEffect)(()=>{g&&1===g.length&&M(0)},[g]),(0,n.useEffect)(()=>{((null==X?void 0:X.length)||(null==$?void 0:$.length))&&ea()},[X,$]),(0,n.useEffect)(()=>{k(g[O])},[]),(null==X?void 0:X.length)||(null==$?void 0:$.length)?null:(0,_.jsxs)("div",{className:"".concat(Z().wrapper," ").concat(x().drq),children:[(0,_.jsx)("div",{className:x().trial__info__close,onClick:()=>
1{T({action_id:"click",screen_type:"payments",screen_attributes_id:"payment_history",block_type:"popup",block_attributes_id:"unsub_prevention_tariff_choice",element_type:"button",element_attributes_id:"cross"}),R((0,b.iy)(!1))},children:(0,_.jsx)("img",{src:"/static/images/popups/cross-white.svg",alt:"close"})}),(0,_.jsxs)("div",{className:Z().heading,children:[(0,_.jsx)("h3",{className:Z().heading__title,children:es}),(0,_.jsx)("p",{className:Z().heading__description,children:"Скидка действует только на\xa0один период. Выбирайте тот, что подходит вам"})]}),(0,_.jsx)("div",{className:Z().slider,children:(0,_.jsx)("div",{className:Z().list,children:g.map((e,t)=>(0,_.jsx)(q,{index:t,data:e,firstSubscriptionPrice:g[0].price,isActive:O===t,onCardClick:er},e._id))})}),(0,_.jsxs)("div",{className:Z().trial__buttons__wrapper,children:[(0,_.jsx)("div",{className:"".concat(Z().heading__description," ").concat(Z().heading__description__sm),children:eo}),(0,_.jsx)("div",{className:N()(x().drq__inner,x().drq__add),children:(0,_.jsxs)("div",{className:x().drq__buttons,children:[(0,_.jsx)(v.$n,{title:"Отменить подписку",variant:v.Vt.SECONDARY,onClick:ea,fullWidth:!0,size:en}),(0,_.jsx)(v.$n,{title:"Оплатить подписку",onClick:eu,fullWidth:!0,size:en}),(0,_.jsx)("div",{className:x().blur_bottom})]})})]})]})};var $=i(81651),ee=i.n($);let et=()=>(0,_.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:(0,_.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.2439 4.24416C14.5694 3.91872 15.097 3.91872 15.4224 4.24416C15.7479 4.56959 15.7479 5.09723 15.4224 5.42267L11.0117 9.83341L15.4224 14.2442C15.7479 14.5696 15.7479 15.0972 15.4224 15.4227C15.097 15.7481 14.5694 15.7481 14.2439 15.4227L9.83315 11.0119L5.42239 15.4227C5.09695 15.7481 4.56932 15.7481 4.24388 15.4227C3.91844 15.0972 3.91844 14.5696 4.24388 14.2441L8.65462 9.8334L4.24388 5.42266C3.91844 5.
109722 3.91844 4.56958 4.24388 4.24415C4.56932 3.91871 5.09695 3.91871 5.42239 4.24415L9.83316 8.65492L14.2439 4.24416Z",fill:"currentColor"})});var ei=i(97625),e_=i.n(ei);let en=e=>{let{formattedFreezeDetails:t,windowInnerWidth:i}=e;return(0,_.jsxs)("div",{className:e_().content,children:[(0,_.jsx)("ul",{className:e_().list,children:t.map((e,t)=>(0,_.jsxs)("li",{className:e_()["list-item"],children:[(0,_.jsx)(U(),{className:e_().icon,loader:l.R2,src:"/static/images/popups/snowflakes.svg",alt:"snowflake",width:36,height:48}),(0,_.jsxs)("ul",{className:e_().details,children:[(0,_.jsx)("li",{className:"".concat(e_()["details-item"]," ").concat(e_().primary),children:e.title}),(0,_.jsx)("li",{className:"".concat(e_()["details-item"]," ").concat(e_().secondary),children:e.subtitle})]})]},t))}),i>a.xW.MOBILE&&(0,_.jsx)(U(),{className:e_().tv,loader:l.R2,src:"/static/images/popups/tv.svg",alt:"TV",width:343,height:300})]})},es=[{title:"Деньги не\xa0будут списываться",subtitle:"Оплаченные дни\xa0сохранятся"},{title:"Остановим подписку до\xa0{freezeDate}",subtitle:"Заморозка действует 30\xa0дней"},{title:"Заморозить можно раз\xa0в\xa0полгода",subtitle:"После\xa0первой заморозки нужно подождать 6\xa0месяцев"}];var eo=i(39769),er=i(92849),ea=i.n(er);let el={clickHouseShoot:m.Y3,toggleCancelSubscriptionActive:b.iy};class ec extends n.Component{componentDidMount(){let{clickHouseData:e}=this.props.systemInformation,t={...e,action_id:"popupview",screen_type:"payments",screen_attributes_id:"cancel_subscription",block_type:"popup",block_attributes_id:"freeze_suсcess",event_version:"1.0",event_time:new Date().getTime()};this.props.clickHouseShoot(this.apiUrl,this.apiKey,t)}render(){var e;let{subscriptionEnd:t}=this.props,{config:i}=this.props.systemInformation,n=this.formatDateAsDayMonth(t);return(0,_.jsx)("div",{className:ea()["start-popup"],onMouseDown:this.handleClickOutside,onKeyDown:this.handleKeyDown,children:(0,_.jsx)("div",{className:"".concat(ea()["start-popup__wrapper"]," ").concat(ea()["start-popup__wrapper__freeze"]),ref:e=>{this.popupWrapper=e},children:(0,_.jsxs)("div",{className:ea()["start-popup__freeze"],children:[(0,_.jsx)("div",{className:ea()["start-popup__close"],onClick:()=>this.closeHandler("cross"),children:(0,_.jsx)("img",{src:"/static/images/popups/cross-white.svg",alt:"cross"})}),(0,_.jsx)("div",{className:ea()["start-popup__check"],children:(0,_.jsx)("img",{src:"/static/images/popups/checkCircle.svg",alt:"check"})}),(0,_.jsxs)("div",{className:ea()["start-popup__content"],children:[(0,_.jsxs)("div",{className:ea()["start-popup__title"],children:["Заморозили подписку до\xa0",null==n?void 0:n.originalDate]}),(null==i?void 0:i.freezing)?(0,_.jsxs)("div",{className:"".concat(ea()["start-popup__subtitle"]," ").concat(ea().normal),children:["Следующий платёж ",null==i?void 0:null===(e=i.freezing)||void 0===e?void 0:e.price,"\xa0₽ спишем ",null==n?void 0:n.endPlusOne]}):""]}),(0,_.jsx)("div",{className:"".concat(ea()["start-popup__button"]," ").concat(ea()["start-popup__button-red"]),onClick:()=>this.closeHandler("continue","Хорошо"),children:"Хорошо"})]})})})}constructor(...e){super(...e),this.apiUrl=this.props.systemInformation.API_URL||a.H$,this.apiKey=this.props.systemInformation.API_KEY||a.Lq,this.closeHandler=(e,t)=>{this.sendEvents(e,t),this.props.toggleCancelSubscriptionActive(!1)},this.sendEvents=(e,t)=>{let{clickHouseData:i}=this.props.systemInformation,_={...i,action_id:"click",screen_type:"payments",screen_attributes_id:"cancel_subscription",block_type:"popup",block_attributes_id:"freeze_suсcess",element_type:"button",element_attributes_id:e||"",element_attributes_text:t||"",event_version:"1.0",event_time:new Date().getTime()};this.props.clickHouseShoot(this.apiUrl,this.apiKey,_)},this.handleKeyDown=e=>{27===e.keyCode&&this.closeHandler(),13===e.keyCode&&this.handleSubmitClick()},this.handleClickOutside=e=>{this.popupWrapper&&!this.popupWrapper.contains(e.target)&&this.closeHandler()},this.formatDateAsDayMonth=e=>{if(e){let t=new Date(1e3*Number(e)),i=new Intl.DateTimeFormat("ru",{day:"numeric",month:"long"}).format(t).replace(" ","\xa0"),_=new Date(t);return _.setDate(t.getDate()+1),{originalDate:i,endPlusOne:new Intl.DateTimeFormat("ru",{day:"numeric",month:"long"}).format(_).replace(" ","\xa0")}}}}}let ep=(0,o.Ng)(e=>({toggle:e.toggle,profile:e.profile,systemInformation:e.systemInformation,registration:e.registration}),el)(ec);var eu=i(88822),ed=i.n(eu);let em=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"long",t=arguments.length>1?arguments[1]:void 0,i=t?new Date(1e3*t):new Date,_=new Date(i.setDate(i.getDate()+30));return"short"===e?new Intl.DateTimeFormat("ru",{day:"2-digit",month:"2-digit",year:"numeric"}).format(_):new Intl.DateTimeFormat("ru",{day:"numeric",month:"long"}).format(_)},eb=e=>{var t;let{handleCancelSubscription:i,handleFreezeAndClose:s,recurrentCancelling:a}=e,c=(0,I.useRouter)(),p=(0,o.wA)(),u=(0,o.d4)(e=>e.registration.authData),d=null==u?void 0:null===(t=u.subscriptions)||void 0===t?void 0:t.filter(e=>e.manageable),m=(0,r.zN)(d),h=A.Ay.useClickHouseShoot(),[g,f]=(0,n.use
1State)(em("long",null==m?void 0:m.expiration)),[y,k]=(0,n.useState)(!1),x=(0,n.useRef)(null),S=es.map(e=>({...e,title:e.title.replace("{freezeDate}",g)})),w=e=>{h({action_id:e.action_id||"click",screen_type:"payments",screen_attributes_id:"cancel_subscription",block_type:"popup",block_attributes_id:"freeze_subscription",element_type:e.element_type||null,element_attributes_id:e.element_attributes_id||null,element_attributes_text:e.element_attributes_text||null,event_version:"1.0",event_time:new Date().getTime()})},P=()=>{(0,l.Yj)("removePaymentMethodClick"),w({element_attributes_id:"cross",element_type:"button"}),p((0,b.iy)(!1))};return(0,n.useEffect)(()=>{let e=()=>{if(x.current){let{scrollTop:e}=x.current;e>0?k(!0):k(!1)}},t=x.current;return t&&t.addEventListener("scroll",e),()=>{t&&t.removeEventListener("scroll",e)}},[]),(0,n.useEffect)(()=>{let e=()=>{P()};return c.events.on("routeChangeStart",e),()=>{c.events.off("routeChangeStart",e)}},[c]),(0,n.useEffect)(()=>{f(em("long",null==m?void 0:m.expiration))},[]),(0,n.useEffect)(()=>{w({action_id:"popupview"})},[]),(0,_.jsxs)("div",{className:ed().container,ref:x,children:[y&&(0,_.jsx)("div",{className:ed().blur_top}),(0,_.jsx)("div",{className:ed().close,onClick:P,children:(0,_.jsx)("img",{src:"/static/images/popups/cross-white.svg",alt:"close"})}),(0,_.jsxs)("div",{className:ed().modal,children:[(0,_.jsx)("span",{className:ed().title,children:"\xabХолод\xbb на\xa0START.\u2028Подписку можно\u2028заморозить"}),(0,_.jsxs)("span",{className:ed().subtitle,children:["Сохраните подписку и\xa0смотрите новые",(0,_.jsx)("br",{}),"серии\xa0драмы с\xa0Любовью Аксёновой\u2028и\xa0Ларисой\xa0Гузеевой"]}),(0,_.jsx)("div",{className:ed().content,children:(0,_.jsx)("ul",{className:ed().list,children:S.map((e,t)=>(0,_.jsxs)("li",{className:ed()["list-item"],children:[(0,_.jsx)(U(),{className:ed().icon,loader:l.R2,src:"/static/images/popups/iceflakes.png",alt:"snowflake",width:36,height:48}),(0,_.jsxs)("ul",{className:ed().details,children:[(0,_.jsx)("li",{className:"".concat(ed()["details-item"]," ").concat(ed().primary),children:e.title}),(0,_.jsx)("li",{className:"".concat(ed()["details-item"]," ").concat(ed().secondary),children:e.subt
1itle})]})]},t))})})]}),(0,_.jsxs)("div",{className:ed().buttons,children:[(0,_.jsx)(v.$n,{title:"Отменить подписку",blockInfo:{screen_attributes_id:"cancel_subscription",block_type:"popup",block_attributes_id:"freeze_subscription"},type:"cancel_subscription",onClick:i,variant:v.Vt.SECONDARY,isDisabled:a}),(0,_.jsx)(v.$n,{title:"Заморозить подписку",blockInfo:{screen_attributes_id:"cancel_subscription",block_type:"popup",block_attributes_id:"freeze_subscription"},type:"freeze",onClick:s})]})]})},eh=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"long",t=arguments.length>1?arguments[1]:void 0,i=t?new Date(1e3*t):new Date,_=new Date(i.setDate(i.getDate()+30));return"short"===e?new Intl.DateTimeFormat("ru",{day:"2-digit",month:"2-digit",year:"numeric"}).format(_):new Intl.DateTimeFormat("ru",{day:"numeric",month:"long"}).format(_)},ev={DisableRecurrentQuestions:P,DisableRecurrentSteps:z,SubscriptionsDiscount:e=>{let{setScreen:t,discountType:i,discountPercent:s,freezeAvailable:a,viewedFreeze:l,promoFreeExperiment:c}=e,p=A.Ay.useApiUrl(),u=A.Ay.useApiKey(),d=(0,o.wA)(),h=(0,o.d4)(e=>e.systemInformation.clickHouseData),[,g]=(0,n.useState)(),[f,y]=(0,n.useState)(null);return(0,n.useEffect)(()=>{let e="".concat(i).concat(s.replace("%",""));fetch("".concat(p).concat(r.PI.getTariffs).concat(u,"&channel=").concat(e),{credentials:"include",method:"GET"}).then(e=>{e.status<400&&e.json().then(e=>{y(e.sort((e,t)=>e.weight<t.weight?-1:e.weight>t.weight?1:0))})});let t={...h,action_id:"popupview",screen_type:"payments",screen_attributes_id:"payment_history",block_type:"popup",block_attributes_id:"unsub_prevention_tariff_choice",action_result:e,event_time:new Date().getTime()};d((0,m.Y3)(p,u,t))},[]),(0,_.jsx)("div",{className:ee().container,children:(0,_.jsxs)("div",{className:"".concat(ee().wrapper," ").concat(ee().wrapper__win),children:[(0,_.jsx)("div",{className:ee().close,children:(0,_.jsx)(v.$n,{variant:v.Vt.SECONDARY,size:v.GO.SMALL,iconLeft:(0,_.jsx)(et,{}),testId:"subscriptions-popup-close-btn",onClick:()=>{let e={...h,action_id:"click",screen_type:"payments",screen_attributes_id:"payment_history",block_type:"popup",block_attributes_id:"unsub_prevention_tariff_choice",action_result:"".concat(i).concat(s.replace("%","")),element_type:"button",element_attributes_id:"cross",event_time:new Date().getTime()};d((0,m.Y3)(p,u,e)),d((0,b.iy)(!1))},needResponsive:!0})}),(0,_.jsx)("div",{className:ee().content,children:f&&(0,_.jsx)(X,{tariffs:f,discountType:i,discountPercent:s,apiKey:u,onHighligthTariff:e=>{g(e)},apiUrl:p,setScreen:t,freezeAvailable:a,viewedFreeze:l,promoFreeExperiment:c})})]})})},NotifyTrialOffPopup:e=>{let{setScreen:t,promoFreeExperiment:i}=e,r=(0,o.wA)(),l=(0,A.jo)(),c=(0,A.jO)(),p=(0,o.d4)(e=>e.profile.pendingSubscription),u=i?p[0]:p.find(e=>null==e?void 0:e.is_trial),d=new Date((null==u?void 0:u.end)*1e3);null==d||d.setDate(d.getDate());let m=d.getDate(),h=a.wp[d.getMonth()];return(0,n.useEffect)(()=>{let e={action_id:"popupview",screen_type:"payments",screen_attributes_id:"cancel_subscription",block_type:"popup",block_attributes_id:"reccurent_off_trial_off"};i&&(e.block_attributes_id="reccurent_off_promo_off"),l(e)},[]),(0,_.jsxs)("div",{className:"".concat(x().trial," ").concat(x().trial__pt0),style:{backgroundImage:'url("/static/images/popups/popup_bg_purple.png")'},children:[(0,_.jsx)("div",{className:x().trial__info__close,onClick:()=>{let e={action_id:"click",screen_type:"payments",screen_attributes_id:"cancel_subscription",block_type:"popup",block_attributes_id:"reccurent_off_trial_off",element_type:"button",element_attributes_id:"cross"};i&&(e.block_attributes_id="reccurent_off_promo_off"),l(e),r((0,b.iy)(!1))},children:(0,_.jsx)("img",{src:"/static/images/popups/cross-white.svg",alt:"close"})}),(0,_.jsx)("div",{className:"".concat(x().trial__off__wrapper),children:(0,_.jsxs)("div",{className:"".concat(x().trial__info," ").concat(x().trial__off),children:[(0,_.jsx)("img",{className:x().trial__info__img__large,src:"/static/images/popups/sad_computer.svg",alt:"notification"}),(0,_.jsx)("div",{className:x().trial__info__title,children:"Бесплатный период будет\xa0отменен вместе с\xa0подпиской"}),(0,_.jsxs)("div",{className:x().trial__info__sub__title,children:["Он доступен только один раз. Оставайтесь и\xa0бесплатно смотрите фильмы, сериалы и\xa0телеканалы до\xa0",m,"\xa0",h]})]})}),(0,_.jsxs)("div",{className:x().trial__buttons,children:[(0,_.jsx)(v.$n,{size:c,variant:v.Vt.SECONDARY,title:"Отменить подписку",className:x().trial__button,onClick:()=>
1{let e={action_id:"click",screen_type:"payments",screen_attributes_id:"cancel_subscription",block_type:"popup",block_attributes_id:"reccurent_off_trial_off",element_type:"button",element_attributes_id:"cancel_subscription",element_attributes_text:"Отменить подписку"};i&&(e.block_attributes_id="reccurent_off_promo_off"),l(e),t({current:s.DISABLERECURRENTQUESTIONS})},children:"Отменить подписку"}),(0,_.jsx)(v.$n,{size:c,title:"Остаться",className:x().trial__button,onClick:()=>{let e={action_id:"click",screen_type:"payments",screen_attributes_id:"cancel_subscription",block_type:"popup",block_attributes_id:"reccurent_off_trial_off",element_type:"button",element_attributes_id:"dont_cancel_subscription",element_attributes_text:"Остаться"};i&&(e.block_attributes_id="reccurent_off_promo_off"),l(e),r((0,b.iy)(!1)),D().push("/")},children:"Остаться"}),(0,_.jsx)("div",{className:x().blur_bottom})]})]})},FreezeSubscription:e=>{var t,i,m;let{setScreen:h,temporaryCancellation:g,promoFreeExperiment:y}=e,k=(0,I.useRouter)(),x=(0,o.wA)(),S=(0,o.d4)(e=>e.registration.authData),w=(0,o.d4)(e=>e.systemInformation.windowInnerWidth),P=(0,o.d4)(e=>e.payments),j=(0,o.d4)(e=>e.systemInformation.config||{}),N=null==S?void 0:null===(t=S.subscriptions)||void 0===t?void 0:t.filter(e=>e.manageable),C=(0,r.zN)(N),D=A.Ay.useApiUrl(),R=A.Ay.useApiKey(),T=A.Ay.useClickHouseShoot(),[E,L]=(0,n.useState)(eh("long",null==C?void 0:C.expiration)),[V,O]=(0,n.useState)(!1),[M,H]=(0,n.useState)(!1),[F,B]=(0,n.useState)(!1),z=(0,n.useRef)(null),Q=(0,A.jO)({mobile:v.GO.MEDIUM,desktop:v.GO.REGULAR}),Y=es.map(e=>({...e,title:e.title.replace("{freezeDate}",E)})),K=new Date,W=K>=new Date(null==j?void 0:null===(i=j.zamorozka_holod)||void 0===i?void 0:i.date_start),q=K<=new Date(null==j?void 0:null===(m=j.zamorozka_holod)||void 0===m?void 0:m.date_end),G=(null==j?void 0:j.zamorozka_holod)&&W&&q,Z=e=>{T({action_id:e.action_id||"click",screen_type:"payments",screen_attributes_id:"cancel_subscription",block_type:"popup",block_attributes_id:"freeze_subscription",element_type:e.element_type||null,element_attributes_id:e.element_attributes_id||null,element_attributes_text:e.element_attributes_text||null,event_version:"1.0",event_time:new Date().getTime()})},J=()=>{(0,l.Yj)("removePaymentMethodClick"),Z({element_attributes_id:"cross",element_type:"button"}),x((0,b.iy)(!1))},X=()=>{Z({element_attributes_id:"cancel_subscription",element_type:"button",element_attributes_text:"Отменить подписку"}),g?h({current:s.DISABLERECURRENTSTEPS}):et()},$=async()=>{var e,t;let i="".concat(D).concat(r.PI.promoCode).concat(R);(null==j?void 0:null===(e=j.freezing)||void 0===e?void 0:e.code)&&await fetch(i,{credentials:"include",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({coupon_code:null==j?void 0:null===(t=j.freezing)||void 0===t?void 0:t.code})}).then(e=>{e.status<400?H(!0):(x((0,u.nD)({text:"Что-то пошло не так...",withError:!0})),x((0,b.iy)(!1)))})},ee=()=>{Z({element_attributes_id:"freeze",element_type:"button",element_attributes_text:"Заморозить подписку"}),(0,l.Yj)("removePaymentMethodClick"),$().then(()=>(0,eo.P7)({apiUrl:D,apiKey:R})).then(()=>x((0,p.UP)())).then(()=>x((0,d.w4)(D)))},et=()=>{var e,t;if(F)return;B(!0);let i=(null==P?void 0:null===(e=P.payments)||void 0===e?void 0:e.length)===1?null==P?void 0:null===(t=P.payments[0])||void 0===t?void 0:t.id:null,_=(0,l.CI)(C),n="".concat(D).concat(r.PI.recurrent,"/").concat(_).concat(R),s={auth_token:S.authentication_token};y&&(s.exp_group_name="Test_unsub_promo_free_period"),(Array.isArray(C)?C[0].recurrent||C[0].reccurent:C.recurrent||C.reccurent)?fetch(n,{method:"PUT",credentials:"include",headers:{"Content-type":"application/json; charset=UTF-8"},body:JSON.stringify(s)}).then(e=>{e.status<400?(i&&(0,l.Ri)("removePaymentMethodClick")&&ei(i),er(),x((0,u.nD)({text:"Подписка отменена. С вами было хорошо!"}))):B(!1)}).catch(e=>{console.error(e),B(!1)}):(i&&(0,l.Ri)("removePaymentMethodClick")&&ei(i),er())},ei=e=>{fetch("".concat(D).concat(r.PI.paymentMethods,"/").concat(e).concat(R),{credentials:"include",method:"DELETE"}).then(e=>{e.status<400&&e.json().then(e=>{x((0,c.K6)(e)),(0,l.Yj)("removePaymentMethodClick")})})},er=()=>{ea(),x((0,b.iy)(!1)),x((0,b.t_)({visible:!0,type:f.j.UNSUBSCRIBE}))},ea=()=>{x((0,d.w4)(D)),x((0,p.UP)())};return(0,n.useEffect)(()=>{let e=()=>{if(z.current){let{scrollTop:e}=z.current;e>0?O(!0):O(!1)}},t=z.current;return t&&t.addEventListener("scroll",e),()=>{t&&t.removeEventListener("scroll",e)}},[]),(0,n.useEffect)(()=>{let e=()=>{J()};return k.events.on("routeChangeStart",e),()=>{k.events.off("routeChangeStart",e)}},[k]),(0,n.useEffect)(()=>{L(eh("long",null==C?void 0:C.expiration))},[]),(0,n.useEffect)(()=>{Z({action_id:"popupview"})},[]),M?(0,_.jsx)(ep,{subscriptionEnd:null==C?void 0:C.expiration}):G?(0,_.jsx)(eb,{handleCancelSubscription:X,handleFreezeAndClose:ee,recurrentCancelling:F}):(0,_.jsxs)("div",{className:e_().container,ref:z,children:[V&&(0,_.jsx)("div",{className:e_().blur_top}),(0,_.jsx)("div",{className:e_().close,onClick:J,children:(0,_.jsx)("img",{src:"/static/images/popups/cross-white.svg",alt:"close"})}),(0,_.jsxs)("div",{className:e_().modal,children:[(0,_.jsx)("span",{className:e_().title,children:"Вы можете заморозить подписку"}),(0,_.jsx)("span",{className:e_().subtitle,children:"Сохраните подписку на\xa0время отпуска или\xa0до\xa0выхода новых серий любимого сериала"}),w<=a.xW.MOBILE&&(0,_.jsx)(U(),{className:e_().tv,loader:l.R2,src:"/static/images/popups/tv.svg",alt:"TV",width:137,height:120}),(0,_.jsx)(en,{formattedFreezeDetails:Y,windowInnerWidth:w})]}),(0,_.jsxs)("div",{className:e_().buttons,children:[(0,_.jsx)(v.$n,{title:"Отменить подписку",blockInfo:{screen_attributes_id:"cancel_subscription",block_type:"popup",block_attributes_id:"freeze_subscription"},type:"cancel_subscription",onClick:X,variant:v.Vt.SECONDARY,fullWidth:!0,size:Q,isDisabled:F,needResponsive:!0}),(0,_.jsx)(v.$n,{title:"Заморозить подписку",blockInfo:{screen_attributes_id:"cancel_subscription",block_type:"popup",block_attributes_id:"freeze_subscription"},type:"freeze",onClick:ee,fullWidth:!0,size:Q,needResponsive:!0})]})]})}},eg={[s.NOTIFYTRIALOFFPOPUP]:ev.NotifyTrialOffPopup,[s.DISABLERECURRENTQUESTIONS]:ev.DisableRecurrentQuestions,[s.DISABLERECURRENTSTEPS]:ev.DisableRecurrentSteps,[s.SUBSCRIPTIONSDISCOUNT]:ev.SubscriptionsDiscount,[s.FREEZESUBSCRIPTION]:ev.FreezeSubscription},ef=e=>{let{sendEvents:t,trial:i,promoFreeExperiment:o}=e,r=(0,A.rD)(),a=(0,A.RP)(),l=s.DISABLERECURRENTQUESTIONS;(i||o)&&(l=s.NOTIFYTRIALOFFPOPUP);
1let[c,p]=(0,n.useState)({current:l,previous:""}),[u,d]=(0,n.useState)(!1),[m,b]=(0,n.useState)(),[h,v]=(0,n.useState)();void 0===m&&fetch("".concat(r,"/account/freeze_available").concat(a),{credentials:"include",method:"GET"}).then(e=>{e.status<400&&e.json().then(e=>b(null==e?void 0:e.available))});let g=eg[c.current];return(0,_.jsx)(g,{setScreen:p,sendEvents:t,temporaryCancellation:u,setTemporaryCancellation:d,discountType:"offer",discountPercent:"50%",freezeAvailable:m,viewFreeze:()=>{v(!0)},viewedFreeze:h,promoFreeExperiment:o})}},76161:(e,t,i)=>{"use strict";i.d(t,{L:()=>f});var _=i(74848),n=i(46942),s=i.n(n),o=i(74368),r=i(41364),a=i(96540),l=i(58117),c=i.n(l);let p=e=>{let{className:t,isChecked:i,testId:n,onChange:o,isDisabled:r=!1,updated:l}=e,p=(0,a.useId)();return(0,_.jsxs)("label",{htmlFor:"switch-".concat(p),className:s()(c().switch,t,{[c().square]:l}),...n&&{"data-testid":n},children:[(0,_.jsx)("input",{id:"switch-".concat(p),className:c().input,type:"checkbox",disabled:r,checked:i,onChange:o}),(0,_.jsx)("span",{className:s()(c().slider,{[c().square]:l})})]})};var u=i(97461);let d=()=>(0,_.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:(0,_.jsx)("path",{d:"M7.33366 8.67578V13.3424H8.66699V8.67578H13.3337V7.34245H8.66699V2.67578H7.33366V7.34245H2.66699V8.67578H7.33366Z",fill:"currentColor"})}),m=()=>(0,_.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:(0,_.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.334 1.33594L2.00065 10.6693L1.33398 14.6693L5.33398 14.0026L14.6673 4.66927L11.334 1.33594ZM2.95605 13.0472L3.2456 11.3099L9.13872 5.41682L10.5864 6.86453L4.69331 12.7577L2.95605 13.0472ZM11.5292 5.92172L12.7817 4.66927L11.334 3.22156L10.0815 4.47401L11.5292 5.92172Z",fill:"currentColor"})}),b=()=>(0,_.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:(0,_.jsx)("path",{d:"M11.9982 8.00013L6.99823 13L6.05469 12.0535L10.1133 7.99793L6.05843 3.94279L6.99823 3L11.9982 8.00013Z",fill:"white"})}),h=()=>(0,_.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,_.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 3.9987L14 3.9987V5.33203L12 5.33203L11.3333 14.6654H4.66667L4 5.33203H2L2 3.9987ZM10.0952 13.332L10.6667 5.33203L5.33333 5.33203L5.90476 13.332H10.0952Z",fill:"white"}),(0,_.jsx)("path",{d:"M10 1.33203L6 1.33203V2.66536L10 2.66536V1.33203Z",fill:"white"})]});var v=i(94042),g=i.n(v);let f=e=>{let{buttonClassName:t,variant:i,type:n,ariaLabel:a,dataTestId:l,switchDataTestId:c,shootData:v,existValue:f,disabled:y,text:k,icon:x,noIcon:S=!1,left:w,alignTop:P,big:j,fullWidth:N,noPading:A,onAdd:C,onEdit:I,onUnlink:D}=e,R=r.Ay.useClickHouseShoot(),T=r.Ay.useResponsiveButtonSize(),U=(0,o.d4)(e=>e.systemInformation.deviceSize),E=e=>{v&&R({...v,action_id:"click",block_type:"block",element_attributes_text:v.element_attributes_text||k}),e&&e()};return y?null:(0,_.jsxs)("div",{className:s()(g().wrapper,{[g().alignTop]:P,[g().alignLeft]:w,[g().fullWidth]:N,[g().noPading]:A}),...l?{"data-testid":l}:{},...a?{"aria-label":a}:{}
1,children:["edit"===i&&(0,_.jsx)(u.$n,{size:u.GO.SMALL,variant:u.Vt.SECONDARY,iconLeft:(0,_.jsx)(m,{}),onClick:()=>E(I)}),"icon"===i&&(0,_.jsx)(u.$n,{className:t,size:u.GO.SMALL,variant:u.Vt.SECONDARY,iconLeft:x,iconSize:250,onClick:()=>E(I)}),"add"===i&&(0,_.jsx)(u.$n,{className:t,size:u.GO.SMALL,variant:u.Vt.SECONDARY,..."desktop_web"===U&&{title:"Добавить"},..."desktop_web"!==U&&{iconLeft:(0,_.jsx)(d,{})},onClick:()=>E(C)}),"create"===i&&(0,_.jsx)(u.$n,{className:t,size:u.GO.SMALL,variant:u.Vt.SECONDARY,..."desktop_web"===U&&{title:"Создать"},..."desktop_web"!==U&&{iconLeft:(0,_.jsx)(d,{})},onClick:()=>E(C)}),"delete"===i&&(0,_.jsx)(u.$n,{className:t,size:u.GO.SMALL,variant:u.Vt.SECONDARY,..."desktop_web"===U&&{title:k||"Удалить"},..."desktop_web"!==U&&{iconLeft:(0,_.jsx)(h,{})},onClick:()=>E(C)}),"custom"===i&&(0,_.jsx)(u.$n,{variant:n||u.Vt.SECONDARY,title:k,iconRight:x,size:j?T:u.GO.SMALL,onClick:()=>E(D)}),"toggle"===i&&(0,_.jsx)(p,{testId:c,isChecked:f,onChange:()=>E(I),updated:!0}
1),"link"===i&&(0,_.jsx)(u.$n,{className:t,size:u.GO.SMALL,variant:"link"===i?u.Vt.TERTIARY:u.Vt.SECONDARY,onClick:()=>E(C),title:k,iconRight:S?null:x||(0,_.jsx)(b,{})})]})}},70845:(e,t,i)=>{"use strict";i.d(t,{u:()=>n});var _=i(74848);let n=()=>(0,_.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,_.jsx)("path",{d:"M8.00117 12.0073L2.66797 6.67402L3.61453 5.73047L8.00337 10.1224L12.3918 5.73422L13.3346 6.67402L8.00117 12.0073Z",fill:"white"})})},10147:(e,t,i)=>{"use strict";i.d(t,{w:()=>n});var _=i(74848);let n=()=>(0,_.jsx)("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,_.jsx)("path",{d:"M8.50144 4.00781L13.8346 9.34115L12.8881 10.2847L8.49923 5.89273L4.11078 10.2809L3.16797 9.34115L8.50144 4.00781Z",fill:"white"})})},39769:(e,t,i)=>{"use strict";i.d(t,{MN:()=>n,P7:()=>r,Yl:()=>o,oc:()=>s,xP:()=>a});var _=i(47819);i(35296);let n=async e=>{let{apiUrl:t,apiKey:i}=e,n="".concat(t).concat(_.PI.profileInfo).concat(i),s=await fetch(n,{credentials:"include"});return s.ok&&await s.json()||null},s=async e=>{let{apiUrl:t,apiKey:i}=e,n="".concat(t).concat(_.PI.devicesList).concat(i),s=await fetch(n,{credentials:"include"});return s.ok&&await s.json()||null},o=async(e,t,i)=>{let _="".concat(e,"/device/").concat(i).concat(t);return!!(await fetch(_,{method:"DELETE",credentials:"include"})).ok},r=async e=>{let{apiUrl:t,apiKey:i}=e,_="".concat(t,"/account/payment_history").concat(i),n=await fetch(_,{method:"GET",credentials:"include"});return n.ok&&await n.json()||null},a=async e=>{var t;let{apiUrl:i,apiKey:n,authData:s,locale:o}=e,r="".concat(i).concat(_.PI.postersProfile).concat(n,"&for_kids=").concat(s.profile_for_child).concat("&locale=".concat(o)).concat("&content_lang=".concat(o)),a=await fetch(r,{method:"GET",credentials:"include"});if(!a.ok)return null;let l=await a.json();return(null==l?void 0:null===(t=l.items)||void 0===t?void 0:t.length)?l.items[0]:null}},35116:(e,t,i)=>{"use strict";i.d(t,{ZJ:()=>a,gC:()=>r,lG:()=>s,pr:()=>o});var _=i(27116),n=i(35296);let s=e=>e.replace(/^([+]\d{1})(\d{3})(\d{3})(\d{2})(\d{2})$/,(e,t,i,_,n,s,o,r)=>"".concat(t," ").concat(i," ").concat(_,"-").concat(n,"-").concat(s)),o=e=>{let t=e.replace(/\D/g,"");return"".concat(t.slice(6,8),".").concat(t.slice(4,6),".").concat(t.slice(0,4))},r=(e,t,i,_,s)=>{if(e%30==0){let t=e/30;return 1===t?"".concat(_?i?"на&nbsp;":"за&nbsp;":s?" на&nbsp;":"","месяц"):"".concat(_?i?"на&nbsp;":"за&nbsp;":s?" на&nbsp;":"").concat(t,"&nbsp;").concat((0,n.jQ)(["месяц","месяца","месяцев"],t))}switch(t){case"years":return"".concat(_?i?"на&nbsp;":"за&nbsp;":s?" на&nbsp;":"").concat(e,"&nbsp;").concat((0,n.jQ)(["год","года","лет"],e));case"days":return"".concat(_?i?"на&nbsp;":"за&nbsp;":s?" на&nbsp;":"").concat(e,"&nbsp;").concat((0,n.jQ)(["день","дня","дней"],e));default:return"".concat(_?i?"на&nbsp;":"за&nbsp;":s?" на&nbsp;":"").concat(e,"&nbsp;").concat((0,n.jQ)(["минуту","минуты","минут"],e))}},a=(e,t)=>{let i="";if(isNaN(i=e?new Date("string"==typeof e?e:1e3*e):new Date))return"Сегодня";let n=_.wp[i.getMonth()],s=i.getDate(),o=i.getFullYear(),r=new Date().getFullYear();return"".concat(s," ").concat(n).concat(r!==o&&t?" ".concat(o):"")}},54789:(e,t,i)=>{"use strict";i.d(t,{A:()=>H});var _=i(74848),n=i(74368),s=i(86715),o=i(88428),r=i.n(o),a=i(46942),l=i.n(a),c=i(91738),p=i.n(c),u=i(27116),d=i(35296),m=i(32928),b=i(62191),h=i(96540);let v=(e,t)=>{let i={"/account/subscriptions":"hs_tariff_for","/account/subscriptions/manage":"hs_manage_tariff_for"}[e];if(i)return"".concat(i,"_").concat(t,"_month")},g=e=>{var t,i,n;let{tariff:o,authData:r,first:a,index:c,onClick:g,current:f}=e,y=(0,s.useRouter)(),k=u.UM[o.currency],x=o.rate_steps&&o.rate_steps.length,S=x&&(null==r?void 0:r.trial_is_available)?(e=>{let t=[...e];return t.sort((e,t)=>e.order_number>t.order_number?1:t.order_number>e.order_number?-1:0),t[0]})(null==o?void 0:o.rate_steps):o,w=(null==o?void 0:null===(t=o.paid_period_duration)||void 0===t?void 0:t.days)||(null==o?void 0:null===(i=o.paid_period_duration)||void 0===i?void 0:i.minutes),P=null==o?void 0:null===(n=o.paid_period_duration)||void 0===n?void 0:n.minutes,j=Math.floor(P?w:w/30),N=v(null==y?void 0:y.asPath,j);return(0,_.jsxs)("div",{className:p().wrap,onClick:g,"aria-label":N,children:[(0,_.jsx)("div",{className:l()(p().border,p().border_p,p().border_color)}),(0,_.jsx)("div",{className:l()(p().border,p().border_p)}),(0,_.jsx)("div",{className:l()(p().border,p().border_p)}),(0,_.jsxs)("div",{className:p().content,children:[(0,_.jsxs)("div",{className:p().top,children:[(0,_.jsxs)("div",{children:[(0,_.jsx)("div",{className:p().price,dangerouslySetInnerHTML:{__html:"".concat(0===c?(0,m.Fq)(o.price):(0,m.Fq)(o.price/((x&&r.trial_is_available?S.duration.days:o.paid_period_duration.days)/30),k),"&nbsp;").concat(k," <span>/ месяц</span>")}}),f?(0,_.jsx)("div",{className:p().current,"aria-label":"hs_manage_current_subscription",children:"подключена"}):null]}),c>0?(0,_.jsx)("div",{className:p().dicsount,children:(e=>{let{price:t,durationObject:i,currency:_,firstTariff:n}=e,s=parseFloat((parseInt(t)/(i.days/30)).toFixed(2));return("RUB"!==_&&(s=t/(i.days/30)),"RUB"==_)?"".concat((100-100*s/u.WU).toFixed(),"%"):"".concat((100-100*s/n.price).toFixed(),"%")})({price:o.price,durationObject:x&&r.trial_is_available?S.duration:o.paid_period_duration,currency:k,firstTariff:a})}):null]}),(0,_.jsxs)("div",{className:p().bottom,children:[(0,_.jsx)("div",{className:p().length,children:(e=>{var t;let i=b.b$[e];return(0,_.jsx)("div",{className:p().duration,children:null==i?void 0:null===(t=i.main)||void 0===t?void 0:t.map((e,t)=>(0,_.jsxs)(h.Fragment,{children:[(0,_.jsx)("img",{src:e,className:p().duration__main}),(0,_.jsx)("img",{src:i.side[t],className:p().duration__side})]},"".concat(e,"_").concat(t)))})})(Math.floor(P?w:w/30))}),(0,_.jsx)("div",{className:p().period,children:P?(0,d.jQ)(["минуту","минуты","минут"],Math.floor(P?w:w/30)):(0,d.jQ)(["месяц","месяца","месяцев"],Math.floor(P?w:w/30))}),(0,_.jsx)("div",{className:p().period,children:"за ".concat(parseInt(o.price)," ").concat(k)})]})]})]},"".concat(o._id,"_").concat(c))};var f=i(47819),y=i(98047),k=i(67265),x=i(80364),S=i(48398),w=i(41364);let P=e=>{let{index:t}=e;return(0,_.jsxs)("div",{className:p().wrap,children:[(0,_.jsx)("div",{className:l()(p().border,p().border_p,p().border_color)}),(0,_.jsx)("div",{className:l()(p().border,p().border_p)}),(0,_.jsx)("div",{className:l()(p().border,p().border_p)}),(0,_.jsxs)("div",{className:l()(p().content,p().skeleton),children:[(0,_.jsx)("div",{className:p().top,children:(0,_.jsx)("div",{className:p().price})}),(0,_.jsxs)("div",{className:p().bottom,children:[(0,_.jsx)("div",{className:p().period}),(0,_.jsx)("div",{className:p().period})]})]})]},"tariff._id_".concat(t))};var j=i(71635),N=i(68818),A=i(72202),C=i(98126),I=i(45322),D=i.n(I),R=i(97461);let T={fetchPaymentsLoad:N.K6,clickHouseShoot:C.Y3,pushStackAddItem:k.nD,fetchPendingSubscriptions:A.UP};class U extends h.Component{componentDidMount(){let{clickHouseData:e}=this.props.systemInformation,t={...e,action_id:"popupview",block_type:"popup",screen_attributes_id:"settings",block_attributes_id:this.recurrent?"change_tariff_duration":"subscription_confirm",event_time:new Date().getTime()};this.props.clickHouseShoot(this.apiUrl,this.apiKey,t)}render(){var e,t,i;let{longestSubscription:n,acitveMethod:s,userTrial:o,multiple:r,phone:a,activePayment:l,subscriptionExpire:c,futureExpire:p}=this.props,{paid_period_duration:d,price:m,currency:b,_id:h}=this.props.data,{progress:v}=this.state,{authData:g}=this.props.registration,f=new Date().getFullYear(),y=u.UM[b],k=c?c.replace("\xa0".concat(f),""):"",x=p?p.replace("\xa0".concat(f),""):"",S=o?"Бесплатный период закончится":"Ранее оплаченный период закончится",w=(null==s?void 0:null===(e=s.cardInfo_)||void 0===e?void 0:e.state)==="invalid",P=!1;return new Date(null==s?void 0:null===(i=s.cardInfo_)||void 0===i?void 0:null===(t=i.card_expire)||void 0===t?void 0:t.replace(/-/g,"/"))<new Date&&-1===u.PY.indexOf(null==s?void 0:s.getType())&&-1===u.bd.indexOf(null==s?void 0:s.getType())&&-1===u.qP.indexOf(null==g?void 0:g.current_country_code)&&(P=!0),(0,_.jsxs)("div",{className:D().tariffsPopup,children:[(0,_.jsx)("div",{className:D().tariffsPopup__closeM,onClick:this.closeHandler,children:(0,_.jsx)("img",{src:"/static/images/popups/dismiss-grey.svg"})}),(0,_.jsxs)("div",{className:D().tariffsPopup__wrapper,children:[(0,_.jsx)("div",{className:D().tariffsPopup__close,onClick:this.closeHandler,children:(0,_.jsx)("img",{src:"/static/images/popups/dismiss-grey.svg"})}),(0,_.jsx)("div",{className:D().tariffsPopup__title,children:(null==n?void 0:n.recurrent)?"Изменить длительность подписки?":"Оформить подписку?"}),(0,_.jsx)("div",{className:D().tariffsPopup__description,dangerouslySetInnerHTML:{__html:k&&x?"Сейчас спишем <strong>".concat(this.props.isInteger(m)," ").concat(y," за ").concat(this.handleDuration(d),"</strong>. ").concat(S," ").concat(k,", далее продлим подписку до&nbsp;").concat(x):"Сейчас спишем <strong>".concat(this.props.isInteger(m)," ").concat(y," за ").concat(this.handleDuration(d),"</strong>. Отменить подписку можно&nbsp;в&nbsp;любой момент")}}),g&&"RU"!==g.current_country_code&&-1===u.iM.indexOf(g.current_country_code)&&"RUB"!==b?(0,_.jsx)("div",{className:D().tariffsPopup__checkCard,children:"Дл
1я оплаты подходят карты, выпущенные вне России."}):null,(0,_.jsxs)("div",{className:D().tariffsPopup__data,children:[(0,_.jsx)("div",{className:D().tariffsPopup__card,children:(0,_.jsx)(j.A,{geo:null==g?void 0:g.current_country_code,card:s,multiple:r,phone:a,ignore_expire:null==l?void 0:l.ignore_expire,payment:l})}),(0,_.jsxs)("div",{className:D().tariffsPopup__bg,children:[(0,_.jsxs)("div",{className:D().tariffsPopup__total,children:["К оплате:"," ",(0,_.jsxs)("span",{children:[this.props.isInteger(m)," ",y]})]}),(0,_.jsx)(R.$n,{title:(null==n?void 0:n.recurrent)?"Изменить":"Оформить",className:"".concat(D().tariffsPopup__ok),onClick:()=>this.handlePayment(h,s.cardInfo_.id,r,P&&!(null==l?void 0:l.ignore_expire),k,x,S,null==n?void 0:n.recurrent,d,w),isDisabled:(r||P)&&!(null==l?void 0:l.ignore_expire),isLoading:v,fullWidth:!0})]})]}),(0,_.jsx)("div",{className:D().tariffsPopup__info,children:"1 месяц равен 30 календарным дням"})]})]})}constructor(...e){var t;super(...e),this.state={progress:!1},this.apiUrl=this.props.systemInformation.API_URL||u.H$,this.apiKey=this.props.systemInformation.API_KEY||u.Lq,this.reccurent=null===(t=this.props.longestSubscription)||void 0===t?void 0:t.recurrent,this.submited=!1,this.handleDuration=e=>{for(let t in e)switch(t){case"years":return"".concat(e[t],"\xa0").concat((0,d.jQ)(["год","года","лет"],e[t]));case"days":if(e[t]<30)return"".concat(e[t],"\xa0").concat((0,d.jQ)(["день","дня","дней"],e[t]));return this.handlePeriodTitle(e[t]);case"hours":return"".concat(e[t],"\xa0").concat((0,d.jQ)(["час","часа","часов"],e[t]));case"minutes":return"".concat(e[t],"\xa0").concat((0,d.jQ)(["минута","минуты","минут"],e[t]));default:return"".concat(e[t],"\xa0").concat((0,d.jQ)(["месяц","месяца","месяцев"],e[t]))}},this.handlePeriodTitle=e=>{let t=(e||30)/30;return 1===t?"".concat((0,d.jQ)(["месяц","месяца","месяцев"],t)):"".concat(t,"\xa0").concat((0,d.jQ)(["месяц","месяца","месяцев"],t))},this.handlePrice=(e,t)=>e%1?parseFloat(e)?"RUB"!==t?parseFloat(e).toFixed(2):parseFloat(e).toFixed(0):e:parseInt(e),this.handleNotificationEvents=()=>{let{clickHouseData:e}=this.props.systemInformation,t={...e,action_id:"popupview",block_type:"popup",screen_attributes_id:"settings",block_attributes_id:"notification_fail_operation_declined",event_time:new Date().getTime()};this.props.clickHouseShoot(this.apiUrl,this.apiKey,t)},this.handlePayment=(e,t,i,_,n,s,o,r,a,l)=>{localStorage.setItem("dateExpire",n),localStorage.setItem("dateValidTo",s),localStorage.setItem("infoText",o),localStorage.setItem("reccurent",r),localStorage.setItem("paidPeriod",null==a?void 0:a.days);let{clickHouseData:c}=this.props.systemInformation,p={...c,action_id:"click",block_type:"popup",block_attributes_id:this.recurrent?"change_tariff_duration":"subscription_confirm",element_type:"button",element_attributes_id:this.recurrent?"change":"subscribe",element_attributes_text:this.recurrent?"Изменить":"Оформить",event_time:Date.now()};if(this.props.clickHouseShoot(this.apiUrl,this.apiKey,p),l&&!this.submited){this.submited=!0;let t="".concat(this.apiUrl).concat(f.PI.setTariff).concat(e).concat(this.apiKey);(0,f.BA)({url:t,successCallback:()=>{(0,d.TV)("selectedTariff",e),(0,d.TV)(u.Qm,!0)}});return}if(i||_||this.submited)return;this.submited=!0;let m="".concat(this.apiUrl).concat(f.PI.billingBuyCard).concat(e).concat(this.apiKey),b=(0,d.Ri)("admitad_uid"),h=(0,d.Ri)("advcake_url"),v={payment_method_id:t};b&&(v.at_uid=b,v.at_campaign_code="d5244facbc",v.at_tariff_code=1,v.at_payment_type="sale"),h&&(v.advcake_url=h);try{this.setState({progress:!0},()=>{fetch(m,{credentials:"include",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(v)}).then(e=>{e.status<400?e.json().then(e=>{"Failed"===e.data.status?(this.setState({progress:!1}),this.props.pushStackAddItem({text:"<span>Операция отклонена</span> Проверьте данные карты, достаточность средств и повторите оплату",withError:!0,withTitle:!0,closeIn:3e4}),this.handleNotificationEvents()):(this.setState({progress:!1}),this.props.fetchPendingSubscriptions().then(()=>this.props.onClose(e.data)).catch(e=>{console.error(e)}))}):(this.setState({progress:!1}),this.props.pushStackAddItem({text:"<span>Операция отклонена</span> Проверьте данные карты, достаточность средств и повторите оплату",withError:!0,withTitle:!0,closeIn:3e4}),this.handleNotificationEvents()),this.submited=!1})})}catch(e){this.setState({progress:!1}),this.submited=!1}},this.closeHandler=()=>{let{clickHouseData:e}=this.props.systemInformation,t={...e,action_id:"click",block_type:"popup",block_attributes_id:this.recurrent?"change_tariff_duration":"subscription_confirm",element_type:"button",element_attributes_text:"cross",event_time:Date.now()};this.props.clickHouseShoot(this.apiUrl,this.apiKey,t),(0,d.Yj)("selectedTariff"),this.props.clearTariffsSelectDataHandler(),this.props.onClose()}}}let E=(0,n.Ng)(e=>({payments:e.payments,systemInformation:e.systemInformation,registration:e.registration}),T)(U);var L=i(78566),V=i(39075);let O=[{},{},{}],M={"/account/subscriptions":"hs_tariff_line_selection","/account/subscriptions/manage":"hs_manage_tariff_line_selection"},H=()=>{var e;let t=(0,n.wA)(),i=(0,x.A)(),o=(0,S.A)(),a=w.Ay.useClickHouseShoot(),c=(0,s.useRouter)(),p=(0,n.d4)(e=>e.registration.authData),b=(0,n.d4)(e=>
1e.registration.tariffs),v=(0,n.d4)(e=>e.registration.tariffsStatus),j=(0,n.d4)(e=>e.profile.pendingSubscription),N=(0,n.d4)(e=>e.systemInformation.clickHouseData),I=(0,n.d4)(e=>e.payments.payments),D=(0,n.d4)(e=>e.payments.acitveMethod),[R,T]=(0,h.useState)(!1),[U,H]=(0,h.useState)(!1),[F,B]=(0,h.useState)(!1),[z,Q]=(0,h.useState)(null),Y=(0,d.KW)({acitveMethod:D,payments:I,authData:p}),K=(0,f.zN)(j),W=parseInt((Date.now()/1e3).toFixed()),q=(null==j?void 0:j.length)>0&&j.filter(e=>e.manageable&&(W<e.end||W>e.end&&W<e.billing_expire&&"premium"===e.acl_type)),G=(null==q?void 0:q.length)?q.reduce((e,t)=>t.expiration>(null==e?void 0:e.expiration)?t:e):null,Z=(null==j?void 0:j.length)>0&&j.filter(e=>"premium"===e.tariff_type&&"start"===e.billing_type),J=(null==j?void 0:j.length)>0&&j.filter(e=>"upsale"===e.tariff_type&&W<e.end&&"start"===e.billing_type),X=(null==Z?void 0:Z.length)?Z:(null==J?void 0:J.length)?J:null,$=(0,d.CI)(G||(null==X?void 0:X.length)&&X[0]),ee=(null==I?void 0:I.length)?I.filter(e=>e.is_active&&"itunes_receipt"!==e.type&&"google_token"!==e.type&&"huawei_token"!==e.type):[],et=ee.length?ee[0]:null,ei=ee.length>1,e_=p&&((null==p?void 0:p.type)==="REGISTERED"||(null==p?void 0:p.type)==="EX_TRIAL"||(null==p?void 0:p.type)==="EX_PAID"||(null==p?void 0:p.type)==="EX_PROMO"),en=(e,_)=>{if(!_){if(Q(e),a({...N,action_id:"click",block_type:"block",element_attributes_id:e._id,block_attributes_id:"subscriptions",element_type:"tariff_item",element_attributes_text:e.title,screen_type:"settings",screen_attributes_id:"subscriptions"}),(0,d.TV)("selectedTariff",e._id),null==ee?void 0:ee.length)T(!0);else{localStorage.removeItem("url");let _=null;try{_=ga.getAll()[0].get("clientId")}catch(e){}let n=(0,f.fQ)("".concat(i).concat(e.url).concat(o).concat(_?"&ga_id=".concat(_):""));(0,f.BA)({url:n,errorCallback:()=>{t((0,y.NI)(!0))}})}}},es=()=>{(0,d.TV)("addCard",!0);let e="".concat(i).concat(f.PI.addCard).concat(o),_=(0,d.Ri)("advcake_url");_&&!e.includes("&advcake_url")&&(e+="&advcake_url=".concat(_)),(0,f.BA)({url:e,errorCallback:()=>{t((0,y.NI)(!0))}})},eo=null==b?void 0:b.filter(e=>"premium"===e.tariff_type),er=M[null==c?void 0:c.asPath];return(0,_.jsxs)("div",{className:r().mobile,"aria-label":er,children:[e_?null:(0,_.jsx)("div",{className:l()(r().container,r().mt_32,r().row),children:v!==u.Gd.LOADED?O.map((e,t)=>(0,_.jsx)(h.Fragment,{children:(0,_.jsx)(P,{index:t})},"tariffItem.".concat(t))):(null==eo?void 0:eo.length)?eo.map((e,t)=>(0,_.jsx)(h.Fragment,{children:(0,_.jsx)(g,{tariff:e,authData:p,first:eo[0],index:t,onClick:()=>en(e,$===e._id),current:$===e._id})},"".concat(e._id,"_").concat(t))):null}),R?(0,_.jsx)(E,{subscriptionExpire:(0,m.e4)(null==K?void 0:K.expiration),futureExpire:(0,m.e4)((null==K?void 0:K.expiration)+(null==z?void 0:null===(e=z.paid_period_duration)||void 0===e?void 0:e.days)*86400),isInteger:m.Fq,data:z,clearTariffsSelectDataHandler:()=>Q(null),acitveMethod:Y,longestSubscription:K,userTrial:(null==p?void 0:p.type)==="TRIAL",reloadSubscriptions:()=>{t((0,A.UP)())},onClose:e=>{let _=localStorage.getItem("dateExpire"),n=localStorage.getItem("dateValidTo"),s=localStorage.getItem("infoText"),r=localStorage.getItem("reccurent"),a=parseInt(localStorage.getItem("paidPeriod"));if(T(!1),e){let l=new Date().getFullYear(),c={...N,action_id:"popupview",block_type:"popup",screen_type:"settings",screen_attributes_id:"subscriptions",block_attributes_id:"true"===r?"notification_success_change_tariff_duration":"notification_success_subscription_confirm",event_time:new Date().getTime()};t((0,C.Y3)(i,o,c)),s&&_&&n?t((0,k.nD)({text:"<span>".concat("true"===r?"Период подписки изменен":"Подписка оформлена","</span>\n                            ").concat(s," ").concat(_,", далее продлим подписку до ").concat(n),withTitle:!0,closeIn:3e4})):t((0,k.nD)({text:"<span>Подписка оформлена</span>\n                            ".concat((0,m.e4)(e.expire).replace("\xa0".concat(l),"")," автоматически продлим до ").concat((0,m.e4)(e.expire+86400*a).replace("\xa0".concat(l),"")),withTitle:!0,closeIn:3e4}))}localStorage.removeItem("dateExpire"),localStorage.removeItem("dateValidTo"),localStorage.removeItem("infoText"),localStorage.removeItem("reccurent"),localStorage.removeItem("paidPeriod")},multiple:ei,addCardHandler:es,phone:p.phone,activePayment:et,openPaymentPopupHandler:()=>H(!0)}):null,U?(0,_.jsx)(L.A,{currentSubscription:G,closeHandler:()=>{H(!1),Q(null)},onePaymentPsDeleteHandler:()=>B(!0),addCard:es,acitveMethod:D}):null,F?(0,_.jsx)(V.A,{closeHandler:()=>B(!1)}):null]})}},32928:(e,t,i)=>{"use strict";i.d(t,{AF:()=>o,Fq:()=>s,e4:()=>r});var _=i(27116),n=i(35296);let s=(e,t)=>e%1?parseFloat(e)?"₽"!==t?parseFloat(e).toFixed(2):parseFloat(e).toFixed(0):e:"".concat(parseInt(e)).length<4?parseInt(e):"".concat(parseInt(e)).slice(0,1)+"\xa0"+"".concat(parseInt(e)).slice(1),o=e=>{if(e%30!=0)return"".concat(e,"&nbsp;").concat((0,n.jQ)(["день","дня","дней"],e));{let t=(e||30)/30;return"".concat(t,"&nbsp;").concat((0,n.jQ)(["месяц","месяца","месяцев"],t))}},r=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return;let i=new Date(1e3*e),n=i.getDate(),s=_.wp[i.getMonth()],o=i.getFullYear(),r=new Date().getFullYear();if(t&&o>r);else if(t&&o===r)return"".concat(n,"\xa0").concat(s);return"".concat(n,"\xa0").concat(s,"\xa0").concat(o)}},62191:(e,t,i)=>{"use strict";i.d(t,{GB:()=>n,Uf:()=>_,b$:()=>s});let _={ACCOUNT:"account",PIN:"pin",SUBSCRIPTIONS:"subscriptions",ORDERS:"orders",FAMILY:"family",NOTIFICATIONS:"notifications",DEVICES:"devices",SUPPORT:"support"},n={account:{alias:"account",title:"Аккаунт",route:"/account"},pin:{alias:"pin",title:"ПИН-код",route:"/account/pin"},subscriptions:{alias:"subscriptions",title:"Подписки",route:"/account/subscriptions",rightIcon:"/static/images/account/left_addon.svg"},purchased:{alias:"orders",title:"Покупки",route:"/account/orders"},family:{alias:"family",title:"Семейная группа",route:"/account/family"},notifications:{alias:"notifications",title:"Уведомления",route:"/account/notifications",children:{manage:{alias:"manage",title:"Настройки уведомлений",route:"/account/notifications/manage"}}},devices:{alias:"devices",title:"Устройства",route:"/account/devices"},support:{alias:"support",title:"Поддержка",route:"/account/support"}},s={0:{main:["/static/images/account/numbers/0.svg"],side:["/static/images/account/numbers/0_1.svg"]},1:{main:["/static/images/account/numbers/1.svg"],side:["/static/images/account/numbers/1_1.svg"]},2:{main:["/static/images/account/numbers/2.svg"],side:["/static/images/account/numbers/2_1.svg"]},3:{main:["/static/images/account/numbers/3.svg"],side:["/static/images/account/numbers/3_1.svg"]},4:{main:["/static/images/account/numbers/4.svg"],side:["/static/images/account/numbers/4_1.svg"]},5:{main:["/static/images/account/numbers/5.svg"],side:["/static/images/account/numbers/5_1.svg"]},6:{main:["/static/images/account/numbers/6.svg"],side:["/static/images/account/numbers/6_1.svg"]},7:{main:["/static/images/account/numbers/7.svg"],side:["/static/images/account/numbers/7_1.svg"]},8:{main:["/static/images/account/numbers/8.svg"],side:["/static/images/account/numbers/8_1.svg"]},9:{main:["/static/images/account/numbers/9.svg"],side:["/static/images/account/numbers/9_1.svg"]},10:{main:["/static/images/account/numbers/1.svg","/static/images/account/numbers/0.svg"],side:["/static/images/account/numbers/1_1.svg","/static/images/account/numbers/0_1.svg"]},12:{main:["/static/images/account/numbers/1.svg","/static/images/account/numbers/2.svg"],side:["/static/images/account/numbers/1_1.svg","/static/images/account/numbers/2_2.svg"]}}},33220:(e,t,i)=>{"use strict";i.d(t,{f:()=>h,w:()=>v});var _=i(74848),n=i(46942),s=i.n(n),o=i(86715),r=i(96540),a=i(74368),l=i(48398),c=i(80364),p=i(35296),u=i(98126),d=i(96927),m=i(70968),b=i.n(m);let h=e=>{let{valueText:t,labelText:i,valueClassname:n,labelClassname:d,valueTestId:m,RightSlot:h,TitleIcon:v,leftIcon:g,customObject:f,addon:y,error:k,deleting:x,devices:S,asTitle:w,noPading:P,cellClassname:j,cellWrapperClassname:N,ariaLabelTitle:A,ariaLabelDescription:C}
1=e,I=(0,c.A)(),D=(0,l.A)(),R=(0,o.useRouter)(),T=(0,a.d4)(e=>e.systemInformation.clickHouseData),U=(0,a.wA)();return(0,_.jsxs)("div",{className:s()(b().wrapper,{[b().devices]:S,[b().deleting]:x},N),children:[(0,_.jsxs)("div",{className:b().leftBlockWrap,children:[v&&v,(0,_.jsxs)("div",{className:s()(b().list,{[b().addon]:y,[b().asTitle]:w,[b().noPading]:P},j),onClick:()=>{if(null==f?void 0:f.link){let e={...T,action_id:"click",screen_type:"settings",screen_attributes_id:"notifications",block_type:"notification",block_attributes_id:f.id,block_attributes_index:f.index+1,element_type:"notification",element_attributes_id:f.id,event_time:Date.now()},t=f.link.split("?");if(t.length){let i=JSON.stringify((0,p.dp)("?".concat(t[1])));e.traffic_source=i,T.traffic_source=i,U((0,u.dr)(T)),U((0,u.Y3)(I,D,e))}R.push(f.link)}},children:[t?(0,r.isValidElement)(t)?(0,_.jsx)("span",{className:b().value,...m?{"data-testid":m}:{},...A?{"aria-label":A}:{},children:t}):(0,_.jsx)("span",{className:s()(b().value,n),...m?{"data-testid":m}:{},...A?{"aria-label":A}:{},dangerouslySetInnerHTML:{__html:t}}):null,i?g?(0,_.jsxs)("span",{className:s()(b().label,d,{[b().error]:k}),"aria-label":C,children:[g?(0,_.jsx)("img",{src:g,alt:"".concat(g,"_").concat(i),className:b().leftImage}):null,i]}):(0,_.jsx)("span",{className:s()(b().label,d,{[b().error]:k}),"aria-label":C,dangerouslySetInnerHTML:{__html:i}}):null]})]}
1),h&&h]})},v=()=>(0,_.jsxs)("div",{className:b().skeleton,children:[(0,_.jsx)(d.A,{className:b().skeleton__left}),(0,_.jsx)(d.A,{className:b().skeleton__right})]})},91314:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var _=i(74848),n=i(46942),s=i.n(n),o=i(74342),r=i.n(o);let a=e=>{let{ariaLabel:t,className:i,children:n}=e;return(0,_.jsx)("div",{className:s()(r().wrapper,i),"aria-label":t,children:n})}},62750:(e,t,i)=>{"use strict";i.d(t,{w:()=>a});var _=i(74848),n=i(82034),s=i.n(n),o=i(46942),r=i.n(o);let a=e=>{let{selfMargin:t}=e;return(0,_.jsx)("div",{className:r()(s().separator,{[s().m24]:t})})}},29691:(e,t,i)=>{"use strict";i.d(t,{A:()=>j,j:()=>P});var _=i(74848),n=i(46942),s=i.n(n),o=i(96540),r=i(74368),a=i(47819),l=i(27116),c=i(35296),p=i(98126),u=i(98047),d=i(91106),m=i.n(d),b=i(86715),h=i.n(b),v=i(60963),g=i(85299),f=i(97461),y=i(89506),k=i.n(y),x=i(64388),S=i.n(x),w=i(41364);let P={UNSUBSCRIBE:"unsubscribe",DISCOUNT:"discount"};function j(e){var t,i,n,d,b,y,x,P,j;let N;let{afterUnsubscribeType:A,afterSubscribeDiscount:C}=e,[I,D]=(0,o.useState)(null),[R,T]=(0,o.useState)(0),[U,E]=(0,o.useState)(!1),[L,V]=(0,o.useState)(-1),[O,M]=(0,o.useState)(!0),[H,F]=(0,o.useState)(null),B=(0,r.wA)(),z=(0,r.d4)(e=>e.player),Q=(0,r.d4)(e=>e.systemInformation),{deviceSize:Y}=(0,r.d4)(e=>e.systemInformation),{pendingSubscription:K}=(0,r.d4)(e=>e.profile),W=(0,r.d4)(e=>e.registration.authData),q=(0,o.useRef)(),G=w.Ay.useApiUrl(),Z=w.Ay.useApiKey(),J=w.Ay.useResponsiveButtonSize(),X=A?"На главную":C?"Хорошо":"",$="".concat(G).concat(a.PI.mainShowcase,"/").concat("start-predstavlyaet-web").concat(Z,"&for_kids=false&device_type=web"),ee="".concat(G,"/account/subscriptions").concat(Z,"&for_kids=false&device_type=web"),et=(null===(t=window)||void 0===t?void 0:t.innerWidth)<768,ei=et?null===(i=window)||void 0===i?void 0:i.innerWidth:434,e_=et?24:32,en=(null===(n=window)||void 0===n?void 0:n.innerWidth)>1440,es=(null===(d=window)||void 0===d?void 0:d.innerWidth)<=1024,eo=e=>{var t;return Number((e*((null===(t=window)||void 0===t?void 0:t.innerWidth)/1440)).toFixed(2))},er=()=>{fetch(ee,{credentials:"include",method:"GET"}).then(e=>e.json()).then(e=>{var t,i;let _=(null===(t=e[0])||void 0===t?void 0:t.expiration)||K.length&&K[0].billing_expire;if((null==e?void 0:e.length)===0){F(null);return}let n=new Date(1e3*_);if(!n)return;let s="";A&&(s="".concat(n.getDate().toString()," ").concat(l.wp[n.getMonth()]," ").concat(n.getFullYear().toString())),(null==C?void 0:C.endDate)&&(s="".concat(null==C?void 0:C.endDate.getDate().toString(),"\xa0").concat(l.wp[null==C?void 0:null===(i=C.endDate)||void 0===i?void 0:i.getMonth()])),F(s)})},ea=()=>{fetch($,{credentials:"include",method:"GET"}).then(e=>e.json()).then(e=>{D(e)})},el=e=>{let{clickHouseData:t}=Q,i={...t,...e};B((0,p.Y3)(G,Z,i))};(0,o.useEffect)(()=>(ea(),er(),B((0,u.TX)(!0)),el({action_id:"popupview",event_version:"1.0",screen_type:"payments",screen_attributes_id:"payment_history",block_type:"popup",block_attributes_id:A?"reccurent_off_success":"sub_discount_success",event_time:Date.now()}),()=>B((0,u.TX)(!1))),[]);let ec=e=>{e.stopPropagation()},ep=(e,t,i)=>{e.stopPropagation(),el({action_id:"click",event_version:"1.0",screen_type:"payments",screen_attributes_id:"payment_history",block_type:"popup",block_attributes_id:A?"reccurent_off_success":"sub_discount_success",content_id:i.id,content_type:i.cls,element_type:"product",element_attributes_id:i.alias,element_attributes_index:t+1,event_time:Date.now()}),eb()},eu=function(e,t){var i,n;arguments.length>2&&void 0!==arguments[2]&&arguments[2];let o=null===(i=e.badges)||void 0===i?void 0:i.filter(e=>"badge"===e.type&&!e.under_logo_position),r=e.alias?"/watch/".concat(e.alias):"/genres/".concat(e.slug);return(0,_.jsxs)("div",{className:s()({[k().vline__slider__card]:!0}),children:[(0,_.jsx)(m(),{prefetch:!1,href:r,className:"".concat(k().vline__slider__card__link),title:"".concat(e.title),onClick:i=>ep(i,t,e),children:(0,_.jsx)("div",{className:"".concat(S()["after-unsubscribing__card"]," ").concat(""),style:{backgroundImage:"url('".concat(G+e.vertical,"&size=95x136')")},onMouseLeave:()=>V(-1),children:null!=e&&e.rating_start?(0,_.jsx)("div",{className:"".concat(e.rating_start>=7?k().vline__slider__card__content__rating_high:""," ").concat(k().vline__slider__card__content__rating," ").concat(S().c
1ontent__rating),children:(0,c.bH)(e.rating_start)}):null},"card_".concat(e.alias))},t),(0,_.jsx)("div",{className:s()({[S()["after-unsubscribing__card__title"]]:!0}),children:(0,_.jsx)(m(),{prefetch:!1,href:r,onClick:i=>ec(i,t,e),children:e.title},"cardLink_title_".concat(e.title))}),(null==o?void 0:o.length)?(0,_.jsxs)("div",{className:k().vline__slider__card__badge,style:{marginTop:"0px"},children:["double"===o[0].structure?(0,_.jsx)(v.L$,{className:S()["after-unsubscribing__bages__double"],text:o[0].text,textRight:o[0].text_right,textColor:o[0].text_color,textColorRight:o[0].text_color_right,bgColorRight:o[0].background_color_right,bgColor:o[0].background_color}):"single"===o[0].structure?(0,_.jsx)(v.Ex,{className:S()["after-unsubscribing__bages__single"],textColor:"#14161a",bgColor:"#f2f2f2",text:o[0].text}):null,"single"===o[0].structure&&(null===(n=o[1])||void 0===n?void 0:n.structure)==="single"&&"desktop_web"===Y?(0,_.jsx)(v.Ex,{className:S()["after-unsubscribing__bages__single"],textColor:"#14161a",bgColor:"#f2f2f2",text:o[1].text}):null]}):null,(null==o?void 0:o.length)||!e.genres&&!e.roles?null:(0,_.jsx)(m(),{prefetch:!1,href:Q.player.init&&!z.pip?"/":e.alias?"/watch/".concat(e.alias):"/genres/".concat(e.slug),className:"".concat(k()["vline__slider__card__subtitle-link"]," ").concat(S()["subtitle-link"]," "),style:{marginTop:"0"},onClick:i=>ec(i,t,e),children:(0,_.jsx)("div",{className:s()({[S()["after-unsubscribing__card__subtitle"]]:!0,[k().persons]:!1}),children:e.genres.map((e,t)=>(0,_.jsx)("span",{className:k().vline__slider__card__subtitle__genre,children:0!==t?", ".concat(e.title):e.title},t))})},"cardLink_subtitle_".concat(e.title))]},t)},ed={zIndex:U?2:1,padding:"0 ".concat(en?eo(e_):e_,"px"),width:"".concat(en?eo(ei):ei,"px"),boxSizing:"border-box"},em=()=>{eb(),el({action_id:"click",event_version:"1.0",screen_type:"payments",screen_attributes_id:"payment_history",block_type:"popup",block_attributes_id:A?"reccurent_off_success":"sub_discount_success",element_type:"button",element_attributes_id:"cross",event_time:Date.now()})},eb=()=>{B((0,u.TX)(!1)),B((0,u.t_)(!1)),M(!1)},eh=()=>{E(!0)},ev=()=>{E(!1)};return(0,_.jsx)("div",{className:"".concat(S()["after-unsubscribing"]," ").concat(O?"":S().invisible),onClick:em,children:(0,_.jsxs)("div",{className:S()["after-unsubscribing__wrapper"],onClick:e=>e.stopPropagation(),children:[(0,_.jsx)("div",{className:S()["after-unsubscribing__close"],onClick:em,children:(0,_.jsx)("img",{src:"/static/images/popups/cross.svg",alt:"close popup"})}),(0,_.jsxs)("div",{className:S()["after-unsubscribing__content-wrapper"],children:[(0,_.jsxs)("div",{className:S()["after-unsubscribing__content"],children:[(0,_.jsx)("div",{className:S()["after-unsubscribing__emoji"],children:(0,_.jsx)("img",{src:"/static/images/popups/done_light.svg",alt:"done"})}),(0,_.jsxs)("div",{className:S()["after-unsubscribing__title"],children:[A&&((null==W?void 0:W.type)==="EX_TRIAL"?"Подписка отменена":"Автопродление отключено"),C&&"Оформили ".concat((N=Math.ceil((C.duration_days||30)/30),"".concat(1===N?"":N," ").concat((0,c.jQ)(["месяц","месяца","месяцев"],N)))," подписки за\xa0").concat((null==C?void 0:null===(y=C.tariffData)||void 0===y?void 0:null===(b=y.rate_steps)||void 0===b?void 0:b.length)?"".concat(parseInt(null==C?void 0:null===(P=C.tariffData)||void 0===P?void 0:null===(x=P.rate_steps.find(e=>1===e.order_number))||void 0===x?void 0:x.price),"\xa0₽"):(null==C?void 0:null===(j=C.tariffData)||void 0===j?void 0:j.price)?"".concat(parseInt(C.tariffData.price),"\xa0₽"):"249\xa0₽")]}),(null==W?void 0:W.type)==="EX_TRIAL"?null:(0,_.jsx)("div",{className:S()["after-unsubscribing__text"],children:(0,_.jsxs)("div",{className:S()["after-unsubscribing__text__paragraph"],children:[A&&H&&(0,_.jsxs)("span",{children:["Деньги больше не спишем. Смотрите фильмы, сериалы и\xa0телеканалы до ",H]}),A&&!H&&(0,_.jsx)("span",{children:"Деньги больше не спишем"}),C&&(0,_.jsxs)("span",{children:[H||""," автоматически продлим на\xa0",C.duration_days,"\xa0дней за\xa0",parseInt(C.reccurentPrice),"\xa0₽. Подписку можно отменить в\xa0любой\xa0момент"]})]})}),(0,_.jsx)(f.$n,{size:J,title:X,className:S()["after-unsubscribing__button-red"],ref:q,onClick:()=>{el({action_id:"click",event_version:"1.0",block_type:"popup",screen_type:"payments",screen_attributes_id:"payment_history",block_attributes_id:A?"reccurent_off_success":"sub_discount_success",element_type:"button",element_attributes_id:A?"on_main":"watch",element_attributes_text:q.current.innerHTML,event_time:Date.now()}),B((0,u.TX)(!1)),B((0,u.t_)(!1)),M(!1),h().push("/")},fullWidth:!es})]}),(null==W?void 0:W.type)==="EX_TRIAL"?null:(0,_.jsx)("div",{className:S()["after-unsubscribing__showcase"],children:(0,_.jsx)("div",{className:S()["after-unsubscribing__slider-line"],id:"start-predstavlyaet-web",children:(0,_.jsx)("div",{className:S()["after-unsubscribing__vline"],children:(0,_.jsx)("div",{className:S()["after-unsubscribing__slider"],onMouseOver:eh,onMouseOut:ev,onFocus:eh,onBlur:ev,children:(null==I?void 0:I.items.length)>0?(0,_.jsx)(g.A,{widthCard:{desktop:95,mobile:95},heightCard:{desktop:136,mobile:136},cardIdent:16,lineIdx:4,active:U,alias:"start-predstavlyaet-web",items:I.items,items_total:I.items.length,arrowClick:(e,t,i)=>{T(i)},isPopup:!0,popupWidth:ei,popupPadding:e_,wrapperStyles:ed,isPaginator:!1,children:I.items.map((e,t)=>eu(e,t))}):null})})})})]})]})})}},79760:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});var _=i(74848);i(96540);var n=i(97461),s=i(13614),o=i(83648),r=i.n(o);let a=e=>
1{let{open:t,onClose:i,title:o,subtitle:a,confirmText:l,cancelText:c,onConfirm:p,onCancel:u}=e;return(0,_.jsx)(s.A,{open:t,onClose:i,modalClassName:r().modal,children:(0,_.jsxs)("div",{className:r().modal_content,children:[(0,_.jsx)("img",{className:r().image,src:"/static/images/account/family/warning.webp",alt:"image"}),(0,_.jsxs)("div",{className:r().title_block,children:[(0,_.jsx)("h3",{className:r().title,children:o}),(0,_.jsx)("span",{className:r().subtitle,children:a})]}),(0,_.jsxs)("div",{className:r().desc,children:[(0,_.jsx)(n.$n,{onClick:e=>{var t;return p(null==e?void 0:null===(t=e.target)||void 0===t?void 0:t.innerText)},variant:n.Vt.SECONDARY,size:n.GO.REGULAR,title:l,fullWidth:!0}),(0,_.jsx)(n.$n,{onClick:e=>{var t;return u(null==e?void 0:null===(t=e.target)||void 0===t?void 0:t.innerText)},variant:n.Vt.TERTIARY,size:n.GO.REGULAR,title:c,fullWidth:!0})]})]})})}},90508:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});var _=i(74848);i(96540);var n=i(97461),s=i(13614),o=i(12920),r=i.n(o);let a=e=>{let{open:t,onClose:i,title:o="Техническая неполадка",subtitle:a="Скоро всё починим. Попробуйте позже",confirmText:l="Хорошо",onConfirm:c}=e;return(0,_.jsx)(s.A,{open:t,onClose:i,modalClassName:r().modal,children:(0,_.jsxs)("div",{className:r().modal_content,children:[(0,_.jsx)("img",{className:r().image,src:"/static/images/account/family/warning.webp",alt:"image"}),(0,_.jsxs)("div",{className:r().title_block,children:[(0,_.jsx)("h3",{className:r().title,children:o}),(0,_.jsx)("span",{className:r().subtitle,children:a})]}),(0,_.jsx)("div",{className:r().desc,children:(0,_.jsx)(n.$n,{onClick:c,variant:n.Vt.SECONDARY,size:n.GO.MEDIUM,title:l,fullWidth:!0})})]})})}},68818:(e,t,i)=>{"use strict";i.d(t,{K6:()=>o,v4:()=>r});var _=i(47819),n=i(27116);i(35296);let s=()=>({type:"FETCH_PAYMENTS_LOADING"}),o=e=>({type:"FETCH_PAYMENTS_LOAD",payload:e}),r=()=>async(e,t)=>{var i,r;let a=(null===(i=t().systemInformation)||void 0===i?void 0:i.API_URL)||n.H$,l=(null===(r=t().systemInformation)||void 0===r?void 0:r.API_KEY)||n.Lq;e(s());let c="".concat(a).concat(_.PI.paymentMethods).concat(l);try{let t=await fetch(c,{credentials:"include"}),i=await t.json();if(t.status<400)return e(o(i))}catch(t){e({type:"FETCH_PAYMENTS_ERROR"}),console.error(">>> error fetching payments",t)}}},60963:(e,t,i)=>{"use strict";i.d(t,{Ay:()=>p,Ex:()=>l,JI:()=>c,L$:()=>a});var _=i(74848),n=i(46942),s=i.n(n),o=i(2327),r=i.n(o);let a=e=>{let{className:t,size:i,text:n,textRight:o,textColor:a,textColorRight:c,bgColor:p,bgColorRight:u}=e;return(0,_.jsxs)("div",{className:s()(r()["badge-double"],t),children:[(0,_.jsx)(l,{className:r()["badge-double__left"],textColor:a,bgColor:p,text:n}),(0,_.jsx)(l,{className:r()["badge-double__right"],textColor:c,bgColor:u,text:o})]})},l=e=>{let{className:t,size:i,textColor:n,bgColor:o,text:a}=e;return(0,_.jsx)("div",{className:s()(r().badge,t),style:{color:n,backgroundColor:o},children:a})},c=e=>{let{className:t}=e;return(0,_.jsx)(l,{className:s()(r().premiumBadge,t),text:"PREMIUM"})},p=l},71635:(e,t,i)=>{"use strict";i.d(t,{A:()=>l});var _=i(74848),n=i(96540),s=i(27116),o=i(6695),r=i.n(o);class a extends n.Component{render(){var e,t;let{card:i,small:n,phone:o,multiple:a,noDisabled:l,geo:c,ignore_expire:p,payment:u}=this.props;if(!i)return null;let d=-1!==s.PY.indexOf(i.getType())&&!l,m=!1;new Date(null===(t=i.cardInfo_)||void 0===t?void 0:null===(e=t.card_expire)||void 0===e?void 0:e.replace(/-/g,"/"))<new Date&&-1===s.PY.indexOf(i.getType())&&-1===s.bd.indexOf(i.getType())&&-1===s.qP.indexOf(c)&&(m=!0);let b="invalid"===i.getCardState();return(0,_.jsxs)("div",{className:"".concat(r().card," ").concat(n?r().small:""," ").concat(i.getCardTheme()?"":r().dark," ").concat(d?r().disabled:""),style:{backgroundColor:i.getBackgroundColor()},children:["card_cloudpayments_applepay"!==i.getType()?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("div",{className:r()["card-logo"],children:(0,_.jsx)("img",{className:r()["card-bank-logo"],alt:"card logo",src:i.getLogo()?"/static/images/banks-logos/ru-".concat(i.getL
1ogo()):"/static/images/Union.svg"})}),(0,_.jsx)("div",{className:r()["card-number"],style:{color:"card_googlepay"===i.getType()?i.getPaymentTextColor():""},children:i.getCardNumber()}),"card_googlepay"!==i.getType()?(0,_.jsx)("div",{className:r()["card-wrap"],children:i.getType()&&(null==u?void 0:u.type)==="yookassa_sbp"?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("div",{}),(0,_.jsx)("div",{className:r()["card-text"],children:null==u?void 0:u.bank_name})]}):i.getType()?(0,_.jsx)("div",{className:r()["card-text"],style:{color:i.getPaymentTextColor()},children:"megafon_payment"===i.getType()&&o?o:i.getPaymentText()}):(0,_.jsxs)(_.Fragment,{children:[i.getDateCompletion()?(0,_.jsx)("div",{className:r()["card-date"],children:i.getDateCompletion()}):null,i.getCardType()?(0,_.jsx)("img",{className:r()["card-type"],alt:"card",src:"/static/images/card-types/".concat(i.getCardType()).concat(i.getCardTheme()?"-light":"-dark",".svg")}):null]})}):null]}):(0,_.jsx)("div",{className:"".concat(r()["card-logo"]," ").concat(r()["card-logo--centered"]),children:(0,_.jsx)("img",{className:r()["card-bank-logo"],alt:"bank logo",src:i.getLogo()?"/static/images/banks-logos/ru-".concat(i.getLogo()):""})}),a&&!b?(0,_.jsxs)("div",{className:r()["payments-multiple"],children:[(0,_.jsx)("div",{className:r()["payments-multiple__image"],children:(0,_.jsx)("img",{src:"/static/images/card-types/warning.svg",alt:"warning"})}),(0,_.jsx)("div",{className:r()["payments-multiple__text"],children:"Выберите карту"})]}):null,!m||p||b?null:(0,_.jsxs)("div",{className:r()["payments-multiple"],children:[(0,_.jsx)("div",{className:r()["payments-multiple__image"],children:(0,_.jsx)("img",{src:"/static/images/card-types/error.svg",alt:"error"})}),(0,_.jsx)("div",{className:r()["payments-multiple__text"],children:"Истёк срок действия карты"})]}),b&&!d?(0,_.jsx)("div",{className:r()["card-invalid"],children:(0,_.jsx)("img",{className:r()["card-invalid__image"],src:"/static/images/card-types/warning-red.svg",alt:"error"})}):null,d?(0,_.jsx)("div",{className:r().card__disabled,children:(0,_.jsx)("img",{src:"/static/images/card-types/disabled.svg",alt:"card disable"})}):null]})}}let l=a},13614:(e,t,i)=>{"use strict";i.d(t,{A:()=>b});var _,n,s=i(74848),o=i(46942),r=i.n(o),a=i(96540);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var _ in i)({}).hasOwnProperty.call(i,_)&&(e[_]=i[_])}return e}).apply(null,arguments)}let c=function(e){return a.createElement("svg",l({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24"},e),_||(_=a.createElement("path",{fill:"#F2F2F2",fillOpacity:.8,d:"M12.415 5.42 6.831 11H21v2H6.824l5.586 5.586L11 20l-8-8 8-8z"})))};function p(){return(p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var _ in i)({}).hasOwnProperty.call(i,_)&&(e[_]=i[_])}return e}).apply(null,arguments)}let u=function(e){return a.createElement("svg",p({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24"},e),n||(n=a.createElement("path",{fill:"#B9B6B9",fillRule:"evenodd",d:"M6.413 4.363 12 9.95l5.586-5.587 2.05 2.05L14.05 12l5.586 5.586-2.05 2.05L12 14.05l-5.587 5.586-2.05-2.05L9.95 12 4.363 6.413z",clipRule:"evenodd"})))};var d=i(67939),m=i.n(d);let b=e=>{let{open:t,onClose:i,modalClassName:_,noBg:n=!1,needArrowLeft:o,arrowLeftClick:l,children:p}=e,d=(0,a.useCallback)(()=>{null==i||i()},[i]);return((0,a.useEffect)(()=>{if(!t)return;let e=e=>{"Escape"===e.key&&d()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[t,d]),t)?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:r()(m().overlay_modal),onClick:d}),(0,s.jsxs)("div",{"data-no_bg":n,className:r()(m().modal,_),children:[o&&(0,s.jsx)("button",{"data-modal-close":!0,className:m().arrowLeftBtn,onClick:l,children:(0,s.jsx)(c,{})}),(0,s.jsx)("button",{"data-modal-close":!0,className:m().closeBtn,onClick:d,children:(0,s.jsx)(u,{})}),p]})]}):null}},45322:e=>{e.exports={"storybook-root":"AccountPaymentsPopup_storybook-root__OaKqn","card-wrap":"AccountPaymentsPopup_card-wrap__KNzv6",remove:"AccountPaymentsPopup_remove__bzhko","payments-item":"AccountPaymentsPopup_payments-item__933sS","card-number":"AccountPaymentsPopup_card-number__uc5fE","payments-item--active":"AccountPaymentsPopup_payments-item--active__tIaJ0","start-popup":"AccountPaymentsPopup_start-popup__K_Mkp",dark:"AccountPaymentsPopup_dark__rML9m","alert__max-p
1ayments":"AccountPaymentsPopup_alert__max-payments__ypRMU",alert__text:"AccountPaymentsPopup_alert__text__kC5nL","alert__close-btn":"AccountPaymentsPopup_alert__close-btn__MXFW8","start-popup__close":"AccountPaymentsPopup_start-popup__close__dbLUh","start-popup__wrapper":"AccountPaymentsPopup_start-popup__wrapper__PtLF8","payments-new":"AccountPaymentsPopup_payments-new__kEc8X","payments-new__icon":"AccountPaymentsPopup_payments-new__icon__HIPJx","payments-new__btn":"AccountPaymentsPopup_payments-new__btn__WK5dX","payments-item--active--wrapper":"AccountPaymentsPopup_payments-item--active--wrapper__M3QK3","current-payment":"AccountPaymentsPopup_current-payment___ydYd","payments-item__card-container":"AccountPaymentsPopup_payments-item__card-container__XFYsm","payments-item__btn-remove":"AccountPaymentsPopup_payments-item__btn-remove__XWgvs","popup-remove-card":"AccountPaymentsPopup_popup-remove-card__SNcUp","popup-remove-card__text":"AccountPaymentsPopup_popup-remove-card__text__8iXf0","popup-remove-card__control":"AccountPaymentsPopup_popup-remove-card__control__euPTC","popup-remove-card__button-control":"AccountPaymentsPopup_popup-remove-card__button-control__FfRdo","popup__payments-item":"AccountPaymentsPopup_popup__payments-item__hpXnR",tariffsPopup:"AccountPaymentsPopup_tariffsPopup__Uq2Tr",tariffsPopup__wrapper:"AccountPaymentsPopup_tariffsPopup__wrapper__hNnIv",tariffsPopup__close:"AccountPaymentsPopup_tariffsPopup__close__BRfO6",tariffsPopup__closeM:"AccountPaymentsPopup_tariffsPopup__closeM__4b8kA",tariffsPopup__title:"AccountPaymentsPopup_tariffsPopup__title__9cx_l",tariffsPopup__description:"AccountPaymentsPopup_tariffsPopup__description__ES62E",tariffsPopup__info:"AccountPaymentsPopup_tariffsPopup__info__IK9iO",tariffsPopup__data:"AccountPaymentsPopup_tariffsPopup__data__garlf",tariffsPopup__total:"AccountPaymentsPopup_tariffsPopup__total__PBH3l",tariffsPopup__bg:"AccountPaymentsPopup_tariffsPopup__bg__zUlba",tariffsPopup__card:"AccountPaymentsPopup_tariffsPopup__card__cNsFn",tariffsPopup__ok:"AccountPaymentsPopup_tariffsPopup__ok__SFCDC",disabled:"AccountPaymentsPopup_disabled__lPepe",tariffsPopup__change:"AccountPaymentsPopup_tariffsPopup__change__UlAeT",tariffsPopup__error:"AccountPaymentsPopup_tariffsPopup__error__g7o9x",tariffsPopup__checkCard:"AccountPaymentsPopup_tariffsPopup__checkCard__rU_M_",mobile:"AccountPaymentsPopup_mobile__2jzcG",mobile__active:"AccountPaymentsPopup_mobile__active__kSRX8",mobile__active__block:"AccountPaymentsPopup_mobile__active__block___PVi4","mobile__active-wrapper":"AccountPaymentsPopup_mobile__active-wrapper__ugK_0","mobile__active-current":"AccountPaymentsPopup_mobile__active-current__roCPR","mobile__cards-item":"AccountPaymentsPopup_mobile__cards-item__2MlOZ",mobile__cards:"AccountPaymentsPopup_mobile__cards__tmrSc",mobile__add:"AccountPaymentsPopup_mobile__add__sMzyg","mobile__cards-item_remove":"AccountPaymentsPopup_mobile__cards-item_remove__Ti4M8",remove__title:"AccountPaymentsPopup_remove__title__HXE1R",remove__buttons:"AccountPaymentsPopup_remove__buttons__m_DRe",remove__button:"AccountPaymentsPopup_remove__button__JOu0A"}},34299:e=>{e.exports={"storybook-root":"DisableRecurrentQuestions_storybook-root__KDgEi",drq:"DisableRecurrentQuestions_drq__geFAc",drq__close:"DisableRecurrentQuestions_drq__close__lyxcn",drq__wrap:"DisableRecurrentQuestions_drq__wrap__aKoq6",drq__buttons:"DisableRecurrentQuestions_drq__buttons__LENJG",drq__inner:"DisableRecurrentQuestions_drq__inner__NYHiN",drq__add:"DisableRecurrentQuestions_drq__add__UIHD1",drq__title:"DisableRecurrentQuestions_drq__title__GSRkp",drq__item:"DisableRecurrentQuestions_drq__item__KMXFv",drq__item__error:"DisableRecurrentQuestions_drq__item__error__lgGGG",drq__error:"DisableRecurrentQuestions_drq__error__mjcMM",button:"DisableRecurrentQuestions_button__d9VXC",recommendation:"DisableRecurrentQuestions_recommendation__GaEQ2","recommendation-load-wrapper":"DisableRecurrentQuestions_recommendation-load-wrapper__If6dv",recommendation__link:"DisableRecurrentQuestions_recommendation__link__Ab3ih",recommendation__skeleton:"DisableRecurrentQuestions_recommendation__skeleton__yX_Ms",announcements:"DisableRecurrentQuestions_announcements__Km_1J",trial:"DisableRecurrentQuestions_trial__Sk4I5",trial__title:"DisableRecurrentQuestions_trial__title__ejHbD",announcementsGrid:"DisableRecurrentQuestions_announcementsGrid__NHtzX",announcementsItem:"DisableRecurrentQuestions_announcementsItem__ydP5m",announcementsItem__image:"DisableRecurrentQuestions_announcementsItem__image__I0Blo",announcementsItem__title:"DisableRecurrentQuestions_announcementsItem__title__Nhzlh",announcementsItem__info:"DisableRecurrentQuestions_announcementsItem__info__T0PYT",announcementsItem__genre:"DisableRecurrentQuestions_announcementsItem__genre__1SboV",announcementsItem__rating:"DisableRecurrentQuestions_announcementsItem__rating__EY1ut",announcementsItem__rating_high:"DisableRecurrentQuestions_announcementsItem__rating_high__JUy8c",announcementsItem__skeleton_wrap:"DisableRecurrentQuestions_announcementsItem__skeleton_wrap__hm95s",announcementsItem__skeleton:"DisableRecurrentQuestions_announcementsItem__skeleton__u6mWy",announcementsItem__skeleton_wrap_2:"DisableRecurrentQuestions_announcementsItem__skeleton_wrap_2__dF62f",announcementsItem__skeleton_title:"DisableRecurrentQuestions_announcementsItem__skeleton_title__z76eI",announcementsItem__skeleton_description:"DisableRecurrentQuestions_announcementsItem__skeleton_description__TD8VS",announcementsBadge:"DisableRecurrentQuestions_announcementsBadge__po61V",announcementsBadge__single:"DisableRecurrentQuestions_announcementsBadge__single__ELURz",announcementsBadge__double:"DisableRecurrentQuestions_announcementsBadge__double__O9b7b",trial__pt0:"DisableRecurrentQuestions_trial__pt0__IPGfX",fixed__wrapper:"DisableRecurrentQuestions_fixed__wrapper__8Yj6t",trial__close:"DisableRecurrentQuestions_trial__close__yhwnV",trial__wrapper:"DisableRecurrentQuestions_trial__wrapper__H3Vy_",trial__buttons:"DisableRecurrentQuestions_trial__buttons__OtHZb",trial__descr:"DisableRecurrentQuestions_trial__descr__xLF5k",trial__image:"DisableRecurrentQuestions_trial__image__Sr9Gd",trial__lock:"DisableRecurrentQuestions_trial__lock__wLpCH",trial__buttons__hide:"DisableRecurrentQuestions_trial__buttons__hide__rk5E8",trial__button:"DisableRecurrentQuestions_trial__button__nsEZB",trial__content:"DisableRecurrentQuestions_trial__content__VZBVA",trial__item:"DisableRecurrentQuestions_trial__item__oD9L3",trial__img:"DisableRecurrentQuestions_trial__img__D83z2",trial__info:"DisableRecurrentQuestions_trial__info__JbxuG",trial__info__pd:"DisableRecurrentQuestions_trial__info__pd__mLSep",trial__info__close:"DisableRecurrentQuestions_trial__info__close__KDKZE",trial__info__img:"DisableRecurrentQuestions_trial__info__img__qOMyY",trial__info__img__large:"DisableRecurrentQuestions_trial__info__img__large__zud9P",trial__info__title:"DisableRecurrentQuestions_trial__info__title__kPdiu",trial__info__sub__title:"DisableRecurrentQuestions_trial__info__sub__title__AR6_u",trial__info__buttons:"DisableRecurrentQuestions_trial__info__buttons__l_4np",trial__off:"DisableRecurrentQuestions_trial__off__bCp9t",trial__off__wrapper:"DisableRecurrentQuestions_trial__off__wrapper___nAZ9",trialTitle__skeleton:"DisableRecurrentQuestions_trialTitle__skeleton__ux_Ye",trialSubTitle__skeleton:"DisableRecurrentQuestions_trialSubTitle__skeleton__n_YQC",rule:"DisableRecurrentQuestions_rule__48Q_Q",trial__subtitle:"DisableRecurrentQuestions_trial__subtitle__1dSlO",ruleGrid:"DisableRecurrentQuestions_ruleGrid__dhwpC",ruleAnnounceItem:"DisableRecurrentQuestions_ruleAnnounceItem__CYnPQ",ruleItem:"DisableRecurrentQuestions_ruleItem__OXzN2",ruleItem__image:"DisableRecurrentQuestions_ruleItem__image__Vnkyu",ruleItem__title:"DisableRecurrentQuestions_ruleItem__title__tMmOD",ruleItem__info:"DisableRecurrentQuestions_ruleItem__info__Bx5C5",ruleItem__genre:"DisableRecurrentQuestions_ruleItem__genre__Ru6_s",ruleItem__rating:"DisableRecurrentQuestions_ruleItem__rating__RSfyK",ruleItem__rating_high:"DisableRecurrentQuestions_ruleItem__rating_high__4_wqS",ruleItem__skeleton_wrap:"DisableRecurrentQuestions_ruleItem__skeleton_wrap__tIxSn",ruleItem__skeleton:"DisableRecurrentQuestions_ruleItem__skeleton__nXmJ8",ruleItem__skeleton_wrap_2:"DisableRecurrentQuestions_ruleItem__skeleton_wrap_2__PVHnK",ruleItem__skeleton_title:"DisableRecurrentQuestions_ruleItem__skeleton_title__ZxsSm",ruleItem__skeleton_description:"DisableRecurrentQuestions_ruleItem__skeleton_description__nUhuO",ruleBadge:"DisableRecurrentQuestions_ruleBadge__k4RwE",blur_bottom:"DisableRecurrentQuestions_blur_bottom__ES3Ci",blur_top:"DisableRecurrentQuestions_blur_top__PUl9J",ruleBadge__single:"DisableRecurrentQuestions_ruleBadge__single__cw9sp",ruleBadge__double:"DisableRecurrentQuestions_ruleBadge__double__LazZj",blur:"DisableRecurrentQuestions_blur__fTCqX",announcementsItem__skeleton_announce:"DisableRecurrentQuestions_announcementsItem__skeleton_announce__w38v4",trial__wrap:"DisableRecurrentQuestions_trial__wrap__NbRXN",ruleItem__skeleton_announce:"DisableRecurrentQuestions_ruleItem__skeleton_announce__mY6D4"}},97625:e=>{e.exports={"storybook-root":"FreezeSubscription_storybook-root__a_Ti_",container:"FreezeSubscription_container__oKaJx",close:"FreezeSubscription_close__spcEi",modal:"FreezeSubscription_modal__Q4rhi",title:"FreezeSubscription_title__2JL6J",subtitle:"FreezeSubscription_subtitle__Wke8r",content:"FreezeSubscription_content__xbXVy",list:"FreezeSubscription_list__7S_u1","list-item":"FreezeSubscription_list-item__cvY_2",icon:"FreezeSubscription_icon__4Vnih",details:"FreezeSubscription_details__FNuxc",primary:"FreezeSubscription_primary__OC3vC",secondary:"FreezeSubscription_secondary__IvUVa",buttons:"FreezeSubscription_buttons__CqxcB",blur_top:"FreezeSubscription_blur_top___2nYa",blur_bottom:"FreezeSubscription_blur_bottom__Ap_nc",tv:"FreezeSubscription_tv__UAJwV"}},88822:e=>{e.exports={"storybook-root":"FreezeSubscriptionPromoHolod_storybook-root__ngw3d",container:"FreezeSubscriptionPromoHolod_container__silV1",close:"FreezeSubscriptionPromoHolod_close__FQbwu",modal:"FreezeSubscriptionPromoHolod_modal__M398W",title:"FreezeSubscriptionPromoHolod_title__Fq7jv",subtitle:"FreezeSubscriptionPromoHolod_subtitle__wtVAX",content:"FreezeSubscriptionPromoHolod_content__oMsD9",list:"FreezeSubscriptionPromoHolod_list__lNAEB","list-item":"FreezeSubscriptionPromoHolod_list-item__ob9dv",icon:"FreezeSubscriptionPromoHolod_icon__nH9vk",details:"FreezeSubscriptionPromoHolod_details__Suesx",primary:"FreezeSubscriptionPromoHolod_primary__sPvUW",secondary:"FreezeSubscriptionPromoHolod_secondary__twz3x",buttons:"FreezeSubscriptionPromoHolod_buttons__eyFDe",blur_top:"FreezeSubscriptionPromoHolod_blur_top__e6lSM",blur_bottom:"FreezeSubscriptionPromoHolod_blur_bottom__NEorn"}},69505:e=>{e.exports={"storybook-root":"Subscriptions_storybook-root__runGO",wrapper:"Subscriptions_wrapper__K2kwM",heading:"Subscriptions_heading__8K78V",heading__title:"Subscriptions_heading__title__Z7FB6",heading__description:"Subscriptions_heading__description__ZusIN",slider:"Subscriptions_slider__Rxlsx",list:"Subscriptions_list__f_SSM",button:"Subscriptions_button__QLP1T",trial__buttons:"Subscriptions_trial__buttons__h8TBx",trial__buttons__wrapper:"Subscriptions_trial__buttons__wrapper__OIIu7",trial__buttons__hide:"Subscriptions_trial__buttons__hide__9f8el",trial__button:"Subscriptions_trial__button__sW3B_",heading__description__sm:"Subscriptions_heading__description__sm__f5hgC"}},71402:e=>{e.exports={"storybook-root":"SubscriptionsCard_storybook-root__Vy_dx",card:"SubscriptionsCard_card__79hob",card_active:"SubscriptionsCard_card_active__NP_uW",discount__price:"SubscriptionsCard_discount__price__jvENr",discount__month:"SubscriptionsCard_discount__month__WsqaX",price:"SubscriptionsCard_price__mURW8",info:"SubscriptionsCard_info___9IE9",discount:"SubscriptionsCard_discount__MPLQS",badge:"SubscriptionsCard_badge__KTJ2R",badge__text:"SubscriptionsCard_badge__text__3Snej",badgeWhite:"SubscriptionsCard_badgeWhite__9rws8",price__amount:"SubscriptionsCard_price__amount__iAIjz"}},81651:e=>{e.exports={"storybook-root":"SubscriptionsDiscount_storybook-root__MH6M0",container:"SubscriptionsDiscount_container__MXOck",wrapper:"SubscriptionsDiscount_wrapper__ZPN_Y",wrapper__win:"SubscriptionsDiscount_wrapper__win__jFAmL",close:"SubscriptionsDiscount_close__BtgUX",content:"SubscriptionsDiscount_content__zU6RI"}},58063:e=>{e.exports={"storybook-root":"Settings_storybook-root__IcmPJ",wrapper:"Settings_wrapper__X5A1D",controls:"Settings_controls__4DfRP",heading:"Settings_heading__k2_a8",otherPage:"Settings_otherPage__M5vB5",title:"Settings_title__uTUdA",tabs:"Settings_tabs__DD_Iq",banner:"Settings_banner__ldGYz",tabsWrapper:"Settings_tabsWrapper__VRhKO"}},88428:e=>{e.exports={"storybook-root":"Account_storybook-root__m900J",container:"Account_container__GdCBF",column:"Account_column__AvEyf",panel:"Account_panel__D5HxT",gap24:"Account_gap24___vLmX",info:"Account_info__Cfd_3",info__title_icon:"Account_info__title_icon__JL1u6",info__title:"Account_info__title__EerAB",info__title__unset:"Account_info__title__unset__iYDFQ",info__subtitle:"Account_info__subtitle__J9u0X",info__list:"Account_info__list__hybDk",info__mt36:"Account_info__mt36__oUROM",info__premium:"Account_info__premium__y13pB",graphik18:"Account_graphik18__VytYC",between:"Account_between__eJeoI",item__email:"Account_item__email__6XV8J",item__emailLabel:"Account_item__emailLabel__dUipO",item__emailData:"Account_item__emailData__eG76H",item__value:"Account_item__value__i4ecQ",noNotifications:"Account_noNotifications__HWQbv",noNotifications__data:"Account_noNotifications__data__5kp3_",noNotifications__1:"Account_noNotifications__1__XCNBl",noNotifications__2:"Account_noNotifications__2__r_EXh",noNotifications__3:"Account_noNotifications__3__tenlj",noNotifications__4:"Account_noNotifications__4__crvKk",noNotifications__5:"Account_noNotifications__5__wjtue",noNotifications__image:"Account_noNotifications__image__tm_aM",noNotifications__arrow:"Account_noNotifications__arrow__sw5Rz",noNotifications__button:"Account_noNotifications__button__GirYH",pointer:"Account_pointer__0Ovy_",history:"Account_history__75UHC",history__side:"Account_history__side__2wUCU",history__title:"Account_history__title__ckv98",history__period:"Account_history__period__ShL2e",history__price:"Account_history__price__f30rP",history__method:"Account_history__method__riW2j",skeleton:"Account_skeleton__bWRX7",notifications__skeleton:"Account_notifications__skeleton__ERP6C",notifications__skeleton_image:"Account_notifications__skeleton_image__RxDu2",notifications__skeleton_title_item:"Account_notifications__skeleton_title_item__VCsF9",consent:"Account_consent__5LYkH",consent_link:"Account_consent_link__N5_du",cards:"Account_cards__C9GD7",row:"Account_row__xZmbI",mt:"Account_mt__t_5T_",mt_32:"Account_mt_32__13hZ6",mt_12:"Account_mt_12__xL0t9",m8:"Account_m8__lSjLb",subscriptions__skeleton_wrap:"Account_subscriptions__skeleton_wrap__nN_4a",subscriptions__skeleton_block_1:"Account_subscriptions__skeleton_block_1__c24vD",subscriptions__skeleton_block_1__container_1:"Account_subscriptions__skeleton_block_1__container_1__EOFrc",subscriptions__skeleton_block_1__s1:"Account_subscriptions__skeleton_block_1__s1__AeDHm",subscriptions__skeleton_block_1__s2:"Account_subscriptions__skeleton_block_1__s2__xRRCf",subscriptions__skeleton_block_1__s3:"Account_subscriptions__skeleton_block_1__s3__n_lnA",subscriptions__skeleton_block_2:"Account_subscriptions__skeleton_block_2__j7nHV",subscriptions__skeleton_block_2__container_1:"Account_subscriptions__skeleton_block_2__container_1__zfHQT",subscriptions__skeleton_block_2__container_2:"Account_subscriptions__skeleton_block_2__container_2__MtbM_",subscriptions__skeleton_block_2__s1:"Account_subscriptions__skeleton_block_2__s1__olyrN",subscriptions__skeleton_block_2__s2:"Account_subscriptions__skeleton_block_2__s2__G20OH",subscriptions__skeleton_block_2__s3:"Account_subscriptions__skeleton_block_2__s3__HLOUF",subscriptions__skeleton_block_2__s4:"Account_subscriptions__skeleton_block_2__s4__tBy6D",subscriptions__skeleton_block_3:"Account_subscriptions__skeleton_block_3__g
1SvvV",subscriptions__skeleton_block_3__container_1:"Account_subscriptions__skeleton_block_3__container_1__5EbBG",subscriptions__skeleton_block_3__container_2:"Account_subscriptions__skeleton_block_3__container_2__St_lo",subscriptions__skeleton_block_3__container_3:"Account_subscriptions__skeleton_block_3__container_3__8iuaH",subscriptions__skeleton_block_3__s1:"Account_subscriptions__skeleton_block_3__s1__4_Seo",subscriptions__skeleton_block_3__s2:"Account_subscriptions__skeleton_block_3__s2__l1QTI",subscriptions__skeleton_block_3__s3:"Account_subscriptions__skeleton_block_3__s3__luu3w",subscriptions__skeleton_block_3__s4:"Account_subscriptions__skeleton_block_3__s4__lYQT_",subscriptions_management__skeleton_block_1:"Account_subscriptions_management__skeleton_block_1__tUwyW",subscriptions_management__skeleton_block_1__container_1:"Account_subscriptions_management__skeleton_block_1__container_1__0fAi9",subscriptions_management__skeleton_block_1__container_2:"Account_subscriptions_management__skeleton_block_1__container_2__5acI2",subscriptions_management__skeleton_block_1__s1:"Account_subscriptions_management__skeleton_block_1__s1__fI10L",subscriptions_management__skeleton_block_1__s2:"Account_subscriptions_management__skeleton_block_1__s2__nEPgc",subscriptions_management__skeleton_block_1__s3:"Account_subscriptions_management__skeleton_block_1__s3__k5zQq",capitalize:"Account_capitalize__szM0Y",deleting:"Account_deleting__PVUIX",no_mobile_padding:"Account_no_mobile_padding__hCRYR",filter_icon:"Account_filter_icon__H0J3j",stab:"Account_stab__fH0p2",stab__left:"Account_stab__left__AZq9S",stab__1:"Account_stab__1__fUyF3",stab__2:"Account_stab__2__5V6YP",stab__3:"Account_stab__3__PFqMI",stab__right:"Account_stab__right__Rx3J_",notifications__skeleton_title:"Account_notifications__skeleton_title__n4ynf",mobile:"Account_mobile__hYPBT",notifications__skeleton_icon:"Account_notifications__skeleton_icon__LCNGF",mainButton:"Account_mainButton__e3p6u",subscriptions__skeleton_block_1__mob_s_1:"Account_subscriptions__skeleton_block_1__mob_s_1__b3Qv_",subscriptions__skeleton_block_1__mob_s_2:"Account_subscriptions__skeleton_block_1__mob_s_2__RNt2E",subscriptions__skeleton_block_2__mob_s_1:"Account_subscriptions__skeleton_block_2__mob_s_1__8xbMn",subscriptions__skeleton_block_2__mob_s_2:"Account_subscriptions__skeleton_block_2__mob_s_2__U2GNw",subscriptions__skeleton_block_2__mob_s_3:"Account_subscriptions__skeleton_block_2__mob_s_3__x2USm",subscriptions_management__skeleton_block_1__mob_s_1:"Account_subscriptions_management__skeleton_block_1__mob_s_1__H1jQ9",subscriptions_management__skeleton_block_1__mob_s_2:"Account_subscriptions_management__skeleton_block_1__mob_s_2__xCJlI",mobileMargin:"Account_mobileMargin__MiRED",parentalControl__cell:"Account_parentalControl__cell__exsUf",empty:"Account_empty__IyHt2"}},94042:e=>{e.exports={"storybook-root":"EditDataAction_storybook-root__Co2WF",wrapper:"EditDataAction_wrapper__QvSoa",alignTop:"EditDataAction_alignTop__xNH8L",alignLeft:"EditDataAction_alignLeft__LzpJH",noPading:"EditDataAction_noPading__MfDqf",fullWidth:"EditDataAction_fullWidth__1Jrl2"}},8276:e=>{e.exports={"storybook-root":"Subscriptions_storybook-root__l6svS",badges:"Subscriptions_badges__25_Nq",upsale:"Subscriptions_upsale__3lrr_",failed:"Subscriptions_failed__xNEG7",border:"Subscriptions_border__gWnaj",border_uncolor:"Subscriptions_border_uncolor__M7ezm",content:"Subscriptions_content__B8kfR",top:"Subscriptions_top__qlzaa",cell:"Subscriptions_cell__coC7U",title:"Subscriptions_title__T7M0l",description:"Subscriptions_description__awJVD",value:"Subscriptions_value__l7aQt",tip:"Subscriptions_tip__AVbhL",steps:"Subscriptions_steps__6hfsG",noMargin:"Subscriptions_noMargin__akMby",step:"Subscriptions_step__Kq5He",line:"Subscriptions_line__XIwiW",date:"Subscriptions_date__GBdA9",transition:"Subscriptions_transition__M3j2J",price:"Subscriptions_price__fY2sI",price__amount:"Subscriptions_price__amount__zgBPV",price__period:"Subscriptions_price__period__BGq25",price__paid:"Subscriptions_price__paid__TTSv1",price__transition:"Subscriptions_price__transition__tbqQ6",flex:"Subscriptions_flex__2OTx_",center:"Subscriptions_center__dv_GC",block:"Subscriptions_block__hmWLw",lite:"Subscriptions_lite__VPe_e",lite__title:"Subscriptions_lite__title__ae4ns",default:"Subscriptions_default__kHRNL",lite__description:"Subscriptions_lite__description__nEGpT",failed__content:"Subscriptions_failed__content__aspLT",m24:"Subscriptions_m24__dKVH0",family_settings:"Subscriptions_family_settings__VQRC3",sharing__text:"Subscriptions_sharing__text__vbRjS",mobile:"Subscriptions_mobile__ZFUpV",amount:"Subscriptions_amount__q5PbH",date__period:"Subscriptions_date__period__VHdhn",space
1:"Subscriptions_space__q06s3",badges__mobile:"Subscriptions_badges__mobile__UGUsm"}},70968:e=>{e.exports={"storybook-root":"Cell_storybook-root__N_jE6",wrapper:"Cell_wrapper__GoLZN",devices:"Cell_devices__bFj4b",notifications:"Cell_notifications__H8Lup",alignTop:"Cell_alignTop__BOTng",deleting:"Cell_deleting__itDCv",list:"Cell_list__Oyt4L",asTitle:"Cell_asTitle__9x_Zl",addon:"Cell_addon__wUdGp",leftBlockWrap:"Cell_leftBlockWrap__tpSTr",value:"Cell_value__uzHO_",label:"Cell_label__hTPvK",skeleton:"Cell_skeleton__k9nL9",skeleton__left:"Cell_skeleton__left__oLlUt",skeleton__right:"Cell_skeleton__right__uBMaO",leftImage:"Cell_leftImage__MfYAf",error:"Cell_error__9iLw_",noPading:"Cell_noPading__Ln5_Z"}},74342:e=>{e.exports={"storybook-root":"Panel_storybook-root__Y4Ulv",wrapper:"Panel_wrapper__3W6Fl"}},82034:e=>{e.exports={"storybook-root":"Separator_storybook-root__CE8tH",separator:"Separator_separator__L8Lw3",m24:"Separator_m24__NP3Hh"}},91738:e=>{e.exports={"storybook-root":"TariffItem_storybook-root__cV1SX",wrap:"TariffItem_wrap__wfUlF",border_color:"TariffItem_border_color__wTVjg",border:"TariffItem_border__eRQ_B",duration__side:"TariffItem_duration__side__GsP_p",duration__main:"TariffItem_duration__main__md6tj",content:"TariffItem_content__Wclu2",top:"TariffItem_top__rOZuP",bottom:"TariffItem_bottom__kp4pO",price:"TariffItem_price__ebBfd",dicsount:"TariffItem_dicsount____vci",current:"TariffItem_current__l93Vq",period:"TariffItem_period__JoaLO",duration:"TariffItem_duration__g27Tq",skeleton:"TariffItem_skeleton__yZJ_s"}},83648:e=>{e.exports={"storybook-root":"ConfirmModal_storybook-root__tl69F",modal:"ConfirmModal_modal__Njzor",modal_content:"ConfirmModal_modal_content__RPDHD",image:"ConfirmModal_image___7SeO",title_block:"ConfirmModal_title_block__1dHYp",title:"ConfirmModal_title__SY2S7",subtitle:"ConfirmModal_subtitle__fCkKt",desc:"ConfirmModal_desc__oHsBt"}},12920:e=>{e.exports={"storybook-root":"TechnicalError_storybook-root__6uxak",modal:"TechnicalError_modal__bqSwd",modal_content:"TechnicalError_modal_content__cCGhP",image:"TechnicalError_image___rgIM",title_block:"TechnicalError_title_block__E5cDM",title:"TechnicalError_title__O8fTK",subtitle:"TechnicalError_subtitle__6_W7v",desc:"TechnicalError_desc__Wa1AT"}},64388:e=>{e.exports={"storybook-root":"AfterSubscribeAction_storybook-root__h2sn4","after-unsubscribing":"AfterSubscribeAction_after-unsubscribing__pbWhI","after-unsubscribing__card__title":"AfterSubscribeAction_after-unsubscribing__card__title__qo3AS","after-unsubscribing__card__title__child":"AfterSubscribeAction_after-unsubscribing__card__title__child__sThvb",persons:"AfterSubscribeAction_persons__Rujs0","after-unsubscribing__card__subtitle":"AfterSubscribeAction_after-unsubscribing__card__subtitle__5ZzFb","after-unsubscribing__content":"AfterSubscribeAction_after-unsubscribing__content__GNVHs","after-unsubscribing__subtitle":"AfterSubscribeAction_after-unsubscribing__subtitle__KMM_g","after-unsubscribing__subtitle__genre":"AfterSubscribeAction_after-unsubscribing__subtitle__genre__blVjf","after-unsubscribing__wrapper":"AfterSubscribeAction_after-unsubscribing__wrapper__qk9tf","after-unsubscribing__close":"AfterSubscribeAction_after-unsubscribing__close__BN8H0","after-unsubscribing__emoji":"AfterSubscribeAction_after-unsubscribing__emoji__S7P_e","after-unsubscribing__title":"AfterSubscribeAction_after-unsubscribing__title__ZYWlT","after-unsubscribing__text":"AfterSubscribeAction_after-unsubscribing__text__FU_Sx","after-unsubscribing__text__paragraph":"AfterSubscribeAction_after-unsubscribing__text__paragraph__h1BCt","after-unsubscribing__button-red":"AfterSubscribeAction_after-unsubscribing__button-red__ZKcFx","after-unsubscribing__card":"AfterSubscribeAction_after-unsubscribing__card__AARWL","after-unsubscribing__showcase":"AfterSubscribeAction_after-unsubscribing__showcase__Xslwl","after-unsubscribing__slider":"AfterSubscribeAction_after-unsubscribing__slider__UExEY","after-unsubscribing__slider__line":"AfterSubscribeAction_after-unsubscribing__slider__line__lvkAr","after-unsubscribing__vline":"AfterSubscribeAction_after-unsubscribing__vline__5wZ5X","after-unsubscribing__vline-header":"AfterSubscribeAction_after-unsubscribing__vline-header__x16U6","after-unsubscribing__vline-header__title":"AfterSubscribeAction_after-unsubscribing__vline-header__title__2rQS_","after-unsubscribing__content-wrapper":"AfterSubscribeAction_after-unsubscribing__content-wrapper__iuDvp","after-unsubscribing__bages__single":"AfterSubscribeAction_after-unsubscribing__bages__single__4hJHp","after-unsubscribing__bages__double":"AfterSubscribeAction_after-unsubscribing__bages__double__ayOx6",genre__small:"AfterSubscribeAction_genre__small__mHmfr","subtitle-link":"AfterSubscribeAction_subtitle-link__iLT55",invisible:"AfterSubscribeAction_invisible__YbEpZ"}},92849:e=>{e.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"
1:"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__radioWrapper__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"}},89506:e=>
1{e.exports={"storybook-root":"VideoUnit_storybook-root__aBtF7","archive-card":"VideoUnit_archive-card__2E_a7",vline:"VideoUnit_vline__TljVd",noPadding:"VideoUnit_noPadding__oqnkQ",vline__header:"VideoUnit_vline__header__DScZi",slider__indent:"VideoUnit_slider__indent__OafG_",search:"VideoUnit_search__5C6_g",vline__header__title:"VideoUnit_vline__header__title__8_S_o",vline__header__title__img:"VideoUnit_vline__header__title__img__eJrPT",vline__header__title__link:"VideoUnit_vline__header__title__link__ImY4n",vline__header__title__ico:"VideoUnit_vline__header__title__ico__ABy5L",vline__header__description:"VideoUnit_vline__header__description__GKktb",vline__header__button:"VideoUnit_vline__header__button__LBRpr",vline__header__button_vis:"VideoUnit_vline__header__button_vis__37CQE",vline__header__button__title:"VideoUnit_vline__header__button__title__bpzOU",vline__header__button__icon:"VideoUnit_vline__header__button__icon__2lTvo",vline__header__button__icon__down:"VideoUnit_vline__header__button__icon__down__PFHI2",vline__header__container__desc:"VideoUnit_vline__header__container__desc__ogZB1",vline__header__icon__warning:"VideoUnit_vline__header__icon__warning__Dvm_5",vline__bg:"VideoUnit_vline__bg__A7Dkc",prime_video:"VideoUnit_prime_video__JymHB",prime_product:"VideoUnit_prime_product__9RUFV",vline__bg__gradient:"VideoUnit_vline__bg__gradient__yYZTz",vline__bg_link:"VideoUnit_vline__bg_link__lcLKB",vline__bg_content:"VideoUnit_vline__bg_content__SsLtC",vline__bg_logo:"VideoUnit_vline__bg_logo__CpYub",vline__bg_logo__logoContainer:"VideoUnit_vline__bg_logo__logoContainer__8QJ_G",vline__bg_title:"VideoUnit_vline__bg_title__7DM_Z",vline__bg_description:"VideoUnit_vline__bg_description__Tn8WZ",vline__bg_age:"VideoUnit_vline__bg_age__2_RsJ",vline__slider:"VideoUnit_vline__slider__dNNOp",bg:"VideoUnit_bg__yqrJQ",vline__slider__wrapper:"VideoUnit_vline__slider__wrapper__6uDhg",vline__slider__card:"VideoUnit_vline__slider__card__dIGe3",vline__slider__card__ten:"VideoUnit_vline__slider__card__ten__G_l_K",vline__slider__card__ten__new:"VideoUnit_vline__slider__card__ten__new__r_0hm",vline__slider__card__link:"VideoUnit_vline__slider__card__link__fqZqY",miniPresentsTopTen:"VideoUnit_miniPresentsTopTen__rcI8G",vline__slider__card__link__ten_new:"VideoUnit_vline__slider__card__link__ten_new__ag0Ib",vline__slider__card__content:"VideoUnit_vline__slider__card__content__Dny2A",vline__slider__card__link__ten_new__films:"VideoUnit_vline__slider__card__link__ten_new__films__VVWu9",vline__slider__card__link__ten:"VideoUnit_vline__slider__card__link__ten__k9_lQ",vline__slider__card__link__number:"VideoUnit_vline__slider__card__link__number__sh1P8",vline__slider__card__link__number__ten:"VideoUnit_vline__slider__card__link__number__ten__Gp3tI",vline__slider__card__play:"VideoUnit_vline__slider__card__play__A6QfM",withBg:"VideoUnit_withBg__Vq5y0",persons:"VideoUnit_persons__NfwvQ",vline__slider__card__content__active:"VideoUnit_vline__slider__card__content__active__96izz",vline__slider__card__content__age:"VideoUnit_vline__slider__card__content__age__J58WB",vline__slider__card__content__watched:"VideoUnit_vline__slider__card__content__watched__hB2kX",vline__slider__card__content__watched__title:"VideoUnit_vline__slider__card__content__watched__title__zJwBv",vline__slider__card__content__watched__bar:"VideoUnit_vline__slider__card__content__watched__bar__FZK80",vline__slider__card__content__watched__bar__progress:"VideoUnit_vline__slider__card__content__watched__bar__progress__0ZbRL",vline__slider__card__content__kind_rating:"VideoUnit_vline__slider__card__content__kind_rating__oD78s",vline__slider__card__content__rating:"VideoUnit_vline__slider__card__content__rating__7bMWC",vline__slider__card__content__rating_high:"VideoUnit_vline__slider__card__content__rating_high__huGQA",channels:"VideoUnit_channels__JiI_4",photo:"VideoUnit_photo__fTVdj",vline__slider__card__content__fade:"VideoUnit_vline__slider__card__content__fade__Yfvub",vline__slider__card__content__summary:"VideoUnit_vline__slider__card__content__summary__7ygvB",vline__slider__card__content__presents:"VideoUnit_vline__slider__card__content__presents__7szc0",vline__slider__card__tv__age:"VideoUnit_vline__slider__card__tv__age__vHW8W",vline__slider__card__title:"VideoUnit_vline__slider__card__title__MoZVS",vline__slider__card__title__child:"VideoUnit_vline__slider__card__title__child__NGTzk",vline__slider__card__subtitle:"VideoUnit_vline__slider__card__subtitle__1FLcP",vline__slider__card__subtitle__genre:"VideoUnit_vline__slider__card__subtitle__genre__miOOc",vline__slider__card__subtitle__genre__prime_video:"VideoUnit_vline__slider__card__subtitle__genre__prime_video__VLbNF","vline__slider__card__subtitle-link":"VideoUnit_vline__slider__card__subtitle-link__XYCEB","vline__slider__card__badge-wrapper":"VideoUnit_vline__slider__card__badge-wrapper__fhnUI",vline__slider__left
1:"VideoUnit_vline__slider__left__8DXut",vline__slider__card__badge:"VideoUnit_vline__slider__card__badge__Ccvz_",vline__all:"VideoUnit_vline__all__t7swX",vline__all__wrapper:"VideoUnit_vline__all__wrapper__hTL8F",vline__all__button:"VideoUnit_vline__all__button__zUyv5",vline__all__button__title:"VideoUnit_vline__all__button__title__14E2J",vline__all__button__icon:"VideoUnit_vline__all__button__icon__Z3KPO",vline__all__button__icon__down:"VideoUnit_vline__all__button__icon__down__mZy6Z",vline__selections:"VideoUnit_vline__selections__7fXtl",vline__slider__card__tv__line:"VideoUnit_vline__slider__card__tv__line__YTUiv",vline__slider__card__tv__broadcast:"VideoUnit_vline__slider__card__tv__broadcast__iRBhB",line:"VideoUnit_line__UxAS7",aline:"VideoUnit_aline__SJHPt",vline__slider__card__data:"VideoUnit_vline__slider__card__data__UaMew",logo:"VideoUnit_logo__06UOz",time:"VideoUnit_time__qhJPm",info:"VideoUnit_info___baX2",title:"VideoUnit_title__J_lZy",tv__line:"VideoUnit_tv__line__Niesx",vline__skeleton:"VideoUnit_vline__skeleton__XlrD0",wrapper__left:"VideoUnit_wrapper__left__P9Bdz",skeleton__left:"VideoUnit_skeleton__left___IbWV","skeleton__left-1":"VideoUnit_skeleton__left-1__5k3NQ","skeleton__left-2":"VideoUnit_skeleton__left-2__7rSo7","skeleton__left-3":"VideoUnit_skeleton__left-3__Ix_RY","skeleton__left-4":"VideoUnit_skeleton__left-4__nfLgg","skeleton__left-5":"VideoUnit_skeleton__left-5__q4vkf","skeleton__left-6":"VideoUnit_skeleton__left-6__HnYfH",wrapper__right:"VideoUnit_wrapper__right__C8NhK",skeleton__right:"VideoUnit_skeleton__right__SiEOR",skeleton__image:"VideoUnit_skeleton__image__4dN0D",skeleton__title:"VideoUnit_skeleton__title__GcTul",skeleton__subtitle:"VideoUnit_skeleton__subtitle__T6czr",skeleton__poster:"VideoUnit_skeleton__poster__BSheS",vline__slider__card__badge_double:"VideoUnit_vline__slider__card__badge_double__EV3zs",vline__slider__card__badge_single:"VideoUnit_vline__slider__card__badge_single__XGa73",estBadge:"VideoUnit_estBadge__1h4VN",vline__slider__card__badge_premium:"VideoUnit_vline__slider__card__badge_premium__7gNdi",vline__slider__card__content__bg:"VideoUnit_vline__slider__card__content__bg__7nZOz",vline__header__title__link__title:"VideoUnit_vline__header__title__link__title__Nuqlc",vline__header__title__link__sub_title:"VideoUnit_vline__header__title__link__sub_title__4stCh",vline__slider__card__tv:"VideoUnit_vline__slider__card__tv__15D_7",vline__slider__card__tv__images:"VideoUnit_vline__slider__card__tv__images__20x1r",redesign_exp:"VideoUnit_redesign_exp__mFWWJ",vline__bg__mobile:"VideoUnit_vline__bg__mobile__x0A20",vline__slider__card__selection:"VideoUnit_vline__slider__card__selection__pkCZe"}},2327:e=>{e.exports={"storybook-root":"Badge_storybook-root__BDw8n",badge:"Badge_badge__GrobN","badge-double":"Badge_badge-double__7cJIO","badge-double__left":"Badge_badge-double__left__Xm0CL","badge-double__right":"Badge_badge-double__right__I_ofx",premiumBadge:"Badge_premiumBadge__SSAC_"}},6695:e=>{e.exports={"storybook-root":"CardPayment_storybook-root__0nzVA",card:"CardPayment_card__2V1_3",small:"CardPayment_small__nkfKd","card-logo--centered":"CardPayment_card-logo--centered__5U2bl","card-number":"CardPayment_card-number__SZVOc","card-wrap":"CardPayment_card-wrap__XveWe","card-text":"CardPayment_card-text__eDb7B",dark:"CardPayment_dark__qYgHN",card__disabled:"CardPayment_card__disabled__xiTWJ",disabled:"CardPayment_disabled__QXAdQ","card-logo":"CardPayment_card-logo__MV5aK","payments-multiple":"CardPayment_payments-multiple__hYhMH","payments-multiple__text":"CardPayment_payments-multiple__text__hAOeV","payments-multiple__image":"CardPayment_payments-multiple__image__zWL5C","card-invalid":"CardPayment_card-invalid___HFSI","card-invalid__image":"CardPayment_card-invalid__image__676Wf","card-bank-logo":"CardPayment_card-bank-logo__GYTyg"}},67939:e=>{e.exports={"storybook-root":"Modal_storybook-root__BOKc4",overlay_modal:"Modal_overlay_modal__ok5VZ",modal:"Modal_modal__FhEy6",closeBtn:"Modal_closeBtn__YSrVD",arrowLeftBtn:"Modal_arrowLeftBtn__sd8hP"}},58117:e=>{e.exports={"storybook-root":"Switch_storybook-root__ImarL",switch:"Switch_switch__QBmJK",square:"Switch_square__zQwv6",slider:"Switch_slider__jB_ZC"}}}]);

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.