PageSourceSearch

https://donorsearch.org/_next/static/chunks/2466-56fe8940dfd5dee3.js

js donorsearch.org collected 2026-10-02 06:22:06 UTC 23,022 bytes, 2 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},s=(new e.Error).stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="7f1602d5-6803-49bb-aff1-25bf57b0cad8",e._sentryDebugIdIdentifier="sentry-dbid-7f1602d5-6803-49bb-aff1-25bf57b0cad8")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2466],{16234:(e,s,n)=>{"use strict";n.d(s,{A:()=>l});var t=n(37876);n(14232);var o=n(88886),a=n.n(o),i=n(74162);let l=(0,i.WQ)("authStore")((0,i.PA)(e=>{let{stubErrors:s}=e;return(0,t.jsxs)("div",{className:"".concat(a().Stub," container"),children:[(0,t.jsx)("div",{className:a().Blur}),(0,t.jsx)("div",{className:a().StubContent,children:s.notAuth?(0,t.jsxs)("p",{className:a().StubContentText,children:["Чтобы взять бонус, нужно быть ",(0,t.jsx)("a",{href:"/login?next=/bonus",children:"зарегистрированным на сайте"}),", указать в личном кабинете почту, телефон и иметь подтверждённую донацию за последние 180 дней"]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:a().StubContentText,children:"Чтобы взять бонус:"}),s.donations&&(0,t.jsxs)("p",{className:a().StubContentError,children:["- нужно иметь подтверждённую ",(0,t.jsx)("a",{href:"/profile/add_donation",children:"донацию"})," за последние 180 дней"]}),s.email&&(0,t.jsxs)("p",{className:a().StubContentError,children:["- нужно иметь ",(0,t.jsx)("a",{href:"/profile/settings/general/",children:"подтверждённую почту"})]}),s.phone&&(0,t.jsxs)("p",{className:a().StubContentError,children:["- нужно иметь ",(0,t.jsx)("a",{href:"/profile/settings/general/",children:"подтверждённый телефон"})]}),s.stopList&&(0,t.jsxs)("p",{className:a().StubContentError,children:["- нужно быть ",(0,t.jsx)("a",{href:"/profile?inactive_email=true",children:"подписанным на рассылку"})]})]})})]})}))},63084:e=>{e.exports={CustomContainer:"detailBonusPage_CustomContainer__duh_E",GreenButton:"detailBonusPage_GreenButton__lwz_k",RedButton:"detailBonusPage_RedButton__rnN4C",InverseRedButton:"detailBonusPage_InverseRedButton__Dz3gz",BlackButton:"detailBonusPage_BlackButton__hK612",StaticDiv:"detailBonusPage_StaticDiv__gNV93",StaticText:"detailBonusPage_StaticText__GKvoE",StaticBlock:"detailBonusPage_StaticBlock__1cIyN",StaticLink:"detailBonusPage_StaticLink__8WJSr",StaticList:"detailBonusPage_StaticList__V2WQs",StaticListItem:"detailBonusPage_StaticListItem__SiL89",H1:"detailBonusPage_H1__S4zAy",H3:"detailBonusPage_H3__PVRcK",H4:"detailBonusPage_H4__4nhpq",DetailBonusPageContent:"detailBonusPage_DetailBonusPageContent__2C2ou",DetailBonusPageContentBack:"detailBonusPage_DetailBonusPageContentBack__Nzpdo",DetailBonusPageContentBlock:"detailBonusPage_DetailBonusPageContentBlock__jwA3h",DetailBonusPageContentBlockLeft:"detailBonusPage_DetailBonusPageContentBlockLeft__ZhUr_",DetailBonusPageContentBlockLeftContainer:"detailBonusPage_DetailBonusPageContentBlockLeftContainer__x_Slc",DetailBonusPageContentBlockLeftMain:"detailBonusPage_DetailBonusPageContentBlockLeftMain__R_MRG",DetailBonusPageContentBlockLeftMainTop:"detailBonusPage_DetailBonusPageContentBlockLeftMainTop__CNS00",DetailBonusPageContentBlockLeftMainTopName:"detailBonusPage_DetailBonusPageContentBlockLeftMainTopName__48pr0",DetailBonusPageContentBlockLeftMainTopLogo:"detailBonusPage_DetailBonusPageContentBlockLeftMainTopLogo__ymwlw",DetailBonusPageContentBlockLeftMainMiddle:"detailBonusPage_DetailBonusPageContentBlockLeftMainMiddle__lpqeL",DetailBonusPageContentBlockLeftMainBot:"detailBonusPage_DetailBonusPageContentBlockLeftMainBot__qNycH",DetailBonusPageContentBlockLeftMainBotDate:"detailBonusPage_DetailBonusPageContentBlockLeftMainBotDate__TyBJa",DetailBonusPageContentBlockLeftMainBotPName:"detailBonusPage_DetailBonusPageContentBlockLeftMainBotPName__H0YhG",DetailBonusPageContentBlockLeftSecond:"detailBonusPage_DetailBonusPageContentBlockLeftSecond__pqMMM",DetailBonusPageContentBlockLeftDesc:"detailBonusPage_DetailBonusPageContentBlockLeftDesc__DoVtg",DetailBonusPageContentBlockLeftUrl:"detailBonusPage_DetailBonusPageContentBlockLeftUrl__pdxx0",slowlyRotate:"detailBonusPage_slowlyRotate__d2A4C"}},69223:e=>{e.exports={CustomContainer:"detailBonusStates_CustomContainer__XZZ_p",Green
1Button:"detailBonusStates_GreenButton__g87jX",RedButton:"detailBonusStates_RedButton__Zzwwg",InverseRedButton:"detailBonusStates_InverseRedButton__LWjlK",BlackButton:"detailBonusStates_BlackButton__0pAZX",StaticDiv:"detailBonusStates_StaticDiv__QMFFp",StaticText:"detailBonusStates_StaticText__H7nXt",StaticBlock:"detailBonusStates_StaticBlock__on4mZ",StaticLink:"detailBonusStates_StaticLink__iznw6",StaticList:"detailBonusStates_StaticList__H3ik7",StaticListItem:"detailBonusStates_StaticListItem__BGGsK",H1:"detailBonusStates_H1__rMJO4",H3:"detailBonusStates_H3__jp09h",H4:"detailBonusStates_H4__0sbi4",BonusesEndedState:"detailBonusStates_BonusesEndedState__GIiNI",BonusesEndedStateText:"detailBonusStates_BonusesEndedStateText__kcTur",BonusesEndedStateLink:"detailBonusStates_BonusesEndedStateLink__NsUKn",ShowStyle:"detailBonusStates_ShowStyle__BEMep",BonusesNeedAuthorizationShow:"detailBonusStates_BonusesNeedAuthorizationShow__rvzAU",BonusesNeedDonationShow:"detailBonusStates_BonusesNeedDonationShow__ttoJs",Hidden:"detailBonusStates_Hidden__eWLz7",BonusesNeedDonation:"detailBonusStates_BonusesNeedDonation__xg2pe",BonusesNeedDonationShowTitle:"detailBonusStates_BonusesNeedDonationShowTitle___qIHf",BonusesNeedDonationShowText:"detailBonusStates_BonusesNeedDonationShowText__q9O_y",BonusesNeedDonationShowLinks:"detailBonusStates_BonusesNeedDonationShowLinks__VG8OI",BonusesNeedDonationList:"detailBonusStates_BonusesNeedDonationList__Ejiib",BonusesNeedAuthorizationShowImg:"detailBonusStates_BonusesNeedAuthorizationShowImg__8qePE",BonusesNeedAuthorizationShowTitle:"detailBonusStates_BonusesNeedAuthorizationShowTitle__sYWn5",BonusesNeedAuthorizationShowText:"detailBonusStates_BonusesNeedAuthorizationShowText__ZwRvr",BonusesNeedAuthorizationShowLogin:"detailBonusStates_BonusesNeedAuthorizationShowLogin__wfv__",BonusesCanTake:"detailBonusStates_BonusesCanTake__IfANh",BonusesCanTakeImg:"detailBonusStates_BonusesCanTakeImg__AQysH",BonusesCanTakeTitle:"detailBonusStates_BonusesCanTakeTitle__5Dhx4",BonusesCanTakeText:"detailBonusStates_BonusesCanTakeText__kAX99",BonusesCanTakeBtn:"detailBonusStates_BonusesCanTakeBtn__d1yUJ",BonusesOpened:"detailBonusStates_BonusesOpened__c4jzn",BonusesOpenedTooltip:"detailBonusStates_BonusesOpenedTooltip__Tkyoo",BonusesOpenedPromo:"detailBonusStates_BonusesOpenedPromo__HswTy",BonusesOpenedPromoNoDone:"detailBonusStates_BonusesOpenedPromoNoDone__yHLa5",BonusesOpenedPromoDone:"detailBonusStates_BonusesOpenedPromoDone__tYnDZ",BonusesOpenedConfines:"detailBonusStates_BonusesOpenedConfines__XyOI0",BonusesOpenedConfinesOpen:"detailBonusStates_BonusesOpenedConfinesOpen__xd1Cv",BonusesOpenedLink:"detailBonusStates_BonusesOpenedLink__Tw7R_",BonusesOpenedLinkExpired:"detailBonusStates_BonusesOpenedLinkExpired__5uOrt",BonusesExpiredState:"detailBonusStates_BonusesExpiredState__BiKxM",BonusesExpiredStateText:"detailBonusStates_BonusesExpiredStateText__dCpzl",slowlyRotate:"detailBonusStates_slowlyRotate__i4xtL"}},88886:e=>{e.exports={Stub:"bonus-stub_Stub__cSimh",StubContent:"bonus-stub_StubContent__cvabD",StubContentTitle:"bonus-stub_StubContentTitle__BxvLs",StubContentText:"bonus-stub_StubContentText__kCf_B",StubContentError:"bonus-stub_StubContentError__Zaw25",Blur:"bonus-stub_Blur__JeU5E"}},92466:(e,s,n)=>{"use strict";n.r(s),n.d(s,{default:()=>M});var t=n(33612),o=n(37876),a=n(14232),i=n(89099),l=n(74162),d=n(18419),r=n(63084),u=n.n(r),c=n(58324),B=n(52585),h=n(5764),_=n(69223),x=n.n(_),p=n(48230),S=n.n(p);class m extends a.Component{render(){return(0,o.jsxs)("div",{className:x().BonusesEndedState,children:[(0,o.jsx)("div",{className:x().BonusesEndedStateText,children:(0,o.jsx)("span",{children:"По данному бонусу закончились промокоды, мы скоро добавим новые."})}),(0,o.jsx)(S(),{href:"/bonus",children:"Еще бонусы"})]})}}var g=n(49130);class j extends a.Component{componentWillUnmount(){clearTimeout(this.copiedTimeout)}render(){let{info:e}=this.props,{copied:s}=this.state;return e?(0,o.jsxs)("div",{className:x().BonusesOpened,children:[(0,o.jsxs)("div",{className:x().BonusesOpenedTooltip,children:[(0,o.jsx)("span",{children:"Ваш промокод"}),(0,o.jsx)(g.A,{className:x().Popups,inverted:!0,basic:!0,style:{backgroundColor:"#333333"},position:"left center",trigger:(0,o.jsx)("img",{src:"/static/images/icons/bonusTooltip.svg",alt:""}),children:"Бонус можно использовать, пока не истечёт его срок действия. Затем он пропадет."})]}),(0,o.jsxs)("div",{className:x().BonusesOpenedPromo,children:[!s&&(0,o.jsxs)("div",{className:x().BonusesOpenedPromoNoDone,children:[(0,o.jsx)("input",{type:"text",readOnly:!0,ref:e=>this.input=e,value:null==e?void 0:e.promocode}),(0,o.jsx)("div",{children:(0,o.jsx)("img",{onClick:this.copyPromo,src:"/static/images/icons/copyBonusPromo.svg",alt:""})})]}),s&&(0,o.jsxs)("div",{className:x().BonusesOpenedPromoDone,children:[(0,o.jsx)("span",{children:"Промокод скопирован"}),(0,o.jsx)("img",{src:"/static/images/icons/copyDoneBonusPromo.svg",alt:""})]})]}),(0,o.jsx)("div",{className:x().BonusesOpenedConfines,children:(0,o.jsx)("span",{children:this.getConfines(e.bonusConfines)})}),(0,o.jsx)("div",{className:"".concat(x().BonusesOpenedLink," ").concat(e.isExpired&&x().BonusesOpenedLinkExpired),onClick:()=>(0,B.OS)(B.xf.ToTakenBonusPartner),children:(0,o.jsx)("a",{target:"_blank",href:null==e?void 0:e.partnerUrl,children:"Перейти на сайт партнера"})})]}):(0,o.jsx)(h.fO,{toggled:!0})}constructor(e){super(e),this.getConfines=e=>(null==e?void 0:e.length)>64?this.state.openedConfines?e:(0,o.jsx)(f,{confines:"".concat(e.slice(0,64),"... "),openedConfines:this.openConfines}):e,this.openConfines=()=>{this.setState({openedConfines:!0})},this.copyPromo=()=>{(0,B.OS)(B.xf.CopyButton),this.input.select(),document.execCommand("copy"),this.setState({copied:!0}),this.copiedTimeout=setTimeout(()=>{this.setState({copied:!1})},2e3)},this.state={openedConfines:!1,copied:!1}}}let f=e=>{let{openedConfines:s,confines:n}=e;return(0,o.jsxs)("span",{children:[n,(0,o.jsx)("span",{onClick:s,className:x().BonusesOpenedConfinesOpen,children:"все условия"})]})};class C extends a.Component{render(){let{getPromo:e}=this.props;return(0,o.jsxs)("div",{className:x().BonusesCanTake,children:[(0,o.jsx)("div",{className:x().BonusesCanTakeImg,children:(0,o.jsx)("img",{src:"/static/images/icons/bonusesCanTake.svg",alt:""})}),(0,o.jsx)("div",{className:x().BonusesCanTakeTitle,children:(0,o.jsx)("span",{children:"Ваш промокод"})}),(0,o.jsx)("div",{className:x().BonusesCanTakeText,children:(0,o.jsx)("span",{children:"Бонус можно использовать, пока не истечёт его срок действия. Затем он пропадет."})}),(0,o.jsx)("button",{onClick:e,className:x().BonusesCanTakeBtn,children:"Получить промокод"})]})}}class N extends a.Component{render(){return(0,o.jsx)("div",{className:x().Hidden,children:(0,o.jsx)("span",{children:"Промокод скрыт"})})}}class k extends a.Component{render(){return(0,o.jsxs)("div",{className:x().BonusesNeedAuthorization,children:[(0,o.jsx)(N,{}),(0,o.jsxs)("div",{className:x().BonusesNeedAuthorizationShow,children:[(0,o.jsx)("div",{className:x().BonusesNeedAuthorizationShowImg,children:(0,o.jsx)("img",{src:"/static/images/icons/bonusNeedAuth.svg",alt:""})}),(0,o.jsx)("div",{className:x().BonusesNeedAuthorizationShowTitle,children:(0,o.jsx)("span",{children:"Авторизуйтесь"})}),(0,o.jsx)("div",{className:x().BonusesNeedAuthorizationShowText,children:(0,o.jsx)("span",{children:"Чтобы взять бонус нужно войти в профиль и иметь подтверждённую донацию за последние 180 дней"})}),(0,o.jsx)("div",{className:x().BonusesNeedAuthorizationShowLogin,onClick:()=>(0,B.OS)(B.xf.ToLoginFromBonus),children:(0,o.jsx)(S(),{href:(0,c.XF)(),children:"Вход на DonorSearch"})})]})]})}}let D=[249,298];class v extends a.Component{render(){return(0,o.jsxs)("div",{className:x().BonusesNeedDonation,children:[(0,o.jsx)(N,{}),(0,o.jsxs)("div",{className:x().BonusesNeedDonationShow,children:[(0,o.jsx)("div",{className:x().BonusesNeedDonationShowTitle,children:(0,o.jsx)("span",{children:D.includes(this.props.id)?"Не выполнены условия":"Необходима донация"})}),(0,o.jsx)("div",{className:x().BonusesNeedDonationShowText,children:this.getText()}),(0,o.jsxs)("div",{className:x().BonusesNeedDonationShowLinks,children:[(0,o.jsx)(S(),{href:"/how",onClick:()=>(0,B.OS)(B.xf.ToHowFromBonus),children:"Как стать донором?"}),(0,o.jsx)(S(),{href:"/bloodstations",onClick:()=>(0,B.OS)(B.xf.ToBloodStationsFromBonus),children:"Где сдать кровь?"}),(0,o.jsx)(S(),{href:"/profile/add_donation",onClick:()=>(0,B.OS)(B.xf.ToAddDonationFromBonus),children:"Добавить донацию"})]})]})]})}constructor(e){super(e),this.getText=()=>D.includes(this.props.id)?(0,o.jsxs)("ul",{className:x().BonusesNeedDonationList,children:[(0,o.jsx)("li",{children:"Минимум 2 подтверждённых донаций"}),(0,o.jsx)("li",{children:"Минимум 1 подтверждённая донация в текущем году"}),(0,o.jsx)("li",{children:"Ранее не была получена Ñ
1„утболка в подарок"}),(0,o.jsx)("li",{children:"Есть подтверждённая почта"}),(0,o.jsx)("li",{children:"Почта не отписана от рассылки"})]}):230===this.props.id?(0,o.jsx)("span",{children:"Чтобы взять бонус нужно иметь минимум 2 подтверждённые донацию за последние 180 дней"}):(0,o.jsx)("span",{children:"Чтобы взять бонус нужно иметь подтверждённую донацию за последние 180 дней"})}}class P extends a.Component{render(){return(0,o.jsxs)("div",{className:x().BonusesNeedDonation,children:[(0,o.jsx)(N,{}),(0,o.jsxs)("div",{className:x().BonusesNeedDonationShow,children:[(0,o.jsx)("div",{className:x().BonusesNeedDonationShowTitle,children:(0,o.jsx)("span",{children:"Не выполнены условия"})}),(0,o.jsx)("div",{className:x().BonusesNeedDonationShowText,children:(0,o.jsxs)("span",{children:["Чтобы взять бонус нужно иметь ",(0,o.jsx)("a",{href:"/profile/settings/general/",children:"подтверждённый телефон"})]})}),(0,o.jsxs)("div",{className:x().BonusesNeedDonationShowLinks,children:[(0,o.jsx)(S(),{href:"/how",onClick:()=>(0,B.OS)(B.xf.ToHowFromBonus),children:"Как стать донором?"}),(0,o.jsx)(S(),{href:"/bloodstations",onClick:()=>(0,B.OS)(B.xf.ToBloodStationsFromBonus),children:"Где сдать кровь?"}),(0,o.jsx)(S(),{href:"/profile/add_donation",onClick:()=>(0,B.OS)(B.xf.ToAddDonationFromBonus),children:"Добавить донацию"})]})]})]})}}class T extends a.Component{render(){return(0,o.jsxs)("div",{className:x().BonusesNeedDonation,children:[(0,o.jsx)(N,{}),(0,o.jsxs)("div",{className:x().BonusesNeedDonationShow,children:[(0,o.jsx)("div",{className:x().BonusesNeedDonationShowTitle,children:(0,o.jsx)("span",{children:"Не выполнены условия"})}),(0,o.jsx)("div",{className:x().BonusesNeedDonationShowText,children:(0,o.jsxs)("span",{children:["Чтобы взять бонус нужно иметь ",(0,o.jsx)("a",{href:"/profile/settings/general/",children:"подтверждённую почту"})]})}),(0,o.jsxs)("div",{className:x().BonusesNeedDonationShowLinks,children:[(0,o.jsx)(S(),{href:"/how",onClick:()=>(0,B.OS)(B.xf.ToHowFromBonus),children:"Как стать донором?"}),(0,o.jsx)(S(),{href:"/bloodstations",onClick:()=>(0,B.OS)(B.xf.ToBloodStationsFromBonus),children:"Где сдать кровь?"}),(0,o.jsx)(S(),{href:"/profile/add_donation",onClick:()=>(0,B.OS)(B.xf.ToAddDonationFromBonus),children:"Добавить донацию"})]})]})]})}}class b extends a.Component{render(){return(0,o.jsxs)("div",{className:x().BonusesNeedDonation,children:[(0,o.jsx)(N,{}),(0,o.jsxs)("div",{className:x().BonusesNeedDonationShow,children:[(0,o.jsx)("div",{className:x().BonusesNeedDonationShowTitle,children:(0,o.jsx)("span",{children:"Не выполнены условия"})}),(0,o.jsx)("div",{className:x().BonusesNeedDonationShowText,children:(0,o.jsxs)("span",{children:["Чтобы взять бонус нужно быть ",(0,o.jsx)("a",{href:"/profile?inactive_email=true",children:"подписанным на рассылку"})]})}),(0,o.jsxs)("div",{className:x().BonusesNeedDonationShowLinks,children:[(0,o.jsx)(S(),{href:"/how",onClick:()=>(0,B.OS)(B.xf.ToHowFromBonus),children:"Как стать донором?"}),(0,o.jsx)(S(),{href:"/bloodstations",onClick:()=>(0,B.OS)(B.xf.ToBloodStationsFromBonus),children:"Где сдать кровь?"}),(0,o.jsx)(S(),{href:"/profile/add_donation",onClick:()=>(0,B.OS)(B.xf.ToAddDonationFromBonus),children:"Добавить донацию"})]})]})]})}}var L=n(98106),w=n(97834),y=n(16234);class O extends a.Component{render(){return(0,o.jsx)("div",{className:x().BonusesExpiredState,children:(0,o.jsx)("div",{className:x().BonusesExpiredStateText,children:(0,o.jsx)("span",{children:"Данный бонус уже не активен. Закончился срок действия акции или количество промокодов."})})})}}var A=n(30593);class E extends a.Component{componentDidMount(){this.props.uiStore.setActiveTab(1),(null===this||void 0===this?void 0:this.id)&&this.updateDetail()}render(){let{user:e}=this.props.authStore,{bonus:s,isShow:n,stubErrors:t}=this.state,a=this.getCities();return(0,o.jsxs)("div",{className:u().DetailBonusPage,children:[e&&(0,o.jsx)(A.q,{}),(0,o.jsx)("div",{className:"container",children:(0,o.jsxs)("div",{className:u().DetailBonusPageContent,children:[!n&&(0,o.jsx)(y.A,{stubErrors:t}),(0,o.jsxs)("span",{onClick:this.back,className:u().DetailBonusPageContentBack,children:[(0,o.jsx)("img",{src:"/static/images/arrows/backProfile.svg",alt:""}),"Назад"]}),(0,o.jsx)("div",{className:u().DetailBonusPageContentBlock,children:(0,o.jsxs)("div",{className:u().DetailBonusPageContentBlockLeft,children:[(0,o.jsxs)("div",{className:u().DetailBonusPageContentBlockLeftContainer,children:[(0,o.jsxs)("div",{className:u().DetailBonusPageContentBlockLeftMain,style:{backgroundImage:"radial-gradient(circle, rgba(193,196,202,0) 0%, rgba(95,97,119,1) 100%), url(".concat(s.bonusImageFull,")"),filter:"".concat(s.isExpired?"grayscale(100%)":"grayscale(0%)")},children:[(0,o.jsxs)("div",{className:u().DetailBonusPageContentBlockLeftMainTop,children:[(0,o.jsx)("div",{className:u().DetailBonusPageContentBlockLeftMainTopName,children:s.bonusName}),(0,o.jsx)("div",{className:u().DetailBonusPageContentBlockLeftMainTopLogo,children:(0,o.jsx)("div",{style:{backgroundImage:"url(".concat(s.partnerImage,")")}})})]}),a&&(0,o.jsxs)("div",{className:u().DetailBonusPageContentBlockLeftMainMiddle,children:["Действует в ",a]}),(0,o.jsxs)("div",{className:u().DetailBonusPageContentBlockLeftMainBot,children:[(0,o.jsxs)("div",{className:u().DetailBonusPageContentBlockLeftMainBotDate,children:[(0,o.jsxs)("span",{children:[s.dateValidityBeautify," "]}),(0,c.nb)(s.dateValidity)&&(0,o.jsxs)("span",{children:["(",(0,c.le)(s.dateValidity),")"]})]}),(0,o.jsx)("div",{className:u().DetailBonusPageContentBlockLeftMainBotPName,children:s.partnerName})]})]}),(0,o.jsxs)("div",{className:u().DetailBonusPageContentBlockLeftSecond,children:[this.getBonusActivityByState(this.state.bonus),this.state.bonus.isTaken&&(0,o.jsx)(S(),{href:"./".concat(this.id,"/feedback"),children:this.state.bonus.hasFeedback?"Мой отзыв":"Оставить отзыв"})]})]}),(0,o.jsx)("div",{className:u().DetailBonusPageContentBlockLeftDesc,dangerouslySetInnerHTML:{__html:"".concat(s.bonusDescription)}}),(0,o.jsx)("div",{className:u().DetailBonusPageContentBlockLeftUrl,children:(0,o.jsxs)("div",{onClick:()=>(0,B.OS)(B.xf.ToBonusPartner),children:[(0,o.jsx)("img",{src:"/static/images/icons/bonusPartnerLink.svg",alt:""}),(0,o.jsx)("a",{target:"_blank",href:s.partnerUrl,children:"Сайт партнера"})]})})]})})]})})]})}constructor(e){super(e),this.updateDetail=()=>{this.props.bonusStore.loadDetailBonus(this.id).then(e=>{let{user:s}=this.props.authStore,n={notAuth:1===e.state,donations:2===e.state,phone:!(null==s?void 0:s.is_phone_verified),email:!(null==s?void 0:s.is_email_verified),stopList:null==s?void 0:s.email_in_sendsay_stoplist};this.setState({bonus:new d.D(e),stubErrors:n,isShow:!!e.is_taken||Object.values(n).every(e=>!e)})}).catch(async e=>{var s,n;(null==(s=e.response)?void 0:s.status)===403?await (null==(n=(0,c.aC)(e.response.data.errors))?void 0:n.detail):(0,L.S)("/profile/bonus/")})},this.getPromo=()=>{this.id&&((0,B.OS)(B.xf.GetPromocode),this.props.bonusStore.takeBonusByIdToUser({bonus_id:this.id}).then(e=>{this.updateDetail()}).catch(e=>{this.setState({bonus:new d.D({...this.state.bonus.rawBonusCard,state:5})})}))},this.back=()=>{{let e=window.sessionStorage.getItem("prevPath");"null"!==e&&e?(0,L.S)(e):(0,L.S)("/bonus/")}},this.getBonusActivityByState=e=>{var s,n;if(e.isExpired&&!e.isTaken)return(0,o.jsx)(O,{});if((null==(s=e.stateName)?void 0:s.length)&&!e.isAvailable&&(249===e.id||298===e.id||230===e.id))return(0,o.jsx)(v,{id:e.id});if(null==(n=e.stateName)||!n.length)return(0,o.jsx)(h.fO,{toggled:!0,onAll:!0,onEmptyPage:!0});switch(e.stateName){case"UnAuthorized":return(0,o.jsx)(k,{});case"NoDonations":return(0,o.jsx)(v,{});case"CanTake":return(0,o.jsx)(C,{getPromo:this.getPromo});case"AlreadyTaken":return(0,o.jsx)(j,{info:e});case"BonusesEnded":default:return(0,o.jsx)(m,{});case"UnconfirmedPhone":return(0,o.jsx)(P,{});case"UnconfirmedEmail":return(0,o.jsx)(T,{});case"EmailStopList":return(0,o.jsx)(b,{})}},this.getCities=()=>{let e=this.state.bonus.cities;return null==e?void 0:e.map(e=>(0,w.bP)(e.title)).join(", ")},this.state={bonus:{},stubErrors:{notAuth:!1,phone:!1,email:!1,stopList:!1,donations:!1}},this.id=this.props.router.query.id}}E=(0,t.Cg)([i.withRouter,(0,l.WQ)("bonusStore"),(0,l.WQ)("uiStore"),(0,l.WQ)("authStore"),l.PA],E);let M=(0,i.withRouter)(E)}}]);
2//# sourceMappingURL=2466-56fe8940dfd5dee3.js.map

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.