!function(){"use strict";var e={n:function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,{a:n}),n},d:function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},t=wp.blocks,n=wp.i18n,r=wp.blockEditor,o=wp.components,l=wp.serverSideRender,i=e.n(l),c=JSON.parse('{"$schema":"https://json.schemastore.org/block.json","apiVersion":3,"name":"copy-the-code/icon","title":"Copy to Clipboard Icon","attributes":{"content":{"type":"string","default":""},"alignment":{"type":"string","default":"left"}},"version":"1.0.0","category":"ctc-blocks","icon":"clipboard","description":"The Copy Icon block allows you to add a button to your page that will copy the text you specify to the clipboard.","textdomain":"copy-the-code"}');function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function b(e,t,n){var r;return r=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==a(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}(0,t.registerBlockType)(c.name,p(p({},c),{},{edit:function(e){var t=e.attributes,l=e.setAttributes,a=(e.clientId,t.content),u=t.alignment;return wp.element.createElement(React.Fragment,null,wp.element.createElement(i(),{block:c.name,attributes:t}),wp.element.createElement(r.InspectorControls,null,wp.element.createElement(o.PanelBody,{title:(0,n.__)("Copy Content")},wp.element.createElement("p",null,(0,n.__)("The hidden content that will be copied to the clipboard.")),wp.element.createElement(o.TextareaControl,{value:a,onChange:function(e){return l({content:e})}})),wp.element.createElement(o.PanelBody,{title:(0,n.__)("Alignment")},wp.element.createElement(o.SelectControl,{label:(0,n.__)("Horizontal Alignment"),value:u,options:[{label:"Left",value:"left"},{label:"Center",value:"center"},{label:"Right",value:"right"}],onChange:function(e){return l({alignment:e})}}))))}}))}();