(()=>{"use strict";var e,r={6057(){const e=window.wp.blocks,r=window.ReactJSXRuntime,{__}=wp.i18n,{Fragment:o}=wp.element,{Component:t}=wp.element,{InspectorControls:a,useBlockProps:s}=wp.blockEditor,{PanelBody:n,SelectControl:c,TextControl:l,TextareaControl:i,ToggleControl:p,RadioControl:d}=wp.components,{useBlockProps:u}=wp.blockEditor,m=JSON.parse('{"UU":"rsvpmaker/formchimp"}');(0,e.registerBlockType)(m.UU,{edit:function(e){const{attributes:{label:o,checked:t},setAttributes:c,isSelected:i}=e;let d="email_list_ok",u="profile["+d+"]";const m=s({className:e.className});return(0,r.jsxs)("div",{...m,children:[(0,r.jsx)(a,{children:(0,r.jsxs)(n,{title:__("Field Properties","rsvpmaker"),children:[(0,r.jsx)(l,{label:__("Label","rsvpmaker"),value:o,onChange:e=>c({label:e})}),(0,r.jsx)(p,{label:__("Checked by Default","rsvpmaker"),checked:t,help:t?"Included":"Not included",onChange:e=>{c({checked:e})}})]})},"choiceinspector"),(0,r.jsxs)("p",{children:[(0,r.jsx)("input",{className:d,type:"checkbox",name:u,id:d,value:"1",checked:t})," ",o]})]})},save:function(e){const{attributes:{label:o,checked:t},className:a}=e;let s="email_list_ok",n="profile["+s+"]";const c=u.save({className:a});return(0,r.jsx)("div",{...c,children:(0,r.jsxs)("p",{children:[(0,r.jsx)("input",{className:s,type:"checkbox",name:n,id:s,value:"1",checked:t})," ",o]})})},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 a=o[e];if(void 0!==a)return a.exports;var s=o[e]={exports:{}};return r[e](s,s.exports,t),s.exports}t.m=r,e=[],t.O=(r,o,a,s)=>{if(!o){var n=1/0;for(p=0;p<e.length;p++){for(var[o,a,s]=e[p],c=!0,l=0;l<o.length;l++)(!1&s||n>=s)&&Object.keys(t.O).every(e=>t.O[e](o[l]))?o.splice(l--,1):(c=!1,s<n&&(n=s));if(c){e.splice(p--,1);var i=a();void 0!==i&&(r=i)}}return r}s=s||0;for(var p=e.length;p>0&&e[p-1][2]>s;p--)e[p]=e[p-1];e[p]=[o,a,s]},t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),(()=>{var e={1495:0,415:0};t.O.j=r=>0===e[r];var r=(r,o)=>{var a,s,[n,c,l]=o,i=0;if(n.some(r=>0!==e[r])){for(a in c)t.o(c,a)&&(t.m[a]=c[a]);if(l)var p=l(t)}for(r&&r(o);i<n.length;i++)s=n[i],t.o(e,s)&&e[s]&&e[s][0](),e[s]=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 a=t.O(void 0,[415],()=>t(6057));a=t.O(a)})();