PageSourceSearch

https://selfpub.ru/_next/static/chunks/pages/books/ebooks-e5d37ba6252dfae6.js

js selfpub.ru collected 2026-10-03 23:28:27 UTC 28,330 bytes, 2 lines download raw bytes

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]="fb4ef13a-1f08-4f86-aaf0-5bc7f84e5d0f",e._sentryDebugIdIdentifier="sentry-dbid-fb4ef13a-1f08-4f86-aaf0-5bc7f84e5d0f")}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]="fb4ef13a-1f08-4f86-aaf0-5bc7f84e5d0f",e._sentryDebugIdIdentifier="sentry-dbid-fb4ef13a-1f08-4f86-aaf0-5bc7f84e5d0f")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6059],{62898:function(e,t,n){"use strict";n.d(t,{M:function(){return o}});var o="isPriceRecommendationsBannerDismissed"},82163:function(e,t,n){"use strict";n.d(t,{m:function(){return u}});var o,r=n(50029),i=n(64687),a=n.n(i),s=n(42221),c=(o=(0,r.Z)(a().mark(function e(){var t;return a().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t="getPriceRecommendations",e.abrupt("return",(0,s.B)({apiPointName:t}));case 2:case"end":return e.stop()}},e)})),function(){return o.apply(this,arguments)}),l=n(67294),u=function(){var e=(0,l.useState)([]),t=e[0],n=e[1],o=(0,l.useState)(!0),r=o[0],i=o[1];return(0,l.useEffect)(function(){var e=!0;return c().then(function(t){var o=t.result,r=t.errors;e&&n(r.length?[]:o)}).catch(function(){e&&n([])}).finally(function(){e&&i(!1)}),function(){e=!1}},[]),{hasPriceRecommendations:t.length>0,isPriceRecommendationsLoading:r,priceRecommendations:t}}},28523:function(e,t,n){"use strict";n.d(t,{s:function(){return o}});var o=function(e,t){var n;return 100===(null==t||null===(n=t.find(function(t){return t.id===e}))||void 0===n?void 0:n.royalty_percent)}},39089:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return eJ},default:function(){return eq}});var o=n(59499),r=n(50029),i=n(64687),a=n.n(i),s=n(72363),c=n(84035),l=n(10353),u=n(35833),d=n(35710),f=n(31955),_=n(64924),m=n(68086),p=n(79420),h=n(10520),b=n(21447),k=n(66921),g=n(76623),v=n(43441),y=n(25675),x=n.n(y),j=n(3490),w=n(35407),O=n(53418),P=n(89637),B=n(1868),C=n.n(B),N=n(85893),R=function(e){var t=e.isOpen,n=e.onRequestClose;return(0,N.jsxs)(O.u_,{className:C().modal,onRequestClose:n,isOpen:t,children:[(0,N.jsxs)("div",{className:C().content,children:[(0,N.jsx)(x(),{src:"/components/CreateAudioModal/[email protected]",width:320,height:126,alt:"Аудиоверсия вашей книги",className:C().image}),(0,N.jsx)(P.H2,{className:C().title,children:"Аудиоверсия вашей книги"}),(0,N.jsx)(P.u5,{children:"Создавайте бесплатно аудиоверсию вашей книги и увеличивайте аудиторию читателей и слушателей."})]}),(0,N.jsx)(O.mz,{className:C().footer,children:(0,N.jsx)(w.z,{size:"medium",grow:!0,href:j.x.audioBooks.new.master,dataTestId:"createAudioModal__button",children:"Создать"})})]})},M=n(79933),D=n(87898),S=n(52529),T=n(74299),E=n(67294),I=n(4486),Z=n(62898),A=n(95376),L=n.n(A),H=function(){var e=(0,E.useState)(!1),t=e[0],n=e[1];return((0,E.useEffect)(function(){n(!localStorage.getItem(Z.M))},[]),t)?(0,N.jsxs)("section",{className:L().container,children:[(0,N.jsxs)("div",{className:L().content,children:[(0,N.jsx)(P.H3,{className:L().title,children:"Узнайте, какую цену установить на книгу"}),(0,N.jsx)(P.u5,{className:L().description,children:"Мы рассчитали рекомендуемые цены на основе данных Литрес"}),(0,N.jsx)(w.z,{dataTestId:"priceRecommendationsBanner__link",href:j.x.books.priceRecommendations,className:L().link,look:"secondary",size:"medium",children:"Перейти"})]}),(0,N.jsx)(x(),{src:"/components/Illustration/recommendedPrice.png",alt:"",className:L().illustration,width:160,height:150}),(0,N.jsx)(w.z,{className:L().closeButton,onClick:function(){localStorage.setItem(Z.M,"true"),n(!1)},dataTestId:"priceRecommendationsBanner__closeButton",children:(0,N.jsx)(I.J,{icon:"closeOutline24x24",size:24,color:"var(--palettes-white-100)"})})]}):null},z=n(67282),F=n(94184),Y=n.n(F),W=n(72770),U=n(42467),J=n(4404),q=n.n(J);function K(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function V(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?K(Object(n),!0).forEach(function(t){(0,o.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Q=function(e){var t=e.title,n=e.slides,r=(0,E.useState)(!0),i=r[0],a=r[1],s=(0,E.useState)(1),c=s[0],l=s[1],u={dots:!1,infinite:!0,speed:500,slidesToShow:1,slidesToScroll:1,swipe:!1,nextArrow:(0,N.jsx)(function(e){return(0,N.jsx)("div",{className:q().nextArrow,onClick:function(){l(c+1),c===n.length&&l(1),e.onClick()},children:(0,N.jsx)(U.Q,{imageType:"rightArrowWithBackground42x42",width:42,height:42,className:q().arrow})})},{}),prevArrow:(0,N.jsx)(function(e){return(0,N.jsx)("div",{className:q().prevArrow,onClick:function(){l(c-1),1===c&&l(n.length),e.onClick()},children:(0,N.jsx)(U.Q,{imageType:"leftArrowWithBackground42x42",width:42,height:42,className:q().arrow})})},{})};return(0,E.useEffect)(function(){"no"===f.Z.get("isRecommendationOpen")&&a(!1)},[]),(0,N.jsxs)("div",{className:q().wrapper,children:[(0,N.jsxs)("div",{className:q().titleWrapper,onClick:function(){a(function(e){return!e}),l(1),f.Z.set("isRecommendationOpen",i?"no":"yes",{expires:365})},children:[(0,N.jsx)(I.J,{className:Y()(q().icon,(0,o.Z)({},q().isOpen,i)),icon:"chevronDownOutline16x16",width:"24px",height:"24px"}),(0,N.jsx)(P.H4,{children:t})]}),i&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(W.Z,V(V({},u),{},{children:n.map(function(e){return(0,N.jsx)("div",{className:q().slide,children:(0,N.jsxs)("div",{className:q().content,children:[(0,N.jsx)("div",{className:q().imageWrapper,children:(0,N.jsx)(x(),{src:"/components/RecommendationBlock/".concat(e.imageName,".png"),width:160,height:140,alt:e.imageName})}),(0,N.jsxs)("div",{className:q().texts,children:[(0,N.jsx)(P.mj,{className:q().subtitle,children:e.title}),(0,N.jsx)(P.u5,{children:e.info})]})]})},(0,z.DM)())})})),(0,N.jsxs)("div",{className:q().counter,children:[c,"/",n.length]})]})]})},X=n(50184),G=[{title:"Отправьте друзьям",info:"Поделитесь книгой с друзьями. Получите первые оценки и отзывы - это повысит её позиции и повлечет больше показов вашей книги читателям Литрес.",imageName:"sharedArt"},{title:"Вступите в коммьюнити",info:(0,N.jsxs)(P.u5,{children:["Присоединяйтесь к"," ",(0,N.jsx)(X.a,{href:"https://t.me/authors_of_litres",target:"_blank",dataTestId:"recommendationBlock__authorsLink",children:"коммьюнити Авторов Литрес!"})," ","Обменивайтесь ссылками с другими авторами и получайте поддержку от опытных коллег."]}),imageName:"community"},{title:"Сохраняйте регулярность",info:"Старайтесь каждую неделю получать высокие оценки и поддерживать продажи, чтобы удерживать позиции вашей книги в каталоге Литрес.",imageName:"highMarks"}],$="referral_offer",ee=n(37401),et=n.n(ee),en=function(e){var t=e.onJoinReferralProgram,n=e.hasAnyPublishedBooks,o=(0,E.useState)(!1),r=o[0],i=o[1];(0,E.useEffect)(function(){f.Z.get($)&&n&&i(!0)},[n]);var a=function(){f.Z.remove($),i(!1)};return(0,N.jsxs)(O.u_,{isOpen:r,onRequestClose:a,shouldCloseOnOverlayClick:!1,shouldCloseOnEsc:!1,className:et().modal,children:[(0,N.jsx)("div",{className:et().referralProgramOfferModalHeadingIconContainer,children:(0,N.jsx)(U.Q,{imageType:"referalAds",height:112,width:112})}),(0,N.jsxs)("div",{className:et().referralProgramOfferModalBody,children:[(0,N.jsx)(P.H3,{className:et().referralProgramOfferModalHeading,children:"Станьте участником реферальной программы"}),(0,N.jsxs)("ul",{className:et().referralProgramOfferModalOptionsList,children:[(0,N.jsx)("li",{children:(0,N.jsx)(P.T,{children:"Подключите реферальную программу"})}),(0,N.jsx)("li",{children:(0,N.jsx)(P.T,{children:"Отправляйте читателям реферальные ссылки\xa0на свои книги"})}),(0,N.jsx)("li",{children:(0,N.jsx)(P.T,{children:"Читатели будут получать скидку 10% на вашу\xa0книгу,\xa0а\xa0вы — 20% от всех их покупок"})})]}),(0,N.jsxs)("div",{className:et().referralProgramOfferModalControlsContainer,children:[(0,N.jsx)(w.z,{onClick:function(){f.Z.remove($),t(),i(!1)},dataTestId:"referralProgramOfferModal__participateButton",children:"Стать участником"}),(0,N.jsx)(w.z,{look:"tertiary",onClick:a,dataTestId:"referralProgramOfferModal__notNowButton",children:"Не сейчас"})]})]})]})},eo=n(88216),er=n(86450),ei=n(50525),ea=n(53793),es=n(79455),ec=function(e,t,n){var o=[],r=e.actions,i=e.book_type===l.l.draft?"stories":"book";e.is_free_fanfic&&(i="fanfik");
1var a=!r.edit||e.statuses.ebook_status===u.k.inProgress||e.statuses.ebook_status===u.k.unpublishing||e.statuses.printed_status===u.k.remotePublished||e.in_ebukva;if(o.push({text:a?"Посмотреть":"Редактировать",link:"/books/".concat(e.id),type:es.N.button,disabled:e.statuses.ebook_status===u.k.importing,dataTestId:a?"bookCardShow_".concat(e.id):"bookCardEdit_".concat(e.id),onClick:function(){(0,c.nv)({event_type:"edit_art_click",event_parameters:{block_name:"ebooks",block_state:n,art_type:i,art_id:e.id,art_state:n}},t)}}),e.is_published&&e.statuses.ebook_status!==u.k.rejectedPublished&&e.statuses.ebook_status!==u.k.unpublishing&&"free"!==e.license_type&&!e.is_on_postmoderation){var d="yes"===f.Z.get("promo_package")?"".concat(j.x.services.promotionPopup,"?artId=").concat(e.id):"".concat(j.x.services.promotion.artOrder,"?artId=").concat(e.id);o.push({text:"Продвигать",link:d,onClick:function(){var o;(0,s.I)({action:"book_card_promote",goalParams:{art_id:e.id||0,type:i,user_id:null!==(o=t.uuid)&&void 0!==o?o:""}}),(0,c.nv)({event_type:"promote_art_click",event_parameters:{block_name:"ebooks",block_state:n,art_type:i,art_id:e.id,art_state:n}},t)},type:es.N.outline,dataTestId:"bookCardPromote_".concat(e.id)})}return o},el=n(90116),eu=n(64729),ed=n(86307),ef=n(33912),e_=n(8942),em=n(52444),ep=[u.k.remotePublished,u.k.publishedDraft,u.k.rejectedPublished,u.k.inProgress],eh=[u.k.inProgress,u.k.rejected,u.k.draft],eb=function(e,t){if(!e.license_type&&!t&&!e.royalty_percent&&!e.prices.ebook_price)return[];var n,o,r,i=[eu.f.exclusive,eu.f.nonExclusive],a=100===parseFloat(String(e.royalty_percent))&&i.includes(e.license_type),s=[].concat((0,el.Z)(t?[]:[{id:(0,z.DM)(),title:"Лицензия",type:es.iK.regular,value:(0,ed.Z)(e.license_type),dataTestId:"bookCardLicense_".concat(e.id)}]),[{id:(0,z.DM)(),title:"Роялти",type:es.iK.regular,value:(0,e_.Z)(e.royalty_percent,t),tooltipContent:a?(n=e.hundred_royalty_expiry_date,e.is_published&&ep.includes(e.statuses.ebook_status)?"Повышенные роялти до ".concat(n?(0,em.jV)(n):"-"," или достижения продаж на 10 000 ₽, затем они станут согласно выбранной лицензии"):!e.is_published&&eh.includes(e.statuses.ebook_status)?"Повышенные роялти в течение месяца после публикации или до достижения продаж на 10 000 ₽, затем процент станет согласно выбранной лицензии":""):void 0,icon:a?"timerOutline16x16":void 0,dataTestId:"bookCardRoyalty_".concat(e.id)},{id:(0,z.DM)(),title:"Стоимость",type:es.iK.price,value:(0,ef.f)(e.prices.ebook_price),newPrice:null!==(o=e.discount)&&void 0!==o&&o.discount_price?(0,ef.f)(e.discount.discount_price.toString()||""):null,discount:e.discount,dataTestId:"bookCardPrice_".concat(e.id)}]);return e.share&&100!==e.share&&s.push({id:(0,z.DM)(),type:es.iK.regular,title:"Доля в соавторстве",value:"".concat(e.share,"%"),dataTestId:"bookCardShare_".concat(e.id)}),null!==(r=e.discount)&&void 0!==r&&r.discount_price&&s.push({id:(0,z.DM)(),type:es.iK.discount,discount:e.discount,title:"",value:"",dataTestId:"bookCardDiscount_".concat(e.id)}),s},ek=n(67879),eg=n(50701),ev=n(75066),ey=n(19469),ex=n(39424),ej=n(64442),ew=n(42221),eO=function(e,t,n){var o=(0,ej.z)(e,t).handleDispatchFetchBooks;return{cancelUnpublishing:function(e){(0,ew.B)({apiPointName:"cancelUnpublishingRequest",urlParams:{bookId:e},body:null}).then(function(e){e.errors.length?ex.Tb(e.errors[0]):(o(),n())})}}},eP=n(35470),eB=function(e,t,n){var o=(0,ej.z)(e,n),r=o.handleDispatchFetchBooks,i=o.dispatch;return{deleteBook:function(){t&&(0,ew.B)({apiPointName:"removeBook",urlParams:{bookId:t}}).then(function(){i((0,eP.t)({})),r()})}}},eC=n(82163),eN=function(e,t,n,o){var r=(0,ej.z)(e,n),i=r.handleDispatchFetchBooks,a=r.dispatch;return{unpublishBook:function(r,s){t&&(0,ew.B)({apiPointName:"unpublishBook",urlParams:{bookId:t},body:{reason:r,user_reason:s}}).then(function(){(0,c.nv)({event_type:"unpublish_art_success",event_parameters:{block_name:e,block_state:n,art_type:e,art_id:t,art_state:n,option:r}},o),a((0,eP.t)({})),i()})}}},eR=n(28523),eM=n(11163),eD=n(14416),eS=n(14147),eT=n(70689),eE=n(36613),eI=n(97312),eZ=n(59202),eA=n(28507),eL=n.n(eA);function eH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function ez(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?eH(Object(n),!0).forEach(function(t){(0,o.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eH(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var eF=function(){var e,t,n,o,i=(0,eD.v9)(eT.EQ),y=(0,eD.v9)(eT.eO),O=(0,eD.v9)(eT.eD),B=(0,eD.v9)(eE.d),C=(0,eD.v9)(eS.Du).expiry_date,I=(0,eC.m)(),Z=I.hasPriceRecommendations,A=I.isPriceRecommendationsLoading,L=B.is_transferred_direct_agreement,z=(0,eD.I0)(),F=(0,eM.useRouter)(),Y=F.query,W=Y.state,U=Y.book_id;(0,E.useEffect)(function(){if(U){var e=document.getElementById("book-card-".concat(String(U)));e&&e.scrollIntoView()}},[]);var J=(0,E.useState)(0),q=J[0],K=J[1],V=(0,E.useState)(!1),X=V[0],$=V[1],ee=(0,E.useState)(!1),et=ee[0],es=ee[1],el=(0,E.useState)(!1),eu=el[0],ed=el[1],ef=(0,E.useState)(""),e_=ef[0],em=ef[1],ep=(0,E.useState)(!1),eh=ep[0],ex=ep[1],ej=(0,E.useState)(ea.ZR.none),ew=ej[0],eP=ej[1],eA=(0,E.useState)(!1),eH=eA[0],eF=eA[1],eY=(0,E.useState)(ea.Te.edit),eW=eY[0],eU=eY[1],eJ=(0,E.useState)(""),eq=eJ[0],eK=eJ[1],eV=(0,E.useState)([]),eQ=eV[0],eX=eV[1],eG=((0,eD.v9)(eT.k7)||[]).filter(function(e){return e.book_type===l.l.ebook}),e$=(0,E.useState)(),e0=e$[0],e1=e$[1],e2=(e=(0,r.Z)(a().mark(function e(){return a().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ek.E)(l.l.ebook);case 2:eX(e.sent);case 4:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)}),e4=(0,E.useMemo)(function(){return(0,ev.I)(eQ,eG)},[eQ,eG]),e5=eB(d.M1.books,q,W).deleteBook,e6=eN(d.M1.books,q,W,B).unpublishBook,e8=eO(d.M1.books,W,function(){eP(ea.ZR.cancel)}).cancelUnpublishing,e3=(0,er.H)("book"),e9=e3.openedModal,e7=e3.setOpenedModal,te=e3.handleJoinReferralProgram,tt=function(){(0,c.nv)({event_type:"create_art_click",event_parameters:{block_name:"ebooks",block_state:W,art_type:"book"}},B),F.push(j.x.books.new)},tn=(0,E.useMemo)(function(){var e,t=null===(e=y.audiobook)||void 0===e?void 0:e.total;return 0===t?"first_audio":1===t?"second_audio":"n_audio"},[]),to=function(e){K(e.id),$(!0);var t=e.book_type===l.l.draft?"stories":"book";e.is_free_fanfic&&(t="fanfik"),(0,c.nv)({event_type:"drop_art_click",event_parameters:{block_name:"ebooks",block_state:W,art_type:t,art_id:e.id,art_state:W}},B)},tr=function(e){K(e.id),eP(ea.ZR.stepOne),(0,c.nv)({event_type:"unpublish_art_request_click",event_parameters:{block_name:"ebooks",block_state:W,art_type:"book",art_id:e.id,art_state:W}},B)},ti=function(e){if(e===p.T.unpublish){var t=ea.pI[eW];(0,c.nv)({event_type:"unpublish_art_ok_click",event_parameters:{block_name:"ebooks",block_state:W,art_type:"book",art_id:q,art_state:W}},B),e6(t,eq),eP(ea.ZR.success)}else e5(),ts();K(0)},ta=function(e,t){var n=(0,eg.H)(e);if(n){em(n),ex("free"===e.license_type),es(!0);var o=e.book_type===l.l.draft?"stories":"book";e.is_free_fanfic&&(o="fanfik"),(0,c.nv)({event_type:"see_link_click",event_parameters:{block_name:"ebooks",block_state:W,art_type:o,art_id:t||0,art_state:W}},B)}},ts=function(){$(!1),es(!1),ed(!1),eP(ea.ZR.none)},tc=function(e){e8(e)},tl=(null===(t=y.texts)||void 0===t?void 0:t.unpublished)||0,tu=(null===(n=y.texts)||void 0===n?void 0:n.moderation)||0,td=(null===(o=y.texts)||void 0===o?void 0:o.published)||0,tf=!!(null!=i&&i.length),t_=Object.values(y).some(function(e){return e.total>0});return((0,E.useEffect)(function(){e1([])},[W]),(0,E.useEffect)(function(){var e,t="isAudioPopupShown",n=f.Z.get(t);B.is_audio_popup_shown&&!n&&(eF(!0),(0,s.I)({action:"popup_audio_view",goalParams:{user_id:null!==(e=B.uuid)&&void 0!==e?e:""}}),f.Z.set(t,"true",{expires:365}))},[B.is_audio_popup_shown]),(0,E.useEffect)(function(){z((0,eZ.D)())},[z]),(0,E.useEffect)(function(){(0,c.nv)({event_type:"block_view",event_parameters:{block_name:"ebooks",block_state:W}},B)},[W]),(0,E.useEffect)(function(){(0,c.nv)({event_type:"my_arts_view",event_parameters:{}},B,!0)},[]),(0,E.useEffect)(function(){if(i&&i.length>0){var e=[];i.map(function(t){var n=(0,eR.s)(Number(t.id),i);n&&!C&&z((0,eI.B)({eBookId:t.id})),n&&C?e.push(ez(ez({},t),{},{hundred_royalty_expiry_date:C})):e.push(ez({},t))}),e1(e)}},[i,C,W]),(0,E.useEffect)(function(){e2()},[]),(0,E.useEffect)(function(){f.Z.get("registration")&&((0,c.nv)({event_type:"registration_success",event_parameters:{}},B),f.Z.remove("registration"))},[]),O)?(0,N.jsxs)(h.Y,{children:[(0,N.jsx)(P.H1,{children:"Мои книги"}),t_&&(0,N.jsx)(T.Y,{isPodTabVisible:!1,tabsCount:y}),(0,N.jsx)(k.b,{countSkeleton:5})]}):t_||e4.length?tf||0!==e4.length?(0,N.jsxs)(h.Y,{children:[(0,N.jsx)(P.H1,{children:"Мои книги"}),(0,N.jsx)(T.Y,{isPodTabVisible:!1,tabsCount:y}),(0,N.jsx)(eo.t,{openedModal:e9,setOpenedModal:e7,state:W,currentTab:d.M1.books}),(0,N.jsx)(en,{hasAnyPublishedBooks:td>0,onJoinReferralProgram:te}),(0,N.jsxs)(b.r,{children:[(0,N.jsx)(S.B,{onClickCreateControl:tt,onSelectFilter:function(e){var t=(0,ey.V)(d.M1.books,e);F.push(t)},title:"Создать книгу",booksCounter:{unpublished:tl,moderation:tu,published:td+e4.length},selectedFilter:W,tab:d.M1.books,isShowSeriesButton:B.is_series_access_allowed}),(0,N.jsxs)("div",{className:eL().booksContainer,children:[!A&&(Z?(0,N.jsx)(H,{}):(0,N.jsx)(M.$,{})),null==e0?void 0:e0.map(function(e){return(0,N.jsx)(_.l,{id:"book-card-".concat(e.id),className:eL().bookCard,art:e,controls:ec(e,B,W),artMeta:eb(e,L||B.has_direct_agreement),onDeleteBook:to,onUnpublishBook:tr,onClickReferralLink:ta,onCancelUnpublishing:tc},e.id)}),L&&(W===d.Nf.published||!W)&&e4.map(function(e){return(0,N.jsx)(D.Y,{id:"book-card-".concat(e.id),className:eL().bookCard,art:e,controls:ec(e,B,W),artMeta:eb(e,!0),onDeleteBook:to,onUnpublishBook:tr,onClickReferralLink:ta,onCancelUnpublishing:tc},e.id)}),W===u.k.LEGACY_PUBLISHED&&(0,N.jsx)(Q,{slides:G,title:"Что стоит сделать после выхода книги?"})]}),(0,N.jsx)(m.A,{isOpen:X,onSubmit:ti,type:p.T.book,onRequestClose:ts}),(0,N.jsx)(g.A,{isOpen:et,onClose:ts,referralLink:e_,onJoinReferralProgram:te}),(0,N.jsx)(v.N,{isOpen:eu,isFreeLicense:eh,onClose:ts,referralLink:e_}),(0,N.jsx)(ei.i,{openedModal:ew,reason:eW,bookId:q,artType:l.l.ebook,type:p.T.unpublish,onSubmit:ti,onRequestClose:ts,onChooseReason:function(e){eU(e)},onClickFurther:function(){eP(ea.ZR.stepTwo)},onGetCustomReasonText:function(e){eK(e)}}),W===d.Nf.published&&(0,N.jsx)(R,{isOpen:eH,onRequestClose:function(){return eF(!1)}})]})]}):(0,N.jsxs)(h.Y,{children:[(0,N.jsx)(P.H1,{children:"Мои книги"}),(0,N.jsx)(T.Y,{isPodTabVisible:!1,tabsCount:y}),(0,N.jsxs)("div",{className:eL().noEbookBlock,children:[(0,N.jsx)(x(),{src:"/components/MyBooks/book.png",width:140,height:140,alt:"book"}),(0,N.jsx)(P.u5,{className:eL().noEbookDescription,children:"Опубликуйте готовую электронную книгу или публикуйте главами"}),(0,N.jsx)(w.z,{className:eL().button,size:"medium",onClick:tt,dataTestId:"eBooksTab__createButton",children:"Создать книгу"})]})]}):(0,N.jsxs)(h.Y,{children:[(0,N.jsx)(P.H1,{children:"Мои книги"}),(0,N.jsxs)("div",{className:eL().noContentWrapper,children:[(0,N.jsxs)("div",{className:eL().createBlock,onClick:tt,children:[(0,N.jsx)(x(),{src:"/components/MyBooks/book.png",width:140,height:140,alt:"book"}),(0,N.jsx)(P.H3,{className:eL().title,children:"Создать книгу"}),(0,N.jsx)(P.u5,{className:eL().description,children:"Опубликуйте готовую электронную книгу или публикуйте главами"})]}),(0,N.jsxs)("div",{className:eL().createBlock,onClick:function(){var e,t=String(W)===d.Nf.in_progress?"production":String(W);(0,s.I)({action:"books_click_add_art",goalParams:{type:"audio",user_type:tn,source:t,user_id:null!==(e=B.uuid)&&void 0!==e?e:""}}),(0,c.nv)({event_type:"create_art_click",event_parameters:{block_name:"audiobooks",block_state:W,art_t
1ype:"audio"}},B),F.push(j.x.audioBooks.new.master)},children:[(0,N.jsx)(x(),{src:"/components/MyBooks/audiobook.png",width:140,height:140,alt:"audiobook"}),(0,N.jsx)(P.H3,{className:eL().title,children:"Создать аудиокнигу"}),(0,N.jsx)(P.u5,{className:eL().description,children:"Опубликуйте готовую аудиокнигу или загрузите текст, а мы его озвучим"})]})]})]})},eY=n(63690),eW=n(32566),eU=n(9506),eJ=!0;function eq(){return(0,N.jsxs)(eY.T,{children:[(0,N.jsx)("div",{style:{marginBottom:"32px"},children:(0,N.jsx)(eW.J,{id:eU.e})}),(0,N.jsx)(eF,{})]})}},14147:function(e,t,n){"use strict";n.d(t,{Du:function(){return r},Sq:function(){return o}});var o=function(e){return e.hundredPercentRoyalty.userInfo},r=function(e){return e.hundredPercentRoyalty.eBookInfo}},52444:function(e,t,n){"use strict";n.d(t,{I5:function(){return d},JJ:function(){return l},Oy:function(){return f},Tm:function(){return u},UW:function(){return s},ZE:function(){return _},_n:function(){return p},cx:function(){return k},jV:function(){return c},lR:function(){return g},sr:function(){return b},zE:function(){return m}});var o=n(27863),r=n(64384),i=n(67336),a=n(81180),s=function(e){if(!e)return"";var t=(e.getMonth()+1).toString(),n=e.getDate().toString(),o=e.getFullYear();return t.length<2&&(t="0".concat(t)),n.length<2&&(n="0".concat(n)),[o,t,n].join("-")},c=function(e,t){return new Date(e).toJSON().slice(0,10).split("-").reverse().join(null!=t?t:".")},l=function(e){return new Date(e).toLocaleDateString(void 0,{year:"2-digit",day:"2-digit",month:"2-digit"})},u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return new Date(e).toLocaleDateString(t,{year:"numeric",day:"2-digit",month:"2-digit",timeZone:"Europe/Moscow"})},d=function(e){return new Date(e).toLocaleString(void 0,{timeZone:"UTC",year:"2-digit",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})},f=function(e){var t=new Date(e);return"".concat(t.getDate()," ").concat(["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"][t.getMonth()]," ").concat(t.getFullYear())},_=function(e){var t;return(0,r.Z)((t=Number(e),(0,o.Z)(t,new Date(t).getTimezoneOffset())))},m=function(e){return new Date(e).toLocaleString("ru-RU",{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit",hour12:!1,timeZone:"Europe/Moscow"}).replaceAll(","," ")},p=function(e){return(0,a.Z)((0,i.Z)(e),"dd.MM.yy")},h=function(e){if(e instanceof Date)return{y:e.getFullYear(),m:e.getMonth(),d:e.getDate()};var t=e.trim(),n=t.match(/^(\d{2})[.\-](\d{2})[.\-](\d{4})$/);if(n)return{d:Number(n[1]),m:Number(n[2])-1,y:Number(n[3])};var o=t.match(/^(\d{4})-(\d{2})-(\d{2})/);if(o)return{y:Number(o[1]),m:Number(o[2])-1,d:Number(o[3])};var r=new Date(t);return{y:r.getFullYear(),m:r.getMonth(),d:r.getDate()}},b=function(e){var t=h(e);return new Date(t.y,t.m,t.d,0,0,0,0)},k=function(e){var t=new Date(e),n=t.getDate(),o=t.toLocaleDateString("ru-RU",{day:"numeric",month:"long"}).replace(/\d+/,"").trim();return"".concat(n," ").concat(o)},g=function(e){var t=new Date(e);return"".concat(t.toTimeString().slice(0,5))}},25875:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/books/ebooks",function(){return n(39089)}])},1868:function(e){e.exports={modal:"CreateAudioModal_modal__UKaIg",content:"CreateAudioModal_content__5WEKa",image:"CreateAudioModal_image__WevCX",title:"CreateAudioModal_title__gSbic",footer:"CreateAudioModal_footer__wRQa3"}},95376:function(e){e.exports={container:"PriceRecommendationsBanner_container__09yjs",content:"PriceRecommendationsBanner_content__y8l1N",title:"PriceRecommendationsBanner_title__JuTLC",description:"PriceRecommendationsBanner_description__1_nzI",link:"PriceRecommendationsBanner_link__CAUSk",illustration:"PriceRecommendationsBanner_illustration__x9j6C",closeButton:"PriceRecommendationsBanner_closeButton__Sciqi"}},4404:function(e){e.exports={wrapper:"RecommendationBlock_wrapper__YY566",titleWrapper:"RecommendationBlock_titleWrapper__EQJ9n",icon:"RecommendationBlock_icon__g6lFS",isOpen:"RecommendationBlock_isOpen__LIBMn",slider:"RecommendationBlock_slider__lawZy",slide:"RecommendationBlock_slide__vFBXb",show:"RecommendationBlock_show__wD2WZ",nextArrow:"RecommendationBlock_nextArrow__KykSY",prevArrow:"RecommendationBlock_prevArrow__E8cdc",content:"RecommendationBlock_content__nBvSK",texts:"RecommendationBlock_texts__RYJlm",subt
1itle:"RecommendationBlock_subtitle__jViPx",imageWrapper:"RecommendationBlock_imageWrapper__3K2LO",counter:"RecommendationBlock_counter__ao_zW"}},37401:function(e){e.exports={referralProgramOfferModalHeadingIconContainer:"ReferralProgramOfferModal_referralProgramOfferModalHeadingIconContainer__6xPqm",referralProgramOfferModalBody:"ReferralProgramOfferModal_referralProgramOfferModalBody__FvDMm",referralProgramOfferModalHeading:"ReferralProgramOfferModal_referralProgramOfferModalHeading__UkOkw",referralProgramOfferModalOptionsList:"ReferralProgramOfferModal_referralProgramOfferModalOptionsList__yHsgV",referralProgramOfferModalControlsContainer:"ReferralProgramOfferModal_referralProgramOfferModalControlsContainer__K1RfZ",modal:"ReferralProgramOfferModal_modal___moxp"}},28507:function(e){e.exports={booksContainer:"EBooksTab_booksContainer__u1v_s",noContentWrapper:"EBooksTab_noContentWrapper__FQltS",createBlock:"EBooksTab_createBlock___374o",title:"EBooksTab_title__TMuCG",description:"EBooksTab_description__xgpTp",noEbookBlock:"EBooksTab_noEbookBlock__MNeLR",noEbookDescription:"EBooksTab_noEbookDescription__ZenaA",button:"EBooksTab_button__O6mpi"}}},function(e){e.O(0,[6059],function(){e.E(2052)},5),e.O(0,[5675,9593,2238,540,9081,2519,8410,1362,8067,8764,4608,6066,1036,3308,3189,2675,7853,5579,5115,878,2412,8158,2888,9774,179],function(){return e(e.s=25875)}),_N_E=e.O()}]);
2//# sourceMappingURL=ebooks-e5d37ba6252dfae6.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.