1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7878],{5376:function(a,b,c){(window.__NEXT_P=window.__NEXT_P||[]).push(["/forum/[fid]",function(){return c(44833)}])},28322:function(a,b,c){"use strict";c.d(b,{VL:function(){return f},qh:function(){return h},ws:function(){return e},zV:function(){return g}});var d=c(87218),e=function(){return(0,d.x)("/front/forums","get")},f=function(a){return(0,d.x)("/front/forums/".concat(a),"get")},g=function(a,b,c,e){return(0,d.x)("/front/forums/".concat(a,"/messages?page=").concat(b,"&per_page=").concat(c),"get",null!==e?e:void 0)},h=function(a,b,c){return(0,d.x)("/front/forums/".concat(a,"/messages"),"post",c,{message:b})}},9360:function(a,b,c){"use strict";var d=c(85893),e=c(36822),f=c(67564),g=c(15861),h=c(11057),i=c(41664),j=c.n(i),k=function(a){var b=a.icon,c=a.title,i=a.link,k=a.linkLabel;return(0,d.jsxs)(e.Z,{sx:{textAlign:"center"},children:[b&&(0,d.jsx)(f.Z,{component:b,sx:{fontSize:"200px",color:"#ccc"}}),(0,d.jsx)(g.Z,{component:"p",variant:"h4",sx:{my:5},children:c}),i&&k&&(0,d.jsx)(j(),{href:i,children:(0,d.jsx)(h.Z,{href:i,variant:"contained",children:k})})]})};b.Z=k},44833:function(a,b,c){"use strict";c.r(b),c.d(b,{default:function(){return H}});var d=c(26042),e=c(85893),f=c(11163),g=c(73400),h=c(67294),i=c(28322),j=c(9008),k=c.n(j),l=c(26447),m=c(36822),n=c(15861),o=c(78462),p=c(97212),q=c(23795),r=c(17932),s=c(69661),t=c(34386),u=c(67720),v=c(10633),w=c(61903),x=c(11057),y=c(41664),z=c.n(y),A=c(27484),B=c.n(A),C=c(82066),D=(0,C.Z)((0,e.jsx)("path",{d:"m10.92 12.75 1.08-.82 1.07.81c.39.29.92-.08.78-.55l-.42-1.36 1.2-.95c.37-.28.16-.88-.32-.88h-1.4l-.43-1.34c-.15-.46-.8-.46-.95 0L11.09 9H9.68c-.47 0-.68.6-.31.89l1.19.95-.42 1.36c-.14.47.39.84.78.55zM6 21.61c0 .68.67 1.16 1.32.95L12 21l4.68 1.56c.65.22 1.32-.26 1.32-.95v-6.33c1.24-1.41 2-3.25 2-5.28 0-4.42-3.58-8-8-8s-8 3.58-8 8c0 2.03.76 3.87 2 5.28v6.33zM12 4c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6 2.69-6 6-6z"}),"WorkspacePremiumRounded"),E=c(9360),F=c(9473),G=c(40190),H=function(){var a=(0,f.useRouter)().query.fid,b=(0,h.useState)([]),c=b[0],j=b[1],y=(0,h.useState)(void 0),A=y[0],C=y[1],H=(0,h.useState)([]),I=H[0],J=H[1],K=(0,h.useState)(""),L=K[0],M=K[1],N=(0,h.useState)(1),O=N[0],P=N[1],Q=(0,h.useState)(1),R=Q[0],S=Q[1],T=(0,F.v9)(G.$s),U=(0,F.v9)(G.bk),V=(0,g.Ds)().enqueueSnackbar,W=function(a){a.preventDefault(),A&&null!==T&&(0,i.qh)(A.id,L,T).then(function(a){a&&(M(""),V("СообÑение добавлено.",{variant:"success"}),R!==O?S(O):X())})},X=function(){if(a){var b=parseInt("".concat(a));window.scrollTo(0,0),(0,i.zV)(b,R,10,T).then(function(a){a&&(J(a.data),P(a.meta.total_pages))})}};return(0,h.useEffect)(function(){if(M(""),(0,i.ws)().then(function(a){a&&j(a.data)}),a){var b=parseInt("".concat(a));(0,i.VL)(b).then(function(a){a&&C(a)}),1===R?X():S(1)}},[a]),(0,h.useEffect)(function(){X()},[R]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(k(),{children:(0,e.jsx)("title",{children:null==A?void 0:A.name})}),(0,e.jsxs)(l.Z,{direction:{xs:"column",md:"row"},children:[(0,e.jsxs)(m.Z,{sx:{background:"#333",color:"#fff",position:"relative",width:{xs:"100%",md:"350px"},order:{xs:2,md:1},py:4,px:4},children:[(0,e.jsx)(n.Z,{component:"div",variant:"h5",children:"ФоÑÑмÑ"}),(0,e.jsx)(o.Z,{children:c.map(function(a,b){return(0,e.jsx)(p.ZP,{sx:{px:0},children:(0,e.jsx)(z(),{href:"/forum/".concat(a.id),children:(0,e.jsx)(q.Z,{underline:"hover",href:"/forum/".concat(a.id),sx:{display:"flex",flexDirection:"row",color:a.id===(null==A?void 0:A.id)?"#fff":"#999"},children:a.name})})},b)})})]}),(0,e.jsx)(m.Z,{sx:{minHeight:"50vh",width:{xs:"100%",md:"calc(100% - 350px)"},order:{xs:1,md:2}},children:(0,e.jsxs)(r.Z,{sx:{py:4,ml:0},className:"text-content",children:[(0,e.jsx)(n.Z,{fontWeight:"bold",variant:"h1",gutterBottom:!0,children:null==A?void 0:A.name}),I.length>0?I.map(function(a){var b;return(0,e.jsxs)(h.Fragment,{children:[(0,e.jsxs)(m.Z,{sx:{my:2},children:[(0,e.jsxs)(l.Z,{direction:"row",sx:{mb:2},spacing:1,alignItems:"center",children:[a.avatar?(0,e.jsx)(s.Z,{alt:a.user,src:a.avatar}):(0,e.jsx)(s.Z,(0,d.Z)({},{sx:{bgcolor:function(a){var b,c=0;for(b=0;b<a.length;
1b+=1)c=a.charCodeAt(b)+((c<<5)-c);var d="#";for(b=0;b<3;b+=1){var e=c>>8*b&255;d+="00".concat(e.toString(16)).slice(-2)}return d}(b=a.user)},children:"".concat(b[0])})),(0,e.jsxs)(m.Z,{children:[(0,e.jsxs)(n.Z,{fontWeight:"bold",sx:{lineHeight:1.25},children:[a.user,"admin"===a.role&&(0,e.jsx)(t.Z,{title:"Ðоманда Cicap",children:(0,e.jsx)(D,{sx:{fontSize:"20px",ml:.25,transform:"translateY(3px)"},color:"primary"})}),(0,e.jsx)(n.Z,{component:"span",color:"primary",sx:{ml:1},children:a.email})]}),(0,e.jsx)(n.Z,{sx:{opacity:.5,lineHeight:1},fontSize:"small",children:B()(a.created_at).format("DD MMM YYYY в HH:mm")})]})]}),a.message.split("\n").map(function(a,b){return(0,e.jsx)(n.Z,{gutterBottom:!0,children:a},b)})]}),(0,e.jsx)(u.Z,{})]},a.id)}):(0,e.jsx)(e.Fragment,{}),O>1&&(0,e.jsx)(v.Z,{count:O,defaultPage:R,onChange:function(a,b){S(b)},sx:{my:2}}),U?(0,e.jsxs)(m.Z,{component:"form",onSubmit:W,sx:{mt:4},children:[(0,e.jsx)(w.Z,{label:"ÐаÑе ÑообÑение",multiline:!0,rows:4,fullWidth:!0,required:!0,variant:"standard",margin:"normal",value:L,onChange:function(a){M(a.target.value)}}),(0,e.jsx)(x.Z,{type:"submit",variant:"contained",children:"ÐÑпÑавиÑÑ"})]}):(0,e.jsx)(E.Z,{link:"/login",linkLabel:"ÐойÑи",title:"ÐеобÑ
одимо авÑоÑизоваÑÑÑÑ Ð´Ð»Ñ Ð´Ð¾Ð±Ð°Ð²Ð»ÐµÐ½Ð¸Ñ ÑообÑений"})]})})]})]})}}},function(a){a.O(0,[2318,1903,6460,4386,633,9774,2888,179],function(){var b;return a(a.s=5376)}),_N_E=a.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.