(()=>{"use strict";var e,r={9546(){const e=window.wp.blocks,r=window.ReactJSXRuntime,{__}=wp.i18n,{InnerBlocks:o,InspectorControls:t,useBlockProps:a}=wp.blockEditor,{PanelBody:s,TextControl:n,SelectControl:l}=wp.components,{InnerBlocks:p}=wp.blockEditor,c=JSON.parse('{"UU":"rsvpmaker/stripe-form-wrapper"}');(0,e.registerBlockType)(c.UU,{edit:function(e){const{attributes:p,className:c,setAttributes:i,isSelected:m}=e,u=a({className:c});return(0,r.jsxs)("div",{...u,children:[(0,r.jsx)(t,{children:(0,r.jsxs)(s,{title:__("Payment","rsvpmaker"),children:[(0,r.jsx)(l,{label:__("Payment Type","rsvpmaker"),value:p.paymentType,onChange:e=>i({paymentType:e}),options:[{value:"",label:__("One Time","rsvpmaker")},{value:"subscription:monthly",label:__("Recurring Payment: monthly","rsvpmaker")},{value:"subscription:6 months",label:__("Recurring Payment: every 6 months","rsvpmaker")},{value:"subscription:1 year",label:__("Recurring Payment: annual","rsvpmaker")}]}),(0,r.jsx)(n,{label:__("Amount","rsvpmaker"),value:p.amount,onChange:e=>i({amount:e})}),(0,r.jsx)(n,{label:__("Description","rsvpmaker"),value:p.description,onChange:e=>i({description:e})})]})},"stripeformwrapperinspector"),(0,r.jsx)("div",{class:"stripe-wrapper-border",children:__("START Stripe form wrapper")}),(0,r.jsx)(o,{template:[["rsvpmaker/formfield",{label:"Name",slug:"name",sluglocked:!0,guestform:!1}]]}),(0,r.jsx)("div",{class:"stripe-wrapper-border",children:__("END Stripe form wrapper")})]})},save:function({className:e}){const o=useBlockProps.save({className:e});return(0,r.jsx)("div",{...o,children:(0,r.jsx)(p.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 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(i=0;i<e.length;i++){for(var[o,a,s]=e[i],l=!0,p=0;p<o.length;p++)(!1&s||n>=s)&&Object.keys(t.O).every(e=>t.O[e](o[p]))?o.splice(p--,1):(l=!1,s<n&&(n=s));if(l){e.splice(i--,1);var c=a();void 0!==c&&(r=c)}}return r}s=s||0;for(var i=e.length;i>0&&e[i-1][2]>s;i--)e[i]=e[i-1];e[i]=[o,a,s]},t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),(()=>{var e={9468:0,5396:0};t.O.j=r=>0===e[r];var r=(r,o)=>{var a,s,[n,l,p]=o,c=0;if(n.some(r=>0!==e[r])){for(a in l)t.o(l,a)&&(t.m[a]=l[a]);if(p)var i=p(t)}for(r&&r(o);c<n.length;c++)s=n[c],t.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return t.O(i)},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,[5396],()=>t(9546));a=t.O(a)})();