PageSourceSearch

https://www.fundacao-mvg.pt/wp-content/plugins/regallery/assets/js/wp-gallery/wp-gallery.940.fd70652b.chunk.js

js fundacao-mvg.pt collected 2026-10-02 12:52:06 UTC 4,914 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkwp_gallery=self.webpackChunkwp_gallery||[]).push([[940],{17940:function(e,i,t){t.r(i),t.d(i,{Carousel:function(){return f}});var n=t(64467),o=t(60436),a=t(5544),r=t(2920),l=t(47758),s=t(86137),c=t(60011),d=t(8973),p=t(51477),u=t(50740),g=t(13683),w=(t(70284),t(70481)),f=function(e){var i,t=e.onClick,f=(0,s.E)().images,h=void 0===f?[]:f,v=(0,c.t0)(),A=v.carouselSettings,S=v.wrapperRef,b=A,_=b.backgroundColor,x=b.padding,y=b.autoplay,m=b.slideDuration,C=b.playAndPauseAllowed,T=b.width,P=b.height,k=b.imagesCount,D=b.enableScrollByImagesCount,z=b.spaceBetween,O=b.scale,B=b.showTitle,R=b.showCaption,E=b.showButton,M=b.titlePosition,V=b.captionPosition,W=b.buttonPosition,I=b.titleFontSize,N=b.captionFontSize,j=b.buttonFontSize,q=b.navigation,F=b.dotsPosition,H=b.dotsSize,L=b.dotsGap,G=b.activeDotColor,J=b.inactiveDotsColor,U={id:1,spaceBetween:z,slidesPerView:k,slidesPerGroup:D?k:1,centeredSlides:!1,effect:"coverflow",coverflowEffect:{rotate:0,depth:1,modifier:.1,scale:O,slideShadows:!1,stretch:0},additionalModules:[u.t9]},K=S.current,Q=k*(T+(k-1)*z/k),X=(0,p.useState)((null===K||void 0===K?void 0:K.clientWidth)||Q),Y=(0,a.A)(X,2),Z=Y[0],$=Y[1],ee=Q/P,ie=T/P,te=Math.min(Z,Q),ne=Z>=480?te/ee:P,oe=(te-(k-1)*z-2*x)/k,ae=Math.floor(oe/ie),re=Math.floor(Math.max(ae,oe)),le=q!==d.ST.DOTS&&q!==d.ST.ARROWS_AND_DOTS&&(h.length>1&&2*k>h.length)?[].concat((0,o.A)(h),(0,o.A)(h)):h,se=(0,p.useState)(0),ce=(0,a.A)(se,2),de=ce[0],pe=ce[1],ue=(0,p.useRef)(null);(0,p.useEffect)((function(){if(ue.current){var e=function(){var e,i,t,n=null===(e=ue.current)||void 0===e?void 0:e.querySelector(".swiper-gallery__title-caption.swiper-gallery__item-outline:not(.swiper-gallery__button)"),o=null===(i=ue.current)||void 0===i?void 0:i.querySelector(".swiper-gallery__caption.swiper-gallery__item-outline"),a=null===(t=ue.current)||void 0===t?void 0:t.querySelector(".swiper-gallery__button.swiper-gallery__item-outline"),r=0;n&&(r+=n.offsetHeight),o&&(r+=o.offsetHeight),a&&(r+=a.offsetHeight),pe(r)};e();var i=new ResizeObserver((function(){e()})),t=ue.current.querySelector(".swiper-slide");return t&&i.observe(t),function(){i.disconnect()}}}),[B,R,E,M,V,W,I,N,j]),(0,p.useEffect)((function(){var e=function(){$((null===K||void 0===K?void 0:K.clientWidth)||Q)};return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[null===K||void 0===K?void 0:K.clientWidth]);var ge=p.useRef("swiper-pagination-external-".concat(Math.random().toString(36).slice(2,9)));return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(r.A,{ref:ue,sx:{width:"".concat(te,"px"),height:"".concat(ne+de,"px"),mx:"auto",background:_,padding:"".concat(x,"px"),paddingBottom:q!==d.ST.DOTS&&q!==d.ST.ARROWS_AND_DOTS||F!==d.JC.OUTSIDE?"".concat(x,"px"):0,boxSizing:"border-box"},children:(h||[]).length>0&&(0,w.jsx)(g.P,{externalPaginationId:ge.current,effects:U,loop:h.length>1,backgroundColor:_,images:le,autoplay:y,delay:m,playAndPauseAllowed:C,width:te,height:ne+de,size:re,imagesCount:k,preLoadCount:k+2,padding:x,scale:O,allowTouchMove:!0,onClick:t,slideClassName:(0,l.A)({carousel__slide_clickable:!!t}),settings:A,breakpoints:{0:{slidesPerView:k>1?1:k,spaceBetween:z<0?z:0},480:{slidesPerView:k>2?2:k,spaceBetween:z<20?z:20},640:{slidesPerView:k>3?3:k,spaceBetween:z<30?z:30},1024:{slidesPerView:k>4?4:k,spaceBetween:z<40?z:40},1280:{slidesPerView:k,spaceBetween:z}},titleCaptionHeight:de},U.id)}),(q===d.ST.DOTS||q===d.ST.ARROWS_AND_DOTS)&&F===d.JC.OUTSIDE&&(0,w.jsx)("div",{id:ge.current,className:(0,l.A)("swiper-pagination-external","swiper-pagination","swiper-pagination-clickable","swiper-pagination-bullets","swiper-pagination-horizontal",{"swiper-pagination-bullets-dynamic":(h||[]).length>6}),style:(i={},(0,n.A)(i,"--swiper-pagination-color",G),(0,n.A)(i,"--swiper-pagination-bullet-size",H+"px"),(0,n.A)(i,"--swiper-pagination-bullet-inactive-color",J),(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",x?x+"px":"var(--swiper-external-pagination-padding)"),(0,n.A)(i,"width","".concat(te,"px")),(0,n.A)(i,"background",_),(0,n.A)(i,"margin",(h||[]).length>6?0:"0 auto"),i)})]})};i.default=f},44885:function(e,i,t){var n=t(56578),o=t.n(n),a=t(83243),r=t.n(a)()(o());
1r.push([e.id,".reacg-gallery .swiper-coverflow {\n  box-sizing: border-box;\n  overflow-x: clip;\n  overflow-y: visible;\n}\n\n.carousel__slide_clickable {\n  cursor: pointer;\n}",""]),i.A=r},70284:function(e,i,t){var n=t(85072),o=t.n(n),a=t(97825),r=t.n(a),l=t(77659),s=t.n(l),c=t(55056),d=t.n(c),p=t(10540),u=t.n(p),g=t(41113),w=t.n(g),f=t(44885),h={};h.styleTagTransform=w(),h.setAttributes=d(),h.insert=s().bind(null,"head"),h.domAPI=r(),h.insertStyleElement=u();o()(f.A,h),f.A&&f.A.locals&&f.A.locals}}]);

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.