PageSourceSearch

https://1lockers.net/build/assets/Create-DRogGHj5.js

js 1lockers.net collected 2026-10-07 23:31:08 UTC 2,832 bytes, 1 lines download raw bytes

1import{c as m,E as g,l as i,o as k,m as l,al as y,k as a,u as r,S as n}from"./vendor-PuzY5vPv.js";import{_ as v}from"./AdminLayout-BZelW-Nx.js";import{_ as x}from"./Card-DVymtM53.js";import{_ as p}from"./Button-D76V-weq.js";import{_ as u}from"./FormInput-KuwMhj5H.js";import{_}from"./FormSelect-D5dnynK_.js";import{_ as $}from"./FormTextarea-Dy0iC2v9.js";import{_ as S}from"./FormSection-DUhBgt7x.js";import{a as U}from"./framework-Bi08LwVk.js";import"./realtime-B2Plrf_G.js";import"./useNavigation-DZVY3vgz.js";const w={class:"max-w-3xl mx-auto"},C={class:"flex justify-end space-x-3 mt-6"},F={__name:"Create",props:{companies:Array,tickets:Array},setup(c){const d=c,f=m(()=>(d.companies||[]).map(s=>({value:s.id,label:s.name}))),b=m(()=>[{value:"",label:"Sin ticket asociado"},...(d.tickets||[]).map(s=>({value:s.id,label:`#${s.id} - ${s.subject}`}))]),o=U({company_id:"",support_ticket_id:"",hours_used:"",date:new Date().toISOString().split("T")[0],description:""}),V=()=>{o.post("/admin/programming-hour-logs")};return(s,e)=>(k(),g(v,{title:"Nuevo Registro de Horas"},{default:i(()=>[l("div",w,[e[8]||(e[8]=l("h1",{class:"text-2xl font-bold text-gray-900 mb-6"},"Nuevo Registro de Horas",-1)),l("form",{onSubmit:y(V,["prevent"])},[a(x,null,{default:i(()=>[a(S,{title:"Registro de Horas de Programación"},{default:i(()=>[a(_,{modelValue:r(o).company_id,"onUpdate:modelValue":e[0]||(e[0]=t=>r(o).company_id=t),label:"Empresa",options:f.value,placeholder:"Seleccionar empresa",error:r(o).errors.company_id,required:""},null,8,["modelValue","options","error"]),a(_,{modelValue:r(o).support_ticket_id,"onUpdate:modelValue":e[1]||(e[1]=t=>r(o).support_ticket_id=t),label:"Ticket de Soporte (opcional)",options:b.value,placeholder:"Sin ticket asociado",error:r(o).errors.support_ticket_id},null,8,["modelValue","options","error"]),a(u,{modelValue:r(o).date,"onUpdate:modelValue":e[2]||(e[2]=t=>r(o).date=t),label:"Fecha",type:"date",error:r(o).errors.date,required:""},null,8,["modelValue","error"]),a(u,{modelValue:r(o).hours_used,"onUpdate:modelValue":e[3]||(e[3]=t=>r(o).hours_used=t),label:"Horas Usadas",type:"number",step:"0.25",min:"0.01",max:"24",error:r(o).errors.hours_used,required:""},null,8,["modelValue","error"]),a($,{modelValue:r(o).description,"onUpdate:modelValue":e[4]||(e[4]=t=>r(o).description=t),label:"Descripción",error:r(o).errors.description,required:"",rows:"4",placeholder:"Describe el trabajo realizado..."},null,8,["modelValue","error"])]),_:1}),l("div",C,[a(p,{type:"button",variant:"secondary",onClick:e[5]||(e[5]=t=>s.$inertia.visit("/admin/programming-hour-logs"))},{default:i(()=>[...e[6]||(e[6]=[n("Cancelar",-1)])]),_:1}),a(p,{type:"submit",loading:r(o).processing},{default:i(()=>[...e[7]||(e[7]=[n("Crear Registro",-1)])]),_:1},8,["loading"])])]),_:1})],32)])]),_:1}))}};export{F 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.