1"use strict";(self.webpackChunkwp_gallery=self.webpackChunkwp_gallery||[]).push([[410],{94029:function(t,e,i){i.r(e),i.d(e,{MasonryGallery:function(){return l}});var o=i(86137),n=i(22065),r=i(60011),a=(i(51477),i(70481)),l=function(t){var e=t.onClick,i=(0,r.t0)().masonrySettings,l=(0,o.E)().images,c=i,s=c.gap,d=c.backgroundColor,u=c.containerPadding,g=c.padding,p=c.width,m=c.columns;return(0,a.jsx)(n.k,{images:l||[],layout:"masonry",width:p,columns:m,gap:s,padding:g,backgroundColor:d,containerPadding:u,settings:i,onClick:e})};e.default=l},22065:function(t,e,i){i.d(e,{k:function(){return x}});var o=i(5544),n=i(2920),r=i(51477),a=i(93419),l=i(23725),c=i(89379),s=i(84179),d=i(47758),u=i(35638),g=i(25963),p=i(22015),m=i(8973),b=i(76748),h=(i(26110),i(70481)),_=function(t){var e=t.image,i=t.imageProps,o=(t.width,t.height,t.onClick),n=t.settings,a=t.style,l=(t.children,n.padding),_=n.paddingColor,x=n.borderRadius,f=n.titleSource,v=n.titleVisibility,y=n.captionVisibility,k=n.titleAlignment,C=n.titlePosition,w=n.captionPosition,H=n.titleColor,R=n.titleFontFamily,N=n.titleFontSize,j=n.titleMaxRowsCount,O=n.overlayTextBackground,E=n.invertTextColor,z=n.hoverEffect,T=n.showCaption,A=n.captionSource,S=n.captionFontSize,B=n.captionFontColor,I=n.captionMaxRowsCount,P=n.showTitle,M=n.showButton,F=n.buttonText,L=n.buttonVisibility,V=n.buttonPosition,W=n.buttonAlignment,G=n.buttonColor,D=n.buttonTextColor,U=n.buttonFontSize,q=n.buttonBorderSize,J=n.buttonBorderColor,K=n.buttonBorderRadius,Q=n.buttonUrlSource,X=n.openInNewTab,Y=l<x/2?x-l:x/2,Z=(0,r.useRef)(null);return(0,h.jsx)("div",{className:(0,d.A)(o?"photo-album-item__image-wrapper_clickable":"photo-album-item__image-wrapper_non_clickable"),style:(0,c.A)({background:_,borderRadius:"".concat(x,"px")},a),onClick:o,children:(0,h.jsxs)("div",{ref:Z,className:(0,d.A)("re-image__wrapper","photo-album-item__image-wrapper","reacg-action-button-hover-parent","photo-album-item__image-wrapper_overflow","photo-album-item__image-wrapper_"+z),style:{borderRadius:"".concat(Y,"px")},children:[e.type===m.yj.IMAGE&&(0,h.jsx)(g.A,(0,c.A)((0,c.A)({wrapperRef:Z},i),{},{originalWidth:e.original.width,originalHeight:e.original.height,style:{width:"100%",height:"100%",display:"block"}})),e.type===m.yj.VIDEO&&(0,h.jsx)(p.A,{wrapperRef:Z,item:e,settings:n,coverImageProps:(0,c.A)((0,c.A)({},i),{},{originalWidth:e.original.width,originalHeight:e.original.height,style:{width:"100%",height:"100%",display:"block"}})}),(0,h.jsx)(b.n,{}),P&&function(t){var e=C!==m._H.CENTER?Y/2+"px":"0",i=C===w&&T&&!!t[A];return(0,h.jsx)("div",{className:(0,d.A)("photo-album-item__title",{"photo-album-item__title_on-hover":P&&v===m.nz.ON_HOVER,"photo-album-item__title_hidden":!P,"reacg-gallery__text-background-top-gradient":""===O&&C===m._H.TOP,"reacg-gallery__text-background-bottom-gradient":""===O&&C===m._H.BOTTOM,"reacg-gallery__text-background-center-gradient":""===O&&C===m._H.CENTER}),children:(0,h.jsx)(s.A,{sx:{"& .MuiImageListItemBar-title":{fontSize:"".concat(N,"px"),fontFamily:R,lineHeight:"normal",display:j?"-webkit-box !important":"block",WebkitLineClamp:j,WebkitBoxOrient:j?"vertical":"initial"},"& .MuiImageListItemBar-subtitle":{fontSize:"".concat(S,"px"),fontFamily:R,color:B,lineHeight:"normal"},"& .photo-album-item__caption":{display:i&&I?"-webkit-box !important":"block",WebkitLineClamp:i?I:void 0,WebkitBoxOrient:i&&I?"vertical":"initial"}},style:{textAlign:k,paddingLeft:e,paddingRight:e,color:H,backgroundColor:""===O?"unset":O,mixBlendMode:E?"difference":"initial"},className:"photo-album-item__title-content_".concat(C),title:P&&(0,h.jsx)("span",{children:(null===t||void 0===t?void 0:t[f])||(0,h.jsx)("br",{})}),subtitle:C===w&&T&&t[A]||C===V&&M?(0,h.jsxs)(h.Fragment,{children:[C===w&&T&&t[A]&&(0,h.jsx)("span",{className:"photo-album-item__caption",children:t[A]}),C===V&&M&&(0,h.jsx)("span",{className:"reacg-action-button-wrap",children:(0,h.jsx)(u.r,{url:(null===t||void 0===t?void 0:t[Q])||"",openInNewTab:X,text:F,alignment:W,backgroundColor:G,textColor:D,fontSize:U,borderSize:q,borderColor:J,borderRadius:K,isOnHover:L===m.nz.ON_HOVER})})]}):null,position:C!==m._H.CENTER?C:"bottom"})})}(e),T&&(C!=w||!P)&&function(t){var e=C!==m._H.CENTER?Y/2+"px":"0";return(0,h.jsx)("div",{className:(0,d.A)("photo-album-item__title",{"photo-album-item__title_on-hover":T&&y===m.nz.ON_HOVER,"ph
1oto-album-item__title_hidden":!T,"reacg-gallery__text-background-top-gradient":""===O&&w===m._H.TOP,"reacg-gallery__text-background-bottom-gradient":""===O&&w===m._H.BOTTOM,"reacg-gallery__text-background-center-gradient":""===O&&w===m._H.CENTER}),children:(0,h.jsx)(s.A,{sx:{"& .MuiImageListItemBar-title":{fontSize:"".concat(S,"px"),fontFamily:R,color:B,lineHeight:"normal"},"& .photo-album-item__caption":{display:I?"-webkit-box !important":"block",WebkitLineClamp:I,WebkitBoxOrient:I?"vertical":"initial"},"& .MuiImageListItemBar-subtitle":{fontSize:"".concat(S,"px"),fontFamily:R,color:B,lineHeight:"normal"}},style:{textAlign:k,paddingLeft:e,paddingRight:e,color:B,backgroundColor:""===O?"unset":O,mixBlendMode:E?"difference":"initial"},className:"photo-album-item__title-content_".concat(w),title:T&&t[A]||w===V&&M?(0,h.jsxs)(h.Fragment,{children:[T&&t[A]&&(0,h.jsx)("span",{className:"photo-album-item__caption",children:t[A]}),w===V&&M&&(0,h.jsx)("span",{className:"reacg-action-button-wrap",children:(0,h.jsx)(u.r,{url:(null===t||void 0===t?void 0:t[Q])||"",openInNewTab:X,text:F,alignment:W,backgroundColor:G,textColor:D,fontSize:U,borderSize:q,borderColor:J,borderRadius:K,isOnHover:L===m.nz.ON_HOVER})})]}):null,position:w!==m._H.CENTER?w:"bottom"})})}(e),M&&(C!=V||!P)&&(w!=V||!T)&&function(t){var e=V!==m._H.CENTER?Y/2+"px":"0";return(0,h.jsx)("div",{className:(0,d.A)("photo-album-item__title",{"reacg-action-button-container_on-hover":M&&L===m.nz.ON_HOVER,"photo-album-item__title_hidden":!M,"reacg-gallery__text-background-top-gradient":""===O&&V===m._H.TOP,"reacg-gallery__text-background-bottom-gradient":""===O&&V===m._H.BOTTOM,"reacg-gallery__text-background-center-gradient":""===O&&V===m._H.CENTER}),children:(0,h.jsx)(s.A,{sx:{"& .MuiImageListItemBar-title":{fontFamily:R,lineHeight:"normal"}},style:{textAlign:W,paddingLeft:e,paddingRight:e,backgroundColor:""===O?"unset":O,mixBlendMode:E?"difference":"initial"},className:"photo-album-item__title-content_".concat(V),title:(0,h.jsx)("span",{className:"reacg-action-button-wrap",children:(0,h.jsx)(u.r,{url:(null===t||void 0===t?void 0:t[Q])||"",openInNewTab:X,text:F,alignment:W,backgroundColor:G,textColor:D,fontSize:U,borderSize:q,borderColor:J,borderRadius:K,isOnHover:L===m.nz.ON_HOVER})}),position:V!==m._H.CENTER?V:"bottom"})})}(e)]})})},x=function(t){var e=t.images,i=t.width,c=t.layout,s=t.columns,d=t.gap,u=t.padding,g=t.rowHeight,p=t.backgroundColor,m=t.containerPadding,b=t.settings,x=t.onClick,f=(0,r.useState)(1e3),v=(0,o.A)(f,2),y=v[0],k=v[1],C=s||4,w=(0,r.useMemo)((function(){return null===e||void 0===e?void 0:e.map((function(t){var e=(0,l.tS)(t.sizes),i=(0,l.om)(t.sizes);return{key:t.id,src:i.src,width:i.width,height:i.height,srcSet:e,id:t.id,alt:t.alt}}))}),[e]),H=(0,r.useCallback)((function(t){return x?function(){return x(t)}:void 0}),[x]),R=(0,r.useCallback)((function(t){var i=t.photo,o=t.layout,n=t.wrapperStyle,r=t.imageProps,a=null===e||void 0===e?void 0:e.find((function(t){return t.id===i.id})),l=null===e||void 0===e?void 0:e.findIndex((function(t){return t.id===i.id}));return a?(0,h.jsx)(_,{image:a,imageProps:r,width:o.width,height:o.height,style:n,onClick:H(l),settings:b},a.original.url):null}),[e,H,b]),N=(0,r.useCallback)((function(t){k(t);for(var e=1;e<=C;e++)if(t<=1e3*e/C)return e;return C}),[C]),j=(0,r.useRef)(null),O=(0,r.useRef)(null);return(0,r.useEffect)((function(){var t=O.current,e=j.current;if(t&&e&&"undefined"!==typeof ResizeObserver){var i=new ResizeObserver((function(){var i=t.offsetHeight;i>0&&(e.style.minHeight=i+"px")}));return i.observe(t),function(){return i.disconnect()}}}),[]),(0,h.jsx)(n.A,{sx:{width:"".concat(i,"%"),mx:"auto"},ref:j,children:(0,h.jsx)("div",{ref:O,style:{width:"100%"},children:(0,h.jsx)(a.A,{layout:c,columns:N,spacing:d,padding:u,targetRowHeight:g,photos:w,componentsProps:function(t){return{containerProps:{style:{background:p,padding:m+"px"}},imageProps:{loading:(t||0)>500?"eager":"lazy"}}},renderPhoto:R,sizes:{size:y+"px"}})})})}}}]);
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.