(()=>{var e={356:()=>{var e=wp.serverSideRender,t=wp.blocks.registerBlockType,__=wp.i18n.__,l=wp.element.createElement,n=wp.components.TextControl,a=wp.blockEditor.InspectorControls,o=wp.components.PanelBody,r=wp.components.SelectControl,s=wp.components.ToggleControl;t("w4os/web-search",{title:__("OpenSimulator Web Search","w4os"),icon:"location",category:"widgets",attributes:{title:{type:"string",default:""},level:{type:"string",default:"h3"},max:{type:"number",default:5},include_hypergrid:{type:"boolean",default:!1},include_landsales:{type:"boolean",default:!1}},edit:function(t){var i=t.attributes.title,u=t.attributes.level,c=t.attributes.max||0,p=t.attributes.include_hypergrid,d=t.attributes.include_landsales,b=t.setAttributes;return l("div",{className:t.className},l(a,null,l(o,{title:__("Block Settings","w4os"),initialOpen:!0},l(n,{label:__("Title","w4os"),value:i,onChange:function(e){b({title:e||void 0})}}),l(r,{label:__("Title Level","w4os"),value:u,options:[{label:"H1",value:"h1"},{label:"H2",value:"h2"},{label:"H3",value:"h3"},{label:"H4",value:"h4"},{label:"H5",value:"h5"},{label:"H6",value:"h6"},{label:"P",value:"p"}],onChange:function(e){b({level:e})}}),l(n,{label:__("Max Results","w4os"),type:"number",value:c.toString(),onChange:function(e){var t=parseInt(e)<0?0:parseInt(e);b({max:t})}}),l(s,{label:__("Include Hypergrid","w4os"),checked:p,onChange:function(e){b({include_hypergrid:e})}}),l(s,{label:__("Include Land for Sale","w4os"),checked:d,onChange:function(e){b({include_landsales:e})}}))),l("div",{className:"block-content"},l(e,{block:"w4os/web-search",attributes:t.attributes})))},save:function(){return null}})}},t={};function l(n){var a=t[n];if(void 0!==a)return a.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,l),o.exports}l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},l.d=(e,t)=>{for(var n in t)l.o(t,n)&&!l.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";l(356)})()})();