1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4938,9140,3508],{78e3:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AmpStateContext=void 0;var s=(0,r(92648).Z)(r(67294)).default.createContext({});t.AmpStateContext=s},9470:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isInAmpMode=function(){var{ampFirst:e=!1,hybrid:t=!1,hasQuery:r=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e||t&&r}},72717:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultHead=d,t.default=void 0;var s=r(6495).Z,a=r(92648).Z,i=(0,r(91598).Z)(r(67294)),n=a(r(11585)),o=r(78e3),l=r(15850),c=r(9470);function d(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=[i.default.createElement("meta",{charSet:"utf-8"})];return e||t.push(i.default.createElement("meta",{name:"viewport",content:"width=device-width"})),t}function u(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===i.default.Fragment?e.concat(i.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}r(99475);var f=["name","httpEquiv","charSet","itemProp"];function h(e,t){var r,a,n,o,{inAmpMode:l}=t;return e.reduce(u,[]).reverse().concat(d(l).reverse()).filter((r=new Set,a=new Set,n=new Set,o={},e=>{var t=!0,s=!1;if(e.key&&"number"!=typeof e.key&&e.key.indexOf("$")>0){s=!0;var i=e.key.slice(e.key.indexOf("$")+1);r.has(i)?t=!1:r.add(i)}switch(e.type){case"title":case"base":a.has(e.type)?t=!1:a.add(e.type);break;case"meta":for(var l=0,c=f.length;l<c;l++){var d=f[l];if(e.props.hasOwnProperty(d)){if("charSet"===d)n.has(d)?t=!1:n.add(d);else{var u=e.props[d],h=o[d]||new Set;("name"!==d||!s)&&h.has(u)?t=!1:(h.add(u),o[d]=h)}}}}return t})).reverse().map((e,t)=>{var r=e.key||t;if(!l&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(t=>e.props.href.startsWith(t))){var a=s({},e.props||{});return a["data-href"]=a.href,a.href=void 0,a["data-optimized-fonts"]=!0,i.default.cloneElement(e,a)}return i.default.cloneElement(e,{key:r})})}var p=function(e){var{children:t}=e,r=i.useContext(o.AmpStateContext),s=i.useContext(l.HeadManagerContext);return i.default.createElement(n.default,{reduceComponentsToState:h,headManager:s,inAmpMode:c.isInAmpMode(r)},t)};t.default=p,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},11585:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,{headManager:r,reduceComponentsToState:o}=e;function l(){if(r&&r.mountedInstances){var t=s.Children.toArray(Array.from(r.mountedInstances).filter(Boolean));r.updateHead(o(t,e))}}return a&&(null==r||null==(t=r.mountedInstances)||t.add(e.children),l()),i(()=>{var t;return null==r||null==(t=r.mountedInstances)||t.add(e.children),()=>{var t;null==r||null==(t=r.mountedInstances)||t.delete(e.children)}}),i(()=>(r&&(r._pendingUpdate=l),()=>{r&&(r._pendingUpdate=l)})),n(()=>(r&&r._pendingUpdate&&(r._pendingUpdate(),r._pendingUpdate=null),()=>{r&&r._pendingUpdate&&(r._pendingUpdate(),r._pendingUpdate=null)})),null};var s=(0,r(91598).Z)(r(67294)),a=!1,i=a?()=>{}:s.useLayoutEffect,n=a?()=>{}:s.useEffect},81810:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return b}});var s=r(50029),a=r(59499),i=r(67294),n=r(68930),o=r(15590),l=r(18200),c=r(9008),d=r.n(c),u=r(88904),f=r(4719),h=r(2261),p=r(52953);r(25194),r(94375);var g=r(41402),v=r(85893);function _(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,s)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_(Object(r),!0).forEach(function(t){(0,a.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_(Object(r)).forEac
1h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}class b extends o.Po{constructor(e){super(e),(0,a.Z)(this,"ref",void 0),(0,a.Z)(this,"slider",void 0),(0,a.Z)(this,"timeout",void 0),this.ref=i.createRef(),this.slider=null,this.timeout=null,this.state={reviews:[],placeError:null}}fetchReviews(e){var t=this;return(0,s.Z)(function*(){try{var r,s=yield new g.Z(t.props.endpoint).get("/api/pegasus/frontend/googlereviews/"+e);return{name:s.data.name,reviews:s.data.reviews,rating:s.data.rating,user_ratings_total:s.data.user_ratings_total,placeID:null==s?void 0:null===(r=s.data)||void 0===r?void 0:r.place_id}}catch(a){t.isEditorMode()&&t.setState({placeError:"Wir konnten keine Google Place ID finden. Bitte gib eine g\xfcltige Google Place ID ein oder pr\xfcfe die Adresse im Kundenprofil."})}})()}initializeReviews(){var e=this;return(0,s.Z)(function*(){var t=e.props.website._id,r=null;if(t)return r=yield e.fetchReviews(t),e.setState(e=>m(m({},e),{},{reviews:r})),r})()}getRandomColor(){var e=["primary","action"],t=["20","40","60","80","100","120","140","160","180","200","220","240"],r=e[Math.floor(Math.random()*e.length)],s=t[Math.floor(Math.random()*t.length)];return{backgroundColor:"var(--u20-".concat(r,"-").concat(s,")"),color:"var(--u20-".concat(r,"-fg-").concat(s,")")}}determineAuthorImage(e,t){var r=new Image;r.src=e;var s=r.width,a=t.substring(0,1);return 0===s?(0,v.jsx)("div",{className:"Review__letter-image",style:this.getRandomColor(),children:(0,v.jsx)("div",{style:{color:"inherit"},children:a})}):(0,v.jsx)("img",{src:e,alt:"Google-User ".concat(t)})}componentDidMount(){this.initializeReviews()}render(){if(!u.Z.isCookieUsageAllowed("google_reviews"))return(0,v.jsx)(f.Z,m({},this.props));var e,t,r,s,a,i=this.getProp("autoplay",!1),o=this.getPropSingle("filterReviews"),c=this.getPropSingle("layout","layout_1"),g=this.getPropSingle("dateFormat","reviews_date_written_out"),_=this.getProp("doNotShowReviewsWithoutComments",!1),b=this.getProp("cssAttributesReviewsContainer",{}),x=this.getProp("cssAttributesReview",{}),w=this.getProp("cssAttributesReviewHeader",{}),y=this.getProp("cssAttributesReviewContent",{}),j=this.getProp("cssAttributesReviewsInfoblock",{}),k=this.getImage(this.getProp("logo",this.getProp("customer.profile.logo"))),R=this.getProp("customer.name");if(this.isEditorMode()&&this.state.placeError)return(0,v.jsx)("div",{children:this.state.placeError});var C={at_least_3_stars:3,at_least_4_stars:4,only_5_stars:5},N=null===(e=this.state.reviews)||void 0===e?void 0:e.reviews;if(void 0===N||Array.isArray(N)&&0===N.length)return this.isEditorMode()?(0,v.jsxs)("div",{children:[(0,v.jsx)("b",{style:{fontSize:"130%"},children:"Es konnten keine Reviews geladen werden."}),(0,v.jsx)("br",{})," Entweder hat die automatische Suche nichts gefunden oder die eingegebene Google Place ID stimmt nicht. Bitte pr\xfcfe die Eingaben. ",(0,v.jsx)("br",{}),"(Diese Meldung erscheint nur in der Editor-Vorschau, nicht auf der Website selbst.)"]}):(0,v.jsx)(v.Fragment,{});var S=null===(t=this.state.reviews)||void 0===t?void 0:t.user_ratings_total;N=N.sort((e,t)=>t.rating-e.rating),o&&(N=N.filter(e=>e.rating>=C[o])),_&&(N=N.filter(e=>""!==e.text));var I=null===(r=this.state.reviews)||void 0===r?void 0:r.rating;return(0,v.jsxs)(v.Fragment,{children:["layout_1"!==c&&(0,v.jsx)(d(),{children:(0,v.jsx)("style",{id:"Reviews_".concat(this.getId(),"__styles"),dangerouslySetInnerHTML:{__html:" \n @media screen and (min-width: 768px) {\n .Reviews.Carousel .slick-slider,\n .Reviews.Carousel #".concat(this.getId(),"__swiper {\n width: 74%;\n }\n }\n ")}},"Reviews_".concat(this.getId(),"__styles"))}),(0,v.jsxs)(l.default,m(m({id:this.getId(),forceChildStyle:"*"},(0,n.$f)(this.props)),{},{attributes:b,className:"Reviews Carousel Carousel__container carousel ".concat(c),children:["layout_2"===c&&(0,v.jsxs)(l.default,m(m({id:"".concat(this.getId(),"__infoblock"),forceChildStyle:"*"},(0,n.$f)(this.props)),{},{attributes:j,className:"Reviews__infoblock layout_2",children:[(0,v.jsx)("h3",{children:"Ausgezeichnet"}),(0,v.jsxs)("div",{className:"Review__stars",style:{backgroundImage:"linear-gradient(to right, gold calc(".concat(20*I,"%), lightgray calc(").concat(20*I,"%))")},children:[(0,v.jsx)("i",{className:"Review__star fas fa-star"}),(0,v.jsx)("i",{className:"Review__star fas fa-star"}),(0,v.jsx)("i",{className:"Review__star fas fa-star"}),(0,v.jsx)("i",{className:"Review__star fas fa-star"}),(0,v.jsx)("i",{className:"Review__star fas fa-star"})]}),(0,v.jsxs)("p",{children:["Basierend auf ",(0,v.jsx)("b",{children:S})," Bewertungen bei"]}),(0,v.jsx)("img",{src:"".concat(this.getBackend(),"api/attachments/656f1d350b77b9002128fdee"),alt:"Google-Logo",className:"Reviews__infoblock-logo"})]})),"layout_3"===c&&(0,v.jsxs)(l.default,m(m({id:"".concat(this.getId(),"__infoblock"),forceChildStyle:"*"},(0,n.$f)(this.props)),{},{attributes:j,className:"Reviews__infoblock layout_3",children:[(0,v.jsx)("img",{src:k,alt:"",className:"Reviews__infoblock-logo"}),(0,v.jsx)("h3",{children:R}),(0,v.jsxs)("div",{className:"Review__stars",style:{backgroundImage:"linear-gradient(to right, gold calc(".concat(20*I,"%), lightgray calc(").concat(20*I,"%))")},children:[(0,v.jsx)("i",{className:"Review__star fas fa-star"}),(0,v.jsx)("i",{className:"Review__star fas fa-star"}),(0,v.jsx)("i",{className:"Review__star fas fa-star"}),(0,v.jsx)("i",{className:"Review__star fas fa-star"}),(0,v.jsx)("i",{className:"Review__star fas fa-star"})]}),(0,v.jsxs)("p",{children:[S," Bewertungen"]}),(0,v.jsx)("a",{href:"https://search.google.com/local/reviews?placeid=".concat(null===(s=this.state)||void 0===s?void 0:null===(a=s.reviews)||void 0===a?void 0:a.placeID),target:"_blank",className:"btn btn-secondary",rel:"",id:"e_656f208d52
116615fc45491c1",style:{display:"inline-flex",justifyContent:"center",alignItems:"center"},children:"Eine Bewertung schreiben"})]})),(0,v.jsx)("button",{id:"Carousel_".concat(this.getId(),"__prev"),type:"button",className:"Carousel__prev",style:{display:"block"},children:(0,v.jsx)("i",{className:"u20-fa fas fa-chevron-left"})}),(0,v.jsx)(h.tq,{id:"".concat(this.getId(),"__swiper"),slidesPerView:1,loop:!0,navigation:{prevEl:"#Carousel_".concat(this.getId(),"__prev"),nextEl:"#Carousel_".concat(this.getId(),"__next"),enabled:!0},breakpoints:{574:{slidesPerView:1},767:{slidesPerView:"layout_1"===c?2:1},990:{slidesPerView:"layout_1"===c?3:2}},simulateTouch:!0,autoplay:!!i&&{delay:7e3,disableOnInteraction:!0,pauseOnMouseEnter:!0},draggable:!0,allowTouchMove:!0,modules:[p.W_,p.pt,p.s5],a11y:{enabled:!0,prevSlideMessage:"Vorherige Rezension",nextSlideMessage:"N\xe4chste Rezension",firstSlideMessage:"Erste Rezension",lastSlideMessage:"Letzte Rezension",scrollOnFocus:!1},className:"Carousel carousel",children:N.map((e,t)=>{var r,s=new Date(null==e?void 0:null===(r=e.time)||void 0===r?void 0:r.value).toLocaleDateString("de-de",{year:"numeric",month:"reviews_date_written_out"===g?"long":"2-digit",day:"2-digit"});return new Image().src=e.profile_photo_url,(0,v.jsx)(h.o5,{className:"Review",id:"".concat(this.getId(),"_").concat(t),children:(0,v.jsxs)(l.default,m(m({id:"".concat(this.getId(),"__inner_").concat(t),forceChildStyle:"*"},(0,n.$f)(this.props)),{},{attributes:x,className:"Review__inner",children:[(0,v.jsxs)(l.default,m(m({id:"".concat(this.getId(),"__header_").concat(t),forceChildStyle:"*"},(0,n.$f)(this.props)),{},{attributes:w,className:"Review__header",children:[(0,v.jsxs)("div",{children:[(0,v.jsx)("div",{className:"Review__header-image",children:(0,v.jsx)("a",{href:"".concat(e.author_url),target:"_blank",rel:"noopener noreferrer","aria-label":"Google-User ".concat(e.author_name),children:this.determineAuthorImage(e.profile_photo_url,e.author_name)})}),(0,v.jsxs)("div",{className:"Review__header-name",children:[(0,v.jsx)("a",{href:"".concat(e.author_url),target:"_blank",rel:"noopener noreferrer",children:e.author_name}),(0,v.jsx)("p",{children:"reviews_date_relative"===g?e.relative_time_description:s})]})]}),(0,v.jsx)("div",{className:"Review__header-g",children:(0,v.jsx)("img",{src:"".concat(this.getBackend(),"api/attachments/656774fff68c98001a6207c7"),alt:"Google-Logo",style:{width:"32px",height:"32px"}})})]})),(0,v.jsxs)("div",{className:"Review__stars",style:{backgroundImage:"linear-gradient(to right, gold calc(".concat(e.rating/5*100,"%), lightgray calc(").concat(e.rating/5*100,"%))")},children:[(0,v.jsx)("i",{className:"Review__star fas fa-star"}),(0,v.jsx)("i",{className:"Review__star fas fa-star"}),(0,v.jsx)("i",{className:"Review__star fas fa-star"}),(0,v.jsx)("i",{className:"Review__star fas fa-star"}),(0,v.jsx)("i",{className:"Review__star fas fa-star"})]}),(0,v.jsx)(l.default,m(m({id:"".concat(this.getId(),"__content_").concat(t),forceChildStyle:"*"},(0,n.$f)(this.props)),{},{attributes:y,className:"Review__content",children:(0,v.jsx)("div",{className:"Review__content-inner",children:e.text})}))]}))},"".concat(this.getId(),"_").concat(t))})}),(0,v.jsx)("button",{id:"Carousel_".concat(this.getId(),"__next"),type:"button",className:"Carousel__next",style:{display:"block"},children:(0,v.jsx)("i",{className:"u20-fa fas fa-chevron-right"})}),"layout_1"===c&&(0,v.jsxs)(l.default,m(m({id:"".concat(this.getId(),"__footer-info"),forceChildStyle:"*"},(0,n.$f)(this.props)),{},{attributes:j,className:"Reviews__footer-info",children:["Google-Gesamtbewertung, basierend auf ",S," Bewertungen:"," ",Math.round(10*I)/10," von 5"]}))]}))]})}}},4719:function(e,t,r){"use strict";r.d(t,{U:function(){return l},Z:function(){return o}}),r(67294);var s=r(15590),a=r(94133),i=r(88904),n=r(85893);class o extends s.Po{constructor(e){super(e)}render(){return(0,n.jsxs)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column"},children:[(0,n.jsx)("i",{className:"u20-fa fas icon-element fa-cookie-bite",style:{fontSize:"50px",marginBottom:"30px",marginTop:"50px"}}),(0,n.jsxs)("p",{style:{textAlign:"center",marginBottom:"50px"},children:["Bitte das"," ",(0,n.jsx)("a",{href:"#",onClick:e=>{e.preventDefault(),this.dispatch((0,a.v2)())},children:"Cookie-Consent-Tool \xf6ffnen"}),", um die f\xfcr dieses Element notwendigen Cookies zu akzeptieren."]})]})}}var l=(e,t)=>
1{var r=!0,s=!0;if(e){for(var a of e)if(!i.Z.isCookieUsageAllowed(null==a?void 0:a.key)){r=!1;break}}return t&&(s=i.Z.isCookieUsageAllowed(t)),r&&s}},94133:function(e,t,r){"use strict";r.d(t,{CF:function(){return s.CF},No:function(){return s.No},SL:function(){return s.SL},av:function(){return s.av},hG:function(){return s.hG},jk:function(){return s.jk},mi:function(){return s.mi},qT:function(){return s.qT},qZ:function(){return s.qZ},tL:function(){return s.tL},v2:function(){return s.v2},wb:function(){return s.wb}});var s=r(37650)},9008:function(e,t,r){e.exports=r(72717)},72564:function(e,t,r){"use strict";var s=r(69357).isUnitlessNumber,a=r(6521),i=Array.isArray,n=Object.keys,o=/^(normal|none|(\b(url\([^)]*\)|chapter_counter|attr\([^)]*\)|(no-)?(open|close)-quote|inherit)((\b\s*)|$|\s+))+)$/;function l(e,t){return s[e]||"number"!=typeof t?"content"!==e||o.test(t)||(t="'"+t.replace(/'/g,"\\'")+"'"):t=""+t+"px",a(e)+": "+t+"; "}e.exports=function(e){var t="";if(!e||0===n(e).length)return t;for(var r=n(e),s=0,a=r.length;s<a;s++){var o=r[s],c=e[o];if(i(c))for(var d=0,u=c.length;d<u;d++)t+=l(o,c[d]);else t+=l(o,c)}return t}},69357:function(e){"use strict";var t={boxFlex:!0,boxFlexGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0},r=["Webkit","ms","Moz","O"];Object.keys(t).forEach(function(e){r.forEach(function(r){var s,a;t[r+(a=e).charAt(0).toUpperCase()+a.substring(1)]=t[e]})}),e.exports={isUnitlessNumber:t,shorthandPropertyExpansions:{background:{backgroundImage:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundColor:!0},border:{borderWidth:!0,borderStyle:!0,borderColor:!0},borderBottom:{borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0},borderLeft:{borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0},borderRight:{borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0},borderTop:{borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0},font:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,lineHeight:!0,fontFamily:!0}}}},6521:function(e){"use strict";var t=/^ms-/,r=/([A-Z])/g;e.exports=function(e){var s;return e.replace(r,"-$1").toLowerCase().replace(t,"-ms-")}}}]);
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.