(()=>{"use strict";var e,r={3386(){const e=window.wp.blocks,r=window.ReactJSXRuntime,{__}=wp.i18n,{Fragment:o}=wp.element,{Component:t}=wp.element,{InspectorControls:n,useBlockProps:a}=wp.blockEditor,{PanelBody:s,TextControl:l}=wp.components;class i extends t{render(){const{attributes:e,setAttributes:o,className:t}=this.props;return(0,r.jsx)(n,{children:(0,r.jsxs)(s,{title:__("Field Properties","rsvpmaker"),children:[(0,r.jsx)(l,{label:__("Label","rsvpmaker"),value:e.label,onChange:e=>function(e){o({label:e.trim()})}(e)}),(0,r.jsx)(l,{label:__("Field Note (optional additional information)","rsvpmaker"),value:e.fieldnote||"",onChange:e=>o({fieldnote:e})})]})},"fieldinspector")}}const c=JSON.parse('{"UU":"rsvpmaker/formnote"}');(0,e.registerBlockType)(c.UU,{edit:function(e){const{attributes:{label:t,fieldnote:n},setAttributes:s,isSelected:l}=e,c=a();return(0,r.jsxs)(o,{children:[(0,r.jsx)(i,{...e}),(0,r.jsxs)("div",{...c,children:[(0,r.jsx)("p",{children:(0,r.jsxs)("label",{children:[t,":"]})}),n&&(0,r.jsx)("p",{children:(0,r.jsx)("em",{children:n})}),(0,r.jsx)("div",{className:"rsvp-textarea-line",children:(0,r.jsx)("textarea",{name:"note",inert:!0,tabindex:"-1"})}),(0,r.jsx)("div",{children:(0,r.jsx)("em",{children:__("Note for bottom of RSVP form. Only one allowed. Use RSVPField Text Area for any additional text fields. Set properties in sidebar. Intended for use within an RSVPMaker registration form.","rsvpmaker")})})]})]})},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."}]]]],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 n=o[e];if(void 0!==n)return n.exports;var a=o[e]={exports:{}};return r[e](a,a.exports,t),a.exports}t.m=r,e=[],t.O=(r,o,n,a)=>{if(!o){var s=1/0;for(p=0;p<e.length;p++){for(var[o,n,a]=e[p],l=!0,i=0;i<o.length;i++)(!1&a||s>=a)&&Object.keys(t.O).every(e=>t.O[e](o[i]))?o.splice(i--,1):(l=!1,a<s&&(s=a));if(l){e.splice(p--,1);var c=n();void 0!==c&&(r=c)}}return r}a=a||0;for(var p=e.length;p>0&&e[p-1][2]>a;p--)e[p]=e[p-1];e[p]=[o,n,a]},t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),(()=>{var e={5036:0,4036:0};t.O.j=r=>0===e[r];var r=(r,o)=>{var n,a,[s,l,i]=o,c=0;if(s.some(r=>0!==e[r])){for(n in l)t.o(l,n)&&(t.m[n]=l[n]);if(i)var p=i(t)}for(r&&r(o);c<s.length;c++)a=s[c],t.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return t.O(p)},o=globalThis.webpackChunkadmin=globalThis.webpackChunkadmin||[];o.forEach(r.bind(null,0)),o.push=r.bind(null,o.push.bind(o))})();var n=t.O(void 0,[4036],()=>t(3386));n=t.O(n)})();