(()=>{var e={271:()=>{var e=wp.serverSideRender,t=wp.blocks.registerBlockType,__=wp.i18n.__,l=wp.element.createElement,a=wp.components.TextControl,n=wp.blockEditor.InspectorControls,o=wp.components.PanelBody,r=wp.components.SelectControl,s=wp.components.ToggleControl;t("w4os/popular-places",{title:__("OpenSimulator Popular Places","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(n,null,l(o,{title:__("Block Settings","w4os"),initialOpen:!0},l(a,{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(a,{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/popular-places",attributes:t.attributes})))},save:function(){return null}})}},t={};function l(a){var n=t[a];if(void 0!==n)return n.exports;var o=t[a]={exports:{}};return e[a](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 a in t)l.o(t,a)&&!l.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";l(271)})()})();