(()=>{"use strict";var e={n:t=>{var o=t&&t.__esModule?()=>t.default:()=>t;return e.d(o,{a:o}),o},d:(t,o)=>{for(var n in o)e.o(o,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:o[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window.wp.blocks,o=JSON.parse('{"UU":"events-manager/multiple-bookings-cart"}'),n=window.React,a=window.wp.i18n,r=window.wp.blockEditor,l=window.wp.components,i=window.wp.serverSideRender;var c=e.n(i);(0,t.registerBlockType)(o.UU,{edit:function({attributes:e,setAttributes:t}){const{title:o,format:i,loading_text:m,checkout_text:s,cart_text:u,no_bookings_text:_}=e;return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(r.InspectorControls,null,(0,n.createElement)(l.PanelBody,{title:(0,a.__)("Cart settings","em-pro")},(0,n.createElement)(l.TextControl,{label:(0,a.__)("Title","em-pro"),value:o,onChange:e=>t({title:e})}),(0,n.createElement)(l.TextControl,{label:(0,a.__)("Loading text","em-pro"),value:m,onChange:e=>t({loading_text:e})}),(0,n.createElement)(l.TextControl,{label:(0,a.__)("Checkout button text","em-pro"),value:s,onChange:e=>t({checkout_text:e})}),(0,n.createElement)(l.TextControl,{label:(0,a.__)("View cart text","em-pro"),value:u,onChange:e=>t({cart_text:e})}),(0,n.createElement)(l.TextControl,{label:(0,a.__)("No bookings text","em-pro"),value:_,onChange:e=>t({no_bookings_text:e})})),(0,n.createElement)(l.PanelBody,{title:(0,a.__)("Output format (advanced)","em-pro"),initialOpen:!1},(0,n.createElement)(l.TextareaControl,{label:(0,a.__)("Booking item format","em-pro"),value:i,onChange:e=>t({format:e})}))),(0,n.createElement)("div",{...(0,r.useBlockProps)()},(0,n.createElement)(c(),{block:"events-manager/multiple-bookings-cart",attributes:e})))},save:()=>null})})();