import{o as m,c as b,d as a,B as T,U as R,r as C,e as y,m as g,f as te,g as B,h as Y,i as P,w as h,t as V,j as N,n as L,k as je,l as H,v as W,T as Ae,F as q,p as Me,q as Ie,s as D,x as Ee,y as K,z as De,A as Fe,a as t,u as e,C as J,D as Te,b as Ue}from"./app-I4K73wff.js";import{G as Le}from"./GuestLayout-synxfyPB.js";import{s as ze}from"./primeicons-LH9OCmKu.js";import{s as E}from"./index-dsvEKYml.js";import{_ as f}from"./InputError-H3v_qTU0.js";import{_ as v}from"./InputLabel-kIOW7zCm.js";import{s as Q}from"./index-QRC5oqEG.js";import{s as X}from"./index-Enh2jFaQ.js";import{_ as I}from"./TextInput-QqzhSxrA.js";import{s as M}from"./index-SPS7KMe2.js";import{s as x,a as Oe}from"./index-9SbmYGxV.js";import{s as ee}from"./index-udbKG07B.js";import{s as Be,a as F}from"./index-r3XoyT3j.js";import{s as Ne}from"./index-DZFS5ux4.js";import{s as qe}from"./index-hPb50fN5.js";import{d as U}from"./dayjs.min-M03ty_iR.js";import"./_plugin-vue_export-helper-x3n3nnut.js";import"./index--wbxBylr.js";import"./index-Ikz2WuEn.js";import"./index-i1OlaMiw.js";import"./index-hqM-OosT.js";import"./index-zzPOQKrQ.js";import"./index-uLcKW5Zg.js";import"./index-JLr5TnIY.js";import"./index-aCUeqmx3.js";import"./index-Gr1lOYEt.js";function Ye(s,i){return m(),b("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[a("path",{"fill-rule":"evenodd",d:"M4.5 3.75a3 3 0 0 0-3 3v10.5a3 3 0 0 0 3 3h15a3 3 0 0 0 3-3V6.75a3 3 0 0 0-3-3h-15Zm4.125 3a2.25 2.25 0 1 0 0 4.5 2.25 2.25 0 0 0 0-4.5Zm-3.873 8.703a4.126 4.126 0 0 1 7.746 0 .75.75 0 0 1-.351.92 7.47 7.47 0 0 1-3.522.877 7.47 7.47 0 0 1-3.522-.877.75.75 0 0 1-.351-.92ZM15 8.25a.75.75 0 0 0 0 1.5h3.75a.75.75 0 0 0 0-1.5H15ZM14.25 12a.75.75 0 0 1 .75-.75h3.75a.75.75 0 0 1 0 1.5H15a.75.75 0 0 1-.75-.75Zm.75 2.25a.75.75 0 0 0 0 1.5h3.75a.75.75 0 0 0 0-1.5H15Z","clip-rule":"evenodd"})])}function Ze(s,i){return m(),b("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[a("path",{"fill-rule":"evenodd",d:"M15.75 1.5a6.75 6.75 0 0 0-6.651 7.906c.067.39-.032.717-.221.906l-6.5 6.499a3 3 0 0 0-.878 2.121v2.818c0 .414.336.75.75.75H6a.75.75 0 0 0 .75-.75v-1.5h1.5A.75.75 0 0 0 9 19.5V18h1.5a.75.75 0 0 0 .53-.22l2.658-2.658c.19-.189.517-.288.906-.22A6.75 6.75 0 1 0 15.75 1.5Zm0 3a.75.75 0 0 0 0 1.5A2.25 2.25 0 0 1 18 8.25a.75.75 0 0 0 1.5 0 3.75 3.75 0 0 0-3.75-3.75Z","clip-rule":"evenodd"})])}var Ge=function(i){var l=i.dt;return`
.p-steplist {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style-type: none;
    overflow-x: auto;
}

.p-step {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: `.concat(l("stepper.step.gap"),`;
    padding: `).concat(l("stepper.step.padding"),`;
}

.p-step:last-of-type {
    flex: initial;
}

.p-step-header {
    border: 0 none;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    transition: background `).concat(l("stepper.transition.duration"),", color ").concat(l("stepper.transition.duration"),", border-color ").concat(l("stepper.transition.duration"),", outline-color ").concat(l("stepper.transition.duration"),", box-shadow ").concat(l("stepper.transition.duration"),`;
    border-radius: `).concat(l("stepper.step.header.border.radius"),`;
    outline-color: transparent;
    background: transparent;
    padding: `).concat(l("stepper.step.header.padding"),`;
    gap: `).concat(l("stepper.step.header.gap"),`;
}

.p-step-header:focus-visible {
    box-shadow: `).concat(l("stepper.step.header.focus.ring.shadow"),`;
    outline: `).concat(l("stepper.step.header.focus.ring.width")," ").concat(l("stepper.step.header.focus.ring.style")," ").concat(l("stepper.step.header.focus.ring.color"),`;
    outline-offset: `).concat(l("stepper.step.header.focus.ring.offset"),`;
}

.p-stepper.p-stepper-readonly .p-step {
    cursor: auto;
}

.p-step-title {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    color: `).concat(l("stepper.step.title.color"),`;
    font-weight: `).concat(l("stepper.step.title.font.weight"),`;
    transition: background `).concat(l("stepper.transition.duration"),", color ").concat(l("stepper.transition.duration"),", border-color ").concat(l("stepper.transition.duration"),", box-shadow ").concat(l("stepper.transition.duration"),", outline-color ").concat(l("stepper.transition.duration"),`;
}

.p-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    color: `).concat(l("stepper.step.number.color"),`;
    border: 2px solid `).concat(l("stepper.step.number.border.color"),`;
    background: `).concat(l("stepper.step.number.background"),`;
    min-width: `).concat(l("stepper.step.number.size"),`;
    height: `).concat(l("stepper.step.number.size"),`;
    line-height: `).concat(l("stepper.step.number.size"),`;
    font-size: `).concat(l("stepper.step.number.font.size"),`;
    z-index: 1;
    border-radius: `).concat(l("stepper.step.number.border.radius"),`;
    position: relative;
    font-weight: `).concat(l("stepper.step.number.font.weight"),`;
}

.p-step-number::after {
    content: " ";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: `).concat(l("stepper.step.number.border.radius"),`;
    box-shadow: `).concat(l("stepper.step.number.shadow"),`;
}

.p-step-active .p-step-header {
    cursor: default;
}

.p-step-active .p-step-number {
    background: `).concat(l("stepper.step.number.active.background"),`;
    border-color: `).concat(l("stepper.step.number.active.border.color"),`;
    color: `).concat(l("stepper.step.number.active.color"),`;
}

.p-step-active .p-step-title {
    color: `).concat(l("stepper.step.title.active.color"),`;
}

.p-step:not(.p-disabled):focus-visible {
    outline: `).concat(l("focus.ring.width")," ").concat(l("focus.ring.style")," ").concat(l("focus.ring.color"),`;
    outline-offset: `).concat(l("focus.ring.offset"),`;
}

.p-step:has(~ .p-step-active) .p-stepper-separator {
    background: `).concat(l("stepper.separator.active.background"),`;
}

.p-stepper-separator {
    flex: 1 1 0;
    background: `).concat(l("stepper.separator.background"),`;
    width: 100%;
    height: `).concat(l("stepper.separator.size"),`;
    transition: background `).concat(l("stepper.transition.duration"),", color ").concat(l("stepper.transition.duration"),", border-color ").concat(l("stepper.transition.duration"),", box-shadow ").concat(l("stepper.transition.duration"),", outline-color ").concat(l("stepper.transition.duration"),`;
}

.p-steppanels {
    padding: `).concat(l("stepper.steppanels.padding"),`;
}

.p-steppanel {
    background: `).concat(l("stepper.steppanel.background"),`;
    color: `).concat(l("stepper.steppanel.color"),`;
}

.p-stepper:has(.p-stepitem) {
    display: flex;
    flex-direction: column;
}

.p-stepitem {
    display: flex;
    flex-direction: column;
    flex: initial;
}

.p-stepitem.p-stepitem-active {
    flex: 1 1 auto;
}

.p-stepitem .p-step {
    flex: initial;
}

.p-stepitem .p-steppanel-content {
    width: 100%;
    padding: `).concat(l("stepper.steppanel.padding"),`;
}

.p-stepitem .p-steppanel {
    display: flex;
    flex: 1 1 auto;
}

.p-stepitem .p-stepper-separator {
    flex: 0 0 auto;
    width: `).concat(l("stepper.separator.size"),`;
    height: auto;
    margin: `).concat(l("stepper.separator.margin"),`;
    position: relative;
    left: calc(-1 * `).concat(l("stepper.separator.size"),`);
}

.p-stepitem:has(~ .p-stepitem-active) .p-stepper-separator {
    background: `).concat(l("stepper.separator.active.background"),`;
}

.p-stepitem:last-of-type .p-steppanel {
    padding-inline-start: `).concat(l("stepper.step.number.size"),`;
}
`)},Re={root:function(i){var l=i.props;return["p-stepper p-component",{"p-readonly":l.linear}]},separator:"p-stepper-separator"},He=T.extend({name:"stepper",theme:Ge,classes:Re}),We={name:"BaseStepper",extends:E,props:{value:{type:[String,Number],default:void 0},linear:{type:Boolean,default:!1}},style:He,provide:function(){return{$pcStepper:this,$parentInstance:this}}},ae={name:"Stepper",extends:We,inheritAttrs:!1,emits:["update:value"],data:function(){return{id:this.$attrs.id,d_value:this.value}},watch:{"$attrs.id":function(i){this.id=i||R()},value:function(i){this.d_value=i}},mounted:function(){this.id=this.id||R()},methods:{updateValue:function(i){this.d_value!==i&&(this.d_value=i,this.$emit("update:value",i))},isStepActive:function(i){return this.d_value===i},isStepDisabled:function(){return this.linear}}};function Ke(s,i,l,_,S,n){return m(),b("div",g({class:s.cx("root"),role:"tablist"},s.ptmi("root")),[s.$slots.start?C(s.$slots,"start",{key:0}):y("",!0),C(s.$slots,"default"),s.$slots.end?C(s.$slots,"end",{key:1}):y("",!0)],16)}ae.render=Ke;var Je={root:"p-steplist"},Qe=T.extend({name:"steplist",classes:Je}),Xe={name:"BaseStepList",extends:E,style:Qe,provide:function(){return{$pcStepList:this,$parentInstance:this}}},le={name:"StepList",extends:Xe,inheritAttrs:!1};function et(s,i,l,_,S,n){return m(),b("div",g({class:s.cx("root")},s.ptmi("root")),[C(s.$slots,"default")],16)}le.render=et;var tt={root:"p-steppanels"},at=T.extend({name:"steppanels",classes:tt}),lt={name:"BaseStepPanels",extends:E,style:at,provide:function(){return{$pcStepPanels:this,$parentInstance:this}}},se={name:"StepPanels",extends:lt,inheritAttrs:!1};function st(s,i,l,_,S,n){return m(),b("div",g({class:s.cx("root")},s.ptmi("root")),[C(s.$slots,"default")],16)}se.render=st;var it={root:function(i){var l=i.instance;return["p-step",{"p-step-active":l.active,"p-disabled":l.isStepDisabled}]},header:"p-step-header",number:"p-step-number",title:"p-step-title"},ot=T.extend({name:"step",classes:it}),ie={name:"StepperSeparator",hostName:"Stepper",extends:E};function nt(s,i,l,_,S,n){return m(),b("span",g({class:s.cx("separator")},s.ptm("separator")),null,16)}ie.render=nt;var rt={name:"BaseStep",extends:E,props:{value:{type:[String,Number],default:void 0},disabled:{type:Boolean,default:!1},asChild:{type:Boolean,default:!1},as:{type:String,default:"DIV"}},style:ot,provide:function(){return{$pcStep:this,$parentInstance:this}}},z={name:"Step",extends:rt,inheritAttrs:!1,inject:{$pcStepper:{default:null},$pcStepList:{default:null},$pcStepItem:{default:null}},data:function(){return{isSeparatorVisible:!1}},mounted:function(){if(this.$el&&this.$pcStepList){var i=te(this.$el,B(this.$pcStepper.$el,'[data-pc-name="step"]')),l=B(this.$pcStepper.$el,'[data-pc-name="step"]').length;this.isSeparatorVisible=i!==l-1}},methods:{getPTOptions:function(i){var l=i==="root"?this.ptmi:this.ptm;return l(i,{context:{active:this.active,disabled:this.isStepDisabled}})},onStepClick:function(){this.$pcStepper.updateValue(this.activeValue)}},computed:{active:function(){return this.$pcStepper.isStepActive(this.activeValue)},activeValue:function(){var i;return this.$pcStepItem?(i=this.$pcStepItem)===null||i===void 0?void 0:i.value:this.value},isStepDisabled:function(){return!this.active&&(this.$pcStepper.isStepDisabled()||this.disabled)},id:function(){var i;return"".concat((i=this.$pcStepper)===null||i===void 0?void 0:i.id,"_step_").concat(this.activeValue)},ariaControls:function(){var i;return"".concat((i=this.$pcStepper)===null||i===void 0?void 0:i.id,"_steppanel_").concat(this.activeValue)},a11yAttrs:function(){return{root:{role:"presentation","aria-current":this.active?"step":void 0,"data-pc-name":"step","data-pc-section":"root","data-p-disabled":this.disabled,"data-p-active":this.active},header:{id:this.id,role:"tab",taindex:this.disabled?-1:void 0,"aria-controls":this.ariaControls,"data-pc-section":"header",disabled:this.disabled,onClick:this.onStepClick}}}},components:{StepperSeparator:ie}},ct=["id","tabindex","aria-controls","disabled"];function pt(s,i,l,_,S,n){var j=Y("StepperSeparator");return s.asChild?C(s.$slots,"default",{key:1,class:L(s.cx("root")),active:n.active,value:s.value,a11yAttrs:n.a11yAttrs,activateCallback:n.onStepClick}):(m(),P(N(s.as),g({key:0,class:s.cx("root"),"aria-current":n.active?"step":void 0,role:"presentation","data-p-active":n.active,"data-p-disabled":n.isStepDisabled},n.getPTOptions("root")),{default:h(function(){return[a("button",g({id:n.id,class:s.cx("header"),role:"tab",type:"button",tabindex:n.isStepDisabled?-1:void 0,"aria-controls":n.ariaControls,disabled:n.isStepDisabled,onClick:i[0]||(i[0]=function(){return n.onStepClick&&n.onStepClick.apply(n,arguments)})},n.getPTOptions("header")),[a("span",g({class:s.cx("number")},n.getPTOptions("number")),V(n.activeValue),17),a("span",g({class:s.cx("title")},n.getPTOptions("title")),[C(s.$slots,"default")],16)],16,ct),S.isSeparatorVisible?(m(),P(j,{key:0})):y("",!0)]}),_:3},16,["class","aria-current","data-p-active","data-p-disabled"]))}z.render=pt;var dt={root:function(i){var l=i.instance;return["p-steppanel",{"p-steppanel-active":l.isVertical&&l.active}]},content:"p-steppanel-content"},ut=T.extend({name:"steppanel",classes:dt}),oe={name:"StepperSeparator",hostName:"Stepper",extends:E};function mt(s,i,l,_,S,n){return m(),b("span",g({class:s.cx("separator")},s.ptm("separator")),null,16)}oe.render=mt;var ft={name:"BaseStepPanel",extends:E,props:{value:{type:[String,Number],default:void 0},asChild:{type:Boolean,default:!1},as:{type:String,default:"DIV"}},style:ut,provide:function(){return{$pcStepPanel:this,$parentInstance:this}}},O={name:"StepPanel",extends:ft,inheritAttrs:!1,inject:{$pcStepper:{default:null},$pcStepItem:{default:null},$pcStepList:{default:null}},data:function(){return{isSeparatorVisible:!1}},mounted:function(){if(this.$el){var i,l,_=B(this.$pcStepper.$el,'[data-pc-name="step"]'),S=je(this.isVertical?(i=this.$pcStepItem)===null||i===void 0?void 0:i.$el:(l=this.$pcStepList)===null||l===void 0?void 0:l.$el,'[data-pc-name="step"]'),n=te(S,_);this.isSeparatorVisible=this.isVertical&&n!==_.length-1}},methods:{getPTOptions:function(i){var l=i==="root"?this.ptmi:this.ptm;return l(i,{context:{active:this.active}})},updateValue:function(i){this.$pcStepper.updateValue(i)}},computed:{active:function(){var i,l,_=this.$pcStepItem?(i=this.$pcStepItem)===null||i===void 0?void 0:i.value:this.value;return _===((l=this.$pcStepper)===null||l===void 0?void 0:l.d_value)},isVertical:function(){return!!this.$pcStepItem},activeValue:function(){var i;return this.isVertical?(i=this.$pcStepItem)===null||i===void 0?void 0:i.value:this.value},id:function(){var i;return"".concat((i=this.$pcStepper)===null||i===void 0?void 0:i.id,"_steppanel_").concat(this.activeValue)},ariaControls:function(){var i;return"".concat((i=this.$pcStepper)===null||i===void 0?void 0:i.id,"_step_").concat(this.activeValue)},a11yAttrs:function(){return{id:this.id,role:"tabpanel","aria-controls":this.ariaControls,"data-pc-name":"steppanel","data-p-active":this.active}}},components:{StepperSeparator:oe}};function vt(s,i,l,_,S,n){var j=Y("StepperSeparator");return n.isVertical?(m(),b(q,{key:0},[s.asChild?C(s.$slots,"default",{key:1,active:n.active,a11yAttrs:n.a11yAttrs,activateCallback:function($){return n.updateValue($)}}):(m(),P(Ae,g({key:0,name:"p-toggleable-content"},s.ptm("transition")),{default:h(function(){return[H((m(),P(N(s.as),g({id:n.id,class:s.cx("root"),role:"tabpanel","aria-controls":n.ariaControls},n.getPTOptions("root")),{default:h(function(){return[S.isSeparatorVisible?(m(),P(j,{key:0})):y("",!0),a("div",g({class:s.cx("content")},n.getPTOptions("content")),[C(s.$slots,"default",{active:n.active,activateCallback:function($){return n.updateValue($)}})],16)]}),_:3},16,["id","class","aria-controls"])),[[W,n.active]])]}),_:3},16))],64)):(m(),b(q,{key:1},[s.asChild?s.asChild&&n.active?C(s.$slots,"default",{key:1,active:n.active,a11yAttrs:n.a11yAttrs,activateCallback:function($){return n.updateValue($)}}):y("",!0):H((m(),P(N(s.as),g({key:0,id:n.id,class:s.cx("root"),role:"tabpanel","aria-controls":n.ariaControls},n.getPTOptions("root")),{default:h(function(){return[C(s.$slots,"default",{active:n.active,activateCallback:function($){return n.updateValue($)}})]}),_:3},16,["id","class","aria-controls"])),[[W,n.active]])],64))}O.render=vt;const ht="/build/assets/Carpooling-02-32scnyp_.png",bt={class:"flex justify-center items-center h-[inherit] w-full"},gt=["onClick"],_t=["onClick"],xt=["onClick"],St=a("i",{class:"pi pi-car"},null,-1),yt=[St],wt={class:"flex items-center gap-2 mx-auto",style:{"min-height":"16rem"}},Ct={class:"grid grid-cols-1 lg:grid-cols-2 xl:grid-cols-2 gap-4 mx-auto max-w-full"},$t={class:"bg-purple-900 shadow-lg rounded-2xl p-6 flex items-center justify-center hover:shadow-xl transition-shadow"},kt={class:"flex flex-col items-center"},Vt=a("div",{class:"text-purple-100 text-2xl font-semibold"}," 🚗 Modo Conductor ",-1),Pt=a("p",{class:"text-gray-300 text-sm text-center mt-2"}," Conduce y ayuda a otros a llegar a su destino. ",-1),jt={class:"bg-purple-900 shadow-lg rounded-2xl p-6 flex flex-col items-center hover:shadow-xl transition-shadow"},At=a("div",{class:"text-purple-100 text-2xl font-semibold"}," 🚕 Modo Pasajero ",-1),Mt=a("p",{class:"text-gray-300 text-sm text-center mt-2"}," Viaja cómodamente y encuentra conductores disponibles cerca de ti. ",-1),It={class:"flex pt-6 justify-end"},Et={class:"flex flex-col gap-2 mx-auto min-h-[14rem] max-h-[28rem] xl:max-h-[30rem] lg:max-h-[30rem] pr-4 overflow-auto"},Dt={class:"grid lg:grid-cols-2 md:grid-cols-2 gap-4"},Ft={class:"flex flex-col sm:flex-row sm:items-center sm:gap-4 mt-2"},Tt={key:0,class:"flex items-center w-full sm:w-auto"},Ut=a("i",{class:"pi pi-file-pdf text-red-500 text-4xl"},null,-1),Lt=["title"],zt={class:"flex flex-col sm:flex-row sm:items-center sm:gap-4 mt-2"},Ot={key:0,class:"flex items-center w-full sm:w-auto"},Bt=a("i",{class:"pi pi-file-pdf text-red-500 text-4xl"},null,-1),Nt=["title"],qt={class:"flex flex-col sm:flex-row sm:items-center sm:gap-4 mt-2"},Yt={key:0,class:"flex items-center gap-3 mt-3 sm:mt-0"},Zt=["src"],Gt=["title"],Rt={class:"flex pt-6 justify-between"},Ht={class:"flex flex-col gap-2 mx-auto min-h-[16rem] max-h-[37rem] xl:max-h-[30rem] lg:max-h-[30rem] pr-4 overflow-auto"},Wt={class:"grid lg:grid-cols-2 gap-4"},Kt={class:"flex flex-col sm:flex-row sm:items-center sm:gap-4 mt-2"},Jt={key:0,class:"flex items-center w-full sm:w-auto"},Qt=a("i",{class:"pi pi-file-pdf text-red-500 text-4xl"},null,-1),Xt=["title"],ea={class:"flex justify-end mt-10"},ta=a("div",{class:"flex flex-col items-center justify-center text-gray-500 py-5"},[a("i",{class:"pi pi-inbox text-4xl mb-3"}),a("p",null,"No hay registros disponibles")],-1),aa={class:"flex pt-6 justify-between"},la=a("span",{class:"underline"},"ir a",-1),sa=["src"],ia={class:"grid lg:grid-cols-4 xl:grid-cols-4 gap-4"},oa={class:"grid lg:grid-cols-2 xl:grid-cols-2 gap-4 mt-5"},na={class:"flex flex-col sm:flex-row sm:items-center sm:gap-4"},ra={key:0,class:"flex items-center w-full sm:w-auto"},ca=a("i",{class:"pi pi-file-pdf text-red-500 text-4xl"},null,-1),pa=["title"],da={key:0,class:"grid lg:grid-cols-2 xl:grid-cols-2 gap-4 mt-5"},ua={class:"flex flex-col sm:flex-row sm:items-center sm:gap-4"},ma={key:0,class:"flex items-center w-full sm:w-auto"},fa=a("i",{class:"pi pi-file-pdf text-red-500 text-4xl"},null,-1),va=["title"],ha={class:"grid grid-cols-1 lg:grid-cols-2 xl:grid-cols-2 gap-4 mt-5"},ba={class:"col-span-1"},ga={class:"flex flex-col sm:flex-row sm:items-center sm:gap-4 mt-2"},_a={key:0,class:"flex items-center w-full sm:w-auto"},xa=a("i",{class:"pi pi-file-pdf text-red-500 text-4xl"},null,-1),Sa=["title"],ya={class:"flex flex-col sm:flex-row sm:items-center sm:gap-4 mt-2"},wa={key:0,class:"flex items-center gap-3 mt-3 sm:mt-0"},Ca=["src"],$a=["title"],ka={class:"flex justify-end gap-2 mt-5"},el={__name:"AsignarRol",setup(s){U.locale("es");const i=Me(),l=Ie(),_=D([]),S=D(),n=D(!1),j=D(null);Ee(()=>{S.value=_.value});const w=D(1),$=p=>{p.files&&p.files.length>0&&(r.archivo_id=p.files[0])},ne=()=>{r.archivo_id=null},re=p=>{p.files&&p.files.length>0&&(r.certificado_eps=p.files[0])},ce=()=>{r.certificado_eps=null},pe=p=>{p.files&&p.files.length>0&&(r.licencia_pdf=p.files[0])},de=()=>{r.licencia_pdf=null},ue=p=>{p.files&&p.files.length>0&&(o.soat=p.files[0])},me=()=>{o.soat=null},fe=p=>{p.files&&p.files.length>0&&(o.tecnico_mecanica=p.files[0])},ve=()=>{o.soat=null},he=p=>{p.files&&p.files.length>0&&(o.tarjeta_propiedad=p.files[0])},be=()=>{o.tarjeta_propiedad=null};function ge(p){const c=p.files[0];r.foto_perfil=c;const A=new FileReader;A.onload=async d=>{j.value=d.target.result},A.readAsDataURL(c)}function _e(p){const c=p.files[0];o.foto_vehiculo=c;const A=new FileReader;A.onload=async d=>{j.value=d.target.result},A.readAsDataURL(c)}const xe=[{label:"Cédula de ciudadanía",value:"CC"},{label:"Cédula de extranjería",value:"CE"},{label:"Pasaporte",value:"PA"},{label:"Tarjeta de identidad",value:"TI"}],Se=[{label:"Nueva EPS",value:"Nueva EPS"},{label:"Salud Total",value:"Salud Total"},{label:"Compensar",value:"Compensar"},{label:"Famisanar",value:"Famisanar"},{label:"Aliansalud",value:"Aliansalud"},{label:"Coomeva",value:"Coomeva"},{label:"Savia Salud",value:"Savia Salud"},{label:"EPS Sura",value:"EPS Sura"},{label:"EPS Sanitas",value:"EPS Sanitas"},{label:"Salud Vida",value:"Salud Vida"},{label:"Cafesalud",value:"Cafesalud"},{label:"Medimás",value:"Medimás"},{label:"Emssanar",value:"Emssanar"},{label:"Asmet Salud",value:"Asmet Salud"},{label:"Mutual Ser",value:"Mutual Ser"},{label:"Ambuq",value:"Ambuq"},{label:"Cafam",value:"Cafam"},{label:"Colsubsidio",value:"Colsubsidio"},{label:"EPS S.O.S",value:"EPS S.O.S"},{label:"Coosalud",value:"Coosalud"},{label:"Salud Mía",value:"Salud Mía"},{label:"Comfenalco Valle",value:"Comfenalco Valle"},{label:"EPM - Empresas Públicas de Medellín",value:"EPM - Empresas Públicas de Medellín"},{label:"Fondo de Pasivo Social de Ferrocarriles Nacionales de Colombia",value:"Fondo de Pasivo Social de Ferrocarriles Nacionales de Colombia"},{label:"Cajacopi Atlántico",value:"Cajacopi Atlántico"},{label:"Capresoca",value:"Capresoca"},{label:"Comfachocó",value:"Comfachocó"},{label:"Comfaoriente",value:"Comfaoriente"},{label:"EPS Familiar de Colombia",value:"EPS Familiar de Colombia"},{label:"Capital Salud",value:"Capital Salud"},{label:"Dusakawi",value:"Dusakawi"},{label:"Asociación Indígena del Cauca",value:"Asociación Indígena del Cauca"},{label:"Anas Wayuu",value:"Anas Wayuu"},{label:"Mallamas",value:"Mallamas"},{label:"Pijaos Salud",value:"Pijaos Salud"},{label:"Salud Bolívar",value:"Salud Bolívar"}],r=K({role_id:"",nombre:"",tipo_identificacion:"",identificacion:null,archivo_id:"",direccion:"",celular:null,eps:"",certificado_eps:"",foto_perfil:null,licencia:"",licencia_pdf:"",vehiculos:[]}),o=K({id:null,soat:null,fecha_v_soat:"",tecnico_mecanica:null,fecha_v_mecanica:"",foto_vehiculo:null,tarjeta_propiedad:null,placa:"",marca:"",linea:"",modelo:""}),ye=D(""),Z=p=>{ye.value=p,w.value=2,r.role_id=p},we=U().year(),G=De(()=>parseInt(o.modelo)<=we-5);Fe(()=>o.modelo,()=>{G.value||(o.tecnico_mecanica=null,o.fecha_v_mecanica="")});const Ce=()=>(o.errors={},o.marca||(o.errors.marca="La marca es obligatoria."),o.linea||(o.errors.linea="La línea es obligatoria."),o.placa||(o.errors.placa="La placa es obligatoria."),o.modelo||(o.errors.modelo="El modelo es obligatorio."),o.fecha_v_soat||(o.errors.fecha_v_soat="La fecha de vencimiento del SOAT es obligatoria."),o.soat||(o.errors.soat="El archivo SOAT es obligatorio."),o.tarjeta_propiedad||(o.errors.tarjeta_propiedad="La tarjeta de propiedad es obligatoria."),o.foto_vehiculo||(o.errors.foto_vehiculo="La foto del vehículo es obligatoria."),new Date().getFullYear()-parseInt(o.modelo)>5&&(!o.tecnico_mecanica||!o.fecha_v_mecanica)&&(o.errors.tecnico_mecanica="Debe adjuntar el certificado técnico mecánico.",o.errors.fecha_v_mecanica="Debe seleccionar la fecha de vencimiento del técnico mecánico."),Object.keys(o.errors).length===0),$e=()=>{if(!Ce())return;o.fecha_v_soat=U(o.fecha_v_soat).format("YYYY-MM-DD"),o.fecha_v_mecanica&&(o.fecha_v_mecanica=U(o.fecha_v_mecanica).format("YYYY-MM-DD"));const p={...o,id:crypto.randomUUID()};r.vehiculos.push(p),_.value.push(p),S.value=_.value,o.reset(),n.value=!1},ke=p=>{l.require({message:"¿Esta seguro de eliminar el vehículo?",header:"Confirmación",icon:"pi pi-info-circle",rejectProps:{label:"Cancelar",severity:"secondary",outlined:!0},acceptProps:{label:"Eliminar",severity:"danger"},accept:()=>{_.value=_.value.filter(c=>c.id!==p),S.value=_.value,i.add({severity:"info",summary:"Confirmado",detail:"El vehículo se ha eliminado.",life:3e3})},reject:()=>{i.add({severity:"error",summary:"Cancelado",detail:"Se ha cancelado la acción.",life:3e3})}})},Ve=()=>{o.reset(),n.value=!1},Pe=()=>{l.require({message:"¿Esta seguro de enviar la información?",header:"Confirmación",icon:"pi pi-exclamation-triangle",rejectProps:{label:"Cancelar",severity:"secondary",outlined:!0},acceptProps:{label:"Enviar"},accept:()=>{r.post(route("asignar.rol.post"),{onError:p=>{const c=Object.keys(p);c.includes("identificacion")&&(w.value=2,console.error(p.identificacion)),c.length>0?i.add({severity:"error",summary:"Faltan datos por completar",detail:"Revisa los campos obligatorios e intenta de nuevo.",life:3e3}):i.add({severity:"error",summary:"Error inesperado",detail:"No se pudo completar la acción. Intenta más tarde.",life:3e3})},onSuccess:()=>{console.log("success")}})},reject:()=>{i.add({severity:"error",summary:"Acción cancelada",detail:"Has cancelado la operación.",life:3e3})}})};return(p,c)=>{const A=Y("Divider");return m(),b(q,null,[t(Le,null,{default:h(()=>[a("div",bt,[t(e(Ne),{class:"card flex justify-center xl:w-1/2 lg:w-1/2 w-full h-fit"},{content:h(()=>[a("form",{onSubmit:J(Pe,["prevent"])},[a("div",null,[t(e(ae),{value:w.value,"onUpdate:value":c[10]||(c[10]=d=>w.value=d),class:"w-full"},{default:h(()=>[t(e(le),null,{default:h(()=>[t(e(z),{asChild:"",value:1},{default:h(({activateCallback:d,value:u,a11yAttrs:k})=>[a("div",g({class:"flex flex-row flex-auto gap-2"},k.root),[a("button",g({type:"button",class:"bg-transparent border-0 inline-flex flex-col gap-2",onClick:d},k.header),[a("span",{class:L(["rounded-full border-2 w-12 h-12 inline-flex items-center justify-center",{"bg-purple-950 text-white border-primary":u<=w.value,"border-gray-200":u>w.value}])},[t(e(Ze),{class:"h-6 w-6"})],2)],16,gt),t(A)],16)]),_:1}),t(e(z),{asChild:"",value:2},{default:h(({activateCallback:d,value:u,a11yAttrs:k})=>[a("div",g({class:"flex flex-row flex-auto gap-2 pl-2"},k.root),[a("button",g({type:"button",class:"bg-transparent border-0 inline-flex flex-col gap-2",onClick:d},k.header),[a("span",{class:L(["rounded-full border-2 w-12 h-12 inline-flex items-center justify-center",{"bg-purple-950 text-white border-primary":u<=w.value,"border-gray-200":u>w.value}])},[t(e(Ye),{class:"h-6 w-6"})],2)],16,_t),t(A)],16)]),_:1}),e(r).role_id==="conductor"?(m(),P(e(z),{key:0,asChild:"",value:3},{default:h(({activateCallback:d,value:u,a11yAttrs:k})=>[a("div",g({class:"flex flex-row pl-2"},k.root),[a("button",g({type:"button",class:"bg-transparent border-0 inline-flex flex-col gap-2",onClick:d},k.header),[a("span",{class:L(["rounded-full border-2 w-12 h-12 inline-flex items-center justify-center",{"bg-purple-950 text-white border-primary":u<=w.value,"border-gray-200":u>w.value}])},yt,2)],16,xt)],16)]),_:1})):y("",!0)]),_:1}),t(e(se),null,{default:h(()=>[t(e(O),{value:1},{default:h(({activateCallback:d})=>[a("div",wt,[a("div",Ct,[a("div",$t,[a("div",kt,[Vt,Pt,a("button",{type:"button",onClick:c[0]||(c[0]=u=>Z("conductor")),class:"mt-4 bg-purple-950 hover:bg-purple-800 text-white font-bold py-2 px-4 rounded-lg transition"}," Seleccionar ")])]),a("div",jt,[At,Mt,a("button",{type:"button",onClick:c[1]||(c[1]=u=>Z("pasajero")),class:"mt-4 bg-purple-950 hover:bg-purple-800 text-white font-bold py-2 px-4 rounded-lg transition"}," Seleccionar ")])])]),a("div",It,[t(e(x),{type:"button",label:"Siguiente",icon:"pi pi-arrow-right",iconPos:"right",onClick:u=>d(2)},null,8,["onClick"])])]),_:1}),t(e(O),{value:2},{default:h(({activateCallback:d})=>[a("div",Et,[a("div",Dt,[a("div",null,[t(v,{for:"nombre",value:"Nombre"}),t(I,{id:"nombre",type:"text",class:"mt-1 block w-full",modelValue:e(r).nombre,"onUpdate:modelValue":c[2]||(c[2]=u=>e(r).nombre=u),required:"",autocomplete:"Nombre"},null,8,["modelValue"]),t(f,{class:"mt-2",message:e(r).errors.nombre},null,8,["message"])]),a("div",null,[t(v,{for:"tipo_identificacion",value:"Tipo de documento"}),t(e(X),{modelValue:e(r).tipo_identificacion,"onUpdate:modelValue":c[3]||(c[3]=u=>e(r).tipo_identificacion=u),options:xe,optionValue:"value",optionLabel:"label",filter:"",class:"w-2/3 min-[300px]:w-full h-[42px] mt-1",required:""},null,8,["modelValue"]),t(f,{class:"mt-2",message:e(r).errors.tipo_identificacion},null,8,["message"])]),a("div",null,[t(v,{for:"identificacion",value:"Identificación"}),t(e(Q),{modelValue:e(r).identificacion,"onUpdate:modelValue":c[4]||(c[4]=u=>e(r).identificacion=u),class:"w-full mt-1 input_full",inputId:"withoutgrouping",useGrouping:!1,fluid:""},null,8,["modelValue"]),t(f,{class:"mt-2",message:e(r).errors.identificacion},null,8,["message"])]),a("div",null,[a("div",null,[t(v,{for:"archivo_id",value:"Archivo identificación"}),a("div",Ft,[t(e(M),{mode:"basic",class:"sm:w-auto w-full",onSelect:$,customUpload:"",auto:"",severity:"secondary",accept:"application/pdf",maxFileSize:2e6}),e(r).archivo_id?(m(),b("div",Tt,[Ut,a("span",{class:"ml-2 truncate max-w-[150px] block",title:e(r).archivo_id.name},V(e(r).archivo_id.name),9,Lt),t(e(x),{icon:"pi pi-times",class:"ml-2 p-button-text p-button-danger",onClick:ne})])):y("",!0)]),t(f,{class:"mt-2",message:e(r).errors.archivo_id},null,8,["message"])])]),a("div",null,[t(v,{for:"eps",value:"EPS"}),t(e(X),{modelValue:e(r).eps,"onUpdate:modelValue":c[5]||(c[5]=u=>e(r).eps=u),options:Se,optionValue:"value",optionLabel:"label",filter:"",class:"w-2/3 min-[300px]:w-full h-[42px] mt-1",required:""},null,8,["modelValue"]),t(f,{class:"mt-2",message:e(r).errors.eps},null,8,["message"])]),a("div",null,[a("div",null,[t(v,{for:"certificado_eps",value:"Certificado EPS"}),a("div",zt,[t(e(M),{mode:"basic",class:"sm:w-auto w-full",onSelect:re,customUpload:"",auto:"",severity:"secondary",accept:"application/pdf",maxFileSize:2e6}),e(r).certificado_eps?(m(),b("div",Ot,[Bt,a("span",{class:"ml-2 truncate max-w-[150px] block",title:e(r).certificado_eps.name},V(e(r).certificado_eps.name),9,Nt),t(e(x),{icon:"pi pi-times",class:"ml-2 p-button-text p-button-danger",onClick:ce})])):y("",!0)]),t(f,{class:"mt-2",message:e(r).errors.certificado_eps},null,8,["message"])])]),a("div",null,[t(v,{for:"direccion",value:"Dirección"}),t(I,{id:"direccion",type:"text",class:"mt-1 block w-full",modelValue:e(r).direccion,"onUpdate:modelValue":c[6]||(c[6]=u=>e(r).direccion=u),autocomplete:"direccion",name:"direccion"},null,8,["modelValue"]),t(f,{class:"mt-2",message:e(r).errors.direccion},null,8,["message"])]),a("div",null,[t(v,{for:"celular",value:"Celular"}),t(e(Q),{modelValue:e(r).celular,"onUpdate:modelValue":c[7]||(c[7]=u=>e(r).celular=u),class:"w-full mt-1 input_full",inputId:"withoutgrouping",useGrouping:!1,fluid:""},null,8,["modelValue"]),t(f,{class:"mt-2",message:e(r).errors.celular},null,8,["message"])]),a("div",null,[t(v,{for:"foto_perfil",value:"Foto de perfil"}),a("div",qt,[t(e(M),{mode:"basic",onSelect:ge,class:"sm:w-auto w-full",accept:"image/*",customUpload:"",auto:"",severity:"secondary"}),e(r).foto_perfil?(m(),b("div",Yt,[a("img",{src:j.value,alt:"Foto subida",class:"w-12 h-12 object-cover rounded-lg shadow-md"},null,8,Zt),a("span",{class:"truncate max-w-[150px] block",title:e(r).foto_perfil.name},V(e(r).foto_perfil.name),9,Gt)])):y("",!0)]),t(f,{class:"mt-2",message:e(r).errors.foto_perfil},null,8,["message"])])])]),a("div",Rt,[t(e(x),{type:"button",label:"Atras",severity:"secondary",icon:"pi pi-arrow-left",onClick:u=>d(1)},null,8,["onClick"]),e(r).role_id==="conductor"?(m(),P(e(x),{key:0,type:"button",label:"Siguiente",icon:"pi pi-arrow-right",iconPos:"right",onClick:u=>d(3)},null,8,["onClick"])):(m(),P(e(x),{key:1,type:"submit",label:"Guardar",icon:"pi pi-save",iconPos:"right"}))])]),_:1}),t(e(O),{value:3},{default:h(({activateCallback:d})=>[a("div",Ht,[a("div",null,[a("div",Wt,[a("div",null,[t(v,{for:"licencia",value:"Numero de licencia"}),t(I,{id:"licencia",type:"text",class:"mt-1 block w-full",modelValue:e(r).licencia,"onUpdate:modelValue":c[8]||(c[8]=u=>e(r).licencia=u),autocomplete:"Licencia"},null,8,["modelValue"]),t(f,{class:"mt-2",message:e(r).errors.licencia},null,8,["message"])]),a("div",null,[a("div",null,[t(v,{for:"licencia_pdf",value:"Scaner licencia"}),a("div",Kt,[t(e(M),{mode:"basic",class:"sm:w-auto w-full",onSelect:pe,customUpload:"",auto:"",severity:"secondary",accept:"application/pdf",maxFileSize:2e6}),e(r).licencia_pdf?(m(),b("div",Jt,[Qt,a("span",{class:"ml-2 truncate max-w-[150px] block",title:e(r).licencia_pdf.name},V(e(r).licencia_pdf.name),9,Xt),t(e(x),{icon:"pi pi-times",class:"ml-2 p-button-text p-button-danger",onClick:de})])):y("",!0)]),t(f,{class:"mt-2",message:e(r).errors.licencia_pdf},null,8,["message"])])])]),a("div",null,[a("div",ea,[t(e(x),{type:"button",label:"Agregar vehiculo",onClick:c[9]||(c[9]=u=>n.value=!0),outlined:"",icon:"pi pi-plus",iconPos:"right"})]),t(e(Be),{class:"mt-2",value:S.value,stripedRows:"",scrollable:"",scrollHeight:"300px",tableStyle:"max-width: 100%"},{empty:h(()=>[ta]),default:h(()=>[t(e(F),{field:"placa",header:"Placa"}),t(e(F),{field:"marca",header:"Marca"}),t(e(F),{field:"linea",header:"Linea"}),t(e(F),{field:"modelo",header:"Modelo"}),t(e(F),{exportable:!1,header:"Acciones",style:{"min-width":"5rem"}},{body:h(u=>[t(e(x),{type:"button",icon:"pi pi-trash",outlined:"",rounded:"",severity:"danger",onClick:k=>ke(u.data.id)},null,8,["onClick"])]),_:1})]),_:1},8,["value"]),t(f,{class:"mt-2",message:e(r).errors.vehiculos},null,8,["message"])])])]),a("div",aa,[t(e(x),{type:"button",label:"Atras",severity:"secondary",icon:"pi pi-arrow-left",onClick:u=>d(2)},null,8,["onClick"]),t(e(x),{type:"submit",label:"Guardar",icon:"pi pi-save",iconPos:"right"})])]),_:1})]),_:1})]),_:1},8,["value"])])],32)]),_:1})]),a("div",null,[t(e(Te),{href:p.route("logout"),method:"post",as:"button",class:"absolute bottom-1 center-horizontal text-white flex items-center"},{default:h(()=>[la,Ue(),a("img",{src:e(ht),class:"w-28",alt:""},null,8,sa)]),_:1},8,["href"])])]),_:1}),t(e(Oe),{visible:n.value,"onUpdate:visible":c[17]||(c[17]=d=>n.value=d),position:"center",maximizable:"",modal:"",header:"Agregar vehiculo",style:{width:"50rem"},breakpoints:{"1199px":"75vw","575px":"90vw"}},{default:h(()=>[a("form",{onSubmit:J($e,["prevent"])},[a("div",ia,[a("div",null,[t(v,{for:"marca",value:"Marca"}),t(I,{id:"marca",type:"text",class:"mt-1 block w-full",modelValue:e(o).marca,"onUpdate:modelValue":c[11]||(c[11]=d=>e(o).marca=d),placeholder:"Ej. Toyota, Kia, Chevrolet",required:"",autocomplete:"Marca"},null,8,["modelValue"]),t(f,{class:"mt-2",message:e(o).errors.marca},null,8,["message"])]),a("div",null,[t(v,{for:"linea",value:"Linea"}),t(I,{id:"linea",type:"text",class:"mt-1 block w-full",modelValue:e(o).linea,"onUpdate:modelValue":c[12]||(c[12]=d=>e(o).linea=d),placeholder:"Ej. Corolla, Piccanto, Spark",required:"",autocomplete:"Linea"},null,8,["modelValue"]),t(f,{class:"mt-2",message:e(o).errors.linea},null,8,["message"])]),a("div",null,[t(v,{for:"placa",value:"Placa"}),t(I,{id:"placa",type:"text",class:"mt-1 block w-full",modelValue:e(o).placa,"onUpdate:modelValue":c[13]||(c[13]=d=>e(o).placa=d),required:"",autocomplete:"Placa"},null,8,["modelValue"]),t(f,{class:"mt-2",message:e(o).errors.placa},null,8,["message"])]),a("div",null,[t(v,{for:"modelo",value:"Modelo"}),t(I,{id:"modelo",type:"text",class:"mt-1 block w-full",modelValue:e(o).modelo,"onUpdate:modelValue":c[14]||(c[14]=d=>e(o).modelo=d),required:"",autocomplete:"Modelo"},null,8,["modelValue"]),t(f,{class:"mt-2",message:e(o).errors.modelo},null,8,["message"])])]),a("div",oa,[a("div",null,[t(v,{for:"fecha_v_soat",value:"Fecha vencimiento SOAT"}),t(e(ee),{modelValue:e(o).fecha_v_soat,"onUpdate:modelValue":c[15]||(c[15]=d=>e(o).fecha_v_soat=d)},null,8,["modelValue"]),t(f,{class:"mt-2",message:e(o).errors.fecha_v_soat},null,8,["message"])]),a("div",null,[t(v,{for:"soat",value:"SOAT"}),a("div",na,[t(e(M),{mode:"basic",class:"sm:w-auto w-full",onSelect:ue,customUpload:"",auto:"",severity:"secondary",accept:"application/pdf",maxFileSize:2e6}),e(o).soat?(m(),b("div",ra,[ca,a("span",{class:"ml-2 truncate max-w-[150px] block",title:e(o).soat.name},V(e(o).soat.name),9,pa),t(e(x),{icon:"pi pi-times",class:"ml-2 p-button-text p-button-danger",onClick:me})])):y("",!0)]),t(f,{class:"mt-2",message:e(o).errors.soat},null,8,["message"])])]),G.value?(m(),b("div",da,[a("div",null,[t(v,{for:"fecha_v_mecanica",value:"Fecha técnico mecánica"}),t(e(ee),{modelValue:e(o).fecha_v_mecanica,"onUpdate:modelValue":c[16]||(c[16]=d=>e(o).fecha_v_mecanica=d)},null,8,["modelValue"]),t(f,{class:"mt-2",message:e(o).errors.fecha_v_mecanica},null,8,["message"])]),a("div",null,[t(v,{for:"tecnico_mecanica",value:"Técnico mecánica"}),a("div",ua,[t(e(M),{mode:"basic",class:"sm:w-auto w-full",onSelect:fe,customUpload:"",auto:"",severity:"secondary",accept:"application/pdf",maxFileSize:2e6}),e(o).tecnico_mecanica?(m(),b("div",ma,[fa,a("span",{class:"ml-2 truncate max-w-[150px] block",title:e(o).tecnico_mecanica.name},V(e(o).tecnico_mecanica.name),9,va),t(e(x),{icon:"pi pi-times",class:"ml-2 p-button-text p-button-danger",onClick:ve})])):y("",!0)]),t(f,{class:"mt-2",message:e(o).errors.tecnico_mecanica},null,8,["message"])])])):y("",!0),a("div",ha,[a("div",ba,[t(v,{for:"tarjeta_propiedad",value:"Tarjeta de propiedad"}),a("div",ga,[t(e(M),{mode:"basic",class:"sm:w-auto w-full",onSelect:he,customUpload:"",auto:"",severity:"secondary",accept:"application/pdf",maxFileSize:2e6}),e(o).tarjeta_propiedad?(m(),b("div",_a,[xa,a("span",{class:"ml-2 truncate max-w-[150px] block",title:e(o).tarjeta_propiedad.name},V(e(o).tarjeta_propiedad.name),9,Sa),t(e(x),{icon:"pi pi-times",class:"ml-2 p-button-text p-button-danger",onClick:be})])):y("",!0)]),t(f,{class:"mt-2",message:e(o).errors.tarjeta_propiedad},null,8,["message"])]),a("div",null,[t(v,{for:"foto_vehiculo",value:"Foto del vehículo"}),a("div",ya,[t(e(M),{mode:"basic",onSelect:_e,class:"sm:w-auto w-full",accept:"image/*",customUpload:"",auto:"",severity:"secondary"}),e(o).foto_vehiculo?(m(),b("div",wa,[a("img",{src:j.value,alt:"Foto subida",class:"w-12 h-12 object-cover rounded-lg shadow-md"},null,8,Ca),a("span",{class:"truncate max-w-[150px] block",title:e(o).foto_vehiculo.name},V(e(o).foto_vehiculo.name),9,$a)])):y("",!0)])])]),a("div",ka,[t(e(x),{type:"button",label:"Cancelar",severity:"secondary",onClick:Ve}),t(e(x),{type:"submit",label:"Guardar"})])],32)]),_:1},8,["visible"]),t(e(ze)),t(e(qe))],64)}}};export{el as default};
