(()=>{"use strict";var e,r={4501(){const e=window.wp.blocks,r=window.ReactJSXRuntime,{__}=wp.i18n,{useBlockProps:o,InnerBlocks:t}=wp.blockEditor,{TextControl:s}=wp.components,{InnerBlocks:n,useBlockProps:a}=wp.blockEditor,c=JSON.parse('{"UU":"rsvpmaker/guests"}');(0,e.registerBlockType)(c.UU,{edit:function(e){const{attributes:n,className:a,setAttributes:c,isSelected:i}=e,l=o();return(0,r.jsxs)("div",{...l,children:[(0,r.jsx)("h3",{children:__("Guest Fields","rsvpmaker")}),(0,r.jsx)(s,{label:__("Limit (if any). Enter a maximum number of guests or leave blank for no limit."),value:n.limit,onChange:e=>{c({limit:e?parseInt(e):0})}}),(0,r.jsxs)("div",{className:"guestnote",children:[__("Guests section will include fields you checked off above (such as First Name, Last Name), plus any others you embed below (information to be collected about guests ONLY).","rsvpmaker"),(0,r.jsxs)("ul",{children:[(0,r.jsx)("li",{children:__('You MUST check "Include on Guest Form"',"rsvpmaker")}),(0,r.jsx)("li",{children:__('"Required" checkbox does not work in guest fields',"rsvpmaker")}),(0,r.jsx)("li",{children:__("This block is not intended for use outside of an RSVPMaker RSVP Form document","rsvpmaker")})]})]}),(0,r.jsx)(t,{})]})},save:function(e){const o=a.save();return(0,r.jsx)("div",{...o,children:(0,r.jsx)(n.Content,{})})},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."}]]]],t=(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"},t)}}]}})}},o={};function t(e){var s=o[e];if(void 0!==s)return s.exports;var n=o[e]={exports:{}};return r[e](n,n.exports,t),n.exports}t.m=r,e=[],t.O=(r,o,s,n)=>{if(!o){var a=1/0;for(u=0;u<e.length;u++){for(var[o,s,n]=e[u],c=!0,i=0;i<o.length;i++)(!1&n||a>=n)&&Object.keys(t.O).every(e=>t.O[e](o[i]))?o.splice(i--,1):(c=!1,n<a&&(a=n));if(c){e.splice(u--,1);var l=s();void 0!==l&&(r=l)}}return r}n=n||0;for(var u=e.length;u>0&&e[u-1][2]>n;u--)e[u]=e[u-1];e[u]=[o,s,n]},t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),(()=>{var e={2315:0,3907:0};t.O.j=r=>0===e[r];var r=(r,o)=>{var s,n,[a,c,i]=o,l=0;if(a.some(r=>0!==e[r])){for(s in c)t.o(c,s)&&(t.m[s]=c[s]);if(i)var u=i(t)}for(r&&r(o);l<a.length;l++)n=a[l],t.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return t.O(u)},o=globalThis.webpackChunkadmin=globalThis.webpackChunkadmin||[];o.forEach(r.bind(null,0)),o.push=r.bind(null,o.push.bind(o))})();var s=t.O(void 0,[3907],()=>t(4501));s=t.O(s)})();