(()=>{"use strict";var e,r={3654(){const e=window.wp.blocks,r=(window.React,window.ReactJSXRuntime),{__}=wp.i18n,{InspectorControls:o,useBlockProps:t}=wp.blockEditor,{ToggleControl:n,TextControl:i}=wp.components,s=JSON.parse('{"UU":"rsvpmaker/submission"}');(0,e.registerBlockType)(s.UU,{edit:function(e){const s=t(),{attributes:{timezone:a,to:l},setAttributes:c,isSelected:d}=e;return(0,r.jsxs)("div",{...s,children:[(0,r.jsxs)(o,{children:[(0,r.jsx)(n,{label:__("Prompt for Timezone","rsvpmaker"),checked:a,onChange:e=>{c({timezone:e})}}),(0,r.jsx)(i,{label:__("Notification Emails: To override default from Settings, enter one or more emails, separated by commas","rsvpmaker"),value:l,onChange:e=>{c({to:e})}})]},"submissioninspector"),(0,r.jsxs)("h2",{children:["Event Title: ",(0,r.jsx)("input",{name:"event_title"})]}),(0,r.jsxs)("div",{id:"date",children:[(0,r.jsx)("label",{children:"Date"})," ",(0,r.jsx)("input",{type:"date",name:"date",inert:!0,tabIndex:"-1"})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{children:"Time"})," ",(0,r.jsx)("input",{id:"time",type:"time",name:"time",value:"12:00",inert:!0,tabIndex:"-1"})," to ",(0,r.jsx)("input",{id:"endtime",type:"time",name:"endtime",value:"13:00",inert:!0,tabIndex:"-1"})]}),a?(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{children:"Timezone"}),(0,r.jsxs)("select",{id:"timezone_string",name:"timezone_string",children:[(0,r.jsxs)("optgroup",{label:"U.S. (Common Choices)",children:[(0,r.jsx)("option",{value:"America/New_York",children:"New York"}),(0,r.jsx)("option",{value:"America/Chicago",children:"Chicago"}),(0,r.jsx)("option",{value:"America/Denver",children:"Denver"}),(0,r.jsx)("option",{value:"America/Los_Angeles",children:"Los Angeles"})]}),(0,r.jsx)("option",{value:"",children:"Other Choices ..."})]})," ",(0,r.jsx)("br",{}),(0,r.jsx)("em",{children:"Choose a city in the same timezone as you."})]}):null,(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{children:"Your Name"}),(0,r.jsx)("input",{name:"rsvpmaker_submission_contact",id:"rsvpmaker_submission_contact",inert:!0,tabIndex:"-1"})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{children:"Email"}),(0,r.jsx)("input",{name:"rsvpmaker_submission_email",id:"rsvpmaker_submission_email",inert:!0,tabIndex:"-1"})]}),(0,r.jsx)("div",{children:(0,r.jsx)("em",{children:"If you want your contact information to be published as part of the event listing, also include it in the description below."})}),(0,r.jsxs)("p",{children:["Event Details",(0,r.jsx)("br",{}),(0,r.jsx)("textarea",{id:"rsvpmaker_submission_description",name:"rsvpmaker_submission_description",rows:"5",cols:"100",inert:!0,tabIndex:"-1"})]}),(0,r.jsx)("p",{children:(0,r.jsx)("button",{children:"Submit"})})]})},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 i=o[e]={exports:{}};return r[e](i,i.exports,t),i.exports}t.m=r,e=[],t.O=(r,o,n,i)=>{if(!o){var s=1/0;for(d=0;d<e.length;d++){for(var[o,n,i]=e[d],a=!0,l=0;l<o.length;l++)(!1&i||s>=i)&&Object.keys(t.O).every(e=>t.O[e](o[l]))?o.splice(l--,1):(a=!1,i<s&&(s=i));if(a){e.splice(d--,1);var c=n();void 0!==c&&(r=c)}}return r}i=i||0;for(var d=e.length;d>0&&e[d-1][2]>i;d--)e[d]=e[d-1];e[d]=[o,n,i]},t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),(()=>{var e={6834:0,7574:0};t.O.j=r=>0===e[r];var r=(r,o)=>{var n,i,[s,a,l]=o,c=0;if(s.some(r=>0!==e[r])){for(n in a)t.o(a,n)&&(t.m[n]=a[n]);if(l)var d=l(t)}for(r&&r(o);c<s.length;c++)i=s[c],t.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return t.O(d)},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,[7574],()=>t(3654));n=t.O(n)})();