Your IP : 3.145.172.24


Current Path : /home/church/www/launch100ar.com/wp-content/plugins/editor-blocks/dist/
Upload File :
Current File : /home/church/www/launch100ar.com/wp-content/plugins/editor-blocks/dist/blocks.build.js

!function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=12)}([function(e,t,n){function o(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}var r=n(20);e.exports=o},function(e,t,n){function o(e,t){if((e=l(e))<1||e>i)return[];var n=c,o=u(e,c);t=a(t),e-=c;for(var s=r(o,t);++n<e;)t(n);return s}var r=n(62),a=n(63),l=n(65),i=9007199254740991,c=4294967295,u=Math.min;e.exports=o},function(e,t,n){function o(e){return"symbol"==typeof e||a(e)&&r(e)==l}var r=n(10),a=n(27),l="[object Symbol]";e.exports=o},function(e,t,n){var o=n(11),r=o(Object,"create");e.exports=r},function(e,t,n){function o(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}var r=n(48);e.exports=o},function(e,t,n){function o(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}var r=n(54);e.exports=o},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var o=n(8),r=o.Symbol;e.exports=r},function(e,t,n){var o=n(23),r="object"==typeof self&&self&&self.Object===Object&&self,a=o||r||Function("return this")();e.exports=a},function(e,t){function n(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=n},function(e,t,n){function o(e){return null==e?void 0===e?c:i:u&&u in Object(e)?a(e):l(e)}var r=n(7),a=n(25),l=n(26),i="[object Null]",c="[object Undefined]",u=r?r.toStringTag:void 0;e.exports=o},function(e,t,n){function o(e,t){var n=a(e,t);return r(n)?n:void 0}var r=n(35),a=n(40);e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n(13),n(16),n(68),n(72),n(76),n(80),n(84),n(88),n(92),n(96),n(100),n(104)},function(e,t,n){"use strict";var o=n(14),r=(n.n(o),n(15)),a=wp.i18n.__;(0,wp.blocks.registerBlockType)("editor-blocks/author-profile",{title:a("Author Profile (EB)","editor-blocks"),description:a("Display a WordPress user\u2019s profile dynamically using this block.","editor-blocks"),category:"editor-blocks",icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M9 11.75c-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25 1.25-.56 1.25-1.25-.56-1.25-1.25-1.25zm6 0c-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25 1.25-.56 1.25-1.25-.56-1.25-1.25-1.25zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8 0-.29.02-.58.05-.86 2.36-1.05 4.23-2.98 5.21-5.37C11.07 8.33 14.05 10 17.42 10c.78 0 1.53-.09 2.25-.26.21.71.33 1.47.33 2.26 0 4.41-3.59 8-8 8z"}),wp.element.createElement("path",{fill:"none",d:"M0 0h24v24H0z"})),keywords:[a("Author Profile","editor-blocks"),a("User","editor-blocks")],edit:r.a,save:function(){return null}})},function(e,t){},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=wp.element,c=i.Component,u=i.Fragment,s=wp.i18n.__,m=wp.components,p=m.SelectControl,d=m.PanelBody,g=wp.editor.InspectorControls,b=wp.data.withSelect,f=function(e){function t(){return o(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),l(t,[{key:"getAuthorsForSelect",value:function(){return this.props.authors.map(function(e){return{label:e.name,value:e.id}})}},{key:"render",value:function(){function e(e){return parseInt(e.id)===parseInt(a)}var t=this.props,n=t.attributes,o=t.setAttributes,r=t.authors,a=n.authorID,l=this.getAuthorsForSelect();l.push({label:"- Select User -",value:0}),l.sort(function(e,t){return e.value-t.value});var i=wp.element.createElement(g,null,wp.element.createElement(d,{title:s("Author Profile Settings","editor-blocks")},wp.element.createElement(p,{label:s("Author ID","editor-blocks"),type:"number",value:a,options:l,onChange:function(e){return o({authorID:e})}}))),c=r.find(e);return wp.element.createElement(u,null,i,0===parseInt(a)?wp.element.createElement(p,{label:s("Author ID","editor-blocks"),type:"number",value:a,options:l,onChange:function(e){return o({authorID:e})}}):wp.element.createElement("div",{className:"author-profile"},wp.element.createElement("div",{className:"author-profile__image"},wp.element.createElement("img",{alt:c&&c.name,src:c&&c.avatar_urls[96]})),wp.element.createElement("div",{className:"author-profile__content"},wp.element.createElement("h3",{className:"author-profile__name"},c&&c.name||"Select a user."),wp.element.createElement("p",{className:"author-profile__description"},c&&c.description))))}}]),t}(c);t.a=b(function(e){return{authors:e("core").getAuthors()}})(f)},function(e,t,n){"use strict";function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var r=n(17),a=(n.n(r),n(18)),l=(n.n(a),n(19)),i=n(0),c=n.n(i),u=n(1),s=n.n(u),m=wp.i18n.__,p=wp.element.Fragment,d=wp.blocks.registerBlockType,g=wp.editor.MediaUpload,b=wp.components,f=b.Button,h=b.Dashicon;d("editor-blocks/brands",{title:m("Brands (EB)","editor-blocks"),description:m("Display a collection of logos in a row. Perfect for highlighting your partners or clients.","editor-blocks"),icon:"awards",category:"editor-blocks",keywords:[m("Brands","editor-blocks"),m("Editor Blocks","editor-blocks"),m("Logos","editor-blocks")],attributes:{brands:{type:"array",selector:".brand",source:"query",query:{image:{source:"attribute",attribute:"src",selector:".brand__image"}},default:[]},count:{type:"number",default:4}},edit:function(e){function t(e,t){var a=n.brands,l=a.slice();l[t]=Object.assign({},a[t]),l[t].image=e.url,r({brands:[].concat(o(l))})}var n=e.attributes,r=e.setAttributes,a=e.className,i=a+" col-"+n.count;return wp.element.createElement(p,null,wp.element.createElement(l.a,e),wp.element.createElement("div",{className:i},s()(n.count,function(e){var o=c()(n.brands,[e,"image"]),r="brand brand-"+e;return wp.element.createElement("div",{className:r,key:"brand-"+e},wp.element.createElement(g,{onSelect:function(n){return t(n,e)},type:"image",value:o,render:function(e){var t=e.open;return wp.element.createElement(f,{onClick:t},o?wp.element.createElement("img",{className:"brand__image",src:o,alt:"Brand"}):wp.element.createElement("div",{className:"no-image"},wp.element.createElement(h,{icon:"format-image"})))}}))})))},save:function(e){var t=e.attributes,n="col-"+t.count;return wp.element.createElement("div",{className:n},s()(t.count,function(e){var n=c()(t.brands,[e,"image"]),o="brand brand-"+e;return wp.element.createElement("div",{className:o,key:"brand-"+e},n&&wp.element.createElement("img",{className:"brand__image",src:n,alt:"Brand Image"}))}))}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=wp.i18n.__,c=wp.element.Component,u=wp.editor.InspectorControls,s=wp.components,m=s.PanelBody,p=s.RangeControl,d=function(e){function t(){return o(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),l(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes;return wp.element.createElement(u,{key:"inspector"},wp.element.createElement(m,{initialOpen:!0,title:i("Brands Settings","editor-blocks")},wp.element.createElement(p,{label:i("Brands","editor-blocks"),value:t.count,onChange:function(e){return n({count:e})},min:2,max:6})))}}]),t}(c);t.a=d},function(e,t,n){function o(e,t){t=r(t,e);for(var n=0,o=t.length;null!=e&&n<o;)e=e[a(t[n++])];return n&&n==o?e:void 0}var r=n(21),a=n(61);e.exports=o},function(e,t,n){function o(e,t){return r(e)?e:a(e,t)?[e]:l(i(e))}var r=n(6),a=n(22),l=n(28),i=n(58);e.exports=o},function(e,t,n){function o(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!a(e))||(i.test(e)||!l.test(e)||null!=t&&e in Object(t))}var r=n(6),a=n(2),l=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;e.exports=o},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(t,n(24))},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"===typeof window&&(n=window)}e.exports=n},function(e,t,n){function o(e){var t=l.call(e,c),n=e[c];try{e[c]=void 0;var o=!0}catch(e){}var r=i.call(e);return o&&(t?e[c]=n:delete e[c]),r}var r=n(7),a=Object.prototype,l=a.hasOwnProperty,i=a.toString,c=r?r.toStringTag:void 0;e.exports=o},function(e,t){function n(e){return r.call(e)}var o=Object.prototype,r=o.toString;e.exports=n},function(e,t){function n(e){return null!=e&&"object"==typeof e}e.exports=n},function(e,t,n){var o=n(29),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,l=o(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(r,function(e,n,o,r){t.push(o?r.replace(a,"$1"):n||e)}),t});e.exports=l},function(e,t,n){function o(e){var t=r(e,function(e){return n.size===a&&n.clear(),e}),n=t.cache;return t}var r=n(30),a=500;e.exports=o},function(e,t,n){function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(a);var n=function(){var o=arguments,r=t?t.apply(this,o):o[0],a=n.cache;if(a.has(r))return a.get(r);var l=e.apply(this,o);return n.cache=a.set(r,l)||a,l};return n.cache=new(o.Cache||r),n}var r=n(31),a="Expected a function";o.Cache=r,e.exports=o},function(e,t,n){function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}var r=n(32),a=n(53),l=n(55),i=n(56),c=n(57);o.prototype.clear=r,o.prototype.delete=a,o.prototype.get=l,o.prototype.has=i,o.prototype.set=c,e.exports=o},function(e,t,n){function o(){this.size=0,this.__data__={hash:new r,map:new(l||a),string:new r}}var r=n(33),a=n(45),l=n(52);e.exports=o},function(e,t,n){function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}var r=n(34),a=n(41),l=n(42),i=n(43),c=n(44);o.prototype.clear=r,o.prototype.delete=a,o.prototype.get=l,o.prototype.has=i,o.prototype.set=c,e.exports=o},function(e,t,n){function o(){this.__data__=r?r(null):{},this.size=0}var r=n(3);e.exports=o},function(e,t,n){function o(e){return!(!l(e)||a(e))&&(r(e)?g:u).test(i(e))}var r=n(36),a=n(37),l=n(9),i=n(39),c=/[\\^$.*+?()[\]{}|]/g,u=/^\[object .+?Constructor\]$/,s=Function.prototype,m=Object.prototype,p=s.toString,d=m.hasOwnProperty,g=RegExp("^"+p.call(d).replace(c,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=o},function(e,t,n){function o(e){if(!a(e))return!1;var t=r(e);return t==i||t==c||t==l||t==u}var r=n(10),a=n(9),l="[object AsyncFunction]",i="[object Function]",c="[object GeneratorFunction]",u="[object Proxy]";e.exports=o},function(e,t,n){function o(e){return!!a&&a in e}var r=n(38),a=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=o},function(e,t,n){var o=n(8),r=o["__core-js_shared__"];e.exports=r},function(e,t){function n(e){if(null!=e){try{return r.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var o=Function.prototype,r=o.toString;e.exports=n},function(e,t){function n(e,t){return null==e?void 0:e[t]}e.exports=n},function(e,t){function n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}e.exports=n},function(e,t,n){function o(e){var t=this.__data__;if(r){var n=t[e];return n===a?void 0:n}return i.call(t,e)?t[e]:void 0}var r=n(3),a="__lodash_hash_undefined__",l=Object.prototype,i=l.hasOwnProperty;e.exports=o},function(e,t,n){function o(e){var t=this.__data__;return r?void 0!==t[e]:l.call(t,e)}var r=n(3),a=Object.prototype,l=a.hasOwnProperty;e.exports=o},function(e,t,n){function o(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?a:t,this}var r=n(3),a="__lodash_hash_undefined__";e.exports=o},function(e,t,n){function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}var r=n(46),a=n(47),l=n(49),i=n(50),c=n(51);o.prototype.clear=r,o.prototype.delete=a,o.prototype.get=l,o.prototype.has=i,o.prototype.set=c,e.exports=o},function(e,t){function n(){this.__data__=[],this.size=0}e.exports=n},function(e,t,n){function o(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():l.call(t,n,1),--this.size,!0)}var r=n(4),a=Array.prototype,l=a.splice;e.exports=o},function(e,t){function n(e,t){return e===t||e!==e&&t!==t}e.exports=n},function(e,t,n){function o(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}var r=n(4);e.exports=o},function(e,t,n){function o(e){return r(this.__data__,e)>-1}var r=n(4);e.exports=o},function(e,t,n){function o(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}var r=n(4);e.exports=o},function(e,t,n){var o=n(11),r=n(8),a=o(r,"Map");e.exports=a},function(e,t,n){function o(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}var r=n(5);e.exports=o},function(e,t){function n(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}e.exports=n},function(e,t,n){function o(e){return r(this,e).get(e)}var r=n(5);e.exports=o},function(e,t,n){function o(e){return r(this,e).has(e)}var r=n(5);e.exports=o},function(e,t,n){function o(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}var r=n(5);e.exports=o},function(e,t,n){function o(e){return null==e?"":r(e)}var r=n(59);e.exports=o},function(e,t,n){function o(e){if("string"==typeof e)return e;if(l(e))return a(e,o)+"";if(i(e))return s?s.call(e):"";var t=e+"";return"0"==t&&1/e==-c?"-0":t}var r=n(7),a=n(60),l=n(6),i=n(2),c=1/0,u=r?r.prototype:void 0,s=u?u.toString:void 0;e.exports=o},function(e,t){function n(e,t){for(var n=-1,o=null==e?0:e.length,r=Array(o);++n<o;)r[n]=t(e[n],n,e);return r}e.exports=n},function(e,t,n){function o(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-a?"-0":t}var r=n(2),a=1/0;e.exports=o},function(e,t){function n(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o}e.exports=n},function(e,t,n){function o(e){return"function"==typeof e?e:r}var r=n(64);e.exports=o},function(e,t){function n(e){return e}e.exports=n},function(e,t,n){function o(e){var t=r(e),n=t%1;return t===t?n?t-n:t:0}var r=n(66);e.exports=o},function(e,t,n){function o(e){if(!e)return 0===e?e:0;if((e=r(e))===a||e===-a){return(e<0?-1:1)*l}return e===e?e:0}var r=n(67),a=1/0,l=1.7976931348623157e308;e.exports=o},function(e,t,n){function o(e){if("number"==typeof e)return e;if(a(e))return l;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=u.test(e);return n||s.test(e)?m(e.slice(2),n?2:8):c.test(e)?l:+e}var r=n(9),a=n(2),l=NaN,i=/^\s+|\s+$/g,c=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,s=/^0o[0-7]+$/i,m=parseInt;e.exports=o},function(e,t,n){"use strict";var o=n(69),r=(n.n(o),n(70)),a=(n.n(r),n(71)),l=wp.i18n.__,i=wp.element.Fragment,c=wp.blocks.registerBlockType,u=wp.editor.RichText;c("editor-blocks/callout",{title:l("Callout (EB)","editor-blocks"),description:l("Draw your visitors attention to your high-value pages or newsletter using an inline callout.","editor-blocks"),category:"editor-blocks",icon:"megaphone",keywords:[l("Callout","editor-blocks"),l("Button","editor-blocks"),l("Subheading","editor-blocks")],attributes:{heading:{source:"children",selector:"h2"},headingColor:{type:"string"},headingSize:{type:"number"},buttonText:{type:"string",default:l("Click Here","editor-blocks")},buttonURL:{type:"string",default:""},buttonColor:{type:"string",default:"#ffffff"},buttonBackgroundColor:{type:"string",default:"#bc0d0d"}},edit:function(e){var t=e.attributes,n=e.setAttributes,o=e.className;return wp.element.createElement(i,null,wp.element.createElement(a.a,e),wp.element.createElement("div",{className:o},wp.element.createElement("div",{className:"button-container"},wp.element.createElement("a",{style:{backgroundColor:t.buttonBackgroundColor,color:t.buttonColor},className:"callout__button",href:"#"},t.buttonText," ")),wp.element.createElement(u,{value:t.heading,onChange:function(e){return n({heading:e})},tagName:"h2",placeholder:l("Callout Text","editor-blocks"),keepPlaceholderOnFocus:!0,style:{color:t.headingColor,fontSize:t.headingSize&&t.headingSize+"px"},className:"callout__text"})))},save:function(e){var t=e.attributes,n=e.className;return wp.element.createElement("div",{className:n},wp.element.createElement("div",{className:"button-container"},wp.element.createElement("a",{style:{backgroundColor:t.buttonBackgroundColor,color:t.buttonColor},className:"callout__button",href:t.buttonURL},t.buttonText)),wp.element.createElement(u.Content,{tagName:"h2",style:{color:t.headingColor,fontSize:t.headingSize&&t.headingSize+"px"},value:t.heading,className:"callout__text"}))}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=wp.i18n.__,c=wp.element.Component,u=wp.editor,s=u.InspectorControls,m=u.PanelColorSettings,p=wp.components,d=p.PanelBody,g=p.TextControl,b=p.RangeControl,f=function(e){function t(){return o(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),l(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes;return wp.element.createElement(s,null,wp.element.createElement(d,{initialOpen:!0,title:i("Callout Settings","editor-blocks")},wp.element.createElement(b,{label:i("Font Size","editor-blocks"),value:t.headingSize,onChange:function(e){return n({headingSize:e})},min:2,max:100})),wp.element.createElement(d,{initialOpen:!0,title:i("Button Settings","editor-blocks")},wp.element.createElement(g,{label:i("Button Text","editor-blocks"),value:t.buttonText,onChange:function(e){return n({buttonText:e})}}),wp.element.createElement(g,{label:i("Button URL","editor-blocks"),value:t.buttonURL,onChange:function(e){return n({buttonURL:e})}})),wp.element.createElement(m,{title:i("Color Settings","editor-blocks"),colorSettings:[{value:t.headingColor,onChange:function(e){return n({headingColor:e})},label:i("Text Color","editor-blocks")},{value:t.buttonColor,onChange:function(e){return n({buttonColor:e})},label:i("Button Text Color","editor-blocks")},{value:t.buttonBackgroundColor,onChange:function(e){return n({buttonBackgroundColor:e})},label:i("Button Background Color","editor-blocks")}]}))}}]),t}(c);t.a=f},function(e,t,n){"use strict";function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var r=n(73),a=(n.n(r),n(74)),l=(n.n(a),n(75)),i=n(0),c=n.n(i),u=n(1),s=n.n(u),m=wp.i18n.__,p=wp.element.Fragment,d=wp.blocks.registerBlockType,g=wp.editor,b=g.MediaUpload,f=g.RichText,h=g.BlockControls,w=g.AlignmentToolbar,y=wp.components,v=y.Button,k=y.Dashicon;d("editor-blocks/features",{title:m("Features (EB)","editor-blocks"),description:m("Display an organised feature list in columns. Accompany each feature with an image or icon.","editor-blocks"),icon:"editor-ul",category:"editor-blocks",keywords:[m("Features","editor-blocks"),m("Editor Blocks","editor-blocks"),m("EB","editor-blocks")],attributes:{features:{type:"array",selector:".feature",source:"query",query:{image:{source:"attribute",selector:".feature__image",attribute:"src"},heading:{source:"children",selector:".feature__heading"},text:{source:"children",selector:".feature__text"}},default:[]},count:{type:"number",default:3},alignment:{type:"string"},headingColor:{type:"string"},textColor:{type:"string"}},edit:function(e){function t(e,t,n){var l=r.features,i=l.slice();i[t]=Object.assign({},l[t]),i[t][n]=e,a({features:[].concat(o(i))})}function n(e,t){var n=r.features,l=n.slice();l[t]=Object.assign({},n[t]),l[t].image=e.url,a({features:[].concat(o(l))})}var r=e.attributes,a=e.setAttributes,i=e.className,u=i+" col-"+r.count;return wp.element.createElement(p,null,wp.element.createElement(l.a,e),wp.element.createElement(h,{key:"controls"},wp.element.createElement(w,{value:r.alignment,onChange:function(e){return a({alignment:e})}})),wp.element.createElement("div",{style:{textAlign:r.alignment},className:u},s()(r.count,function(e){var o=c()(r.features,[e,"image"]),a="feature feature-"+e;return wp.element.createElement("div",{className:a,key:"feature-"+e},wp.element.createElement(b,{onSelect:function(t){return n(t,e)},type:"image",value:o,render:function(e){var t=e.open;return wp.element.createElement(v,{onClick:t},o?wp.element.createElement("img",{className:"feature__image",src:o,alt:m("Feature","editor-blocks")}):wp.element.createElement("div",{className:"no-image"},wp.element.createElement(k,{icon:"format-image"})))}}),wp.element.createElement(f,{value:c()(r.features,[e,"heading"]),onChange:function(n){return t(n,e,"heading")},tagName:"h3",placeholder:m("Feature Heading","editor-blocks"),keepPlaceholderOnFocus:!0,style:{color:r.headingColor},className:"feature__heading"}),wp.element.createElement(f,{value:c()(r.features,[e,"text"]),onChange:function(n){return t(n,e,"text")},tagName:"p",placeholder:m("Feature Description","editor-blocks"),keepPlaceholderOnFocus:!0,style:{color:r.textColor},className:"feature__text"}))})))},save:function(e){var t=e.attributes,n="col-"+t.count;return wp.element.createElement("div",{className:n,style:{textAlign:t.alignment}},s()(t.count,function(e){var n=c()(t.features,[e,"image"]),o="feature feature-"+e;return wp.element.createElement("div",{className:o,key:"feature-"+e},n&&wp.element.createElement("img",{className:"feature__image",src:n,alt:"Feature Image"}),wp.element.createElement(f.Content,{tagName:"h3",style:{color:t.headingColor},value:c()(t.features,[e,"heading"]),className:"feature__heading"}),wp.element.createElement(f.Content,{tagName:"p",style:{color:t.textColor},value:c()(t.features,[e,"text"]),className:"feature__text"}))}))}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=wp.i18n.__,c=wp.element.Component,u=wp.editor,s=u.InspectorControls,m=u.PanelColorSettings,p=wp.components,d=p.PanelBody,g=p.RangeControl,b=function(e){function t(){return o(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),l(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes;return wp.element.createElement(s,{key:"inspector"},wp.element.createElement(d,{initialOpen:!0,title:i("Feature Settings","editor-blocks")},wp.element.createElement(g,{label:i("Columns","editor-blocks"),value:t.count,onChange:function(e){return n({count:e})},min:2,max:6})),wp.element.createElement(m,{title:i("Color Settings","editor-blocks"),colorSettings:[{value:t.headingColor,onChange:function(e){return n({headingColor:e})},label:i("Heading Color","editor-blocks")},{value:t.textColor,onChange:function(e){return n({textColor:e})},label:i("Text Color","editor-blocks")}]}))}}]),t}(c);t.a=b},function(e,t,n){"use strict";var o=n(77),r=(n.n(o),n(78)),a=(n.n(r),n(79)),l=wp.i18n.__,i=wp.element.Fragment,c=wp.blocks.registerBlockType,u=wp.editor,s=u.RichText,m=u.BlockControls,p=u.AlignmentToolbar;c("editor-blocks/hero",{title:l("Hero (EB)","editor-blocks"),description:l("Pair this block with the wrapper block to create stunning hero areas.","editor-blocks"),category:"editor-blocks",icon:"format-image",keywords:[l("Hero","editor-blocks"),l("Editor Blocks","editor-blocks"),l("EB","editor-blocks")],attributes:{heading:{source:"children",selector:".hero__heading"},text:{source:"children",selector:".hero__text"},alignment:{type:"string"},position:{type:"string",default:"left"},width:{type:"number",default:500},headingColor:{type:"string"},textColor:{type:"string"},buttonColor:{type:"string",default:"#ffffff"},showButton:{type:"bool",default:!0},buttonBackgroundColor:{type:"string",default:"#bc0d0d"},buttonText:{type:"string",default:l("Click Here","editor-blocks")},buttonURL:{type:"string",default:""}},edit:function(e){var t=e.attributes,n=e.setAttributes,o=e.className,r={textAlign:t.alignment,maxWidth:t.width+"px"};return wp.element.createElement(i,null,wp.element.createElement(a.a,e),wp.element.createElement(m,{key:"controls"},wp.element.createElement(p,{value:t.alignment,onChange:function(e){return n({alignment:e})}})),wp.element.createElement("div",{className:o+" "+t.position},wp.element.createElement("div",{className:"inner",style:r},wp.element.createElement(s,{value:t.heading,onChange:function(e){return n({heading:e})},tagName:"h2",placeholder:l("Hero Heading","editor-blocks"),formattingControls:[],keepPlaceholderOnFocus:!0,style:{color:t.headingColor},className:"hero__heading"}),wp.element.createElement(s,{value:t.text,onChange:function(e){return n({text:e})},tagName:"p",placeholder:l("Hero Text","editor-blocks"),formattingControls:[],keepPlaceholderOnFocus:!0,style:{color:t.textColor},className:"hero__text"}),t.showButton&&wp.element.createElement("div",{className:"button-container"},wp.element.createElement("a",{style:{backgroundColor:t.buttonBackgroundColor,color:t.buttonColor},className:"hero__button",href:"#"},t.buttonText)))))},save:function(e){var t=e.attributes,n={textAlign:t.alignment,maxWidth:t.width+"px"};return wp.element.createElement("div",{className:t.position},wp.element.createElement("div",{className:"inner",style:n},wp.element.createElement(s.Content,{tagName:"h2",style:{color:t.headingColor},value:t.heading,className:"hero__heading"}),wp.element.createElement(s.Content,{tagName:"p",style:{color:t.textColor},value:t.text,className:"hero__text"}),t.showButton&&wp.element.createElement("div",{className:"button-container"},wp.element.createElement("a",{style:{backgroundColor:t.buttonBackgroundColor,color:t.buttonColor},className:"hero__button",href:t.buttonURL},t.buttonText))))}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=wp.i18n.__,c=wp.element,u=c.Component,s=c.Fragment,m=wp.editor,p=m.InspectorControls,d=m.PanelColorSettings,g=wp.components,b=g.PanelBody,f=g.TextControl,h=g.SelectControl,w=g.RangeControl,y=g.ToggleControl,v=function(e){function t(){return o(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),l(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes;return wp.element.createElement(p,{key:"inspector"},wp.element.createElement(b,{initialOpen:!0,title:i("Positioning","editor-blocks")},wp.element.createElement(w,{label:i("Width (px)","editor-blocks"),value:t.width,onChange:function(e){return n({width:e})},min:0,max:1e3}),wp.element.createElement(h,{label:i("Position","editor-blocks"),value:t.position,onChange:function(e){return n({position:e})},options:[{value:"left",label:i("Left","editor-blocks")},{value:"center",label:i("Center","editor-blocks")},{value:"right",label:i("Right","editor-blocks")}]})),wp.element.createElement(d,{title:i("Color Settings","editor-blocks"),colorSettings:[{value:t.headingColor,onChange:function(e){return n({headingColor:e})},label:i("Heading Color","editor-blocks")},{value:t.textColor,onChange:function(e){return n({textColor:e})},label:i("Text Color","editor-blocks")}]}),wp.element.createElement(b,{initialOpen:!1,title:i("Button Settings","editor-blocks")},wp.element.createElement(y,{label:i("Show Button","editor-blocks"),checked:!!t.showButton,help:function(e){return e?i("Button is visible.","editor-blocks"):i("Button is not visible.","editor-blocks")},onChange:function(e){return n({showButton:e})}}),t.showButton&&wp.element.createElement(s,null,wp.element.createElement(f,{label:i("Button Text","editor-blocks"),value:t.buttonText,onChange:function(e){return n({buttonText:e})}}),wp.element.createElement(f,{label:i("Button URL","editor-blocks"),value:t.buttonURL,onChange:function(e){return n({buttonURL:e})}}))),wp.element.createElement(d,{title:i("Button Color Settings","editor-blocks"),initialOpen:!1,colorSettings:[{value:t.buttonColor,onChange:function(e){return n({buttonColor:e})},label:i("Button Text Color","editor-blocks"),initialOpen:!1},{value:t.buttonBackgroundColor,onChange:function(e){return n({buttonBackgroundColor:e})},label:i("Button Background Color","editor-blocks")}]}))}}]),t}(u);t.a=v},function(e,t,n){"use strict";var o=n(81),r=(n.n(o),n(82)),a=(n.n(r),n(83)),l=wp.i18n.__,i=wp.element.Fragment,c=wp.blocks.registerBlockType,u=wp.editor,s=u.RichText,m=u.BlockControls,p=u.AlignmentToolbar,d=u.MediaUpload,g=wp.components,b=g.Button,f=g.Dashicon;c("editor-blocks/horizontal-feature",{title:l("Horizontal Feature (EB)","editor-blocks"),description:l("Highlight a key feature of your product or service using this horizontal display.","editor-blocks"),category:"editor-blocks",icon:"arrow-right-alt",keywords:[l("Feature","editor-blocks"),l("Editor Blocks","editor-blocks"),l("Feature","editor-blocks")],attributes:{image:{type:"string",source:"attribute",attribute:"src",selector:"img"},heading:{source:"children",selector:".horizontal-feature__heading"},subHeading:{source:"children",selector:".horizontal-feature__subheading"},text:{source:"children",selector:".horizontal-feature__text"},alignment:{type:"string",default:"left"},contentWidth:{type:"number",default:50},contentPaddingTop:{type:"number",default:0},imageWidth:{type:"number",default:50},imagePosition:{type:"string",default:"right"},imagePaddingTop:{type:"number",default:0},headingColor:{type:"string"},subHeadingColor:{type:"string"},textColor:{type:"string"},buttonColor:{type:"string",default:"#ffffff"},showButton:{type:"bool",default:!0},buttonBackgroundColor:{type:"string",default:"#bc0d0d"},buttonText:{type:"string",default:l("Click Here","editor-blocks")},buttonURL:{type:"string",default:""}},edit:function(e){var t=e.attributes,n=e.setAttributes,o=e.className,r={width:t.contentWidth+"%",paddingTop:0!==t.contentPaddingTop?t.contentPaddingTop+"px":null,textAlign:t.alignment},c={width:t.imageWidth+"%",paddingTop:0!==t.imagePaddingTop?t.imagePaddingTop+"px":null};return wp.element.createElement(i,null,wp.element.createElement(a.a,e),wp.element.createElement(m,{key:"controls"},wp.element.createElement(p,{value:t.alignment,onChange:function(e){return n({alignment:e})}})),wp.element.createElement("div",{className:o+" image-position-"+t.imagePosition},wp.element.createElement("div",{className:"horizontal-feature-content-wrapper",style:r},wp.element.createElement(s,{value:t.heading,onChange:function(e){return n({heading:e})},tagName:"h2",placeholder:l("Heading","editor-blocks"),formattingControls:[],keepPlaceholderOnFocus:!0,style:{color:t.headingColor},className:"horizontal-feature__heading"}),wp.element.createElement(s,{value:t.subHeading,onChange:function(e){return n({subHeading:e})},tagName:"p",placeholder:l("Sub Heading","editor-blocks"),formattingControls:[],keepPlaceholderOnFocus:!0,style:{color:t.subHeadingColor},className:"horizontal-feature__subheading"}),wp.element.createElement(s,{value:t.text,onChange:function(e){return n({text:e})},tagName:"p",placeholder:l("Description","editor-blocks"),keepPlaceholderOnFocus:!0,style:{color:t.textColor},className:"horizontal-feature__text"}),t.showButton&&wp.element.createElement("div",{className:"button-container"},wp.element.createElement("a",{style:{backgroundColor:t.buttonBackgroundColor,color:t.buttonColor},className:"horizontal-feature__button",href:"#"},t.buttonText))),wp.element.createElement("div",{className:"horizontal-feature-image-wrapper",style:c},wp.element.createElement(d,{onSelect:function(e){return n({image:e.url})},type:"image",value:t.image,render:function(e){var n=e.open;return wp.element.createElement(b,{onClick:n},t.image?wp.element.createElement("img",{className:o+"-image",src:t.image,alt:l("Feature","editor-blocks")}):wp.element.createElement("div",{className:"no-image"},wp.element.createElement(f,{icon:"format-image"})))}}))))},save:function(e){var t=e.attributes,n={width:t.contentWidth+"%",paddingTop:0!==t.contentPaddingTop?t.contentPaddingTop+"px":null,textAlign:t.alignment},o={width:t.imageWidth+"%",paddingTop:0!==t.imagePaddingTop?t.imagePaddingTop+"px":null};return wp.element.createElement("div",{className:"image-position-"+t.imagePosition},wp.element.createElement("div",{className:"horizontal-feature-content-wrapper",style:n},wp.element.createElement(s.Content,{tagName:"h2",className:"horizontal-feature__heading",style:{color:t.headingColor},value:t.heading}),wp.element.createElement(s.Content,{tagName:"p",className:"horizontal-feature__subheading",style:{color:t.subHeadingColor},value:t.subHeading}),wp.element.createElement(s.Content,{tagName:"p",className:"horizontal-feature__text",style:{color:t.textColor},value:t.text}),t.showButton&&wp.element.createElement("div",{className:"button-container"},wp.element.createElement("a",{style:{backgroundColor:t.buttonBackgroundColor,color:t.buttonColor},className:"horizontal-feature__button",href:t.buttonURL},t.buttonText))),wp.element.createElement("div",{className:"horizontal-feature-image-wrapper",style:o},wp.element.createElement("img",{className:"horizontal-feature__image",src:t.image})))}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=wp.i18n.__,c=wp.element,u=c.Component,s=c.Fragment,m=wp.editor,p=m.InspectorControls,d=m.PanelColorSettings,g=wp.components,b=g.PanelBody,f=g.TextControl,h=g.SelectControl,w=g.RangeControl,y=g.ToggleControl,v=function(e){function t(){return o(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),l(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes;return wp.element.createElement(p,{key:"inspector"},wp.element.createElement(b,{initialOpen:!0,title:i("Layout Settings","editor-blocks")},wp.element.createElement(h,{label:i("Image Position","editor-blocks"),value:t.imagePosition,onChange:function(e){return n({imagePosition:e})},options:[{value:"left",label:i("Left","editor-blocks")},{value:"right",label:i("Right","editor-blocks")}]})),wp.element.createElement(b,{initialOpen:!1,title:i("Content Settings","editor-blocks")},wp.element.createElement(w,{label:i("Content Width (%)","editor-blocks"),value:t.contentWidth,onChange:function(e){return n({contentWidth:e})},min:0,max:100}),wp.element.createElement(w,{label:i("Content Padding Top (px)","editor-blocks"),value:t.contentPaddingTop,onChange:function(e){return n({contentPaddingTop:e})},min:0,max:200}),wp.element.createElement(w,{label:i("Content Padding Bottom (px)","editor-blocks"),value:t.contentPaddingBottom,onChange:function(e){return n({contentPaddingBottom:e})},min:0,max:200})),wp.element.createElement(b,{initialOpen:!1,title:i("Image Settings","editor-blocks")},wp.element.createElement(w,{label:i("Image Width (%)","editor-blocks"),value:t.imageWidth,onChange:function(e){return n({imageWidth:e})},min:0,max:100}),wp.element.createElement(w,{label:i("Image Padding Top (px)","editor-blocks"),value:t.imagePaddingTop,onChange:function(e){return n({imagePaddingTop:e})},min:0,max:200}),wp.element.createElement(w,{label:i("Image Padding Bottom (px)","editor-blocks"),value:t.imagePaddingBottom,onChange:function(e){return n({imagePaddingBottom:e})},min:0,max:200})),wp.element.createElement(b,{initialOpen:!1,title:i("Button Settings","editor-blocks")},wp.element.createElement(y,{label:i("Show Button","editor-blocks"),checked:!!t.showButton,help:function(e){return e?i("Button is visible.","editor-blocks"):i("Button is not visible.","editor-blocks")},onChange:function(e){return n({showButton:e})}}),t.showButton&&wp.element.createElement(s,null,wp.element.createElement(f,{label:i("Button Text","editor-blocks"),value:t.buttonText,onChange:function(e){return n({buttonText:e})}}),wp.element.createElement(f,{label:i("Button URL","editor-blocks"),value:t.buttonURL,onChange:function(e){return n({buttonURL:e})}}))),wp.element.createElement(d,{title:i("Color Settings","editor-blocks"),initialOpen:!1,colorSettings:[{value:t.headingColor,onChange:function(e){return n({headingColor:e})},label:i("Heading Color","editor-blocks")},{value:t.subHeadingColor,onChange:function(e){return n({subHeadingColor:e})},label:i("Sub Heading Color","editor-blocks")},{value:t.textColor,onChange:function(e){return n({textColor:e})},label:i("Text Color","editor-blocks")},{value:t.buttonColor,onChange:function(e){return n({buttonColor:e})},label:i("Button Color","editor-blocks")},{value:t.buttonBackgroundColor,onChange:function(e){return n({buttonBackgroundColor:e})},label:i("Button Background Color","editor-blocks")}]}))}}]),t}(u);t.a=v},function(e,t,n){"use strict";var o=n(85),r=(n.n(o),n(86)),a=(n.n(r),n(87)),l=wp.i18n.__,i=wp.blocks.registerBlockType,c=wp.element.Fragment,u=wp.editor,s=u.RichText,m=u.BlockControls,p=u.AlignmentToolbar;i("editor-blocks/intro",{title:l("Intro (EB)","editor-blocks"),description:l("Introduce your content with a heading and subheading.","editor-blocks"),category:"editor-blocks",icon:"editor-textcolor",keywords:[l("Intro","editor-blocks"),l("Heading","editor-blocks"),l("Subheading","editor-blocks")],attributes:{maxWidth:{type:"number",default:600},heading:{source:"children",selector:".intro__heading"},subheading:{source:"children",selector:".intro__subheading"},alignment:{type:"string"},headingColor:{type:"string"},headingSize:{type:"number"},subheadingColor:{type:"string"},subheadingSize:{type:"number"}},edit:function(e){var t=e.attributes,n=e.setAttributes,o=e.className;return wp.element.createElement(c,null,wp.element.createElement(a.a,e),wp.element.createElement(m,{key:"controls"},wp.element.createElement(p,{value:t.alignment,onChange:function(e){return n({alignment:e})}})),wp.element.createElement("div",{className:o,style:{textAlign:t.alignment}},wp.element.createElement("div",{className:"inner",style:{maxWidth:t.maxWidth+"px"}},wp.element.createElement(s,{value:t.heading,onChange:function(e){return n({heading:e})},tagName:"h2",placeholder:l("Intro Heading","editor-blocks"),keepPlaceholderOnFocus:!0,style:{color:t.headingColor,fontSize:t.headingSize&&t.headingSize+"px"},className:"intro__heading"}),wp.element.createElement(s,{value:t.subheading,onChange:function(e){return n({subheading:e})},tagName:"p",placeholder:l("Subheading","editor-blocks"),keepPlaceholderOnFocus:!0,style:{color:t.subheadingColor,fontSize:t.subheadingSize&&t.subheadingSize+"px"},className:"intro__subheading"}))))},save:function(e){var t=e.attributes;return wp.element.createElement("div",{style:{textAlign:t.alignment}},wp.element.createElement("div",{className:"inner",style:{maxWidth:t.maxWidth+"px"}},wp.element.createElement(s.Content,{tagName:"h2",style:{color:t.headingColor,fontSize:t.headingSize&&t.headingSize+"px"},value:t.heading,className:"intro__heading"}),wp.element.createElement(s.Content,{tagName:"p",style:{color:t.subheadingColor,fontSize:t.subheadingSize&&t.subheadingSize+"px"},value:t.subheading,className:"intro__subheading"})))}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=wp.i18n.__,c=wp.element.Component,u=wp.editor,s=u.InspectorControls,m=u.PanelColorSettings,p=wp.components,d=p.PanelBody,g=p.RangeControl,b=function(e){function t(){return o(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),l(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes;return wp.element.createElement(s,{key:"inspector"},wp.element.createElement(d,{initialOpen:!0,title:i("Sizing","editor-blocks")},wp.element.createElement(g,{label:i("Max Width (px)","editor-blocks"),value:t.maxWidth,onChange:function(e){return n({maxWidth:e})},min:100,max:1040}),wp.element.createElement(g,{label:i("Font Size","editor-blocks"),value:t.headingSize,onChange:function(e){return n({headingSize:e})},min:2,max:100}),wp.element.createElement(g,{label:i("Font Size","editor-blocks"),value:t.subheadingSize,onChange:function(e){return n({subheadingSize:e})},min:2,max:100})),wp.element.createElement(m,{title:i("Color Settings","editor-blocks"),colorSettings:[{value:t.headingColor,onChange:function(e){return n({headingColor:e})},label:i("Heading Color","editor-blocks")},{value:t.subheadingColor,onChange:function(e){return n({subheadingColor:e})},label:i("Text Color","editor-blocks")}]}))}}]),t}(c);t.a=b},function(e,t,n){"use strict";function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var r=n(89),a=(n.n(r),n(90)),l=(n.n(a),n(91)),i=n(0),c=n.n(i),u=n(1),s=n.n(u),m=wp.i18n.__,p=wp.element.Fragment,d=wp.blocks.registerBlockType,g=wp.editor,b=g.MediaUpload,f=g.RichText,h=g.BlockControls,w=g.AlignmentToolbar,y=wp.components,v=y.Button,k=y.Dashicon;d("editor-blocks/pricing-table",{title:m("Pricing Table (EB)","editor-blocks"),description:m("Beautiful 2, 3, 4 or 5 column pricing tables","editor-blocks"),icon:"cart",category:"editor-blocks",keywords:[m("Pricing Table","editor-blocks"),m("Editor Blocks","editor-blocks"),m("EB","editor-blocks")],attributes:{columns:{type:"array",selector:".column",source:"query",query:{image:{source:"attribute",selector:".pricing-table__image",attribute:"src"},heading:{source:"children",selector:".pricing-table__heading"},description:{source:"children",selector:".pricing-table__description"},price:{source:"children",selector:".pricing-table__price"},features:{source:"children",selector:".pricing-table__features"},buttonText:{source:"children",selector:".pricing-table__button"},buttonURL:{source:"attribute",selector:".pricing-table__button",attribute:"href"}},default:[]},count:{type:"number",default:3},alignment:{type:"string",default:"center"},columnBackgroundColor:{type:"string"},headingColor:{type:"string"},descriptionColor:{type:"string"},priceColor:{type:"string"},featuresColor:{type:"string"},buttonColor:{type:"string",default:"#ffffff"},buttonBackgroundColor:{type:"string",default:"#bc0d0d"}},edit:function(e){function t(e,t,n){var l=r.columns,i=l;i[t]=Object.assign({},l[t]),i[t][n]=e,a({columns:[].concat(o(i))})}function n(e,t){var n=r.columns,l=n;l[t]=Object.assign({},n[t]),l[t].image=e.url,a({columns:[].concat(o(l))})}var r=e.attributes,a=e.setAttributes,i=e.className,u=i+" col-"+r.count;return wp.element.createElement(p,null,wp.element.createElement(l.a,e),wp.element.createElement(h,{key:"controls"},wp.element.createElement(w,{value:r.alignment,onChange:function(e){return a({alignment:e})}})),wp.element.createElement("div",{style:{textAlign:r.alignment},className:u},s()(r.count,function(e){var o=c()(r.columns,[e,"image"]),a="column column-"+e;return wp.element.createElement("div",{className:a,key:"column-"+e,style:{backgroundColor:r.columnBackgroundColor}},wp.element.createElement(b,{onSelect:function(t){return n(t,e)},type:"image",value:o,render:function(e){var t=e.open;return wp.element.createElement(v,{onClick:t},o?wp.element.createElement("img",{className:"pricing-table__image",src:o,alt:m("Column","editor-blocks")}):wp.element.createElement("div",{className:"no-image"},wp.element.createElement(k,{icon:"format-image"})))}}),wp.element.createElement(f,{value:c()(r.columns,[e,"heading"]),onChange:function(n){return t(n,e,"heading")},tagName:"h3",placeholder:m("Heading","editor-blocks"),keepPlaceholderOnFocus:!0,style:{color:r.headingColor},className:"pricing-table__heading"}),wp.element.createElement(f,{value:c()(r.columns,[e,"description"]),onChange:function(n){return t(n,e,"description")},tagName:"p",placeholder:m("Description","editor-blocks"),keepPlaceholderOnFocus:!0,style:{color:r.descriptionColor},className:"pricing-table__description"}),wp.element.createElement(f,{value:c()(r.columns,[e,"price"]),onChange:function(n){return t(n,e,"price")},tagName:"p",placeholder:m("$49.99","editor-blocks"),formattingControls:[],keepPlaceholderOnFocus:!0,style:{color:r.priceColor},className:"pricing-table__price"}),wp.element.createElement(f,{value:c()(r.columns,[e,"features"]),onChange:function(n){return t(n,e,"features")},tagName:"ul",multiline:"li",placeholder:m("Feature One","editor-blocks"),formattingControls:[],keepPlaceholderOnFocus:!0,style:{color:r.featuresColor},className:"pricing-table__features"}),wp.element.createElement("div",{className:"button-container"},wp.element.createElement(f,{value:c()(r.columns,[e,"buttonText"],"Click Here!"),onChange:function(n){return t(n,e,"buttonText")},tagName:"a",formattingControls:[],keepPlaceholderOnFocus:!0,style:{backgroundColor:r.buttonBackgroundColor,color:r.buttonColor},className:"pricing-table__button"})))})))},save:function(e){var t=e.attributes,n="col-"+t.count;return wp.element.createElement("div",{className:n,style:{textAlign:t.alignment}},s()(t.count,function(e){var n=c()(t.columns,[e,"image"]),o="column column-"+e;return wp.element.createElement("div",{className:o,key:"column-"+e,style:{backgroundColor:t.columnBackgroundColor}},n&&wp.element.createElement("img",{className:"pricing-table__image",src:n,alt:"Pricing Table Image"}),wp.element.createElement(f.Content,{tagName:"h3",value:c()(t.columns,[e,"heading"]),style:{color:t.headingColor},className:"pricing-table__heading"}),wp.element.createElement(f.Content,{tagName:"p",value:c()(t.columns,[e,"description"]),style:{color:t.descriptionColor},className:"pricing-table__description"}),wp.element.createElement(f.Content,{tagName:"p",value:c()(t.columns,[e,"price"]),style:{color:t.priceColor},className:"pricing-table__price"}),wp.element.createElement(f.Content,{tagName:"ul",value:c()(t.columns,[e,"features"]),style:{color:t.featuresColor},className:"pricing-table__features"}),wp.element.createElement("div",{className:"button-container"},wp.element.createElement(f.Content,{tagName:"a",href:c()(t.columns,[e,"buttonURL"]),style:{backgroundColor:t.buttonBackgroundColor,color:t.buttonColor},value:c()(t.columns,[e,"buttonText"],"Click Here!"),className:"pricing-table__button"})))}))}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=n(1),c=n.n(i),u=n(0),s=n.n(u),m=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),p=wp.i18n.__,d=wp.element.Component,g=wp.editor,b=g.InspectorControls,f=g.PanelColorSettings,h=wp.components,w=h.PanelBody,y=h.RangeControl,v=h.TextControl,k=function(e){function t(){return r(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),m(t,[{key:"onChangeButtonURL",value:function(e,t){var n=this.props.attributes.columns,r=n.slice();r[e]=Object.assign({},n[e]),r[e].buttonURL=t,this.props.setAttributes({columns:[].concat(o(r))})}},{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,o=t.setAttributes,r=["One","Two","Three","Four","Five","Six","Seven","Eight","Nine","Ten"];return wp.element.createElement(b,{key:"inspector"},wp.element.createElement(w,{initialOpen:!0,title:p("Feature Settings","editor-blocks")},wp.element.createElement(y,{label:p("Columns"),value:n.count,onChange:function(e){return o({count:e})},min:1,max:5})),wp.element.createElement(w,{initialOpen:!0,title:p("Button Settings","editor-blocks")},c()(n.count,function(t){return wp.element.createElement(v,{label:p("Button "+r[t]+" URL"),value:s()(n.columns,[t,"buttonURL"]),onChange:function(n){return e.onChangeButtonURL(t,n)}})})),wp.element.createElement(f,{title:p("Color Settings","editor-blocks"),initialOpen:!1,colorSettings:[{value:n.columnBackgroundColor,onChange:function(e){return o({columnBackgroundColor:e})},label:p("Column Background Color","editor-blocks")},{value:n.headingColor,onChange:function(e){return o({headingColor:e})},label:p("Heading Color","editor-blocks")},{value:n.descriptionColor,onChange:function(e){return o({descriptionColor:e})},label:p("Description Color","editor-blocks")},{value:n.priceColor,onChange:function(e){return o({priceColor:e})},label:p("Price Color","editor-blocks")},{value:n.featuresColor,onChange:function(e){return o({featuresColor:e})},label:p("Features Color","editor-blocks")},{value:n.buttonColor,onChange:function(e){return o({buttonColor:e})},label:p("Button Color","editor-blocks")},{value:n.buttonBackgroundColor,onChange:function(e){return o({buttonBackgroundColor:e})},label:p("Button Background Color","editor-blocks")}]}))}}]),t}(d);t.a=k},function(e,t,n){"use strict";function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var r=n(93),a=(n.n(r),n(94)),l=(n.n(a),n(95)),i=n(0),c=n.n(i),u=n(1),s=n.n(u),m=wp.i18n.__,p=wp.element.Fragment,d=wp.blocks.registerBlockType,g=wp.editor,b=g.MediaUpload,f=g.RichText,h=wp.components,w=h.Button,y=h.Dashicon;d("editor-blocks/team",{title:m("Team (EB)","editor-blocks"),description:m("Display a list of team members in a multi-column layout.","editor-blocks"),icon:"groups",category:"editor-blocks",keywords:[m("Features","editor-blocks"),m("Editor Blocks","editor-blocks"),m("EB","editor-blocks")],attributes:{members:{type:"array",selector:".team-member",source:"query",query:{image:{source:"attribute",selector:".team-member__image",attribute:"src"},name:{source:"children",selector:".team-member__name"},position:{source:"children",selector:".team-member__position"},bio:{source:"children",selector:".team-member__bio"}},default:[]},count:{type:"number",default:4},nameColor:{type:"string"},positionColor:{type:"string"},bioColor:{type:"string"}},edit:function(e){function t(e,t,n){var a=r.members,l=a.slice();l[t]=Object.assign({},a[t]),l[t][n]=e,console.log(l),i({members:[].concat(o(l))})}function n(e,t){var n=r.members,a=n;a[t]=Object.assign({},n[t]),a[t].image=e.url,console.log(a),i({members:[].concat(o(a))})}var r=e.attributes,a=e.className,i=e.setAttributes,u=a+" col-"+r.count;return wp.element.createElement(p,null,wp.element.createElement(l.a,e),wp.element.createElement("div",{className:u},s()(r.count,function(e){var o=c()(r.members,[e,"image"]),l="team-member team-member-"+e;return wp.element.createElement("div",{className:l,key:"member-"+e},wp.element.createElement(b,{onSelect:function(t){return n(t,e)},type:"image",value:o,render:function(e){var t=e.open;return wp.element.createElement(w,{onClick:t},o?wp.element.createElement("img",{className:a+"-image",src:o,alt:"Team Member"}):wp.element.createElement("div",{className:"no-image"},wp.element.createElement(y,{icon:"format-image"})))}}),wp.element.createElement(f,{value:c()(r.members,[e,"name"]),onChange:function(n){return t(n,e,"name")},tagName:"h3",placeholder:m("Name","editor-blocks"),formattingControls:[],keepPlaceholderOnFocus:!0,className:"team-member__name",style:{color:r.nameColor}}),wp.element.createElement(f,{value:c()(r.members,[e,"position"]),onChange:function(n){return t(n,e,"position")},tagName:"p",placeholder:m("Position","editor-blocks"),formattingControls:[],keepPlaceholderOnFocus:!0,className:"team-member__position",style:{color:r.positionColor}}),wp.element.createElement(f,{value:c()(r.members,[e,"bio"]),onChange:function(n){return t(n,e,"bio")},tagName:"p",placeholder:m("Bio","editor-blocks"),keepPlaceholderOnFocus:!0,className:"team-member__bio",style:{color:r.bioColor}}))})))},save:function(e){var t=e.attributes,n="col-"+t.count;return wp.element.createElement("div",{className:n},s()(t.count,function(e){var n=c()(t.members,[e,"image"]),o="team-member team-member-"+e;return wp.element.createElement("div",{className:o,key:"member-"+e},n&&wp.element.createElement("img",{src:n,className:"team-member__image",alt:"Team Member Image"}),wp.element.createElement(f.Content,{tagName:"h3",className:"team-member__name",value:c()(t.members,[e,"name"]),style:{color:t.nameColor}}),wp.element.createElement(f.Content,{tagName:"span",className:"team-member__position",value:c()(t.members,[e,"position"]),style:{color:t.positionColor}}),wp.element.createElement(f.Content,{tagName:"p",className:"team-member__bio",value:c()(t.members,[e,"bio"]),style:{color:t.bioColor}}))}))}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=wp.i18n.__,c=wp.element.Component,u=wp.editor,s=u.InspectorControls,m=u.PanelColorSettings,p=wp.components,d=p.PanelBody,g=p.RangeControl,b=function(e){function t(){return o(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),l(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes;return wp.element.createElement(s,{key:"inspector"},wp.element.createElement(d,{initialOpen:!0,title:i("Team Settings","editor-blocks")},wp.element.createElement(g,{label:i("Members","editor-blocks"),value:t.count,onChange:function(e){return n({count:e})},min:2,max:4})),wp.element.createElement(m,{title:i("Color Settings","editor-blocks"),initialOpen:!1,colorSettings:[{value:t.nameColor,onChange:function(e){return n({nameColor:e})},label:i("Name Color","editor-blocks")},{value:t.positionColor,onChange:function(e){return n({positionColor:e})},label:i("Position Color","editor-blocks")},{value:t.bioColor,onChange:function(e){return n({bioColor:e})},label:i("Bio Color","editor-blocks")}]}))}}]),t}(c);t.a=b},function(e,t,n){"use strict";var o=n(97),r=(n.n(o),n(98)),a=(n.n(r),n(99)),l=wp.i18n.__,i=wp.element.Fragment,c=wp.blocks.registerBlockType,u=wp.editor,s=u.RichText,m=u.BlockControls,p=u.AlignmentToolbar,d=u.MediaUpload,g=wp.components,b=g.Button,f=g.Dashicon;c("editor-blocks/testimonial",{title:l("Testimonial (EB)","editor-blocks"),description:l("Showcase your client testimonials with this beautiful block.","editor-blocks"),category:"editor-blocks",icon:"format-quote",keywords:[l("Testimonial","editor-blocks"),l("Review","editor-blocks"),l("Editor Blocks","editor-blocks")],attributes:{maxWidth:{type:"number",default:600},testimonial:{source:"children",selector:".testimonial__text"},author:{source:"children",selector:".testimonial__author"},alignment:{type:"string",default:"center"},authorImage:{source:"attribute",selector:".testimonial__image",attribute:"src"},authorImageSize:{type:"number"},testimonialColor:{type:"string"},testimonialSize:{type:"number"},authorColor:{type:"string"},authorSize:{type:"number"}},edit:function(e){var t=e.attributes,n=e.setAttributes,o=e.className;return wp.element.createElement(i,null,wp.element.createElement(a.a,e),wp.element.createElement(m,{key:"controls"},wp.element.createElement(p,{value:t.alignment,onChange:function(e){return n({alignment:e})}})),wp.element.createElement("div",{className:t.className,style:{textAlign:t.alignment}},wp.element.createElement("div",{className:"inner",style:{maxWidth:t.maxWidth&&t.maxWidth+"px"}},wp.element.createElement(d,{onSelect:function(e){return n({authorImage:e.url})},type:"image",value:t.authorImage,render:function(e){var n=e.open;return wp.element.createElement(b,{onClick:n},t.authorImage?wp.element.createElement("img",{className:o+"-image",src:t.authorImage,alt:l("Testimonial Author","editor-blocks"),style:{maxWidth:t.authorImageSize&&t.authorImageSize+"px"}}):wp.element.createElement("div",{className:"no-image"},wp.element.createElement(f,{icon:"format-image"})))}}),wp.element.createElement(s,{value:t.testimonial,onChange:function(e){return n({testimonial:e})},tagName:"blockquote",placeholder:l("Testimonial","editor-blocks"),keepPlaceholderOnFocus:!0,className:"testimonial__text",style:{color:t.testimonialColor,fontSize:t.testimonialSize&&t.testimonialSize+"px"}}),wp.element.createElement(s,{value:t.author,onChange:function(e){return n({author:e})},tagName:"span",placeholder:l("Joe Blogs - Author","editor-blocks"),keepPlaceholderOnFocus:!0,className:"testimonial__author",style:{color:t.authorColor,fontSize:t.authorSize&&t.authorSize+"px"}}))))},save:function(e){var t=e.attributes;return wp.element.createElement("div",{style:{textAlign:t.alignment}},wp.element.createElement("div",{className:"inner",style:{maxWidth:t.maxWidth&&t.maxWidth+"px"}},t.authorImage&&wp.element.createElement("img",{src:t.authorImage,style:{maxWidth:t.authorImageSize&&t.authorImageSize+"px"},className:"testimonial__image",alt:"Testimonial Author Image"}),wp.element.createElement(s.Content,{tagName:"blockquote",style:{color:t.testimonialColor,fontSize:t.testimonialSize&&t.testimonialSize+"px"},value:t.testimonial,className:"testimonial__text"}),wp.element.createElement(s.Content,{tagName:"span",style:{color:t.authorColor,fontSize:t.authorSize&&t.authorSize+"px"},value:t.author,className:"testimonial__author"})))}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=wp.i18n.__,c=wp.element.Component,u=wp.editor,s=u.InspectorControls,m=u.PanelColorSettings,p=wp.components,d=p.PanelBody,g=p.RangeControl,b=function(e){function t(){return o(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),l(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes;return wp.element.createElement(s,null,wp.element.createElement(d,{initialOpen:!0,title:i("General","editor-blocks")},wp.element.createElement(g,{label:i("Max Width (px)","editor-blocks"),value:t.maxWidth,onChange:function(e){return n({maxWidth:e})},min:100,max:1040}),wp.element.createElement(g,{label:i("Image Size (px)","editor-blocks"),value:t.authorImageSize,onChange:function(e){return n({authorImageSize:e})},min:10,max:300}),wp.element.createElement(g,{label:i("Font Size (px)","editor-blocks"),value:t.testimonialSize,onChange:function(e){return n({testimonialSize:e})},min:10,max:50}),wp.element.createElement(g,{label:i("Font Size (px)","editor-blocks"),value:t.authorSize,onChange:function(e){return n({authorSize:e})},min:10,max:30})),wp.element.createElement(m,{title:i("Color Settings","editor-blocks"),colorSettings:[{value:t.testimonialColor,onChange:function(e){return n({testimonialColor:e})},label:i("Testimonial Color","editor-blocks")},{value:t.authorColor,onChange:function(e){return n({authorColor:e})},label:i("Author Color","editor-blocks")}]}))}}]),t}(c);t.a=b},function(e,t,n){"use strict";var o=n(101),r=(n.n(o),n(102)),a=(n.n(r),n(103)),l=wp.i18n.__,i=wp.element.Fragment,c=wp.blocks.registerBlockType,u=wp.editor,s=u.RichText,m=u.BlockControls,p=u.AlignmentToolbar,d=u.MediaUpload,g=wp.components,b=g.Button,f=g.Dashicon;c("editor-blocks/vertical-feature",{title:l("Vertical Feature (EB)","editor-blocks"),description:l("Highlight a key feature of your product or service using this vertical display.","editor-blocks"),category:"editor-blocks",icon:"arrow-down-alt",keywords:[l("Feature","editor-blocks"),l("Editor Blocks","editor-blocks"),l("Feature","editor-blocks")],attributes:{image:{type:"string",source:"attribute",attribute:"src",selector:".vertical-feature__image"},heading:{source:"children",selector:".vertical-feature__heading"},subHeading:{source:"children",selector:".vertical-feature__subheading"},text:{source:"children",selector:".vertical-feature__text"},alignment:{type:"string",default:"center"},contentWidth:{type:"number",default:"600"},contentPaddingTop:{type:"number",default:0},contentPaddingBottom:{type:"number",default:0},imageWidth:{type:"number"},imagePosition:{type:"string",default:"below"},imagePaddingTop:{type:"number",default:50},imagePaddingBottom:{type:"number",default:0},headingColor:{type:"string"},subHeadingColor:{type:"string"},textColor:{type:"string"},buttonColor:{type:"string",default:"#ffffff"},showButton:{type:"bool",default:!0},buttonBackgroundColor:{type:"string",default:"#bc0d0d"},buttonText:{type:"string",default:"Click Here"},buttonURL:{type:"string",default:""}},edit:function(e){var t=e.attributes,n=e.setAttributes,o=e.className,r={paddingTop:0!==t.contentPaddingTop?t.contentPaddingTop+"px":null,paddingBottom:0!==t.contentPaddingBottom?t.contentPaddingBottom+"px":null,textAlign:t.alignment},c={paddingTop:0!==t.imagePaddingTop?t.imagePaddingTop+"px":null,paddingBottom:0!==t.imagePaddingBottom?t.imagePaddingBottom+"px":null,width:t.imageWidth+"px"},u=wp.element.createElement("div",{className:"vertical-feature-image-wrapper",style:c},wp.element.createElement(d,{onSelect:function(e){return n({image:e.url})},type:"image",value:t.image,render:function(e){var n=e.open;return wp.element.createElement(b,{onClick:n},t.image?wp.element.createElement("img",{className:o+"-image",src:t.image,alt:"Feature Visual"}):wp.element.createElement("div",{className:"no-image"},wp.element.createElement(f,{icon:"format-image"})))}}));return wp.element.createElement(i,null,wp.element.createElement(a.a,e),wp.element.createElement(m,{key:"controls"},wp.element.createElement(p,{value:t.alignment,onChange:function(e){return n({alignment:e})}})),wp.element.createElement("div",{className:o+" image-position-"+t.imagePosition},"above"===t.imagePosition&&u,wp.element.createElement("div",{className:"vertical-feature-content-wrapper",style:r},wp.element.createElement("div",{className:"vertical-feature-content__inner",style:{width:t.contentWidth+"px"}},wp.element.createElement(s,{value:t.heading,onChange:function(e){return n({heading:e})},tagName:"h2",placeholder:l("Heading","editor-blocks"),formattingControls:[],keepPlaceholderOnFocus:!0,style:{color:t.headingColor},className:"vertical-feature__heading"}),wp.element.createElement(s,{value:t.subHeading,onChange:function(e){return n({subHeading:e})},tagName:"p",placeholder:l("Sub Heading","editor-blocks"),formattingControls:[],keepPlaceholderOnFocus:!0,style:{color:t.subHeadingColor},className:"vertical-feature__subheading"}),wp.element.createElement(s,{value:t.text,onChange:function(e){return n({text:e})},tagName:"p",placeholder:l("Description","editor-blocks"),keepPlaceholderOnFocus:!0,style:{color:t.textColor},className:"vertical-feature__text"}),t.showButton&&wp.element.createElement("div",{className:"button-container"},wp.element.createElement("a",{style:{backgroundColor:t.buttonBackgroundColor,color:t.buttonColor},className:"vertical-feature__button",href:"#"},t.buttonText)))),"below"===t.imagePosition&&u))},save:function(e){var t=e.attributes,n={paddingTop:0!==t.contentPaddingTop?t.contentPaddingTop+"px":null,paddingBottom:0!==t.contentPaddingBottom?t.contentPaddingBottom+"px":null,textAlign:t.alignment},o={paddingTop:0!==t.imagePaddingTop?t.imagePaddingTop+"px":null,paddingBottom:0!==t.imagePaddingBottom?t.imagePaddingBottom+"px":null,width:t.imageWidth+"px"},r=wp.element.createElement("div",{className:"vertical-feature-image-wrapper",style:o},wp.element.createElement("img",{className:"vertical-feature__image",src:t.image}));return wp.element.createElement("div",{className:"image-position-"+t.imagePosition},"above"===t.imagePosition&&r,wp.element.createElement("div",{className:"vertical-feature-content-wrapper",style:n},wp.element.createElement("div",{className:"vertical-feature-content__inner",style:{width:t.contentWidth+"px"}},wp.element.createElement(s.Content,{tagName:"h2",className:"vertical-feature__heading",style:{color:t.headingColor},value:t.heading}),wp.element.createElement(s.Content,{tagName:"p",className:"vertical-feature__subheading",style:{color:t.subHeadingColor},value:t.subHeading}),wp.element.createElement(s.Content,{tagName:"p",className:"vertical-feature__text",style:{color:t.textColor},value:t.text}),t.showButton&&wp.element.createElement("div",{className:"button-container"},wp.element.createElement("a",{style:{backgroundColor:t.buttonBackgroundColor,color:t.buttonColor},className:"vertical-feature__button",href:t.buttonURL},t.buttonText)))),"below"===t.imagePosition&&r)}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=wp.i18n.__,c=wp.element,u=c.Component,s=c.Fragment,m=wp.editor,p=m.InspectorControls,d=m.PanelColorSettings,g=wp.components,b=g.PanelBody,f=g.TextControl,h=g.SelectControl,w=g.RangeControl,y=g.ToggleControl,v=function(e){function t(){return o(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),l(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes;return wp.element.createElement(p,{key:"inspector"},wp.element.createElement(b,{initialOpen:!0,title:i("Layout Settings","editor-blocks")},wp.element.createElement(h,{label:i("Image Position"),value:t.imagePosition,onChange:function(e){return n({imagePosition:e})},options:[{value:"above",label:i("Above Content","editor-blocks")},{value:"below",label:i("Below Content","editor-blocks")}]})),wp.element.createElement(b,{initialOpen:!1,title:i("Content Settings","editor-blocks")},wp.element.createElement(w,{label:i("Content Width (px)","editor-blocks"),value:t.contentWidth,onChange:function(e){return n({contentWidth:e})},min:0,max:1e3}),wp.element.createElement(w,{label:i("Content Padding Top (px)","editor-blocks"),value:t.contentPaddingTop,onChange:function(e){return n({contentPaddingTop:e})},min:0,max:200}),wp.element.createElement(w,{label:i("Content Padding Bottom (px)","editor-blocks"),value:t.contentPaddingBottom,onChange:function(e){return n({contentPaddingBottom:e})},min:0,max:200})),wp.element.createElement(b,{initialOpen:!1,title:i("Image Settings","editor-blocks")},wp.element.createElement(w,{label:i("Image Width (px)","editor-blocks"),value:t.imageWidth,onChange:function(e){return n({imageWidth:e})},min:0,max:1e3}),wp.element.createElement(w,{label:i("Image Padding Top (px)","editor-blocks"),value:t.imagePaddingTop,onChange:function(e){return n({imagePaddingTop:e})},min:0,max:200}),wp.element.createElement(w,{label:i("Image Padding Bottom (px)","editor-blocks"),value:t.imagePaddingBottom,onChange:function(e){return n({imagePaddingBottom:e})},min:0,max:200})),wp.element.createElement(b,{initialOpen:!0,title:i("Button Settings","editor-blocks")},wp.element.createElement(y,{label:i("Show Button","editor-blocks"),checked:!!t.showButton,help:function(e){return e?i("Button is visible.","editor-blocks"):i("Button is not visible.","editor-blocks")},onChange:function(e){return n({showButton:e})}}),t.showButton&&wp.element.createElement(s,null,wp.element.createElement(f,{label:i("Button Text","editor-blocks"),value:t.buttonText,onChange:function(e){return n({buttonText:e})}}),wp.element.createElement(f,{label:i("Button URL","editor-blocks"),value:t.buttonURL,onChange:function(e){return n({buttonURL:e})}}))),wp.element.createElement(d,{title:i("Color Settings","editor-blocks"),initialOpen:!1,colorSettings:[{value:t.headingColor,onChange:function(e){return n({headingColor:e})},label:i("Heading Color","editor-blocks")},{value:t.subHeadingColor,onChange:function(e){return n({subHeadingColor:e})},label:i("Sub Heading Color","editor-blocks")},{value:t.textColor,onChange:function(e){return n({textColor:e})},label:i("Text Color","editor-blocks")},{value:t.buttonColor,onChange:function(e){return n({buttonColor:e})},label:i("Button Color","editor-blocks")},{value:t.buttonBackgroundColor,onChange:function(e){return n({buttonBackgroundColor:e})},label:i("Button Background Color","editor-blocks")}]}))}}]),t}(u);t.a=v},function(e,t,n){"use strict";function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e){return 0===e?null:"has-background-dim-"+10*Math.round(e/10)}var a=n(105),l=(n.n(a),n(106)),i=(n.n(l),n(107)),c=n(108),u=n.n(c),s=wp.i18n.__,m=wp.element.Fragment,p=wp.blocks.registerBlockType,d=wp.editor.InnerBlocks,g={align:{type:"string",default:"full"},position:{type:"string"},fullWidthBackground:{type:"bool",default:!0},maxWidth:{type:"number"},paddingTop:{type:"number",default:50},paddingRight:{type:"number",default:0},paddingBottom:{type:"number",default:50},paddingLeft:{type:"number",default:0},marginTop:{type:"number",default:50},marginRight:{type:"number"},marginBottom:{type:"number",default:50},marginLeft:{type:"number"},backgroundColor:{type:"string"},backgroundImage:{type:"string"},backgroundOpacity:{type:"number",default:0}};p("editor-blocks/wrapper",{title:s("Wrapper (EB)","editor-blocks"),description:s("Add a background image or color to any block, as well as padding and margins.","editor-blocks"),icon:"editor-contract",category:"editor-blocks",keywords:[s("wrapper","editor-blocks"),s("Editor Blocks","editor-blocks"),s("EB","editor-blocks")],attributes:g,getEditWrapperProps:function(){return{"data-align":"full"}},edit:function(e){var t=e.attributes,n=e.className,a={paddingTop:0!==t.paddingTop?t.paddingTop+"px":null,paddingRight:0!==t.paddingRight?t.paddingRight+"px":null,paddingBottom:0!==t.paddingBottom?t.paddingBottom+"px":null,paddingLeft:0!==t.paddingLeft?t.paddingLeft+"px":null,marginTop:0!==t.marginTop?t.marginTop+"px":null,marginBottom:0!==t.marginBottom?t.marginBottom+"px":null,backgroundColor:t.backgroundColor,backgroundImage:t.backgroundImage&&"url("+t.backgroundImage+")"},l=u()(n,r(t.backgroundOpacity),{"has-background-dim":0!==t.backgroundOpacity},t.position,o({},"align"+t.align,t.align&&t.fullWidthBackground));return wp.element.createElement(m,null,wp.element.createElement(i.a,e),wp.element.createElement("div",{style:a,className:l},wp.element.createElement("div",{className:"wrapper-inner"},wp.element.createElement("div",{className:"wrapper-inner-blocks",style:{maxWidth:t.maxWidth&&t.maxWidth+"px"}},wp.element.createElement(d,null)))))},save:function(e){var t=e.attributes,n=e.className,a={paddingTop:0!==t.paddingTop?t.paddingTop+"px":null,paddingRight:0!==t.paddingRight?t.paddingRight+"px":null,paddingBottom:0!==t.paddingBottom?t.paddingBottom+"px":null,paddingLeft:0!==t.paddingLeft?t.paddingLeft+"px":null,marginTop:0!==t.marginTop?t.marginTop+"px":null,marginBottom:0!==t.marginBottom?t.marginBottom+"px":null,backgroundColor:t.backgroundColor,backgroundImage:t.backgroundImage&&"url("+t.backgroundImage+")"},l=u()(n,o({},"align"+t.align,t.align&&t.fullWidthBackground),r(t.backgroundOpacity),{"has-background-dim":0!==t.backgroundOpacity},t.position);return wp.element.createElement("div",{style:a,className:l},wp.element.createElement("div",{className:"wrapper-inner"},wp.element.createElement("div",{className:"wrapper-inner-blocks",style:{maxWidth:t.maxWidth&&t.maxWidth+"px"}},wp.element.createElement(d.Content,null))))},deprecated:[{attributes:g,save:function(e){var t=e.attributes,n=e.className,a={paddingTop:0!==t.paddingTop?t.paddingTop+"px":null,paddingRight:0!==t.paddingRight?t.paddingRight+"px":null,paddingBottom:0!==t.paddingBottom?t.paddingBottom+"px":null,paddingLeft:0!==t.paddingLeft?t.paddingLeft+"px":null,marginTop:0!==t.marginTop?t.marginTop+"px":null,marginBottom:0!==t.marginBottom?t.marginBottom+"px":null,backgroundColor:t.backgroundColor,backgroundImage:t.backgroundImage&&"url("+t.backgroundImage+")"},l=u()(n,o({},"align"+t.align,t.align&&t.fullWidthBackground),r(t.backgroundOpacity),{"has-background-dim":0!==t.backgroundOpacity},t.position);return wp.element.createElement("div",{style:a,className:l},wp.element.createElement("div",{className:"wrapper-inner",style:{maxWidth:t.maxWidth&&t.maxWidth+"px"}},wp.element.createElement(d.Content,null)))}}]})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=wp.i18n.__,c=wp.element.Component,u=wp.editor,s=u.InspectorControls,m=u.PanelColorSettings,p=u.MediaUpload,d=wp.components,g=d.PanelBody,b=d.RangeControl,f=d.SelectControl,h=d.ToggleControl,w=d.Button,y=d.Spinner,v=function(e){function t(){return o(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),l(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes;e.setBackgroundColor;return wp.element.createElement(s,{key:"inspector"},wp.element.createElement(g,{title:i("Inner Width","editor-blocks")},wp.element.createElement(b,{value:t.maxWidth,label:i("Inner Width (px)","editor-blocks"),onChange:function(e){return n({maxWidth:e})},min:0,max:1040,step:10,allowReset:!0}),t.maxWidth&&wp.element.createElement(f,{label:i("Position","editor-blocks"),value:t.position,onChange:function(e){return n({position:e})},options:[{value:"",label:i("Middle","editor-blocks")},{value:"left",label:i("Left","editor-blocks")},{value:"right",label:i("Right","editor-blocks")}]}),wp.element.createElement(h,{label:i("Full Width Background","editor-blocks"),checked:t.fullWidthBackground,onChange:function(){return n({fullWidthBackground:!t.fullWidthBackground})}})),wp.element.createElement(g,{title:i("Background Image","editor-blocks")},!!t.backgroundImage&&wp.element.createElement(p,{title:i("Set featured image","editor-blocks"),onSelect:function(e){return n({backgroundImage:e.url})},type:"image",modalClass:"editor-post-featured-image__media-modal",render:function(e){var n=e.open;return wp.element.createElement(w,{className:"editor-post-featured-image__preview",onClick:n},t.backgroundImage&&wp.element.createElement("img",{src:t.backgroundImage,alt:i("Featured image","editor-blocks")}),!t.backgroundImage&&wp.element.createElement(y,null))}}),!t.backgroundImage&&wp.element.createElement(p,{onSelect:function(e){return n({backgroundImage:e.url})},type:"image",value:t.backgroundImage,render:function(e){var t=e.open;return wp.element.createElement(w,{className:"button",onClick:t},i("Open Media Library","editor-blocks"))}}),!!t.backgroundImage&&wp.element.createElement(w,{onClick:function(){return n({backgroundImage:void 0})},isLink:!0,isDestructive:!0},i("Remove Image","editor-blocks"))),wp.element.createElement(g,{title:i("Background Opacity","editor-blocks")},wp.element.createElement(b,{value:t.backgroundOpacity,label:i("Background Opacity (%)","editor-blocks"),onChange:function(e){return n({backgroundOpacity:e})},min:0,max:100,step:10})),wp.element.createElement(m,{title:i("Color Settings"),colorSettings:[{value:t.backgroundColor,onChange:function(e){return n({backgroundColor:e})},label:i("Background Color","editor-blocks")}]}),wp.element.createElement(g,{initialOpen:!0,title:i("Padding","editor-blocks")},wp.element.createElement(b,{value:t.paddingTop,label:i("Padding Top","editor-blocks"),onChange:function(e){return n({paddingTop:e})},min:0,max:250}),wp.element.createElement(b,{value:t.paddingRight,label:i("Padding Right","editor-blocks"),onChange:function(e){return n({paddingRight:e})},min:0,max:250}),wp.element.createElement(b,{value:t.paddingBottom,label:i("Padding Bottom","editor-blocks"),onChange:function(e){return n({paddingBottom:e})},min:0,max:250}),wp.element.createElement(b,{value:t.paddingLeft,label:i("Padding Left","editor-blocks"),onChange:function(e){return n({paddingLeft:e})},min:0,max:250})),wp.element.createElement(g,{initialOpen:!0,title:i("Margin","editor-blocks")},wp.element.createElement(b,{value:t.marginTop,label:i("Margin Top","editor-blocks"),onChange:function(e){return n({marginTop:e})},min:0,max:250}),wp.element.createElement(b,{value:t.marginBottom,label:i("Margin Bottom","editor-blocks"),onChange:function(e){return n({marginBottom:e})},min:0,max:250})))}}]),t}(c);t.a=v},function(e,t,n){var o,r;!function(){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var r=typeof o;if("string"===r||"number"===r)e.push(o);else if(Array.isArray(o)&&o.length){var l=n.apply(null,o);l&&e.push(l)}else if("object"===r)for(var i in o)a.call(o,i)&&o[i]&&e.push(i)}}return e.join(" ")}var a={}.hasOwnProperty;"undefined"!==typeof e&&e.exports?(n.default=n,e.exports=n):(o=[],void 0!==(r=function(){return n}.apply(t,o))&&(e.exports=r))}()}]);