(()=>{"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 l in o)e.o(o,l)&&!e.o(t,l)&&Object.defineProperty(t,l,{enumerable:!0,get:o[l]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window.React,o=window.wp.blocks,l=window.wp.blockEditor,r=window.wp.components,n=window.wp.serverSideRender;var a=e.n(n);const c=JSON.parse('{"UU":"clisyc/booking-form"}');(0,o.registerBlockType)(c.UU,{edit:({attributes:e,setAttributes:o})=>{const n=(0,l.useBlockProps)(),{mode:s}=e;return(0,t.createElement)(t.Fragment,null,(0,t.createElement)(l.InspectorControls,null,(0,t.createElement)(r.PanelBody,{title:"Form Settings"},(0,t.createElement)(r.SelectControl,{label:"Display Mode",value:s,options:[{label:"Auto (from Global Settings)",value:"auto"},{label:"Time-Slot Calendar",value:"calendar"},{label:"Date-Range Search",value:"search"}],onChange:e=>o({mode:e}),help:"Choose which booking interface to display. 'Auto' is recommended."}))),(0,t.createElement)("div",{...n},(0,t.createElement)(a(),{block:c.UU,attributes:e})))},save:()=>null})})();