PageSourceSearch

https://ok4u.club/_next/static/chunks/pages/[city]/game/[id]/audit-e296627a5a68b5df.js

js ok4u.club collected 2026-10-07 18:07:25 UTC 3,951 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[296],{34819:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[city]/game/[id]/audit",function(){return t(29943)}])},16230:function(e,n,t){"use strict";t.d(n,{GU:function(){return l},cO:function(){return a},v3:function(){return r},vI:function(){return i}});var s=t(10610);async function i(){return(await (0,s.bA)("/api/v1/grades/get-game-types/")).json()}async function l(e){return(0,s.bg)("/api/v1/grades/hide-grade/",{game_type:e})}async function a(e){return(0,s.bg)("/api/v1/grades/add-grade/",{game_type:e})}async function r(e,n,t){return(0,s.bg)("/api/v1/pages/audit-edit/".concat(e,"/submit-audit/"),{knowledge_level:n,comment:t})}},29943:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return p},default:function(){return f}});var s=t(85893),i=t(67294),l=t(12918),a=t.n(l),r=t(9008),c=t.n(r),d=t(41664),u=t.n(d),o=t(56236),m=t(18810),h=t(16318),x=t(16230),_=t(98186);function v(e){let{person:n,title:t}=e;return n?(0,s.jsxs)("div",{className:"audit__person",children:[(0,s.jsx)("div",{children:(0,s.jsx)(m.Z,{player:n,size:"66"})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{children:t}),(0,s.jsx)(u(),{href:n.url,children:n.name})]})]}):null}function j(e){let{label:n,value:t,asLine:i}=e;return(0,s.jsxs)("div",{className:"audit__property"+(i?" audit__property--line":""),children:[(0,s.jsx)("div",{className:"audit__property-label",children:n}),(0,s.jsx)("div",{className:"audit__property-value",children:t})]})}var p=!0;function f(e){let{layoutProps:n,errorCode:t,game:l,auditor:r,prev_knowledge_level:d,initial_comment:m,knowledge_levels:p}=e,[f,g]=(0,i.useState)(null==d?void 0:d.id),[N,b]=(0,i.useState)(m),[w,y]=(0,i.useState)(null),[k,Z]=(0,i.useState)(null),C=async()=>{Z(null),y(null);let e=await (0,x.v3)(l.id,f,N),n=await e.json();e.ok?Z("Аудит ведущего успешно отправлен."+(n.time_to_edit?" Вы можете его редактировать в течение ".concat(n.time_to_edit," минут."):"")):y(n)};if((0,i.useEffect)(()=>{y(null),Z(null)},[f,N]),t)return(0,s.jsx)(a(),{statusCode:t});let S=(0,s.jsxs)(u(),{href:l.url,children:[l.start_time_medium,"(",l.game_type.name,")"]});return(0,s.jsxs)(h.Z,{pageClass:"page-take-game",...n,children:[(0,s.jsx)(c(),{children:(0,s.jsxs)("title",{children:["Аудит ведущего ",l.host.name]})}),(0,s.jsxs)("div",{className:"container-fluid mt-4 mb-5",children:[(0,s.jsx)("h2",{className:"text-center mb-3",children:"Аудит ведущего"}),(0,s.jsxs)("div",{className:"audit",children:[(0,s.jsx)(j,{label:"Игра",value:S,asLine:!0}),(0,s.jsxs)("div",{className:"audit__persons",children:[(0,s.jsx)(v,{person:l.host,title:"Ведущий"}),(0,s.jsx)(v,{person:r,title:"Аудитор"})]}),(0,s.jsx)("div",{className:"mt-3 row",children:(0,s.jsxs)(o.Z.Group,{controlId:"id_knowledge_level",className:"col-12 col-md-4",children:[(0,s.jsx)(o.Z.Label,{children:"Уровень знаний"}),(0,s.jsx)(o.Z.Select,{value:f,size:"lg",isInvalid:null==w?void 0:w.knowledge_level,onChange:e=>g(e.target.value),children:p.map(e=>(0,s.jsx)("option",{value:e.id,children:e.name},e.id))}),(0,s.jsx)(_.Z,{errors:null==w?void 0:w.knowledge_level})]})}),(0,s.jsxs)(o.Z.Group,{controlId:"id_comment",className:"mt-3",children:[(0,s.jsx)(o.Z.Label,{children:"Ваш комментарий"}),(0,s.jsx)(o.Z.Control,{as:"textarea",size:"lg",rows:20,isInvalid:null==w?void 0:w.comment,required:!0,value:N,onChange:e=>b(e.target.value)}),(0,s.jsx)(_.Z,{errors:null==w?void 0:w.comment})]}),(0,s.jsxs)("div",{className:"mt-3 mb-4 d-flex align-items-center",children:[(0,s.jsx)("button",{className:"btn btn-primary me-4",onClick:C,children:"Отправить аудит"}),k&&(0,s.jsx)("span",{className:"text-success",children:k})]})]})]})]})}},12918:function(e,n,t){e.exports=t(2111)}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=34819)}),_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.