PageSourceSearch

https://ok4u.club/_next/static/chunks/pages/[city]/hosts/availability-2-25dba5e3ada2797f.js

js ok4u.club collected 2026-10-07 18:07:36 UTC 10,657 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7305],{65955:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[city]/hosts/availability-2",function(){return n(88112)}])},47337:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(85893),s=n(9008),a=n.n(s),l=n(16318),i=n(12918),c=n.n(i);function o(e){let{statusCode:t,layoutProps:n}=e;if(403!=t)return(0,r.jsx)(c(),{statusCode:errorCode});let s="Доступ запрещён";return(0,r.jsxs)(l.Z,{...n,children:[(0,r.jsx)(a(),{children:(0,r.jsxs)("title",{children:[t," - ",s.toLowerCase()]})}),(0,r.jsxs)("div",{className:"container-fluid my-5 pb-5 text-center",children:[(0,r.jsx)("div",{className:"h2",style:{fontSize:"12rem"},children:t}),(0,r.jsx)("div",{className:"h2 fw-normal",children:s})]})]})}},67834:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(85893),s=n(61169),a=n(52974);function l(e){let{gameLevel:t,className:n}=e;if(!t)return null;let l=t.bg_color||"#8c969a",i=(t.help_text||"").trim(),c=i.length>0?(0,r.jsx)(a.Z,{id:"popover-host-level",className:"host-level-pill__popover",children:(0,r.jsx)(a.Z.Body,{children:i})}):null;return(0,r.jsxs)("div",{className:"host-level-pill rounded-pill small "+(n||""),style:{color:"#fff",background:l,width:"fit-content"},children:[t.name,c&&(0,r.jsx)(s.Z,{trigger:["hover","focus"],placement:"auto",overlay:c,children:(0,r.jsx)("a",{tabIndex:"0",className:"info-button",style:{color:l,background:"#fff"},role:"button",children:"?"})})]})}},31073:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(85893),s=n(18810),a=n(67834),l=n(6916);function i(e){let{host:t,extraInfo:n,className:i,isSelected:c,showDescription:o,showGrade:d,showGameLevel:u,showSelectButton:m,onSelect:f}=e;return(0,r.jsxs)("div",{className:"hosts__card "+(i||""),children:[(0,r.jsx)("div",{className:"hosts__card__image",children:(0,r.jsx)(s.Z,{player:t,size:200})}),(0,r.jsxs)("div",{className:"hosts__card__info",children:[(0,r.jsxs)("div",{className:"hosts__card__info__header",children:[(0,r.jsxs)("h3",{children:[t.name,(0,r.jsx)(l.Z,{player:t})]}),o&&(0,r.jsx)("span",{className:"hosts__card__short-description",children:t.short_description}),d&&t.grade&&(0,r.jsx)("span",{className:"hosts__card__grade",children:t.grade.name}),u&&t.game_level&&(0,r.jsx)(a.Z,{gameLevel:t.game_level,className:"mx-auto"})]}),o&&t.full_description&&(0,r.jsx)("p",{className:"hosts__card__full-description",children:t.full_description}),n,!1]})]})}},6916:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(85893);function s(e){let{player:t,ratingsUrl:n,noDecoration:s,className:a,asBlock:l}=e;return t&&t.peer_rating_avg?(0,r.jsx)(r.Fragment,{children:t.peer_rating_num?(0,r.jsxs)("span",{className:"player-rating"+(l?" player-rating--block":"")+(s?" player-rating--no-decoration":"")+(a?" "+a:""),children:[t.peer_rating_avg,(0,r.jsxs)("span",{className:"player-rating__num-rates",children:["(",(0,r.jsx)("span",{className:"player-rating__num-rates--num",children:n?(0,r.jsx)("a",{href:n,children:t.peer_rating_num}):t.peer_rating_num}),")"]})]}):""}):null}},33916:function(e,t,n){"use strict";n.d(t,{Z:function(){return I}});var r=n(93967),s=n.n(r),a=n(67294),l=n(15446),i=n(60930),c=n(49225),o=n(38490),d=n(86056),u=n(87126);let m=a.createContext(null);var f=n(52747),v=n(67177),h=n(70861),x=n(85893);let _=["as","active","eventKey"];function p({key:e,onClick:t,active:n,id:r,role:s,disabled:l}){let i=(0,a.useContext)(u.Z),c=(0,a.useContext)(d.Z),o=(0,a.useContext)(m),h=n,x={role:s};if(c){s||"tablist"!==c.role||(x.role="tab");let t=c.getControllerId(null!=e?e:null),a=c.getControlledId(null!=e?e:null);x[(0,f.PB)("event-key")]=e,x.id=t||r,((h=null==n&&null!=e?c.activeKey===e:n)||!(null!=o&&o.unmountOnExit)&&!(null!=o&&o.mountOnEnter))&&(x["aria-controls"]=a)}return"tab"===x.role&&(x["aria-selected"]=h,h||(x.tabIndex=-1),l&&(x.tabIndex=-1,x["aria-disabled"]=!0)),x.onClick=(0,v.Z)(n=>{l||(null==t||t(n),null!=e&&i&&!n.isPropagationStopped()&&i(e,n))}),[x,{isActive:h}]}let j=a.forwardRef((e,t)=>
1{let{as:n=h.ZP,active:r,eventKey:s}=e,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,_),[l,i]=p(Object.assign({key:(0,u.h)(s,a.href),active:r},a));return l[(0,f.PB)("active")]=i.isActive,(0,x.jsx)(n,Object.assign({},a,l,{ref:t}))});j.displayName="NavItem";let g=["as","onSelect","activeKey","role","onKeyDown"],N=()=>{},y=(0,f.PB)("event-key"),b=a.forwardRef((e,t)=>{let n,r,{as:s="div",onSelect:l,activeKey:v,role:h,onKeyDown:_}=e,p=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,g),j=(0,c.Z)(),b=(0,a.useRef)(!1),w=(0,a.useContext)(u.Z),Z=(0,a.useContext)(m);Z&&(h=h||"tablist",v=Z.activeKey,n=Z.getControlledId,r=Z.getControllerId);let C=(0,a.useRef)(null),k=e=>{let t=C.current;if(!t)return null;let n=(0,i.Z)(t,`[${y}]:not([aria-disabled=true])`),r=t.querySelector("[aria-selected=true]");if(!r||r!==document.activeElement)return null;let s=n.indexOf(r);if(-1===s)return null;let a=s+e;return a>=n.length&&(a=0),a<0&&(a=n.length-1),n[a]},S=(e,t)=>{null!=e&&(null==l||l(e,t),null==w||w(e,t))};(0,a.useEffect)(()=>{if(C.current&&b.current){let e=C.current.querySelector(`[${y}][aria-selected=true]`);null==e||e.focus()}b.current=!1});let P=(0,o.Z)(t,C);return(0,x.jsx)(u.Z.Provider,{value:S,children:(0,x.jsx)(d.Z.Provider,{value:{role:h,activeKey:(0,u.h)(v),getControlledId:n||N,getControllerId:r||N},children:(0,x.jsx)(s,Object.assign({},p,{onKeyDown:e=>{let t;if(null==_||_(e),Z){switch(e.key){case"ArrowLeft":case"ArrowUp":t=k(-1);break;case"ArrowRight":case"ArrowDown":t=k(1);break;default:return}t&&(e.preventDefault(),S(t.dataset[(0,f.$F)("EventKey")]||null,e),b.current=!0,j())}},ref:P,role:h}))})})});b.displayName="Nav";var w=Object.assign(b,{Item:j}),Z=n(97400),C=n(977);let k=a.createContext(null);k.displayName="CardHeaderContext";let S=a.forwardRef((e,t)=>{let{className:n,bsPrefix:r,as:a="div",...l}=e;return r=(0,Z.vE)(r,"nav-item"),(0,x.jsx)(a,{ref:t,className:s()(n,r),...l})});S.displayName="NavItem";var P=n(24079);let O=a.forwardRef((e,t)=>{let{bsPrefix:n,className:r,as:a=P.Z,active:l,eventKey:i,disabled:c=!1,...o}=e;n=(0,Z.vE)(n,"nav-link");let[d,m]=p({key:(0,u.h)(i,o.href),active:l,disabled:c,...o});return(0,x.jsx)(a,{...o,...d,ref:t,disabled:c,className:s()(r,n,c&&"disabled",m.isActive&&"active")})});O.displayName="NavLink";let E=a.forwardRef((e,t)=>{let n,r;let{as:i="div",bsPrefix:c,variant:o,fill:d=!1,justify:u=!1,navbar:m,navbarScroll:f,className:v,activeKey:h,..._}=(0,l.Ch)(e,{activeKey:"onSelect"}),p=(0,Z.vE)(c,"nav"),j=!1,g=(0,a.useContext)(C.Z),N=(0,a.useContext)(k);return g?(n=g.bsPrefix,j=null==m||m):N&&({cardHeaderBsPrefix:r}=N),(0,x.jsx)(w,{as:i,ref:t,activeKey:h,className:s()(v,{[p]:!j,["".concat(n,"-nav")]:j,["".concat(n,"-nav-scroll")]:j&&f,["".concat(r,"-").concat(o)]:!!r,["".concat(p,"-").concat(o)]:!!o,["".concat(p,"-fill")]:d,["".concat(p,"-justified")]:u}),..._})});E.displayName="Nav";var I=Object.assign(E,{Item:S,Link:O})},88112:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return v},default:function(){return h}});var r=n(85893),s=n(67294),a=n(9008),l=n.n(a),i=n(67940),c=n(31073),o=n(16318),d=n(71095),u=n(47337);function m(e){let{games:t}=e;return t&&0!==t.length?(0,r.jsxs)("div",{className:"mt-2",children:[(0,r.jsx)("div",{className:"text-danger mb-1",children:"ЗАНЯТ"}),t.map(e=>(0,r.jsx)("div",{children:(0,r.jsxs)("a",{href:e.url,className:"text-decoration-none",children:[e.place.name," в ",e.start_time," (",e.num_participants,"/",e.max_participants,")",e.is_auditor?" - АУДИТОР":""]})},e.url))]}):null}function f(e){var t,n,s,a,l,i,o;let{host:d,className:u,onHostLevelSelect:f}=e,v=null===(t=d.extra_info)||void 0===t?void 0:t.work_time,h=null===(n=d.extra_info)||void 0===n?void 0:n.host_level,x=null===(s=d.extra_info)||void 0===s?void 0:s.host_conversion,_=null==h?void 0:h.bg_color,p=(0,r.jsxs)("p",{className:"hosts__card__extra-description",children:[h&&(0,r.jsx)("div",{className:"mb-1",children:(0,r.jsx)("button",{className:"btn btn-primary btn-sm px-3",style:_?{color:"#fff",background:_,borderWidth:0,boxShadow:"none"}:{},onClick:()=>f(h.id),children:h.name})}),(0,r.jsx)("div",{style:{whiteSpace:"pre-wrap"},children:v}),x&&(0,r.jsxs)("div",{className:"mt-1 text-primary",children:[x.returned_participants," / ",x.participants," = ",x.percents,"%"]}),(null===(a=d.extra_info)||void 0===a?void 0:a.num_games)>0&&(0,r.jsxs)("div",{className:"",children:["Игр = ",null===(l=d.extra_info)||void 0===l?void 0:l.num_games]}),(null===(i=d.extra_info)||void 0===i?void 0:i.games_stats)&&(0,r.jsx)(r.Fragment,{children:d.extra_info.games_stats.map((e,t)=>(0,r.jsxs)("div",{className:"my-2",children:[(0,r.jsxs)("div",{children:[e.place," ",e.game_type," ",e.time]}),"(",(0,r.jsxs)("span",{className:"text-muted",children:[e.num_completed_games," / ",e.num_games," ="," "]}),e.chance,", ",e.profit," руб.)"]},t))}),(0,r.jsx)(m,{games:null===(o=d.extra_info)||void 0===o?void 0:o.assigned_games})]});return(0,r.jsx)(c.Z,{host:d,extraInfo:p,className:u})}var v=!0;function h(e){let{layoutProps:t,errorCode:n,currentCity:a,enrollment_dates:c,enrollment_game_types:m,enrollment_host_levels:v}
1=e,[h,x]=(0,s.useState)(1),[_,p]=(0,s.useState)(0),[j,g]=(0,s.useState)(0),[N,y]=(0,s.useState)(null),b=e=>{v.map((t,n)=>{t.id==e&&g(n)})};return((0,s.useEffect)(()=>{let e=async()=>{y(await (0,d.eO)(a.slug,c[h].date,m[_].id,v[j].id))};n||e()},[h,_,j]),n)?(0,r.jsx)(u.Z,{statusCode:n,layoutProps:t}):(0,r.jsxs)(o.Z,{pageClass:"page-hosts",menuPath:"/hosts/",...t,children:[(0,r.jsx)(l(),{children:(0,r.jsxs)("title",{children:["Доступность ведущих в ",a.name_prepositional]})}),(0,r.jsxs)("div",{className:"container-fluid",children:[(0,r.jsxs)("h2",{className:"mb-4",children:["Доступность ведущих в ",a.name_prepositional]}),(0,r.jsx)(i.Z,{gameTypes:m,dates:c,hostLevels:v,selectedGameType:_,selectedHostLevel:j,selectedDate:h,city:a,onGameTypeSelect:p,onHostLevelSelect:g,onDateSelect:x,hideArchiveLink:!0}),(0,r.jsxs)("div",{className:"row hosts",children:[N&&0==N.length&&(0,r.jsx)("div",{className:"col-12 alert alert-danger text-center",children:"Нет доступных ведущих"}),N&&(0,r.jsx)(r.Fragment,{children:N.map(e=>(0,r.jsx)(f,{host:e,onHostLevelSelect:b,className:"col-12 col-sm-3"},e.id))})]})]})]})}},12918:function(e,t,n){e.exports=n(2111)}},function(e){e.O(0,[7940,2888,9774,179],function(){return e(e.s=65955)}),_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.