"use strict";(self.webpackChunkshopwp=self.webpackChunkshopwp||[]).push([["Carousel-public"],{TOU9:function(e,t,r){r.r(t),r.d(t,{default:function(){return w}});var o=r("5Ulf"),i=r("LpH3"),l=r("Uhu5"),n=(r("73pg"),r("em8r"),r("AU3J")),c=r("fAy8"),s=r.n(c),a=r("dGr1"),p=r("8fid");function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){(0,p.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function f(e){var t=e.className,r=e.style,o=e.onClick;return React.createElement("div",{className:t,style:d(d({},r),{},{display:"block",color:"inherit"}),onClick:o},React.createElement("svg",{"aria-hidden":"true",focusable:"false",role:"button",style:{width:"55px",height:"55px"},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 192 512"},React.createElement("path",{fill:"currentColor",d:"M187.8 264.5L41 412.5c-4.7 4.7-12.3 4.7-17 0L4.2 392.7c-4.7-4.7-4.7-12.3 0-17L122.7 256 4.2 136.3c-4.7-4.7-4.7-12.3 0-17L24 99.5c4.7-4.7 12.3-4.7 17 0l146.8 148c4.7 4.7 4.7 12.3 0 17z"})))}function h(e){var t=e.className,r=e.style,o=e.onClick;return React.createElement("div",{className:t,style:d(d({},r),{},{display:"block",color:"inherit"}),onClick:o},React.createElement("svg",{"aria-hidden":"true",focusable:"false",style:{width:"55px",height:"55px"},role:"button",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 192 512"},React.createElement("path",{fill:"currentColor",d:"M4.2 247.5L151 99.5c4.7-4.7 12.3-4.7 17 0l19.8 19.8c4.7 4.7 4.7 12.3 0 17L69.3 256l118.5 119.7c4.7 4.7 4.7 12.3 0 17L168 412.5c-4.7 4.7-12.3 4.7-17 0L4.2 264.5c-4.7-4.7-4.7-12.3 0-17z"})))}var w=function(e){var t=e.children,r=e.defaultSettings,c=e.customSettings,p=e.extraCSS,u=e.element,d=e.customChange,w=void 0!==d&&d,b=!1,g=wp.element.useEffect,m=(0,i.iv)('max-width:100%;margin:0 auto;.slick-next,.slick-prev{top:calc(50% - 30px);width:55px;height:55px;background-size:contain;background-position:50% 50%;background-repeat:no-repeat;&:hover,&:focus{opacity:0.7;}&:before{color:black;font-size:35px;content:"";}}.slick-prev{left:-55px;}.slick-next{right:-55px;}.slick-slide>div{margin:0 10px;}.slick-dots{margin:0;padding:0;li button:before{width:10px;height:10px;font-size:10px;}}',(0,n.mq)("large"),"{display:table!important;table-layout:fixed!important;width:100%!important;.slick-prev{left:0;z-index:999;}.slick-next{right:0;z-index:999;}.slick-list{width:75%;margin:0 auto;}}",(0,n.mq)("medium"),"{.slick-prev,.slick-next{width:35px;height:35px;}};label:CarouselCSS;");g((function(){!1!==w&&b.slickGoTo(w)}),[w]);var k={dots:r.carouselDots,infinite:r.carouselInfinite,speed:r.carouselSpeed,slidesToShow:r.carouselSlidesToShow,slidesToScroll:r.carouselSlidesToScroll,nextArrow:!1!==r.carouselNextArrow&&(0,i.tZ)(f,null),prevArrow:!1!==r.carouselPrevArrow&&(0,i.tZ)(h,null),responsive:[{breakpoint:1e3,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:600,settings:{slidesToShow:1,slidesToScroll:1}}],onInit:function(){(0,a.k9)(u)}},x=s()(k,c),v=wp.hooks.applyFilters("misc.carouselSettings",x);return(0,i.tZ)(l.Z,(0,o.Z)({ref:function(e){return b=e}},v,{css:[m,p,";label:Carousel;"]}),t)}}}]);