(()=>{var e={942:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=l(e,a(n)))}return e}function a(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=l(t,n));return t}function l(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.wp.blocks,t=window.wp.element;var r=n(942),o=n.n(r);const a=window.wp.i18n,l=window.wp.blockEditor,s=window.wp.components;function i({attributes:e,setAttributes:n}){const{comment:r=""}=e;return(0,t.createElement)(l.InspectorControls,null,(0,t.createElement)(s.Panel,null,(0,t.createElement)(s.PanelBody,null,(0,t.createElement)(s.PanelRow,null,(0,t.createElement)(s.TextareaControl,{label:(0,a.__)("Comment","mailster"),help:(0,a.__)("Add a comment to help you understand your workflow","mailster"),rows:8,value:r.replace(/<br>/g,"\n"),onChange:e=>n({comment:e||void 0})})))))}const c=(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,t.createElement)("g",{fill:"none",stroke:"#323232",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"},(0,t.createElement)("path",{d:"M7 16.994H5a2 2 0 01-2-2v-10a2 2 0 012-2h14a2 2 0 012 2v10a2 2 0 01-2 2h-6.125l-4.21 3.745C8.02 21.313 7 20.855 7 19.992v-2.998z"}),(0,t.createElement)("path",{d:"M7 7.49L17 7.49"}),(0,t.createElement)("path",{d:"M7 11.99L14 11.99"})),(0,t.createElement)("path",{fill:"none",d:"M0-.006h24v24H0v-24z"})),m=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"mailster-workflow/comment","title":"Comment","category":"mailster-automation-fields","keywords":["comment"],"parent":["core/post-content","mailster-workflow/condition-yes","mailster-workflow/condition-no"],"description":"This is a comment block to better document your workflow. It has no effect on the workflow.","example":{"attributes":{"comment":"Code is Poetry"}},"supports":{"html":false,"className":false,"customClassName":false,"reusable":false},"attributes":{"comment":{"type":"string"}},"textdomain":"mailster","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css"}'),{name:u,...p}=m;(0,e.registerBlockType)(u,{...p,icon:c,__experimentalLabel:function(e,{context:t}){const{comment:n,content:r}=e;return n||r},edit:function(e){const{attributes:n,setAttributes:r,isSelected:s,clientId:c}=e,{comment:m=""}=n,u=(0,l.useBlockProps)({className:o()({},[])});return(0,t.createElement)(t.Fragment,null,(0,t.createElement)("div",u,(0,t.createElement)("div",{className:"mailster-comment"},(0,t.createElement)(l.RichText,{tagName:"blockquote",placeholder:(0,a.__)("Enter Comment","mailster"),allowedFormats:[],value:m.replace(/(\r\n|\r|\n)/g,"<br>"),onChange:e=>r({comment:e||void 0})})),(0,t.createElement)("div",{className:"end-stop canvas-handle"})),(0,t.createElement)(i,e))},save:()=>null})})()})();