!function(e){var t={};function a(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,a),r.l=!0,r.exports}a.m=e,a.c=t,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="/",a(a.s=0)}([function(e,t,a){e.exports=a(1)},function(e,t){var a=wp.i18n.__,n=wp.blocks.registerBlockType,r=wp.components.SelectControl;n("ninja-tables/guten-block",{title:a("Ninja Tables"),icon:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 321.98 249.25"},React.createElement("path",{class:"A",d:"M312.48 249.25H9.5a9.51 9.51 0 0 1-9.5-9.5V9.5A9.51 9.51 0 0 1 9.5 0h303a9.51 9.51 0 0 1 9.5 9.5v230.25a9.51 9.51 0 0 1-9.52 9.5zM9.5 7A2.53 2.53 0 0 0 7 9.5v230.25a2.53 2.53 0 0 0 2.5 2.5h303a2.53 2.53 0 0 0 2.5-2.5V9.5a2.53 2.53 0 0 0-2.5-2.5z"}),React.createElement("path",{class:"A",d:"M75 44.37h8.75v202.7H75z"}),React.createElement("path",{class:"B",d:"M129.37 44.37"}),React.createElement("path",{class:"C",d:"M249.37 44.37"}),React.createElement("path",{class:"A",d:"M6.16.5h309.66a6 6 0 0 1 6 6v43.8a.63.63 0 0 1-.63.63H.8a.63.63 0 0 1-.63-.63V6.5a6 6 0 0 1 6-6zM4.88 142.84h312.6v15.1H4.88zM22.47 90h28.27v16.97H22.47zm89.13 0h165.67v16.97H111.6zM22.47 190h28.27v16.97H22.47zm89.13 0h165.67v16.97H111.6z"})),category:"formatting",keywords:[a("Ninja Tables"),a("Gutenberg Block"),a("ninja-tables-gutenberg-block")],attributes:{tableId:{type:"string"}},edit:function(e){var t=e.attributes,n=e.setAttributes,l=window.ninja_tables_tiny_mce;return React.createElement("div",{className:"ninja-tables-guten-wrapper"},React.createElement("div",{className:"ninja-tables-logo"},React.createElement("img",{src:l.logo,alt:"ninja-tables-logo"})),React.createElement(r,{label:a("Select a Table"),value:t.tableId,options:l.tables.map(function(e){return{value:e.value,label:e.text}}),onChange:function(e){return n({tableId:e})}}))},save:function(e){return'[ninja_tables id="'+e.attributes.tableId+'"]'}})}]);