1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[572],{1243:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(9946).A)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},2152:(e,t,a)=>{a.d(t,{s:()=>s});function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"function"==typeof window.gtag&&document.cookie.includes("SOUVERA_CONSENT=all")&&"1"!==navigator.doNotTrack&&(window.gtag("event",e,{...t,send_to:"G-JMC9RXVL7E"}),window.__gaDebug&&console.log("[GA4] event sent:",e,t))}},2191:(e,t,a)=>{a.d(t,{CallbackCta:()=>f,CallbackFloatingButton:()=>k});var s=a(5155),r=a(2115),n=a(9946);let l=(0,n.A)("phone-call",[["path",{d:"M13 2a9 9 0 0 1 9 9",key:"1itnx2"}],["path",{d:"M13 6a5 5 0 0 1 5 5",key:"11nki7"}],["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]]);var i=a(4416),c=a(3453),d=a(1243);let o=(0,n.A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),m=(0,n.A)("phone",[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]]);var x=a(6874),p=a.n(x),b=a(2152);let h="w-full border border-line bg-paper px-4 py-3 text-sm text-ink placeholder:text-ink-soft/60 transition-colors duration-150 focus:border-brand",u=e=>{let{locale:t,dict:a,topic:n}=e,l=a.callback,[i,x]=(0,r.useState)("idle"),[u,f]=(0,r.useState)(""),[k,g]=(0,r.useState)(""),j=(0,r.useRef)(""),N=(0,r.useRef)(0);j.current||(j.current="undefined"!=typeof crypto&&"function"==typeof crypto.randomUUID?crypto.randomUUID():"".concat(Date.now(),"-").concat(Math.random().toString(36).slice(2,10)),N.current=Date.now());let w=async e=>{var a;e.preventDefault();let s=e.currentTarget,r=Object.fromEntries(new FormData(s).entries());if(!r.privacy){x("error"),f(l.errors.consentRequired);return}if(!r.ownNumber){x("error"),f(l.errors.ownNumberRequired);return}if(a=function(e){let t=String(e||"").trim().replace(/[^+\d]/g,"");return t?t.startsWith("+")?t:t.startsWith("00")?"+"+t.slice(2):t.startsWith("0")?"+49"+t.slice(1):(t.startsWith("49")&&t.length,"+"+t):""}(r.phone),!/^\+49\d{8,12}$/.test(a)){x("error"),f(l.errors.invalidCountry);return}x("sending"),f("");try{let e=await fetch("/callback-request",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:r.name,phone:r.phone,topic:r.topic||n||"",locale:t,ownNumber:!0,sessionId:j.current,formLoadTs:N.current,website:r.website||""})}),a=await e.json();if(!e.ok||!a.ok)throw Error(a.error||"failed");(0,b.s)("request_callback",{topic:r.topic||n||"",locale:t}),x("success"),s.reset(),g("")}catch(e){x("error"),f("rate_limited"===e.message?l.errors.rateLimited:l.errors.generic)}};return"success"===i?(0,s.jsxs)("div",{className:"border border-line bg-brand-faint p-8 text-center","data-testid":"callback-success",children:[(0,s.jsx)(c.A,{size:36,className:"mx-auto text-brand-deep"}),(0,s.jsx)("h3",{className:"mt-3 font-heading text-xl font-bold text-ink",children:l.successTitle}),(0,s.jsx)("p",{className:"mx-auto mt-2 max-w-md text-sm leading-relaxed text-ink-soft",children:l.successText})]}):(0,s.jsxs)("form",{onSubmit:w,"data-testid":"callback-form",noValidate:!0,children:[(0,s.jsxs)("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2",children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)("label",{htmlFor:"callback-name",className:"mb-1.5 block text-xs font-semibold uppercase tracking-wide text-ink",children:[l.nameLabel," *"]}),(0,s.jsx)("input",{id:"callback-name",name:"name",required:!0,maxLength:64,className:h,"data-testid":"callback-input-name",placeholder:l.namePlaceholder})]}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("label",{htmlFor:"callback-phone",className:"mb-1.5 block text-xs font-semibold uppercase tracking-wide text-ink",children:[l.phoneLabel," *"]}),(0,s.jsx)("input",{id:"callback-phone",name:"phone",type:"tel",required:!0,maxLength:32,value:k,onChange:e=>g(function(e){let t=String(e||"").trim();return/^00/.test(t)?"+"+t.slice(2):/^0/.test(t)?"+49"+t.slice(1):/^49/.test(t)&&t.length>=10?"+"+t:t}(e.target.value)),className:h,"data-testid":"callback-input-phone",placeholder:l.phonePlaceholder})]}),(0,s.jsxs)("div",{className:"sm:col-span-2",children:[(0,s.jsx)("label",{htmlFor:"callback-topic",className:"mb-1.5 block text-xs font-semibold uppercase tracking-wide text-ink",children:l.topicLabel}),(0,s.jsxs)("select",{id:"callback-topic",name:"topic",className:h,"data-testid":"callback-select-topic",defaultValue:n||"",children:[(0,s.jsx)("option",{value:"",children:l.topicPlaceholder}),l.topics.map(e=>(0,s.jsx)("option",{value:e,children:e},e))]})]})]}),(0,s.jsx)("input",{type:"text",name:"website",tabIndex:-1,autoComplete:"off",className:"hidden","aria-hidden":"true"}),(0,s.jsxs)("label",{className:"mt-4 flex items-start gap-3 text-xs leading-relaxed text-ink-soft",children:[(0,s.jsx)("input",{type:"checkbox",name:"ownNumber",required:!0,className:"mt-0.5 h-4 w-4 accent-brand-deep","data-testid":"callback-checkbox-own-number"}),(0,s.jsxs)("span",{children:[l.ownNumberLabel," *"]})]}),(0,s.jsxs)("label",{className:"mt-3 flex items-start gap-3 text-xs leading-relaxed text-ink-soft",children:[(0,s.jsx)("input",{type:"checkbox",name:"privacy",required:!0,className:"mt-0.5 h-4 w-4 accent-brand-deep","data-testid":"callback-checkbox-privacy"}),(0,s.jsxs)("span",{children:[l.privacyPrefix," ",(0,s.jsx)(p(),{href:"/".concat(t,"/datenschutz"),className:"font-medium text-brand-deep underline underline-offset-2 hover:text-brand-dark",children:l.privacyLink})," ",l.privacySuffix," *"]})]}),"error"===i&&(0,s.jsxs)("p",{className:"mt-4 flex items-center gap-2 border border-red-200 bg-red-50 px-4 py-3 text-sm text-red-700","data-testid":"callback-error",children:[(0,s.jsx)(d.A,{size:16})," ",u]}),(0,s.jsxs)("button",{type:"submit",disabled:"sending"===i,"data-testid":"callback-submit-button",className:"mt-5 inline-flex items-center gap-2.5 bg-brand-deep px-7 py-3.5 text-sm font-semibold text-white transition-colors duration-150 hover:bg-brand-dark disabled:opacity-60",children:["sending"===i?(0,s.jsx)(o,{size:16,className:"animate-spin"}):(0,s.jsx)(m,{size:16}),"sending"===i?l.sending:l.submit]}),(0,s.jsx)("p",{className:"mt-3 text-xs text-ink-soft",children:l.note})]})},f=e=>{let{locale:t,dict:a,topic:n=""}=e,c=a.callback,[d,o]=(0,r.useState)(!1);return(0,s.jsxs)("section",{className:"border-t border-line bg-brand-faint","data-testid":"callback-cta-band",children:[(0,s.jsxs)("div",{className:"container-site flex flex-col items-start justify-between gap-6 py-10 md:flex-row md:items-center",children:[(0,s.jsxs)("div",{className:"max-w-2xl",children:[(0,s.jsxs)("p",{className:"flex items-center gap-2 text-sm font-semibold uppercase tracking-wider text-brand-deep",children:[(0,s.jsx)(l,{size:16}),c.bandOverline]}),(0,s.jsx)("h2",{className:"mt-2 font-heading text-2xl font-bold tracking-tight text-ink",children:c.bandTitle}),(0,s.jsx)("p",{className:"mt-2 text-sm leading-relaxed text-ink-soft md:text-base",children:c.bandLead})]}
1),!d&&(0,s.jsxs)("button",{type:"button",onClick:()=>o(!0),"data-testid":"callback-cta-open-button",className:"inline-flex shrink-0 items-center gap-2.5 bg-brand-deep px-7 py-3.5 text-sm font-semibold text-white transition-colors duration-150 hover:bg-brand-dark",children:[(0,s.jsx)(l,{size:16}),c.bandButton]})]}),d&&(0,s.jsx)("div",{className:"container-site pb-10",children:(0,s.jsxs)("div",{className:"max-w-xl border border-line bg-paper p-6 sm:p-8","data-testid":"callback-cta-form",children:[(0,s.jsxs)("div",{className:"mb-4 flex items-center justify-between",children:[(0,s.jsx)("h3",{className:"font-heading text-base font-bold text-ink",children:c.formTitle}),(0,s.jsx)("button",{type:"button",onClick:()=>o(!1),className:"text-ink-soft hover:text-ink","aria-label":c.close,children:(0,s.jsx)(i.A,{size:18})})]}),(0,s.jsx)(u,{locale:t,dict:a,topic:n})]})})]})},k=e=>{let{locale:t,dict:a,topic:n=""}=e,c=a.callback,[d,o]=(0,r.useState)(!1);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("button",{type:"button",onClick:()=>o(!0),"data-testid":"callback-floating-button",className:"fixed bottom-5 right-5 z-[80] inline-flex items-center gap-2.5 bg-brand-deep px-5 py-3.5 text-sm font-semibold text-white shadow-lg transition-all duration-150 hover:bg-brand-dark","aria-label":c.floatingLabel,children:[(0,s.jsx)(l,{size:17}),(0,s.jsx)("span",{className:"hidden sm:inline",children:c.floatingLabel})]}),d&&(0,s.jsx)("div",{className:"fixed inset-0 z-[95] flex items-end justify-center bg-ink-navy/60 p-4 sm:items-center",onClick:()=>o(!1),children:(0,s.jsxs)("div",{className:"w-full max-w-[480px] border border-line bg-paper p-6 shadow-hard sm:p-8",onClick:e=>e.stopPropagation(),role:"dialog","aria-modal":"true","data-testid":"callback-floating-modal",children:[(0,s.jsxs)("div",{className:"mb-4 flex items-center justify-between",children:[(0,s.jsx)("h3",{className:"font-heading text-lg font-bold text-ink",children:c.formTitle}),(0,s.jsx)("button",{type:"button",onClick:()=>o(!1),className:"text-ink-soft hover:text-ink","aria-label":c.close,children:(0,s.jsx)(i.A,{size:20})})]}),(0,s.jsx)("p",{className:"mb-4 text-sm leading-relaxed text-ink-soft",children:c.floatingLead}),(0,s.jsx)(u,{locale:t,dict:a,topic:n})]})})]})}},3453:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(9946).A)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},4416:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(9946).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},9946:(e,t,a)=>{a.d(t,{A:()=>m});var s=a(2115);let r=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),n=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,a)=>a?a.toUpperCase():t.toLowerCase()),l=e=>{let t=n(e);return t.charAt(0).toUpperCase()+t.slice(1)},i=function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return t.filter((e,t,a)=>!!e&&""!==e.trim()&&a.indexOf(e)===t).join(" ").trim()},c=e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0};var d={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let o=(0,s.forwardRef)((e,t)=>{let{color:a="currentColor",size:r=24,strokeWidth:n=2,absoluteStrokeWidth:l,className:o="",children:m,iconNode:x,...p}=e;return(0,s.createElement)("svg",{ref:t,...d,width:r,height:r,stroke:a,strokeWidth:l?24*Number(n)/Number(r):n,className:i("lucide",o),...!m&&!c(p)&&{"aria-hidden":"true"},...p},[...x.map(e=>{let[t,a]=e;return(0,s.createElement)(t,a)}),...Array.isArray(m)?m:[m]])}),m=(e,t)=>{let a=(0,s.forwardRef)((a,n)=>{let{className:c,...d}=a;return(0,s.createElement)(o,{ref:n,iconNode:t,className:i("lucide-".concat(r(l(e))),"lucide-".concat(e),c),...d})});return a.displayName=l(e),a}}}]);
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.