1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5864],{16259:function(e,t,r){r.r(t),r.d(t,{default:function(){return d}});var a=r(57437),n=r(2265),l=r(69151),s=r(2548),i=r(65129),o=r(78576);function c(e){let t=e.trim().split(/\s+/).filter(Boolean);if(t.length<2)return e.trim();let r=t[t.length-1].charAt(0).toUpperCase();return"".concat(t[0]," ").concat(r,".")}function d(e){let{t}=e,[r,d]=(0,n.useState)([]),[m,u]=(0,n.useState)(0),[h,x]=(0,n.useState)(!0),[g,f]=(0,n.useState)(3),[p,v]=(0,n.useState)(null),[b,w]=(0,n.useState)(!1),[j,y]=(0,n.useState)(!1);return((0,n.useEffect)(()=>{let e=new AbortController;return(async()=>{try{let t=await fetch("".concat("https://api.gastinfo.eu","/testimonials/active"),{signal:e.signal});if(t.ok){let e=await t.json();d(e)}}catch(e){}})(),()=>e.abort()},[]),(0,n.useEffect)(()=>{let e=()=>{let e=3;window.innerWidth<768?e=1:window.innerWidth<1024&&(e=2),f(t=>(t!==e&&(u(0),x(!1),setTimeout(()=>x(!0),50)),e))};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,n.useEffect)(()=>{if(r.length<=g||b||j)return;let e=Math.ceil(r.length/g),t=setInterval(()=>{u(t=>{let r=t+1;return r>=e?e:r})},1e4);return()=>clearInterval(t)},[r.length,g,b,j]),(0,n.useEffect)(()=>{if(!(r.length<=g)&&m===Math.ceil(r.length/g)){let e=setTimeout(()=>{x(!1),u(0),setTimeout(()=>x(!0),50)},500);return()=>clearTimeout(e)}},[m,r.length,g]),0===r.length)?null:(0,a.jsxs)("section",{className:"overflow-x-clip py-16 sm:py-24 bg-light",children:[(0,a.jsxs)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[(0,a.jsxs)("div",{className:"text-center mb-16",children:[(0,a.jsx)("div",{className:"inline-flex items-center justify-center w-16 h-16 bg-primary-700 rounded-2xl mb-6",children:(0,a.jsx)(l.u,{name:"message-square-quote",className:"w-8 h-8 text-accent-400"})}),(0,a.jsx)(o.Z,{children:t("testimonials.eyebrow")}),(0,a.jsx)("h2",{className:"text-3xl sm:text-4xl font-bold text-primary-700 mb-4",children:t("testimonials.h2")}),(0,a.jsx)("p",{className:"text-lg text-dark max-w-2xl mx-auto",children:t("testimonials.subtitle")})]}),(0,a.jsxs)("div",{onMouseEnter:()=>w(!0),onMouseLeave:()=>w(!1),children:[(0,a.jsxs)("div",{className:"relative",children:[r.length>g&&(0,a.jsx)("button",{onClick:()=>{x(!0),y(!0);let e=Math.ceil(r.length/g);u(t=>(t-1+e)%e)},className:"absolute left-2 top-1/2 z-10 min-h-12 min-w-12 -translate-y-1/2 rounded-full bg-primary-700 p-3 shadow-lg transition-[background-color,box-shadow,transform] hover:bg-primary-800 hover:shadow-xl active:translate-y-[calc(-50%+1px)] sm:left-0 sm:-translate-x-10 xl:-translate-x-16","aria-label":"Previous testimonials",children:(0,a.jsx)(l.u,{name:"chevron-left",className:"w-6 h-6 text-white group-hover:text-accent-400 transition-colors"})}),(0,a.jsx)("div",{className:"overflow-hidden",children:(0,a.jsx)("div",{className:"flex ".concat(h?"transition-transform duration-500 ease-in-out":""),style:{transform:"translateX(-".concat(100*m,"%)")},children:Array.from({length:Math.ceil(r.length/g)+1}).map((e,n)=>{let i=n===Math.ceil(r.length/g)?0:n;return(0,a.jsx)("div",{className:"w-full flex-shrink-0",children:(0,a.jsx)("div",{className:"grid gap-8 ".concat(1===g?"grid-cols-1":2===g?"grid-cols-2":"grid-cols-3"),children:r.slice(i*g,i*g+g).map(e=>{let r=e.content;if(e.content_translations)try{r=JSON.parse(e.content_translations)[t("_locale")||"de"]||e.content}catch(e){}let{text:n,isTruncated:i}=function(e){if(e.length<=160)return{text:e,isTruncated:!1};let t=e.slice(0,160),r=t.lastIndexOf(" ");return{text:(r>0?t.slice(0,r):t).trimEnd(),isTruncated:!0}}(r);return(0,a.jsxs)("div",{className:"flex h-full flex-col rounded-2xl bg-white shadow-lg hover:shadow-2xl transition-shadow duration-300 border border-gray-100 overflow-hidden",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 px-6 py-4 border-b-2",style:{background:s.Xv.activeWidget,borderColor:"".concat(s.Xv.widgetText,"20")},children:[(0,a.jsx)(l.u,{name:"message-square-quote",className:"w-5 h-5",style:{color:s.Xv.widgetText}}),(0,a.jsx)("span",{className:"font-bold",style:{color:s.Xv.widgetText},children:t("testimonials.cardLabel")})]}),(0,a.jsxs)("div",{className:"flex flex-1 flex-col p-8",children:[(0,a.jsxs)("p",{className:"text-dark text-lg leading-relaxed mb-6",children:["â",n,i?"â¦":"","â",i&&(0,a.jsx)("button",{type:"button",onClick:()=>v({testimonial:e,content:r}),className:"ml-1 font-semibold whitespace-nowrap underline-offset-2 hover:underline",style:{color:s.Xv.purple},children:t("testimonials.readMore")})]}),(0,a.jsxs)("div",{className:"mt-auto flex items-center gap-4 pt-5 border-t border-gray-100",children:[e.avatar_url?(0,a.jsx)("img",{src:e.avatar_url,alt:e.name,className:"w-14 h-14 roun
1ded-full object-cover ring-3 ring-accent-400/30"}):(0,a.jsx)("div",{className:"w-14 h-14 rounded-full bg-gradient-to-br from-primary-700 to-primary-800 flex items-center justify-center text-accent-400 font-bold text-xl ring-3 ring-accent-400/30",children:e.name.charAt(0).toUpperCase()}),(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)("p",{className:"font-bold text-primary-700",children:c(e.name)}),e.company&&(()=>{let t=e.external_website_url||e.guest_page_url;return(0,a.jsxs)("p",{className:"text-sm text-dark/80",children:[t?(0,a.jsx)("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:"text-accent-700 hover:text-accent-800 hover:underline font-medium",children:e.company}):e.company,e.city&&", ".concat(e.city)]})})()]})]})]})]},e.id)})})},n)})})}),r.length>g&&(0,a.jsx)("button",{onClick:()=>{x(!0),y(!0);let e=Math.ceil(r.length/g);u(t=>t===e-1?e:t+1)},className:"absolute right-2 top-1/2 z-10 min-h-12 min-w-12 -translate-y-1/2 rounded-full bg-primary-700 p-3 shadow-lg transition-[background-color,box-shadow,transform] hover:bg-primary-800 hover:shadow-xl active:translate-y-[calc(-50%+1px)] sm:right-0 sm:translate-x-10 xl:translate-x-16","aria-label":"Next testimonials",children:(0,a.jsx)(l.u,{name:"chevron-right",className:"w-6 h-6 text-white group-hover:text-accent-400 transition-colors"})})]}),r.length>g&&(0,a.jsx)("div",{className:"flex justify-center gap-3 mt-10",children:Array.from({length:Math.ceil(r.length/g)}).map((e,t)=>{let n=Math.ceil(r.length/g),l=t===m||m===n&&0===t;return(0,a.jsx)("button",{onClick:()=>{x(!0),y(!0),u(t)},className:"group inline-flex h-11 w-11 items-center justify-center rounded-full","aria-label":"Go to page ".concat(t+1),children:(0,a.jsx)("span",{"aria-hidden":"true",className:"block h-3 rounded-full transition-[width,background-color] duration-300 ".concat(l?"w-8 bg-primary-700":"w-3 bg-gray-300 group-hover:bg-primary-400")})},t)})})]})]}),p&&(0,a.jsxs)(i.ModalWrapper,{isOpen:!0,onClose:()=>v(null),title:t("testimonials.cardLabel"),maxWidth:"lg",icon:(0,a.jsx)(l.u,{name:"message-square-quote",className:"w-6 h-6"}),children:[(0,a.jsxs)("p",{className:"text-dark text-lg leading-relaxed mb-6",children:["â",p.content,"â"]}),(0,a.jsxs)("div",{className:"flex items-center gap-4 pt-5 border-t border-gray-100",children:[p.testimonial.avatar_url?(0,a.jsx)("img",{src:p.testimonial.avatar_url,alt:p.testimonial.name,className:"w-14 h-14 rounded-full object-cover ring-3 ring-accent-400/30"}):(0,a.jsx)("div",{className:"w-14 h-14 rounded-full bg-gradient-to-br from-primary-700 to-primary-800 flex items-center justify-center text-accent-400 font-bold text-xl ring-3 ring-accent-400/30",children:p.testimonial.name.charAt(0).toUpperCase()}),(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)("p",{className:"font-bold text-primary-700",children:c(p.testimonial.name)}),p.testimonial.company&&(()=>{let e=p.testimonial.external_website_url||p.testimonial.guest_page_url;return(0,a.jsxs)("p",{className:"text-sm text-dark/80",children:[e?(0,a.jsx)("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:"text-accent-700 hover:text-accent-800 hover:underline font-medium",children:p.testimonial.company}):p.testimonial.company,p.testimonial.city&&", ".concat(p.testimonial.city)]})})()]})]})]})]})}},89201:function(e,t,r){r.d(t,{LW:function(){return i},XS:function(){return l},b8:function(){return a},wv:function(){return n},yp:function(){return s}});let a=["Coffee","WashingMachine","Shirt","Microwave","Refrigerator","CookingPot","Utensils","Tv","Projector","Speaker","Router","Vault","KeyRound","Heater","Snowflake","AirVent","Fan","Flame","Lamp","Blinds","ShowerHead","Plug","Printer","Gamepad2"],n="Plug";function l(){return{device_title:"",device_icon:n,device_text:"",device_image_url:"",device_pdf_url:""}}function s(e){return!!((e.device_text||"").trim()||(e.device_image_url||"").trim()||(e.device_pdf_url||"").trim())}function i(e,t){let r=new URLSearchParams(e).get("w");if(!r||!/^\d{1,9}$/.test(r))return null;let a=Number(r);return t.includes(a)?a: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.