PageSourceSearch

https://www.pedali.de/_nuxt/D4_Jf23S.js

js pedali.de collected 2026-10-10 01:23:32 UTC 5,373 bytes, 1 lines download raw bytes

1import{_ as $}from"./QZseTsX_.js";import{o as q,s as v,d as M,a as P,_ as W}from"./DB-Iws9f.js";import{_ as G}from"./CirmUVrc.js";import{c8 as V,c_ as H,c4 as I,Y as A,aR as L,d3 as O,de as j,d8 as Y,cS as Z,aH as _,aD as m,ct as a,aE as D,dq as r,bP as J,c1 as c,aO as s,dr as K,dh as Q,aN as y,aa as X,ci as S,aF as ee,ap as ae,aC as E,bj as te,bf as se,bO as ne}from"./BcZGtWxY.js";const k="Ein Fehler ist aufgetreten. Bitte versuche es später erneut.";function le(w){const o=I({email:"",name:"",companyName:"",message:"",honeypot:""}),f=V(!1),n=V(""),{mutate:N,loading:u,onDone:i,onError:b}=H(A);i(g=>{const d=g.data?.submitDealerContactForm;if(!d){n.value=k;return}if(d.error){n.value=d.message||k;return}f.value=!0}),b(()=>{n.value=k});async function t(){if(n.value="",!w.value)return n.value=k,!1;try{await N({email:o.email.trim(),name:o.name.trim()||void 0,companyName:o.companyName.trim()||void 0,message:o.message.trim(),dealerPageUrl:w.value,honeypot:o.honeypot.trim()||void 0})}catch{}return f.value}return{form:o,isSubmitting:u,isSubmitted:f,submitError:n,submit:t}}const oe={key:1,id:"dealer-url-hint",class:"text-sm text-error"},re={class:"mb-4 flex flex-col gap-4 sm:flex-row"},ie={class:"absolute -left-[9999px]","aria-hidden":"true"},me={class:"mb-4 text-[13px] leading-relaxed text-ink-faint"},ue={key:0,role:"alert",class:"mb-1 text-sm text-error"},be=L({__name:"fachhaendler-kontakt",setup(w){const o=O(),{baseUrl:f,url:n}=j(),N=q({email:M(),name:v().max(120),companyName:v().max(200),message:v().min(10,"Bitte beschreibe die Änderung (mindestens 10 Zeichen).").max(2e3),honeypot:v()}),u=E(()=>{const x=o.query.url;return typeof x=="string"?x:""}),i=E(()=>u.value?u.value.startsWith("http")?u.value:`${f.value}${u.value}`:""),b=V(),{form:t,isSubmitting:g,isSubmitted:d,submitError:U,submit:F}=le(i);async function B(){await F()&&(await ne(),b.value?.focus())}return Y({title:"Änderung melden | Pedali",ogTitle:"Änderung melden | Pedali",description:"Melde fehlerhafte Händlerinformationen auf Pedali.",ogImage:se(),ogSiteName:te(),ogUrl:n.value}),Z({link:[{rel:"canonical",href:n.value}]}),(x,e)=>{const h=$,p=W,C=G,z=X,R=ae,T=P;return c(),_("div",{class:J(["mx-auto w-full max-w-screen-sm px-4 pt-8 pb-16",{grow:!a(d)}])},[e[9]||(e[9]=m("h1",{class:"mb-2 max-w-md text-3xl leading-tight font-bold"}," Daten deines Geschäfts aktualisieren ",-1)),e[10]||(e[10]=m("p",{class:"mb-8 text-base leading-normal text-ink-subtle"}," Du hast festgestellt, dass die Informationen zu deinem Geschäft auf Pedali nicht mehr aktuell sind? Teile uns die Änderungen mit, wir kümmern uns darum. ",-1)),a(d)?(c(),_("div",{key:0,ref_key:"successRef",ref:b,tabindex:"-1",role:"status","aria-live":"polite",class:"rounded-sm border border-success bg-success-tint p-4 text-base text-success outline-none"}," Vielen Dank! Wir haben deine Nachricht erhalten und melden uns bei dir. ",512)):(c(),D(T,{key:1,schema:a(N),state:a(t),onSubmit:B},{default:r(()=>[s(p,{label:"Deine E-Mail-Adresse",name:"email",required:"",class:"mb-4"},{default:r(()=>[s(h,{modelValue:a(t).email,"onUpdate:modelValue":e[0]||(e[0]=l=>a(t).email=l),type:"email",autocomplete:"email",placeholder:"[email protected]",required:"",class:"w-full"},null,8,["modelValue"])]),_:1}),s(p,{label:"Betroffene Seite",name:"dealerUrl",class:"mb-4"},{default:r(()=>[a(i)?(c(),D(h,{key:0,"model-value":a(i),type:"url",readonly:"",ui:{base:"bg-elevated text-dimmed"},class:"w-full"},null,8,["model-value"])):(c(),_("p",oe," Bitte öffne das Formular über den Link auf der Händlerseite. "))]),_:1}),m("div",re,[s(p,{label:"Dein Name",name:"name",hint:"(optional)",class:"flex-1"},{default:r(()=>[s(h,{modelValue:a(t).name,"onUpdate:modelValue":e[1]||(e[1]=l=>a(t).name=l),autocomplete:"name",maxlength:"120",placeholder:"Vor- und Nachname",class:"w-full"},null,8,["modelValue"])]),_:1}),s(p,{label:"Firmenname",name:"companyName",hint:"(optional)",class:"flex-1"},{default:r(()=>[s(h,{modelValue:a(t).companyName,"onUpdate:modelValue":e[2]||(e[2]=l=>a(t).companyName=l),autocomplete:"organization",maxlength:"200",placeholder:"Name des Geschäfts",class:"w-full"},null,8,["modelValue"])]),_:1})]),s(p,{label:"Was hat sich geändert?",name:"message",required:"",class:"mb-4"},{default:r(()=>[s(C,{modelValue:a(t).message,"onUpdate:modelValue":e[3]||(e[3]=l=>a(t).message=l),maxlength:"2000",rows:5,placeholder:"z.B. Neue Öffnungszeiten, geänderte Adresse, falsche Telefonnummer...",required:"",class:"w-full"},null,8,["modelValue"])]),_:1}
1),m("div",ie,[e[5]||(e[5]=m("label",{for:"website"},"Website",-1)),K(m("input",{id:"website","onUpdate:modelValue":e[4]||(e[4]=l=>a(t).honeypot=l),type:"text",name:"website",tabindex:"-1",autocomplete:"off"},null,512),[[Q,a(t).honeypot]])]),m("p",me,[e[7]||(e[7]=y(" Mit dem Absenden des Formulars werden deine Daten gemäss unserer ",-1)),s(z,{to:"/datenschutz",class:"underline hover:text-black"},{default:r(()=>[...e[6]||(e[6]=[y("Datenschutzerklärung",-1)])]),_:1}),e[8]||(e[8]=y(" verarbeitet, um deine Änderungsmeldung zu bearbeiten. ",-1))]),a(U)?(c(),_("p",ue,S(a(U)),1)):ee("",!0),s(R,{type:"submit",disabled:a(g)||!a(i),"aria-describedby":a(i)?void 0:"dealer-url-hint",class:"mt-1 py-3"},{default:r(()=>[y(S(a(g)?"Wird gesendet...":"Änderung melden"),1)]),_:1},8,["disabled","aria-describedby"])]),_:1},8,["schema","state"]))],2)}}});export{be 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.