PageSourceSearch

https://selfpub.ru/_next/static/chunks/pages/series-a3c8544179e218ae.js

js selfpub.ru collected 2026-10-03 23:30:06 UTC 11,202 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]="0502287d-2d7e-4d74-8267-825cde338b13",e._sentryDebugIdIdentifier="sentry-dbid-0502287d-2d7e-4d74-8267-825cde338b13")}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]="0502287d-2d7e-4d74-8267-825cde338b13",e._sentryDebugIdIdentifier="sentry-dbid-0502287d-2d7e-4d74-8267-825cde338b13")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1744],{69334:function(e,t,r){"use strict";r.d(t,{u:function(){return _}});var n,i=r(59499),o=r(68067),s=r(50184),a={small:95,middle:210,full:248},c=((n={}).small="small",n.middle="middle",n.full="full",n),u=r(17490),d=r.n(u),l=r(85893);function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach(function(t){(0,i.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var _=function(e){var t=e.content,r=e.title,n=e.direction,i=e.children,u=e.background,p=void 0===u?"dark":u,_=e.size,v=void 0===_?c.full:_,m=e.textLink,h=e.dataTestId,b=e.borderRadius,y=e.moveTooltipLeft,g=e.moveTooltipRight,x=e.moveArrowLeft,j=e.moveArrowRight,k=e.zIndex,C=(0,l.jsxs)("span",{children:[r&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:d().title,children:r}),(0,l.jsx)("br",{})]}),m?(0,l.jsx)(s.a,{className:d().link,href:m,target:"_blank",dataTestId:"tooltip__link",children:t}):t]});return(0,l.jsx)(o.Z,{title:C,placement:void 0===n?"top":n,arrow:!0,enterTouchDelay:0,leaveTouchDelay:5e4,PopperProps:{modifiers:[{name:"flip",enabled:!0,options:{boundary:"viewport",fallbackPlacements:["bottom","top"]}},{name:"preventOverflow",enabled:!0,options:{boundary:"viewport",rootBoundary:"viewport",padding:12,tether:!0}}],style:{zIndex:k}},slotProps:{tooltip:{"data-testid":void 0===h?"tooltip":h,sx:f(f(f({bgcolor:"dark"===p?"var(--palettes-gray-190)":"var(--text-secondary)",color:"dark"===p?"var(--text-secondary)":"var(--palettes-gray-190)",minWidth:"41px",maxWidth:{xs:"calc(100vw - 24px)",sm:a[v]},boxSizing:"border-box",overflowWrap:"anywhere",wordBreak:"break-word",minHeight:"34px",padding:"8px",fontSize:"14px",fontWeight:400,lineHeight:"18px",letterSpacing:"0.25px",marginBottom:"7px !important"},void 0!==b&&{borderRadius:"".concat(b,"px")}),void 0!==y&&{ml:"".concat(y,"px")}),void 0!==g&&{mr:"".concat(g,"px")})},arrow:{sx:f(f({color:"dark"===p?"var(--palettes-gray-190)":"var(--text-secondary)"},void 0!==x&&{ml:"".concat(x,"px")}),void 0!==j&&{mr:"".concat(j,"px")})}},children:(0,l.jsx)("span",{children:i})})}},65621:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSP:function(){return I},default:function(){return D}});var n=r(31955),i=r(51897),o=r(59499),s=r(94184),a=r.n(s),c=r(40296),u=r(77780),d=r.n(u),l=r(3490),p=r(50184),f=r(35407),_=r(4486),v=r(69334),m=r(89637),h=r(60312),b=r(61568),y=r(78274),g=r.n(y),x=r(85893),j=function(e){var t=e.data;return(0,x.jsxs)("div",{className:g().wrapper,children:[(0,x.jsxs)("div",{children:[(0,x.jsxs)("div",{className:g().info,children:[(0,x.jsx)(m.mj,{children:t.name}),(0,x.jsx)(m.OE,{className:g().count,children:"".concat(t.arts_count," ").concat(d()(t.arts_count,"книга","книги","книг"))})]}),(0,x.jsx)("div",{className:g().actions,children:t.url?(0,x.jsxs)(x.Fragment,{children:[t.is_editable?(0,x.jsx)(f.z,{look:"secondary",size:"small",href:"".concat(l.x.series.edit).concat(t.id),dataTestId:"seriesCreatedCard__editButton",children:"Редактировать"}):(0,x.jsx)(v.u,{content:c.PJ,borderRadius:8,direction:"top",children:(0,x.jsx)(f.z,{look:"secondary",size:"small",disabled:!0,dataTestId:"seriesCreatedCard__editButton",children:"Редактировать"})}),(0,x.jsx)(p.a,{href:t.url,dataTestId:"seriesCreatedCard__link",children:(0,x.jsx)(_.J,{icon:"linkOutline24x24"})})]}):(0,x.jsxs)("div",{className:g().publicationLabelWrapper,children:[(0,x.jsx)(m.OE,{className:g().publicationLabel,children:"Публикуется"}),(0,x.jsx)(h.D,{className:g().publicationLabelSpinner})]})})]}),t.arts&&t.arts.length>0&&(0,x.jsxs)("div",{className:a()(g().coversWrapper,(0,o.Z)({},g().coversWrapperWithGradient,t.arts.length>=5)),children:[t.arts.slice(0,5).map(function(e,t){return(0,x.jsx)("div",{className:a()(g().cover,(0,o.Z)({},g().lastCover,4===t)),children:(0,x.jsx)(b.Fh,{bookName:String(e.id),size:e.is_square_cover?b.iB.betweenSmallAndMediumAudio:b.iB.small,pathToPicture:e.cover_url,isLink:!1})},e.id)}),t.arts.length>=5&&(0,x.jsx)("div",{className:g().gradient})]})]})},k=r(67294),C=r(14416),w=r(63602),S=r(63690),O=r(70689),T=r(92794),N=r(78867),W=r(59558),B=r(28555),E=r.n(B),P=function(){var e=(0,C.v9)(N.Lu),t=(0,C.v9)(N.$T),r=(0,C.v9)(T.U),o=(0,C.v9)(O.yo),s=(0,W.oj)(o),a=e.length>0;return(0,k.useEffect)(function(){n.Z.get("series_create")&&((0,w.s$)({message:c.Ts,options:{position:"top-center"}}),n.Z.remove("series_create")),n.Z.get("delete_series")&&((0,w.s$)({message:c.M9,options:{position:"top-center"}}),n.Z.remove("delete_series")),n.Z.get("series_edit")&&((0,w.s$)({message:c.J7,options:{position:"top-center"}}),n.Z.remove("series_edit"))},[]),(0,k.useEffect)(function(){t.length>0&&(0,w.x2)({message:t[0].messages[0],options:{position:"top-center",autoClose:5e3,closeOnClick:!0}})},[t]),(0,x.jsxs)(S.T,{breadCrumbs:{name:"Вернуться в \xabМои книги\xbb",link:s},className:E().pageWrapper,children:[(0,x.jsx)(m.H1,{className:E().title,children:"Серии"}),a&&(0,x.jsxs)("div",{children:[(0,x.jsxs)("div",{className:E().seriesCreatedButtonWrapper,children:[(0,x.jsx)(f.z,{size:"medium",href:l.x.series.create,dataTestId:"series__createButton",children:"Создать серию"}),(0,x.jsx)(m.OE,{children:"Создавайте тематические серии или циклы ваших произведений"})]}),(0,x.jsx)("div",{className:E().artsWrapper,children:e.map(function(e){return(0,x.jsx)(j,{data:e},e.id)})})]}),!a&&r.length>0&&(0,x.jsx)(i.T,{title:c.Cq,description:c._A,buttonName:c.fi,buttonHref:l.x.series.create}),!a&&(0===r.length||!r.length)&&(0,x.jsx)(i.T,{title:c.Cq,description:c.Z0})]})},I=!0;function D(){return(0,x.jsx)(P,{})}},70689:function(e,t,r){"use strict";r.d(t,{$S:function(){return d},EQ:function(){return i},IH:function(){return c},W_:function(){return a},bk:function(){return o},eD:function(){return l},eO:function(){return u},k7:function(){return s},yo:function(){return p}});var n=r(68697),i=function(e){return e.myBooks.digitalBooks},o=function(e){return e.myBooks.audioBooks},s=function(e){return e.myBooks.directArts},a=function(e){return e.myBooks.podBooks},c=function(e){return e.myBooks.podcasts},u=function(e){return e.myBooks.myBookCount},d=function(e){return e.myBooks.myBooks},l=function(e){return e.myBooks.isFetching},p=(0,n.P1)([function(e){return e.myBooks.exist}],function(e){return{published:e.published,moderation:e.moderation,unpublished:e.unpublished}})},19993:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/series",function(){return r(65621)}])},17490:function(e){e.exports={link:"Tooltip_link__rAkgS",title:"Tooltip_title__Z0ec_"}},78274:function(e){e.exports={wrapper:"SeriesCreatedCard_wrapper__dvsqM",info:"SeriesCreatedCard_info__8rlsp",count:"SeriesCreatedCard_count__p7X22",actions:"SeriesCreatedCard_actions__T8uXs",publicationLabelWrapper:"SeriesCreatedCard_publicationLabelWrapper__x5KZP",publicationLabel:"SeriesCreatedCard_publicationLabel__NMWle",publicationLabelSpinner:"SeriesCreatedCard_publicationLabelSpinner__8FPwy",coversWrapper:"SeriesCreatedCard_coversWrapper__Oeuet",coversWrapperWithGradient:"SeriesCreatedCard_coversWrapperWithGradient__zVb0T",lastCover:"SeriesCreatedCard_lastCover__3W9TF",cover:"SeriesCreatedCard_cover__0H7D1",gradient:"SeriesCreatedCard_gradient__qiSyq"}},28555:function(e){e.exports={pageWrapper:"Series_pageWrapper__Jt27N",title:"Series_title__qqbh0",seriesCreatedButtonWrapper:"Series_seriesCreatedButtonWrapper__ETZo2",artsWrapper:"Series_artsWrapper__G5dFE"}},68697:function(e,t,r){"use strict";r.d(t,{P1:function(){return o}});var n="NOT_FOUND",i=function(e,t){return e===t},o=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return function(){for(var t,n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];var s=0,a={memoizeOptions:void 0},c=i.pop();if("object"==typeof c&&(a=c,c=i.pop()),"function"!=typeof c)throw Error("createSelector expects an output function after the inputs, but received: ["+typeof c+"]");var u=a.memoizeOptions,d=void 0===u?r:u,l=Array.isArray(d)?d:[d],p=function(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(e){return"function"==typeof e}))throw Error("createSelector expects all input-selectors to be functions, but received the following types: ["+t.map(function(e){return"function"==typeof e?"function "+(e.name||"unnamed")+"()":typeof e}).join(", ")+"]");return t}(i),f=e.apply(void 0,[function(){return s++,c.apply(null,arguments)}].concat(l)),_=e(function(){for(var e=[],r=p.length,n=0;n<r;n++)e.push(p[n].apply(null,arguments));return t=f.apply(null,e)});return Object.assign(_,{resultFunc:c,memoizedResultFunc:f,dependencies:p,lastResult:function(){return t},recomputations:function(){return s},resetRecomputations:function(){return s=0}}),_}}(function(e,t){var r,o,s="object"==typeof t?t:{equalityCheck:t},a=s.equalityCheck,c=s.maxSize,u=void 0===c?1:c,d=s.resultEqualityCheck,l=(r=void 0===a?i:a,function(e,t){if(null===e||null===t||e.length!==t.length)return!1;for(var n=e.length,i=0;i<n;i++)if(!r(e[i],t[i]))return!1;return!0}),p=1===u?{get:function(e){return o&&l(o.key,e)?o.value:n},put:function(e,t){o={key:e,value:t}},getEntries:function(){return o?[o]:[]},clear:function(){o=void 0}}:function(e,t){var r=[];function i(e){var i=r.findIndex(function(r){return t(e,r.key)});if(i>-1){var o=r[i];return i>0&&(r.splice(i,1),r.unshift(o)),o.value}return n}return{get:i,put:function(t,o){i(t)===n&&(r.unshift({key:t,value:o}),r.length>e&&r.pop())},getEntries:function(){return r},clear:function(){r=[]}}}(u,l);function f(){var t=p.get(arguments);if(t===n){if(t=e.apply(null,arguments),d){var r=p.getEntries().find(function(e){return d(e.value,t)});r&&(t=r.value)}p.put(arguments,t)}return t}return f.clearCache=function(){return p.clear()},f})}},function(e){e.O(0,[1744],function(){e.E(2052)},5),e.O(0,[5675,9593,2238,540,9081,2519,8410,1362,8067,3189,2675,7853,5579,5115,878,3533,2888,9774,179],function(){return e(e.s=19993)}),_N_E=e.O()}]);
2//# sourceMappingURL=series-a3c8544179e218ae.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.