1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[602],{47675:function(e,n,t){"use strict";t.d(n,{Z:function(){return x}});var r=t(9473),s=t(4225),i=t(28544),c=t(21242),l=t(15349),a=t(85893);function u(){var e=(0,r.v9)(function(e){var n;return null==e||null===(n=e.userLogin)||void 0===n?void 0:n.value});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"block py-[15px]",children:(0,a.jsxs)("div",{className:"flex justufy-between items-center gap-2.5 mb-2.5 px-[15px]",children:[(0,a.jsx)("div",{className:"w-[70px] min-w-[70px] min-h-[70px] h-[70px] text-3xl",children:(0,a.jsx)(s.Z,{isAdmin:!0})}),(0,a.jsxs)("div",{className:"flex flex-col px-[15px]",children:[(0,a.jsx)(i.Z,{isAdmin:!0,name:e.user_name}),(0,a.jsx)(c.Z,{isAdmin:!0})]})]})}),(0,a.jsx)("div",{className:"mb-5 pb-[15px]",children:(0,a.jsx)(l.Z,{})})]})}var d=t(13696),o=t(42345);function x(){var e=(0,o.Z)().MOBILE;return(0,a.jsx)(a.Fragment,{children:e?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(d.Z,{children:(0,a.jsx)(u,{})})}):(0,a.jsx)("div",{className:"sticky left-0 top-[107px] pb-[18px]",children:(0,a.jsx)("div",{className:"bg-bluedeep max-w-[200px] min-w-[200px] w-[200px] lg:max-w-[230px] lg:min-w-[230px] lg:w-[230px]",children:(0,a.jsx)(u,{})})})})}},46784:function(e,n,t){"use strict";t.d(n,{Z:function(){return l}});var r=t(59499),s=t(67294),i=t(16767),c=t(85893);function l(e){var n=e.data,t=e.isLoading,l=e.setSort,a=(0,s.useState)("DESC"),u=a[0],d=a[1],o=(0,s.useState)(null),x=o[0],h=o[1],f=(0,s.useState)(null),j=f[0],p=f[1];(0,s.useEffect)(function(){h(function(e){if(!Array.isArray(e)||0===e.length)return[];for(var n=Object.keys(e[0]),t=1;t<e.length;t++)Object.keys(e[t]).forEach(function(e){n.includes(e)||n.push(e)});return n}(n))},[n]),(0,s.useEffect)(function(){x&&0!==x.length&&p(n.map(function(e,n){return(0,c.jsx)("tr",{children:x.map(function(n,t){return(0,c.jsx)("td",{children:e[n]||""},t)})},n)}))},[x]);var m=function(e){if(l){var n,t=null===(n=document.querySelector("[data-col='".concat(e,"']")))||void 0===n?void 0:n.id;console.log({colSortName:t}),"DESC"===u?d("ASC"):d("DESC"),t&&l((0,r.Z)({},t,u))}};return(0,c.jsx)(c.Fragment,{children:t?(0,c.jsx)("table",{children:(0,c.jsxs)("table",{className:"table",children:[(0,c.jsx)("thead",{children:(0,c.jsx)("tr",{children:[1,2,3,4,5,6].map(function(e,n){return(0,c.jsx)("th",{children:(0,c.jsx)("div",{className:"w-[112px] h-[12px]",children:(0,c.jsx)(i.Z,{})})},n)})})}),(0,c.jsx)("tbody",{children:[1,2,3,4,5,6].map(function(e,n){return(0,c.jsx)("tr",{children:[1,2,3,4,5,6].map(function(e,n){return(0,c.jsx)("td",{children:(0,c.jsx)("div",{className:"w-[112px] h-[14px]",children:(0,c.jsx)(i.Z,{})})},n)})},n)})})]})}):n&&n.length>0?(0,c.jsxs)("table",{className:"table",children:[(0,c.jsx)("thead",{children:(0,c.jsx)("tr",{children:x&&x.map(function(e,n){return(0,c.jsx)("th",{children:(0,c.jsxs)("button",{className:"inline-flex",onClick:function(){return m(e)},children:[e,l&&(0,c.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",className:"-mr-1 ml-2 h-4 w-4 ".concat("ASC"===u&&"rotate-180"),children:(0,c.jsx)("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})})]})},n)})})}),(0,c.jsx)("tbody",{children:j})]}):(0,c.jsx)("span",{className:"text-blue text-center block mx-auto",children:"РезÑлÑÑаÑÑ Ð½Ðµ найденÑ"})})}},67692:function(e,n,t){"use strict";t.d(n,{Z:function(){return s}}),t(67294);var r=t(85893);function s(e){var n=e.children,t=e.additionalClass;return(0,r.jsx)("h1",{className:"text-primary text-2xl lg:text-[32px] font-bold leading-tight ".concat(t||""),children:n})}},58465:function(e,n,t){"use strict";t.d(n,{Z:function(){return i}}),t(67294);var r=t(16767),s=t(85893);function i(e){for(var n=e.cols,t=e.amount,r=[],i=0;i<t;i++)r.push((0,s.jsx)(c,{colsNum:n},i+n));return(0,s.jsx)(s.Fragment,{children:r})}function c(e){for(var n=e.colsNum,t=[],i=0;i<n;i++)t.push((0,s.jsx)("td",{className:"h-[26px]",children:(0,s.jsx)(r.Z,{},i+n)}));return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("tr",{children:t})})}},3582:function(e,n,t){"use strict";t.d(n,{F:function(){return s}});var r=t(83454);function s(e){if(e)return new Date(e).toLocaleDateString(r.env.Timezone)}},18160:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return F},default:function(){return L}}),t(9473);var r=t(67294),s=t(11163),i=t(13696),c=t(42872),l=t(47675),a=t(50029),u=t(64687),d=t.n(u),o=t(7027),x=t(67692),h=t(41664),f=t.n(h);t(58465);var j=t(30779),p=t(20396),m=t(51514),v=t(95749),w=t(10035),g=t(98884),N=t(48935),Z=t(22871),b=t(46784),C=t(3582),S=t(85893);function _(e){e.user;var n,t=(0,r.useState)(null),s=t[0],i=t[1],l=(0,r.useState)(!1),u=l[0],h=l[1],_=(0,r.useState)(""),y=_[0],k=_[1],E=(0,r.useState)(""),F=E[0],L=E[1],q=(0,r.useState)(""),A=q[0],D=q[1],P=(0,r.useState)(!1),V=P[0],O=P[1],B=(0,r.useState)(!1),I=B[0],M=B[1],R=(0,r.useState)(!0),T=R[0],z=R[1],X=(0,r.useState)(null);X[0],X[1],(0,r.useEffect)(function(){var e;(e=(0,a.Z)(d().mark(function e(){var n,t;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return z(!0),e.next=3,o.Z.get.news({window_host:window.location.origin,sort:{id:"asc"},limit:"all"});case 3:n=e.sent,t=[],n||(n=[]),n.map(function(e){var n={ID:(0,S.jsx)(f(),{href:"/user/admin/news/".concat(e.id).concat(1==e.variant?"?banner=1":""),children:e.id}),Ðазвание:(0,S.jsx)(f(),{href:"/user/admin/news/".concat(e.id).concat(1==e.variant?"?banner=1":""),children:e.name}),"ÐаÑа ÑозданиÑ":(0,S.jsxs)(S.Fragment,{children:[e.date_created&&(0,C.F)(e.date_created)," ","г"]}),"ÐаÑа ÑедакÑиÑованиÑ":(0,S.jsx)(S.Fragment,{children:e.date_edited&&(0,C.F)(e.date_edited)+" г"}),ÐпиÑание:(0,S.jsx)("span",{children:null==e?void 0:e.text}),РазоÑлаÑÑ:(0,S.jsx)(S.Fragment,{children:(0,S.jsx)(j.Z,{type:"white",onClick:function(){D(e.id),L(null==e?void 0:e.preview_text),h(!0)},children:(0,S.jsx)("div",{className:"flex justify-center p-1",children:(0,S.jsx)("svg",{width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,S.jsx)("path",{d:"M16.6479 7.94819L0.862529 0.662651C0.611178 0.548511 0.311256 0.616509 0.136404 0.832647C-0.0396635 1.04878 -0.0457348 1.35599 0.121832 1.5782L5.31278 8.49946L0.121832 15.4207C-0.0457348 15.6429 -0.0396635 15.9513 0.135189 16.1663C0.252972 16.3132 0.429039 16.3921 0.607535 16.3921C0.693747 16.3921 0.779959 16.3739 0.861314 16.3363L16.6466 9.05073C16.8628 8.95116 17 8.73624 17 8.49946C17 8.26268 16.8628 8.04776 16.6479 7.94819Z",fill:"#2563EB"})})})})})};t.push(n)}),i(t),z(!1);case 9:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)})()},[]);var G=(n=(0,a.Z)(d().mark(function e(n,t,r){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return z(!0),e.next=3,o.Z.add.newsNotification(n,r||t,window.location.origin);case 3:e.sent.Notification.itemId?O(!0):M(!0),z(!1);case 6:case"end":return e.stop()}},e)})),function(e,t,r){return n.apply(this,arguments)});return(0,S.jsxs)(c.Z,{children:[(0,S.jsx)("div",{className:"pt-3 pb-2.5 lg:border-b-[1px] lg:border-greyborder relative",children:(0,S.jsx)(x.Z,{children:"ÐовоÑÑи"})}),(0,S.jsx)("div",{className:"table-container",children:(0,S.jsx)(b.Z,{data:s,isLoading:T})}),(0,S.jsx)(p.Vq,{open:u,onClose:function(){return h(!1)},children:(0,S.jsx)(m.Z,{children:(0,S.jsx)(p.Vq.Panel,{className:"bg-white p-5 max-w-[400px] rounded-[10px] mx-[16px]",children:(0,S.jsxs)(w.Z,{isShow:u,children:[(0,S.jsx)(N.Z,{className:"text-center",children:"ÐаÑе ÑообÑение"}),(0,S.jsx)("div",{className:"mb-5",children:(0,S.jsx)("p",{className:"text-lg text-center",children:"ÐÑÑавÑÑе пÑÑÑÑм, еÑли желаеÑе оÑпÑавиÑÑ Ð¿ÑевÑÑ Ð½Ð¾Ð²Ð¾ÑÑи"})}),(0,S.jsx)(g.Z,{style:"py-2.5",value:y,onChange:function(e){return k(e.target.value)},placeholder:"ÐаÑе ÑообÑение"}),(0,S.jsx)(Z.Z,{onClick:function(){return h(!1)}}),(0,S.jsx)("div",{className:"flex justify-center mt-5",children:(0,S.jsx)(j.Z,{onClick:function(){h(!1),G(A,F,y)},className:"w-auto px-5 py-2.5",children:"ÐÑпÑавиÑÑ"})})]})})})}),(0,S.jsx)(p.Vq,{open:V,onClose:function(){return O(!1)},children:(0,S.jsx)(m.Z,{children:(0,S.jsx)(p.Vq.Panel,{className:"bg-white p-5 max-w-[400px] rounded-[10px] mx-[16px]",children:(0,S.jsx)(v.Z,{title:"УÑпеÑно",subtitle:"Уведомление бÑло оÑпÑавлено",isShow:V,onClose:function(){return O(!1)}})})})}),(0,S.jsx)(p.Vq,{open:I,onClose:function(){return M(!1)},children:(0,S.jsx)(m.Z,{children:(0,S.jsx)(p.Vq.Panel,{className:"bg-white p-5 max-w-[400px] rounded-[10px] mx-[16px]",children:(0,S.jsx)(v.Z,{title:"ÐÑибка",subtitle:"ÐÑоизоÑла оÑибка, попÑобÑйÑе позже",isShow:V,onClose:function(){return M(!1)}})})})})]})}function y(e){var n=e.user;return(0,S.jsx)(c.Z,{children:(0,S.jsx)(i.Z,{children:(0,S.jsxs)("div",{className:"flex items-start gap-4",children:[(0,S.jsx)(l.Z,{user:n}),(0,S.jsx)("div",{className:"flex flex-col w-full admin-content",children:(0,S.jsx)(_,{user:n})})]})})})}var k=t(15444);t(636);var E=t(9369),F=!0;function L(e){var n,t,c=e.data,l=(0,s.useRouter)(),a=(0,E.Z)(c.user,"/user/profile/auth");return(0,r.useEffect)(function(){var e,n;a&&(null===(e=a.user_group)||void 0===e?void 0:e.id)!==1&&(null===(n=a.user_group)||void 0===n?void 0:n.id)!==5&&l.push("/user/profile/auth")},[l,a]),(0,S.jsx)(S.Fragment,{children:c.user||a&&((null===(n=a.user_group)||void 0===n?void 0:n.id)===1||(null===(t=a.user_group)||void 0===t?void 0:t.id)===5)?(0,S.jsx)("div",{className:"min-h-[610px]",children:(0,S.jsx)(y,{user:a||c.user})}):(0,S.jsx)(i.Z,{children:(0,S.jsx)("div",{className:"flex flex-row items-center justify-center",children:(0,S.jsx)(k.Z,{})})})})}},61778:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/user/admin/news",function(){return t(18160)}])}},function(e){e.O(0,[8409,2888,9774,179],function(){return e(e.s=61778)}),_N_E=e.O()}]);
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.