PageSourceSearch

https://repuestos-d6c3d.firebaseapp.com/_nuxt/DkmfVfWn.js

js repuestos-d6c3d.firebaseapp.com collected 2026-10-03 08:14:18 UTC 20,643 bytes, 1 lines download raw bytes

1import{_ as A}from"./BsqTxom4.js";import{u as Z,s as ee,r as y,l as te,q as oe,c as d,b as t,e as M,f as g,v,m as r,y as j,z as S,d as B,F as I,x as L,w as se,t as c,j as T,o as u,p as re,n as ae}from"#entry";import{u as ne}from"./DHwOP2XV.js";const le={class:"mb-8"},ie={class:"flex justify-between items-center"},de={class:"bg-white rounded-xl shadow-lg p-6 mb-8"},ue={class:"grid grid-cols-1 md:grid-cols-5 gap-4"},ce=["value"],pe={class:"bg-white rounded-xl shadow-lg overflow-hidden"},me={class:"overflow-x-auto"},ge={class:"w-full"},xe={class:"divide-y divide-gray-200"},ye={class:"py-4 px-6"},ve={class:"font-medium text-gray-900"},fe={class:"text-xs text-gray-500"},be={class:"py-4 px-6"},he={class:"font-medium text-gray-900"},we={class:"text-sm text-gray-500"},ke={class:"py-4 px-6"},_e={class:"text-sm text-gray-900 truncate max-w-xs"},Ce={key:0,class:"text-xs text-gray-500 mt-1"},Ee={class:"py-4 px-6"},Pe={class:"py-4 px-6 text-sm text-gray-500"},De={class:"py-4 px-6"},Ne={key:0,class:"text-sm font-medium text-gray-900"},Ve={key:1,class:"text-sm text-gray-400"},Me={class:"py-4 px-6"},je={class:"flex items-center space-x-2"},Be=["onClick"],Ae=["onClick"],Se=["onClick"],Ie={key:0,class:"text-center py-12"},Le={key:0,class:"fixed inset-0 bg-black bg-opacity-60 flex items-center justify-center z-50 p-4 backdrop-blur-sm"},Te={class:"bg-white rounded-2xl max-w-4xl w-full max-h-[95vh] overflow-hidden shadow-2xl"},ze={class:"bg-gradient-to-r from-green-600 to-green-700 px-8 py-6"},Ue={class:"flex items-center justify-between"},$e={class:"p-8 space-y-8 max-h-[70vh] overflow-y-auto"},qe={class:"space-y-3"},He=["disabled"],Fe={value:""},Re=["value"],Oe={key:0,class:"text-sm text-gray-500 mt-2"},Ge={class:"space-y-3"},Je={class:"grid grid-cols-1 md:grid-cols-3 gap-6"},Qe={class:"space-y-3"},Xe={class:"space-y-3"},Ke={class:"space-y-3"},We={class:"grid grid-cols-1 md:grid-cols-2 gap-6"},Ye={class:"space-y-3"},Ze={class:"space-y-3"},et={class:"space-y-3"},tt={class:"bg-gray-50 px-8 py-6 border-t border-gray-200"},ot={class:"flex justify-between items-center"},st={class:"flex space-x-4"},rt=["disabled"],at={key:0,class:"w-5 h-5 animate-spin",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},nt={key:1,class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},lt={key:2},it={key:3},mt={__name:"pedidos",setup(dt){Z({title:"Gestión de Pedidos - AutoVentas360",meta:[{name:"robots",content:"noindex, nofollow"}]});const f=ee(),N=y([]),m=y([]),_=y(!1),V=y(!1),C=y(""),E=y(""),P=y(""),D=y(""),n=y({userId:"",descripcion:"",marca:"",modelo:"",ano:"",vin:"",telefono:"",precio:null}),H=[{key:"solicitud_enviada",titulo:"Solicitud Enviada"},{key:"producto_encontrado",titulo:"Producto Encontrado"},{key:"pendiente_pago",titulo:"Pendiente de Pago"},{key:"producto_viajando",titulo:"Producto Viajando"},{key:"llegada_chile",titulo:"Llegada a Chile"},{key:"despachando",titulo:"Despachando"},{key:"entregado",titulo:"Entregado"}],z=te(()=>{let s=N.value;if(C.value){const e=C.value.toLowerCase();s=s.filter(o=>o.numero.toLowerCase().includes(e)||o.descripcion.toLowerCase().includes(e)||o.userName?.toLowerCase().includes(e)||o.userEmail.toLowerCase().includes(e))}if(E.value&&(s=s.filter(e=>e.estado===E.value)),P.value&&(s=s.filter(e=>e.userId===P.value)),D.value){const e=new Date(D.value);s=s.filter(o=>new Date(o.createdAt).toDateString()===e.toDateString())}return s.sort((e,o)=>new Date(o.createdAt)-new Date(e.createdAt))}),F=s=>s?new Intl.DateTimeFormat("es-CL",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}).format(new Date(s)):"No disponible",R=s=>({solicitud_enviada:"bg-yellow-100 text-yellow-800",producto_encontrado:"bg-blue-100 text-blue-800",pendiente_pago:"bg-orange-100 text-orange-800",producto_viajando:"bg-purple-100 text-purple-800",llegada_chile:"bg-indigo-100 text-indigo-800",despachando:"bg-pink-100 text-pink-800",entregado:"bg-green-100 text-green-800"})[s]||"bg-gray-100 text-gray-800",U=s=>{const e=H.find(o=>o.key===s);return e?e.titulo:s},O=()=>{C.value="",E.value="",P.value="",D.value=""},G=s=>{ae(`/admin/pedidos/${s}`)},J=s=>{console.log("Editar pedido:",s.id)},Q=async(s,e)=>{try{const{$firestore:o}=T(),{doc:x,updateDoc:b,serverTimestamp:k,collection:i,addDoc:p}=await A(async()=>{const{doc:l,updateDoc:h,serverTimestamp:w,collection:K,addDoc:W}=await import("#entry").then(Y=>Y.aC);return{doc:l,updateDoc:h,serverTimestamp:w,collection:K,addDoc:W}},[],import.meta.url);await p(i(o,`pedidos/${s}/events`),{type:"estado",status:e,description:`Estado actualizado a ${U(e)}`,byUserId:f.user?.uid||null,byName:f.user?.displayName||f.user?.email||"Sistema",byRole:"admin",createdAt:k()}),await b(x(o,"pedidos",s),{estado:e,status:e,updatedAt:k(),lastEventAt:k()});const a=N.value.findIndex(l=>l.id===s);a!==-1&&(N.value[a].estado=e),alert("Estado actualizado correctamente")}catch(o){console.error("Error actualizando estado:",o),alert("Error al actualizar el estado")}},$=async()=>{V.value=!0;try{const{createPedido:s}=ne(),e={byUserId:f.user?.uid||null,byName:f.user?.displayName||f.user?.email||"Admin",byRole:"admin"},o={descripcion:n.value.descripcion,vehicle:{marca:n.value.marca||null,modelo:n.value.modelo||null,ano:n.value.ano?parseInt(n.value.ano):null,vin:n.value.vin||null},telefono:n.value.telefono||null,price:n.value.precio?parseInt(n.value.precio):null,userId:n.value.userId,createdBy:f.user?.uid||null,createdByRole:"admin",assignedTo:f.user?.uid||null},{id:x,numero:b}=await s(o,e);n.value={userId:"",descripcion:"",marca:"",modelo:"",ano:"",vin:"",telefono:"",precio:null},_.value=!1,await q(),alert(`Pedido #${b} creado exitosamente`)}catch(s){console.error("Error creando pedido:",s),alert("Error al crear el pedido: "+s.message)}finally{V.value=!1}},q=async()=>{try{const{$firestore:s}=T(),{collection:e,getDocs:o,query:x,orderBy:b}=await A(async()=>{const{collection:p,getDocs:a,query:l,orderBy:h}=await import("#entry").then(w=>
1w.aC);return{collection:p,getDocs:a,query:l,orderBy:h}},[],import.meta.url),k=x(e(s,"pedidos"),b("createdAt","desc")),i=await o(k);N.value=[],i.forEach(p=>{const a=p.data();N.value.push({id:p.id,numero:a.numero,descripcion:a.descripcion,marca:a.marca,modelo:a.modelo,ano:a.ano,vin:a.vin,telefono:a.telefono,precio:a.price??a.precio??null,estado:a.estado,userId:a.userId,userEmail:a.userEmail,userName:a.userName,createdAt:a.createdAt?.toDate()||new Date,fechaEstimada:a.fechaEstimada})})}catch(s){console.error("Error cargando pedidos:",s)}},X=async()=>{console.log("🔄 Cargando clientes...");const{$firestore:s}=T(),{collection:e,getDocs:o,query:x,where:b,orderBy:k}=await A(async()=>{const{collection:i,getDocs:p,query:a,where:l,orderBy:h}=await import("#entry").then(w=>w.aC);return{collection:i,getDocs:p,query:a,where:l,orderBy:h}},[],import.meta.url);try{const i=x(e(s,"users"),b("role","in",["cliente","vendedor"]),k("email","asc")),p=await o(i);m.value=[],console.log("📊 Total documentos encontrados (ordenado):",p.size),p.forEach(a=>{const l=a.data();m.value.push({id:a.id,email:l.email||"Sin email",displayName:l.displayName||l.name||l.email||"Usuario",role:l.role})}),console.log("✅ Clientes cargados (ordenado):",m.value.length);return}catch(i){console.warn("⚠️ Consulta ordenada requiere índice. Reintentando sin orderBy...",i&&i.message?i.message:i)}try{const i=x(e(s,"users"),b("role","in",["cliente","vendedor"])),p=await o(i);m.value=[],console.log("📊 Total documentos encontrados (simple):",p.size),p.forEach(a=>{const l=a.data();m.value.push({id:a.id,email:l.email||"Sin email",displayName:l.displayName||l.name||l.email||"Usuario",role:l.role})}),m.value.sort((a,l)=>{const h=(a.displayName||"").toLowerCase(),w=(l.displayName||"").toLowerCase();return h===w?(a.email||"").toLowerCase().localeCompare((l.email||"").toLowerCase()):h.localeCompare(w)}),console.log("✅ Clientes cargados (simple):",m.value.length)}catch(i){console.error("❌ Error cargando clientes (simple):",i),console.error("🔍 Detalles del error:",i&&i.message?i.message:i)}};return oe(()=>{q(),X()}),(s,e)=>(u(),d("div",null,[t("div",le,[t("div",ie,[e[17]||(e[17]=t("div",null,[t("h1",{class:"text-3xl font-bold text-gray-900"},"Gestión de Pedidos"),t("p",{class:"text-gray-600 mt-2"},"Administra todos los pedidos del sistema")],-1)),t("button",{onClick:e[0]||(e[0]=o=>_.value=!0),class:"px-6 py-3 bg-green-600 text-white rounded-lg hover:bg-green-700 transition-colors font-medium flex items-center space-x-2"},[...e[16]||(e[16]=[t("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 6v6m0 0v6m0-6h6m-6 0H6"})],-1),t("span",null,"Crear Pedido",-1)])])])]),t("div",de,[t("div",ue,[t("div",null,[e[18]||(e[18]=t("label",{class:"block text-sm font-medium text-gray-700 mb-2"},"Buscar",-1)),g(t("input",{"onUpdate:modelValue":e[1]||(e[1]=o=>j(C)?C.value=o:null),type:"text",placeholder:"Número, cliente, descripción...",class:"w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent"},null,512),[[v,r(C)]])]),t("div",null,[e[20]||(e[20]=t("label",{class:"block text-sm font-medium text-gray-700 mb-2"},"Estado",-1)),g(t("select",{"onUpdate:modelValue":e[2]||(e[2]=o=>j(E)?E.value=o:null),class:"w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent"},[...e[19]||(e[19]=[B('<option value="">Todos los estados</option><option value="solicitud_enviada">Solicitud Enviada</option><option value="producto_encontrado">Producto Encontrado</option><option value="pendiente_pago">Pendiente de Pago</option><option value="producto_viajando">Producto Viajando</option><option value="llegada_chile">Llegada a Chile</option><option value="despachando">Despachando</option><option value="entregado">Entregado</option>',8)])],512),[[S,r(E)]])]),t("div",null,[e[22]||(e[22]=t("label",{class:"block text-sm font-medium text-gray-700 mb-2"},"Cliente",-1)),g(t("select",{"onUpdate:modelValue":e[3]||(e[3]=o=>j(P)?P.value=o:null),class:"w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent"},[e[21]||(e[21]=t("option",{value:""},"Todos los clientes",-1)),(u(!0),d(I,null,L(r(m),o=>(u(),d("option",{key:o.id,value:o.id},c(o.displayName),9,ce))),128))],512),[[S,r(P)]])]),t("div",null,[e[23]||(e[23]=t("label",{class:"block text-sm font-medium text-gray-700 mb-2"},"Fecha",-1)),g(t("input",{"onUpdate:modelValue":e[4]||(e[4]=o=>j(D)?D.value=o:null),type:"date",class:"w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent"},null,512),[[v,r(D)]])]),t("div",{class:"flex items-end"},[t("button",{onClick:O,class:"w-full px-4 py-2 border border-gray-300 text-gray-700 rounded-lg hover:bg-gray-50 transition-colors"}," Limpiar ")])])]),t("div",pe,[t("div",me,[t("table",ge,[e[24]||(e[24]=t("thead",{class:"bg-gray-50"},[t("tr",null,[t("th",{class:"text-left py-4 px-6 font-medium text-gray-700"},"Pedido"),t("th",{class:"text-left py-4 px-6 font-medium text-gray-700"},"Cliente"),t("th",{class:"text-left py-4 px-6 font-medium text-gray-700"},"Descripción"),t("th",{class:"text-left py-4 px-6 font-medium text-gray-700"},"Estado"),t("th",{class:"text-left py-4 px-6 font-medium text-gray-700"},"Fecha"),t("th",{class:"text-left py-4 px-6 font-medium text-gray-700"},"Precio"),t("th",{class:"text-left py-4 px-6 font-medium text-gray-700"},"Acciones")])],-1)),t("tbody",xe,[(u(!0),d(I,null,L(r(z),o=>(u(),d("tr",{key:o.id,class:"hover:bg-gray-50"},[t("td",ye,[t("div",null,[t("p",ve,c(o.numero),1),t("p",fe,c(o.id.substring(0,8))+"...",1)])]),t("td",be,[t("div",null,[t("p",he,c(o.userName||"Sin nombre"),1),t("p",we,c(o.userEmail),1)])]),t("td",ke,[t("p",_e,c(o.descripcion),1),o.marca||o.modelo?(u(),d("div",Ce,c(o.marca)+" "+c(o.modelo)+" "+c(o.ano),1)):M("",!0)]),t("td",Ee,[t("span",{class:re(["inline-flex px-2 py-1 text-xs font-semibold rounded-full",R(o.estado)])},c(U(o.estado)),3)]),t("td",Pe,c(F(o.createdAt)),1),t("td",De,[o.precio?(u(),d("span",Ne," $"+c(o.precio.toLocaleStr
1ing()),1)):(u(),d("span",Ve,"-"))]),t("td",Me,[t("div",je,[t("button",{onClick:x=>G(o.id),class:"text-blue-600 hover:text-blue-700 text-sm font-medium"}," Ver ",8,Be),t("button",{onClick:x=>J(o),class:"text-green-600 hover:text-green-700 text-sm font-medium"}," Editar ",8,Ae),o.estado==="solicitud_enviada"?(u(),d("button",{key:0,onClick:x=>Q(o.id,"producto_encontrado"),class:"text-purple-600 hover:text-purple-700 text-sm font-medium"}," Encontrado ",8,Se)):M("",!0)])])]))),128))])])]),r(z).length===0?(u(),d("div",Ie,[e[25]||(e[25]=t("svg",{class:"w-16 h-16 text-gray-400 mx-auto mb-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5H7a2 2 0 00-2 2v10a2 2 0 002 2h8a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"})],-1)),e[26]||(e[26]=t("h3",{class:"text-lg font-medium text-gray-900 mb-2"},"No hay pedidos",-1)),e[27]||(e[27]=t("p",{class:"text-gray-500 mb-4"},"Comienza creando el primer pedido",-1)),t("button",{onClick:e[5]||(e[5]=o=>_.value=!0),class:"px-6 py-3 bg-green-600 text-white rounded-lg hover:bg-green-700 transition-colors font-medium"}," Crear Pedido ")])):M("",!0)]),r(_)?(u(),d("div",Le,[t("div",Te,[t("div",ze,[t("div",Ue,[e[29]||(e[29]=B('<div class="flex items-center space-x-4"><div class="w-12 h-12 bg-green-500 bg-opacity-30 rounded-xl flex items-center justify-center"><svg class="w-6 h-6 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 6v6m0 0v6m0-6h6m-6 0H6"></path></svg></div><div><h2 class="text-2xl font-bold text-white">Crear Pedido</h2><p class="text-green-100 mt-1">Crear pedido para un cliente</p></div></div>',1)),t("button",{onClick:e[6]||(e[6]=o=>_.value=!1),class:"w-10 h-10 bg-green-500 bg-opacity-30 hover:bg-opacity-50 rounded-xl flex items-center justify-center transition-all duration-200"},[...e[28]||(e[28]=[t("svg",{class:"w-6 h-6 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1)])])])]),t("div",$e,[t("form",{onSubmit:se($,["prevent"]),class:"space-y-8"},[t("div",qe,[e[31]||(e[31]=B('<label class="block text-lg font-semibold text-gray-800 mb-3"><span class="flex items-center space-x-2"><svg class="w-5 h-5 text-green-600" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 4.354a4 4 0 110 5.292M15 21H3v-1a6 6 0 0112 0v1zm0 0h6v-1a6 6 0 00-9-5.197m13.5-9a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0z"></path></svg><span>Cliente</span><span class="text-red-500">*</span></span></label>',1)),g(t("select",{"onUpdate:modelValue":e[7]||(e[7]=o=>r(n).userId=o),required:"",class:"w-full px-4 py-4 border-2 border-gray-200 rounded-xl focus:ring-2 focus:ring-green-500 focus:border-green-500 transition-all duration-200",disabled:r(m).length===0},[t("option",Fe,c(r(m).length===0?"Cargando clientes...":"Seleccionar cliente"),1),(u(!0),d(I,null,L(r(m),o=>(u(),d("option",{key:o.id,value:o.id},c(o.displayName)+" ("+c(o.email)+") ",9,Re))),128))],8,He),[[S,r(n).userId]]),r(m).length===0?(u(),d("div",Oe,[...e[30]||(e[30]=[t("div",{class:"flex items-center space-x-2"},[t("svg",{class:"w-4 h-4 animate-spin",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})]),t("span",null,"Cargando lista de clientes...")],-1)])])):M("",!0)]),t("div",Ge,[e[32]||(e[32]=B('<label class="block text-lg font-semibold text-gray-800 mb-3"><span class="flex items-center space-x-2"><svg class="w-5 h-5 text-green-600" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path></svg><span>Descripción del repuesto</span><span class="text-red-500">*</span></span></label>',1)),g(t("textarea",{"onUpdate:modelValue":e[8]||(e[8]=o=>r(n).descripcion=o),rows:"4",required:"",class:"w-full px-4 py-4 border-2 border-gray-200 rounded-xl focus:ring-2 focus:ring-green-500 focus:border-green-500 transition-all duration-200 text-gray-700 placeholder-gray-400 resize-none",placeholder:"Ej: Filtro de aceite para Toyota Corolla 2015, motor 1.8L..."},null,512),[[v,r(n).descripcion]])]),t("div",Je,[t("div",Qe,[e[33]||(e[33]=t("label",{class:"block text-sm font-medium text-gray-700"},"Marca",-1)),g(t("input",{"onUpdate:modelValue":e[9]||(e[9]=o=>
1r(n).marca=o),type:"text",class:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-green-500 focus:border-transparent",placeholder:"Toyota"},null,512),[[v,r(n).marca]])]),t("div",Xe,[e[34]||(e[34]=t("label",{class:"block text-sm font-medium text-gray-700"},"Modelo",-1)),g(t("input",{"onUpdate:modelValue":e[10]||(e[10]=o=>r(n).modelo=o),type:"text",class:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-green-500 focus:border-transparent",placeholder:"Corolla"},null,512),[[v,r(n).modelo]])]),t("div",Ke,[e[35]||(e[35]=t("label",{class:"block text-sm font-medium text-gray-700"},"Año",-1)),g(t("input",{"onUpdate:modelValue":e[11]||(e[11]=o=>r(n).ano=o),type:"number",min:"1990",max:"2026",class:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-green-500 focus:border-transparent",placeholder:"2020"},null,512),[[v,r(n).ano]])])]),t("div",We,[t("div",Ye,[e[36]||(e[36]=t("label",{class:"block text-sm font-medium text-gray-700"},"VIN (opcional)",-1)),g(t("input",{"onUpdate:modelValue":e[12]||(e[12]=o=>r(n).vin=o),type:"text",maxlength:"17",class:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-green-500 focus:border-transparent font-mono",placeholder:"1HGBH41JXMN109186"},null,512),[[v,r(n).vin]])]),t("div",Ze,[e[37]||(e[37]=t("label",{class:"block text-sm font-medium text-gray-700"},"Teléfono de contacto",-1)),g(t("input",{"onUpdate:modelValue":e[13]||(e[13]=o=>r(n).telefono=o),type:"tel",class:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-green-500 focus:border-transparent",placeholder:"+56912345678"},null,512),[[v,r(n).telefono]])])]),t("div",et,[e[38]||(e[38]=t("label",{class:"block text-sm font-medium text-gray-700"},"Precio estimado (opcional)",-1)),g(t("input",{"onUpdate:modelValue":e[14]||(e[14]=o=>r(n).precio=o),type:"number",min:"0",class:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-green-500 focus:border-transparent",placeholder:"125000"},null,512),[[v,r(n).precio]])])],32)]),t("div",tt,[t("div",ot,[e[41]||(e[41]=t("div",{class:"text-sm text-gray-600"},[t("span",{class:"flex items-center space-x-2"},[t("svg",{class:"w-4 h-4 text-green-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})]),t("span",null,'El pedido se creará en estado "Solicitud Enviada"')])],-1)),t("div",st,[t("button",{type:"button",onClick:e[15]||(e[15]=o=>_.value=!1),class:"px-8 py-3 border-2 border-gray-300 text-gray-700 rounded-xl hover:bg-gray-50 hover:border-gray-400 transition-all duration-200 font-medium"}," Cancelar "),t("button",{onClick:$,disabled:r(V)||!r(n).userId||!r(n).descripcion,class:"px-8 py-3 bg-gradient-to-r from-green-600 to-green-700 text-white rounded-xl hover:from-green-700 hover:to-green-800 disabled:from-gray-400 disabled:to-gray-500 transition-all duration-200 font-medium shadow-lg hover:shadow-xl transform hover:scale-105 disabled:transform-none disabled:shadow-none flex items-center space-x-2"},[r(V)?(u(),d("svg",at,[...e[39]||(e[39]=[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"},null,-1)])])):(u(),d("svg",nt,[...e[40]||(e[40]=[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 6v6m0 0v6m0-6h6m-6 0H6"},null,-1)])])),r(V)?(u(),d("span",lt,"Creando...")):(u(),d("span",it,"Crear Pedido"))],8,rt)])])])])])):M("",!0)]))}};export{mt 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.