1import{d as V,o as i,c as u,a,f as U,b as f,x as y,F as $,q as C,t as w,w as s,g as v,I as D}from"./Fs3ABwln.js";import{_ as N}from"./Bz2eJZK_.js";import{_ as B}from"./L3OPQm97.js";import{_ as S}from"./D0B2luAD.js";import"./BvyNEQCa.js";import"./CpQ07GS4.js";import"./BfC_GJdI.js";const q={class:"flex flex-col gap-4"},x={key:0,class:"rounded-lg border-2 border-dashed border-gray-200 py-10 text-center text-gray-400"},z={class:"mb-3 flex items-center justify-between"},F={class:"font-semibold text-gray-700"},K={class:"grid grid-cols-1 gap-3 sm:grid-cols-2"},I=V({__name:"StepChildren",props:{formData:{},errors:{}},emits:["update:formData","add-child","remove-child"],setup(r,{emit:b}){const _=r,p=b;function m(g,o,h){const c=_.formData.kinder.map((l,n)=>n===g?{...l,[o]:h}:l);p("update:formData",{..._.formData,kinder:c})}return(g,o)=>{const h=U,c=D,l=N,n=B,k=S;return i(),u("div",q,[r.formData.kinder.length===0?(i(),u("div",x,[a(h,{name:"i-heroicons-users",class:"mx-auto mb-2 size-8"}),o[1]||(o[1]=f("p",{class:"text-sm"}," Noch keine Kinder hinzugefügt ",-1))])):y("",!0),(i(!0),u($,null,C(r.formData.kinder,(d,e)=>(i(),u("div",{key:e,class:"rounded-lg border border-gray-200 bg-gray-50 p-4"},[f("div",z,[f("p",F," Kind "+w(e+1),1),a(c,{color:"error",variant:"ghost",size:"sm",icon:"i-heroicons-trash",onClick:t=>p("remove-child",e)},{default:s(()=>[...o[2]||(o[2]=[v(" Entfernen ",-1)])]),_:1},8,["onClick"])]),f("div",K,[a(n,{label:"Vorname",required:"",error:r.errors[`child_${e}_vorname`]},{default:s(()=>[a(l,{"model-value":d.vorname,placeholder:"Vorname",class:"w-full","onUpdate:modelValue":t=>m(e,"vorname",t)},null,8,["model-value","onUpdate:modelValue"])]),_:2},1032,["error"]),a(n,{label:"Nachname",required:"",error:r.errors[`child_${e}_nachname`]},{default:s(()=>[a(l,{"model-value":d.nachname,placeholder:"Nachname",class:"w-full","onUpdate:modelValue":t=>m(e,"nachname",t)},null,8,["model-value","onUpdate:modelValue"])]),_:2},1032,["error"]),a(n,{label:"Geburtsdatum",error:r.errors[`child_${e}_geburtsdatum`]},{default:s(()=>[a(l,{"model-value":d.geburtsdatum,type:"date",max:"9999-12-31",class:"w-full","onUpdate:modelValue":t=>m(e,"geburtsdatum",t)},null,8,["model-value","onUpdate:modelValue"])]),_:2},1032,["error"]),a(n,{label:"Geschlecht",required:"",error:r.errors[`child_${e}_geschlecht`]},{default:s(()=>[a(k,{"model-value":d.geschlecht,"value-key":"value",placeholder:"Bitte wählen",items:[{label:"Männlich",value:"m"},{label:"Weiblich",value:"f"},{label:"Keine Angabe",value:"keine_angabe"}],class:"w-full","onUpdate:modelValue":t=>m(e,"geschlecht",t)},null,8,["model-value","onUpdate:modelValue"])]),_:2},1032,["error"])])]))),128)),a(c,{variant:"outline",icon:"i-heroicons-plus",class:"self-start",onClick:o[0]||(o[0]=d=>p("add-child"))},{default:s(()=>[...o[3]||(o[3]=[v(" Kind hinzufügen ",-1)])]),_:1})])}}}),T=Object.assign(I,{__name:"BookingStepsStepChildren"});export{T 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.