PageSourceSearch

https://tenischile.com/_next/static/chunks/pages/admin/inscripciones/editar/[pid]-b9e0a56dc064fd1c.js

js tenischile.com collected 2026-10-02 21:34:03 UTC 7,180 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[237],{4457:(e,a,s)=>{"use strict";s.d(a,{A:()=>x});var t=s(37876),l=s(14232),r=s(48230),n=s.n(r),i=s(89099),o=s(82198);let c=[{label:"General",items:[{label:"Dashboard",href:"/admin",icon:"fas fa-chart-pie"}]},{label:"Operaci\xf3n",items:[{label:"Reservas",href:"/admin/arriendos",icon:"far fa-calendar-check"},{label:"Torneos",href:"/admin/torneos",icon:"fas fa-trophy"},{label:"Inscripciones",href:"/admin/inscripciones",icon:"fas fa-clipboard-list"},{label:"Compras",href:"/admin/compras",icon:"fas fa-shopping-bag"},{label:"Configuraci\xf3n Env\xedo",href:"/admin/envios",icon:"fas fa-truck"}]},{label:"Gesti\xf3n",items:[{label:"Clubes",href:"/admin/clubes",icon:"fas fa-building"},{label:"Jugadores",href:"/admin/jugadores",icon:"fas fa-users"},{label:"\xc1rbitros",href:"/admin/arbitros",icon:"fas fa-flag"},{label:"Editores",href:"/admin/editores",icon:"fas fa-user-pen"}]},{label:"Competici\xf3n",items:[{label:"Rankings",href:"/admin/rankings",icon:"fas fa-list-ol"},{label:"Ranking ATP",href:"/admin/ranking_atp",icon:"fas fa-ranking-star"},{label:"Ranking Menores",href:"/admin/ranking_menores",icon:"fas fa-medal"}]},{label:"Contenido",items:[{label:"Banner",href:"/admin/banner",icon:"far fa-images"},{label:"P\xe1ginas",href:"/admin/pages",icon:"far fa-file-lines"}]},{label:"Cat\xe1logo",items:[{label:"Productos",href:"/admin/productos",icon:"fas fa-box"},{label:"Categor\xedas Productos",href:"/admin/categories",icon:"fas fa-tags"}]}];function d(){let e=(0,i.useRouter)(),{user:a}=(0,o.A)(),s=(null==a?void 0:a.role_id)===1?c:c.slice(0,1);return(0,t.jsxs)("aside",{className:"sticky top-0 hidden h-screen w-64 shrink-0 overflow-y-auto border-r border-slate-200 bg-white p-5 md:block",children:[(0,t.jsx)(n(),{href:"/admin",className:"mb-8 block px-2",children:(0,t.jsx)("img",{src:"/img/logo.png",className:"h-auto w-40",alt:"TenisChile"})}),(0,t.jsx)("nav",{className:"space-y-6",children:s.map(a=>(0,t.jsxs)("section",{children:[(0,t.jsx)("p",{className:"mb-2 px-2 text-[10px] font-black uppercase tracking-[0.16em] text-slate-400",children:a.label}),(0,t.jsx)("ul",{className:"space-y-1",children:a.items.map(a=>{let s="/admin"===a.href?e.pathname===a.href:e.pathname.startsWith(a.href);return(0,t.jsx)("li",{children:(0,t.jsxs)(n(),{href:a.href,className:"flex items-center gap-3 rounded-lg px-3 py-2 text-sm font-semibold transition-colors ".concat(s?"bg-[#eef4e9] text-[#112a1d]":"text-slate-600 hover:bg-slate-50 hover:text-[#112a1d]"),children:[(0,t.jsx)("i",{className:"".concat(a.icon," w-4 text-[#6F9556]")}),a.label]})},a.href)})})]},a.label))})]})}function m(){return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("footer",{className:"block py-4",children:(0,t.jsxs)("div",{className:"container mx-auto px-4",children:[(0,t.jsx)("hr",{className:"mb-4 border-b-1 border-blueGray-200"}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center md:justify-between justify-center",children:[(0,t.jsx)("div",{className:"w-full md:w-4/12 px-4",children:(0,t.jsxs)("div",{className:"text-sm text-blueGray-500 font-semibold py-1 text-center md:text-left",children:["Copyright \xa9 ",new Date().getFullYear()," ",(0,t.jsx)("a",{href:"https://reveschile.com",className:"text-blueGray-500 hover:text-blueGray-700 text-sm font-semibold py-1",children:"Tennis Chile"})]})}),(0,t.jsx)("div",{className:"w-full md:w-8/12 px-4",children:(0,t.jsx)("ul",{className:"flex flex-wrap list-none md:justify-end  justify-center",children:(0,t.jsx)("li",{})})})]})]})})})}var f=s(3576),p=s(62701),h=s(84577),u=s(5068);let b=()=>{let{user:e,mutateUser:a}=(0,o.A)({redirectTo:"/auth/login"}),s=(0,i.useRouter)(),[r,n]=(0,l.useState)(null),[c,d]=(0,l.useState)(!1),[m,b]=(0,l.useState)(null),[x,g]=(0,l.useState)(null),{styles:j,attributes:w}=(0,h.E)(r,m,{placement:"bottom-start",modifiers:[{name:"arrow",options:{element:x}},{name:"preventOverflow",options:{padding:0}}]}),y=async()=>{await u.A.post("/api/logout",{withCredentials:!0}),s.push("/")},v=async e=>{a((await u.A.post("/api/change-active",{id:e},{withCredentials:!0})).data),window.location.reload()};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{type:"button",className:"text-blueGray-500 block bg-transparent border-none p-0 cursor-pointer",ref:n,onClick:e=>{e.preventDefault(),d(!c)},children:(0,t.jsx)("div",{className:"items-center flex",children:(0,t.jsx)("span",{className:"w-12 h-12 text-sm font-bold text-white text-black bg-gray-500 flex items-center justify-center rounded-full",children:(0,t.jsx)("h1",{className:"text-white",children:"User"})})})}),c?(0,t.jsxs)("div",(0,p._)((0,f._)({ref:b,style:j.popper},w.popper),{className:" bg-white text-base z-50 float-left py-2 list-none text-left rounded shadow-lg min-w-48",children:[(0,t.jsx)("div",{ref:g,style:j.arrow}),(0,t.jsx)("b",{className:"text-sm py-2 px-4 font-bold block w-full whitespace-nowrap bg-transparent text-blueGray-700",children:"Empresas"}),e.empresas?(0,t.jsx)(t.Fragment,{children:e.empresas.map(a=>(0,t.jsxs)("button",{type:"button",onClick:()=>v(a.empresa_id),className:"text-sm py-2 px-4  block w-full whitespace-nowrap bg-transparent text-blueGray-700 border-none cursor-pointer text-left",children:[a.empresa_id==e.active_empresa?"*":""," ",a.Empresa.name]},a.id))}):"",(0,t.jsx)("div",{className:"h-0 my-2 border border-solid border-blueGray-100"}),(0,t.jsx)("button",{type:"button",className:"text-sm py-2 px-4 font-normal block w-full whitespace-nowrap bg-transparent text-blueGray-700 border-none cursor-pointer text-left",onClick:e=>{e.preventDefault(),y()},children:"Salir"})]})):""]})};function x(e){let{children:a}=e;return(0,t.jsxs)("div",{className:"flex flex-row",children:[(0,t.jsx)(d,{}),(0,t.jsxs)("div",{className:"relative min-h-screen w-full bg-slate-50 flex flex-col",children:[(0,t.jsx)("header",{className:"flex h-16 items-center justify-end border-b border-slate-200 bg-white px-4 md:px-10",children:(0,t.jsx)("ul",{className:"list-none",children:(0,t.jsx)(b,{})})}),(0,t.jsxs)("div",{className:"admin-enter w-full px-4 pt-8 md:px-10",children:[a,(0,t.jsx)(m,{})]})]})]})}},19476:(e,a,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/inscripciones/editar/[pid]",function(){return s(82180)}])},82180:(e,a,s)=>{"use strict";s.r(a),s.d(a,{__N_SSP:()=>f,default:()=>p});var t=s(3576),l=s(37876),r=s(14232),n=s(80475),i=s(4457),o=s(89099),
1c=s(82198),d=s(5068);let m=[{type:"text",label:"Nombre",id:"name"},{type:"select",label:"Estado",id:"status",opt:[{value:1,label:"Activo"},{value:2,label:"Inactivo"}]}];var f=!0;function p(e){let{club_temp:a}=e,{user:s}=(0,c.A)({redirectTo:"/auth/login"}),[i,f]=(0,r.useState)(a),[p,h]=(0,r.useState)(a),u=(0,o.useRouter)(),[b,x]=(0,r.useState)(!1),g=async()=>{x(!0),await d.A.post("/api/pago/update/"+i.id,p),u.push("/admin/clubes/")};return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:"flex flex-wrap",children:(0,l.jsx)("div",{className:"w-full px-4",children:(0,l.jsx)(n.A,{loading:b,title:"Clubes",form:p,fields:m,setForm:e=>{let a=(0,t._)({},p);a[e.target.name]=e.target.value,h(a)},saveForm:g})})})})}p.layout=i.A}},e=>{e.O(0,[8096,5384,636,8792],()=>e(e.s=19476)),_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.