!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=6)}([function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.wp.components},function(e,t){e.exports=window.wp.richText},function(e,t){e.exports=window.wp.compose},function(e,t){e.exports=window.wp.blocks},function(e,t){e.exports=window.wp.blockEditor},function(e,t,r){"use strict";r.r(t);var n=r(0),o=r(1),c=r(3),i=function(){return Object(n.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 16.933 16.933"},Object(n.createElement)("g",{fill:"#00aee9",transform:"translate(-22.213 -238.799) scale(.93445)"},Object(n.createElement)("path",{d:"M24.549 257.815a.493.493 0 00-.495.494v12.602c0 .274.22.495.495.495h3.541c.274 0 .494-.22.494-.495v-.993a.493.493 0 00-.494-.494h-2.054v-9.627h2.054c.274 0 .494-.22.494-.494v-.994a.493.493 0 00-.494-.494H24.55z"}),Object(n.createElement)("rect",{ry:.515,transform:"matrix(1 0 -.2671 .96367 0 0)",y:265.478,x:104.75,height:18.217,width:2.464}),Object(n.createElement)("path",{d:"M37.573 257.815a.493.493 0 00-.494.494v.994c0 .273.22.494.494.494h2.054v9.627h-2.054a.493.493 0 00-.494.494v.993c0 .274.22.495.494.495h3.542c.274 0 .494-.22.494-.495V258.31a.493.493 0 00-.494-.494h-3.542z"})))},s=r(4);Object(s.registerBlockType)("shortcoder/shortcoder",{title:"Shortcoder",icon:i,category:"widgets",attributes:{text:{type:"string",source:"html"}},supports:{html:!1,customClassName:!1,className:!1},edit:function e(t){const{attributes:{text:r},setAttributes:i}=t,s=Object(c.useInstanceId)(e),a="shortcoder-input-"+s;return Object(n.createElement)("div",null,Object(n.createElement)(o.TextareaControl,{id:a,value:r,rows:"2",onChange:e=>{i({text:e})},placeholder:"Select/enter shortcode"}),Object(n.createElement)(o.Button,{isPrimary:!0,onClick:()=>{if(window.sc_show_insert){var e=document.getElementById("shortcoder-input-"+s).value;window.sc_show_insert(e,s)}}},"Select shortcode"))},save:function(e){const{attributes:{text:t}}=e;return Object(n.createElement)(n.RawHTML,null,t)}});var a=r(2),l=r(5);Object(a.registerFormatType)("shortcoder/inline-insert",{title:"Shortcoder",tagName:"[sc]",className:null,edit:e=>Object(n.createElement)(l.RichTextToolbarButton,{icon:i,title:"Shortcoder",onClick:()=>{window.sc_inline_insert_props={props:e,insert:a.insert},window.sc_show_insert&&sc_show_insert("",!1,!0)}})})}]);