(()=>{var e,r={914:(e,r,t)=>{"use strict";const o=window.React;var n=t(942),a=t.n(n);const l=window.wp.i18n,i=window.wp.hooks,s=window.wp.blocks,c=window.wp.compose,u=window.wp.components,d=window.wp.blockEditor,p=(0,c.createHigherOrderComponent)((e=>r=>{const{name:t,attributes:n,setAttributes:a,isSelected:i}=r,{loadMore:s}=n;return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(e,{...r}),i&&"core/gallery"===t&&(0,o.createElement)(d.InspectorControls,{group:"advanced"},(0,o.createElement)(u.ToggleControl,{label:(0,l.__)("Enable Load More"),checked:!!s,onChange:()=>a({loadMore:!s}),__nextHasNoMarginBottom:!0})))}),"withAdvancedControls");(0,i.addFilter)("blocks.registerBlockType","ucla-wordpress-plugin/gallery-load-more",(function(e){return"core/gallery"!==e.name||void 0!==e.attributes&&(e.attributes=Object.assign(e.attributes,{loadMore:{type:"boolean",default:!1}})),e})),(0,i.addFilter)("editor.BlockEdit","ucla-wordpress-plugin/custom-advanced-control",p),(0,i.addFilter)("blocks.getSaveContent.extraProps","ucla-wordpress-plugin/applyExtraClass",(function(e,r,t){const{loadMore:o}=t;return void 0!==o&&o&&"core/gallery"===r.name&&(e.className=a()(e.className,"load-more-gallery")),e})),(0,s.registerBlockStyle)("core/gallery",{name:"masonry",label:(0,l.__)("Masonry")})},942:(e,r)=>{var t;!function(){"use strict";var o={}.hasOwnProperty;function n(){for(var e="",r=0;r<arguments.length;r++){var t=arguments[r];t&&(e=l(e,a(t)))}return e}function a(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var r="";for(var t in e)o.call(e,t)&&e[t]&&(r=l(r,t));return r}function l(e,r){return r?e?e+" "+r:e+r:e}e.exports?(n.default=n,e.exports=n):void 0===(t=function(){return n}.apply(r,[]))||(e.exports=t)}()}},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var a=t[e]={exports:{}};return r[e](a,a.exports,o),a.exports}o.m=r,e=[],o.O=(r,t,n,a)=>{if(!t){var l=1/0;for(u=0;u<e.length;u++){for(var[t,n,a]=e[u],i=!0,s=0;s<t.length;s++)(!1&a||l>=a)&&Object.keys(o.O).every((e=>o.O[e](t[s])))?t.splice(s--,1):(i=!1,a<l&&(l=a));if(i){e.splice(u--,1);var c=n();void 0!==c&&(r=c)}}return r}a=a||0;for(var u=e.length;u>0&&e[u-1][2]>a;u--)e[u]=e[u-1];e[u]=[t,n,a]},o.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return o.d(r,{a:r}),r},o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),(()=>{var e={663:0,975:0};o.O.j=r=>0===e[r];var r=(r,t)=>{var n,a,[l,i,s]=t,c=0;if(l.some((r=>0!==e[r]))){for(n in i)o.o(i,n)&&(o.m[n]=i[n]);if(s)var u=s(o)}for(r&&r(t);c<l.length;c++)a=l[c],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return o.O(u)},t=globalThis.webpackChunkucla_wordpress_plugin=globalThis.webpackChunkucla_wordpress_plugin||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})();var n=o.O(void 0,[975],(()=>o(914)));n=o.O(n)})();