!function(){var t,e;t=window.wp.blocks,e=window.wp.element.createElement,t.registerBlockType("mmp/map-shortcode",{title:"Maps Marker Pro",category:"widgets",icon:"location-alt",attributes:{id:{type:"string",default:"0"}},edit:function(t){for(var a=[e("option",{value:0},mmpGbL10n.selectMap)],r=0;r<mmpGbVars.maps.length;r++){var i=mmpGbVars.maps[r],s=e("option",{value:i.id},i.name);a.push(s)}return e("div",{className:t.className},[e("img",{src:mmpGbVars.iconUrl}),e("select",{value:t.attributes.id,onChange:function(e){t.setAttributes({id:e.target.value})}},a)])},save:function(t){return"["+mmpGbVars.shortcode+' map="'+t.attributes.id+'"]'}})}();