1try{let t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="90ee1636-c33b-4677-9da9-2a00bcdec328",t._sentryDebugIdIdentifier="sentry-dbid-90ee1636-c33b-4677-9da9-2a00bcdec328")}catch(t){}try{let t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="90ee1636-c33b-4677-9da9-2a00bcdec328",t._sentryDebugIdIdentifier="sentry-dbid-90ee1636-c33b-4677-9da9-2a00bcdec328")}catch(t){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2951],{61568:function(t,e,n){"use strict";n.d(e,{Fh:function(){return C},iB:function(){return x},vv:function(){return N}});var i,r=n(59499),a=n(94184),o=n.n(a),s=n(11752),c=n.n(s),u=n(25675),l=n.n(u),d=n(67294),_=n(42467),h=n(89637),m=n(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}},p=n(37371),g=n.n(p),v=n(85893),x=((i={}).small="small",i.medium="medium",i.large="large",i.extraLarge="extraLarge",i.smallAudio="smallAudio",i.betweenSmallAndMediumAudio="betweenSmallAndMediumAudio",i.mediumAudio="mediumAudio",i.largeAudio="largeAudio",i.extraLargeAudio="extraLargeAudio",i.extraSmall="extraSmall",i),b=function(t){if(!t)return null;var e=t.trim();return e?/^https?:\/\//i.test(e)?e.replace(/\/$/,""):"https://".concat(e.replace(/^\/+/,"")):null},j=function(){var t=(c()()||{}).publicRuntimeConfig;return b(null==t?void 0:t.host)||(window.location.origin?window.location.origin:"https://selfpub.dev")},N=function(t){if(!t)return t;if(/^(https?:)?\/\//i.test(t)||t.startsWith("blob:")||t.startsWith("data:"))return t.startsWith("//")?"https:".concat(t):t;var e=j();try{return new URL(t,e).toString()}catch(e){return t}},C=function(t){var e=t.pictureFile,n=void 0===e?null:e,i=t.pathToPicture,a=t.bookName,s=t.className,c=t.classNameImg,u=t.size,p=void 0===u?"medium":u,x=t.ageRating,b=t.censored,j=t.onClick,C=t.pathToFullSize,w=t.isLink,D=void 0===w||w,k=t.isLoading,T=t.forceShowIllustration,S=void 0!==T&&T,y=t.dataTestId,A=a.slice(0,1).toLocaleUpperCase(),I=f[p].width/3.6,B=f[p].height/11.25,W=f[p].width/7.5,L=(0,d.useMemo)(function(){return!!b&&!!S||!!(b&&!i)},[b,i,S]),O=(0,d.useMemo)(function(){return(!!x||!!b)&&!!S||!!((x||b)&&!i)},[b,i,S,x]);return(0,v.jsxs)("div",{className:o()("shadowLevel0",g().coverBlock,s,g()[p]),onClick:j,"data-testid":y,children:[void 0!==k&&k&&(0,v.jsx)("div",{className:g().loaderContainer,children:(0,v.jsx)(m.D,{})}),(0,v.jsxs)("div",{className:o()(g().illustrationWrapper,(0,r.Z)({},g().censored,x&&!b)),children:[L&&(0,v.jsx)(_.Q,{className:g().illustrationIcon,imageType:"censored",width:I,height:B}),O&&(0,v.jsx)(_.Q,{className:g().illustrationIcon,imageType:"ageRating",width:W,height:W})]}),function(){if(n){var t=URL.createObjectURL(n);return(0,v.jsx)(l(),{src:t,alt:a,width:f[p].width,height:f[p].height})}return i?(0,v.jsx)("a",{href:C||i,target:"_blank",rel:"noreferrer",className:o()(g().cover,g().coverImg,c,(0,r.Z)({},g().notLink,!D)),children:(0,v.jsx)(l(),{src:N(i),alt:a,width:f[p].width,height:f[p].height})}):(0,v.jsx)("div",{className:o()(g().cover,c,(0,r.Z)({},g()[p],p)),children:(0,v.jsx)(h.H1,{className:g().firstLetter,children:A})})}()]})}},33960:function(t,e,n){"use strict";n.d(e,{o:function(){return h}});var i=n(59499),r=n(94184),a=n.n(r),o=n(35407),s=n(42467),c=n(89637),u=n(61568),l=n(81029),d=n.n(l),_=n(85893),h=function(t){var e,n=t.className,r=t.illustrationName,l=t.illustrationHeight,h=t.illustrationWidth,m=t.illustrationFormat,f=t.isBookCover,p=t.bookCoverSize,g=void 0===p?u.iB.small:p,v=t.bookCoverPathToPicture,x=t.headTitle,b=t.title,j=t.subTitle,N=t.buttonText,C=t.buttonHandler,w=t.buttonHref,D=t.dataTestId;return(0,_.jsxs)("div",{className:a()(d().container,n),"data-testid":D,children:[r&&(0,_.jsx)(s.Q,{imageType:r,height:l,width:h,format:m}),f&&(0,_.jsx)(u.Fh,{bookName:null!=x?x:"",size:g,pathToPicture:v}),x&&(0,_.jsx)(c.H2,{className:a()(d().headTitle,(e={},(0,i.Z)(e,d().headTitleWithButton,N),(0,i.Z)(e,d().headTitleWithBookCover,f),e)),children:(0,_.jsx)(c.T,{children:x})}),(0,_.jsx)(c.K0,{className:a()(d().title,(0,i.Z)({},d().titleWithButton,N)),dataTestId:"no-content-stub-text",children:b}),j&&(0,_.jsx)(c.K0,{className:d().subTitle,children:(0,_.jsx)(c.T,{children:j})}),N&&(0,_.jsx)(o.z,{onClick:C,href:w,size:"large",dataTestId:"no-content-stub-button",children:(0,_.jsx)(c.T,{children:N})})]})}},51601:function(t,e,n){"use strict";n.r(e),n.d(e,{__N_SSP:function(){return to},default:function(){return ts}});var i,r,a=n(50029),o=n(90116),s=n(64687),c=n.n(s),u=n(72363),l=n(84035),d=((i={}).active="active",i.created="created",i.archived="archived",i),_=n(2367),h=n(5214),m=n(42221),f=(r=(0,a.Z)(c().mark(function t(e){var n;return c().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n="getDiscountsArts",t.abrupt("return",(0,m.B)({apiPointName:n,queryParams:{discount_status:e}}));case 2:case"end":return t.stop()}},t)})),function(t){return r.apply(this,arguments)}),p=function(t){switch(t){case d.active:return"active";case d.created:return"planned";case d.archived:return"archive";default:return"active"}}
1,g=n(67294),v=n(14416),x=n(14091),b=n(4486),j=n(89637),N=n(61568),C=n(36613),w=n(52444),D=n(6736),k=n(53418),T=n(29934),S=n(41594),y=n(5785),A=n(76713),I=n(74793),B=n.n(I),W=n(85893),L=function(t){var e,n=t.isOpen,i=t.onRequestClose,r=t.artName,o=t.artId,s=t.discountId,u=(0,g.useState)(!0),l=u[0],d=u[1],_=(0,g.useState)(!1),h=_[0],m=_[1],f=(0,v.I0)(),p=(e=(0,a.Z)(c().mark(function t(){var e;return c().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,y.h)("/api/discount/art-discounts/".concat(String(o),"/discounts/").concat(s,"/"),{method:"DELETE"});case 2:e=t.sent,i(),d(e.status<300),m(!0),e.status<300&&f((0,S.Ed)());case 7:case"end":return t.stop()}},t)})),function(){return e.apply(this,arguments)});return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(k.u_,{isOpen:n,onRequestClose:i,className:B().wrapper,children:(0,W.jsx)(T.a,{onDecline:i,onSubmit:p,title:"Удаление Ñкидки Ð´Ð»Ñ ÐºÐ½Ð¸Ð³Ð¸",description:"ÐÑ ÑобиÑаеÑеÑÑ ÑдалиÑÑ Ð·Ð°Ð¿Ð»Ð°Ð½Ð¸ÑованнÑÑ ÑÐºÐ¸Ð´ÐºÑ Ð´Ð»Ñ ÐºÐ½Ð¸Ð³Ð¸ \xab".concat(r||"","\xbb")})}),(0,W.jsx)(A.N,{isOpen:h,onRequestClose:function(){m(!1)},isSuccess:l})]})},O=n(65601),E=n.n(O),Z=function(t){var e=t.art,n=t.status,i=(0,v.v9)(C.d),r=(0,g.useState)(!1),a=r[0],o=r[1],s=(0,h.Z)((0,D.i)(x.l.LG)),c=function(){o(!0),(0,l.nv)({event_type:"drop_discount_click",event_parameters:{discount_state:p(n)}},i)};return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)("div",{className:E().wrapper,children:[(0,W.jsxs)("div",{className:E().cardInfo,children:[(0,W.jsx)(N.Fh,{bookName:e.art_name||"",size:e.is_square_cover?N.iB.mediumAudio:N.iB.medium,pathToPicture:e.art_cover.ebook_image_url,isLink:!1}),(0,W.jsxs)("div",{className:E().cardContext,children:[(0,W.jsxs)("div",{className:E().period,children:[(0,W.jsx)(b.J,{icon:"calendar16x16",className:E().periodIcon}),(0,W.jsxs)(j.OE,{children:[(0,w.jV)(e.start_date)," -"," ",(0,w.jV)(e.end_date)]})]}),(0,W.jsx)(j.u5,{className:E().artName,children:e.art_name}),(0,W.jsxs)("div",{className:E().pricesWrapper,children:[(0,W.jsxs)("div",{className:E().prices,children:[(0,W.jsxs)(j.mj,{children:[e.price_new," â½"]}),(0,W.jsxs)(j.u5,{className:E().oldPrice,children:[e.price_old," â½"]}),(0,W.jsxs)("div",{className:E().discountLabelWrapper,children:[(0,W.jsx)(b.J,{icon:"discountLabel",size:43,className:E().discountLabel}),(0,W.jsxs)(j.xk,{className:E().discountPercent,children:["-",e.discount_percent,"%"]})]})]}),n!==d.created&&(0,W.jsxs)("div",{className:E().salesAmount,children:[(0,W.jsx)(b.J,{icon:"bagOutline16x16"}),(0,W.jsx)(j.u5,{children:e.sales_sum}),(0,W.jsxs)(j.u5,{children:["(",e.sales_amount," â½)"]})]})]}),n===d.created&&s&&(0,W.jsxs)("div",{className:E().deleteIconWrapperMobile,onClick:c,children:[(0,W.jsx)(b.J,{icon:"deleteOutline16x16",size:16}),(0,W.jsx)(j.OE,{className:E().deleteText,children:"УдалиÑÑ"})]})]})]}),n===d.created&&!s&&(0,W.jsx)("div",{className:E().deleteIconWrapper,onClick:c,children:(0,W.jsx)(b.J,{icon:"deleteOutline24x24",size:24})})]}),(0,W.jsx)(L,{isOpen:a,onRequestClose:function(){o(!1)},artName:e.art_name,artId:e.art_id,discountId:e.id})]})},F=n(35407),P=n(52065),M=n(39901),z=n.n(M),R=function(t){var e=t.iconPath,n=t.info,i=t.buttonName,r=t.onClick;return(0,W.jsxs)("div",{className:z().wrapper,children:[(0,W.jsx)("img",{src:e,alt:"discount",className:z().image}),(0,W.jsx)(j.u5,{className:z().info,children:(0,P.I)(n)}),(0,W.jsx)(F.z,{onClick:r,className:z().button,dataTestId:"discountBanner__button",children:i})]})},H={iconPath:"/components/DiscountBanner/sales80x80.png",info:"Ð¡ÐºÐ¸Ð´ÐºÑ Ð¼Ð¾Ð¶Ð½Ð¾ ÑÑÑановиÑÑ Ð´Ð»Ñ Ð°Ñдиокниги, ÑлекÑÑонной книги, опÑбликованной болÑÑе меÑÑÑа, или завеÑÑенной книги в пÑоÑеÑÑе Ñ Ð¼Ð¸Ð½Ð¸Ð¼Ð°Ð»Ñной Ñеной â 149 â½.",buttonName:"УÑÑановиÑÑ"},U={image:"noSales",title:"Ðока Ð½ÐµÑ Ñкидок",info:"Ðак ÑолÑко Ð²Ñ ÑÑÑановиÑе ÑÐºÐ¸Ð´ÐºÑ Ð½Ð° книгÑ, она поÑвиÑÑÑ Ð½Ð° ÑÑой ÑÑÑаниÑе",buttonText:"УÑÑановиÑÑ"},q=n(17563),J=n(87025),K=n(10772),V=n(61518),Y=n(63690),X=n(33960),Q=n(30846),G=n(70689),$=n(36449),tt=n(11874),te=n(20451),tn=n(59558),ti=n(25009),tr=n.n(ti),ta=function(){var t,e=(0,v.v9)(Q.pp),n=(0,v.v9)(Q.Sm),i=(0,v.v9)(Q.k0),r=(0,v.v9)(Q.K2),s=(0,v.v9)(Q.bx),h=(0,v.v9)(Q.NJ),m=(0,v.v9)(C.d),x=(0,v.v9)(G.yo),b=(0,tn.oj)(x),N=r.count,w=r.next_page,D=(0,g.useState)([]),k=D[0],T=D[1],S=s.count,y=s.next_page,A=(0,g.useState)([]),I=A[0],B=A[1],L=h.count,O=h.next_page,E=(0,g.useState)([]),P=E[0],M=E[1],z=(0,g.useState)(!1),ti=z[0],ta=z[1],to=(0,g.useState)(d.active),ts=to[0],tc=to[1],tu=(0,g.useState)(!!w),tl=tu[0],td=tu[1],t_=(0,g.useState)([]),th=t_[0],tm=t_[1],tf=(0,g.useState)({value:"",label:"ÐÑе"}),tp=tf[0],tg=tf[1],tv=(0,g.useState)([]),tx=tv[0],tb=tv[1],tj=[{value:"",label:"ÐÑе"}].concat((0,o.Z)(th.filter(function(t,e,n){return e===n.findIndex(function(e){return e.art_id===t.art_id})}
1).map(function(t){return{value:String(t.art_id),label:t.art_name}}))),tN=(0,v.I0)(),tC="".concat(k.length," из ").concat(String(N)),tw="".concat(tx.length?tx.length:I.length," из ").concat(String(tx.length?tx.length:S)),tD="".concat(P.length," из ").concat(String(L)),tk=(null==e?void 0:e.length)||(null==n?void 0:n.length)||(null==i?void 0:i.length),tT=function(){var t;ta(!0),(0,u.I)({action:"discount_click_install",goalParams:{user_id:null!==(t=m.uuid)&&void 0!==t?t:""}}),(0,l.nv)({event_type:"set_discount_click",event_parameters:{}},m)},tS=function(t){if(t===d.active){if((null==w?void 0:w.length)===0)return;if(w&&e){var r=(0,q.parse)(w.split("?")[1]).offset||0;tN((0,$.$)({discount_status:d.active,limit:10,offset:Number(r)}))}}if(t===d.created){if((null==y?void 0:y.length)===0)return;if(y&&n){var a=(0,q.parse)(y.split("?")[1]).offset||0;tN((0,te.z)({discount_status:d.created,limit:10,offset:Number(a)}))}}if(t===d.archived){if((null==O?void 0:O.length)===0)return;if(O&&i){var o=(0,q.parse)(O.split("?")[1]).offset||0;tN((0,tt.e)({discount_status:d.archived,limit:10,offset:Number(o)}))}}},ty=(t=(0,a.Z)(c().mark(function t(){return c().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,f(d.created);case 2:tm(t.sent.result);case 5:case"end":return t.stop()}},t)})),function(){return t.apply(this,arguments)});(0,g.useEffect)(function(){ty()},[]),(0,g.useEffect)(function(){if(tp.value){var t;tb((t=Number(tp.value),th.filter(function(e){return e.art_id===t})))}tp.value||tb([])},[tp]),(0,g.useEffect)(function(){e&&T([].concat((0,o.Z)(k),(0,o.Z)(e)))},[e]),(0,g.useEffect)(function(){n&&B([].concat((0,o.Z)(I),(0,o.Z)(n)))},[n]),(0,g.useEffect)(function(){i&&M([].concat((0,o.Z)(P),(0,o.Z)(i)))},[i]),(0,g.useEffect)(function(){ts===d.active?td(!!w):ts===d.created?td(!!y):td(!!O)},[ts,w,y,O]),(0,g.useEffect)(function(){(0,l.nv)({event_type:"discounts_view",event_parameters:{discount_state:p(ts)}},m,!0)},[]);var tA=function(t){tc(t),(0,l.nv)({event_type:"discounts_view",event_parameters:{discount_state:p(t)}},m,!0)};return(0,W.jsxs)(Y.T,{breadCrumbs:{name:"ÐеÑнÑÑÑÑÑ Ð² \xabÐои книги\xbb",link:b},children:[(0,W.jsx)(j.H1,{className:tr().header,children:"Скидки"}),tk?(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(R,{iconPath:H.iconPath,buttonName:H.buttonName,info:H.info,onClick:tT}),(0,W.jsxs)("div",{className:tr().tabsWrapper,children:[(0,W.jsx)("div",{className:tr().tabs,children:(0,W.jsxs)(V.m,{children:[(0,W.jsx)(K.O,{label:"ÐкÑивнÑе",counter:N||"0",onClick:function(){return tA(d.active)},isActive:ts===d.active}),(0,W.jsx)(K.O,{label:"ÐапланиÑованнÑе",counter:S||"0",onClick:function(){return tA(d.created)},isActive:ts===d.created}),(0,W.jsx)(K.O,{label:"ÐÑÑ
ив",counter:L||"0",onClick:function(){return tA(d.archived)},isActive:ts===d.archived})]})}),ts===d.active&&(k.length?k.map(function(t){return(0,W.jsx)("div",{className:tr().card,children:(0,W.jsx)(Z,{art:t,status:ts})},t.id)}):(0,W.jsx)(X.o,{illustrationName:U.image,headTitle:"Ðока Ð½ÐµÑ Ð°ÐºÑÑалÑнÑÑ
Ñкидок",illustrationHeight:190,illustrationWidth:190,illustrationFormat:"png",className:tr().noContentStub})),ts===d.created&&(I.length?(0,W.jsxs)("div",{children:[(0,W.jsx)("div",{className:tr().filterWrapper,children:(0,W.jsx)(J.c,{labelText:"Ðнига",noOptionsMessage:function(){return"ÐиÑего не найдено"},options:tj,value:tp,onChange:function(t){t&&tg(t)}})}),tx.length>0?(0,W.jsx)(W.Fragment,{children:tx.map(function(t){return(0,W.jsx)("div",{className:tr().createdCard,children:(0,W.jsx)(Z,{art:t,status:ts})},t.id)})}):(0,W.jsx)(W.Fragment,{children:I.map(function(t){return(0,W.jsx)("div",{className:tr().createdCard,children:(0,W.jsx)(Z,{art:t,status:ts})},t.id)})})]}):(0,W.jsx)(X.o,{illustrationName:U.image,headTitle:"Ðока Ð½ÐµÑ Ð·Ð°Ð¿Ð»Ð°Ð½Ð¸ÑованнÑÑ
Ñкидок",illustrationHeight:190,illustrationWidth:190,illustrationFormat:"png",className:tr().noContentStub})),ts===d.archived&&(P.length?P.map(function(t){return(0,W.jsx)("div",{className:tr().card,children:(0,W.jsx)(Z,{art:t,status:ts})},t.id)}):(0,W.jsx)(X.o,{illustrationName:U.image,headTitle:"Ðока Ð½ÐµÑ Ð°ÑÑ
ивнÑÑ
ÑкидоÐ
1º",illustrationHeight:190,illustrationWidth:190,illustrationFormat:"png",className:tr().noContentStub})),(0,W.jsxs)("div",{className:tr().paginationWrapper,children:[ts===d.active&&e&&e.length>0&&(0,W.jsx)(j.OE,{className:tr().paginationCounts,children:tC}),ts===d.created&&n&&n.length>0&&(0,W.jsx)(j.OE,{className:tr().paginationCounts,children:tw}),ts===d.archived&&i&&i.length>0&&(0,W.jsx)(j.OE,{className:tr().paginationCounts,children:tD}),tl&&!tx.length&&(0,W.jsx)(F.z,{look:"secondary",size:"small",onClick:function(){tS(ts)},className:tr().pagitationButton,dataTestId:"discounts__loadMoreButton",children:"ÐагÑÑзиÑÑ ÐµÑÑ"})]})]})]}):(0,W.jsx)(X.o,{illustrationName:U.image,headTitle:U.title,title:U.info,buttonText:U.buttonText,buttonHandler:tT,illustrationHeight:190,illustrationWidth:190,illustrationFormat:"png",className:tr().noContentStub}),(0,W.jsx)(_.X,{isOpen:ti,onRequestClose:function(){ta(!1)},isMultiDiscounts:!0})]})},to=!0;function ts(){return(0,W.jsx)(ta,{})}},52444:function(t,e,n){"use strict";n.d(e,{I5:function(){return d},JJ:function(){return u},Oy:function(){return _},Tm:function(){return l},UW:function(){return s},ZE:function(){return h},_n:function(){return f},cx:function(){return v},jV:function(){return c},lR:function(){return x},sr:function(){return g},zE:function(){return m}});var i=n(27863),r=n(64384),a=n(67336),o=n(81180),s=function(t){if(!t)return"";var e=(t.getMonth()+1).toString(),n=t.getDate().toString(),i=t.getFullYear();return e.length<2&&(e="0".concat(e)),n.length<2&&(n="0".concat(n)),[i,e,n].join("-")},c=function(t,e){return new Date(t).toJSON().slice(0,10).split("-").reverse().join(null!=e?e:".")},u=function(t){return new Date(t).toLocaleDateString(void 0,{year:"2-digit",day:"2-digit",month:"2-digit"})},l=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return new Date(t).toLocaleDateString(e,{year:"numeric",day:"2-digit",month:"2-digit",timeZone:"Europe/Moscow"})},d=function(t){return new Date(t).toLocaleString(void 0,{timeZone:"UTC",year:"2-digit",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})},_=function(t){var e=new Date(t);return"".concat(e.getDate()," ").concat(["ÑнваÑÑ","ÑевÑалÑ","маÑÑа","апÑелÑ","маÑ","иÑнÑ","иÑлÑ","авгÑÑÑа","ÑенÑÑбÑÑ","окÑÑбÑÑ","ноÑбÑÑ","декабÑÑ"][e.getMonth()]," ").concat(e.getFullYear())},h=function(t){var e;return(0,r.Z)((e=Number(t),(0,i.Z)(e,new Date(e).getTimezoneOffset())))},m=function(t){return new Date(t).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(t){return(0,o.Z)((0,a.Z)(t),"dd.MM.yy")},p=function(t){if(t instanceof Date)return{y:t.getFullYear(),m:t.getMonth(),d:t.getDate()};var e=t.trim(),n=e.match(/^(\d{2})[.\-](\d{2})[.\-](\d{4})$/);if(n)return{d:Number(n[1]),m:Number(n[2])-1,y:Number(n[3])};var i=e.match(/^(\d{4})-(\d{2})-(\d{2})/);if(i)return{y:Number(i[1]),m:Number(i[2])-1,d:Number(i[3])};var r=new Date(e);return{y:r.getFullYear(),m:r.getMonth(),d:r.getDate()}},g=function(t){var e=p(t);return new Date(e.y,e.m,e.d,0,0,0,0)},v=function(t){var e=new Date(t),n=e.getDate(),i=e.toLocaleDateString("ru-RU",{day:"numeric",month:"long"}).replace(/\d+/,"").trim();return"".concat(n," ").concat(i)},x=function(t){var e=new Date(t);return"".concat(e.toTimeString().slice(0,5))}},1542:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/discounts",function(){return n(51601)}])},37371:function(t){t.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(t){t.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"}},74793:function(t){t.exports={wrapper:"DeleteDicountDialog_wrapper__YeUC8"}}
1,65601:function(t){t.exports={wrapper:"DiscountArtCard_wrapper__rWTmt",cardInfo:"DiscountArtCard_cardInfo__TXrPo",cardContext:"DiscountArtCard_cardContext__yOs67",period:"DiscountArtCard_period__90BQd",periodIcon:"DiscountArtCard_periodIcon__z2CkK",artName:"DiscountArtCard_artName__FxFYK",pricesWrapper:"DiscountArtCard_pricesWrapper__86vk2",prices:"DiscountArtCard_prices__V5lVE",oldPrice:"DiscountArtCard_oldPrice__SWaBe",discountLabelWrapper:"DiscountArtCard_discountLabelWrapper___FsZ3",discountLabel:"DiscountArtCard_discountLabel__bafy0",discountPercent:"DiscountArtCard_discountPercent__kMpjJ",salesAmount:"DiscountArtCard_salesAmount__5paY5",deleteIconWrapper:"DiscountArtCard_deleteIconWrapper__ugtAw",deleteIconWrapperMobile:"DiscountArtCard_deleteIconWrapperMobile__MVA0N",deleteText:"DiscountArtCard_deleteText___XUiw"}},39901:function(t){t.exports={wrapper:"DiscountBanner_wrapper__jkTrM",image:"DiscountBanner_image__4vGzT",info:"DiscountBanner_info__SN5Qi",button:"DiscountBanner_button__dShSr"}},25009:function(t){t.exports={header:"Discounts_header__qx0gk",tabsWrapper:"Discounts_tabsWrapper__jKufM",tabs:"Discounts_tabs__OTe_z",card:"Discounts_card__NaFeo",createdCard:"Discounts_createdCard__Vb4tM",filterWrapper:"Discounts_filterWrapper___CFNm",noContentStub:"Discounts_noContentStub__iji0H",paginationWrapper:"Discounts_paginationWrapper__Kv1hx",paginationCounts:"Discounts_paginationCounts__gj3br",pagitationButton:"Discounts_pagitationButton__nD1yO"}},89611:function(t,e,n){"use strict";function i(t,e){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}n.d(e,{Z:function(){return i}})}},function(t){t.O(0,[2951],function(){t.E(2052)},5),t.O(0,[5675,9593,2238,540,9081,2519,8410,3525,9027,1523,3189,2675,7853,5579,5115,878,9419,2888,9774,179],function(){return t(t.s=1542)}),_N_E=t.O()}]); 2//# sourceMappingURL=discounts-3223f85f4f7f5bf7.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.