@skodaflow/web-library 2.1.9 → 2.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.d.ts CHANGED
@@ -43,3 +43,5 @@ export * from './components/controls';
43
43
  export * from './components/numbering';
44
44
  export * from './components/cardContainer';
45
45
  export * from './components/accordion';
46
+ export * from './components/banner';
47
+ export * from './components/cardMenu';
package/build/index.es.js CHANGED
@@ -26,5 +26,5 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
26
26
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
27
27
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
28
28
  PERFORMANCE OF THIS SOFTWARE.
29
- ***************************************************************************** */class ym{constructor({markers:e,position:t}){this.markers=e,t&&(t instanceof google.maps.LatLng?this._position=t:this._position=new google.maps.LatLng(t))}get bounds(){if(0!==this.markers.length||this._position)return this.markers.reduce(((e,t)=>e.extend(t.getPosition())),new google.maps.LatLngBounds(this._position,this._position))}get position(){return this._position||this.bounds.getCenter()}get count(){return this.markers.filter((e=>e.getVisible())).length}push(e){this.markers.push(e)}delete(){this.marker&&(this.marker.setMap(null),delete this.marker),this.markers.length=0}}const Hm=e=>e.map((e=>new ym({position:e.getPosition(),markers:[e]})));class Cm extends class{constructor({maxZoom:e=16}){this.maxZoom=e}noop({markers:e}){return Hm(e)}}{constructor(e){var{maxZoom:t,radius:n=60}=e,l=function(e,t){var n={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(n[l]=e[l]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(l=Object.getOwnPropertySymbols(e);r<l.length;r++)t.indexOf(l[r])<0&&Object.prototype.propertyIsEnumerable.call(e,l[r])&&(n[l[r]]=e[l[r]])}return n}(e,["maxZoom","radius"]);super({maxZoom:t}),this.superCluster=new dm(Object.assign({maxZoom:this.maxZoom,radius:n},l)),this.state={zoom:null}}calculate(e){let t=!1;if(!Fm(e.markers,this.markers)){t=!0,this.markers=[...e.markers];const n=this.markers.map((e=>({type:"Feature",geometry:{type:"Point",coordinates:[e.getPosition().lng(),e.getPosition().lat()]},properties:{marker:e}})));this.superCluster.load(n)}const n={zoom:e.map.getZoom()};return t||this.state.zoom>this.maxZoom&&n.zoom>this.maxZoom||(t=t||!Fm(this.state,n)),this.state=n,t&&(this.clusters=this.cluster(e)),{clusters:this.clusters,changed:t}}cluster({map:e}){return this.superCluster.getClusters([-180,-90,180,90],Math.round(e.getZoom())).map(this.transformCluster.bind(this))}transformCluster({geometry:{coordinates:[e,t]},properties:n}){if(n.cluster)return new ym({markers:this.superCluster.getLeaves(n.cluster_id,1/0).map((e=>e.properties.marker)),position:new google.maps.LatLng({lat:t,lng:e})});{const e=n.marker;return new ym({markers:[e],position:e.getPosition()})}}}class km{constructor(e,t){this.markers={sum:e.length};const n=t.map((e=>e.count)),l=n.reduce(((e,t)=>e+t),0);this.clusters={count:t.length,markers:{mean:l/t.length,sum:l,min:Math.min(...n),max:Math.max(...n)}}}}class Im{render({count:e,position:t},n){const l=e>Math.max(10,n.clusters.markers.mean)?"#ff0000":"#0000ff",r=window.btoa(`\n <svg fill="${l}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240">\n <circle cx="120" cy="120" opacity=".6" r="70" />\n <circle cx="120" cy="120" opacity=".3" r="90" />\n <circle cx="120" cy="120" opacity=".2" r="110" />\n </svg>`);return new google.maps.Marker({position:t,icon:{url:`data:image/svg+xml;base64,${r}`,scaledSize:new google.maps.Size(45,45)},label:{text:String(e),color:"rgba(255,255,255,0.9)",fontSize:"12px"},title:`Cluster of ${e} markers`,zIndex:Number(google.maps.Marker.MAX_ZINDEX)+e})}}class Sm{constructor(){!function(e,t){for(let n in t.prototype)e.prototype[n]=t.prototype[n]}(Sm,google.maps.OverlayView)}}var Dm;!function(e){e.CLUSTERING_BEGIN="clusteringbegin",e.CLUSTERING_END="clusteringend",e.CLUSTER_CLICK="click"}(Dm||(Dm={}));const Bm=(e,t,n)=>{n.fitBounds(t.bounds)};class Lm extends Sm{constructor({map:e,markers:t=[],algorithm:n=new Cm({}),renderer:l=new Im,onClusterClick:r=Bm}){super(),this.markers=[...t],this.clusters=[],this.algorithm=n,this.renderer=l,this.onClusterClick=r,e&&this.setMap(e)}addMarker(e,t){this.markers.includes(e)||(this.markers.push(e),t||this.render())}addMarkers(e,t){e.forEach((e=>{this.addMarker(e,!0)})),t||this.render()}removeMarker(e,t){const n=this.markers.indexOf(e);return-1!==n&&(e.setMap(null),this.markers.splice(n,1),t||this.render(),!0)}removeMarkers(e,t){let n=!1;return e.forEach((e=>{n=this.removeMarker(e,!0)||n})),n&&!t&&this.render(),n}clearMarkers(e){this.markers.length=0,e||this.render()}render(){const e=this.getMap();if(e instanceof google.maps.Map&&this.getProjection()){google.maps.event.trigger(this,Dm.CLUSTERING_BEGIN,this);const{clusters:t,changed:n}=this.algorithm.calculate({markers:this.markers,map:e,mapCanvasProjection:this.getProjection()});(n||null==n)&&(this.reset(),this.clusters=t,this.renderClusters()),google.maps.event.trigger(this,Dm.CLUSTERING_END,this)}}onAdd(){this.idleListener=this.getMap().addListener("idle",this.render.bind(this)),this.render()}onRemove(){google.maps.event.removeListener(this.idleListener),this.reset()}reset(){this.markers.forEach((e=>e.setMap(null))),this.clusters.forEach((e=>e.delete())),this.clusters=[]}renderClusters(){const e=new km(this.markers,this.clusters),t=this.getMap();this.clusters.forEach((n=>{1===n.markers.length?n.marker=n.markers[0]:(n.marker=this.renderer.render(n,e),this.onClusterClick&&n.marker.addListener("click",(e=>{google.maps.event.trigger(this,Dm.CLUSTER_CLICK,n),this.onClusterClick(e,n,t)}))),n.marker.setMap(t)}))}}var Tm;!function(e){e.PLUS="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g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image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxjaXJjbGUgY3g9IjI0IiBjeT0iMjQiIHI9IjI0IiBmaWxsPSIjM0UzRjQwIi8+Cjwvc3ZnPgo=",e.ARROW_DETAIL="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTAuNTU3IDYuMTMyVjcuOUwxMC43NzQgNy45TDYuMjY5IDEyLjM1NEw3LjM1NyAxMy40NDJMMTMuNzgzIDcuMDE2TDcuMzU3IDAuNTlMNi4yNjkgMS42NzhMMTAuNzc0IDYuMTMyTDAuNTU3IDYuMTMyWiIgZmlsbD0iIzE2MTcxOCIvPgo8L3N2Zz4K"}(Tm||(Tm={}));var Am=function(){var e=t.useCallback((function(e,t){return t?e.selectedIcon||'<svg width="42" height="58" viewBox="0 0 42 58" fill="none" xmlns="http://www.w3.org/2000/svg">\n<rect x="19" y="41" width="4" height="17" fill="#52A438"/>\n<circle cx="21" cy="21" r="21" fill="#52A438"/>\n<path d="M21 29.58C26.2 25.78 29.62 22.38 29.62 18.64C29.62 15.88 27.5 13.58 24.64 13.58C23.1 13.58 21.74 14.36 21 15.7C20.26 14.36 18.9 13.58 17.36 13.58C14.5 13.58 12.38 15.88 12.38 18.64C12.38 22.38 15.8 25.78 21 29.58Z" fill="white"/>\n</svg>':e.resultIcon||'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<circle cx="12" cy="12" r="12" fill="#313232"/>\n<path d="M12 18.0744C15.536 15.4904 17.8616 13.1784 17.8616 10.6352C17.8616 8.7584 16.42 7.1944 14.4752 7.1944C13.428 7.1944 12.5032 7.7248 12 8.636C11.4968 7.7248 10.572 7.1944 9.5248 7.1944C7.58 7.1944 6.1384 8.7584 6.1384 10.6352C6.1384 13.1784 8.464 15.4904 12 18.0744Z" fill="white"/>\n</svg>'}),[]),n={render:function(e){var t=e.count,n=e.position;return new google.maps.Marker({label:{text:String(t),color:"white",fontSize:"19px",fontWeight:"bold"},position:n,icon:Tm.CLUSTER})}};return{onMarkerClick:function(t,n){t&&n.forEach((function(n){var l=n.id===t,r=e(n,l);n.setIcon(r)}))},handleClusterRender:function(e,t,l){if(e&&t){var r={map:t,markers:e,onClusterClick:function(e,t,n){l(!0),n.fitBounds(t.bounds)}};return new Lm(ge(ge({},r),{renderer:n}))}},handleIconType:e}},Nm=[{elementType:"geometry",stylers:[{color:"#eef1f4"}]},{elementType:"geometry.stroke",stylers:[{color:"#60666c"}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{elementType:"labels.text.fill",stylers:[{color:"#575d60"}]},{elementType:"labels.text.stroke",stylers:[{color:"#f5f5f5"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#575d60"}]},{featureType:"landscape.man_made",elementType:"geometry.stroke",stylers:[{color:"#899094"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#dde4e9"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#dde4e9"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#575d60"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#ffffff"}]},{featureType:"road.arterial",elementType:"labels.text.fill",stylers:[{color:"#575d60"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#ffffff"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#575d60"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#575d60"}]},{featureType:"transit.line",elementType:"geometry",stylers:[{color:"#c2c7cb"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#c2c7cb"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#c9cfd4"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#70767b"}]}],Vm=function(e,t,n){e.style.padding="5px",e.style.marginRight="19px";var l=document.createElement("div");e.appendChild(l),function(e,t){var n=document.createElement("div");n.style.width="40px",n.style.height="40px",n.style.borderRadius="4px 4px 0px 0px",n.style.background="#FFFFFF",n.style.cursor="pointer",n.style.marginBottom="1px",n.style.display="flex",n.style.flexDirection="column",n.style.justifyContent="center",e.appendChild(n);var l=document.createElement("img");l.style.width="15px",l.style.height="15px",l.style.margin="0 auto",l.src=Tm.PLUS,n.appendChild(l);var r=document.createElement("div");r.style.width="40px",r.style.height="40px",r.style.borderRadius="0px 0px 4px 4px",r.style.background="#FFFFFF",r.style.cursor="pointer",r.style.display="flex",r.style.flexDirection="column",r.style.justifyContent="center",e.appendChild(r);var a=document.createElement("img");a.style.width="15px",a.style.height="15px",a.style.margin="0 auto",a.src=Tm.MINUS,r.appendChild(a),google.maps.event.addDomListener(n,"click",(function(){t.setZoom(t.getZoom()+1)})),google.maps.event.addDomListener(r,"click",(function(){t.setZoom(t.getZoom()-1)}))}(l,t),function(e,t,n){var l=document.createElement("div");l.style.width="40px",l.style.height="40px",l.style.borderRadius="4px",l.style.background="#FFFFFF",l.style.cursor="pointer",l.style.display="flex",l.style.flexDirection="column",l.style.justifyContent="center",l.style.marginTop="10px",e.appendChild(l);var r=document.createElement("img");r.style.width="20px",r.style.height="20px",r.style.margin="0 auto",r.src=Tm.CENTER_LOCATIONS,l.appendChild(r),l.addEventListener("click",(function(){navigator.geolocation&&navigator.geolocation.getCurrentPosition((function(e){var l={lat:e.coords.latitude,lng:e.coords.longitude};n.setOptions({position:l,icon:Tm.LIVE_POSITION_ON,map:t}),t.setCenter(l)}),(function(e){n.setIcon(Tm.LIVE_POSITION_OFF);var l=n.getPosition();t.setCenter(l)}))}))}(l,t,n)},Om=function(e){return e?'<div id="content">\n\t'+(((o=e.title)&&'<h4 id="infoWindowContent" class="firstHeading">\n '+o+" \n </h4>")+"\n\t")+(a=e.street,i=e.city,'<div id="streetInfo">\n<p>'+(a||"")+"</p>\n<p>"+(i||"")+"</p>\n </div>\n\t")+(((r=e.phone)?'<div id="phoneNumber">\n\t<a href="tel:'+r+'">'+r+"</a>\n </div>":"")+'\n\t<div id="openStatus">\n\t')+((null!==(l=e.isOpen)&&'\n<div id="info-dealer-status">\n'+(l?'<div id="info-dealer-opened">Open now</div>':'<div id="info-dealer-closed">Closed</div>')+"\n </div>\n ")+"\n\t")+(((n=e.distance)?"<div>"+n+"</div>":"")+"\n\t</div>\n\t")+(((t=e.ctaLabel)?'<div id="detail-cta-container">\n<span id="info-detail-cta">'+t+'</span>\n<img src="'+Tm.ARROW_DETAIL+'"/>\n </div>':"")+"\n\t </div>"):"";var t,n,l,r,a,i,o},Rm=function(e){var r=e.onClick,i=e.onDragEnd,o=e.children,c=e.style,m=e.handleCurrentMap,s=e.enableMoveSearch,h=e.setInfoWindow,p=e.currentInfoWindow,d=e.registeredMarkers,u=void 0===d?[]:d,f=xe(e,["onClick","onDragEnd","children","style","handleCurrentMap","enableMoveSearch","setInfoWindow","currentInfoWindow","registeredMarkers"]),v=l(null),g=n(),x=g[0],E=g[1],w=n(null),z=w[0],b=w[1],M=Am().handleClusterRender,F=n(!1),y=F[0],H=F[1],C=n(null),k=C[0],I=C[1],S=n(!1),D=S[0],B=S[1];return a((function(){if(v.current&&!x){var e=function(e){var t=e.center,n=e.zoom;return{mapTypeControl:!1,streetViewControl:!1,fullscreenControl:!1,disableDefaultUI:!0,center:t,zoom:n||12,styles:Nm}}(f),t=new window.google.maps.Map(v.current,ge({},e)),n=new google.maps.Marker({position:f.center,map:x,icon:null});b(n),function(e,t){var n=document.createElement("div");n.setAttribute("id","map-controls-container"),new Vm(n,e,t),e.controls[google.maps.ControlPosition.RIGHT_BOTTOM].push(n)}(t,n),E(t),m(t)}}),[v,x,m,f]),a((function(){if(x&&!p){var e=(t={map:x},new google.maps.InfoWindow({content:Om(t)}));h(e)}var t}),[x,h,p]),a((function(){x&&z&&navigator.geolocation&&navigator.geolocation.getCurrentPosition((function(e){var t=new google.maps.LatLng(e.coords.latitude,e.coords.longitude);z.setOptions({position:t,icon:Tm.LIVE_POSITION_ON,map:x}),x.setCenter(t)}),(function(){z.setIcon(Tm.LIVE_POSITION_OFF)}))}),[x,z]),t.useEffect((function(){return x&&r&&x.addListener("click",r),function(){x&&google.maps.event.clearListeners(x,"click")}}),[x,r]),t.useEffect((function(){return x&&i&&(s?x.addListener("dragend",(function(){return i(x)})):google.maps.event.clearListeners(x,"dragend")),function(){x&&google.maps.event.clearListeners(x,"dragend")}}),[x,i,s]),t.useEffect((function(){x&&(f.zoom&&x.setZoom(f.zoom),f.center&&x.setCenter(f.center))}),[x,f.zoom,f.center]),t.useEffect((function(){y&&k&&(k.clearMarkers(),k.addMarkers(u))}),[k,u,y]),t.useEffect((function(){var e=null;x&&!y&&(e=M(u,x,B),H(!0),I(e))}),[u,x,y,M]),t.useEffect((function(){D&&(p.close(),B(!1))}),[D,p]),t.createElement(t.Fragment,null,t.createElement("div",{ref:v,style:c}),t.Children.map(o,(function(e){if(t.isValidElement(e))return t.cloneElement(e,{map:x})})))},Wm=function(e){var l=e.handleRegisteredMarkers,a=e.handleMarkerClicked,i=e.infoWindow,o=e.canOpenInfoWindow,c=e.infoWindowConfig,m=e.onInfoWindowCtaClick,s=xe(e,["handleRegisteredMarkers","handleMarkerClicked","infoWindow","canOpenInfoWindow","infoWindowConfig","onInfoWindowCtaClick"]),h=t.useState(null),p=h[0],d=h[1],u=n(null),f=u[0],v=u[1],g=n(!1),x=g[0],E=g[1],w=Am().handleIconType,z=r((function(e,t,n){var l=w(s,s.isSelected);e.setIcon(l),v(!f),a(e,t,n,c,m)}),[s,c,f,w,a,v,m]);return t.useEffect((function(){v(s.isSelected)}),[s.isSelected]),t.useEffect((function(){if(!p&&!x&&i){var e=w(s,s.isSelected),t=new google.maps.Marker({icon:e});d(t),l(t)}}),[p,w,l,s,x,i]),t.useEffect((function(){null===p||x||(p.setOptions(s),E(!0))}),[p,s,z,x,E,i]),t.useEffect((function(){null!==p&&(google.maps.event.clearListeners(p,"click"),p.addListener("click",(function(){return z(p,i,o)})),E(!0))}),[p,o,i,z]),null},Pm=N("div")((function(e){e.theme,xe(e,["theme"]);return{width:"inherit",height:"100%","& .gm-style-iw.gm-style-iw-c":{minWidth:"335px",width:"335px",minHeight:"248px",padding:"24px 14px 24px 24px !important","&::after":{display:"none"},"& button.gm-ui-hover-effect":{display:"none !important"},"& #content":{"& h4":{fontSize:"24px",margin:0},"& > #streetInfo":{marginTop:"10px"},"& > #phoneNumber":{marginTop:"10px",color:"#0B7AC2",fontSize:"16px"},"& > #openStatus":{display:"flex",marginTop:"10px",flexDirection:"row",fontSize:"16px","& > #info-dealer-status":{width:"100%","& > #info-dealer-closed":{color:"#D22121"},"& > #info-dealer-opened":{color:"#1E8001"}}},"& > #detail-cta-container":{marginTop:"16px",cursor:"pointer",width:"110px","& > #info-detail-cta":{fontSize:"16px",fontWeight:400}},"& p":{margin:0,fontSize:"16px",lineHeight:"24px"}}}}})),jm=t.forwardRef((function(e,l){var i=e.apiKey,o=e.enableFitBound,c=e.hideControlsOnMobile,m=e.markers,s=e.center,h=e.zoom,p=e.enableMoveSearch,d=e.canOpenInfoWindow,u=void 0===d||d,f=e.markerSelectedId,v=e.callbackMarkerClicked,g=e.onDragEndCallback,x=e.onInfoWindowCtaClick;xe(e,["apiKey","enableFitBound","hideControlsOnMobile","markers","center","zoom","enableMoveSearch","canOpenInfoWindow","markerSelectedId","callbackMarkerClicked","onDragEndCallback","onInfoWindowCtaClick"]);var E=n([]),w=E[0],z=E[1],b=Am().onMarkerClick,M=n(null),F=M[0],y=M[1],H=n([]),C=H[0],k=H[1],I=n(null),S=I[0],D=I[1];a((function(){b(f,w)}),[f,w,b]);var B=function(e,t){t&&t(),e.close()},L=function(e,t,n,l,r){return Ee(void 0,void 0,void 0,(function(){var a,i;return we(this,(function(o){switch(o.label){case 0:return b(e.id,w),v&&v(e),n&&l?(a=Om(l),t.setContent(a),[4,t.open({anchor:e,map:F})]):[3,3];case 1:return o.sent(),[4,document.getElementById("info-detail-cta")];case 2:(i=o.sent())&&(i.removeEventListener("click",(function(){return B(t,r)})),i.addEventListener("click",(function(){return B(t,r)}))),o.label=3;case 3:return[2]}}))}))},T=r((function(e){z((function(t){return ze([e],t)}))}),[]),A=r((function(){w&&w.length>0&&w.forEach((function(e){e.setMap(null)})),z([]),k([])}),[w]);a((function(){A()}),[m]),a((function(){C.length<=0&&w.length<=0&&k(m)}),[C,m,w]),a((function(){if(o&&F&&w.length>0){for(var e=new google.maps.LatLngBounds,t=0;t<w.length;t++){var n=w[t].getPosition(),l={lat:n.lat(),lng:n.lng()};e.extend(l)}F.fitBounds(e)}}),[w,F,o]);var N=r((function(e){e&&y(e)}),[]),V=r((function(e){var t=e.getCenter(),n={lat:t.lat(),lng:t.lng()};g&&g(e,n)}),[g]),O=r((function(){var e=window.matchMedia("(max-width: 719px)").matches,t=document.getElementById("map-controls-container");t&&(t.style.display=e&&c?"none":"block")}),[c]);return a((function(){return O(),window.addEventListener("resize",O),function(){window.removeEventListener("resize",O)}}),[F,O]),t.createElement(Pm,null,i&&t.createElement(tm,{apiKey:i},t.createElement(Rm,{setInfoWindow:D,currentInfoWindow:S,enableMoveSearch:p,onDragEnd:V,center:s,onClick:function(e){S&&S.close()},zoom:h,registeredMarkers:w,handleCurrentMap:N,style:{flexGrow:"1",height:"100%",width:"100%"}},C&&C.length>0&&C.map((function(e,n){return t.createElement(Wm,{infoWindow:S,handleRegisteredMarkers:T,isSelected:e.isSelected,id:e.id,onInfoWindowCtaClick:x,canOpenInfoWindow:u,resultIcon:e.resultIcon,selectedIcon:e.selectedIcon,infoWindowConfig:e.infoWindowConfig,handleMarkerClicked:L,key:n,position:{lat:e.lat,lng:e.lng}})})))))})),_m=function(e,t){return""===e||"number"==typeof e&&e-1>0&&e+1<=t||"number"==typeof parseInt(e)&&parseInt(e)>0&&parseInt(e)<=t},Zm=t.forwardRef((function(e,l){var i=e.count,o=e.isDisabled,c=e.page,m=e.prevButtonLabel,s=e.nextButtonLabel,h=e.defaultPage,p=e.hideNextButton,d=e.hidePrevButton,u=e.hideLabels,f=e.onValueChange,v=e.mobileCounterLabel,g=xe(e,["count","isDisabled","page","prevButtonLabel","nextButtonLabel","defaultPage","hideNextButton","hidePrevButton","hideLabels","onValueChange","mobileCounterLabel"]),x=n(h||1),E=x[0],w=x[1],z=n(!0),b=z[0],M=z[1],F=n(),y=F[0],H=F[1];a((function(){E&&f&&f(E)}),[E,f]),a((function(){b?M(!1):c&&!o&&w(c)}),[o,b,c]);var C=r((function(e,t){w(t)}),[]);return t.createElement(Gm,null,t.createElement(pe,ge({className:"desktopView"},g,{shape:"rounded",count:i,disabled:o,page:E,hideNextButton:p,hidePrevButton:d,ref:l,onChange:C,renderItem:function(e){return t.createElement(de,ge({components:{previous:function(){return t.createElement(t.Fragment,null,t.createElement("span",{className:"MuiButton-startIcon"},t.createElement(Fe,{fontSize:"small",className:"arrow-left"})),m)},next:function(){return t.createElement(t.Fragment,null,s,t.createElement("span",{className:"MuiButton-endIcon"},t.createElement(Fe,{fontSize:"small",className:"arrow-right"})))}}},e))}}))," ",t.createElement("div",{style:{display:"flex",flexDirection:"column"},className:"mobileView"},t.createElement("div",{className:"mobileContainer"},function(e,n,l){return t.createElement(t.Fragment,null,t.createElement("div",{className:"controllerContainer",onClick:l?function(){return l()}:null},t.createElement("span",{className:"MuiButton-startIcon"},t.createElement(Fe,{fontSize:"small",className:"arrow-left"})),(!n||!0!==n)&&t.createElement("span",{className:"arrowLabel"},e)))}(m,u,(function(){_m(E-1,i)&&w(E-1)})),t.createElement(Q,{className:"textFieldContainer",value:E,inputProps:{inputMode:"numeric",pattern:"[1-"+i+"]*"},onChange:function(e){return function(e){""===e&&(H(E),w(e));var t=parseInt(e);"number"==typeof t&&_m(t,i)&&(H(t),w(t))}(e.target.value)},onBlur:function(){return""===E&&w(y)}}),function(e,n,l){return t.createElement(t.Fragment,null,t.createElement("div",{className:"controllerContainer",onClick:l?function(){return l()}:null},(!n||!0!==n)&&t.createElement("span",{className:"arrowLabel"},e),t.createElement("span",{className:"MuiButton-endIcon"},t.createElement(Fe,{fontSize:"small",className:"arrow-right"}))))}(s,u,(function(){_m(E+1,i)&&w(E+1)}))),t.createElement("div",{className:"counter_label"}," ",v+" "+i," ")))})),Gm=s("div")((function(e){var t,n=e.theme,l={},r="SKODA Next";return(t={})[n.breakpoints.up("md")]={"& .mobileView":{display:"none !important"}},t[n.breakpoints.down("md")]={"& .desktopView":{display:"none !important"}},t["& .mobileContainer"]=ge(ge({},l),{display:"flex",justifyContent:"space-around",paddingLeft:"20px",paddingRight:"20px"}),t["& .controllerContainer"]={display:"flex",alignItems:"center",fontFamily:r,fontStyle:"normal",fontWeight:"400",fontSize:"16px",lineHeight:"16px",gap:"15px","& .MuiButton-endIcon, .MuiButton-startIcon":{marginTop:"3px"}},t["& .textFieldContainer "]={display:"flex",alignItems:"center",justifyContent:"space-around",borderBottom:"0px !important","& div":{width:"50px",height:"36px",backgroundColor:"rgba(22, 23, 24, 0.06)","& input":{textAlign:"center",fontFamily:r,fontStyle:"normal",fontWeight:"400",fontSize:"16px",lineHeight:"16px"}}},t["& .counter_label"]={textAlign:"center",marginTop:"12px",fontFamily:r,fontStyle:"normal",fontWeight:"400",fontSize:"16px",lineHeight:"16px"},l=t})),Um=c((function(e,n){var l=e.children,i=e.open,o=e.anchor,c=e.handleClose,m=void 0===c?function(){}:c,s=xe(e,["children","open","anchor","handleClose"]),h=r((function(e){return function(t){("keydown"!==t.type||"Tab"!==t.key&&"Shift"!==t.key)&&(e||m(e))}}),[m]);return a((function(){h(i)}),[i,h]),t.createElement(Km,ge({},s,{ref:n,anchor:o,open:i,onClose:h(!1)}),t.createElement(ue,{role:"presentation",onClick:h(!1),onKeyDown:h(!1)},l))})),Km=H(se,{shouldForwardProp:function(e){return"hasRoundedBorders"!==e}})((function(e){var t=xe(e,[]);if(!t.hasRoundedBorders)return{"& > .MuiPaper-root":{borderRadius:"0px"}};return{"& > .MuiPaper-root":{bottom:{borderTopLeftRadius:"16px",borderTopRightRadius:"16px"},top:{borderBottomLeftRadius:"16px",borderBottomRightRadius:"16px"},left:{borderTopRightRadius:"16px",borderBottomRightRadius:"16px"},right:{borderTopLeftRadius:"16px",borderBottomLeftRadius:"16px"}}[t.anchor]}}));function Ym(e,t){return Object.keys(e).length===Object.keys(t).length&&Object.keys(e).every((function(n){return!!Object.prototype.hasOwnProperty.call(t,n)&&e[n]===t[n]}))}function Jm(e){return e.concat().sort((function(e,t){return e.name>t.name?1:-1})).map((function(e){return e.options}))}function Xm(e,t){var n={start:function(){return 0},center:function(e){return l(e)/2},end:l};function l(e){return t-e}return{measure:function(l){return"number"==typeof e?t*Number(e):n[e](l)}}}function Qm(e){return Math.abs(e)}function qm(e){return e?e/Qm(e):0}function $m(e,t){return Qm(e-t)}function es(e,t){for(var n=[],l=0;l<e.length;l+=t)n.push(e.slice(l,l+t));return n}function ts(e){return Object.keys(e).map(Number)}function ns(e){return e[ls(e)]}function ls(e){return Math.max(0,e.length-1)}function rs(e,t){var n=Qm(e-t);function l(t){return t<e}function r(e){return e>t}function a(e){return l(e)||r(e)}return{length:n,max:t,min:e,constrain:function(n){return a(n)?l(n)?e:t:n},reachedAny:a,reachedMax:r,reachedMin:l,removeOffset:function(e){return n?e-n*Math.ceil((e-t)/n):e}}}function as(e,t,n){var l=rs(0,e),r=l.min,a=l.constrain,i=e+1,o=c(t);function c(e){return n?Qm((i+e)%i):a(e)}function m(){return o}function s(e){return o=c(e),h}var h={add:function(e){return s(m()+e)},clone:function(){return as(e,m(),n)},get:m,set:s,min:r,max:e};return h}function is(){var e=[];var t={add:function(n,l,r,a){return void 0===a&&(a=!1),n.addEventListener(l,r,a),e.push((function(){return n.removeEventListener(l,r,a)})),t},removeAll:function(){return e=e.filter((function(e){return e()})),t}};return t}function os(e){var t=e;function n(e){return t/=e,r}function l(e){return"number"==typeof e?e:e.get()}var r={add:function(e){return t+=l(e),r},divide:n,get:function(){return t},multiply:function(e){return t*=e,r},normalize:function(){return 0!==t&&n(t),r},set:function(e){return t=l(e),r},subtract:function(e){return t-=l(e),r}};return r}function cs(e,t,n,l,r,a,i,o,c,m,s,h,p,d,u){var f=e.cross,v=["INPUT","SELECT","TEXTAREA"],g=os(0),x=is(),E=is(),w={mouse:300,touch:400},z={mouse:500,touch:600},b=r?5:16,M=0,F=0,y=!1,H=!1,C=!1,k=!1;function I(e){if(!(k="mousedown"===e.type)||0===e.button){var t,r,o=$m(l.get(),i.get())>=2,c=k||!o,s=(t=e.target,r=t.nodeName||"",!(v.indexOf(r)>-1)),h=o||k&&s;y=!0,a.pointerDown(e),g.set(l),l.set(i),m.useBaseMass().useSpeed(80),function(){var e=k?document:n;E.add(e,"touchmove",S).add(e,"touchend",D).add(e,"mousemove",S).add(e,"mouseup",D)}(),M=a.readPoint(e),F=a.readPoint(e,f),p.emit("pointerDown"),c&&(C=!1),h&&e.preventDefault()}}function S(e){if(!H&&!k){if(!e.cancelable)return D(e);var n=a.readPoint(e),r=a.readPoint(e,f),i=$m(n,M),c=$m(r,F);if(!(H=i>c)&&!C)return D(e)}var m=a.pointerMove(e);!C&&m&&(C=!0),o.start(),l.add(t.apply(m)),e.preventDefault()}function D(e){var n=s.byDistance(0,!1).index!==h.get(),i=a.pointerUp(e)*(r?z:w)[k?"mouse":"touch"],o=function(e,t){var n=h.clone().add(-1*qm(e)),l=n.get()===h.min||n.get()===h.max,a=s.byDistance(e,!r).distance;return r||Qm(e)<20?a:!d&&l?.4*a:u&&t?.5*a:s.byIndex(n.get(),0).distance}(t.apply(i),n),f=function(e,t){if(0===e||0===t)return 0;if(Qm(e)<=Qm(t))return 0;var n=$m(Qm(e),Qm(t));return Qm(n/e)}(i,o),v=$m(l.get(),g.get())>=.5,x=n&&f>.75,M=Qm(i)<20,F=x?10:b,I=x?1+2.5*f:1;v&&!k&&(C=!0),H=!1,y=!1,E.removeAll(),m.useSpeed(M?9:F).useMass(I),c.distance(o,!r),k=!1,p.emit("pointerUp")}function B(e){C&&e.preventDefault()}return{addActivationEvents:function(){var e=n;x.add(e,"touchmove",(function(){})).add(e,"touchend",(function(){})).add(e,"touchstart",I).add(e,"mousedown",I).add(e,"touchcancel",D).add(e,"contextmenu",D).add(e,"click",B)},clickAllowed:function(){return!C},pointerDown:function(){return y},removeAllEvents:function(){x.removeAll(),E.removeAll()}}}function ms(e,t,n){var l,r,a=(l=2,r=Math.pow(10,l),function(e){return Math.round(e*r)/r}),i=os(0),o=os(0),c=os(0),m=0,s=t,h=n;function p(e){return s=e,u}function d(e){return h=e,u}var u={direction:function(){return m},seek:function(t){c.set(t).subtract(e);var n,l,r,a,p=(n=c.get(),(r=0)+(n-(l=0))/(100-l)*(s-r));return m=qm(c.get()),c.normalize().multiply(p).subtract(i),(a=c).divide(h),o.add(a),u},settle:function(t){var n=t.get()-e.get(),l=!a(n);return l&&e.set(t),l},update:function(){i.add(o),e.add(i),o.multiply(0)},useBaseMass:function(){return d(n)},useBaseSpeed:function(){return p(t)},useMass:d,useSpeed:p};return u}function ss(e,t,n,l){var r=!1;return{constrain:function(a){if(!r&&e.reachedAny(n.get())&&e.reachedAny(t.get())){var i=e.reachedMin(t.get())?"min":"max",o=Qm(e[i]-t.get()),c=n.get()-t.get(),m=Math.min(o/50,.85);n.subtract(c*m),!a&&Qm(c)<10&&(n.set(e.constrain(n.get())),l.useSpeed(10).useMass(3))}},toggleActive:function(e){r=!e}}}function hs(e,t,n,l,r){var a=rs(-t+e,n[0]),i=l.map(a.constrain),o=function(){if(t<=e)return[a.max];if("keepSnaps"===r)return i;var n=function(){var e=i[0],t=ns(i),n=i.lastIndexOf(e),l=i.indexOf(t)+1;return rs(n,l)}(),l=n.min,o=n.max;return i.slice(l,o)}();return{snapsContained:o}}function ps(e,t,n,l,r){var a=rs(n.min+t.measure(.1),n.max+t.measure(.1)),i=a.reachedMin,o=a.reachedMax;return{loop:function(t){if(function(e){return 1===e?o(l.get()):-1===e&&i(l.get())}(t)){var n=e*(-1*t);r.forEach((function(e){return e.add(n)}))}}}}function ds(e){var t=e.max,n=e.length;return{get:function(e){return(e-t)/-n}}}function us(e,t,n,l,r,a){var i,o,c=e.startEdge,m=e.endEdge,s=r.map((function(e){return l[c]-e[c]})).map(n.measure).map((function(e){return-Qm(e)})),h=(i=es(s,a).map((function(e){return e[0]})),o=es(r,a).map((function(e){return ns(e)[m]-e[0][c]})).map(n.measure).map(Qm).map(t.measure),i.map((function(e,t){return e+o[t]})));return{snaps:s,snapsAligned:h}}function fs(e,t,n,l,r){var a=l.reachedAny,i=l.removeOffset,o=l.constrain;function c(e,t){return Qm(e)<Qm(t)?e:t}function m(t,l){var r=t,a=t+n,i=t-n;return e?l?Qm(c(r,1===l?a:i))*l:c(c(r,a),i):r}var s={byDistance:function(n,l){var c=r.get()+n,s=function(n){var l=e?i(n):o(n);return{index:t.map((function(e){return e-l})).map((function(e){return m(e,0)})).map((function(e,t){return{diff:e,index:t}})).sort((function(e,t){return Qm(e.diff)-Qm(t.diff)}))[0].index,distance:l}}(c),h=s.index,p=s.distance,d=!e&&a(c);return!l||d?{index:h,distance:n}:{index:h,distance:n+m(t[h]-p,0)}},byIndex:function(e,n){return{index:e,distance:m(t[e]-r.get(),n)}},shortcut:m};return s}function vs(e,t,n,l,r,a,i,o){var c,m=ts(l),s=ts(l).reverse(),h=(c=r[0]-1,u(d(s,c),"end")).concat(function(){var e=t-r[0]-1;return u(d(m,e),"start")}());function p(e,t){return e.reduce((function(e,t){return e-l[t]}),t)}function d(e,t){return e.reduce((function(e,n){return p(e,t)>0?e.concat([n]):e}),[])}function u(e,t){var l="start"===t,r=l?-n:n,o=a.findSlideBounds([r]);return e.map((function(e){var t=l?0:-n,r=l?n:0,a=o.filter((function(t){return t.index===e}))[0][l?"end":"start"];return{point:a,getTarget:function(){return i.get()>a?t:r},index:e,location:-1}}))}var f={canLoop:function(){return h.every((function(e){var n=e.index;return p(m.filter((function(e){return e!==n})),t)<=0}))},clear:function(){h.forEach((function(t){var n=t.index;o[n].style[e.startEdge]=""}))},loop:function(){h.forEach((function(t){var n=t.getTarget,l=t.location,r=t.index,a=n();a!==l&&(o[r].style[e.startEdge]=a+"%",t.location=a)}))},loopPoints:h};return f}function gs(e,t,n){var l="x"===e.scroll?function(e){return"translate3d("+e+"%,0px,0px)"}:function(e){return"translate3d(0px,"+e+"%,0px)"},r=n.style,a=!1;return{clear:function(){r.transform=""},to:function(e){a||(r.transform=l(t.apply(e.get())))},toggleActive:function(e){a=!e}}}function xs(e,t,n,l,r){var a,i=l.align,o=l.axis,c=l.direction,m=l.startIndex,s=l.inViewThreshold,h=l.loop,p=l.speed,d=l.dragFree,u=l.slidesToScroll,f=l.skipSnaps,v=l.containScroll,g=t.getBoundingClientRect(),x=n.map((function(e){return e.getBoundingClientRect()})),E=function(e){var t="rtl"===e?-1:1;return{apply:function(e){return e*t}}}(c),w=function(e,t){var n="y"===e?"y":"x";return{scroll:n,cross:"y"===e?"x":"y",startEdge:"y"===n?"top":"rtl"===t?"right":"left",endEdge:"y"===n?"bottom":"rtl"===t?"left":"right",measureSize:function(e){var t=e.width,l=e.height;return"x"===n?t:l}}}(o,c),z=(a=w.measureSize(g),{measure:function(e){return 0===a?0:e/a*100},totalPercent:100}),b=z.totalPercent,M=Xm(i,b),F=function(e,t,n,l,r){var a=e.measureSize,i=e.startEdge,o=e.endEdge,c=l.map(a);return{slideSizes:c.map(t.measure),slideSizesWithGaps:l.map((function(e,t,l){var a=t===ls(l),m=window.getComputedStyle(ns(n)),s=parseFloat(m.getPropertyValue("margin-"+o));return a?c[t]+(r?s:0):l[t+1][i]-e[i]})).map(t.measure).map(Qm)}}(w,z,n,x,h),y=F.slideSizes,H=F.slideSizesWithGaps,C=us(w,M,z,g,x,u),k=C.snaps,I=C.snapsAligned,S=-ns(k)+ns(H),D=hs(b,S,k,I,v).snapsContained,B=!h&&""!==v?D:I,L=function(e,t,n){var l,r;return{limit:(l=t[0],r=ns(t),rs(n?l-e:r,l))}}(S,B,h).limit,T=as(ls(B),m,h),A=T.clone(),N=ts(n),V=function(e){var t=0;function n(e,n){return function(){e===!!t&&n()}}function l(){t=window.requestAnimationFrame(e)}return{proceed:n(!0,l),start:n(!1,l),stop:n(!0,(function(){window.cancelAnimationFrame(t),t=0}))}}((function(){h||U.scrollBounds.constrain(U.dragHandler.pointerDown()),U.scrollBody.seek(W).update();var e=U.scrollBody.settle(W);e&&!U.dragHandler.pointerDown()&&(U.animation.stop(),r.emit("settle")),e||r.emit("scroll"),h&&(U.scrollLooper.loop(U.scrollBody.direction()),U.slideLooper.loop()),U.translate.to(R),U.animation.proceed()})),O=B[T.get()],R=os(O),W=os(O),P=ms(R,p,1),j=fs(h,B,S,L,W),_=function(e,t,n,l,r,a){function i(l){var i=l.distance,o=l.index!==t.get();i&&(e.start(),r.add(i)),o&&(n.set(t.get()),t.set(l.index),a.emit("select"))}return{distance:function(e,t){i(l.byDistance(e,t))},index:function(e,n){var r=t.clone().set(e);i(l.byIndex(r.get(),n))}}}(V,T,A,j,W,r),Z=function(e,t,n,l,r,a,i){var o=r.removeOffset,c=r.constrain,m=Math.min(Math.max(i,.01),.99),s=a?[0,t,-t]:[0],h=p(s,m);function p(t,r){var a=t||s,i=r||0,o=n.map((function(e){return e*i}));return a.reduce((function(t,r){var a=l.map((function(t,l){return{start:t-n[l]+o[l]+r,end:t+e-o[l]+r,index:l}}));return t.concat(a)}),[])}return{check:function(e,t){var n=a?o(e):c(e);return(t||h).reduce((function(e,t){var l=t.index,r=t.start,a=t.end;return-1===e.indexOf(l)&&r<n&&a>n?e.concat([l]):e}),[])},findSlideBounds:p}}(b,S,y,k,L,h,s),G=cs(w,E,e,W,d,function(e,t){var n,l;function r(e){return"undefined"!=typeof TouchEvent&&e instanceof TouchEvent}function a(e){return e.timeStamp}function i(t,n){var l="client"+("x"===(n||e.scroll)?"X":"Y");return(r(t)?t.touches[0]:t)[l]}return{isTouchEvent:r,pointerDown:function(e){return n=e,l=e,t.measure(i(e))},pointerMove:function(e){var r=i(e)-i(l),o=a(e)-a(n)>170;return l=e,o&&(n=e),t.measure(r)},pointerUp:function(e){if(!n||!l)return 0;var r=i(l)-i(n),o=a(e)-a(n),c=a(e)-a(l)>170,m=r/o;return o&&!c&&Qm(m)>.1?t.measure(m):0},readPoint:i}}(w,z),R,V,_,P,j,T,r,h,f),U={containerRect:g,slideRects:x,animation:V,axis:w,direction:E,dragHandler:G,eventStore:is(),pxToPercent:z,index:T,indexPrevious:A,limit:L,location:R,options:l,scrollBody:P,scrollBounds:ss(L,R,W,P),scrollLooper:ps(S,z,L,R,[R,W]),scrollProgress:ds(L),scrollSnaps:B,scrollTarget:j,scrollTo:_,slideLooper:vs(w,b,S,H,B,Z,R,n),slidesInView:Z,slideIndexes:N,target:W,translate:gs(w,E,t)};return U}var Es={align:"center",axis:"x",containScroll:"",direction:"ltr",dragFree:!1,draggable:!0,inViewThreshold:0,loop:!1,skipSnaps:!1,slidesToScroll:1,speed:10,startIndex:0};function ws(e,t,n){var l,r,a,i,o,c,m,s,h,p=function(){var e={};function t(t){return e[t]||[]}var n={emit:function(e){return t(e).forEach((function(t){return t(e)})),n},off:function(l,r){return e[l]=t(l).filter((function(e){return e!==r})),n},on:function(l,r){return e[l]=t(l).concat([r]),n}};return n}(),d=(l=function(){if(g){var e=i.axis.measureSize(m.getBoundingClientRect());w!==e&&M(),p.emit("resize")}},r=500,a=0,function(){window.clearTimeout(a),a=window.setTimeout(l,r)||0}),u=M,f=p.on,v=p.off,g=!1,x=Object.assign({},Es,ws.globalOptions),E=Object.assign({},x),w=0;function z(){var t,n="container"in e&&e.container,l="slides"in e&&e.slides;m="root"in e?e.root:e,s=n||m.children[0],h=l||[].slice.call(s.children),t=getComputedStyle(m,":before").content,o={get:function(){try{return JSON.parse(t.slice(1,-1).replace(/\\/g,""))}catch(e){}return{}}}}function b(e,t){if(z(),x=Object.assign({},x,e),E=Object.assign({},x,o.get()),c=Object.assign([],t),(i=xs(m,s,h,E,p)).eventStore.add(window,"resize",d),i.translate.to(i.location),w=i.axis.measureSize(m.getBoundingClientRect()),c.forEach((function(e){return e.init(k)})),E.loop){if(!i.slideLooper.canLoop())return F(),b({loop:!1},t);i.slideLooper.loop()}E.draggable&&s.offsetParent&&h.length&&i.dragHandler.addActivationEvents(),g||(setTimeout((function(){return p.emit("init")}),0),g=!0)}function M(e,t){if(g){var n=C(),l=Object.assign({startIndex:n},e);F(),b(l,t||c),p.emit("reInit")}}function F(){i.dragHandler.removeAllEvents(),i.animation.stop(),i.eventStore.removeAll(),i.translate.clear(),i.slideLooper.clear(),c.forEach((function(e){return e.destroy()}))}function y(e){var t=i[e?"target":"location"].get(),n=E.loop?"removeOffset":"constrain";return i.slidesInView.check(i.limit[n](t))}function H(e,t,n){i.scrollBody.useBaseMass().useSpeed(t?100:E.speed),g&&i.scrollTo.index(e,n||0)}function C(){return i.index.get()}var k={canScrollNext:function(){return i.index.clone().add(1).get()!==C()},canScrollPrev:function(){return i.index.clone().add(-1).get()!==C()},clickAllowed:function(){return i.dragHandler.clickAllowed()},containerNode:function(){return s},internalEngine:function(){return i},destroy:function(){g&&(F(),g=!1,p.emit("destroy"))},off:v,on:f,previousScrollSnap:function(){return i.indexPrevious.get()},reInit:u,rootNode:function(){return m},scrollNext:function(e){H(i.index.clone().add(1).get(),!0===e,-1)},scrollPrev:function(e){H(i.index.clone().add(-1).get(),!0===e,1)},scrollProgress:function(){return i.scrollProgress.get(i.location.get())},scrollSnapList:function(){return i.scrollSnaps.map(i.scrollProgress.get)},scrollTo:H,selectedScrollSnap:C,slideNodes:function(){return h},slidesInView:y,slidesNotInView:function(e){var t=y(e);return i.slideIndexes.filter((function(e){return-1===t.indexOf(e)}))}};return b(t,n),k}function zs(e,t){void 0===e&&(e={}),void 0===t&&(t=[]);var r=n(),o=r[0],c=r[1],m=n(),s=m[0],h=m[1],p=l(e),d=l(t),u=i((function(){return Ym(p.current,e)||(p.current=e),p.current}),[p,e]),f=i((function(){return function(e,t){if(e.length!==t.length)return!1;var n=Jm(e),l=Jm(t);return n.every((function(e,t){return Ym(e,l[t])}))}(d.current,t)||(d.current=t),d.current}),[d,t]);return a((function(){if("undefined"!=typeof window&&window.document&&window.document.createElement&&s){ws.globalOptions=zs.globalOptions;var e=ws(s,u,f);return c(e),function(){return e.destroy()}}c(void 0)}),[s,u,f,c]),[h,o]}ws.globalOptions=void 0,zs.globalOptions=void 0;var bs={selected:"is-selected",draggable:"is-draggable",dragging:"is-dragging"};function Ms(e,t){var n=e.classList;t&&n.contains(t)&&n.remove(t)}function Fs(e,t){var n=e.classList;t&&!n.contains(t)&&n.add(t)}function ys(e){var t,n,l,r=Object.assign({},bs,ys.globalOptions,e),a=r.selected,i=r.draggable,o=r.dragging,c=["select","pointerUp"],m=["pointerDown","pointerUp"];function s(e){"pointerDown"===e?Fs(n,o):Ms(n,o)}function h(){var e=t.slidesInView(!0);t.slidesNotInView(!0).forEach((function(e){return Ms(l[e],a)})),e.forEach((function(e){return Fs(l[e],a)}))}return{name:"ClassNames",options:r,init:function(e){n=(t=e).rootNode(),l=t.slideNodes(),t.internalEngine().options.draggable&&Fs(n,i),o&&m.forEach((function(e){return t.on(e,s)})),a&&(c.forEach((function(e){return t.on(e,h)})),h())},destroy:function(){Ms(n,i),m.forEach((function(e){return t.off(e,s)})),c.forEach((function(e){return t.off(e,h)})),l.forEach((function(e){return Ms(e,a)}))}}}ys.globalOptions=void 0;var Hs,Cs={delay:4e3,playOnInit:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1};function ks(e,t){var n,l=Object.assign({},Cs,ks.globalOptions,e),r=l.playOnInit,a=l.stopOnInteraction,i=l.stopOnMouseEnter,o=l.stopOnLastSnap,c=l.delay,m=a?h:d,s=0;function h(){n.off("pointerDown",m),a||n.off("pointerUp",u),d(),s=0}function p(){d(),s=window.setTimeout(f,c)}function d(){s&&window.clearTimeout(s)}function u(){s&&(d(),p())}function f(){var e=n.internalEngine().index;if(o&&e.get()===e.max)return h();n.canScrollNext()?n.scrollNext():n.scrollTo(0),p()}return{name:"Autoplay",options:l,init:function(e){var l=(n=e).internalEngine().eventStore,o=n.rootNode(),c=t&&t(o)||o;n.on("pointerDown",m),a||n.on("pointerUp",u),i&&(l.add(c,"mouseenter",m),a||l.add(c,"mouseleave",u)),l.add(document,"visibilitychange",(function(){if("hidden"===document.visibilityState)return d();u()})),l.add(window,"pagehide",(function(e){e.persisted&&d()})),r&&p()},destroy:h,play:p,stop:d,reset:u}}ks.globalOptions=void 0,function(e){e.NEXT="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCAzNiAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTgiIGN5PSIxOCIgcj0iMTgiIGZpbGw9IndoaXRlIiBmaWxsLW9wYWNpdHk9IjAuOCIvPgo8cGF0aCBkPSJNOC4xNDYgMTYuNDk2VjE5LjJIMjMuNzcyTDE2Ljg4MiAyNi4wMTJMMTguNTQ2IDI3LjY3NkwyOC4zNzQgMTcuODQ4TDE4LjU0NiA4LjAyTDE2Ljg4MiA5LjY4NEwyMy43NzIgMTYuNDk2SDguMTQ2WiIgZmlsbD0iIzE2MTcxOCIvPgo8L3N2Zz4K",e.PREV="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCAzNiAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTgiIGN5PSIxOCIgcj0iMTgiIGZpbGw9IndoaXRlIiBmaWxsLW9wYWNpdHk9IjAuOCIvPgo8cGF0aCBkPSJNMTkuMTE4IDI2LjAxMkwxMi4yMjggMTkuMkgyNy44NTRWMTYuNDk2SDEyLjIyOEwxOS4xMTggOS42ODRMMTcuNDU0IDguMDJMNy42MjYgMTcuODQ4TDE3LjQ1NCAyNy42NzZMMTkuMTE4IDI2LjAxMloiIGZpbGw9IiMxNjE3MTgiLz4KPC9zdmc+Cg=="}(Hs||(Hs={}));var Is,Ss,Ds,Bs=N("div",{shouldForwardProp:function(e){return"isSlideDifferentWidth"!==e&&"slidesItems"!==e&&"slideToShow"!==e&&"bulletTheme"!==e&&"numberingSeparator"!==e&&"numberingSlides"!==e&&"startIndex"!==e&&"cssClass"!==e&&"buttonControls"!==e&&"buttonAreaControlsHeight"!==e&&"slideToScroll"!==e&&"prevControlIcon"!==e&&"nextControlIcon"!==e&&"controlColor"!==e&&"controlIconStyle"!==e&&"controlVariant"!==e&&"controlIconFontSize"!==e&&"slideSelectedClass"!==e&&"heightSlide"!==e&&"bulletScroll"!==e&&"bulletStyle"!==e}})((function(e){var t,n,l,r,a,i,o,c,m,s,h,p=e.theme,d=xe(e,["theme"]),u={};switch(u=ge(ge({},u),{"& .embla":(t={position:"relative",padding:"0px",maxWidth:"100%",marginLeft:"auto",marginRight:"auto",boxSizing:"border-box","& *":{boxSizing:"border-box"}},t[p.breakpoints.up("md")]={"&.embla-container-next":{"& .embla__container":{left:"center"===d.align?"-6%":"-3%"}},"&.embla-container-prev":{"& .embla__container":{left:"center"===d.align?"-2%":"3%"}}},t),"& .embla__viewport":{overflow:"hidden",width:"100%"},"& .embla__viewport.is-draggable":{cursor:"move"},"& .embla__viewport.is-dragging":{cursor:"grabbing"},"& .embla__container":(n={display:"flex",userSelect:"none",webkitTouchCallout:"none",khtmlUserSelect:"none",webkitTapHighlightColor:"transparent",marginLeft:"-24px",transition:"left .4s"},n[p.breakpoints.up("md")]={position:"relative",left:"center"===d.align?"-4%":"0"},n),"& .embla__slide":(l={position:"relative",flex:"0 0 auto",paddingLeft:"24px"},l[p.breakpoints.down("md")]={width:d.isSlideDifferentWidth?"":"100%"},l),"& .embla__slide__inner":{position:"relative",overflow:"hidden",height:"100%",display:d.isSlideDifferentWidth?"flex":"","& img":{maxWidth:"100%",height:"100%",objectFit:"cover"}},"& .embla__button":{position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",top:"0",height:"100%",zIndex:"2",border:"0",boxShadow:"none",backgroundColor:"transparent",cursor:"auto",borderRadius:0,"& .MuiIcon-fontSizeSmall":{width:"24px",height:"24px","&::before":{position:"relative",top:"-3px"}},"& .MuiIcon-fontSizeMedium":{width:"32px",height:"32px","&::before":{position:"relative",top:"-2px"}},"&:disabled":{"& .MuiIcon-root":{color:p.palette.action.disable},"&:hover":(r={},r[p.breakpoints.up("lg")]={"& .MuiIcon-root":{backgroundColor:"transparent"}},r)}},"& .embla__button--prev":{left:"0",width:"12%","& .MuiIcon-root":{position:"relative",left:"-20%"}},"& .embla__button--prev.prev--hovered":(a={},a[p.breakpoints.up("lg")]={cursor:"url("+Hs.PREV+"), auto","& button":{transform:"scale(0)"}},a),"& .embla__button--next":{right:"0",width:"12%","& .MuiIcon-root":{position:"relative",left:"20%"}},"& .embla__button--next.next--hovered":(i={},i[p.breakpoints.up("lg")]={cursor:"url("+Hs.NEXT+"), auto","& button":{transform:"scale(0)"}},i),"& .embla__progress":{position:"relative",backgroundColor:"transparent",marginTop:!0===d.numberingSlides?"30px":"10px",maxWidth:"100%",width:"100%",height:"4px",overflow:"hidden",borderRadius:"4px",marginLeft:"auto",marginRight:"auto"},"& .embla__progress__bar":{position:"absolute",backgroundColor:p.palette.neutrals[200],width:"100%",top:"0",bottom:"0",left:"-100%"},"& .carousel_numbering":(o={},o[p.breakpoints.up("md")]={position:"absolute",right:"11%"},o[p.breakpoints.down("md")]={textAlign:"center"},o),"& .embla__dots":{display:"flex",listStyle:"none",justifyContent:"center",paddingTop:"10px","& .embla__dot":{backgroundColor:"transparent",cursor:"pointer",position:"relative",padding:"0",outline:"0",border:"0",width:"30px",height:"30px",marginRight:"7.5px",marginLeft:"7.5px",display:"flex",alignItems:"center","&:after":{backgroundColor:"#D8D8D8",width:"50px",height:"4px",borderRadius:"2px",content:'""'},"&.is-selected":{"&:after":{backgroundColor:"#161718",opacity:"1"}}},"& .embla__dot_small":{backgroundColor:"transparent",cursor:"pointer",position:"relative",padding:"0",outline:"0",border:"0",width:"12px",height:"6px",marginRight:"6px",marginLeft:"6px",display:"flex",alignItems:"center","&:after":{backgroundColor:"dark"===d.bulletTheme?"#161718":"white",width:"6px",height:"6px",borderRadius:"50%",content:'""'},"&.is-selected":{"&:after":{backgroundColor:"transparent",height:"12px",width:"12px",border:"dark"===d.bulletTheme?"2px solid #161718":"2px solid white",borderRadius:"50%",opacity:"1"}}}}}),d.slideToShow){case 1:return ge(ge({},u),{"& .embla__slide":(c={position:"relative",flex:"0 0 100%",paddingLeft:"24px"},c[p.breakpoints.up("md")]={flex:d.isSlideDifferentWidth?"0 0 auto":"0 0 100%",maxWidth:!0===d.isSlideDifferentWidth?" 100%":"80%"},c)});case 2:return ge(ge({},u),{"& .embla__slide":(m={position:"relative",flex:"0 0 100%"},m[p.breakpoints.up("md")]={flex:"0 0 50%"},m.paddingLeft="24px",m)});case 3:return ge(ge({},u),{"& .embla__slide":(s={position:"relative",flex:"0 0 100%"},s[p.breakpoints.up("md")]={flex:"0 0 33.33%"},s.paddingLeft="24px",s)});case 4:return ge(ge({},u),{"& .embla__slide":(h={position:"relative",flex:"0 0 100%"},h[p.breakpoints.up("md")]={flex:"0 0 25%"},h.paddingLeft="24px",h)})}return u})),Ls=N("div",{shouldForwardProp:function(e){return"isSlideDifferentWidth"!==e&&"slidesItems"!==e&&"slideToShow"!==e&&"bulletTheme"!==e&&"numberingSeparator"!==e&&"numberingSlides"!==e&&"startIndex"!==e&&"cssClass"!==e&&"buttonControls"!==e&&"buttonAreaControlsHeight"!==e&&"slideToScroll"!==e&&"prevControlIcon"!==e&&"nextControlIcon"!==e&&"controlColor"!==e&&"controlIconStyle"!==e&&"controlVariant"!==e&&"controlIconFontSize"!==e&&"slideSelectedClass"!==e&&"heightSlide"!==e&&"bulletScroll"!==e&&"bulletStyle"!==e}})((function(e){var t=e.theme;xe(e,["theme"]);var n={};return n=ge(ge({},n),{"& .embla":{position:"relative",padding:"0px",maxWidth:"100%",marginLeft:"auto",marginRight:"auto"},"& .embla__viewport":{overflow:"hidden",width:"100%"},"& .embla__viewport.is-draggable":{cursor:"move grab"},"& .embla__viewport.is-dragging":{cursor:"grabbing"},"& .embla__container":{userSelect:"none",webkitTouchCallout:"none",khtmlUserSelect:"none",webkitTapHighlightColor:"transparent",marginTop:NaN,height:"450px"},"& .embla__slide":{position:"relative",overflow:"hidden",height:"100%",width:"100%","& *":{width:"100%"}},"& .embla__slide__inner":{position:"relative",overflow:"hidden",height:"100%"},"& .embla__slide__img":{position:"absolute",display:"block",top:" 50%",left:"50%",width:"auto",minHeight:"100%",minWidth:"100%",maxWidth:"none",transform:"translate(-50%, -50%)"},"& .embla__button":{position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",top:"0",height:"100%",zIndex:"2",border:"0",boxShadow:"none",backgroundColor:"transparent",cursor:"pointer","& .MuiIcon-fontSizeSmall":{width:"24px",height:"24px","&::before":{position:"relative",top:"-3px"}},"& .MuiIcon-fontSizeMedium":{width:"32px",height:"32px","&::before":{position:"relative",top:"-2px"}},"&:hover":{"& .MuiIcon-root":{borderRadius:"50%",backgroundColor:"#EDEFEF"}},"&:disabled":{"& .MuiIcon-root":{color:t.palette.action.disable},"&:hover":{"& .MuiIcon-root":{backgroundColor:"transparent"}}}},"& .embla__button--prev":{left:"0",width:"12%","& .MuiIcon-root":{position:"relative",left:"-20%"}},"& .embla__button--next":{right:"0",width:"20%","& .MuiIcon-root":{position:"relative",left:"20%"}},"& .embla__progress":{position:"relative",backgroundColor:"transparent",marginTop:"10px",maxWidth:"100%",width:"100%",height:"4px",overflow:"hidden",borderRadius:"4px",marginLeft:"auto",marginRight:"auto"},"& .embla__progress__bar":{position:"absolute",backgroundColor:t.palette.neutrals[200],width:"100%",top:"0",bottom:"0",left:"-100%"}})})),Ts=He["flow-colors"],As=t.forwardRef((function(e,n){var l=xe(e,[]),a=r((function(e){l.onClickCallback&&!l.isDisabled&&l.onClickCallback(e)}),[l]);return t.createElement(Os,ge({},l,{ref:n,onClick:function(){return a(l.controlType)}}),t.createElement("button",null,t.createElement(Fe,{fontSize:l.iconFontSize,className:l.controlType+" "+l.iconStyle})))})),Ns=Ts.background,Vs=Ts.text,Os=s("div",{shouldForwardProp:function(e){return"controlType"!==e&&"controllerColor"!==e&&"iconStyle"!==e&&"iconFontSize"!==e&&"controlVariant"!==e&&"onClickCallback"!==e&&"isDisabled"!==e&&"customHeight"!==e}})((function(e){var t,n;e.theme;var l=xe(e,["theme"]),r="medium"===l.iconFontSize?"32px":"24px",a={display:"flex",justifyContent:"center",alignItems:"center"},i={fontWeight:"400",fontSize:"20px",lineHeight:"21px",textAlign:"center",letterSpacing:"0.002em"},o="light"===l.controllerColor?Ns:Vs,c=function(e){return"light"===e?"2px solid "+Ns:"2px solid "+Vs}(l.controllerColor),m=function(e){return"light"===e?"0 0 0 1px "+Vs+", 0 0 0 3px "+Ns:"0 0 0 1px "+Ns+", 0 0 0 3px "+Vs}(l.controllerColor);return l.isDisabled?ge(ge({height:(l.customHeight?l.customHeight:"100%")+" !important",borderRadius:"50%"},a),{"& button":ge(ge({},a),(n={cursor:"not-allowed !important",height:r,width:r,color:"#C4C6C7",borderRadius:"50%",border:"outline"===l.controlVariant?"2px solid #C4C6C7":"0px","&:hover":{backgroundColor:"none"},"&:active":{transform:"none"}},n["& ."+l.controlType]=ge(ge({position:"unset !important"},a),i),n))}):ge(ge({height:(l.customHeight?l.customHeight:"100%")+" !important",cursor:"pointer"},a),{"& button":ge(ge({cursor:"pointer",borderRadius:"50%",height:r,width:r,color:o,border:"outline"===l.controlVariant?c:"0px",backgroundColor:"transparent"},a),(t={"&:hover":{backgroundColor:"light"===l.controllerColor?"rgba(255, 255, 255, 0.24)":"rgba(22, 23, 24, 0.06)"},"&:active":{transform:"scale(0.95)"},"&:focus":{border:"outline"!==l.controlVariant&&c,boxShadow:"outline"===l.controlVariant&&m}},t["& ."+l.controlType]=ge(ge({zIndex:9,position:"unset !important"},a),i),t))})}));!function(e){e.LIGHT="light",e.DARK="dark"}(Is||(Is={})),function(e){e.SMALL="small",e.LARGE="large"}(Ss||(Ss={})),function(e){e.AUTO_END="auto-end",e.AUTO_START="auto-start",e.AUTO="auto",e.BOTTOM_END="bottom-end",e.BOTTOM_START="bottom-start",e.BOTTOM="bottom",e.LEFT_END="left-end",e.LEFT_START="left-start",e.LEFT="left",e.RIGHT_END="right-end",e.RIGHT_START="right-start",e.RIGHT="right",e.TOP_END="top-end",e.TOP_START="top-start",e.TOP="top"}(Ds||(Ds={}));var Rs=t.forwardRef((function(e){var n=xe(e,[]);return t.createElement(Ws,ge({},n,{style:n.customStyle}),t.createElement("span",{className:"index-container"},n.index," "),t.createElement("span",{className:"separator-container"},n.customSeparator?n.customSeparator:"/"," "),t.createElement("span",{className:"total-container"},n.total))})),Ws=s("div",{shouldForwardProp:function(e){return"customSeparator"!==e&&"colorTheme"!==e}})((function(e){e.theme;var t=xe(e,["theme"]);return{fontFamily:"SKODA Next",fontStyle:"normal",fontWeight:"700",fontSize:t.size===Ss.LARGE?"18px":"16px",lineHeight:t.size===Ss.LARGE?"28px":"24px",letterSpacing:"0.02em","& .index-container":{color:t.colorTheme===Is.DARK?"#161718":"#FFFFFF"},"& .separator-container":{color:"#7C7D7E"},"& .total-container":{color:"#7C7D7E"}}})),Ps=function(e){var n=e.selected,l=e.onClick,r=e.bulletStyle;return t.createElement("button",{className:r&&"dot"===r?"embla__dot_small "+(n?"is-selected":""):"embla__dot "+(n?"is-selected":""),type:"button",onClick:l})},js=function(e,n,l,r,a,i,o,c,m,s,h,p,d,u,f,v,g,x,E,w,z,b,M,F,y,H,C,k,I,S,D){var B="rtl"===a;return t.createElement(t.Fragment,null,t.createElement("div",{className:"embla "+e+" "+w,dir:a},t.createElement("div",{className:"embla__viewport",ref:i},t.createElement("div",{className:"embla__container"},o.map((function(n,l){return t.createElement("div",{id:"embla "+e+"__"+l,className:"embla__slide",key:l},t.createElement("div",{className:"embla__slide__inner",style:{height:c}},n))}))),m&&t.createElement(t.Fragment,null,t.createElement(As,{style:{top:h+"px"},controlType:H,controllerColor:D,iconStyle:k,iconFontSize:I,controlVariant:S,className:"embla__button embla__button--prev "+Us("prev",n,l),onClickCallback:function(){return F(r,a)},isDisabled:B?l&&!p:!l,customHeight:s,onMouseEnter:function(){return x("prev")},onMouseLeave:function(){return x("")}}),t.createElement(As,{style:{top:h+"px"},controlType:C,controllerColor:D,iconStyle:k,iconFontSize:I,controlVariant:S,className:"embla__button embla__button--next "+Us("next",n,p),onClickCallback:function(){return y(r,a)},isDisabled:B?!l&&p:!p,customHeight:s,onMouseEnter:function(){return x("next")},onMouseLeave:function(){return x("")}})))),d&&t.createElement(t.Fragment,null,t.createElement(Rs,{className:"carousel_numbering",index:u+E,total:o.length,customSeparator:f,colorTheme:Is.DARK,size:Ss.LARGE})),v&&!z&&t.createElement("div",{className:"embla__progress"},t.createElement("div",{className:"embla__progress__bar",style:{transform:"translateX("+g+"%)"}})),z&&1===E&&t.createElement("div",{className:"embla__dots"},o.map((function(e,n){var l=o.length-n-1;return t.createElement(Ps,{bulletStyle:b,key:n,selected:B?l===u:n===u,onClick:function(){return M(r,n)}})}))))},_s=function(e,t){e&&("ltr"===t?e.scrollPrev():e.scrollNext())},Zs=function(e,t){e&&("rtl"===t?e.scrollPrev():e.scrollNext())},Gs=function(e,t){e&&e.scrollTo(t)},Us=function(e,t,n){return t&&n?e+"--hovered":""},Ks=function(e,t){var n=e.slideNodes();t<=1&&n.forEach((function(e){if(e){var t=e.querySelector("img");if(t)return e.style.width=t.naturalWidth+"px"}}))},Ys=function(e){var l=e.align,i=void 0===l?"start":l,o=e.autoPlay,c=void 0!==o&&o,m=e.axis,s=void 0===m?"x":m,h=e.buttonAreaControlsHeight,p=void 0===h?"50%":h,d=e.buttonControls,u=void 0===d||d,f=e.buttonControlsPosition,v=void 0===f?"0":f,g=e.cssClass,x=void 0===g?"":g,E=e.direction,w=void 0===E?"ltr":E,z=e.heightSlide,b=e.isSlideDifferentWidth,F=void 0!==b&&b,y=e.loop,H=void 0!==y&&y,C=e.numberingSeparator,k=void 0===C?"/":C,I=e.numberingSlides,S=void 0===I||I,D=e.progressbar,B=void 0!==D&&D,L=e.slidesItems,T=e.slideToScroll,A=void 0===T?1:T,N=e.slideToShow,V=void 0===N?1:N,O=e.slideSelectedClass,R=void 0===O?"slide-selected":O,W=e.speed,P=void 0===W?10:W,j=e.startIndex,_=void 0===j?0:j,Z=e.bulletScroll,G=void 0!==Z&&Z,U=e.bulletStyle,K=void 0===U?"dot":U,Y=e.bulletTheme,J=void 0===Y?"dark":Y,X=e.prevControlIcon,Q=void 0===X?"arrow-left":X,q=e.nextControlIcon,$=void 0===q?"arrow-right":q,ee=e.controlIconStyle,te=void 0===ee?"regular":ee,ne=e.controlIconFontSize,le=void 0===ne?"medium":ne,re=e.controlVariant,ae=void 0===re?"standard":re,ie=e.controlColor,oe=void 0===ie?"dark":ie,ce=ks({playOnInit:!!c}),me={selected:R},se="center"!==i?"trimSnaps":"",he=n(_),pe=he[0],de=he[1],ue=n(!0),fe=ue[0],ve=ue[1],xe=n(!0),Ee=xe[0],we=xe[1],ze=n(0),be=ze[0],Me=ze[1],Fe=n(!1),ye=Fe[0],He=Fe[1],Ce=n(),ke=Ce[0],Ie=Ce[1],Se=n(""),De=Se[0],Be=Se[1],Le=zs({align:i,axis:s,containScroll:se,direction:w,loop:H,slidesToScroll:ke?1:A,skipSnaps:!1,speed:P,startIndex:_},[ce,ys(me)]),Te=Le[0],Ae=Le[1],Ne=M(),Ve=function(e){He(!ye),function(e){switch(!0){case"prev"===e&&fe:return Be("embla-container-prev");case"next"===e&&Ee:return Be("embla-container-next");default:Be("")}}(e)},Oe=r((function(){if(Ae||B){var e=Math.max(0,Math.min(1,Ae.scrollProgress()));Me(100*e)}}),[Ae,B,Me]);return a((function(){if(Ae){Ks(Ae,V);var e=function(){var e=Ae.selectedScrollSnap();de(e),de(Ae.selectedScrollSnap()),ve(Ae.canScrollPrev()),we(Ae.canScrollNext())};Ae.on("select",e),e(),Ae.on("scroll",Oe),Oe()}}),[Ae,B,Oe,V]),a((function(){var e=window.matchMedia("(max-width: "+Ne.breakpoints.values.md+"px)");Ie(e.matches)}),[Ne.breakpoints.values.md]),"y"===s?t.createElement(Ls,ge({align:i,slidesItems:L,slideToShow:V,bulletTheme:J},e),js(x,ye,fe,Ae,w,Te,L,z,u,p,v,Ee,S,pe,k,B,be,(function(e){return Ve(e)}),V,De,G,K,Gs,_s,Zs,Q,$,te,le,ae,oe)):t.createElement(Bs,ge({isSlideDifferentWidth:F,align:i,slidesItems:L,slideToShow:V,bulletTheme:J},e),js(x,ye,fe,Ae,w,Te,L,z,u,p,v,Ee,S,pe,k,B,be,(function(e){return Ve(e)}),V,De,G,K,Gs,_s,Zs,Q,$,te,le,ae,oe))},Js=t.forwardRef((function(e,l){var i=e.children,o=e.isClickable,c=e.onClickCallback,m=e.isClicked,s=xe(e,["children","isClickable","onClickCallback","isClicked"]),h=n(!1),p=h[0],d=h[1];a((function(){o&&d((function(){return m}))}),[o,m]);var u=r((function(){o&&d((function(e){return c&&c(!e),!e}))}),[o,c]);return t.createElement(Xs,ge({},s,{ref:l,onClick:u,isClicked:p,isClickable:o}),t.createElement("div",null,i))})),Xs=N.div((function(e){e.theme;var t=xe(e,["theme"]),n="inset 0 0 0 1px #E4E4E4, 0px 0px 8px rgba(0, 0, 0, 0.15)",l=t.isClicked?{boxShadow:"inset 0 0 0 2px #419468, 0px 0px 8px rgba(0, 0, 0, 0.15)"}:{boxShadow:n},r=t.isClickable?ge({cursor:"pointer"},l):{boxShadow:n};return ge({display:"inline-block",boxSizing:"border-box",borderRadius:"4px",background:"rgba(0,0,0,0)","&:hover":{boxShadow:"inset 0 0 0 2px #419468, 0px 0px 8px rgba(0, 0, 0, 0.15)"}},r)})),Qs=t.forwardRef((function(e,n){var l=e.items,o=e.onChange,c=e.disableAnimation,m=e.accordionContainerProps,s=e.accordionPanelMaxHeight,h=e.allowMultipleExpand,p=xe(e,["items","onChange","disableAnimation","accordionContainerProps","accordionPanelMaxHeight","allowMultipleExpand"]),d=t.useState(!1),u=d[0],f=d[1];a((function(){if(h){for(var e={},t=0;t<l.length;t++){var n=l[t].id||"panel"+t;e[n]=!!l[t].isDefaultExpanded}f((function(){return e}))}else{var r,a=l.find((function(e,t){if(e.isDefaultExpanded)return r=t,e}));a&&f(a.id||"panel"+r)}}),[h,l]);var v=r((function(e){return function(t,n){o&&o(e,n),f(h?function(t){var l;return ge(ge({},t),((l={})[e]=n,l))}:!!n&&e)}}),[h,o]),g=r((function(e){return"string"==typeof e?nc(e,100):e}),[]),x=i((function(){return c?{timeout:0}:p.TransitionProps}),[c,p.TransitionProps]);return t.createElement(qs,ge({ref:n},m),t.createElement(So,null),l.map((function(e,n){var l=e.id||"panel"+n,r=h?!!u[l]:u===l,a="string"==typeof e.content;return t.createElement($s,ge({},p,{id:l,key:l,className:l,TransitionProps:x,expanded:r,onChange:v(l),disabled:e.disabled,isContentTypeString:a,disableGutters:!0,accordionPanelMaxHeight:s,square:!0}),t.createElement(T,{className:"subheadline","aria-controls":l+"d-content",id:l+"d-header",expandIcon:t.createElement(As,{controlType:r?"ballotx":"plus"})},t.createElement("div",{className:"accordion-panel-title"},e.title),p.previewContent&&a&&!r&&t.createElement("div",{className:"accordion-panel-title--sneak-peak"},g(e.content))),t.createElement(A,null,t.createElement("div",{className:"text"},e.content)))})))})),qs=N.div((function(){return{"& > .MuiDivider-root":{background:"rgba(26, 27, 28, 0.12)",borderRadius:"6px"},"& .MuiPaper-root:first-of-type":{borderTopLeftRadius:"6px",borderTopRightRadius:"6px"},"& .MuiPaper-root:last-of-type":{borderBottomLeftRadius:"6px",borderBottomRightRadius:"6px"}}})),$s=s(fe,{shouldForwardProp:function(e){return"previewContent"!==e&&"expandIcon"!==e&&"isContentTypeString"!==e&&"accordionPanelMaxHeight"!==e}})((function(e){e.theme;var t=xe(e,["theme"]),n={};return t.accordionPanelMaxHeight&&(n=ge(ge({},n),{"& .text":{maxHeight:t.accordionPanelMaxHeight,overflowY:"auto"}})),n}));export{Qs as Accordion,Qo as Backdrop,Oe as Button,Me as ButtonVariants,Js as CardContainer,Bc as CardOwnedVehicle,wc as CardPhotoAdjustable,uc as CardPhotoFixed,Zc as CardPromoVehicle,Uc as CardTypeOnly,Ys as Carousel,Pe as Checkbox,fo as Chip,Mo as ChipDropdownChildren,po as ChipImage,_i as Container,As as Controller,So as Divider,Um as Drawer,ai as Flag,Ki as Grid,cc as HeroImageCard,Fe as Icon,at as Indicator,Ke as Label,Xe as LabelCO2,$e as LabelFeature,Ho as LabelPromotional,Co as LabelPromotionalStyled,nt as LabelStatus,jm as Maps,oi as Menu,Jc as Modal,zo as MultiSelectChip,Rs as Numbering,Zm as Pagination,Pc as ProgressBar,_e as RadioButton,mo as SelectInput,sc as ShortcutLink,ji as SkodaTheme,ht as Slider,Yo as Snackbar,Zo as Tab,Go as TabPanel,jo as Tabs,Po as TabsContext,Qi as TextArea,vc as TextCta,io as TextInput,Lc as Tile,Ge as ToggleSwitch,dt as Tooltip,Jo as checkForIcon,Pi as createSkodaTheme,Ks as emblaWidthSize,Us as getHoveredClass,Zs as handleScrollNext,_s as handleScrollPrev,Gs as handleScrollTo};
29
+ ***************************************************************************** */class ym{constructor({markers:e,position:t}){this.markers=e,t&&(t instanceof google.maps.LatLng?this._position=t:this._position=new google.maps.LatLng(t))}get bounds(){if(0!==this.markers.length||this._position)return this.markers.reduce(((e,t)=>e.extend(t.getPosition())),new google.maps.LatLngBounds(this._position,this._position))}get position(){return this._position||this.bounds.getCenter()}get count(){return this.markers.filter((e=>e.getVisible())).length}push(e){this.markers.push(e)}delete(){this.marker&&(this.marker.setMap(null),delete this.marker),this.markers.length=0}}const Hm=e=>e.map((e=>new ym({position:e.getPosition(),markers:[e]})));class Cm extends class{constructor({maxZoom:e=16}){this.maxZoom=e}noop({markers:e}){return Hm(e)}}{constructor(e){var{maxZoom:t,radius:n=60}=e,l=function(e,t){var n={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(n[l]=e[l]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(l=Object.getOwnPropertySymbols(e);r<l.length;r++)t.indexOf(l[r])<0&&Object.prototype.propertyIsEnumerable.call(e,l[r])&&(n[l[r]]=e[l[r]])}return n}(e,["maxZoom","radius"]);super({maxZoom:t}),this.superCluster=new dm(Object.assign({maxZoom:this.maxZoom,radius:n},l)),this.state={zoom:null}}calculate(e){let t=!1;if(!Fm(e.markers,this.markers)){t=!0,this.markers=[...e.markers];const n=this.markers.map((e=>({type:"Feature",geometry:{type:"Point",coordinates:[e.getPosition().lng(),e.getPosition().lat()]},properties:{marker:e}})));this.superCluster.load(n)}const n={zoom:e.map.getZoom()};return t||this.state.zoom>this.maxZoom&&n.zoom>this.maxZoom||(t=t||!Fm(this.state,n)),this.state=n,t&&(this.clusters=this.cluster(e)),{clusters:this.clusters,changed:t}}cluster({map:e}){return this.superCluster.getClusters([-180,-90,180,90],Math.round(e.getZoom())).map(this.transformCluster.bind(this))}transformCluster({geometry:{coordinates:[e,t]},properties:n}){if(n.cluster)return new ym({markers:this.superCluster.getLeaves(n.cluster_id,1/0).map((e=>e.properties.marker)),position:new google.maps.LatLng({lat:t,lng:e})});{const e=n.marker;return new ym({markers:[e],position:e.getPosition()})}}}class km{constructor(e,t){this.markers={sum:e.length};const n=t.map((e=>e.count)),l=n.reduce(((e,t)=>e+t),0);this.clusters={count:t.length,markers:{mean:l/t.length,sum:l,min:Math.min(...n),max:Math.max(...n)}}}}class Im{render({count:e,position:t},n){const l=e>Math.max(10,n.clusters.markers.mean)?"#ff0000":"#0000ff",r=window.btoa(`\n <svg fill="${l}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240">\n <circle cx="120" cy="120" opacity=".6" r="70" />\n <circle cx="120" cy="120" opacity=".3" r="90" />\n <circle cx="120" cy="120" opacity=".2" r="110" />\n </svg>`);return new google.maps.Marker({position:t,icon:{url:`data:image/svg+xml;base64,${r}`,scaledSize:new google.maps.Size(45,45)},label:{text:String(e),color:"rgba(255,255,255,0.9)",fontSize:"12px"},title:`Cluster of ${e} markers`,zIndex:Number(google.maps.Marker.MAX_ZINDEX)+e})}}class Sm{constructor(){!function(e,t){for(let n in t.prototype)e.prototype[n]=t.prototype[n]}(Sm,google.maps.OverlayView)}}var Dm;!function(e){e.CLUSTERING_BEGIN="clusteringbegin",e.CLUSTERING_END="clusteringend",e.CLUSTER_CLICK="click"}(Dm||(Dm={}));const Bm=(e,t,n)=>{n.fitBounds(t.bounds)};class Lm extends Sm{constructor({map:e,markers:t=[],algorithm:n=new Cm({}),renderer:l=new Im,onClusterClick:r=Bm}){super(),this.markers=[...t],this.clusters=[],this.algorithm=n,this.renderer=l,this.onClusterClick=r,e&&this.setMap(e)}addMarker(e,t){this.markers.includes(e)||(this.markers.push(e),t||this.render())}addMarkers(e,t){e.forEach((e=>{this.addMarker(e,!0)})),t||this.render()}removeMarker(e,t){const n=this.markers.indexOf(e);return-1!==n&&(e.setMap(null),this.markers.splice(n,1),t||this.render(),!0)}removeMarkers(e,t){let n=!1;return e.forEach((e=>{n=this.removeMarker(e,!0)||n})),n&&!t&&this.render(),n}clearMarkers(e){this.markers.length=0,e||this.render()}render(){const e=this.getMap();if(e instanceof google.maps.Map&&this.getProjection()){google.maps.event.trigger(this,Dm.CLUSTERING_BEGIN,this);const{clusters:t,changed:n}=this.algorithm.calculate({markers:this.markers,map:e,mapCanvasProjection:this.getProjection()});(n||null==n)&&(this.reset(),this.clusters=t,this.renderClusters()),google.maps.event.trigger(this,Dm.CLUSTERING_END,this)}}onAdd(){this.idleListener=this.getMap().addListener("idle",this.render.bind(this)),this.render()}onRemove(){google.maps.event.removeListener(this.idleListener),this.reset()}reset(){this.markers.forEach((e=>e.setMap(null))),this.clusters.forEach((e=>e.delete())),this.clusters=[]}renderClusters(){const e=new km(this.markers,this.clusters),t=this.getMap();this.clusters.forEach((n=>{1===n.markers.length?n.marker=n.markers[0]:(n.marker=this.renderer.render(n,e),this.onClusterClick&&n.marker.addListener("click",(e=>{google.maps.event.trigger(this,Dm.CLUSTER_CLICK,n),this.onClusterClick(e,n,t)}))),n.marker.setMap(t)}))}}var Tm;!function(e){e.PLUS="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTYuMTMzIDEzLjIzOEg3Ljg2N1Y3Ljg4M0gxMy4yMjJWNi4xNDlINy44NjdWMC43OTM5OTlINi4xMzNWNi4xNDlIMC43NzhWNy44ODNINi4xMzNWMTMuMjM4WiIgZmlsbD0iYmxhY2siLz4KPC9zdmc+Cg==",e.MINUS="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMiIgdmlld0JveD0iMCAwIDE0IDIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0wLjc3OCAwLjA2Mzk5OTZWMS45NjhIMTMuMjIyVjAuMDYzOTk5NkgwLjc3OFoiIGZpbGw9ImJsYWNrIi8+Cjwvc3ZnPgo=",e.CENTER_LOCATIONS="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwM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 58" fill="none" xmlns="http://www.w3.org/2000/svg">\n<rect x="19" y="41" width="4" height="17" fill="#52A438"/>\n<circle cx="21" cy="21" r="21" fill="#52A438"/>\n<path d="M21 29.58C26.2 25.78 29.62 22.38 29.62 18.64C29.62 15.88 27.5 13.58 24.64 13.58C23.1 13.58 21.74 14.36 21 15.7C20.26 14.36 18.9 13.58 17.36 13.58C14.5 13.58 12.38 15.88 12.38 18.64C12.38 22.38 15.8 25.78 21 29.58Z" fill="white"/>\n</svg>':e.resultIcon||'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<circle cx="12" cy="12" r="12" fill="#313232"/>\n<path d="M12 18.0744C15.536 15.4904 17.8616 13.1784 17.8616 10.6352C17.8616 8.7584 16.42 7.1944 14.4752 7.1944C13.428 7.1944 12.5032 7.7248 12 8.636C11.4968 7.7248 10.572 7.1944 9.5248 7.1944C7.58 7.1944 6.1384 8.7584 6.1384 10.6352C6.1384 13.1784 8.464 15.4904 12 18.0744Z" fill="white"/>\n</svg>'}),[]),n={render:function(e){var t=e.count,n=e.position;return new google.maps.Marker({label:{text:String(t),color:"white",fontSize:"19px",fontWeight:"bold"},position:n,icon:Tm.CLUSTER})}};return{onMarkerClick:function(t,n){t&&n.forEach((function(n){var l=n.id===t,r=e(n,l);n.setIcon(r)}))},handleClusterRender:function(e,t,l){if(e&&t){var r={map:t,markers:e,onClusterClick:function(e,t,n){l(!0),n.fitBounds(t.bounds)}};return new Lm(ge(ge({},r),{renderer:n}))}},handleIconType:e}},Nm=[{elementType:"geometry",stylers:[{color:"#eef1f4"}]},{elementType:"geometry.stroke",stylers:[{color:"#60666c"}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{elementType:"labels.text.fill",stylers:[{color:"#575d60"}]},{elementType:"labels.text.stroke",stylers:[{color:"#f5f5f5"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#575d60"}]},{featureType:"landscape.man_made",elementType:"geometry.stroke",stylers:[{color:"#899094"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#dde4e9"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#dde4e9"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#575d60"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#ffffff"}]},{featureType:"road.arterial",elementType:"labels.text.fill",stylers:[{color:"#575d60"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#ffffff"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#575d60"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#575d60"}]},{featureType:"transit.line",elementType:"geometry",stylers:[{color:"#c2c7cb"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#c2c7cb"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#c9cfd4"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#70767b"}]}],Vm=function(e,t,n){e.style.padding="5px",e.style.marginRight="19px";var l=document.createElement("div");e.appendChild(l),function(e,t){var n=document.createElement("div");n.style.width="40px",n.style.height="40px",n.style.borderRadius="4px 4px 0px 0px",n.style.background="#FFFFFF",n.style.cursor="pointer",n.style.marginBottom="1px",n.style.display="flex",n.style.flexDirection="column",n.style.justifyContent="center",e.appendChild(n);var l=document.createElement("img");l.style.width="15px",l.style.height="15px",l.style.margin="0 auto",l.src=Tm.PLUS,n.appendChild(l);var r=document.createElement("div");r.style.width="40px",r.style.height="40px",r.style.borderRadius="0px 0px 4px 4px",r.style.background="#FFFFFF",r.style.cursor="pointer",r.style.display="flex",r.style.flexDirection="column",r.style.justifyContent="center",e.appendChild(r);var a=document.createElement("img");a.style.width="15px",a.style.height="15px",a.style.margin="0 auto",a.src=Tm.MINUS,r.appendChild(a),google.maps.event.addDomListener(n,"click",(function(){t.setZoom(t.getZoom()+1)})),google.maps.event.addDomListener(r,"click",(function(){t.setZoom(t.getZoom()-1)}))}(l,t),function(e,t,n){var l=document.createElement("div");l.style.width="40px",l.style.height="40px",l.style.borderRadius="4px",l.style.background="#FFFFFF",l.style.cursor="pointer",l.style.display="flex",l.style.flexDirection="column",l.style.justifyContent="center",l.style.marginTop="10px",e.appendChild(l);var r=document.createElement("img");r.style.width="20px",r.style.height="20px",r.style.margin="0 auto",r.src=Tm.CENTER_LOCATIONS,l.appendChild(r),l.addEventListener("click",(function(){navigator.geolocation&&navigator.geolocation.getCurrentPosition((function(e){var l={lat:e.coords.latitude,lng:e.coords.longitude};n.setOptions({position:l,icon:Tm.LIVE_POSITION_ON,map:t}),t.setCenter(l)}),(function(e){n.setIcon(Tm.LIVE_POSITION_OFF);var l=n.getPosition();t.setCenter(l)}))}))}(l,t,n)},Om=function(e){return e?'<div id="content">\n\t'+(((o=e.title)&&'<h4 id="infoWindowContent" class="firstHeading">\n '+o+" \n </h4>")+"\n\t")+(a=e.street,i=e.city,'<div id="streetInfo">\n<p>'+(a||"")+"</p>\n<p>"+(i||"")+"</p>\n </div>\n\t")+(((r=e.phone)?'<div id="phoneNumber">\n\t<a href="tel:'+r+'">'+r+"</a>\n </div>":"")+'\n\t<div id="openStatus">\n\t')+((null!==(l=e.isOpen)&&'\n<div id="info-dealer-status">\n'+(l?'<div id="info-dealer-opened">Open now</div>':'<div id="info-dealer-closed">Closed</div>')+"\n </div>\n ")+"\n\t")+(((n=e.distance)?"<div>"+n+"</div>":"")+"\n\t</div>\n\t")+(((t=e.ctaLabel)?'<div id="detail-cta-container">\n<span id="info-detail-cta">'+t+'</span>\n<img src="'+Tm.ARROW_DETAIL+'"/>\n </div>':"")+"\n\t </div>"):"";var t,n,l,r,a,i,o},Rm=function(e){var r=e.onClick,i=e.onDragEnd,o=e.children,c=e.style,m=e.handleCurrentMap,s=e.enableMoveSearch,h=e.setInfoWindow,p=e.currentInfoWindow,d=e.registeredMarkers,u=void 0===d?[]:d,f=xe(e,["onClick","onDragEnd","children","style","handleCurrentMap","enableMoveSearch","setInfoWindow","currentInfoWindow","registeredMarkers"]),v=l(null),g=n(),x=g[0],E=g[1],w=n(null),z=w[0],b=w[1],M=Am().handleClusterRender,F=n(!1),y=F[0],H=F[1],C=n(null),k=C[0],I=C[1],S=n(!1),D=S[0],B=S[1];return a((function(){if(v.current&&!x){var e=function(e){var t=e.center,n=e.zoom;return{mapTypeControl:!1,streetViewControl:!1,fullscreenControl:!1,disableDefaultUI:!0,center:t,zoom:n||12,styles:Nm}}(f),t=new window.google.maps.Map(v.current,ge({},e)),n=new google.maps.Marker({position:f.center,map:x,icon:null});b(n),function(e,t){var n=document.createElement("div");n.setAttribute("id","map-controls-container"),new Vm(n,e,t),e.controls[google.maps.ControlPosition.RIGHT_BOTTOM].push(n)}(t,n),E(t),m(t)}}),[v,x,m,f]),a((function(){if(x&&!p){var e=(t={map:x},new google.maps.InfoWindow({content:Om(t)}));h(e)}var t}),[x,h,p]),a((function(){x&&z&&navigator.geolocation&&navigator.geolocation.getCurrentPosition((function(e){var t=new google.maps.LatLng(e.coords.latitude,e.coords.longitude);z.setOptions({position:t,icon:Tm.LIVE_POSITION_ON,map:x}),x.setCenter(t)}),(function(){z.setIcon(Tm.LIVE_POSITION_OFF)}))}),[x,z]),t.useEffect((function(){return x&&r&&x.addListener("click",r),function(){x&&google.maps.event.clearListeners(x,"click")}}),[x,r]),t.useEffect((function(){return x&&i&&(s?x.addListener("dragend",(function(){return i(x)})):google.maps.event.clearListeners(x,"dragend")),function(){x&&google.maps.event.clearListeners(x,"dragend")}}),[x,i,s]),t.useEffect((function(){x&&(f.zoom&&x.setZoom(f.zoom),f.center&&x.setCenter(f.center))}),[x,f.zoom,f.center]),t.useEffect((function(){y&&k&&(k.clearMarkers(),k.addMarkers(u))}),[k,u,y]),t.useEffect((function(){var e=null;x&&!y&&(e=M(u,x,B),H(!0),I(e))}),[u,x,y,M]),t.useEffect((function(){D&&(p.close(),B(!1))}),[D,p]),t.createElement(t.Fragment,null,t.createElement("div",{ref:v,style:c}),t.Children.map(o,(function(e){if(t.isValidElement(e))return t.cloneElement(e,{map:x})})))},Wm=function(e){var l=e.handleRegisteredMarkers,a=e.handleMarkerClicked,i=e.infoWindow,o=e.canOpenInfoWindow,c=e.infoWindowConfig,m=e.onInfoWindowCtaClick,s=xe(e,["handleRegisteredMarkers","handleMarkerClicked","infoWindow","canOpenInfoWindow","infoWindowConfig","onInfoWindowCtaClick"]),h=t.useState(null),p=h[0],d=h[1],u=n(null),f=u[0],v=u[1],g=n(!1),x=g[0],E=g[1],w=Am().handleIconType,z=r((function(e,t,n){var l=w(s,s.isSelected);e.setIcon(l),v(!f),a(e,t,n,c,m)}),[s,c,f,w,a,v,m]);return t.useEffect((function(){v(s.isSelected)}),[s.isSelected]),t.useEffect((function(){if(!p&&!x&&i){var e=w(s,s.isSelected),t=new google.maps.Marker({icon:e});d(t),l(t)}}),[p,w,l,s,x,i]),t.useEffect((function(){null===p||x||(p.setOptions(s),E(!0))}),[p,s,z,x,E,i]),t.useEffect((function(){null!==p&&(google.maps.event.clearListeners(p,"click"),p.addListener("click",(function(){return z(p,i,o)})),E(!0))}),[p,o,i,z]),null},Pm=N("div")((function(e){e.theme,xe(e,["theme"]);return{width:"inherit",height:"100%","& .gm-style-iw.gm-style-iw-c":{minWidth:"335px",width:"335px",minHeight:"248px",padding:"24px 14px 24px 24px !important","&::after":{display:"none"},"& button.gm-ui-hover-effect":{display:"none !important"},"& #content":{"& h4":{fontSize:"24px",margin:0},"& > #streetInfo":{marginTop:"10px"},"& > #phoneNumber":{marginTop:"10px",color:"#0B7AC2",fontSize:"16px"},"& > #openStatus":{display:"flex",marginTop:"10px",flexDirection:"row",fontSize:"16px","& > #info-dealer-status":{width:"100%","& > #info-dealer-closed":{color:"#D22121"},"& > #info-dealer-opened":{color:"#1E8001"}}},"& > #detail-cta-container":{marginTop:"16px",cursor:"pointer",width:"110px","& > #info-detail-cta":{fontSize:"16px",fontWeight:400}},"& p":{margin:0,fontSize:"16px",lineHeight:"24px"}}}}})),jm=t.forwardRef((function(e,l){var i=e.apiKey,o=e.enableFitBound,c=e.hideControlsOnMobile,m=e.markers,s=e.center,h=e.zoom,p=e.enableMoveSearch,d=e.canOpenInfoWindow,u=void 0===d||d,f=e.markerSelectedId,v=e.callbackMarkerClicked,g=e.onDragEndCallback,x=e.onInfoWindowCtaClick;xe(e,["apiKey","enableFitBound","hideControlsOnMobile","markers","center","zoom","enableMoveSearch","canOpenInfoWindow","markerSelectedId","callbackMarkerClicked","onDragEndCallback","onInfoWindowCtaClick"]);var E=n([]),w=E[0],z=E[1],b=Am().onMarkerClick,M=n(null),F=M[0],y=M[1],H=n([]),C=H[0],k=H[1],I=n(null),S=I[0],D=I[1];a((function(){b(f,w)}),[f,w,b]);var B=function(e,t){t&&t(),e.close()},L=function(e,t,n,l,r){return Ee(void 0,void 0,void 0,(function(){var a,i;return we(this,(function(o){switch(o.label){case 0:return b(e.id,w),v&&v(e),n&&l?(a=Om(l),t.setContent(a),[4,t.open({anchor:e,map:F})]):[3,3];case 1:return o.sent(),[4,document.getElementById("info-detail-cta")];case 2:(i=o.sent())&&(i.removeEventListener("click",(function(){return B(t,r)})),i.addEventListener("click",(function(){return B(t,r)}))),o.label=3;case 3:return[2]}}))}))},T=r((function(e){z((function(t){return ze([e],t)}))}),[]),A=r((function(){w&&w.length>0&&w.forEach((function(e){e.setMap(null)})),z([]),k([])}),[w]);a((function(){A()}),[m]),a((function(){C.length<=0&&w.length<=0&&k(m)}),[C,m,w]),a((function(){if(o&&F&&w.length>0){for(var e=new google.maps.LatLngBounds,t=0;t<w.length;t++){var n=w[t].getPosition(),l={lat:n.lat(),lng:n.lng()};e.extend(l)}F.fitBounds(e)}}),[w,F,o]);var N=r((function(e){e&&y(e)}),[]),V=r((function(e){var t=e.getCenter(),n={lat:t.lat(),lng:t.lng()};g&&g(e,n)}),[g]),O=r((function(){var e=window.matchMedia("(max-width: 719px)").matches,t=document.getElementById("map-controls-container");t&&(t.style.display=e&&c?"none":"block")}),[c]);return a((function(){return O(),window.addEventListener("resize",O),function(){window.removeEventListener("resize",O)}}),[F,O]),t.createElement(Pm,null,i&&t.createElement(tm,{apiKey:i},t.createElement(Rm,{setInfoWindow:D,currentInfoWindow:S,enableMoveSearch:p,onDragEnd:V,center:s,onClick:function(e){S&&S.close()},zoom:h,registeredMarkers:w,handleCurrentMap:N,style:{flexGrow:"1",height:"100%",width:"100%"}},C&&C.length>0&&C.map((function(e,n){return t.createElement(Wm,{infoWindow:S,handleRegisteredMarkers:T,isSelected:e.isSelected,id:e.id,onInfoWindowCtaClick:x,canOpenInfoWindow:u,resultIcon:e.resultIcon,selectedIcon:e.selectedIcon,infoWindowConfig:e.infoWindowConfig,handleMarkerClicked:L,key:n,position:{lat:e.lat,lng:e.lng}})})))))})),_m=function(e,t){return""===e||"number"==typeof e&&e-1>0&&e+1<=t||"number"==typeof parseInt(e)&&parseInt(e)>0&&parseInt(e)<=t},Zm=t.forwardRef((function(e,l){var i=e.count,o=e.isDisabled,c=e.page,m=e.prevButtonLabel,s=e.nextButtonLabel,h=e.defaultPage,p=e.hideNextButton,d=e.hidePrevButton,u=e.hideLabels,f=e.onValueChange,v=e.mobileCounterLabel,g=xe(e,["count","isDisabled","page","prevButtonLabel","nextButtonLabel","defaultPage","hideNextButton","hidePrevButton","hideLabels","onValueChange","mobileCounterLabel"]),x=n(h||1),E=x[0],w=x[1],z=n(!0),b=z[0],M=z[1],F=n(),y=F[0],H=F[1];a((function(){E&&f&&f(E)}),[E,f]),a((function(){b?M(!1):c&&!o&&w(c)}),[o,b,c]);var C=r((function(e,t){w(t)}),[]);return t.createElement(Gm,null,t.createElement(pe,ge({className:"desktopView"},g,{shape:"rounded",count:i,disabled:o,page:E,hideNextButton:p,hidePrevButton:d,ref:l,onChange:C,renderItem:function(e){return t.createElement(de,ge({components:{previous:function(){return t.createElement(t.Fragment,null,t.createElement("span",{className:"MuiButton-startIcon"},t.createElement(Fe,{fontSize:"small",className:"arrow-left"})),m)},next:function(){return t.createElement(t.Fragment,null,s,t.createElement("span",{className:"MuiButton-endIcon"},t.createElement(Fe,{fontSize:"small",className:"arrow-right"})))}}},e))}}))," ",t.createElement("div",{style:{display:"flex",flexDirection:"column"},className:"mobileView"},t.createElement("div",{className:"mobileContainer"},function(e,n,l){return t.createElement(t.Fragment,null,t.createElement("div",{className:"controllerContainer",onClick:l?function(){return l()}:null},t.createElement("span",{className:"MuiButton-startIcon"},t.createElement(Fe,{fontSize:"small",className:"arrow-left"})),(!n||!0!==n)&&t.createElement("span",{className:"arrowLabel"},e)))}(m,u,(function(){_m(E-1,i)&&w(E-1)})),t.createElement(Q,{className:"textFieldContainer",value:E,inputProps:{inputMode:"numeric",pattern:"[1-"+i+"]*"},onChange:function(e){return function(e){""===e&&(H(E),w(e));var t=parseInt(e);"number"==typeof t&&_m(t,i)&&(H(t),w(t))}(e.target.value)},onBlur:function(){return""===E&&w(y)}}),function(e,n,l){return t.createElement(t.Fragment,null,t.createElement("div",{className:"controllerContainer",onClick:l?function(){return l()}:null},(!n||!0!==n)&&t.createElement("span",{className:"arrowLabel"},e),t.createElement("span",{className:"MuiButton-endIcon"},t.createElement(Fe,{fontSize:"small",className:"arrow-right"}))))}(s,u,(function(){_m(E+1,i)&&w(E+1)}))),t.createElement("div",{className:"counter_label"}," ",v+" "+i," ")))})),Gm=s("div")((function(e){var t,n=e.theme,l={},r="SKODA Next";return(t={})[n.breakpoints.up("md")]={"& .mobileView":{display:"none !important"}},t[n.breakpoints.down("md")]={"& .desktopView":{display:"none !important"}},t["& .mobileContainer"]=ge(ge({},l),{display:"flex",justifyContent:"space-around",paddingLeft:"20px",paddingRight:"20px"}),t["& .controllerContainer"]={display:"flex",alignItems:"center",fontFamily:r,fontStyle:"normal",fontWeight:"400",fontSize:"16px",lineHeight:"16px",gap:"15px","& .MuiButton-endIcon, .MuiButton-startIcon":{marginTop:"3px"}},t["& .textFieldContainer "]={display:"flex",alignItems:"center",justifyContent:"space-around",borderBottom:"0px !important","& div":{width:"50px",height:"36px",backgroundColor:"rgba(22, 23, 24, 0.06)","& input":{textAlign:"center",fontFamily:r,fontStyle:"normal",fontWeight:"400",fontSize:"16px",lineHeight:"16px"}}},t["& .counter_label"]={textAlign:"center",marginTop:"12px",fontFamily:r,fontStyle:"normal",fontWeight:"400",fontSize:"16px",lineHeight:"16px"},l=t})),Um=c((function(e,n){var l=e.children,i=e.open,o=e.anchor,c=e.handleClose,m=void 0===c?function(){}:c,s=xe(e,["children","open","anchor","handleClose"]),h=r((function(e){return function(t){("keydown"!==t.type||"Tab"!==t.key&&"Shift"!==t.key)&&(e||m(e))}}),[m]);return a((function(){h(i)}),[i,h]),t.createElement(Km,ge({},s,{ref:n,anchor:o,open:i,onClose:h(!1)}),t.createElement(ue,{role:"presentation",onClick:h(!1),onKeyDown:h(!1)},l))})),Km=H(se,{shouldForwardProp:function(e){return"hasRoundedBorders"!==e}})((function(e){var t=xe(e,[]);if(!t.hasRoundedBorders)return{"& > .MuiPaper-root":{borderRadius:"0px"}};return{"& > .MuiPaper-root":{bottom:{borderTopLeftRadius:"16px",borderTopRightRadius:"16px"},top:{borderBottomLeftRadius:"16px",borderBottomRightRadius:"16px"},left:{borderTopRightRadius:"16px",borderBottomRightRadius:"16px"},right:{borderTopLeftRadius:"16px",borderBottomLeftRadius:"16px"}}[t.anchor]}}));function Ym(e,t){return Object.keys(e).length===Object.keys(t).length&&Object.keys(e).every((function(n){return!!Object.prototype.hasOwnProperty.call(t,n)&&e[n]===t[n]}))}function Jm(e){return e.concat().sort((function(e,t){return e.name>t.name?1:-1})).map((function(e){return e.options}))}function Xm(e,t){var n={start:function(){return 0},center:function(e){return l(e)/2},end:l};function l(e){return t-e}return{measure:function(l){return"number"==typeof e?t*Number(e):n[e](l)}}}function Qm(e){return Math.abs(e)}function qm(e){return e?e/Qm(e):0}function $m(e,t){return Qm(e-t)}function es(e,t){for(var n=[],l=0;l<e.length;l+=t)n.push(e.slice(l,l+t));return n}function ts(e){return Object.keys(e).map(Number)}function ns(e){return e[ls(e)]}function ls(e){return Math.max(0,e.length-1)}function rs(e,t){var n=Qm(e-t);function l(t){return t<e}function r(e){return e>t}function a(e){return l(e)||r(e)}return{length:n,max:t,min:e,constrain:function(n){return a(n)?l(n)?e:t:n},reachedAny:a,reachedMax:r,reachedMin:l,removeOffset:function(e){return n?e-n*Math.ceil((e-t)/n):e}}}function as(e,t,n){var l=rs(0,e),r=l.min,a=l.constrain,i=e+1,o=c(t);function c(e){return n?Qm((i+e)%i):a(e)}function m(){return o}function s(e){return o=c(e),h}var h={add:function(e){return s(m()+e)},clone:function(){return as(e,m(),n)},get:m,set:s,min:r,max:e};return h}function is(){var e=[];var t={add:function(n,l,r,a){return void 0===a&&(a=!1),n.addEventListener(l,r,a),e.push((function(){return n.removeEventListener(l,r,a)})),t},removeAll:function(){return e=e.filter((function(e){return e()})),t}};return t}function os(e){var t=e;function n(e){return t/=e,r}function l(e){return"number"==typeof e?e:e.get()}var r={add:function(e){return t+=l(e),r},divide:n,get:function(){return t},multiply:function(e){return t*=e,r},normalize:function(){return 0!==t&&n(t),r},set:function(e){return t=l(e),r},subtract:function(e){return t-=l(e),r}};return r}function cs(e,t,n,l,r,a,i,o,c,m,s,h,p,d,u){var f=e.cross,v=["INPUT","SELECT","TEXTAREA"],g=os(0),x=is(),E=is(),w={mouse:300,touch:400},z={mouse:500,touch:600},b=r?5:16,M=0,F=0,y=!1,H=!1,C=!1,k=!1;function I(e){if(!(k="mousedown"===e.type)||0===e.button){var t,r,o=$m(l.get(),i.get())>=2,c=k||!o,s=(t=e.target,r=t.nodeName||"",!(v.indexOf(r)>-1)),h=o||k&&s;y=!0,a.pointerDown(e),g.set(l),l.set(i),m.useBaseMass().useSpeed(80),function(){var e=k?document:n;E.add(e,"touchmove",S).add(e,"touchend",D).add(e,"mousemove",S).add(e,"mouseup",D)}(),M=a.readPoint(e),F=a.readPoint(e,f),p.emit("pointerDown"),c&&(C=!1),h&&e.preventDefault()}}function S(e){if(!H&&!k){if(!e.cancelable)return D(e);var n=a.readPoint(e),r=a.readPoint(e,f),i=$m(n,M),c=$m(r,F);if(!(H=i>c)&&!C)return D(e)}var m=a.pointerMove(e);!C&&m&&(C=!0),o.start(),l.add(t.apply(m)),e.preventDefault()}function D(e){var n=s.byDistance(0,!1).index!==h.get(),i=a.pointerUp(e)*(r?z:w)[k?"mouse":"touch"],o=function(e,t){var n=h.clone().add(-1*qm(e)),l=n.get()===h.min||n.get()===h.max,a=s.byDistance(e,!r).distance;return r||Qm(e)<20?a:!d&&l?.4*a:u&&t?.5*a:s.byIndex(n.get(),0).distance}(t.apply(i),n),f=function(e,t){if(0===e||0===t)return 0;if(Qm(e)<=Qm(t))return 0;var n=$m(Qm(e),Qm(t));return Qm(n/e)}(i,o),v=$m(l.get(),g.get())>=.5,x=n&&f>.75,M=Qm(i)<20,F=x?10:b,I=x?1+2.5*f:1;v&&!k&&(C=!0),H=!1,y=!1,E.removeAll(),m.useSpeed(M?9:F).useMass(I),c.distance(o,!r),k=!1,p.emit("pointerUp")}function B(e){C&&e.preventDefault()}return{addActivationEvents:function(){var e=n;x.add(e,"touchmove",(function(){})).add(e,"touchend",(function(){})).add(e,"touchstart",I).add(e,"mousedown",I).add(e,"touchcancel",D).add(e,"contextmenu",D).add(e,"click",B)},clickAllowed:function(){return!C},pointerDown:function(){return y},removeAllEvents:function(){x.removeAll(),E.removeAll()}}}function ms(e,t,n){var l,r,a=(l=2,r=Math.pow(10,l),function(e){return Math.round(e*r)/r}),i=os(0),o=os(0),c=os(0),m=0,s=t,h=n;function p(e){return s=e,u}function d(e){return h=e,u}var u={direction:function(){return m},seek:function(t){c.set(t).subtract(e);var n,l,r,a,p=(n=c.get(),(r=0)+(n-(l=0))/(100-l)*(s-r));return m=qm(c.get()),c.normalize().multiply(p).subtract(i),(a=c).divide(h),o.add(a),u},settle:function(t){var n=t.get()-e.get(),l=!a(n);return l&&e.set(t),l},update:function(){i.add(o),e.add(i),o.multiply(0)},useBaseMass:function(){return d(n)},useBaseSpeed:function(){return p(t)},useMass:d,useSpeed:p};return u}function ss(e,t,n,l){var r=!1;return{constrain:function(a){if(!r&&e.reachedAny(n.get())&&e.reachedAny(t.get())){var i=e.reachedMin(t.get())?"min":"max",o=Qm(e[i]-t.get()),c=n.get()-t.get(),m=Math.min(o/50,.85);n.subtract(c*m),!a&&Qm(c)<10&&(n.set(e.constrain(n.get())),l.useSpeed(10).useMass(3))}},toggleActive:function(e){r=!e}}}function hs(e,t,n,l,r){var a=rs(-t+e,n[0]),i=l.map(a.constrain),o=function(){if(t<=e)return[a.max];if("keepSnaps"===r)return i;var n=function(){var e=i[0],t=ns(i),n=i.lastIndexOf(e),l=i.indexOf(t)+1;return rs(n,l)}(),l=n.min,o=n.max;return i.slice(l,o)}();return{snapsContained:o}}function ps(e,t,n,l,r){var a=rs(n.min+t.measure(.1),n.max+t.measure(.1)),i=a.reachedMin,o=a.reachedMax;return{loop:function(t){if(function(e){return 1===e?o(l.get()):-1===e&&i(l.get())}(t)){var n=e*(-1*t);r.forEach((function(e){return e.add(n)}))}}}}function ds(e){var t=e.max,n=e.length;return{get:function(e){return(e-t)/-n}}}function us(e,t,n,l,r,a){var i,o,c=e.startEdge,m=e.endEdge,s=r.map((function(e){return l[c]-e[c]})).map(n.measure).map((function(e){return-Qm(e)})),h=(i=es(s,a).map((function(e){return e[0]})),o=es(r,a).map((function(e){return ns(e)[m]-e[0][c]})).map(n.measure).map(Qm).map(t.measure),i.map((function(e,t){return e+o[t]})));return{snaps:s,snapsAligned:h}}function fs(e,t,n,l,r){var a=l.reachedAny,i=l.removeOffset,o=l.constrain;function c(e,t){return Qm(e)<Qm(t)?e:t}function m(t,l){var r=t,a=t+n,i=t-n;return e?l?Qm(c(r,1===l?a:i))*l:c(c(r,a),i):r}var s={byDistance:function(n,l){var c=r.get()+n,s=function(n){var l=e?i(n):o(n);return{index:t.map((function(e){return e-l})).map((function(e){return m(e,0)})).map((function(e,t){return{diff:e,index:t}})).sort((function(e,t){return Qm(e.diff)-Qm(t.diff)}))[0].index,distance:l}}(c),h=s.index,p=s.distance,d=!e&&a(c);return!l||d?{index:h,distance:n}:{index:h,distance:n+m(t[h]-p,0)}},byIndex:function(e,n){return{index:e,distance:m(t[e]-r.get(),n)}},shortcut:m};return s}function vs(e,t,n,l,r,a,i,o){var c,m=ts(l),s=ts(l).reverse(),h=(c=r[0]-1,u(d(s,c),"end")).concat(function(){var e=t-r[0]-1;return u(d(m,e),"start")}());function p(e,t){return e.reduce((function(e,t){return e-l[t]}),t)}function d(e,t){return e.reduce((function(e,n){return p(e,t)>0?e.concat([n]):e}),[])}function u(e,t){var l="start"===t,r=l?-n:n,o=a.findSlideBounds([r]);return e.map((function(e){var t=l?0:-n,r=l?n:0,a=o.filter((function(t){return t.index===e}))[0][l?"end":"start"];return{point:a,getTarget:function(){return i.get()>a?t:r},index:e,location:-1}}))}var f={canLoop:function(){return h.every((function(e){var n=e.index;return p(m.filter((function(e){return e!==n})),t)<=0}))},clear:function(){h.forEach((function(t){var n=t.index;o[n].style[e.startEdge]=""}))},loop:function(){h.forEach((function(t){var n=t.getTarget,l=t.location,r=t.index,a=n();a!==l&&(o[r].style[e.startEdge]=a+"%",t.location=a)}))},loopPoints:h};return f}function gs(e,t,n){var l="x"===e.scroll?function(e){return"translate3d("+e+"%,0px,0px)"}:function(e){return"translate3d(0px,"+e+"%,0px)"},r=n.style,a=!1;return{clear:function(){r.transform=""},to:function(e){a||(r.transform=l(t.apply(e.get())))},toggleActive:function(e){a=!e}}}function xs(e,t,n,l,r){var a,i=l.align,o=l.axis,c=l.direction,m=l.startIndex,s=l.inViewThreshold,h=l.loop,p=l.speed,d=l.dragFree,u=l.slidesToScroll,f=l.skipSnaps,v=l.containScroll,g=t.getBoundingClientRect(),x=n.map((function(e){return e.getBoundingClientRect()})),E=function(e){var t="rtl"===e?-1:1;return{apply:function(e){return e*t}}}(c),w=function(e,t){var n="y"===e?"y":"x";return{scroll:n,cross:"y"===e?"x":"y",startEdge:"y"===n?"top":"rtl"===t?"right":"left",endEdge:"y"===n?"bottom":"rtl"===t?"left":"right",measureSize:function(e){var t=e.width,l=e.height;return"x"===n?t:l}}}(o,c),z=(a=w.measureSize(g),{measure:function(e){return 0===a?0:e/a*100},totalPercent:100}),b=z.totalPercent,M=Xm(i,b),F=function(e,t,n,l,r){var a=e.measureSize,i=e.startEdge,o=e.endEdge,c=l.map(a);return{slideSizes:c.map(t.measure),slideSizesWithGaps:l.map((function(e,t,l){var a=t===ls(l),m=window.getComputedStyle(ns(n)),s=parseFloat(m.getPropertyValue("margin-"+o));return a?c[t]+(r?s:0):l[t+1][i]-e[i]})).map(t.measure).map(Qm)}}(w,z,n,x,h),y=F.slideSizes,H=F.slideSizesWithGaps,C=us(w,M,z,g,x,u),k=C.snaps,I=C.snapsAligned,S=-ns(k)+ns(H),D=hs(b,S,k,I,v).snapsContained,B=!h&&""!==v?D:I,L=function(e,t,n){var l,r;return{limit:(l=t[0],r=ns(t),rs(n?l-e:r,l))}}(S,B,h).limit,T=as(ls(B),m,h),A=T.clone(),N=ts(n),V=function(e){var t=0;function n(e,n){return function(){e===!!t&&n()}}function l(){t=window.requestAnimationFrame(e)}return{proceed:n(!0,l),start:n(!1,l),stop:n(!0,(function(){window.cancelAnimationFrame(t),t=0}))}}((function(){h||U.scrollBounds.constrain(U.dragHandler.pointerDown()),U.scrollBody.seek(W).update();var e=U.scrollBody.settle(W);e&&!U.dragHandler.pointerDown()&&(U.animation.stop(),r.emit("settle")),e||r.emit("scroll"),h&&(U.scrollLooper.loop(U.scrollBody.direction()),U.slideLooper.loop()),U.translate.to(R),U.animation.proceed()})),O=B[T.get()],R=os(O),W=os(O),P=ms(R,p,1),j=fs(h,B,S,L,W),_=function(e,t,n,l,r,a){function i(l){var i=l.distance,o=l.index!==t.get();i&&(e.start(),r.add(i)),o&&(n.set(t.get()),t.set(l.index),a.emit("select"))}return{distance:function(e,t){i(l.byDistance(e,t))},index:function(e,n){var r=t.clone().set(e);i(l.byIndex(r.get(),n))}}}(V,T,A,j,W,r),Z=function(e,t,n,l,r,a,i){var o=r.removeOffset,c=r.constrain,m=Math.min(Math.max(i,.01),.99),s=a?[0,t,-t]:[0],h=p(s,m);function p(t,r){var a=t||s,i=r||0,o=n.map((function(e){return e*i}));return a.reduce((function(t,r){var a=l.map((function(t,l){return{start:t-n[l]+o[l]+r,end:t+e-o[l]+r,index:l}}));return t.concat(a)}),[])}return{check:function(e,t){var n=a?o(e):c(e);return(t||h).reduce((function(e,t){var l=t.index,r=t.start,a=t.end;return-1===e.indexOf(l)&&r<n&&a>n?e.concat([l]):e}),[])},findSlideBounds:p}}(b,S,y,k,L,h,s),G=cs(w,E,e,W,d,function(e,t){var n,l;function r(e){return"undefined"!=typeof TouchEvent&&e instanceof TouchEvent}function a(e){return e.timeStamp}function i(t,n){var l="client"+("x"===(n||e.scroll)?"X":"Y");return(r(t)?t.touches[0]:t)[l]}return{isTouchEvent:r,pointerDown:function(e){return n=e,l=e,t.measure(i(e))},pointerMove:function(e){var r=i(e)-i(l),o=a(e)-a(n)>170;return l=e,o&&(n=e),t.measure(r)},pointerUp:function(e){if(!n||!l)return 0;var r=i(l)-i(n),o=a(e)-a(n),c=a(e)-a(l)>170,m=r/o;return o&&!c&&Qm(m)>.1?t.measure(m):0},readPoint:i}}(w,z),R,V,_,P,j,T,r,h,f),U={containerRect:g,slideRects:x,animation:V,axis:w,direction:E,dragHandler:G,eventStore:is(),pxToPercent:z,index:T,indexPrevious:A,limit:L,location:R,options:l,scrollBody:P,scrollBounds:ss(L,R,W,P),scrollLooper:ps(S,z,L,R,[R,W]),scrollProgress:ds(L),scrollSnaps:B,scrollTarget:j,scrollTo:_,slideLooper:vs(w,b,S,H,B,Z,R,n),slidesInView:Z,slideIndexes:N,target:W,translate:gs(w,E,t)};return U}var Es={align:"center",axis:"x",containScroll:"",direction:"ltr",dragFree:!1,draggable:!0,inViewThreshold:0,loop:!1,skipSnaps:!1,slidesToScroll:1,speed:10,startIndex:0};function ws(e,t,n){var l,r,a,i,o,c,m,s,h,p=function(){var e={};function t(t){return e[t]||[]}var n={emit:function(e){return t(e).forEach((function(t){return t(e)})),n},off:function(l,r){return e[l]=t(l).filter((function(e){return e!==r})),n},on:function(l,r){return e[l]=t(l).concat([r]),n}};return n}(),d=(l=function(){if(g){var e=i.axis.measureSize(m.getBoundingClientRect());w!==e&&M(),p.emit("resize")}},r=500,a=0,function(){window.clearTimeout(a),a=window.setTimeout(l,r)||0}),u=M,f=p.on,v=p.off,g=!1,x=Object.assign({},Es,ws.globalOptions),E=Object.assign({},x),w=0;function z(){var t,n="container"in e&&e.container,l="slides"in e&&e.slides;m="root"in e?e.root:e,s=n||m.children[0],h=l||[].slice.call(s.children),t=getComputedStyle(m,":before").content,o={get:function(){try{return JSON.parse(t.slice(1,-1).replace(/\\/g,""))}catch(e){}return{}}}}function b(e,t){if(z(),x=Object.assign({},x,e),E=Object.assign({},x,o.get()),c=Object.assign([],t),(i=xs(m,s,h,E,p)).eventStore.add(window,"resize",d),i.translate.to(i.location),w=i.axis.measureSize(m.getBoundingClientRect()),c.forEach((function(e){return e.init(k)})),E.loop){if(!i.slideLooper.canLoop())return F(),b({loop:!1},t);i.slideLooper.loop()}E.draggable&&s.offsetParent&&h.length&&i.dragHandler.addActivationEvents(),g||(setTimeout((function(){return p.emit("init")}),0),g=!0)}function M(e,t){if(g){var n=C(),l=Object.assign({startIndex:n},e);F(),b(l,t||c),p.emit("reInit")}}function F(){i.dragHandler.removeAllEvents(),i.animation.stop(),i.eventStore.removeAll(),i.translate.clear(),i.slideLooper.clear(),c.forEach((function(e){return e.destroy()}))}function y(e){var t=i[e?"target":"location"].get(),n=E.loop?"removeOffset":"constrain";return i.slidesInView.check(i.limit[n](t))}function H(e,t,n){i.scrollBody.useBaseMass().useSpeed(t?100:E.speed),g&&i.scrollTo.index(e,n||0)}function C(){return i.index.get()}var k={canScrollNext:function(){return i.index.clone().add(1).get()!==C()},canScrollPrev:function(){return i.index.clone().add(-1).get()!==C()},clickAllowed:function(){return i.dragHandler.clickAllowed()},containerNode:function(){return s},internalEngine:function(){return i},destroy:function(){g&&(F(),g=!1,p.emit("destroy"))},off:v,on:f,previousScrollSnap:function(){return i.indexPrevious.get()},reInit:u,rootNode:function(){return m},scrollNext:function(e){H(i.index.clone().add(1).get(),!0===e,-1)},scrollPrev:function(e){H(i.index.clone().add(-1).get(),!0===e,1)},scrollProgress:function(){return i.scrollProgress.get(i.location.get())},scrollSnapList:function(){return i.scrollSnaps.map(i.scrollProgress.get)},scrollTo:H,selectedScrollSnap:C,slideNodes:function(){return h},slidesInView:y,slidesNotInView:function(e){var t=y(e);return i.slideIndexes.filter((function(e){return-1===t.indexOf(e)}))}};return b(t,n),k}function zs(e,t){void 0===e&&(e={}),void 0===t&&(t=[]);var r=n(),o=r[0],c=r[1],m=n(),s=m[0],h=m[1],p=l(e),d=l(t),u=i((function(){return Ym(p.current,e)||(p.current=e),p.current}),[p,e]),f=i((function(){return function(e,t){if(e.length!==t.length)return!1;var n=Jm(e),l=Jm(t);return n.every((function(e,t){return Ym(e,l[t])}))}(d.current,t)||(d.current=t),d.current}),[d,t]);return a((function(){if("undefined"!=typeof window&&window.document&&window.document.createElement&&s){ws.globalOptions=zs.globalOptions;var e=ws(s,u,f);return c(e),function(){return e.destroy()}}c(void 0)}),[s,u,f,c]),[h,o]}ws.globalOptions=void 0,zs.globalOptions=void 0;var bs={selected:"is-selected",draggable:"is-draggable",dragging:"is-dragging"};function Ms(e,t){var n=e.classList;t&&n.contains(t)&&n.remove(t)}function Fs(e,t){var n=e.classList;t&&!n.contains(t)&&n.add(t)}function ys(e){var t,n,l,r=Object.assign({},bs,ys.globalOptions,e),a=r.selected,i=r.draggable,o=r.dragging,c=["select","pointerUp"],m=["pointerDown","pointerUp"];function s(e){"pointerDown"===e?Fs(n,o):Ms(n,o)}function h(){var e=t.slidesInView(!0);t.slidesNotInView(!0).forEach((function(e){return Ms(l[e],a)})),e.forEach((function(e){return Fs(l[e],a)}))}return{name:"ClassNames",options:r,init:function(e){n=(t=e).rootNode(),l=t.slideNodes(),t.internalEngine().options.draggable&&Fs(n,i),o&&m.forEach((function(e){return t.on(e,s)})),a&&(c.forEach((function(e){return t.on(e,h)})),h())},destroy:function(){Ms(n,i),m.forEach((function(e){return t.off(e,s)})),c.forEach((function(e){return t.off(e,h)})),l.forEach((function(e){return Ms(e,a)}))}}}ys.globalOptions=void 0;var Hs,Cs={delay:4e3,playOnInit:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1};function ks(e,t){var n,l=Object.assign({},Cs,ks.globalOptions,e),r=l.playOnInit,a=l.stopOnInteraction,i=l.stopOnMouseEnter,o=l.stopOnLastSnap,c=l.delay,m=a?h:d,s=0;function h(){n.off("pointerDown",m),a||n.off("pointerUp",u),d(),s=0}function p(){d(),s=window.setTimeout(f,c)}function d(){s&&window.clearTimeout(s)}function u(){s&&(d(),p())}function f(){var e=n.internalEngine().index;if(o&&e.get()===e.max)return h();n.canScrollNext()?n.scrollNext():n.scrollTo(0),p()}return{name:"Autoplay",options:l,init:function(e){var l=(n=e).internalEngine().eventStore,o=n.rootNode(),c=t&&t(o)||o;n.on("pointerDown",m),a||n.on("pointerUp",u),i&&(l.add(c,"mouseenter",m),a||l.add(c,"mouseleave",u)),l.add(document,"visibilitychange",(function(){if("hidden"===document.visibilityState)return d();u()})),l.add(window,"pagehide",(function(e){e.persisted&&d()})),r&&p()},destroy:h,play:p,stop:d,reset:u}}ks.globalOptions=void 0,function(e){e.NEXT="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCAzNiAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTgiIGN5PSIxOCIgcj0iMTgiIGZpbGw9IndoaXRlIiBmaWxsLW9wYWNpdHk9IjAuOCIvPgo8cGF0aCBkPSJNOC4xNDYgMTYuNDk2VjE5LjJIMjMuNzcyTDE2Ljg4MiAyNi4wMTJMMTguNTQ2IDI3LjY3NkwyOC4zNzQgMTcuODQ4TDE4LjU0NiA4LjAyTDE2Ljg4MiA5LjY4NEwyMy43NzIgMTYuNDk2SDguMTQ2WiIgZmlsbD0iIzE2MTcxOCIvPgo8L3N2Zz4K",e.PREV="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCAzNiAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTgiIGN5PSIxOCIgcj0iMTgiIGZpbGw9IndoaXRlIiBmaWxsLW9wYWNpdHk9IjAuOCIvPgo8cGF0aCBkPSJNMTkuMTE4IDI2LjAxMkwxMi4yMjggMTkuMkgyNy44NTRWMTYuNDk2SDEyLjIyOEwxOS4xMTggOS42ODRMMTcuNDU0IDguMDJMNy42MjYgMTcuODQ4TDE3LjQ1NCAyNy42NzZMMTkuMTE4IDI2LjAxMloiIGZpbGw9IiMxNjE3MTgiLz4KPC9zdmc+Cg=="}(Hs||(Hs={}));var Is,Ss,Ds,Bs=N("div",{shouldForwardProp:function(e){return"isSlideDifferentWidth"!==e&&"slidesItems"!==e&&"slideToShow"!==e&&"bulletTheme"!==e&&"numberingSeparator"!==e&&"numberingSlides"!==e&&"startIndex"!==e&&"cssClass"!==e&&"buttonControls"!==e&&"buttonAreaControlsHeight"!==e&&"slideToScroll"!==e&&"prevControlIcon"!==e&&"nextControlIcon"!==e&&"controlColor"!==e&&"controlIconStyle"!==e&&"controlVariant"!==e&&"controlIconFontSize"!==e&&"slideSelectedClass"!==e&&"heightSlide"!==e&&"bulletScroll"!==e&&"bulletStyle"!==e}})((function(e){var t,n,l,r,a,i,o,c,m,s,h,p=e.theme,d=xe(e,["theme"]),u={};switch(u=ge(ge({},u),{"& .embla":(t={position:"relative",padding:"0px",maxWidth:"100%",marginLeft:"auto",marginRight:"auto",boxSizing:"border-box","& *":{boxSizing:"border-box"}},t[p.breakpoints.up("md")]={"&.embla-container-next":{"& .embla__container":{left:"center"===d.align?"-6%":"-3%"}},"&.embla-container-prev":{"& .embla__container":{left:"center"===d.align?"-2%":"3%"}}},t),"& .embla__viewport":{overflow:"hidden",width:"100%"},"& .embla__viewport.is-draggable":{cursor:"move"},"& .embla__viewport.is-dragging":{cursor:"grabbing"},"& .embla__container":(n={display:"flex",userSelect:"none",webkitTouchCallout:"none",khtmlUserSelect:"none",webkitTapHighlightColor:"transparent",marginLeft:"-24px",transition:"left .4s"},n[p.breakpoints.up("md")]={position:"relative",left:"center"===d.align?"-4%":"0"},n),"& .embla__slide":(l={position:"relative",flex:"0 0 auto",paddingLeft:"24px"},l[p.breakpoints.down("md")]={width:d.isSlideDifferentWidth?"":"100%"},l),"& .embla__slide__inner":{position:"relative",overflow:"hidden",height:"100%",display:d.isSlideDifferentWidth?"flex":"","& img":{maxWidth:"100%",height:"100%",objectFit:"cover"}},"& .embla__button":{position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",top:"0",height:"100%",zIndex:"2",border:"0",boxShadow:"none",backgroundColor:"transparent",cursor:"auto",borderRadius:0,"& .MuiIcon-fontSizeSmall":{width:"24px",height:"24px","&::before":{position:"relative",top:"-3px"}},"& .MuiIcon-fontSizeMedium":{width:"32px",height:"32px","&::before":{position:"relative",top:"-2px"}},"&:disabled":{"& .MuiIcon-root":{color:p.palette.action.disable},"&:hover":(r={},r[p.breakpoints.up("lg")]={"& .MuiIcon-root":{backgroundColor:"transparent"}},r)}},"& .embla__button--prev":{left:"0",width:"12%","& .MuiIcon-root":{position:"relative",left:"-20%"}},"& .embla__button--prev.prev--hovered":(a={},a[p.breakpoints.up("lg")]={cursor:"url("+Hs.PREV+"), auto","& button":{transform:"scale(0)"}},a),"& .embla__button--next":{right:"0",width:"12%","& .MuiIcon-root":{position:"relative",left:"20%"}},"& .embla__button--next.next--hovered":(i={},i[p.breakpoints.up("lg")]={cursor:"url("+Hs.NEXT+"), auto","& button":{transform:"scale(0)"}},i),"& .embla__progress":{position:"relative",backgroundColor:"transparent",marginTop:!0===d.numberingSlides?"30px":"10px",maxWidth:"100%",width:"100%",height:"4px",overflow:"hidden",borderRadius:"4px",marginLeft:"auto",marginRight:"auto"},"& .embla__progress__bar":{position:"absolute",backgroundColor:p.palette.neutrals[200],width:"100%",top:"0",bottom:"0",left:"-100%"},"& .carousel_numbering":(o={},o[p.breakpoints.up("md")]={position:"absolute",right:"11%"},o[p.breakpoints.down("md")]={textAlign:"center"},o),"& .embla__dots":{display:"flex",listStyle:"none",justifyContent:"center",paddingTop:"10px","& .embla__dot":{backgroundColor:"transparent",cursor:"pointer",position:"relative",padding:"0",outline:"0",border:"0",width:"30px",height:"30px",marginRight:"7.5px",marginLeft:"7.5px",display:"flex",alignItems:"center","&:after":{backgroundColor:"#D8D8D8",width:"50px",height:"4px",borderRadius:"2px",content:'""'},"&.is-selected":{"&:after":{backgroundColor:"#161718",opacity:"1"}}},"& .embla__dot_small":{backgroundColor:"transparent",cursor:"pointer",position:"relative",padding:"0",outline:"0",border:"0",width:"12px",height:"6px",marginRight:"6px",marginLeft:"6px",display:"flex",alignItems:"center","&:after":{backgroundColor:"dark"===d.bulletTheme?"#161718":"white",width:"6px",height:"6px",borderRadius:"50%",content:'""'},"&.is-selected":{"&:after":{backgroundColor:"transparent",height:"12px",width:"12px",border:"dark"===d.bulletTheme?"2px solid #161718":"2px solid white",borderRadius:"50%",opacity:"1"}}}}}),d.slideToShow){case 1:return ge(ge({},u),{"& .embla__slide":(c={position:"relative",flex:"0 0 100%",paddingLeft:"24px"},c[p.breakpoints.up("md")]={flex:d.isSlideDifferentWidth?"0 0 auto":"0 0 100%",maxWidth:!0===d.isSlideDifferentWidth?" 100%":"80%"},c)});case 2:return ge(ge({},u),{"& .embla__slide":(m={position:"relative",flex:"0 0 100%"},m[p.breakpoints.up("md")]={flex:"0 0 50%"},m.paddingLeft="24px",m)});case 3:return ge(ge({},u),{"& .embla__slide":(s={position:"relative",flex:"0 0 100%"},s[p.breakpoints.up("md")]={flex:"0 0 33.33%"},s.paddingLeft="24px",s)});case 4:return ge(ge({},u),{"& .embla__slide":(h={position:"relative",flex:"0 0 100%"},h[p.breakpoints.up("md")]={flex:"0 0 25%"},h.paddingLeft="24px",h)})}return u})),Ls=N("div",{shouldForwardProp:function(e){return"isSlideDifferentWidth"!==e&&"slidesItems"!==e&&"slideToShow"!==e&&"bulletTheme"!==e&&"numberingSeparator"!==e&&"numberingSlides"!==e&&"startIndex"!==e&&"cssClass"!==e&&"buttonControls"!==e&&"buttonAreaControlsHeight"!==e&&"slideToScroll"!==e&&"prevControlIcon"!==e&&"nextControlIcon"!==e&&"controlColor"!==e&&"controlIconStyle"!==e&&"controlVariant"!==e&&"controlIconFontSize"!==e&&"slideSelectedClass"!==e&&"heightSlide"!==e&&"bulletScroll"!==e&&"bulletStyle"!==e}})((function(e){var t=e.theme;xe(e,["theme"]);var n={};return n=ge(ge({},n),{"& .embla":{position:"relative",padding:"0px",maxWidth:"100%",marginLeft:"auto",marginRight:"auto"},"& .embla__viewport":{overflow:"hidden",width:"100%"},"& .embla__viewport.is-draggable":{cursor:"move grab"},"& .embla__viewport.is-dragging":{cursor:"grabbing"},"& .embla__container":{userSelect:"none",webkitTouchCallout:"none",khtmlUserSelect:"none",webkitTapHighlightColor:"transparent",marginTop:NaN,height:"450px"},"& .embla__slide":{position:"relative",overflow:"hidden",height:"100%",width:"100%","& *":{width:"100%"}},"& .embla__slide__inner":{position:"relative",overflow:"hidden",height:"100%"},"& .embla__slide__img":{position:"absolute",display:"block",top:" 50%",left:"50%",width:"auto",minHeight:"100%",minWidth:"100%",maxWidth:"none",transform:"translate(-50%, -50%)"},"& .embla__button":{position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",top:"0",height:"100%",zIndex:"2",border:"0",boxShadow:"none",backgroundColor:"transparent",cursor:"pointer","& .MuiIcon-fontSizeSmall":{width:"24px",height:"24px","&::before":{position:"relative",top:"-3px"}},"& .MuiIcon-fontSizeMedium":{width:"32px",height:"32px","&::before":{position:"relative",top:"-2px"}},"&:hover":{"& .MuiIcon-root":{borderRadius:"50%",backgroundColor:"#EDEFEF"}},"&:disabled":{"& .MuiIcon-root":{color:t.palette.action.disable},"&:hover":{"& .MuiIcon-root":{backgroundColor:"transparent"}}}},"& .embla__button--prev":{left:"0",width:"12%","& .MuiIcon-root":{position:"relative",left:"-20%"}},"& .embla__button--next":{right:"0",width:"20%","& .MuiIcon-root":{position:"relative",left:"20%"}},"& .embla__progress":{position:"relative",backgroundColor:"transparent",marginTop:"10px",maxWidth:"100%",width:"100%",height:"4px",overflow:"hidden",borderRadius:"4px",marginLeft:"auto",marginRight:"auto"},"& .embla__progress__bar":{position:"absolute",backgroundColor:t.palette.neutrals[200],width:"100%",top:"0",bottom:"0",left:"-100%"}})})),Ts=He["flow-colors"],As=t.forwardRef((function(e,n){var l=xe(e,[]),a=r((function(e){l.onClickCallback&&!l.isDisabled&&l.onClickCallback(e)}),[l]);return t.createElement(Os,ge({},l,{ref:n,onClick:function(){return a(l.controlType)}}),t.createElement("button",null,t.createElement(Fe,{fontSize:l.iconFontSize,className:l.controlType+" "+l.iconStyle})))})),Ns=Ts.background,Vs=Ts.text,Os=s("div",{shouldForwardProp:function(e){return"controlType"!==e&&"controllerColor"!==e&&"iconStyle"!==e&&"iconFontSize"!==e&&"controlVariant"!==e&&"onClickCallback"!==e&&"isDisabled"!==e&&"customHeight"!==e}})((function(e){var t,n;e.theme;var l=xe(e,["theme"]),r="medium"===l.iconFontSize?"32px":"24px",a={display:"flex",justifyContent:"center",alignItems:"center"},i={fontWeight:"400",fontSize:"20px",lineHeight:"21px",textAlign:"center",letterSpacing:"0.002em"},o="light"===l.controllerColor?Ns:Vs,c=function(e){return"light"===e?"2px solid "+Ns:"2px solid "+Vs}(l.controllerColor),m=function(e){return"light"===e?"0 0 0 1px "+Vs+", 0 0 0 3px "+Ns:"0 0 0 1px "+Ns+", 0 0 0 3px "+Vs}(l.controllerColor);return l.isDisabled?ge(ge({height:(l.customHeight?l.customHeight:"100%")+" !important",borderRadius:"50%"},a),{"& button":ge(ge({},a),(n={cursor:"not-allowed !important",height:r,width:r,color:"#C4C6C7",borderRadius:"50%",border:"outline"===l.controlVariant?"2px solid #C4C6C7":"0px","&:hover":{backgroundColor:"none"},"&:active":{transform:"none"}},n["& ."+l.controlType]=ge(ge({position:"unset !important"},a),i),n))}):ge(ge({height:(l.customHeight?l.customHeight:"100%")+" !important",cursor:"pointer"},a),{"& button":ge(ge({cursor:"pointer",borderRadius:"50%",height:r,width:r,color:o,border:"outline"===l.controlVariant?c:"0px",backgroundColor:"transparent"},a),(t={"&:hover":{backgroundColor:"light"===l.controllerColor?"rgba(255, 255, 255, 0.24)":"rgba(22, 23, 24, 0.06)"},"&:active":{transform:"scale(0.95)"},"&:focus":{border:"outline"!==l.controlVariant&&c,boxShadow:"outline"===l.controlVariant&&m}},t["& ."+l.controlType]=ge(ge({zIndex:9,position:"unset !important"},a),i),t))})}));!function(e){e.LIGHT="light",e.DARK="dark"}(Is||(Is={})),function(e){e.SMALL="small",e.LARGE="large"}(Ss||(Ss={})),function(e){e.AUTO_END="auto-end",e.AUTO_START="auto-start",e.AUTO="auto",e.BOTTOM_END="bottom-end",e.BOTTOM_START="bottom-start",e.BOTTOM="bottom",e.LEFT_END="left-end",e.LEFT_START="left-start",e.LEFT="left",e.RIGHT_END="right-end",e.RIGHT_START="right-start",e.RIGHT="right",e.TOP_END="top-end",e.TOP_START="top-start",e.TOP="top"}(Ds||(Ds={}));var Rs=t.forwardRef((function(e){var n=xe(e,[]);return t.createElement(Ws,ge({},n,{style:n.customStyle}),t.createElement("span",{className:"index-container"},n.index," "),t.createElement("span",{className:"separator-container"},n.customSeparator?n.customSeparator:"/"," "),t.createElement("span",{className:"total-container"},n.total))})),Ws=s("div",{shouldForwardProp:function(e){return"customSeparator"!==e&&"colorTheme"!==e}})((function(e){e.theme;var t=xe(e,["theme"]);return{fontFamily:"SKODA Next",fontStyle:"normal",fontWeight:"700",fontSize:t.size===Ss.LARGE?"18px":"16px",lineHeight:t.size===Ss.LARGE?"28px":"24px",letterSpacing:"0.02em","& .index-container":{color:t.colorTheme===Is.DARK?"#161718":"#FFFFFF"},"& .separator-container":{color:"#7C7D7E"},"& .total-container":{color:"#7C7D7E"}}})),Ps=function(e){var n=e.selected,l=e.onClick,r=e.bulletStyle;return t.createElement("button",{className:r&&"dot"===r?"embla__dot_small "+(n?"is-selected":""):"embla__dot "+(n?"is-selected":""),type:"button",onClick:l})},js=function(e,n,l,r,a,i,o,c,m,s,h,p,d,u,f,v,g,x,E,w,z,b,M,F,y,H,C,k,I,S,D){var B="rtl"===a;return t.createElement(t.Fragment,null,t.createElement("div",{className:"embla "+e+" "+w,dir:a},t.createElement("div",{className:"embla__viewport",ref:i},t.createElement("div",{className:"embla__container"},o.map((function(n,l){return t.createElement("div",{id:"embla "+e+"__"+l,className:"embla__slide",key:l},t.createElement("div",{className:"embla__slide__inner",style:{height:c}},n))}))),m&&t.createElement(t.Fragment,null,t.createElement(As,{style:{top:h+"px"},controlType:H,controllerColor:D,iconStyle:k,iconFontSize:I,controlVariant:S,className:"embla__button embla__button--prev "+Us("prev",n,l),onClickCallback:function(){return F(r,a)},isDisabled:B?l&&!p:!l,customHeight:s,onMouseEnter:function(){return x("prev")},onMouseLeave:function(){return x("")}}),t.createElement(As,{style:{top:h+"px"},controlType:C,controllerColor:D,iconStyle:k,iconFontSize:I,controlVariant:S,className:"embla__button embla__button--next "+Us("next",n,p),onClickCallback:function(){return y(r,a)},isDisabled:B?!l&&p:!p,customHeight:s,onMouseEnter:function(){return x("next")},onMouseLeave:function(){return x("")}})))),d&&t.createElement(t.Fragment,null,t.createElement(Rs,{className:"carousel_numbering",index:u+E,total:o.length,customSeparator:f,colorTheme:Is.DARK,size:Ss.LARGE})),v&&!z&&t.createElement("div",{className:"embla__progress"},t.createElement("div",{className:"embla__progress__bar",style:{transform:"translateX("+g+"%)"}})),z&&1===E&&t.createElement("div",{className:"embla__dots"},o.map((function(e,n){var l=o.length-n-1;return t.createElement(Ps,{bulletStyle:b,key:n,selected:B?l===u:n===u,onClick:function(){return M(r,n)}})}))))},_s=function(e,t){e&&("ltr"===t?e.scrollPrev():e.scrollNext())},Zs=function(e,t){e&&("rtl"===t?e.scrollPrev():e.scrollNext())},Gs=function(e,t){e&&e.scrollTo(t)},Us=function(e,t,n){return t&&n?e+"--hovered":""},Ks=function(e,t){var n=e.slideNodes();t<=1&&n.forEach((function(e){if(e){var t=e.querySelector("img");if(t)return e.style.width=t.naturalWidth+"px"}}))},Ys=function(e){var l=e.align,i=void 0===l?"start":l,o=e.autoPlay,c=void 0!==o&&o,m=e.axis,s=void 0===m?"x":m,h=e.buttonAreaControlsHeight,p=void 0===h?"50%":h,d=e.buttonControls,u=void 0===d||d,f=e.buttonControlsPosition,v=void 0===f?"0":f,g=e.cssClass,x=void 0===g?"":g,E=e.direction,w=void 0===E?"ltr":E,z=e.heightSlide,b=e.isSlideDifferentWidth,F=void 0!==b&&b,y=e.loop,H=void 0!==y&&y,C=e.numberingSeparator,k=void 0===C?"/":C,I=e.numberingSlides,S=void 0===I||I,D=e.progressbar,B=void 0!==D&&D,L=e.slidesItems,T=e.slideToScroll,A=void 0===T?1:T,N=e.slideToShow,V=void 0===N?1:N,O=e.slideSelectedClass,R=void 0===O?"slide-selected":O,W=e.speed,P=void 0===W?10:W,j=e.startIndex,_=void 0===j?0:j,Z=e.bulletScroll,G=void 0!==Z&&Z,U=e.bulletStyle,K=void 0===U?"dot":U,Y=e.bulletTheme,J=void 0===Y?"dark":Y,X=e.prevControlIcon,Q=void 0===X?"arrow-left":X,q=e.nextControlIcon,$=void 0===q?"arrow-right":q,ee=e.controlIconStyle,te=void 0===ee?"regular":ee,ne=e.controlIconFontSize,le=void 0===ne?"medium":ne,re=e.controlVariant,ae=void 0===re?"standard":re,ie=e.controlColor,oe=void 0===ie?"dark":ie,ce=ks({playOnInit:!!c}),me={selected:R},se="center"!==i?"trimSnaps":"",he=n(_),pe=he[0],de=he[1],ue=n(!0),fe=ue[0],ve=ue[1],xe=n(!0),Ee=xe[0],we=xe[1],ze=n(0),be=ze[0],Me=ze[1],Fe=n(!1),ye=Fe[0],He=Fe[1],Ce=n(),ke=Ce[0],Ie=Ce[1],Se=n(""),De=Se[0],Be=Se[1],Le=zs({align:i,axis:s,containScroll:se,direction:w,loop:H,slidesToScroll:ke?1:A,skipSnaps:!1,speed:P,startIndex:_},[ce,ys(me)]),Te=Le[0],Ae=Le[1],Ne=M(),Ve=function(e){He(!ye),function(e){switch(!0){case"prev"===e&&fe:return Be("embla-container-prev");case"next"===e&&Ee:return Be("embla-container-next");default:Be("")}}(e)},Oe=r((function(){if(Ae||B){var e=Math.max(0,Math.min(1,Ae.scrollProgress()));Me(100*e)}}),[Ae,B,Me]);return a((function(){if(Ae){Ks(Ae,V);var e=function(){var e=Ae.selectedScrollSnap();de(e),de(Ae.selectedScrollSnap()),ve(Ae.canScrollPrev()),we(Ae.canScrollNext())};Ae.on("select",e),e(),Ae.on("scroll",Oe),Oe()}}),[Ae,B,Oe,V]),a((function(){var e=window.matchMedia("(max-width: "+Ne.breakpoints.values.md+"px)");Ie(e.matches)}),[Ne.breakpoints.values.md]),"y"===s?t.createElement(Ls,ge({align:i,slidesItems:L,slideToShow:V,bulletTheme:J},e),js(x,ye,fe,Ae,w,Te,L,z,u,p,v,Ee,S,pe,k,B,be,(function(e){return Ve(e)}),V,De,G,K,Gs,_s,Zs,Q,$,te,le,ae,oe)):t.createElement(Bs,ge({isSlideDifferentWidth:F,align:i,slidesItems:L,slideToShow:V,bulletTheme:J},e),js(x,ye,fe,Ae,w,Te,L,z,u,p,v,Ee,S,pe,k,B,be,(function(e){return Ve(e)}),V,De,G,K,Gs,_s,Zs,Q,$,te,le,ae,oe))},Js=t.forwardRef((function(e,l){var i=e.children,o=e.isClickable,c=e.onClickCallback,m=e.isClicked,s=xe(e,["children","isClickable","onClickCallback","isClicked"]),h=n(!1),p=h[0],d=h[1];a((function(){o&&d((function(){return m}))}),[o,m]);var u=r((function(){o&&d((function(e){return c&&c(!e),!e}))}),[o,c]);return t.createElement(Xs,ge({},s,{ref:l,onClick:u,isClicked:p,isClickable:o}),t.createElement("div",null,i))})),Xs=N.div((function(e){e.theme;var t=xe(e,["theme"]),n="inset 0 0 0 1px #E4E4E4, 0px 0px 8px rgba(0, 0, 0, 0.15)",l=t.isClicked?{boxShadow:"inset 0 0 0 2px #419468, 0px 0px 8px rgba(0, 0, 0, 0.15)"}:{boxShadow:n},r=t.isClickable?ge({cursor:"pointer"},l):{boxShadow:n};return ge({display:"inline-block",boxSizing:"border-box",borderRadius:"4px",background:"rgba(0,0,0,0)","&:hover":{boxShadow:"inset 0 0 0 2px #419468, 0px 0px 8px rgba(0, 0, 0, 0.15)"}},r)})),Qs=t.forwardRef((function(e,n){var l=e.items,o=e.onChange,c=e.disableAnimation,m=e.accordionContainerProps,s=e.accordionPanelMaxHeight,h=e.allowMultipleExpand,p=xe(e,["items","onChange","disableAnimation","accordionContainerProps","accordionPanelMaxHeight","allowMultipleExpand"]),d=t.useState(!1),u=d[0],f=d[1];a((function(){if(h){for(var e={},t=0;t<l.length;t++){var n=l[t].id||"panel"+t;e[n]=!!l[t].isDefaultExpanded}f((function(){return e}))}else{var r,a=l.find((function(e,t){if(e.isDefaultExpanded)return r=t,e}));a&&f(a.id||"panel"+r)}}),[h,l]);var v=r((function(e){return function(t,n){o&&o(e,n),f(h?function(t){var l;return ge(ge({},t),((l={})[e]=n,l))}:!!n&&e)}}),[h,o]),g=r((function(e){return"string"==typeof e?nc(e,100):e}),[]),x=i((function(){return c?{timeout:0}:p.TransitionProps}),[c,p.TransitionProps]);return t.createElement(qs,ge({ref:n},m),t.createElement(So,null),l.map((function(e,n){var l=e.id||"panel"+n,r=h?!!u[l]:u===l,a="string"==typeof e.content;return t.createElement($s,ge({},p,{id:l,key:l,className:l,TransitionProps:x,expanded:r,onChange:v(l),disabled:e.disabled,isContentTypeString:a,disableGutters:!0,accordionPanelMaxHeight:s,square:!0}),t.createElement(T,{className:"subheadline","aria-controls":l+"d-content",id:l+"d-header",expandIcon:t.createElement(As,{controlType:r?"ballotx":"plus"})},t.createElement("div",{className:"accordion-panel-title"},e.title),p.previewContent&&a&&!r&&t.createElement("div",{className:"accordion-panel-title--sneak-peak"},g(e.content))),t.createElement(A,null,t.createElement("div",{className:"text"},e.content)))})))})),qs=N.div((function(){return{"& > .MuiDivider-root":{background:"rgba(26, 27, 28, 0.12)",borderRadius:"6px"},"& .MuiPaper-root:first-of-type":{borderTopLeftRadius:"6px",borderTopRightRadius:"6px"},"& .MuiPaper-root:last-of-type":{borderBottomLeftRadius:"6px",borderBottomRightRadius:"6px"}}})),$s=s(fe,{shouldForwardProp:function(e){return"previewContent"!==e&&"expandIcon"!==e&&"isContentTypeString"!==e&&"accordionPanelMaxHeight"!==e}})((function(e){e.theme;var t=xe(e,["theme"]),n={};return t.accordionPanelMaxHeight&&(n=ge(ge({},n),{"& .text":{maxHeight:t.accordionPanelMaxHeight,overflowY:"auto"}})),n})),eh=He["flow-colors"],th=t.forwardRef((function(e,l){var r=xe(e,[]),i=n(!0),o=i[0],c=i[1];a((function(){(r.isVisible||!1===r.isVisible)&&c(r.isVisible)}),[r.isVisible]);var m=function(e,t){"additional"===t?r.additionalButtonCallback&&r.additionalButtonCallback(e):r.buttonCallback&&r.buttonCallback(e),r.analyticsCallback&&r.analyticsCallback(e),c(!1)},s=r.iconIsFilled?" filled":"",h=r.buttonVariant,p=r.additionalButtonVariant;return t.createElement(t.Fragment,null,o&&t.createElement(nh,{className:r.variant,variant:r.variant,ref:l},t.createElement("div",{className:"bannerWrapper"},t.createElement("div",{className:"bannerHeader"},r.icon&&t.createElement(Fe,{fontSize:"medium",className:r.icon+" "+s}),t.createElement("p",{className:"body"},r.textContent)),t.createElement("div",{className:"bannerBtnContainer"},r.additionalButton&&t.createElement(Oe,{variant:p,compact:!0,label:r.additionalButtonLabel,onClick:function(e){return m(e,"additional")}}),t.createElement(Oe,{variant:h,compact:!0,label:r.buttonLabel,onClick:function(e){return m(e,"main")}})))))})),nh=N.div((function(e){var t,n,l,r=e.theme,a=xe(e,["theme"]),i={};switch(i=ge(ge({},i),{"& > .bannerWrapper":(t={boxSizing:"border-box",padding:"16px",display:"flex",flexDirection:"column",flexWrap:"nowrap",width:"100%"},t[r.breakpoints.up("lg")]={padding:"7px 16px",flexDirection:"row"},t["& *"]={boxSizing:"border-box"},t),"& .bannerHeader":(n={display:"flex",alignItems:"flex-start",justifyContent:"flex-items",width:"100%",marginBottom:"16px"},n[r.breakpoints.up("lg")]={marginBottom:"0"},n["& .MuiIcon-root"]={"&:before":{position:"relative",top:"-4px"}},n),"& .body":{margin:"0 0 0 8px"},"& .bannerBtnContainer":(l={display:"flex",width:"100%",justifyContent:"flex-start"},l[r.breakpoints.up("lg")]={justifyContent:"flex-end"},l["& > div + div"]={marginLeft:"16px"},l)}),a.variant){case"primary":return ge(ge({},i),{backgroundColor:r.palette.info.main,color:r.palette.common.white,"& .MuiButton-tertiary":{color:r.palette.common.white}});case"secondary":return ge(ge({},i),{backgroundColor:eh["neutrals-chrome750"],color:r.palette.common.white,"& .MuiButton-tertiary":{color:r.palette.common.white}});case"tertiary":return ge(ge({},i),{backgroundColor:eh["neutrals-chrome200"],color:r.palette.text.primary})}return i}));export{Qs as Accordion,Qo as Backdrop,th as Banner,Oe as Button,Me as ButtonVariants,Js as CardContainer,yc as CardMenu,Bc as CardOwnedVehicle,wc as CardPhotoAdjustable,uc as CardPhotoFixed,Zc as CardPromoVehicle,Uc as CardTypeOnly,Ys as Carousel,Pe as Checkbox,fo as Chip,Mo as ChipDropdownChildren,po as ChipImage,_i as Container,As as Controller,So as Divider,Um as Drawer,ai as Flag,Ki as Grid,cc as HeroImageCard,Fe as Icon,at as Indicator,Ke as Label,Xe as LabelCO2,$e as LabelFeature,Ho as LabelPromotional,Co as LabelPromotionalStyled,nt as LabelStatus,jm as Maps,oi as Menu,Jc as Modal,zo as MultiSelectChip,Rs as Numbering,Zm as Pagination,Pc as ProgressBar,_e as RadioButton,mo as SelectInput,sc as ShortcutLink,ji as SkodaTheme,ht as Slider,Yo as Snackbar,Zo as Tab,Go as TabPanel,jo as Tabs,Po as TabsContext,Qi as TextArea,vc as TextCta,io as TextInput,Lc as Tile,Ge as ToggleSwitch,dt as Tooltip,Jo as checkForIcon,Pi as createSkodaTheme,Ks as emblaWidthSize,Us as getHoveredClass,Zs as handleScrollNext,_s as handleScrollPrev,Gs as handleScrollTo};
30
30
  //# sourceMappingURL=index.es.js.map