(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{4:function(e,t,n){}}]),function(e){function t(t){for(var r,c,i=t[0],l=t[1],f=t[2],u=0,p=[];u<i.length;u++)c=i[u],Object.prototype.hasOwnProperty.call(o,c)&&o[c]&&p.push(o[c][0]),o[c]=0;for(r in l)Object.prototype.hasOwnProperty.call(l,r)&&(e[r]=l[r]);for(s&&s(t);p.length;)p.shift()();return a.push.apply(a,f||[]),n()}function n(){for(var e,t=0;t<a.length;t++){for(var n=a[t],r=!0,i=1;i<n.length;i++){var l=n[i];0!==o[l]&&(r=!1)}r&&(a.splice(t--,1),e=c(c.s=n[0]))}return e}var r={},o={0:0},a=[];function c(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,c),n.l=!0,n.exports}c.m=e,c.c=r,c.d=function(e,t,n){c.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},c.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.t=function(e,t){if(1&t&&(e=c(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(c.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)c.d(n,r,function(t){return e[t]}.bind(null,r));return n},c.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return c.d(t,"a",t),t},c.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},c.p="";var i=window.webpackJsonp=window.webpackJsonp||[],l=i.push.bind(i);i.push=t,i=i.slice();for(var f=0;f<i.length;f++)t(i[f]);var s=l;a.push([6,1]),n()}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.wp.blocks}()},function(e,t){!function(){e.exports=this.wp.components}()},,function(e,t,n){},function(e,t,n){"use strict";n.r(t);var r=n(2),o=n(1),a=(n(4),n(0)),c=n(3);n(5);var i=wp.element.createElement,l=i("svg",{width:20,height:20,viewBox:"0 0 288 288"},i("path",{d:"M35.8 0H251.8C271.7 0 287.8 16.1 287.8 36V252C287.8 271.9 271.7 288 251.8 288H35.8C15.9 288 -0.200012 271.9 -0.200012 252V36C-0.200012 16.1 15.9 0 35.8 0Z",fill:"#356AE6"}),i("path",{d:"M146.6 150.7C149.2 150.7 151.8 149.7 154.6 147.6C157.9 145.3 160.8 143.4 160.8 143.4L161.8 142.7L160.8 142C160.4 141.7 116.9 111.5 112.4 108.6C110.3 107.1 107.9 106.8 106 107.7C104.2 108.6 103.2 110.5 103.2 112.8V123.1L103.6 123.3C103.9 123.5 133.8 144.3 139.6 148.2C142 149.9 144.3 150.7 146.6 150.7Z",fill:"#ffffff"}),i("path",{d:"M204.9 132.6C202.3 130.7 109 65.6 105 62.8L103.7 61.9V77.9C103.7 83 106.4 84.9 109.7 87.3C109.7 87.3 181.3 137.2 190.2 143.3C181.3 149.5 113.9 196.2 109.6 198.9C104.5 202.3 104 204.5 104 209.1V226.3C104 226.3 202.7 155.7 204.8 154.1C209.3 150.7 210.3 146.7 210.4 143.8V142C210.5 138.4 208.6 135.2 204.9 132.6Z",fill:"#ffffff"}));Object(r.registerBlockType)("activecampaign-form/activecampaign-form-block",{title:Object(o.__)("ActiveCampaign Forms","activecampaign-form"),description:Object(o.__)("Embed ActiveCampaign forms into your page","activecampaign-form"),category:"embed",icon:l,supports:{html:!1},edit:function(e){var t=e.attributes,n=(e.className,e.setAttributes),r=t.settings_activecampaign.forms;if(!r)return Object(a.createElement)("p",null,"Please return to settings and select forms to store locally");var o=[];r=Object.values(r);for(var i=0;i<r.length;i++){var l=r[i];o.push({label:l.name,value:l.id})}t.formId||n({formId:r[0].id});var f=Object(a.createElement)(c.SelectControl,{className:"activecampaign-select-control",label:"Select a form:",value:t.formId,options:o,onChange:function(e){return n({formId:e})}});return Object(a.createElement)("div",{className:"wp-activecampaign-form-block"},Object(a.createElement)("p",{style:{align:"left"}},"Select an ActiveCampaign Form"),Object(a.createElement)("div",null,f))},save:function(e){var t=e.attributes,n=e.className;return t.formId?Object(a.createElement)("div",{className:n},"[activecampaign form="+t.formId+"]"):Object(a.createElement)("div",{className:n},"No form selected")}})}]);