(()=>{"use strict";var e,r={3295(){const e=window.wp.blocks,r=window.wp.i18n,o=(window.React,window.wp.blockEditor),a=window.ReactJSXRuntime,{Fragment:t}=wp.element,{SelectControl:l,TextControl:n}=wp.components,s=JSON.parse('{"UU":"rsvpmaker/nomeeting"}');(0,e.registerBlockType)(s.UU,{edit:function(e){const{attributes:s,setAttributes:i,attributes:{weeks:c,headline:p}}=e;return(0,a.jsx)(t,{children:(0,a.jsxs)("div",{...(0,o.useBlockProps)(),children:[(0,a.jsxs)(o.InspectorControls,{children:[(0,a.jsx)(l,{label:(0,r.__)("Weeks","rsvpmaker"),value:c,options:[{value:5,label:5},{value:10,label:10},{value:15,label:15},{value:20,label:20},{value:25,label:25},{value:30,label:30},{value:35,label:35},{value:40,label:40},{value:45,label:45},{value:50,label:50},{value:60,label:60}],onChange:e=>{i({weeks:e})}}),(0,a.jsx)(n,{label:(0,r.__)("Headline (optional)","rsvpmaker"),value:p,onChange:e=>{i({headline:e})}}),(0,a.jsx)("p",{children:(0,r.__)("If specified, this headline will be displayed above the list of no meeting dates.","rsvpmaker")})]},"nomeetinginspector"),p&&(0,a.jsx)("h2",{children:p}),(0,a.jsx)("p",{children:"Events specified as no meeting dates, if any, will be displayed here."})]})})},save:function(){return null},transforms:{to:[{type:"block",blocks:["core/query"],transform:r=>{const o=r.calendar&&parseInt(r.calendar)?[["rsvpmaker/calendar",r],["core/post-template",{layout:{type:"grid",columnCount:2}},[["core/post-title",{isLink:!0}],["core/post-featured-image"],["rsvpmaker/loop-blocks"],["core/read-more",{content:"Read More >>"}]]],["core/query-pagination"],["core/query-no-results",{},[["core/paragraph",{content:"No events found."}]]]]:[["core/post-template",{layout:{type:"grid",columnCount:2}},[["core/post-title",{isLink:!0}],["core/post-featured-image"],["rsvpmaker/loop-blocks"],["core/read-more",{content:"Read More >>"}]]],["core/query-pagination"],["core/query-no-results",{},[["core/paragraph",{content:"No events found."}]]]],a=(0,e.createBlocksFromInnerBlocksTemplate)(o);return(0,e.createBlock)("core/query",{queryId:0,query:{perPage:20,pages:0,offset:0,postType:"rsvpmaker",order:"asc",author:"",search:"",exclude:[],sticky:"",inherit:!1},namespace:"rsvpmaker/rsvpmaker-loop"},a)}}]}})}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var l=o[e]={exports:{}};return r[e](l,l.exports,a),l.exports}a.m=r,e=[],a.O=(r,o,t,l)=>{if(!o){var n=1/0;for(p=0;p<e.length;p++){for(var[o,t,l]=e[p],s=!0,i=0;i<o.length;i++)(!1&l||n>=l)&&Object.keys(a.O).every(e=>a.O[e](o[i]))?o.splice(i--,1):(s=!1,l<n&&(n=l));if(s){e.splice(p--,1);var c=t();void 0!==c&&(r=c)}}return r}l=l||0;for(var p=e.length;p>0&&e[p-1][2]>l;p--)e[p]=e[p-1];e[p]=[o,t,l]},a.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),(()=>{var e={6868:0,5676:0};a.O.j=r=>0===e[r];var r=(r,o)=>{var t,l,[n,s,i]=o,c=0;if(n.some(r=>0!==e[r])){for(t in s)a.o(s,t)&&(a.m[t]=s[t]);if(i)var p=i(a)}for(r&&r(o);c<n.length;c++)l=n[c],a.o(e,l)&&e[l]&&e[l][0](),e[l]=0;return a.O(p)},o=globalThis.webpackChunkadmin=globalThis.webpackChunkadmin||[];o.forEach(r.bind(null,0)),o.push=r.bind(null,o.push.bind(o))})();var t=a.O(void 0,[5676],()=>a(3295));t=a.O(t)})();