1import{_ as D}from"./ToAgBnQ2.js";import{FileInput as $}from"./BgTwufkv.js";import{_ as B}from"./33aVtH1w.js";import{_ as E}from"./g6MGIF7A.js";import{b as C,bA as g,O as I,az as u,k as P,f as _,w,z,y as a,m as s,I as l,x as e,p as v,r as A,o as F,a1 as N,b0 as O}from"./Cl3Xr5BD.js";const T={class:"flex flex-col gap-5"},U={class:"flex flex-col gap-5"},j={class:"text-2xl md:text-3xl font-semibold leading-tight"},q={class:"flex flex-col gap-3"},L={class:"flex flex-col gap-2"},G={class:"text-sm font-medium"},H={href:"/datenschutz",target:"_blank",class:"hover:underline text-teal cursor-pointer"},Y=C({__name:"AddMountingSituationDetails",props:g({calendarEvent:{},loadingButton:{type:Boolean}},{selectedSlot:{},selectedSlotModifiers:{},form:{required:!0},formModifiers:{},files:{default:[]},filesModifiers:{}}),emits:g(["submit"],["update:selectedSlot","update:form","update:files"]),setup(d,{expose:x,emit:b}){const{locale:J,t}=I(),S=b,y=u(d,"selectedSlot"),r=u(d,"form"),f=u(d,"files"),m=P(!1),c=_(()=>O(r.value.email));w(c,n=>{n&&(m.value=!1)});const p=_(()=>!c);return x({proceedDisabled:p}),(n,o)=>{const M=D,h=$,V=B,k=A("i18n-t");return F(),z("div",T,[a("div",U,[s(E,{calendarEvent:n.calendarEvent,selectedSlot:y.value},null,8,["calendarEvent","selectedSlot"]),a("h3",j,l(e(t)("configurator.addMountingSituationDetails.additionalInformation"))+" ("+l(e(t)("configurator.optional"))+") ",1)]),a("div",q,[s(M,{modelValue:r.value.notes,"onUpdate:modelValue":o[0]||(o[0]=i=>r.value.notes=i),label:`${e(t)("configurator.addMountingSituationDetails.notesLabel")} (${e(t)("configurator.optional")})`,placeholder:e(t)("configurator.addMountingSituationDetails.notesPlaceholder")},null,8,["modelValue","label","placeholder"]),a("div",L,[a("label",G,l(e(t)("configurator.addMountingSituationDetails.uploadFiles"))+" ("+l(e(t)("configurator.optional"))+")",1),s(h,{modelValue:f.value,"onUpdate:modelValue":o[1]||(o[1]=i=>f.value=i),multiple:"",accept:["png","jpg","gif","pdf"],limit:10},null,8,["modelValue"])])]),s(V,{size:"lg",loading:n.loadingButton,onClickOuter:o[2]||(o[2]=i=>m.value=!e(c)),onClick:o[3]||(o[3]=i=>S("submit")),disabled:e(p),variant:"secondary",block:""},{default:v(()=>[N(l(e(t)("configurator.addMountingSituationDetails.confirmAppointment")),1)]),_:1},8,["loading","disabled"]),s(k,{keypath:"configurator.addMountingSituationDetails.acknowledgePrivacyPolicy",class:"text-xs text-gray-500",tag:"p"},{privacyPolicy:v(()=>[a("a",H,l(n.$t("configurator.privacyPolicy")),1)]),_:1})])}}});export{Y as _};
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.