PageSourceSearch

https://m3barber.ru/assets/HelperBarbersPage-BKgGgvqb.js

js m3barber.ru collected 2026-10-04 09:38:35 UTC 2,122 bytes, 1 lines download raw bytes

1import{aX as e,a8 as i,a7 as m,bw as d,a1 as p,aa as y,aP as u,aQ as f,aH as v,bb as b,a2 as z,b8 as S,b0 as k}from"./vendor-antd-Jw8mkMM4.js";import{n as L,h as _,$ as w}from"./vendor-refine-CwVNplFY.js";import{j as A}from"./index-CIEAAbGN.js";import"./vendor-calendar-D7F0Uuet.js";const{Title:C,Text:r}=y,I=()=>{const{data:n,isLoading:h}=L(),{push:x}=_(),l=n==null?void 0:n.barbershop_id,{data:t,isLoading:j}=w({resource:"barbers",pagination:{pageSize:100},queryOptions:{enabled:!!l}}),o=((t==null?void 0:t.data)??[]).filter(s=>s.is_active!==!1);return h||j?e.jsx(i,{children:e.jsx("div",{style:{textAlign:"center",padding:50},children:e.jsx(m,{size:"large"})})}):l?o.length===0?e.jsx(i,{children:e.jsx(d,{description:"В барбершопе нет активных барберов"})}):e.jsx(i,{children:e.jsxs(p,{direction:"vertical",size:"large",style:{width:"100%"},children:[e.jsx(C,{level:4,style:{margin:0},children:"Барберы"}),e.jsx(u,{gutter:[16,16],children:o.map(s=>{const a=A(s.balance,s.negative_balance_since),c=()=>{if(a){k.warning("Нельзя открыть расписание: срок пополнения баланса истёк");return}x(`/admin/calendar/barber?barber_id=${s.id}`)};return e.jsx(f,{xs:24,sm:12,md:8,lg:6,children:e.jsx(i,{hoverable:!a,style:{textAlign:"center",opacity:a?.75:1},onClick:c,children:e.jsxs(p,{direction:"vertical",size:"small",style:{width:"100%"},children:[e.jsx(v,{size:64,src:s.avatar||s.url_avatar,icon:e.jsx(b,{})}),e.jsxs("div",{children:[e.jsxs(r,{strong:!0,style:{display:"block"},children:[s.name," ",s.surname??""]}),s.rate&&e.jsxs(r,{type:"secondary",style:{fontSize:12},children:[s.rate," ₽/ч"]}),a&&e.jsx(r,{type:"danger",style:{fontSize:12,display:"block",marginTop:4},children:"Срок пополнения истёк"})]}),e.jsx(z,{type:"primary",icon:e.jsx(S,{}),size:"small",disabled:a,onClick:g=>{g.stopPropagation(),c()},children:a?"Недоступно":"Расписание"})]})})},s.id)})})]})}):e.jsx(i,{children:e.jsx(d,{description:"Барбершоп не найден"})})};export{I as HelperBarbersPage,I as default};

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.