1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="3f4cffa5-8b28-441c-8bb8-fcd6c45cf628",e._sentryDebugIdIdentifier="sentry-dbid-3f4cffa5-8b28-441c-8bb8-fcd6c45cf628")}catch(e){}try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="3f4cffa5-8b28-441c-8bb8-fcd6c45cf628",e._sentryDebugIdIdentifier="sentry-dbid-3f4cffa5-8b28-441c-8bb8-fcd6c45cf628")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2601],{61568:function(e,t,r){"use strict";r.d(t,{Fh:function(){return j},iB:function(){return b},vv:function(){return g}});var n,a=r(59499),o=r(94184),s=r.n(o),i=r(11752),l=r.n(i),u=r(25675),c=r.n(u),d=r(67294),m=r(42467),_=r(89637),p=r(60312),y={small:{width:42,he
1ight:60},medium:{width:85,height:120},large:{width:113,height:160},extraLarge:{width:190,height:270},smallAudio:{width:42,height:42},betweenSmallAndMediumAudio:{width:60,height:60},mediumAudio:{width:85,height:85},largeAudio:{width:113,height:113},extraLargeAudio:{width:190,height:190},extraSmall:{width:24,height:36}},f=r(37371),h=r.n(f),x=r(85893),b=((n={}).small="small",n.medium="medium",n.large="large",n.extraLarge="extraLarge",n.smallAudio="smallAudio",n.betweenSmallAndMediumAudio="betweenSmallAndMediumAudio",n.mediumAudio="mediumAudio",n.largeAudio="largeAudio",n.extraLargeAudio="extraLargeAudio",n.extraSmall="extraSmall",n),v=function(e){if(!e)return null;var t=e.trim();return t?/^https?:\/\//i.test(t)?t.replace(/\/$/,""):"https://".concat(t.replace(/^\/+/,"")):null},T=function(){var e=(l()()||{}).publicRuntimeConfig;return v(null==e?void 0:e.host)||(window.location.origin?window.location.origin:"https://selfpub.dev")},g=function(e){if(!e)return e;if(/^(https?:)?\/\//i.test(e)||e.startsWith("blob:")||e.startsWith("data:"))return e.startsWith("//")?"https:".concat(e):e;var t=T();try{return new URL(e,t).toString()}catch(t){return e}},j=function(e){var t=e.pictureFile,r=void 0===t?null:t,n=e.pathToPicture,o=e.bookName,i=e.className,l=e.classNameImg,u=e.size,f=void 0===u?"medium":u,b=e.ageRating,v=e.censored,T=e.onClick,j=e.pathToFullSize,k=e.isLink,N=void 0===k||k,R=e.isLoading,I=e.forceShowIllustration,P=void 0!==I&&I,S=e.dataTestId,F=o.slice(0,1).toLocaleUpperCase(),w=y[f].width/3.6,E=y[f].height/11.25,C=y[f].width/7.5,B=(0,d.useMemo)(function(){return!!v&&!!P||!!(v&&!n)},[v,n,P]),L=(0,d.useMemo)(function(){return(!!b||!!v)&&!!P||!!((b||v)&&!n)},[v,n,P,b]);return(0,x.jsxs)("div",{className:s()("shadowLevel0",h().coverBlock,i,h()[f]),onClick:T,"data-testid":S,children:[void 0!==R&&R&&(0,x.jsx)("div",{className:h().loaderContainer,children:(0,x.jsx)(p.D,{})}),(0,x.jsxs)("div",{className:s()(h().illustrationWrapper,(0,a.Z)({},h().censored,b&&!v)),children:[B&&(0,x.jsx)(m.Q,{className:h().illustrationIcon,imageType:"censored",width:w,height:E}),L&&(0,x.jsx)(m.Q,{className:h().illustrationIcon,imageType:"ageRating",width:C,height:C})]}),function(){if(r){var e=URL.createObjectURL(r);return(0,x.jsx)(c(),{src:e,alt:o,width:y[f].width,height:y[f].height})}return n?(0,x.jsx)("a",{href:j||n,target:"_blank",rel:"noreferrer",className:s()(h().cover,h().coverImg,l,(0,a.Z)({},h().notLink,!N)),children:(0,x.jsx)(c(),{src:g(n),alt:o,width:y[f].width,height:y[f].height})}):(0,x.jsx)("div",{className:s()(h().cover,l,(0,a.Z)({},h()[f],f)),children:(0,x.jsx)(_.H1,{className:h().firstLetter,children:F})})}()]})}},33960:function(e,t,r){"use strict";r.d(t,{o:function(){return _}});var n=r(59499),a=r(94184),o=r.n(a),s=r(35407),i=r(42467),l=r(89637),u=r(61568),c=r(81029),d=r.n(c),m=r(85893),_=function(e){var t,r=e.className,a=e.illustrationName,c=e.illustrationHeight,_=e.illustrationWidth,p=e.illustrationFormat,y=e.isBookCover,f=e.bookCoverSize,h=void 0===f?u.iB.small:f,x=e.bookCoverPathToPicture,b=e.headTitle,v=e.title,T=e.subTitle,g=e.buttonText,j=e.buttonHandler,k=e.buttonHref,N=e.dataTestId;return(0,m.jsxs)("div",{className:o()(d().container,r),"data-testid":N,children:[a&&(0,m.jsx)(i.Q,{imageType:a,height:c,width:_,format:p}),y&&(0,m.jsx)(u.Fh,{bookName:null!=b?b:"",size:h,pathToPicture:x}),b&&(0,m.jsx)(l.H2,{className:o()(d().headTitle,(t={},(0,n.Z)(t,d().headTitleWithButton,g),(0,n.Z)(t,d().headTitleWithBookCover,y),t)),children:(0,m.jsx)(l.T,{children:b})}),(0,m.jsx)(l.K0,{className:o()(d().title,(0,n.Z)({},d().titleWithButton,g)),dataTestId:"no-content-stub-text",children:v}),T&&(0,m.jsx)(l.K0,{className:d().subTitle,children:(0,m.jsx)(l.T,{children:T})}),g&&(0,m.jsx)(s.z,{onClick:j,href:k,size:"large",dataTestId:"no-content-stub-button",children:(0,m.jsx)(l.T,{children:g})})]})}},66482:function(e,t,r){"use strict";r.d(t,{W:function(){return a}});var n,a=((n={}).completed="COMPLETED",n.pending="PENDING",n.failed="FAILED",n.new="NEW",n.rejected="REJECTED",n.approved="APPROVED",n.paid="PAID",n)},8671:function(e,t,r){"use strict";r.d(t,{C:function(){return s},i:function(){return i}});var n=r(67294),a=function(e,t,r){console[e]("[UXS] ".concat(t),null!=r?r:"")},o=function(){return window.UXS},s=function(e){return(0,n.useEffect)(function(){var t=o();if(!(null!=t&&t.addProperties)){a("warn","UXS.addProperties недоÑÑÑпен (ÑкÑÐ¸Ð¿Ñ Ð½Ðµ загÑÑжен/заблокиÑован).",{userId:e});return}try{t.addProperties({User_id:e})}catch(e){a("error","ÐÑибка пÑи вÑзове UXS.addProperties.",e)}},[e]),{sendEvent:(0,n.useCallback)(function(t){if(e){var r=o();if(!(null!=r&&r.sendEvent)){a("warn","UXS.sendEvent недоÑÑÑпен (ÑкÑÐ¸Ð¿Ñ Ð½Ðµ загÑÑжен/заблокиÑован).",{type:t,userId:e});return}try{var n=r.sendEvent(t);n&&"function"==typeof n.catch&&n.catch(function(e){a("error",'UXS.sendEvent("'.concat(t,'") оÑклонилÑÑ.'),e)})}catch(e){a("error",'ÐÑибка пÑи вÑзове UXS.sendEvent("'.concat(t,'").'),e)}}},[e])}},i=function(e){if(window.UXS){try{e()}catch(e){a("error","ÐÑибка внÑÑÑи onUXSReady callback (UXS Ñже бÑл гоÑов).",e)}return}document.addEventListener("uxsReady",function(){try{e()}catch(e){a("error","ÐÑибка внÑÑÑи onUXSReady callback (поÑле ÑобÑÑÐ¸Ñ uxsReady).",e)}},{once:!0})}},7519:function(e,t,r){"use strict";r.d(t,{DB:function(){return k},Kl:function(){return T},PH:function(){return y},UJ:function(){return _},bK:function(){return g},c_:function(){return h},mp:function(){return v},nd:function(){return j},qJ:function(){return p},x0:function(){return x},xS:function(){return f}});var n=r(3490),a=r(50184),o=r(38739),s=r(89637),i=r(17919),l=r(37756),u=r.n(l),c=r(85893),d=(0,c.jsx)("span",{children:(0,c.jsx)(s.T,{children:"ÐаннÑе пÑоÑли пÑовеÑкÑ"})}),m=(0,c.jsxs)("span",{children:[(0,c.jsx)(s.T,{children:"ÐÑ Ð²Ñе еÑе пÑовеÑÑем ваÑи даннÑе. ÐÑли Ñ Ð²Ð°Ñ Ð²Ð¾Ð·Ð½Ð¸ÐºÐ»Ð¸ вопÑоÑÑ, напиÑиÑе на"})," ",(0,c.jsx)(a.a,{href:"mailto:[email protected]",dataTestId:"paymentTypeResidents__supportsLink",children:"[email protected]"})]}),_=(0,c.jsx)("span",{children:(0,c.jsx)(s.T,{children:"ÐÐРпÑоÑел пÑовеÑкÑ"})}),p=(0,c.jsxs)("span",{children:[(0,c.jsx)(s.T,{children:"ÐÑли Ñ Ð²Ð°Ñ Ð¿Ð¾Ð¼ÐµÐ½ÑлиÑÑ Ð´Ð¾Ðº
1ÑменÑÑ, напиÑиÑе на"})," ",(0,c.jsx)(a.a,{href:"mailto:[email protected]",dataTestId:"paymentTypeResidents__supportsLink",children:"[email protected]"})]}),y=[{value:i.x.selfEmployed,label:"Ð´Ð»Ñ ÑамозанÑÑÑÑ
"},{value:i.x.individualEntrepreneur,label:"Ð´Ð»Ñ Ð¸Ð½Ð´Ð¸Ð²Ð¸Ð´ÑалÑнÑÑ
пÑедпÑинимаÑелей"},{value:i.x.naturalPerson,label:"Ð´Ð»Ñ ÑизиÑеÑкиÑ
лиÑ"}],f=[{value:i.j.claimForm,label:"по ÑеквизиÑам"}],h=[{status:"naturalPersonIsAvailable",alertType:o.o.success,textInformation:d},{status:"naturalPersonIsPending",alertType:o.o.info,textInformation:m}],x=[{status:"naturalPersonIsAvailable",isDisabled:!1,buttonText:"ÐÑвеÑÑи ÑÑедÑÑва",buttonHref:n.x.statistics.verification},{status:"naturalPersonIsPending",isDisabled:!0,buttonText:"ÐÑоÑмиÑÑ Ð²ÑплаÑÑ",buttonHref:void 0},{status:"unknownStatus",isDisabled:!1,buttonText:"ÐÑоÑмиÑÑ Ð²ÑплаÑÑ",buttonHref:n.x.statistics.naturalPerson}],b={unknownUser:{text:(0,c.jsx)("span",{children:"ЧÑÐ¾Ð±Ñ Ð²Ñ Ð¼Ð¾Ð³Ð»Ð¸ вÑводиÑÑ ÑÑедÑÑва и каждÑй Ñаз не ÑоÑмиÑоваÑÑ ÑамоÑÑоÑÑелÑно Ñеки, вам необÑ
одимо Ñазово вÑдаÑÑ ÑазÑеÑение ЮMoney."})},AwaitingConfirmation:{text:(0,c.jsx)("span",{children:"ЧÑÐ¾Ð±Ñ Ð²Ñ Ð¼Ð¾Ð³Ð»Ð¸ вÑводиÑÑ ÑÑедÑÑва и каждÑй Ñаз не ÑоÑмиÑоваÑÑ ÑамоÑÑоÑÑелÑно Ñеки, вам необÑ
одимо Ñазово вÑдаÑÑ ÑазÑеÑение ЮMoney:"}),detail:(0,c.jsxs)("ul",{children:[(0,c.jsx)("li",{className:u().alertYooTable,children:"ÐÑоÑмиÑе ÑазÑÑение ЮMoney в ÑоÑме Юkassa;"}),(0,c.jsxs)("li",{children:["РкабинеÑе налогоплаÑелÑÑика ÑеÑвиÑа \xabÐой налог\xbb пеÑейдиÑе в \xabÐаÑÑÑойки\xbb, далее â в \xabÐаÑÑнеÑÑ\xbb. ÐаÑем вÑбеÑиÑе запÑÐ¾Ñ Ð¾Ñ Ð®Money и нажмиÑе \xabÐодÑвеÑдиÑÑ\xbb."," "]})]})}},v={null:" ЧÑо-Ñо поÑло не Ñак",AwaitingConfirmation:"ÐÐ
1»Ñ подÑвеÑÐ¶Ð´ÐµÐ½Ð¸Ñ Ð·Ð°Ð¿Ð¾Ð»Ð½Ð¸Ñе ÑоÑÐ¼Ñ Ð¿Ð¾Ð²ÑоÑно",notResponding:"ÐÑоизоÑла оÑибка. ÐопÑобÑйÑе еÑе Ñаз",unregistered:(0,c.jsxs)("span",{children:["ÐÑоизоÑла оÑибка. ÐопÑобÑйÑе еÑе Ñаз или ÑвÑжиÑеÑÑ Ñ Ð½Ð°Ð¼Ð¸"," ",(0,c.jsx)(a.a,{href:"mailto:[email protected]",dataTestId:"paymentTypeResidents__supportLink",children:"[email protected]"})," "]}),internalError:(0,c.jsxs)("span",{children:["ÐÑоизоÑла оÑибка. ÐопÑобÑйÑе еÑе Ñаз или ÑвÑжиÑеÑÑ Ñ Ð½Ð°Ð¼Ð¸"," ",(0,c.jsx)(a.a,{href:"mailto:[email protected]",dataTestId:"paymentTypeResidents__supportLink",children:"[email protected]"})," "]})},T={null:{text:b.unknownUser.text},AwaitingConfirmation:{text:b.AwaitingConfirmation.text,detail:b.AwaitingConfirmation.detail},notResponding:{text:b.AwaitingConfirmation.text,detail:b.AwaitingConfirmation.detail},internalError:{text:b.AwaitingConfirmation.text,detail:b.AwaitingConfirmation.detail},unregistered:{text:b.AwaitingConfirmation.text,detail:b.AwaitingConfirmation.detail}},g=1149,j=1e3,k=5e3},17919:function(e,t,r){"use strict";r.d(t,{j:function(){return o},x:function(){return s}});var n,a,o=((n={}).paymentSystem="paymentSystem",n.claimForm="claimForm",n),s=((a={}).selfEmployed="selfEmployed",a.individualEntrepreneur="individualEntrepreneur",a.naturalPerson="naturalPerson",a)},79079:function(e,t,r){"use strict";r.d(t,{$F:function(){return m},PL:function(){return _},S7:function(){return p},Tl:function(){return y},Ut:function(){return h},eJ:function(){return l},iq:function(){return f},k5:function(){return u},th:function(){return d},tq:function(){return x},ui:function(){return c}});var n,a=r(59499),o=r(70159),s=r(81180),i=r(44851),l=(0,r(94599).h)(new Date),u=(0,s.Z)((0,o.Z)(new Date),"yyyy-MM-dd"),c=function(e){return[{label:"ÐÑоÑмоÑÑÑ",value:i.Sv.views},{label:"ÐонвеÑÑиÑ",value:i.Sv.conversion},{label:"ÐÑодажи",value:i.Sv.sales},{label:"ÐÑзÑвÑ",value:i.Sv.recenses},{label:"ÐзбÑанное",value:i.Sv.likes},{label:"РоÑлÑи",value:i.Sv.royalty},{label:e===i.gI.audio?"ÐлÑбина пÑоÑлÑÑиваниÑ":"ÐлÑбина пÑоÑÑениÑ",value:i.Sv.readingDepth}]},d=[{label:"ТекÑÑ Ð¸ аÑдио",value:i.gI.all},{label:"ТекÑÑ",value:i.gI.book},{label:"ÐÑдио",value:i.gI.audio}],m="/api/statistics/reader-activity-xls/",_="/api/statistics/royalty-xls/",p={header:"ÐÑплаÑÑ",royaltyDraft:{title:"РоÑлÑи книги в пÑоÑеÑÑе",info:"ÐдеÑÑ Ð±ÑдÑÑ Ð¾ÑобÑажаÑÑÑÑ Ð²Ð°Ñи ÑоÑлÑи за ÑекÑÑий оÑÑеÑнÑй пеÑиод"},royaltyPayoutStatus:{title:"СÑаÑÑÑ Ð²Ñвода ÑоÑлÑи",info:"ÐдеÑÑ Ð±ÑÐ´ÐµÑ Ð¾ÑобÑажаÑÑÑÑ ÑÑаÑÑÑ Ð²Ñвода ÑоÑлÑи за закÑÑÑÑй пеÑиод"},royaltyReport:{title:"ÐÑÑеÑÑ Ð·Ð° закÑÑÑÑй пеÑиод",info:"ÐдеÑÑ Ð±ÑдÑÑ Ð¾ÑобÑажаÑÑÑÑ Ð²Ð°Ñи оÑÑеÑÑ Ð¿Ð¾ заÑабоÑÐ°Ð½Ð½Ð¾Ð¼Ñ ÑоÑлÑи за закÑÑÑÑй пеÑиод"},downloadReportButton:"СкаÑаÑÑ Ð¾ÑÑеÑ",helpTexts:{dot:"â¢",moreThousand:"Ðогда обÑÐ°Ñ ÑÑмма к вÑплаÑе доÑÑÐ¸Ð³Ð½ÐµÑ 1000 ÑÑблей, Ð²Ñ ÑможеÑе оÑÑавиÑÑ Ð·Ð°ÑÐ²ÐºÑ Ð½Ð° полÑÑение ÑоÑлÑи.",moreFiveThousand:"Ðогда обÑÐ°Ñ ÑÑмма к вÑплаÑе доÑÑÐ¸Ð³Ð½ÐµÑ 5000 ÑÑблей, Ð²Ñ ÑможеÑе оÑÑавиÑÑ Ð·Ð°ÑÐ²ÐºÑ Ð½Ð° полÑÑение ÑоÑлÑи.",noReports:"РнаÑÑоÑÑее вÑÐµÐ¼Ñ Ð½Ðµ ÑÑоÑмиÑовано ни одного оÑÑеÑа о пÑодажаÑ
ваÑиÑ
книг. ÐÑÑеÑÑ ÑоÑмиÑÑÑÑÑÑ Ð² ÑеÑение 15 дней поÑле завеÑÑÐµÐ½Ð¸Ñ Ð¾ÑÑеÑного пеÑиода.",frozen:{text:"ÐоÑÐµÐ¼Ñ Ðº вÑплаÑе менÑÑе, Ñем заÑабоÑано?",linkText:"ÐоÑмоÑÑеÑÑ ÑоÑлÑи книг в пÑоÑеÑÑе"},limits:"СÑÐ¼Ð¼Ñ Ð±Ð¾Ð»ÐµÐµ 100 ÑÑÑ. ÑÑблей бÑдÑÑ ÑазбиÑÑ Ð½Ð° неÑколÑко ÑÑанзакÑий."}},y=[{name:"views",label:"ÐÑоÑмоÑÑÑ",getInfoText:function(e){switch(e){case i.gI.all:return"ÐбÑее колиÑеÑÑво ÑникалÑнÑÑ
пÑоÑмоÑÑов ÑÑÑÐ°Ð½Ð¸Ñ Ð²Ð°ÑиÑ
книг и аÑдиокниг ÑиÑаÑелÑми на ÐиÑÑеÑ";case i.gI.audio:return"ÐбÑее колиÑеÑÑво ÑникалÑнÑÑ
пÑоÑмоÑÑов ÑÑÑÐ°Ð½Ð¸Ñ Ð²Ð°ÑиÑ
аÑдиокниг ÑиÑаÑелÑми на ÐиÑÑеÑ";case i.gI.book:return"ÐбÑее колиÑеÑÑво ÑникалÑнÑÑ
пÑоÑмоÑÑов ÑÑÑÐ°Ð½Ð¸Ñ Ð²Ð°ÑиÑ
книг ÑиÑаÑелÑми на ÐиÑÑеÑ";default:return""}}},{name:"conversion",label:"ÐонвеÑÑиÑ",getInfoText:function(){return"ÐÑоÑÐµÐ½Ñ ÑиÑаÑелей, коÑоÑÑе поÑле пÑоÑмоÑÑа каÑÑоÑки книги ÑовеÑÑили Ñелевое дейÑÑвие â добавили в \xabÐÑложенное\xbb или кÑпили книгÑ"}},{name:"sales",label:"ÐÑодажи",getInfoText:function(e){switch(e){case i.gI.all:return"ÐолиÑеÑÑво ÑкаÑиваний ваÑиÑ
книг и аÑдиокниг в ÐиÑÑÐµÑ Ð¸ дÑÑгиÑ
книжнÑÑ
инÑеÑÐ½ÐµÑ Ð¼Ð°Ð³Ð°Ð·Ð¸Ð½Ð°Ñ
. УÑиÑÑваÑÑÑÑ ÑкаÑÐ¸Ð²Ð°Ð½Ð¸Ñ ÐºÐ°Ðº плаÑнÑÑ
, Ñак и беÑплаÑнÑÑ
книг";case i.gI.audio:return"ÐолиÑеÑÑво ÑкаÑиваний ваÑиÑ
аÑдиокниг в ÐиÑÑÐµÑ Ð¸ дÑÑгиÑ
книжнÑÑ
инÑеÑÐ½ÐµÑ Ð¼Ð°Ð³Ð°Ð·Ð¸Ð½Ð°Ñ
. УÑиÑÑваÑÑÑÑ ÑкаÑÐ¸Ð²Ð°Ð½Ð¸Ñ ÐºÐ°Ðº плаÑнÑÑ
, Ñак и беÑплаÑнÑÑ
книг";case i.gI.book:return"ÐолиÑеÑÑво ÑкаÑиваний ваÑиÑ
книг в ÐиÑÑÐµÑ Ð¸ дÑÑгиÑ
книжнÑÑ
инÑеÑÐ½ÐµÑ Ð¼Ð°Ð³Ð°Ð·Ð¸Ð½Ð°Ñ
. УÑиÑÑваÑÑÑÑ ÑкаÑÐ¸Ð²Ð°Ð½Ð¸Ñ ÐºÐ°Ðº плаÑнÑÑ
, Ñак и беÑплаÑнÑÑ
книг";default:return""}}},{name:"recenses",label:"ÐÑзÑвÑ",getInfoText:function(e){switch(e){case i.gI.all:return"ÐбÑее колиÑеÑÑво полÑÑеннÑÑ
оÑзÑвов на ваÑи книги и аÑдиокниги на ÐиÑÑеÑ";case i.gI.audio:return"ÐбÑее колиÑеÑÑво полÑÑеннÑÑ
оÑзÑвов на ваÑи аÑдиокниги на ÐиÑÑеÑ";case i.gI.book:return"ÐбÑее колиÑеÑÑво полÑÑеннÑÑ
оÑзÑвов на ваÑи книги на ÐиÑÑеÑ";default:return""}}},{name:"liked",label:"ÐзбÑанное",getInfoText:function(e){switch(e){case i.gI.all:return"ÐолиÑеÑÑво добавлений ваÑиÑ
книг и аÑдиокниг в \xabÐзбÑанное\xbb ÑиÑаÑелÑми на ÐиÑÑеÑ";case i.gI.audio:return"ÐолиÑеÑÑво добавлений ваÑиÑ
аÑдиокниг в \xabÐзбÑанное\xbb ÑиÑаÑелÑми на ÐиÑÑеÑ";case i.gI.book:return"ÐолиÑеÑÑво добавлений ваÑиÑ
книг в \xabÐзбÑанное\xbb ÑиÑаÑелÑми на ÐиÑÑеÑ";default:return""}}},{name:"royalty",label:"РоÑлÑи",getInfoText:function(e){switch(e){case i.gI.all:return"ÐоÑ
од, коÑоÑÑй Ð²Ñ Ð¿Ð¾Ð»ÑÑили за пÑодажи книг и аÑдиокниг на ÐиÑÑÐµÑ Ð¸ в паÑÑнÑÑÑкиÑ
магазинаÑ
за вÑбÑаннÑй пеÑиод";case i.gI.audio:return"ÐоÑ
од, коÑоÑÑй Ð²Ñ Ð¿Ð¾Ð»ÑÑили за пÑодажи аÑдиокниг на ÐиÑÑÐµÑ Ð¸ в паÑÑнÑÑÑкиÑ
магазинаÑ
за вÑбÑаннÑй пеÑиод";case i.gI.book:return"ÐоÑ
од, коÑоÑÑй Ð²Ñ Ð¿Ð¾Ð»ÑÑили за пÑодажи книг на ÐиÑÑÐµÑ Ð¸ в паÑÑнÑÑÑкиÑ
магазинаÑ
за вÑбÑаннÑй пеÑиод";default:return""}}}],f=(n={},(0,a.Z)(n,i.Bc.overview,null),(0,a.Z)(n,i.Bc.royalty,"ÐзÑÑиÑе колиÑеÑÑво покÑпок ваÑиÑ
книг, пÑоÑÑÐµÐ½Ð¸Ñ Ð¿Ð¾ подпиÑке и иÑоговÑÑ Ð¿ÑибÑлÑ, коÑоÑÑÑ Ð²Ñ Ð¿Ð¾Ð»ÑÑили"),(0,a.Z)(n,i.Bc.reading,"ÐзÑÑиÑе колиÑеÑÑво пÑоÑмоÑÑов, пÑоÑÑений ознакомиÑелÑнÑÑ
ÑÑагменÑов, ÑкаÑиваний и дÑÑгие показаÑели ваÑиÑ
книг"),(0,a.Z)(n,i.Bc.chapters,"ÐдеÑÑ Ð¾ÑобÑажаеÑÑÑ ÐºÐ¾Ð»Ð¸ÑеÑÑво ÑникалÑнÑÑ
полÑзоваÑелей по днÑм"),n),h={text:"СкаÑаÑÑ Ð¾ÑÑÐµÑ Ð² CSV",icon:"xlsFile"},x=1e3},72670:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSP:function(){return J},default:function(){return $}});var n=r(50029),a=r(64687),o=r.n(a),s=r(39424),i=r(17502),l=r(66482),u=r(42119),c=r(7519),d=r
1(79079),m=r(11163),_=r(67294),p=r(14416),y=r(16310),f=r(3490),h=r(50184),x=r(38739),b=r(35407),v=r(2079),T=r(18896),g=r(42467),j=r(62754),k=r(89637),N=r(33960),R=r(84917),I=r(34882),P=r(36613),S=r(42221),F=r(22079),w=r.n(F),E=function(e,t){var r=w().pki.publicKeyFromPem(e).encrypt(t,"RSA-OAEP",{md:w().md.sha256.create(),mgf1:{md:w().md.sha256.create()}});return w().util.encode64(r)},C=r(85893),B={headTitle:"ÐÑ Ð¿ÑинÑли ваÑÑ Ð·Ð°ÑÐ²ÐºÑ Ð½Ð° вÑплаÑÑ ÑоÑлÑи",title:(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(k.T,{children:"ÐенÑги поÑÑÑпÑÑ Ð½Ð° ÑÑÐµÑ Ð² ÑеÑение 24 ÑаÑов. ÐÑли Ñ Ð²Ð°Ñ Ð¾ÑÑалиÑÑ Ð²Ð¾Ð¿ÑоÑÑ, напиÑиÑе на"})," ",(0,C.jsx)(h.a,{href:"mailto:[email protected]",dataTestId:"naturalPersonRoyaltyForm__supportLink",children:"[email protected]"})]}),buttonText:"ÐеÑнÑÑÑÑÑ Ð² \xabСÑаÑиÑÑикÑ\xbb"},L=r(19814),A=r.n(L),D=y.Ry().shape({cardNumber:y.Z_().min(16,"ÐинимÑм 16 Ñимволов").max(19,"ÐакÑимÑм 19 Ñимволов").required("УкажиÑе Ð½Ð¾Ð¼ÐµÑ ÐºÐ°ÑÑÑ")}),W=function(){var e,t,r=(0,p.v9)(P.eX),a=(0,p.v9)(R.TB),y=(0,p.v9)(I.VG),F=(0,_.useState)(""),w=F[0],L=F[1],W=(0,_.useState)(!1),U=W[0],O=W[1],M=(0,_.useState)(""),V=M[0],Z=M[1],H=(0,_.useState)(!1),X=H[0],q=H[1],z=(0,_.useState)(!1),Q=z[0],Y=z[1],G=(0,_.useState)(!1),K=G[0],J=G[1],$=r.available_royalty,ee=r.resident_country,et=r.mandarin_card_tail,er=r.mandarin_has_card_token,en=r.mandarin_status,ea=a.public_encryption_key,eo=et&&er,es=null===(t=y[0])||void 0===t?void 0:t.status,ei=ee!==i.l&&Number($)<c.DB,el=es===l.W.pending||ei||Number($)<c.nd,eu=(0,m.useRouter)(),ec=(0,u.V)({cardNumber:w},D),ed=ec.validationErrors,em=ec.validateAllFieldsAsync,e_=ec.debouncedValidate,ep=eu.query.token;(0,_.useEffect)(function(){eo&&J(!0)},[]);var ey=(e=(0,n.Z)(o().mark(function e(t){var r,n,a,i,l,u,c,d;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),Z(""),e.next=4,em();case 4:if(r=e.sent,!(Object.keys(ed).length>0)){e.next=7;break}return e.abrupt("return");case 7:if(!(eo&&en&&K)){e.next=23;break}return O(!0),e.prev=9,n="sendRoyaltyForm",e.next=13,(0,S.B)({apiPointName:n,body:{provider:"bank_card_mandarin",token:ep,card_number:null,via_card_token:K}});case 13:(a=e.sent).errors.length>0?(Z(a.errors[0].messages[0]),O(!1)):(O(!1),q(!0)),e.next=22;break;case 17:e.prev=17,e.t0=e.catch(9),s.Tb(e.t0),q(!1),Z("ЧÑо-Ñо поÑло не Ñак. ÐожалÑйÑÑа, попÑобÑйÑе еÑе Ñаз.");case 22:return e.abrupt("return");case 23:if(!(!r&&en&&!K)){e.next=40;break}return O(!0),e.prev=25,i="sendRoyaltyForm",l=E(ea,w.replace(/\s/g,"")),e.next=30,(0,S.B)({apiPointName:i,body:{provider:"bank_card_mandarin",token:ep,card_number:l,via_card_token:Q}});case 30:(u=e.sent).errors.length>0?(Z(u.errors[0].messages[0]),O(!1)):(O(!1),q(!0)),e.next=39;break;case 34:e.prev=34,e.t1=e.catch(25),s.Tb(e.t1),q(!1),Z("ЧÑо-Ñо поÑло не Ñак. ÐожалÑйÑÑа, попÑобÑйÑе еÑе Ñаз.");case 39:return e.abrupt("return");case 40:if(!(!r&&!en)){e.next=56;break}return O(!0),e.prev=42,c="sendRoyaltyForm",e.next=46,(0,S.B)({apiPointName:c,body:{provider:"yookassa_phys",token:ep,card_number:w.replace(/\s/g,"")}});case 46:(d=e.sent).errors.length>0?(Z(d.errors[0].messages[0]),O(!1)):(O(!1),q(!0)),e.next=55;break;case 50:e.prev=50,e.t2=e.catch(42),s.Tb(e.t2),q(!1),Z("ЧÑо-Ñо поÑло не Ñак. ÐожалÑйÑÑа, попÑобÑйÑе еÑе Ñаз.");case 55:return e.abrupt("return");case 56:case"end":return e.stop()}},e,null,[[9,17],[25,34],[42,50]])})),function(t){return e.apply(this,arguments)});return X?(0,C.jsx)(N.o,{illustrationName:"successUnion",headTitle:B.headTitle,title:B.title,buttonText:B.buttonText,buttonHref:f.x.statistics.index}):(0,C.jsxs)("div",{className:A().wrapper,children:[(0,C.jsx)(T.L,{icon:"arrowLeftOutline24x24",iconPosition:"left",href:f.x.statistics.index,dataTestId:"naturalPersonRoyaltyForm__statisticsButton",children:"ÐеÑнÑÑÑÑÑ Ð² \xabСÑаÑиÑÑикÑ\xbb"}),(0,C.jsxs)("form",{onSubmit:ey,children:[(0,C.jsx)(k.H1,{className:A().title,children:(0,C.jsx)(k.T,{children:"ÐолÑÑение ÑоÑлÑи"})}),en&&(0,C.jsx)(x.b,{type:x.o.info,isWrapper:!0,isClosed:!1,textInformation:(0,C.jsx)("span",{className:A().alert,children:(0,C.jsx)(k.T,{children:"ÐÑплаÑÑ Ð´Ð¾ÑÑÑÐ¿Ð½Ñ Ð½Ð° вÑе Ð²Ð¸Ð´Ñ Ð±Ð°Ð½ÐºÐ¾Ð²ÑкиÑ
каÑÑ, вÑданнÑÑ
на ÑеÑÑиÑоÑии РФ. ÐгÑаниÑение на вÑвод ÑÑедÑÑв в меÑÑÑ ÑоÑÑавлÑÐµÑ 1 миллион â½."})})}),!en&&(0,C.jsx)(x.b,{type:x.o.info,isWrapper:!0,isClosed:!1,textInformation:(0,C.jsxs)("span",{className:A().alert,children:[(0,C.jsx)(k.T,{children:"ÐÑплаÑÑ Ð´Ð¾ÑÑÑÐ¿Ð½Ñ Ð½Ð° вÑе Ð²Ð¸Ð´Ñ Ð±Ð°Ð½ÐºÐ¾Ð²ÑкиÑ
каÑÑ, вÑданнÑÑ
на ÑеÑÑиÑоÑии РФ. ÐгÑаниÑение на вÑвод ÑÑедÑÑв в Ð´ÐµÐ½Ñ ÑоÑÑавлÑÐµÑ 500 000 â½, в меÑÑÑ â"})," ",(0,C.jsx)("span",{className:A().count,children:"1 миллион â½"})]})}),(0,C.jsxs)("div",{className:A().cardInfo,children:[(0,C.jsx)(k.H3,{className:A().subtitle,children:(0,C.jsx)(k.T,{children:"ÐаннÑе каÑÑÑ"})}),(0,C.jsxs)("div",{className:A().illustrations,children:[(0,C.jsx)(g.Q,{imageType:"visa",height:13,width:42}),(0,C.jsx)(g.Q,{imageType:"masterCard",height:22,width:35,className:A().masterCard}),(0,C.jsx)(g.Q,{imageType:"mir",height:13,width:46})]})]}),(0,C.jsx)(j.o,{className:A().cardInput,type:"card",labelText:"ÐÐ¾Ð¼ÐµÑ ÐºÐ°ÑÑÑ",value:w,onChange:function(e){L(e)},debouncedValidate:function(){K||e_("cardNumber")},errorMessage:K?"":ed.cardNumber,isDisabled:K,dataTestId:"naturalPersonRoyaltyForm__cardNumberInput"}),(0,C.jsxs)("div",{className:A().checkboxWrapper,children:[en&&(0,C.jsx)(v.X,{id:"create-token",name:"create-token",labelText:"СоÑ
ÑаниÑÑ ÐºÐ°ÑÑÑ",checked:Q,onChange:function(e){Y(e)},isDisabled:K}),eo&&en&&(0,C.jsx)(v.X,{id:"card-token",name:"card-token",labelText:"ÐÑвеÑÑи на ÑоÑ
ÑаненнÑÑ ÐºÐ°ÑÑÑ: *".concat(et),checked:K,onChange:function(e){J(e)}})]}),(0,C.jsxs)("div",{className:A().amountWrapper,children:[(0,C.jsx)(k.H3,{className:A().amountTitle,children:"СÑмма к вÑплаÑе:\xa0"}),(0,C.jsxs)(k.H2,{className:A().amount,children:[$,"\xa0â½"]})]}),(0,C.jsx)(k.iO,{className:A().taxes,children:(0,C.jsx)(k.T,{children:"С ÑÑÑÑом вÑÑеÑа 13% ÐÐФÐ"})}),!en&&(0,C.jsx)(k.iO,{className:A().taxes,children:d.S7.helpTexts.limits}),(0,C.jsx)(b.z,{type:"submit",className:A().button,isLoading:U,disabled:el,dataTestId:"naturalPersonRoyaltyForm__getButton",children:"ÐолÑÑиÑÑ ÑоÑлÑи"}),V&&(0,C.jsx)("div",{className:A().serverError,children:(0,C.jsx)(k.T,{children:V})}),(0,C.jsxs)(k.iO,{className:A().infoBlock,children:[(0,C.jsx)(k.T,{children:"Ðо вÑем вопÑоÑам, ÑвÑзаннÑм Ñ Ð¿ÐµÑеводом денежнÑÑ
ÑÑедÑÑв, обÑаÑайÑеÑÑ Ð² наÑÑ ÑлÑÐ¶Ð±Ñ Ð¿Ð¾Ð´Ð´ÐµÑжки:"}),(0,C.jsx)(h.a,{href:"mailto:[email protected]",dataTestId:"naturalPersonRoyaltyForm__supportLink",children:"\[email protected]"}),"."]}),(0,C.jsx)("br",{}),(0,C.jsx)(k.iO,{className:A().infoBlock,children:(0,C.jsx)(k.T,{children:"ÐÑе ÑоÑговÑе Ð½Ð°Ð·Ð²Ð°Ð½Ð¸Ñ Ð¸ ÑоÑговÑе маÑки ÑвлÑÑÑÑÑ ÑобÑÑвенноÑÑÑÑ ÑооÑвеÑÑÑвÑÑÑиÑ
компаний."})})]})]})},U={headTitle:"ÐÑ Ð¿ÑинÑли ваÑÑ Ð·Ð°ÑÐ²ÐºÑ Ð½Ð° вÑплаÑÑ ÑоÑлÑи",title:(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(k.T,{children:"ÐенÑги поÑÑÑпÑÑ Ð½Ð° ÑÑÐµÑ Ð² ÑеÑение 24 ÑаÑов. ÐÑли Ñ Ð²Ð°Ñ Ð¾ÑÑалиÑÑ Ð²Ð¾Ð¿ÑоÑÑ, напиÑиÑе на"})," ",(0,C.jsx)(h.a,{href:"mailto:[email protected]",dataTestId:"platronRoyaltyForm__supportLink",children:"[email protected]"})]}),buttonText:"ÐеÑнÑÑÑÑÑ Ð² \xabСÑаÑиÑÑикÑ\xbb"}
1,O=r(53362),M=r.n(O),V=y.Ry().shape({cardNumber:y.Z_().min(19,"ÐÑибка в номеÑе каÑÑÑ").required("УкажиÑе Ð½Ð¾Ð¼ÐµÑ ÐºÐ°ÑÑÑ"),name:y.Z_().required("УкажиÑе Ð¸Ð¼Ñ Ð´ÐµÑжаÑÐµÐ»Ñ ÐºÐ°ÑÑÑ"),surname:y.Z_().required("УкажиÑе ÑÐ°Ð¼Ð¸Ð»Ð¸Ñ Ð´ÐµÑжаÑÐµÐ»Ñ ÐºÐ°ÑÑÑ")}),Z=function(){var e,t=(0,p.v9)(P.eX),r=t.available_royalty,a=t.resident_country,l=(0,_.useState)(!1),d=l[0],y=l[1],R=(0,_.useState)(!1),I=R[0],F=R[1],w=(0,_.useState)(""),E=w[0],B=w[1],L=(0,_.useState)(""),A=L[0],D=L[1],W=(0,_.useState)(""),O=W[0],Z=W[1],H=(0,_.useState)(!1),X=H[0],q=H[1],z=(0,_.useState)(!1),Q=z[0],Y=z[1],G=(0,_.useState)(""),K=G[0],J=G[1],$=a!==i.l&&Number(r)<c.DB,ee=(0,m.useRouter)(),et=(0,u.V)({cardNumber:E,name:A,surname:O},V),er=et.validationErrors,en=et.debouncedValidate,ea=et.validateAllFieldsAsync,eo=ee.query.token,es=(e=(0,n.Z)(o().mark(function e(t){var r,n,a;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),e.next=3,ea();case 3:if(r=e.sent,!(Object.keys(er).length>0)){e.next=6;break}return e.abrupt("return");case 6:if(d){e.next=9;break}return F(!0),e.abrupt("return");case 9:if(J(""),r){e.next=25;break}return Y(!0),e.prev=12,n="sendRoyaltyForm",e.next=16,(0,S.B)({apiPointName:n,body:{provider:"bank_card_platron",token:eo,first_name:A,last_name:O,card_number:E.replace(/\s/g,"")}});case 16:(a=e.sent).errors.length>0?(J(a.errors[0].messages[0]),Y(!1)):(Y(!1),q(!0)),e.next=25;break;case 20:e.prev=20,e.t0=e.catch(12),s.Tb(e.t0),q(!1),J("ЧÑо-Ñо поÑло не Ñак. ÐожалÑйÑÑа, попÑобÑйÑе позже.");case 25:case"end":return e.stop()}},e,null,[[12,20]])})),function(t){return e.apply(this,arguments)});return X?(0,C.jsx)(N.o,{illustrationName:"successUnion",headTitle:U.headTitle,title:U.title,buttonText:U.buttonText,buttonHref:f.x.statistics.index}):(0,C.jsxs)("div",{className:M().wrapper,children:[(0,C.jsx)(T.L,{className:M().arrowBreadCrumbs,icon:"arrowLeftOutline24x24",iconPosition:"left",href:f.x.statistics.index,dataTestId:"platronRoyaltyForm__statisticsButton",children:"ÐеÑнÑÑÑÑÑ Ð² \xabСÑаÑиÑÑикÑ\xbb"}),(0,C.jsx)(k.H1,{className:M().title,children:(0,C.jsx)(k.T,{children:"ÐолÑÑение ÑоÑлÑи"})}),(0,C.jsx)(x.b,{type:x.o.info,isWrapper:!0,isClosed:!1,textInformation:(0,C.jsx)("span",{className:M().alert,children:(0,C.jsx)(k.T,{children:"ÐÑвод доÑÑÑпен ÑолÑко на каÑÑÑ Mastercard. ÐаÑÑа должна бÑÑÑ Ð²ÑпÑÑена не на ÑеÑÑиÑоÑии РФ. ÐгÑаниÑение на вÑвод 25 000 ⬠в меÑÑÑ."})})}),(0,C.jsxs)("form",{onSubmit:es,children:[(0,C.jsxs)("div",{className:M().cardInfo,children:[(0,C.jsx)(k.H3,{className:M().subtitle,children:(0,C.jsx)(k.T,{children:"ÐаннÑе каÑÑÑ"})}),(0,C.jsx)(g.Q,{imageType:"masterCard",height:22,width:35,className:M().masterCard})]}),(0,C.jsx)(j.o,{className:M().cardInput,type:"card",labelText:"ÐÐ¾Ð¼ÐµÑ ÐºÐ°ÑÑÑ",value:E,onChange:function(e){B(e)},debouncedValidate:function(){en("cardNumber")},errorMessage:er.cardNumber,dataTestId:"platronRoyaltyForm__cardNumberInput"}),(0,C.jsx)(j.o,{labelText:"ÐÐ¼Ñ Ð´ÐµÑжаÑÐµÐ»Ñ ÐºÐ°ÑÑÑ",className:M().input,value:A,onChange:function(e){D(e=e.toUpperCase().replace(/[а-ÑÐ-ЯÑÐ0-9]/g,""))},debouncedValidate:function(){en("name")},errorMessage:er.name,dataTestId:"platronRoyaltyForm__nameInput"}),(0,C.jsx)(k.YS,{className:M().caption,children:(0,C.jsx)(k.T,{children:"Ðак Ñказано на каÑÑе (лаÑиниÑей)"})}),(0,C.jsx)(j.o,{labelText:"Ð¤Ð°Ð¼Ð¸Ð»Ð¸Ñ Ð´ÐµÑжаÑÐµÐ»Ñ ÐºÐ°ÑÑÑ",className:M().input,value:O,onChange:function(e){Z(e=e.toUpperCase().replace(/[а-ÑÐ-ЯÑÐ0-9]/g,""))},debouncedValidate:function(){en("surname")},errorMessage:er.surname,dataTestId:"platronRoyaltyForm__surnameInput"}),(0,C.jsx)(k.YS,{className:M().caption,children:(0,C.jsx)(k.T,{children:"Ðак Ñказано на каÑÑе (лаÑиниÑей)"})}),(0,C.jsx)(v.X,{id:"1",name:"offerta-input",labelText:(0,C.jsxs)("div",{className:M().labelText,children:[(0,C.jsx)(k.T,{children:"Я подÑвеÑÐ¶Ð´Ð°Ñ Ð¾Ð·Ð½Ð°ÐºÐ¾Ð¼Ð»ÐµÐ½Ð¸Ðµ и ÑоглаÑие Ñ Ð¿Ð¾ÑÑдком вÑплаÑÑ Ð²Ð¾Ð·Ð½Ð°Ð³ÑаждениÑ, Ñказанном в лиÑензионном"}),(0,C.jsx)(h.a,{href:"/offer/",target:"_blank",dataTestId:"platronRoyaltyForm__offerLink",children:"\xa0договоÑе-оÑеÑÑе"})]}),onChange:function(){y(!d),F(!1)},className:M().checkbox,checked:d}),I&&(0,C.jsx)("div",{className:M().offerta,children:(0,C.jsx)(k.T,{children:"ÐзнакомÑÑеÑÑ Ñ Ð´Ð¾Ð³Ð¾Ð²Ð¾Ñ-оÑеÑÑой"})}),(0,C.jsxs)("div",{className:M().amountWrapper,children:[(0,C.jsx)(k.H3,{className:M().amountTitle,children:"СÑмма к вÑплаÑе:\xa0"}),(0,C.jsx)(k.H2,{className:M().amount,children:r})]}),(0,C.jsx)(b.z,{type:"submit",className:M().button,isLoading:Q,disabled:$,dataTestId:"patronRoyaltyForm__getButton",children:"ÐолÑÑиÑÑ ÑоÑлÑи"}),K&&(0,C.jsx)("div",{className:M().serverError,children:(0,C.jsx)(k.T,{children:K})}),(0,C.jsxs)(k.iO,{className:M().infoBlock,children:[(0,C.jsx)(k.T,{children:"Ðо вÑем вопÑоÑам, ÑвÑзаннÑм Ñ Ð¿ÐµÑеводом денежнÑÑ
ÑÑедÑÑв, обÑаÑайÑеÑÑ Ð² наÑÑ ÑлÑÐ¶Ð±Ñ Ð¿Ð¾Ð´Ð´ÐµÑжки:"}),(0,C.jsxs)(h.a,{href:"mailto:[email protected]",dataTestId:"platronRoyaltyForm__supportLink",children:[" ","[email protected]"]}),"."]}),(0,C.jsx)("br",{}),(0,C.jsx)(k.iO,{className:M().infoBlock,children:(0,C.jsx)(k.T,{children:"ÐÑе ÑоÑговÑе Ð½Ð°Ð·Ð²Ð°Ð½Ð¸Ñ Ð¸ ÑоÑговÑе маÑки ÑвлÑÑÑÑÑ ÑобÑÑвенноÑÑÑÑ ÑооÑвеÑÑÑвÑÑÑиÑ
компаний."})})]})]})},H=r(8671),X=r(77052),q=r.n(X),z={title:"ÐÑ Ð¿ÑинÑли ваÑÑ Ð·Ð°ÑÐ²ÐºÑ Ð½Ð° вÑплаÑÑ ÑоÑлÑи",subt
1itle:(0,C.jsxs)("span",{children:[(0,C.jsx)(k.T,{children:"ÐенÑги поÑÑÑпÑÑ Ð½Ð° ÑÑÑÑ Ð² ÑеÑение 24 ÑаÑов."}),(0,C.jsx)("br",{})," ",(0,C.jsx)(k.T,{children:"ÐÑли Ñ Ð²Ð°Ñ Ð¾ÑÑалиÑÑ Ð²Ð¾Ð¿ÑоÑÑ, напиÑиÑе на"})," ",(0,C.jsx)(h.a,{className:q().link,href:"mailto:[email protected]",dataTestId:"selfEmployedRoyaltyForm__supportLink",children:"[email protected]"})," "]}),buttonText:"ÐеÑнÑÑÑÑÑ Ð² \xabСÑаÑиÑÑикÑ\xbb"},Q=y.Ry().shape({cardNumber:y.Z_().min(16,"ÐинимÑм 16 Ñимволов").max(19,"ÐакÑимÑм 19 Ñимволов").required("УкажиÑе Ð½Ð¾Ð¼ÐµÑ ÐºÐ°ÑÑÑ")}),Y=function(){var e,t,r=(0,p.v9)(P.eX),a=(0,p.v9)(R.TB),y=(0,p.v9)(P.d),F=(0,p.v9)(I.VG),w=r.user_status,B=r.available_royalty,L=r.resident_country,A=r.mandarin_card_tail,D=r.mandarin_has_card_token,W=r.mandarin_status,U=a.public_encryption_key,O=(0,_.useState)(""),M=O[0],V=O[1],Z=(0,_.useState)(""),X=Z[0],Y=Z[1],G=(0,_.useState)(!1),K=G[0],J=G[1],$=(0,_.useState)(!1),ee=$[0],et=$[1],er=(0,_.useState)(!1),en=er[0],ea=er[1],eo=(0,_.useState)(!1),es=eo[0],ei=eo[1],el=A&&D,eu=null===(t=F[0])||void 0===t?void 0:t.status,ec=L!==i.l&&Number(B)<c.DB,ed=eu===l.W.pending||ec||Number(B)<c.nd,em=(0,m.useRouter)().query.token,e_=(0,u.V)({cardNumber:M},Q),ep=e_.validationErrors,ey=e_.debouncedValidate,ef=e_.validateAllFieldsAsync,eh=(0,H.C)(y.id).sendEvent;(0,_.useEffect)(function(){ee&&eh("sp_royalty_paid")},[ee]),(0,_.useEffect)(function(){el&&ei(!0)},[]);var ex=(e=(0,n.Z)(o().mark(function e(t){var r,n,a,i,l,u,c,d,m;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),Y(""),e.next=4,ef();case 4:if(r=e.sent,!(el&&W&&es)){e.next=20;break}return J(!0),e.prev=7,n="sendRoyaltyForm",e.next=11,(0,S.B)({apiPointName:n,body:{provider:"bank_card_mandarin",token:em,card_number:null,via_card_token:es}});case 11:(a=e.sent).errors.length>0?(Y(a.errors[0].messages[0]),J(!1)):(J(!1),et(!0)),e.next=19;break;case 15:e.prev=15,e.t0=e.catch(7),s.Tb(e.t0),Y("ЧÑо-Ñо поÑло не Ñак, попÑобÑйÑе позже.");case 19:return e.abrupt("return");case 20:if(!(!r&&W&&!es)){e.next=36;break}return J(!0),e.prev=22,i="sendRoyaltyForm",l=E(U,M.replace(/\s/g,"")),e.next=27,(0,S.B)({apiPointName:i,body:{provider:"bank_card_mandarin",token:em,card_number:l,via_card_token:en}});case 27:(u=e.sent).errors.length>0?(Y(u.errors[0].messages[0]),J(!1)):(J(!1),et(!0)),e.next=35;break;case 31:e.prev=31,e.t1=e.catch(22),s.Tb(e.t1),Y("ЧÑо-Ñо поÑло не Ñак, попÑобÑйÑе позже.");case 35:return e.abrupt("return");case 36:if(c="INDIVIDUAL_ENTREPRENEUR"===w?"yookassa_ip":"yookassa_smz",!(!r&&!W)){e.next=52;break}return J(!0),e.prev=39,d="sendRoyaltyForm",e.next=43,(0,S.B)({apiPointName:d,body:{provider:c,token:em,card_number:M.replace(/\s/g,"")}});case 43:(m=e.sent).errors.length>0?(Y(m.errors[0].messages[0]),J(!1)):(J(!1),et(!0)),e.next=51;break;case 47:e.prev=47,e.t2=e.catch(39),s.Tb(e.t2),Y("ЧÑо-Ñо поÑло не Ñак, попÑобÑйÑе позже.");case 51:return e.abrupt("return");case 52:case"end":return e.stop()}},e,null,[[7,15],[22,31],[39,47]])})),function(t){return e.apply(this,arguments)}),eb="INDIVIDUAL_ENTREPRENEUR"===w?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("br",{}),(0,C.jsx)("br",{}),(0,C.jsx)("span",{className:q().description,children:"ÐÑплаÑа возможна ÑолÑко на коÑпоÑаÑивнÑÑ ÐºÐ°ÑÑÑ."})]}):null;return ee?(0,C.jsx)(N.o,{headTitle:z.title,title:z.subtitle,buttonText:z.buttonText,buttonHref:f.x.statistics.index,illustrationName:"successUnion"}):(0,C.jsx)("form",{onSubmit:ex,children:(0,C.jsxs)("div",{className:q().wrapper,children:[(0,C.jsx)(T.L,{className:q().arrowBreadCrumbs,icon:"arrowLeftOutline24x24",iconPosition:"left",href:"/statistics/",dataTestId:"selfEmployedRoyaltyForm__statisticsButton",children:"ÐеÑнÑÑÑÑÑ Ð² \xabСÑаÑиÑÑикÑ\xbb"}),(0,C.jsx)(k.H1,{className:q().title,children:(0,C.jsx)(k.T,{children:"ÐолÑÑение ÑоÑлÑи"})}),W&&(0,C.jsx)(x.b,{type:x.o.info,isWrapper:!0,isClosed:!1,textInformation:(0,C.jsx)("span",{className:q().alert,children:(0,C.jsx)(k.T,{children:"ÐÑплаÑÑ Ð´Ð¾ÑÑÑÐ¿Ð½Ñ Ð½Ð° вÑе Ð²Ð¸Ð´Ñ Ð±Ð°Ð½ÐºÐ¾Ð²ÑкиÑ
каÑÑ, вÑданнÑÑ
на ÑеÑÑиÑоÑии РФ. ÐгÑаниÑение на вÑвод ÑÑедÑÑв в меÑÑÑ ÑоÑÑавлÑÐµÑ 1 миллион â½."})})}),!W&&(0,C.jsx)(x.b,{type:x.o.info,isWrapper:!0,isClosed:!1,textInformation:(0,C.jsxs)("span",{className:q().alert,children:[(0,C.jsx)(k.T,{children:"ÐÑплаÑÑ Ð´Ð¾ÑÑÑÐ¿Ð½Ñ Ð½Ð° вÑе Ð²Ð¸Ð´Ñ Ð±Ð°Ð½ÐºÐ¾Ð²ÑкиÑ
каÑÑ, вÑданнÑÑ
на ÑеÑÑиÑоÑии РФ. ÐгÑаниÑение на вÑвод ÑÑедÑÑв в Ð´ÐµÐ½Ñ ÑоÑÑавлÑÐµÑ 500 000 â½, в меÑÑÑ â"})," ",(0,C.jsx)("span",{className:q().count,children:"1 миллион â½"}),eb]})}),(0,C.jsxs)("div",{className:q().cardInfo,children:[(0,C.jsx)(k.H3,{className:q().subtitle,children:(0,C.jsx)(k.T,{children:"ÐаннÑе каÑÑÑ"})}),(0,C.jsxs)("div",{className:q().illustrations,children:[(0,C.jsx)(g.Q,{imageType:"visa",height:13,width:42}),(0,C.jsx)(g.Q,{imageType:"masterCard",height:22,width:35,className:q().masterCard}),(0,C.jsx)(g.Q,{imageType:"mir",height:13,width:46})]})]}),(0,C.jsx)(j.o,{className:q().cardInput,type:"card",labelText:"ÐÐ¾Ð¼ÐµÑ ÐºÐ°ÑÑÑ",value:M,onChange:function(e){V(e)},debouncedValidate:function(){es||ey("cardNumber")},errorMessage:es?"":ep.cardNumber,isDisabled:es,dataTestId:"selfEmployedRoyaltyForm__input"}),(0,C.jsxs)("div",{className:q().checkboxWrapper,children:[W&&(0,C.jsx)(v.X,{id:"create-token",name:"create-token",labelText:"СоÑ
ÑаниÑÑ ÐºÐ°ÑÑÑ",checked:en,onChange:function(e){ea(e)},isDisabled:es}),el&&W&&(0,C.jsx)(v.X,{id:"card-token",name:"card-token",labelText:"ÐÑвеÑÑи на ÑоÑ
ÑаненнÑÑ ÐºÐ°ÑÑÑ: *".concat(A),checked:es,onChange:function(e){ei(e)}})]}),(0,C.jsxs)("div",{className:q().amountWrapper,children:[(0,C.jsx)(k.H3,{className:q().amountTitle,children:"СÑмма к вÑплаÑе:\xa0"}),(0,C.jsxs)(k.H2,{className:q().amount,children:[B,"\xa0â½"]})]}),!W&&(0,C.jsx)(k.iO,{className:q().taxes,children:d.S7.helpTexts.limits}),(0,C.jsx)(b.z,{className:q().button,type:"submit",isLoading:K,disabled:ed,dataTestId:"selfEmployedRoyaltyForm__getButton",children:"ÐолÑÑиÑÑ ÑоÑлÑи"}),X&&(0,C.jsx)(k.iO,{className:q().error,children:(0,C.jsx)(k.T,{children:X})}),(0,C.jsxs)(k.iO,{className:q().infoBlock,children:[(0,C.jsx)(k.T,{children:"Ðо вÑем вопÑоÑам, ÑвÑзаннÑм Ñ Ð¿ÐµÑеводом денежнÑÑ
ÑÑедÑÑв, обÑаÑайÑеÑÑ Ð² наÑÑ ÑлÑÐ¶Ð±Ñ Ð¿Ð¾Ð´Ð´ÐµÑжки:"}),(0,C.jsx)(h.a,{href:"mailto:[email protected]",dataTestId:"selfEmployedRoyaltyForm__supportLink",children:"\[email protected]"}),"."]}),(0,C.jsx)("br",{}),(0,C.jsx)(k.iO,{className:q().infoBlock,children:(0,C.jsx)(k.T,{children:"ÐÑе ÑоÑговÑе Ð½Ð°Ð·Ð²Ð°Ð½Ð¸Ñ Ð¸ ÑоÑговÑе маÑки ÑвлÑÑÑÑÑ ÑобÑÑвенноÑÑÑÑ ÑооÑвеÑÑÑвÑÑÑиÑ
компаний."})})]})})},G=r(89074),K=r(63690),J=!0,$=function(){var e=(0,p.v9)(P.eX).user_status,t=e?({NATURAL_PERSON:W,SELF_EMPLOYED:Y,INDIVIDUAL_ENTREPRENEUR:Y,NON_RESIDENT:Z})[e]:G.x;return(0,C.jsx)(K.T,{fullHeight:!0,children:(0,C.jsx)(t,{})})}},84917:function(e,t,r){"use strict";r.d(t,{TB:function(){return n},e3:function(){return a}});
1var n=function(e){return e.payments.encryptKey},a=function(e){return e.payments.mandarinRegisterUser}},34882:function(e,t,r){"use strict";r.d(t,{F2:function(){return i},Iw:function(){return f},Nn:function(){return c},QY:function(){return p},TJ:function(){return u},VG:function(){return _},Wq:function(){return l},XA:function(){return d},XO:function(){return m},dJ:function(){return a},i0:function(){return s},k6:function(){return y},kD:function(){return o},mL:function(){return n}});var n=function(e){return e.statistics.royaltyPayout},a=function(e){return e.statistics.isStatisticsForbidden},o=function(e){return e.statistics.royaltyInfo},s=function(e){return e.statistics.royaltyReports},i=function(e){return e.statistics.royaltyDrafts},l=function(e){return e.statistics.royaltyBanner},u=function(e){return e.statistics.readingStatistics},c=function(e){return e.statistics.readingStatisticsSums},d=function(e){return e.statistics.bookRoyaltyStatistics},m=function(e){return e.statistics.audioRoyaltyStatistics},_=function(e){return e.statistics.royaltyPayout},p=function(e){return e.statistics.chartStatistics},y=function(e){return e.statistics.isFetching},f=function(e){return e.statistics.isFetchingSums}},94599:function(e,t,r){"use strict";r.d(t,{h:function(){return a}});var n=r(81180),a=function(e){return(0,n.Z)(e,"yyyy-MM-dd")}},9412:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/statistics/royalty-payments",function(){return r(72670)}])},37371:function(e){e.exports={coverBlock:"BookCover_coverBlock__uzymg",cover:"BookCover_cover__Lo3iT",coverImg:"BookCover_coverImg__1XJDF",illustrationIcon:"BookCover_illustrationIcon__ZvfhP",illustrationWrapper:"BookCover_illustrationWrapper__tN0Dv",censored:"BookCover_censored__SFHOV",firstLetter:"BookCover_firstLetter__XSqbs",small:"BookCover_small__hRdGW",medium:"BookCover_medium__LT9rU",large:"BookCover_large__O4sUM",extraLarge:"BookCover_extraLarge__7qogP",mediumAudio:"BookCover_mediumAudio__Em4_F",largeAudio:"BookCover_largeAudio__LhzZ8",extraLargeAudio:"BookCover_extraLargeAudio__11dtW",notLink:"BookCover_notLink__9wLEC",loaderContainer:"BookCover_loaderContainer__p1YUn"}},81029:function(e){e.exports={container:"NoContentStub_container__697do",headTitle:"NoContentStub_headTitle___d_BK",headTitleWithButton:"NoContentStub_headTitleWithButton__5FoAq",headTitleWithBookCover:"NoContentStub_headTitleWithBookCover__KPIv8",title:"NoContentStub_title__Gwdpe",titleWithButton:"NoContentStub_titleWithButton__o_sil",subTitle:"NoContentStub_subTitle__jl7On"}},19814:function(e){e.exports={wrapper:"NaturalPersonRoyaltyForm_wrapper__g8KkE",title:"NaturalPersonRoyaltyForm_title__0xj3D",alert:"NaturalPersonRoyaltyForm_alert__SDf8Y",count:"NaturalPersonRoyaltyForm_count___kNVa",cardInfo:"NaturalPersonRoyaltyForm_cardInfo__KQWWZ",masterCard:"NaturalPersonRoyaltyForm_masterCard__wn_hN",cardInput:"NaturalPersonRoyaltyForm_cardInput__zG_E3",subtitle:"NaturalPersonRoyaltyForm_subtitle__d2IeB",illustrations:"NaturalPersonRoyaltyForm_illustrations__AQKQM",labelText:"NaturalPersonRoyaltyForm_labelText__gMG_f",checkbox:"NaturalPersonRoyaltyForm_checkbox__9Om48",amountWrapper:"NaturalPersonRoyaltyForm_amountWrapper__qb4q_",offerta:"NaturalPersonRoyaltyForm_offerta__bsacz",amountTitle:"NaturalPersonRoyaltyForm_amountTitle__Ut1aG",amount:"NaturalPersonRoyaltyForm_amount__YJ5bn",taxes:"NaturalPersonRoyaltyForm_taxes__of8Ma",button:"NaturalPersonRoyaltyForm_button__Y8iru",infoBlock:"NaturalPersonRoyaltyForm_infoBlock__A06Lg",serverError:"NaturalPersonRoyaltyForm_serverError__TkSEP",addressInput:"NaturalPersonRoyaltyForm_addressInput__ME8gD"}},53362:function(e){e.exports={wrapper:"PlatronRoyaltyForm_wrapper__EbZfU",title:"PlatronRoyaltyForm_title__Rge_R",alert:"PlatronRoyaltyForm_alert__yl2gV",cardInfo:"PlatronRoyaltyForm_cardInfo__PML0R",masterCard:"PlatronRoyaltyForm_masterCard__kgVH4",cardInput:"PlatronRoyaltyForm_cardInput__UU20n",subtitle:"PlatronRoyaltyForm_subtitle__aCHFP",input:"PlatronRoyaltyForm_input__caW8g",caption:"PlatronRoyaltyForm_caption__SrSWz",labelText:"PlatronRoyaltyForm_labelText__pZtOc",checkbox:"PlatronRoyaltyForm_checkbox__sssoQ",amountWrapper:"PlatronRoyaltyForm_amountWrapper__19VhN",offerta:"PlatronRoyaltyForm_offerta__1LYMG",amountTitle:"PlatronRoyaltyForm_amountTitle__VDfIj",amount:"PlatronRoyaltyForm_amount___6c6E",button:"PlatronRoyaltyForm_button__xBRMU",infoBlock:"PlatronRoyaltyForm_infoBlock__mLd4e",serverError:"PlatronRoyaltyForm_serverError__n8XD9"}},77052:function(e){e.exports={wrapper:"SelfEmployedRoyaltyForm_wrapper__wpEHz",title:"SelfEmployedRoyaltyForm_title__EAKqR",alert:"SelfEmployedRoyaltyForm_alert__85nMg",count:"SelfEmployedRoyaltyForm_count__e_LuL",cardInfo:"SelfEmployedRoyaltyForm_cardInfo__OgV7d",masterCard:"SelfEmployedRoyaltyForm_masterCard__IFPTc",cardInput
1:"SelfEmployedRoyaltyForm_cardInput__SjYPL",subtitle:"SelfEmployedRoyaltyForm_subtitle__eQ5om",illustrations:"SelfEmployedRoyaltyForm_illustrations__Yohxz",input:"SelfEmployedRoyaltyForm_input__Zj7h_",caption:"SelfEmployedRoyaltyForm_caption__yWogl",labelText:"SelfEmployedRoyaltyForm_labelText__3Su1R",checkbox:"SelfEmployedRoyaltyForm_checkbox__gwazd",amountWrapper:"SelfEmployedRoyaltyForm_amountWrapper__OYh5V",offerta:"SelfEmployedRoyaltyForm_offerta__icivn",amountTitle:"SelfEmployedRoyaltyForm_amountTitle__VVi1y",amount:"SelfEmployedRoyaltyForm_amount__8ZQcN",button:"SelfEmployedRoyaltyForm_button__kBMBx",infoBlock:"SelfEmployedRoyaltyForm_infoBlock__9xFID",error:"SelfEmployedRoyaltyForm_error__BRwBR",link:"SelfEmployedRoyaltyForm_link__J026S",addressInput:"SelfEmployedRoyaltyForm_addressInput__kY_uZ",description:"SelfEmployedRoyaltyForm_description__LRWoB",taxes:"SelfEmployedRoyaltyForm_taxes__DmAOJ"}},37756:function(e){e.exports={h1:"PaymentTypeResidents_h1__MUB24",h3:"PaymentTypeResidents_h3__YHZZ8",subTitle:"PaymentTypeResidents_subTitle__hKyvK",radioGroup:"PaymentTypeResidents_radioGroup___VSSj",block:"PaymentTypeResidents_block__WWxqj",explanatoryAlert:"PaymentTypeResidents_explanatoryAlert__xb_Bd",bodyText:"PaymentTypeResidents_bodyText__I2wJP",amountWrapper:"PaymentTypeResidents_amountWrapper__V7Th6",alert:"PaymentTypeResidents_alert__3fIKv",amount:"PaymentTypeResidents_amount__E5avS",button:"PaymentTypeResidents_button__dU_eR",alertError:"PaymentTypeResidents_alertError__Un4B_",buttonInn:"PaymentTypeResidents_buttonInn__iXGkl",inn:"PaymentTypeResidents_inn__nq83q",inputInn:"PaymentTypeResidents_inputInn__Gq2wL",blockInn:"PaymentTypeResidents_blockInn__Z3VPe",alertYooTable:"PaymentTypeResidents_alertYooTable__9BMxw",registeredError:"PaymentTypeResidents_registeredError__T02Cf",radioPaymentGroup:"PaymentTypeResidents_radioPaymentGroup__tcWuO"}},62678:function(){},25819:function(){},24112:function(){}},function(e){e.O(0,[2601],function(){e.E(2052)},5),e.O(0,[5675,9593,2238,540,9081,2519,8410,5797,3189,2675,7853,5579,5115,878,2888,9774,179],function(){return e(e.s=9412)}),_N_E=e.O()}]); 2//# sourceMappingURL=royalty-payments-b633ecaf1d207c8e.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.