PageSourceSearch

https://platform.daap.eu/build/assets/FormStep1-CcgFVdy-.js

js daap.eu collected 2026-10-02 17:02:48 UTC 4,431 bytes, 1 lines download raw bytes

1import{I as b}from"./InputError-p_-St5nt.js";import{I as w}from"./InputLabel-CicOYQq3.js";import{P as I}from"./PrimaryButton-BmycDALT.js";import{S as k}from"./SecondaryButton-C5m6J1fd.js";import{T as V}from"./TextInput-C59jN7_O.js";import{f,o as c,b as o,t as i,h,e as m,a as d,w as v,F as E}from"./app-Cpf59jlX.js";import{_ as S}from"./_plugin-vue_export-helper-DlAUqK2U.js";const x={__name:"FormStep1",props:{formData:{type:Object},request:{type:Object}},emits:["stepSubmit","update"],setup(a,{expose:l,emit:n}){l();const e=a,_=n;let r=e.formData;const s=new Date,p=s.toISOString().split("T")[0];function y(){r.clearErrors(),(r.valid_to==null||r.valid_to=="")&&r.setError("valid_to",t("field muss ausgewählt werden.",{field:"Gültigkeit"})),(r.delivery_date_from==null||r.delivery_date_from=="")&&r.setError("delivery_date_from",t("Ein Liefertermin muss angegeben werden.")),(r.delivery_date_to==null||r.delivery_date_to=="")&&r.setError("delivery_date_to",t("Ein Liefertermin muss angegeben werden.")),r.hasErrors||_("stepSubmit")}const u={props:e,emit:_,get form(){return r},set form(g){r=g},today:s,dateNowFormatted:p,validate:y,InputError:b,InputLabel:w,PrimaryButton:I,SecondaryButton:k,TextInput:V};return Object.defineProperty(u,"__isScriptSetup",{enumerable:!1,value:!0}),u}},F={class:"space-y-2"},L={class:"grid grid-cols-1 gap-2 sm:grid-cols-3"},q={class:"grow pr-8 text-sm"},B={class:"block font-semibold"},N={class:"block text-sm text-gray-900"},D={class:"block"},T={class:"block"},O={class:"block"},P={key:0,class:"block"},j={class:"flex w-full flex-col gap-4 sm:flex-row sm:items-center sm:gap-14 md:w-1/3"},C={class:"grow space-y-4"},U={class:"flex flex-col gap-3 sm:flex-row sm:items-center sm:gap-2"},A={class:"grow"},z={class:"space-y-1"},G={class:"grow"},W={class:"flex items-center gap-4"};function Z(a,l,n,e,_,r){return c(),f(E,null,[o("div",null,[o("div",F,[o("div",L,[o("span",q,[o("span",B,i(n.request.company_location_name),1),o("div",N,[o("span",D,i(n.request.company_location_street),1),o("span",T,[o("strong",null,i(a.$t("Lieferadresse:")),1),m(" "+i(n.request.company_location_post_code)+" "+i(n.request.company_location_city),1)]),o("span",O,[o("strong",null,i(a.$t("Be- und Entlademöglichkeit:")),1),m(" "+i(n.request.company_location_loading_option),1)]),n.request.additional_information?(c(),f("span",P,[o("strong",null,i(a.$t("Zusätzliche Informationen:")),1),m(" "+i(n.request.additional_information),1)])):h("",!0)])])])])]),o("div",j,[o("div",C,[o("div",null,[d(e.InputLabel,{for:"valid_to",value:a.$t("Angebot gültig bis")},null,8,["value"]),d(e.TextInput,{id:"valid_to",ref:"valid_toInput",type:"date",min:e.dateNowFormatted,modelValue:e.form.valid_to,"onUpdate:modelValue":l[0]||(l[0]=s=>e.form.valid_to=s),onInput:l[1]||(l[1]=s=>a.$emit("update:modelValue",s.target.value)),class:"mt-1 block w-full"},null,8,["min","modelValue"]),d(e.InputError,{message:n.formData.errors.valid_to,class:"mt-2"},null,8,["message"])]),o("div",U,[o("div",A,[d(e.InputLabel,{for:"delivery_date_from",value:a.$t("Liefertermin von")},null,8,["value"]),o("div",z,[d(e.TextInput,{id:"delivery_date_from",ref:"delivery_date_fromInput",type:"date",min:e.dateNowFormatted,modelValue:e.form.delivery_date_from,"onUpdate:modelValue":l[2]||(l[2]=s=>e.form.delivery_date_from=s),onInput:l[3]||(l[3]=s=>a.$emit("update:modelValue",s.target.value)),class:"mt-1 block w-full","help-text":"test"},null,8,["min","modelValue"])]),d(e.InputError,{message:n.formData.errors.delivery_date_from,class:"mt-2"},null,8,["message"])]),o("div",G,[d(e.InputLabel,{for:"delivery_date_to",value:a.$t("Liefertermin bis")},null,8,["value"]),d(e.TextInput,{id:"delivery_date_to",ref:"delivery_date_toInput",type:"date",min:e.dateNowFormatted,modelValue:e.form.delivery_date_to,"onUpdate:modelValue":l[4]||(l[4]=s=>e.form.delivery_date_to=s),onInput:l[5]||(l[5]=s=>a.$emit("update:modelValue",s.target.value)),class:"mt-1 block w-full"},null,8,["min","modelValue"]),d(e.InputError,{message:n.formData.errors.delivery_date_to,class:"mt-2"},null,8,["message"])])])])]),o("div",W,[d(e.PrimaryButton,{type:"button",onClick:e.validate},{default:v(()=>[m(i(a.$t("Weiter")),1)]),_:1}),d(e.SecondaryButton,{type:"link",href:a.route("marketplace.index")},{default:v(()=>[m(i(a.$t("Abbrechen")),1)]),_:1},8,["href"])])],64)}const Y=S(x,[["render",Z],["__file","/var/www/development/resources/js/Pages/Offer/FormStep1.vue"]]);export{Y 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.