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]="42006a90-87e1-4abd-9d2d-889e1b38f9a4",e._sentryDebugIdIdentifier="sentry-dbid-42006a90-87e1-4abd-9d2d-889e1b38f9a4")}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]="42006a90-87e1-4abd-9d2d-889e1b38f9a4",e._sentryDebugIdIdentifier="sentry-dbid-42006a90-87e1-4abd-9d2d-889e1b38f9a4")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9946],{35556:function(e,t,r){"use strict";r.d(t,{_:function(){return l}});var n=r(59499),a=r(94184),i=r.n(a),o=r(8339),s=r.n(o),c=r(85893),l=function(e){var t=e.labelType,r=e.labelText,a=e.className,o=i()(s().label,(0,n.Z)({},s()[t],s()[t]),a);return(0,c.jsxs)("div",{className:o,children:[" ",r," "]})}},69334:function(e,t,r){"use strict";r.d(t,{u:function(){return f}});var n,a=r(59499),i=r(68067),o=r(50184),s={small:95,middle:210,full:248},c=((n={}).small="small",n.middle="middle",n.full="full",n),l=r(17490),d=r.n(l),u=r(85893);function _(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_(Object(r),!0).forEach(function(t){(0,a.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var f=function(e){var t=e.content,r=e.title,n=e.direction,a=e.children,l=e.background,_=void 0===l?"dark":l,f=e.size,m=void 0===f?c.full:f,b=e.textLink,x=e.dataTestId,v=e.borderRadius,h=e.moveTooltipLeft,j=e.moveTooltipRight,w=e.moveArrowLeft,N=e.moveArrowRight,y=e.zIndex,g=(0,u.jsxs)("span",{children:[r&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{className:d().title,children:r}),(0,u.jsx)("br",{})]}),b?(0,u.jsx)(o.a,{className:d().link,href:b,target:"_blank",dataTestId:"tooltip__link",children:t}):t]});return(0,u.jsx)(i.Z,{title:g,placement:void 0===n?"top":n,arrow:!0,enterTouchDelay:0,leaveTouchDelay:5e4,PopperProps:{modifiers:[{name:"flip",enabled:!0,options:{boundary:"viewport",fallbackPlacements:["bottom","top"]}},{name:"preventOverflow",enabled:!0,options:{boundary:"viewport",rootBoundary:"viewport",padding:12,tether:!0}}],style:{zIndex:y}},slotProps:{tooltip:{"data-testid":void 0===x?"tooltip":x,sx:p(p(p({bgcolor:"dark"===_?"var(--palettes-gray-190)":"var(--text-secondary)",color:"dark"===_?"var(--text-secondary)":"var(--palettes-gray-190)",minWidth:"41px",maxWidth:{xs:"calc(100vw - 24px)",sm:s[m]},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!==h&&{ml:"".concat(h,"px")}),void 0!==j&&{mr:"".concat(j,"px")})},arrow:{sx:p(p({color:"dark"===_?"var(--palettes-gray-190)":"var(--text-secondary)"},void 0!==w&&{ml:"".concat(w,"px")}),void 0!==N&&{mr:"".concat(N,"px")})}},children:(0,u.jsx)("span",{children:a})})}},68715:function(e,t,r){"use strict";r.d(t,{q:function(){return u}});var n=r(59499),a=r(94184),i=r.n(a),o=r(89637),s=r(91972),c=r(49924),l=r.n(c),d=r(85893),u=function(e){var t,r=e.type,a=e.text,c=e.dataTestId,u=e.className,_=e.textClassName;return(0,d.jsx)("div",{className:i()(l().wrapper,u,(t={},(0,n.Z)(t,l().active,r===s.K.active),(0,n.Z)(t,l().inActive,r===s.K.inActive),(0,n.Z)(t,l().accent,r===s.K.accent),(0,n.Z)(t,l().intense,r===s.K.intense),(0,n.Z)(t,l().success,r===s.K.success),t)),"data-testid":c,children:(0,d.jsx)(o.OE,{className:i()(l().text,_),children:a})})}},91972:function(e,t,r){"use strict";r.d(t,{K:function(){return a}});var n,a=((n={}).active="active",n.inActive="inActive",n.accent="accent",n.intense="intense",n.success="success",n)},26095:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSP:function(){return b}});var n=r(11163),a=r(67294),i=r(4486),o=r(35556),s=r(69334),c=r(89637),l=r(63690),d=r(68715),u=r(91972),_=r(24534),p=r.n(_),f=r(85893),m={new:{text:"ÐÐ¶Ð¸Ð´Ð°ÐµÑ Ð¾Ð¿Ð»Ð°ÑÑ",color:u.K.accent},in_progress:{text:"ÐÑполнÑеÑÑÑ",color:u.K.active},done:{text:"ÐÑполнен",color:u.K.success},cancelled:{text:"ÐÑменÑн",color:u.K.inActive}},b=!0;t.default=function(){var e,t,r,u,_,b=(0,n.useRouter)().query.orderId,x=(0,a.useState)(null),v=x[0],h=x[1],j=(0,a.useState)(!0),w=j[0],N=j[1];if((0,a.useEffect)(function(){b&&(N(!0),fetch("/api/publishers/services/promo/auto/orders/".concat(b)).then(function(e){return e.json()}).then(function(e){return h(e.result)}).finally(function(){return N(!1)}))},[b]),w||!v)return(0,f.jsx)(l.T,{breadCrumbs:{name:"ÐеÑнÑÑÑÑÑ Ð² \xabÐаказ
1Ñ\xbb",link:"/publisher/promo-orders"},children:(0,f.jsx)(c.H1,{children:"ÐагÑÑзка..."})});var y=m[v.status],g=new Date(v.created_at).toLocaleDateString("ru-RU",{day:"2-digit",month:"long",year:"numeric"}).replace(" г.",""),D=v.adv_info?new Date(v.adv_info.start_datetime).toLocaleDateString("ru-RU"):"",T=v.adv_info?new Date(v.adv_info.end_datetime).toLocaleDateString("ru-RU"):"";return(0,f.jsxs)(l.T,{breadCrumbs:{name:"ÐеÑнÑÑÑÑÑ Ð² \xabÐаказÑ\xbb",link:"/publisher/promo-orders"},children:[(0,f.jsx)("div",{className:p().headerRow,children:(0,f.jsx)(c.H1,{children:"ÐÑодвижение"})}),(0,f.jsxs)("div",{className:p().pageContent,children:[(0,f.jsxs)("div",{className:p().orderDetailsContainer,children:[(0,f.jsxs)("div",{className:p().statusRow,children:[(0,f.jsx)(d.q,{type:y.color,text:y.text}),(0,f.jsxs)("div",{className:p().dateBlock,children:[(0,f.jsx)(c.Yd,{className:p().date,children:g}),(0,f.jsxs)(c.Yd,{className:p().orderNumber,children:["â ",v.number]})]})]}),(0,f.jsxs)("div",{className:p().section,children:[(0,f.jsx)(c.H3,{className:p().sectionTitle,children:"Ðнига"}),(0,f.jsxs)("div",{className:p().bookCard,children:[(0,f.jsx)("img",{className:p().cover,src:v.art_info.cover_url,alt:v.art_info.title}),(0,f.jsxs)("div",{className:p().bookInfo,children:[(0,f.jsx)(c.u5,{className:p().bookTitle,children:v.art_info.title}),(0,f.jsx)(c.u5,{className:p().author,children:v.art_info.authors.map(function(e){return e.full_name}).join(", ")}),(0,f.jsxs)("div",{className:p().type,children:["audiobook"===v.art_info.type&&(0,f.jsx)(o._,{labelType:"audio",labelText:"ÐÑдио"}),"ebook"===v.art_info.type&&(0,f.jsx)(o._,{labelType:"text",labelText:"ТекÑÑ"}),"draft"===v.art_info.type&&(0,f.jsx)(o._,{labelType:"draft",labelText:"Ðнига в пÑоÑеÑÑе"})]})]})]})]}),(0,f.jsxs)("div",{className:p().section,children:[(0,f.jsx)(c.H3,{className:p().sectionTitle,children:"ТаÑиÑ"}),(0,f.jsx)("div",{className:p().inputStub,children:(null===(e=v.service_info)||void 0===e?void 0:e.title)||"
1-"})]}),(0,f.jsxs)("div",{className:p().section,children:[(0,f.jsx)(c.H3,{className:p().sectionTitle,children:"ÐаÑÑ Ð¿ÑодвижениÑ"}),(0,f.jsxs)("div",{className:p().inputStub,children:[D," â ",T]})]}),(0,f.jsxs)("div",{className:p().section,children:[(0,f.jsx)(c.H3,{className:p().sectionTitle,children:"СÑаÑиÑÑика пÑодвижениÑ"}),(0,f.jsx)("div",{className:p().statsHint,children:"ÐаннÑе обновлÑÑÑÑÑ ÐºÐ°Ð¶Ð´Ñе 60 минÑÑ. ÐÐ¾Ð·Ð¼Ð¾Ð¶Ð½Ñ ÑаÑÑ
Ð¾Ð¶Ð´ÐµÐ½Ð¸Ñ Ñ Ð¾Ð±Ñей ÑÑаÑиÑÑикой из-за ÑазлиÑий в моделÑÑ
аÑÑибÑÑии."}),(0,f.jsxs)("div",{className:p().statsRow,children:[(0,f.jsxs)("div",{className:p().statCard,children:[(0,f.jsx)("div",{className:p().statLabel,children:"ÐÑ
ваÑÑ"}),(0,f.jsx)("div",{className:p().statValue,children:null!==(t=null===(r=v.statistics_info)||void 0===r?void 0:r.views)&&void 0!==t?t:"0"}),(0,f.jsx)("div",{className:p().statCardTooltipWrapper,children:(0,f.jsx)(s.u,{content:"ÐолиÑеÑÑво пÑоÑмоÑÑов книги на меÑÑаÑ
ÑазмеÑениÑ",direction:"top",children:(0,f.jsx)(i.J,{icon:"infoOutline16x16",className:p().statCardTooltipIcon})})})]}),(0,f.jsxs)("div",{className:p().statCard,children:[(0,f.jsx)("div",{className:p().statLabel,children:"ÐеÑеÑ
одÑ"}),(0,f.jsx)("div",{className:p().statValue,children:null!==(u=null===(_=v.statistics_info)||void 0===_?void 0:_.clicks)&&void 0!==u?u:"0"}),(0,f.jsx)("div",{className:p().statCardTooltipWrapper,children:(0,f.jsx)(s.u,{content:"ÐолиÑеÑÑво пеÑеÑ
одов на книгÑ",direction:"top",children:(0,f.jsx)(i.J,{icon:"infoOutline16x16",className:p().statCardTooltipIcon})})})]})]})]})]}),(0,f.jsx)("div",{className:p().orderSumContainer,children:(0,f.jsxs)("div",{className:p().priceBlock,children:[(0,f.jsx)(c.H3,{className:p().priceLabel,children:"РаÑÑÐµÑ ÑÑоимоÑÑи"}),(0,f.jsxs)("div",{className:p().priceRow,children:[(0,f.jsx)("span",{className:p().priceText,children:"ÐÑого:"}),(0,f.jsxs)("span",{className:p().priceValue,children:[Number(v.total_price).toLocaleString("ru-RU")," â½"]})]})]})})]})]})}},5023:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/publisher/promo-orders/[orderId]",function(){return r(26095)}])},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"}},17490:function(e){e.exports={link:"Tooltip_link__rAkgS",title:"Tooltip_title__Z0ec_"}},49924:function(e){e.exports={wrapper:"Status_wrapper__rBRYg",text:"Status_text__ajm8u",active:"Status_active__IV_IN",inActive:"Status_inActive__mIOx2",accent:"Status_accent__xTwsr",intense:"Status_intense__B87Dr",success:"Status_success__KGNtB"}},24534:function(e){e.exports={pageContent:"PromoOrderDetails_pageContent__D46Wp",orderDetailsContainer:"PromoOrderDetails_orderDetailsContainer__HnLNG",orderSumContainer:"PromoOrderDetails_orderSumContainer___CRPm",headerRow:"PromoOrderDetails_headerRow__l0Eqy",priceBlock:"PromoOrderDetails_priceBlock__kJiPS",priceLabel:"PromoOrderDetails_priceLabel__1bNLA",priceRow:"PromoOrderDetails_priceRow__ImwDZ",priceText:"PromoOrderDetails_priceText__dNx_6",priceValue:"PromoOrderDetails_priceValue__TY7pA",statusRow:"PromoOrderDetails_statusRow__AuqbW",dateBlock:"PromoOrderDetails_dateBlock__Dr5WE",date:"PromoOrderDetails_date__WGah_",orderNumber:"PromoOrderDetails_orderNumber__im3Nz",section:"PromoOrderDetails_section__d_D7G",sectionTitle:"PromoOrderDetails_sectionTitle__r6_LQ",bookCard:"PromoOrderDetails_bookCard__TkTP_",cover:"PromoOrderDetails_cover__K1R1d",bookInfo:"PromoOrderDetails_bookInfo__xdWTT",bookTitle:"PromoOrderDetails_bookTitle__Lz888",author:"PromoOrderDetails_author__H5R5I",inputStub:"PromoOrderDetails_inputStub__eL0s0",statsHint:"PromoOrderDetails_statsHint__IhpNB",statsRow:"PromoOrderDetails_statsRow__4fvzB",statCard:"PromoOrderDetails_statCard__gMmgJ",statLabel:"PromoOrderDetails_statLabel__qcsZb",statValue:"PromoOrderDetails_statValue__IbDBy",statCardTooltipWra
1pper:"PromoOrderDetails_statCardTooltipWrapper__IssYl",statCardTooltipIcon:"PromoOrderDetails_statCardTooltipIcon__rw9cL"}},19302:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(67294);function a(e,t,r){var a=this,i=(0,n.useRef)(null),o=(0,n.useRef)(0),s=(0,n.useRef)(null),c=(0,n.useRef)([]),l=(0,n.useRef)(),d=(0,n.useRef)(),u=(0,n.useRef)(e),_=(0,n.useRef)(!0);u.current=e;var p=!t&&0!==t&&"undefined"!=typeof window;if("function"!=typeof e)throw TypeError("Expected a function");t=+t||0;var f=!!(r=r||{}).leading,m=!("trailing"in r)||!!r.trailing,b="maxWait"in r,x=b?Math.max(+r.maxWait||0,t):null;return(0,n.useEffect)(function(){return _.current=!0,function(){_.current=!1}},[]),(0,n.useMemo)(function(){var e=function(e){var t=c.current,r=l.current;return c.current=l.current=null,o.current=e,d.current=u.current.apply(r,t)},r=function(e,t){p&&cancelAnimationFrame(s.current),s.current=p?requestAnimationFrame(e):setTimeout(e,t)},n=function(e){if(!_.current)return!1;var r=e-i.current,n=e-o.current;return!i.current||r>=t||r<0||b&&n>=x},v=function(t){return(s.current=null,m&&c.current)?e(t):(c.current=l.current=null,d.current)},h=function(){var e=Date.now();if(n(e))return v(e);if(_.current){var a=e-i.current,s=e-o.current,c=t-a;r(h,b?Math.min(c,x-s):c)}},j=function(){for(var u=[],p=0;p<arguments.length;p++)u[p]=arguments[p];var m=Date.now(),x=n(m);if(c.current=u,l.current=a,i.current=m,x){if(!s.current&&_.current)return o.current=i.current,r(h,t),f?e(i.current):d.current;if(b)return r(h,t),e(i.current)}return s.current||r(h,t),d.current};return j.cancel=function(){s.current&&(p?cancelAnimationFrame(s.current):clearTimeout(s.current)),o.current=0,c.current=i.current=l.current=s.current=null},j.isPending=function(){return!!s.current},j.flush=function(){return s.current?v(Date.now()):d.current},j},[f,b,t,x,m,p])}}},function(e){e.O(0,[9946],function(){e.E(2052)},5),e.O(0,[5675,9593,2238,540,9081,2519,8410,1362,8067,3189,2675,7853,5579,5115,878,2888,9774,179],function(){return e(e.s=5023)}),_N_E=e.O()}]); 2//# sourceMappingURL=[orderId]-87f76edb1f6ad051.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.