1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,335007,(e,t,n)=>{t.exports=e.r(276082)},220613,e=>{"use strict";let t="meta-pixel-script";function n(){return!0===function(){try{let e=localStorage.getItem("sloothy_cookie_consent_v1");if(e){let t=JSON.parse(e);return{statistics:t?.statistics===!0,marketing:t?.marketing===!0}}let t=localStorage.getItem("sloothy_consent");if("granted"===t)return{statistics:!0,marketing:!0};return{statistics:!1,marketing:!1}}catch{return{statistics:!1,marketing:!1}}}().marketing}let r=!1;e.s(["hasMarketingConsent",0,n,"initMetaPixel",0,function(){if(!("u"<typeof document)&&!r&&n()){if(!window.fbq||!0!==window.fbq.loaded){let e=(...t)=>{e.callMethod?e.callMethod.apply(e,t):e.queue?.push(t)};e.push=e,e.loaded=!0,e.version="2.0",e.queue=[],window.fbq=e,window._fbq||(window._fbq=e)}if(!document.getElementById(t)){let e=document.createElement("script");e.async=!0,e.src="https://connect.facebook.net/en_US/fbevents.js",e.id=t;let n=document.getElementsByTagName("script")[0];n?.parentNode?.insertBefore(e,n)}window.fbq?.("init","1792579071729720"),window.fbq?.("track","PageView"),r=!0}},"isMetaPixelInitialized",0,function(){return r},"revokeMetaPixel",0,function(){r=!1;try{window.fbq&&(window.fbq=()=>void 0),window._fbq=void 0,document.getElementById(t)?.remove()}catch{}!function(){if("u"<typeof document)return;let e=window.location.hostname,t=new Set([e,`.${e}`]),n=e.split(".");for(let e of(n.length>1&&t.add(`.${n.slice(-2).join(".")}`),document.cookie.split(";"))){let n=e.split("=")[0]?.trim();if(n&&/^_fbp$|^_fbc$/.test(n)){for(let e of t)document.cookie=`${n}=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; domain=${e}`;document.cookie=`${n}=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/`}}}()},"trackLead",0,function(e,t){n()&&r&&window.fbq&&window.fbq("track","Lead",e??{},t?{eventID:t}:void 0)},"trackPageView",0,function(){n()&&r&&window.fbq&&window.fbq("track","PageView")},"trackViewContent",0,function(e){n()&&r&&window.fbq&&window.fbq("track","ViewContent",{content_name:e})}])},656175,e=>{"use strict";let t="sloothy_lead_tracking_v1",n=["utm_source","utm_medium","utm_campaign","utm_term","utm_content","gclid","fbclid"];function r(e){if("u"<typeof document)return;let t=document.cookie.split(";").map(e=>e.trim()).find(t=>t.startsWith(`${e}=`));return t?decodeURIComponent(t.slice(e.length+1)):void 0}function i(){try{let e=sessionStorage.getItem(t);if(!e)return null;let n=JSON.parse(e);return n&&"object"==typeof n?n:null}catch{return null}}e.s(["captureLeadTracking",0,function(){try{let e=i(),r=new URLSearchParams(window.location.search),s={};for(let e of n){let t=r.get(e);t&&(s[e]=t)}if(e&&0===Object.keys(s).length)return;let a={...e??{referrer:document.referrer||void 0,landing_page:window.location.href},...s};sessionStorage.setItem(t,JSON.stringify(a))}catch{}},"collectLeadTracking",0,function(){let e=i()??{},t={};for(let n of["utm_source","utm_medium","utm_campaign","utm_term","utm_content","gclid"]){let r=e[n];r&&(t[n]=r)}e.landing_page&&(t.landing_page=e.landing_page);let n=r("_fbp"),s=r("_fbc");return{...Object.keys(t).length>0?{utm:t}:{},pageUrl:window.location.href,...e.referrer?{referrer:e.referrer}:{},...e.fbclid?{fbclid:e.fbclid}:{},...n?{fbp:n}:{},...s?{fbc:s}:{}}}])},922160,e=>{"use strict";var t=e.i(949866),n=e.i(335007),r=e.i(451004),i=e.i(656175),s=e.i(220613);let a="sloothy_cookie_consent_v1",o="sloothy:open-cookie-settings",c="sloothy:consent-changed",l="cookie-settings-link";function u(){window.dataLayer=window.dataLayer||[],window.gtag||(window.gtag=function(){window.dataLayer.push(arguments)})}function d(e){try{localStorage.setItem(a,JSON.stringify(e))}catch{}}function f(){try{let e=localStorage.getItem(a);if(e){let t=JSON.parse(e);return{statistics:t?.statistics===!0,marketing:t?.marketing===!0}}let t=localStorage.getItem("sloothy_consent");if("granted"===t||"denied"===t){let e="granted"===t?{statistics:!0,marketing:!0}:{statistics:!1,marketing:!1};return d(e),e}return null}catch{return null}}function h(e){let t,n;u(),t=e.statistics?"granted":"denied",n=e.marketing?"granted":"denied",window.gtag("consent","update",{ad_storage:n,ad_user_data:n,ad_personalization:n,analytics_storage:t}),e.statistics&&function(){if("u"<typeof document||document.getElementById("gtm-script"))return;u(),window.dataLayer.push({"gtm.start":Date.now(),event:"gtm.js"});let e=document.getElementsByTagName("script")[0],t=document.createElement("script");t.id="gtm-script",t.async=!0,t.src="https://www.googletagmanager.com/gtm.js?id=GTM-N63PFMRR",e?.parentNode?.insertBefore(t,e)}(),e.marketing?(0,s.initMetaPixel)():(0,s.revokeMetaPixel)(),e.statistics||function(){if("u"<typeof document)return;let e=window.location.hostname,t=new Set([e,`.${e}`]),n=e.split(".");n.length>1&&t.add(`.${n.slice(-2).join(".")}`);let r=["/",window.location.pathname];for(let e of document.cookie.split(";")){let n=e.split("=")[0]?.trim();if(n&&/^_ga|^_gid$|^_gat/.test(n))for(let e of t){for(let t of r)document.cookie=`${n}=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=${t}; domain=${e}`;document.cookie=`${n}=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/`}}}();try{window.dispatchEvent(new CustomEvent(c,{detail:e}))}catch{}}e.s(["CONSENT_CHANGED_EVENT",0,c,"CookieConsent",0,function(){let[e,c]=(0,r.useState)(!1),[u,m]=(0,r.useState)(!1),[g,p]=(0,r.useState)(!1),[w,b]=(0,r.useState)(!1),y=(0,n.usePathname)(),k=(0,r.useRef)(null);(0,r.useEffect)(()=>{(0,i.captureLeadTracking)();let e=f();e?(p(e.statistics),b(e.marketing),h(e)):c(!0);let t=()=>{let e=f()??{statistics:!1,marketing:!1};p(e.statistics),b(e.marketing),c(!0)};window.sloothyOpenCookieSettings=t,window.sloothyRevokeConsent=()=>{let e={statistics:!1,marketing:!1};d(e),h(e),p(!1),b(!1),c(!0)},window.addEventListener(o,t);let n=e=>{let n=e.target;n?.closest?.('a[href="#cookie-einstellungen"]')&&(e.preventDefault(),t())};if(document.addEventListener("click",n),!document.getElementById(l)){let e=document.querySelector("footer.footer .legal");if(e){let t=document.createElement("a");t.id=l,t.href="#cookie-einstellungen",t.textContent="Cookie-Einstellungen",e.appendChild(t)}}let r=e=>{if(e.key!==a)return;let t=f()??{statistics:!1,marketing:!1};p(t.statistics),b(t.marketing),h(t)};return window.addEventListener("storage",r),()=>{window.removeEventListener(o,t),window.removeEventListener("storage",r),document.removeEventListener("click",n)}},[]),(0,r.useEffect)(()=>
1{if(null===k.current){k.current=y;return}k.current!==y&&(k.current=y,(0,s.trackPageView)())},[y]);let v=e=>{d(e),h(e),p(e.statistics),b(e.marketing),c(!1)};return(0,t.jsx)("div",{className:"consent-v2",role:"dialog","aria-live":"polite","aria-label":"Cookie-Einstellungen",hidden:!e,children:(0,t.jsxs)("div",{className:"consent-v2-box",children:[(0,t.jsx)("p",{className:"consent-v2-title",children:"Cookies für Statistik und Werbung?"}),(0,t.jsxs)("p",{className:"consent-v2-text",children:["Notwendige Cookies laufen immer. Statistik und Marketing nur mit Ihrer Zustimmung, jederzeit widerrufbar über âCookie-Einstellungenâ im Footer. Details in der"," ",(0,t.jsx)("a",{href:"/datenschutz/",children:"Datenschutzerklärung"}),"."]}),u?(0,t.jsxs)("div",{className:"consent-v2-cats",children:[(0,t.jsxs)("label",{className:"consent-v2-cat",children:[(0,t.jsx)("input",{type:"checkbox",checked:g,onChange:e=>p(e.target.checked)}),(0,t.jsxs)("span",{children:[(0,t.jsx)("strong",{children:"Statistik"}),(0,t.jsx)("span",{className:"consent-v2-cat-desc",children:"Hilft uns zu verstehen, wie die Website genutzt wird, damit wir sie laufend verbessern können (anonymisierte Reichweitenmessung)."})]})]}),(0,t.jsxs)("label",{className:"consent-v2-cat",children:[(0,t.jsx)("input",{type:"checkbox",checked:w,onChange:e=>b(e.target.checked)}),(0,t.jsxs)("span",{children:[(0,t.jsx)("strong",{children:"Marketing"}),(0,t.jsxs)("span",{className:"consent-v2-cat-desc",children:["Ermöglicht uns, den Erfolg unserer Werbung zu messen und Ihnen relevante Angebote zu zeigen. Eingesetzte Dienste und Speicherdauern: siehe"," ",(0,t.jsx)("a",{href:"/datenschutz/",children:"Datenschutzerklärung"}),"."]})]})]})]}):null,(0,t.jsxs)("div",{className:"consent-v2-btns",children:[(0,t.jsx)("button",{className:"btn consent-v2-decline",type:"button",onClick:()=>v({statistics:!1,marketing:!1}),children:"Nur notwendige"}),u?(0,t.jsx)("button",{className:"btn consent-v2-decline",type:"button",onClick:()=>v({statistics:g,marketing:w}),children:"Auswahl speichern"}):null,(0,t.jsx)("button",{className:"btn btn-primary consent-v2-accept",type:"button",onClick:()=>v({statistics:!0,marketing:!0}),children:"Alle akzeptieren"})]}),u?null:(0,t.jsx)("button",{className:"consent-v2-more",type:"button",onClick:()=>m(!0),children:"Einstellungen anpassen"})]})})}])},725704,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={cancelIdleCallback:function(){return a},requestIdleCallback:function(){return s}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});let s="u">typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},a="u">typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},499502,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={ESCAPE_REGEX:function(){return a},htmlEscapeAttributeString:function(){return u},htmlEscapeJsonString:function(){return l}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});let s={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},a=/[&><\u2028\u2029]/g,o={"&":"&",'"':""","'":"'","<":"<",">":">"},c=/[&"'<>]/g;function l(e){return e.replace(a,e=>s[e])}function u(e){return e.replace(c,e=>o[e])}},637341,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={default:function(){return k},handleClientScriptLoad:function(){return w},initScriptLoader:function(){return b}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});let s=e.r(481258),a=e.r(744066),o=e.r(949866),c=s._(e.r(751701)),l=a._(e.r(451004)),u=e.r(30736),d=e.r(449284),f=e.r(725704),h=e.r(499502),m=new Map,g=new Set,p=e=>{let{src:t,id:n,onLoad:r=()=>{},onReady:i=null,dangerouslySetInnerHTML:s,children:a="",strategy:o="afterInteractive",onError:l,stylesheets:u}=e,f=n||t;if(f&&g.has(f))return;if(m.has(t)){g.add(f),m.get(t).then(r,l);return}let h=()=>{i&&i(),g.add(f)},p=document.createElement("script"),w=new Promise((e,t)=>
1{p.addEventListener("load",function(t){e(),r&&r.call(this,t),h()}),p.addEventListener("error",function(e){t(e)})}).catch(function(e){l&&l(e)});s?(p.innerHTML=s.__html||"",h()):a?(p.textContent="string"==typeof a?a:Array.isArray(a)?a.join(""):"",h()):t&&(p.src=t,m.set(t,w)),(0,d.setAttributesFromProps)(p,e),"worker"===o&&p.setAttribute("type","text/partytown"),p.setAttribute("data-nscript",o),u&&(e=>{if(c.default.preinit)return e.forEach(e=>{c.default.preinit(e,{as:"style"})});if("u">typeof window){let t=document.head;e.forEach(e=>{let n=document.createElement("link");n.type="text/css",n.rel="stylesheet",n.href=e,t.appendChild(n)})}})(u),document.body.appendChild(p)};function w(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,f.requestIdleCallback)(()=>p(e))}):p(e)}function b(e){e.forEach(w),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");g.add(t)})}function y(e){let{id:t,src:n="",onLoad:r=()=>{},onReady:i=null,strategy:s="afterInteractive",onError:a,stylesheets:d,...m}=e,{updateScripts:w,scripts:b,getIsSsr:y,appDir:k,nonce:v}=(0,l.useContext)(u.HeadManagerContext);v=m.nonce||v;let x=(0,l.useRef)(!1);(0,l.useEffect)(()=>{let e=t||n;x.current||(i&&e&&g.has(e)&&i(),x.current=!0)},[i,t,n]);let j=(0,l.useRef)(!1);if((0,l.useEffect)(()=>{if(!j.current){if("afterInteractive"===s)p(e);else"lazyOnload"===s&&("complete"===document.readyState?(0,f.requestIdleCallback)(()=>p(e)):window.addEventListener("load",()=>{(0,f.requestIdleCallback)(()=>p(e))}));j.current=!0}},[e,s]),("beforeInteractive"===s||"worker"===s)&&(w?(b[s]=(b[s]||[]).concat([{id:t,src:n,onLoad:r,onReady:i,onError:a,...m,nonce:v}]),w(b)):y&&y()?g.add(t||n):y&&!y()&&p({...e,nonce:v})),k){if(d&&d.forEach(e=>{c.default.preinit(e,{as:"style"})}),"beforeInteractive"===s)if(!n)return m.dangerouslySetInnerHTML&&(m.children=m.dangerouslySetInnerHTML.__html,delete m.dangerouslySetInnerHTML),(0,o.jsx)("script",{nonce:v,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,h.htmlEscapeJsonString)(JSON.stringify([0,{...m,id:t}]))})`}});else return c.default.preload(n,m.integrity?{as:"script",integrity:m.integrity,nonce:v,crossOrigin:m.crossOrigin}:{as:"script",nonce:v,crossOrigin:m.crossOrigin}),(0,o.jsx)("script",{nonce:v,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,h.htmlEscapeJsonString)(JSON.stringify([n,{...m,id:t}]))})`}});"afterInteractive"===s&&n&&c.default.preload(n,m.integrity?{as:"script",integrity:m.integrity,nonce:v,crossOrigin:m.crossOrigin}:{as:"script",nonce:v,crossOrigin:m.crossOrigin})}return null}Object.defineProperty(y,"__nextScript",{value:!0});let k=y;("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},341089,e=>{"use strict";var t=e.i(949866),n=e.i(335007),r=e.i(451004);let i="https://chatwoot.sailrs.dev",s="qGx7XVSUQeVt97YQcBg3K9oq",a="6LgPbDDNcRusd2YtL6koTbqE",o="sloothy.chatwoot.contact_id",c="sloothy.chatwoot.conversation_id",l=e=>{try{return localStorage.getItem(e)}catch{return null}},u=(e,t)=>{try{localStorage.setItem(e,t)}catch{}};async function d(e,t){let n=await fetch(`${i}/public/api/v1${e}`,{...t,headers:{"Content-Type":"application/json",...t?.headers||{}}});if(!n.ok)throw Error(`Chatwoot API ${n.status}`);return n.json()}async function f(){let e=l(o);if(e)return e;try{if((await fetch(`${i}/public/api/v1/inboxes/${s}/contacts/${a}`)).ok)return u(o,a),a}catch{}let t=await d(`/inboxes/${s}/contacts`,{method:"POST",body:JSON.stringify({name:"Website-Besucher"})});return u(o,t.source_id),t.source_id}async function h(e,t){let n=l(c);if(n){let e=Number(n);if(Number.isFinite(e)&&e>0)return e}let r=await d(`/inboxes/${s}/contacts/${e}/conversations`,{method:"POST",body:JSON.stringify({custom_attributes:t})});return u(c,String(r.id)),r.id}async function m(e,t){let n=await d(`/inboxes/${s}/contacts/${e}/conversations/${t}/messages`);return Array.isArray(n)?n:n.payload??[]}async function g(e,t,n,r){return d(`/inboxes/${s}/contacts/${e}/conversations/${t}/messages`,{method:"POST",body:JSON.stringify({content:n,content_attributes:r})})}async function p(e,t){try{await d(`/inboxes/${s}/contacts/${e}`,{method:"PATCH",body:JSON.stringify({custom_attributes:t})})}catch{}}let w=()=>(0,t.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,"aria-hidden":"true",children:(0,t.jsx)("path",{d:"M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5Z",strokeLinecap:"round",strokeLinejoin:"round"})}),b=()=>(0,t.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,"aria-hidden":"true",children:(0,t.jsx)("path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.127.96.361 1.903.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.907.339 1.85.573 2.81.7A2 2 0 0 1 22 16.92Z",strokeLinecap:"round",strokeLinejoin:"round"})}),y=()=>(0,t.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,"aria-hidden":"true",children:(0,t.jsx)("path",{d:"M18 6 6 18M6 6l12 12",strokeLinecap:"round"})}),k=()=>(0,t.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,"aria-hidden":"true",children:(0,t.jsx)("path",{d:"m22 2-7 20-4-9-9-4 20-7Z",strokeLinecap:"round",strokeLinejoin:"round"})}),v=()=>(0,t.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,"aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M12 2a3 3 0 0 1 3 3v6a3 3 0 0 1-6 0V5a3 3 0 0 1 3-3Z",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M19 10v1a7 7 0 0 1-14 0v-1M12 18v4",strokeLinecap:"round",strokeLinejoin:"round"})]});e.s(["ChatwootWidget",0,function(){let[e,i]=(0,r.useState)(!1),[s,a]=(0,r.useState)([]),[o,c]=(0,r.useState)(""),[l,u]=(0,r.useState)(!1),[d,x]=(0,r.useState)(null),[j,_]=(0,r.useState)(!1),S=(0,r.useRef)(null),E=(0,r.useRef)(null),N=(0,r.useRef)(null),C=(0,r.useRef)(null),I=(0,n.usePathname)()||"/",L=(0,r.useMemo)(()=>
1"/"===I?"Startseite":I.split("/").filter(Boolean).map(e=>decodeURIComponent(e).replace(/-/g," ")).join(" ⺠"),[I]),T=(0,r.useMemo)(()=>({page_path:I,page_title:L,page_url:window.location.href}),[I,L]),M=(0,r.useCallback)(async()=>{x(null);try{let e=await f();S.current=e;let t=await h(e,T);E.current=t,a(await m(e,t)),_(!0),p(e,T)}catch(e){x(e instanceof Error?e.message:"Verbindung zum Chat fehlgeschlagen.")}},[T]);(0,r.useEffect)(()=>{e&&!j&&M()},[e,j,M]),(0,r.useEffect)(()=>{if(!e||!j)return;let t=setInterval(async()=>{if(S.current&&E.current)try{a(await m(S.current,E.current))}catch{}},4e3);return()=>clearInterval(t)},[e,j]),(0,r.useEffect)(()=>{S.current&&p(S.current,T)},[T]),(0,r.useEffect)(()=>{if("u">typeof document)return document.body.style.overflow=e?"hidden":"",()=>{document.body.style.overflow=""}},[e]),(0,r.useEffect)(()=>{N.current&&(N.current.scrollTop=N.current.scrollHeight)},[s]),(0,r.useEffect)(()=>{e&&j&&setTimeout(()=>C.current?.focus(),60)},[e,j]),(0,r.useEffect)(()=>{let e=["navChat","navAsk"].map(e=>document.getElementById(e)).filter(e=>!!e);if(0===e.length)return;let t=()=>i(!0);for(let n of e)n.addEventListener("click",t);return()=>{for(let n of e)n.removeEventListener("click",t)}},[]);let[O,$]=(0,r.useState)(!1),[P,q]=(0,r.useState)(!1),A=(0,r.useRef)(null),B=(0,r.useRef)(""),R=(0,r.useRef)(null);(0,r.useEffect)(()=>{let e=window;return q(!!(e.SpeechRecognition||e.webkitSpeechRecognition)),()=>{R.current&&clearTimeout(R.current),A.current?.abort?.()}},[]);let[z,D]=(0,r.useState)(null),J=async()=>{let e=o.trim();if(!e||l||!S.current||!E.current)return;u(!0),x(null);let t={id:Date.now(),content:e,message_type:0,created_at:Math.floor(Date.now()/1e3)};a(e=>[...e,t]),c("");try{let n=await g(S.current,E.current,e,T);a(e=>[...e.filter(e=>e.id!==t.id),n])}catch(n){x(n instanceof Error?n.message:"Nachricht konnte nicht gesendet werden."),a(e=>e.filter(e=>e.id!==t.id)),c(e)}finally{u(!1),setTimeout(()=>C.current?.focus(),0)}},H=s.filter(e=>2!==e.message_type);return e?(0,t.jsxs)("div",{className:"cw-overlay",role:"dialog","aria-modal":"true","aria-label":"Chat mit Sloothy",children:[(0,t.jsx)("button",{type:"button",className:"cw-backdrop","aria-label":"Chat schlieÃen",onClick:()=>i(!1)}),(0,t.jsxs)("div",{className:"cw-surface",children:[(0,t.jsxs)("header",{className:"cw-header",children:[(0,t.jsxs)("div",{className:"cw-brand",children:[(0,t.jsx)("img",{src:"/assets/mascot-sm.webp",alt:"Sloothy",width:52,height:52}),(0,t.jsxs)("div",{className:"cw-title",children:[(0,t.jsx)("b",{children:"Frag Sloothy"}),(0,t.jsxs)("span",{className:"cw-status",children:[(0,t.jsxs)("span",{className:"cw-dot",children:[(0,t.jsx)("i",{}),(0,t.jsx)("i",{})]}),"Sie chatten mit unserem Team - wir antworten so schnell wie möglich"]})]})]}),(0,t.jsxs)("div",{className:"cw-actions",children:[(0,t.jsx)("a",{href:"tel:+4971196881404",className:"cw-iconbtn","aria-label":"Sloothy anrufen",children:(0,t.jsx)(b,{})}),(0,t.jsx)("button",{type:"button",className:"cw-iconbtn","aria-label":"Chat schlieÃen",onClick:()=>i(!1),children:(0,t.jsx)(y,{})})]})]}),(0,t.jsxs)("div",{className:"cw-messages",ref:N,children:[j||d?null:(0,t.jsx)("div",{className:"cw-connecting",children:"Verbindung wird hergestelltâ¦"}),j&&0===H.length?(0,t.jsxs)("div",{className:"cw-empty",children:[(0,t.jsx)("span",{className:"cw-spark",children:(0,t.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:26,height:26,"aria-hidden":"true",children:(0,t.jsx)("path",{d:"M12 2l1.9 5.1L19 9l-5.1 1.9L12 16l-1.9-5.1L5 9l5.1-1.9L12 2Z"})})}),(0,t.jsx)("h2",{children:"Hallo, wir sind für Sie da."}),(0,t.jsx)("p",{children:"Stellen Sie Ihre Frage rund um den privaten Immobilienverkauf - wir melden uns persönlich zurück."})]}):null,(0,t.jsx)("ul",{className:"cw-list",children:H.map(e=>{let n=0===e.message_type;return(0,t.jsxs)("li",{className:`cw-row ${n?"visitor":"agent"}`,children:[n?null:(0,t.jsx)("img",{className:"cw-av",src:"/sloothy-chat-avatar.png",alt:e.sender?.name||"Sloothy"}),(0,t.jsx)("div",{className:`cw-bubble ${n?"visitor":"agent"}`,children:e.content})]},e.id)})}),d?(0,t.jsx)("p",{className:"cw-error",children:d}):null]}),(0,t.jsxs)("div",{className:"cw-composer",children:[(0,t.jsxs)("div",{className:"cw-row2",children:[(0,t.jsx)("textarea",{ref:C,value:o,onChange:e=>c(e.target.value),onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),J())},placeholder:"Ihre Nachrichtâ¦",rows:1}),P?(0,t.jsx)("button",{type:"button",className:`cw-mic${O?" on":""}`,onClick:()=>
1{if(O)return void A.current?.stop?.();let e=window,t=e.SpeechRecognition||e.webkitSpeechRecognition;if(!t)return;D(null);let n=new t;n.lang="de-DE",n.interimResults=!0,n.continuous=!0,B.current=o;let r=e=>{R.current&&clearTimeout(R.current),R.current=setTimeout(()=>n.stop(),e)},i=!1;n.onresult=e=>{i=!0,r(3e3);let t="";for(let n of e.results)t+=n[0].transcript;if(!t.trim())return;let n=B.current;c(n?`${n.replace(/\s+$/,"")} ${t}`:t)},n.onend=()=>{R.current&&clearTimeout(R.current),$(!1),i||D(e=>e??"Nichts erkannt â bitte erneut versuchen und direkt lossprechen."),setTimeout(()=>C.current?.focus(),0)},n.onerror=e=>{R.current&&clearTimeout(R.current),$(!1);let t=e?.error;"not-allowed"===t||"service-not-allowed"===t?D("Mikrofon-Zugriff verweigert â bitte im Browser erlauben."):"no-speech"===t?D("Nichts gehört â bitte erneut versuchen."):"network"===t?D("Die Spracherkennung braucht eine aktive Internetverbindung."):"aborted"!==t&&D("Spracheingabe ist in diesem Browser leider nicht verfügbar.")},A.current=n,$(!0),n.start(),r(8e3)},"aria-label":O?"Aufnahme stoppen":"Spracheingabe starten","aria-pressed":O,children:(0,t.jsx)(v,{})}):null,(0,t.jsx)("button",{type:"button",className:"cw-send",onClick:()=>void J(),disabled:!o.trim()||l||!j,"aria-label":"Nachricht senden",children:(0,t.jsx)(k,{})})]}),(0,t.jsx)("p",{className:`cw-hint${!O&&z?" cw-hint-error":""}`,children:O?"Sprechen Sie jetzt â Ihr Text erscheint im Feld.":z??"Enter senden · Shift+Enter Zeilenumbruch"})]})]})]}):(0,t.jsxs)("button",{type:"button",className:"cw-launcher","aria-label":"Chat mit Sloothy öffnen",onClick:()=>i(!0),children:[(0,t.jsx)(w,{}),(0,t.jsx)("span",{children:"Frag Sloothy"})]})}])},595042,e=>{"use strict";var t=e.i(949866),n=e.i(451004);let r="sloothy_inapp_hint_dismissed";e.s(["InAppBrowserHint",0,function(){let[e,i]=(0,n.useState)(!1);return((0,n.useEffect)(()=>{var e;try{if("1"===sessionStorage.getItem(r))return}catch{}e=navigator.userAgent,/\bFBAN|\bFBAV|FB_IAB|FBIOS|Instagram|Line\/|GSA\//i.test(e)&&i(!0)},[]),e)?(0,t.jsxs)("div",{role:"status",style:{position:"sticky",top:0,zIndex:60,display:"flex",alignItems:"center",gap:"12px",padding:"10px 16px",background:"#23352c",color:"#fff",fontSize:"13.5px",lineHeight:1.4},children:[(0,t.jsxs)("span",{style:{flex:1},children:["Für die beste Erfahrung öffnen Sie diese Seite im Browser: oben rechts auf ",(0,t.jsx)("b",{children:"â¯"})," tippen und ",(0,t.jsx)("b",{children:"âIn Chrome/Safari öffnenâ"})," wählen."]}),(0,t.jsx)("button",{type:"button",onClick:()=>{i(!1);try{sessionStorage.setItem(r,"1")}catch{}},"aria-label":"Hinweis schlieÃen",style:{flexShrink:0,background:"rgba(255,255,255,.15)",color:"#fff",border:"none",borderRadius:"8px",width:"28px",height:"28px",fontSize:"16px",cursor:"pointer"},children:"Ã"})]}):null}])}]);
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.