1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="4ca1e014-d3a3-4d76-85f1-3a567c7b9368",e._sentryDebugIdIdentifier="sentry-dbid-4ca1e014-d3a3-4d76-85f1-3a567c7b9368")}catch(e){}try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="4ca1e014-d3a3-4d76-85f1-3a567c7b9368",e._sentryDebugIdIdentifier="sentry-dbid-4ca1e014-d3a3-4d76-85f1-3a567c7b9368")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3140],{39727:function(e,n,r){"use strict";r.d(n,{_:function(){return p}});var t=r(5214),u=r(94184),c=r.n(u),i=r(14091),o=r(35407),a=r(89637),s=r(6736),f=r(23467),l=r.n(f),d=r(85893),p=function(e){var n=e.title,r=e.emptyText,u=e.data,f=e.className,p=(0,t.Z)((0,s.i)(i.l.LG));return(0,d.jsxs)("div",{className:c()(l().wrapper,f),children:[n&&(0,d.jsx)(a.H2,{children:n}),u.length?(0,d.jsx)("div",{className:l().info,children:u.map(function(e){return(0,d.jsxs)("div",{className:l().report,children:[(0,d.jsx)(a.K0,{children:e.label}),"link"===e.action.type?(0,d.jsx)(o.z,{size:p?"small":"medium",look:"secondary",href:e.action.href,className:l().button,dataTestId:"reportList__downloadLink",children:"СкаÑаÑÑ"}):(0,d.jsx)(o.z,{size:p?"small":"medium",look:"secondary",onClick:e.action.onClick,className:l().button,dataTestId:"reportList__downloadButton",children:"СкаÑаÑÑ"})]},e.key)})}):(0,d.jsx)("div",{className:l().info,children:(0,d.jsx)(a.T,{children:r})})]})}},10041:function(e,n,r){"use strict";r.r(n),r.d(n,{__N_SSP:function(){return y},default:function(){return x}});var t=r(50029),u=r(64687),c=r.n(u),i=r(67294),o=r(10327),a=r(63602),s=r(89637),f=r(89074),l=r(63690),d=r(39727),p=r(73229),h=r(42221),b=r(91685),_=r(5785),m=r(85893),w=function(){var e,n,r=(0,i.useState)([]),u=r[0],w=r[1],y=(0,i.useState)(!1),x=y[0],v=y[1],g="Ðе ÑдалоÑÑ ÑкаÑаÑÑ Ð¾ÑÑеÑ";(0,i.useEffect)(function(){k()},[]);var k=(e=(0,t.Z)(c().mark(function e(){var n,r;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,v(!0),n="getPublisherReports",e.next=5,(0,h.B)({apiPointName:n});case 5:if(!(r=e.sent).errors.length){e.next=10;break}return(0,a.x2)({message:"ÐзвиниÑе, пÑоизоÑла оÑибка на ÑеÑвеÑе",options:{position:"top-center"}}),w([]),e.abrupt("return");case 10:w(r.result);case 11:return e.prev=11,v(!1),e.finish(11);case 14:case"end":return e.stop()}},e,null,[[0,,11,14]])}
1)),function(){return e.apply(this,arguments)}),R=(n=(0,t.Z)(c().mark(function e(n){var r,t,u,i,s,f;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,r="downloadPublisherReport",u=(t=o.W[r]).path,i=t.base,s="".concat((0,p.S)(i)).concat(u,"?report_id=").concat(n),e.next=6,(0,_.h)(s,{method:"GET",credentials:"include"});case 6:if((f=e.sent).ok){e.next=10;break}return(0,a.x2)({message:g,options:{position:"top-center"}}),e.abrupt("return");case 10:(0,b._)("report_".concat(n),"zip",f),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(0),(0,a.x2)({message:g,options:{position:"top-center"}});case 16:case"end":return e.stop()}},e,null,[[0,13]])})),function(e){return n.apply(this,arguments)}),j=u.map(function(e){return{key:String(e.report_id),label:e.period_name,action:{type:"click",onClick:function(){return R(e.report_id)}}}});return(0,m.jsxs)(l.T,{children:[(0,m.jsx)(s.H1,{children:"ÐÑÑеÑÑ Ð·Ð° закÑÑÑÑй пеÑиод"}),x?(0,m.jsx)("div",{style:{marginTop:"25px"},children:(0,m.jsx)(f.x,{})}):(0,m.jsx)(d._,{emptyText:"ÐÑÑеÑÑ Ð½Ðµ найденÑ",data:j})]})},y=!0,x=function(){return(0,m.jsx)(w,{})}},91685:function(e,n,r){"use strict";r.d(n,{_:function(){return o}});var t,u=r(50029),c=r(64687),i=r.n(c),o=(t=(0,u.Z)(i().mark(function e(n,r,t){var u,c,o,a;return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return u=decodeURI(u="".concat(n,".").concat(r)),e.next=4,t.blob();case 4:c=e.sent,o=window.URL.createObjectURL(new Blob([c])),(a=document.createElement("a")).href=o,a.setAttribute("download",u),document.body.appendChild(a),a.click(),window.URL.revokeObjectURL(o),a.remove();case 13:case"end":return e.stop()}},e)})),function(e,n,r){return t.apply(this,arguments)})},81921:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/publisher/reports",function(){return r(10041)}])},23467:function(e){e.exports={info:"ReportList_info__gt5V8",report:"ReportList_report__u0yXZ",button:"ReportList_button__t_9YD"}},19302:function(e,n,r){"use strict";r.d(n,{Z:function(){return u}});var t=r(67294);function u(e,n,r){var u=this,c=(0,t.useRef)(null),i=(0,t.useRef)(0),o=(0,t.useRef)(null),a=(0,t.useRef)([]),s=(0,t.useRef)(),f=(0,t.useRef)(),l=(0,t.useRef)(e),d=(0,t.useRef)(!0);l.current=e;var p=!n&&0!==n&&"undefined"!=typeof window;if("function"!=typeof e)throw TypeError("Expected a function");n=+n||0;var h=!!(r=r||{}).leading,b=!("trailing"in r)||!!r.trailing,_="maxWait"in r,m=_?Math.max(+r.maxWait||0,n):null;return(0,t.useEffect)(function(){return d.current=!0,function(){d.current=!1}},[]),(0,t.useMemo)(function(){var e=function(e){var n=a.current,r=s.current;return a.current=s.current=null,i.current=e,f.current=l.current.apply(r,n)},r=function(e,n){p&&cancelAnimationFrame(o.current),o.current=p?requestAnimationFrame(e):setTimeout(e,n)},t=function(e){if(!d.current)return!1;var r=e-c.current,t=e-i.current;return!c.current||r>=n||r<0||_&&t>=m},w=function(n){return(o.current=null,b&&a.current)?e(n):(a.current=s.current=null,f.current)},y=function(){var e=Date.now();if(t(e))return w(e);if(d.current){var u=e-c.current,o=e-i.current,a=n-u;r(y,_?Math.min(a,m-o):a)}},x=function(){for(var l=[],p=0;p<arguments.length;p++)l[p]=arguments[p];var b=Date.now(),m=t(b);if(a.current=l,s.current=u,c.current=b,m){if(!o.current&&d.current)return i.current=c.current,r(y,n),h?e(c.current):f.current;if(_)return r(y,n),e(c.current)}return o.current||r(y,n),f.current};return x.cancel=function(){o.current&&(p?cancelAnimationFrame(o.current):clearTimeout(o.current)),i.current=0,a.current=c.current=s.current=o.current=null},x.isPending=function(){return!!o.current},x.flush=function(){return o.current?w(Date.now()):f.current},x},[h,_,n,m,b,p])}}},function(e){e.O(0,[3140],function(){e.E(2052)},5),e.O(0,[5675,9593,2238,540,9081,2519,8410,3189,2675,7853,5579,5115,878,2888,9774,179],function(){return e(e.s=81921)}),_N_E=e.O()}]); 2//# sourceMappingURL=reports-58bd9e2b843a9482.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.