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]="523135cd-cd91-4dd9-98a7-b11d62dbe9f4",e._sentryDebugIdIdentifier="sentry-dbid-523135cd-cd91-4dd9-98a7-b11d62dbe9f4")}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]="523135cd-cd91-4dd9-98a7-b11d62dbe9f4",e._sentryDebugIdIdentifier="sentry-dbid-523135cd-cd91-4dd9-98a7-b11d62dbe9f4")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4724],{38739:function(e,t,o){"use strict";o.d(t,{b:function(){return h},o:function(){return p}});var r,n=o(59499),i=o(94184),a=o.n(i),s=o(67294),l=o(48817),c=o.n(l),u=o(4486),d=o(89637),m=o(35407),_=o(85893),p=((r={}).success="success",r.info="info",r.warning="warning",r.error="error",r),f={info:"infoOutline24x24",error:"errorOutline24x24",success:"checkCircleOutline24x24"},h=function(e){var t,o,r=e.type,i=void 0===r?p.info:r,l=e.size,h=void 0===l?"medium":l,x=e.isWrapper,v=e.isClosed,k=e.className,b=e.title,g=e.textInformation,j=e.buttonText,y=e.buttonDataTestId,N=e.onButtonClick,w=e.dataTestId,C=(0,s.use
1State)(!0),B=C[0],T=C[1],S=null!=w?w:"alert--".concat(i),P=a()(c().alertIcon,(t={},(0,n.Z)(t,c().small,"small"===h),(0,n.Z)(t,c().info,i===p.info),(0,n.Z)(t,c().error,i===p.error),(0,n.Z)(t,c().success,i===p.success),t));return x?B?(0,_.jsxs)("div",{className:a()(c().alert,k,(o={},(0,n.Z)(o,c().small,"small"===h),(0,n.Z)(o,c().info,i===p.info),(0,n.Z)(o,c().error,i===p.error),(0,n.Z)(o,c().success,i===p.success),o)),"data-testid":S,children:[(0,_.jsxs)("div",{className:c().alertIconAndTextBlock,children:[(0,_.jsx)("div",{className:c().roundAlertIcon,children:(0,_.jsx)(u.J,{size:24,icon:f[i],className:P})}),"medium"===h&&(0,_.jsxs)("div",{children:[b&&(0,_.jsx)(d.mj,{className:c().title,children:b}),(0,_.jsx)(d.iO,{className:c().textInformationBlock,children:g})]}),"small"===h&&(0,_.jsxs)("div",{children:[b&&(0,_.jsx)(d.mj,{className:c().title,children:b}),(0,_.jsx)(d.YS,{className:c().textInformationBlock,children:g})]})]}),j&&(0,_.jsx)(m.z,{look:"tertiary",size:"small",onClick:N,className:c().button,dataTestId:null!=y?y:"alert__button",children:j}),v&&(0,_.jsx)("button",{type:"button",className:c().closeIcon,onClick:function(){T(!1)},"data-testid":"alertCloseButton",children:(0,_.jsx)(u.J,{icon:"closeOutline24x24",size:24})})]}):null:(0,_.jsxs)("div",{className:a()(c().alertIconAndTextBlock,k),"data-testid":S,children:[(0,_.jsx)("div",{className:c().roundAlertIcon,children:(0,_.jsx)(u.J,{size:24,icon:f[i],className:P})}),"medium"===h&&(0,_.jsxs)("div",{children:[b&&(0,_.jsx)(d.mj,{className:c().title,children:b}),(0,_.jsx)(d.iO,{className:c().textInformationBlock,children:g})]}),"small"===h&&(0,_.jsxs)("div",{children:[b&&(0,_.jsx)(d.mj,{className:c().title,children:b}),(0,_.jsx)(d.YS,{className:c().textInformationBlock,children:g})]})]})}},2079:function(e,t,o){"use strict";o.d(t,{X:function(){return d}});var r=o(59499),n=o(94184),i=o.n(n),a=o(25675),s=o.n(a),l=o(99201),c=o.n(l),u=o(85893),d=function(e){var t,o=e.id,n=e.name,a=e.labelText,l=e.className,d=e.isDisabled,m=e.onChange,_=e.checked,p=e.children,f=e.errorMessage,h=e.dataTestId,x=e.isCircle;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("label",{htmlFor:o,className:i()(c().label,l,{disabled:d}),"data-testid":h,children:[_&&!x&&(0,u.jsx)("div",{className:c().image,children:(0,u.jsx)(s(),{src:d?"/components/Checkbox/check-gray.svg":"/components/Checkbox/check.svg",width:16,height:16,className:c().borderRadiusForDisabled,alt:""})}),_&&x&&(0,u.jsx)("div",{className:c().circle}),(0,u.jsx)("input",{type:"checkbox",id:o,name:n,checked:_,onChange:function(e){m(e.target.checked)},className:i()(c().checkbox,(t={},(0,r.Z)(t,c().errorBorder,f),(0,r.Z)(t,c().circleInput,x),t)),"data-testid":h?"".concat(h,"--input"):void 0,disabled:d}),(0,u.jsx)("span",{className:i()(c().labelText,(0,r.Z)({},c().textColorForDisabled,d)),children:p||a})]}),f&&(0,u.jsx)("span",{className:i()(c().errorMessage),"data-testid":h?"".concat(h,"--error"):void 0,children:f})]})}},35556:function(e,t,o){"use strict";o.d(t,{_:function(){return c}});var r=o(59499),n=o(94184),i=o.n(n),a=o(8339),s=o.n(a),l=o(85893),c=function(e){var t=e.labelType,o=e.labelText,n=e.className,a=i()(s().label,(0,r.Z)({},s()[t],s()[t]),n);return(0,l.jsxs)("div",{className:a,children:[" ",o," "]})}},33909:function(e,t,o){"use strict";o.d(t,{y:function(){return s}});var r=o(4486),n=o(97961),i=o.n(n),a=o(85893),s=function(){return(0,a.jsxs)("div",{className:i().labelImport,children:[(0,a.jsx)(r.J,{icon:"errorFilled16x16",width:12,height:12,className:i().iconImport}),"ÐмпоÑÑ"]})}},17710:function(e,t,o){"use strict";o.d(t,{T:function(){return c}});var r=o(59499),n=o(94184),i=o.n(n),a=o(37734),s=o.n(a),l=o(85893),c=function(e){var t,o=e.switcherHandler,n=e.isActive,a=e.isDisabled,c=e.className,u=e.size,d=e.dataTestId;return(0,l.jsx)("div",{"data-testid":void 0===d?"switcher":d,className:i()(c,s().root,(t={},(0,r.Z)(t,s().disabled,a),(0,r.Z)(t,s().wrapperFalse,!n),(0,r.Z)(t,s().small,"s"===(void 0===u?"m":u)),t)),onClick:function(){a||o()}})}},10772:function(e,t,o){"use strict";o.d(t,{O:function(){return m}});var r=o(59499),n=o(94184),i=o.n(n),a=o(11163),s=o.n(a),l=o(89637),c=o(51193),u=o.n(c),d=o(85893),m=function(e){var t,o=e.isActive,n=e.href,a=e.label,c=e.counter,m=e.hasError,_=e.onClick,p=e.dataTestId;return(0,d.jsxs)("button",{type:"button",className:i()(u().tab,(0,r.Z)({},u().tabActive,o)),onClick:function(){n&&s().push(n),_&&_()},"data-testid":p,children:[(0,d.jsx)(l.u5,{className:i()((0,r.Z)({},u().labelActive,o)),children:a}),!!c&&(0,d.jsx)("div",{className:i()(u().counter,(t={},(0,r.Z)(t,u().counterActive,o),(0,r.Z)(t,u().counterError,m),t)),children:c})]})}},61518:function(e,t,o){"use strict";o.d(t,{m:function(){return l}});var r=o(94184),n=o.n(r),i=o(8317),a=o.n(i),s=o(85893),l=function(e){var t=e.children,o=e.className;return(0,s.jsx)("nav",{className:n()(a().tabs,o),children:t})}},69334:function(e,t,o){"use strict";o.d(t,{u:function(){return p}});var r,n=o(59499),i=o(68067),a=o(50184),s={small:95,middle:210,full:248},l=((r={}).small="small",r.middle="middle",r.full="full",r),c=o(17490),u=o.n(c),d=o(85893);function m(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,r)}return o}function _(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};
1t%2?m(Object(o),!0).forEach(function(t){(0,n.Z)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):m(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var p=function(e){var t=e.content,o=e.title,r=e.direction,n=e.children,c=e.background,m=void 0===c?"dark":c,p=e.size,f=void 0===p?l.full:p,h=e.textLink,x=e.dataTestId,v=e.borderRadius,k=e.moveTooltipLeft,b=e.moveTooltipRight,g=e.moveArrowLeft,j=e.moveArrowRight,y=e.zIndex,N=(0,d.jsxs)("span",{children:[o&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{className:u().title,children:o}),(0,d.jsx)("br",{})]}),h?(0,d.jsx)(a.a,{className:u().link,href:h,target:"_blank",dataTestId:"tooltip__link",children:t}):t]});return(0,d.jsx)(i.Z,{title:N,placement:void 0===r?"top":r,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:y}},slotProps:{tooltip:{"data-testid":void 0===x?"tooltip":x,sx:_(_(_({bgcolor:"dark"===m?"var(--palettes-gray-190)":"var(--text-secondary)",color:"dark"===m?"var(--text-secondary)":"var(--palettes-gray-190)",minWidth:"41px",maxWidth:{xs:"calc(100vw - 24px)",sm:s[f]},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!==v&&{borderRadius:"".concat(v,"px")}),void 0!==k&&{ml:"".concat(k,"px")}),void 0!==b&&{mr:"".concat(b,"px")})},arrow:{sx:_(_({color:"dark"===m?"var(--palettes-gray-190)":"var(--text-secondary)"},void 0!==g&&{ml:"".concat(g,"px")}),void 0!==j&&{mr:"".concat(j,"px")})}},children:(0,d.jsx)("span",{children:n})})}},89074:function(e,t,o){"use strict";o.d(t,{x:function(){return l}});var r=o(4730),n=o(56362),i=o.n(n),a=o(85893),s=["dataTestId"],l=function(e){var t=e.dataTestId,o=(0,r.Z)(e,s);return(0,a.jsxs)("div",{className:i().container,"data-testid":void 0===t?"bookLoader--container":t,children:[(0,a.jsx)("div",{className:i().iconContainer,children:(0,a.jsxs)("svg",{width:"52px",height:"54px",viewBox:"0 0 52 54",version:"1.1",children:[(0,a.jsx)("rect",{fill:"#FF4C00",x:"0",y:"15",width:"52",height:"39"}),(0,a.jsx)("rect",{fill:"#CF3E00",opacity:"0.900000036",x:"3",y:"51",width:"46",height:"3"}),(0,a.jsx)("polygon",{fill:"#C7C6C1",points:"26 13 49.5735685 12.2915037 49.5735685 51.2915037 26 52"}),(0,a.jsxs)("polygon",{fill:"#C7C6C1",points:"26 13 49.5735685 12.2915037 49.5735685 51.2915037 26 52",children:[(0,a.jsx)("animate",{begin:"0s",fill:"freeze",attributeName:"points",dur:"300ms",repeatCount:"indefinite",to:"26 13 44.372231 3.8589904 44.372231 42.8589904 26 52"}),(0,a.jsx)("animate",{begin:"0s",fill:"freeze",attributeName:"fill",dur:"300ms",repeatCount:"indefinite",to:"#D9D8D2"})]}),(0,a.jsxs)("polygon",{fill:"#D9D8D2",points:"26 13 44.372231 3.8589904 44.372231 42.8589904 26 52",children:[(0,a.jsx)("animate",{begin:"0s",fill:"freeze",attributeName:"points",dur:"300ms",repeatCount:"indefinite",to:"26 13 36.3883757 0.178966842 36.3883757 39.1789668 26 52"}),(0,a.jsx)("animate",{begin:"0s",fill:"freeze",attributeName:"fill",dur:"300ms",repeatCount:"indefinite",to:"#EDECE6"})]}),(0,a.jsxs)("polygon",{fill:"#EDECE6",points:"26 13 36.3883757 0.178966842 36.3883757 39.1789668 26 52",children:[(0,a.jsx)("animate",{begin:"0s",fill:"freeze",attributeName:"points",dur:"300ms",repeatCount:"indefinite",to:"26 13 30.3765696 0.292749915 30.3765696 39.2927499 26 52"}),(0,a.jsx)("animate",{begin:"0s",fill:"freeze",attributeName:"fill",dur:"300ms",repeatCount:"indefinite",to:"#F2F1EB"})]}),(0,a.jsxs)("polygon",{fill:"#F2F1EB",points:"26 13 30.3765696 0.292749915 30.3765696 39.2927499 26 52",children:[(0,a.jsx)("animate",{begin:"0s",fill:"freeze",attributeName:"points",dur:"300ms",repeatCount:"indefinite",to:"26 15 26 0.960355416 26 41.1230808 26 54"}),(0,a.jsx)("animate",{begin:"0s",fill:"freeze",attributeName:"fill",dur:"300ms",repeatCount:"indef
1inite",to:"#F2F1EB"})]}),(0,a.jsx)("polygon",{id:"Rectangle-2",fill:"#C7C6C1",points:"26 13 26 52 2.42643155 51.2915037 2.42643155 12.2915037"}),(0,a.jsxs)("polygon",{fill:"#D9D8D2",points:"26 13 26 52 7.62776902 42.8589904 7.62776902 3.8589904",children:[(0,a.jsx)("animate",{begin:"0s",fill:"freeze",attributeName:"points",dur:"300ms",repeatCount:"indefinite",to:"26 13 26 52 2.42643155 51.2915037 2.42643155 12.2915037"}),(0,a.jsx)("animate",{begin:"0s",fill:"freeze",attributeName:"fill",dur:"300ms",repeatCount:"indefinite",to:"#C7C6C1"})]}),(0,a.jsxs)("polygon",{fill:"#EDECE6",points:"26 13 26 52 15.6116243 39.1789668 15.6116243 0.178966842",children:[(0,a.jsx)("animate",{begin:"0s",fill:"freeze",attributeName:"points",dur:"300ms",repeatCount:"indefinite",to:"26 13 26 52 7.62776902 42.8589904 7.62776902 3.8589904"}),(0,a.jsx)("animate",{begin:"0s",fill:"freeze",attributeName:"fill",dur:"300ms",repeatCount:"indefinite",to:"#D9D8D2"})]}),(0,a.jsxs)("polygon",{fill:"#F2F1EB",points:"26 13 26 52 21.6234304 39.2927499 21.6234304 0.292749915",children:[(0,a.jsx)("animate",{begin:"0s",fill:"freeze",attributeName:"points",dur:"300ms",repeatCount:"indefinite",to:"26 13 26 52 15.6116243 39.1789668 15.6116243 0.178966842"}),(0,a.jsx)("animate",{begin:"0s",fill:"freeze",attributeName:"fill",dur:"300ms",repeatCount:"indefinite",to:"#EDECE6"})]}),(0,a.jsx)("polygon",{fill:"#F2F1EB",points:"26 13 26 52 25.6234304 39.2927499 25.6234304 0.292749915",children:(0,a.jsx)("animate",{begin:"0s",fill:"freeze",attributeName:"points",dur:"300ms",repeatCount:"indefinite",to:"26 13 26 52 21.6234304 39.2927499 21.6234304 0.292749915"})})]})}),(0,a.jsx)("div",{className:i().message,children:o.message||"ÐагÑÑзка..."})]})}},61568:function(e,t,o){"use strict";o.d(t,{Fh:function(){return y},iB:function(){return k},vv:function(){return j}});var r,n=o(59499),i=o(94184),a=o.n(i),s=o(11752),l=o.n(s),c=o(25675),u=o.n(c),d=o(67294),m=o(42467),_=o(89637),p=o(60312),f={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}},h=o(37371),x=o.n(h),v=o(85893),k=((r={}).small="small",r.medium="medium",r.large="large",r.extraLarge="extraLarge",r.smallAudio="smallAudio",r.betweenSmallAndMediumAudio="betweenSmallAndMediumAudio",r.mediumAudio="mediumAudio",r.largeAudio="largeAudio",r.extraLargeAudio="extraLargeAudio",r.extraSmall="extraSmall",r),b=function(e){if(!e)return null;var t=e.trim();return t?/^https?:\/\//i.test(t)?t.replace(/\/$/,""):"https://".concat(t.replace(/^\/+/,"")):null},g=function(){var e=(l()()||{}).publicRuntimeConfig;return b(null==e?void 0:e.host)||(window.location.origin?window.location.origin:"https://selfpub.dev")},j=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=g();try{return new URL(e,t).toString()}catch(t){return e}},y=function(e){var t=e.pictureFile,o=void 0===t?null:t,r=e.pathToPicture,i=e.bookName,s=e.className,l=e.classNameImg,c=e.size,h=void 0===c?"medium":c,k=e.ageRating,b=e.censored,g=e.onClick,y=e.pathToFullSize,N=e.isLink,w=void 0===N||N,C=e.isLoading,B=e.forceShowIllustration,T=void 0!==B&&B,S=e.dataTestId,P=i.slice(0,1).toLocaleUpperCase(),L=f[h].width/3.6,O=f[h].height/11.25,I=f[h].width/7.5,M=(0,d.useMemo)(function(){return!!b&&!!T||!!(b&&!r)},[b,r,T]),D=(0,d.useMemo)(function(){return(!!k||!!b)&&!!T||!!((k||b)&&!r)},[b,r,T,k]);return(0,v.jsxs)("div",{className:a()("shadowLevel0",x().coverBlock,s,x()[h]),onClick:g,"data-testid":S,children:[void 0!==C&&C&&(0,v.jsx)("div",{className:x().loaderContainer,children:(0,v.jsx)(p.D,{})}),(0,v.jsxs)("div",{className:a()(x().illustrationWrapper,(0,n.Z)({},x().censored,k&&!b)),children:[M&&(0,v.jsx)(m.Q,{className:x().illustrationIcon,imageType:"censored",width:L,height:O}),D&&(0,v.jsx)(m.Q,{className:x().illustrationIcon,imageType:"ageRating",width:I,height:I})]}),function(){if(o){var e=URL.createObjectURL(o);return(0,v.jsx)(u(),{src:e,alt:i,width:f[h].width,height:f[h].height})}return r?(0,v.jsx)("a",{href:y||r,target:"_blank",rel:"noreferrer",className:a()(x().cover,x().coverImg,l,(0,n.Z)({},x().notLink,!w)),children:(0,v.jsx)(u(),{src:j(r),alt:i,width:f[h].width,height:f[h].height})}):(0,v.jsx)("div",{className:a()(x().cover,l,(0,n.Z)({},x()[h],h)),children:(0,v.jsx)(_.H1,{className:x().firstLetter,children:P})})}()]})}},33960:function(e,t,o){"use strict";o.d(t,{o:function(){return _}});var r=o(59499),n=o(94184),i=o.n(n),a=o(35407),s=o(42467),l=o(89637),c=o(61568),u=o(81029),d=o.n(u),m=o(85893),_=function(e){var t,o=e.className,n=e.illustrationName,u=e.illustrationHeight,_=e.illustrationWidth,p=e.illustrationFormat,f=e.isBookCover,h=e.bookCoverSize,x=void 0===h?c.iB.small:h,v=e.bookCoverPathToPicture,k=e.headTitle,b=e.title,g=e.subTitle,j=e.buttonText,y=e.buttonHandler,N=e.buttonHref,w=e.dataTestId;return(0,m.jsxs)("div",{className:i()(d().container,o),"data-testid":w,children:[n&&(0,m.jsx)(s.Q,{imageType:n,height:u,width:_,format:p}),f&&(0,m.jsx)(c.Fh,{bookName:null!=k?k:"",size:x,pathToPicture:v}),k&&(0,m.jsx)(l.H2,{className:i()(d().headTitle,(t={},(0,r.Z)(t,d().headTitleWithButton,j),(0,r.Z)(t,d().headTitleWithBookCover,f),t)),children:(0,m.jsx)(l.T,{children:k})}),(0,m.jsx)(l.K0,{className:i()(d().title,(0,r.Z)({},d().titleWithButton,j)),dataTestId:"no-content-stub-text",children:b}),g&&(0,m.jsx)(l.K0,{className:d().subTitle,children:(0,m.jsx)(l.T,{children:g})}),j&&(0,m.jsx)(a.z,{onClick:y,href:N,size:"large",dataTestId:"no-content-stub-button",children:(0,m.jsx)(l.T,{children:j})})]})}},91695:function(e,t,o){"use strict";o.d(t,{P:function(){return m}});var r=o(59499),n=o(94184),i=o.n(n),a=o(35407),s=o(4486),l=o(89637),c=o(16077),u=o.n(c),d=o(85893),m=function(e){var t,o=e.buttonText,n=e.buttonHandler,c=e.buttonClose,m=e.status,_=e.className,p=e.header,f=e.description,h=e.position;return(0,d.jsxs)("div",{className:i()(u().root,"shadowLevel2",_,(t={},(0,r.Z)(t,u().mainWithoutButton,"error"===m),(0,r.Z)(t,u().positionTopRight,"topRight"===h),(0,r.Z)(t,u().positionBottomRight,"bottomRight"===h),t)),children:[(0,d.jsxs)("div",{className:u().leftWrapper,children:["success"===m&&(0,d.jsx)(s.J,{icon:"checkCircleOutline24x24",size:24,color:"var(--palettes-green-100)"}),"error"===m&&(0,d.jsx)(s.J,{icon:"errorOutline24x24",size:24,color:"var(--aliases-error)"}),"warning"===m&&(0,d.jsx)(s.J,{icon:"infoOutline24x24",size:24,color:"var(--palettes-blue-100)"}),(0,d.jsx)(l.mj,{className:u().header,children:(0,d.jsx)(l.T,{children:p})}),(0,d.jsx)(l.OE,{className:u().subHeader,children:"string"==typeof f?(0,d.jsx)(l.T,{children:f}):f}),o&&!!n&&(0,d.jsx)(a.z,{onClick:n,size:"small",className:u().turnButton,dataTestId:"notification__button",children:(0,d.jsx)(l.iO,{className:u().buttonText,children:o})})]}),(0,d.jsx)(s.J,{onClick:c,icon:"closeOutline24x24",size:24,className:u().closeIcon})]})}},64729:function(e,t,o){"use strict";o.d(t,{f:function(){return n}});var r,n=((r={}).draft="draft",r.free="free",r.exclusive="exclusive",r.nonExclusive="non_exclusive",r.authorExclusive="author_exclusive",r)},34119:function(e,t,o){"use strict";o.d(t,{P:function(){return _}});var r=o(59499),n=o(94184),i=o.n(n),a=o(3490),s=o(18896),l=o(4486),c=o(89637),u=o(69482),d=o.n(u),m=o(85893),_=function(e){var t,o=e.onMoveBack,n=e.onOpenComments,u=e.onOpenHistory,_=e.onOpenSidebar,p=e.bookId,f=e.bookName;return(0,m.jsx)("div",{className:i()(d().root,(t={},(0,r.Z)(t,d().isQueue,!!_),(0,r.Z)(t,d().isContentScan,!!p&&!!f),t)),children:(0,m.jsxs)("div",{className:d().wrapper,children:[!!o&&(0,m.jsx)(s.L,{className:d().exitButton,icon:"logoutOutline16x16",iconSize:16,onClick:o,dataTestId:"stickyHeaderModeration__exitButton",children:"ÐÑйÑи"}),!!u&&(0,m.jsx)(s.L,{className:d().historyButton,icon:"timerOutline16x16",iconSize:16,onClick:u,dataTestId:"stickyHeaderModeration__historyButton",children:"ÐÑÑоÑÐ¸Ñ Ð¼Ð¾Ð´ÐµÑаÑии"}),!!p&&!!f&&(0,m.jsxs)("div",{className:d().leftWrapper,children:[(0,m.jsx)(s.L,{icon:"arrowLeftOutline24x24",iconPosition:"left",iconColor:"white",href:"".concat(a.x.moderation.book.new).concat(p,"/"),dataTestId:"stickyHeaderModeration__bookButton"}),(0,m.jsx)(l.J,{className:d().icon,icon:"bookV2",color:"var(--palettes-gray-60)"}),(0,m.jsx)(c.OE,{className:d().bookName,children:f})]}),!!_&&(0,m.jsx)(s.L,{className:i()(d().menuButton,(0,r.Z)({},d().isContentScan,!!p&&!!f)),icon:"burgerMenuOutline24x24",iconSize:24,onClick:_,dataTestId:"stickyHeaderModeration__sidebarButton",children:"ÐенÑ"}),!!n&&(0,m.jsx)(s.L,{className:d().commentsButton,icon:"reviews",iconSize:24,onClick:n,dataTestId:"stickyHeaderModeration__commentsButton",children:"ÐомменÑаÑии"})]})})}},99844:function(e,t,o){"use strict";o.r(t),o.d(t,{__N_SSP:function(){return of},default:function(){return oh}});var r,n,i=o(59499),a=o(5214),s=o(94184),l=o.n(s),c=function(e,t,o){var r=0;return(void 0!==e&&Object.keys(e).length>0&&(r=Object.values(e).reduce(function(e,t){return e+t})),void 0!==t&&(r+=t),void 0!==o&&(r+=o),r>0)?r:void 0},u=o(14416),d=o(50184),m=o(18896),_=o(42467),p=function(e){return e.moderation.tabName},f=function(e){return e.moderation[e.moderation.tabName]},h=function(e){return e.moderation.profiles},x=function(e){return e.moderation.metaProfiles},v=function(e){return e.moderation.moderators},k=function(e){return e.moderation.metaModerators},b=function(e){return e.moderation.filtersCheckBoxGroup},g=function(e){return e.moderation.filtersCheckBox},j=function(e){return e.moderation.filtersAutocompleteGroup},y=function(e){return e.moderation.filtersSwitchers},N=function(e){return e.moderation.counters},w=function(e){return e.moderation.allQueueBooksNew},C=function(e){return e.moderation.allQueueBooksReturns}
1,B=function(e){return e.moderation.allQueueProfileNew},T=function(e){return e.moderation.allQueueProfileReturns},S=function(e){return e.moderation.finalQueueBooksErrors},P=function(e){return e.moderation.finalQueueBooksFreezed},L=function(e){return e.moderation.finalQueueBooksNew},O=function(e){return e.moderation.finalQueueBooksReturns},I=function(e){return e.moderation.myBooksQueueNew},M=function(e){return e.moderation.myBooksQueueReturns},D=function(e){return e.moderation.myQueueProfilesNew},Q=function(e){return e.moderation.myQueueProfilesReturns},A=function(e){return e.moderation.errors},E=o(36613),F=o(8635),Z=o(37829),z=o(6736),H=[{iconName:"linesOutline24x24",title:"ÐÑеÑеди",propsName:"queue",pageBook:"allBooks",pageProfile:"allProfiles",subTitleBook:"Ðниги",subTitleProfile:"ÐÑоÑили"},{iconName:"userOutline24x24",title:"ÐÐ¾Ñ Ð¾ÑеÑедÑ",propsName:"myQueue",pageBook:"myBooks",pageProfile:"myProfiles",subTitleBook:"Ðниги",subTitleProfile:"ÐÑоÑили"},{iconName:"crownOutline24x24",title:"ФиналÑÐ½Ð°Ñ Ð¾ÑеÑедÑ",propsName:"finalQueue",pageBook:"finalBooks",pageProfile:"",subTitleBook:"Ðниги"}],R=o(11163),q=o(67294),W=o(4486),K=o(94952),J=o.n(K),U=o(85893),V=function(e){var t=e.iconView,o=e.bookCounter,r=e.profileCounter,n=e.onCloseMobile,a=(0,q.useState)(!1),s=a[0],c=a[1],u=(0,R.useRouter)(),d=u.query.currentTab,_=function(){c(!s)},p=function(e){d!==e&&(n(),u.push("?currentTab=".concat(e)))};return(0,U.jsx)("div",{className:J().root,children:H.map(function(e){var n=e.iconName,a=e.title,c=e.propsName,u=e.subTitleBook,f=e.subTitleProfile,h=e.pageBook,x=e.pageProfile;if(t===c)return(0,U.jsxs)("div",{children:[(0,U.jsx)("div",{className:l()(J().dropDown,(0,i.Z)({},J().active,!s)),children:(0,U.jsxs)("div",{className:J().dropDownHeader,children:[(0,U.jsx)("div",{className:J().dropDownHeaderIcon,children:(0,U.jsx)(W.J,{icon:n,size:24})}),(0,U.jsx)("div",{className:J().dropDownHeaderButton,children:(0,U.jsx)(m.L,{onClick:_,icon:s?"chevronDownOutline16x16":"chevronUpOutline16x16",iconSize:16,isDarkTheme:!0,isActive:!s,isFullWidth:!0,dataTestId:"dropDownButton__button",children:(0,U.jsx)("span",{className:J().dropDownHeaderTitle,children:a})})})]})}),!s&&(0,U.jsxs)("div",{className:J().dropDownContent,children:[(0,U.jsxs)("div",{className:l()(J().dropDownContentItem,(0,i.Z)({},J().isActiveButton,d===h)),onClick:function(){return p(h)},children:[(0,U.jsx)("span",{className:J().dropDownContentTitle,children:u}),o&&(0,U.jsx)("div",{className:J().counter,children:o})]}),"finalQueue"!==t&&(0,U.jsxs)("div",{className:l()(J().dropDownContentItem,(0,i.Z)({},J().isActiveButton,d===x)),onClick:function(){return p(x)},children:[(0,U.jsx)("span",{className:J().dropDownContentTitle,children:f}),r&&(0,U.jsx)("span",{className:J().counter,children:r})]})]})]},a)})})},G=o(89637),Y=o(82599),X=o.n(Y),$={main_moderator:(0,U.jsx)(W.J,{icon:"mainModerator",size:40}),moderator:(0,U.jsx)(W.J,{icon:"moderator",size:40})},ee=function(e){var t=e.className,o=e.iconView,r=(0,u.v9)(E.d).email,n=void 0===r?"":r,i=n?n.split("@")[0]:"",a=n?n.split("@")[1]:"";return(0,U.jsxs)("div",{className:l()(X().content,t),children:[$[o],i&&i.length>=24&&(0,U.jsx)(G.K0,{className:X().email,children:i.slice(0,24)+"...@"+a}),i.length<24&&(0,U.jsxs)(G.K0,{className:X().email,children:[(0,U.jsx)(G.T,{children:n||""})," "]})]})},et=o(68907),eo=o.n(et),er=function(e){var t=e.isOpen,o=e.onClose,r=(0,u.v9)(E.eW),n=(0,u.v9)(N),s=(0,u.I0)(),p=(0,a.Z)((0,z.i)(1279)),f=c(null==n?void 0:n.book_queue),h=c(null==n?void 0:n.profile_queue),x=c(null==n?void 0:n.moderation_book),v=c(null==n?void 0:n.moderation_profile),k=c(null==n?void 0:n.moderation_book_final,null==n?void 0:n.moderation_book_final_error,null==n?void 0:n.moderation_book_final_freezed),b=function(){s((0,Z.j)())},g=function(){p&&o()};return(0,U.jsxs)("aside",{className:l()(eo().root,(0,i.Z)({},eo().isClosed,!t)),children:[(0,U.jsx)(m.L,{className:eo().closeButton,icon:"closeOutline24x24",iconSize:24,onClick:o,dataTestId:"sider__closeButton"}),(0,U.jsx)(d.a,{className:eo().header,href:"/",dataTestId:"sider__headerLink",children:(0,U.jsx)(_.Q,{imageType:"logoModerationFull",width:p?181:272,height:p?27:40})}),(0,U.jsxs)("div",{className:eo().userBlock,children:[(0,U.jsx)(ee,{iconView:"moderator"}),p&&(0,U.jsx)(m.L,{icon:"logoutOutline16x16",iconSize:16,isDarkTheme:!0,onClick:b,className:eo().exitButtonMobile,dataTestId:"sider__exitMobileButton",children:"ÐÑйÑи"})]}),(0,U.jsxs)("div",{className:eo().content,children:[(0,U.jsx)(V,{iconView:"queue",bookCounter:f,profileCounter:h,onCloseMobile:g}),(0,U.jsx)(V,{iconView:"myQueue",bookCounter:x,profileCounter:v,onCloseMobile:g}),Array.isArray(r)&&r.includes(F.uA.mainModerators)&&(0,U.jsx)(V,{iconView:"finalQueue",bookCounter:k,onCloseMobile:g})]}),(0,U.jsx)("div",{className:eo().footer,children:(0,U.jsx)(m.L,{icon:"logoutOutline16x16",iconSize:16,isDarkTheme:!0,onClick:b,dataTestId:"sider__exitButton",children:"ÐÑйÑи"})})]})},en=o(14527),ei=o(34119),ea=o(19124),es=o.n(ea);function el(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,r)}return o}var ec=function(e){var t=e.children,o=e.seo,r=(0,q.useState)(!1),n=r[0],a=r[1],s=function(){var e;null===(e=document.querySelector("body"))||void 0===e||e.classList.add("ReactModal__Body--open")},l=function(){var e;null===(e=document.querySelector("body"))||void 0===e||e.classList.remove("ReactModal__Body--open")};return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(en.a,function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};
1t%2?el(Object(o),!0).forEach(function(t){(0,i.Z)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):el(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}({},o)),(0,U.jsxs)("div",{className:es().root,children:[(0,U.jsx)(ei.P,{onOpenSidebar:function(){a(!0),s()}}),(0,U.jsx)(er,{isOpen:n,onClose:function(){a(!1),l()}}),(0,U.jsx)("main",{className:es().main,children:(0,U.jsx)("div",{className:es().wrapper,children:t})})]})]})},eu=o(50029),ed=o(64687),em=o.n(ed),e_=o(84035),ep=o(35407),ef=o(70204),eh=o.n(ef),ex=function(e){var t=e.counter,o=e.buttonHandler,r=e.isLoadingFooter;return(0,U.jsx)("div",{className:eh().root,children:(0,U.jsxs)("div",{className:eh().content,children:[(0,U.jsx)(ep.z,{isLoading:r,onClick:o,dataTestId:"stickyFooter__button",children:(0,U.jsx)(G.iO,{className:eh().buttonText,children:(0,U.jsx)(G.T,{children:"ÐзÑÑÑ Ð½Ð° модеÑаÑиÑ: ".concat(t||"")})})}),(0,U.jsxs)("div",{className:eh().notification,children:[(0,U.jsx)(W.J,{icon:"infoOutline24x24",className:eh().icon,size:24,color:"var(--palettes-blue-100)"}),(0,U.jsx)(G.iO,{className:eh().text,children:(0,U.jsx)(G.T,{children:"ÐеÑнÑÑÑ Ð¾Ð±ÑаÑно в оÑеÑÐµÐ´Ñ Ð±ÑÐ´ÐµÑ Ð½ÐµÐ»ÑзÑ"})})]})]})})},ev=((r={}).new="new",r.returned="returned",r.errors="errors",r.paused="paused",r),ek=((n={}).allBooks="all_books",n.allProfiles="all_profiles",n.myBooks="my_books",n.myProfiles="my_profiles",n.finalBooks="final_books",n),eb=o(38739),eg=o(10772),ej=o(61518),ey=o(91695),eN=o(93202),ew=o(58563),eC=o(97866),eB=o(55306),eT=o(85627),eS=function(e,t){for(var o=[],r=e[t],n=0,i=Object.keys(r);n<i.length;n++){var a=i[n];r[a].checked&&o.push(a)}return o},eP=function(e,t,o){for(var r=e[o],n=t[o],i=0,a=Object.keys(n);i<a.length;i++){var s=a[i];if(r[s].checked!==n[s].checked)return{key:s,changedTo:!!n[s].checked}}},eL=function(e,t){return{removed:e.find(function(e){return!t.includes(e)}),added:t.find(function(t){return!e.includes(t)})}},eO=o(57901),eI=o(90116),eM=o(20286),eD=o(2079),eQ=o(3753),eA=o(35685),eE=o(89074),eF=o(92023),eZ=o.n(eF);function ez(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,r)}return o}function eH(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ez(Object(o),!0).forEach(function(t){(0,i.Z)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ez(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var eR=function(e){var t=e.value,o=e.fetchItems,r=e.isMulti,n=e.onChange,a=e.placeholder,s=e.optionsArray,c=e.fetchMoreAccountHandler,u=e.errorMessage,d=e.isShowButtonMore;return(0,U.jsxs)("div",{children:[(0,U.jsx)(eA.Z,{instanceId:1,isMulti:void 0===r||r,value:t,loadOptions:o,defaultOptions:s,components:d?{Menu:function(e){var t=e.selectProps.fetchMoreProfileHandler,o=e.isLoading,r=e.children;return(0,U.jsx)(eQ.c.Menu,eH(eH({},e),{},{children:(0,U.jsxs)("div",{children:[o?(0,U.jsx)(eE.x,{}):(0,U.jsx)("div",{children:r}),(0,U.jsx)("button",{className:eZ().changeData,onClick:t,type:"button",children:(0,U.jsx)(G.T,{children:"ÐагÑÑзиÑÑ ÐµÑÑ"})})]})}))}}:void 0,onChange:function(e){e&&!Array.isArray(e)?n([e]):n(e||[])},fetchMoreProfileHandler:c,loadingMessage:function(){return"ÐагÑÑзка"},noOptionsMessage:function(){return"ÐопÑобÑйÑе ÑÑоÑниÑÑ Ð¿Ð¾Ð¸Ñк"},placeholder:a,className:l()("select-container",{withError:u}),classNamePrefix:"select"}),(0,U.jsx)("div",{className:l()(eZ().helpText,(0,i.Z)({},eZ().withError,u)),children:u})]})},eq=o(20764),eW=o(42221),eK=function(e){var t=e.groupName,o=e.shouldAddModeratorEmail,r=e.moderatorEmail,n=e.errorMessage,i=(0,q.useState)(!0),a=i[0],s=i[1],l=(0,u.I0)(),c=(0,u.v9)(v),d=(0,u.v9)(k),m=(0,u.v9)(j),_=(0,u.v9)(f),p=(0,u.v9)(E.go);function h(){return(h=(0,eu.Z)(em().mark(function e(){return em().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!("number"!=typeof(null==d?void 0:d.nex_page))){e.next=3;break}return s(!1),e.abrupt("return");case 3:return e.next=5,l((0,eq.h)({page:d.nex_page}));case 5:case"end":return e.stop()}},e)}))).apply(this,arguments)}function x(){return(x=(0,eu.Z)(em().mark(function e(t){var o,r;return em().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o="moderatorsAutocomplete",e.next=3,(0,eW.B)({apiPointName:o,queryParams:{term:t,page:1}});case 3:return r=e.sent.result,e.abrupt("return",r.data);case 6:case"end":return e.stop()}},e)}))).apply(this,arguments)}function b(){return(b=(0,eu.Z)(em().mark(function e(n){var i;return em().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(i=n.map(function(e){return"".concat(e.value)}),o&&r&&i.push(r),l((0,eN.F1)(t,i)),_.type!==eM.B.BOOK){e.next=6;break}return e.next=6,l((0,eB.$)({}));case 6:if(_.type!==eM.B.PROFILE){e.next=9;break}return e.next=9,l((0,eO.A)({}));case 9:case"end":return e.stop()}},e)}))).apply(this,arguments)}(0,q.useEffect)(function(){(0,eu.Z)(em().mark(function e(){return em().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!p){e.next=3;break}return e.next=3,l((0,eq.h)({}));case 3:case"end":return e.stop()}},e)}))()},[l,p]);var g=(0,q.useMemo)(function(){return m[t].map(function(e){return{value:e,label:e}})},[m[t]]);return(0,U.jsx)(eR,{value:g,fetchItems:function(e){return x.apply(this,arguments)},onChange:function(e){return b.apply(this,arguments)},errorMessage:n,placeholder:"Ðниги дÑÑгиÑ
модеÑаÑоÑов",fetchMoreAccountHandler:function(){return h.apply(this,arguments)},optionsArray:c,isShowButtonMore:a})},eJ=o(60483),eU=function(e){var t=e.groupName,o=e.errorMessage,r=(0,q.useState)(!0),n=r[0],i=r[1],a=(0,u.I0)(),s=(0,u.v9)(E.go),l=(0,u.v9)(h),c=(0,u.v9)(x),d=(0,u.v9)(j);function m(){return(m=(0,eu.Z)(em().mark(function e(){return em().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!("number"!=typeof(null==c?void 0:c.nex_page))){e.next=3;break}return i(!1),e.abrupt("return");case 3:return e.next=5,a((0,eJ.Y)({page:c.nex_page}));case 5:case"end":return e.stop()}},e)}))).apply(this,arguments)}function _(){return(_=(0,eu.Z)(em().mark(function e(t){var o,r;return em().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o="profilesAutocomplete",e.next=3,(0,eW.B)({apiPointName:o,queryParams:{term:t,page:1}});case 3:return r=e.sent.result,e.abrupt("return",r.data);case 6:case"end":return e.stop()}},e)}))).apply(this,arguments)}function p(){return(p=(0,eu.Z)(em().mark(function e(o){var r;return em().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=o.map(function(e){return"".concat(e.value)}),a((0,eN.F1)(t,r)),e.next=4,a((0,eO.A)({}));case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}(0,q.useEffect)(function(){(0,eu.Z)(em().mark(function e(){return em().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!s){e.next=3;break}return e.next=3,a((0,eJ.Y)({}));case 3:case"end":return e.stop()}},e)}))()},[a,s]);var f=(0,q.useMemo)(function(){return d[t].map(function(e){return{value:e,label:e}})},[d[t]]);return(0,U.jsx)(eR,{value:f,fetchItems:function(e){return _.apply(this,arguments)},onChange:function(e){return p.apply(this,arguments)},errorMessage:o,placeholder:"ÐÑбеÑиÑе пÑоÑилÑ",fetchMoreAccountHandler:function(){return m.apply(this,arguments)},optionsArray:l,isShowButtonMore:n})},eV=o(82729),eG=o.n(eV),eY=function(e){var t=e.groupName,o=e.header,r=e.className,n=(0,u.v9)(E.d),i=(0,u.v9)(b).my_checks_group,a=(0,u.v9)(j).mailModerators,s=n.email,c=i.my_checks,d=c.name,m=c.checked,_=(0,u.v9)(f),p=(0,u.I0)(),h="mailModerators"===t;function x(){return(x=(0,eu.Z)(em().mark(function e(o,r){var n;return em().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(0,eI.Z)(a),r?n.push(s||""):n=n.filter(function(e){return e!==s}),p((0,eN.t1)({groupName:"my_checks_group",id:o,checked:r})),p((0,eN.F1)(t,n)),_.type!==eM.B.BOOK){e.next=7;break}return e.next=7,p((0,eB.$)({}));case 7:if(_.type!==eM.B.PROFILE){e.next=10;break}return e.next=10,p((0,eO.A)({}));case 10:case"end":return e.stop()}},e)}))).apply(this,arguments)}return(0,U.jsxs)("section",{className:l()(eG().profile,r),children:[(0,U.jsx)(G.H2,{className:eG().h2,children:o}),h?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(eD.X,{id:d,name:d,onChange:function(e){return function(e,t){return x.apply(this,arguments)}("my_checks",e)},checked:m,labelText:"".concat(d," ").concat(s||"")}),(0,U.jsx)(eK,{shouldAddModeratorEmail:m,moderatorEmail:s,groupName:t})]}):(0,U.jsx)(eU,{groupName:t})]})},eX=o(17674),e$=o(1326),e0=o.n(e$),e1=function(e){var t=e.className,o=e.timerType,r=e.time,n={successTimer:(0,U.jsx)(W.J,{icon:"timerOutline16x16",color:"var(--aliases-success)",size:16}),warningTimer:(0,U.jsx)(W.J,{icon:"timerOutline16x16",color:"var(--aliases-warning)",size:16}),dangerTimer:(0,U.jsx)(W.J,{icon:"timerOutline16x16",color:"var(--aliases-attention)",size:16}),alertTimer:(0,U.jsx)(W.J,{icon:"errorFilled16x16",color:"var(--aliases-error)",size:16})};return(0,U.jsxs)("div",{className:l()(e0().container,t),children:[n[o],(0,U.jsxs)("div",{className:e0().content,children:["alertTimer"===o&&(0,U.jsxs)(G.iO,{className:e0().timer,children:[r," ",(0,U.jsx)(G.T,{children:" Ñ. иÑÑекло "})]}),"alertTimer"!==o&&(0,U.jsxs)(G.iO,{className:e0().timer,children:[r," ",(0,U.jsx)(G.T,{children:" Ñ. "})]})]})]})},e2=function(e){for(var t=e.className,o=e.toppings,r=e.onChange,n=[],i=0,a=Object.entries(o);i<a.length;i++)!function(){var e,t=(0,eX.Z)(a[i],2),o=t[0],s=t[1],l=s.name,c=s.label,u=s.checked,d=null;"successTimer"===l?d=(0,U.jsx)(e1,{time:24,timerType:"successTimer"}):"warningTimer"===l?d=(0,U.jsx)(e1,{time:16,timerType:"warningTimer"}):"dangerTimer"===l?d=(0,U.jsx)(e1,{time:8,timerType:"dangerTimer"}):"alertTimer"===l&&(d=(0,U.jsx)(e1,{time:24,timerType:"alertTimer"}
1)),n.push((0,U.jsx)(eD.X,{id:l,name:l,onChange:function(e){return r(o,e)},checked:u,labelText:null!==(e=null!=c?c:d)&&void 0!==e?e:l},l))}();return(0,U.jsx)("div",{className:t,children:n})},e9=function(e){var t=e.className,o=e.groupName,r=e.header,n=(0,u.v9)(b),i=(0,u.v9)(f),a=(0,u.I0)(),s=n[o];return(0,U.jsxs)("section",{className:l()(eG().group,t),children:[(0,U.jsx)(G.K0,{className:eG().h2,children:(0,U.jsx)(G.T,{children:r})}),(0,U.jsx)(e2,{onChange:function(e,t){a((0,eN.t1)({groupName:o,id:e,checked:t})),i.type===eM.B.BOOK&&a((0,eB.$)({offset:0})),i.type===eM.B.PROFILE&&a((0,eO.A)({}))},toppings:s})]})},e4=o(17710),e6=o(52206),e3=o.n(e6),e5=o(88653),e8=o.n(e5),e7={statusGroup:(0,U.jsx)(e9,{groupName:"status_group",header:"СÑаÑÑÑ"},1),timerGroup:(0,U.jsx)(e9,{groupName:"processing_time",header:"ÐÑÐµÐ¼Ñ Ð½Ð° пÑовеÑкÑ"},2),moderatorGroup:(0,U.jsx)(eY,{groupName:"mailModerators",header:"ÐÑо пÑовеÑÑл"},4),profileAuthorAutocomplete:(0,U.jsx)(eY,{groupName:"mailProfiles",header:"ÐÑоÑÐ¸Ð»Ñ Ð°Ð²ÑоÑа"},5),licenceGroup:(0,U.jsx)(e9,{groupName:"license_type",header:"ÐиÑензиÑ"},6),authorStatusGroup:(0,U.jsx)(e9,{groupName:"author_status_group",header:"СÑаÑÑÑ Ð¿ÑоÑÐ¸Ð»Ñ Ð°Ð²ÑоÑа"},7),whoReturnGroup:(0,U.jsx)(e9,{groupName:"who_returned_group",header:"ÐÑо веÑнÑл"},8),postModerationSwitch:(0,U.jsx)(function(){var e=(0,u.v9)(y),t=(0,q.useState)(e.postmoderation),o=t[0],r=t[1],n=(0,u.I0)();return(0,q.useEffect)(function(){n((0,eN.OR)({checked:o})),n((0,eB.$)({}))},[o]),(0,U.jsxs)("section",{className:e8().moderatorSwitch,children:[(0,U.jsx)(G.mj,{children:(0,U.jsx)(G.T,{children:"ÐоÑÑмодеÑаÑиÑ"})}),(0,U.jsx)(e4.T,{switcherHandler:function(){r(!o)},isActive:o,isDisabled:!1})]})},{},9),plagiarySwitch:(0,U.jsx)(function(){var e=(0,u.v9)(y),t=(0,q.useState)("plagiary"===e.plagiary),o=t[0],r=t[1],n=(0,u.I0)();return(0,q.useEffect)(function(){n((0,eN.b6)({checked:o})),n((0,eB.$)({}))},[o]),(0,U.jsxs)("section",{className:e3().moderatorSwitch,children:[(0,U.jsx)(G.mj,{children:(0,U.jsx)(G.T,{children:"ÐлагиаÑ"})}),(0,U.jsx)(e4.T,{switcherHandler:function(){r(!o)},isActive:o,isDisabled:!1})]})},{},10),userInBlacklist:(0,U.jsx)(function(e){var t=e.className,o=e.name,r=e.header,n=(0,u.v9)(g),i=(0,u.v9)(f),a=(0,u.I0)();return(0,U.jsxs)("section",{className:l()(eG().group,t),children:[(0,U.jsx)(G.K0,{className:eG().h2,children:(0,U.jsx)(G.T,{children:r})}),(0,U.jsx)(eD.X,{id:o,name:o,onChange:function(e){a((0,eN.mM)({name:o,checked:e})),i.type===eM.B.BOOK&&a((0,eB.$)({offset:0})),i.type===eM.B.PROFILE&&a((0,eO.A)({}))},checked:n[o].checked,labelText:r},o)]})},{name:"is_in_moderation_blacklist",header:"ЧÑÑнÑй ÑпиÑок"},11)},te=function(e){var t=e.className,o=e.filterTypes,r=e.tabName,n=e.modQueue,i=(0,u.v9)(E.d),a=(0,u.v9)(b),s=(0,u.v9)(y),c=(0,u.v9)(j),d=(0,u.I0)(),_=(0,q.useState)(a),p=_[0],f=_[1],h=(0,q.useState)(c.mailModerators),x=h[0],v=h[1],k=(0,q.useState)([]),g=k[0],N=k[1],w=(0,q.useState)([]),C=w[0],B=w[1],T=(0,q.useState)([]),S=T[0],P=T[1],L=(0,q.useState)([]),O=L[0],I=L[1],M=(0,q.useState)([]),D=M[0],Q=M[1],A=(0,q.useState)([]),F=A[0],Z=A[1],z=(0,q.useState)(),H=z[0],R=z[1],W=(0,q.useState)(),K=W[0],J=W[1],V=(0,q.useState)(!1),Y=V[0],X=V[1],$=eP(p,a,"processing_time"),ee=eP(p,a,"license_type"),et=eP(p,a,"author_status_group"),eo=eP(p,a,"who_returned_group"),er=eP(p,a,"status_group"),en=eL(x,c.mailModerators),ei=eL(F,c.mailProfiles);return(0,q.useEffect)(function(){null!=$&&$.changedTo&&(0,e_.nv)({event_type:"apply_filter_click",event_parameters:{mod_queue:n||"",mod_state:r||"",filter_name:"sla",option:$.key}},i),(null==$?void 0:$.changedTo)!==!1||Y||(0,e_.nv)({event_type:"drop_filter_click",event_parameters:{mod_queue:n||"",mod_state:r||"",filter_name:"sla",option:$.key}},i),Y&&g.length>0&&(0,e_.nv)({event_type:"drop_filter_click",event_parameters:{mod_queue:n||"",mod_state:r||"",filter_name:"sla",option:String(g)}},i)},[$,Y]),(0,q.useEffect)(function(){null!=ee&&ee.changedTo&&(0,e_.nv)({event_type:"apply_filter_click",event_parameters:{mod_queue:n||"",mod_state:r||"",filter_name:"license",option:ee.key}},i),(null==ee?void 0:ee.changedTo)!==!1||Y||(0,e_.nv)({event_type:"drop_filter_click",event_parameters:{mod_queue:n||"",mod_state:r||"",filter_name:"license",option:ee.key}},i),Y&&C.length>0&&(0,e_.nv)({event_type:"drop_filter_click",event_parameters:{mod_queue:n||"",mod_state:r||"",filter_name:"license",option:String(C)}},i)},[ee,C]),(0,q.useEffect)(function(){null!=et&&et.changedTo&&(0,e_.nv)({event_type:"apply_filter_click",event_parameters:{mod_queue:n||"",mod_state:r||"",filter_name:"author_profile_status",option:et.key}},i),(null==et?void 0:et.changedTo)!==!1||Y||(0,e_.nv)({event_type:"drop_filter_click",event_parameters:{mod_queue:n||"",mod_state:r||"",filter_name:"author_profile_status",option:et.key}},i),Y&&S.length>0&&(0,e_.nv)({event_type:"drop_filter_click",event_parameters:{mod_queue:n||"",mod_state:r||"",filter_name:"author_profile_status",option:String(S)}},i)},[et,Y]),(0,q.useEffect)(function(){null!=eo&&eo.changedTo&&(0,e_.nv)({event_type:"apply_filter_click",event_parameters:{mod_queue:n||"",mod_state:r||"",filter_name:"who_returned",option:eo.key}},i),(null==eo?void 0:eo.changedTo)!==!1||Y||(0,e_.nv)({event_type:"drop_filter_click",event_parameters:{mod_queue:n||"",mod_state:r||"",filter_name:"who_returned",option:eo.key}},i),Y&&O.length>0&&(0,e_.nv)({event_type:"drop_filter_click",event_parameters:{mod_queue:n||"",mod_state:r||"",filter_name:"who_returned",option:String(O)}},i)},[eo,Y]),(0,q.useEffect)(function(){null!=er&&er.changedTo&&(0,e_.nv)({event_type:"apply_filter_click",event_parameters:{mod_queue:n||"",mod_state:r||"",filter_name:"status",option:er.key}},i),(null==er?void 0:er.changedTo)!==!1||Y||(0,e_.nv)({event_type:"drop_filter_click",event_parameters:{mod_queue:n||"",mod_state:r||"",filter_name:"status",option:er.key}},i),Y&&D.length>0&&(0,e_.nv)({event_type:"drop_filter_click",event_parameters:{mod_queue:n||"",mod_state:r||"",filter_name:"status",option:String(D)}},i)},[er,Y]),(0,q.useEffect)(function(){s.postmoderation&&!H&&(0,e_.nv)({event_type:"apply_filter_click",event_parameters:{mod_queue:n||"",mod_state:r||"",filter_name:"postmoderation",option:"postmoderation"}},i),!s.postmoderation&&H&&(0,e_.nv)({event_type:"drop_filter_click",event_parameters:{mod_queue:n||"",mod_state:r||"",filter_name:"postmoderation",option:"postmoderation"}},i)},[s.postmoderation,H]),(0,q.useEffect)(function(){s.plagiary&&!K&&(0,e_.nv)({event_type:"apply_filter_click",event_parameters:{mod_queue:n||"",mod_state:r||"",filter_name:"plagiarism",option:"plagiarism"}},i),!s.plagiary&&K&&(0,e_.nv)({event_type:"drop_filter_click",event_parameters:{mod_queue:n||"",mod_state:r||"",filter_name:"plagiarism",option:"plagiarism"}},i)},[s.plagiary]),(0,q.useEffect)(function(){0===c.mailModerators.length&&x.length>0&&(0,e_.nv)({event_type:"drop_filter_click",event_parameters:{mod_queue:n||"",mod_state:r||"",filter_name:"moderator",option:String(x)}},i),en.added&&(0,e_.nv)({event_type:"apply_filter_click",event_parameters:{mod_queue:n||"",mod_state:r||"",filter_name:"moderator",option:en.added}},i),en.removed&&0!==c.mailModerators.length&&(0,e_.nv)({event_type:"drop_filter_click",event_parameters:{mod_queue:n||"",mod_state:r||"",filter_name:"moderator",option:en.removed}},i)},[c.mailModerators]),(0,q.useEffect)(function(){0===c.mailProfiles.length&&F.length>0&&(0,e_.nv)({event_type:"drop_filter_click",event_parameters:{mod_queue:n||"",mod_state:r||"",filter_name:"author_profile",option:String(F)}},i),ei.added&&(0,e_.nv)({event_type:"apply_filter_click",event_parameters:{mod_queue:n||"",mod_state:r||"",filter_name:"author_profile",option:ei.added}},i),ei.removed&&0!==c.mailProfiles.length&&(0,e_.nv)({event_type:"drop_filter_click",event_parameters:{mod_queue:n||"",mod_state:r||"",filter_name:"author_profile",option:ei.removed}},i)},[c.mailProfiles]),(0,q.useEffect)(function(){X(!1),N(eS(a,"processing_time")),B(eS(a,"license_type")),P(eS(a,"author_status_group")),I(eS(a,"who_returned_group")),Q(eS(a,"status_group")),f(a)},[a]),(0,q.useEffect)(function(){v(c.mailModerators)},[c.mailModerators]),(0,q.useEffect)(function(){Z(c.mailProfiles)},[c.mailProfiles]),(0,q.useEffect)(function(){R(s.postmoderation)},[s.postmoderation]),(0,q.useEffect)(function(){J(!!s.plagiary)},[s.plagiary]),(0,U.jsxs)("div",{className:l()(eG().wrapper,t),children:[(0,U.jsxs)("section",{className:eG().heading,children:[(0,U.jsx)(G.H3,{className:eG().h3,children:"ФилÑÑÑ"}
1),(0,U.jsx)(m.L,{className:eG().icon,icon:"closeOutline16x16",iconPosition:"left",iconSize:17,onClick:function(){d((0,eN.Je)()),d((0,eO.A)({})),d((0,eB.$)({})),X(!0)},dataTestId:"filtersModerator__resetButton",children:(0,U.jsx)("span",{className:eG().button,children:"СбÑоÑиÑÑ ÑилÑÑÑ"})})]}),o.map(function(e){return e7[e]})]})},tt=o(48919),to=o(32952);function tr(){var e=(0,q.useState)(to.Y),t=e[0],o=e[1],r=(0,u.I0)(),n=(0,u.v9)(f);return(0,q.useEffect)(function(){n.type===eM.B.BOOK&&r((0,eB.$)({offset:t})),n.type===eM.B.PROFILE&&r((0,eO.A)({offset:t})),o(function(e){return e+to.$})},[]),function(){n.type===eM.B.BOOK&&r((0,eB.$)({offset:t})),n.type===eM.B.PROFILE&&r((0,eO.A)({offset:t})),o(function(e){return e+to.$})}}var tn=o(33960),ti=o(41664),ta=o.n(ti),ts=o(3490),tl=o(35556),tc=o(33909),tu=o(46620),td=o.n(tu),tm=function(e){var t=e.licenceType,o=e.licenceText,r=e.className,n=l()(td().licence,(0,i.Z)({},td()[t],td()[t]),r);return(0,U.jsx)("div",{className:n,children:o})},t_=o(69334),tp=o(61568),tf=o(52444),th=o(37352),tx=o.n(th),tv=function(e){var t=e.copyrightsType,o=e.copyrightsText,r=e.tooltipText,n=e.tooltipTitle,a=e.tooltipSize,s=e.tooltipLink,c=e.className,u=l()(tx().copyrights,(0,i.Z)({},tx()[t],t),c);return r?(0,U.jsx)(t_.u,{content:r,title:n,size:a,textLink:s,children:(0,U.jsxs)("span",{className:u,children:[o," "]})}):(0,U.jsxs)("span",{className:u,children:[o," "]})},tk=[{status:"UnfilledName",iconName:"errorOutline24x24",color:" var(--palettes-gray-60)"},{status:"Confirmed",iconName:"checkCircleOutline24x24",color:"var(--aliases-success)"},{status:"Star",iconName:"starFilled24x24",color:"var(--aliases-warning)"},{status:"Unconfirmed",iconName:"errorOutline24x24",color:"var(--palettes-red-100)"},{status:"UnfilledData",iconName:"errorOutline24x24",color:" var(--palettes-gray-60)"}],tb=[{status:ew.Gw.direct,iconName:"fileOutline24x24",color:" var(--palettes-orange-100)"},{status:ew.Gw.directTop,iconName:"fileOutlineWithStar24x24",color:" var(--palettes-orange-100)"}],tg=o(36150),tj=o.n(tg),ty=function(e){var t=e.user,o=(0,q.useMemo)(function(){return t.agreement_type!==ew.Gw.offer?tb.find(function(e){return e.status===t.agreement_type}):tk.find(function(e){return e.status===t.status_profile_api})},[t.agreement_type,t.status_profile_api]);return(0,U.jsxs)("div",{className:tj().container,children:[t.is_in_moderation_blacklist&&(0,U.jsx)("div",{className:tj().blacklistMark,children:"ЧС"}),!!o&&(0,U.jsx)(W.J,{icon:o.iconName,size:24,color:o.color},o.iconName),(0,U.jsxs)("div",{className:tj().content,children:[t.short_name&&(0,U.jsx)(G.iO,{className:l()(tj().authorName,(0,i.Z)({},tj().blacklisted,t.is_in_moderation_blacklist)),children:t.short_name}),(0,U.jsxs)(G.iO,{className:tj().emailContainer,children:["(",(0,U.jsx)("span",{className:tj().email,children:t.email}),")"]})]})]})},tN=o(31292),tw=o.n(tN),tC=function(e){var t=e.className,o=e.userType,r=e.userEmail,n={main_moderator:(0,U.jsx)(_.Q,{imageType:"mainModerator",width:20,height:20}),moderator:(0,U.jsx)(_.Q,{imageType:"moderator",width:20,height:20})};return(0,U.jsxs)("div",{className:l()(tw().container,t),children:[o&&n[o],(0,U.jsx)("div",{className:tw().content,children:(0,U.jsx)(G.iO,{className:tw().emailContainer,children:(0,U.jsx)("span",{className:tw().email,children:r})})})]})},tB=o(64729),tT={twenty_four:{timer:"successTimer",labelTime:24},sixteen:{timer:"warningTimer",labelTime:16},eight:{timer:"dangerTimer",labelTime:8},time_is_up:{timer:"alertTimer",labelTime:24}},tS={draft:"ЧеÑновик",free:"ÐеÑплаÑнаÑ",exclusive:"ÐÑклÑÑиÑелÑнаÑ",non_exclusive:"ÐеиÑклÑÑиÑелÑнаÑ",author_exclusive:"ÐкÑклÑзивнÑй"},tP={draft:tB.f.draft,free:tB.f.free,exclusive:tB.f.exclusive,non_exclusive:tB.f.nonExclusive,author_exclusive:tB.f.authorExclusive},tL={0:"ЧеÑновик",1:"ÐÑпÑавлена на модеÑаÑиÑ",2:"Удалена авÑоÑом",3:"ÐзÑÑа на модеÑаÑиÑ",4:"ÐдобÑена модеÑаÑоÑом",5:"ÐозвÑаÑена на доÑабоÑкÑ",6:"ÐаблокиÑована",7:"ÐÑпÑавлена агенÑÑ",8:"ÐÑовеÑÑеÑÑÑ Ð°Ð³ÐµÐ½Ñом",9:"ÐоÑÑÑпно Ð´Ð»Ñ Ð¿ÐµÑаÑи, не опÑбликована",10:"ÐпÑбликована",11:"СнÑÑо Ñ Ð¿ÑбликаÑии",12:"ÐозвÑаÑена на доÑабоÑÐºÑ Ð¸Ð· Ñ
аба",13:"ÐÑибка пÑи оÑпÑавке",14:"ÐÑоÑÐµÐ½Ð½Ð°Ñ ÐºÐ½Ð¸Ð³Ð° в пÑоÑеÑÑе"},tO=o(55555),tI=o.n(tO),tM=function(e){var t,o=e.bookCardLine,r=e.bookLineStatus,n=e.bookName,a=e.bookId,s=e.timerType,c=e.user,u=e.copyrightsText,d=e.copyrightsType,m=e.copyrightsTooltipText,_=e.copyrightsTooltipTitle,p=e.copyrightsTooltipSize,f=e.copyrightsTooltipLink,h=e.licenceType,x=e.moderatorType,v=e.moderatorEmail,k=e.error,b=e.bookVerificationStatus,g=e.dateUpdate,j=e.isPostmoderation,y=e.pathToPicture,N=e.checked,w=e.onCheck,C=e.buttonHref,B=e.releaseDate,T=e.className,S=e.isSentToMainModeratorQueue,P=e.sentToModeration,L=e.isImported,O=e.onCheckButtonClick,I=e.obsceneWordsCount,M=e.moderationId,D=e.isPdf,Q=e.isBlankForAudiobook,A=e.wasCreatedFromAudio,E=(0,q.useMemo)(function(){return(0,tf.I5)(null!=P?P:g)},[P,g]),F=(0,q.useMemo)(function(){return B?(0,tf.JJ)(B):null},[B]);return(0,U.jsxs)("div",{className:l()(tI().card,"shadowLevel1",T,(t={},(0,i.Z)(t,tI()[r],r),(0,i.Z)(t,tI().selected,N),t)),tabIndex:1,children:[(0,U.jsxs)("div",{className:tI().wrapper,children:["commonLine"===o&&(0,U.jsx)(eD.X,{checked:N,onChange:function(){"commonLine"===o&&w&&w(a)},id:String(a),name:String(a)}),(0,U.jsxs)("div",{className:tI().timeBlock,children:["finalLine"===o&&k&&(0,U.jsx)(G.pf,{className:tI().errorCode,children:k}),"pending"===r&&b&&(0,U.jsx)(G.iO,{className:tI().bookVerificationStatus,children:tL[b]}),(0,U.jsx)(e1,{timerType:tT[s].timer,time:tT[s].labelTime}),(0,U.jsx)(G.iO,{className:tI().time,children:E}),"draft"===h&&B&&(0,U.jsxs)("div",{className:tI().labelDateRelease,children:[(0,U.jsx)(G.YS,{className:tI().labelText,children:"Релиз:"}),(0,U.jsx)(G.iO,{className:tI().labelText,children:F})]})]}),(0,U.jsxs)("div",{children:[(0,U.jsxs)("div",{className:tI().bookBlock,children:[(0,U.jsx)(tp.Fh,{size:tp.iB.small,bookName:n,pathToPicture:y,className:tI().bookCover,classNameImg:tI().bookCoverImg}),(0,U.jsxs)("div",{children:[n.length>25?(0,U.jsx)(t_.u,{content:n,direction:"bottom",children:(0,U.jsx)(G.H4,{className:tI().bookName,children:n})}):(0,U.jsx)(G.H4,{className:tI().bookName,children:n}),(0,U.jsx)(ty,{user:c})]})]}),(0,U.jsxs)("div",{className:tI().labelContainer,children:[j&&(0,U.jsx)(W.J,{icon:"postOutline24x24",size:24,color:"var(--aliases-error)"}),"commonLine"!==o&&(0,U.jsx)(tv,{copyrightsText:u,copyrightsType:d,tooltipText:m,tooltipTitle:_,tooltipSize:p,tooltipLink:f}),(0,U.jsx)(tm,{licenceType:tP[h],licenceText:tS[h]}),Q&&(0,U.jsx)(tl._,{labelType:"audiobook",labelText:"ÐÑдио без ÑекÑÑа"}),A&&(0,U.jsx)(tl._,{labelType:"text",labelText:"ТекÑÑ Ðº аÑдио"}),L&&(0,U.jsx)(tc.y,{}),!!I&&!D&&(0,U.jsx)(ta(),{href:"".concat(ts.x.moderation.book.new).concat(M,"/content-scan"),target:"_blank",className:tI().obsceneWordsCountLink,children:(0,U.jsxs)("div",{className:tI().obsceneWordsCount,children:[(0,U.jsx)(W.J,{icon:"warningFilled24x24",width:12,height:12,className:tI().iconObsceneWordsCount}),"ÐамеÑаниÑ: ",I]})})]}),(0,U.jsxs)("div",{className:l()(tI().labelContainer,tI().vertical),children:[("return"===r||"finalLine"===o)&&(0,U.jsxs)("div",{className:tI().moderatorBlock,children:[(0,U.jsx)(G.iO,{children:"finalLine"===o?"ÐдобÑил:":"ÐеÑнÑл:"}),(0,U.jsx)(tC,{userType:x,userEmail:v,className:tI().userType})]}),S&&(0,U.jsx)(tl._,{labelType:"warning",labelText:"Ðнига из пеÑвой оÑеÑеди"})]})]})]}),"commonLine"!==o&&(0,U.jsx)(ep.z,{look:"secondary",size:"small",className:tI().button,href:C,onClick:O,dataTestId:"bookCard__checkButton",children:"ÐÑовеÑиÑÑ"})]})},tD=o(58533),tQ=o(40964),tA=o.n(tQ),tE=function(e){var t=e.dataCards,o=e.cardLine,r=e.bookLineStatus,n=e.hasMore,i=e.fetchNextPage,a=e.checkedBooks,s=e.setCheckedBooks,c=e.className,d=e.modQueue,m=e.tabName,_=(0,u.v9)(E.d),p=(0,q.useState)(!1),f=p[0],h=p[1];function x(e){void 0!==a&&void 0!==s&&a.includes(e)?(s(a.filter(function(t){return t!==e})),(0,e_.nv)({event_type:"undo_choose_item_click",event_parameters:{mod_queue:d||"",mod_state:m||"",mod_item:"art",art_id:String(e)}},_)):void 0!==a&&void 0!==s&&(s([].concat((0,eI.Z)(a),[e])),(0,e_.nv)({event_type:"choose_item_click",event_parameters:{mod_queue:d||"",mod_state:m||"",mod_item:"art",art_id:String(e)}},_))}return(0,U.jsxs)("div",{className:l()([tA().wrapper,c]),children:["commonLine"===o&&(0,U.jsx)(eD.X,{id:"1",name:"1",labelText:"ÐÑбÑаÑÑ Ð²ÑÑ",className:tA().checkbox,checked:f,onChange:function(){if(f)void 0!==s&&(s([]),h(!1),(0,e_.nv)({event_type:"undo_choose_item_click",event_parameters:{mod_queue:d||"",mod_state:m||"",mod_item:"art",art_id:"all"}},_));else{var e=t.map(function(e){return e.id});void 0!==s&&(s(e),h(!0),(0,e_.nv)({event_type:"choose_item_click",event_parameters:{mod_queue:d||"",mod_state:m||"",mod_item:"art",art_id:"all"}},_))}}}),(0,U.jsx)(tD.Z,{next:i,hasMore:n,loader:(0,U.jsx)(eE.x,{}),dataLength:t.length,children:t.length>0&&t.map(function(e){var t=e.processing_time,n=e.license_type,i=e.who_returned_group,s=e.moderator_email,l=e.updated_at,c=e.sent_to_moderation,u=e.name,d=e.id,m=e.plagiarism,_=m.plagiarism_status,p=m.plagiarism_verdict,f=e.cover.ebook_image_url,h=e.is_postmoderation,v=e.is_imported,k=e.is_blank_for_audiobook,b=e.was_created_from_audio;return(0,U.jsx)(tM,{bookName:u,bookId:d,bookCardLine:o,bookLineStatus:r,user:e.user,timerType:t,copyrightsText:_,copyrightsType:p,licenceType:n,moderatorType:i,moderatorEmail:s,pathToPicture:f,dateUpdate:l,sentToModeration:c,releaseDate:e.nearest_chapter_publication_date,checked:!!a&&a.includes(d),onCheck:x,isPostmoderation:h,isImported:v,isBlankForAudiobook:k,wasCreatedFromAudio:b},d)})})]})},tF=o(37754),tZ=o.n(tF),tz=function(e){var t=e.checkedBooks,o=e.setCheckedBooks,r=e.tabName,n=e.modQueue,i=(0,u.v9)(w),a=i.result,s=i.pagination,l=null==s?void 0:s.next_page,c=tr();return a?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(eb.b,{type:eb.o.info,isWrapper:!0,className:tZ().alert,textInformation:"ÐÑеÑÐµÐ´Ñ Ð¸Ð· новÑÑ
книг Ð¾Ñ Ð°Ð²ÑоÑов, коÑоÑÑе еÑе не пÑовеÑÑли"}),(0,U.jsxs)("div",{className:tZ().wrapperContent,children:[(0,U.jsx)(te,{className:tZ().filter,filterTypes:tt.oB,tabName:r,modQueue:n}),a.length>0?(0,U.jsx)("div",{className:tZ().cardList,children:(0,U.jsx)(tE,{fetchNextPage:c,hasMore:!!l,dataCards:a,cardLine:"commonLine",bookLineStatus:"new",checkedBooks:t,
1setCheckedBooks:o,modQueue:n,tabName:r})}):(0,U.jsx)(tn.o,{className:tZ().noContentElement,illustrationName:"notFoundStub",headTitle:"ÐÐµÑ Ð½Ð¸ одной новой книги на модеÑаÑиÑ",title:"ÐоÑ
оже авÑоÑÑ Ð½Ðµ напиÑали новÑÑ
книг и книг в пÑоÑеÑÑе"})]})]}):(0,U.jsx)(eE.x,{})},tH=function(e){var t=e.checkedBooks,o=e.setCheckedBooks,r=e.tabName,n=e.modQueue,i=(0,u.v9)(C),a=i.result,s=i.pagination,l=null==s?void 0:s.next_page,c=tr();return a?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(eb.b,{type:eb.o.info,isWrapper:!0,className:tZ().alert,textInformation:"ÐÑеÑÐµÐ´Ñ Ð¸Ð· веÑнÑвÑиÑ
ÑÑ ÐºÐ½Ð¸Ð³ Ð¾Ñ Ð°Ð²ÑоÑов к модеÑаÑоÑам, коÑоÑÑе иÑ
пÑовеÑÑли"}),(0,U.jsxs)("div",{className:tZ().wrapperContent,children:[(0,U.jsx)(te,{className:tZ().filter,filterTypes:tt.ox,tabName:r,modQueue:n}),a.length>0?(0,U.jsx)("div",{className:tZ().cardList,children:(0,U.jsx)(tE,{fetchNextPage:c,hasMore:!!l,dataCards:a,cardLine:"commonLine",bookLineStatus:"return",checkedBooks:t,setCheckedBooks:o,modQueue:n,tabName:r})}):(0,U.jsx)(tn.o,{className:tZ().noContentElement,illustrationName:"notFoundStub",headTitle:"ÐÐµÑ Ð½Ð¸ одной веÑнÑвÑейÑÑ ÐºÐ½Ð¸Ð³Ð¸ на модеÑаÑиÑ",title:"ÐоÑ
оже авÑоÑÑ Ð½Ðµ внеÑли комменÑаÑии Ð¾Ñ Ð¼Ð¾Ð´ÐµÑаÑоÑа в Ñвои ÑвоÑÐµÐ½Ð¸Ñ ÐодождемÑ..."})]})]}):(0,U.jsx)(eE.x,{})},tR={successHeader:"Ðниги взÑÑÑ Ð½Ð° модеÑаÑиÑ",successDescription:"Ðниги бÑли пеÑемеÑÐµÐ½Ñ Ð² Ñаздел ÐÐ¾Ñ Ð¾ÑеÑÐµÐ´Ñ Ð´Ð»Ñ Ð´Ð°Ð»ÑнейÑей модеÑаÑии",errorHeader:"ЧÑо-Ñо поÑло не Ñак",errorDescription:"ÐÑи пÑовеÑке пÑоизоÑла неизвеÑÑÐ½Ð°Ñ Ð¾Ñибка. ÐопÑобÑйÑе взÑÑÑ Ð½Ð° модеÑаÑÐ¸Ñ ÐµÑе Ñаз"},tq={successHeader:"ÐÑоÑили взÑÑÑ Ð½Ð° модеÑаÑиÑ",successDescription:"ÐÑоÑили бÑли пеÑемеÑÐµÐ½Ñ Ð² Ñаздел ÐÐ¾Ñ Ð¾ÑеÑÐµÐ´Ñ Ð´Ð»Ñ Ð´Ð°Ð»ÑнейÑей модеÑаÑии"},tW=function(){var e,t=(0,q.useState)([]),o=t[0],r=t[1],n=(0,q.useState)(!1),i=n[0],a=n[1],s=(0,q.useState)("hidden"),c=s[0],d=s[1],m=(0,u.v9)(E.d),_=(0,u.v9)(A),f=(0,u.v9)(p),h=(0,u.v9)(N),x=(0,u.I0)(),v=(0,R.useRouter)(),k=(0,q.useMemo)(function(){return f===ew.hK.allQueueBooksNew?ev.new:f===ew.hK.allQueueBooksReturns?ev.returned:""},[f]);(0,q.useEffect)(function(){x((0,eN.cp)(ew.hK.allQueueBooksNew))},[x]),(0,q.useEffect)(function(){i&&(0===_.length?d(eb.o.success):d(eb.o.error))},[_]);var b=(e=(0,eu.Z)(em().mark(function e(){return em().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a(!0),e.prev=1,e.next=4,x((0,eT.c)(o));case 4:return r([]),a(!1),e.next=8,x((0,eB.$)({}));case 8:return e.next=10,x((0,eC.h)({}));case 10:e.next=17;break;case 12:e.prev=12,e.t0=e.catch(1),console.error(e.t0),d(eb.o.error),a(!1);case 17:(0,e_.nv)({event_type:"take_for_moderation_click",event_parameters:{mod_queue:ek.allBooks,mod_state:k}},m);case 18:case"end":return e.stop()}},e,null,[[1,12]])})),function(){return e.apply(this,arguments)}),g=function(){d("hidden")},j=function(e){x((0,eN.cp)(e))},y=(0,q.useMemo)(function(){var e=_[0];return"string"==typeof e?e:_[0]?e.messages[0]:void 0},[_]);return(0,q.useEffect)(function(){(0,e_.nv)({event_type:"mod_queue_view",event_parameters:{}},m,!0)},[]),(0,q.useEffect)(function(){(0,e_.nv)({event_type:"block_view",event_parameters:{mod_queue:ek.allBooks,mod_state:k}},m)},[f]),(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)("div",{className:l()("g-col-12",tZ().wrapperPage),children:[(0,U.jsx)(G.H1,{className:tZ().h1,children:" Ðниги"}),(0,U.jsxs)(ej.m,{children:[(0,U.jsx)(eg.O,{label:"ÐозвÑаÑÑ",isActive:f===ew.hK.allQueueBooksReturns,counter:null==h?void 0:h.book_queue.old_book_queue,onClick:function(){return j(ew.hK.allQueueBooksReturns)}}),(0,U.jsx)(eg.O,{label:"ÐовÑе",isActive:f===ew.hK.allQueueBooksNew,counter:null==h?void 0:h.book_queue.new_book_queue,onClick:function(){return j(ew.hK.allQueueBooksNew)}})]}),f===ew.hK.allQueueBooksReturns&&(0,U.jsx)(tH,{checkedBooks:o,setCheckedBooks:r,tabName:ev.returned,modQueue:ek.allBooks}
1),f===ew.hK.allQueueBooksNew&&(0,U.jsx)(tz,{checkedBooks:o,setCheckedBooks:r,tabName:ev.new,modQueue:ek.allBooks}),c===eb.o.success&&(0,U.jsx)(ey.P,{header:tR.successHeader,description:tR.successDescription,status:"success",buttonText:"ÐеÑейÑи в ÐÐ¾Ñ Ð¾ÑеÑедÑ",buttonHandler:function(){v.push("?currentTab=myBooks"),x((0,eN.cp)(ew.hK.myBooksQueueNew))},buttonClose:g,position:"topRight"}),c===eb.o.error&&(0,U.jsx)(ey.P,{header:tR.errorHeader,description:y||tR.errorDescription,status:"error",buttonClose:g,position:"topRight"})]}),o.length>0&&(0,U.jsx)(ex,{counter:o.length,buttonHandler:b,isLoadingFooter:i})]})},tK=o(83283),tJ=o(70455),tU=o.n(tJ),tV=function(e){var t,o=e.bookCardType,r=e.bookStatus,n=e.bookTime,a=e.timerType,s=e.profileId,c=e.authorName,u=e.authorEmail,d=e.userType,m=e.userEmail,_=e.moderationBooks,p=e.isAllChecked,f=e.onCheck,h=e.buttonHref,x=e.onClickCheckButton,v=(0,q.useState)(!1),k=v[0],b=v[1];return(0,q.useEffect)(function(){"commonLine"===o&&void 0!==p&&b(p)},[p,o]),(0,U.jsxs)("div",{className:l()(tU().card,"shadowLevel1",(t={},(0,i.Z)(t,tU()[r],r),(0,i.Z)(t,tU().selected,k),t)),children:[(0,U.jsxs)("div",{className:tU().wrapper,children:["commonLine"===o&&(0,U.jsx)(eD.X,{checked:k,onChange:function(){"commonLine"===o&&(b(!k),f(s))},id:String(s),name:String(s)}),(0,U.jsxs)("div",{className:tU().timeBlock,children:[(0,U.jsx)(e1,{timerType:tT[a].timer,time:tT[a].labelTime}),(0,U.jsx)(G.iO,{className:tU().time,children:n})]}),(0,U.jsxs)("div",{className:tU().bookBlock,children:[(0,U.jsxs)("div",{className:tU().test,children:[(0,U.jsx)(G.H4,{className:tU().authorName,children:c}),(0,U.jsx)(G.iO,{className:tU().authorEmail,children:u}),(0,U.jsxs)(G.iO,{className:tU().moderationBooks,children:["Ðниг на модеÑаÑии: ",_]})]}),(0,U.jsx)("div",{children:"return"===r&&"myLine"!==o&&(0,U.jsx)(tC,{userType:d,userEmail:m,className:tU().userType})})]})]}),"commonLine"!==o&&(0,U.jsx)(ep.z,{look:"secondary",size:"small",href:h,onClick:x,dataTestId:"profileCard__checkButton",children:"ÐÑовеÑиÑÑ"})]})},tG=o(93026),tY=o.n(tG),tX=function(e){var t=e.dataCardsProfiles,o=e.cardLine,r=e.profileLineStatus,n=e.hasMore,i=e.fetchNextPage,a=e.checkedProfiles,s=e.setCheckedProfiles,c=e.className,d=e.modQueue,m=e.tabName,_=(0,u.v9)(E.d),p=(0,q.useState)(!1),f=p[0],h=p[1];function x(e){void 0!==a&&void 0!==s&&a.includes(e)?(s(a.filter(function(t){return t!==e})),(0,e_.nv)({event_type:"undo_choose_item_click",event_parameters:{mod_queue:d||"",mod_state:m||"",mod_item:"profile",profile_id:String(e)}},_)):void 0!==a&&void 0!==s&&(s([].concat((0,eI.Z)(a),[e])),(0,e_.nv)({event_type:"choose_item_click",event_parameters:{mod_queue:d||"",mod_state:m||"",mod_item:"profile",profile_id:String(e)}},_))}return(0,U.jsxs)("div",{className:l()(tY().wrapper,c),children:["commonLine"===o&&(0,U.jsx)(eD.X,{id:"1",name:"1",labelText:"ÐÑбÑаÑÑ Ð²ÑÑ",className:tY().checkbox,checked:f,onChange:function(){if(f)void 0!==s&&(s([]),h(!1),(0,e_.nv)({event_type:"undo_choose_item_click",event_parameters:{mod_queue:d||"",mod_state:m||"",mod_item:"profile",profile_id:"all"}},_));else{var e=t.map(function(e){return Number(e.id)});void 0!==s&&(s(e),h(!0),(0,e_.nv)({event_type:"choose_item_click",event_parameters:{mod_queue:d||"",mod_state:m||"",mod_item:"profile",profile_id:"all"}},_))}}}),(0,U.jsx)(tD.Z,{next:i,hasMore:n,loader:(0,U.jsx)(eE.x,{}),dataLength:t.length,children:t.length>0&&t.map(function(e){var t=e.id,n=e.date_modified,i=e.full_name,a=e.email,s=e.moderator_type,l=e.moderator_email,c=e.books_on_moderation,u=e.processing_time;return(0,U.jsx)(tV,{profileId:Number(t),bookCardType:o,bookStatus:r,bookTime:n||"",authorName:i||"",authorEmail:a||"",userEmail:l,userType:s,moderationBooks:c||0,timerType:u,isAllChecked:f,onCheck:x},t)})})]})},t$=function(e){var t=e.checkedBooks,o=e.setCheckedBooks,r=e.tabName,n=e.modQueue,i=(0,u.v9)(B),a=i.result,s=i.pagination,l=null==s?void 0:s.next_page,c=tr();return a?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(eb.b,{type:eb.o.info,isWrapper:!0,className:tZ().alert,textInformation:"ÐÑеÑÐµÐ´Ñ Ð¸Ð· новÑÑ
пÑоÑилей Ð¾Ñ Ð°Ð²ÑоÑа"}),(0,U.jsxs)("div",{className:tZ().wrapperContent,children:[(0,U.jsx)(te,{className:tZ().filter,filterTypes:tt.Vl,tabName:r,modQueue:n}),a.length>0?(0,U.jsx)("div",{className:tZ().cardList,children:(0,U.jsx)(tX,{fetchNextPage:c,hasMore:!!l,dataCardsProfiles:a,cardLine:"commonLine",profileLineStatus:"new",checkedProfiles:t,setCheckedProfiles:o,tabName:r,modQueue:n})}):(0,U.jsx)(tn.o,{className:tZ().noContentElement,illustrationName:"notFoundStub",headTitle:"ÐÐµÑ Ð½Ð¸ одного пÑоÑÐ¸Ð»Ñ Ð½Ð° модеÑаÑиÑ",title:"ЧÑо же ÑÑо, Ð½ÐµÑ Ð½Ð¾Ð²ÑÑ
ÑегиÑÑÑаÑий?"})]})]}):(0,U.jsx)(eE.x,{})};function t0(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,r)}return o}function t1(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};
1t%2?t0(Object(o),!0).forEach(function(t){(0,i.Z)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):t0(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var t2=function(e){var t=e.checkedBooks,o=e.setCheckedBooks,r=e.tabName,n=e.modQueue,i=(0,u.v9)(T),a=i.result,s=i.pagination;i.result&&(a=i.result.map(function(e){return e.moderator_type?t1(t1({},e),{},{who_returned_group:e.moderator_type}):t1({},e)}));var l=null==s?void 0:s.next_page,c=tr();return a?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(eb.b,{type:eb.o.info,isWrapper:!0,className:tZ().alert,textInformation:"ÐÑеÑÐµÐ´Ñ Ð¸Ð· веÑнÑвÑиÑ
ÑÑ Ð¿ÑоÑилей Ð¾Ñ Ð°Ð²ÑоÑа"}),(0,U.jsxs)("div",{className:tZ().wrapperContent,children:[(0,U.jsx)(te,{className:tZ().filter,filterTypes:tt.wW,tabName:r,modQueue:n}),a.length>0?(0,U.jsx)("div",{className:tZ().cardList,children:(0,U.jsx)(tX,{fetchNextPage:c,hasMore:!!l,dataCardsProfiles:a,cardLine:"commonLine",profileLineStatus:"return",checkedProfiles:t,setCheckedProfiles:o,tabName:r,modQueue:n})}):(0,U.jsx)(tn.o,{className:tZ().noContentElement,illustrationName:"notFoundStub",headTitle:"Ðе веÑнÑлоÑÑ Ð½Ð¸ одного пÑоÑÐ¸Ð»Ñ Ð½Ð° модеÑаÑиÑ",title:"ÐÑ, подождемÑ..."})]})]}):(0,U.jsx)(eE.x,{})},t9=function(){var e,t=(0,u.v9)(A),o=(0,u.v9)(p),r=(0,u.v9)(N),n=(0,u.v9)(E.d),i=(0,q.useState)([]),a=i[0],s=i[1],c=(0,q.useState)(!1),d=c[0],m=c[1],_=(0,q.useState)("hidden"),f=_[0],h=_[1],x=(0,u.I0)(),v=(0,R.useRouter)(),k=(0,q.useMemo)(function(){return o===ew.xx.allQueueProfileNew?ev.new:o===ew.xx.allQueueProfileReturns?ev.returned:void 0},[o]);(0,q.useEffect)(function(){x((0,eN.cp)(ew.xx.allQueueProfileNew))},[]),(0,q.useEffect)(function(){d&&(0===t.length?h("success"):h("error"))},[t]);var b=function(e){x((0,eN.cp)(e))},g=(e=(0,eu.Z)(em().mark(function e(){return em().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return m(!0),e.prev=1,e.next=4,x((0,tK.O)(a));case 4:return s([]),m(!1),e.next=8,x((0,eC.h)({}));case 8:return e.next=10,x((0,eO.A)({}));case 10:e.next=17;break;case 12:e.prev=12,e.t0=e.catch(1),console.error(e.t0),h("error"),m(!1);case 17:k&&(0,e_.nv)({event_type:"take_for_moderation_click",event_parameters:{mod_queue:ek.allProfiles,mod_state:k}},n);case 18:case"end":return e.stop()}},e,null,[[1,12]])})),function(){return e.apply(this,arguments)}),j=function(){h("hidden")},y=null==r?void 0:r.profile_queue.old_profile_queue,w=null==r?void 0:r.profile_queue.new_profile_queue,C=(0,q.useMemo)(function(){var e=t[0];return"string"==typeof e?e:t[0]?e.messages[0]:void 0},[t]);return(0,q.useEffect)(function(){(0,e_.nv)({event_type:"mod_queue_view",event_parameters:{}},n,!0)},[]),(0,q.useEffect)(function(){k&&(0,e_.nv)({event_type:"block_view",event_parameters:{mod_queue:ek.allProfiles,mod_state:k}},n)},[k]),(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)("div",{className:l()("g-col-12",tZ().wrapperPage),children:[(0,U.jsx)(G.H1,{className:tZ().h1,children:" ÐÑоÑили"}),(0,U.jsxs)(ej.m,{children:[(0,U.jsx)(eg.O,{label:"ÐозвÑаÑÑ",isActive:o===ew.xx.allQueueProfileReturns,counter:y,onClick:function(){return b(ew.xx.allQueueProfileReturns)}}),(0,U.jsx)(eg.O,{label:"ÐовÑе",isActive:o===ew.xx.allQueueProfileNew,counter:w,onClick:function(){return b(ew.xx.allQueueProfileNew)}})]}),o===ew.xx.allQueueProfileReturns&&(0,U.jsx)(t2,{checkedBooks:a,setCheckedBooks:s,tabName:ev.returned,modQueue:ek.allProfiles}),o===ew.xx.allQueueProfileNew&&(0,U.jsx)(t$,{checkedBooks:a,setCheckedBooks:s,tabName:ev.new,modQueue:ek.allProfiles}),"success"===f&&(0,U.jsx)(ey.P,{header:tq.successHeader,description:tq.successDescription,status:"success",buttonText:"ÐеÑейÑи в ÐÐ¾Ñ Ð¾ÑеÑедÑ",buttonHandler:function(){v.push("?currentTab=myProfiles"),x((0,eN.cp)(ew.xx.myQueueProfilesNew))},buttonClose:j,position:"topRight"}),"error"===f&&(0,U.jsx)(ey.P,{header:tR.errorHeader,description:C||tR.errorDescription,status:"error",buttonClose:j,position:"topRight"})]}),a.length>0&&(0,U.jsx)(ex,{counter:a.length,buttonHandler:g,isLoadingFooter:d})]})},t4=o(7847),t6=o.n(t4),t3=function(e){var t=e.dataCards,o=e.cardLine,r=e.bookLineStatus,n=e.className,i=e.fetchNextPage,a=e.hasMore,s=e.modQueue,c=e.tabName,d=(0,u.v9)(E.d),m=function(e){(0,e_.nv)({event_type:"check_art_click",event_parameters:{mod_queue:s||"",mod_state:c||"",mod_item:"art",art_id:String(e)}},d)};return(0,U.jsx)("div",{className:l()([t6().wrapper,n]),children:(0,U.jsx)(tD.Z,{dataLength:t.length,next:i,hasMore:a,loader:(0,U.jsx)(eE.x,{}),children:t.length>0&&t.map(function(e){var t=e.who_returned_group,n=e.moderator_email,i=e.is_sent_to_main_moderator_queue,a=e.is_imported,s=e.sent_to_moderation,l=e.book,c=l.name,u=l.id,d=l.processing_time,_=l.license_type,p=l.updated_at,f=l.is_postmoderation,h=l.ebook_status,x=l.is_blank_for_audiobook,v=l.was_created_from_audio,
1k=l.cover.ebook_image_url,b=e.book.plagiarism,g=b.plagiarism_verdict,j=b.plagiarism_result,y=j.text,N=j.name_book,w=j.author,C=j.url;return(0,U.jsx)(tM,{bookName:c,bookId:u,bookCardLine:o,bookLineStatus:r,user:e.book.user,moderatorType:t,moderatorEmail:n,pathToPicture:k,timerType:d,copyrightsText:y,copyrightsType:g,licenceType:_,dateUpdate:p,sentToModeration:s,releaseDate:e.nearest_chapter_publication_date,isPostmoderation:f,bookVerificationStatus:h,error:e.error_message,copyrightsTooltipText:N,copyrightsTooltipTitle:w,copyrightsTooltipLink:C,isSentToMainModeratorQueue:i,buttonHref:"pending"===r?"/whiskey/books/book/".concat(u,"/change"):"/moderation/book/new/".concat(e.id,"/"),isImported:a,isBlankForAudiobook:x,wasCreatedFromAudio:v,onCheckButtonClick:function(){return m(e.id)}},e.id)})})})},t5=function(e){var t=e.modQueue,o=e.tabName,r=(0,u.v9)(S),n=r.result,i=r.pagination,a=null==i?void 0:i.next_page,s=tr();return n?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(eb.b,{type:eb.o.info,isWrapper:!0,className:tZ().alert,textInformation:"ÐÑеÑÐµÐ´Ñ Ð¸Ð· новÑÑ
книг, коÑоÑÑе оÑпÑавили в Ñ
аб, но пÑоизоÑла оÑибка",isClosed:!0}),(0,U.jsxs)("div",{className:tZ().wrapperContent,children:[(0,U.jsx)(te,{className:tZ().filter,filterTypes:tt.Iq,modQueue:t,tabName:o}),n.length>0?(0,U.jsx)("div",{className:tZ().cardList,children:(0,U.jsx)(t3,{fetchNextPage:s,hasMore:!!a,dataCards:n,cardLine:"finalLine",bookLineStatus:"error",modQueue:t,tabName:o})}):(0,U.jsx)(tn.o,{illustrationName:"notFoundStub",headTitle:"Ðниг Ñ Ð¾Ñибками ÑейÑÐ°Ñ Ð½ÐµÑ"})]})]}):(0,U.jsx)(eE.x,{})},t8=function(e){var t=e.modQueue,o=e.tabName,r=(0,u.v9)(P),n=r.result,i=r.pagination,a=null==i?void 0:i.next_page,s=tr();return n?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(eb.b,{type:eb.o.info,isWrapper:!0,className:tZ().alert,textInformation:"Ðниги, долÑÑе ÑÑÑок наÑ
одÑÑиеÑÑ Ð² ÑÑаÑÑÑаÑ
\xabÐдобÑена модеÑаÑоÑом\xbb, \xabÐÑпÑавлена агенÑÑ\xbb, \xabÐÑовеÑÑеÑÑÑ Ð°Ð³ÐµÐ½Ñом\xbb",isClosed:!0}),(0,U.jsxs)("div",{className:tZ().wrapperContent,children:[(0,U.jsx)(te,{className:tZ().filter,filterTypes:tt._o,modQueue:t,tabName:o}),n.length>0?(0,U.jsx)("div",{className:tZ().cardList,children:(0,U.jsx)(t3,{fetchNextPage:s,hasMore:!!a,dataCards:n,cardLine:"finalLine",bookLineStatus:"pending",modQueue:t,tabName:o})}):(0,U.jsx)(tn.o,{illustrationName:"notFoundStub",headTitle:"ÐавиÑÑиÑ
книг ÑейÑÐ°Ñ Ð½ÐµÑ"})]})]}):(0,U.jsx)(eE.x,{})},t7=function(e){var t=e.modQueue,o=e.tabName,r=(0,u.v9)(L),n=r.result,i=r.pagination,a=null==i?void 0:i.next_page,s=tr();return n?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(eb.b,{type:eb.o.info,isWrapper:!0,className:tZ().alert,textInformation:"ÐÑеÑÐµÐ´Ñ Ð¸Ð· новÑÑ
книг, коÑоÑÑе пÑиÑли Ð¾Ñ Ð·Ð²ÐµÐ·Ð´Ð½ÑÑ
авÑоÑов или Ð¾Ñ Ð¼Ð¾Ð´ÐµÑаÑоÑа пеÑвой линии или по поÑÑмодеÑаÑии",isClosed:!0}),(0,U.jsxs)("div",{className:tZ().wrapperContent,children:[(0,U.jsx)(te,{className:tZ().filter,filterTypes:tt.Uv,modQueue:t,tabName:o}),n.length>0?(0,U.jsx)("div",{className:tZ().cardList,children:(0,U.jsx)(t3,{fetchNextPage:s,hasMore:!!a,dataCards:n,cardLine:"finalLine",bookLineStatus:"new",modQueue:t,tabName:o})}):(0,U.jsx)(tn.o,{illustrationName:"notFoundStub",headTitle:"У Ð²Ð°Ñ Ð½ÐµÑ Ð½Ð¸ одной книги на модеÑаÑиÑ"})]})]}):(0,U.jsx)(eE.x,{})},oe=function(e){var t=e.modQueue,o=e.tabName,r=(0,u.v9)(O),n=r.result,i=r.pagination,a=null==i?void 0:i.next_page,s=tr();return n?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(eb.b,{type:eb.o.info,isWrapper:!0,className:tZ().alert,textInformation:"ÐÑеÑÐµÐ´Ñ Ð¸Ð· веÑнÑвÑиÑ
ÑÑ ÐºÐ½Ð¸Ð³, Ð¾Ñ Ð·Ð²ÐµÐ·Ð´Ð½ÑÑ
авÑоÑов или Ð¾Ñ Ð¼Ð¾Ð´ÐµÑаÑоÑа пеÑвой линии",isClosed:!0}),(0,U.jsxs)("div",{className:tZ().wrapperContent,children:[(0,U.jsx)(te,{className:tZ().filter,filterTypes:tt.BR,modQueue:t,tabName:o}),n.length>0?(0,U.jsx)("div",{className:tZ().cardList,children:(0,U.jsx)(t3,{fetchNextPage:s,hasMore:!!a,dataCards:n,cardLine:"finalLine",bookLineStatus:"return",modQueue:t,tabName:o})}):(0,U.jsx)(tn.o,{illustrationName:"notFoundStub",headTitle:"У Ð²Ð°Ñ Ð½ÐµÑ Ð½Ð¸ одной веÑнÑвÑейÑÑ ÐºÐ½Ð¸Ð³Ð¸ на модеÑаÑиÑ"})]})]}):(0,U.jsx)(eE.x,{})},ot=function(){var e=(0,u.v9)(E.d),t=(0,u.v9)(N),o=(0,u.v9)(p),r=(0,u.I0)();(0,q.useEffect)(function(){r((0,eN.cp)(ew.hK.finalQueueBooksNew))},[]);var n=function(e){r((0,eN.cp)(e))},i=null==t?void 0:t.moderation_book_final.old_book_final_moderation,a=null==t?void 0:t.moderation_book_final.new_book_final_moderation,s=null==t?void 0:t.moderation_book_final_error,c=null==t?void 0:t.moderation_book_final_freezed,d=(0,q.useMemo)(function(){return o===ew.hK.finalQueueBooksNew?ev.new:o===ew.hK.finalQueueBooksReturns?ev.returned:o===ew.hK.finalQueueBooksErrors?ev.errors:o===ew.hK.finalQueueBooksFreezed?ev.paused:void 0},[o]);return(0,q.useEffect)(function(){(0,e_.nv)({event_type:"mod_queue_view",event_parameters:{}},e,!0)},[]),(0,q.useEffect)(function(){d&&(0,e_.nv)({event_type:"block_view",event_parameters:{mod_queue:ek.finalBooks,mod_state:d}},e)},[d]),(0,U.jsxs)("div",{className:l()("g-col-12",tZ().wrapperPage),children:[(0,U.jsx)(G.H1,{className:tZ().h1,children:" Ðниги"}),(0,U.jsxs)(ej.m,{children:[(0,U.jsx)(eg.O,{label:"ÐозвÑаÑÑ",isActive:o===ew.hK.finalQueueBooksReturns,counter:i,onClick:function(){return n(ew.hK.finalQueueBooksReturns)}}),(0,U.jsx)(eg.O,{label:"ÐовÑе",isActive:o===ew.hK.finalQueueBooksNew,counter:a,onClick:function(){return n(ew.hK.finalQueueBooksNew)}}),(0,U.jsx)(eg.O,{label:"ÐÑибки",isActive:o===ew.hK.finalQueueBooksErrors,counter:s,onClick:function(){return n(ew.hK.finalQueueBooksErrors)}}),(0,U.jsx)(eg.O,{label:"ÐавиÑÑие",isActive:o===ew.hK.finalQueueBooksFreezed,counter:c,onClick:function(){return n(ew.hK.finalQueueBooksFreezed)}})]}),o===ew.hK.finalQueueBooksReturns&&(0,U.jsx)(oe,{modQueue:ek.finalBooks,tabName:ev.returned}
1),o===ew.hK.finalQueueBooksNew&&(0,U.jsx)(t7,{modQueue:ek.finalBooks,tabName:ev.new}),o===ew.hK.finalQueueBooksErrors&&(0,U.jsx)(t5,{modQueue:ek.finalBooks,tabName:ev.errors}),o===ew.hK.finalQueueBooksFreezed&&(0,U.jsx)(t8,{modQueue:ek.finalBooks,tabName:ev.paused})]})},oo=o(82245),or=o.n(oo),on=function(e){var t=e.dataCards,o=e.cardLine,r=e.bookLineStatus,n=e.hasMore,i=e.fetchNextPage,a=e.className,s=e.modQueue,c=e.tabName,d=(0,u.v9)(E.d),m=(0,q.useState)([]),_=m[0],p=m[1];function f(e){_.includes(e)?p(_.filter(function(t){return t!==e})):p([e].concat((0,eI.Z)(_)))}var h=function(e){(0,e_.nv)({event_type:"check_art_click",event_parameters:{mod_queue:s||"",mod_state:c||"",mod_item:"art",art_id:String(e)}},d)};return(0,U.jsxs)("div",{className:l()([or().wrapper,a]),children:[_.length>0&&(0,U.jsx)("div",{children:"оÑпÑавиÑÑ"}),(0,U.jsx)(tD.Z,{next:i,hasMore:n,loader:(0,U.jsx)(eE.x,{}),dataLength:_.length,children:t.length>0&&t.map(function(e){var t=e.nearest_chapter_publication_date,n=e.sent_to_moderation,i=e.is_imported,a=e.obscene_words_count,s=e.who_returned_group,l=e.moderator_email,c=e.book,u=c.name,d=c.id,m=c.processing_time,p=c.license_type,x=c.updated_at,v=c.cover.ebook_image_url,k=c.is_postmoderation,b=c.is_blank_for_audiobook,g=c.was_created_from_audio,j=e.book.plagiarism,y=j.plagiarism_verdict,N=j.plagiarism_result,w=N.text,C=N.name_book,B=N.author,T=N.url;return(0,U.jsx)(tM,{bookName:u,bookId:d,bookCardLine:o,bookLineStatus:r,user:e.book.user,timerType:m,copyrightsText:w,copyrightsType:y,licenceType:p,moderatorType:s,moderatorEmail:l,pathToPicture:v,dateUpdate:x,sentToModeration:n,releaseDate:t,checked:_.includes(e.id),onCheck:f,copyrightsTooltipText:C,copyrightsTooltipTitle:B,copyrightsTooltipLink:T,buttonHref:"".concat(ts.x.moderation.book.new).concat(e.id),isPostmoderation:k,isImported:i,isBlankForAudiobook:b,wasCreatedFromAudio:g,onCheckButtonClick:function(){return h(e.id)},obsceneWordsCount:a,moderationId:e.id,isPdf:e.is_pdf},e.id)})})]})},oi=function(e){var t=e.modQueue,o=e.tabName,r=(0,u.v9)(I),n=r.result,i=r.pagination,a=(0,u.I0)(),s=(0,R.useRouter)(),l=tr(),c=null==i?void 0:i.next_page;return n?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(eb.b,{type:eb.o.info,isWrapper:!0,className:tZ().alert,textInformation:"ÐÑеÑÐµÐ´Ñ Ð¸Ð· новÑÑ
книг Ð¾Ñ Ð°Ð²ÑоÑов и главного модеÑаÑоÑа"}),(0,U.jsxs)("div",{className:tZ().wrapperContent,children:[(0,U.jsx)(te,{className:tZ().filter,filterTypes:tt.FN,modQueue:t,tabName:o}),n.length>0?(0,U.jsx)("div",{className:tZ().cardList,children:(0,U.jsx)(on,{fetchNextPage:l,hasMore:!!c,dataCards:n,cardLine:"myLine",bookLineStatus:"new",modQueue:t,tabName:o})}):(0,U.jsx)(tn.o,{illustrationName:"notFoundStub",headTitle:"У Ð²Ð°Ñ Ð½ÐµÑ Ð½Ð¸ одной книги на модеÑаÑии",title:"ÐеÑейдиÑе в ÐÑеÑеди и вÑбÑеÑе книги",buttonText:"ÐеÑейÑи в ÐÑеÑеди",buttonHandler:function(){s.push("?currentTab=myBooks"),a((0,eN.cp)("allQueueBooksNew"))}})]})]}):(0,U.jsx)(eE.x,{})},oa=function(e){var t=e.modQueue,o=e.tabName,r=(0,u.v9)(M),n=r.result,i=r.pagination,a=null==i?void 0:i.next_page,s=tr();return n?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(eb.b,{type:eb.o.info,isWrapper:!0,className:tZ().alert,textInformation:"ÐÑеÑÐµÐ´Ñ Ð¸Ð· веÑнÑвÑиÑ
ÑÑ ÐºÐ½Ð¸Ð³ Ð¾Ñ Ð°Ð²ÑоÑов и главного модеÑаÑоÑа"}),(0,U.jsxs)("div",{className:tZ().wrapperContent,children:[(0,U.jsx)(te,{className:tZ().filter,filterTypes:tt.LL,modQueue:t,tabName:o}),n.length>0?(0,U.jsx)("div",{className:tZ().cardList,children:(0,U.jsx)(on,{fetchNextPage:s,hasMore:!!a,dataCards:n,cardLine:"myLine",bookLineStatus:"return",modQueue:t,tabName:o})}):(0,U.jsx)(tn.o,{illustrationName:"notFoundStub",headTitle:"У Ð²Ð°Ñ Ð½ÐµÑ Ð½Ð¸ одной веÑнÑвÑейÑÑ ÐºÐ½Ð¸Ð³Ð¸ на модеÑаÑиÑ",title:"ÐоÑ
оже авÑоÑÑ Ð½Ðµ внеÑли комменÑаÑии а модеÑаÑÐ¾Ñ Ð½Ðµ пÑовеÑил, Ñо ÑÑо Ð²Ñ ÐµÐ¼Ñ Ð¾ÑпÑавили. ÐодождемÑ..."})]})]}):(0,U.jsx)(eE.x,{})},os=function(){var e=(0,u.v9)(p),t=(0,u.v9)(N),o=(0,u.v9)(E.d),r=(0,u.I0)();(0,q.useEffect)(function(){r((0,eN.cp)(ew.hK.myBooksQueueNew))},[r]);var n=function(e){r((0,eN.cp)(e))},i=(0,q.useMemo)(function(){return e===ew.hK.myBooksQueueNew?ev.new:e===ew.hK.myBooksQueueReturns?ev.returned:void 0},[e]);return(0,q.useEffect)(function(){(0,e_.nv)({event_type:"mod_queue_view",event_parameters:{}},o,!0)},[]),(0,q.useEffect)(function(){i&&(0,e_.nv)({event_type:"block_view",event_parameters:{mod_queue:ek.myBooks,mod_state:i}},o)},[i]),(0,U.jsxs)("div",{className:l()("g-col-12",tZ().wrapperPage),children:[(0,U.jsx)(G.H1,{className:tZ().h1,children:" Ðниги"}),(0,U.jsxs)(ej.m,{children:[(0,U.jsx)(eg.O,{label:"ÐозвÑаÑÑ",isActive:e===ew.hK.myBooksQueueReturns,counter:null==t?void 0:t.moderation_book.old_book_moderation,onClick:function(){return n(ew.hK.myBooksQueueReturns)}}),(0,U.jsx)(eg.O,{label:"ÐовÑе",isActive:e===ew.hK.myBooksQueueNew,counter:null==t?void 0:t.moderation_book.new_book_moderation,onClick:function(){return n(ew.hK.myBooksQueueNew)}})]}),e===ew.hK.myBooksQueueReturns&&(0,U.jsx)(oa,{modQueue:ek.myBooks,tabName:ev.returned}),e===ew.hK.myBooksQueueNew&&(0,U.jsx)(oi,{modQueue:ek.myBooks,tabName:ev.new})]})},ol=o(62260),oc=o.n(ol),ou=function(e){var t=e.dataCards,o=e.cardLine,r=e.profileLineStatus,n=e.hasMore,i=e.fetchNextPage,a=e.className,s=e.modQueue,c=e.tabName,d=(0,u.v9)(E.d),m=(0,q.useState)([]),_=m[0],p=m[1];function f(e){_.includes(e)?p(_.filter(function(t){return t!==e})):p([e].concat((0,eI.Z)(_)))}var h=function(e){(0,e_.nv)({event_type:"check_art_click",event_parameters:{mod_queue:s||"",mod_state:c||"",mod_item:"profile",profile_id:String(e)}},d)};return(0,U.jsxs)("div",{className:l()([oc().wrapper,a]),children:[_.length>0&&(0,U.jsx)("div",{children:"оÑпÑавиÑÑ"}),(0,U.jsx)(tD.Z,{next:i,hasMore:n,loader:(0,U.jsx)(eE.x,{}),dataLength:t.length,children:t.length>0&&t.map(function(e){var t,n,i,a,s,l;return(0,U.jsx)(tV,{profileId:(null===(t=e.profile)||void 0===t?void 0:t.id)||0,bookCardType:o,bookStatus:r,bookTime:(null===(n=e.profile)||void 0===n?void 0:n.date_modified)||"",timerType:e.processing_time,authorName:(null===(i=e.profile)||void 0===i?void 0:i.full_name)||"",authorEmail:(null===(a=e.profile)||void 0===a?void 0:a.email)||"",userEmail:null===(s=e.profile)||void 0===s?void 0:s.moderator_email,moderationBooks:(null===(l=e.profile)||void 0===l?void 0:l.books_on_moderation)||0,onCheck:f,buttonHref:"".concat(ts.x.moderation.profile.new).concat(e.id),onClickCheckButton:function(){var t;return h((null===(t=e.profile)||void 0===t?void 0:t.id)||0)}},e.id)})})]})},od=function(e){var t=e.modQueue,o=e.tabName,r=(0,u.v9)(D),n=r.result,i=r.pagination,a=(0,u.I0)(),s=(0,R.useRouter)(),l=tr(),c=null==i?void 0:i.next_page;return n?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(eb.b,{type:eb.o.info,isWrapper:!0,className:tZ().alert,textInformation:"ÐÑеÑÐµÐ´Ñ Ð¸Ð· новÑÑ
пÑоÑилей Ð¾Ñ Ð°Ð²ÑоÑа"}),(0,U.jsxs)("div",{className:tZ().wrapperContent,children:[(0,U.jsx)(te,{className:tZ().filter,filterTypes:tt.q6,modQueue:t,tabName:o}),n.length>0?(0,U.jsx)("div",{className:tZ().cardList,children:(0,U.jsx)(ou,{fetchNextPage:l,hasMore:!!c,dataCards:n,cardLine:"myLine",profileLineStatus:"new",modQueue:t,tabName:o})}):(0,U.jsx)(tn.o,{illustrationName:"notFoundStub",headTitle:"У Ð²Ð°Ñ Ð½ÐµÑ Ð½Ð¸ одного пÑоÑÐ¸Ð»Ñ Ð½Ð° модеÑаÑиÑ",title:"ÐеÑейдиÑе в ÐÑеÑеди и вÑбеÑеÑе пÑоÑили",buttonText:"ÐеÑейÑи в ÐÑеÑеди",buttonHandler:function(){s.push("?currentTab=allProfiles"),a((0,eN.cp)("allQueueProfileNew"))}})]})]}):(0,U.jsx)(eE.x,{})},om=function(e){var t=e.modQueue,o=e.tabName,r=(0,u.v9)(Q),n=r.result,i=r.pagination,a=null==i?void 0:i.next_page,s=tr();return n?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(eb.b,{type:eb.o.info,isWrapper:!0,className:tZ().alert,textInformation:"ÐÑеÑÐµÐ´Ñ Ð¸Ð· веÑнÑвÑиÑ
ÑÑ Ð¿ÑоÑилей Ð¾Ñ Ð°Ð²ÑоÑа"}),(0,U.jsxs)("div",{className:tZ().wrapperContent,children:[(0,U.jsx)(te,{className:tZ().filter,filterTypes:tt.Vb,modQueue:t,tabName:o}),n.length>0?(0,U.jsx)("div",{className:tZ().cardList,children:(0,U.jsx)(ou,{fetchNextPage:s,hasMore:!!a,dataCards:n,cardLine:"myLine",profileLineStatus:"return",modQueue:t,tabName:o})}):(0,U.jsx)(tn.o,{illustrationName:"notFoundStub",headTitle:"Ðе веÑнÑлоÑÑ Ð½Ð¸ одного пÑоÑÐ¸Ð»Ñ Ð½Ð° модеÑаÑиÑ",title:"ÐÑ, подождемÑ..."})]})]}):(0,U.jsx)(eE.x,{})},o_=function(){var e=(0,u.v9)(E.d),t=(0,u.v9)(p),o=(0,u.v9)(N),r=(0,u.I0)();(0,q.useEffect)(function(){r((0,eN.cp)(ew.xx.myQueueProfilesNew))},[r]);var n=function(e){r((0,eN.cp)(e))},i=null==o?void 0:o.moderation_profile.old_profile_moderation,a=null==o?void 0:o.moderation_profile.new_profile_moderation,s=(0,q.useMemo)(function(){return t===ew.xx.myQueueProfilesNew?ev.new:t===ew.xx.myQueueProfilesReturns?ev.returned:void 0},[t]);return(0,q.useEffect)(function(){(0,e_.nv)({event_type:"mod_queue_view",event_parameters:{}},e,!0)},[]),(0,q.useEffect)(function(){s&&(0,e_.nv)({event_type:"block_view",event_parameters:{mod_queue:ek.myProfiles,mod_state:s}},e)},[s]),(0,U.jsxs)("div",{className:l()("g-col-12",tZ().wrapperPage),children:[(0,U.jsx)(G.H1,{className:tZ().h1,children:" ÐÑоÑили"}),(0,U.jsxs)(ej.m,{children:[(0,U.jsx)(eg.O,{label:"ÐозвÑаÑÑ",isActive:t===ew.xx.myQueueProfilesReturns,counter:i,onClick:function(){return n(ew.xx.myQueueProfilesReturns)}}),(0,U.jsx)(eg.O,{label:"ÐовÑе",isActive:t===ew.xx.myQueueProfilesNew,counter:a,onClick:function(){return n(ew.xx.myQueueProfilesNew)}})]}),t===ew.xx.myQueueProfilesReturns&&(0,U.jsx)(om,{modQueue:ek.myProfiles,tabName:ev.returned}),t===ew.xx.myQueueProfilesNew&&(0,U.jsx)(od,{modQueue:ek.myProfiles,tabName:ev.new})]})},op=function(e){var t="";return e&&(t="string"==typeof e?e:e[0]),["allBooks","allProfiles","myBooks","myProfiles","finalBooks"].includes(t)||(t="allBooks"),t},of=!0;function oh(){var e=op((0,R.useRouter)().query.currentTab);return(0,U.jsxs)(ec,{children:["allBooks"===e&&(0,U.jsx)(tW,{}),"allProfiles"===e&&(0,U.jsx)(t9,{}),"myBooks"===e&&(0,U.jsx)(os,{}),"myProfiles"===e&&(0,U.jsx)(o_,{}),"finalBooks"===e&&(0,U.jsx)(ot,{})]})}},52444:function(e,t,o){"use strict";o.d(t,{I5:function(){return d},JJ:function(){return c},Oy:function(){return m},Tm:function(){return u},UW:function(){return s},ZE:function(){return _},_n:function(){return f},cx:function(){return v},jV:function(){return l},lR:function(){return k},sr:function(){return x},zE:function(){return p}});var r=o(27863),n=o(64384),i=o(67336),a=o(81180),s=function(e){if(!e)return"";var t=(e.getMonth()+1).toString(),o=e.getDate().toString(),r=e.getFullYear();return t.length<2&&(t="0".concat(t)),o.length<2&&(o="0".concat(o)),[r,t,o].join("-")},l=function(e,t){return new Date(e).toJSON().slice(0,10).split("-").reverse().join(null!=t?t:".")},c=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"})}
1,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"})},m=function(e){var t=new Date(e);return"".concat(t.getDate()," ").concat(["ÑнваÑÑ","ÑевÑалÑ","маÑÑа","апÑелÑ","маÑ","иÑнÑ","иÑлÑ","авгÑÑÑа","ÑенÑÑбÑÑ","окÑÑбÑÑ","ноÑбÑÑ","декабÑÑ"][t.getMonth()]," ").concat(t.getFullYear())},_=function(e){var t;return(0,n.Z)((t=Number(e),(0,r.Z)(t,new Date(t).getTimezoneOffset())))},p=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(","," ")},f=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(),o=t.match(/^(\d{2})[.\-](\d{2})[.\-](\d{4})$/);if(o)return{d:Number(o[1]),m:Number(o[2])-1,y:Number(o[3])};var r=t.match(/^(\d{4})-(\d{2})-(\d{2})/);if(r)return{y:Number(r[1]),m:Number(r[2])-1,d:Number(r[3])};var n=new Date(t);return{y:n.getFullYear(),m:n.getMonth(),d:n.getDate()}},x=function(e){var t=h(e);return new Date(t.y,t.m,t.d,0,0,0,0)},v=function(e){var t=new Date(e),o=t.getDate(),r=t.toLocaleDateString("ru-RU",{day:"numeric",month:"long"}).replace(/\d+/,"").trim();return"".concat(o," ").concat(r)},k=function(e){var t=new Date(e);return"".concat(t.toTimeString().slice(0,5))}},62618:function(e,t,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/moderation/queue/new",function(){return o(99844)}])},48817:function(e){e.exports={alert:"Alert_alert__FcVpj",small:"Alert_small__r607n",info:"Alert_info__KcHR5",error:"Alert_error__An4BZ",success:"Alert_success___hugq",alertIcon:"Alert_alertIcon__pKVVt",alertIconAndTextBlock:"Alert_alertIconAndTextBlock__AAYyk",title:"Alert_title__MoaL5",textInformationBlock:"Alert_textInformationBlock__3hgEp",roundAlertIcon:"Alert_roundAlertIcon__Hbwkh",button:"Alert_button__UHyxm",closeIcon:"Alert_closeIcon__GIPAk"}},99201:function(e){e.exports={checkbox:"Checkbox_checkbox__mFx8f",label:"Checkbox_label__ezU7q",labelText:"Checkbox_labelText__eOYLx",image:"Checkbox_image__kHNzl",textColorForDisabled:"Checkbox_textColorForDisabled__1Vvjo",borderRadiusForDisabled:"Checkbox_borderRadiusForDisabled__96nVN",circle:"Checkbox_circle__HPZlq",errorBorder:"Checkbox_errorBorder__INxkP",circleInput:"Checkbox_circleInput___znw3",errorMessage:"Checkbox_errorMessage__5amIM"}},8339:function(e){e.exports={label:"Label_label__0wAf_",text:"Label_text__Lq0JU",ebook:"Label_ebook__hLErJ",audio:"Label_audio__Wj_BS",audiobook:"Label_audiobook__wX4M2",draft:"Label_draft__8fz_z",warning:"Label_warning__STNyy",editor:"Label_editor__HbYWJ"}},97961:function(e){e.exports={labelImport:"LabelImport_labelImport___YIBu",iconImport:"LabelImport_iconImport__Ttzpd"}},46620:function(e){e.exports={licence:"Licence_licence__Y2z14",draft:"Licence_draft__vfurG"}},37734:function(e){e.exports={root:"Switcher_root__5NPSy",wrapperFalse:"Switcher_wrapperFalse__k6yUR",disabled:"Switcher_disabled__pH_r8",small:"Switcher_small__vM0Qa"}},51193:function(e){e.exports={tab:"Tab_tab___L6ir",tabActive:"Tab_tabActive__fwdka",labelActive:"Tab_labelActive__d0YIY",counter:"Tab_counter__bS_UE",counterActive:"Tab_counterActive__hNVjd",counterError:"Tab_counterError__4KJyT"}},8317:function(e){e.exports={tabs:"Tabs_tabs__IJIUr"}},17490:function(e){e.exports={link:"Tooltip_link__rAkgS",title:"Tooltip_title__Z0ec_"}},56362:function(e){e.exports={container:"BookLoader_container__K9H5t",iconContainer:"BookLoader_iconContainer__27Hvn",message:"BookLoader_message__Fmdyp"}},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"}},16077:function(e){e.exports={root:"Notification_root___WdZ1",mainWithoutButton:"Notification_mainWithoutButton__oz8C_",positionTopRight:"Notification_positionTopRight__eI_HN",positionBottomRight:"Notification_positionBottomRight__g54SF",leftWrapper:"Notification_leftWrapper__XlVt5",header:"Notification_header__jwDSL",subHeader:"Notification_subHeader__Iv8vR",turnButton:"Notification_turnButton__JlFay",buttonText:"Notification_buttonText__p_zfp",closeIcon:"Notification_closeIcon__InX7p"}},1326:function(e){e.exports={container:"Timer_container__Gr2k3",content:"Timer_content__BASAg",timer:"Timer_timer__JWAVD"}},92023:function(e){e.exports={helpText:"AutcompleteModerator_helpText__LPVK2",withError:"AutcompleteModerator_withError__D8sPR",changeData:"AutcompleteModerator_changeData___x8gr"}},55555:function(e){e.exports={card:"BookCard_card__eCZ5S",selected:"BookCard_selected__OROI_",new:"BookCard_new__foVUR",return:"BookCard_return__cSiBo",error:"BookCard_error__sfZkM",pending:"BookCard_pending__753i3",errorCode:"BookCard_errorCode__FtWA9",bookVerificationStatus:"BookCard_bookVerificationStatus__DFFPZ",time:"BookCard_time__O3tPs",timeBlock:"BookCard_timeBlock__nhA_5",bookCover:"BookCard_bookCover__EMqr8",bookName:"BookCard_bookName__e5Au2",bookBlock:"BookCard_bookBlock__0dNfL",moderatorBlock:"BookCard_moderatorBlock__L4GoR",userType:"BookCard_userType__6twnd",labelContainer:"BookCard_labelContainer__TOF9O",vertical:"BookCard_vertical___52IK",wrapper:"BookCard_wrapper__pryCm",obsceneWordsCountLink:"BookCard_obsceneWordsCountLink__ehaV3",obsceneWordsCount:"BookCard_obsceneWordsCount__wBywH",iconObsceneWordsCount:"BookCard_iconObsceneWordsCount__Xsoi3",labelDateRelease:"BookCard_labelDateRelease__4lwAc",labelText:"BookCard_labelText__kXrdy",bookCoverImg:"BookCard_bookCoverImg__Vgrbs"}},37352:function(e){e.exports={copyrights:"Copyrights_copyrights__V_DRJ",unknown:"Copyrights_unknown__s64BF",protected:"Copyrights_protected__4mQp2",free:"Copyrights_free__sA23Z",public_domain:"Copyrights_public_domain__hzDDc",null:"Copyrights_null__mdIsv"}},82729:function(e){e.exports={wrapper:"FiltersModerator_wrapper__kR5f2",heading:"FiltersModerator_heading__pqZb1",h2:"FiltersModerator_h2__6I5jU",h3:"FiltersModerator_h3__oyey5",button:"FiltersModerator_button__toKV0",icon:"FiltersModerator_icon__h9JlM",moderatorAccount:"FiltersModerator_moderatorAccount__9qhf1",plagiarySwitch:"FiltersModerator_plagiarySwitch__6fN09",plagiary:"FiltersModerator_plagiary__9c1rC",input:"FiltersModerator_input__y7BgJ",group:"FiltersModerator_group__ToRMf"}},52206:function(e){e.exports={moderatorSwitch:"ModeratorFilterPlagiarySwitch_moderatorSwitch__yWdLz"}},88653:function(e){e.exports={moderatorSwitch:"ModeratorFilterPostmoderationSwitch_moderatorSwitch__hg6dN"}},19124:function(e){e.exports={root:"LayoutQueue_root__Cj2Tg",main:"LayoutQueue_main__N_cX6",wrapper:"LayoutQueue_wrapper__ExUTe"}},70455:function(e){e.exports={card:"ProfileCard_card__Cmhga",selected:"ProfileCard_selected__c_rs7",new:"ProfileCard_new__j40ho",return:"ProfileCard_return__MLiu2",error:"ProfileCard_error__Z4Hko",pending:"ProfileCard_pending__yGXZl",timeBlock:"ProfileCard_timeBlock__5Fm9t",time:"ProfileCard_time__diBQA",bookBlock:"ProfileCard_bookBlock__PRoMD",authorName:"ProfileCard_authorName__Kyvyd",authorEmail:"ProfileCard_authorEmail__GlsHd",moderationBooks:"ProfileCard_moderationBooks__LVNu3",userType:"ProfileCard_userType__q7x4l",wrapper:"ProfileCard_wrapper__sWsZ6"}},36150:function(e){e.exports={container:"ProfileStatus_container__hpvyI",content:"ProfileStatus_content__MDSpK",authorName:"ProfileStatus_authorName__928Oh",blacklisted:"ProfileStatus_blacklisted__F0IGu",emailContainer:"ProfileStatus_emailContainer__ir8X0",email:"ProfileStatus_email__cWcqY",blacklistMark:"ProfileStatus_blacklistMark__yobwc"}},68907:function(e){e.exports={root:"Sider_root__YKdg_",isClosed:"Sider_isClosed__dNIcB",closeButton:"Sider_closeButton__9HeZJ",header:"Sider_header__AQvma",userBlock:"Sider_userBlock__pOcGw",content:"Sider_content__ltYqj",footer
1:"Sider_footer__tfeJc",exitButtonMobile:"Sider_exitButtonMobile__Z_0O0"}},94952:function(e){e.exports={root:"DropDownButton_root___ZKNa",dropDown:"DropDownButton_dropDown__RkGrW",active:"DropDownButton_active__2xzep",dropDownHeader:"DropDownButton_dropDownHeader__LO1UE",dropDownHeaderTitle:"DropDownButton_dropDownHeaderTitle__y1OTf",dropDownHeaderIcon:"DropDownButton_dropDownHeaderIcon__7LizZ",dropDownHeaderButton:"DropDownButton_dropDownHeaderButton__8Wcoq",dropDownContent:"DropDownButton_dropDownContent__DhvCK",dropDownContentItem:"DropDownButton_dropDownContentItem__Y3o5u",dropDownContentTitle:"DropDownButton_dropDownContentTitle__qjDy8",counter:"DropDownButton_counter__ISIjK",isActiveButton:"DropDownButton_isActiveButton__PVQ6E"}},82599:function(e){e.exports={content:"userBlock_content__A5k5L",email:"userBlock_email__J05XR"}},70204:function(e){e.exports={root:"StickyFooter_root__i_W4U",content:"StickyFooter_content__lAc_7",buttonText:"StickyFooter_buttonText__bShOG",notification:"StickyFooter_notification__e9Vkk",text:"StickyFooter_text__FiW00"}},69482:function(e){e.exports={root:"StickyHeaderModeration_root__jHDEx",isContentScan:"StickyHeaderModeration_isContentScan__JCJk5",isQueue:"StickyHeaderModeration_isQueue__kJrBv",wrapper:"StickyHeaderModeration_wrapper__u5kHX",exitButton:"StickyHeaderModeration_exitButton__FxLJI",historyButton:"StickyHeaderModeration_historyButton__z_izC",commentsButton:"StickyHeaderModeration_commentsButton__ZqS93",menuButton:"StickyHeaderModeration_menuButton__Ouy06",leftWrapper:"StickyHeaderModeration_leftWrapper__QywC7",icon:"StickyHeaderModeration_icon__RmEO_",bookName:"StickyHeaderModeration_bookName__Dsa6N"}},31292:function(e){e.exports={container:"UserType_container__7yJ2Q",content:"UserType_content__JnIk0",emailContainer:"UserType_emailContainer__a5Kzo",email:"UserType_email__hk7qC"}},40964:function(e){e.exports={checkbox:"CardsListAllBooks_checkbox__veZuw",wrapper:"CardsListAllBooks_wrapper__Ow_2y"}},93026:function(e){e.exports={checkbox:"CardsListAllProfiles_checkbox__4VuGw",wrapper:"CardsListAllProfiles_wrapper__vzC71"}},7847:function(e){e.exports={checkbox:"CardsListFinalBooks_checkbox__B0bTv",wrapper:"CardsListFinalBooks_wrapper__88Vfw"}},37754:function(e){e.exports={wrapperPage:"ModerationQueueStyles_wrapperPage__eIbmF",h1:"ModerationQueueStyles_h1__4RYEd",wrapperContent:"ModerationQueueStyles_wrapperContent__zZA4Q",checkAll:"ModerationQueueStyles_checkAll__0ymEv",alert:"ModerationQueueStyles_alert__7NPyo",filter:"ModerationQueueStyles_filter__GAL1C",cardList:"ModerationQueueStyles_cardList___NA2B",noContentElement:"ModerationQueueStyles_noContentElement__4sVF_"}},82245:function(e){e.exports={checkbox:"CardsListMyBooks_checkbox__FyU9P",wrapper:"CardsListMyBooks_wrapper__dPMY6"}},62260:function(e){e.exports={checkbox:"CardsListMyProfiles_checkbox__ePFs4",wrapper:"CardsListMyProfiles_wrapper__hhY3N"}}},function(e){e.O(0,[5675,9593,2238,1362,8067,3525,8212,3189,2888,9774,179],function(){return e(e.s=62618)}),_N_E=e.O()}]); 2//# sourceMappingURL=new-5a11dec41b75f8b9.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.