1(self.webpackChunknacional_backoffice_frontend=self.webpackChunknacional_backoffice_frontend||[]).push([[6799],{3784(e,t,i){"use strict";i.d(t,{A:()=>f});var n=i(9379),a=i(5043),r=i(5492),l=i(1645),s=i(3427),o=i(5444),d=i(3942),c=i(7419),u=i(5512),h=i(1957),p=i(6459),m=i(579);const f=e=>{let{visible:t,onCancel:f,onSubmit:g,initialValues:x,paises:v=[],ciudades:y=[],setCiudades:b,saving:j=!1,title:A="Editar Persona"}=e;const[w]=s.A.useForm(),[S,C]=(0,a.useState)([]),I=s.A.useWatch("PaisId",w),P=(0,a.useMemo)(()=>v.map(e=>({value:e.PaisId,label:e.PaisNombre,flagUrl:e.PaisBanderaUrl})).filter(e=>e.label).sort((e,t)=>(e.label||"").localeCompare(t.label||"")),[v]),k=(0,a.useMemo)(()=>S.map(e=>({value:e.CiudadId,label:e.CiudadNombre})).filter(e=>e.label).sort((e,t)=>(e.label||"").localeCompare(t.label||"")),[S]);(0,a.useEffect)(()=>{if(I){const e=y.filter(e=>e.PaisId===I);C(e)}else C([])},[I,y]),(0,a.useEffect)(()=>{if(t&&x){if(x.PaisId){const e=y.filter(e=>e.PaisId===x.PaisId);C(e)}setTimeout(()=>{w.setFieldsValue({PersonaNombre:x.PersonaNombre||"",PersonaApellido:x.PersonaApellido||"",PersonaNombreCompleto:x.PersonaNombreCompleto||"",PersonaApodo:x.PersonaApodo||"",PaisId:x.PaisId||null,CiudadId:x.CiudadId||null,PersonaFecNac:x.PersonaFecNac?String(x.PersonaFecNac).substring(0,10):"",PersonaFecDef:x.PersonaFecDef?String(x.PersonaFecDef).substring(0,10):""})},0)}else t&&!x&&(w.resetFields(),C([]))},[t,x,w]);const N=()=>{w.resetFields(),f()};return(0,m.jsx)(d.A,{title:A,open:t,onCancel:N,footer:null,width:500,destroyOnClose:!0,zIndex:1100,children:(0,m.jsxs)(s.A,{form:w,layout:"vertical",onFinish:async e=>{const t=(0,n.A)((0,n.A)({},e),{},{PersonaFecNac:e.PersonaFecNac||null,PersonaFecDef:e.PersonaFecDef||null});await g(t),w.resetFields()},style:{marginTop:16},children:[(0,m.jsxs)(c.A,{gutter:16,children:[(0,m.jsx)(l.A,{span:12,children:(0,m.jsx)(s.A.Item,{name:"PersonaNombre",label:"Nombre",children:(0,m.jsx)(o.A,{})})}),(0,m.jsx)(l.A,{span:12,children:(0,m.jsx)(s.A.Item,{name:"PersonaApellido",label:"Apellido",rules:[{required:!0,message:"Requerido"}],children:(0,m.jsx)(o.A,{})})})]}),(0,m.jsx)(s.A.Item,{name:"PersonaNombreCompleto",label:"Nombre Completo",children:(0,m.jsx)(o.A,{})}),(0,m.jsx)(s.A.Item,{name:"PersonaApodo",label:"Apodo",children:(0,m.jsx)(o.A,{})}),(0,m.jsx)(s.A.Item,{name:"PaisId",label:"Pa\xeds",rules:[{required:!0,message:"Requerido"}],children:(0,m.jsx)(u.A,{options:P,showSearch:!0,allowClear:!0,filterOption:(e,t)=>{var i;return(0,p.f)(null!==(i=null===t||void 0===t?void 0:t.label)&&void 0!==i?i:"").includes((0,p.f)(e))},onChange:()=>w.setFieldValue("CiudadId",null),optionRender:e=>{var t,i;const n=null!==(t=null===(i=e.data)||void 0===i?void 0:i.flagUrl)&&void 0!==t?t:e.flagUrl;return(0,m.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:6},children:[n&&(0,m.jsx)("img",{src:n,alt:"",style:{width:20,height:14,objectFit:"cover",borderRadius:2}}),(0,m.jsx)("span",{children:e.label})]})},labelRender:e=>{const t=P.find(t=>t.value===e.value);return(0,m.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:6},children:[(null===t||void 0===t?void 0:t.flagUrl)&&(0,m.jsx)("img",{src:t.flagUrl,alt:"",style:{width:20,height:14,objectFit:"cover",borderRadius:2}}),(0,m.jsx)("span",{children:e.label})]})}})}),(0,m.jsx)(s.A.Item,{name:"CiudadId",label:"Ciudad",children:(0,m.jsx)(p.A,{options:k,createLabel:"Crear Ciudad",createFields:[{name:"CiudadNombre",label:"Nombre",required:!0}],onCreateSubmit:async e=>{const t=await Promise.resolve().then(i.bind(i,6149)).then(e=>e.services),a=(0,n.A)((0,n.A)({},e),{},{PaisId:I}),r=(await t.ciudades.create(a)).data,l={CiudadId:r.ciudadid||r.CiudadId||r.id,CiudadNombre:r.ciudadnombre||r.CiudadNombre||r.nombre||e.CiudadNombre,PaisId:r.paisid||r.PaisId||I};return b&&b(e=>[...e,l]),C(e=>[...e,l]),{value:l.CiudadId,label:l.CiudadNombre}},showSearch:!0,allowClear:!0,disabled:!I,placeholder:I?"Seleccionar ciudad":"Primero seleccione un pa\xeds",style:{width:"100%"}})}),(0,m.jsxs)(c.A,{gutter:16,children:[(0,m.jsx)(l.A,{span:12,children:(0,m.jsx)(s.A.Item,{name:"PersonaFecNac",label:"Fecha de Nacim
1iento",children:(0,m.jsx)(o.A,{placeholder:"YYYY-MM-DD"})})}),(0,m.jsx)(l.A,{span:12,children:(0,m.jsx)(s.A.Item,{name:"PersonaFecDef",label:"Fecha de Defunci\xf3n",children:(0,m.jsx)(o.A,{placeholder:"YYYY-MM-DD"})})})]}),(0,m.jsx)(s.A.Item,{style:{marginBottom:0,textAlign:"right"},children:(0,m.jsxs)(h.A,{children:[(0,m.jsx)(r.Ay,{onClick:N,children:"Cancelar"}),(0,m.jsx)(r.Ay,{type:"primary",htmlType:"submit",loading:j,children:"Guardar"})]})})]})})}},6459(e,t,i){"use strict";i.d(t,{A:()=>S,f:()=>b});var n=i(3986),a=i(9379),r=i(5043),l=i(5492),s=i(1645),o=i(8354),d=i(3427),c=i(5444),u=i(7914),h=i(4400),p=i(3942),m=i(7419),f=i(5512),g=i(2624),x=i(5337),v=i(579);const y=["value","onChange","options","setOptions","createLabel","createFields","onCreateSubmit"],b=e=>(e||"").normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase(),j=e=>{let{field:t,form:i}=e;const n=d.A.useWatch(t.dependsOn,i),a=n&&t.getOptions?t.getOptions(n):[];return(0,v.jsx)(d.A.Item,{name:t.name,label:t.label,rules:t.required?[{required:!0}]:[],children:(0,v.jsx)(f.A,{options:a,showSearch:!0,allowClear:!0,filterOption:(e,t)=>{var i;return b(null!==(i=null===t||void 0===t?void 0:t.label)&&void 0!==i?i:"").includes(b(e))},placeholder:n?t.placeholder||"Seleccionar ".concat(t.label):"Seleccione primero ".concat(t.dependsOnLabel||t.dependsOn),style:{width:"100%"},disabled:!n})},t.name)},A=e=>{let{field:t,form:i}=e;const n=d.A.useWatch(t.dependsOn,i),s=n&&t.getOptions?t.getOptions(n):[],[u,m]=(0,r.useState)([]),[g,y]=(0,r.useState)(!1),[j]=d.A.useForm(),[A,w]=(0,r.useState)(!1),S=[...s,...u.filter(e=>!s.some(t=>t.value===e.value))];return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(d.A.Item,{name:t.name,label:t.label,rules:t.required?[{required:!0}]:[],children:(0,v.jsx)(f.A,{options:S,showSearch:!0,allowClear:!0,filterOption:(e,t)=>{var i;return b(null!==(i=null===t||void 0===t?void 0:t.label)&&void 0!==i?i:"").includes(b(e))},placeholder:n?t.placeholder||"Seleccionar ".concat(t.label):"Seleccione primero ".concat(t.dependsOnLabel||t.dependsOn),style:{width:"100%"},disabled:!n,dropdownRender:e=>(0,v.jsxs)(v.Fragment,{children:[e,n&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(o.A,{style:{margin:"8px 0"}}),(0,v.jsxs)("div",{style:{padding:"0 8px 8px",cursor:"pointer",color:"#1677ff",display:"flex",alignItems:"center",gap:4},onMouseDown:e=>e.preventDefault(),onClick:()=>{j.resetFields(),y(!0)},children:[(0,v.jsx)(x.A,{})," ",t.createLabel||"Crear ".concat(t.label)]})]})]})})},t.name),(0,v.jsx)(p.A,{title:t.createLabel||"Crear ".concat(t.label),open:g,onCancel:()=>{y(!1),j.resetFields()},footer:null,destroyOnClose:!0,children:(0,v.jsxs)(d.A,{form:j,layout:"vertical",onFinish:async e=>{w(!0);try{var r;const l=(0,a.A)((0,a.A)({},e),{},{[t.dependsOn]:n}),s=await t.onCreateSubmit(l);m(e=>[...e,s]),null===(r=t.onCreated)||void 0===r||r.call(t,s),i.setFieldValue(t.name,s.value),y(!1),j.resetFields(),h.Ay.success("".concat(t.createLabel||t.label," creado correctamente"))}catch(l){h.Ay.error("Error: ".concat(l.message||l))}finally{w(!1)}},style:{marginTop:16},children:[(t.createFields||[]).map(e=>(0,v.jsx)(d.A.Item,{name:e.name,label:e.label,rules:e.required?[{required:!0}]:[],children:(0,v.jsx)(c.A,{})},e.name)),(0,v.jsxs)(d.A.Item,{style:{marginBottom:0,textAlign:"right"},children:[(0,v.jsx)(l.Ay,{onClick:()=>{y(!1),j.resetFields()},style:{marginRight:8},children:"Cancelar"}),(0,v.jsx)(l.Ay,{type:"primary",htmlType:"submit",loading:A,children:"Crear"})]})]})})]})},w=e=>{let{value:t,onChange:i,options:S,setOptions:C,createLabel:I,createFields:P,onCreateSubmit:k}=e,N=(0,n.A)(e,y);const[D,O]=(0,r.useState)(!1),[F,M]=(0,r.useState)(!1),[z]=d.A.useForm(),$=e=>{if("select"===e.type){const t=(e.options||[]).some(e=>e.flagUrl);return(0,v.jsx)(d.A.Item,{name:e.name,label:e.label,rules:e.required?[{required:!0}]:[],children:(0,v.jsx)(f.A,{options:e.options,showSearch:!0,allowClear:!e.required,filterOption:(e,t)=>{var i;return b(null!==(i=null===t||void 0===t?void 0:t.label)&&void 0!==i?i:"").includes(b(e))},placeholder:e.placeholder||"Seleccionar ".concat(e.label),style:{width:"100%"},optionRender:t?e=>{var t,i;const n=null!==(t=null===(i=e.data)||void 0===i?void 0:i.flagUrl)&&void 0!==t?t:e.flagUrl;return(0,v.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:6},children:[n&&(0,v.jsx)("img",{src:n,alt:"",style:{width:20,height:14,objectFit:"cover",borderRadius:2,flexShrink:0}}),(0,v.jsx)("span",{children:e.label})]})}:void 0,labelRender:t?t=>{const i=(e.options||[]).find(e=>e.value===t.value),n=null===i||void 0===i?void 0:i.flagUrl;return(0,v.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:6},children:[n&&(0,v.jsx)("img",{src:n,alt:"",style:{width:20,height:14,objectFit:"cover",borderRadius:2}}),(0,v.jsx)("span",{children:t.label})]})}:void 0})},e.name)}if("selectWithCreate"===e.type)return(0,v.jsx)(d.A.Item,{name:e.name,label:e.label,rules:e.required?[{required:!0}]:[],children:(0,v.jsx)(w,{options:e.options||[],setOptions:e.setOptions,createLabel:e.createLabel,createFields:e.createFields,onCreateSubmit:e.onCreateSubmit,showSearch:!0,allowClear:!e.required,filterOption:(e,t)=>{var i;return b(null!==(i=null===t||void 0===t?void 0:t.label)&&void 0!==i?i:"").includes(b(e))},placeholder:e.placeholder||"Seleccionar ".concat(e.label),style:{width:"100%"}})},e.name);if("selectFiltered"===e.type)return(0,v.jsx)(j,{field:e,form:z},e.name);if("selectFilteredWithCreate"===e.type)return(0,v.jsx)(A,{field:e,form:z},e.name);if("selectEscudo"===e.type){const t=(e.options||[]).some(e=>e.escudoUrl);return(0,v.jsx)(d.A.Item,{name:e.name,label:e.label,rules:e.required?[{required:!0}]:[],children:(0,v.jsx)(f.A,{options:e.options,showSearch:!0,allowClear:!e.required,filterOption:(e,t)=>{var i;return b(null!==(i=null===t||void 0===t?void 0:t.label)&&void 0!==i?i:"").includes(b(e))},placeholder:e.placeholder||"Seleccionar ".concat(e.label),style:{width:"100%"},optionRender:t?e=>{var t;const i=null===(t=e.data)||void 0===t?void 0:t.escudoUrl;return(0,v.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:8},children:[i?(0,v.jsx)("img",{src:i,alt:"",style:{width:22,height:22,objectFit:"contain",flexShrink:0}}):(0,v.jsx)("div",{style:{width:22,height:22,flexShrink:0}}),(0,v.jsx)("span",{children:e.label})]})}:void 0,labelRender:t?t=>{const i=(e.options||[]).find(e=>e.value===t.value);return(0,v.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:6},children:[(null===i||void 0===i?void 0:i.escudoUrl)&&(0,v.jsx)("img",{src:i.escudoUrl,alt:"",style:{width:18,height:18,objectFit:"contain"}}),(0,v.jsx)("span",{children:t.label})]})}:void 0})},e.name)}return"switch"===e.type?(0,v.jsx)(d.A.Item,{name:e.name,label:e.label,valuePropName:"checked",children:(0,v.jsx)(g.A,{})},e.name):"number"===e.type?(0,v.jsx)(d.A.Item,{name:e.name,label:e.label,rules:e.required?[{required:!0}]:[],children:(0,v.jsx)(u.A,{style:{width:"100%"}})},e.name):"date"===e.type?(0,v.jsx)(d.A.Item,{name:e.name,label:e.label,rules:e.required?[{required:!0}]:[],children:(0,v.jsx)(c.A,{placeholder:"YYYY-MM-DD"})},e.name):"row"===e.type?(0,v.jsx)(m.A,{gutter:16,children:(e.fields||[]).map(e=>(0,v.jsx)(s.A,{span:12,children:$(e)},e.name))},null===(t=e.fields)||void 0===t?void 0:t.map(e=>e.name).join("-")):(0,v.jsx)(d.A.Item,{name:e.name,label:e.label,rules:e.required?[{required:!0}]:[],children:(0,v.jsx)(c.A,{placeholder:e.placeholder||e.label})},e.name);var t};return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(f.A,(0,a.A)((0,a.A)({value:t,onChange:i,showSearch:!0,options:S,dropdownRender:e=>(0,v.jsxs)(v.Fragment,{children:[e,(0,v.jsx)(o.A,{style:{margin:"8px 0"}}),(0,v.jsxs)("div",{style:{padding:"0 8px 8px",cursor:"pointer",color:"#1677ff",dis
1play:"flex",alignItems:"center",gap:4},onMouseDown:e=>e.preventDefault(),onClick:()=>{z.resetFields(),O(!0)},children:[(0,v.jsx)(x.A,{})," ",I]})]})},N),{},{filterOption:void 0!==N.filterOption?N.filterOption:(e,t)=>{var i;return b(null!==(i=null===t||void 0===t?void 0:t.label)&&void 0!==i?i:"").includes(b(e))}})),(0,v.jsx)(p.A,{title:I,open:D,onCancel:()=>{O(!1),z.resetFields()},footer:null,destroyOnClose:!0,width:480,zIndex:1200,children:(0,v.jsxs)(d.A,{form:z,layout:"vertical",onFinish:async e=>{M(!0);const t=Object.fromEntries(Object.entries(e).map(e=>{let[t,i]=e;return[t,i&&"object"===typeof i&&"function"===typeof i.format?i.format("YYYY-MM-DD"):i]}));try{const e=await k(t);C&&e&&C(t=>[...t,e]),O(!1),z.resetFields(),void 0!==(null===e||void 0===e?void 0:e.value)&&(null===i||void 0===i||i(e.value)),h.Ay.success("".concat(I," creado correctamente"))}catch(n){h.Ay.error("Error al crear: ".concat(n.message||n))}finally{M(!1)}},style:{marginTop:16},children:[(P||[]).map($),(0,v.jsxs)(d.A.Item,{style:{marginBottom:0,textAlign:"right"},children:[(0,v.jsx)(l.Ay,{onClick:()=>{O(!1),z.resetFields()},style:{marginRight:8},children:"Cancelar"}),(0,v.jsx)(l.Ay,{type:"primary",htmlType:"submit",loading:F,children:"Crear"})]})]})})]})},S=w},6799(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>ne});var n=i(9379),a=i(5043),r=i(5492),l=i(2513),s=i(1645),o=i(8354),d=i(5520),c=i(8205),u=i(5444),h=i(4400),p=i(3942),m=i(3463),f=i(6603),g=i(7419),x=i(5512),v=i(1957),y=i(1686),b=i(6144),j=i(8918),A=i(6399),w=i(494),S=i(3390),C=i(3310),I=i(3727),P=i(1966),k=i(8369),N=i(7407),D=i(8463),O=i(5337),F=i(9905),M=i(2058),z=i(8818),$=(i(446),i(5475)),q=i(3216),B=i(6149),U=i(3784),E=i(5187),H=i(579);const{Option:L}=x.A,{useBreakpoint:R}=c.Ay,W="arbitros_list_state",T=(new Date).getFullYear(),Y=1899,J={PJ:"PJ",nombre:"Nombre"},_={paisId:null,anioMode:"rango",anioDesde:Y,anioHasta:T,anioUnico:null,equipoId:null,campeonatoNombreId:null,soloOficiales:!0,orderBy:"PJ"},V={paisId:"pa",anioMode:"am",anioDesde:"ad",anioHasta:"ah",anioUnico:"an",equipoId:"eq",campeonatoNombreId:"nc",soloOficiales:"so",orderBy:"ob"},K=Object.fromEntries(Object.entries(V).map(e=>{let[t,i]=e;return[i,t]})),G=new Set(["anioDesde","anioHasta","anioUnico","equipoId","campeonatoNombreId"]),Z=e=>{const t=(e.PersonaApellido||"").toUpperCase(),i=e.PersonaNombre||"";return i?"".concat(t,", ").concat(i):t},Q=[{key:"1",label:"\xc1rbitro Principal",tipos:[1],statLabel:"\xc1rbitro Principal"},{key:"23",label:"L\xednea",tipos:[2,3],statLabel:"L\xednea"},{key:"4",label:"Cuarto \xc1rbitro",tipos:[4],statLabel:"4to \xc1rbitro"},{key:"5",label:"VAR",tipos:[5],statLabel:"VAR"},{key:"6",label:"Asistente VAR",tipos:[6],statLabel:"Asistente VAR"}],X=[{title:"Amarillas",key:"amarillas",width:90,align:"center",render:(e,t)=>{const i=Number(t.AmarillasNacional)||0,n=Number(t.AmarillasRival)||0;return 0===i&&0===n?"-":(0,H.jsxs)("span",{style:{color:"#d4b106",fontWeight:600},children:[i," / ",n]})}},{title:"Rojas",key:"rojas",width:80,align:"center",render:(e,t)=>{const i=Number(t.ExpulsadosNacional)||0,n=Number(t.ExpulsadosRival)||0;return 0===i&&0===n?"-":(0,H.jsxs)("span",{style:{color:"#cf1322",fontWeight:600},children:[i," / ",n]})}},{title:"Penales",key:"penales",width:80,align:"center",render:(e,t)=>{const i=Number(t.PenalesNacional)||0,n=Number(t.PenalesRival)||0;return 0===i&&0===n?"-":(0,H.jsxs)("span",{style:{fontWeight:600},children:[i," / ",n]})}}],ee=50,te=e=>{let{tabKey:t,tipos:i,extraColumns:n=[],refreshKey:l,onEdit:s,canEdit:o,sharedFilters:d,sharedSearch:c,onCountChange:u,isMobile:h}=e;const[p,f]=(0,a.useState)([]),[g,x]=(0,a.useState)(!1),[j,A]=(0,a.useState)(1),w=(0,q.Zp)(),S=((e,t)=>[{title:"\xc1rbitro",key:"nombre",render:(e,t)=>(0,H.jsxs)("span",{children:[(0,H.jsx)("strong",{children:(t.PersonaApellido||"").toUpperCase()}),t.PersonaNombre?", ".concat(t.PersonaNombre):""]})},{title:"Pa\xeds",key:"pais",width:170,render:(e,t)=>(0,H.jsxs)(v.A,{size:"small",children:[t.PaisBanderaUrl&&(0,H.jsx)("img",{src:t.PaisBanderaUrl,alt:"",style:{width:24,height:16,objectFit:"cover"}}),(0,H.jsx)("span",{children:t.PaisNombre})]})},{title:"Per\xedodo",key:"periodo",width:120,render:(e,t)=>t.AnioPrimero===t.AnioUltimo?String(t.AnioPrimero):"".concat(t.AnioPrimero,"-").concat(t.AnioUltimo)},{title:"PJ",dataIndex:"Partidos",key:"Partidos",width:50,align:"right"},{title:"PG",dataIndex:"PG",key:"PG",width:50,align:"right"},{title:"PE",dataIndex:"PE",key:"PE",width:50,align:"right"},{title:"PP",dataIndex:"PP",key:"PP",width:50,align:"right"},{title:"Dif.",key:"dif",width:55,align:"right",render:(e,t)=>{const i=(t.PG||0)-(t.PP||0),n=i>0?"#52c41a":i<0?"#ff4d4f":void 0;return(0,H.jsx)("span",{style:{color:n},children:i>0?"+".concat(i):i})}},...t?[{title:"",key:"actions",width:48,render:(t,i)=>(0,H.jsx)(r.Ay,{size:"small",icon:(0,H.jsx)(N.A,{}),onClick:()=>e(i)})}]:[]])(s,o),C=n.length>0?[...S.slice(0,-1),...n,S[S.length-1]]:S,I=(0,a.useCallback)(()=>
1{const e={tipos:i.join(","),search:c||void 0,orderBy:d.orderBy||"PJ"};return"extranjeros"===d.paisId?e.paisId="extranjeros":d.paisId&&(e.paisId=d.paisId),d.equipoId&&(e.equipoId=d.equipoId),d.soloOficiales&&(e.soloOficiales="true"),"internacionales"===d.campeonatoNombreId?e.campeonatoNombreId="internacionales":d.campeonatoNombreId&&(e.campeonatoNombreId=d.campeonatoNombreId),"unico"===d.anioMode?d.anioUnico&&(e.anioUnico=d.anioUnico):(d.anioDesde&&d.anioDesde!==Y&&(e.anioDesde=d.anioDesde),d.anioHasta&&d.anioHasta!==T&&(e.anioHasta=d.anioHasta)),e},[i,d,c]),P=(0,a.useCallback)(()=>{x(!0),B.Ay.get("/arbitros",{params:I()}).then(e=>{const i=e.data.data||[],n=new Set,a=i.filter(e=>!n.has(e.JuezId)&&(n.add(e.JuezId),!0));f(a),u(t,a.length)}).catch(()=>{f([]),u(t,0)}).finally(()=>x(!1))},[I,t,u]);if((0,a.useEffect)(()=>{P()},[P,l]),(0,a.useEffect)(()=>{A(1)},[p]),h){const e=p.slice((j-1)*ee,j*ee);return(0,H.jsxs)("div",{children:[g?(0,H.jsx)("div",{style:{textAlign:"center",padding:24},children:(0,H.jsx)(y.A,{})}):e.map(e=>{var t;const i=(e.PG||0)-(e.PP||0),n=i>0?"+".concat(i):i,a=i>0?"#3f8600":i<0?"#cf1322":"#888",r=e.AnioPrimero?e.AnioPrimero===e.AnioUltimo?"".concat(e.AnioPrimero):"".concat(e.AnioPrimero,"\u2013").concat(e.AnioUltimo):null;return(0,H.jsxs)("div",{style:{marginBottom:8,borderRadius:10,background:"#fff",border:"1px solid #e8e8e8",boxShadow:"0 1px 3px rgba(0,0,0,0.06)",overflow:"hidden",cursor:"pointer",display:"flex",alignItems:"center",gap:10,padding:"10px 12px",minHeight:64},onClick:()=>w("/arbitros/".concat(e.JuezId)),children:[(0,H.jsxs)("div",{style:{flex:1,minWidth:0},children:[(0,H.jsxs)("div",{style:{fontWeight:700,fontSize:16,color:"#222",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",marginBottom:8},children:[(e.PersonaApellido||"").toUpperCase(),e.PersonaNombre?", ".concat(e.PersonaNombre):""]}),(0,H.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6},children:[e.PaisBanderaUrl&&(0,H.jsx)("img",{src:e.PaisBanderaUrl,alt:"",style:{width:24,height:16,objectFit:"cover",flexShrink:0}}),r&&(0,H.jsx)("span",{style:{fontSize:14,color:"#444"},children:r})]})]}),(0,H.jsxs)("div",{style:{display:"flex",gap:2,flexShrink:0},children:[(0,H.jsxs)("div",{style:{textAlign:"center",width:38},children:[(0,H.jsx)("div",{style:{fontSize:10,color:"#aaa",lineHeight:1},children:"PJ"}),(0,H.jsx)("div",{style:{fontWeight:700,fontSize:16,color:"#262626",lineHeight:1.3},children:null!==(t=e.Partidos)&&void 0!==t?t:"-"})]}),(0,H.jsxs)("div",{style:{textAlign:"center",width:38},children:[(0,H.jsx)("div",{style:{fontSize:10,color:"#aaa",lineHeight:1},children:"Dif"}),(0,H.jsx)("div",{style:{fontWeight:700,fontSize:16,color:a,lineHeight:1.3},children:null!==n&&void 0!==n?n:"-"})]})]})]},e.JuezId)}),(0,H.jsx)(m.A,{current:j,pageSize:ee,total:p.length,onChange:e=>A(e),size:"small",showLessItems:!0,style:{textAlign:"center",marginTop:8}})]})}return(0,H.jsx)(b.A,{columns:C,dataSource:p,rowKey:"JuezId",loading:g,pagination:{pageSize:50,showSizeChanger:!0},rowClassName:"clickable-row",onRow:e=>({onClick:t=>{t.target.closest(".ant-btn")||w("/arbitros/".concat(e.JuezId))}})})},ie=e=>{let{onEdit:t,onDelete:i,refreshKey:n,canEdit:l,sharedSearch:s,sharedFilters:o,onCountChange:d,isMobile:c}=e;const[u,h]=(0,a.useState)([]),[p,f]=(0,a.useState)(!1),[g,x]=(0,a.useState)(1),j=(0,q.Zp)(),A=(0,a.useCallback)(()=>{f(!0);const e={};s&&(e.nombre=s),o.paisId&&(e.paisId=o.paisId),B.Ay.get("/arbitros/sin-partidos",{params:e}).then(e=>{const t=e.data.data||[];h(t),d("sin-partidos",t.length)}).catch(()=>{h([]),d("sin-partidos",0)}).finally(()=>f(!1))},[s,o,d]);(0,a.useEffect)(()=>{A()},[A,n]),(0,a.useEffect)(()=>{x(1)},[u]);const w=[{title:"\xc1rbitro",key:"nombre",render:(e,t)=>(0,H.jsxs)("span",{children:[(0,H.jsx)("strong",{children:(t.PersonaApellido||"").toUpperCase()}),t.PersonaNombre?", ".concat(t.PersonaNombre):""]})},{title:"Pa\xeds",key:"pais",width:170,render:(e,t)=>(0,H.jsxs)(v.A,{size:"small",children:[t.PaisBanderaUrl&&(0,H.jsx)("img",{src:t.PaisBanderaUrl,alt:"",style:{width:24,height:16,objectFit:"cover"}}),(0,H.jsx)("span",{children:t.PaisNombre})]})},...l?[{title:"",key:"actions",width:80,render:(e,n)=>(0,H.jsxs)(v.A,{children:[(0,H.jsx)(r.Ay,{size:"small",icon:(0,H.jsx)(N.A,{}),onClick:()=>t(n)}),(0,H.jsx)(r.Ay,{size:"small",danger:!0,icon:(0,H.jsx)(P.A,{}),onClick:()=>i(n)})]})}]:[]];if(c){const e=u.slice((g-1)*ee,g*ee);return(0,H.jsxs)("div",{children:[p?(0,H.jsx)("div",{style:{textAlign:"center",padding:24},children:(0,H.jsx)(y.A,{})}):e.map(e=>(0,H.jsx)("div",{style:{marginBottom:8,borderRadius:10,background:"#fff",border:"1px solid #e8e8e8",boxShadow:"0 1px 3px rgba(0,0,0,0.06)",overflow:"hidden",cursor:"pointer",display:"flex",alignItems:"center",gap:10,padding:"10px 12px",minHeight:64},onClick:()=>j("/arbitros/".concat(e.JuezId)),children:(0,H.jsxs)("div",{style:{flex:1,minWidth:0},children:[(0,H.jsxs)("div",{style:{fontWeight:700,fontSize:16,color:"#222",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",marginBottom:8},children:[(e.PersonaApellido||"").toUpperCase(),e.PersonaNombre?", ".concat(e.PersonaNombre):""]}),e.PaisBanderaUrl&&(0,H.jsx)("div",{style:{display:"flex",alignItems:"center",gap:6},children:(0,H.jsx)("img",{src:e.PaisBanderaUrl,alt:"",style:{width:24,height:16,objectFit:"cover",flexShrink:0}})})]})},e.JuezId)),(0,H.jsx)(m.A,{current:g,pageSize:ee,total:u.length,onChange:e=>x(e),size:"small",showLessItems:!0,style:{textAlign:"center",marginTop:8}})]})}return(0,H.jsx)(b.A,{columns:w,dataSource:u,rowKey:"JuezId",loading:p,pagination:{pageSize:50,showSizeChanger:!0},rowClassName:"clickable-row",onRow:e=>({onClick:t=>{t.target.closest(".ant-btn")||j("/arbitros/".concat(e.JuezId))}})})},ne=()=>{var e,t;const{canEdit:i}=(0,E.A)(),[c,m]=(0,$.ok)(),y=!R().md,b=[...c.keys()].some(e=>K[e]||"bt"===e),P=b?null:(()=>{try{const e=sessionStorage.getItem(W);return e?JSON.parse(e):null}catch(e){return null}})(),[N,q]=(0,a.useState)(b?c.get("bt")||"":null!==(e=null===P||void 0===P?void 0:P.searchText)&&void 0!==e?e:""),[L,ee]=(0,a.useState)(b?c.get("bt")||"":null!==(t=null===P||void 0===P?void 0:P.searchText)&&void 0!==t?t:""),[ne,ae]=(0,a.useState)(b?(e=>{const t=(0,n.A)({},_);for(const[i,n]of e.entries()){const e=K[i];if(e)if(G.has(e)){const i=parseInt(n);isNaN(i)||(t[e]=i)}else t[e]="soloOficiales"===e?"0"!==n&&"false"!==n:n}return t})(c):(0,n.A)((0,n.A)({},_),(null===P||void 0===P?void 0:P.filters)||{})),[re,le]=(0,a.useState)(!1),[se,oe]=(0,a.useState)({}),[de,ce]=(0,a.useState)(null),[ue,he]=(0,a.useState)({}),[pe,me]=(0,a.useState)(0),[fe,ge]=(0,a.useState)([]),[xe,ve]=(0,a.useState)([]),[ye,be]=(0,a.useState)([]),[je,Ae]=(0,a.useState)([]),[we,Se]=(0,a.useState)(!1),[Ce,Ie]=(0,a.useState)(!1),[Pe,ke]=(0,a.useState)(!1),[Ne,De]=(0,a.useState)(!1),[Oe,Fe]=(0,a.useState)(null),[Me,ze]=(0,a.useState)(null),$e=(0,a.useRef)(null);(0,a.useEffect)(()=>(clearTimeout($e.current),$e.current=setTimeout(()=>ee(N),400),()=>clearTimeout($e.current)),[N]),(0,a.useEffect)(()=>{(e=>
1{try{sessionStorage.setItem(W,JSON.stringify(e))}catch(t){}})({searchText:N,filters:ne})},[N,ne]),(0,a.useEffect)(()=>{m(((e,t)=>{const i={};for(const[n,a]of Object.entries(e)){if(void 0===a||null===a||""===a)continue;if("anioDesde"===n&&a===Y)continue;if("anioHasta"===n&&a===T)continue;if("anioMode"===n&&"rango"===a)continue;if("soloOficiales"===n&&!0===a)continue;if("orderBy"===n&&"PJ"===a)continue;const e=V[n];e&&(i[e]=String(a))}return t&&t.trim()&&(i.bt=t.trim()),i})(ne,N),{replace:!0})},[ne,N]),(0,a.useEffect)(()=>{B.services.paises.getAll({limit:300}).then(e=>{var t;ge([...(null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.data)||[]].sort((e,t)=>e.PaisNombre.localeCompare(t.PaisNombre)))}).catch(()=>{}),B.Ay.get("/arbitros/equipos").then(e=>be(e.data.data||[])).catch(()=>{}),B.services.nombresCampeonato.getAll({limit:200,CampeonatoAmistoso:0}).then(e=>{var t;return Ae((null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.data)||[])}).catch(()=>{})},[]);const qe=(0,a.useCallback)((e,t)=>{he(i=>(0,n.A)((0,n.A)({},i),{},{[e]:t}))},[]),Be=(e,t)=>ae(i=>(0,n.A)((0,n.A)({},i),{},{[e]:t})),Ue=()=>{q(""),ee(""),ae((0,n.A)({},_))},Ee=()=>{const e="unico"===ne.anioMode?!!ne.anioUnico:ne.anioDesde!==Y||ne.anioHasta!==T;oe({pais:!ne.paisId,equipo:!ne.equipoId&&!de,anios:!e,tipo:ne.soloOficiales,campeonato:!ne.campeonatoNombreId}),le(!0)},He=async e=>{try{var t,i;const[n,a]=await Promise.all([B.services.paises.getAll({limit:300}),B.services.ciudades.getAll({limit:500,PaisId:e.PaisId||void 0})]);ge([...(null===n||void 0===n||null===(t=n.data)||void 0===t?void 0:t.data)||[]].sort((e,t)=>e.PaisNombre.localeCompare(t.PaisNombre))),ve((null===a||void 0===a||null===(i=a.data)||void 0===i?void 0:i.data)||[]);const r=(await B.services.personas.getById(e.PersonaId)).data;Fe({PersonaNombre:r.PersonaNombre||"",PersonaApellido:r.PersonaApellido||"",PersonaNombreCompleto:r.PersonaNombreCompleto||"",PersonaApodo:r.PersonaApodo||"",PaisId:r.PaisId||null,CiudadId:r.CiudadId||null,PersonaFecNac:r.PersonaFecNac,PersonaFecDef:r.PersonaFecDef}),ze(e),ke(!0)}catch(n){h.Ay.error("Error al cargar datos del \xe1rbitro")}},Le=e=>{let{sectionKey:t,title:i,isActive:a,onClear:l,children:s}=e;return(0,H.jsxs)("div",{style:(0,n.A)({marginBottom:8,borderRadius:8,border:"1px solid ".concat(a?"#91caff":"#f0f0f0"),overflow:"hidden"},y?{paddingBottom:10}:{}),children:[(0,H.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,padding:y?"8px 12px":"10px 14px",minHeight:42,background:a?"#e6f4ff":"#fafafa",cursor:"pointer",userSelect:"none"},onClick:()=>{return e=t,oe(t=>(0,n.A)((0,n.A)({},t),{},{[e]:!t[e]}));var e},children:[se[t]?(0,H.jsx)(F.A,{style:{fontSize:11,color:"#8c8c8c"}}):(0,H.jsx)(k.A,{style:{fontSize:11,color:"#8c8c8c"}}),(0,H.jsx)("span",{style:{fontWeight:600,fontSize:y?15:13,color:"#262626"},children:i}),(0,H.jsx)("div",{style:{flex:1}}),a&&(0,H.jsx)(r.Ay,{size:"small",type:"text",icon:(0,H.jsx)(C.A,{}),style:{color:"#1677ff",fontSize:12,flexShrink:0},onClick:e=>{e.stopPropagation(),l()},children:"Limpiar"})]}),!se[t]&&(0,H.jsx)("div",{style:(0,n.A)({padding:y?"8px 12px":"12px 14px"},y?{}:{overflowX:"auto"}),children:s})]})},Re=(0,a.useMemo)(()=>Array.from({length:T-Y+1},(e,t)=>Y+t).map(e=>({value:e,label:String(e)})),[]),We=(0,a.useMemo)(()=>[...Re].reverse(),[Re]),Te=(0,a.useMemo)(()=>[{value:"extranjeros",label:"Extranjeros",flagUrl:null},...fe.map(e=>({value:String(e.PaisId),label:e.PaisNombre,flagUrl:e.PaisBanderaUrl}))],[fe]),Ye=(0,a.useMemo)(()=>[{value:"internacionales",label:"\ud83c\udf10 Internacionales"},...(je||[]).map(e=>({value:String(e.NombreCampeonatoId),label:e.NombreCampeonato}))],[je]),Je=[!!ne.paisId,"unico"===ne.anioMode?!!ne.anioUnico:ne.anioDesde!==Y||ne.anioHasta!==T,!!ne.equipoId||!!de,!ne.soloOficiales,!!ne.campeonatoNombreId].filter(Boolean).length,_e=Je>0||!!N,Ve=[];if("extranjeros"===ne.paisId)Ve.push("Extranjeros");else if(ne.paisId){const e=fe.find(e=>String(e.PaisId)===String(ne.paisId));e&&Ve.push(e.PaisNombre)}if("unico"===ne.anioMode&&ne.anioUnico?Ve.push("A\xf1o ".concat(ne.anioUnico)):ne.anioDesde===Y&&ne.anioHasta===T||Ve.push("".concat(ne.anioDesde," \u2013 ").concat(ne.anioHasta)),ne.equipoId){const e=ye.find(e=>String(e.EquipoId)===String(ne.equipoId));e&&Ve.push(e.EquipoNombre)}if(ne.soloOficiales||Ve.push("Con amistosos"),"internacionales"===ne.campeonatoNombreId)Ve.push("Internacionales");else if(ne.campeonatoNombreId){const e=je.find(e=>String(e.NombreCampeonatoId)===String(ne.campeonatoNombreId));e&&Ve.push(e.NombreCampeonato)}const Ke=Ve.join(" \xb7 "),Ge=(0,a.useMemo)(()=>de?ye.filter(e=>
1String(e.EquipoPaisId)===String(de)):ye,[ye,de]),Ze={items:[{key:"PJ",label:"PJ",style:{minHeight:42,display:"flex",alignItems:"center"}},{key:"nombre",label:"Nombre",style:{minHeight:42,display:"flex",alignItems:"center"}}],selectedKeys:[ne.orderBy],onClick:e=>{let{key:t}=e;return Be("orderBy",t)}},Qe=(0,H.jsx)("div",{style:{display:"flex",alignItems:"center",background:"#f5f5f5",borderRadius:8,padding:"6px 16px",fontSize:13},children:Q.map((e,t)=>{var i;return(0,H.jsxs)(a.Fragment,{children:[t>0&&(0,H.jsx)("div",{style:{width:1,height:28,background:"#e0e0e0",margin:"0 8px"}}),(0,H.jsx)(w.A,{title:e.label,children:(0,H.jsxs)("div",{style:{textAlign:"center",cursor:"default"},children:[(0,H.jsx)("div",{style:{fontSize:11,color:"#888",lineHeight:1.2},children:e.statLabel}),(0,H.jsx)("div",{style:{fontWeight:700,fontSize:16,color:"#262626",lineHeight:1.4},children:null!==(i=ue[e.key])&&void 0!==i?i:"\u2013"})]})})]},e.key)})}),Xe=[...Q.map(e=>0===ue[e.key]&&_e?null:{key:e.key,label:e.label,forceRender:!0,children:(0,H.jsx)(te,{tabKey:e.key,tipos:e.tipos,extraColumns:"1"===e.key?X:[],refreshKey:pe,onEdit:He,canEdit:i,sharedFilters:ne,sharedSearch:L,onCountChange:qe,isMobile:y})}).filter(Boolean),...i?[{key:"sin-partidos",label:"Sin Partidos",forceRender:!0,children:(0,H.jsx)(ie,{onEdit:He,onDelete:e=>{p.A.confirm({title:'\xbfEliminar \xe1rbitro "'.concat(Z(e),'"?'),content:"Esta acci\xf3n no se puede deshacer.",okText:"Eliminar",okType:"danger",cancelText:"Cancelar",onOk:async()=>{await B.services.jueces.delete(e.JuezId),h.Ay.success("\xc1rbitro eliminado"),me(e=>e+1)}})},refreshKey:pe,canEdit:i,sharedSearch:L,sharedFilters:ne,onCountChange:qe,isMobile:y})}]:[]];return(0,H.jsxs)("div",{children:[(0,H.jsx)("div",{style:{background:"#fffbe6",border:"1px solid #ffe58f",borderRadius:6,padding:"8px 12px",marginBottom:12,fontSize:13,color:"#614700"},children:"Algunos datos de los \xe1rbitros pueden no estar completamente actualizados, estamos en proceso de completarlos."}),y?(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)("h2",{style:{margin:0,textAlign:"center"},children:"\xc1rbitros"}),(0,H.jsx)(o.A,{style:{margin:"8px 0"}})]}):(0,H.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:4,flexWrap:"wrap",gap:8},children:[(0,H.jsx)("h2",{style:{margin:0},children:"\xc1rbitros"}),(0,H.jsx)("div",{style:{display:"flex",alignItems:"center",gap:12},children:Qe})]}),i&&!y&&(0,H.jsx)("div",{style:{display:"flex",justifyContent:"flex-end",gap:8,marginBottom:12},children:(0,H.jsx)(r.Ay,{type:"primary",icon:(0,H.jsx)(O.A,{}),onClick:()=>Se(!0),children:"Agregar \xc1rbitro"})}),!i&&(0,H.jsx)("div",{style:{marginBottom:12}}),y?(0,H.jsxs)("div",{style:{marginBottom:12},children:[(0,H.jsx)(u.A,{placeholder:"Buscar por nombre, apellido, pa\xeds...",prefix:(0,H.jsx)(M.A,{style:{color:"#8c8c8c"}}),value:N,onChange:e=>q(e.target.value),allowClear:!0,size:"large",style:{width:"100%",fontSize:16,marginBottom:8,height:42}}),(0,H.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},children:[(0,H.jsxs)(r.Ay,{size:"large",icon:(0,H.jsx)(D.A,{}),onClick:()=>Ee(),children:["Filtros",Je>0&&(0,H.jsx)(A.A,{color:"blue",style:{marginLeft:4},children:Je})]}),_e&&(0,H.jsx)(r.Ay,{size:"large",onClick:Ue,children:"Limpiar"}),(0,H.jsx)("div",{style:{marginLeft:"auto"},children:(0,H.jsx)(d.A,{menu:Ze,trigger:["click"],children:(0,H.jsx)(r.Ay,{size:"large",children:(0,H.jsxs)(v.A,{size:4,children:[J[ne.orderBy]||"PJ",(0,H.jsx)(k.A,{style:{fontSize:10}})]})})})})]})]}):(0,H.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:12,flexWrap:"nowrap"},children:[(0,H.jsx)(u.A,{placeholder:"Buscar por nombre, apellido, pa\xeds...",prefix:(0,H.jsx)(M.A,{style:{color:"#8c8c8c"}}),value:N,onChange:e=>q(e.target.value),allowClear:!0,style:{width:300,flexShrink:0,height:42}}),(0,H.jsxs)(r.Ay,{icon:(0,H.jsx)(D.A,{}),onClick:()=>Ee(),children:["Filtros",Je>0&&(0,H.jsx)(A.A,{color:"blue",style:{marginLeft:4},children:Je})]}),Ke?(0,H.jsx)("span",{style:{fontSize:12,color:"#666",fontStyle:"italic",flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:Ke}):(0,H.jsx)("div",{style:{flex:1}}),_e&&(0,H.jsx)(r.Ay,{icon:(0,H.jsx)(C.A,{}),onClick:Ue,style:{flexShrink:0},children:"Limpiar"}),(0,H.jsx)(d.A,{menu:Ze,trigger:["click"],children:(0,H.jsx)(r.Ay,{style:{flexShrink:0},children:(0,H.jsxs)(v.A,{size:4,children:[J[ne.orderBy]||"PJ",(0,H.jsx)(k.A,{style:{fontSize:10}})]})})})]}),(0,H.jsx)(j.A,{defaultActiveKey:"1",items:Xe}),(0,H.jsxs)(p.A,{title:(0,H.jsxs)("span",{children:[(0,H.jsx)(D.A,{style:{marginRight:8}}),"Filtros"]}),open:re,onCancel:()=>le(!1),closeIcon:y?Je>0?(0,H.jsx)(S.A,{style:{fontSize:18,color:"#1890ff"}}):(0,H.jsx)(I.A,{style:{fontSize:18}}):void 0,footer:y?[(0,H.jsx)(r.Ay,{type:"primary",style:{height:42,width:"100%",fontWeight:700,color:"#fff"},onClick:()=>le(!1),children:"Aplicar"},"apply")]:[(0,H.jsx)(r.Ay,{icon:(0,H.jsx)(C.A,{}),onClick:()=>{ae((0,n.A)({},_)),le(!1)},children:"Limpiar todo"},"clear"),(0,H.jsx)(r.Ay,{type:"primary",onClick:()=>le(!1),children:"Aplicar"}
1,"apply")],width:y?"100%":560,className:y?"mobile-filters-modal":"",style:y?{top:0,margin:0,maxWidth:"100%",paddingBottom:0}:{top:20},styles:{body:(0,n.A)({padding:y?0:"12px"},y?{}:{maxHeight:"75vh",overflowY:"auto"}),content:y?{borderRadius:0,padding:"12px",minHeight:"100dvh"}:{}},destroyOnClose:!1,children:[(0,H.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:8,marginBottom:12,padding:y?"16px 12px 0":0},children:(0,H.jsx)(r.Ay,{type:"primary",onClick:()=>{ae((0,n.A)({},_)),le(!1)},style:y?{width:"calc(50% - 4px)",fontWeight:700,color:"#fff"}:{},children:"Solo Oficiales"})}),(0,H.jsx)(Le,{sectionKey:"pais",title:"Pa\xeds",isActive:!!ne.paisId,onClear:()=>Be("paisId",null),children:(0,H.jsx)(x.A,{placeholder:"Todos los pa\xedses",style:{width:"100%"},allowClear:!0,showSearch:!0,value:ne.paisId,onChange:e=>Be("paisId",null!==e&&void 0!==e?e:null),options:Te,filterOption:(e,t)=>{var i;return(null!==(i=null===t||void 0===t?void 0:t.label)&&void 0!==i?i:"").toLowerCase().includes(e.toLowerCase())},optionRender:e=>(0,H.jsxs)(v.A,{size:"small",children:[e.data.flagUrl&&(0,H.jsx)("img",{src:e.data.flagUrl,alt:"",style:{width:20,height:14,objectFit:"cover",flexShrink:0}}),e.label]}),labelRender:e=>{let{value:t,label:i}=e;const n=fe.find(e=>String(e.PaisId)===String(t));return(0,H.jsxs)(v.A,{size:"small",children:[(null===n||void 0===n?void 0:n.PaisBanderaUrl)&&(0,H.jsx)("img",{src:n.PaisBanderaUrl,alt:"",style:{width:20,height:14,objectFit:"cover"}}),i]})}})}),(0,H.jsx)(Le,{sectionKey:"equipo",title:"Equipo",isActive:!!ne.equipoId||!!de,onClear:()=>{Be("equipoId",null),ce(null)},children:(0,H.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:10},children:y?(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)("div",{children:(0,H.jsx)(x.A,{placeholder:"Buscar equipo",value:ne.equipoId||void 0,onChange:e=>{ce(null),Be("equipoId",e||null)},style:{width:"100%"},options:Ge.map(e=>({value:String(e.EquipoId),label:e.EquipoNombre})),showSearch:!0,allowClear:!0,filterOption:(e,t)=>{var i;const n=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase();return n(null!==(i=null===t||void 0===t?void 0:t.label)&&void 0!==i?i:"").includes(n(e))},optionRender:e=>{var t;const i=null===(t=Ge.find(t=>String(t.EquipoId)===String(e.value)))||void 0===t?void 0:t.EquipoEscudoUrl;return(0,H.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[i?(0,H.jsx)("img",{src:i,alt:e.label,style:{width:20,height:20,objectFit:"contain"}}):(0,H.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"#e8e8e8",stroke:"#bbb",strokeWidth:"1.5",style:{flexShrink:0},children:(0,H.jsx)("path",{d:"M12 2L3 6v5c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V6l-9-4z"})}),(0,H.jsx)("span",{children:e.label})]})}})}),(0,H.jsxs)("div",{children:[(0,H.jsx)("div",{style:{marginTop:9,marginBottom:3,fontWeight:500,fontSize:12},children:"Pa\xeds"}),(0,H.jsx)(x.A,{placeholder:"Pa\xeds",value:de||void 0,onChange:e=>{Be("equipoId",null),ce(e||null)},style:{width:"100%"},options:[{value:"extranjeros",label:"Extranjeros"},...fe.map(e=>({value:String(e.PaisId),label:e.PaisNombre}))],showSearch:!0,allowClear:!0,filterOption:(e,t)=>{var i;return(null!==(i=null===t||void 0===t?void 0:t.label)&&void 0!==i?i:"").toLowerCase().includes(e.toLowerCase())},optionRender:e=>{const t=fe.find(t=>String(t.PaisId)===String(e.value));return(0,H.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[null!==t&&void 0!==t&&t.PaisBanderaUrl?(0,H.jsx)("img",{src:t.PaisBanderaUrl,alt:t.PaisNombre,style:{width:20,height:15,objectFit:"contain",flexShrink:0}}):(0,H.jsx)("div",{style:{width:20,height:15,flexShrink:0}}),(0,H.jsx)("span",{children:e.label})]})}})]})]}):(0,H.jsxs)(g.A,{gutter:[8,8],align:"bottom",style:{flexWrap:"wrap"},children:[(0,H.jsxs)(s.A,{children:[(0,H.jsxs)("div",{style:{marginTop:9,marginBottom:3,fontWeight:500,fontSize:12},children:[(0,H.jsx)(z.A,{style:{marginRight:4}}),"Equipo"]}),(0,H.jsx)(x.A,{placeholder:"Buscar equipo",value:ne.equipoId||void 0,onChange:e=>{ce(null),Be("equipoId",e||null)},style:{width:220},options:Ge.map(e=>({value:String(e.EquipoId),label:e.EquipoNombre})),showSearch:!0,allowClear:!0,filterOption:(e,t)=>{var i;const n=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase();return n(null!==(i=null===t||void 0===t?void 0:t.label)&&void 0!==i?i:"").includes(n(e))},optionRender:e=>{var t;const i=null===(t=Ge.find(t=>String(t.EquipoId)===String(e.value)))||void 0===t?void 0:t.EquipoEscudoUrl;return(0,H.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[i?(0,H.jsx)("img",{src:i,alt:e.label,style:{width:20,height:20,objectFit:"contain"}}):(0,H.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"#e8e8e8",stroke:"#bbb",strokeWidth:"1.5",style:{flexShrink:0},children:(0,H.jsx)("path",{d:"M12 2L3 6v5c0 5.55 3.84 10.74 9 12 5.
116-1.26 9-6.45 9-12V6l-9-4z"})}),(0,H.jsx)("span",{children:e.label})]})}})]}),(0,H.jsxs)(s.A,{children:[(0,H.jsx)("div",{style:{marginTop:9,marginBottom:3,fontWeight:500,fontSize:12},children:"Pa\xeds equipo"}),(0,H.jsx)(x.A,{placeholder:"Pa\xeds",value:de||void 0,onChange:e=>{Be("equipoId",null),ce(e||null)},style:{width:160},options:[{value:"extranjeros",label:"Extranjeros"},...fe.map(e=>({value:String(e.PaisId),label:e.PaisNombre}))],showSearch:!0,allowClear:!0,filterOption:(e,t)=>{var i;return(null!==(i=null===t||void 0===t?void 0:t.label)&&void 0!==i?i:"").toLowerCase().includes(e.toLowerCase())},optionRender:e=>{const t=fe.find(t=>String(t.PaisId)===String(e.value));return(0,H.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[null!==t&&void 0!==t&&t.PaisBanderaUrl?(0,H.jsx)("img",{src:t.PaisBanderaUrl,alt:t.PaisNombre,style:{width:20,height:15,objectFit:"contain",flexShrink:0}}):(0,H.jsx)("div",{style:{width:20,height:15,flexShrink:0}}),(0,H.jsx)("span",{children:e.label})]})}})]})]})})}),(0,H.jsx)(Le,{sectionKey:"anios",title:"Fecha",isActive:"unico"===ne.anioMode?!!ne.anioUnico:ne.anioDesde!==Y||ne.anioHasta!==T,onClear:()=>ae(e=>(0,n.A)((0,n.A)({},e),{},{anioMode:"rango",anioDesde:Y,anioHasta:T,anioUnico:null})),children:(0,H.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:12},children:[(0,H.jsx)(f.Ay.Group,{value:ne.anioMode,onChange:e=>ae(t=>(0,n.A)((0,n.A)({},t),{},{anioMode:e.target.value})),style:{display:"flex",flexDirection:"column"},children:[{value:"unico",label:"A\xf1o"},{value:"rango",label:"Rango de a\xf1os"}].map(e=>(0,H.jsx)(f.Ay,{value:e.value,style:{minHeight:y?42:40,display:"flex",alignItems:"center"},children:e.label},e.value))}),"unico"===ne.anioMode&&(0,H.jsxs)("div",{style:{marginTop:9,marginBottom:10},children:[(0,H.jsx)("div",{style:{marginBottom:3,fontWeight:500,fontSize:12},children:"A\xf1o"}),(0,H.jsx)(x.A,{placeholder:"A\xf1o",value:ne.anioUnico||void 0,onChange:e=>Be("anioUnico",null!==e&&void 0!==e?e:null),style:{width:"50%"},options:We,showSearch:!0,allowClear:!0})]}),"rango"===ne.anioMode&&(0,H.jsxs)("div",{style:{display:"flex",gap:8,marginTop:9,marginBottom:10},children:[(0,H.jsxs)("div",{style:{width:"50%"},children:[(0,H.jsx)("div",{style:{marginBottom:3,fontWeight:500,fontSize:12},children:"A\xf1o Desde"}),(0,H.jsx)(x.A,{placeholder:"A\xf1o desde",value:ne.anioDesde,onChange:e=>Be("anioDesde",null!==e&&void 0!==e?e:Y),style:{width:"100%"},options:Re,showSearch:!0,allowClear:!0})]}),(0,H.jsxs)("div",{style:{width:"50%"},children:[(0,H.jsx)("div",{style:{marginBottom:3,fontWeight:500,fontSize:12},children:"A\xf1o Hasta"}),(0,H.jsx)(x.A,{placeholder:"A\xf1o hasta",value:ne.anioHasta,onChange:e=>Be("anioHasta",null!==e&&void 0!==e?e:T),style:{width:"100%"},options:We,showSearch:!0,allowClear:!0})]})]})]})}),(0,H.jsx)(Le,{sectionKey:"tipo",title:"Tipo de Partido",isActive:!ne.soloOficiales,onClear:()=>Be("soloOficiales",!0),children:(0,H.jsx)(l.A.Group,{value:ne.soloOficiales?["O"]:["O","A"],onChange:e=>Be("soloOficiales",!e.includes("A")),children:(0,H.jsxs)(v.A,{direction:"vertical",size:4,children:[(0,H.jsx)(l.A,{value:"O",children:"Oficiales"}),(0,H.jsx)(l.A,{value:"A",children:"Amistosos"})]})})}),(0,H.jsx)(Le,{sectionKey:"campeonato",title:"Campeonato",isActive:!!ne.campeonatoNombreId,onClear:()=>Be("campeonatoNombreId",null),children:(0,H.jsx)(x.A,{placeholder:"Todos los campeonatos",style:{width:"100%"},allowClear:!0,showSearch:!0,value:ne.campeonatoNombreId,onChange:e=>Be("campeonatoNombreId",null!==e&&void 0!==e?e:null),options:Ye,filterOption:(e,t)=>{var i;return(null!==(i=null===t||void 0===t?void 0:t.label)&&void 0!==i?i:"").toLowerCase().includes(e.toLowerCase())}})})]}),(0,H.jsx)(U.A,{visible:we,onCancel:()=>Se(!1),onSubmit:async e=>{Ie(!0);try{const t=(await B.services.personas.create(e)).data;await B.services.jueces.create({PersonaId:t.PersonaId}),h.Ay.success("\xc1rbitro creado"),Se(!1),me(e=>e+1)}catch(n){var t,i;h.Ay.error((null===n||void 0===n||null===(t=n.response)||void 0===t||null===(i=t.data)||void 0===i?void 0:i.error)||"Error al crear")}finally{Ie(!1)}},initialValues:null,paises:fe,ciudades:xe,setCiudades:ve,saving:Ce,title:"Agregar \xc1rbitro"}),(0,H.jsx)(U.A,{visible:Pe,onCancel:()=>{ke(!1),Fe(null),ze(null)},onSubmit:async e=>{De(!0);try{await B.services.personas.update(Me.PersonaId,e),h.Ay.success("\xc1rbitro actualizado"),ke(!1),Fe(null),ze(null),me(e=>e+1)}catch(n){var t,i;h.Ay.error((null===n||void 0===n||null===(t=n.response)||void 0===t||null===(i=t.data)||void 0===i?void 0:i.error)||"Error al guardar")}finally{De(!1)}},initialValues:Oe,paises:fe,ciudades:xe,setCiudades:ve,saving:Ne,title:"Editar \xc1rbitro"})]})}},3310(e,t,i){"use strict";i.d(t,{A:()=>
vendor: 6,249 bytes, line 1
1o});var n=i(8168),a=i(5043);const r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"}}]},name:"clear",theme:"outlined"};var l=i(2172),s=function(e,t){return a.createElement(l.A,(0,n.A)({},e,{ref:t,icon:r}))};const o=a.forwardRef(s)},1966(e,t,i){"use strict";i.d(t,{A:()=>o});var n=i(8168),a=i(5043);const r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};var l=i(2172),s=function(e,t){return a.createElement(l.A,(0,n.A)({},e,{ref:t,icon:r}))};const o=a.forwardRef(s)},8463(e,t,i){"use strict";i.d(t,{A:()=>o});var n=i(8168),a=i(5043);const r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z"}}]},name:"filter",theme:"outlined"};var l=i(2172),s=function(e,t){return a.createElement(l.A,(0,n.A)({},e,{ref:t,icon:r}))};const o=a.forwardRef(s)},446(e){e.exports=function(){"use strict";var e=1e3,t=6e4,i=36e5,n="millisecond",a="second",r="minute",l="hour",s="day",o="week",d="month",c="quarter",u="year",h="date",p="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],i=e%100;return"["+e+(t[(i-20)%10]||t[i]||t[0])+"]"}},x=function(e,t,i){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(i)+e},v={s:x,z:function(e){var t=-e.utcOffset(),i=Math.abs(t),n=Math.floor(i/60),a=i%60;return(t<=0?"+":"-")+x(n,2,"0")+":"+x(a,2,"0")},m:function e(t,i){if(t.date()<i.date())return-e(i,t);var n=12*(i.year()-t.year())+(i.month()-t.month()),a=t.clone().add(n,d),r=i-a<0,l=t.clone().add(n+(r?-1:1),d);return+(-(n+(i-a)/(r?a-l:l-a))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:d,y:u,w:o,d:s,D:h,h:l,m:r,s:a,ms:n,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",b={};b[y]=g;var j="$isDayjsObject",A=function(e){return e instanceof I||!(!e||!e[j])},w=function e(t,i,n){var a;if(!t)return y;if("string"==typeof t){var r=t.toLowerCase();b[r]&&(a=r),i&&(b[r]=i,a=r);var l=t.split("-");if(!a&&l.length>1)return e(l[0])}else{var s=t.name;b[s]=t,a=s}return!n&&a&&(y=a),a||!n&&y},S=function(e,t){if(A(e))return e.clone();var i="object"==typeof t?t:{};return i.date=e,i.args=arguments,new I(i)},C=v;C.l=w,C.i=A,C.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var I=function(){function g(e){this.$L=w(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[j]=!0}var x=g.prototype;return x.parse=function(e){this.$d=function(e){var t=e.date,i=e.utc;if(null===t)return new Date(NaN);if(C.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(m);if(n){var a=n[2]-1||0,r=(n[7]||"0").substring(0,3);return i?new Date(Date.UTC(n[1],a,n[3]||1,n[4]||0,n[5]||0,n[6]||0,r)):new Date(n[1],a,n[3]||1,n[4]||0,n[5]||0,n[6]||0,r)}}return new Date(t)}(e),this.init()},x.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},x.$utils=function(){return C},x.isValid=function(){return!(this.$d.toString()===p)},x.isSame=function(e,t){var i=S(e);return this.startOf(t)<=i&&i<=this.endOf(t)},x.isAfter=function(e,t){return S(e)<this.startOf(t)},x.isBefore=function(e,t){return this.endOf(t)<S(e)},x.$g=function(e,t,i){return C.u(e)?this[t]:this.set(i,e)},x.unix=function(){return Math.floor(this.valueOf()/1e3)},x.valueOf=function(){return this.$d.getTime()},x.startOf=function(e,t){var i=this,n=!!C.u(t)||t,c=C.p(e),p=function(e,t){var a=C.w(i.$u?Date.UTC(i.$y,t,e):new Date(i.$y,t,e),i);return n?a:a.endOf(s)},m=function(e,t){return C.w(i.toDate()[e].apply(i.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(t)),i)},f=this.$W,g=this.$M,x=this.$D,v="set"+(this.$u?"UTC":"");switch(c){case u:return n?p(1,0):p(31,11);case d:return n?p(1,g):p(0,g+1);case o:var y=this.$locale().weekStart||0,b=(f<y?f+7:f)-y;return p(n?x-b:x+(6-b),g);case s:case h:return m(v+"Hours",0);case l:return m(v+"Minutes",1);case r:return m(v+"Seconds",2);case a:return m(v+"Milliseconds",3);default:return this.clone()}},x.endOf=function(e){return this.startOf(e,!1)},x.$set=function(e,t){var i,o=C.p(e),c="set"+(this.$u?"UTC":""),p=(i={},i[s]=c+"Date",i[h]=c+"Date",i[d]=c+"Month",i[u]=c+"FullYear",i[l]=c+"Hours",i[r]=c+"Minutes",i[a]=c+"Seconds",i[n]=c+"Milliseconds",i)[o],m=o===s?this.$D+(t-this.$W):t;if(o===d||o===u){var f=this.clone().set(h,1);f.$d[p](m),f.init(),this.$d=f.set(h,Math.min(this.$D,f.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},x.set=function(e,t){return this.clone().$set(e,t)},x.get=function(e){return this[C.p(e)]()},x.add=function(n,c){var h,p=this;
vendor: 2,788 bytes, lines 1-2
1n=Number(n);var m=C.p(c),f=function(e){var t=S(p);return C.w(t.date(t.date()+Math.round(e*n)),p)};if(m===d)return this.set(d,this.$M+n);if(m===u)return this.set(u,this.$y+n);if(m===s)return f(1);if(m===o)return f(7);var g=(h={},h[r]=t,h[l]=i,h[a]=e,h)[m]||1,x=this.$d.getTime()+n*g;return C.w(x,this)},x.subtract=function(e,t){return this.add(-1*e,t)},x.format=function(e){var t=this,i=this.$locale();if(!this.isValid())return i.invalidDate||p;var n=e||"YYYY-MM-DDTHH:mm:ssZ",a=C.z(this),r=this.$H,l=this.$m,s=this.$M,o=i.weekdays,d=i.months,c=i.meridiem,u=function(e,i,a,r){return e&&(e[i]||e(t,n))||a[i].slice(0,r)},h=function(e){return C.s(r%12||12,e,"0")},m=c||function(e,t,i){var n=e<12?"AM":"PM";return i?n.toLowerCase():n};return n.replace(f,function(e,n){return n||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return C.s(t.$y,4,"0");case"M":return s+1;case"MM":return C.s(s+1,2,"0");case"MMM":return u(i.monthsShort,s,d,3);case"MMMM":return u(d,s);case"D":return t.$D;case"DD":return C.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return u(i.weekdaysMin,t.$W,o,2);case"ddd":return u(i.weekdaysShort,t.$W,o,3);case"dddd":return o[t.$W];case"H":return String(r);case"HH":return C.s(r,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return m(r,l,!0);case"A":return m(r,l,!1);case"m":return String(l);case"mm":return C.s(l,2,"0");case"s":return String(t.$s);case"ss":return C.s(t.$s,2,"0");case"SSS":return C.s(t.$ms,3,"0");case"Z":return a}return null}(e)||a.replace(":","")})},x.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},x.diff=function(n,h,p){var m,f=this,g=C.p(h),x=S(n),v=(x.utcOffset()-this.utcOffset())*t,y=this-x,b=function(){return C.m(f,x)};switch(g){case u:m=b()/12;break;case d:m=b();break;case c:m=b()/3;break;case o:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case l:m=y/i;break;case r:m=y/t;break;case a:m=y/e;break;default:m=y}return p?m:C.a(m)},x.daysInMonth=function(){return this.endOf(d).$D},x.$locale=function(){return b[this.$L]},x.locale=function(e,t){if(!e)return this.$L;var i=this.clone(),n=w(e,t,!0);return n&&(i.$L=n),i},x.clone=function(){return C.w(this.$d,this)},x.toDate=function(){return new Date(this.valueOf())},x.toJSON=function(){return this.isValid()?this.toISOString():null},x.toISOString=function(){return this.$d.toISOString()},x.toString=function(){return this.$d.toUTCString()},g}(),P=I.prototype;return S.prototype=P,[["$ms",n],["$s",a],["$m",r],["$H",l],["$W",s],["$M",d],["$y",u],["$D",h]].forEach(function(e){P[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),S.extend=function(e,t){return e.$i||(e(t,I,S),e.$i=!0),S},S.locale=w,S.isDayjs=A,S.unix=function(e){return S(1e3*e)},S.en=b[y],S.Ls=b,S.p={},S}()}}]); 2//# sourceMappingURL=6799.350131ce.chunk.js.map
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.