1"use strict";(self.webpackChunkwp_gallery=self.webpackChunkwp_gallery||[]).push([[285],{24285:function(e,i,t){t.r(i),t.d(i,{CubeGallery:function(){return P},default:function(){return T}});var n=t(64467),o=t(5544),r=t(2920),a=t(47758),l=t(86137),s=t(60011),u=t(13683),c=t(8973),p=t(51477),d=t(50740),g=t(85072),w=t.n(g),f=t(97825),b=t.n(f),h=t(77659),v=t.n(h),y=t(55056),m=t.n(y),A=t(10540),S=t.n(A),x=t(41113),_=t.n(x),C=t(25441),z={};z.styleTagTransform=_(),z.setAttributes=m(),z.insert=v().bind(null,"head"),z.domAPI=b(),z.insertStyleElement=S();w()(C.A,z),C.A&&C.A.locals&&C.A.locals;var k=t(70481),E={id:2,effect:"cube",cubeEffect:{shadow:!0,slideShadows:!0,shadowOffset:20,shadowScale:.94},additionalModules:[d.hw]},P=function(e){var i,t=e.onClick,d=(0,l.E)().images,g=(0,s.t0)(),w=g.cubeSettings,f=g.wrapperRef,b=w,h=b.width,v=b.height,y=b.isInfinite,m=b.backgroundColor,A=b.padding,S=b.autoplay,x=b.slideDuration,_=b.shadow,C=b.showTitle,z=b.showCaption,P=b.showButton,T=b.titlePosition,D=b.captionPosition,O=b.buttonPosition,R=b.titleFontSize,q=b.playAndPauseAllowed,M=b.captionFontSize,W=b.buttonFontSize,j=b.buttonBorderSize,F=b.navigation,H=b.dotsPosition,I=b.dotsSize,L=b.dotsGap,B=b.activeDotColor,G=b.inactiveDotsColor,N=f.current,J=(0,p.useState)(.8*(null===N||void 0===N?void 0:N.clientWidth)||h),U=(0,o.A)(J,2),K=U[0],Q=U[1],V=h/v,X=Math.min(K,h),Y=X/V,Z=(0,p.useState)(0),$=(0,o.A)(Z,2),ee=$[0],ie=$[1],te=(0,p.useRef)(null);(0,p.useEffect)((function(){var e=function(){Q(.8*(null===N||void 0===N?void 0:N.clientWidth)||h)};return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[null===N||void 0===N?void 0:N.clientWidth]),(0,p.useEffect)((function(){if(te.current){var e=te.current.querySelector(".swiper-cube .swiper-cube-shadow");e&&(e.style.width=_?"100%":"0%")}}),[_]),(0,p.useEffect)((function(){if(te.current){var e=function(){var e,i,t,n=null===(e=te.current)||void 0===e?void 0:e.querySelector(".swiper-gallery__title-caption.swiper-gallery__item-outline:not(.swiper-gallery__button)"),o=null===(i=te.current)||void 0===i?void 0:i.querySelector(".swiper-gallery__caption.swiper-gallery__item-outline"),r=null===(t=te.current)||void 0===t?void 0:t.querySelector(".swiper-gallery__button.swiper-gallery__item-outline"),a=0;n&&(a+=n.offsetHeight),o&&(a+=o.offsetHeight),r&&(a+=r.offsetHeight),ie(a)};e();var i=new ResizeObserver((function(){e()})),t=te.current.querySelector(".swiper-slide");return t&&i.observe(t),function(){i.disconnect()}}}),[C,z,P,T,D,O,R,M,W,j]);var ne=p.useRef("swiper-pagination-external-".concat(Math.random().toString(36).slice(2,9)));return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(r.A,{ref:te,sx:{width:"".concat(X,"px"),height:"".concat(Y+ee,"px"),mx:"auto"},children:(0,k.jsx)(u.P,{externalPaginationId:ne.current,effects:E,loop:y,playAndPauseAllowed:q,backgroundColor:m||"White",padding:A,images:d||[],autoplay:S,delay:x,size:Math.max(X,Y),imagesCount:1,preLoadCount:4,allowTouchMove:!0,settings:w,titleCaptionHeight:ee,onClick:t},+y)}),(F===c.ST.DOTS||F===c.ST.ARROWS_AND_DOTS)&&H===c.JC.OUTSIDE&&(0,k.jsx)("div",{id:ne.current,className:(0,a.A)("swiper-pagination-external","swiper-pagination","swiper-pagination-clickable","swiper-pagination-bullets","swiper-pagination-horizontal",{"swiper-pagination-bullets-dynamic":(d||[]).length>6}),style:(i={},(0,n.A)(i,"--swiper-pagination-color",B),(0,n.A)(i,"--swiper-pagination-bullet-size",I+"px"),(0,n.A)(i,"--swiper-pagination-bullet-inactive-color",G),(0,n.A)(i,"--swiper-pagination-bullet-inactive-opacity","1"),(0,n.A)(i,"--swiper-pagination-bullet-horizontal-gap",L+"px"),(0,n.A)(i,"--swiper-external-pagination-padding","10px"),(0,n.A)(i,"--swiper-external-pagination-bottom-padding","10px"),i)})]})},T=P},25441:function(e,i,t){var n=t(56578),o=t.n(n),r=t(83243),a=t.n(r)()(o());a.push([e.id,".reacg-gallery .swiper-cube {\n overflow: visible;\n}\n\n.reacg-gallery-wrapper__margin-bottom {\n margin-bottom: 32px !important;\n}\n\n.reacg-gallery .swiper-cube .swiper-slide img,\n.reacg-gallery .swiper-cube .swiper-slide video {\n box-sizing: border-box;\n}\n\n.reacg-gallery .swiper-cube .swiper-cube-shadow {\n background: black;\n filter: blur(50px);\n}",""]),i.A=a}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.