!function(e){function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var t={};n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},n.p="",n(n.s=0)}([function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});t(1)},function(e,n,t){"use strict";var r=t(2),o=(t.n(r),t(3)),u=(t.n(o),wp.i18n.__),l=wp.blocks.registerBlockType,i=wp.components,c=i.ServerSideRender,a=i.SelectControl,s=i.PanelBody,b=wp.element.Fragment,m=wp.editor.InspectorControls;l("ubermenu/ubermenu-block",{title:u("UberMenu"),description:u("Display an UberMenu Mega Menu."),icon:"menu",category:"common",keywords:[u("menu"),u("navigation"),u("UberMenu")],edit:function(e){var n=Object.keys(window.ubermenu_block.menu_options).map(function(e){return{value:e,label:window.ubermenu_block.menu_options[e]}}),t=Object.keys(window.ubermenu_block.config_options).map(function(e){return{value:e,label:window.ubermenu_block.config_options[e]}});return wp.element.createElement(b,null,wp.element.createElement(m,null,wp.element.createElement(s,null,wp.element.createElement(a,{label:u("Menu"),value:e.attributes.menuId,onChange:function(n){return e.setAttributes({menuId:+n})},options:n}),wp.element.createElement(a,{label:u("Configuration"),value:e.attributes.configId,onChange:function(n){return e.setAttributes({configId:n})},options:t}))),wp.element.createElement(c,{block:"ubermenu/ubermenu-block",attributes:e.attributes}))},save:function(){return null}})},function(e,n){},function(e,n){}]);